!function(w){w.fn.extend({autocomplete:function(t,e){var i="string"==typeof t;return(e=w.extend({},w.Autocompleter.defaults,{url:i?t:null,data:i?null:t,delay:i?w.Autocompleter.defaults.delay:10,max:e&&!e.scroll?10:150},e)).highlight=e.highlight||function(t){return t},e.formatMatch=e.formatMatch||e.formatItem,this.each(function(){new w.Autocompleter(this,e)})},result:function(t){return this.bind("result",t)},search:function(t){return this.trigger("search",[t])},flushCache:function(){return this.trigger("flushCache")},setOptions:function(t){return this.trigger("setOptions",[t])},unautocomplete:function(){return this.trigger("unautocomplete")}}),w.Autocompleter=function(s,a){function e(){var t,e,i=y.selected();return!!i&&(t=i.result,f=t,a.multiple&&(1<(e=n(g.val())).length&&(t=e.slice(0,e.length-1).join(a.multipleSeparator)+a.multipleSeparator+t),t+=a.multipleSeparator),g.val(t),o(),g.trigger("result",[i.data,i.value]),!0)}function i(t,e){var i;u!=m.DEL?(i=g.val(),!e&&i==f||((i=r(f=i)).length>=a.minChars?(g.addClass(a.loadingClass),c(i=a.matchCase?i:i.toLowerCase(),l,o)):(d(),y.hide()))):y.hide()}function n(t){var i;return t?(t=t.split(a.multipleSeparator),i=[],w.each(t,function(t,e){w.trim(e)&&(i[t]=w.trim(e))}),i):[""]}function r(t){var e;return a.multiple?(e=n(t))[e.length-1]:t}function o(){var t=y.visible();y.hide(),clearTimeout(h),d(),a.mustMatch&&g.search(function(t){t||(a.multiple?(t=n(g.val()).slice(0,-1),g.val(t.join(a.multipleSeparator)+(t.length?a.multipleSeparator:""))):g.val(""))}),t&&w.Autocompleter.Selection(s,s.value.length,s.value.length)}function l(t,e){e&&e.length&&_?(d(),y.display(e,t),t=t,e=e[0].value,a.autoFill&&r(g.val()).toLowerCase()==t.toLowerCase()&&u!=m.BACKSPACE&&(g.val(g.val()+e.substring(r(f).length)),w.Autocompleter.Selection(s,f.length,f.length+e.length)),y.show()):o()}function c(e,i,t){a.matchCase||(e=e.toLowerCase());var n,o=v.load(e);o&&o.length?i(e,o):"string"==typeof a.url&&0]*)("+e.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"$1")},scroll:!0,scrollHeight:180},w.Autocompleter.Cache=function(r){function s(t,e){t=(t=r.matchCase?t:t.toLowerCase()).indexOf(e);return-1!=t&&(0==t||r.matchContains)}function l(t,e){c>r.cacheLength&&i(),a[t]||c++,a[t]=e}function t(){if(!r.data)return!1;var t={},e=0;r.url||(r.cacheLength=1),t[""]=[];for(var i=0,n=r.data.length;i=r.minChars;o--)if(e=a[i.substr(0,o)])return n=[],w.each(e,function(t,e){s(e.value,i)&&(n[n.length]=e)}),n}return null}}},w.Autocompleter.Select=function(s,a,r,l){function c(t){for(var e=t.target;e&&"LI"!=e.tagName;)e=e.parentNode;return e||[]}function t(t){d.slice(f,f+1).removeClass(g),(f+=t)<0?f=d.size()-1:f>=d.size()&&(f=0);var e,t=d.slice(f,f+1).addClass(g);s.scroll&&(e=0,d.slice(0,f).each(function(){e+=this.offsetHeight}),e+t[0].offsetHeight-p.scrollTop()>p[0].clientHeight?p.scrollTop(e+t[0].offsetHeight-p.innerHeight()):e").hide().addClass(s.resultsClass).css("position","fixed").appendTo($("#search input[name='search']").parent()),p=w("
    ").appendTo(u).mouseover(function(t){c(t).nodeName&&"LI"==c(t).nodeName.toUpperCase()&&(f=w("li",p).removeClass(g).index(c(t)),w(c(t)).addClass(g))}).click(function(t){return w(c(t)).addClass(g),r(),a.focus(),!1}).mousedown(function(){l.mouseDownOnSelect=!0}).mouseup(function(){l.mouseDownOnSelect=!1}),0").html(s.highlight(i,m)).addClass(o%2==0?"ac_even":"ac_odd").appendTo(p)[0],w.data(i,"ac_data",h[o]));d=p.find("li"),s.selectFirst&&(d.slice(0,1).addClass(g),f=0),w.fn.bgiframe&&p.bgiframe()},next:function(){t(1)},prev:function(){t(-1)},pageUp:function(){t(0!=f&&f-8<0?-f:-8)},pageDown:function(){f!=d.size()-1&&f+8>d.size()?t(d.size()-1-f):t(8)},hide:function(){u&&u.hide(),d&&d.removeClass(g),f=-1},visible:function(){return u&&u.is(":visible")},current:function(){return this.visible()&&(d.filter("."+g)[0]||s.selectFirst&&d[0])},show:function(){var t,e=w(a).offset();u.css({width:"string"==typeof s.width||0s.scrollHeight,p.css("height",e?s.scrollHeight:t),e||d.width(p.width()-parseInt(d.css("padding-left"))-parseInt(d.css("padding-right"))))},selected:function(){var t=d&&d.filter("."+g).removeClass(g);return t&&t.length&&w.data(t[0],"ac_data")},emptyList:function(){p&&p.empty()},unbind:function(){u&&u.remove()}}},w.Autocompleter.Selection=function(t,e,i){var n;t.createTextRange?((n=t.createTextRange()).collapse(!0),n.moveStart("character",e),n.moveEnd("character",i),n.select()):t.setSelectionRange?t.setSelectionRange(e,i):t.selectionStart&&(t.selectionStart=e,t.selectionEnd=i),t.focus()}}(jQuery),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e(t.bootstrap={},t.jQuery,t.Popper)}(this,function(t,e,o){"use strict";function z(t,e){for(var i=0;ithis._items.length-1||t<0||(this._isSliding?d(this._element).one(h.SLID,function(){return e.to(t)}):i===t?(this.pause(),this.cycle()):this._slide(idocument.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},I._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},I._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right
    ',trigger:"hover focus",title:"",delay:0,html:!(Wt={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"}),selector:!(Ut={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"}),placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},Qt={HIDE:"hide"+w,HIDDEN:"hidden"+w,SHOW:(qt="show")+w,SHOWN:"shown"+w,INSERTED:"inserted"+w,CLICK:"click"+w,FOCUSIN:"focusin"+w,FOCUSOUT:"focusout"+w,MOUSEENTER:"mouseenter"+w,MOUSELEAVE:"mouseleave"+w},Vt="fade",Kt="show",Yt="hover",Zt="focus",(O=Oe.prototype).enable=function(){this._isEnabled=!0},O.disable=function(){this._isEnabled=!1},O.toggleEnabled=function(){this._isEnabled=!this._isEnabled},O.toggle=function(t){var e,i;this._isEnabled&&(t?(e=this.constructor.DATA_KEY,(i=b(t.currentTarget).data(e))||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),b(t.currentTarget).data(e,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)):b(this.getTipElement()).hasClass(Kt)?this._leave(null,this):this._enter(null,this))},O.dispose=function(){clearTimeout(this._timeout),b.removeData(this.element,this.constructor.DATA_KEY),b(this.element).off(this.constructor.EVENT_KEY),b(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&b(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},O.show=function(){var e=this;if("none"===b(this.element).css("display"))throw Error("Please use show on visible elements");var t,i,n=b.Event(this.constructor.Event.SHOW);this.isWithContent()&&this._isEnabled&&(b(this.element).trigger(n),i=b.contains(this.element.ownerDocument.documentElement,this.element),!n.isDefaultPrevented())&&i&&(n=this.getTipElement(),i=k.getUID(this.constructor.NAME),n.setAttribute("id",i),this.element.setAttribute("aria-describedby",i),this.setContent(),this.config.animation&&b(n).addClass(Vt),i="function"==typeof this.config.placement?this.config.placement.call(this,n,this.element):this.config.placement,i=this._getAttachment(i),this.addAttachmentClass(i),t=!1===this.config.container?document.body:b(document).find(this.config.container),b(n).data(this.constructor.DATA_KEY,this),b.contains(this.element.ownerDocument.documentElement,this.tip)||b(n).appendTo(t),b(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new o(this.element,n,{placement:i,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){e._handlePopperPlacementChange(t)}}),b(n).addClass(Kt),"ontouchstart"in document.documentElement&&b(document.body).children().on("mouseover",null,b.noop),t=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,b(e.element).trigger(e.constructor.Event.SHOWN),"out"===t&&e._leave(null,e)},b(this.tip).hasClass(Vt)?(i=k.getTransitionDurationFromElement(this.tip),b(this.tip).one(k.TRANSITION_END,t).emulateTransitionEnd(i)):t())},O.hide=function(t){function e(){i._hoverState!==qt&&n.parentNode&&n.parentNode.removeChild(n),i._cleanTipClass(),i.element.removeAttribute("aria-describedby"),b(i.element).trigger(i.constructor.Event.HIDDEN),null!==i._popper&&i._popper.destroy(),t&&t()}var i=this,n=this.getTipElement(),o=b.Event(this.constructor.Event.HIDE);b(this.element).trigger(o),o.isDefaultPrevented()||(b(n).removeClass(Kt),"ontouchstart"in document.documentElement&&b(document.body).children().off("mouseover",null,b.noop),this._activeTrigger.click=!1,this._activeTrigger[Zt]=!1,this._activeTrigger[Yt]=!1,b(this.tip).hasClass(Vt)?(o=k.getTransitionDurationFromElement(n),b(n).one(k.TRANSITION_END,e).emulateTransitionEnd(o)):e(),this._hoverState="")},O.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},O.isWithContent=function(){return Boolean(this.getTitle())},O.addAttachmentClass=function(t){b(this.getTipElement()).addClass("bs-tooltip-"+t)},O.getTipElement=function(){return this.tip=this.tip||b(this.config.template)[0],this.tip},O.setContent=function(){var t=this.getTipElement();this.setElementContent(b(t.querySelectorAll(".tooltip-inner")),this.getTitle()),b(t).removeClass(Vt+" "+Kt)},O.setElementContent=function(t,e){var i=this.config.html;"object"==typeof e&&(e.nodeType||e.jquery)?i?b(e).parent().is(t)||t.empty().append(e):t.text(b(e).text()):t[i?"html":"text"](e)},O.getTitle=function(){return this.element.getAttribute("data-original-title")||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},O._getAttachment=function(t){return Wt[t.toUpperCase()]},O._setListeners=function(){var i=this;this.config.trigger.split(" ").forEach(function(t){var e;"click"===t?b(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(t){return i.toggle(t)}):"manual"!==t&&(e=t===Yt?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,t=t===Yt?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT,b(i.element).on(e,i.config.selector,function(t){return i._enter(t)}).on(t,i.config.selector,function(t){return i._leave(t)})),b(i.element).closest(".modal").on("hide.bs.modal",function(){return i.hide()})}),this.config.selector?this.config=s({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},O._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");!this.element.getAttribute("title")&&"string"==t||(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},O._enter=function(t,e){var i=this.constructor.DATA_KEY;(e=e||b(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),b(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusin"===t.type?Zt:Yt]=!0),b(e.getTipElement()).hasClass(Kt)||e._hoverState===qt?e._hoverState=qt:(clearTimeout(e._timeout),e._hoverState=qt,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===qt&&e.show()},e.config.delay.show):e.show())},O._leave=function(t,e){var i=this.constructor.DATA_KEY;(e=e||b(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),b(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusout"===t.type?Zt:Yt]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){"out"===e._hoverState&&e.hide()},e.config.delay.hide):e.hide())},O._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},O._getConfig=function(t){return"number"==typeof(t=s({},this.constructor.Default,b(this.element).data(),"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),k.typeCheckConfig(Rt,t,this.constructor.DefaultType),t},O._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},O._cleanTipClass=function(){var t=b(this.getTipElement()),e=t.attr("class").match(Ft);null!==e&&e.length&&t.removeClass(e.join(""))},O._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},O._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(b(t).removeClass(Vt),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},Oe._jQueryInterface=function(e){return this.each(function(){var t=b(this).data(Ht);if((t||!/dispose|hide/.test(e))&&(t||(t=new Oe(this,"object"==typeof e&&e),b(this).data(Ht,t)),"string"==typeof e)){if(void 0===t[e])throw TypeError('No method named "'+e+'"');t[e]()}})},i(Oe,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return Bt}},{key:"NAME",get:function(){return Rt}},{key:"DATA_KEY",get:function(){return Ht}},{key:"Event",get:function(){return Qt}},{key:"EVENT_KEY",get:function(){return w}},{key:"DefaultType",get:function(){return Ut}}]),b.fn[Rt]=(Gt=Oe)._jQueryInterface,b.fn[Rt].Constructor=Gt,b.fn[Rt].noConflict=function(){return b.fn[Rt]=Mt,Gt._jQueryInterface},Gt),Se=(C="."+(Jt="bs.popover"),te=($=e).fn[Xt="popover"],ee=RegExp("(^|\\s)"+"bs-popover"+"\\S+","g"),ie=s({},O.Default,{placement:"right",trigger:"click",content:"",template:''}),ne=s({},O.DefaultType,{content:"(string|element|function)"}),oe={HIDE:"hide"+C,HIDDEN:"hidden"+C,SHOW:"show"+C,SHOWN:"shown"+C,INSERTED:"inserted"+C,CLICK:"click"+C,FOCUSIN:"focusin"+C,FOCUSOUT:"focusout"+C,MOUSEENTER:"mouseenter"+C,MOUSELEAVE:"mouseleave"+C},Se=ke=O,(N=Ie).prototype=Object.create(Se.prototype),(N.prototype.constructor=N).__proto__=Se,(N=Ie.prototype).isWithContent=function(){return this.getTitle()||this._getContent()},N.addAttachmentClass=function(t){$(this.getTipElement()).addClass("bs-popover-"+t)},N.getTipElement=function(){return this.tip=this.tip||$(this.config.template)[0],this.tip},N.setContent=function(){var t=$(this.getTipElement()),e=(this.setElementContent(t.find(".popover-header"),this.getTitle()),this._getContent());"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(".popover-body"),e),t.removeClass("fade show")},N._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},N._cleanTipClass=function(){var t=$(this.getTipElement()),e=t.attr("class").match(ee);null!==e&&0=this._offsets[n]&&(void 0===this._offsets[n+1]||t li > .active",(j=Ae.prototype).show=function(){var t,e,i,n,o,s,a=this;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&T(this._element).hasClass($e)||T(this._element).hasClass("disabled")||(e=T(this._element).closest(".nav, .list-group")[0],i=k.getSelectorFromElement(this._element),e&&(o="UL"===e.nodeName?xe:Ce,n=(n=T.makeArray(T(e).find(o)))[n.length-1]),o=T.Event(we.HIDE,{relatedTarget:this._element}),s=T.Event(we.SHOW,{relatedTarget:n}),n&&T(n).trigger(o),T(this._element).trigger(s),s.isDefaultPrevented())||o.isDefaultPrevented()||(i&&(t=document.querySelector(i)),this._activate(this._element,e),s=function(){var t=T.Event(we.HIDDEN,{relatedTarget:a._element}),e=T.Event(we.SHOWN,{relatedTarget:n});T(n).trigger(t),T(a._element).trigger(e)},t?this._activate(t,t.parentNode,s):s())},j.dispose=function(){T.removeData(this._element,ye),this._element=null},j._activate=function(t,e,i){function n(){return o._transitionComplete(t,s,i)}var o=this,s=("UL"===e.nodeName?T(e).find(xe):T(e).children(Ce))[0],e=i&&s&&T(s).hasClass("fade");s&&e?(e=k.getTransitionDurationFromElement(s),T(s).one(k.TRANSITION_END,n).emulateTransitionEnd(e)):n()},j._transitionComplete=function(t,e,i){var n;e&&(T(e).removeClass("show "+$e),(n=T(e.parentNode).find("> .dropdown-menu .active")[0])&&T(n).removeClass($e),"tab"===e.getAttribute("role"))&&e.setAttribute("aria-selected",!1),T(t).addClass($e),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),k.reflow(t),T(t).addClass("show"),t.parentNode&&T(t.parentNode).hasClass("dropdown-menu")&&((n=T(t).closest(".dropdown")[0])&&T([].slice.call(n.querySelectorAll(".dropdown-toggle"))).addClass($e),t.setAttribute("aria-expanded",!0)),i&&i()},Ae._jQueryInterface=function(i){return this.each(function(){var t=T(this),e=t.data(ye);if(e||(e=new Ae(this),t.data(ye,e)),"string"==typeof i){if(void 0===e[i])throw TypeError('No method named "'+i+'"');e[i]()}})},i(Ae,null,[{key:"VERSION",get:function(){return"4.1.3"}}]),Te=Ae,T(document).on(we.CLICK_DATA_API,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(t){t.preventDefault(),Te._jQueryInterface.call(T(this),"show")}),T.fn.tab=Te._jQueryInterface,T.fn.tab.Constructor=Te,T.fn.tab.noConflict=function(){return T.fn.tab=be,Te._jQueryInterface},Te);function Ae(t){this._element=t}function De(t,e){var i=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+ge+","+this._config.target+" "+fe+","+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,x(this._scrollElement).on(ue.SCROLL,function(t){return i._process(t)}),this.refresh(),this._process()}function Ie(){return ke.apply(this,arguments)||this}function Oe(t,e){if(void 0===o)throw TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}function Ne(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._scrollbarWidth=0}function L(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}function je(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=l.makeArray(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var i=[].slice.call(document.querySelectorAll(mt)),n=0,o=i.length;n",s)||this.op(e,"<",o)&&this.op(e,">",s))&&a.push(r);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+a.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],c.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=l("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(l("
    ",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},c.prototype.initializeItems=function(){var t=this.$element.find(".owl-item");t.length?(this._items=t.get().map(function(t){return l(t)}),this._mergers=this._items.map(function(){return 1}),this.refresh()):(this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass))},c.prototype.initialize=function(){var t,e;this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")&&(t=this.$element.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:r,e=this.$element.children(e).width(),t.length)&&e<=0&&this.preloadAutoWidthImages(t),this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},c.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},c.prototype.setup=function(){var e=this.viewport(),t=this.options.responsive,i=-1,n=null;t?(l.each(t,function(t){t<=e&&i").addClass(this.options.itemClass).append(t)),this.trigger("prepared",{content:e.data}),e.data},c.prototype.update=function(){for(var t=0,e=this._pipe.length,i=l.proxy(function(t){return this[t]},this._invalidated),n={};t",a[t+1]!==r?a[t+1]:e-s)&&(o="left"===n?t+1:t),-1===o},this)),this.settings.loop||(this.op(i,">",a[this.minimum()])?o=i=this.minimum():this.op(i,"<",a[this.maximum()])&&(o=i=this.maximum())),o},c.prototype.animate=function(t){var e=0n););s=e+1}else s=o.center?this._items.length-1:this._items.length-o.items;return t&&(s-=this._clones.length/2),Math.max(s,0)},c.prototype.minimum=function(t){return t?0:this._clones.length/2},c.prototype.items=function(t){return t===r?this._items.slice():(t=this.normalize(t,!0),this._items[t])},c.prototype.mergers=function(t){return t===r?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},c.prototype.clones=function(i){function n(t){return t%2==0?o+t/2:e-(t+1)/2}var e=this._clones.length/2,o=e+this._items.length;return i===r?l.map(this._clones,function(t,e){return n(e)}):l.map(this._clones,function(t,e){return t===i?n(e):null})},c.prototype.speed=function(t){return t!==r&&(this._speed=t),this._speed},c.prototype.coordinates=function(t){var e,i=1,n=t-1;return t===r?l.map(this._coordinates,l.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(this.settings.rtl&&(i=-1,n=t+1),e=this._coordinates[t],e+=(this.width()-e+(this._coordinates[n]||0))/2*i):e=this._coordinates[n]||0,Math.ceil(e))},c.prototype.duration=function(t,e,i){return 0===i?0:Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},c.prototype.to=function(t,e){var i=this.current(),n=t-this.relative(i),o=(0s/2&&(n+=-1*o*s),(o=(((t=i+n)-a)%s+s)%s+a)!==t&&o-n<=r&&0":return n?t=":return n?t<=i:i<=t;case"<=":return n?i<=t:t<=i}},c.prototype.on=function(t,e,i,n){t.addEventListener?t.addEventListener(e,i,n):t.attachEvent&&t.attachEvent("on"+e,i)},c.prototype.off=function(t,e,i,n){t.removeEventListener?t.removeEventListener(e,i,n):t.detachEvent&&t.detachEvent("on"+e,i)},c.prototype.trigger=function(t,e,i,n,o){var s={item:{count:this._items.length,index:this.current()}},a=l.camelCase(l.grep(["on",t,i],function(t){return t}).join("-").toLowerCase()),r=l.Event([t,"owl",i||"carousel"].join(".").toLowerCase(),l.extend({relatedTarget:this},s,e));return this._supress[t]||(l.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(r)}),this.register({type:c.Type.Event,name:t}),this.$element.trigger(r),this.settings&&"function"==typeof this.settings[a]&&this.settings[a].call(this,r)),r},c.prototype.enter=function(t){l.each([t].concat(this._states.tags[t]||[]),l.proxy(function(t,e){this._states.current[e]===r&&(this._states.current[e]=0),this._states.current[e]++},this))},c.prototype.leave=function(t){l.each([t].concat(this._states.tags[t]||[]),l.proxy(function(t,e){this._states.current[e]--},this))},c.prototype.register=function(i){var e;i.type===c.Type.Event?(l.event.special[i.name]||(l.event.special[i.name]={}),l.event.special[i.name].owl||(e=l.event.special[i.name]._default,l.event.special[i.name]._default=function(t){return!e||!e.apply||t.namespace&&-1!==t.namespace.indexOf("owl")?t.namespace&&-1",{class:"owl-video-tn "+r,srcType:t}):c("
    ",{class:"owl-video-tn",style:"opacity:1;background-image:url("+t+")"}),e.after(n),e.after('
    ')}var n,o=t.width&&t.height?"width:"+t.width+"px;height:"+t.height+"px;":"",s=e.find("img"),a="src",r="",l=this._core.settings;if(e.wrap(c("
    ",{class:"owl-video-wrapper",style:o})),this._core.settings.lazyLoad&&(a="data-src",r="owl-lazy"),s.length)return i(s.attr(a)),s.remove(),!1;"youtube"===t.type?i("//img.youtube.com/vi/"+t.id+"/hqdefault.jpg"):"vimeo"===t.type?c.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+t.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){i(t[0].thumbnail_large)}}):"vzaar"===t.type&&c.ajax({type:"GET",url:"//vzaar.com/api/videos/"+t.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){i(t.framegrab_url)}})},i.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},i.prototype.play=function(t){var e,t=c(t.target).closest("."+this._core.settings.itemClass),i=this._videos[t.attr("data-video")],n=i.width||"100%",o=i.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),t=this._core.items(this._core.relative(t.index())),this._core.reset(t.index()),(e=c('')).attr("height",o),e.attr("width",n),"youtube"===i.type?e.attr("src","//www.youtube.com/embed/"+i.id+"?autoplay=1&rel=0&v="+i.id):"vimeo"===i.type?e.attr("src","//player.vimeo.com/video/"+i.id+"?autoplay=1"):"vzaar"===i.type&&e.attr("src","//view.vzaar.com/"+i.id+"/player?autoplay=true"),c(e).wrap('
    ').insertAfter(t.find(".owl-video")),this._playing=t.addClass("owl-video-playing"))},i.prototype.isInFullScreen=function(){var t=e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement;return t&&c(t).parent().hasClass("owl-video-frame")},i.prototype.destroy=function(){var t,e;for(t in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},c.fn.owlCarousel.Constructor.Plugins.Video=i}(window.Zepto||window.jQuery,(window,document)),function(a){function e(t){this.core=t,this.core.options=a.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":a.proxy(function(t){t.namespace&&"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":a.proxy(function(t){t.namespace&&(this.swapping="translated"==t.type)},this),"translate.owl.carousel":a.proxy(function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)}e.Defaults={animateOut:!1,animateIn:!1},e.prototype.swap=function(){var t,e,i,n,o,s;1===this.core.settings.items&&a.support.animation&&a.support.transition&&(this.core.speed(0),e=a.proxy(this.clear,this),i=this.core.$stage.children().eq(this.previous),n=this.core.$stage.children().eq(this.next),o=this.core.settings.animateIn,s=this.core.settings.animateOut,this.core.current()!==this.previous)&&(s&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),i.one(a.support.animation.end,e).css({left:t+"px"}).addClass("animated owl-animated-out").addClass(s)),o)&&n.one(a.support.animation.end,e).addClass("animated owl-animated-in").addClass(o)},e.prototype.clear=function(t){a(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},e.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},a.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,(window,document)),function(n,o,e){function i(t){this._core=t,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":n.proxy(function(t){t.namespace&&"settings"===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&"position"===t.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":n.proxy(function(t){t.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":n.proxy(function(t,e,i){t.namespace&&this.play(e,i)},this),"stop.owl.autoplay":n.proxy(function(t){t.namespace&&this.stop()},this),"mouseover.owl.autoplay":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":n.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=n.extend({},i.Defaults,this._core.options)}i.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},i.prototype._next=function(t){this._call=o.setTimeout(n.proxy(this._next,this,t),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||e.hidden||this._core.next(t||this._core.settings.autoplaySpeed)},i.prototype.read=function(){return(new Date).getTime()-this._time},i.prototype.play=function(t,e){var i;this._core.is("rotating")||this._core.enter("rotating"),t=t||this._core.settings.autoplayTimeout,i=Math.min(this._time%(this._timeout||t),t),this._paused?(this._time=this.read(),this._paused=!1):o.clearTimeout(this._call),this._time+=this.read()%t-i,this._timeout=t,this._call=o.setTimeout(n.proxy(this._next,this,e),t-i)},i.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,o.clearTimeout(this._call),this._core.leave("rotating"))},i.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,o.clearTimeout(this._call))},i.prototype.destroy=function(){var t,e;for(t in this.stop(),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},n.fn.owlCarousel.Constructor.Plugins.autoplay=i}(window.Zepto||window.jQuery,window,document),function(o){"use strict";function e(t){this._core=t,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":o.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.push('
    '+o(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"
    ")},this),"added.owl.carousel":o.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())},this),"remove.owl.carousel":o.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"changed.owl.carousel":o.proxy(function(t){t.namespace&&"position"==t.property.name&&this.draw()},this),"initialized.owl.carousel":o.proxy(function(t){t.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":o.proxy(function(t){t.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=o.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)}e.Defaults={nav:!1,navText:['',''],navSpeed:!1,navElement:'button type="button" aria-label="Navegação do carrossel" role="button"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var t,i=this._core.settings;for(t in this._controls.$relative=(i.navContainer?o(i.navContainer):o("
    ").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=o("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",o.proxy(function(t){this.prev(i.navSpeed)},this)),this._controls.$next=o("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",o.proxy(function(t){this.next(i.navSpeed)},this)),i.dotsData||(this._templates=[o('')+'
    ",$("body").append(e),$("#modal-wishlist").modal("show")),t.info&&(e=' ",$("body").append(e),$("#modal-wishlist").modal("show")),$("#wishlist-total").html(t.total),t.ga4&&sendWishListGa4(t.add_to_wishlist,t.event_parameter,t.event_user_id,t.measurement_api_secret,t.config_google_analytics)},error:function(t,e,i){console.log(t.responseText)}})},remove:function(){}},wedding={add:function(e){$.ajax({url:"index.php?route=account/wedding/addProduct",type:"post",data:"product_id="+e,dataType:"json",success:function(t){t.success&&$("#wedding_"+e).html(""+t.success+"")},error:function(t,e,i){alert(t.responseText)}})},remove:function(e){$.ajax({url:"index.php?route=account/wedding/removeProduct",type:"post",data:"product_id="+e,dataType:"json",success:function(t){t.success&&($("#wedding_"+e).html(""+t.success+""),$("#product_"+e).hide(500))},error:function(t,e,i){alert(t.responseText)}})},delete:function(){if(!confirm("Confirma a exclusão da lista?"))return!1;$.ajax({url:"index.php?route=account/wedding/deleteWedding",type:"post",data:"",dataType:"json",success:function(t){t.success&&($("#profile-on_the_double-about_marriage").hide(300),$("#products-wedding").hide(300),$("#content-wedding-profile").hide(700),$("#content-wedding-profile-new").html(""+t.success+"").hide(4700),$("#container-wedding-new").show(500),$("#info-products-wedding").hide(500),$("#input-on_the_double").val(""),$("#input-about_marriage").val(""))},error:function(t,e,i){alert(t.responseText)}})},product:function(t,e){$.ajax({url:"index.php?route=product/wedding/goProduct",type:"post",data:"wedding_id="+t+"&product_id="+e,dataType:"json",success:function(t){t.success?window.location.href=t.success:t.error&&alert(t.error)},error:function(t,e,i){alert(t.responseText)}})}};function searchAddressCustomer(t,e){var i,n,o,s,a,r;$("#text_cep_obs + .text-danger").remove(),8==t.length?($(".second-step-address").length&&$(".osc-address-load").show(),r="undefined"!=String(typeof e)?(i=$('input[name="'+e+'[address_1]"]'),n=$('input[name="'+e+'[neighborhood]"]'),o=$('input[name="'+e+'[city]"]'),s=$('select[name="'+e+'[zone_id]"]'),$('select[name="'+e+'[country_id]"]'),a=$('input[name="'+e+'[number_home]"]'),e):(i=$("input[name=address_1]"),n=$("input[name=neighborhood]"),o=$("input[name=city]"),s=$("select[name=zone_id]"),$("select[name=country_id]"),a=$("input[name=number_home]"),"other"),i.val(""),i.removeAttr("readonly"),n.val(""),n.removeAttr("readonly"),o.val(""),o.removeAttr("readonly"),s.val(""),$.ajax({url:"index.php?route=account/correios/correiosJson",type:"POST",data:"postcode="+t+"&local="+r,dataType:"json",beforeSend:function(){$("#btn-ok-cep").html(''),$(".register-address-column").length&&($(".register-address-column .form-group:not(.fixed-focus) .form-label").removeClass("focus not-empty"),$(".register-address-column").hide(),$(".register-address-column").before('
    Carregando...
    '))},complete:function(){$(".register-address-column").length&&($(".register-address-column").show(),$(".register-load-address").remove())},success:function(t){if($("#btn-ok-cep").html("OK"),$("#input-postcode").removeClass("select-disabled"),$("#input-zone").removeClass("select-disabled"),$("#include_address_content > .text-center > .btn-primary").show(),$(".second-step-address .osc-error").length&&$(".second-step-address .osc-error").remove(),t.return_ok)if(("string"==String(typeof t.address)&&""!=t.address?(i.val(t.address),t.address&&" "!=t.address&&$(".second-step-address").length&&$(".onestepcheckout-checkout").length?i.parent().addClass("is-valid").removeClass("has-error").find(".form-label").addClass("focus not-empty"):t.address&&" "!=t.address&&$(".account-register").length&&i.siblings(".form-label").addClass("focus not-empty"),a):i).focus(),"string"==String(typeof t.neighborhood)&&""!=t.address&&(n.val(t.neighborhood),t.neighborhood&&$(".second-step-address").length&&$(".onestepcheckout-checkout").length?n.parent().addClass("is-valid").removeClass("has-error").find(".form-label").addClass("focus not-empty"):t.neighborhood&&$(".account-register").length&&n.siblings(".form-label").addClass("focus not-empty")),"string"==String(typeof t.city)&&(o.val(t.city),t.city&&$(".second-step-address").length&&$(".onestepcheckout-checkout").length?o.parent().addClass("is-valid").removeClass("has-error").find(".form-label").addClass("focus not-empty"):t.city&&$(".account-register").length&&o.siblings(".form-label").addClass("focus not-empty")),""!=t.zone_id&&(s.val(t.zone_id),s.hasClass("empty"))&&s.removeClass("empty").siblings("label").removeClass("empty"),$(".second-step-address").length&&$(".onestepcheckout-checkout").length&&$(".input-postcode").removeAttr("disabled"),t.return_all)$(".text_cep_obs").html('Não sabe o CEP?'),$(".field-complete").hide(),$(".return_all").show(),$(".return_all_content").html(t.address+' - alterar
    '+t.neighborhood+" - "+t.city+" - "+t.zone),$(".second-step-address").length&&$(".onestepcheckout-checkout").length&&($(".osc-address-load").hide(),$('#collection-zone-id[name="collection[zone_id]"]:not(.empty)').prop("disabled",!0),$(".btn-open-payment").removeClass("disabled").html("GRAVAR E CONTINUAR")),$(".edit_address").click(function(){$(".return_all").hide(),$(".return_all_content").html(""),$(".field-complete").show()});else{if($('#collection-zone-id[name="collection[zone_id]"]:not(.empty)').prop("disabled",!1),t.notify_cep?$(".text_cep_obs").html('
    CEP não encontrado nos correios Não sei meu CEP
    '):($("#collection-zone-id").addClass("select-disabled"),$(".text_cep_obs").html('Não sabe o CEP?')),t.notify_cep&&t.block_cep)return $("#include_address_content > .text-center > .btn-primary").hide(),void $(".osc-address-load").hide();$(".return_all").hide(),$(".return_all_content").html(""),$(".field-complete").show(),$(".osc-address-load").hide(),$(".second-step-address").length&&$(".onestepcheckout-checkout").length&&($(".osc-address-load").hide(),$(".btn-open-payment").removeClass("disabled").html("GRAVAR E CONTINUAR"))}else $(".second-step-address").fadeOut(),$('

    CEP não encontrado
    ').insertAfter("#text_cep_obs");t.city?($(".second-step-address").fadeIn(function(){$(".second-step-address").length&&$(".onestepcheckout-checkout").length&&("string"==String(typeof t.address)&&""!=t.address&&" "!=t.address?$(`input[name="${e}[number_home]"]`):$(`input[name="${e}[address_1]"]`)).get(0).focus()}),$(".osc-collection > .form-group").addClass("is-valid").removeClass("has-error")):$(".osc-collection > .form-group").removeClass("is-valid").addClass("has-error")},error:function(t,e,i){console.log(t.responseText)}})):($(".second-step-address").fadeOut(),$('

    CEP Inválido! Verifique se foi digitado corretamente
    ').insertAfter("#text_cep_obs"))}function sendWishListGa4(t,e,i,n,o){var t=JSON.parse(t),e=JSON.parse(e),i=JSON.parse(i),s=document.createElement("script");function a(){dataLayer.push(arguments)}s.setAttribute("src","https://www.googletagmanager.com/gtag/js?id="+o),$(s).appendTo("footer"),window.dataLayer=window.dataLayer||[],a("js",new Date),a("config",o,{debug_mode:!0}),a("config",n,e),a("config",n,{debug_mode:!0}),a("config",n,i),a("event","add_to_wishlist",t)}function sendRemoveCartGa4(t,e,i){var t=JSON.parse(t),n=document.createElement("script");function o(){dataLayer.push(arguments)}n.setAttribute("src","https://www.googletagmanager.com/gtag/js?id="+i),$(n).appendTo("footer"),window.dataLayer=window.dataLayer||[],o("js",new Date),o("config",i,{debug_mode:!0}),o("config",e,{debug_mode:!0}),o("event","remove_from_cart",t)}function sendAddCartGa4(t,e,i="add_to_cart"){var n=document.createElement("script");function o(){dataLayer.push(arguments)}n.setAttribute("src","https://www.googletagmanager.com/gtag/js?id="+e),$(n).appendTo("footer"),window.dataLayer=window.dataLayer||[],o("js",new Date),o("config",e),o("event",i,t)}function generateBillet(t){$("#billet_"+t).submit()}function viewTypeProduct(t){"list"==t?($("#shelf-list-product").addClass("product-view-type-list"),$("#shelf-list-product .product").addClass("product-list product-list-classic unit flex-md-row align-items-sm-start"),$("#shelf-list-product .product").removeClass("product-grid"),$("#shelf-list-product .product .product-image").addClass("unit-left"),$("#shelf-list-product .product .product-list-informations").addClass("unit-body text-left"),localStorage.setItem("display","list")):"grid"==t&&($("#shelf-list-product").removeClass("product-view-type-list"),$("#shelf-list-product .product").removeClass("product-list product-list-classic unit flex-md-row align-items-sm-start"),$("#shelf-list-product .product").addClass("product-grid"),$("#shelf-list-product .product .product-image").removeClass("unit-left"),$("#shelf-list-product .product .product-list-informations").removeClass("unit-body text-left"),localStorage.setItem("display","grid"))}$(".toolbar-shop-icon").click(function(){$(this).hasClass("active")||(viewTypeProduct($(this).data("view-type")),$(".toolbar-shop-icon").removeClass("active"),$(this).addClass("active"))});const filterParentIsLeft=$("#content-new-filters").parent("#column-left").length;function realocateFilter(){filterParentIsLeft&&$("#column-left").hasClass("hidden-xs")&&(this.window.matchMedia("(max-width: 991px)").matches?$("#content-new-filters").prependTo($("#content")):($("#content-new-filters").prependTo($("#column-left")),$("#content-new-filters").insertAfter($(".heading_column_left")))),this.window.matchMedia("(min-width: 992px)").matches&&$("#content-new-filters").hasClass("filter-side open")&&$("#filter-button-side").click()}function productListImageChangeHover(t){var e,i;1200<=$(window).width()&&(e=t.attr("data-aux-src"),0'+n+"";$(t).append(i),e>Days[month]&&(e=1),$(t).val(e)}}function change_month(t){var e=$("#day"),i=$(e).val();$(e).empty();for(var n='',o=parseInt($(t).val()),s=1;s<=Days[o];s++)n+='";$(e).append(n),i>Days[o]&&(i=1),$(e).val(i)}function ChangeLang(t){let e;switch(document.createEvent&&new Event("click",{bubbles:!0,cancelable:!0}),t){case"pt":e=$(".skiptranslate").contents().find('button[id*="restore"]');break;case"es":e=$(".skiptranslate").contents().find('span:contains("Espanhol")');break;case"fr":e=$(".skiptranslate").contents().find('span:contains("Francês")');break;case"en":e=$(".skiptranslate").contents().find('span:contains("Inglês")');break;case"zh-CN":e=$(".skiptranslate").contents().find('span:contains("Chinês")')}e.trigger("click")}function googleTranslateElementInit(){new google.translate.TranslateElement({pageLanguage:"pt",autoDisplay:!1,includedLanguages:"es,fr,en,zh-CN",layout:google.translate.TranslateElement.InlineLayout.SIMPLE},"google_translate_element")}function newsValidate(t){$(".news-alert").remove();let e=!1;if(errorMsg="",newsData=[],emailField=$('[name="email_news"]'),nameField=$('[name="name_news"]'),captchaField=$('[name="captcha"]'),cellphoneField=$('[name="cellphone_news"]'),csrfField=$('[name="__csrf"]'),$("#newsletter").length?newsContent=$("#newsletter"):$(".newsletter-content").length&&(newsContent=$(".newsletter-content")),t.hide_field_email?newsData.email="":emailField.val()&&validateNewsEmail(emailField.val())?$.ajax({url:"index.php?route=module/newsletter/validateEmail",type:"POST",data:"email="+emailField.val(),dataType:"json",async:!1,success:function(t){t.success?newsData.email=emailField.val():(e=!0,errorMsg+=``)}}):(e=!0,errorMsg+=''),t.show_field_name&&nameField.length){let i=nameField.val().trim().split(" ");$.map(i,function(t,e){t=t.slice(0,1).toUpperCase()+t.slice(-(t.length-1)),i[e]=t}),i=i.toString().replace(","," "),nameField.val()&&validateNewsName(i)?validateNewsName(i)&&(newsData.name=i):(e=!0,errorMsg+='')}else newsData.name="";t.show_field_cellphone&&cellphoneField.length?nameField.val()&&validateNewsCell(cellphoneField.val())?newsData.cellphone=cellphoneField.val():(e=!0,errorMsg+=''):newsData.cellphone="",csrfField.length?csrfField.val()&&(newsData.csrf=csrfField.val()):newsData.csrf="",e?$(".error-newsletter").length?($(".error-newsletter").html(""),$(".error-newsletter").html(errorMsg),setTimeout(()=>{$(".error-newsletter").html("")},7e3)):(newsContent.find(".form-validation, .error-newsletter").remove(),newsContent.after(`
    ${errorMsg}
    `),setTimeout("$('.error-newsletter').remove();",7e3)):newsSend(newsData,t,newsContent)}function newsSend(e,i,n){$.ajax({url:"index.php?route=module/newsletter/send",type:"POST",data:"email="+e.email+"&name="+e.name+"&source=newsletter&cellphone="+e.cellphone+"&csrf="+e.csrf,dataType:"json",beforeSend:function(){$(".button.btn.btn-sm.btn-primary.btn-newsletter.mdi.mdi-send").button("loading"),$(".error-newsletter").remove()},complete:function(){$(".btn-newsletter").button("reset")},success:function(t){t.error?($(".newsletter-content .form-validation").remove(),$(".newsletter-content #policy-newsletter").after('
    '+t.error+"
    "),$(".newsletter-content .form-control").parent().addClass("has-error"),setTimeout("$('.form-validation, .error-newsletter').fadeOut();$('.newsletter-content .has-error').removeClass('has-error');",3e3)):t.success&&($(".box-text-newsletter").addClass("newsletter-success"),i.newsletter_success?n.html(i.newsletter_success):t.coupon_type&&t.coupon_value?n.html('"):n.html('')),i.rdstation&&sendNewsToRD(i.token_rdstation),i.mailbiz_status&&i.mailbiz&&$.ajax({url:i.mailbiz_url,type:"post",data:{"FormValue_Fields[EmailAddress]":e.email,FormValue_ListID:i.mailbiz,FormValue_Command:"Subscriber.Add",FormButton_Subscribe:"OK"},success:function(t){console.log("mlbz ok")},error:function(t,e,i){console.log(t.responseText)}}),i.mailbiz_status&&i.mailbiz_warn_me&&$.ajax({url:i.mailbiz_url,type:"post",data:{"FormValue_Fields[EmailAddress]":e.email,FormValue_ListID:i.mailbiz_warn_me,FormValue_Command:"Subscriber.Add",FormButton_Subscribe:"OK"},success:function(t){console.log("mlbz avisa-me ok")},error:function(t,e,i){console.log(t.responseText)}})},error:function(t,e,i){alert(t.responseText)}})}function validateNewsEmail(t){return/\S+@\S+\.\S+/.test(t)}function validateNewsName(t){return/[A-ZÁ-ú][a-zá-ú]* [A-ZÁ-ú][a-zá-ú]*/.test(t)||/[A-ZÁ-ú][a-zá-ú]*/.test(t)}function validateNewsCell(t){return/[1-9]{2}\) ?([2-8]|9[1-9])[0-9]{3}\-[0-9]{4}/.test(t)}function sendNewsToRD(t){RdIntegration.post([{name:"identificador",value:"Newsletter"},{name:"token_rdstation",value:t},{name:"email",value:jQuery('[name="email_news"]').val()},{name:"nome",value:jQuery('[name="name_news"]').val()}],function(){return!1})}function filterProductsTop(t){!t.parent().hasClass("filter-side")&&767 a").addClass("collapsed"),$(this).find(".filters-new-content").removeClass("show")})}function sendEventToAnalytics(t,e){var i=window.location.href,n=document.title,o=checkDevice();parameter_route={page_title:n,page_location:i},event_data={"event-category":t,event_label:t+" "+o},gtag("config",e,parameter_route),gtag("event","Banner Carrossel "+o,event_data)}function checkDevice(){return navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/Windows Phone/i)?"mobile":"desktop"}function loadQuantityItensCart(){console.log("Load the quantity itens in the cart "),$.ajax({url:"index.php?route=common/cart/countCartItens",type:"POST",dataType:"json",success:function({quantity:t}){t&&$(".js-cart_quantity").html(`${t}`)},error:function(t){console.log(t.responseText)}})}function loadAccount(){console.log("Load account details"),$.ajax({url:"index.php?route=common/account/isLogged",type:"POST",success:function(t){t&&$(".js-login_account").load("/index.php?route=common/account&v="+generateNewVersion(),{device:checkDevice()})},error:function(t){console.log(t.responseText)}})}function cartTotal(){console.log("Load the total amount of the cart"),$.ajax({url:"index.php?route=common/cart/cartTotal",type:"POST",success:function(t){t=new Intl.NumberFormat("pt-br",{style:"currency",currency:"BRL",minimumFractionDigits:2}).format(t);$(".js-cart-quantity-total").html(` ${t} `)},error:function(t){console.log(t.responseText)}})}function loadCartProducts(){console.log("Load the products in the dropdown"),$("#cart_dropdown, .js-cart_dropdown").load("/index.php?route=common/cart/info&v="+generateNewVersion())}function generateNewVersion(){var t=new Date;return""+verifyNumber(t.getDate())+verifyNumber(t.getMonth()+1)+t.getFullYear()+verifyNumber(t.getHours())+verifyNumber(t.getMinutes())+verifyNumber(t.getSeconds())}function verifyNumber(t){return t<=9?"0"+t:t}function sendEventSelectGa4(t,e){event.preventDefault();var i={},n=document.createElement("script");function o(){dataLayer.push(arguments)}i.item_list_id=t.item_list_id,i.item_list_name=t.item_list_name,i.items=t.parameters_event,i.send_to=t.config_google_analytics,n.setAttribute("src","https://www.googletagmanager.com/gtag/js?id="+t.config_google_analytics),$(n).appendTo("footer"),window.dataLayer=window.dataLayer||[],o("js",new Date),o("config",t.config_google_analytics),o("event","select_item",i),1==t.special_ga4&&o("event","select_promotion",i),this.event.ctrlKey?window.open(e,"_blank"):window.location.href=e}function openLoading(){$("#load-page").remove(),$("body").append(''),$("body").append('
    '),$("#load-page").css({position:"fixed",bottom:"-50px",width:"100%","z-index":"999999","text-align":"center",color:"#222"})}function addProductBreak(){var t=!1;$(".product-grid").each(function(){1==t&&$(this).after('
    '),t=!t})}function closeLoading(){$("#load-page").remove()}$(document).ready(function(){for(var t='',e=1;e<=Days[0];e++)t+='";$("#day").append(t),$("#day").val("day");for(t='',e=1;e<=12;e++)t+='";for($("#month").append(t),$("#month").val("0"),t='',e=1;e<=12;e++)t+='";$("#month2").append(t),$("#month2").val("0");var i=new Date;for(t='',selectedYear="year",e=i.getFullYear();1930<=e;e--)t+='";$("#year").append(t),$("#year").val(selectedYear)}),$("#group-birthday .date-group > .form-control").on("change",function(){$("#input-birthday").val($("#day").val()+"/"+$("#month").val()+"/"+$("#year").val())}),$(document).delegate(".agree","click",function(t){t.preventDefault(),$("#modal-agree").remove();var e=this;$.ajax({url:$(e).attr("href"),type:"get",dataType:"html",success:function(t){html=(html=(html=(html=(html=(html=(html='