/*! For license information please see v5.js.LICENSE.txt */ (()=>{var __webpack_modules__={20:t=>{const e=function(t,e){for(var n=e.split(","),i=t.className,o=0;o{var i,o,r=n(814),s=n(471),a=0,c=0;t.exports=function(t,e,n){var l=e&&n||0,u=e||[],d=(t=t||{}).node||i,h=void 0!==t.clockseq?t.clockseq:o;if(null==d||null==h){var f=r();null==d&&(d=i=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==h&&(h=o=16383&(f[6]<<8|f[7]))}var p=void 0!==t.msecs?t.msecs:(new Date).getTime(),m=void 0!==t.nsecs?t.nsecs:c+1,g=p-a+(m-c)/1e4;if(g<0&&void 0===t.clockseq&&(h=h+1&16383),(g<0||p>a)&&void 0===t.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=p,c=m,o=h;var b=(1e4*(268435455&(p+=122192928e5))+m)%4294967296;u[l++]=b>>>24&255,u[l++]=b>>>16&255,u[l++]=b>>>8&255,u[l++]=255&b;var v=p/4294967296*1e4&268435455;u[l++]=v>>>8&255,u[l++]=255&v,u[l++]=v>>>24&15|16,u[l++]=v>>>16&255,u[l++]=h>>>8|128,u[l++]=255&h;for(var y=0;y<6;++y)u[l+y]=d[y];return e||s(u)}},44:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(20),o=function(t,e){return this.root=t,this.options={tick:!1,ended:!1,urgent:!1,live:!1},this.config=Object.assign({type:"dates",interval:null,start_date:null,end_date:null,urgent_date:null,headline:"",support_text:"",hideOnEnd:!1,aggregateDays:!1},e),this.dates={now:null,start:null,end:null,urgent:null},this.fragments={d:null,H:null,i:null,s:null},this.interval=null,this.init(),this};o.prototype.init=function(){i.addClass(this.root,"initialized"),this.initDates(),this.initFragments(),this.initClock(),this.start()},o.prototype.initDates=function(){if(this.dates.now=new Date,"dates"===this.config.type&&(this.dates.start=new Date(this.config.start_date),this.dates.end=new Date(this.config.end_date),this.dates.urgent=new Date(this.config.urgent_date)),"relative"===this.config.type){var t=new Date;t.setHours(0),t.setMinutes(0),t.setSeconds(0);var e=new Date;e.setHours(23),e.setMinutes(59),e.setSeconds(59),this.dates.start=new Date(t),this.dates.end=new Date(e),this.dates.urgent=new Date(e)}if("interval"===this.config.type&&this.config.interval){var n,i,o=["bn",this.root.id].join("-"),r=("; "+document.cookie).split(o+"="),s=2===r.length?r.pop().split(";").shift():null;if(s){var a=s.split("/");n=new Date(parseInt(a[0],10)),i=new Date(parseInt(a[1],10))}else n=new Date,i=new Date(Date.now()+60*this.config.interval*1e3),document.cookie=o+"="+[n.getTime(),i.getTime()].join("/")+"; SameSite=Lax; path=/";this.dates.start=new Date(n),this.dates.end=new Date(i),this.dates.urgent=new Date(i)}this.options.live=!0,this.notStartedYet()?(this.options.tick=!1,this.options.live=!1,this.hideAssociate("not-started"),this.hide()):this.limitReached()&&(this.options.tick=!1,this.options.ended=!0,this.hideOnEnd())},o.prototype.initFragments=function(){this.fragments={d:this.root.querySelector(".beon-clock__fragment-d, .bn-clock__frag-d"),H:this.root.querySelector(".beon-clock__fragment-H, .bn-clock__frag-H"),i:this.root.querySelector(".beon-clock__fragment-i, .bn-clock__frag-i"),s:this.root.querySelector(".beon-clock__fragment-s, .bn-clock__frag-s")},this.config.aggregateDays&&(i.addClass(this.root,"beon-clock--without-days"),this.fragments.d.style.display="none")},o.prototype.initClock=function(){this.updateFragments()},o.prototype.diff=function(t,e){var n,i,o;return o={d:0,H:0,i:0,s:0},this.limitReached()?(this.end(),this.dates.diff=o,o):((n=t.getTime()-e.getTime())>0&&(i=n/1e3,o.d=Math.floor(i/86400),o.H=Math.floor((i-86400*o.d)/3600),o.i=Math.floor((i-86400*o.d-3600*o.H)/60),o.s=Math.floor(i-86400*o.d-3600*o.H-60*o.i),this.config.aggregateDays&&(o.H=o.H+24*o.d,o.d=0)),this.dates.diff=o,o)},o.prototype.notStartedYet=function(){var t=this.dates.now.getTime()/1e3+100;return this.dates.start.getTime()/1e3>t},o.prototype.limitReached=function(){return this.dates.now.getTime()>this.dates.end.getTime()},o.prototype.updateNow=function(){this.dates.now=new Date},o.prototype.urgentReached=function(){return this.dates.urgent?this.dates.now.getTime()>this.dates.urgent.getTime():0},o.prototype.updateFragments=function(){for(var t=Object.entries(this.diff(this.dates.end,this.dates.now)),e=0;ee?t.pength:e,(t=n.repeat(e)+t).substr(t.length-e)};const r=o;var s=function(){this.componentRootSelector=".beon-clock",this.initComponents(),this.bindEvents()};const a=s;s.prototype.bindEvents=function(){document.addEventListener("DOMContentLoaded",this.initComponents.bind(this)),document.addEventListener("beon.buddy.elements.handle.item.inject.success",this.initComponentFromInjection.bind(this)),document.addEventListener("beon.buddy.inject.after",this.initComponentFromInjection.bind(this))},s.prototype.initComponents=function(){var t=document.querySelectorAll(this.componentRootSelector+":not(.initialized)");Array.prototype.slice.call(t).forEach(function(t){this.initComponent(t)}.bind(this))},s.prototype.initComponentFromInjection=function(t){var e=t.detail.container,n=e?e.querySelector(this.componentRootSelector+":not(.initialized)"):void 0;n&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",function(){this.initComponent(n)}.bind(this)):this.initComponent(n))},s.prototype.initComponent=function(t){try{window.beon_init_log=window.beon_init_log||[];var e=t.getAttribute("data-config"),n=(t.id,JSON.parse(e));new r(t,n)}catch(t){console.log("failed to build component "+this.componentRootSelector,t)}},window&&(window.BeonClockInitializer=s)},83:(t,e,n)=>{"use strict";const i=n(447),o=n(805),r=n(996),s=n(674),a=n(442),c=n(176),l=Object.prototype.toString,{Z_NO_FLUSH:u,Z_FINISH:d,Z_OK:h,Z_STREAM_END:f,Z_NEED_DICT:p,Z_STREAM_ERROR:m,Z_DATA_ERROR:g,Z_MEM_ERROR:b}=n(681);function v(t){this.options=o.assign({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;let n=i.inflateInit2(this.strm,e.windowBits);if(n!==h)throw new Error(s[n]);if(this.header=new c,i.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=r.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=i.inflateSetDictionary(this.strm,e.dictionary),n!==h)))throw new Error(s[n])}function y(t,e){const n=new v(e);if(n.push(t),n.err)throw n.msg||s[n.err];return n.result}v.prototype.push=function(t,e){const n=this.strm,o=this.options.chunkSize,s=this.options.dictionary;let a,c,v;if(this.ended)return!1;for(c=e===~~e?e:!0===e?d:u,"[object ArrayBuffer]"===l.call(t)?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;;){for(0===n.avail_out&&(n.output=new Uint8Array(o),n.next_out=0,n.avail_out=o),a=i.inflate(n,c),a===p&&s&&(a=i.inflateSetDictionary(n,s),a===h?a=i.inflate(n,c):a===g&&(a=p));n.avail_in>0&&a===f&&n.state.wrap>0&&0!==t[n.next_in];)i.inflateReset(n),a=i.inflate(n,c);switch(a){case m:case g:case p:case b:return this.onEnd(a),this.ended=!0,!1}if(v=n.avail_out,n.next_out&&(0===n.avail_out||a===f))if("string"===this.options.to){let t=r.utf8border(n.output,n.next_out),e=n.next_out-t,i=r.buf2string(n.output,t);n.next_out=e,n.avail_out=o-e,e&&n.output.set(n.output.subarray(t,t+e),0),this.onData(i)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(a!==h||0!==v){if(a===f)return a=i.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(0===n.avail_in)break}}return!0},v.prototype.onData=function(t){this.chunks.push(t)},v.prototype.onEnd=function(t){t===h&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},t.exports.Inflate=v,t.exports.inflate=y,t.exports.inflateRaw=function(t,e){return(e=e||{}).raw=!0,y(t,e)},t.exports.ungzip=y,t.exports.constants=n(681)},86:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(629);function o(t){return this.engine=t,this.log=(0,i.A)("transport",this.engine.debug),this.account=void 0,this.host=void 0,this.headers={"Content-Type":"application/json"},this}o.prototype.api=function(t){var e=this.engine.getApiBase(t);if(!e)throw new Error("Invalid api endpoint: "+t);return this.host=e,this.log("transport instance api set to "+e),this},o.prototype.setAccount=function(t){this.account=t},o.prototype.driver=function(){return new XMLHttpRequest},o.prototype.setHeader=function(t,e){return this.headers[t]=e,this},o.prototype.getEngineHeaders=function(t){return this.engine.getHeaders&&(this.headers=Object.assign({},this.engine.getHeaders(),this.headers)),this.headers},o.prototype.applyHeaders=function(t){for(var e in this.getEngineHeaders(),this.headers)t.setRequestHeader(e,this.headers[e]);return this},o.prototype.validateInstance=function(){if(void 0===this.account)throw new Error("account not initialized");if(void 0===this.host)throw new Error("api not initialized")},o.prototype.send=function(t,e,n){var i=this,o=Math.floor(Math.random()*(new Date).getTime()),r=this.driver();this.validateInstance(),r.open("POST",this.host+t+"?"+o),this.applyHeaders(r),r.onreadystatechange=function(){i.handleReadyStateChange(r,n)},r.send(e)},o.prototype.get=function(t,e,n){var i=this,o=this.driver();this.validateInstance(),o.open("GET",[this.host,t].join("/")+(e?"?"+e:"")),this.applyHeaders(o),o.onreadystatechange=function(){i.handleReadyStateChange(o,n)},o.send()},o.prototype.handleReadyStateChange=function(t,e){if("function"==typeof e)return 4===t.readyState?200===t.status?e(null,t,t.responseText):(t.status,e(t.status,t,null)):void 0}},144:function(t){t.exports=function(){"use strict";function t(){return t=Object.assign||function(t){for(var e=1;e1,s={elements_selector:".lazy",container:n||e?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_bg_hidpi:"bg-hidpi",data_bg_multi:"bg-multi",data_bg_multi_hidpi:"bg-multi-hidpi",data_bg_set:"bg-set",data_poster:"poster",class_applied:"applied",class_loading:"loading",class_loaded:"loaded",class_error:"error",class_entered:"entered",class_exited:"exited",unobserve_completed:!0,unobserve_entered:!1,cancel_on_exit:!0,callback_enter:null,callback_exit:null,callback_applied:null,callback_loading:null,callback_loaded:null,callback_error:null,callback_finish:null,callback_cancel:null,use_native:!1,restore_on_error:!1},a=function(e){return t({},s,e)},c=function(t,e){var n,i="LazyLoad::Initialized",o=new t(e);try{n=new CustomEvent(i,{detail:{instance:o}})}catch(t){(n=document.createEvent("CustomEvent")).initCustomEvent(i,!1,!1,{instance:o})}window.dispatchEvent(n)},l="src",u="srcset",d="sizes",h="poster",f="llOriginalAttrs",p="data",m="loading",g="loaded",b="applied",v="error",y="native",_=function(t,e){return t.getAttribute("data-"+e)},w=function(t){return _(t,"ll-status")},E=function(t,e){return function(t,e,n){var i="data-ll-status";null!==n?t.setAttribute(i,n):t.removeAttribute(i)}(t,0,e)},k=function(t){return E(t,null)},x=function(t){return null===w(t)},A=function(t){return w(t)===y},S=[m,g,b,v],C=function(t,e,n,i){t&&"function"==typeof t&&(void 0===i?void 0===n?t(e):t(e,n):t(e,n,i))},L=function(t,e){""!==e&&(o?t.classList.add(e):t.className+=(t.className?" ":"")+e)},T=function(t,e){""!==e&&(o?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\s+)"+e+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,""))},O=function(t){return t.llTempImage},I=function(t,e){if(e){var n=e._observer;n&&n.unobserve(t)}},R=function(t,e){t&&(t.loadingCount+=e)},z=function(t,e){t&&(t.toLoadCount=e)},B=function(t){for(var e,n=[],i=0;e=t.children[i];i+=1)"SOURCE"===e.tagName&&n.push(e);return n},D=function(t,e){var n=t.parentNode;n&&"PICTURE"===n.tagName&&B(n).forEach(e)},M=function(t,e){B(t).forEach(e)},N=[l],P=[l,h],j=[l,u,d],U=[p],H=function(t){return!!t[f]},q=function(t){return t[f]},F=function(t){return delete t[f]},Z=function(t,e){if(!H(t)){var n={};e.forEach(function(e){n[e]=t.getAttribute(e)}),t[f]=n}},W=function(t,e){if(H(t)){var n=q(t);e.forEach(function(e){!function(t,e,n){n?t.setAttribute(e,n):t.removeAttribute(e)}(t,e,n[e])})}},$=function(t,e,n){L(t,e.class_applied),E(t,b),n&&(e.unobserve_completed&&I(t,e),C(e.callback_applied,t,n))},K=function(t,e,n){L(t,e.class_loading),E(t,m),n&&(R(n,1),C(e.callback_loading,t,n))},G=function(t,e,n){n&&t.setAttribute(e,n)},V=function(t,e){G(t,d,_(t,e.data_sizes)),G(t,u,_(t,e.data_srcset)),G(t,l,_(t,e.data_src))},Q={IMG:function(t,e){D(t,function(t){Z(t,j),V(t,e)}),Z(t,j),V(t,e)},IFRAME:function(t,e){Z(t,N),G(t,l,_(t,e.data_src))},VIDEO:function(t,e){M(t,function(t){Z(t,N),G(t,l,_(t,e.data_src))}),Z(t,P),G(t,h,_(t,e.data_poster)),G(t,l,_(t,e.data_src)),t.load()},OBJECT:function(t,e){Z(t,U),G(t,p,_(t,e.data_src))}},J=["IMG","IFRAME","VIDEO","OBJECT"],Y=function(t,e){!e||function(t){return t.loadingCount>0}(e)||function(t){return t.toLoadCount>0}(e)||C(t.callback_finish,e)},X=function(t,e,n){t.addEventListener(e,n),t.llEvLisnrs[e]=n},tt=function(t,e,n){t.removeEventListener(e,n)},et=function(t){return!!t.llEvLisnrs},nt=function(t){if(et(t)){var e=t.llEvLisnrs;for(var n in e){var i=e[n];tt(t,n,i)}delete t.llEvLisnrs}},it=function(t,e,n){!function(t){delete t.llTempImage}(t),R(n,-1),function(t){t&&(t.toLoadCount-=1)}(n),T(t,e.class_loading),e.unobserve_completed&&I(t,n)},ot=function(t,e,n){var i=O(t)||t;et(i)||function(t,e,n){et(t)||(t.llEvLisnrs={});var i="VIDEO"===t.tagName?"loadeddata":"load";X(t,i,e),X(t,"error",n)}(i,function(o){!function(t,e,n,i){var o=A(e);it(e,n,i),L(e,n.class_loaded),E(e,g),C(n.callback_loaded,e,i),o||Y(n,i)}(0,t,e,n),nt(i)},function(o){!function(t,e,n,i){var o=A(e);it(e,n,i),L(e,n.class_error),E(e,v),C(n.callback_error,e,i),n.restore_on_error&&W(e,j),o||Y(n,i)}(0,t,e,n),nt(i)})},rt=function(t,e,n){!function(t){return J.indexOf(t.tagName)>-1}(t)?function(t,e,n){!function(t){t.llTempImage=document.createElement("IMG")}(t),ot(t,e,n),function(t){H(t)||(t[f]={backgroundImage:t.style.backgroundImage})}(t),function(t,e,n){var i=_(t,e.data_bg),o=_(t,e.data_bg_hidpi),s=r&&o?o:i;s&&(t.style.backgroundImage='url("'.concat(s,'")'),O(t).setAttribute(l,s),K(t,e,n))}(t,e,n),function(t,e,n){var i=_(t,e.data_bg_multi),o=_(t,e.data_bg_multi_hidpi),s=r&&o?o:i;s&&(t.style.backgroundImage=s,$(t,e,n))}(t,e,n),function(t,e,n){var i=_(t,e.data_bg_set);if(i){var o=i.split("|"),r=o.map(function(t){return"image-set(".concat(t,")")});t.style.backgroundImage=r.join(),""===t.style.backgroundImage&&(r=o.map(function(t){return"-webkit-image-set(".concat(t,")")}),t.style.backgroundImage=r.join()),$(t,e,n)}}(t,e,n)}(t,e,n):function(t,e,n){ot(t,e,n),function(t,e,n){var i=Q[t.tagName];i&&(i(t,e),K(t,e,n))}(t,e,n)}(t,e,n)},st=function(t){t.removeAttribute(l),t.removeAttribute(u),t.removeAttribute(d)},at=function(t){D(t,function(t){W(t,j)}),W(t,j)},ct={IMG:at,IFRAME:function(t){W(t,N)},VIDEO:function(t){M(t,function(t){W(t,N)}),W(t,P),t.load()},OBJECT:function(t){W(t,U)}},lt=["IMG","IFRAME","VIDEO"],ut=function(t){return t.use_native&&"loading"in HTMLImageElement.prototype},dt=function(t){return Array.prototype.slice.call(t)},ht=function(t){return t.container.querySelectorAll(t.elements_selector)},ft=function(t){return function(t){return w(t)===v}(t)},pt=function(t,e){return function(t){return dt(t).filter(x)}(t||ht(e))},mt=function(t,n){var o=a(t);this._settings=o,this.loadingCount=0,function(t,e){i&&!ut(t)&&(e._observer=new IntersectionObserver(function(n){!function(t,e,n){t.forEach(function(t){return function(t){return t.isIntersecting||t.intersectionRatio>0}(t)?function(t,e,n,i){var o=function(t){return S.indexOf(w(t))>=0}(t);E(t,"entered"),L(t,n.class_entered),T(t,n.class_exited),function(t,e,n){e.unobserve_entered&&I(t,n)}(t,n,i),C(n.callback_enter,t,e,i),o||rt(t,n,i)}(t.target,t,e,n):function(t,e,n,i){x(t)||(L(t,n.class_exited),function(t,e,n,i){n.cancel_on_exit&&function(t){return w(t)===m}(t)&&"IMG"===t.tagName&&(nt(t),function(t){D(t,function(t){st(t)}),st(t)}(t),at(t),T(t,n.class_loading),R(i,-1),k(t),C(n.callback_cancel,t,e,i))}(t,e,n,i),C(n.callback_exit,t,e,i))}(t.target,t,e,n)})}(n,t,e)},function(t){return{root:t.container===document?null:t.container,rootMargin:t.thresholds||t.threshold+"px"}}(t)))}(o,this),function(t,n){e&&(n._onlineHandler=function(){!function(t,e){var n;(n=ht(t),dt(n).filter(ft)).forEach(function(e){T(e,t.class_error),k(e)}),e.update()}(t,n)},window.addEventListener("online",n._onlineHandler))}(o,this),this.update(n)};return mt.prototype={update:function(t){var e,o,r=this._settings,s=pt(t,r);z(this,s.length),!n&&i?ut(r)?function(t,e,n){t.forEach(function(t){-1!==lt.indexOf(t.tagName)&&function(t,e,n){t.setAttribute("loading","lazy"),ot(t,e,n),function(t,e){var n=Q[t.tagName];n&&n(t,e)}(t,e),E(t,y)}(t,e,n)}),z(n,0)}(s,r,this):(o=s,function(t){t.disconnect()}(e=this._observer),function(t,e){e.forEach(function(e){t.observe(e)})}(e,o)):this.loadAll(s)},destroy:function(){this._observer&&this._observer.disconnect(),e&&window.removeEventListener("online",this._onlineHandler),ht(this._settings).forEach(function(t){F(t)}),delete this._observer,delete this._settings,delete this._onlineHandler,delete this.loadingCount,delete this.toLoadCount},loadAll:function(t){var e=this,n=this._settings;pt(t,n).forEach(function(t){I(t,e),rt(t,n,e)})},restoreAll:function(){var t=this._settings;ht(t).forEach(function(e){!function(t,e){(function(t){var e=ct[t.tagName];e?e(t):function(t){if(H(t)){var e=q(t);t.style.backgroundImage=e.backgroundImage}}(t)})(t),function(t,e){x(t)||A(t)||(T(t,e.class_entered),T(t,e.class_exited),T(t,e.class_applied),T(t,e.class_loading),T(t,e.class_loaded),T(t,e.class_error))}(t,e),k(t),F(t)}(e,t)})}},mt.load=function(t,e){var n=a(e);rt(t,n)},mt.resetStatus=function(t){k(t)},e&&function(t,e){if(e)if(e.length)for(var n,i=0;n=e[i];i+=1)c(t,n);else c(t,e)}(mt,window.lazyLoadOptions),mt}()},167:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(20),o=function(t,e){return this.root=t,this.options={is_dismissed:!1,uuid:void 0},this.config=Object.assign({auto_dismiss:5,allow_dismiss:!0,allow_reopen:!0,reopen_after:0,dismiss_label:"Dispensar",dismiss_style:"text"},e),this.init(),this};o.prototype.init=function(){this.root&&(i.addClass(this.root,"initialized"),this.options.uuid=this.root.parentNode.id,this.initStoredData(),this.initDismissBehaviour(),this.initCtaClose())},o.prototype.initStoredData=function(){var t="www.dpaschoal.com.br"===window.location.host;window.localStorage&&!t?this.options.is_dismissed=window.localStorage.getItem([this.options.uuid,"dismissed"].join("_"))||!1:console.warn("storage unreachable")},o.prototype.setStoredData=function(t,e){window.localStorage?window.localStorage.setItem([this.options.uuid,t].join("_"),e):console.warn("storage unreachable")},o.prototype.initDismissBehaviour=function(){return this.config.allow_dismiss&&this.buildDismissControl(),this.config.auto_dismiss>0&&this.initAutoDismiss(),this.options.is_dismissed?this.dismiss():this.show()},o.prototype.buildDismissControl=function(){var t=document.createElement("span");t.innerText=this.config.dismiss_label,t.className=["beon-notificacao__dismiss","beon-notificacao__dismiss--"+this.config.dismiss_style].join(" "),this.root.append(t),t.addEventListener("click",this.dismiss.bind(this))},o.prototype.initAutoDismiss=function(){this.setDismissTimeout(this.config.auto_dismiss),this.root.addEventListener("mouseenter",function(t){window.clearTimeout(this.root_mouseover_debounce),this.root_mouseover_debounce=window.setTimeout(function(){this.unsetDismissTimeout()}.bind(this),300)}.bind(this)),this.root.addEventListener("mouseleave",function(t){window.clearTimeout(this.root_mouseout_debounce),this.root_mouseout_debounce=window.setTimeout(function(){this.config.allow_dismiss||this.setDismissTimeout(this.config.auto_dismiss)}.bind(this),300)}.bind(this))},o.prototype.setDismissTimeout=function(t){this.options.dismiss_timeout=window.setTimeout(this.dismiss.bind(this),1e3*t+2)},o.prototype.unsetDismissTimeout=function(){window.clearTimeout(this.options.dismiss_timeout)},o.prototype.dismiss=function(t){i.addClass(this.root,"beon-notificacao--dismissed"),i.removeClass(this.root,"beon-notificacao--opened"),i.display(this.root,"none"),t&&this.setStoredData("dismissed",!0)},o.prototype.show=function(){if(i.hasClass(this.root,"bn--none"))this.dismiss();else{i.removeClass(this.root,"beon-notificacao--dismissed"),i.addClass(this.root,"beon-notificacao--opened"),i.display(this.root,"block");var t=new CustomEvent("beon.notification.initialized",{detail:{element:this.root}});document.dispatchEvent(t)}},o.prototype.initCtaClose=function(){var t=this.root.querySelector(".beon-notificacao__cta");t&&t.href.indexOf("#close")>-1&&t.addEventListener("click",function(t){t.preventDefault(),t.stopPropagation(),this.dismiss()}.bind(this))},o.prototype.display=function(t,e){window.clearTimeout(this.options.displayTimeout),this.options.displayTimeout=window.setTimeout(()=>{i.display(t,e)},1e3)};const r=o;var s=function(){return this.componentRootSelector=".beon-notificacao",this.initComponents(),this.bindEvents(),this};const a=s;s.prototype.bindEvents=function(){document.addEventListener("DOMContentLoaded",this.initComponents.bind(this)),document.addEventListener("beon.buddy.elements.handle.item.inject.success",this.initComponentFromInjection.bind(this)),document.addEventListener("beon.buddy.inject.after",this.initComponentFromInjection.bind(this))},s.prototype.initComponents=function(){var t=document.querySelectorAll(this.componentRootSelector+":not(.initialized)");Array.prototype.slice.call(t).forEach(function(t){this.initComponent(t)}.bind(this))},s.prototype.initComponentFromInjection=function(t){var e=t.detail.container,n=e?e.querySelector(this.componentRootSelector+":not(.initialized)"):void 0;n&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",function(){this.initComponent(n)}.bind(this)):this.initComponent(n))},s.prototype.initComponent=function(t){try{var e=t.getAttribute("data-config"),n=JSON.parse(e);new Promise(function(e,i){e(new r(t,n))})}catch(t){console.log("failed to build component "+this.componentRootSelector,t)}},window&&(window.BeonNotificationInitializer=s)},171:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(414),o=n.n(i),r=n(629);function s(t,e){return this.engine=t,this.log=(0,r.A)("tracker",this.engine.debug),this.parser=e,this}s.prototype.init=function(){return this.consumeTrackQueue(),this},s.prototype.consumeTrackQueue=function(){this.engine.getTrackQueue().consume(this.track.bind(this))},s.prototype.track=function(t){var e=t.shift(),n=t.shift(),i=t.shift();switch(/^(cart|customer)/i.test(e)&&"update"!==n&&(i=n),e){case"pageview":this.pageview(n,i);break;case"cart_update":case"cart":this.cartUpdate(i);break;case"customer_update":case"customer":this.customerUpdate(i);break;case"transaction":this.transaction(i);break;default:return void this.log("invalid method to track")}this.engine.dispatchEvent("tracker.dispatch.done",{eventType:e,type:n})},s.prototype.pageview=function(t,e){var n;n=e&&"function"==typeof e?e():e||this.parser.parse(t);var i={event_id:o().v4(),timestamp:Date.now(),type:"pageview",payload:Object.assign({pageType:t,title:document.title,url:window.location.href,referer:document.referrer,vw:window.innerWidth,vh:window.innerHeight,hc:Array.from(document.querySelector("html").classList).join(", "),bc:Array.from(document.querySelector("body").classList).join(", ")},n)};beon("send","event",i),this.log(i)},s.prototype.cartUpdate=function(t){var e;e=t&&"function"==typeof t?t():t||this.parser.parse("cart");var n={event_id:o().v4(),timestamp:Date.now(),type:"cart",payload:e};beon("send","event",n),this.log(n)},s.prototype.customerUpdate=function(t){var e;e=t&&"function"==typeof t?t():t||this.parser.parse("customer");var n={event_id:o().v4(),timestamp:Date.now(),type:"customer",payload:e};beon("send","event",n),this.log(n)},s.prototype.transaction=function(t){var e;e=t&&"function"==typeof t?t():t||this.parser.parse("transaction");var n={event_id:o().v4(),timestamp:Date.now(),type:"transaction",payload:e};beon("send","event",n),this.log(n)}},176:t=>{"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},223:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=function(t,e){if(this.root=t,window.beonevents&&window.beonevents[e.id])return;const[n,i,o,r,s,a,c,l,u,d,h,f]=e;return this.config=Object.assign({id:void 0,type:"flag",variant:"seal",position:"45deg",className:void 0,innerHTML:void 0,sealSrc:void 0,style:void 0,itemQuery:void 0,containerQuery:"self",placementOperation:"append",itemsIds:[]},{id:n,type:i,variant:o,position:r,className:s,innerHTML:a,sealSrc:c,style:l,itemQuery:u,containerQuery:d,placementOperation:h,itemsIds:f}),this.init(),this};i.prototype.init=function(){var t;this.root.className=this.root.className+" initialized",this.add(this.config).then(t=>{window.beonevents&&window.beonevents[this.config.id]||(window.beonevents=window.beonevents||{},window.beonevents[this.config.id]=!0)}),document.addEventListener("beon.buddy.slider.init.after",e=>{window.clearTimeout(t),t=window.setTimeout(()=>{this.add(this.config,document)},500)}),window.addEventListener("hashchange",e=>{window.clearTimeout(t),t=window.setTimeout(()=>{this.add(this.config,document)},1e3)});let e=!1;document.addEventListener("scroll",n=>{e||(window.requestAnimationFrame(()=>{e=!1,window.clearTimeout(t),t=window.setTimeout(()=>{this.add(this.config,document)},1e3)}),e=!0)})},i.prototype.add=function(t,e){return new Promise(function(n){let i;e=e||document,"bullet"===t.variant&&(i=t.innerHTML);for(var o=[],r=0;r{var o=t.itemsIds[r];let s,a;Array.isArray(o)?[s,...a]=o:s=o;var c=t.itemQuery.replace(/{id}/gi,s).trim()+":not(.bly-tag-"+this.config.id+")",l=e.querySelectorAll(c);if(l.length){if("dynamic"===t.type&&a){const[e,n]=a;e&&(t.innerHTML=i?i.replace("{x}",` ${e} `):e),t.className+=n||""}l.length&&l.forEach(e=>{var n="self"===t.containerQuery?e:e.querySelector(t.containerQuery);n||(n=e),this.append(n,t),e.classList.add("bly-tag-"+this.config.id)}),n()}else n()}));Promise.all(o).then(t=>n(t))}.bind(this))},i.prototype.append=function(t,e){var n=this.makeId(e.id);if(!this.searchDuplicate(t,n)){var i=document.createElement("div"),o=["beon-tags","beon-tag__"+n,"beon-tag__"+e.position,"beon-tag__"+e.type,"beon-tag__"+e.type+"--"+e.variant,e.className],r=e.style;e.sealSrc&&(r+="background-image: url("+e.sealSrc+");"),i.className=o.join(" "),i.setAttribute("style",r),i.innerHTML=e.innerHTML,"replace"===e.placementOperation&&(t.innerHTML=""),t.appendChild(i)}},i.prototype.makeId=function(t){return t.replace(/[^a-z0-9_]+/gi,"_").toLowerCase()},i.prototype.searchDuplicate=function(t,e){return t.querySelector(".beon-tags.beon-tag__"+e)};const o=i;var r=function(){this.componentRootSelector="meta[name^=beon-magicflag]",this.initComponents(),this.bindEvents()};const s=r;r.prototype.bindEvents=function(){document.addEventListener("DOMContentLoaded",this.initComponents.bind(this)),document.addEventListener("beon.buddy.elements.handle.item.inject.success",this.initComponentFromInjection.bind(this)),document.addEventListener("beon.buddy.inject.after",this.initComponentFromInjection.bind(this)),this.initComponents()},r.prototype.initComponents=function(){var t=document.querySelectorAll(this.componentRootSelector+":not(.initialized)");Array.prototype.slice.call(t).forEach(function(t){this.initComponent(t)}.bind(this))},r.prototype.initComponentFromInjection=function(t){var e=t.detail.container.querySelector(this.componentRootSelector+":not(.initialized)");e&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",function(){this.initComponent(e)}.bind(this)):this.initComponent(e))},r.prototype.initComponent=function(t){try{window.beon_init_log=window.beon_init_log||[];var e=t.getAttribute("data-config"),n=t.parentNode.id,i=JSON.parse(e);if(window.beon_init_log.indexOf(n)>-1)return;window.beon_init_log.push(n),new Promise(function(e,n){e(new o(t,i))})}catch(t){console.log("failed to build component "+this.componentRootSelector,t)}},window&&(window.BeonMagicFlagInitializer=r)},251:(t,e)=>{e.read=function(t,e,n,i,o){var r,s,a=8*o-i-1,c=(1<>1,u=-7,d=n?o-1:0,h=n?-1:1,f=t[e+d];for(d+=h,r=f&(1<<-u)-1,f>>=-u,u+=a;u>0;r=256*r+t[e+d],d+=h,u-=8);for(s=r&(1<<-u)-1,r>>=-u,u+=i;u>0;s=256*s+t[e+d],d+=h,u-=8);if(0===r)r=1-l;else{if(r===c)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,i),r-=l}return(f?-1:1)*s*Math.pow(2,r-i)},e.write=function(t,e,n,i,o,r){var s,a,c,l=8*r-o-1,u=(1<>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:r-1,p=i?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),(e+=s+d>=1?h/c:h*Math.pow(2,1-d))*c>=2&&(s++,c/=2),s+d>=u?(a=0,s=u):s+d>=1?(a=(e*c-1)*Math.pow(2,o),s+=d):(a=e*Math.pow(2,d-1)*Math.pow(2,o),s=0));o>=8;t[n+f]=255&a,f+=p,a/=256,o-=8);for(s=s<0;t[n+f]=255&s,f+=p,s/=256,l-=8);t[n+f-p]|=128*m}},267:t=>{var e=function(t=[],e=1){this.total=t.length,this.todo=t,this.running=[],this.complete=[],this.count=e};e.prototype.add=function(t){this.todo.push(t)},e.prototype.runNext=function(){return this.running.length{this.complete.push(this.running.shift()),this.run()}),this.running.push(t)}},t.exports=e},269:t=>{"use strict";t.exports=(t,e,n,i)=>{let o=65535&t,r=t>>>16&65535,s=0;for(;0!==n;){s=n>2e3?2e3:n,n-=s;do{o=o+e[i++]|0,r=r+o|0}while(--s);o%=65521,r%=65521}return o|r<<16}},287:(t,e,n)=>{"use strict";const i=n(526),o=n(251),r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.hp=c,e.IS=50;const s=2147483647;function a(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return d(t)}return l(t,e,n)}function l(t,e,n){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|m(t,e);let i=a(n);const o=i.write(t,e);return o!==n&&(i=i.slice(0,o)),i}(t,e);if(ArrayBuffer.isView(t))return function(t){if(V(t,Uint8Array)){const e=new Uint8Array(t);return f(e.buffer,e.byteOffset,e.byteLength)}return h(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(V(t,ArrayBuffer)||t&&V(t.buffer,ArrayBuffer))return f(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(V(t,SharedArrayBuffer)||t&&V(t.buffer,SharedArrayBuffer)))return f(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const i=t.valueOf&&t.valueOf();if(null!=i&&i!==t)return c.from(i,e,n);const o=function(t){if(c.isBuffer(t)){const e=0|p(t.length),n=a(e);return 0===n.length||t.copy(n,0,0,e),n}return void 0!==t.length?"number"!=typeof t.length||Q(t.length)?a(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function d(t){return u(t),a(t<0?0:0|p(t))}function h(t){const e=t.length<0?0:0|p(t.length),n=a(e);for(let i=0;i=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function m(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||V(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===n)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return $(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return K(t).length;default:if(o)return i?-1:$(t).length;e=(""+e).toLowerCase(),o=!0}}function g(t,e,n){let i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return O(this,e,n);case"utf8":case"utf-8":return S(this,e,n);case"ascii":return L(this,e,n);case"latin1":case"binary":return T(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function b(t,e,n){const i=t[e];t[e]=t[n],t[n]=i}function v(t,e,n,i,o){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Q(n=+n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=c.from(e,i)),c.isBuffer(e))return 0===e.length?-1:y(t,e,n,i,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):y(t,[e],n,i,o);throw new TypeError("val must be string, number or Buffer")}function y(t,e,n,i,o){let r,s=1,a=t.length,c=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,n/=2}function l(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(o){let i=-1;for(r=n;ra&&(n=a-c),r=n;r>=0;r--){let n=!0;for(let i=0;io&&(i=o):i=o;const r=e.length;let s;for(i>r/2&&(i=r/2),s=0;s>8,o=n%256,r.push(o),r.push(i);return r}(e,t.length-n),t,n,i)}function A(t,e,n){return 0===e&&n===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,n))}function S(t,e,n){n=Math.min(t.length,n);const i=[];let o=e;for(;o239?4:e>223?3:e>191?2:1;if(o+s<=n){let n,i,a,c;switch(s){case 1:e<128&&(r=e);break;case 2:n=t[o+1],128==(192&n)&&(c=(31&e)<<6|63&n,c>127&&(r=c));break;case 3:n=t[o+1],i=t[o+2],128==(192&n)&&128==(192&i)&&(c=(15&e)<<12|(63&n)<<6|63&i,c>2047&&(c<55296||c>57343)&&(r=c));break;case 4:n=t[o+1],i=t[o+2],a=t[o+3],128==(192&n)&&128==(192&i)&&128==(192&a)&&(c=(15&e)<<18|(63&n)<<12|(63&i)<<6|63&a,c>65535&&c<1114112&&(r=c))}}null===r?(r=65533,s=1):r>65535&&(r-=65536,i.push(r>>>10&1023|55296),r=56320|1023&r),i.push(r),o+=s}return function(t){const e=t.length;if(e<=C)return String.fromCharCode.apply(String,t);let n="",i=0;for(;ii.length?(c.isBuffer(e)||(e=c.from(e)),e.copy(i,o)):Uint8Array.prototype.set.call(i,e,o);else{if(!c.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(i,o)}o+=e.length}return i},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;en&&(t+=" ... "),""},r&&(c.prototype[r]=c.prototype.inspect),c.prototype.compare=function(t,e,n,i,o){if(V(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),e<0||n>t.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&e>=n)return 0;if(i>=o)return-1;if(e>=n)return 1;if(this===t)return 0;let r=(o>>>=0)-(i>>>=0),s=(n>>>=0)-(e>>>=0);const a=Math.min(r,s),l=this.slice(i,o),u=t.slice(e,n);for(let t=0;t>>=0,isFinite(n)?(n>>>=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}const o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let r=!1;for(;;)switch(i){case"hex":return _(this,t,e,n);case"utf8":case"utf-8":return w(this,t,e,n);case"ascii":case"latin1":case"binary":return E(this,t,e,n);case"base64":return k(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,n);default:if(r)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),r=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const C=4096;function L(t,e,n){let i="";n=Math.min(t.length,n);for(let o=e;oi)&&(n=i);let o="";for(let i=e;in)throw new RangeError("Trying to access beyond buffer length")}function z(t,e,n,i,o,r){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw new RangeError("Index out of range")}function B(t,e,n,i,o){q(e,i,o,t,n,7);let r=Number(e&BigInt(4294967295));t[n++]=r,r>>=8,t[n++]=r,r>>=8,t[n++]=r,r>>=8,t[n++]=r;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,n}function D(t,e,n,i,o){q(e,i,o,t,n,7);let r=Number(e&BigInt(4294967295));t[n+7]=r,r>>=8,t[n+6]=r,r>>=8,t[n+5]=r,r>>=8,t[n+4]=r;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=s,s>>=8,t[n+2]=s,s>>=8,t[n+1]=s,s>>=8,t[n]=s,n+8}function M(t,e,n,i,o,r){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(t,e,n,i,r){return e=+e,n>>>=0,r||M(t,0,n,4),o.write(t,e,n,i,23,4),n+4}function P(t,e,n,i,r){return e=+e,n>>>=0,r||M(t,0,n,8),o.write(t,e,n,i,52,8),n+8}c.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||R(t,e,this.length);let i=this[t],o=1,r=0;for(;++r>>=0,e>>>=0,n||R(t,e,this.length);let i=this[t+--e],o=1;for(;e>0&&(o*=256);)i+=this[t+--e]*o;return i},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||R(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||R(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||R(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readBigUInt64LE=Y(function(t){F(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Z(t,this.length-8);const i=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,o=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(i)+(BigInt(o)<>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Z(t,this.length-8);const i=e*2**24+65536*this[++t]+256*this[++t]+this[++t],o=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(i)<>>=0,e>>>=0,n||R(t,e,this.length);let i=this[t],o=1,r=0;for(;++r=o&&(i-=Math.pow(2,8*e)),i},c.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||R(t,e,this.length);let i=e,o=1,r=this[t+--i];for(;i>0&&(o*=256);)r+=this[t+--i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*e)),r},c.prototype.readInt8=function(t,e){return t>>>=0,e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||R(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){t>>>=0,e||R(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readBigInt64LE=Y(function(t){F(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Z(t,this.length-8);const i=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(i)<>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Z(t,this.length-8);const i=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(i)<>>=0,e||R(t,4,this.length),o.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||R(t,4,this.length),o.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||R(t,8,this.length),o.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||R(t,8,this.length),o.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,n,i){t=+t,e>>>=0,n>>>=0,i||z(this,t,e,n,Math.pow(2,8*n)-1,0);let o=1,r=0;for(this[e]=255&t;++r>>=0,n>>>=0,i||z(this,t,e,n,Math.pow(2,8*n)-1,0);let o=n-1,r=1;for(this[e+o]=255&t;--o>=0&&(r*=256);)this[e+o]=t/r&255;return e+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigUInt64LE=Y(function(t,e=0){return B(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=Y(function(t,e=0){return D(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e>>>=0,!i){const i=Math.pow(2,8*n-1);z(this,t,e,n,i-1,-i)}let o=0,r=1,s=0;for(this[e]=255&t;++o>>=0,!i){const i=Math.pow(2,8*n-1);z(this,t,e,n,i-1,-i)}let o=n-1,r=1,s=0;for(this[e+o]=255&t;--o>=0&&(r*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/r|0)-s&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigInt64LE=Y(function(t,e=0){return B(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=Y(function(t,e=0){return D(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(t,e,n){return N(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return N(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return P(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return P(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,i){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o=i+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function q(t,e,n,i,o,r){if(t>n||t3?0===e||e===BigInt(0)?`>= 0${i} and < 2${i} ** ${8*(r+1)}${i}`:`>= -(2${i} ** ${8*(r+1)-1}${i}) and < 2 ** ${8*(r+1)-1}${i}`:`>= ${e}${i} and <= ${n}${i}`,new j.ERR_OUT_OF_RANGE("value",o,t)}!function(t,e,n){F(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||Z(e,t.length-(n+1))}(i,o,r)}function F(t,e){if("number"!=typeof t)throw new j.ERR_INVALID_ARG_TYPE(e,"number",t)}function Z(t,e,n){if(Math.floor(t)!==t)throw F(t,n),new j.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new j.ERR_BUFFER_OUT_OF_BOUNDS;throw new j.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}U("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),U("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),U("ERR_OUT_OF_RANGE",function(t,e,n){let i=`The value of "${t}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=H(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=H(o)),o+="n"),i+=` It must be ${e}. Received ${o}`,i},RangeError);const W=/[^+/0-9A-Za-z-_]/g;function $(t,e){let n;e=e||1/0;const i=t.length;let o=null;const r=[];for(let s=0;s55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&r.push(239,191,189);continue}if(s+1===i){(e-=3)>-1&&r.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&r.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&r.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;r.push(n)}else if(n<2048){if((e-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function K(t){return i.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function G(t,e,n,i){let o;for(o=0;o=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function V(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Q(t){return t!=t}const J=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const i=16*n;for(let o=0;o<16;++o)e[i+o]=t[n]+t[o]}return e}();function Y(t){return"undefined"==typeof BigInt?X:t}function X(){throw new Error("BigInt not supported")}},293:t=>{"use strict";const e=16209;t.exports=function(t,n){let i,o,r,s,a,c,l,u,d,h,f,p,m,g,b,v,y,_,w,E,k,x,A,S;const C=t.state;i=t.next_in,A=t.input,o=i+(t.avail_in-5),r=t.next_out,S=t.output,s=r-(n-t.avail_out),a=r+(t.avail_out-257),c=C.dmax,l=C.wsize,u=C.whave,d=C.wnext,h=C.window,f=C.hold,p=C.bits,m=C.lencode,g=C.distcode,b=(1<>>24,f>>>=_,p-=_,_=y>>>16&255,0===_)S[r++]=65535&y;else{if(!(16&_)){if(64&_){if(32&_){C.mode=16191;break t}t.msg="invalid literal/length code",C.mode=e;break t}y=m[(65535&y)+(f&(1<<_)-1)];continue e}for(w=65535&y,_&=15,_&&(p<_&&(f+=A[i++]<>>=_,p-=_),p<15&&(f+=A[i++]<>>24,f>>>=_,p-=_,_=y>>>16&255,16&_){if(E=65535&y,_&=15,p<_&&(f+=A[i++]<c){t.msg="invalid distance too far back",C.mode=e;break t}if(f>>>=_,p-=_,_=r-s,E>_){if(_=E-_,_>u&&C.sane){t.msg="invalid distance too far back",C.mode=e;break t}if(k=0,x=h,0===d){if(k+=l-_,_2;)S[r++]=x[k++],S[r++]=x[k++],S[r++]=x[k++],w-=3;w&&(S[r++]=x[k++],w>1&&(S[r++]=x[k++]))}else{k=r-E;do{S[r++]=S[k++],S[r++]=S[k++],S[r++]=S[k++],w-=3}while(w>2);w&&(S[r++]=S[k++],w>1&&(S[r++]=S[k++]))}break}if(64&_){t.msg="invalid distance code",C.mode=e;break t}y=g[(65535&y)+(f&(1<<_)-1)]}}break}}while(i>3,i-=w,p-=w<<3,f&=(1<{"use strict";const i=n(411),o=n(805),r=n(996),s=n(674),a=n(442),c=Object.prototype.toString,{Z_NO_FLUSH:l,Z_SYNC_FLUSH:u,Z_FULL_FLUSH:d,Z_FINISH:h,Z_OK:f,Z_STREAM_END:p,Z_DEFAULT_COMPRESSION:m,Z_DEFAULT_STRATEGY:g,Z_DEFLATED:b}=n(681);function v(t){this.options=o.assign({level:m,method:b,chunkSize:16384,windowBits:15,memLevel:8,strategy:g},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;let n=i.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==f)throw new Error(s[n]);if(e.header&&i.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?r.string2buf(e.dictionary):"[object ArrayBuffer]"===c.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,n=i.deflateSetDictionary(this.strm,t),n!==f)throw new Error(s[n]);this._dict_set=!0}}function y(t,e){const n=new v(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}v.prototype.push=function(t,e){const n=this.strm,o=this.options.chunkSize;let s,a;if(this.ended)return!1;for(a=e===~~e?e:!0===e?h:l,"string"==typeof t?n.input=r.string2buf(t):"[object ArrayBuffer]"===c.call(t)?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;;)if(0===n.avail_out&&(n.output=new Uint8Array(o),n.next_out=0,n.avail_out=o),(a===u||a===d)&&n.avail_out<=6)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else{if(s=i.deflate(n,a),s===p)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),s=i.deflateEnd(this.strm),this.onEnd(s),this.ended=!0,s===f;if(0!==n.avail_out){if(a>0&&n.next_out>0)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else if(0===n.avail_in)break}else this.onData(n.output)}return!0},v.prototype.onData=function(t){this.chunks.push(t)},v.prototype.onEnd=function(t){t===f&&(this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},t.exports.Deflate=v,t.exports.deflate=y,t.exports.deflateRaw=function(t,e){return(e=e||{}).raw=!0,y(t,e)},t.exports.gzip=function(t,e){return(e=e||{}).gzip=!0,y(t,e)},t.exports.constants=n(681)},308:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(629);function o(){return this.log=(0,i.A)("Parser",!0),this}o.prototype.getDataLayer=function(t,e,n){var i=[];if(e=e||"event",window.dataLayer)for(var o=0;o{"use strict";const{_tr_init:i,_tr_stored_block:o,_tr_flush_block:r,_tr_tally:s,_tr_align:a}=n(665),c=n(269),l=n(823),u=n(674),{Z_NO_FLUSH:d,Z_PARTIAL_FLUSH:h,Z_FULL_FLUSH:f,Z_FINISH:p,Z_BLOCK:m,Z_OK:g,Z_STREAM_END:b,Z_STREAM_ERROR:v,Z_DATA_ERROR:y,Z_BUF_ERROR:_,Z_DEFAULT_COMPRESSION:w,Z_FILTERED:E,Z_HUFFMAN_ONLY:k,Z_RLE:x,Z_FIXED:A,Z_DEFAULT_STRATEGY:S,Z_UNKNOWN:C,Z_DEFLATED:L}=n(681),T=258,O=262,I=42,R=113,z=666,B=(t,e)=>(t.msg=u[e],e),D=t=>2*t-(t>4?9:0),M=t=>{let e=t.length;for(;--e>=0;)t[e]=0},N=t=>{let e,n,i,o=t.w_size;e=t.hash_size,i=e;do{n=t.head[--i],t.head[i]=n>=o?n-o:0}while(--e);e=o,i=e;do{n=t.prev[--i],t.prev[i]=n>=o?n-o:0}while(--e)};let P=(t,e,n)=>(e<{const e=t.state;let n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+n),t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))},U=(t,e)=>{r(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,j(t.strm)},H=(t,e)=>{t.pending_buf[t.pending++]=e},q=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},F=(t,e,n,i)=>{let o=t.avail_in;return o>i&&(o=i),0===o?0:(t.avail_in-=o,e.set(t.input.subarray(t.next_in,t.next_in+o),n),1===t.state.wrap?t.adler=c(t.adler,e,o,n):2===t.state.wrap&&(t.adler=l(t.adler,e,o,n)),t.next_in+=o,t.total_in+=o,o)},Z=(t,e)=>{let n,i,o=t.max_chain_length,r=t.strstart,s=t.prev_length,a=t.nice_match;const c=t.strstart>t.w_size-O?t.strstart-(t.w_size-O):0,l=t.window,u=t.w_mask,d=t.prev,h=t.strstart+T;let f=l[r+s-1],p=l[r+s];t.prev_length>=t.good_match&&(o>>=2),a>t.lookahead&&(a=t.lookahead);do{if(n=e,l[n+s]===p&&l[n+s-1]===f&&l[n]===l[r]&&l[++n]===l[r+1]){r+=2,n++;do{}while(l[++r]===l[++n]&&l[++r]===l[++n]&&l[++r]===l[++n]&&l[++r]===l[++n]&&l[++r]===l[++n]&&l[++r]===l[++n]&&l[++r]===l[++n]&&l[++r]===l[++n]&&rs){if(t.match_start=e,s=i,i>=a)break;f=l[r+s-1],p=l[r+s]}}}while((e=d[e&u])>c&&0!==--o);return s<=t.lookahead?s:t.lookahead},W=t=>{const e=t.w_size;let n,i,o;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-O)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),N(t),i+=e),0===t.strm.avail_in)break;if(n=F(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=n,t.lookahead+t.insert>=3)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=P(t,t.ins_h,t.window[o+1]);t.insert&&(t.ins_h=P(t,t.ins_h,t.window[o+3-1]),t.prev[o&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=o,o++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead{let n,i,r,s=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,a=0,c=t.strm.avail_in;do{if(n=65535,r=t.bi_valid+42>>3,t.strm.avail_outi+t.strm.avail_in&&(n=i+t.strm.avail_in),n>r&&(n=r),n>8,t.pending_buf[t.pending-2]=~n,t.pending_buf[t.pending-1]=~n>>8,j(t.strm),i&&(i>n&&(i=n),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,n-=i),n&&(F(t.strm,t.strm.output,t.strm.next_out,n),t.strm.next_out+=n,t.strm.avail_out-=n,t.strm.total_out+=n)}while(0===a);return c-=t.strm.avail_in,c&&(c>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=c&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-c,t.strm.next_in),t.strstart),t.strstart+=c,t.insert+=c>t.w_size-t.insert?t.w_size-t.insert:c),t.block_start=t.strstart),t.high_waterr&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,r+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),r>t.strm.avail_in&&(r=t.strm.avail_in),r&&(F(t.strm,t.window,t.strstart,r),t.strstart+=r,t.insert+=r>t.w_size-t.insert?t.w_size-t.insert:r),t.high_water>3,r=t.pending_buf_size-r>65535?65535:t.pending_buf_size-r,s=r>t.w_size?t.w_size:r,i=t.strstart-t.block_start,(i>=s||(i||e===p)&&e!==d&&0===t.strm.avail_in&&i<=r)&&(n=i>r?r:i,a=e===p&&0===t.strm.avail_in&&n===i?1:0,o(t,t.block_start,n,a),t.block_start+=n,j(t.strm)),a?3:1)},K=(t,e)=>{let n,i;for(;;){if(t.lookahead=3&&(t.ins_h=P(t,t.ins_h,t.window[t.strstart+3-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-O&&(t.match_length=Z(t,n)),t.match_length>=3)if(i=s(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=P(t,t.ins_h,t.window[t.strstart+3-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=P(t,t.ins_h,t.window[t.strstart+1]);else i=s(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(U(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===p?(U(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(U(t,!1),0===t.strm.avail_out)?1:2},G=(t,e)=>{let n,i,o;for(;;){if(t.lookahead=3&&(t.ins_h=P(t,t.ins_h,t.window[t.strstart+3-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){o=t.strstart+t.lookahead-3,i=s(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=o&&(t.ins_h=P(t,t.ins_h,t.window[t.strstart+3-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(U(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(i=s(t,0,t.window[t.strstart-1]),i&&U(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=s(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===p?(U(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(U(t,!1),0===t.strm.avail_out)?1:2};function V(t,e,n,i,o){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=i,this.func=o}const Q=[new V(0,0,0,0,$),new V(4,4,8,4,K),new V(4,5,16,8,K),new V(4,6,32,32,K),new V(4,4,16,16,G),new V(8,16,32,32,G),new V(8,16,128,128,G),new V(8,32,128,256,G),new V(32,128,258,1024,G),new V(32,258,258,4096,G)];function J(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=L,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),M(this.dyn_ltree),M(this.dyn_dtree),M(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),M(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),M(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Y=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.status!==I&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&e.status!==R&&e.status!==z?1:0},X=t=>{if(Y(t))return B(t,v);t.total_in=t.total_out=0,t.data_type=C;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?I:R,t.adler=2===e.wrap?0:1,e.last_flush=-2,i(e),g},tt=t=>{const e=X(t);var n;return e===g&&((n=t.state).window_size=2*n.w_size,M(n.head),n.max_lazy_match=Q[n.level].max_lazy,n.good_match=Q[n.level].good_length,n.nice_match=Q[n.level].nice_length,n.max_chain_length=Q[n.level].max_chain,n.strstart=0,n.block_start=0,n.lookahead=0,n.insert=0,n.match_length=n.prev_length=2,n.match_available=0,n.ins_h=0),e},et=(t,e,n,i,o,r)=>{if(!t)return v;let s=1;if(e===w&&(e=6),i<0?(s=0,i=-i):i>15&&(s=2,i-=16),o<1||o>9||n!==L||i<8||i>15||e<0||e>9||r<0||r>A||8===i&&1!==s)return B(t,v);8===i&&(i=9);const a=new J;return t.state=a,a.strm=t,a.status=I,a.wrap=s,a.gzhead=null,a.w_bits=i,a.w_size=1<et(t,e,L,15,8,S),t.exports.deflateInit2=et,t.exports.deflateReset=tt,t.exports.deflateResetKeep=X,t.exports.deflateSetHeader=(t,e)=>Y(t)||2!==t.state.wrap?v:(t.state.gzhead=e,g),t.exports.deflate=(t,e)=>{if(Y(t)||e>m||e<0)return t?B(t,v):v;const n=t.state;if(!t.output||0!==t.avail_in&&!t.input||n.status===z&&e!==p)return B(t,0===t.avail_out?_:v);const i=n.last_flush;if(n.last_flush=e,0!==n.pending){if(j(t),0===t.avail_out)return n.last_flush=-1,g}else if(0===t.avail_in&&D(e)<=D(i)&&e!==p)return B(t,_);if(n.status===z&&0!==t.avail_in)return B(t,_);if(n.status===I&&0===n.wrap&&(n.status=R),n.status===I){let e=L+(n.w_bits-8<<4)<<8,i=-1;if(i=n.strategy>=k||n.level<2?0:n.level<6?1:6===n.level?2:3,e|=i<<6,0!==n.strstart&&(e|=32),e+=31-e%31,q(n,e),0!==n.strstart&&(q(n,t.adler>>>16),q(n,65535&t.adler)),t.adler=1,n.status=R,j(t),0!==n.pending)return n.last_flush=-1,g}if(57===n.status)if(t.adler=0,H(n,31),H(n,139),H(n,8),n.gzhead)H(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),H(n,255&n.gzhead.time),H(n,n.gzhead.time>>8&255),H(n,n.gzhead.time>>16&255),H(n,n.gzhead.time>>24&255),H(n,9===n.level?2:n.strategy>=k||n.level<2?4:0),H(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(H(n,255&n.gzhead.extra.length),H(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=l(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69;else if(H(n,0),H(n,0),H(n,0),H(n,0),H(n,0),H(n,9===n.level?2:n.strategy>=k||n.level<2?4:0),H(n,3),n.status=R,j(t),0!==n.pending)return n.last_flush=-1,g;if(69===n.status){if(n.gzhead.extra){let e=n.pending,i=(65535&n.gzhead.extra.length)-n.gzindex;for(;n.pending+i>n.pending_buf_size;){let o=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+o),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>e&&(t.adler=l(t.adler,n.pending_buf,n.pending-e,e)),n.gzindex+=o,j(t),0!==n.pending)return n.last_flush=-1,g;e=0,i-=o}let o=new Uint8Array(n.gzhead.extra);n.pending_buf.set(o.subarray(n.gzindex,n.gzindex+i),n.pending),n.pending+=i,n.gzhead.hcrc&&n.pending>e&&(t.adler=l(t.adler,n.pending_buf,n.pending-e,e)),n.gzindex=0}n.status=73}if(73===n.status){if(n.gzhead.name){let e,i=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(t.adler=l(t.adler,n.pending_buf,n.pending-i,i)),j(t),0!==n.pending)return n.last_flush=-1,g;i=0}e=n.gzindexi&&(t.adler=l(t.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=91}if(91===n.status){if(n.gzhead.comment){let e,i=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(t.adler=l(t.adler,n.pending_buf,n.pending-i,i)),j(t),0!==n.pending)return n.last_flush=-1,g;i=0}e=n.gzindexi&&(t.adler=l(t.adler,n.pending_buf,n.pending-i,i))}n.status=103}if(103===n.status){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(j(t),0!==n.pending))return n.last_flush=-1,g;H(n,255&t.adler),H(n,t.adler>>8&255),t.adler=0}if(n.status=R,j(t),0!==n.pending)return n.last_flush=-1,g}if(0!==t.avail_in||0!==n.lookahead||e!==d&&n.status!==z){let i=0===n.level?$(n,e):n.strategy===k?((t,e)=>{let n;for(;;){if(0===t.lookahead&&(W(t),0===t.lookahead)){if(e===d)return 1;break}if(t.match_length=0,n=s(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(U(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===p?(U(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(U(t,!1),0===t.strm.avail_out)?1:2})(n,e):n.strategy===x?((t,e)=>{let n,i,o,r;const a=t.window;for(;;){if(t.lookahead<=T){if(W(t),t.lookahead<=T&&e===d)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(o=t.strstart-1,i=a[o],i===a[++o]&&i===a[++o]&&i===a[++o])){r=t.strstart+T;do{}while(i===a[++o]&&i===a[++o]&&i===a[++o]&&i===a[++o]&&i===a[++o]&&i===a[++o]&&i===a[++o]&&i===a[++o]&&ot.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=s(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=s(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(U(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===p?(U(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(U(t,!1),0===t.strm.avail_out)?1:2})(n,e):Q[n.level].func(n,e);if(3!==i&&4!==i||(n.status=z),1===i||3===i)return 0===t.avail_out&&(n.last_flush=-1),g;if(2===i&&(e===h?a(n):e!==m&&(o(n,0,0,!1),e===f&&(M(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),j(t),0===t.avail_out))return n.last_flush=-1,g}return e!==p?g:n.wrap<=0?b:(2===n.wrap?(H(n,255&t.adler),H(n,t.adler>>8&255),H(n,t.adler>>16&255),H(n,t.adler>>24&255),H(n,255&t.total_in),H(n,t.total_in>>8&255),H(n,t.total_in>>16&255),H(n,t.total_in>>24&255)):(q(n,t.adler>>>16),q(n,65535&t.adler)),j(t),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?g:b)},t.exports.deflateEnd=t=>{if(Y(t))return v;const e=t.state.status;return t.state=null,e===R?B(t,y):g},t.exports.deflateSetDictionary=(t,e)=>{let n=e.length;if(Y(t))return v;const i=t.state,o=i.wrap;if(2===o||1===o&&i.status!==I||i.lookahead)return v;if(1===o&&(t.adler=c(t.adler,e,n,0)),i.wrap=0,n>=i.w_size){0===o&&(M(i.head),i.strstart=0,i.block_start=0,i.insert=0);let t=new Uint8Array(i.w_size);t.set(e.subarray(n-i.w_size,n),0),e=t,n=i.w_size}const r=t.avail_in,s=t.next_in,a=t.input;for(t.avail_in=n,t.next_in=0,t.input=e,W(i);i.lookahead>=3;){let t=i.strstart,e=i.lookahead-2;do{i.ins_h=P(i,i.ins_h,i.window[t+3-1]),i.prev[t&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=t,t++}while(--e);i.strstart=t,i.lookahead=2,W(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=s,t.input=a,t.avail_in=r,i.wrap=o,g},t.exports.deflateInfo="pako deflate (from Nodeca project)"},414:(t,e,n)=>{var i=n(33),o=n(550),r=o;r.v1=i,r.v4=o,t.exports=r},442:t=>{"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},447:(t,e,n)=>{"use strict";const i=n(269),o=n(823),r=n(293),s=n(998),{Z_FINISH:a,Z_BLOCK:c,Z_TREES:l,Z_OK:u,Z_STREAM_END:d,Z_NEED_DICT:h,Z_STREAM_ERROR:f,Z_DATA_ERROR:p,Z_MEM_ERROR:m,Z_BUF_ERROR:g,Z_DEFLATED:b}=n(681),v=16180,y=16190,_=16191,w=16192,E=16194,k=16199,x=16200,A=16206,S=16209,C=16210,L=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function T(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const O=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode16211?1:0},I=t=>{if(O(t))return f;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=v,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,u},R=t=>{if(O(t))return f;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,I(t)},z=(t,e)=>{let n;if(O(t))return f;const i=t.state;return e<0?(n=0,e=-e):(n=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?f:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=n,i.wbits=e,R(t))},B=(t,e)=>{if(!t)return f;const n=new T;t.state=n,n.strm=t,n.window=null,n.mode=v;const i=z(t,e);return i!==u&&(t.state=null),i};let D,M,N=!0;const P=t=>{if(N){D=new Int32Array(512),M=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(1,t.lens,0,288,D,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(2,t.lens,0,32,M,0,t.work,{bits:5}),N=!1}t.lencode=D,t.lenbits=9,t.distcode=M,t.distbits=5},j=(t,e,n,i)=>{let o;const r=t.state;return null===r.window&&(r.wsize=1<=r.wsize?(r.window.set(e.subarray(n-r.wsize,n),0),r.wnext=0,r.whave=r.wsize):(o=r.wsize-r.wnext,o>i&&(o=i),r.window.set(e.subarray(n-i,n-i+o),r.wnext),(i-=o)?(r.window.set(e.subarray(n-i,n),0),r.wnext=i,r.whave=r.wsize):(r.wnext+=o,r.wnext===r.wsize&&(r.wnext=0),r.whaveB(t,15),t.exports.inflateInit2=B,t.exports.inflate=(t,e)=>{let n,T,I,R,z,B,D,M,N,U,H,q,F,Z,W,$,K,G,V,Q,J,Y,X=0;const tt=new Uint8Array(4);let et,nt;const it=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(O(t)||!t.output||!t.input&&0!==t.avail_in)return f;n=t.state,n.mode===_&&(n.mode=w),z=t.next_out,I=t.output,D=t.avail_out,R=t.next_in,T=t.input,B=t.avail_in,M=n.hold,N=n.bits,U=B,H=D,Y=u;t:for(;;)switch(n.mode){case v:if(0===n.wrap){n.mode=w;break}for(;N<16;){if(0===B)break t;B--,M+=T[R++]<>>8&255,n.check=o(n.check,tt,2,0),M=0,N=0,n.mode=16181;break}if(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&M)<<8)+(M>>8))%31){t.msg="incorrect header check",n.mode=S;break}if((15&M)!==b){t.msg="unknown compression method",n.mode=S;break}if(M>>>=4,N-=4,J=8+(15&M),0===n.wbits&&(n.wbits=J),J>15||J>n.wbits){t.msg="invalid window size",n.mode=S;break}n.dmax=1<>8&1),512&n.flags&&4&n.wrap&&(tt[0]=255&M,tt[1]=M>>>8&255,n.check=o(n.check,tt,2,0)),M=0,N=0,n.mode=16182;case 16182:for(;N<32;){if(0===B)break t;B--,M+=T[R++]<>>8&255,tt[2]=M>>>16&255,tt[3]=M>>>24&255,n.check=o(n.check,tt,4,0)),M=0,N=0,n.mode=16183;case 16183:for(;N<16;){if(0===B)break t;B--,M+=T[R++]<>8),512&n.flags&&4&n.wrap&&(tt[0]=255&M,tt[1]=M>>>8&255,n.check=o(n.check,tt,2,0)),M=0,N=0,n.mode=16184;case 16184:if(1024&n.flags){for(;N<16;){if(0===B)break t;B--,M+=T[R++]<>>8&255,n.check=o(n.check,tt,2,0)),M=0,N=0}else n.head&&(n.head.extra=null);n.mode=16185;case 16185:if(1024&n.flags&&(q=n.length,q>B&&(q=B),q&&(n.head&&(J=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(T.subarray(R,R+q),J)),512&n.flags&&4&n.wrap&&(n.check=o(n.check,T,q,R)),B-=q,R+=q,n.length-=q),n.length))break t;n.length=0,n.mode=16186;case 16186:if(2048&n.flags){if(0===B)break t;q=0;do{J=T[R+q++],n.head&&J&&n.length<65536&&(n.head.name+=String.fromCharCode(J))}while(J&&q>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=_;break;case 16189:for(;N<32;){if(0===B)break t;B--,M+=T[R++]<>>=7&N,N-=7&N,n.mode=A;break}for(;N<3;){if(0===B)break t;B--,M+=T[R++]<>>=1,N-=1,3&M){case 0:n.mode=16193;break;case 1:if(P(n),n.mode=k,e===l){M>>>=2,N-=2;break t}break;case 2:n.mode=16196;break;case 3:t.msg="invalid block type",n.mode=S}M>>>=2,N-=2;break;case 16193:for(M>>>=7&N,N-=7&N;N<32;){if(0===B)break t;B--,M+=T[R++]<>>16^65535)){t.msg="invalid stored block lengths",n.mode=S;break}if(n.length=65535&M,M=0,N=0,n.mode=E,e===l)break t;case E:n.mode=16195;case 16195:if(q=n.length,q){if(q>B&&(q=B),q>D&&(q=D),0===q)break t;I.set(T.subarray(R,R+q),z),B-=q,R+=q,D-=q,z+=q,n.length-=q;break}n.mode=_;break;case 16196:for(;N<14;){if(0===B)break t;B--,M+=T[R++]<>>=5,N-=5,n.ndist=1+(31&M),M>>>=5,N-=5,n.ncode=4+(15&M),M>>>=4,N-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=S;break}n.have=0,n.mode=16197;case 16197:for(;n.have>>=3,N-=3}for(;n.have<19;)n.lens[it[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,et={bits:n.lenbits},Y=s(0,n.lens,0,19,n.lencode,0,n.work,et),n.lenbits=et.bits,Y){t.msg="invalid code lengths set",n.mode=S;break}n.have=0,n.mode=16198;case 16198:for(;n.have>>24,$=X>>>16&255,K=65535&X,!(W<=N);){if(0===B)break t;B--,M+=T[R++]<>>=W,N-=W,n.lens[n.have++]=K;else{if(16===K){for(nt=W+2;N>>=W,N-=W,0===n.have){t.msg="invalid bit length repeat",n.mode=S;break}J=n.lens[n.have-1],q=3+(3&M),M>>>=2,N-=2}else if(17===K){for(nt=W+3;N>>=W,N-=W,J=0,q=3+(7&M),M>>>=3,N-=3}else{for(nt=W+7;N>>=W,N-=W,J=0,q=11+(127&M),M>>>=7,N-=7}if(n.have+q>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=S;break}for(;q--;)n.lens[n.have++]=J}}if(n.mode===S)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=S;break}if(n.lenbits=9,et={bits:n.lenbits},Y=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,et),n.lenbits=et.bits,Y){t.msg="invalid literal/lengths set",n.mode=S;break}if(n.distbits=6,n.distcode=n.distdyn,et={bits:n.distbits},Y=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,et),n.distbits=et.bits,Y){t.msg="invalid distances set",n.mode=S;break}if(n.mode=k,e===l)break t;case k:n.mode=x;case x:if(B>=6&&D>=258){t.next_out=z,t.avail_out=D,t.next_in=R,t.avail_in=B,n.hold=M,n.bits=N,r(t,H),z=t.next_out,I=t.output,D=t.avail_out,R=t.next_in,T=t.input,B=t.avail_in,M=n.hold,N=n.bits,n.mode===_&&(n.back=-1);break}for(n.back=0;X=n.lencode[M&(1<>>24,$=X>>>16&255,K=65535&X,!(W<=N);){if(0===B)break t;B--,M+=T[R++]<>G)],W=X>>>24,$=X>>>16&255,K=65535&X,!(G+W<=N);){if(0===B)break t;B--,M+=T[R++]<>>=G,N-=G,n.back+=G}if(M>>>=W,N-=W,n.back+=W,n.length=K,0===$){n.mode=16205;break}if(32&$){n.back=-1,n.mode=_;break}if(64&$){t.msg="invalid literal/length code",n.mode=S;break}n.extra=15&$,n.mode=16201;case 16201:if(n.extra){for(nt=n.extra;N>>=n.extra,N-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=16202;case 16202:for(;X=n.distcode[M&(1<>>24,$=X>>>16&255,K=65535&X,!(W<=N);){if(0===B)break t;B--,M+=T[R++]<>G)],W=X>>>24,$=X>>>16&255,K=65535&X,!(G+W<=N);){if(0===B)break t;B--,M+=T[R++]<>>=G,N-=G,n.back+=G}if(M>>>=W,N-=W,n.back+=W,64&$){t.msg="invalid distance code",n.mode=S;break}n.offset=K,n.extra=15&$,n.mode=16203;case 16203:if(n.extra){for(nt=n.extra;N>>=n.extra,N-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=S;break}n.mode=16204;case 16204:if(0===D)break t;if(q=H-D,n.offset>q){if(q=n.offset-q,q>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=S;break}q>n.wnext?(q-=n.wnext,F=n.wsize-q):F=n.wnext-q,q>n.length&&(q=n.length),Z=n.window}else Z=I,F=z-n.offset,q=n.length;q>D&&(q=D),D-=q,n.length-=q;do{I[z++]=Z[F++]}while(--q);0===n.length&&(n.mode=x);break;case 16205:if(0===D)break t;I[z++]=n.length,D--,n.mode=x;break;case A:if(n.wrap){for(;N<32;){if(0===B)break t;B--,M|=T[R++]<{if(O(t))return f;let e=t.state;return e.window&&(e.window=null),t.state=null,u},t.exports.inflateGetHeader=(t,e)=>{if(O(t))return f;const n=t.state;return 2&n.wrap?(n.head=e,e.done=!1,u):f},t.exports.inflateSetDictionary=(t,e)=>{const n=e.length;let o,r,s;return O(t)?f:(o=t.state,0!==o.wrap&&o.mode!==y?f:o.mode===y&&(r=1,r=i(r,e,n,0),r!==o.check)?p:(s=j(t,e,n,n),s?(o.mode=C,m):(o.havedict=1,u)))},t.exports.inflateInfo="pako inflate (from Nodeca project)"},471:t=>{for(var e=[],n=0;n<256;++n)e[n]=(n+256).toString(16).substr(1);t.exports=function(t,n){var i=n||0,o=e;return[o[t[i++]],o[t[i++]],o[t[i++]],o[t[i++]],"-",o[t[i++]],o[t[i++]],"-",o[t[i++]],o[t[i++]],"-",o[t[i++]],o[t[i++]],"-",o[t[i++]],o[t[i++]],o[t[i++]],o[t[i++]],o[t[i++]],o[t[i++]]].join("")}},526:(t,e)=>{"use strict";e.byteLength=function(t){var e=a(t),n=e[0],i=e[1];return 3*(n+i)/4-i},e.toByteArray=function(t){var e,n,r=a(t),s=r[0],c=r[1],l=new o(function(t,e,n){return 3*(e+n)/4-n}(0,s,c)),u=0,d=c>0?s-4:s;for(n=0;n>16&255,l[u++]=e>>8&255,l[u++]=255&e;return 2===c&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,l[u++]=255&e),1===c&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e),l},e.fromByteArray=function(t){for(var e,i=t.length,o=i%3,r=[],s=16383,a=0,c=i-o;ac?c:a+s));return 1===o?(e=t[i-1],r.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[i-2]<<8)+t[i-1],r.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),r.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)n[s]=r[s],i[r.charCodeAt(s)]=s;function a(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function l(t,e,n){for(var i,o=[],r=e;r{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>engine});var uuid__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(414),uuid__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(uuid__WEBPACK_IMPORTED_MODULE_0__),buffer__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(287),_queue__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(796),_queue__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_queue__WEBPACK_IMPORTED_MODULE_2__),_log__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(629),_analytics__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(895),_buddy__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(616),_transport__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(86),_tracker__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(171),_parser__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(308);const pako=__webpack_require__(668);function engine(){return this.env="production",this.debug=!1,this.object=window[window.beonobject],this.tag=null,this.queue=[],this.trackQueue=void 0,this.buddy=void 0,this.allowedMethods={},this.defaultMethods={create:this.create.bind(this),send:this.send.bind(this),track:this.track.bind(this),log:this.setLog.bind(this)},this.api={production:{event:"https://webfront-api-az.production.usebeon.io/events",content:"https://content-api-ext.production.usebeon.io",assets:"https://c.usebeon.io",cookie:"usebeon.io"},staging:{event:"https://webfront-api-az.production.usebeon.io/events",content:"https://content-api-az.production.usebeon.io",assets:"https://c.usebeon.io",cookie:"usebeon.io"}},this.interactionRepository={},this.account=null,this.customer_id=null,this.session_id=null,this.platform=null,this.debug=!1,this.analytics=new _analytics__WEBPACK_IMPORTED_MODULE_4__.A,this.headers={},this}engine.prototype.init=function(){this.log=(0,_log__WEBPACK_IMPORTED_MODULE_3__.A)("engine",this.debug),this.cookiedomain=this.getTagAttr("data-cookiedomain")||"",this.assetsdomain=this.getTagAttr("data-assetsdomain")||"c.usebeon.io",this.api.production.assets="https://"+this.assetsdomain;var t=this.getTagAttr("data-env");t&&["production","staging","hering.com.br"].indexOf(t)>=0&&(this.env="hering.com.br"===t?"staging":t),this.buddy=new _buddy__WEBPACK_IMPORTED_MODULE_5__.A(this),this.getTrackQueue(),this.initMethods(),this.loop(),this.inited=!0,this.log(`engine init done ${this.env}`)},engine.prototype.getQueue=function(){if(this.object&&this.object.q&&this.object.q.length){for(var t in this.object.q)this.queue.push(this.object.q[t]);this.object.q=[]}return this},engine.prototype.loop=function(){return void 0===this.interval&&this.process(),window.clearInterval(this.interval),this.interval=window.setInterval(this.process.bind(this),100),this},engine.prototype.process=function(){if(this.getQueue(),this.queue.length)for(var t=0;t=0;if(n)return"cookie"===t?n:"global"===e?n+"/core":("assets"===t&&i&&(n="https://beonassetsprdbucket.z13.web.core.windows.net"),n+"/"+this.account)},engine.prototype.getPageviewId=function(){return window.beon_pageview_id||(window.beon_pageview_id=uuid__WEBPACK_IMPORTED_MODULE_0___default().v4()),window.beon_pageview_id},engine.prototype.setLog=function(){var t=Array.prototype.slice.call(arguments).shift();this.debug=t,this.log=(0,_log__WEBPACK_IMPORTED_MODULE_3__.A)("engine",t)},engine.prototype.hasDebugFlag=function(){return/beonly-debug/i.test(window.location.href)},engine.prototype.hasDebugOffFlag=function(){return/beonly-debug-off/i.test(window.location.href)},engine.prototype.hasDebugCookie=function(){return String(this.getDebugCookie()).length},engine.prototype.initDebugMode=function(){if(this.hasDebugOffFlag())return this.debug=0,this.destroyDebugCookie(),this.setHeader("x-beon-debug",this.debug),void console.info("[bly] Modo de pré-visualização e debug desativado.");this.hasDebugFlag()&&this.setDebugCookie(),this.hasDebugCookie()&&(this.debug=this.getDebugCookie()),this.debug&&(this.createDebugControlUi(),console.info("[bly] Modo de pré-visualização e debug ativado.\nPermanecerá ativo enquanto a janela estiver aberta.")),this.setHeader("x-beon-debug",this.debug)},engine.prototype.setDebugCookie=function(){return this.debug=this.setCookie("beon-debug",this.getCookie("beon-debug",function(){return 1}.bind(this))),this.debug},engine.prototype.getDebugCookie=function(){return this.getCookie("beon-debug")},engine.prototype.destroyDebugCookie=function(){return this.setCookie("beon-debug",0,-99999)},engine.prototype.createDebugControlUi=function(){},function(){if("function"==typeof window.CustomEvent)return!1;function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}t.prototype=window.Event.prototype,window.CustomEvent=t}()},550:(t,e,n)=>{var i=n(814),o=n(471);t.exports=function(t,e,n){var r=e&&n||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var s=(t=t||{}).random||(t.rng||i)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,e)for(var a=0;a<16;++a)e[r+a]=s[a];return e||o(s)}},616:(t,e,n)=>{"use strict";n.d(e,{A:()=>_});var i=n(144),o=n.n(i),r=n(629),s=n(800),a=function(t){return this.root=t,this.init(),this};a.prototype.init=function(){this.initializePivotNavigation()},a.prototype.initializePivotNavigation=function(){var[,t]=/--with-pivot-(numbers|button)/i.exec(this.root.className)||[];if(this.controls=this.root.querySelectorAll("input[name=beon-pivot-control]"),"button"===t){var e=this.root.querySelector(".beon-showcase__pivot-control--button");if(!e)return;var n=document.querySelectorAll(".beon-showcase__pivot-wrapper .beon-showcase__pivot");n&&n.length<=1&&(e.style.display="none"),e.addEventListener("click",function(t){t.preventDefault(),this.rotatePivot(),this.rotateAnimationInterval&&window.clearTimeout(this.rotateAnimationInterval),e.classList.add("rotate"),this.rotateAnimationInterval=window.setTimeout(function(){e.classList.remove("rotate")},500);const n=new Event("beonly-pivot--changed");document.dispatchEvent(n)}.bind(this))}},a.prototype.currentPivot=function(){var t=this.root.querySelector("input[name=beon-pivot-control]:checked").className.replace("pivot--","");return parseInt(t,10)},a.prototype.rotatePivot=function(){var t=this.currentPivot(),e=this.controls[t+1]||this.controls[0];return this.controls.forEach(function(t){t.removeAttribute("checked")}),e.setAttribute("checked","checked"),e};const c=a;var l=function(){this.initializeShowcases(),this.bindEvents()};const u=l;l.prototype.bindEvents=function(){document.addEventListener("DOMContentLoaded",this.initializeShowcases.bind(this)),document.addEventListener("beon.buddy.elements.handle.item.inject.success",this.initializeShowcaseFromInjection.bind(this)),document.addEventListener("beon.buddy.inject.after",this.initializeShowcaseFromInjection.bind(this))},l.prototype.initializeShowcases=function(){var t=document.querySelectorAll(".beon-showcase:not(.pivot-initialized)");Array.prototype.slice.call(t).forEach(function(t,e){this.initializeElement(t)}.bind(this))},l.prototype.initializeShowcaseFromInjection=function(t){t.detail.element;var e=t.detail.container.querySelectorAll(".beon-showcase:not(.pivot-initialized)");e&&Array.prototype.slice.call(e).forEach(function(t,e){"loading"===document.readyState?document.addEventListener("DOMContentLoaded",function(){this.initializeElement(t)}.bind(this)):this.initializeElement(t)}.bind(this))},l.prototype.initializeElement=function(t){var e=t.className,n=t.querySelectorAll(".beon-button[data-action=buy]");n&&n.forEach(function(t){t.addEventListener("click",function(t){var e,n=t.target,i=0;do{n.classList.contains("beon-interaction__item")?e=n:n=n.parentNode,i++}while(!e||i>=10);e||console.warn("Produto associado ao CTA não localizado"),window.beone.dispatchEvent("buddy.addtocart.trigger",{element:e,sourceEvent:t})})}),/--with-pivot/i.test(e)&&(t.className=t.className+" pivot-initialized",new c(t))};var d=n(167),h=n(44),f=n(223),p=n(267),m=n.n(p);const g=["mousemove","mousedown","click","touchmove","touchstart","touchend","keydown","keypress"];class b{constructor(t,e){this.onIdleTimeout=t,this.timeout=e,this.timer=null,this.active=!1,this.resetTimer=this.resetTimer.bind(this)}activate(){this.active||this.bindEvents(),this.timer=setTimeout(this.onIdleTimeout,this.timeout),this.active=!0}deactivate(){this.active&&this.unbindEvents(),clearInterval(this.timer),this.active=!1}resetTimer(){clearInterval(this.timer),this.activate()}bindEvents(){window.addEventListener("scroll",this.resetTimer,{capture:!0,passive:!0}),window.addEventListener("load",this.resetTimer),g.forEach(t=>document.addEventListener(t,this.resetTimer))}unbindEvents(){window.removeEventListener("scroll",this.resetTimer,{capture:!0}),window.removeEventListener("load",this.resetTimer),g.forEach(t=>document.removeEventListener(t,this.resetTimer))}}var v=function(){return this.componentRootSelector=".beon-region--dialog",this.componentExitIntent=".beon-region--type-exitintent",this.dismiss_timeout=null,this.initComponents(),this.bindEvents(),this.bindExitIntent(),this};const y=v;function _(t){return this.engine=t,this.log=(0,r.A)("buddy",this.engine.debug),this.defaultPlacement={selector:"body",method:"append"},this.defaultMethods={interaction:this.interaction.bind(this)},this.assets={customjs:{type:"js",src:"/js/custom.js",scope:"account",loaded:!1,env:"all"},beoncss:{type:"css",src:"/css/beon.css",scope:"account",loaded:!1,env:"production"},defaultcss:{type:"css",src:"/css/default.css",scope:"global",loaded:!1,env:"all"}},"staging"===window.bly_tenant_assets_env&&(this.assets.customjs.src="/js/custom-staging.js",this.assets.beoncss.src="/css/beon-staging.css"),this.injectionRetryCount=120,this.injectionRetryDelay=500,this.taskQueue=new(m())([],2),this.init(),this}function w(t){var e=t.detail.region._id,n=t.detail.elements;this.handleElementsFromRegion(e,n)}let E;v.prototype.bindExitIntent=function(){document.addEventListener("beon.buddy.region.type.exitintent",function(){var t=document.querySelectorAll(this.componentExitIntent);Array.prototype.slice.call(t).forEach(function(t){this.showComponent(t)}.bind(this))}.bind(this))},v.prototype.bindInactive=function(t,e){new b(()=>this.showComponent(document.querySelector("#"+t)),Number(e)).activate()},v.prototype.showComponent=function(t){if(!this.getControlCookie(t.id)){var e=t.getAttribute("data-config-region");e&&(e=JSON.parse(e)),e.auto_dismiss&&this.setDismissTimeout(t.id,e.auto_dismiss),!1!==e.useOverlay&&(e.background_color&&t.style.setProperty("--background",e.background_color),e.opacity&&t.style.setProperty("--opacity",e.opacity));var n=t.querySelector(".beon-region");e.region_background?n.style.setProperty("--background-region",e.region_background):n.style.setProperty("--background-region","#FFF"),e.width&&e.height&&(n.style.setProperty("max-width",e.width),n.style.setProperty("max-height",e.height),n.style.setProperty("width",e.width),n.style.setProperty("height",e.height)),t.style.display="flex"}},v.prototype.bindEvents=function(){document.addEventListener("DOMContentLoaded",this.initComponents.bind(this)),document.addEventListener("beon.buddy.node.inject.success",this.initComponentFromInjection.bind(this)),document.addEventListener("beon.buddy.inject.after",this.initComponentFromInjection.bind(this))},v.prototype.initComponents=function(){var t=document.querySelectorAll(this.componentRootSelector);Array.prototype.slice.call(t).forEach(function(t){this.initComponent(t)}.bind(this))},v.prototype.initComponentFromInjection=function(t){var e=t.detail.node,n=!!/beon-region--dialog/i.test(e.className)&&e;if(n){e=n.querySelector(".beon-interaction");var i=n.querySelectorAll(".beon-container"),o=n.querySelector(".beon-region");function c(t){t.target===this&&(t.target.style.display="none")}if(!n.classList.contains("normal")){var r=n.querySelector(".beon-notificacao__basica.beon-notificacao--horizontal.bn--with-clock .beon-notificacao__headline");r&&(r.style.fontSize="1.4rem",e.appendChild(r))}if(e&&i){n.style.display="flex";var s=0;i.forEach(t=>{(s+=t.clientHeight)||(s=t.querySelector(".beon-interaction").clientHeight)});var a=s+"px";window.innerWidth<600&&(o.style.height=a,o.style.maxHeight=a),n.addEventListener("click",c)}}n&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",function(){this.initComponent(n)}.bind(this)):this.initComponent(n))},v.prototype.handleClose=function(t){document.querySelector("#"+t).style.display="none",this.setControlCookie(t),this.setClearTimeout()},v.prototype.setDismissTimeout=function(t,e){this.dismiss_timeout=window.setTimeout(()=>{this.handleClose(t)},1e3*Number(e)+2)},v.prototype.setClearTimeout=function(){clearTimeout(this.dismiss_timeout)},v.prototype.initComponent=function(t){try{var e=t.id,n=t.getAttribute("data-config-region");if(document.querySelector(".beon-dialog-wrapper--"+e))return;var i=document.createElement("div");i.setAttribute("class",t.className+" beon-dialog-wrapper--"+e),i.setAttribute("data-config-region",n),document.body.appendChild(i),i.style.display="none";var o=document.querySelector(".beon-region-modal--close");o||(o=document.createElement("button")),o.setAttribute("class","beon-region-modal--close"),o.setAttribute("data-region",t.id),o.addEventListener("click",function(){this.handleClose(e)}.bind(this)),n&&(n=JSON.parse(n)),/no-overlay/.test(n.className)||!1===n.useOverlay||i.addEventListener("click",function(t){(t.target||t.srcElement)==i&&this.handleClose(e)}.bind(this)),n.inactive_time&&this.bindInactive(t.id,n.inactive_time),setTimeout(()=>{var r=document.querySelector("#"+t.id);i.appendChild(r),r.appendChild(o),r.setAttribute("id",""),r.setAttribute("class","beon-region"),r.setAttribute("style",""),i.setAttribute("id",e),n.position&&i.setAttribute("class",i.className+" beon-region--dialog--"+n.position),n.className&&i.classList.add(n.className),n.regionPreset&&i.classList.add(n.regionPreset),!1===n.useOverlay&&i.classList.add("bnly-modal--no-overlay"),/beon-region--type-exitintent/i.test(i.className)||/beon-region--type-inactive/i.test(i.className)||this.showComponent(i)},400)}catch(t){console.log("failed to build component "+this.componentRootSelector,t)}},v.prototype.setControlCookie=function(t,e=900){const n=`beon-modal-${t}`;var i,o=window.location.hostname,r="done",s=new Date;return s.setTime(s.getTime()+1e3*e),i=n+"="+r+"; expires="+s.toUTCString()+"; domain="+o+"; path=/",document.cookie=i,r},v.prototype.getControlCookie=function(t){const e=`beon-modal-${t}`;for(var n=document.cookie.split(";"),i=null,o=0;ot._id===n);t.injectElementFromAPI(i)}},document.beonLazyLoadInstance.update())},_.prototype.initAssets=function(){for(var t in this.assets){var e=this.assets[t],n=this.engine.getApiBase("assets",e.scope),i="account"===e.scope&&"staging"===this.engine.env?"/stg":"";if(this.log(n),!e.loaded&&("development"!==this.engine.env||"all"===e.env||e.env===this.engine.env)){switch(e.type){case"js":this.buildScript(t,n+i+e.src);break;case"css":this.buildStylesheet(t,n+i+e.src)}e.loaded=!0}}return this},_.prototype.initPreviewStyleSheet=function(){var t=document.createElement("style");t.innerHTML='\n .bly-preview {\n position: relative;\n box-shadow: inset 0 0 0 10px #ffd591;\n }\n\n .bly-preview::before {\n content: "Pré-visualização";\n position: absolute;\n top: 0;\n left: 0;\n color: #666;\n display: block;\n width: fit-content;\n height: fit-content;\n line-height: 40px;\n background: #ffd591;\n padding: 0 10px;\n text-transform: uppercase;\n }\n ',document.head.appendChild(t)},_.prototype.lazyFunctionLoaded=function(t){var e=t.getAttribute("data-beon-lazy-function"),n=window.beonLazyFunctions[e];n&&n(t)},_.prototype.buildStylesheet=function(t,e){var n=document.createElement("link");return n.rel="stylesheet",n.type="text/css",n.href=e,n.id=`beon-style-${t}`,document.querySelector(`#${n.id}`)||document.querySelector("head").appendChild(n),n},_.prototype.buildScript=function(t,e){var n=document.createElement("script");return n.type="text/javascript",n.src=e,n.id=`beon-script-${t}`,document.querySelector(`#${n.id}`)||document.querySelector("head").appendChild(n),n},_.prototype.transport=function(t){return this.engine.transport().api(t)},_.prototype.interaction=function(){var t,e=this.transport("content"),n=Array.prototype.slice.call(arguments),i=n.shift(),o=n.shift(),r=n.shift();void 0!==i&&void 0!==o?(this.initAssets(),t=["content",i,o].join("/"),e.get(t,r,function(t,e,n){if(t)return console.warn("beon interaction fault: "+t);var i=JSON.parse(n);if("object"!=typeof i||null==i)return this.log("beon responded with invalid json");this.handleContentResponse(i)}.bind(this))):this.log("invalid params at interaction call")},_.prototype.serialize=function(t,e){var n,i=[];for(n in t)if(t.hasOwnProperty(n)){var o=e?e+"["+n+"]":n,r=t[n];i.push(null!==r&&"object"==typeof r?this.serialize(r,o):encodeURIComponent(o)+"="+encodeURIComponent(r))}return i.join("&")},_.prototype.getElementContent=async function(t){var e,n=this.transport("content"),i=this,o=t.request_params||{},r=i.serialize(o);return e="content/element/"+t._id+"?"+r,new Promise((o,r)=>{n.get(e,null,function(e,n,r){e&&(t.output=!1,console.warn("beon interaction fault: "+e));var s=JSON.parse(r);"object"==typeof s&&null!=s||(t.output=!1,this.log("beon responded with invalid json")),s&&s.output&&(t.output=s.output),this.engine.dispatchEvent("buddy.element.handle.item.response.success",{element:t}),i.checkRegionHaveElements(t.region_id),o(t)}.bind(this))})},_.prototype.initWindowEvents=function(){var t=this.engine;document.addEventListener("mouseout",function(e){null==e.toElement&&null==e.relatedTarget&&t.dispatchEvent("buddy.region.type.exitintent",e)})},_.prototype.initResponseEvents=function(){document.addEventListener("beon.engine.send.response",function(t){try{var e=JSON.parse(t.detail.res);e.hasOwnProperty("regions")&&this.handleContentResponse(e)}catch(t){this.log("invalid json response")}}.bind(this))},_.prototype.handleContentResponse=function(t){var e=t.regions||null,n=t.elements||null;"1e3f6274-284e-4ba0-83f0-ef8c92c69d70"===window.beone.account&&(n=n.filter(({_id:t})=>!document.querySelector(`#beon-element-${t} .beon-showcase`))),document.removeEventListener("beon.buddy.regions.handle.item.inject.success",w.bind(this)),document.addEventListener("beon.buddy.regions.handle.item.inject.success",w.bind(this)),this.handleRegions(e,n)},_.prototype.handleRegions=function(t,e){if(!t.length)return this.log("beon received an empty regions set."),!1;for(var n in this.engine.dispatchHook("regions.handle.collection.before",t),this.engine.dispatchEvent("buddy.regions.handle.collection.before",t),t)new Promise(function(i,o){var r=t[n],s=r._id,a=e.filter(function(t){return t.hasOwnProperty&&t.hasOwnProperty("_id")&&t.region_id&&t.region_id==s}).sort(function(t,e){return t.order-e.order});r.hasOwnProperty&&r.hasOwnProperty("_id")&&(a.length>0?(this.engine.dispatchEvent("buddy.regions.handle.item.before",t[n]),this.injectRegion(t[n],a)):this.log("empty region "+r._id))}.bind(this))},_.prototype.handleElementsFromRegion=function(t,e){e.forEach(function(t,e){t.index=e,this.injectElement(t)}.bind(this))},_.prototype.injectElementFromAPI=function(t){window.injectElementFromAPIListener||(window.injectElementFromAPIListener=new Date,document.addEventListener("beon.buddy.element.handle.item.response.success",function(t){e.injectElement(t.detail.element)}));var e=this;this.taskQueue.add(e.getElementContent(t)),this.taskQueue.run()},_.prototype.initInjectionEvents=function(){document.addEventListener("beon.buddy.node.inject.fail",this.injectNodeRetry.bind(this))},_.prototype.injectRegion=function(t,e){var n,i=t.placement||null,o=t._id||null,r=t.props||null;if(r||r.region_type||(r.region_type="normal"),!o||!i)return this.log("invalid region item",t);var s="beon-region-"+o,a=document.querySelector("#"+s);if(a)n=a;else{if((n=document.createElement(i.container||"div")).setAttribute("id",s),n.setAttribute("class",["beon-region",r?r.className:""].join(" ")),n.setAttribute("data-config-region",JSON.stringify(r)),"normal"!==r.region_type&&"banner"!==r.region_type&&(n.style.display="none",n.setAttribute("class","beon-region beon-region--dialog beon-region--type-"+r.region_type)),"banner"===r.region_type){n.classList.add("beon-banner-region"),n.classList.add("beon-region--type-banners");const t=document.createElement("div");t.classList.add("beon-banner-region-wrapper"),t.classList.add("beon-showcase--carousel");const e=document.createElement("div");e.classList.add("beon-banner__slides-container"),e.classList.add("beon-banner__slides");const i=document.createElement("div");i.classList.add("beon-banner-slider-frame"),i.appendChild(e),t.appendChild(i),n.appendChild(t)}n.addEventListener("beon.buddy.node.inject.success",function(){this.engine.dispatchEvent("buddy.regions.handle.item.inject.success",{region:t,elements:e})}.bind(this))}const c=(t=0)=>{const e=t+1,r=window.beone.stabilityCheckerTimeout?window.beone.stabilityCheckerTimeout:1e3;if(e>20)return;const s=i.selector||null;s&&(document.querySelector(s)?setTimeout(()=>{document.querySelector(s)&&this.injectNode("region",o,n,i,!0,!0)},r):setTimeout(()=>c(e),100))};window.beone.regionStabilityCheck?c():this.injectNode("region",o,n,i,!0,!0)},_.prototype.injectElement=function(t){return new Promise(function(e,n){var i=t._id||null;if(!i)return this.log("invalid element item",t);var o={selector:"#beon-region-"+t.region_id,operation:"append"},r="beon-element-"+i,s=document.querySelector("#"+r);s&&s.parentNode.removeChild(s);var a=document.createElement("div");if(a.setAttribute("id",r),a.setAttribute("data-type",t.template.name),a.setAttribute("data-only-id",i),a.setAttribute("class","beon-container"),t.props&&t.props.isPreview&&a.classList.add("bly-preview"),a.style.order=t.props&&t.props.order?t.props.order:Number(t.index+1),t.output)a.innerHTML=t.output;else{if(!1===t.output)return void a.remove();document.querySelector(`#bn-autocomplete-dynamic-region #beon-region-${t.region_id}`)?this.injectElementFromAPI(t):(a.setAttribute("class","beon-container beon-lazy beon-skeleton beon-skeleton-ball"),a.setAttribute("data-beon-lazy-function","getElement"),a.innerHTML="",window.beone.element_inject=window.beone.element_inject||[],window.beone.element_inject.push(t))}a.addEventListener("click",this.handleInteraction.bind(this)),this.bindEventAnchor(a),t.output&&a.addEventListener("beon.buddy.node.inject.success",function(e){this.engine.dispatchEvent("buddy.elements.handle.item.inject.success",{element:t,container:a})}.bind(this)),e(this.injectNode("element",i,a,o,!1))}.bind(this))},_.prototype.checkRegionHaveElements=function(t){var e=document.querySelector("#beon-region-"+t).querySelectorAll(".beon-container");for(const n of e)null!=n.innerHTML&&""!=n.innerHTML&&this.engine.dispatchEvent(`buddy.node.inject.region.${t}.replace`,{})},_.prototype.injectNode=function(t,e,n,i,o,r){return new Promise(function(s,a){this.log(`injectNode promise set for ${t} ${e}`);var c=i.operation||null,l=i.selector||null,u=i.replace||!1;if(!c||!l)throw this.log(i),new Error("insuficient arguments to place node on DOM");var d=document.querySelector(i.selector);if(!d){if(this.log("node insertion point not found at "+i.selector),!o)throw new Error("node injection fail");return this.log("sending retry event"),this.engine.dispatchEvent("buddy.node.inject.fail",{reason:"placement not found",type:t,id:e,node:n,placement:i,retryOnFailure:o,removeConflicts:r}),!1}if(n.getAttribute("id")&&document.querySelector("#"+n.getAttribute("id"))&&r){var h=document.querySelector("#"+n.getAttribute("id"));h.parentNode.removeChild(h),this.log("conflict removed "+n.getAttribute("id"))}if(/beon-region--dialog/.test(d.className)&&d.querySelector(".beon-region")&&(d=d.querySelector(".beon-region")),/beon-region--type-banners/.test(d.className)){if(n){var f=n.querySelector(".bn-banner");f&&f.classList.add("bly-banner")}d=d.querySelector(".beon-banner__slides-container")}switch("append"!=c&&"prepend"!=c||!u||(d.innerHTML="",c="append"),c){case"append":d.appendChild(n);break;case"prepend":d.insertBefore(n,d.firstChild);break;case"before":d.parentNode.insertBefore(n,d);break;case"after":d.parentNode.insertBefore(n,d.nextSibling);break;default:this.log("invalid insertion method")}"before"!=c&&"after"!=c||!u||document.addEventListener(`beon.buddy.node.inject.region.${e}.replace`,function(){document.querySelector("."+d.className)&&d.parentNode.removeChild(d)}),this.engine.dispatchEvent("buddy.node.inject.success",{type:t,id:e,node:n,placement:i,retryOnFailure:o,removeConflicts:r}),this.engine.dispatchEvent("buddy.node.inject.success",null,n),document.beonLazyLoadInstance.update(),s(n)}.bind(this))},_.prototype.injectNodeRetry=function(t){var e=t.detail.id,n=t.detail.node,i=t.detail.placement;this.log("retrying node "+e),i.inject_count=i.inject_count||1,i.inject_count++,i.inject_count>this.injectionRetryCount?this.log("injection count exceeded limit",n):window.setTimeout(function(){this.injectNode(t.detail.type,t.detail.id,t.detail.node,t.detail.placement,t.detail.retryOnFailure,t.detail.removeConflicts)}.bind(this),this.injectionRetryDelay)},_.prototype.bindEventAnchor=function(t){this.log(`binding event handlers on ${t}`),t.querySelectorAll("[data-track]:not([data-bind=true])").forEach(function(t){this.log(`binding ${t}`),t.setAttribute("data-bind",!0),t.addEventListener(t.getAttribute("data-track"),this.handleEventAnchor.bind(this))}.bind(this))},_.prototype.handlePayload=function(){if(document.addEventListener("beon.engine.send.response",t=>{var e=t.detail.payload.payload;E=e.pageType}),E)return E},_.prototype.handleEventAnchor=function(t){var e=new this.dom;try{var n,i=t.target||t.eventSource||t.toElement,o={event:"beonly",pageType:void 0,componentName:void 0,componentType:void 0};if(!i)throw new Error(`handling unknown event source ${i}`);if(!(n=i.dataset&&i.dataset.track?i:e.parent(i,"[data-track]")))throw new Error(`handling unknown event anchor ${n}`);var r=e.parent(n,"[data-event-root]");if(r){var s,a=r.getAttribute("data-event-root"),c=(a=a?JSON.parse(a):[])[1];o.componentName=c,r.classList.contains("beon-showcase")&&(s="showcase"),r.classList.contains("beon-notificacao")&&(s="push"),s&&(o.componentType=s)}var l=e.getParentElement(i,"beon-showcase__item");if(l){var u=l.querySelector(".beon-showcase__item-title a span"),d=l.getAttribute("data-product-id"),h=l.getAttribute("data-product-sku");if(u){var f=u.innerHTML;o.productName=f}d&&(o.productId=d),h&&(o.sku=h)}window.dataLayer||this.log("warning: dataLayer not found"),E&&(o.pageType=E),(window.dataLayer||[]).push(o),(window.dataLayerGa4||[]).push(o);const p=new CustomEvent("beonly",{detail:o});return document.dispatchEvent(p),o}catch(e){return this.log(e),void this.log(t)}},_.prototype.handleInteraction=function(t){var e=t.target,n=null,i=null,o=null,r=null,s={},a=new this.dom;if(null!=(n="A"!=e.nodeName.toUpperCase()?a.parent(e,".beon-interaction__item a")||null:e)){if(!(r=a.hasClass(n,"beon-interaction__item")?n:a.parent(n,".beon-interaction__item")))return;return o=(i=a.parent(r,".beon-interaction")).parentNode,s.id=i.getAttribute("id"),s.root=i,s.item=r,s.target=n,s.hit=e.getAttribute("class"),s.type=o.getAttribute("data-type"),s.sku=r.getAttribute("data-product-sku"),s.product_id=r.getAttribute("data-product-id"),s.timestamp=Date.now(),n.hasAttribute("data-action")&&(s.action=n.getAttribute("data-action")),void(/event-category/.test(n.getAttribute("href"))&&this.dispatchGAEvent(n))}},_.prototype.dispatchGAEvent=function(t){var e,n=function(t,e){var n=new RegExp(t+"=(.+?)(&|$)","i").exec(e);return n?n[1]:null};(e={event:"beon_gaevent"}).eventCategory=n("event-category",t.getAttribute("href")),e.eventAction=n("event-action",t.getAttribute("href")),e.eventLabel=n("event-label",t.getAttribute("href")),(window.dataLayer||[]).push(e)},_.prototype.dispatchActionHooks=function(t,e){var n=this.engine.getInteractionFromRegistry(t.id);if(!n)throw new Error("Given interaction do not have an registry");switch(t.action){case"buy":this.engine.dispatchEvent("interaction.handle.buy",{interaction:t,origin:e}),this.engine.dispatchHook("interaction.handle.buy",n,t,e);break;case"details":this.engine.dispatchEvent("interaction.handle.details",{interaction:t,origin:e}),this.engine.dispatchHook("interaction.handle.details",n,t,e)}},_.prototype.initComponents=function(){new s.A,new u,new d.A,new h.A,new f.A,new y},_.prototype.dom=function(){return this},_.prototype.dom.prototype.collectionHas=function(t,e){for(var n=0,i=t.length;n{"use strict";function i(t,e){return t=t||"beon",function(){e&&Array.prototype.slice.call(arguments).forEach(function(e){"object"==typeof e?(console.log(t+": object"),console.log(e)):console.log(t+": "+e)})}}n.d(e,{A:()=>i})},665:t=>{"use strict";function e(t){let e=t.length;for(;--e>=0;)t[e]=0}const n=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),i=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),o=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),r=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Array(576);e(s);const a=new Array(60);e(a);const c=new Array(512);e(c);const l=new Array(256);e(l);const u=new Array(29);e(u);const d=new Array(30);function h(t,e,n,i,o){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=i,this.max_length=o,this.has_stree=t&&t.length}let f,p,m;function g(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(d);const b=t=>t<256?c[t]:c[256+(t>>>7)],v=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},y=(t,e,n)=>{t.bi_valid>16-n?(t.bi_buf|=e<>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<{y(t,n[2*e],n[2*e+1])},w=(t,e)=>{let n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1},E=(t,e,n)=>{const i=new Array(16);let o,r,s=0;for(o=1;o<=15;o++)s=s+n[o-1]<<1,i[o]=s;for(r=0;r<=e;r++){let e=t[2*r+1];0!==e&&(t[2*r]=w(i[e]++,e))}},k=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},x=t=>{t.bi_valid>8?v(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},A=(t,e,n,i)=>{const o=2*e,r=2*n;return t[o]{const i=t.heap[n];let o=n<<1;for(;o<=t.heap_len&&(o{let r,s,a,c,h=0;if(0!==t.sym_next)do{r=255&t.pending_buf[t.sym_buf+h++],r+=(255&t.pending_buf[t.sym_buf+h++])<<8,s=t.pending_buf[t.sym_buf+h++],0===r?_(t,s,e):(a=l[s],_(t,a+256+1,e),c=n[a],0!==c&&(s-=u[a],y(t,s,c)),r--,a=b(r),_(t,a,o),c=i[a],0!==c&&(r-=d[a],y(t,r,c)))}while(h{const n=e.dyn_tree,i=e.stat_desc.static_tree,o=e.stat_desc.has_stree,r=e.stat_desc.elems;let s,a,c,l=-1;for(t.heap_len=0,t.heap_max=573,s=0;s>1;s>=1;s--)S(t,n,s);c=r;do{s=t.heap[1],t.heap[1]=t.heap[t.heap_len--],S(t,n,1),a=t.heap[1],t.heap[--t.heap_max]=s,t.heap[--t.heap_max]=a,n[2*c]=n[2*s]+n[2*a],t.depth[c]=(t.depth[s]>=t.depth[a]?t.depth[s]:t.depth[a])+1,n[2*s+1]=n[2*a+1]=c,t.heap[1]=c++,S(t,n,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const n=e.dyn_tree,i=e.max_code,o=e.stat_desc.static_tree,r=e.stat_desc.has_stree,s=e.stat_desc.extra_bits,a=e.stat_desc.extra_base,c=e.stat_desc.max_length;let l,u,d,h,f,p,m=0;for(h=0;h<=15;h++)t.bl_count[h]=0;for(n[2*t.heap[t.heap_max]+1]=0,l=t.heap_max+1;l<573;l++)u=t.heap[l],h=n[2*n[2*u+1]+1]+1,h>c&&(h=c,m++),n[2*u+1]=h,u>i||(t.bl_count[h]++,f=0,u>=a&&(f=s[u-a]),p=n[2*u],t.opt_len+=p*(h+f),r&&(t.static_len+=p*(o[2*u+1]+f)));if(0!==m){do{for(h=c-1;0===t.bl_count[h];)h--;t.bl_count[h]--,t.bl_count[h+1]+=2,t.bl_count[c]--,m-=2}while(m>0);for(h=c;0!==h;h--)for(u=t.bl_count[h];0!==u;)d=t.heap[--l],d>i||(n[2*d+1]!==h&&(t.opt_len+=(h-n[2*d+1])*n[2*d],n[2*d+1]=h),u--)}})(t,e),E(n,l,t.bl_count)},T=(t,e,n)=>{let i,o,r=-1,s=e[1],a=0,c=7,l=4;for(0===s&&(c=138,l=3),e[2*(n+1)+1]=65535,i=0;i<=n;i++)o=s,s=e[2*(i+1)+1],++a{let i,o,r=-1,s=e[1],a=0,c=7,l=4;for(0===s&&(c=138,l=3),i=0;i<=n;i++)if(o=s,s=e[2*(i+1)+1],!(++a{y(t,0+(i?1:0),3),x(t),v(t,n),v(t,~n),n&&t.pending_buf.set(t.window.subarray(e,e+n),t.pending),t.pending+=n};t.exports._tr_init=t=>{I||((()=>{let t,e,r,g,b;const v=new Array(16);for(r=0,g=0;g<28;g++)for(u[g]=r,t=0;t<1<>=7;g<30;g++)for(d[g]=b<<7,t=0;t<1<{let o,c,l=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),L(t,t.l_desc),L(t,t.d_desc),l=(t=>{let e;for(T(t,t.dyn_ltree,t.l_desc.max_code),T(t,t.dyn_dtree,t.d_desc.max_code),L(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*r[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,c=t.static_len+3+7>>>3,c<=o&&(o=c)):o=c=n+5,n+4<=o&&-1!==e?R(t,e,n,i):4===t.strategy||c===o?(y(t,2+(i?1:0),3),C(t,s,a)):(y(t,4+(i?1:0),3),((t,e,n,i)=>{let o;for(y(t,e-257,5),y(t,n-1,5),y(t,i-4,4),o=0;o(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=n,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(l[n]+256+1)]++,t.dyn_dtree[2*b(e)]++),t.sym_next===t.sym_end),t.exports._tr_align=t=>{y(t,2,3),_(t,256,s),(t=>{16===t.bi_valid?(v(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}},668:(t,e,n)=>{"use strict";const{Deflate:i,deflate:o,deflateRaw:r,gzip:s}=n(303),{Inflate:a,inflate:c,inflateRaw:l,ungzip:u}=n(83),d=n(681);t.exports.Deflate=i,t.exports.deflate=o,t.exports.deflateRaw=r,t.exports.gzip=s,t.exports.Inflate=a,t.exports.inflate=c,t.exports.inflateRaw=l,t.exports.ungzip=u,t.exports.constants=d},674:t=>{"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},681:t=>{"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},796:t=>{var e=function(t){return this.queue=t||[],this.paused=!1,this};e.prototype.push=function(){return Array.prototype.push.apply(this.queue,arguments),this},e.prototype.consume=function(t){if(!this.paused&&this.queue.length)do{t(this.queue.shift())}while(this.queue.length);setTimeout(function(){this.consume(t)}.bind(this),100)},e.prototype.pause=function(){return this.paused=!0,this},e.prototype.pause=function(){return this.paused=!1,this},t.exports=e},800:(t,e,n)=>{"use strict";function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function o(t){for(var e=1;eMt});var p={type:"slider",startAt:0,perView:1,focusAt:0,gap:10,autoplay:!1,hoverpause:!0,keyboard:!0,bound:!1,swipeThreshold:80,dragThreshold:120,perSwipe:"",touchRatio:.5,touchAngle:45,animationDuration:400,rewind:!0,rewindDuration:800,animationTimingFunc:"cubic-bezier(.165, .840, .440, 1)",waitForTransition:!0,throttle:10,direction:"ltr",peek:0,cloningRatio:1,breakpoints:{},classes:{swipeable:"glide--swipeable",dragging:"glide--dragging",direction:{ltr:"glide--ltr",rtl:"glide--rtl"},type:{slider:"glide--slider",carousel:"glide--carousel"},slide:{clone:"glide__slide--clone",active:"glide__slide--active"},arrow:{disabled:"glide__arrow--disabled"},nav:{active:"glide__bullet--active"}}};function m(t){console.error("[Glide warn]: ".concat(t))}function g(t){return parseInt(t)}function b(t){return"string"==typeof t}function v(t){var e=r(t);return"function"===e||"object"===e&&!!t}function y(t){return"function"==typeof t}function _(t){return void 0===t}function w(t){return t.constructor===Array}function E(t,e,n){Object.defineProperty(t,e,n)}function k(t,e){var n=Object.assign({},t,e);return e.hasOwnProperty("classes")&&(n.classes=Object.assign({},t.classes,e.classes),["direction","type","slide","arrow","nav"].forEach(function(i){e.classes.hasOwnProperty(i)&&(n.classes[i]=o(o({},t.classes[i]),e.classes[i]))})),e.hasOwnProperty("breakpoints")&&(n.breakpoints=Object.assign({},t.breakpoints,e.breakpoints)),n}var x=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,t),this.events=e,this.hop=e.hasOwnProperty}return c(t,[{key:"on",value:function(t,e){if(!w(t)){this.hop.call(this.events,t)||(this.events[t]=[]);var n=this.events[t].push(e)-1;return{remove:function(){delete this.events[t][n]}}}for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{};s(this,t),this._c={},this._t=[],this._e=new x,this.disabled=!1,this.selector=e,this.settings=k(p,n),this.index=this.settings.startAt}return c(t,[{key:"mount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._e.emit("mount.before"),v(t)?this._c=function(t,e,n){var i={};for(var o in e)y(e[o])?i[o]=e[o](t,i,n):m("Extension must be a function");for(var r in i)y(i[r].mount)&&i[r].mount();return i}(this,t,this._e):m("You need to provide a object on `mount()`"),this._e.emit("mount.after"),this}},{key:"mutate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return w(t)?this._t=t:m("You need to provide a array on `mutate()`"),this}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.settings=k(this.settings,t),t.hasOwnProperty("startAt")&&(this.index=t.startAt),this._e.emit("update"),this}},{key:"go",value:function(t){return this._c.Run.make(t),this}},{key:"move",value:function(t){return this._c.Transition.disable(),this._c.Move.make(t),this}},{key:"destroy",value:function(){return this._e.emit("destroy"),this}},{key:"play",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&(this.settings.autoplay=t),this._e.emit("play"),this}},{key:"pause",value:function(){return this._e.emit("pause"),this}},{key:"disable",value:function(){return this.disabled=!0,this}},{key:"enable",value:function(){return this.disabled=!1,this}},{key:"on",value:function(t,e){return this._e.on(t,e),this}},{key:"isType",value:function(t){return this.settings.type===t}},{key:"settings",get:function(){return this._o},set:function(t){v(t)?this._o=t:m("Options must be an `object` instance.")}},{key:"index",get:function(){return this._i},set:function(t){this._i=g(t)}},{key:"type",get:function(){return this.settings.type}},{key:"disabled",get:function(){return this._d},set:function(t){this._d=!!t}}]),t}();function S(){return(new Date).getTime()}function C(t,e){var n,i,o,r,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=0,c=function(){a=!1===s.leading?0:S(),n=null,r=t.apply(i,o),n||(i=o=null)},l=function(){var l=S();a||!1!==s.leading||(a=l);var u=e-(l-a);return i=this,o=arguments,u<=0||u>e?(n&&(clearTimeout(n),n=null),a=l,r=t.apply(i,o),n||(i=o=null)):n||!1===s.trailing||(n=setTimeout(c,u)),r};return l.cancel=function(){clearTimeout(n),a=0,n=i=o=null},l}var L={ltr:["marginLeft","marginRight"],rtl:["marginRight","marginLeft"]};function T(t){if(t&&t.parentNode){for(var e=t.parentNode.firstChild,n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}return[]}function O(t){return Array.prototype.slice.call(t)}var I=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,t),this.listeners=e}return c(t,[{key:"on",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];b(t)&&(t=[t]);for(var o=0;o2&&void 0!==arguments[2]&&arguments[2];b(t)&&(t=[t]);for(var i=0;i":"<","<":">","=":"="};function B(t,e){return{modify:function(t){return e.Direction.is("rtl")?-t:t}}}function D(t,e){return{modify:function(t){var n=Math.floor(t/e.Sizes.slideWidth);return t+e.Gaps.value*n}}}function M(t,e){return{modify:function(t){return t+e.Clones.grow/2}}}function N(t,e){return{modify:function(n){if(t.settings.focusAt>=0){var i=e.Peek.value;return v(i)?n-i.before:n-i}return n}}}function P(t,e){return{modify:function(n){var i=e.Gaps.value,o=e.Sizes.width,r=t.settings.focusAt,s=e.Sizes.slideWidth;return"center"===r?n-(o/2-s/2):n-s*r-i*r}}}var j=!1;try{var U=Object.defineProperty({},"passive",{get:function(){j=!0}});window.addEventListener("testPassive",null,U),window.removeEventListener("testPassive",null,U)}catch(t){}var H=j,q=["touchstart","mousedown"],F=["touchmove","mousemove"],Z=["touchend","touchcancel","mouseup","mouseleave"],W=["mousedown","mousemove","mouseup","mouseleave"],$='[data-glide-el^="controls"]',K="".concat($,' [data-glide-dir*="<"]'),G="".concat($,' [data-glide-dir*=">"]');function V(t){return v(t)?(e=t,Object.keys(e).sort().reduce(function(t,n){return t[n]=e[n],t[n],t},{})):(m("Breakpoints option must be an object"),{});var e}var Q={Html:function(t,e,n){var i={mount:function(){this.root=t.selector,this.track=this.root.querySelector('[data-glide-el="track"]'),this.collectSlides()},collectSlides:function(){this.slides=O(this.wrapper.children).filter(function(e){return!e.classList.contains(t.settings.classes.slide.clone)})}};return E(i,"root",{get:function(){return i._r},set:function(t){b(t)&&(t=document.querySelector(t)),null!==t?i._r=t:m("Root element must be a existing Html node")}}),E(i,"track",{get:function(){return i._t},set:function(t){i._t=t}}),E(i,"wrapper",{get:function(){return i.track.children[0]}}),n.on("update",function(){i.collectSlides()}),i},Translate:function(t,e,n){var i={set:function(n){var i=function(t,e){var n=[D,M,N,P].concat(t._t,[B]);return{mutate:function(i){for(var o=0;o")||e.Run.isOffset("|>")?n+(i-o):(i+o)%n},getTravelDistance:function(){var n=e.Sizes.slideWidth*t.settings.perView;return e.Run.isOffset(">")||e.Run.isOffset("|>")?-1*n:n}};return n.on("move",function(o){if(!t.isType("carousel")||!e.Run.isOffset())return i.set(o.movement);e.Transition.after(function(){n.emit("translate.jump"),i.set(e.Sizes.slideWidth*t.index)});var r=e.Sizes.slideWidth*e.Translate.getStartIndex();return i.set(r-e.Translate.getTravelDistance())}),n.on("destroy",function(){i.remove()}),i},Transition:function(t,e,n){var i=!1,o={compose:function(e){var n=t.settings;return i?"".concat(e," 0ms ").concat(n.animationTimingFunc):"".concat(e," ").concat(this.duration,"ms ").concat(n.animationTimingFunc)},set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";e.Html.wrapper.style.transition=this.compose(t)},remove:function(){e.Html.wrapper.style.transition=""},after:function(t){setTimeout(function(){t()},this.duration)},enable:function(){i=!1,this.set()},disable:function(){i=!0,this.set()}};return E(o,"duration",{get:function(){var n=t.settings;return t.isType("slider")&&e.Run.offset?n.rewindDuration:n.animationDuration}}),n.on("move",function(){o.set()}),n.on(["build.before","resize","translate.jump"],function(){o.disable()}),n.on("run",function(){o.enable()}),n.on("destroy",function(){o.remove()}),o},Direction:function(t,e,n){var i={mount:function(){this.value=t.settings.direction},resolve:function(t){var e=t.slice(0,1);return this.is("rtl")?t.split(e).join(z[e]):t},is:function(t){return this.value===t},addClass:function(){e.Html.root.classList.add(t.settings.classes.direction[this.value])},removeClass:function(){e.Html.root.classList.remove(t.settings.classes.direction[this.value])}};return E(i,"value",{get:function(){return i._v},set:function(t){R.indexOf(t)>-1?i._v=t:m("Direction value must be `ltr` or `rtl`")}}),n.on(["destroy","update"],function(){i.removeClass()}),n.on("update",function(){i.mount()}),n.on(["build.before","update"],function(){i.addClass()}),i},Peek:function(t,e,n){var i={mount:function(){this.value=t.settings.peek}};return E(i,"value",{get:function(){return i._v},set:function(t){v(t)?(t.before=g(t.before),t.after=g(t.after)):t=g(t),i._v=t}}),E(i,"reductor",{get:function(){var e=i.value,n=t.settings.perView;return v(e)?e.before/n+e.after/n:2*e/n}}),n.on(["resize","update"],function(){i.mount()}),i},Sizes:function(t,e,n){var i={setupSlides:function(){for(var t="".concat(this.slideWidth,"px"),n=e.Html.slides,i=0;i0&&void 0!==arguments[0]?arguments[0]:0;this.offset=i,n.emit("move",{movement:this.value}),e.Transition.after(function(){n.emit("move.after",{movement:t.value})})}};return E(i,"offset",{get:function(){return i._o},set:function(t){i._o=_(t)?0:g(t)}}),E(i,"translate",{get:function(){return e.Sizes.slideWidth*t.index}}),E(i,"value",{get:function(){var t=this.offset,n=this.translate;return e.Direction.is("rtl")?n+t:n-t}}),n.on(["build.before","run"],function(){i.make()}),i},Clones:function(t,e,n){var i={mount:function(){this.items=[],t.isType("carousel")&&(this.items=this.collect())},collect:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=e.Html.slides,o=t.settings,r=o.perView,s=o.classes,a=o.cloningRatio;if(i.length>0)for(var c=r+ +!!t.settings.peek+Math.round(r/2),l=i.slice(0,c).reverse(),u=i.slice(-1*c),d=0;dn?void(t.index=n):void(t.index=o);if(">"!==r||">"!==o)if("<"!==r||"<"!==o){if("|"===r&&(s=t.settings.perView||1),">"===r||"|"===r&&">"===o){var a=function(e){var n=t.index;return t.isType("carousel")?n+e:n+(e-n%e)}(s);return a>n&&(this._o=!0),void(t.index=function(e,n){var o=i.length;return e<=o?e:t.isType("carousel")?e-(o+1):t.settings.rewind?i.isBound()&&!i.isEnd()?o:0:i.isBound()?o:Math.floor(o/n)*n}(a,s))}if("<"===r||"|"===r&&"<"===o){var c=function(e){var n=t.index;return t.isType("carousel")?n-e:(Math.ceil(n/e)-1)*e}(s);return c<0&&(this._o=!0),void(t.index=function(e,n){var o=i.length;return e>=0?e:t.isType("carousel")?e+(o+1):t.settings.rewind?i.isBound()&&i.isStart()?o:Math.floor(o/n)*n:0}(c,s))}m("Invalid direction pattern [".concat(r).concat(o,"] has been used"))}else t.index=0;else t.index=n},isStart:function(){return t.index<=0},isEnd:function(){return t.index>=this.length},isOffset:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return t?!!this._o&&("|>"===t?"|"===this.move.direction&&">"===this.move.steps:"|<"===t?"|"===this.move.direction&&"<"===this.move.steps:this.move.direction===t):this._o},isBound:function(){return t.isType("slider")&&"center"!==t.settings.focusAt&&t.settings.bound}};return E(i,"move",{get:function(){return this._m},set:function(t){var e=t.substr(1);this._m={direction:t.substr(0,1),steps:e?g(e)?g(e):e:0}}}),E(i,"length",{get:function(){var n=t.settings,i=e.Html.slides.length;return this.isBound()?i-1-(g(n.perView)-1)+g(n.focusAt):i-1}}),E(i,"offset",{get:function(){return this._o}}),i},Swipe:function(t,e,n){var i=new I,o=0,r=0,s=0,a=!1,c=!!H&&{passive:!0},l={mount:function(){this.bindSwipeStart()},start:function(e){if(!a&&!t.disabled){this.disable();var i=this.touches(e);o=null,r=g(i.pageX),s=g(i.pageY),this.bindSwipeMove(),this.bindSwipeEnd(),n.emit("swipe.start")}},move:function(i){if(!t.disabled){var a=t.settings,c=a.touchAngle,l=a.touchRatio,u=a.classes,d=this.touches(i),h=g(d.pageX)-r,f=g(d.pageY)-s,p=Math.abs(h<<2),m=Math.abs(f<<2),b=Math.sqrt(p+m),v=Math.sqrt(m);if(!(180*(o=Math.asin(v/b))/Math.PId&&f"))):e.Move.make(),e.Html.root.classList.remove(l.dragging),this.unbindSwipeMove(),this.unbindSwipeEnd(),n.emit("swipe.end")}},bindSwipeStart:function(){var n=this,o=t.settings,r=o.swipeThreshold,s=o.dragThreshold;r&&i.on(q[0],e.Html.wrapper,function(t){n.start(t)},c),s&&i.on(q[1],e.Html.wrapper,function(t){n.start(t)},c)},unbindSwipeStart:function(){i.off(q[0],e.Html.wrapper,c),i.off(q[1],e.Html.wrapper,c)},bindSwipeMove:function(){var n=this;i.on(F,e.Html.wrapper,C(function(t){n.move(t)},t.settings.throttle),c)},unbindSwipeMove:function(){i.off(F,e.Html.wrapper,c)},bindSwipeEnd:function(){var t=this;i.on(Z,e.Html.wrapper,function(e){t.end(e)})},unbindSwipeEnd:function(){i.off(Z,e.Html.wrapper)},touches:function(t){return W.indexOf(t.type)>-1?t:t.touches[0]||t.changedTouches[0]},threshold:function(e){var n=t.settings;return W.indexOf(e.type)>-1?n.dragThreshold:n.swipeThreshold},enable:function(){return a=!1,e.Transition.enable(),this},disable:function(){return a=!0,e.Transition.disable(),this}};return n.on("build.after",function(){e.Html.root.classList.add(t.settings.classes.swipeable)}),n.on("destroy",function(){l.unbindSwipeStart(),l.unbindSwipeMove(),l.unbindSwipeEnd(),i.destroy()}),l},Images:function(t,e,n){var i=new I,o={mount:function(){this.bind()},bind:function(){i.on("dragstart",e.Html.wrapper,this.dragstart)},unbind:function(){i.off("dragstart",e.Html.wrapper)},dragstart:function(t){t.preventDefault()}};return n.on("destroy",function(){o.unbind(),i.destroy()}),o},Anchors:function(t,e,n){var i=new I,o=!1,r=!1,s={mount:function(){this._a=e.Html.wrapper.querySelectorAll("a"),this.bind()},bind:function(){i.on("click",e.Html.wrapper,this.click)},unbind:function(){i.off("click",e.Html.wrapper)},click:function(t){r&&(t.stopPropagation(),t.preventDefault())},detach:function(){if(r=!0,!o){for(var t=0;t",ArrowLeft:"<"}[n.code])))}};return n.on(["destroy","update"],function(){o.unbind()}),n.on("update",function(){o.mount()}),n.on("destroy",function(){i.destroy()}),o},Autoplay:function(t,e,n){var i=new I,o={mount:function(){this.enable(),this.start(),t.settings.hoverpause&&this.bind()},enable:function(){this._e=!0},disable:function(){this._e=!1},start:function(){var i=this;this._e&&(this.enable(),t.settings.autoplay&&_(this._i)&&(this._i=setInterval(function(){i.stop(),e.Run.make(">"),i.start(),n.emit("autoplay")},this.time)))},stop:function(){this._i=clearInterval(this._i)},bind:function(){var t=this;i.on("mouseover",e.Html.root,function(){t._e&&t.stop()}),i.on("mouseout",e.Html.root,function(){t._e&&t.start()})},unbind:function(){i.off(["mouseover","mouseout"],e.Html.root)}};return E(o,"time",{get:function(){return g(e.Html.slides[t.index].getAttribute("data-glide-autoplay")||t.settings.autoplay)}}),n.on(["destroy","update"],function(){o.unbind()}),n.on(["run.before","swipe.start","update"],function(){o.stop()}),n.on(["pause","destroy"],function(){o.disable(),o.stop()}),n.on(["run.after","swipe.end"],function(){o.start()}),n.on(["play"],function(){o.enable(),o.start()}),n.on("update",function(){o.mount()}),n.on("destroy",function(){i.destroy()}),o},Breakpoints:function(t,e,n){var i=new I,o=t.settings,r=V(o.breakpoints),s=Object.assign({},o),a={match:function(t){if(void 0!==window.matchMedia)for(var e in t)if(t.hasOwnProperty(e)&&window.matchMedia("(max-width: ".concat(e,"px)")).matches)return t[e];return s}};return Object.assign(o,a.match(r)),i.on("resize",window,C(function(){t.settings=k(o,a.match(r))},t.settings.throttle)),n.on("update",function(){r=V(r),s=Object.assign({},o)}),n.on("destroy",function(){i.off("resize",window)}),a}},J=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(n,t);var e=h(n);function n(){return s(this,n),e.apply(this,arguments)}return c(n,[{key:"mount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return f(u(n.prototype),"mount",this).call(this,Object.assign({},Q,t))}}]),n}(A);var Y=window,X=Y.requestAnimationFrame||Y.webkitRequestAnimationFrame||Y.mozRequestAnimationFrame||Y.msRequestAnimationFrame||function(t){return setTimeout(t,16)},tt=window,et=tt.cancelAnimationFrame||tt.mozCancelAnimationFrame||function(t){clearTimeout(t)};function nt(){for(var t,e,n,i=arguments[0]||{},o=1,r=arguments.length;o=0?JSON.parse(t):t}function ot(t,e,n,i){if(i)try{t.setItem(e,n)}catch(t){}return n}function rt(){var t=document,e=t.body;return e||((e=t.createElement("body")).fake=!0),e}var st=document.documentElement;function at(t){var e="";return t.fake&&(e=st.style.overflow,t.style.background="",t.style.overflow=st.style.overflow="hidden",st.appendChild(t)),e}function ct(t,e){t.fake&&(t.remove(),st.style.overflow=e,st.offsetHeight)}function lt(t,e,n,i){"insertRule"in t?t.insertRule(e+"{"+n+"}",i):t.addRule(e,n,i)}function ut(t){return("insertRule"in t?t.cssRules:t.rules).length}function dt(t,e,n){for(var i=0,o=t.length;i=0},pt=ht?function(t,e){ft(t,e)||t.classList.add(e)}:function(t,e){ft(t,e)||(t.className+=" "+e)},mt=ht?function(t,e){ft(t,e)&&t.classList.remove(e)}:function(t,e){ft(t,e)&&(t.className=t.className.replace(e,""))};function gt(t,e){return t.hasAttribute(e)}function bt(t,e){return t.getAttribute(e)}function vt(t){return void 0!==t.item}function yt(t,e){if(t=vt(t)||t instanceof Array?t:[t],"[object Object]"===Object.prototype.toString.call(e))for(var n=t.length;n--;)for(var i in e)t[n].setAttribute(i,e[i])}function _t(t,e){t=vt(t)||t instanceof Array?t:[t];for(var n=(e=e instanceof Array?e:[e]).length,i=t.length;i--;)for(var o=n;o--;)t[i].removeAttribute(e[o])}function wt(t){for(var e=[],n=0,i=t.length;n=0&&!n&&Tt;t.addEventListener(i,e[i],o)}}function It(t,e){for(var n in e){var i=["touchstart","touchmove"].indexOf(n)>=0&&Tt;t.removeEventListener(n,e[n],i)}}function Rt(){return{topics:{},on:function(t,e){this.topics[t]=this.topics[t]||[],this.topics[t].push(e)},off:function(t,e){if(this.topics[t])for(var n=0;n";return r.innerHTML=s,o.appendChild(r),n.appendChild(o),t=Math.abs(o.getBoundingClientRect().left-r.children[67].getBoundingClientRect().left)<2,n.fake?ct(n,i):o.remove(),t}(),r),u=o.tMQ?it(o.tMQ):ot(o,"tMQ",function(){if(window.matchMedia||window.msMatchMedia)return!0;var t,e=document,n=rt(),i=at(n),o=e.createElement("div"),r=e.createElement("style"),s="@media all and (min-width:1px){.tns-mq-test{position:absolute}}";return r.type="text/css",o.className="tns-mq-test",n.appendChild(r),n.appendChild(o),r.styleSheet?r.styleSheet.cssText=s:r.appendChild(e.createTextNode(s)),t=window.getComputedStyle?window.getComputedStyle(o).position:o.currentStyle.position,n.fake?ct(n,i):o.remove(),"absolute"===t}(),r),d=o.tTf?it(o.tTf):ot(o,"tTf",At("transform"),r),h=o.t3D?it(o.t3D):ot(o,"t3D",function(t){if(!t)return!1;if(!window.getComputedStyle)return!1;var e,n=document,i=rt(),o=at(i),r=n.createElement("p"),s=t.length>9?"-"+t.slice(0,-9).toLowerCase()+"-":"";return s+="transform",i.insertBefore(r,null),r.style[t]="translate3d(1px,1px,1px)",e=window.getComputedStyle(r).getPropertyValue(s),i.fake?ct(i,o):r.remove(),void 0!==e&&e.length>0&&"none"!==e}(d),r),f=o.tTDu?it(o.tTDu):ot(o,"tTDu",At("transitionDuration"),r),p=o.tTDe?it(o.tTDe):ot(o,"tTDe",At("transitionDelay"),r),m=o.tADu?it(o.tADu):ot(o,"tADu",At("animationDuration"),r),g=o.tADe?it(o.tADe):ot(o,"tADe",At("animationDelay"),r),b=o.tTE?it(o.tTE):ot(o,"tTE",St(f,"Transition"),r),v=o.tAE?it(o.tAE):ot(o,"tAE",St(m,"Animation"),r),y=n.console&&"function"==typeof n.console.warn,_=["container","controlsContainer","prevButton","nextButton","navContainer","autoplayButton"],w={};if(_.forEach(function(n){if("string"==typeof t[n]){var i=t[n],o=e.querySelector(i);if(w[n]=i,!o||!o.nodeName)return void(y&&console.warn("Can't find",t[n]));t[n]=o}}),!(t.container.children.length<1)){var E=t.responsive,k=t.nested,x="carousel"===t.mode;if(E){0 in E&&(t=nt(t,E[0]),delete E[0]);var A={};for(var S in E){var C=E[S];C="number"==typeof C?{items:C}:C,A[S]=C}E=A,A=null}if(x||function t(e){for(var n in e)x||("slideBy"===n&&(e[n]="page"),"edgePadding"===n&&(e[n]=!1),"autoHeight"===n&&(e[n]=!1)),"responsive"===n&&t(e[n])}(t),!x){t.axis="horizontal",t.slideBy="page",t.edgePadding=!1;var L=t.animateIn,T=t.animateOut,O=t.animateDelay,I=t.animateNormal}var R,z,B="horizontal"===t.axis,D=e.createElement("div"),M=e.createElement("div"),N=t.container,P=N.parentNode,j=N.outerHTML,U=N.children,H=U.length,q=Rn(),F=!1;E&&Xn(),x&&(N.className+=" tns-vpfix");var Z,W,$,K,G,V,Q,J,Y=t.autoWidth,tt=Nn("fixedWidth"),st=Nn("edgePadding"),ht=Nn("gutter"),vt=Dn(),Ct=Nn("center"),Lt=Y?1:Math.floor(Nn("items")),Tt=Nn("slideBy"),Bt=t.viewportMax||t.fixedWidthViewportWidth,Dt=Nn("arrowKeys"),Mt=Nn("speed"),Nt=t.rewind,Pt=!Nt&&t.loop,jt=Nn("autoHeight"),Ut=Nn("controls"),Ht=Nn("controlsText"),qt=Nn("nav"),Ft=Nn("touch"),Zt=Nn("mouseDrag"),Wt=Nn("autoplay"),$t=Nn("autoplayTimeout"),Kt=Nn("autoplayText"),Gt=Nn("autoplayHoverPause"),Vt=Nn("autoplayResetOnVisibility"),Qt=(Q=Nn("nonce"),J=document.createElement("style"),Q&&J.setAttribute("nonce",Q),document.querySelector("head").appendChild(J),J.sheet?J.sheet:J.styleSheet),Jt=t.lazyload,Yt=t.lazyloadSelector,Xt=[],te=Pt?(G=function(){if(Y||tt&&!Bt)return H-1;var e=tt?"fixedWidth":"items",n=[];if((tt||t[e]=-ie)return t}:function(){return Ct&&x&&!Pt?H-1:Pt||x?Math.max(0,ee-Math.ceil(Lt)):ee-1},le=Tn(Nn("startIndex")),ue=le,de=(Ln(),0),he=Y?null:ce(),fe=t.preventActionWhenRunning,pe=t.swipeAngle,me=!pe||"?",ge=!1,be=t.onInit,ve=new Rt,ye=" tns-slider tns-"+t.mode,_e=N.id||(K=window.tnsId,window.tnsId=K?K+1:1,"tns"+window.tnsId),we=Nn("disable"),Ee=!1,ke=t.freezable,xe=!(!ke||Y)&&Yn(),Ae=!1,Se={click:Bi,keydown:function(t){t=qi(t);var e=[i.LEFT,i.RIGHT].indexOf(t.keyCode);e>=0&&(0===e?Ge.disabled||Bi(t,-1):Ve.disabled||Bi(t,1))}},Ce={click:function(t){if(ge){if(fe)return;Ri()}for(var e=Fi(t=qi(t));e!==Xe&&!gt(e,"data-nav");)e=e.parentNode;if(gt(e,"data-nav")){var n=on=Number(bt(e,"data-nav")),i=tt||Y?n*H/en:n*Lt;zi(De?n:Math.min(Math.ceil(i),H-1),t),rn===n&&(dn&&ji(),on=-1)}},keydown:function(t){t=qi(t);var n=e.activeElement;if(gt(n,"data-nav")){var o=[i.LEFT,i.RIGHT,i.ENTER,i.SPACE].indexOf(t.keyCode),r=Number(bt(n,"data-nav"));o>=0&&(0===o?r>0&&Hi(Ye[r-1]):1===o?r=0&&Bi(t,0===e?-1:1)}},Ie={touchstart:Ki,touchmove:Gi,touchend:Qi,touchcancel:Qi},Re={mousedown:Ki,mousemove:Gi,mouseup:Qi,mouseleave:Qi},ze=Mn("controls"),Be=Mn("nav"),De=!!Y||t.navAsThumbnails,Me=Mn("autoplay"),Ne=Mn("touch"),Pe=Mn("mouseDrag"),je="tns-slide-active",Ue="tns-slide-cloned",He="tns-complete",qe={load:function(t){ci(Fi(t))},error:function(t){var e;e=Fi(t),pt(e,"failed"),li(e)}},Fe="force"===t.preventScrollOnTouch;if(ze)var Ze,We,$e=t.controlsContainer,Ke=t.controlsContainer?t.controlsContainer.outerHTML:"",Ge=t.prevButton,Ve=t.nextButton,Qe=t.prevButton?t.prevButton.outerHTML:"",Je=t.nextButton?t.nextButton.outerHTML:"";if(Be)var Ye,Xe=t.navContainer,tn=t.navContainer?t.navContainer.outerHTML:"",en=Y?H:Yi(),nn=0,on=-1,rn=In(),sn=rn,an="tns-nav-active",cn="Carousel Page ",ln=" (Current Slide)";if(Me)var un,dn,hn,fn,pn,mn="forward"===t.autoplayDirection?1:-1,gn=t.autoplayButton,bn=t.autoplayButton?t.autoplayButton.outerHTML:"",vn=[""," animation"];if(Ne||Pe)var yn,_n,wn={},En={},kn=!1,xn=B?function(t,e){return t.x-e.x}:function(t,e){return t.y-e.y};Y||Cn(we||xe),d&&(re=d,se="translate",h?(se+=B?"3d(":"3d(0px, ",ae=B?", 0px, 0px)":", 0px)"):(se+=B?"X(":"Y(",ae=")")),x&&(N.className=N.className.replace("tns-vpfix","")),function(){if(Mn("gutter"),D.className="tns-outer",M.className="tns-inner",D.id=_e+"-ow",M.id=_e+"-iw",""===N.id&&(N.id=_e),ye+=l||Y?" tns-subpixel":" tns-no-subpixel",ye+=c?" tns-calc":" tns-no-calc",Y&&(ye+=" tns-autowidth"),ye+=" tns-"+t.axis,N.className+=ye,x?((R=e.createElement("div")).id=_e+"-mw",R.className="tns-ovh",D.appendChild(R),R.appendChild(M)):D.appendChild(M),jt&&((R||M).className+=" tns-ah"),P.insertBefore(D,N),M.appendChild(N),dt(U,function(t,e){pt(t,"tns-item"),t.id||(t.id=_e+"-item"+e),!x&&I&&pt(t,I),yt(t,{"aria-hidden":"true",tabindex:"-1"})}),te){for(var n=e.createDocumentFragment(),i=e.createDocumentFragment(),o=te;o--;){var r=o%H,s=U[r].cloneNode(!0);if(pt(s,Ue),_t(s,"id"),i.insertBefore(s,i.firstChild),x){var a=U[H-1-r].cloneNode(!0);pt(a,Ue),_t(a,"id"),n.appendChild(a)}}N.insertBefore(n,N.firstChild),N.appendChild(i),U=N.children}}(),function(){if(!x)for(var e=le,i=le+Math.min(H,Lt);e .tns-item","font-size:"+n.getComputedStyle(U[0]).fontSize+";",ut(Qt)),lt(Qt,"#"+_e,"font-size:0;",ut(Qt))):x&&dt(U,function(t,e){t.style.marginLeft=function(t){return c?c+"("+100*t+"% / "+ee+")":100*t/ee+"%"}(e)})),u){if(f){var r=R&&t.autoHeight?Fn(t.speed):"";lt(Qt,"#"+_e+"-mw",r,ut(Qt))}r=Pn(t.edgePadding,t.gutter,t.fixedWidth,t.speed,t.autoHeight),lt(Qt,"#"+_e+"-iw",r,ut(Qt)),x&&(r=B&&!Y?"width:"+jn(t.fixedWidth,t.gutter,t.items)+";":"",f&&(r+=Fn(Mt)),lt(Qt,"#"+_e,r,ut(Qt))),r=B&&!Y?Un(t.fixedWidth,t.gutter,t.items):"",t.gutter&&(r+=Hn(t.gutter)),x||(f&&(r+=Fn(Mt)),m&&(r+=Zn(Mt))),r&<(Qt,"#"+_e+" > .tns-item",r,ut(Qt))}else x&&jt&&(R.style[f]=Mt/1e3+"s"),M.style.cssText=Pn(st,ht,tt,jt),x&&B&&!Y&&(N.style.width=jn(tt,ht,Lt)),r=B&&!Y?Un(tt,ht,Lt):"",ht&&(r+=Hn(ht)),r&<(Qt,"#"+_e+" > .tns-item",r,ut(Qt));if(E&&u)for(var s in E){s=parseInt(s);var a=E[s],d=(r="",""),h="",p="",g="",b=Y?null:Nn("items",s),v=Nn("fixedWidth",s),y=Nn("speed",s),_=Nn("edgePadding",s),w=Nn("autoHeight",s),k=Nn("gutter",s);f&&R&&Nn("autoHeight",s)&&"speed"in a&&(d="#"+_e+"-mw{"+Fn(y)+"}"),("edgePadding"in a||"gutter"in a)&&(h="#"+_e+"-iw{"+Pn(_,k,v,y,w)+"}"),x&&B&&!Y&&("fixedWidth"in a||"items"in a||tt&&"gutter"in a)&&(p="width:"+jn(v,k,b)+";"),f&&"speed"in a&&(p+=Fn(y)),p&&(p="#"+_e+"{"+p+"}"),("fixedWidth"in a||tt&&"gutter"in a||!x&&"items"in a)&&(g+=Un(v,k,b)),"gutter"in a&&(g+=Hn(k)),!x&&"speed"in a&&(f&&(g+=Fn(y)),m&&(g+=Zn(y))),g&&(g="#"+_e+" > .tns-item{"+g+"}"),(r=d+h+p+g)&&Qt.insertRule("@media (min-width: "+s/16+"em) {"+r+"}",Qt.cssRules.length)}}(),Wn();var An=Pt?x?function(){var t=de,e=he;t+=Tt,e-=Tt,st?(t+=1,e-=1):tt&&(vt+ht)%(tt+ht)&&(e-=1),te&&(le>e?le-=H:lehe)for(;le>=de+H;)le-=H;else if(le=0?"%":"px",o=o.replace(c,""),l=Number(t.style[e].replace(n,"").replace(i,"").replace(c,"")),u=(o-l)/r*a,setTimeout(function o(){r-=a,l+=u,t.style[e]=n+l+c+i,r>0?setTimeout(o,a):s()},a)),B||Ji()}:function(){Xt=[];var t={};t[b]=t[v]=Ri,It(U[ue],t),Ot(U[le],t),Ti(ue,L,T,!0),Ti(le,I,L),b&&v&&Mt&&xt(N)||Ri()};return{version:"2.9.4",getInfo:to,events:ve,goTo:zi,play:function(){Wt&&!dn&&(Pi(),fn=!1)},pause:function(){dn&&(ji(),fn=!0)},isOn:F,updateSliderHeight:mi,refresh:Wn,destroy:function(){if(Qt.disabled=!0,Qt.ownerNode&&Qt.ownerNode.remove(),It(n,{resize:Qn}),Dt&&It(e,Oe),$e&&It($e,Se),Xe&&It(Xe,Ce),It(N,Le),It(N,Te),gn&&It(gn,{click:Ui}),Wt&&clearInterval(un),x&&b){var i={};i[b]=Ri,It(N,i)}Ft&&It(N,Ie),Zt&&It(N,Re);var o=[j,Ke,Qe,Je,tn,bn];for(var r in _.forEach(function(e,n){var i="container"===e?D:t[e];if("object"==typeof i&&i){var r=!!i.previousElementSibling&&i.previousElementSibling,s=i.parentNode;i.outerHTML=o[n],t[e]=r?r.nextElementSibling:s.firstElementChild}}),_=L=T=O=I=B=D=M=N=P=j=U=H=z=q=Y=tt=st=ht=vt=Lt=Tt=Bt=Dt=Mt=Nt=Pt=jt=Qt=Jt=Z=Xt=te=ee=ne=ie=oe=re=se=ae=ce=le=ue=de=he=pe=me=ge=be=ve=ye=_e=we=Ee=ke=xe=Ae=Se=Ce=Le=Te=Oe=Ie=Re=ze=Be=De=Me=Ne=Pe=je=He=qe=W=Ut=Ht=$e=Ke=Ge=Ve=Ze=We=qt=Xe=tn=Ye=en=nn=on=rn=sn=an=cn=ln=Wt=$t=mn=Kt=Gt=gn=bn=Vt=vn=un=dn=hn=fn=pn=wn=En=yn=kn=_n=xn=Ft=Zt=null,this)"rebuild"!==r&&(this[r]=null);F=!1},rebuild:function(){return zt(nt(t,w))}}}function Cn(t){t&&(Ut=qt=Ft=Zt=Dt=Wt=Gt=Vt=!1)}function Ln(){for(var t=x?le-te:le;t<0;)t+=H;return t%H+1}function Tn(t){return t=t?Math.max(0,Math.min(Pt?H-1:H-Lt,t)):0,x?t+te:t}function On(t){for(null==t&&(t=le),x&&(t-=te);t<0;)t+=H;return Math.floor(t%H)}function In(){var t,e=On();return t=De?e:tt||Y?Math.ceil((e+1)*en/H-1):Math.floor(e/Lt),!Pt&&x&&le===he&&(t=en-1),t}function Rn(){return n.innerWidth||e.documentElement.clientWidth||e.body.clientWidth}function zn(t){return"top"===t?"afterbegin":"beforeend"}function Bn(t){if(null!=t){var n,i,o=e.createElement("div");return t.appendChild(o),i=(n=o.getBoundingClientRect()).right-n.left,o.remove(),i||Bn(t.parentNode)}}function Dn(){var t=st?2*st-ht:0;return Bn(P)-t}function Mn(e){if(t[e])return!0;if(E)for(var n in E)if(E[n][e])return!0;return!1}function Nn(e,n){if(null==n&&(n=q),"items"===e&&tt)return Math.floor((vt+ht)/(tt+ht))||1;var i=t[e];if(E)for(var o in E)n>=parseInt(o)&&e in E[o]&&(i=E[o][e]);return"slideBy"===e&&"page"===i&&(i=Nn("items")),x||"slideBy"!==e&&"items"!==e||(i=Math.floor(i)),i}function Pn(t,e,n,i,o){var r="";if(void 0!==t){var s=t;e&&(s-=e),r=B?"margin: 0 "+s+"px 0 "+t+"px;":"margin: "+t+"px 0 "+s+"px 0;"}else if(e&&!n){var a="-"+e+"px";r="margin: 0 "+(B?a+" 0 0":"0 "+a+" 0")+";"}return!x&&o&&f&&i&&(r+=Fn(i)),r}function jn(t,e,n){return t?(t+e)*ee+"px":c?c+"("+100*ee+"% / "+n+")":100*ee/n+"%"}function Un(t,e,n){var i;if(t)i=t+e+"px";else{x||(n=Math.floor(n));var o=x?ee:n;i=c?c+"(100% / "+o+")":100/o+"%"}return i="width:"+i,"inner"!==k?i+";":i+" !important;"}function Hn(t){var e="";return!1!==t&&(e=(B?"padding-":"margin-")+(B?"right":"bottom")+": "+t+"px;"),e}function qn(t,e){var n=t.substring(0,t.length-e).toLowerCase();return n&&(n="-"+n+"-"),n}function Fn(t){return qn(f,18)+"transition-duration:"+t/1e3+"s;"}function Zn(t){return qn(m,17)+"animation-duration:"+t/1e3+"s;"}function Wn(){if(Mn("autoHeight")||Y||!B){var t=N.querySelectorAll("img");dt(t,function(t){var e=t.src;Jt||(e&&e.indexOf("data:image")<0?(t.src="",Ot(t,qe),pt(t,"loading"),t.src=e):ci(t))}),X(function(){hi(wt(t),function(){W=!0})}),Mn("autoHeight")&&(t=ui(le,Math.min(le+Lt-1,ee-1))),Jt?$n():X(function(){hi(wt(t),$n)})}else x&&Ci(),Gn(),Vn()}function $n(){if(Y&&H>1){var t=Pt?le:H-1;!function e(){var n=U[t].getBoundingClientRect().left,i=U[t-1].getBoundingClientRect().right;Math.abs(n-i)<=1?Kn():setTimeout(function(){e()},16)}()}else Kn()}function Kn(){B&&!Y||(gi(),Y?(ie=Ai(),ke&&(xe=Yn()),he=ce(),Cn(we||xe)):Ji()),x&&Ci(),Gn(),Vn()}function Gn(){if(bi(),D.insertAdjacentHTML("afterbegin",'
slide '+ri()+" of "+H+"
"),$=D.querySelector(".tns-liveregion .current"),Me){var e=Wt?"stop":"start";gn?yt(gn,{"data-action":e}):t.autoplayButtonOutput&&(D.insertAdjacentHTML(zn(t.autoplayPosition),'"),gn=D.querySelector("[data-action]")),gn&&Ot(gn,{click:Ui}),Wt&&(Pi(),Gt&&Ot(N,Le),Vt&&Ot(N,Te))}if(Be){if(Xe)yt(Xe,{"aria-label":"Carousel Pagination"}),dt(Ye=Xe.children,function(t,e){yt(t,{"data-nav":e,tabindex:"-1","aria-label":cn+(e+1),"aria-controls":_e})});else{for(var n="",i=De?"":'style="display:none"',o=0;o';n='
'+n+"
",D.insertAdjacentHTML(zn(t.navPosition),n),Xe=D.querySelector(".tns-nav"),Ye=Xe.children}if(Xi(),f){var r=f.substring(0,f.length-18).toLowerCase(),s="transition: all "+Mt/1e3+"s";r&&(s="-"+r+"-"+s),lt(Qt,"[aria-controls^="+_e+"-item]",s,ut(Qt))}yt(Ye[rn],{"aria-label":cn+(rn+1)+ln}),_t(Ye[rn],"tabindex"),pt(Ye[rn],an),Ot(Xe,Ce)}ze&&($e||Ge&&Ve||(D.insertAdjacentHTML(zn(t.controlsPosition),'
"),$e=D.querySelector(".tns-controls")),Ge&&Ve||(Ge=$e.children[0],Ve=$e.children[1]),t.controlsContainer&&yt($e,{"aria-label":"Carousel Navigation",tabindex:"0"}),(t.controlsContainer||t.prevButton&&t.nextButton)&&yt([Ge,Ve],{"aria-controls":_e,tabindex:"-1"}),(t.controlsContainer||t.prevButton&&t.nextButton)&&(yt(Ge,{"data-controls":"prev"}),yt(Ve,{"data-controls":"next"})),Ze=yi(Ge),We=yi(Ve),Ei(),$e?Ot($e,Se):(Ot(Ge,Se),Ot(Ve,Se))),ti()}function Vn(){if(x&&b){var i={};i[b]=Ri,Ot(N,i)}Ft&&Ot(N,Ie,t.preventScrollOnTouch),Zt&&Ot(N,Re),Dt&&Ot(e,Oe),"inner"===k?ve.on("outerResized",function(){Jn(),ve.emit("innerLoaded",to())}):(E||tt||Y||jt||!B)&&Ot(n,{resize:Qn}),jt&&("outer"===k?ve.on("innerLoaded",di):we||di()),ai(),we?ii():xe&&ni(),ve.on("indexChanged",fi),"inner"===k&&ve.emit("innerLoaded",to()),"function"==typeof be&&be(to()),F=!0}function Qn(t){X(function(){Jn(qi(t))})}function Jn(n){if(F){"outer"===k&&ve.emit("outerResized",to(n)),q=Rn();var i,o=z,r=!1;E&&(Xn(),(i=o!==z)&&ve.emit("newBreakpointStart",to(n)));var s,a,c=Lt,l=we,d=xe,h=Dt,f=Ut,p=qt,m=Ft,g=Zt,b=Wt,v=Gt,y=Vt,_=le;if(i){var w=tt,A=jt,S=Ht,C=Ct,O=Kt;if(!u)var R=ht,D=st}if(Dt=Nn("arrowKeys"),Ut=Nn("controls"),qt=Nn("nav"),Ft=Nn("touch"),Ct=Nn("center"),Zt=Nn("mouseDrag"),Wt=Nn("autoplay"),Gt=Nn("autoplayHoverPause"),Vt=Nn("autoplayResetOnVisibility"),i&&(we=Nn("disable"),tt=Nn("fixedWidth"),Mt=Nn("speed"),jt=Nn("autoHeight"),Ht=Nn("controlsText"),Kt=Nn("autoplayText"),$t=Nn("autoplayTimeout"),u||(st=Nn("edgePadding"),ht=Nn("gutter"))),Cn(we),vt=Dn(),B&&!Y||we||(gi(),B||(Ji(),r=!0)),(tt||Y)&&(ie=Ai(),he=ce()),(i||tt)&&(Lt=Nn("items"),Tt=Nn("slideBy"),(a=Lt!==c)&&(tt||Y||(he=ce()),An())),i&&we!==l&&(we?ii():function(){if(Ee){if(Qt.disabled=!1,N.className+=ye,Ci(),Pt)for(var t=te;t--;)x&&kt(U[t]),kt(U[ee-t-1]);if(!x)for(var e=le,n=le+H;e=le&&e .tns-item",W,ut(Qt))}jt&&di(),r&&(Ci(),ue=le)}i&&ve.emit("newBreakpointEnd",to(n))}}function Yn(){if(!tt&&!Y)return H<=(Ct?Lt-(Lt-1)/2:Lt);var t=tt?(tt+ht)*H:Z[H],e=st?vt+2*st:vt+ht;return Ct&&(e-=tt?(vt-tt)/2:(vt-(Z[le+1]-Z[le]-ht))/2),t<=e}function Xn(){for(var t in z=0,E)t=parseInt(t),q>=t&&(z=t)}function ti(){!Wt&&gn&&Et(gn),!qt&&Xe&&Et(Xe),Ut||($e?Et($e):(Ge&&Et(Ge),Ve&&Et(Ve)))}function ei(){Wt&&gn&&kt(gn),qt&&Xe&&kt(Xe),Ut&&($e?kt($e):(Ge&&kt(Ge),Ve&&kt(Ve)))}function ni(){if(!Ae){if(st&&(M.style.margin="0px"),te)for(var t="tns-transparent",e=te;e--;)x&&pt(U[e],t),pt(U[ee-e-1],t);ti(),Ae=!0}}function ii(){if(!Ee){if(Qt.disabled=!0,N.className=N.className.replace(ye.substring(1),""),_t(N,["style"]),Pt)for(var t=te;t--;)x&&Et(U[t]),Et(U[ee-t-1]);if(B&&x||_t(M,["style"]),!x)for(var e=le,n=le+H;e=.5&&(e=r))});else{if(tt){var r=tt+ht;Ct||st?(o=Math.floor(n/r),e=Math.ceil(i/r-1)):e=o+Math.ceil(vt/r)-1}else if(Ct||st){var s=Lt-1;if(Ct?(o-=s/2,e=le+s/2):e=le+s,st){var a=st*Lt/vt;o-=a,e+=a}o=Math.floor(o),e=Math.ceil(e)}else e=o+Lt-1;o=Math.max(o,0),e=Math.min(e,ee-1)}return[o,e]}function ai(){if(Jt&&!we){var t=si();t.push(Yt),ui.apply(null,t).forEach(function(t){if(!ft(t,He)){var e={};e[b]=function(t){t.stopPropagation()},Ot(t,e),Ot(t,qe),t.src=bt(t,"data-src");var n=bt(t,"data-srcset");n&&(t.srcset=n),pt(t,"loading")}})}}function ci(t){pt(t,"loaded"),li(t)}function li(t){pt(t,He),mt(t,"loading"),It(t,qe)}function ui(t,e,n){var i=[];for(n||(n="img");t<=e;)dt(U[t].querySelectorAll(n),function(t){i.push(t)}),t++;return i}function di(){var t=ui.apply(null,si());X(function(){hi(t,mi)})}function hi(t,e){return W?e():(t.forEach(function(e,n){!Jt&&e.complete&&li(e),ft(e,He)&&t.splice(n,1)}),t.length?void X(function(){hi(t,e)}):e())}function fi(){ai(),bi(),oi(),Ei(),function(){if(qt&&(rn=on>=0?on:In(),on=-1,rn!==sn)){var t=Ye[sn],e=Ye[rn];yt(t,{tabindex:"-1","aria-label":cn+(sn+1)}),mt(t,an),yt(e,{"aria-label":cn+(rn+1)+ln}),_t(e,"tabindex"),pt(e,an),sn=rn}}()}function pi(t,e){for(var n=[],i=t,o=Math.min(t+e,ee);i=e&&i<=n?gt(t,"aria-hidden")&&(_t(t,["aria-hidden","tabindex"]),pt(t,je)):gt(t,"aria-hidden")||(yt(t,{"aria-hidden":"true",tabindex:"-1"}),mt(t,je))})}function vi(t){return t.nodeName.toLowerCase()}function yi(t){return"button"===vi(t)}function _i(t){return"true"===t.getAttribute("aria-disabled")}function wi(t,e,n){t?e.disabled=n:e.setAttribute("aria-disabled",n.toString())}function Ei(){if(Ut&&!Nt&&!Pt){var t=Ze?Ge.disabled:_i(Ge),e=We?Ve.disabled:_i(Ve),n=le<=de,i=!Nt&&le>=he;n&&!t&&wi(Ze,Ge,!0),!n&&t&&wi(Ze,Ge,!1),i&&!e&&wi(We,Ve,!0),!i&&e&&wi(We,Ve,!1)}}function ki(t,e){f&&(t.style[f]=e)}function xi(t){return null==t&&(t=le),Y?(vt-(st?ht:0)-(Z[t+1]-Z[t]-ht))/2:tt?(vt-tt)/2:(Lt-1)/2}function Ai(){var t=vt+(st?ht:0)-(tt?(tt+ht)*ee:Z[ee]);return Ct&&!Pt&&(t=tt?-(tt+ht)*(ee-1)-xi():xi(ee-1)-Z[ee-1]),t>0&&(t=0),t}function Si(t){var e;if(null==t&&(t=le),B&&!Y)if(tt)e=-(tt+ht)*t,Ct&&(e+=xi());else{var n=d?ee:Lt;Ct&&(t-=xi()),e=100*-t/n}else e=-Z[t],Ct&&Y&&(e+=xi());return ne&&(e=Math.max(e,ie)),e+(!B||Y||tt?"px":"%")}function Ci(t){ki(N,"0s"),Li(t)}function Li(t){null==t&&(t=Si()),N.style[re]=se+t+ae}function Ti(t,e,n,i){var o=t+Lt;Pt||(o=Math.min(o,ee));for(var r=t;r=0&&ji(),ge=!0,Sn())}function Ii(t){return t.toLowerCase().replace(/-/g,"")}function Ri(t){if(x||ge){if(ve.emit("transitionEnd",to(t)),!x&&Xt.length>0)for(var e=0;e0?1:-1;i+=le+i-H>=de?H*o:2*H*o*-1}le+=i,x&&Pt&&(lehe&&(le-=H)),On(le)!==On(ue)&&Oi(e)}}function Bi(t,e){if(ge){if(fe)return;Ri()}var n;if(!e){for(var i=Fi(t=qi(t));i!==$e&&[Ge,Ve].indexOf(i)<0;)i=i.parentNode;var o=[Ge,Ve].indexOf(i);o>=0&&(n=!0,e=0===o?-1:1)}if(Nt){if(le===de&&-1===e)return void zi("last",t);if(le===he&&1===e)return void zi("first",t)}e&&(le+=Tt*e,Y&&(le=Math.floor(le)),Oi(n||t&&"keydown"===t.type?t:null))}function Di(){un=setInterval(function(){Bi(null,mn)},$t),dn=!0}function Mi(){clearInterval(un),dn=!1}function Ni(t,e){yt(gn,{"data-action":t}),gn.innerHTML=vn[0]+t+vn[1]+e}function Pi(){Di(),gn&&Ni("stop",Kt[1])}function ji(){Mi(),gn&&Ni("start",Kt[0])}function Ui(){dn?(ji(),fn=!0):(Pi(),fn=!1)}function Hi(t){t.focus()}function qi(t){return Zi(t=t||n.event)?t.changedTouches[0]:t}function Fi(t){return t.target||n.event.srcElement}function Zi(t){return t.type.indexOf("touch")>=0}function Wi(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function $i(){return r=En.y-wn.y,s=En.x-wn.x,e=Math.atan2(r,s)*(180/Math.PI),n=pe,i=!1,(o=Math.abs(90-Math.abs(e)))>=90-n?i="horizontal":o<=n&&(i="vertical"),i===t.axis;var e,n,i,o,r,s}function Ki(t){if(ge){if(fe)return;Ri()}Wt&&dn&&Mi(),kn=!0,_n&&(et(_n),_n=null);var e=qi(t);ve.emit(Zi(t)?"touchStart":"dragStart",to(t)),!Zi(t)&&["img","a"].indexOf(vi(Fi(t)))>=0&&Wi(t),En.x=wn.x=e.clientX,En.y=wn.y=e.clientY,x&&(yn=parseFloat(N.style[re].replace(se,"")),ki(N,"0s"))}function Gi(t){if(kn){var e=qi(t);En.x=e.clientX,En.y=e.clientY,x?_n||(_n=X(function(){Vi(t)})):("?"===me&&(me=$i()),me&&(Fe=!0)),("boolean"!=typeof t.cancelable||t.cancelable)&&Fe&&t.preventDefault()}}function Vi(t){if(me){if(et(_n),kn&&(_n=X(function(){Vi(t)})),"?"===me&&(me=$i()),me){!Fe&&Zi(t)&&(Fe=!0);try{t.type&&ve.emit(Zi(t)?"touchMove":"dragMove",to(t))}catch(t){}var e=yn,n=xn(En,wn);!B||tt||Y?(e+=n,e+="px"):(e+=d?n*Lt*100/((vt+ht)*ee):100*n/(vt+ht),e+="%"),N.style[re]=se+e+ae}}else kn=!1}function Qi(e){if(kn){_n&&(et(_n),_n=null),x&&ki(N,""),kn=!1;var n=qi(e);En.x=n.clientX,En.y=n.clientY;var i=xn(En,wn);if(Math.abs(i)){if(!Zi(e)){var o=Fi(e);Ot(o,{click:function t(e){Wi(e),It(o,{click:t})}})}x?_n=X(function(){if(B&&!Y){var t=-i*Lt/(vt+ht);t=i>0?Math.floor(t):Math.ceil(t),le+=t}else{var n=-(yn+i);if(n<=0)le=de;else if(n>=Z[ee-1])le=he;else for(var o=0;o=Z[o];)le=o,n>Z[o]&&i<0&&(le+=1),o++}Oi(e,i),ve.emit(Zi(e)?"touchEnd":"dragEnd",to(e))}):me&&Bi(e,i>0?-1:1)}}"auto"===t.preventScrollOnTouch&&(Fe=!1),pe&&(me="?"),Wt&&!dn&&Di()}function Ji(){(R||M).style.height=Z[le+Lt]-Z[le]+"px"}function Yi(){var t=tt?(tt+ht)*H/vt:H/Lt;return Math.min(Math.ceil(t),H)}function Xi(){if(qt&&!De&&en!==nn){var t=nn,e=en,n=kt;for(nn>en&&(t=en,e=nn,n=Et);t=768||this.root.className.includes("beon-showcase--compact")||!window.location.href.includes("staging")?this.applySlider():this.root.querySelectorAll("img").forEach(t=>{t.src=t.getAttribute("data-src"),t.classList.add("loaded")}))},Bt.prototype.getConfigFromBannerRegion=function(){try{let t="{}";const e=this.root.closest(".beon-region--type-banners");if(e){const n=e.getAttribute("data-config-region");n&&(t=n)}const n=JSON.parse(t),i=n.viewports;if(e&&i){const t=i.mobile,n=i.tablet,o=i.desktop,r=i.bigscreen;t&&(e.style.setProperty("--bn-mobile-banner-width",t.max_width),e.style.setProperty("--bn-mobile-banner-height",t.max_height)),n&&(e.style.setProperty("--bn-tablet-banner-width",n.max_width),e.style.setProperty("--bn-tablet-banner-height",n.max_height)),o&&(e.style.setProperty("--bn-desktop-banner-width",o.max_width),e.style.setProperty("--bn-desktop-banner-height",o.max_height)),r&&(e.style.setProperty("--bn-bigscreen-banner-width",r.max_width),e.style.setProperty("--bn-bigscreen-banner-height",r.max_height))}const o=n.background_color;o&&e.style.setProperty("--bn-banner-bgcolor",o),this.setup.items=1,this.setup.slideBy=1,this.setup.edgePadding=0,this.setup.responsive={1:{items:1}},this.setup.autoplay=n.autoplay||!1,this.setup.autoplayTimeout=1e3*(n.autoplay_timeout||0),this.setup.loop=n.loop||!1,this.setup.nav=n.show_dots||!1,this.setup.controls=n.show_arrows||!1}catch(t){console.warn("[Bnly-v5] Get config from banner region failed with",t)}return this.setup},Bt.prototype.getConfigFromElement=function(){try{const n=this.root.getAttribute("data-config")||"{}",i=JSON.parse(n);if(i.viewports){var t={};for(var e in i.viewports)t[e]={items:i.viewports[e].i||1,slideBy:i.viewports[e].s||1},"undefined"!==i.viewports[e].b&&(t[e].gutter=i.viewports[e].b,t[e].edgePadding=i.viewports[e].b);this.setup.responsive=t}i.hasOwnProperty("container")&&(this.options.containerClass=i.container),i.hasOwnProperty("dots")&&(this.setup.nav=i.dots),i.hasOwnProperty("autoplay")&&(this.setup.autoplay=!0,this.setup.autoplayTimeout=1e3*i.autoplay,this.setup.loop=!0),i.hasOwnProperty("rewind")&&(this.setup.rewind=!0,this.setup.loop=!1),i.hasOwnProperty("loop")&&(this.setup.rewind=!1,this.setup.loop=!0),i.hasOwnProperty("center")&&(this.setup.center=!0),i.hasOwnProperty("axis")&&(this.setup.axis=i.axis),i.hasOwnProperty("preventScrollOnTouch")&&(this.setup.preventScrollOnTouch=i.preventScrollOnTouch),i.hasOwnProperty("swipeAngle")&&(this.setup.swipeAngle=i.swipeAngle),this.root.querySelector("img.bn-lazy")||(this.setup.lazyload=!1)}catch(t){console.warn("[Bnly-v5] Get config failed with",t)}return this.setup},Bt.prototype.applySlider=function(t=0){const e=/beon-banner__slides/.test(this.root.className),n=e?this.root:this.root.querySelector(this.options.containerClass);if(!n&&t<10)return window.setTimeout(function(){const e=t+1;this.applySlider(e)}.bind(this),200);if(t>0)return!1;this.setup.container=n,this.root.classList.add("slider-initialized");const i=()=>{this.slider=zt(this.setup),this.dispatchSliderInitializedEvent(),this.bindTransitionEvents(),this.bindBreakpointEvents()};return e?window.setTimeout(()=>{i(),this.root.classList.add("banner-slider-initialized")},100):i(),this},Bt.prototype.dispatchSliderInitializedEvent=function(){var t=this.root,e=new CustomEvent("beon.slider.initialized",{detail:{slide:t}});document.dispatchEvent(e)},Bt.prototype.bindTransitionEvents=function(){this.slider.events.on("indexChanged",this.sendTransitionEvent.bind(this))},Bt.prototype.sendTransitionEvent=function(){var t=this.root,e=new CustomEvent("beon.slider.transitioned",{detail:{slide:t}});document.dispatchEvent(e)},Bt.prototype.bindBreakpointEvents=function(){this.slider.events.on("newBreakpointEnd",this.updateColumnsCount.bind(this)),this.updateColumnsCount()},Bt.prototype.updateColumnsCount=function(){var t=this.slider.getInfo().items;return this.root.className=this.root.className.replace(/bn-columns--[0-9]+/i,""),this.root.className+=" bn-columns--"+t,this},Bt.prototype.extendObject=function(t,e){if(window.Object)return Object.assign(t,e);for(var n in t)e.hasOwnProperty(n)&&(t[n]=e[n]);return t};var Dt=function(){this.initializeSliders(),this.bindEvents()};const Mt=Dt;Dt.prototype.bindEvents=function(){document.addEventListener("DOMContentLoaded",this.initializeSliders.bind(this)),document.addEventListener("beon.buddy.elements.handle.item.inject.success",this.initializeSliderFromInjection.bind(this)),document.addEventListener("beon.buddy.inject.after",this.initializeSliderFromInjection.bind(this))},Dt.prototype.initializeSliders=function(){var t=document.querySelectorAll(".beon-slider:not(.slider-initialized)");Array.prototype.slice.call(t).forEach(function(t,e){this.initializeSlider(t,"DOMContentLoaded")}.bind(this))},Dt.prototype.initializeSliderFromInjection=function(t){const e=t.detail.container;let n=[];e.querySelector(".bly-banner")?n.push(e.parentElement):n=e.querySelectorAll(".beon-slider:not(.slider-initialized)"),n&&Array.prototype.slice.call(n).forEach(function(t,e){"loading"===document.readyState?document.addEventListener("DOMContentLoaded",function(){this.initializeSlider(t,"DOMContentLoaded")}.bind(this)):this.initializeSlider(t,"from_injection")}.bind(this))},Dt.prototype.initializeSlider=function(t,e){return new Promise(n=>{window.beone&&["60ecd27e-38de-473c-a2c7-fc76dcb42efb","4b1eb4f0-9f69-40c0-998c-92f0eea4b852"].includes(window.beone.account)?function(t){try{const e=t.querySelector(".beon-slider__frame");e&&((({element:t,sliderFrame:e})=>{try{if(t.closest(".beon-showcase--with-pivot")&&!t.classList.contains("glide")){const e=document.createElement("div");t.parentNode.insertBefore(e,t),e.appendChild(t)}t.classList.add("glide"),e.classList.add("glide__track"),e.setAttribute("data-glide-el","track"),e.querySelector(".beon-slider__slides").classList.add("glide__slides"),e.querySelectorAll(".beon-slider__slide").forEach(t=>t.classList.add("glide__slide"))}catch(t){console.warn("[Bnly] Setup slider structure failed with",t)}})({element:t,sliderFrame:e}),(({sliderFrame:t})=>{try{if(t.parentNode.querySelector(".glide__arrows"))return;const e=document.createElement("div");e.setAttribute("data-glide-el","controls"),e.classList.add("glide__arrows");const n=document.createElement("button");n.textContent="prev",n.setAttribute("data-glide-dir","|<"),n.setAttribute("class","glide__arrow glide__arrow--left bnly__arrow bnly__arrow--left");const i=document.createElement("button");i.textContent="next",i.setAttribute("data-glide-dir","|>"),i.setAttribute("class","glide__arrow glide__arrow--right bnly__arrow bnly__arrow--right"),e.appendChild(n),e.appendChild(i),t.parentNode.appendChild(e)}catch(t){console.warn("[Bnly] Inserting showcase arrows failed with",t)}})({sliderFrame:e}),(({sliderFrame:t})=>{try{t.querySelectorAll("img").forEach(t=>{t.src=t.getAttribute("data-src"),t.classList.add("loaded")})}catch(t){console.warn("[Bnly] Setup image lazyload failed with",t)}})({sliderFrame:e}),(({element:t})=>{try{const e=JSON.parse(t.getAttribute("data-config")),n=1e3*e.autoplay,i={};let o;Object.entries(e.viewports).forEach(([t,e])=>{"def"===t?o=e.i:i[t]={perView:e.i}});const r=new J(t.parentNode,{type:"carousel",autoplay:n||!1,hoverpause:!0,keyboard:!0,animationDuration:800,swipeThreshold:80,dragThreshold:120,perTouch:!1,startAt:0,peek:0,perView:o,breakpoints:i}).mount();if(t.closest(".beon-showcase--with-pivot")){const e=()=>{"null"!==t.offsetParent&&r.update()};document.removeEventListener("beonly-pivot--changed",e),document.addEventListener("beonly-pivot--changed",e)}}catch(t){console.warn("[Bnly] Init g-slider failed with",t)}})({element:t}))}catch(t){console.warn("[Bnly] Init g-slider failed with",t)}}(t):new Bt(t),window.beone.dispatchEvent("buddy.slider.init.after",{element:t,method:e,date:(new Date).toISOString()}),n()})},new Dt},805:t=>{"use strict";const e=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);t.exports.assign=function(t){const n=Array.prototype.slice.call(arguments,1);for(;n.length;){const i=n.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(const n in i)e(i,n)&&(t[n]=i[n])}}return t},t.exports.flattenChunks=t=>{let e=0;for(let n=0,i=t.length;n{var e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(e){var n=new Uint8Array(16);t.exports=function(){return e(n),n}}else{var i=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)3&e||(t=4294967296*Math.random()),i[e]=t>>>((3&e)<<3)&255;return i}}},823:t=>{"use strict";const e=new Uint32Array((()=>{let t,e=[];for(var n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e})());t.exports=(t,n,i,o)=>{const r=e,s=o+i;t^=-1;for(let e=o;e>>8^r[255&(t^n[e])];return-1^t}},895:(t,e,n)=>{"use strict";function i(t,e){window.dataLayer=window.dataLayer||[],window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"beonly_view_promotion",ecommerce:{promotion_id:e,promotion_name:"[bly] "+t,items:[]}})}function o(t,e){window.dataLayer=window.dataLayer||[],window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"beonly_select_promotion",ecommerce:{promotion_id:e,promotion_name:"[bly] "+t}})}function r(){try{document.addEventListener("beon.notification.initialized",t=>{const e=(t.detail||{}).element;if(e){const t=e.getAttribute("data-event-analytics");if(t){const n=e.parentNode.getAttribute("id"),r=t.slice(1,-1).split(",");if(3===r.length){const t=r[0],s=r[1],a=r[2];/true/.test(s)&&(/true/.test(a)&&function(t){var e=sessionStorage.getItem("bnly-promoviews");(e=e?JSON.parse(e):[]).includes(t)||(e.push(t),sessionStorage.setItem("bnly-promoviews",JSON.stringify(e)))}(n),i(t,n),function(t,e,n){const i=t.querySelector(".beon-notificacao__cta-label");if(i){const t=()=>o(e,n);i.removeEventListener("click",t),i.addEventListener("click",t)}}(e,t,n))}}}})}catch(t){console.warn("[Beonly] Analytics injection failed with",t)}}function s(){this.init()}n.d(e,{A:()=>s}),s.prototype.init=function(){this.initIntersectionObserver(),this.initShowcaseEvents(),this.initNotificationEvents(),this.initBannersEvents()},s.prototype.initIntersectionObserver=function(){this.intersectionObserver,this.sentSkuEvents=[],this.pendingEvents=[],this.intersectionObserver=new IntersectionObserver(this.handleIntersections.bind(this),{root:null,rootMargin:"0px",scrollMargin:"0px",threshold:.8,trackVisibility:!1})},s.prototype.handleIntersections=function(t,e){if(t&&t.length){const e=t.filter(({intersectionRatio:t})=>t>.8);if(e.length){const t=e.reduce((t,e)=>{const{target:n}=e,i=this.getParentElement(n,"beon-showcase"),o=n.getAttribute("data-product-sku");if(!i)return console.warn("target outsite beon-showcase element",n),t;const r=i.id;return t.push([n,i,r,o]),t},[]);this.pendingEvents=this.pendingEvents||[],Array.prototype.push.apply(this.pendingEvents,t),window.clearTimeout(this.pendingEventsTimeout),this.pendingEventsTimeout=window.setTimeout(this.sendPendingEvents.bind(this),500)}}},s.prototype.sendPendingEvents=function(){if(!this.pendingEvents.length)return;const t=this.pendingEvents.reduce((t,e)=>{const[n,i,o,r]=e;if(!t[o]){const e=JSON.parse(i.getAttribute("data-event-analytics").replace(/^(\[)([^,]+)(,)/,'$1"$2"$3'));t[o]={showcase:i,showcaseAnalyticsData:e,products:[],isGrid:i.classList.contains("beon-showcase--grid")}}const s=[o,r].join(":");return this.sentSkuEvents.includes(s)||(this.sentSkuEvents.push(s),t[o].products.push(n)),t},{});this.pendingEvents=[],Object.values(t).forEach(t=>this.sendViewItemListEvent(t))},s.prototype.initShowcaseEvents=function(){document.addEventListener("beon.buddy.elements.handle.item.inject.success",t=>{try{const{container:e}=t.detail,n=e.querySelector(".beon-showcase");if(!n)return;const i=e.querySelectorAll(".beon-showcase__item"),o=JSON.parse(n.getAttribute("data-event-analytics").replace(/^(\[)([^,]+)(,)/,'$1"$2"$3'));o[1]&&i.forEach(t=>{t.addEventListener("click",e=>{e.target.closest("a")&&this.sendSelectItemEvent({item:t,showcase:n,showcaseAnalyticsData:o})}),this.intersectionObserver.observe(t)})}catch(t){console.warn("[Bnly-Analytics] Failed to init showcase events:",t)}})},s.prototype.initNotificationEvents=function(){r()},s.prototype.initBannersEvents=function(){document.addEventListener("beon.buddy.elements.handle.item.inject.success",t=>{try{const{container:n}=t.detail,r=n.querySelector(".bly-banner");if(!r)return;const[s,a,c]=JSON.parse(r.getAttribute("data-event-analytics"));if(a){i(s,r.parentNode.id);var e=r.querySelector(".bly-banner__cta");e&&e.addEventListener("click",t=>{const e=t.target.closest("a"),n=e.parentNode,i=n.parentNode,[r,s,a]=JSON.parse(n.getAttribute("data-event-analytics"));e&&o(r,i.id)})}}catch(e){console.warn("[Bnly-Analytics] Failed to init banner events:",e,t)}})},s.prototype.handleViewItemListEvent=function({showcase:t,showcaseAnalyticsData:e}){try{const n=e[2],i=e[3];if(n){const e=t.id,n=JSON.parse(sessionStorage.getItem("bnly-showcase-impressions"))||[];if(n.includes(e))return;sessionStorage.setItem("bnly-showcase-impressions",JSON.stringify([...n,e]))}const o=t.classList.contains("beon-showcase--grid");if(i||o){const n=t.querySelectorAll(".beon-showcase__item");this.sendViewItemListEvent({products:n,showcase:t,showcaseAnalyticsData:e,isGrid:o})}else{const n=t.querySelectorAll(".tns-slide-active .beon-showcase__item");this.sendViewItemListEvent({products:n,showcase:t,showcaseAnalyticsData:e,isGrid:o})}}catch(t){console.warn("[Bnly-Analytics] Handle view item list event failed with",t)}},s.prototype.sendViewItemListEvent=function({showcase:t,products:e,showcaseAnalyticsData:n,isGrid:i}){try{if(!e.length)return void console.warn("refusing to send empty list event");const o=n[0],r=t.querySelector(".beon-showcase__title span, .beon-showcase__headline"),s=String(r?r.textContent:o).trim(),a=[];e.forEach(t=>{const e=t.getAttribute("data-product-id"),n=t.getAttribute("data-product-sku"),r=t.querySelector(".beon-showcase__item-title a").getAttribute("title"),c=t.querySelector(".detail-brand"),l=c?c.innerText:void 0;let u;const d=t.querySelector(".beon-showcase__item-price--from .beon-showcase__price .value");d&&(u=Number(d.textContent.replaceAll(".","").replace(",",".")));const h=Number(t.querySelector(".beon-showcase__item-price--to .beon-showcase__price .value, .beon-showcase__item-price-box--simple .beon-showcase__price .value").textContent.replaceAll(".","").replace(",",".")),f=u&&h?Number((u-h).toFixed(2)):void 0,p=i?Array.from(t.parentNode.children).indexOf(t):Array.from(t.parentNode.parentNode.children).indexOf(t.parentNode);a.push({item_id:e,item_name:r,discount:f,index:p,item_brand:l,item_list_id:o,item_list_name:`[Bly] ${s}`,item_variant:n,price:h})});const c="bly_view_item_list",l={event:c,ecommerce:{item_list_id:o,item_list_name:`[Bly] ${s}`,items:a}};(window.dataLayer||[]).push({ecommerce:null}),(window.dataLayer||[]).push(l);const u=new CustomEvent(c,{detail:{...l,showcase:t,products:e}});document.dispatchEvent(u)}catch(t){console.warn("[Bnly-Analytics] Send view item list event failed with",t)}},s.prototype.sendSelectItemEvent=function({showcase:t,item:e,showcaseAnalyticsData:n}){try{const i=n[0],o=t.querySelector(".beon-showcase__title span, .beon-showcase__headline"),r=String(o?o.textContent:i).trim(),s=e.getAttribute("data-product-id"),a=e.getAttribute("data-product-sku"),c=e.querySelector(".beon-showcase__item-title a").getAttribute("title"),l=e.querySelector(".detail-brand"),u=l?l.innerText:void 0;let d;const h=e.querySelector(".beon-showcase__item-price--from .beon-showcase__price .value");h&&(d=Number(h.textContent.replaceAll(".","").replace(",",".")));const f=Number(e.querySelector(".beon-showcase__item-price--to .beon-showcase__price .value, .beon-showcase__item-price-box--simple .beon-showcase__price .value").textContent.replaceAll(".","").replace(",",".")),p=d&&f?Number((d-f).toFixed(2)):void 0,m=e.closest(".beon-showcase--grid")?Array.from(e.parentNode.children).indexOf(e):Array.from(e.parentNode.parentNode.children).indexOf(e.parentNode),g="bly_select_item",b={event:g,ecommerce:{item_list_id:i,item_list_name:`[Bly] ${r}`,items:[{item_id:s,item_name:c,discount:p,index:m,item_brand:u,item_list_id:i,item_list_name:`[Bly] ${r}`,item_variant:a,price:f}]}};(window.dataLayer||[]).push({ecommerce:null}),(window.dataLayer||[]).push(b);const v=new CustomEvent(g,{detail:b});document.dispatchEvent(v)}catch(t){console.warn("[Bnly-Analytics] Send select item event failed with",t)}},s.prototype.getParentElement=function(t,e){try{return t.classList&&t.classList.contains(e)?t:t.parentElement?this.getParentElement(t.parentElement,e):null}catch(t){console.warn("[Bly] Getting parent element failed with",t)}}},996:t=>{"use strict";let e=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){e=!1}const n=new Uint8Array(256);for(let t=0;t<256;t++)n[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;n[254]=n[254]=1,t.exports.string2buf=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,n,i,o,r,s=t.length,a=0;for(o=0;o>>6,e[r++]=128|63&n):n<65536?(e[r++]=224|n>>>12,e[r++]=128|n>>>6&63,e[r++]=128|63&n):(e[r++]=240|n>>>18,e[r++]=128|n>>>12&63,e[r++]=128|n>>>6&63,e[r++]=128|63&n);return e},t.exports.buf2string=(t,i)=>{const o=i||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,i));let r,s;const a=new Array(2*o);for(s=0,r=0;r4)a[s++]=65533,r+=i-1;else{for(e&=2===i?31:3===i?15:7;i>1&&r1?a[s++]=65533:e<65536?a[s++]=e:(e-=65536,a[s++]=55296|e>>10&1023,a[s++]=56320|1023&e)}}return((t,n)=>{if(n<65534&&t.subarray&&e)return String.fromCharCode.apply(null,t.length===n?t:t.subarray(0,n));let i="";for(let e=0;e{(e=e||t.length)>t.length&&(e=t.length);let i=e-1;for(;i>=0&&128==(192&t[i]);)i--;return i<0||0===i?e:i+n[t[i]]>e?i:e}},998:t=>{"use strict";const e=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),n=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),i=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),o=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);t.exports=(t,r,s,a,c,l,u,d)=>{const h=d.bits;let f,p,m,g,b,v,y=0,_=0,w=0,E=0,k=0,x=0,A=0,S=0,C=0,L=0,T=null;const O=new Uint16Array(16),I=new Uint16Array(16);let R,z,B,D=null;for(y=0;y<=15;y++)O[y]=0;for(_=0;_=1&&0===O[E];E--);if(k>E&&(k=E),0===E)return c[l++]=20971520,c[l++]=20971520,d.bits=1,0;for(w=1;w0&&(0===t||1!==E))return-1;for(I[1]=0,y=1;y<15;y++)I[y+1]=I[y]+O[y];for(_=0;_852||2===t&&C>592)return 1;for(;;){R=y-A,u[_]+1=v?(z=D[u[_]-v],B=T[u[_]-v]):(z=96,B=0),f=1<>A)+p]=R<<24|z<<16|B}while(0!==p);for(f=1<>=1;if(0!==f?(L&=f-1,L+=f):L=0,_++,0===--O[y]){if(y===E)break;y=r[s+u[_]]}if(y>k&&(L&g)!==m){for(0===A&&(A=k),b+=w,x=y-A,S=1<852||2===t&&C>592)return 1;m=L&g,c[m]=k<<24|x<<16|b-l}}return 0!==L&&(c[b+L]=y-A<<24|64<<16),d.bits=k,0}}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var n=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(t,e)=>{for(var n in e)__webpack_require__.o(e,n)&&!__webpack_require__.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var __webpack_exports__={};(()=>{"use strict";var t,e,n=__webpack_require__(629),i=__webpack_require__(533);t=window._beonlog||!1,e=(0,n.A)("loader",t),void 0!==window.beonobject?window.beone?e("beon engine already inited. duplicate tags?"):(window.beone=new i.A,window.beone.debug=t,window.beone.env=window._beonenv||"production",window.beone.init()):e("beon object not loaded properly")})()})();