From 236bf6c2891ee09532793c441381161c211cd8fc Mon Sep 17 00:00:00 2001 From: Deivid Marques Date: Tue, 7 Nov 2017 11:46:27 -0200 Subject: [PATCH] Site updated to c89d5da6d --- assets/javascripts/busca.json | 6 + assets/javascripts/docs.js | 2 +- assets/javascripts/docs/test.js | 2 +- assets/javascripts/example.js | 2 +- assets/javascripts/libs/holder.js | 2 +- assets/javascripts/libs/html5shiv.js | 2 +- assets/javascripts/libs/jquery.mask.js | 2 +- assets/javascripts/libs/mediaqueries-ie.js | 2 +- assets/javascripts/libs/pikaday.jquery.js | 2 +- assets/javascripts/libs/pikaday.js | 2 +- assets/javascripts/locastyle.js | 10 +- assets/stylesheets/locastyle.css | 2 +- blog/index.html | 2 +- changelog/2014/07/15/versao-3-0-0/index.html | 2 +- changelog/2014/07/23/3-0-1/index.html | 2 +- changelog/2014/07/31/versao-3-1-0/index.html | 2 +- changelog/2014/08/19/versao-3-2-0/index.html | 2 +- changelog/2014/08/20/versao-3-2-1/index.html | 2 +- changelog/2014/08/20/versao-3-2-2/index.html | 2 +- changelog/2014/09/04/versao-3-3-0/index.html | 2 +- changelog/2014/09/08/versao-3-3-1/index.html | 2 +- changelog/2014/09/11/versao-3-3-2/index.html | 2 +- changelog/2014/09/17/versao-3-3-3/index.html | 2 +- changelog/2014/10/16/versao-3-4-0/index.html | 2 +- changelog/index.html | 2 +- documentacao/cartilha-de-elementos/index.html | 34 +-- documentacao/componentes/alert-box/index.html | 15 +- documentacao/componentes/alertas/index.html | 23 +- .../componentes/barra-de-progresso/index.html | 22 +- .../componentes/botao-switch/index.html | 17 +- documentacao/componentes/botoes/index.html | 47 ++-- .../componentes/box-de-filtro/index.html | 17 +- .../componentes/box-de-selecao/index.html | 12 +- .../componentes/box-generico/index.html | 43 ++-- documentacao/componentes/box-info/index.html | 17 +- .../componentes/breadcrumb/index.html | 12 +- documentacao/componentes/collapse/index.html | 47 ++-- documentacao/componentes/dropdown/index.html | 52 ++-- documentacao/componentes/index.html | 74 +++--- documentacao/componentes/listas/index.html | 25 +- documentacao/componentes/modal/index.html | 82 +++--- documentacao/componentes/paginacao/index.html | 37 ++- .../componentes/passo-a-passo/index.html | 72 +++--- documentacao/componentes/popover/index.html | 19 +- documentacao/componentes/shop-cart/index.html | 7 +- documentacao/componentes/tabelas/index.html | 17 +- documentacao/componentes/tags/index.html | 12 +- documentacao/componentes/tooltip/index.html | 7 +- .../componentes/tour-guiado/index.html | 17 +- .../css/classes-de-breakpoints/index.html | 12 +- .../css/classes-funcionais/index.html | 2 +- documentacao/css/cores-do-tema/index.html | 12 +- documentacao/css/footer/index.html | 7 +- documentacao/css/grid/index.html | 7 +- documentacao/css/icones-panel/index.html | 7 +- documentacao/css/icones/index.html | 7 +- documentacao/css/tipografia/index.html | 7 +- documentacao/exemplos/boilerplate/index.html | 4 +- documentacao/exemplos/erro-404/index.html | 14 +- documentacao/exemplos/erro-500/index.html | 14 +- documentacao/exemplos/index.html | 2 +- documentacao/exemplos/painel1/base/index.html | 14 +- .../exemplos/painel1/client/index.html | 17 +- .../exemplos/painel1/clients/index.html | 14 +- .../exemplos/painel1/clients_new/index.html | 14 +- .../exemplos/painel1/config-answer/index.html | 14 +- .../exemplos/painel1/config-api/index.html | 14 +- .../exemplos/painel1/config-aspect/index.html | 14 +- .../exemplos/painel1/config-domain/index.html | 14 +- .../exemplos/painel1/config-email/index.html | 14 +- .../exemplos/painel1/configuration/index.html | 14 +- documentacao/exemplos/painel1/home/index.html | 14 +- .../exemplos/painel1/new-client/index.html | 14 +- .../exemplos/painel1/no-clients/index.html | 14 +- .../exemplos/painel1/pre-painel/index.html | 14 +- .../exemplos/painel1/stats/index.html | 14 +- .../exemplos/painel2/bounces/index.html | 44 ++-- .../exemplos/painel2/complaints/index.html | 44 ++-- .../exemplos/painel2/config-email/index.html | 18 +- .../exemplos/painel2/config-excess/index.html | 14 +- .../exemplos/painel2/config-server/index.html | 16 +- documentacao/exemplos/painel2/home/index.html | 20 +- .../exemplos/painel2/openings/index.html | 44 ++-- .../exemplos/painel2/pre-painel/index.html | 14 +- .../painel2/reputation-terms/index.html | 14 +- .../exemplos/painel2/reputation/index.html | 44 ++-- .../exemplos/painel2/resume/index.html | 44 ++-- .../exemplos/painel3/contacts/index.html | 14 +- .../painel3/nameservers/edit/index.html | 14 +- .../exemplos/painel3/nameservers/index.html | 14 +- .../exemplos/painel3/pre-painel/index.html | 14 +- .../exemplos/painel3/results/index.html | 14 +- .../painel3/transfer-international/index.html | 14 +- .../exemplos/painel3/transfer/index.html | 14 +- .../exemplos/painel3/transferin/index.html | 14 +- .../exemplos/painel3/transferout/index.html | 14 +- .../painel4/config-favicon/index.html | 14 +- .../exemplos/painel4/config-ga/index.html | 14 +- .../painel4/config-language/index.html | 14 +- .../exemplos/painel4/config-mobile/index.html | 14 +- .../painel4/config-publish/index.html | 14 +- .../exemplos/painel4/config-users/index.html | 14 +- .../painel4/domains-config/index.html | 14 +- .../exemplos/painel4/domains-list/index.html | 14 +- .../exemplos/painel4/domains/index.html | 14 +- .../painel4/home-first-access/index.html | 14 +- documentacao/exemplos/painel4/home/index.html | 14 +- .../exemplos/painel4/plugins/index.html | 14 +- .../exemplos/painel4/pre-painel/index.html | 14 +- .../exemplos/painel5/dns-entries/index.html | 14 +- documentacao/exemplos/painel5/home/index.html | 14 +- .../exemplos/painel5/pre-painel/index.html | 16 +- .../exemplos/painel6/pre-painel/index.html | 14 +- .../exemplos/product-not-hired/index.html | 14 +- .../formularios/calendario/index.html | 22 +- .../campos-desabilitados/index.html | 46 ++-- documentacao/formularios/contador/index.html | 7 +- .../estilo-das-validacoes/index.html | 143 +++++++++-- .../formularios/exibir-senha/index.html | 12 +- documentacao/formularios/index.html | 22 +- documentacao/formularios/mascaras/index.html | 7 +- .../formularios/prefixos-sufixos/index.html | 12 +- .../formularios/select-customizado/index.html | 12 +- .../formularios/tamanho-dos-campos/index.html | 41 ++- documentacao/formularios/textarea/index.html | 12 +- .../funcoes-js/alternar-classes/index.html | 25 +- .../funcoes-js/alternar-textos/index.html | 17 +- .../funcoes-js/auto-trigger/index.html | 2 +- .../funcoes-js/checkbox-toggle/index.html | 17 +- documentacao/funcoes-js/dismiss/index.html | 17 +- documentacao/funcoes-js/index.html | 7 +- .../funcoes-js/rastreando-eventos/index.html | 12 +- .../funcoes-js/rolagem-suave/index.html | 45 ++-- .../introducao/boilerplate/index.html | 11 +- documentacao/introducao/chrome/index.html | 2 +- documentacao/introducao/contribua/index.html | 4 +- documentacao/introducao/downloads/index.html | 2 +- .../introducao/estrutura-principal/index.html | 106 ++++---- documentacao/introducao/index.html | 47 ++-- .../introducao/instalacao-ubuntu/index.html | 233 ++++++++++++++++++ .../introducao/suporte-browsers/index.html | 12 +- documentacao/praticas/css/index.html | 32 +-- documentacao/praticas/html/index.html | 17 +- documentacao/praticas/index.html | 2 +- documentacao/praticas/javascript/index.html | 87 +++---- documentacao/shared/botoes/buttons/index.html | 2 +- .../box-de-filtro/filter-status/index.html | 2 +- .../filter-time-advanced/index.html | 2 +- .../box-de-filtro/filter-time/index.html | 2 +- .../lists/lists-actions-mobile/index.html | 2 +- .../shared/lists/lists-mobile/index.html | 2 +- .../passo-a-passo/passo-mobile/index.html | 30 +-- documentacao/shared/separator/index.html | 2 +- .../structure/header-full-mobile/index.html | 14 +- .../header-internal-mobile/index.html | 14 +- .../structure/header-main-mobile/index.html | 14 +- index.html | 4 +- 157 files changed, 1562 insertions(+), 1354 deletions(-) create mode 100644 documentacao/introducao/instalacao-ubuntu/index.html diff --git a/assets/javascripts/busca.json b/assets/javascripts/busca.json index 566bc796c..4046e2398 100644 --- a/assets/javascripts/busca.json +++ b/assets/javascripts/busca.json @@ -781,6 +781,12 @@ "path": "documentacao/introducao" }, + "documentacao/introducao/instalacao-ubuntu" : { + "title": "Instalando o projeto no Ubuntu", + "description": "O que você precisa saber para criar o ambiente de desenvolvimento local.", + "path": "documentacao/introducao/instalacao-ubuntu" + }, + "documentacao/introducao/suporte-browsers" : { "title": "Suporte para browsers antigos", "description": "Entenda como melhorar o suporte a browsers antigos, como o IE8", diff --git a/assets/javascripts/docs.js b/assets/javascripts/docs.js index 7d0696ce8..ac2065da5 100644 --- a/assets/javascripts/docs.js +++ b/assets/javascripts/docs.js @@ -7,4 +7,4 @@ Provided under the MIT License. Commercial use requires attribution. */ -var Holder=Holder||{};!function(t,e){function n(t,e,n){e=parseInt(e,10),t=parseInt(t,10);var i=Math.max(e,t),a=Math.min(e,t),o=1/12,r=Math.min(.75*a,.75*i*o);return{height:Math.round(Math.max(n.size,r))}}function i(t){var e=[];for(p in t)t.hasOwnProperty(p)&&e.push(p+":"+t[p]);return e.join(";")}function a(t){var e=t.ctx,i=t.dimensions,a=t.template,o=t.ratio,r=t.holder,s="literal"==r.textmode,l="exact"==r.textmode,c=n(i.width,i.height,a),d=c.height,h=i.width*o,u=i.height*o,f=a.font?a.font:"Arial,Helvetica,sans-serif";canvas.width=h,canvas.height=u,e.textAlign="center",e.textBaseline="middle",e.fillStyle=a.background,e.fillRect(0,0,h,u),e.fillStyle=a.foreground,e.font="bold "+d+"px "+f;var p=a.text?a.text:Math.floor(i.width)+"x"+Math.floor(i.height);if(s){var i=r.dimensions;p=i.width+"x"+i.height}else if(l&&r.exact_dimensions){var i=r.exact_dimensions;p=Math.floor(i.width)+"x"+Math.floor(i.height)}var m=e.measureText(p).width;return m/h>=.75&&(d=Math.floor(.75*d*(h/m))),e.font="bold "+d*o+"px "+f,e.fillText(p,h/2,u/2,h),canvas.toDataURL("image/png")}function o(t){var e=t.dimensions,i=t.template,a=t.holder,o="literal"==a.textmode,r="exact"==a.textmode,s=n(e.width,e.height,i),l=s.height,c=e.width,d=e.height,h=i.font?i.font:"Arial,Helvetica,sans-serif",u=i.text?i.text:Math.floor(e.width)+"x"+Math.floor(e.height);if(o){var e=a.dimensions;u=e.width+"x"+e.height}else if(r&&a.exact_dimensions){var e=a.exact_dimensions;u=Math.floor(e.width)+"x"+Math.floor(e.height)}var f=E({text:u,width:c,height:d,text_height:l,font:h,template:i});return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(f)))}function r(t){return b.use_canvas&&!b.use_svg?a(t):o(t)}function s(t,e,n,i){var a=n.dimensions,o=n.theme,s=n.text?decodeURIComponent(n.text):n.text,l=a.width+"x"+a.height;o=s?m(o,{text:s}):o,o=n.font?m(o,{font:n.font}):o,e.setAttribute("data-src",i),n.theme=o,e.holder_data=n,"image"==t?(e.setAttribute("alt",s?s:o.text?o.text+" ["+l+"]":l),(b.use_fallback||!n.auto)&&(e.style.width=a.width+"px",e.style.height=a.height+"px"),b.use_fallback?e.style.backgroundColor=o.background:(e.setAttribute("src",r({ctx:_,dimensions:a,template:o,ratio:k,holder:n})),n.textmode&&"exact"==n.textmode&&(y.push(e),d(e)))):"background"==t?b.use_fallback||(e.style.backgroundImage="url("+r({ctx:_,dimensions:a,template:o,ratio:k,holder:n})+")",e.style.backgroundSize=a.width+"px "+a.height+"px"):"fluid"==t&&(e.setAttribute("alt",s?s:o.text?o.text+" ["+l+"]":l),"%"==a.height.slice(-1)?e.style.height=a.height:null!=n.auto&&n.auto||(e.style.height=a.height+"px"),"%"==a.width.slice(-1)?e.style.width=a.width:null!=n.auto&&n.auto||(e.style.width=a.width+"px"),("inline"==e.style.display||""===e.style.display||"none"==e.style.display)&&(e.style.display="block"),c(e),b.use_fallback?e.style.backgroundColor=o.background:(y.push(e),d(e)))}function l(t,e){var n={height:t.clientHeight,width:t.clientWidth};return n.height||n.width?(t.removeAttribute("data-holder-invisible"),n):(t.setAttribute("data-holder-invisible",!0),void e.call(this,t))}function c(e){if(e.holder_data){var n=l(e,t.invisible_error_fn(c));if(n){var i=e.holder_data;i.initial_dimensions=n,i.fluid_data={fluid_height:"%"==i.dimensions.height.slice(-1),fluid_width:"%"==i.dimensions.width.slice(-1),mode:null},i.fluid_data.fluid_width&&!i.fluid_data.fluid_height?(i.fluid_data.mode="width",i.fluid_data.ratio=i.initial_dimensions.width/parseFloat(i.dimensions.height)):!i.fluid_data.fluid_width&&i.fluid_data.fluid_height&&(i.fluid_data.mode="height",i.fluid_data.ratio=parseFloat(i.dimensions.width)/i.initial_dimensions.height)}}}function d(e){var n;n=null==e.nodeType?y:[e];for(var i in n)if(n.hasOwnProperty(i)){var a=n[i];if(a.holder_data){var o=a.holder_data,s=l(a,t.invisible_error_fn(d));if(s){if(o.fluid){if(o.auto)switch(o.fluid_data.mode){case"width":s.height=s.width/o.fluid_data.ratio;break;case"height":s.width=s.height*o.fluid_data.ratio}a.setAttribute("src",r({ctx:_,dimensions:s,template:o.theme,ratio:k,holder:o}))}o.textmode&&"exact"==o.textmode&&(o.exact_dimensions=s,a.setAttribute("src",r({ctx:_,dimensions:o.dimensions,template:o.theme,ratio:k,holder:o})))}}}}function h(e,n){for(var i={theme:m(A.themes.gray,{})},a=!1,o=e.length,r=0;o>r;r++){var s=e[r];t.flags.dimensions.match(s)?(a=!0,i.dimensions=t.flags.dimensions.output(s)):t.flags.fluid.match(s)?(a=!0,i.dimensions=t.flags.fluid.output(s),i.fluid=!0):t.flags.textmode.match(s)?i.textmode=t.flags.textmode.output(s):t.flags.colors.match(s)?i.theme=t.flags.colors.output(s):n.themes[s]?n.themes.hasOwnProperty(s)&&(i.theme=m(n.themes[s],{})):t.flags.font.match(s)?i.font=t.flags.font.output(s):t.flags.auto.match(s)?i.auto=!0:t.flags.text.match(s)&&(i.text=t.flags.text.output(s))}return a?i:!1}function u(t,e){var n="complete",i="readystatechange",a=!1,o=a,r=!0,s=t.document,l=s.documentElement,c=s.addEventListener?"addEventListener":"attachEvent",d=s.addEventListener?"removeEventListener":"detachEvent",h=s.addEventListener?"":"on",u=function(r){(r.type!=i||s.readyState==n)&&(("load"==r.type?t:s)[d](h+r.type,u,a),!o&&(o=!0)&&e.call(t,null))},f=function(){try{l.doScroll("left")}catch(t){return void setTimeout(f,50)}u("poll")};if(s.readyState==n)e.call(t,"lazy");else{if(s.createEventObject&&l.doScroll){try{r=!t.frameElement}catch(p){}r&&f()}s[c](h+"DOMContentLoaded",u,a),s[c](h+i,u,a),t[c](h+"load",u,a)}}function f(t,e){var t=t.match(/^(\W)?(.*)/),e=e||document,n=e["getElement"+(t[1]?"#"==t[1]?"ById":"sByClassName":"sByTagName")],i=n.call(e,t[2]),a=[];return null!==i&&(a=i.length||0===i.length?i:[i]),a}function m(t,e){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);return n}var g={use_svg:!1,use_canvas:!1,use_fallback:!1},b={},w=!1;canvas=document.createElement("canvas");var v=1,x=1,y=[];if(canvas.getContext)if(canvas.toDataURL("image/png").indexOf("data:image/png")<0)g.use_fallback=!0;else var _=canvas.getContext("2d");else g.use_fallback=!0;document.createElementNS&&document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect&&(g.use_svg=!0,g.use_canvas=!1),g.use_fallback||(v=window.devicePixelRatio||1,x=_.webkitBackingStorePixelRatio||_.mozBackingStorePixelRatio||_.msBackingStorePixelRatio||_.oBackingStorePixelRatio||_.backingStorePixelRatio||1);var k=v/x,A={domain:"holder.js",images:"img",bgnodes:".holderjs",themes:{gray:{background:"#eee",foreground:"#aaa",size:12},social:{background:"#3a5a97",foreground:"#fff",size:12},industrial:{background:"#434A52",foreground:"#C2F200",size:12},sky:{background:"#0D8FDB",foreground:"#fff",size:12},vine:{background:"#39DBAC",foreground:"#1E292C",size:12},lava:{background:"#F8591A",foreground:"#1C2846",size:12}},stylesheet:""};t.flags={dimensions:{regex:/^(\d+)x(\d+)$/,output:function(t){var e=this.regex.exec(t);return{width:+e[1],height:+e[2]}}},fluid:{regex:/^([0-9%]+)x([0-9%]+)$/,output:function(t){var e=this.regex.exec(t);return{width:e[1],height:e[2]}}},colors:{regex:/#([0-9a-f]{3,})\:#([0-9a-f]{3,})/i,output:function(t){var e=this.regex.exec(t);return{size:A.themes.gray.size,foreground:"#"+e[2],background:"#"+e[1]}}},text:{regex:/text\:(.*)/,output:function(t){return this.regex.exec(t)[1]}},font:{regex:/font\:(.*)/,output:function(t){return this.regex.exec(t)[1]}},auto:{regex:/^auto$/},textmode:{regex:/textmode\:(.*)/,output:function(t){return this.regex.exec(t)[1]}}};var E=function(){if(window.XMLSerializer){var t=new XMLSerializer,e="http://www.w3.org/2000/svg",n=document.createElementNS(e,"svg");n.webkitMatchesSelector&&n.setAttribute("xmlns","http://www.w3.org/2000/svg");var a=document.createElementNS(e,"rect"),o=document.createElementNS(e,"text"),r=document.createTextNode(null);return o.setAttribute("text-anchor","middle"),o.appendChild(r),n.appendChild(a),n.appendChild(o),function(e){return n.setAttribute("width",e.width),n.setAttribute("height",e.height),a.setAttribute("width",e.width),a.setAttribute("height",e.height),a.setAttribute("fill",e.template.background),o.setAttribute("x",e.width/2),o.setAttribute("y",e.height/2),r.nodeValue=e.text,o.setAttribute("style",i({fill:e.template.foreground,"font-weight":"bold","font-size":e.text_height+"px","font-family":e.font,"dominant-baseline":"central"})),t.serializeToString(n)}}}();for(var S in t.flags)t.flags.hasOwnProperty(S)&&(t.flags[S].match=function(t){return t.match(this.regex)});t.invisible_error_fn=function(t){return function(t){if(t.hasAttribute("data-holder-invisible"))throw new Error("Holder: invisible placeholder")}},t.add_theme=function(e,n){return null!=e&&null!=n&&(A.themes[e]=n),t},t.add_image=function(e,n){var i=f(n);if(i.length)for(var a=0,o=i.length;o>a;a++){var r=document.createElement("img");r.setAttribute("data-src",e),i[a].appendChild(r)}return t},t.run=function(e){b=m({},g),w=!0;var n=m(A,e),i=[],a=[],o=[];for(null!=n.use_canvas&&n.use_canvas&&(b.use_canvas=!0,b.use_svg=!1),"string"==typeof n.images?a=f(n.images):window.NodeList&&n.images instanceof window.NodeList?a=n.images:window.Node&&n.images instanceof window.Node?a=[n.images]:window.HTMLCollection&&n.images instanceof window.HTMLCollection&&(a=n.images),"string"==typeof n.bgnodes?o=f(n.bgnodes):window.NodeList&&n.elements instanceof window.NodeList?o=n.bgnodes:window.Node&&n.bgnodes instanceof window.Node&&(o=[n.bgnodes]),d=0,c=a.length;c>d;d++)i.push(a[d]);var r=document.getElementById("holderjs-style");r||(r=document.createElement("style"),r.setAttribute("id","holderjs-style"),r.type="text/css",document.getElementsByTagName("head")[0].appendChild(r)),n.nocss||(r.styleSheet?r.styleSheet.cssText+=n.stylesheet:n.stylesheet.length&&r.appendChild(document.createTextNode(n.stylesheet)));for(var l=new RegExp(n.domain+'/(.*?)"?\\)'),c=o.length,d=0;c>d;d++){var u=window.getComputedStyle(o[d],null).getPropertyValue("background-image"),p=u.match(l),v=o[d].getAttribute("data-background-src");if(p){var x=h(p[1].split("/"),n);x&&s("background",o[d],x,u)}else if(null!=v){var x=h(v.substr(v.lastIndexOf(n.domain)+n.domain.length+1).split("/"),n);x&&s("background",o[d],x,u)}}for(c=i.length,d=0;c>d;d++){var y,_;_=y=u=null;try{_=i[d].getAttribute("src"),attr_datasrc=i[d].getAttribute("data-src")}catch(k){}if(null==attr_datasrc&&_&&_.indexOf(n.domain)>=0?u=_:attr_datasrc&&attr_datasrc.indexOf(n.domain)>=0&&(u=attr_datasrc),u){var x=h(u.substr(u.lastIndexOf(n.domain)+n.domain.length+1).split("/"),n);x&&(x.fluid?s("fluid",i[d],x,u):s("image",i[d],x,u))}}return t},u(e,function(){window.addEventListener?(window.addEventListener("resize",d,!1),window.addEventListener("orientationchange",d,!1)):window.attachEvent("onresize",d),w||t.run({}),"object"==typeof window.Turbolinks&&document.addEventListener("page:change",function(){t.run({})})}),"function"==typeof define&&define.amd&&define([],function(){return t}),function(){function t(t){this.message=t}var e="undefined"!=typeof exports?exports:this,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.prototype=Error(),t.prototype.name="InvalidCharacterError",e.btoa||(e.btoa=function(e){for(var i,a,o=0,r=n,s="";e.charAt(0|o)||(r="=",o%1);s+=r.charAt(63&i>>8-8*(o%1))){if(a=e.charCodeAt(o+=.75),a>255)throw new t("'btoa' failed");i=i<<8|a}return s}),e.atob||(e.atob=function(e){if(e=e.replace(/=+$/,""),1==e.length%4)throw new t("'atob' failed");for(var i,a,o=0,r=0,s="";a=e.charAt(r++);~a&&(i=o%4?64*i+a:a,o++%4)?s+=String.fromCharCode(255&i>>(6&-2*o)):0)a=n.indexOf(a);return s})}(),document.getElementsByClassName||(document.getElementsByClassName=function(t){var e,n,i,a=document,o=[];if(a.querySelectorAll)return a.querySelectorAll("."+t);if(a.evaluate)for(n=".//*[contains(concat(' ', @class, ' '), ' "+t+" ')]",e=a.evaluate(n,a,null,0,null);i=e.iterateNext();)o.push(i);else for(e=a.getElementsByTagName("*"),n=new RegExp("(^|\\s)"+t+"(\\s|$)"),i=0;i'+i.title,n+="

"+i.description+"

")}),$("#results").html(n)})});var lsdocs=function(){"use strict";function t(){i(),a(),n(),e()}function e(t){$(".doc-test-themes").find("a").on("click",function(){var t=$(this).data("toggle-class");$("html").attr("class",$("html").attr("class").split(" ").map(function(t){return/ls-theme/.test(t)?"":t}).join(" ").replace(/ /g,"")).addClass(t)})}function n(){$(".doc-menu").on("click",function(){$(this).toggleClass("active")})}function i(){$("code.language-html").each(function(t,e){var n=$(this).html();$(this).text(n),$(this).removeClass("language-html").addClass("language-markup")})}function a(){if($("html").hasClass("ls-window-lg")||$("html").hasClass("ls-window-md")){var t=$(".doc-sidebar-inner").width();$(".doc-sidebar-inner").height()<$(window).height()&&$(window).scroll(function(){var e=$(this).scrollTop();e+$(window).height()+40==$(document).height()+40&&$(".doc-sidebar-inner").css("margin-top","0px"),e>="391"?$(".doc-sidebar-inner").addClass("doc-affix").css("width",t):$(".doc-sidebar-inner").removeClass("doc-affix").removeAttr("style")})}}return{init:t}}();$(window).on("load",function(){lsdocs.init()});var lsdocs=lsdocs||{};lsdocs.icones=function(){"use strict";function t(){e(),n()}function e(){var t='

';$(".list-icons").eq(0).before(t)}function n(){$("#searchIcons").on("keyup",function(t){var e=$(this).val(),n=$("#searchResultText"),a=i.find('[class*="'+e+'"]');console.log(a),e.length>0?0===a.size()?(n.html("Nenhum \xedcone encontrado com o termo: "+e+""),i.hide()):(i.hide(),a.parent(".list-icons li").show(),n.html("Encontrado(s) "+a.size()+" \xedcone(s)")):(i.show(),n.html(" "))})}var i=$(".list-icons li");return{init:t}}(),$(window).on("load",function(){lsdocs.icones.init()}),window.tourGuiadoDoc={},tourGuiadoDoc=function(){"use strict";function t(){locastyle.guidedTour.init(e)}var e={id:"tourDemoDoc",selectors:{init:"#demo-init"},i18n:{nextBtn:"Pr\xf3ximo",prevBtn:"Anterior",doneBtn:"Ok",skipBtn:"Sair",closeTooltip:"Fechar"},bubbleWidth:250,showPrevButton:!0,steps:[{target:"passo1",title:"O t\xedtulo do passo 1",content:"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",placement:"bottom",arrowOffset:"center"},{target:"passo2",title:"T\xedtulo passo 2",content:"Este \xe9 o texto do passo 2: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",placement:"left",arrowOffset:"center"},{target:"demo-init",title:"T\xedtulo passo 3- Final",content:"Um textinho do passo 3. Lorem ipsum dolor sit amet, consectetur adipisicing elit.",placement:"right",arrowOffset:"center"}]};return{init:t}}(),window.setTimeout(function(){tourGuiadoDoc.init()},1e3); \ No newline at end of file +var Holder=Holder||{};!function(e,t){function a(e,t,a){t=parseInt(t,10),e=parseInt(e,10);var i=Math.max(t,e),o=Math.min(t,e),n=1/12,r=Math.min(.75*o,.75*i*n);return{height:Math.round(Math.max(a.size,r))}}function i(e){var t=[];for(p in e)e.hasOwnProperty(p)&&t.push(p+":"+e[p]);return t.join(";")}function o(e){var t=e.ctx,i=e.dimensions,o=e.template,n=e.ratio,r=e.holder,s="literal"==r.textmode,l="exact"==r.textmode,d=a(i.width,i.height,o),c=d.height,h=i.width*n,u=i.height*n,f=o.font?o.font:"Arial,Helvetica,sans-serif";canvas.width=h,canvas.height=u,t.textAlign="center",t.textBaseline="middle",t.fillStyle=o.background,t.fillRect(0,0,h,u),t.fillStyle=o.foreground,t.font="bold "+c+"px "+f;var g=o.text?o.text:Math.floor(i.width)+"x"+Math.floor(i.height);if(s){var i=r.dimensions;g=i.width+"x"+i.height}else if(l&&r.exact_dimensions){var i=r.exact_dimensions;g=Math.floor(i.width)+"x"+Math.floor(i.height)}var p=t.measureText(g).width;return p/h>=.75&&(c=Math.floor(.75*c*(h/p))),t.font="bold "+c*n+"px "+f,t.fillText(g,h/2,u/2,h),canvas.toDataURL("image/png")}function n(e){var t=e.dimensions,i=e.template,o=e.holder,n="literal"==o.textmode,r="exact"==o.textmode,s=a(t.width,t.height,i),l=s.height,d=t.width,c=t.height,h=i.font?i.font:"Arial,Helvetica,sans-serif",u=i.text?i.text:Math.floor(t.width)+"x"+Math.floor(t.height);if(n){var t=o.dimensions;u=t.width+"x"+t.height}else if(r&&o.exact_dimensions){var t=o.exact_dimensions;u=Math.floor(t.width)+"x"+Math.floor(t.height)}var f=$({text:u,width:d,height:c,text_height:l,font:h,template:i});return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(f)))}function r(e){return b.use_canvas&&!b.use_svg?o(e):n(e)}function s(e,t,a,i){var o=a.dimensions,n=a.theme,s=a.text?decodeURIComponent(a.text):a.text,l=o.width+"x"+o.height;n=s?g(n,{text:s}):n,n=a.font?g(n,{font:a.font}):n,t.setAttribute("data-src",i),a.theme=n,t.holder_data=a,"image"==e?(t.setAttribute("alt",s?s:n.text?n.text+" ["+l+"]":l),(b.use_fallback||!a.auto)&&(t.style.width=o.width+"px",t.style.height=o.height+"px"),b.use_fallback?t.style.backgroundColor=n.background:(t.setAttribute("src",r({ctx:k,dimensions:o,template:n,ratio:_,holder:a})),a.textmode&&"exact"==a.textmode&&(v.push(t),c(t)))):"background"==e?b.use_fallback||(t.style.backgroundImage="url("+r({ctx:k,dimensions:o,template:n,ratio:_,holder:a})+")",t.style.backgroundSize=o.width+"px "+o.height+"px"):"fluid"==e&&(t.setAttribute("alt",s?s:n.text?n.text+" ["+l+"]":l),"%"==o.height.slice(-1)?t.style.height=o.height:null!=a.auto&&a.auto||(t.style.height=o.height+"px"),"%"==o.width.slice(-1)?t.style.width=o.width:null!=a.auto&&a.auto||(t.style.width=o.width+"px"),("inline"==t.style.display||""===t.style.display||"none"==t.style.display)&&(t.style.display="block"),d(t),b.use_fallback?t.style.backgroundColor=n.background:(v.push(t),c(t)))}function l(e,t){var a={height:e.clientHeight,width:e.clientWidth};return a.height||a.width?(e.removeAttribute("data-holder-invisible"),a):(e.setAttribute("data-holder-invisible",!0),void t.call(this,e))}function d(t){if(t.holder_data){var a=l(t,e.invisible_error_fn(d));if(a){var i=t.holder_data;i.initial_dimensions=a,i.fluid_data={fluid_height:"%"==i.dimensions.height.slice(-1),fluid_width:"%"==i.dimensions.width.slice(-1),mode:null},i.fluid_data.fluid_width&&!i.fluid_data.fluid_height?(i.fluid_data.mode="width",i.fluid_data.ratio=i.initial_dimensions.width/parseFloat(i.dimensions.height)):!i.fluid_data.fluid_width&&i.fluid_data.fluid_height&&(i.fluid_data.mode="height",i.fluid_data.ratio=parseFloat(i.dimensions.width)/i.initial_dimensions.height)}}}function c(t){var a;a=null==t.nodeType?v:[t];for(var i in a)if(a.hasOwnProperty(i)){var o=a[i];if(o.holder_data){var n=o.holder_data,s=l(o,e.invisible_error_fn(c));if(s){if(n.fluid){if(n.auto)switch(n.fluid_data.mode){case"width":s.height=s.width/n.fluid_data.ratio;break;case"height":s.width=s.height*n.fluid_data.ratio}o.setAttribute("src",r({ctx:k,dimensions:s,template:n.theme,ratio:_,holder:n}))}n.textmode&&"exact"==n.textmode&&(n.exact_dimensions=s,o.setAttribute("src",r({ctx:k,dimensions:n.dimensions,template:n.theme,ratio:_,holder:n})))}}}}function h(t,a){for(var i={theme:g(A.themes.gray,{})},o=!1,n=t.length,r=0;n>r;r++){var s=t[r];e.flags.dimensions.match(s)?(o=!0,i.dimensions=e.flags.dimensions.output(s)):e.flags.fluid.match(s)?(o=!0,i.dimensions=e.flags.fluid.output(s),i.fluid=!0):e.flags.textmode.match(s)?i.textmode=e.flags.textmode.output(s):e.flags.colors.match(s)?i.theme=e.flags.colors.output(s):a.themes[s]?a.themes.hasOwnProperty(s)&&(i.theme=g(a.themes[s],{})):e.flags.font.match(s)?i.font=e.flags.font.output(s):e.flags.auto.match(s)?i.auto=!0:e.flags.text.match(s)&&(i.text=e.flags.text.output(s))}return o?i:!1}function u(e,t){var a="complete",i="readystatechange",o=!1,n=o,r=!0,s=e.document,l=s.documentElement,d=s.addEventListener?"addEventListener":"attachEvent",c=s.addEventListener?"removeEventListener":"detachEvent",h=s.addEventListener?"":"on",u=function(r){(r.type!=i||s.readyState==a)&&(("load"==r.type?e:s)[c](h+r.type,u,o),!n&&(n=!0)&&t.call(e,null))},f=function(){try{l.doScroll("left")}catch(e){return void setTimeout(f,50)}u("poll")};if(s.readyState==a)t.call(e,"lazy");else{if(s.createEventObject&&l.doScroll){try{r=!e.frameElement}catch(g){}r&&f()}s[d](h+"DOMContentLoaded",u,o),s[d](h+i,u,o),e[d](h+"load",u,o)}}function f(e,t){var e=e.match(/^(\W)?(.*)/),t=t||document,a=t["getElement"+(e[1]?"#"==e[1]?"ById":"sByClassName":"sByTagName")],i=a.call(t,e[2]),o=[];return null!==i&&(o=i.length||0===i.length?i:[i]),o}function g(e,t){var a={};for(var i in e)e.hasOwnProperty(i)&&(a[i]=e[i]);for(var i in t)t.hasOwnProperty(i)&&(a[i]=t[i]);return a}var m={use_svg:!1,use_canvas:!1,use_fallback:!1},b={},w=!1;canvas=document.createElement("canvas");var x=1,y=1,v=[];if(canvas.getContext)if(canvas.toDataURL("image/png").indexOf("data:image/png")<0)m.use_fallback=!0;else var k=canvas.getContext("2d");else m.use_fallback=!0;document.createElementNS&&document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect&&(m.use_svg=!0,m.use_canvas=!1),m.use_fallback||(x=window.devicePixelRatio||1,y=k.webkitBackingStorePixelRatio||k.mozBackingStorePixelRatio||k.msBackingStorePixelRatio||k.oBackingStorePixelRatio||k.backingStorePixelRatio||1);var _=x/y,A={domain:"holder.js",images:"img",bgnodes:".holderjs",themes:{gray:{background:"#eee",foreground:"#aaa",size:12},social:{background:"#3a5a97",foreground:"#fff",size:12},industrial:{background:"#434A52",foreground:"#C2F200",size:12},sky:{background:"#0D8FDB",foreground:"#fff",size:12},vine:{background:"#39DBAC",foreground:"#1E292C",size:12},lava:{background:"#F8591A",foreground:"#1C2846",size:12}},stylesheet:""};e.flags={dimensions:{regex:/^(\d+)x(\d+)$/,output:function(e){var t=this.regex.exec(e);return{width:+t[1],height:+t[2]}}},fluid:{regex:/^([0-9%]+)x([0-9%]+)$/,output:function(e){var t=this.regex.exec(e);return{width:t[1],height:t[2]}}},colors:{regex:/#([0-9a-f]{3,})\:#([0-9a-f]{3,})/i,output:function(e){var t=this.regex.exec(e);return{size:A.themes.gray.size,foreground:"#"+t[2],background:"#"+t[1]}}},text:{regex:/text\:(.*)/,output:function(e){return this.regex.exec(e)[1]}},font:{regex:/font\:(.*)/,output:function(e){return this.regex.exec(e)[1]}},auto:{regex:/^auto$/},textmode:{regex:/textmode\:(.*)/,output:function(e){return this.regex.exec(e)[1]}}};var $=function(){if(window.XMLSerializer){var e=new XMLSerializer,t="http://www.w3.org/2000/svg",a=document.createElementNS(t,"svg");a.webkitMatchesSelector&&a.setAttribute("xmlns","http://www.w3.org/2000/svg");var o=document.createElementNS(t,"rect"),n=document.createElementNS(t,"text"),r=document.createTextNode(null);return n.setAttribute("text-anchor","middle"),n.appendChild(r),a.appendChild(o),a.appendChild(n),function(t){return a.setAttribute("width",t.width),a.setAttribute("height",t.height),o.setAttribute("width",t.width),o.setAttribute("height",t.height),o.setAttribute("fill",t.template.background),n.setAttribute("x",t.width/2),n.setAttribute("y",t.height/2),r.nodeValue=t.text,n.setAttribute("style",i({fill:t.template.foreground,"font-weight":"bold","font-size":t.text_height+"px","font-family":t.font,"dominant-baseline":"central"})),e.serializeToString(a)}}}();for(var S in e.flags)e.flags.hasOwnProperty(S)&&(e.flags[S].match=function(e){return e.match(this.regex)});e.invisible_error_fn=function(e){return function(e){if(e.hasAttribute("data-holder-invisible"))throw new Error("Holder: invisible placeholder")}},e.add_theme=function(t,a){return null!=t&&null!=a&&(A.themes[t]=a),e},e.add_image=function(t,a){var i=f(a);if(i.length)for(var o=0,n=i.length;n>o;o++){var r=document.createElement("img");r.setAttribute("data-src",t),i[o].appendChild(r)}return e},e.run=function(t){b=g({},m),w=!0;var a=g(A,t),i=[],o=[],n=[];for(null!=a.use_canvas&&a.use_canvas&&(b.use_canvas=!0,b.use_svg=!1),"string"==typeof a.images?o=f(a.images):window.NodeList&&a.images instanceof window.NodeList?o=a.images:window.Node&&a.images instanceof window.Node?o=[a.images]:window.HTMLCollection&&a.images instanceof window.HTMLCollection&&(o=a.images),"string"==typeof a.bgnodes?n=f(a.bgnodes):window.NodeList&&a.elements instanceof window.NodeList?n=a.bgnodes:window.Node&&a.bgnodes instanceof window.Node&&(n=[a.bgnodes]),c=0,d=o.length;d>c;c++)i.push(o[c]);var r=document.getElementById("holderjs-style");r||(r=document.createElement("style"),r.setAttribute("id","holderjs-style"),r.type="text/css",document.getElementsByTagName("head")[0].appendChild(r)),a.nocss||(r.styleSheet?r.styleSheet.cssText+=a.stylesheet:a.stylesheet.length&&r.appendChild(document.createTextNode(a.stylesheet)));for(var l=new RegExp(a.domain+'/(.*?)"?\\)'),d=n.length,c=0;d>c;c++){var u=window.getComputedStyle(n[c],null).getPropertyValue("background-image"),p=u.match(l),x=n[c].getAttribute("data-background-src");if(p){var y=h(p[1].split("/"),a);y&&s("background",n[c],y,u)}else if(null!=x){var y=h(x.substr(x.lastIndexOf(a.domain)+a.domain.length+1).split("/"),a);y&&s("background",n[c],y,u)}}for(d=i.length,c=0;d>c;c++){var v,k;k=v=u=null;try{k=i[c].getAttribute("src"),attr_datasrc=i[c].getAttribute("data-src")}catch(_){}if(null==attr_datasrc&&k&&k.indexOf(a.domain)>=0?u=k:attr_datasrc&&attr_datasrc.indexOf(a.domain)>=0&&(u=attr_datasrc),u){var y=h(u.substr(u.lastIndexOf(a.domain)+a.domain.length+1).split("/"),a);y&&(y.fluid?s("fluid",i[c],y,u):s("image",i[c],y,u))}}return e},u(t,function(){window.addEventListener?(window.addEventListener("resize",c,!1),window.addEventListener("orientationchange",c,!1)):window.attachEvent("onresize",c),w||e.run({}),"object"==typeof window.Turbolinks&&document.addEventListener("page:change",function(){e.run({})})}),"function"==typeof define&&define.amd&&define([],function(){return e}),function(){function e(e){this.message=e}var t="undefined"!=typeof exports?exports:this,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.prototype=Error(),e.prototype.name="InvalidCharacterError",t.btoa||(t.btoa=function(t){for(var i,o,n=0,r=a,s="";t.charAt(0|n)||(r="=",n%1);s+=r.charAt(63&i>>8-8*(n%1))){if(o=t.charCodeAt(n+=.75),o>255)throw new e("'btoa' failed");i=i<<8|o}return s}),t.atob||(t.atob=function(t){if(t=t.replace(/=+$/,""),1==t.length%4)throw new e("'atob' failed");for(var i,o,n=0,r=0,s="";o=t.charAt(r++);~o&&(i=n%4?64*i+o:o,n++%4)?s+=String.fromCharCode(255&i>>(6&-2*n)):0)o=a.indexOf(o);return s})}(),document.getElementsByClassName||(document.getElementsByClassName=function(e){var t,a,i,o=document,n=[];if(o.querySelectorAll)return o.querySelectorAll("."+e);if(o.evaluate)for(a=".//*[contains(concat(' ', @class, ' '), ' "+e+" ')]",t=o.evaluate(a,o,null,0,null);i=t.iterateNext();)n.push(i);else for(t=o.getElementsByTagName("*"),a=new RegExp("(^|\\s)"+e+"(\\s|$)"),i=0;i'+i.title,a+="

"+i.description+"

")}),$("#results").html(a)})});var lsdocs=function(){"use strict";function e(){i(),o(),a(),t()}function t(e){$(".doc-test-themes").find("a").on("click",function(){var e=$(this).data("toggle-class");$("html").attr("class",$("html").attr("class").split(" ").map(function(e){return/ls-theme/.test(e)?"":e}).join(" ").replace(/ /g,"")).addClass(e)})}function a(){$(".doc-menu").on("click",function(){$(this).toggleClass("active")})}function i(){$("code.language-html").each(function(e,t){var a=$(this).html();$(this).text(a),$(this).removeClass("language-html").addClass("language-markup")})}function o(){if($("html").hasClass("ls-window-lg")||$("html").hasClass("ls-window-md")){var e=$(".doc-sidebar-inner").width();$(".doc-sidebar-inner").height()<$(window).height()&&$(window).scroll(function(){var t=$(this).scrollTop();t+$(window).height()+40==$(document).height()+40&&$(".doc-sidebar-inner").css("margin-top","0px"),t>="391"?$(".doc-sidebar-inner").addClass("doc-affix").css("width",e):$(".doc-sidebar-inner").removeClass("doc-affix").removeAttr("style")})}}return{init:e}}();$(window).on("load",function(){lsdocs.init()});var lsdocs=lsdocs||{};lsdocs.icones=function(){"use strict";function e(){t(),a()}function t(){var e='

';$(".list-icons").eq(0).before(e)}function a(){$("#searchIcons").on("keyup",function(e){var t=$(this).val(),a=$("#searchResultText"),o=i.find('[class*="'+t+'"]');console.log(o),t.length>0?0===o.size()?(a.html("Nenhum \xedcone encontrado com o termo: "+t+""),i.hide()):(i.hide(),o.parent(".list-icons li").show(),a.html("Encontrado(s) "+o.size()+" \xedcone(s)")):(i.show(),a.html(" "))})}var i=$(".list-icons li");return{init:e}}(),$(window).on("load",function(){lsdocs.icones.init()}),window.tourGuiadoDoc={},tourGuiadoDoc=function(){"use strict";function e(){locastyle.guidedTour.init(t)}var t={id:"tourDemoDoc",selectors:{init:"#demo-init"},i18n:{nextBtn:"Pr\xf3ximo",prevBtn:"Anterior",doneBtn:"Ok",skipBtn:"Sair",closeTooltip:"Fechar"},bubbleWidth:250,showPrevButton:!0,steps:[{target:"passo1",title:"O t\xedtulo do passo 1",content:"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",placement:"bottom",arrowOffset:"center"},{target:"passo2",title:"T\xedtulo passo 2",content:"Este \xe9 o texto do passo 2: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",placement:"left",arrowOffset:"center"},{target:"demo-init",title:"T\xedtulo passo 3- Final",content:"Um textinho do passo 3. Lorem ipsum dolor sit amet, consectetur adipisicing elit.",placement:"right",arrowOffset:"center"}]};return{init:e}}(),window.setTimeout(function(){tourGuiadoDoc.init()},1e3); \ No newline at end of file diff --git a/assets/javascripts/docs/test.js b/assets/javascripts/docs/test.js index 2d1e69de2..83c3d7958 100644 --- a/assets/javascripts/docs/test.js +++ b/assets/javascripts/docs/test.js @@ -1 +1 @@ -var stressTest=function(){function e(e,t){y.call(w(t),function(n){try{var a=n.replace(/\-([a-z])/gi,function(e,t){return t.toUpperCase()}),o=t[n];e.style[a]="number"==typeof o&&"zIndex"!=a?o+"px":o}catch(r){}})}function t(e){var t=e.all||n(document),a={};return y.call(t,function(e){e.className&&!e.toString().match(/svg/i)?y.call(v.call(e.className.split(g),function(e){return e.length>0}),function(t){a["."+t]||(a["."+t]=[]),a["."+t].push(e)}):e.id&&(a["#"+e.id]||(a["#"+e.id]=[]),a["#"+e.id].push(e))}),a}function n(e,t){if(t||(t="*"),"undefined"!=typeof e.length){var a=[];return y.call(e,function(e){y.call(n(e,t),function(e){a.push(e)})}),a}var o=t.split(" ");if(o.length>1){var a=[];return y.call(o,function(t){y.call(n(e,t),function(e){a.push(e)})}),a}return e.all&&"*"==t?e.all:e.getElementsByTagName(t)}function a(e,t,n){var a=t.split("."),o=e.attachEvent?function(){n.call(e,window.event)}:n;e.__events||(e.__events={}),e.__events[t]||(e.__events[t]=[]),e.__events[t].push(o),e.attachEvent?e.attachEvent("on"+a[0],o):e.addEventListener&&e.addEventListener(a[0],o,!0)}function o(e,t,n){if(!n&&e.__events&&e.__events[t]){var a=[],r=e.__events[t];a.push.apply(a,r),r.slice(r.length),y.call(a,function(n){o(e,t,n)})}else{var i=t.split(".");if(e.detachEvent?e.detachEvent("on"+i[0],n):e.removeEventListener&&e.removeEventListener(i[0],n,!0),e.__events&&e.__events[t]){var s=x.call(e.__events[t],n);s>-1&&e.__events[t].splice(s,1)}}e=null}function r(e,t){y.call(e,function(e){e&&(e.className=i(v.call((e.className||"").split(g),function(e){return e!=t})).join(" "))})}function i(e){var t={};return y.call(e,function(e){t[e]=!0}),w(t)}function s(e,t){y.call(e,function(e){if(e){var n=(e.className||"").split(" ");n.push(t),e.className=i(n).join(" ")}})}function l(e,t){var n=t.substr(0,1);t=t.substr(1),"."===n?r(e,t):"#"===n&&y.call(e,function(e){e.attributes.removeNamedItem("id")})}function c(e,t){var n=t.substr(0,1);t=t.substr(1),"."===n?s(e,t):"#"===n&&y.call(e,function(e){e.id=t})}function d(e,t,a){var o=t.elms[e]||[];l(o,e),t.beforeTest&&t.beforeTest({elms:o,selector:e}),h(t,t.times,function(r){c(o,e),e==b?t.baseTime=r:(t.results[e]={length:o.length,children:n(o).length,time:r,delta:r-t.baseTime},t.afterTest&&t.afterTest({elms:o,selector:e,result:t.results[e]})),a(e,r)})}function h(e,t,n){var r=+new Date,i=!1,s=e.work||function(){i=!1,window.scrollTo(0,t%2===0?100:0)};t*=2,a(window,"scroll.stressTest",function(){i||(i=!0,--t>0&&!e.cancel?setTimeout(s,0):setTimeout(function(){o(window,"scroll.stressTest"),n(+new Date-r)},0))}),s()}function p(e,t,n){return t=t||{},y.call(w(e),function(a){(n||!t.hasOwnProperty(a))&&(t[a]=e[a])}),t}function u(e){e=p({times:0,beforeTest:null,afterTest:null,elms:t(e.all),results:{},finish:null},e),window.scrollTo(0,0);var n=e.queue=w(e.elms),r=function(t,a){n.length>0&&!e.cancel?d(n.shift(),e,r):(o(document,"keydown.stressTest"),e.finish&&e.finish())};a(document,"keydown.stressTest",function(t){27==t.keyCode&&(e.cancel=!0)}),e.times=15,d(b,e,function(t,n){e.times=Math.round(45/n*750),d(b,e,r)})}function f(e,t,n){t=t||0,n=n||2;for(var a=(e+".").split(".");a[0].lengthn)a[1]="";else if(a[1].length>n)a[1]=a[1].substr(0,n);else for(;a[1].length0?"."+a[1]:"")}function m(t,a){var o="",r=w(t.results),i=r.sort(function(e,n){return t.results[e].time-t.results[n].time}).slice(0,20);y.call(i,function(e){o+='\n"}),o+='
Selector# Elms.# Child. DeltaTotal
Removing '+e+''+t.results[e].length+''+t.results[e].children+''+(t.results[e].delta<0?'saves':'adds')+''+f(Math.abs(t.results[e].delta)/t.times)+'ms'+f(t.results[e].time/t.times)+"ms

",v.call(r,function(e){return t.results[e].time<=15}).length&&(o+=''),a.innerHTML=o+"
Selectors Tested:'+r.length+'
Baseline Time:'+f(t.baseTime/t.times)+'ms
Num. Tests:'+t.times+"
Warning:Increase the number
of tests to get more
accurate results
",y.call(n(a,"td th"),function(t){e(t,{padding:1,verticalAlign:"top",whiteSpace:"nowrap",fontSize:12})})}var b="LocawebStyle",g=/\s+/,w=Object.keys||function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t},y=Array.prototype.forEach||function(e){for(var t=0,n=this.length;n>t;t++)e.call(this,this[t],t,this)},v=Array.prototype.filter||function(e){var t=[];return y.call(this,function(n){e(n)&&t.push(n)}),t},x=Array.prototype.indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(this[t]===e)return t;return-1};return u.bind=a,u.unbind=o,u.bookmarklet=function(){u.report&&u.report.close();var t=document.createElement("iframe"),r=document.createElement("iframe");p({scrolling:"no",frameBorder:"no"},t,!0),document.body.appendChild(t),t.doc=t.contentDocument||t.contentWindow.document,t.doc.write(""),t.doc.close();var i=t.doc.createElement("div"),s=t.doc.createElement("a"),l={finish:function(){this.cancel?t.close():m(this,i)},beforeTest:function(e){var t=this.queue.length;i.innerHTML="Testing "+e.selector+"
"+t+" test"+(1===t?"":"s")+" remain"},all:n(document)};t.resize=function(){var n=t.doc.body;e(t,{width:n.scrollWidth,height:n.scrollHeight})},setInterval(t.resize,100);var c=0;y.call(l.all,function(e){var t=parseInt(e.style.zIndex,10);!isNaN(t)&&t>c&&(c=t)}),c+=99999,e(t,{position:"fixed",top:"30%",right:10,zIndex:c,background:"white",padding:2,border:"solid 2px #aaa",width:200,height:40,borderRadius:4,boxShadow:"0 0 8px #eee"}),e(t.doc.body,{font:"12px Helvetica,Arials,sans-serif",color:"#444"}),e(i,{whiteSpace:"nowrap"}),s.innerHTML="×",e(s,{position:"absolute",top:0,right:0,textDecoration:"none",fontWeight:"bold",cursor:"pointer",color:"red",fontSize:"1.3em",lineHeight:8}),t.close=function(){t.parentNode.removeChild(t),r.parentNode.removeChild(r),o(s,"click"),u.report=null,l.cancel=!0},a(s,"click",t.close),e(r,{height:2*window.screen.height,width:window.screen.width,position:"absolute",top:0,left:0,visible:"hidden",zIndex:c-1}),document.body.appendChild(r),t.doc.body.appendChild(s),t.doc.body.appendChild(i),u.report=t,u(l)},u}(); \ No newline at end of file +var stressTest=function(){function t(t,e){b.call(y(e),function(n){try{var a=n.replace(/\-([a-z])/gi,function(t,e){return e.toUpperCase()}),i=e[n];t.style[a]="number"==typeof i&&"zIndex"!=a?i+"px":i}catch(o){}})}function e(t){var e=t.all||n(document),a={};return b.call(e,function(t){t.className&&!t.toString().match(/svg/i)?b.call(w.call(t.className.split(v),function(t){return t.length>0}),function(e){a["."+e]||(a["."+e]=[]),a["."+e].push(t)}):t.id&&(a["#"+t.id]||(a["#"+t.id]=[]),a["#"+t.id].push(t))}),a}function n(t,e){if(e||(e="*"),"undefined"!=typeof t.length){var a=[];return b.call(t,function(t){b.call(n(t,e),function(t){a.push(t)})}),a}var i=e.split(" ");if(i.length>1){var a=[];return b.call(i,function(e){b.call(n(t,e),function(t){a.push(t)})}),a}return t.all&&"*"==e?t.all:t.getElementsByTagName(e)}function a(t,e,n){var a=e.split("."),i=t.attachEvent?function(){n.call(t,window.event)}:n;t.__events||(t.__events={}),t.__events[e]||(t.__events[e]=[]),t.__events[e].push(i),t.attachEvent?t.attachEvent("on"+a[0],i):t.addEventListener&&t.addEventListener(a[0],i,!0)}function i(t,e,n){if(!n&&t.__events&&t.__events[e]){var a=[],o=t.__events[e];a.push.apply(a,o),o.slice(o.length),b.call(a,function(n){i(t,e,n)})}else{var s=e.split(".");if(t.detachEvent?t.detachEvent("on"+s[0],n):t.removeEventListener&&t.removeEventListener(s[0],n,!0),t.__events&&t.__events[e]){var r=_.call(t.__events[e],n);r>-1&&t.__events[e].splice(r,1)}}t=null}function o(t,e){b.call(t,function(t){t&&(t.className=s(w.call((t.className||"").split(v),function(t){return t!=e})).join(" "))})}function s(t){var e={};return b.call(t,function(t){e[t]=!0}),y(e)}function r(t,e){b.call(t,function(t){if(t){var n=(t.className||"").split(" ");n.push(e),t.className=s(n).join(" ")}})}function l(t,e){var n=e.substr(0,1);e=e.substr(1),"."===n?o(t,e):"#"===n&&b.call(t,function(t){t.attributes.removeNamedItem("id")})}function c(t,e){var n=e.substr(0,1);e=e.substr(1),"."===n?r(t,e):"#"===n&&b.call(t,function(t){t.id=e})}function u(t,e,a){var i=e.elms[t]||[];l(i,t),e.beforeTest&&e.beforeTest({elms:i,selector:t}),d(e,e.times,function(o){c(i,t),t==g?e.baseTime=o:(e.results[t]={length:i.length,children:n(i).length,time:o,delta:o-e.baseTime},e.afterTest&&e.afterTest({elms:i,selector:t,result:e.results[t]})),a(t,o)})}function d(t,e,n){var o=+new Date,s=!1,r=t.work||function(){s=!1,window.scrollTo(0,e%2===0?100:0)};e*=2,a(window,"scroll.stressTest",function(){s||(s=!0,--e>0&&!t.cancel?setTimeout(r,0):setTimeout(function(){i(window,"scroll.stressTest"),n(+new Date-o)},0))}),r()}function h(t,e,n){return e=e||{},b.call(y(t),function(a){(n||!e.hasOwnProperty(a))&&(e[a]=t[a])}),e}function f(t){t=h({times:0,beforeTest:null,afterTest:null,elms:e(t.all),results:{},finish:null},t),window.scrollTo(0,0);var n=t.queue=y(t.elms),o=function(e,a){n.length>0&&!t.cancel?u(n.shift(),t,o):(i(document,"keydown.stressTest"),t.finish&&t.finish())};a(document,"keydown.stressTest",function(e){27==e.keyCode&&(t.cancel=!0)}),t.times=15,u(g,t,function(e,n){t.times=Math.round(45/n*750),u(g,t,o)})}function p(t,e,n){e=e||0,n=n||2;for(var a=(t+".").split(".");a[0].lengthn)a[1]="";else if(a[1].length>n)a[1]=a[1].substr(0,n);else for(;a[1].length0?"."+a[1]:"")}function m(e,a){var i="",o=y(e.results),s=o.sort(function(t,n){return e.results[t].time-e.results[n].time}).slice(0,20);b.call(s,function(t){i+='\n"}),i+='
Selector# Elms.# Child. DeltaTotal
Removing '+t+''+e.results[t].length+''+e.results[t].children+''+(e.results[t].delta<0?'saves':'adds')+''+p(Math.abs(e.results[t].delta)/e.times)+'ms'+p(e.results[t].time/e.times)+"ms

",w.call(o,function(t){return e.results[t].time<=15}).length&&(i+=''),a.innerHTML=i+"
Selectors Tested:'+o.length+'
Baseline Time:'+p(e.baseTime/e.times)+'ms
Num. Tests:'+e.times+"
Warning:Increase the number
of tests to get more
accurate results
",b.call(n(a,"td th"),function(e){t(e,{padding:1,verticalAlign:"top",whiteSpace:"nowrap",fontSize:12})})}var g="LocawebStyle",v=/\s+/,y=Object.keys||function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e},b=Array.prototype.forEach||function(t){for(var e=0,n=this.length;n>e;e++)t.call(this,this[e],e,this)},w=Array.prototype.filter||function(t){var e=[];return b.call(this,function(n){t(n)&&e.push(n)}),e},_=Array.prototype.indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(this[e]===t)return e;return-1};return f.bind=a,f.unbind=i,f.bookmarklet=function(){f.report&&f.report.close();var e=document.createElement("iframe"),o=document.createElement("iframe");h({scrolling:"no",frameBorder:"no"},e,!0),document.body.appendChild(e),e.doc=e.contentDocument||e.contentWindow.document,e.doc.write(""),e.doc.close();var s=e.doc.createElement("div"),r=e.doc.createElement("a"),l={finish:function(){this.cancel?e.close():m(this,s)},beforeTest:function(t){var e=this.queue.length;s.innerHTML="Testing "+t.selector+"
"+e+" test"+(1===e?"":"s")+" remain"},all:n(document)};e.resize=function(){var n=e.doc.body;t(e,{width:n.scrollWidth,height:n.scrollHeight})},setInterval(e.resize,100);var c=0;b.call(l.all,function(t){var e=parseInt(t.style.zIndex,10);!isNaN(e)&&e>c&&(c=e)}),c+=99999,t(e,{position:"fixed",top:"30%",right:10,zIndex:c,background:"white",padding:2,border:"solid 2px #aaa",width:200,height:40,borderRadius:4,boxShadow:"0 0 8px #eee"}),t(e.doc.body,{font:"12px Helvetica,Arials,sans-serif",color:"#444"}),t(s,{whiteSpace:"nowrap"}),r.innerHTML="×",t(r,{position:"absolute",top:0,right:0,textDecoration:"none",fontWeight:"bold",cursor:"pointer",color:"red",fontSize:"1.3em",lineHeight:8}),e.close=function(){e.parentNode.removeChild(e),o.parentNode.removeChild(o),i(r,"click"),f.report=null,l.cancel=!0},a(r,"click",e.close),t(o,{height:2*window.screen.height,width:window.screen.width,position:"absolute",top:0,left:0,visible:"hidden",zIndex:c-1}),document.body.appendChild(o),e.doc.body.appendChild(r),e.doc.body.appendChild(s),f.report=e,f(l)},f}(); \ No newline at end of file diff --git a/assets/javascripts/example.js b/assets/javascripts/example.js index 882de72bc..ffedb8f72 100644 --- a/assets/javascripts/example.js +++ b/assets/javascripts/example.js @@ -1 +1 @@ -window.tourGuiado={},tourGuiado=function(){"use strict";function e(){locastyle.guidedTour.init(u)}function t(){locastyle.guidedTour.init(h)}function o(){locastyle.guidedTour.init(p)}function n(){locastyle.guidedTour.init(m)}function i(){locastyle.guidedTour.init(f)}function a(){locastyle.guidedTour.init(g)}function s(){locastyle.guidedTour.init(b)}function r(){locastyle.guidedTour.init(w)}function l(){locastyle.guidedTour.init(v)}function c(){locastyle.guidedTour.init(x)}function d(){locastyle.guidedTour.init(y)}var u={id:"tourDemo",selectors:{init:"#demo-init"},i18n:{nextBtn:"Pr\xf3ximo",prevBtn:"Anterior",doneBtn:"Ok",skipBtn:"Sair",closeTooltip:"Fechar"},bubbleWidth:250,showPrevButton:!0,steps:[{target:".ls-menu",title:"Menu",content:"Acesse de forma r\xe1pida os recursos mais importantes.",placement:"right",arrowOffset:"center"},{target:".ls-ico-dashboard",title:"Consumo",content:"Acompanhe o consumo dos envios do seu plano no per\xedodo.",placement:"top",arrowOffset:"center"},{target:".ls-ico-user-add .ls-btn-primary",title:"Comece por aqui",content:"Cadastre seus clientes e adicione envios.",placement:"top",arrowOffset:"center"},{target:".ls-ico-user-add ~ .ls-title-3",title:"Personalize sua revenda",content:"Siga os passos abaixo para personalizar sua revenda.",placement:"top",arrowOffset:"center",xOffset:-30},{target:".ls-user-account",title:"Sua conta",content:"Detalhes de seu login Locaweb.",placement:"bottom",arrowOffset:"center",xOffset:-50},{target:".ls-alerts-list",title:"Ficou com d\xfavidas?",content:"Acesse nossos canais de ajuda.",placement:"bottom",arrowOffset:"center",xOffset:-50},{target:".ls-alerts-list",title:"Ajude a melhorar o painel",content:"Fique \xe0 vontade para enviar sugest\xf5es e coment\xe1rios.",placement:"bottom",arrowOffset:"center",xOffset:-90}]},h={id:"tourDemo",selectors:{init:"#demo-init"},i18n:{nextBtn:"Pr\xf3ximo",prevBtn:"Anterior",doneBtn:"Ok",skipBtn:"Sair",closeTooltip:"Fechar"},bubbleWidth:250,showPrevButton:!0,steps:[{target:".ls-menu",title:"Menu",content:"Acesse de forma r\xe1pida os recursos mais importantes.",placement:"right",arrowOffset:"center"},{target:".ls-ico-dashboard",title:"Consumo",content:"Acompanhe o consumo dos envios do seu plano no per\xedodo.",placement:"top",arrowOffset:"center"},{target:".ls-board-box ~ .ls-title-3",title:"Cliente que contrataram",content:"Acompanhe os clientes que mais contrataram no per\xedodo.",placement:"top",arrowOffset:"center"},{target:".col-md-6 .ls-title-3",title:"Sem saldo de envio",content:"Saiba quais clientes est\xe3o sem saldo e ofere\xe7a mais envios.",placement:"top",arrowOffset:"center"},{target:".col-md-6:nth-child(2) .ls-title-3",title:"Bloqueados por bounce",content:'Saiba quais clientes foram bloqueados por abuso de bounces. Consulte a pol\xedtica de bounce.',placement:"top",arrowOffset:"center"},{target:".ls-user-account",title:"Sua conta",content:"Detalhes de seu login Locaweb.1",placement:"bottom",arrowOffset:"center",xOffset:-50},{target:".ls-alerts-list",title:"Ficou com d\xfavidas?",content:"Acesse nossos canais de ajuda.",placement:"bottom",arrowOffset:"center",xOffset:-50},{target:".ls-alerts-list",title:"Ajude a melhorar o painel",content:"Fique \xe0 vontade para enviar sugest\xf5es e coment\xe1rios.",placement:"bottom",arrowOffset:"center",xOffset:-90}]},p={id:"tourDemo",selectors:{init:"#demo-init"},i18n:{nextBtn:"Pr\xf3ximo",prevBtn:"Anterior",doneBtn:"Ok",skipBtn:"Sair",closeTooltip:"Fechar"},bubbleWidth:250,showPrevButton:!0,steps:[{target:".ls-main .ls-btn-primary",title:"Cadastre um novo cliente",content:"Adicione seus novos clientes.",placement:"top",arrowOffset:"center",xOffset:-75},{target:".ls-custom-select-one:nth-child(1)",title:"Filtro por status",content:"Busque um cliente por status.",placement:"top",arrowOffset:"center"},{target:".ls-box-filter form:nth-child(2) input",title:"Busca por nome",content:"Procure um cliente por nome.",placement:"left",arrowOffset:"center",yOffset:-55,xOffset:30},{target:".ls-table th:nth-child(3)",title:"Validade dos envios do cliente",content:"Acompanhe a quantidade e validade de uso dos envios para este cliente.",placement:"top",arrowOffset:"center"},{target:".ls-table tr:nth-child(1) .ls-regroup .ls-btn",title:"Administre seu cliente",content:"Edite os dados, a distribui\xe7\xe3o de envios e acompanhe o uso de cada cliente.",placement:"left",arrowOffset:"center",yOffset:-70,xOffset:35}]},m={id:"tourDemo",selectors:{init:"#demo-init"},i18n:{nextBtn:"Pr\xf3ximo",prevBtn:"Anterior",doneBtn:"Ok",skipBtn:"Sair",closeTooltip:"Fechar"},bubbleWidth:250,showPrevButton:!0,steps:[{target:".ls-form legend",title:"Informa\xe7\xf5es do seu cliente",content:"Preencha os dados do seu cliente e defina uma senha para ele acessar o painel.",placement:"top",arrowOffset:"center"},{target:".ls-box-gray .row .ls-label:nth-child(2)",title:"Quantidade de envios",content:"Defina a quantidade de envios que seu cliente poder\xe1 utilizar.",placement:"top",arrowOffset:"center"},{target:".ls-box-gray .ls-label:nth-child(3)",title:"Recorr\xeancia",content:"Marque se ele vai receber esta mesma quantidade todo m\xeas.",placement:"top",arrowOffset:"center"}]},f={id:"tourDemo",selectors:{init:"#demo-init"},i18n:{nextBtn:"Pr\xf3ximo",prevBtn:"Anterior",doneBtn:"Ok",skipBtn:"Sair",closeTooltip:"Fechar"},bubbleWidth:250,showPrevButton:!0,steps:[{target:".ls-regroup .ls-btn-primary",title:"Acesso ao painel do seu cliente",content:"Tenha acesso ao painel do cliente.",placement:"left",arrowOffset:"center",yOffset:-80,xOffset:35,onNext:function(){$(".ls-main .ls-dropdown .ls-btn").click()}},{target:".ls-dropdown .ls-btn",title:"Gerencie seu cliente",content:"Edite os dados, altere a senha ou desative o cliente.",placement:"left",arrowOffset:"center",xOffset:40,yOffset:-60,onNext:function(){$(".ls-main .ls-dropdown .ls-btn").click()},onPrev:function(){$(".ls-main .ls-dropdown .ls-btn").click()}},{target:".ls-ico-calendar-check",title:"Envios dispon\xedveis dos per\xedodos",content:"Altere a quantidade de envios dispon\xedveis no per\xedodo atual ou no pr\xf3ximo per\xedodo.",placement:"top",arrowOffset:"center"},{target:".ls-main h3.ls-title-3",title:"Relat\xf3rios",content:"Acompanhe o relat\xf3rio de contrata\xe7\xe3o e uso dos envios.",placement:"right",arrowOffset:"center",xOffset:-500,yOffset:-60},{target:".container-fluid > .ls-title-3",title:"Hist\xf3rico",content:"Acompanhe o hist\xf3rico de distribui\xe7\xe3o de envios.",placement:"top",arrowOffset:"center"}]},g={id:"tourDemo",selectors:{init:"#demo-init"},i18n:{nextBtn:"Pr\xf3ximo",prevBtn:"Anterior",doneBtn:"Ok",skipBtn:"Sair",closeTooltip:"Fechar"},bubbleWidth:250,showPrevButton:!0,steps:[{target:".ls-tabs-nav",title:"Relat\xf3rios da sua revenda",content:"Acompanhe a distribui\xe7\xe3o de envios e dos status de seus clientes.",placement:"top",arrowOffset:"center"}]},b={id:"tourDemo",selectors:{init:"#demo-init"},i18n:{nextBtn:"Pr\xf3ximo",prevBtn:"Anterior",doneBtn:"Ok",skipBtn:"Sair",closeTooltip:"Fechar"},bubbleWidth:250,showPrevButton:!0,steps:[{target:".col-md-6:nth-child(1) .ls-title-2",title:"Dom\xednio dos links",content:"Personalize o padr\xe3o do dom\xednio dos links das mensagens que seus clientes enviam.",placement:"top",arrowOffset:"center"},{target:".col-md-6:nth-child(2) .ls-title-2",title:"Dom\xednio de acesso",content:"Personalize o dom\xednio que seu cliente acessa o painel da sua revenda.",placement:"top",arrowOffset:"center"}]},w={id:"tourDemo",selectors:{init:"#demo-init"},i18n:{nextBtn:"Pr\xf3ximo",prevBtn:"Anterior",doneBtn:"Ok",skipBtn:"Sair",closeTooltip:"Fechar"},bubbleWidth:250,showPrevButton:!0,steps:[{target:".ls-form",title:"E-mail de remetente da sua revenda",content:"Configure o e-mail que seus clientes receber\xe3o.",placement:"top",arrowOffset:"center"}]},v={id:"tourDemo",selectors:{init:"#demo-init"},i18n:{nextBtn:"Pr\xf3ximo",prevBtn:"Anterior",doneBtn:"Ok",skipBtn:"Sair",closeTooltip:"Fechar"},bubbleWidth:250,showPrevButton:!0,steps:[{target:".ls-main img",title:"Exemplo do painel de seus clientes",content:"Veja como fica o painel da sua revenda para seus clientes.",placement:"top",arrowOffset:"center",xOffset:-50},{target:".ls-main .ls-box .ls-label",title:"Personalize o nome da revenda ",content:"Deixe o nome da revenda com o nome da sua empresa.",placement:"top",arrowOffset:"center"},{target:".ls-main .ls-box:nth-child(2)",title:"Identifica\xe7\xe3o da sua marca",content:"Defina como ser\xe1 exibido o cabe\xe7alho do painel e dos e-mails que seus clientes recebem da sua revenda.",placement:"top",arrowOffset:"center"},{target:".ls-main .col-md-9 > .ls-box:nth-child(3)",title:"Personalize a cor",content:"Escolha a cor do painel que combine com sua empresa.",placement:"top",arrowOffset:"center"}]},x={id:"tourDemo",selectors:{init:"#demo-init"},i18n:{nextBtn:"Pr\xf3ximo",prevBtn:"Anterior",doneBtn:"Ok",skipBtn:"Sair",closeTooltip:"Fechar"},bubbleWidth:250,showPrevButton:!0,steps:[{target:".ls-main .col-md-6:nth-child(1) .ls-form",title:"Ofere\xe7a suporte por telefone",content:"Preencha o n\xfamero que ser\xe1 exibido no rodap\xe9 do painel do seu cliente.",placement:"top",arrowOffset:"center"},{target:".ls-main .col-md-6:nth-child(2) .ls-form",title:"Ofere\xe7a suporte por um sistema de chamados",content:"Preencha o endere\xe7o da sua conta Webdesk. O link ser\xe1 exibido no rodap\xe9 do painel do seu cliente.",placement:"top",arrowOffset:"center"}]},y={id:"tourDemo",selectors:{init:"#demo-init"},i18n:{nextBtn:"Pr\xf3ximo",prevBtn:"Anterior",doneBtn:"Ok",skipBtn:"Sair",closeTooltip:"Fechar"},bubbleWidth:250,showPrevButton:!0,steps:[{target:".ls-box",title:"Integre com outros sistemas",content:"Utilize os dados para autenticar suas chamadas na API.",placement:"top",arrowOffset:"center"}]};return{firstTour:e,homeTour:t,clientTour:o,registerClientTour:n,adminClientTour:i,statsTour:a,configDomainTour:s,configEmailTour:r,configAspectTour:l,configAnswerTour:c,configApiTour:d}}(),window.setTimeout(function(){var e=$("body");e.hasClass("documentacao_exemplos_painel1_base_index")&&tourGuiado.firstTour(),e.hasClass("documentacao_exemplos_painel1_home")&&tourGuiado.homeTour(),e.hasClass("documentacao_exemplos_painel1_clients")&&tourGuiado.clientTour(),e.hasClass("documentacao_exemplos_painel1_new-client")&&tourGuiado.registerClientTour(),e.hasClass("documentacao_exemplos_painel1_client")&&tourGuiado.adminClientTour(),e.hasClass("documentacao_exemplos_painel1_stats")&&tourGuiado.statsTour(),e.hasClass("documentacao_exemplos_painel1_config-domain")&&tourGuiado.configDomainTour(),e.hasClass("documentacao_exemplos_painel1_config-email")&&tourGuiado.configEmailTour(),e.hasClass("documentacao_exemplos_painel1_config-aspect")&&tourGuiado.configAspectTour(),e.hasClass("documentacao_exemplos_painel1_config-answer")&&tourGuiado.configAnswerTour(),e.hasClass("documentacao_exemplos_painel1_config-api")&&tourGuiado.configApiTour()},1e3);var lsexample=function(){"use strict";function e(){t()}function t(){var e=window.location.pathname;e=e.replace(/\/$/,""),e=decodeURIComponent(e),$(".documentacao_componentes .ls-menu a").each(function(){var t=$(this).attr("href");e.substring(0,t.length)===t&&($(this).closest("li").addClass("ls-active"),$(this).parents(".ls-submenu-parent").find("a").trigger("click"))})}return{init:e}}();$(window).on("load",function(){lsexample.init()}); \ No newline at end of file +window.tourGuiado={},tourGuiado=function(){"use strict";function e(){locastyle.guidedTour.init(u)}function t(){locastyle.guidedTour.init(h)}function o(){locastyle.guidedTour.init(m)}function n(){locastyle.guidedTour.init(p)}function a(){locastyle.guidedTour.init(f)}function i(){locastyle.guidedTour.init(g)}function s(){locastyle.guidedTour.init(b)}function r(){locastyle.guidedTour.init(w)}function l(){locastyle.guidedTour.init(x)}function c(){locastyle.guidedTour.init(v)}function d(){locastyle.guidedTour.init(y)}var u={id:"tourDemo",selectors:{init:"#demo-init"},i18n:{nextBtn:"Pr\xf3ximo",prevBtn:"Anterior",doneBtn:"Ok",skipBtn:"Sair",closeTooltip:"Fechar"},bubbleWidth:250,showPrevButton:!0,steps:[{target:".ls-menu",title:"Menu",content:"Acesse de forma r\xe1pida os recursos mais importantes.",placement:"right",arrowOffset:"center"},{target:".ls-ico-dashboard",title:"Consumo",content:"Acompanhe o consumo dos envios do seu plano no per\xedodo.",placement:"top",arrowOffset:"center"},{target:".ls-ico-user-add .ls-btn-primary",title:"Comece por aqui",content:"Cadastre seus clientes e adicione envios.",placement:"top",arrowOffset:"center"},{target:".ls-ico-user-add ~ .ls-title-3",title:"Personalize sua revenda",content:"Siga os passos abaixo para personalizar sua revenda.",placement:"top",arrowOffset:"center",xOffset:-30},{target:".ls-user-account",title:"Sua conta",content:"Detalhes de seu login Locaweb.",placement:"bottom",arrowOffset:"center",xOffset:-50},{target:".ls-alerts-list",title:"Ficou com d\xfavidas?",content:"Acesse nossos canais de ajuda.",placement:"bottom",arrowOffset:"center",xOffset:-50},{target:".ls-alerts-list",title:"Ajude a melhorar o painel",content:"Fique \xe0 vontade para enviar sugest\xf5es e coment\xe1rios.",placement:"bottom",arrowOffset:"center",xOffset:-90}]},h={id:"tourDemo",selectors:{init:"#demo-init"},i18n:{nextBtn:"Pr\xf3ximo",prevBtn:"Anterior",doneBtn:"Ok",skipBtn:"Sair",closeTooltip:"Fechar"},bubbleWidth:250,showPrevButton:!0,steps:[{target:".ls-menu",title:"Menu",content:"Acesse de forma r\xe1pida os recursos mais importantes.",placement:"right",arrowOffset:"center"},{target:".ls-ico-dashboard",title:"Consumo",content:"Acompanhe o consumo dos envios do seu plano no per\xedodo.",placement:"top",arrowOffset:"center"},{target:".ls-board-box ~ .ls-title-3",title:"Cliente que contrataram",content:"Acompanhe os clientes que mais contrataram no per\xedodo.",placement:"top",arrowOffset:"center"},{target:".col-md-6 .ls-title-3",title:"Sem saldo de envio",content:"Saiba quais clientes est\xe3o sem saldo e ofere\xe7a mais envios.",placement:"top",arrowOffset:"center"},{target:".col-md-6:nth-child(2) .ls-title-3",title:"Bloqueados por bounce",content:'Saiba quais clientes foram bloqueados por abuso de bounces. Consulte a pol\xedtica de bounce.',placement:"top",arrowOffset:"center"},{target:".ls-user-account",title:"Sua conta",content:"Detalhes de seu login Locaweb.1",placement:"bottom",arrowOffset:"center",xOffset:-50},{target:".ls-alerts-list",title:"Ficou com d\xfavidas?",content:"Acesse nossos canais de ajuda.",placement:"bottom",arrowOffset:"center",xOffset:-50},{target:".ls-alerts-list",title:"Ajude a melhorar o painel",content:"Fique \xe0 vontade para enviar sugest\xf5es e coment\xe1rios.",placement:"bottom",arrowOffset:"center",xOffset:-90}]},m={id:"tourDemo",selectors:{init:"#demo-init"},i18n:{nextBtn:"Pr\xf3ximo",prevBtn:"Anterior",doneBtn:"Ok",skipBtn:"Sair",closeTooltip:"Fechar"},bubbleWidth:250,showPrevButton:!0,steps:[{target:".ls-main .ls-btn-primary",title:"Cadastre um novo cliente",content:"Adicione seus novos clientes.",placement:"top",arrowOffset:"center",xOffset:-75},{target:".ls-custom-select-one:nth-child(1)",title:"Filtro por status",content:"Busque um cliente por status.",placement:"top",arrowOffset:"center"},{target:".ls-box-filter form:nth-child(2) input",title:"Busca por nome",content:"Procure um cliente por nome.",placement:"left",arrowOffset:"center",yOffset:-55,xOffset:30},{target:".ls-table th:nth-child(3)",title:"Validade dos envios do cliente",content:"Acompanhe a quantidade e validade de uso dos envios para este cliente.",placement:"top",arrowOffset:"center"},{target:".ls-table tr:nth-child(1) .ls-regroup .ls-btn",title:"Administre seu cliente",content:"Edite os dados, a distribui\xe7\xe3o de envios e acompanhe o uso de cada cliente.",placement:"left",arrowOffset:"center",yOffset:-70,xOffset:35}]},p={id:"tourDemo",selectors:{init:"#demo-init"},i18n:{nextBtn:"Pr\xf3ximo",prevBtn:"Anterior",doneBtn:"Ok",skipBtn:"Sair",closeTooltip:"Fechar"},bubbleWidth:250,showPrevButton:!0,steps:[{target:".ls-form legend",title:"Informa\xe7\xf5es do seu cliente",content:"Preencha os dados do seu cliente e defina uma senha para ele acessar o painel.",placement:"top",arrowOffset:"center"},{target:".ls-box-gray .row .ls-label:nth-child(2)",title:"Quantidade de envios",content:"Defina a quantidade de envios que seu cliente poder\xe1 utilizar.",placement:"top",arrowOffset:"center"},{target:".ls-box-gray .ls-label:nth-child(3)",title:"Recorr\xeancia",content:"Marque se ele vai receber esta mesma quantidade todo m\xeas.",placement:"top",arrowOffset:"center"}]},f={id:"tourDemo",selectors:{init:"#demo-init"},i18n:{nextBtn:"Pr\xf3ximo",prevBtn:"Anterior",doneBtn:"Ok",skipBtn:"Sair",closeTooltip:"Fechar"},bubbleWidth:250,showPrevButton:!0,steps:[{target:".ls-regroup .ls-btn-primary",title:"Acesso ao painel do seu cliente",content:"Tenha acesso ao painel do cliente.",placement:"left",arrowOffset:"center",yOffset:-80,xOffset:35,onNext:function(){$(".ls-main .ls-dropdown .ls-btn").click()}},{target:".ls-dropdown .ls-btn",title:"Gerencie seu cliente",content:"Edite os dados, altere a senha ou desative o cliente.",placement:"left",arrowOffset:"center",xOffset:40,yOffset:-60,onNext:function(){$(".ls-main .ls-dropdown .ls-btn").click()},onPrev:function(){$(".ls-main .ls-dropdown .ls-btn").click()}},{target:".ls-ico-calendar-check",title:"Envios dispon\xedveis dos per\xedodos",content:"Altere a quantidade de envios dispon\xedveis no per\xedodo atual ou no pr\xf3ximo per\xedodo.",placement:"top",arrowOffset:"center"},{target:".ls-main h3.ls-title-3",title:"Relat\xf3rios",content:"Acompanhe o relat\xf3rio de contrata\xe7\xe3o e uso dos envios.",placement:"right",arrowOffset:"center",xOffset:-500,yOffset:-60},{target:".container-fluid > .ls-title-3",title:"Hist\xf3rico",content:"Acompanhe o hist\xf3rico de distribui\xe7\xe3o de envios.",placement:"top",arrowOffset:"center"}]},g={id:"tourDemo",selectors:{init:"#demo-init"},i18n:{nextBtn:"Pr\xf3ximo",prevBtn:"Anterior",doneBtn:"Ok",skipBtn:"Sair",closeTooltip:"Fechar"},bubbleWidth:250,showPrevButton:!0,steps:[{target:".ls-tabs-nav",title:"Relat\xf3rios da sua revenda",content:"Acompanhe a distribui\xe7\xe3o de envios e dos status de seus clientes.",placement:"top",arrowOffset:"center"}]},b={id:"tourDemo",selectors:{init:"#demo-init"},i18n:{nextBtn:"Pr\xf3ximo",prevBtn:"Anterior",doneBtn:"Ok",skipBtn:"Sair",closeTooltip:"Fechar"},bubbleWidth:250,showPrevButton:!0,steps:[{target:".col-md-6:nth-child(1) .ls-title-2",title:"Dom\xednio dos links",content:"Personalize o padr\xe3o do dom\xednio dos links das mensagens que seus clientes enviam.",placement:"top",arrowOffset:"center"},{target:".col-md-6:nth-child(2) .ls-title-2",title:"Dom\xednio de acesso",content:"Personalize o dom\xednio que seu cliente acessa o painel da sua revenda.",placement:"top",arrowOffset:"center"}]},w={id:"tourDemo",selectors:{init:"#demo-init"},i18n:{nextBtn:"Pr\xf3ximo",prevBtn:"Anterior",doneBtn:"Ok",skipBtn:"Sair",closeTooltip:"Fechar"},bubbleWidth:250,showPrevButton:!0,steps:[{target:".ls-form",title:"E-mail de remetente da sua revenda",content:"Configure o e-mail que seus clientes receber\xe3o.",placement:"top",arrowOffset:"center"}]},x={id:"tourDemo",selectors:{init:"#demo-init"},i18n:{nextBtn:"Pr\xf3ximo",prevBtn:"Anterior",doneBtn:"Ok",skipBtn:"Sair",closeTooltip:"Fechar"},bubbleWidth:250,showPrevButton:!0,steps:[{target:".ls-main img",title:"Exemplo do painel de seus clientes",content:"Veja como fica o painel da sua revenda para seus clientes.",placement:"top",arrowOffset:"center",xOffset:-50},{target:".ls-main .ls-box .ls-label",title:"Personalize o nome da revenda ",content:"Deixe o nome da revenda com o nome da sua empresa.",placement:"top",arrowOffset:"center"},{target:".ls-main .ls-box:nth-child(2)",title:"Identifica\xe7\xe3o da sua marca",content:"Defina como ser\xe1 exibido o cabe\xe7alho do painel e dos e-mails que seus clientes recebem da sua revenda.",placement:"top",arrowOffset:"center"},{target:".ls-main .col-md-9 > .ls-box:nth-child(3)",title:"Personalize a cor",content:"Escolha a cor do painel que combine com sua empresa.",placement:"top",arrowOffset:"center"}]},v={id:"tourDemo",selectors:{init:"#demo-init"},i18n:{nextBtn:"Pr\xf3ximo",prevBtn:"Anterior",doneBtn:"Ok",skipBtn:"Sair",closeTooltip:"Fechar"},bubbleWidth:250,showPrevButton:!0,steps:[{target:".ls-main .col-md-6:nth-child(1) .ls-form",title:"Ofere\xe7a suporte por telefone",content:"Preencha o n\xfamero que ser\xe1 exibido no rodap\xe9 do painel do seu cliente.",placement:"top",arrowOffset:"center"},{target:".ls-main .col-md-6:nth-child(2) .ls-form",title:"Ofere\xe7a suporte por um sistema de chamados",content:"Preencha o endere\xe7o da sua conta Webdesk. O link ser\xe1 exibido no rodap\xe9 do painel do seu cliente.",placement:"top",arrowOffset:"center"}]},y={id:"tourDemo",selectors:{init:"#demo-init"},i18n:{nextBtn:"Pr\xf3ximo",prevBtn:"Anterior",doneBtn:"Ok",skipBtn:"Sair",closeTooltip:"Fechar"},bubbleWidth:250,showPrevButton:!0,steps:[{target:".ls-box",title:"Integre com outros sistemas",content:"Utilize os dados para autenticar suas chamadas na API.",placement:"top",arrowOffset:"center"}]};return{firstTour:e,homeTour:t,clientTour:o,registerClientTour:n,adminClientTour:a,statsTour:i,configDomainTour:s,configEmailTour:r,configAspectTour:l,configAnswerTour:c,configApiTour:d}}(),window.setTimeout(function(){var e=$("body");e.hasClass("documentacao_exemplos_painel1_base_index")&&tourGuiado.firstTour(),e.hasClass("documentacao_exemplos_painel1_home")&&tourGuiado.homeTour(),e.hasClass("documentacao_exemplos_painel1_clients")&&tourGuiado.clientTour(),e.hasClass("documentacao_exemplos_painel1_new-client")&&tourGuiado.registerClientTour(),e.hasClass("documentacao_exemplos_painel1_client")&&tourGuiado.adminClientTour(),e.hasClass("documentacao_exemplos_painel1_stats")&&tourGuiado.statsTour(),e.hasClass("documentacao_exemplos_painel1_config-domain")&&tourGuiado.configDomainTour(),e.hasClass("documentacao_exemplos_painel1_config-email")&&tourGuiado.configEmailTour(),e.hasClass("documentacao_exemplos_painel1_config-aspect")&&tourGuiado.configAspectTour(),e.hasClass("documentacao_exemplos_painel1_config-answer")&&tourGuiado.configAnswerTour(),e.hasClass("documentacao_exemplos_painel1_config-api")&&tourGuiado.configApiTour()},1e3);var lsexample=function(){"use strict";function e(){t()}function t(){var e=window.location.pathname;e=e.replace(/\/$/,""),e=decodeURIComponent(e),$(".documentacao_componentes .ls-menu a").each(function(){var t=$(this).attr("href");e.substring(0,t.length)===t&&($(this).closest("li").addClass("ls-active"),$(this).parents(".ls-submenu-parent").find("a").trigger("click"))})}return{init:e}}();$(window).on("load",function(){lsexample.init()}); \ No newline at end of file diff --git a/assets/javascripts/libs/holder.js b/assets/javascripts/libs/holder.js index 6ff50f42b..d9ada1e96 100644 --- a/assets/javascripts/libs/holder.js +++ b/assets/javascripts/libs/holder.js @@ -7,4 +7,4 @@ Provided under the MIT License. Commercial use requires attribution. */ -var Holder=Holder||{};!function(e,t){function n(e,t,n){t=parseInt(t,10),e=parseInt(e,10);var o=Math.max(t,e),i=Math.min(t,e),a=1/12,r=Math.min(.75*i,.75*o*a);return{height:Math.round(Math.max(n.size,r))}}function o(e){var t=[];for(p in e)e.hasOwnProperty(p)&&t.push(p+":"+e[p]);return t.join(";")}function i(e){var t=e.ctx,o=e.dimensions,i=e.template,a=e.ratio,r=e.holder,s="literal"==r.textmode,l="exact"==r.textmode,d=n(o.width,o.height,i),c=d.height,u=o.width*a,h=o.height*a,f=i.font?i.font:"Arial,Helvetica,sans-serif";canvas.width=u,canvas.height=h,t.textAlign="center",t.textBaseline="middle",t.fillStyle=i.background,t.fillRect(0,0,u,h),t.fillStyle=i.foreground,t.font="bold "+c+"px "+f;var m=i.text?i.text:Math.floor(o.width)+"x"+Math.floor(o.height);if(s){var o=r.dimensions;m=o.width+"x"+o.height}else if(l&&r.exact_dimensions){var o=r.exact_dimensions;m=Math.floor(o.width)+"x"+Math.floor(o.height)}var p=t.measureText(m).width;return p/u>=.75&&(c=Math.floor(.75*c*(u/p))),t.font="bold "+c*a+"px "+f,t.fillText(m,u/2,h/2,u),canvas.toDataURL("image/png")}function a(e){var t=e.dimensions,o=e.template,i=e.holder,a="literal"==i.textmode,r="exact"==i.textmode,s=n(t.width,t.height,o),l=s.height,d=t.width,c=t.height,u=o.font?o.font:"Arial,Helvetica,sans-serif",h=o.text?o.text:Math.floor(t.width)+"x"+Math.floor(t.height);if(a){var t=i.dimensions;h=t.width+"x"+t.height}else if(r&&i.exact_dimensions){var t=i.exact_dimensions;h=Math.floor(t.width)+"x"+Math.floor(t.height)}var f=O({text:h,width:d,height:c,text_height:l,font:u,template:o});return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(f)))}function r(e){return b.use_canvas&&!b.use_svg?i(e):a(e)}function s(e,t,n,o){var i=n.dimensions,a=n.theme,s=n.text?decodeURIComponent(n.text):n.text,l=i.width+"x"+i.height;a=s?m(a,{text:s}):a,a=n.font?m(a,{font:n.font}):a,t.setAttribute("data-src",o),n.theme=a,t.holder_data=n,"image"==e?(t.setAttribute("alt",s?s:a.text?a.text+" ["+l+"]":l),(b.use_fallback||!n.auto)&&(t.style.width=i.width+"px",t.style.height=i.height+"px"),b.use_fallback?t.style.backgroundColor=a.background:(t.setAttribute("src",r({ctx:_,dimensions:i,template:a,ratio:k,holder:n})),n.textmode&&"exact"==n.textmode&&(y.push(t),c(t)))):"background"==e?b.use_fallback||(t.style.backgroundImage="url("+r({ctx:_,dimensions:i,template:a,ratio:k,holder:n})+")",t.style.backgroundSize=i.width+"px "+i.height+"px"):"fluid"==e&&(t.setAttribute("alt",s?s:a.text?a.text+" ["+l+"]":l),"%"==i.height.slice(-1)?t.style.height=i.height:null!=n.auto&&n.auto||(t.style.height=i.height+"px"),"%"==i.width.slice(-1)?t.style.width=i.width:null!=n.auto&&n.auto||(t.style.width=i.width+"px"),("inline"==t.style.display||""===t.style.display||"none"==t.style.display)&&(t.style.display="block"),d(t),b.use_fallback?t.style.backgroundColor=a.background:(y.push(t),c(t)))}function l(e,t){var n={height:e.clientHeight,width:e.clientWidth};return n.height||n.width?(e.removeAttribute("data-holder-invisible"),n):(e.setAttribute("data-holder-invisible",!0),void t.call(this,e))}function d(t){if(t.holder_data){var n=l(t,e.invisible_error_fn(d));if(n){var o=t.holder_data;o.initial_dimensions=n,o.fluid_data={fluid_height:"%"==o.dimensions.height.slice(-1),fluid_width:"%"==o.dimensions.width.slice(-1),mode:null},o.fluid_data.fluid_width&&!o.fluid_data.fluid_height?(o.fluid_data.mode="width",o.fluid_data.ratio=o.initial_dimensions.width/parseFloat(o.dimensions.height)):!o.fluid_data.fluid_width&&o.fluid_data.fluid_height&&(o.fluid_data.mode="height",o.fluid_data.ratio=parseFloat(o.dimensions.width)/o.initial_dimensions.height)}}}function c(t){var n;n=null==t.nodeType?y:[t];for(var o in n)if(n.hasOwnProperty(o)){var i=n[o];if(i.holder_data){var a=i.holder_data,s=l(i,e.invisible_error_fn(c));if(s){if(a.fluid){if(a.auto)switch(a.fluid_data.mode){case"width":s.height=s.width/a.fluid_data.ratio;break;case"height":s.width=s.height*a.fluid_data.ratio}i.setAttribute("src",r({ctx:_,dimensions:s,template:a.theme,ratio:k,holder:a}))}a.textmode&&"exact"==a.textmode&&(a.exact_dimensions=s,i.setAttribute("src",r({ctx:_,dimensions:a.dimensions,template:a.theme,ratio:k,holder:a})))}}}}function u(t,n){for(var o={theme:m(A.themes.gray,{})},i=!1,a=t.length,r=0;a>r;r++){var s=t[r];e.flags.dimensions.match(s)?(i=!0,o.dimensions=e.flags.dimensions.output(s)):e.flags.fluid.match(s)?(i=!0,o.dimensions=e.flags.fluid.output(s),o.fluid=!0):e.flags.textmode.match(s)?o.textmode=e.flags.textmode.output(s):e.flags.colors.match(s)?o.theme=e.flags.colors.output(s):n.themes[s]?n.themes.hasOwnProperty(s)&&(o.theme=m(n.themes[s],{})):e.flags.font.match(s)?o.font=e.flags.font.output(s):e.flags.auto.match(s)?o.auto=!0:e.flags.text.match(s)&&(o.text=e.flags.text.output(s))}return i?o:!1}function h(e,t){var n="complete",o="readystatechange",i=!1,a=i,r=!0,s=e.document,l=s.documentElement,d=s.addEventListener?"addEventListener":"attachEvent",c=s.addEventListener?"removeEventListener":"detachEvent",u=s.addEventListener?"":"on",h=function(r){(r.type!=o||s.readyState==n)&&(("load"==r.type?e:s)[c](u+r.type,h,i),!a&&(a=!0)&&t.call(e,null))},f=function(){try{l.doScroll("left")}catch(e){return void setTimeout(f,50)}h("poll")};if(s.readyState==n)t.call(e,"lazy");else{if(s.createEventObject&&l.doScroll){try{r=!e.frameElement}catch(m){}r&&f()}s[d](u+"DOMContentLoaded",h,i),s[d](u+o,h,i),e[d](u+"load",h,i)}}function f(e,t){var e=e.match(/^(\W)?(.*)/),t=t||document,n=t["getElement"+(e[1]?"#"==e[1]?"ById":"sByClassName":"sByTagName")],o=n.call(t,e[2]),i=[];return null!==o&&(i=o.length||0===o.length?o:[o]),i}function m(e,t){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);return n}var g={use_svg:!1,use_canvas:!1,use_fallback:!1},b={},w=!1;canvas=document.createElement("canvas");var x=1,v=1,y=[];if(canvas.getContext)if(canvas.toDataURL("image/png").indexOf("data:image/png")<0)g.use_fallback=!0;else var _=canvas.getContext("2d");else g.use_fallback=!0;document.createElementNS&&document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect&&(g.use_svg=!0,g.use_canvas=!1),g.use_fallback||(x=window.devicePixelRatio||1,v=_.webkitBackingStorePixelRatio||_.mozBackingStorePixelRatio||_.msBackingStorePixelRatio||_.oBackingStorePixelRatio||_.backingStorePixelRatio||1);var k=x/v,A={domain:"holder.js",images:"img",bgnodes:".holderjs",themes:{gray:{background:"#eee",foreground:"#aaa",size:12},social:{background:"#3a5a97",foreground:"#fff",size:12},industrial:{background:"#434A52",foreground:"#C2F200",size:12},sky:{background:"#0D8FDB",foreground:"#fff",size:12},vine:{background:"#39DBAC",foreground:"#1E292C",size:12},lava:{background:"#F8591A",foreground:"#1C2846",size:12}},stylesheet:""};e.flags={dimensions:{regex:/^(\d+)x(\d+)$/,output:function(e){var t=this.regex.exec(e);return{width:+t[1],height:+t[2]}}},fluid:{regex:/^([0-9%]+)x([0-9%]+)$/,output:function(e){var t=this.regex.exec(e);return{width:t[1],height:t[2]}}},colors:{regex:/#([0-9a-f]{3,})\:#([0-9a-f]{3,})/i,output:function(e){var t=this.regex.exec(e);return{size:A.themes.gray.size,foreground:"#"+t[2],background:"#"+t[1]}}},text:{regex:/text\:(.*)/,output:function(e){return this.regex.exec(e)[1]}},font:{regex:/font\:(.*)/,output:function(e){return this.regex.exec(e)[1]}},auto:{regex:/^auto$/},textmode:{regex:/textmode\:(.*)/,output:function(e){return this.regex.exec(e)[1]}}};var O=function(){if(window.XMLSerializer){var e=new XMLSerializer,t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");n.webkitMatchesSelector&&n.setAttribute("xmlns","http://www.w3.org/2000/svg");var i=document.createElementNS(t,"rect"),a=document.createElementNS(t,"text"),r=document.createTextNode(null);return a.setAttribute("text-anchor","middle"),a.appendChild(r),n.appendChild(i),n.appendChild(a),function(t){return n.setAttribute("width",t.width),n.setAttribute("height",t.height),i.setAttribute("width",t.width),i.setAttribute("height",t.height),i.setAttribute("fill",t.template.background),a.setAttribute("x",t.width/2),a.setAttribute("y",t.height/2),r.nodeValue=t.text,a.setAttribute("style",o({fill:t.template.foreground,"font-weight":"bold","font-size":t.text_height+"px","font-family":t.font,"dominant-baseline":"central"})),e.serializeToString(n)}}}();for(var B in e.flags)e.flags.hasOwnProperty(B)&&(e.flags[B].match=function(e){return e.match(this.regex)});e.invisible_error_fn=function(e){return function(e){if(e.hasAttribute("data-holder-invisible"))throw new Error("Holder: invisible placeholder")}},e.add_theme=function(t,n){return null!=t&&null!=n&&(A.themes[t]=n),e},e.add_image=function(t,n){var o=f(n);if(o.length)for(var i=0,a=o.length;a>i;i++){var r=document.createElement("img");r.setAttribute("data-src",t),o[i].appendChild(r)}return e},e.run=function(t){b=m({},g),w=!0;var n=m(A,t),o=[],i=[],a=[];for(null!=n.use_canvas&&n.use_canvas&&(b.use_canvas=!0,b.use_svg=!1),"string"==typeof n.images?i=f(n.images):window.NodeList&&n.images instanceof window.NodeList?i=n.images:window.Node&&n.images instanceof window.Node?i=[n.images]:window.HTMLCollection&&n.images instanceof window.HTMLCollection&&(i=n.images),"string"==typeof n.bgnodes?a=f(n.bgnodes):window.NodeList&&n.elements instanceof window.NodeList?a=n.bgnodes:window.Node&&n.bgnodes instanceof window.Node&&(a=[n.bgnodes]),c=0,d=i.length;d>c;c++)o.push(i[c]);var r=document.getElementById("holderjs-style");r||(r=document.createElement("style"),r.setAttribute("id","holderjs-style"),r.type="text/css",document.getElementsByTagName("head")[0].appendChild(r)),n.nocss||(r.styleSheet?r.styleSheet.cssText+=n.stylesheet:n.stylesheet.length&&r.appendChild(document.createTextNode(n.stylesheet)));for(var l=new RegExp(n.domain+'/(.*?)"?\\)'),d=a.length,c=0;d>c;c++){var h=window.getComputedStyle(a[c],null).getPropertyValue("background-image"),p=h.match(l),x=a[c].getAttribute("data-background-src");if(p){var v=u(p[1].split("/"),n);v&&s("background",a[c],v,h)}else if(null!=x){var v=u(x.substr(x.lastIndexOf(n.domain)+n.domain.length+1).split("/"),n);v&&s("background",a[c],v,h)}}for(d=o.length,c=0;d>c;c++){var y,_;_=y=h=null;try{_=o[c].getAttribute("src"),attr_datasrc=o[c].getAttribute("data-src")}catch(k){}if(null==attr_datasrc&&_&&_.indexOf(n.domain)>=0?h=_:attr_datasrc&&attr_datasrc.indexOf(n.domain)>=0&&(h=attr_datasrc),h){var v=u(h.substr(h.lastIndexOf(n.domain)+n.domain.length+1).split("/"),n);v&&(v.fluid?s("fluid",o[c],v,h):s("image",o[c],v,h))}}return e},h(t,function(){window.addEventListener?(window.addEventListener("resize",c,!1),window.addEventListener("orientationchange",c,!1)):window.attachEvent("onresize",c),w||e.run({}),"object"==typeof window.Turbolinks&&document.addEventListener("page:change",function(){e.run({})})}),"function"==typeof define&&define.amd&&define([],function(){return e}),function(){function e(e){this.message=e}var t="undefined"!=typeof exports?exports:this,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.prototype=Error(),e.prototype.name="InvalidCharacterError",t.btoa||(t.btoa=function(t){for(var o,i,a=0,r=n,s="";t.charAt(0|a)||(r="=",a%1);s+=r.charAt(63&o>>8-8*(a%1))){if(i=t.charCodeAt(a+=.75),i>255)throw new e("'btoa' failed");o=o<<8|i}return s}),t.atob||(t.atob=function(t){if(t=t.replace(/=+$/,""),1==t.length%4)throw new e("'atob' failed");for(var o,i,a=0,r=0,s="";i=t.charAt(r++);~i&&(o=a%4?64*o+i:i,a++%4)?s+=String.fromCharCode(255&o>>(6&-2*a)):0)i=n.indexOf(i);return s})}(),document.getElementsByClassName||(document.getElementsByClassName=function(e){var t,n,o,i=document,a=[];if(i.querySelectorAll)return i.querySelectorAll("."+e);if(i.evaluate)for(n=".//*[contains(concat(' ', @class, ' '), ' "+e+" ')]",t=i.evaluate(n,i,null,0,null);o=t.iterateNext();)a.push(o);else for(t=i.getElementsByTagName("*"),n=new RegExp("(^|\\s)"+e+"(\\s|$)"),o=0;o=.75&&(c=Math.floor(.75*c*(u/p))),t.font="bold "+c*i+"px "+f,t.fillText(m,u/2,h/2,u),canvas.toDataURL("image/png")}function i(e){var t=e.dimensions,n=e.template,a=e.holder,i="literal"==a.textmode,r="exact"==a.textmode,s=o(t.width,t.height,n),l=s.height,d=t.width,c=t.height,u=n.font?n.font:"Arial,Helvetica,sans-serif",h=n.text?n.text:Math.floor(t.width)+"x"+Math.floor(t.height);if(i){var t=a.dimensions;h=t.width+"x"+t.height}else if(r&&a.exact_dimensions){var t=a.exact_dimensions;h=Math.floor(t.width)+"x"+Math.floor(t.height)}var f=O({text:h,width:d,height:c,text_height:l,font:u,template:n});return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(f)))}function r(e){return b.use_canvas&&!b.use_svg?a(e):i(e)}function s(e,t,o,n){var a=o.dimensions,i=o.theme,s=o.text?decodeURIComponent(o.text):o.text,l=a.width+"x"+a.height;i=s?m(i,{text:s}):i,i=o.font?m(i,{font:o.font}):i,t.setAttribute("data-src",n),o.theme=i,t.holder_data=o,"image"==e?(t.setAttribute("alt",s?s:i.text?i.text+" ["+l+"]":l),(b.use_fallback||!o.auto)&&(t.style.width=a.width+"px",t.style.height=a.height+"px"),b.use_fallback?t.style.backgroundColor=i.background:(t.setAttribute("src",r({ctx:_,dimensions:a,template:i,ratio:k,holder:o})),o.textmode&&"exact"==o.textmode&&(y.push(t),c(t)))):"background"==e?b.use_fallback||(t.style.backgroundImage="url("+r({ctx:_,dimensions:a,template:i,ratio:k,holder:o})+")",t.style.backgroundSize=a.width+"px "+a.height+"px"):"fluid"==e&&(t.setAttribute("alt",s?s:i.text?i.text+" ["+l+"]":l),"%"==a.height.slice(-1)?t.style.height=a.height:null!=o.auto&&o.auto||(t.style.height=a.height+"px"),"%"==a.width.slice(-1)?t.style.width=a.width:null!=o.auto&&o.auto||(t.style.width=a.width+"px"),("inline"==t.style.display||""===t.style.display||"none"==t.style.display)&&(t.style.display="block"),d(t),b.use_fallback?t.style.backgroundColor=i.background:(y.push(t),c(t)))}function l(e,t){var o={height:e.clientHeight,width:e.clientWidth};return o.height||o.width?(e.removeAttribute("data-holder-invisible"),o):(e.setAttribute("data-holder-invisible",!0),void t.call(this,e))}function d(t){if(t.holder_data){var o=l(t,e.invisible_error_fn(d));if(o){var n=t.holder_data;n.initial_dimensions=o,n.fluid_data={fluid_height:"%"==n.dimensions.height.slice(-1),fluid_width:"%"==n.dimensions.width.slice(-1),mode:null},n.fluid_data.fluid_width&&!n.fluid_data.fluid_height?(n.fluid_data.mode="width",n.fluid_data.ratio=n.initial_dimensions.width/parseFloat(n.dimensions.height)):!n.fluid_data.fluid_width&&n.fluid_data.fluid_height&&(n.fluid_data.mode="height",n.fluid_data.ratio=parseFloat(n.dimensions.width)/n.initial_dimensions.height)}}}function c(t){var o;o=null==t.nodeType?y:[t];for(var n in o)if(o.hasOwnProperty(n)){var a=o[n];if(a.holder_data){var i=a.holder_data,s=l(a,e.invisible_error_fn(c));if(s){if(i.fluid){if(i.auto)switch(i.fluid_data.mode){case"width":s.height=s.width/i.fluid_data.ratio;break;case"height":s.width=s.height*i.fluid_data.ratio}a.setAttribute("src",r({ctx:_,dimensions:s,template:i.theme,ratio:k,holder:i}))}i.textmode&&"exact"==i.textmode&&(i.exact_dimensions=s,a.setAttribute("src",r({ctx:_,dimensions:i.dimensions,template:i.theme,ratio:k,holder:i})))}}}}function u(t,o){for(var n={theme:m(A.themes.gray,{})},a=!1,i=t.length,r=0;i>r;r++){var s=t[r];e.flags.dimensions.match(s)?(a=!0,n.dimensions=e.flags.dimensions.output(s)):e.flags.fluid.match(s)?(a=!0,n.dimensions=e.flags.fluid.output(s),n.fluid=!0):e.flags.textmode.match(s)?n.textmode=e.flags.textmode.output(s):e.flags.colors.match(s)?n.theme=e.flags.colors.output(s):o.themes[s]?o.themes.hasOwnProperty(s)&&(n.theme=m(o.themes[s],{})):e.flags.font.match(s)?n.font=e.flags.font.output(s):e.flags.auto.match(s)?n.auto=!0:e.flags.text.match(s)&&(n.text=e.flags.text.output(s))}return a?n:!1}function h(e,t){var o="complete",n="readystatechange",a=!1,i=a,r=!0,s=e.document,l=s.documentElement,d=s.addEventListener?"addEventListener":"attachEvent",c=s.addEventListener?"removeEventListener":"detachEvent",u=s.addEventListener?"":"on",h=function(r){(r.type!=n||s.readyState==o)&&(("load"==r.type?e:s)[c](u+r.type,h,a),!i&&(i=!0)&&t.call(e,null))},f=function(){try{l.doScroll("left")}catch(e){return void setTimeout(f,50)}h("poll")};if(s.readyState==o)t.call(e,"lazy");else{if(s.createEventObject&&l.doScroll){try{r=!e.frameElement}catch(m){}r&&f()}s[d](u+"DOMContentLoaded",h,a),s[d](u+n,h,a),e[d](u+"load",h,a)}}function f(e,t){var e=e.match(/^(\W)?(.*)/),t=t||document,o=t["getElement"+(e[1]?"#"==e[1]?"ById":"sByClassName":"sByTagName")],n=o.call(t,e[2]),a=[];return null!==n&&(a=n.length||0===n.length?n:[n]),a}function m(e,t){var o={};for(var n in e)e.hasOwnProperty(n)&&(o[n]=e[n]);for(var n in t)t.hasOwnProperty(n)&&(o[n]=t[n]);return o}var g={use_svg:!1,use_canvas:!1,use_fallback:!1},b={},w=!1;canvas=document.createElement("canvas");var x=1,v=1,y=[];if(canvas.getContext)if(canvas.toDataURL("image/png").indexOf("data:image/png")<0)g.use_fallback=!0;else var _=canvas.getContext("2d");else g.use_fallback=!0;document.createElementNS&&document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect&&(g.use_svg=!0,g.use_canvas=!1),g.use_fallback||(x=window.devicePixelRatio||1,v=_.webkitBackingStorePixelRatio||_.mozBackingStorePixelRatio||_.msBackingStorePixelRatio||_.oBackingStorePixelRatio||_.backingStorePixelRatio||1);var k=x/v,A={domain:"holder.js",images:"img",bgnodes:".holderjs",themes:{gray:{background:"#eee",foreground:"#aaa",size:12},social:{background:"#3a5a97",foreground:"#fff",size:12},industrial:{background:"#434A52",foreground:"#C2F200",size:12},sky:{background:"#0D8FDB",foreground:"#fff",size:12},vine:{background:"#39DBAC",foreground:"#1E292C",size:12},lava:{background:"#F8591A",foreground:"#1C2846",size:12}},stylesheet:""};e.flags={dimensions:{regex:/^(\d+)x(\d+)$/,output:function(e){var t=this.regex.exec(e);return{width:+t[1],height:+t[2]}}},fluid:{regex:/^([0-9%]+)x([0-9%]+)$/,output:function(e){var t=this.regex.exec(e);return{width:t[1],height:t[2]}}},colors:{regex:/#([0-9a-f]{3,})\:#([0-9a-f]{3,})/i,output:function(e){var t=this.regex.exec(e);return{size:A.themes.gray.size,foreground:"#"+t[2],background:"#"+t[1]}}},text:{regex:/text\:(.*)/,output:function(e){return this.regex.exec(e)[1]}},font:{regex:/font\:(.*)/,output:function(e){return this.regex.exec(e)[1]}},auto:{regex:/^auto$/},textmode:{regex:/textmode\:(.*)/,output:function(e){return this.regex.exec(e)[1]}}};var O=function(){if(window.XMLSerializer){var e=new XMLSerializer,t="http://www.w3.org/2000/svg",o=document.createElementNS(t,"svg");o.webkitMatchesSelector&&o.setAttribute("xmlns","http://www.w3.org/2000/svg");var a=document.createElementNS(t,"rect"),i=document.createElementNS(t,"text"),r=document.createTextNode(null);return i.setAttribute("text-anchor","middle"),i.appendChild(r),o.appendChild(a),o.appendChild(i),function(t){return o.setAttribute("width",t.width),o.setAttribute("height",t.height),a.setAttribute("width",t.width),a.setAttribute("height",t.height),a.setAttribute("fill",t.template.background),i.setAttribute("x",t.width/2),i.setAttribute("y",t.height/2),r.nodeValue=t.text,i.setAttribute("style",n({fill:t.template.foreground,"font-weight":"bold","font-size":t.text_height+"px","font-family":t.font,"dominant-baseline":"central"})),e.serializeToString(o)}}}();for(var B in e.flags)e.flags.hasOwnProperty(B)&&(e.flags[B].match=function(e){return e.match(this.regex)});e.invisible_error_fn=function(e){return function(e){if(e.hasAttribute("data-holder-invisible"))throw new Error("Holder: invisible placeholder")}},e.add_theme=function(t,o){return null!=t&&null!=o&&(A.themes[t]=o),e},e.add_image=function(t,o){var n=f(o);if(n.length)for(var a=0,i=n.length;i>a;a++){var r=document.createElement("img");r.setAttribute("data-src",t),n[a].appendChild(r)}return e},e.run=function(t){b=m({},g),w=!0;var o=m(A,t),n=[],a=[],i=[];for(null!=o.use_canvas&&o.use_canvas&&(b.use_canvas=!0,b.use_svg=!1),"string"==typeof o.images?a=f(o.images):window.NodeList&&o.images instanceof window.NodeList?a=o.images:window.Node&&o.images instanceof window.Node?a=[o.images]:window.HTMLCollection&&o.images instanceof window.HTMLCollection&&(a=o.images),"string"==typeof o.bgnodes?i=f(o.bgnodes):window.NodeList&&o.elements instanceof window.NodeList?i=o.bgnodes:window.Node&&o.bgnodes instanceof window.Node&&(i=[o.bgnodes]),c=0,d=a.length;d>c;c++)n.push(a[c]);var r=document.getElementById("holderjs-style");r||(r=document.createElement("style"),r.setAttribute("id","holderjs-style"),r.type="text/css",document.getElementsByTagName("head")[0].appendChild(r)),o.nocss||(r.styleSheet?r.styleSheet.cssText+=o.stylesheet:o.stylesheet.length&&r.appendChild(document.createTextNode(o.stylesheet)));for(var l=new RegExp(o.domain+'/(.*?)"?\\)'),d=i.length,c=0;d>c;c++){var h=window.getComputedStyle(i[c],null).getPropertyValue("background-image"),p=h.match(l),x=i[c].getAttribute("data-background-src");if(p){var v=u(p[1].split("/"),o);v&&s("background",i[c],v,h)}else if(null!=x){var v=u(x.substr(x.lastIndexOf(o.domain)+o.domain.length+1).split("/"),o);v&&s("background",i[c],v,h)}}for(d=n.length,c=0;d>c;c++){var y,_;_=y=h=null;try{_=n[c].getAttribute("src"),attr_datasrc=n[c].getAttribute("data-src")}catch(k){}if(null==attr_datasrc&&_&&_.indexOf(o.domain)>=0?h=_:attr_datasrc&&attr_datasrc.indexOf(o.domain)>=0&&(h=attr_datasrc),h){var v=u(h.substr(h.lastIndexOf(o.domain)+o.domain.length+1).split("/"),o);v&&(v.fluid?s("fluid",n[c],v,h):s("image",n[c],v,h))}}return e},h(t,function(){window.addEventListener?(window.addEventListener("resize",c,!1),window.addEventListener("orientationchange",c,!1)):window.attachEvent("onresize",c),w||e.run({}),"object"==typeof window.Turbolinks&&document.addEventListener("page:change",function(){e.run({})})}),"function"==typeof define&&define.amd&&define([],function(){return e}),function(){function e(e){this.message=e}var t="undefined"!=typeof exports?exports:this,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.prototype=Error(),e.prototype.name="InvalidCharacterError",t.btoa||(t.btoa=function(t){for(var n,a,i=0,r=o,s="";t.charAt(0|i)||(r="=",i%1);s+=r.charAt(63&n>>8-8*(i%1))){if(a=t.charCodeAt(i+=.75),a>255)throw new e("'btoa' failed");n=n<<8|a}return s}),t.atob||(t.atob=function(t){if(t=t.replace(/=+$/,""),1==t.length%4)throw new e("'atob' failed");for(var n,a,i=0,r=0,s="";a=t.charAt(r++);~a&&(n=i%4?64*n+a:a,i++%4)?s+=String.fromCharCode(255&n>>(6&-2*i)):0)a=o.indexOf(a);return s})}(),document.getElementsByClassName||(document.getElementsByClassName=function(e){var t,o,n,a=document,i=[];if(a.querySelectorAll)return a.querySelectorAll("."+e);if(a.evaluate)for(o=".//*[contains(concat(' ', @class, ' '), ' "+e+" ')]",t=a.evaluate(o,a,null,0,null);n=t.iterateNext();)i.push(n);else for(t=a.getElementsByTagName("*"),o=new RegExp("(^|\\s)"+e+"(\\s|$)"),n=0;n",o.insertBefore(n.lastChild,o.firstChild)}function o(){var e=v.elements;return"string"==typeof e?e.split(" "):e}function i(e,t){var n=v.elements;"string"!=typeof n&&(n=n.join(" ")),"string"!=typeof e&&(e=e.join(" ")),v.elements=n+" "+e,c(t)}function a(e){var t=w[e[g]];return t||(t={},b++,e[g]=b,w[b]=t),t}function r(e,n,o){if(n||(n=t),u)return n.createElement(e);o||(o=a(n));var i;return i=o.cache[e]?o.cache[e].cloneNode():p.test(e)?(o.cache[e]=o.createElem(e)).cloneNode():o.createElem(e),!i.canHaveChildren||m.test(e)||i.tagUrn?i:o.frag.appendChild(i)}function s(e,n){if(e||(e=t),u)return e.createDocumentFragment();n=n||a(e);for(var i=n.frag.cloneNode(),r=0,s=o(),l=s.length;l>r;r++)i.createElement(s[r]);return i}function l(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return v.shivMethods?r(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+o().join().replace(/[\w\-:]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(v,t.frag)}function c(e){e||(e=t);var o=a(e);return!v.shivCSS||d||o.hasCSS||(o.hasCSS=!!n(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),u||l(e,o),e}var d,u,h="3.7.3",f=e.html5||{},m=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,p=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,g="_html5shiv",b=0,w={};!function(){try{var e=t.createElement("a");e.innerHTML="",d="hidden"in e,u=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(n){d=!0,u=!0}}();var v={elements:f.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:h,shivCSS:f.shivCSS!==!1,supportsUnknownElements:u,shivMethods:f.shivMethods!==!1,type:"default",shivDocument:c,createElement:r,createDocumentFragment:s,addElements:i};e.html5=v,c(t),"object"==typeof module&&module.exports&&(module.exports=v)}("undefined"!=typeof window?window:this,document); \ No newline at end of file +!function(e,t){function o(e,t){var o=e.createElement("p"),n=e.getElementsByTagName("head")[0]||e.documentElement;return o.innerHTML="x",n.insertBefore(o.lastChild,n.firstChild)}function n(){var e=x.elements;return"string"==typeof e?e.split(" "):e}function a(e,t){var o=x.elements;"string"!=typeof o&&(o=o.join(" ")),"string"!=typeof e&&(e=e.join(" ")),x.elements=o+" "+e,d(t)}function i(e){var t=w[e[g]];return t||(t={},b++,e[g]=b,w[b]=t),t}function r(e,o,n){if(o||(o=t),u)return o.createElement(e);n||(n=i(o));var a;return a=n.cache[e]?n.cache[e].cloneNode():p.test(e)?(n.cache[e]=n.createElem(e)).cloneNode():n.createElem(e),!a.canHaveChildren||f.test(e)||a.tagUrn?a:n.frag.appendChild(a)}function s(e,o){if(e||(e=t),u)return e.createDocumentFragment();o=o||i(e);for(var a=o.frag.cloneNode(),r=0,s=n(),l=s.length;l>r;r++)a.createElement(s[r]);return a}function l(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(o){return x.shivMethods?r(o,e,t):t.createElem(o)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+n().join().replace(/[\w\-:]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(x,t.frag)}function d(e){e||(e=t);var n=i(e);return!x.shivCSS||c||n.hasCSS||(n.hasCSS=!!o(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),u||l(e,n),e}var c,u,h="3.7.3",m=e.html5||{},f=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,p=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,g="_html5shiv",b=0,w={};!function(){try{var e=t.createElement("a");e.innerHTML="",c="hidden"in e,u=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(o){c=!0,u=!0}}();var x={elements:m.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:h,shivCSS:m.shivCSS!==!1,supportsUnknownElements:u,shivMethods:m.shivMethods!==!1,type:"default",shivDocument:d,createElement:r,createDocumentFragment:s,addElements:a};e.html5=x,d(t),"object"==typeof module&&module.exports&&(module.exports=x)}("undefined"!=typeof window?window:this,document); \ No newline at end of file diff --git a/assets/javascripts/libs/jquery.mask.js b/assets/javascripts/libs/jquery.mask.js index 78912ddf3..2ae0c317e 100644 --- a/assets/javascripts/libs/jquery.mask.js +++ b/assets/javascripts/libs/jquery.mask.js @@ -30,4 +30,4 @@ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ -!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(window.jQuery||window.Zepto)}(function(e){"use strict";var t=function(t,n,a){var o,i=this;t=e(t),n="function"==typeof n?n(t.val(),void 0,t,a):n,i.init=function(){a=a||{},i.byPassKeys=[9,16,17,18,36,37,38,39,40,91],i.translation={0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}},i.translation=e.extend({},i.translation,a.translation),i=e.extend(!0,{},i,a),t.each(function(){a.maxlength!==!1&&t.attr("maxlength",n.length),a.placeholder&&t.attr("placeholder",a.placeholder),t.attr("autocomplete","off"),r.destroyEvents(),r.events();var e=r.getCaret();r.val(r.getMasked()),r.setCaret(e+r.getMaskCharactersBeforeCount(e,!0))})};var r={getCaret:function(){var e,n=0,a=t.get(0),o=document.selection,i=a.selectionStart;return o&&!~navigator.appVersion.indexOf("MSIE 10")?(e=o.createRange(),e.moveStart("character",t.is("input")?-t.val().length:-t.text().length),n=e.text.length):(i||"0"===i)&&(n=i),n},setCaret:function(e){if(t.is(":focus")){var n,a=t.get(0);a.setSelectionRange?a.setSelectionRange(e,e):a.createTextRange&&(n=a.createTextRange(),n.collapse(!0),n.moveEnd("character",e),n.moveStart("character",e),n.select())}},events:function(){t.on("keydown.mask",function(){o=r.val()}),t.on("keyup.mask",r.behaviour),t.on("paste.mask drop.mask",function(){setTimeout(function(){t.keydown().keyup()},100)}),t.on("change.mask",function(){t.data("changeCalled",!0)}),t.on("blur.mask",function(t){var n=e(t.target);n.prop("defaultValue")!==n.val()&&(n.prop("defaultValue",n.val()),n.data("changeCalled")||n.trigger("change")),n.data("changeCalled",!1)}),t.on("focusout.mask",function(){a.clearIfNotMatch&&r.val().length0?n?t.val(e):t.text(e):n?t.val():t.text()},getMaskCharactersBeforeCount:function(e,t){for(var a=0,o=0,r=n.length;r>o&&e>o;o++)i.translation[n.charAt(o)]||(e=t?e+1:e,a++);return a},determineCaretPos:function(e,t,a,o){var s=i.translation[n.charAt(Math.min(e-1,n.length-1))];return s?Math.min(e+a-t-o,a):r.determineCaretPos(e+1,t,a,o)},behaviour:function(t){t=t||window.event;var n=t.keyCode||t.which;if(-1===e.inArray(n,i.byPassKeys)){var a=r.getCaret(),o=r.val(),s=o.length,l=s>a,c=r.getMasked(),d=c.length,u=r.getMaskCharactersBeforeCount(d-1)-r.getMaskCharactersBeforeCount(s-1);return c!==o&&r.val(c),!l||65===n&&t.ctrlKey||(8!==n&&46!==n&&(a=r.determineCaretPos(a,s,d,u)),r.setCaret(a)),r.callbacks(t)}},getMasked:function(e){var t,o,s=[],l=r.val(),c=0,d=n.length,u=0,h=l.length,f=1,m="push",p=-1;for(a.reverse?(m="unshift",f=-1,t=0,c=d-1,u=h-1,o=function(){return c>-1&&u>-1}):(t=d-1,o=function(){return d>c&&h>u});o();){var g=n.charAt(c),v=l.charAt(u),b=i.translation[g];b?(v.match(b.pattern)?(s[m](v),b.recursive&&(-1===p?p=c:c===t&&(c=p-f),t===p&&(c-=f)),c+=f):b.optional&&(c+=f,u-=f),u+=f):(e||s[m](g),v===g&&(u+=f),c+=f)}var w=n.charAt(t);return d!==h+1||i.translation[w]||s.push(w),s.join("")},callbacks:function(e){var i=r.val(),s=r.val()!==o;s===!0&&"function"==typeof a.onChange&&a.onChange(i,e,t,a),s===!0&&"function"==typeof a.onKeyPress&&a.onKeyPress(i,e,t,a),"function"==typeof a.onComplete&&i.length===n.length&&a.onComplete(i,e,t,a)}};i.remove=function(){var e=r.getCaret(),t=r.getMaskCharactersBeforeCount(e);r.destroyEvents(),r.val(i.getCleanVal()).removeAttr("maxlength"),r.setCaret(e-t)},i.getCleanVal=function(){return r.getMasked(!0)},i.init()};e.fn.mask=function(n,a){return this.unmask(),this.each(function(){e(this).data("mask",new t(this,n,a))})},e.fn.unmask=function(){return this.each(function(){try{e(this).data("mask").remove()}catch(t){}})},e.fn.cleanVal=function(){return e(this).data("mask").getCleanVal()},e("*[data-mask]").each(function(){var t=e(this),n={},a="data-mask-";"true"===t.attr(a+"reverse")&&(n.reverse=!0),"false"===t.attr(a+"maxlength")&&(n.maxlength=!1),"true"===t.attr(a+"clearifnotmatch")&&(n.clearIfNotMatch=!0),t.mask(t.attr("data-mask"),n)})}); \ No newline at end of file +!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(window.jQuery||window.Zepto)}(function(e){"use strict";var t=function(t,n,a){var o,i=this;t=e(t),n="function"==typeof n?n(t.val(),void 0,t,a):n,i.init=function(){a=a||{},i.byPassKeys=[9,16,17,18,36,37,38,39,40,91],i.translation={0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}},i.translation=e.extend({},i.translation,a.translation),i=e.extend(!0,{},i,a),t.each(function(){a.maxlength!==!1&&t.attr("maxlength",n.length),a.placeholder&&t.attr("placeholder",a.placeholder),t.attr("autocomplete","off"),r.destroyEvents(),r.events();var e=r.getCaret();r.val(r.getMasked()),r.setCaret(e+r.getMaskCharactersBeforeCount(e,!0))})};var r={getCaret:function(){var e,n=0,a=t.get(0),o=document.selection,i=a.selectionStart;return o&&!~navigator.appVersion.indexOf("MSIE 10")?(e=o.createRange(),e.moveStart("character",t.is("input")?-t.val().length:-t.text().length),n=e.text.length):(i||"0"===i)&&(n=i),n},setCaret:function(e){if(t.is(":focus")){var n,a=t.get(0);a.setSelectionRange?a.setSelectionRange(e,e):a.createTextRange&&(n=a.createTextRange(),n.collapse(!0),n.moveEnd("character",e),n.moveStart("character",e),n.select())}},events:function(){t.on("keydown.mask",function(){o=r.val()}),t.on("keyup.mask",r.behaviour),t.on("paste.mask drop.mask",function(){setTimeout(function(){t.keydown().keyup()},100)}),t.on("change.mask",function(){t.data("changeCalled",!0)}),t.on("blur.mask",function(t){var n=e(t.target);n.prop("defaultValue")!==n.val()&&(n.prop("defaultValue",n.val()),n.data("changeCalled")||n.trigger("change")),n.data("changeCalled",!1)}),t.on("focusout.mask",function(){a.clearIfNotMatch&&r.val().length0?n?t.val(e):t.text(e):n?t.val():t.text()},getMaskCharactersBeforeCount:function(e,t){for(var a=0,o=0,r=n.length;r>o&&e>o;o++)i.translation[n.charAt(o)]||(e=t?e+1:e,a++);return a},determineCaretPos:function(e,t,a,o){var s=i.translation[n.charAt(Math.min(e-1,n.length-1))];return s?Math.min(e+a-t-o,a):r.determineCaretPos(e+1,t,a,o)},behaviour:function(t){t=t||window.event;var n=t.keyCode||t.which;if(-1===e.inArray(n,i.byPassKeys)){var a=r.getCaret(),o=r.val(),s=o.length,l=s>a,c=r.getMasked(),d=c.length,u=r.getMaskCharactersBeforeCount(d-1)-r.getMaskCharactersBeforeCount(s-1);return c!==o&&r.val(c),!l||65===n&&t.ctrlKey||(8!==n&&46!==n&&(a=r.determineCaretPos(a,s,d,u)),r.setCaret(a)),r.callbacks(t)}},getMasked:function(e){var t,o,s=[],l=r.val(),c=0,d=n.length,u=0,h=l.length,f=1,m="push",p=-1;for(a.reverse?(m="unshift",f=-1,t=0,c=d-1,u=h-1,o=function(){return c>-1&&u>-1}):(t=d-1,o=function(){return d>c&&h>u});o();){var g=n.charAt(c),b=l.charAt(u),w=i.translation[g];w?(b.match(w.pattern)?(s[m](b),w.recursive&&(-1===p?p=c:c===t&&(c=p-f),t===p&&(c-=f)),c+=f):w.optional&&(c+=f,u-=f),u+=f):(e||s[m](g),b===g&&(u+=f),c+=f)}var v=n.charAt(t);return d!==h+1||i.translation[v]||s.push(v),s.join("")},callbacks:function(e){var i=r.val(),s=r.val()!==o;s===!0&&"function"==typeof a.onChange&&a.onChange(i,e,t,a),s===!0&&"function"==typeof a.onKeyPress&&a.onKeyPress(i,e,t,a),"function"==typeof a.onComplete&&i.length===n.length&&a.onComplete(i,e,t,a)}};i.remove=function(){var e=r.getCaret(),t=r.getMaskCharactersBeforeCount(e);r.destroyEvents(),r.val(i.getCleanVal()).removeAttr("maxlength"),r.setCaret(e-t)},i.getCleanVal=function(){return r.getMasked(!0)},i.init()};e.fn.mask=function(n,a){return this.unmask(),this.each(function(){e(this).data("mask",new t(this,n,a))})},e.fn.unmask=function(){return this.each(function(){try{e(this).data("mask").remove()}catch(t){}})},e.fn.cleanVal=function(){return e(this).data("mask").getCleanVal()},e("*[data-mask]").each(function(){var t=e(this),n={},a="data-mask-";"true"===t.attr(a+"reverse")&&(n.reverse=!0),"false"===t.attr(a+"maxlength")&&(n.maxlength=!1),"true"===t.attr(a+"clearifnotmatch")&&(n.clearIfNotMatch=!0),t.mask(t.attr("data-mask"),n)})}); \ No newline at end of file diff --git a/assets/javascripts/libs/mediaqueries-ie.js b/assets/javascripts/libs/mediaqueries-ie.js index 4ff4d3da8..75957d6c6 100644 --- a/assets/javascripts/libs/mediaqueries-ie.js +++ b/assets/javascripts/libs/mediaqueries-ie.js @@ -1 +1 @@ -"function"!=typeof Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t});var ua={toString:function(){return navigator.userAgent},test:function(e){return this.toString().toLowerCase().indexOf(e.toLowerCase())>-1}};ua.version=(ua.toString().toLowerCase().match(/[\s\S]+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],ua.webkit=ua.test("webkit"),ua.gecko=ua.test("gecko")&&!ua.webkit,ua.opera=ua.test("opera"),ua.ie=ua.test("msie")&&!ua.opera,ua.ie6=ua.ie&&document.compatMode&&"undefined"==typeof document.documentElement.style.maxHeight,ua.ie7=ua.ie&&document.documentElement&&"undefined"!=typeof document.documentElement.style.maxHeight&&"undefined"==typeof XDomainRequest,ua.ie8=ua.ie&&"undefined"!=typeof XDomainRequest;var domReady=function(){var e=[],t=function(){if(!arguments.callee.done){arguments.callee.done=!0;for(var t=0;t=200&&o.status<300||304===o.status||navigator.userAgent.indexOf("Safari")>-1&&"undefined"==typeof o.status?t(o.responseText):n(),document.documentElement.style.cursor="",o=null)},o.send("")},d=function(e){return e=e.replace(t.REDUNDANT_COMPONENTS,""),e=e.replace(t.REDUNDANT_WHITESPACE,"$1"),e=e.replace(t.WHITESPACE_IN_PARENTHESES,"($1)"),e=e.replace(t.MORE_WHITESPACE," "),e=e.replace(t.FINAL_SEMICOLONS,"}")},u={stylesheet:function(e){var n={},o=[],a=[],i=[],r=[],s=e.cssHelperText,l=e.getAttribute("media");if(l)var c=l.toLowerCase().split(",");else var c=["all"];for(var d=0;d-1&&l.href&&0!==l.href.length&&!l.disabled&&(o[o.length]=l)}if(o.length>0){var u=0,m=function(){u++,u===o.length&&a()},p=function(e){var n=e.href;c(n,function(o){o=d(o).replace(t.RELATIVE_URLS,"url("+n.substring(0,n.lastIndexOf("/"))+"/$1)"),e.cssHelperText=o,m()},m)};for(s=0;s0&&o.setAttribute("media",t.join(",")),document.getElementsByTagName("head")[0].appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e)),o.addedWithCssHelper=!0,"undefined"==typeof n||n===!0?cssHelper.parsed(function(t){var n=f(o,e);for(var a in n)n.hasOwnProperty(a)&&v(a,n[a]);l("newStyleParsed",o)}):o.parsingDisallowed=!0,o},removeStyle:function(e){return e.parentNode.removeChild(e)},parsed:function(t){n?a(t):"undefined"!=typeof e?"function"==typeof t&&t(e):(a(t),m())},stylesheets:function(e){cssHelper.parsed(function(t){e(g.stylesheets||b("stylesheets"))})},mediaQueryLists:function(e){cssHelper.parsed(function(t){e(g.mediaQueryLists||b("mediaQueryLists"))})},rules:function(e){cssHelper.parsed(function(t){e(g.rules||b("rules"))})},selectors:function(e){cssHelper.parsed(function(t){e(g.selectors||b("selectors"))})},declarations:function(e){cssHelper.parsed(function(t){e(g.declarations||b("declarations"))})},properties:function(e){cssHelper.parsed(function(t){e(g.properties||b("properties"))})},broadcast:l,addListener:function(e,t){"function"==typeof t&&(s[e]||(s[e]={listeners:[]}),s[e].listeners[s[e].listeners.length]=t)},removeListener:function(e,t){if("function"==typeof t&&s[e])for(var n=s[e].listeners,o=0;o=l||r&&l>d||!a&&!r&&d===l:!1:d>0;if("device-height"===e.substring(o-13,o))return u=screen.height,null!==n?"length"===s?a&&u>=l||r&&l>u||!a&&!r&&u===l:!1:u>0;if("width"===e.substring(o-5,o))return d=document.documentElement.clientWidth||document.body.clientWidth,null!==n?"length"===s?a&&d>=l||r&&l>d||!a&&!r&&d===l:!1:d>0;if("height"===e.substring(o-6,o))return u=document.documentElement.clientHeight||document.body.clientHeight,null!==n?"length"===s?a&&u>=l||r&&l>u||!a&&!r&&u===l:!1:u>0;if("device-aspect-ratio"===e.substring(o-19,o))return"aspect-ratio"===s&&screen.width*l[1]===screen.height*l[0];if("color-index"===e.substring(o-11,o)){var h=Math.pow(2,screen.colorDepth);return null!==n?"absolute"===s?a&&h>=l||r&&l>h||!a&&!r&&h===l:!1:h>0}if("color"===e.substring(o-5,o)){var f=screen.colorDepth;return null!==n?"absolute"===s?a&&f>=l||r&&l>f||!a&&!r&&f===l:!1:f>0}if("resolution"===e.substring(o-10,o)){var m;return m=i("dpcm"===c?"1cm":"1in"),null!==n?"resolution"===s?a&&m>=l||r&&l>m||!a&&!r&&m===l:!1:m>0}return!1},s=function(e){var t=e.getValid(),n=e.getExpressions(),o=n.length;if(o>0){for(var a=0;o>a&&t;a++)t=r(n[a].mediaFeature,n[a].value);var i=e.getNot();return t&&!i||i&&!t}return t},l=function(e,t){for(var o=e.getMediaQueries(),a={},i=0;i0){l=!1;for(var c=0;c0&&(d[u++]=","),d[u++]=h);d.length>0&&(n[n.length]=cssHelper.addStyle("@media "+d.join("")+"{"+e.getCssText()+"}",t,!1))},c=function(e,t){for(var n=0;n0);var r=[],l=[];for(var d in a)a.hasOwnProperty(d)&&(r[r.length]=d,a[d]&&(l[l.length]=d),"all"===d&&(o=!0));l.length>0&&(n[n.length]=cssHelper.addStyle(e.getCssText(),l,!1));var u=e.getMediaQueryLists();o?c(u):c(u,r)},u=function(e){for(var t=0;tf||Math.abs(i-t)>f)&&(e=n,t=i,clearTimeout(a),a=setTimeout(function(){o()?cssHelper.broadcast("cssMediaQueriesTested"):h()},500))};window.onresize=function(){var e=window.onresize||function(){};return function(){e(),i()}}()},p=document.documentElement;return p.style.marginLeft="-32767px",setTimeout(function(){p.style.marginLeft=""},5e3),function(){o()?p.style.marginLeft="":(cssHelper.addListener("newStyleParsed",function(e){d(e.cssHelperParsed.stylesheet)}),cssHelper.addListener("cssMediaQueriesTested",function(){ua.ie&&(p.style.width="1px"),setTimeout(function(){p.style.width="",p.style.marginLeft=""},0),cssHelper.removeListener("cssMediaQueriesTested",arguments.callee)}),a(),h()),m()}}());try{document.execCommand("BackgroundImageCache",!1,!0)}catch(e){} \ No newline at end of file +"function"!=typeof Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t});var ua={toString:function(){return navigator.userAgent},test:function(e){return this.toString().toLowerCase().indexOf(e.toLowerCase())>-1}};ua.version=(ua.toString().toLowerCase().match(/[\s\S]+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],ua.webkit=ua.test("webkit"),ua.gecko=ua.test("gecko")&&!ua.webkit,ua.opera=ua.test("opera"),ua.ie=ua.test("msie")&&!ua.opera,ua.ie6=ua.ie&&document.compatMode&&"undefined"==typeof document.documentElement.style.maxHeight,ua.ie7=ua.ie&&document.documentElement&&"undefined"!=typeof document.documentElement.style.maxHeight&&"undefined"==typeof XDomainRequest,ua.ie8=ua.ie&&"undefined"!=typeof XDomainRequest;var domReady=function(){var e=[],t=function(){if(!arguments.callee.done){arguments.callee.done=!0;for(var t=0;t=200&&a.status<300||304===a.status||navigator.userAgent.indexOf("Safari")>-1&&"undefined"==typeof a.status?t(a.responseText):n(),document.documentElement.style.cursor="",a=null)},a.send("")},d=function(e){return e=e.replace(t.REDUNDANT_COMPONENTS,""),e=e.replace(t.REDUNDANT_WHITESPACE,"$1"),e=e.replace(t.WHITESPACE_IN_PARENTHESES,"($1)"),e=e.replace(t.MORE_WHITESPACE," "),e=e.replace(t.FINAL_SEMICOLONS,"}")},u={stylesheet:function(e){var n={},a=[],o=[],i=[],r=[],s=e.cssHelperText,l=e.getAttribute("media");if(l)var c=l.toLowerCase().split(",");else var c=["all"];for(var d=0;d-1&&l.href&&0!==l.href.length&&!l.disabled&&(a[a.length]=l)}if(a.length>0){var u=0,m=function(){u++,u===a.length&&o()},g=function(e){var n=e.href;c(n,function(a){a=d(a).replace(t.RELATIVE_URLS,"url("+n.substring(0,n.lastIndexOf("/"))+"/$1)"),e.cssHelperText=a,m()},m)};for(s=0;s0&&a.setAttribute("media",t.join(",")),document.getElementsByTagName("head")[0].appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e)),a.addedWithCssHelper=!0,"undefined"==typeof n||n===!0?cssHelper.parsed(function(t){var n=f(a,e);for(var o in n)n.hasOwnProperty(o)&&v(o,n[o]);l("newStyleParsed",a)}):a.parsingDisallowed=!0,a},removeStyle:function(e){return e.parentNode.removeChild(e)},parsed:function(t){n?o(t):"undefined"!=typeof e?"function"==typeof t&&t(e):(o(t),m())},stylesheets:function(e){cssHelper.parsed(function(t){e(p.stylesheets||b("stylesheets"))})},mediaQueryLists:function(e){cssHelper.parsed(function(t){e(p.mediaQueryLists||b("mediaQueryLists"))})},rules:function(e){cssHelper.parsed(function(t){e(p.rules||b("rules"))})},selectors:function(e){cssHelper.parsed(function(t){e(p.selectors||b("selectors"))})},declarations:function(e){cssHelper.parsed(function(t){e(p.declarations||b("declarations"))})},properties:function(e){cssHelper.parsed(function(t){e(p.properties||b("properties"))})},broadcast:l,addListener:function(e,t){"function"==typeof t&&(s[e]||(s[e]={listeners:[]}),s[e].listeners[s[e].listeners.length]=t)},removeListener:function(e,t){if("function"==typeof t&&s[e])for(var n=s[e].listeners,a=0;a=l||r&&l>d||!o&&!r&&d===l:!1:d>0;if("device-height"===e.substring(a-13,a))return u=screen.height,null!==n?"length"===s?o&&u>=l||r&&l>u||!o&&!r&&u===l:!1:u>0;if("width"===e.substring(a-5,a))return d=document.documentElement.clientWidth||document.body.clientWidth,null!==n?"length"===s?o&&d>=l||r&&l>d||!o&&!r&&d===l:!1:d>0;if("height"===e.substring(a-6,a))return u=document.documentElement.clientHeight||document.body.clientHeight,null!==n?"length"===s?o&&u>=l||r&&l>u||!o&&!r&&u===l:!1:u>0;if("device-aspect-ratio"===e.substring(a-19,a))return"aspect-ratio"===s&&screen.width*l[1]===screen.height*l[0];if("color-index"===e.substring(a-11,a)){var h=Math.pow(2,screen.colorDepth);return null!==n?"absolute"===s?o&&h>=l||r&&l>h||!o&&!r&&h===l:!1:h>0}if("color"===e.substring(a-5,a)){var f=screen.colorDepth;return null!==n?"absolute"===s?o&&f>=l||r&&l>f||!o&&!r&&f===l:!1:f>0}if("resolution"===e.substring(a-10,a)){var m;return m=i("dpcm"===c?"1cm":"1in"),null!==n?"resolution"===s?o&&m>=l||r&&l>m||!o&&!r&&m===l:!1:m>0}return!1},s=function(e){var t=e.getValid(),n=e.getExpressions(),a=n.length;if(a>0){for(var o=0;a>o&&t;o++)t=r(n[o].mediaFeature,n[o].value);var i=e.getNot();return t&&!i||i&&!t}return t},l=function(e,t){for(var a=e.getMediaQueries(),o={},i=0;i0){l=!1;for(var c=0;c0&&(d[u++]=","),d[u++]=h);d.length>0&&(n[n.length]=cssHelper.addStyle("@media "+d.join("")+"{"+e.getCssText()+"}",t,!1))},c=function(e,t){for(var n=0;n0);var r=[],l=[];for(var d in o)o.hasOwnProperty(d)&&(r[r.length]=d,o[d]&&(l[l.length]=d),"all"===d&&(a=!0));l.length>0&&(n[n.length]=cssHelper.addStyle(e.getCssText(),l,!1));var u=e.getMediaQueryLists();a?c(u):c(u,r)},u=function(e){for(var t=0;tf||Math.abs(i-t)>f)&&(e=n,t=i,clearTimeout(o),o=setTimeout(function(){a()?cssHelper.broadcast("cssMediaQueriesTested"):h()},500))};window.onresize=function(){var e=window.onresize||function(){};return function(){e(),i()}}()},g=document.documentElement;return g.style.marginLeft="-32767px",setTimeout(function(){g.style.marginLeft=""},5e3),function(){a()?g.style.marginLeft="":(cssHelper.addListener("newStyleParsed",function(e){d(e.cssHelperParsed.stylesheet)}),cssHelper.addListener("cssMediaQueriesTested",function(){ua.ie&&(g.style.width="1px"),setTimeout(function(){g.style.width="",g.style.marginLeft=""},0),cssHelper.removeListener("cssMediaQueriesTested",arguments.callee)}),o(),h()),m()}}());try{document.execCommand("BackgroundImageCache",!1,!0)}catch(e){} \ No newline at end of file diff --git a/assets/javascripts/libs/pikaday.jquery.js b/assets/javascripts/libs/pikaday.jquery.js index 7fff9c9bd..0ae03c2c8 100644 --- a/assets/javascripts/libs/pikaday.jquery.js +++ b/assets/javascripts/libs/pikaday.jquery.js @@ -3,4 +3,4 @@ * * Copyright © 2013 David Bushell | BSD & MIT license | https://github.com/dbushell/Pikaday */ -!function(e,t){"use strict";"object"==typeof exports?t(require("jquery"),require("../pikaday")):"function"==typeof define&&define.amd?define(["jquery","pikaday"],t):t(e.jQuery,e.Pikaday)}(this,function(e,t){"use strict";e.fn.pikaday=function(){var n=arguments;return n&&n.length||(n=[{}]),this.each(function(){var o=e(this),a=o.data("pikaday");if(a instanceof t)"string"==typeof n[0]&&"function"==typeof a[n[0]]&&a[n[0]].apply(a,Array.prototype.slice.call(n,1));else if("object"==typeof n[0]){var i=e.extend({},n[0]);i.field=o[0],o.data("pikaday",new t(i))}})}}); \ No newline at end of file +!function(e,t){"use strict";"object"==typeof exports?t(require("jquery"),require("../pikaday")):"function"==typeof define&&define.amd?define(["jquery","pikaday"],t):t(e.jQuery,e.Pikaday)}(this,function(e,t){"use strict";e.fn.pikaday=function(){var n=arguments;return n&&n.length||(n=[{}]),this.each(function(){var a=e(this),o=a.data("pikaday");if(o instanceof t)"string"==typeof n[0]&&"function"==typeof o[n[0]]&&o[n[0]].apply(o,Array.prototype.slice.call(n,1));else if("object"==typeof n[0]){var i=e.extend({},n[0]);i.field=a[0],a.data("pikaday",new t(i))}})}}); \ No newline at end of file diff --git a/assets/javascripts/libs/pikaday.js b/assets/javascripts/libs/pikaday.js index 8e1ed9e8a..00c77a41c 100644 --- a/assets/javascripts/libs/pikaday.js +++ b/assets/javascripts/libs/pikaday.js @@ -3,4 +3,4 @@ * * Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/dbushell/Pikaday */ -!function(e,t){"use strict";var n;if("object"==typeof exports){try{n=require("moment")}catch(a){}module.exports=t(n)}else"function"==typeof define&&define.amd?define(function(e){var a="moment";return n=e.defined&&e.defined(a)?e(a):void 0,t(n)}):e.Pikaday=t(e.moment)}(this,function(e){"use strict";var t="function"==typeof e,n=!!window.addEventListener,a=window.document,i=window.setTimeout,o=function(e,t,a,i){n?e.addEventListener(t,a,!!i):e.attachEvent("on"+t,a)},r=function(e,t,a,i){n?e.removeEventListener(t,a,!!i):e.detachEvent("on"+t,a)},s=function(e,t,n){var i;a.createEvent?(i=a.createEvent("HTMLEvents"),i.initEvent(t,!0,!1),i=b(i,n),e.dispatchEvent(i)):a.createEventObject&&(i=a.createEventObject(),i=b(i,n),e.fireEvent("on"+t,i))},l=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},c=function(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")},d=function(e,t){c(e,t)||(e.className=""===e.className?t:e.className+" "+t)},u=function(e,t){e.className=l((" "+e.className+" ").replace(" "+t+" "," "))},h=function(e){return/Array/.test(Object.prototype.toString.call(e))},f=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},m=function(e){return e%4===0&&e%100!==0||e%400===0},p=function(e,t){return[31,m(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},g=function(e){f(e)&&e.setHours(0,0,0,0)},v=function(e,t){return e.getTime()===t.getTime()},b=function(e,t,n){var a,i;for(a in t)i=void 0!==e[a],i&&"object"==typeof t[a]&&void 0===t[a].nodeName?f(t[a])?n&&(e[a]=new Date(t[a].getTime())):h(t[a])?n&&(e[a]=t[a].slice(0)):e[a]=b({},t[a],n):(n||!i)&&(e[a]=t[a]);return e},y=function(e){return e.month<0&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),e.month>11&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e},w={field:null,bound:void 0,position:"bottom left",format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:!1,firstDay:0,minDate:null,maxDate:null,yearRange:10,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,numberOfMonths:1,mainCalendar:"left",i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},onSelect:null,onOpen:null,onClose:null,onDraw:null},x=function(e,t,n){for(t+=e.firstDay;t>=7;)t-=7;return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},_=function(e,t,n,a,i,o,r){if(r)return'';var s=[];return o&&s.push("is-disabled"),i&&s.push("is-today"),a&&s.push("is-selected"),'"},k=function(e,t){return""+(t?e.reverse():e).join("")+""},E=function(e){return""+e.join("")+""},C=function(e){var t,n=[];for(t=0;7>t;t++)n.push(''+x(e,t,!0)+"");return""+(e.isRTL?n.reverse():n).join("")+""},T=function(e,t,n,a,i){var o,r,s,l,c,d=e._o,u=n===d.minYear,f=n===d.maxYear,m='
',p=!0,g=!0;for(s=[],o=0;12>o;o++)s.push('");for(l='
'+d.i18n.months[a]+'
",h(d.yearRange)?(o=d.yearRange[0],r=d.yearRange[1]+1):(o=n-d.yearRange,r=1+n+d.yearRange),s=[];r>o&&o<=d.maxYear;o++)o>=d.minYear&&s.push('");return c='
'+n+d.yearSuffix+'
",m+=d.showMonthAfterYear?c+l:l+c,u&&(0===a||d.minMonth>=a)&&(p=!1),f&&(11===a||d.maxMonth<=a)&&(g=!1),0===t&&(m+='"),t===e._o.numberOfMonths-1&&(m+='"),m+="
"},S=function(e,t){return''+C(e)+E(t)+"
"},A=function(r){var s=this,l=s.config(r);s._onMouseDown=function(e){if(s._v){e=e||window.event;var t=e.target||e.srcElement;if(t){if(!c(t,"is-disabled")){if(c(t,"pika-button")&&!c(t,"is-empty"))return s.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),void(l.bound&&i(function(){s.hide()},100));c(t,"pika-prev")?s.prevMonth():c(t,"pika-next")&&s.nextMonth()}if(c(t,"pika-select"))s._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}}},s._onChange=function(e){e=e||window.event;var t=e.target||e.srcElement;t&&(c(t,"pika-select-month")?s.gotoMonth(t.value):c(t,"pika-select-year")&&s.gotoYear(t.value))},s._onInputChange=function(n){var a;n.firedBy!==s&&(t?(a=e(l.field.value,l.format),a=a&&a.isValid()?a.toDate():null):a=new Date(Date.parse(l.field.value)),s.setDate(f(a)?a:null),s._v||s.show())},s._onInputFocus=function(){s.show()},s._onInputClick=function(){s.show()},s._onInputBlur=function(){s._c||(s._b=i(function(){s.hide()},50)),s._c=!1},s._onClick=function(e){e=e||window.event;var t=e.target||e.srcElement,a=t;if(t){!n&&c(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),o(t,"change",s._onChange)));do if(c(a,"pika-single"))return;while(a=a.parentNode);s._v&&t!==l.trigger&&s.hide()}},s.el=a.createElement("div"),s.el.className="pika-single"+(l.isRTL?" is-rtl":""),o(s.el,"mousedown",s._onMouseDown,!0),o(s.el,"change",s._onChange),l.field&&(l.bound?a.body.appendChild(s.el):l.field.parentNode.insertBefore(s.el,l.field.nextSibling),o(l.field,"change",s._onInputChange),l.defaultDate||(t&&l.field.value?l.defaultDate=e(l.field.value,l.format).toDate():l.defaultDate=new Date(Date.parse(l.field.value)),l.setDefaultDate=!0));var d=l.defaultDate;f(d)?l.setDefaultDate?s.setDate(d,!0):s.gotoDate(d):s.gotoDate(new Date),l.bound?(this.hide(),s.el.className+=" is-bound",o(l.trigger,"click",s._onInputClick),o(l.trigger,"focus",s._onInputFocus),o(l.trigger,"blur",s._onInputBlur)):this.show()};return A.prototype={config:function(e){this._o||(this._o=b({},w,!0));var t=b(this._o,e,!0);t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.bound=!!(void 0!==t.bound?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field;var n=parseInt(t.numberOfMonths,10)||1;if(t.numberOfMonths=n>4?4:n,f(t.minDate)||(t.minDate=!1),f(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.maxDate100&&(t.yearRange=100);return t},toString:function(n){return f(this._d)?t?e(this._d).format(n||this._o.format):this._d.toDateString():""},getMoment:function(){return t?e(this._d):null},setMoment:function(n,a){t&&e.isMoment(n)&&this.setDate(n.toDate(),a)},getDate:function(){return f(this._d)?new Date(this._d.getTime()):null},setDate:function(e,t){if(!e)return this._d=null,this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),f(e)){var n=this._o.minDate,a=this._o.maxDate;f(n)&&n>e?e=n:f(a)&&e>a&&(e=a),this._d=new Date(e.getTime()),g(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),s(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(e){var t=!0;if(f(e)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),a=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),i=e.getTime();a.setMonth(a.getMonth()+1),a.setDate(a.getDate()-1),t=i=a&&(this._y=a,!isNaN(r)&&this._m>r&&(this._m=r));for(var l=0;l'+T(this,l,this.calendars[l].year,this.calendars[l].month,this.calendars[0].year)+this.render(this.calendars[l].year,this.calendars[l].month)+"";if(this.el.innerHTML=s,t.bound&&"hidden"!==t.field.type&&i(function(){t.trigger.focus()},1),"function"==typeof this._o.onDraw){var c=this;i(function(){c._o.onDraw.call(c)},0)}}},adjustPosition:function(){var e,t,n,i=this._o.trigger,o=i,r=this.el.offsetWidth,s=this.el.offsetHeight,l=window.innerWidth||a.documentElement.clientWidth,c=window.innerHeight||a.documentElement.clientHeight,d=window.pageYOffset||a.body.scrollTop||a.documentElement.scrollTop;if("function"==typeof i.getBoundingClientRect)n=i.getBoundingClientRect(),e=n.left+window.pageXOffset,t=n.bottom+window.pageYOffset;else for(e=o.offsetLeft,t=o.offsetTop+o.offsetHeight;o=o.offsetParent;)e+=o.offsetLeft,t+=o.offsetTop;(e+r>l||this._o.position.indexOf("right")>-1&&e-r+i.offsetWidth>0)&&(e=e-r+i.offsetWidth),(t+s>c+d||this._o.position.indexOf("top")>-1&&t-s-i.offsetHeight>0)&&(t=t-s-i.offsetHeight),this.el.style.cssText=["position: absolute","left: "+e+"px","top: "+t+"px"].join(";")},render:function(e,t){var n=this._o,a=new Date,i=p(e,t),o=new Date(e,t,1).getDay(),r=[],s=[];g(a),n.firstDay>0&&(o-=n.firstDay,0>o&&(o+=7));for(var l=i+o,c=l;c>7;)c-=7;l+=7-c;for(var d=0,u=0;l>d;d++){var h=new Date(e,t,1+(d-o)),m=n.minDate&&hn.maxDate,b=f(this._d)?v(h,this._d):!1,y=v(h,a),w=o>d||d>=i+o;s.push(_(1+(d-o),t,e,b,y,m,w)),7===++u&&(r.push(k(s,n.isRTL)),s=[],u=0)}return S(n,r)},isVisible:function(){return this._v},show:function(){this._v||(u(this.el,"is-hidden"),this._v=!0,this.draw(),this._o.bound&&(o(a,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var e=this._v;e!==!1&&(this._o.bound&&r(a,"click",this._onClick),this.el.style.cssText="",d(this.el,"is-hidden"),this._v=!1,void 0!==e&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){this.hide(),r(this.el,"mousedown",this._onMouseDown,!0),r(this.el,"change",this._onChange),this._o.field&&(r(this._o.field,"change",this._onInputChange),this._o.bound&&(r(this._o.trigger,"click",this._onInputClick),r(this._o.trigger,"focus",this._onInputFocus),r(this._o.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},A}); \ No newline at end of file +!function(e,t){"use strict";var n;if("object"==typeof exports){try{n=require("moment")}catch(a){}module.exports=t(n)}else"function"==typeof define&&define.amd?define(function(e){var a="moment";return n=e.defined&&e.defined(a)?e(a):void 0,t(n)}):e.Pikaday=t(e.moment)}(this,function(e){"use strict";var t="function"==typeof e,n=!!window.addEventListener,a=window.document,i=window.setTimeout,o=function(e,t,a,i){n?e.addEventListener(t,a,!!i):e.attachEvent("on"+t,a)},r=function(e,t,a,i){n?e.removeEventListener(t,a,!!i):e.detachEvent("on"+t,a)},s=function(e,t,n){var i;a.createEvent?(i=a.createEvent("HTMLEvents"),i.initEvent(t,!0,!1),i=b(i,n),e.dispatchEvent(i)):a.createEventObject&&(i=a.createEventObject(),i=b(i,n),e.fireEvent("on"+t,i))},l=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},c=function(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")},d=function(e,t){c(e,t)||(e.className=""===e.className?t:e.className+" "+t)},u=function(e,t){e.className=l((" "+e.className+" ").replace(" "+t+" "," "))},h=function(e){return/Array/.test(Object.prototype.toString.call(e))},f=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},m=function(e){return e%4===0&&e%100!==0||e%400===0},g=function(e,t){return[31,m(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},p=function(e){f(e)&&e.setHours(0,0,0,0)},v=function(e,t){return e.getTime()===t.getTime()},b=function(e,t,n){var a,i;for(a in t)i=void 0!==e[a],i&&"object"==typeof t[a]&&void 0===t[a].nodeName?f(t[a])?n&&(e[a]=new Date(t[a].getTime())):h(t[a])?n&&(e[a]=t[a].slice(0)):e[a]=b({},t[a],n):(n||!i)&&(e[a]=t[a]);return e},y=function(e){return e.month<0&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),e.month>11&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e},w={field:null,bound:void 0,position:"bottom left",format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:!1,firstDay:0,minDate:null,maxDate:null,yearRange:10,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,numberOfMonths:1,mainCalendar:"left",i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},onSelect:null,onOpen:null,onClose:null,onDraw:null},x=function(e,t,n){for(t+=e.firstDay;t>=7;)t-=7;return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},_=function(e,t,n,a,i,o,r){if(r)return'';var s=[];return o&&s.push("is-disabled"),i&&s.push("is-today"),a&&s.push("is-selected"),'"},k=function(e,t){return""+(t?e.reverse():e).join("")+""},C=function(e){return""+e.join("")+""},E=function(e){var t,n=[];for(t=0;7>t;t++)n.push(''+x(e,t,!0)+"");return""+(e.isRTL?n.reverse():n).join("")+""},S=function(e,t,n,a,i){var o,r,s,l,c,d=e._o,u=n===d.minYear,f=n===d.maxYear,m='
',g=!0,p=!0;for(s=[],o=0;12>o;o++)s.push('");for(l='
'+d.i18n.months[a]+'
",h(d.yearRange)?(o=d.yearRange[0],r=d.yearRange[1]+1):(o=n-d.yearRange,r=1+n+d.yearRange),s=[];r>o&&o<=d.maxYear;o++)o>=d.minYear&&s.push('");return c='
'+n+d.yearSuffix+'
",m+=d.showMonthAfterYear?c+l:l+c,u&&(0===a||d.minMonth>=a)&&(g=!1),f&&(11===a||d.maxMonth<=a)&&(p=!1),0===t&&(m+='"),t===e._o.numberOfMonths-1&&(m+='"),m+="
"},A=function(e,t){return''+E(e)+C(t)+"
"},T=function(r){var s=this,l=s.config(r);s._onMouseDown=function(e){if(s._v){e=e||window.event;var t=e.target||e.srcElement;if(t){if(!c(t,"is-disabled")){if(c(t,"pika-button")&&!c(t,"is-empty"))return s.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),void(l.bound&&i(function(){s.hide()},100));c(t,"pika-prev")?s.prevMonth():c(t,"pika-next")&&s.nextMonth()}if(c(t,"pika-select"))s._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}}},s._onChange=function(e){e=e||window.event;var t=e.target||e.srcElement;t&&(c(t,"pika-select-month")?s.gotoMonth(t.value):c(t,"pika-select-year")&&s.gotoYear(t.value))},s._onInputChange=function(n){var a;n.firedBy!==s&&(t?(a=e(l.field.value,l.format),a=a&&a.isValid()?a.toDate():null):a=new Date(Date.parse(l.field.value)),s.setDate(f(a)?a:null),s._v||s.show())},s._onInputFocus=function(){s.show()},s._onInputClick=function(){s.show()},s._onInputBlur=function(){s._c||(s._b=i(function(){s.hide()},50)),s._c=!1},s._onClick=function(e){e=e||window.event;var t=e.target||e.srcElement,a=t;if(t){!n&&c(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),o(t,"change",s._onChange)));do if(c(a,"pika-single"))return;while(a=a.parentNode);s._v&&t!==l.trigger&&s.hide()}},s.el=a.createElement("div"),s.el.className="pika-single"+(l.isRTL?" is-rtl":""),o(s.el,"mousedown",s._onMouseDown,!0),o(s.el,"change",s._onChange),l.field&&(l.bound?a.body.appendChild(s.el):l.field.parentNode.insertBefore(s.el,l.field.nextSibling),o(l.field,"change",s._onInputChange),l.defaultDate||(t&&l.field.value?l.defaultDate=e(l.field.value,l.format).toDate():l.defaultDate=new Date(Date.parse(l.field.value)),l.setDefaultDate=!0));var d=l.defaultDate;f(d)?l.setDefaultDate?s.setDate(d,!0):s.gotoDate(d):s.gotoDate(new Date),l.bound?(this.hide(),s.el.className+=" is-bound",o(l.trigger,"click",s._onInputClick),o(l.trigger,"focus",s._onInputFocus),o(l.trigger,"blur",s._onInputBlur)):this.show()};return T.prototype={config:function(e){this._o||(this._o=b({},w,!0));var t=b(this._o,e,!0);t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.bound=!!(void 0!==t.bound?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field;var n=parseInt(t.numberOfMonths,10)||1;if(t.numberOfMonths=n>4?4:n,f(t.minDate)||(t.minDate=!1),f(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.maxDate100&&(t.yearRange=100);return t},toString:function(n){return f(this._d)?t?e(this._d).format(n||this._o.format):this._d.toDateString():""},getMoment:function(){return t?e(this._d):null},setMoment:function(n,a){t&&e.isMoment(n)&&this.setDate(n.toDate(),a)},getDate:function(){return f(this._d)?new Date(this._d.getTime()):null},setDate:function(e,t){if(!e)return this._d=null,this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),f(e)){var n=this._o.minDate,a=this._o.maxDate;f(n)&&n>e?e=n:f(a)&&e>a&&(e=a),this._d=new Date(e.getTime()),p(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),s(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(e){var t=!0;if(f(e)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),a=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),i=e.getTime();a.setMonth(a.getMonth()+1),a.setDate(a.getDate()-1),t=i=a&&(this._y=a,!isNaN(r)&&this._m>r&&(this._m=r));for(var l=0;l'+S(this,l,this.calendars[l].year,this.calendars[l].month,this.calendars[0].year)+this.render(this.calendars[l].year,this.calendars[l].month)+"";if(this.el.innerHTML=s,t.bound&&"hidden"!==t.field.type&&i(function(){t.trigger.focus()},1),"function"==typeof this._o.onDraw){var c=this;i(function(){c._o.onDraw.call(c)},0)}}},adjustPosition:function(){var e,t,n,i=this._o.trigger,o=i,r=this.el.offsetWidth,s=this.el.offsetHeight,l=window.innerWidth||a.documentElement.clientWidth,c=window.innerHeight||a.documentElement.clientHeight,d=window.pageYOffset||a.body.scrollTop||a.documentElement.scrollTop;if("function"==typeof i.getBoundingClientRect)n=i.getBoundingClientRect(),e=n.left+window.pageXOffset,t=n.bottom+window.pageYOffset;else for(e=o.offsetLeft,t=o.offsetTop+o.offsetHeight;o=o.offsetParent;)e+=o.offsetLeft,t+=o.offsetTop;(e+r>l||this._o.position.indexOf("right")>-1&&e-r+i.offsetWidth>0)&&(e=e-r+i.offsetWidth),(t+s>c+d||this._o.position.indexOf("top")>-1&&t-s-i.offsetHeight>0)&&(t=t-s-i.offsetHeight),this.el.style.cssText=["position: absolute","left: "+e+"px","top: "+t+"px"].join(";")},render:function(e,t){var n=this._o,a=new Date,i=g(e,t),o=new Date(e,t,1).getDay(),r=[],s=[];p(a),n.firstDay>0&&(o-=n.firstDay,0>o&&(o+=7));for(var l=i+o,c=l;c>7;)c-=7;l+=7-c;for(var d=0,u=0;l>d;d++){var h=new Date(e,t,1+(d-o)),m=n.minDate&&hn.maxDate,b=f(this._d)?v(h,this._d):!1,y=v(h,a),w=o>d||d>=i+o;s.push(_(1+(d-o),t,e,b,y,m,w)),7===++u&&(r.push(k(s,n.isRTL)),s=[],u=0)}return A(n,r)},isVisible:function(){return this._v},show:function(){this._v||(u(this.el,"is-hidden"),this._v=!0,this.draw(),this._o.bound&&(o(a,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var e=this._v;e!==!1&&(this._o.bound&&r(a,"click",this._onClick),this.el.style.cssText="",d(this.el,"is-hidden"),this._v=!1,void 0!==e&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){this.hide(),r(this.el,"mousedown",this._onMouseDown,!0),r(this.el,"change",this._onChange),this._o.field&&(r(this._o.field,"change",this._onInputChange),this._o.bound&&(r(this._o.trigger,"click",this._onInputClick),r(this._o.trigger,"focus",this._onInputFocus),r(this._o.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},T}); \ No newline at end of file diff --git a/assets/javascripts/locastyle.js b/assets/javascripts/locastyle.js index 1458554eb..cda5b8743 100644 --- a/assets/javascripts/locastyle.js +++ b/assets/javascripts/locastyle.js @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -!function(t,e){var n,a,i,o,s,r,l,c,u,d,h=window.Sizzle||null,f=t[e],p="undefined",m=!1,g=typeof window.jQuery!==p,v=!1,y=window.document;try{v=typeof window.sessionStorage!==p}catch(b){}d={smoothScroll:!0,scrollDuration:1e3,scrollTopMargin:200,showCloseButton:!0,showPrevButton:!1,showNextButton:!0,bubbleWidth:280,bubblePadding:15,arrowWidth:20,skipIfNoElement:!0,cookieName:"hopscotch.tour.state"},f||(Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),u=function(){m&&f.startTour()},r={addClass:function(t,e){var n,a,i,o;if(t.className){for(a=e.split(/\s+/),n=" "+t.className+" ",i=0,o=a.length;o>i;++i)n.indexOf(" "+a[i]+" ")<0&&(n+=a[i]+" ");t.className=n.replace(/^\s+|\s+$/g,"")}else t.className=e},removeClass:function(t,e){var n,a,i,o;for(a=e.split(/\s+/),n=" "+t.className+" ",i=0,o=a.length;o>i;++i)n=n.replace(" "+a[i]+" "," ");t.className=n.replace(/^\s+|\s+$/g,"")},getPixelValue:function(t){var e=typeof t;return"number"===e?t:"string"===e?parseInt(t,10):0},valOrDefault:function(t,e){return typeof t!==p?t:e},invokeCallbackArrayHelper:function(t){var e;return Array.isArray(t)&&(e=c[t[0]],"function"==typeof e)?e.apply(this,t.slice(1)):void 0},invokeCallbackArray:function(t){var e,n;if(Array.isArray(t)){if("string"==typeof t[0])return r.invokeCallbackArrayHelper(t);for(e=0,n=t.length;n>e;++e)r.invokeCallback(t[e])}},invokeCallback:function(t){return"function"==typeof t?t():"string"==typeof t&&c[t]?c[t]():r.invokeCallbackArray(t)},invokeEventCallbacks:function(t,e){var n,a,i=l[t];if(e)return this.invokeCallback(e);for(n=0,a=i.length;a>n;++n)this.invokeCallback(i[n].cb)},getScrollTop:function(){var t;return t=typeof window.pageYOffset!==p?window.pageYOffset:y.documentElement.scrollTop},getScrollLeft:function(){var t;return t=typeof window.pageXOffset!==p?window.pageXOffset:y.documentElement.scrollLeft},getWindowHeight:function(){return window.innerHeight||y.documentElement.clientHeight},getWindowWidth:function(){return window.innerWidth||y.documentElement.clientWidth},addEvtListener:function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},removeEvtListener:function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},documentIsReady:function(){return"complete"===y.readyState||"interactive"===y.readyState},evtPreventDefault:function(t){t.preventDefault?t.preventDefault():event&&(event.returnValue=!1)},extend:function(t,e){var n;for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},getStepTargetHelper:function(t){var e;return/^[#\.]/.test(t)?y.querySelector?y.querySelector(t):g?(e=jQuery(t),e.length?e[0]:null):h?(e=new h(t),e.length?e[0]:null):/^#[a-zA-Z][\w-_:.]*$/.test(t)?y.getElementById(t.substring(1)):null:y.getElementById(t)},getStepTarget:function(t){var e;if(!t||!t.target)return null;if("string"==typeof t.target)return t.target=r.getStepTargetHelper(t.target),t.target;if(Array.isArray(t.target)){var n,a;for(n=0,a=t.target.length;a>n;n++)if("string"==typeof t.target[n]&&(e=r.getStepTargetHelper(t.target[n])))return t.target=e,e;return null}return t.target},getI18NString:function(t){return s[t]||o[t]},setState:function(t,e,n){var a,i="";v?sessionStorage.setItem(t,e):(n&&(a=new Date,a.setTime(a.getTime()+24*n*60*60*1e3),i="; expires="+a.toGMTString()),y.cookie=t+"="+e+i+"; path=/")},getState:function(t){var e,n,a,i=t+"=",o=y.cookie.split(";");if(v)a=sessionStorage.getItem(t);else for(e=0;e=0?" prev":" next",r.addClass(n,a),n},setPosition:function(t){var e,n,a,i,o,s,l,c=6,u=r.getStepTarget(t),d=this.element,h=this.arrowEl;e=r.getPixelValue(t.width)||this.opt.bubbleWidth,a=r.valOrDefault(t.padding,this.opt.bubblePadding),r.removeClass(d,"fade-in-down fade-in-up fade-in-left fade-in-right"),!t.placement&&t.orientation&&(t.placement=t.orientation),i=u.getBoundingClientRect(),"top"===t.placement?(n=d.offsetHeight,o=i.top-n-this.opt.arrowWidth,s=i.left):"bottom"===t.placement?(o=i.bottom+this.opt.arrowWidth,s=i.left):"left"===t.placement?(o=i.top,s=i.left-e-2*a-2*c-this.opt.arrowWidth):"right"===t.placement&&(o=i.top,s=i.right+this.opt.arrowWidth),l="center"!==t.arrowOffset?r.getPixelValue(t.arrowOffset):t.arrowOffset,l?"top"===t.placement||"bottom"===t.placement?(h.style.top="","center"===l?h.style.left=e/2+a-h.offsetWidth/2+"px":h.style.left=l+"px"):("left"===t.placement||"right"===t.placement)&&(h.style.left="","center"===l?(n=n||d.offsetHeight,h.style.top=n/2+a-h.offsetHeight/2+"px"):h.style.top=l+"px"):(h.style.top="",h.style.left=""),"center"===t.xOffset?s=i.left+u.offsetWidth/2-e/2-a:s+=r.getPixelValue(t.xOffset),"center"===t.yOffset?(n=n||d.offsetHeight,o=i.top+u.offsetHeight/2-n/2-a):o+=r.getPixelValue(t.yOffset),t.fixedElement||(o+=r.getScrollTop(),s+=r.getScrollLeft()),d.style.position=t.fixedElement?"fixed":"absolute",d.style.top=o+"px",d.style.left=s+"px"},_initNavButtons:function(){var t=y.createElement("div");return this.prevBtnEl=this._createButton("hopscotch-prev",r.getI18NString("prevBtn")),this.nextBtnEl=this._createButton("hopscotch-next",r.getI18NString("nextBtn")),this.doneBtnEl=this._createButton("hopscotch-done",r.getI18NString("doneBtn")),this.ctaBtnEl=this._createButton("hopscotch-cta"),r.addClass(this.doneBtnEl,"hide"),t.appendChild(this.prevBtnEl),t.appendChild(this.ctaBtnEl),t.appendChild(this.nextBtnEl),t.appendChild(this.doneBtnEl),r.addEvtListener(this.prevBtnEl,"click",function(t){f.prevStep(!0)}),r.addEvtListener(this.nextBtnEl,"click",function(t){f.nextStep(!0)}),r.addEvtListener(this.doneBtnEl,"click",function(t){f.endTour()}),t.className="hopscotch-actions",this.buttonsEl=t,this.containerEl.appendChild(t),this},_getCloseFn:function(){var t=this;return this.closeFn||(this.closeFn=function(e){t.opt.onClose&&r.invokeCallback(t.opt.onClose),t.opt.id&&!t.opt.isTourBubble?f.getCalloutManager().removeCallout(t.opt.id):t.destroy(),r.evtPreventDefault(e)}),this.closeFn},initCloseButton:function(){var t=y.createElement("a");return t.className="hopscotch-bubble-close",t.href="#",t.title=r.getI18NString("closeTooltip"),t.innerHTML=r.getI18NString("closeTooltip"),this.opt.isTourBubble?r.addEvtListener(t,"click",function(t){var e=f.getCurrStepNum(),n=f.getCurrTour(),a=e===n.steps.length-1;r.invokeEventCallbacks("close"),f.endTour(!0,a),t.preventDefault?t.preventDefault():event&&(event.returnValue=!1)}):r.addEvtListener(t,"click",this._getCloseFn()),r.valOrDefault(this.opt.showCloseButton,!0)||r.addClass(t,"hide"),this.closeBtnEl=t,this.containerEl.appendChild(t),this},_initArrow:function(){var t,e;return this.arrowEl=y.createElement("div"),this.arrowEl.className="hopscotch-bubble-arrow-container",e=y.createElement("div"),e.className="hopscotch-bubble-arrow-border",t=y.createElement("div"),t.className="hopscotch-bubble-arrow",this.arrowEl.appendChild(e),this.arrowEl.appendChild(t),this.element.appendChild(this.arrowEl),this},_setupCTAButton:function(t){var e=this;this._showButton(this.ctaBtnEl,!!t.showCTAButton),t.showCTAButton&&t.ctaLabel&&(this.ctaBtnEl.innerHTML=t.ctaLabel,this._ctaFn=function(){e.opt.isTourBubble||f.getCalloutManager().removeCallout(t.id),t.onCTA&&"function"==typeof t.onCTA&&t.onCTA()},r.addEvtListener(this.ctaBtnEl,"click",this._ctaFn))},_removeCTACallback:function(){this.ctaBtnEl&&this._ctaFn&&(r.removeEvtListener(this.ctaBtnEl,"click",this._ctaFn),this._ctaFn=null)},render:function(t,e,n,a){var i,o,s,l,c=this.element;return t?this.currStep=t:this.currStep&&(t=this.currStep),!t.placement&&t.orientation&&(t.placement=t.orientation),i=r.valOrDefault(t.showNextButton,this.opt.showNextButton),o=r.valOrDefault(t.showPrevButton,this.opt.showPrevButton),this.setTitle(t.title||""),this.setContent(t.content||""),this.opt.isTourBubble&&this.setNum(e),this.placement=t.placement,this.showPrevButton(this.prevBtnEl&&o&&e>0),this.showNextButton(this.nextBtnEl&&i&&!n),this.nextBtnEl.innerHTML=t.showSkip?r.getI18NString("skipBtn"):r.getI18NString("nextBtn"),n?r.removeClass(this.doneBtnEl,"hide"):r.addClass(this.doneBtnEl,"hide"),this._setupCTAButton(t),this._setArrow(t.placement),s=r.getPixelValue(t.width)||this.opt.bubbleWidth,l=r.valOrDefault(t.padding,this.opt.bubblePadding),this.containerEl.style.width=s+"px",this.containerEl.style.padding=l+"px",c.style.zIndex=t.zindex||"","top"===t.placement?(c.style.top="-9999px",c.style.left="-9999px",r.removeClass(c,"hide"),this.setPosition(t),r.addClass(c,"hide")):this.setPosition(t),a&&a(!t.fixedElement),this},setTitle:function(t){return t?(this.titleEl.innerHTML=t,r.removeClass(this.titleEl,"hide")):r.addClass(this.titleEl,"hide"),this},setContent:function(t){return t?(this.contentEl.innerHTML=t,r.removeClass(this.contentEl,"hide")):r.addClass(this.contentEl,"hide"),this},setNum:function(t){var e=r.getI18NString("stepNums");e&&th||h>=u.steps.length?null:u.steps[h]},C=function(){w.nextStep()},$=function(t){var e,n,a,i,o,s,l=_(),c=l.element,u=r.getPixelValue(c.style.top),d=u+r.getPixelValue(c.offsetHeight),h=r.getStepTarget(k()),f=h.getBoundingClientRect(),m=f.top+r.getScrollTop(),v=f.bottom+r.getScrollTop(),b=m>u?u:m,w=d>v?d:v,C=r.getScrollTop(),$=C+r.getWindowHeight(),T=b-x("scrollTopMargin");b>=C&&(b<=C+x("scrollTopMargin")||$>=w)?t&&t():x("smoothScroll")?typeof YAHOO!==p&&typeof YAHOO.env!==p&&typeof YAHOO.env.ua!==p&&typeof YAHOO.util!==p&&typeof YAHOO.util.Scroll!==p?(e=YAHOO.env.ua.webkit?y.body:y.documentElement,a=YAHOO.util.Easing?YAHOO.util.Easing.easeOut:void 0,n=new YAHOO.util.Scroll(e,{scroll:{to:[0,T]}},x("scrollDuration")/1e3,a),n.onComplete.subscribe(t),n.animate()):g?jQuery("body, html").animate({scrollTop:T},x("scrollDuration"),t):(0>T&&(T=0),i=C>b?-1:1,o=Math.abs(C-T)/(x("scrollDuration")/10),(s=function(){var e=r.getScrollTop(),n=e+i*o;return i>0&&n>=T||0>i&&T>=n?(n=T,t&&t(),void window.scrollTo(0,n)):(window.scrollTo(0,n),r.getScrollTop()===e?void(t&&t()):void setTimeout(s,10))})()):(window.scrollTo(0,T),t&&t())},T=function(t,e){var n,a,i;h+t>=0&&h+t0?a.multipage:h>0&&u.steps[h-1].multipage,o=function(n){var o;return-1===n?this.endTour(!0):(t&&(o=e>0?r.invokeEventCallbacks("next",a.onNext):r.invokeEventCallbacks("prev",a.onPrev)),i?void r.setState(x("cookieName"),u.id+":"+h,1):(o=r.valOrDefault(o,!0),void(o?this.showStep(n):this.endTour(!1))))},!i&&x("skipIfNoElement"))T(e,function(t){o.call(l,t)});else if(h+e>=0&&h+e=u.steps.length)throw"Specified step number out of bounds.";h=e}return r.documentIsReady()?(h||u.id!==f||typeof v===p?h||(h=0):h=v,E(h,function(t){var e=-1!==t&&r.getStepTarget(u.steps[t]);return e?(r.invokeEventCallbacks("start"),n=_(),n.hide(!1),a.isActive=!0,void(r.getStepTarget(k())?a.showStep(t):(r.invokeEventCallbacks("error"),x("skipIfNoElement")&&a.nextStep(!1)))):void a.endTour(!1,!1)}),this):(m=!0,this)},this.showStep=function(t){var e=u.steps[t];return e.delay?setTimeout(function(){M(t)},e.delay):M(t),this},this.prevStep=function(t){return S.call(this,t,-1),this},this.nextStep=function(t){var e=k(),n=r.getStepTarget(e);return e.nextOnTargetClick&&r.removeEvtListener(n,"click",C),S.call(this,t,1),this},this.endTour=function(t,e){var n=_();return t=r.valOrDefault(t,!0),e=r.valOrDefault(e,!0),h=0,v=void 0,n.hide(),t&&r.clearState(x("cookieName")),this.isActive&&(this.isActive=!1,u&&e&&r.invokeEventCallbacks("end")),this.removeCallbacks(null,!0),this.resetDefaultOptions(),u=null,this},this.getCurrTour=function(){return u},this.getCurrTarget=function(){return r.getStepTarget(k())},this.getCurrStepNum=function(){return h},this.listen=function(t,e,n){return t&&l[t].push({cb:e,fromTour:n}),this},this.unlisten=function(t,e){var n,a,i=l[t];for(n=0,a=i.length;a>n;++n)i[n]===e&&i.splice(n,1);return this},this.removeCallbacks=function(t,e){var n,a,i,o;for(o in l)if(!t||t===o)if(e)for(n=l[o],a=0,i=n.length;i>a;++a)n[a].fromTour&&(n.splice(a--,1),--i);else l[o]=[];return this},this.registerHelper=function(t,e){"string"==typeof t&&"function"==typeof e&&(c[t]=e)},this.unregisterHelper=function(t){c[t]=null},this.invokeHelper=function(t){var e,n,a=[];for(e=1,n=arguments.length;n>e;++e)a.push(arguments[e]);c[t]&&c[t].call(null,a)},this.setCookieName=function(t){return o.cookieName=t,this},this.resetDefaultOptions=function(){return o={},this},this.resetDefaultI18N=function(){return s={},this},this.getState=function(){return r.getState(x("cookieName"))},b=function(t,e){var n,a,i,l,c=["next","prev","start","end","show","error","close"];for(o||this.resetDefaultOptions(),r.extend(o,t),t&&r.extend(s,t.i18n),i=0,l=c.length;l>i;++i)a="on"+c[i].charAt(0).toUpperCase()+c[i].substring(1),t[a]&&this.listen(c[i],t[a],e);return n=_(!0),this},this.configure=function(t){return b.call(this,t,!1)},O.call(this,t)},f=new n,t[e]=f)}(window,"hopscotch"),/*! +!function(t,e){var n,a,i,o,s,r,l,c,u,d,h=window.Sizzle||null,f=t[e],p="undefined",m=!1,g=typeof window.jQuery!==p,v=!1,y=window.document;try{v=typeof window.sessionStorage!==p}catch(b){}d={smoothScroll:!0,scrollDuration:1e3,scrollTopMargin:200,showCloseButton:!0,showPrevButton:!1,showNextButton:!0,bubbleWidth:280,bubblePadding:15,arrowWidth:20,skipIfNoElement:!0,cookieName:"hopscotch.tour.state"},f||(Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),u=function(){m&&f.startTour()},r={addClass:function(t,e){var n,a,i,o;if(t.className){for(a=e.split(/\s+/),n=" "+t.className+" ",i=0,o=a.length;o>i;++i)n.indexOf(" "+a[i]+" ")<0&&(n+=a[i]+" ");t.className=n.replace(/^\s+|\s+$/g,"")}else t.className=e},removeClass:function(t,e){var n,a,i,o;for(a=e.split(/\s+/),n=" "+t.className+" ",i=0,o=a.length;o>i;++i)n=n.replace(" "+a[i]+" "," ");t.className=n.replace(/^\s+|\s+$/g,"")},getPixelValue:function(t){var e=typeof t;return"number"===e?t:"string"===e?parseInt(t,10):0},valOrDefault:function(t,e){return typeof t!==p?t:e},invokeCallbackArrayHelper:function(t){var e;return Array.isArray(t)&&(e=c[t[0]],"function"==typeof e)?e.apply(this,t.slice(1)):void 0},invokeCallbackArray:function(t){var e,n;if(Array.isArray(t)){if("string"==typeof t[0])return r.invokeCallbackArrayHelper(t);for(e=0,n=t.length;n>e;++e)r.invokeCallback(t[e])}},invokeCallback:function(t){return"function"==typeof t?t():"string"==typeof t&&c[t]?c[t]():r.invokeCallbackArray(t)},invokeEventCallbacks:function(t,e){var n,a,i=l[t];if(e)return this.invokeCallback(e);for(n=0,a=i.length;a>n;++n)this.invokeCallback(i[n].cb)},getScrollTop:function(){var t;return t=typeof window.pageYOffset!==p?window.pageYOffset:y.documentElement.scrollTop},getScrollLeft:function(){var t;return t=typeof window.pageXOffset!==p?window.pageXOffset:y.documentElement.scrollLeft},getWindowHeight:function(){return window.innerHeight||y.documentElement.clientHeight},getWindowWidth:function(){return window.innerWidth||y.documentElement.clientWidth},addEvtListener:function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},removeEvtListener:function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},documentIsReady:function(){return"complete"===y.readyState||"interactive"===y.readyState},evtPreventDefault:function(t){t.preventDefault?t.preventDefault():event&&(event.returnValue=!1)},extend:function(t,e){var n;for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},getStepTargetHelper:function(t){var e;return/^[#\.]/.test(t)?y.querySelector?y.querySelector(t):g?(e=jQuery(t),e.length?e[0]:null):h?(e=new h(t),e.length?e[0]:null):/^#[a-zA-Z][\w-_:.]*$/.test(t)?y.getElementById(t.substring(1)):null:y.getElementById(t)},getStepTarget:function(t){var e;if(!t||!t.target)return null;if("string"==typeof t.target)return t.target=r.getStepTargetHelper(t.target),t.target;if(Array.isArray(t.target)){var n,a;for(n=0,a=t.target.length;a>n;n++)if("string"==typeof t.target[n]&&(e=r.getStepTargetHelper(t.target[n])))return t.target=e,e;return null}return t.target},getI18NString:function(t){return s[t]||o[t]},setState:function(t,e,n){var a,i="";v?sessionStorage.setItem(t,e):(n&&(a=new Date,a.setTime(a.getTime()+24*n*60*60*1e3),i="; expires="+a.toGMTString()),y.cookie=t+"="+e+i+"; path=/")},getState:function(t){var e,n,a,i=t+"=",o=y.cookie.split(";");if(v)a=sessionStorage.getItem(t);else for(e=0;e=0?" prev":" next",r.addClass(n,a),n},setPosition:function(t){var e,n,a,i,o,s,l,c=6,u=r.getStepTarget(t),d=this.element,h=this.arrowEl;e=r.getPixelValue(t.width)||this.opt.bubbleWidth,a=r.valOrDefault(t.padding,this.opt.bubblePadding),r.removeClass(d,"fade-in-down fade-in-up fade-in-left fade-in-right"),!t.placement&&t.orientation&&(t.placement=t.orientation),i=u.getBoundingClientRect(),"top"===t.placement?(n=d.offsetHeight,o=i.top-n-this.opt.arrowWidth,s=i.left):"bottom"===t.placement?(o=i.bottom+this.opt.arrowWidth,s=i.left):"left"===t.placement?(o=i.top,s=i.left-e-2*a-2*c-this.opt.arrowWidth):"right"===t.placement&&(o=i.top,s=i.right+this.opt.arrowWidth),l="center"!==t.arrowOffset?r.getPixelValue(t.arrowOffset):t.arrowOffset,l?"top"===t.placement||"bottom"===t.placement?(h.style.top="","center"===l?h.style.left=e/2+a-h.offsetWidth/2+"px":h.style.left=l+"px"):("left"===t.placement||"right"===t.placement)&&(h.style.left="","center"===l?(n=n||d.offsetHeight,h.style.top=n/2+a-h.offsetHeight/2+"px"):h.style.top=l+"px"):(h.style.top="",h.style.left=""),"center"===t.xOffset?s=i.left+u.offsetWidth/2-e/2-a:s+=r.getPixelValue(t.xOffset),"center"===t.yOffset?(n=n||d.offsetHeight,o=i.top+u.offsetHeight/2-n/2-a):o+=r.getPixelValue(t.yOffset),t.fixedElement||(o+=r.getScrollTop(),s+=r.getScrollLeft()),d.style.position=t.fixedElement?"fixed":"absolute",d.style.top=o+"px",d.style.left=s+"px"},_initNavButtons:function(){var t=y.createElement("div");return this.prevBtnEl=this._createButton("hopscotch-prev",r.getI18NString("prevBtn")),this.nextBtnEl=this._createButton("hopscotch-next",r.getI18NString("nextBtn")),this.doneBtnEl=this._createButton("hopscotch-done",r.getI18NString("doneBtn")),this.ctaBtnEl=this._createButton("hopscotch-cta"),r.addClass(this.doneBtnEl,"hide"),t.appendChild(this.prevBtnEl),t.appendChild(this.ctaBtnEl),t.appendChild(this.nextBtnEl),t.appendChild(this.doneBtnEl),r.addEvtListener(this.prevBtnEl,"click",function(t){f.prevStep(!0)}),r.addEvtListener(this.nextBtnEl,"click",function(t){f.nextStep(!0)}),r.addEvtListener(this.doneBtnEl,"click",function(t){f.endTour()}),t.className="hopscotch-actions",this.buttonsEl=t,this.containerEl.appendChild(t),this},_getCloseFn:function(){var t=this;return this.closeFn||(this.closeFn=function(e){t.opt.onClose&&r.invokeCallback(t.opt.onClose),t.opt.id&&!t.opt.isTourBubble?f.getCalloutManager().removeCallout(t.opt.id):t.destroy(),r.evtPreventDefault(e)}),this.closeFn},initCloseButton:function(){var t=y.createElement("a");return t.className="hopscotch-bubble-close",t.href="#",t.title=r.getI18NString("closeTooltip"),t.innerHTML=r.getI18NString("closeTooltip"),this.opt.isTourBubble?r.addEvtListener(t,"click",function(t){var e=f.getCurrStepNum(),n=f.getCurrTour(),a=e===n.steps.length-1;r.invokeEventCallbacks("close"),f.endTour(!0,a),t.preventDefault?t.preventDefault():event&&(event.returnValue=!1)}):r.addEvtListener(t,"click",this._getCloseFn()),r.valOrDefault(this.opt.showCloseButton,!0)||r.addClass(t,"hide"),this.closeBtnEl=t,this.containerEl.appendChild(t),this},_initArrow:function(){var t,e;return this.arrowEl=y.createElement("div"),this.arrowEl.className="hopscotch-bubble-arrow-container",e=y.createElement("div"),e.className="hopscotch-bubble-arrow-border",t=y.createElement("div"),t.className="hopscotch-bubble-arrow",this.arrowEl.appendChild(e),this.arrowEl.appendChild(t),this.element.appendChild(this.arrowEl),this},_setupCTAButton:function(t){var e=this;this._showButton(this.ctaBtnEl,!!t.showCTAButton),t.showCTAButton&&t.ctaLabel&&(this.ctaBtnEl.innerHTML=t.ctaLabel,this._ctaFn=function(){e.opt.isTourBubble||f.getCalloutManager().removeCallout(t.id),t.onCTA&&"function"==typeof t.onCTA&&t.onCTA()},r.addEvtListener(this.ctaBtnEl,"click",this._ctaFn))},_removeCTACallback:function(){this.ctaBtnEl&&this._ctaFn&&(r.removeEvtListener(this.ctaBtnEl,"click",this._ctaFn),this._ctaFn=null)},render:function(t,e,n,a){var i,o,s,l,c=this.element;return t?this.currStep=t:this.currStep&&(t=this.currStep),!t.placement&&t.orientation&&(t.placement=t.orientation),i=r.valOrDefault(t.showNextButton,this.opt.showNextButton),o=r.valOrDefault(t.showPrevButton,this.opt.showPrevButton),this.setTitle(t.title||""),this.setContent(t.content||""),this.opt.isTourBubble&&this.setNum(e),this.placement=t.placement,this.showPrevButton(this.prevBtnEl&&o&&e>0),this.showNextButton(this.nextBtnEl&&i&&!n),this.nextBtnEl.innerHTML=t.showSkip?r.getI18NString("skipBtn"):r.getI18NString("nextBtn"),n?r.removeClass(this.doneBtnEl,"hide"):r.addClass(this.doneBtnEl,"hide"),this._setupCTAButton(t),this._setArrow(t.placement),s=r.getPixelValue(t.width)||this.opt.bubbleWidth,l=r.valOrDefault(t.padding,this.opt.bubblePadding),this.containerEl.style.width=s+"px",this.containerEl.style.padding=l+"px",c.style.zIndex=t.zindex||"","top"===t.placement?(c.style.top="-9999px",c.style.left="-9999px",r.removeClass(c,"hide"),this.setPosition(t),r.addClass(c,"hide")):this.setPosition(t),a&&a(!t.fixedElement),this},setTitle:function(t){return t?(this.titleEl.innerHTML=t,r.removeClass(this.titleEl,"hide")):r.addClass(this.titleEl,"hide"),this},setContent:function(t){return t?(this.contentEl.innerHTML=t,r.removeClass(this.contentEl,"hide")):r.addClass(this.contentEl,"hide"),this},setNum:function(t){var e=r.getI18NString("stepNums");e&&th||h>=u.steps.length?null:u.steps[h]},C=function(){w.nextStep()},$=function(t){var e,n,a,i,o,s,l=_(),c=l.element,u=r.getPixelValue(c.style.top),d=u+r.getPixelValue(c.offsetHeight),h=r.getStepTarget(k()),f=h.getBoundingClientRect(),m=f.top+r.getScrollTop(),v=f.bottom+r.getScrollTop(),b=m>u?u:m,w=d>v?d:v,C=r.getScrollTop(),$=C+r.getWindowHeight(),S=b-x("scrollTopMargin");b>=C&&(b<=C+x("scrollTopMargin")||$>=w)?t&&t():x("smoothScroll")?typeof YAHOO!==p&&typeof YAHOO.env!==p&&typeof YAHOO.env.ua!==p&&typeof YAHOO.util!==p&&typeof YAHOO.util.Scroll!==p?(e=YAHOO.env.ua.webkit?y.body:y.documentElement,a=YAHOO.util.Easing?YAHOO.util.Easing.easeOut:void 0,n=new YAHOO.util.Scroll(e,{scroll:{to:[0,S]}},x("scrollDuration")/1e3,a),n.onComplete.subscribe(t),n.animate()):g?jQuery("body, html").animate({scrollTop:S},x("scrollDuration"),t):(0>S&&(S=0),i=C>b?-1:1,o=Math.abs(C-S)/(x("scrollDuration")/10),(s=function(){var e=r.getScrollTop(),n=e+i*o;return i>0&&n>=S||0>i&&S>=n?(n=S,t&&t(),void window.scrollTo(0,n)):(window.scrollTo(0,n),r.getScrollTop()===e?void(t&&t()):void setTimeout(s,10))})()):(window.scrollTo(0,S),t&&t())},S=function(t,e){var n,a,i;h+t>=0&&h+t0?a.multipage:h>0&&u.steps[h-1].multipage,o=function(n){var o;return-1===n?this.endTour(!0):(t&&(o=e>0?r.invokeEventCallbacks("next",a.onNext):r.invokeEventCallbacks("prev",a.onPrev)),i?void r.setState(x("cookieName"),u.id+":"+h,1):(o=r.valOrDefault(o,!0),void(o?this.showStep(n):this.endTour(!1))))},!i&&x("skipIfNoElement"))S(e,function(t){o.call(l,t)});else if(h+e>=0&&h+e=u.steps.length)throw"Specified step number out of bounds.";h=e}return r.documentIsReady()?(h||u.id!==f||typeof v===p?h||(h=0):h=v,E(h,function(t){var e=-1!==t&&r.getStepTarget(u.steps[t]);return e?(r.invokeEventCallbacks("start"),n=_(),n.hide(!1),a.isActive=!0,void(r.getStepTarget(k())?a.showStep(t):(r.invokeEventCallbacks("error"),x("skipIfNoElement")&&a.nextStep(!1)))):void a.endTour(!1,!1)}),this):(m=!0,this)},this.showStep=function(t){var e=u.steps[t];return e.delay?setTimeout(function(){M(t)},e.delay):M(t),this},this.prevStep=function(t){return D.call(this,t,-1),this},this.nextStep=function(t){var e=k(),n=r.getStepTarget(e);return e.nextOnTargetClick&&r.removeEvtListener(n,"click",C),D.call(this,t,1),this},this.endTour=function(t,e){var n=_();return t=r.valOrDefault(t,!0),e=r.valOrDefault(e,!0),h=0,v=void 0,n.hide(),t&&r.clearState(x("cookieName")),this.isActive&&(this.isActive=!1,u&&e&&r.invokeEventCallbacks("end")),this.removeCallbacks(null,!0),this.resetDefaultOptions(),u=null,this},this.getCurrTour=function(){return u},this.getCurrTarget=function(){return r.getStepTarget(k())},this.getCurrStepNum=function(){return h},this.listen=function(t,e,n){return t&&l[t].push({cb:e,fromTour:n}),this},this.unlisten=function(t,e){var n,a,i=l[t];for(n=0,a=i.length;a>n;++n)i[n]===e&&i.splice(n,1);return this},this.removeCallbacks=function(t,e){var n,a,i,o;for(o in l)if(!t||t===o)if(e)for(n=l[o],a=0,i=n.length;i>a;++a)n[a].fromTour&&(n.splice(a--,1),--i);else l[o]=[];return this},this.registerHelper=function(t,e){"string"==typeof t&&"function"==typeof e&&(c[t]=e)},this.unregisterHelper=function(t){c[t]=null},this.invokeHelper=function(t){var e,n,a=[];for(e=1,n=arguments.length;n>e;++e)a.push(arguments[e]);c[t]&&c[t].call(null,a)},this.setCookieName=function(t){return o.cookieName=t,this},this.resetDefaultOptions=function(){return o={},this},this.resetDefaultI18N=function(){return s={},this},this.getState=function(){return r.getState(x("cookieName"))},b=function(t,e){var n,a,i,l,c=["next","prev","start","end","show","error","close"];for(o||this.resetDefaultOptions(),r.extend(o,t),t&&r.extend(s,t.i18n),i=0,l=c.length;l>i;++i)a="on"+c[i].charAt(0).toUpperCase()+c[i].substring(1),t[a]&&this.listen(c[i],t[a],e);return n=_(!0),this},this.configure=function(t){return b.call(this,t,!1)},O.call(this,t)},f=new n,t[e]=f)}(window,"hopscotch"),/*! * jQuery Cookie Plugin v1.4.0 * https://github.com/carhartl/jquery-cookie * @@ -59,15 +59,15 @@ function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(window. //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com -function(t){function e(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function n(t,e){return function(n){return u(t.call(this,n),e)}}function a(t,e){return function(n){return this.lang().ordinal(t.call(this,n),e)}}function i(){}function o(t){x(t),r(this,t)}function s(t){var e=g(t),n=e.year||0,a=e.month||0,i=e.week||0,o=e.day||0,s=e.hour||0,r=e.minute||0,l=e.second||0,c=e.millisecond||0;this._milliseconds=+c+1e3*l+6e4*r+36e5*s,this._days=+o+7*i,this._months=+a+12*n,this._data={},this._bubble()}function r(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return e.hasOwnProperty("toString")&&(t.toString=e.toString),e.hasOwnProperty("valueOf")&&(t.valueOf=e.valueOf),t}function l(t){var e,n={};for(e in t)t.hasOwnProperty(e)&>.hasOwnProperty(e)&&(n[e]=t[e]);return n}function c(t){return 0>t?Math.ceil(t):Math.floor(t)}function u(t,e,n){for(var a=""+Math.abs(t),i=t>=0;a.lengtha;a++)(n&&t[a]!==e[a]||!n&&y(t[a])!==y(e[a]))&&s++;return s+o}function m(t){if(t){var e=t.toLowerCase().replace(/(.)s$/,"$1");t=Ut[t]||Gt[e]||e}return t}function g(t){var e,n,a={};for(n in t)t.hasOwnProperty(n)&&(e=m(n),e&&(a[e]=t[n]));return a}function v(e){var n,a;if(0===e.indexOf("week"))n=7,a="day";else{if(0!==e.indexOf("month"))return;n=12,a="month"}at[e]=function(i,o){var s,r,l=at.fn._lang[e],c=[];if("number"==typeof i&&(o=i,i=t),r=function(t){var e=at().utc().set(a,t);return l.call(at.fn._lang,e,i||"")},null!=o)return r(o);for(s=0;n>s;s++)c.push(r(s));return c}}function y(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=e>=0?Math.floor(e):Math.ceil(e)),n}function b(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function w(t){return _(t)?366:365}function _(t){return t%4===0&&t%100!==0||t%400===0}function x(t){var e;t._a&&-2===t._pf.overflow&&(e=t._a[ct]<0||t._a[ct]>11?ct:t._a[ut]<1||t._a[ut]>b(t._a[lt],t._a[ct])?ut:t._a[dt]<0||t._a[dt]>23?dt:t._a[ht]<0||t._a[ht]>59?ht:t._a[ft]<0||t._a[ft]>59?ft:t._a[pt]<0||t._a[pt]>999?pt:-1,t._pf._overflowDayOfYear&&(lt>e||e>ut)&&(e=ut),t._pf.overflow=e)}function k(t){return null==t._isValid&&(t._isValid=!isNaN(t._d.getTime())&&t._pf.overflow<0&&!t._pf.empty&&!t._pf.invalidMonth&&!t._pf.nullInput&&!t._pf.invalidFormat&&!t._pf.userInvalidated,t._strict&&(t._isValid=t._isValid&&0===t._pf.charsLeftOver&&0===t._pf.unusedTokens.length)),t._isValid}function C(t){return t?t.toLowerCase().replace("_","-"):t}function $(t,e){return e._isUTC?at(t).zone(e._offset||0):at(t).local()}function T(t,e){return e.abbr=t,mt[t]||(mt[t]=new i),mt[t].set(e),mt[t]}function S(t){delete mt[t]}function D(t){var e,n,a,i,o=0,s=function(t){if(!mt[t]&&vt)try{require("./lang/"+t)}catch(e){}return mt[t]};if(!t)return at.fn._lang;if(!h(t)){if(n=s(t))return n;t=[t]}for(;o0;){if(n=s(i.slice(0,e).join("-")))return n;if(a&&a.length>=e&&p(i,a,!0)>=e-1)break;e--}o++}return at.fn._lang}function E(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function M(t){var e,n,a=t.match(_t);for(e=0,n=a.length;n>e;e++)a[e]=Zt[a[e]]?Zt[a[e]]:E(a[e]);return function(i){var o="";for(e=0;n>e;e++)o+=a[e]instanceof Function?a[e].call(i,t):a[e];return o}}function O(t,e){return t.isValid()?(e=A(e,t.lang()),qt[e]||(qt[e]=M(e)),qt[e](t)):t.lang().invalidDate()}function A(t,e){function n(t){return e.longDateFormat(t)||t}var a=5;for(xt.lastIndex=0;a>=0&&xt.test(t);)t=t.replace(xt,n),xt.lastIndex=0,a-=1;return t}function B(t,e){var n,a=e._strict;switch(t){case"DDDD":return Nt;case"YYYY":case"GGGG":case"gggg":return a?Lt:$t;case"Y":case"G":case"g":return Yt;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return a?Pt:Tt;case"S":if(a)return At;case"SS":if(a)return Bt;case"SSS":if(a)return Nt;case"DDD":return Ct;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Dt;case"a":case"A":return D(e._l)._meridiemParse;case"X":return Ot;case"Z":case"ZZ":return Et;case"T":return Mt;case"SSSS":return St;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return a?Bt:kt;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return kt;default:return n=new RegExp(R(W(t.replace("\\","")),"i"))}}function N(t){t=t||"";var e=t.match(Et)||[],n=e[e.length-1]||[],a=(n+"").match(zt)||["-",0,0],i=+(60*a[1])+y(a[2]);return"+"===a[0]?-i:i}function L(t,e,n){var a,i=n._a;switch(t){case"M":case"MM":null!=e&&(i[ct]=y(e)-1);break;case"MMM":case"MMMM":a=D(n._l).monthsParse(e),null!=a?i[ct]=a:n._pf.invalidMonth=e;break;case"D":case"DD":null!=e&&(i[ut]=y(e));break;case"DDD":case"DDDD":null!=e&&(n._dayOfYear=y(e));break;case"YY":i[lt]=y(e)+(y(e)>68?1900:2e3);break;case"YYYY":case"YYYYY":case"YYYYYY":i[lt]=y(e);break;case"a":case"A":n._isPm=D(n._l).isPM(e);break;case"H":case"HH":case"h":case"hh":i[dt]=y(e);break;case"m":case"mm":i[ht]=y(e);break;case"s":case"ss":i[ft]=y(e);break;case"S":case"SS":case"SSS":case"SSSS":i[pt]=y(1e3*("0."+e));break;case"X":n._d=new Date(1e3*parseFloat(e));break;case"Z":case"ZZ":n._useUTC=!0,n._tzm=N(e);break;case"w":case"ww":case"W":case"WW":case"d":case"dd":case"ddd":case"dddd":case"e":case"E":t=t.substr(0,1);case"gg":case"gggg":case"GG":case"GGGG":case"GGGGG":t=t.substr(0,2),e&&(n._w=n._w||{},n._w[t]=e)}}function P(t){var e,n,a,i,o,s,r,l,c,u,d=[];if(!t._d){for(a=H(t),t._w&&null==t._a[ut]&&null==t._a[ct]&&(o=function(e){var n=parseInt(e,10);return e?e.length<3?n>68?1900+n:2e3+n:n:null==t._a[lt]?at().weekYear():t._a[lt]},s=t._w,null!=s.GG||null!=s.W||null!=s.E?r=J(o(s.GG),s.W||1,s.E,4,1):(l=D(t._l),c=null!=s.d?q(s.d,l):null!=s.e?parseInt(s.e,10)+l._week.dow:0,u=parseInt(s.w,10)||1,null!=s.d&&cw(i)&&(t._pf._overflowDayOfYear=!0),n=G(i,0,t._dayOfYear),t._a[ct]=n.getUTCMonth(),t._a[ut]=n.getUTCDate()),e=0;3>e&&null==t._a[e];++e)t._a[e]=d[e]=a[e];for(;7>e;e++)t._a[e]=d[e]=null==t._a[e]?2===e?1:0:t._a[e];d[dt]+=y((t._tzm||0)/60),d[ht]+=y((t._tzm||0)%60),t._d=(t._useUTC?G:U).apply(null,d)}}function Y(t){var e;t._d||(e=g(t._i),t._a=[e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond],P(t))}function H(t){var e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function I(t){t._a=[],t._pf.empty=!0;var e,n,a,i,o,s=D(t._l),r=""+t._i,l=r.length,c=0;for(a=A(t._f,s).match(_t)||[],e=0;e0&&t._pf.unusedInput.push(o),r=r.slice(r.indexOf(n)+n.length),c+=n.length),Zt[i]?(n?t._pf.empty=!1:t._pf.unusedTokens.push(i),L(i,n,t)):t._strict&&!n&&t._pf.unusedTokens.push(i);t._pf.charsLeftOver=l-c,r.length>0&&t._pf.unusedInput.push(r),t._isPm&&t._a[dt]<12&&(t._a[dt]+=12),t._isPm===!1&&12===t._a[dt]&&(t._a[dt]=0),P(t),x(t)}function W(t){return t.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,a,i){return e||n||a||i})}function R(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function z(t){var n,a,i,o,s;if(0===t._f.length)return t._pf.invalidFormat=!0,void(t._d=new Date(NaN));for(o=0;os)&&(i=s,a=n));r(t,a||n)}function j(t){var e,n,a=t._i,i=Ht.exec(a);if(i){for(t._pf.iso=!0,e=0,n=Wt.length;n>e;e++)if(Wt[e][1].exec(a)){t._f=Wt[e][0]+(i[6]||" ");break}for(e=0,n=Rt.length;n>e;e++)if(Rt[e][1].exec(a)){t._f+=Rt[e][0];break}a.match(Et)&&(t._f+="Z"),I(t)}else t._d=new Date(a)}function F(e){var n=e._i,a=yt.exec(n);n===t?e._d=new Date:a?e._d=new Date(+a[1]):"string"==typeof n?j(e):h(n)?(e._a=n.slice(0),P(e)):f(n)?e._d=new Date(+n):"object"==typeof n?Y(e):e._d=new Date(n)}function U(t,e,n,a,i,o,s){var r=new Date(t,e,n,a,i,o,s);return 1970>t&&r.setFullYear(t),r}function G(t){var e=new Date(Date.UTC.apply(null,arguments));return 1970>t&&e.setUTCFullYear(t),e}function q(t,e){if("string"==typeof t)if(isNaN(t)){if(t=e.weekdaysParse(t),"number"!=typeof t)return null}else t=parseInt(t,10);return t}function V(t,e,n,a,i){return i.relativeTime(e||1,!!n,t,a)}function Q(t,e,n){var a=rt(Math.abs(t)/1e3),i=rt(a/60),o=rt(i/60),s=rt(o/24),r=rt(s/365),l=45>a&&["s",a]||1===i&&["m"]||45>i&&["mm",i]||1===o&&["h"]||22>o&&["hh",o]||1===s&&["d"]||25>=s&&["dd",s]||45>=s&&["M"]||345>s&&["MM",rt(s/30)]||1===r&&["y"]||["yy",r];return l[2]=e,l[3]=t>0,l[4]=n,V.apply({},l)}function Z(t,e,n){var a,i=n-e,o=n-t.day();return o>i&&(o-=7),i-7>o&&(o+=7),a=at(t).add("d",o),{week:Math.ceil(a.dayOfYear()/7),year:a.year()}}function J(t,e,n,a,i){var o,s,r=G(t,0,1).getUTCDay();return n=null!=n?n:i,o=i-r+(r>a?7:0)-(i>r?7:0),s=7*(e-1)+(n-i)+o+1,{year:s>0?t:t-1,dayOfYear:s>0?s:w(t-1)+s}}function X(t){var e=t._i,n=t._f;return null===e?at.invalid({nullInput:!0}):("string"==typeof e&&(t._i=e=D().preparse(e)),at.isMoment(e)?(t=l(e),t._d=new Date(+e._d)):n?h(n)?z(t):I(t):F(t),new o(t))}function K(t,e){at.fn[t]=at.fn[t+"s"]=function(t){var n=this._isUTC?"UTC":"";return null!=t?(this._d["set"+n+e](t),at.updateOffset(this),this):this._d["get"+n+e]()}}function tt(t){at.duration.fn[t]=function(){return this._data[t]}}function et(t,e){at.duration.fn["as"+t]=function(){return+this/e}}function nt(t){var e=!1,n=at;"undefined"==typeof ender&&(t?(st.moment=function(){return!e&&console&&console.warn&&(e=!0,console.warn("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.")),n.apply(null,arguments)},r(st.moment,n)):st.moment=at)}for(var at,it,ot="2.5.1",st=this,rt=Math.round,lt=0,ct=1,ut=2,dt=3,ht=4,ft=5,pt=6,mt={},gt={_isAMomentObject:null,_i:null,_f:null,_l:null,_strict:null,_isUTC:null,_offset:null,_pf:null,_lang:null},vt="undefined"!=typeof module&&module.exports&&"undefined"!=typeof require,yt=/^\/?Date\((\-?\d+)/i,bt=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,wt=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,_t=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g,xt=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,kt=/\d\d?/,Ct=/\d{1,3}/,$t=/\d{1,4}/,Tt=/[+\-]?\d{1,6}/,St=/\d+/,Dt=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Et=/Z|[\+\-]\d\d:?\d\d/gi,Mt=/T/i,Ot=/[\+\-]?\d+(\.\d{1,3})?/,At=/\d/,Bt=/\d\d/,Nt=/\d{3}/,Lt=/\d{4}/,Pt=/[+-]?\d{6}/,Yt=/[+-]?\d+/,Ht=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,It="YYYY-MM-DDTHH:mm:ssZ",Wt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],Rt=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d{1,3}/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],zt=/([\+\-]|\d\d)/gi,jt="Date|Hours|Minutes|Seconds|Milliseconds".split("|"),Ft={Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6},Ut={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},Gt={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},qt={},Vt="DDD w W M D d".split(" "),Qt="M D H h m s w W".split(" "),Zt={M:function(){return this.month()+1},MMM:function(t){return this.lang().monthsShort(this,t)},MMMM:function(t){return this.lang().months(this,t)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(t){return this.lang().weekdaysMin(this,t)},ddd:function(t){return this.lang().weekdaysShort(this,t)},dddd:function(t){return this.lang().weekdays(this,t)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return u(this.year()%100,2)},YYYY:function(){return u(this.year(),4)},YYYYY:function(){return u(this.year(),5)},YYYYYY:function(){var t=this.year(),e=t>=0?"+":"-";return e+u(Math.abs(t),6)},gg:function(){return u(this.weekYear()%100,2)},gggg:function(){return u(this.weekYear(),4)},ggggg:function(){return u(this.weekYear(),5)},GG:function(){return u(this.isoWeekYear()%100,2)},GGGG:function(){return u(this.isoWeekYear(),4)},GGGGG:function(){return u(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.lang().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.lang().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return y(this.milliseconds()/100)},SS:function(){return u(y(this.milliseconds()/10),2)},SSS:function(){return u(this.milliseconds(),3)},SSSS:function(){return u(this.milliseconds(),3)},Z:function(){var t=-this.zone(),e="+";return 0>t&&(t=-t,e="-"),e+u(y(t/60),2)+":"+u(y(t)%60,2)},ZZ:function(){var t=-this.zone(),e="+";return 0>t&&(t=-t,e="-"),e+u(y(t/60),2)+u(y(t)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},Jt=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];Vt.length;)it=Vt.pop(),Zt[it+"o"]=a(Zt[it],it);for(;Qt.length;)it=Qt.pop(),Zt[it+it]=n(Zt[it],2);for(Zt.DDDD=n(Zt.DDD,3),r(i.prototype,{set:function(t){var e,n;for(n in t)e=t[n],"function"==typeof e?this[n]=e:this["_"+n]=e},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(t){return this._months[t.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(t){return this._monthsShort[t.month()]},monthsParse:function(t){var e,n,a;for(this._monthsParse||(this._monthsParse=[]),e=0;12>e;e++)if(this._monthsParse[e]||(n=at.utc([2e3,e]),a="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[e]=new RegExp(a.replace(".",""),"i")),this._monthsParse[e].test(t))return e},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(t){return this._weekdays[t.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(t){return this._weekdaysShort[t.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(t){return this._weekdaysMin[t.day()]},weekdaysParse:function(t){var e,n,a;for(this._weekdaysParse||(this._weekdaysParse=[]),e=0;7>e;e++)if(this._weekdaysParse[e]||(n=at([2e3,1]).day(e),a="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[e]=new RegExp(a.replace(".",""),"i")),this._weekdaysParse[e].test(t))return e},_longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D YYYY",LLL:"MMMM D YYYY LT",LLLL:"dddd, MMMM D YYYY LT"},longDateFormat:function(t){var e=this._longDateFormat[t];return!e&&this._longDateFormat[t.toUpperCase()]&&(e=this._longDateFormat[t.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t]=e),e},isPM:function(t){return"p"===(t+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(t,e){var n=this._calendar[t];return"function"==typeof n?n.apply(e):n},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(t,e,n,a){var i=this._relativeTime[n];return"function"==typeof i?i(t,e,n,a):i.replace(/%d/i,t)},pastFuture:function(t,e){var n=this._relativeTime[t>0?"future":"past"];return"function"==typeof n?n(e):n.replace(/%s/i,e)},ordinal:function(t){return this._ordinal.replace("%d",t)},_ordinal:"%d",preparse:function(t){return t},postformat:function(t){return t},week:function(t){return Z(t,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),at=function(n,a,i,o){var s;return"boolean"==typeof i&&(o=i,i=t),s={},s._isAMomentObject=!0,s._i=n,s._f=a,s._l=i,s._strict=o,s._isUTC=!1,s._pf=e(),X(s)},at.utc=function(n,a,i,o){var s;return"boolean"==typeof i&&(o=i,i=t),s={},s._isAMomentObject=!0,s._useUTC=!0,s._isUTC=!0,s._l=i,s._i=n,s._f=a,s._strict=o,s._pf=e(),X(s).utc()},at.unix=function(t){return at(1e3*t)},at.duration=function(t,e){var n,a,i,o=t,r=null;return at.isDuration(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(o={},e?o[e]=t:o.milliseconds=t):(r=bt.exec(t))?(n="-"===r[1]?-1:1,o={y:0,d:y(r[ut])*n,h:y(r[dt])*n,m:y(r[ht])*n,s:y(r[ft])*n,ms:y(r[pt])*n}):(r=wt.exec(t))&&(n="-"===r[1]?-1:1,i=function(t){var e=t&&parseFloat(t.replace(",","."));return(isNaN(e)?0:e)*n},o={y:i(r[2]),M:i(r[3]),d:i(r[4]),h:i(r[5]),m:i(r[6]),s:i(r[7]),w:i(r[8])}),a=new s(o),at.isDuration(t)&&t.hasOwnProperty("_lang")&&(a._lang=t._lang),a},at.version=ot,at.defaultFormat=It,at.updateOffset=function(){},at.lang=function(t,e){var n;return t?(e?T(C(t),e):null===e?(S(t),t="en"):mt[t]||D(t),n=at.duration.fn._lang=at.fn._lang=D(t),n._abbr):at.fn._lang._abbr},at.langData=function(t){return t&&t._lang&&t._lang._abbr&&(t=t._lang._abbr),D(t)},at.isMoment=function(t){return t instanceof o||null!=t&&t.hasOwnProperty("_isAMomentObject")},at.isDuration=function(t){return t instanceof s},it=Jt.length-1;it>=0;--it)v(Jt[it]);for(at.normalizeUnits=function(t){return m(t)},at.invalid=function(t){var e=at.utc(NaN);return null!=t?r(e._pf,t):e._pf.userInvalidated=!0,e},at.parseZone=function(t){return at(t).parseZone()},r(at.fn=o.prototype,{clone:function(){return at(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().lang("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var t=at(this).utc();return 00:!1},parsingFlags:function(){return r({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(){return this.zone(0)},local:function(){return this.zone(0),this._isUTC=!1,this},format:function(t){var e=O(this,t||at.defaultFormat);return this.lang().postformat(e)},add:function(t,e){var n;return n="string"==typeof t?at.duration(+e,t):at.duration(t,e),d(this,n,1),this},subtract:function(t,e){var n;return n="string"==typeof t?at.duration(+e,t):at.duration(t,e),d(this,n,-1),this},diff:function(t,e,n){var a,i,o=$(t,this),s=6e4*(this.zone()-o.zone());return e=m(e),"year"===e||"month"===e?(a=432e5*(this.daysInMonth()+o.daysInMonth()),i=12*(this.year()-o.year())+(this.month()-o.month()),i+=(this-at(this).startOf("month")-(o-at(o).startOf("month")))/a,i-=6e4*(this.zone()-at(this).startOf("month").zone()-(o.zone()-at(o).startOf("month").zone()))/a,"year"===e&&(i/=12)):(a=this-o,i="second"===e?a/1e3:"minute"===e?a/6e4:"hour"===e?a/36e5:"day"===e?(a-s)/864e5:"week"===e?(a-s)/6048e5:a),n?i:c(i)},from:function(t,e){return at.duration(this.diff(t)).lang(this.lang()._abbr).humanize(!e)},fromNow:function(t){return this.from(at(),t)},calendar:function(){var t=$(at(),this).startOf("day"),e=this.diff(t,"days",!0),n=-6>e?"sameElse":-1>e?"lastWeek":0>e?"lastDay":1>e?"sameDay":2>e?"nextDay":7>e?"nextWeek":"sameElse";return this.format(this.lang().calendar(n,this))},isLeapYear:function(){return _(this.year())},isDST:function(){return this.zone()+at(t).startOf(e)},isBefore:function(t,e){return e="undefined"!=typeof e?e:"millisecond",+this.clone().startOf(e)<+at(t).startOf(e)},isSame:function(t,e){return e=e||"ms",+this.clone().startOf(e)===+$(t,this).startOf(e)},min:function(t){return t=at.apply(null,arguments),this>t?this:t},max:function(t){return t=at.apply(null,arguments),t>this?this:t},zone:function(t){var e=this._offset||0;return null==t?this._isUTC?e:this._d.getTimezoneOffset():("string"==typeof t&&(t=N(t)),Math.abs(t)<16&&(t=60*t),this._offset=t,this._isUTC=!0,e!==t&&d(this,at.duration(e-t,"m"),1,!0),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(t){return t=t?at(t).zone():0,(this.zone()-t)%60===0},daysInMonth:function(){return b(this.year(),this.month())},dayOfYear:function(t){var e=rt((at(this).startOf("day")-at(this).startOf("year"))/864e5)+1;return null==t?e:this.add("d",t-e)},quarter:function(){return Math.ceil((this.month()+1)/3)},weekYear:function(t){var e=Z(this,this.lang()._week.dow,this.lang()._week.doy).year;return null==t?e:this.add("y",t-e)},isoWeekYear:function(t){var e=Z(this,1,4).year;return null==t?e:this.add("y",t-e)},week:function(t){var e=this.lang().week(this);return null==t?e:this.add("d",7*(t-e))},isoWeek:function(t){var e=Z(this,1,4).week;return null==t?e:this.add("d",7*(t-e))},weekday:function(t){var e=(this.day()+7-this.lang()._week.dow)%7;return null==t?e:this.add("d",t-e)},isoWeekday:function(t){return null==t?this.day()||7:this.day(this.day()%7?t:t-7)},get:function(t){return t=m(t),this[t]()},set:function(t,e){return t=m(t),"function"==typeof this[t]&&this[t](e),this},lang:function(e){return e===t?this._lang:(this._lang=D(e),this)}}),it=0;itt?Math.ceil(t):Math.floor(t)}function u(t,e,n){for(var a=""+Math.abs(t),i=t>=0;a.lengtha;a++)(n&&t[a]!==e[a]||!n&&y(t[a])!==y(e[a]))&&s++;return s+o}function m(t){if(t){var e=t.toLowerCase().replace(/(.)s$/,"$1");t=Ut[t]||Gt[e]||e}return t}function g(t){var e,n,a={};for(n in t)t.hasOwnProperty(n)&&(e=m(n),e&&(a[e]=t[n]));return a}function v(e){var n,a;if(0===e.indexOf("week"))n=7,a="day";else{if(0!==e.indexOf("month"))return;n=12,a="month"}at[e]=function(i,o){var s,r,l=at.fn._lang[e],c=[];if("number"==typeof i&&(o=i,i=t),r=function(t){var e=at().utc().set(a,t);return l.call(at.fn._lang,e,i||"")},null!=o)return r(o);for(s=0;n>s;s++)c.push(r(s));return c}}function y(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=e>=0?Math.floor(e):Math.ceil(e)),n}function b(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function w(t){return _(t)?366:365}function _(t){return t%4===0&&t%100!==0||t%400===0}function x(t){var e;t._a&&-2===t._pf.overflow&&(e=t._a[ct]<0||t._a[ct]>11?ct:t._a[ut]<1||t._a[ut]>b(t._a[lt],t._a[ct])?ut:t._a[dt]<0||t._a[dt]>23?dt:t._a[ht]<0||t._a[ht]>59?ht:t._a[ft]<0||t._a[ft]>59?ft:t._a[pt]<0||t._a[pt]>999?pt:-1,t._pf._overflowDayOfYear&&(lt>e||e>ut)&&(e=ut),t._pf.overflow=e)}function k(t){return null==t._isValid&&(t._isValid=!isNaN(t._d.getTime())&&t._pf.overflow<0&&!t._pf.empty&&!t._pf.invalidMonth&&!t._pf.nullInput&&!t._pf.invalidFormat&&!t._pf.userInvalidated,t._strict&&(t._isValid=t._isValid&&0===t._pf.charsLeftOver&&0===t._pf.unusedTokens.length)),t._isValid}function C(t){return t?t.toLowerCase().replace("_","-"):t}function $(t,e){return e._isUTC?at(t).zone(e._offset||0):at(t).local()}function S(t,e){return e.abbr=t,mt[t]||(mt[t]=new i),mt[t].set(e),mt[t]}function D(t){delete mt[t]}function T(t){var e,n,a,i,o=0,s=function(t){if(!mt[t]&&vt)try{require("./lang/"+t)}catch(e){}return mt[t]};if(!t)return at.fn._lang;if(!h(t)){if(n=s(t))return n;t=[t]}for(;o0;){if(n=s(i.slice(0,e).join("-")))return n;if(a&&a.length>=e&&p(i,a,!0)>=e-1)break;e--}o++}return at.fn._lang}function E(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function M(t){var e,n,a=t.match(_t);for(e=0,n=a.length;n>e;e++)a[e]=Zt[a[e]]?Zt[a[e]]:E(a[e]);return function(i){var o="";for(e=0;n>e;e++)o+=a[e]instanceof Function?a[e].call(i,t):a[e];return o}}function O(t,e){return t.isValid()?(e=A(e,t.lang()),Vt[e]||(Vt[e]=M(e)),Vt[e](t)):t.lang().invalidDate()}function A(t,e){function n(t){return e.longDateFormat(t)||t}var a=5;for(xt.lastIndex=0;a>=0&&xt.test(t);)t=t.replace(xt,n),xt.lastIndex=0,a-=1;return t}function B(t,e){var n,a=e._strict;switch(t){case"DDDD":return Nt;case"YYYY":case"GGGG":case"gggg":return a?Lt:$t;case"Y":case"G":case"g":return Yt;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return a?Pt:St;case"S":if(a)return At;case"SS":if(a)return Bt;case"SSS":if(a)return Nt;case"DDD":return Ct;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Tt;case"a":case"A":return T(e._l)._meridiemParse;case"X":return Ot;case"Z":case"ZZ":return Et;case"T":return Mt;case"SSSS":return Dt;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return a?Bt:kt;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return kt;default:return n=new RegExp(R(W(t.replace("\\","")),"i"))}}function N(t){t=t||"";var e=t.match(Et)||[],n=e[e.length-1]||[],a=(n+"").match(jt)||["-",0,0],i=+(60*a[1])+y(a[2]);return"+"===a[0]?-i:i}function L(t,e,n){var a,i=n._a;switch(t){case"M":case"MM":null!=e&&(i[ct]=y(e)-1);break;case"MMM":case"MMMM":a=T(n._l).monthsParse(e),null!=a?i[ct]=a:n._pf.invalidMonth=e;break;case"D":case"DD":null!=e&&(i[ut]=y(e));break;case"DDD":case"DDDD":null!=e&&(n._dayOfYear=y(e));break;case"YY":i[lt]=y(e)+(y(e)>68?1900:2e3);break;case"YYYY":case"YYYYY":case"YYYYYY":i[lt]=y(e);break;case"a":case"A":n._isPm=T(n._l).isPM(e);break;case"H":case"HH":case"h":case"hh":i[dt]=y(e);break;case"m":case"mm":i[ht]=y(e);break;case"s":case"ss":i[ft]=y(e);break;case"S":case"SS":case"SSS":case"SSSS":i[pt]=y(1e3*("0."+e));break;case"X":n._d=new Date(1e3*parseFloat(e));break;case"Z":case"ZZ":n._useUTC=!0,n._tzm=N(e);break;case"w":case"ww":case"W":case"WW":case"d":case"dd":case"ddd":case"dddd":case"e":case"E":t=t.substr(0,1);case"gg":case"gggg":case"GG":case"GGGG":case"GGGGG":t=t.substr(0,2),e&&(n._w=n._w||{},n._w[t]=e)}}function P(t){var e,n,a,i,o,s,r,l,c,u,d=[];if(!t._d){for(a=H(t),t._w&&null==t._a[ut]&&null==t._a[ct]&&(o=function(e){var n=parseInt(e,10);return e?e.length<3?n>68?1900+n:2e3+n:n:null==t._a[lt]?at().weekYear():t._a[lt]},s=t._w,null!=s.GG||null!=s.W||null!=s.E?r=J(o(s.GG),s.W||1,s.E,4,1):(l=T(t._l),c=null!=s.d?V(s.d,l):null!=s.e?parseInt(s.e,10)+l._week.dow:0,u=parseInt(s.w,10)||1,null!=s.d&&cw(i)&&(t._pf._overflowDayOfYear=!0),n=G(i,0,t._dayOfYear),t._a[ct]=n.getUTCMonth(),t._a[ut]=n.getUTCDate()),e=0;3>e&&null==t._a[e];++e)t._a[e]=d[e]=a[e];for(;7>e;e++)t._a[e]=d[e]=null==t._a[e]?2===e?1:0:t._a[e];d[dt]+=y((t._tzm||0)/60),d[ht]+=y((t._tzm||0)%60),t._d=(t._useUTC?G:U).apply(null,d)}}function Y(t){var e;t._d||(e=g(t._i),t._a=[e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond],P(t))}function H(t){var e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function I(t){t._a=[],t._pf.empty=!0;var e,n,a,i,o,s=T(t._l),r=""+t._i,l=r.length,c=0;for(a=A(t._f,s).match(_t)||[],e=0;e0&&t._pf.unusedInput.push(o),r=r.slice(r.indexOf(n)+n.length),c+=n.length),Zt[i]?(n?t._pf.empty=!1:t._pf.unusedTokens.push(i),L(i,n,t)):t._strict&&!n&&t._pf.unusedTokens.push(i);t._pf.charsLeftOver=l-c,r.length>0&&t._pf.unusedInput.push(r),t._isPm&&t._a[dt]<12&&(t._a[dt]+=12),t._isPm===!1&&12===t._a[dt]&&(t._a[dt]=0),P(t),x(t)}function W(t){return t.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,a,i){return e||n||a||i})}function R(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function j(t){var n,a,i,o,s;if(0===t._f.length)return t._pf.invalidFormat=!0,void(t._d=new Date(NaN));for(o=0;os)&&(i=s,a=n));r(t,a||n)}function F(t){var e,n,a=t._i,i=Ht.exec(a);if(i){for(t._pf.iso=!0,e=0,n=Wt.length;n>e;e++)if(Wt[e][1].exec(a)){t._f=Wt[e][0]+(i[6]||" ");break}for(e=0,n=Rt.length;n>e;e++)if(Rt[e][1].exec(a)){t._f+=Rt[e][0];break}a.match(Et)&&(t._f+="Z"),I(t)}else t._d=new Date(a)}function z(e){var n=e._i,a=yt.exec(n);n===t?e._d=new Date:a?e._d=new Date(+a[1]):"string"==typeof n?F(e):h(n)?(e._a=n.slice(0),P(e)):f(n)?e._d=new Date(+n):"object"==typeof n?Y(e):e._d=new Date(n)}function U(t,e,n,a,i,o,s){var r=new Date(t,e,n,a,i,o,s);return 1970>t&&r.setFullYear(t),r}function G(t){var e=new Date(Date.UTC.apply(null,arguments));return 1970>t&&e.setUTCFullYear(t),e}function V(t,e){if("string"==typeof t)if(isNaN(t)){if(t=e.weekdaysParse(t),"number"!=typeof t)return null}else t=parseInt(t,10);return t}function q(t,e,n,a,i){return i.relativeTime(e||1,!!n,t,a)}function Q(t,e,n){var a=rt(Math.abs(t)/1e3),i=rt(a/60),o=rt(i/60),s=rt(o/24),r=rt(s/365),l=45>a&&["s",a]||1===i&&["m"]||45>i&&["mm",i]||1===o&&["h"]||22>o&&["hh",o]||1===s&&["d"]||25>=s&&["dd",s]||45>=s&&["M"]||345>s&&["MM",rt(s/30)]||1===r&&["y"]||["yy",r];return l[2]=e,l[3]=t>0,l[4]=n,q.apply({},l)}function Z(t,e,n){var a,i=n-e,o=n-t.day();return o>i&&(o-=7),i-7>o&&(o+=7),a=at(t).add("d",o),{week:Math.ceil(a.dayOfYear()/7),year:a.year()}}function J(t,e,n,a,i){var o,s,r=G(t,0,1).getUTCDay();return n=null!=n?n:i,o=i-r+(r>a?7:0)-(i>r?7:0),s=7*(e-1)+(n-i)+o+1,{year:s>0?t:t-1,dayOfYear:s>0?s:w(t-1)+s}}function X(t){var e=t._i,n=t._f;return null===e?at.invalid({nullInput:!0}):("string"==typeof e&&(t._i=e=T().preparse(e)),at.isMoment(e)?(t=l(e),t._d=new Date(+e._d)):n?h(n)?j(t):I(t):z(t),new o(t))}function K(t,e){at.fn[t]=at.fn[t+"s"]=function(t){var n=this._isUTC?"UTC":"";return null!=t?(this._d["set"+n+e](t),at.updateOffset(this),this):this._d["get"+n+e]()}}function tt(t){at.duration.fn[t]=function(){return this._data[t]}}function et(t,e){at.duration.fn["as"+t]=function(){return+this/e}}function nt(t){var e=!1,n=at;"undefined"==typeof ender&&(t?(st.moment=function(){return!e&&console&&console.warn&&(e=!0,console.warn("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.")),n.apply(null,arguments)},r(st.moment,n)):st.moment=at)}for(var at,it,ot="2.5.1",st=this,rt=Math.round,lt=0,ct=1,ut=2,dt=3,ht=4,ft=5,pt=6,mt={},gt={_isAMomentObject:null,_i:null,_f:null,_l:null,_strict:null,_isUTC:null,_offset:null,_pf:null,_lang:null},vt="undefined"!=typeof module&&module.exports&&"undefined"!=typeof require,yt=/^\/?Date\((\-?\d+)/i,bt=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,wt=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,_t=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g,xt=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,kt=/\d\d?/,Ct=/\d{1,3}/,$t=/\d{1,4}/,St=/[+\-]?\d{1,6}/,Dt=/\d+/,Tt=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Et=/Z|[\+\-]\d\d:?\d\d/gi,Mt=/T/i,Ot=/[\+\-]?\d+(\.\d{1,3})?/,At=/\d/,Bt=/\d\d/,Nt=/\d{3}/,Lt=/\d{4}/,Pt=/[+-]?\d{6}/,Yt=/[+-]?\d+/,Ht=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,It="YYYY-MM-DDTHH:mm:ssZ",Wt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],Rt=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d{1,3}/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],jt=/([\+\-]|\d\d)/gi,Ft="Date|Hours|Minutes|Seconds|Milliseconds".split("|"),zt={Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6},Ut={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},Gt={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},Vt={},qt="DDD w W M D d".split(" "),Qt="M D H h m s w W".split(" "),Zt={M:function(){return this.month()+1},MMM:function(t){return this.lang().monthsShort(this,t)},MMMM:function(t){return this.lang().months(this,t)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(t){return this.lang().weekdaysMin(this,t)},ddd:function(t){return this.lang().weekdaysShort(this,t)},dddd:function(t){return this.lang().weekdays(this,t)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return u(this.year()%100,2)},YYYY:function(){return u(this.year(),4)},YYYYY:function(){return u(this.year(),5)},YYYYYY:function(){var t=this.year(),e=t>=0?"+":"-";return e+u(Math.abs(t),6)},gg:function(){return u(this.weekYear()%100,2)},gggg:function(){return u(this.weekYear(),4)},ggggg:function(){return u(this.weekYear(),5)},GG:function(){return u(this.isoWeekYear()%100,2)},GGGG:function(){return u(this.isoWeekYear(),4)},GGGGG:function(){return u(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.lang().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.lang().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return y(this.milliseconds()/100)},SS:function(){return u(y(this.milliseconds()/10),2)},SSS:function(){return u(this.milliseconds(),3)},SSSS:function(){return u(this.milliseconds(),3)},Z:function(){var t=-this.zone(),e="+";return 0>t&&(t=-t,e="-"),e+u(y(t/60),2)+":"+u(y(t)%60,2)},ZZ:function(){var t=-this.zone(),e="+";return 0>t&&(t=-t,e="-"),e+u(y(t/60),2)+u(y(t)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},Jt=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];qt.length;)it=qt.pop(),Zt[it+"o"]=a(Zt[it],it);for(;Qt.length;)it=Qt.pop(),Zt[it+it]=n(Zt[it],2);for(Zt.DDDD=n(Zt.DDD,3),r(i.prototype,{set:function(t){var e,n;for(n in t)e=t[n],"function"==typeof e?this[n]=e:this["_"+n]=e},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(t){return this._months[t.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(t){return this._monthsShort[t.month()]},monthsParse:function(t){var e,n,a;for(this._monthsParse||(this._monthsParse=[]),e=0;12>e;e++)if(this._monthsParse[e]||(n=at.utc([2e3,e]),a="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[e]=new RegExp(a.replace(".",""),"i")),this._monthsParse[e].test(t))return e},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(t){return this._weekdays[t.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(t){return this._weekdaysShort[t.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(t){return this._weekdaysMin[t.day()]},weekdaysParse:function(t){var e,n,a;for(this._weekdaysParse||(this._weekdaysParse=[]),e=0;7>e;e++)if(this._weekdaysParse[e]||(n=at([2e3,1]).day(e),a="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[e]=new RegExp(a.replace(".",""),"i")),this._weekdaysParse[e].test(t))return e},_longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D YYYY",LLL:"MMMM D YYYY LT",LLLL:"dddd, MMMM D YYYY LT"},longDateFormat:function(t){var e=this._longDateFormat[t];return!e&&this._longDateFormat[t.toUpperCase()]&&(e=this._longDateFormat[t.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t]=e),e},isPM:function(t){return"p"===(t+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(t,e){var n=this._calendar[t];return"function"==typeof n?n.apply(e):n},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(t,e,n,a){var i=this._relativeTime[n];return"function"==typeof i?i(t,e,n,a):i.replace(/%d/i,t)},pastFuture:function(t,e){var n=this._relativeTime[t>0?"future":"past"];return"function"==typeof n?n(e):n.replace(/%s/i,e)},ordinal:function(t){return this._ordinal.replace("%d",t)},_ordinal:"%d",preparse:function(t){return t},postformat:function(t){return t},week:function(t){return Z(t,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),at=function(n,a,i,o){var s;return"boolean"==typeof i&&(o=i,i=t),s={},s._isAMomentObject=!0,s._i=n,s._f=a,s._l=i,s._strict=o,s._isUTC=!1,s._pf=e(),X(s)},at.utc=function(n,a,i,o){var s;return"boolean"==typeof i&&(o=i,i=t),s={},s._isAMomentObject=!0,s._useUTC=!0,s._isUTC=!0,s._l=i,s._i=n,s._f=a,s._strict=o,s._pf=e(),X(s).utc()},at.unix=function(t){return at(1e3*t)},at.duration=function(t,e){var n,a,i,o=t,r=null;return at.isDuration(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(o={},e?o[e]=t:o.milliseconds=t):(r=bt.exec(t))?(n="-"===r[1]?-1:1,o={y:0,d:y(r[ut])*n,h:y(r[dt])*n,m:y(r[ht])*n,s:y(r[ft])*n,ms:y(r[pt])*n}):(r=wt.exec(t))&&(n="-"===r[1]?-1:1,i=function(t){var e=t&&parseFloat(t.replace(",","."));return(isNaN(e)?0:e)*n},o={y:i(r[2]),M:i(r[3]),d:i(r[4]),h:i(r[5]),m:i(r[6]),s:i(r[7]),w:i(r[8])}),a=new s(o),at.isDuration(t)&&t.hasOwnProperty("_lang")&&(a._lang=t._lang),a},at.version=ot,at.defaultFormat=It,at.updateOffset=function(){},at.lang=function(t,e){var n;return t?(e?S(C(t),e):null===e?(D(t),t="en"):mt[t]||T(t),n=at.duration.fn._lang=at.fn._lang=T(t),n._abbr):at.fn._lang._abbr},at.langData=function(t){return t&&t._lang&&t._lang._abbr&&(t=t._lang._abbr),T(t)},at.isMoment=function(t){return t instanceof o||null!=t&&t.hasOwnProperty("_isAMomentObject")},at.isDuration=function(t){return t instanceof s},it=Jt.length-1;it>=0;--it)v(Jt[it]);for(at.normalizeUnits=function(t){return m(t)},at.invalid=function(t){var e=at.utc(NaN);return null!=t?r(e._pf,t):e._pf.userInvalidated=!0,e},at.parseZone=function(t){return at(t).parseZone()},r(at.fn=o.prototype,{clone:function(){return at(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().lang("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var t=at(this).utc();return 00:!1},parsingFlags:function(){return r({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(){return this.zone(0)},local:function(){return this.zone(0),this._isUTC=!1,this},format:function(t){var e=O(this,t||at.defaultFormat);return this.lang().postformat(e)},add:function(t,e){var n;return n="string"==typeof t?at.duration(+e,t):at.duration(t,e),d(this,n,1),this},subtract:function(t,e){var n;return n="string"==typeof t?at.duration(+e,t):at.duration(t,e),d(this,n,-1),this},diff:function(t,e,n){var a,i,o=$(t,this),s=6e4*(this.zone()-o.zone());return e=m(e),"year"===e||"month"===e?(a=432e5*(this.daysInMonth()+o.daysInMonth()),i=12*(this.year()-o.year())+(this.month()-o.month()),i+=(this-at(this).startOf("month")-(o-at(o).startOf("month")))/a,i-=6e4*(this.zone()-at(this).startOf("month").zone()-(o.zone()-at(o).startOf("month").zone()))/a,"year"===e&&(i/=12)):(a=this-o,i="second"===e?a/1e3:"minute"===e?a/6e4:"hour"===e?a/36e5:"day"===e?(a-s)/864e5:"week"===e?(a-s)/6048e5:a),n?i:c(i)},from:function(t,e){return at.duration(this.diff(t)).lang(this.lang()._abbr).humanize(!e)},fromNow:function(t){return this.from(at(),t)},calendar:function(){var t=$(at(),this).startOf("day"),e=this.diff(t,"days",!0),n=-6>e?"sameElse":-1>e?"lastWeek":0>e?"lastDay":1>e?"sameDay":2>e?"nextDay":7>e?"nextWeek":"sameElse";return this.format(this.lang().calendar(n,this))},isLeapYear:function(){return _(this.year())},isDST:function(){return this.zone()+at(t).startOf(e)},isBefore:function(t,e){return e="undefined"!=typeof e?e:"millisecond",+this.clone().startOf(e)<+at(t).startOf(e)},isSame:function(t,e){return e=e||"ms",+this.clone().startOf(e)===+$(t,this).startOf(e)},min:function(t){return t=at.apply(null,arguments),this>t?this:t},max:function(t){return t=at.apply(null,arguments),t>this?this:t},zone:function(t){var e=this._offset||0;return null==t?this._isUTC?e:this._d.getTimezoneOffset():("string"==typeof t&&(t=N(t)),Math.abs(t)<16&&(t=60*t),this._offset=t,this._isUTC=!0,e!==t&&d(this,at.duration(e-t,"m"),1,!0),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(t){return t=t?at(t).zone():0,(this.zone()-t)%60===0},daysInMonth:function(){return b(this.year(),this.month())},dayOfYear:function(t){var e=rt((at(this).startOf("day")-at(this).startOf("year"))/864e5)+1;return null==t?e:this.add("d",t-e)},quarter:function(){return Math.ceil((this.month()+1)/3)},weekYear:function(t){var e=Z(this,this.lang()._week.dow,this.lang()._week.doy).year;return null==t?e:this.add("y",t-e)},isoWeekYear:function(t){var e=Z(this,1,4).year;return null==t?e:this.add("y",t-e)},week:function(t){var e=this.lang().week(this);return null==t?e:this.add("d",7*(t-e))},isoWeek:function(t){var e=Z(this,1,4).week;return null==t?e:this.add("d",7*(t-e))},weekday:function(t){var e=(this.day()+7-this.lang()._week.dow)%7;return null==t?e:this.add("d",t-e)},isoWeekday:function(t){return null==t?this.day()||7:this.day(this.day()%7?t:t-7)},get:function(t){return t=m(t),this[t]()},set:function(t,e){return t=m(t),"function"==typeof this[t]&&this[t](e),this},lang:function(e){return e===t?this._lang:(this._lang=T(e),this)}}),it=0;it11&&(t.year+=Math.floor(Math.abs(t.month)/12),t.month-=12),t},w={field:null,bound:void 0,position:"bottom left",format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:!1,firstDay:0,minDate:null,maxDate:null,yearRange:10,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,numberOfMonths:1,mainCalendar:"left",i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},onSelect:null,onOpen:null,onClose:null,onDraw:null},_=function(t,e,n){for(e+=t.firstDay;e>=7;)e-=7;return n?t.i18n.weekdaysShort[e]:t.i18n.weekdays[e]},x=function(t,e,n,a,i,o,s){if(s)return'';var r=[];return o&&r.push("is-disabled"),i&&r.push("is-today"),a&&r.push("is-selected"),'"},k=function(t,e){return""+(e?t.reverse():t).join("")+""},C=function(t){return""+t.join("")+""},$=function(t){var e,n=[];for(e=0;7>e;e++)n.push(''+_(t,e,!0)+"");return""+(t.isRTL?n.reverse():n).join("")+""},T=function(t,e,n,a,i){var o,s,r,l,c,u=t._o,d=n===u.minYear,f=n===u.maxYear,p='
',m=!0,g=!0;for(r=[],o=0;12>o;o++)r.push('");for(l='
'+u.i18n.months[a]+'
",h(u.yearRange)?(o=u.yearRange[0],s=u.yearRange[1]+1):(o=n-u.yearRange,s=1+n+u.yearRange),r=[];s>o&&o<=u.maxYear;o++)o>=u.minYear&&r.push('");return c='
'+n+u.yearSuffix+'
",p+=u.showMonthAfterYear?c+l:l+c,d&&(0===a||u.minMonth>=a)&&(m=!1),f&&(11===a||u.maxMonth<=a)&&(g=!1),0===e&&(p+='"),e===t._o.numberOfMonths-1&&(p+='"),p+="
"},S=function(t,e){return''+$(t)+C(e)+"
"},D=function(s){var r=this,l=r.config(s);r._onMouseDown=function(t){if(r._v){t=t||window.event;var e=t.target||t.srcElement;if(e){if(!c(e,"is-disabled")){if(c(e,"pika-button")&&!c(e,"is-empty"))return r.setDate(new Date(e.getAttribute("data-pika-year"),e.getAttribute("data-pika-month"),e.getAttribute("data-pika-day"))),void(l.bound&&i(function(){r.hide()},100));c(e,"pika-prev")?r.prevMonth():c(e,"pika-next")&&r.nextMonth()}if(c(e,"pika-select"))r._c=!0;else{if(!t.preventDefault)return t.returnValue=!1,!1;t.preventDefault()}}}},r._onChange=function(t){t=t||window.event;var e=t.target||t.srcElement;e&&(c(e,"pika-select-month")?r.gotoMonth(e.value):c(e,"pika-select-year")&&r.gotoYear(e.value))},r._onInputChange=function(n){var a;n.firedBy!==r&&(e?(a=t(l.field.value,l.format),a=a&&a.isValid()?a.toDate():null):a=new Date(Date.parse(l.field.value)),r.setDate(f(a)?a:null),r._v||r.show())},r._onInputFocus=function(){r.show()},r._onInputClick=function(){r.show()},r._onInputBlur=function(){r._c||(r._b=i(function(){r.hide()},50)),r._c=!1},r._onClick=function(t){t=t||window.event;var e=t.target||t.srcElement,a=e;if(e){!n&&c(e,"pika-select")&&(e.onchange||(e.setAttribute("onchange","return;"),o(e,"change",r._onChange)));do if(c(a,"pika-single"))return;while(a=a.parentNode);r._v&&e!==l.trigger&&r.hide()}},r.el=a.createElement("div"),r.el.className="pika-single"+(l.isRTL?" is-rtl":""),o(r.el,"mousedown",r._onMouseDown,!0),o(r.el,"change",r._onChange),l.field&&(l.bound?a.body.appendChild(r.el):l.field.parentNode.insertBefore(r.el,l.field.nextSibling),o(l.field,"change",r._onInputChange),l.defaultDate||(e&&l.field.value?l.defaultDate=t(l.field.value,l.format).toDate():l.defaultDate=new Date(Date.parse(l.field.value)),l.setDefaultDate=!0));var u=l.defaultDate;f(u)?l.setDefaultDate?r.setDate(u,!0):r.gotoDate(u):r.gotoDate(new Date),l.bound?(this.hide(),r.el.className+=" is-bound",o(l.trigger,"click",r._onInputClick),o(l.trigger,"focus",r._onInputFocus),o(l.trigger,"blur",r._onInputBlur)):this.show()};return D.prototype={config:function(t){this._o||(this._o=y({},w,!0));var e=y(this._o,t,!0);e.isRTL=!!e.isRTL,e.field=e.field&&e.field.nodeName?e.field:null,e.bound=!!(void 0!==e.bound?e.field&&e.bound:e.field),e.trigger=e.trigger&&e.trigger.nodeName?e.trigger:e.field;var n=parseInt(e.numberOfMonths,10)||1;if(e.numberOfMonths=n>4?4:n,f(e.minDate)||(e.minDate=!1),f(e.maxDate)||(e.maxDate=!1),e.minDate&&e.maxDate&&e.maxDate100&&(e.yearRange=100);return e},toString:function(n){return f(this._d)?e?t(this._d).format(n||this._o.format):this._d.toDateString():""},getMoment:function(){return e?t(this._d):null},setMoment:function(n,a){e&&t.isMoment(n)&&this.setDate(n.toDate(),a)},getDate:function(){return f(this._d)?new Date(this._d.getTime()):null},setDate:function(t,e){if(!t)return this._d=null,this.draw();if("string"==typeof t&&(t=new Date(Date.parse(t))),f(t)){var n=this._o.minDate,a=this._o.maxDate;f(n)&&n>t?t=n:f(a)&&t>a&&(t=a),this._d=new Date(t.getTime()),g(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),r(this._o.field,"change",{firedBy:this})),e||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(t){var e=!0;if(f(t)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),a=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),i=t.getTime();a.setMonth(a.getMonth()+1),a.setDate(a.getDate()-1),e=i=a&&(this._y=a,!isNaN(s)&&this._m>s&&(this._m=s));for(var l=0;l'+T(this,l,this.calendars[l].year,this.calendars[l].month,this.calendars[0].year)+this.render(this.calendars[l].year,this.calendars[l].month)+"";if(this.el.innerHTML=r,e.bound&&"hidden"!==e.field.type&&i(function(){e.trigger.focus()},1),"function"==typeof this._o.onDraw){var c=this;i(function(){c._o.onDraw.call(c)},0)}}},adjustPosition:function(){var t,e,n,i=this._o.trigger,o=i,s=this.el.offsetWidth,r=this.el.offsetHeight,l=window.innerWidth||a.documentElement.clientWidth,c=window.innerHeight||a.documentElement.clientHeight,u=window.pageYOffset||a.body.scrollTop||a.documentElement.scrollTop;if("function"==typeof i.getBoundingClientRect)n=i.getBoundingClientRect(),t=n.left+window.pageXOffset,e=n.bottom+window.pageYOffset;else for(t=o.offsetLeft,e=o.offsetTop+o.offsetHeight;o=o.offsetParent;)t+=o.offsetLeft,e+=o.offsetTop;(t+s>l||this._o.position.indexOf("right")>-1&&t-s+i.offsetWidth>0)&&(t=t-s+i.offsetWidth),(e+r>c+u||this._o.position.indexOf("top")>-1&&e-r-i.offsetHeight>0)&&(e=e-r-i.offsetHeight),this.el.style.cssText=["position: absolute","left: "+t+"px","top: "+e+"px"].join(";")},render:function(t,e){var n=this._o,a=new Date,i=m(t,e),o=new Date(t,e,1).getDay(),s=[],r=[];g(a),n.firstDay>0&&(o-=n.firstDay,0>o&&(o+=7));for(var l=i+o,c=l;c>7;)c-=7;l+=7-c;for(var u=0,d=0;l>u;u++){var h=new Date(t,e,1+(u-o)),p=n.minDate&&hn.maxDate,y=f(this._d)?v(h,this._d):!1,b=v(h,a),w=o>u||u>=i+o;r.push(x(1+(u-o),e,t,y,b,p,w)),7===++d&&(s.push(k(r,n.isRTL)),r=[],d=0)}return S(n,s)},isVisible:function(){return this._v},show:function(){this._v||(d(this.el,"is-hidden"),this._v=!0,this.draw(),this._o.bound&&(o(a,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var t=this._v;t!==!1&&(this._o.bound&&s(a,"click",this._onClick),this.el.style.cssText="",u(this.el,"is-hidden"),this._v=!1,void 0!==t&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){this.hide(),s(this.el,"mousedown",this._onMouseDown,!0),s(this.el,"change",this._onChange),this._o.field&&(s(this._o.field,"change",this._onInputChange),this._o.bound&&(s(this._o.trigger,"click",this._onInputClick),s(this._o.trigger,"focus",this._onInputFocus),s(this._o.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},D}),/*! +function(t,e){"use strict";var n;if("object"==typeof exports){try{n=require("moment")}catch(a){}module.exports=e(n)}else"function"==typeof define&&define.amd?define(function(t){var a="moment";return n=t.defined&&t.defined(a)?t(a):void 0,e(n)}):t.Pikaday=e(t.moment)}(this,function(t){"use strict";var e="function"==typeof t,n=!!window.addEventListener,a=window.document,i=window.setTimeout,o=function(t,e,a,i){n?t.addEventListener(e,a,!!i):t.attachEvent("on"+e,a)},s=function(t,e,a,i){n?t.removeEventListener(e,a,!!i):t.detachEvent("on"+e,a)},r=function(t,e,n){var i;a.createEvent?(i=a.createEvent("HTMLEvents"),i.initEvent(e,!0,!1),i=y(i,n),t.dispatchEvent(i)):a.createEventObject&&(i=a.createEventObject(),i=y(i,n),t.fireEvent("on"+e,i))},l=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},c=function(t,e){return-1!==(" "+t.className+" ").indexOf(" "+e+" ")},u=function(t,e){c(t,e)||(t.className=""===t.className?e:t.className+" "+e)},d=function(t,e){t.className=l((" "+t.className+" ").replace(" "+e+" "," "))},h=function(t){return/Array/.test(Object.prototype.toString.call(t))},f=function(t){return/Date/.test(Object.prototype.toString.call(t))&&!isNaN(t.getTime())},p=function(t){return t%4===0&&t%100!==0||t%400===0},m=function(t,e){return[31,p(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},g=function(t){f(t)&&t.setHours(0,0,0,0)},v=function(t,e){return t.getTime()===e.getTime()},y=function(t,e,n){var a,i;for(a in e)i=void 0!==t[a],i&&"object"==typeof e[a]&&void 0===e[a].nodeName?f(e[a])?n&&(t[a]=new Date(e[a].getTime())):h(e[a])?n&&(t[a]=e[a].slice(0)):t[a]=y({},e[a],n):(n||!i)&&(t[a]=e[a]);return t},b=function(t){return t.month<0&&(t.year-=Math.ceil(Math.abs(t.month)/12),t.month+=12),t.month>11&&(t.year+=Math.floor(Math.abs(t.month)/12),t.month-=12),t},w={field:null,bound:void 0,position:"bottom left",format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:!1,firstDay:0,minDate:null,maxDate:null,yearRange:10,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,numberOfMonths:1,mainCalendar:"left",i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},onSelect:null,onOpen:null,onClose:null,onDraw:null},_=function(t,e,n){for(e+=t.firstDay;e>=7;)e-=7;return n?t.i18n.weekdaysShort[e]:t.i18n.weekdays[e]},x=function(t,e,n,a,i,o,s){if(s)return'';var r=[];return o&&r.push("is-disabled"),i&&r.push("is-today"),a&&r.push("is-selected"),'"},k=function(t,e){return""+(e?t.reverse():t).join("")+""},C=function(t){return""+t.join("")+""},$=function(t){var e,n=[];for(e=0;7>e;e++)n.push(''+_(t,e,!0)+"");return""+(t.isRTL?n.reverse():n).join("")+""},S=function(t,e,n,a,i){var o,s,r,l,c,u=t._o,d=n===u.minYear,f=n===u.maxYear,p='
',m=!0,g=!0;for(r=[],o=0;12>o;o++)r.push('");for(l='
'+u.i18n.months[a]+'
",h(u.yearRange)?(o=u.yearRange[0],s=u.yearRange[1]+1):(o=n-u.yearRange,s=1+n+u.yearRange),r=[];s>o&&o<=u.maxYear;o++)o>=u.minYear&&r.push('");return c='
'+n+u.yearSuffix+'
",p+=u.showMonthAfterYear?c+l:l+c,d&&(0===a||u.minMonth>=a)&&(m=!1),f&&(11===a||u.maxMonth<=a)&&(g=!1),0===e&&(p+='"),e===t._o.numberOfMonths-1&&(p+='"),p+="
"},D=function(t,e){return''+$(t)+C(e)+"
"},T=function(s){var r=this,l=r.config(s);r._onMouseDown=function(t){if(r._v){t=t||window.event;var e=t.target||t.srcElement;if(e){if(!c(e,"is-disabled")){if(c(e,"pika-button")&&!c(e,"is-empty"))return r.setDate(new Date(e.getAttribute("data-pika-year"),e.getAttribute("data-pika-month"),e.getAttribute("data-pika-day"))),void(l.bound&&i(function(){r.hide()},100));c(e,"pika-prev")?r.prevMonth():c(e,"pika-next")&&r.nextMonth()}if(c(e,"pika-select"))r._c=!0;else{if(!t.preventDefault)return t.returnValue=!1,!1;t.preventDefault()}}}},r._onChange=function(t){t=t||window.event;var e=t.target||t.srcElement;e&&(c(e,"pika-select-month")?r.gotoMonth(e.value):c(e,"pika-select-year")&&r.gotoYear(e.value))},r._onInputChange=function(n){var a;n.firedBy!==r&&(e?(a=t(l.field.value,l.format),a=a&&a.isValid()?a.toDate():null):a=new Date(Date.parse(l.field.value)),r.setDate(f(a)?a:null),r._v||r.show())},r._onInputFocus=function(){r.show()},r._onInputClick=function(){r.show()},r._onInputBlur=function(){r._c||(r._b=i(function(){r.hide()},50)),r._c=!1},r._onClick=function(t){t=t||window.event;var e=t.target||t.srcElement,a=e;if(e){!n&&c(e,"pika-select")&&(e.onchange||(e.setAttribute("onchange","return;"),o(e,"change",r._onChange)));do if(c(a,"pika-single"))return;while(a=a.parentNode);r._v&&e!==l.trigger&&r.hide()}},r.el=a.createElement("div"),r.el.className="pika-single"+(l.isRTL?" is-rtl":""),o(r.el,"mousedown",r._onMouseDown,!0),o(r.el,"change",r._onChange),l.field&&(l.bound?a.body.appendChild(r.el):l.field.parentNode.insertBefore(r.el,l.field.nextSibling),o(l.field,"change",r._onInputChange),l.defaultDate||(e&&l.field.value?l.defaultDate=t(l.field.value,l.format).toDate():l.defaultDate=new Date(Date.parse(l.field.value)),l.setDefaultDate=!0));var u=l.defaultDate;f(u)?l.setDefaultDate?r.setDate(u,!0):r.gotoDate(u):r.gotoDate(new Date),l.bound?(this.hide(),r.el.className+=" is-bound",o(l.trigger,"click",r._onInputClick),o(l.trigger,"focus",r._onInputFocus),o(l.trigger,"blur",r._onInputBlur)):this.show()};return T.prototype={config:function(t){this._o||(this._o=y({},w,!0));var e=y(this._o,t,!0);e.isRTL=!!e.isRTL,e.field=e.field&&e.field.nodeName?e.field:null,e.bound=!!(void 0!==e.bound?e.field&&e.bound:e.field),e.trigger=e.trigger&&e.trigger.nodeName?e.trigger:e.field;var n=parseInt(e.numberOfMonths,10)||1;if(e.numberOfMonths=n>4?4:n,f(e.minDate)||(e.minDate=!1),f(e.maxDate)||(e.maxDate=!1),e.minDate&&e.maxDate&&e.maxDate100&&(e.yearRange=100);return e},toString:function(n){return f(this._d)?e?t(this._d).format(n||this._o.format):this._d.toDateString():""},getMoment:function(){return e?t(this._d):null},setMoment:function(n,a){e&&t.isMoment(n)&&this.setDate(n.toDate(),a)},getDate:function(){return f(this._d)?new Date(this._d.getTime()):null},setDate:function(t,e){if(!t)return this._d=null,this.draw();if("string"==typeof t&&(t=new Date(Date.parse(t))),f(t)){var n=this._o.minDate,a=this._o.maxDate;f(n)&&n>t?t=n:f(a)&&t>a&&(t=a),this._d=new Date(t.getTime()),g(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),r(this._o.field,"change",{firedBy:this})),e||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(t){var e=!0;if(f(t)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),a=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),i=t.getTime();a.setMonth(a.getMonth()+1),a.setDate(a.getDate()-1),e=i=a&&(this._y=a,!isNaN(s)&&this._m>s&&(this._m=s));for(var l=0;l'+S(this,l,this.calendars[l].year,this.calendars[l].month,this.calendars[0].year)+this.render(this.calendars[l].year,this.calendars[l].month)+"";if(this.el.innerHTML=r,e.bound&&"hidden"!==e.field.type&&i(function(){e.trigger.focus()},1),"function"==typeof this._o.onDraw){var c=this;i(function(){c._o.onDraw.call(c)},0)}}},adjustPosition:function(){var t,e,n,i=this._o.trigger,o=i,s=this.el.offsetWidth,r=this.el.offsetHeight,l=window.innerWidth||a.documentElement.clientWidth,c=window.innerHeight||a.documentElement.clientHeight,u=window.pageYOffset||a.body.scrollTop||a.documentElement.scrollTop;if("function"==typeof i.getBoundingClientRect)n=i.getBoundingClientRect(),t=n.left+window.pageXOffset,e=n.bottom+window.pageYOffset;else for(t=o.offsetLeft,e=o.offsetTop+o.offsetHeight;o=o.offsetParent;)t+=o.offsetLeft,e+=o.offsetTop;(t+s>l||this._o.position.indexOf("right")>-1&&t-s+i.offsetWidth>0)&&(t=t-s+i.offsetWidth),(e+r>c+u||this._o.position.indexOf("top")>-1&&e-r-i.offsetHeight>0)&&(e=e-r-i.offsetHeight),this.el.style.cssText=["position: absolute","left: "+t+"px","top: "+e+"px"].join(";")},render:function(t,e){var n=this._o,a=new Date,i=m(t,e),o=new Date(t,e,1).getDay(),s=[],r=[];g(a),n.firstDay>0&&(o-=n.firstDay,0>o&&(o+=7));for(var l=i+o,c=l;c>7;)c-=7;l+=7-c;for(var u=0,d=0;l>u;u++){var h=new Date(t,e,1+(u-o)),p=n.minDate&&hn.maxDate,y=f(this._d)?v(h,this._d):!1,b=v(h,a),w=o>u||u>=i+o;r.push(x(1+(u-o),e,t,y,b,p,w)),7===++d&&(s.push(k(r,n.isRTL)),r=[],d=0)}return D(n,s)},isVisible:function(){return this._v},show:function(){this._v||(d(this.el,"is-hidden"),this._v=!0,this.draw(),this._o.bound&&(o(a,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var t=this._v;t!==!1&&(this._o.bound&&s(a,"click",this._onClick),this.el.style.cssText="",u(this.el,"is-hidden"),this._v=!1,void 0!==t&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){this.hide(),s(this.el,"mousedown",this._onMouseDown,!0),s(this.el,"change",this._onChange),this._o.field&&(s(this._o.field,"change",this._onInputChange),this._o.bound&&(s(this._o.trigger,"click",this._onInputClick),s(this._o.trigger,"focus",this._onInputFocus),s(this._o.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},T}),/*! * Pikaday jQuery plugin. * * Copyright © 2013 David Bushell | BSD & MIT license | https://github.com/dbushell/Pikaday */ -function(t,e){"use strict";"object"==typeof exports?e(require("jquery"),require("../pikaday")):"function"==typeof define&&define.amd?define(["jquery","pikaday"],e):e(t.jQuery,t.Pikaday)}(this,function(t,e){"use strict";t.fn.pikaday=function(){var n=arguments;return n&&n.length||(n=[{}]),this.each(function(){var a=t(this),i=a.data("pikaday");if(i instanceof e)"string"==typeof n[0]&&"function"==typeof i[n[0]]&&i[n[0]].apply(i,Array.prototype.slice.call(n,1));else if("object"==typeof n[0]){var o=t.extend({},n[0]);o.field=a[0],a.data("pikaday",new e(o))}})}}),function(){this.JST||(this.JST={}),this.JST["locastyle/templates/_popover"]=function(t){t||(t={});var e,n=[],a=function(t){return t&&t.ecoSafe?t:"undefined"!=typeof t&&null!=t?o(t):""},i=t.safe,o=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;("undefined"==typeof t||null==t)&&(t="");var e=new String(t);return e.ecoSafe=!0,e},o||(o=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){n.push('
\n '),this.title&&(n.push('\n
\n

'),n.push(a(this.title)),n.push("

\n
\n ")),n.push("\n "),this.content&&n.push("\n "),n.push('\n
'),n.push(this.content),n.push("
\n
\n")}).call(this)}.call(t),t.safe=i,t.escape=o,n.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["locastyle/templates/_modal"]=function(t){t||(t={});var e,n=[],a=function(t){return t&&t.ecoSafe?t:"undefined"!=typeof t&&null!=t?o(t):""},i=t.safe,o=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;("undefined"==typeof t||null==t)&&(t="");var e=new String(t);return e.ecoSafe=!0,e},o||(o=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){n.push('\n")}).call(this)}.call(t),t.safe=i,t.escape=o,n.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["locastyle/templates/_dropdown"]=function(t){t||(t={});var e,n=[],a=t.safe,i=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;("undefined"==typeof t||null==t)&&(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,a,i;for(n.push('
\n \n
    \n '),i=this.elements,e=0,a=i.length;a>e;e++)t=i[e],n.push("\n "),""!==t.text&&(n.push("\n
  • "),n.push(t.outerHTML),n.push("
  • \n ")),n.push("\n ");n.push("\n
\n
\n")}).call(this)}.call(t),t.safe=a,t.escape=i,n.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["locastyle/templates/_browser-unsupported-bar"]=function(t){t||(t={});var e,n=[],a=t.safe,i=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;("undefined"==typeof t||null==t)&&(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){n.push('
\n ×\n Atualize seu navegador!
Baixe a vers\xe3o mais recente:
\n Firefox, Chrome,\n ou\n Safari\n
\n')}).call(this)}.call(t),t.safe=a,t.escape=i,n.join("")}}.call(this);var locastyle=function(){"use strict";function t(){locastyle.sidebarToggle.init(),locastyle.sidebars.init()}function e(){locastyle.breakpoints.init(),n(),locastyle.general.init(),locastyle.btnGroup.init(),locastyle.alert.init(),locastyle.datepicker.init(),locastyle.form.togglePasswordField(),locastyle.form.triggerCalendar(),a(),locastyle.browserDetect.init()}function n(){var t=i();for(var e in t)t.hasOwnProperty(e)&&(locastyle[t[e]].init(),console.info("Locastyle: module ["+t[e]+"] successfully initialized."),$.event.trigger(t[e]+":ready"))}function a(){$("html").hasClass("ls-trackevent-on")&&locastyle.trackEvents.init()}function i(){var t=[];return $("[data-ls-module]").each(function(){var e=$(this).data("ls-module");-1===t.indexOf(e)&&t.push(e)}),t}return{init:e,fastInit:t}}(),ls=locastyle;$(window).on("load",function(){"use strict";ls.init()}),$(document).ready(function(){"use strict";ls.fastInit()});var locastyle=locastyle||{};locastyle.breakpoints=function(){"use strict";function t(t){i.html=$("html"),e(t),n(t),a()}function e(t){var e;e=t?t.documentWidth:$(document).width(),e=i.sm&&e=i.md&&e=i.sm&&e=i.md&&e')}function r(){var t=$(".ls-menu").find("ul li ul");$(t).each(function(){$(this).addClass("ls-submenu"),$(this).parent("li").addClass("ls-submenu-parent"),$(this).find("a").addClass("ls-submenu-item")})}function l(){$(".ls-submenu-parent").on("click","> a",function(t){t.preventDefault(),$(this).parents(".ls-submenu-parent").hasClass("ls-active")?u($(this)):c($(this))})}function c(t){var e=$(t).parents(".ls-submenu-parent");$(".ls-submenu-parent").removeClass("ls-active"),e.addClass("ls-active"),m(e)}function u(t){var e=$(t).parents(".ls-submenu-parent");e.removeClass("ls-active"),m(e)}function d(){$(".ls-sidebar-toggled").length||$(".ls-submenu li.ls-active").each(function(){c($(this))})}function h(){$(window).on("sidebar-minimize",function(){$(".ls-submenu li").each(function(){u($(this))})}),$(window).on("sidebar-maximize",function(){$(".ls-submenu li.ls-active").each(function(){c($(this))})})}function f(){$(document).on("click",function(t){var e=$(t.target);$(".ls-sidebar-toggled").length&&$(".ls-submenu-parent.ls-active").length&&(e.is(".ls-submenu-parent.ls-active *")||u($(".ls-submenu-parent.ls-active > a")))})}function p(){var t=$(".ls-menu");t.attr({role:"navigation"}),t.find("ul").attr({role:"menu"}),t.find("a").attr({role:"menuitem"}),$(".ls-submenu-parent").each(function(t,e){m(e)})}function m(t){$(t).hasClass("ls-active")?$(t).attr({"aria-expanded":"true","aria-hidden":"false"}):$(t).attr({"aria-expanded":"false","aria-hidden":"true"})}function g(){$(".ls-show-sidebar").off("touchstart.ls click.ls"),$(".ls-show-notifications").off("touchstart.ls click.ls"),$(".ls-submenu-parent > a").off("click.ls")}return{init:t,unbind:g}}();var locastyle=locastyle||{};locastyle.sidebarToggle=function(){"use strict";function t(){r(),n(),e(),a(),s()}function e(){$(".ls-sidebar").length&&$(".ls-sidebar").append('')}function n(){var t=localStorage.getItem("stateSidebar");t||$("html").hasClass("ls-sidebar-toggled")?i():o()}function a(){$(".ls-sidebar-toggle").on("click",function(){$("html").hasClass("ls-sidebar-toggled")?o():i()})}function i(){$("html").addClass("ls-sidebar-toggled"),$(".ls-sidebar-toggle").addClass("ls-active"),localStorage.setItem("stateSidebar","minimized"),$.event.trigger("sidebar-minimize")}function o(){$("html").removeClass("ls-sidebar-toggled"),$(".ls-sidebar-toggle").removeClass("ls-active"),localStorage.removeItem("stateSidebar"),$.event.trigger("sidebar-maximize")}function s(){$(window).on("breakpoint-updated",function(){$(".ls-window-xs").length&&o()})}function r(){$(".ls-sidebar-toggle").off("click")}return{init:t}}();var locastyle=locastyle||{};locastyle.collapse=function(){"use strict";function t(){$(s.trigger).each(function(){i($(this))}),e()}function e(){$(s.trigger).each(function(t,e){var r=$(e);r.hasClass(s.classes.alwaysOpened)||r.find(s.classes.header).on(s.event.click,function(t){t.preventDefault(),n(r),a(r),i(r)}),0===r.find(s.classes.header).length&&(r.off(s.event.click),r.on(s.event.click,function(t){t.preventDefault(),o($(e).data("target"))}))})}function n(t){var e=t.parents(s.classes.groupContainer);e[0]&&e.find(s.trigger).not(t).removeClass(s.classes.opened)}function a(t){t.hasClass(s.classes.opened)?(t.removeClass(s.classes.opened),t.trigger("collapse:closed")):(t.addClass(s.classes.opened),t.trigger("collapse:opened"))}function i(t){$(t).hasClass(s.classes.opened)?($(t).find(s.classes.header).attr({"aria-expanded":!0}),$(t).find(s.classes.content).attr({"aria-hidden":!1})):($(t).find(s.classes.header).attr({"aria-expanded":!1}),$(t).find(s.classes.content).attr({"aria-hidden":!0}))}function o(t){$(t).prev(s.classes.header).trigger(s.event.click)}var s={trigger:'[data-ls-module="collapse"]',classes:{header:".ls-collapse-header",content:".ls-collapse-body",groupContainer:".ls-collapse-group",open:"ls-collapse-open",close:"ls-collapse-close",opened:"ls-collapse-opened",alwaysOpened:"ls-collapse-opened-always"},event:{click:"click.ls"}};return{init:t,toggle:o}}();var locastyle=locastyle||{};locastyle.modal=function(){"use strict";function t(){n(),a()}function e(){$(document).off("keyup.ls-esc"),$(c.close.classes+", "+c.close.trigger).off("click.ls")}function n(){$(c.open.trigger).off("click.ls"),e()}function a(){$(c.open.trigger).on("click.ls",function(){locastyle.modal.open($(this))}),$(".ls-opened").length>0&&r("#"+$(".ls-opened").attr("id"))}function i(){$(document).one("keyup.ls-esc",function(t){27===t.keyCode&&$(".ls-opened")&&locastyle.modal.close()}),$(c.close.classes+", "+c.close.trigger).on("click.ls",function(t){return t.target!==t.currentTarget?!0:void locastyle.modal.close()})}function o(t){var e=null;$("body").addClass(c.classes.open),$(t).data("target")||"object"!=typeof t?e=$(t).data("target")?$(t.data("target")):$(t):(e=$(locastyle.templates.modal(t.data())),$("body").append(e),$(".ls-modal-template").focus(),i()),e.addClass("ls-opened"),e.trigger(c.open.triggerOpened,t),l(t),r(t)}function s(){var t=$(".ls-modal.ls-opened");$("body").removeClass(c.classes.open),t.attr("aria-hidden",!0),t.removeClass("ls-opened"),e(),t.trigger(c.close.triggerClosed),t.hasClass("ls-modal-template")&&t.remove()}function r(t){var e=$(t).data("target")?$(t.data("target")):$(t);e.each(function(t,e){void 0!==$(e).data("modal-blocked")?$(e).find('[data-dismiss="modal"]').remove():i()})}function l(t){var e=$(t).data("target")?$(t.data("target")):$(t),n=e.find(".ls-modal-title").attr("id")||"lsModal"+c.lsModal++;e.find(".ls-modal-title").attr("id",n),e.attr({role:"dialog","aria-hidden":!1,"aria-labelledby":n,tabindex:"-1"}).focus()}var c={open:{trigger:'[data-ls-module="modal"]',triggerOpened:"modal:opened"},close:{classes:".ls-modal",trigger:'[data-dismiss="modal"]',triggerClosed:"modal:closed"},classes:{open:"ls-overflow-hidden"},lsModal:0};return{init:t,open:o,close:s,unbind:n}}();var locastyle=locastyle||{};locastyle.alert=function(){"use strict";function t(){e()}function e(){$('[class*="ls-alert"]').attr({role:"alert"})}return{init:t}}();var locastyle=locastyle||{};locastyle.dismiss=function(){"use strict";function t(){e(),n()}function e(){$(o.trigger).off("click.ls")}function n(){$(o.trigger).on("click.ls",function(){a(this),locastyle.topbarCurtain.updateStatusCounter()})}function a(t){var e=$(t).parents(".ls-dismissable");$(t).data("target")&&(e=$(t).data("target")),i(e)}function i(t){$(t).addClass("ls-dismissed"),$(t).trigger(o.triggerClose)}var o={trigger:"[data-ls-module=dismiss]",triggerClose:"dismiss:close"};return{init:t,unbind:e}}();var locastyle=locastyle||{};locastyle.popover=function(){"use strict";function t(){r(),e()}function e(){$(l.module).each(function(t,e){var s="hover"===$(e).attr("data-trigger")?"mouseover":l.trigger;$(e).attr("data-target",l.idPopover+t);var c=$(e).data("target");if($(e).off(s),$(e).on(s,function(u){u.preventDefault(),u.stopPropagation(),$(c).hasClass("ls-active")?o(c):($(l.idPopover+t).length||n(t,e),i(c),r(c)),"mouseover"===s&&$(e).on("mouseout",function(){o(c)}),a(e)}),$(window).on("breakpoint-updated",function(){a(e)}),"open"===$(this).attr("data-ls-popover")){$(this).data("target");n(t,e),i(c),a(e)}})}function n(t,e){var n={index:t,title:$(e).data("title"),content:$(e).data("content"),placement:$(e).data("placement"),customClasses:$(e).data("custom-class")};$("body").append(locastyle.templates.popover(n))}function a(t){var e={target:$(t).data("target"),top:$(t).offset().top,left:$(t).offset().left,width:$(t).outerWidth(),height:$(t).outerHeight(),placement:$(t).data("placement")};switch(e.placement){case"right":$(e.target).css({top:e.top+=e.height/2-2,left:e.left+=e.width+12});break;case"bottom":$(e.target).css({top:e.top+=e.height+12,left:e.left+=e.width/2});break;case"left":$(e.target).css({top:e.top+=e.height/2-2,left:e.left-=12});break;default:case"top":$(e.target).css({top:e.top-=12,left:e.left+=e.width/2})}}function i(t){$(t).addClass("ls-active"),$(t).off(l.events.closed).trigger(l.events.opened)}function o(t){$(t||".ls-popover.ls-active").removeClass("ls-active"),$(t).trigger(l.events.closed).off(l.events.opened),$(".ls-popover.ls-active").length||$(document).off(l.events.clickAnywhere)}function s(){$(l.popoverClass).remove(),$.each(l.events,function(t,e){$(document).unbind(e)}),$(document).trigger(l.events.destroyed)}function r(t){$(document).on(l.events.clickAnywhere,function(e){$(e.target).parents(".ls-popover").length||o(t)})}var l={module:'[data-ls-module="popover"]',idPopover:"#ls-popover-",popoverClass:".ls-popover",trigger:"click",events:{clickAnywhere:"click.clickanywhere",opened:"popover:opened",closed:"popover:closed",destroyed:"popover:destroyed"}};return{init:t,show:i,hide:o,destroy:s}}();var locastyle=locastyle||{};locastyle.dropdown=function(){"use strict";function t(){e(),n(),a(),l(c.dropdown)}function e(){$(c.firstLink).off("click.ls"),$(c.area).off("click.ls")}function n(){$(c.firstLink).on("click.ls",function(t){t.preventDefault();var e=$($(this).parents(c.module));locastyle.dropdown.toggleDropdown(e),r(e),t.stopPropagation()})}function a(){$(c.area).on("click.ls",function(){locastyle.dropdown.closeDropdown(),l(c.dropdown)})}function i(t){t.find(c.button).first().hasClass("ls-disabled")||(s(t),t.toggleClass("ls-active"),l(t),locastyle.topbarCurtain.hideCurtains(),o(t))}function o(t){$(t).hasClass("ls-active")?$(t).trigger("dropdown:opened"):$(t).trigger("dropdown:closed")}function s(t){$(c.module).not(t).removeClass("ls-active")}function r(t){var e=$(c.area);e.get(0).scrollWidth>e.width()&&$(t).addClass("ls-pos-right")}function l(t){$(c.nav).find(c.button).attr({"aria-expanded":"false"}),$(c.nav).attr({"aria-hidden":"true"}),$(t).each(function(){$(c.nav).find("a").attr({role:"option"}),$(c.button,$(this)).attr({role:"combobox"}),$(this).hasClass("ls-active")?($(c.button,$(this)).attr({"aria-expanded":"true"}),$(c.nav,$(this)).attr({"aria-hidden":"false"})):($(c.button,$(this)).attr({"aria-expanded":"false"}),$(c.nav,$(this)).attr({"aria-hidden":"true"}))})}var c={area:"body",dropdown:".ls-dropdown",module:'[data-ls-module="dropdown"]',button:'[class*="ls-btn"]',firstLink:'[data-ls-module="dropdown"] > [class*="ls-btn"]:first-child, .ls-dropdown.ls-user-account > a:first-child',nav:".ls-dropdown-nav"};return{init:t,unbind:e,toggleDropdown:i,closeDropdown:s}}();var locastyle=locastyle||{};locastyle.tabs=function(){"use strict";function t(){c(),e(),n(),i(),u()}function e(){$('[data-ls-module="tabs"]').on("click.ls",function(t){t.preventDefault();var e=$($(this).attr("href")||$(this).data("target")),n=$(this).closest(".ls-tabs-nav");l(this,e),r(this,e),a(n)&&o(n)})}function n(){$(window).on("breakpoint-updated",function(){locastyle.tabs.checkBreakpoint()})}function a(t){return $(t).hasClass("in-dropdown")}function i(){("ls-window-sm"===locastyle.breakpointClass||"ls-window-xs"===locastyle.breakpointClass)&&$(".ls-tabs-nav").each(function(t,e){a(e)||s(e)})}function o(t){t.closest(".ls-dropdown-tabs").find("> a").text(t.find("li.ls-active > a").text())}function s(t){var e=$(t);e.addClass("in-dropdown ls-dropdown-nav").wrap('
'),e.find(".ls-dropdown-nav").each(function(){e.append($(this).html()),$(this).closest("li").remove()}),e.parent(".ls-dropdown-tabs").prepend(''+e.find("li.ls-active > a").text()+""),locastyle.tabs.init(),locastyle.dropdown.init()}function r(t,e){$(t).parents("li").addClass("ls-active"),$(t).trigger("tab:activated"),e.addClass("ls-active"),$(t).attr("aria-selected",!0)}function l(t,e){$(t).parents("li").siblings().removeClass("ls-active"),$(t).trigger("tab:deactivated"),e.siblings().removeClass("ls-active"),$(t).parents("li").siblings().find("a").attr("aria-selected",!1)}function c(){$("[data-ls-module=tabs]").off("click.ls")}function u(){$(d.tab).attr("role","tablist"),$(d.tabLink).attr("role","tab"),$(d.tabListActive).attr("aria-selected","true"),$(d.tabContent).attr("role","tabpanel")}var d={tab:".ls-tabs-nav",tabLink:".ls-tabs-nav a",tabListActive:".ls-tabs-nav li.ls-active a",tabContent:".ls-tab-content"};return{init:t,unbind:c,checkBreakpoint:i}}();var locastyle=locastyle||{};locastyle.templates=function(){"use strict";function t(){}function e(t){return JST[o+"popover"](t)}function n(t){return JST[o+"modal"](t)}function a(t){return JST[o+"dropdown"]({elements:t})}function i(){return JST[o+"browser-unsupported-bar"]()}var o="locastyle/templates/_";return{init:t,popover:e,modal:n,dropdown:a,browserUnsupportedBar:i}}();var locastyle=locastyle||{};locastyle.general=function(){"use strict";function t(){c(),n(),e(),s(),r(),l(),a()}function e(){$.each(u,function(t,e){var n=t.split("|");$(n[0]).off(n[1],n[2]),$(n[0]).on(n[1],n[2],function(t){var n=$(this);e(t,n)})})}function n(){var t=window.location.hash.replace("!/#","");""!==t&&$('[data-target="'+t+'"], a[href="'+t+'"]').trigger("click")}function a(){$("[data-ls-fields-enable]").on("click.ls",function(t){t.preventDefault();var e=$(this),n=$(e.data("ls-fields-enable")),a=n.data("form-text")?"ls-form-text":"";n.toggleClass("ls-form-disable ls-active "+a).find(":input").each(function(t,e){var n=$(e);n.toggleAttr("disabled").toggleClass(a).val(n.data("original-value"))})})}function i(t,e){var n=e.data("target")?$(e.data("target")):e,a=e.data("toggle-class");/(radio)|(checkbox)/.test(e.attr("type"))?(n.toggleClass(a,!e.prop("checked")),$('[name="'+e.attr("name")+'"]').not(e).each(function(){var t=$(this),n=t.data("target")?$(t.data("target")):t,a=t.data("toggle-class");n.toggleClass(a,e.prop("checked"))})):(t.preventDefault(),n.toggleClass(a))}function o(t,e){t.preventDefault();var n=$(e.attr("href"));n[0]&&$("html,body").animate({scrollTop:n.offset().top-70},1e3)}function s(){$(".ls-disabled, [disabled='disabled']").on("click",function(t){return $(this).hasClass("ls-disabled")||"disabled"===$(this).attr("disabled")?(t.stopImmediatePropagation(),t.preventDefault(),t.stopPropagation(),!1):void 0})}function r(t){$("a",t).on("click.lsPreventDefault",function(t){(""===$(this).attr("href")||"#"===$(this).attr("href"))&&t.preventDefault()})}function l(){$(".ls-group-active [class*='ls-btn']").on("click",function(){$(this).siblings().removeClass("ls-active"),$(this).addClass("ls-active")})}function c(){$("[data-ls-fields-enable]").off("click.ls"),$(".ls-disabled, [disabled='disabled']").off("click")}var u={"[data-toggle-class]|click":i,".ls-link-smooth|click":o};return jQuery.fn.toggleAttr=function(t){return this.each(function(){var e=$(this);return e.attr(t)?e.removeAttr(t):e.attr(t,t)})},{init:t}}();var locastyle=locastyle||{};locastyle.progressBar=function(){"use strict";function t(){e()}function e(){$("[data-ls-module='progressBar']").each(function(t,e){var a=$(e).attr("aria-valuenow");$(e).append("");var i=$(e).find("span");n(i,a)})}function n(t,e){$(t).css("width",e+"%")}return{init:t}}();var locastyle=locastyle||{};locastyle.form=function(){"use strict";function t(){o(),s(),i(),n(),e(),c(),a(),l()}function e(){"ls-window-xs"===locastyle.breakpointClass?($(".ls-label-text-sufix").parents(".ls-label").addClass("ls-label-text-has-sufix"),$(".ls-label-text-prefix").parents(".ls-label").addClass("ls-label-text-has-prefix")):$(".ls-label-text-sufix").prev('[class*="col-"]').addClass("ls-no-padding-right").find(":input").addClass("ls-no-right-radius ls-border")}function n(){$("textarea.ls-textarea-autoresize",".ls-label").each(function(t,e){var n=$(e);n.keyup(function(){if(!n.prop("scrollTop")){var t;do{t=n.prop("scrollHeight");var e=n.height();n.height(e-5)}while(t&&t!==n.prop("scrollHeight"))}n.height(n.prop("scrollHeight"))})})}function a(){$("textarea.ls-textarea-autoresize",".ls-label").each(function(t,e){var n=$(e).val(),a=n.split(/\r|\r\n|\n/),i=a.length,o=18*i;$(e).height(o+"px")})}function i(){$(".ls-mask-date").mask("00/00/0000"),$(".ls-mask-time").mask("00:00:00"),$(".ls-mask-date_time").mask("00/00/0000 00:00:00"),$(".ls-mask-cep").mask("00000-000"),$(".ls-mask-phone8").mask("0000-0000"),$(".ls-mask-phone9").mask("00009-0000"),$(".ls-mask-phone8_with_ddd").mask("(00) 0000-0000"),$(".ls-mask-phone9_with_ddd").mask("(00) 00009-0000"),$(".ls-mask-cpf").mask("000.000.000-00",{reverse:!0}),$(".ls-mask-cnpj").mask("00.000.000/0000-00",{reverse:!0}),$(".ls-mask-money").mask("#.##0,00",{reverse:!0,maxlength:!1}),$(".ls-mask-number").mask("#.##0",{reverse:!0,maxlength:!1}),$(".ls-mask-ip_address").mask("0ZZ.0ZZ.0ZZ.0ZZ",{translation:{Z:{pattern:/[0-9]/,optional:!0}}}),$(".ls-mask-percent").mask("##0,00%",{reverse:!0})}function o(){$(u.selectors.disable).each(function(t,e){var n=$(e);n.find(":input").each(function(t,e){var n=$(e);n.attr("disabled","disabled"),n.data("original-value",n.val())})})}function s(){$(u.selectors.text).each(function(t,e){$(e).find(":input").each(function(t,e){$(e).addClass("ls-form-text")}),$(e).data("form-text",!0)})}function r(t){if(void 0!==$(t).data("toggle-class")){var e=$(t).data("toggle-class").split(",");$(t).toggleClass(e[0]).toggleClass(e[1])}}function l(){$("[data-trigger-calendar]").on("click.ls",function(t){var e=$(this).data("trigger-calendar");$(e).trigger("click.ls")})}function c(){$(".ls-toggle-pass").on("click",function(t){t.preventDefault();var e=$(this).data("target");r($(this)),"password"===$(e).attr("type")?$(e).removeAttr("attr").prop("type","text"):$(e).removeAttr("attr").prop("type","password")})}var u={selectors:{disable:".ls-form-disable",text:".ls-form-text"}};return{init:t,togglePasswordField:c,triggerCalendar:l}}();var locastyle=locastyle||{};locastyle.guidedTour=function(){"use strict";function t(t){e(t)}function e(t){t&&t.selectors&&hopscotch&&($.each(l.selectors,function(e){t.selectors[e]=t.selectors[e]||l.selectors[e]}),n(t),s())}function n(t){r=t,$(l.selectors.init).on({click:i})}function a(t){return $(l.selectors.tour).trigger("click"),$(l.selectors.init).focus().attr("tabindex","-1"),t?t.preventDefault():null}function i(){locastyle.topbarCurtain.hideCurtains(),hopscotch.endTour(),hopscotch.startTour(r,0),o()}function o(){var t=39,e=37,n=27,a=hopscotch.getCurrTour().steps.length;$("body").off("keyup").on("keyup",function(i){var o=i.keyCode;hopscotch.getCurrStepNum()0||l>0?$($(e).data("target")).css({left:n+a-i+"px",top:"60px"}):$($(e).data("target")).css({left:n+a+i+"px"}),s(e)})}function i(){$(".ls-notification-list").on("click.ls",function(t){t.stopPropagation()})}function o(){$("body").on("click.lsTopCurtain",function(){l()})}function s(t){$(t).on("click.ls, ls.toggleTopCurtain",function(e){e.stopPropagation();var n=$($(t).data("target")).hasClass("ls-active");l(),n||($(t).addClass("ls-active"),r($(t).data("target")))})}function r(t){$(t).addClass("ls-active"),locastyle.dropdown.closeDropdown()}function l(){$("[data-ls-module='topbarCurtain']").removeClass("ls-active"),$(".ls-notification-list").removeClass("ls-active")}function c(){var t;$(window).resize(function(){clearTimeout(t),t=setTimeout(function(){e(),a(),o(),i()},300)})}function u(){var t=$(".ls-topbar .ls-user-account");$(".ls-sidebar .ls-user-account").length||t.clone().prependTo(".ls-sidebar")}var d={module:'[data-ls-module="topbarCurtain"]'};return{init:t,hideCurtains:l,unbind:e,updateStatusCounter:n}}();var locastyle=locastyle||{};locastyle.btnGroup=function(){"use strict";function t(){a(),n()}function e(){$(document).off("breakpoint-updated")}function n(){e(),$(document).on("breakpoint-updated",function(){a()})}function a(){("ls-window-sm"===locastyle.breakpointClass||"ls-window-xs"===locastyle.breakpointClass)&&($(".ls-regroup").each(function(t,e){i($(e).find("a, button"))}),locastyle.dropdown.init(),locastyle.modal.init(),locastyle.general.init())}function i(t){var e=$(t).wrap('