var Xi=Object.defineProperty;var Zi=(_r,Fe,$r)=>Fe in _r?Xi(_r,Fe,{enumerable:!0,configurable:!0,writable:!0,value:$r}):_r[Fe]=$r;var ei=(_r,Fe,$r)=>(Zi(_r,typeof Fe!="symbol"?Fe+"":Fe,$r),$r);var main="",app="",commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function getDefaultExportFromCjs(_r){return _r&&_r.__esModule&&Object.prototype.hasOwnProperty.call(_r,"default")?_r.default:_r}function getAugmentedNamespace(_r){if(_r.__esModule)return _r;var Fe=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(_r).forEach(function($r){var Fr=Object.getOwnPropertyDescriptor(_r,$r);Object.defineProperty(Fe,$r,Fr.get?Fr:{enumerable:!0,get:function(){return _r[$r]}})}),Fe}var lazysizes={exports:{}};(function(_r){(function(Fe,$r){var Fr=$r(Fe,Fe.document,Date);Fe.lazySizes=Fr,_r.exports&&(_r.exports=Fr)})(typeof window!="undefined"?window:{},function($r,Fr,jr){var zr,Vr;if(function(){var yn,wn={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};Vr=$r.lazySizesConfig||$r.lazysizesConfig||{};for(yn in wn)yn in Vr||(Vr[yn]=wn[yn])}(),!Fr||!Fr.getElementsByClassName)return{init:function(){},cfg:Vr,noSupport:!0};var Wr=Fr.documentElement,Kr=$r.HTMLPictureElement,Gr="addEventListener",Yr="getAttribute",Qr=$r[Gr].bind($r),Jr=$r.setTimeout,Zr=$r.requestAnimationFrame||Jr,tn=$r.requestIdleCallback,en=/^picture$/i,rn=["load","error","lazyincluded","_lazyloaded"],nn={},on=Array.prototype.forEach,un=function(yn,wn){return nn[wn]||(nn[wn]=new RegExp("(\\s|^)"+wn+"(\\s|$)")),nn[wn].test(yn[Yr]("class")||"")&&nn[wn]},an=function(yn,wn){un(yn,wn)||yn.setAttribute("class",(yn[Yr]("class")||"").trim()+" "+wn)},sn=function(yn,wn){var gn;(gn=un(yn,wn))&&yn.setAttribute("class",(yn[Yr]("class")||"").replace(gn," "))},dn=function(yn,wn,gn){var Pn=gn?Gr:"removeEventListener";gn&&dn(yn,wn),rn.forEach(function(Tn){yn[Pn](Tn,wn)})},ln=function(yn,wn,gn,Pn,Tn){var An=Fr.createEvent("Event");return gn||(gn={}),gn.instance=zr,An.initEvent(wn,!Pn,!Tn),An.detail=gn,yn.dispatchEvent(An),An},cn=function(yn,wn){var gn;!Kr&&(gn=$r.picturefill||Vr.pf)?(wn&&wn.src&&!yn[Yr]("srcset")&&yn.setAttribute("srcset",wn.src),gn({reevaluate:!0,elements:[yn]})):wn&&wn.src&&(yn.src=wn.src)},fn=function(yn,wn){return(getComputedStyle(yn,null)||{})[wn]},pn=function(yn,wn,gn){for(gn=gn||yn.offsetWidth;gn<Vr.minSize&&wn&&!yn._lazysizesWidth;)gn=wn.offsetWidth,wn=wn.parentNode;return gn},hn=function(){var yn,wn,gn=[],Pn=[],Tn=gn,An=function(){var Mn=Tn;for(Tn=gn.length?Pn:gn,yn=!0,wn=!1;Mn.length;)Mn.shift()();yn=!1},Dn=function(Mn,Ln){yn&&!Ln?Mn.apply(this,arguments):(Tn.push(Mn),wn||(wn=!0,(Fr.hidden?Jr:Zr)(An)))};return Dn._lsFlush=An,Dn}(),mn=function(yn,wn){return wn?function(){hn(yn)}:function(){var gn=this,Pn=arguments;hn(function(){yn.apply(gn,Pn)})}},Sn=function(yn){var wn,gn=0,Pn=Vr.throttleDelay,Tn=Vr.ricTimeout,An=function(){wn=!1,gn=jr.now(),yn()},Dn=tn&&Tn>49?function(){tn(An,{timeout:Tn}),Tn!==Vr.ricTimeout&&(Tn=Vr.ricTimeout)}:mn(function(){Jr(An)},!0);return function(Mn){var Ln;(Mn=Mn===!0)&&(Tn=33),!wn&&(wn=!0,Ln=Pn-(jr.now()-gn),Ln<0&&(Ln=0),Mn||Ln<9?Dn():Jr(Dn,Ln))}},vn=function(yn){var wn,gn,Pn=99,Tn=function(){wn=null,yn()},An=function(){var Dn=jr.now()-gn;Dn<Pn?Jr(An,Pn-Dn):(tn||Tn)(Tn)};return function(){gn=jr.now(),wn||(wn=Jr(An,Pn))}},bn=function(){var yn,wn,gn,Pn,Tn,An,Dn,Mn,Ln,On,qn,Qn,di=/^img$/i,fi=/^iframe$/i,En="onscroll"in $r&&!/(gle|ing)bot/.test(navigator.userAgent),xn=0,kn=0,Rn=0,Nn=-1,Cn=function(zn){Rn--,(!zn||Rn<0||!zn.target)&&(Rn=0)},Bn=function(zn){return Qn==null&&(Qn=fn(Fr.body,"visibility")=="hidden"),Qn||!(fn(zn.parentNode,"visibility")=="hidden"&&fn(zn,"visibility")=="hidden")},Fn=function(zn,Yn){var oi,ii=zn,si=Bn(zn);for(Mn-=Yn,qn+=Yn,Ln-=Yn,On+=Yn;si&&(ii=ii.offsetParent)&&ii!=Fr.body&&ii!=Wr;)si=(fn(ii,"opacity")||1)>0,si&&fn(ii,"overflow")!="visible"&&(oi=ii.getBoundingClientRect(),si=On>oi.left&&Ln<oi.right&&qn>oi.top-1&&Mn<oi.bottom+1);return si},jn=function(){var zn,Yn,oi,ii,si,pi,Pi,ti,Ri,Si,Ei,Ti,xi=zr.elements;if((Pn=Vr.loadMode)&&Rn<8&&(zn=xi.length)){for(Yn=0,Nn++;Yn<zn;Yn++)if(!(!xi[Yn]||xi[Yn]._lazyRace)){if(!En||zr.prematureUnveil&&zr.prematureUnveil(xi[Yn])){Xn(xi[Yn]);continue}if((!(ti=xi[Yn][Yr]("data-expand"))||!(pi=ti*1))&&(pi=kn),Si||(Si=!Vr.expand||Vr.expand<1?Wr.clientHeight>500&&Wr.clientWidth>500?500:370:Vr.expand,zr._defEx=Si,Ei=Si*Vr.expFactor,Ti=Vr.hFac,Qn=null,kn<Ei&&Rn<1&&Nn>2&&Pn>2&&!Fr.hidden?(kn=Ei,Nn=0):Pn>1&&Nn>1&&Rn<6?kn=Si:kn=xn),Ri!==pi&&(An=innerWidth+pi*Ti,Dn=innerHeight+pi,Pi=pi*-1,Ri=pi),oi=xi[Yn].getBoundingClientRect(),(qn=oi.bottom)>=Pi&&(Mn=oi.top)<=Dn&&(On=oi.right)>=Pi*Ti&&(Ln=oi.left)<=An&&(qn||On||Ln||Mn)&&(Vr.loadHidden||Bn(xi[Yn]))&&(wn&&Rn<3&&!ti&&(Pn<3||Nn<4)||Fn(xi[Yn],pi))){if(Xn(xi[Yn]),si=!0,Rn>9)break}else!si&&wn&&!ii&&Rn<4&&Nn<4&&Pn>2&&(yn[0]||Vr.preloadAfterLoad)&&(yn[0]||!ti&&(qn||On||Ln||Mn||xi[Yn][Yr](Vr.sizesAttr)!="auto"))&&(ii=yn[0]||xi[Yn])}ii&&!si&&Xn(ii)}},In=Sn(jn),Un=function(zn){var Yn=zn.target;if(Yn._lazyCache){delete Yn._lazyCache;return}Cn(zn),an(Yn,Vr.loadedClass),sn(Yn,Vr.loadingClass),dn(Yn,Gn),ln(Yn,"lazyloaded")},Vn=mn(Un),Gn=function(zn){Vn({target:zn.target})},Wn=function(zn,Yn){var oi=zn.getAttribute("data-load-mode")||Vr.iframeLoadMode;oi==0?zn.contentWindow.location.replace(Yn):oi==1&&(zn.src=Yn)},Kn=function(zn){var Yn,oi=zn[Yr](Vr.srcsetAttr);(Yn=Vr.customMedia[zn[Yr]("data-media")||zn[Yr]("media")])&&zn.setAttribute("media",Yn),oi&&zn.setAttribute("srcset",oi)},ni=mn(function(zn,Yn,oi,ii,si){var pi,Pi,ti,Ri,Si,Ei;(Si=ln(zn,"lazybeforeunveil",Yn)).defaultPrevented||(ii&&(oi?an(zn,Vr.autosizesClass):zn.setAttribute("sizes",ii)),Pi=zn[Yr](Vr.srcsetAttr),pi=zn[Yr](Vr.srcAttr),si&&(ti=zn.parentNode,Ri=ti&&en.test(ti.nodeName||"")),Ei=Yn.firesLoad||"src"in zn&&(Pi||pi||Ri),Si={target:zn},an(zn,Vr.loadingClass),Ei&&(clearTimeout(gn),gn=Jr(Cn,2500),dn(zn,Gn,!0)),Ri&&on.call(ti.getElementsByTagName("source"),Kn),Pi?zn.setAttribute("srcset",Pi):pi&&!Ri&&(fi.test(zn.nodeName)?Wn(zn,pi):zn.src=pi),si&&(Pi||Ri)&&cn(zn,{src:pi})),zn._lazyRace&&delete zn._lazyRace,sn(zn,Vr.lazyClass),hn(function(){var Ti=zn.complete&&zn.naturalWidth>1;(!Ei||Ti)&&(Ti&&an(zn,Vr.fastLoadedClass),Un(Si),zn._lazyCache=!0,Jr(function(){"_lazyCache"in zn&&delete zn._lazyCache},9)),zn.loading=="lazy"&&Rn--},!0)}),Xn=function(zn){if(!zn._lazyRace){var Yn,oi=di.test(zn.nodeName),ii=oi&&(zn[Yr](Vr.sizesAttr)||zn[Yr]("sizes")),si=ii=="auto";(si||!wn)&&oi&&(zn[Yr]("src")||zn.srcset)&&!zn.complete&&!un(zn,Vr.errorClass)&&un(zn,Vr.lazyClass)||(Yn=ln(zn,"lazyunveilread").detail,si&&_n.updateElem(zn,!0,zn.offsetWidth),zn._lazyRace=!0,Rn++,ni(zn,Yn,si,ii,oi))}},hi=vn(function(){Vr.loadMode=3,In()}),gi=function(){Vr.loadMode==3&&(Vr.loadMode=2),hi()},bi=function(){if(!wn){if(jr.now()-Tn<999){Jr(bi,999);return}wn=!0,Vr.loadMode=3,In(),Qr("scroll",gi,!0)}};return{_:function(){Tn=jr.now(),zr.elements=Fr.getElementsByClassName(Vr.lazyClass),yn=Fr.getElementsByClassName(Vr.lazyClass+" "+Vr.preloadClass),Qr("scroll",In,!0),Qr("resize",In,!0),Qr("pageshow",function(zn){if(zn.persisted){var Yn=Fr.querySelectorAll("."+Vr.loadingClass);Yn.length&&Yn.forEach&&Zr(function(){Yn.forEach(function(oi){oi.complete&&Xn(oi)})})}}),$r.MutationObserver?new MutationObserver(In).observe(Wr,{childList:!0,subtree:!0,attributes:!0}):(Wr[Gr]("DOMNodeInserted",In,!0),Wr[Gr]("DOMAttrModified",In,!0),setInterval(In,999)),Qr("hashchange",In,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(zn){Fr[Gr](zn,In,!0)}),/d$|^c/.test(Fr.readyState)?bi():(Qr("load",bi),Fr[Gr]("DOMContentLoaded",In),Jr(bi,2e4)),zr.elements.length?(jn(),hn._lsFlush()):In()},checkElems:In,unveil:Xn,_aLSL:gi}}(),_n=function(){var yn,wn=mn(function(An,Dn,Mn,Ln){var On,qn,Qn;if(An._lazysizesWidth=Ln,Ln+="px",An.setAttribute("sizes",Ln),en.test(Dn.nodeName||""))for(On=Dn.getElementsByTagName("source"),qn=0,Qn=On.length;qn<Qn;qn++)On[qn].setAttribute("sizes",Ln);Mn.detail.dataAttr||cn(An,Mn.detail)}),gn=function(An,Dn,Mn){var Ln,On=An.parentNode;On&&(Mn=pn(An,On,Mn),Ln=ln(An,"lazybeforesizes",{width:Mn,dataAttr:!!Dn}),Ln.defaultPrevented||(Mn=Ln.detail.width,Mn&&Mn!==An._lazysizesWidth&&wn(An,On,Ln,Mn)))},Pn=function(){var An,Dn=yn.length;if(Dn)for(An=0;An<Dn;An++)gn(yn[An])},Tn=vn(Pn);return{_:function(){yn=Fr.getElementsByClassName(Vr.autosizesClass),Qr("resize",Tn)},checkElems:Tn,updateElem:gn}}(),$n=function(){!$n.i&&Fr.getElementsByClassName&&($n.i=!0,_n._(),bn._())};return Jr(function(){Vr.init&&$n()}),zr={cfg:Vr,autoSizer:_n,loader:bn,init:$n,uP:cn,aC:an,rC:sn,hC:un,fire:ln,gW:pn,rAF:hn},zr})})(lazysizes);const ledger=new WeakMap;function editLedger(_r,Fe,$r,Fr){var Wr,Kr;if(!_r&&!ledger.has(Fe))return!1;const jr=(Wr=ledger.get(Fe))!=null?Wr:new WeakMap;ledger.set(Fe,jr);const zr=(Kr=jr.get($r))!=null?Kr:new Set;jr.set($r,zr);const Vr=zr.has(Fr);return _r?zr.add(Fr):zr.delete(Fr),Vr&&_r}function safeClosest(_r,Fe){let $r=_r.target;if($r instanceof Text&&($r=$r.parentElement),$r instanceof Element&&_r.currentTarget instanceof Element){const Fr=$r.closest(Fe);if(Fr&&_r.currentTarget.contains(Fr))return Fr}}function delegate(_r,Fe,$r,Fr={}){const{signal:jr,base:zr=document}=Fr;if(jr!=null&&jr.aborted)return;const{once:Vr,...Wr}=Fr,Kr=zr instanceof Document?zr.documentElement:zr,Gr=Boolean(typeof Fr=="object"?Fr.capture:Fr),Yr=Zr=>{const tn=safeClosest(Zr,_r);if(tn){const en=Object.assign(Zr,{delegateTarget:tn});$r.call(Kr,en),Vr&&(Kr.removeEventListener(Fe,Yr,Wr),editLedger(!1,Kr,$r,Qr))}},Qr=JSON.stringify({selector:_r,type:Fe,capture:Gr});editLedger(!0,Kr,$r,Qr)||Kr.addEventListener(Fe,Yr,Wr),jr==null||jr.addEventListener("abort",()=>{editLedger(!1,Kr,$r,Qr)})}function e$C(){return e$C=Object.assign?Object.assign.bind():function(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe];for(var Fr in $r)Object.prototype.hasOwnProperty.call($r,Fr)&&(_r[Fr]=$r[Fr])}return _r},e$C.apply(this,arguments)}const n$7=(_r,Fe)=>String(_r).toLowerCase().replace(/[\s/_.]+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+|-+$/g,"")||Fe||"",i$d=({hash:_r}={})=>location.pathname+location.search+(_r?location.hash:""),s$9=(_r,Fe={})=>{const $r=e$C({url:_r=_r||i$d({hash:!0}),random:Math.random(),source:"swup"},Fe);history.pushState($r,"",_r)},o$5=(_r=null,Fe={})=>{_r=_r||i$d({hash:!0});const $r=e$C({},history.state,{url:_r,random:Math.random(),source:"swup"},Fe);history.replaceState($r,"",_r)},r$e=(_r,Fe,$r,Fr)=>{const jr=new AbortController;return delegate(_r,Fe,$r,Fr),{destroy:()=>jr.abort()}},a$a=(_r,Fe=document)=>Fe.querySelector(_r),l$8=(_r,Fe=document)=>Array.from(Fe.querySelectorAll(_r)),c$9=_r=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{_r()})})},u$8=_r=>window.CSS&&window.CSS.escape?CSS.escape(_r):_r,h$2=_r=>1e3*Number(_r.slice(0,-1).replace(",",".")),d$3=(_r,Fe)=>{var $r,Fr;let jr=document.createElement("html");jr.innerHTML=_r;let zr=[];Fe.forEach(Kr=>{if(a$a(Kr,jr)==null)return console.warn(`[swup] Container ${Kr} not found on page.`),null;l$8(Kr).length!==l$8(Kr,jr).length&&console.warn("[swup] Mismatched number of containers found on new page."),l$8(Kr).forEach((Gr,Yr)=>{l$8(Kr,jr)[Yr].setAttribute("data-swup",String(zr.length)),zr.push(l$8(Kr,jr)[Yr].outerHTML)})});const Vr=(($r=a$a("title",jr))==null?void 0:$r.innerText)||"",Wr=(Fr=a$a("body",jr))==null?void 0:Fr.className;return jr.innerHTML="",jr=null,{title:Vr,pageClass:Wr,blocks:zr,originalContent:_r}},p$3=(_r,Fe)=>{const $r={url:window.location.pathname+window.location.search,method:"GET",data:null,headers:{}},{url:Fr,method:jr,headers:zr,data:Vr}=e$C({},$r,_r),Wr=new XMLHttpRequest;return Wr.onreadystatechange=function(){Wr.readyState===4&&Fe(Wr)},Wr.open(jr,Fr,!0),Object.entries(zr).forEach(([Kr,Gr])=>{Wr.setRequestHeader(Kr,Gr)}),Wr.send(Vr),Wr};class g$2 extends URL{constructor(Fe,$r=document.baseURI){super(Fe.toString(),$r)}get url(){return this.pathname+this.search}static fromElement(Fe){const $r=Fe.getAttribute("href")||Fe.getAttribute("xlink:href");return new g$2($r)}static fromUrl(Fe){return new g$2(Fe)}}const m$3=(_r,Fe)=>{let $r=0;Fe.forEach(Fr=>{a$a(Fr,_r)==null?console.warn(`[swup] Container ${Fr} not found on page.`):l$8(Fr).forEach((jr,zr)=>{l$8(Fr,_r)[zr].setAttribute("data-swup",String($r)),$r++})})},f$5=_r=>/^to-/.test(_r)||["is-changing","is-rendering","is-popstate"].includes(_r),v$1=()=>{const _r=document.documentElement.className.split(" ").filter(f$5);document.documentElement.classList.remove(..._r)};class w{constructor(Fe){this.pages={},this.last=null,this.swup=void 0,this.swup=Fe}getCacheUrl(Fe){return this.swup.resolveUrl(g$2.fromUrl(Fe).url)}cacheUrl(Fe){Fe.url=this.getCacheUrl(Fe.url),Fe.url in this.pages==0&&(this.pages[Fe.url]=Fe),Fe.responseURL=this.getCacheUrl(Fe.responseURL),this.last=this.pages[Fe.url],this.swup.log(`Cache (${Object.keys(this.pages).length})`,this.pages)}getPage(Fe){return Fe=this.getCacheUrl(Fe),this.pages[Fe]}getCurrentPage(){return this.getPage(i$d())}exists(Fe){return(Fe=this.getCacheUrl(Fe))in this.pages}empty(){this.pages={},this.last=null,this.swup.log("Cache cleared")}remove(Fe){delete this.pages[this.getCacheUrl(Fe)]}}const E=function({event:_r,skipTransition:Fe}={}){if(Fe)return this.triggerEvent("transitionEnd",_r),this.cleanupAnimationClasses(),[Promise.resolve()];c$9(()=>{this.triggerEvent("animationInStart"),document.documentElement.classList.remove("is-animating")});const $r=this.getAnimationPromises("in");return Promise.all($r).then(()=>{this.triggerEvent("animationInDone"),this.triggerEvent("transitionEnd",_r),this.cleanupAnimationClasses()}),$r},P=_r=>{if(_r&&_r.charAt(0)==="#"&&(_r=_r.substring(1)),!_r)return null;const Fe=decodeURIComponent(_r);return document.getElementById(_r)||document.getElementById(Fe)||a$a(`a[name='${u$8(_r)}']`)||a$a(`a[name='${u$8(Fe)}']`)};let S="transition",b="transitionend",U="animation",k$1="animationend";function y$1(_r){const Fe=this.options.animationSelector;if(Fe===!1)return[Promise.resolve()];const $r=l$8(Fe,document.body);if(!$r.length)return console.warn(`[swup] No elements found matching animationSelector \`${Fe}\``),[Promise.resolve()];const Fr=$r.map(jr=>function(zr){const{type:Vr,timeout:Wr,propCount:Kr}=function(Gr,Yr=null){const Qr=window.getComputedStyle(Gr),Jr=`${S}Duration`,Zr=`${U}Delay`,tn=`${U}Duration`,en=Qr[`${S}Delay`].split(", "),rn=(Qr[Jr]||"").split(", "),nn=L$1(en,rn),on=(Qr[Zr]||"").split(", "),un=(Qr[tn]||"").split(", "),an=L$1(on,un);let sn="",dn=0,ln=0;return Yr==="transition"?nn>0&&(sn="transition",dn=nn,ln=rn.length):Yr==="animation"?an>0&&(sn="animation",dn=an,ln=un.length):(dn=Math.max(nn,an),sn=dn>0?nn>an?"transition":"animation":null,ln=sn?sn==="transition"?rn.length:un.length:0),{type:sn,timeout:dn,propCount:ln}}(zr);if(Vr&&Wr)return new Promise(Gr=>{const Yr=Vr==="transition"?b:k$1,Qr=performance.now();let Jr=0;const Zr=()=>{zr.removeEventListener(Yr,tn),Gr()},tn=en=>{if(en.target===zr){if(!(rn=>[b,k$1].includes(rn.type))(en))throw new Error("Not a transition or animation event.");(performance.now()-Qr)/1e3<en.elapsedTime||++Jr>=Kr&&Zr()}};setTimeout(()=>{Jr<Kr&&Zr()},Wr+1),zr.addEventListener(Yr,tn)})}(jr)).filter(Boolean);return Fr.length?Fr:(console.warn(`[swup] No CSS animation duration defined on elements matching \`${Fe}\``),[Promise.resolve()])}function L$1(_r,Fe){for(;_r.length<Fe.length;)_r=_r.concat(_r);return Math.max(...Fe.map(($r,Fr)=>h$2($r)+h$2(_r[Fr])))}window.ontransitionend===void 0&&window.onwebkittransitionend!==void 0&&(S="WebkitTransition",b="webkitTransitionEnd"),window.onanimationend===void 0&&window.onwebkitanimationend!==void 0&&(U="WebkitAnimation",k$1="webkitAnimationEnd");const C=function(_r){const Fe=d$3(_r.responseText,this.options.containers);return Fe?e$C({},Fe,{responseURL:_r.responseURL||window.location.href}):(console.warn("[swup] Received page is invalid."),null)};function T(_r){const Fe=this.options.requestHeaders,{url:$r}=_r;return this.cache.exists($r)?(this.triggerEvent("pageRetrievedFromCache"),Promise.resolve(this.cache.getPage($r))):new Promise((Fr,jr)=>{p$3(e$C({},_r,{headers:Fe}),zr=>{if(zr.status===500)return this.triggerEvent("serverError"),void jr($r);const Vr=this.getPageData(zr);if(!Vr||!Vr.blocks.length)return void jr($r);const Wr=e$C({},Vr,{url:$r});this.cache.cacheUrl(Wr),this.triggerEvent("pageLoaded"),Fr(Wr)})})}const H=function({event:_r,skipTransition:Fe}={}){const $r=_r instanceof PopStateEvent;if(Fe)return this.triggerEvent("animationSkipped"),[Promise.resolve()];this.triggerEvent("animationOutStart"),document.documentElement.classList.add("is-changing","is-leaving","is-animating"),$r&&document.documentElement.classList.add("is-popstate");const Fr=this.getAnimationPromises("out");return Promise.all(Fr).then(()=>{this.triggerEvent("animationOutDone")}),Fr};function R(_r){const{url:Fe}=_r;this.shouldIgnoreVisit(Fe)?window.location.href=Fe:this.performPageLoad(_r)}function A(_r){const{url:Fe,event:$r,customTransition:Fr}=_r!=null?_r:{},jr=$r instanceof PopStateEvent,zr=this.shouldSkipTransition({url:Fe,event:$r});this.triggerEvent("transitionStart",$r),this.updateTransition(i$d(),Fe,Fr),Fr!=null&&document.documentElement.classList.add(`to-${n$7(Fr)}`);const Vr=this.leavePage({event:$r,skipTransition:zr}),Wr=this.fetchPage(_r);jr||s$9(Fe+(this.scrollToElement||"")),this.currentPageUrl=i$d(),Promise.all([Wr,...Vr]).then(([Kr])=>{this.renderPage(Kr,{event:$r,skipTransition:zr})}).catch(Kr=>{Kr!==void 0&&(this.options.skipPopStateHandling=()=>(window.location=Kr,!0),history.go(-1))})}const $=function({blocks:_r,title:Fe}){return _r.forEach(($r,Fr)=>{document.body.querySelector(`[data-swup="${Fr}"]`).outerHTML=$r}),document.title=Fe,Promise.resolve()};function _(_r,Fe){const $r=this._handlers[_r];$r?$r.push(Fe):console.warn(`Unsupported event ${_r}.`)}function I(_r,Fe){if(_r&&Fe){const $r=this._handlers[_r];$r.includes(Fe)?this._handlers[_r]=$r.filter(Fr=>Fr!==Fe):console.warn(`Handler for event '${_r}' not found.`)}else _r?this._handlers[_r]=[]:Object.keys(this._handlers).forEach($r=>{this._handlers[$r]=[]})}function x$1(_r,Fe){this._handlers[_r].forEach(Fr=>{try{Fr(Fe)}catch(jr){console.error(jr)}});const $r=new CustomEvent(`swup:${_r}`,{detail:_r});document.dispatchEvent($r)}const O=function(_r){var Fe;if((Fe=_r)!=null&&Fe.isSwupPlugin){if(_r.swup=this,!_r._checkRequirements||_r._checkRequirements())return _r._beforeMount&&_r._beforeMount(),_r.mount(),this.plugins.push(_r),this.plugins}else console.error("Not a swup plugin instance",_r)};function q(_r){const Fe=this.findPlugin(_r);if(Fe)return Fe.unmount(),Fe._afterUnmount&&Fe._afterUnmount(),this.plugins=this.plugins.filter($r=>$r!==Fe),this.plugins;console.error("No such plugin",Fe)}function D(_r){return this.plugins.find(Fe=>Fe===_r||Fe.name===_r)}const M=function(_r,{event:Fe,skipTransition:$r}={}){if(document.documentElement.classList.remove("is-leaving"),!this.isSameResolvedUrl(i$d(),_r.url))return;const{url:Fr}=g$2.fromUrl(_r.responseURL);this.isSameResolvedUrl(i$d(),Fr)||(this.cache.cacheUrl(e$C({},_r,{url:Fr})),this.currentPageUrl=i$d(),o$5(Fr)),$r||document.documentElement.classList.add("is-rendering"),this.triggerEvent("willReplaceContent",Fe),this.replaceContent(_r).then(()=>{this.triggerEvent("contentReplaced",Fe),this.triggerEvent("pageView",Fe),this.options.cache||this.cache.empty(),this.enterPage({event:Fe,skipTransition:$r}),this.scrollToElement=null})};function N(_r,Fe,$r){this.transition={from:_r,to:Fe,custom:$r}}function W({event:_r}){return!(!(_r instanceof PopStateEvent)||this.options.animateHistoryBrowsing)}class V{constructor(Fe={}){this.version="3.0.8",this._handlers={animationInDone:[],animationInStart:[],animationOutDone:[],animationOutStart:[],animationSkipped:[],clickLink:[],contentReplaced:[],disabled:[],enabled:[],openPageInNewTab:[],pageLoaded:[],pageRetrievedFromCache:[],pageView:[],popState:[],samePage:[],samePageWithHash:[],serverError:[],transitionStart:[],transitionEnd:[],willReplaceContent:[]},this.scrollToElement=null,this.options=void 0,this.plugins=[],this.transition={},this.cache=void 0,this.currentPageUrl=i$d(),this.delegatedListeners={},this.boundPopStateHandler=void 0,this.loadPage=R,this.performPageLoad=A,this.leavePage=H,this.renderPage=M,this.replaceContent=$,this.enterPage=E,this.triggerEvent=x$1,this.delegateEvent=r$e,this.on=_,this.off=I,this.updateTransition=N,this.shouldSkipTransition=W,this.getAnimationPromises=y$1,this.getPageData=C,this.fetchPage=T,this.getAnchorElement=P,this.log=()=>{},this.use=O,this.unuse=q,this.findPlugin=D,this.getCurrentUrl=i$d,this.cleanupAnimationClasses=v$1,this.defaults={animateHistoryBrowsing:!1,animationSelector:'[class*="transition-"]',cache:!0,containers:["#swup"],ignoreVisit:($r,{el:Fr}={})=>!(Fr==null||!Fr.closest("[data-no-swup]")),linkSelector:"a[href]",plugins:[],resolveUrl:$r=>$r,requestHeaders:{"X-Requested-With":"swup",Accept:"text/html, application/xhtml+xml"},skipPopStateHandling:$r=>{var Fr;return((Fr=$r.state)==null?void 0:Fr.source)!=="swup"}},this.options=e$C({},this.defaults,Fe),this.boundPopStateHandler=this.popStateHandler.bind(this),this.cache=new w(this),this.enable()}enable(){typeof Promise!="undefined"?(this.delegatedListeners.click=r$e(this.options.linkSelector,"click",this.linkClickHandler.bind(this)),window.addEventListener("popstate",this.boundPopStateHandler),m$3(document.documentElement,this.options.containers),this.options.plugins.forEach(Fe=>this.use(Fe)),o$5(),this.triggerEvent("enabled"),document.documentElement.classList.add("swup-enabled"),this.triggerEvent("pageView")):console.warn("Promise is not supported")}destroy(){this.delegatedListeners.click.destroy(),window.removeEventListener("popstate",this.boundPopStateHandler),this.cache.empty(),this.options.plugins.forEach(Fe=>{this.unuse(Fe)}),l$8("[data-swup]").forEach(Fe=>{Fe.removeAttribute("data-swup")}),this.off(),this.triggerEvent("disabled"),document.documentElement.classList.remove("swup-enabled")}shouldIgnoreVisit(Fe,{el:$r,event:Fr}={}){const{origin:jr,url:zr,hash:Vr}=g$2.fromUrl(Fe);return jr!==window.location.origin||!(!$r||!this.triggerWillOpenNewWindow($r))||!!this.options.ignoreVisit(zr+Vr,{el:$r,event:Fr})}linkClickHandler(Fe){const $r=Fe.delegateTarget,{href:Fr,url:jr,hash:zr}=g$2.fromElement($r);if(this.shouldIgnoreVisit(Fr,{el:$r,event:Fe}))return;if(Fe.metaKey||Fe.ctrlKey||Fe.shiftKey||Fe.altKey)return void this.triggerEvent("openPageInNewTab",Fe);if(Fe.button!==0)return;if(this.triggerEvent("clickLink",Fe),Fe.preventDefault(),!jr||jr===i$d())return void this.handleLinkToSamePage(jr,zr,Fe);if(this.isSameResolvedUrl(jr,i$d()))return;this.scrollToElement=zr||null;const Vr=$r.getAttribute("data-swup-transition")||void 0;this.performPageLoad({url:jr,customTransition:Vr})}handleLinkToSamePage(Fe,$r,Fr){if($r){if(this.triggerEvent("samePageWithHash",Fr),!P($r))return console.warn(`Element for offset not found (#${$r})`);o$5(Fe+$r)}else this.triggerEvent("samePage",Fr)}triggerWillOpenNewWindow(Fe){return!!Fe.matches('[download], [target="_blank"]')}popStateHandler(Fe){var $r,Fr;if(this.options.skipPopStateHandling(Fe)||this.isSameResolvedUrl(i$d(),this.currentPageUrl))return;const jr=($r=(Fr=Fe.state)==null?void 0:Fr.url)!=null?$r:location.href;if(this.shouldIgnoreVisit(jr,{event:Fe}))return;const{url:zr,hash:Vr}=g$2.fromUrl(jr);Vr?this.scrollToElement=Vr:Fe.preventDefault(),this.triggerEvent("popState",Fe),this.options.animateHistoryBrowsing||(document.documentElement.classList.remove("is-animating"),v$1()),this.performPageLoad({url:zr,event:Fe})}resolveUrl(Fe){if(typeof this.options.resolveUrl!="function")return console.warn("[swup] options.resolveUrl expects a callback function."),Fe;const $r=this.options.resolveUrl(Fe);return $r&&typeof $r=="string"?$r.startsWith("//")||$r.startsWith("http")?(console.warn("[swup] options.resolveUrl needs to return a relative url"),Fe):$r:(console.warn("[swup] options.resolveUrl needs to return a url"),Fe)}isSameResolvedUrl(Fe,$r){return this.resolveUrl(Fe)===this.resolveUrl($r)}}var lib$7={},lib$6={};Object.defineProperty(lib$6,"__esModule",{value:!0});var _createClass$m=function(){function _r(Fe,$r){for(var Fr=0;Fr<$r.length;Fr++){var jr=$r[Fr];jr.enumerable=jr.enumerable||!1,jr.configurable=!0,"value"in jr&&(jr.writable=!0),Object.defineProperty(Fe,jr.key,jr)}}return function(Fe,$r,Fr){return $r&&_r(Fe.prototype,$r),Fr&&_r(Fe,Fr),Fe}}();function _classCallCheck$l(_r,Fe){if(!(_r instanceof Fe))throw new TypeError("Cannot call a class as a function")}var Plugin=function(){function _r(){_classCallCheck$l(this,_r),this.isSwupPlugin=!0}return _createClass$m(_r,[{key:"mount",value:function(){}},{key:"unmount",value:function(){}},{key:"_beforeMount",value:function(){}},{key:"_afterUnmount",value:function(){}}]),_r}();lib$6.default=Plugin;var loadComponents$1={},utils$l={};Object.defineProperty(utils$l,"__esModule",{value:!0});utils$l.query=query;utils$l.queryAll=queryAll;utils$l.toggleClass=toggleClass;utils$l.removeClass=removeClass;utils$l.addClass=addClass;utils$l.triggerEvent=triggerEvent$1;function query(_r){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document;return typeof _r!="string"?_r:Fe.querySelector(_r)}function queryAll(_r){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document;return typeof _r!="string"?_r:Array.prototype.slice.call(Fe.querySelectorAll(_r))}function toggleClass(_r,Fe){var $r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;$r===null?_r.classList.contains(Fe)?_r.classList.remove(Fe):_r.classList.add(Fe):$r?_r.classList.add(Fe):_r.classList.remove(Fe)}function removeClass(_r,Fe){return Array.isArray(_r)?_r.forEach(function($r){return $r.classList.remove(Fe)}):_r.classList.remove(Fe),_r}function addClass(_r,Fe){return Array.isArray(_r)?_r.forEach(function($r){return $r.classList.add(Fe)}):_r.classList.add(Fe),_r}function triggerEvent$1(_r,Fe){var $r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Fr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{bubbles:!0,cancelable:!0,detail:null};Fr.detail=$r;var jr=new CustomEvent(Fe,Fr);_r.dispatchEvent(jr)}var getComponentFromElement$1={};Object.defineProperty(getComponentFromElement$1,"__esModule",{value:!0});getComponentFromElement$1.default=getComponentFromElement;function getComponentFromElement(_r){return typeof _r=="string"&&(_r=document.getElementById(_r),!_r)?null:_r.__gia_component__}var createInstance$2={},config={};Object.defineProperty(config,"__esModule",{value:!0});var _createClass$l=function(){function _r(Fe,$r){for(var Fr=0;Fr<$r.length;Fr++){var jr=$r[Fr];jr.enumerable=jr.enumerable||!1,jr.configurable=!0,"value"in jr&&(jr.writable=!0),Object.defineProperty(Fe,jr.key,jr)}}return function(Fe,$r,Fr){return $r&&_r(Fe.prototype,$r),Fr&&_r(Fe,Fr),Fe}}();function _classCallCheck$k(_r,Fe){if(!(_r instanceof Fe))throw new TypeError("Cannot call a class as a function")}var Config$1=function(){function _r(){_classCallCheck$k(this,_r),this._options={log:!0}}return _createClass$l(_r,[{key:"set",value:function($r,Fr){this._options[$r]=Fr}},{key:"get",value:function($r){return this._options[$r]}}]),_r}();config.default=new Config$1;Object.defineProperty(createInstance$2,"__esModule",{value:!0});createInstance$2.default=createInstance$1;var _config$5=config,_config2$3=_interopRequireDefault$e(_config$5);function _interopRequireDefault$e(_r){return _r&&_r.__esModule?_r:{default:_r}}function createInstance$1(_r,Fe,$r,Fr){$r.prototype._name=Fe;var jr=new $r(_r,Fr);return _config2$3.default.get("log")&&console.info('Created instance of component "'+Fe+'".'),jr}Object.defineProperty(loadComponents$1,"__esModule",{value:!0});var _default$6=loadComponents$1.default=loadComponents,_utils$4=utils$l,_getComponentFromElement$1=getComponentFromElement$1,_getComponentFromElement2$1=_interopRequireDefault$d(_getComponentFromElement$1),_createInstance=createInstance$2,_createInstance2=_interopRequireDefault$d(_createInstance);function _interopRequireDefault$d(_r){return _r&&_r.__esModule?_r:{default:_r}}function loadComponents(){var _r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.documentElement;if(!_r||Object.keys(_r).length===0){console.warn("App has no components");return}var $r=[];(0,_utils$4.queryAll)("[g-component]",Fe).forEach(function(Fr){var jr=(0,_getComponentFromElement2$1.default)(Fr);if(jr)return console.warn(`Error: instance exists: 
`,jr),!0;var zr=Fr.getAttribute("g-component");typeof _r[zr]=="function"?$r.push((0,_createInstance2.default)(Fr,zr,_r[zr])):console.warn('Constructor for component "'+zr+'" not found.')}),$r.forEach(function(Fr){Fr._load()})}var removeComponents$1={},destroyInstance$1={};Object.defineProperty(destroyInstance$1,"__esModule",{value:!0});destroyInstance$1.default=destroyInstance;var _getComponentFromElement=getComponentFromElement$1,_getComponentFromElement2=_interopRequireDefault$c(_getComponentFromElement),_config$4=config,_config2$2=_interopRequireDefault$c(_config$4);function _interopRequireDefault$c(_r){return _r&&_r.__esModule?_r:{default:_r}}function destroyInstance(_r){var Fe=(0,_getComponentFromElement2.default)(_r);if(Fe){var $r=Fe._name;Fe.unmount(),_r.__gia_component__=null,_config2$2.default.get("log")&&console.info('Removed component "'+$r+'".')}}Object.defineProperty(removeComponents$1,"__esModule",{value:!0});removeComponents$1.default=removeComponents;var _utils$3=utils$l,_destroyInstance=destroyInstance$1,_destroyInstance2=_interopRequireDefault$b(_destroyInstance);function _interopRequireDefault$b(_r){return _r&&_r.__esModule?_r:{default:_r}}function removeComponents(){var _r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document.documentElement;(0,_utils$3.queryAll)("[g-component]",_r).forEach(function(Fe){(0,_destroyInstance2.default)(Fe)})}Object.defineProperty(lib$7,"__esModule",{value:!0});var _extends$6=Object.assign||function(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe];for(var Fr in $r)Object.prototype.hasOwnProperty.call($r,Fr)&&(_r[Fr]=$r[Fr])}return _r},_createClass$k=function(){function _r(Fe,$r){for(var Fr=0;Fr<$r.length;Fr++){var jr=$r[Fr];jr.enumerable=jr.enumerable||!1,jr.configurable=!0,"value"in jr&&(jr.writable=!0),Object.defineProperty(Fe,jr.key,jr)}}return function(Fe,$r,Fr){return $r&&_r(Fe.prototype,$r),Fr&&_r(Fe,Fr),Fe}}(),_plugin$4=lib$6,_plugin2$4=_interopRequireDefault$a(_plugin$4),_loadComponents=loadComponents$1,_loadComponents2=_interopRequireDefault$a(_loadComponents),_removeComponents=removeComponents$1,_removeComponents2=_interopRequireDefault$a(_removeComponents),_config$3=config,_config2$1=_interopRequireDefault$a(_config$3);function _interopRequireDefault$a(_r){return _r&&_r.__esModule?_r:{default:_r}}function _classCallCheck$j(_r,Fe){if(!(_r instanceof Fe))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$7(_r,Fe){if(!_r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Fe&&(typeof Fe=="object"||typeof Fe=="function")?Fe:_r}function _inherits$7(_r,Fe){if(typeof Fe!="function"&&Fe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Fe);_r.prototype=Object.create(Fe&&Fe.prototype,{constructor:{value:_r,enumerable:!1,writable:!0,configurable:!0}}),Fe&&(Object.setPrototypeOf?Object.setPrototypeOf(_r,Fe):_r.__proto__=Fe)}var GiaPlugin=function(_r){_inherits$7(Fe,_r);function Fe($r){_classCallCheck$j(this,Fe);var Fr=_possibleConstructorReturn$7(this,(Fe.__proto__||Object.getPrototypeOf(Fe)).call(this));Fr.name="GiaPlugin",Fr.mountComponents=function(){var zr=Array.prototype.slice.call(document.querySelectorAll("[data-swup]"));zr.forEach(function(Vr){return(0,_loadComponents2.default)(Fr.options.components,Vr)})},Fr.unloadComponents=function(){var zr=Array.prototype.slice.call(document.querySelectorAll("[data-swup]"));zr.forEach(function(Vr){return(0,_removeComponents2.default)(Vr)})};var jr={components:{},firstLoad:!0,log:!1};return Fr.options=_extends$6({},jr,$r),_config2$1.default.set("log",Fr.options.log),Fr}return _createClass$k(Fe,[{key:"mount",value:function(){this.options.firstLoad&&this.mountComponents(),this.swup.on("contentReplaced",this.mountComponents),this.swup.on("willReplaceContent",this.unloadComponents)}},{key:"unmount",value:function(){this.unloadComponents(),this.swup.off("contentReplaced",this.mountComponents),this.swup.off("willReplaceContent",this.unloadComponents)}}]),Fe}(_plugin2$4.default),_default$5=lib$7.default=GiaPlugin,lib$5={},pathToRegexp$1={exports:{}};pathToRegexp$1.exports=pathToRegexp;pathToRegexp$1.exports.match=match$1;pathToRegexp$1.exports.regexpToFunction=regexpToFunction;pathToRegexp$1.exports.parse=parse$5;pathToRegexp$1.exports.compile=compile$2;pathToRegexp$1.exports.tokensToFunction=tokensToFunction;pathToRegexp$1.exports.tokensToRegExp=tokensToRegExp;var DEFAULT_DELIMITER="/",PATH_REGEXP=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function parse$5(_r,Fe){for(var $r=[],Fr=0,jr=0,zr="",Vr=Fe&&Fe.delimiter||DEFAULT_DELIMITER,Wr=Fe&&Fe.whitelist||void 0,Kr=!1,Gr;(Gr=PATH_REGEXP.exec(_r))!==null;){var Yr=Gr[0],Qr=Gr[1],Jr=Gr.index;if(zr+=_r.slice(jr,Jr),jr=Jr+Yr.length,Qr){zr+=Qr[1],Kr=!0;continue}var Zr="",tn=Gr[2],en=Gr[3],rn=Gr[4],nn=Gr[5];if(!Kr&&zr.length){var on=zr.length-1,un=zr[on],an=Wr?Wr.indexOf(un)>-1:!0;an&&(Zr=un,zr=zr.slice(0,on))}zr&&($r.push(zr),zr="",Kr=!1);var sn=nn==="+"||nn==="*",dn=nn==="?"||nn==="*",ln=en||rn,cn=Zr||Vr;$r.push({name:tn||Fr++,prefix:Zr,delimiter:cn,optional:dn,repeat:sn,pattern:ln?escapeGroup(ln):"[^"+escapeString(cn===Vr?cn:cn+Vr)+"]+?"})}return(zr||jr<_r.length)&&$r.push(zr+_r.substr(jr)),$r}function compile$2(_r,Fe){return tokensToFunction(parse$5(_r,Fe),Fe)}function match$1(_r,Fe){var $r=[],Fr=pathToRegexp(_r,$r,Fe);return regexpToFunction(Fr,$r)}function regexpToFunction(_r,Fe){return function($r,Fr){var jr=_r.exec($r);if(!jr)return!1;for(var zr=jr[0],Vr=jr.index,Wr={},Kr=Fr&&Fr.decode||decodeURIComponent,Gr=1;Gr<jr.length;Gr++)if(jr[Gr]!==void 0){var Yr=Fe[Gr-1];Yr.repeat?Wr[Yr.name]=jr[Gr].split(Yr.delimiter).map(function(Qr){return Kr(Qr,Yr)}):Wr[Yr.name]=Kr(jr[Gr],Yr)}return{path:zr,index:Vr,params:Wr}}}function tokensToFunction(_r,Fe){for(var $r=new Array(_r.length),Fr=0;Fr<_r.length;Fr++)typeof _r[Fr]=="object"&&($r[Fr]=new RegExp("^(?:"+_r[Fr].pattern+")$",flags(Fe)));return function(jr,zr){for(var Vr="",Wr=zr&&zr.encode||encodeURIComponent,Kr=zr?zr.validate!==!1:!0,Gr=0;Gr<_r.length;Gr++){var Yr=_r[Gr];if(typeof Yr=="string"){Vr+=Yr;continue}var Qr=jr?jr[Yr.name]:void 0,Jr;if(Array.isArray(Qr)){if(!Yr.repeat)throw new TypeError('Expected "'+Yr.name+'" to not repeat, but got array');if(Qr.length===0){if(Yr.optional)continue;throw new TypeError('Expected "'+Yr.name+'" to not be empty')}for(var Zr=0;Zr<Qr.length;Zr++){if(Jr=Wr(Qr[Zr],Yr),Kr&&!$r[Gr].test(Jr))throw new TypeError('Expected all "'+Yr.name+'" to match "'+Yr.pattern+'"');Vr+=(Zr===0?Yr.prefix:Yr.delimiter)+Jr}continue}if(typeof Qr=="string"||typeof Qr=="number"||typeof Qr=="boolean"){if(Jr=Wr(String(Qr),Yr),Kr&&!$r[Gr].test(Jr))throw new TypeError('Expected "'+Yr.name+'" to match "'+Yr.pattern+'", but got "'+Jr+'"');Vr+=Yr.prefix+Jr;continue}if(!Yr.optional)throw new TypeError('Expected "'+Yr.name+'" to be '+(Yr.repeat?"an array":"a string"))}return Vr}}function escapeString(_r){return _r.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function escapeGroup(_r){return _r.replace(/([=!:$/()])/g,"\\$1")}function flags(_r){return _r&&_r.sensitive?"":"i"}function regexpToRegexp(_r,Fe){if(!Fe)return _r;var $r=_r.source.match(/\((?!\?)/g);if($r)for(var Fr=0;Fr<$r.length;Fr++)Fe.push({name:Fr,prefix:null,delimiter:null,optional:!1,repeat:!1,pattern:null});return _r}function arrayToRegexp(_r,Fe,$r){for(var Fr=[],jr=0;jr<_r.length;jr++)Fr.push(pathToRegexp(_r[jr],Fe,$r).source);return new RegExp("(?:"+Fr.join("|")+")",flags($r))}function stringToRegexp(_r,Fe,$r){return tokensToRegExp(parse$5(_r,$r),Fe,$r)}function tokensToRegExp(_r,Fe,$r){$r=$r||{};for(var Fr=$r.strict,jr=$r.start!==!1,zr=$r.end!==!1,Vr=$r.delimiter||DEFAULT_DELIMITER,Wr=[].concat($r.endsWith||[]).map(escapeString).concat("$").join("|"),Kr=jr?"^":"",Gr=0;Gr<_r.length;Gr++){var Yr=_r[Gr];if(typeof Yr=="string")Kr+=escapeString(Yr);else{var Qr=Yr.repeat?"(?:"+Yr.pattern+")(?:"+escapeString(Yr.delimiter)+"(?:"+Yr.pattern+"))*":Yr.pattern;Fe&&Fe.push(Yr),Yr.optional?Yr.prefix?Kr+="(?:"+escapeString(Yr.prefix)+"("+Qr+"))?":Kr+="("+Qr+")?":Kr+=escapeString(Yr.prefix)+"("+Qr+")"}}if(zr)Fr||(Kr+="(?:"+escapeString(Vr)+")?"),Kr+=Wr==="$"?"$":"(?="+Wr+")";else{var Jr=_r[_r.length-1],Zr=typeof Jr=="string"?Jr[Jr.length-1]===Vr:Jr===void 0;Fr||(Kr+="(?:"+escapeString(Vr)+"(?="+Wr+"))?"),Zr||(Kr+="(?="+escapeString(Vr)+"|"+Wr+")")}return new RegExp(Kr,flags($r))}function pathToRegexp(_r,Fe,$r){return _r instanceof RegExp?regexpToRegexp(_r,Fe):Array.isArray(_r)?arrayToRegexp(_r,Fe,$r):stringToRegexp(_r,Fe,$r)}Object.defineProperty(lib$5,"__esModule",{value:!0});var _extends$5=Object.assign||function(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe];for(var Fr in $r)Object.prototype.hasOwnProperty.call($r,Fr)&&(_r[Fr]=$r[Fr])}return _r},_createClass$j=function(){function _r(Fe,$r){for(var Fr=0;Fr<$r.length;Fr++){var jr=$r[Fr];jr.enumerable=jr.enumerable||!1,jr.configurable=!0,"value"in jr&&(jr.writable=!0),Object.defineProperty(Fe,jr.key,jr)}}return function(Fe,$r,Fr){return $r&&_r(Fe.prototype,$r),Fr&&_r(Fe,Fr),Fe}}(),_plugin$3=lib$6,_plugin2$3=_interopRequireDefault$9(_plugin$3),_pathToRegexp=pathToRegexp$1.exports,_pathToRegexp2=_interopRequireDefault$9(_pathToRegexp);function _interopRequireDefault$9(_r){return _r&&_r.__esModule?_r:{default:_r}}function _classCallCheck$i(_r,Fe){if(!(_r instanceof Fe))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$6(_r,Fe){if(!_r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Fe&&(typeof Fe=="object"||typeof Fe=="function")?Fe:_r}function _inherits$6(_r,Fe){if(typeof Fe!="function"&&Fe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Fe);_r.prototype=Object.create(Fe&&Fe.prototype,{constructor:{value:_r,enumerable:!1,writable:!0,configurable:!0}}),Fe&&(Object.setPrototypeOf?Object.setPrototypeOf(_r,Fe):_r.__proto__=Fe)}var JsPlugin=function(_r){_inherits$6(Fe,_r);function Fe(){var $r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_classCallCheck$i(this,Fe);var Fr=_possibleConstructorReturn$6(this,(Fe.__proto__||Object.getPrototypeOf(Fe)).call(this));Fr.name="JsPlugin",Fr.currentAnimation=null,Fr.getAnimationPromises=function(zr){var Vr=Fr.getAnimationIndex(zr);return[Fr.createAnimationPromise(Vr,zr)]},Fr.createAnimationPromise=function(zr,Vr){var Wr=Fr.swup.transition,Kr=Fr.options[zr];return Kr&&Kr[Vr]?new Promise(function(Gr){Kr[Vr](Gr,{paramsFrom:Kr.regFrom.exec(Wr.from),paramsTo:Kr.regTo.exec(Wr.to),transition:Wr,from:Kr.from,to:Kr.to})}):(console.warn("No animation found"),Promise.resolve())},Fr.getAnimationIndex=function(zr){if(zr==="in")return Fr.currentAnimation;var Vr=Fr.options,Wr=0,Kr=0;return Object.keys(Vr).forEach(function(Gr,Yr){var Qr=Vr[Gr],Jr=Fr.rateAnimation(Qr);Jr>=Kr&&(Wr=Yr,Kr=Jr)}),Fr.currentAnimation=Wr,Fr.currentAnimation},Fr.rateAnimation=function(zr){var Vr=Fr.swup.transition,Wr=0,Kr=zr.regFrom.test(Vr.from),Gr=zr.regTo.test(Vr.to);return Wr+=Kr?1:0,Wr+=Gr?1:0,Wr+=Kr&&zr.to===Vr.custom?2:0,Wr};var jr=[{from:"(.*)",to:"(.*)",out:function(Vr){return Vr()},in:function(Vr){return Vr()}}];return Fr.options=_extends$5({},jr,$r),Fr.generateRegex(),Fr}return _createClass$j(Fe,[{key:"mount",value:function(){var Fr=this.swup;Fr._getAnimationPromises=Fr.getAnimationPromises,Fr.getAnimationPromises=this.getAnimationPromises}},{key:"unmount",value:function(){var Fr=this.swup;Fr.getAnimationPromises=Fr._getAnimationPromises,Fr._getAnimationPromises=null}},{key:"generateRegex",value:function(){var Fr=this,jr=function(Vr){return Vr instanceof RegExp};this.options=Object.keys(this.options).map(function(zr){return _extends$5({},Fr.options[zr],{regFrom:jr(Fr.options[zr].from)?Fr.options[zr].from:(0,_pathToRegexp2.default)(Fr.options[zr].from),regTo:jr(Fr.options[zr].to)?Fr.options[zr].to:(0,_pathToRegexp2.default)(Fr.options[zr].to)})})}}]),Fe}(_plugin2$3.default),_default$4=lib$5.default=JsPlugin,lib$4={};Object.defineProperty(lib$4,"__esModule",{value:!0});var _extends$4=Object.assign||function(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe];for(var Fr in $r)Object.prototype.hasOwnProperty.call($r,Fr)&&(_r[Fr]=$r[Fr])}return _r},_createClass$i=function(){function _r(Fe,$r){for(var Fr=0;Fr<$r.length;Fr++){var jr=$r[Fr];jr.enumerable=jr.enumerable||!1,jr.configurable=!0,"value"in jr&&(jr.writable=!0),Object.defineProperty(Fe,jr.key,jr)}}return function(Fe,$r,Fr){return $r&&_r(Fe.prototype,$r),Fr&&_r(Fe,Fr),Fe}}(),_plugin$2=lib$6,_plugin2$2=_interopRequireDefault$8(_plugin$2);function _interopRequireDefault$8(_r){return _r&&_r.__esModule?_r:{default:_r}}function _classCallCheck$h(_r,Fe){if(!(_r instanceof Fe))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$5(_r,Fe){if(!_r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Fe&&(typeof Fe=="object"||typeof Fe=="function")?Fe:_r}function _inherits$5(_r,Fe){if(typeof Fe!="function"&&Fe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Fe);_r.prototype=Object.create(Fe&&Fe.prototype,{constructor:{value:_r,enumerable:!1,writable:!0,configurable:!0}}),Fe&&(Object.setPrototypeOf?Object.setPrototypeOf(_r,Fe):_r.__proto__=Fe)}var arrayify=function(Fe){return Array.prototype.slice.call(Fe)},ScriptsPlugin=function(_r){_inherits$5(Fe,_r);function Fe($r){_classCallCheck$h(this,Fe);var Fr=_possibleConstructorReturn$5(this,(Fe.__proto__||Object.getPrototypeOf(Fe)).call(this));Fr.name="ScriptsPlugin",Fr.runScripts=function(){var zr=Fr.options.head&&Fr.options.body?document:Fr.options.head?document.head:document.body,Vr=Fr.options.optin?"script[data-swup-reload-script]":"script:not([data-swup-ignore-script])",Wr=arrayify(zr.querySelectorAll(Vr));Wr.forEach(function(Kr){return Fr.runScript(Kr)}),Fr.swup.log("Executed "+Wr.length+" scripts.")},Fr.runScript=function(zr){var Vr=document.createElement("script"),Wr=!0,Kr=!1,Gr=void 0;try{for(var Yr=arrayify(zr.attributes)[Symbol.iterator](),Qr;!(Wr=(Qr=Yr.next()).done);Wr=!0){var Jr=Qr.value,Zr=Jr.name,tn=Jr.value;Vr.setAttribute(Zr,tn)}}catch(en){Kr=!0,Gr=en}finally{try{!Wr&&Yr.return&&Yr.return()}finally{if(Kr)throw Gr}}return Vr.textContent=zr.textContent,Vr.setAttribute("async","false"),zr.replaceWith(Vr),Vr};var jr={head:!0,body:!0,optin:!1};return Fr.options=_extends$4({},jr,$r),Fr}return _createClass$i(Fe,[{key:"mount",value:function(){this.swup.on("contentReplaced",this.runScripts)}},{key:"unmount",value:function(){this.swup.off("contentReplaced",this.runScripts)}}]),Fe}(_plugin2$2.default),_default$3=lib$4.default=ScriptsPlugin,lib$3={};Object.defineProperty(lib$3,"__esModule",{value:!0});var _extends$3=Object.assign||function(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe];for(var Fr in $r)Object.prototype.hasOwnProperty.call($r,Fr)&&(_r[Fr]=$r[Fr])}return _r},_createClass$h=function(){function _r(Fe,$r){for(var Fr=0;Fr<$r.length;Fr++){var jr=$r[Fr];jr.enumerable=jr.enumerable||!1,jr.configurable=!0,"value"in jr&&(jr.writable=!0),Object.defineProperty(Fe,jr.key,jr)}}return function(Fe,$r,Fr){return $r&&_r(Fe.prototype,$r),Fr&&_r(Fe,Fr),Fe}}(),_plugin$1=lib$6,_plugin2$1=_interopRequireDefault$7(_plugin$1);function _interopRequireDefault$7(_r){return _r&&_r.__esModule?_r:{default:_r}}function _classCallCheck$g(_r,Fe){if(!(_r instanceof Fe))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$4(_r,Fe){if(!_r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Fe&&(typeof Fe=="object"||typeof Fe=="function")?Fe:_r}function _inherits$4(_r,Fe){if(typeof Fe!="function"&&Fe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Fe);_r.prototype=Object.create(Fe&&Fe.prototype,{constructor:{value:_r,enumerable:!1,writable:!0,configurable:!0}}),Fe&&(Object.setPrototypeOf?Object.setPrototypeOf(_r,Fe):_r.__proto__=Fe)}var BodyClassPlugin=function(_r){_inherits$4(Fe,_r);function Fe($r){_classCallCheck$g(this,Fe);var Fr=_possibleConstructorReturn$4(this,(Fe.__proto__||Object.getPrototypeOf(Fe)).call(this));Fr.name="BodyClassPlugin";var jr={prefix:""};return Fr.options=_extends$3({},jr,$r),Fr}return _createClass$h(Fe,[{key:"mount",value:function(){var Fr=this;this.swup.on("contentReplaced",function(){var jr=Fr.swup.cache.getCurrentPage();document.body.className.split(" ").forEach(function(zr){Fr.isValidClassName(zr)&&document.body.classList.remove(zr)}),jr.pageClass!==""&&jr.pageClass.split(" ").forEach(function(zr){Fr.isValidClassName(zr)&&document.body.classList.add(zr)})})}},{key:"isValidClassName",value:function(Fr){return Fr!==""&&Fr.indexOf(this.options.prefix)!==-1}}]),Fe}(_plugin2$1.default),_default$2=lib$3.default=BodyClassPlugin,lib$2={};Object.defineProperty(lib$2,"__esModule",{value:!0});var _extends$2=Object.assign||function(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe];for(var Fr in $r)Object.prototype.hasOwnProperty.call($r,Fr)&&(_r[Fr]=$r[Fr])}return _r},_createClass$g=function(){function _r(Fe,$r){for(var Fr=0;Fr<$r.length;Fr++){var jr=$r[Fr];jr.enumerable=jr.enumerable||!1,jr.configurable=!0,"value"in jr&&(jr.writable=!0),Object.defineProperty(Fe,jr.key,jr)}}return function(Fe,$r,Fr){return $r&&_r(Fe.prototype,$r),Fr&&_r(Fe,Fr),Fe}}(),_plugin=lib$6,_plugin2=_interopRequireDefault$6(_plugin);function _interopRequireDefault$6(_r){return _r&&_r.__esModule?_r:{default:_r}}function _classCallCheck$f(_r,Fe){if(!(_r instanceof Fe))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$3(_r,Fe){if(!_r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Fe&&(typeof Fe=="object"||typeof Fe=="function")?Fe:_r}function _inherits$3(_r,Fe){if(typeof Fe!="function"&&Fe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Fe);_r.prototype=Object.create(Fe&&Fe.prototype,{constructor:{value:_r,enumerable:!1,writable:!0,configurable:!0}}),Fe&&(Object.setPrototypeOf?Object.setPrototypeOf(_r,Fe):_r.__proto__=Fe)}var SwupGtagPlugin=function(_r){_inherits$3(Fe,_r);function Fe($r){_classCallCheck$f(this,Fe);var Fr=_possibleConstructorReturn$3(this,(Fe.__proto__||Object.getPrototypeOf(Fe)).call(this));Fr.name="SwupGtagPlugin";var jr={};return Fr.options=_extends$2({},jr,$r),Fr}return _createClass$g(Fe,[{key:"mount",value:function(){var Fr=this;this.options.gaMeasurementId==null&&console.warn("Gtag is not configured with a GA_MEASUREMENT_ID"),this.swup.on("contentReplaced",function(jr){if(typeof window.gtag=="function"&&Fr.options.gaMeasurementId!=null){var zr=document.title,Vr=window.location.pathname+window.location.search;window.gtag("config",""+Fr.options.gaMeasurementId,{page_title:zr,page_path:Vr}),Fr.swup.log("Gtag pageview (url '"+Vr+"').")}else console.warn("Gtag is not loaded.")})}}]),Fe}(_plugin2.default);lib$2.default=SwupGtagPlugin;var Component$2={},runtime$1={exports:{}};(function(_r){(function(Fe){var $r=Object.prototype.hasOwnProperty,Fr,jr=typeof Symbol=="function"&&Symbol.iterator||"@@iterator",zr=Fe.regeneratorRuntime;if(zr){_r.exports=zr;return}zr=Fe.regeneratorRuntime=_r.exports;function Vr(pn,hn,mn,Sn){var vn=Object.create((hn||Zr).prototype),bn=new ln(Sn||[]);return vn._invoke=an(pn,mn,bn),vn}zr.wrap=Vr;function Wr(pn,hn,mn){try{return{type:"normal",arg:pn.call(hn,mn)}}catch(Sn){return{type:"throw",arg:Sn}}}var Kr="suspendedStart",Gr="suspendedYield",Yr="executing",Qr="completed",Jr={};function Zr(){}function tn(){}function en(){}var rn=en.prototype=Zr.prototype;tn.prototype=rn.constructor=en,en.constructor=tn,tn.displayName="GeneratorFunction";function nn(pn){["next","throw","return"].forEach(function(hn){pn[hn]=function(mn){return this._invoke(hn,mn)}})}zr.isGeneratorFunction=function(pn){var hn=typeof pn=="function"&&pn.constructor;return hn?hn===tn||(hn.displayName||hn.name)==="GeneratorFunction":!1},zr.mark=function(pn){return Object.setPrototypeOf?Object.setPrototypeOf(pn,en):pn.__proto__=en,pn.prototype=Object.create(rn),pn},zr.awrap=function(pn){return new on(pn)};function on(pn){this.arg=pn}function un(pn){function hn(_n,$n){var yn=pn[_n]($n),wn=yn.value;return wn instanceof on?Promise.resolve(wn.arg).then(mn,Sn):Promise.resolve(wn).then(function(gn){return yn.value=gn,yn})}typeof process=="object"&&process.domain&&(hn=process.domain.bind(hn));var mn=hn.bind(pn,"next"),Sn=hn.bind(pn,"throw");hn.bind(pn,"return");var vn;function bn(_n,$n){function yn(){return hn(_n,$n)}return vn=vn?vn.then(yn,yn):new Promise(function(wn){wn(yn())})}this._invoke=bn}nn(un.prototype),zr.async=function(pn,hn,mn,Sn){var vn=new un(Vr(pn,hn,mn,Sn));return zr.isGeneratorFunction(hn)?vn:vn.next().then(function(bn){return bn.done?bn.value:vn.next()})};function an(pn,hn,mn){var Sn=Kr;return function(bn,_n){if(Sn===Yr)throw new Error("Generator is already running");if(Sn===Qr){if(bn==="throw")throw _n;return fn()}for(;;){var $n=mn.delegate;if($n){if(bn==="return"||bn==="throw"&&$n.iterator[bn]===Fr){mn.delegate=null;var yn=$n.iterator.return;if(yn){var gn=Wr(yn,$n.iterator,_n);if(gn.type==="throw"){bn="throw",_n=gn.arg;continue}}if(bn==="return")continue}var gn=Wr($n.iterator[bn],$n.iterator,_n);if(gn.type==="throw"){mn.delegate=null,bn="throw",_n=gn.arg;continue}bn="next",_n=Fr;var wn=gn.arg;if(wn.done)mn[$n.resultName]=wn.value,mn.next=$n.nextLoc;else return Sn=Gr,wn;mn.delegate=null}if(bn==="next")mn._sent=_n,Sn===Gr?mn.sent=_n:mn.sent=Fr;else if(bn==="throw"){if(Sn===Kr)throw Sn=Qr,_n;mn.dispatchException(_n)&&(bn="next",_n=Fr)}else bn==="return"&&mn.abrupt("return",_n);Sn=Yr;var gn=Wr(pn,hn,mn);if(gn.type==="normal"){Sn=mn.done?Qr:Gr;var wn={value:gn.arg,done:mn.done};if(gn.arg===Jr)mn.delegate&&bn==="next"&&(_n=Fr);else return wn}else gn.type==="throw"&&(Sn=Qr,bn="throw",_n=gn.arg)}}}nn(rn),rn[jr]=function(){return this},rn.toString=function(){return"[object Generator]"};function sn(pn){var hn={tryLoc:pn[0]};1 in pn&&(hn.catchLoc=pn[1]),2 in pn&&(hn.finallyLoc=pn[2],hn.afterLoc=pn[3]),this.tryEntries.push(hn)}function dn(pn){var hn=pn.completion||{};hn.type="normal",delete hn.arg,pn.completion=hn}function ln(pn){this.tryEntries=[{tryLoc:"root"}],pn.forEach(sn,this),this.reset(!0)}zr.keys=function(pn){var hn=[];for(var mn in pn)hn.push(mn);return hn.reverse(),function Sn(){for(;hn.length;){var vn=hn.pop();if(vn in pn)return Sn.value=vn,Sn.done=!1,Sn}return Sn.done=!0,Sn}};function cn(pn){if(pn){var hn=pn[jr];if(hn)return hn.call(pn);if(typeof pn.next=="function")return pn;if(!isNaN(pn.length)){var mn=-1,Sn=function vn(){for(;++mn<pn.length;)if($r.call(pn,mn))return vn.value=pn[mn],vn.done=!1,vn;return vn.value=Fr,vn.done=!0,vn};return Sn.next=Sn}}return{next:fn}}zr.values=cn;function fn(){return{value:Fr,done:!0}}ln.prototype={constructor:ln,reset:function(pn){if(this.prev=0,this.next=0,this.sent=Fr,this.done=!1,this.delegate=null,this.tryEntries.forEach(dn),!pn)for(var hn in this)hn.charAt(0)==="t"&&$r.call(this,hn)&&!isNaN(+hn.slice(1))&&(this[hn]=Fr)},stop:function(){this.done=!0;var pn=this.tryEntries[0],hn=pn.completion;if(hn.type==="throw")throw hn.arg;return this.rval},dispatchException:function(pn){if(this.done)throw pn;var hn=this;function mn(yn,wn){return bn.type="throw",bn.arg=pn,hn.next=yn,!!wn}for(var Sn=this.tryEntries.length-1;Sn>=0;--Sn){var vn=this.tryEntries[Sn],bn=vn.completion;if(vn.tryLoc==="root")return mn("end");if(vn.tryLoc<=this.prev){var _n=$r.call(vn,"catchLoc"),$n=$r.call(vn,"finallyLoc");if(_n&&$n){if(this.prev<vn.catchLoc)return mn(vn.catchLoc,!0);if(this.prev<vn.finallyLoc)return mn(vn.finallyLoc)}else if(_n){if(this.prev<vn.catchLoc)return mn(vn.catchLoc,!0)}else if($n){if(this.prev<vn.finallyLoc)return mn(vn.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(pn,hn){for(var mn=this.tryEntries.length-1;mn>=0;--mn){var Sn=this.tryEntries[mn];if(Sn.tryLoc<=this.prev&&$r.call(Sn,"finallyLoc")&&this.prev<Sn.finallyLoc){var vn=Sn;break}}vn&&(pn==="break"||pn==="continue")&&vn.tryLoc<=hn&&hn<=vn.finallyLoc&&(vn=null);var bn=vn?vn.completion:{};return bn.type=pn,bn.arg=hn,vn?this.next=vn.finallyLoc:this.complete(bn),Jr},complete:function(pn,hn){if(pn.type==="throw")throw pn.arg;pn.type==="break"||pn.type==="continue"?this.next=pn.arg:pn.type==="return"?(this.rval=pn.arg,this.next="end"):pn.type==="normal"&&hn&&(this.next=hn)},finish:function(pn){for(var hn=this.tryEntries.length-1;hn>=0;--hn){var mn=this.tryEntries[hn];if(mn.finallyLoc===pn)return this.complete(mn.completion,mn.afterLoc),dn(mn),Jr}},catch:function(pn){for(var hn=this.tryEntries.length-1;hn>=0;--hn){var mn=this.tryEntries[hn];if(mn.tryLoc===pn){var Sn=mn.completion;if(Sn.type==="throw"){var vn=Sn.arg;dn(mn)}return vn}}throw new Error("illegal catch attempt")},delegateYield:function(pn,hn,mn){return this.delegate={iterator:cn(pn),resultName:hn,nextLoc:mn},Jr}}})(typeof commonjsGlobal=="object"?commonjsGlobal:typeof window=="object"?window:typeof self=="object"?self:commonjsGlobal)})(runtime$1);var BaseComponent={};Object.defineProperty(BaseComponent,"__esModule",{value:!0});var _extends$1=Object.assign||function(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe];for(var Fr in $r)Object.prototype.hasOwnProperty.call($r,Fr)&&(_r[Fr]=$r[Fr])}return _r},_typeof$P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_r){return typeof _r}:function(_r){return _r&&typeof Symbol=="function"&&_r.constructor===Symbol&&_r!==Symbol.prototype?"symbol":typeof _r},_createClass$f=function(){function _r(Fe,$r){for(var Fr=0;Fr<$r.length;Fr++){var jr=$r[Fr];jr.enumerable=jr.enumerable||!1,jr.configurable=!0,"value"in jr&&(jr.writable=!0),Object.defineProperty(Fe,jr.key,jr)}}return function(Fe,$r,Fr){return $r&&_r(Fe.prototype,$r),Fr&&_r(Fe,Fr),Fe}}(),_utils$2=utils$l;function _classCallCheck$e(_r,Fe){if(!(_r instanceof Fe))throw new TypeError("Cannot call a class as a function")}var Component$1=function(){function _r(Fe,$r){_classCallCheck$e(this,_r),this.element=Fe,this.element.__gia_component__=this,this._ref={},this._options=$r||{},this._state={}}return _createClass$f(_r,[{key:"_load",value:function(){this.mount()}},{key:"mount",value:function(){console.warn("Component "+this._name+' does not have "mount" method.')}},{key:"unmount",value:function(){}},{key:"getRef",value:function($r){var Fr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return'[g-ref="'+(Fr?this._name+":":"")+$r+'"]'}},{key:"setState",value:function($r){var Fr=this,jr={};Object.keys($r).forEach(function(zr){Array.isArray($r[zr])?Fr._state[zr]!=null&&Array.isArray(Fr._state[zr])&&Fr._state[zr].length===$r[zr].length?$r[zr].some(function(Vr,Wr){return Fr._state[zr][Wr]!==Vr?(jr[zr]=$r[zr],Fr._state[zr]=jr[zr],!0):!1}):(jr[zr]=$r[zr],Fr._state[zr]=jr[zr]):_typeof$P($r[zr])==="object"?(Fr._state[zr]!=null&&_typeof$P(Fr._state[zr])==="object"?(jr[zr]={},Object.keys($r[zr]).forEach(function(Vr){Fr._state[zr][Vr]!==$r[zr][Vr]&&(jr[zr][Vr]=$r[zr][Vr])})):jr[zr]=$r[zr],Fr._state[zr]=_extends$1({},Fr._state[zr],jr[zr])):Fr._state[zr]!==$r[zr]&&(jr[zr]=$r[zr],Fr._state[zr]=$r[zr])}),Object.keys(jr).forEach(function(zr){Array.isArray($r[zr])?jr[zr].length===0&&delete jr[zr]:_typeof$P($r[zr])==="object"&&Object.keys(jr[zr]).length===0&&delete jr[zr]}),this.stateChange(jr)}},{key:"stateChange",value:function($r){}},{key:"ref",get:function(){return this._ref},set:function($r){var Fr=this,jr=(0,_utils$2.queryAll)("[g-ref]",this.element);return Object.keys($r).length===0?jr.forEach(function(zr){var Vr=zr.getAttribute("g-ref");if(Vr.indexOf(":")!==-1){var Wr=Vr.split(":");if(Wr[0]==Fr._name)Fr._ref[Wr[1]]||(Fr._ref[Wr[1]]=jr.filter(function(Kr){return Kr.getAttribute("g-ref")===Vr}));else return}else Fr._ref[Vr]||(Fr._ref[Vr]=jr.filter(function(Kr){return Kr.getAttribute("g-ref")===Vr}))}):this._ref=Object.keys($r).map(function(zr){var Vr=Array.isArray($r[zr]);if($r[zr]!==null&&Vr&&$r[zr].length>0)return{name:zr,value:$r[zr]};var Wr=zr,Kr=Fr._name+":"+Wr,Gr=jr.filter(function(Yr){return Yr.getAttribute("g-ref")===Kr});return Gr.length===0&&(Gr=jr.filter(function(Yr){return Yr.getAttribute("g-ref")===Wr})),Vr||(Gr=Gr.length?Gr[0]:null),{name:zr,value:Gr}}).reduce(function(zr,Vr){return zr[Vr.name]=Vr.value,zr},{}),this._ref}},{key:"options",get:function(){return this._options},set:function($r){var Fr={},jr=this.element.getAttribute("g-options");return jr&&(Fr=JSON.parse(jr)),this._options=_extends$1({},this._options,$r,Fr),this._options}},{key:"state",get:function(){return this._state},set:function($r){console.warn("You should not change state manually. Use setState instead."),this._state=$r}}]),_r}();BaseComponent.default=Component$1;Object.defineProperty(Component$2,"__esModule",{value:!0});var _createClass$e=function(){function _r(Fe,$r){for(var Fr=0;Fr<$r.length;Fr++){var jr=$r[Fr];jr.enumerable=jr.enumerable||!1,jr.configurable=!0,"value"in jr&&(jr.writable=!0),Object.defineProperty(Fe,jr.key,jr)}}return function(Fe,$r,Fr){return $r&&_r(Fe.prototype,$r),Fr&&_r(Fe,Fr),Fe}}(),_BaseComponent2=BaseComponent,_BaseComponent3=_interopRequireDefault$5(_BaseComponent2);function _interopRequireDefault$5(_r){return _r&&_r.__esModule?_r:{default:_r}}function _asyncToGenerator(_r){return function(){var Fe=_r.apply(this,arguments);return new Promise(function($r,Fr){function jr(zr,Vr){try{var Wr=Fe[zr](Vr),Kr=Wr.value}catch(Gr){Fr(Gr);return}if(Wr.done)$r(Kr);else return Promise.resolve(Kr).then(function(Gr){jr("next",Gr)},function(Gr){jr("throw",Gr)})}return jr("next")})}}function _classCallCheck$d(_r,Fe){if(!(_r instanceof Fe))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$2(_r,Fe){if(!_r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Fe&&(typeof Fe=="object"||typeof Fe=="function")?Fe:_r}function _inherits$2(_r,Fe){if(typeof Fe!="function"&&Fe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Fe);_r.prototype=Object.create(Fe&&Fe.prototype,{constructor:{value:_r,enumerable:!1,writable:!0,configurable:!0}}),Fe&&(Object.setPrototypeOf?Object.setPrototypeOf(_r,Fe):_r.__proto__=Fe)}var Component=function(_r){_inherits$2(Fe,_r);function Fe(){return _classCallCheck$d(this,Fe),_possibleConstructorReturn$2(this,(Fe.__proto__||Object.getPrototypeOf(Fe)).apply(this,arguments))}return _createClass$e(Fe,[{key:"require",value:function(){var $r=_asyncToGenerator(regeneratorRuntime.mark(function jr(){return regeneratorRuntime.wrap(function(Vr){for(;;)switch(Vr.prev=Vr.next){case 0:case"end":return Vr.stop()}},jr,this)}));function Fr(){return $r.apply(this,arguments)}return Fr}()},{key:"_load",value:function(){this.require().then(this.mount.bind(this))}}]),Fe}(_BaseComponent3.default),_default$1=Component$2.default=Component;function _assertThisInitialized$2(_r){if(_r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _r}function _inheritsLoose(_r,Fe){_r.prototype=Object.create(Fe.prototype),_r.prototype.constructor=_r,_r.__proto__=Fe}/*!
 * GSAP 3.12.1
 * https://greensock.com
 *
 * @license Copyright 2008-2023, GreenSock. All rights reserved.
 * Subject to the terms at https://greensock.com/standard-license or for
 * Club GreenSock members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/var _config$2={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},_defaults$1={duration:.5,overwrite:!1,delay:0},_suppressOverwrites$1,_reverting$1,_context$2,_bigNum$1=1e8,_tinyNum=1/_bigNum$1,_2PI=Math.PI*2,_HALF_PI=_2PI/4,_gsID=0,_sqrt=Math.sqrt,_cos=Math.cos,_sin=Math.sin,_isString$2=function(Fe){return typeof Fe=="string"},_isFunction$2=function(Fe){return typeof Fe=="function"},_isNumber$1=function(Fe){return typeof Fe=="number"},_isUndefined=function(Fe){return typeof Fe=="undefined"},_isObject$1=function(Fe){return typeof Fe=="object"},_isNotFalse=function(Fe){return Fe!==!1},_windowExists$3=function(){return typeof window!="undefined"},_isFuncOrString=function(Fe){return _isFunction$2(Fe)||_isString$2(Fe)},_isTypedArray=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},_isArray=Array.isArray,_strictNumExp=/(?:-?\.?\d|\.)+/gi,_numExp=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,_numWithUnitExp=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,_complexStringNumExp=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,_relExp=/[+-]=-?[.\d]+/,_delimitedValueExp=/[^,'"\[\]\s]+/gi,_unitExp=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,_globalTimeline,_win$3,_coreInitted$3,_doc$3,_globals={},_installScope={},_coreReady,_install=function(Fe){return(_installScope=_merge$1(Fe,_globals))&&gsap$3},_missingPlugin=function(Fe,$r){return console.warn("Invalid property",Fe,"set to",$r,"Missing plugin? gsap.registerPlugin()")},_warn=function(Fe,$r){return!$r&&console.warn(Fe)},_addGlobal=function(Fe,$r){return Fe&&(_globals[Fe]=$r)&&_installScope&&(_installScope[Fe]=$r)||_globals},_emptyFunc=function(){return 0},_startAtRevertConfig={suppressEvents:!0,isStart:!0,kill:!1},_revertConfigNoKill={suppressEvents:!0,kill:!1},_revertConfig={suppressEvents:!0},_reservedProps={},_lazyTweens=[],_lazyLookup={},_lastRenderedFrame,_plugins={},_effects={},_nextGCFrame=30,_harnessPlugins=[],_callbackNames="",_harness=function(Fe){var $r=Fe[0],Fr,jr;if(_isObject$1($r)||_isFunction$2($r)||(Fe=[Fe]),!(Fr=($r._gsap||{}).harness)){for(jr=_harnessPlugins.length;jr--&&!_harnessPlugins[jr].targetTest($r););Fr=_harnessPlugins[jr]}for(jr=Fe.length;jr--;)Fe[jr]&&(Fe[jr]._gsap||(Fe[jr]._gsap=new GSCache(Fe[jr],Fr)))||Fe.splice(jr,1);return Fe},_getCache=function(Fe){return Fe._gsap||_harness(toArray$1(Fe))[0]._gsap},_getProperty=function(Fe,$r,Fr){return(Fr=Fe[$r])&&_isFunction$2(Fr)?Fe[$r]():_isUndefined(Fr)&&Fe.getAttribute&&Fe.getAttribute($r)||Fr},_forEachName=function(Fe,$r){return(Fe=Fe.split(",")).forEach($r)||Fe},_round$1=function(Fe){return Math.round(Fe*1e5)/1e5||0},_roundPrecise=function(Fe){return Math.round(Fe*1e7)/1e7||0},_parseRelative=function(Fe,$r){var Fr=$r.charAt(0),jr=parseFloat($r.substr(2));return Fe=parseFloat(Fe),Fr==="+"?Fe+jr:Fr==="-"?Fe-jr:Fr==="*"?Fe*jr:Fe/jr},_arrayContainsAny=function(Fe,$r){for(var Fr=$r.length,jr=0;Fe.indexOf($r[jr])<0&&++jr<Fr;);return jr<Fr},_lazyRender=function(){var Fe=_lazyTweens.length,$r=_lazyTweens.slice(0),Fr,jr;for(_lazyLookup={},_lazyTweens.length=0,Fr=0;Fr<Fe;Fr++)jr=$r[Fr],jr&&jr._lazy&&(jr.render(jr._lazy[0],jr._lazy[1],!0)._lazy=0)},_lazySafeRender=function(Fe,$r,Fr,jr){_lazyTweens.length&&!_reverting$1&&_lazyRender(),Fe.render($r,Fr,jr||_reverting$1&&$r<0&&(Fe._initted||Fe._startAt)),_lazyTweens.length&&!_reverting$1&&_lazyRender()},_numericIfPossible=function(Fe){var $r=parseFloat(Fe);return($r||$r===0)&&(Fe+"").match(_delimitedValueExp).length<2?$r:_isString$2(Fe)?Fe.trim():Fe},_passThrough$1=function(Fe){return Fe},_setDefaults$1=function(Fe,$r){for(var Fr in $r)Fr in Fe||(Fe[Fr]=$r[Fr]);return Fe},_setKeyframeDefaults=function(Fe){return function($r,Fr){for(var jr in Fr)jr in $r||jr==="duration"&&Fe||jr==="ease"||($r[jr]=Fr[jr])}},_merge$1=function(Fe,$r){for(var Fr in $r)Fe[Fr]=$r[Fr];return Fe},_mergeDeep=function _r(Fe,$r){for(var Fr in $r)Fr!=="__proto__"&&Fr!=="constructor"&&Fr!=="prototype"&&(Fe[Fr]=_isObject$1($r[Fr])?_r(Fe[Fr]||(Fe[Fr]={}),$r[Fr]):$r[Fr]);return Fe},_copyExcluding=function(Fe,$r){var Fr={},jr;for(jr in Fe)jr in $r||(Fr[jr]=Fe[jr]);return Fr},_inheritDefaults=function(Fe){var $r=Fe.parent||_globalTimeline,Fr=Fe.keyframes?_setKeyframeDefaults(_isArray(Fe.keyframes)):_setDefaults$1;if(_isNotFalse(Fe.inherit))for(;$r;)Fr(Fe,$r.vars.defaults),$r=$r.parent||$r._dp;return Fe},_arraysMatch=function(Fe,$r){for(var Fr=Fe.length,jr=Fr===$r.length;jr&&Fr--&&Fe[Fr]===$r[Fr];);return Fr<0},_addLinkedListItem=function(Fe,$r,Fr,jr,zr){Fr===void 0&&(Fr="_first"),jr===void 0&&(jr="_last");var Vr=Fe[jr],Wr;if(zr)for(Wr=$r[zr];Vr&&Vr[zr]>Wr;)Vr=Vr._prev;return Vr?($r._next=Vr._next,Vr._next=$r):($r._next=Fe[Fr],Fe[Fr]=$r),$r._next?$r._next._prev=$r:Fe[jr]=$r,$r._prev=Vr,$r.parent=$r._dp=Fe,$r},_removeLinkedListItem=function(Fe,$r,Fr,jr){Fr===void 0&&(Fr="_first"),jr===void 0&&(jr="_last");var zr=$r._prev,Vr=$r._next;zr?zr._next=Vr:Fe[Fr]===$r&&(Fe[Fr]=Vr),Vr?Vr._prev=zr:Fe[jr]===$r&&(Fe[jr]=zr),$r._next=$r._prev=$r.parent=null},_removeFromParent=function(Fe,$r){Fe.parent&&(!$r||Fe.parent.autoRemoveChildren)&&Fe.parent.remove&&Fe.parent.remove(Fe),Fe._act=0},_uncache=function(Fe,$r){if(Fe&&(!$r||$r._end>Fe._dur||$r._start<0))for(var Fr=Fe;Fr;)Fr._dirty=1,Fr=Fr.parent;return Fe},_recacheAncestors=function(Fe){for(var $r=Fe.parent;$r&&$r.parent;)$r._dirty=1,$r.totalDuration(),$r=$r.parent;return Fe},_rewindStartAt=function(Fe,$r,Fr,jr){return Fe._startAt&&(_reverting$1?Fe._startAt.revert(_revertConfigNoKill):Fe.vars.immediateRender&&!Fe.vars.autoRevert||Fe._startAt.render($r,!0,jr))},_hasNoPausedAncestors=function _r(Fe){return!Fe||Fe._ts&&_r(Fe.parent)},_elapsedCycleDuration=function(Fe){return Fe._repeat?_animationCycle(Fe._tTime,Fe=Fe.duration()+Fe._rDelay)*Fe:0},_animationCycle=function(Fe,$r){var Fr=Math.floor(Fe/=$r);return Fe&&Fr===Fe?Fr-1:Fr},_parentToChildTotalTime=function(Fe,$r){return(Fe-$r._start)*$r._ts+($r._ts>=0?0:$r._dirty?$r.totalDuration():$r._tDur)},_setEnd=function(Fe){return Fe._end=_roundPrecise(Fe._start+(Fe._tDur/Math.abs(Fe._ts||Fe._rts||_tinyNum)||0))},_alignPlayhead=function(Fe,$r){var Fr=Fe._dp;return Fr&&Fr.smoothChildTiming&&Fe._ts&&(Fe._start=_roundPrecise(Fr._time-(Fe._ts>0?$r/Fe._ts:((Fe._dirty?Fe.totalDuration():Fe._tDur)-$r)/-Fe._ts)),_setEnd(Fe),Fr._dirty||_uncache(Fr,Fe)),Fe},_postAddChecks=function(Fe,$r){var Fr;if(($r._time||$r._initted&&!$r._dur)&&(Fr=_parentToChildTotalTime(Fe.rawTime(),$r),(!$r._dur||_clamp$1(0,$r.totalDuration(),Fr)-$r._tTime>_tinyNum)&&$r.render(Fr,!0)),_uncache(Fe,$r)._dp&&Fe._initted&&Fe._time>=Fe._dur&&Fe._ts){if(Fe._dur<Fe.duration())for(Fr=Fe;Fr._dp;)Fr.rawTime()>=0&&Fr.totalTime(Fr._tTime),Fr=Fr._dp;Fe._zTime=-_tinyNum}},_addToTimeline=function(Fe,$r,Fr,jr){return $r.parent&&_removeFromParent($r),$r._start=_roundPrecise((_isNumber$1(Fr)?Fr:Fr||Fe!==_globalTimeline?_parsePosition$1(Fe,Fr,$r):Fe._time)+$r._delay),$r._end=_roundPrecise($r._start+($r.totalDuration()/Math.abs($r.timeScale())||0)),_addLinkedListItem(Fe,$r,"_first","_last",Fe._sort?"_start":0),_isFromOrFromStart($r)||(Fe._recent=$r),jr||_postAddChecks(Fe,$r),Fe._ts<0&&_alignPlayhead(Fe,Fe._tTime),Fe},_scrollTrigger=function(Fe,$r){return(_globals.ScrollTrigger||_missingPlugin("scrollTrigger",$r))&&_globals.ScrollTrigger.create($r,Fe)},_attemptInitTween=function(Fe,$r,Fr,jr,zr){if(_initTween(Fe,$r,zr),!Fe._initted)return 1;if(!Fr&&Fe._pt&&!_reverting$1&&(Fe._dur&&Fe.vars.lazy!==!1||!Fe._dur&&Fe.vars.lazy)&&_lastRenderedFrame!==_ticker.frame)return _lazyTweens.push(Fe),Fe._lazy=[zr,jr],1},_parentPlayheadIsBeforeStart=function _r(Fe){var $r=Fe.parent;return $r&&$r._ts&&$r._initted&&!$r._lock&&($r.rawTime()<0||_r($r))},_isFromOrFromStart=function(Fe){var $r=Fe.data;return $r==="isFromStart"||$r==="isStart"},_renderZeroDurationTween=function(Fe,$r,Fr,jr){var zr=Fe.ratio,Vr=$r<0||!$r&&(!Fe._start&&_parentPlayheadIsBeforeStart(Fe)&&!(!Fe._initted&&_isFromOrFromStart(Fe))||(Fe._ts<0||Fe._dp._ts<0)&&!_isFromOrFromStart(Fe))?0:1,Wr=Fe._rDelay,Kr=0,Gr,Yr,Qr;if(Wr&&Fe._repeat&&(Kr=_clamp$1(0,Fe._tDur,$r),Yr=_animationCycle(Kr,Wr),Fe._yoyo&&Yr&1&&(Vr=1-Vr),Yr!==_animationCycle(Fe._tTime,Wr)&&(zr=1-Vr,Fe.vars.repeatRefresh&&Fe._initted&&Fe.invalidate())),Vr!==zr||_reverting$1||jr||Fe._zTime===_tinyNum||!$r&&Fe._zTime){if(!Fe._initted&&_attemptInitTween(Fe,$r,jr,Fr,Kr))return;for(Qr=Fe._zTime,Fe._zTime=$r||(Fr?_tinyNum:0),Fr||(Fr=$r&&!Qr),Fe.ratio=Vr,Fe._from&&(Vr=1-Vr),Fe._time=0,Fe._tTime=Kr,Gr=Fe._pt;Gr;)Gr.r(Vr,Gr.d),Gr=Gr._next;$r<0&&_rewindStartAt(Fe,$r,Fr,!0),Fe._onUpdate&&!Fr&&_callback$1(Fe,"onUpdate"),Kr&&Fe._repeat&&!Fr&&Fe.parent&&_callback$1(Fe,"onRepeat"),($r>=Fe._tDur||$r<0)&&Fe.ratio===Vr&&(Vr&&_removeFromParent(Fe,1),!Fr&&!_reverting$1&&(_callback$1(Fe,Vr?"onComplete":"onReverseComplete",!0),Fe._prom&&Fe._prom()))}else Fe._zTime||(Fe._zTime=$r)},_findNextPauseTween=function(Fe,$r,Fr){var jr;if(Fr>$r)for(jr=Fe._first;jr&&jr._start<=Fr;){if(jr.data==="isPause"&&jr._start>$r)return jr;jr=jr._next}else for(jr=Fe._last;jr&&jr._start>=Fr;){if(jr.data==="isPause"&&jr._start<$r)return jr;jr=jr._prev}},_setDuration=function(Fe,$r,Fr,jr){var zr=Fe._repeat,Vr=_roundPrecise($r)||0,Wr=Fe._tTime/Fe._tDur;return Wr&&!jr&&(Fe._time*=Vr/Fe._dur),Fe._dur=Vr,Fe._tDur=zr?zr<0?1e10:_roundPrecise(Vr*(zr+1)+Fe._rDelay*zr):Vr,Wr>0&&!jr&&_alignPlayhead(Fe,Fe._tTime=Fe._tDur*Wr),Fe.parent&&_setEnd(Fe),Fr||_uncache(Fe.parent,Fe),Fe},_onUpdateTotalDuration=function(Fe){return Fe instanceof Timeline?_uncache(Fe):_setDuration(Fe,Fe._dur)},_zeroPosition={_start:0,endTime:_emptyFunc,totalDuration:_emptyFunc},_parsePosition$1=function _r(Fe,$r,Fr){var jr=Fe.labels,zr=Fe._recent||_zeroPosition,Vr=Fe.duration()>=_bigNum$1?zr.endTime(!1):Fe._dur,Wr,Kr,Gr;return _isString$2($r)&&(isNaN($r)||$r in jr)?(Kr=$r.charAt(0),Gr=$r.substr(-1)==="%",Wr=$r.indexOf("="),Kr==="<"||Kr===">"?(Wr>=0&&($r=$r.replace(/=/,"")),(Kr==="<"?zr._start:zr.endTime(zr._repeat>=0))+(parseFloat($r.substr(1))||0)*(Gr?(Wr<0?zr:Fr).totalDuration()/100:1)):Wr<0?($r in jr||(jr[$r]=Vr),jr[$r]):(Kr=parseFloat($r.charAt(Wr-1)+$r.substr(Wr+1)),Gr&&Fr&&(Kr=Kr/100*(_isArray(Fr)?Fr[0]:Fr).totalDuration()),Wr>1?_r(Fe,$r.substr(0,Wr-1),Fr)+Kr:Vr+Kr)):$r==null?Vr:+$r},_createTweenType=function(Fe,$r,Fr){var jr=_isNumber$1($r[1]),zr=(jr?2:1)+(Fe<2?0:1),Vr=$r[zr],Wr,Kr;if(jr&&(Vr.duration=$r[1]),Vr.parent=Fr,Fe){for(Wr=Vr,Kr=Fr;Kr&&!("immediateRender"in Wr);)Wr=Kr.vars.defaults||{},Kr=_isNotFalse(Kr.vars.inherit)&&Kr.parent;Vr.immediateRender=_isNotFalse(Wr.immediateRender),Fe<2?Vr.runBackwards=1:Vr.startAt=$r[zr-1]}return new Tween($r[0],Vr,$r[zr+1])},_conditionalReturn=function(Fe,$r){return Fe||Fe===0?$r(Fe):$r},_clamp$1=function(Fe,$r,Fr){return Fr<Fe?Fe:Fr>$r?$r:Fr},getUnit=function(Fe,$r){return!_isString$2(Fe)||!($r=_unitExp.exec(Fe))?"":$r[1]},clamp=function(Fe,$r,Fr){return _conditionalReturn(Fr,function(jr){return _clamp$1(Fe,$r,jr)})},_slice=[].slice,_isArrayLike=function(Fe,$r){return Fe&&_isObject$1(Fe)&&"length"in Fe&&(!$r&&!Fe.length||Fe.length-1 in Fe&&_isObject$1(Fe[0]))&&!Fe.nodeType&&Fe!==_win$3},_flatten=function(Fe,$r,Fr){return Fr===void 0&&(Fr=[]),Fe.forEach(function(jr){var zr;return _isString$2(jr)&&!$r||_isArrayLike(jr,1)?(zr=Fr).push.apply(zr,toArray$1(jr)):Fr.push(jr)})||Fr},toArray$1=function(Fe,$r,Fr){return _context$2&&!$r&&_context$2.selector?_context$2.selector(Fe):_isString$2(Fe)&&!Fr&&(_coreInitted$3||!_wake())?_slice.call(($r||_doc$3).querySelectorAll(Fe),0):_isArray(Fe)?_flatten(Fe,Fr):_isArrayLike(Fe)?_slice.call(Fe,0):Fe?[Fe]:[]},selector=function(Fe){return Fe=toArray$1(Fe)[0]||_warn("Invalid scope")||{},function($r){var Fr=Fe.current||Fe.nativeElement||Fe;return toArray$1($r,Fr.querySelectorAll?Fr:Fr===Fe?_warn("Invalid scope")||_doc$3.createElement("div"):Fe)}},shuffle=function(Fe){return Fe.sort(function(){return .5-Math.random()})},distribute=function(Fe){if(_isFunction$2(Fe))return Fe;var $r=_isObject$1(Fe)?Fe:{each:Fe},Fr=_parseEase($r.ease),jr=$r.from||0,zr=parseFloat($r.base)||0,Vr={},Wr=jr>0&&jr<1,Kr=isNaN(jr)||Wr,Gr=$r.axis,Yr=jr,Qr=jr;return _isString$2(jr)?Yr=Qr={center:.5,edges:.5,end:1}[jr]||0:!Wr&&Kr&&(Yr=jr[0],Qr=jr[1]),function(Jr,Zr,tn){var en=(tn||$r).length,rn=Vr[en],nn,on,un,an,sn,dn,ln,cn,fn;if(!rn){if(fn=$r.grid==="auto"?0:($r.grid||[1,_bigNum$1])[1],!fn){for(ln=-_bigNum$1;ln<(ln=tn[fn++].getBoundingClientRect().left)&&fn<en;);fn--}for(rn=Vr[en]=[],nn=Kr?Math.min(fn,en)*Yr-.5:jr%fn,on=fn===_bigNum$1?0:Kr?en*Qr/fn-.5:jr/fn|0,ln=0,cn=_bigNum$1,dn=0;dn<en;dn++)un=dn%fn-nn,an=on-(dn/fn|0),rn[dn]=sn=Gr?Math.abs(Gr==="y"?an:un):_sqrt(un*un+an*an),sn>ln&&(ln=sn),sn<cn&&(cn=sn);jr==="random"&&shuffle(rn),rn.max=ln-cn,rn.min=cn,rn.v=en=(parseFloat($r.amount)||parseFloat($r.each)*(fn>en?en-1:Gr?Gr==="y"?en/fn:fn:Math.max(fn,en/fn))||0)*(jr==="edges"?-1:1),rn.b=en<0?zr-en:zr,rn.u=getUnit($r.amount||$r.each)||0,Fr=Fr&&en<0?_invertEase(Fr):Fr}return en=(rn[Jr]-rn.min)/rn.max||0,_roundPrecise(rn.b+(Fr?Fr(en):en)*rn.v)+rn.u}},_roundModifier=function(Fe){var $r=Math.pow(10,((Fe+"").split(".")[1]||"").length);return function(Fr){var jr=_roundPrecise(Math.round(parseFloat(Fr)/Fe)*Fe*$r);return(jr-jr%1)/$r+(_isNumber$1(Fr)?0:getUnit(Fr))}},snap=function(Fe,$r){var Fr=_isArray(Fe),jr,zr;return!Fr&&_isObject$1(Fe)&&(jr=Fr=Fe.radius||_bigNum$1,Fe.values?(Fe=toArray$1(Fe.values),(zr=!_isNumber$1(Fe[0]))&&(jr*=jr)):Fe=_roundModifier(Fe.increment)),_conditionalReturn($r,Fr?_isFunction$2(Fe)?function(Vr){return zr=Fe(Vr),Math.abs(zr-Vr)<=jr?zr:Vr}:function(Vr){for(var Wr=parseFloat(zr?Vr.x:Vr),Kr=parseFloat(zr?Vr.y:0),Gr=_bigNum$1,Yr=0,Qr=Fe.length,Jr,Zr;Qr--;)zr?(Jr=Fe[Qr].x-Wr,Zr=Fe[Qr].y-Kr,Jr=Jr*Jr+Zr*Zr):Jr=Math.abs(Fe[Qr]-Wr),Jr<Gr&&(Gr=Jr,Yr=Qr);return Yr=!jr||Gr<=jr?Fe[Yr]:Vr,zr||Yr===Vr||_isNumber$1(Vr)?Yr:Yr+getUnit(Vr)}:_roundModifier(Fe))},random=function(Fe,$r,Fr,jr){return _conditionalReturn(_isArray(Fe)?!$r:Fr===!0?!!(Fr=0):!jr,function(){return _isArray(Fe)?Fe[~~(Math.random()*Fe.length)]:(Fr=Fr||1e-5)&&(jr=Fr<1?Math.pow(10,(Fr+"").length-2):1)&&Math.floor(Math.round((Fe-Fr/2+Math.random()*($r-Fe+Fr*.99))/Fr)*Fr*jr)/jr})},pipe=function(){for(var Fe=arguments.length,$r=new Array(Fe),Fr=0;Fr<Fe;Fr++)$r[Fr]=arguments[Fr];return function(jr){return $r.reduce(function(zr,Vr){return Vr(zr)},jr)}},unitize=function(Fe,$r){return function(Fr){return Fe(parseFloat(Fr))+($r||getUnit(Fr))}},normalize=function(Fe,$r,Fr){return mapRange(Fe,$r,0,1,Fr)},_wrapArray=function(Fe,$r,Fr){return _conditionalReturn(Fr,function(jr){return Fe[~~$r(jr)]})},wrap=function _r(Fe,$r,Fr){var jr=$r-Fe;return _isArray(Fe)?_wrapArray(Fe,_r(0,Fe.length),$r):_conditionalReturn(Fr,function(zr){return(jr+(zr-Fe)%jr)%jr+Fe})},wrapYoyo=function _r(Fe,$r,Fr){var jr=$r-Fe,zr=jr*2;return _isArray(Fe)?_wrapArray(Fe,_r(0,Fe.length-1),$r):_conditionalReturn(Fr,function(Vr){return Vr=(zr+(Vr-Fe)%zr)%zr||0,Fe+(Vr>jr?zr-Vr:Vr)})},_replaceRandom=function(Fe){for(var $r=0,Fr="",jr,zr,Vr,Wr;~(jr=Fe.indexOf("random(",$r));)Vr=Fe.indexOf(")",jr),Wr=Fe.charAt(jr+7)==="[",zr=Fe.substr(jr+7,Vr-jr-7).match(Wr?_delimitedValueExp:_strictNumExp),Fr+=Fe.substr($r,jr-$r)+random(Wr?zr:+zr[0],Wr?0:+zr[1],+zr[2]||1e-5),$r=Vr+1;return Fr+Fe.substr($r,Fe.length-$r)},mapRange=function(Fe,$r,Fr,jr,zr){var Vr=$r-Fe,Wr=jr-Fr;return _conditionalReturn(zr,function(Kr){return Fr+((Kr-Fe)/Vr*Wr||0)})},interpolate$2=function _r(Fe,$r,Fr,jr){var zr=isNaN(Fe+$r)?0:function(Zr){return(1-Zr)*Fe+Zr*$r};if(!zr){var Vr=_isString$2(Fe),Wr={},Kr,Gr,Yr,Qr,Jr;if(Fr===!0&&(jr=1)&&(Fr=null),Vr)Fe={p:Fe},$r={p:$r};else if(_isArray(Fe)&&!_isArray($r)){for(Yr=[],Qr=Fe.length,Jr=Qr-2,Gr=1;Gr<Qr;Gr++)Yr.push(_r(Fe[Gr-1],Fe[Gr]));Qr--,zr=function(tn){tn*=Qr;var en=Math.min(Jr,~~tn);return Yr[en](tn-en)},Fr=$r}else jr||(Fe=_merge$1(_isArray(Fe)?[]:{},Fe));if(!Yr){for(Kr in $r)_addPropTween.call(Wr,Fe,Kr,"get",$r[Kr]);zr=function(tn){return _renderPropTweens(tn,Wr)||(Vr?Fe.p:Fe)}}}return _conditionalReturn(Fr,zr)},_getLabelInDirection=function(Fe,$r,Fr){var jr=Fe.labels,zr=_bigNum$1,Vr,Wr,Kr;for(Vr in jr)Wr=jr[Vr]-$r,Wr<0==!!Fr&&Wr&&zr>(Wr=Math.abs(Wr))&&(Kr=Vr,zr=Wr);return Kr},_callback$1=function(Fe,$r,Fr){var jr=Fe.vars,zr=jr[$r],Vr=_context$2,Wr=Fe._ctx,Kr,Gr,Yr;if(!!zr)return Kr=jr[$r+"Params"],Gr=jr.callbackScope||Fe,Fr&&_lazyTweens.length&&_lazyRender(),Wr&&(_context$2=Wr),Yr=Kr?zr.apply(Gr,Kr):zr.call(Gr),_context$2=Vr,Yr},_interrupt=function(Fe){return _removeFromParent(Fe),Fe.scrollTrigger&&Fe.scrollTrigger.kill(!!_reverting$1),Fe.progress()<1&&_callback$1(Fe,"onInterrupt"),Fe},_quickTween,_registerPluginQueue=[],_createPlugin=function(Fe){if(_windowExists$3()&&Fe){Fe=!Fe.name&&Fe.default||Fe;var $r=Fe.name,Fr=_isFunction$2(Fe),jr=$r&&!Fr&&Fe.init?function(){this._props=[]}:Fe,zr={init:_emptyFunc,render:_renderPropTweens,add:_addPropTween,kill:_killPropTweensOf,modifier:_addPluginModifier,rawVars:0},Vr={targetTest:0,get:0,getSetter:_getSetter,aliases:{},register:0};if(_wake(),Fe!==jr){if(_plugins[$r])return;_setDefaults$1(jr,_setDefaults$1(_copyExcluding(Fe,zr),Vr)),_merge$1(jr.prototype,_merge$1(zr,_copyExcluding(Fe,Vr))),_plugins[jr.prop=$r]=jr,Fe.targetTest&&(_harnessPlugins.push(jr),_reservedProps[$r]=1),$r=($r==="css"?"CSS":$r.charAt(0).toUpperCase()+$r.substr(1))+"Plugin"}_addGlobal($r,jr),Fe.register&&Fe.register(gsap$3,jr,PropTween)}else Fe&&_registerPluginQueue.push(Fe)},_255=255,_colorLookup={aqua:[0,_255,_255],lime:[0,_255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,_255],navy:[0,0,128],white:[_255,_255,_255],olive:[128,128,0],yellow:[_255,_255,0],orange:[_255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[_255,0,0],pink:[_255,192,203],cyan:[0,_255,_255],transparent:[_255,_255,_255,0]},_hue=function(Fe,$r,Fr){return Fe+=Fe<0?1:Fe>1?-1:0,(Fe*6<1?$r+(Fr-$r)*Fe*6:Fe<.5?Fr:Fe*3<2?$r+(Fr-$r)*(2/3-Fe)*6:$r)*_255+.5|0},splitColor=function(Fe,$r,Fr){var jr=Fe?_isNumber$1(Fe)?[Fe>>16,Fe>>8&_255,Fe&_255]:0:_colorLookup.black,zr,Vr,Wr,Kr,Gr,Yr,Qr,Jr,Zr,tn;if(!jr){if(Fe.substr(-1)===","&&(Fe=Fe.substr(0,Fe.length-1)),_colorLookup[Fe])jr=_colorLookup[Fe];else if(Fe.charAt(0)==="#"){if(Fe.length<6&&(zr=Fe.charAt(1),Vr=Fe.charAt(2),Wr=Fe.charAt(3),Fe="#"+zr+zr+Vr+Vr+Wr+Wr+(Fe.length===5?Fe.charAt(4)+Fe.charAt(4):"")),Fe.length===9)return jr=parseInt(Fe.substr(1,6),16),[jr>>16,jr>>8&_255,jr&_255,parseInt(Fe.substr(7),16)/255];Fe=parseInt(Fe.substr(1),16),jr=[Fe>>16,Fe>>8&_255,Fe&_255]}else if(Fe.substr(0,3)==="hsl"){if(jr=tn=Fe.match(_strictNumExp),!$r)Kr=+jr[0]%360/360,Gr=+jr[1]/100,Yr=+jr[2]/100,Vr=Yr<=.5?Yr*(Gr+1):Yr+Gr-Yr*Gr,zr=Yr*2-Vr,jr.length>3&&(jr[3]*=1),jr[0]=_hue(Kr+1/3,zr,Vr),jr[1]=_hue(Kr,zr,Vr),jr[2]=_hue(Kr-1/3,zr,Vr);else if(~Fe.indexOf("="))return jr=Fe.match(_numExp),Fr&&jr.length<4&&(jr[3]=1),jr}else jr=Fe.match(_strictNumExp)||_colorLookup.transparent;jr=jr.map(Number)}return $r&&!tn&&(zr=jr[0]/_255,Vr=jr[1]/_255,Wr=jr[2]/_255,Qr=Math.max(zr,Vr,Wr),Jr=Math.min(zr,Vr,Wr),Yr=(Qr+Jr)/2,Qr===Jr?Kr=Gr=0:(Zr=Qr-Jr,Gr=Yr>.5?Zr/(2-Qr-Jr):Zr/(Qr+Jr),Kr=Qr===zr?(Vr-Wr)/Zr+(Vr<Wr?6:0):Qr===Vr?(Wr-zr)/Zr+2:(zr-Vr)/Zr+4,Kr*=60),jr[0]=~~(Kr+.5),jr[1]=~~(Gr*100+.5),jr[2]=~~(Yr*100+.5)),Fr&&jr.length<4&&(jr[3]=1),jr},_colorOrderData=function(Fe){var $r=[],Fr=[],jr=-1;return Fe.split(_colorExp).forEach(function(zr){var Vr=zr.match(_numWithUnitExp)||[];$r.push.apply($r,Vr),Fr.push(jr+=Vr.length+1)}),$r.c=Fr,$r},_formatColors=function(Fe,$r,Fr){var jr="",zr=(Fe+jr).match(_colorExp),Vr=$r?"hsla(":"rgba(",Wr=0,Kr,Gr,Yr,Qr;if(!zr)return Fe;if(zr=zr.map(function(Jr){return(Jr=splitColor(Jr,$r,1))&&Vr+($r?Jr[0]+","+Jr[1]+"%,"+Jr[2]+"%,"+Jr[3]:Jr.join(","))+")"}),Fr&&(Yr=_colorOrderData(Fe),Kr=Fr.c,Kr.join(jr)!==Yr.c.join(jr)))for(Gr=Fe.replace(_colorExp,"1").split(_numWithUnitExp),Qr=Gr.length-1;Wr<Qr;Wr++)jr+=Gr[Wr]+(~Kr.indexOf(Wr)?zr.shift()||Vr+"0,0,0,0)":(Yr.length?Yr:zr.length?zr:Fr).shift());if(!Gr)for(Gr=Fe.split(_colorExp),Qr=Gr.length-1;Wr<Qr;Wr++)jr+=Gr[Wr]+zr[Wr];return jr+Gr[Qr]},_colorExp=function(){var _r="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",Fe;for(Fe in _colorLookup)_r+="|"+Fe+"\\b";return new RegExp(_r+")","gi")}(),_hslExp=/hsl[a]?\(/,_colorStringFilter=function(Fe){var $r=Fe.join(" "),Fr;if(_colorExp.lastIndex=0,_colorExp.test($r))return Fr=_hslExp.test($r),Fe[1]=_formatColors(Fe[1],Fr),Fe[0]=_formatColors(Fe[0],Fr,_colorOrderData(Fe[1])),!0},_tickerActive,_ticker=function(){var _r=Date.now,Fe=500,$r=33,Fr=_r(),jr=Fr,zr=1e3/240,Vr=zr,Wr=[],Kr,Gr,Yr,Qr,Jr,Zr,tn=function en(rn){var nn=_r()-jr,on=rn===!0,un,an,sn,dn;if(nn>Fe&&(Fr+=nn-$r),jr+=nn,sn=jr-Fr,un=sn-Vr,(un>0||on)&&(dn=++Qr.frame,Jr=sn-Qr.time*1e3,Qr.time=sn=sn/1e3,Vr+=un+(un>=zr?4:zr-un),an=1),on||(Kr=Gr(en)),an)for(Zr=0;Zr<Wr.length;Zr++)Wr[Zr](sn,Jr,dn,rn)};return Qr={time:0,frame:0,tick:function(){tn(!0)},deltaRatio:function(rn){return Jr/(1e3/(rn||60))},wake:function(){_coreReady&&(!_coreInitted$3&&_windowExists$3()&&(_win$3=_coreInitted$3=window,_doc$3=_win$3.document||{},_globals.gsap=gsap$3,(_win$3.gsapVersions||(_win$3.gsapVersions=[])).push(gsap$3.version),_install(_installScope||_win$3.GreenSockGlobals||!_win$3.gsap&&_win$3||{}),Yr=_win$3.requestAnimationFrame,_registerPluginQueue.forEach(_createPlugin)),Kr&&Qr.sleep(),Gr=Yr||function(rn){return setTimeout(rn,Vr-Qr.time*1e3+1|0)},_tickerActive=1,tn(2))},sleep:function(){(Yr?_win$3.cancelAnimationFrame:clearTimeout)(Kr),_tickerActive=0,Gr=_emptyFunc},lagSmoothing:function(rn,nn){Fe=rn||1/0,$r=Math.min(nn||33,Fe)},fps:function(rn){zr=1e3/(rn||240),Vr=Qr.time*1e3+zr},add:function(rn,nn,on){var un=nn?function(an,sn,dn,ln){rn(an,sn,dn,ln),Qr.remove(un)}:rn;return Qr.remove(rn),Wr[on?"unshift":"push"](un),_wake(),un},remove:function(rn,nn){~(nn=Wr.indexOf(rn))&&Wr.splice(nn,1)&&Zr>=nn&&Zr--},_listeners:Wr},Qr}(),_wake=function(){return!_tickerActive&&_ticker.wake()},_easeMap={},_customEaseExp=/^[\d.\-M][\d.\-,\s]/,_quotesExp=/["']/g,_parseObjectInString=function(Fe){for(var $r={},Fr=Fe.substr(1,Fe.length-3).split(":"),jr=Fr[0],zr=1,Vr=Fr.length,Wr,Kr,Gr;zr<Vr;zr++)Kr=Fr[zr],Wr=zr!==Vr-1?Kr.lastIndexOf(","):Kr.length,Gr=Kr.substr(0,Wr),$r[jr]=isNaN(Gr)?Gr.replace(_quotesExp,"").trim():+Gr,jr=Kr.substr(Wr+1).trim();return $r},_valueInParentheses=function(Fe){var $r=Fe.indexOf("(")+1,Fr=Fe.indexOf(")"),jr=Fe.indexOf("(",$r);return Fe.substring($r,~jr&&jr<Fr?Fe.indexOf(")",Fr+1):Fr)},_configEaseFromString=function(Fe){var $r=(Fe+"").split("("),Fr=_easeMap[$r[0]];return Fr&&$r.length>1&&Fr.config?Fr.config.apply(null,~Fe.indexOf("{")?[_parseObjectInString($r[1])]:_valueInParentheses(Fe).split(",").map(_numericIfPossible)):_easeMap._CE&&_customEaseExp.test(Fe)?_easeMap._CE("",Fe):Fr},_invertEase=function(Fe){return function($r){return 1-Fe(1-$r)}},_propagateYoyoEase=function _r(Fe,$r){for(var Fr=Fe._first,jr;Fr;)Fr instanceof Timeline?_r(Fr,$r):Fr.vars.yoyoEase&&(!Fr._yoyo||!Fr._repeat)&&Fr._yoyo!==$r&&(Fr.timeline?_r(Fr.timeline,$r):(jr=Fr._ease,Fr._ease=Fr._yEase,Fr._yEase=jr,Fr._yoyo=$r)),Fr=Fr._next},_parseEase=function(Fe,$r){return Fe&&(_isFunction$2(Fe)?Fe:_easeMap[Fe]||_configEaseFromString(Fe))||$r},_insertEase=function(Fe,$r,Fr,jr){Fr===void 0&&(Fr=function(Kr){return 1-$r(1-Kr)}),jr===void 0&&(jr=function(Kr){return Kr<.5?$r(Kr*2)/2:1-$r((1-Kr)*2)/2});var zr={easeIn:$r,easeOut:Fr,easeInOut:jr},Vr;return _forEachName(Fe,function(Wr){_easeMap[Wr]=_globals[Wr]=zr,_easeMap[Vr=Wr.toLowerCase()]=Fr;for(var Kr in zr)_easeMap[Vr+(Kr==="easeIn"?".in":Kr==="easeOut"?".out":".inOut")]=_easeMap[Wr+"."+Kr]=zr[Kr]}),zr},_easeInOutFromOut=function(Fe){return function($r){return $r<.5?(1-Fe(1-$r*2))/2:.5+Fe(($r-.5)*2)/2}},_configElastic=function _r(Fe,$r,Fr){var jr=$r>=1?$r:1,zr=(Fr||(Fe?.3:.45))/($r<1?$r:1),Vr=zr/_2PI*(Math.asin(1/jr)||0),Wr=function(Yr){return Yr===1?1:jr*Math.pow(2,-10*Yr)*_sin((Yr-Vr)*zr)+1},Kr=Fe==="out"?Wr:Fe==="in"?function(Gr){return 1-Wr(1-Gr)}:_easeInOutFromOut(Wr);return zr=_2PI/zr,Kr.config=function(Gr,Yr){return _r(Fe,Gr,Yr)},Kr},_configBack=function _r(Fe,$r){$r===void 0&&($r=1.70158);var Fr=function(Vr){return Vr?--Vr*Vr*(($r+1)*Vr+$r)+1:0},jr=Fe==="out"?Fr:Fe==="in"?function(zr){return 1-Fr(1-zr)}:_easeInOutFromOut(Fr);return jr.config=function(zr){return _r(Fe,zr)},jr};_forEachName("Linear,Quad,Cubic,Quart,Quint,Strong",function(_r,Fe){var $r=Fe<5?Fe+1:Fe;_insertEase(_r+",Power"+($r-1),Fe?function(Fr){return Math.pow(Fr,$r)}:function(Fr){return Fr},function(Fr){return 1-Math.pow(1-Fr,$r)},function(Fr){return Fr<.5?Math.pow(Fr*2,$r)/2:1-Math.pow((1-Fr)*2,$r)/2})});_easeMap.Linear.easeNone=_easeMap.none=_easeMap.Linear.easeIn;_insertEase("Elastic",_configElastic("in"),_configElastic("out"),_configElastic());(function(_r,Fe){var $r=1/Fe,Fr=2*$r,jr=2.5*$r,zr=function(Wr){return Wr<$r?_r*Wr*Wr:Wr<Fr?_r*Math.pow(Wr-1.5/Fe,2)+.75:Wr<jr?_r*(Wr-=2.25/Fe)*Wr+.9375:_r*Math.pow(Wr-2.625/Fe,2)+.984375};_insertEase("Bounce",function(Vr){return 1-zr(1-Vr)},zr)})(7.5625,2.75);_insertEase("Expo",function(_r){return _r?Math.pow(2,10*(_r-1)):0});_insertEase("Circ",function(_r){return-(_sqrt(1-_r*_r)-1)});_insertEase("Sine",function(_r){return _r===1?1:-_cos(_r*_HALF_PI)+1});_insertEase("Back",_configBack("in"),_configBack("out"),_configBack());_easeMap.SteppedEase=_easeMap.steps=_globals.SteppedEase={config:function(Fe,$r){Fe===void 0&&(Fe=1);var Fr=1/Fe,jr=Fe+($r?0:1),zr=$r?1:0,Vr=1-_tinyNum;return function(Wr){return((jr*_clamp$1(0,Vr,Wr)|0)+zr)*Fr}}};_defaults$1.ease=_easeMap["quad.out"];_forEachName("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(_r){return _callbackNames+=_r+","+_r+"Params,"});var GSCache=function(Fe,$r){this.id=_gsID++,Fe._gsap=this,this.target=Fe,this.harness=$r,this.get=$r?$r.get:_getProperty,this.set=$r?$r.getSetter:_getSetter},Animation$1=function(){function _r($r){this.vars=$r,this._delay=+$r.delay||0,(this._repeat=$r.repeat===1/0?-2:$r.repeat||0)&&(this._rDelay=$r.repeatDelay||0,this._yoyo=!!$r.yoyo||!!$r.yoyoEase),this._ts=1,_setDuration(this,+$r.duration,1,1),this.data=$r.data,_context$2&&(this._ctx=_context$2,_context$2.data.push(this)),_tickerActive||_ticker.wake()}var Fe=_r.prototype;return Fe.delay=function(Fr){return Fr||Fr===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+Fr-this._delay),this._delay=Fr,this):this._delay},Fe.duration=function(Fr){return arguments.length?this.totalDuration(this._repeat>0?Fr+(Fr+this._rDelay)*this._repeat:Fr):this.totalDuration()&&this._dur},Fe.totalDuration=function(Fr){return arguments.length?(this._dirty=0,_setDuration(this,this._repeat<0?Fr:(Fr-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},Fe.totalTime=function(Fr,jr){if(_wake(),!arguments.length)return this._tTime;var zr=this._dp;if(zr&&zr.smoothChildTiming&&this._ts){for(_alignPlayhead(this,Fr),!zr._dp||zr.parent||_postAddChecks(zr,this);zr&&zr.parent;)zr.parent._time!==zr._start+(zr._ts>=0?zr._tTime/zr._ts:(zr.totalDuration()-zr._tTime)/-zr._ts)&&zr.totalTime(zr._tTime,!0),zr=zr.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&Fr<this._tDur||this._ts<0&&Fr>0||!this._tDur&&!Fr)&&_addToTimeline(this._dp,this,this._start-this._delay)}return(this._tTime!==Fr||!this._dur&&!jr||this._initted&&Math.abs(this._zTime)===_tinyNum||!Fr&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=Fr),_lazySafeRender(this,Fr,jr)),this},Fe.time=function(Fr,jr){return arguments.length?this.totalTime(Math.min(this.totalDuration(),Fr+_elapsedCycleDuration(this))%(this._dur+this._rDelay)||(Fr?this._dur:0),jr):this._time},Fe.totalProgress=function(Fr,jr){return arguments.length?this.totalTime(this.totalDuration()*Fr,jr):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},Fe.progress=function(Fr,jr){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-Fr:Fr)+_elapsedCycleDuration(this),jr):this.duration()?Math.min(1,this._time/this._dur):this.ratio},Fe.iteration=function(Fr,jr){var zr=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(Fr-1)*zr,jr):this._repeat?_animationCycle(this._tTime,zr)+1:1},Fe.timeScale=function(Fr){if(!arguments.length)return this._rts===-_tinyNum?0:this._rts;if(this._rts===Fr)return this;var jr=this.parent&&this._ts?_parentToChildTotalTime(this.parent._time,this):this._tTime;return this._rts=+Fr||0,this._ts=this._ps||Fr===-_tinyNum?0:this._rts,this.totalTime(_clamp$1(-Math.abs(this._delay),this._tDur,jr),!0),_setEnd(this),_recacheAncestors(this)},Fe.paused=function(Fr){return arguments.length?(this._ps!==Fr&&(this._ps=Fr,Fr?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(_wake(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==_tinyNum&&(this._tTime-=_tinyNum)))),this):this._ps},Fe.startTime=function(Fr){if(arguments.length){this._start=Fr;var jr=this.parent||this._dp;return jr&&(jr._sort||!this.parent)&&_addToTimeline(jr,this,Fr-this._delay),this}return this._start},Fe.endTime=function(Fr){return this._start+(_isNotFalse(Fr)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},Fe.rawTime=function(Fr){var jr=this.parent||this._dp;return jr?Fr&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?_parentToChildTotalTime(jr.rawTime(Fr),this):this._tTime:this._tTime},Fe.revert=function(Fr){Fr===void 0&&(Fr=_revertConfig);var jr=_reverting$1;return _reverting$1=Fr,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(Fr),this.totalTime(-.01,Fr.suppressEvents)),this.data!=="nested"&&Fr.kill!==!1&&this.kill(),_reverting$1=jr,this},Fe.globalTime=function(Fr){for(var jr=this,zr=arguments.length?Fr:jr.rawTime();jr;)zr=jr._start+zr/(jr._ts||1),jr=jr._dp;return!this.parent&&this._sat?this._sat.vars.immediateRender?-1:this._sat.globalTime(Fr):zr},Fe.repeat=function(Fr){return arguments.length?(this._repeat=Fr===1/0?-2:Fr,_onUpdateTotalDuration(this)):this._repeat===-2?1/0:this._repeat},Fe.repeatDelay=function(Fr){if(arguments.length){var jr=this._time;return this._rDelay=Fr,_onUpdateTotalDuration(this),jr?this.time(jr):this}return this._rDelay},Fe.yoyo=function(Fr){return arguments.length?(this._yoyo=Fr,this):this._yoyo},Fe.seek=function(Fr,jr){return this.totalTime(_parsePosition$1(this,Fr),_isNotFalse(jr))},Fe.restart=function(Fr,jr){return this.play().totalTime(Fr?-this._delay:0,_isNotFalse(jr))},Fe.play=function(Fr,jr){return Fr!=null&&this.seek(Fr,jr),this.reversed(!1).paused(!1)},Fe.reverse=function(Fr,jr){return Fr!=null&&this.seek(Fr||this.totalDuration(),jr),this.reversed(!0).paused(!1)},Fe.pause=function(Fr,jr){return Fr!=null&&this.seek(Fr,jr),this.paused(!0)},Fe.resume=function(){return this.paused(!1)},Fe.reversed=function(Fr){return arguments.length?(!!Fr!==this.reversed()&&this.timeScale(-this._rts||(Fr?-_tinyNum:0)),this):this._rts<0},Fe.invalidate=function(){return this._initted=this._act=0,this._zTime=-_tinyNum,this},Fe.isActive=function(){var Fr=this.parent||this._dp,jr=this._start,zr;return!!(!Fr||this._ts&&this._initted&&Fr.isActive()&&(zr=Fr.rawTime(!0))>=jr&&zr<this.endTime(!0)-_tinyNum)},Fe.eventCallback=function(Fr,jr,zr){var Vr=this.vars;return arguments.length>1?(jr?(Vr[Fr]=jr,zr&&(Vr[Fr+"Params"]=zr),Fr==="onUpdate"&&(this._onUpdate=jr)):delete Vr[Fr],this):Vr[Fr]},Fe.then=function(Fr){var jr=this;return new Promise(function(zr){var Vr=_isFunction$2(Fr)?Fr:_passThrough$1,Wr=function(){var Gr=jr.then;jr.then=null,_isFunction$2(Vr)&&(Vr=Vr(jr))&&(Vr.then||Vr===jr)&&(jr.then=Gr),zr(Vr),jr.then=Gr};jr._initted&&jr.totalProgress()===1&&jr._ts>=0||!jr._tTime&&jr._ts<0?Wr():jr._prom=Wr})},Fe.kill=function(){_interrupt(this)},_r}();_setDefaults$1(Animation$1.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-_tinyNum,_prom:0,_ps:!1,_rts:1});var Timeline=function(_r){_inheritsLoose(Fe,_r);function Fe(Fr,jr){var zr;return Fr===void 0&&(Fr={}),zr=_r.call(this,Fr)||this,zr.labels={},zr.smoothChildTiming=!!Fr.smoothChildTiming,zr.autoRemoveChildren=!!Fr.autoRemoveChildren,zr._sort=_isNotFalse(Fr.sortChildren),_globalTimeline&&_addToTimeline(Fr.parent||_globalTimeline,_assertThisInitialized$2(zr),jr),Fr.reversed&&zr.reverse(),Fr.paused&&zr.paused(!0),Fr.scrollTrigger&&_scrollTrigger(_assertThisInitialized$2(zr),Fr.scrollTrigger),zr}var $r=Fe.prototype;return $r.to=function(jr,zr,Vr){return _createTweenType(0,arguments,this),this},$r.from=function(jr,zr,Vr){return _createTweenType(1,arguments,this),this},$r.fromTo=function(jr,zr,Vr,Wr){return _createTweenType(2,arguments,this),this},$r.set=function(jr,zr,Vr){return zr.duration=0,zr.parent=this,_inheritDefaults(zr).repeatDelay||(zr.repeat=0),zr.immediateRender=!!zr.immediateRender,new Tween(jr,zr,_parsePosition$1(this,Vr),1),this},$r.call=function(jr,zr,Vr){return _addToTimeline(this,Tween.delayedCall(0,jr,zr),Vr)},$r.staggerTo=function(jr,zr,Vr,Wr,Kr,Gr,Yr){return Vr.duration=zr,Vr.stagger=Vr.stagger||Wr,Vr.onComplete=Gr,Vr.onCompleteParams=Yr,Vr.parent=this,new Tween(jr,Vr,_parsePosition$1(this,Kr)),this},$r.staggerFrom=function(jr,zr,Vr,Wr,Kr,Gr,Yr){return Vr.runBackwards=1,_inheritDefaults(Vr).immediateRender=_isNotFalse(Vr.immediateRender),this.staggerTo(jr,zr,Vr,Wr,Kr,Gr,Yr)},$r.staggerFromTo=function(jr,zr,Vr,Wr,Kr,Gr,Yr,Qr){return Wr.startAt=Vr,_inheritDefaults(Wr).immediateRender=_isNotFalse(Wr.immediateRender),this.staggerTo(jr,zr,Wr,Kr,Gr,Yr,Qr)},$r.render=function(jr,zr,Vr){var Wr=this._time,Kr=this._dirty?this.totalDuration():this._tDur,Gr=this._dur,Yr=jr<=0?0:_roundPrecise(jr),Qr=this._zTime<0!=jr<0&&(this._initted||!Gr),Jr,Zr,tn,en,rn,nn,on,un,an,sn,dn,ln;if(this!==_globalTimeline&&Yr>Kr&&jr>=0&&(Yr=Kr),Yr!==this._tTime||Vr||Qr){if(Wr!==this._time&&Gr&&(Yr+=this._time-Wr,jr+=this._time-Wr),Jr=Yr,an=this._start,un=this._ts,nn=!un,Qr&&(Gr||(Wr=this._zTime),(jr||!zr)&&(this._zTime=jr)),this._repeat){if(dn=this._yoyo,rn=Gr+this._rDelay,this._repeat<-1&&jr<0)return this.totalTime(rn*100+jr,zr,Vr);if(Jr=_roundPrecise(Yr%rn),Yr===Kr?(en=this._repeat,Jr=Gr):(en=~~(Yr/rn),en&&en===Yr/rn&&(Jr=Gr,en--),Jr>Gr&&(Jr=Gr)),sn=_animationCycle(this._tTime,rn),!Wr&&this._tTime&&sn!==en&&this._tTime-sn*rn-this._dur<=0&&(sn=en),dn&&en&1&&(Jr=Gr-Jr,ln=1),en!==sn&&!this._lock){var cn=dn&&sn&1,fn=cn===(dn&&en&1);if(en<sn&&(cn=!cn),Wr=cn?0:Gr,this._lock=1,this.render(Wr||(ln?0:_roundPrecise(en*rn)),zr,!Gr)._lock=0,this._tTime=Yr,!zr&&this.parent&&_callback$1(this,"onRepeat"),this.vars.repeatRefresh&&!ln&&(this.invalidate()._lock=1),Wr&&Wr!==this._time||nn!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(Gr=this._dur,Kr=this._tDur,fn&&(this._lock=2,Wr=cn?Gr:-1e-4,this.render(Wr,!0),this.vars.repeatRefresh&&!ln&&this.invalidate()),this._lock=0,!this._ts&&!nn)return this;_propagateYoyoEase(this,ln)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(on=_findNextPauseTween(this,_roundPrecise(Wr),_roundPrecise(Jr)),on&&(Yr-=Jr-(Jr=on._start))),this._tTime=Yr,this._time=Jr,this._act=!un,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=jr,Wr=0),!Wr&&Jr&&!zr&&!en&&(_callback$1(this,"onStart"),this._tTime!==Yr))return this;if(Jr>=Wr&&jr>=0)for(Zr=this._first;Zr;){if(tn=Zr._next,(Zr._act||Jr>=Zr._start)&&Zr._ts&&on!==Zr){if(Zr.parent!==this)return this.render(jr,zr,Vr);if(Zr.render(Zr._ts>0?(Jr-Zr._start)*Zr._ts:(Zr._dirty?Zr.totalDuration():Zr._tDur)+(Jr-Zr._start)*Zr._ts,zr,Vr),Jr!==this._time||!this._ts&&!nn){on=0,tn&&(Yr+=this._zTime=-_tinyNum);break}}Zr=tn}else{Zr=this._last;for(var pn=jr<0?jr:Jr;Zr;){if(tn=Zr._prev,(Zr._act||pn<=Zr._end)&&Zr._ts&&on!==Zr){if(Zr.parent!==this)return this.render(jr,zr,Vr);if(Zr.render(Zr._ts>0?(pn-Zr._start)*Zr._ts:(Zr._dirty?Zr.totalDuration():Zr._tDur)+(pn-Zr._start)*Zr._ts,zr,Vr||_reverting$1&&(Zr._initted||Zr._startAt)),Jr!==this._time||!this._ts&&!nn){on=0,tn&&(Yr+=this._zTime=pn?-_tinyNum:_tinyNum);break}}Zr=tn}}if(on&&!zr&&(this.pause(),on.render(Jr>=Wr?0:-_tinyNum)._zTime=Jr>=Wr?1:-1,this._ts))return this._start=an,_setEnd(this),this.render(jr,zr,Vr);this._onUpdate&&!zr&&_callback$1(this,"onUpdate",!0),(Yr===Kr&&this._tTime>=this.totalDuration()||!Yr&&Wr)&&(an===this._start||Math.abs(un)!==Math.abs(this._ts))&&(this._lock||((jr||!Gr)&&(Yr===Kr&&this._ts>0||!Yr&&this._ts<0)&&_removeFromParent(this,1),!zr&&!(jr<0&&!Wr)&&(Yr||Wr||!Kr)&&(_callback$1(this,Yr===Kr&&jr>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(Yr<Kr&&this.timeScale()>0)&&this._prom())))}return this},$r.add=function(jr,zr){var Vr=this;if(_isNumber$1(zr)||(zr=_parsePosition$1(this,zr,jr)),!(jr instanceof Animation$1)){if(_isArray(jr))return jr.forEach(function(Wr){return Vr.add(Wr,zr)}),this;if(_isString$2(jr))return this.addLabel(jr,zr);if(_isFunction$2(jr))jr=Tween.delayedCall(0,jr);else return this}return this!==jr?_addToTimeline(this,jr,zr):this},$r.getChildren=function(jr,zr,Vr,Wr){jr===void 0&&(jr=!0),zr===void 0&&(zr=!0),Vr===void 0&&(Vr=!0),Wr===void 0&&(Wr=-_bigNum$1);for(var Kr=[],Gr=this._first;Gr;)Gr._start>=Wr&&(Gr instanceof Tween?zr&&Kr.push(Gr):(Vr&&Kr.push(Gr),jr&&Kr.push.apply(Kr,Gr.getChildren(!0,zr,Vr)))),Gr=Gr._next;return Kr},$r.getById=function(jr){for(var zr=this.getChildren(1,1,1),Vr=zr.length;Vr--;)if(zr[Vr].vars.id===jr)return zr[Vr]},$r.remove=function(jr){return _isString$2(jr)?this.removeLabel(jr):_isFunction$2(jr)?this.killTweensOf(jr):(_removeLinkedListItem(this,jr),jr===this._recent&&(this._recent=this._last),_uncache(this))},$r.totalTime=function(jr,zr){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=_roundPrecise(_ticker.time-(this._ts>0?jr/this._ts:(this.totalDuration()-jr)/-this._ts))),_r.prototype.totalTime.call(this,jr,zr),this._forcing=0,this):this._tTime},$r.addLabel=function(jr,zr){return this.labels[jr]=_parsePosition$1(this,zr),this},$r.removeLabel=function(jr){return delete this.labels[jr],this},$r.addPause=function(jr,zr,Vr){var Wr=Tween.delayedCall(0,zr||_emptyFunc,Vr);return Wr.data="isPause",this._hasPause=1,_addToTimeline(this,Wr,_parsePosition$1(this,jr))},$r.removePause=function(jr){var zr=this._first;for(jr=_parsePosition$1(this,jr);zr;)zr._start===jr&&zr.data==="isPause"&&_removeFromParent(zr),zr=zr._next},$r.killTweensOf=function(jr,zr,Vr){for(var Wr=this.getTweensOf(jr,Vr),Kr=Wr.length;Kr--;)_overwritingTween!==Wr[Kr]&&Wr[Kr].kill(jr,zr);return this},$r.getTweensOf=function(jr,zr){for(var Vr=[],Wr=toArray$1(jr),Kr=this._first,Gr=_isNumber$1(zr),Yr;Kr;)Kr instanceof Tween?_arrayContainsAny(Kr._targets,Wr)&&(Gr?(!_overwritingTween||Kr._initted&&Kr._ts)&&Kr.globalTime(0)<=zr&&Kr.globalTime(Kr.totalDuration())>zr:!zr||Kr.isActive())&&Vr.push(Kr):(Yr=Kr.getTweensOf(Wr,zr)).length&&Vr.push.apply(Vr,Yr),Kr=Kr._next;return Vr},$r.tweenTo=function(jr,zr){zr=zr||{};var Vr=this,Wr=_parsePosition$1(Vr,jr),Kr=zr,Gr=Kr.startAt,Yr=Kr.onStart,Qr=Kr.onStartParams,Jr=Kr.immediateRender,Zr,tn=Tween.to(Vr,_setDefaults$1({ease:zr.ease||"none",lazy:!1,immediateRender:!1,time:Wr,overwrite:"auto",duration:zr.duration||Math.abs((Wr-(Gr&&"time"in Gr?Gr.time:Vr._time))/Vr.timeScale())||_tinyNum,onStart:function(){if(Vr.pause(),!Zr){var rn=zr.duration||Math.abs((Wr-(Gr&&"time"in Gr?Gr.time:Vr._time))/Vr.timeScale());tn._dur!==rn&&_setDuration(tn,rn,0,1).render(tn._time,!0,!0),Zr=1}Yr&&Yr.apply(tn,Qr||[])}},zr));return Jr?tn.render(0):tn},$r.tweenFromTo=function(jr,zr,Vr){return this.tweenTo(zr,_setDefaults$1({startAt:{time:_parsePosition$1(this,jr)}},Vr))},$r.recent=function(){return this._recent},$r.nextLabel=function(jr){return jr===void 0&&(jr=this._time),_getLabelInDirection(this,_parsePosition$1(this,jr))},$r.previousLabel=function(jr){return jr===void 0&&(jr=this._time),_getLabelInDirection(this,_parsePosition$1(this,jr),1)},$r.currentLabel=function(jr){return arguments.length?this.seek(jr,!0):this.previousLabel(this._time+_tinyNum)},$r.shiftChildren=function(jr,zr,Vr){Vr===void 0&&(Vr=0);for(var Wr=this._first,Kr=this.labels,Gr;Wr;)Wr._start>=Vr&&(Wr._start+=jr,Wr._end+=jr),Wr=Wr._next;if(zr)for(Gr in Kr)Kr[Gr]>=Vr&&(Kr[Gr]+=jr);return _uncache(this)},$r.invalidate=function(jr){var zr=this._first;for(this._lock=0;zr;)zr.invalidate(jr),zr=zr._next;return _r.prototype.invalidate.call(this,jr)},$r.clear=function(jr){jr===void 0&&(jr=!0);for(var zr=this._first,Vr;zr;)Vr=zr._next,this.remove(zr),zr=Vr;return this._dp&&(this._time=this._tTime=this._pTime=0),jr&&(this.labels={}),_uncache(this)},$r.totalDuration=function(jr){var zr=0,Vr=this,Wr=Vr._last,Kr=_bigNum$1,Gr,Yr,Qr;if(arguments.length)return Vr.timeScale((Vr._repeat<0?Vr.duration():Vr.totalDuration())/(Vr.reversed()?-jr:jr));if(Vr._dirty){for(Qr=Vr.parent;Wr;)Gr=Wr._prev,Wr._dirty&&Wr.totalDuration(),Yr=Wr._start,Yr>Kr&&Vr._sort&&Wr._ts&&!Vr._lock?(Vr._lock=1,_addToTimeline(Vr,Wr,Yr-Wr._delay,1)._lock=0):Kr=Yr,Yr<0&&Wr._ts&&(zr-=Yr,(!Qr&&!Vr._dp||Qr&&Qr.smoothChildTiming)&&(Vr._start+=Yr/Vr._ts,Vr._time-=Yr,Vr._tTime-=Yr),Vr.shiftChildren(-Yr,!1,-1/0),Kr=0),Wr._end>zr&&Wr._ts&&(zr=Wr._end),Wr=Gr;_setDuration(Vr,Vr===_globalTimeline&&Vr._time>zr?Vr._time:zr,1,1),Vr._dirty=0}return Vr._tDur},Fe.updateRoot=function(jr){if(_globalTimeline._ts&&(_lazySafeRender(_globalTimeline,_parentToChildTotalTime(jr,_globalTimeline)),_lastRenderedFrame=_ticker.frame),_ticker.frame>=_nextGCFrame){_nextGCFrame+=_config$2.autoSleep||120;var zr=_globalTimeline._first;if((!zr||!zr._ts)&&_config$2.autoSleep&&_ticker._listeners.length<2){for(;zr&&!zr._ts;)zr=zr._next;zr||_ticker.sleep()}}},Fe}(Animation$1);_setDefaults$1(Timeline.prototype,{_lock:0,_hasPause:0,_forcing:0});var _addComplexStringPropTween=function(Fe,$r,Fr,jr,zr,Vr,Wr){var Kr=new PropTween(this._pt,Fe,$r,0,1,_renderComplexString,null,zr),Gr=0,Yr=0,Qr,Jr,Zr,tn,en,rn,nn,on;for(Kr.b=Fr,Kr.e=jr,Fr+="",jr+="",(nn=~jr.indexOf("random("))&&(jr=_replaceRandom(jr)),Vr&&(on=[Fr,jr],Vr(on,Fe,$r),Fr=on[0],jr=on[1]),Jr=Fr.match(_complexStringNumExp)||[];Qr=_complexStringNumExp.exec(jr);)tn=Qr[0],en=jr.substring(Gr,Qr.index),Zr?Zr=(Zr+1)%5:en.substr(-5)==="rgba("&&(Zr=1),tn!==Jr[Yr++]&&(rn=parseFloat(Jr[Yr-1])||0,Kr._pt={_next:Kr._pt,p:en||Yr===1?en:",",s:rn,c:tn.charAt(1)==="="?_parseRelative(rn,tn)-rn:parseFloat(tn)-rn,m:Zr&&Zr<4?Math.round:0},Gr=_complexStringNumExp.lastIndex);return Kr.c=Gr<jr.length?jr.substring(Gr,jr.length):"",Kr.fp=Wr,(_relExp.test(jr)||nn)&&(Kr.e=0),this._pt=Kr,Kr},_addPropTween=function(Fe,$r,Fr,jr,zr,Vr,Wr,Kr,Gr,Yr){_isFunction$2(jr)&&(jr=jr(zr||0,Fe,Vr));var Qr=Fe[$r],Jr=Fr!=="get"?Fr:_isFunction$2(Qr)?Gr?Fe[$r.indexOf("set")||!_isFunction$2(Fe["get"+$r.substr(3)])?$r:"get"+$r.substr(3)](Gr):Fe[$r]():Qr,Zr=_isFunction$2(Qr)?Gr?_setterFuncWithParam:_setterFunc:_setterPlain,tn;if(_isString$2(jr)&&(~jr.indexOf("random(")&&(jr=_replaceRandom(jr)),jr.charAt(1)==="="&&(tn=_parseRelative(Jr,jr)+(getUnit(Jr)||0),(tn||tn===0)&&(jr=tn))),!Yr||Jr!==jr||_forceAllPropTweens)return!isNaN(Jr*jr)&&jr!==""?(tn=new PropTween(this._pt,Fe,$r,+Jr||0,jr-(Jr||0),typeof Qr=="boolean"?_renderBoolean:_renderPlain,0,Zr),Gr&&(tn.fp=Gr),Wr&&tn.modifier(Wr,this,Fe),this._pt=tn):(!Qr&&!($r in Fe)&&_missingPlugin($r,jr),_addComplexStringPropTween.call(this,Fe,$r,Jr,jr,Zr,Kr||_config$2.stringFilter,Gr))},_processVars=function(Fe,$r,Fr,jr,zr){if(_isFunction$2(Fe)&&(Fe=_parseFuncOrString(Fe,zr,$r,Fr,jr)),!_isObject$1(Fe)||Fe.style&&Fe.nodeType||_isArray(Fe)||_isTypedArray(Fe))return _isString$2(Fe)?_parseFuncOrString(Fe,zr,$r,Fr,jr):Fe;var Vr={},Wr;for(Wr in Fe)Vr[Wr]=_parseFuncOrString(Fe[Wr],zr,$r,Fr,jr);return Vr},_checkPlugin=function(Fe,$r,Fr,jr,zr,Vr){var Wr,Kr,Gr,Yr;if(_plugins[Fe]&&(Wr=new _plugins[Fe]).init(zr,Wr.rawVars?$r[Fe]:_processVars($r[Fe],jr,zr,Vr,Fr),Fr,jr,Vr)!==!1&&(Fr._pt=Kr=new PropTween(Fr._pt,zr,Fe,0,1,Wr.render,Wr,0,Wr.priority),Fr!==_quickTween))for(Gr=Fr._ptLookup[Fr._targets.indexOf(zr)],Yr=Wr._props.length;Yr--;)Gr[Wr._props[Yr]]=Kr;return Wr},_overwritingTween,_forceAllPropTweens,_initTween=function _r(Fe,$r,Fr){var jr=Fe.vars,zr=jr.ease,Vr=jr.startAt,Wr=jr.immediateRender,Kr=jr.lazy,Gr=jr.onUpdate,Yr=jr.onUpdateParams,Qr=jr.callbackScope,Jr=jr.runBackwards,Zr=jr.yoyoEase,tn=jr.keyframes,en=jr.autoRevert,rn=Fe._dur,nn=Fe._startAt,on=Fe._targets,un=Fe.parent,an=un&&un.data==="nested"?un.vars.targets:on,sn=Fe._overwrite==="auto"&&!_suppressOverwrites$1,dn=Fe.timeline,ln,cn,fn,pn,hn,mn,Sn,vn,bn,_n,$n,yn,wn;if(dn&&(!tn||!zr)&&(zr="none"),Fe._ease=_parseEase(zr,_defaults$1.ease),Fe._yEase=Zr?_invertEase(_parseEase(Zr===!0?zr:Zr,_defaults$1.ease)):0,Zr&&Fe._yoyo&&!Fe._repeat&&(Zr=Fe._yEase,Fe._yEase=Fe._ease,Fe._ease=Zr),Fe._from=!dn&&!!jr.runBackwards,!dn||tn&&!jr.stagger){if(vn=on[0]?_getCache(on[0]).harness:0,yn=vn&&jr[vn.prop],ln=_copyExcluding(jr,_reservedProps),nn&&(nn._zTime<0&&nn.progress(1),$r<0&&Jr&&Wr&&!en?nn.render(-1,!0):nn.revert(Jr&&rn?_revertConfigNoKill:_startAtRevertConfig),nn._lazy=0),Vr){if(_removeFromParent(Fe._startAt=Tween.set(on,_setDefaults$1({data:"isStart",overwrite:!1,parent:un,immediateRender:!0,lazy:!nn&&_isNotFalse(Kr),startAt:null,delay:0,onUpdate:Gr,onUpdateParams:Yr,callbackScope:Qr,stagger:0},Vr))),Fe._startAt._dp=0,Fe._startAt._sat=Fe,$r<0&&(_reverting$1||!Wr&&!en)&&Fe._startAt.revert(_revertConfigNoKill),Wr&&rn&&$r<=0&&Fr<=0){$r&&(Fe._zTime=$r);return}}else if(Jr&&rn&&!nn){if($r&&(Wr=!1),fn=_setDefaults$1({overwrite:!1,data:"isFromStart",lazy:Wr&&!nn&&_isNotFalse(Kr),immediateRender:Wr,stagger:0,parent:un},ln),yn&&(fn[vn.prop]=yn),_removeFromParent(Fe._startAt=Tween.set(on,fn)),Fe._startAt._dp=0,Fe._startAt._sat=Fe,$r<0&&(_reverting$1?Fe._startAt.revert(_revertConfigNoKill):Fe._startAt.render(-1,!0)),Fe._zTime=$r,!Wr)_r(Fe._startAt,_tinyNum,_tinyNum);else if(!$r)return}for(Fe._pt=Fe._ptCache=0,Kr=rn&&_isNotFalse(Kr)||Kr&&!rn,cn=0;cn<on.length;cn++){if(hn=on[cn],Sn=hn._gsap||_harness(on)[cn]._gsap,Fe._ptLookup[cn]=_n={},_lazyLookup[Sn.id]&&_lazyTweens.length&&_lazyRender(),$n=an===on?cn:an.indexOf(hn),vn&&(bn=new vn).init(hn,yn||ln,Fe,$n,an)!==!1&&(Fe._pt=pn=new PropTween(Fe._pt,hn,bn.name,0,1,bn.render,bn,0,bn.priority),bn._props.forEach(function(gn){_n[gn]=pn}),bn.priority&&(mn=1)),!vn||yn)for(fn in ln)_plugins[fn]&&(bn=_checkPlugin(fn,ln,Fe,$n,hn,an))?bn.priority&&(mn=1):_n[fn]=pn=_addPropTween.call(Fe,hn,fn,"get",ln[fn],$n,an,0,jr.stringFilter);Fe._op&&Fe._op[cn]&&Fe.kill(hn,Fe._op[cn]),sn&&Fe._pt&&(_overwritingTween=Fe,_globalTimeline.killTweensOf(hn,_n,Fe.globalTime($r)),wn=!Fe.parent,_overwritingTween=0),Fe._pt&&Kr&&(_lazyLookup[Sn.id]=1)}mn&&_sortPropTweensByPriority(Fe),Fe._onInit&&Fe._onInit(Fe)}Fe._onUpdate=Gr,Fe._initted=(!Fe._op||Fe._pt)&&!wn,tn&&$r<=0&&dn.render(_bigNum$1,!0,!0)},_updatePropTweens=function(Fe,$r,Fr,jr,zr,Vr,Wr){var Kr=(Fe._pt&&Fe._ptCache||(Fe._ptCache={}))[$r],Gr,Yr,Qr,Jr;if(!Kr)for(Kr=Fe._ptCache[$r]=[],Qr=Fe._ptLookup,Jr=Fe._targets.length;Jr--;){if(Gr=Qr[Jr][$r],Gr&&Gr.d&&Gr.d._pt)for(Gr=Gr.d._pt;Gr&&Gr.p!==$r&&Gr.fp!==$r;)Gr=Gr._next;if(!Gr)return _forceAllPropTweens=1,Fe.vars[$r]="+=0",_initTween(Fe,Wr),_forceAllPropTweens=0,1;Kr.push(Gr)}for(Jr=Kr.length;Jr--;)Yr=Kr[Jr],Gr=Yr._pt||Yr,Gr.s=(jr||jr===0)&&!zr?jr:Gr.s+(jr||0)+Vr*Gr.c,Gr.c=Fr-Gr.s,Yr.e&&(Yr.e=_round$1(Fr)+getUnit(Yr.e)),Yr.b&&(Yr.b=Gr.s+getUnit(Yr.b))},_addAliasesToVars=function(Fe,$r){var Fr=Fe[0]?_getCache(Fe[0]).harness:0,jr=Fr&&Fr.aliases,zr,Vr,Wr,Kr;if(!jr)return $r;zr=_merge$1({},$r);for(Vr in jr)if(Vr in zr)for(Kr=jr[Vr].split(","),Wr=Kr.length;Wr--;)zr[Kr[Wr]]=zr[Vr];return zr},_parseKeyframe=function(Fe,$r,Fr,jr){var zr=$r.ease||jr||"power1.inOut",Vr,Wr;if(_isArray($r))Wr=Fr[Fe]||(Fr[Fe]=[]),$r.forEach(function(Kr,Gr){return Wr.push({t:Gr/($r.length-1)*100,v:Kr,e:zr})});else for(Vr in $r)Wr=Fr[Vr]||(Fr[Vr]=[]),Vr==="ease"||Wr.push({t:parseFloat(Fe),v:$r[Vr],e:zr})},_parseFuncOrString=function(Fe,$r,Fr,jr,zr){return _isFunction$2(Fe)?Fe.call($r,Fr,jr,zr):_isString$2(Fe)&&~Fe.indexOf("random(")?_replaceRandom(Fe):Fe},_staggerTweenProps=_callbackNames+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",_staggerPropsToSkip={};_forEachName(_staggerTweenProps+",id,stagger,delay,duration,paused,scrollTrigger",function(_r){return _staggerPropsToSkip[_r]=1});var Tween=function(_r){_inheritsLoose(Fe,_r);function Fe(Fr,jr,zr,Vr){var Wr;typeof jr=="number"&&(zr.duration=jr,jr=zr,zr=null),Wr=_r.call(this,Vr?jr:_inheritDefaults(jr))||this;var Kr=Wr.vars,Gr=Kr.duration,Yr=Kr.delay,Qr=Kr.immediateRender,Jr=Kr.stagger,Zr=Kr.overwrite,tn=Kr.keyframes,en=Kr.defaults,rn=Kr.scrollTrigger,nn=Kr.yoyoEase,on=jr.parent||_globalTimeline,un=(_isArray(Fr)||_isTypedArray(Fr)?_isNumber$1(Fr[0]):"length"in jr)?[Fr]:toArray$1(Fr),an,sn,dn,ln,cn,fn,pn,hn;if(Wr._targets=un.length?_harness(un):_warn("GSAP target "+Fr+" not found. https://greensock.com",!_config$2.nullTargetWarn)||[],Wr._ptLookup=[],Wr._overwrite=Zr,tn||Jr||_isFuncOrString(Gr)||_isFuncOrString(Yr)){if(jr=Wr.vars,an=Wr.timeline=new Timeline({data:"nested",defaults:en||{},targets:on&&on.data==="nested"?on.vars.targets:un}),an.kill(),an.parent=an._dp=_assertThisInitialized$2(Wr),an._start=0,Jr||_isFuncOrString(Gr)||_isFuncOrString(Yr)){if(ln=un.length,pn=Jr&&distribute(Jr),_isObject$1(Jr))for(cn in Jr)~_staggerTweenProps.indexOf(cn)&&(hn||(hn={}),hn[cn]=Jr[cn]);for(sn=0;sn<ln;sn++)dn=_copyExcluding(jr,_staggerPropsToSkip),dn.stagger=0,nn&&(dn.yoyoEase=nn),hn&&_merge$1(dn,hn),fn=un[sn],dn.duration=+_parseFuncOrString(Gr,_assertThisInitialized$2(Wr),sn,fn,un),dn.delay=(+_parseFuncOrString(Yr,_assertThisInitialized$2(Wr),sn,fn,un)||0)-Wr._delay,!Jr&&ln===1&&dn.delay&&(Wr._delay=Yr=dn.delay,Wr._start+=Yr,dn.delay=0),an.to(fn,dn,pn?pn(sn,fn,un):0),an._ease=_easeMap.none;an.duration()?Gr=Yr=0:Wr.timeline=0}else if(tn){_inheritDefaults(_setDefaults$1(an.vars.defaults,{ease:"none"})),an._ease=_parseEase(tn.ease||jr.ease||"none");var mn=0,Sn,vn,bn;if(_isArray(tn))tn.forEach(function(_n){return an.to(un,_n,">")}),an.duration();else{dn={};for(cn in tn)cn==="ease"||cn==="easeEach"||_parseKeyframe(cn,tn[cn],dn,tn.easeEach);for(cn in dn)for(Sn=dn[cn].sort(function(_n,$n){return _n.t-$n.t}),mn=0,sn=0;sn<Sn.length;sn++)vn=Sn[sn],bn={ease:vn.e,duration:(vn.t-(sn?Sn[sn-1].t:0))/100*Gr},bn[cn]=vn.v,an.to(un,bn,mn),mn+=bn.duration;an.duration()<Gr&&an.to({},{duration:Gr-an.duration()})}}Gr||Wr.duration(Gr=an.duration())}else Wr.timeline=0;return Zr===!0&&!_suppressOverwrites$1&&(_overwritingTween=_assertThisInitialized$2(Wr),_globalTimeline.killTweensOf(un),_overwritingTween=0),_addToTimeline(on,_assertThisInitialized$2(Wr),zr),jr.reversed&&Wr.reverse(),jr.paused&&Wr.paused(!0),(Qr||!Gr&&!tn&&Wr._start===_roundPrecise(on._time)&&_isNotFalse(Qr)&&_hasNoPausedAncestors(_assertThisInitialized$2(Wr))&&on.data!=="nested")&&(Wr._tTime=-_tinyNum,Wr.render(Math.max(0,-Yr)||0)),rn&&_scrollTrigger(_assertThisInitialized$2(Wr),rn),Wr}var $r=Fe.prototype;return $r.render=function(jr,zr,Vr){var Wr=this._time,Kr=this._tDur,Gr=this._dur,Yr=jr<0,Qr=jr>Kr-_tinyNum&&!Yr?Kr:jr<_tinyNum?0:jr,Jr,Zr,tn,en,rn,nn,on,un,an;if(!Gr)_renderZeroDurationTween(this,jr,zr,Vr);else if(Qr!==this._tTime||!jr||Vr||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==Yr){if(Jr=Qr,un=this.timeline,this._repeat){if(en=Gr+this._rDelay,this._repeat<-1&&Yr)return this.totalTime(en*100+jr,zr,Vr);if(Jr=_roundPrecise(Qr%en),Qr===Kr?(tn=this._repeat,Jr=Gr):(tn=~~(Qr/en),tn&&tn===Qr/en&&(Jr=Gr,tn--),Jr>Gr&&(Jr=Gr)),nn=this._yoyo&&tn&1,nn&&(an=this._yEase,Jr=Gr-Jr),rn=_animationCycle(this._tTime,en),Jr===Wr&&!Vr&&this._initted)return this._tTime=Qr,this;tn!==rn&&(un&&this._yEase&&_propagateYoyoEase(un,nn),this.vars.repeatRefresh&&!nn&&!this._lock&&(this._lock=Vr=1,this.render(_roundPrecise(en*tn),!0).invalidate()._lock=0))}if(!this._initted){if(_attemptInitTween(this,Yr?jr:Jr,Vr,zr,Qr))return this._tTime=0,this;if(Wr!==this._time)return this;if(Gr!==this._dur)return this.render(jr,zr,Vr)}if(this._tTime=Qr,this._time=Jr,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=on=(an||this._ease)(Jr/Gr),this._from&&(this.ratio=on=1-on),Jr&&!Wr&&!zr&&!tn&&(_callback$1(this,"onStart"),this._tTime!==Qr))return this;for(Zr=this._pt;Zr;)Zr.r(on,Zr.d),Zr=Zr._next;un&&un.render(jr<0?jr:!Jr&&nn?-_tinyNum:un._dur*un._ease(Jr/this._dur),zr,Vr)||this._startAt&&(this._zTime=jr),this._onUpdate&&!zr&&(Yr&&_rewindStartAt(this,jr,zr,Vr),_callback$1(this,"onUpdate")),this._repeat&&tn!==rn&&this.vars.onRepeat&&!zr&&this.parent&&_callback$1(this,"onRepeat"),(Qr===this._tDur||!Qr)&&this._tTime===Qr&&(Yr&&!this._onUpdate&&_rewindStartAt(this,jr,!0,!0),(jr||!Gr)&&(Qr===this._tDur&&this._ts>0||!Qr&&this._ts<0)&&_removeFromParent(this,1),!zr&&!(Yr&&!Wr)&&(Qr||Wr||nn)&&(_callback$1(this,Qr===Kr?"onComplete":"onReverseComplete",!0),this._prom&&!(Qr<Kr&&this.timeScale()>0)&&this._prom()))}return this},$r.targets=function(){return this._targets},$r.invalidate=function(jr){return(!jr||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(jr),_r.prototype.invalidate.call(this,jr)},$r.resetTo=function(jr,zr,Vr,Wr){_tickerActive||_ticker.wake(),this._ts||this.play();var Kr=Math.min(this._dur,(this._dp._time-this._start)*this._ts),Gr;return this._initted||_initTween(this,Kr),Gr=this._ease(Kr/this._dur),_updatePropTweens(this,jr,zr,Vr,Wr,Gr,Kr)?this.resetTo(jr,zr,Vr,Wr):(_alignPlayhead(this,0),this.parent||_addLinkedListItem(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},$r.kill=function(jr,zr){if(zr===void 0&&(zr="all"),!jr&&(!zr||zr==="all"))return this._lazy=this._pt=0,this.parent?_interrupt(this):this;if(this.timeline){var Vr=this.timeline.totalDuration();return this.timeline.killTweensOf(jr,zr,_overwritingTween&&_overwritingTween.vars.overwrite!==!0)._first||_interrupt(this),this.parent&&Vr!==this.timeline.totalDuration()&&_setDuration(this,this._dur*this.timeline._tDur/Vr,0,1),this}var Wr=this._targets,Kr=jr?toArray$1(jr):Wr,Gr=this._ptLookup,Yr=this._pt,Qr,Jr,Zr,tn,en,rn,nn;if((!zr||zr==="all")&&_arraysMatch(Wr,Kr))return zr==="all"&&(this._pt=0),_interrupt(this);for(Qr=this._op=this._op||[],zr!=="all"&&(_isString$2(zr)&&(en={},_forEachName(zr,function(on){return en[on]=1}),zr=en),zr=_addAliasesToVars(Wr,zr)),nn=Wr.length;nn--;)if(~Kr.indexOf(Wr[nn])){Jr=Gr[nn],zr==="all"?(Qr[nn]=zr,tn=Jr,Zr={}):(Zr=Qr[nn]=Qr[nn]||{},tn=zr);for(en in tn)rn=Jr&&Jr[en],rn&&((!("kill"in rn.d)||rn.d.kill(en)===!0)&&_removeLinkedListItem(this,rn,"_pt"),delete Jr[en]),Zr!=="all"&&(Zr[en]=1)}return this._initted&&!this._pt&&Yr&&_interrupt(this),this},Fe.to=function(jr,zr){return new Fe(jr,zr,arguments[2])},Fe.from=function(jr,zr){return _createTweenType(1,arguments)},Fe.delayedCall=function(jr,zr,Vr,Wr){return new Fe(zr,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:jr,onComplete:zr,onReverseComplete:zr,onCompleteParams:Vr,onReverseCompleteParams:Vr,callbackScope:Wr})},Fe.fromTo=function(jr,zr,Vr){return _createTweenType(2,arguments)},Fe.set=function(jr,zr){return zr.duration=0,zr.repeatDelay||(zr.repeat=0),new Fe(jr,zr)},Fe.killTweensOf=function(jr,zr,Vr){return _globalTimeline.killTweensOf(jr,zr,Vr)},Fe}(Animation$1);_setDefaults$1(Tween.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});_forEachName("staggerTo,staggerFrom,staggerFromTo",function(_r){Tween[_r]=function(){var Fe=new Timeline,$r=_slice.call(arguments,0);return $r.splice(_r==="staggerFromTo"?5:4,0,0),Fe[_r].apply(Fe,$r)}});var _setterPlain=function(Fe,$r,Fr){return Fe[$r]=Fr},_setterFunc=function(Fe,$r,Fr){return Fe[$r](Fr)},_setterFuncWithParam=function(Fe,$r,Fr,jr){return Fe[$r](jr.fp,Fr)},_setterAttribute=function(Fe,$r,Fr){return Fe.setAttribute($r,Fr)},_getSetter=function(Fe,$r){return _isFunction$2(Fe[$r])?_setterFunc:_isUndefined(Fe[$r])&&Fe.setAttribute?_setterAttribute:_setterPlain},_renderPlain=function(Fe,$r){return $r.set($r.t,$r.p,Math.round(($r.s+$r.c*Fe)*1e6)/1e6,$r)},_renderBoolean=function(Fe,$r){return $r.set($r.t,$r.p,!!($r.s+$r.c*Fe),$r)},_renderComplexString=function(Fe,$r){var Fr=$r._pt,jr="";if(!Fe&&$r.b)jr=$r.b;else if(Fe===1&&$r.e)jr=$r.e;else{for(;Fr;)jr=Fr.p+(Fr.m?Fr.m(Fr.s+Fr.c*Fe):Math.round((Fr.s+Fr.c*Fe)*1e4)/1e4)+jr,Fr=Fr._next;jr+=$r.c}$r.set($r.t,$r.p,jr,$r)},_renderPropTweens=function(Fe,$r){for(var Fr=$r._pt;Fr;)Fr.r(Fe,Fr.d),Fr=Fr._next},_addPluginModifier=function(Fe,$r,Fr,jr){for(var zr=this._pt,Vr;zr;)Vr=zr._next,zr.p===jr&&zr.modifier(Fe,$r,Fr),zr=Vr},_killPropTweensOf=function(Fe){for(var $r=this._pt,Fr,jr;$r;)jr=$r._next,$r.p===Fe&&!$r.op||$r.op===Fe?_removeLinkedListItem(this,$r,"_pt"):$r.dep||(Fr=1),$r=jr;return!Fr},_setterWithModifier=function(Fe,$r,Fr,jr){jr.mSet(Fe,$r,jr.m.call(jr.tween,Fr,jr.mt),jr)},_sortPropTweensByPriority=function(Fe){for(var $r=Fe._pt,Fr,jr,zr,Vr;$r;){for(Fr=$r._next,jr=zr;jr&&jr.pr>$r.pr;)jr=jr._next;($r._prev=jr?jr._prev:Vr)?$r._prev._next=$r:zr=$r,($r._next=jr)?jr._prev=$r:Vr=$r,$r=Fr}Fe._pt=zr},PropTween=function(){function _r($r,Fr,jr,zr,Vr,Wr,Kr,Gr,Yr){this.t=Fr,this.s=zr,this.c=Vr,this.p=jr,this.r=Wr||_renderPlain,this.d=Kr||this,this.set=Gr||_setterPlain,this.pr=Yr||0,this._next=$r,$r&&($r._prev=this)}var Fe=_r.prototype;return Fe.modifier=function(Fr,jr,zr){this.mSet=this.mSet||this.set,this.set=_setterWithModifier,this.m=Fr,this.mt=zr,this.tween=jr},_r}();_forEachName(_callbackNames+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(_r){return _reservedProps[_r]=1});_globals.TweenMax=_globals.TweenLite=Tween;_globals.TimelineLite=_globals.TimelineMax=Timeline;_globalTimeline=new Timeline({sortChildren:!1,defaults:_defaults$1,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});_config$2.stringFilter=_colorStringFilter;var _media=[],_listeners$1={},_emptyArray$1=[],_lastMediaTime=0,_contextID=0,_dispatch$1=function(Fe){return(_listeners$1[Fe]||_emptyArray$1).map(function($r){return $r()})},_onMediaChange=function(){var Fe=Date.now(),$r=[];Fe-_lastMediaTime>2&&(_dispatch$1("matchMediaInit"),_media.forEach(function(Fr){var jr=Fr.queries,zr=Fr.conditions,Vr,Wr,Kr,Gr;for(Wr in jr)Vr=_win$3.matchMedia(jr[Wr]).matches,Vr&&(Kr=1),Vr!==zr[Wr]&&(zr[Wr]=Vr,Gr=1);Gr&&(Fr.revert(),Kr&&$r.push(Fr))}),_dispatch$1("matchMediaRevert"),$r.forEach(function(Fr){return Fr.onMatch(Fr)}),_lastMediaTime=Fe,_dispatch$1("matchMedia"))},Context=function(){function _r($r,Fr){this.selector=Fr&&selector(Fr),this.data=[],this._r=[],this.isReverted=!1,this.id=_contextID++,$r&&this.add($r)}var Fe=_r.prototype;return Fe.add=function(Fr,jr,zr){_isFunction$2(Fr)&&(zr=jr,jr=Fr,Fr=_isFunction$2);var Vr=this,Wr=function(){var Gr=_context$2,Yr=Vr.selector,Qr;return Gr&&Gr!==Vr&&Gr.data.push(Vr),zr&&(Vr.selector=selector(zr)),_context$2=Vr,Qr=jr.apply(Vr,arguments),_isFunction$2(Qr)&&Vr._r.push(Qr),_context$2=Gr,Vr.selector=Yr,Vr.isReverted=!1,Qr};return Vr.last=Wr,Fr===_isFunction$2?Wr(Vr):Fr?Vr[Fr]=Wr:Wr},Fe.ignore=function(Fr){var jr=_context$2;_context$2=null,Fr(this),_context$2=jr},Fe.getTweens=function(){var Fr=[];return this.data.forEach(function(jr){return jr instanceof _r?Fr.push.apply(Fr,jr.getTweens()):jr instanceof Tween&&!(jr.parent&&jr.parent.data==="nested")&&Fr.push(jr)}),Fr},Fe.clear=function(){this._r.length=this.data.length=0},Fe.kill=function(Fr,jr){var zr=this;if(Fr){var Vr=this.getTweens();this.data.forEach(function(Kr){Kr.data==="isFlip"&&(Kr.revert(),Kr.getChildren(!0,!0,!1).forEach(function(Gr){return Vr.splice(Vr.indexOf(Gr),1)}))}),Vr.map(function(Kr){return{g:Kr.globalTime(0),t:Kr}}).sort(function(Kr,Gr){return Gr.g-Kr.g||-1}).forEach(function(Kr){return Kr.t.revert(Fr)}),this.data.forEach(function(Kr){return Kr instanceof Timeline?Kr.data!=="nested"&&Kr.kill():!(Kr instanceof Tween)&&Kr.revert&&Kr.revert(Fr)}),this._r.forEach(function(Kr){return Kr(Fr,zr)}),this.isReverted=!0}else this.data.forEach(function(Kr){return Kr.kill&&Kr.kill()});if(this.clear(),jr)for(var Wr=_media.length;Wr--;)_media[Wr].id===this.id&&_media.splice(Wr,1)},Fe.revert=function(Fr){this.kill(Fr||{})},_r}(),MatchMedia=function(){function _r($r){this.contexts=[],this.scope=$r}var Fe=_r.prototype;return Fe.add=function(Fr,jr,zr){_isObject$1(Fr)||(Fr={matches:Fr});var Vr=new Context(0,zr||this.scope),Wr=Vr.conditions={},Kr,Gr,Yr;_context$2&&!Vr.selector&&(Vr.selector=_context$2.selector),this.contexts.push(Vr),jr=Vr.add("onMatch",jr),Vr.queries=Fr;for(Gr in Fr)Gr==="all"?Yr=1:(Kr=_win$3.matchMedia(Fr[Gr]),Kr&&(_media.indexOf(Vr)<0&&_media.push(Vr),(Wr[Gr]=Kr.matches)&&(Yr=1),Kr.addListener?Kr.addListener(_onMediaChange):Kr.addEventListener("change",_onMediaChange)));return Yr&&jr(Vr),this},Fe.revert=function(Fr){this.kill(Fr||{})},Fe.kill=function(Fr){this.contexts.forEach(function(jr){return jr.kill(Fr,!0)})},_r}(),_gsap={registerPlugin:function(){for(var Fe=arguments.length,$r=new Array(Fe),Fr=0;Fr<Fe;Fr++)$r[Fr]=arguments[Fr];$r.forEach(function(jr){return _createPlugin(jr)})},timeline:function(Fe){return new Timeline(Fe)},getTweensOf:function(Fe,$r){return _globalTimeline.getTweensOf(Fe,$r)},getProperty:function(Fe,$r,Fr,jr){_isString$2(Fe)&&(Fe=toArray$1(Fe)[0]);var zr=_getCache(Fe||{}).get,Vr=Fr?_passThrough$1:_numericIfPossible;return Fr==="native"&&(Fr=""),Fe&&($r?Vr((_plugins[$r]&&_plugins[$r].get||zr)(Fe,$r,Fr,jr)):function(Wr,Kr,Gr){return Vr((_plugins[Wr]&&_plugins[Wr].get||zr)(Fe,Wr,Kr,Gr))})},quickSetter:function(Fe,$r,Fr){if(Fe=toArray$1(Fe),Fe.length>1){var jr=Fe.map(function(Yr){return gsap$3.quickSetter(Yr,$r,Fr)}),zr=jr.length;return function(Yr){for(var Qr=zr;Qr--;)jr[Qr](Yr)}}Fe=Fe[0]||{};var Vr=_plugins[$r],Wr=_getCache(Fe),Kr=Wr.harness&&(Wr.harness.aliases||{})[$r]||$r,Gr=Vr?function(Yr){var Qr=new Vr;_quickTween._pt=0,Qr.init(Fe,Fr?Yr+Fr:Yr,_quickTween,0,[Fe]),Qr.render(1,Qr),_quickTween._pt&&_renderPropTweens(1,_quickTween)}:Wr.set(Fe,Kr);return Vr?Gr:function(Yr){return Gr(Fe,Kr,Fr?Yr+Fr:Yr,Wr,1)}},quickTo:function(Fe,$r,Fr){var jr,zr=gsap$3.to(Fe,_merge$1((jr={},jr[$r]="+=0.1",jr.paused=!0,jr),Fr||{})),Vr=function(Kr,Gr,Yr){return zr.resetTo($r,Kr,Gr,Yr)};return Vr.tween=zr,Vr},isTweening:function(Fe){return _globalTimeline.getTweensOf(Fe,!0).length>0},defaults:function(Fe){return Fe&&Fe.ease&&(Fe.ease=_parseEase(Fe.ease,_defaults$1.ease)),_mergeDeep(_defaults$1,Fe||{})},config:function(Fe){return _mergeDeep(_config$2,Fe||{})},registerEffect:function(Fe){var $r=Fe.name,Fr=Fe.effect,jr=Fe.plugins,zr=Fe.defaults,Vr=Fe.extendTimeline;(jr||"").split(",").forEach(function(Wr){return Wr&&!_plugins[Wr]&&!_globals[Wr]&&_warn($r+" effect requires "+Wr+" plugin.")}),_effects[$r]=function(Wr,Kr,Gr){return Fr(toArray$1(Wr),_setDefaults$1(Kr||{},zr),Gr)},Vr&&(Timeline.prototype[$r]=function(Wr,Kr,Gr){return this.add(_effects[$r](Wr,_isObject$1(Kr)?Kr:(Gr=Kr)&&{},this),Gr)})},registerEase:function(Fe,$r){_easeMap[Fe]=_parseEase($r)},parseEase:function(Fe,$r){return arguments.length?_parseEase(Fe,$r):_easeMap},getById:function(Fe){return _globalTimeline.getById(Fe)},exportRoot:function(Fe,$r){Fe===void 0&&(Fe={});var Fr=new Timeline(Fe),jr,zr;for(Fr.smoothChildTiming=_isNotFalse(Fe.smoothChildTiming),_globalTimeline.remove(Fr),Fr._dp=0,Fr._time=Fr._tTime=_globalTimeline._time,jr=_globalTimeline._first;jr;)zr=jr._next,($r||!(!jr._dur&&jr instanceof Tween&&jr.vars.onComplete===jr._targets[0]))&&_addToTimeline(Fr,jr,jr._start-jr._delay),jr=zr;return _addToTimeline(_globalTimeline,Fr,0),Fr},context:function(Fe,$r){return Fe?new Context(Fe,$r):_context$2},matchMedia:function(Fe){return new MatchMedia(Fe)},matchMediaRefresh:function(){return _media.forEach(function(Fe){var $r=Fe.conditions,Fr,jr;for(jr in $r)$r[jr]&&($r[jr]=!1,Fr=1);Fr&&Fe.revert()})||_onMediaChange()},addEventListener:function(Fe,$r){var Fr=_listeners$1[Fe]||(_listeners$1[Fe]=[]);~Fr.indexOf($r)||Fr.push($r)},removeEventListener:function(Fe,$r){var Fr=_listeners$1[Fe],jr=Fr&&Fr.indexOf($r);jr>=0&&Fr.splice(jr,1)},utils:{wrap,wrapYoyo,distribute,random,snap,normalize,getUnit,clamp,splitColor,toArray:toArray$1,selector,mapRange,pipe,unitize,interpolate:interpolate$2,shuffle},install:_install,effects:_effects,ticker:_ticker,updateRoot:Timeline.updateRoot,plugins:_plugins,globalTimeline:_globalTimeline,core:{PropTween,globals:_addGlobal,Tween,Timeline,Animation:Animation$1,getCache:_getCache,_removeLinkedListItem,reverting:function(){return _reverting$1},context:function(Fe){return Fe&&_context$2&&(_context$2.data.push(Fe),Fe._ctx=_context$2),_context$2},suppressOverwrites:function(Fe){return _suppressOverwrites$1=Fe}}};_forEachName("to,from,fromTo,delayedCall,set,killTweensOf",function(_r){return _gsap[_r]=Tween[_r]});_ticker.add(Timeline.updateRoot);_quickTween=_gsap.to({},{duration:0});var _getPluginPropTween=function(Fe,$r){for(var Fr=Fe._pt;Fr&&Fr.p!==$r&&Fr.op!==$r&&Fr.fp!==$r;)Fr=Fr._next;return Fr},_addModifiers=function(Fe,$r){var Fr=Fe._targets,jr,zr,Vr;for(jr in $r)for(zr=Fr.length;zr--;)Vr=Fe._ptLookup[zr][jr],Vr&&(Vr=Vr.d)&&(Vr._pt&&(Vr=_getPluginPropTween(Vr,jr)),Vr&&Vr.modifier&&Vr.modifier($r[jr],Fe,Fr[zr],jr))},_buildModifierPlugin=function(Fe,$r){return{name:Fe,rawVars:1,init:function(jr,zr,Vr){Vr._onInit=function(Wr){var Kr,Gr;if(_isString$2(zr)&&(Kr={},_forEachName(zr,function(Yr){return Kr[Yr]=1}),zr=Kr),$r){Kr={};for(Gr in zr)Kr[Gr]=$r(zr[Gr]);zr=Kr}_addModifiers(Wr,zr)}}}},gsap$3=_gsap.registerPlugin({name:"attr",init:function(Fe,$r,Fr,jr,zr){var Vr,Wr,Kr;this.tween=Fr;for(Vr in $r)Kr=Fe.getAttribute(Vr)||"",Wr=this.add(Fe,"setAttribute",(Kr||0)+"",$r[Vr],jr,zr,0,0,Vr),Wr.op=Vr,Wr.b=Kr,this._props.push(Vr)},render:function(Fe,$r){for(var Fr=$r._pt;Fr;)_reverting$1?Fr.set(Fr.t,Fr.p,Fr.b,Fr):Fr.r(Fe,Fr.d),Fr=Fr._next}},{name:"endArray",init:function(Fe,$r){for(var Fr=$r.length;Fr--;)this.add(Fe,Fr,Fe[Fr]||0,$r[Fr],0,0,0,0,0,1)}},_buildModifierPlugin("roundProps",_roundModifier),_buildModifierPlugin("modifiers"),_buildModifierPlugin("snap",snap))||_gsap;Tween.version=Timeline.version=gsap$3.version="3.12.1";_coreReady=1;_windowExists$3()&&_wake();_easeMap.Power0;_easeMap.Power1;_easeMap.Power2;_easeMap.Power3;_easeMap.Power4;_easeMap.Linear;_easeMap.Quad;_easeMap.Cubic;_easeMap.Quart;_easeMap.Quint;_easeMap.Strong;_easeMap.Elastic;_easeMap.Back;_easeMap.SteppedEase;_easeMap.Bounce;_easeMap.Sine;_easeMap.Expo;_easeMap.Circ;/*!
 * CSSPlugin 3.12.1
 * https://greensock.com
 *
 * Copyright 2008-2023, GreenSock. All rights reserved.
 * Subject to the terms at https://greensock.com/standard-license or for
 * Club GreenSock members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/var _win$2,_doc$2,_docElement,_pluginInitted,_tempDiv,_recentSetterPlugin,_reverting,_windowExists$2=function(){return typeof window!="undefined"},_transformProps={},_RAD2DEG=180/Math.PI,_DEG2RAD=Math.PI/180,_atan2=Math.atan2,_bigNum=1e8,_capsExp$1=/([A-Z])/g,_horizontalExp=/(left|right|width|margin|padding|x)/i,_complexExp=/[\s,\(]\S/,_propertyAliases={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},_renderCSSProp=function(Fe,$r){return $r.set($r.t,$r.p,Math.round(($r.s+$r.c*Fe)*1e4)/1e4+$r.u,$r)},_renderPropWithEnd=function(Fe,$r){return $r.set($r.t,$r.p,Fe===1?$r.e:Math.round(($r.s+$r.c*Fe)*1e4)/1e4+$r.u,$r)},_renderCSSPropWithBeginning=function(Fe,$r){return $r.set($r.t,$r.p,Fe?Math.round(($r.s+$r.c*Fe)*1e4)/1e4+$r.u:$r.b,$r)},_renderRoundedCSSProp=function(Fe,$r){var Fr=$r.s+$r.c*Fe;$r.set($r.t,$r.p,~~(Fr+(Fr<0?-.5:.5))+$r.u,$r)},_renderNonTweeningValue=function(Fe,$r){return $r.set($r.t,$r.p,Fe?$r.e:$r.b,$r)},_renderNonTweeningValueOnlyAtEnd=function(Fe,$r){return $r.set($r.t,$r.p,Fe!==1?$r.b:$r.e,$r)},_setterCSSStyle=function(Fe,$r,Fr){return Fe.style[$r]=Fr},_setterCSSProp=function(Fe,$r,Fr){return Fe.style.setProperty($r,Fr)},_setterTransform=function(Fe,$r,Fr){return Fe._gsap[$r]=Fr},_setterScale=function(Fe,$r,Fr){return Fe._gsap.scaleX=Fe._gsap.scaleY=Fr},_setterScaleWithRender=function(Fe,$r,Fr,jr,zr){var Vr=Fe._gsap;Vr.scaleX=Vr.scaleY=Fr,Vr.renderTransform(zr,Vr)},_setterTransformWithRender=function(Fe,$r,Fr,jr,zr){var Vr=Fe._gsap;Vr[$r]=Fr,Vr.renderTransform(zr,Vr)},_transformProp$1="transform",_transformOriginProp=_transformProp$1+"Origin",_saveStyle=function _r(Fe,$r){var Fr=this,jr=this.target,zr=jr.style;if(Fe in _transformProps&&zr){if(this.tfm=this.tfm||{},Fe!=="transform")Fe=_propertyAliases[Fe]||Fe,~Fe.indexOf(",")?Fe.split(",").forEach(function(Vr){return Fr.tfm[Vr]=_get(jr,Vr)}):this.tfm[Fe]=jr._gsap.x?jr._gsap[Fe]:_get(jr,Fe);else return _propertyAliases.transform.split(",").forEach(function(Vr){return _r.call(Fr,Vr,$r)});if(this.props.indexOf(_transformProp$1)>=0)return;jr._gsap.svg&&(this.svgo=jr.getAttribute("data-svg-origin"),this.props.push(_transformOriginProp,$r,"")),Fe=_transformProp$1}(zr||$r)&&this.props.push(Fe,$r,zr[Fe])},_removeIndependentTransforms=function(Fe){Fe.translate&&(Fe.removeProperty("translate"),Fe.removeProperty("scale"),Fe.removeProperty("rotate"))},_revertStyle=function(){var Fe=this.props,$r=this.target,Fr=$r.style,jr=$r._gsap,zr,Vr;for(zr=0;zr<Fe.length;zr+=3)Fe[zr+1]?$r[Fe[zr]]=Fe[zr+2]:Fe[zr+2]?Fr[Fe[zr]]=Fe[zr+2]:Fr.removeProperty(Fe[zr].substr(0,2)==="--"?Fe[zr]:Fe[zr].replace(_capsExp$1,"-$1").toLowerCase());if(this.tfm){for(Vr in this.tfm)jr[Vr]=this.tfm[Vr];jr.svg&&(jr.renderTransform(),$r.setAttribute("data-svg-origin",this.svgo||"")),zr=_reverting(),(!zr||!zr.isStart)&&!Fr[_transformProp$1]&&(_removeIndependentTransforms(Fr),jr.uncache=1)}},_getStyleSaver=function(Fe,$r){var Fr={target:Fe,props:[],revert:_revertStyle,save:_saveStyle};return Fe._gsap||gsap$3.core.getCache(Fe),$r&&$r.split(",").forEach(function(jr){return Fr.save(jr)}),Fr},_supports3D,_createElement=function(Fe,$r){var Fr=_doc$2.createElementNS?_doc$2.createElementNS(($r||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),Fe):_doc$2.createElement(Fe);return Fr.style?Fr:_doc$2.createElement(Fe)},_getComputedProperty=function _r(Fe,$r,Fr){var jr=getComputedStyle(Fe);return jr[$r]||jr.getPropertyValue($r.replace(_capsExp$1,"-$1").toLowerCase())||jr.getPropertyValue($r)||!Fr&&_r(Fe,_checkPropPrefix($r)||$r,1)||""},_prefixes="O,Moz,ms,Ms,Webkit".split(","),_checkPropPrefix=function(Fe,$r,Fr){var jr=$r||_tempDiv,zr=jr.style,Vr=5;if(Fe in zr&&!Fr)return Fe;for(Fe=Fe.charAt(0).toUpperCase()+Fe.substr(1);Vr--&&!(_prefixes[Vr]+Fe in zr););return Vr<0?null:(Vr===3?"ms":Vr>=0?_prefixes[Vr]:"")+Fe},_initCore$2=function(){_windowExists$2()&&window.document&&(_win$2=window,_doc$2=_win$2.document,_docElement=_doc$2.documentElement,_tempDiv=_createElement("div")||{style:{}},_createElement("div"),_transformProp$1=_checkPropPrefix(_transformProp$1),_transformOriginProp=_transformProp$1+"Origin",_tempDiv.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",_supports3D=!!_checkPropPrefix("perspective"),_reverting=gsap$3.core.reverting,_pluginInitted=1)},_getBBoxHack=function _r(Fe){var $r=_createElement("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),Fr=this.parentNode,jr=this.nextSibling,zr=this.style.cssText,Vr;if(_docElement.appendChild($r),$r.appendChild(this),this.style.display="block",Fe)try{Vr=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=_r}catch{}else this._gsapBBox&&(Vr=this._gsapBBox());return Fr&&(jr?Fr.insertBefore(this,jr):Fr.appendChild(this)),_docElement.removeChild($r),this.style.cssText=zr,Vr},_getAttributeFallbacks=function(Fe,$r){for(var Fr=$r.length;Fr--;)if(Fe.hasAttribute($r[Fr]))return Fe.getAttribute($r[Fr])},_getBBox=function(Fe){var $r;try{$r=Fe.getBBox()}catch{$r=_getBBoxHack.call(Fe,!0)}return $r&&($r.width||$r.height)||Fe.getBBox===_getBBoxHack||($r=_getBBoxHack.call(Fe,!0)),$r&&!$r.width&&!$r.x&&!$r.y?{x:+_getAttributeFallbacks(Fe,["x","cx","x1"])||0,y:+_getAttributeFallbacks(Fe,["y","cy","y1"])||0,width:0,height:0}:$r},_isSVG=function(Fe){return!!(Fe.getCTM&&(!Fe.parentNode||Fe.ownerSVGElement)&&_getBBox(Fe))},_removeProperty=function(Fe,$r){if($r){var Fr=Fe.style;$r in _transformProps&&$r!==_transformOriginProp&&($r=_transformProp$1),Fr.removeProperty?(($r.substr(0,2)==="ms"||$r.substr(0,6)==="webkit")&&($r="-"+$r),Fr.removeProperty($r.replace(_capsExp$1,"-$1").toLowerCase())):Fr.removeAttribute($r)}},_addNonTweeningPT=function(Fe,$r,Fr,jr,zr,Vr){var Wr=new PropTween(Fe._pt,$r,Fr,0,1,Vr?_renderNonTweeningValueOnlyAtEnd:_renderNonTweeningValue);return Fe._pt=Wr,Wr.b=jr,Wr.e=zr,Fe._props.push(Fr),Wr},_nonConvertibleUnits={deg:1,rad:1,turn:1},_nonStandardLayouts={grid:1,flex:1},_convertToUnit=function _r(Fe,$r,Fr,jr){var zr=parseFloat(Fr)||0,Vr=(Fr+"").trim().substr((zr+"").length)||"px",Wr=_tempDiv.style,Kr=_horizontalExp.test($r),Gr=Fe.tagName.toLowerCase()==="svg",Yr=(Gr?"client":"offset")+(Kr?"Width":"Height"),Qr=100,Jr=jr==="px",Zr=jr==="%",tn,en,rn,nn;return jr===Vr||!zr||_nonConvertibleUnits[jr]||_nonConvertibleUnits[Vr]?zr:(Vr!=="px"&&!Jr&&(zr=_r(Fe,$r,Fr,"px")),nn=Fe.getCTM&&_isSVG(Fe),(Zr||Vr==="%")&&(_transformProps[$r]||~$r.indexOf("adius"))?(tn=nn?Fe.getBBox()[Kr?"width":"height"]:Fe[Yr],_round$1(Zr?zr/tn*Qr:zr/100*tn)):(Wr[Kr?"width":"height"]=Qr+(Jr?Vr:jr),en=~$r.indexOf("adius")||jr==="em"&&Fe.appendChild&&!Gr?Fe:Fe.parentNode,nn&&(en=(Fe.ownerSVGElement||{}).parentNode),(!en||en===_doc$2||!en.appendChild)&&(en=_doc$2.body),rn=en._gsap,rn&&Zr&&rn.width&&Kr&&rn.time===_ticker.time&&!rn.uncache?_round$1(zr/rn.width*Qr):((Zr||Vr==="%")&&!_nonStandardLayouts[_getComputedProperty(en,"display")]&&(Wr.position=_getComputedProperty(Fe,"position")),en===Fe&&(Wr.position="static"),en.appendChild(_tempDiv),tn=_tempDiv[Yr],en.removeChild(_tempDiv),Wr.position="absolute",Kr&&Zr&&(rn=_getCache(en),rn.time=_ticker.time,rn.width=en[Yr]),_round$1(Jr?tn*zr/Qr:tn&&zr?Qr/tn*zr:0))))},_get=function(Fe,$r,Fr,jr){var zr;return _pluginInitted||_initCore$2(),$r in _propertyAliases&&$r!=="transform"&&($r=_propertyAliases[$r],~$r.indexOf(",")&&($r=$r.split(",")[0])),_transformProps[$r]&&$r!=="transform"?(zr=_parseTransform(Fe,jr),zr=$r!=="transformOrigin"?zr[$r]:zr.svg?zr.origin:_firstTwoOnly(_getComputedProperty(Fe,_transformOriginProp))+" "+zr.zOrigin+"px"):(zr=Fe.style[$r],(!zr||zr==="auto"||jr||~(zr+"").indexOf("calc("))&&(zr=_specialProps[$r]&&_specialProps[$r](Fe,$r,Fr)||_getComputedProperty(Fe,$r)||_getProperty(Fe,$r)||($r==="opacity"?1:0))),Fr&&!~(zr+"").trim().indexOf(" ")?_convertToUnit(Fe,$r,zr,Fr)+Fr:zr},_tweenComplexCSSString=function(Fe,$r,Fr,jr){if(!Fr||Fr==="none"){var zr=_checkPropPrefix($r,Fe,1),Vr=zr&&_getComputedProperty(Fe,zr,1);Vr&&Vr!==Fr?($r=zr,Fr=Vr):$r==="borderColor"&&(Fr=_getComputedProperty(Fe,"borderTopColor"))}var Wr=new PropTween(this._pt,Fe.style,$r,0,1,_renderComplexString),Kr=0,Gr=0,Yr,Qr,Jr,Zr,tn,en,rn,nn,on,un,an,sn;if(Wr.b=Fr,Wr.e=jr,Fr+="",jr+="",jr==="auto"&&(Fe.style[$r]=jr,jr=_getComputedProperty(Fe,$r)||jr,Fe.style[$r]=Fr),Yr=[Fr,jr],_colorStringFilter(Yr),Fr=Yr[0],jr=Yr[1],Jr=Fr.match(_numWithUnitExp)||[],sn=jr.match(_numWithUnitExp)||[],sn.length){for(;Qr=_numWithUnitExp.exec(jr);)rn=Qr[0],on=jr.substring(Kr,Qr.index),tn?tn=(tn+1)%5:(on.substr(-5)==="rgba("||on.substr(-5)==="hsla(")&&(tn=1),rn!==(en=Jr[Gr++]||"")&&(Zr=parseFloat(en)||0,an=en.substr((Zr+"").length),rn.charAt(1)==="="&&(rn=_parseRelative(Zr,rn)+an),nn=parseFloat(rn),un=rn.substr((nn+"").length),Kr=_numWithUnitExp.lastIndex-un.length,un||(un=un||_config$2.units[$r]||an,Kr===jr.length&&(jr+=un,Wr.e+=un)),an!==un&&(Zr=_convertToUnit(Fe,$r,en,un)||0),Wr._pt={_next:Wr._pt,p:on||Gr===1?on:",",s:Zr,c:nn-Zr,m:tn&&tn<4||$r==="zIndex"?Math.round:0});Wr.c=Kr<jr.length?jr.substring(Kr,jr.length):""}else Wr.r=$r==="display"&&jr==="none"?_renderNonTweeningValueOnlyAtEnd:_renderNonTweeningValue;return _relExp.test(jr)&&(Wr.e=0),this._pt=Wr,Wr},_keywordToPercent={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},_convertKeywordsToPercentages=function(Fe){var $r=Fe.split(" "),Fr=$r[0],jr=$r[1]||"50%";return(Fr==="top"||Fr==="bottom"||jr==="left"||jr==="right")&&(Fe=Fr,Fr=jr,jr=Fe),$r[0]=_keywordToPercent[Fr]||Fr,$r[1]=_keywordToPercent[jr]||jr,$r.join(" ")},_renderClearProps=function(Fe,$r){if($r.tween&&$r.tween._time===$r.tween._dur){var Fr=$r.t,jr=Fr.style,zr=$r.u,Vr=Fr._gsap,Wr,Kr,Gr;if(zr==="all"||zr===!0)jr.cssText="",Kr=1;else for(zr=zr.split(","),Gr=zr.length;--Gr>-1;)Wr=zr[Gr],_transformProps[Wr]&&(Kr=1,Wr=Wr==="transformOrigin"?_transformOriginProp:_transformProp$1),_removeProperty(Fr,Wr);Kr&&(_removeProperty(Fr,_transformProp$1),Vr&&(Vr.svg&&Fr.removeAttribute("transform"),_parseTransform(Fr,1),Vr.uncache=1,_removeIndependentTransforms(jr)))}},_specialProps={clearProps:function(Fe,$r,Fr,jr,zr){if(zr.data!=="isFromStart"){var Vr=Fe._pt=new PropTween(Fe._pt,$r,Fr,0,0,_renderClearProps);return Vr.u=jr,Vr.pr=-10,Vr.tween=zr,Fe._props.push(Fr),1}}},_identity2DMatrix=[1,0,0,1,0,0],_rotationalProperties={},_isNullTransform=function(Fe){return Fe==="matrix(1, 0, 0, 1, 0, 0)"||Fe==="none"||!Fe},_getComputedTransformMatrixAsArray=function(Fe){var $r=_getComputedProperty(Fe,_transformProp$1);return _isNullTransform($r)?_identity2DMatrix:$r.substr(7).match(_numExp).map(_round$1)},_getMatrix=function(Fe,$r){var Fr=Fe._gsap||_getCache(Fe),jr=Fe.style,zr=_getComputedTransformMatrixAsArray(Fe),Vr,Wr,Kr,Gr;return Fr.svg&&Fe.getAttribute("transform")?(Kr=Fe.transform.baseVal.consolidate().matrix,zr=[Kr.a,Kr.b,Kr.c,Kr.d,Kr.e,Kr.f],zr.join(",")==="1,0,0,1,0,0"?_identity2DMatrix:zr):(zr===_identity2DMatrix&&!Fe.offsetParent&&Fe!==_docElement&&!Fr.svg&&(Kr=jr.display,jr.display="block",Vr=Fe.parentNode,(!Vr||!Fe.offsetParent)&&(Gr=1,Wr=Fe.nextElementSibling,_docElement.appendChild(Fe)),zr=_getComputedTransformMatrixAsArray(Fe),Kr?jr.display=Kr:_removeProperty(Fe,"display"),Gr&&(Wr?Vr.insertBefore(Fe,Wr):Vr?Vr.appendChild(Fe):_docElement.removeChild(Fe))),$r&&zr.length>6?[zr[0],zr[1],zr[4],zr[5],zr[12],zr[13]]:zr)},_applySVGOrigin=function(Fe,$r,Fr,jr,zr,Vr){var Wr=Fe._gsap,Kr=zr||_getMatrix(Fe,!0),Gr=Wr.xOrigin||0,Yr=Wr.yOrigin||0,Qr=Wr.xOffset||0,Jr=Wr.yOffset||0,Zr=Kr[0],tn=Kr[1],en=Kr[2],rn=Kr[3],nn=Kr[4],on=Kr[5],un=$r.split(" "),an=parseFloat(un[0])||0,sn=parseFloat(un[1])||0,dn,ln,cn,fn;Fr?Kr!==_identity2DMatrix&&(ln=Zr*rn-tn*en)&&(cn=an*(rn/ln)+sn*(-en/ln)+(en*on-rn*nn)/ln,fn=an*(-tn/ln)+sn*(Zr/ln)-(Zr*on-tn*nn)/ln,an=cn,sn=fn):(dn=_getBBox(Fe),an=dn.x+(~un[0].indexOf("%")?an/100*dn.width:an),sn=dn.y+(~(un[1]||un[0]).indexOf("%")?sn/100*dn.height:sn)),jr||jr!==!1&&Wr.smooth?(nn=an-Gr,on=sn-Yr,Wr.xOffset=Qr+(nn*Zr+on*en)-nn,Wr.yOffset=Jr+(nn*tn+on*rn)-on):Wr.xOffset=Wr.yOffset=0,Wr.xOrigin=an,Wr.yOrigin=sn,Wr.smooth=!!jr,Wr.origin=$r,Wr.originIsAbsolute=!!Fr,Fe.style[_transformOriginProp]="0px 0px",Vr&&(_addNonTweeningPT(Vr,Wr,"xOrigin",Gr,an),_addNonTweeningPT(Vr,Wr,"yOrigin",Yr,sn),_addNonTweeningPT(Vr,Wr,"xOffset",Qr,Wr.xOffset),_addNonTweeningPT(Vr,Wr,"yOffset",Jr,Wr.yOffset)),Fe.setAttribute("data-svg-origin",an+" "+sn)},_parseTransform=function(Fe,$r){var Fr=Fe._gsap||new GSCache(Fe);if("x"in Fr&&!$r&&!Fr.uncache)return Fr;var jr=Fe.style,zr=Fr.scaleX<0,Vr="px",Wr="deg",Kr=getComputedStyle(Fe),Gr=_getComputedProperty(Fe,_transformOriginProp)||"0",Yr,Qr,Jr,Zr,tn,en,rn,nn,on,un,an,sn,dn,ln,cn,fn,pn,hn,mn,Sn,vn,bn,_n,$n,yn,wn,gn,Pn,Tn,An,Dn,Mn;return Yr=Qr=Jr=en=rn=nn=on=un=an=0,Zr=tn=1,Fr.svg=!!(Fe.getCTM&&_isSVG(Fe)),Kr.translate&&((Kr.translate!=="none"||Kr.scale!=="none"||Kr.rotate!=="none")&&(jr[_transformProp$1]=(Kr.translate!=="none"?"translate3d("+(Kr.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(Kr.rotate!=="none"?"rotate("+Kr.rotate+") ":"")+(Kr.scale!=="none"?"scale("+Kr.scale.split(" ").join(",")+") ":"")+(Kr[_transformProp$1]!=="none"?Kr[_transformProp$1]:"")),jr.scale=jr.rotate=jr.translate="none"),ln=_getMatrix(Fe,Fr.svg),Fr.svg&&(Fr.uncache?(yn=Fe.getBBox(),Gr=Fr.xOrigin-yn.x+"px "+(Fr.yOrigin-yn.y)+"px",$n=""):$n=!$r&&Fe.getAttribute("data-svg-origin"),_applySVGOrigin(Fe,$n||Gr,!!$n||Fr.originIsAbsolute,Fr.smooth!==!1,ln)),sn=Fr.xOrigin||0,dn=Fr.yOrigin||0,ln!==_identity2DMatrix&&(hn=ln[0],mn=ln[1],Sn=ln[2],vn=ln[3],Yr=bn=ln[4],Qr=_n=ln[5],ln.length===6?(Zr=Math.sqrt(hn*hn+mn*mn),tn=Math.sqrt(vn*vn+Sn*Sn),en=hn||mn?_atan2(mn,hn)*_RAD2DEG:0,on=Sn||vn?_atan2(Sn,vn)*_RAD2DEG+en:0,on&&(tn*=Math.abs(Math.cos(on*_DEG2RAD))),Fr.svg&&(Yr-=sn-(sn*hn+dn*Sn),Qr-=dn-(sn*mn+dn*vn))):(Mn=ln[6],An=ln[7],gn=ln[8],Pn=ln[9],Tn=ln[10],Dn=ln[11],Yr=ln[12],Qr=ln[13],Jr=ln[14],cn=_atan2(Mn,Tn),rn=cn*_RAD2DEG,cn&&(fn=Math.cos(-cn),pn=Math.sin(-cn),$n=bn*fn+gn*pn,yn=_n*fn+Pn*pn,wn=Mn*fn+Tn*pn,gn=bn*-pn+gn*fn,Pn=_n*-pn+Pn*fn,Tn=Mn*-pn+Tn*fn,Dn=An*-pn+Dn*fn,bn=$n,_n=yn,Mn=wn),cn=_atan2(-Sn,Tn),nn=cn*_RAD2DEG,cn&&(fn=Math.cos(-cn),pn=Math.sin(-cn),$n=hn*fn-gn*pn,yn=mn*fn-Pn*pn,wn=Sn*fn-Tn*pn,Dn=vn*pn+Dn*fn,hn=$n,mn=yn,Sn=wn),cn=_atan2(mn,hn),en=cn*_RAD2DEG,cn&&(fn=Math.cos(cn),pn=Math.sin(cn),$n=hn*fn+mn*pn,yn=bn*fn+_n*pn,mn=mn*fn-hn*pn,_n=_n*fn-bn*pn,hn=$n,bn=yn),rn&&Math.abs(rn)+Math.abs(en)>359.9&&(rn=en=0,nn=180-nn),Zr=_round$1(Math.sqrt(hn*hn+mn*mn+Sn*Sn)),tn=_round$1(Math.sqrt(_n*_n+Mn*Mn)),cn=_atan2(bn,_n),on=Math.abs(cn)>2e-4?cn*_RAD2DEG:0,an=Dn?1/(Dn<0?-Dn:Dn):0),Fr.svg&&($n=Fe.getAttribute("transform"),Fr.forceCSS=Fe.setAttribute("transform","")||!_isNullTransform(_getComputedProperty(Fe,_transformProp$1)),$n&&Fe.setAttribute("transform",$n))),Math.abs(on)>90&&Math.abs(on)<270&&(zr?(Zr*=-1,on+=en<=0?180:-180,en+=en<=0?180:-180):(tn*=-1,on+=on<=0?180:-180)),$r=$r||Fr.uncache,Fr.x=Yr-((Fr.xPercent=Yr&&(!$r&&Fr.xPercent||(Math.round(Fe.offsetWidth/2)===Math.round(-Yr)?-50:0)))?Fe.offsetWidth*Fr.xPercent/100:0)+Vr,Fr.y=Qr-((Fr.yPercent=Qr&&(!$r&&Fr.yPercent||(Math.round(Fe.offsetHeight/2)===Math.round(-Qr)?-50:0)))?Fe.offsetHeight*Fr.yPercent/100:0)+Vr,Fr.z=Jr+Vr,Fr.scaleX=_round$1(Zr),Fr.scaleY=_round$1(tn),Fr.rotation=_round$1(en)+Wr,Fr.rotationX=_round$1(rn)+Wr,Fr.rotationY=_round$1(nn)+Wr,Fr.skewX=on+Wr,Fr.skewY=un+Wr,Fr.transformPerspective=an+Vr,(Fr.zOrigin=parseFloat(Gr.split(" ")[2])||0)&&(jr[_transformOriginProp]=_firstTwoOnly(Gr)),Fr.xOffset=Fr.yOffset=0,Fr.force3D=_config$2.force3D,Fr.renderTransform=Fr.svg?_renderSVGTransforms:_supports3D?_renderCSSTransforms:_renderNon3DTransforms,Fr.uncache=0,Fr},_firstTwoOnly=function(Fe){return(Fe=Fe.split(" "))[0]+" "+Fe[1]},_addPxTranslate=function(Fe,$r,Fr){var jr=getUnit($r);return _round$1(parseFloat($r)+parseFloat(_convertToUnit(Fe,"x",Fr+"px",jr)))+jr},_renderNon3DTransforms=function(Fe,$r){$r.z="0px",$r.rotationY=$r.rotationX="0deg",$r.force3D=0,_renderCSSTransforms(Fe,$r)},_zeroDeg="0deg",_zeroPx="0px",_endParenthesis=") ",_renderCSSTransforms=function(Fe,$r){var Fr=$r||this,jr=Fr.xPercent,zr=Fr.yPercent,Vr=Fr.x,Wr=Fr.y,Kr=Fr.z,Gr=Fr.rotation,Yr=Fr.rotationY,Qr=Fr.rotationX,Jr=Fr.skewX,Zr=Fr.skewY,tn=Fr.scaleX,en=Fr.scaleY,rn=Fr.transformPerspective,nn=Fr.force3D,on=Fr.target,un=Fr.zOrigin,an="",sn=nn==="auto"&&Fe&&Fe!==1||nn===!0;if(un&&(Qr!==_zeroDeg||Yr!==_zeroDeg)){var dn=parseFloat(Yr)*_DEG2RAD,ln=Math.sin(dn),cn=Math.cos(dn),fn;dn=parseFloat(Qr)*_DEG2RAD,fn=Math.cos(dn),Vr=_addPxTranslate(on,Vr,ln*fn*-un),Wr=_addPxTranslate(on,Wr,-Math.sin(dn)*-un),Kr=_addPxTranslate(on,Kr,cn*fn*-un+un)}rn!==_zeroPx&&(an+="perspective("+rn+_endParenthesis),(jr||zr)&&(an+="translate("+jr+"%, "+zr+"%) "),(sn||Vr!==_zeroPx||Wr!==_zeroPx||Kr!==_zeroPx)&&(an+=Kr!==_zeroPx||sn?"translate3d("+Vr+", "+Wr+", "+Kr+") ":"translate("+Vr+", "+Wr+_endParenthesis),Gr!==_zeroDeg&&(an+="rotate("+Gr+_endParenthesis),Yr!==_zeroDeg&&(an+="rotateY("+Yr+_endParenthesis),Qr!==_zeroDeg&&(an+="rotateX("+Qr+_endParenthesis),(Jr!==_zeroDeg||Zr!==_zeroDeg)&&(an+="skew("+Jr+", "+Zr+_endParenthesis),(tn!==1||en!==1)&&(an+="scale("+tn+", "+en+_endParenthesis),on.style[_transformProp$1]=an||"translate(0, 0)"},_renderSVGTransforms=function(Fe,$r){var Fr=$r||this,jr=Fr.xPercent,zr=Fr.yPercent,Vr=Fr.x,Wr=Fr.y,Kr=Fr.rotation,Gr=Fr.skewX,Yr=Fr.skewY,Qr=Fr.scaleX,Jr=Fr.scaleY,Zr=Fr.target,tn=Fr.xOrigin,en=Fr.yOrigin,rn=Fr.xOffset,nn=Fr.yOffset,on=Fr.forceCSS,un=parseFloat(Vr),an=parseFloat(Wr),sn,dn,ln,cn,fn;Kr=parseFloat(Kr),Gr=parseFloat(Gr),Yr=parseFloat(Yr),Yr&&(Yr=parseFloat(Yr),Gr+=Yr,Kr+=Yr),Kr||Gr?(Kr*=_DEG2RAD,Gr*=_DEG2RAD,sn=Math.cos(Kr)*Qr,dn=Math.sin(Kr)*Qr,ln=Math.sin(Kr-Gr)*-Jr,cn=Math.cos(Kr-Gr)*Jr,Gr&&(Yr*=_DEG2RAD,fn=Math.tan(Gr-Yr),fn=Math.sqrt(1+fn*fn),ln*=fn,cn*=fn,Yr&&(fn=Math.tan(Yr),fn=Math.sqrt(1+fn*fn),sn*=fn,dn*=fn)),sn=_round$1(sn),dn=_round$1(dn),ln=_round$1(ln),cn=_round$1(cn)):(sn=Qr,cn=Jr,dn=ln=0),(un&&!~(Vr+"").indexOf("px")||an&&!~(Wr+"").indexOf("px"))&&(un=_convertToUnit(Zr,"x",Vr,"px"),an=_convertToUnit(Zr,"y",Wr,"px")),(tn||en||rn||nn)&&(un=_round$1(un+tn-(tn*sn+en*ln)+rn),an=_round$1(an+en-(tn*dn+en*cn)+nn)),(jr||zr)&&(fn=Zr.getBBox(),un=_round$1(un+jr/100*fn.width),an=_round$1(an+zr/100*fn.height)),fn="matrix("+sn+","+dn+","+ln+","+cn+","+un+","+an+")",Zr.setAttribute("transform",fn),on&&(Zr.style[_transformProp$1]=fn)},_addRotationalPropTween=function(Fe,$r,Fr,jr,zr){var Vr=360,Wr=_isString$2(zr),Kr=parseFloat(zr)*(Wr&&~zr.indexOf("rad")?_RAD2DEG:1),Gr=Kr-jr,Yr=jr+Gr+"deg",Qr,Jr;return Wr&&(Qr=zr.split("_")[1],Qr==="short"&&(Gr%=Vr,Gr!==Gr%(Vr/2)&&(Gr+=Gr<0?Vr:-Vr)),Qr==="cw"&&Gr<0?Gr=(Gr+Vr*_bigNum)%Vr-~~(Gr/Vr)*Vr:Qr==="ccw"&&Gr>0&&(Gr=(Gr-Vr*_bigNum)%Vr-~~(Gr/Vr)*Vr)),Fe._pt=Jr=new PropTween(Fe._pt,$r,Fr,jr,Gr,_renderPropWithEnd),Jr.e=Yr,Jr.u="deg",Fe._props.push(Fr),Jr},_assign=function(Fe,$r){for(var Fr in $r)Fe[Fr]=$r[Fr];return Fe},_addRawTransformPTs=function(Fe,$r,Fr){var jr=_assign({},Fr._gsap),zr="perspective,force3D,transformOrigin,svgOrigin",Vr=Fr.style,Wr,Kr,Gr,Yr,Qr,Jr,Zr,tn;jr.svg?(Gr=Fr.getAttribute("transform"),Fr.setAttribute("transform",""),Vr[_transformProp$1]=$r,Wr=_parseTransform(Fr,1),_removeProperty(Fr,_transformProp$1),Fr.setAttribute("transform",Gr)):(Gr=getComputedStyle(Fr)[_transformProp$1],Vr[_transformProp$1]=$r,Wr=_parseTransform(Fr,1),Vr[_transformProp$1]=Gr);for(Kr in _transformProps)Gr=jr[Kr],Yr=Wr[Kr],Gr!==Yr&&zr.indexOf(Kr)<0&&(Zr=getUnit(Gr),tn=getUnit(Yr),Qr=Zr!==tn?_convertToUnit(Fr,Kr,Gr,tn):parseFloat(Gr),Jr=parseFloat(Yr),Fe._pt=new PropTween(Fe._pt,Wr,Kr,Qr,Jr-Qr,_renderCSSProp),Fe._pt.u=tn||0,Fe._props.push(Kr));_assign(Wr,jr)};_forEachName("padding,margin,Width,Radius",function(_r,Fe){var $r="Top",Fr="Right",jr="Bottom",zr="Left",Vr=(Fe<3?[$r,Fr,jr,zr]:[$r+zr,$r+Fr,jr+Fr,jr+zr]).map(function(Wr){return Fe<2?_r+Wr:"border"+Wr+_r});_specialProps[Fe>1?"border"+_r:_r]=function(Wr,Kr,Gr,Yr,Qr){var Jr,Zr;if(arguments.length<4)return Jr=Vr.map(function(tn){return _get(Wr,tn,Gr)}),Zr=Jr.join(" "),Zr.split(Jr[0]).length===5?Jr[0]:Zr;Jr=(Yr+"").split(" "),Zr={},Vr.forEach(function(tn,en){return Zr[tn]=Jr[en]=Jr[en]||Jr[(en-1)/2|0]}),Wr.init(Kr,Zr,Qr)}});var CSSPlugin={name:"css",register:_initCore$2,targetTest:function(Fe){return Fe.style&&Fe.nodeType},init:function(Fe,$r,Fr,jr,zr){var Vr=this._props,Wr=Fe.style,Kr=Fr.vars.startAt,Gr,Yr,Qr,Jr,Zr,tn,en,rn,nn,on,un,an,sn,dn,ln,cn;_pluginInitted||_initCore$2(),this.styles=this.styles||_getStyleSaver(Fe),cn=this.styles.props,this.tween=Fr;for(en in $r)if(en!=="autoRound"&&(Yr=$r[en],!(_plugins[en]&&_checkPlugin(en,$r,Fr,jr,Fe,zr)))){if(Zr=typeof Yr,tn=_specialProps[en],Zr==="function"&&(Yr=Yr.call(Fr,jr,Fe,zr),Zr=typeof Yr),Zr==="string"&&~Yr.indexOf("random(")&&(Yr=_replaceRandom(Yr)),tn)tn(this,Fe,en,Yr,Fr)&&(ln=1);else if(en.substr(0,2)==="--")Gr=(getComputedStyle(Fe).getPropertyValue(en)+"").trim(),Yr+="",_colorExp.lastIndex=0,_colorExp.test(Gr)||(rn=getUnit(Gr),nn=getUnit(Yr)),nn?rn!==nn&&(Gr=_convertToUnit(Fe,en,Gr,nn)+nn):rn&&(Yr+=rn),this.add(Wr,"setProperty",Gr,Yr,jr,zr,0,0,en),Vr.push(en),cn.push(en,0,Wr[en]);else if(Zr!=="undefined"){if(Kr&&en in Kr?(Gr=typeof Kr[en]=="function"?Kr[en].call(Fr,jr,Fe,zr):Kr[en],_isString$2(Gr)&&~Gr.indexOf("random(")&&(Gr=_replaceRandom(Gr)),getUnit(Gr+"")||(Gr+=_config$2.units[en]||getUnit(_get(Fe,en))||""),(Gr+"").charAt(1)==="="&&(Gr=_get(Fe,en))):Gr=_get(Fe,en),Jr=parseFloat(Gr),on=Zr==="string"&&Yr.charAt(1)==="="&&Yr.substr(0,2),on&&(Yr=Yr.substr(2)),Qr=parseFloat(Yr),en in _propertyAliases&&(en==="autoAlpha"&&(Jr===1&&_get(Fe,"visibility")==="hidden"&&Qr&&(Jr=0),cn.push("visibility",0,Wr.visibility),_addNonTweeningPT(this,Wr,"visibility",Jr?"inherit":"hidden",Qr?"inherit":"hidden",!Qr)),en!=="scale"&&en!=="transform"&&(en=_propertyAliases[en],~en.indexOf(",")&&(en=en.split(",")[0]))),un=en in _transformProps,un){if(this.styles.save(en),an||(sn=Fe._gsap,sn.renderTransform&&!$r.parseTransform||_parseTransform(Fe,$r.parseTransform),dn=$r.smoothOrigin!==!1&&sn.smooth,an=this._pt=new PropTween(this._pt,Wr,_transformProp$1,0,1,sn.renderTransform,sn,0,-1),an.dep=1),en==="scale")this._pt=new PropTween(this._pt,sn,"scaleY",sn.scaleY,(on?_parseRelative(sn.scaleY,on+Qr):Qr)-sn.scaleY||0,_renderCSSProp),this._pt.u=0,Vr.push("scaleY",en),en+="X";else if(en==="transformOrigin"){cn.push(_transformOriginProp,0,Wr[_transformOriginProp]),Yr=_convertKeywordsToPercentages(Yr),sn.svg?_applySVGOrigin(Fe,Yr,0,dn,0,this):(nn=parseFloat(Yr.split(" ")[2])||0,nn!==sn.zOrigin&&_addNonTweeningPT(this,sn,"zOrigin",sn.zOrigin,nn),_addNonTweeningPT(this,Wr,en,_firstTwoOnly(Gr),_firstTwoOnly(Yr)));continue}else if(en==="svgOrigin"){_applySVGOrigin(Fe,Yr,1,dn,0,this);continue}else if(en in _rotationalProperties){_addRotationalPropTween(this,sn,en,Jr,on?_parseRelative(Jr,on+Yr):Yr);continue}else if(en==="smoothOrigin"){_addNonTweeningPT(this,sn,"smooth",sn.smooth,Yr);continue}else if(en==="force3D"){sn[en]=Yr;continue}else if(en==="transform"){_addRawTransformPTs(this,Yr,Fe);continue}}else en in Wr||(en=_checkPropPrefix(en)||en);if(un||(Qr||Qr===0)&&(Jr||Jr===0)&&!_complexExp.test(Yr)&&en in Wr)rn=(Gr+"").substr((Jr+"").length),Qr||(Qr=0),nn=getUnit(Yr)||(en in _config$2.units?_config$2.units[en]:rn),rn!==nn&&(Jr=_convertToUnit(Fe,en,Gr,nn)),this._pt=new PropTween(this._pt,un?sn:Wr,en,Jr,(on?_parseRelative(Jr,on+Qr):Qr)-Jr,!un&&(nn==="px"||en==="zIndex")&&$r.autoRound!==!1?_renderRoundedCSSProp:_renderCSSProp),this._pt.u=nn||0,rn!==nn&&nn!=="%"&&(this._pt.b=Gr,this._pt.r=_renderCSSPropWithBeginning);else if(en in Wr)_tweenComplexCSSString.call(this,Fe,en,Gr,on?on+Yr:Yr);else if(en in Fe)this.add(Fe,en,Gr||Fe[en],on?on+Yr:Yr,jr,zr);else if(en!=="parseTransform"){_missingPlugin(en,Yr);continue}un||(en in Wr?cn.push(en,0,Wr[en]):cn.push(en,1,Gr||Fe[en])),Vr.push(en)}}ln&&_sortPropTweensByPriority(this)},render:function(Fe,$r){if($r.tween._time||!_reverting())for(var Fr=$r._pt;Fr;)Fr.r(Fe,Fr.d),Fr=Fr._next;else $r.styles.revert()},get:_get,aliases:_propertyAliases,getSetter:function(Fe,$r,Fr){var jr=_propertyAliases[$r];return jr&&jr.indexOf(",")<0&&($r=jr),$r in _transformProps&&$r!==_transformOriginProp&&(Fe._gsap.x||_get(Fe,"x"))?Fr&&_recentSetterPlugin===Fr?$r==="scale"?_setterScale:_setterTransform:(_recentSetterPlugin=Fr||{})&&($r==="scale"?_setterScaleWithRender:_setterTransformWithRender):Fe.style&&!_isUndefined(Fe.style[$r])?_setterCSSStyle:~$r.indexOf("-")?_setterCSSProp:_getSetter(Fe,$r)},core:{_removeProperty,_getMatrix}};gsap$3.utils.checkPrefix=_checkPropPrefix;gsap$3.core.getStyleSaver=_getStyleSaver;(function(_r,Fe,$r,Fr){var jr=_forEachName(_r+","+Fe+","+$r,function(zr){_transformProps[zr]=1});_forEachName(Fe,function(zr){_config$2.units[zr]="deg",_rotationalProperties[zr]=1}),_propertyAliases[jr[13]]=_r+","+Fe,_forEachName(Fr,function(zr){var Vr=zr.split(":");_propertyAliases[Vr[1]]=jr[Vr[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");_forEachName("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(_r){_config$2.units[_r]="px"});gsap$3.registerPlugin(CSSPlugin);var gsapWithCSS=gsap$3.registerPlugin(CSSPlugin)||gsap$3;gsapWithCSS.core.Tween;function _defineProperties$c(_r,Fe){for(var $r=0;$r<Fe.length;$r++){var Fr=Fe[$r];Fr.enumerable=Fr.enumerable||!1,Fr.configurable=!0,"value"in Fr&&(Fr.writable=!0),Object.defineProperty(_r,Fr.key,Fr)}}function _createClass$d(_r,Fe,$r){return Fe&&_defineProperties$c(_r.prototype,Fe),$r&&_defineProperties$c(_r,$r),_r}/*!
 * Observer 3.12.1
 * https://greensock.com
 *
 * @license Copyright 2008-2023, GreenSock. All rights reserved.
 * Subject to the terms at https://greensock.com/standard-license or for
 * Club GreenSock members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/var gsap$2,_coreInitted$2,_win$1,_doc$1,_docEl$2,_body$2,_isTouch,_pointerType,ScrollTrigger$2,_root$1,_normalizer$1,_eventTypes,_context$1,_getGSAP$2=function(){return gsap$2||typeof window!="undefined"&&(gsap$2=window.gsap)&&gsap$2.registerPlugin&&gsap$2},_startup$1=1,_observers=[],_scrollers=[],_proxies=[],_getTime$1=Date.now,_bridge=function(Fe,$r){return $r},_integrate=function(){var Fe=ScrollTrigger$2.core,$r=Fe.bridge||{},Fr=Fe._scrollers,jr=Fe._proxies;Fr.push.apply(Fr,_scrollers),jr.push.apply(jr,_proxies),_scrollers=Fr,_proxies=jr,_bridge=function(Vr,Wr){return $r[Vr](Wr)}},_getProxyProp=function(Fe,$r){return~_proxies.indexOf(Fe)&&_proxies[_proxies.indexOf(Fe)+1][$r]},_isViewport$1=function(Fe){return!!~_root$1.indexOf(Fe)},_addListener$1=function(Fe,$r,Fr,jr,zr){return Fe.addEventListener($r,Fr,{passive:!jr,capture:!!zr})},_removeListener$1=function(Fe,$r,Fr,jr){return Fe.removeEventListener($r,Fr,!!jr)},_scrollLeft="scrollLeft",_scrollTop="scrollTop",_onScroll$1=function(){return _normalizer$1&&_normalizer$1.isPressed||_scrollers.cache++},_scrollCacheFunc=function(Fe,$r){var Fr=function jr(zr){if(zr||zr===0){_startup$1&&(_win$1.history.scrollRestoration="manual");var Vr=_normalizer$1&&_normalizer$1.isPressed;zr=jr.v=Math.round(zr)||(_normalizer$1&&_normalizer$1.iOS?1:0),Fe(zr),jr.cacheID=_scrollers.cache,Vr&&_bridge("ss",zr)}else($r||_scrollers.cache!==jr.cacheID||_bridge("ref"))&&(jr.cacheID=_scrollers.cache,jr.v=Fe());return jr.v+jr.offset};return Fr.offset=0,Fe&&Fr},_horizontal={s:_scrollLeft,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:_scrollCacheFunc(function(_r){return arguments.length?_win$1.scrollTo(_r,_vertical.sc()):_win$1.pageXOffset||_doc$1[_scrollLeft]||_docEl$2[_scrollLeft]||_body$2[_scrollLeft]||0})},_vertical={s:_scrollTop,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:_horizontal,sc:_scrollCacheFunc(function(_r){return arguments.length?_win$1.scrollTo(_horizontal.sc(),_r):_win$1.pageYOffset||_doc$1[_scrollTop]||_docEl$2[_scrollTop]||_body$2[_scrollTop]||0})},_getTarget=function(Fe,$r){return($r&&$r._ctx&&$r._ctx.selector||gsap$2.utils.toArray)(Fe)[0]||(typeof Fe=="string"&&gsap$2.config().nullTargetWarn!==!1?console.warn("Element not found:",Fe):null)},_getScrollFunc=function(Fe,$r){var Fr=$r.s,jr=$r.sc;_isViewport$1(Fe)&&(Fe=_doc$1.scrollingElement||_docEl$2);var zr=_scrollers.indexOf(Fe),Vr=jr===_vertical.sc?1:2;!~zr&&(zr=_scrollers.push(Fe)-1),_scrollers[zr+Vr]||Fe.addEventListener("scroll",_onScroll$1);var Wr=_scrollers[zr+Vr],Kr=Wr||(_scrollers[zr+Vr]=_scrollCacheFunc(_getProxyProp(Fe,Fr),!0)||(_isViewport$1(Fe)?jr:_scrollCacheFunc(function(Gr){return arguments.length?Fe[Fr]=Gr:Fe[Fr]})));return Kr.target=Fe,Wr||(Kr.smooth=gsap$2.getProperty(Fe,"scrollBehavior")==="smooth"),Kr},_getVelocityProp=function(Fe,$r,Fr){var jr=Fe,zr=Fe,Vr=_getTime$1(),Wr=Vr,Kr=$r||50,Gr=Math.max(500,Kr*3),Yr=function(tn,en){var rn=_getTime$1();en||rn-Vr>Kr?(zr=jr,jr=tn,Wr=Vr,Vr=rn):Fr?jr+=tn:jr=zr+(tn-zr)/(rn-Wr)*(Vr-Wr)},Qr=function(){zr=jr=Fr?0:jr,Wr=Vr=0},Jr=function(tn){var en=Wr,rn=zr,nn=_getTime$1();return(tn||tn===0)&&tn!==jr&&Yr(tn),Vr===Wr||nn-Wr>Gr?0:(jr+(Fr?rn:-rn))/((Fr?nn:Vr)-en)*1e3};return{update:Yr,reset:Qr,getVelocity:Jr}},_getEvent=function(Fe,$r){return $r&&!Fe._gsapAllow&&Fe.preventDefault(),Fe.changedTouches?Fe.changedTouches[0]:Fe},_getAbsoluteMax=function(Fe){var $r=Math.max.apply(Math,Fe),Fr=Math.min.apply(Math,Fe);return Math.abs($r)>=Math.abs(Fr)?$r:Fr},_setScrollTrigger=function(){ScrollTrigger$2=gsap$2.core.globals().ScrollTrigger,ScrollTrigger$2&&ScrollTrigger$2.core&&_integrate()},_initCore$1=function(Fe){return gsap$2=Fe||_getGSAP$2(),gsap$2&&typeof document!="undefined"&&document.body&&(_win$1=window,_doc$1=document,_docEl$2=_doc$1.documentElement,_body$2=_doc$1.body,_root$1=[_win$1,_doc$1,_docEl$2,_body$2],gsap$2.utils.clamp,_context$1=gsap$2.core.context||function(){},_pointerType="onpointerenter"in _body$2?"pointer":"mouse",_isTouch=Observer.isTouch=_win$1.matchMedia&&_win$1.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in _win$1||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,_eventTypes=Observer.eventTypes=("ontouchstart"in _docEl$2?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in _docEl$2?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return _startup$1=0},500),_setScrollTrigger(),_coreInitted$2=1),_coreInitted$2};_horizontal.op=_vertical;_scrollers.cache=0;var Observer=function(){function _r($r){this.init($r)}var Fe=_r.prototype;return Fe.init=function(Fr){_coreInitted$2||_initCore$1(gsap$2)||console.warn("Please gsap.registerPlugin(Observer)"),ScrollTrigger$2||_setScrollTrigger();var jr=Fr.tolerance,zr=Fr.dragMinimum,Vr=Fr.type,Wr=Fr.target,Kr=Fr.lineHeight,Gr=Fr.debounce,Yr=Fr.preventDefault,Qr=Fr.onStop,Jr=Fr.onStopDelay,Zr=Fr.ignore,tn=Fr.wheelSpeed,en=Fr.event,rn=Fr.onDragStart,nn=Fr.onDragEnd,on=Fr.onDrag,un=Fr.onPress,an=Fr.onRelease,sn=Fr.onRight,dn=Fr.onLeft,ln=Fr.onUp,cn=Fr.onDown,fn=Fr.onChangeX,pn=Fr.onChangeY,hn=Fr.onChange,mn=Fr.onToggleX,Sn=Fr.onToggleY,vn=Fr.onHover,bn=Fr.onHoverEnd,_n=Fr.onMove,$n=Fr.ignoreCheck,yn=Fr.isNormalizer,wn=Fr.onGestureStart,gn=Fr.onGestureEnd,Pn=Fr.onWheel,Tn=Fr.onEnable,An=Fr.onDisable,Dn=Fr.onClick,Mn=Fr.scrollSpeed,Ln=Fr.capture,On=Fr.allowClicks,qn=Fr.lockAxis,Qn=Fr.onLockAxis;this.target=Wr=_getTarget(Wr)||_docEl$2,this.vars=Fr,Zr&&(Zr=gsap$2.utils.toArray(Zr)),jr=jr||1e-9,zr=zr||0,tn=tn||1,Mn=Mn||1,Vr=Vr||"wheel,touch,pointer",Gr=Gr!==!1,Kr||(Kr=parseFloat(_win$1.getComputedStyle(_body$2).lineHeight)||22);var di,fi,En,xn,kn,Rn,Nn,Cn=this,Bn=0,Fn=0,jn=_getScrollFunc(Wr,_horizontal),In=_getScrollFunc(Wr,_vertical),Un=jn(),Vn=In(),Gn=~Vr.indexOf("touch")&&!~Vr.indexOf("pointer")&&_eventTypes[0]==="pointerdown",Wn=_isViewport$1(Wr),Kn=Wr.ownerDocument||_doc$1,ni=[0,0,0],Xn=[0,0,0],hi=0,gi=function(){return hi=_getTime$1()},bi=function(Jn,ui){return(Cn.event=Jn)&&Zr&&~Zr.indexOf(Jn.target)||ui&&Gn&&Jn.pointerType!=="touch"||$n&&$n(Jn,ui)},zn=function(){Cn._vx.reset(),Cn._vy.reset(),fi.pause(),Qr&&Qr(Cn)},Yn=function(){var Jn=Cn.deltaX=_getAbsoluteMax(ni),ui=Cn.deltaY=_getAbsoluteMax(Xn),$i=Math.abs(Jn)>=jr,Hn=Math.abs(ui)>=jr;hn&&($i||Hn)&&hn(Cn,Jn,ui,ni,Xn),$i&&(sn&&Cn.deltaX>0&&sn(Cn),dn&&Cn.deltaX<0&&dn(Cn),fn&&fn(Cn),mn&&Cn.deltaX<0!=Bn<0&&mn(Cn),Bn=Cn.deltaX,ni[0]=ni[1]=ni[2]=0),Hn&&(cn&&Cn.deltaY>0&&cn(Cn),ln&&Cn.deltaY<0&&ln(Cn),pn&&pn(Cn),Sn&&Cn.deltaY<0!=Fn<0&&Sn(Cn),Fn=Cn.deltaY,Xn[0]=Xn[1]=Xn[2]=0),(xn||En)&&(_n&&_n(Cn),En&&(on(Cn),En=!1),xn=!1),Rn&&!(Rn=!1)&&Qn&&Qn(Cn),kn&&(Pn(Cn),kn=!1),di=0},oi=function(Jn,ui,$i){ni[$i]+=Jn,Xn[$i]+=ui,Cn._vx.update(Jn),Cn._vy.update(ui),Gr?di||(di=requestAnimationFrame(Yn)):Yn()},ii=function(Jn,ui){qn&&!Nn&&(Cn.axis=Nn=Math.abs(Jn)>Math.abs(ui)?"x":"y",Rn=!0),Nn!=="y"&&(ni[2]+=Jn,Cn._vx.update(Jn,!0)),Nn!=="x"&&(Xn[2]+=ui,Cn._vy.update(ui,!0)),Gr?di||(di=requestAnimationFrame(Yn)):Yn()},si=function(Jn){if(!bi(Jn,1)){Jn=_getEvent(Jn,Yr);var ui=Jn.clientX,$i=Jn.clientY,Hn=ui-Cn.x,li=$i-Cn.y,Zn=Cn.isDragging;Cn.x=ui,Cn.y=$i,(Zn||Math.abs(Cn.startX-ui)>=zr||Math.abs(Cn.startY-$i)>=zr)&&(on&&(En=!0),Zn||(Cn.isDragging=!0),ii(Hn,li),Zn||rn&&rn(Cn))}},pi=Cn.onPress=function(ri){bi(ri,1)||ri&&ri.button||(Cn.axis=Nn=null,fi.pause(),Cn.isPressed=!0,ri=_getEvent(ri),Bn=Fn=0,Cn.startX=Cn.x=ri.clientX,Cn.startY=Cn.y=ri.clientY,Cn._vx.reset(),Cn._vy.reset(),_addListener$1(yn?Wr:Kn,_eventTypes[1],si,Yr,!0),Cn.deltaX=Cn.deltaY=0,un&&un(Cn))},Pi=Cn.onRelease=function(ri){if(!bi(ri,1)){_removeListener$1(yn?Wr:Kn,_eventTypes[1],si,!0);var Jn=!isNaN(Cn.y-Cn.startY),ui=Cn.isDragging&&(Math.abs(Cn.x-Cn.startX)>3||Math.abs(Cn.y-Cn.startY)>3),$i=_getEvent(ri);!ui&&Jn&&(Cn._vx.reset(),Cn._vy.reset(),Yr&&On&&gsap$2.delayedCall(.08,function(){if(_getTime$1()-hi>300&&!ri.defaultPrevented){if(ri.target.click)ri.target.click();else if(Kn.createEvent){var Hn=Kn.createEvent("MouseEvents");Hn.initMouseEvent("click",!0,!0,_win$1,1,$i.screenX,$i.screenY,$i.clientX,$i.clientY,!1,!1,!1,!1,0,null),ri.target.dispatchEvent(Hn)}}})),Cn.isDragging=Cn.isGesturing=Cn.isPressed=!1,Qr&&!yn&&fi.restart(!0),nn&&ui&&nn(Cn),an&&an(Cn,ui)}},ti=function(Jn){return Jn.touches&&Jn.touches.length>1&&(Cn.isGesturing=!0)&&wn(Jn,Cn.isDragging)},Ri=function(){return(Cn.isGesturing=!1)||gn(Cn)},Si=function(Jn){if(!bi(Jn)){var ui=jn(),$i=In();oi((ui-Un)*Mn,($i-Vn)*Mn,1),Un=ui,Vn=$i,Qr&&fi.restart(!0)}},Ei=function(Jn){if(!bi(Jn)){Jn=_getEvent(Jn,Yr),Pn&&(kn=!0);var ui=(Jn.deltaMode===1?Kr:Jn.deltaMode===2?_win$1.innerHeight:1)*tn;oi(Jn.deltaX*ui,Jn.deltaY*ui,0),Qr&&!yn&&fi.restart(!0)}},Ti=function(Jn){if(!bi(Jn)){var ui=Jn.clientX,$i=Jn.clientY,Hn=ui-Cn.x,li=$i-Cn.y;Cn.x=ui,Cn.y=$i,xn=!0,(Hn||li)&&ii(Hn,li)}},xi=function(Jn){Cn.event=Jn,vn(Cn)},Ui=function(Jn){Cn.event=Jn,bn(Cn)},Vi=function(Jn){return bi(Jn)||_getEvent(Jn,Yr)&&Dn(Cn)};fi=Cn._dc=gsap$2.delayedCall(Jr||.25,zn).pause(),Cn.deltaX=Cn.deltaY=0,Cn._vx=_getVelocityProp(0,50,!0),Cn._vy=_getVelocityProp(0,50,!0),Cn.scrollX=jn,Cn.scrollY=In,Cn.isDragging=Cn.isGesturing=Cn.isPressed=!1,_context$1(this),Cn.enable=function(ri){return Cn.isEnabled||(_addListener$1(Wn?Kn:Wr,"scroll",_onScroll$1),Vr.indexOf("scroll")>=0&&_addListener$1(Wn?Kn:Wr,"scroll",Si,Yr,Ln),Vr.indexOf("wheel")>=0&&_addListener$1(Wr,"wheel",Ei,Yr,Ln),(Vr.indexOf("touch")>=0&&_isTouch||Vr.indexOf("pointer")>=0)&&(_addListener$1(Wr,_eventTypes[0],pi,Yr,Ln),_addListener$1(Kn,_eventTypes[2],Pi),_addListener$1(Kn,_eventTypes[3],Pi),On&&_addListener$1(Wr,"click",gi,!1,!0),Dn&&_addListener$1(Wr,"click",Vi),wn&&_addListener$1(Kn,"gesturestart",ti),gn&&_addListener$1(Kn,"gestureend",Ri),vn&&_addListener$1(Wr,_pointerType+"enter",xi),bn&&_addListener$1(Wr,_pointerType+"leave",Ui),_n&&_addListener$1(Wr,_pointerType+"move",Ti)),Cn.isEnabled=!0,ri&&ri.type&&pi(ri),Tn&&Tn(Cn)),Cn},Cn.disable=function(){Cn.isEnabled&&(_observers.filter(function(ri){return ri!==Cn&&_isViewport$1(ri.target)}).length||_removeListener$1(Wn?Kn:Wr,"scroll",_onScroll$1),Cn.isPressed&&(Cn._vx.reset(),Cn._vy.reset(),_removeListener$1(yn?Wr:Kn,_eventTypes[1],si,!0)),_removeListener$1(Wn?Kn:Wr,"scroll",Si,Ln),_removeListener$1(Wr,"wheel",Ei,Ln),_removeListener$1(Wr,_eventTypes[0],pi,Ln),_removeListener$1(Kn,_eventTypes[2],Pi),_removeListener$1(Kn,_eventTypes[3],Pi),_removeListener$1(Wr,"click",gi,!0),_removeListener$1(Wr,"click",Vi),_removeListener$1(Kn,"gesturestart",ti),_removeListener$1(Kn,"gestureend",Ri),_removeListener$1(Wr,_pointerType+"enter",xi),_removeListener$1(Wr,_pointerType+"leave",Ui),_removeListener$1(Wr,_pointerType+"move",Ti),Cn.isEnabled=Cn.isPressed=Cn.isDragging=!1,An&&An(Cn))},Cn.kill=Cn.revert=function(){Cn.disable();var ri=_observers.indexOf(Cn);ri>=0&&_observers.splice(ri,1),_normalizer$1===Cn&&(_normalizer$1=0)},_observers.push(Cn),yn&&_isViewport$1(Wr)&&(_normalizer$1=Cn),Cn.enable(en)},_createClass$d(_r,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),_r}();Observer.version="3.12.1";Observer.create=function(_r){return new Observer(_r)};Observer.register=_initCore$1;Observer.getAll=function(){return _observers.slice()};Observer.getById=function(_r){return _observers.filter(function(Fe){return Fe.vars.id===_r})[0]};_getGSAP$2()&&gsap$2.registerPlugin(Observer);/*!
 * ScrollTrigger 3.12.1
 * https://greensock.com
 *
 * @license Copyright 2008-2023, GreenSock. All rights reserved.
 * Subject to the terms at https://greensock.com/standard-license or for
 * Club GreenSock members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/var gsap$1,_coreInitted$1,_win,_doc,_docEl$1,_body$1,_root,_resizeDelay,_toArray$1,_clamp,_time2,_syncInterval,_refreshing,_pointerIsDown,_transformProp,_i,_prevWidth,_prevHeight,_autoRefresh,_sort,_suppressOverwrites,_ignoreResize,_normalizer,_ignoreMobileResize,_baseScreenHeight,_baseScreenWidth,_fixIOSBug,_context,_scrollRestoration,_limitCallbacks,_startup=1,_getTime=Date.now,_time1=_getTime(),_lastScrollTime=0,_enabled=0,_parseClamp=function(Fe,$r,Fr){var jr=_isString$1(Fe)&&(Fe.substr(0,6)==="clamp("||Fe.indexOf("max")>-1);return Fr["_"+$r+"Clamp"]=jr,jr?Fe.substr(6,Fe.length-7):Fe},_keepClamp=function(Fe,$r){return $r&&(!_isString$1(Fe)||Fe.substr(0,6)!=="clamp(")?"clamp("+Fe+")":Fe},_rafBugFix=function _r(){return _enabled&&requestAnimationFrame(_r)},_pointerDownHandler=function(){return _pointerIsDown=1},_pointerUpHandler=function(){return _pointerIsDown=0},_passThrough=function(Fe){return Fe},_round=function(Fe){return Math.round(Fe*1e5)/1e5||0},_windowExists$1=function(){return typeof window!="undefined"},_getGSAP$1=function(){return gsap$1||_windowExists$1()&&(gsap$1=window.gsap)&&gsap$1.registerPlugin&&gsap$1},_isViewport=function(Fe){return!!~_root.indexOf(Fe)},_getBoundsFunc=function(Fe){return _getProxyProp(Fe,"getBoundingClientRect")||(_isViewport(Fe)?function(){return _winOffsets.width=_win.innerWidth,_winOffsets.height=_win.innerHeight,_winOffsets}:function(){return _getBounds(Fe)})},_getSizeFunc=function(Fe,$r,Fr){var jr=Fr.d,zr=Fr.d2,Vr=Fr.a;return(Vr=_getProxyProp(Fe,"getBoundingClientRect"))?function(){return Vr()[jr]}:function(){return($r?_win["inner"+zr]:Fe["client"+zr])||0}},_getOffsetsFunc=function(Fe,$r){return!$r||~_proxies.indexOf(Fe)?_getBoundsFunc(Fe):function(){return _winOffsets}},_maxScroll=function(Fe,$r){var Fr=$r.s,jr=$r.d2,zr=$r.d,Vr=$r.a;return Math.max(0,(Fr="scroll"+jr)&&(Vr=_getProxyProp(Fe,Fr))?Vr()-_getBoundsFunc(Fe)()[zr]:_isViewport(Fe)?(_docEl$1[Fr]||_body$1[Fr])-(_win["inner"+jr]||_docEl$1["client"+jr]||_body$1["client"+jr]):Fe[Fr]-Fe["offset"+jr])},_iterateAutoRefresh=function(Fe,$r){for(var Fr=0;Fr<_autoRefresh.length;Fr+=3)(!$r||~$r.indexOf(_autoRefresh[Fr+1]))&&Fe(_autoRefresh[Fr],_autoRefresh[Fr+1],_autoRefresh[Fr+2])},_isString$1=function(Fe){return typeof Fe=="string"},_isFunction$1=function(Fe){return typeof Fe=="function"},_isNumber=function(Fe){return typeof Fe=="number"},_isObject=function(Fe){return typeof Fe=="object"},_endAnimation=function(Fe,$r,Fr){return Fe&&Fe.progress($r?0:1)&&Fr&&Fe.pause()},_callback=function(Fe,$r){if(Fe.enabled){var Fr=$r(Fe);Fr&&Fr.totalTime&&(Fe.callbackAnimation=Fr)}},_abs=Math.abs,_left="left",_top="top",_right="right",_bottom="bottom",_width="width",_height="height",_Right="Right",_Left="Left",_Top="Top",_Bottom="Bottom",_padding="padding",_margin="margin",_Width="Width",_Height="Height",_px="px",_getComputedStyle=function(Fe){return _win.getComputedStyle(Fe)},_makePositionable=function(Fe){var $r=_getComputedStyle(Fe).position;Fe.style.position=$r==="absolute"||$r==="fixed"?$r:"relative"},_setDefaults=function(Fe,$r){for(var Fr in $r)Fr in Fe||(Fe[Fr]=$r[Fr]);return Fe},_getBounds=function(Fe,$r){var Fr=$r&&_getComputedStyle(Fe)[_transformProp]!=="matrix(1, 0, 0, 1, 0, 0)"&&gsap$1.to(Fe,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),jr=Fe.getBoundingClientRect();return Fr&&Fr.progress(0).kill(),jr},_getSize=function(Fe,$r){var Fr=$r.d2;return Fe["offset"+Fr]||Fe["client"+Fr]||0},_getLabelRatioArray=function(Fe){var $r=[],Fr=Fe.labels,jr=Fe.duration(),zr;for(zr in Fr)$r.push(Fr[zr]/jr);return $r},_getClosestLabel=function(Fe){return function($r){return gsap$1.utils.snap(_getLabelRatioArray(Fe),$r)}},_snapDirectional=function(Fe){var $r=gsap$1.utils.snap(Fe),Fr=Array.isArray(Fe)&&Fe.slice(0).sort(function(jr,zr){return jr-zr});return Fr?function(jr,zr,Vr){Vr===void 0&&(Vr=.001);var Wr;if(!zr)return $r(jr);if(zr>0){for(jr-=Vr,Wr=0;Wr<Fr.length;Wr++)if(Fr[Wr]>=jr)return Fr[Wr];return Fr[Wr-1]}else for(Wr=Fr.length,jr+=Vr;Wr--;)if(Fr[Wr]<=jr)return Fr[Wr];return Fr[0]}:function(jr,zr,Vr){Vr===void 0&&(Vr=.001);var Wr=$r(jr);return!zr||Math.abs(Wr-jr)<Vr||Wr-jr<0==zr<0?Wr:$r(zr<0?jr-Fe:jr+Fe)}},_getLabelAtDirection=function(Fe){return function($r,Fr){return _snapDirectional(_getLabelRatioArray(Fe))($r,Fr.direction)}},_multiListener=function(Fe,$r,Fr,jr){return Fr.split(",").forEach(function(zr){return Fe($r,zr,jr)})},_addListener=function(Fe,$r,Fr,jr,zr){return Fe.addEventListener($r,Fr,{passive:!jr,capture:!!zr})},_removeListener=function(Fe,$r,Fr,jr){return Fe.removeEventListener($r,Fr,!!jr)},_wheelListener=function(Fe,$r,Fr){Fr=Fr&&Fr.wheelHandler,Fr&&(Fe($r,"wheel",Fr),Fe($r,"touchmove",Fr))},_markerDefaults={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},_defaults={toggleActions:"play",anticipatePin:0},_keywords={top:0,left:0,center:.5,bottom:1,right:1},_offsetToPx=function(Fe,$r){if(_isString$1(Fe)){var Fr=Fe.indexOf("="),jr=~Fr?+(Fe.charAt(Fr-1)+1)*parseFloat(Fe.substr(Fr+1)):0;~Fr&&(Fe.indexOf("%")>Fr&&(jr*=$r/100),Fe=Fe.substr(0,Fr-1)),Fe=jr+(Fe in _keywords?_keywords[Fe]*$r:~Fe.indexOf("%")?parseFloat(Fe)*$r/100:parseFloat(Fe)||0)}return Fe},_createMarker=function(Fe,$r,Fr,jr,zr,Vr,Wr,Kr){var Gr=zr.startColor,Yr=zr.endColor,Qr=zr.fontSize,Jr=zr.indent,Zr=zr.fontWeight,tn=_doc.createElement("div"),en=_isViewport(Fr)||_getProxyProp(Fr,"pinType")==="fixed",rn=Fe.indexOf("scroller")!==-1,nn=en?_body$1:Fr,on=Fe.indexOf("start")!==-1,un=on?Gr:Yr,an="border-color:"+un+";font-size:"+Qr+";color:"+un+";font-weight:"+Zr+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return an+="position:"+((rn||Kr)&&en?"fixed;":"absolute;"),(rn||Kr||!en)&&(an+=(jr===_vertical?_right:_bottom)+":"+(Vr+parseFloat(Jr))+"px;"),Wr&&(an+="box-sizing:border-box;text-align:left;width:"+Wr.offsetWidth+"px;"),tn._isStart=on,tn.setAttribute("class","gsap-marker-"+Fe+($r?" marker-"+$r:"")),tn.style.cssText=an,tn.innerText=$r||$r===0?Fe+"-"+$r:Fe,nn.children[0]?nn.insertBefore(tn,nn.children[0]):nn.appendChild(tn),tn._offset=tn["offset"+jr.op.d2],_positionMarker(tn,0,jr,on),tn},_positionMarker=function(Fe,$r,Fr,jr){var zr={display:"block"},Vr=Fr[jr?"os2":"p2"],Wr=Fr[jr?"p2":"os2"];Fe._isFlipped=jr,zr[Fr.a+"Percent"]=jr?-100:0,zr[Fr.a]=jr?"1px":0,zr["border"+Vr+_Width]=1,zr["border"+Wr+_Width]=0,zr[Fr.p]=$r+"px",gsap$1.set(Fe,zr)},_triggers=[],_ids={},_rafID,_sync=function(){return _getTime()-_lastScrollTime>34&&(_rafID||(_rafID=requestAnimationFrame(_updateAll)))},_onScroll=function(){(!_normalizer||!_normalizer.isPressed||_normalizer.startX>_body$1.clientWidth)&&(_scrollers.cache++,_normalizer?_rafID||(_rafID=requestAnimationFrame(_updateAll)):_updateAll(),_lastScrollTime||_dispatch("scrollStart"),_lastScrollTime=_getTime())},_setBaseDimensions=function(){_baseScreenWidth=_win.innerWidth,_baseScreenHeight=_win.innerHeight},_onResize=function(){_scrollers.cache++,!_refreshing&&!_ignoreResize&&!_doc.fullscreenElement&&!_doc.webkitFullscreenElement&&(!_ignoreMobileResize||_baseScreenWidth!==_win.innerWidth||Math.abs(_win.innerHeight-_baseScreenHeight)>_win.innerHeight*.25)&&_resizeDelay.restart(!0)},_listeners={},_emptyArray=[],_softRefresh=function _r(){return _removeListener(ScrollTrigger$1,"scrollEnd",_r)||_refreshAll(!0)},_dispatch=function(Fe){return _listeners[Fe]&&_listeners[Fe].map(function($r){return $r()})||_emptyArray},_savedStyles=[],_revertRecorded=function(Fe){for(var $r=0;$r<_savedStyles.length;$r+=5)(!Fe||_savedStyles[$r+4]&&_savedStyles[$r+4].query===Fe)&&(_savedStyles[$r].style.cssText=_savedStyles[$r+1],_savedStyles[$r].getBBox&&_savedStyles[$r].setAttribute("transform",_savedStyles[$r+2]||""),_savedStyles[$r+3].uncache=1)},_revertAll=function(Fe,$r){var Fr;for(_i=0;_i<_triggers.length;_i++)Fr=_triggers[_i],Fr&&(!$r||Fr._ctx===$r)&&(Fe?Fr.kill(1):Fr.revert(!0,!0));$r&&_revertRecorded($r),$r||_dispatch("revert")},_clearScrollMemory=function(Fe,$r){_scrollers.cache++,($r||!_refreshingAll)&&_scrollers.forEach(function(Fr){return _isFunction$1(Fr)&&Fr.cacheID++&&(Fr.rec=0)}),_isString$1(Fe)&&(_win.history.scrollRestoration=_scrollRestoration=Fe)},_refreshingAll,_refreshID=0,_queueRefreshID,_queueRefreshAll=function(){if(_queueRefreshID!==_refreshID){var Fe=_queueRefreshID=_refreshID;requestAnimationFrame(function(){return Fe===_refreshID&&_refreshAll(!0)})}},_refreshAll=function(Fe,$r){if(_lastScrollTime&&!Fe){_addListener(ScrollTrigger$1,"scrollEnd",_softRefresh);return}_refreshingAll=ScrollTrigger$1.isRefreshing=!0,_scrollers.forEach(function(jr){return _isFunction$1(jr)&&++jr.cacheID&&(jr.rec=jr())});var Fr=_dispatch("refreshInit");_sort&&ScrollTrigger$1.sort(),$r||_revertAll(),_scrollers.forEach(function(jr){_isFunction$1(jr)&&(jr.smooth&&(jr.target.style.scrollBehavior="auto"),jr(0))}),_triggers.slice(0).forEach(function(jr){return jr.refresh()}),_triggers.forEach(function(jr,zr){if(jr._subPinOffset&&jr.pin){var Vr=jr.vars.horizontal?"offsetWidth":"offsetHeight",Wr=jr.pin[Vr];jr.revert(!0,1),jr.adjustPinSpacing(jr.pin[Vr]-Wr),jr.refresh()}}),_triggers.forEach(function(jr){var zr=_maxScroll(jr.scroller,jr._dir);(jr.vars.end==="max"||jr._endClamp&&jr.end>zr)&&jr.setPositions(jr.start,Math.max(jr.start+1,zr),!0)}),Fr.forEach(function(jr){return jr&&jr.render&&jr.render(-1)}),_scrollers.forEach(function(jr){_isFunction$1(jr)&&(jr.smooth&&requestAnimationFrame(function(){return jr.target.style.scrollBehavior="smooth"}),jr.rec&&jr(jr.rec))}),_clearScrollMemory(_scrollRestoration,1),_resizeDelay.pause(),_refreshID++,_refreshingAll=2,_updateAll(2),_triggers.forEach(function(jr){return _isFunction$1(jr.vars.onRefresh)&&jr.vars.onRefresh(jr)}),_refreshingAll=ScrollTrigger$1.isRefreshing=!1,_dispatch("refresh")},_lastScroll=0,_direction=1,_primary,_updateAll=function(Fe){if(!_refreshingAll||Fe===2){ScrollTrigger$1.isUpdating=!0,_primary&&_primary.update(0);var $r=_triggers.length,Fr=_getTime(),jr=Fr-_time1>=50,zr=$r&&_triggers[0].scroll();if(_direction=_lastScroll>zr?-1:1,_refreshingAll||(_lastScroll=zr),jr&&(_lastScrollTime&&!_pointerIsDown&&Fr-_lastScrollTime>200&&(_lastScrollTime=0,_dispatch("scrollEnd")),_time2=_time1,_time1=Fr),_direction<0){for(_i=$r;_i-- >0;)_triggers[_i]&&_triggers[_i].update(0,jr);_direction=1}else for(_i=0;_i<$r;_i++)_triggers[_i]&&_triggers[_i].update(0,jr);ScrollTrigger$1.isUpdating=!1}_rafID=0},_propNamesToCopy=[_left,_top,_bottom,_right,_margin+_Bottom,_margin+_Right,_margin+_Top,_margin+_Left,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],_stateProps=_propNamesToCopy.concat([_width,_height,"boxSizing","max"+_Width,"max"+_Height,"position",_margin,_padding,_padding+_Top,_padding+_Right,_padding+_Bottom,_padding+_Left]),_swapPinOut=function(Fe,$r,Fr){_setState(Fr);var jr=Fe._gsap;if(jr.spacerIsNative)_setState(jr.spacerState);else if(Fe._gsap.swappedIn){var zr=$r.parentNode;zr&&(zr.insertBefore(Fe,$r),zr.removeChild($r))}Fe._gsap.swappedIn=!1},_swapPinIn=function(Fe,$r,Fr,jr){if(!Fe._gsap.swappedIn){for(var zr=_propNamesToCopy.length,Vr=$r.style,Wr=Fe.style,Kr;zr--;)Kr=_propNamesToCopy[zr],Vr[Kr]=Fr[Kr];Vr.position=Fr.position==="absolute"?"absolute":"relative",Fr.display==="inline"&&(Vr.display="inline-block"),Wr[_bottom]=Wr[_right]="auto",Vr.flexBasis=Fr.flexBasis||"auto",Vr.overflow="visible",Vr.boxSizing="border-box",Vr[_width]=_getSize(Fe,_horizontal)+_px,Vr[_height]=_getSize(Fe,_vertical)+_px,Vr[_padding]=Wr[_margin]=Wr[_top]=Wr[_left]="0",_setState(jr),Wr[_width]=Wr["max"+_Width]=Fr[_width],Wr[_height]=Wr["max"+_Height]=Fr[_height],Wr[_padding]=Fr[_padding],Fe.parentNode!==$r&&(Fe.parentNode.insertBefore($r,Fe),$r.appendChild(Fe)),Fe._gsap.swappedIn=!0}},_capsExp=/([A-Z])/g,_setState=function(Fe){if(Fe){var $r=Fe.t.style,Fr=Fe.length,jr=0,zr,Vr;for((Fe.t._gsap||gsap$1.core.getCache(Fe.t)).uncache=1;jr<Fr;jr+=2)Vr=Fe[jr+1],zr=Fe[jr],Vr?$r[zr]=Vr:$r[zr]&&$r.removeProperty(zr.replace(_capsExp,"-$1").toLowerCase())}},_getState=function(Fe){for(var $r=_stateProps.length,Fr=Fe.style,jr=[],zr=0;zr<$r;zr++)jr.push(_stateProps[zr],Fr[_stateProps[zr]]);return jr.t=Fe,jr},_copyState=function(Fe,$r,Fr){for(var jr=[],zr=Fe.length,Vr=Fr?8:0,Wr;Vr<zr;Vr+=2)Wr=Fe[Vr],jr.push(Wr,Wr in $r?$r[Wr]:Fe[Vr+1]);return jr.t=Fe.t,jr},_winOffsets={left:0,top:0},_parsePosition=function(Fe,$r,Fr,jr,zr,Vr,Wr,Kr,Gr,Yr,Qr,Jr,Zr,tn){_isFunction$1(Fe)&&(Fe=Fe(Kr)),_isString$1(Fe)&&Fe.substr(0,3)==="max"&&(Fe=Jr+(Fe.charAt(4)==="="?_offsetToPx("0"+Fe.substr(3),Fr):0));var en=Zr?Zr.time():0,rn,nn,on;if(Zr&&Zr.seek(0),isNaN(Fe)||(Fe=+Fe),_isNumber(Fe))Zr&&(Fe=gsap$1.utils.mapRange(Zr.scrollTrigger.start,Zr.scrollTrigger.end,0,Jr,Fe)),Wr&&_positionMarker(Wr,Fr,jr,!0);else{_isFunction$1($r)&&($r=$r(Kr));var un=(Fe||"0").split(" "),an,sn,dn,ln;on=_getTarget($r,Kr)||_body$1,an=_getBounds(on)||{},(!an||!an.left&&!an.top)&&_getComputedStyle(on).display==="none"&&(ln=on.style.display,on.style.display="block",an=_getBounds(on),ln?on.style.display=ln:on.style.removeProperty("display")),sn=_offsetToPx(un[0],an[jr.d]),dn=_offsetToPx(un[1]||"0",Fr),Fe=an[jr.p]-Gr[jr.p]-Yr+sn+zr-dn,Wr&&_positionMarker(Wr,dn,jr,Fr-dn<20||Wr._isStart&&dn>20),Fr-=Fr-dn}if(tn&&(Kr[tn]=Fe||-.001,Fe<0&&(Fe=0)),Vr){var cn=Fe+Fr,fn=Vr._isStart;rn="scroll"+jr.d2,_positionMarker(Vr,cn,jr,fn&&cn>20||!fn&&(Qr?Math.max(_body$1[rn],_docEl$1[rn]):Vr.parentNode[rn])<=cn+1),Qr&&(Gr=_getBounds(Wr),Qr&&(Vr.style[jr.op.p]=Gr[jr.op.p]-jr.op.m-Vr._offset+_px))}return Zr&&on&&(rn=_getBounds(on),Zr.seek(Jr),nn=_getBounds(on),Zr._caScrollDist=rn[jr.p]-nn[jr.p],Fe=Fe/Zr._caScrollDist*Jr),Zr&&Zr.seek(en),Zr?Fe:Math.round(Fe)},_prefixExp=/(webkit|moz|length|cssText|inset)/i,_reparent=function(Fe,$r,Fr,jr){if(Fe.parentNode!==$r){var zr=Fe.style,Vr,Wr;if($r===_body$1){Fe._stOrig=zr.cssText,Wr=_getComputedStyle(Fe);for(Vr in Wr)!+Vr&&!_prefixExp.test(Vr)&&Wr[Vr]&&typeof zr[Vr]=="string"&&Vr!=="0"&&(zr[Vr]=Wr[Vr]);zr.top=Fr,zr.left=jr}else zr.cssText=Fe._stOrig;gsap$1.core.getCache(Fe).uncache=1,$r.appendChild(Fe)}},_interruptionTracker=function(Fe,$r,Fr){var jr=$r,zr=jr;return function(Vr){var Wr=Math.round(Fe());return Wr!==jr&&Wr!==zr&&Math.abs(Wr-jr)>3&&Math.abs(Wr-zr)>3&&(Vr=Wr,Fr&&Fr()),zr=jr,jr=Vr,Vr}},_shiftMarker=function(Fe,$r,Fr){var jr={};jr[$r.p]="+="+Fr,gsap$1.set(Fe,jr)},_getTweenCreator=function(Fe,$r){var Fr=_getScrollFunc(Fe,$r),jr="_scroll"+$r.p2,zr=function Vr(Wr,Kr,Gr,Yr,Qr){var Jr=Vr.tween,Zr=Kr.onComplete,tn={};Gr=Gr||Fr();var en=_interruptionTracker(Fr,Gr,function(){Jr.kill(),Vr.tween=0});return Qr=Yr&&Qr||0,Yr=Yr||Wr-Gr,Jr&&Jr.kill(),Kr[jr]=Wr,Kr.modifiers=tn,tn[jr]=function(){return en(Gr+Yr*Jr.ratio+Qr*Jr.ratio*Jr.ratio)},Kr.onUpdate=function(){_scrollers.cache++,_updateAll()},Kr.onComplete=function(){Vr.tween=0,Zr&&Zr.call(Jr)},Jr=Vr.tween=gsap$1.to(Fe,Kr),Jr};return Fe[jr]=Fr,Fr.wheelHandler=function(){return zr.tween&&zr.tween.kill()&&(zr.tween=0)},_addListener(Fe,"wheel",Fr.wheelHandler),ScrollTrigger$1.isTouch&&_addListener(Fe,"touchmove",Fr.wheelHandler),zr},ScrollTrigger$1=function(){function _r($r,Fr){_coreInitted$1||_r.register(gsap$1)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),_context(this),this.init($r,Fr)}var Fe=_r.prototype;return Fe.init=function(Fr,jr){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!_enabled){this.update=this.refresh=this.kill=_passThrough;return}Fr=_setDefaults(_isString$1(Fr)||_isNumber(Fr)||Fr.nodeType?{trigger:Fr}:Fr,_defaults);var zr=Fr,Vr=zr.onUpdate,Wr=zr.toggleClass,Kr=zr.id,Gr=zr.onToggle,Yr=zr.onRefresh,Qr=zr.scrub,Jr=zr.trigger,Zr=zr.pin,tn=zr.pinSpacing,en=zr.invalidateOnRefresh,rn=zr.anticipatePin,nn=zr.onScrubComplete,on=zr.onSnapComplete,un=zr.once,an=zr.snap,sn=zr.pinReparent,dn=zr.pinSpacer,ln=zr.containerAnimation,cn=zr.fastScrollEnd,fn=zr.preventOverlaps,pn=Fr.horizontal||Fr.containerAnimation&&Fr.horizontal!==!1?_horizontal:_vertical,hn=!Qr&&Qr!==0,mn=_getTarget(Fr.scroller||_win),Sn=gsap$1.core.getCache(mn),vn=_isViewport(mn),bn=("pinType"in Fr?Fr.pinType:_getProxyProp(mn,"pinType")||vn&&"fixed")==="fixed",_n=[Fr.onEnter,Fr.onLeave,Fr.onEnterBack,Fr.onLeaveBack],$n=hn&&Fr.toggleActions.split(" "),yn="markers"in Fr?Fr.markers:_defaults.markers,wn=vn?0:parseFloat(_getComputedStyle(mn)["border"+pn.p2+_Width])||0,gn=this,Pn=Fr.onRefreshInit&&function(){return Fr.onRefreshInit(gn)},Tn=_getSizeFunc(mn,vn,pn),An=_getOffsetsFunc(mn,vn),Dn=0,Mn=0,Ln=0,On=_getScrollFunc(mn,pn),qn,Qn,di,fi,En,xn,kn,Rn,Nn,Cn,Bn,Fn,jn,In,Un,Vn,Gn,Wn,Kn,ni,Xn,hi,gi,bi,zn,Yn,oi,ii,si,pi,Pi,ti,Ri,Si,Ei,Ti,xi,Ui,Vi;if(gn._startClamp=gn._endClamp=!1,gn._dir=pn,rn*=45,gn.scroller=mn,gn.scroll=ln?ln.time.bind(ln):On,fi=On(),gn.vars=Fr,jr=jr||Fr.animation,"refreshPriority"in Fr&&(_sort=1,Fr.refreshPriority===-9999&&(_primary=gn)),Sn.tweenScroll=Sn.tweenScroll||{top:_getTweenCreator(mn,_vertical),left:_getTweenCreator(mn,_horizontal)},gn.tweenTo=qn=Sn.tweenScroll[pn.p],gn.scrubDuration=function(Hn){Ri=_isNumber(Hn)&&Hn,Ri?ti?ti.duration(Hn):ti=gsap$1.to(jr,{ease:"expo",totalProgress:"+=0",duration:Ri,paused:!0,onComplete:function(){return nn&&nn(gn)}}):(ti&&ti.progress(1).kill(),ti=0)},jr&&(jr.vars.lazy=!1,jr._initted&&!gn.isReverted||jr.vars.immediateRender!==!1&&Fr.immediateRender!==!1&&jr.duration()&&jr.render(0,!0,!0),gn.animation=jr.pause(),jr.scrollTrigger=gn,gn.scrubDuration(Qr),pi=0,Kr||(Kr=jr.vars.id)),an&&((!_isObject(an)||an.push)&&(an={snapTo:an}),"scrollBehavior"in _body$1.style&&gsap$1.set(vn?[_body$1,_docEl$1]:mn,{scrollBehavior:"auto"}),_scrollers.forEach(function(Hn){return _isFunction$1(Hn)&&Hn.target===(vn?_doc.scrollingElement||_docEl$1:mn)&&(Hn.smooth=!1)}),di=_isFunction$1(an.snapTo)?an.snapTo:an.snapTo==="labels"?_getClosestLabel(jr):an.snapTo==="labelsDirectional"?_getLabelAtDirection(jr):an.directional!==!1?function(Hn,li){return _snapDirectional(an.snapTo)(Hn,_getTime()-Mn<500?0:li.direction)}:gsap$1.utils.snap(an.snapTo),Si=an.duration||{min:.1,max:2},Si=_isObject(Si)?_clamp(Si.min,Si.max):_clamp(Si,Si),Ei=gsap$1.delayedCall(an.delay||Ri/2||.1,function(){var Hn=On(),li=_getTime()-Mn<500,Zn=qn.tween;if((li||Math.abs(gn.getVelocity())<10)&&!Zn&&!_pointerIsDown&&Dn!==Hn){var ai=(Hn-xn)/In,ki=jr&&!hn?jr.totalProgress():ai,ci=li?0:(ki-Pi)/(_getTime()-_time2)*1e3||0,wi=gsap$1.utils.clamp(-ai,1-ai,_abs(ci/2)*ci/.185),Mi=ai+(an.inertia===!1?0:wi),Ai=_clamp(0,1,di(Mi,gn)),yi=Math.round(xn+Ai*In),mi=an,Li=mi.onStart,vi=mi.onInterrupt,Di=mi.onComplete;if(Hn<=kn&&Hn>=xn&&yi!==Hn){if(Zn&&!Zn._initted&&Zn.data<=_abs(yi-Hn))return;an.inertia===!1&&(wi=Ai-ai),qn(yi,{duration:Si(_abs(Math.max(_abs(Mi-ki),_abs(Ai-ki))*.185/ci/.05||0)),ease:an.ease||"power3",data:_abs(yi-Hn),onInterrupt:function(){return Ei.restart(!0)&&vi&&vi(gn)},onComplete:function(){gn.update(),Dn=On(),pi=Pi=jr&&!hn?jr.totalProgress():gn.progress,on&&on(gn),Di&&Di(gn)}},Hn,wi*In,yi-Hn-wi*In),Li&&Li(gn,qn.tween)}}else gn.isActive&&Dn!==Hn&&Ei.restart(!0)}).pause()),Kr&&(_ids[Kr]=gn),Jr=gn.trigger=_getTarget(Jr||Zr!==!0&&Zr),Vi=Jr&&Jr._gsap&&Jr._gsap.stRevert,Vi&&(Vi=Vi(gn)),Zr=Zr===!0?Jr:_getTarget(Zr),_isString$1(Wr)&&(Wr={targets:Jr,className:Wr}),Zr&&(tn===!1||tn===_margin||(tn=!tn&&Zr.parentNode&&Zr.parentNode.style&&_getComputedStyle(Zr.parentNode).display==="flex"?!1:_padding),gn.pin=Zr,Qn=gsap$1.core.getCache(Zr),Qn.spacer?Un=Qn.pinState:(dn&&(dn=_getTarget(dn),dn&&!dn.nodeType&&(dn=dn.current||dn.nativeElement),Qn.spacerIsNative=!!dn,dn&&(Qn.spacerState=_getState(dn))),Qn.spacer=Wn=dn||_doc.createElement("div"),Wn.classList.add("pin-spacer"),Kr&&Wn.classList.add("pin-spacer-"+Kr),Qn.pinState=Un=_getState(Zr)),Fr.force3D!==!1&&gsap$1.set(Zr,{force3D:!0}),gn.spacer=Wn=Qn.spacer,si=_getComputedStyle(Zr),bi=si[tn+pn.os2],ni=gsap$1.getProperty(Zr),Xn=gsap$1.quickSetter(Zr,pn.a,_px),_swapPinIn(Zr,Wn,si),Gn=_getState(Zr)),yn){Fn=_isObject(yn)?_setDefaults(yn,_markerDefaults):_markerDefaults,Cn=_createMarker("scroller-start",Kr,mn,pn,Fn,0),Bn=_createMarker("scroller-end",Kr,mn,pn,Fn,0,Cn),Kn=Cn["offset"+pn.op.d2];var ri=_getTarget(_getProxyProp(mn,"content")||mn);Rn=this.markerStart=_createMarker("start",Kr,ri,pn,Fn,Kn,0,ln),Nn=this.markerEnd=_createMarker("end",Kr,ri,pn,Fn,Kn,0,ln),ln&&(Ui=gsap$1.quickSetter([Rn,Nn],pn.a,_px)),!bn&&!(_proxies.length&&_getProxyProp(mn,"fixedMarkers")===!0)&&(_makePositionable(vn?_body$1:mn),gsap$1.set([Cn,Bn],{force3D:!0}),Yn=gsap$1.quickSetter(Cn,pn.a,_px),ii=gsap$1.quickSetter(Bn,pn.a,_px))}if(ln){var Jn=ln.vars.onUpdate,ui=ln.vars.onUpdateParams;ln.eventCallback("onUpdate",function(){gn.update(0,0,1),Jn&&Jn.apply(ln,ui||[])})}if(gn.previous=function(){return _triggers[_triggers.indexOf(gn)-1]},gn.next=function(){return _triggers[_triggers.indexOf(gn)+1]},gn.revert=function(Hn,li){if(!li)return gn.kill(!0);var Zn=Hn!==!1||!gn.enabled,ai=_refreshing;Zn!==gn.isReverted&&(Zn&&(Ti=Math.max(On(),gn.scroll.rec||0),Ln=gn.progress,xi=jr&&jr.progress()),Rn&&[Rn,Nn,Cn,Bn].forEach(function(ki){return ki.style.display=Zn?"none":"block"}),Zn&&(_refreshing=gn,gn.update(Zn)),Zr&&(!sn||!gn.isActive)&&(Zn?_swapPinOut(Zr,Wn,Un):_swapPinIn(Zr,Wn,_getComputedStyle(Zr),zn)),Zn||gn.update(Zn),_refreshing=ai,gn.isReverted=Zn)},gn.refresh=function(Hn,li,Zn,ai){if(!((_refreshing||!gn.enabled)&&!li)){if(Zr&&Hn&&_lastScrollTime){_addListener(_r,"scrollEnd",_softRefresh);return}!_refreshingAll&&Pn&&Pn(gn),_refreshing=gn,qn.tween&&(qn.tween.kill(),qn.tween=0),ti&&ti.pause(),en&&jr&&jr.revert({kill:!1}).invalidate(),gn.isReverted||gn.revert(!0,!0),gn._subPinOffset=!1;var ki=Tn(),ci=An(),wi=ln?ln.duration():_maxScroll(mn,pn),Mi=In<=.01,Ai=0,yi=ai||0,mi=_isObject(Zn)?Zn.end:Fr.end,Li=Fr.endTrigger||Jr,vi=_isObject(Zn)?Zn.start:Fr.start||(Fr.start===0||!Jr?0:Zr?"0 0":"0 100%"),Di=gn.pinnedContainer=Fr.pinnedContainer&&_getTarget(Fr.pinnedContainer,gn),Bi=Jr&&Math.max(0,_triggers.indexOf(gn))||0,Fi=Bi,Oi,Ii,Hi,Ki,Ni,Ci,ji,Qi,Ji,Wi,zi,Gi,Yi;for(yn&&_isObject(Zn)&&(Gi=gsap$1.getProperty(Cn,pn.p),Yi=gsap$1.getProperty(Bn,pn.p));Fi--;)Ci=_triggers[Fi],Ci.end||Ci.refresh(0,1)||(_refreshing=gn),ji=Ci.pin,ji&&(ji===Jr||ji===Zr||ji===Di)&&!Ci.isReverted&&(Wi||(Wi=[]),Wi.unshift(Ci),Ci.revert(!0,!0)),Ci!==_triggers[Fi]&&(Bi--,Fi--);for(_isFunction$1(vi)&&(vi=vi(gn)),vi=_parseClamp(vi,"start",gn),xn=_parsePosition(vi,Jr,ki,pn,On(),Rn,Cn,gn,ci,wn,bn,wi,ln,gn._startClamp&&"_startClamp")||(Zr?-.001:0),_isFunction$1(mi)&&(mi=mi(gn)),_isString$1(mi)&&!mi.indexOf("+=")&&(~mi.indexOf(" ")?mi=(_isString$1(vi)?vi.split(" ")[0]:"")+mi:(Ai=_offsetToPx(mi.substr(2),ki),mi=_isString$1(vi)?vi:(ln?gsap$1.utils.mapRange(0,ln.duration(),ln.scrollTrigger.start,ln.scrollTrigger.end,xn):xn)+Ai,Li=Jr)),mi=_parseClamp(mi,"end",gn),kn=Math.max(xn,_parsePosition(mi||(Li?"100% 0":wi),Li,ki,pn,On()+Ai,Nn,Bn,gn,ci,wn,bn,wi,ln,gn._endClamp&&"_endClamp"))||-.001,Ai=0,Fi=Bi;Fi--;)Ci=_triggers[Fi],ji=Ci.pin,ji&&Ci.start-Ci._pinPush<=xn&&!ln&&Ci.end>0&&(Oi=Ci.end-(gn._startClamp?Math.max(0,Ci.start):Ci.start),(ji===Jr&&Ci.start-Ci._pinPush<xn||ji===Di)&&isNaN(vi)&&(Ai+=Oi*(1-Ci.progress)),ji===Zr&&(yi+=Oi));if(xn+=Ai,kn+=Ai,gn._startClamp&&(gn._startClamp+=Ai),gn._endClamp&&!_refreshingAll&&(gn._endClamp=kn||-.001,kn=Math.min(kn,_maxScroll(mn,pn))),In=kn-xn||(xn-=.01)&&.001,Mi&&(Ln=gsap$1.utils.clamp(0,1,gsap$1.utils.normalize(xn,kn,Ti))),gn._pinPush=yi,Rn&&Ai&&(Oi={},Oi[pn.a]="+="+Ai,Di&&(Oi[pn.p]="-="+On()),gsap$1.set([Rn,Nn],Oi)),Zr)Oi=_getComputedStyle(Zr),Ki=pn===_vertical,Hi=On(),hi=parseFloat(ni(pn.a))+yi,!wi&&kn>1&&(zi=(vn?_doc.scrollingElement||_docEl$1:mn).style,zi={style:zi,value:zi["overflow"+pn.a.toUpperCase()]},vn&&_getComputedStyle(_body$1)["overflow"+pn.a.toUpperCase()]!=="scroll"&&(zi.style["overflow"+pn.a.toUpperCase()]="scroll")),_swapPinIn(Zr,Wn,Oi),Gn=_getState(Zr),Ii=_getBounds(Zr,!0),Qi=bn&&_getScrollFunc(mn,Ki?_horizontal:_vertical)(),tn&&(zn=[tn+pn.os2,In+yi+_px],zn.t=Wn,Fi=tn===_padding?_getSize(Zr,pn)+In+yi:0,Fi&&zn.push(pn.d,Fi+_px),_setState(zn),Di&&_triggers.forEach(function(qi){qi.pin===Di&&qi.vars.pinSpacing!==!1&&(qi._subPinOffset=!0)}),bn&&On(Ti)),bn&&(Ni={top:Ii.top+(Ki?Hi-xn:Qi)+_px,left:Ii.left+(Ki?Qi:Hi-xn)+_px,boxSizing:"border-box",position:"fixed"},Ni[_width]=Ni["max"+_Width]=Math.ceil(Ii.width)+_px,Ni[_height]=Ni["max"+_Height]=Math.ceil(Ii.height)+_px,Ni[_margin]=Ni[_margin+_Top]=Ni[_margin+_Right]=Ni[_margin+_Bottom]=Ni[_margin+_Left]="0",Ni[_padding]=Oi[_padding],Ni[_padding+_Top]=Oi[_padding+_Top],Ni[_padding+_Right]=Oi[_padding+_Right],Ni[_padding+_Bottom]=Oi[_padding+_Bottom],Ni[_padding+_Left]=Oi[_padding+_Left],Vn=_copyState(Un,Ni,sn),_refreshingAll&&On(0)),jr?(Ji=jr._initted,_suppressOverwrites(1),jr.render(jr.duration(),!0,!0),gi=ni(pn.a)-hi+In+yi,oi=Math.abs(In-gi)>1,bn&&oi&&Vn.splice(Vn.length-2,2),jr.render(0,!0,!0),Ji||jr.invalidate(!0),jr.parent||jr.totalTime(jr.totalTime()),_suppressOverwrites(0)):gi=In,zi&&(zi.value?zi.style["overflow"+pn.a.toUpperCase()]=zi.value:zi.style.removeProperty("overflow-"+pn.a));else if(Jr&&On()&&!ln)for(Ii=Jr.parentNode;Ii&&Ii!==_body$1;)Ii._pinOffset&&(xn-=Ii._pinOffset,kn-=Ii._pinOffset),Ii=Ii.parentNode;Wi&&Wi.forEach(function(qi){return qi.revert(!1,!0)}),gn.start=xn,gn.end=kn,fi=En=_refreshingAll?Ti:On(),!ln&&!_refreshingAll&&(fi<Ti&&On(Ti),gn.scroll.rec=0),gn.revert(!1,!0),Mn=_getTime(),Ei&&(Dn=-1,gn.isActive&&On(xn+In*Ln),Ei.restart(!0)),_refreshing=0,jr&&hn&&(jr._initted||xi)&&jr.progress()!==xi&&jr.progress(xi||0,!0).render(jr.time(),!0,!0),(Mi||Ln!==gn.progress||ln)&&(jr&&!hn&&jr.totalProgress(ln&&xn<-.001&&!Ln?gsap$1.utils.normalize(xn,kn,0):Ln,!0),gn.progress=Mi||(fi-xn)/In===Ln?0:Ln),Zr&&tn&&(Wn._pinOffset=Math.round(gn.progress*gi)),ti&&ti.invalidate(),isNaN(Gi)||(Gi-=gsap$1.getProperty(Cn,pn.p),Yi-=gsap$1.getProperty(Bn,pn.p),_shiftMarker(Cn,pn,Gi),_shiftMarker(Rn,pn,Gi-(ai||0)),_shiftMarker(Bn,pn,Yi),_shiftMarker(Nn,pn,Yi-(ai||0))),Mi&&!_refreshingAll&&gn.update(),Yr&&!_refreshingAll&&!jn&&(jn=!0,Yr(gn),jn=!1)}},gn.getVelocity=function(){return(On()-En)/(_getTime()-_time2)*1e3||0},gn.endAnimation=function(){_endAnimation(gn.callbackAnimation),jr&&(ti?ti.progress(1):jr.paused()?hn||_endAnimation(jr,gn.direction<0,1):_endAnimation(jr,jr.reversed()))},gn.labelToScroll=function(Hn){return jr&&jr.labels&&(xn||gn.refresh()||xn)+jr.labels[Hn]/jr.duration()*In||0},gn.getTrailing=function(Hn){var li=_triggers.indexOf(gn),Zn=gn.direction>0?_triggers.slice(0,li).reverse():_triggers.slice(li+1);return(_isString$1(Hn)?Zn.filter(function(ai){return ai.vars.preventOverlaps===Hn}):Zn).filter(function(ai){return gn.direction>0?ai.end<=xn:ai.start>=kn})},gn.update=function(Hn,li,Zn){if(!(ln&&!Zn&&!Hn)){var ai=_refreshingAll===!0?Ti:gn.scroll(),ki=Hn?0:(ai-xn)/In,ci=ki<0?0:ki>1?1:ki||0,wi=gn.progress,Mi,Ai,yi,mi,Li,vi,Di,Bi;if(li&&(En=fi,fi=ln?On():ai,an&&(Pi=pi,pi=jr&&!hn?jr.totalProgress():ci)),rn&&!ci&&Zr&&!_refreshing&&!_startup&&_lastScrollTime&&xn<ai+(ai-En)/(_getTime()-_time2)*rn&&(ci=1e-4),ci!==wi&&gn.enabled){if(Mi=gn.isActive=!!ci&&ci<1,Ai=!!wi&&wi<1,vi=Mi!==Ai,Li=vi||!!ci!=!!wi,gn.direction=ci>wi?1:-1,gn.progress=ci,Li&&!_refreshing&&(yi=ci&&!wi?0:ci===1?1:wi===1?2:3,hn&&(mi=!vi&&$n[yi+1]!=="none"&&$n[yi+1]||$n[yi],Bi=jr&&(mi==="complete"||mi==="reset"||mi in jr))),fn&&(vi||Bi)&&(Bi||Qr||!jr)&&(_isFunction$1(fn)?fn(gn):gn.getTrailing(fn).forEach(function(Hi){return Hi.endAnimation()})),hn||(ti&&!_refreshing&&!_startup?(ti._dp._time-ti._start!==ti._time&&ti.render(ti._dp._time-ti._start),ti.resetTo?ti.resetTo("totalProgress",ci,jr._tTime/jr._tDur):(ti.vars.totalProgress=ci,ti.invalidate().restart())):jr&&jr.totalProgress(ci,!!(_refreshing&&(Mn||Hn)))),Zr){if(Hn&&tn&&(Wn.style[tn+pn.os2]=bi),!bn)Xn(_round(hi+gi*ci));else if(Li){if(Di=!Hn&&ci>wi&&kn+1>ai&&ai+1>=_maxScroll(mn,pn),sn)if(!Hn&&(Mi||Di)){var Fi=_getBounds(Zr,!0),Oi=ai-xn;_reparent(Zr,_body$1,Fi.top+(pn===_vertical?Oi:0)+_px,Fi.left+(pn===_vertical?0:Oi)+_px)}else _reparent(Zr,Wn);_setState(Mi||Di?Vn:Gn),oi&&ci<1&&Mi||Xn(hi+(ci===1&&!Di?gi:0))}}an&&!qn.tween&&!_refreshing&&!_startup&&Ei.restart(!0),Wr&&(vi||un&&ci&&(ci<1||!_limitCallbacks))&&_toArray$1(Wr.targets).forEach(function(Hi){return Hi.classList[Mi||un?"add":"remove"](Wr.className)}),Vr&&!hn&&!Hn&&Vr(gn),Li&&!_refreshing?(hn&&(Bi&&(mi==="complete"?jr.pause().totalProgress(1):mi==="reset"?jr.restart(!0).pause():mi==="restart"?jr.restart(!0):jr[mi]()),Vr&&Vr(gn)),(vi||!_limitCallbacks)&&(Gr&&vi&&_callback(gn,Gr),_n[yi]&&_callback(gn,_n[yi]),un&&(ci===1?gn.kill(!1,1):_n[yi]=0),vi||(yi=ci===1?1:3,_n[yi]&&_callback(gn,_n[yi]))),cn&&!Mi&&Math.abs(gn.getVelocity())>(_isNumber(cn)?cn:2500)&&(_endAnimation(gn.callbackAnimation),ti?ti.progress(1):_endAnimation(jr,mi==="reverse"?1:!ci,1))):hn&&Vr&&!_refreshing&&Vr(gn)}if(ii){var Ii=ln?ai/ln.duration()*(ln._caScrollDist||0):ai;Yn(Ii+(Cn._isFlipped?1:0)),ii(Ii)}Ui&&Ui(-ai/ln.duration()*(ln._caScrollDist||0))}},gn.enable=function(Hn,li){gn.enabled||(gn.enabled=!0,_addListener(mn,"resize",_onResize),_addListener(vn?_doc:mn,"scroll",_onScroll),Pn&&_addListener(_r,"refreshInit",Pn),Hn!==!1&&(gn.progress=Ln=0,fi=En=Dn=On()),li!==!1&&gn.refresh())},gn.getTween=function(Hn){return Hn&&qn?qn.tween:ti},gn.setPositions=function(Hn,li,Zn,ai){if(ln){var ki=ln.scrollTrigger,ci=ln.duration(),wi=ki.end-ki.start;Hn=ki.start+wi*Hn/ci,li=ki.start+wi*li/ci}gn.refresh(!1,!1,{start:_keepClamp(Hn,Zn&&!!gn._startClamp),end:_keepClamp(li,Zn&&!!gn._endClamp)},ai),gn.update()},gn.adjustPinSpacing=function(Hn){if(zn&&Hn){var li=zn.indexOf(pn.d)+1;zn[li]=parseFloat(zn[li])+Hn+_px,zn[1]=parseFloat(zn[1])+Hn+_px,_setState(zn)}},gn.disable=function(Hn,li){if(gn.enabled&&(Hn!==!1&&gn.revert(!0,!0),gn.enabled=gn.isActive=!1,li||ti&&ti.pause(),Ti=0,Qn&&(Qn.uncache=1),Pn&&_removeListener(_r,"refreshInit",Pn),Ei&&(Ei.pause(),qn.tween&&qn.tween.kill()&&(qn.tween=0)),!vn)){for(var Zn=_triggers.length;Zn--;)if(_triggers[Zn].scroller===mn&&_triggers[Zn]!==gn)return;_removeListener(mn,"resize",_onResize),_removeListener(mn,"scroll",_onScroll)}},gn.kill=function(Hn,li){gn.disable(Hn,li),ti&&!li&&ti.kill(),Kr&&delete _ids[Kr];var Zn=_triggers.indexOf(gn);Zn>=0&&_triggers.splice(Zn,1),Zn===_i&&_direction>0&&_i--,Zn=0,_triggers.forEach(function(ai){return ai.scroller===gn.scroller&&(Zn=1)}),Zn||_refreshingAll||(gn.scroll.rec=0),jr&&(jr.scrollTrigger=null,Hn&&jr.revert({kill:!1}),li||jr.kill()),Rn&&[Rn,Nn,Cn,Bn].forEach(function(ai){return ai.parentNode&&ai.parentNode.removeChild(ai)}),_primary===gn&&(_primary=0),Zr&&(Qn&&(Qn.uncache=1),Zn=0,_triggers.forEach(function(ai){return ai.pin===Zr&&Zn++}),Zn||(Qn.spacer=0)),Fr.onKill&&Fr.onKill(gn)},_triggers.push(gn),gn.enable(!1,!1),Vi&&Vi(gn),jr&&jr.add&&!In){var $i=gn.update;gn.update=function(){gn.update=$i,xn||kn||gn.refresh()},gsap$1.delayedCall(.01,gn.update),In=.01,xn=kn=0}else gn.refresh();Zr&&_queueRefreshAll()},_r.register=function(Fr){return _coreInitted$1||(gsap$1=Fr||_getGSAP$1(),_windowExists$1()&&window.document&&_r.enable(),_coreInitted$1=_enabled),_coreInitted$1},_r.defaults=function(Fr){if(Fr)for(var jr in Fr)_defaults[jr]=Fr[jr];return _defaults},_r.disable=function(Fr,jr){_enabled=0,_triggers.forEach(function(Vr){return Vr[jr?"kill":"disable"](Fr)}),_removeListener(_win,"wheel",_onScroll),_removeListener(_doc,"scroll",_onScroll),clearInterval(_syncInterval),_removeListener(_doc,"touchcancel",_passThrough),_removeListener(_body$1,"touchstart",_passThrough),_multiListener(_removeListener,_doc,"pointerdown,touchstart,mousedown",_pointerDownHandler),_multiListener(_removeListener,_doc,"pointerup,touchend,mouseup",_pointerUpHandler),_resizeDelay.kill(),_iterateAutoRefresh(_removeListener);for(var zr=0;zr<_scrollers.length;zr+=3)_wheelListener(_removeListener,_scrollers[zr],_scrollers[zr+1]),_wheelListener(_removeListener,_scrollers[zr],_scrollers[zr+2])},_r.enable=function(){if(_win=window,_doc=document,_docEl$1=_doc.documentElement,_body$1=_doc.body,gsap$1&&(_toArray$1=gsap$1.utils.toArray,_clamp=gsap$1.utils.clamp,_context=gsap$1.core.context||_passThrough,_suppressOverwrites=gsap$1.core.suppressOverwrites||_passThrough,_scrollRestoration=_win.history.scrollRestoration||"auto",_lastScroll=_win.pageYOffset,gsap$1.core.globals("ScrollTrigger",_r),_body$1)){_enabled=1,_rafBugFix(),Observer.register(gsap$1),_r.isTouch=Observer.isTouch,_fixIOSBug=Observer.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),_addListener(_win,"wheel",_onScroll),_root=[_win,_doc,_docEl$1,_body$1],gsap$1.matchMedia?(_r.matchMedia=function(Kr){var Gr=gsap$1.matchMedia(),Yr;for(Yr in Kr)Gr.add(Yr,Kr[Yr]);return Gr},gsap$1.addEventListener("matchMediaInit",function(){return _revertAll()}),gsap$1.addEventListener("matchMediaRevert",function(){return _revertRecorded()}),gsap$1.addEventListener("matchMedia",function(){_refreshAll(0,1),_dispatch("matchMedia")}),gsap$1.matchMedia("(orientation: portrait)",function(){return _setBaseDimensions(),_setBaseDimensions})):console.warn("Requires GSAP 3.11.0 or later"),_setBaseDimensions(),_addListener(_doc,"scroll",_onScroll);var Fr=_body$1.style,jr=Fr.borderTopStyle,zr=gsap$1.core.Animation.prototype,Vr,Wr;for(zr.revert||Object.defineProperty(zr,"revert",{value:function(){return this.time(-.01,!0)}}),Fr.borderTopStyle="solid",Vr=_getBounds(_body$1),_vertical.m=Math.round(Vr.top+_vertical.sc())||0,_horizontal.m=Math.round(Vr.left+_horizontal.sc())||0,jr?Fr.borderTopStyle=jr:Fr.removeProperty("border-top-style"),_syncInterval=setInterval(_sync,250),gsap$1.delayedCall(.5,function(){return _startup=0}),_addListener(_doc,"touchcancel",_passThrough),_addListener(_body$1,"touchstart",_passThrough),_multiListener(_addListener,_doc,"pointerdown,touchstart,mousedown",_pointerDownHandler),_multiListener(_addListener,_doc,"pointerup,touchend,mouseup",_pointerUpHandler),_transformProp=gsap$1.utils.checkPrefix("transform"),_stateProps.push(_transformProp),_coreInitted$1=_getTime(),_resizeDelay=gsap$1.delayedCall(.2,_refreshAll).pause(),_autoRefresh=[_doc,"visibilitychange",function(){var Kr=_win.innerWidth,Gr=_win.innerHeight;_doc.hidden?(_prevWidth=Kr,_prevHeight=Gr):(_prevWidth!==Kr||_prevHeight!==Gr)&&_onResize()},_doc,"DOMContentLoaded",_refreshAll,_win,"load",_refreshAll,_win,"resize",_onResize],_iterateAutoRefresh(_addListener),_triggers.forEach(function(Kr){return Kr.enable(0,1)}),Wr=0;Wr<_scrollers.length;Wr+=3)_wheelListener(_removeListener,_scrollers[Wr],_scrollers[Wr+1]),_wheelListener(_removeListener,_scrollers[Wr],_scrollers[Wr+2])}},_r.config=function(Fr){"limitCallbacks"in Fr&&(_limitCallbacks=!!Fr.limitCallbacks);var jr=Fr.syncInterval;jr&&clearInterval(_syncInterval)||(_syncInterval=jr)&&setInterval(_sync,jr),"ignoreMobileResize"in Fr&&(_ignoreMobileResize=_r.isTouch===1&&Fr.ignoreMobileResize),"autoRefreshEvents"in Fr&&(_iterateAutoRefresh(_removeListener)||_iterateAutoRefresh(_addListener,Fr.autoRefreshEvents||"none"),_ignoreResize=(Fr.autoRefreshEvents+"").indexOf("resize")===-1)},_r.scrollerProxy=function(Fr,jr){var zr=_getTarget(Fr),Vr=_scrollers.indexOf(zr),Wr=_isViewport(zr);~Vr&&_scrollers.splice(Vr,Wr?6:2),jr&&(Wr?_proxies.unshift(_win,jr,_body$1,jr,_docEl$1,jr):_proxies.unshift(zr,jr))},_r.clearMatchMedia=function(Fr){_triggers.forEach(function(jr){return jr._ctx&&jr._ctx.query===Fr&&jr._ctx.kill(!0,!0)})},_r.isInViewport=function(Fr,jr,zr){var Vr=(_isString$1(Fr)?_getTarget(Fr):Fr).getBoundingClientRect(),Wr=Vr[zr?_width:_height]*jr||0;return zr?Vr.right-Wr>0&&Vr.left+Wr<_win.innerWidth:Vr.bottom-Wr>0&&Vr.top+Wr<_win.innerHeight},_r.positionInViewport=function(Fr,jr,zr){_isString$1(Fr)&&(Fr=_getTarget(Fr));var Vr=Fr.getBoundingClientRect(),Wr=Vr[zr?_width:_height],Kr=jr==null?Wr/2:jr in _keywords?_keywords[jr]*Wr:~jr.indexOf("%")?parseFloat(jr)*Wr/100:parseFloat(jr)||0;return zr?(Vr.left+Kr)/_win.innerWidth:(Vr.top+Kr)/_win.innerHeight},_r.killAll=function(Fr){if(_triggers.slice(0).forEach(function(zr){return zr.vars.id!=="ScrollSmoother"&&zr.kill()}),Fr!==!0){var jr=_listeners.killAll||[];_listeners={},jr.forEach(function(zr){return zr()})}},_r}();ScrollTrigger$1.version="3.12.1";ScrollTrigger$1.saveStyles=function(_r){return _r?_toArray$1(_r).forEach(function(Fe){if(Fe&&Fe.style){var $r=_savedStyles.indexOf(Fe);$r>=0&&_savedStyles.splice($r,5),_savedStyles.push(Fe,Fe.style.cssText,Fe.getBBox&&Fe.getAttribute("transform"),gsap$1.core.getCache(Fe),_context())}}):_savedStyles};ScrollTrigger$1.revert=function(_r,Fe){return _revertAll(!_r,Fe)};ScrollTrigger$1.create=function(_r,Fe){return new ScrollTrigger$1(_r,Fe)};ScrollTrigger$1.refresh=function(_r){return _r?_onResize():(_coreInitted$1||ScrollTrigger$1.register())&&_refreshAll(!0)};ScrollTrigger$1.update=function(_r){return++_scrollers.cache&&_updateAll(_r===!0?2:0)};ScrollTrigger$1.clearScrollMemory=_clearScrollMemory;ScrollTrigger$1.maxScroll=function(_r,Fe){return _maxScroll(_r,Fe?_horizontal:_vertical)};ScrollTrigger$1.getScrollFunc=function(_r,Fe){return _getScrollFunc(_getTarget(_r),Fe?_horizontal:_vertical)};ScrollTrigger$1.getById=function(_r){return _ids[_r]};ScrollTrigger$1.getAll=function(){return _triggers.filter(function(_r){return _r.vars.id!=="ScrollSmoother"})};ScrollTrigger$1.isScrolling=function(){return!!_lastScrollTime};ScrollTrigger$1.snapDirectional=_snapDirectional;ScrollTrigger$1.addEventListener=function(_r,Fe){var $r=_listeners[_r]||(_listeners[_r]=[]);~$r.indexOf(Fe)||$r.push(Fe)};ScrollTrigger$1.removeEventListener=function(_r,Fe){var $r=_listeners[_r],Fr=$r&&$r.indexOf(Fe);Fr>=0&&$r.splice(Fr,1)};ScrollTrigger$1.batch=function(_r,Fe){var $r=[],Fr={},jr=Fe.interval||.016,zr=Fe.batchMax||1e9,Vr=function(Gr,Yr){var Qr=[],Jr=[],Zr=gsap$1.delayedCall(jr,function(){Yr(Qr,Jr),Qr=[],Jr=[]}).pause();return function(tn){Qr.length||Zr.restart(!0),Qr.push(tn.trigger),Jr.push(tn),zr<=Qr.length&&Zr.progress(1)}},Wr;for(Wr in Fe)Fr[Wr]=Wr.substr(0,2)==="on"&&_isFunction$1(Fe[Wr])&&Wr!=="onRefreshInit"?Vr(Wr,Fe[Wr]):Fe[Wr];return _isFunction$1(zr)&&(zr=zr(),_addListener(ScrollTrigger$1,"refresh",function(){return zr=Fe.batchMax()})),_toArray$1(_r).forEach(function(Kr){var Gr={};for(Wr in Fr)Gr[Wr]=Fr[Wr];Gr.trigger=Kr,$r.push(ScrollTrigger$1.create(Gr))}),$r};var _clampScrollAndGetDurationMultiplier=function(Fe,$r,Fr,jr){return $r>jr?Fe(jr):$r<0&&Fe(0),Fr>jr?(jr-$r)/(Fr-$r):Fr<0?$r/($r-Fr):1},_allowNativePanning=function _r(Fe,$r){$r===!0?Fe.style.removeProperty("touch-action"):Fe.style.touchAction=$r===!0?"auto":$r?"pan-"+$r+(Observer.isTouch?" pinch-zoom":""):"none",Fe===_docEl$1&&_r(_body$1,$r)},_overflow={auto:1,scroll:1},_nestedScroll=function(Fe){var $r=Fe.event,Fr=Fe.target,jr=Fe.axis,zr=($r.changedTouches?$r.changedTouches[0]:$r).target,Vr=zr._gsap||gsap$1.core.getCache(zr),Wr=_getTime(),Kr;if(!Vr._isScrollT||Wr-Vr._isScrollT>2e3){for(;zr&&zr!==_body$1&&(zr.scrollHeight<=zr.clientHeight&&zr.scrollWidth<=zr.clientWidth||!(_overflow[(Kr=_getComputedStyle(zr)).overflowY]||_overflow[Kr.overflowX]));)zr=zr.parentNode;Vr._isScroll=zr&&zr!==Fr&&!_isViewport(zr)&&(_overflow[(Kr=_getComputedStyle(zr)).overflowY]||_overflow[Kr.overflowX]),Vr._isScrollT=Wr}(Vr._isScroll||jr==="x")&&($r.stopPropagation(),$r._gsapAllow=!0)},_inputObserver=function(Fe,$r,Fr,jr){return Observer.create({target:Fe,capture:!0,debounce:!1,lockAxis:!0,type:$r,onWheel:jr=jr&&_nestedScroll,onPress:jr,onDrag:jr,onScroll:jr,onEnable:function(){return Fr&&_addListener(_doc,Observer.eventTypes[0],_captureInputs,!1,!0)},onDisable:function(){return _removeListener(_doc,Observer.eventTypes[0],_captureInputs,!0)}})},_inputExp=/(input|label|select|textarea)/i,_inputIsFocused,_captureInputs=function(Fe){var $r=_inputExp.test(Fe.target.tagName);($r||_inputIsFocused)&&(Fe._gsapAllow=!0,_inputIsFocused=$r)},_getScrollNormalizer=function(Fe){_isObject(Fe)||(Fe={}),Fe.preventDefault=Fe.isNormalizer=Fe.allowClicks=!0,Fe.type||(Fe.type="wheel,touch"),Fe.debounce=!!Fe.debounce,Fe.id=Fe.id||"normalizer";var $r=Fe,Fr=$r.normalizeScrollX,jr=$r.momentum,zr=$r.allowNestedScroll,Vr=$r.onRelease,Wr,Kr,Gr=_getTarget(Fe.target)||_docEl$1,Yr=gsap$1.core.globals().ScrollSmoother,Qr=Yr&&Yr.get(),Jr=_fixIOSBug&&(Fe.content&&_getTarget(Fe.content)||Qr&&Fe.content!==!1&&!Qr.smooth()&&Qr.content()),Zr=_getScrollFunc(Gr,_vertical),tn=_getScrollFunc(Gr,_horizontal),en=1,rn=(Observer.isTouch&&_win.visualViewport?_win.visualViewport.scale*_win.visualViewport.width:_win.outerWidth)/_win.innerWidth,nn=0,on=_isFunction$1(jr)?function(){return jr(Wr)}:function(){return jr||2.8},un,an,sn=_inputObserver(Gr,Fe.type,!0,zr),dn=function(){return an=!1},ln=_passThrough,cn=_passThrough,fn=function(){Kr=_maxScroll(Gr,_vertical),cn=_clamp(_fixIOSBug?1:0,Kr),Fr&&(ln=_clamp(0,_maxScroll(Gr,_horizontal))),un=_refreshID},pn=function(){Jr._gsap.y=_round(parseFloat(Jr._gsap.y)+Zr.offset)+"px",Jr.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(Jr._gsap.y)+", 0, 1)",Zr.offset=Zr.cacheID=0},hn=function(){if(an){requestAnimationFrame(dn);var yn=_round(Wr.deltaY/2),wn=cn(Zr.v-yn);if(Jr&&wn!==Zr.v+Zr.offset){Zr.offset=wn-Zr.v;var gn=_round((parseFloat(Jr&&Jr._gsap.y)||0)-Zr.offset);Jr.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+gn+", 0, 1)",Jr._gsap.y=gn+"px",Zr.cacheID=_scrollers.cache,_updateAll()}return!0}Zr.offset&&pn(),an=!0},mn,Sn,vn,bn,_n=function(){fn(),mn.isActive()&&mn.vars.scrollY>Kr&&(Zr()>Kr?mn.progress(1)&&Zr(Kr):mn.resetTo("scrollY",Kr))};return Jr&&gsap$1.set(Jr,{y:"+=0"}),Fe.ignoreCheck=function($n){return _fixIOSBug&&$n.type==="touchmove"&&hn()||en>1.05&&$n.type!=="touchstart"||Wr.isGesturing||$n.touches&&$n.touches.length>1},Fe.onPress=function(){an=!1;var $n=en;en=_round((_win.visualViewport&&_win.visualViewport.scale||1)/rn),mn.pause(),$n!==en&&_allowNativePanning(Gr,en>1.01?!0:Fr?!1:"x"),Sn=tn(),vn=Zr(),fn(),un=_refreshID},Fe.onRelease=Fe.onGestureStart=function($n,yn){if(Zr.offset&&pn(),!yn)bn.restart(!0);else{_scrollers.cache++;var wn=on(),gn,Pn;Fr&&(gn=tn(),Pn=gn+wn*.05*-$n.velocityX/.227,wn*=_clampScrollAndGetDurationMultiplier(tn,gn,Pn,_maxScroll(Gr,_horizontal)),mn.vars.scrollX=ln(Pn)),gn=Zr(),Pn=gn+wn*.05*-$n.velocityY/.227,wn*=_clampScrollAndGetDurationMultiplier(Zr,gn,Pn,_maxScroll(Gr,_vertical)),mn.vars.scrollY=cn(Pn),mn.invalidate().duration(wn).play(.01),(_fixIOSBug&&mn.vars.scrollY>=Kr||gn>=Kr-1)&&gsap$1.to({},{onUpdate:_n,duration:wn})}Vr&&Vr($n)},Fe.onWheel=function(){mn._ts&&mn.pause(),_getTime()-nn>1e3&&(un=0,nn=_getTime())},Fe.onChange=function($n,yn,wn,gn,Pn){if(_refreshID!==un&&fn(),yn&&Fr&&tn(ln(gn[2]===yn?Sn+($n.startX-$n.x):tn()+yn-gn[1])),wn){Zr.offset&&pn();var Tn=Pn[2]===wn,An=Tn?vn+$n.startY-$n.y:Zr()+wn-Pn[1],Dn=cn(An);Tn&&An!==Dn&&(vn+=Dn-An),Zr(Dn)}(wn||yn)&&_updateAll()},Fe.onEnable=function(){_allowNativePanning(Gr,Fr?!1:"x"),ScrollTrigger$1.addEventListener("refresh",_n),_addListener(_win,"resize",_n),Zr.smooth&&(Zr.target.style.scrollBehavior="auto",Zr.smooth=tn.smooth=!1),sn.enable()},Fe.onDisable=function(){_allowNativePanning(Gr,!0),_removeListener(_win,"resize",_n),ScrollTrigger$1.removeEventListener("refresh",_n),sn.kill()},Fe.lockAxis=Fe.lockAxis!==!1,Wr=new Observer(Fe),Wr.iOS=_fixIOSBug,_fixIOSBug&&!Zr()&&Zr(1),_fixIOSBug&&gsap$1.ticker.add(_passThrough),bn=Wr._dc,mn=gsap$1.to(Wr,{ease:"power4",paused:!0,scrollX:Fr?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:_interruptionTracker(Zr,Zr(),function(){return mn.pause()})},onUpdate:_updateAll,onComplete:bn.vars.onComplete}),Wr};ScrollTrigger$1.sort=function(_r){return _triggers.sort(_r||function(Fe,$r){return(Fe.vars.refreshPriority||0)*-1e6+Fe.start-($r.start+($r.vars.refreshPriority||0)*-1e6)})};ScrollTrigger$1.observe=function(_r){return new Observer(_r)};ScrollTrigger$1.normalizeScroll=function(_r){if(typeof _r=="undefined")return _normalizer;if(_r===!0&&_normalizer)return _normalizer.enable();if(_r===!1)return _normalizer&&_normalizer.kill();var Fe=_r instanceof Observer?_r:_getScrollNormalizer(_r);return _normalizer&&_normalizer.target===Fe.target&&_normalizer.kill(),_isViewport(Fe.target)&&(_normalizer=Fe),Fe};ScrollTrigger$1.core={_getVelocityProp,_inputObserver,_scrollers,_proxies,bridge:{ss:function(){_lastScrollTime||_dispatch("scrollStart"),_lastScrollTime=_getTime()},ref:function(){return _refreshing}}};_getGSAP$1()&&gsap$1.registerPlugin(ScrollTrigger$1);var eventbus={};Object.defineProperty(eventbus,"__esModule",{value:!0});var _createClass$c=function(){function _r(Fe,$r){for(var Fr=0;Fr<$r.length;Fr++){var jr=$r[Fr];jr.enumerable=jr.enumerable||!1,jr.configurable=!0,"value"in jr&&(jr.writable=!0),Object.defineProperty(Fe,jr.key,jr)}}return function(Fe,$r,Fr){return $r&&_r(Fe.prototype,$r),Fr&&_r(Fe,Fr),Fe}}(),_config$1=config,_config2=_interopRequireDefault$4(_config$1);function _interopRequireDefault$4(_r){return _r&&_r.__esModule?_r:{default:_r}}function _classCallCheck$c(_r,Fe){if(!(_r instanceof Fe))throw new TypeError("Cannot call a class as a function")}var EventBus=function(){function _r(){_classCallCheck$c(this,_r),this.list={}}return _createClass$c(_r,[{key:"emit",value:function($r){var Fr=this,jr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};jr._name=$r,this.list[$r]?(_config2.default.get("log")&&console.info(this.list[$r].length+" handler"+(this.list[$r].length>1?"s":"")+" called on event '"+$r+"'"),this.list[$r].forEach(function(zr){zr.handler(jr),zr.once&&Fr.off($r,zr.handler)})):_config2.default.get("log")&&console.info("0 handlers called on event '"+$r+"'")}},{key:"on",value:function($r,Fr){var jr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.list[$r]?this.list[$r].push({once:jr,handler:Fr}):(this.list[$r]=[],this.list[$r].push({once:jr,handler:Fr}))}},{key:"once",value:function($r,Fr){this.on($r,Fr,!0)}},{key:"off",value:function($r,Fr){if($r!=null)if(Fr!=null)if(this.list[$r]&&this.list[$r].filter(function(Vr){return Vr.handler===Fr}).length){var jr=this.list[$r].filter(function(Vr){return Vr.handler===Fr})[0],zr=this.list[$r].indexOf(jr);zr>-1&&this.list[$r].splice(zr,1)}else console.warn("Event "+$r+" cannot be unsubscribed - does not exist.");else this.list[$r]=[];else this.list={}}}]),_r}(),_default=eventbus.default=new EventBus,js={exports:{}},core={exports:{}},evEmitter={exports:{}};(function(_r){(function(Fe,$r){_r.exports?_r.exports=$r():Fe.EvEmitter=$r()})(typeof window!="undefined"?window:commonjsGlobal,function(){function Fe(){}let $r=Fe.prototype;return $r.on=function(Fr,jr){if(!Fr||!jr)return this;let zr=this._events=this._events||{},Vr=zr[Fr]=zr[Fr]||[];return Vr.includes(jr)||Vr.push(jr),this},$r.once=function(Fr,jr){if(!Fr||!jr)return this;this.on(Fr,jr);let zr=this._onceEvents=this._onceEvents||{},Vr=zr[Fr]=zr[Fr]||{};return Vr[jr]=!0,this},$r.off=function(Fr,jr){let zr=this._events&&this._events[Fr];if(!zr||!zr.length)return this;let Vr=zr.indexOf(jr);return Vr!=-1&&zr.splice(Vr,1),this},$r.emitEvent=function(Fr,jr){let zr=this._events&&this._events[Fr];if(!zr||!zr.length)return this;zr=zr.slice(0),jr=jr||[];let Vr=this._onceEvents&&this._onceEvents[Fr];for(let Wr of zr)Vr&&Vr[Wr]&&(this.off(Fr,Wr),delete Vr[Wr]),Wr.apply(this,jr);return this},$r.allOff=function(){return delete this._events,delete this._onceEvents,this},Fe})})(evEmitter);var getSize={exports:{}};/*!
 * Infinite Scroll v2.0.4
 * measure size of elements
 * MIT license
 */(function(_r){(function(Fe,$r){_r.exports?_r.exports=$r():Fe.getSize=$r()})(window,function(){function $r(Vr){let Wr=parseFloat(Vr);return Vr.indexOf("%")==-1&&!isNaN(Wr)&&Wr}let Fr=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];function jr(){let Vr={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};return Fr.forEach(Wr=>{Vr[Wr]=0}),Vr}function zr(Vr){if(typeof Vr=="string"&&(Vr=document.querySelector(Vr)),!(Vr&&typeof Vr=="object"&&Vr.nodeType))return;let Kr=getComputedStyle(Vr);if(Kr.display=="none")return jr();let Gr={};Gr.width=Vr.offsetWidth,Gr.height=Vr.offsetHeight;let Yr=Gr.isBorderBox=Kr.boxSizing=="border-box";Fr.forEach(un=>{let an=Kr[un],sn=parseFloat(an);Gr[un]=isNaN(sn)?0:sn});let Qr=Gr.paddingLeft+Gr.paddingRight,Jr=Gr.paddingTop+Gr.paddingBottom,Zr=Gr.marginLeft+Gr.marginRight,tn=Gr.marginTop+Gr.marginBottom,en=Gr.borderLeftWidth+Gr.borderRightWidth,rn=Gr.borderTopWidth+Gr.borderBottomWidth,nn=$r(Kr.width);nn!==!1&&(Gr.width=nn+(Yr?0:Qr+en));let on=$r(Kr.height);return on!==!1&&(Gr.height=on+(Yr?0:Jr+rn)),Gr.innerWidth=Gr.width-(Qr+en),Gr.innerHeight=Gr.height-(Jr+rn),Gr.outerWidth=Gr.width+Zr,Gr.outerHeight=Gr.height+tn,Gr}return zr})})(getSize);var utils$k={exports:{}};(function(_r){(function(Fe,$r){_r.exports?_r.exports=$r(Fe):Fe.fizzyUIUtils=$r(Fe)})(commonjsGlobal,function($r){let Fr={};Fr.extend=function(zr,Vr){return Object.assign(zr,Vr)},Fr.modulo=function(zr,Vr){return(zr%Vr+Vr)%Vr},Fr.makeArray=function(zr){return Array.isArray(zr)?zr:zr==null?[]:typeof zr=="object"&&typeof zr.length=="number"?[...zr]:[zr]},Fr.removeFrom=function(zr,Vr){let Wr=zr.indexOf(Vr);Wr!=-1&&zr.splice(Wr,1)},Fr.getParent=function(zr,Vr){for(;zr.parentNode&&zr!=document.body;)if(zr=zr.parentNode,zr.matches(Vr))return zr},Fr.getQueryElement=function(zr){return typeof zr=="string"?document.querySelector(zr):zr},Fr.handleEvent=function(zr){let Vr="on"+zr.type;this[Vr]&&this[Vr](zr)},Fr.filterFindElements=function(zr,Vr){return zr=Fr.makeArray(zr),zr.filter(Wr=>Wr instanceof HTMLElement).reduce((Wr,Kr)=>{if(!Vr)return Wr.push(Kr),Wr;Kr.matches(Vr)&&Wr.push(Kr);let Gr=Kr.querySelectorAll(Vr);return Wr=Wr.concat(...Gr),Wr},[])},Fr.debounceMethod=function(zr,Vr,Wr){Wr=Wr||100;let Kr=zr.prototype[Vr],Gr=Vr+"Timeout";zr.prototype[Vr]=function(){clearTimeout(this[Gr]);let Yr=arguments;this[Gr]=setTimeout(()=>{Kr.apply(this,Yr),delete this[Gr]},Wr)}},Fr.docReady=function(zr){let Vr=document.readyState;Vr=="complete"||Vr=="interactive"?setTimeout(zr):document.addEventListener("DOMContentLoaded",zr)},Fr.toDashed=function(zr){return zr.replace(/(.)([A-Z])/g,function(Vr,Wr,Kr){return Wr+"-"+Kr}).toLowerCase()};let jr=$r.console;return Fr.htmlInit=function(zr,Vr){Fr.docReady(function(){let Wr=Fr.toDashed(Vr),Kr="data-"+Wr,Gr=document.querySelectorAll(`[${Kr}]`),Yr=$r.jQuery;[...Gr].forEach(Qr=>{let Jr=Qr.getAttribute(Kr),Zr;try{Zr=Jr&&JSON.parse(Jr)}catch(en){jr&&jr.error(`Error parsing ${Kr} on ${Qr.className}: ${en}`);return}let tn=new zr(Qr,Zr);Yr&&Yr.data(Qr,Vr,tn)})})},Fr})})(utils$k);var cell={exports:{}};(function(_r){(function(Fe,$r){_r.exports?_r.exports=$r(getSize.exports):(Fe.Flickity=Fe.Flickity||{},Fe.Flickity.Cell=$r(Fe.getSize))})(typeof window!="undefined"?window:commonjsGlobal,function($r){const Fr="flickity-cell";function jr(Vr){this.element=Vr,this.element.classList.add(Fr),this.x=0,this.unselect()}let zr=jr.prototype;return zr.destroy=function(){this.unselect(),this.element.classList.remove(Fr),this.element.style.transform="",this.element.removeAttribute("aria-hidden")},zr.getSize=function(){this.size=$r(this.element)},zr.select=function(){this.element.classList.add("is-selected"),this.element.removeAttribute("aria-hidden")},zr.unselect=function(){this.element.classList.remove("is-selected"),this.element.setAttribute("aria-hidden","true")},zr.remove=function(){this.element.remove()},jr})})(cell);var slide={exports:{}};(function(_r){(function(Fe,$r){_r.exports?_r.exports=$r():(Fe.Flickity=Fe.Flickity||{},Fe.Flickity.Slide=$r())})(typeof window!="undefined"?window:commonjsGlobal,function(){function $r(jr,zr,Vr){this.beginMargin=jr,this.endMargin=zr,this.cellAlign=Vr,this.cells=[],this.outerWidth=0,this.height=0}let Fr=$r.prototype;return Fr.addCell=function(jr){this.cells.push(jr),this.outerWidth+=jr.size.outerWidth,this.height=Math.max(jr.size.outerHeight,this.height),this.cells.length===1&&(this.x=jr.x,this.firstMargin=jr.size[this.beginMargin])},Fr.updateTarget=function(){let jr=this.getLastCell(),zr=jr?jr.size[this.endMargin]:0,Vr=this.outerWidth-(this.firstMargin+zr);this.target=this.x+this.firstMargin+Vr*this.cellAlign},Fr.getLastCell=function(){return this.cells[this.cells.length-1]},Fr.select=function(){this.cells.forEach(jr=>jr.select())},Fr.unselect=function(){this.cells.forEach(jr=>jr.unselect())},Fr.getCellElements=function(){return this.cells.map(jr=>jr.element)},$r})})(slide);var animate={exports:{}};(function(_r){(function(Fe,$r){_r.exports?_r.exports=$r(utils$k.exports):(Fe.Flickity=Fe.Flickity||{},Fe.Flickity.animatePrototype=$r(Fe.fizzyUIUtils))})(typeof window!="undefined"?window:commonjsGlobal,function($r){let Fr={};return Fr.startAnimation=function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},Fr.animate=function(){this.applyDragForce(),this.applySelectedAttraction();let jr=this.x;this.integratePhysics(),this.positionSlider(),this.settle(jr),this.isAnimating&&requestAnimationFrame(()=>this.animate())},Fr.positionSlider=function(){let jr=this.x;this.isWrapping&&(jr=$r.modulo(jr,this.slideableWidth)-this.slideableWidth,this.shiftWrapCells(jr)),this.setTranslateX(jr,this.isAnimating),this.dispatchScrollEvent()},Fr.setTranslateX=function(jr,zr){jr+=this.cursorPosition,this.options.rightToLeft&&(jr=-jr);let Vr=this.getPositionValue(jr);this.slider.style.transform=zr?`translate3d(${Vr},0,0)`:`translateX(${Vr})`},Fr.dispatchScrollEvent=function(){let jr=this.slides[0];if(!jr)return;let zr=-this.x-jr.target,Vr=zr/this.slidesWidth;this.dispatchEvent("scroll",null,[Vr,zr])},Fr.positionSliderAtSelected=function(){!this.cells.length||(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},Fr.getPositionValue=function(jr){return this.options.percentPosition?Math.round(jr/this.size.innerWidth*1e4)*.01+"%":Math.round(jr)+"px"},Fr.settle=function(jr){!this.isPointerDown&&Math.round(this.x*100)===Math.round(jr*100)&&this.restingFrames++,this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},Fr.shiftWrapCells=function(jr){let zr=this.cursorPosition+jr;this._shiftCells(this.beforeShiftCells,zr,-1);let Vr=this.size.innerWidth-(jr+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,Vr,1)},Fr._shiftCells=function(jr,zr,Vr){jr.forEach(Wr=>{let Kr=zr>0?Vr:0;this._wrapShiftCell(Wr,Kr),zr-=Wr.size.outerWidth})},Fr._unshiftCells=function(jr){!jr||!jr.length||jr.forEach(zr=>this._wrapShiftCell(zr,0))},Fr._wrapShiftCell=function(jr,zr){this._renderCellPosition(jr,jr.x+this.slideableWidth*zr)},Fr.integratePhysics=function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},Fr.applyForce=function(jr){this.velocity+=jr},Fr.getFrictionFactor=function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},Fr.getRestingPosition=function(){return this.x+this.velocity/(1-this.getFrictionFactor())},Fr.applyDragForce=function(){if(!this.isDraggable||!this.isPointerDown)return;let zr=this.dragX-this.x-this.velocity;this.applyForce(zr)},Fr.applySelectedAttraction=function(){if(this.isDraggable&&this.isPointerDown||this.isFreeScrolling||!this.slides.length)return;let Vr=(this.selectedSlide.target*-1-this.x)*this.options.selectedAttraction;this.applyForce(Vr)},Fr})})(animate);(function(_r){(function(Fe,$r){if(_r.exports)_r.exports=$r(Fe,evEmitter.exports,getSize.exports,utils$k.exports,cell.exports,slide.exports,animate.exports);else{let Fr=Fe.Flickity;Fe.Flickity=$r(Fe,Fe.EvEmitter,Fe.getSize,Fe.fizzyUIUtils,Fr.Cell,Fr.Slide,Fr.animatePrototype)}})(typeof window!="undefined"?window:commonjsGlobal,function($r,Fr,jr,zr,Vr,Wr,Kr){const{getComputedStyle:Gr,console:Yr}=$r;let{jQuery:Qr}=$r,Jr=0,Zr={};function tn(an,sn){let dn=zr.getQueryElement(an);if(!dn){Yr&&Yr.error(`Bad element for Flickity: ${dn||an}`);return}if(this.element=dn,this.element.flickityGUID){let ln=Zr[this.element.flickityGUID];return ln&&ln.option(sn),ln}Qr&&(this.$element=Qr(this.element)),this.options={...this.constructor.defaults},this.option(sn),this._create()}tn.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},tn.create={};let en=tn.prototype;Object.assign(en,Fr.prototype),en._create=function(){let{resize:an,watchCSS:sn,rightToLeft:dn}=this.options,ln=this.guid=++Jr;this.element.flickityGUID=ln,Zr[ln]=this,this.selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.beginMargin=dn?"marginRight":"marginLeft",this.endMargin=dn?"marginLeft":"marginRight",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",this._createSlider(),this.focusableElems=[this.element],(an||sn)&&$r.addEventListener("resize",this);for(let cn in this.options.on){let fn=this.options.on[cn];this.on(cn,fn)}for(let cn in tn.create)tn.create[cn].call(this);sn?this.watchCSS():this.activate()},en.option=function(an){Object.assign(this.options,an)},en.activate=function(){if(this.isActive)return;this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.getSize();let an=this._filterFindCellElements(this.element.children);this.slider.append(...an),this.viewport.append(this.slider),this.element.append(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate"),this.selectInitialIndex(),this.isInitActivated=!0,this.dispatchEvent("ready")},en._createSlider=function(){let an=document.createElement("div");an.className="flickity-slider",this.slider=an},en._filterFindCellElements=function(an){return zr.filterFindElements(an,this.options.cellSelector)},en.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._updateWrapShiftCells(),this.setGallerySize()},en._makeCells=function(an){return this._filterFindCellElements(an).map(dn=>new Vr(dn))},en.getLastCell=function(){return this.cells[this.cells.length-1]},en.getLastSlide=function(){return this.slides[this.slides.length-1]},en.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},en._positionCells=function(an){an=an||0,this.maxCellHeight=an&&this.maxCellHeight||0;let sn=0;if(an>0){let dn=this.cells[an-1];sn=dn.x+dn.size.outerWidth}this.cells.slice(an).forEach(dn=>{dn.x=sn,this._renderCellPosition(dn,sn),sn+=dn.size.outerWidth,this.maxCellHeight=Math.max(dn.size.outerHeight,this.maxCellHeight)}),this.slideableWidth=sn,this.updateSlides(),this._containSlides(),this.slidesWidth=this.cells.length?this.getLastSlide().target-this.slides[0].target:0},en._renderCellPosition=function(an,sn){let dn=this.options.rightToLeft?-1:1,ln=sn*dn;this.options.percentPosition&&(ln*=this.size.innerWidth/an.size.width);let cn=this.getPositionValue(ln);an.element.style.transform=`translateX( ${cn} )`},en._sizeCells=function(an){an.forEach(sn=>sn.getSize())},en.updateSlides=function(){if(this.slides=[],!this.cells.length)return;let{beginMargin:an,endMargin:sn}=this,dn=new Wr(an,sn,this.cellAlign);this.slides.push(dn);let ln=this._getCanCellFit();this.cells.forEach((cn,fn)=>{if(!dn.cells.length){dn.addCell(cn);return}let pn=dn.outerWidth-dn.firstMargin+(cn.size.outerWidth-cn.size[sn]);ln(fn,pn)||(dn.updateTarget(),dn=new Wr(an,sn,this.cellAlign),this.slides.push(dn)),dn.addCell(cn)}),dn.updateTarget(),this.updateSelectedSlide()},en._getCanCellFit=function(){let{groupCells:an}=this.options;if(!an)return()=>!1;if(typeof an=="number"){let cn=parseInt(an,10);return fn=>fn%cn!==0}let sn=1,dn=typeof an=="string"&&an.match(/^(\d+)%$/);dn&&(sn=parseInt(dn[1],10)/100);let ln=(this.size.innerWidth+1)*sn;return(cn,fn)=>fn<=ln},en._init=en.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},en.getSize=function(){this.size=jr(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};let rn={left:0,center:.5,right:1};en.setCellAlign=function(){let{cellAlign:an,rightToLeft:sn}=this.options,dn=rn[an];this.cellAlign=dn!==void 0?dn:an,sn&&(this.cellAlign=1-this.cellAlign)},en.setGallerySize=function(){if(!this.options.setGallerySize)return;let an=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=`${an}px`},en._updateWrapShiftCells=function(){if(this.isWrapping=this.getIsWrapping(),!this.isWrapping)return;this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);let an=this.cursorPosition,sn=this.cells.length-1;this.beforeShiftCells=this._getGapCells(an,sn,-1);let dn=this.size.innerWidth-this.cursorPosition;this.afterShiftCells=this._getGapCells(dn,0,1)},en.getIsWrapping=function(){let{wrapAround:an}=this.options;if(!an||this.slides.length<2)return!1;if(an!=="fill")return!0;let sn=this.slideableWidth-this.size.innerWidth;if(sn>this.size.innerWidth)return!0;for(let dn of this.cells)if(dn.size.outerWidth>sn)return!1;return!0},en._getGapCells=function(an,sn,dn){let ln=[];for(;an>0;){let cn=this.cells[sn];if(!cn)break;ln.push(cn),sn+=dn,an-=cn.size.outerWidth}return ln},en._containSlides=function(){if(!(this.options.contain&&!this.isWrapping&&this.cells.length))return;let sn=this.slideableWidth-this.getLastCell().size[this.endMargin];if(sn<this.size.innerWidth)this.slides.forEach(ln=>{ln.target=sn*this.cellAlign});else{let ln=this.cursorPosition+this.cells[0].size[this.beginMargin],cn=sn-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach(fn=>{fn.target=Math.max(fn.target,ln),fn.target=Math.min(fn.target,cn)})}},en.dispatchEvent=function(an,sn,dn){let ln=sn?[sn].concat(dn):dn;if(this.emitEvent(an,ln),Qr&&this.$element){an+=this.options.namespaceJQueryEvents?".flickity":"";let cn=an;if(sn){let fn=new Qr.Event(sn);fn.type=an,cn=fn}this.$element.trigger(cn,dn)}};const nn=["dragStart","dragMove","dragEnd","pointerDown","pointerMove","pointerEnd","staticClick"];let on=en.emitEvent;en.emitEvent=function(an,sn){if(an==="staticClick"){let fn=this.getParentCell(sn[0].target),pn=fn&&fn.element,hn=fn&&this.cells.indexOf(fn);sn=sn.concat(pn,hn)}if(on.call(this,an,sn),!nn.includes(an)||!Qr||!this.$element)return;an+=this.options.namespaceJQueryEvents?".flickity":"";let ln=sn.shift(0),cn=new Qr.Event(ln);cn.type=an,this.$element.trigger(cn,sn)},en.select=function(an,sn,dn){if(!this.isActive||(an=parseInt(an,10),this._wrapSelect(an),(this.isWrapping||sn)&&(an=zr.modulo(an,this.slides.length)),!this.slides[an]))return;let ln=this.selectedIndex;this.selectedIndex=an,this.updateSelectedSlide(),dn?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[an]),an!==ln&&this.dispatchEvent("change",null,[an])},en._wrapSelect=function(an){if(!this.isWrapping)return;const{selectedIndex:sn,slideableWidth:dn,slides:{length:ln}}=this;if(!this.isDragSelect){let cn=zr.modulo(an,ln),fn=Math.abs(cn-sn),pn=Math.abs(cn+ln-sn),hn=Math.abs(cn-ln-sn);pn<fn?an+=ln:hn<fn&&(an-=ln)}an<0?this.x-=dn:an>=ln&&(this.x+=dn)},en.previous=function(an,sn){this.select(this.selectedIndex-1,an,sn)},en.next=function(an,sn){this.select(this.selectedIndex+1,an,sn)},en.updateSelectedSlide=function(){let an=this.slides[this.selectedIndex];!an||(this.unselectSelectedSlide(),this.selectedSlide=an,an.select(),this.selectedCells=an.cells,this.selectedElements=an.getCellElements(),this.selectedCell=an.cells[0],this.selectedElement=this.selectedElements[0])},en.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},en.selectInitialIndex=function(){let an=this.options.initialIndex;if(this.isInitActivated){this.select(this.selectedIndex,!1,!0);return}if(an&&typeof an=="string"&&this.queryCell(an)){this.selectCell(an,!1,!0);return}let sn=0;an&&this.slides[an]&&(sn=an),this.select(sn,!1,!0)},en.selectCell=function(an,sn,dn){let ln=this.queryCell(an);if(!ln)return;let cn=this.getCellSlideIndex(ln);this.select(cn,sn,dn)},en.getCellSlideIndex=function(an){let sn=this.slides.find(dn=>dn.cells.includes(an));return this.slides.indexOf(sn)},en.getCell=function(an){for(let sn of this.cells)if(sn.element===an)return sn},en.getCells=function(an){return an=zr.makeArray(an),an.map(sn=>this.getCell(sn)).filter(Boolean)},en.getCellElements=function(){return this.cells.map(an=>an.element)},en.getParentCell=function(an){let sn=this.getCell(an);if(sn)return sn;let dn=an.closest(".flickity-slider > *");return this.getCell(dn)},en.getAdjacentCellElements=function(an,sn){if(!an)return this.selectedSlide.getCellElements();sn=sn===void 0?this.selectedIndex:sn;let dn=this.slides.length;if(1+an*2>=dn)return this.getCellElements();let ln=[];for(let cn=sn-an;cn<=sn+an;cn++){let fn=this.isWrapping?zr.modulo(cn,dn):cn,pn=this.slides[fn];pn&&(ln=ln.concat(pn.getCellElements()))}return ln},en.queryCell=function(an){return typeof an=="number"?this.cells[an]:(typeof an=="string"&&!an.match(/^[#.]?[\d/]/)&&(an=this.element.querySelector(an)),this.getCell(an))},en.uiChange=function(){this.emitEvent("uiChange")},en.onresize=function(){this.watchCSS(),this.resize()},zr.debounceMethod(tn,"onresize",150),en.resize=function(){if(!this.isActive||this.isAnimating||this.isDragging)return;this.getSize(),this.isWrapping&&(this.x=zr.modulo(this.x,this.slideableWidth)),this.positionCells(),this._updateWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");let an=this.selectedElements&&this.selectedElements[0];this.selectCell(an,!1,!0)},en.watchCSS=function(){if(!this.options.watchCSS)return;Gr(this.element,":after").content.includes("flickity")?this.activate():this.deactivate()},en.onkeydown=function(an){let{activeElement:sn}=document,dn=tn.keyboardHandlers[an.key];if(!this.options.accessibility||!sn||!dn)return;this.focusableElems.some(cn=>sn===cn)&&dn.call(this)},tn.keyboardHandlers={ArrowLeft:function(){this.uiChange();let an=this.options.rightToLeft?"next":"previous";this[an]()},ArrowRight:function(){this.uiChange();let an=this.options.rightToLeft?"previous":"next";this[an]()}},en.focus=function(){this.element.focus({preventScroll:!0})},en.deactivate=function(){!this.isActive||(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach(an=>an.destroy()),this.viewport.remove(),this.element.append(...this.slider.children),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},en.destroy=function(){this.deactivate(),$r.removeEventListener("resize",this),this.allOff(),this.emitEvent("destroy"),Qr&&this.$element&&Qr.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete Zr[this.guid]},Object.assign(en,Kr),tn.data=function(an){if(an=zr.getQueryElement(an),an)return Zr[an.flickityGUID]},zr.htmlInit(tn,"flickity");let{jQueryBridget:un}=$r;return Qr&&un&&un("flickity",tn,Qr),tn.setJQuery=function(an){Qr=an},tn.Cell=Vr,tn.Slide=Wr,tn})})(core);var drag={exports:{}},unidragger={exports:{}};/*!
 * Unidragger v3.0.1
 * Draggable base class
 * MIT license
 */(function(_r){(function(Fe,$r){_r.exports?_r.exports=$r(Fe,evEmitter.exports):Fe.Unidragger=$r(Fe,Fe.EvEmitter)})(typeof window!="undefined"?window:commonjsGlobal,function($r,Fr){function jr(){}let zr=jr.prototype=Object.create(Fr.prototype);zr.handleEvent=function(Yr){let Qr="on"+Yr.type;this[Qr]&&this[Qr](Yr)};let Vr,Wr;"ontouchstart"in $r?(Vr="touchstart",Wr=["touchmove","touchend","touchcancel"]):$r.PointerEvent?(Vr="pointerdown",Wr=["pointermove","pointerup","pointercancel"]):(Vr="mousedown",Wr=["mousemove","mouseup"]),zr.touchActionValue="none",zr.bindHandles=function(){this._bindHandles("addEventListener",this.touchActionValue)},zr.unbindHandles=function(){this._bindHandles("removeEventListener","")},zr._bindHandles=function(Yr,Qr){this.handles.forEach(Jr=>{Jr[Yr](Vr,this),Jr[Yr]("click",this),$r.PointerEvent&&(Jr.style.touchAction=Qr)})},zr.bindActivePointerEvents=function(){Wr.forEach(Yr=>{$r.addEventListener(Yr,this)})},zr.unbindActivePointerEvents=function(){Wr.forEach(Yr=>{$r.removeEventListener(Yr,this)})},zr.withPointer=function(Yr,Qr){Qr.pointerId===this.pointerIdentifier&&this[Yr](Qr,Qr)},zr.withTouch=function(Yr,Qr){let Jr;for(let Zr of Qr.changedTouches)Zr.identifier===this.pointerIdentifier&&(Jr=Zr);Jr&&this[Yr](Qr,Jr)},zr.onmousedown=function(Yr){this.pointerDown(Yr,Yr)},zr.ontouchstart=function(Yr){this.pointerDown(Yr,Yr.changedTouches[0])},zr.onpointerdown=function(Yr){this.pointerDown(Yr,Yr)};const Kr=["TEXTAREA","INPUT","SELECT","OPTION"],Gr=["radio","checkbox","button","submit","image","file"];return zr.pointerDown=function(Yr,Qr){let Jr=Kr.includes(Yr.target.nodeName),Zr=Gr.includes(Yr.target.type),tn=!Jr||Zr;!(!this.isPointerDown&&!Yr.button&&tn)||(this.isPointerDown=!0,this.pointerIdentifier=Qr.pointerId!==void 0?Qr.pointerId:Qr.identifier,this.pointerDownPointer={pageX:Qr.pageX,pageY:Qr.pageY},this.bindActivePointerEvents(),this.emitEvent("pointerDown",[Yr,Qr]))},zr.onmousemove=function(Yr){this.pointerMove(Yr,Yr)},zr.onpointermove=function(Yr){this.withPointer("pointerMove",Yr)},zr.ontouchmove=function(Yr){this.withTouch("pointerMove",Yr)},zr.pointerMove=function(Yr,Qr){let Jr={x:Qr.pageX-this.pointerDownPointer.pageX,y:Qr.pageY-this.pointerDownPointer.pageY};this.emitEvent("pointerMove",[Yr,Qr,Jr]),!this.isDragging&&this.hasDragStarted(Jr)&&this.dragStart(Yr,Qr),this.isDragging&&this.dragMove(Yr,Qr,Jr)},zr.hasDragStarted=function(Yr){return Math.abs(Yr.x)>3||Math.abs(Yr.y)>3},zr.dragStart=function(Yr,Qr){this.isDragging=!0,this.isPreventingClicks=!0,this.emitEvent("dragStart",[Yr,Qr])},zr.dragMove=function(Yr,Qr,Jr){this.emitEvent("dragMove",[Yr,Qr,Jr])},zr.onmouseup=function(Yr){this.pointerUp(Yr,Yr)},zr.onpointerup=function(Yr){this.withPointer("pointerUp",Yr)},zr.ontouchend=function(Yr){this.withTouch("pointerUp",Yr)},zr.pointerUp=function(Yr,Qr){this.pointerDone(),this.emitEvent("pointerUp",[Yr,Qr]),this.isDragging?this.dragEnd(Yr,Qr):this.staticClick(Yr,Qr)},zr.dragEnd=function(Yr,Qr){this.isDragging=!1,setTimeout(()=>delete this.isPreventingClicks),this.emitEvent("dragEnd",[Yr,Qr])},zr.pointerDone=function(){this.isPointerDown=!1,delete this.pointerIdentifier,this.unbindActivePointerEvents(),this.emitEvent("pointerDone")},zr.onpointercancel=function(Yr){this.withPointer("pointerCancel",Yr)},zr.ontouchcancel=function(Yr){this.withTouch("pointerCancel",Yr)},zr.pointerCancel=function(Yr,Qr){this.pointerDone(),this.emitEvent("pointerCancel",[Yr,Qr])},zr.onclick=function(Yr){this.isPreventingClicks&&Yr.preventDefault()},zr.staticClick=function(Yr,Qr){let Jr=Yr.type==="mouseup";Jr&&this.isIgnoringMouseUp||(this.emitEvent("staticClick",[Yr,Qr]),Jr&&(this.isIgnoringMouseUp=!0,setTimeout(()=>{delete this.isIgnoringMouseUp},400)))},jr})})(unidragger);(function(_r){(function(Fe,$r){_r.exports?_r.exports=$r(Fe,core.exports,unidragger.exports,utils$k.exports):Fe.Flickity=$r(Fe,Fe.Flickity,Fe.Unidragger,Fe.fizzyUIUtils)})(typeof window!="undefined"?window:commonjsGlobal,function($r,Fr,jr,zr){Object.assign(Fr.defaults,{draggable:">1",dragThreshold:3});let Vr=Fr.prototype;Object.assign(Vr,jr.prototype),Vr.touchActionValue="",Fr.create.drag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable),this.on("pointerDown",this.handlePointerDown),this.on("pointerUp",this.handlePointerUp),this.on("pointerDown",this.handlePointerDone),this.on("dragStart",this.handleDragStart),this.on("dragMove",this.handleDragMove),this.on("dragEnd",this.handleDragEnd),this.on("staticClick",this.handleStaticClick)},Vr.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},Vr.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},Vr.updateDraggable=function(){this.options.draggable===">1"?this.isDraggable=this.slides.length>1:this.isDraggable=this.options.draggable,this.element.classList.toggle("is-draggable",this.isDraggable)},Vr._uiChangeDrag=function(){delete this.isFreeScrolling},Vr.handlePointerDown=function(Kr){if(!this.isDraggable){this.bindActivePointerEvents(Kr);return}let Gr=Kr.type==="touchstart",Yr=Kr.pointerType==="touch",Qr=Kr.target.matches("input, textarea, select");!Gr&&!Yr&&!Qr&&Kr.preventDefault(),Qr||this.focus(),document.activeElement!==this.element&&document.activeElement.blur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=Wr(),$r.addEventListener("scroll",this),this.bindActivePointerEvents(Kr)},Vr.hasDragStarted=function(Kr){return Math.abs(Kr.x)>this.options.dragThreshold},Vr.handlePointerUp=function(){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down")},Vr.handlePointerDone=function(){$r.removeEventListener("scroll",this),delete this.pointerDownScroll},Vr.handleDragStart=function(){!this.isDraggable||(this.dragStartPosition=this.x,this.startAnimation(),$r.removeEventListener("scroll",this))},Vr.handleDragMove=function(Kr,Gr,Yr){if(!this.isDraggable)return;Kr.preventDefault(),this.previousDragX=this.dragX;let Qr=this.options.rightToLeft?-1:1;this.isWrapping&&(Yr.x%=this.slideableWidth);let Jr=this.dragStartPosition+Yr.x*Qr;if(!this.isWrapping){let Zr=Math.max(-this.slides[0].target,this.dragStartPosition);Jr=Jr>Zr?(Jr+Zr)*.5:Jr;let tn=Math.min(-this.getLastSlide().target,this.dragStartPosition);Jr=Jr<tn?(Jr+tn)*.5:Jr}this.dragX=Jr,this.dragMoveTime=new Date},Vr.handleDragEnd=function(){if(!this.isDraggable)return;let{freeScroll:Kr}=this.options;Kr&&(this.isFreeScrolling=!0);let Gr=this.dragEndRestingSelect();if(Kr&&!this.isWrapping){let Yr=this.getRestingPosition();this.isFreeScrolling=-Yr>this.slides[0].target&&-Yr<this.getLastSlide().target}else!Kr&&Gr===this.selectedIndex&&(Gr+=this.dragEndBoostSelect());delete this.previousDragX,this.isDragSelect=this.isWrapping,this.select(Gr),delete this.isDragSelect},Vr.dragEndRestingSelect=function(){let Kr=this.getRestingPosition(),Gr=Math.abs(this.getSlideDistance(-Kr,this.selectedIndex)),Yr=this._getClosestResting(Kr,Gr,1),Qr=this._getClosestResting(Kr,Gr,-1);return Yr.distance<Qr.distance?Yr.index:Qr.index},Vr._getClosestResting=function(Kr,Gr,Yr){let Qr=this.selectedIndex,Jr=1/0,Zr=this.options.contain&&!this.isWrapping?(tn,en)=>tn<=en:(tn,en)=>tn<en;for(;Zr(Gr,Jr)&&(Qr+=Yr,Jr=Gr,Gr=this.getSlideDistance(-Kr,Qr),Gr!==null);)Gr=Math.abs(Gr);return{distance:Jr,index:Qr-Yr}},Vr.getSlideDistance=function(Kr,Gr){let Yr=this.slides.length,Qr=this.options.wrapAround&&Yr>1,Jr=Qr?zr.modulo(Gr,Yr):Gr,Zr=this.slides[Jr];if(!Zr)return null;let tn=Qr?this.slideableWidth*Math.floor(Gr/Yr):0;return Kr-(Zr.target+tn)},Vr.dragEndBoostSelect=function(){if(this.previousDragX===void 0||!this.dragMoveTime||new Date-this.dragMoveTime>100)return 0;let Kr=this.getSlideDistance(-this.dragX,this.selectedIndex),Gr=this.previousDragX-this.dragX;return Kr>0&&Gr>0?1:Kr<0&&Gr<0?-1:0},Vr.onscroll=function(){let Kr=Wr(),Gr=this.pointerDownScroll.x-Kr.x,Yr=this.pointerDownScroll.y-Kr.y;(Math.abs(Gr)>3||Math.abs(Yr)>3)&&this.pointerDone()};function Wr(){return{x:$r.pageXOffset,y:$r.pageYOffset}}return Fr})})(drag);var prevNextButton={exports:{}};(function(_r){(function(Fe,$r){_r.exports?_r.exports=$r(core.exports):$r(Fe.Flickity)})(typeof window!="undefined"?window:commonjsGlobal,function($r){const Fr="http://www.w3.org/2000/svg";function jr(Wr,Kr,Gr){this.increment=Wr,this.direction=Kr,this.isPrevious=Wr==="previous",this.isLeft=Kr==="left",this._create(Gr)}jr.prototype._create=function(Wr){let Kr=this.element=document.createElement("button");Kr.className=`flickity-button flickity-prev-next-button ${this.increment}`;let Gr=this.isPrevious?"Previous":"Next";Kr.setAttribute("type","button"),Kr.setAttribute("aria-label",Gr),this.disable();let Yr=this.createSVG(Gr,Wr);Kr.append(Yr)},jr.prototype.createSVG=function(Wr,Kr){let Gr=document.createElementNS(Fr,"svg");Gr.setAttribute("class","flickity-button-icon"),Gr.setAttribute("viewBox","0 0 100 100");let Yr=document.createElementNS(Fr,"title");Yr.append(Wr);let Qr=document.createElementNS(Fr,"path"),Jr=zr(Kr);return Qr.setAttribute("d",Jr),Qr.setAttribute("class","arrow"),this.isLeft||Qr.setAttribute("transform","translate(100, 100) rotate(180)"),Gr.append(Yr,Qr),Gr};function zr(Wr){if(typeof Wr=="string")return Wr;let{x0:Kr,x1:Gr,x2:Yr,x3:Qr,y1:Jr,y2:Zr}=Wr;return`M ${Kr}, 50
    L ${Gr}, ${Jr+50}
    L ${Yr}, ${Zr+50}
    L ${Qr}, 50
    L ${Yr}, ${50-Zr}
    L ${Gr}, ${50-Jr}
    Z`}jr.prototype.enable=function(){this.element.removeAttribute("disabled")},jr.prototype.disable=function(){this.element.setAttribute("disabled",!0)},Object.assign($r.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),$r.create.prevNextButtons=function(){if(!this.options.prevNextButtons)return;let{rightToLeft:Wr,arrowShape:Kr}=this.options,Gr=Wr?"right":"left",Yr=Wr?"left":"right";this.prevButton=new jr("previous",Gr,Kr),this.nextButton=new jr("next",Yr,Kr),this.focusableElems.push(this.prevButton.element),this.focusableElems.push(this.nextButton.element),this.handlePrevButtonClick=()=>{this.uiChange(),this.previous()},this.handleNextButtonClick=()=>{this.uiChange(),this.next()},this.on("activate",this.activatePrevNextButtons),this.on("select",this.updatePrevNextButtons)};let Vr=$r.prototype;return Vr.updatePrevNextButtons=function(){let Wr=this.slides.length?this.slides.length-1:0;this.updatePrevNextButton(this.prevButton,0),this.updatePrevNextButton(this.nextButton,Wr)},Vr.updatePrevNextButton=function(Wr,Kr){if(this.isWrapping&&this.slides.length>1){Wr.enable();return}let Gr=this.selectedIndex!==Kr;Wr[Gr?"enable":"disable"](),!Gr&&document.activeElement===Wr.element&&this.focus()},Vr.activatePrevNextButtons=function(){this.prevButton.element.addEventListener("click",this.handlePrevButtonClick),this.nextButton.element.addEventListener("click",this.handleNextButtonClick),this.element.append(this.prevButton.element,this.nextButton.element),this.on("deactivate",this.deactivatePrevNextButtons)},Vr.deactivatePrevNextButtons=function(){this.prevButton.element.remove(),this.nextButton.element.remove(),this.prevButton.element.removeEventListener("click",this.handlePrevButtonClick),this.nextButton.element.removeEventListener("click",this.handleNextButtonClick),this.off("deactivate",this.deactivatePrevNextButtons)},$r.PrevNextButton=jr,$r})})(prevNextButton);var pageDots={exports:{}};(function(_r){(function(Fe,$r){_r.exports?_r.exports=$r(core.exports,utils$k.exports):$r(Fe.Flickity,Fe.fizzyUIUtils)})(typeof window!="undefined"?window:commonjsGlobal,function($r,Fr){function jr(){this.holder=document.createElement("div"),this.holder.className="flickity-page-dots",this.dots=[]}jr.prototype.setDots=function(Vr){let Wr=Vr-this.dots.length;Wr>0?this.addDots(Wr):Wr<0&&this.removeDots(-Wr)},jr.prototype.addDots=function(Vr){let Wr=new Array(Vr).fill().map((Kr,Gr)=>{let Yr=document.createElement("button");Yr.setAttribute("type","button");let Qr=Gr+1+this.dots.length;return Yr.className="flickity-page-dot",Yr.textContent=`View slide ${Qr}`,Yr});this.holder.append(...Wr),this.dots=this.dots.concat(Wr)},jr.prototype.removeDots=function(Vr){this.dots.splice(this.dots.length-Vr,Vr).forEach(Kr=>Kr.remove())},jr.prototype.updateSelected=function(Vr){this.selectedDot&&(this.selectedDot.classList.remove("is-selected"),this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[Vr],this.selectedDot.classList.add("is-selected"),this.selectedDot.setAttribute("aria-current","step"))},$r.PageDots=jr,Object.assign($r.defaults,{pageDots:!0}),$r.create.pageDots=function(){!this.options.pageDots||(this.pageDots=new jr,this.handlePageDotsClick=this.onPageDotsClick.bind(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))};let zr=$r.prototype;return zr.activatePageDots=function(){this.pageDots.setDots(this.slides.length),this.focusableElems.push(...this.pageDots.dots),this.pageDots.holder.addEventListener("click",this.handlePageDotsClick),this.element.append(this.pageDots.holder)},zr.onPageDotsClick=function(Vr){let Wr=this.pageDots.dots.indexOf(Vr.target);Wr!==-1&&(this.uiChange(),this.select(Wr))},zr.updateSelectedPageDots=function(){this.pageDots.updateSelected(this.selectedIndex)},zr.updatePageDots=function(){this.pageDots.dots.forEach(Vr=>{Fr.removeFrom(this.focusableElems,Vr)}),this.pageDots.setDots(this.slides.length),this.focusableElems.push(...this.pageDots.dots)},zr.deactivatePageDots=function(){this.pageDots.holder.remove(),this.pageDots.holder.removeEventListener("click",this.handlePageDotsClick)},$r.PageDots=jr,$r})})(pageDots);var player={exports:{}};(function(_r){(function(Fe,$r){_r.exports?_r.exports=$r(core.exports):$r(Fe.Flickity)})(typeof window!="undefined"?window:commonjsGlobal,function($r){function Fr(zr,Vr){this.autoPlay=zr,this.onTick=Vr,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}Fr.prototype.play=function(){if(this.state==="playing")return;if(document.hidden){document.addEventListener("visibilitychange",this.onVisibilityPlay);return}this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick()},Fr.prototype.tick=function(){if(this.state!=="playing")return;let zr=typeof this.autoPlay=="number"?this.autoPlay:3e3;this.clear(),this.timeout=setTimeout(()=>{this.onTick(),this.tick()},zr)},Fr.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},Fr.prototype.clear=function(){clearTimeout(this.timeout)},Fr.prototype.pause=function(){this.state==="playing"&&(this.state="paused",this.clear())},Fr.prototype.unpause=function(){this.state==="paused"&&this.play()},Fr.prototype.visibilityChange=function(){let zr=document.hidden;this[zr?"pause":"unpause"]()},Fr.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},Object.assign($r.defaults,{pauseAutoPlayOnHover:!0}),$r.create.player=function(){this.player=new Fr(this.options.autoPlay,()=>{this.next(!0)}),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)};let jr=$r.prototype;return jr.activatePlayer=function(){!this.options.autoPlay||(this.player.play(),this.element.addEventListener("mouseenter",this))},jr.playPlayer=function(){this.player.play()},jr.stopPlayer=function(){this.player.stop()},jr.pausePlayer=function(){this.player.pause()},jr.unpausePlayer=function(){this.player.unpause()},jr.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},jr.onmouseenter=function(){!this.options.pauseAutoPlayOnHover||(this.player.pause(),this.element.addEventListener("mouseleave",this))},jr.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},$r.Player=Fr,$r})})(player);var addRemoveCell={exports:{}};(function(_r){(function(Fe,$r){_r.exports?_r.exports=$r(core.exports,utils$k.exports):$r(Fe.Flickity,Fe.fizzyUIUtils)})(typeof window!="undefined"?window:commonjsGlobal,function($r,Fr){function jr(Vr){let Wr=document.createDocumentFragment();return Vr.forEach(Kr=>Wr.appendChild(Kr.element)),Wr}let zr=$r.prototype;return zr.insert=function(Vr,Wr){let Kr=this._makeCells(Vr);if(!Kr||!Kr.length)return;let Gr=this.cells.length;Wr=Wr===void 0?Gr:Wr;let Yr=jr(Kr),Qr=Wr===Gr;if(Qr)this.slider.appendChild(Yr);else{let Jr=this.cells[Wr].element;this.slider.insertBefore(Yr,Jr)}if(Wr===0)this.cells=Kr.concat(this.cells);else if(Qr)this.cells=this.cells.concat(Kr);else{let Jr=this.cells.splice(Wr,Gr-Wr);this.cells=this.cells.concat(Kr).concat(Jr)}this._sizeCells(Kr),this.cellChange(Wr),this.positionSliderAtSelected()},zr.append=function(Vr){this.insert(Vr,this.cells.length)},zr.prepend=function(Vr){this.insert(Vr,0)},zr.remove=function(Vr){let Wr=this.getCells(Vr);if(!Wr||!Wr.length)return;let Kr=this.cells.length-1;Wr.forEach(Gr=>{Gr.remove();let Yr=this.cells.indexOf(Gr);Kr=Math.min(Yr,Kr),Fr.removeFrom(this.cells,Gr)}),this.cellChange(Kr),this.positionSliderAtSelected()},zr.cellSizeChange=function(Vr){let Wr=this.getCell(Vr);if(!Wr)return;Wr.getSize();let Kr=this.cells.indexOf(Wr);this.cellChange(Kr)},zr.cellChange=function(Vr){let Wr=this.selectedElement;this._positionCells(Vr),this._updateWrapShiftCells(),this.setGallerySize();let Kr=this.getCell(Wr);Kr&&(this.selectedIndex=this.getCellSlideIndex(Kr)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[Vr]),this.select(this.selectedIndex)},$r})})(addRemoveCell);var lazyload={exports:{}};(function(_r){(function(Fe,$r){_r.exports?_r.exports=$r(core.exports,utils$k.exports):$r(Fe.Flickity,Fe.fizzyUIUtils)})(typeof window!="undefined"?window:commonjsGlobal,function($r,Fr){const jr="data-flickity-lazyload",zr=`${jr}-src`,Vr=`${jr}-srcset`,Wr=`img[${jr}], img[${zr}], img[${Vr}], source[${Vr}]`;$r.create.lazyLoad=function(){this.on("select",this.lazyLoad),this.handleLazyLoadComplete=this.onLazyLoadComplete.bind(this)};let Kr=$r.prototype;Kr.lazyLoad=function(){let{lazyLoad:Qr}=this.options;if(!Qr)return;let Jr=typeof Qr=="number"?Qr:0;this.getAdjacentCellElements(Jr).map(Gr).flat().forEach(Zr=>new Yr(Zr,this.handleLazyLoadComplete))};function Gr(Qr){if(Qr.matches("img")){let Jr=Qr.getAttribute(jr),Zr=Qr.getAttribute(zr),tn=Qr.getAttribute(Vr);if(Jr||Zr||tn)return Qr}return[...Qr.querySelectorAll(Wr)]}Kr.onLazyLoadComplete=function(Qr,Jr){let Zr=this.getParentCell(Qr),tn=Zr&&Zr.element;this.cellSizeChange(tn),this.dispatchEvent("lazyLoad",Jr,tn)};function Yr(Qr,Jr){this.img=Qr,this.onComplete=Jr,this.load()}return Yr.prototype.handleEvent=Fr.handleEvent,Yr.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);let Qr=this.img.getAttribute(jr)||this.img.getAttribute(zr),Jr=this.img.getAttribute(Vr);this.img.src=Qr,Jr&&this.img.setAttribute("srcset",Jr),this.img.removeAttribute(jr),this.img.removeAttribute(zr),this.img.removeAttribute(Vr)},Yr.prototype.onload=function(Qr){this.complete(Qr,"flickity-lazyloaded")},Yr.prototype.onerror=function(Qr){this.complete(Qr,"flickity-lazyerror")},Yr.prototype.complete=function(Qr,Jr){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this),(this.img.parentNode.matches("picture")?this.img.parentNode:this.img).classList.add(Jr),this.onComplete(this.img,Qr)},$r.LazyLoader=Yr,$r})})(lazyload);var imagesloaded$1={exports:{}},imagesloaded={exports:{}};/*!
 * imagesLoaded v5.0.0
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */(function(_r){(function(Fe,$r){_r.exports?_r.exports=$r(Fe,evEmitter.exports):Fe.imagesLoaded=$r(Fe,Fe.EvEmitter)})(typeof window!="undefined"?window:commonjsGlobal,function($r,Fr){let jr=$r.jQuery,zr=$r.console;function Vr(Jr){return Array.isArray(Jr)?Jr:typeof Jr=="object"&&typeof Jr.length=="number"?[...Jr]:[Jr]}function Wr(Jr,Zr,tn){if(!(this instanceof Wr))return new Wr(Jr,Zr,tn);let en=Jr;if(typeof Jr=="string"&&(en=document.querySelectorAll(Jr)),!en){zr.error(`Bad element for imagesLoaded ${en||Jr}`);return}this.elements=Vr(en),this.options={},typeof Zr=="function"?tn=Zr:Object.assign(this.options,Zr),tn&&this.on("always",tn),this.getImages(),jr&&(this.jqDeferred=new jr.Deferred),setTimeout(this.check.bind(this))}Wr.prototype=Object.create(Fr.prototype),Wr.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const Kr=[1,9,11];Wr.prototype.addElementImages=function(Jr){Jr.nodeName==="IMG"&&this.addImage(Jr),this.options.background===!0&&this.addElementBackgroundImages(Jr);let{nodeType:Zr}=Jr;if(!Zr||!Kr.includes(Zr))return;let tn=Jr.querySelectorAll("img");for(let en of tn)this.addImage(en);if(typeof this.options.background=="string"){let en=Jr.querySelectorAll(this.options.background);for(let rn of en)this.addElementBackgroundImages(rn)}};const Gr=/url\((['"])?(.*?)\1\)/gi;Wr.prototype.addElementBackgroundImages=function(Jr){let Zr=getComputedStyle(Jr);if(!Zr)return;let tn=Gr.exec(Zr.backgroundImage);for(;tn!==null;){let en=tn&&tn[2];en&&this.addBackground(en,Jr),tn=Gr.exec(Zr.backgroundImage)}},Wr.prototype.addImage=function(Jr){let Zr=new Yr(Jr);this.images.push(Zr)},Wr.prototype.addBackground=function(Jr,Zr){let tn=new Qr(Jr,Zr);this.images.push(tn)},Wr.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length){this.complete();return}let Jr=(Zr,tn,en)=>{setTimeout(()=>{this.progress(Zr,tn,en)})};this.images.forEach(function(Zr){Zr.once("progress",Jr),Zr.check()})},Wr.prototype.progress=function(Jr,Zr,tn){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!Jr.isLoaded,this.emitEvent("progress",[this,Jr,Zr]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,Jr),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&zr&&zr.log(`progress: ${tn}`,Jr,Zr)},Wr.prototype.complete=function(){let Jr=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(Jr,[this]),this.emitEvent("always",[this]),this.jqDeferred){let Zr=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[Zr](this)}};function Yr(Jr){this.img=Jr}Yr.prototype=Object.create(Fr.prototype),Yr.prototype.check=function(){if(this.getIsImageComplete()){this.confirm(this.img.naturalWidth!==0,"naturalWidth");return}this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src},Yr.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},Yr.prototype.confirm=function(Jr,Zr){this.isLoaded=Jr;let{parentNode:tn}=this.img,en=tn.nodeName==="PICTURE"?tn:this.img;this.emitEvent("progress",[this,en,Zr])},Yr.prototype.handleEvent=function(Jr){let Zr="on"+Jr.type;this[Zr]&&this[Zr](Jr)},Yr.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},Yr.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},Yr.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)};function Qr(Jr,Zr){this.url=Jr,this.element=Zr,this.img=new Image}return Qr.prototype=Object.create(Yr.prototype),Qr.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(this.img.naturalWidth!==0,"naturalWidth"),this.unbindEvents())},Qr.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},Qr.prototype.confirm=function(Jr,Zr){this.isLoaded=Jr,this.emitEvent("progress",[this,this.element,Zr])},Wr.makeJQueryPlugin=function(Jr){Jr=Jr||$r.jQuery,Jr&&(jr=Jr,jr.fn.imagesLoaded=function(Zr,tn){return new Wr(this,Zr,tn).jqDeferred.promise(jr(this))})},Wr.makeJQueryPlugin(),Wr})})(imagesloaded);(function(_r){(function(Fe,$r){_r.exports?_r.exports=$r(core.exports,imagesloaded.exports):$r(Fe.Flickity,Fe.imagesLoaded)})(typeof window!="undefined"?window:commonjsGlobal,function($r,Fr){return $r.create.imagesLoaded=function(){this.on("activate",this.imagesLoaded)},$r.prototype.imagesLoaded=function(){if(!this.options.imagesLoaded)return;let jr=(zr,Vr)=>{let Wr=this.getParentCell(Vr.img);this.cellSizeChange(Wr&&Wr.element),this.options.freeScroll||this.positionSliderAtSelected()};Fr(this.slider).on("progress",jr)},$r})})(imagesloaded$1);/*!
 * Flickity v3.0.0
 * Touch, responsive, flickable carousels
 *
 * Licensed GPLv3 for open source use
 * or Flickity Commercial License for commercial use
 *
 * https://flickity.metafizzy.co
 * Copyright 2015-2022 Metafizzy
 */(function(_r){if(_r.exports){const Fe=core.exports;_r.exports=Fe}})(js);var Flickity=js.exports;gsapWithCSS.registerPlugin(ScrollTrigger$1);class Header$1 extends _default$1{constructor(Fe){super(Fe),this.ref={topHeader:{},mainHeader:{},logo:{},mobileMenu:{},closeMobileButton:{},openMobileButton:{},dropdownMenu:{},dropdownToggle:{},mobileDropdownToggle:{},mobileDropdownMenu:{},preHeader:{},preHeaderCarousel:{}}}mount(){let Fe=this;_default.on("leavingPage",this.handleLeavingPage.bind(this)),gsapWithCSS.to(this.ref.mainHeader,{yPercent:-100,duration:.6,paused:!0,ease:"power1.inOut"}),this.ref.closeMobileButton.addEventListener("click",function(){Fe.closeMobileMenu()}),this.ref.openMobileButton.addEventListener("click",function(){Fe.openMobileMenu()}),this.ref.dropdownToggle.addEventListener("click",function(){Fe.toggleDropdownMenu()}),this.ref.mobileDropdownToggle.addEventListener("click",function(){Fe.toggleDropdownMenuMobile()}),document.querySelector("body").addEventListener("click",function($r){$r.target.classList.contains("c--dropdown-menu")||Fe.closeDropdownMenu()},!0),new Flickity(this.ref.preHeaderCarousel,{prevNextButtons:!1,freeScroll:!1,pageDots:!1,draggable:!0,autoPlay:5200,pauseAutoPlayOnHover:!1,wrapAround:!0,contain:!0,arrowShape:{x0:10,x1:70,y1:45,x2:75,y2:40,x3:20}}),this.ref.preHeader&&gsapWithCSS.to(this.ref.preHeader,{height:0,scrollTrigger:{trigger:"body",start:"top top-=100",toggleActions:"play none none reverse"}})}closeMobileMenu(){gsapWithCSS.to(this.ref.mobileMenu,{x:"-100%",duration:.3}),gsapWithCSS.set("body",{overflow:"auto"})}openMobileMenu(){gsapWithCSS.to(this.ref.mobileMenu,{x:"0%",duration:.3}),gsapWithCSS.set("body",{overflow:"hidden"})}toggleDropdownMenu(){this.ref.dropdownMenu.classList.contains("hidden")?this.ref.dropdownMenu.classList.remove("hidden"):this.ref.dropdownMenu.classList.add("hidden")}toggleDropdownMenuMobile(){this.ref.mobileDropdownMenu.classList.contains("hidden")?this.ref.mobileDropdownMenu.classList.remove("hidden"):this.ref.mobileDropdownMenu.classList.add("hidden")}closeDropdownMenu(){this.ref.dropdownMenu.classList.add("hidden"),this.ref.mobileDropdownMenu.classList.add("hidden")}handleLeavingPage(Fe){this.closeMobileMenu(),this.closeDropdownMenu()}}class Gallery$1 extends _default$1{constructor(Fe){super(Fe),this.ref={galleryElement:{},galleryIndex:0,prev:{},next:{}}}mount(){let Fe=this;var $r=new Flickity(this.ref.galleryElement,{prevNextButtons:!1,freeScroll:!1,pageDots:!1,draggable:!0,imagesLoaded:!0,autoPlay:!0,pauseAutoPlayOnHover:!1,wrapAround:!0,contain:!0,arrowShape:{x0:10,x1:70,y1:45,x2:75,y2:40,x3:20}});$r.on("change",function(Fr){Fe.ref.galleryIndex.innerHTML=Fr+1}),this.ref.prev.addEventListener("click",function(Fr){$r.previous()}),this.ref.next.addEventListener("click",function(Fr){$r.next()})}}gsapWithCSS.registerPlugin(ScrollTrigger$1);class Header extends _default$1{constructor(Fe){super(Fe),this.ref={links:[],sections:[]}}mount(){let Fe=this;this.ref.links.forEach(function(jr,zr){jr.addEventListener("click",function(){Fe.closeSections(),Fe.openSection(zr)})});let Fr=new Proxy(new URLSearchParams(window.location.search),{get:(jr,zr)=>jr.get(zr)}).section;Fr&&(this.closeSections(),this.openSection(Fr))}closeSections(){this.ref.sections.forEach(function(Fe){Fe.classList.add("hidden")}),this.ref.links.forEach(function(Fe){Fe.classList.remove("underline")})}openSection(Fe){this.ref.sections[Fe].classList.remove("hidden"),this.ref.links[Fe].classList.add("underline")}}class Gallery extends _default$1{constructor(Fe){super(Fe),this.ref={},this.options={style:""}}mount(){new Flickity(this.element,{prevNextButtons:this.options.style!="small",freeScroll:!1,pageDots:!0,draggable:!0,imagesLoaded:!0,autoPlay:!1,pauseAutoPlayOnHover:!1,wrapAround:!0,contain:!0,arrowShape:{x0:10,x1:70,y1:45,x2:75,y2:40,x3:20}})}}/*! js-cookie v3.0.5 | MIT */function assign$2(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe];for(var Fr in $r)_r[Fr]=$r[Fr]}return _r}var defaultConverter={read:function(_r){return _r[0]==='"'&&(_r=_r.slice(1,-1)),_r.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(_r){return encodeURIComponent(_r).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function init(_r,Fe){function $r(jr,zr,Vr){if(typeof document!="undefined"){Vr=assign$2({},Fe,Vr),typeof Vr.expires=="number"&&(Vr.expires=new Date(Date.now()+Vr.expires*864e5)),Vr.expires&&(Vr.expires=Vr.expires.toUTCString()),jr=encodeURIComponent(jr).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var Wr="";for(var Kr in Vr)!Vr[Kr]||(Wr+="; "+Kr,Vr[Kr]!==!0&&(Wr+="="+Vr[Kr].split(";")[0]));return document.cookie=jr+"="+_r.write(zr,jr)+Wr}}function Fr(jr){if(!(typeof document=="undefined"||arguments.length&&!jr)){for(var zr=document.cookie?document.cookie.split("; "):[],Vr={},Wr=0;Wr<zr.length;Wr++){var Kr=zr[Wr].split("="),Gr=Kr.slice(1).join("=");try{var Yr=decodeURIComponent(Kr[0]);if(Vr[Yr]=_r.read(Gr,Yr),jr===Yr)break}catch{}}return jr?Vr[jr]:Vr}}return Object.create({set:$r,get:Fr,remove:function(jr,zr){$r(jr,"",assign$2({},zr,{expires:-1}))},withAttributes:function(jr){return init(this.converter,assign$2({},this.attributes,jr))},withConverter:function(jr){return init(assign$2({},this.converter,jr),this.attributes)}},{attributes:{value:Object.freeze(Fe)},converter:{value:Object.freeze(_r)}})}var api=init(defaultConverter,{path:"/"});class Announcement extends _default$1{constructor(Fe){super(Fe),this.ref={closeButton:{}}}mount(){let Fe=this,$r=this.element.getAttribute("data-announcement");api.get("announcement-"+$r)==null&&setTimeout(function(){gsapWithCSS.to(Fe.element,{y:"0%"})},500),this.ref.closeButton.addEventListener("click",function(Fr){gsapWithCSS.to(Fe.element,{y:"100%"}),api.set("announcement-"+$r,"seen",{expires:7})})}}/*!
 * ScrollToPlugin 3.12.1
 * https://greensock.com
 *
 * @license Copyright 2008-2023, GreenSock. All rights reserved.
 * Subject to the terms at https://greensock.com/standard-license or for
 * Club GreenSock members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/var gsap,_coreInitted,_window,_docEl,_body,_toArray,_config,ScrollTrigger,_windowExists=function(){return typeof window!="undefined"},_getGSAP=function(){return gsap||_windowExists()&&(gsap=window.gsap)&&gsap.registerPlugin&&gsap},_isString=function(Fe){return typeof Fe=="string"},_isFunction=function(Fe){return typeof Fe=="function"},_max=function(Fe,$r){var Fr=$r==="x"?"Width":"Height",jr="scroll"+Fr,zr="client"+Fr;return Fe===_window||Fe===_docEl||Fe===_body?Math.max(_docEl[jr],_body[jr])-(_window["inner"+Fr]||_docEl[zr]||_body[zr]):Fe[jr]-Fe["offset"+Fr]},_buildGetter=function(Fe,$r){var Fr="scroll"+($r==="x"?"Left":"Top");return Fe===_window&&(Fe.pageXOffset!=null?Fr="page"+$r.toUpperCase()+"Offset":Fe=_docEl[Fr]!=null?_docEl:_body),function(){return Fe[Fr]}},_clean=function(Fe,$r,Fr,jr){if(_isFunction(Fe)&&(Fe=Fe($r,Fr,jr)),typeof Fe!="object")return _isString(Fe)&&Fe!=="max"&&Fe.charAt(1)!=="="?{x:Fe,y:Fe}:{y:Fe};if(Fe.nodeType)return{y:Fe,x:Fe};var zr={},Vr;for(Vr in Fe)zr[Vr]=Vr!=="onAutoKill"&&_isFunction(Fe[Vr])?Fe[Vr]($r,Fr,jr):Fe[Vr];return zr},_getOffset=function(Fe,$r){if(Fe=_toArray(Fe)[0],!Fe||!Fe.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var Fr=Fe.getBoundingClientRect(),jr=!$r||$r===_window||$r===_body,zr=jr?{top:_docEl.clientTop-(_window.pageYOffset||_docEl.scrollTop||_body.scrollTop||0),left:_docEl.clientLeft-(_window.pageXOffset||_docEl.scrollLeft||_body.scrollLeft||0)}:$r.getBoundingClientRect(),Vr={x:Fr.left-zr.left,y:Fr.top-zr.top};return!jr&&$r&&(Vr.x+=_buildGetter($r,"x")(),Vr.y+=_buildGetter($r,"y")()),Vr},_parseVal=function(Fe,$r,Fr,jr,zr){return!isNaN(Fe)&&typeof Fe!="object"?parseFloat(Fe)-zr:_isString(Fe)&&Fe.charAt(1)==="="?parseFloat(Fe.substr(2))*(Fe.charAt(0)==="-"?-1:1)+jr-zr:Fe==="max"?_max($r,Fr)-zr:Math.min(_max($r,Fr),_getOffset(Fe,$r)[Fr]-zr)},_initCore=function(){gsap=_getGSAP(),_windowExists()&&gsap&&typeof document!="undefined"&&document.body&&(_window=window,_body=document.body,_docEl=document.documentElement,_toArray=gsap.utils.toArray,gsap.config({autoKillThreshold:7}),_config=gsap.config(),_coreInitted=1)},ScrollToPlugin={version:"3.12.1",name:"scrollTo",rawVars:1,register:function(Fe){gsap=Fe,_initCore()},init:function(Fe,$r,Fr,jr,zr){_coreInitted||_initCore();var Vr=this,Wr=gsap.getProperty(Fe,"scrollSnapType");Vr.isWin=Fe===_window,Vr.target=Fe,Vr.tween=Fr,$r=_clean($r,jr,Fe,zr),Vr.vars=$r,Vr.autoKill=!!$r.autoKill,Vr.getX=_buildGetter(Fe,"x"),Vr.getY=_buildGetter(Fe,"y"),Vr.x=Vr.xPrev=Vr.getX(),Vr.y=Vr.yPrev=Vr.getY(),ScrollTrigger||(ScrollTrigger=gsap.core.globals().ScrollTrigger),gsap.getProperty(Fe,"scrollBehavior")==="smooth"&&gsap.set(Fe,{scrollBehavior:"auto"}),Wr&&Wr!=="none"&&(Vr.snap=1,Vr.snapInline=Fe.style.scrollSnapType,Fe.style.scrollSnapType="none"),$r.x!=null?(Vr.add(Vr,"x",Vr.x,_parseVal($r.x,Fe,"x",Vr.x,$r.offsetX||0),jr,zr),Vr._props.push("scrollTo_x")):Vr.skipX=1,$r.y!=null?(Vr.add(Vr,"y",Vr.y,_parseVal($r.y,Fe,"y",Vr.y,$r.offsetY||0),jr,zr),Vr._props.push("scrollTo_y")):Vr.skipY=1},render:function(Fe,$r){for(var Fr=$r._pt,jr=$r.target,zr=$r.tween,Vr=$r.autoKill,Wr=$r.xPrev,Kr=$r.yPrev,Gr=$r.isWin,Yr=$r.snap,Qr=$r.snapInline,Jr,Zr,tn,en,rn;Fr;)Fr.r(Fe,Fr.d),Fr=Fr._next;Jr=Gr||!$r.skipX?$r.getX():Wr,Zr=Gr||!$r.skipY?$r.getY():Kr,tn=Zr-Kr,en=Jr-Wr,rn=_config.autoKillThreshold,$r.x<0&&($r.x=0),$r.y<0&&($r.y=0),Vr&&(!$r.skipX&&(en>rn||en<-rn)&&Jr<_max(jr,"x")&&($r.skipX=1),!$r.skipY&&(tn>rn||tn<-rn)&&Zr<_max(jr,"y")&&($r.skipY=1),$r.skipX&&$r.skipY&&(zr.kill(),$r.vars.onAutoKill&&$r.vars.onAutoKill.apply(zr,$r.vars.onAutoKillParams||[]))),Gr?_window.scrollTo($r.skipX?Jr:$r.x,$r.skipY?Zr:$r.y):($r.skipY||(jr.scrollTop=$r.y),$r.skipX||(jr.scrollLeft=$r.x)),Yr&&(Fe===1||Fe===0)&&(Zr=jr.scrollTop,Jr=jr.scrollLeft,Qr?jr.style.scrollSnapType=Qr:jr.style.removeProperty("scroll-snap-type"),jr.scrollTop=Zr+1,jr.scrollLeft=Jr+1,jr.scrollTop=Zr,jr.scrollLeft=Jr),$r.xPrev=$r.x,$r.yPrev=$r.y,ScrollTrigger&&ScrollTrigger.update()},kill:function(Fe){var $r=Fe==="scrollTo";($r||Fe==="scrollTo_x")&&(this.skipX=1),($r||Fe==="scrollTo_y")&&(this.skipY=1)}};ScrollToPlugin.max=_max;ScrollToPlugin.getOffset=_getOffset;ScrollToPlugin.buildGetter=_buildGetter;_getGSAP()&&gsap.registerPlugin(ScrollToPlugin);gsapWithCSS.registerPlugin(ScrollToPlugin);class StaffPicks extends _default$1{constructor(Fe){super(Fe)}mount(){htmx.on("htmx:afterSwap",function(Fe){gsapWithCSS.to(window,.4,{scrollTo:0})})}}class Jobs extends _default$1{constructor(Fe){super(Fe),this.ref={questions:[],answers:[],answersInner:[],arrows:[]}}mount(){this.ref.questions.forEach((Fe,$r)=>{let Fr=this;Fe.addEventListener("click",function(){console.log("hello"),Fr.openAnswer($r)})})}openAnswer(Fe){let $r=this;this.ref.answers.forEach((Fr,jr)=>{jr===Fe?Fr.classList.contains("open")?$r.closeAnswer(Fr,jr):(Fr.classList.add("open"),gsapWithCSS.to($r.ref.arrows[jr],{rotate:180}),gsapWithCSS.to(Fr,{maxHeight:$r.ref.answersInner[jr].offsetHeight})):Fr.classList.contains("open")&&$r.closeAnswer(Fr,jr)})}closeAnswer(Fe,$r){let Fr=this;Fe.classList.remove("open"),gsapWithCSS.to(Fr.ref.arrows[$r],{rotate:0}),gsapWithCSS.to(Fe,{maxHeight:0})}}class HomeCarousel extends _default$1{constructor(Fe){super(Fe),this.ref={},this.options={style:""}}mount(){new Flickity(this.element,{setGallerySize:!1,prevNextButtons:!0,freeScroll:!1,pageDots:!0,draggable:!0,imagesLoaded:!0,autoPlay:5e3,pauseAutoPlayOnHover:!1,wrapAround:!0,contain:!0,arrowShape:{x0:10,x1:70,y1:45,x2:75,y2:40,x3:20}})}}class BookCategories extends _default$1{constructor(Fe){super(Fe),this.ref={seeMore:{},cats:[]},this.state={open:!1}}mount(){let Fe=this;this.ref.seeMore&&this.ref.seeMore.addEventListener("click",function(){Fe.state.open?(Fe.setState({open:!1}),Fe.ref.cats.forEach(function($r,Fr){Fr>1&&$r.classList.add("hidden")}),Fe.ref.seeMore.innerHTML="See More"):(Fe.setState({open:!0}),Fe.ref.cats.forEach(function($r){$r.classList.remove("hidden")}),Fe.ref.seeMore.innerHTML="See Less")})}}const components={Header:Header$1,Gallery:Gallery$1,Faqs:Header,ProductGallery:Gallery,Announcement,StaffPicks,Jobs,HomeCarousel,BookCategories};var htmx_min={exports:{}};(function(module){(function(_r,Fe){module.exports?module.exports=Fe():_r.htmx=_r.htmx||Fe()})(typeof self!="undefined"?self:commonjsGlobal,function(){return function(){var Q={onLoad:t,process:Bt,on:Z,off:K,trigger:ce,ajax:Or,find:C,findAll:f,closest:v,values:function(_r,Fe){var $r=ur(_r,Fe||"post");return $r.values},remove:B,addClass:F,removeClass:n,toggleClass:V,takeClass:j,defineExtension:kr,removeExtension:Pr,logAll:X,logNone:U,logger:null,config:{historyEnabled:!0,historyCacheSize:10,refreshOnHistoryMiss:!1,defaultSwapStyle:"innerHTML",defaultSwapDelay:0,defaultSettleDelay:20,includeIndicatorStyles:!0,indicatorClass:"htmx-indicator",requestClass:"htmx-request",addedClass:"htmx-added",settlingClass:"htmx-settling",swappingClass:"htmx-swapping",allowEval:!0,allowScriptTags:!0,inlineScriptNonce:"",attributesToSettle:["class","style","width","height"],withCredentials:!1,timeout:0,wsReconnectDelay:"full-jitter",wsBinaryType:"blob",disableSelector:"[hx-disable], [data-hx-disable]",useTemplateFragments:!1,scrollBehavior:"smooth",defaultFocusScroll:!1,getCacheBusterParam:!1,globalViewTransitions:!1,methodsThatUseUrlParams:["get"],selfRequestsOnly:!1,ignoreTitle:!1,scrollIntoViewOnBoost:!0},parseInterval:d,_:e,createEventSource:function(_r){return new EventSource(_r,{withCredentials:!0})},createWebSocket:function(_r){var Fe=new WebSocket(_r,[]);return Fe.binaryType=Q.config.wsBinaryType,Fe},version:"1.9.9"},r={addTriggerHandler:Tt,bodyContains:se,canAccessLocalStorage:M,findThisElement:de,filterValues:dr,hasAttribute:o,getAttributeValue:te,getClosestAttributeValue:ne,getClosestMatch:c,getExpressionVars:Cr,getHeaders:vr,getInputValues:ur,getInternalData:ae,getSwapSpecification:mr,getTriggerSpecs:Qe,getTarget:ge,makeFragment:l,mergeObjects:le,makeSettleInfo:R,oobSwap:xe,querySelectorExt:ue,selectAndSwap:Ue,settleImmediately:Yt,shouldCancel:it,triggerEvent:ce,triggerErrorEvent:fe,withExtensions:T},b=["get","post","put","delete","patch"],w=b.map(function(_r){return"[hx-"+_r+"], [data-hx-"+_r+"]"}).join(", ");function d(_r){if(_r!=null)return _r.slice(-2)=="ms"?parseFloat(_r.slice(0,-2))||void 0:_r.slice(-1)=="s"?parseFloat(_r.slice(0,-1))*1e3||void 0:_r.slice(-1)=="m"?parseFloat(_r.slice(0,-1))*1e3*60||void 0:parseFloat(_r)||void 0}function ee(_r,Fe){return _r.getAttribute&&_r.getAttribute(Fe)}function o(_r,Fe){return _r.hasAttribute&&(_r.hasAttribute(Fe)||_r.hasAttribute("data-"+Fe))}function te(_r,Fe){return ee(_r,Fe)||ee(_r,"data-"+Fe)}function u(_r){return _r.parentElement}function re(){return document}function c(_r,Fe){for(;_r&&!Fe(_r);)_r=u(_r);return _r||null}function S(_r,Fe,$r){var Fr=te(Fe,$r),jr=te(Fe,"hx-disinherit");return _r!==Fe&&jr&&(jr==="*"||jr.split(" ").indexOf($r)>=0)?"unset":Fr}function ne(_r,Fe){var $r=null;if(c(_r,function(Fr){return $r=S(_r,Fr,Fe)}),$r!=="unset")return $r}function h(_r,Fe){var $r=_r.matches||_r.matchesSelector||_r.msMatchesSelector||_r.mozMatchesSelector||_r.webkitMatchesSelector||_r.oMatchesSelector;return $r&&$r.call(_r,Fe)}function q(_r){var Fe=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,$r=Fe.exec(_r);return $r?$r[1].toLowerCase():""}function i(_r,Fe){for(var $r=new DOMParser,Fr=$r.parseFromString(_r,"text/html"),jr=Fr.body;Fe>0;)Fe--,jr=jr.firstChild;return jr==null&&(jr=re().createDocumentFragment()),jr}function H(_r){return _r.match(/<body/)}function l(_r){var Fe=!H(_r);if(Q.config.useTemplateFragments&&Fe){var $r=i("<body><template>"+_r+"</template></body>",0);return $r.querySelector("template").content}else{var Fr=q(_r);switch(Fr){case"thead":case"tbody":case"tfoot":case"colgroup":case"caption":return i("<table>"+_r+"</table>",1);case"col":return i("<table><colgroup>"+_r+"</colgroup></table>",2);case"tr":return i("<table><tbody>"+_r+"</tbody></table>",2);case"td":case"th":return i("<table><tbody><tr>"+_r+"</tr></tbody></table>",3);case"script":case"style":return i("<div>"+_r+"</div>",1);default:return i(_r,0)}}}function ie(_r){_r&&_r()}function L(_r,Fe){return Object.prototype.toString.call(_r)==="[object "+Fe+"]"}function A(_r){return L(_r,"Function")}function N(_r){return L(_r,"Object")}function ae(_r){var Fe="htmx-internal-data",$r=_r[Fe];return $r||($r=_r[Fe]={}),$r}function I(_r){var Fe=[];if(_r)for(var $r=0;$r<_r.length;$r++)Fe.push(_r[$r]);return Fe}function oe(_r,Fe){if(_r)for(var $r=0;$r<_r.length;$r++)Fe(_r[$r])}function k(_r){var Fe=_r.getBoundingClientRect(),$r=Fe.top,Fr=Fe.bottom;return $r<window.innerHeight&&Fr>=0}function se(_r){return _r.getRootNode&&_r.getRootNode()instanceof window.ShadowRoot?re().body.contains(_r.getRootNode().host):re().body.contains(_r)}function P(_r){return _r.trim().split(/\s+/)}function le(_r,Fe){for(var $r in Fe)Fe.hasOwnProperty($r)&&(_r[$r]=Fe[$r]);return _r}function E(_r){try{return JSON.parse(_r)}catch(Fe){return x(Fe),null}}function M(){var _r="htmx:localStorageTest";try{return localStorage.setItem(_r,_r),localStorage.removeItem(_r),!0}catch{return!1}}function D(_r){try{var Fe=new URL(_r);return Fe&&(_r=Fe.pathname+Fe.search),_r.match("^/$")||(_r=_r.replace(/\/+$/,"")),_r}catch{return _r}}function e(e){return wr(re().body,function(){return eval(e)})}function t(_r){var Fe=Q.on("htmx:load",function($r){_r($r.detail.elt)});return Fe}function X(){Q.logger=function(_r,Fe,$r){console&&console.log(Fe,_r,$r)}}function U(){Q.logger=null}function C(_r,Fe){return Fe?_r.querySelector(Fe):C(re(),_r)}function f(_r,Fe){return Fe?_r.querySelectorAll(Fe):f(re(),_r)}function B(_r,Fe){_r=s(_r),Fe?setTimeout(function(){B(_r),_r=null},Fe):_r.parentElement.removeChild(_r)}function F(_r,Fe,$r){_r=s(_r),$r?setTimeout(function(){F(_r,Fe),_r=null},$r):_r.classList&&_r.classList.add(Fe)}function n(_r,Fe,$r){_r=s(_r),$r?setTimeout(function(){n(_r,Fe),_r=null},$r):_r.classList&&(_r.classList.remove(Fe),_r.classList.length===0&&_r.removeAttribute("class"))}function V(_r,Fe){_r=s(_r),_r.classList.toggle(Fe)}function j(_r,Fe){_r=s(_r),oe(_r.parentElement.children,function($r){n($r,Fe)}),F(_r,Fe)}function v(_r,Fe){if(_r=s(_r),_r.closest)return _r.closest(Fe);do if(_r==null||h(_r,Fe))return _r;while(_r=_r&&u(_r));return null}function g(_r,Fe){return _r.substring(0,Fe.length)===Fe}function _(_r,Fe){return _r.substring(_r.length-Fe.length)===Fe}function z(_r){var Fe=_r.trim();return g(Fe,"<")&&_(Fe,"/>")?Fe.substring(1,Fe.length-2):Fe}function W(_r,Fe){return Fe.indexOf("closest ")===0?[v(_r,z(Fe.substr(8)))]:Fe.indexOf("find ")===0?[C(_r,z(Fe.substr(5)))]:Fe==="next"?[_r.nextElementSibling]:Fe.indexOf("next ")===0?[$(_r,z(Fe.substr(5)))]:Fe==="previous"?[_r.previousElementSibling]:Fe.indexOf("previous ")===0?[G(_r,z(Fe.substr(9)))]:Fe==="document"?[document]:Fe==="window"?[window]:Fe==="body"?[document.body]:re().querySelectorAll(z(Fe))}var $=function(_r,Fe){for(var $r=re().querySelectorAll(Fe),Fr=0;Fr<$r.length;Fr++){var jr=$r[Fr];if(jr.compareDocumentPosition(_r)===Node.DOCUMENT_POSITION_PRECEDING)return jr}},G=function(_r,Fe){for(var $r=re().querySelectorAll(Fe),Fr=$r.length-1;Fr>=0;Fr--){var jr=$r[Fr];if(jr.compareDocumentPosition(_r)===Node.DOCUMENT_POSITION_FOLLOWING)return jr}};function ue(_r,Fe){return Fe?W(_r,Fe)[0]:W(re().body,_r)[0]}function s(_r){return L(_r,"String")?C(_r):_r}function J(_r,Fe,$r){return A(Fe)?{target:re().body,event:_r,listener:Fe}:{target:s(_r),event:Fe,listener:$r}}function Z(_r,Fe,$r){Dr(function(){var jr=J(_r,Fe,$r);jr.target.addEventListener(jr.event,jr.listener)});var Fr=A(Fe);return Fr?Fe:$r}function K(_r,Fe,$r){return Dr(function(){var Fr=J(_r,Fe,$r);Fr.target.removeEventListener(Fr.event,Fr.listener)}),A(Fe)?Fe:$r}var ve=re().createElement("output");function Y(_r,Fe){var $r=ne(_r,Fe);if($r){if($r==="this")return[de(_r,Fe)];var Fr=W(_r,$r);return Fr.length===0?(x('The selector "'+$r+'" on '+Fe+" returned no matches!"),[ve]):Fr}}function de(_r,Fe){return c(_r,function($r){return te($r,Fe)!=null})}function ge(_r){var Fe=ne(_r,"hx-target");if(Fe)return Fe==="this"?de(_r,"hx-target"):ue(_r,Fe);var $r=ae(_r);return $r.boosted?re().body:_r}function me(_r){for(var Fe=Q.config.attributesToSettle,$r=0;$r<Fe.length;$r++)if(_r===Fe[$r])return!0;return!1}function pe(_r,Fe){oe(_r.attributes,function($r){!Fe.hasAttribute($r.name)&&me($r.name)&&_r.removeAttribute($r.name)}),oe(Fe.attributes,function($r){me($r.name)&&_r.setAttribute($r.name,$r.value)})}function ye(_r,Fe){for(var $r=Mr(Fe),Fr=0;Fr<$r.length;Fr++){var jr=$r[Fr];try{if(jr.isInlineSwap(_r))return!0}catch(zr){x(zr)}}return _r==="outerHTML"}function xe(_r,Fe,$r){var Fr="#"+ee(Fe,"id"),jr="outerHTML";_r==="true"||(_r.indexOf(":")>0?(jr=_r.substr(0,_r.indexOf(":")),Fr=_r.substr(_r.indexOf(":")+1,_r.length)):jr=_r);var zr=re().querySelectorAll(Fr);return zr?(oe(zr,function(Vr){var Wr,Kr=Fe.cloneNode(!0);Wr=re().createDocumentFragment(),Wr.appendChild(Kr),ye(jr,Vr)||(Wr=Kr);var Gr={shouldSwap:!0,target:Vr,fragment:Wr};!ce(Vr,"htmx:oobBeforeSwap",Gr)||(Vr=Gr.target,Gr.shouldSwap&&De(jr,Vr,Vr,Wr,$r),oe($r.elts,function(Yr){ce(Yr,"htmx:oobAfterSwap",Gr)}))}),Fe.parentNode.removeChild(Fe)):(Fe.parentNode.removeChild(Fe),fe(re().body,"htmx:oobErrorNoTarget",{content:Fe})),_r}function be(_r,Fe,$r){var Fr=ne(_r,"hx-select-oob");if(Fr){var jr=Fr.split(",");for(let Gr=0;Gr<jr.length;Gr++){var zr=jr[Gr].split(":",2),Vr=zr[0].trim();Vr.indexOf("#")===0&&(Vr=Vr.substring(1));var Wr=zr[1]||"true",Kr=Fe.querySelector("#"+Vr);Kr&&xe(Wr,Kr,$r)}}oe(f(Fe,"[hx-swap-oob], [data-hx-swap-oob]"),function(Gr){var Yr=te(Gr,"hx-swap-oob");Yr!=null&&xe(Yr,Gr,$r)})}function we(_r){oe(f(_r,"[hx-preserve], [data-hx-preserve]"),function(Fe){var $r=te(Fe,"id"),Fr=re().getElementById($r);Fr!=null&&Fe.parentNode.replaceChild(Fr,Fe)})}function Se(_r,Fe,$r){oe(Fe.querySelectorAll("[id]"),function(Fr){var jr=ee(Fr,"id");if(jr&&jr.length>0){var zr=jr.replace("'","\\'"),Vr=Fr.tagName.replace(":","\\:"),Wr=_r.querySelector(Vr+"[id='"+zr+"']");if(Wr&&Wr!==_r){var Kr=Fr.cloneNode();pe(Fr,Wr),$r.tasks.push(function(){pe(Fr,Kr)})}}})}function Ee(_r){return function(){n(_r,Q.config.addedClass),Bt(_r),Ot(_r),Ce(_r),ce(_r,"htmx:load")}}function Ce(_r){var Fe="[autofocus]",$r=h(_r,Fe)?_r:_r.querySelector(Fe);$r!=null&&$r.focus()}function a(_r,Fe,$r,Fr){for(Se(_r,$r,Fr);$r.childNodes.length>0;){var jr=$r.firstChild;F(jr,Q.config.addedClass),_r.insertBefore(jr,Fe),jr.nodeType!==Node.TEXT_NODE&&jr.nodeType!==Node.COMMENT_NODE&&Fr.tasks.push(Ee(jr))}}function Te(_r,Fe){for(var $r=0;$r<_r.length;)Fe=(Fe<<5)-Fe+_r.charCodeAt($r++)|0;return Fe}function Re(_r){var Fe=0;if(_r.attributes)for(var $r=0;$r<_r.attributes.length;$r++){var Fr=_r.attributes[$r];Fr.value&&(Fe=Te(Fr.name,Fe),Fe=Te(Fr.value,Fe))}return Fe}function Oe(_r){var Fe=ae(_r);if(Fe.onHandlers){for(let $r=0;$r<Fe.onHandlers.length;$r++){const Fr=Fe.onHandlers[$r];_r.removeEventListener(Fr.event,Fr.listener)}delete Fe.onHandlers}}function qe(_r){var Fe=ae(_r);Fe.timeout&&clearTimeout(Fe.timeout),Fe.webSocket&&Fe.webSocket.close(),Fe.sseEventSource&&Fe.sseEventSource.close(),Fe.listenerInfos&&oe(Fe.listenerInfos,function($r){$r.on&&$r.on.removeEventListener($r.trigger,$r.listener)}),Fe.initHash&&(Fe.initHash=null),Oe(_r)}function m(_r){ce(_r,"htmx:beforeCleanupElement"),qe(_r),_r.children&&oe(_r.children,function(Fe){m(Fe)})}function He(_r,Fe,$r){if(_r.tagName==="BODY")return Pe(_r,Fe,$r);var Fr,jr=_r.previousSibling;for(a(u(_r),_r,Fe,$r),jr==null?Fr=u(_r).firstChild:Fr=jr.nextSibling,ae(_r).replacedWith=Fr,$r.elts=$r.elts.filter(function(zr){return zr!=_r});Fr&&Fr!==_r;)Fr.nodeType===Node.ELEMENT_NODE&&$r.elts.push(Fr),Fr=Fr.nextElementSibling;m(_r),u(_r).removeChild(_r)}function Le(_r,Fe,$r){return a(_r,_r.firstChild,Fe,$r)}function Ae(_r,Fe,$r){return a(u(_r),_r,Fe,$r)}function Ne(_r,Fe,$r){return a(_r,null,Fe,$r)}function Ie(_r,Fe,$r){return a(u(_r),_r.nextSibling,Fe,$r)}function ke(_r,Fe,$r){return m(_r),u(_r).removeChild(_r)}function Pe(_r,Fe,$r){var Fr=_r.firstChild;if(a(_r,Fr,Fe,$r),Fr){for(;Fr.nextSibling;)m(Fr.nextSibling),_r.removeChild(Fr.nextSibling);m(Fr),_r.removeChild(Fr)}}function Me(_r,Fe,$r){var Fr=$r||ne(_r,"hx-select");if(Fr){var jr=re().createDocumentFragment();oe(Fe.querySelectorAll(Fr),function(zr){jr.appendChild(zr)}),Fe=jr}return Fe}function De(_r,Fe,$r,Fr,jr){switch(_r){case"none":return;case"outerHTML":He($r,Fr,jr);return;case"afterbegin":Le($r,Fr,jr);return;case"beforebegin":Ae($r,Fr,jr);return;case"beforeend":Ne($r,Fr,jr);return;case"afterend":Ie($r,Fr,jr);return;case"delete":ke($r);return;default:for(var zr=Mr(Fe),Vr=0;Vr<zr.length;Vr++){var Wr=zr[Vr];try{var Kr=Wr.handleSwap(_r,$r,Fr,jr);if(Kr){if(typeof Kr.length!="undefined")for(var Gr=0;Gr<Kr.length;Gr++){var Yr=Kr[Gr];Yr.nodeType!==Node.TEXT_NODE&&Yr.nodeType!==Node.COMMENT_NODE&&jr.tasks.push(Ee(Yr))}return}}catch(Qr){x(Qr)}}_r==="innerHTML"?Pe($r,Fr,jr):De(Q.config.defaultSwapStyle,Fe,$r,Fr,jr)}}function Xe(_r){if(_r.indexOf("<title")>-1){var Fe=_r.replace(/<svg(\s[^>]*>|>)([\s\S]*?)<\/svg>/gim,""),$r=Fe.match(/<title(\s[^>]*>|>)([\s\S]*?)<\/title>/im);if($r)return $r[2]}}function Ue(_r,Fe,$r,Fr,jr,zr){jr.title=Xe(Fr);var Vr=l(Fr);if(Vr)return be($r,Vr,jr),Vr=Me($r,Vr,zr),we(Vr),De(_r,$r,Fe,Vr,jr)}function Be(_r,Fe,$r){var Fr=_r.getResponseHeader(Fe);if(Fr.indexOf("{")===0){var jr=E(Fr);for(var zr in jr)if(jr.hasOwnProperty(zr)){var Vr=jr[zr];N(Vr)||(Vr={value:Vr}),ce($r,zr,Vr)}}else for(var Wr=Fr.split(","),Kr=0;Kr<Wr.length;Kr++)ce($r,Wr[Kr].trim(),[])}var p=/[\s,]/,Ve=/[_$a-zA-Z]/,je=/[_$a-zA-Z0-9]/,_e=['"',"'","/"],ze=/[^\s]/,We=/[{(]/,$e=/[})]/;function Ge(_r){for(var Fe=[],$r=0;$r<_r.length;){if(Ve.exec(_r.charAt($r))){for(var Fr=$r;je.exec(_r.charAt($r+1));)$r++;Fe.push(_r.substr(Fr,$r-Fr+1))}else if(_e.indexOf(_r.charAt($r))!==-1){var jr=_r.charAt($r),Fr=$r;for($r++;$r<_r.length&&_r.charAt($r)!==jr;)_r.charAt($r)==="\\"&&$r++,$r++;Fe.push(_r.substr(Fr,$r-Fr+1))}else{var zr=_r.charAt($r);Fe.push(zr)}$r++}return Fe}function Je(_r,Fe,$r){return Ve.exec(_r.charAt(0))&&_r!=="true"&&_r!=="false"&&_r!=="this"&&_r!==$r&&Fe!=="."}function Ze(_r,Fe,$r){if(Fe[0]==="["){Fe.shift();for(var Fr=1,jr=" return (function("+$r+"){ return (",zr=null;Fe.length>0;){var Vr=Fe[0];if(Vr==="]"){if(Fr--,Fr===0){zr===null&&(jr=jr+"true"),Fe.shift(),jr+=")})";try{var Wr=wr(_r,function(){return Function(jr)()},function(){return!0});return Wr.source=jr,Wr}catch(Kr){return fe(re().body,"htmx:syntax:error",{error:Kr,source:jr}),null}}}else Vr==="["&&Fr++;Je(Vr,zr,$r)?jr+="(("+$r+"."+Vr+") ? ("+$r+"."+Vr+") : (window."+Vr+"))":jr=jr+Vr,zr=Fe.shift()}}}function y(_r,Fe){for(var $r="";_r.length>0&&!_r[0].match(Fe);)$r+=_r.shift();return $r}function Ke(_r){var Fe;return _r.length>0&&We.test(_r[0])?(_r.shift(),Fe=y(_r,$e).trim(),_r.shift()):Fe=y(_r,p),Fe}var Ye="input, textarea, select";function Qe(_r){var Fe=te(_r,"hx-trigger"),$r=[];if(Fe){var Fr=Ge(Fe);do{y(Fr,ze);var jr=Fr.length,zr=y(Fr,/[,\[\s]/);if(zr!=="")if(zr==="every"){var Vr={trigger:"every"};y(Fr,ze),Vr.pollInterval=d(y(Fr,/[,\[\s]/)),y(Fr,ze);var Wr=Ze(_r,Fr,"event");Wr&&(Vr.eventFilter=Wr),$r.push(Vr)}else if(zr.indexOf("sse:")===0)$r.push({trigger:"sse",sseEvent:zr.substr(4)});else{var Kr={trigger:zr},Wr=Ze(_r,Fr,"event");for(Wr&&(Kr.eventFilter=Wr);Fr.length>0&&Fr[0]!==",";){y(Fr,ze);var Gr=Fr.shift();if(Gr==="changed")Kr.changed=!0;else if(Gr==="once")Kr.once=!0;else if(Gr==="consume")Kr.consume=!0;else if(Gr==="delay"&&Fr[0]===":")Fr.shift(),Kr.delay=d(y(Fr,p));else if(Gr==="from"&&Fr[0]===":"){if(Fr.shift(),We.test(Fr[0]))var Yr=Ke(Fr);else{var Yr=y(Fr,p);if(Yr==="closest"||Yr==="find"||Yr==="next"||Yr==="previous"){Fr.shift();var Qr=Ke(Fr);Qr.length>0&&(Yr+=" "+Qr)}}Kr.from=Yr}else Gr==="target"&&Fr[0]===":"?(Fr.shift(),Kr.target=Ke(Fr)):Gr==="throttle"&&Fr[0]===":"?(Fr.shift(),Kr.throttle=d(y(Fr,p))):Gr==="queue"&&Fr[0]===":"?(Fr.shift(),Kr.queue=y(Fr,p)):Gr==="root"&&Fr[0]===":"?(Fr.shift(),Kr[Gr]=Ke(Fr)):Gr==="threshold"&&Fr[0]===":"?(Fr.shift(),Kr[Gr]=y(Fr,p)):fe(_r,"htmx:syntax:error",{token:Fr.shift()})}$r.push(Kr)}Fr.length===jr&&fe(_r,"htmx:syntax:error",{token:Fr.shift()}),y(Fr,ze)}while(Fr[0]===","&&Fr.shift())}return $r.length>0?$r:h(_r,"form")?[{trigger:"submit"}]:h(_r,'input[type="button"], input[type="submit"]')?[{trigger:"click"}]:h(_r,Ye)?[{trigger:"change"}]:[{trigger:"click"}]}function et(_r){ae(_r).cancelled=!0}function tt(_r,Fe,$r){var Fr=ae(_r);Fr.timeout=setTimeout(function(){se(_r)&&Fr.cancelled!==!0&&(ot($r,_r,Vt("hx:poll:trigger",{triggerSpec:$r,target:_r}))||Fe(_r),tt(_r,Fe,$r))},$r.pollInterval)}function rt(_r){return location.hostname===_r.hostname&&ee(_r,"href")&&ee(_r,"href").indexOf("#")!==0}function nt(_r,Fe,$r){if(_r.tagName==="A"&&rt(_r)&&(_r.target===""||_r.target==="_self")||_r.tagName==="FORM"){Fe.boosted=!0;var Fr,jr;if(_r.tagName==="A")Fr="get",jr=ee(_r,"href");else{var zr=ee(_r,"method");Fr=zr?zr.toLowerCase():"get",jr=ee(_r,"action")}$r.forEach(function(Vr){st(_r,function(Wr,Kr){if(v(Wr,Q.config.disableSelector)){m(Wr);return}he(Fr,jr,Wr,Kr)},Fe,Vr,!0)})}}function it(_r,Fe){return!!((_r.type==="submit"||_r.type==="click")&&(Fe.tagName==="FORM"||h(Fe,'input[type="submit"], button')&&v(Fe,"form")!==null||Fe.tagName==="A"&&Fe.href&&(Fe.getAttribute("href")==="#"||Fe.getAttribute("href").indexOf("#")!==0)))}function at(_r,Fe){return ae(_r).boosted&&_r.tagName==="A"&&Fe.type==="click"&&(Fe.ctrlKey||Fe.metaKey)}function ot(_r,Fe,$r){var Fr=_r.eventFilter;if(Fr)try{return Fr.call(Fe,$r)!==!0}catch(jr){return fe(re().body,"htmx:eventFilter:error",{error:jr,source:Fr.source}),!0}return!1}function st(_r,Fe,$r,Fr,jr){var zr=ae(_r),Vr;Fr.from?Vr=W(_r,Fr.from):Vr=[_r],Fr.changed&&Vr.forEach(function(Wr){var Kr=ae(Wr);Kr.lastValue=Wr.value}),oe(Vr,function(Wr){var Kr=function(Gr){if(!se(_r)){Wr.removeEventListener(Fr.trigger,Kr);return}if(!at(_r,Gr)&&((jr||it(Gr,_r))&&Gr.preventDefault(),!ot(Fr,_r,Gr))){var Yr=ae(Gr);if(Yr.triggerSpec=Fr,Yr.handledFor==null&&(Yr.handledFor=[]),Yr.handledFor.indexOf(_r)<0){if(Yr.handledFor.push(_r),Fr.consume&&Gr.stopPropagation(),Fr.target&&Gr.target&&!h(Gr.target,Fr.target))return;if(Fr.once){if(zr.triggeredOnce)return;zr.triggeredOnce=!0}if(Fr.changed){var Qr=ae(Wr);if(Qr.lastValue===Wr.value)return;Qr.lastValue=Wr.value}if(zr.delayed&&clearTimeout(zr.delayed),zr.throttle)return;Fr.throttle?zr.throttle||(Fe(_r,Gr),zr.throttle=setTimeout(function(){zr.throttle=null},Fr.throttle)):Fr.delay?zr.delayed=setTimeout(function(){Fe(_r,Gr)},Fr.delay):(ce(_r,"htmx:trigger"),Fe(_r,Gr))}}};$r.listenerInfos==null&&($r.listenerInfos=[]),$r.listenerInfos.push({trigger:Fr.trigger,listener:Kr,on:Wr}),Wr.addEventListener(Fr.trigger,Kr)})}var lt=!1,ut=null;function ft(){ut||(ut=function(){lt=!0},window.addEventListener("scroll",ut),setInterval(function(){lt&&(lt=!1,oe(re().querySelectorAll("[hx-trigger='revealed'],[data-hx-trigger='revealed']"),function(_r){ct(_r)}))},200))}function ct(_r){if(!o(_r,"data-hx-revealed")&&k(_r)){_r.setAttribute("data-hx-revealed","true");var Fe=ae(_r);Fe.initHash?ce(_r,"revealed"):_r.addEventListener("htmx:afterProcessNode",function($r){ce(_r,"revealed")},{once:!0})}}function ht(_r,Fe,$r){for(var Fr=P($r),jr=0;jr<Fr.length;jr++){var zr=Fr[jr].split(/:(.+)/);zr[0]==="connect"&&vt(_r,zr[1],0),zr[0]==="send"&&gt(_r)}}function vt(_r,Fe,$r){if(!!se(_r)){if(Fe.indexOf("/")==0){var Fr=location.hostname+(location.port?":"+location.port:"");location.protocol=="https:"?Fe="wss://"+Fr+Fe:location.protocol=="http:"&&(Fe="ws://"+Fr+Fe)}var jr=Q.createWebSocket(Fe);jr.onerror=function(zr){fe(_r,"htmx:wsError",{error:zr,socket:jr}),dt(_r)},jr.onclose=function(zr){if([1006,1012,1013].indexOf(zr.code)>=0){var Vr=mt($r);setTimeout(function(){vt(_r,Fe,$r+1)},Vr)}},jr.onopen=function(zr){$r=0},ae(_r).webSocket=jr,jr.addEventListener("message",function(zr){if(!dt(_r)){var Vr=zr.data;T(_r,function(Jr){Vr=Jr.transformResponse(Vr,null,_r)});for(var Wr=R(_r),Kr=l(Vr),Gr=I(Kr.children),Yr=0;Yr<Gr.length;Yr++){var Qr=Gr[Yr];xe(te(Qr,"hx-swap-oob")||"true",Qr,Wr)}Yt(Wr.tasks)}})}}function dt(_r){if(!se(_r))return ae(_r).webSocket.close(),!0}function gt(_r){var Fe=c(_r,function($r){return ae($r).webSocket!=null});Fe?_r.addEventListener(Qe(_r)[0].trigger,function($r){var Fr=ae(Fe).webSocket,jr=vr(_r,Fe),zr=ur(_r,"post"),Vr=zr.errors,Wr=zr.values,Kr=Cr(_r),Gr=le(Wr,Kr),Yr=dr(Gr,_r);if(Yr.HEADERS=jr,Vr&&Vr.length>0){ce(_r,"htmx:validation:halted",Vr);return}Fr.send(JSON.stringify(Yr)),it($r,_r)&&$r.preventDefault()}):fe(_r,"htmx:noWebSocketSourceError")}function mt(_r){var Fe=Q.config.wsReconnectDelay;if(typeof Fe=="function")return Fe(_r);if(Fe==="full-jitter"){var $r=Math.min(_r,6),Fr=1e3*Math.pow(2,$r);return Fr*Math.random()}x('htmx.config.wsReconnectDelay must either be a function or the string "full-jitter"')}function pt(_r,Fe,$r){for(var Fr=P($r),jr=0;jr<Fr.length;jr++){var zr=Fr[jr].split(/:(.+)/);zr[0]==="connect"&&yt(_r,zr[1]),zr[0]==="swap"&&xt(_r,zr[1])}}function yt(_r,Fe){var $r=Q.createEventSource(Fe);$r.onerror=function(Fr){fe(_r,"htmx:sseError",{error:Fr,source:$r}),wt(_r)},ae(_r).sseEventSource=$r}function xt(_r,Fe){var $r=c(_r,St);if($r){var Fr=ae($r).sseEventSource,jr=function(zr){if(!wt($r)){if(!se(_r)){Fr.removeEventListener(Fe,jr);return}var Vr=zr.data;T(_r,function(Yr){Vr=Yr.transformResponse(Vr,null,_r)});var Wr=mr(_r),Kr=ge(_r),Gr=R(_r);Ue(Wr.swapStyle,Kr,_r,Vr,Gr),Yt(Gr.tasks),ce(_r,"htmx:sseMessage",zr)}};ae(_r).sseListener=jr,Fr.addEventListener(Fe,jr)}else fe(_r,"htmx:noSSESourceError")}function bt(_r,Fe,$r){var Fr=c(_r,St);if(Fr){var jr=ae(Fr).sseEventSource,zr=function(){wt(Fr)||(se(_r)?Fe(_r):jr.removeEventListener($r,zr))};ae(_r).sseListener=zr,jr.addEventListener($r,zr)}else fe(_r,"htmx:noSSESourceError")}function wt(_r){if(!se(_r))return ae(_r).sseEventSource.close(),!0}function St(_r){return ae(_r).sseEventSource!=null}function Et(_r,Fe,$r,Fr){var jr=function(){$r.loaded||($r.loaded=!0,Fe(_r))};Fr?setTimeout(jr,Fr):jr()}function Ct(_r,Fe,$r){var Fr=!1;return oe(b,function(jr){if(o(_r,"hx-"+jr)){var zr=te(_r,"hx-"+jr);Fr=!0,Fe.path=zr,Fe.verb=jr,$r.forEach(function(Vr){Tt(_r,Vr,Fe,function(Wr,Kr){if(v(Wr,Q.config.disableSelector)){m(Wr);return}he(jr,zr,Wr,Kr)})})}}),Fr}function Tt(_r,Fe,$r,Fr){if(Fe.sseEvent)bt(_r,Fr,Fe.sseEvent);else if(Fe.trigger==="revealed")ft(),st(_r,Fr,$r,Fe),ct(_r);else if(Fe.trigger==="intersect"){var jr={};Fe.root&&(jr.root=ue(_r,Fe.root)),Fe.threshold&&(jr.threshold=parseFloat(Fe.threshold));var zr=new IntersectionObserver(function(Vr){for(var Wr=0;Wr<Vr.length;Wr++){var Kr=Vr[Wr];if(Kr.isIntersecting){ce(_r,"intersect");break}}},jr);zr.observe(_r),st(_r,Fr,$r,Fe)}else Fe.trigger==="load"?ot(Fe,_r,Vt("load",{elt:_r}))||Et(_r,Fr,$r,Fe.delay):Fe.pollInterval?($r.polling=!0,tt(_r,Fr,Fe)):st(_r,Fr,$r,Fe)}function Rt(_r){if(Q.config.allowScriptTags&&(_r.type==="text/javascript"||_r.type==="module"||_r.type==="")){var Fe=re().createElement("script");oe(_r.attributes,function(Fr){Fe.setAttribute(Fr.name,Fr.value)}),Fe.textContent=_r.textContent,Fe.async=!1,Q.config.inlineScriptNonce&&(Fe.nonce=Q.config.inlineScriptNonce);var $r=_r.parentElement;try{$r.insertBefore(Fe,_r)}catch(Fr){x(Fr)}finally{_r.parentElement&&_r.parentElement.removeChild(_r)}}}function Ot(_r){h(_r,"script")&&Rt(_r),oe(f(_r,"script"),function(Fe){Rt(Fe)})}function qt(){return document.querySelector("[hx-boost], [data-hx-boost]")}function Ht(_r){var Fe=null,$r=[];if(document.evaluate)for(var Fr=document.evaluate('//*[@*[ starts-with(name(), "hx-on:") or starts-with(name(), "data-hx-on:") ]]',_r);Fe=Fr.iterateNext();)$r.push(Fe);else for(var jr=document.getElementsByTagName("*"),zr=0;zr<jr.length;zr++)for(var Vr=jr[zr].attributes,Wr=0;Wr<Vr.length;Wr++){var Kr=Vr[Wr].name;(g(Kr,"hx-on:")||g(Kr,"data-hx-on:"))&&$r.push(jr[zr])}return $r}function Lt(_r){if(_r.querySelectorAll){var Fe=qt()?", a":"",$r=_r.querySelectorAll(w+Fe+", form, [type='submit'], [hx-sse], [data-hx-sse], [hx-ws], [data-hx-ws], [hx-ext], [data-hx-ext], [hx-trigger], [data-hx-trigger], [hx-on], [data-hx-on]");return $r}else return[]}function At(_r){var Fe=v(_r.target,"button, input[type='submit']"),$r=It(_r);$r&&($r.lastButtonClicked=Fe)}function Nt(_r){var Fe=It(_r);Fe&&(Fe.lastButtonClicked=null)}function It(_r){var Fe=v(_r.target,"button, input[type='submit']");if(!!Fe){var $r=s("#"+ee(Fe,"form"))||v(Fe,"form");if(!!$r)return ae($r)}}function kt(_r){_r.addEventListener("click",At),_r.addEventListener("focusin",At),_r.addEventListener("focusout",Nt)}function Pt(_r){var Fe=Ge(_r),$r=0;for(let Fr=0;Fr<Fe.length;Fr++){const jr=Fe[Fr];jr==="{"?$r++:jr==="}"&&$r--}return $r}function Mt(_r,Fe,$r){var Fr=ae(_r);Array.isArray(Fr.onHandlers)||(Fr.onHandlers=[]);var jr,zr=function(Vr){return wr(_r,function(){jr||(jr=new Function("event",$r)),jr.call(_r,Vr)})};_r.addEventListener(Fe,zr),Fr.onHandlers.push({event:Fe,listener:zr})}function Dt(_r){var Fe=te(_r,"hx-on");if(Fe){for(var $r={},Fr=Fe.split(`
`),jr=null,zr=0;Fr.length>0;){var Vr=Fr.shift(),Wr=Vr.match(/^\s*([a-zA-Z:\-\.]+:)(.*)/);zr===0&&Wr?(Vr.split(":"),jr=Wr[1].slice(0,-1),$r[jr]=Wr[2]):$r[jr]+=Vr,zr+=Pt(Vr)}for(var Kr in $r)Mt(_r,Kr,$r[Kr])}}function Xt(_r){Oe(_r);for(var Fe=0;Fe<_r.attributes.length;Fe++){var $r=_r.attributes[Fe].name,Fr=_r.attributes[Fe].value;if(g($r,"hx-on:")||g($r,"data-hx-on:")){let jr=$r.slice($r.indexOf(":")+1);g(jr,":")&&(jr="htmx"+jr),Mt(_r,jr,Fr)}}}function Ut(_r){if(v(_r,Q.config.disableSelector)){m(_r);return}var Fe=ae(_r);if(Fe.initHash!==Re(_r)){qe(_r),Fe.initHash=Re(_r),Dt(_r),ce(_r,"htmx:beforeProcessNode"),_r.value&&(Fe.lastValue=_r.value);var $r=Qe(_r),Fr=Ct(_r,Fe,$r);Fr||(ne(_r,"hx-boost")==="true"?nt(_r,Fe,$r):o(_r,"hx-trigger")&&$r.forEach(function(Vr){Tt(_r,Vr,Fe,function(){})})),(_r.tagName==="FORM"||ee(_r,"type")==="submit"&&o(_r,"form"))&&kt(_r);var jr=te(_r,"hx-sse");jr&&pt(_r,Fe,jr);var zr=te(_r,"hx-ws");zr&&ht(_r,Fe,zr),ce(_r,"htmx:afterProcessNode")}}function Bt(_r){if(_r=s(_r),v(_r,Q.config.disableSelector)){m(_r);return}Ut(_r),oe(Lt(_r),function(Fe){Ut(Fe)}),oe(Ht(_r),Xt)}function Ft(_r){return _r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function Vt(_r,Fe){var $r;return window.CustomEvent&&typeof window.CustomEvent=="function"?$r=new CustomEvent(_r,{bubbles:!0,cancelable:!0,detail:Fe}):($r=re().createEvent("CustomEvent"),$r.initCustomEvent(_r,!0,!0,Fe)),$r}function fe(_r,Fe,$r){ce(_r,Fe,le({error:Fe},$r))}function jt(_r){return _r==="htmx:afterProcessNode"}function T(_r,Fe){oe(Mr(_r),function($r){try{Fe($r)}catch(Fr){x(Fr)}})}function x(_r){console.error?console.error(_r):console.log&&console.log("ERROR: ",_r)}function ce(_r,Fe,$r){_r=s(_r),$r==null&&($r={}),$r.elt=_r;var Fr=Vt(Fe,$r);Q.logger&&!jt(Fe)&&Q.logger(_r,Fe,$r),$r.error&&(x($r.error),ce(_r,"htmx:error",{errorInfo:$r}));var jr=_r.dispatchEvent(Fr),zr=Ft(Fe);if(jr&&zr!==Fe){var Vr=Vt(zr,Fr.detail);jr=jr&&_r.dispatchEvent(Vr)}return T(_r,function(Wr){jr=jr&&Wr.onEvent(Fe,Fr)!==!1&&!Fr.defaultPrevented}),jr}var _t=location.pathname+location.search;function zt(){var _r=re().querySelector("[hx-history-elt],[data-hx-history-elt]");return _r||re().body}function Wt(_r,Fe,$r,Fr){if(!!M()){if(Q.config.historyCacheSize<=0){localStorage.removeItem("htmx-history-cache");return}_r=D(_r);for(var jr=E(localStorage.getItem("htmx-history-cache"))||[],zr=0;zr<jr.length;zr++)if(jr[zr].url===_r){jr.splice(zr,1);break}var Vr={url:_r,content:Fe,title:$r,scroll:Fr};for(ce(re().body,"htmx:historyItemCreated",{item:Vr,cache:jr}),jr.push(Vr);jr.length>Q.config.historyCacheSize;)jr.shift();for(;jr.length>0;)try{localStorage.setItem("htmx-history-cache",JSON.stringify(jr));break}catch(Wr){fe(re().body,"htmx:historyCacheError",{cause:Wr,cache:jr}),jr.shift()}}}function $t(_r){if(!M())return null;_r=D(_r);for(var Fe=E(localStorage.getItem("htmx-history-cache"))||[],$r=0;$r<Fe.length;$r++)if(Fe[$r].url===_r)return Fe[$r];return null}function Gt(_r){var Fe=Q.config.requestClass,$r=_r.cloneNode(!0);return oe(f($r,"."+Fe),function(Fr){n(Fr,Fe)}),$r.innerHTML}function Jt(){var _r=zt(),Fe=_t||location.pathname+location.search,$r;try{$r=re().querySelector('[hx-history="false" i],[data-hx-history="false" i]')}catch{$r=re().querySelector('[hx-history="false"],[data-hx-history="false"]')}$r||(ce(re().body,"htmx:beforeHistorySave",{path:Fe,historyElt:_r}),Wt(Fe,Gt(_r),re().title,window.scrollY)),Q.config.historyEnabled&&history.replaceState({htmx:!0},re().title,window.location.href)}function Zt(_r){Q.config.getCacheBusterParam&&(_r=_r.replace(/org\.htmx\.cache-buster=[^&]*&?/,""),(_(_r,"&")||_(_r,"?"))&&(_r=_r.slice(0,-1))),Q.config.historyEnabled&&history.pushState({htmx:!0},"",_r),_t=_r}function Kt(_r){Q.config.historyEnabled&&history.replaceState({htmx:!0},"",_r),_t=_r}function Yt(_r){oe(_r,function(Fe){Fe.call()})}function Qt(_r){var Fe=new XMLHttpRequest,$r={path:_r,xhr:Fe};ce(re().body,"htmx:historyCacheMiss",$r),Fe.open("GET",_r,!0),Fe.setRequestHeader("HX-History-Restore-Request","true"),Fe.onload=function(){if(this.status>=200&&this.status<400){ce(re().body,"htmx:historyCacheMissLoad",$r);var Fr=l(this.response);Fr=Fr.querySelector("[hx-history-elt],[data-hx-history-elt]")||Fr;var jr=zt(),zr=R(jr),Vr=Xe(this.response);if(Vr){var Wr=C("title");Wr?Wr.innerHTML=Vr:window.document.title=Vr}Pe(jr,Fr,zr),Yt(zr.tasks),_t=_r,ce(re().body,"htmx:historyRestore",{path:_r,cacheMiss:!0,serverResponse:this.response})}else fe(re().body,"htmx:historyCacheMissLoadError",$r)},Fe.send()}function er(_r){Jt(),_r=_r||location.pathname+location.search;var Fe=$t(_r);if(Fe){var $r=l(Fe.content),Fr=zt(),jr=R(Fr);Pe(Fr,$r,jr),Yt(jr.tasks),document.title=Fe.title,setTimeout(function(){window.scrollTo(0,Fe.scroll)},0),_t=_r,ce(re().body,"htmx:historyRestore",{path:_r,item:Fe})}else Q.config.refreshOnHistoryMiss?window.location.reload(!0):Qt(_r)}function tr(_r){var Fe=Y(_r,"hx-indicator");return Fe==null&&(Fe=[_r]),oe(Fe,function($r){var Fr=ae($r);Fr.requestCount=(Fr.requestCount||0)+1,$r.classList.add.call($r.classList,Q.config.requestClass)}),Fe}function rr(_r){var Fe=Y(_r,"hx-disabled-elt");return Fe==null&&(Fe=[]),oe(Fe,function($r){var Fr=ae($r);Fr.requestCount=(Fr.requestCount||0)+1,$r.setAttribute("disabled","")}),Fe}function nr(_r,Fe){oe(_r,function($r){var Fr=ae($r);Fr.requestCount=(Fr.requestCount||0)-1,Fr.requestCount===0&&$r.classList.remove.call($r.classList,Q.config.requestClass)}),oe(Fe,function($r){var Fr=ae($r);Fr.requestCount=(Fr.requestCount||0)-1,Fr.requestCount===0&&$r.removeAttribute("disabled")})}function ir(_r,Fe){for(var $r=0;$r<_r.length;$r++){var Fr=_r[$r];if(Fr.isSameNode(Fe))return!0}return!1}function ar(_r){return _r.name===""||_r.name==null||_r.disabled||_r.type==="button"||_r.type==="submit"||_r.tagName==="image"||_r.tagName==="reset"||_r.tagName==="file"?!1:_r.type==="checkbox"||_r.type==="radio"?_r.checked:!0}function or(_r,Fe,$r){if(_r!=null&&Fe!=null){var Fr=$r[_r];Fr===void 0?$r[_r]=Fe:Array.isArray(Fr)?Array.isArray(Fe)?$r[_r]=Fr.concat(Fe):Fr.push(Fe):Array.isArray(Fe)?$r[_r]=[Fr].concat(Fe):$r[_r]=[Fr,Fe]}}function sr(_r,Fe,$r,Fr,jr){if(!(Fr==null||ir(_r,Fr))){if(_r.push(Fr),ar(Fr)){var zr=ee(Fr,"name"),Vr=Fr.value;Fr.multiple&&Fr.tagName==="SELECT"&&(Vr=I(Fr.querySelectorAll("option:checked")).map(function(Kr){return Kr.value})),Fr.files&&(Vr=I(Fr.files)),or(zr,Vr,Fe),jr&&lr(Fr,$r)}if(h(Fr,"form")){var Wr=Fr.elements;oe(Wr,function(Kr){sr(_r,Fe,$r,Kr,jr)})}}}function lr(_r,Fe){_r.willValidate&&(ce(_r,"htmx:validation:validate"),_r.checkValidity()||(Fe.push({elt:_r,message:_r.validationMessage,validity:_r.validity}),ce(_r,"htmx:validation:failed",{message:_r.validationMessage,validity:_r.validity})))}function ur(_r,Fe){var $r=[],Fr={},jr={},zr=[],Vr=ae(_r);Vr.lastButtonClicked&&!se(Vr.lastButtonClicked)&&(Vr.lastButtonClicked=null);var Wr=h(_r,"form")&&_r.noValidate!==!0||te(_r,"hx-validate")==="true";if(Vr.lastButtonClicked&&(Wr=Wr&&Vr.lastButtonClicked.formNoValidate!==!0),Fe!=="get"&&sr($r,jr,zr,v(_r,"form"),Wr),sr($r,Fr,zr,_r,Wr),Vr.lastButtonClicked||_r.tagName==="BUTTON"||_r.tagName==="INPUT"&&ee(_r,"type")==="submit"){var Kr=Vr.lastButtonClicked||_r,Gr=ee(Kr,"name");or(Gr,Kr.value,jr)}var Yr=Y(_r,"hx-include");return oe(Yr,function(Qr){sr($r,Fr,zr,Qr,Wr),h(Qr,"form")||oe(Qr.querySelectorAll(Ye),function(Jr){sr($r,Fr,zr,Jr,Wr)})}),Fr=le(Fr,jr),{errors:zr,values:Fr}}function fr(_r,Fe,$r){_r!==""&&(_r+="&"),String($r)==="[object Object]"&&($r=JSON.stringify($r));var Fr=encodeURIComponent($r);return _r+=encodeURIComponent(Fe)+"="+Fr,_r}function cr(_r){var Fe="";for(var $r in _r)if(_r.hasOwnProperty($r)){var Fr=_r[$r];Array.isArray(Fr)?oe(Fr,function(jr){Fe=fr(Fe,$r,jr)}):Fe=fr(Fe,$r,Fr)}return Fe}function hr(_r){var Fe=new FormData;for(var $r in _r)if(_r.hasOwnProperty($r)){var Fr=_r[$r];Array.isArray(Fr)?oe(Fr,function(jr){Fe.append($r,jr)}):Fe.append($r,Fr)}return Fe}function vr(_r,Fe,$r){var Fr={"HX-Request":"true","HX-Trigger":ee(_r,"id"),"HX-Trigger-Name":ee(_r,"name"),"HX-Target":te(Fe,"id"),"HX-Current-URL":re().location.href};return br(_r,"hx-headers",!1,Fr),$r!==void 0&&(Fr["HX-Prompt"]=$r),ae(_r).boosted&&(Fr["HX-Boosted"]="true"),Fr}function dr(_r,Fe){var $r=ne(Fe,"hx-params");if($r){if($r==="none")return{};if($r==="*")return _r;if($r.indexOf("not ")===0)return oe($r.substr(4).split(","),function(jr){jr=jr.trim(),delete _r[jr]}),_r;var Fr={};return oe($r.split(","),function(jr){jr=jr.trim(),Fr[jr]=_r[jr]}),Fr}else return _r}function gr(_r){return ee(_r,"href")&&ee(_r,"href").indexOf("#")>=0}function mr(_r,Fe){var $r=Fe||ne(_r,"hx-swap"),Fr={swapStyle:ae(_r).boosted?"innerHTML":Q.config.defaultSwapStyle,swapDelay:Q.config.defaultSwapDelay,settleDelay:Q.config.defaultSettleDelay};if(Q.config.scrollIntoViewOnBoost&&ae(_r).boosted&&!gr(_r)&&(Fr.show="top"),$r){var jr=P($r);if(jr.length>0)for(var zr=0;zr<jr.length;zr++){var Vr=jr[zr];if(Vr.indexOf("swap:")===0)Fr.swapDelay=d(Vr.substr(5));else if(Vr.indexOf("settle:")===0)Fr.settleDelay=d(Vr.substr(7));else if(Vr.indexOf("transition:")===0)Fr.transition=Vr.substr(11)==="true";else if(Vr.indexOf("ignoreTitle:")===0)Fr.ignoreTitle=Vr.substr(12)==="true";else if(Vr.indexOf("scroll:")===0){var Wr=Vr.substr(7),Kr=Wr.split(":"),Gr=Kr.pop(),Yr=Kr.length>0?Kr.join(":"):null;Fr.scroll=Gr,Fr.scrollTarget=Yr}else if(Vr.indexOf("show:")===0){var Qr=Vr.substr(5),Kr=Qr.split(":"),Jr=Kr.pop(),Yr=Kr.length>0?Kr.join(":"):null;Fr.show=Jr,Fr.showTarget=Yr}else if(Vr.indexOf("focus-scroll:")===0){var Zr=Vr.substr(13);Fr.focusScroll=Zr=="true"}else zr==0?Fr.swapStyle=Vr:x("Unknown modifier in hx-swap: "+Vr)}}return Fr}function pr(_r){return ne(_r,"hx-encoding")==="multipart/form-data"||h(_r,"form")&&ee(_r,"enctype")==="multipart/form-data"}function yr(_r,Fe,$r){var Fr=null;return T(Fe,function(jr){Fr==null&&(Fr=jr.encodeParameters(_r,$r,Fe))}),Fr!=null?Fr:pr(Fe)?hr($r):cr($r)}function R(_r){return{tasks:[],elts:[_r]}}function xr(_r,Fe){var $r=_r[0],Fr=_r[_r.length-1];if(Fe.scroll){var jr=null;Fe.scrollTarget&&(jr=ue($r,Fe.scrollTarget)),Fe.scroll==="top"&&($r||jr)&&(jr=jr||$r,jr.scrollTop=0),Fe.scroll==="bottom"&&(Fr||jr)&&(jr=jr||Fr,jr.scrollTop=jr.scrollHeight)}if(Fe.show){var jr=null;if(Fe.showTarget){var zr=Fe.showTarget;Fe.showTarget==="window"&&(zr="body"),jr=ue($r,zr)}Fe.show==="top"&&($r||jr)&&(jr=jr||$r,jr.scrollIntoView({block:"start",behavior:Q.config.scrollBehavior})),Fe.show==="bottom"&&(Fr||jr)&&(jr=jr||Fr,jr.scrollIntoView({block:"end",behavior:Q.config.scrollBehavior}))}}function br(_r,Fe,$r,Fr){if(Fr==null&&(Fr={}),_r==null)return Fr;var jr=te(_r,Fe);if(jr){var zr=jr.trim(),Vr=$r;if(zr==="unset")return null;zr.indexOf("javascript:")===0?(zr=zr.substr(11),Vr=!0):zr.indexOf("js:")===0&&(zr=zr.substr(3),Vr=!0),zr.indexOf("{")!==0&&(zr="{"+zr+"}");var Wr;Vr?Wr=wr(_r,function(){return Function("return ("+zr+")")()},{}):Wr=E(zr);for(var Kr in Wr)Wr.hasOwnProperty(Kr)&&Fr[Kr]==null&&(Fr[Kr]=Wr[Kr])}return br(u(_r),Fe,$r,Fr)}function wr(_r,Fe,$r){return Q.config.allowEval?Fe():(fe(_r,"htmx:evalDisallowedError"),$r)}function Sr(_r,Fe){return br(_r,"hx-vars",!0,Fe)}function Er(_r,Fe){return br(_r,"hx-vals",!1,Fe)}function Cr(_r){return le(Sr(_r),Er(_r))}function Tr(_r,Fe,$r){if($r!==null)try{_r.setRequestHeader(Fe,$r)}catch{_r.setRequestHeader(Fe,encodeURIComponent($r)),_r.setRequestHeader(Fe+"-URI-AutoEncoded","true")}}function Rr(_r){if(_r.responseURL&&typeof URL!="undefined")try{var Fe=new URL(_r.responseURL);return Fe.pathname+Fe.search}catch{fe(re().body,"htmx:badResponseUrl",{url:_r.responseURL})}}function O(_r,Fe){return _r.getAllResponseHeaders().match(Fe)}function Or(_r,Fe,$r){return _r=_r.toLowerCase(),$r?$r instanceof Element||L($r,"String")?he(_r,Fe,null,null,{targetOverride:s($r),returnPromise:!0}):he(_r,Fe,s($r.source),$r.event,{handler:$r.handler,headers:$r.headers,values:$r.values,targetOverride:s($r.target),swapOverride:$r.swap,select:$r.select,returnPromise:!0}):he(_r,Fe,null,null,{returnPromise:!0})}function qr(_r){for(var Fe=[];_r;)Fe.push(_r),_r=_r.parentElement;return Fe}function Hr(_r,Fe,$r){var Fr,jr;if(typeof URL=="function"){jr=new URL(Fe,document.location.href);var zr=document.location.origin;Fr=zr===jr.origin}else jr=Fe,Fr=g(Fe,document.location.origin);return Q.config.selfRequestsOnly&&!Fr?!1:ce(_r,"htmx:validateUrl",le({url:jr,sameHost:Fr},$r))}function he(_r,Fe,$r,Fr,jr,zr){var Vr=null,Wr=null;if(jr=jr!=null?jr:{},jr.returnPromise&&typeof Promise!="undefined")var Kr=new Promise(function(Cn,Bn){Vr=Cn,Wr=Bn});$r==null&&($r=re().body);var Gr=jr.handler||Ar,Yr=jr.select||null;if(!se($r))return ie(Vr),Kr;var Qr=jr.targetOverride||ge($r);if(Qr==null||Qr==ve)return fe($r,"htmx:targetError",{target:te($r,"hx-target")}),ie(Wr),Kr;var Jr=ae($r),Zr=Jr.lastButtonClicked;if(Zr){var tn=ee(Zr,"formaction");tn!=null&&(Fe=tn);var en=ee(Zr,"formmethod");en!=null&&en.toLowerCase()!=="dialog"&&(_r=en)}var rn=ne($r,"hx-confirm");if(zr===void 0){var nn=function(Cn){return he(_r,Fe,$r,Fr,jr,!!Cn)},on={target:Qr,elt:$r,path:Fe,verb:_r,triggeringEvent:Fr,etc:jr,issueRequest:nn,question:rn};if(ce($r,"htmx:confirm",on)===!1)return ie(Vr),Kr}var un=$r,an=ne($r,"hx-sync"),sn=null,dn=!1;if(an){var ln=an.split(":"),cn=ln[0].trim();if(cn==="this"?un=de($r,"hx-sync"):un=ue($r,cn),an=(ln[1]||"drop").trim(),Jr=ae(un),an==="drop"&&Jr.xhr&&Jr.abortable!==!0)return ie(Vr),Kr;if(an==="abort"){if(Jr.xhr)return ie(Vr),Kr;dn=!0}else if(an==="replace")ce(un,"htmx:abort");else if(an.indexOf("queue")===0){var fn=an.split(" ");sn=(fn[1]||"last").trim()}}if(Jr.xhr)if(Jr.abortable)ce(un,"htmx:abort");else{if(sn==null){if(Fr){var pn=ae(Fr);pn&&pn.triggerSpec&&pn.triggerSpec.queue&&(sn=pn.triggerSpec.queue)}sn==null&&(sn="last")}return Jr.queuedRequests==null&&(Jr.queuedRequests=[]),sn==="first"&&Jr.queuedRequests.length===0?Jr.queuedRequests.push(function(){he(_r,Fe,$r,Fr,jr)}):sn==="all"?Jr.queuedRequests.push(function(){he(_r,Fe,$r,Fr,jr)}):sn==="last"&&(Jr.queuedRequests=[],Jr.queuedRequests.push(function(){he(_r,Fe,$r,Fr,jr)})),ie(Vr),Kr}var hn=new XMLHttpRequest;Jr.xhr=hn,Jr.abortable=dn;var mn=function(){if(Jr.xhr=null,Jr.abortable=!1,Jr.queuedRequests!=null&&Jr.queuedRequests.length>0){var Cn=Jr.queuedRequests.shift();Cn()}},Sn=ne($r,"hx-prompt");if(Sn){var vn=prompt(Sn);if(vn===null||!ce($r,"htmx:prompt",{prompt:vn,target:Qr}))return ie(Vr),mn(),Kr}if(rn&&!zr&&!confirm(rn))return ie(Vr),mn(),Kr;var bn=vr($r,Qr,vn);_r!=="get"&&!pr($r)&&(bn["Content-Type"]="application/x-www-form-urlencoded"),jr.headers&&(bn=le(bn,jr.headers));var _n=ur($r,_r),$n=_n.errors,yn=_n.values;jr.values&&(yn=le(yn,jr.values));var wn=Cr($r),gn=le(yn,wn),Pn=dr(gn,$r);Q.config.getCacheBusterParam&&_r==="get"&&(Pn["org.htmx.cache-buster"]=ee(Qr,"id")||"true"),(Fe==null||Fe==="")&&(Fe=re().location.href);var Tn=br($r,"hx-request"),An=ae($r).boosted,Dn=Q.config.methodsThatUseUrlParams.indexOf(_r)>=0,Mn={boosted:An,useUrlParams:Dn,parameters:Pn,unfilteredParameters:gn,headers:bn,target:Qr,verb:_r,errors:$n,withCredentials:jr.credentials||Tn.credentials||Q.config.withCredentials,timeout:jr.timeout||Tn.timeout||Q.config.timeout,path:Fe,triggeringEvent:Fr};if(!ce($r,"htmx:configRequest",Mn))return ie(Vr),mn(),Kr;if(Fe=Mn.path,_r=Mn.verb,bn=Mn.headers,Pn=Mn.parameters,$n=Mn.errors,Dn=Mn.useUrlParams,$n&&$n.length>0)return ce($r,"htmx:validation:halted",Mn),ie(Vr),mn(),Kr;var Ln=Fe.split("#"),On=Ln[0],qn=Ln[1],Qn=Fe;if(Dn){Qn=On;var di=Object.keys(Pn).length!==0;di&&(Qn.indexOf("?")<0?Qn+="?":Qn+="&",Qn+=cr(Pn),qn&&(Qn+="#"+qn))}if(!Hr($r,Qn,Mn))return fe($r,"htmx:invalidPath",Mn),ie(Wr),Kr;if(hn.open(_r.toUpperCase(),Qn,!0),hn.overrideMimeType("text/html"),hn.withCredentials=Mn.withCredentials,hn.timeout=Mn.timeout,!Tn.noHeaders){for(var fi in bn)if(bn.hasOwnProperty(fi)){var En=bn[fi];Tr(hn,fi,En)}}var xn={xhr:hn,target:Qr,requestConfig:Mn,etc:jr,boosted:An,select:Yr,pathInfo:{requestPath:Fe,finalRequestPath:Qn,anchor:qn}};if(hn.onload=function(){try{var Cn=qr($r);if(xn.pathInfo.responsePath=Rr(hn),Gr($r,xn),nr(kn,Rn),ce($r,"htmx:afterRequest",xn),ce($r,"htmx:afterOnLoad",xn),!se($r)){for(var Bn=null;Cn.length>0&&Bn==null;){var Fn=Cn.shift();se(Fn)&&(Bn=Fn)}Bn&&(ce(Bn,"htmx:afterRequest",xn),ce(Bn,"htmx:afterOnLoad",xn))}ie(Vr),mn()}catch(jn){throw fe($r,"htmx:onLoadError",le({error:jn},xn)),jn}},hn.onerror=function(){nr(kn,Rn),fe($r,"htmx:afterRequest",xn),fe($r,"htmx:sendError",xn),ie(Wr),mn()},hn.onabort=function(){nr(kn,Rn),fe($r,"htmx:afterRequest",xn),fe($r,"htmx:sendAbort",xn),ie(Wr),mn()},hn.ontimeout=function(){nr(kn,Rn),fe($r,"htmx:afterRequest",xn),fe($r,"htmx:timeout",xn),ie(Wr),mn()},!ce($r,"htmx:beforeRequest",xn))return ie(Vr),mn(),Kr;var kn=tr($r),Rn=rr($r);oe(["loadstart","loadend","progress","abort"],function(Cn){oe([hn,hn.upload],function(Bn){Bn.addEventListener(Cn,function(Fn){ce($r,"htmx:xhr:"+Cn,{lengthComputable:Fn.lengthComputable,loaded:Fn.loaded,total:Fn.total})})})}),ce($r,"htmx:beforeSend",xn);var Nn=Dn?null:yr(hn,$r,Pn);return hn.send(Nn),Kr}function Lr(_r,Fe){var $r=Fe.xhr,Fr=null,jr=null;if(O($r,/HX-Push:/i)?(Fr=$r.getResponseHeader("HX-Push"),jr="push"):O($r,/HX-Push-Url:/i)?(Fr=$r.getResponseHeader("HX-Push-Url"),jr="push"):O($r,/HX-Replace-Url:/i)&&(Fr=$r.getResponseHeader("HX-Replace-Url"),jr="replace"),Fr)return Fr==="false"?{}:{type:jr,path:Fr};var zr=Fe.pathInfo.finalRequestPath,Vr=Fe.pathInfo.responsePath,Wr=ne(_r,"hx-push-url"),Kr=ne(_r,"hx-replace-url"),Gr=ae(_r).boosted,Yr=null,Qr=null;return Wr?(Yr="push",Qr=Wr):Kr?(Yr="replace",Qr=Kr):Gr&&(Yr="push",Qr=Vr||zr),Qr?Qr==="false"?{}:(Qr==="true"&&(Qr=Vr||zr),Fe.pathInfo.anchor&&Qr.indexOf("#")===-1&&(Qr=Qr+"#"+Fe.pathInfo.anchor),{type:Yr,path:Qr}):{}}function Ar(_r,Fe){var $r=Fe.xhr,Fr=Fe.target,jr=Fe.etc;Fe.requestConfig;var zr=Fe.select;if(!!ce(_r,"htmx:beforeOnLoad",Fe)){if(O($r,/HX-Trigger:/i)&&Be($r,"HX-Trigger",_r),O($r,/HX-Location:/i)){Jt();var Vr=$r.getResponseHeader("HX-Location"),Wr;Vr.indexOf("{")===0&&(Wr=E(Vr),Vr=Wr.path,delete Wr.path),Or("GET",Vr,Wr).then(function(){Zt(Vr)});return}var Kr=O($r,/HX-Refresh:/i)&&$r.getResponseHeader("HX-Refresh")==="true";if(O($r,/HX-Redirect:/i)){location.href=$r.getResponseHeader("HX-Redirect"),Kr&&location.reload();return}if(Kr){location.reload();return}O($r,/HX-Retarget:/i)&&(Fe.target=re().querySelector($r.getResponseHeader("HX-Retarget")));var Gr=Lr(_r,Fe),Yr=$r.status>=200&&$r.status<400&&$r.status!==204,Qr=$r.response,Jr=$r.status>=400,Zr=Q.config.ignoreTitle,tn=le({shouldSwap:Yr,serverResponse:Qr,isError:Jr,ignoreTitle:Zr},Fe);if(!!ce(Fr,"htmx:beforeSwap",tn)){if(Fr=tn.target,Qr=tn.serverResponse,Jr=tn.isError,Zr=tn.ignoreTitle,Fe.target=Fr,Fe.failed=Jr,Fe.successful=!Jr,tn.shouldSwap){$r.status===286&&et(_r),T(_r,function(ln){Qr=ln.transformResponse(Qr,$r,_r)}),Gr.type&&Jt();var en=jr.swapOverride;O($r,/HX-Reswap:/i)&&(en=$r.getResponseHeader("HX-Reswap"));var Wr=mr(_r,en);Wr.hasOwnProperty("ignoreTitle")&&(Zr=Wr.ignoreTitle),Fr.classList.add(Q.config.swappingClass);var rn=null,nn=null,on=function(){try{var ln=document.activeElement,cn={};try{cn={elt:ln,start:ln?ln.selectionStart:null,end:ln?ln.selectionEnd:null}}catch{}var fn;zr&&(fn=zr),O($r,/HX-Reselect:/i)&&(fn=$r.getResponseHeader("HX-Reselect")),Gr.type&&(ce(re().body,"htmx:beforeHistoryUpdate",le({history:Gr},Fe)),Gr.type==="push"?(Zt(Gr.path),ce(re().body,"htmx:pushedIntoHistory",{path:Gr.path})):(Kt(Gr.path),ce(re().body,"htmx:replacedInHistory",{path:Gr.path})));var pn=R(Fr);if(Ue(Wr.swapStyle,Fr,_r,Qr,pn,fn),cn.elt&&!se(cn.elt)&&ee(cn.elt,"id")){var hn=document.getElementById(ee(cn.elt,"id")),mn={preventScroll:Wr.focusScroll!==void 0?!Wr.focusScroll:!Q.config.defaultFocusScroll};if(hn){if(cn.start&&hn.setSelectionRange)try{hn.setSelectionRange(cn.start,cn.end)}catch{}hn.focus(mn)}}if(Fr.classList.remove(Q.config.swappingClass),oe(pn.elts,function(bn){bn.classList&&bn.classList.add(Q.config.settlingClass),ce(bn,"htmx:afterSwap",Fe)}),O($r,/HX-Trigger-After-Swap:/i)){var Sn=_r;se(_r)||(Sn=re().body),Be($r,"HX-Trigger-After-Swap",Sn)}var vn=function(){if(oe(pn.tasks,function(yn){yn.call()}),oe(pn.elts,function(yn){yn.classList&&yn.classList.remove(Q.config.settlingClass),ce(yn,"htmx:afterSettle",Fe)}),Fe.pathInfo.anchor){var bn=re().getElementById(Fe.pathInfo.anchor);bn&&bn.scrollIntoView({block:"start",behavior:"auto"})}if(pn.title&&!Zr){var _n=C("title");_n?_n.innerHTML=pn.title:window.document.title=pn.title}if(xr(pn.elts,Wr),O($r,/HX-Trigger-After-Settle:/i)){var $n=_r;se(_r)||($n=re().body),Be($r,"HX-Trigger-After-Settle",$n)}ie(rn)};Wr.settleDelay>0?setTimeout(vn,Wr.settleDelay):vn()}catch(bn){throw fe(_r,"htmx:swapError",Fe),ie(nn),bn}},un=Q.config.globalViewTransitions;if(Wr.hasOwnProperty("transition")&&(un=Wr.transition),un&&ce(_r,"htmx:beforeTransition",Fe)&&typeof Promise!="undefined"&&document.startViewTransition){var an=new Promise(function(ln,cn){rn=ln,nn=cn}),sn=on;on=function(){document.startViewTransition(function(){return sn(),an})}}Wr.swapDelay>0?setTimeout(on,Wr.swapDelay):on()}Jr&&fe(_r,"htmx:responseError",le({error:"Response Status Error Code "+$r.status+" from "+Fe.pathInfo.requestPath},Fe))}}}var Nr={};function Ir(){return{init:function(_r){return null},onEvent:function(_r,Fe){return!0},transformResponse:function(_r,Fe,$r){return _r},isInlineSwap:function(_r){return!1},handleSwap:function(_r,Fe,$r,Fr){return!1},encodeParameters:function(_r,Fe,$r){return null}}}function kr(_r,Fe){Fe.init&&Fe.init(r),Nr[_r]=le(Ir(),Fe)}function Pr(_r){delete Nr[_r]}function Mr(_r,Fe,$r){if(_r==null)return Fe;Fe==null&&(Fe=[]),$r==null&&($r=[]);var Fr=te(_r,"hx-ext");return Fr&&oe(Fr.split(","),function(jr){if(jr=jr.replace(/ /g,""),jr.slice(0,7)=="ignore:"){$r.push(jr.slice(7));return}if($r.indexOf(jr)<0){var zr=Nr[jr];zr&&Fe.indexOf(zr)<0&&Fe.push(zr)}}),Mr(u(_r),Fe,$r)}function Dr(_r){var Fe=function(){!_r||(_r(),_r=null)};re().readyState==="complete"?Fe():(re().addEventListener("DOMContentLoaded",function(){Fe()}),re().addEventListener("readystatechange",function(){re().readyState==="complete"&&Fe()}))}function Xr(){Q.config.includeIndicatorStyles!==!1&&re().head.insertAdjacentHTML("beforeend","<style>                      ."+Q.config.indicatorClass+"{opacity:0}                      ."+Q.config.requestClass+" ."+Q.config.indicatorClass+"{opacity:1; transition: opacity 200ms ease-in;}                      ."+Q.config.requestClass+"."+Q.config.indicatorClass+"{opacity:1; transition: opacity 200ms ease-in;}                    </style>")}function Ur(){var _r=re().querySelector('meta[name="htmx-config"]');return _r?E(_r.content):null}function Br(){var _r=Ur();_r&&(Q.config=le(Q.config,_r))}return Dr(function(){Br(),Xr();var _r=re().body;Bt(_r);var Fe=re().querySelectorAll("[hx-trigger='restored'],[data-hx-trigger='restored']");_r.addEventListener("htmx:abort",function(Fr){var jr=Fr.target,zr=ae(jr);zr&&zr.xhr&&zr.xhr.abort()});var $r=window.onpopstate;window.onpopstate=function(Fr){Fr.state&&Fr.state.htmx?(er(),oe(Fe,function(jr){ce(jr,"htmx:restored",{document:re(),triggerEvent:ce})})):$r&&$r(Fr)},setTimeout(function(){ce(_r,"htmx:load",{}),_r=null},0)}),Q}()})})(htmx_min);var htmx$1=htmx_min.exports;function makeMap(_r,Fe){const $r=Object.create(null),Fr=_r.split(",");for(let jr=0;jr<Fr.length;jr++)$r[Fr[jr]]=!0;return Fe?jr=>!!$r[jr.toLowerCase()]:jr=>!!$r[jr]}const EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,onRE=/^on[^a-z]/,isOn=_r=>onRE.test(_r),isModelListener=_r=>_r.startsWith("onUpdate:"),extend$1=Object.assign,remove=(_r,Fe)=>{const $r=_r.indexOf(Fe);$r>-1&&_r.splice($r,1)},hasOwnProperty$2=Object.prototype.hasOwnProperty,hasOwn=(_r,Fe)=>hasOwnProperty$2.call(_r,Fe),isArray$5=Array.isArray,isMap=_r=>toTypeString(_r)==="[object Map]",isSet=_r=>toTypeString(_r)==="[object Set]",isDate$2=_r=>toTypeString(_r)==="[object Date]",isRegExp$1=_r=>toTypeString(_r)==="[object RegExp]",isFunction$3=_r=>typeof _r=="function",isString$2=_r=>typeof _r=="string",isSymbol$1=_r=>typeof _r=="symbol",isObject$5=_r=>_r!==null&&typeof _r=="object",isPromise=_r=>isObject$5(_r)&&isFunction$3(_r.then)&&isFunction$3(_r.catch),objectToString$1=Object.prototype.toString,toTypeString=_r=>objectToString$1.call(_r),toRawType=_r=>toTypeString(_r).slice(8,-1),isPlainObject$3=_r=>toTypeString(_r)==="[object Object]",isIntegerKey=_r=>isString$2(_r)&&_r!=="NaN"&&_r[0]!=="-"&&""+parseInt(_r,10)===_r,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),isBuiltInDirective=makeMap("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),cacheStringFunction=_r=>{const Fe=Object.create(null);return $r=>Fe[$r]||(Fe[$r]=_r($r))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(_r=>_r.replace(camelizeRE,(Fe,$r)=>$r?$r.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(_r=>_r.replace(hyphenateRE,"-$1").toLowerCase()),capitalize=cacheStringFunction(_r=>_r.charAt(0).toUpperCase()+_r.slice(1)),toHandlerKey=cacheStringFunction(_r=>_r?`on${capitalize(_r)}`:""),hasChanged=(_r,Fe)=>!Object.is(_r,Fe),invokeArrayFns=(_r,Fe)=>{for(let $r=0;$r<_r.length;$r++)_r[$r](Fe)},def=(_r,Fe,$r)=>{Object.defineProperty(_r,Fe,{configurable:!0,enumerable:!1,value:$r})},looseToNumber=_r=>{const Fe=parseFloat(_r);return isNaN(Fe)?_r:Fe},toNumber$1=_r=>{const Fe=isString$2(_r)?Number(_r):NaN;return isNaN(Fe)?_r:Fe};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{}),GLOBALS_WHITE_LISTED="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",isGloballyWhitelisted=makeMap(GLOBALS_WHITE_LISTED);function normalizeStyle(_r){if(isArray$5(_r)){const Fe={};for(let $r=0;$r<_r.length;$r++){const Fr=_r[$r],jr=isString$2(Fr)?parseStringStyle(Fr):normalizeStyle(Fr);if(jr)for(const zr in jr)Fe[zr]=jr[zr]}return Fe}else{if(isString$2(_r))return _r;if(isObject$5(_r))return _r}}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(_r){const Fe={};return _r.replace(styleCommentRE,"").split(listDelimiterRE).forEach($r=>{if($r){const Fr=$r.split(propertyDelimiterRE);Fr.length>1&&(Fe[Fr[0].trim()]=Fr[1].trim())}}),Fe}function normalizeClass(_r){let Fe="";if(isString$2(_r))Fe=_r;else if(isArray$5(_r))for(let $r=0;$r<_r.length;$r++){const Fr=normalizeClass(_r[$r]);Fr&&(Fe+=Fr+" ")}else if(isObject$5(_r))for(const $r in _r)_r[$r]&&(Fe+=$r+" ");return Fe.trim()}function normalizeProps(_r){if(!_r)return null;let{class:Fe,style:$r}=_r;return Fe&&!isString$2(Fe)&&(_r.class=normalizeClass(Fe)),$r&&(_r.style=normalizeStyle($r)),_r}const HTML_TAGS="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",SVG_TAGS="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",VOID_TAGS="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",isHTMLTag=makeMap(HTML_TAGS),isSVGTag=makeMap(SVG_TAGS),isVoidTag=makeMap(VOID_TAGS),specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr(_r){return!!_r||_r===""}function looseCompareArrays(_r,Fe){if(_r.length!==Fe.length)return!1;let $r=!0;for(let Fr=0;$r&&Fr<_r.length;Fr++)$r=looseEqual(_r[Fr],Fe[Fr]);return $r}function looseEqual(_r,Fe){if(_r===Fe)return!0;let $r=isDate$2(_r),Fr=isDate$2(Fe);if($r||Fr)return $r&&Fr?_r.getTime()===Fe.getTime():!1;if($r=isSymbol$1(_r),Fr=isSymbol$1(Fe),$r||Fr)return _r===Fe;if($r=isArray$5(_r),Fr=isArray$5(Fe),$r||Fr)return $r&&Fr?looseCompareArrays(_r,Fe):!1;if($r=isObject$5(_r),Fr=isObject$5(Fe),$r||Fr){if(!$r||!Fr)return!1;const jr=Object.keys(_r).length,zr=Object.keys(Fe).length;if(jr!==zr)return!1;for(const Vr in _r){const Wr=_r.hasOwnProperty(Vr),Kr=Fe.hasOwnProperty(Vr);if(Wr&&!Kr||!Wr&&Kr||!looseEqual(_r[Vr],Fe[Vr]))return!1}}return String(_r)===String(Fe)}function looseIndexOf(_r,Fe){return _r.findIndex($r=>looseEqual($r,Fe))}const toDisplayString=_r=>isString$2(_r)?_r:_r==null?"":isArray$5(_r)||isObject$5(_r)&&(_r.toString===objectToString$1||!isFunction$3(_r.toString))?JSON.stringify(_r,replacer,2):String(_r),replacer=(_r,Fe)=>Fe&&Fe.__v_isRef?replacer(_r,Fe.value):isMap(Fe)?{[`Map(${Fe.size})`]:[...Fe.entries()].reduce(($r,[Fr,jr])=>($r[`${Fr} =>`]=jr,$r),{})}:isSet(Fe)?{[`Set(${Fe.size})`]:[...Fe.values()]}:isObject$5(Fe)&&!isArray$5(Fe)&&!isPlainObject$3(Fe)?String(Fe):Fe;let activeEffectScope;class EffectScope{constructor(Fe=!1){this.detached=Fe,this._active=!0,this.effects=[],this.cleanups=[],this.parent=activeEffectScope,!Fe&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}run(Fe){if(this._active){const $r=activeEffectScope;try{return activeEffectScope=this,Fe()}finally{activeEffectScope=$r}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(Fe){if(this._active){let $r,Fr;for($r=0,Fr=this.effects.length;$r<Fr;$r++)this.effects[$r].stop();for($r=0,Fr=this.cleanups.length;$r<Fr;$r++)this.cleanups[$r]();if(this.scopes)for($r=0,Fr=this.scopes.length;$r<Fr;$r++)this.scopes[$r].stop(!0);if(!this.detached&&this.parent&&!Fe){const jr=this.parent.scopes.pop();jr&&jr!==this&&(this.parent.scopes[this.index]=jr,jr.index=this.index)}this.parent=void 0,this._active=!1}}}function effectScope(_r){return new EffectScope(_r)}function recordEffectScope(_r,Fe=activeEffectScope){Fe&&Fe.active&&Fe.effects.push(_r)}function getCurrentScope(){return activeEffectScope}function onScopeDispose(_r){activeEffectScope&&activeEffectScope.cleanups.push(_r)}const createDep=_r=>{const Fe=new Set(_r);return Fe.w=0,Fe.n=0,Fe},wasTracked=_r=>(_r.w&trackOpBit)>0,newTracked=_r=>(_r.n&trackOpBit)>0,initDepMarkers=({deps:_r})=>{if(_r.length)for(let Fe=0;Fe<_r.length;Fe++)_r[Fe].w|=trackOpBit},finalizeDepMarkers=_r=>{const{deps:Fe}=_r;if(Fe.length){let $r=0;for(let Fr=0;Fr<Fe.length;Fr++){const jr=Fe[Fr];wasTracked(jr)&&!newTracked(jr)?jr.delete(_r):Fe[$r++]=jr,jr.w&=~trackOpBit,jr.n&=~trackOpBit}Fe.length=$r}},targetMap=new WeakMap;let effectTrackDepth=0,trackOpBit=1;const maxMarkerBits=30;let activeEffect;const ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol("");class ReactiveEffect{constructor(Fe,$r=null,Fr){this.fn=Fe,this.scheduler=$r,this.active=!0,this.deps=[],this.parent=void 0,recordEffectScope(this,Fr)}run(){if(!this.active)return this.fn();let Fe=activeEffect,$r=shouldTrack;for(;Fe;){if(Fe===this)return;Fe=Fe.parent}try{return this.parent=activeEffect,activeEffect=this,shouldTrack=!0,trackOpBit=1<<++effectTrackDepth,effectTrackDepth<=maxMarkerBits?initDepMarkers(this):cleanupEffect(this),this.fn()}finally{effectTrackDepth<=maxMarkerBits&&finalizeDepMarkers(this),trackOpBit=1<<--effectTrackDepth,activeEffect=this.parent,shouldTrack=$r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){activeEffect===this?this.deferStop=!0:this.active&&(cleanupEffect(this),this.onStop&&this.onStop(),this.active=!1)}}function cleanupEffect(_r){const{deps:Fe}=_r;if(Fe.length){for(let $r=0;$r<Fe.length;$r++)Fe[$r].delete(_r);Fe.length=0}}function effect(_r,Fe){_r.effect&&(_r=_r.effect.fn);const $r=new ReactiveEffect(_r);Fe&&(extend$1($r,Fe),Fe.scope&&recordEffectScope($r,Fe.scope)),(!Fe||!Fe.lazy)&&$r.run();const Fr=$r.run.bind($r);return Fr.effect=$r,Fr}function stop(_r){_r.effect.stop()}let shouldTrack=!0;const trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){const _r=trackStack.pop();shouldTrack=_r===void 0?!0:_r}function track(_r,Fe,$r){if(shouldTrack&&activeEffect){let Fr=targetMap.get(_r);Fr||targetMap.set(_r,Fr=new Map);let jr=Fr.get($r);jr||Fr.set($r,jr=createDep()),trackEffects(jr)}}function trackEffects(_r,Fe){let $r=!1;effectTrackDepth<=maxMarkerBits?newTracked(_r)||(_r.n|=trackOpBit,$r=!wasTracked(_r)):$r=!_r.has(activeEffect),$r&&(_r.add(activeEffect),activeEffect.deps.push(_r))}function trigger(_r,Fe,$r,Fr,jr,zr){const Vr=targetMap.get(_r);if(!Vr)return;let Wr=[];if(Fe==="clear")Wr=[...Vr.values()];else if($r==="length"&&isArray$5(_r)){const Kr=Number(Fr);Vr.forEach((Gr,Yr)=>{(Yr==="length"||Yr>=Kr)&&Wr.push(Gr)})}else switch($r!==void 0&&Wr.push(Vr.get($r)),Fe){case"add":isArray$5(_r)?isIntegerKey($r)&&Wr.push(Vr.get("length")):(Wr.push(Vr.get(ITERATE_KEY)),isMap(_r)&&Wr.push(Vr.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$5(_r)||(Wr.push(Vr.get(ITERATE_KEY)),isMap(_r)&&Wr.push(Vr.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(_r)&&Wr.push(Vr.get(ITERATE_KEY));break}if(Wr.length===1)Wr[0]&&triggerEffects(Wr[0]);else{const Kr=[];for(const Gr of Wr)Gr&&Kr.push(...Gr);triggerEffects(createDep(Kr))}}function triggerEffects(_r,Fe){const $r=isArray$5(_r)?_r:[..._r];for(const Fr of $r)Fr.computed&&triggerEffect(Fr);for(const Fr of $r)Fr.computed||triggerEffect(Fr)}function triggerEffect(_r,Fe){(_r!==activeEffect||_r.allowRecurse)&&(_r.scheduler?_r.scheduler():_r.run())}function getDepFromReactive(_r,Fe){var $r;return($r=targetMap.get(_r))==null?void 0:$r.get(Fe)}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(_r=>_r!=="arguments"&&_r!=="caller").map(_r=>Symbol[_r]).filter(isSymbol$1)),get$1=createGetter(),shallowGet=createGetter(!1,!0),readonlyGet=createGetter(!0),shallowReadonlyGet=createGetter(!0,!0),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const _r={};return["includes","indexOf","lastIndexOf"].forEach(Fe=>{_r[Fe]=function(...$r){const Fr=toRaw(this);for(let zr=0,Vr=this.length;zr<Vr;zr++)track(Fr,"get",zr+"");const jr=Fr[Fe](...$r);return jr===-1||jr===!1?Fr[Fe](...$r.map(toRaw)):jr}}),["push","pop","shift","unshift","splice"].forEach(Fe=>{_r[Fe]=function(...$r){pauseTracking();const Fr=toRaw(this)[Fe].apply(this,$r);return resetTracking(),Fr}}),_r}function hasOwnProperty$1(_r){const Fe=toRaw(this);return track(Fe,"has",_r),Fe.hasOwnProperty(_r)}function createGetter(_r=!1,Fe=!1){return function(Fr,jr,zr){if(jr==="__v_isReactive")return!_r;if(jr==="__v_isReadonly")return _r;if(jr==="__v_isShallow")return Fe;if(jr==="__v_raw"&&zr===(_r?Fe?shallowReadonlyMap:readonlyMap:Fe?shallowReactiveMap:reactiveMap).get(Fr))return Fr;const Vr=isArray$5(Fr);if(!_r){if(Vr&&hasOwn(arrayInstrumentations,jr))return Reflect.get(arrayInstrumentations,jr,zr);if(jr==="hasOwnProperty")return hasOwnProperty$1}const Wr=Reflect.get(Fr,jr,zr);return(isSymbol$1(jr)?builtInSymbols.has(jr):isNonTrackableKeys(jr))||(_r||track(Fr,"get",jr),Fe)?Wr:isRef(Wr)?Vr&&isIntegerKey(jr)?Wr:Wr.value:isObject$5(Wr)?_r?readonly(Wr):reactive(Wr):Wr}}const set$1=createSetter(),shallowSet=createSetter(!0);function createSetter(_r=!1){return function($r,Fr,jr,zr){let Vr=$r[Fr];if(isReadonly(Vr)&&isRef(Vr)&&!isRef(jr))return!1;if(!_r&&(!isShallow(jr)&&!isReadonly(jr)&&(Vr=toRaw(Vr),jr=toRaw(jr)),!isArray$5($r)&&isRef(Vr)&&!isRef(jr)))return Vr.value=jr,!0;const Wr=isArray$5($r)&&isIntegerKey(Fr)?Number(Fr)<$r.length:hasOwn($r,Fr),Kr=Reflect.set($r,Fr,jr,zr);return $r===toRaw(zr)&&(Wr?hasChanged(jr,Vr)&&trigger($r,"set",Fr,jr):trigger($r,"add",Fr,jr)),Kr}}function deleteProperty(_r,Fe){const $r=hasOwn(_r,Fe);_r[Fe];const Fr=Reflect.deleteProperty(_r,Fe);return Fr&&$r&&trigger(_r,"delete",Fe,void 0),Fr}function has$1$1(_r,Fe){const $r=Reflect.has(_r,Fe);return(!isSymbol$1(Fe)||!builtInSymbols.has(Fe))&&track(_r,"has",Fe),$r}function ownKeys$I(_r){return track(_r,"iterate",isArray$5(_r)?"length":ITERATE_KEY),Reflect.ownKeys(_r)}const mutableHandlers={get:get$1,set:set$1,deleteProperty,has:has$1$1,ownKeys:ownKeys$I},readonlyHandlers={get:readonlyGet,set(_r,Fe){return!0},deleteProperty(_r,Fe){return!0}},shallowReactiveHandlers=extend$1({},mutableHandlers,{get:shallowGet,set:shallowSet}),shallowReadonlyHandlers=extend$1({},readonlyHandlers,{get:shallowReadonlyGet}),toShallow=_r=>_r,getProto=_r=>Reflect.getPrototypeOf(_r);function get(_r,Fe,$r=!1,Fr=!1){_r=_r.__v_raw;const jr=toRaw(_r),zr=toRaw(Fe);$r||(Fe!==zr&&track(jr,"get",Fe),track(jr,"get",zr));const{has:Vr}=getProto(jr),Wr=Fr?toShallow:$r?toReadonly:toReactive;if(Vr.call(jr,Fe))return Wr(_r.get(Fe));if(Vr.call(jr,zr))return Wr(_r.get(zr));_r!==jr&&_r.get(Fe)}function has$3(_r,Fe=!1){const $r=this.__v_raw,Fr=toRaw($r),jr=toRaw(_r);return Fe||(_r!==jr&&track(Fr,"has",_r),track(Fr,"has",jr)),_r===jr?$r.has(_r):$r.has(_r)||$r.has(jr)}function size(_r,Fe=!1){return _r=_r.__v_raw,!Fe&&track(toRaw(_r),"iterate",ITERATE_KEY),Reflect.get(_r,"size",_r)}function add(_r){_r=toRaw(_r);const Fe=toRaw(this);return getProto(Fe).has.call(Fe,_r)||(Fe.add(_r),trigger(Fe,"add",_r,_r)),this}function set$2(_r,Fe){Fe=toRaw(Fe);const $r=toRaw(this),{has:Fr,get:jr}=getProto($r);let zr=Fr.call($r,_r);zr||(_r=toRaw(_r),zr=Fr.call($r,_r));const Vr=jr.call($r,_r);return $r.set(_r,Fe),zr?hasChanged(Fe,Vr)&&trigger($r,"set",_r,Fe):trigger($r,"add",_r,Fe),this}function deleteEntry(_r){const Fe=toRaw(this),{has:$r,get:Fr}=getProto(Fe);let jr=$r.call(Fe,_r);jr||(_r=toRaw(_r),jr=$r.call(Fe,_r)),Fr&&Fr.call(Fe,_r);const zr=Fe.delete(_r);return jr&&trigger(Fe,"delete",_r,void 0),zr}function clear(){const _r=toRaw(this),Fe=_r.size!==0,$r=_r.clear();return Fe&&trigger(_r,"clear",void 0,void 0),$r}function createForEach(_r,Fe){return function(Fr,jr){const zr=this,Vr=zr.__v_raw,Wr=toRaw(Vr),Kr=Fe?toShallow:_r?toReadonly:toReactive;return!_r&&track(Wr,"iterate",ITERATE_KEY),Vr.forEach((Gr,Yr)=>Fr.call(jr,Kr(Gr),Kr(Yr),zr))}}function createIterableMethod(_r,Fe,$r){return function(...Fr){const jr=this.__v_raw,zr=toRaw(jr),Vr=isMap(zr),Wr=_r==="entries"||_r===Symbol.iterator&&Vr,Kr=_r==="keys"&&Vr,Gr=jr[_r](...Fr),Yr=$r?toShallow:Fe?toReadonly:toReactive;return!Fe&&track(zr,"iterate",Kr?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:Qr,done:Jr}=Gr.next();return Jr?{value:Qr,done:Jr}:{value:Wr?[Yr(Qr[0]),Yr(Qr[1])]:Yr(Qr),done:Jr}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(_r){return function(...Fe){return _r==="delete"?!1:this}}function createInstrumentations(){const _r={get(zr){return get(this,zr)},get size(){return size(this)},has:has$3,add,set:set$2,delete:deleteEntry,clear,forEach:createForEach(!1,!1)},Fe={get(zr){return get(this,zr,!1,!0)},get size(){return size(this)},has:has$3,add,set:set$2,delete:deleteEntry,clear,forEach:createForEach(!1,!0)},$r={get(zr){return get(this,zr,!0)},get size(){return size(this,!0)},has(zr){return has$3.call(this,zr,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},Fr={get(zr){return get(this,zr,!0,!0)},get size(){return size(this,!0)},has(zr){return has$3.call(this,zr,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(zr=>{_r[zr]=createIterableMethod(zr,!1,!1),$r[zr]=createIterableMethod(zr,!0,!1),Fe[zr]=createIterableMethod(zr,!1,!0),Fr[zr]=createIterableMethod(zr,!0,!0)}),[_r,$r,Fe,Fr]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(_r,Fe){const $r=Fe?_r?shallowReadonlyInstrumentations:shallowInstrumentations:_r?readonlyInstrumentations:mutableInstrumentations;return(Fr,jr,zr)=>jr==="__v_isReactive"?!_r:jr==="__v_isReadonly"?_r:jr==="__v_raw"?Fr:Reflect.get(hasOwn($r,jr)&&jr in Fr?$r:Fr,jr,zr)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},shallowReadonlyCollectionHandlers={get:createInstrumentationGetter(!0,!0)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(_r){switch(_r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(_r){return _r.__v_skip||!Object.isExtensible(_r)?0:targetTypeMap(toRawType(_r))}function reactive(_r){return isReadonly(_r)?_r:createReactiveObject(_r,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(_r){return createReactiveObject(_r,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(_r){return createReactiveObject(_r,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly(_r){return createReactiveObject(_r,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject(_r,Fe,$r,Fr,jr){if(!isObject$5(_r)||_r.__v_raw&&!(Fe&&_r.__v_isReactive))return _r;const zr=jr.get(_r);if(zr)return zr;const Vr=getTargetType(_r);if(Vr===0)return _r;const Wr=new Proxy(_r,Vr===2?Fr:$r);return jr.set(_r,Wr),Wr}function isReactive(_r){return isReadonly(_r)?isReactive(_r.__v_raw):!!(_r&&_r.__v_isReactive)}function isReadonly(_r){return!!(_r&&_r.__v_isReadonly)}function isShallow(_r){return!!(_r&&_r.__v_isShallow)}function isProxy(_r){return isReactive(_r)||isReadonly(_r)}function toRaw(_r){const Fe=_r&&_r.__v_raw;return Fe?toRaw(Fe):_r}function markRaw(_r){return def(_r,"__v_skip",!0),_r}const toReactive=_r=>isObject$5(_r)?reactive(_r):_r,toReadonly=_r=>isObject$5(_r)?readonly(_r):_r;function trackRefValue(_r){shouldTrack&&activeEffect&&(_r=toRaw(_r),trackEffects(_r.dep||(_r.dep=createDep())))}function triggerRefValue(_r,Fe){_r=toRaw(_r);const $r=_r.dep;$r&&triggerEffects($r)}function isRef(_r){return!!(_r&&_r.__v_isRef===!0)}function ref(_r){return createRef(_r,!1)}function shallowRef(_r){return createRef(_r,!0)}function createRef(_r,Fe){return isRef(_r)?_r:new RefImpl(_r,Fe)}class RefImpl{constructor(Fe,$r){this.__v_isShallow=$r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=$r?Fe:toRaw(Fe),this._value=$r?Fe:toReactive(Fe)}get value(){return trackRefValue(this),this._value}set value(Fe){const $r=this.__v_isShallow||isShallow(Fe)||isReadonly(Fe);Fe=$r?Fe:toRaw(Fe),hasChanged(Fe,this._rawValue)&&(this._rawValue=Fe,this._value=$r?Fe:toReactive(Fe),triggerRefValue(this))}}function triggerRef(_r){triggerRefValue(_r)}function unref(_r){return isRef(_r)?_r.value:_r}function toValue(_r){return isFunction$3(_r)?_r():unref(_r)}const shallowUnwrapHandlers={get:(_r,Fe,$r)=>unref(Reflect.get(_r,Fe,$r)),set:(_r,Fe,$r,Fr)=>{const jr=_r[Fe];return isRef(jr)&&!isRef($r)?(jr.value=$r,!0):Reflect.set(_r,Fe,$r,Fr)}};function proxyRefs(_r){return isReactive(_r)?_r:new Proxy(_r,shallowUnwrapHandlers)}class CustomRefImpl{constructor(Fe){this.dep=void 0,this.__v_isRef=!0;const{get:$r,set:Fr}=Fe(()=>trackRefValue(this),()=>triggerRefValue(this));this._get=$r,this._set=Fr}get value(){return this._get()}set value(Fe){this._set(Fe)}}function customRef(_r){return new CustomRefImpl(_r)}function toRefs(_r){const Fe=isArray$5(_r)?new Array(_r.length):{};for(const $r in _r)Fe[$r]=propertyToRef(_r,$r);return Fe}class ObjectRefImpl{constructor(Fe,$r,Fr){this._object=Fe,this._key=$r,this._defaultValue=Fr,this.__v_isRef=!0}get value(){const Fe=this._object[this._key];return Fe===void 0?this._defaultValue:Fe}set value(Fe){this._object[this._key]=Fe}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}}class GetterRefImpl{constructor(Fe){this._getter=Fe,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function toRef(_r,Fe,$r){return isRef(_r)?_r:isFunction$3(_r)?new GetterRefImpl(_r):isObject$5(_r)&&arguments.length>1?propertyToRef(_r,Fe,$r):ref(_r)}function propertyToRef(_r,Fe,$r){const Fr=_r[Fe];return isRef(Fr)?Fr:new ObjectRefImpl(_r,Fe,$r)}class ComputedRefImpl{constructor(Fe,$r,Fr,jr){this._setter=$r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ReactiveEffect(Fe,()=>{this._dirty||(this._dirty=!0,triggerRefValue(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!jr,this.__v_isReadonly=Fr}get value(){const Fe=toRaw(this);return trackRefValue(Fe),(Fe._dirty||!Fe._cacheable)&&(Fe._dirty=!1,Fe._value=Fe.effect.run()),Fe._value}set value(Fe){this._setter(Fe)}}function computed$1(_r,Fe,$r=!1){let Fr,jr;const zr=isFunction$3(_r);return zr?(Fr=_r,jr=NOOP):(Fr=_r.get,jr=_r.set),new ComputedRefImpl(Fr,jr,zr||!jr,$r)}function warn(_r,...Fe){}function assertNumber(_r,Fe){}function callWithErrorHandling(_r,Fe,$r,Fr){let jr;try{jr=Fr?_r(...Fr):_r()}catch(zr){handleError(zr,Fe,$r)}return jr}function callWithAsyncErrorHandling(_r,Fe,$r,Fr){if(isFunction$3(_r)){const zr=callWithErrorHandling(_r,Fe,$r,Fr);return zr&&isPromise(zr)&&zr.catch(Vr=>{handleError(Vr,Fe,$r)}),zr}const jr=[];for(let zr=0;zr<_r.length;zr++)jr.push(callWithAsyncErrorHandling(_r[zr],Fe,$r,Fr));return jr}function handleError(_r,Fe,$r,Fr=!0){const jr=Fe?Fe.vnode:null;if(Fe){let zr=Fe.parent;const Vr=Fe.proxy,Wr=$r;for(;zr;){const Gr=zr.ec;if(Gr){for(let Yr=0;Yr<Gr.length;Yr++)if(Gr[Yr](_r,Vr,Wr)===!1)return}zr=zr.parent}const Kr=Fe.appContext.config.errorHandler;if(Kr){callWithErrorHandling(Kr,null,10,[_r,Vr,Wr]);return}}logError(_r,$r,jr,Fr)}function logError(_r,Fe,$r,Fr=!0){console.error(_r)}let isFlushing=!1,isFlushPending=!1;const queue=[];let flushIndex=0;const pendingPostFlushCbs=[];let activePostFlushCbs=null,postFlushIndex=0;const resolvedPromise=Promise.resolve();let currentFlushPromise=null;function nextTick(_r){const Fe=currentFlushPromise||resolvedPromise;return _r?Fe.then(this?_r.bind(this):_r):Fe}function findInsertionIndex(_r){let Fe=flushIndex+1,$r=queue.length;for(;Fe<$r;){const Fr=Fe+$r>>>1;getId(queue[Fr])<_r?Fe=Fr+1:$r=Fr}return Fe}function queueJob(_r){(!queue.length||!queue.includes(_r,isFlushing&&_r.allowRecurse?flushIndex+1:flushIndex))&&(_r.id==null?queue.push(_r):queue.splice(findInsertionIndex(_r.id),0,_r),queueFlush())}function queueFlush(){!isFlushing&&!isFlushPending&&(isFlushPending=!0,currentFlushPromise=resolvedPromise.then(flushJobs))}function invalidateJob(_r){const Fe=queue.indexOf(_r);Fe>flushIndex&&queue.splice(Fe,1)}function queuePostFlushCb(_r){isArray$5(_r)?pendingPostFlushCbs.push(..._r):(!activePostFlushCbs||!activePostFlushCbs.includes(_r,_r.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push(_r),queueFlush()}function flushPreFlushCbs(_r,Fe=isFlushing?flushIndex+1:0){for(;Fe<queue.length;Fe++){const $r=queue[Fe];$r&&$r.pre&&(queue.splice(Fe,1),Fe--,$r())}}function flushPostFlushCbs(_r){if(pendingPostFlushCbs.length){const Fe=[...new Set(pendingPostFlushCbs)];if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...Fe);return}for(activePostFlushCbs=Fe,activePostFlushCbs.sort(($r,Fr)=>getId($r)-getId(Fr)),postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++)activePostFlushCbs[postFlushIndex]();activePostFlushCbs=null,postFlushIndex=0}}const getId=_r=>_r.id==null?1/0:_r.id,comparator=(_r,Fe)=>{const $r=getId(_r)-getId(Fe);if($r===0){if(_r.pre&&!Fe.pre)return-1;if(Fe.pre&&!_r.pre)return 1}return $r};function flushJobs(_r){isFlushPending=!1,isFlushing=!0,queue.sort(comparator);const Fe=NOOP;try{for(flushIndex=0;flushIndex<queue.length;flushIndex++){const $r=queue[flushIndex];$r&&$r.active!==!1&&callWithErrorHandling($r,null,14)}}finally{flushIndex=0,queue.length=0,flushPostFlushCbs(),isFlushing=!1,currentFlushPromise=null,(queue.length||pendingPostFlushCbs.length)&&flushJobs()}}let devtools,buffer=[];function setDevtoolsHook(_r,Fe){var $r,Fr;devtools=_r,devtools?(devtools.enabled=!0,buffer.forEach(({event:jr,args:zr})=>devtools.emit(jr,...zr)),buffer=[]):typeof window!="undefined"&&window.HTMLElement&&!((Fr=($r=window.navigator)==null?void 0:$r.userAgent)!=null&&Fr.includes("jsdom"))?((Fe.__VUE_DEVTOOLS_HOOK_REPLAY__=Fe.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(zr=>{setDevtoolsHook(zr,Fe)}),setTimeout(()=>{devtools||(Fe.__VUE_DEVTOOLS_HOOK_REPLAY__=null,buffer=[])},3e3)):buffer=[]}function emit$1(_r,Fe,...$r){if(_r.isUnmounted)return;const Fr=_r.vnode.props||EMPTY_OBJ;let jr=$r;const zr=Fe.startsWith("update:"),Vr=zr&&Fe.slice(7);if(Vr&&Vr in Fr){const Yr=`${Vr==="modelValue"?"model":Vr}Modifiers`,{number:Qr,trim:Jr}=Fr[Yr]||EMPTY_OBJ;Jr&&(jr=$r.map(Zr=>isString$2(Zr)?Zr.trim():Zr)),Qr&&(jr=$r.map(looseToNumber))}let Wr,Kr=Fr[Wr=toHandlerKey(Fe)]||Fr[Wr=toHandlerKey(camelize(Fe))];!Kr&&zr&&(Kr=Fr[Wr=toHandlerKey(hyphenate(Fe))]),Kr&&callWithAsyncErrorHandling(Kr,_r,6,jr);const Gr=Fr[Wr+"Once"];if(Gr){if(!_r.emitted)_r.emitted={};else if(_r.emitted[Wr])return;_r.emitted[Wr]=!0,callWithAsyncErrorHandling(Gr,_r,6,jr)}}function normalizeEmitsOptions(_r,Fe,$r=!1){const Fr=Fe.emitsCache,jr=Fr.get(_r);if(jr!==void 0)return jr;const zr=_r.emits;let Vr={},Wr=!1;if(!isFunction$3(_r)){const Kr=Gr=>{const Yr=normalizeEmitsOptions(Gr,Fe,!0);Yr&&(Wr=!0,extend$1(Vr,Yr))};!$r&&Fe.mixins.length&&Fe.mixins.forEach(Kr),_r.extends&&Kr(_r.extends),_r.mixins&&_r.mixins.forEach(Kr)}return!zr&&!Wr?(isObject$5(_r)&&Fr.set(_r,null),null):(isArray$5(zr)?zr.forEach(Kr=>Vr[Kr]=null):extend$1(Vr,zr),isObject$5(_r)&&Fr.set(_r,Vr),Vr)}function isEmitListener(_r,Fe){return!_r||!isOn(Fe)?!1:(Fe=Fe.slice(2).replace(/Once$/,""),hasOwn(_r,Fe[0].toLowerCase()+Fe.slice(1))||hasOwn(_r,hyphenate(Fe))||hasOwn(_r,Fe))}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(_r){const Fe=currentRenderingInstance;return currentRenderingInstance=_r,currentScopeId=_r&&_r.type.__scopeId||null,Fe}function pushScopeId(_r){currentScopeId=_r}function popScopeId(){currentScopeId=null}const withScopeId=_r=>withCtx;function withCtx(_r,Fe=currentRenderingInstance,$r){if(!Fe||_r._n)return _r;const Fr=(...jr)=>{Fr._d&&setBlockTracking(-1);const zr=setCurrentRenderingInstance(Fe);let Vr;try{Vr=_r(...jr)}finally{setCurrentRenderingInstance(zr),Fr._d&&setBlockTracking(1)}return Vr};return Fr._n=!0,Fr._c=!0,Fr._d=!0,Fr}function markAttrsAccessed(){}function renderComponentRoot(_r){const{type:Fe,vnode:$r,proxy:Fr,withProxy:jr,props:zr,propsOptions:[Vr],slots:Wr,attrs:Kr,emit:Gr,render:Yr,renderCache:Qr,data:Jr,setupState:Zr,ctx:tn,inheritAttrs:en}=_r;let rn,nn;const on=setCurrentRenderingInstance(_r);try{if($r.shapeFlag&4){const an=jr||Fr;rn=normalizeVNode(Yr.call(an,an,Qr,zr,Zr,Jr,tn)),nn=Kr}else{const an=Fe;rn=normalizeVNode(an.length>1?an(zr,{attrs:Kr,slots:Wr,emit:Gr}):an(zr,null)),nn=Fe.props?Kr:getFunctionalFallthrough(Kr)}}catch(an){blockStack.length=0,handleError(an,_r,1),rn=createVNode(Comment)}let un=rn;if(nn&&en!==!1){const an=Object.keys(nn),{shapeFlag:sn}=un;an.length&&sn&7&&(Vr&&an.some(isModelListener)&&(nn=filterModelListeners(nn,Vr)),un=cloneVNode(un,nn))}return $r.dirs&&(un=cloneVNode(un),un.dirs=un.dirs?un.dirs.concat($r.dirs):$r.dirs),$r.transition&&(un.transition=$r.transition),rn=un,setCurrentRenderingInstance(on),rn}function filterSingleRoot(_r){let Fe;for(let $r=0;$r<_r.length;$r++){const Fr=_r[$r];if(isVNode(Fr)){if(Fr.type!==Comment||Fr.children==="v-if"){if(Fe)return;Fe=Fr}}else return}return Fe}const getFunctionalFallthrough=_r=>{let Fe;for(const $r in _r)($r==="class"||$r==="style"||isOn($r))&&((Fe||(Fe={}))[$r]=_r[$r]);return Fe},filterModelListeners=(_r,Fe)=>{const $r={};for(const Fr in _r)(!isModelListener(Fr)||!(Fr.slice(9)in Fe))&&($r[Fr]=_r[Fr]);return $r};function shouldUpdateComponent(_r,Fe,$r){const{props:Fr,children:jr,component:zr}=_r,{props:Vr,children:Wr,patchFlag:Kr}=Fe,Gr=zr.emitsOptions;if(Fe.dirs||Fe.transition)return!0;if($r&&Kr>=0){if(Kr&1024)return!0;if(Kr&16)return Fr?hasPropsChanged(Fr,Vr,Gr):!!Vr;if(Kr&8){const Yr=Fe.dynamicProps;for(let Qr=0;Qr<Yr.length;Qr++){const Jr=Yr[Qr];if(Vr[Jr]!==Fr[Jr]&&!isEmitListener(Gr,Jr))return!0}}}else return(jr||Wr)&&(!Wr||!Wr.$stable)?!0:Fr===Vr?!1:Fr?Vr?hasPropsChanged(Fr,Vr,Gr):!0:!!Vr;return!1}function hasPropsChanged(_r,Fe,$r){const Fr=Object.keys(Fe);if(Fr.length!==Object.keys(_r).length)return!0;for(let jr=0;jr<Fr.length;jr++){const zr=Fr[jr];if(Fe[zr]!==_r[zr]&&!isEmitListener($r,zr))return!0}return!1}function updateHOCHostEl({vnode:_r,parent:Fe},$r){for(;Fe&&Fe.subTree===_r;)(_r=Fe.vnode).el=$r,Fe=Fe.parent}const isSuspense=_r=>_r.__isSuspense,SuspenseImpl={name:"Suspense",__isSuspense:!0,process(_r,Fe,$r,Fr,jr,zr,Vr,Wr,Kr,Gr){_r==null?mountSuspense(Fe,$r,Fr,jr,zr,Vr,Wr,Kr,Gr):patchSuspense(_r,Fe,$r,Fr,jr,Vr,Wr,Kr,Gr)},hydrate:hydrateSuspense,create:createSuspenseBoundary,normalize:normalizeSuspenseChildren},Suspense=SuspenseImpl;function triggerEvent(_r,Fe){const $r=_r.props&&_r.props[Fe];isFunction$3($r)&&$r()}function mountSuspense(_r,Fe,$r,Fr,jr,zr,Vr,Wr,Kr){const{p:Gr,o:{createElement:Yr}}=Kr,Qr=Yr("div"),Jr=_r.suspense=createSuspenseBoundary(_r,jr,Fr,Fe,Qr,$r,zr,Vr,Wr,Kr);Gr(null,Jr.pendingBranch=_r.ssContent,Qr,null,Fr,Jr,zr,Vr),Jr.deps>0?(triggerEvent(_r,"onPending"),triggerEvent(_r,"onFallback"),Gr(null,_r.ssFallback,Fe,$r,Fr,null,zr,Vr),setActiveBranch(Jr,_r.ssFallback)):Jr.resolve(!1,!0)}function patchSuspense(_r,Fe,$r,Fr,jr,zr,Vr,Wr,{p:Kr,um:Gr,o:{createElement:Yr}}){const Qr=Fe.suspense=_r.suspense;Qr.vnode=Fe,Fe.el=_r.el;const Jr=Fe.ssContent,Zr=Fe.ssFallback,{activeBranch:tn,pendingBranch:en,isInFallback:rn,isHydrating:nn}=Qr;if(en)Qr.pendingBranch=Jr,isSameVNodeType(Jr,en)?(Kr(en,Jr,Qr.hiddenContainer,null,jr,Qr,zr,Vr,Wr),Qr.deps<=0?Qr.resolve():rn&&(Kr(tn,Zr,$r,Fr,jr,null,zr,Vr,Wr),setActiveBranch(Qr,Zr))):(Qr.pendingId++,nn?(Qr.isHydrating=!1,Qr.activeBranch=en):Gr(en,jr,Qr),Qr.deps=0,Qr.effects.length=0,Qr.hiddenContainer=Yr("div"),rn?(Kr(null,Jr,Qr.hiddenContainer,null,jr,Qr,zr,Vr,Wr),Qr.deps<=0?Qr.resolve():(Kr(tn,Zr,$r,Fr,jr,null,zr,Vr,Wr),setActiveBranch(Qr,Zr))):tn&&isSameVNodeType(Jr,tn)?(Kr(tn,Jr,$r,Fr,jr,Qr,zr,Vr,Wr),Qr.resolve(!0)):(Kr(null,Jr,Qr.hiddenContainer,null,jr,Qr,zr,Vr,Wr),Qr.deps<=0&&Qr.resolve()));else if(tn&&isSameVNodeType(Jr,tn))Kr(tn,Jr,$r,Fr,jr,Qr,zr,Vr,Wr),setActiveBranch(Qr,Jr);else if(triggerEvent(Fe,"onPending"),Qr.pendingBranch=Jr,Qr.pendingId++,Kr(null,Jr,Qr.hiddenContainer,null,jr,Qr,zr,Vr,Wr),Qr.deps<=0)Qr.resolve();else{const{timeout:on,pendingId:un}=Qr;on>0?setTimeout(()=>{Qr.pendingId===un&&Qr.fallback(Zr)},on):on===0&&Qr.fallback(Zr)}}function createSuspenseBoundary(_r,Fe,$r,Fr,jr,zr,Vr,Wr,Kr,Gr,Yr=!1){const{p:Qr,m:Jr,um:Zr,n:tn,o:{parentNode:en,remove:rn}}=Gr;let nn;const on=isVNodeSuspensible(_r);on&&Fe!=null&&Fe.pendingBranch&&(nn=Fe.pendingId,Fe.deps++);const un=_r.props?toNumber$1(_r.props.timeout):void 0,an={vnode:_r,parent:Fe,parentComponent:$r,isSVG:Vr,container:Fr,hiddenContainer:jr,anchor:zr,deps:0,pendingId:0,timeout:typeof un=="number"?un:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:Yr,isUnmounted:!1,effects:[],resolve(sn=!1,dn=!1){const{vnode:ln,activeBranch:cn,pendingBranch:fn,pendingId:pn,effects:hn,parentComponent:mn,container:Sn}=an;if(an.isHydrating)an.isHydrating=!1;else if(!sn){const _n=cn&&fn.transition&&fn.transition.mode==="out-in";_n&&(cn.transition.afterLeave=()=>{pn===an.pendingId&&Jr(fn,Sn,$n,0)});let{anchor:$n}=an;cn&&($n=tn(cn),Zr(cn,mn,an,!0)),_n||Jr(fn,Sn,$n,0)}setActiveBranch(an,fn),an.pendingBranch=null,an.isInFallback=!1;let vn=an.parent,bn=!1;for(;vn;){if(vn.pendingBranch){vn.effects.push(...hn),bn=!0;break}vn=vn.parent}bn||queuePostFlushCb(hn),an.effects=[],on&&Fe&&Fe.pendingBranch&&nn===Fe.pendingId&&(Fe.deps--,Fe.deps===0&&!dn&&Fe.resolve()),triggerEvent(ln,"onResolve")},fallback(sn){if(!an.pendingBranch)return;const{vnode:dn,activeBranch:ln,parentComponent:cn,container:fn,isSVG:pn}=an;triggerEvent(dn,"onFallback");const hn=tn(ln),mn=()=>{!an.isInFallback||(Qr(null,sn,fn,hn,cn,null,pn,Wr,Kr),setActiveBranch(an,sn))},Sn=sn.transition&&sn.transition.mode==="out-in";Sn&&(ln.transition.afterLeave=mn),an.isInFallback=!0,Zr(ln,cn,null,!0),Sn||mn()},move(sn,dn,ln){an.activeBranch&&Jr(an.activeBranch,sn,dn,ln),an.container=sn},next(){return an.activeBranch&&tn(an.activeBranch)},registerDep(sn,dn){const ln=!!an.pendingBranch;ln&&an.deps++;const cn=sn.vnode.el;sn.asyncDep.catch(fn=>{handleError(fn,sn,0)}).then(fn=>{if(sn.isUnmounted||an.isUnmounted||an.pendingId!==sn.suspenseId)return;sn.asyncResolved=!0;const{vnode:pn}=sn;handleSetupResult(sn,fn,!1),cn&&(pn.el=cn);const hn=!cn&&sn.subTree.el;dn(sn,pn,en(cn||sn.subTree.el),cn?null:tn(sn.subTree),an,Vr,Kr),hn&&rn(hn),updateHOCHostEl(sn,pn.el),ln&&--an.deps===0&&an.resolve()})},unmount(sn,dn){an.isUnmounted=!0,an.activeBranch&&Zr(an.activeBranch,$r,sn,dn),an.pendingBranch&&Zr(an.pendingBranch,$r,sn,dn)}};return an}function hydrateSuspense(_r,Fe,$r,Fr,jr,zr,Vr,Wr,Kr){const Gr=Fe.suspense=createSuspenseBoundary(Fe,Fr,$r,_r.parentNode,document.createElement("div"),null,jr,zr,Vr,Wr,!0),Yr=Kr(_r,Gr.pendingBranch=Fe.ssContent,$r,Gr,zr,Vr);return Gr.deps===0&&Gr.resolve(!1,!0),Yr}function normalizeSuspenseChildren(_r){const{shapeFlag:Fe,children:$r}=_r,Fr=Fe&32;_r.ssContent=normalizeSuspenseSlot(Fr?$r.default:$r),_r.ssFallback=Fr?normalizeSuspenseSlot($r.fallback):createVNode(Comment)}function normalizeSuspenseSlot(_r){let Fe;if(isFunction$3(_r)){const $r=isBlockTreeEnabled&&_r._c;$r&&(_r._d=!1,openBlock()),_r=_r(),$r&&(_r._d=!0,Fe=currentBlock,closeBlock())}return isArray$5(_r)&&(_r=filterSingleRoot(_r)),_r=normalizeVNode(_r),Fe&&!_r.dynamicChildren&&(_r.dynamicChildren=Fe.filter($r=>$r!==_r)),_r}function queueEffectWithSuspense(_r,Fe){Fe&&Fe.pendingBranch?isArray$5(_r)?Fe.effects.push(..._r):Fe.effects.push(_r):queuePostFlushCb(_r)}function setActiveBranch(_r,Fe){_r.activeBranch=Fe;const{vnode:$r,parentComponent:Fr}=_r,jr=$r.el=Fe.el;Fr&&Fr.subTree===$r&&(Fr.vnode.el=jr,updateHOCHostEl(Fr,jr))}function isVNodeSuspensible(_r){var Fe;return((Fe=_r.props)==null?void 0:Fe.suspensible)!=null&&_r.props.suspensible!==!1}function watchEffect(_r,Fe){return doWatch(_r,null,Fe)}function watchPostEffect(_r,Fe){return doWatch(_r,null,{flush:"post"})}function watchSyncEffect(_r,Fe){return doWatch(_r,null,{flush:"sync"})}const INITIAL_WATCHER_VALUE={};function watch(_r,Fe,$r){return doWatch(_r,Fe,$r)}function doWatch(_r,Fe,{immediate:$r,deep:Fr,flush:jr,onTrack:zr,onTrigger:Vr}=EMPTY_OBJ){var Wr;const Kr=getCurrentScope()===((Wr=currentInstance)==null?void 0:Wr.scope)?currentInstance:null;let Gr,Yr=!1,Qr=!1;if(isRef(_r)?(Gr=()=>_r.value,Yr=isShallow(_r)):isReactive(_r)?(Gr=()=>_r,Fr=!0):isArray$5(_r)?(Qr=!0,Yr=_r.some(an=>isReactive(an)||isShallow(an)),Gr=()=>_r.map(an=>{if(isRef(an))return an.value;if(isReactive(an))return traverse(an);if(isFunction$3(an))return callWithErrorHandling(an,Kr,2)})):isFunction$3(_r)?Fe?Gr=()=>callWithErrorHandling(_r,Kr,2):Gr=()=>{if(!(Kr&&Kr.isUnmounted))return Jr&&Jr(),callWithAsyncErrorHandling(_r,Kr,3,[Zr])}:Gr=NOOP,Fe&&Fr){const an=Gr;Gr=()=>traverse(an())}let Jr,Zr=an=>{Jr=on.onStop=()=>{callWithErrorHandling(an,Kr,4)}},tn;if(isInSSRComponentSetup)if(Zr=NOOP,Fe?$r&&callWithAsyncErrorHandling(Fe,Kr,3,[Gr(),Qr?[]:void 0,Zr]):Gr(),jr==="sync"){const an=useSSRContext();tn=an.__watcherHandles||(an.__watcherHandles=[])}else return NOOP;let en=Qr?new Array(_r.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const rn=()=>{if(!!on.active)if(Fe){const an=on.run();(Fr||Yr||(Qr?an.some((sn,dn)=>hasChanged(sn,en[dn])):hasChanged(an,en)))&&(Jr&&Jr(),callWithAsyncErrorHandling(Fe,Kr,3,[an,en===INITIAL_WATCHER_VALUE?void 0:Qr&&en[0]===INITIAL_WATCHER_VALUE?[]:en,Zr]),en=an)}else on.run()};rn.allowRecurse=!!Fe;let nn;jr==="sync"?nn=rn:jr==="post"?nn=()=>queuePostRenderEffect(rn,Kr&&Kr.suspense):(rn.pre=!0,Kr&&(rn.id=Kr.uid),nn=()=>queueJob(rn));const on=new ReactiveEffect(Gr,nn);Fe?$r?rn():en=on.run():jr==="post"?queuePostRenderEffect(on.run.bind(on),Kr&&Kr.suspense):on.run();const un=()=>{on.stop(),Kr&&Kr.scope&&remove(Kr.scope.effects,on)};return tn&&tn.push(un),un}function instanceWatch(_r,Fe,$r){const Fr=this.proxy,jr=isString$2(_r)?_r.includes(".")?createPathGetter(Fr,_r):()=>Fr[_r]:_r.bind(Fr,Fr);let zr;isFunction$3(Fe)?zr=Fe:(zr=Fe.handler,$r=Fe);const Vr=currentInstance;setCurrentInstance(this);const Wr=doWatch(jr,zr.bind(Fr),$r);return Vr?setCurrentInstance(Vr):unsetCurrentInstance(),Wr}function createPathGetter(_r,Fe){const $r=Fe.split(".");return()=>{let Fr=_r;for(let jr=0;jr<$r.length&&Fr;jr++)Fr=Fr[$r[jr]];return Fr}}function traverse(_r,Fe){if(!isObject$5(_r)||_r.__v_skip||(Fe=Fe||new Set,Fe.has(_r)))return _r;if(Fe.add(_r),isRef(_r))traverse(_r.value,Fe);else if(isArray$5(_r))for(let $r=0;$r<_r.length;$r++)traverse(_r[$r],Fe);else if(isSet(_r)||isMap(_r))_r.forEach($r=>{traverse($r,Fe)});else if(isPlainObject$3(_r))for(const $r in _r)traverse(_r[$r],Fe);return _r}function withDirectives(_r,Fe){const $r=currentRenderingInstance;if($r===null)return _r;const Fr=getExposeProxy($r)||$r.proxy,jr=_r.dirs||(_r.dirs=[]);for(let zr=0;zr<Fe.length;zr++){let[Vr,Wr,Kr,Gr=EMPTY_OBJ]=Fe[zr];Vr&&(isFunction$3(Vr)&&(Vr={mounted:Vr,updated:Vr}),Vr.deep&&traverse(Wr),jr.push({dir:Vr,instance:Fr,value:Wr,oldValue:void 0,arg:Kr,modifiers:Gr}))}return _r}function invokeDirectiveHook(_r,Fe,$r,Fr){const jr=_r.dirs,zr=Fe&&Fe.dirs;for(let Vr=0;Vr<jr.length;Vr++){const Wr=jr[Vr];zr&&(Wr.oldValue=zr[Vr].value);let Kr=Wr.dir[Fr];Kr&&(pauseTracking(),callWithAsyncErrorHandling(Kr,$r,8,[_r.el,Wr,_r,Fe]),resetTracking())}}function useTransitionState(){const _r={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return onMounted(()=>{_r.isMounted=!0}),onBeforeUnmount(()=>{_r.isUnmounting=!0}),_r}const TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup(_r,{slots:Fe}){const $r=getCurrentInstance(),Fr=useTransitionState();let jr;return()=>{const zr=Fe.default&&getTransitionRawChildren(Fe.default(),!0);if(!zr||!zr.length)return;let Vr=zr[0];if(zr.length>1){for(const en of zr)if(en.type!==Comment){Vr=en;break}}const Wr=toRaw(_r),{mode:Kr}=Wr;if(Fr.isLeaving)return emptyPlaceholder(Vr);const Gr=getKeepAliveChild(Vr);if(!Gr)return emptyPlaceholder(Vr);const Yr=resolveTransitionHooks(Gr,Wr,Fr,$r);setTransitionHooks(Gr,Yr);const Qr=$r.subTree,Jr=Qr&&getKeepAliveChild(Qr);let Zr=!1;const{getTransitionKey:tn}=Gr.type;if(tn){const en=tn();jr===void 0?jr=en:en!==jr&&(jr=en,Zr=!0)}if(Jr&&Jr.type!==Comment&&(!isSameVNodeType(Gr,Jr)||Zr)){const en=resolveTransitionHooks(Jr,Wr,Fr,$r);if(setTransitionHooks(Jr,en),Kr==="out-in")return Fr.isLeaving=!0,en.afterLeave=()=>{Fr.isLeaving=!1,$r.update.active!==!1&&$r.update()},emptyPlaceholder(Vr);Kr==="in-out"&&Gr.type!==Comment&&(en.delayLeave=(rn,nn,on)=>{const un=getLeavingNodesForType(Fr,Jr);un[String(Jr.key)]=Jr,rn._leaveCb=()=>{nn(),rn._leaveCb=void 0,delete Yr.delayedLeave},Yr.delayedLeave=on})}return Vr}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(_r,Fe){const{leavingVNodes:$r}=_r;let Fr=$r.get(Fe.type);return Fr||(Fr=Object.create(null),$r.set(Fe.type,Fr)),Fr}function resolveTransitionHooks(_r,Fe,$r,Fr){const{appear:jr,mode:zr,persisted:Vr=!1,onBeforeEnter:Wr,onEnter:Kr,onAfterEnter:Gr,onEnterCancelled:Yr,onBeforeLeave:Qr,onLeave:Jr,onAfterLeave:Zr,onLeaveCancelled:tn,onBeforeAppear:en,onAppear:rn,onAfterAppear:nn,onAppearCancelled:on}=Fe,un=String(_r.key),an=getLeavingNodesForType($r,_r),sn=(cn,fn)=>{cn&&callWithAsyncErrorHandling(cn,Fr,9,fn)},dn=(cn,fn)=>{const pn=fn[1];sn(cn,fn),isArray$5(cn)?cn.every(hn=>hn.length<=1)&&pn():cn.length<=1&&pn()},ln={mode:zr,persisted:Vr,beforeEnter(cn){let fn=Wr;if(!$r.isMounted)if(jr)fn=en||Wr;else return;cn._leaveCb&&cn._leaveCb(!0);const pn=an[un];pn&&isSameVNodeType(_r,pn)&&pn.el._leaveCb&&pn.el._leaveCb(),sn(fn,[cn])},enter(cn){let fn=Kr,pn=Gr,hn=Yr;if(!$r.isMounted)if(jr)fn=rn||Kr,pn=nn||Gr,hn=on||Yr;else return;let mn=!1;const Sn=cn._enterCb=vn=>{mn||(mn=!0,vn?sn(hn,[cn]):sn(pn,[cn]),ln.delayedLeave&&ln.delayedLeave(),cn._enterCb=void 0)};fn?dn(fn,[cn,Sn]):Sn()},leave(cn,fn){const pn=String(_r.key);if(cn._enterCb&&cn._enterCb(!0),$r.isUnmounting)return fn();sn(Qr,[cn]);let hn=!1;const mn=cn._leaveCb=Sn=>{hn||(hn=!0,fn(),Sn?sn(tn,[cn]):sn(Zr,[cn]),cn._leaveCb=void 0,an[pn]===_r&&delete an[pn])};an[pn]=_r,Jr?dn(Jr,[cn,mn]):mn()},clone(cn){return resolveTransitionHooks(cn,Fe,$r,Fr)}};return ln}function emptyPlaceholder(_r){if(isKeepAlive(_r))return _r=cloneVNode(_r),_r.children=null,_r}function getKeepAliveChild(_r){return isKeepAlive(_r)?_r.children?_r.children[0]:void 0:_r}function setTransitionHooks(_r,Fe){_r.shapeFlag&6&&_r.component?setTransitionHooks(_r.component.subTree,Fe):_r.shapeFlag&128?(_r.ssContent.transition=Fe.clone(_r.ssContent),_r.ssFallback.transition=Fe.clone(_r.ssFallback)):_r.transition=Fe}function getTransitionRawChildren(_r,Fe=!1,$r){let Fr=[],jr=0;for(let zr=0;zr<_r.length;zr++){let Vr=_r[zr];const Wr=$r==null?Vr.key:String($r)+String(Vr.key!=null?Vr.key:zr);Vr.type===Fragment?(Vr.patchFlag&128&&jr++,Fr=Fr.concat(getTransitionRawChildren(Vr.children,Fe,Wr))):(Fe||Vr.type!==Comment)&&Fr.push(Wr!=null?cloneVNode(Vr,{key:Wr}):Vr)}if(jr>1)for(let zr=0;zr<Fr.length;zr++)Fr[zr].patchFlag=-2;return Fr}function defineComponent(_r,Fe){return isFunction$3(_r)?(()=>extend$1({name:_r.name},Fe,{setup:_r}))():_r}const isAsyncWrapper=_r=>!!_r.type.__asyncLoader;function defineAsyncComponent(_r){isFunction$3(_r)&&(_r={loader:_r});const{loader:Fe,loadingComponent:$r,errorComponent:Fr,delay:jr=200,timeout:zr,suspensible:Vr=!0,onError:Wr}=_r;let Kr=null,Gr,Yr=0;const Qr=()=>(Yr++,Kr=null,Jr()),Jr=()=>{let Zr;return Kr||(Zr=Kr=Fe().catch(tn=>{if(tn=tn instanceof Error?tn:new Error(String(tn)),Wr)return new Promise((en,rn)=>{Wr(tn,()=>en(Qr()),()=>rn(tn),Yr+1)});throw tn}).then(tn=>Zr!==Kr&&Kr?Kr:(tn&&(tn.__esModule||tn[Symbol.toStringTag]==="Module")&&(tn=tn.default),Gr=tn,tn)))};return defineComponent({name:"AsyncComponentWrapper",__asyncLoader:Jr,get __asyncResolved(){return Gr},setup(){const Zr=currentInstance;if(Gr)return()=>createInnerComp(Gr,Zr);const tn=on=>{Kr=null,handleError(on,Zr,13,!Fr)};if(Vr&&Zr.suspense||isInSSRComponentSetup)return Jr().then(on=>()=>createInnerComp(on,Zr)).catch(on=>(tn(on),()=>Fr?createVNode(Fr,{error:on}):null));const en=ref(!1),rn=ref(),nn=ref(!!jr);return jr&&setTimeout(()=>{nn.value=!1},jr),zr!=null&&setTimeout(()=>{if(!en.value&&!rn.value){const on=new Error(`Async component timed out after ${zr}ms.`);tn(on),rn.value=on}},zr),Jr().then(()=>{en.value=!0,Zr.parent&&isKeepAlive(Zr.parent.vnode)&&queueJob(Zr.parent.update)}).catch(on=>{tn(on),rn.value=on}),()=>{if(en.value&&Gr)return createInnerComp(Gr,Zr);if(rn.value&&Fr)return createVNode(Fr,{error:rn.value});if($r&&!nn.value)return createVNode($r)}}})}function createInnerComp(_r,Fe){const{ref:$r,props:Fr,children:jr,ce:zr}=Fe.vnode,Vr=createVNode(_r,Fr,jr);return Vr.ref=$r,Vr.ce=zr,delete Fe.vnode.ce,Vr}const isKeepAlive=_r=>_r.type.__isKeepAlive,KeepAliveImpl={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(_r,{slots:Fe}){const $r=getCurrentInstance(),Fr=$r.ctx;if(!Fr.renderer)return()=>{const on=Fe.default&&Fe.default();return on&&on.length===1?on[0]:on};const jr=new Map,zr=new Set;let Vr=null;const Wr=$r.suspense,{renderer:{p:Kr,m:Gr,um:Yr,o:{createElement:Qr}}}=Fr,Jr=Qr("div");Fr.activate=(on,un,an,sn,dn)=>{const ln=on.component;Gr(on,un,an,0,Wr),Kr(ln.vnode,on,un,an,ln,Wr,sn,on.slotScopeIds,dn),queuePostRenderEffect(()=>{ln.isDeactivated=!1,ln.a&&invokeArrayFns(ln.a);const cn=on.props&&on.props.onVnodeMounted;cn&&invokeVNodeHook(cn,ln.parent,on)},Wr)},Fr.deactivate=on=>{const un=on.component;Gr(on,Jr,null,1,Wr),queuePostRenderEffect(()=>{un.da&&invokeArrayFns(un.da);const an=on.props&&on.props.onVnodeUnmounted;an&&invokeVNodeHook(an,un.parent,on),un.isDeactivated=!0},Wr)};function Zr(on){resetShapeFlag(on),Yr(on,$r,Wr,!0)}function tn(on){jr.forEach((un,an)=>{const sn=getComponentName(un.type);sn&&(!on||!on(sn))&&en(an)})}function en(on){const un=jr.get(on);!Vr||!isSameVNodeType(un,Vr)?Zr(un):Vr&&resetShapeFlag(Vr),jr.delete(on),zr.delete(on)}watch(()=>[_r.include,_r.exclude],([on,un])=>{on&&tn(an=>matches(on,an)),un&&tn(an=>!matches(un,an))},{flush:"post",deep:!0});let rn=null;const nn=()=>{rn!=null&&jr.set(rn,getInnerChild($r.subTree))};return onMounted(nn),onUpdated(nn),onBeforeUnmount(()=>{jr.forEach(on=>{const{subTree:un,suspense:an}=$r,sn=getInnerChild(un);if(on.type===sn.type&&on.key===sn.key){resetShapeFlag(sn);const dn=sn.component.da;dn&&queuePostRenderEffect(dn,an);return}Zr(on)})}),()=>{if(rn=null,!Fe.default)return null;const on=Fe.default(),un=on[0];if(on.length>1)return Vr=null,on;if(!isVNode(un)||!(un.shapeFlag&4)&&!(un.shapeFlag&128))return Vr=null,un;let an=getInnerChild(un);const sn=an.type,dn=getComponentName(isAsyncWrapper(an)?an.type.__asyncResolved||{}:sn),{include:ln,exclude:cn,max:fn}=_r;if(ln&&(!dn||!matches(ln,dn))||cn&&dn&&matches(cn,dn))return Vr=an,un;const pn=an.key==null?sn:an.key,hn=jr.get(pn);return an.el&&(an=cloneVNode(an),un.shapeFlag&128&&(un.ssContent=an)),rn=pn,hn?(an.el=hn.el,an.component=hn.component,an.transition&&setTransitionHooks(an,an.transition),an.shapeFlag|=512,zr.delete(pn),zr.add(pn)):(zr.add(pn),fn&&zr.size>parseInt(fn,10)&&en(zr.values().next().value)),an.shapeFlag|=256,Vr=an,isSuspense(un.type)?un:an}}},KeepAlive=KeepAliveImpl;function matches(_r,Fe){return isArray$5(_r)?_r.some($r=>matches($r,Fe)):isString$2(_r)?_r.split(",").includes(Fe):isRegExp$1(_r)?_r.test(Fe):!1}function onActivated(_r,Fe){registerKeepAliveHook(_r,"a",Fe)}function onDeactivated(_r,Fe){registerKeepAliveHook(_r,"da",Fe)}function registerKeepAliveHook(_r,Fe,$r=currentInstance){const Fr=_r.__wdc||(_r.__wdc=()=>{let jr=$r;for(;jr;){if(jr.isDeactivated)return;jr=jr.parent}return _r()});if(injectHook(Fe,Fr,$r),$r){let jr=$r.parent;for(;jr&&jr.parent;)isKeepAlive(jr.parent.vnode)&&injectToKeepAliveRoot(Fr,Fe,$r,jr),jr=jr.parent}}function injectToKeepAliveRoot(_r,Fe,$r,Fr){const jr=injectHook(Fe,_r,Fr,!0);onUnmounted(()=>{remove(Fr[Fe],jr)},$r)}function resetShapeFlag(_r){_r.shapeFlag&=-257,_r.shapeFlag&=-513}function getInnerChild(_r){return _r.shapeFlag&128?_r.ssContent:_r}function injectHook(_r,Fe,$r=currentInstance,Fr=!1){if($r){const jr=$r[_r]||($r[_r]=[]),zr=Fe.__weh||(Fe.__weh=(...Vr)=>{if($r.isUnmounted)return;pauseTracking(),setCurrentInstance($r);const Wr=callWithAsyncErrorHandling(Fe,$r,_r,Vr);return unsetCurrentInstance(),resetTracking(),Wr});return Fr?jr.unshift(zr):jr.push(zr),zr}}const createHook=_r=>(Fe,$r=currentInstance)=>(!isInSSRComponentSetup||_r==="sp")&&injectHook(_r,(...Fr)=>Fe(...Fr),$r),onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(_r,Fe=currentInstance){injectHook("ec",_r,Fe)}const COMPONENTS="components",DIRECTIVES="directives";function resolveComponent(_r,Fe){return resolveAsset(COMPONENTS,_r,!0,Fe)||_r}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveDynamicComponent(_r){return isString$2(_r)?resolveAsset(COMPONENTS,_r,!1)||_r:_r||NULL_DYNAMIC_COMPONENT}function resolveDirective(_r){return resolveAsset(DIRECTIVES,_r)}function resolveAsset(_r,Fe,$r=!0,Fr=!1){const jr=currentRenderingInstance||currentInstance;if(jr){const zr=jr.type;if(_r===COMPONENTS){const Wr=getComponentName(zr,!1);if(Wr&&(Wr===Fe||Wr===camelize(Fe)||Wr===capitalize(camelize(Fe))))return zr}const Vr=resolve$1(jr[_r]||zr[_r],Fe)||resolve$1(jr.appContext[_r],Fe);return!Vr&&Fr?zr:Vr}}function resolve$1(_r,Fe){return _r&&(_r[Fe]||_r[camelize(Fe)]||_r[capitalize(camelize(Fe))])}function renderList(_r,Fe,$r,Fr){let jr;const zr=$r&&$r[Fr];if(isArray$5(_r)||isString$2(_r)){jr=new Array(_r.length);for(let Vr=0,Wr=_r.length;Vr<Wr;Vr++)jr[Vr]=Fe(_r[Vr],Vr,void 0,zr&&zr[Vr])}else if(typeof _r=="number"){jr=new Array(_r);for(let Vr=0;Vr<_r;Vr++)jr[Vr]=Fe(Vr+1,Vr,void 0,zr&&zr[Vr])}else if(isObject$5(_r))if(_r[Symbol.iterator])jr=Array.from(_r,(Vr,Wr)=>Fe(Vr,Wr,void 0,zr&&zr[Wr]));else{const Vr=Object.keys(_r);jr=new Array(Vr.length);for(let Wr=0,Kr=Vr.length;Wr<Kr;Wr++){const Gr=Vr[Wr];jr[Wr]=Fe(_r[Gr],Gr,Wr,zr&&zr[Wr])}}else jr=[];return $r&&($r[Fr]=jr),jr}function createSlots(_r,Fe){for(let $r=0;$r<Fe.length;$r++){const Fr=Fe[$r];if(isArray$5(Fr))for(let jr=0;jr<Fr.length;jr++)_r[Fr[jr].name]=Fr[jr].fn;else Fr&&(_r[Fr.name]=Fr.key?(...jr)=>{const zr=Fr.fn(...jr);return zr&&(zr.key=Fr.key),zr}:Fr.fn)}return _r}function renderSlot(_r,Fe,$r={},Fr,jr){if(currentRenderingInstance.isCE||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&&currentRenderingInstance.parent.isCE)return Fe!=="default"&&($r.name=Fe),createVNode("slot",$r,Fr&&Fr());let zr=_r[Fe];zr&&zr._c&&(zr._d=!1),openBlock();const Vr=zr&&ensureValidVNode(zr($r)),Wr=createBlock(Fragment,{key:$r.key||Vr&&Vr.key||`_${Fe}`},Vr||(Fr?Fr():[]),Vr&&_r._===1?64:-2);return!jr&&Wr.scopeId&&(Wr.slotScopeIds=[Wr.scopeId+"-s"]),zr&&zr._c&&(zr._d=!0),Wr}function ensureValidVNode(_r){return _r.some(Fe=>isVNode(Fe)?!(Fe.type===Comment||Fe.type===Fragment&&!ensureValidVNode(Fe.children)):!0)?_r:null}function toHandlers(_r,Fe){const $r={};for(const Fr in _r)$r[Fe&&/[A-Z]/.test(Fr)?`on:${Fr}`:toHandlerKey(Fr)]=_r[Fr];return $r}const getPublicInstance=_r=>_r?isStatefulComponent(_r)?getExposeProxy(_r)||_r.proxy:getPublicInstance(_r.parent):null,publicPropertiesMap=extend$1(Object.create(null),{$:_r=>_r,$el:_r=>_r.vnode.el,$data:_r=>_r.data,$props:_r=>_r.props,$attrs:_r=>_r.attrs,$slots:_r=>_r.slots,$refs:_r=>_r.refs,$parent:_r=>getPublicInstance(_r.parent),$root:_r=>getPublicInstance(_r.root),$emit:_r=>_r.emit,$options:_r=>resolveMergedOptions(_r),$forceUpdate:_r=>_r.f||(_r.f=()=>queueJob(_r.update)),$nextTick:_r=>_r.n||(_r.n=nextTick.bind(_r.proxy)),$watch:_r=>instanceWatch.bind(_r)}),hasSetupBinding=(_r,Fe)=>_r!==EMPTY_OBJ&&!_r.__isScriptSetup&&hasOwn(_r,Fe),PublicInstanceProxyHandlers={get({_:_r},Fe){const{ctx:$r,setupState:Fr,data:jr,props:zr,accessCache:Vr,type:Wr,appContext:Kr}=_r;let Gr;if(Fe[0]!=="$"){const Zr=Vr[Fe];if(Zr!==void 0)switch(Zr){case 1:return Fr[Fe];case 2:return jr[Fe];case 4:return $r[Fe];case 3:return zr[Fe]}else{if(hasSetupBinding(Fr,Fe))return Vr[Fe]=1,Fr[Fe];if(jr!==EMPTY_OBJ&&hasOwn(jr,Fe))return Vr[Fe]=2,jr[Fe];if((Gr=_r.propsOptions[0])&&hasOwn(Gr,Fe))return Vr[Fe]=3,zr[Fe];if($r!==EMPTY_OBJ&&hasOwn($r,Fe))return Vr[Fe]=4,$r[Fe];shouldCacheAccess&&(Vr[Fe]=0)}}const Yr=publicPropertiesMap[Fe];let Qr,Jr;if(Yr)return Fe==="$attrs"&&track(_r,"get",Fe),Yr(_r);if((Qr=Wr.__cssModules)&&(Qr=Qr[Fe]))return Qr;if($r!==EMPTY_OBJ&&hasOwn($r,Fe))return Vr[Fe]=4,$r[Fe];if(Jr=Kr.config.globalProperties,hasOwn(Jr,Fe))return Jr[Fe]},set({_:_r},Fe,$r){const{data:Fr,setupState:jr,ctx:zr}=_r;return hasSetupBinding(jr,Fe)?(jr[Fe]=$r,!0):Fr!==EMPTY_OBJ&&hasOwn(Fr,Fe)?(Fr[Fe]=$r,!0):hasOwn(_r.props,Fe)||Fe[0]==="$"&&Fe.slice(1)in _r?!1:(zr[Fe]=$r,!0)},has({_:{data:_r,setupState:Fe,accessCache:$r,ctx:Fr,appContext:jr,propsOptions:zr}},Vr){let Wr;return!!$r[Vr]||_r!==EMPTY_OBJ&&hasOwn(_r,Vr)||hasSetupBinding(Fe,Vr)||(Wr=zr[0])&&hasOwn(Wr,Vr)||hasOwn(Fr,Vr)||hasOwn(publicPropertiesMap,Vr)||hasOwn(jr.config.globalProperties,Vr)},defineProperty(_r,Fe,$r){return $r.get!=null?_r._.accessCache[Fe]=0:hasOwn($r,"value")&&this.set(_r,Fe,$r.value,null),Reflect.defineProperty(_r,Fe,$r)}},RuntimeCompiledPublicInstanceProxyHandlers=extend$1({},PublicInstanceProxyHandlers,{get(_r,Fe){if(Fe!==Symbol.unscopables)return PublicInstanceProxyHandlers.get(_r,Fe,_r)},has(_r,Fe){return Fe[0]!=="_"&&!isGloballyWhitelisted(Fe)}});function defineProps(){return null}function defineEmits(){return null}function defineExpose(_r){}function defineOptions(_r){}function defineSlots(){return null}function defineModel(){}function withDefaults(_r,Fe){return null}function useSlots(){return getContext().slots}function useAttrs(){return getContext().attrs}function useModel(_r,Fe,$r){const Fr=getCurrentInstance();if($r&&$r.local){const jr=ref(_r[Fe]);return watch(()=>_r[Fe],zr=>jr.value=zr),watch(jr,zr=>{zr!==_r[Fe]&&Fr.emit(`update:${Fe}`,zr)}),jr}else return{__v_isRef:!0,get value(){return _r[Fe]},set value(jr){Fr.emit(`update:${Fe}`,jr)}}}function getContext(){const _r=getCurrentInstance();return _r.setupContext||(_r.setupContext=createSetupContext(_r))}function normalizePropsOrEmits(_r){return isArray$5(_r)?_r.reduce((Fe,$r)=>(Fe[$r]=null,Fe),{}):_r}function mergeDefaults(_r,Fe){const $r=normalizePropsOrEmits(_r);for(const Fr in Fe){if(Fr.startsWith("__skip"))continue;let jr=$r[Fr];jr?isArray$5(jr)||isFunction$3(jr)?jr=$r[Fr]={type:jr,default:Fe[Fr]}:jr.default=Fe[Fr]:jr===null&&(jr=$r[Fr]={default:Fe[Fr]}),jr&&Fe[`__skip_${Fr}`]&&(jr.skipFactory=!0)}return $r}function mergeModels(_r,Fe){return!_r||!Fe?_r||Fe:isArray$5(_r)&&isArray$5(Fe)?_r.concat(Fe):extend$1({},normalizePropsOrEmits(_r),normalizePropsOrEmits(Fe))}function createPropsRestProxy(_r,Fe){const $r={};for(const Fr in _r)Fe.includes(Fr)||Object.defineProperty($r,Fr,{enumerable:!0,get:()=>_r[Fr]});return $r}function withAsyncContext(_r){const Fe=getCurrentInstance();let $r=_r();return unsetCurrentInstance(),isPromise($r)&&($r=$r.catch(Fr=>{throw setCurrentInstance(Fe),Fr})),[$r,()=>setCurrentInstance(Fe)]}let shouldCacheAccess=!0;function applyOptions(_r){const Fe=resolveMergedOptions(_r),$r=_r.proxy,Fr=_r.ctx;shouldCacheAccess=!1,Fe.beforeCreate&&callHook$1(Fe.beforeCreate,_r,"bc");const{data:jr,computed:zr,methods:Vr,watch:Wr,provide:Kr,inject:Gr,created:Yr,beforeMount:Qr,mounted:Jr,beforeUpdate:Zr,updated:tn,activated:en,deactivated:rn,beforeDestroy:nn,beforeUnmount:on,destroyed:un,unmounted:an,render:sn,renderTracked:dn,renderTriggered:ln,errorCaptured:cn,serverPrefetch:fn,expose:pn,inheritAttrs:hn,components:mn,directives:Sn,filters:vn}=Fe;if(Gr&&resolveInjections(Gr,Fr,null),Vr)for(const $n in Vr){const yn=Vr[$n];isFunction$3(yn)&&(Fr[$n]=yn.bind($r))}if(jr){const $n=jr.call($r,$r);isObject$5($n)&&(_r.data=reactive($n))}if(shouldCacheAccess=!0,zr)for(const $n in zr){const yn=zr[$n],wn=isFunction$3(yn)?yn.bind($r,$r):isFunction$3(yn.get)?yn.get.bind($r,$r):NOOP,gn=!isFunction$3(yn)&&isFunction$3(yn.set)?yn.set.bind($r):NOOP,Pn=computed({get:wn,set:gn});Object.defineProperty(Fr,$n,{enumerable:!0,configurable:!0,get:()=>Pn.value,set:Tn=>Pn.value=Tn})}if(Wr)for(const $n in Wr)createWatcher(Wr[$n],Fr,$r,$n);if(Kr){const $n=isFunction$3(Kr)?Kr.call($r):Kr;Reflect.ownKeys($n).forEach(yn=>{provide(yn,$n[yn])})}Yr&&callHook$1(Yr,_r,"c");function _n($n,yn){isArray$5(yn)?yn.forEach(wn=>$n(wn.bind($r))):yn&&$n(yn.bind($r))}if(_n(onBeforeMount,Qr),_n(onMounted,Jr),_n(onBeforeUpdate,Zr),_n(onUpdated,tn),_n(onActivated,en),_n(onDeactivated,rn),_n(onErrorCaptured,cn),_n(onRenderTracked,dn),_n(onRenderTriggered,ln),_n(onBeforeUnmount,on),_n(onUnmounted,an),_n(onServerPrefetch,fn),isArray$5(pn))if(pn.length){const $n=_r.exposed||(_r.exposed={});pn.forEach(yn=>{Object.defineProperty($n,yn,{get:()=>$r[yn],set:wn=>$r[yn]=wn})})}else _r.exposed||(_r.exposed={});sn&&_r.render===NOOP&&(_r.render=sn),hn!=null&&(_r.inheritAttrs=hn),mn&&(_r.components=mn),Sn&&(_r.directives=Sn)}function resolveInjections(_r,Fe,$r=NOOP){isArray$5(_r)&&(_r=normalizeInject(_r));for(const Fr in _r){const jr=_r[Fr];let zr;isObject$5(jr)?"default"in jr?zr=inject(jr.from||Fr,jr.default,!0):zr=inject(jr.from||Fr):zr=inject(jr),isRef(zr)?Object.defineProperty(Fe,Fr,{enumerable:!0,configurable:!0,get:()=>zr.value,set:Vr=>zr.value=Vr}):Fe[Fr]=zr}}function callHook$1(_r,Fe,$r){callWithAsyncErrorHandling(isArray$5(_r)?_r.map(Fr=>Fr.bind(Fe.proxy)):_r.bind(Fe.proxy),Fe,$r)}function createWatcher(_r,Fe,$r,Fr){const jr=Fr.includes(".")?createPathGetter($r,Fr):()=>$r[Fr];if(isString$2(_r)){const zr=Fe[_r];isFunction$3(zr)&&watch(jr,zr)}else if(isFunction$3(_r))watch(jr,_r.bind($r));else if(isObject$5(_r))if(isArray$5(_r))_r.forEach(zr=>createWatcher(zr,Fe,$r,Fr));else{const zr=isFunction$3(_r.handler)?_r.handler.bind($r):Fe[_r.handler];isFunction$3(zr)&&watch(jr,zr,_r)}}function resolveMergedOptions(_r){const Fe=_r.type,{mixins:$r,extends:Fr}=Fe,{mixins:jr,optionsCache:zr,config:{optionMergeStrategies:Vr}}=_r.appContext,Wr=zr.get(Fe);let Kr;return Wr?Kr=Wr:!jr.length&&!$r&&!Fr?Kr=Fe:(Kr={},jr.length&&jr.forEach(Gr=>mergeOptions(Kr,Gr,Vr,!0)),mergeOptions(Kr,Fe,Vr)),isObject$5(Fe)&&zr.set(Fe,Kr),Kr}function mergeOptions(_r,Fe,$r,Fr=!1){const{mixins:jr,extends:zr}=Fe;zr&&mergeOptions(_r,zr,$r,!0),jr&&jr.forEach(Vr=>mergeOptions(_r,Vr,$r,!0));for(const Vr in Fe)if(!(Fr&&Vr==="expose")){const Wr=internalOptionMergeStrats[Vr]||$r&&$r[Vr];_r[Vr]=Wr?Wr(_r[Vr],Fe[Vr]):Fe[Vr]}return _r}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray$1,created:mergeAsArray$1,beforeMount:mergeAsArray$1,mounted:mergeAsArray$1,beforeUpdate:mergeAsArray$1,updated:mergeAsArray$1,beforeDestroy:mergeAsArray$1,beforeUnmount:mergeAsArray$1,destroyed:mergeAsArray$1,unmounted:mergeAsArray$1,activated:mergeAsArray$1,deactivated:mergeAsArray$1,errorCaptured:mergeAsArray$1,serverPrefetch:mergeAsArray$1,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(_r,Fe){return Fe?_r?function(){return extend$1(isFunction$3(_r)?_r.call(this,this):_r,isFunction$3(Fe)?Fe.call(this,this):Fe)}:Fe:_r}function mergeInject(_r,Fe){return mergeObjectOptions(normalizeInject(_r),normalizeInject(Fe))}function normalizeInject(_r){if(isArray$5(_r)){const Fe={};for(let $r=0;$r<_r.length;$r++)Fe[_r[$r]]=_r[$r];return Fe}return _r}function mergeAsArray$1(_r,Fe){return _r?[...new Set([].concat(_r,Fe))]:Fe}function mergeObjectOptions(_r,Fe){return _r?extend$1(Object.create(null),_r,Fe):Fe}function mergeEmitsOrPropsOptions(_r,Fe){return _r?isArray$5(_r)&&isArray$5(Fe)?[...new Set([..._r,...Fe])]:extend$1(Object.create(null),normalizePropsOrEmits(_r),normalizePropsOrEmits(Fe!=null?Fe:{})):Fe}function mergeWatchOptions(_r,Fe){if(!_r)return Fe;if(!Fe)return _r;const $r=extend$1(Object.create(null),_r);for(const Fr in Fe)$r[Fr]=mergeAsArray$1(_r[Fr],Fe[Fr]);return $r}function createAppContext(){return{app:null,config:{isNativeTag:NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let uid$1=0;function createAppAPI(_r,Fe){return function(Fr,jr=null){isFunction$3(Fr)||(Fr=extend$1({},Fr)),jr!=null&&!isObject$5(jr)&&(jr=null);const zr=createAppContext(),Vr=new Set;let Wr=!1;const Kr=zr.app={_uid:uid$1++,_component:Fr,_props:jr,_container:null,_context:zr,_instance:null,version:version$4,get config(){return zr.config},set config(Gr){},use(Gr,...Yr){return Vr.has(Gr)||(Gr&&isFunction$3(Gr.install)?(Vr.add(Gr),Gr.install(Kr,...Yr)):isFunction$3(Gr)&&(Vr.add(Gr),Gr(Kr,...Yr))),Kr},mixin(Gr){return zr.mixins.includes(Gr)||zr.mixins.push(Gr),Kr},component(Gr,Yr){return Yr?(zr.components[Gr]=Yr,Kr):zr.components[Gr]},directive(Gr,Yr){return Yr?(zr.directives[Gr]=Yr,Kr):zr.directives[Gr]},mount(Gr,Yr,Qr){if(!Wr){const Jr=createVNode(Fr,jr);return Jr.appContext=zr,Yr&&Fe?Fe(Jr,Gr):_r(Jr,Gr,Qr),Wr=!0,Kr._container=Gr,Gr.__vue_app__=Kr,getExposeProxy(Jr.component)||Jr.component.proxy}},unmount(){Wr&&(_r(null,Kr._container),delete Kr._container.__vue_app__)},provide(Gr,Yr){return zr.provides[Gr]=Yr,Kr},runWithContext(Gr){currentApp=Kr;try{return Gr()}finally{currentApp=null}}};return Kr}}let currentApp=null;function provide(_r,Fe){if(currentInstance){let $r=currentInstance.provides;const Fr=currentInstance.parent&&currentInstance.parent.provides;Fr===$r&&($r=currentInstance.provides=Object.create(Fr)),$r[_r]=Fe}}function inject(_r,Fe,$r=!1){const Fr=currentInstance||currentRenderingInstance;if(Fr||currentApp){const jr=Fr?Fr.parent==null?Fr.vnode.appContext&&Fr.vnode.appContext.provides:Fr.parent.provides:currentApp._context.provides;if(jr&&_r in jr)return jr[_r];if(arguments.length>1)return $r&&isFunction$3(Fe)?Fe.call(Fr&&Fr.proxy):Fe}}function hasInjectionContext(){return!!(currentInstance||currentRenderingInstance||currentApp)}function initProps(_r,Fe,$r,Fr=!1){const jr={},zr={};def(zr,InternalObjectKey,1),_r.propsDefaults=Object.create(null),setFullProps(_r,Fe,jr,zr);for(const Vr in _r.propsOptions[0])Vr in jr||(jr[Vr]=void 0);$r?_r.props=Fr?jr:shallowReactive(jr):_r.type.props?_r.props=jr:_r.props=zr,_r.attrs=zr}function updateProps(_r,Fe,$r,Fr){const{props:jr,attrs:zr,vnode:{patchFlag:Vr}}=_r,Wr=toRaw(jr),[Kr]=_r.propsOptions;let Gr=!1;if((Fr||Vr>0)&&!(Vr&16)){if(Vr&8){const Yr=_r.vnode.dynamicProps;for(let Qr=0;Qr<Yr.length;Qr++){let Jr=Yr[Qr];if(isEmitListener(_r.emitsOptions,Jr))continue;const Zr=Fe[Jr];if(Kr)if(hasOwn(zr,Jr))Zr!==zr[Jr]&&(zr[Jr]=Zr,Gr=!0);else{const tn=camelize(Jr);jr[tn]=resolvePropValue(Kr,Wr,tn,Zr,_r,!1)}else Zr!==zr[Jr]&&(zr[Jr]=Zr,Gr=!0)}}}else{setFullProps(_r,Fe,jr,zr)&&(Gr=!0);let Yr;for(const Qr in Wr)(!Fe||!hasOwn(Fe,Qr)&&((Yr=hyphenate(Qr))===Qr||!hasOwn(Fe,Yr)))&&(Kr?$r&&($r[Qr]!==void 0||$r[Yr]!==void 0)&&(jr[Qr]=resolvePropValue(Kr,Wr,Qr,void 0,_r,!0)):delete jr[Qr]);if(zr!==Wr)for(const Qr in zr)(!Fe||!hasOwn(Fe,Qr)&&!0)&&(delete zr[Qr],Gr=!0)}Gr&&trigger(_r,"set","$attrs")}function setFullProps(_r,Fe,$r,Fr){const[jr,zr]=_r.propsOptions;let Vr=!1,Wr;if(Fe)for(let Kr in Fe){if(isReservedProp(Kr))continue;const Gr=Fe[Kr];let Yr;jr&&hasOwn(jr,Yr=camelize(Kr))?!zr||!zr.includes(Yr)?$r[Yr]=Gr:(Wr||(Wr={}))[Yr]=Gr:isEmitListener(_r.emitsOptions,Kr)||(!(Kr in Fr)||Gr!==Fr[Kr])&&(Fr[Kr]=Gr,Vr=!0)}if(zr){const Kr=toRaw($r),Gr=Wr||EMPTY_OBJ;for(let Yr=0;Yr<zr.length;Yr++){const Qr=zr[Yr];$r[Qr]=resolvePropValue(jr,Kr,Qr,Gr[Qr],_r,!hasOwn(Gr,Qr))}}return Vr}function resolvePropValue(_r,Fe,$r,Fr,jr,zr){const Vr=_r[$r];if(Vr!=null){const Wr=hasOwn(Vr,"default");if(Wr&&Fr===void 0){const Kr=Vr.default;if(Vr.type!==Function&&!Vr.skipFactory&&isFunction$3(Kr)){const{propsDefaults:Gr}=jr;$r in Gr?Fr=Gr[$r]:(setCurrentInstance(jr),Fr=Gr[$r]=Kr.call(null,Fe),unsetCurrentInstance())}else Fr=Kr}Vr[0]&&(zr&&!Wr?Fr=!1:Vr[1]&&(Fr===""||Fr===hyphenate($r))&&(Fr=!0))}return Fr}function normalizePropsOptions(_r,Fe,$r=!1){const Fr=Fe.propsCache,jr=Fr.get(_r);if(jr)return jr;const zr=_r.props,Vr={},Wr=[];let Kr=!1;if(!isFunction$3(_r)){const Yr=Qr=>{Kr=!0;const[Jr,Zr]=normalizePropsOptions(Qr,Fe,!0);extend$1(Vr,Jr),Zr&&Wr.push(...Zr)};!$r&&Fe.mixins.length&&Fe.mixins.forEach(Yr),_r.extends&&Yr(_r.extends),_r.mixins&&_r.mixins.forEach(Yr)}if(!zr&&!Kr)return isObject$5(_r)&&Fr.set(_r,EMPTY_ARR),EMPTY_ARR;if(isArray$5(zr))for(let Yr=0;Yr<zr.length;Yr++){const Qr=camelize(zr[Yr]);validatePropName(Qr)&&(Vr[Qr]=EMPTY_OBJ)}else if(zr)for(const Yr in zr){const Qr=camelize(Yr);if(validatePropName(Qr)){const Jr=zr[Yr],Zr=Vr[Qr]=isArray$5(Jr)||isFunction$3(Jr)?{type:Jr}:extend$1({},Jr);if(Zr){const tn=getTypeIndex(Boolean,Zr.type),en=getTypeIndex(String,Zr.type);Zr[0]=tn>-1,Zr[1]=en<0||tn<en,(tn>-1||hasOwn(Zr,"default"))&&Wr.push(Qr)}}}const Gr=[Vr,Wr];return isObject$5(_r)&&Fr.set(_r,Gr),Gr}function validatePropName(_r){return _r[0]!=="$"}function getType$1(_r){const Fe=_r&&_r.toString().match(/^\s*(function|class) (\w+)/);return Fe?Fe[2]:_r===null?"null":""}function isSameType(_r,Fe){return getType$1(_r)===getType$1(Fe)}function getTypeIndex(_r,Fe){return isArray$5(Fe)?Fe.findIndex($r=>isSameType($r,_r)):isFunction$3(Fe)&&isSameType(Fe,_r)?0:-1}const isInternalKey=_r=>_r[0]==="_"||_r==="$stable",normalizeSlotValue=_r=>isArray$5(_r)?_r.map(normalizeVNode):[normalizeVNode(_r)],normalizeSlot=(_r,Fe,$r)=>{if(Fe._n)return Fe;const Fr=withCtx((...jr)=>normalizeSlotValue(Fe(...jr)),$r);return Fr._c=!1,Fr},normalizeObjectSlots=(_r,Fe,$r)=>{const Fr=_r._ctx;for(const jr in _r){if(isInternalKey(jr))continue;const zr=_r[jr];if(isFunction$3(zr))Fe[jr]=normalizeSlot(jr,zr,Fr);else if(zr!=null){const Vr=normalizeSlotValue(zr);Fe[jr]=()=>Vr}}},normalizeVNodeSlots=(_r,Fe)=>{const $r=normalizeSlotValue(Fe);_r.slots.default=()=>$r},initSlots=(_r,Fe)=>{if(_r.vnode.shapeFlag&32){const $r=Fe._;$r?(_r.slots=toRaw(Fe),def(Fe,"_",$r)):normalizeObjectSlots(Fe,_r.slots={})}else _r.slots={},Fe&&normalizeVNodeSlots(_r,Fe);def(_r.slots,InternalObjectKey,1)},updateSlots=(_r,Fe,$r)=>{const{vnode:Fr,slots:jr}=_r;let zr=!0,Vr=EMPTY_OBJ;if(Fr.shapeFlag&32){const Wr=Fe._;Wr?$r&&Wr===1?zr=!1:(extend$1(jr,Fe),!$r&&Wr===1&&delete jr._):(zr=!Fe.$stable,normalizeObjectSlots(Fe,jr)),Vr=Fe}else Fe&&(normalizeVNodeSlots(_r,Fe),Vr={default:1});if(zr)for(const Wr in jr)!isInternalKey(Wr)&&!(Wr in Vr)&&delete jr[Wr]};function setRef(_r,Fe,$r,Fr,jr=!1){if(isArray$5(_r)){_r.forEach((Jr,Zr)=>setRef(Jr,Fe&&(isArray$5(Fe)?Fe[Zr]:Fe),$r,Fr,jr));return}if(isAsyncWrapper(Fr)&&!jr)return;const zr=Fr.shapeFlag&4?getExposeProxy(Fr.component)||Fr.component.proxy:Fr.el,Vr=jr?null:zr,{i:Wr,r:Kr}=_r,Gr=Fe&&Fe.r,Yr=Wr.refs===EMPTY_OBJ?Wr.refs={}:Wr.refs,Qr=Wr.setupState;if(Gr!=null&&Gr!==Kr&&(isString$2(Gr)?(Yr[Gr]=null,hasOwn(Qr,Gr)&&(Qr[Gr]=null)):isRef(Gr)&&(Gr.value=null)),isFunction$3(Kr))callWithErrorHandling(Kr,Wr,12,[Vr,Yr]);else{const Jr=isString$2(Kr),Zr=isRef(Kr);if(Jr||Zr){const tn=()=>{if(_r.f){const en=Jr?hasOwn(Qr,Kr)?Qr[Kr]:Yr[Kr]:Kr.value;jr?isArray$5(en)&&remove(en,zr):isArray$5(en)?en.includes(zr)||en.push(zr):Jr?(Yr[Kr]=[zr],hasOwn(Qr,Kr)&&(Qr[Kr]=Yr[Kr])):(Kr.value=[zr],_r.k&&(Yr[_r.k]=Kr.value))}else Jr?(Yr[Kr]=Vr,hasOwn(Qr,Kr)&&(Qr[Kr]=Vr)):Zr&&(Kr.value=Vr,_r.k&&(Yr[_r.k]=Vr))};Vr?(tn.id=-1,queuePostRenderEffect(tn,$r)):tn()}}}let hasMismatch=!1;const isSVGContainer=_r=>/svg/.test(_r.namespaceURI)&&_r.tagName!=="foreignObject",isComment=_r=>_r.nodeType===8;function createHydrationFunctions(_r){const{mt:Fe,p:$r,o:{patchProp:Fr,createText:jr,nextSibling:zr,parentNode:Vr,remove:Wr,insert:Kr,createComment:Gr}}=_r,Yr=(nn,on)=>{if(!on.hasChildNodes()){$r(null,nn,on),flushPostFlushCbs(),on._vnode=nn;return}hasMismatch=!1,Qr(on.firstChild,nn,null,null,null),flushPostFlushCbs(),on._vnode=nn,hasMismatch&&console.error("Hydration completed but contains mismatches.")},Qr=(nn,on,un,an,sn,dn=!1)=>{const ln=isComment(nn)&&nn.data==="[",cn=()=>en(nn,on,un,an,sn,ln),{type:fn,ref:pn,shapeFlag:hn,patchFlag:mn}=on;let Sn=nn.nodeType;on.el=nn,mn===-2&&(dn=!1,on.dynamicChildren=null);let vn=null;switch(fn){case Text$1:Sn!==3?on.children===""?(Kr(on.el=jr(""),Vr(nn),nn),vn=nn):vn=cn():(nn.data!==on.children&&(hasMismatch=!0,nn.data=on.children),vn=zr(nn));break;case Comment:Sn!==8||ln?vn=cn():vn=zr(nn);break;case Static:if(ln&&(nn=zr(nn),Sn=nn.nodeType),Sn===1||Sn===3){vn=nn;const bn=!on.children.length;for(let _n=0;_n<on.staticCount;_n++)bn&&(on.children+=vn.nodeType===1?vn.outerHTML:vn.data),_n===on.staticCount-1&&(on.anchor=vn),vn=zr(vn);return ln?zr(vn):vn}else cn();break;case Fragment:ln?vn=tn(nn,on,un,an,sn,dn):vn=cn();break;default:if(hn&1)Sn!==1||on.type.toLowerCase()!==nn.tagName.toLowerCase()?vn=cn():vn=Jr(nn,on,un,an,sn,dn);else if(hn&6){on.slotScopeIds=sn;const bn=Vr(nn);if(Fe(on,bn,null,un,an,isSVGContainer(bn),dn),vn=ln?rn(nn):zr(nn),vn&&isComment(vn)&&vn.data==="teleport end"&&(vn=zr(vn)),isAsyncWrapper(on)){let _n;ln?(_n=createVNode(Fragment),_n.anchor=vn?vn.previousSibling:bn.lastChild):_n=nn.nodeType===3?createTextVNode(""):createVNode("div"),_n.el=nn,on.component.subTree=_n}}else hn&64?Sn!==8?vn=cn():vn=on.type.hydrate(nn,on,un,an,sn,dn,_r,Zr):hn&128&&(vn=on.type.hydrate(nn,on,un,an,isSVGContainer(Vr(nn)),sn,dn,_r,Qr))}return pn!=null&&setRef(pn,null,an,on),vn},Jr=(nn,on,un,an,sn,dn)=>{dn=dn||!!on.dynamicChildren;const{type:ln,props:cn,patchFlag:fn,shapeFlag:pn,dirs:hn}=on,mn=ln==="input"&&hn||ln==="option";if(mn||fn!==-1){if(hn&&invokeDirectiveHook(on,null,un,"created"),cn)if(mn||!dn||fn&48)for(const vn in cn)(mn&&vn.endsWith("value")||isOn(vn)&&!isReservedProp(vn))&&Fr(nn,vn,null,cn[vn],!1,void 0,un);else cn.onClick&&Fr(nn,"onClick",null,cn.onClick,!1,void 0,un);let Sn;if((Sn=cn&&cn.onVnodeBeforeMount)&&invokeVNodeHook(Sn,un,on),hn&&invokeDirectiveHook(on,null,un,"beforeMount"),((Sn=cn&&cn.onVnodeMounted)||hn)&&queueEffectWithSuspense(()=>{Sn&&invokeVNodeHook(Sn,un,on),hn&&invokeDirectiveHook(on,null,un,"mounted")},an),pn&16&&!(cn&&(cn.innerHTML||cn.textContent))){let vn=Zr(nn.firstChild,on,nn,un,an,sn,dn);for(;vn;){hasMismatch=!0;const bn=vn;vn=vn.nextSibling,Wr(bn)}}else pn&8&&nn.textContent!==on.children&&(hasMismatch=!0,nn.textContent=on.children)}return nn.nextSibling},Zr=(nn,on,un,an,sn,dn,ln)=>{ln=ln||!!on.dynamicChildren;const cn=on.children,fn=cn.length;for(let pn=0;pn<fn;pn++){const hn=ln?cn[pn]:cn[pn]=normalizeVNode(cn[pn]);if(nn)nn=Qr(nn,hn,an,sn,dn,ln);else{if(hn.type===Text$1&&!hn.children)continue;hasMismatch=!0,$r(null,hn,un,null,an,sn,isSVGContainer(un),dn)}}return nn},tn=(nn,on,un,an,sn,dn)=>{const{slotScopeIds:ln}=on;ln&&(sn=sn?sn.concat(ln):ln);const cn=Vr(nn),fn=Zr(zr(nn),on,cn,un,an,sn,dn);return fn&&isComment(fn)&&fn.data==="]"?zr(on.anchor=fn):(hasMismatch=!0,Kr(on.anchor=Gr("]"),cn,fn),fn)},en=(nn,on,un,an,sn,dn)=>{if(hasMismatch=!0,on.el=null,dn){const fn=rn(nn);for(;;){const pn=zr(nn);if(pn&&pn!==fn)Wr(pn);else break}}const ln=zr(nn),cn=Vr(nn);return Wr(nn),$r(null,on,cn,ln,un,an,isSVGContainer(cn),sn),ln},rn=nn=>{let on=0;for(;nn;)if(nn=zr(nn),nn&&isComment(nn)&&(nn.data==="["&&on++,nn.data==="]")){if(on===0)return zr(nn);on--}return nn};return[Yr,Qr]}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(_r){return baseCreateRenderer(_r)}function createHydrationRenderer(_r){return baseCreateRenderer(_r,createHydrationFunctions)}function baseCreateRenderer(_r,Fe){const $r=getGlobalThis();$r.__VUE__=!0;const{insert:Fr,remove:jr,patchProp:zr,createElement:Vr,createText:Wr,createComment:Kr,setText:Gr,setElementText:Yr,parentNode:Qr,nextSibling:Jr,setScopeId:Zr=NOOP,insertStaticContent:tn}=_r,en=(En,xn,kn,Rn=null,Nn=null,Cn=null,Bn=!1,Fn=null,jn=!!xn.dynamicChildren)=>{if(En===xn)return;En&&!isSameVNodeType(En,xn)&&(Rn=On(En),Tn(En,Nn,Cn,!0),En=null),xn.patchFlag===-2&&(jn=!1,xn.dynamicChildren=null);const{type:In,ref:Un,shapeFlag:Vn}=xn;switch(In){case Text$1:rn(En,xn,kn,Rn);break;case Comment:nn(En,xn,kn,Rn);break;case Static:En==null&&on(xn,kn,Rn,Bn);break;case Fragment:mn(En,xn,kn,Rn,Nn,Cn,Bn,Fn,jn);break;default:Vn&1?sn(En,xn,kn,Rn,Nn,Cn,Bn,Fn,jn):Vn&6?Sn(En,xn,kn,Rn,Nn,Cn,Bn,Fn,jn):(Vn&64||Vn&128)&&In.process(En,xn,kn,Rn,Nn,Cn,Bn,Fn,jn,Qn)}Un!=null&&Nn&&setRef(Un,En&&En.ref,Cn,xn||En,!xn)},rn=(En,xn,kn,Rn)=>{if(En==null)Fr(xn.el=Wr(xn.children),kn,Rn);else{const Nn=xn.el=En.el;xn.children!==En.children&&Gr(Nn,xn.children)}},nn=(En,xn,kn,Rn)=>{En==null?Fr(xn.el=Kr(xn.children||""),kn,Rn):xn.el=En.el},on=(En,xn,kn,Rn)=>{[En.el,En.anchor]=tn(En.children,xn,kn,Rn,En.el,En.anchor)},un=({el:En,anchor:xn},kn,Rn)=>{let Nn;for(;En&&En!==xn;)Nn=Jr(En),Fr(En,kn,Rn),En=Nn;Fr(xn,kn,Rn)},an=({el:En,anchor:xn})=>{let kn;for(;En&&En!==xn;)kn=Jr(En),jr(En),En=kn;jr(xn)},sn=(En,xn,kn,Rn,Nn,Cn,Bn,Fn,jn)=>{Bn=Bn||xn.type==="svg",En==null?dn(xn,kn,Rn,Nn,Cn,Bn,Fn,jn):fn(En,xn,Nn,Cn,Bn,Fn,jn)},dn=(En,xn,kn,Rn,Nn,Cn,Bn,Fn)=>{let jn,In;const{type:Un,props:Vn,shapeFlag:Gn,transition:Wn,dirs:Kn}=En;if(jn=En.el=Vr(En.type,Cn,Vn&&Vn.is,Vn),Gn&8?Yr(jn,En.children):Gn&16&&cn(En.children,jn,null,Rn,Nn,Cn&&Un!=="foreignObject",Bn,Fn),Kn&&invokeDirectiveHook(En,null,Rn,"created"),ln(jn,En,En.scopeId,Bn,Rn),Vn){for(const Xn in Vn)Xn!=="value"&&!isReservedProp(Xn)&&zr(jn,Xn,null,Vn[Xn],Cn,En.children,Rn,Nn,Ln);"value"in Vn&&zr(jn,"value",null,Vn.value),(In=Vn.onVnodeBeforeMount)&&invokeVNodeHook(In,Rn,En)}Kn&&invokeDirectiveHook(En,null,Rn,"beforeMount");const ni=(!Nn||Nn&&!Nn.pendingBranch)&&Wn&&!Wn.persisted;ni&&Wn.beforeEnter(jn),Fr(jn,xn,kn),((In=Vn&&Vn.onVnodeMounted)||ni||Kn)&&queuePostRenderEffect(()=>{In&&invokeVNodeHook(In,Rn,En),ni&&Wn.enter(jn),Kn&&invokeDirectiveHook(En,null,Rn,"mounted")},Nn)},ln=(En,xn,kn,Rn,Nn)=>{if(kn&&Zr(En,kn),Rn)for(let Cn=0;Cn<Rn.length;Cn++)Zr(En,Rn[Cn]);if(Nn){let Cn=Nn.subTree;if(xn===Cn){const Bn=Nn.vnode;ln(En,Bn,Bn.scopeId,Bn.slotScopeIds,Nn.parent)}}},cn=(En,xn,kn,Rn,Nn,Cn,Bn,Fn,jn=0)=>{for(let In=jn;In<En.length;In++){const Un=En[In]=Fn?cloneIfMounted(En[In]):normalizeVNode(En[In]);en(null,Un,xn,kn,Rn,Nn,Cn,Bn,Fn)}},fn=(En,xn,kn,Rn,Nn,Cn,Bn)=>{const Fn=xn.el=En.el;let{patchFlag:jn,dynamicChildren:In,dirs:Un}=xn;jn|=En.patchFlag&16;const Vn=En.props||EMPTY_OBJ,Gn=xn.props||EMPTY_OBJ;let Wn;kn&&toggleRecurse(kn,!1),(Wn=Gn.onVnodeBeforeUpdate)&&invokeVNodeHook(Wn,kn,xn,En),Un&&invokeDirectiveHook(xn,En,kn,"beforeUpdate"),kn&&toggleRecurse(kn,!0);const Kn=Nn&&xn.type!=="foreignObject";if(In?pn(En.dynamicChildren,In,Fn,kn,Rn,Kn,Cn):Bn||yn(En,xn,Fn,null,kn,Rn,Kn,Cn,!1),jn>0){if(jn&16)hn(Fn,xn,Vn,Gn,kn,Rn,Nn);else if(jn&2&&Vn.class!==Gn.class&&zr(Fn,"class",null,Gn.class,Nn),jn&4&&zr(Fn,"style",Vn.style,Gn.style,Nn),jn&8){const ni=xn.dynamicProps;for(let Xn=0;Xn<ni.length;Xn++){const hi=ni[Xn],gi=Vn[hi],bi=Gn[hi];(bi!==gi||hi==="value")&&zr(Fn,hi,gi,bi,Nn,En.children,kn,Rn,Ln)}}jn&1&&En.children!==xn.children&&Yr(Fn,xn.children)}else!Bn&&In==null&&hn(Fn,xn,Vn,Gn,kn,Rn,Nn);((Wn=Gn.onVnodeUpdated)||Un)&&queuePostRenderEffect(()=>{Wn&&invokeVNodeHook(Wn,kn,xn,En),Un&&invokeDirectiveHook(xn,En,kn,"updated")},Rn)},pn=(En,xn,kn,Rn,Nn,Cn,Bn)=>{for(let Fn=0;Fn<xn.length;Fn++){const jn=En[Fn],In=xn[Fn],Un=jn.el&&(jn.type===Fragment||!isSameVNodeType(jn,In)||jn.shapeFlag&70)?Qr(jn.el):kn;en(jn,In,Un,null,Rn,Nn,Cn,Bn,!0)}},hn=(En,xn,kn,Rn,Nn,Cn,Bn)=>{if(kn!==Rn){if(kn!==EMPTY_OBJ)for(const Fn in kn)!isReservedProp(Fn)&&!(Fn in Rn)&&zr(En,Fn,kn[Fn],null,Bn,xn.children,Nn,Cn,Ln);for(const Fn in Rn){if(isReservedProp(Fn))continue;const jn=Rn[Fn],In=kn[Fn];jn!==In&&Fn!=="value"&&zr(En,Fn,In,jn,Bn,xn.children,Nn,Cn,Ln)}"value"in Rn&&zr(En,"value",kn.value,Rn.value)}},mn=(En,xn,kn,Rn,Nn,Cn,Bn,Fn,jn)=>{const In=xn.el=En?En.el:Wr(""),Un=xn.anchor=En?En.anchor:Wr("");let{patchFlag:Vn,dynamicChildren:Gn,slotScopeIds:Wn}=xn;Wn&&(Fn=Fn?Fn.concat(Wn):Wn),En==null?(Fr(In,kn,Rn),Fr(Un,kn,Rn),cn(xn.children,kn,Un,Nn,Cn,Bn,Fn,jn)):Vn>0&&Vn&64&&Gn&&En.dynamicChildren?(pn(En.dynamicChildren,Gn,kn,Nn,Cn,Bn,Fn),(xn.key!=null||Nn&&xn===Nn.subTree)&&traverseStaticChildren(En,xn,!0)):yn(En,xn,kn,Un,Nn,Cn,Bn,Fn,jn)},Sn=(En,xn,kn,Rn,Nn,Cn,Bn,Fn,jn)=>{xn.slotScopeIds=Fn,En==null?xn.shapeFlag&512?Nn.ctx.activate(xn,kn,Rn,Bn,jn):vn(xn,kn,Rn,Nn,Cn,Bn,jn):bn(En,xn,jn)},vn=(En,xn,kn,Rn,Nn,Cn,Bn)=>{const Fn=En.component=createComponentInstance(En,Rn,Nn);if(isKeepAlive(En)&&(Fn.ctx.renderer=Qn),setupComponent(Fn),Fn.asyncDep){if(Nn&&Nn.registerDep(Fn,_n),!En.el){const jn=Fn.subTree=createVNode(Comment);nn(null,jn,xn,kn)}return}_n(Fn,En,xn,kn,Nn,Cn,Bn)},bn=(En,xn,kn)=>{const Rn=xn.component=En.component;if(shouldUpdateComponent(En,xn,kn))if(Rn.asyncDep&&!Rn.asyncResolved){$n(Rn,xn,kn);return}else Rn.next=xn,invalidateJob(Rn.update),Rn.update();else xn.el=En.el,Rn.vnode=xn},_n=(En,xn,kn,Rn,Nn,Cn,Bn)=>{const Fn=()=>{if(En.isMounted){let{next:Un,bu:Vn,u:Gn,parent:Wn,vnode:Kn}=En,ni=Un,Xn;toggleRecurse(En,!1),Un?(Un.el=Kn.el,$n(En,Un,Bn)):Un=Kn,Vn&&invokeArrayFns(Vn),(Xn=Un.props&&Un.props.onVnodeBeforeUpdate)&&invokeVNodeHook(Xn,Wn,Un,Kn),toggleRecurse(En,!0);const hi=renderComponentRoot(En),gi=En.subTree;En.subTree=hi,en(gi,hi,Qr(gi.el),On(gi),En,Nn,Cn),Un.el=hi.el,ni===null&&updateHOCHostEl(En,hi.el),Gn&&queuePostRenderEffect(Gn,Nn),(Xn=Un.props&&Un.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(Xn,Wn,Un,Kn),Nn)}else{let Un;const{el:Vn,props:Gn}=xn,{bm:Wn,m:Kn,parent:ni}=En,Xn=isAsyncWrapper(xn);if(toggleRecurse(En,!1),Wn&&invokeArrayFns(Wn),!Xn&&(Un=Gn&&Gn.onVnodeBeforeMount)&&invokeVNodeHook(Un,ni,xn),toggleRecurse(En,!0),Vn&&fi){const hi=()=>{En.subTree=renderComponentRoot(En),fi(Vn,En.subTree,En,Nn,null)};Xn?xn.type.__asyncLoader().then(()=>!En.isUnmounted&&hi()):hi()}else{const hi=En.subTree=renderComponentRoot(En);en(null,hi,kn,Rn,En,Nn,Cn),xn.el=hi.el}if(Kn&&queuePostRenderEffect(Kn,Nn),!Xn&&(Un=Gn&&Gn.onVnodeMounted)){const hi=xn;queuePostRenderEffect(()=>invokeVNodeHook(Un,ni,hi),Nn)}(xn.shapeFlag&256||ni&&isAsyncWrapper(ni.vnode)&&ni.vnode.shapeFlag&256)&&En.a&&queuePostRenderEffect(En.a,Nn),En.isMounted=!0,xn=kn=Rn=null}},jn=En.effect=new ReactiveEffect(Fn,()=>queueJob(In),En.scope),In=En.update=()=>jn.run();In.id=En.uid,toggleRecurse(En,!0),In()},$n=(En,xn,kn)=>{xn.component=En;const Rn=En.vnode.props;En.vnode=xn,En.next=null,updateProps(En,xn.props,Rn,kn),updateSlots(En,xn.children,kn),pauseTracking(),flushPreFlushCbs(),resetTracking()},yn=(En,xn,kn,Rn,Nn,Cn,Bn,Fn,jn=!1)=>{const In=En&&En.children,Un=En?En.shapeFlag:0,Vn=xn.children,{patchFlag:Gn,shapeFlag:Wn}=xn;if(Gn>0){if(Gn&128){gn(In,Vn,kn,Rn,Nn,Cn,Bn,Fn,jn);return}else if(Gn&256){wn(In,Vn,kn,Rn,Nn,Cn,Bn,Fn,jn);return}}Wn&8?(Un&16&&Ln(In,Nn,Cn),Vn!==In&&Yr(kn,Vn)):Un&16?Wn&16?gn(In,Vn,kn,Rn,Nn,Cn,Bn,Fn,jn):Ln(In,Nn,Cn,!0):(Un&8&&Yr(kn,""),Wn&16&&cn(Vn,kn,Rn,Nn,Cn,Bn,Fn,jn))},wn=(En,xn,kn,Rn,Nn,Cn,Bn,Fn,jn)=>{En=En||EMPTY_ARR,xn=xn||EMPTY_ARR;const In=En.length,Un=xn.length,Vn=Math.min(In,Un);let Gn;for(Gn=0;Gn<Vn;Gn++){const Wn=xn[Gn]=jn?cloneIfMounted(xn[Gn]):normalizeVNode(xn[Gn]);en(En[Gn],Wn,kn,null,Nn,Cn,Bn,Fn,jn)}In>Un?Ln(En,Nn,Cn,!0,!1,Vn):cn(xn,kn,Rn,Nn,Cn,Bn,Fn,jn,Vn)},gn=(En,xn,kn,Rn,Nn,Cn,Bn,Fn,jn)=>{let In=0;const Un=xn.length;let Vn=En.length-1,Gn=Un-1;for(;In<=Vn&&In<=Gn;){const Wn=En[In],Kn=xn[In]=jn?cloneIfMounted(xn[In]):normalizeVNode(xn[In]);if(isSameVNodeType(Wn,Kn))en(Wn,Kn,kn,null,Nn,Cn,Bn,Fn,jn);else break;In++}for(;In<=Vn&&In<=Gn;){const Wn=En[Vn],Kn=xn[Gn]=jn?cloneIfMounted(xn[Gn]):normalizeVNode(xn[Gn]);if(isSameVNodeType(Wn,Kn))en(Wn,Kn,kn,null,Nn,Cn,Bn,Fn,jn);else break;Vn--,Gn--}if(In>Vn){if(In<=Gn){const Wn=Gn+1,Kn=Wn<Un?xn[Wn].el:Rn;for(;In<=Gn;)en(null,xn[In]=jn?cloneIfMounted(xn[In]):normalizeVNode(xn[In]),kn,Kn,Nn,Cn,Bn,Fn,jn),In++}}else if(In>Gn)for(;In<=Vn;)Tn(En[In],Nn,Cn,!0),In++;else{const Wn=In,Kn=In,ni=new Map;for(In=Kn;In<=Gn;In++){const ii=xn[In]=jn?cloneIfMounted(xn[In]):normalizeVNode(xn[In]);ii.key!=null&&ni.set(ii.key,In)}let Xn,hi=0;const gi=Gn-Kn+1;let bi=!1,zn=0;const Yn=new Array(gi);for(In=0;In<gi;In++)Yn[In]=0;for(In=Wn;In<=Vn;In++){const ii=En[In];if(hi>=gi){Tn(ii,Nn,Cn,!0);continue}let si;if(ii.key!=null)si=ni.get(ii.key);else for(Xn=Kn;Xn<=Gn;Xn++)if(Yn[Xn-Kn]===0&&isSameVNodeType(ii,xn[Xn])){si=Xn;break}si===void 0?Tn(ii,Nn,Cn,!0):(Yn[si-Kn]=In+1,si>=zn?zn=si:bi=!0,en(ii,xn[si],kn,null,Nn,Cn,Bn,Fn,jn),hi++)}const oi=bi?getSequence(Yn):EMPTY_ARR;for(Xn=oi.length-1,In=gi-1;In>=0;In--){const ii=Kn+In,si=xn[ii],pi=ii+1<Un?xn[ii+1].el:Rn;Yn[In]===0?en(null,si,kn,pi,Nn,Cn,Bn,Fn,jn):bi&&(Xn<0||In!==oi[Xn]?Pn(si,kn,pi,2):Xn--)}}},Pn=(En,xn,kn,Rn,Nn=null)=>{const{el:Cn,type:Bn,transition:Fn,children:jn,shapeFlag:In}=En;if(In&6){Pn(En.component.subTree,xn,kn,Rn);return}if(In&128){En.suspense.move(xn,kn,Rn);return}if(In&64){Bn.move(En,xn,kn,Qn);return}if(Bn===Fragment){Fr(Cn,xn,kn);for(let Vn=0;Vn<jn.length;Vn++)Pn(jn[Vn],xn,kn,Rn);Fr(En.anchor,xn,kn);return}if(Bn===Static){un(En,xn,kn);return}if(Rn!==2&&In&1&&Fn)if(Rn===0)Fn.beforeEnter(Cn),Fr(Cn,xn,kn),queuePostRenderEffect(()=>Fn.enter(Cn),Nn);else{const{leave:Vn,delayLeave:Gn,afterLeave:Wn}=Fn,Kn=()=>Fr(Cn,xn,kn),ni=()=>{Vn(Cn,()=>{Kn(),Wn&&Wn()})};Gn?Gn(Cn,Kn,ni):ni()}else Fr(Cn,xn,kn)},Tn=(En,xn,kn,Rn=!1,Nn=!1)=>{const{type:Cn,props:Bn,ref:Fn,children:jn,dynamicChildren:In,shapeFlag:Un,patchFlag:Vn,dirs:Gn}=En;if(Fn!=null&&setRef(Fn,null,kn,En,!0),Un&256){xn.ctx.deactivate(En);return}const Wn=Un&1&&Gn,Kn=!isAsyncWrapper(En);let ni;if(Kn&&(ni=Bn&&Bn.onVnodeBeforeUnmount)&&invokeVNodeHook(ni,xn,En),Un&6)Mn(En.component,kn,Rn);else{if(Un&128){En.suspense.unmount(kn,Rn);return}Wn&&invokeDirectiveHook(En,null,xn,"beforeUnmount"),Un&64?En.type.remove(En,xn,kn,Nn,Qn,Rn):In&&(Cn!==Fragment||Vn>0&&Vn&64)?Ln(In,xn,kn,!1,!0):(Cn===Fragment&&Vn&384||!Nn&&Un&16)&&Ln(jn,xn,kn),Rn&&An(En)}(Kn&&(ni=Bn&&Bn.onVnodeUnmounted)||Wn)&&queuePostRenderEffect(()=>{ni&&invokeVNodeHook(ni,xn,En),Wn&&invokeDirectiveHook(En,null,xn,"unmounted")},kn)},An=En=>{const{type:xn,el:kn,anchor:Rn,transition:Nn}=En;if(xn===Fragment){Dn(kn,Rn);return}if(xn===Static){an(En);return}const Cn=()=>{jr(kn),Nn&&!Nn.persisted&&Nn.afterLeave&&Nn.afterLeave()};if(En.shapeFlag&1&&Nn&&!Nn.persisted){const{leave:Bn,delayLeave:Fn}=Nn,jn=()=>Bn(kn,Cn);Fn?Fn(En.el,Cn,jn):jn()}else Cn()},Dn=(En,xn)=>{let kn;for(;En!==xn;)kn=Jr(En),jr(En),En=kn;jr(xn)},Mn=(En,xn,kn)=>{const{bum:Rn,scope:Nn,update:Cn,subTree:Bn,um:Fn}=En;Rn&&invokeArrayFns(Rn),Nn.stop(),Cn&&(Cn.active=!1,Tn(Bn,En,xn,kn)),Fn&&queuePostRenderEffect(Fn,xn),queuePostRenderEffect(()=>{En.isUnmounted=!0},xn),xn&&xn.pendingBranch&&!xn.isUnmounted&&En.asyncDep&&!En.asyncResolved&&En.suspenseId===xn.pendingId&&(xn.deps--,xn.deps===0&&xn.resolve())},Ln=(En,xn,kn,Rn=!1,Nn=!1,Cn=0)=>{for(let Bn=Cn;Bn<En.length;Bn++)Tn(En[Bn],xn,kn,Rn,Nn)},On=En=>En.shapeFlag&6?On(En.component.subTree):En.shapeFlag&128?En.suspense.next():Jr(En.anchor||En.el),qn=(En,xn,kn)=>{En==null?xn._vnode&&Tn(xn._vnode,null,null,!0):en(xn._vnode||null,En,xn,null,null,null,kn),flushPreFlushCbs(),flushPostFlushCbs(),xn._vnode=En},Qn={p:en,um:Tn,m:Pn,r:An,mt:vn,mc:cn,pc:yn,pbc:pn,n:On,o:_r};let di,fi;return Fe&&([di,fi]=Fe(Qn)),{render:qn,hydrate:di,createApp:createAppAPI(qn,di)}}function toggleRecurse({effect:_r,update:Fe},$r){_r.allowRecurse=Fe.allowRecurse=$r}function traverseStaticChildren(_r,Fe,$r=!1){const Fr=_r.children,jr=Fe.children;if(isArray$5(Fr)&&isArray$5(jr))for(let zr=0;zr<Fr.length;zr++){const Vr=Fr[zr];let Wr=jr[zr];Wr.shapeFlag&1&&!Wr.dynamicChildren&&((Wr.patchFlag<=0||Wr.patchFlag===32)&&(Wr=jr[zr]=cloneIfMounted(jr[zr]),Wr.el=Vr.el),$r||traverseStaticChildren(Vr,Wr)),Wr.type===Text$1&&(Wr.el=Vr.el)}}function getSequence(_r){const Fe=_r.slice(),$r=[0];let Fr,jr,zr,Vr,Wr;const Kr=_r.length;for(Fr=0;Fr<Kr;Fr++){const Gr=_r[Fr];if(Gr!==0){if(jr=$r[$r.length-1],_r[jr]<Gr){Fe[Fr]=jr,$r.push(Fr);continue}for(zr=0,Vr=$r.length-1;zr<Vr;)Wr=zr+Vr>>1,_r[$r[Wr]]<Gr?zr=Wr+1:Vr=Wr;Gr<_r[$r[zr]]&&(zr>0&&(Fe[Fr]=$r[zr-1]),$r[zr]=Fr)}}for(zr=$r.length,Vr=$r[zr-1];zr-- >0;)$r[zr]=Vr,Vr=Fe[Vr];return $r}const isTeleport=_r=>_r.__isTeleport,isTeleportDisabled=_r=>_r&&(_r.disabled||_r.disabled===""),isTargetSVG=_r=>typeof SVGElement!="undefined"&&_r instanceof SVGElement,resolveTarget=(_r,Fe)=>{const $r=_r&&_r.to;return isString$2($r)?Fe?Fe($r):null:$r},TeleportImpl={__isTeleport:!0,process(_r,Fe,$r,Fr,jr,zr,Vr,Wr,Kr,Gr){const{mc:Yr,pc:Qr,pbc:Jr,o:{insert:Zr,querySelector:tn,createText:en,createComment:rn}}=Gr,nn=isTeleportDisabled(Fe.props);let{shapeFlag:on,children:un,dynamicChildren:an}=Fe;if(_r==null){const sn=Fe.el=en(""),dn=Fe.anchor=en("");Zr(sn,$r,Fr),Zr(dn,$r,Fr);const ln=Fe.target=resolveTarget(Fe.props,tn),cn=Fe.targetAnchor=en("");ln&&(Zr(cn,ln),Vr=Vr||isTargetSVG(ln));const fn=(pn,hn)=>{on&16&&Yr(un,pn,hn,jr,zr,Vr,Wr,Kr)};nn?fn($r,dn):ln&&fn(ln,cn)}else{Fe.el=_r.el;const sn=Fe.anchor=_r.anchor,dn=Fe.target=_r.target,ln=Fe.targetAnchor=_r.targetAnchor,cn=isTeleportDisabled(_r.props),fn=cn?$r:dn,pn=cn?sn:ln;if(Vr=Vr||isTargetSVG(dn),an?(Jr(_r.dynamicChildren,an,fn,jr,zr,Vr,Wr),traverseStaticChildren(_r,Fe,!0)):Kr||Qr(_r,Fe,fn,pn,jr,zr,Vr,Wr,!1),nn)cn||moveTeleport(Fe,$r,sn,Gr,1);else if((Fe.props&&Fe.props.to)!==(_r.props&&_r.props.to)){const hn=Fe.target=resolveTarget(Fe.props,tn);hn&&moveTeleport(Fe,hn,null,Gr,0)}else cn&&moveTeleport(Fe,dn,ln,Gr,1)}updateCssVars(Fe)},remove(_r,Fe,$r,Fr,{um:jr,o:{remove:zr}},Vr){const{shapeFlag:Wr,children:Kr,anchor:Gr,targetAnchor:Yr,target:Qr,props:Jr}=_r;if(Qr&&zr(Yr),(Vr||!isTeleportDisabled(Jr))&&(zr(Gr),Wr&16))for(let Zr=0;Zr<Kr.length;Zr++){const tn=Kr[Zr];jr(tn,Fe,$r,!0,!!tn.dynamicChildren)}},move:moveTeleport,hydrate:hydrateTeleport};function moveTeleport(_r,Fe,$r,{o:{insert:Fr},m:jr},zr=2){zr===0&&Fr(_r.targetAnchor,Fe,$r);const{el:Vr,anchor:Wr,shapeFlag:Kr,children:Gr,props:Yr}=_r,Qr=zr===2;if(Qr&&Fr(Vr,Fe,$r),(!Qr||isTeleportDisabled(Yr))&&Kr&16)for(let Jr=0;Jr<Gr.length;Jr++)jr(Gr[Jr],Fe,$r,2);Qr&&Fr(Wr,Fe,$r)}function hydrateTeleport(_r,Fe,$r,Fr,jr,zr,{o:{nextSibling:Vr,parentNode:Wr,querySelector:Kr}},Gr){const Yr=Fe.target=resolveTarget(Fe.props,Kr);if(Yr){const Qr=Yr._lpa||Yr.firstChild;if(Fe.shapeFlag&16)if(isTeleportDisabled(Fe.props))Fe.anchor=Gr(Vr(_r),Fe,Wr(_r),$r,Fr,jr,zr),Fe.targetAnchor=Qr;else{Fe.anchor=Vr(_r);let Jr=Qr;for(;Jr;)if(Jr=Vr(Jr),Jr&&Jr.nodeType===8&&Jr.data==="teleport anchor"){Fe.targetAnchor=Jr,Yr._lpa=Fe.targetAnchor&&Vr(Fe.targetAnchor);break}Gr(Qr,Fe,Yr,$r,Fr,jr,zr)}updateCssVars(Fe)}return Fe.anchor&&Vr(Fe.anchor)}const Teleport=TeleportImpl;function updateCssVars(_r){const Fe=_r.ctx;if(Fe&&Fe.ut){let $r=_r.children[0].el;for(;$r!==_r.targetAnchor;)$r.nodeType===1&&$r.setAttribute("data-v-owner",Fe.uid),$r=$r.nextSibling;Fe.ut()}}const Fragment=Symbol.for("v-fgt"),Text$1=Symbol.for("v-txt"),Comment=Symbol.for("v-cmt"),Static=Symbol.for("v-stc"),blockStack=[];let currentBlock=null;function openBlock(_r=!1){blockStack.push(currentBlock=_r?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(_r){isBlockTreeEnabled+=_r}function setupBlock(_r){return _r.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&&currentBlock&&currentBlock.push(_r),_r}function createElementBlock(_r,Fe,$r,Fr,jr,zr){return setupBlock(createBaseVNode(_r,Fe,$r,Fr,jr,zr,!0))}function createBlock(_r,Fe,$r,Fr,jr){return setupBlock(createVNode(_r,Fe,$r,Fr,jr,!0))}function isVNode(_r){return _r?_r.__v_isVNode===!0:!1}function isSameVNodeType(_r,Fe){return _r.type===Fe.type&&_r.key===Fe.key}function transformVNodeArgs(_r){}const InternalObjectKey="__vInternal",normalizeKey=({key:_r})=>_r!=null?_r:null,normalizeRef=({ref:_r,ref_key:Fe,ref_for:$r})=>(typeof _r=="number"&&(_r=""+_r),_r!=null?isString$2(_r)||isRef(_r)||isFunction$3(_r)?{i:currentRenderingInstance,r:_r,k:Fe,f:!!$r}:_r:null);function createBaseVNode(_r,Fe=null,$r=null,Fr=0,jr=null,zr=_r===Fragment?0:1,Vr=!1,Wr=!1){const Kr={__v_isVNode:!0,__v_skip:!0,type:_r,props:Fe,key:Fe&&normalizeKey(Fe),ref:Fe&&normalizeRef(Fe),scopeId:currentScopeId,slotScopeIds:null,children:$r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:zr,patchFlag:Fr,dynamicProps:jr,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return Wr?(normalizeChildren(Kr,$r),zr&128&&_r.normalize(Kr)):$r&&(Kr.shapeFlag|=isString$2($r)?8:16),isBlockTreeEnabled>0&&!Vr&&currentBlock&&(Kr.patchFlag>0||zr&6)&&Kr.patchFlag!==32&&currentBlock.push(Kr),Kr}const createVNode=_createVNode;function _createVNode(_r,Fe=null,$r=null,Fr=0,jr=null,zr=!1){if((!_r||_r===NULL_DYNAMIC_COMPONENT)&&(_r=Comment),isVNode(_r)){const Wr=cloneVNode(_r,Fe,!0);return $r&&normalizeChildren(Wr,$r),isBlockTreeEnabled>0&&!zr&&currentBlock&&(Wr.shapeFlag&6?currentBlock[currentBlock.indexOf(_r)]=Wr:currentBlock.push(Wr)),Wr.patchFlag|=-2,Wr}if(isClassComponent(_r)&&(_r=_r.__vccOpts),Fe){Fe=guardReactiveProps(Fe);let{class:Wr,style:Kr}=Fe;Wr&&!isString$2(Wr)&&(Fe.class=normalizeClass(Wr)),isObject$5(Kr)&&(isProxy(Kr)&&!isArray$5(Kr)&&(Kr=extend$1({},Kr)),Fe.style=normalizeStyle(Kr))}const Vr=isString$2(_r)?1:isSuspense(_r)?128:isTeleport(_r)?64:isObject$5(_r)?4:isFunction$3(_r)?2:0;return createBaseVNode(_r,Fe,$r,Fr,jr,Vr,zr,!0)}function guardReactiveProps(_r){return _r?isProxy(_r)||InternalObjectKey in _r?extend$1({},_r):_r:null}function cloneVNode(_r,Fe,$r=!1){const{props:Fr,ref:jr,patchFlag:zr,children:Vr}=_r,Wr=Fe?mergeProps(Fr||{},Fe):Fr;return{__v_isVNode:!0,__v_skip:!0,type:_r.type,props:Wr,key:Wr&&normalizeKey(Wr),ref:Fe&&Fe.ref?$r&&jr?isArray$5(jr)?jr.concat(normalizeRef(Fe)):[jr,normalizeRef(Fe)]:normalizeRef(Fe):jr,scopeId:_r.scopeId,slotScopeIds:_r.slotScopeIds,children:Vr,target:_r.target,targetAnchor:_r.targetAnchor,staticCount:_r.staticCount,shapeFlag:_r.shapeFlag,patchFlag:Fe&&_r.type!==Fragment?zr===-1?16:zr|16:zr,dynamicProps:_r.dynamicProps,dynamicChildren:_r.dynamicChildren,appContext:_r.appContext,dirs:_r.dirs,transition:_r.transition,component:_r.component,suspense:_r.suspense,ssContent:_r.ssContent&&cloneVNode(_r.ssContent),ssFallback:_r.ssFallback&&cloneVNode(_r.ssFallback),el:_r.el,anchor:_r.anchor,ctx:_r.ctx,ce:_r.ce}}function createTextVNode(_r=" ",Fe=0){return createVNode(Text$1,null,_r,Fe)}function createStaticVNode(_r,Fe){const $r=createVNode(Static,null,_r);return $r.staticCount=Fe,$r}function createCommentVNode(_r="",Fe=!1){return Fe?(openBlock(),createBlock(Comment,null,_r)):createVNode(Comment,null,_r)}function normalizeVNode(_r){return _r==null||typeof _r=="boolean"?createVNode(Comment):isArray$5(_r)?createVNode(Fragment,null,_r.slice()):typeof _r=="object"?cloneIfMounted(_r):createVNode(Text$1,null,String(_r))}function cloneIfMounted(_r){return _r.el===null&&_r.patchFlag!==-1||_r.memo?_r:cloneVNode(_r)}function normalizeChildren(_r,Fe){let $r=0;const{shapeFlag:Fr}=_r;if(Fe==null)Fe=null;else if(isArray$5(Fe))$r=16;else if(typeof Fe=="object")if(Fr&65){const jr=Fe.default;jr&&(jr._c&&(jr._d=!1),normalizeChildren(_r,jr()),jr._c&&(jr._d=!0));return}else{$r=32;const jr=Fe._;!jr&&!(InternalObjectKey in Fe)?Fe._ctx=currentRenderingInstance:jr===3&&currentRenderingInstance&&(currentRenderingInstance.slots._===1?Fe._=1:(Fe._=2,_r.patchFlag|=1024))}else isFunction$3(Fe)?(Fe={default:Fe,_ctx:currentRenderingInstance},$r=32):(Fe=String(Fe),Fr&64?($r=16,Fe=[createTextVNode(Fe)]):$r=8);_r.children=Fe,_r.shapeFlag|=$r}function mergeProps(..._r){const Fe={};for(let $r=0;$r<_r.length;$r++){const Fr=_r[$r];for(const jr in Fr)if(jr==="class")Fe.class!==Fr.class&&(Fe.class=normalizeClass([Fe.class,Fr.class]));else if(jr==="style")Fe.style=normalizeStyle([Fe.style,Fr.style]);else if(isOn(jr)){const zr=Fe[jr],Vr=Fr[jr];Vr&&zr!==Vr&&!(isArray$5(zr)&&zr.includes(Vr))&&(Fe[jr]=zr?[].concat(zr,Vr):Vr)}else jr!==""&&(Fe[jr]=Fr[jr])}return Fe}function invokeVNodeHook(_r,Fe,$r,Fr=null){callWithAsyncErrorHandling(_r,Fe,7,[$r,Fr])}const emptyAppContext=createAppContext();let uid$2=0;function createComponentInstance(_r,Fe,$r){const Fr=_r.type,jr=(Fe?Fe.appContext:_r.appContext)||emptyAppContext,zr={uid:uid$2++,vnode:_r,type:Fr,parent:Fe,appContext:jr,root:null,next:null,subTree:null,effect:null,update:null,scope:new EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:Fe?Fe.provides:Object.create(jr.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(Fr,jr),emitsOptions:normalizeEmitsOptions(Fr,jr),emit:null,emitted:null,propsDefaults:EMPTY_OBJ,inheritAttrs:Fr.inheritAttrs,ctx:EMPTY_OBJ,data:EMPTY_OBJ,props:EMPTY_OBJ,attrs:EMPTY_OBJ,slots:EMPTY_OBJ,refs:EMPTY_OBJ,setupState:EMPTY_OBJ,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:$r,suspenseId:$r?$r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return zr.ctx={_:zr},zr.root=Fe?Fe.root:zr,zr.emit=emit$1.bind(null,zr),_r.ce&&_r.ce(zr),zr}let currentInstance=null;const getCurrentInstance=()=>currentInstance||currentRenderingInstance;let internalSetCurrentInstance,globalCurrentInstanceSetters,settersKey="__VUE_INSTANCE_SETTERS__";(globalCurrentInstanceSetters=getGlobalThis()[settersKey])||(globalCurrentInstanceSetters=getGlobalThis()[settersKey]=[]),globalCurrentInstanceSetters.push(_r=>currentInstance=_r),internalSetCurrentInstance=_r=>{globalCurrentInstanceSetters.length>1?globalCurrentInstanceSetters.forEach(Fe=>Fe(_r)):globalCurrentInstanceSetters[0](_r)};const setCurrentInstance=_r=>{internalSetCurrentInstance(_r),_r.scope.on()},unsetCurrentInstance=()=>{currentInstance&&currentInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(_r){return _r.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(_r,Fe=!1){isInSSRComponentSetup=Fe;const{props:$r,children:Fr}=_r.vnode,jr=isStatefulComponent(_r);initProps(_r,$r,jr,Fe),initSlots(_r,Fr);const zr=jr?setupStatefulComponent(_r,Fe):void 0;return isInSSRComponentSetup=!1,zr}function setupStatefulComponent(_r,Fe){const $r=_r.type;_r.accessCache=Object.create(null),_r.proxy=markRaw(new Proxy(_r.ctx,PublicInstanceProxyHandlers));const{setup:Fr}=$r;if(Fr){const jr=_r.setupContext=Fr.length>1?createSetupContext(_r):null;setCurrentInstance(_r),pauseTracking();const zr=callWithErrorHandling(Fr,_r,0,[_r.props,jr]);if(resetTracking(),unsetCurrentInstance(),isPromise(zr)){if(zr.then(unsetCurrentInstance,unsetCurrentInstance),Fe)return zr.then(Vr=>{handleSetupResult(_r,Vr,Fe)}).catch(Vr=>{handleError(Vr,_r,0)});_r.asyncDep=zr}else handleSetupResult(_r,zr,Fe)}else finishComponentSetup(_r,Fe)}function handleSetupResult(_r,Fe,$r){isFunction$3(Fe)?_r.type.__ssrInlineRender?_r.ssrRender=Fe:_r.render=Fe:isObject$5(Fe)&&(_r.setupState=proxyRefs(Fe)),finishComponentSetup(_r,$r)}let compile$1,installWithProxy;function registerRuntimeCompiler(_r){compile$1=_r,installWithProxy=Fe=>{Fe.render._rc&&(Fe.withProxy=new Proxy(Fe.ctx,RuntimeCompiledPublicInstanceProxyHandlers))}}const isRuntimeOnly=()=>!compile$1;function finishComponentSetup(_r,Fe,$r){const Fr=_r.type;if(!_r.render){if(!Fe&&compile$1&&!Fr.render){const jr=Fr.template||resolveMergedOptions(_r).template;if(jr){const{isCustomElement:zr,compilerOptions:Vr}=_r.appContext.config,{delimiters:Wr,compilerOptions:Kr}=Fr,Gr=extend$1(extend$1({isCustomElement:zr,delimiters:Wr},Vr),Kr);Fr.render=compile$1(jr,Gr)}}_r.render=Fr.render||NOOP,installWithProxy&&installWithProxy(_r)}setCurrentInstance(_r),pauseTracking(),applyOptions(_r),resetTracking(),unsetCurrentInstance()}function getAttrsProxy(_r){return _r.attrsProxy||(_r.attrsProxy=new Proxy(_r.attrs,{get(Fe,$r){return track(_r,"get","$attrs"),Fe[$r]}}))}function createSetupContext(_r){const Fe=$r=>{_r.exposed=$r||{}};return{get attrs(){return getAttrsProxy(_r)},slots:_r.slots,emit:_r.emit,expose:Fe}}function getExposeProxy(_r){if(_r.exposed)return _r.exposeProxy||(_r.exposeProxy=new Proxy(proxyRefs(markRaw(_r.exposed)),{get(Fe,$r){if($r in Fe)return Fe[$r];if($r in publicPropertiesMap)return publicPropertiesMap[$r](_r)},has(Fe,$r){return $r in Fe||$r in publicPropertiesMap}}))}function getComponentName(_r,Fe=!0){return isFunction$3(_r)?_r.displayName||_r.name:_r.name||Fe&&_r.__name}function isClassComponent(_r){return isFunction$3(_r)&&"__vccOpts"in _r}const computed=(_r,Fe)=>computed$1(_r,Fe,isInSSRComponentSetup);function h$1(_r,Fe,$r){const Fr=arguments.length;return Fr===2?isObject$5(Fe)&&!isArray$5(Fe)?isVNode(Fe)?createVNode(_r,null,[Fe]):createVNode(_r,Fe):createVNode(_r,null,Fe):(Fr>3?$r=Array.prototype.slice.call(arguments,2):Fr===3&&isVNode($r)&&($r=[$r]),createVNode(_r,Fe,$r))}const ssrContextKey=Symbol.for("v-scx"),useSSRContext=()=>inject(ssrContextKey);function initCustomFormatter(){}function withMemo(_r,Fe,$r,Fr){const jr=$r[Fr];if(jr&&isMemoSame(jr,_r))return jr;const zr=Fe();return zr.memo=_r.slice(),$r[Fr]=zr}function isMemoSame(_r,Fe){const $r=_r.memo;if($r.length!=Fe.length)return!1;for(let Fr=0;Fr<$r.length;Fr++)if(hasChanged($r[Fr],Fe[Fr]))return!1;return isBlockTreeEnabled>0&&currentBlock&&currentBlock.push(_r),!0}const version$4="3.3.4",_ssrUtils={createComponentInstance,setupComponent,renderComponentRoot,setCurrentRenderingInstance,isVNode,normalizeVNode},ssrUtils=_ssrUtils,resolveFilter=null,compatUtils=null,svgNS="http://www.w3.org/2000/svg",doc=typeof document!="undefined"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(_r,Fe,$r)=>{Fe.insertBefore(_r,$r||null)},remove:_r=>{const Fe=_r.parentNode;Fe&&Fe.removeChild(_r)},createElement:(_r,Fe,$r,Fr)=>{const jr=Fe?doc.createElementNS(svgNS,_r):doc.createElement(_r,$r?{is:$r}:void 0);return _r==="select"&&Fr&&Fr.multiple!=null&&jr.setAttribute("multiple",Fr.multiple),jr},createText:_r=>doc.createTextNode(_r),createComment:_r=>doc.createComment(_r),setText:(_r,Fe)=>{_r.nodeValue=Fe},setElementText:(_r,Fe)=>{_r.textContent=Fe},parentNode:_r=>_r.parentNode,nextSibling:_r=>_r.nextSibling,querySelector:_r=>doc.querySelector(_r),setScopeId(_r,Fe){_r.setAttribute(Fe,"")},insertStaticContent(_r,Fe,$r,Fr,jr,zr){const Vr=$r?$r.previousSibling:Fe.lastChild;if(jr&&(jr===zr||jr.nextSibling))for(;Fe.insertBefore(jr.cloneNode(!0),$r),!(jr===zr||!(jr=jr.nextSibling)););else{templateContainer.innerHTML=Fr?`<svg>${_r}</svg>`:_r;const Wr=templateContainer.content;if(Fr){const Kr=Wr.firstChild;for(;Kr.firstChild;)Wr.appendChild(Kr.firstChild);Wr.removeChild(Kr)}Fe.insertBefore(Wr,$r)}return[Vr?Vr.nextSibling:Fe.firstChild,$r?$r.previousSibling:Fe.lastChild]}};function patchClass(_r,Fe,$r){const Fr=_r._vtc;Fr&&(Fe=(Fe?[Fe,...Fr]:[...Fr]).join(" ")),Fe==null?_r.removeAttribute("class"):$r?_r.setAttribute("class",Fe):_r.className=Fe}function patchStyle(_r,Fe,$r){const Fr=_r.style,jr=isString$2($r);if($r&&!jr){if(Fe&&!isString$2(Fe))for(const zr in Fe)$r[zr]==null&&setStyle$1(Fr,zr,"");for(const zr in $r)setStyle$1(Fr,zr,$r[zr])}else{const zr=Fr.display;jr?Fe!==$r&&(Fr.cssText=$r):Fe&&_r.removeAttribute("style"),"_vod"in _r&&(Fr.display=zr)}}const importantRE=/\s*!important$/;function setStyle$1(_r,Fe,$r){if(isArray$5($r))$r.forEach(Fr=>setStyle$1(_r,Fe,Fr));else if($r==null&&($r=""),Fe.startsWith("--"))_r.setProperty(Fe,$r);else{const Fr=autoPrefix(_r,Fe);importantRE.test($r)?_r.setProperty(hyphenate(Fr),$r.replace(importantRE,""),"important"):_r[Fr]=$r}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(_r,Fe){const $r=prefixCache[Fe];if($r)return $r;let Fr=camelize(Fe);if(Fr!=="filter"&&Fr in _r)return prefixCache[Fe]=Fr;Fr=capitalize(Fr);for(let jr=0;jr<prefixes.length;jr++){const zr=prefixes[jr]+Fr;if(zr in _r)return prefixCache[Fe]=zr}return Fe}const xlinkNS="http://www.w3.org/1999/xlink";function patchAttr(_r,Fe,$r,Fr,jr){if(Fr&&Fe.startsWith("xlink:"))$r==null?_r.removeAttributeNS(xlinkNS,Fe.slice(6,Fe.length)):_r.setAttributeNS(xlinkNS,Fe,$r);else{const zr=isSpecialBooleanAttr(Fe);$r==null||zr&&!includeBooleanAttr($r)?_r.removeAttribute(Fe):_r.setAttribute(Fe,zr?"":$r)}}function patchDOMProp(_r,Fe,$r,Fr,jr,zr,Vr){if(Fe==="innerHTML"||Fe==="textContent"){Fr&&Vr(Fr,jr,zr),_r[Fe]=$r==null?"":$r;return}const Wr=_r.tagName;if(Fe==="value"&&Wr!=="PROGRESS"&&!Wr.includes("-")){_r._value=$r;const Gr=Wr==="OPTION"?_r.getAttribute("value"):_r.value,Yr=$r==null?"":$r;Gr!==Yr&&(_r.value=Yr),$r==null&&_r.removeAttribute(Fe);return}let Kr=!1;if($r===""||$r==null){const Gr=typeof _r[Fe];Gr==="boolean"?$r=includeBooleanAttr($r):$r==null&&Gr==="string"?($r="",Kr=!0):Gr==="number"&&($r=0,Kr=!0)}try{_r[Fe]=$r}catch{}Kr&&_r.removeAttribute(Fe)}function addEventListener(_r,Fe,$r,Fr){_r.addEventListener(Fe,$r,Fr)}function removeEventListener(_r,Fe,$r,Fr){_r.removeEventListener(Fe,$r,Fr)}function patchEvent(_r,Fe,$r,Fr,jr=null){const zr=_r._vei||(_r._vei={}),Vr=zr[Fe];if(Fr&&Vr)Vr.value=Fr;else{const[Wr,Kr]=parseName(Fe);if(Fr){const Gr=zr[Fe]=createInvoker(Fr,jr);addEventListener(_r,Wr,Gr,Kr)}else Vr&&(removeEventListener(_r,Wr,Vr,Kr),zr[Fe]=void 0)}}const optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName(_r){let Fe;if(optionsModifierRE.test(_r)){Fe={};let Fr;for(;Fr=_r.match(optionsModifierRE);)_r=_r.slice(0,_r.length-Fr[0].length),Fe[Fr[0].toLowerCase()]=!0}return[_r[2]===":"?_r.slice(3):hyphenate(_r.slice(2)),Fe]}let cachedNow=0;const p$2=Promise.resolve(),getNow=()=>cachedNow||(p$2.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(_r,Fe){const $r=Fr=>{if(!Fr._vts)Fr._vts=Date.now();else if(Fr._vts<=$r.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(Fr,$r.value),Fe,5,[Fr])};return $r.value=_r,$r.attached=getNow(),$r}function patchStopImmediatePropagation(_r,Fe){if(isArray$5(Fe)){const $r=_r.stopImmediatePropagation;return _r.stopImmediatePropagation=()=>{$r.call(_r),_r._stopped=!0},Fe.map(Fr=>jr=>!jr._stopped&&Fr&&Fr(jr))}else return Fe}const nativeOnRE=/^on[a-z]/,patchProp=(_r,Fe,$r,Fr,jr=!1,zr,Vr,Wr,Kr)=>{Fe==="class"?patchClass(_r,Fr,jr):Fe==="style"?patchStyle(_r,$r,Fr):isOn(Fe)?isModelListener(Fe)||patchEvent(_r,Fe,$r,Fr,Vr):(Fe[0]==="."?(Fe=Fe.slice(1),!0):Fe[0]==="^"?(Fe=Fe.slice(1),!1):shouldSetAsProp(_r,Fe,Fr,jr))?patchDOMProp(_r,Fe,Fr,zr,Vr,Wr,Kr):(Fe==="true-value"?_r._trueValue=Fr:Fe==="false-value"&&(_r._falseValue=Fr),patchAttr(_r,Fe,Fr,jr))};function shouldSetAsProp(_r,Fe,$r,Fr){return Fr?!!(Fe==="innerHTML"||Fe==="textContent"||Fe in _r&&nativeOnRE.test(Fe)&&isFunction$3($r)):Fe==="spellcheck"||Fe==="draggable"||Fe==="translate"||Fe==="form"||Fe==="list"&&_r.tagName==="INPUT"||Fe==="type"&&_r.tagName==="TEXTAREA"||nativeOnRE.test(Fe)&&isString$2($r)?!1:Fe in _r}function defineCustomElement(_r,Fe){const $r=defineComponent(_r);class Fr extends VueElement{constructor(zr){super($r,zr,Fe)}}return Fr.def=$r,Fr}const defineSSRCustomElement=_r=>defineCustomElement(_r,hydrate),BaseClass=typeof HTMLElement!="undefined"?HTMLElement:class{};class VueElement extends BaseClass{constructor(Fe,$r={},Fr){super(),this._def=Fe,this._props=$r,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&Fr?Fr(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,nextTick(()=>{this._connected||(render(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let Fr=0;Fr<this.attributes.length;Fr++)this._setAttr(this.attributes[Fr].name);new MutationObserver(Fr=>{for(const jr of Fr)this._setAttr(jr.attributeName)}).observe(this,{attributes:!0});const Fe=(Fr,jr=!1)=>{const{props:zr,styles:Vr}=Fr;let Wr;if(zr&&!isArray$5(zr))for(const Kr in zr){const Gr=zr[Kr];(Gr===Number||Gr&&Gr.type===Number)&&(Kr in this._props&&(this._props[Kr]=toNumber$1(this._props[Kr])),(Wr||(Wr=Object.create(null)))[camelize(Kr)]=!0)}this._numberProps=Wr,jr&&this._resolveProps(Fr),this._applyStyles(Vr),this._update()},$r=this._def.__asyncLoader;$r?$r().then(Fr=>Fe(Fr,!0)):Fe(this._def)}_resolveProps(Fe){const{props:$r}=Fe,Fr=isArray$5($r)?$r:Object.keys($r||{});for(const jr of Object.keys(this))jr[0]!=="_"&&Fr.includes(jr)&&this._setProp(jr,this[jr],!0,!1);for(const jr of Fr.map(camelize))Object.defineProperty(this,jr,{get(){return this._getProp(jr)},set(zr){this._setProp(jr,zr)}})}_setAttr(Fe){let $r=this.getAttribute(Fe);const Fr=camelize(Fe);this._numberProps&&this._numberProps[Fr]&&($r=toNumber$1($r)),this._setProp(Fr,$r,!1)}_getProp(Fe){return this._props[Fe]}_setProp(Fe,$r,Fr=!0,jr=!0){$r!==this._props[Fe]&&(this._props[Fe]=$r,jr&&this._instance&&this._update(),Fr&&($r===!0?this.setAttribute(hyphenate(Fe),""):typeof $r=="string"||typeof $r=="number"?this.setAttribute(hyphenate(Fe),$r+""):$r||this.removeAttribute(hyphenate(Fe))))}_update(){render(this._createVNode(),this.shadowRoot)}_createVNode(){const Fe=createVNode(this._def,extend$1({},this._props));return this._instance||(Fe.ce=$r=>{this._instance=$r,$r.isCE=!0;const Fr=(zr,Vr)=>{this.dispatchEvent(new CustomEvent(zr,{detail:Vr}))};$r.emit=(zr,...Vr)=>{Fr(zr,Vr),hyphenate(zr)!==zr&&Fr(hyphenate(zr),Vr)};let jr=this;for(;jr=jr&&(jr.parentNode||jr.host);)if(jr instanceof VueElement){$r.parent=jr._instance,$r.provides=jr._instance.provides;break}}),Fe}_applyStyles(Fe){Fe&&Fe.forEach($r=>{const Fr=document.createElement("style");Fr.textContent=$r,this.shadowRoot.appendChild(Fr)})}}function useCssModule(_r="$style"){{const Fe=getCurrentInstance();if(!Fe)return EMPTY_OBJ;const $r=Fe.type.__cssModules;if(!$r)return EMPTY_OBJ;const Fr=$r[_r];return Fr||EMPTY_OBJ}}function useCssVars(_r){const Fe=getCurrentInstance();if(!Fe)return;const $r=Fe.ut=(jr=_r(Fe.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${Fe.uid}"]`)).forEach(zr=>setVarsOnNode(zr,jr))},Fr=()=>{const jr=_r(Fe.proxy);setVarsOnVNode(Fe.subTree,jr),$r(jr)};watchPostEffect(Fr),onMounted(()=>{const jr=new MutationObserver(Fr);jr.observe(Fe.subTree.el.parentNode,{childList:!0}),onUnmounted(()=>jr.disconnect())})}function setVarsOnVNode(_r,Fe){if(_r.shapeFlag&128){const $r=_r.suspense;_r=$r.activeBranch,$r.pendingBranch&&!$r.isHydrating&&$r.effects.push(()=>{setVarsOnVNode($r.activeBranch,Fe)})}for(;_r.component;)_r=_r.component.subTree;if(_r.shapeFlag&1&&_r.el)setVarsOnNode(_r.el,Fe);else if(_r.type===Fragment)_r.children.forEach($r=>setVarsOnVNode($r,Fe));else if(_r.type===Static){let{el:$r,anchor:Fr}=_r;for(;$r&&(setVarsOnNode($r,Fe),$r!==Fr);)$r=$r.nextSibling}}function setVarsOnNode(_r,Fe){if(_r.nodeType===1){const $r=_r.style;for(const Fr in Fe)$r.setProperty(`--${Fr}`,Fe[Fr])}}const TRANSITION$1="transition",ANIMATION="animation",Transition=(_r,{slots:Fe})=>h$1(BaseTransition,resolveTransitionProps(_r),Fe);Transition.displayName="Transition";const DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},TransitionPropsValidators=Transition.props=extend$1({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),callHook=(_r,Fe=[])=>{isArray$5(_r)?_r.forEach($r=>$r(...Fe)):_r&&_r(...Fe)},hasExplicitCallback=_r=>_r?isArray$5(_r)?_r.some(Fe=>Fe.length>1):_r.length>1:!1;function resolveTransitionProps(_r){const Fe={};for(const mn in _r)mn in DOMTransitionPropsValidators||(Fe[mn]=_r[mn]);if(_r.css===!1)return Fe;const{name:$r="v",type:Fr,duration:jr,enterFromClass:zr=`${$r}-enter-from`,enterActiveClass:Vr=`${$r}-enter-active`,enterToClass:Wr=`${$r}-enter-to`,appearFromClass:Kr=zr,appearActiveClass:Gr=Vr,appearToClass:Yr=Wr,leaveFromClass:Qr=`${$r}-leave-from`,leaveActiveClass:Jr=`${$r}-leave-active`,leaveToClass:Zr=`${$r}-leave-to`}=_r,tn=normalizeDuration(jr),en=tn&&tn[0],rn=tn&&tn[1],{onBeforeEnter:nn,onEnter:on,onEnterCancelled:un,onLeave:an,onLeaveCancelled:sn,onBeforeAppear:dn=nn,onAppear:ln=on,onAppearCancelled:cn=un}=Fe,fn=(mn,Sn,vn)=>{removeTransitionClass(mn,Sn?Yr:Wr),removeTransitionClass(mn,Sn?Gr:Vr),vn&&vn()},pn=(mn,Sn)=>{mn._isLeaving=!1,removeTransitionClass(mn,Qr),removeTransitionClass(mn,Zr),removeTransitionClass(mn,Jr),Sn&&Sn()},hn=mn=>(Sn,vn)=>{const bn=mn?ln:on,_n=()=>fn(Sn,mn,vn);callHook(bn,[Sn,_n]),nextFrame(()=>{removeTransitionClass(Sn,mn?Kr:zr),addTransitionClass(Sn,mn?Yr:Wr),hasExplicitCallback(bn)||whenTransitionEnds(Sn,Fr,en,_n)})};return extend$1(Fe,{onBeforeEnter(mn){callHook(nn,[mn]),addTransitionClass(mn,zr),addTransitionClass(mn,Vr)},onBeforeAppear(mn){callHook(dn,[mn]),addTransitionClass(mn,Kr),addTransitionClass(mn,Gr)},onEnter:hn(!1),onAppear:hn(!0),onLeave(mn,Sn){mn._isLeaving=!0;const vn=()=>pn(mn,Sn);addTransitionClass(mn,Qr),forceReflow(),addTransitionClass(mn,Jr),nextFrame(()=>{!mn._isLeaving||(removeTransitionClass(mn,Qr),addTransitionClass(mn,Zr),hasExplicitCallback(an)||whenTransitionEnds(mn,Fr,rn,vn))}),callHook(an,[mn,vn])},onEnterCancelled(mn){fn(mn,!1),callHook(un,[mn])},onAppearCancelled(mn){fn(mn,!0),callHook(cn,[mn])},onLeaveCancelled(mn){pn(mn),callHook(sn,[mn])}})}function normalizeDuration(_r){if(_r==null)return null;if(isObject$5(_r))return[NumberOf(_r.enter),NumberOf(_r.leave)];{const Fe=NumberOf(_r);return[Fe,Fe]}}function NumberOf(_r){return toNumber$1(_r)}function addTransitionClass(_r,Fe){Fe.split(/\s+/).forEach($r=>$r&&_r.classList.add($r)),(_r._vtc||(_r._vtc=new Set)).add(Fe)}function removeTransitionClass(_r,Fe){Fe.split(/\s+/).forEach(Fr=>Fr&&_r.classList.remove(Fr));const{_vtc:$r}=_r;$r&&($r.delete(Fe),$r.size||(_r._vtc=void 0))}function nextFrame(_r){requestAnimationFrame(()=>{requestAnimationFrame(_r)})}let endId=0;function whenTransitionEnds(_r,Fe,$r,Fr){const jr=_r._endId=++endId,zr=()=>{jr===_r._endId&&Fr()};if($r)return setTimeout(zr,$r);const{type:Vr,timeout:Wr,propCount:Kr}=getTransitionInfo(_r,Fe);if(!Vr)return Fr();const Gr=Vr+"end";let Yr=0;const Qr=()=>{_r.removeEventListener(Gr,Jr),zr()},Jr=Zr=>{Zr.target===_r&&++Yr>=Kr&&Qr()};setTimeout(()=>{Yr<Kr&&Qr()},Wr+1),_r.addEventListener(Gr,Jr)}function getTransitionInfo(_r,Fe){const $r=window.getComputedStyle(_r),Fr=tn=>($r[tn]||"").split(", "),jr=Fr(`${TRANSITION$1}Delay`),zr=Fr(`${TRANSITION$1}Duration`),Vr=getTimeout(jr,zr),Wr=Fr(`${ANIMATION}Delay`),Kr=Fr(`${ANIMATION}Duration`),Gr=getTimeout(Wr,Kr);let Yr=null,Qr=0,Jr=0;Fe===TRANSITION$1?Vr>0&&(Yr=TRANSITION$1,Qr=Vr,Jr=zr.length):Fe===ANIMATION?Gr>0&&(Yr=ANIMATION,Qr=Gr,Jr=Kr.length):(Qr=Math.max(Vr,Gr),Yr=Qr>0?Vr>Gr?TRANSITION$1:ANIMATION:null,Jr=Yr?Yr===TRANSITION$1?zr.length:Kr.length:0);const Zr=Yr===TRANSITION$1&&/\b(transform|all)(,|$)/.test(Fr(`${TRANSITION$1}Property`).toString());return{type:Yr,timeout:Qr,propCount:Jr,hasTransform:Zr}}function getTimeout(_r,Fe){for(;_r.length<Fe.length;)_r=_r.concat(_r);return Math.max(...Fe.map(($r,Fr)=>toMs($r)+toMs(_r[Fr])))}function toMs(_r){return Number(_r.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}const positionMap=new WeakMap,newPositionMap=new WeakMap,TransitionGroupImpl={name:"TransitionGroup",props:extend$1({},TransitionPropsValidators,{tag:String,moveClass:String}),setup(_r,{slots:Fe}){const $r=getCurrentInstance(),Fr=useTransitionState();let jr,zr;return onUpdated(()=>{if(!jr.length)return;const Vr=_r.moveClass||`${_r.name||"v"}-move`;if(!hasCSSTransform(jr[0].el,$r.vnode.el,Vr))return;jr.forEach(callPendingCbs),jr.forEach(recordPosition);const Wr=jr.filter(applyTranslation);forceReflow(),Wr.forEach(Kr=>{const Gr=Kr.el,Yr=Gr.style;addTransitionClass(Gr,Vr),Yr.transform=Yr.webkitTransform=Yr.transitionDuration="";const Qr=Gr._moveCb=Jr=>{Jr&&Jr.target!==Gr||(!Jr||/transform$/.test(Jr.propertyName))&&(Gr.removeEventListener("transitionend",Qr),Gr._moveCb=null,removeTransitionClass(Gr,Vr))};Gr.addEventListener("transitionend",Qr)})}),()=>{const Vr=toRaw(_r),Wr=resolveTransitionProps(Vr);let Kr=Vr.tag||Fragment;jr=zr,zr=Fe.default?getTransitionRawChildren(Fe.default()):[];for(let Gr=0;Gr<zr.length;Gr++){const Yr=zr[Gr];Yr.key!=null&&setTransitionHooks(Yr,resolveTransitionHooks(Yr,Wr,Fr,$r))}if(jr)for(let Gr=0;Gr<jr.length;Gr++){const Yr=jr[Gr];setTransitionHooks(Yr,resolveTransitionHooks(Yr,Wr,Fr,$r)),positionMap.set(Yr,Yr.el.getBoundingClientRect())}return createVNode(Kr,null,zr)}}},removeMode=_r=>delete _r.mode;TransitionGroupImpl.props;const TransitionGroup=TransitionGroupImpl;function callPendingCbs(_r){const Fe=_r.el;Fe._moveCb&&Fe._moveCb(),Fe._enterCb&&Fe._enterCb()}function recordPosition(_r){newPositionMap.set(_r,_r.el.getBoundingClientRect())}function applyTranslation(_r){const Fe=positionMap.get(_r),$r=newPositionMap.get(_r),Fr=Fe.left-$r.left,jr=Fe.top-$r.top;if(Fr||jr){const zr=_r.el.style;return zr.transform=zr.webkitTransform=`translate(${Fr}px,${jr}px)`,zr.transitionDuration="0s",_r}}function hasCSSTransform(_r,Fe,$r){const Fr=_r.cloneNode();_r._vtc&&_r._vtc.forEach(Vr=>{Vr.split(/\s+/).forEach(Wr=>Wr&&Fr.classList.remove(Wr))}),$r.split(/\s+/).forEach(Vr=>Vr&&Fr.classList.add(Vr)),Fr.style.display="none";const jr=Fe.nodeType===1?Fe:Fe.parentNode;jr.appendChild(Fr);const{hasTransform:zr}=getTransitionInfo(Fr);return jr.removeChild(Fr),zr}const getModelAssigner=_r=>{const Fe=_r.props["onUpdate:modelValue"]||!1;return isArray$5(Fe)?$r=>invokeArrayFns(Fe,$r):Fe};function onCompositionStart(_r){_r.target.composing=!0}function onCompositionEnd(_r){const Fe=_r.target;Fe.composing&&(Fe.composing=!1,Fe.dispatchEvent(new Event("input")))}const vModelText={created(_r,{modifiers:{lazy:Fe,trim:$r,number:Fr}},jr){_r._assign=getModelAssigner(jr);const zr=Fr||jr.props&&jr.props.type==="number";addEventListener(_r,Fe?"change":"input",Vr=>{if(Vr.target.composing)return;let Wr=_r.value;$r&&(Wr=Wr.trim()),zr&&(Wr=looseToNumber(Wr)),_r._assign(Wr)}),$r&&addEventListener(_r,"change",()=>{_r.value=_r.value.trim()}),Fe||(addEventListener(_r,"compositionstart",onCompositionStart),addEventListener(_r,"compositionend",onCompositionEnd),addEventListener(_r,"change",onCompositionEnd))},mounted(_r,{value:Fe}){_r.value=Fe==null?"":Fe},beforeUpdate(_r,{value:Fe,modifiers:{lazy:$r,trim:Fr,number:jr}},zr){if(_r._assign=getModelAssigner(zr),_r.composing||document.activeElement===_r&&_r.type!=="range"&&($r||Fr&&_r.value.trim()===Fe||(jr||_r.type==="number")&&looseToNumber(_r.value)===Fe))return;const Vr=Fe==null?"":Fe;_r.value!==Vr&&(_r.value=Vr)}},vModelCheckbox={deep:!0,created(_r,Fe,$r){_r._assign=getModelAssigner($r),addEventListener(_r,"change",()=>{const Fr=_r._modelValue,jr=getValue$1(_r),zr=_r.checked,Vr=_r._assign;if(isArray$5(Fr)){const Wr=looseIndexOf(Fr,jr),Kr=Wr!==-1;if(zr&&!Kr)Vr(Fr.concat(jr));else if(!zr&&Kr){const Gr=[...Fr];Gr.splice(Wr,1),Vr(Gr)}}else if(isSet(Fr)){const Wr=new Set(Fr);zr?Wr.add(jr):Wr.delete(jr),Vr(Wr)}else Vr(getCheckboxValue(_r,zr))})},mounted:setChecked,beforeUpdate(_r,Fe,$r){_r._assign=getModelAssigner($r),setChecked(_r,Fe,$r)}};function setChecked(_r,{value:Fe,oldValue:$r},Fr){_r._modelValue=Fe,isArray$5(Fe)?_r.checked=looseIndexOf(Fe,Fr.props.value)>-1:isSet(Fe)?_r.checked=Fe.has(Fr.props.value):Fe!==$r&&(_r.checked=looseEqual(Fe,getCheckboxValue(_r,!0)))}const vModelRadio={created(_r,{value:Fe},$r){_r.checked=looseEqual(Fe,$r.props.value),_r._assign=getModelAssigner($r),addEventListener(_r,"change",()=>{_r._assign(getValue$1(_r))})},beforeUpdate(_r,{value:Fe,oldValue:$r},Fr){_r._assign=getModelAssigner(Fr),Fe!==$r&&(_r.checked=looseEqual(Fe,Fr.props.value))}},vModelSelect={deep:!0,created(_r,{value:Fe,modifiers:{number:$r}},Fr){const jr=isSet(Fe);addEventListener(_r,"change",()=>{const zr=Array.prototype.filter.call(_r.options,Vr=>Vr.selected).map(Vr=>$r?looseToNumber(getValue$1(Vr)):getValue$1(Vr));_r._assign(_r.multiple?jr?new Set(zr):zr:zr[0])}),_r._assign=getModelAssigner(Fr)},mounted(_r,{value:Fe}){setSelected(_r,Fe)},beforeUpdate(_r,Fe,$r){_r._assign=getModelAssigner($r)},updated(_r,{value:Fe}){setSelected(_r,Fe)}};function setSelected(_r,Fe){const $r=_r.multiple;if(!($r&&!isArray$5(Fe)&&!isSet(Fe))){for(let Fr=0,jr=_r.options.length;Fr<jr;Fr++){const zr=_r.options[Fr],Vr=getValue$1(zr);if($r)isArray$5(Fe)?zr.selected=looseIndexOf(Fe,Vr)>-1:zr.selected=Fe.has(Vr);else if(looseEqual(getValue$1(zr),Fe)){_r.selectedIndex!==Fr&&(_r.selectedIndex=Fr);return}}!$r&&_r.selectedIndex!==-1&&(_r.selectedIndex=-1)}}function getValue$1(_r){return"_value"in _r?_r._value:_r.value}function getCheckboxValue(_r,Fe){const $r=Fe?"_trueValue":"_falseValue";return $r in _r?_r[$r]:Fe}const vModelDynamic={created(_r,Fe,$r){callModelHook(_r,Fe,$r,null,"created")},mounted(_r,Fe,$r){callModelHook(_r,Fe,$r,null,"mounted")},beforeUpdate(_r,Fe,$r,Fr){callModelHook(_r,Fe,$r,Fr,"beforeUpdate")},updated(_r,Fe,$r,Fr){callModelHook(_r,Fe,$r,Fr,"updated")}};function resolveDynamicModel(_r,Fe){switch(_r){case"SELECT":return vModelSelect;case"TEXTAREA":return vModelText;default:switch(Fe){case"checkbox":return vModelCheckbox;case"radio":return vModelRadio;default:return vModelText}}}function callModelHook(_r,Fe,$r,Fr,jr){const Vr=resolveDynamicModel(_r.tagName,$r.props&&$r.props.type)[jr];Vr&&Vr(_r,Fe,$r,Fr)}function initVModelForSSR(){vModelText.getSSRProps=({value:_r})=>({value:_r}),vModelRadio.getSSRProps=({value:_r},Fe)=>{if(Fe.props&&looseEqual(Fe.props.value,_r))return{checked:!0}},vModelCheckbox.getSSRProps=({value:_r},Fe)=>{if(isArray$5(_r)){if(Fe.props&&looseIndexOf(_r,Fe.props.value)>-1)return{checked:!0}}else if(isSet(_r)){if(Fe.props&&_r.has(Fe.props.value))return{checked:!0}}else if(_r)return{checked:!0}},vModelDynamic.getSSRProps=(_r,Fe)=>{if(typeof Fe.type!="string")return;const $r=resolveDynamicModel(Fe.type.toUpperCase(),Fe.props&&Fe.props.type);if($r.getSSRProps)return $r.getSSRProps(_r,Fe)}}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:_r=>_r.stopPropagation(),prevent:_r=>_r.preventDefault(),self:_r=>_r.target!==_r.currentTarget,ctrl:_r=>!_r.ctrlKey,shift:_r=>!_r.shiftKey,alt:_r=>!_r.altKey,meta:_r=>!_r.metaKey,left:_r=>"button"in _r&&_r.button!==0,middle:_r=>"button"in _r&&_r.button!==1,right:_r=>"button"in _r&&_r.button!==2,exact:(_r,Fe)=>systemModifiers.some($r=>_r[`${$r}Key`]&&!Fe.includes($r))},withModifiers=(_r,Fe)=>($r,...Fr)=>{for(let jr=0;jr<Fe.length;jr++){const zr=modifierGuards[Fe[jr]];if(zr&&zr($r,Fe))return}return _r($r,...Fr)},keyNames={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},withKeys=(_r,Fe)=>$r=>{if(!("key"in $r))return;const Fr=hyphenate($r.key);if(Fe.some(jr=>jr===Fr||keyNames[jr]===Fr))return _r($r)},vShow={beforeMount(_r,{value:Fe},{transition:$r}){_r._vod=_r.style.display==="none"?"":_r.style.display,$r&&Fe?$r.beforeEnter(_r):setDisplay(_r,Fe)},mounted(_r,{value:Fe},{transition:$r}){$r&&Fe&&$r.enter(_r)},updated(_r,{value:Fe,oldValue:$r},{transition:Fr}){!Fe!=!$r&&(Fr?Fe?(Fr.beforeEnter(_r),setDisplay(_r,!0),Fr.enter(_r)):Fr.leave(_r,()=>{setDisplay(_r,!1)}):setDisplay(_r,Fe))},beforeUnmount(_r,{value:Fe}){setDisplay(_r,Fe)}};function setDisplay(_r,Fe){_r.style.display=Fe?_r._vod:"none"}function initVShowForSSR(){vShow.getSSRProps=({value:_r})=>{if(!_r)return{style:{display:"none"}}}}const rendererOptions=extend$1({patchProp},nodeOps);let renderer,enabledHydration=!1;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}function ensureHydrationRenderer(){return renderer=enabledHydration?renderer:createHydrationRenderer(rendererOptions),enabledHydration=!0,renderer}const render=(..._r)=>{ensureRenderer().render(..._r)},hydrate=(..._r)=>{ensureHydrationRenderer().hydrate(..._r)},createApp=(..._r)=>{const Fe=ensureRenderer().createApp(..._r),{mount:$r}=Fe;return Fe.mount=Fr=>{const jr=normalizeContainer(Fr);if(!jr)return;const zr=Fe._component;!isFunction$3(zr)&&!zr.render&&!zr.template&&(zr.template=jr.innerHTML),jr.innerHTML="";const Vr=$r(jr,!1,jr instanceof SVGElement);return jr instanceof Element&&(jr.removeAttribute("v-cloak"),jr.setAttribute("data-v-app","")),Vr},Fe},createSSRApp=(..._r)=>{const Fe=ensureHydrationRenderer().createApp(..._r),{mount:$r}=Fe;return Fe.mount=Fr=>{const jr=normalizeContainer(Fr);if(jr)return $r(jr,!0,jr instanceof SVGElement)},Fe};function normalizeContainer(_r){return isString$2(_r)?document.querySelector(_r):_r}let ssrDirectiveInitialized=!1;const initDirectivesForSSR=()=>{ssrDirectiveInitialized||(ssrDirectiveInitialized=!0,initVModelForSSR(),initVShowForSSR())};var runtimeDom=Object.freeze(Object.defineProperty({__proto__:null,Transition,TransitionGroup,VueElement,createApp,createSSRApp,defineCustomElement,defineSSRCustomElement,hydrate,initDirectivesForSSR,render,useCssModule,useCssVars,vModelCheckbox,vModelDynamic,vModelRadio,vModelSelect,vModelText,vShow,withKeys,withModifiers,EffectScope,ReactiveEffect,customRef,effect,effectScope,getCurrentScope,isProxy,isReactive,isReadonly,isRef,isShallow,markRaw,onScopeDispose,proxyRefs,reactive,readonly,ref,shallowReactive,shallowReadonly,shallowRef,stop,toRaw,toRef,toRefs,toValue,triggerRef,unref,camelize,capitalize,normalizeClass,normalizeProps,normalizeStyle,toDisplayString,toHandlerKey,BaseTransition,BaseTransitionPropsValidators,Comment,Fragment,KeepAlive,Static,Suspense,Teleport,Text:Text$1,assertNumber,callWithAsyncErrorHandling,callWithErrorHandling,cloneVNode,compatUtils,computed,createBlock,createCommentVNode,createElementBlock,createElementVNode:createBaseVNode,createHydrationRenderer,createPropsRestProxy,createRenderer,createSlots,createStaticVNode,createTextVNode,createVNode,defineAsyncComponent,defineComponent,defineEmits,defineExpose,defineModel,defineOptions,defineProps,defineSlots,get devtools(){return devtools},getCurrentInstance,getTransitionRawChildren,guardReactiveProps,h:h$1,handleError,hasInjectionContext,initCustomFormatter,inject,isMemoSame,isRuntimeOnly,isVNode,mergeDefaults,mergeModels,mergeProps,nextTick,onActivated,onBeforeMount,onBeforeUnmount,onBeforeUpdate,onDeactivated,onErrorCaptured,onMounted,onRenderTracked,onRenderTriggered,onServerPrefetch,onUnmounted,onUpdated,openBlock,popScopeId,provide,pushScopeId,queuePostFlushCb,registerRuntimeCompiler,renderList,renderSlot,resolveComponent,resolveDirective,resolveDynamicComponent,resolveFilter,resolveTransitionHooks,setBlockTracking,setDevtoolsHook,setTransitionHooks,ssrContextKey,ssrUtils,toHandlers,transformVNodeArgs,useAttrs,useModel,useSSRContext,useSlots,useTransitionState,version:version$4,warn,watch,watchEffect,watchPostEffect,watchSyncEffect,withAsyncContext,withCtx,withDefaults,withDirectives,withMemo,withScopeId},Symbol.toStringTag,{value:"Module"}));function defaultOnError(_r){throw _r}function defaultOnWarn(_r){}function createCompilerError(_r,Fe,$r,Fr){const jr=_r,zr=new SyntaxError(String(jr));return zr.code=_r,zr.loc=Fe,zr}const FRAGMENT=Symbol(""),TELEPORT=Symbol(""),SUSPENSE=Symbol(""),KEEP_ALIVE=Symbol(""),BASE_TRANSITION=Symbol(""),OPEN_BLOCK=Symbol(""),CREATE_BLOCK=Symbol(""),CREATE_ELEMENT_BLOCK=Symbol(""),CREATE_VNODE=Symbol(""),CREATE_ELEMENT_VNODE=Symbol(""),CREATE_COMMENT=Symbol(""),CREATE_TEXT=Symbol(""),CREATE_STATIC=Symbol(""),RESOLVE_COMPONENT=Symbol(""),RESOLVE_DYNAMIC_COMPONENT=Symbol(""),RESOLVE_DIRECTIVE=Symbol(""),RESOLVE_FILTER=Symbol(""),WITH_DIRECTIVES=Symbol(""),RENDER_LIST=Symbol(""),RENDER_SLOT=Symbol(""),CREATE_SLOTS=Symbol(""),TO_DISPLAY_STRING=Symbol(""),MERGE_PROPS=Symbol(""),NORMALIZE_CLASS=Symbol(""),NORMALIZE_STYLE=Symbol(""),NORMALIZE_PROPS=Symbol(""),GUARD_REACTIVE_PROPS=Symbol(""),TO_HANDLERS=Symbol(""),CAMELIZE=Symbol(""),CAPITALIZE=Symbol(""),TO_HANDLER_KEY=Symbol(""),SET_BLOCK_TRACKING=Symbol(""),PUSH_SCOPE_ID=Symbol(""),POP_SCOPE_ID=Symbol(""),WITH_CTX=Symbol(""),UNREF=Symbol(""),IS_REF=Symbol(""),WITH_MEMO=Symbol(""),IS_MEMO_SAME=Symbol(""),helperNameMap={[FRAGMENT]:"Fragment",[TELEPORT]:"Teleport",[SUSPENSE]:"Suspense",[KEEP_ALIVE]:"KeepAlive",[BASE_TRANSITION]:"BaseTransition",[OPEN_BLOCK]:"openBlock",[CREATE_BLOCK]:"createBlock",[CREATE_ELEMENT_BLOCK]:"createElementBlock",[CREATE_VNODE]:"createVNode",[CREATE_ELEMENT_VNODE]:"createElementVNode",[CREATE_COMMENT]:"createCommentVNode",[CREATE_TEXT]:"createTextVNode",[CREATE_STATIC]:"createStaticVNode",[RESOLVE_COMPONENT]:"resolveComponent",[RESOLVE_DYNAMIC_COMPONENT]:"resolveDynamicComponent",[RESOLVE_DIRECTIVE]:"resolveDirective",[RESOLVE_FILTER]:"resolveFilter",[WITH_DIRECTIVES]:"withDirectives",[RENDER_LIST]:"renderList",[RENDER_SLOT]:"renderSlot",[CREATE_SLOTS]:"createSlots",[TO_DISPLAY_STRING]:"toDisplayString",[MERGE_PROPS]:"mergeProps",[NORMALIZE_CLASS]:"normalizeClass",[NORMALIZE_STYLE]:"normalizeStyle",[NORMALIZE_PROPS]:"normalizeProps",[GUARD_REACTIVE_PROPS]:"guardReactiveProps",[TO_HANDLERS]:"toHandlers",[CAMELIZE]:"camelize",[CAPITALIZE]:"capitalize",[TO_HANDLER_KEY]:"toHandlerKey",[SET_BLOCK_TRACKING]:"setBlockTracking",[PUSH_SCOPE_ID]:"pushScopeId",[POP_SCOPE_ID]:"popScopeId",[WITH_CTX]:"withCtx",[UNREF]:"unref",[IS_REF]:"isRef",[WITH_MEMO]:"withMemo",[IS_MEMO_SAME]:"isMemoSame"};function registerRuntimeHelpers(_r){Object.getOwnPropertySymbols(_r).forEach(Fe=>{helperNameMap[Fe]=_r[Fe]})}const locStub={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function createRoot(_r,Fe=locStub){return{type:0,children:_r,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:Fe}}function createVNodeCall(_r,Fe,$r,Fr,jr,zr,Vr,Wr=!1,Kr=!1,Gr=!1,Yr=locStub){return _r&&(Wr?(_r.helper(OPEN_BLOCK),_r.helper(getVNodeBlockHelper(_r.inSSR,Gr))):_r.helper(getVNodeHelper(_r.inSSR,Gr)),Vr&&_r.helper(WITH_DIRECTIVES)),{type:13,tag:Fe,props:$r,children:Fr,patchFlag:jr,dynamicProps:zr,directives:Vr,isBlock:Wr,disableTracking:Kr,isComponent:Gr,loc:Yr}}function createArrayExpression(_r,Fe=locStub){return{type:17,loc:Fe,elements:_r}}function createObjectExpression(_r,Fe=locStub){return{type:15,loc:Fe,properties:_r}}function createObjectProperty(_r,Fe){return{type:16,loc:locStub,key:isString$2(_r)?createSimpleExpression(_r,!0):_r,value:Fe}}function createSimpleExpression(_r,Fe=!1,$r=locStub,Fr=0){return{type:4,loc:$r,content:_r,isStatic:Fe,constType:Fe?3:Fr}}function createCompoundExpression(_r,Fe=locStub){return{type:8,loc:Fe,children:_r}}function createCallExpression(_r,Fe=[],$r=locStub){return{type:14,loc:$r,callee:_r,arguments:Fe}}function createFunctionExpression(_r,Fe=void 0,$r=!1,Fr=!1,jr=locStub){return{type:18,params:_r,returns:Fe,newline:$r,isSlot:Fr,loc:jr}}function createConditionalExpression(_r,Fe,$r,Fr=!0){return{type:19,test:_r,consequent:Fe,alternate:$r,newline:Fr,loc:locStub}}function createCacheExpression(_r,Fe,$r=!1){return{type:20,index:_r,value:Fe,isVNode:$r,loc:locStub}}function createBlockStatement(_r){return{type:21,body:_r,loc:locStub}}function getVNodeHelper(_r,Fe){return _r||Fe?CREATE_VNODE:CREATE_ELEMENT_VNODE}function getVNodeBlockHelper(_r,Fe){return _r||Fe?CREATE_BLOCK:CREATE_ELEMENT_BLOCK}function convertToBlock(_r,{helper:Fe,removeHelper:$r,inSSR:Fr}){_r.isBlock||(_r.isBlock=!0,$r(getVNodeHelper(Fr,_r.isComponent)),Fe(OPEN_BLOCK),Fe(getVNodeBlockHelper(Fr,_r.isComponent)))}const isStaticExp=_r=>_r.type===4&&_r.isStatic,isBuiltInType=(_r,Fe)=>_r===Fe||_r===hyphenate(Fe);function isCoreComponent(_r){if(isBuiltInType(_r,"Teleport"))return TELEPORT;if(isBuiltInType(_r,"Suspense"))return SUSPENSE;if(isBuiltInType(_r,"KeepAlive"))return KEEP_ALIVE;if(isBuiltInType(_r,"BaseTransition"))return BASE_TRANSITION}const nonIdentifierRE=/^\d|[^\$\w]/,isSimpleIdentifier=_r=>!nonIdentifierRE.test(_r),validFirstIdentCharRE=/[A-Za-z_$\xA0-\uFFFF]/,validIdentCharRE=/[\.\?\w$\xA0-\uFFFF]/,whitespaceRE=/\s+[.[]\s*|\s*[.[]\s+/g,isMemberExpressionBrowser=_r=>{_r=_r.trim().replace(whitespaceRE,Vr=>Vr.trim());let Fe=0,$r=[],Fr=0,jr=0,zr=null;for(let Vr=0;Vr<_r.length;Vr++){const Wr=_r.charAt(Vr);switch(Fe){case 0:if(Wr==="[")$r.push(Fe),Fe=1,Fr++;else if(Wr==="(")$r.push(Fe),Fe=2,jr++;else if(!(Vr===0?validFirstIdentCharRE:validIdentCharRE).test(Wr))return!1;break;case 1:Wr==="'"||Wr==='"'||Wr==="`"?($r.push(Fe),Fe=3,zr=Wr):Wr==="["?Fr++:Wr==="]"&&(--Fr||(Fe=$r.pop()));break;case 2:if(Wr==="'"||Wr==='"'||Wr==="`")$r.push(Fe),Fe=3,zr=Wr;else if(Wr==="(")jr++;else if(Wr===")"){if(Vr===_r.length-1)return!1;--jr||(Fe=$r.pop())}break;case 3:Wr===zr&&(Fe=$r.pop(),zr=null);break}}return!Fr&&!jr},isMemberExpression=isMemberExpressionBrowser;function getInnerRange(_r,Fe,$r){const jr={source:_r.source.slice(Fe,Fe+$r),start:advancePositionWithClone(_r.start,_r.source,Fe),end:_r.end};return $r!=null&&(jr.end=advancePositionWithClone(_r.start,_r.source,Fe+$r)),jr}function advancePositionWithClone(_r,Fe,$r=Fe.length){return advancePositionWithMutation(extend$1({},_r),Fe,$r)}function advancePositionWithMutation(_r,Fe,$r=Fe.length){let Fr=0,jr=-1;for(let zr=0;zr<$r;zr++)Fe.charCodeAt(zr)===10&&(Fr++,jr=zr);return _r.offset+=$r,_r.line+=Fr,_r.column=jr===-1?_r.column+$r:$r-jr,_r}function findDir(_r,Fe,$r=!1){for(let Fr=0;Fr<_r.props.length;Fr++){const jr=_r.props[Fr];if(jr.type===7&&($r||jr.exp)&&(isString$2(Fe)?jr.name===Fe:Fe.test(jr.name)))return jr}}function findProp(_r,Fe,$r=!1,Fr=!1){for(let jr=0;jr<_r.props.length;jr++){const zr=_r.props[jr];if(zr.type===6){if($r)continue;if(zr.name===Fe&&(zr.value||Fr))return zr}else if(zr.name==="bind"&&(zr.exp||Fr)&&isStaticArgOf(zr.arg,Fe))return zr}}function isStaticArgOf(_r,Fe){return!!(_r&&isStaticExp(_r)&&_r.content===Fe)}function hasDynamicKeyVBind(_r){return _r.props.some(Fe=>Fe.type===7&&Fe.name==="bind"&&(!Fe.arg||Fe.arg.type!==4||!Fe.arg.isStatic))}function isText$1(_r){return _r.type===5||_r.type===2}function isVSlot(_r){return _r.type===7&&_r.name==="slot"}function isTemplateNode(_r){return _r.type===1&&_r.tagType===3}function isSlotOutlet(_r){return _r.type===1&&_r.tagType===2}const propsHelperSet=new Set([NORMALIZE_PROPS,GUARD_REACTIVE_PROPS]);function getUnnormalizedProps(_r,Fe=[]){if(_r&&!isString$2(_r)&&_r.type===14){const $r=_r.callee;if(!isString$2($r)&&propsHelperSet.has($r))return getUnnormalizedProps(_r.arguments[0],Fe.concat(_r))}return[_r,Fe]}function injectProp(_r,Fe,$r){let Fr,jr=_r.type===13?_r.props:_r.arguments[2],zr=[],Vr;if(jr&&!isString$2(jr)&&jr.type===14){const Wr=getUnnormalizedProps(jr);jr=Wr[0],zr=Wr[1],Vr=zr[zr.length-1]}if(jr==null||isString$2(jr))Fr=createObjectExpression([Fe]);else if(jr.type===14){const Wr=jr.arguments[0];!isString$2(Wr)&&Wr.type===15?hasProp(Fe,Wr)||Wr.properties.unshift(Fe):jr.callee===TO_HANDLERS?Fr=createCallExpression($r.helper(MERGE_PROPS),[createObjectExpression([Fe]),jr]):jr.arguments.unshift(createObjectExpression([Fe])),!Fr&&(Fr=jr)}else jr.type===15?(hasProp(Fe,jr)||jr.properties.unshift(Fe),Fr=jr):(Fr=createCallExpression($r.helper(MERGE_PROPS),[createObjectExpression([Fe]),jr]),Vr&&Vr.callee===GUARD_REACTIVE_PROPS&&(Vr=zr[zr.length-2]));_r.type===13?Vr?Vr.arguments[0]=Fr:_r.props=Fr:Vr?Vr.arguments[0]=Fr:_r.arguments[2]=Fr}function hasProp(_r,Fe){let $r=!1;if(_r.key.type===4){const Fr=_r.key.content;$r=Fe.properties.some(jr=>jr.key.type===4&&jr.key.content===Fr)}return $r}function toValidAssetId(_r,Fe){return`_${Fe}_${_r.replace(/[^\w]/g,($r,Fr)=>$r==="-"?"_":_r.charCodeAt(Fr).toString())}`}function getMemoedVNodeCall(_r){return _r.type===14&&_r.callee===WITH_MEMO?_r.arguments[1].returns:_r}function getCompatValue(_r,Fe){const $r=Fe.options?Fe.options.compatConfig:Fe.compatConfig,Fr=$r&&$r[_r];return _r==="MODE"?Fr||3:Fr}function isCompatEnabled(_r,Fe){const $r=getCompatValue("MODE",Fe),Fr=getCompatValue(_r,Fe);return $r===3?Fr===!0:Fr!==!1}function checkCompatEnabled(_r,Fe,$r,...Fr){return isCompatEnabled(_r,Fe)}const decodeRE=/&(gt|lt|amp|apos|quot);/g,decodeMap={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},defaultParserOptions={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:NO,isPreTag:NO,isCustomElement:NO,decodeEntities:_r=>_r.replace(decodeRE,(Fe,$r)=>decodeMap[$r]),onError:defaultOnError,onWarn:defaultOnWarn,comments:!1};function baseParse(_r,Fe={}){const $r=createParserContext(_r,Fe),Fr=getCursor($r);return createRoot(parseChildren($r,0,[]),getSelection($r,Fr))}function createParserContext(_r,Fe){const $r=extend$1({},defaultParserOptions);let Fr;for(Fr in Fe)$r[Fr]=Fe[Fr]===void 0?defaultParserOptions[Fr]:Fe[Fr];return{options:$r,column:1,line:1,offset:0,originalSource:_r,source:_r,inPre:!1,inVPre:!1,onWarn:$r.onWarn}}function parseChildren(_r,Fe,$r){const Fr=last($r),jr=Fr?Fr.ns:0,zr=[];for(;!isEnd(_r,Fe,$r);){const Wr=_r.source;let Kr;if(Fe===0||Fe===1){if(!_r.inVPre&&startsWith(Wr,_r.options.delimiters[0]))Kr=parseInterpolation(_r,Fe);else if(Fe===0&&Wr[0]==="<")if(Wr.length===1)emitError(_r,5,1);else if(Wr[1]==="!")startsWith(Wr,"<!--")?Kr=parseComment(_r):startsWith(Wr,"<!DOCTYPE")?Kr=parseBogusComment(_r):startsWith(Wr,"<![CDATA[")?jr!==0?Kr=parseCDATA(_r,$r):(emitError(_r,1),Kr=parseBogusComment(_r)):(emitError(_r,11),Kr=parseBogusComment(_r));else if(Wr[1]==="/")if(Wr.length===2)emitError(_r,5,2);else if(Wr[2]===">"){emitError(_r,14,2),advanceBy(_r,3);continue}else if(/[a-z]/i.test(Wr[2])){emitError(_r,23),parseTag(_r,TagType.End,Fr);continue}else emitError(_r,12,2),Kr=parseBogusComment(_r);else/[a-z]/i.test(Wr[1])?(Kr=parseElement(_r,$r),isCompatEnabled("COMPILER_NATIVE_TEMPLATE",_r)&&Kr&&Kr.tag==="template"&&!Kr.props.some(Gr=>Gr.type===7&&isSpecialTemplateDirective(Gr.name))&&(Kr=Kr.children)):Wr[1]==="?"?(emitError(_r,21,1),Kr=parseBogusComment(_r)):emitError(_r,12,1)}if(Kr||(Kr=parseText(_r,Fe)),isArray$5(Kr))for(let Gr=0;Gr<Kr.length;Gr++)pushNode(zr,Kr[Gr]);else pushNode(zr,Kr)}let Vr=!1;if(Fe!==2&&Fe!==1){const Wr=_r.options.whitespace!=="preserve";for(let Kr=0;Kr<zr.length;Kr++){const Gr=zr[Kr];if(Gr.type===2)if(_r.inPre)Gr.content=Gr.content.replace(/\r\n/g,`
`);else if(/[^\t\r\n\f ]/.test(Gr.content))Wr&&(Gr.content=Gr.content.replace(/[\t\r\n\f ]+/g," "));else{const Yr=zr[Kr-1],Qr=zr[Kr+1];!Yr||!Qr||Wr&&(Yr.type===3&&Qr.type===3||Yr.type===3&&Qr.type===1||Yr.type===1&&Qr.type===3||Yr.type===1&&Qr.type===1&&/[\r\n]/.test(Gr.content))?(Vr=!0,zr[Kr]=null):Gr.content=" "}else Gr.type===3&&!_r.options.comments&&(Vr=!0,zr[Kr]=null)}if(_r.inPre&&Fr&&_r.options.isPreTag(Fr.tag)){const Kr=zr[0];Kr&&Kr.type===2&&(Kr.content=Kr.content.replace(/^\r?\n/,""))}}return Vr?zr.filter(Boolean):zr}function pushNode(_r,Fe){if(Fe.type===2){const $r=last(_r);if($r&&$r.type===2&&$r.loc.end.offset===Fe.loc.start.offset){$r.content+=Fe.content,$r.loc.end=Fe.loc.end,$r.loc.source+=Fe.loc.source;return}}_r.push(Fe)}function parseCDATA(_r,Fe){advanceBy(_r,9);const $r=parseChildren(_r,3,Fe);return _r.source.length===0?emitError(_r,6):advanceBy(_r,3),$r}function parseComment(_r){const Fe=getCursor(_r);let $r;const Fr=/--(\!)?>/.exec(_r.source);if(!Fr)$r=_r.source.slice(4),advanceBy(_r,_r.source.length),emitError(_r,7);else{Fr.index<=3&&emitError(_r,0),Fr[1]&&emitError(_r,10),$r=_r.source.slice(4,Fr.index);const jr=_r.source.slice(0,Fr.index);let zr=1,Vr=0;for(;(Vr=jr.indexOf("<!--",zr))!==-1;)advanceBy(_r,Vr-zr+1),Vr+4<jr.length&&emitError(_r,16),zr=Vr+1;advanceBy(_r,Fr.index+Fr[0].length-zr+1)}return{type:3,content:$r,loc:getSelection(_r,Fe)}}function parseBogusComment(_r){const Fe=getCursor(_r),$r=_r.source[1]==="?"?1:2;let Fr;const jr=_r.source.indexOf(">");return jr===-1?(Fr=_r.source.slice($r),advanceBy(_r,_r.source.length)):(Fr=_r.source.slice($r,jr),advanceBy(_r,jr+1)),{type:3,content:Fr,loc:getSelection(_r,Fe)}}function parseElement(_r,Fe){const $r=_r.inPre,Fr=_r.inVPre,jr=last(Fe),zr=parseTag(_r,TagType.Start,jr),Vr=_r.inPre&&!$r,Wr=_r.inVPre&&!Fr;if(zr.isSelfClosing||_r.options.isVoidTag(zr.tag))return Vr&&(_r.inPre=!1),Wr&&(_r.inVPre=!1),zr;Fe.push(zr);const Kr=_r.options.getTextMode(zr,jr),Gr=parseChildren(_r,Kr,Fe);Fe.pop();{const Yr=zr.props.find(Qr=>Qr.type===6&&Qr.name==="inline-template");if(Yr&&checkCompatEnabled("COMPILER_INLINE_TEMPLATE",_r,Yr.loc)){const Qr=getSelection(_r,zr.loc.end);Yr.value={type:2,content:Qr.source,loc:Qr}}}if(zr.children=Gr,startsWithEndTagOpen(_r.source,zr.tag))parseTag(_r,TagType.End,jr);else if(emitError(_r,24,0,zr.loc.start),_r.source.length===0&&zr.tag.toLowerCase()==="script"){const Yr=Gr[0];Yr&&startsWith(Yr.loc.source,"<!--")&&emitError(_r,8)}return zr.loc=getSelection(_r,zr.loc.start),Vr&&(_r.inPre=!1),Wr&&(_r.inVPre=!1),zr}var TagType=(_r=>(_r[_r.Start=0]="Start",_r[_r.End=1]="End",_r))(TagType||{});const isSpecialTemplateDirective=makeMap("if,else,else-if,for,slot");function parseTag(_r,Fe,$r){const Fr=getCursor(_r),jr=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(_r.source),zr=jr[1],Vr=_r.options.getNamespace(zr,$r);advanceBy(_r,jr[0].length),advanceSpaces(_r);const Wr=getCursor(_r),Kr=_r.source;_r.options.isPreTag(zr)&&(_r.inPre=!0);let Gr=parseAttributes(_r,Fe);Fe===0&&!_r.inVPre&&Gr.some(Jr=>Jr.type===7&&Jr.name==="pre")&&(_r.inVPre=!0,extend$1(_r,Wr),_r.source=Kr,Gr=parseAttributes(_r,Fe).filter(Jr=>Jr.name!=="v-pre"));let Yr=!1;if(_r.source.length===0?emitError(_r,9):(Yr=startsWith(_r.source,"/>"),Fe===1&&Yr&&emitError(_r,4),advanceBy(_r,Yr?2:1)),Fe===1)return;let Qr=0;return _r.inVPre||(zr==="slot"?Qr=2:zr==="template"?Gr.some(Jr=>Jr.type===7&&isSpecialTemplateDirective(Jr.name))&&(Qr=3):isComponent(zr,Gr,_r)&&(Qr=1)),{type:1,ns:Vr,tag:zr,tagType:Qr,props:Gr,isSelfClosing:Yr,children:[],loc:getSelection(_r,Fr),codegenNode:void 0}}function isComponent(_r,Fe,$r){const Fr=$r.options;if(Fr.isCustomElement(_r))return!1;if(_r==="component"||/^[A-Z]/.test(_r)||isCoreComponent(_r)||Fr.isBuiltInComponent&&Fr.isBuiltInComponent(_r)||Fr.isNativeTag&&!Fr.isNativeTag(_r))return!0;for(let jr=0;jr<Fe.length;jr++){const zr=Fe[jr];if(zr.type===6){if(zr.name==="is"&&zr.value){if(zr.value.content.startsWith("vue:"))return!0;if(checkCompatEnabled("COMPILER_IS_ON_ELEMENT",$r,zr.loc))return!0}}else{if(zr.name==="is")return!0;if(zr.name==="bind"&&isStaticArgOf(zr.arg,"is")&&!0&&checkCompatEnabled("COMPILER_IS_ON_ELEMENT",$r,zr.loc))return!0}}}function parseAttributes(_r,Fe){const $r=[],Fr=new Set;for(;_r.source.length>0&&!startsWith(_r.source,">")&&!startsWith(_r.source,"/>");){if(startsWith(_r.source,"/")){emitError(_r,22),advanceBy(_r,1),advanceSpaces(_r);continue}Fe===1&&emitError(_r,3);const jr=parseAttribute(_r,Fr);jr.type===6&&jr.value&&jr.name==="class"&&(jr.value.content=jr.value.content.replace(/\s+/g," ").trim()),Fe===0&&$r.push(jr),/^[^\t\r\n\f />]/.test(_r.source)&&emitError(_r,15),advanceSpaces(_r)}return $r}function parseAttribute(_r,Fe){var $r;const Fr=getCursor(_r),zr=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(_r.source)[0];Fe.has(zr)&&emitError(_r,2),Fe.add(zr),zr[0]==="="&&emitError(_r,19);{const Kr=/["'<]/g;let Gr;for(;Gr=Kr.exec(zr);)emitError(_r,17,Gr.index)}advanceBy(_r,zr.length);let Vr;/^[\t\r\n\f ]*=/.test(_r.source)&&(advanceSpaces(_r),advanceBy(_r,1),advanceSpaces(_r),Vr=parseAttributeValue(_r),Vr||emitError(_r,13));const Wr=getSelection(_r,Fr);if(!_r.inVPre&&/^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(zr)){const Kr=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(zr);let Gr=startsWith(zr,"."),Yr=Kr[1]||(Gr||startsWith(zr,":")?"bind":startsWith(zr,"@")?"on":"slot"),Qr;if(Kr[2]){const Zr=Yr==="slot",tn=zr.lastIndexOf(Kr[2],zr.length-((($r=Kr[3])==null?void 0:$r.length)||0)),en=getSelection(_r,getNewPosition(_r,Fr,tn),getNewPosition(_r,Fr,tn+Kr[2].length+(Zr&&Kr[3]||"").length));let rn=Kr[2],nn=!0;rn.startsWith("[")?(nn=!1,rn.endsWith("]")?rn=rn.slice(1,rn.length-1):(emitError(_r,27),rn=rn.slice(1))):Zr&&(rn+=Kr[3]||""),Qr={type:4,content:rn,isStatic:nn,constType:nn?3:0,loc:en}}if(Vr&&Vr.isQuoted){const Zr=Vr.loc;Zr.start.offset++,Zr.start.column++,Zr.end=advancePositionWithClone(Zr.start,Vr.content),Zr.source=Zr.source.slice(1,-1)}const Jr=Kr[3]?Kr[3].slice(1).split("."):[];return Gr&&Jr.push("prop"),Yr==="bind"&&Qr&&Jr.includes("sync")&&checkCompatEnabled("COMPILER_V_BIND_SYNC",_r,Wr,Qr.loc.source)&&(Yr="model",Jr.splice(Jr.indexOf("sync"),1)),{type:7,name:Yr,exp:Vr&&{type:4,content:Vr.content,isStatic:!1,constType:0,loc:Vr.loc},arg:Qr,modifiers:Jr,loc:Wr}}return!_r.inVPre&&startsWith(zr,"v-")&&emitError(_r,26),{type:6,name:zr,value:Vr&&{type:2,content:Vr.content,loc:Vr.loc},loc:Wr}}function parseAttributeValue(_r){const Fe=getCursor(_r);let $r;const Fr=_r.source[0],jr=Fr==='"'||Fr==="'";if(jr){advanceBy(_r,1);const zr=_r.source.indexOf(Fr);zr===-1?$r=parseTextData(_r,_r.source.length,4):($r=parseTextData(_r,zr,4),advanceBy(_r,1))}else{const zr=/^[^\t\r\n\f >]+/.exec(_r.source);if(!zr)return;const Vr=/["'<=`]/g;let Wr;for(;Wr=Vr.exec(zr[0]);)emitError(_r,18,Wr.index);$r=parseTextData(_r,zr[0].length,4)}return{content:$r,isQuoted:jr,loc:getSelection(_r,Fe)}}function parseInterpolation(_r,Fe){const[$r,Fr]=_r.options.delimiters,jr=_r.source.indexOf(Fr,$r.length);if(jr===-1){emitError(_r,25);return}const zr=getCursor(_r);advanceBy(_r,$r.length);const Vr=getCursor(_r),Wr=getCursor(_r),Kr=jr-$r.length,Gr=_r.source.slice(0,Kr),Yr=parseTextData(_r,Kr,Fe),Qr=Yr.trim(),Jr=Yr.indexOf(Qr);Jr>0&&advancePositionWithMutation(Vr,Gr,Jr);const Zr=Kr-(Yr.length-Qr.length-Jr);return advancePositionWithMutation(Wr,Gr,Zr),advanceBy(_r,Fr.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:Qr,loc:getSelection(_r,Vr,Wr)},loc:getSelection(_r,zr)}}function parseText(_r,Fe){const $r=Fe===3?["]]>"]:["<",_r.options.delimiters[0]];let Fr=_r.source.length;for(let Vr=0;Vr<$r.length;Vr++){const Wr=_r.source.indexOf($r[Vr],1);Wr!==-1&&Fr>Wr&&(Fr=Wr)}const jr=getCursor(_r),zr=parseTextData(_r,Fr,Fe);return{type:2,content:zr,loc:getSelection(_r,jr)}}function parseTextData(_r,Fe,$r){const Fr=_r.source.slice(0,Fe);return advanceBy(_r,Fe),$r===2||$r===3||!Fr.includes("&")?Fr:_r.options.decodeEntities(Fr,$r===4)}function getCursor(_r){const{column:Fe,line:$r,offset:Fr}=_r;return{column:Fe,line:$r,offset:Fr}}function getSelection(_r,Fe,$r){return $r=$r||getCursor(_r),{start:Fe,end:$r,source:_r.originalSource.slice(Fe.offset,$r.offset)}}function last(_r){return _r[_r.length-1]}function startsWith(_r,Fe){return _r.startsWith(Fe)}function advanceBy(_r,Fe){const{source:$r}=_r;advancePositionWithMutation(_r,$r,Fe),_r.source=$r.slice(Fe)}function advanceSpaces(_r){const Fe=/^[\t\r\n\f ]+/.exec(_r.source);Fe&&advanceBy(_r,Fe[0].length)}function getNewPosition(_r,Fe,$r){return advancePositionWithClone(Fe,_r.originalSource.slice(Fe.offset,$r),$r)}function emitError(_r,Fe,$r,Fr=getCursor(_r)){$r&&(Fr.offset+=$r,Fr.column+=$r),_r.options.onError(createCompilerError(Fe,{start:Fr,end:Fr,source:""}))}function isEnd(_r,Fe,$r){const Fr=_r.source;switch(Fe){case 0:if(startsWith(Fr,"</")){for(let jr=$r.length-1;jr>=0;--jr)if(startsWithEndTagOpen(Fr,$r[jr].tag))return!0}break;case 1:case 2:{const jr=last($r);if(jr&&startsWithEndTagOpen(Fr,jr.tag))return!0;break}case 3:if(startsWith(Fr,"]]>"))return!0;break}return!Fr}function startsWithEndTagOpen(_r,Fe){return startsWith(_r,"</")&&_r.slice(2,2+Fe.length).toLowerCase()===Fe.toLowerCase()&&/[\t\r\n\f />]/.test(_r[2+Fe.length]||">")}function hoistStatic(_r,Fe){walk(_r,Fe,isSingleElementRoot(_r,_r.children[0]))}function isSingleElementRoot(_r,Fe){const{children:$r}=_r;return $r.length===1&&Fe.type===1&&!isSlotOutlet(Fe)}function walk(_r,Fe,$r=!1){const{children:Fr}=_r,jr=Fr.length;let zr=0;for(let Vr=0;Vr<Fr.length;Vr++){const Wr=Fr[Vr];if(Wr.type===1&&Wr.tagType===0){const Kr=$r?0:getConstantType(Wr,Fe);if(Kr>0){if(Kr>=2){Wr.codegenNode.patchFlag=-1+"",Wr.codegenNode=Fe.hoist(Wr.codegenNode),zr++;continue}}else{const Gr=Wr.codegenNode;if(Gr.type===13){const Yr=getPatchFlag(Gr);if((!Yr||Yr===512||Yr===1)&&getGeneratedPropsConstantType(Wr,Fe)>=2){const Qr=getNodeProps(Wr);Qr&&(Gr.props=Fe.hoist(Qr))}Gr.dynamicProps&&(Gr.dynamicProps=Fe.hoist(Gr.dynamicProps))}}}if(Wr.type===1){const Kr=Wr.tagType===1;Kr&&Fe.scopes.vSlot++,walk(Wr,Fe),Kr&&Fe.scopes.vSlot--}else if(Wr.type===11)walk(Wr,Fe,Wr.children.length===1);else if(Wr.type===9)for(let Kr=0;Kr<Wr.branches.length;Kr++)walk(Wr.branches[Kr],Fe,Wr.branches[Kr].children.length===1)}zr&&Fe.transformHoist&&Fe.transformHoist(Fr,Fe,_r),zr&&zr===jr&&_r.type===1&&_r.tagType===0&&_r.codegenNode&&_r.codegenNode.type===13&&isArray$5(_r.codegenNode.children)&&(_r.codegenNode.children=Fe.hoist(createArrayExpression(_r.codegenNode.children)))}function getConstantType(_r,Fe){const{constantCache:$r}=Fe;switch(_r.type){case 1:if(_r.tagType!==0)return 0;const Fr=$r.get(_r);if(Fr!==void 0)return Fr;const jr=_r.codegenNode;if(jr.type!==13||jr.isBlock&&_r.tag!=="svg"&&_r.tag!=="foreignObject")return 0;if(getPatchFlag(jr))return $r.set(_r,0),0;{let Wr=3;const Kr=getGeneratedPropsConstantType(_r,Fe);if(Kr===0)return $r.set(_r,0),0;Kr<Wr&&(Wr=Kr);for(let Gr=0;Gr<_r.children.length;Gr++){const Yr=getConstantType(_r.children[Gr],Fe);if(Yr===0)return $r.set(_r,0),0;Yr<Wr&&(Wr=Yr)}if(Wr>1)for(let Gr=0;Gr<_r.props.length;Gr++){const Yr=_r.props[Gr];if(Yr.type===7&&Yr.name==="bind"&&Yr.exp){const Qr=getConstantType(Yr.exp,Fe);if(Qr===0)return $r.set(_r,0),0;Qr<Wr&&(Wr=Qr)}}if(jr.isBlock){for(let Gr=0;Gr<_r.props.length;Gr++)if(_r.props[Gr].type===7)return $r.set(_r,0),0;Fe.removeHelper(OPEN_BLOCK),Fe.removeHelper(getVNodeBlockHelper(Fe.inSSR,jr.isComponent)),jr.isBlock=!1,Fe.helper(getVNodeHelper(Fe.inSSR,jr.isComponent))}return $r.set(_r,Wr),Wr}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return getConstantType(_r.content,Fe);case 4:return _r.constType;case 8:let Vr=3;for(let Wr=0;Wr<_r.children.length;Wr++){const Kr=_r.children[Wr];if(isString$2(Kr)||isSymbol$1(Kr))continue;const Gr=getConstantType(Kr,Fe);if(Gr===0)return 0;Gr<Vr&&(Vr=Gr)}return Vr;default:return 0}}const allowHoistedHelperSet=new Set([NORMALIZE_CLASS,NORMALIZE_STYLE,NORMALIZE_PROPS,GUARD_REACTIVE_PROPS]);function getConstantTypeOfHelperCall(_r,Fe){if(_r.type===14&&!isString$2(_r.callee)&&allowHoistedHelperSet.has(_r.callee)){const $r=_r.arguments[0];if($r.type===4)return getConstantType($r,Fe);if($r.type===14)return getConstantTypeOfHelperCall($r,Fe)}return 0}function getGeneratedPropsConstantType(_r,Fe){let $r=3;const Fr=getNodeProps(_r);if(Fr&&Fr.type===15){const{properties:jr}=Fr;for(let zr=0;zr<jr.length;zr++){const{key:Vr,value:Wr}=jr[zr],Kr=getConstantType(Vr,Fe);if(Kr===0)return Kr;Kr<$r&&($r=Kr);let Gr;if(Wr.type===4?Gr=getConstantType(Wr,Fe):Wr.type===14?Gr=getConstantTypeOfHelperCall(Wr,Fe):Gr=0,Gr===0)return Gr;Gr<$r&&($r=Gr)}}return $r}function getNodeProps(_r){const Fe=_r.codegenNode;if(Fe.type===13)return Fe.props}function getPatchFlag(_r){const Fe=_r.patchFlag;return Fe?parseInt(Fe,10):void 0}function createTransformContext(_r,{filename:Fe="",prefixIdentifiers:$r=!1,hoistStatic:Fr=!1,cacheHandlers:jr=!1,nodeTransforms:zr=[],directiveTransforms:Vr={},transformHoist:Wr=null,isBuiltInComponent:Kr=NOOP,isCustomElement:Gr=NOOP,expressionPlugins:Yr=[],scopeId:Qr=null,slotted:Jr=!0,ssr:Zr=!1,inSSR:tn=!1,ssrCssVars:en="",bindingMetadata:rn=EMPTY_OBJ,inline:nn=!1,isTS:on=!1,onError:un=defaultOnError,onWarn:an=defaultOnWarn,compatConfig:sn}){const dn=Fe.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),ln={selfName:dn&&capitalize(camelize(dn[1])),prefixIdentifiers:$r,hoistStatic:Fr,cacheHandlers:jr,nodeTransforms:zr,directiveTransforms:Vr,transformHoist:Wr,isBuiltInComponent:Kr,isCustomElement:Gr,expressionPlugins:Yr,scopeId:Qr,slotted:Jr,ssr:Zr,inSSR:tn,ssrCssVars:en,bindingMetadata:rn,inline:nn,isTS:on,onError:un,onWarn:an,compatConfig:sn,root:_r,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new Map,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:_r,childIndex:0,inVOnce:!1,helper(cn){const fn=ln.helpers.get(cn)||0;return ln.helpers.set(cn,fn+1),cn},removeHelper(cn){const fn=ln.helpers.get(cn);if(fn){const pn=fn-1;pn?ln.helpers.set(cn,pn):ln.helpers.delete(cn)}},helperString(cn){return`_${helperNameMap[ln.helper(cn)]}`},replaceNode(cn){ln.parent.children[ln.childIndex]=ln.currentNode=cn},removeNode(cn){const fn=ln.parent.children,pn=cn?fn.indexOf(cn):ln.currentNode?ln.childIndex:-1;!cn||cn===ln.currentNode?(ln.currentNode=null,ln.onNodeRemoved()):ln.childIndex>pn&&(ln.childIndex--,ln.onNodeRemoved()),ln.parent.children.splice(pn,1)},onNodeRemoved:()=>{},addIdentifiers(cn){},removeIdentifiers(cn){},hoist(cn){isString$2(cn)&&(cn=createSimpleExpression(cn)),ln.hoists.push(cn);const fn=createSimpleExpression(`_hoisted_${ln.hoists.length}`,!1,cn.loc,2);return fn.hoisted=cn,fn},cache(cn,fn=!1){return createCacheExpression(ln.cached++,cn,fn)}};return ln.filters=new Set,ln}function transform(_r,Fe){const $r=createTransformContext(_r,Fe);traverseNode(_r,$r),Fe.hoistStatic&&hoistStatic(_r,$r),Fe.ssr||createRootCodegen(_r,$r),_r.helpers=new Set([...$r.helpers.keys()]),_r.components=[...$r.components],_r.directives=[...$r.directives],_r.imports=$r.imports,_r.hoists=$r.hoists,_r.temps=$r.temps,_r.cached=$r.cached,_r.filters=[...$r.filters]}function createRootCodegen(_r,Fe){const{helper:$r}=Fe,{children:Fr}=_r;if(Fr.length===1){const jr=Fr[0];if(isSingleElementRoot(_r,jr)&&jr.codegenNode){const zr=jr.codegenNode;zr.type===13&&convertToBlock(zr,Fe),_r.codegenNode=zr}else _r.codegenNode=jr}else if(Fr.length>1){let jr=64;_r.codegenNode=createVNodeCall(Fe,$r(FRAGMENT),void 0,_r.children,jr+"",void 0,void 0,!0,void 0,!1)}}function traverseChildren(_r,Fe){let $r=0;const Fr=()=>{$r--};for(;$r<_r.children.length;$r++){const jr=_r.children[$r];isString$2(jr)||(Fe.parent=_r,Fe.childIndex=$r,Fe.onNodeRemoved=Fr,traverseNode(jr,Fe))}}function traverseNode(_r,Fe){Fe.currentNode=_r;const{nodeTransforms:$r}=Fe,Fr=[];for(let zr=0;zr<$r.length;zr++){const Vr=$r[zr](_r,Fe);if(Vr&&(isArray$5(Vr)?Fr.push(...Vr):Fr.push(Vr)),Fe.currentNode)_r=Fe.currentNode;else return}switch(_r.type){case 3:Fe.ssr||Fe.helper(CREATE_COMMENT);break;case 5:Fe.ssr||Fe.helper(TO_DISPLAY_STRING);break;case 9:for(let zr=0;zr<_r.branches.length;zr++)traverseNode(_r.branches[zr],Fe);break;case 10:case 11:case 1:case 0:traverseChildren(_r,Fe);break}Fe.currentNode=_r;let jr=Fr.length;for(;jr--;)Fr[jr]()}function createStructuralDirectiveTransform(_r,Fe){const $r=isString$2(_r)?Fr=>Fr===_r:Fr=>_r.test(Fr);return(Fr,jr)=>{if(Fr.type===1){const{props:zr}=Fr;if(Fr.tagType===3&&zr.some(isVSlot))return;const Vr=[];for(let Wr=0;Wr<zr.length;Wr++){const Kr=zr[Wr];if(Kr.type===7&&$r(Kr.name)){zr.splice(Wr,1),Wr--;const Gr=Fe(Fr,Kr,jr);Gr&&Vr.push(Gr)}}return Vr}}}const PURE_ANNOTATION="/*#__PURE__*/",aliasHelper=_r=>`${helperNameMap[_r]}: _${helperNameMap[_r]}`;function createCodegenContext(_r,{mode:Fe="function",prefixIdentifiers:$r=Fe==="module",sourceMap:Fr=!1,filename:jr="template.vue.html",scopeId:zr=null,optimizeImports:Vr=!1,runtimeGlobalName:Wr="Vue",runtimeModuleName:Kr="vue",ssrRuntimeModuleName:Gr="vue/server-renderer",ssr:Yr=!1,isTS:Qr=!1,inSSR:Jr=!1}){const Zr={mode:Fe,prefixIdentifiers:$r,sourceMap:Fr,filename:jr,scopeId:zr,optimizeImports:Vr,runtimeGlobalName:Wr,runtimeModuleName:Kr,ssrRuntimeModuleName:Gr,ssr:Yr,isTS:Qr,inSSR:Jr,source:_r.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(en){return`_${helperNameMap[en]}`},push(en,rn){Zr.code+=en},indent(){tn(++Zr.indentLevel)},deindent(en=!1){en?--Zr.indentLevel:tn(--Zr.indentLevel)},newline(){tn(Zr.indentLevel)}};function tn(en){Zr.push(`
`+"  ".repeat(en))}return Zr}function generate(_r,Fe={}){const $r=createCodegenContext(_r,Fe);Fe.onContextCreated&&Fe.onContextCreated($r);const{mode:Fr,push:jr,prefixIdentifiers:zr,indent:Vr,deindent:Wr,newline:Kr,scopeId:Gr,ssr:Yr}=$r,Qr=Array.from(_r.helpers),Jr=Qr.length>0,Zr=!zr&&Fr!=="module",tn=!1,en=tn?createCodegenContext(_r,Fe):$r;genFunctionPreamble(_r,en);const rn=Yr?"ssrRender":"render",on=(Yr?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(jr(`function ${rn}(${on}) {`),Vr(),Zr&&(jr("with (_ctx) {"),Vr(),Jr&&(jr(`const { ${Qr.map(aliasHelper).join(", ")} } = _Vue`),jr(`
`),Kr())),_r.components.length&&(genAssets(_r.components,"component",$r),(_r.directives.length||_r.temps>0)&&Kr()),_r.directives.length&&(genAssets(_r.directives,"directive",$r),_r.temps>0&&Kr()),_r.filters&&_r.filters.length&&(Kr(),genAssets(_r.filters,"filter",$r),Kr()),_r.temps>0){jr("let ");for(let un=0;un<_r.temps;un++)jr(`${un>0?", ":""}_temp${un}`)}return(_r.components.length||_r.directives.length||_r.temps)&&(jr(`
`),Kr()),Yr||jr("return "),_r.codegenNode?genNode(_r.codegenNode,$r):jr("null"),Zr&&(Wr(),jr("}")),Wr(),jr("}"),{ast:_r,code:$r.code,preamble:tn?en.code:"",map:$r.map?$r.map.toJSON():void 0}}function genFunctionPreamble(_r,Fe){const{ssr:$r,prefixIdentifiers:Fr,push:jr,newline:zr,runtimeModuleName:Vr,runtimeGlobalName:Wr,ssrRuntimeModuleName:Kr}=Fe,Gr=Wr,Yr=Array.from(_r.helpers);if(Yr.length>0&&(jr(`const _Vue = ${Gr}
`),_r.hoists.length)){const Qr=[CREATE_VNODE,CREATE_ELEMENT_VNODE,CREATE_COMMENT,CREATE_TEXT,CREATE_STATIC].filter(Jr=>Yr.includes(Jr)).map(aliasHelper).join(", ");jr(`const { ${Qr} } = _Vue
`)}genHoists(_r.hoists,Fe),zr(),jr("return ")}function genAssets(_r,Fe,{helper:$r,push:Fr,newline:jr,isTS:zr}){const Vr=$r(Fe==="filter"?RESOLVE_FILTER:Fe==="component"?RESOLVE_COMPONENT:RESOLVE_DIRECTIVE);for(let Wr=0;Wr<_r.length;Wr++){let Kr=_r[Wr];const Gr=Kr.endsWith("__self");Gr&&(Kr=Kr.slice(0,-6)),Fr(`const ${toValidAssetId(Kr,Fe)} = ${Vr}(${JSON.stringify(Kr)}${Gr?", true":""})${zr?"!":""}`),Wr<_r.length-1&&jr()}}function genHoists(_r,Fe){if(!_r.length)return;Fe.pure=!0;const{push:$r,newline:Fr,helper:jr,scopeId:zr,mode:Vr}=Fe;Fr();for(let Wr=0;Wr<_r.length;Wr++){const Kr=_r[Wr];Kr&&($r(`const _hoisted_${Wr+1} = `),genNode(Kr,Fe),Fr())}Fe.pure=!1}function genNodeListAsArray(_r,Fe){const $r=_r.length>3||!1;Fe.push("["),$r&&Fe.indent(),genNodeList(_r,Fe,$r),$r&&Fe.deindent(),Fe.push("]")}function genNodeList(_r,Fe,$r=!1,Fr=!0){const{push:jr,newline:zr}=Fe;for(let Vr=0;Vr<_r.length;Vr++){const Wr=_r[Vr];isString$2(Wr)?jr(Wr):isArray$5(Wr)?genNodeListAsArray(Wr,Fe):genNode(Wr,Fe),Vr<_r.length-1&&($r?(Fr&&jr(","),zr()):Fr&&jr(", "))}}function genNode(_r,Fe){if(isString$2(_r)){Fe.push(_r);return}if(isSymbol$1(_r)){Fe.push(Fe.helper(_r));return}switch(_r.type){case 1:case 9:case 11:genNode(_r.codegenNode,Fe);break;case 2:genText(_r,Fe);break;case 4:genExpression(_r,Fe);break;case 5:genInterpolation(_r,Fe);break;case 12:genNode(_r.codegenNode,Fe);break;case 8:genCompoundExpression(_r,Fe);break;case 3:genComment(_r,Fe);break;case 13:genVNodeCall(_r,Fe);break;case 14:genCallExpression(_r,Fe);break;case 15:genObjectExpression(_r,Fe);break;case 17:genArrayExpression(_r,Fe);break;case 18:genFunctionExpression(_r,Fe);break;case 19:genConditionalExpression(_r,Fe);break;case 20:genCacheExpression(_r,Fe);break;case 21:genNodeList(_r.body,Fe,!0,!1);break}}function genText(_r,Fe){Fe.push(JSON.stringify(_r.content),_r)}function genExpression(_r,Fe){const{content:$r,isStatic:Fr}=_r;Fe.push(Fr?JSON.stringify($r):$r,_r)}function genInterpolation(_r,Fe){const{push:$r,helper:Fr,pure:jr}=Fe;jr&&$r(PURE_ANNOTATION),$r(`${Fr(TO_DISPLAY_STRING)}(`),genNode(_r.content,Fe),$r(")")}function genCompoundExpression(_r,Fe){for(let $r=0;$r<_r.children.length;$r++){const Fr=_r.children[$r];isString$2(Fr)?Fe.push(Fr):genNode(Fr,Fe)}}function genExpressionAsPropertyKey(_r,Fe){const{push:$r}=Fe;if(_r.type===8)$r("["),genCompoundExpression(_r,Fe),$r("]");else if(_r.isStatic){const Fr=isSimpleIdentifier(_r.content)?_r.content:JSON.stringify(_r.content);$r(Fr,_r)}else $r(`[${_r.content}]`,_r)}function genComment(_r,Fe){const{push:$r,helper:Fr,pure:jr}=Fe;jr&&$r(PURE_ANNOTATION),$r(`${Fr(CREATE_COMMENT)}(${JSON.stringify(_r.content)})`,_r)}function genVNodeCall(_r,Fe){const{push:$r,helper:Fr,pure:jr}=Fe,{tag:zr,props:Vr,children:Wr,patchFlag:Kr,dynamicProps:Gr,directives:Yr,isBlock:Qr,disableTracking:Jr,isComponent:Zr}=_r;Yr&&$r(Fr(WITH_DIRECTIVES)+"("),Qr&&$r(`(${Fr(OPEN_BLOCK)}(${Jr?"true":""}), `),jr&&$r(PURE_ANNOTATION);const tn=Qr?getVNodeBlockHelper(Fe.inSSR,Zr):getVNodeHelper(Fe.inSSR,Zr);$r(Fr(tn)+"(",_r),genNodeList(genNullableArgs([zr,Vr,Wr,Kr,Gr]),Fe),$r(")"),Qr&&$r(")"),Yr&&($r(", "),genNode(Yr,Fe),$r(")"))}function genNullableArgs(_r){let Fe=_r.length;for(;Fe--&&_r[Fe]==null;);return _r.slice(0,Fe+1).map($r=>$r||"null")}function genCallExpression(_r,Fe){const{push:$r,helper:Fr,pure:jr}=Fe,zr=isString$2(_r.callee)?_r.callee:Fr(_r.callee);jr&&$r(PURE_ANNOTATION),$r(zr+"(",_r),genNodeList(_r.arguments,Fe),$r(")")}function genObjectExpression(_r,Fe){const{push:$r,indent:Fr,deindent:jr,newline:zr}=Fe,{properties:Vr}=_r;if(!Vr.length){$r("{}",_r);return}const Wr=Vr.length>1||!1;$r(Wr?"{":"{ "),Wr&&Fr();for(let Kr=0;Kr<Vr.length;Kr++){const{key:Gr,value:Yr}=Vr[Kr];genExpressionAsPropertyKey(Gr,Fe),$r(": "),genNode(Yr,Fe),Kr<Vr.length-1&&($r(","),zr())}Wr&&jr(),$r(Wr?"}":" }")}function genArrayExpression(_r,Fe){genNodeListAsArray(_r.elements,Fe)}function genFunctionExpression(_r,Fe){const{push:$r,indent:Fr,deindent:jr}=Fe,{params:zr,returns:Vr,body:Wr,newline:Kr,isSlot:Gr}=_r;Gr&&$r(`_${helperNameMap[WITH_CTX]}(`),$r("(",_r),isArray$5(zr)?genNodeList(zr,Fe):zr&&genNode(zr,Fe),$r(") => "),(Kr||Wr)&&($r("{"),Fr()),Vr?(Kr&&$r("return "),isArray$5(Vr)?genNodeListAsArray(Vr,Fe):genNode(Vr,Fe)):Wr&&genNode(Wr,Fe),(Kr||Wr)&&(jr(),$r("}")),Gr&&(_r.isNonScopedSlot&&$r(", undefined, true"),$r(")"))}function genConditionalExpression(_r,Fe){const{test:$r,consequent:Fr,alternate:jr,newline:zr}=_r,{push:Vr,indent:Wr,deindent:Kr,newline:Gr}=Fe;if($r.type===4){const Qr=!isSimpleIdentifier($r.content);Qr&&Vr("("),genExpression($r,Fe),Qr&&Vr(")")}else Vr("("),genNode($r,Fe),Vr(")");zr&&Wr(),Fe.indentLevel++,zr||Vr(" "),Vr("? "),genNode(Fr,Fe),Fe.indentLevel--,zr&&Gr(),zr||Vr(" "),Vr(": ");const Yr=jr.type===19;Yr||Fe.indentLevel++,genNode(jr,Fe),Yr||Fe.indentLevel--,zr&&Kr(!0)}function genCacheExpression(_r,Fe){const{push:$r,helper:Fr,indent:jr,deindent:zr,newline:Vr}=Fe;$r(`_cache[${_r.index}] || (`),_r.isVNode&&(jr(),$r(`${Fr(SET_BLOCK_TRACKING)}(-1),`),Vr()),$r(`_cache[${_r.index}] = `),genNode(_r.value,Fe),_r.isVNode&&($r(","),Vr(),$r(`${Fr(SET_BLOCK_TRACKING)}(1),`),Vr(),$r(`_cache[${_r.index}]`),zr()),$r(")")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const transformIf=createStructuralDirectiveTransform(/^(if|else|else-if)$/,(_r,Fe,$r)=>processIf(_r,Fe,$r,(Fr,jr,zr)=>{const Vr=$r.parent.children;let Wr=Vr.indexOf(Fr),Kr=0;for(;Wr-->=0;){const Gr=Vr[Wr];Gr&&Gr.type===9&&(Kr+=Gr.branches.length)}return()=>{if(zr)Fr.codegenNode=createCodegenNodeForBranch(jr,Kr,$r);else{const Gr=getParentCondition(Fr.codegenNode);Gr.alternate=createCodegenNodeForBranch(jr,Kr+Fr.branches.length-1,$r)}}}));function processIf(_r,Fe,$r,Fr){if(Fe.name!=="else"&&(!Fe.exp||!Fe.exp.content.trim())){const jr=Fe.exp?Fe.exp.loc:_r.loc;$r.onError(createCompilerError(28,Fe.loc)),Fe.exp=createSimpleExpression("true",!1,jr)}if(Fe.name==="if"){const jr=createIfBranch(_r,Fe),zr={type:9,loc:_r.loc,branches:[jr]};if($r.replaceNode(zr),Fr)return Fr(zr,jr,!0)}else{const jr=$r.parent.children;let zr=jr.indexOf(_r);for(;zr-->=-1;){const Vr=jr[zr];if(Vr&&Vr.type===3){$r.removeNode(Vr);continue}if(Vr&&Vr.type===2&&!Vr.content.trim().length){$r.removeNode(Vr);continue}if(Vr&&Vr.type===9){Fe.name==="else-if"&&Vr.branches[Vr.branches.length-1].condition===void 0&&$r.onError(createCompilerError(30,_r.loc)),$r.removeNode();const Wr=createIfBranch(_r,Fe);Vr.branches.push(Wr);const Kr=Fr&&Fr(Vr,Wr,!1);traverseNode(Wr,$r),Kr&&Kr(),$r.currentNode=null}else $r.onError(createCompilerError(30,_r.loc));break}}}function createIfBranch(_r,Fe){const $r=_r.tagType===3;return{type:10,loc:_r.loc,condition:Fe.name==="else"?void 0:Fe.exp,children:$r&&!findDir(_r,"for")?_r.children:[_r],userKey:findProp(_r,"key"),isTemplateIf:$r}}function createCodegenNodeForBranch(_r,Fe,$r){return _r.condition?createConditionalExpression(_r.condition,createChildrenCodegenNode(_r,Fe,$r),createCallExpression($r.helper(CREATE_COMMENT),['""',"true"])):createChildrenCodegenNode(_r,Fe,$r)}function createChildrenCodegenNode(_r,Fe,$r){const{helper:Fr}=$r,jr=createObjectProperty("key",createSimpleExpression(`${Fe}`,!1,locStub,2)),{children:zr}=_r,Vr=zr[0];if(zr.length!==1||Vr.type!==1)if(zr.length===1&&Vr.type===11){const Kr=Vr.codegenNode;return injectProp(Kr,jr,$r),Kr}else{let Kr=64;return createVNodeCall($r,Fr(FRAGMENT),createObjectExpression([jr]),zr,Kr+"",void 0,void 0,!0,!1,!1,_r.loc)}else{const Kr=Vr.codegenNode,Gr=getMemoedVNodeCall(Kr);return Gr.type===13&&convertToBlock(Gr,$r),injectProp(Gr,jr,$r),Kr}}function getParentCondition(_r){for(;;)if(_r.type===19)if(_r.alternate.type===19)_r=_r.alternate;else return _r;else _r.type===20&&(_r=_r.value)}const transformFor=createStructuralDirectiveTransform("for",(_r,Fe,$r)=>{const{helper:Fr,removeHelper:jr}=$r;return processFor(_r,Fe,$r,zr=>{const Vr=createCallExpression(Fr(RENDER_LIST),[zr.source]),Wr=isTemplateNode(_r),Kr=findDir(_r,"memo"),Gr=findProp(_r,"key"),Yr=Gr&&(Gr.type===6?createSimpleExpression(Gr.value.content,!0):Gr.exp),Qr=Gr?createObjectProperty("key",Yr):null,Jr=zr.source.type===4&&zr.source.constType>0,Zr=Jr?64:Gr?128:256;return zr.codegenNode=createVNodeCall($r,Fr(FRAGMENT),void 0,Vr,Zr+"",void 0,void 0,!0,!Jr,!1,_r.loc),()=>{let tn;const{children:en}=zr,rn=en.length!==1||en[0].type!==1,nn=isSlotOutlet(_r)?_r:Wr&&_r.children.length===1&&isSlotOutlet(_r.children[0])?_r.children[0]:null;if(nn?(tn=nn.codegenNode,Wr&&Qr&&injectProp(tn,Qr,$r)):rn?tn=createVNodeCall($r,Fr(FRAGMENT),Qr?createObjectExpression([Qr]):void 0,_r.children,64+"",void 0,void 0,!0,void 0,!1):(tn=en[0].codegenNode,Wr&&Qr&&injectProp(tn,Qr,$r),tn.isBlock!==!Jr&&(tn.isBlock?(jr(OPEN_BLOCK),jr(getVNodeBlockHelper($r.inSSR,tn.isComponent))):jr(getVNodeHelper($r.inSSR,tn.isComponent))),tn.isBlock=!Jr,tn.isBlock?(Fr(OPEN_BLOCK),Fr(getVNodeBlockHelper($r.inSSR,tn.isComponent))):Fr(getVNodeHelper($r.inSSR,tn.isComponent))),Kr){const on=createFunctionExpression(createForLoopParams(zr.parseResult,[createSimpleExpression("_cached")]));on.body=createBlockStatement([createCompoundExpression(["const _memo = (",Kr.exp,")"]),createCompoundExpression(["if (_cached",...Yr?[" && _cached.key === ",Yr]:[],` && ${$r.helperString(IS_MEMO_SAME)}(_cached, _memo)) return _cached`]),createCompoundExpression(["const _item = ",tn]),createSimpleExpression("_item.memo = _memo"),createSimpleExpression("return _item")]),Vr.arguments.push(on,createSimpleExpression("_cache"),createSimpleExpression(String($r.cached++)))}else Vr.arguments.push(createFunctionExpression(createForLoopParams(zr.parseResult),tn,!0))}})});function processFor(_r,Fe,$r,Fr){if(!Fe.exp){$r.onError(createCompilerError(31,Fe.loc));return}const jr=parseForExpression(Fe.exp);if(!jr){$r.onError(createCompilerError(32,Fe.loc));return}const{addIdentifiers:zr,removeIdentifiers:Vr,scopes:Wr}=$r,{source:Kr,value:Gr,key:Yr,index:Qr}=jr,Jr={type:11,loc:Fe.loc,source:Kr,valueAlias:Gr,keyAlias:Yr,objectIndexAlias:Qr,parseResult:jr,children:isTemplateNode(_r)?_r.children:[_r]};$r.replaceNode(Jr),Wr.vFor++;const Zr=Fr&&Fr(Jr);return()=>{Wr.vFor--,Zr&&Zr()}}const forAliasRE=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,forIteratorRE=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,stripParensRE=/^\(|\)$/g;function parseForExpression(_r,Fe){const $r=_r.loc,Fr=_r.content,jr=Fr.match(forAliasRE);if(!jr)return;const[,zr,Vr]=jr,Wr={source:createAliasExpression($r,Vr.trim(),Fr.indexOf(Vr,zr.length)),value:void 0,key:void 0,index:void 0};let Kr=zr.trim().replace(stripParensRE,"").trim();const Gr=zr.indexOf(Kr),Yr=Kr.match(forIteratorRE);if(Yr){Kr=Kr.replace(forIteratorRE,"").trim();const Qr=Yr[1].trim();let Jr;if(Qr&&(Jr=Fr.indexOf(Qr,Gr+Kr.length),Wr.key=createAliasExpression($r,Qr,Jr)),Yr[2]){const Zr=Yr[2].trim();Zr&&(Wr.index=createAliasExpression($r,Zr,Fr.indexOf(Zr,Wr.key?Jr+Qr.length:Gr+Kr.length)))}}return Kr&&(Wr.value=createAliasExpression($r,Kr,Gr)),Wr}function createAliasExpression(_r,Fe,$r){return createSimpleExpression(Fe,!1,getInnerRange(_r,$r,Fe.length))}function createForLoopParams({value:_r,key:Fe,index:$r},Fr=[]){return createParamsList([_r,Fe,$r,...Fr])}function createParamsList(_r){let Fe=_r.length;for(;Fe--&&!_r[Fe];);return _r.slice(0,Fe+1).map(($r,Fr)=>$r||createSimpleExpression("_".repeat(Fr+1),!1))}const defaultFallback=createSimpleExpression("undefined",!1),trackSlotScopes=(_r,Fe)=>{if(_r.type===1&&(_r.tagType===1||_r.tagType===3)){const $r=findDir(_r,"slot");if($r)return $r.exp,Fe.scopes.vSlot++,()=>{Fe.scopes.vSlot--}}},buildClientSlotFn=(_r,Fe,$r)=>createFunctionExpression(_r,Fe,!1,!0,Fe.length?Fe[0].loc:$r);function buildSlots(_r,Fe,$r=buildClientSlotFn){Fe.helper(WITH_CTX);const{children:Fr,loc:jr}=_r,zr=[],Vr=[];let Wr=Fe.scopes.vSlot>0||Fe.scopes.vFor>0;const Kr=findDir(_r,"slot",!0);if(Kr){const{arg:rn,exp:nn}=Kr;rn&&!isStaticExp(rn)&&(Wr=!0),zr.push(createObjectProperty(rn||createSimpleExpression("default",!0),$r(nn,Fr,jr)))}let Gr=!1,Yr=!1;const Qr=[],Jr=new Set;let Zr=0;for(let rn=0;rn<Fr.length;rn++){const nn=Fr[rn];let on;if(!isTemplateNode(nn)||!(on=findDir(nn,"slot",!0))){nn.type!==3&&Qr.push(nn);continue}if(Kr){Fe.onError(createCompilerError(37,on.loc));break}Gr=!0;const{children:un,loc:an}=nn,{arg:sn=createSimpleExpression("default",!0),exp:dn,loc:ln}=on;let cn;isStaticExp(sn)?cn=sn?sn.content:"default":Wr=!0;const fn=$r(dn,un,an);let pn,hn,mn;if(pn=findDir(nn,"if"))Wr=!0,Vr.push(createConditionalExpression(pn.exp,buildDynamicSlot(sn,fn,Zr++),defaultFallback));else if(hn=findDir(nn,/^else(-if)?$/,!0)){let Sn=rn,vn;for(;Sn--&&(vn=Fr[Sn],vn.type===3););if(vn&&isTemplateNode(vn)&&findDir(vn,"if")){Fr.splice(rn,1),rn--;let bn=Vr[Vr.length-1];for(;bn.alternate.type===19;)bn=bn.alternate;bn.alternate=hn.exp?createConditionalExpression(hn.exp,buildDynamicSlot(sn,fn,Zr++),defaultFallback):buildDynamicSlot(sn,fn,Zr++)}else Fe.onError(createCompilerError(30,hn.loc))}else if(mn=findDir(nn,"for")){Wr=!0;const Sn=mn.parseResult||parseForExpression(mn.exp);Sn?Vr.push(createCallExpression(Fe.helper(RENDER_LIST),[Sn.source,createFunctionExpression(createForLoopParams(Sn),buildDynamicSlot(sn,fn),!0)])):Fe.onError(createCompilerError(32,mn.loc))}else{if(cn){if(Jr.has(cn)){Fe.onError(createCompilerError(38,ln));continue}Jr.add(cn),cn==="default"&&(Yr=!0)}zr.push(createObjectProperty(sn,fn))}}if(!Kr){const rn=(nn,on)=>{const un=$r(nn,on,jr);return Fe.compatConfig&&(un.isNonScopedSlot=!0),createObjectProperty("default",un)};Gr?Qr.length&&Qr.some(nn=>isNonWhitespaceContent(nn))&&(Yr?Fe.onError(createCompilerError(39,Qr[0].loc)):zr.push(rn(void 0,Qr))):zr.push(rn(void 0,Fr))}const tn=Wr?2:hasForwardedSlots(_r.children)?3:1;let en=createObjectExpression(zr.concat(createObjectProperty("_",createSimpleExpression(tn+"",!1))),jr);return Vr.length&&(en=createCallExpression(Fe.helper(CREATE_SLOTS),[en,createArrayExpression(Vr)])),{slots:en,hasDynamicSlots:Wr}}function buildDynamicSlot(_r,Fe,$r){const Fr=[createObjectProperty("name",_r),createObjectProperty("fn",Fe)];return $r!=null&&Fr.push(createObjectProperty("key",createSimpleExpression(String($r),!0))),createObjectExpression(Fr)}function hasForwardedSlots(_r){for(let Fe=0;Fe<_r.length;Fe++){const $r=_r[Fe];switch($r.type){case 1:if($r.tagType===2||hasForwardedSlots($r.children))return!0;break;case 9:if(hasForwardedSlots($r.branches))return!0;break;case 10:case 11:if(hasForwardedSlots($r.children))return!0;break}}return!1}function isNonWhitespaceContent(_r){return _r.type!==2&&_r.type!==12?!0:_r.type===2?!!_r.content.trim():isNonWhitespaceContent(_r.content)}const directiveImportMap=new WeakMap,transformElement=(_r,Fe)=>function(){if(_r=Fe.currentNode,!(_r.type===1&&(_r.tagType===0||_r.tagType===1)))return;const{tag:Fr,props:jr}=_r,zr=_r.tagType===1;let Vr=zr?resolveComponentType(_r,Fe):`"${Fr}"`;const Wr=isObject$5(Vr)&&Vr.callee===RESOLVE_DYNAMIC_COMPONENT;let Kr,Gr,Yr,Qr=0,Jr,Zr,tn,en=Wr||Vr===TELEPORT||Vr===SUSPENSE||!zr&&(Fr==="svg"||Fr==="foreignObject");if(jr.length>0){const rn=buildProps(_r,Fe,void 0,zr,Wr);Kr=rn.props,Qr=rn.patchFlag,Zr=rn.dynamicPropNames;const nn=rn.directives;tn=nn&&nn.length?createArrayExpression(nn.map(on=>buildDirectiveArgs(on,Fe))):void 0,rn.shouldUseBlock&&(en=!0)}if(_r.children.length>0)if(Vr===KEEP_ALIVE&&(en=!0,Qr|=1024),zr&&Vr!==TELEPORT&&Vr!==KEEP_ALIVE){const{slots:nn,hasDynamicSlots:on}=buildSlots(_r,Fe);Gr=nn,on&&(Qr|=1024)}else if(_r.children.length===1&&Vr!==TELEPORT){const nn=_r.children[0],on=nn.type,un=on===5||on===8;un&&getConstantType(nn,Fe)===0&&(Qr|=1),un||on===2?Gr=nn:Gr=_r.children}else Gr=_r.children;Qr!==0&&(Yr=String(Qr),Zr&&Zr.length&&(Jr=stringifyDynamicPropNames(Zr))),_r.codegenNode=createVNodeCall(Fe,Vr,Kr,Gr,Yr,Jr,tn,!!en,!1,zr,_r.loc)};function resolveComponentType(_r,Fe,$r=!1){let{tag:Fr}=_r;const jr=isComponentTag(Fr),zr=findProp(_r,"is");if(zr)if(jr||isCompatEnabled("COMPILER_IS_ON_ELEMENT",Fe)){const Kr=zr.type===6?zr.value&&createSimpleExpression(zr.value.content,!0):zr.exp;if(Kr)return createCallExpression(Fe.helper(RESOLVE_DYNAMIC_COMPONENT),[Kr])}else zr.type===6&&zr.value.content.startsWith("vue:")&&(Fr=zr.value.content.slice(4));const Vr=!jr&&findDir(_r,"is");if(Vr&&Vr.exp)return createCallExpression(Fe.helper(RESOLVE_DYNAMIC_COMPONENT),[Vr.exp]);const Wr=isCoreComponent(Fr)||Fe.isBuiltInComponent(Fr);return Wr?($r||Fe.helper(Wr),Wr):(Fe.helper(RESOLVE_COMPONENT),Fe.components.add(Fr),toValidAssetId(Fr,"component"))}function buildProps(_r,Fe,$r=_r.props,Fr,jr,zr=!1){const{tag:Vr,loc:Wr,children:Kr}=_r;let Gr=[];const Yr=[],Qr=[],Jr=Kr.length>0;let Zr=!1,tn=0,en=!1,rn=!1,nn=!1,on=!1,un=!1,an=!1;const sn=[],dn=fn=>{Gr.length&&(Yr.push(createObjectExpression(dedupeProperties(Gr),Wr)),Gr=[]),fn&&Yr.push(fn)},ln=({key:fn,value:pn})=>{if(isStaticExp(fn)){const hn=fn.content,mn=isOn(hn);if(mn&&(!Fr||jr)&&hn.toLowerCase()!=="onclick"&&hn!=="onUpdate:modelValue"&&!isReservedProp(hn)&&(on=!0),mn&&isReservedProp(hn)&&(an=!0),pn.type===20||(pn.type===4||pn.type===8)&&getConstantType(pn,Fe)>0)return;hn==="ref"?en=!0:hn==="class"?rn=!0:hn==="style"?nn=!0:hn!=="key"&&!sn.includes(hn)&&sn.push(hn),Fr&&(hn==="class"||hn==="style")&&!sn.includes(hn)&&sn.push(hn)}else un=!0};for(let fn=0;fn<$r.length;fn++){const pn=$r[fn];if(pn.type===6){const{loc:hn,name:mn,value:Sn}=pn;let vn=!0;if(mn==="ref"&&(en=!0,Fe.scopes.vFor>0&&Gr.push(createObjectProperty(createSimpleExpression("ref_for",!0),createSimpleExpression("true")))),mn==="is"&&(isComponentTag(Vr)||Sn&&Sn.content.startsWith("vue:")||isCompatEnabled("COMPILER_IS_ON_ELEMENT",Fe)))continue;Gr.push(createObjectProperty(createSimpleExpression(mn,!0,getInnerRange(hn,0,mn.length)),createSimpleExpression(Sn?Sn.content:"",vn,Sn?Sn.loc:hn)))}else{const{name:hn,arg:mn,exp:Sn,loc:vn}=pn,bn=hn==="bind",_n=hn==="on";if(hn==="slot"){Fr||Fe.onError(createCompilerError(40,vn));continue}if(hn==="once"||hn==="memo"||hn==="is"||bn&&isStaticArgOf(mn,"is")&&(isComponentTag(Vr)||isCompatEnabled("COMPILER_IS_ON_ELEMENT",Fe))||_n&&zr)continue;if((bn&&isStaticArgOf(mn,"key")||_n&&Jr&&isStaticArgOf(mn,"vue:before-update"))&&(Zr=!0),bn&&isStaticArgOf(mn,"ref")&&Fe.scopes.vFor>0&&Gr.push(createObjectProperty(createSimpleExpression("ref_for",!0),createSimpleExpression("true"))),!mn&&(bn||_n)){if(un=!0,Sn)if(bn){if(dn(),isCompatEnabled("COMPILER_V_BIND_OBJECT_ORDER",Fe)){Yr.unshift(Sn);continue}Yr.push(Sn)}else dn({type:14,loc:vn,callee:Fe.helper(TO_HANDLERS),arguments:Fr?[Sn]:[Sn,"true"]});else Fe.onError(createCompilerError(bn?34:35,vn));continue}const $n=Fe.directiveTransforms[hn];if($n){const{props:yn,needRuntime:wn}=$n(pn,_r,Fe);!zr&&yn.forEach(ln),_n&&mn&&!isStaticExp(mn)?dn(createObjectExpression(yn,Wr)):Gr.push(...yn),wn&&(Qr.push(pn),isSymbol$1(wn)&&directiveImportMap.set(pn,wn))}else isBuiltInDirective(hn)||(Qr.push(pn),Jr&&(Zr=!0))}}let cn;if(Yr.length?(dn(),Yr.length>1?cn=createCallExpression(Fe.helper(MERGE_PROPS),Yr,Wr):cn=Yr[0]):Gr.length&&(cn=createObjectExpression(dedupeProperties(Gr),Wr)),un?tn|=16:(rn&&!Fr&&(tn|=2),nn&&!Fr&&(tn|=4),sn.length&&(tn|=8),on&&(tn|=32)),!Zr&&(tn===0||tn===32)&&(en||an||Qr.length>0)&&(tn|=512),!Fe.inSSR&&cn)switch(cn.type){case 15:let fn=-1,pn=-1,hn=!1;for(let vn=0;vn<cn.properties.length;vn++){const bn=cn.properties[vn].key;isStaticExp(bn)?bn.content==="class"?fn=vn:bn.content==="style"&&(pn=vn):bn.isHandlerKey||(hn=!0)}const mn=cn.properties[fn],Sn=cn.properties[pn];hn?cn=createCallExpression(Fe.helper(NORMALIZE_PROPS),[cn]):(mn&&!isStaticExp(mn.value)&&(mn.value=createCallExpression(Fe.helper(NORMALIZE_CLASS),[mn.value])),Sn&&(nn||Sn.value.type===4&&Sn.value.content.trim()[0]==="["||Sn.value.type===17)&&(Sn.value=createCallExpression(Fe.helper(NORMALIZE_STYLE),[Sn.value])));break;case 14:break;default:cn=createCallExpression(Fe.helper(NORMALIZE_PROPS),[createCallExpression(Fe.helper(GUARD_REACTIVE_PROPS),[cn])]);break}return{props:cn,directives:Qr,patchFlag:tn,dynamicPropNames:sn,shouldUseBlock:Zr}}function dedupeProperties(_r){const Fe=new Map,$r=[];for(let Fr=0;Fr<_r.length;Fr++){const jr=_r[Fr];if(jr.key.type===8||!jr.key.isStatic){$r.push(jr);continue}const zr=jr.key.content,Vr=Fe.get(zr);Vr?(zr==="style"||zr==="class"||isOn(zr))&&mergeAsArray(Vr,jr):(Fe.set(zr,jr),$r.push(jr))}return $r}function mergeAsArray(_r,Fe){_r.value.type===17?_r.value.elements.push(Fe.value):_r.value=createArrayExpression([_r.value,Fe.value],_r.loc)}function buildDirectiveArgs(_r,Fe){const $r=[],Fr=directiveImportMap.get(_r);Fr?$r.push(Fe.helperString(Fr)):(Fe.helper(RESOLVE_DIRECTIVE),Fe.directives.add(_r.name),$r.push(toValidAssetId(_r.name,"directive")));const{loc:jr}=_r;if(_r.exp&&$r.push(_r.exp),_r.arg&&(_r.exp||$r.push("void 0"),$r.push(_r.arg)),Object.keys(_r.modifiers).length){_r.arg||(_r.exp||$r.push("void 0"),$r.push("void 0"));const zr=createSimpleExpression("true",!1,jr);$r.push(createObjectExpression(_r.modifiers.map(Vr=>createObjectProperty(Vr,zr)),jr))}return createArrayExpression($r,_r.loc)}function stringifyDynamicPropNames(_r){let Fe="[";for(let $r=0,Fr=_r.length;$r<Fr;$r++)Fe+=JSON.stringify(_r[$r]),$r<Fr-1&&(Fe+=", ");return Fe+"]"}function isComponentTag(_r){return _r==="component"||_r==="Component"}const transformSlotOutlet=(_r,Fe)=>{if(isSlotOutlet(_r)){const{children:$r,loc:Fr}=_r,{slotName:jr,slotProps:zr}=processSlotOutlet(_r,Fe),Vr=[Fe.prefixIdentifiers?"_ctx.$slots":"$slots",jr,"{}","undefined","true"];let Wr=2;zr&&(Vr[2]=zr,Wr=3),$r.length&&(Vr[3]=createFunctionExpression([],$r,!1,!1,Fr),Wr=4),Fe.scopeId&&!Fe.slotted&&(Wr=5),Vr.splice(Wr),_r.codegenNode=createCallExpression(Fe.helper(RENDER_SLOT),Vr,Fr)}};function processSlotOutlet(_r,Fe){let $r='"default"',Fr;const jr=[];for(let zr=0;zr<_r.props.length;zr++){const Vr=_r.props[zr];Vr.type===6?Vr.value&&(Vr.name==="name"?$r=JSON.stringify(Vr.value.content):(Vr.name=camelize(Vr.name),jr.push(Vr))):Vr.name==="bind"&&isStaticArgOf(Vr.arg,"name")?Vr.exp&&($r=Vr.exp):(Vr.name==="bind"&&Vr.arg&&isStaticExp(Vr.arg)&&(Vr.arg.content=camelize(Vr.arg.content)),jr.push(Vr))}if(jr.length>0){const{props:zr,directives:Vr}=buildProps(_r,Fe,jr,!1,!1);Fr=zr,Vr.length&&Fe.onError(createCompilerError(36,Vr[0].loc))}return{slotName:$r,slotProps:Fr}}const fnExpRE=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,transformOn$1=(_r,Fe,$r,Fr)=>{const{loc:jr,modifiers:zr,arg:Vr}=_r;!_r.exp&&!zr.length&&$r.onError(createCompilerError(35,jr));let Wr;if(Vr.type===4)if(Vr.isStatic){let Qr=Vr.content;Qr.startsWith("vue:")&&(Qr=`vnode-${Qr.slice(4)}`);const Jr=Fe.tagType!==0||Qr.startsWith("vnode")||!/[A-Z]/.test(Qr)?toHandlerKey(camelize(Qr)):`on:${Qr}`;Wr=createSimpleExpression(Jr,!0,Vr.loc)}else Wr=createCompoundExpression([`${$r.helperString(TO_HANDLER_KEY)}(`,Vr,")"]);else Wr=Vr,Wr.children.unshift(`${$r.helperString(TO_HANDLER_KEY)}(`),Wr.children.push(")");let Kr=_r.exp;Kr&&!Kr.content.trim()&&(Kr=void 0);let Gr=$r.cacheHandlers&&!Kr&&!$r.inVOnce;if(Kr){const Qr=isMemberExpression(Kr.content),Jr=!(Qr||fnExpRE.test(Kr.content)),Zr=Kr.content.includes(";");(Jr||Gr&&Qr)&&(Kr=createCompoundExpression([`${Jr?"$event":"(...args)"} => ${Zr?"{":"("}`,Kr,Zr?"}":")"]))}let Yr={props:[createObjectProperty(Wr,Kr||createSimpleExpression("() => {}",!1,jr))]};return Fr&&(Yr=Fr(Yr)),Gr&&(Yr.props[0].value=$r.cache(Yr.props[0].value)),Yr.props.forEach(Qr=>Qr.key.isHandlerKey=!0),Yr},transformBind=(_r,Fe,$r)=>{const{exp:Fr,modifiers:jr,loc:zr}=_r,Vr=_r.arg;return Vr.type!==4?(Vr.children.unshift("("),Vr.children.push(') || ""')):Vr.isStatic||(Vr.content=`${Vr.content} || ""`),jr.includes("camel")&&(Vr.type===4?Vr.isStatic?Vr.content=camelize(Vr.content):Vr.content=`${$r.helperString(CAMELIZE)}(${Vr.content})`:(Vr.children.unshift(`${$r.helperString(CAMELIZE)}(`),Vr.children.push(")"))),$r.inSSR||(jr.includes("prop")&&injectPrefix(Vr,"."),jr.includes("attr")&&injectPrefix(Vr,"^")),!Fr||Fr.type===4&&!Fr.content.trim()?($r.onError(createCompilerError(34,zr)),{props:[createObjectProperty(Vr,createSimpleExpression("",!0,zr))]}):{props:[createObjectProperty(Vr,Fr)]}},injectPrefix=(_r,Fe)=>{_r.type===4?_r.isStatic?_r.content=Fe+_r.content:_r.content=`\`${Fe}\${${_r.content}}\``:(_r.children.unshift(`'${Fe}' + (`),_r.children.push(")"))},transformText=(_r,Fe)=>{if(_r.type===0||_r.type===1||_r.type===11||_r.type===10)return()=>{const $r=_r.children;let Fr,jr=!1;for(let zr=0;zr<$r.length;zr++){const Vr=$r[zr];if(isText$1(Vr)){jr=!0;for(let Wr=zr+1;Wr<$r.length;Wr++){const Kr=$r[Wr];if(isText$1(Kr))Fr||(Fr=$r[zr]=createCompoundExpression([Vr],Vr.loc)),Fr.children.push(" + ",Kr),$r.splice(Wr,1),Wr--;else{Fr=void 0;break}}}}if(!(!jr||$r.length===1&&(_r.type===0||_r.type===1&&_r.tagType===0&&!_r.props.find(zr=>zr.type===7&&!Fe.directiveTransforms[zr.name])&&_r.tag!=="template")))for(let zr=0;zr<$r.length;zr++){const Vr=$r[zr];if(isText$1(Vr)||Vr.type===8){const Wr=[];(Vr.type!==2||Vr.content!==" ")&&Wr.push(Vr),!Fe.ssr&&getConstantType(Vr,Fe)===0&&Wr.push(1+""),$r[zr]={type:12,content:Vr,loc:Vr.loc,codegenNode:createCallExpression(Fe.helper(CREATE_TEXT),Wr)}}}}},seen$1=new WeakSet,transformOnce=(_r,Fe)=>{if(_r.type===1&&findDir(_r,"once",!0))return seen$1.has(_r)||Fe.inVOnce||Fe.inSSR?void 0:(seen$1.add(_r),Fe.inVOnce=!0,Fe.helper(SET_BLOCK_TRACKING),()=>{Fe.inVOnce=!1;const $r=Fe.currentNode;$r.codegenNode&&($r.codegenNode=Fe.cache($r.codegenNode,!0))})},transformModel$1=(_r,Fe,$r)=>{const{exp:Fr,arg:jr}=_r;if(!Fr)return $r.onError(createCompilerError(41,_r.loc)),createTransformProps();const zr=Fr.loc.source,Vr=Fr.type===4?Fr.content:zr,Wr=$r.bindingMetadata[zr];if(Wr==="props"||Wr==="props-aliased")return $r.onError(createCompilerError(44,Fr.loc)),createTransformProps();const Kr=!1;if(!Vr.trim()||!isMemberExpression(Vr)&&!Kr)return $r.onError(createCompilerError(42,Fr.loc)),createTransformProps();const Gr=jr||createSimpleExpression("modelValue",!0),Yr=jr?isStaticExp(jr)?`onUpdate:${camelize(jr.content)}`:createCompoundExpression(['"onUpdate:" + ',jr]):"onUpdate:modelValue";let Qr;const Jr=$r.isTS?"($event: any)":"$event";Qr=createCompoundExpression([`${Jr} => ((`,Fr,") = $event)"]);const Zr=[createObjectProperty(Gr,_r.exp),createObjectProperty(Yr,Qr)];if(_r.modifiers.length&&Fe.tagType===1){const tn=_r.modifiers.map(rn=>(isSimpleIdentifier(rn)?rn:JSON.stringify(rn))+": true").join(", "),en=jr?isStaticExp(jr)?`${jr.content}Modifiers`:createCompoundExpression([jr,' + "Modifiers"']):"modelModifiers";Zr.push(createObjectProperty(en,createSimpleExpression(`{ ${tn} }`,!1,_r.loc,2)))}return createTransformProps(Zr)};function createTransformProps(_r=[]){return{props:_r}}const validDivisionCharRE=/[\w).+\-_$\]]/,transformFilter=(_r,Fe)=>{!isCompatEnabled("COMPILER_FILTER",Fe)||(_r.type===5&&rewriteFilter(_r.content,Fe),_r.type===1&&_r.props.forEach($r=>{$r.type===7&&$r.name!=="for"&&$r.exp&&rewriteFilter($r.exp,Fe)}))};function rewriteFilter(_r,Fe){if(_r.type===4)parseFilter(_r,Fe);else for(let $r=0;$r<_r.children.length;$r++){const Fr=_r.children[$r];typeof Fr=="object"&&(Fr.type===4?parseFilter(Fr,Fe):Fr.type===8?rewriteFilter(_r,Fe):Fr.type===5&&rewriteFilter(Fr.content,Fe))}}function parseFilter(_r,Fe){const $r=_r.content;let Fr=!1,jr=!1,zr=!1,Vr=!1,Wr=0,Kr=0,Gr=0,Yr=0,Qr,Jr,Zr,tn,en=[];for(Zr=0;Zr<$r.length;Zr++)if(Jr=Qr,Qr=$r.charCodeAt(Zr),Fr)Qr===39&&Jr!==92&&(Fr=!1);else if(jr)Qr===34&&Jr!==92&&(jr=!1);else if(zr)Qr===96&&Jr!==92&&(zr=!1);else if(Vr)Qr===47&&Jr!==92&&(Vr=!1);else if(Qr===124&&$r.charCodeAt(Zr+1)!==124&&$r.charCodeAt(Zr-1)!==124&&!Wr&&!Kr&&!Gr)tn===void 0?(Yr=Zr+1,tn=$r.slice(0,Zr).trim()):rn();else{switch(Qr){case 34:jr=!0;break;case 39:Fr=!0;break;case 96:zr=!0;break;case 40:Gr++;break;case 41:Gr--;break;case 91:Kr++;break;case 93:Kr--;break;case 123:Wr++;break;case 125:Wr--;break}if(Qr===47){let nn=Zr-1,on;for(;nn>=0&&(on=$r.charAt(nn),on===" ");nn--);(!on||!validDivisionCharRE.test(on))&&(Vr=!0)}}tn===void 0?tn=$r.slice(0,Zr).trim():Yr!==0&&rn();function rn(){en.push($r.slice(Yr,Zr).trim()),Yr=Zr+1}if(en.length){for(Zr=0;Zr<en.length;Zr++)tn=wrapFilter(tn,en[Zr],Fe);_r.content=tn}}function wrapFilter(_r,Fe,$r){$r.helper(RESOLVE_FILTER);const Fr=Fe.indexOf("(");if(Fr<0)return $r.filters.add(Fe),`${toValidAssetId(Fe,"filter")}(${_r})`;{const jr=Fe.slice(0,Fr),zr=Fe.slice(Fr+1);return $r.filters.add(jr),`${toValidAssetId(jr,"filter")}(${_r}${zr!==")"?","+zr:zr}`}}const seen$2=new WeakSet,transformMemo=(_r,Fe)=>{if(_r.type===1){const $r=findDir(_r,"memo");return!$r||seen$2.has(_r)?void 0:(seen$2.add(_r),()=>{const Fr=_r.codegenNode||Fe.currentNode.codegenNode;Fr&&Fr.type===13&&(_r.tagType!==1&&convertToBlock(Fr,Fe),_r.codegenNode=createCallExpression(Fe.helper(WITH_MEMO),[$r.exp,createFunctionExpression(void 0,Fr),"_cache",String(Fe.cached++)]))})}};function getBaseTransformPreset(_r){return[[transformOnce,transformIf,transformMemo,transformFor,transformFilter,transformSlotOutlet,transformElement,trackSlotScopes,transformText],{on:transformOn$1,bind:transformBind,model:transformModel$1}]}function baseCompile(_r,Fe={}){const $r=Fe.onError||defaultOnError,Fr=Fe.mode==="module";Fe.prefixIdentifiers===!0?$r(createCompilerError(47)):Fr&&$r(createCompilerError(48));const jr=!1;Fe.cacheHandlers&&$r(createCompilerError(49)),Fe.scopeId&&!Fr&&$r(createCompilerError(50));const zr=isString$2(_r)?baseParse(_r,Fe):_r,[Vr,Wr]=getBaseTransformPreset();return transform(zr,extend$1({},Fe,{prefixIdentifiers:jr,nodeTransforms:[...Vr,...Fe.nodeTransforms||[]],directiveTransforms:extend$1({},Wr,Fe.directiveTransforms||{})})),generate(zr,extend$1({},Fe,{prefixIdentifiers:jr}))}const noopDirectiveTransform=()=>({props:[]}),V_MODEL_RADIO=Symbol(""),V_MODEL_CHECKBOX=Symbol(""),V_MODEL_TEXT=Symbol(""),V_MODEL_SELECT=Symbol(""),V_MODEL_DYNAMIC=Symbol(""),V_ON_WITH_MODIFIERS=Symbol(""),V_ON_WITH_KEYS=Symbol(""),V_SHOW=Symbol(""),TRANSITION=Symbol(""),TRANSITION_GROUP=Symbol("");registerRuntimeHelpers({[V_MODEL_RADIO]:"vModelRadio",[V_MODEL_CHECKBOX]:"vModelCheckbox",[V_MODEL_TEXT]:"vModelText",[V_MODEL_SELECT]:"vModelSelect",[V_MODEL_DYNAMIC]:"vModelDynamic",[V_ON_WITH_MODIFIERS]:"withModifiers",[V_ON_WITH_KEYS]:"withKeys",[V_SHOW]:"vShow",[TRANSITION]:"Transition",[TRANSITION_GROUP]:"TransitionGroup"});let decoder;function decodeHtmlBrowser(_r,Fe=!1){return decoder||(decoder=document.createElement("div")),Fe?(decoder.innerHTML=`<div foo="${_r.replace(/"/g,"&quot;")}">`,decoder.children[0].getAttribute("foo")):(decoder.innerHTML=_r,decoder.textContent)}const isRawTextContainer=makeMap("style,iframe,script,noscript",!0),parserOptions={isVoidTag,isNativeTag:_r=>isHTMLTag(_r)||isSVGTag(_r),isPreTag:_r=>_r==="pre",decodeEntities:decodeHtmlBrowser,isBuiltInComponent:_r=>{if(isBuiltInType(_r,"Transition"))return TRANSITION;if(isBuiltInType(_r,"TransitionGroup"))return TRANSITION_GROUP},getNamespace(_r,Fe){let $r=Fe?Fe.ns:0;if(Fe&&$r===2)if(Fe.tag==="annotation-xml"){if(_r==="svg")return 1;Fe.props.some(Fr=>Fr.type===6&&Fr.name==="encoding"&&Fr.value!=null&&(Fr.value.content==="text/html"||Fr.value.content==="application/xhtml+xml"))&&($r=0)}else/^m(?:[ions]|text)$/.test(Fe.tag)&&_r!=="mglyph"&&_r!=="malignmark"&&($r=0);else Fe&&$r===1&&(Fe.tag==="foreignObject"||Fe.tag==="desc"||Fe.tag==="title")&&($r=0);if($r===0){if(_r==="svg")return 1;if(_r==="math")return 2}return $r},getTextMode({tag:_r,ns:Fe}){if(Fe===0){if(_r==="textarea"||_r==="title")return 1;if(isRawTextContainer(_r))return 2}return 0}},transformStyle=_r=>{_r.type===1&&_r.props.forEach((Fe,$r)=>{Fe.type===6&&Fe.name==="style"&&Fe.value&&(_r.props[$r]={type:7,name:"bind",arg:createSimpleExpression("style",!0,Fe.loc),exp:parseInlineCSS(Fe.value.content,Fe.loc),modifiers:[],loc:Fe.loc})})},parseInlineCSS=(_r,Fe)=>{const $r=parseStringStyle(_r);return createSimpleExpression(JSON.stringify($r),!1,Fe,3)};function createDOMCompilerError(_r,Fe){return createCompilerError(_r,Fe)}const transformVHtml=(_r,Fe,$r)=>{const{exp:Fr,loc:jr}=_r;return Fr||$r.onError(createDOMCompilerError(53,jr)),Fe.children.length&&($r.onError(createDOMCompilerError(54,jr)),Fe.children.length=0),{props:[createObjectProperty(createSimpleExpression("innerHTML",!0,jr),Fr||createSimpleExpression("",!0))]}},transformVText=(_r,Fe,$r)=>{const{exp:Fr,loc:jr}=_r;return Fr||$r.onError(createDOMCompilerError(55,jr)),Fe.children.length&&($r.onError(createDOMCompilerError(56,jr)),Fe.children.length=0),{props:[createObjectProperty(createSimpleExpression("textContent",!0),Fr?getConstantType(Fr,$r)>0?Fr:createCallExpression($r.helperString(TO_DISPLAY_STRING),[Fr],jr):createSimpleExpression("",!0))]}},transformModel=(_r,Fe,$r)=>{const Fr=transformModel$1(_r,Fe,$r);if(!Fr.props.length||Fe.tagType===1)return Fr;_r.arg&&$r.onError(createDOMCompilerError(58,_r.arg.loc));const{tag:jr}=Fe,zr=$r.isCustomElement(jr);if(jr==="input"||jr==="textarea"||jr==="select"||zr){let Vr=V_MODEL_TEXT,Wr=!1;if(jr==="input"||zr){const Kr=findProp(Fe,"type");if(Kr){if(Kr.type===7)Vr=V_MODEL_DYNAMIC;else if(Kr.value)switch(Kr.value.content){case"radio":Vr=V_MODEL_RADIO;break;case"checkbox":Vr=V_MODEL_CHECKBOX;break;case"file":Wr=!0,$r.onError(createDOMCompilerError(59,_r.loc));break}}else hasDynamicKeyVBind(Fe)&&(Vr=V_MODEL_DYNAMIC)}else jr==="select"&&(Vr=V_MODEL_SELECT);Wr||(Fr.needRuntime=$r.helper(Vr))}else $r.onError(createDOMCompilerError(57,_r.loc));return Fr.props=Fr.props.filter(Vr=>!(Vr.key.type===4&&Vr.key.content==="modelValue")),Fr},isEventOptionModifier=makeMap("passive,once,capture"),isNonKeyModifier=makeMap("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),maybeKeyModifier=makeMap("left,right"),isKeyboardEvent=makeMap("onkeyup,onkeydown,onkeypress",!0),resolveModifiers=(_r,Fe,$r,Fr)=>{const jr=[],zr=[],Vr=[];for(let Wr=0;Wr<Fe.length;Wr++){const Kr=Fe[Wr];Kr==="native"&&checkCompatEnabled("COMPILER_V_ON_NATIVE",$r)||isEventOptionModifier(Kr)?Vr.push(Kr):maybeKeyModifier(Kr)?isStaticExp(_r)?isKeyboardEvent(_r.content)?jr.push(Kr):zr.push(Kr):(jr.push(Kr),zr.push(Kr)):isNonKeyModifier(Kr)?zr.push(Kr):jr.push(Kr)}return{keyModifiers:jr,nonKeyModifiers:zr,eventOptionModifiers:Vr}},transformClick=(_r,Fe)=>isStaticExp(_r)&&_r.content.toLowerCase()==="onclick"?createSimpleExpression(Fe,!0):_r.type!==4?createCompoundExpression(["(",_r,`) === "onClick" ? "${Fe}" : (`,_r,")"]):_r,transformOn=(_r,Fe,$r)=>transformOn$1(_r,Fe,$r,Fr=>{const{modifiers:jr}=_r;if(!jr.length)return Fr;let{key:zr,value:Vr}=Fr.props[0];const{keyModifiers:Wr,nonKeyModifiers:Kr,eventOptionModifiers:Gr}=resolveModifiers(zr,jr,$r,_r.loc);if(Kr.includes("right")&&(zr=transformClick(zr,"onContextmenu")),Kr.includes("middle")&&(zr=transformClick(zr,"onMouseup")),Kr.length&&(Vr=createCallExpression($r.helper(V_ON_WITH_MODIFIERS),[Vr,JSON.stringify(Kr)])),Wr.length&&(!isStaticExp(zr)||isKeyboardEvent(zr.content))&&(Vr=createCallExpression($r.helper(V_ON_WITH_KEYS),[Vr,JSON.stringify(Wr)])),Gr.length){const Yr=Gr.map(capitalize).join("");zr=isStaticExp(zr)?createSimpleExpression(`${zr.content}${Yr}`,!0):createCompoundExpression(["(",zr,`) + "${Yr}"`])}return{props:[createObjectProperty(zr,Vr)]}}),transformShow=(_r,Fe,$r)=>{const{exp:Fr,loc:jr}=_r;return Fr||$r.onError(createDOMCompilerError(61,jr)),{props:[],needRuntime:$r.helper(V_SHOW)}},ignoreSideEffectTags=(_r,Fe)=>{_r.type===1&&_r.tagType===0&&(_r.tag==="script"||_r.tag==="style")&&Fe.removeNode()},DOMNodeTransforms=[transformStyle],DOMDirectiveTransforms={cloak:noopDirectiveTransform,html:transformVHtml,text:transformVText,model:transformModel,on:transformOn,show:transformShow};function compile(_r,Fe={}){return baseCompile(_r,extend$1({},parserOptions,Fe,{nodeTransforms:[ignoreSideEffectTags,...DOMNodeTransforms,...Fe.nodeTransforms||[]],directiveTransforms:extend$1({},DOMDirectiveTransforms,Fe.directiveTransforms||{}),transformHoist:null}))}const compileCache=Object.create(null);function compileToFunction(_r,Fe){if(!isString$2(_r))if(_r.nodeType)_r=_r.innerHTML;else return NOOP;const $r=_r,Fr=compileCache[$r];if(Fr)return Fr;if(_r[0]==="#"){const Wr=document.querySelector(_r);_r=Wr?Wr.innerHTML:""}const jr=extend$1({hoistStatic:!0,onError:void 0,onWarn:NOOP},Fe);!jr.isCustomElement&&typeof customElements!="undefined"&&(jr.isCustomElement=Wr=>!!customElements.get(Wr));const{code:zr}=compile(_r,jr),Vr=new Function("Vue",zr)(runtimeDom);return Vr._rc=!0,compileCache[$r]=Vr}registerRuntimeCompiler(compileToFunction);var isVue2=!1;/*!
  * pinia v2.1.3
  * (c) 2023 Eduardo San Martin Morote
  * @license MIT
  */let activePinia;const setActivePinia=_r=>activePinia=_r,piniaSymbol=Symbol();function isPlainObject$2(_r){return _r&&typeof _r=="object"&&Object.prototype.toString.call(_r)==="[object Object]"&&typeof _r.toJSON!="function"}var MutationType;(function(_r){_r.direct="direct",_r.patchObject="patch object",_r.patchFunction="patch function"})(MutationType||(MutationType={}));function createPinia(){const _r=effectScope(!0),Fe=_r.run(()=>ref({}));let $r=[],Fr=[];const jr=markRaw({install(zr){setActivePinia(jr),jr._a=zr,zr.provide(piniaSymbol,jr),zr.config.globalProperties.$pinia=jr,Fr.forEach(Vr=>$r.push(Vr)),Fr=[]},use(zr){return!this._a&&!isVue2?Fr.push(zr):$r.push(zr),this},_p:$r,_a:null,_e:_r,_s:new Map,state:Fe});return jr}const noop$2=()=>{};function addSubscription(_r,Fe,$r,Fr=noop$2){_r.push(Fe);const jr=()=>{const zr=_r.indexOf(Fe);zr>-1&&(_r.splice(zr,1),Fr())};return!$r&&getCurrentScope()&&onScopeDispose(jr),jr}function triggerSubscriptions(_r,...Fe){_r.slice().forEach($r=>{$r(...Fe)})}const fallbackRunWithContext=_r=>_r();function mergeReactiveObjects(_r,Fe){_r instanceof Map&&Fe instanceof Map&&Fe.forEach(($r,Fr)=>_r.set(Fr,$r)),_r instanceof Set&&Fe instanceof Set&&Fe.forEach(_r.add,_r);for(const $r in Fe){if(!Fe.hasOwnProperty($r))continue;const Fr=Fe[$r],jr=_r[$r];isPlainObject$2(jr)&&isPlainObject$2(Fr)&&_r.hasOwnProperty($r)&&!isRef(Fr)&&!isReactive(Fr)?_r[$r]=mergeReactiveObjects(jr,Fr):_r[$r]=Fr}return _r}const skipHydrateSymbol=Symbol();function shouldHydrate(_r){return!isPlainObject$2(_r)||!_r.hasOwnProperty(skipHydrateSymbol)}const{assign:assign$1}=Object;function isComputed(_r){return!!(isRef(_r)&&_r.effect)}function createOptionsStore(_r,Fe,$r,Fr){const{state:jr,actions:zr,getters:Vr}=Fe,Wr=$r.state.value[_r];let Kr;function Gr(){Wr||($r.state.value[_r]=jr?jr():{});const Yr=toRefs($r.state.value[_r]);return assign$1(Yr,zr,Object.keys(Vr||{}).reduce((Qr,Jr)=>(Qr[Jr]=markRaw(computed(()=>{setActivePinia($r);const Zr=$r._s.get(_r);return Vr[Jr].call(Zr,Zr)})),Qr),{}))}return Kr=createSetupStore(_r,Gr,Fe,$r,Fr,!0),Kr}function createSetupStore(_r,Fe,$r={},Fr,jr,zr){let Vr;const Wr=assign$1({actions:{}},$r),Kr={deep:!0};let Gr,Yr,Qr=[],Jr=[],Zr;const tn=Fr.state.value[_r];!zr&&!tn&&(Fr.state.value[_r]={}),ref({});let en;function rn(cn){let fn;Gr=Yr=!1,typeof cn=="function"?(cn(Fr.state.value[_r]),fn={type:MutationType.patchFunction,storeId:_r,events:Zr}):(mergeReactiveObjects(Fr.state.value[_r],cn),fn={type:MutationType.patchObject,payload:cn,storeId:_r,events:Zr});const pn=en=Symbol();nextTick().then(()=>{en===pn&&(Gr=!0)}),Yr=!0,triggerSubscriptions(Qr,fn,Fr.state.value[_r])}const nn=zr?function(){const{state:fn}=$r,pn=fn?fn():{};this.$patch(hn=>{assign$1(hn,pn)})}:noop$2;function on(){Vr.stop(),Qr=[],Jr=[],Fr._s.delete(_r)}function un(cn,fn){return function(){setActivePinia(Fr);const pn=Array.from(arguments),hn=[],mn=[];function Sn(_n){hn.push(_n)}function vn(_n){mn.push(_n)}triggerSubscriptions(Jr,{args:pn,name:cn,store:sn,after:Sn,onError:vn});let bn;try{bn=fn.apply(this&&this.$id===_r?this:sn,pn)}catch(_n){throw triggerSubscriptions(mn,_n),_n}return bn instanceof Promise?bn.then(_n=>(triggerSubscriptions(hn,_n),_n)).catch(_n=>(triggerSubscriptions(mn,_n),Promise.reject(_n))):(triggerSubscriptions(hn,bn),bn)}}const an={_p:Fr,$id:_r,$onAction:addSubscription.bind(null,Jr),$patch:rn,$reset:nn,$subscribe(cn,fn={}){const pn=addSubscription(Qr,cn,fn.detached,()=>hn()),hn=Vr.run(()=>watch(()=>Fr.state.value[_r],mn=>{(fn.flush==="sync"?Yr:Gr)&&cn({storeId:_r,type:MutationType.direct,events:Zr},mn)},assign$1({},Kr,fn)));return pn},$dispose:on},sn=reactive(an);Fr._s.set(_r,sn);const dn=Fr._a&&Fr._a.runWithContext||fallbackRunWithContext,ln=Fr._e.run(()=>(Vr=effectScope(),dn(()=>Vr.run(Fe))));for(const cn in ln){const fn=ln[cn];if(isRef(fn)&&!isComputed(fn)||isReactive(fn))zr||(tn&&shouldHydrate(fn)&&(isRef(fn)?fn.value=tn[cn]:mergeReactiveObjects(fn,tn[cn])),Fr.state.value[_r][cn]=fn);else if(typeof fn=="function"){const pn=un(cn,fn);ln[cn]=pn,Wr.actions[cn]=fn}}return assign$1(sn,ln),assign$1(toRaw(sn),ln),Object.defineProperty(sn,"$state",{get:()=>Fr.state.value[_r],set:cn=>{rn(fn=>{assign$1(fn,cn)})}}),Fr._p.forEach(cn=>{assign$1(sn,Vr.run(()=>cn({store:sn,app:Fr._a,pinia:Fr,options:Wr})))}),tn&&zr&&$r.hydrate&&$r.hydrate(sn.$state,tn),Gr=!0,Yr=!0,sn}function defineStore(_r,Fe,$r){let Fr,jr;const zr=typeof Fe=="function";typeof _r=="string"?(Fr=_r,jr=zr?$r:Fe):(jr=_r,Fr=_r.id);function Vr(Wr,Kr){const Gr=hasInjectionContext();return Wr=Wr||(Gr?inject(piniaSymbol,null):null),Wr&&setActivePinia(Wr),Wr=activePinia,Wr._s.has(Fr)||(zr?createSetupStore(Fr,Fe,jr,Wr):createOptionsStore(Fr,jr,Wr)),Wr._s.get(Fr)}return Vr.$id=Fr,Vr}function storeToRefs(_r){{_r=toRaw(_r);const Fe={};for(const $r in _r){const Fr=_r[$r];(isRef(Fr)||isReactive(Fr))&&(Fe[$r]=toRef(_r,$r))}return Fe}}const _hoisted_1$t={class:"relative"},_hoisted_2$r={key:0,class:"c--sign-up-button mt-4 lg:mt-0 tracking-widest uppercase h-[60px] w-[186px] pl-6 flex items-center font-header",type:"submit"},_hoisted_3$n={key:1,class:"flex-shrink-0 border border-green bg-green text-white border-2 tracking-widest uppercase px-6 py-2 flex items-center font-header",type:"submit"},_sfc_main$x={__name:"NotifyList",props:{style:String},setup(_r){const Fe=_r;ref(!1);const $r=ref(""),Fr=ref(null),jr=ref(null);onMounted(()=>{});const zr=()=>{let Vr=new FormData(Fr.value);Vr.append(csrfTokenName,csrfTokenValue),gsapWithCSS.to(Fr.value,{height:0,onComplete:function(){}}),fetch("/mailchimp/send",{method:"post",body:Vr}).then(Wr=>Wr.json()).then(Wr=>{jr.value.classList.remove("hidden"),gsapWithCSS.to(jr.value,{opacity:1}),setTimeout(function(){Fr.value.reset(),jr.value.classList.add("hidden"),gsapWithCSS.to(Fr.value,{height:"auto"})},2e3)})};return(Vr,Wr)=>(openBlock(),createElementBlock("div",_hoisted_1$t,[createBaseVNode("form",{class:normalizeClass([[Fe.style=="home"?"mt-10 flex-wrap":"flex-wrap md:flex-nowrap"],"overflow-hidden flex justify-end lg:justify-between items-center"]),method:"post",ref_key:"form",ref:Fr,onSubmit:Wr[1]||(Wr[1]=withModifiers(Kr=>zr(),["prevent"]))},[withDirectives(createBaseVNode("input",{placeholder:"email",required:"",name:"email","onUpdate:modelValue":Wr[0]||(Wr[0]=Kr=>$r.value=Kr),"aria-label":"Email address",class:normalizeClass([[Fe.style=="home"?"w-full lg:w-[50%] focus:border-white":"flex-grow focus:border-green sm:mr-4"],"placeholder:text-black placeholder:text-opacity-60 bg-transparent tracking-widest uppercase focus:outline-none px-4 font-header border-2 border-black py-2"]),type:"email"},null,2),[[vModelText,$r.value]]),Fe.style=="home"?(openBlock(),createElementBlock("button",_hoisted_2$r,"Sign-up ")):createCommentVNode("",!0),Fe.style=="normal"?(openBlock(),createElementBlock("button",_hoisted_3$n,"Sign-up ")):createCommentVNode("",!0)],34),createBaseVNode("span",{class:"hidden opacity-0 text-r26 absolute top-1/2 left-1/2 transform -translate-y-1/2 -translate-x-1/2",ref_key:"thankyou",ref:jr},"Thank you!",512)]))}},bus=ref(new Map);function useEventsBus(){function _r(Fe,...$r){bus.value.set(Fe,$r)}return{emit:_r,bus}}const{emit}=useEventsBus(),useCartStore=defineStore("cart",{state:()=>({cart:[],giftWraps:[],stamps:[],orderMessage:""}),getters:{getCart(_r){return _r.cart}},actions:{setCart(_r,Fe){this.cart=_r;let $r=[],Fr=[];_r.cartItems.forEach(function(jr,zr){$r[jr.id]=jr.giftWrap=="YES",Fr[jr.id]=jr.stamp=="YES"}),this.giftWraps=$r,this.orderMessage=_r.cartInfo.orderMessage,this.stamps=Fr,Fe&&emit("updateMinicart",!0)},refreshCart(_r){let Fe=this;return fetch("/actions/commerce/cart/get-cart",{method:"get",headers:{"Content-type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"}}).then($r=>$r.json()).then($r=>{Fe.cart=$r.cart.extra;let Fr=[],jr=[];$r.cart.extra.cartItems.forEach(function(zr,Vr){Fr[zr.id]=zr.giftWrap=="YES",jr[zr.id]=zr.stamp=="YES"}),Fe.giftWraps=Fr,Fe.stamps=jr,Fe.orderMessage=Fe.cart.cartInfo.orderMessage,_r&&emit("updateMinicart",!0)})},removeItem(_r){delete messages[_r],delete giftWraps[_r],delete stamps[_r]},sendPurchaseDataLayer(_r,Fe){dataLayer.push({ecommerce:null}),dataLayer.push({event:_r,ecommerce:{transaction_id:Fe.transaction_id,value:Fe.value,tax:Fe.tax,shipping:Fe.shipping,currency:"EUR",items:Fe.items}})},sendAddToCartDataLayer(_r,Fe,$r,Fr){dataLayer.push({ecommerce:null});let jr={item_name:Fe.title,item_category:Fe.type,item_category2:Fe.category,item_list_name:window.location.pathname,index:Fe.index,quantity:1};if($r.length>1&&Fr!==0){let zr=$r.find(Vr=>Vr.id===Fr);jr.item_id=zr.sku,jr.item_variant=Fe.title+" - "+zr.title,jr.price=zr.price}else jr.item_id=Fe.sku,jr.price=Fe.price;dataLayer.push({event:_r,ecommerce:{currency:"EUR",value:Fe.price,items:[jr]}})},sendDataLayer(_r){dataLayer.push({ecommerce:null});let Fe=[];this.cart.cartItems.forEach(function($r,Fr){Fe.push({item_name:$r.title,quantity:$r.qty,price:$r.price,item_id:$r.isbn,item_variant:$r.title})}),dataLayer.push({event:_r,ecommerce:{currency:"EUR",value:this.cart.cartInfo.total,items:Fe}})}}}),_hoisted_1$s={key:0,class:"font-header tracking-widest text-[16px] uppercase p-2 border text-center italic px-4 mt-2 block w-full"},_hoisted_2$q={key:1},_hoisted_3$m={key:0},_hoisted_4$m={class:"uppercase font-header tracking-widest text-[14px] mb-2"},_hoisted_5$l={class:"flex -mx-1 mb-2 flex-wrap"},_hoisted_6$k={class:"mb-2"},_hoisted_7$f=["disabled","onClick"],_hoisted_8$g={class:"flex font-header uppercase justify-center items-center rounded-full border border-black text-28 w-12 h-12"},_hoisted_9$e=["href"],_hoisted_10$e=["disabled"],_hoisted_11$d={key:0,class:"text-black"},_hoisted_12$d={key:1},_hoisted_13$c=createBaseVNode("img",{class:"w-full h-full object-contain p-2",src:"/img/loader-spin.svg",alt:"Adding"},null,-1),_hoisted_14$a=[_hoisted_13$c],_hoisted_15$9={key:3,class:"top-0 left-0 absolute w-full h-full bg-green-lighter text-white flex items-center justify-center"},_hoisted_16$9={key:3,class:"text-red mt-2"},_sfc_main$w={__name:"AddToCart",props:{variants:Array,showVariants:Boolean,variantType:String,isBundle:Boolean,bundleItemsIds:Array,bundleId:Number,style:String,outOfStock:Boolean,preorder:Boolean,hideIcon:Boolean,url:String,textSelect:String,dataLayer:Object},setup(_r){const Fe=_r,$r=useCartStore(),Fr=ref(!1),jr=ref(!1),zr=ref(!1),Vr=ref(""),Wr=ref(0),Kr=Jr=>{Wr.value=Jr};onMounted(()=>{Fe.showVariants||(Wr.value=Fe.variants[0].id)});const Gr=computed(()=>jr.value?"bg-green-lighter":Fe.preorder?"bg-yellow text-white ":"bg-green text-white"),Yr=()=>{let Jr={};if(Fr.value=!0,Fe.isBundle){let Zr=[];Fe.bundleItemsIds.forEach(function(tn){Zr.push({id:tn,qty:1,options:{bundles:Fe.bundleId}})}),Jr={purchasables:Zr,fields:{bundles:[Fe.bundleId]}}}else Jr={purchasableId:Wr.value,qty:1};Jr[csrfTokenName]=csrfTokenValue,fetch("?action=commerce/cart/update-cart",{method:"post",headers:{"Content-type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify(Jr)}).then(Zr=>Zr.json()).then(Zr=>{Fr.value=!1,Zr.errors!==void 0?(zr.value=!0,Object.keys(Zr.errors)[0].includes("qty")&&(Vr.value="You have reached the maximum quantity for this item."),Object.keys(Zr.errors)[0].includes("totalWeight")&&(Vr.value=Zr.errors.totalWeight[0])):Zr.status==400?(zr.value=!0,Vr.value="Please refresh the page and try again."):($r.setCart(Zr.cart.extra,!0),Qr(Wr.value),jr.value=!0)})},Qr=(Jr=0)=>{$r.sendAddToCartDataLayer("add_to_cart",Fe.dataLayer,Fe.variants,Jr)};return(Jr,Zr)=>_r.outOfStock?(openBlock(),createElementBlock("div",_hoisted_1$s," Out of stock ")):(openBlock(),createElementBlock("div",_hoisted_2$q,[_r.showVariants&&Fe.style=="normal"?(openBlock(),createElementBlock("div",_hoisted_3$m,[createBaseVNode("div",_hoisted_4$m,"Please select a "+toDisplayString(_r.variantType),1),createBaseVNode("div",_hoisted_5$l,[(openBlock(!0),createElementBlock(Fragment,null,renderList(_r.variants,tn=>(openBlock(),createElementBlock("div",_hoisted_6$k,[createBaseVNode("button",{disabled:tn.isAvailable==!1,onClick:en=>Kr(tn.id),class:normalizeClass(["rounded-full mx-1",[tn.isAvailable==!1?"cursor-not-allowed opacity-40":"cursor-pointer",Wr.value==tn.id?"border-black bg-green text-white":"border-transparent"]])},[createBaseVNode("div",_hoisted_8$g,toDisplayString(tn.title),1)],10,_hoisted_7$f)]))),256))])])):createCommentVNode("",!0),_r.showVariants&&Fe.style=="small"?(openBlock(),createElementBlock("a",{key:1,class:"w-full block mt-2 px-2 text-center text-[13px] md:text-[16px] font-header uppercase tracking-widest bg-green flex flex-grow justify-center items-center relative py-2 bg-opacity-90 hover:bg-opacity-100 text-white min-h-[38px] md:min-h-[42px]",href:_r.url},toDisplayString(_r.textSelect),9,_hoisted_9$e)):(openBlock(),createElementBlock("button",{key:2,disabled:Wr.value==0,onClick:Yr,class:normalizeClass(["mt-2 w-full",[Wr.value==0?"cursor-not-allowed opacity-60":"cursor-pointer",_r.style=="normal"?"":"flex justify-center items-center"]])},[createBaseVNode("div",{class:normalizeClass(["flex flex-grow justify-center items-center relative py-2 font-header inline-block bg-opacity-90 hover:bg-opacity-100 uppercase tracking-widest",[_r.style=="normal"?Gr.value+"  px-6":Gr.value+" text-[13px] md:text-[16px] px-2 bg-opacity-90 hover:bg-opacity-100  group border border-transparent"]])},[createBaseVNode("img",{width:"24",height:"20",class:normalizeClass(["w-6 mr-3 shrink-0 block",[_r.preorder?"":"invert"]]),src:"/img/cart.svg",alt:"Cart icon"},null,2),_r.preorder?(openBlock(),createElementBlock("span",_hoisted_11$d,"Pre-order")):(openBlock(),createElementBlock("span",_hoisted_12$d,"Add to cart")),Fr.value?(openBlock(),createElementBlock("span",{key:2,class:normalizeClass([Gr.value,"top-0 left-0 absolute w-full h-full flex items-center justify-center"])},_hoisted_14$a,2)):createCommentVNode("",!0),jr.value?(openBlock(),createElementBlock("span",_hoisted_15$9,"Added!")):createCommentVNode("",!0)],2)],10,_hoisted_10$e)),zr.value?(openBlock(),createElementBlock("div",_hoisted_16$9,"We could not add this article to your cart. "+toDisplayString(Vr.value),1)):createCommentVNode("",!0)]))}},_hoisted_1$r={class:"relative group py-5 pl-10"},_hoisted_2$p={href:"/shop/cart",class:"relative text-lg cursor-pointer rounded-lg"},_hoisted_3$l={key:0,class:"uppercase tracking-widest font-header absolute -mr-3 -mt-3 right-0 top-0 py-1 px-2 rounded-full text-white text-xs bg-black"},_hoisted_4$l=createBaseVNode("img",{src:"/img/cart.svg",alt:"Cart icon",class:"w-6"},null,-1),_hoisted_5$k={class:"p-4"},_hoisted_6$j={key:0,class:"w-full text-r22 whitespace-nowrap"},_hoisted_7$e={key:1},_hoisted_8$f={class:"col-span-1 min-h-[100px]"},_hoisted_9$d=["src","alt"],_hoisted_10$d={class:"leading-[1.1] col-span-2"},_hoisted_11$c={class:"mb-2 text-[18px]"},_hoisted_12$c={key:0,class:"uppercase text-[13px]"},_hoisted_13$b={key:1,class:"uppercase text-[13px]"},_hoisted_14$9={class:"uppercase mt-2 font-header text-[13px] tracking-widest"},_hoisted_15$8=createBaseVNode("span",{class:"lowercase"},"x",-1),_hoisted_16$8={key:0,class:"bg-light bg-opacity-30 p-4 border-t border-color-green"},_hoisted_17$8={class:"mb-4 tracking-widest flex justify-between uppercase font-header text-[19px]"},_hoisted_18$8=createBaseVNode("span",null,"Total",-1),_hoisted_19$8=createBaseVNode("a",{class:"block text-[14px] uppercase tracking-widest font-header border-2 py-2 px-20 hover:bg-green hover:text-white hover:border-green",href:"/shop/cart"},"Checkout",-1),_sfc_main$v={__name:"MiniCart",setup(_r){const{bus:Fe,emit:$r}=useEventsBus(),Fr=useCartStore(),jr=ref(null);onMounted(()=>{zr()}),watch(()=>Fe.value.get("updateMinicart"),Wr=>{Vr()});const zr=Wr=>{Fr.refreshCart()},Vr=()=>{gsapWithCSS.set(jr.value,{opacity:0}),jr.value.classList.remove("hidden"),gsapWithCSS.to(jr.value,{opacity:1}),setTimeout(function(){gsapWithCSS.to(jr.value,{opacity:0,onComplete:function(){jr.value.classList.add("hidden"),gsapWithCSS.set(jr.value,{opacity:1})}})},2e3)};return(Wr,Kr)=>{var Gr,Yr,Qr,Jr;return openBlock(),createElementBlock("div",_hoisted_1$r,[createBaseVNode("a",_hoisted_2$p,[unref(Fr).getCart.cartInfo?(openBlock(),createElementBlock("span",_hoisted_3$l,toDisplayString((Gr=unref(Fr).getCart.cartInfo)==null?void 0:Gr.length),1)):createCommentVNode("",!0),_hoisted_4$l]),createBaseVNode("div",{ref_key:"dropDown",ref:jr,class:normalizeClass(["hidden group-hover:block z-20 bg-white border-2 absolute right-0 bottom-0 translate-y-full border-t-0",{block:Vr}])},[createBaseVNode("div",_hoisted_5$k,[((Yr=unref(Fr).getCart.cartInfo)==null?void 0:Yr.length)==0?(openBlock(),createElementBlock("div",_hoisted_6$j," Your cart is empty ")):(openBlock(),createElementBlock("div",_hoisted_7$e,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Fr).getCart.cartItems,Zr=>(openBlock(),createElementBlock("div",{key:Zr.id,class:"grid grid-cols-3 gap-x-2 font-base mb-4"},[createBaseVNode("div",_hoisted_8$f,[createBaseVNode("img",{class:"lazyload",onerror:"this.src='/img/book-placeholder.png'",src:Zr.img,alt:Zr.title},null,8,_hoisted_9$d)]),createBaseVNode("div",_hoisted_10$d,[createBaseVNode("div",_hoisted_11$c,toDisplayString(Zr.title),1),Zr.author!=0?(openBlock(),createElementBlock("div",_hoisted_12$c,toDisplayString(Zr.author),1)):createCommentVNode("",!0),Zr.variant!=0?(openBlock(),createElementBlock("div",_hoisted_13$b,toDisplayString(Zr.variant),1)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_14$9,[createTextVNode(toDisplayString(Zr.qty)+" ",1),_hoisted_15$8,createTextVNode(" "+toDisplayString(Zr.price)+" \u20AC ",1)])])]))),128))]))]),((Qr=unref(Fr).getCart.cartInfo)==null?void 0:Qr.length)!==0?(openBlock(),createElementBlock("div",_hoisted_16$8,[createBaseVNode("div",_hoisted_17$8,[_hoisted_18$8,createTextVNode(),createBaseVNode("span",null,toDisplayString((Jr=unref(Fr).getCart.cartInfo)==null?void 0:Jr.totalItems.toFixed(2))+" \u20AC",1)]),_hoisted_19$8])):createCommentVNode("",!0)],2)])}}},_hoisted_1$q={class:"relative"},_hoisted_2$o={href:"/shop/cart",class:"relative text-lg cursor-pointer rounded-lg"},_hoisted_3$k={key:0,class:"uppercase tracking-widest font-header absolute -mr-5 -mt-4 right-0 top-0 py-1 px-2 rounded-full text-white text-xs bg-black"},_hoisted_4$k=createBaseVNode("img",{src:"/img/cart.svg",alt:"Cart icon",class:"w-6"},null,-1),_sfc_main$u={__name:"TinyCart",setup(_r){const Fe=useCartStore();return ref(null),($r,Fr)=>{var jr;return openBlock(),createElementBlock("div",_hoisted_1$q,[createBaseVNode("a",_hoisted_2$o,[unref(Fe).getCart.cartInfo?(openBlock(),createElementBlock("span",_hoisted_3$k,toDisplayString((jr=unref(Fe).getCart.cartInfo)==null?void 0:jr.length),1)):createCommentVNode("",!0),_hoisted_4$k])])}}};var FUNC_ERROR_TEXT="Expected a function",NAN=0/0,symbolTag="[object Symbol]",reTrim=/^\s+|\s+$/g,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt,freeGlobal=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),objectProto=Object.prototype,objectToString=objectProto.toString,nativeMax=Math.max,nativeMin=Math.min,now$1=function(){return root.Date.now()};function debounce$3(_r,Fe,$r){var Fr,jr,zr,Vr,Wr,Kr,Gr=0,Yr=!1,Qr=!1,Jr=!0;if(typeof _r!="function")throw new TypeError(FUNC_ERROR_TEXT);Fe=toNumber(Fe)||0,isObject$4($r)&&(Yr=!!$r.leading,Qr="maxWait"in $r,zr=Qr?nativeMax(toNumber($r.maxWait)||0,Fe):zr,Jr="trailing"in $r?!!$r.trailing:Jr);function Zr(dn){var ln=Fr,cn=jr;return Fr=jr=void 0,Gr=dn,Vr=_r.apply(cn,ln),Vr}function tn(dn){return Gr=dn,Wr=setTimeout(nn,Fe),Yr?Zr(dn):Vr}function en(dn){var ln=dn-Kr,cn=dn-Gr,fn=Fe-ln;return Qr?nativeMin(fn,zr-cn):fn}function rn(dn){var ln=dn-Kr,cn=dn-Gr;return Kr===void 0||ln>=Fe||ln<0||Qr&&cn>=zr}function nn(){var dn=now$1();if(rn(dn))return on(dn);Wr=setTimeout(nn,en(dn))}function on(dn){return Wr=void 0,Jr&&Fr?Zr(dn):(Fr=jr=void 0,Vr)}function un(){Wr!==void 0&&clearTimeout(Wr),Gr=0,Fr=Kr=jr=Wr=void 0}function an(){return Wr===void 0?Vr:on(now$1())}function sn(){var dn=now$1(),ln=rn(dn);if(Fr=arguments,jr=this,Kr=dn,ln){if(Wr===void 0)return tn(Kr);if(Qr)return Wr=setTimeout(nn,Fe),Zr(Kr)}return Wr===void 0&&(Wr=setTimeout(nn,Fe)),Vr}return sn.cancel=un,sn.flush=an,sn}function isObject$4(_r){var Fe=typeof _r;return!!_r&&(Fe=="object"||Fe=="function")}function isObjectLike$1(_r){return!!_r&&typeof _r=="object"}function isSymbol(_r){return typeof _r=="symbol"||isObjectLike$1(_r)&&objectToString.call(_r)==symbolTag}function toNumber(_r){if(typeof _r=="number")return _r;if(isSymbol(_r))return NAN;if(isObject$4(_r)){var Fe=typeof _r.valueOf=="function"?_r.valueOf():_r;_r=isObject$4(Fe)?Fe+"":Fe}if(typeof _r!="string")return _r===0?_r:+_r;_r=_r.replace(reTrim,"");var $r=reIsBinary.test(_r);return $r||reIsOctal.test(_r)?freeParseInt(_r.slice(2),$r?2:8):reIsBadHex.test(_r)?NAN:+_r}var lodash_debounce=debounce$3;const _sfc_main$t={__name:"CartSummaryItem",props:["label","text","small","inOrder","fade"],setup(_r){return(Fe,$r)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["flex justify-between border-b-2 pr-4 font-header uppercase tracking-widest",[_r.inOrder?"pl-2":"xl:pr-0 md:pl-4 lg:pl-8"]])},[createBaseVNode("div",{class:normalizeClass([[_r.small||_r.inOrder?"text-[14px] py-2":"text-[18px] py-4",_r.fade?" opacity-60":""],"flex-grow max-w-[70%]"])},toDisplayString(_r.label),3),createBaseVNode("div",{class:normalizeClass(["text-right flex-shrink-none",[_r.small||_r.inOrder?"text-[14px] py-2":"text-[18px] py-4",_r.fade?" opacity-60":""]])},[renderSlot(Fe.$slots,"default")],2)],2))}},_hoisted_1$p=createBaseVNode("span",{class:"font-base"},"\u20AC",-1),_hoisted_2$n=createBaseVNode("span",{class:"font-base"},"\u20AC",-1),_hoisted_3$j=createBaseVNode("span",{class:"font-base"},"\u20AC",-1),_hoisted_4$j={key:0},_hoisted_5$j=createBaseVNode("span",{class:"font-base"},"\u20AC",-1),_hoisted_6$i={key:1},_hoisted_7$d={key:3},_hoisted_8$e={key:0},_hoisted_9$c={key:1},_hoisted_10$c=createBaseVNode("span",{class:"font-base"},"\u20AC",-1),_sfc_main$s={__name:"CartSummary",props:["cart","inOrder"],setup(_r){const Fe=_r,$r=computed(()=>{let Fr="Tax",jr=0;return Fe.cart.cartInfo.adjustments.forEach(zr=>{zr.type=="tax"&&zr.amount>0&&(zr.name.includes("Shipping VAT")&&(Fr=zr.name.split(" ")[0]),jr+=zr.amount)}),{name:Fr,amount:jr.toFixed(2)}});return(Fr,jr)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(_sfc_main$t,{"in-order":_r.inOrder,label:"Subtotal"},{default:withCtx(()=>[createTextVNode(toDisplayString(_r.cart.cartInfo.itemTotalAsCurrency.toFixed(2))+" ",1),_hoisted_1$p]),_:1},8,["in-order"]),_r.cart.cartInfo.discountAdjustments!==0?(openBlock(),createBlock(_sfc_main$t,{key:0,"in-order":_r.inOrder,label:"Adjustments"},{default:withCtx(()=>[createTextVNode(toDisplayString(_r.cart.cartInfo.discountAdjustments.toFixed(2))+" ",1),_hoisted_2$n]),_:1},8,["in-order"])):createCommentVNode("",!0),_r.cart.shippingMethods.selectedShippingMethod&&_r.cart.cartInfo.orderType?(openBlock(),createBlock(_sfc_main$t,{key:1,"in-order":_r.inOrder,label:"Shipping",text:_r.cart.cartInfo.totalShippingCostAsCurrency},{default:withCtx(()=>[createTextVNode(toDisplayString(_r.cart.cartInfo.totalShippingCostAsCurrency.toFixed(2))+" ",1),_hoisted_3$j]),_:1},8,["in-order","text"])):(openBlock(),createBlock(_sfc_main$t,{key:2,"in-order":_r.inOrder,label:"Shipping"},{default:withCtx(()=>[createTextVNode("TBC ")]),_:1},8,["in-order"])),createVNode(_sfc_main$t,{"in-order":_r.inOrder,label:"Total"},{default:withCtx(()=>[_r.cart.shippingMethods.selectedShippingMethod&&_r.cart.cartInfo.orderType?(openBlock(),createElementBlock("div",_hoisted_4$j,[createTextVNode(toDisplayString(_r.cart.cartInfo.total.toFixed(2))+" ",1),_hoisted_5$j])):(openBlock(),createElementBlock("div",_hoisted_6$i,"TBC"))]),_:1},8,["in-order"]),_r.cart.shippingMethods.selectedShippingMethod&&_r.cart.cartInfo.orderType?(openBlock(),createElementBlock("div",_hoisted_7$d,[_r.cart.cartInfo.hasPositiveAdjustments?(openBlock(),createElementBlock("div",_hoisted_8$e,[createVNode(_sfc_main$t,{"in-order":_r.inOrder,fade:!0,small:!0,label:$r.value.name+" VAT (Included)"},{default:withCtx(()=>[createTextVNode(toDisplayString($r.value.amount)+" \u20AC ",1)]),_:1},8,["in-order","label"])])):(openBlock(),createElementBlock("div",_hoisted_9$c,[_r.cart.cartInfo.shippingAddressIsDefined?(openBlock(),createBlock(_sfc_main$t,{key:0,"in-order":_r.inOrder,small:!0,fade:!0,label:_r.cart.cartInfo.totalTaxIncluded==0?"Tax":"Tax (included)"},{default:withCtx(()=>[createTextVNode(toDisplayString(_r.cart.cartInfo.totalTaxIncludedAsCurrency.toFixed(2))+" ",1),_hoisted_10$c]),_:1},8,["in-order","label"])):createCommentVNode("",!0)]))])):createCommentVNode("",!0)],64))}};var _export_sfc$1=(_r,Fe)=>{const $r=_r.__vccOpts||_r;for(const[Fr,jr]of Fe)$r[Fr]=jr;return $r};const _sfc_main$r={},_hoisted_1$o={class:"flex justify-between border-b-2 md:pl-4 lg:pl-8 font-header uppercase tracking-widest"},_hoisted_2$m=createBaseVNode("div",{class:"h-6 bg-light w-full"},null,-1),_hoisted_3$i=[_hoisted_2$m],_hoisted_4$i=createBaseVNode("div",{class:"h-6 bg-light w-full"},null,-1),_hoisted_5$i=[_hoisted_4$i];function _sfc_render$3(_r,Fe){return openBlock(),createElementBlock(Fragment,null,renderList(4,$r=>createBaseVNode("div",_hoisted_1$o,[createBaseVNode("div",{class:normalizeClass([[_r.small||_r.inOrder?"text-[14px] py-2":"text-[18px] py-4",_r.fade?" opacity-60":""],"flex-grow max-w-[70%]"])},_hoisted_3$i,2),createBaseVNode("div",{class:normalizeClass(["text-right flex-shrink-none w-20",[_r.small||_r.inOrder?"text-[14px] py-2":"text-[18px] py-4",_r.fade?" opacity-60":""]])},_hoisted_5$i,2)])),64)}var CartSummaryPlaceholder=_export_sfc$1(_sfc_main$r,[["render",_sfc_render$3]]);const _hoisted_1$n={class:"flex flex-grow md:pr-4 pb-8"},_hoisted_2$l={class:"mr-4 lg:mr-8 w-[150px] flex flex-col justify-between"},_hoisted_3$h=["innerHTML"],_hoisted_4$h=["onClick"],_hoisted_5$h=createBaseVNode("img",{class:"w-5",src:"/img/cart-cross.svg",alt:"Remove"},null,-1),_hoisted_6$h=[_hoisted_5$h],_hoisted_7$c={class:"flex-grow"},_hoisted_8$d={class:"text-r32 xl:text-r38 mb-3"},_hoisted_9$b={key:0,class:"w-full text-red text-r22 mt-2"},_hoisted_10$b={key:1,class:"uppercase text-r22 mb-2"},_hoisted_11$b={key:2,class:"uppercase text-r22 mb-2"},_hoisted_12$b={key:3,class:"uppercase font-header text-[14px] tracking-widest mt-4"},_hoisted_13$a={key:4,class:"w-full text-red text-r22 mt-2"},_hoisted_14$8={class:"w-full md:w-auto mt-4 md:mt-0 md:border-l-2"},_hoisted_15$7={class:"grid grid-cols-3 font-header tracking-widest border-b-2"},_hoisted_16$7={class:"px-3 pb-6 border-r-2"},_hoisted_17$7=createBaseVNode("div",{class:"mb-6 uppercase text-[16px]"},"Price",-1),_hoisted_18$7={class:"text-r22"},_hoisted_19$7=createBaseVNode("span",{class:"font-base"},"\u20AC",-1),_hoisted_20$6={class:"px-3 pb-6 border-r-2"},_hoisted_21$5=["for"],_hoisted_22$5={class:"text-r22 flex rounded-full px-2"},_hoisted_23$5=["onClick"],_hoisted_24$5={class:"ml-3 mr-0"},_hoisted_25$5=["id","onChange","value"],_hoisted_26$5=["onClick"],_hoisted_27$4={class:"px-3 pb-6"},_hoisted_28$4=createBaseVNode("div",{class:"mb-6 uppercase text-[16px]"},"Total",-1),_hoisted_29$2={class:"flex items-center"},_hoisted_30$2={class:"mr-3 text-r22"},_hoisted_31$2=createBaseVNode("span",{class:"font-base"},"\u20AC",-1),_hoisted_32$2={class:"pt-8"},_hoisted_33$2={key:0,class:"px-4 pb-4 text-[16px] uppercase tracking-widest font-header"},_hoisted_34$2=["id","onUpdate:modelValue"],_hoisted_35$2=["for"],_hoisted_36$2={key:1,class:"px-4 pb-8 text-[16px] uppercase tracking-widest font-header"},_hoisted_37$2=["id","onUpdate:modelValue"],_hoisted_38$2=["for"],_sfc_main$q={__name:"CartItems",props:{cart:Object,orderMessage:{type:String,default:""},giftWraps:Object,stamps:Object,highlightAlone:Boolean},setup(_r,{emit:Fe}){const $r=_r;ref(!1);const Fr=ref($r.orderMessage),jr=ref($r.giftWraps),zr=ref($r.stamps);onMounted(()=>{});const Vr=(Wr,Kr)=>{console.log("changed");const Gr=parseInt(Wr.target.value,10);console.log(Gr),isNaN(Gr)||Fe("changeQuantity",{product:Kr,amount:Gr-Kr.qty})};return watch(()=>$r.orderMessage,(Wr,Kr)=>{Fr.value=Wr}),watch(()=>$r.giftWraps,(Wr,Kr)=>{jr.value=Wr}),watch(()=>$r.stamps,(Wr,Kr)=>{zr.value=Wr}),(Wr,Kr)=>(openBlock(!0),createElementBlock(Fragment,null,renderList(_r.cart.cartItems,(Gr,Yr)=>(openBlock(),createElementBlock("div",{class:normalizeClass([[Yr!=_r.cart.cartItems.length-1?"mb-12":""],"md:grid md:grid-cols-2 md:border-r-2 border-b-2"])},[createBaseVNode("div",_hoisted_1$n,[createBaseVNode("div",_hoisted_2$l,[createBaseVNode("div",{innerHTML:Gr.imgHtml,class:"mr-4 lg:mr-8 w-[150px]"},null,8,_hoisted_3$h),createBaseVNode("button",{class:"text-r22 shrink-0 mt-2",onClick:Qr=>Wr.$emit("remove",{id:Gr.id})},_hoisted_6$h,8,_hoisted_4$h)]),createBaseVNode("div",_hoisted_7$c,[createBaseVNode("div",_hoisted_8$d,toDisplayString(Gr.title),1),_r.highlightAlone&&Gr.needsToBeAlone?(openBlock(),createElementBlock("div",_hoisted_9$b,"This item needs to be ordered on its own. ")):createCommentVNode("",!0),Gr.author!=0?(openBlock(),createElementBlock("div",_hoisted_10$b,toDisplayString(Gr.author),1)):createCommentVNode("",!0),Gr.variant!=0?(openBlock(),createElementBlock("div",_hoisted_11$b,toDisplayString(Gr.variant),1)):createCommentVNode("",!0),Gr.isbn!=0?(openBlock(),createElementBlock("div",_hoisted_12$b,"ISBN: "+toDisplayString(Gr.isbn),1)):createCommentVNode("",!0),Gr.publicationDate!=0?(openBlock(),createElementBlock("div",_hoisted_13$a,"This item will be published on "+toDisplayString(Gr.publicationDate),1)):createCommentVNode("",!0)])]),createBaseVNode("div",_hoisted_14$8,[createBaseVNode("div",_hoisted_15$7,[createBaseVNode("div",_hoisted_16$7,[_hoisted_17$7,createBaseVNode("span",_hoisted_18$7,[createTextVNode(toDisplayString(Gr.price)+" ",1),_hoisted_19$7])]),createBaseVNode("div",_hoisted_20$6,[createBaseVNode("label",{for:"quantity"+Gr.id,class:"block mb-6 uppercase text-[16px]"},"Quantity",8,_hoisted_21$5),createBaseVNode("div",_hoisted_22$5,[createBaseVNode("button",{onClick:Qr=>Wr.$emit("changeQuantity",{product:Gr,amount:-1}),class:""},"\u2013",8,_hoisted_23$5),createBaseVNode("div",_hoisted_24$5,[createBaseVNode("input",{id:"quantity"+Gr.id,onChange:Qr=>Vr(Qr,Gr),class:"text-center max-w-[45px]",type:"number",value:Gr.qty},null,40,_hoisted_25$5)]),createBaseVNode("button",{onClick:Qr=>Wr.$emit("changeQuantity",{product:Gr,amount:1}),class:""},"+",8,_hoisted_26$5)])]),createBaseVNode("div",_hoisted_27$4,[_hoisted_28$4,createBaseVNode("div",_hoisted_29$2,[createBaseVNode("div",_hoisted_30$2,[createTextVNode(toDisplayString(Gr.total.toFixed(2))+" ",1),_hoisted_31$2])])])]),createBaseVNode("div",_hoisted_32$2,[Gr.giftable?(openBlock(),createElementBlock("div",_hoisted_33$2,[withDirectives(createBaseVNode("input",{class:"peer visually-hidden",type:"checkbox",id:Gr.id,onChange:Kr[0]||(Kr[0]=Qr=>Wr.$emit("changeMeta",{giftWraps:jr.value,stamps:zr.value})),"onUpdate:modelValue":Qr=>jr.value[Gr.id]=Qr},null,40,_hoisted_34$2),[[vModelCheckbox,jr.value[Gr.id]]]),createBaseVNode("label",{for:Gr.id,class:normalizeClass(["flex items-center peer-focus-visible:before:bg-black peer-focus-visible:before:bg-opacity-50 cursor-pointer relative before:block before:w-6 before:border-black before:border before:mr-3 before:h-6 before:content-['']",[jr.value[Gr.id]?"before:bg-black":""]])}," I would like my item gift-wrapped ",10,_hoisted_35$2)])):createCommentVNode("",!0),Gr.stampable?(openBlock(),createElementBlock("div",_hoisted_36$2,[withDirectives(createBaseVNode("input",{class:"peer visually-hidden",type:"checkbox",id:"stamp"+Gr.id,"onUpdate:modelValue":Qr=>zr.value[Gr.id]=Qr},null,8,_hoisted_37$2),[[vModelCheckbox,zr.value[Gr.id]]]),createBaseVNode("label",{for:"stamp"+Gr.id,class:normalizeClass(["flex items-center peer-focus-visible:before:bg-black peer-focus-visible:before:bg-opacity-50 cursor-pointer relative before:block before:w-6 before:border-black before:border before:mr-3 before:h-6 before:content-['']",[zr.value[Gr.id]?"before:bg-black":""]])}," I would like my item stamped ",10,_hoisted_38$2)])):createCommentVNode("",!0)])])],2))),256))}},_sfc_main$p={},_hoisted_1$m={class:"grid grid-cols-4 gap-4 items-center mt-8 md:pl-4 lg:pl-8"},_hoisted_2$k=createStaticVNode('<div class="items-center justify-center flex"><img src="/img/pictos/payment-cb.png" alt="CB"></div><div class="items-center justify-center flex"><img src="/img/pictos/payment-visa.svg" alt="Visa"></div><div class="items-center justify-center flex"><img class="w-18" src="/img/pictos/payment-mastercard.svg" alt="Mastercard"></div><div class="items-center justify-center flex"><img class="w-[4.5rem]" src="/img/pictos/payment-amex.svg" alt="Amex"></div>',4),_hoisted_6$g=[_hoisted_2$k];function _sfc_render$2(_r,Fe){return openBlock(),createElementBlock("div",_hoisted_1$m,_hoisted_6$g)}var IconsPayment=_export_sfc$1(_sfc_main$p,[["render",_sfc_render$2]]);const _hoisted_1$l=createBaseVNode("div",{class:"w-full block text-center py-2 font-header bg-green text-white px-4 bg-opacity-80 hover:bg-opacity-100 uppercase tracking-widest cursor-not-allowed opacity-50"}," Proceed to checkout ",-1),_hoisted_2$j=["innerHTML"],_sfc_main$o={__name:"StoreUnavailable",props:["disableEcomm","disableEcommMessage"],setup(_r){return(Fe,$r)=>(openBlock(),createElementBlock(Fragment,null,[_hoisted_1$l,createBaseVNode("div",{class:"p-4 text-left mt-4 shadow-sm border-2 bg-green text-white",innerHTML:_r.disableEcommMessage},null,8,_hoisted_2$j)],64))}},_hoisted_1$k={class:"bg-white w-full relative"},_hoisted_2$i={key:0,class:"top-0 left-0 absolute w-full h-full bg-white bg-opacity-90 z-20 flex items-center justify-center"},_hoisted_3$g=createBaseVNode("img",{class:"h-full object-contain p-2 w-20",src:"/img/loader-spin--green.svg",alt:"Loading"},null,-1),_hoisted_4$g=[_hoisted_3$g],_hoisted_5$g={key:1,class:"text-center pt-12 text-r32"},_hoisted_6$f={key:2,class:"pt-12 py-8"},_hoisted_7$b={class:"flex flex-wrap xl:flex-nowrap"},_hoisted_8$c={class:"flex-grow"},_hoisted_9$a={class:"border-b-2 xl:border-t-0 col-span-2 grid grid-cols-3 sm:grid-cols-2"},_hoisted_10$a=createBaseVNode("label",{for:"orderMessage",class:"col-span-1 text-right pr-3 pr-10 py-4 text-[15px] lg:text-[18px] uppercase font-header tracking-widest"}," Order Message ",-1),_hoisted_11$a={class:"col-span-2 sm:col-span-1 relative"},_hoisted_12$a={class:"bg-offwhite bg-opacity-60 peer-focus:bg-opacity-100 relative pl-4 pr-1 py-1 flex items-start justify-end"},_hoisted_13$9={key:0,class:"text-red"},_hoisted_14$7={class:"text-black whitespace-nowrap ml-1"},_hoisted_15$6={key:1,class:"text-black whitespace-nowrap"},_hoisted_16$6={class:"w-full xl:w-1/3 flex-shrink-0 text-r22"},_hoisted_17$6={class:"xl:sticky xl:top-52 xl:border-t-2 xl:transform xl:-translate-x-[2px]"},_hoisted_18$6={class:"md:border-l-2 md:border-r-2 xl:border-r-0"},_hoisted_19$6={class:"mt-6 xl:pl-8 text-right"},_hoisted_20$5={key:0},_hoisted_21$4={key:0,class:"text-r22 mb-4"},_hoisted_22$4={key:1,class:"text-red mt-4 text-left"},_hoisted_23$4=createBaseVNode("br",null,null,-1),_hoisted_24$4={key:2,class:"text-red mt-4 text-left"},_hoisted_25$4={key:3},_hoisted_26$4=["innerHTML"],_hoisted_27$3={key:1},_hoisted_28$3={key:3,class:"text-center pt-12 text-r32"},_sfc_main$n={__name:"Cart",props:["disableEcomm","disableEcommMessage","checkoutMessage"],setup(_r){const Fe=useCartStore(),{cart:$r}=storeToRefs(Fe),{giftWraps:Fr}=storeToRefs(Fe),{stamps:jr}=storeToRefs(Fe),{orderMessage:zr}=storeToRefs(Fe),Vr=ref("");ref(!1);const Wr=ref(!1),Kr=ref(""),Gr=ref(!1),Yr=ref(!1);watch(()=>$r.value,(an,sn)=>{Gr.value||(Fe.sendDataLayer("view_cart"),Gr.value=!0),console.log("changing cart value"),Vr.value=$r.value.cartInfo.orderMessage,Wr.value=!1}),watch(()=>Fr.value,(an,sn)=>{Qr.value=Fr.value}),watch(()=>jr.value,(an,sn)=>{Jr.value=jr.value}),onMounted(()=>{console.log("mounting"),Vr.value=zr.value,Jr.value=jr.value,Qr.value=Fr.value,Object.keys($r.value).length>0&&!Gr.value&&(Fe.sendDataLayer("view_cart"),Gr.value=!0)});const Qr=ref({}),Jr=ref({}),Zr=computed(()=>{let an=!1;return Object.keys($r.value).length>0&&$r.value.cartItems.length>1&&$r.value.cartInfo.hasAloneProductsWithOthers?!0:an}),tn=an=>{console.log(an);let sn=an.product,dn=an.amount,ln=sn.qty+dn;Wr.value=!0,Kr.value="";let cn={};cn={lineItems:{[sn.id]:{qty:ln}},qty:0},cn=on(cn),cn[csrfTokenName]=csrfTokenValue;let fn=$r.value;fetch("?action=commerce/cart/update-cart",{method:"post",headers:{"Content-type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify(cn)}).then(pn=>pn.json()).then(pn=>{pn.errors?(Object.entries(pn.errors).forEach(([hn,mn])=>{Kr.value+=mn+" "}),Wr.value=!1,Fe.setCart(fn,!1)):Fe.setCart(pn.cart.extra,!1)})},en=an=>{Qr.value=an.giftWraps,Jr.value=an.stamps},rn=an=>{let sn={lineItems:{}};Yr.value=!0,Wr.value=!0,sn=on(sn),sn.orderMessage=Vr.value,sn[csrfTokenName]=csrfTokenValue,fetch("?action=commerce/cart/update-cart",{method:"post",headers:{"Content-type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify(sn)}).then(dn=>dn.json()).then(dn=>{Yr.value=!1,an?window.location.href="/shop/sign-in?redirectUrl=/shop/checkout/shipping":Fe.setCart(dn.cart.extra,!1)})},nn=an=>{let sn=an.id,dn={};Wr.value=!0,dn={lineItems:{[sn]:{remove:1}},qty:0},dn=on(dn),dn[csrfTokenName]=csrfTokenValue,fetch("?action=commerce/cart/update-cart",{method:"post",headers:{"Content-type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify(dn)}).then(ln=>ln.json()).then(ln=>{Fe.setCart(ln.cart.extra,!1)})},on=an=>(an.fields={orderMessage:Vr.value},$r.value.cartItems.forEach(function(sn,dn){let ln={};Qr.value[sn.id]&&(ln["Gift Wrap"]="YES"),Jr.value[sn.id]&&(ln.Stamp="YES"),an.lineItems[sn.id]={...an.lineItems[sn.id],options:ln}}),an),un=()=>{rn(!0)};return(an,sn)=>(openBlock(),createElementBlock("div",_hoisted_1$k,[Wr.value?(openBlock(),createElementBlock("div",_hoisted_2$i,_hoisted_4$g)):createCommentVNode("",!0),Object.keys(unref($r)).length==0?(openBlock(),createElementBlock("div",_hoisted_5$g," Loading... ")):createCommentVNode("",!0),unref($r).cartInfo&&unref($r).cartInfo.length>0?(openBlock(),createElementBlock("div",_hoisted_6$f,[createBaseVNode("div",_hoisted_7$b,[createBaseVNode("div",_hoisted_8$c,[createVNode(_sfc_main$q,{cart:unref($r),"gift-wraps":Qr.value,stamps:Jr.value,onChangeMeta:en,onChangeQuantity:tn,"highlight-alone":Zr.value,onRemove:nn},null,8,["cart","gift-wraps","stamps","highlight-alone"]),createBaseVNode("div",_hoisted_9$a,[_hoisted_10$a,createBaseVNode("div",_hoisted_11$a,[withDirectives(createBaseVNode("textarea",{"onUpdate:modelValue":sn[0]||(sn[0]=dn=>Vr.value=dn),rows:"3",maxlength:"150",id:"orderMessage",class:"block peer bg-offwhite text-r22 focus:outline-none p-4 bg-opacity-60 focus:bg-opacity-100 w-full",placeholder:"Add a message"},null,512),[[vModelText,Vr.value]]),createBaseVNode("div",_hoisted_12$a,[Vr.value!==null&&Vr.value.length>=150?(openBlock(),createElementBlock("span",_hoisted_13$9,[createTextVNode("You have reached the maximum length allowed. "),createBaseVNode("span",_hoisted_14$7,toDisplayString(Vr.value.length)+" / 150",1)])):Vr.value!==null?(openBlock(),createElementBlock("span",_hoisted_15$6,toDisplayString(Vr.value.length)+" / 150",1)):createCommentVNode("",!0)])])])]),createBaseVNode("div",_hoisted_16$6,[createBaseVNode("div",_hoisted_17$6,[createBaseVNode("div",_hoisted_18$6,[unref($r).cartInfo&&unref($r).cartInfo.length>0?(openBlock(),createBlock(_sfc_main$s,{key:0,cart:unref($r)},null,8,["cart"])):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_19$6,[_r.disableEcomm?(openBlock(),createElementBlock("div",_hoisted_27$3,[createVNode(_sfc_main$o,{"disable-ecomm-message":_r.disableEcommMessage},null,8,["disable-ecomm-message"])])):(openBlock(),createElementBlock("div",_hoisted_20$5,[unref($r).cartInfo.shippingAddressIsDefined?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_21$4,"Tax & shipping will be calculated at checkout ")),createBaseVNode("button",{onClick:un,class:"w-full block text-center py-2 font-header bg-green text-white px-4 bg-opacity-80 hover:bg-opacity-100 uppercase tracking-widest"}," Proceed to checkout "),Zr.value?(openBlock(),createElementBlock("div",_hoisted_22$4,[createTextVNode(" Some items in your cart can only be delivered on their own."),_hoisted_23$4,createTextVNode("Please remove the other items to continue or select Click & Collect at the next step. ")])):createCommentVNode("",!0),Kr.value?(openBlock(),createElementBlock("div",_hoisted_24$4,toDisplayString(Kr.value),1)):createCommentVNode("",!0),_r.checkoutMessage?(openBlock(),createElementBlock("div",_hoisted_25$4,[createBaseVNode("div",{class:"text-r22 w-full p-4 text-left mt-4 shadow-sm border bg-pink text-black",innerHTML:_r.checkoutMessage},null,8,_hoisted_26$4)])):createCommentVNode("",!0),createVNode(IconsPayment)]))])])])])])):createCommentVNode("",!0),unref($r).cartInfo&&unref($r).cartInfo.length==0?(openBlock(),createElementBlock("div",_hoisted_28$3," Your cart is empty. ")):createCommentVNode("",!0)]))}},_hoisted_1$j=["href"],classButton="bg-green text-white bg-opacity-80 hover:bg-opacity-100 inline-block uppercase text-[14px] tracking-widest font-header py-2 px-5 ",classButtonBig="w-full  text-center bg-green text-r22 text-white bg-opacity-80 hover:bg-opacity-100 inline-block uppercase tracking-widest font-header py-2 px-6 ",_sfc_main$m={__name:"ButtonInput",props:{text:String,type:{default(){return"button"}},big:Boolean,disabled:Boolean,href:String},setup(_r){return(Fe,$r)=>(openBlock(),createElementBlock("div",null,[_r.type=="button"?(openBlock(),createElementBlock("button",{key:0,type:"submit",class:normalizeClass([_r.big?classButtonBig:classButton,_r.disabled?"cursor-not-allowed":""])},toDisplayString(_r.text),3)):createCommentVNode("",!0),_r.type=="link"?(openBlock(),createElementBlock("a",{key:1,href:_r.href,class:normalizeClass([_r.big?classButtonBig:classButton,_r.disabled?"cursor-not-allowed bg-opacity-50 hover:bg-opacity-50":""])},toDisplayString(_r.text),11,_hoisted_1$j)):createCommentVNode("",!0)]))}},_sfc_main$l={},_hoisted_1$i={class:"text-r28 leading-[1.2]"},_hoisted_2$h=createStaticVNode('<div class="uppercase mb-2 text-[14px] tracking-widest font-header"><div class="h-6 w-40 bg-light"></div></div><div class="font-bold mb-2"><div class="h-6 w-40 bg-light"></div></div><div class="mb-2"><div class="h-6 w-40 bg-light"></div></div><div class="mb-2"><div class="h-6 w-40 bg-light"></div></div><div class="mb-2"><div class="h-6 w-40 bg-light"></div></div><div class="mb-2"><div class="h-6 w-40 bg-light"></div></div>',6),_hoisted_8$b=[_hoisted_2$h];function _sfc_render$1(_r,Fe){return openBlock(),createElementBlock("div",_hoisted_1$i,_hoisted_8$b)}var AddressPlaceholder=_export_sfc$1(_sfc_main$l,[["render",_sfc_render$1]]);const _hoisted_1$h={key:0,class:"text-r28 leading-[1.2]"},_hoisted_2$g={key:0,class:"uppercase mb-1 text-[14px] tracking-widest font-header"},_hoisted_3$f={class:"font-bold"},_hoisted_4$f={key:0},_hoisted_5$f={key:1},_sfc_main$k={__name:"Address",props:["id","store"],setup(_r,{expose:Fe}){const $r=_r,Fr=ref({});onMounted(()=>{jr()}),watch(()=>$r.id,(zr,Vr)=>{Vr!=0&&jr()});const jr=()=>{if($r.id!==null)return fetch("/api/customer/addresses?id="+$r.id,{method:"get",headers:{"Content-type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"}}).then(zr=>zr.json()).then(zr=>{Fr.value=zr.addresses[0]})};return Fe({fetchAddress:jr}),(zr,Vr)=>Fr.value.countryName?(openBlock(),createElementBlock("div",_hoisted_1$h,[$r.id==-1?(openBlock(),createElementBlock("div",_hoisted_2$g,toDisplayString(Fr.value.title),1)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_3$f,toDisplayString(Fr.value.fullName),1),createBaseVNode("div",null,toDisplayString(Fr.value.addressLine1),1),createBaseVNode("div",null,toDisplayString(Fr.value.addressLine2),1),createBaseVNode("div",null,toDisplayString(Fr.value.postalCode)+", "+toDisplayString(Fr.value.locality),1),createBaseVNode("div",null,[Fr.value.administrativeArea?(openBlock(),createElementBlock("span",_hoisted_4$f,toDisplayString(Fr.value.administrativeArea)+", ",1)):createCommentVNode("",!0),createTextVNode(toDisplayString(Fr.value.countryName),1)]),_r.store?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_5$f,toDisplayString(Fr.value.phoneNumber),1))])):(openBlock(),createBlock(AddressPlaceholder,{key:1}))}},scriptRel="modulepreload",seen={},base="/dist/",__vitePreload=function _r(Fe,$r){return!$r||$r.length===0?Fe():Promise.all($r.map(Fr=>{if(Fr=`${base}${Fr}`,Fr in seen)return;seen[Fr]=!0;const jr=Fr.endsWith(".css"),zr=jr?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${Fr}"]${zr}`))return;const Vr=document.createElement("link");if(Vr.rel=jr?"stylesheet":scriptRel,jr||(Vr.as="script",Vr.crossOrigin=""),Vr.href=Fr,document.head.appendChild(Vr),jr)return new Promise((Wr,Kr)=>{Vr.addEventListener("load",Wr),Vr.addEventListener("error",()=>Kr(new Error(`Unable to preload CSS for ${Fr}`)))})})).then(()=>Fe())};var metadata={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8]))\\d{3}|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4]))|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[016-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:28|4[14]|5)|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|22"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[047]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","[24-689]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]]]],BL:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|5[12]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:395|76[018])\\d|475[0-2])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-467]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-79]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","(?:[2-8]\\d|90)\\d{8}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-9]|33|44|66|77|88)|622)[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[016-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","[189]\\d{8}|[1-68]\\d{6}",[7,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","10(?:10|9[56])|2[0-57-9](?:100|9[56])"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}",[10,11],[["(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0(4(?:[14]4|56)|[579])?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","[27]\\d{6,7}|[34]\\d{5,7}|(?:5|8\\d\\d)\\d{7}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["5"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[016-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[0568]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[189]"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[0-579])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-2]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","[56]94\\d{6}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[56]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1289]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:395|76[018])\\d|475[0-2])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([3-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","9008\\d{3}|(?:[2-467]\\d\\d|862)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-46-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-5]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[1-9]\\d{8}|3[2-9]\\d{7}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],0,0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51|63)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9]|636)|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9]|636[457-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[27-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9])|5(?:2|3[045]|4[0-369]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|49|51|6(?:[0-24]|36|5[0-3589]|72|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:49|55|83)[29]|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|829(?:2|66)|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|(?:[235-8]\\d|99)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[013-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[25]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[4-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(8-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(8-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(8-$1)",1]],"8",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{5})(\\d{4})","$1-$2",["5(?:29|38)","5(?:29[1289]|389)","529(?:1[1-46-9]|2[013-8]|90)|5(?:298|389)[0-46-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|9)|892","5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5293[01]\\d{4}|5(?:2(?:[0-25-7]\\d|3[1-578]|4[02-46-8]|8[0235-7]|9[0-289])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[0189]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[017]\\d|2[0-2]|6[0-8]|8[0-3]))\\d{6}"],["80\\d{7}"],["89\\d{7}"],0,0,0,0,["592(?:4[0-2]|93)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|30|5[0-268]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:395|76[018])\\d|475[0-2])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","596\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","1(?:(?:[27]2|44|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[01]\\d|2[13-9]|[35][1-9]|4[0-35-9]|6[0-46-9]|7[013-9]|8[1-79]|9[1-8])|[2-9]\\d)\\d{8}",[10,11],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],0,1],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],0,1],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],0,1]],"01",0,"0(?:[12]|4[45])|1",0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[04]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}",[7,8,10,11,12,13,14],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-7]|8[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[47]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[29]\\d{7,9}|50\\d{5}(?:\\d{2,3})?|6[0-35-9]\\d{6}|7\\d{7,8}|8\\d{4,9}|(?:11\\d|[34])\\d{7}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-579]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|[89]0","50(?:[0367]|88)|[89]0"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[59]|80"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7|86"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|80\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-6])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-3]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:0[0-46]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|6[0-6]|7[0-27]|8[0-8]|9[0-479]))|9(?:399[0-3]|479[0-2]|76(?:2[27]|3[0-37]|9\\d)))\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,0,["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[2378]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[237-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","(?:[1-6]|[7-9]\\d\\d)\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","800\\d{4}|(?:[249]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-6]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|[57]9)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3478]|64|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6(?:0[5-7]|[1-35-9])|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[69]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[34]7|91[78]"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3[1-5]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-6]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["6"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|616)","5(?:[0-59]|6161)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["5056(?:[0-35-9]\\d|4[46])\\d{4}|(?:4722|505[2-57-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[0-2]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","(?:0004|4)\\d{9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[7,8,10,13],[["(\\d{3})(\\d{4})","$1 $2",["405|8|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["4"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","810","(?:33|[5-79]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[35-9]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[69]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3578]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[23]"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:(?:(?:26|63)9|80\\d)\\d|9398)\\d{5}",[9],0,"0",0,0,0,0,"269|63|9398"],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|63|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[35-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"[0-36-9]\\d{8}",[9],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-36-9]"]]],0,0,0,0,0,0,[0,["[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,0,0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[013-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function withMetadataArgument(_r,Fe){var $r=Array.prototype.slice.call(Fe);return $r.push(metadata),_r.apply(this,$r)}function _typeof$O(_r){return _typeof$O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$O(_r)}function _defineProperties$b(_r,Fe){for(var $r=0;$r<Fe.length;$r++){var Fr=Fe[$r];Fr.enumerable=Fr.enumerable||!1,Fr.configurable=!0,"value"in Fr&&(Fr.writable=!0),Object.defineProperty(_r,Fr.key,Fr)}}function _createClass$b(_r,Fe,$r){return Fe&&_defineProperties$b(_r.prototype,Fe),$r&&_defineProperties$b(_r,$r),Object.defineProperty(_r,"prototype",{writable:!1}),_r}function _classCallCheck$b(_r,Fe){if(!(_r instanceof Fe))throw new TypeError("Cannot call a class as a function")}function _inherits$1(_r,Fe){if(typeof Fe!="function"&&Fe!==null)throw new TypeError("Super expression must either be null or a function");_r.prototype=Object.create(Fe&&Fe.prototype,{constructor:{value:_r,writable:!0,configurable:!0}}),Object.defineProperty(_r,"prototype",{writable:!1}),Fe&&_setPrototypeOf$1(_r,Fe)}function _createSuper$1(_r){var Fe=_isNativeReflectConstruct$1();return function(){var Fr=_getPrototypeOf$1(_r),jr;if(Fe){var zr=_getPrototypeOf$1(this).constructor;jr=Reflect.construct(Fr,arguments,zr)}else jr=Fr.apply(this,arguments);return _possibleConstructorReturn$1(this,jr)}}function _possibleConstructorReturn$1(_r,Fe){if(Fe&&(_typeof$O(Fe)==="object"||typeof Fe=="function"))return Fe;if(Fe!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1(_r)}function _assertThisInitialized$1(_r){if(_r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _r}function _wrapNativeSuper(_r){var Fe=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(Fr){if(Fr===null||!_isNativeFunction(Fr))return Fr;if(typeof Fr!="function")throw new TypeError("Super expression must either be null or a function");if(typeof Fe!="undefined"){if(Fe.has(Fr))return Fe.get(Fr);Fe.set(Fr,jr)}function jr(){return _construct(Fr,arguments,_getPrototypeOf$1(this).constructor)}return jr.prototype=Object.create(Fr.prototype,{constructor:{value:jr,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf$1(jr,Fr)},_wrapNativeSuper(_r)}function _construct(_r,Fe,$r){return _isNativeReflectConstruct$1()?_construct=Reflect.construct:_construct=function(jr,zr,Vr){var Wr=[null];Wr.push.apply(Wr,zr);var Kr=Function.bind.apply(jr,Wr),Gr=new Kr;return Vr&&_setPrototypeOf$1(Gr,Vr.prototype),Gr},_construct.apply(null,arguments)}function _isNativeReflectConstruct$1(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _isNativeFunction(_r){return Function.toString.call(_r).indexOf("[native code]")!==-1}function _setPrototypeOf$1(_r,Fe){return _setPrototypeOf$1=Object.setPrototypeOf||function(Fr,jr){return Fr.__proto__=jr,Fr},_setPrototypeOf$1(_r,Fe)}function _getPrototypeOf$1(_r){return _getPrototypeOf$1=Object.setPrototypeOf?Object.getPrototypeOf:function($r){return $r.__proto__||Object.getPrototypeOf($r)},_getPrototypeOf$1(_r)}var ParseError=function(_r){_inherits$1($r,_r);var Fe=_createSuper$1($r);function $r(Fr){var jr;return _classCallCheck$b(this,$r),jr=Fe.call(this,Fr),Object.setPrototypeOf(_assertThisInitialized$1(jr),$r.prototype),jr.name=jr.constructor.name,jr}return _createClass$b($r)}(_wrapNativeSuper(Error)),MIN_LENGTH_FOR_NSN=2,MAX_LENGTH_FOR_NSN=17,MAX_LENGTH_COUNTRY_CODE=3,VALID_DIGITS="0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9",DASHES="-\u2010-\u2015\u2212\u30FC\uFF0D",SLASHES="\uFF0F/",DOTS="\uFF0E.",WHITESPACE=" \xA0\xAD\u200B\u2060\u3000",BRACKETS="()\uFF08\uFF09\uFF3B\uFF3D\\[\\]",TILDES="~\u2053\u223C\uFF5E",VALID_PUNCTUATION="".concat(DASHES).concat(SLASHES).concat(DOTS).concat(WHITESPACE).concat(BRACKETS).concat(TILDES),PLUS_CHARS="+\uFF0B";function compare(_r,Fe){_r=_r.split("-"),Fe=Fe.split("-");for(var $r=_r[0].split("."),Fr=Fe[0].split("."),jr=0;jr<3;jr++){var zr=Number($r[jr]),Vr=Number(Fr[jr]);if(zr>Vr)return 1;if(Vr>zr)return-1;if(!isNaN(zr)&&isNaN(Vr))return 1;if(isNaN(zr)&&!isNaN(Vr))return-1}return _r[1]&&Fe[1]?_r[1]>Fe[1]?1:_r[1]<Fe[1]?-1:0:!_r[1]&&Fe[1]?1:_r[1]&&!Fe[1]?-1:0}function _typeof$N(_r){return _typeof$N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$N(_r)}function _classCallCheck$a(_r,Fe){if(!(_r instanceof Fe))throw new TypeError("Cannot call a class as a function")}function _defineProperties$a(_r,Fe){for(var $r=0;$r<Fe.length;$r++){var Fr=Fe[$r];Fr.enumerable=Fr.enumerable||!1,Fr.configurable=!0,"value"in Fr&&(Fr.writable=!0),Object.defineProperty(_r,Fr.key,Fr)}}function _createClass$a(_r,Fe,$r){return Fe&&_defineProperties$a(_r.prototype,Fe),$r&&_defineProperties$a(_r,$r),Object.defineProperty(_r,"prototype",{writable:!1}),_r}var V3="1.2.0",V4="1.7.35",DEFAULT_EXT_PREFIX=" ext. ",CALLING_CODE_REG_EXP=/^\d+$/,Metadata=function(){function _r(Fe){_classCallCheck$a(this,_r),validateMetadata(Fe),this.metadata=Fe,setVersion.call(this,Fe)}return _createClass$a(_r,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function($r){return $r!=="001"})}},{key:"getCountryMetadata",value:function($r){return this.metadata.countries[$r]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function($r){return this.getCountryMetadata($r)!==void 0}},{key:"hasCallingCode",value:function($r){if(this.getCountryCodesForCallingCode($r))return!0;if(this.nonGeographic()){if(this.nonGeographic()[$r])return!0}else{var Fr=this.countryCallingCodes()[$r];if(Fr&&Fr.length===1&&Fr[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function($r){return this.nonGeographic()?!!this.nonGeographic()[$r]:!this.getCountryCodesForCallingCode($r)}},{key:"country",value:function($r){return this.selectNumberingPlan($r)}},{key:"selectNumberingPlan",value:function($r,Fr){if($r&&CALLING_CODE_REG_EXP.test($r)&&(Fr=$r,$r=null),$r&&$r!=="001"){if(!this.hasCountry($r))throw new Error("Unknown country: ".concat($r));this.numberingPlan=new NumberingPlan(this.getCountryMetadata($r),this)}else if(Fr){if(!this.hasCallingCode(Fr))throw new Error("Unknown calling code: ".concat(Fr));this.numberingPlan=new NumberingPlan(this.getNumberingPlanMetadata(Fr),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function($r){var Fr=this.countryCallingCodes()[$r];if(Fr)return Fr.length===1&&Fr[0].length===3?void 0:Fr}},{key:"getCountryCodeForCallingCode",value:function($r){var Fr=this.getCountryCodesForCallingCode($r);if(Fr)return Fr[0]}},{key:"getNumberingPlanMetadata",value:function($r){var Fr=this.getCountryCodeForCallingCode($r);if(Fr)return this.getCountryMetadata(Fr);if(this.nonGeographic()){var jr=this.nonGeographic()[$r];if(jr)return jr}else{var zr=this.countryCallingCodes()[$r];if(zr&&zr.length===1&&zr[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function($r){return this.numberingPlan.type($r)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function($r){return this.selectNumberingPlan($r)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}]),_r}(),NumberingPlan=function(){function _r(Fe,$r){_classCallCheck$a(this,_r),this.globalMetadataObject=$r,this.metadata=Fe,setVersion.call(this,$r.metadata)}return _createClass$a(_r,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function($r){return $r[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var $r=this,Fr=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return Fr.map(function(jr){return new Format$1(jr,$r)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function($r){return $r[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function($r){if(this.hasTypes()&&getType(this.types(),$r))return new Type(getType(this.types(),$r),this)}},{key:"ext",value:function(){return this.v1||this.v2?DEFAULT_EXT_PREFIX:this.metadata[13]||DEFAULT_EXT_PREFIX}}]),_r}(),Format$1=function(){function _r(Fe,$r){_classCallCheck$a(this,_r),this._format=Fe,this.metadata=$r}return _createClass$a(_r,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!FIRST_GROUP_ONLY_PREFIX_PATTERN.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),_r}(),FIRST_GROUP_ONLY_PREFIX_PATTERN=/^\(?\$1\)?$/,Type=function(){function _r(Fe,$r){_classCallCheck$a(this,_r),this.type=Fe,this.metadata=$r}return _createClass$a(_r,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),_r}();function getType(_r,Fe){switch(Fe){case"FIXED_LINE":return _r[0];case"MOBILE":return _r[1];case"TOLL_FREE":return _r[2];case"PREMIUM_RATE":return _r[3];case"PERSONAL_NUMBER":return _r[4];case"VOICEMAIL":return _r[5];case"UAN":return _r[6];case"PAGER":return _r[7];case"VOIP":return _r[8];case"SHARED_COST":return _r[9]}}function validateMetadata(_r){if(!_r)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!is_object(_r)||!is_object(_r.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(is_object(_r)?"an object of shape: { "+Object.keys(_r).join(", ")+" }":"a "+type_of(_r)+": "+_r,"."))}var is_object=function _r(Fe){return _typeof$N(Fe)==="object"},type_of=function _r(Fe){return _typeof$N(Fe)};function getCountryCallingCode$1(_r,Fe){if(Fe=new Metadata(Fe),Fe.hasCountry(_r))return Fe.country(_r).countryCallingCode();throw new Error("Unknown country: ".concat(_r))}function isSupportedCountry$1(_r,Fe){return Fe.countries[_r]!==void 0}function setVersion(_r){var Fe=_r.version;typeof Fe=="number"?(this.v1=Fe===1,this.v2=Fe===2,this.v3=Fe===3,this.v4=Fe===4):Fe?compare(Fe,V3)===-1?this.v2=!0:compare(Fe,V4)===-1?this.v3=!0:this.v4=!0:this.v1=!0}var RFC3966_EXTN_PREFIX=";ext=",getExtensionDigitsPattern=function _r(Fe){return"([".concat(VALID_DIGITS,"]{1,").concat(Fe,"})")};function createExtensionPattern(_r){var Fe="20",$r="15",Fr="9",jr="6",zr="[ \xA0\\t,]*",Vr="[:\\.\uFF0E]?[ \xA0\\t,-]*",Wr="#?",Kr="(?:e?xt(?:ensi(?:o\u0301?|\xF3))?n?|\uFF45?\uFF58\uFF54\uFF4E?|\u0434\u043E\u0431|anexo)",Gr="(?:[x\uFF58#\uFF03~\uFF5E]|int|\uFF49\uFF4E\uFF54)",Yr="[- ]+",Qr="[ \xA0\\t]*",Jr="(?:,{2}|;)",Zr=RFC3966_EXTN_PREFIX+getExtensionDigitsPattern(Fe),tn=zr+Kr+Vr+getExtensionDigitsPattern(Fe)+Wr,en=zr+Gr+Vr+getExtensionDigitsPattern(Fr)+Wr,rn=Yr+getExtensionDigitsPattern(jr)+"#",nn=Qr+Jr+Vr+getExtensionDigitsPattern($r)+Wr,on=Qr+"(?:,)+"+Vr+getExtensionDigitsPattern(Fr)+Wr;return Zr+"|"+tn+"|"+en+"|"+rn+"|"+nn+"|"+on}var MIN_LENGTH_PHONE_NUMBER_PATTERN="["+VALID_DIGITS+"]{"+MIN_LENGTH_FOR_NSN+"}",VALID_PHONE_NUMBER="["+PLUS_CHARS+"]{0,1}(?:["+VALID_PUNCTUATION+"]*["+VALID_DIGITS+"]){3,}["+VALID_PUNCTUATION+VALID_DIGITS+"]*",VALID_PHONE_NUMBER_START_REG_EXP=new RegExp("^["+PLUS_CHARS+"]{0,1}(?:["+VALID_PUNCTUATION+"]*["+VALID_DIGITS+"]){1,2}$","i"),VALID_PHONE_NUMBER_WITH_EXTENSION=VALID_PHONE_NUMBER+"(?:"+createExtensionPattern()+")?",VALID_PHONE_NUMBER_PATTERN=new RegExp("^"+MIN_LENGTH_PHONE_NUMBER_PATTERN+"$|^"+VALID_PHONE_NUMBER_WITH_EXTENSION+"$","i");function isViablePhoneNumber(_r){return _r.length>=MIN_LENGTH_FOR_NSN&&VALID_PHONE_NUMBER_PATTERN.test(_r)}function isViablePhoneNumberStart(_r){return VALID_PHONE_NUMBER_START_REG_EXP.test(_r)}var EXTN_PATTERN=new RegExp("(?:"+createExtensionPattern()+")$","i");function extractExtension(_r){var Fe=_r.search(EXTN_PATTERN);if(Fe<0)return{};for(var $r=_r.slice(0,Fe),Fr=_r.match(EXTN_PATTERN),jr=1;jr<Fr.length;){if(Fr[jr])return{number:$r,ext:Fr[jr]};jr++}}function _createForOfIteratorHelperLoose$8(_r,Fe){var $r=typeof Symbol!="undefined"&&_r[Symbol.iterator]||_r["@@iterator"];if($r)return($r=$r.call(_r)).next.bind($r);if(Array.isArray(_r)||($r=_unsupportedIterableToArray$t(_r))||Fe&&_r&&typeof _r.length=="number"){$r&&(_r=$r);var Fr=0;return function(){return Fr>=_r.length?{done:!0}:{done:!1,value:_r[Fr++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$t(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray$t(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray$t(_r,Fe)}}function _arrayLikeToArray$t(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}var DIGITS={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","\uFF10":"0","\uFF11":"1","\uFF12":"2","\uFF13":"3","\uFF14":"4","\uFF15":"5","\uFF16":"6","\uFF17":"7","\uFF18":"8","\uFF19":"9","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u06F0":"0","\u06F1":"1","\u06F2":"2","\u06F3":"3","\u06F4":"4","\u06F5":"5","\u06F6":"6","\u06F7":"7","\u06F8":"8","\u06F9":"9"};function parseDigit(_r){return DIGITS[_r]}function parseDigits$1(_r){for(var Fe="",$r=_createForOfIteratorHelperLoose$8(_r.split("")),Fr;!(Fr=$r()).done;){var jr=Fr.value,zr=parseDigit(jr);zr&&(Fe+=zr)}return Fe}function _createForOfIteratorHelperLoose$7(_r,Fe){var $r=typeof Symbol!="undefined"&&_r[Symbol.iterator]||_r["@@iterator"];if($r)return($r=$r.call(_r)).next.bind($r);if(Array.isArray(_r)||($r=_unsupportedIterableToArray$s(_r))||Fe&&_r&&typeof _r.length=="number"){$r&&(_r=$r);var Fr=0;return function(){return Fr>=_r.length?{done:!0}:{done:!1,value:_r[Fr++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$s(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray$s(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray$s(_r,Fe)}}function _arrayLikeToArray$s(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}function parseIncompletePhoneNumber(_r){for(var Fe="",$r=_createForOfIteratorHelperLoose$7(_r.split("")),Fr;!(Fr=$r()).done;){var jr=Fr.value;Fe+=parsePhoneNumberCharacter(jr,Fe)||""}return Fe}function parsePhoneNumberCharacter(_r,Fe){return _r==="+"?Fe?void 0:"+":parseDigit(_r)}function _createForOfIteratorHelperLoose$6(_r,Fe){var $r=typeof Symbol!="undefined"&&_r[Symbol.iterator]||_r["@@iterator"];if($r)return($r=$r.call(_r)).next.bind($r);if(Array.isArray(_r)||($r=_unsupportedIterableToArray$r(_r))||Fe&&_r&&typeof _r.length=="number"){$r&&(_r=$r);var Fr=0;return function(){return Fr>=_r.length?{done:!0}:{done:!1,value:_r[Fr++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$r(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray$r(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray$r(_r,Fe)}}function _arrayLikeToArray$r(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}function mergeArrays(_r,Fe){for(var $r=_r.slice(),Fr=_createForOfIteratorHelperLoose$6(Fe),jr;!(jr=Fr()).done;){var zr=jr.value;_r.indexOf(zr)<0&&$r.push(zr)}return $r.sort(function(Vr,Wr){return Vr-Wr})}function checkNumberLength(_r,Fe){return checkNumberLengthForType(_r,void 0,Fe)}function checkNumberLengthForType(_r,Fe,$r){var Fr=$r.type(Fe),jr=Fr&&Fr.possibleLengths()||$r.possibleLengths();if(!jr)return"IS_POSSIBLE";if(Fe==="FIXED_LINE_OR_MOBILE"){if(!$r.type("FIXED_LINE"))return checkNumberLengthForType(_r,"MOBILE",$r);var zr=$r.type("MOBILE");zr&&(jr=mergeArrays(jr,zr.possibleLengths()))}else if(Fe&&!Fr)return"INVALID_LENGTH";var Vr=_r.length,Wr=jr[0];return Wr===Vr?"IS_POSSIBLE":Wr>Vr?"TOO_SHORT":jr[jr.length-1]<Vr?"TOO_LONG":jr.indexOf(Vr,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function isPossiblePhoneNumber(_r,Fe,$r){if(Fe===void 0&&(Fe={}),$r=new Metadata($r),Fe.v2){if(!_r.countryCallingCode)throw new Error("Invalid phone number object passed");$r.selectNumberingPlan(_r.countryCallingCode)}else{if(!_r.phone)return!1;if(_r.country){if(!$r.hasCountry(_r.country))throw new Error("Unknown country: ".concat(_r.country));$r.country(_r.country)}else{if(!_r.countryCallingCode)throw new Error("Invalid phone number object passed");$r.selectNumberingPlan(_r.countryCallingCode)}}if($r.possibleLengths())return isPossibleNumber(_r.phone||_r.nationalNumber,$r);if(_r.countryCallingCode&&$r.isNonGeographicCallingCode(_r.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function isPossibleNumber(_r,Fe){switch(checkNumberLength(_r,Fe)){case"IS_POSSIBLE":return!0;default:return!1}}function matchesEntirely(_r,Fe){return _r=_r||"",new RegExp("^(?:"+Fe+")$").test(_r)}function _createForOfIteratorHelperLoose$5(_r,Fe){var $r=typeof Symbol!="undefined"&&_r[Symbol.iterator]||_r["@@iterator"];if($r)return($r=$r.call(_r)).next.bind($r);if(Array.isArray(_r)||($r=_unsupportedIterableToArray$q(_r))||Fe&&_r&&typeof _r.length=="number"){$r&&(_r=$r);var Fr=0;return function(){return Fr>=_r.length?{done:!0}:{done:!1,value:_r[Fr++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$q(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray$q(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray$q(_r,Fe)}}function _arrayLikeToArray$q(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}var NON_FIXED_LINE_PHONE_TYPES=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function getNumberType(_r,Fe,$r){if(Fe=Fe||{},!!_r.country){$r=new Metadata($r),$r.selectNumberingPlan(_r.country,_r.countryCallingCode);var Fr=Fe.v2?_r.nationalNumber:_r.phone;if(!!matchesEntirely(Fr,$r.nationalNumberPattern())){if(isNumberTypeEqualTo(Fr,"FIXED_LINE",$r))return $r.type("MOBILE")&&$r.type("MOBILE").pattern()===""||!$r.type("MOBILE")||isNumberTypeEqualTo(Fr,"MOBILE",$r)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var jr=_createForOfIteratorHelperLoose$5(NON_FIXED_LINE_PHONE_TYPES),zr;!(zr=jr()).done;){var Vr=zr.value;if(isNumberTypeEqualTo(Fr,Vr,$r))return Vr}}}}function isNumberTypeEqualTo(_r,Fe,$r){return Fe=$r.type(Fe),!Fe||!Fe.pattern()||Fe.possibleLengths()&&Fe.possibleLengths().indexOf(_r.length)<0?!1:matchesEntirely(_r,Fe.pattern())}function isValidNumber(_r,Fe,$r){if(Fe=Fe||{},$r=new Metadata($r),$r.selectNumberingPlan(_r.country,_r.countryCallingCode),$r.hasTypes())return getNumberType(_r,Fe,$r.metadata)!==void 0;var Fr=Fe.v2?_r.nationalNumber:_r.phone;return matchesEntirely(Fr,$r.nationalNumberPattern())}function getPossibleCountriesForNumber(_r,Fe,$r){var Fr=new Metadata($r),jr=Fr.getCountryCodesForCallingCode(_r);return jr?jr.filter(function(zr){return couldNationalNumberBelongToCountry(Fe,zr,$r)}):[]}function couldNationalNumberBelongToCountry(_r,Fe,$r){var Fr=new Metadata($r);return Fr.selectNumberingPlan(Fe),Fr.numberingPlan.possibleLengths().indexOf(_r.length)>=0}function applyInternationalSeparatorStyle(_r){return _r.replace(new RegExp("[".concat(VALID_PUNCTUATION,"]+"),"g")," ").trim()}var FIRST_GROUP_PATTERN=/(\$\d)/;function formatNationalNumberUsingFormat(_r,Fe,$r){var Fr=$r.useInternationalFormat,jr=$r.withNationalPrefix;$r.carrierCode,$r.metadata;var zr=_r.replace(new RegExp(Fe.pattern()),Fr?Fe.internationalFormat():jr&&Fe.nationalPrefixFormattingRule()?Fe.format().replace(FIRST_GROUP_PATTERN,Fe.nationalPrefixFormattingRule()):Fe.format());return Fr?applyInternationalSeparatorStyle(zr):zr}var SINGLE_IDD_PREFIX_REG_EXP=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function getIddPrefix(_r,Fe,$r){var Fr=new Metadata($r);if(Fr.selectNumberingPlan(_r,Fe),Fr.defaultIDDPrefix())return Fr.defaultIDDPrefix();if(SINGLE_IDD_PREFIX_REG_EXP.test(Fr.IDDPrefix()))return Fr.IDDPrefix()}function formatRFC3966(_r){var Fe=_r.number,$r=_r.ext;if(!Fe)return"";if(Fe[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(Fe).concat($r?";ext="+$r:"")}function _createForOfIteratorHelperLoose$4(_r,Fe){var $r=typeof Symbol!="undefined"&&_r[Symbol.iterator]||_r["@@iterator"];if($r)return($r=$r.call(_r)).next.bind($r);if(Array.isArray(_r)||($r=_unsupportedIterableToArray$p(_r))||Fe&&_r&&typeof _r.length=="number"){$r&&(_r=$r);var Fr=0;return function(){return Fr>=_r.length?{done:!0}:{done:!1,value:_r[Fr++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$p(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray$p(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray$p(_r,Fe)}}function _arrayLikeToArray$p(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}function ownKeys$H(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$H(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$H(Object($r),!0).forEach(function(Fr){_defineProperty$J(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$H(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$J(_r,Fe,$r){return Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}var DEFAULT_OPTIONS={formatExtension:function _r(Fe,$r,Fr){return"".concat(Fe).concat(Fr.ext()).concat($r)}};function formatNumber$2(_r,Fe,$r,Fr){if($r?$r=_objectSpread$H(_objectSpread$H({},DEFAULT_OPTIONS),$r):$r=DEFAULT_OPTIONS,Fr=new Metadata(Fr),_r.country&&_r.country!=="001"){if(!Fr.hasCountry(_r.country))throw new Error("Unknown country: ".concat(_r.country));Fr.country(_r.country)}else if(_r.countryCallingCode)Fr.selectNumberingPlan(_r.countryCallingCode);else return _r.phone||"";var jr=Fr.countryCallingCode(),zr=$r.v2?_r.nationalNumber:_r.phone,Vr;switch(Fe){case"NATIONAL":return zr?(Vr=formatNationalNumber$1(zr,_r.carrierCode,"NATIONAL",Fr,$r),addExtension(Vr,_r.ext,Fr,$r.formatExtension)):"";case"INTERNATIONAL":return zr?(Vr=formatNationalNumber$1(zr,null,"INTERNATIONAL",Fr,$r),Vr="+".concat(jr," ").concat(Vr),addExtension(Vr,_r.ext,Fr,$r.formatExtension)):"+".concat(jr);case"E.164":return"+".concat(jr).concat(zr);case"RFC3966":return formatRFC3966({number:"+".concat(jr).concat(zr),ext:_r.ext});case"IDD":if(!$r.fromCountry)return;var Wr=formatIDD(zr,_r.carrierCode,jr,$r.fromCountry,Fr);return addExtension(Wr,_r.ext,Fr,$r.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(Fe,'"'))}}function formatNationalNumber$1(_r,Fe,$r,Fr,jr){var zr=chooseFormatForNumber(Fr.formats(),_r);return zr?formatNationalNumberUsingFormat(_r,zr,{useInternationalFormat:$r==="INTERNATIONAL",withNationalPrefix:!(zr.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&jr&&jr.nationalPrefix===!1),carrierCode:Fe,metadata:Fr}):_r}function chooseFormatForNumber(_r,Fe){for(var $r=_createForOfIteratorHelperLoose$4(_r),Fr;!(Fr=$r()).done;){var jr=Fr.value;if(jr.leadingDigitsPatterns().length>0){var zr=jr.leadingDigitsPatterns()[jr.leadingDigitsPatterns().length-1];if(Fe.search(zr)!==0)continue}if(matchesEntirely(Fe,jr.pattern()))return jr}}function addExtension(_r,Fe,$r,Fr){return Fe?Fr(_r,Fe,$r):_r}function formatIDD(_r,Fe,$r,Fr,jr){var zr=getCountryCallingCode$1(Fr,jr.metadata);if(zr===$r){var Vr=formatNationalNumber$1(_r,Fe,"NATIONAL",jr);return $r==="1"?$r+" "+Vr:Vr}var Wr=getIddPrefix(Fr,void 0,jr.metadata);if(Wr)return"".concat(Wr," ").concat($r," ").concat(formatNationalNumber$1(_r,null,"INTERNATIONAL",jr))}function ownKeys$G(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$G(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$G(Object($r),!0).forEach(function(Fr){_defineProperty$I(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$G(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$I(_r,Fe,$r){return Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _classCallCheck$9(_r,Fe){if(!(_r instanceof Fe))throw new TypeError("Cannot call a class as a function")}function _defineProperties$9(_r,Fe){for(var $r=0;$r<Fe.length;$r++){var Fr=Fe[$r];Fr.enumerable=Fr.enumerable||!1,Fr.configurable=!0,"value"in Fr&&(Fr.writable=!0),Object.defineProperty(_r,Fr.key,Fr)}}function _createClass$9(_r,Fe,$r){return Fe&&_defineProperties$9(_r.prototype,Fe),$r&&_defineProperties$9(_r,$r),Object.defineProperty(_r,"prototype",{writable:!1}),_r}var PhoneNumber=function(){function _r(Fe,$r,Fr){if(_classCallCheck$9(this,_r),!Fe)throw new TypeError("`country` or `countryCallingCode` not passed");if(!$r)throw new TypeError("`nationalNumber` not passed");if(!Fr)throw new TypeError("`metadata` not passed");var jr=getCountryAndCountryCallingCode(Fe,Fr),zr=jr.country,Vr=jr.countryCallingCode;this.country=zr,this.countryCallingCode=Vr,this.nationalNumber=$r,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return Fr}}return _createClass$9(_r,[{key:"setExt",value:function($r){this.ext=$r}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:getPossibleCountriesForNumber(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return isPossiblePhoneNumber(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return isValidNumber(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var $r=new Metadata(this.getMetadata());return $r.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function($r){return this.number===$r.number&&this.ext===$r.ext}},{key:"getType",value:function(){return getNumberType(this,{v2:!0},this.getMetadata())}},{key:"format",value:function($r,Fr){return formatNumber$2(this,$r,Fr?_objectSpread$G(_objectSpread$G({},Fr),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function($r){return this.format("NATIONAL",$r)}},{key:"formatInternational",value:function($r){return this.format("INTERNATIONAL",$r)}},{key:"getURI",value:function($r){return this.format("RFC3966",$r)}}]),_r}(),isCountryCode=function _r(Fe){return/^[A-Z]{2}$/.test(Fe)};function getCountryAndCountryCallingCode(_r,Fe){var $r,Fr,jr=new Metadata(Fe);return isCountryCode(_r)?($r=_r,jr.selectNumberingPlan($r),Fr=jr.countryCallingCode()):Fr=_r,{country:$r,countryCallingCode:Fr}}var CAPTURING_DIGIT_PATTERN=new RegExp("(["+VALID_DIGITS+"])");function stripIddPrefix(_r,Fe,$r,Fr){if(!!Fe){var jr=new Metadata(Fr);jr.selectNumberingPlan(Fe,$r);var zr=new RegExp(jr.IDDPrefix());if(_r.search(zr)===0){_r=_r.slice(_r.match(zr)[0].length);var Vr=_r.match(CAPTURING_DIGIT_PATTERN);if(!(Vr&&Vr[1]!=null&&Vr[1].length>0&&Vr[1]==="0"))return _r}}}function extractNationalNumberFromPossiblyIncompleteNumber(_r,Fe){if(_r&&Fe.numberingPlan.nationalPrefixForParsing()){var $r=new RegExp("^(?:"+Fe.numberingPlan.nationalPrefixForParsing()+")"),Fr=$r.exec(_r);if(Fr){var jr,zr,Vr=Fr.length-1,Wr=Vr>0&&Fr[Vr];if(Fe.nationalPrefixTransformRule()&&Wr)jr=_r.replace($r,Fe.nationalPrefixTransformRule()),Vr>1&&(zr=Fr[1]);else{var Kr=Fr[0];jr=_r.slice(Kr.length),Wr&&(zr=Fr[1])}var Gr;if(Wr){var Yr=_r.indexOf(Fr[1]),Qr=_r.slice(0,Yr);Qr===Fe.numberingPlan.nationalPrefix()&&(Gr=Fe.numberingPlan.nationalPrefix())}else Gr=Fr[0];return{nationalNumber:jr,nationalPrefix:Gr,carrierCode:zr}}}return{nationalNumber:_r}}function extractNationalNumber(_r,Fe){var $r=extractNationalNumberFromPossiblyIncompleteNumber(_r,Fe),Fr=$r.carrierCode,jr=$r.nationalNumber;if(jr!==_r){if(!shouldHaveExtractedNationalPrefix(_r,jr,Fe))return{nationalNumber:_r};if(Fe.possibleLengths()&&!isPossibleIncompleteNationalNumber(jr,Fe))return{nationalNumber:_r}}return{nationalNumber:jr,carrierCode:Fr}}function shouldHaveExtractedNationalPrefix(_r,Fe,$r){return!(matchesEntirely(_r,$r.nationalNumberPattern())&&!matchesEntirely(Fe,$r.nationalNumberPattern()))}function isPossibleIncompleteNationalNumber(_r,Fe){switch(checkNumberLength(_r,Fe)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(_r,Fe,$r,Fr){var jr=Fe?getCountryCallingCode$1(Fe,Fr):$r;if(_r.indexOf(jr)===0){Fr=new Metadata(Fr),Fr.selectNumberingPlan(Fe,$r);var zr=_r.slice(jr.length),Vr=extractNationalNumber(zr,Fr),Wr=Vr.nationalNumber,Kr=extractNationalNumber(_r,Fr),Gr=Kr.nationalNumber;if(!matchesEntirely(Gr,Fr.nationalNumberPattern())&&matchesEntirely(Wr,Fr.nationalNumberPattern())||checkNumberLength(Gr,Fr)==="TOO_LONG")return{countryCallingCode:jr,number:zr}}return{number:_r}}function extractCountryCallingCode(_r,Fe,$r,Fr){if(!_r)return{};var jr;if(_r[0]!=="+"){var zr=stripIddPrefix(_r,Fe,$r,Fr);if(zr&&zr!==_r)jr=!0,_r="+"+zr;else{if(Fe||$r){var Vr=extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(_r,Fe,$r,Fr),Wr=Vr.countryCallingCode,Kr=Vr.number;if(Wr)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:Wr,number:Kr}}return{number:_r}}}if(_r[1]==="0")return{};Fr=new Metadata(Fr);for(var Gr=2;Gr-1<=MAX_LENGTH_COUNTRY_CODE&&Gr<=_r.length;){var Yr=_r.slice(1,Gr);if(Fr.hasCallingCode(Yr))return Fr.selectNumberingPlan(Yr),{countryCallingCodeSource:jr?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:Yr,number:_r.slice(Gr)};Gr++}return{}}function _createForOfIteratorHelperLoose$3(_r,Fe){var $r=typeof Symbol!="undefined"&&_r[Symbol.iterator]||_r["@@iterator"];if($r)return($r=$r.call(_r)).next.bind($r);if(Array.isArray(_r)||($r=_unsupportedIterableToArray$o(_r))||Fe&&_r&&typeof _r.length=="number"){$r&&(_r=$r);var Fr=0;return function(){return Fr>=_r.length?{done:!0}:{done:!1,value:_r[Fr++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$o(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray$o(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray$o(_r,Fe)}}function _arrayLikeToArray$o(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}function getCountryByNationalNumber(_r,Fe){var $r=Fe.countries,Fr=Fe.defaultCountry,jr=Fe.metadata;jr=new Metadata(jr);for(var zr=[],Vr=_createForOfIteratorHelperLoose$3($r),Wr;!(Wr=Vr()).done;){var Kr=Wr.value;if(jr.country(Kr),jr.leadingDigits()){if(_r&&_r.search(jr.leadingDigits())===0)return Kr}else if(getNumberType({phone:_r,country:Kr},void 0,jr.metadata))if(Fr){if(Kr===Fr)return Kr;zr.push(Kr)}else return Kr}if(zr.length>0)return zr[0]}var USE_NON_GEOGRAPHIC_COUNTRY_CODE=!1;function getCountryByCallingCode(_r,Fe){var $r=Fe.nationalNumber,Fr=Fe.defaultCountry,jr=Fe.metadata;if(USE_NON_GEOGRAPHIC_COUNTRY_CODE&&jr.isNonGeographicCallingCode(_r))return"001";var zr=jr.getCountryCodesForCallingCode(_r);if(!!zr)return zr.length===1?zr[0]:getCountryByNationalNumber($r,{countries:zr,defaultCountry:Fr,metadata:jr.metadata})}var PLUS_SIGN="+",RFC3966_VISUAL_SEPARATOR_="[\\-\\.\\(\\)]?",RFC3966_PHONE_DIGIT_="(["+VALID_DIGITS+"]|"+RFC3966_VISUAL_SEPARATOR_+")",RFC3966_GLOBAL_NUMBER_DIGITS_="^\\"+PLUS_SIGN+RFC3966_PHONE_DIGIT_+"*["+VALID_DIGITS+"]"+RFC3966_PHONE_DIGIT_+"*$",RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_=new RegExp(RFC3966_GLOBAL_NUMBER_DIGITS_,"g"),ALPHANUM_=VALID_DIGITS,RFC3966_DOMAINLABEL_="["+ALPHANUM_+"]+((\\-)*["+ALPHANUM_+"])*",VALID_ALPHA_="a-zA-Z",RFC3966_TOPLABEL_="["+VALID_ALPHA_+"]+((\\-)*["+ALPHANUM_+"])*",RFC3966_DOMAINNAME_="^("+RFC3966_DOMAINLABEL_+"\\.)*"+RFC3966_TOPLABEL_+"\\.?$",RFC3966_DOMAINNAME_PATTERN_=new RegExp(RFC3966_DOMAINNAME_,"g"),RFC3966_PREFIX_="tel:",RFC3966_PHONE_CONTEXT_=";phone-context=",RFC3966_ISDN_SUBADDRESS_=";isub=";function extractPhoneContext(_r){var Fe=_r.indexOf(RFC3966_PHONE_CONTEXT_);if(Fe<0)return null;var $r=Fe+RFC3966_PHONE_CONTEXT_.length;if($r>=_r.length)return"";var Fr=_r.indexOf(";",$r);return Fr>=0?_r.substring($r,Fr):_r.substring($r)}function isPhoneContextValid(_r){return _r===null?!0:_r.length===0?!1:RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_.test(_r)||RFC3966_DOMAINNAME_PATTERN_.test(_r)}function extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(_r,Fe){var $r=Fe.extractFormattedPhoneNumber,Fr=extractPhoneContext(_r);if(!isPhoneContextValid(Fr))throw new ParseError("NOT_A_NUMBER");var jr;if(Fr===null)jr=$r(_r)||"";else{jr="",Fr.charAt(0)===PLUS_SIGN&&(jr+=Fr);var zr=_r.indexOf(RFC3966_PREFIX_),Vr;zr>=0?Vr=zr+RFC3966_PREFIX_.length:Vr=0;var Wr=_r.indexOf(RFC3966_PHONE_CONTEXT_);jr+=_r.substring(Vr,Wr)}var Kr=jr.indexOf(RFC3966_ISDN_SUBADDRESS_);if(Kr>0&&(jr=jr.substring(0,Kr)),jr!=="")return jr}var MAX_INPUT_STRING_LENGTH=250,PHONE_NUMBER_START_PATTERN=new RegExp("["+PLUS_CHARS+VALID_DIGITS+"]"),AFTER_PHONE_NUMBER_END_PATTERN=new RegExp("[^"+VALID_DIGITS+"#]+$");function parse$4(_r,Fe,$r){if(Fe=Fe||{},$r=new Metadata($r),Fe.defaultCountry&&!$r.hasCountry(Fe.defaultCountry))throw Fe.v2?new ParseError("INVALID_COUNTRY"):new Error("Unknown country: ".concat(Fe.defaultCountry));var Fr=parseInput(_r,Fe.v2,Fe.extract),jr=Fr.number,zr=Fr.ext,Vr=Fr.error;if(!jr){if(Fe.v2)throw Vr==="TOO_SHORT"?new ParseError("TOO_SHORT"):new ParseError("NOT_A_NUMBER");return{}}var Wr=parsePhoneNumber$3(jr,Fe.defaultCountry,Fe.defaultCallingCode,$r),Kr=Wr.country,Gr=Wr.nationalNumber,Yr=Wr.countryCallingCode,Qr=Wr.countryCallingCodeSource,Jr=Wr.carrierCode;if(!$r.hasSelectedNumberingPlan()){if(Fe.v2)throw new ParseError("INVALID_COUNTRY");return{}}if(!Gr||Gr.length<MIN_LENGTH_FOR_NSN){if(Fe.v2)throw new ParseError("TOO_SHORT");return{}}if(Gr.length>MAX_LENGTH_FOR_NSN){if(Fe.v2)throw new ParseError("TOO_LONG");return{}}if(Fe.v2){var Zr=new PhoneNumber(Yr,Gr,$r.metadata);return Kr&&(Zr.country=Kr),Jr&&(Zr.carrierCode=Jr),zr&&(Zr.ext=zr),Zr.__countryCallingCodeSource=Qr,Zr}var tn=(Fe.extended?$r.hasSelectedNumberingPlan():Kr)?matchesEntirely(Gr,$r.nationalNumberPattern()):!1;return Fe.extended?{country:Kr,countryCallingCode:Yr,carrierCode:Jr,valid:tn,possible:tn?!0:!!(Fe.extended===!0&&$r.possibleLengths()&&isPossibleNumber(Gr,$r)),phone:Gr,ext:zr}:tn?result(Kr,Gr,zr):{}}function _extractFormattedPhoneNumber(_r,Fe,$r){if(!!_r){if(_r.length>MAX_INPUT_STRING_LENGTH){if($r)throw new ParseError("TOO_LONG");return}if(Fe===!1)return _r;var Fr=_r.search(PHONE_NUMBER_START_PATTERN);if(!(Fr<0))return _r.slice(Fr).replace(AFTER_PHONE_NUMBER_END_PATTERN,"")}}function parseInput(_r,Fe,$r){var Fr=extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(_r,{extractFormattedPhoneNumber:function(Vr){return _extractFormattedPhoneNumber(Vr,$r,Fe)}});if(!Fr)return{};if(!isViablePhoneNumber(Fr))return isViablePhoneNumberStart(Fr)?{error:"TOO_SHORT"}:{};var jr=extractExtension(Fr);return jr.ext?jr:{number:Fr}}function result(_r,Fe,$r){var Fr={country:_r,phone:Fe};return $r&&(Fr.ext=$r),Fr}function parsePhoneNumber$3(_r,Fe,$r,Fr){var jr=extractCountryCallingCode(parseIncompletePhoneNumber(_r),Fe,$r,Fr.metadata),zr=jr.countryCallingCodeSource,Vr=jr.countryCallingCode,Wr=jr.number,Kr;if(Vr)Fr.selectNumberingPlan(Vr);else if(Wr&&(Fe||$r))Fr.selectNumberingPlan(Fe,$r),Fe&&(Kr=Fe),Vr=$r||getCountryCallingCode$1(Fe,Fr.metadata);else return{};if(!Wr)return{countryCallingCodeSource:zr,countryCallingCode:Vr};var Gr=extractNationalNumber(parseIncompletePhoneNumber(Wr),Fr),Yr=Gr.nationalNumber,Qr=Gr.carrierCode,Jr=getCountryByCallingCode(Vr,{nationalNumber:Yr,defaultCountry:Fe,metadata:Fr});return Jr&&(Kr=Jr,Jr==="001"||Fr.country(Kr)),{country:Kr,countryCallingCode:Vr,countryCallingCodeSource:zr,nationalNumber:Yr,carrierCode:Qr}}function ownKeys$F(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$F(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$F(Object($r),!0).forEach(function(Fr){_defineProperty$H(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$F(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$H(_r,Fe,$r){return Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function parsePhoneNumberWithError(_r,Fe,$r){return parse$4(_r,_objectSpread$F(_objectSpread$F({},Fe),{},{v2:!0}),$r)}function _typeof$M(_r){return _typeof$M=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$M(_r)}function ownKeys$E(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$E(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$E(Object($r),!0).forEach(function(Fr){_defineProperty$G(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$E(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$G(_r,Fe,$r){return Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _slicedToArray$c(_r,Fe){return _arrayWithHoles$c(_r)||_iterableToArrayLimit$c(_r,Fe)||_unsupportedIterableToArray$n(_r,Fe)||_nonIterableRest$c()}function _nonIterableRest$c(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$n(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray$n(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray$n(_r,Fe)}}function _arrayLikeToArray$n(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}function _iterableToArrayLimit$c(_r,Fe){var $r=_r==null?null:typeof Symbol!="undefined"&&_r[Symbol.iterator]||_r["@@iterator"];if($r!=null){var Fr=[],jr=!0,zr=!1,Vr,Wr;try{for($r=$r.call(_r);!(jr=(Vr=$r.next()).done)&&(Fr.push(Vr.value),!(Fe&&Fr.length===Fe));jr=!0);}catch(Kr){zr=!0,Wr=Kr}finally{try{!jr&&$r.return!=null&&$r.return()}finally{if(zr)throw Wr}}return Fr}}function _arrayWithHoles$c(_r){if(Array.isArray(_r))return _r}function normalizeArguments(_r){var Fe=Array.prototype.slice.call(_r),$r=_slicedToArray$c(Fe,4),Fr=$r[0],jr=$r[1],zr=$r[2],Vr=$r[3],Wr,Kr,Gr;if(typeof Fr=="string")Wr=Fr;else throw new TypeError("A text for parsing must be a string.");if(!jr||typeof jr=="string")Vr?(Kr=zr,Gr=Vr):(Kr=void 0,Gr=zr),jr&&(Kr=_objectSpread$E({defaultCountry:jr},Kr));else if(isObject$3(jr))zr?(Kr=jr,Gr=zr):Gr=jr;else throw new Error("Invalid second argument: ".concat(jr));return{text:Wr,options:Kr,metadata:Gr}}var isObject$3=function _r(Fe){return _typeof$M(Fe)==="object"};function ownKeys$D(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$D(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$D(Object($r),!0).forEach(function(Fr){_defineProperty$F(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$D(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$F(_r,Fe,$r){return Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function parsePhoneNumber$2(_r,Fe,$r){Fe&&Fe.defaultCountry&&!isSupportedCountry$1(Fe.defaultCountry,$r)&&(Fe=_objectSpread$D(_objectSpread$D({},Fe),{},{defaultCountry:void 0}));try{return parsePhoneNumberWithError(_r,Fe,$r)}catch(Fr){if(!(Fr instanceof ParseError))throw Fr}}function parsePhoneNumber$1(){var _r=normalizeArguments(arguments),Fe=_r.text,$r=_r.options,Fr=_r.metadata;return parsePhoneNumber$2(Fe,$r,Fr)}function _classCallCheck$8(_r,Fe){if(!(_r instanceof Fe))throw new TypeError("Cannot call a class as a function")}function _defineProperties$8(_r,Fe){for(var $r=0;$r<Fe.length;$r++){var Fr=Fe[$r];Fr.enumerable=Fr.enumerable||!1,Fr.configurable=!0,"value"in Fr&&(Fr.writable=!0),Object.defineProperty(_r,Fr.key,Fr)}}function _createClass$8(_r,Fe,$r){return Fe&&_defineProperties$8(_r.prototype,Fe),$r&&_defineProperties$8(_r,$r),Object.defineProperty(_r,"prototype",{writable:!1}),_r}var AsYouTypeState=function(){function _r(Fe){var $r=Fe.onCountryChange,Fr=Fe.onCallingCodeChange;_classCallCheck$8(this,_r),this.onCountryChange=$r,this.onCallingCodeChange=Fr}return _createClass$8(_r,[{key:"reset",value:function($r){var Fr=$r.country,jr=$r.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(Fr,jr)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberMatchesInput=!0,this.nationalPrefix=void 0,this.carrierCode=void 0,this.complexPrefixBeforeNationalSignificantNumber=void 0}},{key:"update",value:function($r){for(var Fr=0,jr=Object.keys($r);Fr<jr.length;Fr++){var zr=jr[Fr];this[zr]=$r[zr]}}},{key:"initCountryAndCallingCode",value:function($r,Fr){this.setCountry($r),this.setCallingCode(Fr)}},{key:"setCountry",value:function($r){this.country=$r,this.onCountryChange($r)}},{key:"setCallingCode",value:function($r){this.callingCode=$r,this.onCallingCodeChange($r,this.country)}},{key:"startInternationalNumber",value:function($r,Fr){this.international=!0,this.initCountryAndCallingCode($r,Fr)}},{key:"appendDigits",value:function($r){this.digits+=$r}},{key:"appendNationalSignificantNumberDigits",value:function($r){this.nationalSignificantNumber+=$r}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}]),_r}();function _createForOfIteratorHelperLoose$2(_r,Fe){var $r=typeof Symbol!="undefined"&&_r[Symbol.iterator]||_r["@@iterator"];if($r)return($r=$r.call(_r)).next.bind($r);if(Array.isArray(_r)||($r=_unsupportedIterableToArray$m(_r))||Fe&&_r&&typeof _r.length=="number"){$r&&(_r=$r);var Fr=0;return function(){return Fr>=_r.length?{done:!0}:{done:!1,value:_r[Fr++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$m(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray$m(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray$m(_r,Fe)}}function _arrayLikeToArray$m(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}var DIGIT_PLACEHOLDER="x",DIGIT_PLACEHOLDER_MATCHER=new RegExp(DIGIT_PLACEHOLDER);function repeat(_r,Fe){if(Fe<1)return"";for(var $r="";Fe>1;)Fe&1&&($r+=_r),Fe>>=1,_r+=_r;return $r+_r}function cutAndStripNonPairedParens(_r,Fe){return _r[Fe]===")"&&Fe++,stripNonPairedParens(_r.slice(0,Fe))}function stripNonPairedParens(_r){for(var Fe=[],$r=0;$r<_r.length;)_r[$r]==="("?Fe.push($r):_r[$r]===")"&&Fe.pop(),$r++;var Fr=0,jr="";Fe.push(_r.length);for(var zr=0,Vr=Fe;zr<Vr.length;zr++){var Wr=Vr[zr];jr+=_r.slice(Fr,Wr),Fr=Wr+1}return jr}function populateTemplateWithDigits(_r,Fe,$r){for(var Fr=_createForOfIteratorHelperLoose$2($r.split("")),jr;!(jr=Fr()).done;){var zr=jr.value;if(_r.slice(Fe+1).search(DIGIT_PLACEHOLDER_MATCHER)<0)return;Fe=_r.search(DIGIT_PLACEHOLDER_MATCHER),_r=_r.replace(DIGIT_PLACEHOLDER_MATCHER,zr)}return[_r,Fe]}function formatCompleteNumber(_r,Fe,$r){var Fr=$r.metadata,jr=$r.shouldTryNationalPrefixFormattingRule,zr=$r.getSeparatorAfterNationalPrefix,Vr=new RegExp("^(?:".concat(Fe.pattern(),")$"));if(Vr.test(_r.nationalSignificantNumber))return formatNationalNumberWithAndWithoutNationalPrefixFormattingRule(_r,Fe,{metadata:Fr,shouldTryNationalPrefixFormattingRule:jr,getSeparatorAfterNationalPrefix:zr})}function canFormatCompleteNumber(_r,Fe){return checkNumberLength(_r,Fe)==="IS_POSSIBLE"}function formatNationalNumberWithAndWithoutNationalPrefixFormattingRule(_r,Fe,$r){var Fr=$r.metadata,jr=$r.shouldTryNationalPrefixFormattingRule,zr=$r.getSeparatorAfterNationalPrefix;if(_r.nationalSignificantNumber,_r.international,_r.nationalPrefix,_r.carrierCode,jr(Fe)){var Vr=formatNationalNumber(_r,Fe,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:zr,metadata:Fr});if(Vr)return Vr}return formatNationalNumber(_r,Fe,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:zr,metadata:Fr})}function formatNationalNumber(_r,Fe,$r){var Fr=$r.metadata,jr=$r.useNationalPrefixFormattingRule,zr=$r.getSeparatorAfterNationalPrefix,Vr=formatNationalNumberUsingFormat(_r.nationalSignificantNumber,Fe,{carrierCode:_r.carrierCode,useInternationalFormat:_r.international,withNationalPrefix:jr,metadata:Fr});if(jr||(_r.nationalPrefix?Vr=_r.nationalPrefix+zr(Fe)+Vr:_r.complexPrefixBeforeNationalSignificantNumber&&(Vr=_r.complexPrefixBeforeNationalSignificantNumber+" "+Vr)),isValidFormattedNationalNumber(Vr,_r))return Vr}function isValidFormattedNationalNumber(_r,Fe){return parseDigits$1(_r)===Fe.getNationalDigits()}function _classCallCheck$7(_r,Fe){if(!(_r instanceof Fe))throw new TypeError("Cannot call a class as a function")}function _defineProperties$7(_r,Fe){for(var $r=0;$r<Fe.length;$r++){var Fr=Fe[$r];Fr.enumerable=Fr.enumerable||!1,Fr.configurable=!0,"value"in Fr&&(Fr.writable=!0),Object.defineProperty(_r,Fr.key,Fr)}}function _createClass$7(_r,Fe,$r){return Fe&&_defineProperties$7(_r.prototype,Fe),$r&&_defineProperties$7(_r,$r),Object.defineProperty(_r,"prototype",{writable:!1}),_r}var PatternParser=function(){function _r(){_classCallCheck$7(this,_r)}return _createClass$7(_r,[{key:"parse",value:function($r){if(this.context=[{or:!0,instructions:[]}],this.parsePattern($r),this.context.length!==1)throw new Error("Non-finalized contexts left when pattern parse ended");var Fr=this.context[0],jr=Fr.branches,zr=Fr.instructions;if(jr)return{op:"|",args:jr.concat([expandSingleElementArray(zr)])};if(zr.length===0)throw new Error("Pattern is required");return zr.length===1?zr[0]:zr}},{key:"startContext",value:function($r){this.context.push($r)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function($r){if(!$r)throw new Error("Pattern is required");var Fr=$r.match(OPERATOR);if(!Fr){if(ILLEGAL_CHARACTER_REGEXP.test($r))throw new Error("Illegal characters found in a pattern: ".concat($r));this.getContext().instructions=this.getContext().instructions.concat($r.split(""));return}var jr=Fr[1],zr=$r.slice(0,Fr.index),Vr=$r.slice(Fr.index+jr.length);switch(jr){case"(?:":zr&&this.parsePattern(zr),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(zr&&this.parsePattern(zr),this.getContext().instructions.length===0)throw new Error('No instructions found after "|" operator in an "or" group');var Wr=this.getContext(),Kr=Wr.branches;Kr.push(expandSingleElementArray(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:Kr});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(zr&&this.parsePattern(zr),!this.getContext().branches)if(this.context.length===1)this.getContext().branches=[];else throw new Error('"branches" not found in an "or" group context');this.getContext().branches.push(expandSingleElementArray(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":zr&&this.parsePattern(zr),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:parseOneOfSet(zr)});break;default:throw new Error("Unknown operator: ".concat(jr))}Vr&&this.parsePattern(Vr)}}]),_r}();function parseOneOfSet(_r){for(var Fe=[],$r=0;$r<_r.length;){if(_r[$r]==="-"){if($r===0||$r===_r.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(_r));for(var Fr=_r[$r-1].charCodeAt(0)+1,jr=_r[$r+1].charCodeAt(0)-1,zr=Fr;zr<=jr;)Fe.push(String.fromCharCode(zr)),zr++}else Fe.push(_r[$r]);$r++}return Fe}var ILLEGAL_CHARACTER_REGEXP=/[\(\)\[\]\?\:\|]/,OPERATOR=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function expandSingleElementArray(_r){return _r.length===1?_r[0]:_r}function _createForOfIteratorHelperLoose$1(_r,Fe){var $r=typeof Symbol!="undefined"&&_r[Symbol.iterator]||_r["@@iterator"];if($r)return($r=$r.call(_r)).next.bind($r);if(Array.isArray(_r)||($r=_unsupportedIterableToArray$l(_r))||Fe&&_r&&typeof _r.length=="number"){$r&&(_r=$r);var Fr=0;return function(){return Fr>=_r.length?{done:!0}:{done:!1,value:_r[Fr++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$l(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray$l(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray$l(_r,Fe)}}function _arrayLikeToArray$l(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}function _classCallCheck$6(_r,Fe){if(!(_r instanceof Fe))throw new TypeError("Cannot call a class as a function")}function _defineProperties$6(_r,Fe){for(var $r=0;$r<Fe.length;$r++){var Fr=Fe[$r];Fr.enumerable=Fr.enumerable||!1,Fr.configurable=!0,"value"in Fr&&(Fr.writable=!0),Object.defineProperty(_r,Fr.key,Fr)}}function _createClass$6(_r,Fe,$r){return Fe&&_defineProperties$6(_r.prototype,Fe),$r&&_defineProperties$6(_r,$r),Object.defineProperty(_r,"prototype",{writable:!1}),_r}var PatternMatcher=function(){function _r(Fe){_classCallCheck$6(this,_r),this.matchTree=new PatternParser().parse(Fe)}return _createClass$6(_r,[{key:"match",value:function($r){var Fr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},jr=Fr.allowOverflow;if(!$r)throw new Error("String is required");var zr=_match($r.split(""),this.matchTree,!0);if(zr&&zr.match&&delete zr.matchedChars,!(zr&&zr.overflow&&!jr))return zr}}]),_r}();function _match(_r,Fe,$r){if(typeof Fe=="string"){var Fr=_r.join("");return Fe.indexOf(Fr)===0?_r.length===Fe.length?{match:!0,matchedChars:_r}:{partialMatch:!0}:Fr.indexOf(Fe)===0?$r&&_r.length>Fe.length?{overflow:!0}:{match:!0,matchedChars:_r.slice(0,Fe.length)}:void 0}if(Array.isArray(Fe)){for(var jr=_r.slice(),zr=0;zr<Fe.length;){var Vr=Fe[zr],Wr=_match(jr,Vr,$r&&zr===Fe.length-1);if(Wr){if(Wr.overflow)return Wr;if(Wr.match){if(jr=jr.slice(Wr.matchedChars.length),jr.length===0)return zr===Fe.length-1?{match:!0,matchedChars:_r}:{partialMatch:!0}}else{if(Wr.partialMatch)return{partialMatch:!0};throw new Error(`Unsupported match result:
`.concat(JSON.stringify(Wr,null,2)))}}else return;zr++}return $r?{overflow:!0}:{match:!0,matchedChars:_r.slice(0,_r.length-jr.length)}}switch(Fe.op){case"|":for(var Kr,Gr=_createForOfIteratorHelperLoose$1(Fe.args),Yr;!(Yr=Gr()).done;){var Qr=Yr.value,Jr=_match(_r,Qr,$r);if(Jr){if(Jr.overflow)return Jr;if(Jr.match)return{match:!0,matchedChars:Jr.matchedChars};if(Jr.partialMatch)Kr=!0;else throw new Error(`Unsupported match result:
`.concat(JSON.stringify(Jr,null,2)))}}return Kr?{partialMatch:!0}:void 0;case"[]":for(var Zr=_createForOfIteratorHelperLoose$1(Fe.args),tn;!(tn=Zr()).done;){var en=tn.value;if(_r[0]===en)return _r.length===1?{match:!0,matchedChars:_r}:$r?{overflow:!0}:{match:!0,matchedChars:[en]}}return;default:throw new Error("Unsupported instruction tree: ".concat(Fe))}}function _createForOfIteratorHelperLoose(_r,Fe){var $r=typeof Symbol!="undefined"&&_r[Symbol.iterator]||_r["@@iterator"];if($r)return($r=$r.call(_r)).next.bind($r);if(Array.isArray(_r)||($r=_unsupportedIterableToArray$k(_r))||Fe&&_r&&typeof _r.length=="number"){$r&&(_r=$r);var Fr=0;return function(){return Fr>=_r.length?{done:!0}:{done:!1,value:_r[Fr++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$k(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray$k(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray$k(_r,Fe)}}function _arrayLikeToArray$k(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}function _classCallCheck$5(_r,Fe){if(!(_r instanceof Fe))throw new TypeError("Cannot call a class as a function")}function _defineProperties$5(_r,Fe){for(var $r=0;$r<Fe.length;$r++){var Fr=Fe[$r];Fr.enumerable=Fr.enumerable||!1,Fr.configurable=!0,"value"in Fr&&(Fr.writable=!0),Object.defineProperty(_r,Fr.key,Fr)}}function _createClass$5(_r,Fe,$r){return Fe&&_defineProperties$5(_r.prototype,Fe),$r&&_defineProperties$5(_r,$r),Object.defineProperty(_r,"prototype",{writable:!1}),_r}var DUMMY_DIGIT="9",LONGEST_NATIONAL_PHONE_NUMBER_LENGTH=15,LONGEST_DUMMY_PHONE_NUMBER=repeat(DUMMY_DIGIT,LONGEST_NATIONAL_PHONE_NUMBER_LENGTH),NATIONAL_PREFIX_SEPARATORS_PATTERN=/[- ]/,CREATE_CHARACTER_CLASS_PATTERN=function(){return/\[([^\[\]])*\]/g},CREATE_STANDALONE_DIGIT_PATTERN=function(){return/\d(?=[^,}][^,}])/g},NON_ALTERING_FORMAT_REG_EXP=new RegExp("["+VALID_PUNCTUATION+"]*\\$1["+VALID_PUNCTUATION+"]*(\\$\\d["+VALID_PUNCTUATION+"]*)*$"),MIN_LEADING_DIGITS_LENGTH=3,AsYouTypeFormatter=function(){function _r(Fe){Fe.state;var $r=Fe.metadata;_classCallCheck$5(this,_r),this.metadata=$r,this.resetFormat()}return _createClass$5(_r,[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function($r,Fr){this.resetFormat(),$r?(this.isNANP=$r.callingCode()==="1",this.matchingFormats=$r.formats(),Fr.nationalSignificantNumber&&this.narrowDownMatchingFormats(Fr)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function($r,Fr){var jr=this;if(canFormatCompleteNumber(Fr.nationalSignificantNumber,this.metadata))for(var zr=_createForOfIteratorHelperLoose(this.matchingFormats),Vr;!(Vr=zr()).done;){var Wr=Vr.value,Kr=formatCompleteNumber(Fr,Wr,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(Yr){return jr.shouldTryNationalPrefixFormattingRule(Yr,{international:Fr.international,nationalPrefix:Fr.nationalPrefix})},getSeparatorAfterNationalPrefix:function(Yr){return jr.getSeparatorAfterNationalPrefix(Yr)}});if(Kr)return this.resetFormat(),this.chosenFormat=Wr,this.setNationalNumberTemplate(Kr.replace(/\d/g,DIGIT_PLACEHOLDER),Fr),this.populatedNationalNumberTemplate=Kr,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(DIGIT_PLACEHOLDER),Kr}return this.formatNationalNumberWithNextDigits($r,Fr)}},{key:"formatNationalNumberWithNextDigits",value:function($r,Fr){var jr=this.chosenFormat,zr=this.chooseFormat(Fr);if(zr)return zr===jr?this.formatNextNationalNumberDigits($r):this.formatNextNationalNumberDigits(Fr.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function($r){var Fr=this,jr=$r.nationalSignificantNumber,zr=$r.nationalPrefix,Vr=$r.international,Wr=jr,Kr=Wr.length-MIN_LEADING_DIGITS_LENGTH;Kr<0&&(Kr=0),this.matchingFormats=this.matchingFormats.filter(function(Gr){return Fr.formatSuits(Gr,Vr,zr)&&Fr.formatMatches(Gr,Wr,Kr)}),this.chosenFormat&&this.matchingFormats.indexOf(this.chosenFormat)===-1&&this.resetFormat()}},{key:"formatSuits",value:function($r,Fr,jr){return!(jr&&!$r.usesNationalPrefix()&&!$r.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!Fr&&!jr&&$r.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function($r,Fr,jr){var zr=$r.leadingDigitsPatterns().length;if(zr===0)return!0;jr=Math.min(jr,zr-1);var Vr=$r.leadingDigitsPatterns()[jr];if(Fr.length<MIN_LEADING_DIGITS_LENGTH)try{return new PatternMatcher(Vr).match(Fr,{allowOverflow:!0})!==void 0}catch(Wr){return console.error(Wr),!0}return new RegExp("^(".concat(Vr,")")).test(Fr)}},{key:"getFormatFormat",value:function($r,Fr){return Fr?$r.internationalFormat():$r.format()}},{key:"chooseFormat",value:function($r){for(var Fr=this,jr=function(){var Gr=Vr.value;return Fr.chosenFormat===Gr?"break":NON_ALTERING_FORMAT_REG_EXP.test(Fr.getFormatFormat(Gr,$r.international))?Fr.createTemplateForFormat(Gr,$r)?(Fr.chosenFormat=Gr,"break"):(Fr.matchingFormats=Fr.matchingFormats.filter(function(Yr){return Yr!==Gr}),"continue"):"continue"},zr=_createForOfIteratorHelperLoose(this.matchingFormats.slice()),Vr;!(Vr=zr()).done;){var Wr=jr();if(Wr==="break")break}return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function($r,Fr){if(!($r.pattern().indexOf("|")>=0)){var jr=this.getTemplateForFormat($r,Fr);if(jr)return this.setNationalNumberTemplate(jr,Fr),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function($r){return this.isNANP||$r&&$r.nationalPrefixFormattingRule()&&NATIONAL_PREFIX_SEPARATORS_PATTERN.test($r.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function($r,Fr){var jr=$r.IDDPrefix,zr=$r.missingPlus;return jr?Fr&&Fr.spacing===!1?jr:jr+" ":zr?"":"+"}},{key:"getTemplate",value:function($r){if(!!this.template){for(var Fr=-1,jr=0,zr=$r.international?this.getInternationalPrefixBeforeCountryCallingCode($r,{spacing:!1}):"";jr<zr.length+$r.getDigitsWithoutInternationalPrefix().length;)Fr=this.template.indexOf(DIGIT_PLACEHOLDER,Fr+1),jr++;return cutAndStripNonPairedParens(this.template,Fr+1)}}},{key:"setNationalNumberTemplate",value:function($r,Fr){this.nationalNumberTemplate=$r,this.populatedNationalNumberTemplate=$r,this.populatedNationalNumberTemplatePosition=-1,Fr.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(Fr).replace(/[\d\+]/g,DIGIT_PLACEHOLDER)+repeat(DIGIT_PLACEHOLDER,Fr.callingCode.length)+" "+$r:this.template=$r}},{key:"getTemplateForFormat",value:function($r,Fr){var jr=Fr.nationalSignificantNumber,zr=Fr.international,Vr=Fr.nationalPrefix,Wr=Fr.complexPrefixBeforeNationalSignificantNumber,Kr=$r.pattern();Kr=Kr.replace(CREATE_CHARACTER_CLASS_PATTERN(),"\\d").replace(CREATE_STANDALONE_DIGIT_PATTERN(),"\\d");var Gr=LONGEST_DUMMY_PHONE_NUMBER.match(Kr)[0];if(!(jr.length>Gr.length)){var Yr=new RegExp("^"+Kr+"$"),Qr=jr.replace(/\d/g,DUMMY_DIGIT);Yr.test(Qr)&&(Gr=Qr);var Jr=this.getFormatFormat($r,zr),Zr;if(this.shouldTryNationalPrefixFormattingRule($r,{international:zr,nationalPrefix:Vr})){var tn=Jr.replace(FIRST_GROUP_PATTERN,$r.nationalPrefixFormattingRule());if(parseDigits$1($r.nationalPrefixFormattingRule())===(Vr||"")+parseDigits$1("$1")&&(Jr=tn,Zr=!0,Vr))for(var en=Vr.length;en>0;)Jr=Jr.replace(/\d/,DIGIT_PLACEHOLDER),en--}var rn=Gr.replace(new RegExp(Kr),Jr).replace(new RegExp(DUMMY_DIGIT,"g"),DIGIT_PLACEHOLDER);return Zr||(Wr?rn=repeat(DIGIT_PLACEHOLDER,Wr.length)+" "+rn:Vr&&(rn=repeat(DIGIT_PLACEHOLDER,Vr.length)+this.getSeparatorAfterNationalPrefix($r)+rn)),zr&&(rn=applyInternationalSeparatorStyle(rn)),rn}}},{key:"formatNextNationalNumberDigits",value:function($r){var Fr=populateTemplateWithDigits(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,$r);if(!Fr){this.resetFormat();return}return this.populatedNationalNumberTemplate=Fr[0],this.populatedNationalNumberTemplatePosition=Fr[1],cutAndStripNonPairedParens(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function($r,Fr){var jr=Fr.international,zr=Fr.nationalPrefix;if($r.nationalPrefixFormattingRule()){var Vr=$r.usesNationalPrefix();if(Vr&&zr||!Vr&&!jr)return!0}}}]),_r}();function _slicedToArray$b(_r,Fe){return _arrayWithHoles$b(_r)||_iterableToArrayLimit$b(_r,Fe)||_unsupportedIterableToArray$j(_r,Fe)||_nonIterableRest$b()}function _nonIterableRest$b(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$j(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray$j(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray$j(_r,Fe)}}function _arrayLikeToArray$j(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}function _iterableToArrayLimit$b(_r,Fe){var $r=_r==null?null:typeof Symbol!="undefined"&&_r[Symbol.iterator]||_r["@@iterator"];if($r!=null){var Fr=[],jr=!0,zr=!1,Vr,Wr;try{for($r=$r.call(_r);!(jr=(Vr=$r.next()).done)&&(Fr.push(Vr.value),!(Fe&&Fr.length===Fe));jr=!0);}catch(Kr){zr=!0,Wr=Kr}finally{try{!jr&&$r.return!=null&&$r.return()}finally{if(zr)throw Wr}}return Fr}}function _arrayWithHoles$b(_r){if(Array.isArray(_r))return _r}function _classCallCheck$4(_r,Fe){if(!(_r instanceof Fe))throw new TypeError("Cannot call a class as a function")}function _defineProperties$4(_r,Fe){for(var $r=0;$r<Fe.length;$r++){var Fr=Fe[$r];Fr.enumerable=Fr.enumerable||!1,Fr.configurable=!0,"value"in Fr&&(Fr.writable=!0),Object.defineProperty(_r,Fr.key,Fr)}}function _createClass$4(_r,Fe,$r){return Fe&&_defineProperties$4(_r.prototype,Fe),$r&&_defineProperties$4(_r,$r),Object.defineProperty(_r,"prototype",{writable:!1}),_r}var VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART="["+VALID_PUNCTUATION+VALID_DIGITS+"]+",VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART_PATTERN=new RegExp("^"+VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART+"$","i"),VALID_FORMATTED_PHONE_NUMBER_PART="(?:["+PLUS_CHARS+"]["+VALID_PUNCTUATION+VALID_DIGITS+"]*|["+VALID_PUNCTUATION+VALID_DIGITS+"]+)",AFTER_PHONE_NUMBER_DIGITS_END_PATTERN=new RegExp("[^"+VALID_PUNCTUATION+VALID_DIGITS+"]+.*$"),COMPLEX_NATIONAL_PREFIX=/[^\d\[\]]/,AsYouTypeParser=function(){function _r(Fe){var $r=Fe.defaultCountry,Fr=Fe.defaultCallingCode,jr=Fe.metadata,zr=Fe.onNationalSignificantNumberChange;_classCallCheck$4(this,_r),this.defaultCountry=$r,this.defaultCallingCode=Fr,this.metadata=jr,this.onNationalSignificantNumberChange=zr}return _createClass$4(_r,[{key:"input",value:function($r,Fr){var jr=extractFormattedDigitsAndPlus($r),zr=_slicedToArray$b(jr,2),Vr=zr[0],Wr=zr[1],Kr=parseDigits$1(Vr),Gr;return Wr&&(Fr.digits||(Fr.startInternationalNumber(),Kr||(Gr=!0))),Kr&&this.inputDigits(Kr,Fr),{digits:Kr,justLeadingPlus:Gr}}},{key:"inputDigits",value:function($r,Fr){var jr=Fr.digits,zr=jr.length<3&&jr.length+$r.length>=3;if(Fr.appendDigits($r),zr&&this.extractIddPrefix(Fr),this.isWaitingForCountryCallingCode(Fr)){if(!this.extractCountryCallingCode(Fr))return}else Fr.appendNationalSignificantNumberDigits($r);Fr.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(Fr.getNationalDigits(),function(Vr){return Fr.update(Vr)})}},{key:"isWaitingForCountryCallingCode",value:function($r){var Fr=$r.international,jr=$r.callingCode;return Fr&&!jr}},{key:"extractCountryCallingCode",value:function($r){var Fr=extractCountryCallingCode("+"+$r.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),jr=Fr.countryCallingCode,zr=Fr.number;if(jr)return $r.setCallingCode(jr),$r.update({nationalSignificantNumber:zr}),!0}},{key:"reset",value:function($r){if($r){this.hasSelectedNumberingPlan=!0;var Fr=$r._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=Fr&&COMPLEX_NATIONAL_PREFIX.test(Fr)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function($r,Fr){if(!!this.hasSelectedNumberingPlan){var jr=extractNationalNumberFromPossiblyIncompleteNumber($r,this.metadata),zr=jr.nationalPrefix,Vr=jr.nationalNumber,Wr=jr.carrierCode;if(Vr!==$r)return this.onExtractedNationalNumber(zr,Wr,Vr,$r,Fr),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function($r,Fr,jr){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber($r,jr);if(!!this.couldPossiblyExtractAnotherNationalSignificantNumber){var zr=extractNationalNumberFromPossiblyIncompleteNumber($r,this.metadata),Vr=zr.nationalPrefix,Wr=zr.nationalNumber,Kr=zr.carrierCode;if(Wr!==Fr)return this.onExtractedNationalNumber(Vr,Kr,Wr,$r,jr),!0}}},{key:"onExtractedNationalNumber",value:function($r,Fr,jr,zr,Vr){var Wr,Kr,Gr=zr.lastIndexOf(jr);if(Gr>=0&&Gr===zr.length-jr.length){Kr=!0;var Yr=zr.slice(0,Gr);Yr!==$r&&(Wr=Yr)}Vr({nationalPrefix:$r,carrierCode:Fr,nationalSignificantNumber:jr,nationalSignificantNumberMatchesInput:Kr,complexPrefixBeforeNationalSignificantNumber:Wr}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function($r){if(this.extractAnotherNationalSignificantNumber($r.getNationalDigits(),$r.nationalSignificantNumber,function(Fr){return $r.update(Fr)}))return!0;if(this.extractIddPrefix($r))return this.extractCallingCodeAndNationalSignificantNumber($r),!0;if(this.fixMissingPlus($r))return this.extractCallingCodeAndNationalSignificantNumber($r),!0}},{key:"extractIddPrefix",value:function($r){var Fr=$r.international,jr=$r.IDDPrefix,zr=$r.digits;if($r.nationalSignificantNumber,!(Fr||jr)){var Vr=stripIddPrefix(zr,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(Vr!==void 0&&Vr!==zr)return $r.update({IDDPrefix:zr.slice(0,zr.length-Vr.length)}),this.startInternationalNumber($r,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function($r){if(!$r.international){var Fr=extractCountryCallingCodeFromInternationalNumberWithoutPlusSign($r.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),jr=Fr.countryCallingCode;if(Fr.number,jr)return $r.update({missingPlus:!0}),this.startInternationalNumber($r,{country:$r.country,callingCode:jr}),!0}}},{key:"startInternationalNumber",value:function($r,Fr){var jr=Fr.country,zr=Fr.callingCode;$r.startInternationalNumber(jr,zr),$r.nationalSignificantNumber&&($r.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function($r){this.extractCountryCallingCode($r)&&this.extractNationalSignificantNumber($r.getNationalDigits(),function(Fr){return $r.update(Fr)})}}]),_r}();function extractFormattedPhoneNumber(_r){var Fe=_r.search(VALID_FORMATTED_PHONE_NUMBER_PART);if(!(Fe<0)){_r=_r.slice(Fe);var $r;return _r[0]==="+"&&($r=!0,_r=_r.slice(1)),_r=_r.replace(AFTER_PHONE_NUMBER_DIGITS_END_PATTERN,""),$r&&(_r="+"+_r),_r}}function _extractFormattedDigitsAndPlus(_r){var Fe=extractFormattedPhoneNumber(_r)||"";return Fe[0]==="+"?[Fe.slice(1),!0]:[Fe]}function extractFormattedDigitsAndPlus(_r){var Fe=_extractFormattedDigitsAndPlus(_r),$r=_slicedToArray$b(Fe,2),Fr=$r[0],jr=$r[1];return VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART_PATTERN.test(Fr)||(Fr=""),[Fr,jr]}function _typeof$L(_r){return _typeof$L=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$L(_r)}function _slicedToArray$a(_r,Fe){return _arrayWithHoles$a(_r)||_iterableToArrayLimit$a(_r,Fe)||_unsupportedIterableToArray$i(_r,Fe)||_nonIterableRest$a()}function _nonIterableRest$a(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$i(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray$i(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray$i(_r,Fe)}}function _arrayLikeToArray$i(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}function _iterableToArrayLimit$a(_r,Fe){var $r=_r==null?null:typeof Symbol!="undefined"&&_r[Symbol.iterator]||_r["@@iterator"];if($r!=null){var Fr=[],jr=!0,zr=!1,Vr,Wr;try{for($r=$r.call(_r);!(jr=(Vr=$r.next()).done)&&(Fr.push(Vr.value),!(Fe&&Fr.length===Fe));jr=!0);}catch(Kr){zr=!0,Wr=Kr}finally{try{!jr&&$r.return!=null&&$r.return()}finally{if(zr)throw Wr}}return Fr}}function _arrayWithHoles$a(_r){if(Array.isArray(_r))return _r}function _classCallCheck$3(_r,Fe){if(!(_r instanceof Fe))throw new TypeError("Cannot call a class as a function")}function _defineProperties$3(_r,Fe){for(var $r=0;$r<Fe.length;$r++){var Fr=Fe[$r];Fr.enumerable=Fr.enumerable||!1,Fr.configurable=!0,"value"in Fr&&(Fr.writable=!0),Object.defineProperty(_r,Fr.key,Fr)}}function _createClass$3(_r,Fe,$r){return Fe&&_defineProperties$3(_r.prototype,Fe),$r&&_defineProperties$3(_r,$r),Object.defineProperty(_r,"prototype",{writable:!1}),_r}var AsYouType$1=function(){function _r(Fe,$r){_classCallCheck$3(this,_r),this.metadata=new Metadata($r);var Fr=this.getCountryAndCallingCode(Fe),jr=_slicedToArray$a(Fr,2),zr=jr[0],Vr=jr[1];this.defaultCountry=zr,this.defaultCallingCode=Vr,this.reset()}return _createClass$3(_r,[{key:"getCountryAndCallingCode",value:function($r){var Fr,jr;return $r&&(_typeof$L($r)==="object"?(Fr=$r.defaultCountry,jr=$r.defaultCallingCode):Fr=$r),Fr&&!this.metadata.hasCountry(Fr)&&(Fr=void 0),[Fr,jr]}},{key:"input",value:function($r){var Fr=this.parser.input($r,this.state),jr=Fr.digits,zr=Fr.justLeadingPlus;if(zr)this.formattedOutput="+";else if(jr){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var Vr;if(this.metadata.hasSelectedNumberingPlan()&&(Vr=this.formatter.format(jr,this.state)),Vr===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var Wr=this.state.getNationalDigits();Wr&&(Vr=this.formatter.format(Wr,this.state))}this.formattedOutput=Vr?this.getFullNumber(Vr):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var $r=this;return this.state=new AsYouTypeState({onCountryChange:function(jr){$r.country=jr},onCallingCodeChange:function(jr,zr){$r.metadata.selectNumberingPlan(zr,jr),$r.formatter.reset($r.metadata.numberingPlan,$r.state),$r.parser.reset($r.metadata.numberingPlan)}}),this.formatter=new AsYouTypeFormatter({state:this.state,metadata:this.metadata}),this.parser=new AsYouTypeParser({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){$r.determineTheCountryIfNeeded(),$r.formatter.reset($r.metadata.numberingPlan,$r.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){var $r=this.state.digits;if($r)return this._getCountry()}},{key:"_getCountry",value:function(){var $r=this.state.country;return $r}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function($r){var Fr=this;if(this.isInternational()){var jr=function(Wr){return Fr.formatter.getInternationalPrefixBeforeCountryCallingCode(Fr.state,{spacing:!!Wr})+Wr},zr=this.state.callingCode;return jr(zr?$r?"".concat(zr," ").concat($r):zr:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return $r}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var $r=this.state,Fr=$r.nationalSignificantNumber,jr=$r.complexPrefixBeforeNationalSignificantNumber,zr=$r.nationalPrefix,Vr=Fr,Wr=jr||zr;return Wr&&(Vr=Wr+Vr),Vr}},{key:"getNonFormattedNumber",value:function(){var $r=this.state.nationalSignificantNumberMatchesInput;return this.getFullNumber($r?this.getNonFormattedNationalNumberWithPrefix():this.state.getNationalDigits())}},{key:"getNonFormattedTemplate",value:function(){var $r=this.getNonFormattedNumber();if($r)return $r.replace(/[\+\d]/g,DIGIT_PLACEHOLDER)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var $r=this.state.callingCode,Fr=this.metadata.getCountryCodesForCallingCode($r);return Fr&&Fr.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(getCountryByCallingCode(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var $r=this.state,Fr=$r.digits,jr=$r.callingCode,zr=$r.country,Vr=$r.nationalSignificantNumber;if(!!Fr){if(this.isInternational())return jr?"+"+jr+Vr:"+"+Fr;if(zr||jr){var Wr=zr?this.metadata.countryCallingCode():jr;return"+"+Wr+Vr}}}},{key:"getNumber",value:function(){var $r=this.state,Fr=$r.nationalSignificantNumber,jr=$r.carrierCode,zr=$r.callingCode,Vr=this._getCountry();if(!!Fr&&!(!Vr&&!zr)){if(Vr&&Vr===this.defaultCountry){var Wr=new Metadata(this.metadata.metadata);Wr.selectNumberingPlan(Vr);var Kr=Wr.numberingPlan.callingCode(),Gr=this.metadata.getCountryCodesForCallingCode(Kr);if(Gr.length>1){var Yr=getCountryByNationalNumber(Fr,{countries:Gr,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});Yr&&(Vr=Yr)}}var Qr=new PhoneNumber(Vr||zr,Fr,this.metadata.metadata);return jr&&(Qr.carrierCode=jr),Qr}}},{key:"isPossible",value:function(){var $r=this.getNumber();return $r?$r.isPossible():!1}},{key:"isValid",value:function(){var $r=this.getNumber();return $r?$r.isValid():!1}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}]),_r}();function getCountries$1(_r){return new Metadata(_r).getCountries()}function getExampleNumber$1(_r,Fe,$r){if(Fe[_r])return new PhoneNumber(_r,Fe[_r],$r)}function parsePhoneNumber(){return withMetadataArgument(parsePhoneNumber$1,arguments)}function AsYouType(_r){return AsYouType$1.call(this,_r,metadata)}AsYouType.prototype=Object.create(AsYouType$1.prototype,{});AsYouType.prototype.constructor=AsYouType;function isSupportedCountry(){return withMetadataArgument(isSupportedCountry$1,arguments)}function getCountries(){return withMetadataArgument(getCountries$1,arguments)}function getCountryCallingCode(){return withMetadataArgument(getCountryCallingCode$1,arguments)}function getExampleNumber(){return withMetadataArgument(getExampleNumber$1,arguments)}(function(){try{if(typeof document!="undefined"){var _r=document.createElement("style");_r.appendChild(document.createTextNode("@-webkit-keyframes maz-spin-34f40819{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes maz-spin-34f40819{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.m-spinner[data-v-34f40819]{-webkit-animation:maz-spin-34f40819 1s linear infinite;animation:maz-spin-34f40819 1s linear infinite;fill:currentColor;margin:0!important}.m-spinner--normal[data-v-34f40819]{color:var(--maz-color-text)}.m-spinner--primary[data-v-34f40819]{color:var(--maz-color-primary)}.m-spinner--secondary[data-v-34f40819]{color:var(--maz-color-secondary)}.m-spinner--info[data-v-34f40819]{color:var(--maz-color-info)}.m-spinner--warning[data-v-34f40819]{color:var(--maz-color-warning)}.m-spinner--danger[data-v-34f40819]{color:var(--maz-color-danger)}.m-spinner--success[data-v-34f40819]{color:var(--maz-color-success)}.m-spinner--black[data-v-34f40819]{color:var(--maz-color-black)}.m-spinner--white[data-v-34f40819],.m-spinner--transparent[data-v-34f40819]{color:var(--maz-color-white)}.m-btn[data-v-ce89b3c0]{border-width:var(--maz-border-width);border-style:solid;border-color:transparent;text-align:center;font-size:1rem;line-height:1.5rem;color:var(--maz-color-text)}.m-btn span[data-v-ce89b3c0]{line-height:1}.m-btn__icon-left[data-v-ce89b3c0]{margin-left:-.25rem;margin-right:.5rem;line-height:1}.m-btn__icon-right[data-v-ce89b3c0]{margin-right:-.25rem;margin-left:.5rem;line-height:1}.m-btn.--cursor-pointer[data-v-ce89b3c0]{cursor:pointer}.m-btn.--cursor-default[data-v-ce89b3c0]{cursor:default}.m-btn.--is-link[data-v-ce89b3c0]{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:transparent;outline:2px solid transparent;outline-offset:2px;-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1)}.m-btn.--is-link[data-v-ce89b3c0]:not(.--no-leading){line-height:2.25rem}.m-btn.--is-link[data-v-ce89b3c0]:not(:disabled):hover:not(.--no-underline),.m-btn.--is-link[data-v-ce89b3c0]:not(:disabled):focus:not(.--no-underline){text-decoration-line:underline}.m-btn.--is-link.--secondary[data-v-ce89b3c0]{color:var(--maz-color-secondary)}.m-btn.--is-link.--info[data-v-ce89b3c0]{color:var(--maz-color-info)}.m-btn.--is-link.--warning[data-v-ce89b3c0]{color:var(--maz-color-warning-600)}.m-btn.--is-link.--danger[data-v-ce89b3c0]{color:var(--maz-color-danger-600)}.m-btn.--is-link.--success[data-v-ce89b3c0]{color:var(--maz-color-success-600)}.m-btn.--is-link.--white[data-v-ce89b3c0]{color:var(--maz-color-white)}.m-btn.--is-link.--black[data-v-ce89b3c0]{color:var(--maz-color-black)}.m-btn.--is-button[data-v-ce89b3c0]{position:relative;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;overflow:hidden;border-radius:var(--maz-border-radius);border-color:transparent;background-color:transparent;font-weight:500;text-decoration-line:none;-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1)}.m-btn.--is-button.--rounded[data-v-ce89b3c0]{border-radius:9999px}.m-btn.--is-button.--xl[data-v-ce89b3c0]{padding:1.325rem 2rem;font-size:1.25rem;line-height:1.75rem}.m-btn.--is-button.--lg[data-v-ce89b3c0]{padding:1rem 1.5rem;font-size:1.125rem;line-height:1.75rem}.m-btn.--is-button.--md[data-v-ce89b3c0]{padding:.88rem 1rem;font-size:1rem;line-height:1.5rem}.m-btn.--is-button.--sm[data-v-ce89b3c0]{padding:.625rem .75rem;font-size:.875rem;line-height:1.25rem}.m-btn.--is-button.--xs[data-v-ce89b3c0]{padding:.3rem .5rem;font-size:.875rem;line-height:1.25rem}.m-btn.--is-button.--mini[data-v-ce89b3c0]{padding:.2rem .25rem;font-size:.75rem;line-height:1rem}.m-btn.--is-button.--icon[data-v-ce89b3c0]{padding-top:.5rem;padding-bottom:.5rem}.m-btn.--is-button[data-v-ce89b3c0]{-webkit-transition:background .3s ease-in-out 0ms,color .3s ease-in-out 0ms;transition:background .3s ease-in-out 0ms,color .3s ease-in-out 0ms}.m-btn.--is-button[data-v-ce89b3c0]:not(.--disabled):hover,.m-btn.--is-button[data-v-ce89b3c0]:not(.--disabled):focus{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.m-btn.--is-button.--fab[data-v-ce89b3c0]{display:-webkit-box;display:-ms-flexbox;display:flex;height:3rem;width:3rem;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;border-radius:9999px;padding:0}.m-btn.--is-button.--fab[data-v-ce89b3c0]:not(.--no-elevation){-webkit-box-shadow:0 5px 10px 0 hsla(0,0%,0%,.05);box-shadow:0 5px 10px #0000000d}.m-btn.--is-button.--block[data-v-ce89b3c0]{width:100%}.m-btn.--is-button.--primary[data-v-ce89b3c0]{background-color:var(--maz-color-primary);color:var(--maz-color-primary-contrast)}.m-btn.--is-button.--primary[data-v-ce89b3c0]:not(:disabled):hover,.m-btn.--is-button.--primary[data-v-ce89b3c0]:not(:disabled):focus{background-color:var(--maz-color-primary-600)}.m-btn.--is-button.--secondary[data-v-ce89b3c0]{background-color:var(--maz-color-secondary);color:var(--maz-color-secondary-contrast)}.m-btn.--is-button.--secondary[data-v-ce89b3c0]:not(:disabled):hover,.m-btn.--is-button.--secondary[data-v-ce89b3c0]:not(:disabled):focus{background-color:var(--maz-color-secondary-600)}.m-btn.--is-button.--info[data-v-ce89b3c0]{background-color:var(--maz-color-info);color:var(--maz-color-info-contrast)}.m-btn.--is-button.--info[data-v-ce89b3c0]:not(:disabled):hover,.m-btn.--is-button.--info[data-v-ce89b3c0]:not(:disabled):focus{background-color:var(--maz-color-info-600)}.m-btn.--is-button.--success[data-v-ce89b3c0]{background-color:var(--maz-color-success);color:var(--maz-color-success-contrast)}.m-btn.--is-button.--success[data-v-ce89b3c0]:not(:disabled):hover,.m-btn.--is-button.--success[data-v-ce89b3c0]:not(:disabled):focus{background-color:var(--maz-color-success-600)}.m-btn.--is-button.--warning[data-v-ce89b3c0]{background-color:var(--maz-color-warning);color:var(--maz-color-warning-contrast)}.m-btn.--is-button.--warning[data-v-ce89b3c0]:not(:disabled):hover,.m-btn.--is-button.--warning[data-v-ce89b3c0]:not(:disabled):focus{background-color:var(--maz-color-warning-600)}.m-btn.--is-button.--danger[data-v-ce89b3c0]{background-color:var(--maz-color-danger);color:var(--maz-color-white)}.m-btn.--is-button.--danger[data-v-ce89b3c0]:not(:disabled):hover,.m-btn.--is-button.--danger[data-v-ce89b3c0]:not(:disabled):focus{background-color:var(--maz-color-danger-600)}.m-btn.--is-button.--white[data-v-ce89b3c0]{background-color:var(--maz-color-white);color:var(--maz-color-white-contrast)}.m-btn.--is-button.--white[data-v-ce89b3c0]:not(:disabled):hover,.m-btn.--is-button.--white[data-v-ce89b3c0]:not(:disabled):focus{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.m-btn.--is-button.--black[data-v-ce89b3c0]{background-color:var(--maz-color-black);color:var(--maz-color-black-contrast)}.m-btn.--is-button.--black[data-v-ce89b3c0]:not(:disabled):hover,.m-btn.--is-button.--black[data-v-ce89b3c0]:not(:disabled):focus{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.m-btn.--is-button.--transparent[data-v-ce89b3c0]{background-color:transparent}.m-btn.--is-button.--transparent[data-v-ce89b3c0]:not(:disabled):hover,.m-btn.--is-button.--transparent[data-v-ce89b3c0]:not(:disabled):focus{background-color:#0000001f}.m-btn.--is-button.--primary-outline[data-v-ce89b3c0]{border-color:var(--maz-color-primary);color:var(--maz-color-primary)}.m-btn.--is-button.--primary-outline[data-v-ce89b3c0]:not(:disabled):hover,.m-btn.--is-button.--primary-outline[data-v-ce89b3c0]:not(:disabled):focus{background-color:var(--maz-color-primary);color:var(--maz-color-primary-contrast)}.m-btn.--is-button.--secondary-outline[data-v-ce89b3c0]{border-color:var(--maz-color-secondary);color:var(--maz-color-secondary)}.m-btn.--is-button.--secondary-outline[data-v-ce89b3c0]:not(:disabled):hover,.m-btn.--is-button.--secondary-outline[data-v-ce89b3c0]:not(:disabled):focus{background-color:var(--maz-color-secondary);color:var(--maz-color-white)}.m-btn.--is-button.--info-outline[data-v-ce89b3c0]{border-color:var(--maz-color-info);color:var(--maz-color-info)}.m-btn.--is-button.--info-outline[data-v-ce89b3c0]:not(:disabled):hover,.m-btn.--is-button.--info-outline[data-v-ce89b3c0]:not(:disabled):focus{background-color:var(--maz-color-info);color:var(--maz-color-white)}.m-btn.--is-button.--success-outline[data-v-ce89b3c0]{border-color:var(--maz-color-success);color:var(--maz-color-success)}.m-btn.--is-button.--success-outline[data-v-ce89b3c0]:not(:disabled):hover,.m-btn.--is-button.--success-outline[data-v-ce89b3c0]:not(:disabled):focus{background-color:var(--maz-color-success);color:var(--maz-color-white)}.m-btn.--is-button.--danger-outline[data-v-ce89b3c0]{border-color:var(--maz-color-danger);color:var(--maz-color-danger)}.m-btn.--is-button.--danger-outline[data-v-ce89b3c0]:not(:disabled):hover,.m-btn.--is-button.--danger-outline[data-v-ce89b3c0]:not(:disabled):focus{background-color:var(--maz-color-danger);color:var(--maz-color-white)}.m-btn.--is-button.--warning-outline[data-v-ce89b3c0]{border-color:var(--maz-color-warning);color:var(--maz-color-warning)}.m-btn.--is-button.--warning-outline[data-v-ce89b3c0]:not(:disabled):hover,.m-btn.--is-button.--warning-outline[data-v-ce89b3c0]:not(:disabled):focus{background-color:var(--maz-color-warning);color:var(--maz-color-white)}.m-btn.--is-button.--white-outline[data-v-ce89b3c0]{border-color:var(--maz-color-white);color:var(--maz-color-white)}.m-btn.--is-button.--white-outline[data-v-ce89b3c0]:not(:disabled):hover,.m-btn.--is-button.--white-outline[data-v-ce89b3c0]:not(:disabled):focus{background-color:var(--maz-color-white);color:var(--maz-color-white)}.m-btn.--is-button.--black-outline[data-v-ce89b3c0]{border-color:var(--maz-color-black);color:var(--maz-color-black)}.m-btn.--is-button.--black-outline[data-v-ce89b3c0]:not(:disabled):hover,.m-btn.--is-button.--black-outline[data-v-ce89b3c0]:not(:disabled):focus{background-color:var(--maz-color-black);color:var(--maz-color-black)}.m-btn.--is-button.--primary-pastel[data-v-ce89b3c0]{background-color:var(--maz-color-primary-50);color:var(--maz-color-primary)}.m-btn.--is-button.--primary-pastel[data-v-ce89b3c0]:not(:disabled):hover,.m-btn.--is-button.--primary-pastel[data-v-ce89b3c0]:not(:disabled):focus{background-color:var(--maz-color-primary);color:var(--maz-color-primary-contrast)}.m-btn.--is-button.--secondary-pastel[data-v-ce89b3c0]{background-color:var(--maz-color-secondary-50);color:var(--maz-color-secondary)}.m-btn.--is-button.--secondary-pastel[data-v-ce89b3c0]:not(:disabled):hover,.m-btn.--is-button.--secondary-pastel[data-v-ce89b3c0]:not(:disabled):focus{background-color:var(--maz-color-secondary);color:var(--maz-color-secondary-contrast)}.m-btn.--is-button.--info-pastel[data-v-ce89b3c0]{background-color:var(--maz-color-info-50);color:var(--maz-color-info)}.m-btn.--is-button.--info-pastel[data-v-ce89b3c0]:not(:disabled):hover,.m-btn.--is-button.--info-pastel[data-v-ce89b3c0]:not(:disabled):focus{background-color:var(--maz-color-info);color:var(--maz-color-info-contrast)}.m-btn.--is-button.--success-pastel[data-v-ce89b3c0]{background-color:var(--maz-color-success-50);color:var(--maz-color-success)}.m-btn.--is-button.--success-pastel[data-v-ce89b3c0]:not(:disabled):hover,.m-btn.--is-button.--success-pastel[data-v-ce89b3c0]:not(:disabled):focus{background-color:var(--maz-color-success);color:var(--maz-color-success-contrast)}.m-btn.--is-button.--danger-pastel[data-v-ce89b3c0]{background-color:var(--maz-color-danger-50);color:var(--maz-color-danger)}.m-btn.--is-button.--danger-pastel[data-v-ce89b3c0]:not(:disabled):hover,.m-btn.--is-button.--danger-pastel[data-v-ce89b3c0]:not(:disabled):focus{background-color:var(--maz-color-danger);color:var(--maz-color-danger-contrast)}.m-btn.--is-button.--warning-pastel[data-v-ce89b3c0]{background-color:var(--maz-color-warning-50);color:var(--maz-color-warning)}.m-btn.--is-button.--warning-pastel[data-v-ce89b3c0]:not(:disabled):hover,.m-btn.--is-button.--warning-pastel[data-v-ce89b3c0]:not(:disabled):focus{background-color:var(--maz-color-warning);color:var(--maz-color-warning-contrast)}.m-btn.--is-button.--white-pastel[data-v-ce89b3c0]{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity));color:var(--maz-color-white)}.m-btn.--is-button.--white-pastel[data-v-ce89b3c0]:not(:disabled):hover,.m-btn.--is-button.--white-pastel[data-v-ce89b3c0]:not(:disabled):focus{background-color:var(--maz-color-white);color:var(--maz-color-white-contrast)}.m-btn.--is-button.--black-pastel[data-v-ce89b3c0]{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity));color:var(--maz-color-black)}.m-btn.--is-button.--black-pastel[data-v-ce89b3c0]:not(:disabled):hover,.m-btn.--is-button.--black-pastel[data-v-ce89b3c0]:not(:disabled):focus{background-color:var(--maz-color-black);color:var(--maz-color-black-contrast)}.m-btn.--is-button.--disabled[data-v-ce89b3c0]{cursor:not-allowed;background-color:var(--maz-color-bg-lighter);--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.m-btn.--is-button.--no-padding[data-v-ce89b3c0]{padding:0}.m-btn.--is-button .m-btn__loading-wrapper[data-v-ce89b3c0]{position:absolute;inset:0px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-btn.--is-button .m-btn__loading-wrapper.--primary[data-v-ce89b3c0]{background-color:var(--maz-color-primary)}.m-btn.--is-button .m-btn__loading-wrapper.--secondary[data-v-ce89b3c0]{background-color:var(--maz-color-secondary)}.m-btn.--is-button .m-btn__loading-wrapper.--info[data-v-ce89b3c0]{background-color:var(--maz-color-info)}.m-btn.--is-button .m-btn__loading-wrapper.--warning[data-v-ce89b3c0]{background-color:var(--maz-color-warning)}.m-btn.--is-button .m-btn__loading-wrapper.--success[data-v-ce89b3c0]{background-color:var(--maz-color-success)}.m-btn.--is-button .m-btn__loading-wrapper.--danger[data-v-ce89b3c0]{background-color:var(--maz-color-danger)}.m-btn.--is-button .m-btn__loading-wrapper.--white[data-v-ce89b3c0]{background-color:var(--maz-color-white)}.m-btn.--is-button .m-btn__loading-wrapper.--black[data-v-ce89b3c0]{background-color:var(--maz-color-black)}.m-input[data-v-447d0d16]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.m-input.--xl[data-v-447d0d16]{height:4rem}.m-input.--xl .m-input-input[data-v-447d0d16],.m-input.--xl .m-input-label[data-v-447d0d16]{font-size:1.25rem;line-height:1.75rem}.m-input.--lg[data-v-447d0d16]{height:3.5rem}.m-input.--lg .m-input-input[data-v-447d0d16],.m-input.--lg .m-input-label[data-v-447d0d16]{font-size:1.125rem;line-height:1.75rem}.m-input.--md[data-v-447d0d16]{height:3rem}.m-input.--md .m-input-input[data-v-447d0d16],.m-input.--md .m-input-label[data-v-447d0d16]{font-size:1rem;line-height:1.5rem}.m-input.--sm[data-v-447d0d16]{height:2.5rem}.m-input.--sm .m-input-input[data-v-447d0d16],.m-input.--sm .m-input-label[data-v-447d0d16]{font-size:.875rem;line-height:1.25rem}.m-input.--xs[data-v-447d0d16]{height:2rem}.m-input.--xs .m-input-input[data-v-447d0d16],.m-input.--xs .m-input-label[data-v-447d0d16]{font-size:.75rem;line-height:1rem}.m-input.--mini[data-v-447d0d16]{height:1.5rem}.m-input.--mini .m-input-input[data-v-447d0d16],.m-input.--mini .m-input-label[data-v-447d0d16]{font-size:.75rem;line-height:1rem}.m-input-wrapper[data-v-447d0d16]{position:relative;z-index:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%;overflow:hidden;border-width:var(--maz-border-width);border-style:solid;background-color:var(--maz-color-bg);-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-transition-duration:.3s;transition-duration:.3s}.m-input-wrapper.--default-border[data-v-447d0d16]{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.m-input-wrapper-input[data-v-447d0d16]{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.m-input-wrapper-right[data-v-447d0d16],.m-input-wrapper-left[data-v-447d0d16]{position:relative;z-index:1;display:-webkit-box;display:-ms-flexbox;display:flex}.m-input-wrapper-right[data-v-447d0d16]>:not([hidden])~:not([hidden]),.m-input-wrapper-left[data-v-447d0d16]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.m-input-wrapper-right[data-v-447d0d16],.m-input-wrapper-left[data-v-447d0d16]{padding-top:.25rem;padding-bottom:.25rem;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-input-wrapper-right[data-v-447d0d16]{padding-right:.5rem}.m-input-wrapper-left[data-v-447d0d16]{padding-left:.5rem}.m-input-input[data-v-447d0d16]{margin:0;display:block;height:100%;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none;background-color:transparent;padding-left:1rem;padding-right:1rem;padding-top:0;padding-bottom:0;color:var(--maz-color-text);--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}.m-input-input[data-v-447d0d16]:-webkit-autofill,.m-input-input[data-v-447d0d16]:-webkit-autofill:hover,.m-input-input[data-v-447d0d16]:-webkit-autofill:focus{-webkit-text-fill-color:var(--maz-color-text);-webkit-box-shadow:0 0 0 1000px var(--maz-color-primary-50) inset;box-shadow:0 0 0 1000px var(--maz-color-primary-50) inset;-webkit-transition:background-color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s}.m-input-label[data-v-447d0d16]{pointer-events:none;position:absolute;display:block;width:-webkit-max-content;width:-moz-max-content;width:max-content;-webkit-transform-origin:top left;transform-origin:top left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;left:.75rem;line-height:1.5rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-transition:-webkit-transform .2s cubic-bezier(0,0,.2,1) 0ms;transition:-webkit-transform .2s cubic-bezier(0,0,.2,1) 0ms;transition:transform .2s cubic-bezier(0,0,.2,1) 0ms;transition:transform .2s cubic-bezier(0,0,.2,1) 0ms,-webkit-transform .2s cubic-bezier(0,0,.2,1) 0ms}.m-input[data-v-447d0d16]:not(.--has-state){color:var(--maz-color-muted)}.m-input.--has-z-2 .m-input-wrapper[data-v-447d0d16]{z-index:2}.m-input.--should-up .m-input-label[data-v-447d0d16]{-webkit-transform:scale(.8) translateY(-.65em);transform:scale(.8) translateY(-.65em)}.m-input.--is-readonly .m-input-input[data-v-447d0d16]{cursor:default}.m-input.--is-disabled .m-input-wrapper[data-v-447d0d16]{background-color:var(--maz-color-bg-lighter);color:var(--maz-color-muted)}.m-input.--is-disabled .m-input-input[data-v-447d0d16]{cursor:not-allowed;color:var(--maz-color-muted)}.m-input.--is-focused .m-input-wrapper[data-v-447d0d16]{z-index:3}.m-input.--has-label .m-input-input[data-v-447d0d16]{padding-left:.75rem;padding-right:.75rem;padding-top:1rem}html.dark .m-input:not(.--is-disabled) .m-input-wrapper[data-v-447d0d16]{background-color:var(--maz-color-bg-light)}html.dark .m-input:not(.--is-focused,.--has-state) .m-input-wrapper.--default-border[data-v-447d0d16]{border-color:var(--maz-color-bg-lighter)}html.dark .m-input-input[data-v-447d0d16]:-webkit-autofill,html.dark .m-input-input[data-v-447d0d16]:-webkit-autofill:hover,html.dark .m-input-input[data-v-447d0d16]:-webkit-autofill:focus{-webkit-text-fill-color:var(--maz-color-text);-webkit-box-shadow:0 0 0 1000px var(--maz-color-bg-lighter) inset;box-shadow:0 0 0 1000px var(--maz-color-bg-lighter) inset;-webkit-transition:background-color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s}.m-select[data-v-20fe1c4f]{position:relative}.m-select[data-v-20fe1c4f]:not(.--disabled) .m-input-input{cursor:pointer}.m-select-input[data-v-20fe1c4f] .m-input-input,.m-select-input.--has-label[data-v-20fe1c4f] .m-input-input{padding-right:0}.m-select-input__toggle-button[data-v-20fe1c4f]{display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;background-color:transparent;padding-left:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-select-input[data-v-20fe1c4f] input{caret-color:transparent}.m-select-chevron[data-v-20fe1c4f]{-webkit-transition-property:all;transition-property:all;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:cubic-bezier(0,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1)}.m-select .m-select-chevron[data-v-20fe1c4f]{height:1.25rem;width:1.25rem;color:var(--maz-color-text)}.m-select.--is-open .m-select-chevron[data-v-20fe1c4f]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.m-select .m-select-list[data-v-20fe1c4f]{position:absolute;z-index:100;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;overflow:hidden;border-radius:var(--maz-border-radius);background-color:var(--maz-color-bg);color:var(--maz-color-text);-webkit-box-shadow:0 5px 10px 0 hsla(0,0%,0%,.05);box-shadow:0 5px 10px #0000000d;min-width:3.5rem}.m-select .m-select-list.--top[data-v-20fe1c4f]{bottom:100%}.m-select .m-select-list.--left[data-v-20fe1c4f]{left:0px}.m-select .m-select-list.--right[data-v-20fe1c4f]{right:0px}.m-select .m-select-list.--bottom[data-v-20fe1c4f]{top:100%}.m-select .m-select-list__search-wrapper[data-v-20fe1c4f]{-webkit-box-flex:0;-ms-flex:none;flex:none;background-color:var(--maz-color-bg);padding:.25rem}.m-select .m-select-list__scroll-wrapper[data-v-20fe1c4f]{-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%;overflow:auto}.m-select .m-select-list__no-results[data-v-20fe1c4f]{display:-webkit-box;display:-ms-flexbox;display:flex;padding:1rem;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.m-select .m-select-list-item[data-v-20fe1c4f]{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;-webkit-box-align:center;-ms-flex-align:center;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background-color:transparent;padding-left:1rem;padding-right:1rem;text-align:left;color:var(--maz-color-text)}.m-select .m-select-list-item[data-v-20fe1c4f]:hover{background-color:var(--maz-color-bg-light)}.m-select .m-select-list-item span[data-v-20fe1c4f]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.m-select .m-select-list-item.--is-keyboard-selected[data-v-20fe1c4f]{background-color:var(--maz-color-bg-lighter)}.m-select .m-select-list-item.--is-none-value[data-v-20fe1c4f]{color:var(--maz-color-muted)}.m-select .m-select-list-item.--is-selected.--primary[data-v-20fe1c4f]{background-color:var(--maz-color-primary);color:var(--maz-color-primary-contrast)}.m-select .m-select-list-item.--is-selected.--secondary[data-v-20fe1c4f]{background-color:var(--maz-color-secondary);color:var(--maz-color-secondary-contrast)}.m-select .m-select-list-item.--is-selected.--info[data-v-20fe1c4f]{background-color:var(--maz-color-info);color:var(--maz-color-info-contrast)}.m-select .m-select-list-item.--is-selected.--success[data-v-20fe1c4f]{background-color:var(--maz-color-success);color:var(--maz-color-success-contrast)}.m-select .m-select-list-item.--is-selected.--warning[data-v-20fe1c4f]{background-color:var(--maz-color-warning);color:var(--maz-color-warning-contrast)}.m-select .m-select-list-item.--is-selected.--danger[data-v-20fe1c4f]{background-color:var(--maz-color-danger);color:var(--maz-color-danger-contrast)}.m-select .m-select-list-item.--is-selected.--black[data-v-20fe1c4f]{background-color:var(--maz-color-black);color:var(--maz-color-black-contrast)}.m-select .m-select-list-item.--is-selected.--white[data-v-20fe1c4f]{background-color:var(--maz-color-white);color:var(--maz-color-white-contrast)}.m-select .m-select-list-item.--is-selected.--transparent[data-v-20fe1c4f]{background-color:var(--maz-color-bg)}.m-select button.maz-custom[data-v-20fe1c4f]{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none}html.dark .m-select-list[data-v-20fe1c4f]{background-color:var(--maz-color-bg-light)}html.dark .m-select-list-item[data-v-20fe1c4f]:hover{background-color:var(--maz-color-bg-lighter)}.maz-flag.maz-flag-ac[data-v-b43ec161]{height:10px;background-position:0 0}.maz-flag.maz-flag-ad[data-v-b43ec161]{height:14px;background-position:-22px 0}.maz-flag.maz-flag-ae[data-v-b43ec161]{height:10px;background-position:-44px 0}.maz-flag.maz-flag-af[data-v-b43ec161]{height:14px;background-position:-66px 0}.maz-flag.maz-flag-ag[data-v-b43ec161]{height:14px;background-position:-88px 0}.maz-flag.maz-flag-ai[data-v-b43ec161]{height:10px;background-position:-110px 0}.maz-flag.maz-flag-al[data-v-b43ec161]{height:15px;background-position:-132px 0}.maz-flag.maz-flag-am[data-v-b43ec161]{height:10px;background-position:-154px 0}.maz-flag.maz-flag-ao[data-v-b43ec161]{height:14px;background-position:-176px 0}.maz-flag.maz-flag-aq[data-v-b43ec161]{height:14px;background-position:-198px 0}.maz-flag.maz-flag-ar[data-v-b43ec161]{height:13px;background-position:-220px 0}.maz-flag.maz-flag-as[data-v-b43ec161]{height:10px;background-position:-242px 0}.maz-flag.maz-flag-at[data-v-b43ec161]{height:14px;background-position:-264px 0}.maz-flag.maz-flag-au[data-v-b43ec161]{height:10px;background-position:-286px 0}.maz-flag.maz-flag-aw[data-v-b43ec161]{height:14px;background-position:-308px 0}.maz-flag.maz-flag-ax[data-v-b43ec161]{height:13px;background-position:-330px 0}.maz-flag.maz-flag-az[data-v-b43ec161]{height:10px;background-position:-352px 0}.maz-flag.maz-flag-ba[data-v-b43ec161]{height:10px;background-position:-374px 0}.maz-flag.maz-flag-bb[data-v-b43ec161]{height:14px;background-position:-396px 0}.maz-flag.maz-flag-bd[data-v-b43ec161]{height:12px;background-position:-418px 0}.maz-flag.maz-flag-be[data-v-b43ec161]{width:18px;height:15px;background-position:-440px 0}.maz-flag.maz-flag-bf[data-v-b43ec161]{height:14px;background-position:-460px 0}.maz-flag.maz-flag-bg[data-v-b43ec161]{height:12px;background-position:-482px 0}.maz-flag.maz-flag-bh[data-v-b43ec161]{height:12px;background-position:-504px 0}.maz-flag.maz-flag-bi[data-v-b43ec161]{height:12px;background-position:-526px 0}.maz-flag.maz-flag-bj[data-v-b43ec161]{height:14px;background-position:-548px 0}.maz-flag.maz-flag-bl[data-v-b43ec161]{height:14px;background-position:-570px 0}.maz-flag.maz-flag-bm[data-v-b43ec161]{height:10px;background-position:-592px 0}.maz-flag.maz-flag-bn[data-v-b43ec161]{height:10px;background-position:-614px 0}.maz-flag.maz-flag-bo[data-v-b43ec161]{height:14px;background-position:-636px 0}.maz-flag.maz-flag-bq[data-v-b43ec161]{height:14px;background-position:-658px 0}.maz-flag.maz-flag-br[data-v-b43ec161]{height:14px;background-position:-680px 0}.maz-flag.maz-flag-bs[data-v-b43ec161]{height:10px;background-position:-702px 0}.maz-flag.maz-flag-bt[data-v-b43ec161]{height:14px;background-position:-724px 0}.maz-flag.maz-flag-bv[data-v-b43ec161]{height:15px;background-position:-746px 0}.maz-flag.maz-flag-bw[data-v-b43ec161]{height:14px;background-position:-768px 0}.maz-flag.maz-flag-by[data-v-b43ec161]{height:10px;background-position:-790px 0}.maz-flag.maz-flag-bz[data-v-b43ec161]{height:14px;background-position:-812px 0}.maz-flag.maz-flag-ca[data-v-b43ec161]{height:10px;background-position:-834px 0}.maz-flag.maz-flag-cc[data-v-b43ec161]{height:10px;background-position:-856px 0}.maz-flag.maz-flag-cd[data-v-b43ec161]{height:15px;background-position:-878px 0}.maz-flag.maz-flag-cf[data-v-b43ec161]{height:14px;background-position:-900px 0}.maz-flag.maz-flag-cg[data-v-b43ec161]{height:14px;background-position:-922px 0}.maz-flag.maz-flag-ch[data-v-b43ec161]{width:15px;height:15px;background-position:-944px 0}.maz-flag.maz-flag-ci[data-v-b43ec161]{height:14px;background-position:-961px 0}.maz-flag.maz-flag-ck[data-v-b43ec161]{height:10px;background-position:-983px 0}.maz-flag.maz-flag-cl[data-v-b43ec161]{height:14px;background-position:-1005px 0}.maz-flag.maz-flag-cm[data-v-b43ec161]{height:14px;background-position:-1027px 0}.maz-flag.maz-flag-cn[data-v-b43ec161]{height:14px;background-position:-1049px 0}.maz-flag.maz-flag-co[data-v-b43ec161]{height:14px;background-position:-1071px 0}.maz-flag.maz-flag-cp[data-v-b43ec161]{height:14px;background-position:-1093px 0}.maz-flag.maz-flag-cr[data-v-b43ec161]{height:12px;background-position:-1115px 0}.maz-flag.maz-flag-cu[data-v-b43ec161]{height:10px;background-position:-1137px 0}.maz-flag.maz-flag-cv[data-v-b43ec161]{height:12px;background-position:-1159px 0}.maz-flag.maz-flag-cw[data-v-b43ec161]{height:14px;background-position:-1181px 0}.maz-flag.maz-flag-cx[data-v-b43ec161]{height:10px;background-position:-1203px 0}.maz-flag.maz-flag-cy[data-v-b43ec161]{height:14px;background-position:-1225px 0}.maz-flag.maz-flag-cz[data-v-b43ec161]{height:14px;background-position:-1247px 0}.maz-flag.maz-flag-de[data-v-b43ec161]{height:12px;background-position:-1269px 0}.maz-flag.maz-flag-dg[data-v-b43ec161]{height:10px;background-position:-1291px 0}.maz-flag.maz-flag-dj[data-v-b43ec161]{height:14px;background-position:-1313px 0}.maz-flag.maz-flag-dk[data-v-b43ec161]{height:15px;background-position:-1335px 0}.maz-flag.maz-flag-dm[data-v-b43ec161]{height:10px;background-position:-1357px 0}.maz-flag.maz-flag-do[data-v-b43ec161]{height:13px;background-position:-1379px 0}.maz-flag.maz-flag-dz[data-v-b43ec161]{height:14px;background-position:-1401px 0}.maz-flag.maz-flag-ea[data-v-b43ec161]{height:14px;background-position:-1423px 0}.maz-flag.maz-flag-ec[data-v-b43ec161]{height:14px;background-position:-1445px 0}.maz-flag.maz-flag-ee[data-v-b43ec161]{height:13px;background-position:-1467px 0}.maz-flag.maz-flag-eg[data-v-b43ec161]{height:14px;background-position:-1489px 0}.maz-flag.maz-flag-eh[data-v-b43ec161]{height:10px;background-position:-1511px 0}.maz-flag.maz-flag-er[data-v-b43ec161]{height:10px;background-position:-1533px 0}.maz-flag.maz-flag-es[data-v-b43ec161]{height:14px;background-position:-1555px 0}.maz-flag.maz-flag-et[data-v-b43ec161]{height:10px;background-position:-1577px 0}.maz-flag.maz-flag-eu[data-v-b43ec161]{height:14px;background-position:-1599px 0}.maz-flag.maz-flag-fi[data-v-b43ec161]{height:12px;background-position:-1621px 0}.maz-flag.maz-flag-fj[data-v-b43ec161]{height:10px;background-position:-1643px 0}.maz-flag.maz-flag-fk[data-v-b43ec161]{height:10px;background-position:-1665px 0}.maz-flag.maz-flag-fm[data-v-b43ec161]{height:11px;background-position:-1687px 0}.maz-flag.maz-flag-fo[data-v-b43ec161]{height:15px;background-position:-1709px 0}.maz-flag.maz-flag-fr[data-v-b43ec161]{height:14px;background-position:-1731px 0}.maz-flag.maz-flag-ga[data-v-b43ec161]{height:15px;background-position:-1753px 0}.maz-flag.maz-flag-gb[data-v-b43ec161]{height:10px;background-position:-1775px 0}.maz-flag.maz-flag-gd[data-v-b43ec161]{height:12px;background-position:-1797px 0}.maz-flag.maz-flag-ge[data-v-b43ec161]{height:14px;background-position:-1819px 0}.maz-flag.maz-flag-gf[data-v-b43ec161]{height:14px;background-position:-1841px 0}.maz-flag.maz-flag-gg[data-v-b43ec161]{height:14px;background-position:-1863px 0}.maz-flag.maz-flag-gh[data-v-b43ec161]{height:14px;background-position:-1885px 0}.maz-flag.maz-flag-gi[data-v-b43ec161]{height:10px;background-position:-1907px 0}.maz-flag.maz-flag-gl[data-v-b43ec161]{height:14px;background-position:-1929px 0}.maz-flag.maz-flag-gm[data-v-b43ec161]{height:14px;background-position:-1951px 0}.maz-flag.maz-flag-gn[data-v-b43ec161]{height:14px;background-position:-1973px 0}.maz-flag.maz-flag-gp[data-v-b43ec161]{height:14px;background-position:-1995px 0}.maz-flag.maz-flag-gq[data-v-b43ec161]{height:14px;background-position:-2017px 0}.maz-flag.maz-flag-gr[data-v-b43ec161]{height:14px;background-position:-2039px 0}.maz-flag.maz-flag-gs[data-v-b43ec161]{height:10px;background-position:-2061px 0}.maz-flag.maz-flag-gt[data-v-b43ec161]{height:13px;background-position:-2083px 0}.maz-flag.maz-flag-gu[data-v-b43ec161]{height:11px;background-position:-2105px 0}.maz-flag.maz-flag-gw[data-v-b43ec161]{height:10px;background-position:-2127px 0}.maz-flag.maz-flag-gy[data-v-b43ec161]{height:12px;background-position:-2149px 0}.maz-flag.maz-flag-hk[data-v-b43ec161]{height:14px;background-position:-2171px 0}.maz-flag.maz-flag-hm[data-v-b43ec161]{height:10px;background-position:-2193px 0}.maz-flag.maz-flag-hn[data-v-b43ec161]{height:10px;background-position:-2215px 0}.maz-flag.maz-flag-hr[data-v-b43ec161]{height:10px;background-position:-2237px 0}.maz-flag.maz-flag-ht[data-v-b43ec161]{height:12px;background-position:-2259px 0}.maz-flag.maz-flag-hu[data-v-b43ec161]{height:10px;background-position:-2281px 0}.maz-flag.maz-flag-ic[data-v-b43ec161]{height:14px;background-position:-2303px 0}.maz-flag.maz-flag-id[data-v-b43ec161]{height:14px;background-position:-2325px 0}.maz-flag.maz-flag-ie[data-v-b43ec161]{height:10px;background-position:-2347px 0}.maz-flag.maz-flag-il[data-v-b43ec161]{height:15px;background-position:-2369px 0}.maz-flag.maz-flag-im[data-v-b43ec161]{height:10px;background-position:-2391px 0}.maz-flag.maz-flag-in[data-v-b43ec161]{height:14px;background-position:-2413px 0}.maz-flag.maz-flag-io[data-v-b43ec161]{height:10px;background-position:-2435px 0}.maz-flag.maz-flag-iq[data-v-b43ec161]{height:14px;background-position:-2457px 0}.maz-flag.maz-flag-ir[data-v-b43ec161]{height:12px;background-position:-2479px 0}.maz-flag.maz-flag-is[data-v-b43ec161]{height:15px;background-position:-2501px 0}.maz-flag.maz-flag-it[data-v-b43ec161]{height:14px;background-position:-2523px 0}.maz-flag.maz-flag-je[data-v-b43ec161]{height:12px;background-position:-2545px 0}.maz-flag.maz-flag-jm[data-v-b43ec161]{height:10px;background-position:-2567px 0}.maz-flag.maz-flag-jo[data-v-b43ec161]{height:10px;background-position:-2589px 0}.maz-flag.maz-flag-jp[data-v-b43ec161]{height:14px;background-position:-2611px 0}.maz-flag.maz-flag-ke[data-v-b43ec161]{height:14px;background-position:-2633px 0}.maz-flag.maz-flag-kg[data-v-b43ec161]{height:12px;background-position:-2655px 0}.maz-flag.maz-flag-kh[data-v-b43ec161]{height:13px;background-position:-2677px 0}.maz-flag.maz-flag-ki[data-v-b43ec161]{height:10px;background-position:-2699px 0}.maz-flag.maz-flag-km[data-v-b43ec161]{height:12px;background-position:-2721px 0}.maz-flag.maz-flag-kn[data-v-b43ec161]{height:14px;background-position:-2743px 0}.maz-flag.maz-flag-kp[data-v-b43ec161]{height:10px;background-position:-2765px 0}.maz-flag.maz-flag-kr[data-v-b43ec161]{height:14px;background-position:-2787px 0}.maz-flag.maz-flag-kw[data-v-b43ec161]{height:10px;background-position:-2809px 0}.maz-flag.maz-flag-ky[data-v-b43ec161]{height:10px;background-position:-2831px 0}.maz-flag.maz-flag-kz[data-v-b43ec161]{height:10px;background-position:-2853px 0}.maz-flag.maz-flag-la[data-v-b43ec161]{height:14px;background-position:-2875px 0}.maz-flag.maz-flag-lb[data-v-b43ec161]{height:14px;background-position:-2897px 0}.maz-flag.maz-flag-lc[data-v-b43ec161]{height:10px;background-position:-2919px 0}.maz-flag.maz-flag-li[data-v-b43ec161]{height:12px;background-position:-2941px 0}.maz-flag.maz-flag-lk[data-v-b43ec161]{height:10px;background-position:-2963px 0}.maz-flag.maz-flag-lr[data-v-b43ec161]{height:11px;background-position:-2985px 0}.maz-flag.maz-flag-ls[data-v-b43ec161]{height:14px;background-position:-3007px 0}.maz-flag.maz-flag-lt[data-v-b43ec161]{height:12px;background-position:-3029px 0}.maz-flag.maz-flag-lu[data-v-b43ec161]{height:12px;background-position:-3051px 0}.maz-flag.maz-flag-lv[data-v-b43ec161]{height:10px;background-position:-3073px 0}.maz-flag.maz-flag-ly[data-v-b43ec161]{height:10px;background-position:-3095px 0}.maz-flag.maz-flag-ma[data-v-b43ec161]{height:14px;background-position:-3117px 0}.maz-flag.maz-flag-mc[data-v-b43ec161]{width:19px;height:15px;background-position:-3139px 0}.maz-flag.maz-flag-md[data-v-b43ec161]{height:10px;background-position:-3160px 0}.maz-flag.maz-flag-me[data-v-b43ec161]{height:10px;background-position:-3182px 0}.maz-flag.maz-flag-mf[data-v-b43ec161]{height:14px;background-position:-3204px 0}.maz-flag.maz-flag-mg[data-v-b43ec161]{height:14px;background-position:-3226px 0}.maz-flag.maz-flag-mh[data-v-b43ec161]{height:11px;background-position:-3248px 0}.maz-flag.maz-flag-mk[data-v-b43ec161]{height:10px;background-position:-3270px 0}.maz-flag.maz-flag-ml[data-v-b43ec161]{height:14px;background-position:-3292px 0}.maz-flag.maz-flag-mm[data-v-b43ec161]{height:14px;background-position:-3314px 0}.maz-flag.maz-flag-mn[data-v-b43ec161]{height:10px;background-position:-3336px 0}.maz-flag.maz-flag-mo[data-v-b43ec161]{height:14px;background-position:-3358px 0}.maz-flag.maz-flag-mp[data-v-b43ec161]{height:10px;background-position:-3380px 0}.maz-flag.maz-flag-mq[data-v-b43ec161]{height:14px;background-position:-3402px 0}.maz-flag.maz-flag-mr[data-v-b43ec161]{height:14px;background-position:-3424px 0}.maz-flag.maz-flag-ms[data-v-b43ec161]{height:10px;background-position:-3446px 0}.maz-flag.maz-flag-mt[data-v-b43ec161]{height:14px;background-position:-3468px 0}.maz-flag.maz-flag-mu[data-v-b43ec161]{height:14px;background-position:-3490px 0}.maz-flag.maz-flag-mv[data-v-b43ec161]{height:14px;background-position:-3512px 0}.maz-flag.maz-flag-mw[data-v-b43ec161]{height:14px;background-position:-3534px 0}.maz-flag.maz-flag-mx[data-v-b43ec161]{height:12px;background-position:-3556px 0}.maz-flag.maz-flag-my[data-v-b43ec161]{height:10px;background-position:-3578px 0}.maz-flag.maz-flag-mz[data-v-b43ec161]{height:14px;background-position:-3600px 0}.maz-flag.maz-flag-na[data-v-b43ec161]{height:14px;background-position:-3622px 0}.maz-flag.maz-flag-nc[data-v-b43ec161]{height:10px;background-position:-3644px 0}.maz-flag.maz-flag-ne[data-v-b43ec161]{width:18px;height:15px;background-position:-3666px 0}.maz-flag.maz-flag-nf[data-v-b43ec161]{height:10px;background-position:-3686px 0}.maz-flag.maz-flag-ng[data-v-b43ec161]{height:10px;background-position:-3708px 0}.maz-flag.maz-flag-ni[data-v-b43ec161]{height:12px;background-position:-3730px 0}.maz-flag.maz-flag-nl[data-v-b43ec161]{height:14px;background-position:-3752px 0}.maz-flag.maz-flag-no[data-v-b43ec161]{height:15px;background-position:-3774px 0}.maz-flag.maz-flag-np[data-v-b43ec161]{width:13px;height:15px;background-color:transparent;background-position:-3796px 0}.maz-flag.maz-flag-nr[data-v-b43ec161]{height:10px;background-position:-3811px 0}.maz-flag.maz-flag-nu[data-v-b43ec161]{height:10px;background-position:-3833px 0}.maz-flag.maz-flag-nz[data-v-b43ec161]{height:10px;background-position:-3855px 0}.maz-flag.maz-flag-om[data-v-b43ec161]{height:10px;background-position:-3877px 0}.maz-flag.maz-flag-pa[data-v-b43ec161]{height:14px;background-position:-3899px 0}.maz-flag.maz-flag-pe[data-v-b43ec161]{height:14px;background-position:-3921px 0}.maz-flag.maz-flag-pf[data-v-b43ec161]{height:14px;background-position:-3943px 0}.maz-flag.maz-flag-pg[data-v-b43ec161]{height:15px;background-position:-3965px 0}.maz-flag.maz-flag-ph[data-v-b43ec161]{height:10px;background-position:-3987px 0}.maz-flag.maz-flag-pk[data-v-b43ec161]{height:14px;background-position:-4009px 0}.maz-flag.maz-flag-pl[data-v-b43ec161]{height:13px;background-position:-4031px 0}.maz-flag.maz-flag-pm[data-v-b43ec161]{height:14px;background-position:-4053px 0}.maz-flag.maz-flag-pn[data-v-b43ec161]{height:10px;background-position:-4075px 0}.maz-flag.maz-flag-pr[data-v-b43ec161]{height:14px;background-position:-4097px 0}.maz-flag.maz-flag-ps[data-v-b43ec161]{height:10px;background-position:-4119px 0}.maz-flag.maz-flag-pt[data-v-b43ec161]{height:14px;background-position:-4141px 0}.maz-flag.maz-flag-pw[data-v-b43ec161]{height:13px;background-position:-4163px 0}.maz-flag.maz-flag-py[data-v-b43ec161]{height:11px;background-position:-4185px 0}.maz-flag.maz-flag-qa[data-v-b43ec161]{height:8px;background-position:-4207px 0}.maz-flag.maz-flag-re[data-v-b43ec161]{height:14px;background-position:-4229px 0}.maz-flag.maz-flag-ro[data-v-b43ec161]{height:14px;background-position:-4251px 0}.maz-flag.maz-flag-rs[data-v-b43ec161]{height:14px;background-position:-4273px 0}.maz-flag.maz-flag-ru[data-v-b43ec161]{height:14px;background-position:-4295px 0}.maz-flag.maz-flag-rw[data-v-b43ec161]{height:14px;background-position:-4317px 0}.maz-flag.maz-flag-sa[data-v-b43ec161]{height:14px;background-position:-4339px 0}.maz-flag.maz-flag-sb[data-v-b43ec161]{height:10px;background-position:-4361px 0}.maz-flag.maz-flag-sc[data-v-b43ec161]{height:10px;background-position:-4383px 0}.maz-flag.maz-flag-sd[data-v-b43ec161]{height:10px;background-position:-4405px 0}.maz-flag.maz-flag-se[data-v-b43ec161]{height:13px;background-position:-4427px 0}.maz-flag.maz-flag-sg[data-v-b43ec161]{height:14px;background-position:-4449px 0}.maz-flag.maz-flag-sh[data-v-b43ec161]{height:10px;background-position:-4471px 0}.maz-flag.maz-flag-si[data-v-b43ec161]{height:10px;background-position:-4493px 0}.maz-flag.maz-flag-sj[data-v-b43ec161]{height:15px;background-position:-4515px 0}.maz-flag.maz-flag-sk[data-v-b43ec161]{height:14px;background-position:-4537px 0}.maz-flag.maz-flag-sl[data-v-b43ec161]{height:14px;background-position:-4559px 0}.maz-flag.maz-flag-sm[data-v-b43ec161]{height:15px;background-position:-4581px 0}.maz-flag.maz-flag-sn[data-v-b43ec161]{height:14px;background-position:-4603px 0}.maz-flag.maz-flag-so[data-v-b43ec161]{height:14px;background-position:-4625px 0}.maz-flag.maz-flag-sr[data-v-b43ec161]{height:14px;background-position:-4647px 0}.maz-flag.maz-flag-ss[data-v-b43ec161]{height:10px;background-position:-4669px 0}.maz-flag.maz-flag-st[data-v-b43ec161]{height:10px;background-position:-4691px 0}.maz-flag.maz-flag-sv[data-v-b43ec161]{height:12px;background-position:-4713px 0}.maz-flag.maz-flag-sx[data-v-b43ec161]{height:14px;background-position:-4735px 0}.maz-flag.maz-flag-sy[data-v-b43ec161]{height:14px;background-position:-4757px 0}.maz-flag.maz-flag-sz[data-v-b43ec161]{height:14px;background-position:-4779px 0}.maz-flag.maz-flag-ta[data-v-b43ec161]{height:10px;background-position:-4801px 0}.maz-flag.maz-flag-tc[data-v-b43ec161]{height:10px;background-position:-4823px 0}.maz-flag.maz-flag-td[data-v-b43ec161]{height:14px;background-position:-4845px 0}.maz-flag.maz-flag-tf[data-v-b43ec161]{height:14px;background-position:-4867px 0}.maz-flag.maz-flag-tg[data-v-b43ec161]{height:13px;background-position:-4889px 0}.maz-flag.maz-flag-th[data-v-b43ec161]{height:14px;background-position:-4911px 0}.maz-flag.maz-flag-tj[data-v-b43ec161]{height:10px;background-position:-4933px 0}.maz-flag.maz-flag-tk[data-v-b43ec161]{height:10px;background-position:-4955px 0}.maz-flag.maz-flag-tl[data-v-b43ec161]{height:10px;background-position:-4977px 0}.maz-flag.maz-flag-tm[data-v-b43ec161]{height:14px;background-position:-4999px 0}.maz-flag.maz-flag-tn[data-v-b43ec161]{height:14px;background-position:-5021px 0}.maz-flag.maz-flag-to[data-v-b43ec161]{height:10px;background-position:-5043px 0}.maz-flag.maz-flag-tr[data-v-b43ec161]{height:14px;background-position:-5065px 0}.maz-flag.maz-flag-tt[data-v-b43ec161]{height:12px;background-position:-5087px 0}.maz-flag.maz-flag-tv[data-v-b43ec161]{height:10px;background-position:-5109px 0}.maz-flag.maz-flag-tw[data-v-b43ec161]{height:14px;background-position:-5131px 0}.maz-flag.maz-flag-tz[data-v-b43ec161]{height:14px;background-position:-5153px 0}.maz-flag.maz-flag-ua[data-v-b43ec161]{height:14px;background-position:-5175px 0}.maz-flag.maz-flag-ug[data-v-b43ec161]{height:14px;background-position:-5197px 0}.maz-flag.maz-flag-um[data-v-b43ec161]{height:11px;background-position:-5219px 0}.maz-flag.maz-flag-us[data-v-b43ec161]{height:11px;background-position:-5241px 0}.maz-flag.maz-flag-uy[data-v-b43ec161]{height:14px;background-position:-5263px 0}.maz-flag.maz-flag-uz[data-v-b43ec161]{height:10px;background-position:-5285px 0}.maz-flag.maz-flag-va[data-v-b43ec161]{width:15px;height:15px;background-position:-5307px 0}.maz-flag.maz-flag-vc[data-v-b43ec161]{height:14px;background-position:-5324px 0}.maz-flag.maz-flag-ve[data-v-b43ec161]{height:14px;background-position:-5346px 0}.maz-flag.maz-flag-vg[data-v-b43ec161]{height:10px;background-position:-5368px 0}.maz-flag.maz-flag-vi[data-v-b43ec161]{height:14px;background-position:-5390px 0}.maz-flag.maz-flag-vn[data-v-b43ec161]{height:14px;background-position:-5412px 0}.maz-flag.maz-flag-vu[data-v-b43ec161]{height:12px;background-position:-5434px 0}.maz-flag.maz-flag-wf[data-v-b43ec161]{height:14px;background-position:-5456px 0}.maz-flag.maz-flag-ws[data-v-b43ec161]{height:10px;background-position:-5478px 0}.maz-flag.maz-flag-xk[data-v-b43ec161]{height:15px;background-position:-5500px 0}.maz-flag.maz-flag-ye[data-v-b43ec161]{height:14px;background-position:-5522px 0}.maz-flag.maz-flag-yt[data-v-b43ec161]{height:14px;background-position:-5544px 0}.maz-flag.maz-flag-za[data-v-b43ec161]{height:14px;background-position:-5566px 0}.maz-flag.maz-flag-zm[data-v-b43ec161]{height:14px;background-position:-5588px 0}.maz-flag.maz-flag-zw[data-v-b43ec161]{height:10px;background-position:-5610px 0}.maz-flag[data-v-b43ec161]{width:20px;height:15px;background-image:url(data:image/png;base64,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);background-repeat:no-repeat;background-color:#dbdbdb;background-position:20px 0}.m-phone-number-input[data-v-b43ec161]{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex}.m-phone-number-input__country-flag[data-v-b43ec161]{position:absolute;bottom:10px;left:18px;z-index:4;outline:none;border:none;padding:0;margin:0;cursor:pointer}.m-phone-number-input__input.--border-radius[data-v-b43ec161] .m-input-wrapper{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-2px}.m-phone-number-input__select[data-v-b43ec161]{width:9rem}.m-phone-number-input__select__item[data-v-b43ec161]{width:100%;font-size:.875rem;line-height:1.25rem}.m-phone-number-input__select[data-v-b43ec161] .m-select-input .m-input-wrapper{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.m-phone-number-input:not(.--no-flags) .m-phone-number-input__select[data-v-b43ec161] .m-input-wrapper .m-select-input{padding-left:2.75rem!important}.m-phone-number-input__input.--error[data-v-b43ec161],.m-phone-number-input__input.--focused[data-v-b43ec161]{z-index:1}")),document.head.appendChild(_r)}}catch(Fe){console.error("vite-plugin-css-injected-by-js",Fe)}})();const countriesNameListByIsoCode={AC:"Ascension Island",AF:"Afghanistan",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas (the)",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia (Plurinational State of)",BQ:"Bonaire, Sint Eustatius and Saba",BA:"Bosnia and Herzegovina",BW:"Botswana",BR:"Brazil",IO:"British Indian Ocean Territory (the)",BN:"Brunei Darussalam",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",CV:"Cabo Verde",KH:"Cambodia",CM:"Cameroon",CA:"Canada",KY:"Cayman Islands (the)",CF:"Central African Republic (the)",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos (Keeling) Islands (the)",CO:"Colombia",KM:"Comoros (the)",CD:"Congo (the Democratic Republic of the)",CG:"Congo (the)",CK:"Cook Islands (the)",CR:"Costa Rica",HR:"Croatia",CU:"Cuba",CW:"Cura\xE7ao",CY:"Cyprus",CZ:"Czechia",CI:"C\xF4te d'Ivoire",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic (the)",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",SZ:"Eswatini",ET:"Ethiopia",FK:"Falkland Islands (the) [Malvinas]",FO:"Faroe Islands (the)",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",GA:"Gabon",GM:"Gambia (the)",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",VA:"Holy See (the)",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran (Islamic Republic of)",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",KP:"Korea (the Democratic People's Republic of)",KR:"Korea (the Republic of)",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Lao People's Democratic Republic (the)",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands (the)",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia (Federated States of)",MD:"Moldova (the Republic of)",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands (the)",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger (the)",NG:"Nigeria",NU:"Niue",NF:"Norfolk Island",MP:"Northern Mariana Islands (the)",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestine, State of",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines (the)",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",MK:"Republic of North Macedonia",RO:"Romania",RU:"Russian Federation (the)",RW:"Rwanda",RE:"R\xE9union",BL:"Saint Barth\xE9lemy",SH:"Saint Helena, Ascension and Tristan da Cunha",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",MF:"Saint Martin (French part)",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten (Dutch part)",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan (the)",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SE:"Sweden",CH:"Switzerland",SY:"Syrian Arab Republic",TA:"Tajikistan",TW:"Taiwan",TJ:"Tajikistan",TZ:"Tanzania, United Republic of",TH:"Thailand",TL:"Timor-Leste",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands (the)",TV:"Tuvalu",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates (the)",GB:"United Kingdom of Great Britain and Northern Ireland (the)",US:"United States of America (the)",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VE:"Venezuela (Bolivarian Republic of)",VN:"Viet Nam",VG:"Virgin Islands (British)",VI:"Virgin Islands (U.S.)",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",XK:"Kosovo",ZM:"Zambia",ZW:"Zimbabwe",AX:"\xC5land Islands"};function getCountryName(_r,Fe){return{...countriesNameListByIsoCode,...Fe}[_r]}const PHONE_CHAR_REGEX=/^[\d ().-]+$/,NON_ALPHA_REGEX=/^[^a-z]+$/i;let examples;async function loadPhoneNumberExamplesFile(){const{default:_r}=await __vitePreload(()=>import("./examples.mobile.json.e211196d.js"),[]);return examples=_r,examples}function getExamplePhoneNumber(_r){return getExampleNumber(_r,examples)}function sanitizePhoneNumber(_r){if(!_r)return;const Fe=NON_ALPHA_REGEX.test(_r),$r=PHONE_CHAR_REGEX.test(_r);return!Fe&&!$r?_r.replace(/[^\d.]/g,""):_r}function getCountriesList(_r){const Fe=[],$r=getCountries();for(const Fr of $r){const jr=getCountryName(Fr,_r);if(jr)try{const zr=getCountryCallingCode(Fr);Fe.push({iso2:Fr,dialCode:zr,name:jr})}catch(zr){console.error(`[MazPhoneNumberInput](getCountryCallingCode) ${zr}`)}}return Fe}function browserLocale(){try{if(typeof window=="undefined")return;const _r=window.navigator.language;if(!_r)return;let Fe=_r.slice(3,7).toUpperCase();return Fe===""&&(Fe=_r.slice(0,2).toUpperCase()),Fe==="EN"&&(Fe="US"),Fe==="JA"&&(Fe="JP"),Fe}catch(_r){throw new Error(`[MazPhoneNumberInput](browserLocale) ${_r}`)}}function isCountryAvailable(_r){try{const Fe=isSupportedCountry(_r);return Fe||console.error(`[MazPhoneNumberInput](isCountryAvailable) The code country "${_r}" is not available`),Fe}catch(Fe){throw new Error(`[MazPhoneNumberInput](isCountryAvailable) ${Fe}`)}}const getResultsFromPhoneNumber=(_r,Fe)=>{var $r;try{if(!Fe)return{isValid:!1,countryCode:_r};const Fr=parsePhoneNumber(Fe,_r);return{isValid:($r=Fr==null?void 0:Fr.isValid())!=null?$r:!1,isPossible:Fr==null?void 0:Fr.isPossible(),countryCode:Fr==null?void 0:Fr.country,countryCallingCode:Fr==null?void 0:Fr.countryCallingCode,nationalNumber:Fr==null?void 0:Fr.nationalNumber,type:Fr==null?void 0:Fr.getType(),formatInternational:Fr==null?void 0:Fr.formatInternational(),formatNational:Fr==null?void 0:Fr.formatNational(),uri:Fr==null?void 0:Fr.getURI(),e164:Fr==null?void 0:Fr.format("E.164"),rfc3966:Fr==null?void 0:Fr.format("RFC3966")}}catch(Fr){throw new Error(`[MazPhoneNumberInput](getResultsFromPhoneNumber) ${Fr}`)}};function getAsYouTypeFormat(_r,Fe){try{return Fe?_r?new AsYouType(_r).input(Fe):Fe:void 0}catch($r){throw new Error(`[MazPhoneNumberInput](getAsYouTypeFormat) ${$r}`)}}async function fetchCountryCode(){try{const _r=await fetch("https://ipwho.is"),{country_code:Fe}=await _r.json();return Fe}catch(_r){throw new Error(`[MazPhoneNumberInput](fetchCountryCode) ${_r}`)}}function injectStrict(_r,Fe){const $r=inject(_r,Fe);if(!$r)throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${_r}`);return $r}function debounce$2(_r,Fe=0,$r=!1){let Fr,jr;const zr=function(){Fr&&(clearTimeout(Fr),jr=void 0,Fr=void 0)},Vr=function(){const Kr=jr;zr(),Kr&&Kr()},Wr=function(...Kr){if(!Fe)return _r.apply(this,Kr);const Gr=this,Yr=$r&&!Fr;if(zr(),jr=function(){_r.apply(Gr,Kr)},Fr=setTimeout(function(){if(Fr=void 0,!Yr){const Qr=jr;if(jr=void 0,Qr!==void 0)return Qr()}},Fe),Yr)return jr()};return Wr.cancel=zr,Wr.flush=Vr,Wr}function truthyFilter(_r){return!!_r}const useInstanceUniqId=({componentName:_r,instance:Fe,providedId:$r})=>({instanceId:computed(()=>$r!=null?$r:`${_r}-${Fe==null?void 0:Fe.uid}`)}),locales={countrySelector:{placeholder:"Country code",error:"Choose country",searchPlaceholder:"Search the country"},phoneInput:{placeholder:"Phone number",example:"Example:"}},_withScopeId=_r=>(pushScopeId("data-v-34f40819"),_r=_r(),popScopeId(),_r),_hoisted_1$5$1=["width","height"],_hoisted_2$4$1=_withScopeId(()=>createBaseVNode("path",{d:"M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"},null,-1)),_hoisted_3$3$1=[_hoisted_2$4$1],_sfc_main$5$1=defineComponent({__name:"MazSpinner",props:{size:{type:String,default:"2em"},color:{type:String,default:"normal",validator:_r=>["normal","info","white","success","warning","danger","primary","black","secondary","transparent"].includes(_r)}},setup(_r){return(Fe,$r)=>(openBlock(),createElementBlock("svg",{width:_r.size,height:_r.size,version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 50 50","xml:space":"preserve",class:normalizeClass(["m-spinner",`m-spinner--${_r.color}`]),style:{"enable-background":"new 0 0 50 50"}},_hoisted_3$3$1,10,_hoisted_1$5$1))}}),_export_sfc=(_r,Fe)=>{const $r=_r.__vccOpts||_r;for(const[Fr,jr]of Fe)$r[Fr]=jr;return $r},MazSpinner=_export_sfc(_sfc_main$5$1,[["__scopeId","data-v-34f40819"]]),_hoisted_1$4$1=["innerHTML"],_sfc_main$4$1=defineComponent({__name:"MazIcon",props:{src:{type:String,default:void 0},path:{type:String,default:void 0},name:{type:String,default:void 0},size:{type:String,default:"1.5rem"},title:{type:String,default:void 0},transformSource:{type:Function,default:_r=>_r}},emits:["loaded","unloaded","error"],setup(_r,{emit:Fe}){const $r=_r,Fr={},jr=ref(),zr=ref(),Vr=()=>{try{return injectStrict("mazIconPath")}catch{return}},Wr=computed(()=>{var en;return(en=$r.path)!=null?en:Vr()}),Kr=computed(()=>$r.src?$r.src:Wr.value?`${Wr.value}/${$r.name}.svg`:`/${$r.name}.svg`);onMounted(()=>{!$r.name&&!$r.src&&console.error('[maz-ui](MazIcon) you should provide "name" or "src" as prop')});const Gr=(en,rn)=>{const nn=en.querySelectorAll("title");if(nn.length>0)nn[0].textContent=rn;else{const on=document.createElementNS("http://www.w3.org/2000/svg","title");on.textContent=rn,en.append(on)}},Yr=en=>Object.keys(en).reduce((rn,nn)=>(en[nn]!==!1&&en[nn]!==null&&en[nn]!==void 0&&(rn[nn]=en[nn]),rn),{}),Qr=en=>{const rn={},nn=en.attributes;if(!nn)return rn;for(let on=nn.length-1;on>=0;on--)rn[nn[on].name]=nn[on].value;return rn},Jr=en=>{let rn=en.cloneNode(!0);return rn=$r.transformSource(en),$r.title&&Gr(rn,$r.title),en.innerHTML},Zr=async en=>{Fr[en]||(Fr[en]=tn(en));try{jr.value=await Fr[en],await nextTick(),Fe("loaded",zr.value)}catch(rn){jr.value&&(jr.value=void 0,Fe("unloaded")),delete Fr[en],Fe("error",rn)}},tn=en=>new Promise((rn,nn)=>{const on=new XMLHttpRequest;on.open("GET",en,!0),on.addEventListener("load",()=>{if(on.status>=200&&on.status<400)try{let sn=new DOMParser().parseFromString(on.responseText,"text/xml").querySelectorAll("svg")[0];sn?(sn=$r.transformSource(sn),rn(sn)):nn(new Error('Loaded file is not valid SVG"'))}catch(un){nn(un)}else nn(new Error("Error loading SVG"))}),on.addEventListener("error",()=>nn()),on.send()});return watchEffect(()=>Zr(Kr.value)),(en,rn)=>(openBlock(),createElementBlock(Fragment,null,[createCommentVNode(" eslint-disable vue/no-v-html "),createCommentVNode(" eslint-disable vue/html-self-closing "),jr.value?(openBlock(),createElementBlock("svg",mergeProps({key:0,ref_key:"svgElem",ref:zr,width:"1em",height:"1em"},{...Qr(jr.value),...Yr(en.$attrs)},{style:`font-size: ${_r.size}`,innerHTML:Jr(jr.value)}),null,16,_hoisted_1$4$1)):createCommentVNode("v-if",!0),createCommentVNode(" eslint-enable vue/no-v-html "),createCommentVNode(" eslint-enable vue/html-self-closing ")],2112))}}),_hoisted_1$3$1={key:0,class:"m-btn__icon-left maz-flex maz-flex-center"},_hoisted_2$3$1={class:"maz-flex maz-flex-center"},_hoisted_3$2$1={key:1,class:"m-btn__icon-right maz-flex maz-flex-center"},_sfc_main$3$1=defineComponent({__name:"MazBtn",props:{variant:{type:String,default:"button",validator:_r=>["button","link"].includes(_r)},size:{type:String,default:"md",validator:_r=>["mini","xs","sm","md","lg","xl"].includes(_r)},color:{type:String,default:"primary",validator:_r=>["primary","secondary","info","success","warning","danger","white","black","transparent"].includes(_r)},type:{type:String,default:"button",validator:_r=>["button","submit"].includes(_r)},rounded:{type:Boolean,default:!1},outline:{type:Boolean,default:!1},pastel:{type:Boolean,default:!1},block:{type:Boolean,default:!1},noUnderline:{type:Boolean,default:!1},noLeading:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},fab:{type:Boolean,default:!1},leftIcon:{type:String,default:void 0},rightIcon:{type:String,default:void 0},noPadding:{type:Boolean,default:!1},noElevation:{type:Boolean,default:!1}},setup(_r){const Fe=_r,{href:$r,to:Fr}=useAttrs(),jr=useSlots(),zr=computed(()=>$r?"a":Fr?"router-link":"button"),Vr=computed(()=>Fe.pastel?`--${Fe.color}-pastel`:Fe.outline||Fe.loading?`--${Fe.color}-outline`:`--${Fe.color}`),Wr=computed(()=>(Fe.loading||Fe.disabled)&&zr.value==="button"),Kr=computed(()=>Wr.value?"--cursor-default":"--cursor-pointer"),Gr=computed(()=>`--is-${Fe.variant}`),Yr=computed(()=>`--${Fe.color}`),Qr=computed(()=>["white"].includes(Fe.color)?"black":"white"),Jr=computed(()=>Fe.loading&&Fe.variant==="button"),Zr=computed(()=>!!jr["left-icon"]||Fe.leftIcon),tn=computed(()=>!!jr["right-icon"]||Fe.rightIcon),en=computed(()=>Zr.value||tn.value),rn=computed(()=>zr.value==="button"?Fe.type:void 0);return(nn,on)=>(openBlock(),createBlock(resolveDynamicComponent(unref(zr)),mergeProps(nn.$attrs,{disabled:unref(Wr),class:["m-btn",[`--${_r.size}`,unref(Vr),unref(Kr),unref(Gr),{"--block":_r.block,"--no-underline":_r.noUnderline,"--no-leading":_r.noLeading,"--fab":_r.fab,"--loading":_r.loading,"--disabled":unref(Wr),"--icon":unref(en),"--rounded":_r.rounded,"--no-padding":_r.noPadding,"--no-elevation":_r.noElevation}]],type:unref(rn)}),{default:withCtx(()=>[unref(Zr)?(openBlock(),createElementBlock("div",_hoisted_1$3$1,[renderSlot(nn.$slots,"left-icon",{},()=>[_r.leftIcon?(openBlock(),createBlock(_sfc_main$4$1,{key:0,name:_r.leftIcon},null,8,["name"])):createCommentVNode("v-if",!0)],!0)])):createCommentVNode("v-if",!0),createBaseVNode("span",_hoisted_2$3$1,[renderSlot(nn.$slots,"default",{},void 0,!0)]),unref(tn)?(openBlock(),createElementBlock("div",_hoisted_3$2$1,[renderSlot(nn.$slots,"right-icon",{},()=>[_r.rightIcon?(openBlock(),createBlock(_sfc_main$4$1,{key:0,name:_r.rightIcon},null,8,["name"])):createCommentVNode("v-if",!0)],!0)])):createCommentVNode("v-if",!0),unref(Jr)?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(["m-btn__loading-wrapper",unref(Yr)])},[createVNode(MazSpinner,{size:"2em",color:unref(Qr)},null,8,["color"])],2)):createCommentVNode("v-if",!0)]),_:3},16,["disabled","class","type"]))}}),MazBtn=_export_sfc(_sfc_main$3$1,[["__scopeId","data-v-ce89b3c0"]]),EyeOffIcon="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIGFyaWEtaGlkZGVuPSJ0cnVlIj4KICA8cGF0aCBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMiIgZD0iTTEzLjg3NSAxOC44MjVBMTAuMDUgMTAuMDUgMCAwMTEyIDE5Yy00LjQ3OCAwLTguMjY4LTIuOTQzLTkuNTQzLTdhOS45NyA5Ljk3IDAgMDExLjU2My0zLjAyOW01Ljg1OC45MDhhMyAzIDAgMTE0LjI0MyA0LjI0M005Ljg3OCA5Ljg3OGw0LjI0MiA0LjI0Mk05Ljg4IDkuODhsLTMuMjktMy4yOW03LjUzMiA3LjUzMmwzLjI5IDMuMjlNMyAzbDMuNTkgMy41OW0wIDBBOS45NTMgOS45NTMgMCAwMTEyIDVjNC40NzggMCA4LjI2OCAyLjk0MyA5LjU0MyA3YTEwLjAyNSAxMC4wMjUgMCAwMS00LjEzMiA1LjQxMW0wIDBMMjEgMjEiLz4KPC9zdmc+Cg==",EyeIcon="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIGFyaWEtaGlkZGVuPSJ0cnVlIj4KICA8cGF0aCBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMiIgZD0iTTE1IDEyYTMgMyAwIDExLTYgMCAzIDMgMCAwMTYgMHoiLz4KICA8cGF0aCBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMiIgZD0iTTIuNDU4IDEyQzMuNzMyIDcuOTQzIDcuNTIzIDUgMTIgNWM0LjQ3OCAwIDguMjY4IDIuOTQzIDkuNTQyIDctMS4yNzQgNC4wNTctNS4wNjQgNy05LjU0MiA3LTQuNDc3IDAtOC4yNjgtMi45NDMtOS41NDItN3oiLz4KPC9zdmc+Cg==",CheckIcon="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIGFyaWEtaGlkZGVuPSJ0cnVlIj4KICA8cGF0aCBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMiIgZD0iTTUgMTNsNCA0TDE5IDciLz4KPC9zdmc+Cg==",_sfc_main$2$1=defineComponent({components:{MazBtn,MazIcon:_sfc_main$4$1},inheritAttrs:!1,props:{modelValue:{type:[String,Number,Boolean],default:void 0},placeholder:{type:String,default:void 0},color:{type:String,default:"primary",validator:_r=>["primary","secondary","warning","danger","info","success","white","black","transparent"].includes(_r)},label:{type:String,default:void 0},name:{type:String,default:"input"},type:{type:String,default:"text",validator:_r=>["text","date","number","tel","search","url","password","month","time","week","email"].includes(_r)},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},id:{type:String,default:void 0},error:{type:Boolean,default:!1},success:{type:Boolean,default:!1},warning:{type:Boolean,default:!1},hint:{type:String,default:void 0},inputClasses:{type:String,default:void 0},noBorder:{type:Boolean,default:!1},noRadius:{type:Boolean,default:!1},size:{type:String,default:"md",validator:_r=>["mini","xs","sm","md","lg","xl"].includes(_r)},debounce:{type:Boolean,default:!1},debounceDelay:{type:Number,default:500},validButton:{type:Boolean,default:!1},validButtonLoading:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1},borderActive:{type:Boolean,default:!1},leftIcon:{type:String,default:void 0},rightIcon:{type:String,default:void 0}},emits:["focus","blur","update:model-value","click","change","update"],setup(_r,{emit:Fe,slots:$r}){const Fr=ref(!1),jr=ref(!1),zr=ref(),Vr=getCurrentInstance(),{instanceId:Wr}=useInstanceUniqId({componentName:"MazInput",instance:Vr,providedId:_r.id});onMounted(()=>{var ln;_r.autoFocus&&((ln=zr.value)==null||ln.focus())});const Kr=computed(()=>_r.type==="password"),Gr=computed(()=>Fr.value?"text":_r.type),Yr=computed(()=>{if(!_r.noBorder){if(_r.error)return"maz-border-danger";if(_r.success)return"maz-border-success";if(_r.warning)return"maz-border-warning";if(jr.value||_r.borderActive){if(_r.color==="black")return"maz-border-black";if(_r.color==="danger")return"maz-border-danger";if(_r.color==="info")return"maz-border-info";if(_r.color==="primary")return"maz-border-primary";if(_r.color==="secondary")return"maz-border-secondary";if(_r.color==="success")return"maz-border-success";if(_r.color==="warning")return"maz-border-warning";if(_r.color==="white")return"maz-border-white"}return"--default-border"}}),Qr=computed(()=>{const{required:ln,placeholder:cn}=_r;if(!!cn)return ln?`${cn} *`:cn}),Jr=computed(()=>_r.modelValue!==void 0&&_r.modelValue!==""),Zr=computed({get:()=>_r.modelValue,set:ln=>dn(ln)}),tn=computed(()=>(!!_r.label||!!_r.hint)&&(jr.value||!!Jr.value||!!_r.placeholder||["date","month","week"].includes(_r.type))),en=computed(()=>!!_r.label||!!_r.hint),rn=()=>!!$r["right-icon"]||Kr.value||!!$r["valid-button"]||_r.validButton||!!_r.rightIcon,nn=()=>!!$r["left-icon"]||!!_r.leftIcon,on=ln=>{Fe("focus",ln),jr.value=!0},un=ln=>{Fe("blur",ln),jr.value=!1},an=ln=>Fe("change",ln),sn=debounce$2(ln=>{Fe("update:model-value",ln)},_r.debounceDelay),dn=ln=>{if(_r.debounce)return sn(ln);Fe("update:model-value",ln)};return{inputValue:Zr,shouldUp:tn,hasLabel:en,computedPlaceholder:Qr,isPasswordType:Kr,inputType:Gr,input:zr,isFocused:jr,hasPasswordVisible:Fr,borderStyle:Yr,focus:on,blur:un,change:an,emitValue:dn,hasRightPart:rn,hasLeftPart:nn,EyeOffIcon,EyeIcon,CheckIcon,instanceId:Wr}}}),_hoisted_1$2$1={key:0,class:"m-input-wrapper-left"},_hoisted_2$2$1={class:"m-input-wrapper-input"},_hoisted_3$1$1=["id","type","name","placeholder","aria-label","disabled","readonly","required"],_hoisted_4$1$1=["for"],_hoisted_5$1$1={key:0},_hoisted_6$e={key:1,class:"m-input-wrapper-right"};function _sfc_render(_r,Fe,$r,Fr,jr,zr){const Vr=resolveComponent("MazIcon"),Wr=resolveComponent("MazBtn");return openBlock(),createElementBlock("div",{class:normalizeClass(["m-input",[{"--is-focused":_r.isFocused||_r.borderActive,"--should-up":_r.shouldUp,"--has-label":_r.hasLabel,"--is-disabled":_r.disabled,"--is-readonly":_r.readonly,"--has-z-2":_r.error||_r.warning||_r.success,"--has-state":_r.error||_r.warning||_r.success},_r.$attrs.class,`--${_r.color}`,`--${_r.size}`]]),onClick:Fe[2]||(Fe[2]=Kr=>_r.$emit("click",Kr))},[createBaseVNode("div",{class:normalizeClass(["m-input-wrapper",[_r.inputClasses,_r.borderStyle,{"maz-rounded":!_r.noRadius}]])},[_r.hasLeftPart()?(openBlock(),createElementBlock("div",_hoisted_1$2$1,[_r.$slots["left-icon"]||_r.leftIcon?renderSlot(_r.$slots,"left-icon",{key:0},()=>[createVNode(Vr,{name:_r.leftIcon,class:"maz-text-muted"},null,8,["name"])],!0):createCommentVNode("v-if",!0)])):createCommentVNode("v-if",!0),createBaseVNode("div",_hoisted_2$2$1,[withDirectives(createBaseVNode("input",mergeProps({id:_r.instanceId,ref:"input","onUpdate:modelValue":Fe[0]||(Fe[0]=Kr=>_r.inputValue=Kr),type:_r.inputType,name:_r.name},_r.$attrs,{placeholder:_r.computedPlaceholder,"aria-label":_r.label||_r.placeholder,disabled:_r.disabled,readonly:_r.readonly,required:_r.required,class:"m-input-input"},toHandlers({blur:_r.blur,focus:_r.focus,change:_r.change},!0)),null,16,_hoisted_3$1$1),[[vModelDynamic,_r.inputValue]]),_r.label||_r.hint?(openBlock(),createElementBlock("label",{key:0,ref:"label",for:_r.instanceId,class:normalizeClass(["m-input-label",[{"maz-text-danger-600":_r.error,"maz-text-success-600":_r.success,"maz-text-warning-600":_r.warning}]])},[createTextVNode(toDisplayString(_r.hint||_r.label)+" ",1),_r.required?(openBlock(),createElementBlock("sup",_hoisted_5$1$1,"*")):createCommentVNode("v-if",!0)],10,_hoisted_4$1$1)):createCommentVNode("v-if",!0)]),_r.hasRightPart()?(openBlock(),createElementBlock("div",_hoisted_6$e,[_r.$slots["right-icon"]||_r.rightIcon?renderSlot(_r.$slots,"right-icon",{key:0},()=>[createVNode(Vr,{name:_r.rightIcon,class:"maz-text-muted"},null,8,["name"])],!0):createCommentVNode("v-if",!0),_r.isPasswordType?(openBlock(),createBlock(Wr,{key:1,color:"transparent",tabindex:"-1",size:"mini",onClick:Fe[1]||(Fe[1]=withModifiers(Kr=>_r.hasPasswordVisible=!_r.hasPasswordVisible,["stop"]))},{default:withCtx(()=>[_r.hasPasswordVisible?(openBlock(),createBlock(Vr,{key:0,src:_r.EyeOffIcon,class:"maz-text-muted"},null,8,["src"])):(openBlock(),createBlock(Vr,{key:1,src:_r.EyeIcon,class:"maz-text-muted"},null,8,["src"]))]),_:1})):createCommentVNode("v-if",!0),_r.$slots["valid-button"]||_r.validButton?renderSlot(_r.$slots,"valid-button",{key:2},()=>[createVNode(Wr,{color:"transparent",disabled:_r.disabled,tabindex:"-1",loading:_r.validButtonLoading,class:"m-input-valid-button",size:"mini",type:"submit"},{default:withCtx(()=>[createVNode(Vr,{src:_r.CheckIcon,class:"maz-text-normal"},null,8,["src"])]),_:1},8,["disabled","loading"])],!0):createCommentVNode("v-if",!0)])):createCommentVNode("v-if",!0)],2)],2)}const MazInput=_export_sfc(_sfc_main$2$1,[["render",_sfc_render],["__scopeId","data-v-447d0d16"]]),SearchIcon="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIGFyaWEtaGlkZGVuPSJ0cnVlIj4KICA8cGF0aCBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMiIgZD0iTTIxIDIxbC02LTZtMi01YTcgNyAwIDExLTE0IDAgNyA3IDAgMDExNCAweiIvPgo8L3N2Zz4K",ChevronDownIcon="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIGFyaWEtaGlkZGVuPSJ0cnVlIj4KICA8cGF0aCBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMiIgZD0iTTE5IDlsLTcgNy03LTciLz4KPC9zdmc+Cg==",NoSymbolIcon="data:image/svg+xml;base64,PHN2ZwogIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICBmaWxsPSJub25lIgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBzdHJva2Utd2lkdGg9IjEuNSIKICBzdHJva2U9ImN1cnJlbnRDb2xvciIKICBjbGFzcz0idy02IGgtNiIKPgogIDxwYXRoCiAgICBzdHJva2UtbGluZWNhcD0icm91bmQiCiAgICBzdHJva2UtbGluZWpvaW49InJvdW5kIgogICAgZD0iTTE4LjM2NCAxOC4zNjRBOSA5IDAgMDA1LjYzNiA1LjYzNm0xMi43MjggMTIuNzI4QTkgOSAwIDAxNS42MzYgNS42MzZtMTIuNzI4IDEyLjcyOEw1LjYzNiA1LjYzNiIKICAvPgo8L3N2Zz4K",_hoisted_1$1$1=["onClick"],_hoisted_2$1$1={key:0,tabindex:"-1",class:"m-select-list__search-wrapper"},_hoisted_3$e={key:1,class:"m-select-list__no-results"},_hoisted_4$e={key:2,class:"m-select-list__scroll-wrapper"},_hoisted_5$e=["onClick"],_sfc_main$1$1=defineComponent({__name:"MazSelect",props:{modelValue:{type:[Number,String,Boolean],default:void 0},id:{type:String,default:void 0},options:{type:Array,default:void 0},optionValueKey:{type:String,default:"value"},optionLabelKey:{type:String,default:"label"},optionInputValueKey:{type:String,default:"label"},listPosition:{type:String,default:"bottom left",validator:_r=>["top","top right","top left","bottom","bottom right","bottom left"].includes(_r)},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},open:{type:Boolean,default:!1},color:{type:String,default:"primary",validator:_r=>["primary","secondary","warning","danger","info","success","white","black","transparent"].includes(_r)},itemHeight:{type:Number,default:40},maxListHeight:{type:Number,default:240},maxListWidth:{type:Number,default:void 0},size:{type:String,default:"md",validator:_r=>["mini","xs","sm","md","lg","xl"].includes(_r)},search:{type:Boolean,default:!1},searchPlaceholder:{type:String,default:"Search in options"}},emits:["close","open","update:model-value","blur","focus","change"],setup(_r,{emit:Fe}){const $r=_r,Fr=getCurrentInstance(),jr=ref(!1),zr=ref(),Vr=computed(()=>jr.value||$r.open),{instanceId:Wr}=useInstanceUniqId({componentName:"MazSelect",instance:Fr,providedId:$r.id});onBeforeMount(()=>{var hn,mn;(hn=$r.options)!=null&&hn.length||console.warn("[maz-ui](MazSelect) you must provide options"),Jr.value&&(zr.value=(mn=$r.options)==null?void 0:mn.findIndex(Sn=>{var vn;return Sn[$r.optionValueKey]===((vn=Jr.value)==null?void 0:vn[$r.optionValueKey])}))});const Kr=ref(),Gr=ref(),Yr=ref(),Qr=ref(),Jr=computed(()=>{var hn;return(hn=$r.options)==null?void 0:hn.find(mn=>$r.modelValue===mn[$r.optionValueKey])}),Zr=hn=>hn==null,tn=computed(()=>{var vn;var hn,mn,Sn;return Zr((hn=Jr.value)==null?void 0:hn[$r.optionValueKey])?void 0:(vn=(mn=Jr.value)==null?void 0:mn[$r.optionInputValueKey])!=null?vn:(Sn=Jr.value)==null?void 0:Sn[$r.optionLabelKey]}),en=computed(()=>$r.listPosition.includes("bottom")?"maz-slide":"maz-slideinvert"),rn=ref(),nn=(hn,mn)=>mn&&(hn==null?void 0:hn.toString().toLocaleLowerCase().includes(mn.toLocaleLowerCase())),on=computed(()=>{var hn;return rn.value?(hn=$r.options)==null?void 0:hn.filter(mn=>{const Sn=mn[$r.optionLabelKey],vn=mn[$r.optionValueKey],bn=mn[$r.optionInputValueKey];return nn(Sn,rn.value)||nn(vn,rn.value)||nn(bn,rn.value)}):$r.options}),un=async hn=>{var mn;if(hn&&("relatedTarget"in hn&&((mn=Kr.value)==null?void 0:mn.contains(hn.relatedTarget))||hn.type==="keydown"))return hn.preventDefault();await nextTick(),jr.value=!1,Fe("close",hn)},an=async hn=>{hn==null||hn.preventDefault(),!$r.disabled&&(jr.value=!0,await fn(),Fe("focus",hn),Fe("open",jr.value))},sn=hn=>{var mn,Sn;((mn=hn.key)==null?void 0:mn.length)===1?(hn.preventDefault(),an(hn),rn.value=hn.key,$r.search&&((Sn=Yr.value)==null||Sn.input.focus())):dn(hn)},dn=hn=>{const mn=hn.code,Sn=["ArrowUp","ArrowDown"].includes(mn),vn=mn==="Enter",bn=mn==="Escape"&&Vr.value;Sn?ln(hn,zr.value):vn?cn(hn,zr.value):bn&&un()},ln=(hn,mn)=>{var Sn;hn.preventDefault();const vn=hn.code;Vr.value||an(hn);const bn=(Sn=on.value)==null?void 0:Sn.length;!bn||(typeof mn=="number"?mn===bn-1&&vn==="ArrowDown"?zr.value=0:mn===0&&vn==="ArrowUp"?zr.value=bn-1:zr.value=vn==="ArrowDown"?mn+1:mn-1:zr.value=vn==="ArrowDown"?0:bn-1,fn())},cn=(hn,mn)=>{var $n;var Sn,vn,bn;if(hn.preventDefault(),!Vr.value)return an(hn);const _n=mn?($n=(Sn=on.value)==null?void 0:Sn[mn])!=null?$n:(vn=on.value)==null?void 0:vn[0]:(bn=on.value)==null?void 0:bn[0];Zr(_n)||pn(_n)},fn=async(hn=zr.value)=>{var mn,Sn;typeof hn=="number"&&(await nextTick(),(Sn=(mn=Qr.value)==null?void 0:mn.querySelectorAll(".m-select-list-item")[hn])==null||Sn.scrollIntoView({behavior:"auto",block:"nearest",inline:"start"}))},pn=(hn,mn=!0)=>{var Sn;return zr.value=(Sn=on.value)==null?void 0:Sn.findIndex(vn=>hn[$r.optionValueKey]===vn[$r.optionValueKey]),mn&&un(),rn.value=void 0,Fe("update:model-value",hn[$r.optionValueKey])};return(hn,mn)=>(openBlock(),createElementBlock("div",{ref_key:"mazSelectElement",ref:Kr,class:normalizeClass(["m-select",{"--is-open":unref(Vr),"--disabled":_r.disabled}]),onBlurCapture:un},[createVNode(MazInput,mergeProps({id:unref(Wr),ref_key:"mazInputComponent",ref:Gr,class:"m-select-input"},hn.$attrs,{required:_r.required,"border-active":jr.value,color:_r.color,"model-value":unref(tn),autocomplete:"off",size:_r.size,disabled:_r.disabled,onFocus:withModifiers(an,["stop"]),onChange:mn[0]||(mn[0]=Sn=>Fe("change",Sn)),onClick:withModifiers(an,["stop"]),onKeydown:sn}),{"right-icon":withCtx(()=>[createBaseVNode("button",{tabindex:"-1",type:"button",class:"m-select-input__toggle-button maz-custom",onClick:withModifiers(an,["stop"])},[createVNode(_sfc_main$4$1,{src:unref(ChevronDownIcon),class:"m-select-chevron"},null,8,["src"])],8,_hoisted_1$1$1)]),_:1},16,["id","required","border-active","color","model-value","size","disabled","onFocus","onClick"]),createVNode(Transition,{name:unref(en)},{default:withCtx(()=>[unref(Vr)?(openBlock(),createElementBlock("div",{key:0,ref_key:"optionsListElement",ref:Qr,class:normalizeClass(["m-select-list",{"--top":_r.listPosition.includes("top"),"--left":_r.listPosition.includes("left"),"--right":_r.listPosition.includes("right"),"--bottom":_r.listPosition.includes("bottom")}]),style:normalizeStyle({maxHeight:`${_r.maxListHeight}px`,maxWidth:`${_r.maxListWidth}px`})},[_r.search?(openBlock(),createElementBlock("div",_hoisted_2$1$1,[createVNode(MazInput,{ref_key:"searchInputComponent",ref:Yr,modelValue:rn.value,"onUpdate:modelValue":mn[1]||(mn[1]=Sn=>rn.value=Sn),size:"sm",color:_r.color,placeholder:_r.searchPlaceholder,name:"search",autocomplete:"off",class:"m-select-list__search-input",onKeydown:dn},{"left-icon":withCtx(()=>[createVNode(_sfc_main$4$1,{size:"1.3rem",src:unref(SearchIcon)},null,8,["src"])]),_:1},8,["modelValue","color","placeholder"])])):createCommentVNode("v-if",!0),!unref(on)||unref(on).length<=0?(openBlock(),createElementBlock("span",_hoisted_3$e,[createVNode(_sfc_main$4$1,{src:unref(NoSymbolIcon)},null,8,["src"])])):(openBlock(),createElementBlock("div",_hoisted_4$e,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(on),(Sn,vn)=>{var bn,_n,$n;return openBlock(),createElementBlock("button",{key:vn,tabindex:"-1",type:"button",class:normalizeClass(["m-select-list-item maz-custom",[{"--is-keyboard-selected":zr.value===vn,"--is-selected":((bn=unref(Jr))==null?void 0:bn[_r.optionValueKey])===Sn[_r.optionValueKey]&&!Zr(Sn[_r.optionValueKey]),"--is-none-value":Zr(Sn[_r.optionValueKey])},`--${_r.color}`]]),style:normalizeStyle({minHeight:`${_r.itemHeight}px`}),onClick:withModifiers(yn=>pn(Sn),["prevent","stop"])},[renderSlot(hn.$slots,"default",{option:Sn,isSelected:((_n=unref(Jr))==null?void 0:_n[_r.optionValueKey])===Sn[_r.optionValueKey],selectedOption:($n=unref(Jr))==null?void 0:$n[_r.optionValueKey]},()=>[createBaseVNode("span",null,toDisplayString(Sn[_r.optionLabelKey]),1)],!0)],14,_hoisted_5$e)}),128))]))],6)):createCommentVNode("v-if",!0)]),_:3},8,["name"])],34))}}),MazSelect=_export_sfc(_sfc_main$1$1,[["__scopeId","data-v-20fe1c4f"]]),_hoisted_1$g=["id"],_hoisted_2$f={class:"maz-flex-1 maz-truncate"},_sfc_main$j=defineComponent({__name:"MazPhoneNumberInput",props:{modelValue:{type:String,validator:_r=>typeof _r=="string"||_r===void 0,default:void 0},id:{type:String,default:void 0},placeholder:{type:String,default:void 0},defaultPhoneNumber:{type:String,default:void 0},defaultCountryCode:{type:String,default:void 0,validator:_r=>isCountryAvailable(_r)},preferredCountries:{type:Array,default:void 0},ignoredCountries:{type:Array,default:void 0},onlyCountries:{type:Array,default:void 0},translations:{type:Object,default:void 0},listPosition:{type:String,default:"bottom left",validator:_r=>["top","top right","top left","bottom","bottom right","bottom left"].includes(_r)},color:{type:String,default:"primary",validator:_r=>["primary","secondary","warning","danger","info","success","white","black"].includes(_r)},size:{type:String,default:"md",validator:_r=>["mini","xs","sm","md","lg","xl"].includes(_r)},noFlags:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},noExample:{type:Boolean,default:!1},noSearch:{type:Boolean,default:!1},noUseBrowserLocale:{type:Boolean,default:!1},fetchCountry:{type:Boolean,default:!1},noCountrySelector:{type:Boolean,default:!1},showCodeOnList:{type:Boolean,default:!1},error:{type:Boolean,default:!1},customCountriesList:{type:Object,default:void 0}},emits:["update","update:model-value","country-code"],setup(_r,{emit:Fe}){const $r=_r,Fr=getCurrentInstance(),{instanceId:jr}=useInstanceUniqId({componentName:"MazPhoneNumberInput",instance:Fr,providedId:$r.id}),zr=ref({}),Vr=ref(),Wr=ref(),Kr=ref(),Gr=ref(!1),Yr=ref(!1),Qr=ref(),Jr=ref(),Zr=ref();onBeforeMount(async()=>{var yn;try{if(Wr.value=(yn=$r.modelValue)!=null?yn:$r.defaultPhoneNumber,$r.defaultCountryCode&&bn($r.defaultCountryCode),$r.fetchCountry){const wn=await fetchCountryCode();wn&&bn(wn)}hn(Wr.value)}catch(wn){throw new Error(`[MazPhoneNumberInput](onBeforeMount) ${wn}`)}try{!$r.noExample&&!Gr.value&&(await loadPhoneNumberExamplesFile(),Gr.value=!0)}catch{throw new Error("[MazPhoneNumberInput](onBeforeMount) while loading phone number examples file")}}),onMounted(()=>{try{if(!$r.defaultCountryCode&&!$r.noUseBrowserLocale&&!Vr.value){const yn=browserLocale();yn&&bn(yn)}if($r.defaultCountryCode&&$r.fetchCountry)throw String("Do not use 'fetch-country' and 'default-country-code' options in the same time");if($r.defaultCountryCode&&$r.noUseBrowserLocale)throw String("If you use a 'default-country-code', do not use 'no-use-browser-locale' options")}catch(yn){console.warn(`[MazPhoneNumberInput](mounted) ${yn}`)}});const tn=computed(()=>getCountriesList($r.customCountriesList)),en=computed(()=>({...locales,...$r.translations})),rn=computed(()=>{var yn;return(yn=zr.value)==null?void 0:yn.isValid}),nn=computed(()=>{var yn;return(yn=tn.value)==null?void 0:yn.filter(wn=>{var gn;return!((gn=$r.ignoredCountries)!=null&&gn.includes(wn.iso2))})}),on=computed(()=>{const yn=$r.onlyCountries||$r.preferredCountries;return yn==null?void 0:yn.map(wn=>{var gn;return(gn=nn.value)==null?void 0:gn.find(Pn=>Pn.iso2.includes(wn))})}),un=computed(()=>{var yn;return(yn=nn.value)==null?void 0:yn.filter(wn=>{var gn;return!((gn=$r.preferredCountries)!=null&&gn.includes(wn.iso2))})}),an=computed(()=>{var yn,wn;return $r.preferredCountries?[...(yn=on.value)!=null?yn:[],...(wn=un.value)!=null?wn:[]]:$r.onlyCountries?on.value:nn.value}),sn=computed(()=>{var yn;return(yn=an.value)==null?void 0:yn.map(wn=>wn?{...wn,dialCode:`+${wn.dialCode}`}:void 0).filter(truthyFilter)}),dn=computed(()=>{if($r.placeholder)return $r.placeholder;const yn=en.value.phoneInput.placeholder;if($r.noExample||!Gr.value)return yn;{const wn=cn();return rn.value||!wn?yn:`${en.value.phoneInput.example} ${wn}`}});watch(()=>$r.modelValue,(yn,wn)=>{yn!==wn&&mn(yn)}),watch(()=>$r.defaultPhoneNumber,(yn,wn)=>{yn!==wn&&mn(yn)}),watch(()=>$r.defaultCountryCode,(yn,wn)=>{yn&&yn!==wn&&(bn(yn),mn())});const ln=yn=>{Qr.value=yn.key;const wn=yn.target;Kr.value=wn==null?void 0:wn.selectionStart},cn=()=>{try{const yn=Vr.value?getExamplePhoneNumber(Vr.value):void 0;return yn?yn.formatNational():void 0}catch(yn){throw new Error(`[MazPhoneNumberInput](getPhoneNumberExample) ${yn}`)}},fn=()=>{zr.value&&zr.value.countryCode&&Vr.value!==zr.value.countryCode&&bn(zr.value.countryCode)},pn=yn=>{yn=sanitizePhoneNumber(yn);const wn=Qr.value==="Backspace",Pn=(yn?yn.charAt(yn.length-1):"")===")";return wn&&Pn&&(yn=yn==null?void 0:yn.trim().slice(0,-2)),yn},hn=(yn,wn)=>{zr.value=getResultsFromPhoneNumber(Vr.value,yn),wn||fn(),Fe("update",zr.value)},mn=(yn=$r.modelValue,wn)=>{try{hn(yn,wn),Sn(yn)}catch(gn){throw new Error(`[MazPhoneNumberInput](emitsValueAndResults) ${gn}`)}},Sn=yn=>{var wn,gn;Wr.value=pn(yn);const{isValid:Pn,e164:Tn,formatNational:An}=getResultsFromPhoneNumber(Vr.value,yn),Dn=Wr.value&&yn&&((wn=Wr.value)==null?void 0:wn.length)>(yn==null?void 0:yn.length),Mn=yn&&Kr.value?Kr.value+1>=yn.length:!0,Ln=!Dn&&Mn||Pn;if(Vr.value){const qn=(gn=Wr.value)==null?void 0:gn.includes("+");Wr.value=An&&qn?An:Ln?getAsYouTypeFormat(Vr.value,Wr.value):Wr.value}const On=Pn?Tn:Wr.value;On!==$r.modelValue&&Fe("update:model-value",On)},vn=()=>{Yr.value=!0,Vr.value&&(Wr.value=getAsYouTypeFormat(Vr.value,Wr.value))},bn=(yn,wn=!1)=>{try{isCountryAvailable(yn)&&(Vr.value=yn,Fe("country-code",yn),mn($r.modelValue,!0)),wn&&($n(),Wr.value&&Wr.value.includes("+")&&(Wr.value=void 0))}catch(gn){throw new Error(`[MazPhoneNumberInput](setCountryCode) ${gn}`)}},_n=()=>{var yn,wn;try{(wn=(yn=Jr.value)==null?void 0:yn.$el.querySelector("input"))==null||wn.focus()}catch(gn){throw new Error(`[MazPhoneNumberInput](focusCountrySelector) ${gn}`)}},$n=()=>{var yn,wn;try{(wn=(yn=Zr.value)==null?void 0:yn.$el.querySelector("input"))==null||wn.focus()}catch(gn){throw new Error(`[MazPhoneNumberInput](focusPhoneNumberInput) ${gn}`)}};return(yn,wn)=>(openBlock(),createElementBlock("div",{id:unref(jr),class:normalizeClass(["m-phone-number-input",{"--no-flags":_r.noFlags}])},[Vr.value&&!_r.noFlags&&!_r.noCountrySelector?(openBlock(),createElementBlock("button",{key:0,class:"m-phone-number-input__country-flag",tabindex:"-1",type:"button",onClick:_n},[createBaseVNode("div",{class:normalizeClass(["maz-flag",`maz-flag-${Vr.value.toLowerCase()}`])},null,2)])):createCommentVNode("v-if",!0),!_r.noCountrySelector&&unref(sn)?(openBlock(),createBlock(MazSelect,{key:1,ref_key:"CountrySelector",ref:Jr,class:"m-phone-number-input__select","model-value":Vr.value,"option-value-key":"iso2","option-label-key":"name","option-input-value-key":"dialCode","max-list-width":250,disabled:_r.disabled,color:_r.color,size:_r.size,"list-position":_r.listPosition,search:!_r.noSearch,"search-placeholder":unref(en).countrySelector.searchPlaceholder,options:unref(sn),error:_r.error||!!Wr.value&&!Vr.value,hint:!!Wr.value&&!Vr.value?unref(en).countrySelector.error:void 0,label:unref(en).countrySelector.placeholder,"onUpdate:modelValue":wn[0]||(wn[0]=gn=>bn(gn,!0)),onFocus:wn[1]||(wn[1]=gn=>Yr.value=!1)},{default:withCtx(({option:gn,isSelected:Pn})=>[createBaseVNode("div",{class:normalizeClass(["m-phone-number-input__select__item maz-flex maz-items-center maz-truncate",{"m-phone-number-input__select__item--selected":Pn}])},[!_r.noFlags&&typeof gn.iso2=="string"?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(["maz-flag maz-mr-2",[`maz-flag-${gn.iso2.toLowerCase()}`]])},null,2)):createCommentVNode("v-if",!0),_r.showCodeOnList?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(["maz-w-10 maz-flex-none",{"maz-text-muted":!Pn}])},toDisplayString(gn.dialCode),3)):createCommentVNode("v-if",!0),createBaseVNode("span",_hoisted_2$f,toDisplayString(gn.name),1)],2)]),_:1},8,["model-value","disabled","color","size","list-position","search","search-placeholder","options","error","hint","label"])):createCommentVNode("v-if",!0),createVNode(MazInput,mergeProps({id:_r.id,ref_key:"PhoneNumberInput",ref:Zr,"model-value":Wr.value,label:unref(dn),disabled:_r.disabled,color:_r.color,error:_r.error||!!Wr.value&&!zr.value.isValid},yn.$attrs,{size:_r.size,"icon-name":"phone",type:"tel",clearable:"",class:["m-phone-number-input__input maz-flex-1",{"--border-radius":!_r.noCountrySelector,"--error":_r.error||!zr.value.isValid,"--focused":Yr.value}],onFocus:wn[2]||(wn[2]=gn=>Yr.value=!0),onBlur:vn,"onUpdate:modelValue":wn[3]||(wn[3]=gn=>mn(gn)),onKeydown:wn[4]||(wn[4]=gn=>ln(gn))}),null,16,["id","model-value","label","disabled","color","error","size","class"])],10,_hoisted_1$g))}}),MazPhoneNumberInput=_export_sfc(_sfc_main$j,[["__scopeId","data-v-b43ec161"]]),_hoisted_1$f=["for"],_hoisted_2$e={key:0,class:"text-red"},_sfc_main$i={__name:"LabelField",props:["for","text","errorText"],setup(_r){return(Fe,$r)=>(openBlock(),createElementBlock("div",null,[createBaseVNode("label",{class:"uppercase text-[14px] font-header tracking-widest",for:_r.for},[createTextVNode(toDisplayString(_r.text)+" ",1),_r.errorText?(openBlock(),createElementBlock("span",_hoisted_2$e,toDisplayString(_r.errorText),1)):createCommentVNode("",!0)],8,_hoisted_1$f)]))}},_hoisted_1$e=["id","type","name","required","placeholder","maxlength"],_sfc_main$h={__name:"InputField",props:["id","type","name","initValue","required","placeholder","maxlength"],setup(_r){const Fe=_r,$r=ref("");onMounted(()=>{}),watch(()=>Fe.initValue,(jr,zr)=>{$r.value=jr});const Fr=["appearance-none","block","w-full","px-3","py-1","leading-none","border-2","outline-[2px]","focus:outline","outline-green","bg-offwhite","focus:bg-peach","focus:bg-opacity-50","placeholder-gray-400","focus:border-green","focus:border-2"];return(jr,zr)=>(openBlock(),createElementBlock("div",null,[withDirectives(createBaseVNode("input",{class:normalizeClass(Fr),id:_r.id,"onUpdate:modelValue":zr[0]||(zr[0]=Vr=>$r.value=Vr),type:_r.type,name:_r.name,required:_r.required,placeholder:_r.placeholder,maxlength:_r.maxlength,onLoad:zr[1]||(zr[1]=Vr=>jr.$emit("update:modelValue",_r.initValue)),onInput:zr[2]||(zr[2]=Vr=>jr.$emit("update:modelValue",Vr.target.value))},null,40,_hoisted_1$e),[[vModelDynamic,$r.value]])]))}},_hoisted_1$d={class:"overflow-y text-left z-20 fixed w-full h-full bg-black bg-opacity-30 flex items-center justify-center top-0 left-0"},_hoisted_2$d={class:"mb-2"},_hoisted_3$d={key:0,class:"text-red text-[18px]"},_hoisted_4$d={class:"mb-2"},_hoisted_5$d={key:0,class:"text-red text-[18px]"},_hoisted_6$d={class:"mb-2"},_hoisted_7$a={key:0,class:"text-red text-[18px]"},_hoisted_8$a={class:"mb-2"},_hoisted_9$9={key:0,class:"text-red text-[18px]"},_hoisted_10$9={class:"grid grid-cols-2 gap-x-4"},_hoisted_11$9={class:"mb-2"},_hoisted_12$9=createBaseVNode("option",{value:"",disabled:"",selected:""},"Select a country",-1),_hoisted_13$8=["value"],_hoisted_14$6={key:0,class:"text-red text-[18px]"},_hoisted_15$5={key:0,class:"mb-2"},_hoisted_16$5=createBaseVNode("option",{value:"",disabled:"",selected:""},"Select a state",-1),_hoisted_17$5=["value"],_hoisted_18$5={key:0,class:"text-red text-[18px]"},_hoisted_19$5={class:"grid grid-cols-2 gap-x-4"},_hoisted_20$4={class:"mb-2"},_hoisted_21$3={key:0,class:"text-red text-[18px]"},_hoisted_22$3={class:"mb-2"},_hoisted_23$3={key:0,class:"text-red text-[18px]"},_hoisted_24$3={class:"mb-2"},_hoisted_25$3={key:0,class:"text-red text-[18px]"},_hoisted_26$3={class:"mb-2"},_hoisted_27$2={class:"mb-2"},_hoisted_28$2={class:"mt-4 flex justify-between"},_sfc_main$g={__name:"AddressCreation",props:["address"],setup(_r,{emit:Fe}){const $r=_r,Fr=ref({}),jr=ref({}),zr=ref([]),Vr=ref([]),Wr=ref(),Kr=ref(""),Gr=ref(""),Yr=["appearance-none","block","w-full","px-3","py-1","leading-tight","border-2","outline-[2px]","focus:outline","outline-green","bg-offwhite","focus:bg-peach","focus:bg-opacity-50","placeholder-gray-400","focus:outline-none","focus:border-green","focus:border-2"];onMounted(()=>{Qr(),$r.address?jr.value=$r.address:(jr.value.countryCode="",jr.value.administrativeArea="")}),watch(()=>jr.value.countryCode,(Zr,tn)=>{Object.keys(zr.value).length>0&&Zr!==0&&(Vr.value=zr.value[jr.value.countryCode].states)}),watch(()=>jr.value.addressLine1,(Zr,tn)=>{Zr.length>=35?Kr.value="(35 characters max)":Kr.value=""}),watch(()=>jr.value.addressLine2,(Zr,tn)=>{Zr.length>=35?Gr.value="(35 characters max)":Gr.value=""});const Qr=()=>fetch("/api/helpers/countries",{method:"get",headers:{"Content-type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"}}).then(Zr=>Zr.json()).then(Zr=>{zr.value=Zr.countries,jr.value.countryCode!==void 0&&(Vr.value=zr.value[jr.value.countryCode].states)});ref();const Jr=()=>{let Zr={...jr.value,fields:{phoneNumber:{number:Wr.value.formatNational,region:Wr.value.countryCode}}};$r.address!==void 0&&$r.address.id&&(Zr.addressId=$r.address.id),Zr[csrfTokenName]=csrfTokenValue,fetch("?action=users/save-address",{method:"post",headers:{"Content-type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify(Zr)}).then(tn=>tn.ok?tn.json():tn.json().then(Promise.reject.bind(Promise))).then(tn=>{Fe("address-created")}).catch(tn=>{tn.errors!==void 0&&(Fr.value=tn.errors)})};return(Zr,tn)=>{var en,rn;return openBlock(),createElementBlock("div",_hoisted_1$d,[createBaseVNode("form",{class:"text-r26 bg-offwhite p-6 w-full max-h-[95%] overflow-y-scroll max-w-[500px]",method:"post",action:"",onSubmit:tn[13]||(tn[13]=withModifiers(nn=>Jr(),["prevent"]))},[createBaseVNode("div",_hoisted_2$d,[createVNode(_sfc_main$i,{for:"title",text:"Address name *"}),createVNode(_sfc_main$h,{required:!0,placeholder:"Home, Work, etc","init-value":jr.value.title,type:"text",id:"title",name:"title",modelValue:jr.value.title,"onUpdate:modelValue":tn[0]||(tn[0]=nn=>jr.value.title=nn)},null,8,["init-value","modelValue"]),Fr.value.title?(openBlock(),createElementBlock("div",_hoisted_3$d,toDisplayString(Fr.value.title[0]),1)):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_4$d,[createVNode(_sfc_main$i,{for:"fullName",text:"Full name (First & last name required) *"}),createVNode(_sfc_main$h,{placeholder:"Your full name","init-value":jr.value.fullName,required:!0,modelValue:jr.value.fullName,"onUpdate:modelValue":tn[1]||(tn[1]=nn=>jr.value.fullName=nn),id:"fullName",type:"text",name:"fullName"},null,8,["init-value","modelValue"]),Fr.value.fullName?(openBlock(),createElementBlock("div",_hoisted_5$d,toDisplayString(Fr.value.fullName[0]),1)):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_6$d,[createVNode(_sfc_main$i,{for:"addressLine1",text:"Address Line 1 *","error-text":Kr.value},null,8,["error-text"]),createVNode(_sfc_main$h,{required:!0,"init-value":jr.value.addressLine1,modelValue:jr.value.addressLine1,"onUpdate:modelValue":tn[2]||(tn[2]=nn=>jr.value.addressLine1=nn),id:"addressLine1",type:"text",name:"addressLine1",maxlength:"35"},null,8,["init-value","modelValue"]),Fr.value.addressLine1?(openBlock(),createElementBlock("div",_hoisted_7$a,toDisplayString(Fr.value.addressLine1[0]),1)):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_8$a,[createVNode(_sfc_main$i,{for:"addressLine2",text:"Address Line 2","error-text":Gr.value},null,8,["error-text"]),createVNode(_sfc_main$h,{"init-value":jr.value.addressLine2,modelValue:jr.value.addressLine2,"onUpdate:modelValue":tn[3]||(tn[3]=nn=>jr.value.addressLine2=nn),id:"addressLine2",type:"text",name:"addressLine2",maxlength:"35"},null,8,["init-value","modelValue"]),Fr.value.addressLine2?(openBlock(),createElementBlock("div",_hoisted_9$9,toDisplayString(Fr.value.addressLine2[0]),1)):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_10$9,[createBaseVNode("div",_hoisted_11$9,[createVNode(_sfc_main$i,{for:"countryCode",text:"Country *"}),withDirectives(createBaseVNode("select",{"onUpdate:modelValue":tn[4]||(tn[4]=nn=>jr.value.countryCode=nn),name:"countryCode",class:normalizeClass(["c--input-country",Yr]),id:"countryCode",required:""},[_hoisted_12$9,(openBlock(!0),createElementBlock(Fragment,null,renderList(zr.value,(nn,on)=>(openBlock(),createElementBlock("option",{value:on},toDisplayString(nn.name),9,_hoisted_13$8))),256))],512),[[vModelSelect,jr.value.countryCode]]),Fr.value.countryCode?(openBlock(),createElementBlock("div",_hoisted_14$6,toDisplayString(Fr.value.countryCode[0]),1)):createCommentVNode("",!0)]),Object.keys(Vr.value).length>0?(openBlock(),createElementBlock("div",_hoisted_15$5,[createVNode(_sfc_main$i,{for:"administrativeArea",text:"State *"}),withDirectives(createBaseVNode("select",{"onUpdate:modelValue":tn[5]||(tn[5]=nn=>jr.value.administrativeArea=nn),name:"administrativeArea",id:"administrativeArea",class:normalizeClass(["c--input-country",Yr]),required:""},[_hoisted_16$5,(openBlock(!0),createElementBlock(Fragment,null,renderList(Vr.value,(nn,on)=>(openBlock(),createElementBlock("option",{value:on},toDisplayString(nn),9,_hoisted_17$5))),256))],512),[[vModelSelect,jr.value.administrativeArea]]),Fr.value.administrativeArea?(openBlock(),createElementBlock("div",_hoisted_18$5,toDisplayString(Fr.value.administrativeArea[0]),1)):createCommentVNode("",!0)])):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_19$5,[createBaseVNode("div",_hoisted_20$4,[createVNode(_sfc_main$i,{for:"locality",text:"City *"}),createVNode(_sfc_main$h,{required:!0,"init-value":jr.value.locality,modelValue:jr.value.locality,"onUpdate:modelValue":tn[6]||(tn[6]=nn=>jr.value.locality=nn),id:"locality",type:"text",name:"locality"},null,8,["init-value","modelValue"]),Fr.value.locality?(openBlock(),createElementBlock("div",_hoisted_21$3,toDisplayString(Fr.value.locality[0]),1)):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_22$3,[createVNode(_sfc_main$i,{for:"postalCode",text:"Postal Code *"}),createVNode(_sfc_main$h,{required:!0,"init-value":jr.value.postalCode,modelValue:jr.value.postalCode,"onUpdate:modelValue":tn[7]||(tn[7]=nn=>jr.value.postalCode=nn),id:"postalCode",type:"text",name:"postalCode"},null,8,["init-value","modelValue"]),Fr.value.postalCode?(openBlock(),createElementBlock("div",_hoisted_23$3,toDisplayString(Fr.value.postalCode[0]),1)):createCommentVNode("",!0)])]),createBaseVNode("div",_hoisted_24$3,[createVNode(_sfc_main$i,{for:"phoneNumber",text:"Phone number *"}),createVNode(unref(MazPhoneNumberInput),{"preferred-countries":["FR","GB","US"],modelValue:jr.value.phoneNumber,"onUpdate:modelValue":tn[8]||(tn[8]=nn=>jr.value.phoneNumber=nn),onUpdate:tn[9]||(tn[9]=nn=>Wr.value=nn),success:(en=Wr.value)==null?void 0:en.isValid,"list-position":"top","no-radius":"true",required:!0},null,8,["modelValue","success"]),Fr.value.phoneNumber?(openBlock(),createElementBlock("div",_hoisted_25$3,toDisplayString(Fr.value.phoneNumber[0]),1)):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_26$3,[withDirectives(createBaseVNode("input",{class:"peer visually-hidden",type:"checkbox",id:"isPrimaryShipping","onUpdate:modelValue":tn[10]||(tn[10]=nn=>jr.value.isPrimaryShipping=nn)},null,512),[[vModelCheckbox,jr.value.isPrimaryShipping]]),createBaseVNode("label",{for:"isPrimaryShipping",class:normalizeClass(["flex items-center peer-focus-visible:before:bg-black peer-focus-visible:before:bg-opacity-50 cursor-pointer relative before:block before:w-6 before:border-black before:border before:mr-3 before:h-6 before:content-['']",[jr.value.isPrimaryShipping?"before:bg-black":""]])}," Default Shipping Address ",2)]),createBaseVNode("div",_hoisted_27$2,[withDirectives(createBaseVNode("input",{class:"peer visually-hidden",type:"checkbox",id:"isPrimaryBilling","onUpdate:modelValue":tn[11]||(tn[11]=nn=>jr.value.isPrimaryBilling=nn)},null,512),[[vModelCheckbox,jr.value.isPrimaryBilling]]),createBaseVNode("label",{for:"isPrimaryBilling",class:normalizeClass(["flex items-center peer-focus-visible:before:bg-black peer-focus-visible:before:bg-opacity-50 cursor-pointer relative before:block before:w-6 before:border-black before:border before:mr-3 before:h-6 before:content-['']",[jr.value.isPrimaryBilling?"before:bg-black":""]])}," Default Billing Address ",2)]),createBaseVNode("div",_hoisted_28$2,[createBaseVNode("button",{class:"hover:underline",type:"button",onClick:tn[12]||(tn[12]=nn=>Zr.$emit("close"))},"Cancel"),createVNode(_sfc_main$m,{text:(rn=$r.address)!=null&&rn.id?"Save address":"Add address"},null,8,["text"])])],32)])}}},_hoisted_1$c={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3"},_hoisted_2$c={class:"flex flex-grow items-center justify-center text-r26 flex-col p-1 bg-white border-2 border-gray border-opacity-10 text-left text-r22 leading-[1.2]"},_hoisted_3$c=createBaseVNode("img",{src:"/img/plus.svg",alt:"Plus sign",class:"w-8 mb-2"},null,-1),_hoisted_4$c={class:"p-1 bg-white border-2 border-gray border-opacity-10 text-left text-r22 leading-[1.2] flex flex-col justify-between"},_hoisted_5$c=["onClick"],_hoisted_6$c={class:"uppercase mb-1 text-[12px] tracking-widest font-header"},_hoisted_7$9={class:"font-bold"},_hoisted_8$9={key:0},_hoisted_9$8={key:0,class:"mt-4 text-green block uppercase text-[12px] tracking-widest font-header border-t pt-2"},_hoisted_10$8={key:1},_hoisted_11$8={class:"flex justify-between"},_hoisted_12$8=["onClick"],_hoisted_13$7=["onClick"],buttonClass$1="bg-green text-white bg-opacity-80 hover:bg-opacity-100 inline-block uppercase text-[13px] tracking-widest font-header py-2 px-5",_sfc_main$f={__name:"Addresses",props:["currentShippingAddressId"],setup(_r,{expose:Fe,emit:$r}){const Fr=ref([]),jr=ref(!1),zr=ref({});onMounted(()=>{Vr()});const Vr=()=>fetch("/api/customer/addresses",{method:"get",headers:{"Content-type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"}}).then(Kr=>Kr.json()).then(Kr=>{Fr.value=Kr.addresses}),Wr=()=>{Vr(),zr.value={},jr.value=!1};return Fe({refreshAddresses:Vr}),(Kr,Gr)=>(openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",_hoisted_1$c,[createBaseVNode("div",_hoisted_2$c,[createBaseVNode("button",{onClick:Gr[0]||(Gr[0]=Yr=>Kr.$emit("showAddressCreation")),class:"py-10 flex-grow w-full flex flex-col items-center justify-center hover:bg-green hover:bg-opacity-[0.05] hover:border-green"},[_hoisted_3$c,createTextVNode(" Add a new address ")])]),(openBlock(!0),createElementBlock(Fragment,null,renderList(Fr.value,Yr=>(openBlock(),createElementBlock("div",_hoisted_4$c,[createBaseVNode("button",{type:"button",class:normalizeClass(["p-2 w-full text-left flex flex-col flex-grow",[_r.currentShippingAddressId==Yr.id?"border-green border":"border border-transparent hover:bg-green hover:bg-opacity-[0.05]"]]),onClick:Qr=>Kr.$emit("select-address",Yr.id)},[createBaseVNode("div",_hoisted_6$c,toDisplayString(Yr.title),1),createBaseVNode("div",_hoisted_7$9,toDisplayString(Yr.fullName),1),createBaseVNode("div",null,toDisplayString(Yr.addressLine1),1),createBaseVNode("div",null,toDisplayString(Yr.addressLine2),1),createBaseVNode("div",null,toDisplayString(Yr.postalCode)+", "+toDisplayString(Yr.locality),1),createBaseVNode("div",null,[Yr.administrativeArea?(openBlock(),createElementBlock("span",_hoisted_8$9,toDisplayString(Yr.administrativeArea)+", ",1)):createCommentVNode("",!0),createTextVNode(toDisplayString(Yr.countryName),1)]),createBaseVNode("div",null,toDisplayString(Yr.phoneNumber),1),Yr.isPrimaryShipping||Yr.isPrimaryBilling?(openBlock(),createElementBlock("div",_hoisted_9$8,[Yr.isPrimaryShipping?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass({"mb-px":Yr.isPrimaryBilling})},"Default Shipping",2)):createCommentVNode("",!0),Yr.isPrimaryBilling?(openBlock(),createElementBlock("div",_hoisted_10$8,"Default Billing")):createCommentVNode("",!0)])):createCommentVNode("",!0)],10,_hoisted_5$c),createBaseVNode("div",_hoisted_11$8,[createBaseVNode("button",{onClick:Qr=>{zr.value=Yr,jr.value=!0},class:"mr-2 mt-2 self-end mb-2 uppercase text-[13px] tracking-widest font-header py-2 px-2 hover:underline"},"Edit ",8,_hoisted_12$8),createBaseVNode("button",{onClick:Qr=>Kr.$emit("select-address",Yr.id),class:normalizeClass(["mr-2 mt-2 self-end mb-2",buttonClass$1])},"Select ",8,_hoisted_13$7)])]))),256))]),jr.value?(openBlock(),createBlock(_sfc_main$g,{key:0,address:zr.value,onAddressCreated:Gr[1]||(Gr[1]=Yr=>Wr()),onClose:Gr[2]||(Gr[2]=Yr=>{zr.value={},jr.value=!1})},null,8,["address"])):createCommentVNode("",!0)],64))}},_hoisted_1$b={class:"fixed z-30 w-full h-full bg-black bg-opacity-30 flex items-center justify-center top-0 left-0"},_hoisted_2$b={class:"text-r26 bg-offwhite p-6 w-full h-full md:h-auto max-w-[800px] md:max-h-[80vh] overflow-y-scroll"},_hoisted_3$b={class:"mb-4 font-header uppercase tracking-widest text-[16px]"},_hoisted_4$b={key:0},_hoisted_5$b={key:1},_hoisted_6$b={class:"flex justify-between items-center mt-4"},_hoisted_7$8={class:"text-right flex"},_hoisted_8$8={class:"mr-4"},_sfc_main$e={__name:"AddressSelection",props:["currentShippingAddressId","addressSelectionType"],setup(_r,{expose:Fe,emit:$r}){const Fr=_r,jr=useCartStore();storeToRefs(jr);const zr=ref(),Vr=ref(!1),Wr=Gr=>{let Yr={};$r("do-loading"),$r("do-hide-address-selection"),Fr.addressSelectionType=="shipping"?Yr={shippingAddressId:Gr,clearNotices:1}:Yr={billingAddressId:Gr,clearNotices:1},Yr[csrfTokenName]=csrfTokenValue,fetch("?action=commerce/cart/update-cart",{method:"post",headers:{"Content-type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify(Yr)}).then(Qr=>Qr.json()).then(Qr=>{$r("new-address-selected",Qr.cart.notices,Fr.addressSelectionType),jr.setCart(Qr.cart.extra,!1)})},Kr=()=>{zr.value.refreshAddresses(),Vr.value=!1};return Fe({addressCreated:Kr}),(Gr,Yr)=>(openBlock(),createElementBlock("div",_hoisted_1$b,[createBaseVNode("div",_hoisted_2$b,[createBaseVNode("div",_hoisted_3$b,[createTextVNode(" Select a "),_r.addressSelectionType=="shipping"?(openBlock(),createElementBlock("span",_hoisted_4$b,"shipping")):(openBlock(),createElementBlock("span",_hoisted_5$b,"billing")),createTextVNode(" address ")]),createVNode(_sfc_main$f,{currentShippingAddressId:_r.currentShippingAddressId,onSelectAddress:Wr,onShowAddressCreation:Yr[0]||(Yr[0]=Qr=>Vr.value=!0),ref_key:"addressesComponent",ref:zr},null,8,["currentShippingAddressId"]),createBaseVNode("div",_hoisted_6$b,[createBaseVNode("button",{onClick:Yr[1]||(Yr[1]=Qr=>Gr.$emit("close-address-selection")),class:"hover:underline text-[13px] tracking-widest font-header uppercase"},"Close"),createBaseVNode("div",_hoisted_7$8,[createBaseVNode("div",_hoisted_8$8,[createVNode(_sfc_main$m,{type:"link",href:"/shop/customer/addresses",text:"Manage addresses"})]),Vr.value?(openBlock(),createBlock(_sfc_main$g,{key:0,onAddressCreated:Yr[2]||(Yr[2]=Qr=>Kr()),onClose:Yr[3]||(Yr[3]=Qr=>Vr.value=!1)})):createCommentVNode("",!0)])])])]))}},_hoisted_1$a={class:"fixed z-30 w-full h-full bg-black bg-opacity-30 flex items-center justify-center top-0 left-0"},_hoisted_2$a={class:"relative text-r26 bg-offwhite p-6 w-full max-w-[800px] max-h-[80vh] overflow-y-scroll"},_hoisted_3$a=createBaseVNode("div",{class:"mb-4 font-header uppercase tracking-widest text-[16px]"},"Please enter a French phone number",-1),_hoisted_4$a={class:"flex justify-between items-end mt-4"},_hoisted_5$a={class:"text-right mt-4"},_hoisted_6$a={key:0,class:"absolute flex items-center justify-center bg-white top-0 left-0 w-full h-full text-r26 z-10 bg-opacity-90"},_sfc_main$d={__name:"PhoneNumberUpdate",props:["addressId"],setup(_r,{emit:Fe}){const $r=_r,Fr=useCartStore();storeToRefs(Fr);const jr=ref(),zr=ref(!1),Vr=()=>{zr.value=!0;let Kr={fields:{phoneNumber:{number:jr.value.formatNational,region:jr.value.countryCode}}};$r.addressId!==void 0&&(Kr.addressId=$r.addressId),Kr[csrfTokenName]=csrfTokenValue,fetch("?action=users/save-address",{method:"post",headers:{"Content-type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify(Kr)}).then(Gr=>Gr.ok?Gr.json():Gr.json().then(Promise.reject.bind(Promise))).then(Gr=>{Wr($r.addressId)}).catch(Gr=>{Gr.errors!==void 0&&(errors.value=Gr.errors)})},Wr=Kr=>{let Gr={};Gr={shippingAddressId:Kr,makePrimaryShippingAddress:1},Gr[csrfTokenName]=csrfTokenValue,fetch("?action=commerce/cart/update-cart",{method:"post",headers:{"Content-type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify(Gr)}).then(Yr=>Yr.json()).then(Yr=>{zr.value=!1,Fe("address-updated",Yr.cart.notices),Fe("phone-updated"),Fr.setCart(Yr.cart.extra,!1)})};return(Kr,Gr)=>{var Yr;return openBlock(),createElementBlock("div",_hoisted_1$a,[createBaseVNode("div",_hoisted_2$a,[createBaseVNode("form",{method:"post",action:"",onSubmit:Gr[2]||(Gr[2]=withModifiers(Qr=>Vr(),["prevent"]))},[_hoisted_3$a,createVNode(unref(MazPhoneNumberInput),{"only-countries":["FR","GF","GP","MQ","RE","YT","PM"],"default-country-code":"FR",onUpdate:Gr[0]||(Gr[0]=Qr=>jr.value=Qr),success:(Yr=jr.value)==null?void 0:Yr.isValid,"list-position":"bottom","no-radius":"true"},null,8,["success"]),createBaseVNode("div",_hoisted_4$a,[createBaseVNode("button",{onClick:Gr[1]||(Gr[1]=Qr=>Kr.$emit("close-phone-number-update")),class:"hover:underline text-[13px] tracking-widest font-header uppercase"},"Close "),createBaseVNode("div",_hoisted_5$a,[createVNode(_sfc_main$m,{text:"Save phone number"})])])],32),zr.value?(openBlock(),createElementBlock("div",_hoisted_6$a," Updating... ")):createCommentVNode("",!0)])])}}},_hoisted_1$9={class:"col-span-3 md:col-span-2"},_hoisted_2$9={key:0,class:"pb-4"},_hoisted_3$9=createBaseVNode("div",{class:"uppercase font-header text-[15px] tracking-widest mb-4"},"How would you like to receive your order? ",-1),_hoisted_4$9={class:"flex flex-wrap xl:flex-nowrap"},_hoisted_5$9={class:"w-full xl:w-auto mb-4 xl:mb-0 tracking-widest uppercase font-header leading-tight mr-8"},_hoisted_6$9={key:0},_hoisted_7$7=["id","value"],_hoisted_8$7=["for"],_hoisted_9$7={class:"mt-2 mb-2"},_hoisted_10$7={key:1,class:"text-[18px] mb-6 font-header uppercase tracking-widest"},_hoisted_11$7=createBaseVNode("div",{class:"uppercase font-header text-[15px] tracking-widest mb-4"},"Delivery method",-1),_hoisted_12$7={class:"flex justify-between items-center pr-8 flex-wrap"},_hoisted_13$6={class:"text-[18px] font-header uppercase tracking-widest w-full xl:w-auto mb-4 xl:mb-0"},_sfc_main$c={__name:"CollectDelivery",props:{cartInfo:Object,selectedType:String,editing:Boolean},setup(_r,{emit:Fe}){const $r=_r,Fr=ref(!1),jr=[{handle:"collectInStore",name:"Collect in store"},{handle:"delivery",name:"Delivery at home"},{handle:"relay",name:"Point relais (France only)"}],zr=ref("");onMounted(()=>{zr.value=$r.selectedType;let Wr=new URLSearchParams(window.location.search);console.log(Wr),Wr.get("relaytest")==1&&(console.log("hello"),Fr.value=!0)}),watch(()=>$r.selectedType,(Wr,Kr)=>{zr.value=Wr});const Vr=()=>{Fe("updateOrderType",zr.value)};return(Wr,Kr)=>(openBlock(),createElementBlock("div",_hoisted_1$9,[_r.cartInfo&&_r.editing?(openBlock(),createElementBlock("div",_hoisted_2$9,[_hoisted_3$9,createBaseVNode("div",_hoisted_4$9,[(openBlock(),createElementBlock(Fragment,null,renderList(jr,Gr=>createBaseVNode("div",_hoisted_5$9,[Gr.handle!="relay"||Gr.handle=="relay"&&Fr.value?(openBlock(),createElementBlock("div",_hoisted_6$9,[withDirectives(createBaseVNode("input",{class:"peer visually-hidden",type:"radio",onChange:Kr[0]||(Kr[0]=Yr=>Vr()),id:Gr.handle,"onUpdate:modelValue":Kr[1]||(Kr[1]=Yr=>zr.value=Yr),value:Gr.handle},null,40,_hoisted_7$7),[[vModelRadio,zr.value]]),createBaseVNode("label",{for:Gr.handle,class:normalizeClass(["peer-focus-visible:before:bg-black flex xl:block before:mr-4 xl:before:mr-0 peer-focus-visible:before:bg-opacity-50 cursor-pointer relative before:block before:w-8 before:border-black before:border before:h-8 before:rounded-full before:content-['']",[Gr.handle==_r.cartInfo.orderType?"before:bg-black":""]])},[createBaseVNode("div",_hoisted_9$7,toDisplayString(Gr.name),1)],10,_hoisted_8$7)])):createCommentVNode("",!0)])),64))])])):createCommentVNode("",!0),_r.cartInfo&&!_r.editing?(openBlock(),createElementBlock("div",_hoisted_10$7,[_hoisted_11$7,createBaseVNode("div",_hoisted_12$7,[createBaseVNode("div",_hoisted_13$6,toDisplayString(_r.cartInfo.orderType=="collectInStore"?"Collect in store":_r.cartInfo.orderType=="delivery"?"Delivery at home":"Point relais (France only)"),1),createVNode(_sfc_main$m,{onClick:Kr[2]||(Kr[2]=Gr=>Fe("updateEditingOrderType",!0)),text:"Change"})])])):createCommentVNode("",!0)]))}},_hoisted_1$8={class:"fixed z-30 w-full h-full bg-black bg-opacity-30 flex items-center justify-center top-0 left-0"},_hoisted_2$8={class:"relative text-r26 bg-offwhite p-6 w-[95%] max-w-[800px] max-h-[80vh] overflow-y-scroll"},_hoisted_3$8=createBaseVNode("label",{for:"newName",class:"block mb-4 font-header uppercase tracking-widest text-[16px]"},"Who will collect your order? ",-1),_hoisted_4$8={class:"flex justify-between items-end mt-4"},_hoisted_5$8={class:"text-right mt-4"},_hoisted_6$8={key:0,class:"absolute flex items-center justify-center bg-white top-0 left-0 w-full h-full text-r26 z-10 bg-opacity-90"},_sfc_main$b={__name:"CollectingPersonModal",props:["addressId"],setup(_r,{emit:Fe}){const $r=useCartStore();storeToRefs($r);const Fr=ref(!1),jr=ref("");return(zr,Vr)=>(openBlock(),createElementBlock("div",_hoisted_1$8,[createBaseVNode("div",_hoisted_2$8,[createBaseVNode("form",{method:"post",action:"",onSubmit:Vr[2]||(Vr[2]=withModifiers(Wr=>Fe("name-updated",jr.value),["prevent"]))},[_hoisted_3$8,createVNode(_sfc_main$h,{required:!0,placeholder:"Full name","init-value":"",type:"text",id:"newName",name:"newName",modelValue:jr.value,"onUpdate:modelValue":Vr[0]||(Vr[0]=Wr=>jr.value=Wr)},null,8,["modelValue"]),createBaseVNode("div",_hoisted_4$8,[createBaseVNode("button",{onClick:Vr[1]||(Vr[1]=Wr=>zr.$emit("close-collecting-person")),class:"hover:underline text-[13px] tracking-widest font-header uppercase"},"Close "),createBaseVNode("div",_hoisted_5$8,[createVNode(_sfc_main$m,{text:"Save"})])])],32),Fr.value?(openBlock(),createElementBlock("div",_hoisted_6$8," Updating... ")):createCommentVNode("",!0)])]))}},_hoisted_1$7={class:"flex-grow mt-8"},_hoisted_2$7=createBaseVNode("div",{class:"text-[16px] uppercase font-header tracking-widest"},"Summary",-1),_hoisted_3$7={class:"flex flex-grow lg:pr-4 pb-2 lg:pb-8"},_hoisted_4$7={class:"mr-8 w-[130px] flex flex-col justify-between"},_hoisted_5$7=["innerHTML"],_hoisted_6$7={class:"flex-grow"},_hoisted_7$6={class:"text-r32 xl:text-r38 mb-3"},_hoisted_8$6={key:0,class:"w-full text-red text-r22 mt-2"},_hoisted_9$6={key:1,class:"uppercase text-r22 mb-2"},_hoisted_10$6={key:2,class:"uppercase text-r22 mb-2"},_hoisted_11$6={key:3,class:"uppercase font-header text-[14px] tracking-widest"},_hoisted_12$6={class:"font-header tracking-widest mt-4"},_hoisted_13$5={class:"pb-2"},_hoisted_14$5={class:"text-r22"},_hoisted_15$4=createBaseVNode("span",{class:"font-base"},"\u20AC",-1),_hoisted_16$4={class:"pb-4 flex items-center"},_hoisted_17$4={class:"uppercase text-[15px] mr-2"},_hoisted_18$4={class:"w-full lg:w-auto mt-4 lg:mt-0 lg:border-l-2 pb-4 pr-6 lg:px-6"},_hoisted_19$4={class:"uppercase text-[16px] tracking-widest font-header"},_hoisted_20$3={key:0},_hoisted_21$2={key:1},_hoisted_22$2={key:2,class:"mt-2"},_hoisted_23$2={key:3,class:"mt-2"},_hoisted_24$2={key:0,class:"mt-8"},_hoisted_25$2=createBaseVNode("div",{class:"text-[16px] uppercase font-header tracking-widest mr-3"},"Order Message",-1),_hoisted_26$2={class:"text-r26 whitespace-pre-wrap"},_sfc_main$a={__name:"CartItemsRedux",props:{cart:Array,orderMessage:String,giftWraps:Array,stamps:Array,highlightAlone:Boolean},setup(_r){const Fe=_r;ref(!1);const $r=ref(Fe.giftWraps);return ref(Fe.stamps),onMounted(()=>{}),(Fr,jr)=>(openBlock(),createElementBlock("div",_hoisted_1$7,[_hoisted_2$7,(openBlock(!0),createElementBlock(Fragment,null,renderList(_r.cart.cartItems,(zr,Vr)=>(openBlock(),createElementBlock("div",{class:normalizeClass([[Vr==0?"pt-8":"pt-12"],"lg:grid lg:grid-cols-2 border-b-2"])},[createBaseVNode("div",_hoisted_3$7,[createBaseVNode("div",_hoisted_4$7,[createBaseVNode("div",{innerHTML:zr.imgHtml,class:"w-full"},null,8,_hoisted_5$7)]),createBaseVNode("div",_hoisted_6$7,[createBaseVNode("div",_hoisted_7$6,toDisplayString(zr.title),1),_r.highlightAlone&&zr.needsToBeAlone?(openBlock(),createElementBlock("div",_hoisted_8$6,"This item needs to be ordered on its own. ")):createCommentVNode("",!0),zr.author!=0?(openBlock(),createElementBlock("div",_hoisted_9$6,toDisplayString(zr.author),1)):createCommentVNode("",!0),zr.variant!=0?(openBlock(),createElementBlock("div",_hoisted_10$6,toDisplayString(zr.variant),1)):createCommentVNode("",!0),zr.isbn!=0?(openBlock(),createElementBlock("div",_hoisted_11$6,"ISBN: "+toDisplayString(zr.isbn),1)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_12$6,[createBaseVNode("div",_hoisted_13$5,[createBaseVNode("span",_hoisted_14$5,[createTextVNode(toDisplayString(zr.total)+" ",1),_hoisted_15$4])]),createBaseVNode("div",_hoisted_16$4,[createBaseVNode("div",_hoisted_17$4,"Quantity: "+toDisplayString(zr.qty),1)])])])]),createBaseVNode("div",_hoisted_18$4,[createBaseVNode("div",_hoisted_19$4,[$r.value[zr.id]?(openBlock(),createElementBlock("div",_hoisted_20$3,"Gift-wrap: YES")):(openBlock(),createElementBlock("div",_hoisted_21$2,"Gift-wrap: NO")),_r.stamps[zr.id]?(openBlock(),createElementBlock("div",_hoisted_22$2,"Stamp: YES")):(openBlock(),createElementBlock("div",_hoisted_23$2,"Stamp: NO"))])])],2))),256)),Fe.orderMessage!=""?(openBlock(),createElementBlock("div",_hoisted_24$2,[_hoisted_25$2,createBaseVNode("div",_hoisted_26$2,toDisplayString(Fe.orderMessage),1)])):createCommentVNode("",!0)]))}},_hoisted_1$6={key:0,class:"md:pl-4 lg:pl-8"},_hoisted_2$6=["innerHTML"],_hoisted_3$6=createBaseVNode("input",{class:"peer visually-hidden",type:"checkbox",id:"tcs",name:"fields[acceptedTCs]",required:""},null,-1),_hoisted_4$6=createBaseVNode("label",{for:"tcs",class:"before:flex-shrink-0 peer-checked:before:bg-black flex items-center peer-focus-visible:before:bg-black peer-focus-visible:before:bg-opacity-50 cursor-pointer relative before:block before:w-6 before:border-black before:border before:mr-3 before:h-6 before:content-['']"},[createBaseVNode("div",{class:"text-[15px] uppercase tracking-widest font-header"},[createTextVNode(" I accept Shakespeare and Company's "),createBaseVNode("a",{class:"underline",href:"/terms-conditions"},"terms & conditions"),createTextVNode(". ")])],-1),_hoisted_5$6={class:"mt-3 text-right"},_hoisted_6$6=["disabled"],_hoisted_7$5=createBaseVNode("span",null,"Proceed to payment",-1),_hoisted_8$5={key:0,class:"bg-green top-0 left-0 absolute w-full h-full flex items-center justify-center"},_hoisted_9$5=createBaseVNode("img",{class:"w-full h-full object-contain p-2",src:"/img/loader-spin.svg",alt:"Loading"},null,-1),_hoisted_10$5=[_hoisted_9$5],_hoisted_11$5=createBaseVNode("div",{class:"text-r22 mt-2 text-right"},"You will be redirected to the payment page",-1),_hoisted_12$5={key:1},_hoisted_13$4=createBaseVNode("div",{class:"text-right md:pl-4 lg:pl-8"},[createBaseVNode("button",{disabled:"",type:"submit",class:"w-full cursor-not-allowed text-center bg-green text-r22 text-white bg-opacity-80 hover:bg-opacity-100 inline-block uppercase tracking-widest font-header py-2 px-6 opacity-50"}," Proceed to payment ")],-1),_hoisted_14$4=[_hoisted_13$4],_sfc_main$9={__name:"PaymentForm",props:{disabled:Boolean},setup(_r){const Fe=ref(""),$r=ref(null),Fr=ref(!1),jr=ref(!1);onMounted(()=>{zr()});const zr=()=>(Fr.value=!0,fetch("/api/cart/payment-form",{method:"get",headers:{"X-Requested-With":"XMLHttpRequest"}}).then(Vr=>Vr.text()).then(Vr=>{Fe.value=Vr,Fr.value=!1}));return(Vr,Wr)=>_r.disabled?(openBlock(),createElementBlock("div",_hoisted_12$5,_hoisted_14$4)):(openBlock(),createElementBlock("div",_hoisted_1$6,[createBaseVNode("form",{id:"paymentForm",onSubmit:Wr[0]||(Wr[0]=Kr=>{jr.value=!0,Fr.value=!0}),method:"post",action:""},[createBaseVNode("div",{innerHTML:Fe.value},null,8,_hoisted_2$6),_hoisted_3$6,_hoisted_4$6,createBaseVNode("div",_hoisted_5$6,[createBaseVNode("button",{ref_key:"paymentButton",ref:$r,type:"submit",disabled:jr.value,class:"relative w-full text-center bg-green text-r22 text-white bg-opacity-80 hover:bg-opacity-100 inline-block uppercase tracking-widest font-header py-2 px-6"},[_hoisted_7$5,Fr.value?(openBlock(),createElementBlock("span",_hoisted_8$5,_hoisted_10$5)):createCommentVNode("",!0)],8,_hoisted_6$6)]),_hoisted_11$5],32)]))}},_hoisted_1$5={class:"grid grid-cols-3 relative"},_hoisted_2$5={class:"col-span-3 md:col-span-2 md:border-r-2"},_hoisted_3$5={key:0,class:"top-0 left-0 fixed sm:absolute w-full h-full bg-white bg-opacity-90 z-20 flex items-center justify-center"},_hoisted_4$5=createBaseVNode("img",{class:"h-full object-contain p-2 w-20",src:"/img/loader-spin--green.svg",alt:"Loading"},null,-1),_hoisted_5$5=[_hoisted_4$5],_hoisted_6$5={key:2,class:"text-r26 mb-4"},_hoisted_7$4={class:"border-t-2"},_hoisted_8$4={key:0,class:"col-span-3 md:col-span-2 pt-8"},_hoisted_9$4={key:0,class:"mb-4"},_hoisted_10$4=createBaseVNode("div",{class:"mb-2 text-r26"},"Please select a shipping address below:",-1),_hoisted_11$4={class:"mt-4"},_hoisted_12$4={key:1},_hoisted_13$3=createBaseVNode("div",{class:"uppercase font-header text-[15px] tracking-widest mb-4"},"Please choose a delivery option:",-1),_hoisted_14$3={key:0,class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-x-5 pb-12"},_hoisted_15$3={key:0},_hoisted_16$3={class:"tracking-widest uppercase font-header leading-tight"},_hoisted_17$3=["id","value"],_hoisted_18$3=["for"],_hoisted_19$3={class:"mt-4 mb-2"},_hoisted_20$2={key:0},_hoisted_21$1=["src","alt"],_hoisted_22$1=["innerHTML"],_hoisted_23$1={class:"text-r26"},_hoisted_24$1=createBaseVNode("span",{class:"font-base"},"\u20AC",-1),_hoisted_25$1={key:0,class:"mt-4 italic"},_hoisted_26$1={key:0,class:"col-span-4 border-b-2"},_hoisted_27$1={key:0,class:"pb-4 text-red text-r22"},_hoisted_28$1=createBaseVNode("br",null,null,-1),_hoisted_29$1={key:1,class:"grid grid-cols-4 gap-x-4"},_hoisted_30$1=createBaseVNode("div",{class:"h-32 col-span-1 bg-light"},null,-1),_hoisted_31$1=createBaseVNode("div",{class:"h-20 col-span-1 bg-light"},null,-1),_hoisted_32$1=[_hoisted_30$1,_hoisted_31$1],_hoisted_33$1={key:1,class:"pb-4 text-red text-r22"},_hoisted_34$1={key:3,class:"bg-offwhite"},_hoisted_35$1={class:"grid grid-cols-1 sm:grid-cols-2 border-b-2"},_hoisted_36$1={class:"p-4 py-8 flex flex-col"},_hoisted_37$1={class:""},_hoisted_38$1={class:"uppercase font-header text-[15px] tracking-widest mb-4"},_hoisted_39$1={key:0},_hoisted_40$1={key:1},_hoisted_41$1={class:"flex-grow flex flex-col"},_hoisted_42$1={key:0,class:"mt-4"},_hoisted_43$1={class:"p-4 pt-0 pb-8 sm:py-8 flex-col flex justify-between"},_hoisted_44$1={class:""},_hoisted_45$1=createBaseVNode("div",{class:"uppercase font-header text-[15px] tracking-widest mb-4"},"Billing address",-1),_hoisted_46$1={class:"mt-4"},_hoisted_47$1={class:"col-span-3 md:col-span-1"},_hoisted_48$1={class:"lg:sticky lg:top-52 md:border-t-2"},_hoisted_49$1={key:1},_hoisted_50$1={class:"mt-6 text-r22"},_hoisted_51$1={key:0},_hoisted_52$1={key:0,class:"text-red mt-4 mt-2 md:pl-4 lg:pl-8 text-left text-r22"},_hoisted_53$1=createBaseVNode("br",null,null,-1),_hoisted_54$1={key:1,class:"mt-2 md:pl-4 lg:pl-8 text-right text-r22"},_hoisted_55$1={key:0,class:""},_hoisted_56$1={key:1,class:""},_hoisted_57$1={key:2,class:""},_hoisted_58$1={key:3,class:""},_hoisted_59$1={key:2,class:"md:pl-4 lg:pl-8"},_hoisted_60$1=["innerHTML"],_hoisted_61$1={key:1},_sfc_main$8={__name:"Shipping",props:["disableEcomm","disableEcommMessage","checkoutMessage","cartNumber"],setup(_r){const Fe=_r,$r=useCartStore(),{cart:Fr}=storeToRefs($r),jr=ref(!1),zr=ref(0),Vr=ref("shipping"),Wr=ref(""),Kr=ref(),Gr=ref(!1);ref(!1);const Yr=ref(!1),Qr=ref(!1),Jr=ref(!1),Zr=ref({}),tn=ref({}),en=ref(!1),rn=ref("");watch(()=>Fr.value,(Pn,Tn)=>{en.value||($r.sendDataLayer("begin_checkout"),en.value=!0),jr.value=!1}),onMounted(()=>{Object.keys(Fr.value).length>0&&!en.value&&($r.sendDataLayer("begin_checkout"),en.value=!0)});const nn=computed(()=>Object.keys(Fr.value).length>0?!on.value&&Fr.value.shippingMethods.selectedShippingMethod!==null&&!un.value&&Fr.value.cartInfo.billingAddressIsDefined!==0&&Fr.value.cartInfo.orderType!==null&&(Fr.value.cartInfo.orderType!=="relay"||Fr.value.cartInfo.servicePoint!=0):!1),on=computed(()=>{let Pn=!1;return Object.keys(Fr.value).length>0&&Fr.value.shippingMethods.selectedShippingMethod!="collectInStore"&&Fr.value.cartInfo.hasAloneProductsWithOthers?!0:Pn});ref(!1);const un=computed(()=>Fr.value.shippingMethods.selectedShippingMethod.includes("colissimo")&&!Fr.value.shippingMethods.hasFrenchNumber),an=()=>{Fr.value.shippingMethods.selectedShippingMethod!==null&&Fr.value.shippingMethods.selectedShippingMethod.includes("colissimo")&&!Fr.value.shippingMethods.hasFrenchNumber?Wr.value="Please enter a French phone number to use Colissimo":Wr.value=""},sn=()=>{jr.value=!0;let Pn={};Pn={shippingMethodHandle:zr.value,clearNotices:1},zr.value=="collectInStore"&&(Pn.shippingAddress={fullName:Fr.value.cartInfo.fullName,title:Fr.value.cartInfo.fullName,addressLine1:"Shakespeare & Company",addressLine2:"37 rue de la B\xFBcherie",locality:"Paris",countryCode:"FR",postalCode:"75005"}),Pn[csrfTokenName]=csrfTokenValue,fetch("?action=commerce/cart/update-cart",{method:"post",headers:{"Content-type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify(Pn)}).then(Tn=>Tn.json()).then(Tn=>{$r.setCart(Tn.cart.extra,!1),Tn.cart.extra.notices.length>0?Wr.value=Tn.cart.extra.notices[0].message:Wr.value=""})},dn=(Pn,Tn)=>{Yr.value=!1,Qr.value=!1,Tn=="shipping"?Fr.value.shippingMethods.shippingAddressId=0:Fr.value.shippingMethods.billingAddressId=0,Pn.length>0?Wr.value=Pn[0].message:Wr.value=""},ln=()=>{console.log("refreshing"),Kr.value.addressCreated()};watch(()=>Fr.value,(Pn,Tn)=>{cn(),jr.value=!1});const cn=()=>{Fr.value.cartInfo.orderType==null&&(Jr.value=!0),zr.value=Fr.value.shippingMethods.selectedShippingMethod,an(),Fr.value.cartItems.forEach(function(Pn,Tn){Zr.value[Pn.id]=Pn.giftWrap=="YES",tn.value[Pn.id]=Pn.stamp=="YES"}),Fr.value.cartInfo.orderType=="delivery"&&Fr.value.shippingMethods.shippingAddressId===null&&(Vr.value="shipping",Gr.value=!0)},fn=()=>{jr.value=!0,zr.value="collectInStore",pn()},pn=()=>{let Pn={};Pn={fields:{orderType:"collectInStore"},shippingMethodHandle:zr.value,clearNotices:1},Pn.shippingAddress={fullName:Fr.value.cartInfo.fullName,title:Fr.value.cartInfo.fullName,addressLine1:"Shakespeare & Company",addressLine2:"37 rue de la B\xFBcherie",locality:"Paris",countryCode:"FR",postalCode:"75005"},Pn[csrfTokenName]=csrfTokenValue,fetch("?action=commerce/cart/update-cart",{method:"post",headers:{"Content-type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify(Pn)}).then(Tn=>Tn.json()).then(Tn=>{$r.setCart(Tn.cart.extra,!1)})},hn=Pn=>{jr.value=!0;let Tn={};Tn={fields:{orderType:"relay"},shippingMethodHandle:zr.value,clearNotices:1},Tn.shippingAddress={fullName:Fr.value.cartInfo.fullName,title:Fr.value.cartInfo.fullName,addressLine1:Pn.line1,addressLine2:Pn.line2,locality:Pn.city,countryCode:"FR",postalCode:Pn.postCode},Tn[csrfTokenName]=csrfTokenValue,fetch("?action=commerce/cart/update-cart",{method:"post",headers:{"Content-type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify(Tn)}).then(An=>An.json()).then(An=>{$r.setCart(An.cart.extra,!1)})},mn=()=>{jr.value=!0;let Pn={};Fr.value.shippingMethods.defaultShippingAddressId==0?Pn={clearShippingAddress:1,clearNotices:1,fields:{orderType:"delivery"}}:Pn={shippingAddressId:Fr.value.shippingMethods.defaultShippingAddressId,clearNotices:1,fields:{orderType:"delivery"}},Pn[csrfTokenName]=csrfTokenValue,fetch("?action=commerce/cart/update-cart",{method:"post",headers:{"Content-type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify(Pn)}).then(Tn=>Tn.json()).then(Tn=>{$r.setCart(Tn.cart.extra,!1)})},Sn=()=>{jr.value=!0,zr.value="relay";let Pn={};console.log(Fr.value.cartInfo.servicePoint),Pn={clearNotices:1,fields:{orderType:"relay"},shippingMethodHandle:zr.value},Fr.value.cartInfo.servicePoint===0&&(Pn.clearShippingAddress=1),Fr.value.cartInfo.servicePoint!==0&&(console.log("existing serivce point"),Pn.shippingAddress={fullName:Fr.value.cartInfo.fullName,title:Fr.value.cartInfo.fullName,addressLine1:Fr.value.cartInfo.servicePoint.line1,addressLine2:Fr.value.cartInfo.servicePoint.line2,locality:Fr.value.cartInfo.servicePoint.city,countryCode:Fr.value.cartInfo.servicePoint.country,postalCode:Fr.value.cartInfo.servicePoint.postCode}),Pn[csrfTokenName]=csrfTokenValue,fetch("?action=commerce/cart/update-cart",{method:"post",headers:{"Content-type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify(Pn)}).then(Tn=>Tn.json()).then(Tn=>{$r.setCart(Tn.cart.extra,!1)})},vn=Pn=>{Jr.value=!1,Pn=="collectInStore"?fn():Pn=="delivery"?mn():Sn()},bn=Pn=>{Jr.value=Pn},_n=Pn=>(console.log(Pn),Pn.includes("FedEx")?"FedEx":Pn.includes("Colissimo")?"Colissimo":Pn.includes("Relay")?"Mondial Relay":Pn),$n=Pn=>Pn.includes("FedEx")?"/img/fedex.svg":Pn.includes("Colissimo")?"/img/colissimo.svg":Pn.includes("Relay")?"/img/mondial-relay.svg":"",yn=Pn=>Pn.includes("FedEx")?"TRACKED<br/>4-5 working days":Pn.includes("Colissimo")?"TRACKED<br/>4-7 working days":"1-5 working days",wn=Pn=>{Qr.value=!1,Fr.value.cartInfo.fullName=Pn,fn()},gn=()=>{console.log(Fr.value),console.log(Fr.value.cartInfo);let Pn={apiKey:"1a6f8bcff69349eb9178ab72d125837c",country:"FR",postalCode:"75005",language:"fr"};sendcloud.servicePoints.open(Pn,function(Tn){console.log(Tn),rn.value=Tn.name+" "+Tn.house_number+" "+Tn.street+" "+Tn.postal_code+" "+Tn.city,console.log(Fe.cartNumber),fetch("/index.php?p=actions/commerce-sendcloud/cart/set-service-point",{mode:"cors",cache:"no-cache",credentials:"same-origin",method:"POST",headers:{"Content-Type":"application/json","X-CSRF-Token":csrfTokenValue},body:JSON.stringify({orderNumber:Fe.cartNumber,servicePoint:Tn})}).then(An=>An.json()).then(An=>{console.log(An),hn({line1:Tn.name,line2:Tn.house_number+" "+Tn.street,city:Tn.city,postCode:Tn.postal_code})}).catch(An=>{console.error(An)})},function(Tn){Tn.forEach(function(An){console.log("Failure callback, reason: "+An)})})};return(Pn,Tn)=>(openBlock(),createElementBlock("div",_hoisted_1$5,[createBaseVNode("div",_hoisted_2$5,[jr.value?(openBlock(),createElementBlock("div",_hoisted_3$5,_hoisted_5$5)):createCommentVNode("",!0),unref(Fr).cartInfo?(openBlock(),createBlock(_sfc_main$c,{key:1,editing:Jr.value,onUpdateEditingOrderType:bn,"selected-type":unref(Fr).cartInfo.orderType,onUpdateOrderType:vn,"cart-info":unref(Fr).cartInfo},null,8,["editing","selected-type","cart-info"])):createCommentVNode("",!0),unref(Fr).cartInfo&&unref(Fr).cartInfo.orderType=="collectInStore"?(openBlock(),createElementBlock("div",_hoisted_6$5," Ready for collection between 1 to 5 working days. ")):createCommentVNode("",!0),createBaseVNode("div",_hoisted_7$4,[unref(Fr).cartInfo&&["delivery","relay"].includes(unref(Fr).cartInfo.orderType)?(openBlock(),createElementBlock("div",_hoisted_8$4,[unref(Fr).cartInfo.orderType!==null&&unref(Fr).shippingMethods.shippingAddressId===null&&zr.value!="collectInStore"?(openBlock(),createElementBlock("div",_hoisted_9$4,[_hoisted_10$4,createVNode(_sfc_main$m,{onClick:Tn[0]||(Tn[0]=An=>Gr.value=!0),text:"Select a shipping address"}),createBaseVNode("div",_hoisted_11$4,[createTextVNode(" or "),createVNode(_sfc_main$m,{onClick:Tn[1]||(Tn[1]=An=>vn("collectInStore")),text:"I want to collect in store"})])])):unref(Fr).cartInfo.orderType!==null?(openBlock(),createElementBlock("div",_hoisted_12$4,[_hoisted_13$3,unref(Fr).shippingMethods.methods?(openBlock(),createElementBlock("div",_hoisted_14$3,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Object.values(unref(Fr).shippingMethods.methods).filter(An=>An.handle!="collectInStore"),An=>(openBlock(),createElementBlock("div",null,[unref(Fr).cartInfo.orderType=="delivery"||unref(Fr).cartInfo.orderType=="relay"&&!An.handle.startsWith("colissimo")&&!An.handle.startsWith("fedex")?(openBlock(),createElementBlock("div",_hoisted_15$3,[createBaseVNode("div",_hoisted_16$3,[withDirectives(createBaseVNode("input",{class:"peer visually-hidden",type:"radio",onChange:Tn[2]||(Tn[2]=Dn=>sn()),id:An.handle,"onUpdate:modelValue":Tn[3]||(Tn[3]=Dn=>zr.value=Dn),value:An.handle},null,40,_hoisted_17$3),[[vModelRadio,zr.value]]),createBaseVNode("label",{for:An.handle,class:normalizeClass(["peer-focus-visible:before:bg-black peer-focus-visible:before:bg-opacity-50 cursor-pointer relative before:block before:w-8 before:border-black before:border before:h-8 before:rounded-full before:content-['']",[An.handle==unref(Fr).shippingMethods.selectedShippingMethod?"before:bg-black":""]])},[createBaseVNode("div",_hoisted_19$3,[$n(An.name)==""?(openBlock(),createElementBlock("div",_hoisted_20$2,toDisplayString(An.name),1)):createCommentVNode("",!0),$n(An.name)!=""?(openBlock(),createElementBlock("img",{key:1,class:"max-w-[150px]",src:$n(An.name),alt:_n(An.name)},null,8,_hoisted_21$1)):createCommentVNode("",!0),createBaseVNode("div",{class:"mt-2",innerHTML:yn(An.name)},null,8,_hoisted_22$1)]),createBaseVNode("div",_hoisted_23$1,[createTextVNode(toDisplayString(An.price.toFixed(2))+" ",1),_hoisted_24$1]),unref(Fr).cartInfo.hasYearOfReading?(openBlock(),createElementBlock("div",_hoisted_25$1,"Total cost to receive three packages across the year. ")):createCommentVNode("",!0)],10,_hoisted_18$3)])])):createCommentVNode("",!0)]))),256)),Object.keys(unref(Fr).shippingMethods.methods).length==0?(openBlock(),createElementBlock("div",_hoisted_26$1,[unref(Fr).shippingMethods.selectedShippingMethod===null?(openBlock(),createElementBlock("div",_hoisted_27$1,[createTextVNode(" We could not find a delivery option for your order."),_hoisted_28$1,createTextVNode(" If you are purchasing a gift voucher, those can only be collected in-store. ")])):(openBlock(),createElementBlock("div",_hoisted_29$1,_hoisted_32$1))])):createCommentVNode("",!0)])):createCommentVNode("",!0),Wr.value?(openBlock(),createElementBlock("div",_hoisted_33$1,[createTextVNode(toDisplayString(Wr.value)+" ",1),zr.value.includes("colissimo")?(openBlock(),createBlock(_sfc_main$m,{key:0,class:"mt-2",onClick:Tn[4]||(Tn[4]=An=>Yr.value=!0),text:"Change phone number"})):createCommentVNode("",!0)])):createCommentVNode("",!0)])):createCommentVNode("",!0)])):createCommentVNode("",!0)]),unref(Fr).cartInfo&&unref(Fr).cartInfo.orderType!==null&&unref(Fr).shippingMethods.methods&&Object.keys(unref(Fr).shippingMethods.methods).length!==0?(openBlock(),createElementBlock("div",_hoisted_34$1,[createBaseVNode("div",_hoisted_35$1,[createBaseVNode("div",_hoisted_36$1,[createBaseVNode("div",_hoisted_37$1,[createBaseVNode("div",_hoisted_38$1,[["collectInStore","relay"].includes(unref(Fr).cartInfo.orderType)?(openBlock(),createElementBlock("span",_hoisted_39$1,"Collection address")):(openBlock(),createElementBlock("span",_hoisted_40$1,"Shipping address"))]),createBaseVNode("div",_hoisted_41$1,[unref(Fr).shippingMethods.shippingAddressId!=0&&!jr.value&&(unref(Fr).cartInfo.orderType!=="relay"||unref(Fr).cartInfo.servicePoint!=0)?(openBlock(),createBlock(_sfc_main$k,{key:0,class:"flex-grow",id:unref(Fr).shippingMethods.shippingAddressId},null,8,["id"])):unref(Fr).cartInfo.orderType!=="relay"?(openBlock(),createBlock(AddressPlaceholder,{key:1})):createCommentVNode("",!0)]),unref(Fr).cartInfo.orderType=="collectInStore"?(openBlock(),createBlock(_sfc_main$m,{key:0,class:"mt-4",onClick:Tn[5]||(Tn[5]=An=>Qr.value=!0),text:"Change the person collecting"})):createCommentVNode("",!0)]),unref(Fr).cartInfo&&unref(Fr).cartInfo.orderType!=="collectInStore"?(openBlock(),createElementBlock("div",_hoisted_42$1,[unref(Fr).cartInfo.orderType==="delivery"?(openBlock(),createBlock(_sfc_main$m,{key:0,onClick:Tn[6]||(Tn[6]=An=>{Vr.value="shipping",Gr.value=!0}),text:unref(Fr).shippingMethods.shippingAddressId===null?"Select an address":"Select a different address"},null,8,["text"])):createCommentVNode("",!0),unref(Fr).cartInfo.orderType==="relay"?(openBlock(),createBlock(_sfc_main$m,{key:1,onClick:Tn[7]||(Tn[7]=An=>gn()),text:"Select a service point"})):createCommentVNode("",!0)])):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_43$1,[createBaseVNode("div",_hoisted_44$1,[_hoisted_45$1,unref(Fr).shippingMethods.billingAddressId!=0&&unref(Fr).shippingMethods.billingAddressId!==null&&!jr.value?(openBlock(),createBlock(_sfc_main$k,{key:0,id:unref(Fr).shippingMethods.billingAddressId},null,8,["id"])):createCommentVNode("",!0),unref(Fr).shippingMethods.billingAddressId==0?(openBlock(),createBlock(AddressPlaceholder,{key:1})):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_46$1,[createVNode(_sfc_main$m,{onClick:Tn[8]||(Tn[8]=An=>{Vr.value="billing",Gr.value=!0}),text:[0,null].includes(unref(Fr).shippingMethods.billingAddressId)?"Select an address":"Select a different address"},null,8,["text"])])])])])):createCommentVNode("",!0),withDirectives(createVNode(_sfc_main$e,{addressSelectionType:Vr.value,currentShippingAddressId:unref(Fr).shippingMethods?unref(Fr).shippingMethods.shippingAddressId:0,currentBillingAddressId:unref(Fr).shippingMethods?unref(Fr).shippingMethods.billingAddressId:0,onCloseAddressSelection:Tn[9]||(Tn[9]=An=>Gr.value=!1),onNewAddressSelected:dn,onDoHideAddressSelection:Tn[10]||(Tn[10]=An=>Gr.value=!1),onDoLoading:Tn[11]||(Tn[11]=An=>jr.value=!0),ref_key:"addressSelectionComponent",ref:Kr},null,8,["addressSelectionType","currentShippingAddressId","currentBillingAddressId"]),[[vShow,Gr.value]]),Yr.value?(openBlock(),createBlock(_sfc_main$d,{key:4,onAddressUpdated:dn,onPhoneUpdated:ln,onClosePhoneNumberUpdate:Tn[12]||(Tn[12]=An=>Yr.value=!1),"address-id":unref(Fr).shippingMethods.sourceShippingAddressId},null,8,["address-id"])):createCommentVNode("",!0),Qr.value?(openBlock(),createBlock(_sfc_main$b,{key:5,onCloseCollectingPerson:Tn[13]||(Tn[13]=An=>Qr.value=!1),onNameUpdated:wn})):createCommentVNode("",!0),unref(Fr).cartInfo&&unref(Fr).cartInfo.length>0?(openBlock(),createBlock(_sfc_main$a,{key:6,"order-message":unref(Fr).cartInfo.orderMessage,"gift-wraps":Zr.value,stamps:tn.value,"highlight-alone":on.value,cart:unref(Fr)},null,8,["order-message","gift-wraps","stamps","highlight-alone","cart"])):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_47$1,[createBaseVNode("div",_hoisted_48$1,[unref(Fr).cartInfo&&unref(Fr).cartInfo.length>0?(openBlock(),createBlock(_sfc_main$s,{key:0,cart:unref(Fr)},null,8,["cart"])):(openBlock(),createElementBlock("div",_hoisted_49$1,[createVNode(CartSummaryPlaceholder)])),createBaseVNode("div",_hoisted_50$1,[_r.disableEcomm?(openBlock(),createElementBlock("div",_hoisted_61$1,[createVNode(_sfc_main$o,{"disable-ecomm-message":_r.disableEcommMessage},null,8,["disable-ecomm-message"])])):(openBlock(),createElementBlock("div",_hoisted_51$1,[createVNode(_sfc_main$9,{disabled:!nn.value},null,8,["disabled"]),on.value?(openBlock(),createElementBlock("div",_hoisted_52$1,[createTextVNode(" Some items in your cart can only be delivered on their own."),_hoisted_53$1,createTextVNode("Please remove the other items to continue or select Click & Collect. ")])):createCommentVNode("",!0),unref(Fr).cartInfo&&unref(Fr).shippingMethods&&(!unref(Fr).cartInfo.shippingAddressIsDefined||!unref(Fr).cartInfo.billingAddressIsDefined||!unref(Fr).shippingMethods.selectedShippingMethod||!unref(Fr).cartInfo.orderType)?(openBlock(),createElementBlock("div",_hoisted_54$1,[unref(Fr).cartInfo&&!unref(Fr).cartInfo.shippingAddressIsDefined&&unref(Fr).cartInfo.orderType!==null?(openBlock(),createElementBlock("div",_hoisted_55$1," Please select a shipping address ")):createCommentVNode("",!0),unref(Fr).cartInfo&&!unref(Fr).cartInfo.billingAddressIsDefined&&unref(Fr).cartInfo.orderType!==null?(openBlock(),createElementBlock("div",_hoisted_56$1," Please select a billing address ")):createCommentVNode("",!0),unref(Fr).shippingMethods&&!unref(Fr).shippingMethods.selectedShippingMethod&&unref(Fr).cartInfo.shippingAddressIsDefined?(openBlock(),createElementBlock("div",_hoisted_57$1," Please select a delivery option ")):createCommentVNode("",!0),unref(Fr).cartInfo&&unref(Fr).cartInfo.orderType===null?(openBlock(),createElementBlock("div",_hoisted_58$1,"Please select a delivery method ")):createCommentVNode("",!0)])):createCommentVNode("",!0),_r.checkoutMessage?(openBlock(),createElementBlock("div",_hoisted_59$1,[createBaseVNode("div",{class:"text-r22 w-full p-4 text-left mt-4 shadow-sm border bg-pink text-black",innerHTML:_r.checkoutMessage},null,8,_hoisted_60$1)])):createCommentVNode("",!0),createVNode(IconsPayment)]))])])])]))}},_sfc_main$7={__name:"PurchaseEvent",props:{dataLayer:Array,totalProductsHt:Number},setup(_r){const Fe=_r,$r=useCartStore();return onMounted(()=>{$r.sendPurchaseDataLayer("purchase",Fe.dataLayer),window.addEventListener("load",Fr=>{window.fathom.trackGoal("3VV1KHRM",Fe.totalProductsHt)})}),(Fr,jr)=>null}},_hoisted_1$4={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3"},_hoisted_2$4={class:"flex flex-grow items-center justify-center text-r26 flex-col p-1 bg-white border-2 border-gray border-opacity-10 text-left text-r22 leading-[1.2]"},_hoisted_3$4=createBaseVNode("img",{src:"/img/plus.svg",alt:"Plus sign",class:"w-8 mb-2"},null,-1),_hoisted_4$4={class:"relative flex flex-col p-1 bg-white border-2 border-gray border-opacity-10 text-left text-r22 leading-[1.2]"},_hoisted_5$4={class:"flex justify-between items-center uppercase text-[12px] tracking-widest font-header mb-1"},_hoisted_6$4={class:""},_hoisted_7$3={class:"font-bold"},_hoisted_8$3={key:0},_hoisted_9$3={key:0,class:"mt-4 text-green inline-flex uppercase text-[12px] tracking-widest font-header border-t pt-2"},_hoisted_10$3={key:1},_hoisted_11$3={class:"flex justify-end p-2"},_hoisted_12$3=["onClick"],_hoisted_13$2=["onClick"],_hoisted_14$2={key:0,class:"absolute bottom-0 left-0 w-full flex"},_hoisted_15$2={class:"bg-white w-full items-center p-3 flex justify-between items-center"},_hoisted_16$2=createBaseVNode("div",{class:"text-r22"},"Delete?",-1),_hoisted_17$2={class:"flex justify-end"},_hoisted_18$2=["onClick"],_hoisted_19$2={class:"flex justify-end items-center mt-4"},_hoisted_20$1={class:"text-right"},buttonClass="bg-green text-white bg-opacity-80 hover:bg-opacity-100 inline-block uppercase text-[13px] tracking-widest font-header py-2 px-5",_sfc_main$6={__name:"CustomerAddressManagement",props:[],setup(_r,{emit:Fe}){const $r=ref([]),Fr=ref(0),jr=ref(!1),zr=ref({});onMounted(()=>{Vr()});const Vr=()=>fetch("/api/customer/addresses",{method:"get",headers:{"Content-type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"}}).then(Gr=>Gr.json()).then(Gr=>{$r.value=Gr.addresses}),Wr=Gr=>{let Yr={addressId:Gr};return Yr[csrfTokenName]=csrfTokenValue,fetch("?action=users/delete-address",{method:"post",headers:{"Content-type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify(Yr)}).then(Qr=>Qr.json()).then(Qr=>{Vr(),Fr.value=0})},Kr=()=>{Vr(),zr.value={},jr.value=!1};return(Gr,Yr)=>(openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",_hoisted_1$4,[createBaseVNode("div",_hoisted_2$4,[createBaseVNode("button",{onClick:Yr[0]||(Yr[0]=Qr=>jr.value=!0),class:"py-10 flex-grow w-full flex flex-col items-center justify-center hover:bg-green hover:bg-opacity-10 hover:border-green"},[_hoisted_3$4,createTextVNode(" Add a new address ")])]),(openBlock(!0),createElementBlock(Fragment,null,renderList($r.value,Qr=>(openBlock(),createElementBlock("div",_hoisted_4$4,[createBaseVNode("div",{class:normalizeClass(["flex-grow p-2",["border border-transparent"]])},[createBaseVNode("div",_hoisted_5$4,[createBaseVNode("div",_hoisted_6$4,toDisplayString(Qr.title),1)]),createBaseVNode("div",_hoisted_7$3,toDisplayString(Qr.fullName),1),createBaseVNode("div",null,toDisplayString(Qr.addressLine1),1),createBaseVNode("div",null,toDisplayString(Qr.addressLine2),1),createBaseVNode("div",null,toDisplayString(Qr.postalCode)+", "+toDisplayString(Qr.locality),1),createBaseVNode("div",null,[Qr.administrativeArea?(openBlock(),createElementBlock("span",_hoisted_8$3,toDisplayString(Qr.administrativeArea)+", ",1)):createCommentVNode("",!0),createTextVNode(toDisplayString(Qr.countryName),1)]),createBaseVNode("div",null,toDisplayString(Qr.phoneNumber),1),Qr.isPrimaryShipping||Qr.isPrimaryBilling?(openBlock(),createElementBlock("div",_hoisted_9$3,[Qr.isPrimaryShipping?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass({"mr-4":Qr.isPrimaryBilling})},"Default Shipping",2)):createCommentVNode("",!0),Qr.isPrimaryBilling?(openBlock(),createElementBlock("div",_hoisted_10$3,"Default Billing")):createCommentVNode("",!0)])):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_11$3,[createBaseVNode("button",{onClick:Jr=>Fr.value=Qr.id,class:"text-red uppercase text-[14px] font-header mr-4 hover:underline"},"Delete ",8,_hoisted_12$3),createBaseVNode("button",{onClick:Jr=>{zr.value=Qr,jr.value=!0},class:normalizeClass(buttonClass)},"Edit",8,_hoisted_13$2)]),Fr.value==Qr.id?(openBlock(),createElementBlock("div",_hoisted_14$2,[createBaseVNode("div",_hoisted_15$2,[_hoisted_16$2,createBaseVNode("div",_hoisted_17$2,[createBaseVNode("button",{onClick:Yr[1]||(Yr[1]=Jr=>Fr.value=0),class:normalizeClass([buttonClass,"mr-2"])},"No"),createBaseVNode("button",{onClick:Jr=>Wr(Qr.id),class:normalizeClass(buttonClass)},"Yes",8,_hoisted_18$2)])])])):createCommentVNode("",!0)]))),256))]),createBaseVNode("div",_hoisted_19$2,[createBaseVNode("div",_hoisted_20$1,[jr.value?(openBlock(),createBlock(_sfc_main$g,{key:0,address:zr.value,onAddressCreated:Yr[2]||(Yr[2]=Qr=>Kr()),onClose:Yr[3]||(Yr[3]=Qr=>{zr.value={},jr.value=!1})},null,8,["address"])):createCommentVNode("",!0)])])],64))}},_sfc_main$5={__name:"OrderSummary",props:["number"],setup(_r){const Fe=_r,$r=ref({});onMounted(()=>{Fr()});const Fr=()=>fetch("/api/cart/load?number="+Fe.number,{method:"get",headers:{"Content-type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"}}).then(jr=>jr.json()).then(jr=>{$r.value=jr});return(jr,zr)=>$r.value.cartInfo&&$r.value.cartInfo.length>0?(openBlock(),createBlock(_sfc_main$s,{key:0,"in-order":!0,cart:$r.value},null,8,["cart"])):createCommentVNode("",!0)}},_hoisted_1$3={key:0},_hoisted_2$3={key:0,class:"text-green"},_hoisted_3$3=createBaseVNode("p",null,"Available in store and to order. We ship worldwide.",-1),_hoisted_4$3=[_hoisted_3$3],_hoisted_5$3={key:1},_hoisted_6$3={key:2,class:"mt-2 italic font-bold"},_sfc_main$4={__name:"ShopStock",props:["isbn","force","forceInstock","hideWeAreSmall"],setup(_r){const Fe=_r,$r=ref(0),Fr=ref(!1);onMounted(()=>{jr()});const jr=()=>{Fe.force?($r.value=Fe.forceInstock,$r.value<=0&&(Fr.value=!0)):fetch("/api/stock/book?isbn="+Fe.isbn,{method:"get",mode:"no-cors",headers:{"Content-type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"}}).then(zr=>zr.json()).then(zr=>{$r.value=zr})};return(zr,Vr)=>Fr.value?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_1$3,[$r.value>=3?(openBlock(),createElementBlock("div",_hoisted_2$3,_hoisted_4$3)):(openBlock(),createElementBlock("div",_hoisted_5$3," Not available in-store, but available to order. We ship worldwide. ")),_r.hideWeAreSmall?createCommentVNode("",!0):(openBlock(),createElementBlock("p",_hoisted_6$3,"As we are a small independent bookstore, your order may take between 1 to 3 working days to be prepared before being shipped/ready for collection. We appreciate your understanding."))]))}},_hoisted_1$2=["aria-label","href"],_hoisted_2$2={class:"pt-[127%] relative bg-bookBackground"},_hoisted_3$2={key:0,class:"absolute top-5 left-5 z-10 flex"},_hoisted_4$2=createBaseVNode("img",{class:"lazyload absolute top-0 left-0 w-full h-full",src:"/img/book_background_v2.jpg",alt:"Book background"},null,-1),_hoisted_5$2={key:1,class:"absolute w-[60%] h-[90%] left-[20%] bottom-[7%] left-0"},_hoisted_6$2=["data-src"],_hoisted_7$2={key:2,class:"absolute w-full h-full top-0 left-0"},_hoisted_8$2=["data-src","alt"],_hoisted_9$2={class:"text-search-book leading-[1.13] mt-4 text-ellipsis overflow-hidden line-clamp-1 sm:line-clamp-2 pb-[2px] sm:min-h-[57px] lg:min-h-[48px] xl:min-h-[50px] 2xl:min-h-[54px]"},_hoisted_10$2=["href"],_hoisted_11$2={class:"uppercase min-h-[22px] mt-3"},_hoisted_12$2={class:"line-clamp-1 text-ellipsis leading-none"},_hoisted_13$1=["href"],_hoisted_14$1={key:0},_hoisted_15$1={class:"font-header mt-5 text-r22 tracking-widest"},_hoisted_16$1={key:0},_hoisted_17$1={key:1},_hoisted_18$1=createBaseVNode("span",{class:"font-base"},"\u20AC",-1),_hoisted_19$1={class:"text-[16px] mt-2"},_sfc_main$3={__name:"Book",props:["item"],setup(_r){const Fe=_r,$r=computed(()=>{let Vr="/books";return Fe.item.broadCategory=="Merch"&&(Vr="/merch"),jr.value&&(Vr="/rare-books"),Vr}),Fr=computed(()=>{let Vr="";return Fe.item.broadCategory=="Merch"||Fe.item.imgUrl?Vr=Fe.item.imgUrl:Vr="https://covers.shakespeareandcompany.com/"+Fe.item.isbn.slice(0,8)+"/"+Fe.item.isbn+".jpg",Vr}),jr=computed(()=>Fe.item.category.includes("Rare Books")),zr=computed(()=>Fe.item.broadCategory=="Merch"?"Merch":jr.value?"Rare Books":"Books");return(Vr,Wr)=>{var Kr;return openBlock(),createElementBlock("div",null,[createBaseVNode("a",{"aria-label":_r.item.title,href:$r.value+"/"+_r.item.url,class:"relative"},[createBaseVNode("div",_hoisted_2$2,[jr.value||_r.item.signed||_r.item.heart?(openBlock(),createElementBlock("div",_hoisted_3$2,[_r.item.signed?(openBlock(),createElementBlock("img",{key:0,src:"/img/signed.svg",alt:"Signed book",class:normalizeClass([[jr.value||_r.item.heart?"w-[35%]":"w-[45%]"],"mr-2 z-10"])},null,2)):createCommentVNode("",!0),jr.value?(openBlock(),createElementBlock("img",{key:1,src:"/img/rare.svg",alt:"Rare book",class:normalizeClass([[_r.item.signed?"w-[35%]":"w-[45%]"],"z-10"])},null,2)):createCommentVNode("",!0),_r.item.heart?(openBlock(),createElementBlock("img",{key:2,src:"/img/heart.svg",alt:"Coup de coeur",class:normalizeClass([[_r.item.signed?"w-[35%]":"w-[45%]"],"z-10"])},null,2)):createCommentVNode("",!0)])):createCommentVNode("",!0),_hoisted_4$2,_r.item.broadCategory!="Merch"&&!_r.item.displayFull?(openBlock(),createElementBlock("div",_hoisted_5$2,[createBaseVNode("img",{onerror:"this.src='/img/book-placeholder.png'","data-src":Fr.value,alt:"Book cover",class:"lazyload absolute object-contain object-bottom w-full h-full"},null,8,_hoisted_6$2)])):(openBlock(),createElementBlock("div",_hoisted_7$2,[createBaseVNode("img",{onerror:"this.src='/img/book-placeholder.png'","data-src":Fr.value,alt:_r.item.title,class:"lazyload absolute object-cover object-bottom w-full h-full"},null,8,_hoisted_8$2)]))])],8,_hoisted_1$2),createBaseVNode("h3",_hoisted_9$2,[createBaseVNode("a",{class:"hover:underline",href:$r.value+"/"+_r.item.url},toDisplayString(_r.item.title),9,_hoisted_10$2)]),createBaseVNode("div",_hoisted_11$2,[createBaseVNode("div",_hoisted_12$2,[(openBlock(!0),createElementBlock(Fragment,null,renderList(_r.item.authors,(Gr,Yr)=>(openBlock(),createElementBlock("a",{class:"hover:underline uppercase mb-2 text-r22",href:"/authors/"+_r.item.authors_slugs[Yr]},[Yr!==0?(openBlock(),createElementBlock("span",_hoisted_14$1,", ")):createCommentVNode("",!0),createTextVNode(" "+toDisplayString(Gr),1)],8,_hoisted_13$1))),256))])]),createBaseVNode("div",_hoisted_15$1,[_r.item.hasMultiplePrices?(openBlock(),createElementBlock("span",_hoisted_16$1,toDisplayString(_r.item.cheapestVariantPrice)+" - "+toDisplayString(_r.item.highestVariantPrice),1)):(openBlock(),createElementBlock("span",_hoisted_17$1,toDisplayString(_r.item.price),1)),_hoisted_18$1]),createBaseVNode("div",_hoisted_19$1,[createVNode(_sfc_main$w,{"out-of-stock":_r.item.stock==0,preorder:_r.item.preorder,style:"small","show-variants":_r.item.hasVariants,url:$r.value+"/"+_r.item.url,"text-select":(Kr=_r.item.textSelect)!=null?Kr:"","data-layer":{price:_r.item.price,title:_r.item.title,sku:_r.item.isbn,type:zr.value,index:1,category:_r.item.category[0]},variants:[{id:_r.item.variantId,isAvailable:!0}]},null,8,["out-of-stock","preorder","show-variants","url","text-select","data-layer","variants"])])])}}};var replace=String.prototype.replace,percentTwenties=/%20/g,Format={RFC1738:"RFC1738",RFC3986:"RFC3986"},formats$3={default:Format.RFC3986,formatters:{RFC1738:function(_r){return replace.call(_r,percentTwenties,"+")},RFC3986:function(_r){return String(_r)}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986},formats$2=formats$3,has$2=Object.prototype.hasOwnProperty,isArray$4=Array.isArray,hexTable=function(){for(var _r=[],Fe=0;Fe<256;++Fe)_r.push("%"+((Fe<16?"0":"")+Fe.toString(16)).toUpperCase());return _r}(),compactQueue=function _r(Fe){for(;Fe.length>1;){var $r=Fe.pop(),Fr=$r.obj[$r.prop];if(isArray$4(Fr)){for(var jr=[],zr=0;zr<Fr.length;++zr)typeof Fr[zr]!="undefined"&&jr.push(Fr[zr]);$r.obj[$r.prop]=jr}}},arrayToObject=function _r(Fe,$r){for(var Fr=$r&&$r.plainObjects?Object.create(null):{},jr=0;jr<Fe.length;++jr)typeof Fe[jr]!="undefined"&&(Fr[jr]=Fe[jr]);return Fr},merge$7=function _r(Fe,$r,Fr){if(!$r)return Fe;if(typeof $r!="object"){if(isArray$4(Fe))Fe.push($r);else if(Fe&&typeof Fe=="object")(Fr&&(Fr.plainObjects||Fr.allowPrototypes)||!has$2.call(Object.prototype,$r))&&(Fe[$r]=!0);else return[Fe,$r];return Fe}if(!Fe||typeof Fe!="object")return[Fe].concat($r);var jr=Fe;return isArray$4(Fe)&&!isArray$4($r)&&(jr=arrayToObject(Fe,Fr)),isArray$4(Fe)&&isArray$4($r)?($r.forEach(function(zr,Vr){if(has$2.call(Fe,Vr)){var Wr=Fe[Vr];Wr&&typeof Wr=="object"&&zr&&typeof zr=="object"?Fe[Vr]=_r(Wr,zr,Fr):Fe.push(zr)}else Fe[Vr]=zr}),Fe):Object.keys($r).reduce(function(zr,Vr){var Wr=$r[Vr];return has$2.call(zr,Vr)?zr[Vr]=_r(zr[Vr],Wr,Fr):zr[Vr]=Wr,zr},jr)},assign=function _r(Fe,$r){return Object.keys($r).reduce(function(Fr,jr){return Fr[jr]=$r[jr],Fr},Fe)},decode=function(_r,Fe,$r){var Fr=_r.replace(/\+/g," ");if($r==="iso-8859-1")return Fr.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(Fr)}catch{return Fr}},encode$1=function _r(Fe,$r,Fr,jr,zr){if(Fe.length===0)return Fe;var Vr=Fe;if(typeof Fe=="symbol"?Vr=Symbol.prototype.toString.call(Fe):typeof Fe!="string"&&(Vr=String(Fe)),Fr==="iso-8859-1")return escape(Vr).replace(/%u[0-9a-f]{4}/gi,function(Yr){return"%26%23"+parseInt(Yr.slice(2),16)+"%3B"});for(var Wr="",Kr=0;Kr<Vr.length;++Kr){var Gr=Vr.charCodeAt(Kr);if(Gr===45||Gr===46||Gr===95||Gr===126||Gr>=48&&Gr<=57||Gr>=65&&Gr<=90||Gr>=97&&Gr<=122||zr===formats$2.RFC1738&&(Gr===40||Gr===41)){Wr+=Vr.charAt(Kr);continue}if(Gr<128){Wr=Wr+hexTable[Gr];continue}if(Gr<2048){Wr=Wr+(hexTable[192|Gr>>6]+hexTable[128|Gr&63]);continue}if(Gr<55296||Gr>=57344){Wr=Wr+(hexTable[224|Gr>>12]+hexTable[128|Gr>>6&63]+hexTable[128|Gr&63]);continue}Kr+=1,Gr=65536+((Gr&1023)<<10|Vr.charCodeAt(Kr)&1023),Wr+=hexTable[240|Gr>>18]+hexTable[128|Gr>>12&63]+hexTable[128|Gr>>6&63]+hexTable[128|Gr&63]}return Wr},compact$2=function _r(Fe){for(var $r=[{obj:{o:Fe},prop:"o"}],Fr=[],jr=0;jr<$r.length;++jr)for(var zr=$r[jr],Vr=zr.obj[zr.prop],Wr=Object.keys(Vr),Kr=0;Kr<Wr.length;++Kr){var Gr=Wr[Kr],Yr=Vr[Gr];typeof Yr=="object"&&Yr!==null&&Fr.indexOf(Yr)===-1&&($r.push({obj:Vr,prop:Gr}),Fr.push(Yr))}return compactQueue($r),Fe},isRegExp=function _r(Fe){return Object.prototype.toString.call(Fe)==="[object RegExp]"},isBuffer$1=function _r(Fe){return!Fe||typeof Fe!="object"?!1:!!(Fe.constructor&&Fe.constructor.isBuffer&&Fe.constructor.isBuffer(Fe))},combine=function _r(Fe,$r){return[].concat(Fe,$r)},maybeMap=function _r(Fe,$r){if(isArray$4(Fe)){for(var Fr=[],jr=0;jr<Fe.length;jr+=1)Fr.push($r(Fe[jr]));return Fr}return $r(Fe)},utils$j={arrayToObject,assign,combine,compact:compact$2,decode,encode:encode$1,isBuffer:isBuffer$1,isRegExp,maybeMap,merge:merge$7},utils$i=utils$j,formats$1=formats$3,has$1=Object.prototype.hasOwnProperty,arrayPrefixGenerators={brackets:function _r(Fe){return Fe+"[]"},comma:"comma",indices:function _r(Fe,$r){return Fe+"["+$r+"]"},repeat:function _r(Fe){return Fe}},isArray$3=Array.isArray,split=String.prototype.split,push=Array.prototype.push,pushToArray=function(_r,Fe){push.apply(_r,isArray$3(Fe)?Fe:[Fe])},toISO=Date.prototype.toISOString,defaultFormat=formats$1.default,defaults$6={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:utils$i.encode,encodeValuesOnly:!1,format:defaultFormat,formatter:formats$1.formatters[defaultFormat],indices:!1,serializeDate:function _r(Fe){return toISO.call(Fe)},skipNulls:!1,strictNullHandling:!1},isNonNullishPrimitive=function _r(Fe){return typeof Fe=="string"||typeof Fe=="number"||typeof Fe=="boolean"||typeof Fe=="symbol"||typeof Fe=="bigint"},stringify$1=function _r(Fe,$r,Fr,jr,zr,Vr,Wr,Kr,Gr,Yr,Qr,Jr,Zr,tn){var en=Fe;if(typeof Wr=="function"?en=Wr($r,en):en instanceof Date?en=Yr(en):Fr==="comma"&&isArray$3(en)&&(en=utils$i.maybeMap(en,function(hn){return hn instanceof Date?Yr(hn):hn})),en===null){if(jr)return Vr&&!Zr?Vr($r,defaults$6.encoder,tn,"key",Qr):$r;en=""}if(isNonNullishPrimitive(en)||utils$i.isBuffer(en)){if(Vr){var rn=Zr?$r:Vr($r,defaults$6.encoder,tn,"key",Qr);if(Fr==="comma"&&Zr){for(var nn=split.call(String(en),","),on="",un=0;un<nn.length;++un)on+=(un===0?"":",")+Jr(Vr(nn[un],defaults$6.encoder,tn,"value",Qr));return[Jr(rn)+"="+on]}return[Jr(rn)+"="+Jr(Vr(en,defaults$6.encoder,tn,"value",Qr))]}return[Jr($r)+"="+Jr(String(en))]}var an=[];if(typeof en=="undefined")return an;var sn;if(Fr==="comma"&&isArray$3(en))sn=[{value:en.length>0?en.join(",")||null:void 0}];else if(isArray$3(Wr))sn=Wr;else{var dn=Object.keys(en);sn=Kr?dn.sort(Kr):dn}for(var ln=0;ln<sn.length;++ln){var cn=sn[ln],fn=typeof cn=="object"&&typeof cn.value!="undefined"?cn.value:en[cn];if(!(zr&&fn===null)){var pn=isArray$3(en)?typeof Fr=="function"?Fr($r,cn):$r:$r+(Gr?"."+cn:"["+cn+"]");pushToArray(an,_r(fn,pn,Fr,jr,zr,Vr,Wr,Kr,Gr,Yr,Qr,Jr,Zr,tn))}}return an},normalizeStringifyOptions=function _r(Fe){if(!Fe)return defaults$6;if(Fe.encoder!==null&&typeof Fe.encoder!="undefined"&&typeof Fe.encoder!="function")throw new TypeError("Encoder has to be a function.");var $r=Fe.charset||defaults$6.charset;if(typeof Fe.charset!="undefined"&&Fe.charset!=="utf-8"&&Fe.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var Fr=formats$1.default;if(typeof Fe.format!="undefined"){if(!has$1.call(formats$1.formatters,Fe.format))throw new TypeError("Unknown format option provided.");Fr=Fe.format}var jr=formats$1.formatters[Fr],zr=defaults$6.filter;return(typeof Fe.filter=="function"||isArray$3(Fe.filter))&&(zr=Fe.filter),{addQueryPrefix:typeof Fe.addQueryPrefix=="boolean"?Fe.addQueryPrefix:defaults$6.addQueryPrefix,allowDots:typeof Fe.allowDots=="undefined"?defaults$6.allowDots:!!Fe.allowDots,charset:$r,charsetSentinel:typeof Fe.charsetSentinel=="boolean"?Fe.charsetSentinel:defaults$6.charsetSentinel,delimiter:typeof Fe.delimiter=="undefined"?defaults$6.delimiter:Fe.delimiter,encode:typeof Fe.encode=="boolean"?Fe.encode:defaults$6.encode,encoder:typeof Fe.encoder=="function"?Fe.encoder:defaults$6.encoder,encodeValuesOnly:typeof Fe.encodeValuesOnly=="boolean"?Fe.encodeValuesOnly:defaults$6.encodeValuesOnly,filter:zr,format:Fr,formatter:jr,serializeDate:typeof Fe.serializeDate=="function"?Fe.serializeDate:defaults$6.serializeDate,skipNulls:typeof Fe.skipNulls=="boolean"?Fe.skipNulls:defaults$6.skipNulls,sort:typeof Fe.sort=="function"?Fe.sort:null,strictNullHandling:typeof Fe.strictNullHandling=="boolean"?Fe.strictNullHandling:defaults$6.strictNullHandling}},stringify_1=function(_r,Fe){var $r=_r,Fr=normalizeStringifyOptions(Fe),jr,zr;typeof Fr.filter=="function"?(zr=Fr.filter,$r=zr("",$r)):isArray$3(Fr.filter)&&(zr=Fr.filter,jr=zr);var Vr=[];if(typeof $r!="object"||$r===null)return"";var Wr;Fe&&Fe.arrayFormat in arrayPrefixGenerators?Wr=Fe.arrayFormat:Fe&&"indices"in Fe?Wr=Fe.indices?"indices":"repeat":Wr="indices";var Kr=arrayPrefixGenerators[Wr];jr||(jr=Object.keys($r)),Fr.sort&&jr.sort(Fr.sort);for(var Gr=0;Gr<jr.length;++Gr){var Yr=jr[Gr];Fr.skipNulls&&$r[Yr]===null||pushToArray(Vr,stringify$1($r[Yr],Yr,Kr,Fr.strictNullHandling,Fr.skipNulls,Fr.encode?Fr.encoder:null,Fr.filter,Fr.sort,Fr.allowDots,Fr.serializeDate,Fr.format,Fr.formatter,Fr.encodeValuesOnly,Fr.charset))}var Qr=Vr.join(Fr.delimiter),Jr=Fr.addQueryPrefix===!0?"?":"";return Fr.charsetSentinel&&(Fr.charset==="iso-8859-1"?Jr+="utf8=%26%2310003%3B&":Jr+="utf8=%E2%9C%93&"),Qr.length>0?Jr+Qr:""},utils$h=utils$j,has=Object.prototype.hasOwnProperty,isArray$2=Array.isArray,defaults$5={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:utils$h.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},interpretNumericEntities=function(_r){return _r.replace(/&#(\d+);/g,function(Fe,$r){return String.fromCharCode(parseInt($r,10))})},parseArrayValue=function(_r,Fe){return _r&&typeof _r=="string"&&Fe.comma&&_r.indexOf(",")>-1?_r.split(","):_r},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function _r(Fe,$r){var Fr={},jr=$r.ignoreQueryPrefix?Fe.replace(/^\?/,""):Fe,zr=$r.parameterLimit===1/0?void 0:$r.parameterLimit,Vr=jr.split($r.delimiter,zr),Wr=-1,Kr,Gr=$r.charset;if($r.charsetSentinel)for(Kr=0;Kr<Vr.length;++Kr)Vr[Kr].indexOf("utf8=")===0&&(Vr[Kr]===charsetSentinel?Gr="utf-8":Vr[Kr]===isoSentinel&&(Gr="iso-8859-1"),Wr=Kr,Kr=Vr.length);for(Kr=0;Kr<Vr.length;++Kr)if(Kr!==Wr){var Yr=Vr[Kr],Qr=Yr.indexOf("]="),Jr=Qr===-1?Yr.indexOf("="):Qr+1,Zr,tn;Jr===-1?(Zr=$r.decoder(Yr,defaults$5.decoder,Gr,"key"),tn=$r.strictNullHandling?null:""):(Zr=$r.decoder(Yr.slice(0,Jr),defaults$5.decoder,Gr,"key"),tn=utils$h.maybeMap(parseArrayValue(Yr.slice(Jr+1),$r),function(en){return $r.decoder(en,defaults$5.decoder,Gr,"value")})),tn&&$r.interpretNumericEntities&&Gr==="iso-8859-1"&&(tn=interpretNumericEntities(tn)),Yr.indexOf("[]=")>-1&&(tn=isArray$2(tn)?[tn]:tn),has.call(Fr,Zr)?Fr[Zr]=utils$h.combine(Fr[Zr],tn):Fr[Zr]=tn}return Fr},parseObject=function(_r,Fe,$r,Fr){for(var jr=Fr?Fe:parseArrayValue(Fe,$r),zr=_r.length-1;zr>=0;--zr){var Vr,Wr=_r[zr];if(Wr==="[]"&&$r.parseArrays)Vr=[].concat(jr);else{Vr=$r.plainObjects?Object.create(null):{};var Kr=Wr.charAt(0)==="["&&Wr.charAt(Wr.length-1)==="]"?Wr.slice(1,-1):Wr,Gr=parseInt(Kr,10);!$r.parseArrays&&Kr===""?Vr={0:jr}:!isNaN(Gr)&&Wr!==Kr&&String(Gr)===Kr&&Gr>=0&&$r.parseArrays&&Gr<=$r.arrayLimit?(Vr=[],Vr[Gr]=jr):Kr!=="__proto__"&&(Vr[Kr]=jr)}jr=Vr}return jr},parseKeys=function _r(Fe,$r,Fr,jr){if(!!Fe){var zr=Fr.allowDots?Fe.replace(/\.([^.[]+)/g,"[$1]"):Fe,Vr=/(\[[^[\]]*])/,Wr=/(\[[^[\]]*])/g,Kr=Fr.depth>0&&Vr.exec(zr),Gr=Kr?zr.slice(0,Kr.index):zr,Yr=[];if(Gr){if(!Fr.plainObjects&&has.call(Object.prototype,Gr)&&!Fr.allowPrototypes)return;Yr.push(Gr)}for(var Qr=0;Fr.depth>0&&(Kr=Wr.exec(zr))!==null&&Qr<Fr.depth;){if(Qr+=1,!Fr.plainObjects&&has.call(Object.prototype,Kr[1].slice(1,-1))&&!Fr.allowPrototypes)return;Yr.push(Kr[1])}return Kr&&Yr.push("["+zr.slice(Kr.index)+"]"),parseObject(Yr,$r,Fr,jr)}},normalizeParseOptions=function _r(Fe){if(!Fe)return defaults$5;if(Fe.decoder!==null&&Fe.decoder!==void 0&&typeof Fe.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof Fe.charset!="undefined"&&Fe.charset!=="utf-8"&&Fe.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var $r=typeof Fe.charset=="undefined"?defaults$5.charset:Fe.charset;return{allowDots:typeof Fe.allowDots=="undefined"?defaults$5.allowDots:!!Fe.allowDots,allowPrototypes:typeof Fe.allowPrototypes=="boolean"?Fe.allowPrototypes:defaults$5.allowPrototypes,arrayLimit:typeof Fe.arrayLimit=="number"?Fe.arrayLimit:defaults$5.arrayLimit,charset:$r,charsetSentinel:typeof Fe.charsetSentinel=="boolean"?Fe.charsetSentinel:defaults$5.charsetSentinel,comma:typeof Fe.comma=="boolean"?Fe.comma:defaults$5.comma,decoder:typeof Fe.decoder=="function"?Fe.decoder:defaults$5.decoder,delimiter:typeof Fe.delimiter=="string"||utils$h.isRegExp(Fe.delimiter)?Fe.delimiter:defaults$5.delimiter,depth:typeof Fe.depth=="number"||Fe.depth===!1?+Fe.depth:defaults$5.depth,ignoreQueryPrefix:Fe.ignoreQueryPrefix===!0,interpretNumericEntities:typeof Fe.interpretNumericEntities=="boolean"?Fe.interpretNumericEntities:defaults$5.interpretNumericEntities,parameterLimit:typeof Fe.parameterLimit=="number"?Fe.parameterLimit:defaults$5.parameterLimit,parseArrays:Fe.parseArrays!==!1,plainObjects:typeof Fe.plainObjects=="boolean"?Fe.plainObjects:defaults$5.plainObjects,strictNullHandling:typeof Fe.strictNullHandling=="boolean"?Fe.strictNullHandling:defaults$5.strictNullHandling}},parse$3=function(_r,Fe){var $r=normalizeParseOptions(Fe);if(_r===""||_r===null||typeof _r=="undefined")return $r.plainObjects?Object.create(null):{};for(var Fr=typeof _r=="string"?parseValues(_r,$r):_r,jr=$r.plainObjects?Object.create(null):{},zr=Object.keys(Fr),Vr=0;Vr<zr.length;++Vr){var Wr=zr[Vr],Kr=parseKeys(Wr,Fr[Wr],$r,typeof _r=="string");jr=utils$h.merge(jr,Kr,$r)}return utils$h.compact(jr)},stringify=stringify_1,parse$2=parse$3,formats=formats$3,lib$1={formats,parse:parse$2,stringify};function noop$1(){}var deprecate=function _r(Fe,$r){return Fe};function getObjectType(_r){return Object.prototype.toString.call(_r).slice(8,-1)}function checkRendering(_r,Fe){if(_r===void 0||typeof _r!="function")throw new Error("The render function is not valid (received type ".concat(getObjectType(_r),`).

`).concat(Fe))}function clearRefinements(_r){var Fe=_r.helper,$r=_r.attributesToClear,Fr=$r===void 0?[]:$r,jr=Fe.state.setPage(0);return jr=Fr.reduce(function(zr,Vr){return jr.isNumericRefined(Vr)?zr.removeNumericRefinement(Vr):jr.isHierarchicalFacet(Vr)?zr.removeHierarchicalFacetRefinement(Vr):jr.isDisjunctiveFacet(Vr)?zr.removeDisjunctiveFacetRefinement(Vr):jr.isConjunctiveFacet(Vr)?zr.removeFacetRefinement(Vr):zr},jr),Fr.indexOf("query")!==-1&&(jr=jr.setQuery("")),jr}var htmlEntities={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},regexUnescapedHtml=/[&<>"']/g,regexHasUnescapedHtml=RegExp(regexUnescapedHtml.source);function escape$1(_r){return _r&&regexHasUnescapedHtml.test(_r)?_r.replace(regexUnescapedHtml,function(Fe){return htmlEntities[Fe]}):_r}var htmlCharacters={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},regexEscapedHtml=/&(amp|quot|lt|gt|#39);/g,regexHasEscapedHtml=RegExp(regexEscapedHtml.source);function unescape$1(_r){return _r&&regexHasEscapedHtml.test(_r)?_r.replace(regexEscapedHtml,function(Fe){return htmlCharacters[Fe]}):_r}function _typeof$K(_r){return _typeof$K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$K(_r)}function getTag(_r){return _r===null?_r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(_r)}function isObjectLike(_r){return _typeof$K(_r)==="object"&&_r!==null}function isPlainObject$1(_r){if(!isObjectLike(_r)||getTag(_r)!=="[object Object]")return!1;if(Object.getPrototypeOf(_r)===null)return!0;for(var Fe=_r;Object.getPrototypeOf(Fe)!==null;)Fe=Object.getPrototypeOf(Fe);return Object.getPrototypeOf(_r)===Fe}function _typeof$J(_r){return _typeof$J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$J(_r)}function _objectDestructuringEmpty(_r){if(_r==null)throw new TypeError("Cannot destructure "+_r)}function _extends(){return _extends=Object.assign?Object.assign.bind():function(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe];for(var Fr in $r)Object.prototype.hasOwnProperty.call($r,Fr)&&(_r[Fr]=$r[Fr])}return _r},_extends.apply(this,arguments)}function ownKeys$C(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$C(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$C(Object($r),!0).forEach(function(Fr){_defineProperty$E(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$C(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$E(_r,Fe,$r){return Fe=_toPropertyKey$E(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$E(_r){var Fe=_toPrimitive$E(_r,"string");return _typeof$J(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$E(_r,Fe){if(_typeof$J(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$J(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}var TAG_PLACEHOLDER={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},TAG_REPLACEMENT={highlightPreTag:"<mark>",highlightPostTag:"</mark>"};function replaceTagsAndEscape(_r){return escape$1(_r).replace(new RegExp(TAG_PLACEHOLDER.highlightPreTag,"g"),TAG_REPLACEMENT.highlightPreTag).replace(new RegExp(TAG_PLACEHOLDER.highlightPostTag,"g"),TAG_REPLACEMENT.highlightPostTag)}function recursiveEscape(_r){return isPlainObject$1(_r)&&typeof _r.value!="string"?Object.keys(_r).reduce(function(Fe,$r){return _objectSpread$C(_objectSpread$C({},Fe),{},_defineProperty$E({},$r,recursiveEscape(_r[$r])))},{}):Array.isArray(_r)?_r.map(recursiveEscape):_objectSpread$C(_objectSpread$C({},_r),{},{value:replaceTagsAndEscape(_r.value)})}function escapeHits(_r){return _r.__escaped===void 0&&(_r=_r.map(function(Fe){var $r=_extends({},(_objectDestructuringEmpty(Fe),Fe));return $r._highlightResult&&($r._highlightResult=recursiveEscape($r._highlightResult)),$r._snippetResult&&($r._snippetResult=recursiveEscape($r._snippetResult)),$r}),_r.__escaped=!0),_r}function escapeFacets(_r){return _r.map(function(Fe){return _objectSpread$C(_objectSpread$C({},Fe),{},{highlighted:replaceTagsAndEscape(Fe.highlighted)})})}function concatHighlightedParts(_r){var Fe=TAG_REPLACEMENT.highlightPreTag,$r=TAG_REPLACEMENT.highlightPostTag;return _r.map(function(Fr){return Fr.isHighlighted?Fe+Fr.value+$r:Fr.value}).join("")}function createConcurrentSafePromise(){var _r=-1,Fe=-1,$r=void 0;return function(jr){var zr=++_r;return Promise.resolve(jr).then(function(Vr){return $r&&zr<Fe?$r:(Fe=zr,$r=Vr,Vr)})}}function isFacetRefined(_r,Fe,$r){return _r.state.isHierarchicalFacet(Fe)?_r.state.isHierarchicalFacetRefined(Fe,$r):_r.state.isConjunctiveFacet(Fe)?_r.state.isFacetRefined(Fe,$r):_r.state.isDisjunctiveFacetRefined(Fe,$r)}function _typeof$I(_r){return _typeof$I=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$I(_r)}function _slicedToArray$9(_r,Fe){return _arrayWithHoles$9(_r)||_iterableToArrayLimit$9(_r,Fe)||_unsupportedIterableToArray$h(_r,Fe)||_nonIterableRest$9()}function _nonIterableRest$9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$h(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray$h(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray$h(_r,Fe)}}function _arrayLikeToArray$h(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}function _iterableToArrayLimit$9(_r,Fe){var $r=_r==null?null:typeof Symbol!="undefined"&&_r[Symbol.iterator]||_r["@@iterator"];if($r!=null){var Fr,jr,zr,Vr,Wr=[],Kr=!0,Gr=!1;try{if(zr=($r=$r.call(_r)).next,Fe===0){if(Object($r)!==$r)return;Kr=!1}else for(;!(Kr=(Fr=zr.call($r)).done)&&(Wr.push(Fr.value),Wr.length!==Fe);Kr=!0);}catch(Yr){Gr=!0,jr=Yr}finally{try{if(!Kr&&$r.return!=null&&(Vr=$r.return(),Object(Vr)!==Vr))return}finally{if(Gr)throw jr}}return Wr}}function _arrayWithHoles$9(_r){if(Array.isArray(_r))return _r}function createSendEventForFacet(_r){var Fe=_r.instantSearchInstance,$r=_r.helper,Fr=_r.attribute,jr=_r.widgetType,zr=function(){for(var Wr=arguments.length,Kr=new Array(Wr),Gr=0;Gr<Wr;Gr++)Kr[Gr]=arguments[Gr];var Yr=Kr[1],Qr=Kr[2],Jr=Qr===void 0?"Filter Applied":Qr,Zr=Kr[0].split(":"),tn=_slicedToArray$9(Zr,2),en=tn[0],rn=tn[1],nn=typeof Fr=="string"?Fr:Fr(Yr);Kr.length===1&&_typeof$I(Kr[0])==="object"?Fe.sendEventToInsights(Kr[0]):en==="click"&&(Kr.length===2||Kr.length===3)&&(isFacetRefined($r,nn,Yr)||Fe.sendEventToInsights({insightsMethod:"clickedFilters",widgetType:jr,eventType:en,eventModifier:rn,payload:{eventName:Jr,index:$r.getIndex(),filters:["".concat(nn,":").concat(Yr)]},attribute:nn}))};return zr}function serializePayload(_r){return btoa(encodeURIComponent(JSON.stringify(_r)))}function _slicedToArray$8(_r,Fe){return _arrayWithHoles$8(_r)||_iterableToArrayLimit$8(_r,Fe)||_unsupportedIterableToArray$g(_r,Fe)||_nonIterableRest$8()}function _nonIterableRest$8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$g(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray$g(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray$g(_r,Fe)}}function _arrayLikeToArray$g(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}function _iterableToArrayLimit$8(_r,Fe){var $r=_r==null?null:typeof Symbol!="undefined"&&_r[Symbol.iterator]||_r["@@iterator"];if($r!=null){var Fr,jr,zr,Vr,Wr=[],Kr=!0,Gr=!1;try{if(zr=($r=$r.call(_r)).next,Fe===0){if(Object($r)!==$r)return;Kr=!1}else for(;!(Kr=(Fr=zr.call($r)).done)&&(Wr.push(Fr.value),Wr.length!==Fe);Kr=!0);}catch(Yr){Gr=!0,jr=Yr}finally{try{if(!Kr&&$r.return!=null&&(Vr=$r.return(),Object(Vr)!==Vr))return}finally{if(Gr)throw jr}}return Wr}}function _arrayWithHoles$8(_r){if(Array.isArray(_r))return _r}function _typeof$H(_r){return _typeof$H=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$H(_r)}function chunk(_r){for(var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:20,$r=[],Fr=0;Fr<Math.ceil(_r.length/Fe);Fr++)$r.push(_r.slice(Fr*Fe,(Fr+1)*Fe));return $r}function _buildEventPayloadsForHits(_r){var Fe=_r.index,$r=_r.widgetType;_r.methodName;var Fr=_r.args,jr=_r.instantSearchInstance;if(Fr.length===1&&_typeof$H(Fr[0])==="object")return[Fr[0]];var zr=Fr[0].split(":"),Vr=_slicedToArray$8(zr,2),Wr=Vr[0],Kr=Vr[1],Gr=Fr[1],Yr=Fr[2];if(!Gr)return[];if((Wr==="click"||Wr==="conversion")&&!Yr)return[];var Qr=Array.isArray(Gr)?Gr:[Gr];if(Qr.length===0)return[];var Jr=Qr[0].__queryID,Zr=chunk(Qr),tn=Zr.map(function(rn){return rn.map(function(nn){return nn.objectID})}),en=Zr.map(function(rn){return rn.map(function(nn){return nn.__position})});return Wr==="view"?jr.status!=="idle"?[]:Zr.map(function(rn,nn){return{insightsMethod:"viewedObjectIDs",widgetType:$r,eventType:Wr,payload:{eventName:Yr||"Hits Viewed",index:Fe,objectIDs:tn[nn]},hits:rn,eventModifier:Kr}}):Wr==="click"?Zr.map(function(rn,nn){return{insightsMethod:"clickedObjectIDsAfterSearch",widgetType:$r,eventType:Wr,payload:{eventName:Yr||"Hit Clicked",index:Fe,queryID:Jr,objectIDs:tn[nn],positions:en[nn]},hits:rn,eventModifier:Kr}}):Wr==="conversion"?Zr.map(function(rn,nn){return{insightsMethod:"convertedObjectIDsAfterSearch",widgetType:$r,eventType:Wr,payload:{eventName:Yr||"Hit Converted",index:Fe,queryID:Jr,objectIDs:tn[nn]},hits:rn,eventModifier:Kr}}):[]}function createSendEventForHits(_r){var Fe=_r.instantSearchInstance,$r=_r.index,Fr=_r.widgetType,jr={},zr=void 0,Vr=function(){for(var Kr=arguments.length,Gr=new Array(Kr),Yr=0;Yr<Kr;Yr++)Gr[Yr]=arguments[Yr];var Qr=_buildEventPayloadsForHits({widgetType:Fr,index:$r,methodName:"sendEvent",args:Gr,instantSearchInstance:Fe});Qr.forEach(function(Jr){Jr.eventType==="click"&&Jr.eventModifier==="internal"&&jr[Jr.eventType]||(jr[Jr.eventType]=!0,Fe.sendEventToInsights(Jr))}),clearTimeout(zr),zr=setTimeout(function(){jr={}},0)};return Vr}function createBindEventForHits(_r){var Fe=_r.index,$r=_r.widgetType,Fr=_r.instantSearchInstance,jr=function(){for(var Vr=arguments.length,Wr=new Array(Vr),Kr=0;Kr<Vr;Kr++)Wr[Kr]=arguments[Kr];var Gr=_buildEventPayloadsForHits({widgetType:$r,index:Fe,methodName:"bindEvent",args:Wr,instantSearchInstance:Fr});return Gr.length?"data-insights-event=".concat(serializePayload(Gr)):""};return jr}function isIndexWidget(_r){return _r.$$type==="ais.index"}function setIndexHelperState(_r,Fe){var $r=_r[Fe.getIndexId()]||{};Fe.getHelper().setState(Fe.getWidgetSearchParameters(Fe.getHelper().state,{uiState:$r})),Fe.getWidgets().filter(isIndexWidget).forEach(function(Fr){return setIndexHelperState(_r,Fr)})}function debounce$1(_r,Fe){var $r=null;return function(){for(var Fr=arguments.length,jr=new Array(Fr),zr=0;zr<Fr;zr++)jr[zr]=arguments[zr];return new Promise(function(Vr,Wr){$r&&clearTimeout($r),$r=setTimeout(function(){$r=null,Promise.resolve(_r.apply(void 0,jr)).then(Vr).catch(Wr)},Fe)})}}var nextMicroTask=Promise.resolve();function defer(_r){var Fe=null,$r=!1,Fr=function(){for(var zr=arguments.length,Vr=new Array(zr),Wr=0;Wr<zr;Wr++)Vr[Wr]=arguments[Wr];Fe===null&&(Fe=nextMicroTask.then(function(){if(Fe=null,$r){$r=!1;return}_r.apply(void 0,Vr)}))};return Fr.wait=function(){if(Fe===null)throw new Error("The deferred function should be called before calling `wait()`");return Fe},Fr.cancel=function(){Fe!==null&&($r=!0)},Fr}function createDocumentationLink(_r){var Fe=_r.name,$r=_r.connector,Fr=$r===void 0?!1:$r;return["https://www.algolia.com/doc/api-reference/widgets/",Fe,"/js/",Fr?"#connector":""].join("")}function createDocumentationMessageGenerator(){for(var _r=arguments.length,Fe=new Array(_r),$r=0;$r<_r;$r++)Fe[$r]=arguments[$r];var Fr=Fe.map(function(jr){return createDocumentationLink(jr)}).join(", ");return function(jr){return[jr,"See documentation: ".concat(Fr)].filter(Boolean).join(`

`)}}function unescapeFacetValue$3(_r){return typeof _r=="string"?_r.replace(/^\\-/,"-"):_r}function escapeFacetValue$4(_r){return typeof _r=="number"&&_r<0||typeof _r=="string"?String(_r).replace(/^-/,"\\-"):_r}function find$5(_r,Fe){for(var $r,Fr=0;Fr<_r.length;Fr++)if($r=_r[Fr],Fe($r,Fr,_r))return $r}function findIndex$2(_r,Fe){if(!Array.isArray(_r))return-1;for(var $r=0;$r<_r.length;$r++)if(Fe(_r[$r]))return $r;return-1}function getAppIdAndApiKey(_r){if(_r.transporter){var Fe=_r.transporter,$r=Fe.headers,Fr=Fe.queryParameters,jr="x-algolia-application-id",zr="x-algolia-api-key",Vr=$r[jr]||Fr[jr],Wr=$r[zr]||Fr[zr];return[Vr,Wr]}else return[_r.applicationID,_r.apiKey]}function getHighlightedParts(_r){var Fe=TAG_REPLACEMENT.highlightPostTag,$r=TAG_REPLACEMENT.highlightPreTag,Fr=_r.split($r),jr=Fr.shift(),zr=jr?[{value:jr,isHighlighted:!1}]:[];return Fr.forEach(function(Vr){var Wr=Vr.split(Fe);zr.push({value:Wr[0],isHighlighted:!0}),Wr[1]!==""&&zr.push({value:Wr[1],isHighlighted:!1})}),zr}var hasAlphanumeric=new RegExp(/\w/i);function getHighlightFromSiblings(_r,Fe){var $r,Fr,jr=_r[Fe],zr=(($r=_r[Fe+1])===null||$r===void 0?void 0:$r.isHighlighted)||!0,Vr=((Fr=_r[Fe-1])===null||Fr===void 0?void 0:Fr.isHighlighted)||!0;return!hasAlphanumeric.test(unescape$1(jr.value))&&Vr===zr?Vr:jr.isHighlighted}function getPropertyByPath(_r,Fe){var $r=Array.isArray(Fe)?Fe:Fe.split(".");return $r.reduce(function(Fr,jr){return Fr&&Fr[jr]},_r)}function getRefinement$1(_r,Fe,$r,Fr){var jr=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],zr={type:Fe,attribute:$r,name:Fr,escapedValue:escapeFacetValue$4(Fr)},Vr=find$5(jr,function(Zr){return Zr.name===$r}),Wr;if(Fe==="hierarchical"){for(var Kr=_r.getHierarchicalFacetByName($r),Gr=Fr.split(Kr.separator),Yr=function(tn){return function(en){return tn[en]}},Qr=function(tn){Vr=Vr&&Vr.data&&find$5(Object.keys(Vr.data).map(Yr(Vr.data)),function(en){return en.name===Gr[tn]})},Jr=0;Vr!==void 0&&Jr<Gr.length;++Jr)Qr(Jr);Wr=Vr&&Vr.count}else Wr=Vr&&Vr.data&&Vr.data[zr.name];return Wr!==void 0&&(zr.count=Wr),Vr&&Vr.exhaustive!==void 0&&(zr.exhaustive=Vr.exhaustive),zr}function getRefinements(_r,Fe){var $r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Fr=[],jr=Fe.facetsRefinements,zr=jr===void 0?{}:jr,Vr=Fe.facetsExcludes,Wr=Vr===void 0?{}:Vr,Kr=Fe.disjunctiveFacetsRefinements,Gr=Kr===void 0?{}:Kr,Yr=Fe.hierarchicalFacetsRefinements,Qr=Yr===void 0?{}:Yr,Jr=Fe.numericRefinements,Zr=Jr===void 0?{}:Jr,tn=Fe.tagRefinements,en=tn===void 0?[]:tn;return Object.keys(zr).forEach(function(rn){var nn=zr[rn];nn.forEach(function(on){Fr.push(getRefinement$1(Fe,"facet",rn,on,_r.facets))})}),Object.keys(Wr).forEach(function(rn){var nn=Wr[rn];nn.forEach(function(on){Fr.push({type:"exclude",attribute:rn,name:on,exclude:!0})})}),Object.keys(Gr).forEach(function(rn){var nn=Gr[rn];nn.forEach(function(on){Fr.push(getRefinement$1(Fe,"disjunctive",rn,unescapeFacetValue$3(on),_r.disjunctiveFacets))})}),Object.keys(Qr).forEach(function(rn){var nn=Qr[rn];nn.forEach(function(on){Fr.push(getRefinement$1(Fe,"hierarchical",rn,on,_r.hierarchicalFacets))})}),Object.keys(Zr).forEach(function(rn){var nn=Zr[rn];Object.keys(nn).forEach(function(on){var un=on,an=nn[un],sn=Array.isArray(an)?an:[an];sn.forEach(function(dn){Fr.push({type:"numeric",attribute:rn,name:"".concat(dn),numericValue:dn,operator:un})})})}),en.forEach(function(rn){Fr.push({type:"tag",attribute:"_tags",name:rn})}),$r&&Fe.query&&Fe.query.trim()&&Fr.push({attribute:"query",type:"query",name:Fe.query,query:Fe.query}),Fr}function getWidgetAttribute(_r,Fe){var $r,Fr=($r=_r.getWidgetRenderState)===null||$r===void 0?void 0:$r.call(_r,Fe),jr=null;if(Fr&&Fr.widgetParams){var zr=Fr.widgetParams;zr.attribute?jr=zr.attribute:Array.isArray(zr.attributes)&&(jr=zr.attributes[0])}if(typeof jr!="string")throw new Error(`Could not find the attribute of the widget:

`.concat(JSON.stringify(_r),`

Please check whether the widget's getWidgetRenderState returns widgetParams.attribute correctly.`));return jr}function _typeof$G(_r){return _typeof$G=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$G(_r)}function ownKeys$B(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$B(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$B(Object($r),!0).forEach(function(Fr){_defineProperty$D(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$B(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$D(_r,Fe,$r){return Fe=_toPropertyKey$D(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$D(_r){var Fe=_toPrimitive$D(_r,"string");return _typeof$G(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$D(_r,Fe){if(_typeof$G(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$G(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}function addAbsolutePosition(_r,Fe,$r){return _r.map(function(Fr,jr){return _objectSpread$B(_objectSpread$B({},Fr),{},{__position:$r*Fe+jr+1})})}function _typeof$F(_r){return _typeof$F=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$F(_r)}function ownKeys$A(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$A(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$A(Object($r),!0).forEach(function(Fr){_defineProperty$C(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$A(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$C(_r,Fe,$r){return Fe=_toPropertyKey$C(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$C(_r){var Fe=_toPrimitive$C(_r,"string");return _typeof$F(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$C(_r,Fe){if(_typeof$F(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$F(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}function addQueryID(_r,Fe){return Fe?_r.map(function($r){return _objectSpread$A(_objectSpread$A({},$r),{},{__queryID:Fe})}):_r}function isPrimitive(_r){return _r!==Object(_r)}function isEqual(_r,Fe){if(_r===Fe)return!0;if(isPrimitive(_r)||isPrimitive(Fe)||typeof _r=="function"||typeof Fe=="function")return _r===Fe;if(Object.keys(_r).length!==Object.keys(Fe).length)return!1;for(var $r=0,Fr=Object.keys(_r);$r<Fr.length;$r++){var jr=Fr[$r];if(!(jr in Fe)||!isEqual(_r[jr],Fe[jr]))return!1}return!0}function isFiniteNumber(_r){return typeof _r=="number"&&isFinite(_r)}function walkIndex(_r,Fe){Fe(_r),_r.getWidgets().forEach(function($r){isIndexWidget($r)&&walkIndex($r,Fe)})}function uniq(_r){return _r.filter(function(Fe,$r,Fr){return Fr.indexOf(Fe)===$r})}function _typeof$E(_r){return _typeof$E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$E(_r)}var _excluded$8=["facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements","ruleContexts"];function ownKeys$z(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$z(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$z(Object($r),!0).forEach(function(Fr){_defineProperty$B(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$z(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$B(_r,Fe,$r){return Fe=_toPropertyKey$B(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$B(_r){var Fe=_toPrimitive$B(_r,"string");return _typeof$E(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$B(_r,Fe){if(_typeof$E(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$E(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}function _objectWithoutProperties$8(_r,Fe){if(_r==null)return{};var $r=_objectWithoutPropertiesLoose$9(_r,Fe),Fr,jr;if(Object.getOwnPropertySymbols){var zr=Object.getOwnPropertySymbols(_r);for(jr=0;jr<zr.length;jr++)Fr=zr[jr],!(Fe.indexOf(Fr)>=0)&&(!Object.prototype.propertyIsEnumerable.call(_r,Fr)||($r[Fr]=_r[Fr]))}return $r}function _objectWithoutPropertiesLoose$9(_r,Fe){if(_r==null)return{};var $r={},Fr=Object.keys(_r),jr,zr;for(zr=0;zr<Fr.length;zr++)jr=Fr[zr],!(Fe.indexOf(jr)>=0)&&($r[jr]=_r[jr]);return $r}var mergeWithRest=function _r(Fe,$r){$r.facets,$r.disjunctiveFacets,$r.facetsRefinements,$r.facetsExcludes,$r.disjunctiveFacetsRefinements,$r.numericRefinements,$r.tagRefinements,$r.hierarchicalFacets,$r.hierarchicalFacetsRefinements,$r.ruleContexts;var Fr=_objectWithoutProperties$8($r,_excluded$8);return Fe.setQueryParameters(Fr)},mergeFacets=function _r(Fe,$r){return $r.facets.reduce(function(Fr,jr){return Fr.addFacet(jr)},Fe)},mergeDisjunctiveFacets=function _r(Fe,$r){return $r.disjunctiveFacets.reduce(function(Fr,jr){return Fr.addDisjunctiveFacet(jr)},Fe)},mergeHierarchicalFacets=function _r(Fe,$r){return Fe.setQueryParameters({hierarchicalFacets:$r.hierarchicalFacets.reduce(function(Fr,jr){var zr=findIndex$2(Fr,function(Wr){return Wr.name===jr.name});if(zr===-1)return Fr.concat(jr);var Vr=Fr.slice();return Vr.splice(zr,1,jr),Vr},Fe.hierarchicalFacets)})},mergeTagRefinements=function _r(Fe,$r){return $r.tagRefinements.reduce(function(Fr,jr){return Fr.addTagRefinement(jr)},Fe)},mergeFacetRefinements=function _r(Fe,$r){return Fe.setQueryParameters({facetsRefinements:_objectSpread$z(_objectSpread$z({},Fe.facetsRefinements),$r.facetsRefinements)})},mergeFacetsExcludes=function _r(Fe,$r){return Fe.setQueryParameters({facetsExcludes:_objectSpread$z(_objectSpread$z({},Fe.facetsExcludes),$r.facetsExcludes)})},mergeDisjunctiveFacetsRefinements=function _r(Fe,$r){return Fe.setQueryParameters({disjunctiveFacetsRefinements:_objectSpread$z(_objectSpread$z({},Fe.disjunctiveFacetsRefinements),$r.disjunctiveFacetsRefinements)})},mergeNumericRefinements=function _r(Fe,$r){return Fe.setQueryParameters({numericRefinements:_objectSpread$z(_objectSpread$z({},Fe.numericRefinements),$r.numericRefinements)})},mergeHierarchicalFacetsRefinements=function _r(Fe,$r){return Fe.setQueryParameters({hierarchicalFacetsRefinements:_objectSpread$z(_objectSpread$z({},Fe.hierarchicalFacetsRefinements),$r.hierarchicalFacetsRefinements)})},mergeRuleContexts=function _r(Fe,$r){var Fr=uniq([].concat(Fe.ruleContexts).concat($r.ruleContexts).filter(Boolean));return Fr.length>0?Fe.setQueryParameters({ruleContexts:Fr}):Fe},mergeSearchParameters=function _r(){for(var Fe=arguments.length,$r=new Array(Fe),Fr=0;Fr<Fe;Fr++)$r[Fr]=arguments[Fr];return $r.reduce(function(jr,zr){var Vr=mergeHierarchicalFacetsRefinements(jr,zr),Wr=mergeHierarchicalFacets(Vr,zr),Kr=mergeTagRefinements(Wr,zr),Gr=mergeNumericRefinements(Kr,zr),Yr=mergeDisjunctiveFacetsRefinements(Gr,zr),Qr=mergeFacetsExcludes(Yr,zr),Jr=mergeFacetRefinements(Qr,zr),Zr=mergeDisjunctiveFacets(Jr,zr),tn=mergeRuleContexts(Zr,zr),en=mergeFacets(tn,zr);return mergeWithRest(en,zr)})};function _toConsumableArray$9(_r){return _arrayWithoutHoles$9(_r)||_iterableToArray$9(_r)||_unsupportedIterableToArray$f(_r)||_nonIterableSpread$9()}function _nonIterableSpread$9(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$f(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray$f(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray$f(_r,Fe)}}function _iterableToArray$9(_r){if(typeof Symbol!="undefined"&&_r[Symbol.iterator]!=null||_r["@@iterator"]!=null)return Array.from(_r)}function _arrayWithoutHoles$9(_r){if(Array.isArray(_r))return _arrayLikeToArray$f(_r)}function _arrayLikeToArray$f(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}function range(_r){var Fe=_r.start,$r=Fe===void 0?0:Fe,Fr=_r.end,jr=_r.step,zr=jr===void 0?1:jr,Vr=zr===0?1:zr,Wr=Math.round((Fr-$r)/Vr);return _toConsumableArray$9(Array(Wr)).map(function(Kr,Gr){return $r+Gr*Vr})}function createInitArgs(_r,Fe,$r){var Fr=Fe.getHelper();return{uiState:$r,helper:Fr,parent:Fe,instantSearchInstance:_r,state:Fr.state,renderState:_r.renderState,templatesConfig:_r.templatesConfig,createURL:Fe.createURL,scopedResults:[],searchMetadata:{isSearchStalled:_r.status==="stalled"},status:_r.status,error:_r.error}}function createRenderArgs(_r,Fe){var $r=Fe.getResults(),Fr=Fe.getHelper();return{helper:Fr,parent:Fe,instantSearchInstance:_r,results:$r,scopedResults:Fe.getScopedResults(),state:$r?$r._state:Fr.state,renderState:_r.renderState,templatesConfig:_r.templatesConfig,createURL:Fe.createURL,searchMetadata:{isSearchStalled:_r.status==="stalled"},status:_r.status,error:_r.error}}function resolveSearchParameters(_r){for(var Fe=_r.getParent(),$r=[_r.getHelper().state];Fe!==null;)$r=[Fe.getHelper().state].concat($r),Fe=Fe.getParent();return $r}function _typeof$D(_r){return _typeof$D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$D(_r)}function ownKeys$y(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$y(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$y(Object($r),!0).forEach(function(Fr){_defineProperty$A(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$y(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$A(_r,Fe,$r){return Fe=_toPropertyKey$A(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$A(_r){var Fe=_toPrimitive$A(_r,"string");return _typeof$D(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$A(_r,Fe){if(_typeof$D(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$D(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}function reverseHighlightedParts(_r){return _r.some(function(Fe){return Fe.isHighlighted})?_r.map(function(Fe,$r){return _objectSpread$y(_objectSpread$y({},Fe),{},{isHighlighted:!getHighlightFromSiblings(_r,$r)})}):_r.map(function(Fe){return _objectSpread$y(_objectSpread$y({},Fe),{},{isHighlighted:!1})})}function safelyRunOnBrowser(_r){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{fallback:function(){}},$r=Fe.fallback;return typeof window=="undefined"?$r():_r({window})}function toArray(_r){return Array.isArray(_r)?_r:[_r]}function _typeof$C(_r){return _typeof$C=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$C(_r)}function _classCallCheck$2(_r,Fe){if(!(_r instanceof Fe))throw new TypeError("Cannot call a class as a function")}function _defineProperties$2(_r,Fe){for(var $r=0;$r<Fe.length;$r++){var Fr=Fe[$r];Fr.enumerable=Fr.enumerable||!1,Fr.configurable=!0,"value"in Fr&&(Fr.writable=!0),Object.defineProperty(_r,_toPropertyKey$z(Fr.key),Fr)}}function _createClass$2(_r,Fe,$r){return Fe&&_defineProperties$2(_r.prototype,Fe),$r&&_defineProperties$2(_r,$r),Object.defineProperty(_r,"prototype",{writable:!1}),_r}function _defineProperty$z(_r,Fe,$r){return Fe=_toPropertyKey$z(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$z(_r){var Fe=_toPrimitive$z(_r,"string");return _typeof$C(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$z(_r,Fe){if(_typeof$C(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$C(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}var setWindowTitle=function _r(Fe){Fe&&(window.document.title=Fe)},BrowserHistory=function(){function _r(Fe){var $r=this,Fr=Fe.windowTitle,jr=Fe.writeDelay,zr=jr===void 0?400:jr,Vr=Fe.createURL,Wr=Fe.parseURL,Kr=Fe.getLocation,Gr=Fe.start,Yr=Fe.dispose,Qr=Fe.push;_classCallCheck$2(this,_r),_defineProperty$z(this,"$$type","ais.browser"),_defineProperty$z(this,"windowTitle",void 0),_defineProperty$z(this,"writeDelay",void 0),_defineProperty$z(this,"_createURL",void 0),_defineProperty$z(this,"parseURL",void 0),_defineProperty$z(this,"getLocation",void 0),_defineProperty$z(this,"writeTimer",void 0),_defineProperty$z(this,"_onPopState",void 0),_defineProperty$z(this,"inPopState",!1),_defineProperty$z(this,"isDisposed",!1),_defineProperty$z(this,"latestAcknowledgedHistory",0),_defineProperty$z(this,"_start",void 0),_defineProperty$z(this,"_dispose",void 0),_defineProperty$z(this,"_push",void 0),this.windowTitle=Fr,this.writeTimer=void 0,this.writeDelay=zr,this._createURL=Vr,this.parseURL=Wr,this.getLocation=Kr,this._start=Gr,this._dispose=Yr,this._push=Qr,safelyRunOnBrowser(function(Jr){var Zr=Jr.window,tn=$r.windowTitle&&$r.windowTitle($r.read());setWindowTitle(tn),$r.latestAcknowledgedHistory=Zr.history.length})}return _createClass$2(_r,[{key:"read",value:function(){return this.parseURL({qsModule:lib$1,location:this.getLocation()})}},{key:"write",value:function($r){var Fr=this;safelyRunOnBrowser(function(jr){var zr=jr.window,Vr=Fr.createURL($r),Wr=Fr.windowTitle&&Fr.windowTitle($r);Fr.writeTimer&&clearTimeout(Fr.writeTimer),Fr.writeTimer=setTimeout(function(){setWindowTitle(Wr),Fr.shouldWrite(Vr)&&(Fr._push?Fr._push(Vr):zr.history.pushState($r,Wr||"",Vr),Fr.latestAcknowledgedHistory=zr.history.length),Fr.inPopState=!1,Fr.writeTimer=void 0},Fr.writeDelay)})}},{key:"onUpdate",value:function($r){var Fr=this;this._start&&this._start(function(){$r(Fr.read())}),this._onPopState=function(){Fr.writeTimer&&(clearTimeout(Fr.writeTimer),Fr.writeTimer=void 0),Fr.inPopState=!0,$r(Fr.read())},safelyRunOnBrowser(function(jr){var zr=jr.window;zr.addEventListener("popstate",Fr._onPopState)})}},{key:"createURL",value:function($r){var Fr=this._createURL({qsModule:lib$1,routeState:$r,location:this.getLocation()});return Fr}},{key:"dispose",value:function(){var $r=this;this._dispose&&this._dispose(),this.isDisposed=!0,safelyRunOnBrowser(function(Fr){var jr=Fr.window;$r._onPopState&&jr.removeEventListener("popstate",$r._onPopState)}),this.writeTimer&&clearTimeout(this.writeTimer),this.write({})}},{key:"start",value:function(){this.isDisposed=!1}},{key:"shouldWrite",value:function($r){var Fr=this;return safelyRunOnBrowser(function(jr){var zr=jr.window,Vr=!(Fr.isDisposed&&Fr.latestAcknowledgedHistory!==zr.history.length);return!Fr.inPopState&&Vr&&$r!==zr.location.href})}}]),_r}();function historyRouter(){var _r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Fe=_r.createURL,$r=Fe===void 0?function(Zr){var tn=Zr.qsModule,en=Zr.routeState,rn=Zr.location,nn=rn.protocol,on=rn.hostname,un=rn.port,an=un===void 0?"":un,sn=rn.pathname,dn=rn.hash,ln=tn.stringify(en),cn=an===""?"":":".concat(an);return ln?"".concat(nn,"//").concat(on).concat(cn).concat(sn,"?").concat(ln).concat(dn):"".concat(nn,"//").concat(on).concat(cn).concat(sn).concat(dn)}:Fe,Fr=_r.parseURL,jr=Fr===void 0?function(Zr){var tn=Zr.qsModule,en=Zr.location;return tn.parse(en.search.slice(1),{arrayLimit:99})}:Fr,zr=_r.writeDelay,Vr=zr===void 0?400:zr,Wr=_r.windowTitle,Kr=_r.getLocation,Gr=Kr===void 0?function(){return safelyRunOnBrowser(function(Zr){var tn=Zr.window;return tn.location},{fallback:function(){throw new Error("You need to provide `getLocation` to the `history` router in environments where `window` does not exist.")}})}:Kr,Yr=_r.start,Qr=_r.dispose,Jr=_r.push;return new BrowserHistory({createURL:$r,parseURL:jr,writeDelay:Vr,windowTitle:Wr,getLocation:Gr,start:Yr,dispose:Qr,push:Jr})}function _typeof$B(_r){return _typeof$B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$B(_r)}var _excluded$7=["configure"];function ownKeys$x(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$x(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$x(Object($r),!0).forEach(function(Fr){_defineProperty$y(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$x(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$y(_r,Fe,$r){return Fe=_toPropertyKey$y(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$y(_r){var Fe=_toPrimitive$y(_r,"string");return _typeof$B(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$y(_r,Fe){if(_typeof$B(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$B(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}function _objectWithoutProperties$7(_r,Fe){if(_r==null)return{};var $r=_objectWithoutPropertiesLoose$8(_r,Fe),Fr,jr;if(Object.getOwnPropertySymbols){var zr=Object.getOwnPropertySymbols(_r);for(jr=0;jr<zr.length;jr++)Fr=zr[jr],!(Fe.indexOf(Fr)>=0)&&(!Object.prototype.propertyIsEnumerable.call(_r,Fr)||($r[Fr]=_r[Fr]))}return $r}function _objectWithoutPropertiesLoose$8(_r,Fe){if(_r==null)return{};var $r={},Fr=Object.keys(_r),jr,zr;for(zr=0;zr<Fr.length;zr++)jr=Fr[zr],!(Fe.indexOf(jr)>=0)&&($r[jr]=_r[jr]);return $r}function getIndexStateWithoutConfigure$1(_r){_r.configure;var Fe=_objectWithoutProperties$7(_r,_excluded$7);return Fe}function simpleStateMapping(){return{$$type:"ais.simple",stateToRoute:function(Fe){return Object.keys(Fe).reduce(function($r,Fr){return _objectSpread$x(_objectSpread$x({},$r),{},_defineProperty$y({},Fr,getIndexStateWithoutConfigure$1(Fe[Fr])))},{})},routeToState:function(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(Fe).reduce(function($r,Fr){return _objectSpread$x(_objectSpread$x({},$r),{},_defineProperty$y({},Fr,getIndexStateWithoutConfigure$1(Fe[Fr])))},{})}}}function _typeof$A(_r){return _typeof$A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$A(_r)}var _excluded$6=["configure"];function _defineProperty$x(_r,Fe,$r){return Fe=_toPropertyKey$x(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$x(_r){var Fe=_toPrimitive$x(_r,"string");return _typeof$A(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$x(_r,Fe){if(_typeof$A(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$A(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}function _objectWithoutProperties$6(_r,Fe){if(_r==null)return{};var $r=_objectWithoutPropertiesLoose$7(_r,Fe),Fr,jr;if(Object.getOwnPropertySymbols){var zr=Object.getOwnPropertySymbols(_r);for(jr=0;jr<zr.length;jr++)Fr=zr[jr],!(Fe.indexOf(Fr)>=0)&&(!Object.prototype.propertyIsEnumerable.call(_r,Fr)||($r[Fr]=_r[Fr]))}return $r}function _objectWithoutPropertiesLoose$7(_r,Fe){if(_r==null)return{};var $r={},Fr=Object.keys(_r),jr,zr;for(zr=0;zr<Fr.length;zr++)jr=Fr[zr],!(Fe.indexOf(jr)>=0)&&($r[jr]=_r[jr]);return $r}function getIndexStateWithoutConfigure(_r){_r.configure;var Fe=_objectWithoutProperties$6(_r,_excluded$6);return Fe}function singleIndexStateMapping(_r){return{$$type:"ais.singleIndex",stateToRoute:function($r){return getIndexStateWithoutConfigure($r[_r]||{})},routeToState:function(){var $r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return _defineProperty$x({},_r,getIndexStateWithoutConfigure($r))}}}var TypesenseInstantsearchAdapter={},interopRequireDefault={exports:{}};(function(_r){function Fe($r){return $r&&$r.__esModule?$r:{default:$r}}_r.exports=Fe,_r.exports.__esModule=!0,_r.exports.default=_r.exports})(interopRequireDefault);var regeneratorRuntime$1={exports:{}},_typeof$z={exports:{}};(function(_r){function Fe($r){return _r.exports=Fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fr){return typeof Fr}:function(Fr){return Fr&&typeof Symbol=="function"&&Fr.constructor===Symbol&&Fr!==Symbol.prototype?"symbol":typeof Fr},_r.exports.__esModule=!0,_r.exports.default=_r.exports,Fe($r)}_r.exports=Fe,_r.exports.__esModule=!0,_r.exports.default=_r.exports})(_typeof$z);(function(_r){var Fe=_typeof$z.exports.default;function $r(){_r.exports=$r=function(){return Fr},_r.exports.__esModule=!0,_r.exports.default=_r.exports;var Fr={},jr=Object.prototype,zr=jr.hasOwnProperty,Vr=Object.defineProperty||function(bn,_n,$n){bn[_n]=$n.value},Wr=typeof Symbol=="function"?Symbol:{},Kr=Wr.iterator||"@@iterator",Gr=Wr.asyncIterator||"@@asyncIterator",Yr=Wr.toStringTag||"@@toStringTag";function Qr(bn,_n,$n){return Object.defineProperty(bn,_n,{value:$n,enumerable:!0,configurable:!0,writable:!0}),bn[_n]}try{Qr({},"")}catch{Qr=function($n,yn,wn){return $n[yn]=wn}}function Jr(bn,_n,$n,yn){var wn=_n&&_n.prototype instanceof en?_n:en,gn=Object.create(wn.prototype),Pn=new mn(yn||[]);return Vr(gn,"_invoke",{value:cn(bn,$n,Pn)}),gn}function Zr(bn,_n,$n){try{return{type:"normal",arg:bn.call(_n,$n)}}catch(yn){return{type:"throw",arg:yn}}}Fr.wrap=Jr;var tn={};function en(){}function rn(){}function nn(){}var on={};Qr(on,Kr,function(){return this});var un=Object.getPrototypeOf,an=un&&un(un(Sn([])));an&&an!==jr&&zr.call(an,Kr)&&(on=an);var sn=nn.prototype=en.prototype=Object.create(on);function dn(bn){["next","throw","return"].forEach(function(_n){Qr(bn,_n,function($n){return this._invoke(_n,$n)})})}function ln(bn,_n){function $n(wn,gn,Pn,Tn){var An=Zr(bn[wn],bn,gn);if(An.type!=="throw"){var Dn=An.arg,Mn=Dn.value;return Mn&&Fe(Mn)=="object"&&zr.call(Mn,"__await")?_n.resolve(Mn.__await).then(function(Ln){$n("next",Ln,Pn,Tn)},function(Ln){$n("throw",Ln,Pn,Tn)}):_n.resolve(Mn).then(function(Ln){Dn.value=Ln,Pn(Dn)},function(Ln){return $n("throw",Ln,Pn,Tn)})}Tn(An.arg)}var yn;Vr(this,"_invoke",{value:function(gn,Pn){function Tn(){return new _n(function(An,Dn){$n(gn,Pn,An,Dn)})}return yn=yn?yn.then(Tn,Tn):Tn()}})}function cn(bn,_n,$n){var yn="suspendedStart";return function(wn,gn){if(yn==="executing")throw new Error("Generator is already running");if(yn==="completed"){if(wn==="throw")throw gn;return vn()}for($n.method=wn,$n.arg=gn;;){var Pn=$n.delegate;if(Pn){var Tn=fn(Pn,$n);if(Tn){if(Tn===tn)continue;return Tn}}if($n.method==="next")$n.sent=$n._sent=$n.arg;else if($n.method==="throw"){if(yn==="suspendedStart")throw yn="completed",$n.arg;$n.dispatchException($n.arg)}else $n.method==="return"&&$n.abrupt("return",$n.arg);yn="executing";var An=Zr(bn,_n,$n);if(An.type==="normal"){if(yn=$n.done?"completed":"suspendedYield",An.arg===tn)continue;return{value:An.arg,done:$n.done}}An.type==="throw"&&(yn="completed",$n.method="throw",$n.arg=An.arg)}}}function fn(bn,_n){var $n=_n.method,yn=bn.iterator[$n];if(yn===void 0)return _n.delegate=null,$n==="throw"&&bn.iterator.return&&(_n.method="return",_n.arg=void 0,fn(bn,_n),_n.method==="throw")||$n!=="return"&&(_n.method="throw",_n.arg=new TypeError("The iterator does not provide a '"+$n+"' method")),tn;var wn=Zr(yn,bn.iterator,_n.arg);if(wn.type==="throw")return _n.method="throw",_n.arg=wn.arg,_n.delegate=null,tn;var gn=wn.arg;return gn?gn.done?(_n[bn.resultName]=gn.value,_n.next=bn.nextLoc,_n.method!=="return"&&(_n.method="next",_n.arg=void 0),_n.delegate=null,tn):gn:(_n.method="throw",_n.arg=new TypeError("iterator result is not an object"),_n.delegate=null,tn)}function pn(bn){var _n={tryLoc:bn[0]};1 in bn&&(_n.catchLoc=bn[1]),2 in bn&&(_n.finallyLoc=bn[2],_n.afterLoc=bn[3]),this.tryEntries.push(_n)}function hn(bn){var _n=bn.completion||{};_n.type="normal",delete _n.arg,bn.completion=_n}function mn(bn){this.tryEntries=[{tryLoc:"root"}],bn.forEach(pn,this),this.reset(!0)}function Sn(bn){if(bn){var _n=bn[Kr];if(_n)return _n.call(bn);if(typeof bn.next=="function")return bn;if(!isNaN(bn.length)){var $n=-1,yn=function wn(){for(;++$n<bn.length;)if(zr.call(bn,$n))return wn.value=bn[$n],wn.done=!1,wn;return wn.value=void 0,wn.done=!0,wn};return yn.next=yn}}return{next:vn}}function vn(){return{value:void 0,done:!0}}return rn.prototype=nn,Vr(sn,"constructor",{value:nn,configurable:!0}),Vr(nn,"constructor",{value:rn,configurable:!0}),rn.displayName=Qr(nn,Yr,"GeneratorFunction"),Fr.isGeneratorFunction=function(bn){var _n=typeof bn=="function"&&bn.constructor;return!!_n&&(_n===rn||(_n.displayName||_n.name)==="GeneratorFunction")},Fr.mark=function(bn){return Object.setPrototypeOf?Object.setPrototypeOf(bn,nn):(bn.__proto__=nn,Qr(bn,Yr,"GeneratorFunction")),bn.prototype=Object.create(sn),bn},Fr.awrap=function(bn){return{__await:bn}},dn(ln.prototype),Qr(ln.prototype,Gr,function(){return this}),Fr.AsyncIterator=ln,Fr.async=function(bn,_n,$n,yn,wn){wn===void 0&&(wn=Promise);var gn=new ln(Jr(bn,_n,$n,yn),wn);return Fr.isGeneratorFunction(_n)?gn:gn.next().then(function(Pn){return Pn.done?Pn.value:gn.next()})},dn(sn),Qr(sn,Yr,"Generator"),Qr(sn,Kr,function(){return this}),Qr(sn,"toString",function(){return"[object Generator]"}),Fr.keys=function(bn){var _n=Object(bn),$n=[];for(var yn in _n)$n.push(yn);return $n.reverse(),function wn(){for(;$n.length;){var gn=$n.pop();if(gn in _n)return wn.value=gn,wn.done=!1,wn}return wn.done=!0,wn}},Fr.values=Sn,mn.prototype={constructor:mn,reset:function(_n){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(hn),!_n)for(var $n in this)$n.charAt(0)==="t"&&zr.call(this,$n)&&!isNaN(+$n.slice(1))&&(this[$n]=void 0)},stop:function(){this.done=!0;var _n=this.tryEntries[0].completion;if(_n.type==="throw")throw _n.arg;return this.rval},dispatchException:function(_n){if(this.done)throw _n;var $n=this;function yn(Dn,Mn){return Pn.type="throw",Pn.arg=_n,$n.next=Dn,Mn&&($n.method="next",$n.arg=void 0),!!Mn}for(var wn=this.tryEntries.length-1;wn>=0;--wn){var gn=this.tryEntries[wn],Pn=gn.completion;if(gn.tryLoc==="root")return yn("end");if(gn.tryLoc<=this.prev){var Tn=zr.call(gn,"catchLoc"),An=zr.call(gn,"finallyLoc");if(Tn&&An){if(this.prev<gn.catchLoc)return yn(gn.catchLoc,!0);if(this.prev<gn.finallyLoc)return yn(gn.finallyLoc)}else if(Tn){if(this.prev<gn.catchLoc)return yn(gn.catchLoc,!0)}else{if(!An)throw new Error("try statement without catch or finally");if(this.prev<gn.finallyLoc)return yn(gn.finallyLoc)}}}},abrupt:function(_n,$n){for(var yn=this.tryEntries.length-1;yn>=0;--yn){var wn=this.tryEntries[yn];if(wn.tryLoc<=this.prev&&zr.call(wn,"finallyLoc")&&this.prev<wn.finallyLoc){var gn=wn;break}}gn&&(_n==="break"||_n==="continue")&&gn.tryLoc<=$n&&$n<=gn.finallyLoc&&(gn=null);var Pn=gn?gn.completion:{};return Pn.type=_n,Pn.arg=$n,gn?(this.method="next",this.next=gn.finallyLoc,tn):this.complete(Pn)},complete:function(_n,$n){if(_n.type==="throw")throw _n.arg;return _n.type==="break"||_n.type==="continue"?this.next=_n.arg:_n.type==="return"?(this.rval=this.arg=_n.arg,this.method="return",this.next="end"):_n.type==="normal"&&$n&&(this.next=$n),tn},finish:function(_n){for(var $n=this.tryEntries.length-1;$n>=0;--$n){var yn=this.tryEntries[$n];if(yn.finallyLoc===_n)return this.complete(yn.completion,yn.afterLoc),hn(yn),tn}},catch:function(_n){for(var $n=this.tryEntries.length-1;$n>=0;--$n){var yn=this.tryEntries[$n];if(yn.tryLoc===_n){var wn=yn.completion;if(wn.type==="throw"){var gn=wn.arg;hn(yn)}return gn}}throw new Error("illegal catch attempt")},delegateYield:function(_n,$n,yn){return this.delegate={iterator:Sn(_n),resultName:$n,nextLoc:yn},this.method==="next"&&(this.arg=void 0),tn}},Fr}_r.exports=$r,_r.exports.__esModule=!0,_r.exports.default=_r.exports})(regeneratorRuntime$1);var runtime=regeneratorRuntime$1.exports(),regenerator=runtime;try{regeneratorRuntime=runtime}catch(_r){typeof globalThis=="object"?globalThis.regeneratorRuntime=runtime:Function("r","regeneratorRuntime = r")(runtime)}var asyncToGenerator={exports:{}};(function(_r){function Fe(Fr,jr,zr,Vr,Wr,Kr,Gr){try{var Yr=Fr[Kr](Gr),Qr=Yr.value}catch(Jr){zr(Jr);return}Yr.done?jr(Qr):Promise.resolve(Qr).then(Vr,Wr)}function $r(Fr){return function(){var jr=this,zr=arguments;return new Promise(function(Vr,Wr){var Kr=Fr.apply(jr,zr);function Gr(Qr){Fe(Kr,Vr,Wr,Gr,Yr,"next",Qr)}function Yr(Qr){Fe(Kr,Vr,Wr,Gr,Yr,"throw",Qr)}Gr(void 0)})}}_r.exports=$r,_r.exports.__esModule=!0,_r.exports.default=_r.exports})(asyncToGenerator);var classCallCheck={exports:{}};(function(_r){function Fe($r,Fr){if(!($r instanceof Fr))throw new TypeError("Cannot call a class as a function")}_r.exports=Fe,_r.exports.__esModule=!0,_r.exports.default=_r.exports})(classCallCheck);var createClass={exports:{}},toPropertyKey={exports:{}},toPrimitive={exports:{}};(function(_r){var Fe=_typeof$z.exports.default;function $r(Fr,jr){if(Fe(Fr)!=="object"||Fr===null)return Fr;var zr=Fr[Symbol.toPrimitive];if(zr!==void 0){var Vr=zr.call(Fr,jr||"default");if(Fe(Vr)!=="object")return Vr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(jr==="string"?String:Number)(Fr)}_r.exports=$r,_r.exports.__esModule=!0,_r.exports.default=_r.exports})(toPrimitive);(function(_r){var Fe=_typeof$z.exports.default,$r=toPrimitive.exports;function Fr(jr){var zr=$r(jr,"string");return Fe(zr)==="symbol"?zr:String(zr)}_r.exports=Fr,_r.exports.__esModule=!0,_r.exports.default=_r.exports})(toPropertyKey);(function(_r){var Fe=toPropertyKey.exports;function $r(jr,zr){for(var Vr=0;Vr<zr.length;Vr++){var Wr=zr[Vr];Wr.enumerable=Wr.enumerable||!1,Wr.configurable=!0,"value"in Wr&&(Wr.writable=!0),Object.defineProperty(jr,Fe(Wr.key),Wr)}}function Fr(jr,zr,Vr){return zr&&$r(jr.prototype,zr),Vr&&$r(jr,Vr),Object.defineProperty(jr,"prototype",{writable:!1}),jr}_r.exports=Fr,_r.exports.__esModule=!0,_r.exports.default=_r.exports})(createClass);var Configuration$3={},_interopRequireDefault$3=interopRequireDefault.exports;Object.defineProperty(Configuration$3,"__esModule",{value:!0});Configuration$3.Configuration=void 0;var _classCallCheck2$3=_interopRequireDefault$3(classCallCheck.exports),_createClass2$3=_interopRequireDefault$3(createClass.exports),Configuration$2=function(){function _r(){var Fe,$r,Fr,jr,zr,Vr,Wr,Kr,Gr,Yr,Qr,Jr,Zr,tn=this,en=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,_classCallCheck2$3.default)(this,_r),this.server=en.server||{nodes:[{host:"localhost",port:"8108",path:"",protocol:"http"}]},this.server.cacheSearchResultsForSeconds=(Fe=this.server.cacheSearchResultsForSeconds)!==null&&Fe!==void 0?Fe:2*60,this.additionalSearchParameters=($r=en.additionalSearchParameters)!==null&&$r!==void 0?$r:{},this.additionalSearchParameters.query_by=(Fr=(jr=this.additionalSearchParameters.queryBy)!==null&&jr!==void 0?jr:this.additionalSearchParameters.query_by)!==null&&Fr!==void 0?Fr:"",this.additionalSearchParameters.preset=(zr=(Vr=this.additionalSearchParameters.preset)!==null&&Vr!==void 0?Vr:this.additionalSearchParameters.preset)!==null&&zr!==void 0?zr:"",this.additionalSearchParameters.sort_by=(Wr=(Kr=this.additionalSearchParameters.sortBy)!==null&&Kr!==void 0?Kr:this.additionalSearchParameters.sort_by)!==null&&Wr!==void 0?Wr:"",this.additionalSearchParameters.highlight_full_fields=(Gr=(Yr=this.additionalSearchParameters.highlightFullFields)!==null&&Yr!==void 0?Yr:this.additionalSearchParameters.highlight_full_fields)!==null&&Gr!==void 0?Gr:this.additionalSearchParameters.query_by,this.geoLocationField=(Qr=en.geoLocationField)!==null&&Qr!==void 0?Qr:"_geoloc",this.facetableFieldsWithSpecialCharacters=(Jr=en.facetableFieldsWithSpecialCharacters)!==null&&Jr!==void 0?Jr:[],this.collectionSpecificSearchParameters=(Zr=en.collectionSpecificSearchParameters)!==null&&Zr!==void 0?Zr:{},Object.keys(this.collectionSpecificSearchParameters).forEach(function(rn){var nn,on,un,an,sn,dn,ln=tn.collectionSpecificSearchParameters[rn];ln.query_by=(nn=ln.queryBy)!==null&&nn!==void 0?nn:ln.query_by,ln.preset=(on=ln.preset)!==null&&on!==void 0?on:ln.preset,ln.sort_by=(un=ln.sortBy)!==null&&un!==void 0?un:ln.sort_by,ln.highlight_full_fields=(an=(sn=(dn=ln.highlightFullFields)!==null&&dn!==void 0?dn:ln.highlight_full_fields)!==null&&sn!==void 0?sn:tn.additionalSearchParameters.highlight_full_fields)!==null&&an!==void 0?an:ln.query_by,Object.keys(ln).forEach(function(cn){return ln[cn]===void 0?delete ln[cn]:{}})}),this.renderingContent=en.renderingContent}return(0,_createClass2$3.default)(_r,[{key:"validate",value:function(){if((this.additionalSearchParameters.queryBy||Object.values(this.collectionSpecificSearchParameters).some(function($r){return $r.queryBy}))&&console.warn("[typesense-instantsearch-adapter] Please use snake_cased versions of parameters in additionalSearchParameters instead of camelCased parameters. For example: Use query_by instead of queryBy. camelCased parameters will be deprecated in a future version. We're making this change so that parameter names are identical to the ones sent to Typesense (which are all snake_cased), and to also keep the types for these parameters in sync with the types defined in typesense-js."),this.additionalSearchParameters.query_by.length===0&&this.additionalSearchParameters.preset.length===0&&(Object.keys(this.collectionSpecificSearchParameters).length===0||Object.values(this.collectionSpecificSearchParameters).some(function($r){return($r.query_by||"").length===0&&($r.preset||"").length===0})))throw new Error("[typesense-instantsearch-adapter] Missing parameter: One of additionalSearchParameters.query_by or additionalSearchParameters.preset needs to be set, or all collectionSpecificSearchParameters need to have either .query_by or .preset set.")}}]),_r}();Configuration$3.Configuration=Configuration$2;var Typesense={},Client$1={},Configuration$1={},loglevel={exports:{}};(function(_r){(function(Fe,$r){_r.exports?_r.exports=$r():Fe.log=$r()})(commonjsGlobal,function(){var Fe=function(){},$r="undefined",Fr=typeof window!==$r&&typeof window.navigator!==$r&&/Trident\/|MSIE /.test(window.navigator.userAgent),jr=["trace","debug","info","warn","error"];function zr(en,rn){var nn=en[rn];if(typeof nn.bind=="function")return nn.bind(en);try{return Function.prototype.bind.call(nn,en)}catch{return function(){return Function.prototype.apply.apply(nn,[en,arguments])}}}function Vr(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function Wr(en){return en==="debug"&&(en="log"),typeof console===$r?!1:en==="trace"&&Fr?Vr:console[en]!==void 0?zr(console,en):console.log!==void 0?zr(console,"log"):Fe}function Kr(en,rn){for(var nn=0;nn<jr.length;nn++){var on=jr[nn];this[on]=nn<en?Fe:this.methodFactory(on,en,rn)}this.log=this.debug}function Gr(en,rn,nn){return function(){typeof console!==$r&&(Kr.call(this,rn,nn),this[en].apply(this,arguments))}}function Yr(en,rn,nn){return Wr(en)||Gr.apply(this,arguments)}function Qr(en,rn,nn){var on=this,un;rn=rn==null?"WARN":rn;var an="loglevel";typeof en=="string"?an+=":"+en:typeof en=="symbol"&&(an=void 0);function sn(fn){var pn=(jr[fn]||"silent").toUpperCase();if(!(typeof window===$r||!an)){try{window.localStorage[an]=pn;return}catch{}try{window.document.cookie=encodeURIComponent(an)+"="+pn+";"}catch{}}}function dn(){var fn;if(!(typeof window===$r||!an)){try{fn=window.localStorage[an]}catch{}if(typeof fn===$r)try{var pn=window.document.cookie,hn=pn.indexOf(encodeURIComponent(an)+"=");hn!==-1&&(fn=/^([^;]+)/.exec(pn.slice(hn))[1])}catch{}return on.levels[fn]===void 0&&(fn=void 0),fn}}function ln(){if(!(typeof window===$r||!an)){try{window.localStorage.removeItem(an);return}catch{}try{window.document.cookie=encodeURIComponent(an)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}on.name=en,on.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},on.methodFactory=nn||Yr,on.getLevel=function(){return un},on.setLevel=function(fn,pn){if(typeof fn=="string"&&on.levels[fn.toUpperCase()]!==void 0&&(fn=on.levels[fn.toUpperCase()]),typeof fn=="number"&&fn>=0&&fn<=on.levels.SILENT){if(un=fn,pn!==!1&&sn(fn),Kr.call(on,fn,en),typeof console===$r&&fn<on.levels.SILENT)return"No console available for logging"}else throw"log.setLevel() called with invalid level: "+fn},on.setDefaultLevel=function(fn){rn=fn,dn()||on.setLevel(fn,!1)},on.resetLevel=function(){on.setLevel(rn,!1),ln()},on.enableAll=function(fn){on.setLevel(on.levels.TRACE,fn)},on.disableAll=function(fn){on.setLevel(on.levels.SILENT,fn)};var cn=dn();cn==null&&(cn=rn),on.setLevel(cn,!1)}var Jr=new Qr,Zr={};Jr.getLogger=function(rn){if(typeof rn!="symbol"&&typeof rn!="string"||rn==="")throw new TypeError("You must supply a name when creating a logger.");var nn=Zr[rn];return nn||(nn=Zr[rn]=new Qr(rn,Jr.getLevel(),Jr.methodFactory)),nn};var tn=typeof window!==$r?window.log:void 0;return Jr.noConflict=function(){return typeof window!==$r&&window.log===Jr&&(window.log=tn),Jr},Jr.getLoggers=function(){return Zr},Jr.default=Jr,Jr})})(loglevel);var Errors$1={},HTTPError$1={},TypesenseError$1={},__extends$a=commonjsGlobal&&commonjsGlobal.__extends||function(){var _r=function(Fe,$r){return _r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Fr,jr){Fr.__proto__=jr}||function(Fr,jr){for(var zr in jr)Object.prototype.hasOwnProperty.call(jr,zr)&&(Fr[zr]=jr[zr])},_r(Fe,$r)};return function(Fe,$r){if(typeof $r!="function"&&$r!==null)throw new TypeError("Class extends value "+String($r)+" is not a constructor or null");_r(Fe,$r);function Fr(){this.constructor=Fe}Fe.prototype=$r===null?Object.create($r):(Fr.prototype=$r.prototype,new Fr)}}();Object.defineProperty(TypesenseError$1,"__esModule",{value:!0});var TypesenseError=function(_r){__extends$a(Fe,_r);function Fe($r){var Fr=this.constructor,jr=_r.call(this,$r)||this;return jr.name=Fr.name,Object.setPrototypeOf(jr,Fr.prototype),jr}return Fe}(Error);TypesenseError$1.default=TypesenseError;var __extends$9=commonjsGlobal&&commonjsGlobal.__extends||function(){var _r=function(Fe,$r){return _r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Fr,jr){Fr.__proto__=jr}||function(Fr,jr){for(var zr in jr)Object.prototype.hasOwnProperty.call(jr,zr)&&(Fr[zr]=jr[zr])},_r(Fe,$r)};return function(Fe,$r){if(typeof $r!="function"&&$r!==null)throw new TypeError("Class extends value "+String($r)+" is not a constructor or null");_r(Fe,$r);function Fr(){this.constructor=Fe}Fe.prototype=$r===null?Object.create($r):(Fr.prototype=$r.prototype,new Fr)}}(),__importDefault$o=commonjsGlobal&&commonjsGlobal.__importDefault||function(_r){return _r&&_r.__esModule?_r:{default:_r}};Object.defineProperty(HTTPError$1,"__esModule",{value:!0});var TypesenseError_1$a=__importDefault$o(TypesenseError$1),HTTPError=function(_r){__extends$9(Fe,_r);function Fe(){return _r!==null&&_r.apply(this,arguments)||this}return Fe}(TypesenseError_1$a.default);HTTPError$1.default=HTTPError;var MissingConfigurationError$1={},__extends$8=commonjsGlobal&&commonjsGlobal.__extends||function(){var _r=function(Fe,$r){return _r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Fr,jr){Fr.__proto__=jr}||function(Fr,jr){for(var zr in jr)Object.prototype.hasOwnProperty.call(jr,zr)&&(Fr[zr]=jr[zr])},_r(Fe,$r)};return function(Fe,$r){if(typeof $r!="function"&&$r!==null)throw new TypeError("Class extends value "+String($r)+" is not a constructor or null");_r(Fe,$r);function Fr(){this.constructor=Fe}Fe.prototype=$r===null?Object.create($r):(Fr.prototype=$r.prototype,new Fr)}}(),__importDefault$n=commonjsGlobal&&commonjsGlobal.__importDefault||function(_r){return _r&&_r.__esModule?_r:{default:_r}};Object.defineProperty(MissingConfigurationError$1,"__esModule",{value:!0});var TypesenseError_1$9=__importDefault$n(TypesenseError$1),MissingConfigurationError=function(_r){__extends$8(Fe,_r);function Fe(){return _r!==null&&_r.apply(this,arguments)||this}return Fe}(TypesenseError_1$9.default);MissingConfigurationError$1.default=MissingConfigurationError;var ObjectAlreadyExists$1={},__extends$7=commonjsGlobal&&commonjsGlobal.__extends||function(){var _r=function(Fe,$r){return _r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Fr,jr){Fr.__proto__=jr}||function(Fr,jr){for(var zr in jr)Object.prototype.hasOwnProperty.call(jr,zr)&&(Fr[zr]=jr[zr])},_r(Fe,$r)};return function(Fe,$r){if(typeof $r!="function"&&$r!==null)throw new TypeError("Class extends value "+String($r)+" is not a constructor or null");_r(Fe,$r);function Fr(){this.constructor=Fe}Fe.prototype=$r===null?Object.create($r):(Fr.prototype=$r.prototype,new Fr)}}(),__importDefault$m=commonjsGlobal&&commonjsGlobal.__importDefault||function(_r){return _r&&_r.__esModule?_r:{default:_r}};Object.defineProperty(ObjectAlreadyExists$1,"__esModule",{value:!0});var TypesenseError_1$8=__importDefault$m(TypesenseError$1),ObjectAlreadyExists=function(_r){__extends$7(Fe,_r);function Fe(){return _r!==null&&_r.apply(this,arguments)||this}return Fe}(TypesenseError_1$8.default);ObjectAlreadyExists$1.default=ObjectAlreadyExists;var ObjectNotFound$1={},__extends$6=commonjsGlobal&&commonjsGlobal.__extends||function(){var _r=function(Fe,$r){return _r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Fr,jr){Fr.__proto__=jr}||function(Fr,jr){for(var zr in jr)Object.prototype.hasOwnProperty.call(jr,zr)&&(Fr[zr]=jr[zr])},_r(Fe,$r)};return function(Fe,$r){if(typeof $r!="function"&&$r!==null)throw new TypeError("Class extends value "+String($r)+" is not a constructor or null");_r(Fe,$r);function Fr(){this.constructor=Fe}Fe.prototype=$r===null?Object.create($r):(Fr.prototype=$r.prototype,new Fr)}}(),__importDefault$l=commonjsGlobal&&commonjsGlobal.__importDefault||function(_r){return _r&&_r.__esModule?_r:{default:_r}};Object.defineProperty(ObjectNotFound$1,"__esModule",{value:!0});var TypesenseError_1$7=__importDefault$l(TypesenseError$1),ObjectNotFound=function(_r){__extends$6(Fe,_r);function Fe(){return _r!==null&&_r.apply(this,arguments)||this}return Fe}(TypesenseError_1$7.default);ObjectNotFound$1.default=ObjectNotFound;var ObjectUnprocessable$1={},__extends$5=commonjsGlobal&&commonjsGlobal.__extends||function(){var _r=function(Fe,$r){return _r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Fr,jr){Fr.__proto__=jr}||function(Fr,jr){for(var zr in jr)Object.prototype.hasOwnProperty.call(jr,zr)&&(Fr[zr]=jr[zr])},_r(Fe,$r)};return function(Fe,$r){if(typeof $r!="function"&&$r!==null)throw new TypeError("Class extends value "+String($r)+" is not a constructor or null");_r(Fe,$r);function Fr(){this.constructor=Fe}Fe.prototype=$r===null?Object.create($r):(Fr.prototype=$r.prototype,new Fr)}}(),__importDefault$k=commonjsGlobal&&commonjsGlobal.__importDefault||function(_r){return _r&&_r.__esModule?_r:{default:_r}};Object.defineProperty(ObjectUnprocessable$1,"__esModule",{value:!0});var TypesenseError_1$6=__importDefault$k(TypesenseError$1),ObjectUnprocessable=function(_r){__extends$5(Fe,_r);function Fe(){return _r!==null&&_r.apply(this,arguments)||this}return Fe}(TypesenseError_1$6.default);ObjectUnprocessable$1.default=ObjectUnprocessable;var RequestMalformed$1={},__extends$4=commonjsGlobal&&commonjsGlobal.__extends||function(){var _r=function(Fe,$r){return _r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Fr,jr){Fr.__proto__=jr}||function(Fr,jr){for(var zr in jr)Object.prototype.hasOwnProperty.call(jr,zr)&&(Fr[zr]=jr[zr])},_r(Fe,$r)};return function(Fe,$r){if(typeof $r!="function"&&$r!==null)throw new TypeError("Class extends value "+String($r)+" is not a constructor or null");_r(Fe,$r);function Fr(){this.constructor=Fe}Fe.prototype=$r===null?Object.create($r):(Fr.prototype=$r.prototype,new Fr)}}(),__importDefault$j=commonjsGlobal&&commonjsGlobal.__importDefault||function(_r){return _r&&_r.__esModule?_r:{default:_r}};Object.defineProperty(RequestMalformed$1,"__esModule",{value:!0});var TypesenseError_1$5=__importDefault$j(TypesenseError$1),RequestMalformed=function(_r){__extends$4(Fe,_r);function Fe(){return _r!==null&&_r.apply(this,arguments)||this}return Fe}(TypesenseError_1$5.default);RequestMalformed$1.default=RequestMalformed;var RequestUnauthorized$1={},__extends$3=commonjsGlobal&&commonjsGlobal.__extends||function(){var _r=function(Fe,$r){return _r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Fr,jr){Fr.__proto__=jr}||function(Fr,jr){for(var zr in jr)Object.prototype.hasOwnProperty.call(jr,zr)&&(Fr[zr]=jr[zr])},_r(Fe,$r)};return function(Fe,$r){if(typeof $r!="function"&&$r!==null)throw new TypeError("Class extends value "+String($r)+" is not a constructor or null");_r(Fe,$r);function Fr(){this.constructor=Fe}Fe.prototype=$r===null?Object.create($r):(Fr.prototype=$r.prototype,new Fr)}}(),__importDefault$i=commonjsGlobal&&commonjsGlobal.__importDefault||function(_r){return _r&&_r.__esModule?_r:{default:_r}};Object.defineProperty(RequestUnauthorized$1,"__esModule",{value:!0});var TypesenseError_1$4=__importDefault$i(TypesenseError$1),RequestUnauthorized=function(_r){__extends$3(Fe,_r);function Fe(){return _r!==null&&_r.apply(this,arguments)||this}return Fe}(TypesenseError_1$4.default);RequestUnauthorized$1.default=RequestUnauthorized;var ServerError$1={},__extends$2=commonjsGlobal&&commonjsGlobal.__extends||function(){var _r=function(Fe,$r){return _r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Fr,jr){Fr.__proto__=jr}||function(Fr,jr){for(var zr in jr)Object.prototype.hasOwnProperty.call(jr,zr)&&(Fr[zr]=jr[zr])},_r(Fe,$r)};return function(Fe,$r){if(typeof $r!="function"&&$r!==null)throw new TypeError("Class extends value "+String($r)+" is not a constructor or null");_r(Fe,$r);function Fr(){this.constructor=Fe}Fe.prototype=$r===null?Object.create($r):(Fr.prototype=$r.prototype,new Fr)}}(),__importDefault$h=commonjsGlobal&&commonjsGlobal.__importDefault||function(_r){return _r&&_r.__esModule?_r:{default:_r}};Object.defineProperty(ServerError$1,"__esModule",{value:!0});var TypesenseError_1$3=__importDefault$h(TypesenseError$1),ServerError=function(_r){__extends$2(Fe,_r);function Fe(){return _r!==null&&_r.apply(this,arguments)||this}return Fe}(TypesenseError_1$3.default);ServerError$1.default=ServerError;var ImportError$1={},__extends$1=commonjsGlobal&&commonjsGlobal.__extends||function(){var _r=function(Fe,$r){return _r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Fr,jr){Fr.__proto__=jr}||function(Fr,jr){for(var zr in jr)Object.prototype.hasOwnProperty.call(jr,zr)&&(Fr[zr]=jr[zr])},_r(Fe,$r)};return function(Fe,$r){if(typeof $r!="function"&&$r!==null)throw new TypeError("Class extends value "+String($r)+" is not a constructor or null");_r(Fe,$r);function Fr(){this.constructor=Fe}Fe.prototype=$r===null?Object.create($r):(Fr.prototype=$r.prototype,new Fr)}}(),__importDefault$g=commonjsGlobal&&commonjsGlobal.__importDefault||function(_r){return _r&&_r.__esModule?_r:{default:_r}};Object.defineProperty(ImportError$1,"__esModule",{value:!0});var TypesenseError_1$2=__importDefault$g(TypesenseError$1),ImportError=function(_r){__extends$1(Fe,_r);function Fe($r,Fr){var jr=_r.call(this,$r)||this;return jr.importResults=Fr,jr}return Fe}(TypesenseError_1$2.default);ImportError$1.default=ImportError;var __importDefault$f=commonjsGlobal&&commonjsGlobal.__importDefault||function(_r){return _r&&_r.__esModule?_r:{default:_r}};Object.defineProperty(Errors$1,"__esModule",{value:!0});Errors$1.ImportError=Errors$1.TypesenseError=Errors$1.ServerError=Errors$1.RequestUnauthorized=Errors$1.RequestMalformed=Errors$1.ObjectUnprocessable=Errors$1.ObjectNotFound=Errors$1.ObjectAlreadyExists=Errors$1.MissingConfigurationError=Errors$1.HTTPError=void 0;var HTTPError_1=__importDefault$f(HTTPError$1);Errors$1.HTTPError=HTTPError_1.default;var MissingConfigurationError_1=__importDefault$f(MissingConfigurationError$1);Errors$1.MissingConfigurationError=MissingConfigurationError_1.default;var ObjectAlreadyExists_1=__importDefault$f(ObjectAlreadyExists$1);Errors$1.ObjectAlreadyExists=ObjectAlreadyExists_1.default;var ObjectNotFound_1=__importDefault$f(ObjectNotFound$1);Errors$1.ObjectNotFound=ObjectNotFound_1.default;var ObjectUnprocessable_1=__importDefault$f(ObjectUnprocessable$1);Errors$1.ObjectUnprocessable=ObjectUnprocessable_1.default;var RequestMalformed_1=__importDefault$f(RequestMalformed$1);Errors$1.RequestMalformed=RequestMalformed_1.default;var RequestUnauthorized_1=__importDefault$f(RequestUnauthorized$1);Errors$1.RequestUnauthorized=RequestUnauthorized_1.default;var ServerError_1=__importDefault$f(ServerError$1);Errors$1.ServerError=ServerError_1.default;var ImportError_1=__importDefault$f(ImportError$1);Errors$1.ImportError=ImportError_1.default;var TypesenseError_1$1=__importDefault$f(TypesenseError$1);Errors$1.TypesenseError=TypesenseError_1$1.default;var __assign=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign=Object.assign||function(_r){for(var Fe,$r=1,Fr=arguments.length;$r<Fr;$r++){Fe=arguments[$r];for(var jr in Fe)Object.prototype.hasOwnProperty.call(Fe,jr)&&(_r[jr]=Fe[jr])}return _r},__assign.apply(this,arguments)},__createBinding$1=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_r,Fe,$r,Fr){Fr===void 0&&(Fr=$r);var jr=Object.getOwnPropertyDescriptor(Fe,$r);(!jr||("get"in jr?!Fe.__esModule:jr.writable||jr.configurable))&&(jr={enumerable:!0,get:function(){return Fe[$r]}}),Object.defineProperty(_r,Fr,jr)}:function(_r,Fe,$r,Fr){Fr===void 0&&(Fr=$r),_r[Fr]=Fe[$r]}),__setModuleDefault$1=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_r,Fe){Object.defineProperty(_r,"default",{enumerable:!0,value:Fe})}:function(_r,Fe){_r.default=Fe}),__importStar$1=commonjsGlobal&&commonjsGlobal.__importStar||function(_r){if(_r&&_r.__esModule)return _r;var Fe={};if(_r!=null)for(var $r in _r)$r!=="default"&&Object.prototype.hasOwnProperty.call(_r,$r)&&__createBinding$1(Fe,_r,$r);return __setModuleDefault$1(Fe,_r),Fe};Object.defineProperty(Configuration$1,"__esModule",{value:!0});var logger=__importStar$1(loglevel.exports),Errors_1$3=Errors$1,Configuration=function(){function _r(Fe){var $r=this;this.nodes=Fe.nodes||[],this.nodes=this.nodes.map(function(Fr){return $r.setDefaultPathInNode(Fr)}).map(function(Fr){return $r.setDefaultPortInNode(Fr)}).map(function(Fr){return __assign({},Fr)}),Fe.randomizeNodes==null&&(Fe.randomizeNodes=!0),Fe.randomizeNodes===!0&&this.shuffleArray(this.nodes),this.nearestNode=Fe.nearestNode,this.nearestNode=this.setDefaultPathInNode(this.nearestNode),this.nearestNode=this.setDefaultPortInNode(this.nearestNode),this.connectionTimeoutSeconds=Fe.connectionTimeoutSeconds||Fe.timeoutSeconds||5,this.healthcheckIntervalSeconds=Fe.healthcheckIntervalSeconds||60,this.numRetries=Fe.numRetries||this.nodes.length+(this.nearestNode==null?0:1)||3,this.retryIntervalSeconds=Fe.retryIntervalSeconds||.1,this.apiKey=Fe.apiKey,this.sendApiKeyAsQueryParam=Fe.sendApiKeyAsQueryParam,this.cacheSearchResultsForSeconds=Fe.cacheSearchResultsForSeconds||0,this.useServerSideSearchCache=Fe.useServerSideSearchCache||!1,this.logger=Fe.logger||logger,this.logLevel=Fe.logLevel||"warn",this.logger.setLevel(this.logLevel),this.additionalHeaders=Fe.additionalHeaders,this.showDeprecationWarnings(Fe),this.validate()}return _r.prototype.validate=function(){if(this.nodes==null||this.nodes.length===0||this.validateNodes())throw new Errors_1$3.MissingConfigurationError("Ensure that nodes[].protocol, nodes[].host and nodes[].port are set");if(this.nearestNode!=null&&this.isNodeMissingAnyParameters(this.nearestNode))throw new Errors_1$3.MissingConfigurationError("Ensure that nearestNodes.protocol, nearestNodes.host and nearestNodes.port are set");if(this.apiKey==null)throw new Errors_1$3.MissingConfigurationError("Ensure that apiKey is set");return!0},_r.prototype.validateNodes=function(){var Fe=this;return this.nodes.some(function($r){return Fe.isNodeMissingAnyParameters($r)})},_r.prototype.isNodeMissingAnyParameters=function(Fe){return!["protocol","host","port","path"].every(function($r){return Fe.hasOwnProperty($r)})&&Fe.url==null},_r.prototype.setDefaultPathInNode=function(Fe){return Fe!=null&&!Fe.hasOwnProperty("path")&&(Fe.path=""),Fe},_r.prototype.setDefaultPortInNode=function(Fe){if(Fe!=null&&!Fe.hasOwnProperty("port")&&Fe.hasOwnProperty("protocol"))switch(Fe.protocol){case"https":Fe.port=443;break;case"http":Fe.port=80;break}return Fe},_r.prototype.showDeprecationWarnings=function(Fe){Fe.timeoutSeconds&&this.logger.warn("Deprecation warning: timeoutSeconds is now renamed to connectionTimeoutSeconds"),Fe.masterNode&&this.logger.warn("Deprecation warning: masterNode is now consolidated to nodes, starting with Typesense Server v0.12"),Fe.readReplicaNodes&&this.logger.warn("Deprecation warning: readReplicaNodes is now consolidated to nodes, starting with Typesense Server v0.12")},_r.prototype.shuffleArray=function(Fe){for(var $r,Fr=Fe.length-1;Fr>0;Fr--){var jr=Math.floor(Math.random()*(Fr+1));$r=[Fe[jr],Fe[Fr]],Fe[Fr]=$r[0],Fe[jr]=$r[1]}},_r}();Configuration$1.default=Configuration;var ApiCall$1={},axios$2={exports:{}},bind$2=function _r(Fe,$r){return function(){for(var jr=new Array(arguments.length),zr=0;zr<jr.length;zr++)jr[zr]=arguments[zr];return Fe.apply($r,jr)}},bind$1=bind$2,toString=Object.prototype.toString;function isArray$1(_r){return Array.isArray(_r)}function isUndefined$2(_r){return typeof _r=="undefined"}function isBuffer(_r){return _r!==null&&!isUndefined$2(_r)&&_r.constructor!==null&&!isUndefined$2(_r.constructor)&&typeof _r.constructor.isBuffer=="function"&&_r.constructor.isBuffer(_r)}function isArrayBuffer(_r){return toString.call(_r)==="[object ArrayBuffer]"}function isFormData(_r){return toString.call(_r)==="[object FormData]"}function isArrayBufferView(_r){var Fe;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?Fe=ArrayBuffer.isView(_r):Fe=_r&&_r.buffer&&isArrayBuffer(_r.buffer),Fe}function isString$1(_r){return typeof _r=="string"}function isNumber$3(_r){return typeof _r=="number"}function isObject$2(_r){return _r!==null&&typeof _r=="object"}function isPlainObject(_r){if(toString.call(_r)!=="[object Object]")return!1;var Fe=Object.getPrototypeOf(_r);return Fe===null||Fe===Object.prototype}function isDate$1(_r){return toString.call(_r)==="[object Date]"}function isFile(_r){return toString.call(_r)==="[object File]"}function isBlob(_r){return toString.call(_r)==="[object Blob]"}function isFunction$2(_r){return toString.call(_r)==="[object Function]"}function isStream(_r){return isObject$2(_r)&&isFunction$2(_r.pipe)}function isURLSearchParams(_r){return toString.call(_r)==="[object URLSearchParams]"}function trim(_r){return _r.trim?_r.trim():_r.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function forEach(_r,Fe){if(!(_r===null||typeof _r=="undefined"))if(typeof _r!="object"&&(_r=[_r]),isArray$1(_r))for(var $r=0,Fr=_r.length;$r<Fr;$r++)Fe.call(null,_r[$r],$r,_r);else for(var jr in _r)Object.prototype.hasOwnProperty.call(_r,jr)&&Fe.call(null,_r[jr],jr,_r)}function merge$6(){var _r={};function Fe(jr,zr){isPlainObject(_r[zr])&&isPlainObject(jr)?_r[zr]=merge$6(_r[zr],jr):isPlainObject(jr)?_r[zr]=merge$6({},jr):isArray$1(jr)?_r[zr]=jr.slice():_r[zr]=jr}for(var $r=0,Fr=arguments.length;$r<Fr;$r++)forEach(arguments[$r],Fe);return _r}function extend(_r,Fe,$r){return forEach(Fe,function(jr,zr){$r&&typeof jr=="function"?_r[zr]=bind$1(jr,$r):_r[zr]=jr}),_r}function stripBOM(_r){return _r.charCodeAt(0)===65279&&(_r=_r.slice(1)),_r}var utils$g={isArray:isArray$1,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString:isString$1,isNumber:isNumber$3,isObject:isObject$2,isPlainObject,isUndefined:isUndefined$2,isDate:isDate$1,isFile,isBlob,isFunction:isFunction$2,isStream,isURLSearchParams,isStandardBrowserEnv,forEach,merge:merge$6,extend,trim,stripBOM},utils$f=utils$g;function encode(_r){return encodeURIComponent(_r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var buildURL$2=function _r(Fe,$r,Fr){if(!$r)return Fe;var jr;if(Fr)jr=Fr($r);else if(utils$f.isURLSearchParams($r))jr=$r.toString();else{var zr=[];utils$f.forEach($r,function(Kr,Gr){Kr===null||typeof Kr=="undefined"||(utils$f.isArray(Kr)?Gr=Gr+"[]":Kr=[Kr],utils$f.forEach(Kr,function(Qr){utils$f.isDate(Qr)?Qr=Qr.toISOString():utils$f.isObject(Qr)&&(Qr=JSON.stringify(Qr)),zr.push(encode(Gr)+"="+encode(Qr))}))}),jr=zr.join("&")}if(jr){var Vr=Fe.indexOf("#");Vr!==-1&&(Fe=Fe.slice(0,Vr)),Fe+=(Fe.indexOf("?")===-1?"?":"&")+jr}return Fe},utils$e=utils$g;function InterceptorManager$1(){this.handlers=[]}InterceptorManager$1.prototype.use=function _r(Fe,$r,Fr){return this.handlers.push({fulfilled:Fe,rejected:$r,synchronous:Fr?Fr.synchronous:!1,runWhen:Fr?Fr.runWhen:null}),this.handlers.length-1};InterceptorManager$1.prototype.eject=function _r(Fe){this.handlers[Fe]&&(this.handlers[Fe]=null)};InterceptorManager$1.prototype.forEach=function _r(Fe){utils$e.forEach(this.handlers,function(Fr){Fr!==null&&Fe(Fr)})};var InterceptorManager_1=InterceptorManager$1,utils$d=utils$g,normalizeHeaderName$1=function _r(Fe,$r){utils$d.forEach(Fe,function(jr,zr){zr!==$r&&zr.toUpperCase()===$r.toUpperCase()&&(Fe[$r]=jr,delete Fe[zr])})},enhanceError$2=function _r(Fe,$r,Fr,jr,zr){return Fe.config=$r,Fr&&(Fe.code=Fr),Fe.request=jr,Fe.response=zr,Fe.isAxiosError=!0,Fe.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},Fe},transitional={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},enhanceError$1=enhanceError$2,createError$2=function _r(Fe,$r,Fr,jr,zr){var Vr=new Error(Fe);return enhanceError$1(Vr,$r,Fr,jr,zr)},createError$1=createError$2,settle$1=function _r(Fe,$r,Fr){var jr=Fr.config.validateStatus;!Fr.status||!jr||jr(Fr.status)?Fe(Fr):$r(createError$1("Request failed with status code "+Fr.status,Fr.config,null,Fr.request,Fr))},utils$c=utils$g,cookies$1=utils$c.isStandardBrowserEnv()?function _r(){return{write:function($r,Fr,jr,zr,Vr,Wr){var Kr=[];Kr.push($r+"="+encodeURIComponent(Fr)),utils$c.isNumber(jr)&&Kr.push("expires="+new Date(jr).toGMTString()),utils$c.isString(zr)&&Kr.push("path="+zr),utils$c.isString(Vr)&&Kr.push("domain="+Vr),Wr===!0&&Kr.push("secure"),document.cookie=Kr.join("; ")},read:function($r){var Fr=document.cookie.match(new RegExp("(^|;\\s*)("+$r+")=([^;]*)"));return Fr?decodeURIComponent(Fr[3]):null},remove:function($r){this.write($r,"",Date.now()-864e5)}}}():function _r(){return{write:function(){},read:function(){return null},remove:function(){}}}(),isAbsoluteURL$1=function _r(Fe){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(Fe)},combineURLs$1=function _r(Fe,$r){return $r?Fe.replace(/\/+$/,"")+"/"+$r.replace(/^\/+/,""):Fe},isAbsoluteURL=isAbsoluteURL$1,combineURLs=combineURLs$1,buildFullPath$1=function _r(Fe,$r){return Fe&&!isAbsoluteURL($r)?combineURLs(Fe,$r):$r},utils$b=utils$g,ignoreDuplicateOf=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],parseHeaders$1=function _r(Fe){var $r={},Fr,jr,zr;return Fe&&utils$b.forEach(Fe.split(`
`),function(Wr){if(zr=Wr.indexOf(":"),Fr=utils$b.trim(Wr.substr(0,zr)).toLowerCase(),jr=utils$b.trim(Wr.substr(zr+1)),Fr){if($r[Fr]&&ignoreDuplicateOf.indexOf(Fr)>=0)return;Fr==="set-cookie"?$r[Fr]=($r[Fr]?$r[Fr]:[]).concat([jr]):$r[Fr]=$r[Fr]?$r[Fr]+", "+jr:jr}}),$r},utils$a=utils$g,isURLSameOrigin$1=utils$a.isStandardBrowserEnv()?function _r(){var Fe=/(msie|trident)/i.test(navigator.userAgent),$r=document.createElement("a"),Fr;function jr(zr){var Vr=zr;return Fe&&($r.setAttribute("href",Vr),Vr=$r.href),$r.setAttribute("href",Vr),{href:$r.href,protocol:$r.protocol?$r.protocol.replace(/:$/,""):"",host:$r.host,search:$r.search?$r.search.replace(/^\?/,""):"",hash:$r.hash?$r.hash.replace(/^#/,""):"",hostname:$r.hostname,port:$r.port,pathname:$r.pathname.charAt(0)==="/"?$r.pathname:"/"+$r.pathname}}return Fr=jr(window.location.href),function(Vr){var Wr=utils$a.isString(Vr)?jr(Vr):Vr;return Wr.protocol===Fr.protocol&&Wr.host===Fr.host}}():function _r(){return function(){return!0}}();function Cancel$3(_r){this.message=_r}Cancel$3.prototype.toString=function _r(){return"Cancel"+(this.message?": "+this.message:"")};Cancel$3.prototype.__CANCEL__=!0;var Cancel_1=Cancel$3,utils$9=utils$g,settle=settle$1,cookies=cookies$1,buildURL$1=buildURL$2,buildFullPath=buildFullPath$1,parseHeaders=parseHeaders$1,isURLSameOrigin=isURLSameOrigin$1,createError=createError$2,transitionalDefaults$1=transitional,Cancel$2=Cancel_1,xhr=function _r(Fe){return new Promise(function(Fr,jr){var zr=Fe.data,Vr=Fe.headers,Wr=Fe.responseType,Kr;function Gr(){Fe.cancelToken&&Fe.cancelToken.unsubscribe(Kr),Fe.signal&&Fe.signal.removeEventListener("abort",Kr)}utils$9.isFormData(zr)&&delete Vr["Content-Type"];var Yr=new XMLHttpRequest;if(Fe.auth){var Qr=Fe.auth.username||"",Jr=Fe.auth.password?unescape(encodeURIComponent(Fe.auth.password)):"";Vr.Authorization="Basic "+btoa(Qr+":"+Jr)}var Zr=buildFullPath(Fe.baseURL,Fe.url);Yr.open(Fe.method.toUpperCase(),buildURL$1(Zr,Fe.params,Fe.paramsSerializer),!0),Yr.timeout=Fe.timeout;function tn(){if(!!Yr){var rn="getAllResponseHeaders"in Yr?parseHeaders(Yr.getAllResponseHeaders()):null,nn=!Wr||Wr==="text"||Wr==="json"?Yr.responseText:Yr.response,on={data:nn,status:Yr.status,statusText:Yr.statusText,headers:rn,config:Fe,request:Yr};settle(function(an){Fr(an),Gr()},function(an){jr(an),Gr()},on),Yr=null}}if("onloadend"in Yr?Yr.onloadend=tn:Yr.onreadystatechange=function(){!Yr||Yr.readyState!==4||Yr.status===0&&!(Yr.responseURL&&Yr.responseURL.indexOf("file:")===0)||setTimeout(tn)},Yr.onabort=function(){!Yr||(jr(createError("Request aborted",Fe,"ECONNABORTED",Yr)),Yr=null)},Yr.onerror=function(){jr(createError("Network Error",Fe,null,Yr)),Yr=null},Yr.ontimeout=function(){var nn=Fe.timeout?"timeout of "+Fe.timeout+"ms exceeded":"timeout exceeded",on=Fe.transitional||transitionalDefaults$1;Fe.timeoutErrorMessage&&(nn=Fe.timeoutErrorMessage),jr(createError(nn,Fe,on.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",Yr)),Yr=null},utils$9.isStandardBrowserEnv()){var en=(Fe.withCredentials||isURLSameOrigin(Zr))&&Fe.xsrfCookieName?cookies.read(Fe.xsrfCookieName):void 0;en&&(Vr[Fe.xsrfHeaderName]=en)}"setRequestHeader"in Yr&&utils$9.forEach(Vr,function(nn,on){typeof zr=="undefined"&&on.toLowerCase()==="content-type"?delete Vr[on]:Yr.setRequestHeader(on,nn)}),utils$9.isUndefined(Fe.withCredentials)||(Yr.withCredentials=!!Fe.withCredentials),Wr&&Wr!=="json"&&(Yr.responseType=Fe.responseType),typeof Fe.onDownloadProgress=="function"&&Yr.addEventListener("progress",Fe.onDownloadProgress),typeof Fe.onUploadProgress=="function"&&Yr.upload&&Yr.upload.addEventListener("progress",Fe.onUploadProgress),(Fe.cancelToken||Fe.signal)&&(Kr=function(rn){!Yr||(jr(!rn||rn&&rn.type?new Cancel$2("canceled"):rn),Yr.abort(),Yr=null)},Fe.cancelToken&&Fe.cancelToken.subscribe(Kr),Fe.signal&&(Fe.signal.aborted?Kr():Fe.signal.addEventListener("abort",Kr))),zr||(zr=null),Yr.send(zr)})},utils$8=utils$g,normalizeHeaderName=normalizeHeaderName$1,enhanceError=enhanceError$2,transitionalDefaults=transitional,DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(_r,Fe){!utils$8.isUndefined(_r)&&utils$8.isUndefined(_r["Content-Type"])&&(_r["Content-Type"]=Fe)}function getDefaultAdapter(){var _r;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(_r=xhr),_r}function stringifySafely(_r,Fe,$r){if(utils$8.isString(_r))try{return(Fe||JSON.parse)(_r),utils$8.trim(_r)}catch(Fr){if(Fr.name!=="SyntaxError")throw Fr}return($r||JSON.stringify)(_r)}var defaults$4={transitional:transitionalDefaults,adapter:getDefaultAdapter(),transformRequest:[function _r(Fe,$r){return normalizeHeaderName($r,"Accept"),normalizeHeaderName($r,"Content-Type"),utils$8.isFormData(Fe)||utils$8.isArrayBuffer(Fe)||utils$8.isBuffer(Fe)||utils$8.isStream(Fe)||utils$8.isFile(Fe)||utils$8.isBlob(Fe)?Fe:utils$8.isArrayBufferView(Fe)?Fe.buffer:utils$8.isURLSearchParams(Fe)?(setContentTypeIfUnset($r,"application/x-www-form-urlencoded;charset=utf-8"),Fe.toString()):utils$8.isObject(Fe)||$r&&$r["Content-Type"]==="application/json"?(setContentTypeIfUnset($r,"application/json"),stringifySafely(Fe)):Fe}],transformResponse:[function _r(Fe){var $r=this.transitional||defaults$4.transitional,Fr=$r&&$r.silentJSONParsing,jr=$r&&$r.forcedJSONParsing,zr=!Fr&&this.responseType==="json";if(zr||jr&&utils$8.isString(Fe)&&Fe.length)try{return JSON.parse(Fe)}catch(Vr){if(zr)throw Vr.name==="SyntaxError"?enhanceError(Vr,this,"E_JSON_PARSE"):Vr}return Fe}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function _r(Fe){return Fe>=200&&Fe<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};utils$8.forEach(["delete","get","head"],function _r(Fe){defaults$4.headers[Fe]={}});utils$8.forEach(["post","put","patch"],function _r(Fe){defaults$4.headers[Fe]=utils$8.merge(DEFAULT_CONTENT_TYPE)});var defaults_1=defaults$4,utils$7=utils$g,defaults$3=defaults_1,transformData$1=function _r(Fe,$r,Fr){var jr=this||defaults$3;return utils$7.forEach(Fr,function(Vr){Fe=Vr.call(jr,Fe,$r)}),Fe},isCancel$1=function _r(Fe){return!!(Fe&&Fe.__CANCEL__)},utils$6=utils$g,transformData=transformData$1,isCancel=isCancel$1,defaults$2=defaults_1,Cancel$1=Cancel_1;function throwIfCancellationRequested(_r){if(_r.cancelToken&&_r.cancelToken.throwIfRequested(),_r.signal&&_r.signal.aborted)throw new Cancel$1("canceled")}var dispatchRequest$1=function _r(Fe){throwIfCancellationRequested(Fe),Fe.headers=Fe.headers||{},Fe.data=transformData.call(Fe,Fe.data,Fe.headers,Fe.transformRequest),Fe.headers=utils$6.merge(Fe.headers.common||{},Fe.headers[Fe.method]||{},Fe.headers),utils$6.forEach(["delete","get","head","post","put","patch","common"],function(jr){delete Fe.headers[jr]});var $r=Fe.adapter||defaults$2.adapter;return $r(Fe).then(function(jr){return throwIfCancellationRequested(Fe),jr.data=transformData.call(Fe,jr.data,jr.headers,Fe.transformResponse),jr},function(jr){return isCancel(jr)||(throwIfCancellationRequested(Fe),jr&&jr.response&&(jr.response.data=transformData.call(Fe,jr.response.data,jr.response.headers,Fe.transformResponse))),Promise.reject(jr)})},utils$5=utils$g,mergeConfig$2=function _r(Fe,$r){$r=$r||{};var Fr={};function jr(Yr,Qr){return utils$5.isPlainObject(Yr)&&utils$5.isPlainObject(Qr)?utils$5.merge(Yr,Qr):utils$5.isPlainObject(Qr)?utils$5.merge({},Qr):utils$5.isArray(Qr)?Qr.slice():Qr}function zr(Yr){if(utils$5.isUndefined($r[Yr])){if(!utils$5.isUndefined(Fe[Yr]))return jr(void 0,Fe[Yr])}else return jr(Fe[Yr],$r[Yr])}function Vr(Yr){if(!utils$5.isUndefined($r[Yr]))return jr(void 0,$r[Yr])}function Wr(Yr){if(utils$5.isUndefined($r[Yr])){if(!utils$5.isUndefined(Fe[Yr]))return jr(void 0,Fe[Yr])}else return jr(void 0,$r[Yr])}function Kr(Yr){if(Yr in $r)return jr(Fe[Yr],$r[Yr]);if(Yr in Fe)return jr(void 0,Fe[Yr])}var Gr={url:Vr,method:Vr,data:Vr,baseURL:Wr,transformRequest:Wr,transformResponse:Wr,paramsSerializer:Wr,timeout:Wr,timeoutMessage:Wr,withCredentials:Wr,adapter:Wr,responseType:Wr,xsrfCookieName:Wr,xsrfHeaderName:Wr,onUploadProgress:Wr,onDownloadProgress:Wr,decompress:Wr,maxContentLength:Wr,maxBodyLength:Wr,transport:Wr,httpAgent:Wr,httpsAgent:Wr,cancelToken:Wr,socketPath:Wr,responseEncoding:Wr,validateStatus:Kr};return utils$5.forEach(Object.keys(Fe).concat(Object.keys($r)),function(Qr){var Jr=Gr[Qr]||zr,Zr=Jr(Qr);utils$5.isUndefined(Zr)&&Jr!==Kr||(Fr[Qr]=Zr)}),Fr},data={version:"0.26.1"},VERSION=data.version,validators$1={};["object","boolean","number","function","string","symbol"].forEach(function(_r,Fe){validators$1[_r]=function(Fr){return typeof Fr===_r||"a"+(Fe<1?"n ":" ")+_r}});var deprecatedWarnings={};validators$1.transitional=function _r(Fe,$r,Fr){function jr(zr,Vr){return"[Axios v"+VERSION+"] Transitional option '"+zr+"'"+Vr+(Fr?". "+Fr:"")}return function(zr,Vr,Wr){if(Fe===!1)throw new Error(jr(Vr," has been removed"+($r?" in "+$r:"")));return $r&&!deprecatedWarnings[Vr]&&(deprecatedWarnings[Vr]=!0,console.warn(jr(Vr," has been deprecated since v"+$r+" and will be removed in the near future"))),Fe?Fe(zr,Vr,Wr):!0}};function assertOptions(_r,Fe,$r){if(typeof _r!="object")throw new TypeError("options must be an object");for(var Fr=Object.keys(_r),jr=Fr.length;jr-- >0;){var zr=Fr[jr],Vr=Fe[zr];if(Vr){var Wr=_r[zr],Kr=Wr===void 0||Vr(Wr,zr,_r);if(Kr!==!0)throw new TypeError("option "+zr+" must be "+Kr);continue}if($r!==!0)throw Error("Unknown option "+zr)}}var validator$1={assertOptions,validators:validators$1},utils$4=utils$g,buildURL=buildURL$2,InterceptorManager=InterceptorManager_1,dispatchRequest=dispatchRequest$1,mergeConfig$1=mergeConfig$2,validator=validator$1,validators=validator.validators;function Axios$1(_r){this.defaults=_r,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}Axios$1.prototype.request=function _r(Fe,$r){typeof Fe=="string"?($r=$r||{},$r.url=Fe):$r=Fe||{},$r=mergeConfig$1(this.defaults,$r),$r.method?$r.method=$r.method.toLowerCase():this.defaults.method?$r.method=this.defaults.method.toLowerCase():$r.method="get";var Fr=$r.transitional;Fr!==void 0&&validator.assertOptions(Fr,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1);var jr=[],zr=!0;this.interceptors.request.forEach(function(Zr){typeof Zr.runWhen=="function"&&Zr.runWhen($r)===!1||(zr=zr&&Zr.synchronous,jr.unshift(Zr.fulfilled,Zr.rejected))});var Vr=[];this.interceptors.response.forEach(function(Zr){Vr.push(Zr.fulfilled,Zr.rejected)});var Wr;if(!zr){var Kr=[dispatchRequest,void 0];for(Array.prototype.unshift.apply(Kr,jr),Kr=Kr.concat(Vr),Wr=Promise.resolve($r);Kr.length;)Wr=Wr.then(Kr.shift(),Kr.shift());return Wr}for(var Gr=$r;jr.length;){var Yr=jr.shift(),Qr=jr.shift();try{Gr=Yr(Gr)}catch(Jr){Qr(Jr);break}}try{Wr=dispatchRequest(Gr)}catch(Jr){return Promise.reject(Jr)}for(;Vr.length;)Wr=Wr.then(Vr.shift(),Vr.shift());return Wr};Axios$1.prototype.getUri=function _r(Fe){return Fe=mergeConfig$1(this.defaults,Fe),buildURL(Fe.url,Fe.params,Fe.paramsSerializer).replace(/^\?/,"")};utils$4.forEach(["delete","get","head","options"],function _r(Fe){Axios$1.prototype[Fe]=function($r,Fr){return this.request(mergeConfig$1(Fr||{},{method:Fe,url:$r,data:(Fr||{}).data}))}});utils$4.forEach(["post","put","patch"],function _r(Fe){Axios$1.prototype[Fe]=function($r,Fr,jr){return this.request(mergeConfig$1(jr||{},{method:Fe,url:$r,data:Fr}))}});var Axios_1=Axios$1,Cancel=Cancel_1;function CancelToken(_r){if(typeof _r!="function")throw new TypeError("executor must be a function.");var Fe;this.promise=new Promise(function(jr){Fe=jr});var $r=this;this.promise.then(function(Fr){if(!!$r._listeners){var jr,zr=$r._listeners.length;for(jr=0;jr<zr;jr++)$r._listeners[jr](Fr);$r._listeners=null}}),this.promise.then=function(Fr){var jr,zr=new Promise(function(Vr){$r.subscribe(Vr),jr=Vr}).then(Fr);return zr.cancel=function(){$r.unsubscribe(jr)},zr},_r(function(jr){$r.reason||($r.reason=new Cancel(jr),Fe($r.reason))})}CancelToken.prototype.throwIfRequested=function _r(){if(this.reason)throw this.reason};CancelToken.prototype.subscribe=function _r(Fe){if(this.reason){Fe(this.reason);return}this._listeners?this._listeners.push(Fe):this._listeners=[Fe]};CancelToken.prototype.unsubscribe=function _r(Fe){if(!!this._listeners){var $r=this._listeners.indexOf(Fe);$r!==-1&&this._listeners.splice($r,1)}};CancelToken.source=function _r(){var Fe,$r=new CancelToken(function(jr){Fe=jr});return{token:$r,cancel:Fe}};var CancelToken_1=CancelToken,spread=function _r(Fe){return function(Fr){return Fe.apply(null,Fr)}},utils$3=utils$g,isAxiosError=function _r(Fe){return utils$3.isObject(Fe)&&Fe.isAxiosError===!0},utils$2=utils$g,bind=bind$2,Axios=Axios_1,mergeConfig=mergeConfig$2,defaults$1=defaults_1;function createInstance(_r){var Fe=new Axios(_r),$r=bind(Axios.prototype.request,Fe);return utils$2.extend($r,Axios.prototype,Fe),utils$2.extend($r,Fe),$r.create=function(jr){return createInstance(mergeConfig(_r,jr))},$r}var axios$1=createInstance(defaults$1);axios$1.Axios=Axios;axios$1.Cancel=Cancel_1;axios$1.CancelToken=CancelToken_1;axios$1.isCancel=isCancel$1;axios$1.VERSION=data.version;axios$1.all=function _r(Fe){return Promise.all(Fe)};axios$1.spread=spread;axios$1.isAxiosError=isAxiosError;axios$2.exports=axios$1;axios$2.exports.default=axios$1;var axios=axios$2.exports,__awaiter$l=commonjsGlobal&&commonjsGlobal.__awaiter||function(_r,Fe,$r,Fr){function jr(zr){return zr instanceof $r?zr:new $r(function(Vr){Vr(zr)})}return new($r||($r=Promise))(function(zr,Vr){function Wr(Yr){try{Gr(Fr.next(Yr))}catch(Qr){Vr(Qr)}}function Kr(Yr){try{Gr(Fr.throw(Yr))}catch(Qr){Vr(Qr)}}function Gr(Yr){Yr.done?zr(Yr.value):jr(Yr.value).then(Wr,Kr)}Gr((Fr=Fr.apply(_r,Fe||[])).next())})},__generator$l=commonjsGlobal&&commonjsGlobal.__generator||function(_r,Fe){var $r={label:0,sent:function(){if(zr[0]&1)throw zr[1];return zr[1]},trys:[],ops:[]},Fr,jr,zr,Vr;return Vr={next:Wr(0),throw:Wr(1),return:Wr(2)},typeof Symbol=="function"&&(Vr[Symbol.iterator]=function(){return this}),Vr;function Wr(Gr){return function(Yr){return Kr([Gr,Yr])}}function Kr(Gr){if(Fr)throw new TypeError("Generator is already executing.");for(;$r;)try{if(Fr=1,jr&&(zr=Gr[0]&2?jr.return:Gr[0]?jr.throw||((zr=jr.return)&&zr.call(jr),0):jr.next)&&!(zr=zr.call(jr,Gr[1])).done)return zr;switch(jr=0,zr&&(Gr=[Gr[0]&2,zr.value]),Gr[0]){case 0:case 1:zr=Gr;break;case 4:return $r.label++,{value:Gr[1],done:!1};case 5:$r.label++,jr=Gr[1],Gr=[0];continue;case 7:Gr=$r.ops.pop(),$r.trys.pop();continue;default:if(zr=$r.trys,!(zr=zr.length>0&&zr[zr.length-1])&&(Gr[0]===6||Gr[0]===2)){$r=0;continue}if(Gr[0]===3&&(!zr||Gr[1]>zr[0]&&Gr[1]<zr[3])){$r.label=Gr[1];break}if(Gr[0]===6&&$r.label<zr[1]){$r.label=zr[1],zr=Gr;break}if(zr&&$r.label<zr[2]){$r.label=zr[2],$r.ops.push(Gr);break}zr[2]&&$r.ops.pop(),$r.trys.pop();continue}Gr=Fe.call(_r,$r)}catch(Yr){Gr=[6,Yr],jr=0}finally{Fr=zr=0}if(Gr[0]&5)throw Gr[1];return{value:Gr[0]?Gr[1]:void 0,done:!0}}},__importDefault$e=commonjsGlobal&&commonjsGlobal.__importDefault||function(_r){return _r&&_r.__esModule?_r:{default:_r}};Object.defineProperty(ApiCall$1,"__esModule",{value:!0});var axios_1=__importDefault$e(axios),Errors_1$2=Errors$1,TypesenseError_1=__importDefault$e(TypesenseError$1),APIKEYHEADERNAME="X-TYPESENSE-API-KEY",HEALTHY=!0,UNHEALTHY=!1,ApiCall=function(){function _r(Fe){this.configuration=Fe,this.apiKey=this.configuration.apiKey,this.nodes=this.configuration.nodes==null?this.configuration.nodes:JSON.parse(JSON.stringify(this.configuration.nodes)),this.nearestNode=this.configuration.nearestNode==null?this.configuration.nearestNode:JSON.parse(JSON.stringify(this.configuration.nearestNode)),this.connectionTimeoutSeconds=this.configuration.connectionTimeoutSeconds,this.healthcheckIntervalSeconds=this.configuration.healthcheckIntervalSeconds,this.numRetriesPerRequest=this.configuration.numRetries,this.retryIntervalSeconds=this.configuration.retryIntervalSeconds,this.sendApiKeyAsQueryParam=this.configuration.sendApiKeyAsQueryParam,this.additionalUserHeaders=this.configuration.additionalHeaders,this.logger=this.configuration.logger,this.initializeMetadataForNodes(),this.currentNodeIndex=-1}return _r.prototype.get=function(Fe,$r,Fr){$r===void 0&&($r={});var jr=Fr===void 0?{}:Fr,zr=jr.abortSignal,Vr=zr===void 0?null:zr,Wr=jr.responseType,Kr=Wr===void 0?void 0:Wr;return __awaiter$l(this,void 0,void 0,function(){return __generator$l(this,function(Gr){return[2,this.performRequest("get",Fe,{queryParameters:$r,abortSignal:Vr,responseType:Kr})]})})},_r.prototype.delete=function(Fe,$r){return $r===void 0&&($r={}),__awaiter$l(this,void 0,void 0,function(){return __generator$l(this,function(Fr){return[2,this.performRequest("delete",Fe,{queryParameters:$r})]})})},_r.prototype.post=function(Fe,$r,Fr,jr){return $r===void 0&&($r={}),Fr===void 0&&(Fr={}),jr===void 0&&(jr={}),__awaiter$l(this,void 0,void 0,function(){return __generator$l(this,function(zr){return[2,this.performRequest("post",Fe,{queryParameters:Fr,bodyParameters:$r,additionalHeaders:jr})]})})},_r.prototype.put=function(Fe,$r,Fr){return $r===void 0&&($r={}),Fr===void 0&&(Fr={}),__awaiter$l(this,void 0,void 0,function(){return __generator$l(this,function(jr){return[2,this.performRequest("put",Fe,{queryParameters:Fr,bodyParameters:$r})]})})},_r.prototype.patch=function(Fe,$r,Fr){return $r===void 0&&($r={}),Fr===void 0&&(Fr={}),__awaiter$l(this,void 0,void 0,function(){return __generator$l(this,function(jr){return[2,this.performRequest("patch",Fe,{queryParameters:Fr,bodyParameters:$r})]})})},_r.prototype.performRequest=function(Fe,$r,Fr){var jr,zr,Vr,Wr=Fr.queryParameters,Kr=Wr===void 0?null:Wr,Gr=Fr.bodyParameters,Yr=Gr===void 0?null:Gr,Qr=Fr.additionalHeaders,Jr=Qr===void 0?{}:Qr,Zr=Fr.abortSignal,tn=Zr===void 0?null:Zr,en=Fr.responseType,rn=en===void 0?void 0:en;return __awaiter$l(this,void 0,void 0,function(){var nn,on,un,an,sn,dn;return __generator$l(this,function(ln){switch(ln.label){case 0:this.configuration.validate(),nn=Date.now(),this.logger.debug("Request #".concat(nn,": Performing ").concat(Fe.toUpperCase()," request: ").concat($r)),un=function(cn){var fn,pn,hn,mn,Sn,vn,bn;return __generator$l(this,function(_n){switch(_n.label){case 0:if(fn=an.getNextNode(nn),an.logger.debug("Request #".concat(nn,": Attempting ").concat(Fe.toUpperCase()," request Try #").concat(cn," to Node ").concat(fn.index)),tn&&tn.aborted)return[2,{value:Promise.reject(new Error("Request aborted by caller."))}];pn=void 0,_n.label=1;case 1:return _n.trys.push([1,3,5,6]),hn={method:Fe,url:an.uriFor($r,fn),headers:Object.assign({},an.defaultHeaders(),Jr,an.additionalUserHeaders),timeout:an.connectionTimeoutSeconds*1e3,maxContentLength:1/0,maxBodyLength:1/0,responseType:rn,validateStatus:function($n){return $n>0},transformResponse:[function($n,yn){var wn=$n;return yn!==void 0&&typeof $n=="string"&&yn["content-type"]&&yn["content-type"].startsWith("application/json")&&(wn=JSON.parse($n)),wn}]},Kr&&Object.keys(Kr).length!==0&&(hn.params=Kr),an.sendApiKeyAsQueryParam&&(hn.params=hn.params||{},hn.params["x-typesense-api-key"]=an.apiKey),Yr&&(typeof Yr=="string"&&Yr.length!==0||typeof Yr=="object"&&Object.keys(Yr).length!==0)&&(hn.data=Yr),tn&&(mn=axios_1.default.CancelToken,Sn=mn.source(),pn=function(){return Sn.cancel()},tn.addEventListener("abort",pn),hn.cancelToken=Sn.token),[4,(0,axios_1.default)(hn)];case 2:if(vn=_n.sent(),vn.status>=1&&vn.status<=499&&an.setNodeHealthcheck(fn,HEALTHY),an.logger.debug("Request #".concat(nn,": Request to Node ").concat(fn.index," was made. Response Code was ").concat(vn.status,".")),vn.status>=200&&vn.status<300)return[2,{value:Promise.resolve(vn.data)}];if(vn.status<500)return[2,{value:Promise.reject(an.customErrorForResponse(vn,(jr=vn.data)===null||jr===void 0?void 0:jr.message))}];throw an.customErrorForResponse(vn,(zr=vn.data)===null||zr===void 0?void 0:zr.message);case 3:return bn=_n.sent(),an.setNodeHealthcheck(fn,UNHEALTHY),on=bn,an.logger.warn("Request #".concat(nn,": Request to Node ").concat(fn.index,' failed due to "').concat(bn.code," ").concat(bn.message).concat(bn.response==null?"":" - "+JSON.stringify((Vr=bn.response)===null||Vr===void 0?void 0:Vr.data),'"')),an.logger.warn("Request #".concat(nn,": Sleeping for ").concat(an.retryIntervalSeconds,"s and then retrying request...")),[4,an.timer(an.retryIntervalSeconds)];case 4:return _n.sent(),[3,6];case 5:return tn&&pn&&tn.removeEventListener("abort",pn),[7];case 6:return[2]}})},an=this,sn=1,ln.label=1;case 1:return sn<=this.numRetriesPerRequest+1?[5,un(sn)]:[3,4];case 2:if(dn=ln.sent(),typeof dn=="object")return[2,dn.value];ln.label=3;case 3:return sn++,[3,1];case 4:return this.logger.debug("Request #".concat(nn,": No retries left. Raising last error")),[2,Promise.reject(on)]}})})},_r.prototype.getNextNode=function(Fe){if(Fe===void 0&&(Fe=0),this.nearestNode!=null){if(this.logger.debug("Request #".concat(Fe,": Nodes Health: Node ").concat(this.nearestNode.index," is ").concat(this.nearestNode.isHealthy===!0?"Healthy":"Unhealthy")),this.nearestNode.isHealthy===!0||this.nodeDueForHealthcheck(this.nearestNode,Fe))return this.logger.debug("Request #".concat(Fe,": Updated current node to Node ").concat(this.nearestNode.index)),this.nearestNode;this.logger.debug("Request #".concat(Fe,": Falling back to individual nodes"))}this.logger.debug("Request #".concat(Fe,": Nodes Health: ").concat(this.nodes.map(function(jr){return"Node ".concat(jr.index," is ").concat(jr.isHealthy===!0?"Healthy":"Unhealthy")}).join(" || ")));for(var $r=this.nodes[0],Fr=0;Fr<=this.nodes.length;Fr++)if(this.currentNodeIndex=(this.currentNodeIndex+1)%this.nodes.length,$r=this.nodes[this.currentNodeIndex],$r.isHealthy===!0||this.nodeDueForHealthcheck($r,Fe))return this.logger.debug("Request #".concat(Fe,": Updated current node to Node ").concat($r.index)),$r;return this.logger.debug("Request #".concat(Fe,": No healthy nodes were found. Returning the next node, Node ").concat($r.index)),$r},_r.prototype.nodeDueForHealthcheck=function(Fe,$r){$r===void 0&&($r=0);var Fr=Date.now()-Fe.lastAccessTimestamp>this.healthcheckIntervalSeconds*1e3;return Fr&&this.logger.debug("Request #".concat($r,": Node ").concat(Fe.index," has exceeded healtcheckIntervalSeconds of ").concat(this.healthcheckIntervalSeconds,". Adding it back into rotation.")),Fr},_r.prototype.initializeMetadataForNodes=function(){var Fe=this;this.nearestNode!=null&&(this.nearestNode.index="nearestNode",this.setNodeHealthcheck(this.nearestNode,HEALTHY)),this.nodes.forEach(function($r,Fr){$r.index=Fr,Fe.setNodeHealthcheck($r,HEALTHY)})},_r.prototype.setNodeHealthcheck=function(Fe,$r){Fe.isHealthy=$r,Fe.lastAccessTimestamp=Date.now()},_r.prototype.uriFor=function(Fe,$r){return $r.url!=null?"".concat($r.url).concat(Fe):"".concat($r.protocol,"://").concat($r.host,":").concat($r.port).concat($r.path).concat(Fe)},_r.prototype.defaultHeaders=function(){var Fe={};return this.sendApiKeyAsQueryParam||(Fe[APIKEYHEADERNAME]=this.apiKey),Fe["Content-Type"]="application/json",Fe},_r.prototype.timer=function(Fe){return __awaiter$l(this,void 0,void 0,function(){return __generator$l(this,function($r){return[2,new Promise(function(Fr){return setTimeout(Fr,Fe*1e3)})]})})},_r.prototype.customErrorForResponse=function(Fe,$r){var Fr="Request failed with HTTP code ".concat(Fe.status);typeof $r=="string"&&$r.trim()!==""&&(Fr+=" | Server said: ".concat($r));var jr=new TypesenseError_1.default(Fr);return Fe.status===400?jr=new Errors_1$2.RequestMalformed(Fr):Fe.status===401?jr=new Errors_1$2.RequestUnauthorized(Fr):Fe.status===404?jr=new Errors_1$2.ObjectNotFound(Fr):Fe.status===409?jr=new Errors_1$2.ObjectAlreadyExists(Fr):Fe.status===422?jr=new Errors_1$2.ObjectUnprocessable(Fr):Fe.status>=500&&Fe.status<=599?jr=new Errors_1$2.ServerError(Fr):jr=new Errors_1$2.HTTPError(Fr),jr.httpStatus=Fe.status,jr},_r}();ApiCall$1.default=ApiCall;var Collections$1={},__awaiter$k=commonjsGlobal&&commonjsGlobal.__awaiter||function(_r,Fe,$r,Fr){function jr(zr){return zr instanceof $r?zr:new $r(function(Vr){Vr(zr)})}return new($r||($r=Promise))(function(zr,Vr){function Wr(Yr){try{Gr(Fr.next(Yr))}catch(Qr){Vr(Qr)}}function Kr(Yr){try{Gr(Fr.throw(Yr))}catch(Qr){Vr(Qr)}}function Gr(Yr){Yr.done?zr(Yr.value):jr(Yr.value).then(Wr,Kr)}Gr((Fr=Fr.apply(_r,Fe||[])).next())})},__generator$k=commonjsGlobal&&commonjsGlobal.__generator||function(_r,Fe){var $r={label:0,sent:function(){if(zr[0]&1)throw zr[1];return zr[1]},trys:[],ops:[]},Fr,jr,zr,Vr;return Vr={next:Wr(0),throw:Wr(1),return:Wr(2)},typeof Symbol=="function"&&(Vr[Symbol.iterator]=function(){return this}),Vr;function Wr(Gr){return function(Yr){return Kr([Gr,Yr])}}function Kr(Gr){if(Fr)throw new TypeError("Generator is already executing.");for(;$r;)try{if(Fr=1,jr&&(zr=Gr[0]&2?jr.return:Gr[0]?jr.throw||((zr=jr.return)&&zr.call(jr),0):jr.next)&&!(zr=zr.call(jr,Gr[1])).done)return zr;switch(jr=0,zr&&(Gr=[Gr[0]&2,zr.value]),Gr[0]){case 0:case 1:zr=Gr;break;case 4:return $r.label++,{value:Gr[1],done:!1};case 5:$r.label++,jr=Gr[1],Gr=[0];continue;case 7:Gr=$r.ops.pop(),$r.trys.pop();continue;default:if(zr=$r.trys,!(zr=zr.length>0&&zr[zr.length-1])&&(Gr[0]===6||Gr[0]===2)){$r=0;continue}if(Gr[0]===3&&(!zr||Gr[1]>zr[0]&&Gr[1]<zr[3])){$r.label=Gr[1];break}if(Gr[0]===6&&$r.label<zr[1]){$r.label=zr[1],zr=Gr;break}if(zr&&$r.label<zr[2]){$r.label=zr[2],$r.ops.push(Gr);break}zr[2]&&$r.ops.pop(),$r.trys.pop();continue}Gr=Fe.call(_r,$r)}catch(Yr){Gr=[6,Yr],jr=0}finally{Fr=zr=0}if(Gr[0]&5)throw Gr[1];return{value:Gr[0]?Gr[1]:void 0,done:!0}}};Object.defineProperty(Collections$1,"__esModule",{value:!0});var RESOURCEPATH$b="/collections",Collections=function(){function _r(Fe){this.apiCall=Fe}return _r.prototype.create=function(Fe,$r){return $r===void 0&&($r={}),__awaiter$k(this,void 0,void 0,function(){return __generator$k(this,function(Fr){return[2,this.apiCall.post(RESOURCEPATH$b,Fe,$r)]})})},_r.prototype.retrieve=function(){return __awaiter$k(this,void 0,void 0,function(){return __generator$k(this,function(Fe){return[2,this.apiCall.get(RESOURCEPATH$b)]})})},Object.defineProperty(_r,"RESOURCEPATH",{get:function(){return RESOURCEPATH$b},enumerable:!1,configurable:!0}),_r}();Collections$1.default=Collections;var Collection$1={},Documents$1={},SearchOnlyDocuments$1={},RequestWithCache$1={},__awaiter$j=commonjsGlobal&&commonjsGlobal.__awaiter||function(_r,Fe,$r,Fr){function jr(zr){return zr instanceof $r?zr:new $r(function(Vr){Vr(zr)})}return new($r||($r=Promise))(function(zr,Vr){function Wr(Yr){try{Gr(Fr.next(Yr))}catch(Qr){Vr(Qr)}}function Kr(Yr){try{Gr(Fr.throw(Yr))}catch(Qr){Vr(Qr)}}function Gr(Yr){Yr.done?zr(Yr.value):jr(Yr.value).then(Wr,Kr)}Gr((Fr=Fr.apply(_r,Fe||[])).next())})},__generator$j=commonjsGlobal&&commonjsGlobal.__generator||function(_r,Fe){var $r={label:0,sent:function(){if(zr[0]&1)throw zr[1];return zr[1]},trys:[],ops:[]},Fr,jr,zr,Vr;return Vr={next:Wr(0),throw:Wr(1),return:Wr(2)},typeof Symbol=="function"&&(Vr[Symbol.iterator]=function(){return this}),Vr;function Wr(Gr){return function(Yr){return Kr([Gr,Yr])}}function Kr(Gr){if(Fr)throw new TypeError("Generator is already executing.");for(;$r;)try{if(Fr=1,jr&&(zr=Gr[0]&2?jr.return:Gr[0]?jr.throw||((zr=jr.return)&&zr.call(jr),0):jr.next)&&!(zr=zr.call(jr,Gr[1])).done)return zr;switch(jr=0,zr&&(Gr=[Gr[0]&2,zr.value]),Gr[0]){case 0:case 1:zr=Gr;break;case 4:return $r.label++,{value:Gr[1],done:!1};case 5:$r.label++,jr=Gr[1],Gr=[0];continue;case 7:Gr=$r.ops.pop(),$r.trys.pop();continue;default:if(zr=$r.trys,!(zr=zr.length>0&&zr[zr.length-1])&&(Gr[0]===6||Gr[0]===2)){$r=0;continue}if(Gr[0]===3&&(!zr||Gr[1]>zr[0]&&Gr[1]<zr[3])){$r.label=Gr[1];break}if(Gr[0]===6&&$r.label<zr[1]){$r.label=zr[1],zr=Gr;break}if(zr&&$r.label<zr[2]){$r.label=zr[2],$r.ops.push(Gr);break}zr[2]&&$r.ops.pop(),$r.trys.pop();continue}Gr=Fe.call(_r,$r)}catch(Yr){Gr=[6,Yr],jr=0}finally{Fr=zr=0}if(Gr[0]&5)throw Gr[1];return{value:Gr[0]?Gr[1]:void 0,done:!0}}},__spreadArray=commonjsGlobal&&commonjsGlobal.__spreadArray||function(_r,Fe,$r){if($r||arguments.length===2)for(var Fr=0,jr=Fe.length,zr;Fr<jr;Fr++)(zr||!(Fr in Fe))&&(zr||(zr=Array.prototype.slice.call(Fe,0,Fr)),zr[Fr]=Fe[Fr]);return _r.concat(zr||Array.prototype.slice.call(Fe))};Object.defineProperty(RequestWithCache$1,"__esModule",{value:!0});var defaultCacheResponseForSeconds=2*60,defaultMaxSize=100,RequestWithCache=function(){function _r(){this.responseCache=new Map}return _r.prototype.clearCache=function(){this.responseCache=new Map},_r.prototype.perform=function(Fe,$r,Fr,jr){return __awaiter$j(this,void 0,void 0,function(){var zr,Vr,Wr,Kr,Gr,Yr,Qr,Jr,Zr,tn,en,rn;return __generator$j(this,function(nn){switch(nn.label){case 0:if(zr=jr.cacheResponseForSeconds,Vr=zr===void 0?defaultCacheResponseForSeconds:zr,Wr=jr.maxSize,Kr=Wr===void 0?defaultMaxSize:Wr,Gr=Vr<=0||Kr<=0,Gr)return[2,$r.call.apply($r,__spreadArray([Fe],Fr,!1))];if(Yr=JSON.stringify(Fr),Qr=this.responseCache.get(Yr),Jr=Date.now(),Qr){if(Zr=Jr-Qr.requestTimestamp<Vr*1e3,Zr)return this.responseCache.delete(Yr),this.responseCache.set(Yr,Qr),[2,Promise.resolve(Qr.response)];this.responseCache.delete(Yr)}return[4,$r.call.apply($r,__spreadArray([Fe],Fr,!1))];case 1:return tn=nn.sent(),this.responseCache.set(Yr,{requestTimestamp:Jr,response:tn}),en=this.responseCache.size>Kr,en&&(rn=this.responseCache.keys().next().value,this.responseCache.delete(rn)),[2,tn]}})})},_r}();RequestWithCache$1.default=RequestWithCache;var __awaiter$i=commonjsGlobal&&commonjsGlobal.__awaiter||function(_r,Fe,$r,Fr){function jr(zr){return zr instanceof $r?zr:new $r(function(Vr){Vr(zr)})}return new($r||($r=Promise))(function(zr,Vr){function Wr(Yr){try{Gr(Fr.next(Yr))}catch(Qr){Vr(Qr)}}function Kr(Yr){try{Gr(Fr.throw(Yr))}catch(Qr){Vr(Qr)}}function Gr(Yr){Yr.done?zr(Yr.value):jr(Yr.value).then(Wr,Kr)}Gr((Fr=Fr.apply(_r,Fe||[])).next())})},__generator$i=commonjsGlobal&&commonjsGlobal.__generator||function(_r,Fe){var $r={label:0,sent:function(){if(zr[0]&1)throw zr[1];return zr[1]},trys:[],ops:[]},Fr,jr,zr,Vr;return Vr={next:Wr(0),throw:Wr(1),return:Wr(2)},typeof Symbol=="function"&&(Vr[Symbol.iterator]=function(){return this}),Vr;function Wr(Gr){return function(Yr){return Kr([Gr,Yr])}}function Kr(Gr){if(Fr)throw new TypeError("Generator is already executing.");for(;$r;)try{if(Fr=1,jr&&(zr=Gr[0]&2?jr.return:Gr[0]?jr.throw||((zr=jr.return)&&zr.call(jr),0):jr.next)&&!(zr=zr.call(jr,Gr[1])).done)return zr;switch(jr=0,zr&&(Gr=[Gr[0]&2,zr.value]),Gr[0]){case 0:case 1:zr=Gr;break;case 4:return $r.label++,{value:Gr[1],done:!1};case 5:$r.label++,jr=Gr[1],Gr=[0];continue;case 7:Gr=$r.ops.pop(),$r.trys.pop();continue;default:if(zr=$r.trys,!(zr=zr.length>0&&zr[zr.length-1])&&(Gr[0]===6||Gr[0]===2)){$r=0;continue}if(Gr[0]===3&&(!zr||Gr[1]>zr[0]&&Gr[1]<zr[3])){$r.label=Gr[1];break}if(Gr[0]===6&&$r.label<zr[1]){$r.label=zr[1],zr=Gr;break}if(zr&&$r.label<zr[2]){$r.label=zr[2],$r.ops.push(Gr);break}zr[2]&&$r.ops.pop(),$r.trys.pop();continue}Gr=Fe.call(_r,$r)}catch(Yr){Gr=[6,Yr],jr=0}finally{Fr=zr=0}if(Gr[0]&5)throw Gr[1];return{value:Gr[0]?Gr[1]:void 0,done:!0}}},__importDefault$d=commonjsGlobal&&commonjsGlobal.__importDefault||function(_r){return _r&&_r.__esModule?_r:{default:_r}};Object.defineProperty(SearchOnlyDocuments$1,"__esModule",{value:!0});SearchOnlyDocuments$1.SearchOnlyDocuments=void 0;var RequestWithCache_1$1=__importDefault$d(RequestWithCache$1),Collections_1$7=__importDefault$d(Collections$1),RESOURCEPATH$a="/documents",SearchOnlyDocuments=function(){function _r(Fe,$r,Fr){this.collectionName=Fe,this.apiCall=$r,this.configuration=Fr,this.requestWithCache=new RequestWithCache_1$1.default}return _r.prototype.clearCache=function(){this.requestWithCache.clearCache()},_r.prototype.search=function(Fe,$r){var Fr=$r===void 0?{}:$r,jr=Fr.cacheSearchResultsForSeconds,zr=jr===void 0?this.configuration.cacheSearchResultsForSeconds:jr,Vr=Fr.abortSignal,Wr=Vr===void 0?null:Vr;return __awaiter$i(this,void 0,void 0,function(){var Kr,Gr;return __generator$i(this,function(Yr){return Kr={},this.configuration.useServerSideSearchCache===!0&&(Kr.use_cache=!0),Gr=Object.assign({},Fe,Kr),[2,this.requestWithCache.perform(this.apiCall,this.apiCall.get,[this.endpointPath("search"),Gr,{abortSignal:Wr}],{cacheResponseForSeconds:zr})]})})},_r.prototype.endpointPath=function(Fe){return"".concat(Collections_1$7.default.RESOURCEPATH,"/").concat(this.collectionName).concat(RESOURCEPATH$a).concat(Fe===void 0?"":"/"+Fe)},Object.defineProperty(_r,"RESOURCEPATH",{get:function(){return RESOURCEPATH$a},enumerable:!1,configurable:!0}),_r}();SearchOnlyDocuments$1.SearchOnlyDocuments=SearchOnlyDocuments;var __extends=commonjsGlobal&&commonjsGlobal.__extends||function(){var _r=function(Fe,$r){return _r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Fr,jr){Fr.__proto__=jr}||function(Fr,jr){for(var zr in jr)Object.prototype.hasOwnProperty.call(jr,zr)&&(Fr[zr]=jr[zr])},_r(Fe,$r)};return function(Fe,$r){if(typeof $r!="function"&&$r!==null)throw new TypeError("Class extends value "+String($r)+" is not a constructor or null");_r(Fe,$r);function Fr(){this.constructor=Fe}Fe.prototype=$r===null?Object.create($r):(Fr.prototype=$r.prototype,new Fr)}}(),__awaiter$h=commonjsGlobal&&commonjsGlobal.__awaiter||function(_r,Fe,$r,Fr){function jr(zr){return zr instanceof $r?zr:new $r(function(Vr){Vr(zr)})}return new($r||($r=Promise))(function(zr,Vr){function Wr(Yr){try{Gr(Fr.next(Yr))}catch(Qr){Vr(Qr)}}function Kr(Yr){try{Gr(Fr.throw(Yr))}catch(Qr){Vr(Qr)}}function Gr(Yr){Yr.done?zr(Yr.value):jr(Yr.value).then(Wr,Kr)}Gr((Fr=Fr.apply(_r,Fe||[])).next())})},__generator$h=commonjsGlobal&&commonjsGlobal.__generator||function(_r,Fe){var $r={label:0,sent:function(){if(zr[0]&1)throw zr[1];return zr[1]},trys:[],ops:[]},Fr,jr,zr,Vr;return Vr={next:Wr(0),throw:Wr(1),return:Wr(2)},typeof Symbol=="function"&&(Vr[Symbol.iterator]=function(){return this}),Vr;function Wr(Gr){return function(Yr){return Kr([Gr,Yr])}}function Kr(Gr){if(Fr)throw new TypeError("Generator is already executing.");for(;$r;)try{if(Fr=1,jr&&(zr=Gr[0]&2?jr.return:Gr[0]?jr.throw||((zr=jr.return)&&zr.call(jr),0):jr.next)&&!(zr=zr.call(jr,Gr[1])).done)return zr;switch(jr=0,zr&&(Gr=[Gr[0]&2,zr.value]),Gr[0]){case 0:case 1:zr=Gr;break;case 4:return $r.label++,{value:Gr[1],done:!1};case 5:$r.label++,jr=Gr[1],Gr=[0];continue;case 7:Gr=$r.ops.pop(),$r.trys.pop();continue;default:if(zr=$r.trys,!(zr=zr.length>0&&zr[zr.length-1])&&(Gr[0]===6||Gr[0]===2)){$r=0;continue}if(Gr[0]===3&&(!zr||Gr[1]>zr[0]&&Gr[1]<zr[3])){$r.label=Gr[1];break}if(Gr[0]===6&&$r.label<zr[1]){$r.label=zr[1],zr=Gr;break}if(zr&&$r.label<zr[2]){$r.label=zr[2],$r.ops.push(Gr);break}zr[2]&&$r.ops.pop(),$r.trys.pop();continue}Gr=Fe.call(_r,$r)}catch(Yr){Gr=[6,Yr],jr=0}finally{Fr=zr=0}if(Gr[0]&5)throw Gr[1];return{value:Gr[0]?Gr[1]:void 0,done:!0}}};Object.defineProperty(Documents$1,"__esModule",{value:!0});var Errors_1$1=Errors$1,SearchOnlyDocuments_1$1=SearchOnlyDocuments$1,Documents=function(_r){__extends(Fe,_r);function Fe($r,Fr,jr){return _r.call(this,$r,Fr,jr)||this}return Fe.prototype.create=function($r,Fr){return Fr===void 0&&(Fr={}),__awaiter$h(this,void 0,void 0,function(){return __generator$h(this,function(jr){if(!$r)throw new Error("No document provided");return[2,this.apiCall.post(this.endpointPath(),$r,Fr)]})})},Fe.prototype.upsert=function($r,Fr){return Fr===void 0&&(Fr={}),__awaiter$h(this,void 0,void 0,function(){return __generator$h(this,function(jr){if(!$r)throw new Error("No document provided");return[2,this.apiCall.post(this.endpointPath(),$r,Object.assign({},Fr,{action:"upsert"}))]})})},Fe.prototype.update=function($r,Fr){return Fr===void 0&&(Fr={}),__awaiter$h(this,void 0,void 0,function(){return __generator$h(this,function(jr){if(!$r)throw new Error("No document provided");return[2,this.apiCall.post(this.endpointPath(),$r,Object.assign({},Fr,{action:"update"}))]})})},Fe.prototype.delete=function($r){return $r===void 0&&($r={}),__awaiter$h(this,void 0,void 0,function(){return __generator$h(this,function(Fr){return typeof $r=="string"?[2,this.apiCall.delete(this.endpointPath($r),$r)]:[2,this.apiCall.delete(this.endpointPath(),$r)]})})},Fe.prototype.createMany=function($r,Fr){return Fr===void 0&&(Fr={}),__awaiter$h(this,void 0,void 0,function(){return __generator$h(this,function(jr){return this.configuration.logger.warn("createMany is deprecated and will be removed in a future version. Use import instead, which now takes both an array of documents or a JSONL string of documents"),[2,this.import($r,Fr)]})})},Fe.prototype.import=function($r,Fr){return Fr===void 0&&(Fr={}),__awaiter$h(this,void 0,void 0,function(){var jr,zr,Vr,Wr;return __generator$h(this,function(Kr){switch(Kr.label){case 0:if(Array.isArray($r))try{jr=$r.map(function(Gr){return JSON.stringify(Gr)}).join(`
`)}catch(Gr){throw RangeError instanceof Gr&&(Gr==null?void 0:Gr.includes("Too many properties to enumerate"))?new Error("".concat(Gr,`
          It looks like you have reached a Node.js limit that restricts the number of keys in an Object: https://stackoverflow.com/questions/9282869/are-there-limits-to-the-number-of-properties-in-a-javascript-object

          Please try reducing the number of keys in your document, or using CURL to import your data.
          `)):new Error(Gr)}else jr=$r;return[4,this.apiCall.performRequest("post",this.endpointPath("import"),{queryParameters:Fr,bodyParameters:jr,additionalHeaders:{"Content-Type":"text/plain"}})];case 1:if(zr=Kr.sent(),Array.isArray($r)){if(Vr=zr.split(`
`).map(function(Gr){return JSON.parse(Gr)}),Wr=Vr.filter(function(Gr){return Gr.success===!1}),Wr.length>0)throw new Errors_1$1.ImportError("".concat(Vr.length-Wr.length," documents imported successfully, ").concat(Wr.length," documents failed during import. Use `error.importResults` from the raised exception to get a detailed error reason for each document."),Vr);return[2,Vr]}else return[2,zr]}})})},Fe.prototype.export=function($r){return $r===void 0&&($r={}),__awaiter$h(this,void 0,void 0,function(){return __generator$h(this,function(Fr){return[2,this.apiCall.get(this.endpointPath("export"),$r)]})})},Fe.prototype.exportStream=function($r){return $r===void 0&&($r={}),__awaiter$h(this,void 0,void 0,function(){return __generator$h(this,function(Fr){return[2,this.apiCall.get(this.endpointPath("export"),$r,{responseType:"stream"})]})})},Fe}(SearchOnlyDocuments_1$1.SearchOnlyDocuments);Documents$1.default=Documents;var Overrides$1={},__awaiter$g=commonjsGlobal&&commonjsGlobal.__awaiter||function(_r,Fe,$r,Fr){function jr(zr){return zr instanceof $r?zr:new $r(function(Vr){Vr(zr)})}return new($r||($r=Promise))(function(zr,Vr){function Wr(Yr){try{Gr(Fr.next(Yr))}catch(Qr){Vr(Qr)}}function Kr(Yr){try{Gr(Fr.throw(Yr))}catch(Qr){Vr(Qr)}}function Gr(Yr){Yr.done?zr(Yr.value):jr(Yr.value).then(Wr,Kr)}Gr((Fr=Fr.apply(_r,Fe||[])).next())})},__generator$g=commonjsGlobal&&commonjsGlobal.__generator||function(_r,Fe){var $r={label:0,sent:function(){if(zr[0]&1)throw zr[1];return zr[1]},trys:[],ops:[]},Fr,jr,zr,Vr;return Vr={next:Wr(0),throw:Wr(1),return:Wr(2)},typeof Symbol=="function"&&(Vr[Symbol.iterator]=function(){return this}),Vr;function Wr(Gr){return function(Yr){return Kr([Gr,Yr])}}function Kr(Gr){if(Fr)throw new TypeError("Generator is already executing.");for(;$r;)try{if(Fr=1,jr&&(zr=Gr[0]&2?jr.return:Gr[0]?jr.throw||((zr=jr.return)&&zr.call(jr),0):jr.next)&&!(zr=zr.call(jr,Gr[1])).done)return zr;switch(jr=0,zr&&(Gr=[Gr[0]&2,zr.value]),Gr[0]){case 0:case 1:zr=Gr;break;case 4:return $r.label++,{value:Gr[1],done:!1};case 5:$r.label++,jr=Gr[1],Gr=[0];continue;case 7:Gr=$r.ops.pop(),$r.trys.pop();continue;default:if(zr=$r.trys,!(zr=zr.length>0&&zr[zr.length-1])&&(Gr[0]===6||Gr[0]===2)){$r=0;continue}if(Gr[0]===3&&(!zr||Gr[1]>zr[0]&&Gr[1]<zr[3])){$r.label=Gr[1];break}if(Gr[0]===6&&$r.label<zr[1]){$r.label=zr[1],zr=Gr;break}if(zr&&$r.label<zr[2]){$r.label=zr[2],$r.ops.push(Gr);break}zr[2]&&$r.ops.pop(),$r.trys.pop();continue}Gr=Fe.call(_r,$r)}catch(Yr){Gr=[6,Yr],jr=0}finally{Fr=zr=0}if(Gr[0]&5)throw Gr[1];return{value:Gr[0]?Gr[1]:void 0,done:!0}}},__importDefault$c=commonjsGlobal&&commonjsGlobal.__importDefault||function(_r){return _r&&_r.__esModule?_r:{default:_r}};Object.defineProperty(Overrides$1,"__esModule",{value:!0});var Collections_1$6=__importDefault$c(Collections$1),RESOURCEPATH$9="/overrides",Overrides=function(){function _r(Fe,$r){this.collectionName=Fe,this.apiCall=$r}return _r.prototype.upsert=function(Fe,$r){return __awaiter$g(this,void 0,void 0,function(){return __generator$g(this,function(Fr){return[2,this.apiCall.put(this.endpointPath(Fe),$r)]})})},_r.prototype.retrieve=function(){return __awaiter$g(this,void 0,void 0,function(){return __generator$g(this,function(Fe){return[2,this.apiCall.get(this.endpointPath())]})})},_r.prototype.endpointPath=function(Fe){return"".concat(Collections_1$6.default.RESOURCEPATH,"/").concat(this.collectionName).concat(_r.RESOURCEPATH).concat(Fe===void 0?"":"/"+Fe)},Object.defineProperty(_r,"RESOURCEPATH",{get:function(){return RESOURCEPATH$9},enumerable:!1,configurable:!0}),_r}();Overrides$1.default=Overrides;var Override$1={},__awaiter$f=commonjsGlobal&&commonjsGlobal.__awaiter||function(_r,Fe,$r,Fr){function jr(zr){return zr instanceof $r?zr:new $r(function(Vr){Vr(zr)})}return new($r||($r=Promise))(function(zr,Vr){function Wr(Yr){try{Gr(Fr.next(Yr))}catch(Qr){Vr(Qr)}}function Kr(Yr){try{Gr(Fr.throw(Yr))}catch(Qr){Vr(Qr)}}function Gr(Yr){Yr.done?zr(Yr.value):jr(Yr.value).then(Wr,Kr)}Gr((Fr=Fr.apply(_r,Fe||[])).next())})},__generator$f=commonjsGlobal&&commonjsGlobal.__generator||function(_r,Fe){var $r={label:0,sent:function(){if(zr[0]&1)throw zr[1];return zr[1]},trys:[],ops:[]},Fr,jr,zr,Vr;return Vr={next:Wr(0),throw:Wr(1),return:Wr(2)},typeof Symbol=="function"&&(Vr[Symbol.iterator]=function(){return this}),Vr;function Wr(Gr){return function(Yr){return Kr([Gr,Yr])}}function Kr(Gr){if(Fr)throw new TypeError("Generator is already executing.");for(;$r;)try{if(Fr=1,jr&&(zr=Gr[0]&2?jr.return:Gr[0]?jr.throw||((zr=jr.return)&&zr.call(jr),0):jr.next)&&!(zr=zr.call(jr,Gr[1])).done)return zr;switch(jr=0,zr&&(Gr=[Gr[0]&2,zr.value]),Gr[0]){case 0:case 1:zr=Gr;break;case 4:return $r.label++,{value:Gr[1],done:!1};case 5:$r.label++,jr=Gr[1],Gr=[0];continue;case 7:Gr=$r.ops.pop(),$r.trys.pop();continue;default:if(zr=$r.trys,!(zr=zr.length>0&&zr[zr.length-1])&&(Gr[0]===6||Gr[0]===2)){$r=0;continue}if(Gr[0]===3&&(!zr||Gr[1]>zr[0]&&Gr[1]<zr[3])){$r.label=Gr[1];break}if(Gr[0]===6&&$r.label<zr[1]){$r.label=zr[1],zr=Gr;break}if(zr&&$r.label<zr[2]){$r.label=zr[2],$r.ops.push(Gr);break}zr[2]&&$r.ops.pop(),$r.trys.pop();continue}Gr=Fe.call(_r,$r)}catch(Yr){Gr=[6,Yr],jr=0}finally{Fr=zr=0}if(Gr[0]&5)throw Gr[1];return{value:Gr[0]?Gr[1]:void 0,done:!0}}},__importDefault$b=commonjsGlobal&&commonjsGlobal.__importDefault||function(_r){return _r&&_r.__esModule?_r:{default:_r}};Object.defineProperty(Override$1,"__esModule",{value:!0});var Collections_1$5=__importDefault$b(Collections$1),Overrides_1$1=__importDefault$b(Overrides$1),Override=function(){function _r(Fe,$r,Fr){this.collectionName=Fe,this.overrideId=$r,this.apiCall=Fr}return _r.prototype.retrieve=function(){return __awaiter$f(this,void 0,void 0,function(){return __generator$f(this,function(Fe){return[2,this.apiCall.get(this.endpointPath())]})})},_r.prototype.delete=function(){return __awaiter$f(this,void 0,void 0,function(){return __generator$f(this,function(Fe){return[2,this.apiCall.delete(this.endpointPath())]})})},_r.prototype.endpointPath=function(){return"".concat(Collections_1$5.default.RESOURCEPATH,"/").concat(this.collectionName).concat(Overrides_1$1.default.RESOURCEPATH,"/").concat(this.overrideId)},_r}();Override$1.default=Override;var Synonyms$1={},__awaiter$e=commonjsGlobal&&commonjsGlobal.__awaiter||function(_r,Fe,$r,Fr){function jr(zr){return zr instanceof $r?zr:new $r(function(Vr){Vr(zr)})}return new($r||($r=Promise))(function(zr,Vr){function Wr(Yr){try{Gr(Fr.next(Yr))}catch(Qr){Vr(Qr)}}function Kr(Yr){try{Gr(Fr.throw(Yr))}catch(Qr){Vr(Qr)}}function Gr(Yr){Yr.done?zr(Yr.value):jr(Yr.value).then(Wr,Kr)}Gr((Fr=Fr.apply(_r,Fe||[])).next())})},__generator$e=commonjsGlobal&&commonjsGlobal.__generator||function(_r,Fe){var $r={label:0,sent:function(){if(zr[0]&1)throw zr[1];return zr[1]},trys:[],ops:[]},Fr,jr,zr,Vr;return Vr={next:Wr(0),throw:Wr(1),return:Wr(2)},typeof Symbol=="function"&&(Vr[Symbol.iterator]=function(){return this}),Vr;function Wr(Gr){return function(Yr){return Kr([Gr,Yr])}}function Kr(Gr){if(Fr)throw new TypeError("Generator is already executing.");for(;$r;)try{if(Fr=1,jr&&(zr=Gr[0]&2?jr.return:Gr[0]?jr.throw||((zr=jr.return)&&zr.call(jr),0):jr.next)&&!(zr=zr.call(jr,Gr[1])).done)return zr;switch(jr=0,zr&&(Gr=[Gr[0]&2,zr.value]),Gr[0]){case 0:case 1:zr=Gr;break;case 4:return $r.label++,{value:Gr[1],done:!1};case 5:$r.label++,jr=Gr[1],Gr=[0];continue;case 7:Gr=$r.ops.pop(),$r.trys.pop();continue;default:if(zr=$r.trys,!(zr=zr.length>0&&zr[zr.length-1])&&(Gr[0]===6||Gr[0]===2)){$r=0;continue}if(Gr[0]===3&&(!zr||Gr[1]>zr[0]&&Gr[1]<zr[3])){$r.label=Gr[1];break}if(Gr[0]===6&&$r.label<zr[1]){$r.label=zr[1],zr=Gr;break}if(zr&&$r.label<zr[2]){$r.label=zr[2],$r.ops.push(Gr);break}zr[2]&&$r.ops.pop(),$r.trys.pop();continue}Gr=Fe.call(_r,$r)}catch(Yr){Gr=[6,Yr],jr=0}finally{Fr=zr=0}if(Gr[0]&5)throw Gr[1];return{value:Gr[0]?Gr[1]:void 0,done:!0}}},__importDefault$a=commonjsGlobal&&commonjsGlobal.__importDefault||function(_r){return _r&&_r.__esModule?_r:{default:_r}};Object.defineProperty(Synonyms$1,"__esModule",{value:!0});var Collections_1$4=__importDefault$a(Collections$1),RESOURCEPATH$8="/synonyms",Synonyms=function(){function _r(Fe,$r){this.collectionName=Fe,this.apiCall=$r}return _r.prototype.upsert=function(Fe,$r){return __awaiter$e(this,void 0,void 0,function(){return __generator$e(this,function(Fr){return[2,this.apiCall.put(this.endpointPath(Fe),$r)]})})},_r.prototype.retrieve=function(){return __awaiter$e(this,void 0,void 0,function(){return __generator$e(this,function(Fe){return[2,this.apiCall.get(this.endpointPath())]})})},_r.prototype.endpointPath=function(Fe){return"".concat(Collections_1$4.default.RESOURCEPATH,"/").concat(this.collectionName).concat(_r.RESOURCEPATH).concat(Fe===void 0?"":"/"+Fe)},Object.defineProperty(_r,"RESOURCEPATH",{get:function(){return RESOURCEPATH$8},enumerable:!1,configurable:!0}),_r}();Synonyms$1.default=Synonyms;var Synonym$1={},__awaiter$d=commonjsGlobal&&commonjsGlobal.__awaiter||function(_r,Fe,$r,Fr){function jr(zr){return zr instanceof $r?zr:new $r(function(Vr){Vr(zr)})}return new($r||($r=Promise))(function(zr,Vr){function Wr(Yr){try{Gr(Fr.next(Yr))}catch(Qr){Vr(Qr)}}function Kr(Yr){try{Gr(Fr.throw(Yr))}catch(Qr){Vr(Qr)}}function Gr(Yr){Yr.done?zr(Yr.value):jr(Yr.value).then(Wr,Kr)}Gr((Fr=Fr.apply(_r,Fe||[])).next())})},__generator$d=commonjsGlobal&&commonjsGlobal.__generator||function(_r,Fe){var $r={label:0,sent:function(){if(zr[0]&1)throw zr[1];return zr[1]},trys:[],ops:[]},Fr,jr,zr,Vr;return Vr={next:Wr(0),throw:Wr(1),return:Wr(2)},typeof Symbol=="function"&&(Vr[Symbol.iterator]=function(){return this}),Vr;function Wr(Gr){return function(Yr){return Kr([Gr,Yr])}}function Kr(Gr){if(Fr)throw new TypeError("Generator is already executing.");for(;$r;)try{if(Fr=1,jr&&(zr=Gr[0]&2?jr.return:Gr[0]?jr.throw||((zr=jr.return)&&zr.call(jr),0):jr.next)&&!(zr=zr.call(jr,Gr[1])).done)return zr;switch(jr=0,zr&&(Gr=[Gr[0]&2,zr.value]),Gr[0]){case 0:case 1:zr=Gr;break;case 4:return $r.label++,{value:Gr[1],done:!1};case 5:$r.label++,jr=Gr[1],Gr=[0];continue;case 7:Gr=$r.ops.pop(),$r.trys.pop();continue;default:if(zr=$r.trys,!(zr=zr.length>0&&zr[zr.length-1])&&(Gr[0]===6||Gr[0]===2)){$r=0;continue}if(Gr[0]===3&&(!zr||Gr[1]>zr[0]&&Gr[1]<zr[3])){$r.label=Gr[1];break}if(Gr[0]===6&&$r.label<zr[1]){$r.label=zr[1],zr=Gr;break}if(zr&&$r.label<zr[2]){$r.label=zr[2],$r.ops.push(Gr);break}zr[2]&&$r.ops.pop(),$r.trys.pop();continue}Gr=Fe.call(_r,$r)}catch(Yr){Gr=[6,Yr],jr=0}finally{Fr=zr=0}if(Gr[0]&5)throw Gr[1];return{value:Gr[0]?Gr[1]:void 0,done:!0}}},__importDefault$9=commonjsGlobal&&commonjsGlobal.__importDefault||function(_r){return _r&&_r.__esModule?_r:{default:_r}};Object.defineProperty(Synonym$1,"__esModule",{value:!0});var Collections_1$3=__importDefault$9(Collections$1),Synonyms_1$1=__importDefault$9(Synonyms$1),Synonym=function(){function _r(Fe,$r,Fr){this.collectionName=Fe,this.synonymId=$r,this.apiCall=Fr}return _r.prototype.retrieve=function(){return __awaiter$d(this,void 0,void 0,function(){return __generator$d(this,function(Fe){return[2,this.apiCall.get(this.endpointPath())]})})},_r.prototype.delete=function(){return __awaiter$d(this,void 0,void 0,function(){return __generator$d(this,function(Fe){return[2,this.apiCall.delete(this.endpointPath())]})})},_r.prototype.endpointPath=function(){return"".concat(Collections_1$3.default.RESOURCEPATH,"/").concat(this.collectionName).concat(Synonyms_1$1.default.RESOURCEPATH,"/").concat(this.synonymId)},_r}();Synonym$1.default=Synonym;var Document$2={},__awaiter$c=commonjsGlobal&&commonjsGlobal.__awaiter||function(_r,Fe,$r,Fr){function jr(zr){return zr instanceof $r?zr:new $r(function(Vr){Vr(zr)})}return new($r||($r=Promise))(function(zr,Vr){function Wr(Yr){try{Gr(Fr.next(Yr))}catch(Qr){Vr(Qr)}}function Kr(Yr){try{Gr(Fr.throw(Yr))}catch(Qr){Vr(Qr)}}function Gr(Yr){Yr.done?zr(Yr.value):jr(Yr.value).then(Wr,Kr)}Gr((Fr=Fr.apply(_r,Fe||[])).next())})},__generator$c=commonjsGlobal&&commonjsGlobal.__generator||function(_r,Fe){var $r={label:0,sent:function(){if(zr[0]&1)throw zr[1];return zr[1]},trys:[],ops:[]},Fr,jr,zr,Vr;return Vr={next:Wr(0),throw:Wr(1),return:Wr(2)},typeof Symbol=="function"&&(Vr[Symbol.iterator]=function(){return this}),Vr;function Wr(Gr){return function(Yr){return Kr([Gr,Yr])}}function Kr(Gr){if(Fr)throw new TypeError("Generator is already executing.");for(;$r;)try{if(Fr=1,jr&&(zr=Gr[0]&2?jr.return:Gr[0]?jr.throw||((zr=jr.return)&&zr.call(jr),0):jr.next)&&!(zr=zr.call(jr,Gr[1])).done)return zr;switch(jr=0,zr&&(Gr=[Gr[0]&2,zr.value]),Gr[0]){case 0:case 1:zr=Gr;break;case 4:return $r.label++,{value:Gr[1],done:!1};case 5:$r.label++,jr=Gr[1],Gr=[0];continue;case 7:Gr=$r.ops.pop(),$r.trys.pop();continue;default:if(zr=$r.trys,!(zr=zr.length>0&&zr[zr.length-1])&&(Gr[0]===6||Gr[0]===2)){$r=0;continue}if(Gr[0]===3&&(!zr||Gr[1]>zr[0]&&Gr[1]<zr[3])){$r.label=Gr[1];break}if(Gr[0]===6&&$r.label<zr[1]){$r.label=zr[1],zr=Gr;break}if(zr&&$r.label<zr[2]){$r.label=zr[2],$r.ops.push(Gr);break}zr[2]&&$r.ops.pop(),$r.trys.pop();continue}Gr=Fe.call(_r,$r)}catch(Yr){Gr=[6,Yr],jr=0}finally{Fr=zr=0}if(Gr[0]&5)throw Gr[1];return{value:Gr[0]?Gr[1]:void 0,done:!0}}},__importDefault$8=commonjsGlobal&&commonjsGlobal.__importDefault||function(_r){return _r&&_r.__esModule?_r:{default:_r}};Object.defineProperty(Document$2,"__esModule",{value:!0});Document$2.Document=void 0;var Collections_1$2=__importDefault$8(Collections$1),Documents_1$1=__importDefault$8(Documents$1),Document$1=function(){function _r(Fe,$r,Fr){this.collectionName=Fe,this.documentId=$r,this.apiCall=Fr}return _r.prototype.retrieve=function(){return __awaiter$c(this,void 0,void 0,function(){return __generator$c(this,function(Fe){return[2,this.apiCall.get(this.endpointPath())]})})},_r.prototype.delete=function(){return __awaiter$c(this,void 0,void 0,function(){return __generator$c(this,function(Fe){return[2,this.apiCall.delete(this.endpointPath())]})})},_r.prototype.update=function(Fe,$r){return $r===void 0&&($r={}),__awaiter$c(this,void 0,void 0,function(){return __generator$c(this,function(Fr){return[2,this.apiCall.patch(this.endpointPath(),Fe,$r)]})})},_r.prototype.endpointPath=function(){return"".concat(Collections_1$2.default.RESOURCEPATH,"/").concat(this.collectionName).concat(Documents_1$1.default.RESOURCEPATH,"/").concat(this.documentId)},_r}();Document$2.Document=Document$1;var __awaiter$b=commonjsGlobal&&commonjsGlobal.__awaiter||function(_r,Fe,$r,Fr){function jr(zr){return zr instanceof $r?zr:new $r(function(Vr){Vr(zr)})}return new($r||($r=Promise))(function(zr,Vr){function Wr(Yr){try{Gr(Fr.next(Yr))}catch(Qr){Vr(Qr)}}function Kr(Yr){try{Gr(Fr.throw(Yr))}catch(Qr){Vr(Qr)}}function Gr(Yr){Yr.done?zr(Yr.value):jr(Yr.value).then(Wr,Kr)}Gr((Fr=Fr.apply(_r,Fe||[])).next())})},__generator$b=commonjsGlobal&&commonjsGlobal.__generator||function(_r,Fe){var $r={label:0,sent:function(){if(zr[0]&1)throw zr[1];return zr[1]},trys:[],ops:[]},Fr,jr,zr,Vr;return Vr={next:Wr(0),throw:Wr(1),return:Wr(2)},typeof Symbol=="function"&&(Vr[Symbol.iterator]=function(){return this}),Vr;function Wr(Gr){return function(Yr){return Kr([Gr,Yr])}}function Kr(Gr){if(Fr)throw new TypeError("Generator is already executing.");for(;$r;)try{if(Fr=1,jr&&(zr=Gr[0]&2?jr.return:Gr[0]?jr.throw||((zr=jr.return)&&zr.call(jr),0):jr.next)&&!(zr=zr.call(jr,Gr[1])).done)return zr;switch(jr=0,zr&&(Gr=[Gr[0]&2,zr.value]),Gr[0]){case 0:case 1:zr=Gr;break;case 4:return $r.label++,{value:Gr[1],done:!1};case 5:$r.label++,jr=Gr[1],Gr=[0];continue;case 7:Gr=$r.ops.pop(),$r.trys.pop();continue;default:if(zr=$r.trys,!(zr=zr.length>0&&zr[zr.length-1])&&(Gr[0]===6||Gr[0]===2)){$r=0;continue}if(Gr[0]===3&&(!zr||Gr[1]>zr[0]&&Gr[1]<zr[3])){$r.label=Gr[1];break}if(Gr[0]===6&&$r.label<zr[1]){$r.label=zr[1],zr=Gr;break}if(zr&&$r.label<zr[2]){$r.label=zr[2],$r.ops.push(Gr);break}zr[2]&&$r.ops.pop(),$r.trys.pop();continue}Gr=Fe.call(_r,$r)}catch(Yr){Gr=[6,Yr],jr=0}finally{Fr=zr=0}if(Gr[0]&5)throw Gr[1];return{value:Gr[0]?Gr[1]:void 0,done:!0}}},__importDefault$7=commonjsGlobal&&commonjsGlobal.__importDefault||function(_r){return _r&&_r.__esModule?_r:{default:_r}};Object.defineProperty(Collection$1,"__esModule",{value:!0});var Collections_1$1=__importDefault$7(Collections$1),Documents_1=__importDefault$7(Documents$1),Errors_1=Errors$1,Overrides_1=__importDefault$7(Overrides$1),Override_1=__importDefault$7(Override$1),Synonyms_1=__importDefault$7(Synonyms$1),Synonym_1=__importDefault$7(Synonym$1),Document_1=Document$2,Collection=function(){function _r(Fe,$r,Fr){this.name=Fe,this.apiCall=$r,this.configuration=Fr,this.individualDocuments={},this.individualOverrides={},this.individualSynonyms={},this.name=Fe,this.apiCall=$r,this.configuration=Fr,this._documents=new Documents_1.default(this.name,this.apiCall,this.configuration),this._overrides=new Overrides_1.default(this.name,this.apiCall),this._synonyms=new Synonyms_1.default(this.name,this.apiCall)}return _r.prototype.retrieve=function(){return __awaiter$b(this,void 0,void 0,function(){return __generator$b(this,function(Fe){return[2,this.apiCall.get(this.endpointPath())]})})},_r.prototype.update=function(Fe){return __awaiter$b(this,void 0,void 0,function(){return __generator$b(this,function($r){return[2,this.apiCall.patch(this.endpointPath(),Fe)]})})},_r.prototype.delete=function(){return __awaiter$b(this,void 0,void 0,function(){return __generator$b(this,function(Fe){return[2,this.apiCall.delete(this.endpointPath())]})})},_r.prototype.exists=function(){return __awaiter$b(this,void 0,void 0,function(){var Fe;return __generator$b(this,function($r){switch($r.label){case 0:return $r.trys.push([0,2,,3]),[4,this.retrieve()];case 1:return $r.sent(),[2,!0];case 2:if(Fe=$r.sent(),Fe instanceof Errors_1.ObjectNotFound)return[2,!1];throw Fe;case 3:return[2]}})})},_r.prototype.documents=function(Fe){return Fe?(this.individualDocuments[Fe]===void 0&&(this.individualDocuments[Fe]=new Document_1.Document(this.name,Fe,this.apiCall)),this.individualDocuments[Fe]):this._documents},_r.prototype.overrides=function(Fe){return Fe===void 0?this._overrides:(this.individualOverrides[Fe]===void 0&&(this.individualOverrides[Fe]=new Override_1.default(this.name,Fe,this.apiCall)),this.individualOverrides[Fe])},_r.prototype.synonyms=function(Fe){return Fe===void 0?this._synonyms:(this.individualSynonyms[Fe]===void 0&&(this.individualSynonyms[Fe]=new Synonym_1.default(this.name,Fe,this.apiCall)),this.individualSynonyms[Fe])},_r.prototype.endpointPath=function(){return"".concat(Collections_1$1.default.RESOURCEPATH,"/").concat(this.name)},_r}();Collection$1.default=Collection;var Aliases$1={},__awaiter$a=commonjsGlobal&&commonjsGlobal.__awaiter||function(_r,Fe,$r,Fr){function jr(zr){return zr instanceof $r?zr:new $r(function(Vr){Vr(zr)})}return new($r||($r=Promise))(function(zr,Vr){function Wr(Yr){try{Gr(Fr.next(Yr))}catch(Qr){Vr(Qr)}}function Kr(Yr){try{Gr(Fr.throw(Yr))}catch(Qr){Vr(Qr)}}function Gr(Yr){Yr.done?zr(Yr.value):jr(Yr.value).then(Wr,Kr)}Gr((Fr=Fr.apply(_r,Fe||[])).next())})},__generator$a=commonjsGlobal&&commonjsGlobal.__generator||function(_r,Fe){var $r={label:0,sent:function(){if(zr[0]&1)throw zr[1];return zr[1]},trys:[],ops:[]},Fr,jr,zr,Vr;return Vr={next:Wr(0),throw:Wr(1),return:Wr(2)},typeof Symbol=="function"&&(Vr[Symbol.iterator]=function(){return this}),Vr;function Wr(Gr){return function(Yr){return Kr([Gr,Yr])}}function Kr(Gr){if(Fr)throw new TypeError("Generator is already executing.");for(;$r;)try{if(Fr=1,jr&&(zr=Gr[0]&2?jr.return:Gr[0]?jr.throw||((zr=jr.return)&&zr.call(jr),0):jr.next)&&!(zr=zr.call(jr,Gr[1])).done)return zr;switch(jr=0,zr&&(Gr=[Gr[0]&2,zr.value]),Gr[0]){case 0:case 1:zr=Gr;break;case 4:return $r.label++,{value:Gr[1],done:!1};case 5:$r.label++,jr=Gr[1],Gr=[0];continue;case 7:Gr=$r.ops.pop(),$r.trys.pop();continue;default:if(zr=$r.trys,!(zr=zr.length>0&&zr[zr.length-1])&&(Gr[0]===6||Gr[0]===2)){$r=0;continue}if(Gr[0]===3&&(!zr||Gr[1]>zr[0]&&Gr[1]<zr[3])){$r.label=Gr[1];break}if(Gr[0]===6&&$r.label<zr[1]){$r.label=zr[1],zr=Gr;break}if(zr&&$r.label<zr[2]){$r.label=zr[2],$r.ops.push(Gr);break}zr[2]&&$r.ops.pop(),$r.trys.pop();continue}Gr=Fe.call(_r,$r)}catch(Yr){Gr=[6,Yr],jr=0}finally{Fr=zr=0}if(Gr[0]&5)throw Gr[1];return{value:Gr[0]?Gr[1]:void 0,done:!0}}};Object.defineProperty(Aliases$1,"__esModule",{value:!0});var RESOURCEPATH$7="/aliases",Aliases=function(){function _r(Fe){this.apiCall=Fe}return _r.prototype.upsert=function(Fe,$r){return __awaiter$a(this,void 0,void 0,function(){return __generator$a(this,function(Fr){return[2,this.apiCall.put(this.endpointPath(Fe),$r)]})})},_r.prototype.retrieve=function(){return __awaiter$a(this,void 0,void 0,function(){return __generator$a(this,function(Fe){return[2,this.apiCall.get(RESOURCEPATH$7)]})})},_r.prototype.endpointPath=function(Fe){return"".concat(_r.RESOURCEPATH,"/").concat(Fe)},Object.defineProperty(_r,"RESOURCEPATH",{get:function(){return RESOURCEPATH$7},enumerable:!1,configurable:!0}),_r}();Aliases$1.default=Aliases;var Alias$1={},__awaiter$9=commonjsGlobal&&commonjsGlobal.__awaiter||function(_r,Fe,$r,Fr){function jr(zr){return zr instanceof $r?zr:new $r(function(Vr){Vr(zr)})}return new($r||($r=Promise))(function(zr,Vr){function Wr(Yr){try{Gr(Fr.next(Yr))}catch(Qr){Vr(Qr)}}function Kr(Yr){try{Gr(Fr.throw(Yr))}catch(Qr){Vr(Qr)}}function Gr(Yr){Yr.done?zr(Yr.value):jr(Yr.value).then(Wr,Kr)}Gr((Fr=Fr.apply(_r,Fe||[])).next())})},__generator$9=commonjsGlobal&&commonjsGlobal.__generator||function(_r,Fe){var $r={label:0,sent:function(){if(zr[0]&1)throw zr[1];return zr[1]},trys:[],ops:[]},Fr,jr,zr,Vr;return Vr={next:Wr(0),throw:Wr(1),return:Wr(2)},typeof Symbol=="function"&&(Vr[Symbol.iterator]=function(){return this}),Vr;function Wr(Gr){return function(Yr){return Kr([Gr,Yr])}}function Kr(Gr){if(Fr)throw new TypeError("Generator is already executing.");for(;$r;)try{if(Fr=1,jr&&(zr=Gr[0]&2?jr.return:Gr[0]?jr.throw||((zr=jr.return)&&zr.call(jr),0):jr.next)&&!(zr=zr.call(jr,Gr[1])).done)return zr;switch(jr=0,zr&&(Gr=[Gr[0]&2,zr.value]),Gr[0]){case 0:case 1:zr=Gr;break;case 4:return $r.label++,{value:Gr[1],done:!1};case 5:$r.label++,jr=Gr[1],Gr=[0];continue;case 7:Gr=$r.ops.pop(),$r.trys.pop();continue;default:if(zr=$r.trys,!(zr=zr.length>0&&zr[zr.length-1])&&(Gr[0]===6||Gr[0]===2)){$r=0;continue}if(Gr[0]===3&&(!zr||Gr[1]>zr[0]&&Gr[1]<zr[3])){$r.label=Gr[1];break}if(Gr[0]===6&&$r.label<zr[1]){$r.label=zr[1],zr=Gr;break}if(zr&&$r.label<zr[2]){$r.label=zr[2],$r.ops.push(Gr);break}zr[2]&&$r.ops.pop(),$r.trys.pop();continue}Gr=Fe.call(_r,$r)}catch(Yr){Gr=[6,Yr],jr=0}finally{Fr=zr=0}if(Gr[0]&5)throw Gr[1];return{value:Gr[0]?Gr[1]:void 0,done:!0}}},__importDefault$6=commonjsGlobal&&commonjsGlobal.__importDefault||function(_r){return _r&&_r.__esModule?_r:{default:_r}};Object.defineProperty(Alias$1,"__esModule",{value:!0});var Aliases_1$1=__importDefault$6(Aliases$1),Alias=function(){function _r(Fe,$r){this.name=Fe,this.apiCall=$r}return _r.prototype.retrieve=function(){return __awaiter$9(this,void 0,void 0,function(){return __generator$9(this,function(Fe){return[2,this.apiCall.get(this.endpointPath())]})})},_r.prototype.delete=function(){return __awaiter$9(this,void 0,void 0,function(){return __generator$9(this,function(Fe){return[2,this.apiCall.delete(this.endpointPath())]})})},_r.prototype.endpointPath=function(){return"".concat(Aliases_1$1.default.RESOURCEPATH,"/").concat(this.name)},_r}();Alias$1.default=Alias;var Keys$1={},__viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1),__awaiter$8=commonjsGlobal&&commonjsGlobal.__awaiter||function(_r,Fe,$r,Fr){function jr(zr){return zr instanceof $r?zr:new $r(function(Vr){Vr(zr)})}return new($r||($r=Promise))(function(zr,Vr){function Wr(Yr){try{Gr(Fr.next(Yr))}catch(Qr){Vr(Qr)}}function Kr(Yr){try{Gr(Fr.throw(Yr))}catch(Qr){Vr(Qr)}}function Gr(Yr){Yr.done?zr(Yr.value):jr(Yr.value).then(Wr,Kr)}Gr((Fr=Fr.apply(_r,Fe||[])).next())})},__generator$8=commonjsGlobal&&commonjsGlobal.__generator||function(_r,Fe){var $r={label:0,sent:function(){if(zr[0]&1)throw zr[1];return zr[1]},trys:[],ops:[]},Fr,jr,zr,Vr;return Vr={next:Wr(0),throw:Wr(1),return:Wr(2)},typeof Symbol=="function"&&(Vr[Symbol.iterator]=function(){return this}),Vr;function Wr(Gr){return function(Yr){return Kr([Gr,Yr])}}function Kr(Gr){if(Fr)throw new TypeError("Generator is already executing.");for(;$r;)try{if(Fr=1,jr&&(zr=Gr[0]&2?jr.return:Gr[0]?jr.throw||((zr=jr.return)&&zr.call(jr),0):jr.next)&&!(zr=zr.call(jr,Gr[1])).done)return zr;switch(jr=0,zr&&(Gr=[Gr[0]&2,zr.value]),Gr[0]){case 0:case 1:zr=Gr;break;case 4:return $r.label++,{value:Gr[1],done:!1};case 5:$r.label++,jr=Gr[1],Gr=[0];continue;case 7:Gr=$r.ops.pop(),$r.trys.pop();continue;default:if(zr=$r.trys,!(zr=zr.length>0&&zr[zr.length-1])&&(Gr[0]===6||Gr[0]===2)){$r=0;continue}if(Gr[0]===3&&(!zr||Gr[1]>zr[0]&&Gr[1]<zr[3])){$r.label=Gr[1];break}if(Gr[0]===6&&$r.label<zr[1]){$r.label=zr[1],zr=Gr;break}if(zr&&$r.label<zr[2]){$r.label=zr[2],$r.ops.push(Gr);break}zr[2]&&$r.ops.pop(),$r.trys.pop();continue}Gr=Fe.call(_r,$r)}catch(Yr){Gr=[6,Yr],jr=0}finally{Fr=zr=0}if(Gr[0]&5)throw Gr[1];return{value:Gr[0]?Gr[1]:void 0,done:!0}}};Object.defineProperty(Keys$1,"__esModule",{value:!0});var crypto_1=require$$0,RESOURCEPATH$6="/keys",Keys=function(){function _r(Fe){this.apiCall=Fe,this.apiCall=Fe}return _r.prototype.create=function(Fe){return __awaiter$8(this,void 0,void 0,function(){return __generator$8(this,function($r){return[2,this.apiCall.post(_r.RESOURCEPATH,Fe)]})})},_r.prototype.retrieve=function(){return __awaiter$8(this,void 0,void 0,function(){return __generator$8(this,function(Fe){return[2,this.apiCall.get(RESOURCEPATH$6)]})})},_r.prototype.generateScopedSearchKey=function(Fe,$r){var Fr=JSON.stringify($r),jr=Buffer.from((0,crypto_1.createHmac)("sha256",Fe).update(Fr).digest("base64")),zr=Fe.substr(0,4),Vr="".concat(jr).concat(zr).concat(Fr);return Buffer.from(Vr).toString("base64")},Object.defineProperty(_r,"RESOURCEPATH",{get:function(){return RESOURCEPATH$6},enumerable:!1,configurable:!0}),_r}();Keys$1.default=Keys;var Key$1={},__awaiter$7=commonjsGlobal&&commonjsGlobal.__awaiter||function(_r,Fe,$r,Fr){function jr(zr){return zr instanceof $r?zr:new $r(function(Vr){Vr(zr)})}return new($r||($r=Promise))(function(zr,Vr){function Wr(Yr){try{Gr(Fr.next(Yr))}catch(Qr){Vr(Qr)}}function Kr(Yr){try{Gr(Fr.throw(Yr))}catch(Qr){Vr(Qr)}}function Gr(Yr){Yr.done?zr(Yr.value):jr(Yr.value).then(Wr,Kr)}Gr((Fr=Fr.apply(_r,Fe||[])).next())})},__generator$7=commonjsGlobal&&commonjsGlobal.__generator||function(_r,Fe){var $r={label:0,sent:function(){if(zr[0]&1)throw zr[1];return zr[1]},trys:[],ops:[]},Fr,jr,zr,Vr;return Vr={next:Wr(0),throw:Wr(1),return:Wr(2)},typeof Symbol=="function"&&(Vr[Symbol.iterator]=function(){return this}),Vr;function Wr(Gr){return function(Yr){return Kr([Gr,Yr])}}function Kr(Gr){if(Fr)throw new TypeError("Generator is already executing.");for(;$r;)try{if(Fr=1,jr&&(zr=Gr[0]&2?jr.return:Gr[0]?jr.throw||((zr=jr.return)&&zr.call(jr),0):jr.next)&&!(zr=zr.call(jr,Gr[1])).done)return zr;switch(jr=0,zr&&(Gr=[Gr[0]&2,zr.value]),Gr[0]){case 0:case 1:zr=Gr;break;case 4:return $r.label++,{value:Gr[1],done:!1};case 5:$r.label++,jr=Gr[1],Gr=[0];continue;case 7:Gr=$r.ops.pop(),$r.trys.pop();continue;default:if(zr=$r.trys,!(zr=zr.length>0&&zr[zr.length-1])&&(Gr[0]===6||Gr[0]===2)){$r=0;continue}if(Gr[0]===3&&(!zr||Gr[1]>zr[0]&&Gr[1]<zr[3])){$r.label=Gr[1];break}if(Gr[0]===6&&$r.label<zr[1]){$r.label=zr[1],zr=Gr;break}if(zr&&$r.label<zr[2]){$r.label=zr[2],$r.ops.push(Gr);break}zr[2]&&$r.ops.pop(),$r.trys.pop();continue}Gr=Fe.call(_r,$r)}catch(Yr){Gr=[6,Yr],jr=0}finally{Fr=zr=0}if(Gr[0]&5)throw Gr[1];return{value:Gr[0]?Gr[1]:void 0,done:!0}}},__importDefault$5=commonjsGlobal&&commonjsGlobal.__importDefault||function(_r){return _r&&_r.__esModule?_r:{default:_r}};Object.defineProperty(Key$1,"__esModule",{value:!0});var Keys_1$1=__importDefault$5(Keys$1),Key=function(){function _r(Fe,$r){this.id=Fe,this.apiCall=$r}return _r.prototype.retrieve=function(){return __awaiter$7(this,void 0,void 0,function(){return __generator$7(this,function(Fe){return[2,this.apiCall.get(this.endpointPath())]})})},_r.prototype.delete=function(){return __awaiter$7(this,void 0,void 0,function(){return __generator$7(this,function(Fe){return[2,this.apiCall.delete(this.endpointPath())]})})},_r.prototype.endpointPath=function(){return"".concat(Keys_1$1.default.RESOURCEPATH,"/").concat(this.id)},_r}();Key$1.default=Key;var Debug$1={},__awaiter$6=commonjsGlobal&&commonjsGlobal.__awaiter||function(_r,Fe,$r,Fr){function jr(zr){return zr instanceof $r?zr:new $r(function(Vr){Vr(zr)})}return new($r||($r=Promise))(function(zr,Vr){function Wr(Yr){try{Gr(Fr.next(Yr))}catch(Qr){Vr(Qr)}}function Kr(Yr){try{Gr(Fr.throw(Yr))}catch(Qr){Vr(Qr)}}function Gr(Yr){Yr.done?zr(Yr.value):jr(Yr.value).then(Wr,Kr)}Gr((Fr=Fr.apply(_r,Fe||[])).next())})},__generator$6=commonjsGlobal&&commonjsGlobal.__generator||function(_r,Fe){var $r={label:0,sent:function(){if(zr[0]&1)throw zr[1];return zr[1]},trys:[],ops:[]},Fr,jr,zr,Vr;return Vr={next:Wr(0),throw:Wr(1),return:Wr(2)},typeof Symbol=="function"&&(Vr[Symbol.iterator]=function(){return this}),Vr;function Wr(Gr){return function(Yr){return Kr([Gr,Yr])}}function Kr(Gr){if(Fr)throw new TypeError("Generator is already executing.");for(;$r;)try{if(Fr=1,jr&&(zr=Gr[0]&2?jr.return:Gr[0]?jr.throw||((zr=jr.return)&&zr.call(jr),0):jr.next)&&!(zr=zr.call(jr,Gr[1])).done)return zr;switch(jr=0,zr&&(Gr=[Gr[0]&2,zr.value]),Gr[0]){case 0:case 1:zr=Gr;break;case 4:return $r.label++,{value:Gr[1],done:!1};case 5:$r.label++,jr=Gr[1],Gr=[0];continue;case 7:Gr=$r.ops.pop(),$r.trys.pop();continue;default:if(zr=$r.trys,!(zr=zr.length>0&&zr[zr.length-1])&&(Gr[0]===6||Gr[0]===2)){$r=0;continue}if(Gr[0]===3&&(!zr||Gr[1]>zr[0]&&Gr[1]<zr[3])){$r.label=Gr[1];break}if(Gr[0]===6&&$r.label<zr[1]){$r.label=zr[1],zr=Gr;break}if(zr&&$r.label<zr[2]){$r.label=zr[2],$r.ops.push(Gr);break}zr[2]&&$r.ops.pop(),$r.trys.pop();continue}Gr=Fe.call(_r,$r)}catch(Yr){Gr=[6,Yr],jr=0}finally{Fr=zr=0}if(Gr[0]&5)throw Gr[1];return{value:Gr[0]?Gr[1]:void 0,done:!0}}};Object.defineProperty(Debug$1,"__esModule",{value:!0});var RESOURCEPATH$5="/debug",Debug=function(){function _r(Fe){this.apiCall=Fe}return _r.prototype.retrieve=function(){return __awaiter$6(this,void 0,void 0,function(){return __generator$6(this,function(Fe){return[2,this.apiCall.get(RESOURCEPATH$5)]})})},_r}();Debug$1.default=Debug;var Metrics$1={},__awaiter$5=commonjsGlobal&&commonjsGlobal.__awaiter||function(_r,Fe,$r,Fr){function jr(zr){return zr instanceof $r?zr:new $r(function(Vr){Vr(zr)})}return new($r||($r=Promise))(function(zr,Vr){function Wr(Yr){try{Gr(Fr.next(Yr))}catch(Qr){Vr(Qr)}}function Kr(Yr){try{Gr(Fr.throw(Yr))}catch(Qr){Vr(Qr)}}function Gr(Yr){Yr.done?zr(Yr.value):jr(Yr.value).then(Wr,Kr)}Gr((Fr=Fr.apply(_r,Fe||[])).next())})},__generator$5=commonjsGlobal&&commonjsGlobal.__generator||function(_r,Fe){var $r={label:0,sent:function(){if(zr[0]&1)throw zr[1];return zr[1]},trys:[],ops:[]},Fr,jr,zr,Vr;return Vr={next:Wr(0),throw:Wr(1),return:Wr(2)},typeof Symbol=="function"&&(Vr[Symbol.iterator]=function(){return this}),Vr;function Wr(Gr){return function(Yr){return Kr([Gr,Yr])}}function Kr(Gr){if(Fr)throw new TypeError("Generator is already executing.");for(;$r;)try{if(Fr=1,jr&&(zr=Gr[0]&2?jr.return:Gr[0]?jr.throw||((zr=jr.return)&&zr.call(jr),0):jr.next)&&!(zr=zr.call(jr,Gr[1])).done)return zr;switch(jr=0,zr&&(Gr=[Gr[0]&2,zr.value]),Gr[0]){case 0:case 1:zr=Gr;break;case 4:return $r.label++,{value:Gr[1],done:!1};case 5:$r.label++,jr=Gr[1],Gr=[0];continue;case 7:Gr=$r.ops.pop(),$r.trys.pop();continue;default:if(zr=$r.trys,!(zr=zr.length>0&&zr[zr.length-1])&&(Gr[0]===6||Gr[0]===2)){$r=0;continue}if(Gr[0]===3&&(!zr||Gr[1]>zr[0]&&Gr[1]<zr[3])){$r.label=Gr[1];break}if(Gr[0]===6&&$r.label<zr[1]){$r.label=zr[1],zr=Gr;break}if(zr&&$r.label<zr[2]){$r.label=zr[2],$r.ops.push(Gr);break}zr[2]&&$r.ops.pop(),$r.trys.pop();continue}Gr=Fe.call(_r,$r)}catch(Yr){Gr=[6,Yr],jr=0}finally{Fr=zr=0}if(Gr[0]&5)throw Gr[1];return{value:Gr[0]?Gr[1]:void 0,done:!0}}};Object.defineProperty(Metrics$1,"__esModule",{value:!0});var RESOURCEPATH$4="/metrics.json",Metrics=function(){function _r(Fe){this.apiCall=Fe}return _r.prototype.retrieve=function(){return __awaiter$5(this,void 0,void 0,function(){return __generator$5(this,function(Fe){return[2,this.apiCall.get(RESOURCEPATH$4)]})})},_r}();Metrics$1.default=Metrics;var Health$1={},__awaiter$4=commonjsGlobal&&commonjsGlobal.__awaiter||function(_r,Fe,$r,Fr){function jr(zr){return zr instanceof $r?zr:new $r(function(Vr){Vr(zr)})}return new($r||($r=Promise))(function(zr,Vr){function Wr(Yr){try{Gr(Fr.next(Yr))}catch(Qr){Vr(Qr)}}function Kr(Yr){try{Gr(Fr.throw(Yr))}catch(Qr){Vr(Qr)}}function Gr(Yr){Yr.done?zr(Yr.value):jr(Yr.value).then(Wr,Kr)}Gr((Fr=Fr.apply(_r,Fe||[])).next())})},__generator$4=commonjsGlobal&&commonjsGlobal.__generator||function(_r,Fe){var $r={label:0,sent:function(){if(zr[0]&1)throw zr[1];return zr[1]},trys:[],ops:[]},Fr,jr,zr,Vr;return Vr={next:Wr(0),throw:Wr(1),return:Wr(2)},typeof Symbol=="function"&&(Vr[Symbol.iterator]=function(){return this}),Vr;function Wr(Gr){return function(Yr){return Kr([Gr,Yr])}}function Kr(Gr){if(Fr)throw new TypeError("Generator is already executing.");for(;$r;)try{if(Fr=1,jr&&(zr=Gr[0]&2?jr.return:Gr[0]?jr.throw||((zr=jr.return)&&zr.call(jr),0):jr.next)&&!(zr=zr.call(jr,Gr[1])).done)return zr;switch(jr=0,zr&&(Gr=[Gr[0]&2,zr.value]),Gr[0]){case 0:case 1:zr=Gr;break;case 4:return $r.label++,{value:Gr[1],done:!1};case 5:$r.label++,jr=Gr[1],Gr=[0];continue;case 7:Gr=$r.ops.pop(),$r.trys.pop();continue;default:if(zr=$r.trys,!(zr=zr.length>0&&zr[zr.length-1])&&(Gr[0]===6||Gr[0]===2)){$r=0;continue}if(Gr[0]===3&&(!zr||Gr[1]>zr[0]&&Gr[1]<zr[3])){$r.label=Gr[1];break}if(Gr[0]===6&&$r.label<zr[1]){$r.label=zr[1],zr=Gr;break}if(zr&&$r.label<zr[2]){$r.label=zr[2],$r.ops.push(Gr);break}zr[2]&&$r.ops.pop(),$r.trys.pop();continue}Gr=Fe.call(_r,$r)}catch(Yr){Gr=[6,Yr],jr=0}finally{Fr=zr=0}if(Gr[0]&5)throw Gr[1];return{value:Gr[0]?Gr[1]:void 0,done:!0}}};Object.defineProperty(Health$1,"__esModule",{value:!0});var RESOURCEPATH$3="/health",Health=function(){function _r(Fe){this.apiCall=Fe}return _r.prototype.retrieve=function(){return __awaiter$4(this,void 0,void 0,function(){return __generator$4(this,function(Fe){return[2,this.apiCall.get(RESOURCEPATH$3)]})})},_r}();Health$1.default=Health;var Operations$1={},__awaiter$3=commonjsGlobal&&commonjsGlobal.__awaiter||function(_r,Fe,$r,Fr){function jr(zr){return zr instanceof $r?zr:new $r(function(Vr){Vr(zr)})}return new($r||($r=Promise))(function(zr,Vr){function Wr(Yr){try{Gr(Fr.next(Yr))}catch(Qr){Vr(Qr)}}function Kr(Yr){try{Gr(Fr.throw(Yr))}catch(Qr){Vr(Qr)}}function Gr(Yr){Yr.done?zr(Yr.value):jr(Yr.value).then(Wr,Kr)}Gr((Fr=Fr.apply(_r,Fe||[])).next())})},__generator$3=commonjsGlobal&&commonjsGlobal.__generator||function(_r,Fe){var $r={label:0,sent:function(){if(zr[0]&1)throw zr[1];return zr[1]},trys:[],ops:[]},Fr,jr,zr,Vr;return Vr={next:Wr(0),throw:Wr(1),return:Wr(2)},typeof Symbol=="function"&&(Vr[Symbol.iterator]=function(){return this}),Vr;function Wr(Gr){return function(Yr){return Kr([Gr,Yr])}}function Kr(Gr){if(Fr)throw new TypeError("Generator is already executing.");for(;$r;)try{if(Fr=1,jr&&(zr=Gr[0]&2?jr.return:Gr[0]?jr.throw||((zr=jr.return)&&zr.call(jr),0):jr.next)&&!(zr=zr.call(jr,Gr[1])).done)return zr;switch(jr=0,zr&&(Gr=[Gr[0]&2,zr.value]),Gr[0]){case 0:case 1:zr=Gr;break;case 4:return $r.label++,{value:Gr[1],done:!1};case 5:$r.label++,jr=Gr[1],Gr=[0];continue;case 7:Gr=$r.ops.pop(),$r.trys.pop();continue;default:if(zr=$r.trys,!(zr=zr.length>0&&zr[zr.length-1])&&(Gr[0]===6||Gr[0]===2)){$r=0;continue}if(Gr[0]===3&&(!zr||Gr[1]>zr[0]&&Gr[1]<zr[3])){$r.label=Gr[1];break}if(Gr[0]===6&&$r.label<zr[1]){$r.label=zr[1],zr=Gr;break}if(zr&&$r.label<zr[2]){$r.label=zr[2],$r.ops.push(Gr);break}zr[2]&&$r.ops.pop(),$r.trys.pop();continue}Gr=Fe.call(_r,$r)}catch(Yr){Gr=[6,Yr],jr=0}finally{Fr=zr=0}if(Gr[0]&5)throw Gr[1];return{value:Gr[0]?Gr[1]:void 0,done:!0}}};Object.defineProperty(Operations$1,"__esModule",{value:!0});var RESOURCEPATH$2="/operations",Operations=function(){function _r(Fe){this.apiCall=Fe}return _r.prototype.perform=function(Fe,$r){return $r===void 0&&($r={}),__awaiter$3(this,void 0,void 0,function(){return __generator$3(this,function(Fr){return[2,this.apiCall.post("".concat(RESOURCEPATH$2,"/").concat(Fe),{},$r)]})})},_r}();Operations$1.default=Operations;var MultiSearch$1={},__awaiter$2=commonjsGlobal&&commonjsGlobal.__awaiter||function(_r,Fe,$r,Fr){function jr(zr){return zr instanceof $r?zr:new $r(function(Vr){Vr(zr)})}return new($r||($r=Promise))(function(zr,Vr){function Wr(Yr){try{Gr(Fr.next(Yr))}catch(Qr){Vr(Qr)}}function Kr(Yr){try{Gr(Fr.throw(Yr))}catch(Qr){Vr(Qr)}}function Gr(Yr){Yr.done?zr(Yr.value):jr(Yr.value).then(Wr,Kr)}Gr((Fr=Fr.apply(_r,Fe||[])).next())})},__generator$2=commonjsGlobal&&commonjsGlobal.__generator||function(_r,Fe){var $r={label:0,sent:function(){if(zr[0]&1)throw zr[1];return zr[1]},trys:[],ops:[]},Fr,jr,zr,Vr;return Vr={next:Wr(0),throw:Wr(1),return:Wr(2)},typeof Symbol=="function"&&(Vr[Symbol.iterator]=function(){return this}),Vr;function Wr(Gr){return function(Yr){return Kr([Gr,Yr])}}function Kr(Gr){if(Fr)throw new TypeError("Generator is already executing.");for(;$r;)try{if(Fr=1,jr&&(zr=Gr[0]&2?jr.return:Gr[0]?jr.throw||((zr=jr.return)&&zr.call(jr),0):jr.next)&&!(zr=zr.call(jr,Gr[1])).done)return zr;switch(jr=0,zr&&(Gr=[Gr[0]&2,zr.value]),Gr[0]){case 0:case 1:zr=Gr;break;case 4:return $r.label++,{value:Gr[1],done:!1};case 5:$r.label++,jr=Gr[1],Gr=[0];continue;case 7:Gr=$r.ops.pop(),$r.trys.pop();continue;default:if(zr=$r.trys,!(zr=zr.length>0&&zr[zr.length-1])&&(Gr[0]===6||Gr[0]===2)){$r=0;continue}if(Gr[0]===3&&(!zr||Gr[1]>zr[0]&&Gr[1]<zr[3])){$r.label=Gr[1];break}if(Gr[0]===6&&$r.label<zr[1]){$r.label=zr[1],zr=Gr;break}if(zr&&$r.label<zr[2]){$r.label=zr[2],$r.ops.push(Gr);break}zr[2]&&$r.ops.pop(),$r.trys.pop();continue}Gr=Fe.call(_r,$r)}catch(Yr){Gr=[6,Yr],jr=0}finally{Fr=zr=0}if(Gr[0]&5)throw Gr[1];return{value:Gr[0]?Gr[1]:void 0,done:!0}}},__importDefault$4=commonjsGlobal&&commonjsGlobal.__importDefault||function(_r){return _r&&_r.__esModule?_r:{default:_r}};Object.defineProperty(MultiSearch$1,"__esModule",{value:!0});var RequestWithCache_1=__importDefault$4(RequestWithCache$1),RESOURCEPATH$1="/multi_search",MultiSearch=function(){function _r(Fe,$r,Fr){Fr===void 0&&(Fr=!1),this.apiCall=Fe,this.configuration=$r,this.useTextContentType=Fr,this.requestWithCache=new RequestWithCache_1.default}return _r.prototype.clearCache=function(){this.requestWithCache.clearCache()},_r.prototype.perform=function(Fe,$r,Fr){$r===void 0&&($r={});var jr=Fr===void 0?{}:Fr,zr=jr.cacheSearchResultsForSeconds,Vr=zr===void 0?this.configuration.cacheSearchResultsForSeconds:zr;return __awaiter$2(this,void 0,void 0,function(){var Wr,Kr,Gr;return __generator$2(this,function(Yr){return Wr={},this.useTextContentType&&(Wr["content-type"]="text/plain"),Kr={},this.configuration.useServerSideSearchCache===!0&&(Kr.use_cache=!0),Gr=Object.assign({},$r,Kr),[2,this.requestWithCache.perform(this.apiCall,this.apiCall.post,[RESOURCEPATH$1,Fe,Gr,Wr],{cacheResponseForSeconds:Vr})]})})},_r}();MultiSearch$1.default=MultiSearch;var Presets$1={},__awaiter$1=commonjsGlobal&&commonjsGlobal.__awaiter||function(_r,Fe,$r,Fr){function jr(zr){return zr instanceof $r?zr:new $r(function(Vr){Vr(zr)})}return new($r||($r=Promise))(function(zr,Vr){function Wr(Yr){try{Gr(Fr.next(Yr))}catch(Qr){Vr(Qr)}}function Kr(Yr){try{Gr(Fr.throw(Yr))}catch(Qr){Vr(Qr)}}function Gr(Yr){Yr.done?zr(Yr.value):jr(Yr.value).then(Wr,Kr)}Gr((Fr=Fr.apply(_r,Fe||[])).next())})},__generator$1=commonjsGlobal&&commonjsGlobal.__generator||function(_r,Fe){var $r={label:0,sent:function(){if(zr[0]&1)throw zr[1];return zr[1]},trys:[],ops:[]},Fr,jr,zr,Vr;return Vr={next:Wr(0),throw:Wr(1),return:Wr(2)},typeof Symbol=="function"&&(Vr[Symbol.iterator]=function(){return this}),Vr;function Wr(Gr){return function(Yr){return Kr([Gr,Yr])}}function Kr(Gr){if(Fr)throw new TypeError("Generator is already executing.");for(;$r;)try{if(Fr=1,jr&&(zr=Gr[0]&2?jr.return:Gr[0]?jr.throw||((zr=jr.return)&&zr.call(jr),0):jr.next)&&!(zr=zr.call(jr,Gr[1])).done)return zr;switch(jr=0,zr&&(Gr=[Gr[0]&2,zr.value]),Gr[0]){case 0:case 1:zr=Gr;break;case 4:return $r.label++,{value:Gr[1],done:!1};case 5:$r.label++,jr=Gr[1],Gr=[0];continue;case 7:Gr=$r.ops.pop(),$r.trys.pop();continue;default:if(zr=$r.trys,!(zr=zr.length>0&&zr[zr.length-1])&&(Gr[0]===6||Gr[0]===2)){$r=0;continue}if(Gr[0]===3&&(!zr||Gr[1]>zr[0]&&Gr[1]<zr[3])){$r.label=Gr[1];break}if(Gr[0]===6&&$r.label<zr[1]){$r.label=zr[1],zr=Gr;break}if(zr&&$r.label<zr[2]){$r.label=zr[2],$r.ops.push(Gr);break}zr[2]&&$r.ops.pop(),$r.trys.pop();continue}Gr=Fe.call(_r,$r)}catch(Yr){Gr=[6,Yr],jr=0}finally{Fr=zr=0}if(Gr[0]&5)throw Gr[1];return{value:Gr[0]?Gr[1]:void 0,done:!0}}};Object.defineProperty(Presets$1,"__esModule",{value:!0});var RESOURCEPATH="/presets",Presets=function(){function _r(Fe){this.apiCall=Fe}return _r.prototype.upsert=function(Fe,$r){return __awaiter$1(this,void 0,void 0,function(){return __generator$1(this,function(Fr){return[2,this.apiCall.put(this.endpointPath(Fe),$r)]})})},_r.prototype.retrieve=function(){return __awaiter$1(this,void 0,void 0,function(){return __generator$1(this,function(Fe){return[2,this.apiCall.get(this.endpointPath())]})})},_r.prototype.endpointPath=function(Fe){return"".concat(_r.RESOURCEPATH).concat(Fe===void 0?"":"/"+Fe)},Object.defineProperty(_r,"RESOURCEPATH",{get:function(){return RESOURCEPATH},enumerable:!1,configurable:!0}),_r}();Presets$1.default=Presets;var Preset$1={},__awaiter=commonjsGlobal&&commonjsGlobal.__awaiter||function(_r,Fe,$r,Fr){function jr(zr){return zr instanceof $r?zr:new $r(function(Vr){Vr(zr)})}return new($r||($r=Promise))(function(zr,Vr){function Wr(Yr){try{Gr(Fr.next(Yr))}catch(Qr){Vr(Qr)}}function Kr(Yr){try{Gr(Fr.throw(Yr))}catch(Qr){Vr(Qr)}}function Gr(Yr){Yr.done?zr(Yr.value):jr(Yr.value).then(Wr,Kr)}Gr((Fr=Fr.apply(_r,Fe||[])).next())})},__generator=commonjsGlobal&&commonjsGlobal.__generator||function(_r,Fe){var $r={label:0,sent:function(){if(zr[0]&1)throw zr[1];return zr[1]},trys:[],ops:[]},Fr,jr,zr,Vr;return Vr={next:Wr(0),throw:Wr(1),return:Wr(2)},typeof Symbol=="function"&&(Vr[Symbol.iterator]=function(){return this}),Vr;function Wr(Gr){return function(Yr){return Kr([Gr,Yr])}}function Kr(Gr){if(Fr)throw new TypeError("Generator is already executing.");for(;$r;)try{if(Fr=1,jr&&(zr=Gr[0]&2?jr.return:Gr[0]?jr.throw||((zr=jr.return)&&zr.call(jr),0):jr.next)&&!(zr=zr.call(jr,Gr[1])).done)return zr;switch(jr=0,zr&&(Gr=[Gr[0]&2,zr.value]),Gr[0]){case 0:case 1:zr=Gr;break;case 4:return $r.label++,{value:Gr[1],done:!1};case 5:$r.label++,jr=Gr[1],Gr=[0];continue;case 7:Gr=$r.ops.pop(),$r.trys.pop();continue;default:if(zr=$r.trys,!(zr=zr.length>0&&zr[zr.length-1])&&(Gr[0]===6||Gr[0]===2)){$r=0;continue}if(Gr[0]===3&&(!zr||Gr[1]>zr[0]&&Gr[1]<zr[3])){$r.label=Gr[1];break}if(Gr[0]===6&&$r.label<zr[1]){$r.label=zr[1],zr=Gr;break}if(zr&&$r.label<zr[2]){$r.label=zr[2],$r.ops.push(Gr);break}zr[2]&&$r.ops.pop(),$r.trys.pop();continue}Gr=Fe.call(_r,$r)}catch(Yr){Gr=[6,Yr],jr=0}finally{Fr=zr=0}if(Gr[0]&5)throw Gr[1];return{value:Gr[0]?Gr[1]:void 0,done:!0}}},__importDefault$3=commonjsGlobal&&commonjsGlobal.__importDefault||function(_r){return _r&&_r.__esModule?_r:{default:_r}};Object.defineProperty(Preset$1,"__esModule",{value:!0});var Presets_1$1=__importDefault$3(Presets$1),Preset=function(){function _r(Fe,$r){this.presetId=Fe,this.apiCall=$r}return _r.prototype.retrieve=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(Fe){return[2,this.apiCall.get(this.endpointPath())]})})},_r.prototype.delete=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(Fe){return[2,this.apiCall.delete(this.endpointPath())]})})},_r.prototype.endpointPath=function(){return"".concat(Presets_1$1.default.RESOURCEPATH,"/").concat(this.presetId)},_r}();Preset$1.default=Preset;var __importDefault$2=commonjsGlobal&&commonjsGlobal.__importDefault||function(_r){return _r&&_r.__esModule?_r:{default:_r}};Object.defineProperty(Client$1,"__esModule",{value:!0});var Configuration_1$1=__importDefault$2(Configuration$1),ApiCall_1$1=__importDefault$2(ApiCall$1),Collections_1=__importDefault$2(Collections$1),Collection_1=__importDefault$2(Collection$1),Aliases_1=__importDefault$2(Aliases$1),Alias_1=__importDefault$2(Alias$1),Keys_1=__importDefault$2(Keys$1),Key_1=__importDefault$2(Key$1),Debug_1=__importDefault$2(Debug$1),Metrics_1=__importDefault$2(Metrics$1),Health_1=__importDefault$2(Health$1),Operations_1=__importDefault$2(Operations$1),MultiSearch_1$1=__importDefault$2(MultiSearch$1),Presets_1=__importDefault$2(Presets$1),Preset_1=__importDefault$2(Preset$1),Client=function(){function _r(Fe){var $r;Fe.sendApiKeyAsQueryParam=($r=Fe.sendApiKeyAsQueryParam)!==null&&$r!==void 0?$r:!1,this.configuration=new Configuration_1$1.default(Fe),this.apiCall=new ApiCall_1$1.default(this.configuration),this.debug=new Debug_1.default(this.apiCall),this.metrics=new Metrics_1.default(this.apiCall),this.health=new Health_1.default(this.apiCall),this.operations=new Operations_1.default(this.apiCall),this.multiSearch=new MultiSearch_1$1.default(this.apiCall,this.configuration),this._collections=new Collections_1.default(this.apiCall),this.individualCollections={},this._aliases=new Aliases_1.default(this.apiCall),this.individualAliases={},this._keys=new Keys_1.default(this.apiCall),this.individualKeys={},this._presets=new Presets_1.default(this.apiCall),this.individualPresets={}}return _r.prototype.collections=function(Fe){return Fe===void 0?this._collections:(this.individualCollections[Fe]===void 0&&(this.individualCollections[Fe]=new Collection_1.default(Fe,this.apiCall,this.configuration)),this.individualCollections[Fe])},_r.prototype.aliases=function(Fe){return Fe===void 0?this._aliases:(this.individualAliases[Fe]===void 0&&(this.individualAliases[Fe]=new Alias_1.default(Fe,this.apiCall)),this.individualAliases[Fe])},_r.prototype.keys=function(Fe){return Fe===void 0?this._keys:(this.individualKeys[Fe]===void 0&&(this.individualKeys[Fe]=new Key_1.default(Fe,this.apiCall)),this.individualKeys[Fe])},_r.prototype.presets=function(Fe){return Fe===void 0?this._presets:(this.individualPresets[Fe]===void 0&&(this.individualPresets[Fe]=new Preset_1.default(Fe,this.apiCall)),this.individualPresets[Fe])},_r}();Client$1.default=Client;var SearchClient$1={},SearchOnlyCollection$1={};Object.defineProperty(SearchOnlyCollection$1,"__esModule",{value:!0});SearchOnlyCollection$1.SearchOnlyCollection=void 0;var SearchOnlyDocuments_1=SearchOnlyDocuments$1,SearchOnlyCollection=function(){function _r(Fe,$r,Fr){this.name=Fe,this.apiCall=$r,this.configuration=Fr,this._documents=new SearchOnlyDocuments_1.SearchOnlyDocuments(this.name,this.apiCall,this.configuration)}return _r.prototype.documents=function(){return this._documents},_r}();SearchOnlyCollection$1.SearchOnlyCollection=SearchOnlyCollection;var __importDefault$1=commonjsGlobal&&commonjsGlobal.__importDefault||function(_r){return _r&&_r.__esModule?_r:{default:_r}};Object.defineProperty(SearchClient$1,"__esModule",{value:!0});var Configuration_1=__importDefault$1(Configuration$1),ApiCall_1=__importDefault$1(ApiCall$1),MultiSearch_1=__importDefault$1(MultiSearch$1),SearchOnlyCollection_1=SearchOnlyCollection$1,SearchClient=function(){function _r(Fe){var $r;Fe.sendApiKeyAsQueryParam=($r=Fe.sendApiKeyAsQueryParam)!==null&&$r!==void 0?$r:!0,Fe.sendApiKeyAsQueryParam===!0&&(Fe.apiKey||"").length>2e3&&(console.warn("[typesense] API Key is longer than 2000 characters which is over the allowed limit, so disabling sending it as a query parameter."),Fe.sendApiKeyAsQueryParam=!1),this.configuration=new Configuration_1.default(Fe),this.apiCall=new ApiCall_1.default(this.configuration),this.multiSearch=new MultiSearch_1.default(this.apiCall,this.configuration,!0),this.individualCollections={}}return _r.prototype.clearCache=function(){this.multiSearch.clearCache(),Object.entries(this.individualCollections).forEach(function(Fe){Fe[0];var $r=Fe[1];$r.documents().clearCache()})},_r.prototype.collections=function(Fe){if(Fe)return this.individualCollections[Fe]===void 0&&(this.individualCollections[Fe]=new SearchOnlyCollection_1.SearchOnlyCollection(Fe,this.apiCall,this.configuration)),this.individualCollections[Fe];throw new Error("Typesense.SearchClient only supports search operations, so the collectionName that needs to be searched must be specified. Use Typesense.Client if you need to access the collection object.")},_r}();SearchClient$1.default=SearchClient;var __createBinding=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_r,Fe,$r,Fr){Fr===void 0&&(Fr=$r);var jr=Object.getOwnPropertyDescriptor(Fe,$r);(!jr||("get"in jr?!Fe.__esModule:jr.writable||jr.configurable))&&(jr={enumerable:!0,get:function(){return Fe[$r]}}),Object.defineProperty(_r,Fr,jr)}:function(_r,Fe,$r,Fr){Fr===void 0&&(Fr=$r),_r[Fr]=Fe[$r]}),__setModuleDefault=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_r,Fe){Object.defineProperty(_r,"default",{enumerable:!0,value:Fe})}:function(_r,Fe){_r.default=Fe}),__importStar=commonjsGlobal&&commonjsGlobal.__importStar||function(_r){if(_r&&_r.__esModule)return _r;var Fe={};if(_r!=null)for(var $r in _r)$r!=="default"&&Object.prototype.hasOwnProperty.call(_r,$r)&&__createBinding(Fe,_r,$r);return __setModuleDefault(Fe,_r),Fe},__importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(_r){return _r&&_r.__esModule?_r:{default:_r}};Object.defineProperty(Typesense,"__esModule",{value:!0});Typesense.Errors=Typesense.SearchClient=Typesense.Client=void 0;var Client_1=__importDefault(Client$1);Typesense.Client=Client_1.default;var SearchClient_1=__importDefault(SearchClient$1);Typesense.SearchClient=SearchClient_1.default;var Errors=__importStar(Errors$1);Typesense.Errors=Errors;Typesense.default={Client:Client_1.default,SearchClient:SearchClient_1.default,Errors};var SearchRequestAdapter$1={},slicedToArray={exports:{}},arrayWithHoles={exports:{}};(function(_r){function Fe($r){if(Array.isArray($r))return $r}_r.exports=Fe,_r.exports.__esModule=!0,_r.exports.default=_r.exports})(arrayWithHoles);var iterableToArrayLimit={exports:{}};(function(_r){function Fe($r,Fr){var jr=$r==null?null:typeof Symbol!="undefined"&&$r[Symbol.iterator]||$r["@@iterator"];if(jr!=null){var zr,Vr,Wr,Kr,Gr=[],Yr=!0,Qr=!1;try{if(Wr=(jr=jr.call($r)).next,Fr===0){if(Object(jr)!==jr)return;Yr=!1}else for(;!(Yr=(zr=Wr.call(jr)).done)&&(Gr.push(zr.value),Gr.length!==Fr);Yr=!0);}catch(Jr){Qr=!0,Vr=Jr}finally{try{if(!Yr&&jr.return!=null&&(Kr=jr.return(),Object(Kr)!==Kr))return}finally{if(Qr)throw Vr}}return Gr}}_r.exports=Fe,_r.exports.__esModule=!0,_r.exports.default=_r.exports})(iterableToArrayLimit);var unsupportedIterableToArray={exports:{}},arrayLikeToArray={exports:{}};(function(_r){function Fe($r,Fr){(Fr==null||Fr>$r.length)&&(Fr=$r.length);for(var jr=0,zr=new Array(Fr);jr<Fr;jr++)zr[jr]=$r[jr];return zr}_r.exports=Fe,_r.exports.__esModule=!0,_r.exports.default=_r.exports})(arrayLikeToArray);(function(_r){var Fe=arrayLikeToArray.exports;function $r(Fr,jr){if(!!Fr){if(typeof Fr=="string")return Fe(Fr,jr);var zr=Object.prototype.toString.call(Fr).slice(8,-1);if(zr==="Object"&&Fr.constructor&&(zr=Fr.constructor.name),zr==="Map"||zr==="Set")return Array.from(Fr);if(zr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(zr))return Fe(Fr,jr)}}_r.exports=$r,_r.exports.__esModule=!0,_r.exports.default=_r.exports})(unsupportedIterableToArray);var nonIterableRest={exports:{}};(function(_r){function Fe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}_r.exports=Fe,_r.exports.__esModule=!0,_r.exports.default=_r.exports})(nonIterableRest);(function(_r){var Fe=arrayWithHoles.exports,$r=iterableToArrayLimit.exports,Fr=unsupportedIterableToArray.exports,jr=nonIterableRest.exports;function zr(Vr,Wr){return Fe(Vr)||$r(Vr,Wr)||Fr(Vr,Wr)||jr()}_r.exports=zr,_r.exports.__esModule=!0,_r.exports.default=_r.exports})(slicedToArray);var _interopRequireDefault$2=interopRequireDefault.exports;Object.defineProperty(SearchRequestAdapter$1,"__esModule",{value:!0});SearchRequestAdapter$1.SearchRequestAdapter=void 0;var _regenerator=_interopRequireDefault$2(regenerator),_asyncToGenerator2=_interopRequireDefault$2(asyncToGenerator.exports),_slicedToArray2$1=_interopRequireDefault$2(slicedToArray.exports),_classCallCheck2$2=_interopRequireDefault$2(classCallCheck.exports),_createClass2$2=_interopRequireDefault$2(createClass.exports),SearchRequestAdapter=function(){function _r(Fe,$r,Fr){(0,_classCallCheck2$2.default)(this,_r),this.instantsearchRequests=Fe,this.typesenseClient=$r,this.configuration=Fr,this.additionalSearchParameters=Fr.additionalSearchParameters,this.collectionSpecificSearchParameters=Fr.collectionSpecificSearchParameters}return(0,_createClass2$2.default)(_r,[{key:"_adaptFacetFilters",value:function($r){var Fr=this,jr="";if(!$r)return jr;var zr=$r.map(function(Vr){if(Array.isArray(Vr)){var Wr={};Vr.forEach(function(an){var sn=Fr._parseFacetFilter(an),dn=sn.fieldName,ln=sn.fieldValue;Wr[dn]=Wr[dn]||[],Wr[dn].push(ln)}),Object.keys(Wr).length>1&&console.error("[Typesense-Instantsearch-Adapter] Typesense does not support cross-field ORs at the moment. The adapter could not OR values between these fields: ".concat(Object.keys(Wr).join(",")));var Kr=Object.keys(Wr)[0],Gr=Wr[Kr],Yr=Gr.reduce(function(an,sn){return sn.startsWith("-")&&!Fr._isNumber(sn)?an[0].push(sn.substring(1)):an[1].push(sn),an},[[],[]]),Qr=(0,_slicedToArray2$1.default)(Yr,2),Jr=Qr[0],Zr=Qr[1],tn=[];Zr.length>0&&tn.push("".concat(Kr,":=[").concat(Zr.map(function(an){return Fr._escapeFacetValue(an)}).join(","),"]")),Jr.length>0&&tn.push("".concat(Kr,":!=[").concat(Jr.map(function(an){return Fr._escapeFacetValue(an)}).join(","),"]"));var en=tn.filter(function(an){return an}).join(" && ");return en}else{var rn=Fr._parseFacetFilter(Vr),nn=rn.fieldName,on=rn.fieldValue,un;return on.startsWith("-")&&!Fr._isNumber(on)?un="".concat(nn,":!=[").concat(Fr._escapeFacetValue(on.substring(1)),"]"):un="".concat(nn,":=[").concat(Fr._escapeFacetValue(on),"]"),un}});return jr=zr.join(" && "),jr}},{key:"_parseFacetFilter",value:function($r){var Fr,jr,zr,Vr,Wr;if(((Fr=this.configuration.facetableFieldsWithSpecialCharacters)===null||Fr===void 0?void 0:Fr.length)>0){var Kr=this.configuration.facetableFieldsWithSpecialCharacters.flat().map(function(Gr){return Gr.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")});if(jr=new RegExp("^(".concat(Kr.join("|"),"):(.*)$")),zr=$r.match(jr),zr!=null)return Vr="".concat(zr[1]),Wr="".concat(zr[2]),{fieldName:Vr,fieldValue:Wr}}return jr=this.constructor.DEFAULT_FACET_FILTER_STRING_MATCHING_REGEX,zr=$r.match(jr),zr==null?console.error("[Typesense-Instantsearch-Adapter] Parsing failed for a facet filter `".concat($r,"` with the Regex `").concat(jr,"`. If you have field names with special characters, be sure to add them to a parameter called `facetableFieldsWithSpecialCharacters` when instantiating the adapter.")):(Vr="".concat(zr[1]).concat(zr[2]),Wr="".concat(zr[3])),{fieldName:Vr,fieldValue:Wr}}},{key:"_escapeFacetValue",value:function($r){return typeof $r=="boolean"||$r==="true"||$r==="false"||this._isNumber($r)?$r:"`".concat($r,"`")}},{key:"_isNumber",value:function($r){return Number.isInteger($r%1)||!!($r%1)}},{key:"_adaptNumericFilters",value:function($r){var Fr=this,jr="";if(!$r)return jr;var zr={};$r.forEach(function(Wr){var Kr=Fr._parseNumericFilter(Wr),Gr=Kr.fieldName,Yr=Kr.operator,Qr=Kr.fieldValue;zr[Gr]=zr[Gr]||{},zr[Gr][Yr]=Qr});var Vr=[];return Object.keys(zr).forEach(function(Wr){zr[Wr]["<="]!=null&&zr[Wr][">="]!=null?Vr.push("".concat(Wr,":=[").concat(zr[Wr][">="],"..").concat(zr[Wr]["<="],"]")):zr[Wr]["<="]!=null?Vr.push("".concat(Wr,":<=").concat(zr[Wr]["<="])):zr[Wr][">="]!=null?Vr.push("".concat(Wr,":>=").concat(zr[Wr][">="])):zr[Wr]["="]!=null?Vr.push("".concat(Wr,":=").concat(zr[Wr]["="])):console.warn("[Typesense-Instantsearch-Adapter] Unsupported operator found ".concat(JSON.stringify(zr[Wr])))}),jr=Vr.join(" && "),jr}},{key:"_parseNumericFilter",value:function($r){var Fr,jr,zr,Vr,Wr,Kr;if(((Fr=this.configuration.facetableFieldsWithSpecialCharacters)===null||Fr===void 0?void 0:Fr.length)>0){var Gr=this.configuration.facetableFieldsWithSpecialCharacters.map(function(tn){return tn.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")});if(jr=new RegExp("^(".concat(Gr.join("|"),")(<=|>=|>|<|=)(.*)$")),zr=$r.match(jr),zr!=null){var Yr=zr,Qr=(0,_slicedToArray2$1.default)(Yr,4);return Vr=Qr[1],Wr=Qr[2],Kr=Qr[3],{fieldName:Vr,operator:Wr,fieldValue:Kr}}}if(jr=this.constructor.DEFAULT_NUMERIC_FILTER_STRING_MATCHING_REGEX,zr=$r.match(jr),zr==null)console.error("[Typesense-Instantsearch-Adapter] Parsing failed for a numeric filter `".concat($r,"` with the Regex `").concat(jr,"`. If you have field names with special characters, be sure to add them to a parameter called `facetableFieldsWithSpecialCharacters` when instantiating the adapter."));else{var Jr=zr,Zr=(0,_slicedToArray2$1.default)(Jr,4);Vr=Zr[1],Wr=Zr[2],Kr=Zr[3]}return{fieldName:Vr,operator:Wr,fieldValue:Kr}}},{key:"_adaptGeoFilter",value:function($r){var Fr=$r.insideBoundingBox,jr=$r.aroundRadius,zr=$r.aroundLatLng,Vr=$r.insidePolygon;if(Fr){var Wr,Kr,Gr,Yr;if(Array.isArray(Fr)){var Qr=Fr.flat(),Jr=(0,_slicedToArray2$1.default)(Qr,4);Wr=Jr[0],Kr=Jr[1],Gr=Jr[2],Yr=Jr[3]}else{var Zr=Fr.split(","),tn=(0,_slicedToArray2$1.default)(Zr,4);Wr=tn[0],Kr=tn[1],Gr=tn[2],Yr=tn[3]}return"".concat(this.configuration.geoLocationField,":(").concat(Wr,", ").concat(Kr,", ").concat(Wr,", ").concat(Yr,", ").concat(Gr,", ").concat(Yr,", ").concat(Gr,", ").concat(Kr,")")}if(zr||jr){if(!jr||jr==="all")throw new Error("[Typesense-Instantsearch-Adapter] In Typesense, geo-filtering around a lat/lng also requires a numerical radius. So the `aroundRadius` parameter is required when `aroundLatLng` is used. If you intend to just geo-sort around a lat/long, you want to use the sortBy InstantSearch widget (or a virtual sortBy custom widget).");var en="".concat(parseFloat(jr)/1e3," km");return"".concat(this.configuration.geoLocationField,":(").concat(zr,", ").concat(en,")")}if(Vr){var rn=Vr;return Array.isArray(Vr)&&(rn=Vr.flat().join(",")),"".concat(this.configuration.geoLocationField,":(").concat(rn,")")}}},{key:"_adaptFilters",value:function($r){var Fr=[];return $r.filters&&Fr.push($r.filters),Fr.push(this._adaptFacetFilters($r.facetFilters)),Fr.push(this._adaptNumericFilters($r.numericFilters)),Fr.push(this._adaptGeoFilter($r)),Fr.filter(function(jr){return jr&&jr!==""}).join(" && ")}},{key:"_adaptIndexName",value:function($r){return $r.match(this.constructor.INDEX_NAME_MATCHING_REGEX)[1]}},{key:"_adaptSortBy",value:function($r){return $r.match(this.constructor.INDEX_NAME_MATCHING_REGEX)[3]}},{key:"_buildSearchParameters",value:function($r){for(var Fr=$r.params,jr=$r.indexName,zr=this._adaptIndexName(jr),Vr={},Wr=0,Kr=Object.entries(this.additionalSearchParameters);Wr<Kr.length;Wr++){var Gr=(0,_slicedToArray2$1.default)(Kr[Wr],2),Yr=Gr[0],Qr=Gr[1];Vr[this._camelToSnakeCase(Yr)]=Qr}if(this.collectionSpecificSearchParameters[zr])for(var Jr=0,Zr=Object.entries(this.collectionSpecificSearchParameters[zr]);Jr<Zr.length;Jr++){var tn=(0,_slicedToArray2$1.default)(Zr[Jr],2),en=tn[0],rn=tn[1];Vr[this._camelToSnakeCase(en)]=rn}var nn=Object.assign({},Vr),on=this._adaptSortBy(jr);return Object.assign(nn,{collection:zr,q:Fr.query===""||Fr.query===void 0?"*":Fr.query,facet_by:[Fr.facets].flat().join(","),filter_by:this._adaptFilters(Fr)||Vr.filter_by,sort_by:on||Vr.sort_by,max_facet_values:Fr.maxValuesPerFacet,page:(Fr.page||0)+1}),Fr.hitsPerPage&&(nn.per_page=Fr.hitsPerPage),Fr.facetQuery&&(nn.facet_query="".concat(Fr.facetName,":").concat(Fr.facetQuery),nn.per_page=0),Fr.typesenseVectorQuery&&(nn.vector_query=Fr.typesenseVectorQuery,nn.q="*"),Object.fromEntries(Object.entries(nn).filter(function(un){var an=(0,_slicedToArray2$1.default)(un,2);an[0];var sn=an[1];return sn!=null&&sn!==""}))}},{key:"_camelToSnakeCase",value:function($r){return $r.split(/(?=[A-Z])/).join("_").toLowerCase()}},{key:"request",value:function(){var Fe=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function Fr(){var jr=this,zr;return _regenerator.default.wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:return zr=this.instantsearchRequests.map(function(Kr){return jr._buildSearchParameters(Kr)}),Wr.abrupt("return",this.typesenseClient.multiSearch.perform({searches:zr}));case 2:case"end":return Wr.stop()}},Fr,this)}));function $r(){return Fe.apply(this,arguments)}return $r}()}],[{key:"INDEX_NAME_MATCHING_REGEX",get:function(){return new RegExp("^(.+?)(?=(/sort/(.*))|$)")}},{key:"DEFAULT_FACET_FILTER_STRING_MATCHING_REGEX",get:function(){return new RegExp("(.*)((?!:).):(?!:)(.*)")}},{key:"DEFAULT_NUMERIC_FILTER_STRING_MATCHING_REGEX",get:function(){return new RegExp("(.*?)(<=|>=|>|<|=)(.*)")}}]),_r}();SearchRequestAdapter$1.SearchRequestAdapter=SearchRequestAdapter;var SearchResponseAdapter$1={},toConsumableArray={exports:{}},arrayWithoutHoles={exports:{}};(function(_r){var Fe=arrayLikeToArray.exports;function $r(Fr){if(Array.isArray(Fr))return Fe(Fr)}_r.exports=$r,_r.exports.__esModule=!0,_r.exports.default=_r.exports})(arrayWithoutHoles);var iterableToArray={exports:{}};(function(_r){function Fe($r){if(typeof Symbol!="undefined"&&$r[Symbol.iterator]!=null||$r["@@iterator"]!=null)return Array.from($r)}_r.exports=Fe,_r.exports.__esModule=!0,_r.exports.default=_r.exports})(iterableToArray);var nonIterableSpread={exports:{}};(function(_r){function Fe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}_r.exports=Fe,_r.exports.__esModule=!0,_r.exports.default=_r.exports})(nonIterableSpread);(function(_r){var Fe=arrayWithoutHoles.exports,$r=iterableToArray.exports,Fr=unsupportedIterableToArray.exports,jr=nonIterableSpread.exports;function zr(Vr){return Fe(Vr)||$r(Vr)||Fr(Vr)||jr()}_r.exports=zr,_r.exports.__esModule=!0,_r.exports.default=_r.exports})(toConsumableArray);var defineProperty={exports:{}};(function(_r){var Fe=toPropertyKey.exports;function $r(Fr,jr,zr){return jr=Fe(jr),jr in Fr?Object.defineProperty(Fr,jr,{value:zr,enumerable:!0,configurable:!0,writable:!0}):Fr[jr]=zr,Fr}_r.exports=$r,_r.exports.__esModule=!0,_r.exports.default=_r.exports})(defineProperty);var utils$1={};Object.defineProperty(utils$1,"__esModule",{value:!0});utils$1.utils=void 0;var utils={_adaptHighlightTag:function _r(Fe,$r,Fr){return Fe.replace(new RegExp("<mark>","g"),$r||"<mark>").replace(new RegExp("</mark>","g"),Fr||"</mark>")},_adaptNumberOfPages:function _r(){var Fe=this.typesenseResponse.found/this.typesenseResponse.request_params.per_page;return Number.isFinite(Fe)?Math.ceil(Fe):1}};utils$1.utils=utils;var _interopRequireDefault$1=interopRequireDefault.exports;Object.defineProperty(SearchResponseAdapter$1,"__esModule",{value:!0});SearchResponseAdapter$1.SearchResponseAdapter=void 0;var _typeof2=_interopRequireDefault$1(_typeof$z.exports),_slicedToArray2=_interopRequireDefault$1(slicedToArray.exports),_toConsumableArray2=_interopRequireDefault$1(toConsumableArray.exports),_defineProperty2=_interopRequireDefault$1(defineProperty.exports),_classCallCheck2$1=_interopRequireDefault$1(classCallCheck.exports),_createClass2$1=_interopRequireDefault$1(createClass.exports),_utils$1=utils$1;function ownKeys$w(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$w(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$w(Object($r),!0).forEach(function(Fr){(0,_defineProperty2.default)(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$w(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}var SearchResponseAdapter=function(){function _r(Fe,$r,Fr){(0,_classCallCheck2$1.default)(this,_r),this.typesenseResponse=Fe,this.instantsearchRequest=$r,this.configuration=Fr}return(0,_createClass2$1.default)(_r,[{key:"_adaptGroupedHits",value:function($r){var Fr=this,jr=[];return jr=$r.map(function(zr){var Vr=Fr._adaptHits(zr.hits);return Vr.forEach(function(Wr){Wr.group_key=Wr._group_key=zr.group_key,zr.found&&(Wr._group_found=zr.found)}),Vr}),jr=jr.flat(),jr}},{key:"_adaptHits",value:function($r){var Fr=this,jr=[];return jr=$r.map(function(zr){var Vr=_objectSpread$w({},zr.document);Vr.objectID=zr.document.id,Vr._snippetResult=Fr._adaptHighlightResult(zr,"snippet"),Vr._highlightResult=Fr._adaptHighlightResult(zr,"value"),Vr._rawTypesenseHit=zr,["text_match","geo_distance_meters","curated","text_match_info"].forEach(function(Kr){Object.keys(zr).includes(Kr)&&!Object.keys(Vr).includes(Kr)&&(Vr[Kr]=zr[Kr])});var Wr=Vr[Fr.configuration.geoLocationField];return Wr&&(Vr._geoloc={lat:Wr[0],lng:Wr[1]}),Vr}),jr}},{key:"_adaptHighlightResult",value:function($r,Fr){var jr={};return $r.highlight!=null&&this.isHighlightPost0240RCN32Format($r.highlight)?this.adaptHighlightObject($r,jr,Fr):this.adaptHighlightsArray($r,jr,Fr),jr}},{key:"isHighlightPost0240RCN32Format",value:function($r){return $r.full==null&&$r.snippet==null}},{key:"adaptHighlightsArray",value:function($r,Fr,jr){var zr=this;Object.assign.apply(Object,[Fr].concat((0,_toConsumableArray2.default)(Object.entries($r.document).map(function(Vr){var Wr=(0,_slicedToArray2.default)(Vr,2),Kr=Wr[0],Gr=Wr[1];return(0,_defineProperty2.default)({},Kr,{value:Gr,matchLevel:"none",matchedWords:[]})})))),$r.highlights.forEach(function(Vr){Fr[Vr.field]={value:Vr[jr]||Vr["".concat(jr,"s")],matchLevel:"full",matchedWords:Vr.matched_tokens},Vr.indices&&(Fr[Vr.field].matchedIndices=Vr.indices)}),Object.entries(Fr).forEach(function(Vr){var Wr=(0,_slicedToArray2.default)(Vr,2),Kr=Wr[0],Gr=Wr[1],Yr=Kr,Qr=Gr.value,Jr=Gr.matchLevel,Zr=Gr.matchedWords,tn=Gr.matchedIndices;Qr==null?Fr[Yr]=zr._adaptHighlightNullValue():Array.isArray(Qr)?(Fr[Yr]=[],$r.document[Yr].forEach(function(en,rn){tn&&tn.includes(rn)?Fr[Yr].push({value:zr._adaptHighlightTag("".concat(Qr[tn.indexOf(rn)]),zr.instantsearchRequest.params.highlightPreTag,zr.instantsearchRequest.params.highlightPostTag),matchLevel:Jr,matchedWords:Zr[rn]}):(0,_typeof2.default)(en)==="object"?Fr[Yr].push(zr._adaptHighlightInObjectValue(en,{},jr)):Fr[Yr].push({value:"".concat(en),matchLevel:"none",matchedWords:[]})})):(0,_typeof2.default)(Qr)==="object"?Fr[Yr]=zr._adaptHighlightInObjectValue(Qr,{},jr):Fr[Yr].value=zr._adaptHighlightTag("".concat(Qr),zr.instantsearchRequest.params.highlightPreTag,zr.instantsearchRequest.params.highlightPostTag)})}},{key:"adaptHighlightObject",value:function($r,Fr,jr){Object.assign(Fr,this._adaptHighlightInObjectValue($r.document,$r.highlight,jr))}},{key:"_adaptHighlightInObjectValue",value:function($r,Fr,jr){var zr=this;return Object.assign.apply(Object,[{}].concat((0,_toConsumableArray2.default)(Object.entries($r).map(function(Vr){var Wr=(0,_slicedToArray2.default)(Vr,2),Kr=Wr[0],Gr=Wr[1],Yr;if(Gr==null)Yr=zr._adaptHighlightNullValue();else if(Array.isArray(Gr)){var Qr;Yr=zr._adaptHighlightInArrayValue(Gr,(Qr=Fr==null?void 0:Fr[Kr])!==null&&Qr!==void 0?Qr:[],jr)}else if((0,_typeof2.default)(Gr)==="object"){var Jr;Yr=zr._adaptHighlightInObjectValue(Gr,(Jr=Fr==null?void 0:Fr[Kr])!==null&&Jr!==void 0?Jr:{},jr)}else Yr=zr._adaptHighlightInPrimitiveValue(Gr,Fr==null?void 0:Fr[Kr],jr);return(0,_defineProperty2.default)({},Kr,Yr)}))))}},{key:"_adaptHighlightInArrayValue",value:function($r,Fr,jr){var zr=this;return $r.map(function(Vr,Wr){var Kr;if(Vr==null)Kr=zr._adaptHighlightNullValue();else if(Array.isArray(Vr)){var Gr;Kr=zr._adaptHighlightInArrayValue(Vr,(Gr=Fr==null?void 0:Fr[Wr])!==null&&Gr!==void 0?Gr:[],jr)}else if((0,_typeof2.default)(Vr)==="object"){var Yr;Kr=zr._adaptHighlightInObjectValue(Vr,(Yr=Fr==null?void 0:Fr[Wr])!==null&&Yr!==void 0?Yr:{},jr)}else Kr=zr._adaptHighlightInPrimitiveValue(Vr,Fr==null?void 0:Fr[Wr],jr);return Kr})}},{key:"_adaptHighlightInPrimitiveValue",value:function($r,Fr,jr){if(Fr!=null){var zr,Vr;return{value:this._adaptHighlightTag("".concat((zr=(Vr=Fr[jr])!==null&&Vr!==void 0?Vr:Fr.highlight)!==null&&zr!==void 0?zr:Fr.snippet),this.instantsearchRequest.params.highlightPreTag,this.instantsearchRequest.params.highlightPostTag),matchLevel:(Fr.matched_tokens||[]).length>0?"full":"none",matchedWords:Fr.matched_tokens||[]}}else return{value:this._adaptHighlightTag("".concat($r),this.instantsearchRequest.params.highlightPreTag,this.instantsearchRequest.params.highlightPostTag),matchLevel:"none",matchedWords:[]}}},{key:"_adaptHighlightNullValue",value:function(){return{value:"",matchLevel:"none",matchedWords:[]}}},{key:"_adaptFacets",value:function($r){var Fr={};return $r.forEach(function(jr){Object.assign(Fr,(0,_defineProperty2.default)({},jr.field_name,Object.assign.apply(Object,[{}].concat((0,_toConsumableArray2.default)(jr.counts.map(function(zr){return(0,_defineProperty2.default)({},zr.value,zr.count)}))))))}),Fr}},{key:"_adaptFacetStats",value:function($r){var Fr={};return $r.forEach(function(jr){Object.keys(jr.stats).length>0&&Object.assign(Fr,(0,_defineProperty2.default)({},jr.field_name,jr.stats))}),Fr}},{key:"_adaptRenderingContent",value:function($r){var Fr,jr,zr=Object.assign({},this.configuration.renderingContent);return((Fr=zr.facetOrdering)===null||Fr===void 0||(jr=Fr.facets)===null||jr===void 0?void 0:jr.order)==null&&(zr.facetOrdering=zr.facetOrdering||{},zr.facetOrdering.facets=zr.facetOrdering.facets||{},zr.facetOrdering.facets.order=$r.map(function(Vr){return Vr.field_name})),zr}},{key:"adapt",value:function(){var $r=this._adaptRenderingContent(this.typesenseResponse.facet_counts||[]),Fr=_objectSpread$w({hits:this.typesenseResponse.grouped_hits?this._adaptGroupedHits(this.typesenseResponse.grouped_hits):this._adaptHits(this.typesenseResponse.hits),nbHits:this.typesenseResponse.found,page:this.typesenseResponse.page-1,nbPages:this._adaptNumberOfPages(),hitsPerPage:this.typesenseResponse.request_params.per_page,facets:this._adaptFacets(this.typesenseResponse.facet_counts||[]),facets_stats:this._adaptFacetStats(this.typesenseResponse.facet_counts||{}),query:this.typesenseResponse.request_params.q,processingTimeMS:this.typesenseResponse.search_time_ms},Object.keys($r).length>0?{renderingContent:$r}:null);return Fr}}]),_r}();SearchResponseAdapter$1.SearchResponseAdapter=SearchResponseAdapter;Object.assign(SearchResponseAdapter.prototype,_utils$1.utils);var FacetSearchResponseAdapter$1={},_interopRequireDefault=interopRequireDefault.exports;Object.defineProperty(FacetSearchResponseAdapter$1,"__esModule",{value:!0});FacetSearchResponseAdapter$1.FacetSearchResponseAdapter=void 0;var _classCallCheck2=_interopRequireDefault(classCallCheck.exports),_createClass2=_interopRequireDefault(createClass.exports),_utils=utils$1,FacetSearchResponseAdapter=function(){function _r(Fe,$r){(0,_classCallCheck2.default)(this,_r),this.typesenseResponse=Fe,this.instantsearchRequest=$r}return(0,_createClass2.default)(_r,[{key:"_adaptFacetHits",value:function($r){var Fr=this,jr={},zr=$r.find(function(Vr){return Vr.field_name===Fr.instantsearchRequest.params.facetName});return jr=zr.counts.map(function(Vr){return{value:Vr.value,highlighted:Fr._adaptHighlightTag(Vr.highlighted,Fr.instantsearchRequest.params.highlightPreTag,Fr.instantsearchRequest.params.highlightPostTag),count:Vr.count}}),jr}},{key:"adapt",value:function(){var $r={facetHits:this._adaptFacetHits(this.typesenseResponse.facet_counts),exhaustiveFacetsCount:!0,processingTimeMS:this.typesenseResponse.search_time_ms};return $r}}]),_r}();FacetSearchResponseAdapter$1.FacetSearchResponseAdapter=FacetSearchResponseAdapter;Object.assign(FacetSearchResponseAdapter.prototype,_utils.utils);(function(_r){var Fe=interopRequireDefault.exports;Object.defineProperty(_r,"__esModule",{value:!0}),_r.default=void 0;var $r=Fe(regenerator),Fr=Fe(asyncToGenerator.exports),jr=Fe(classCallCheck.exports),zr=Fe(createClass.exports),Vr=Configuration$3,Wr=Typesense,Kr=SearchRequestAdapter$1,Gr=SearchResponseAdapter$1,Yr=FacetSearchResponseAdapter$1,Qr=function(){function Jr(Zr){var tn=this;(0,jr.default)(this,Jr),this.updateConfiguration(Zr),this.searchClient={clearCache:function(){return tn.clearCache()},search:function(rn){return tn.searchTypesenseAndAdapt(rn)},searchForFacetValues:function(rn){return tn.searchTypesenseForFacetValuesAndAdapt(rn)}}}return(0,zr.default)(Jr,[{key:"searchTypesenseAndAdapt",value:function(){var Zr=(0,Fr.default)($r.default.mark(function en(rn){var nn=this,on,un;return $r.default.wrap(function(sn){for(;;)switch(sn.prev=sn.next){case 0:return sn.prev=0,sn.next=3,this._adaptAndPerformTypesenseRequest(rn);case 3:return on=sn.sent,un=on.results.map(function(dn,ln){nn._validateTypesenseResult(dn);var cn=new Gr.SearchResponseAdapter(dn,rn[ln],nn.configuration);return cn.adapt()}),sn.abrupt("return",{results:un});case 8:throw sn.prev=8,sn.t0=sn.catch(0),console.error(sn.t0),sn.t0;case 12:case"end":return sn.stop()}},en,this,[[0,8]])}));function tn(en){return Zr.apply(this,arguments)}return tn}()},{key:"searchTypesenseForFacetValuesAndAdapt",value:function(){var Zr=(0,Fr.default)($r.default.mark(function en(rn){var nn=this,on,un;return $r.default.wrap(function(sn){for(;;)switch(sn.prev=sn.next){case 0:return sn.prev=0,sn.next=3,this._adaptAndPerformTypesenseRequest(rn);case 3:return on=sn.sent,un=on.results.map(function(dn,ln){nn._validateTypesenseResult(dn);var cn=new Yr.FacetSearchResponseAdapter(dn,rn[ln],nn.configuration);return cn.adapt()}),sn.abrupt("return",un);case 8:throw sn.prev=8,sn.t0=sn.catch(0),console.error(sn.t0),sn.t0;case 12:case"end":return sn.stop()}},en,this,[[0,8]])}));function tn(en){return Zr.apply(this,arguments)}return tn}()},{key:"_adaptAndPerformTypesenseRequest",value:function(){var Zr=(0,Fr.default)($r.default.mark(function en(rn){var nn,on;return $r.default.wrap(function(an){for(;;)switch(an.prev=an.next){case 0:return nn=new Kr.SearchRequestAdapter(rn,this.typesenseClient,this.configuration),an.next=3,nn.request();case 3:return on=an.sent,an.abrupt("return",on);case 5:case"end":return an.stop()}},en,this)}));function tn(en){return Zr.apply(this,arguments)}return tn}()},{key:"clearCache",value:function(){return this.typesenseClient=new Wr.SearchClient(this.configuration.server),this.searchClient}},{key:"updateConfiguration",value:function(tn){return this.configuration=new Vr.Configuration(tn),this.configuration.validate(),this.typesenseClient=new Wr.SearchClient(this.configuration.server),!0}},{key:"_validateTypesenseResult",value:function(tn){if(tn.error)throw new Error("".concat(tn.code," - ").concat(tn.error));if(!tn.hits&&!tn.grouped_hits)throw new Error("Did not find any hits. ".concat(tn.code," - ").concat(tn.error))}}]),Jr}();_r.default=Qr})(TypesenseInstantsearchAdapter);var TypesenseInstantSearchAdapter=getDefaultExportFromCjs(TypesenseInstantsearchAdapter);const _hoisted_1$1=createBaseVNode("div",{class:"bg-peach uppercase text-[15px] font-header py-2 px-6"},"Section",-1),_hoisted_2$1={class:"p-6"},_hoisted_3$1=createBaseVNode("li",{class:"uppercase mb-3 font-header text-[16px] tracking-[0.01em]"},"Fiction",-1),_hoisted_4$1=["href","onClick"],_hoisted_5$1={class:"ais-Menu-label flex items-start font-header tracking-[0.01em] text-[18px] capitalize leading-tight before:content-[''] before:translate-y-[3px] before:block before:w-4 before:h-4 before:border before:rounded-full before:shrink-0 before:mr-2"},_hoisted_6$1={key:0},_hoisted_7$1={key:1},_hoisted_8$1={class:"font-header ml-2 text-[14px] tracking-widest"},_hoisted_9$1={class:"mt-6"},_hoisted_10$1=createBaseVNode("li",{class:"uppercase mb-3 font-header text-[16px] tracking-[0.01em]"},"Children / Young Adult",-1),_hoisted_11$1=["href","onClick"],_hoisted_12$1={class:"ais-Menu-label flex items-start font-header tracking-[0.01em] text-[18px] capitalize leading-tight before:content-[''] before:translate-y-[3px] before:block before:w-4 before:h-4 before:border before:rounded-full before:shrink-0 before:mr-2"},_hoisted_13={key:0},_hoisted_14={key:1},_hoisted_15={class:"font-header ml-2 text-[14px] tracking-widest"},_hoisted_16={class:"mt-6"},_hoisted_17=createBaseVNode("li",{class:"uppercase mb-3 font-header text-[16px] tracking-[0.01em]"},"Non-Fiction",-1),_hoisted_18=["href","onClick"],_hoisted_19={class:"ais-Menu-label flex items-start font-header tracking-[0.01em] text-[18px] capitalize leading-tight before:content-[''] before:translate-y-[3px] before:block before:w-4 before:h-4 before:border before:rounded-full before:shrink-0 before:mr-2"},_hoisted_20={key:0},_hoisted_21={key:1},_hoisted_22={class:"font-header ml-2 text-[14px] tracking-widest"},_hoisted_23={class:"mt-6"},_hoisted_24=createBaseVNode("li",{class:"uppercase mb-3 font-header text-[16px] tracking-[0.01em]"},"Merch",-1),_hoisted_25=["href","onClick"],_hoisted_26={class:"ais-Menu-label flex items-start font-header tracking-[0.01em] text-[18px] capitalize leading-tight before:content-[''] before:translate-y-[3px] before:block before:w-4 before:h-4 before:border before:rounded-full before:shrink-0 before:mr-2"},_hoisted_27={key:0},_hoisted_28={key:1},_hoisted_29={class:"font-header ml-2 text-[14px] tracking-widest"},_hoisted_30={class:"mt-6"},_hoisted_31=createBaseVNode("li",{class:"uppercase mb-3 font-header text-[16px] tracking-[0.01em]"},"Rare Books",-1),_hoisted_32=["href","onClick"],_hoisted_33={class:"ais-Menu-label flex items-start font-header tracking-[0.01em] text-[18px] capitalize leading-tight before:content-[''] before:translate-y-[3px] before:block before:w-4 before:h-4 before:border before:rounded-full before:shrink-0 before:mr-2"},_hoisted_34={key:0},_hoisted_35={key:1},_hoisted_36={class:"font-header ml-2 text-[14px] tracking-widest"},_hoisted_37=createBaseVNode("div",{class:"bg-peach uppercase text-[15px] font-header py-2 px-6"},"Ages",-1),_hoisted_38={class:"p-6"},_hoisted_39=["href","onClick"],_hoisted_40={class:"ais-Menu-label flex items-start font-header tracking-[0.01em] text-[18px] capitalize leading-tight before:content-[''] before:translate-y-[3px] before:block before:w-4 before:h-4 before:border before:rounded-full before:shrink-0 before:mr-2"},_hoisted_41={key:0},_hoisted_42={key:0,class:"font-header ml-2 text-[14px] tracking-widest"},_hoisted_43=createBaseVNode("div",{class:"bg-peach uppercase text-[15px] font-header py-2 px-6"},"Format",-1),_hoisted_44={class:"p-6"},_hoisted_45=["href","onClick"],_hoisted_46={class:"ais-Menu-label flex items-start font-header tracking-[0.01em] text-[18px] capitalize leading-tight before:content-[''] before:translate-y-[3px] before:block before:w-4 before:h-4 before:border before:rounded-full before:shrink-0 before:mr-2"},_hoisted_47={key:0},_hoisted_48={key:0,class:"font-header ml-2 text-[14px] tracking-widest"},_hoisted_49={class:"flex flex-wrap w-full relative"},_hoisted_50={key:0,class:"lg:hidden items-center flex w-full"},_hoisted_51=createBaseVNode("span",{class:"uppercase tracking-widest font-header"},"Category",-1),_hoisted_52={class:"grid grid-cols-2 lg:grid-cols-4 gap-x-4 xl:gap-x-8 gap-y-16"},_hoisted_53={key:0,class:"text-r26 text-center col-span-1 sm:col-span-2 lg:col-span-4"},_hoisted_54=createBaseVNode("div",{class:"mb-4"},"No results.",-1),_hoisted_55=createBaseVNode("div",{class:"italic"},[createTextVNode("\u201CHow do you know I'm mad?\u201D, said Alice."),createBaseVNode("br"),createTextVNode(" \u201CYou must be,\u201D said the cat, \u201Cor you wouldn't have come here.\u201D ")],-1),_hoisted_56=createBaseVNode("a",{href:"/books/alices-adventures-in-wonderland-and-other-tales",class:"mt-1 underline"},"Alice's Adventures in Wonderland by Lewis Carroll",-1),_hoisted_57=[_hoisted_54,_hoisted_55,_hoisted_56],_hoisted_58={key:0,class:""},_hoisted_59={class:"g--wrapper pt-5 pb-12"},_hoisted_60={key:0,class:"mb-4"},_hoisted_61=createBaseVNode("h2",{class:"mt-4 text-d26 font-header tracking-[0.025em] mb-2 leading-tight"},"By the same author",-1),_hoisted_62=[_hoisted_61],_hoisted_63={key:1},_hoisted_64=createBaseVNode("h2",{class:"text-r32 mb-8"},"Works of Translation",-1),_hoisted_65=[_hoisted_64],_hoisted_66={class:"grid grid-cols-2 lg:grid-cols-4 gap-x-4 xl:gap-x-10 gap-y-16"},_hoisted_67=["href","onClick"],_hoisted_68=["href","onClick"],_hoisted_69={key:0,class:"mx-2 hover:bg-green hover:text-white"},_hoisted_70=["href","onClick"],_sfc_main$2={__name:"Books",props:{author:String,search:String,related:Boolean,exclude:String,asTranslator:Boolean},setup(_r){const Fe=_r,$r=computed(()=>{let hn=Fe.asTranslator?"translators":"authors",mn=Fe.author?`${hn}:${Fe.author}`:"";return Fe.exclude&&(mn=mn+'&& isbn:!="'+Fe.exclude+'"'),mn}),Fr=lodash_debounce(hn=>{gtag("event","search",{search_term:hn})},1500),jr=({instantSearchInstance:hn})=>({onStateChange({uiState:mn}){console.log(mn),Fr(mn.books.query)},subscribe(){},unsubscribe(){}}),Vr=new TypesenseInstantSearchAdapter({server:{apiKey:"deE9bYxswOMCQPr9iX6aPo8MMy0XmdgR",nodes:[{host:"tym53i89rhszwx21p-1.a1.typesense.net",path:"",port:"443",protocol:"https"}],cacheSearchResultsForSeconds:2*60},additionalSearchParameters:{per_page:Fe.related?4:16,query_by:Fe.asTranslator?"extra,translators,title,isbn":"extra,authors,title,isbn,translators",num_typos:Fe.asTranslator?"2,2,2,0":"2,2,2,0,2",sort_by:"curated:desc,_text_match(buckets: 20):desc,stock:desc",prioritize_token_position:"false",prioritize_exact_match:!1,max_facet_values:100,facet_by:"[*]"}}).searchClient;onMounted(()=>{Gr.value!==null&&window.innerWidth<1034&&(Yr.value=!1,Gr.value.classList.add("hidden"))});const Wr=()=>({router:historyRouter(),stateMapping:singleIndexStateMapping("books")}),Kr=()=>{Fe.related||window.scrollTo({top:0,behavior:"smooth"})},Gr=ref(null),Yr=ref(!0),Qr=["Fiction","LITERATURE","MYSTERY & CRIME","SCI-FI, FANTASY & HORROR","POETRY","SHAKESPEARE","GRAPHIC NOVELS & MANGA","THEATRE & FILM"],Jr=["Non-Fiction","ESSAYS","HISTORY & RELIGION","PHILOSOPHY","POLITICS & ECONOMICS","SCIENCE","COOKING","CLIMATE CRISIS","MUSIC","ART, ARCHITECTURE & FASHION","LIFE EVENTS"],Zr=["Children-YA","CHILDREN","CHILDREN / YOUNG ADULT"],tn=["Merch","Tote Bags","Stationery","Clothes","Bundles","On the go accessories"],en=["0-3 Years","4-7 Years","8-12 Years"],rn=["Rare Books"],nn=["Fiction","Non-Fiction","Children-YA","Merch","Rare Books"],on=hn=>{let mn=[],Sn=[];return hn.forEach(vn=>{Sn[vn.label.toLowerCase()]={count:vn.count,isRefined:vn.isRefined}}),Qr.forEach(vn=>{var bn,_n,$n;mn.push({value:vn,label:vn.toLowerCase(),count:(_n=(bn=Sn[vn.toLowerCase()])==null?void 0:bn.count)!=null?_n:0,isRefined:($n=Sn[vn.toLowerCase()])==null?void 0:$n.isRefined})}),mn},un=hn=>{let mn=[],Sn=[];return hn.forEach(vn=>{Sn[vn.label.toLowerCase()]={count:vn.count,isRefined:vn.isRefined}}),Jr.forEach(vn=>{var bn,_n,$n;mn.push({value:vn,label:vn.toLowerCase(),count:(_n=(bn=Sn[vn.toLowerCase()])==null?void 0:bn.count)!=null?_n:0,isRefined:($n=Sn[vn.toLowerCase()])==null?void 0:$n.isRefined})}),mn},an=hn=>{let mn=[],Sn=[];return hn.forEach(vn=>{Sn[vn.label.toLowerCase()]={count:vn.count,isRefined:vn.isRefined}}),Zr.forEach(vn=>{var bn,_n,$n;mn.push({value:vn,label:vn.toLowerCase(),count:(_n=(bn=Sn[vn.toLowerCase()])==null?void 0:bn.count)!=null?_n:0,isRefined:($n=Sn[vn.toLowerCase()])==null?void 0:$n.isRefined})}),mn},sn=hn=>{let mn=[],Sn=[];return hn.forEach(vn=>{Sn[vn.label.toLowerCase()]={count:vn.count,isRefined:vn.isRefined}}),tn.forEach(vn=>{var bn,_n,$n;mn.push({value:vn,label:vn.toLowerCase(),count:(_n=(bn=Sn[vn.toLowerCase()])==null?void 0:bn.count)!=null?_n:0,isRefined:($n=Sn[vn.toLowerCase()])==null?void 0:$n.isRefined})}),mn},dn=hn=>{let mn=[],Sn=[];return hn.forEach(vn=>{Sn[vn.label.toLowerCase()]={count:vn.count,isRefined:vn.isRefined}}),en.forEach(vn=>{var bn,_n,$n;mn.push({value:vn,label:vn,count:(_n=(bn=Sn[vn.toLowerCase()])==null?void 0:bn.count)!=null?_n:0,isRefined:($n=Sn[vn.toLowerCase()])==null?void 0:$n.isRefined})}),mn},ln=hn=>{let mn=[],Sn=[];return hn.forEach(vn=>{Sn[vn.label.toLowerCase()]={count:vn.count,isRefined:vn.isRefined}}),rn.forEach(vn=>{var bn,_n,$n;mn.push({value:vn,label:vn.toLowerCase(),count:(_n=(bn=Sn[vn.toLowerCase()])==null?void 0:bn.count)!=null?_n:0,isRefined:($n=Sn[vn.toLowerCase()])==null?void 0:$n.isRefined})}),mn},cn=hn=>{let mn=[],Sn=[];return hn.forEach(vn=>{Sn[vn.label.toLowerCase()]={count:vn.count,isRefined:vn.isRefined}}),nn.forEach(vn=>{var bn,_n,$n;mn.push({value:vn,label:vn,count:(_n=(bn=Sn[vn.toLowerCase()])==null?void 0:bn.count)!=null?_n:0,isRefined:($n=Sn[vn.toLowerCase()])==null?void 0:$n.isRefined})}),mn},fn=hn=>hn.map(mn=>({...mn,label:mn.label!=""?mn.label=="bc"?"Paperback":"Hardback":""})),pn=["appearance-none","rounded-none","relative","block","w-full","px-3","py-1","leading-none","border-2","border-t-transparent","border-r-transparent","border-l-transparent","bg-offwhite","placeholder-gray-400","focus:outline-none","focus:border-green","focus:border-2"];return(hn,mn)=>{const Sn=resolveComponent("ais-configure"),vn=resolveComponent("ais-menu"),bn=resolveComponent("ais-menu-select"),_n=resolveComponent("ais-search-box"),$n=resolveComponent("ais-hits"),yn=resolveComponent("ais-pagination"),wn=resolveComponent("ais-instant-search");return openBlock(),createBlock(wn,{"class-names":{"ais-InstantSearch":"grid grid-cols-1 lg:grid-cols-7 gap-x-10"},"search-client":unref(Vr),routing:Wr(),middlewares:[jr],"index-name":"books"},{default:withCtx(()=>[_r.author?createCommentVNode("",!0):(openBlock(),createBlock(Sn,{key:0,maxValuesPerFacet:1e3})),_r.author?(openBlock(),createBlock(Sn,{key:1,filters:$r.value},null,8,["filters"])):createCommentVNode("",!0),_r.author?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:2,ref_key:"filters",ref:Gr,class:"pb-20 hidden lg:block lg:pb-0 fixed lg:relative top-0 left-0 overflow-y-scroll z-20 lg:z-0 lg:overflow-y-auto w-full h-full col-span-1 lg:col-span-2 bg-offwhite mb-4 self-start block"},[_hoisted_1$1,createBaseVNode("div",_hoisted_2$1,[createVNode(vn,{attribute:"category",limit:100,filter_by:[Fe.author?"authors:"+Fe.author:""],"transform-items":on,"class-names":{}},{default:withCtx(({items:gn,canToggleShowMore:Pn,isShowingMore:Tn,toggleShowMore:An,refine:Dn,createURL:Mn,sendEvent:Ln})=>[createBaseVNode("ul",null,[_hoisted_3$1,(openBlock(!0),createElementBlock(Fragment,null,renderList(gn,On=>(openBlock(),createElementBlock("li",{class:normalizeClass({"ais-Menu-item--selected":On.isRefined,"opacity-50":On.count==0}),key:On.value},[createBaseVNode("a",{"data-no-swup":"",href:Mn(On.value),class:"flex items-end justify-between mb-3 w-full",onClick:withModifiers(qn=>Dn(On.value),["prevent"])},[createBaseVNode("div",_hoisted_5$1,[On.label=="fiction"?(openBlock(),createElementBlock("span",_hoisted_6$1,"All")):(openBlock(),createElementBlock("span",_hoisted_7$1,toDisplayString(On.label),1))]),createBaseVNode("div",_hoisted_8$1,toDisplayString(On.count),1)],8,_hoisted_4$1)],2))),128))])]),_:1},8,["filter_by"]),createVNode(vn,{attribute:"category",limit:100,filter_by:[Fe.author?"authors:"+Fe.author:""],"transform-items":an,"class-names":{}},{default:withCtx(({items:gn,canToggleShowMore:Pn,isShowingMore:Tn,toggleShowMore:An,refine:Dn,createURL:Mn,sendEvent:Ln})=>[createBaseVNode("ul",_hoisted_9$1,[_hoisted_10$1,(openBlock(!0),createElementBlock(Fragment,null,renderList(gn,On=>(openBlock(),createElementBlock("li",{class:normalizeClass({"ais-Menu-item--selected":On.isRefined,"opacity-50":On.count==0}),key:On.value},[createBaseVNode("a",{"data-no-swup":"",href:Mn(On.value),class:"flex items-end justify-between mb-3 w-full",onClick:withModifiers(qn=>Dn(On.value),["prevent"])},[createBaseVNode("div",_hoisted_12$1,[On.label=="children-ya"?(openBlock(),createElementBlock("span",_hoisted_13,"All")):(openBlock(),createElementBlock("span",_hoisted_14,toDisplayString(On.label),1))]),createBaseVNode("div",_hoisted_15,toDisplayString(On.count),1)],8,_hoisted_11$1)],2))),128))])]),_:1},8,["filter_by"]),createVNode(vn,{attribute:"category",limit:100,filter_by:[Fe.author?"authors:"+Fe.author:""],"transform-items":un,"class-names":{}},{default:withCtx(({items:gn,canToggleShowMore:Pn,isShowingMore:Tn,toggleShowMore:An,refine:Dn,createURL:Mn,sendEvent:Ln})=>[createBaseVNode("ul",_hoisted_16,[_hoisted_17,(openBlock(!0),createElementBlock(Fragment,null,renderList(gn,On=>(openBlock(),createElementBlock("li",{class:normalizeClass({"ais-Menu-item--selected":On.isRefined,"opacity-50":On.count==0}),key:On.value},[createBaseVNode("a",{"data-no-swup":"",href:Mn(On.value),class:"flex items-end justify-between mb-3 w-full",onClick:withModifiers(qn=>Dn(On.value),["prevent"])},[createBaseVNode("div",_hoisted_19,[On.label=="non-fiction"?(openBlock(),createElementBlock("span",_hoisted_20,"All")):(openBlock(),createElementBlock("span",_hoisted_21,toDisplayString(On.label),1))]),createBaseVNode("div",_hoisted_22,toDisplayString(On.count),1)],8,_hoisted_18)],2))),128))])]),_:1},8,["filter_by"]),createVNode(vn,{attribute:"category",limit:100,filter_by:[Fe.author?"authors:"+Fe.author:""],"transform-items":sn,"class-names":{}},{default:withCtx(({items:gn,canToggleShowMore:Pn,isShowingMore:Tn,toggleShowMore:An,refine:Dn,createURL:Mn,sendEvent:Ln})=>[createBaseVNode("ul",_hoisted_23,[_hoisted_24,(openBlock(!0),createElementBlock(Fragment,null,renderList(gn,On=>(openBlock(),createElementBlock("li",{class:normalizeClass({"ais-Menu-item--selected":On.isRefined,"opacity-50":On.count==0}),key:On.value},[createBaseVNode("a",{"data-no-swup":"",href:Mn(On.value),class:"flex items-end justify-between mb-3 w-full",onClick:withModifiers(qn=>Dn(On.value),["prevent"])},[createBaseVNode("div",_hoisted_26,[On.label=="merch"?(openBlock(),createElementBlock("span",_hoisted_27,"All")):(openBlock(),createElementBlock("span",_hoisted_28,toDisplayString(On.label),1))]),createBaseVNode("div",_hoisted_29,toDisplayString(On.count),1)],8,_hoisted_25)],2))),128))])]),_:1},8,["filter_by"]),createVNode(vn,{attribute:"category",limit:100,filter_by:[Fe.author?"authors:"+Fe.author:""],"transform-items":ln,"class-names":{}},{default:withCtx(({items:gn,canToggleShowMore:Pn,isShowingMore:Tn,toggleShowMore:An,refine:Dn,createURL:Mn,sendEvent:Ln})=>[createBaseVNode("ul",_hoisted_30,[_hoisted_31,(openBlock(!0),createElementBlock(Fragment,null,renderList(gn,On=>(openBlock(),createElementBlock("li",{class:normalizeClass({"ais-Menu-item--selected":On.isRefined,"opacity-50":On.count==0}),key:On.value},[createBaseVNode("a",{"data-no-swup":"",href:Mn(On.value),class:"flex items-end justify-between mb-3 w-full",onClick:withModifiers(qn=>Dn(On.value),["prevent"])},[createBaseVNode("div",_hoisted_33,[On.label=="rare books"?(openBlock(),createElementBlock("span",_hoisted_34,"All")):(openBlock(),createElementBlock("span",_hoisted_35,toDisplayString(On.label),1))]),createBaseVNode("div",_hoisted_36,toDisplayString(On.count),1)],8,_hoisted_32)],2))),128))])]),_:1},8,["filter_by"])]),_hoisted_37,createBaseVNode("div",_hoisted_38,[createVNode(vn,{attribute:"ages","sort-by":["name"],"transform-items":dn,"class-names":{}},{default:withCtx(({items:gn,canToggleShowMore:Pn,isShowingMore:Tn,toggleShowMore:An,refine:Dn,createURL:Mn,sendEvent:Ln})=>[createBaseVNode("ul",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(gn,On=>(openBlock(),createElementBlock("li",{class:normalizeClass({"ais-Menu-item--selected":On.isRefined,"opacity-50":On.count==0}),key:On.value},[createBaseVNode("a",{"data-no-swup":"",href:Mn(On.value),class:"flex items-end justify-between mb-3 w-full",onClick:withModifiers(qn=>Dn(On.value),["prevent"])},[createBaseVNode("div",_hoisted_40,[createTextVNode(toDisplayString(On.label)+" ",1),On.label==""?(openBlock(),createElementBlock("span",_hoisted_41,"All")):createCommentVNode("",!0)]),On.label!=""?(openBlock(),createElementBlock("div",_hoisted_42,toDisplayString(On.count),1)):createCommentVNode("",!0)],8,_hoisted_39)],2))),128))])]),_:1})]),_hoisted_43,createBaseVNode("div",_hoisted_44,[createVNode(vn,{attribute:"format","sort-by":["name"],"transform-items":fn,"class-names":{}},{default:withCtx(({items:gn,canToggleShowMore:Pn,isShowingMore:Tn,toggleShowMore:An,refine:Dn,createURL:Mn,sendEvent:Ln})=>[createBaseVNode("ul",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(gn,On=>(openBlock(),createElementBlock("li",{class:normalizeClass({"ais-Menu-item--selected":On.isRefined}),key:On.value},[createBaseVNode("a",{"data-no-swup":"",href:Mn(On.value),class:"flex items-end justify-between mb-3 w-full",onClick:withModifiers(qn=>Dn(On.value),["prevent"])},[createBaseVNode("div",_hoisted_46,[createTextVNode(toDisplayString(On.label)+" ",1),On.label==""?(openBlock(),createElementBlock("span",_hoisted_47,"All")):createCommentVNode("",!0)]),On.label!=""?(openBlock(),createElementBlock("div",_hoisted_48,toDisplayString(On.count),1)):createCommentVNode("",!0)],8,_hoisted_45)],2))),128))])]),_:1})])],512)),createBaseVNode("div",{class:normalizeClass(["col-span-1",[_r.author?"lg:col-span-7":"lg:col-span-5"]])},[createBaseVNode("div",_hoisted_49,[_r.author?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_50,[_hoisted_51,createVNode(bn,{"class-names":{"ais-MenuSelect":"ml-2 flex-grow text-r28 w-full mb-2","ais-MenuSelect-select":"rounded-none border-2 w-full p-2 py-1"},limit:100,attribute:"category","transform-items":cn})])),!_r.related&&!_r.author?(openBlock(),createBlock(_n,{key:1,autofocus:"",placeholder:Fe.author?"Search by title":"Search by title, author or ISBN","class-names":{"ais-SearchBox":"mb-6 text-r26 w-full","ais-SearchBox-input":pn.join(" py-2 lg:py-1 "),"ais-SearchBox-submit":"hidden","ais-SearchBox-reset":"hidden lg:block absolute right-0 top-0 mt-[10px] mr-3 bg-offwhite"}},null,8,["placeholder","class-names"])):createCommentVNode("",!0)]),_r.author?createCommentVNode("",!0):(openBlock(),createBlock($n,{key:0},{default:withCtx(({items:gn})=>[createBaseVNode("div",_hoisted_52,[(openBlock(!0),createElementBlock(Fragment,null,renderList(gn,Pn=>(openBlock(),createBlock(_sfc_main$3,{item:Pn,key:Pn.isbn},null,8,["item"]))),128)),gn.length==0?(openBlock(),createElementBlock("div",_hoisted_53,_hoisted_57)):createCommentVNode("",!0)])]),_:1})),_r.author?(openBlock(),createBlock($n,{key:1},{default:withCtx(({items:gn})=>[gn.length!=0?(openBlock(),createElementBlock("div",_hoisted_58,[createBaseVNode("div",_hoisted_59,[_r.related?(openBlock(),createElementBlock("div",_hoisted_60,_hoisted_62)):createCommentVNode("",!0),_r.asTranslator?(openBlock(),createElementBlock("div",_hoisted_63,_hoisted_65)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_66,[(openBlock(!0),createElementBlock(Fragment,null,renderList(gn,Pn=>(openBlock(),createBlock(_sfc_main$3,{item:Pn,key:Pn.isbn},null,8,["item"]))),128))])])])):createCommentVNode("",!0)]),_:1})):createCommentVNode("",!0),createVNode(yn,{padding:2,"show-last":!1,"show-first":!1,"class-names":{"ais-Pagination":"font-header block ","ais-Pagination-list":"","ais-Pagination-item":"","ais-Pagination-item--selected":"bg-green text-white bg-opacity-100","ais-Pagination-item--disabled":"bg-opacity-40 opacity-20 hover:bg-opacity-40 cursor-not-allowed","ais-Pagination-link":" "}},{default:withCtx(({currentRefinement:gn,nbPages:Pn,pages:Tn,isFirstPage:An,isLastPage:Dn,refine:Mn,createURL:Ln})=>[createBaseVNode("ul",{class:normalizeClass(["flex justify-center mt-8",{hidden:Pn<=1}])},[createBaseVNode("li",{class:normalizeClass([{"bg-opacity-40 opacity-20 hover:bg-white":An,"hover:bg-green hover:bg-opacity:40 hover:text-white":!An},"mx-2"])},[createBaseVNode("a",{"data-no-swup":"",href:Ln(gn-1),onClick:[withModifiers(On=>Mn(gn-1),["prevent"]),mn[0]||(mn[0]=On=>Kr())],class:normalizeClass(["py-2 px-3 border block",{"cursor-not-allowed":An}])}," \u2039 ",10,_hoisted_67)],2),(openBlock(!0),createElementBlock(Fragment,null,renderList(Tn,On=>(openBlock(),createElementBlock("li",{key:On,class:"mx-2 hover:bg-green hover:text-white"},[createBaseVNode("a",{"data-no-swup":"",href:Ln(On),class:normalizeClass([On===gn?"bg-green text-white bg-opacity-100":"","py-2 px-3 border block"]),onClick:[mn[1]||(mn[1]=qn=>Kr()),withModifiers(qn=>Mn(On),["prevent"])]},toDisplayString(On+1),11,_hoisted_68)]))),128)),Dn?createCommentVNode("",!0):(openBlock(),createElementBlock("li",_hoisted_69,[createBaseVNode("a",{"data-no-swup":"",href:Ln(gn+1),onClick:[mn[2]||(mn[2]=On=>Kr()),withModifiers(On=>Mn(gn+1),["prevent"])],class:"py-2 px-3 border block"}," \u203A ",8,_hoisted_70)]))],2)]),_:1},8,["class-names"])],2)]),_:1},8,["search-client","routing","middlewares"])}}};function s$8(_r,Fe,$r){if(!_r)throw new Error("You need to provide `widgetName` in your data");var Fr=["ais-"+_r];return Fe&&Fr.push("-"+Fe),$r&&Fr.push("--"+$r),Fr.join("")}var t$6=function(_r){var Fe=_r.name;return{props:{classNames:{type:Object,default:void 0}},methods:{suit:function($r,Fr){var jr=s$8(Fe,$r,Fr),zr=this.classNames&&this.classNames[jr];return zr?[jr,zr].join(" "):jr}}}};function e$B(_r){for(var Fe=arguments,$r=1;$r<arguments.length;$r++){var Fr=Fe[$r]!=null?Fe[$r]:{},jr=Object.keys(Fr);typeof Object.getOwnPropertySymbols=="function"&&(jr=jr.concat(Object.getOwnPropertySymbols(Fr).filter(function(zr){return Object.getOwnPropertyDescriptor(Fr,zr).enumerable}))),jr.forEach(function(zr){t$5(_r,zr,Fr[zr])})}return _r}function t$5(_r,Fe,$r){return Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}var o$4=!1,r$d=!0;function n$6(_r){function Fe($r,Fr,jr){if(typeof Fr=="object"&&(Fr.attrs||Fr.props||Fr.scopedSlots||Fr.on)){var zr=Object.assign({},Fr,Fr.attrs,Fr.props,Object.keys(Fr.on||{}).reduce(function(Vr,Wr){return Vr["on"+Wr[0].toUpperCase()+Wr.slice(1)]=Fr.on[Wr],Vr},{}));return delete zr.attrs,delete zr.props,delete zr.scopedSlots,delete zr.on,h$1($r,zr,Fr.scopedSlots?Object.assign({default:function(){return jr}},Fr.scopedSlots):jr)}return h$1($r,Fr,jr)}return function(){return _r.call(this,Fe)}}function s$7(_r){return _r.$slots.default&&_r.$slots.default()}var n$5=new Set;function a$9(_r){n$5.has(_r)||(n$5.add(_r),console.warn(_r))}var n$4=function(_r,Fe){var $r;_r===void 0&&(_r={});var Fr=_r.connector;return Fe===void 0&&(Fe={}),($r={inject:{instantSearchInstance:{from:"$_ais_instantSearchInstance",default:function(){var jr=this.$options._componentTag;throw new TypeError('It looks like you forgot to wrap your Algolia search component "<'+jr+'>" inside of an "<ais-instant-search>" component.')}},getParentIndex:{from:"$_ais_getParentIndex",default:function(){var jr=this;return function(){return jr.instantSearchInstance.mainIndex}}}},data:function(){return{state:null}},created:function(){if(typeof Fr=="function"){if(this.factory=Fr(this.updateState,function(){}),this.widget=e$B(this.factory(this.widgetParams),Fe),this.getParentIndex().addWidgets([this.widget]),this.instantSearchInstance._initialResults&&!this.instantSearchInstance.started){if(typeof this.instantSearchInstance.__forceRender!="function")throw new Error("You are using server side rendering with <ais-instant-search> instead of <ais-instant-search-ssr>.");this.instantSearchInstance.__forceRender(this.widget,this.getParentIndex())}}else Fr!==!0&&a$9(`You are using the InstantSearch widget mixin, but didn't provide a connector.
While this is technically possible, and will give you access to the Helper,
it's not the recommended way of making custom components.

If you want to disable this message, pass { connector: true } to the mixin.

Read more on using connectors: https://alg.li/vue-custom`)}}).beforeUnmount=function(){this.widget&&this.getParentIndex().removeWidgets([this.widget])},$r.watch={widgetParams:{handler:function(jr){this.state=null,this.getParentIndex().removeWidgets([this.widget]),this.widget=e$B(this.factory(jr),Fe),this.getParentIndex().addWidgets([this.widget])},deep:!0}},$r.methods={updateState:function(jr,zr){jr===void 0&&(jr={}),zr||(this.state=jr)}},$r};function _typeof$y(_r){return _typeof$y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$y(_r)}function ownKeys$v(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$v(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$v(Object($r),!0).forEach(function(Fr){_defineProperty$w(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$v(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$w(_r,Fe,$r){return Fe=_toPropertyKey$w(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$w(_r){var Fe=_toPrimitive$w(_r,"string");return _typeof$y(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$w(_r,Fe){if(_typeof$y(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$y(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}function hasFindAnswersMethod(_r){return typeof _r.findAnswers=="function"}var withUsage$p=createDocumentationMessageGenerator({name:"answers",connector:!0}),connectAnswers=function _r(Fe){var $r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$1;return checkRendering(Fe,withUsage$p()),function(Fr){var jr=Fr||{},zr=jr.queryLanguages,Vr=jr.attributesForPrediction,Wr=jr.nbHits,Kr=Wr===void 0?1:Wr,Gr=jr.renderDebounceTime,Yr=Gr===void 0?100:Gr,Qr=jr.searchDebounceTime,Jr=Qr===void 0?100:Qr,Zr=jr.escapeHTML,tn=Zr===void 0?!0:Zr,en=jr.extraParameters,rn=en===void 0?{}:en;if(!zr||zr.length===0)throw new Error(withUsage$p("The `queryLanguages` expects an array of strings."));var nn=createConcurrentSafePromise(),on=[],un=!1,an=debounce$1(Fe,Yr),sn;return{$$type:"ais.answers",init:function(ln){var cn=ln.state,fn=ln.instantSearchInstance,pn=fn.client.initIndex(cn.index);if(!hasFindAnswersMethod(pn))throw new Error(withUsage$p("`algoliasearch` >= 4.8.0 required."));sn=debounce$1(pn.findAnswers,Jr),Fe(_objectSpread$v(_objectSpread$v({},this.getWidgetRenderState(ln)),{},{instantSearchInstance:ln.instantSearchInstance}),!0)},render:function(ln){var cn=this,fn=ln.state.query;if(!fn){on=[],un=!1,Fe(_objectSpread$v(_objectSpread$v({},this.getWidgetRenderState(ln)),{},{instantSearchInstance:ln.instantSearchInstance}),!1);return}on=[],un=!0,Fe(_objectSpread$v(_objectSpread$v({},this.getWidgetRenderState(ln)),{},{instantSearchInstance:ln.instantSearchInstance}),!1),nn(sn(fn,zr,_objectSpread$v(_objectSpread$v({},rn),{},{nbHits:Kr,attributesForPrediction:Vr}))).then(function(pn){if(!!pn){tn&&pn.hits.length>0&&(pn.hits=escapeHits(pn.hits));var hn=addAbsolutePosition(pn.hits,0,Kr),mn=addQueryID(hn,pn.queryID);on=mn,un=!1,an(_objectSpread$v(_objectSpread$v({},cn.getWidgetRenderState(ln)),{},{instantSearchInstance:ln.instantSearchInstance}),!1)}})},getRenderState:function(ln,cn){return _objectSpread$v(_objectSpread$v({},ln),{},{answers:this.getWidgetRenderState(cn)})},getWidgetRenderState:function(){return{hits:on,isLoading:un,widgetParams:Fr}},dispose:function(ln){var cn=ln.state;return $r(),cn},getWidgetSearchParameters:function(ln){return ln}}}},connectAnswers$1=connectAnswers;function ownKeys$u(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$u(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$u(Object($r),!0).forEach(function(Fr){_defineProperty$v(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$u(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$v(_r,Fe,$r){return Fe=_toPropertyKey$v(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$v(_r){var Fe=_toPrimitive$v(_r,"string");return _typeof$x(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$v(_r,Fe){if(_typeof$x(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$x(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}function _typeof$x(_r){return _typeof$x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$x(_r)}var withUsage$o=createDocumentationMessageGenerator({name:"dynamic-widgets",connector:!0}),connectDynamicWidgets=function _r(Fe){var $r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$1;return checkRendering(Fe,withUsage$o()),function(Fr){var jr=Fr.widgets,zr=Fr.maxValuesPerFacet,Vr=zr===void 0?20:zr,Wr=Fr.facets,Kr=Wr===void 0?["*"]:Wr,Gr=Fr.transformItems,Yr=Gr===void 0?function(Zr){return Zr}:Gr,Qr=Fr.fallbackWidget;if(!(jr&&Array.isArray(jr)&&jr.every(function(Zr){return _typeof$x(Zr)==="object"})))throw new Error(withUsage$o("The `widgets` option expects an array of widgets."));if(!(Array.isArray(Kr)&&Kr.length<=1&&(Kr[0]==="*"||Kr[0]===void 0)))throw new Error(withUsage$o('The `facets` option only accepts [] or ["*"], you passed '.concat(JSON.stringify(Kr))));var Jr=new Map;return{$$type:"ais.dynamicWidgets",init:function(tn){jr.forEach(function(en){var rn=getWidgetAttribute(en,tn);Jr.set(rn,{widget:en,isMounted:!1})}),Fe(_objectSpread$u(_objectSpread$u({},this.getWidgetRenderState(tn)),{},{instantSearchInstance:tn.instantSearchInstance}),!0)},render:function(tn){var en=tn.parent,rn=this.getWidgetRenderState(tn),nn=[],on=[];Qr&&rn.attributesToRender.forEach(function(un){if(!Jr.has(un)){var an=Qr({attribute:un});Jr.set(un,{widget:an,isMounted:!1})}}),Jr.forEach(function(un,an){var sn=un.widget,dn=un.isMounted,ln=rn.attributesToRender.indexOf(an)>-1;!dn&&ln?(on.push(sn),Jr.set(an,{widget:sn,isMounted:!0})):dn&&!ln&&(nn.push(sn),Jr.set(an,{widget:sn,isMounted:!1}))}),en.addWidgets(on),setTimeout(function(){return en.removeWidgets(nn)},0),Fe(_objectSpread$u(_objectSpread$u({},rn),{},{instantSearchInstance:tn.instantSearchInstance}),!1)},dispose:function(tn){var en=tn.parent,rn=[];Jr.forEach(function(nn){var on=nn.widget,un=nn.isMounted;un&&rn.push(on)}),en.removeWidgets(rn),$r()},getWidgetSearchParameters:function(tn){return Kr.reduce(function(en,rn){return en.addFacet(rn)},tn.setQueryParameters({maxValuesPerFacet:Math.max(Vr||0,tn.maxValuesPerFacet||0)}))},getRenderState:function(tn,en){return _objectSpread$u(_objectSpread$u({},tn),{},{dynamicWidgets:this.getWidgetRenderState(en)})},getWidgetRenderState:function(tn){var en,rn,nn,on,un=tn.results;if(tn.state,!un)return{attributesToRender:[],widgetParams:Fr};var an=Yr((en=(rn=un.renderingContent)===null||rn===void 0||(nn=rn.facetOrdering)===null||nn===void 0||(on=nn.facets)===null||on===void 0?void 0:on.order)!==null&&en!==void 0?en:[],{results:un});if(!Array.isArray(an))throw new Error(withUsage$o("The `transformItems` option expects a function that returns an Array."));return{attributesToRender:an,widgetParams:Fr}}}}},a$8=connectDynamicWidgets;function _typeof$w(_r){return _typeof$w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$w(_r)}function _toConsumableArray$8(_r){return _arrayWithoutHoles$8(_r)||_iterableToArray$8(_r)||_unsupportedIterableToArray$e(_r)||_nonIterableSpread$8()}function _nonIterableSpread$8(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$e(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray$e(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray$e(_r,Fe)}}function _iterableToArray$8(_r){if(typeof Symbol!="undefined"&&_r[Symbol.iterator]!=null||_r["@@iterator"]!=null)return Array.from(_r)}function _arrayWithoutHoles$8(_r){if(Array.isArray(_r))return _arrayLikeToArray$e(_r)}function _arrayLikeToArray$e(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}function ownKeys$t(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$t(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$t(Object($r),!0).forEach(function(Fr){_defineProperty$u(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$t(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$u(_r,Fe,$r){return Fe=_toPropertyKey$u(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$u(_r){var Fe=_toPrimitive$u(_r,"string");return _typeof$w(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$u(_r,Fe){if(_typeof$w(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$w(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}var withUsage$n=createDocumentationMessageGenerator({name:"clear-refinements",connector:!0}),connectClearRefinements=function _r(Fe){var $r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$1;return checkRendering(Fe,withUsage$n()),function(Fr){var jr=Fr||{},zr=jr.includedAttributes,Vr=zr===void 0?[]:zr,Wr=jr.excludedAttributes,Kr=Wr===void 0?["query"]:Wr,Gr=jr.transformItems,Yr=Gr===void 0?function(tn){return tn}:Gr;if(Fr&&Fr.includedAttributes&&Fr.excludedAttributes)throw new Error(withUsage$n("The options `includedAttributes` and `excludedAttributes` cannot be used together."));var Qr={refine:noop$1,createURL:function(){return""},attributesToClear:[]},Jr=function(){return Qr.refine()},Zr=function(){return Qr.createURL()};return{$$type:"ais.clearRefinements",init:function(en){var rn=en.instantSearchInstance;Fe(_objectSpread$t(_objectSpread$t({},this.getWidgetRenderState(en)),{},{instantSearchInstance:rn}),!0)},render:function(en){var rn=en.instantSearchInstance;Fe(_objectSpread$t(_objectSpread$t({},this.getWidgetRenderState(en)),{},{instantSearchInstance:rn}),!1)},dispose:function(){$r()},getRenderState:function(en,rn){return _objectSpread$t(_objectSpread$t({},en),{},{clearRefinements:this.getWidgetRenderState(rn)})},getWidgetRenderState:function(en){var rn=en.createURL,nn=en.scopedResults,on=en.results;Qr.attributesToClear=nn.reduce(function(an,sn){return an.concat(getAttributesToClear({scopedResult:sn,includedAttributes:Vr,excludedAttributes:Kr,transformItems:Yr,results:on}))},[]),Qr.refine=function(){Qr.attributesToClear.forEach(function(an){var sn=an.helper,dn=an.items;sn.setState(clearRefinements({helper:sn,attributesToClear:dn})).search()})},Qr.createURL=function(){return rn(mergeSearchParameters.apply(void 0,_toConsumableArray$8(Qr.attributesToClear.map(function(an){var sn=an.helper,dn=an.items;return clearRefinements({helper:sn,attributesToClear:dn})}))))};var un=Qr.attributesToClear.some(function(an){return an.items.length>0});return{canRefine:un,hasRefinements:un,refine:Jr,createURL:Zr,widgetParams:Fr}}}}};function getAttributesToClear(_r){var Fe=_r.scopedResult,$r=_r.includedAttributes,Fr=_r.excludedAttributes,jr=_r.transformItems,zr=_r.results,Vr=$r.indexOf("query")!==-1||Fr.indexOf("query")===-1;return{helper:Fe.helper,items:jr(uniq(getRefinements(Fe.results,Fe.helper.state,Vr).map(function(Wr){return Wr.attribute}).filter(function(Wr){return $r.length===0||$r.indexOf(Wr)!==-1}).filter(function(Wr){return Wr==="query"&&Vr||Fr.indexOf(Wr)===-1})),{results:zr})}}var i$c=connectClearRefinements;function _typeof$v(_r){return _typeof$v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$v(_r)}function _toConsumableArray$7(_r){return _arrayWithoutHoles$7(_r)||_iterableToArray$7(_r)||_unsupportedIterableToArray$d(_r)||_nonIterableSpread$7()}function _nonIterableSpread$7(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$d(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray$d(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray$d(_r,Fe)}}function _iterableToArray$7(_r){if(typeof Symbol!="undefined"&&_r[Symbol.iterator]!=null||_r["@@iterator"]!=null)return Array.from(_r)}function _arrayWithoutHoles$7(_r){if(Array.isArray(_r))return _arrayLikeToArray$d(_r)}function _arrayLikeToArray$d(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}function ownKeys$s(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$s(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$s(Object($r),!0).forEach(function(Fr){_defineProperty$t(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$s(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$t(_r,Fe,$r){return Fe=_toPropertyKey$t(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$t(_r){var Fe=_toPrimitive$t(_r,"string");return _typeof$v(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$t(_r,Fe){if(_typeof$v(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$v(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}var withUsage$m=createDocumentationMessageGenerator({name:"current-refinements",connector:!0}),connectCurrentRefinements=function _r(Fe){var $r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$1;return checkRendering(Fe,withUsage$m()),function(Fr){if((Fr||{}).includedAttributes&&(Fr||{}).excludedAttributes)throw new Error(withUsage$m("The options `includedAttributes` and `excludedAttributes` cannot be used together."));var jr=Fr||{},zr=jr.includedAttributes,Vr=jr.excludedAttributes,Wr=Vr===void 0?["query"]:Vr,Kr=jr.transformItems,Gr=Kr===void 0?function(Yr){return Yr}:Kr;return{$$type:"ais.currentRefinements",init:function(Qr){var Jr=Qr.instantSearchInstance;Fe(_objectSpread$s(_objectSpread$s({},this.getWidgetRenderState(Qr)),{},{instantSearchInstance:Jr}),!0)},render:function(Qr){var Jr=Qr.instantSearchInstance;Fe(_objectSpread$s(_objectSpread$s({},this.getWidgetRenderState(Qr)),{},{instantSearchInstance:Jr}),!1)},dispose:function(){$r()},getRenderState:function(Qr,Jr){return _objectSpread$s(_objectSpread$s({},Qr),{},{currentRefinements:this.getWidgetRenderState(Jr)})},getWidgetRenderState:function(Qr){var Jr=Qr.results,Zr=Qr.scopedResults,tn=Qr.createURL,en=Qr.helper;function rn(){return Jr?Zr.reduce(function(on,un){return on.concat(Gr(getRefinementsItems({results:un.results,helper:un.helper,indexId:un.indexId,includedAttributes:zr,excludedAttributes:Wr}),{results:Jr}))},[]):Gr(getRefinementsItems({results:{},helper:en,indexId:en.state.index,includedAttributes:zr,excludedAttributes:Wr}),{results:Jr})}var nn=rn();return{items:nn,canRefine:nn.length>0,refine:function(un){return clearRefinement(en,un)},createURL:function(un){return tn(clearRefinementFromState(en.state,un))},widgetParams:Fr}}}}};function getRefinementsItems(_r){var Fe=_r.results,$r=_r.helper,Fr=_r.indexId,jr=_r.includedAttributes,zr=_r.excludedAttributes,Vr=(jr||[]).indexOf("query")!==-1||(zr||[]).indexOf("query")===-1,Wr=jr?function(Gr){return jr.indexOf(Gr.attribute)!==-1}:function(Gr){return zr.indexOf(Gr.attribute)===-1},Kr=getRefinements(Fe,$r.state,Vr).map(normalizeRefinement).filter(Wr);return Kr.reduce(function(Gr,Yr){return[].concat(_toConsumableArray$7(Gr.filter(function(Qr){return Qr.attribute!==Yr.attribute})),[{indexName:$r.state.index,indexId:Fr,attribute:Yr.attribute,label:Yr.attribute,refinements:Kr.filter(function(Qr){return Qr.attribute===Yr.attribute}).sort(function(Qr,Jr){return Qr.type==="numeric"?Qr.value-Jr.value:0}),refine:function(Jr){return clearRefinement($r,Jr)}}])},[])}function clearRefinementFromState(_r,Fe){switch(_r=_r.resetPage(),Fe.type){case"facet":return _r.removeFacetRefinement(Fe.attribute,String(Fe.value));case"disjunctive":return _r.removeDisjunctiveFacetRefinement(Fe.attribute,String(Fe.value));case"hierarchical":return _r.removeHierarchicalFacetRefinement(Fe.attribute);case"exclude":return _r.removeExcludeRefinement(Fe.attribute,String(Fe.value));case"numeric":return _r.removeNumericRefinement(Fe.attribute,Fe.operator,String(Fe.value));case"tag":return _r.removeTagRefinement(String(Fe.value));case"query":return _r.setQueryParameter("query","");default:return _r}}function clearRefinement(_r,Fe){_r.setState(clearRefinementFromState(_r.state,Fe)).search()}function getOperatorSymbol(_r){switch(_r){case">=":return"\u2265";case"<=":return"\u2264";default:return _r}}function normalizeRefinement(_r){var Fe=getValue(_r),$r=_r.operator?"".concat(getOperatorSymbol(_r.operator)," ").concat(_r.name):_r.name,Fr={attribute:_r.attribute,type:_r.type,value:Fe,label:$r};return _r.operator!==void 0&&(Fr.operator=_r.operator),_r.count!==void 0&&(Fr.count=_r.count),_r.exhaustive!==void 0&&(Fr.exhaustive=_r.exhaustive),Fr}function getValue(_r){return _r.type==="numeric"?Number(_r.name):"escapedValue"in _r?_r.escapedValue:_r.name}var i$b=connectCurrentRefinements;function _typeof$u(_r){return _typeof$u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$u(_r)}var _excluded$5=["name","escapedValue","data","path"];function ownKeys$r(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$r(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$r(Object($r),!0).forEach(function(Fr){_defineProperty$s(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$r(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$s(_r,Fe,$r){return Fe=_toPropertyKey$s(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$s(_r){var Fe=_toPrimitive$s(_r,"string");return _typeof$u(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$s(_r,Fe){if(_typeof$u(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$u(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}function _objectWithoutProperties$5(_r,Fe){if(_r==null)return{};var $r=_objectWithoutPropertiesLoose$6(_r,Fe),Fr,jr;if(Object.getOwnPropertySymbols){var zr=Object.getOwnPropertySymbols(_r);for(jr=0;jr<zr.length;jr++)Fr=zr[jr],!(Fe.indexOf(Fr)>=0)&&(!Object.prototype.propertyIsEnumerable.call(_r,Fr)||($r[Fr]=_r[Fr]))}return $r}function _objectWithoutPropertiesLoose$6(_r,Fe){if(_r==null)return{};var $r={},Fr=Object.keys(_r),jr,zr;for(zr=0;zr<Fr.length;zr++)jr=Fr[zr],!(Fe.indexOf(jr)>=0)&&($r[jr]=_r[jr]);return $r}function _slicedToArray$7(_r,Fe){return _arrayWithHoles$7(_r)||_iterableToArrayLimit$7(_r,Fe)||_unsupportedIterableToArray$c(_r,Fe)||_nonIterableRest$7()}function _nonIterableRest$7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$c(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray$c(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray$c(_r,Fe)}}function _arrayLikeToArray$c(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}function _iterableToArrayLimit$7(_r,Fe){var $r=_r==null?null:typeof Symbol!="undefined"&&_r[Symbol.iterator]||_r["@@iterator"];if($r!=null){var Fr,jr,zr,Vr,Wr=[],Kr=!0,Gr=!1;try{if(zr=($r=$r.call(_r)).next,Fe===0){if(Object($r)!==$r)return;Kr=!1}else for(;!(Kr=(Fr=zr.call($r)).done)&&(Wr.push(Fr.value),Wr.length!==Fe);Kr=!0);}catch(Yr){Gr=!0,jr=Yr}finally{try{if(!Kr&&$r.return!=null&&(Vr=$r.return(),Object(Vr)!==Vr))return}finally{if(Gr)throw jr}}return Wr}}function _arrayWithHoles$7(_r){if(Array.isArray(_r))return _r}var withUsage$l=createDocumentationMessageGenerator({name:"hierarchical-menu",connector:!0}),DEFAULT_SORT$2=["name:asc"],connectHierarchicalMenu=function _r(Fe){var $r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$1;return checkRendering(Fe,withUsage$l()),function(Fr){var jr=Fr||{},zr=jr.attributes,Vr=jr.separator,Wr=Vr===void 0?" > ":Vr,Kr=jr.rootPath,Gr=Kr===void 0?null:Kr,Yr=jr.showParentLevel,Qr=Yr===void 0?!0:Yr,Jr=jr.limit,Zr=Jr===void 0?10:Jr,tn=jr.showMore,en=tn===void 0?!1:tn,rn=jr.showMoreLimit,nn=rn===void 0?20:rn,on=jr.sortBy,un=on===void 0?DEFAULT_SORT$2:on,an=jr.transformItems,sn=an===void 0?function(_n){return _n}:an;if(!zr||!Array.isArray(zr)||zr.length===0)throw new Error(withUsage$l("The `attributes` option expects an array of strings."));if(en===!0&&nn<=Zr)throw new Error(withUsage$l("The `showMoreLimit` option must be greater than `limit`."));var dn=_slicedToArray$7(zr,1),ln=dn[0],cn,fn=function(){};function pn(){fn()}var hn,mn=!1;function Sn(_n,$n){return function(){mn=!mn,$n.render(_n)}}function vn(){return mn?nn:Zr}function bn(_n){return _n.slice(0,vn()).map(function($n){var yn=$n.name,wn=$n.escapedValue,gn=$n.data;$n.path;var Pn=_objectWithoutProperties$5($n,_excluded$5),Tn=_objectSpread$r(_objectSpread$r({},Pn),{},{value:wn,label:yn,data:null});return Array.isArray(gn)&&(Tn.data=bn(gn)),Tn})}return{$$type:"ais.hierarchicalMenu",init:function($n){var yn=$n.instantSearchInstance;Fe(_objectSpread$r(_objectSpread$r({},this.getWidgetRenderState($n)),{},{instantSearchInstance:yn}),!0)},render:function($n){var yn=$n.instantSearchInstance;fn=Sn($n,this),Fe(_objectSpread$r(_objectSpread$r({},this.getWidgetRenderState($n)),{},{instantSearchInstance:yn}),!1)},dispose:function($n){var yn=$n.state;return $r(),yn.removeHierarchicalFacet(ln).setQueryParameter("maxValuesPerFacet",void 0)},getRenderState:function($n,yn){return _objectSpread$r(_objectSpread$r({},$n),{},{hierarchicalMenu:_objectSpread$r(_objectSpread$r({},$n.hierarchicalMenu),{},_defineProperty$s({},ln,this.getWidgetRenderState(yn)))})},getWidgetRenderState:function($n){var yn=$n.results,wn=$n.state,gn=$n.createURL,Pn=$n.instantSearchInstance,Tn=$n.helper,An=[],Dn=!1;function Mn(Qn){return gn(wn.resetPage().toggleFacetRefinement(ln,Qn))}if(cn||(cn=createSendEventForFacet({instantSearchInstance:Pn,helper:Tn,attribute:function(di){var fi=di.split(Wr).length-1;return zr[fi]},widgetType:this.$$type})),hn||(hn=function(di){cn("click:internal",di),Tn.toggleFacetRefinement(ln,di).search()}),yn){var Ln=yn.getFacetValues(ln,{sortBy:un,facetOrdering:un===DEFAULT_SORT$2}),On=Ln&&!Array.isArray(Ln)&&Ln.data?Ln.data:[],qn=(wn.maxValuesPerFacet||0)>vn()?On.length<=vn():On.length<vn();Dn=en&&(mn||!qn),An=sn(bn(On),{results:yn})}return{items:An,refine:hn,canRefine:An.length>0,createURL:Mn,sendEvent:cn,widgetParams:Fr,isShowingMore:mn,toggleShowMore:pn,canToggleShowMore:Dn}},getWidgetUiState:function($n,yn){var wn=yn.searchParameters,gn=wn.getHierarchicalFacetBreadcrumb(ln);return gn.length?_objectSpread$r(_objectSpread$r({},$n),{},{hierarchicalMenu:_objectSpread$r(_objectSpread$r({},$n.hierarchicalMenu),{},_defineProperty$s({},ln,gn))}):$n},getWidgetSearchParameters:function($n,yn){var wn=yn.uiState,gn=wn.hierarchicalMenu&&wn.hierarchicalMenu[ln];if($n.isConjunctiveFacet(ln)||$n.isDisjunctiveFacet(ln))return $n;$n.isHierarchicalFacet(ln)&&$n.getHierarchicalFacetByName(ln);var Pn=$n.removeHierarchicalFacet(ln).addHierarchicalFacet({name:ln,attributes:zr,separator:Wr,rootPath:Gr,showParentLevel:Qr}),Tn=Pn.maxValuesPerFacet||0,An=Math.max(Tn,en?nn:Zr),Dn=Pn.setQueryParameter("maxValuesPerFacet",An);return gn?Dn.addHierarchicalFacetRefinement(ln,gn.join(Wr)):Dn.setQueryParameters({hierarchicalFacetsRefinements:_objectSpread$r(_objectSpread$r({},Dn.hierarchicalFacetsRefinements),{},_defineProperty$s({},ln,[]))})}}}},i$a=connectHierarchicalMenu;function _typeof$t(_r){return _typeof$t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$t(_r)}function ownKeys$q(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$q(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$q(Object($r),!0).forEach(function(Fr){_defineProperty$r(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$q(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$r(_r,Fe,$r){return Fe=_toPropertyKey$r(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$r(_r){var Fe=_toPrimitive$r(_r,"string");return _typeof$t(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$r(_r,Fe){if(_typeof$t(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$t(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}var withUsage$k=createDocumentationMessageGenerator({name:"hits",connector:!0}),connectHits=function _r(Fe){var $r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$1;return checkRendering(Fe,withUsage$k()),function(Fr){var jr=Fr||{},zr=jr.escapeHTML,Vr=zr===void 0?!0:zr,Wr=jr.transformItems,Kr=Wr===void 0?function(Qr){return Qr}:Wr,Gr,Yr;return{$$type:"ais.hits",init:function(Jr){Fe(_objectSpread$q(_objectSpread$q({},this.getWidgetRenderState(Jr)),{},{instantSearchInstance:Jr.instantSearchInstance}),!0)},render:function(Jr){var Zr=this.getWidgetRenderState(Jr);Fe(_objectSpread$q(_objectSpread$q({},Zr),{},{instantSearchInstance:Jr.instantSearchInstance}),!1),Zr.sendEvent("view:internal",Zr.hits)},getRenderState:function(Jr,Zr){return _objectSpread$q(_objectSpread$q({},Jr),{},{hits:this.getWidgetRenderState(Zr)})},getWidgetRenderState:function(Jr){var Zr=Jr.results,tn=Jr.helper,en=Jr.instantSearchInstance;if(Gr||(Gr=createSendEventForHits({instantSearchInstance:en,index:tn.getIndex(),widgetType:this.$$type})),Yr||(Yr=createBindEventForHits({index:tn.getIndex(),widgetType:this.$$type,instantSearchInstance:en})),!Zr)return{hits:[],results:void 0,sendEvent:Gr,bindEvent:Yr,widgetParams:Fr};Vr&&Zr.hits.length>0&&(Zr.hits=escapeHits(Zr.hits));var rn=addAbsolutePosition(Zr.hits,Zr.page,Zr.hitsPerPage),nn=addQueryID(rn,Zr.queryID),on=Kr(nn,{results:Zr});return{hits:on,results:Zr,sendEvent:Gr,bindEvent:Yr,widgetParams:Fr}},dispose:function(Jr){var Zr=Jr.state;return $r(),Vr?Zr.setQueryParameters(Object.keys(TAG_PLACEHOLDER).reduce(function(tn,en){return _objectSpread$q(_objectSpread$q({},tn),{},_defineProperty$r({},en,void 0))},{})):Zr},getWidgetSearchParameters:function(Jr){return Vr?Jr.setQueryParameters(TAG_PLACEHOLDER):Jr}}}},connectHits$1=connectHits;function _typeof$s(_r){return _typeof$s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$s(_r)}function ownKeys$p(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$p(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$p(Object($r),!0).forEach(function(Fr){_defineProperty$q(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$p(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$q(_r,Fe,$r){return Fe=_toPropertyKey$q(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$q(_r){var Fe=_toPrimitive$q(_r,"string");return _typeof$s(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$q(_r,Fe){if(_typeof$s(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$s(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}var getSelectedHits=function _r(Fe,$r){return $r.map(function(Fr){var jr=find$5(Fe,function(zr){return zr.objectID===Fr});if(typeof jr=="undefined")throw new Error('Could not find objectID "'.concat(Fr,'" passed to `clickedObjectIDsAfterSearch` in the returned hits. This is necessary to infer the absolute position and the query ID.'));return jr})},getQueryID=function _r(Fe){var $r=uniq(Fe.map(function(jr){return jr.__queryID}));if($r.length>1)throw new Error("Insights currently allows a single `queryID`. The `objectIDs` provided map to multiple `queryID`s.");var Fr=$r[0];if(typeof Fr!="string")throw new Error("Could not infer `queryID`. Ensure InstantSearch `clickAnalytics: true` was added with the Configure widget.\n\nSee: https://alg.li/lNiZZ7");return Fr},getPositions=function _r(Fe){return Fe.map(function($r){return $r.__position})},inferPayload=function _r(Fe){var $r=Fe.method,Fr=Fe.results,jr=Fe.hits,zr=Fe.objectIDs,Vr=Fr.index,Wr=getSelectedHits(jr,zr),Kr=getQueryID(Wr);switch($r){case"clickedObjectIDsAfterSearch":{var Gr=getPositions(Wr);return{index:Vr,queryID:Kr,objectIDs:zr,positions:Gr}}case"convertedObjectIDsAfterSearch":return{index:Vr,queryID:Kr,objectIDs:zr};default:throw new Error('Unsupported method passed to insights: "'.concat($r,'".'))}},wrapInsightsClient=function _r(Fe,$r,Fr){return function(jr){for(var zr=arguments.length,Vr=new Array(zr>1?zr-1:0),Wr=1;Wr<zr;Wr++)Vr[Wr-1]=arguments[Wr];var Kr=Vr[0];if(!Fe){var Gr=createDocumentationMessageGenerator({name:"instantsearch"});throw new Error(Gr("The `insightsClient` option has not been provided to `instantsearch`."))}if(!Array.isArray(Kr.objectIDs))throw new TypeError("Expected `objectIDs` to be an array.");var Yr=inferPayload({method:jr,results:$r,hits:Fr,objectIDs:Kr.objectIDs});Fe(jr,_objectSpread$p(_objectSpread$p({},Yr),Kr))}};function withInsights(_r){return function(Fe,$r){return _r(function(Fr,jr){var zr=Fr.results,Vr=Fr.hits,Wr=Fr.instantSearchInstance;if(zr&&Vr&&Wr){var Kr=wrapInsightsClient(Wr.insightsClient,zr,Vr);return Fe(_objectSpread$p(_objectSpread$p({},Fr),{},{insights:Kr}),jr)}return Fe(Fr,jr)},$r)}}function _typeof$r(_r){return _typeof$r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$r(_r)}function writeDataAttributes(_r){var Fe=_r.method,$r=_r.payload;if(_typeof$r($r)!=="object")throw new Error("The insights helper expects the payload to be an object.");var Fr;try{Fr=serializePayload($r)}catch{throw new Error("Could not JSON serialize the payload object.")}return'data-insights-method="'.concat(Fe,'" data-insights-payload="').concat(Fr,'"')}function insights(_r,Fe){return writeDataAttributes({method:_r,payload:Fe})}var connectHitsWithInsights=withInsights(connectHits$1),e$A=connectHitsWithInsights;function _typeof$q(_r){return _typeof$q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$q(_r)}function _toConsumableArray$6(_r){return _arrayWithoutHoles$6(_r)||_iterableToArray$6(_r)||_unsupportedIterableToArray$b(_r)||_nonIterableSpread$6()}function _nonIterableSpread$6(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$b(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray$b(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray$b(_r,Fe)}}function _iterableToArray$6(_r){if(typeof Symbol!="undefined"&&_r[Symbol.iterator]!=null||_r["@@iterator"]!=null)return Array.from(_r)}function _arrayWithoutHoles$6(_r){if(Array.isArray(_r))return _arrayLikeToArray$b(_r)}function _arrayLikeToArray$b(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}function ownKeys$o(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$o(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$o(Object($r),!0).forEach(function(Fr){_defineProperty$p(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$o(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$p(_r,Fe,$r){return Fe=_toPropertyKey$p(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$p(_r){var Fe=_toPrimitive$p(_r,"string");return _typeof$q(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$p(_r,Fe){if(_typeof$q(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$q(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}var withUsage$j=createDocumentationMessageGenerator({name:"hits-per-page",connector:!0}),connectHitsPerPage=function _r(Fe){var $r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$1;return checkRendering(Fe,withUsage$j()),function(Fr){var jr=Fr||{},zr=jr.items,Vr=jr.transformItems,Wr=Vr===void 0?function(Zr){return Zr}:Vr;if(!Array.isArray(zr))throw new Error(withUsage$j("The `items` option expects an array of objects."));var Kr=zr,Gr=Kr.filter(function(Zr){return Zr.default===!0});if(Gr.length===0)throw new Error(withUsage$j("A default value must be specified in `items`."));if(Gr.length>1)throw new Error(withUsage$j("More than one default value is specified in `items`."));var Yr=Gr[0],Qr=function(tn){var en=tn.hitsPerPage;return Kr.map(function(rn){return _objectSpread$o(_objectSpread$o({},rn),{},{isRefined:Number(rn.value)===Number(en)})})},Jr={getRefine:function(tn){return function(en){return!en&&en!==0?tn.setQueryParameter("hitsPerPage",void 0).search():tn.setQueryParameter("hitsPerPage",en).search()}},createURLFactory:function(tn){var en=tn.state,rn=tn.createURL;return function(nn){return rn(en.resetPage().setQueryParameter("hitsPerPage",!nn&&nn!==0?void 0:nn))}}};return{$$type:"ais.hitsPerPage",init:function(tn){var en=tn.state,rn=tn.instantSearchInstance,nn=Kr.some(function(on){return Number(en.hitsPerPage)===Number(on.value)});nn||(Kr=[{value:"",label:""}].concat(_toConsumableArray$6(Kr))),Fe(_objectSpread$o(_objectSpread$o({},this.getWidgetRenderState(tn)),{},{instantSearchInstance:rn}),!0)},render:function(tn){var en=tn.instantSearchInstance;Fe(_objectSpread$o(_objectSpread$o({},this.getWidgetRenderState(tn)),{},{instantSearchInstance:en}),!1)},dispose:function(tn){var en=tn.state;return $r(),en.setQueryParameter("hitsPerPage",void 0)},getRenderState:function(tn,en){return _objectSpread$o(_objectSpread$o({},tn),{},{hitsPerPage:this.getWidgetRenderState(en)})},getWidgetRenderState:function(tn){var en=tn.state,rn=tn.results,nn=tn.createURL,on=tn.helper,un=rn?rn.nbHits>0:!1;return{items:Wr(Qr(en),{results:rn}),refine:Jr.getRefine(on),createURL:Jr.createURLFactory({state:en,createURL:nn}),hasNoResults:!un,canRefine:un,widgetParams:Fr}},getWidgetUiState:function(tn,en){var rn=en.searchParameters,nn=rn.hitsPerPage;return nn===void 0||nn===Yr.value?tn:_objectSpread$o(_objectSpread$o({},tn),{},{hitsPerPage:nn})},getWidgetSearchParameters:function(tn,en){var rn=en.uiState;return tn.setQueryParameters({hitsPerPage:rn.hitsPerPage||Yr.value})}}}},i$9=connectHitsPerPage;function _typeof$p(_r){return _typeof$p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$p(_r)}var _excluded$4=["page"],_excluded2$1=["clickAnalytics","userToken"];function ownKeys$n(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$n(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$n(Object($r),!0).forEach(function(Fr){_defineProperty$o(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$n(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$o(_r,Fe,$r){return Fe=_toPropertyKey$o(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$o(_r){var Fe=_toPrimitive$o(_r,"string");return _typeof$p(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$o(_r,Fe){if(_typeof$p(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$p(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}function _toConsumableArray$5(_r){return _arrayWithoutHoles$5(_r)||_iterableToArray$5(_r)||_unsupportedIterableToArray$a(_r)||_nonIterableSpread$5()}function _nonIterableSpread$5(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$a(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray$a(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray$a(_r,Fe)}}function _iterableToArray$5(_r){if(typeof Symbol!="undefined"&&_r[Symbol.iterator]!=null||_r["@@iterator"]!=null)return Array.from(_r)}function _arrayWithoutHoles$5(_r){if(Array.isArray(_r))return _arrayLikeToArray$a(_r)}function _arrayLikeToArray$a(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}function _objectWithoutProperties$4(_r,Fe){if(_r==null)return{};var $r=_objectWithoutPropertiesLoose$5(_r,Fe),Fr,jr;if(Object.getOwnPropertySymbols){var zr=Object.getOwnPropertySymbols(_r);for(jr=0;jr<zr.length;jr++)Fr=zr[jr],!(Fe.indexOf(Fr)>=0)&&(!Object.prototype.propertyIsEnumerable.call(_r,Fr)||($r[Fr]=_r[Fr]))}return $r}function _objectWithoutPropertiesLoose$5(_r,Fe){if(_r==null)return{};var $r={},Fr=Object.keys(_r),jr,zr;for(zr=0;zr<Fr.length;zr++)jr=Fr[zr],!(Fe.indexOf(jr)>=0)&&($r[jr]=_r[jr]);return $r}var withUsage$i=createDocumentationMessageGenerator({name:"infinite-hits",connector:!0});function getStateWithoutPage$1(_r){var Fe=_r||{};Fe.page;var $r=_objectWithoutProperties$4(Fe,_excluded$4);return $r}function normalizeState(_r){var Fe=_r||{};Fe.clickAnalytics,Fe.userToken;var $r=_objectWithoutProperties$4(Fe,_excluded2$1);return $r}function getInMemoryCache(){var _r=null,Fe=null;return{read:function(Fr){var jr=Fr.state;return isEqual(Fe,getStateWithoutPage$1(jr))?_r:null},write:function(Fr){var jr=Fr.state,zr=Fr.hits;Fe=getStateWithoutPage$1(jr),_r=zr}}}function extractHitsFromCachedHits(_r){return Object.keys(_r).map(Number).sort(function(Fe,$r){return Fe-$r}).reduce(function(Fe,$r){return Fe.concat(_r[$r])},[])}var connectInfiniteHits=function _r(Fe){var $r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$1;return checkRendering(Fe,withUsage$i()),function(Fr){var jr=Fr||{},zr=jr.escapeHTML,Vr=zr===void 0?!0:zr,Wr=jr.transformItems,Kr=Wr===void 0?function(un){return un}:Wr,Gr=jr.cache,Yr=Gr===void 0?getInMemoryCache():Gr,Qr,Jr,Zr,tn,en=function(an,sn){var dn=an.page,ln=dn===void 0?0:dn,cn=Object.keys(sn).map(Number);return cn.length===0?ln:Math.min.apply(Math,[ln].concat(_toConsumableArray$5(cn)))},rn=function(an,sn){var dn=an.page,ln=dn===void 0?0:dn,cn=Object.keys(sn).map(Number);return cn.length===0?ln:Math.max.apply(Math,[ln].concat(_toConsumableArray$5(cn)))},nn=function(an){return function(){an.overrideStateWithoutTriggeringChangeEvent(_objectSpread$n(_objectSpread$n({},an.state),{},{page:en(an.state,Yr.read({state:normalizeState(an.state)})||{})-1})).searchWithoutTriggeringOnStateChange()}},on=function(an){return function(){an.setPage(rn(an.state,Yr.read({state:normalizeState(an.state)})||{})+1).search()}};return{$$type:"ais.infiniteHits",init:function(an){Fe(_objectSpread$n(_objectSpread$n({},this.getWidgetRenderState(an)),{},{instantSearchInstance:an.instantSearchInstance}),!0)},render:function(an){var sn=an.instantSearchInstance,dn=this.getWidgetRenderState(an);Fe(_objectSpread$n(_objectSpread$n({},dn),{},{instantSearchInstance:sn}),!1),Zr("view:internal",dn.currentPageHits)},getRenderState:function(an,sn){return _objectSpread$n(_objectSpread$n({},an),{},{infiniteHits:this.getWidgetRenderState(sn)})},getWidgetRenderState:function(an){var sn=an.results,dn=an.helper,ln=an.parent,cn=an.state,fn=an.instantSearchInstance,pn,hn=[],mn=ln.getPreviousState()||cn,Sn=Yr.read({state:normalizeState(mn)})||{};if(!sn)Qr=nn(dn),Jr=on(dn),Zr=createSendEventForHits({instantSearchInstance:fn,index:dn.getIndex(),widgetType:this.$$type}),tn=createBindEventForHits({index:dn.getIndex(),widgetType:this.$$type,instantSearchInstance:fn}),pn=mn.page===void 0||en(mn,Sn)===0;else{var vn,bn,_n,$n=mn.page,yn=$n===void 0?0:$n;Vr&&sn.hits.length>0&&(sn.hits=escapeHits(sn.hits));var wn=addAbsolutePosition(sn.hits,sn.page,sn.hitsPerPage),gn=addQueryID(wn,sn.queryID),Pn=Kr(gn,{results:sn}),Tn=!1;walkIndex(fn.mainIndex,function(Ln){!Tn&&Ln.getWidgets().some(function(On){var qn=On.$$type;return qn==="ais.dynamicWidgets"})&&(Tn=!0)});var An=!((vn=sn.disjunctiveFacets)!==null&&vn!==void 0&&vn.length)&&!((bn=sn.facets)!==null&&bn!==void 0&&bn.length)&&!((_n=sn.hierarchicalFacets)!==null&&_n!==void 0&&_n.length);Sn[yn]===void 0&&!sn.__isArtificial&&fn.status==="idle"&&!(Tn&&An)&&(Sn[yn]=Pn,Yr.write({state:normalizeState(mn),hits:Sn})),hn=Pn,pn=en(mn,Sn)===0}var Dn=extractHitsFromCachedHits(Sn),Mn=sn?sn.nbPages<=rn(mn,Sn)+1:!0;return{hits:Dn,currentPageHits:hn,sendEvent:Zr,bindEvent:tn,results:sn,showPrevious:Qr,showMore:Jr,isFirstPage:pn,isLastPage:Mn,widgetParams:Fr}},dispose:function(an){var sn=an.state;$r();var dn=sn.setQueryParameter("page",void 0);return Vr?dn.setQueryParameters(Object.keys(TAG_PLACEHOLDER).reduce(function(ln,cn){return _objectSpread$n(_objectSpread$n({},ln),{},_defineProperty$o({},cn,void 0))},{})):dn},getWidgetUiState:function(an,sn){var dn=sn.searchParameters,ln=dn.page||0;return ln?_objectSpread$n(_objectSpread$n({},an),{},{page:ln+1}):an},getWidgetSearchParameters:function(an,sn){var dn=sn.uiState,ln=an;Vr&&(ln=an.setQueryParameters(TAG_PLACEHOLDER));var cn=dn.page?dn.page-1:0;return ln.setQueryParameter("page",cn)}}}},connectInfiniteHits$1=connectInfiniteHits,connectInfiniteHitsWithInsights=withInsights(connectInfiniteHits$1),s$6=connectInfiniteHitsWithInsights,_excluded$3=["name","escapedValue","path"];function _typeof$o(_r){return _typeof$o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$o(_r)}function _objectWithoutProperties$3(_r,Fe){if(_r==null)return{};var $r=_objectWithoutPropertiesLoose$4(_r,Fe),Fr,jr;if(Object.getOwnPropertySymbols){var zr=Object.getOwnPropertySymbols(_r);for(jr=0;jr<zr.length;jr++)Fr=zr[jr],!(Fe.indexOf(Fr)>=0)&&(!Object.prototype.propertyIsEnumerable.call(_r,Fr)||($r[Fr]=_r[Fr]))}return $r}function _objectWithoutPropertiesLoose$4(_r,Fe){if(_r==null)return{};var $r={},Fr=Object.keys(_r),jr,zr;for(zr=0;zr<Fr.length;zr++)jr=Fr[zr],!(Fe.indexOf(jr)>=0)&&($r[jr]=_r[jr]);return $r}function _slicedToArray$6(_r,Fe){return _arrayWithHoles$6(_r)||_iterableToArrayLimit$6(_r,Fe)||_unsupportedIterableToArray$9(_r,Fe)||_nonIterableRest$6()}function _nonIterableRest$6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$9(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray$9(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray$9(_r,Fe)}}function _arrayLikeToArray$9(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}function _iterableToArrayLimit$6(_r,Fe){var $r=_r==null?null:typeof Symbol!="undefined"&&_r[Symbol.iterator]||_r["@@iterator"];if($r!=null){var Fr,jr,zr,Vr,Wr=[],Kr=!0,Gr=!1;try{if(zr=($r=$r.call(_r)).next,Fe===0){if(Object($r)!==$r)return;Kr=!1}else for(;!(Kr=(Fr=zr.call($r)).done)&&(Wr.push(Fr.value),Wr.length!==Fe);Kr=!0);}catch(Yr){Gr=!0,jr=Yr}finally{try{if(!Kr&&$r.return!=null&&(Vr=$r.return(),Object(Vr)!==Vr))return}finally{if(Gr)throw jr}}return Wr}}function _arrayWithHoles$6(_r){if(Array.isArray(_r))return _r}function ownKeys$m(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$m(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$m(Object($r),!0).forEach(function(Fr){_defineProperty$n(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$m(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$n(_r,Fe,$r){return Fe=_toPropertyKey$n(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$n(_r){var Fe=_toPrimitive$n(_r,"string");return _typeof$o(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$n(_r,Fe){if(_typeof$o(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$o(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}var withUsage$h=createDocumentationMessageGenerator({name:"menu",connector:!0}),DEFAULT_SORT$1=["isRefined","name:asc"],connectMenu=function _r(Fe){var $r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$1;return checkRendering(Fe,withUsage$h()),function(Fr){var jr=Fr||{},zr=jr.attribute,Vr=jr.limit,Wr=Vr===void 0?10:Vr,Kr=jr.showMore,Gr=Kr===void 0?!1:Kr,Yr=jr.showMoreLimit,Qr=Yr===void 0?20:Yr,Jr=jr.sortBy,Zr=Jr===void 0?DEFAULT_SORT$1:Jr,tn=jr.transformItems,en=tn===void 0?function(cn){return cn}:tn;if(!zr)throw new Error(withUsage$h("The `attribute` option is required."));if(Gr===!0&&Qr<=Wr)throw new Error(withUsage$h("The `showMoreLimit` option must be greater than `limit`."));var rn,nn,on,un=!1,an=function(){};function sn(cn,fn){return function(){un=!un,fn.render(cn)}}function dn(){an()}function ln(){return un?Qr:Wr}return{$$type:"ais.menu",init:function(fn){var pn=fn.instantSearchInstance;Fe(_objectSpread$m(_objectSpread$m({},this.getWidgetRenderState(fn)),{},{instantSearchInstance:pn}),!0)},render:function(fn){var pn=fn.instantSearchInstance;Fe(_objectSpread$m(_objectSpread$m({},this.getWidgetRenderState(fn)),{},{instantSearchInstance:pn}),!1)},dispose:function(fn){var pn=fn.state;return $r(),pn.removeHierarchicalFacet(zr).setQueryParameter("maxValuesPerFacet",void 0)},getRenderState:function(fn,pn){return _objectSpread$m(_objectSpread$m({},fn),{},{menu:_objectSpread$m(_objectSpread$m({},fn.menu),{},_defineProperty$n({},zr,this.getWidgetRenderState(pn)))})},getWidgetRenderState:function(fn){var pn=fn.results,hn=fn.createURL,mn=fn.instantSearchInstance,Sn=fn.helper,vn=[],bn=!1;if(rn||(rn=createSendEventForFacet({instantSearchInstance:mn,helper:Sn,attribute:zr,widgetType:this.$$type})),nn||(nn=function(wn){return hn(Sn.state.resetPage().toggleFacetRefinement(zr,wn))}),on||(on=function(wn){var gn=Sn.getHierarchicalFacetBreadcrumb(zr),Pn=_slicedToArray$6(gn,1),Tn=Pn[0];rn("click:internal",wn||Tn),Sn.toggleFacetRefinement(zr,wn||Tn).search()}),fn.results&&(an=sn(fn,this)),pn){var _n=pn.getFacetValues(zr,{sortBy:Zr,facetOrdering:Zr===DEFAULT_SORT$1}),$n=_n&&!Array.isArray(_n)&&_n.data?_n.data:[];bn=Gr&&(un||$n.length>ln()),vn=en($n.slice(0,ln()).map(function(yn){var wn=yn.name,gn=yn.escapedValue;yn.path;var Pn=_objectWithoutProperties$3(yn,_excluded$3);return _objectSpread$m(_objectSpread$m({},Pn),{},{label:wn,value:gn})}),{results:pn})}return{items:vn,createURL:nn,refine:on,sendEvent:rn,canRefine:vn.length>0,widgetParams:Fr,isShowingMore:un,toggleShowMore:dn,canToggleShowMore:bn}},getWidgetUiState:function(fn,pn){var hn=pn.searchParameters,mn=hn.getHierarchicalFacetBreadcrumb(zr),Sn=_slicedToArray$6(mn,1),vn=Sn[0];return vn?_objectSpread$m(_objectSpread$m({},fn),{},{menu:_objectSpread$m(_objectSpread$m({},fn.menu),{},_defineProperty$n({},zr,vn))}):fn},getWidgetSearchParameters:function(fn,pn){var hn=pn.uiState,mn=hn.menu&&hn.menu[zr];if(fn.isConjunctiveFacet(zr)||fn.isDisjunctiveFacet(zr))return fn;var Sn=fn.removeHierarchicalFacet(zr).addHierarchicalFacet({name:zr,attributes:[zr]}),vn=Sn.maxValuesPerFacet||0,bn=Math.max(vn,Gr?Qr:Wr),_n=Sn.setQueryParameter("maxValuesPerFacet",bn);return mn?_n.addHierarchicalFacetRefinement(zr,mn):_n.setQueryParameters({hierarchicalFacetsRefinements:_objectSpread$m(_objectSpread$m({},_n.hierarchicalFacetsRefinements),{},_defineProperty$n({},zr,[]))})}}}},i$8=connectMenu;function _typeof$n(_r){return _typeof$n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$n(_r)}function _createForOfIteratorHelper(_r,Fe){var $r=typeof Symbol!="undefined"&&_r[Symbol.iterator]||_r["@@iterator"];if(!$r){if(Array.isArray(_r)||($r=_unsupportedIterableToArray$8(_r))||Fe&&_r&&typeof _r.length=="number"){$r&&(_r=$r);var Fr=0,jr=function(){};return{s:jr,n:function(){return Fr>=_r.length?{done:!0}:{done:!1,value:_r[Fr++]}},e:function(Gr){throw Gr},f:jr}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var zr=!0,Vr=!1,Wr;return{s:function(){$r=$r.call(_r)},n:function(){var Gr=$r.next();return zr=Gr.done,Gr},e:function(Gr){Vr=!0,Wr=Gr},f:function(){try{!zr&&$r.return!=null&&$r.return()}finally{if(Vr)throw Wr}}}}function _slicedToArray$5(_r,Fe){return _arrayWithHoles$5(_r)||_iterableToArrayLimit$5(_r,Fe)||_unsupportedIterableToArray$8(_r,Fe)||_nonIterableRest$5()}function _nonIterableRest$5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$8(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray$8(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray$8(_r,Fe)}}function _arrayLikeToArray$8(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}function _iterableToArrayLimit$5(_r,Fe){var $r=_r==null?null:typeof Symbol!="undefined"&&_r[Symbol.iterator]||_r["@@iterator"];if($r!=null){var Fr,jr,zr,Vr,Wr=[],Kr=!0,Gr=!1;try{if(zr=($r=$r.call(_r)).next,Fe===0){if(Object($r)!==$r)return;Kr=!1}else for(;!(Kr=(Fr=zr.call($r)).done)&&(Wr.push(Fr.value),Wr.length!==Fe);Kr=!0);}catch(Yr){Gr=!0,jr=Yr}finally{try{if(!Kr&&$r.return!=null&&(Vr=$r.return(),Object(Vr)!==Vr))return}finally{if(Gr)throw jr}}return Wr}}function _arrayWithHoles$5(_r){if(Array.isArray(_r))return _r}function ownKeys$l(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$l(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$l(Object($r),!0).forEach(function(Fr){_defineProperty$m(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$l(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$m(_r,Fe,$r){return Fe=_toPropertyKey$m(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$m(_r){var Fe=_toPrimitive$m(_r,"string");return _typeof$n(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$m(_r,Fe){if(_typeof$n(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$n(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}var withUsage$g=createDocumentationMessageGenerator({name:"numeric-menu",connector:!0}),$$type$3="ais.numericMenu",createSendEvent$2=function _r(Fe){var $r=Fe.instantSearchInstance;return function(){if(arguments.length===1){$r.sendEventToInsights(arguments.length<=0?void 0:arguments[0]);return}}},connectNumericMenu=function _r(Fe){var $r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$1;return checkRendering(Fe,withUsage$g()),function(Fr){var jr=Fr||{},zr=jr.attribute,Vr=zr===void 0?"":zr,Wr=jr.items,Kr=Wr===void 0?[]:Wr,Gr=jr.transformItems,Yr=Gr===void 0?function(Zr){return Zr}:Gr;if(Vr==="")throw new Error(withUsage$g("The `attribute` option is required."));if(!Kr||Kr.length===0)throw new Error(withUsage$g("The `items` option expects an array of objects."));var Qr=function(tn){return Kr.map(function(en){var rn=en.start,nn=en.end,on=en.label;return{label:on,value:encodeURI(JSON.stringify({start:rn,end:nn})),isRefined:isRefined(tn,Vr,{start:rn,end:nn,label:on})}})},Jr={};return{$$type:$$type$3,init:function(tn){var en=tn.instantSearchInstance;Fe(_objectSpread$l(_objectSpread$l({},this.getWidgetRenderState(tn)),{},{instantSearchInstance:en}),!0)},render:function(tn){var en=tn.instantSearchInstance;Fe(_objectSpread$l(_objectSpread$l({},this.getWidgetRenderState(tn)),{},{instantSearchInstance:en}),!1)},dispose:function(tn){var en=tn.state;return $r(),en.clearRefinements(Vr)},getWidgetUiState:function(tn,en){var rn=en.searchParameters,nn=rn.getNumericRefinements(Vr),on=nn["="]&&nn["="][0];if(on||on===0)return _objectSpread$l(_objectSpread$l({},tn),{},{numericMenu:_objectSpread$l(_objectSpread$l({},tn.numericMenu),{},_defineProperty$m({},Vr,"".concat(nn["="])))});var un=nn[">="]&&nn[">="][0]||"",an=nn["<="]&&nn["<="][0]||"";return un===""&&an===""?tn:_objectSpread$l(_objectSpread$l({},tn),{},{numericMenu:_objectSpread$l(_objectSpread$l({},tn.numericMenu),{},_defineProperty$m({},Vr,"".concat(un,":").concat(an)))})},getWidgetSearchParameters:function(tn,en){var rn=en.uiState,nn=rn.numericMenu&&rn.numericMenu[Vr],on=tn.clearRefinements(Vr);if(!nn)return on.setQueryParameters({numericRefinements:_objectSpread$l(_objectSpread$l({},on.numericRefinements),{},_defineProperty$m({},Vr,{}))});var un=nn.indexOf(":")===-1;if(un)return on.addNumericRefinement(Vr,"=",Number(nn));var an=nn.split(":").map(parseFloat),sn=_slicedToArray$5(an,2),dn=sn[0],ln=sn[1],cn=isFiniteNumber(dn)?on.addNumericRefinement(Vr,">=",dn):on,fn=isFiniteNumber(ln)?cn.addNumericRefinement(Vr,"<=",ln):cn;return fn},getRenderState:function(tn,en){return _objectSpread$l(_objectSpread$l({},tn),{},{numericMenu:_objectSpread$l(_objectSpread$l({},tn.numericMenu),{},_defineProperty$m({},Vr,this.getWidgetRenderState(en)))})},getWidgetRenderState:function(tn){var en=tn.results,rn=tn.state,nn=tn.instantSearchInstance,on=tn.helper,un=tn.createURL;Jr.refine||(Jr.refine=function(pn){var hn=getRefinedState(on.state,Vr,pn);Jr.sendEvent("click:internal",pn),on.setState(hn).search()}),Jr.createURL||(Jr.createURL=function(pn){return function(hn){return un(getRefinedState(pn,Vr,hn))}}),Jr.sendEvent||(Jr.sendEvent=createSendEvent$2({instantSearchInstance:nn}));var an=en?en.nbHits===0:!0,sn=Qr(rn),dn=!0,ln=_createForOfIteratorHelper(sn),cn;try{for(ln.s();!(cn=ln.n()).done;){var fn=cn.value;if(fn.isRefined&&decodeURI(fn.value)!=="{}"){dn=!1;break}}}catch(pn){ln.e(pn)}finally{ln.f()}return{createURL:Jr.createURL(rn),items:Yr(sn,{results:en}),hasNoResults:an,canRefine:!(an&&dn),refine:Jr.refine,sendEvent:Jr.sendEvent,widgetParams:Fr}}}}};function isRefined(_r,Fe,$r){var Fr=_r.getNumericRefinements(Fe);return $r.start!==void 0&&$r.end!==void 0?$r.start===$r.end?hasNumericRefinement(Fr,"=",$r.start):hasNumericRefinement(Fr,">=",$r.start)&&hasNumericRefinement(Fr,"<=",$r.end):$r.start!==void 0?hasNumericRefinement(Fr,">=",$r.start):$r.end!==void 0?hasNumericRefinement(Fr,"<=",$r.end):$r.start===void 0&&$r.end===void 0?Object.keys(Fr).every(function(jr){return(Fr[jr]||[]).length===0}):!1}function getRefinedState(_r,Fe,$r){var Fr=_r,jr=JSON.parse(decodeURI($r)),zr=Fr.getNumericRefinements(Fe);if(jr.start===void 0&&jr.end===void 0)return Fr.removeNumericRefinement(Fe);if(isRefined(Fr,Fe,jr)||(Fr=Fr.removeNumericRefinement(Fe)),jr.start!==void 0&&jr.end!==void 0){if(jr.start>jr.end)throw new Error("option.start should be > to option.end");if(jr.start===jr.end)return hasNumericRefinement(zr,"=",jr.start)?Fr=Fr.removeNumericRefinement(Fe,"=",jr.start):Fr=Fr.addNumericRefinement(Fe,"=",jr.start),Fr}return jr.start!==void 0&&(hasNumericRefinement(zr,">=",jr.start)&&(Fr=Fr.removeNumericRefinement(Fe,">=",jr.start)),Fr=Fr.addNumericRefinement(Fe,">=",jr.start)),jr.end!==void 0&&(hasNumericRefinement(zr,"<=",jr.end)&&(Fr=Fr.removeNumericRefinement(Fe,"<=",jr.end)),Fr=Fr.addNumericRefinement(Fe,"<=",jr.end)),typeof Fr.page=="number"&&(Fr.page=0),Fr}function hasNumericRefinement(_r,Fe,$r){return _r[Fe]!==void 0&&_r[Fe].includes($r)}var i$7=connectNumericMenu;function _typeof$m(_r){return _typeof$m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$m(_r)}function _classCallCheck$1(_r,Fe){if(!(_r instanceof Fe))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(_r,Fe){for(var $r=0;$r<Fe.length;$r++){var Fr=Fe[$r];Fr.enumerable=Fr.enumerable||!1,Fr.configurable=!0,"value"in Fr&&(Fr.writable=!0),Object.defineProperty(_r,_toPropertyKey$l(Fr.key),Fr)}}function _createClass$1(_r,Fe,$r){return Fe&&_defineProperties$1(_r.prototype,Fe),$r&&_defineProperties$1(_r,$r),Object.defineProperty(_r,"prototype",{writable:!1}),_r}function _defineProperty$l(_r,Fe,$r){return Fe=_toPropertyKey$l(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$l(_r){var Fe=_toPrimitive$l(_r,"string");return _typeof$m(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$l(_r,Fe){if(_typeof$m(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$m(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}var Paginator=function(){function _r(Fe){_classCallCheck$1(this,_r),_defineProperty$l(this,"currentPage",void 0),_defineProperty$l(this,"total",void 0),_defineProperty$l(this,"padding",void 0),this.currentPage=Fe.currentPage,this.total=Fe.total,this.padding=Fe.padding}return _createClass$1(_r,[{key:"pages",value:function(){var $r=this.total,Fr=this.currentPage,jr=this.padding;if($r===0)return[0];var zr=this.nbPagesDisplayed(jr,$r);if(zr===$r)return range({end:$r});var Vr=this.calculatePaddingLeft(Fr,jr,$r,zr),Wr=zr-Vr,Kr=Fr-Vr,Gr=Fr+Wr;return range({start:Kr,end:Gr})}},{key:"nbPagesDisplayed",value:function($r,Fr){return Math.min(2*$r+1,Fr)}},{key:"calculatePaddingLeft",value:function($r,Fr,jr,zr){return $r<=Fr?$r:$r>=jr-Fr?zr-(jr-$r):Fr}},{key:"isLastPage",value:function(){return this.currentPage===this.total-1||this.total===0}},{key:"isFirstPage",value:function(){return this.currentPage===0}}]),_r}(),Paginator$1=Paginator;function _typeof$l(_r){return _typeof$l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$l(_r)}function ownKeys$k(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$k(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$k(Object($r),!0).forEach(function(Fr){_defineProperty$k(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$k(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$k(_r,Fe,$r){return Fe=_toPropertyKey$k(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$k(_r){var Fe=_toPrimitive$k(_r,"string");return _typeof$l(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$k(_r,Fe){if(_typeof$l(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$l(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}var withUsage$f=createDocumentationMessageGenerator({name:"pagination",connector:!0}),connectPagination=function _r(Fe){var $r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$1;return checkRendering(Fe,withUsage$f()),function(Fr){var jr=Fr||{},zr=jr.totalPages,Vr=jr.padding,Wr=Vr===void 0?3:Vr,Kr=new Paginator$1({currentPage:0,total:0,padding:Wr}),Gr={};function Yr(Qr){var Jr=Qr.nbPages;return zr!==void 0?Math.min(zr,Jr):Jr}return{$$type:"ais.pagination",init:function(Jr){var Zr=Jr.instantSearchInstance;Fe(_objectSpread$k(_objectSpread$k({},this.getWidgetRenderState(Jr)),{},{instantSearchInstance:Zr}),!0)},render:function(Jr){var Zr=Jr.instantSearchInstance;Fe(_objectSpread$k(_objectSpread$k({},this.getWidgetRenderState(Jr)),{},{instantSearchInstance:Zr}),!1)},dispose:function(Jr){var Zr=Jr.state;return $r(),Zr.setQueryParameter("page",void 0)},getWidgetUiState:function(Jr,Zr){var tn=Zr.searchParameters,en=tn.page||0;return en?_objectSpread$k(_objectSpread$k({},Jr),{},{page:en+1}):Jr},getWidgetSearchParameters:function(Jr,Zr){var tn=Zr.uiState,en=tn.page?tn.page-1:0;return Jr.setQueryParameter("page",en)},getWidgetRenderState:function(Jr){var Zr=Jr.results,tn=Jr.helper,en=Jr.state,rn=Jr.createURL;Gr.refine||(Gr.refine=function(un){tn.setPage(un),tn.search()}),Gr.createURL||(Gr.createURL=function(un){return function(an){return rn(un.setPage(an))}});var nn=en.page||0,on=Yr(Zr||{nbPages:0});return Kr.currentPage=nn,Kr.total=on,{createURL:Gr.createURL(en),refine:Gr.refine,canRefine:on>1,currentRefinement:nn,nbHits:(Zr==null?void 0:Zr.nbHits)||0,nbPages:on,pages:Zr?Kr.pages():[],isFirstPage:Kr.isFirstPage(),isLastPage:Kr.isLastPage(),widgetParams:Fr}},getRenderState:function(Jr,Zr){return _objectSpread$k(_objectSpread$k({},Jr),{},{pagination:this.getWidgetRenderState(Zr)})}}}},a$7=connectPagination;function _typeof$k(_r){return _typeof$k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$k(_r)}function ownKeys$j(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$j(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$j(Object($r),!0).forEach(function(Fr){_defineProperty$j(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$j(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$j(_r,Fe,$r){return Fe=_toPropertyKey$j(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$j(_r){var Fe=_toPrimitive$j(_r,"string");return _typeof$k(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$j(_r,Fe){if(_typeof$k(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$k(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}function _slicedToArray$4(_r,Fe){return _arrayWithHoles$4(_r)||_iterableToArrayLimit$4(_r,Fe)||_unsupportedIterableToArray$7(_r,Fe)||_nonIterableRest$4()}function _nonIterableRest$4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$7(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray$7(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray$7(_r,Fe)}}function _arrayLikeToArray$7(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}function _iterableToArrayLimit$4(_r,Fe){var $r=_r==null?null:typeof Symbol!="undefined"&&_r[Symbol.iterator]||_r["@@iterator"];if($r!=null){var Fr,jr,zr,Vr,Wr=[],Kr=!0,Gr=!1;try{if(zr=($r=$r.call(_r)).next,Fe===0){if(Object($r)!==$r)return;Kr=!1}else for(;!(Kr=(Fr=zr.call($r)).done)&&(Wr.push(Fr.value),Wr.length!==Fe);Kr=!0);}catch(Yr){Gr=!0,jr=Yr}finally{try{if(!Kr&&$r.return!=null&&(Vr=$r.return(),Object(Vr)!==Vr))return}finally{if(Gr)throw jr}}return Wr}}function _arrayWithHoles$4(_r){if(Array.isArray(_r))return _r}var withUsage$e=createDocumentationMessageGenerator({name:"range-input",connector:!0},{name:"range-slider",connector:!0}),$$type$2="ais.range";function toPrecision(_r){var Fe=_r.min,$r=_r.max,Fr=_r.precision,jr=Math.pow(10,Fr);return{min:Fe&&Math.floor(Fe*jr)/jr,max:$r&&Math.ceil($r*jr)/jr}}var connectRange=function _r(Fe){var $r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$1;return checkRendering(Fe,withUsage$e()),function(Fr){var jr=Fr||{},zr=jr.attribute,Vr=zr===void 0?"":zr,Wr=jr.min,Kr=jr.max,Gr=jr.precision,Yr=Gr===void 0?0:Gr;if(!Vr)throw new Error(withUsage$e("The `attribute` option is required."));if(isFiniteNumber(Wr)&&isFiniteNumber(Kr)&&Wr>Kr)throw new Error(withUsage$e("The `max` option can't be lower than `min`."));var Qr=function(un){return Number(Number(un).toFixed(Yr))},Jr={from:function(un){return un.toLocaleString()},to:function(un){return Qr(un).toLocaleString()}},Zr=function(un,an,sn,dn){var ln=un.state,cn=an.min,fn=an.max,pn=ln.getNumericRefinement(Vr,">=")||[],hn=_slicedToArray$4(pn,1),mn=hn[0],Sn=ln.getNumericRefinement(Vr,"<=")||[],vn=_slicedToArray$4(Sn,1),bn=vn[0],_n=sn===void 0||sn==="",$n=dn===void 0||dn==="",yn=toPrecision({min:_n?void 0:parseFloat(sn),max:$n?void 0:parseFloat(dn),precision:Yr}),wn=yn.min,gn=yn.max,Pn;!isFiniteNumber(Wr)&&cn===wn?Pn=void 0:isFiniteNumber(Wr)&&_n?Pn=Wr:Pn=wn;var Tn;!isFiniteNumber(Kr)&&fn===gn?Tn=void 0:isFiniteNumber(Kr)&&$n?Tn=Kr:Tn=gn;var An=Pn===void 0,Dn=isFiniteNumber(cn)&&cn<=Pn,Mn=An||isFiniteNumber(Pn)&&(!isFiniteNumber(cn)||Dn),Ln=Tn===void 0,On=isFiniteNumber(Tn)&&fn>=Tn,qn=Ln||isFiniteNumber(Tn)&&(!isFiniteNumber(fn)||On),Qn=mn!==Pn,di=bn!==Tn;return(Qn||di)&&Mn&&qn?(ln=ln.removeNumericRefinement(Vr),isFiniteNumber(Pn)&&(ln=ln.addNumericRefinement(Vr,">=",Pn)),isFiniteNumber(Tn)&&(ln=ln.addNumericRefinement(Vr,"<=",Tn)),ln.resetPage()):null},tn=function(un){return function(){if(arguments.length===1){un.sendEventToInsights(arguments.length<=0?void 0:arguments[0]);return}}};function en(on){var un;isFiniteNumber(Wr)?un=Wr:isFiniteNumber(on.min)?un=on.min:un=0;var an;return isFiniteNumber(Kr)?an=Kr:isFiniteNumber(on.max)?an=on.max:an=0,toPrecision({min:un,max:an,precision:Yr})}function rn(on){var un=on.getNumericRefinement(Vr,">=")||[],an=_slicedToArray$4(un,1),sn=an[0],dn=on.getNumericRefinement(Vr,"<=")||[],ln=_slicedToArray$4(dn,1),cn=ln[0],fn=isFiniteNumber(sn)?sn:-1/0,pn=isFiniteNumber(cn)?cn:1/0;return[fn,pn]}function nn(on,un){return function(){var an=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[void 0,void 0],sn=_slicedToArray$4(an,2),dn=sn[0],ln=sn[1],cn=Zr(on,un,dn,ln);cn&&on.setState(cn).search()}}return{$$type:$$type$2,init:function(un){Fe(_objectSpread$j(_objectSpread$j({},this.getWidgetRenderState(un)),{},{instantSearchInstance:un.instantSearchInstance}),!0)},render:function(un){Fe(_objectSpread$j(_objectSpread$j({},this.getWidgetRenderState(un)),{},{instantSearchInstance:un.instantSearchInstance}),!1)},getRenderState:function(un,an){return _objectSpread$j(_objectSpread$j({},un),{},{range:_objectSpread$j(_objectSpread$j({},un.range),{},_defineProperty$j({},Vr,this.getWidgetRenderState(an)))})},getWidgetRenderState:function(un){var an=un.results,sn=un.helper,dn=un.instantSearchInstance,ln=an&&an.disjunctiveFacets||[],cn=find$5(ln,function(Sn){return Sn.name===Vr}),fn=cn&&cn.stats||{min:void 0,max:void 0},pn=en(fn),hn=rn(sn),mn;return an?mn=nn(sn,pn):mn=nn(sn,{min:void 0,max:void 0}),{refine:mn,canRefine:pn.min!==pn.max,format:Jr,range:pn,sendEvent:tn(dn),widgetParams:_objectSpread$j(_objectSpread$j({},Fr),{},{precision:Yr}),start:hn}},dispose:function(un){var an=un.state;return $r(),an.removeDisjunctiveFacet(Vr).removeNumericRefinement(Vr)},getWidgetUiState:function(un,an){var sn=an.searchParameters,dn=sn.getNumericRefinements(Vr),ln=dn[">="],cn=ln===void 0?[]:ln,fn=dn["<="],pn=fn===void 0?[]:fn;return cn.length===0&&pn.length===0?un:_objectSpread$j(_objectSpread$j({},un),{},{range:_objectSpread$j(_objectSpread$j({},un.range),{},_defineProperty$j({},Vr,"".concat(cn,":").concat(pn)))})},getWidgetSearchParameters:function(un,an){var sn=an.uiState,dn=un.addDisjunctiveFacet(Vr).setQueryParameters({numericRefinements:_objectSpread$j(_objectSpread$j({},un.numericRefinements),{},_defineProperty$j({},Vr,{}))});isFiniteNumber(Wr)&&(dn=dn.addNumericRefinement(Vr,">=",Wr)),isFiniteNumber(Kr)&&(dn=dn.addNumericRefinement(Vr,"<=",Kr));var ln=sn.range&&sn.range[Vr];if(!ln||ln.indexOf(":")===-1)return dn;var cn=ln.split(":").map(parseFloat),fn=_slicedToArray$4(cn,2),pn=fn[0],hn=fn[1];return isFiniteNumber(pn)&&(!isFiniteNumber(Wr)||Wr<pn)&&(dn=dn.removeNumericRefinement(Vr,">="),dn=dn.addNumericRefinement(Vr,">=",pn)),isFiniteNumber(hn)&&(!isFiniteNumber(Kr)||hn<Kr)&&(dn=dn.removeNumericRefinement(Vr,"<="),dn=dn.addNumericRefinement(Vr,"<=",hn)),dn}}}},e$z=connectRange;function _typeof$j(_r){return _typeof$j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$j(_r)}var _excluded$2=["name","escapedValue"],_excluded2=["escapedValue","value"];function ownKeys$i(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$i(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$i(Object($r),!0).forEach(function(Fr){_defineProperty$i(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$i(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$i(_r,Fe,$r){return Fe=_toPropertyKey$i(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$i(_r){var Fe=_toPrimitive$i(_r,"string");return _typeof$j(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$i(_r,Fe){if(_typeof$j(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$j(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}function _objectWithoutProperties$2(_r,Fe){if(_r==null)return{};var $r=_objectWithoutPropertiesLoose$3(_r,Fe),Fr,jr;if(Object.getOwnPropertySymbols){var zr=Object.getOwnPropertySymbols(_r);for(jr=0;jr<zr.length;jr++)Fr=zr[jr],!(Fe.indexOf(Fr)>=0)&&(!Object.prototype.propertyIsEnumerable.call(_r,Fr)||($r[Fr]=_r[Fr]))}return $r}function _objectWithoutPropertiesLoose$3(_r,Fe){if(_r==null)return{};var $r={},Fr=Object.keys(_r),jr,zr;for(zr=0;zr<Fr.length;zr++)jr=Fr[zr],!(Fe.indexOf(jr)>=0)&&($r[jr]=_r[jr]);return $r}var withUsage$d=createDocumentationMessageGenerator({name:"refinement-list",connector:!0}),DEFAULT_SORT=["isRefined","count:desc","name:asc"],connectRefinementList=function _r(Fe){var $r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$1;return checkRendering(Fe,withUsage$d()),function(Fr){var jr=Fr||{},zr=jr.attribute,Vr=jr.operator,Wr=Vr===void 0?"or":Vr,Kr=jr.limit,Gr=Kr===void 0?10:Kr,Yr=jr.showMore,Qr=Yr===void 0?!1:Yr,Jr=jr.showMoreLimit,Zr=Jr===void 0?20:Jr,tn=jr.sortBy,en=tn===void 0?DEFAULT_SORT:tn,rn=jr.escapeFacetValues,nn=rn===void 0?!0:rn,on=jr.transformItems,un=on===void 0?function($n){return $n}:on;if(!zr)throw new Error(withUsage$d("The `attribute` option is required."));if(!/^(and|or)$/.test(Wr))throw new Error(withUsage$d('The `operator` must one of: `"and"`, `"or"` (got "'.concat(Wr,'").')));if(Qr===!0&&Zr<=Gr)throw new Error(withUsage$d("`showMoreLimit` should be greater than `limit`."));var an=function(yn){var wn=yn.name,gn=yn.escapedValue,Pn=_objectWithoutProperties$2(yn,_excluded$2);return _objectSpread$i(_objectSpread$i({},Pn),{},{value:gn,label:wn,highlighted:wn})},sn,dn=[],ln=!0,cn,fn,pn=!1,hn=function(){};function mn(){hn()}function Sn($n,yn){return function(){pn=!pn,yn.render($n)}}function vn(){return pn?Zr:Gr}var bn=function(){return function(){}},_n=function(yn,wn){return function(gn){return function(Pn){var Tn=gn.instantSearchInstance,An=gn.results;if(Pn===""&&dn)Fe(_objectSpread$i(_objectSpread$i({},wn.getWidgetRenderState(_objectSpread$i(_objectSpread$i({},gn),{},{results:sn}))),{},{instantSearchInstance:Tn}),!1);else{var Dn={highlightPreTag:nn?TAG_PLACEHOLDER.highlightPreTag:TAG_REPLACEMENT.highlightPreTag,highlightPostTag:nn?TAG_PLACEHOLDER.highlightPostTag:TAG_REPLACEMENT.highlightPostTag};yn.searchForFacetValues(zr,Pn,Math.min(vn(),100),Dn).then(function(Mn){var Ln=nn?escapeFacets(Mn.facetHits):Mn.facetHits,On=un(Ln.map(function(qn){var Qn=qn.escapedValue,di=qn.value,fi=_objectWithoutProperties$2(qn,_excluded2);return _objectSpread$i(_objectSpread$i({},fi),{},{value:Qn,label:di})}),{results:An});Fe(_objectSpread$i(_objectSpread$i({},wn.getWidgetRenderState(_objectSpread$i(_objectSpread$i({},gn),{},{results:sn}))),{},{items:On,canToggleShowMore:!1,canRefine:!0,isFromSearch:!0,instantSearchInstance:Tn}),!1)})}}}};return{$$type:"ais.refinementList",init:function(yn){Fe(_objectSpread$i(_objectSpread$i({},this.getWidgetRenderState(yn)),{},{instantSearchInstance:yn.instantSearchInstance}),!0)},render:function(yn){Fe(_objectSpread$i(_objectSpread$i({},this.getWidgetRenderState(yn)),{},{instantSearchInstance:yn.instantSearchInstance}),!1)},getRenderState:function(yn,wn){return _objectSpread$i(_objectSpread$i({},yn),{},{refinementList:_objectSpread$i(_objectSpread$i({},yn.refinementList),{},_defineProperty$i({},zr,this.getWidgetRenderState(wn)))})},getWidgetRenderState:function(yn){var wn=yn.results,gn=yn.state,Pn=yn.createURL,Tn=yn.instantSearchInstance,An=yn.helper,Dn=[],Mn=[];if((!fn||!cn||!bn)&&(fn=createSendEventForFacet({instantSearchInstance:Tn,helper:An,attribute:zr,widgetType:this.$$type}),cn=function(kn){fn("click:internal",kn),An.toggleFacetRefinement(zr,kn).search()},bn=_n(An,this)),wn){var Ln=wn.getFacetValues(zr,{sortBy:en,facetOrdering:en===DEFAULT_SORT});Mn=Ln&&Array.isArray(Ln)?Ln:[],Dn=un(Mn.slice(0,vn()).map(an),{results:wn});var On=gn.maxValuesPerFacet,qn=vn();ln=On>qn?Mn.length<=qn:Mn.length<qn,sn=wn,dn=Dn,yn.results&&(hn=Sn(yn,this))}var Qn=bn&&bn(yn),di=pn&&dn.length>Gr,fi=Qr&&!ln,En=di||fi;return{createURL:function(kn){return Pn(gn.resetPage().toggleFacetRefinement(zr,kn))},items:Dn,refine:cn,searchForItems:Qn,isFromSearch:!1,canRefine:Dn.length>0,widgetParams:Fr,isShowingMore:pn,canToggleShowMore:En,toggleShowMore:mn,sendEvent:fn,hasExhaustiveItems:ln}},dispose:function(yn){var wn=yn.state;$r();var gn=wn.setQueryParameter("maxValuesPerFacet",void 0);return Wr==="and"?gn.removeFacet(zr):gn.removeDisjunctiveFacet(zr)},getWidgetUiState:function(yn,wn){var gn=wn.searchParameters,Pn=Wr==="or"?gn.getDisjunctiveRefinements(zr):gn.getConjunctiveRefinements(zr);return Pn.length?_objectSpread$i(_objectSpread$i({},yn),{},{refinementList:_objectSpread$i(_objectSpread$i({},yn.refinementList),{},_defineProperty$i({},zr,Pn))}):yn},getWidgetSearchParameters:function(yn,wn){var gn=wn.uiState,Pn=Wr==="or";if(yn.isHierarchicalFacet(zr)||Pn&&yn.isConjunctiveFacet(zr)||!Pn&&yn.isDisjunctiveFacet(zr))return yn;var Tn=gn.refinementList&&gn.refinementList[zr],An=yn.clearRefinements(zr),Dn=Pn?An.addDisjunctiveFacet(zr):An.addFacet(zr),Mn=Dn.maxValuesPerFacet||0,Ln=Math.max(Mn,Qr?Zr:Gr),On=Dn.setQueryParameter("maxValuesPerFacet",Ln);if(!Tn){var qn=Pn?"disjunctiveFacetsRefinements":"facetsRefinements";return On.setQueryParameters(_defineProperty$i({},qn,_objectSpread$i(_objectSpread$i({},On[qn]),{},_defineProperty$i({},zr,[]))))}return Tn.reduce(function(Qn,di){return Pn?Qn.addDisjunctiveFacetRefinement(zr,di):Qn.addFacetRefinement(zr,di)},On)}}}},r$c=connectRefinementList;function _typeof$i(_r){return _typeof$i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$i(_r)}function ownKeys$h(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$h(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$h(Object($r),!0).forEach(function(Fr){_defineProperty$h(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$h(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$h(_r,Fe,$r){return Fe=_toPropertyKey$h(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$h(_r){var Fe=_toPrimitive$h(_r,"string");return _typeof$i(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$h(_r,Fe){if(_typeof$i(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$i(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}var withUsage$c=createDocumentationMessageGenerator({name:"search-box",connector:!0}),defaultQueryHook=function _r(Fe,$r){return $r(Fe)},connectSearchBox=function _r(Fe){var $r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$1;return checkRendering(Fe,withUsage$c()),function(Fr){var jr=Fr||{},zr=jr.queryHook,Vr=zr===void 0?defaultQueryHook:zr,Wr,Kr;return{$$type:"ais.searchBox",init:function(Yr){var Qr=Yr.instantSearchInstance;Fe(_objectSpread$h(_objectSpread$h({},this.getWidgetRenderState(Yr)),{},{instantSearchInstance:Qr}),!0)},render:function(Yr){var Qr=Yr.instantSearchInstance;Fe(_objectSpread$h(_objectSpread$h({},this.getWidgetRenderState(Yr)),{},{instantSearchInstance:Qr}),!1)},dispose:function(Yr){var Qr=Yr.state;return $r(),Qr.setQueryParameter("query",void 0)},getRenderState:function(Yr,Qr){return _objectSpread$h(_objectSpread$h({},Yr),{},{searchBox:this.getWidgetRenderState(Qr)})},getWidgetRenderState:function(Yr){var Qr=Yr.helper,Jr=Yr.searchMetadata,Zr=Yr.state;return Wr||(Wr=function(en){Vr(en,function(rn){return Qr.setQuery(rn).search()})},Kr=function(){Qr.setQuery("").search()}),{query:Zr.query||"",refine:Wr,clear:Kr,widgetParams:Fr,isSearchStalled:Jr.isSearchStalled}},getWidgetUiState:function(Yr,Qr){var Jr=Qr.searchParameters,Zr=Jr.query||"";return Zr===""||Yr&&Yr.query===Zr?Yr:_objectSpread$h(_objectSpread$h({},Yr),{},{query:Zr})},getWidgetSearchParameters:function(Yr,Qr){var Jr=Qr.uiState;return Yr.setQueryParameter("query",Jr.query||"")}}}},s$5=connectSearchBox;function _typeof$h(_r){return _typeof$h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$h(_r)}function ownKeys$g(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$g(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$g(Object($r),!0).forEach(function(Fr){_defineProperty$g(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$g(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$g(_r,Fe,$r){return Fe=_toPropertyKey$g(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$g(_r){var Fe=_toPrimitive$g(_r,"string");return _typeof$h(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$g(_r,Fe){if(_typeof$h(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$h(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}var withUsage$b=createDocumentationMessageGenerator({name:"sort-by",connector:!0}),connectSortBy=function _r(Fe){var $r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$1;checkRendering(Fe,withUsage$b());var Fr={};return function(jr){var zr=jr||{},Vr=zr.items,Wr=zr.transformItems,Kr=Wr===void 0?function(Gr){return Gr}:Wr;if(!Array.isArray(Vr))throw new Error(withUsage$b("The `items` option expects an array of objects."));return{$$type:"ais.sortBy",init:function(Yr){var Qr=Yr.instantSearchInstance,Jr=this.getWidgetRenderState(Yr),Zr=Jr.currentRefinement;find$5(Vr,function(tn){return tn.value===Zr}),Fe(_objectSpread$g(_objectSpread$g({},Jr),{},{instantSearchInstance:Qr}),!0)},render:function(Yr){var Qr=Yr.instantSearchInstance;Fe(_objectSpread$g(_objectSpread$g({},this.getWidgetRenderState(Yr)),{},{instantSearchInstance:Qr}),!1)},dispose:function(Yr){var Qr=Yr.state;return $r(),Fr.initialIndex?Qr.setIndex(Fr.initialIndex):Qr},getRenderState:function(Yr,Qr){return _objectSpread$g(_objectSpread$g({},Yr),{},{sortBy:this.getWidgetRenderState(Qr)})},getWidgetRenderState:function(Yr){var Qr=Yr.results,Jr=Yr.helper,Zr=Yr.state,tn=Yr.parent;!Fr.initialIndex&&tn&&(Fr.initialIndex=tn.getIndexName()),Fr.setIndex||(Fr.setIndex=function(rn){Jr.setIndex(rn).search()});var en=Qr?Qr.nbHits===0:!0;return{currentRefinement:Zr.index,options:Kr(Vr,{results:Qr}),refine:Fr.setIndex,hasNoResults:en,canRefine:!en&&Vr.length>0,widgetParams:jr}},getWidgetUiState:function(Yr,Qr){var Jr=Qr.searchParameters,Zr=Jr.index;return _objectSpread$g(_objectSpread$g({},Yr),{},{sortBy:Zr!==Fr.initialIndex?Zr:void 0})},getWidgetSearchParameters:function(Yr,Qr){var Jr=Qr.uiState;return Yr.setQueryParameter("index",Jr.sortBy||Fr.initialIndex||Yr.index)}}}},i$6=connectSortBy;function _typeof$g(_r){return _typeof$g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$g(_r)}function _toConsumableArray$4(_r){return _arrayWithoutHoles$4(_r)||_iterableToArray$4(_r)||_unsupportedIterableToArray$6(_r)||_nonIterableSpread$4()}function _nonIterableSpread$4(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArray$4(_r){if(typeof Symbol!="undefined"&&_r[Symbol.iterator]!=null||_r["@@iterator"]!=null)return Array.from(_r)}function _arrayWithoutHoles$4(_r){if(Array.isArray(_r))return _arrayLikeToArray$6(_r)}function ownKeys$f(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$f(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$f(Object($r),!0).forEach(function(Fr){_defineProperty$f(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$f(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$f(_r,Fe,$r){return Fe=_toPropertyKey$f(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$f(_r){var Fe=_toPrimitive$f(_r,"string");return _typeof$g(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$f(_r,Fe){if(_typeof$g(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$g(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}function _slicedToArray$3(_r,Fe){return _arrayWithHoles$3(_r)||_iterableToArrayLimit$3(_r,Fe)||_unsupportedIterableToArray$6(_r,Fe)||_nonIterableRest$3()}function _nonIterableRest$3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$6(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray$6(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray$6(_r,Fe)}}function _arrayLikeToArray$6(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}function _iterableToArrayLimit$3(_r,Fe){var $r=_r==null?null:typeof Symbol!="undefined"&&_r[Symbol.iterator]||_r["@@iterator"];if($r!=null){var Fr,jr,zr,Vr,Wr=[],Kr=!0,Gr=!1;try{if(zr=($r=$r.call(_r)).next,Fe===0){if(Object($r)!==$r)return;Kr=!1}else for(;!(Kr=(Fr=zr.call($r)).done)&&(Wr.push(Fr.value),Wr.length!==Fe);Kr=!0);}catch(Yr){Gr=!0,jr=Yr}finally{try{if(!Kr&&$r.return!=null&&(Vr=$r.return(),Object(Vr)!==Vr))return}finally{if(Gr)throw jr}}return Wr}}function _arrayWithHoles$3(_r){if(Array.isArray(_r))return _r}var withUsage$a=createDocumentationMessageGenerator({name:"rating-menu",connector:!0}),$$type$1="ais.ratingMenu",STEP=1,createSendEvent$1=function _r(Fe){var $r=Fe.instantSearchInstance,Fr=Fe.helper,jr=Fe.getRefinedStar,zr=Fe.attribute;return function(){for(var Vr=arguments.length,Wr=new Array(Vr),Kr=0;Kr<Vr;Kr++)Wr[Kr]=arguments[Kr];if(Wr.length===1){$r.sendEventToInsights(Wr[0]);return}var Gr=Wr[1],Yr=Wr[2],Qr=Yr===void 0?"Filter Applied":Yr,Jr=Wr[0].split(":"),Zr=_slicedToArray$3(Jr,2),tn=Zr[0],en=Zr[1];if(tn==="click"){var rn=jr()===Number(Gr);rn||$r.sendEventToInsights({insightsMethod:"clickedFilters",widgetType:$$type$1,eventType:tn,eventModifier:en,payload:{eventName:Qr,index:Fr.getIndex(),filters:["".concat(zr,">=").concat(Gr)]},attribute:zr})}}},connectRatingMenu=function _r(Fe){var $r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$1;return checkRendering(Fe,withUsage$a()),function(Fr){var jr=Fr||{},zr=jr.attribute,Vr=jr.max,Wr=Vr===void 0?5:Vr,Kr;if(!zr)throw new Error(withUsage$a("The `attribute` option is required."));var Gr=function(en){var rn,nn=en.getNumericRefinements(zr);if(!!((rn=nn[">="])!==null&&rn!==void 0&&rn.length))return nn[">="][0]},Yr=function(en){var rn=0;return en.forEach(function(nn){var on=nn.name.split("."),un=_slicedToArray$3(on,2),an=un[1],sn=an===void 0?"":an;rn=Math.max(rn,sn.length)}),rn};function Qr(tn,en){var rn=Gr(tn)===Number(en),nn=tn.resetPage().removeNumericRefinement(zr);return rn?nn:nn.addNumericRefinement(zr,"<=",Wr).addNumericRefinement(zr,">=",Number(en))}var Jr=function(en,rn){Kr("click:internal",rn),en.setState(Qr(en.state,rn)).search()},Zr={toggleRefinementFactory:function(en){return Jr.bind(null,en)},createURLFactory:function(en){var rn=en.state,nn=en.createURL;return function(on){return nn(Qr(rn,on))}}};return{$$type:$$type$1,init:function(en){var rn=en.instantSearchInstance;Fe(_objectSpread$f(_objectSpread$f({},this.getWidgetRenderState(en)),{},{instantSearchInstance:rn}),!0)},render:function(en){var rn=en.instantSearchInstance;Fe(_objectSpread$f(_objectSpread$f({},this.getWidgetRenderState(en)),{},{instantSearchInstance:rn}),!1)},getRenderState:function(en,rn){return _objectSpread$f(_objectSpread$f({},en),{},{ratingMenu:_objectSpread$f(_objectSpread$f({},en.ratingMenu),{},_defineProperty$f({},zr,this.getWidgetRenderState(rn)))})},getWidgetRenderState:function(en){var rn=en.helper,nn=en.results,on=en.state,un=en.instantSearchInstance,an=en.createURL,sn=[];Kr||(Kr=createSendEvent$1({instantSearchInstance:un,helper:rn,getRefinedStar:function(){return Gr(rn.state)},attribute:zr}));var dn=!1,ln=0,cn=nn==null?void 0:nn.getFacetValues(zr,{});if(nn&&cn){cn.length,Yr(cn);for(var fn=Gr(on),pn=function(bn){var _n=fn===bn;dn=dn||_n;var $n=cn.filter(function(wn){return Number(wn.name)>=bn&&Number(wn.name)<=Wr}).map(function(wn){return wn.count}).reduce(function(wn,gn){return wn+gn},0);if(ln+=$n,fn&&!_n&&$n===0)return"continue";var yn=_toConsumableArray$4(new Array(Math.floor(Wr/STEP))).map(function(wn,gn){return gn*STEP<bn});sn.push({stars:yn,name:String(bn),label:String(bn),value:String(bn),count:$n,isRefined:_n})},hn=STEP;hn<Wr;hn+=STEP)var mn=pn(hn)}sn=sn.reverse();var Sn=nn?nn.nbHits===0:!0;return{items:sn,hasNoResults:Sn,canRefine:(!Sn||dn)&&ln>0,refine:Zr.toggleRefinementFactory(rn),sendEvent:Kr,createURL:Zr.createURLFactory({state:on,createURL:an}),widgetParams:Fr}},dispose:function(en){var rn=en.state;return $r(),rn.removeNumericRefinement(zr)},getWidgetUiState:function(en,rn){var nn=rn.searchParameters,on=Gr(nn);return typeof on!="number"?en:_objectSpread$f(_objectSpread$f({},en),{},{ratingMenu:_objectSpread$f(_objectSpread$f({},en.ratingMenu),{},_defineProperty$f({},zr,on))})},getWidgetSearchParameters:function(en,rn){var nn=rn.uiState,on=nn.ratingMenu&&nn.ratingMenu[zr],un=en.clearRefinements(zr),an=un.addDisjunctiveFacet(zr);return on?an.addNumericRefinement(zr,"<=",Wr).addNumericRefinement(zr,">=",on):an.setQueryParameters({numericRefinements:_objectSpread$f(_objectSpread$f({},an.numericRefinements),{},_defineProperty$f({},zr,{}))})}}}},e$y=connectRatingMenu;function _typeof$f(_r){return _typeof$f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$f(_r)}function ownKeys$e(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$e(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$e(Object($r),!0).forEach(function(Fr){_defineProperty$e(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$e(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$e(_r,Fe,$r){return Fe=_toPropertyKey$e(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$e(_r){var Fe=_toPrimitive$e(_r,"string");return _typeof$f(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$e(_r,Fe){if(_typeof$f(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$f(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}var withUsage$9=createDocumentationMessageGenerator({name:"stats",connector:!0}),connectStats=function _r(Fe){var $r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$1;return checkRendering(Fe,withUsage$9()),function(Fr){return{$$type:"ais.stats",init:function(zr){var Vr=zr.instantSearchInstance;Fe(_objectSpread$e(_objectSpread$e({},this.getWidgetRenderState(zr)),{},{instantSearchInstance:Vr}),!0)},render:function(zr){var Vr=zr.instantSearchInstance;Fe(_objectSpread$e(_objectSpread$e({},this.getWidgetRenderState(zr)),{},{instantSearchInstance:Vr}),!1)},dispose:function(){$r()},getRenderState:function(zr,Vr){return _objectSpread$e(_objectSpread$e({},zr),{},{stats:this.getWidgetRenderState(Vr)})},getWidgetRenderState:function(zr){var Vr=zr.results,Wr=zr.state;return Vr?{hitsPerPage:Vr.hitsPerPage,nbHits:Vr.nbHits,nbSortedHits:Vr.nbSortedHits,areHitsSorted:typeof Vr.appliedRelevancyStrictness!="undefined"&&Vr.appliedRelevancyStrictness>0&&Vr.nbSortedHits!==Vr.nbHits,nbPages:Vr.nbPages,page:Vr.page,processingTimeMS:Vr.processingTimeMS,query:Vr.query,widgetParams:Fr}:{hitsPerPage:Wr.hitsPerPage,nbHits:0,nbSortedHits:void 0,areHitsSorted:!1,nbPages:0,page:Wr.page||0,processingTimeMS:-1,query:Wr.query||"",widgetParams:Fr}}}}},i$5=connectStats;function _typeof$e(_r){return _typeof$e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$e(_r)}function ownKeys$d(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$d(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$d(Object($r),!0).forEach(function(Fr){_defineProperty$d(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$d(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$d(_r,Fe,$r){return Fe=_toPropertyKey$d(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$d(_r){var Fe=_toPrimitive$d(_r,"string");return _typeof$e(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$d(_r,Fe){if(_typeof$e(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$e(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}function _slicedToArray$2(_r,Fe){return _arrayWithHoles$2(_r)||_iterableToArrayLimit$2(_r,Fe)||_unsupportedIterableToArray$5(_r,Fe)||_nonIterableRest$2()}function _nonIterableRest$2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$5(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray$5(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray$5(_r,Fe)}}function _arrayLikeToArray$5(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}function _iterableToArrayLimit$2(_r,Fe){var $r=_r==null?null:typeof Symbol!="undefined"&&_r[Symbol.iterator]||_r["@@iterator"];if($r!=null){var Fr,jr,zr,Vr,Wr=[],Kr=!0,Gr=!1;try{if(zr=($r=$r.call(_r)).next,Fe===0){if(Object($r)!==$r)return;Kr=!1}else for(;!(Kr=(Fr=zr.call($r)).done)&&(Wr.push(Fr.value),Wr.length!==Fe);Kr=!0);}catch(Yr){Gr=!0,jr=Yr}finally{try{if(!Kr&&$r.return!=null&&(Vr=$r.return(),Object(Vr)!==Vr))return}finally{if(Gr)throw jr}}return Wr}}function _arrayWithHoles$2(_r){if(Array.isArray(_r))return _r}var withUsage$8=createDocumentationMessageGenerator({name:"toggle-refinement",connector:!0}),$$type="ais.toggleRefinement",createSendEvent=function _r(Fe){var $r=Fe.instantSearchInstance,Fr=Fe.helper,jr=Fe.attribute,zr=Fe.on,Vr=function(){for(var Kr=arguments.length,Gr=new Array(Kr),Yr=0;Yr<Kr;Yr++)Gr[Yr]=arguments[Yr];if(Gr.length===1){$r.sendEventToInsights(Gr[0]);return}var Qr=Gr[1],Jr=Gr[2],Zr=Jr===void 0?"Filter Applied":Jr,tn=Gr[0].split(":"),en=_slicedToArray$2(tn,2),rn=en[0],nn=en[1];rn!=="click"||zr===void 0||Qr||$r.sendEventToInsights({insightsMethod:"clickedFilters",widgetType:$$type,eventType:rn,eventModifier:nn,payload:{eventName:Zr,index:Fr.getIndex(),filters:zr.map(function(on){return"".concat(jr,":").concat(on)})},attribute:jr})};return Vr},connectToggleRefinement=function _r(Fe){var $r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$1;return checkRendering(Fe,withUsage$8()),function(Fr){var jr=Fr||{},zr=jr.attribute,Vr=jr.on,Wr=Vr===void 0?!0:Vr,Kr=jr.off;if(!zr)throw new Error(withUsage$8("The `attribute` option is required."));var Gr=Kr!==void 0,Yr=toArray(Wr).map(escapeFacetValue$4),Qr=Gr?toArray(Kr).map(escapeFacetValue$4):void 0,Jr,Zr=function(rn){return function(){var nn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{isRefined:!1},on=nn.isRefined;on?(Yr.forEach(function(un){return rn.removeDisjunctiveFacetRefinement(zr,un)}),Gr&&Qr.forEach(function(un){return rn.addDisjunctiveFacetRefinement(zr,un)})):(Jr("click:internal",on),Gr&&Qr.forEach(function(un){return rn.removeDisjunctiveFacetRefinement(zr,un)}),Yr.forEach(function(un){return rn.addDisjunctiveFacetRefinement(zr,un)})),rn.search()}},tn={createURLFactory:function(rn,nn){var on=nn.state,un=nn.createURL;return function(){on=on.resetPage();var an=rn?Yr:Qr;an&&an.forEach(function(dn){on=on.removeDisjunctiveFacetRefinement(zr,dn)});var sn=rn?Qr:Yr;return sn&&sn.forEach(function(dn){on=on.addDisjunctiveFacetRefinement(zr,dn)}),un(on)}}};return{$$type,init:function(rn){var nn=rn.instantSearchInstance;Fe(_objectSpread$d(_objectSpread$d({},this.getWidgetRenderState(rn)),{},{instantSearchInstance:nn}),!0)},render:function(rn){var nn=rn.instantSearchInstance;Fe(_objectSpread$d(_objectSpread$d({},this.getWidgetRenderState(rn)),{},{instantSearchInstance:nn}),!1)},dispose:function(rn){var nn=rn.state;return $r(),nn.removeDisjunctiveFacet(zr)},getRenderState:function(rn,nn){return _objectSpread$d(_objectSpread$d({},rn),{},{toggleRefinement:_objectSpread$d(_objectSpread$d({},rn.toggleRefinement),{},_defineProperty$d({},zr,this.getWidgetRenderState(nn)))})},getWidgetRenderState:function(rn){var nn=rn.state,on=rn.helper,un=rn.results,an=rn.createURL,sn=rn.instantSearchInstance,dn=un?Yr.every(function(vn){return nn.isDisjunctiveFacetRefined(zr,vn)}):Yr.every(function(vn){return nn.isDisjunctiveFacetRefined(zr,vn)}),ln={isRefined:dn,count:0},cn={isRefined:Gr&&!dn,count:0};if(un){var fn=toArray(Qr||!1),pn=un.getFacetValues(zr,{})||[],hn=Yr.map(function(vn){return find$5(pn,function(bn){var _n=bn.escapedValue;return _n===escapeFacetValue$4(String(vn))})}).filter(function(vn){return vn!==void 0}),mn=Gr?fn.map(function(vn){return find$5(pn,function(bn){var _n=bn.escapedValue;return _n===escapeFacetValue$4(String(vn))})}).filter(function(vn){return vn!==void 0}):[];ln={isRefined:hn.length?hn.every(function(vn){return vn.isRefined}):!1,count:hn.reduce(function(vn,bn){return vn+bn.count},0)||null},cn={isRefined:mn.length?mn.every(function(vn){return vn.isRefined}):!1,count:mn.reduce(function(vn,bn){return vn+bn.count},0)||pn.reduce(function(vn,bn){var _n=bn.count;return vn+_n},0)}}Jr||(Jr=createSendEvent({instantSearchInstance:sn,attribute:zr,on:Yr,helper:on}));var Sn=dn?cn:ln;return{value:{name:zr,isRefined:dn,count:un?Sn.count:null,onFacetValue:ln,offFacetValue:cn},createURL:tn.createURLFactory(dn,{state:nn,createURL:an}),sendEvent:Jr,canRefine:Boolean(un?Sn.count:null),refine:Zr(on),widgetParams:Fr}},getWidgetUiState:function(rn,nn){var on=nn.searchParameters,un=Yr&&Yr.every(function(an){return on.isDisjunctiveFacetRefined(zr,an)});return un?_objectSpread$d(_objectSpread$d({},rn),{},{toggle:_objectSpread$d(_objectSpread$d({},rn.toggle),{},_defineProperty$d({},zr,un))}):rn},getWidgetSearchParameters:function(rn,nn){var on=nn.uiState;if(rn.isHierarchicalFacet(zr)||rn.isConjunctiveFacet(zr))return rn;var un=rn.clearRefinements(zr).addDisjunctiveFacet(zr),an=Boolean(on.toggle&&on.toggle[zr]);return an?(Yr&&Yr.forEach(function(sn){un=un.addDisjunctiveFacetRefinement(zr,sn)}),un):Gr?(Qr&&Qr.forEach(function(sn){un=un.addDisjunctiveFacetRefinement(zr,sn)}),un):un.setQueryParameters({disjunctiveFacetsRefinements:_objectSpread$d(_objectSpread$d({},rn.disjunctiveFacetsRefinements),{},_defineProperty$d({},zr,[]))})}}}},i$4=connectToggleRefinement;function _typeof$d(_r){return _typeof$d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$d(_r)}function ownKeys$c(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$c(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$c(Object($r),!0).forEach(function(Fr){_defineProperty$c(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$c(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$c(_r,Fe,$r){return Fe=_toPropertyKey$c(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$c(_r){var Fe=_toPrimitive$c(_r,"string");return _typeof$d(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$c(_r,Fe){if(_typeof$d(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$d(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}function _slicedToArray$1(_r,Fe){return _arrayWithHoles$1(_r)||_iterableToArrayLimit$1(_r,Fe)||_unsupportedIterableToArray$4(_r,Fe)||_nonIterableRest$1()}function _nonIterableRest$1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$4(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray$4(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray$4(_r,Fe)}}function _arrayLikeToArray$4(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}function _iterableToArrayLimit$1(_r,Fe){var $r=_r==null?null:typeof Symbol!="undefined"&&_r[Symbol.iterator]||_r["@@iterator"];if($r!=null){var Fr,jr,zr,Vr,Wr=[],Kr=!0,Gr=!1;try{if(zr=($r=$r.call(_r)).next,Fe===0){if(Object($r)!==$r)return;Kr=!1}else for(;!(Kr=(Fr=zr.call($r)).done)&&(Wr.push(Fr.value),Wr.length!==Fe);Kr=!0);}catch(Yr){Gr=!0,jr=Yr}finally{try{if(!Kr&&$r.return!=null&&(Vr=$r.return(),Object(Vr)!==Vr))return}finally{if(Gr)throw jr}}return Wr}}function _arrayWithHoles$1(_r){if(Array.isArray(_r))return _r}var withUsage$7=createDocumentationMessageGenerator({name:"breadcrumb",connector:!0}),connectBreadcrumb=function _r(Fe){var $r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$1;checkRendering(Fe,withUsage$7());var Fr={};return function(jr){var zr=jr||{},Vr=zr.attributes,Wr=zr.separator,Kr=Wr===void 0?" > ":Wr,Gr=zr.rootPath,Yr=Gr===void 0?null:Gr,Qr=zr.transformItems,Jr=Qr===void 0?function(rn){return rn}:Qr;if(!Vr||!Array.isArray(Vr)||Vr.length===0)throw new Error(withUsage$7("The `attributes` option expects an array of strings."));var Zr=_slicedToArray$1(Vr,1),tn=Zr[0];function en(rn,nn){if(!nn){var on=rn.getHierarchicalFacetBreadcrumb(tn);return on.length===0?rn:rn.resetPage().toggleFacetRefinement(tn,on[0])}return rn.resetPage().toggleFacetRefinement(tn,nn)}return{$$type:"ais.breadcrumb",init:function(nn){Fe(_objectSpread$c(_objectSpread$c({},this.getWidgetRenderState(nn)),{},{instantSearchInstance:nn.instantSearchInstance}),!0)},render:function(nn){Fe(_objectSpread$c(_objectSpread$c({},this.getWidgetRenderState(nn)),{},{instantSearchInstance:nn.instantSearchInstance}),!1)},dispose:function(){$r()},getRenderState:function(nn,on){return _objectSpread$c(_objectSpread$c({},nn),{},{breadcrumb:_objectSpread$c(_objectSpread$c({},nn.breadcrumb),{},_defineProperty$c({},tn,this.getWidgetRenderState(on)))})},getWidgetRenderState:function(nn){var on=nn.helper,un=nn.createURL,an=nn.results,sn=nn.state;function dn(){if(!an||sn.hierarchicalFacets.length===0)return[];var cn=_slicedToArray$1(sn.hierarchicalFacets,1),fn=cn[0].name,pn=an.getFacetValues(fn,{}),hn=pn&&!Array.isArray(pn)&&pn.data?pn.data:[],mn=Jr(shiftItemsValues(prepareItems(hn)),{results:an});return mn}var ln=dn();return Fr.createURL||(Fr.createURL=function(cn){return un(en(on.state,cn))}),Fr.refine||(Fr.refine=function(cn){on.setState(en(on.state,cn)).search()}),{canRefine:ln.length>0,createURL:Fr.createURL,items:ln,refine:Fr.refine,widgetParams:jr}},getWidgetSearchParameters:function(nn){return nn.isHierarchicalFacet(tn)?(nn.getHierarchicalFacetByName(tn),nn):nn.addHierarchicalFacet({name:tn,attributes:Vr,separator:Kr,rootPath:Yr})}}}};function prepareItems(_r){return _r.reduce(function(Fe,$r){return $r.isRefined&&(Fe.push({label:$r.name,value:$r.escapedValue}),Array.isArray($r.data)&&(Fe=Fe.concat(prepareItems($r.data)))),Fe},[])}function shiftItemsValues(_r){return _r.map(function(Fe,$r){return{label:Fe.label,value:$r+1===_r.length?null:_r[$r+1].value}})}var e$x=connectBreadcrumb;function clone$4(_r){return typeof _r=="object"&&_r!==null?_merge(Array.isArray(_r)?[]:{},_r):_r}function isObjectOrArrayOrFunction(_r){return typeof _r=="function"||Array.isArray(_r)||Object.prototype.toString.call(_r)==="[object Object]"}function _merge(_r,Fe){if(_r===Fe)return _r;for(var $r in Fe)if(!(!Object.prototype.hasOwnProperty.call(Fe,$r)||$r==="__proto__"||$r==="constructor")){var Fr=Fe[$r],jr=_r[$r];typeof jr!="undefined"&&typeof Fr=="undefined"||(isObjectOrArrayOrFunction(jr)&&isObjectOrArrayOrFunction(Fr)?_r[$r]=_merge(jr,Fr):_r[$r]=clone$4(Fr))}return _r}function merge$5(_r){isObjectOrArrayOrFunction(_r)||(_r={});for(var Fe=1,$r=arguments.length;Fe<$r;Fe++){var Fr=arguments[Fe];isObjectOrArrayOrFunction(Fr)&&_merge(_r,Fr)}return _r}var merge_1=merge$5,defaultsPure$3=function _r(){var Fe=Array.prototype.slice.call(arguments);return Fe.reduceRight(function($r,Fr){return Object.keys(Object(Fr)).forEach(function(jr){Fr[jr]!==void 0&&($r[jr]!==void 0&&delete $r[jr],$r[jr]=Fr[jr])}),$r},{})};function intersection$1(_r,Fe){return _r.filter(function($r,Fr){return Fe.indexOf($r)>-1&&_r.indexOf($r)===Fr})}var intersection_1=intersection$1,find$4=function _r(Fe,$r){if(!!Array.isArray(Fe)){for(var Fr=0;Fr<Fe.length;Fr++)if($r(Fe[Fr]))return Fe[Fr]}};function valToNumber$1(_r){if(typeof _r=="number")return _r;if(typeof _r=="string")return parseFloat(_r);if(Array.isArray(_r))return _r.map(valToNumber$1);throw new Error("The value should be a number, a parsable string or an array of those.")}var valToNumber_1=valToNumber$1;function _objectWithoutPropertiesLoose$2(_r,Fe){if(_r===null)return{};var $r={},Fr=Object.keys(_r),jr,zr;for(zr=0;zr<Fr.length;zr++)jr=Fr[zr],!(Fe.indexOf(jr)>=0)&&($r[jr]=_r[jr]);return $r}var omit$3=_objectWithoutPropertiesLoose$2;function objectHasKeys$3(_r){return _r&&Object.keys(_r).length>0}var objectHasKeys_1=objectHasKeys$3,isValidUserToken$1=function _r(Fe){return Fe===null?!1:/^[a-zA-Z0-9_-]{1,64}$/.test(Fe)},defaultsPure$2=defaultsPure$3,omit$2=omit$3,objectHasKeys$2=objectHasKeys_1,lib={addRefinement:function _r(Fe,$r,Fr){if(lib.isRefined(Fe,$r,Fr))return Fe;var jr=""+Fr,zr=Fe[$r]?Fe[$r].concat(jr):[jr],Vr={};return Vr[$r]=zr,defaultsPure$2({},Vr,Fe)},removeRefinement:function _r(Fe,$r,Fr){if(Fr===void 0)return lib.clearRefinement(Fe,function(zr,Vr){return $r===Vr});var jr=""+Fr;return lib.clearRefinement(Fe,function(zr,Vr){return $r===Vr&&jr===zr})},toggleRefinement:function _r(Fe,$r,Fr){if(Fr===void 0)throw new Error("toggleRefinement should be used with a value");return lib.isRefined(Fe,$r,Fr)?lib.removeRefinement(Fe,$r,Fr):lib.addRefinement(Fe,$r,Fr)},clearRefinement:function _r(Fe,$r,Fr){if($r===void 0)return objectHasKeys$2(Fe)?{}:Fe;if(typeof $r=="string")return omit$2(Fe,[$r]);if(typeof $r=="function"){var jr=!1,zr=Object.keys(Fe).reduce(function(Vr,Wr){var Kr=Fe[Wr]||[],Gr=Kr.filter(function(Yr){return!$r(Yr,Wr,Fr)});return Gr.length!==Kr.length&&(jr=!0),Vr[Wr]=Gr,Vr},{});return jr?zr:Fe}},isRefined:function _r(Fe,$r,Fr){var jr=!!Fe[$r]&&Fe[$r].length>0;if(Fr===void 0||!jr)return jr;var zr=""+Fr;return Fe[$r].indexOf(zr)!==-1}},RefinementList$1=lib,merge$4=merge_1,defaultsPure$1=defaultsPure$3,intersection=intersection_1,find$3=find$4,valToNumber=valToNumber_1,omit$1=omit$3,objectHasKeys$1=objectHasKeys_1,isValidUserToken=isValidUserToken$1,RefinementList=RefinementList$1;function isEqualNumericRefinement(_r,Fe){return Array.isArray(_r)&&Array.isArray(Fe)?_r.length===Fe.length&&_r.every(function($r,Fr){return isEqualNumericRefinement(Fe[Fr],$r)}):_r===Fe}function findArray(_r,Fe){return find$3(_r,function($r){return isEqualNumericRefinement($r,Fe)})}function SearchParameters$2(_r){var Fe=_r?SearchParameters$2._parseNumbers(_r):{};Fe.userToken!==void 0&&!isValidUserToken(Fe.userToken)&&console.warn("[algoliasearch-helper] The `userToken` parameter is invalid. This can lead to wrong analytics.\n  - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=Fe.facets||[],this.disjunctiveFacets=Fe.disjunctiveFacets||[],this.hierarchicalFacets=Fe.hierarchicalFacets||[],this.facetsRefinements=Fe.facetsRefinements||{},this.facetsExcludes=Fe.facetsExcludes||{},this.disjunctiveFacetsRefinements=Fe.disjunctiveFacetsRefinements||{},this.numericRefinements=Fe.numericRefinements||{},this.tagRefinements=Fe.tagRefinements||[],this.hierarchicalFacetsRefinements=Fe.hierarchicalFacetsRefinements||{};var $r=this;Object.keys(Fe).forEach(function(Fr){var jr=SearchParameters$2.PARAMETERS.indexOf(Fr)!==-1,zr=Fe[Fr]!==void 0;!jr&&zr&&($r[Fr]=Fe[Fr])})}SearchParameters$2.PARAMETERS=Object.keys(new SearchParameters$2);SearchParameters$2._parseNumbers=function(_r){if(_r instanceof SearchParameters$2)return _r;var Fe={},$r=["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"];if($r.forEach(function(jr){var zr=_r[jr];if(typeof zr=="string"){var Vr=parseFloat(zr);Fe[jr]=isNaN(Vr)?zr:Vr}}),Array.isArray(_r.insideBoundingBox)&&(Fe.insideBoundingBox=_r.insideBoundingBox.map(function(jr){return Array.isArray(jr)?jr.map(function(zr){return parseFloat(zr)}):jr})),_r.numericRefinements){var Fr={};Object.keys(_r.numericRefinements).forEach(function(jr){var zr=_r.numericRefinements[jr]||{};Fr[jr]={},Object.keys(zr).forEach(function(Vr){var Wr=zr[Vr],Kr=Wr.map(function(Gr){return Array.isArray(Gr)?Gr.map(function(Yr){return typeof Yr=="string"?parseFloat(Yr):Yr}):typeof Gr=="string"?parseFloat(Gr):Gr});Fr[jr][Vr]=Kr})}),Fe.numericRefinements=Fr}return merge$4({},_r,Fe)};SearchParameters$2.make=function _r(Fe){var $r=new SearchParameters$2(Fe),Fr=Fe.hierarchicalFacets||[];return Fr.forEach(function(jr){if(jr.rootPath){var zr=$r.getHierarchicalRefinement(jr.name);zr.length>0&&zr[0].indexOf(jr.rootPath)!==0&&($r=$r.clearRefinements(jr.name)),zr=$r.getHierarchicalRefinement(jr.name),zr.length===0&&($r=$r.toggleHierarchicalFacetRefinement(jr.name,jr.rootPath))}}),$r};SearchParameters$2.validate=function(_r,Fe){var $r=Fe||{};return _r.tagFilters&&$r.tagRefinements&&$r.tagRefinements.length>0?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):_r.tagRefinements.length>0&&$r.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):_r.numericFilters&&$r.numericRefinements&&objectHasKeys$1($r.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):objectHasKeys$1(_r.numericRefinements)&&$r.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null};SearchParameters$2.prototype={constructor:SearchParameters$2,clearRefinements:function _r(Fe){var $r={numericRefinements:this._clearNumericRefinements(Fe),facetsRefinements:RefinementList.clearRefinement(this.facetsRefinements,Fe,"conjunctiveFacet"),facetsExcludes:RefinementList.clearRefinement(this.facetsExcludes,Fe,"exclude"),disjunctiveFacetsRefinements:RefinementList.clearRefinement(this.disjunctiveFacetsRefinements,Fe,"disjunctiveFacet"),hierarchicalFacetsRefinements:RefinementList.clearRefinement(this.hierarchicalFacetsRefinements,Fe,"hierarchicalFacet")};return $r.numericRefinements===this.numericRefinements&&$r.facetsRefinements===this.facetsRefinements&&$r.facetsExcludes===this.facetsExcludes&&$r.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&$r.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters($r)},clearTags:function _r(){return this.tagFilters===void 0&&this.tagRefinements.length===0?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function _r(Fe){return Fe===this.index?this:this.setQueryParameters({index:Fe})},setQuery:function _r(Fe){return Fe===this.query?this:this.setQueryParameters({query:Fe})},setPage:function _r(Fe){return Fe===this.page?this:this.setQueryParameters({page:Fe})},setFacets:function _r(Fe){return this.setQueryParameters({facets:Fe})},setDisjunctiveFacets:function _r(Fe){return this.setQueryParameters({disjunctiveFacets:Fe})},setHitsPerPage:function _r(Fe){return this.hitsPerPage===Fe?this:this.setQueryParameters({hitsPerPage:Fe})},setTypoTolerance:function _r(Fe){return this.typoTolerance===Fe?this:this.setQueryParameters({typoTolerance:Fe})},addNumericRefinement:function(_r,Fe,$r){var Fr=valToNumber($r);if(this.isNumericRefined(_r,Fe,Fr))return this;var jr=merge$4({},this.numericRefinements);return jr[_r]=merge$4({},jr[_r]),jr[_r][Fe]?(jr[_r][Fe]=jr[_r][Fe].slice(),jr[_r][Fe].push(Fr)):jr[_r][Fe]=[Fr],this.setQueryParameters({numericRefinements:jr})},getConjunctiveRefinements:function(_r){return this.isConjunctiveFacet(_r)?this.facetsRefinements[_r]||[]:[]},getDisjunctiveRefinements:function(_r){return this.isDisjunctiveFacet(_r)?this.disjunctiveFacetsRefinements[_r]||[]:[]},getHierarchicalRefinement:function(_r){return this.hierarchicalFacetsRefinements[_r]||[]},getExcludeRefinements:function(_r){return this.isConjunctiveFacet(_r)?this.facetsExcludes[_r]||[]:[]},removeNumericRefinement:function(_r,Fe,$r){return $r!==void 0?this.isNumericRefined(_r,Fe,$r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(Fr,jr){return jr===_r&&Fr.op===Fe&&isEqualNumericRefinement(Fr.val,valToNumber($r))})}):this:Fe!==void 0?this.isNumericRefined(_r,Fe)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(Fr,jr){return jr===_r&&Fr.op===Fe})}):this:this.isNumericRefined(_r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(Fr,jr){return jr===_r})}):this},getNumericRefinements:function(_r){return this.numericRefinements[_r]||{}},getNumericRefinement:function(_r,Fe){return this.numericRefinements[_r]&&this.numericRefinements[_r][Fe]},_clearNumericRefinements:function _r(Fe){if(Fe===void 0)return objectHasKeys$1(this.numericRefinements)?{}:this.numericRefinements;if(typeof Fe=="string")return omit$1(this.numericRefinements,[Fe]);if(typeof Fe=="function"){var $r=!1,Fr=this.numericRefinements,jr=Object.keys(Fr).reduce(function(zr,Vr){var Wr=Fr[Vr],Kr={};return Wr=Wr||{},Object.keys(Wr).forEach(function(Gr){var Yr=Wr[Gr]||[],Qr=[];Yr.forEach(function(Jr){var Zr=Fe({val:Jr,op:Gr},Vr,"numeric");Zr||Qr.push(Jr)}),Qr.length!==Yr.length&&($r=!0),Kr[Gr]=Qr}),zr[Vr]=Kr,zr},{});return $r?jr:this.numericRefinements}},addFacet:function _r(Fe){return this.isConjunctiveFacet(Fe)?this:this.setQueryParameters({facets:this.facets.concat([Fe])})},addDisjunctiveFacet:function _r(Fe){return this.isDisjunctiveFacet(Fe)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([Fe])})},addHierarchicalFacet:function _r(Fe){if(this.isHierarchicalFacet(Fe.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+Fe.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([Fe])})},addFacetRefinement:function _r(Fe,$r){if(!this.isConjunctiveFacet(Fe))throw new Error(Fe+" is not defined in the facets attribute of the helper configuration");return RefinementList.isRefined(this.facetsRefinements,Fe,$r)?this:this.setQueryParameters({facetsRefinements:RefinementList.addRefinement(this.facetsRefinements,Fe,$r)})},addExcludeRefinement:function _r(Fe,$r){if(!this.isConjunctiveFacet(Fe))throw new Error(Fe+" is not defined in the facets attribute of the helper configuration");return RefinementList.isRefined(this.facetsExcludes,Fe,$r)?this:this.setQueryParameters({facetsExcludes:RefinementList.addRefinement(this.facetsExcludes,Fe,$r)})},addDisjunctiveFacetRefinement:function _r(Fe,$r){if(!this.isDisjunctiveFacet(Fe))throw new Error(Fe+" is not defined in the disjunctiveFacets attribute of the helper configuration");return RefinementList.isRefined(this.disjunctiveFacetsRefinements,Fe,$r)?this:this.setQueryParameters({disjunctiveFacetsRefinements:RefinementList.addRefinement(this.disjunctiveFacetsRefinements,Fe,$r)})},addTagRefinement:function _r(Fe){if(this.isTagRefined(Fe))return this;var $r={tagRefinements:this.tagRefinements.concat(Fe)};return this.setQueryParameters($r)},removeFacet:function _r(Fe){return this.isConjunctiveFacet(Fe)?this.clearRefinements(Fe).setQueryParameters({facets:this.facets.filter(function($r){return $r!==Fe})}):this},removeDisjunctiveFacet:function _r(Fe){return this.isDisjunctiveFacet(Fe)?this.clearRefinements(Fe).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter(function($r){return $r!==Fe})}):this},removeHierarchicalFacet:function _r(Fe){return this.isHierarchicalFacet(Fe)?this.clearRefinements(Fe).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter(function($r){return $r.name!==Fe})}):this},removeFacetRefinement:function _r(Fe,$r){if(!this.isConjunctiveFacet(Fe))throw new Error(Fe+" is not defined in the facets attribute of the helper configuration");return RefinementList.isRefined(this.facetsRefinements,Fe,$r)?this.setQueryParameters({facetsRefinements:RefinementList.removeRefinement(this.facetsRefinements,Fe,$r)}):this},removeExcludeRefinement:function _r(Fe,$r){if(!this.isConjunctiveFacet(Fe))throw new Error(Fe+" is not defined in the facets attribute of the helper configuration");return RefinementList.isRefined(this.facetsExcludes,Fe,$r)?this.setQueryParameters({facetsExcludes:RefinementList.removeRefinement(this.facetsExcludes,Fe,$r)}):this},removeDisjunctiveFacetRefinement:function _r(Fe,$r){if(!this.isDisjunctiveFacet(Fe))throw new Error(Fe+" is not defined in the disjunctiveFacets attribute of the helper configuration");return RefinementList.isRefined(this.disjunctiveFacetsRefinements,Fe,$r)?this.setQueryParameters({disjunctiveFacetsRefinements:RefinementList.removeRefinement(this.disjunctiveFacetsRefinements,Fe,$r)}):this},removeTagRefinement:function _r(Fe){if(!this.isTagRefined(Fe))return this;var $r={tagRefinements:this.tagRefinements.filter(function(Fr){return Fr!==Fe})};return this.setQueryParameters($r)},toggleRefinement:function _r(Fe,$r){return this.toggleFacetRefinement(Fe,$r)},toggleFacetRefinement:function _r(Fe,$r){if(this.isHierarchicalFacet(Fe))return this.toggleHierarchicalFacetRefinement(Fe,$r);if(this.isConjunctiveFacet(Fe))return this.toggleConjunctiveFacetRefinement(Fe,$r);if(this.isDisjunctiveFacet(Fe))return this.toggleDisjunctiveFacetRefinement(Fe,$r);throw new Error("Cannot refine the undeclared facet "+Fe+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function _r(Fe,$r){if(!this.isConjunctiveFacet(Fe))throw new Error(Fe+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:RefinementList.toggleRefinement(this.facetsRefinements,Fe,$r)})},toggleExcludeFacetRefinement:function _r(Fe,$r){if(!this.isConjunctiveFacet(Fe))throw new Error(Fe+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:RefinementList.toggleRefinement(this.facetsExcludes,Fe,$r)})},toggleDisjunctiveFacetRefinement:function _r(Fe,$r){if(!this.isDisjunctiveFacet(Fe))throw new Error(Fe+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:RefinementList.toggleRefinement(this.disjunctiveFacetsRefinements,Fe,$r)})},toggleHierarchicalFacetRefinement:function _r(Fe,$r){if(!this.isHierarchicalFacet(Fe))throw new Error(Fe+" is not defined in the hierarchicalFacets attribute of the helper configuration");var Fr=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(Fe)),jr={},zr=this.hierarchicalFacetsRefinements[Fe]!==void 0&&this.hierarchicalFacetsRefinements[Fe].length>0&&(this.hierarchicalFacetsRefinements[Fe][0]===$r||this.hierarchicalFacetsRefinements[Fe][0].indexOf($r+Fr)===0);return zr?$r.indexOf(Fr)===-1?jr[Fe]=[]:jr[Fe]=[$r.slice(0,$r.lastIndexOf(Fr))]:jr[Fe]=[$r],this.setQueryParameters({hierarchicalFacetsRefinements:defaultsPure$1({},jr,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(_r,Fe){if(this.isHierarchicalFacetRefined(_r))throw new Error(_r+" is already refined.");if(!this.isHierarchicalFacet(_r))throw new Error(_r+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var $r={};return $r[_r]=[Fe],this.setQueryParameters({hierarchicalFacetsRefinements:defaultsPure$1({},$r,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(_r){if(!this.isHierarchicalFacetRefined(_r))return this;var Fe={};return Fe[_r]=[],this.setQueryParameters({hierarchicalFacetsRefinements:defaultsPure$1({},Fe,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function _r(Fe){return this.isTagRefined(Fe)?this.removeTagRefinement(Fe):this.addTagRefinement(Fe)},isDisjunctiveFacet:function(_r){return this.disjunctiveFacets.indexOf(_r)>-1},isHierarchicalFacet:function(_r){return this.getHierarchicalFacetByName(_r)!==void 0},isConjunctiveFacet:function(_r){return this.facets.indexOf(_r)>-1},isFacetRefined:function _r(Fe,$r){return this.isConjunctiveFacet(Fe)?RefinementList.isRefined(this.facetsRefinements,Fe,$r):!1},isExcludeRefined:function _r(Fe,$r){return this.isConjunctiveFacet(Fe)?RefinementList.isRefined(this.facetsExcludes,Fe,$r):!1},isDisjunctiveFacetRefined:function _r(Fe,$r){return this.isDisjunctiveFacet(Fe)?RefinementList.isRefined(this.disjunctiveFacetsRefinements,Fe,$r):!1},isHierarchicalFacetRefined:function _r(Fe,$r){if(!this.isHierarchicalFacet(Fe))return!1;var Fr=this.getHierarchicalRefinement(Fe);return $r?Fr.indexOf($r)!==-1:Fr.length>0},isNumericRefined:function _r(Fe,$r,Fr){if(Fr===void 0&&$r===void 0)return!!this.numericRefinements[Fe];var jr=this.numericRefinements[Fe]&&this.numericRefinements[Fe][$r]!==void 0;if(Fr===void 0||!jr)return jr;var zr=valToNumber(Fr),Vr=findArray(this.numericRefinements[Fe][$r],zr)!==void 0;return jr&&Vr},isTagRefined:function _r(Fe){return this.tagRefinements.indexOf(Fe)!==-1},getRefinedDisjunctiveFacets:function _r(){var Fe=this,$r=intersection(Object.keys(this.numericRefinements).filter(function(Fr){return Object.keys(Fe.numericRefinements[Fr]).length>0}),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter(function(Fr){return Fe.disjunctiveFacetsRefinements[Fr].length>0}).concat($r).concat(this.getRefinedHierarchicalFacets())},getRefinedHierarchicalFacets:function _r(){var Fe=this;return intersection(this.hierarchicalFacets.map(function($r){return $r.name}),Object.keys(this.hierarchicalFacetsRefinements).filter(function($r){return Fe.hierarchicalFacetsRefinements[$r].length>0}))},getUnrefinedDisjunctiveFacets:function(){var _r=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter(function(Fe){return _r.indexOf(Fe)===-1})},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function _r(){var Fe=this.managedParameters,$r={},Fr=this;return Object.keys(this).forEach(function(jr){var zr=Fr[jr];Fe.indexOf(jr)===-1&&zr!==void 0&&($r[jr]=zr)}),$r},setQueryParameter:function _r(Fe,$r){if(this[Fe]===$r)return this;var Fr={};return Fr[Fe]=$r,this.setQueryParameters(Fr)},setQueryParameters:function _r(Fe){if(!Fe)return this;var $r=SearchParameters$2.validate(this,Fe);if($r)throw $r;var Fr=this,jr=SearchParameters$2._parseNumbers(Fe),zr=Object.keys(this).reduce(function(Wr,Kr){return Wr[Kr]=Fr[Kr],Wr},{}),Vr=Object.keys(jr).reduce(function(Wr,Kr){var Gr=Wr[Kr]!==void 0,Yr=jr[Kr]!==void 0;return Gr&&!Yr?omit$1(Wr,[Kr]):(Yr&&(Wr[Kr]=jr[Kr]),Wr)},zr);return new this.constructor(Vr)},resetPage:function(){return this.page===void 0?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(_r){return _r.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(_r){return _r.separator||" > "},_getHierarchicalRootPath:function(_r){return _r.rootPath||null},_getHierarchicalShowParentLevel:function(_r){return typeof _r.showParentLevel=="boolean"?_r.showParentLevel:!0},getHierarchicalFacetByName:function(_r){return find$3(this.hierarchicalFacets,function(Fe){return Fe.name===_r})},getHierarchicalFacetBreadcrumb:function(_r){if(!this.isHierarchicalFacet(_r))return[];var Fe=this.getHierarchicalRefinement(_r)[0];if(!Fe)return[];var $r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(_r)),Fr=Fe.split($r);return Fr.map(function(jr){return jr.trim()})},toString:function(){return JSON.stringify(this,null,2)}};var SearchParameters_1=SearchParameters$2;function compareAscending(_r,Fe){if(_r!==Fe){var $r=_r!==void 0,Fr=_r===null,jr=Fe!==void 0,zr=Fe===null;if(!zr&&_r>Fe||Fr&&jr||!$r)return 1;if(!Fr&&_r<Fe||zr&&$r||!jr)return-1}return 0}function orderBy$2(_r,Fe,$r){if(!Array.isArray(_r))return[];Array.isArray($r)||($r=[]);var Fr=_r.map(function(jr,zr){return{criteria:Fe.map(function(Vr){return jr[Vr]}),index:zr,value:jr}});return Fr.sort(function(zr,Vr){for(var Wr=-1;++Wr<zr.criteria.length;){var Kr=compareAscending(zr.criteria[Wr],Vr.criteria[Wr]);if(Kr)return Wr>=$r.length?Kr:$r[Wr]==="desc"?-Kr:Kr}return zr.index-Vr.index}),Fr.map(function(jr){return jr.value})}var orderBy_1=orderBy$2,compact$1=function _r(Fe){return Array.isArray(Fe)?Fe.filter(Boolean):[]},findIndex$1=function _r(Fe,$r){if(!Array.isArray(Fe))return-1;for(var Fr=0;Fr<Fe.length;Fr++)if($r(Fe[Fr]))return Fr;return-1},find$2=find$4,formatSort$1=function _r(Fe,$r){var Fr=($r||[]).map(function(jr){return jr.split(":")});return Fe.reduce(function(zr,Vr){var Wr=Vr.split(":"),Kr=find$2(Fr,function(Gr){return Gr[0]===Wr[0]});return Wr.length>1||!Kr?(zr[0].push(Wr[0]),zr[1].push(Wr[1]),zr):(zr[0].push(Kr[0]),zr[1].push(Kr[1]),zr)},[[],[]])};function escapeFacetValue$3(_r){return typeof _r!="string"?_r:String(_r).replace(/^-/,"\\-")}function unescapeFacetValue$2(_r){return typeof _r!="string"?_r:_r.replace(/^\\-/,"-")}var escapeFacetValue_1={escapeFacetValue:escapeFacetValue$3,unescapeFacetValue:unescapeFacetValue$2},generateHierarchicalTree_1=generateTrees,orderBy$1=orderBy_1,find$1=find$4,prepareHierarchicalFacetSortBy=formatSort$1,fv$1=escapeFacetValue_1,escapeFacetValue$2=fv$1.escapeFacetValue,unescapeFacetValue$1=fv$1.unescapeFacetValue;function generateTrees(_r){return function($r,Fr){var jr=_r.hierarchicalFacets[Fr],zr=_r.hierarchicalFacetsRefinements[jr.name]&&_r.hierarchicalFacetsRefinements[jr.name][0]||"",Vr=_r._getHierarchicalFacetSeparator(jr),Wr=_r._getHierarchicalRootPath(jr),Kr=_r._getHierarchicalShowParentLevel(jr),Gr=prepareHierarchicalFacetSortBy(_r._getHierarchicalFacetSortBy(jr)),Yr=$r.every(function(Zr){return Zr.exhaustive}),Qr=generateHierarchicalTree$1(Gr,Vr,Wr,Kr,zr),Jr=$r;return Wr&&(Jr=$r.slice(Wr.split(Vr).length)),Jr.reduce(Qr,{name:_r.hierarchicalFacets[Fr].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:Yr,data:null})}}function generateHierarchicalTree$1(_r,Fe,$r,Fr,jr){return function(Vr,Wr,Kr){var Gr=Vr;if(Kr>0){var Yr=0;for(Gr=Vr;Yr<Kr;){var Qr=Gr&&Array.isArray(Gr.data)?Gr.data:[];Gr=find$1(Qr,function(Zr){return Zr.isRefined}),Yr++}}if(Gr){var Jr=Object.keys(Wr.data).map(function(Zr){return[Zr,Wr.data[Zr]]}).filter(function(Zr){var tn=Zr[0];return onlyMatchingTree(tn,Gr.path||$r,jr,Fe,$r,Fr)});Gr.data=orderBy$1(Jr.map(function(Zr){var tn=Zr[0],en=Zr[1];return format(en,tn,Fe,unescapeFacetValue$1(jr),Wr.exhaustive)}),_r[0],_r[1])}return Vr}}function onlyMatchingTree(_r,Fe,$r,Fr,jr,zr){return jr&&(_r.indexOf(jr)!==0||jr===_r)?!1:!jr&&_r.indexOf(Fr)===-1||jr&&_r.split(Fr).length-jr.split(Fr).length===1||_r.indexOf(Fr)===-1&&$r.indexOf(Fr)===-1||$r.indexOf(_r)===0||_r.indexOf(Fe+Fr)===0&&(zr||_r.indexOf($r)===0)}function format(_r,Fe,$r,Fr,jr){var zr=Fe.split($r);return{name:zr[zr.length-1].trim(),path:Fe,escapedValue:escapeFacetValue$2(Fe),count:_r,isRefined:Fr===Fe||Fr.indexOf(Fe+$r)===0,exhaustive:jr,data:null}}var merge$3=merge_1,defaultsPure=defaultsPure$3,orderBy=orderBy_1,compact=compact$1,find=find$4,findIndex=findIndex$1,formatSort=formatSort$1,fv=escapeFacetValue_1,escapeFacetValue$1=fv.escapeFacetValue,unescapeFacetValue=fv.unescapeFacetValue,generateHierarchicalTree=generateHierarchicalTree_1;function getIndices(_r){var Fe={};return _r.forEach(function($r,Fr){Fe[$r]=Fr}),Fe}function assignFacetStats(_r,Fe,$r){Fe&&Fe[$r]&&(_r.stats=Fe[$r])}function findMatchingHierarchicalFacetFromAttributeName(_r,Fe){return find(_r,function(Fr){var jr=Fr.attributes||[];return jr.indexOf(Fe)>-1})}function SearchResults$2(_r,Fe,$r){var Fr=Fe[0];this._rawResults=Fe;var jr=this;Object.keys(Fr).forEach(function(Yr){jr[Yr]=Fr[Yr]}),Object.keys($r||{}).forEach(function(Yr){jr[Yr]=$r[Yr]}),this.processingTimeMS=Fe.reduce(function(Yr,Qr){return Qr.processingTimeMS===void 0?Yr:Yr+Qr.processingTimeMS},0),this.disjunctiveFacets=[],this.hierarchicalFacets=_r.hierarchicalFacets.map(function(){return[]}),this.facets=[];var zr=_r.getRefinedDisjunctiveFacets(),Vr=getIndices(_r.facets),Wr=getIndices(_r.disjunctiveFacets),Kr=1,Gr=Fr.facets||{};Object.keys(Gr).forEach(function(Yr){var Qr=Gr[Yr],Jr=findMatchingHierarchicalFacetFromAttributeName(_r.hierarchicalFacets,Yr);if(Jr){var Zr=Jr.attributes.indexOf(Yr),tn=findIndex(_r.hierarchicalFacets,function(on){return on.name===Jr.name});jr.hierarchicalFacets[tn][Zr]={attribute:Yr,data:Qr,exhaustive:Fr.exhaustiveFacetsCount}}else{var en=_r.disjunctiveFacets.indexOf(Yr)!==-1,rn=_r.facets.indexOf(Yr)!==-1,nn;en&&(nn=Wr[Yr],jr.disjunctiveFacets[nn]={name:Yr,data:Qr,exhaustive:Fr.exhaustiveFacetsCount},assignFacetStats(jr.disjunctiveFacets[nn],Fr.facets_stats,Yr)),rn&&(nn=Vr[Yr],jr.facets[nn]={name:Yr,data:Qr,exhaustive:Fr.exhaustiveFacetsCount},assignFacetStats(jr.facets[nn],Fr.facets_stats,Yr))}}),this.hierarchicalFacets=compact(this.hierarchicalFacets),zr.forEach(function(Yr){var Qr=Fe[Kr],Jr=Qr&&Qr.facets?Qr.facets:{},Zr=_r.getHierarchicalFacetByName(Yr);Object.keys(Jr).forEach(function(tn){var en=Jr[tn],rn;if(Zr){rn=findIndex(_r.hierarchicalFacets,function(un){return un.name===Zr.name});var nn=findIndex(jr.hierarchicalFacets[rn],function(un){return un.attribute===tn});if(nn===-1)return;jr.hierarchicalFacets[rn][nn].data=merge$3({},jr.hierarchicalFacets[rn][nn].data,en)}else{rn=Wr[tn];var on=Fr.facets&&Fr.facets[tn]||{};jr.disjunctiveFacets[rn]={name:tn,data:defaultsPure({},en,on),exhaustive:Qr.exhaustiveFacetsCount},assignFacetStats(jr.disjunctiveFacets[rn],Qr.facets_stats,tn),_r.disjunctiveFacetsRefinements[tn]&&_r.disjunctiveFacetsRefinements[tn].forEach(function(un){!jr.disjunctiveFacets[rn].data[un]&&_r.disjunctiveFacetsRefinements[tn].indexOf(unescapeFacetValue(un))>-1&&(jr.disjunctiveFacets[rn].data[un]=0)})}}),Kr++}),_r.getRefinedHierarchicalFacets().forEach(function(Yr){var Qr=_r.getHierarchicalFacetByName(Yr),Jr=_r._getHierarchicalFacetSeparator(Qr),Zr=_r.getHierarchicalRefinement(Yr);Zr.length===0||Zr[0].split(Jr).length<2||Fe.slice(Kr).forEach(function(tn){var en=tn&&tn.facets?tn.facets:{};Object.keys(en).forEach(function(rn){var nn=en[rn],on=findIndex(_r.hierarchicalFacets,function(dn){return dn.name===Qr.name}),un=findIndex(jr.hierarchicalFacets[on],function(dn){return dn.attribute===rn});if(un!==-1){var an={};if(Zr.length>0){var sn=Zr[0].split(Jr)[0];an[sn]=jr.hierarchicalFacets[on][un].data[sn]}jr.hierarchicalFacets[on][un].data=defaultsPure(an,nn,jr.hierarchicalFacets[on][un].data)}}),Kr++})}),Object.keys(_r.facetsExcludes).forEach(function(Yr){var Qr=_r.facetsExcludes[Yr],Jr=Vr[Yr];jr.facets[Jr]={name:Yr,data:Fr.facets[Yr],exhaustive:Fr.exhaustiveFacetsCount},Qr.forEach(function(Zr){jr.facets[Jr]=jr.facets[Jr]||{name:Yr},jr.facets[Jr].data=jr.facets[Jr].data||{},jr.facets[Jr].data[Zr]=0})}),this.hierarchicalFacets=this.hierarchicalFacets.map(generateHierarchicalTree(_r)),this.facets=compact(this.facets),this.disjunctiveFacets=compact(this.disjunctiveFacets),this._state=_r}SearchResults$2.prototype.getFacetByName=function(_r){function Fe($r){return $r.name===_r}return find(this.facets,Fe)||find(this.disjunctiveFacets,Fe)||find(this.hierarchicalFacets,Fe)};function extractNormalizedFacetValues(_r,Fe){function $r(Kr){return Kr.name===Fe}if(_r._state.isConjunctiveFacet(Fe)){var Fr=find(_r.facets,$r);return Fr?Object.keys(Fr.data).map(function(Kr){var Gr=escapeFacetValue$1(Kr);return{name:Kr,escapedValue:Gr,count:Fr.data[Kr],isRefined:_r._state.isFacetRefined(Fe,Gr),isExcluded:_r._state.isExcludeRefined(Fe,Kr)}}):[]}else if(_r._state.isDisjunctiveFacet(Fe)){var jr=find(_r.disjunctiveFacets,$r);return jr?Object.keys(jr.data).map(function(Kr){var Gr=escapeFacetValue$1(Kr);return{name:Kr,escapedValue:Gr,count:jr.data[Kr],isRefined:_r._state.isDisjunctiveFacetRefined(Fe,Gr)}}):[]}else if(_r._state.isHierarchicalFacet(Fe)){var zr=find(_r.hierarchicalFacets,$r);if(!zr)return zr;var Vr=_r._state.getHierarchicalFacetByName(Fe),Wr=unescapeFacetValue(_r._state.getHierarchicalRefinement(Fe)[0]||"").split(_r._state._getHierarchicalFacetSeparator(Vr));return Wr.unshift(Fe),setIsRefined(zr,Wr,0),zr}}function setIsRefined(_r,Fe,$r){_r.isRefined=_r.name===Fe[$r],_r.data&&_r.data.forEach(function(Fr){setIsRefined(Fr,Fe,$r+1)})}function recSort(_r,Fe,$r,Fr){if(Fr=Fr||0,Array.isArray(Fe))return _r(Fe,$r[Fr]);if(!Fe.data||Fe.data.length===0)return Fe;var jr=Fe.data.map(function(Wr){return recSort(_r,Wr,$r,Fr+1)}),zr=_r(jr,$r[Fr]),Vr=defaultsPure({data:zr},Fe);return Vr}SearchResults$2.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"];function vanillaSortFn(_r,Fe){return Fe.sort(_r)}function sortViaFacetOrdering(_r,Fe){var $r=[],Fr=[],jr=Fe.order||[],zr=jr.reduce(function(Kr,Gr,Yr){return Kr[Gr]=Yr,Kr},{});_r.forEach(function(Kr){var Gr=Kr.path||Kr.name;zr[Gr]!==void 0?$r[zr[Gr]]=Kr:Fr.push(Kr)}),$r=$r.filter(function(Kr){return Kr});var Vr=Fe.sortRemainingBy,Wr;return Vr==="hidden"?$r:(Vr==="alpha"?Wr=[["path","name"],["asc","asc"]]:Wr=[["count"],["desc"]],$r.concat(orderBy(Fr,Wr[0],Wr[1])))}function getFacetOrdering(_r,Fe){return _r.renderingContent&&_r.renderingContent.facetOrdering&&_r.renderingContent.facetOrdering.values&&_r.renderingContent.facetOrdering.values[Fe]}SearchResults$2.prototype.getFacetValues=function(_r,Fe){var $r=extractNormalizedFacetValues(this,_r);if(!!$r){var Fr=defaultsPure({},Fe,{sortBy:SearchResults$2.DEFAULT_SORT,facetOrdering:!(Fe&&Fe.sortBy)}),jr=this,zr;if(Array.isArray($r))zr=[_r];else{var Vr=jr._state.getHierarchicalFacetByName($r.name);zr=Vr.attributes}return recSort(function(Wr,Kr){if(Fr.facetOrdering){var Gr=getFacetOrdering(jr,Kr);if(Boolean(Gr))return sortViaFacetOrdering(Wr,Gr)}if(Array.isArray(Fr.sortBy)){var Yr=formatSort(Fr.sortBy,SearchResults$2.DEFAULT_SORT);return orderBy(Wr,Yr[0],Yr[1])}else if(typeof Fr.sortBy=="function")return vanillaSortFn(Fr.sortBy,Wr);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")},$r,zr)}};SearchResults$2.prototype.getFacetStats=function(_r){if(this._state.isConjunctiveFacet(_r))return getFacetStatsIfAvailable(this.facets,_r);if(this._state.isDisjunctiveFacet(_r))return getFacetStatsIfAvailable(this.disjunctiveFacets,_r)};function getFacetStatsIfAvailable(_r,Fe){var $r=find(_r,function(Fr){return Fr.name===Fe});return $r&&$r.stats}SearchResults$2.prototype.getRefinements=function(){var _r=this._state,Fe=this,$r=[];return Object.keys(_r.facetsRefinements).forEach(function(Fr){_r.facetsRefinements[Fr].forEach(function(jr){$r.push(getRefinement(_r,"facet",Fr,jr,Fe.facets))})}),Object.keys(_r.facetsExcludes).forEach(function(Fr){_r.facetsExcludes[Fr].forEach(function(jr){$r.push(getRefinement(_r,"exclude",Fr,jr,Fe.facets))})}),Object.keys(_r.disjunctiveFacetsRefinements).forEach(function(Fr){_r.disjunctiveFacetsRefinements[Fr].forEach(function(jr){$r.push(getRefinement(_r,"disjunctive",Fr,jr,Fe.disjunctiveFacets))})}),Object.keys(_r.hierarchicalFacetsRefinements).forEach(function(Fr){_r.hierarchicalFacetsRefinements[Fr].forEach(function(jr){$r.push(getHierarchicalRefinement(_r,Fr,jr,Fe.hierarchicalFacets))})}),Object.keys(_r.numericRefinements).forEach(function(Fr){var jr=_r.numericRefinements[Fr];Object.keys(jr).forEach(function(zr){jr[zr].forEach(function(Vr){$r.push({type:"numeric",attributeName:Fr,name:Vr,numericValue:Vr,operator:zr})})})}),_r.tagRefinements.forEach(function(Fr){$r.push({type:"tag",attributeName:"_tags",name:Fr})}),$r};function getRefinement(_r,Fe,$r,Fr,jr){var zr=find(jr,function(Kr){return Kr.name===$r}),Vr=zr&&zr.data&&zr.data[Fr]?zr.data[Fr]:0,Wr=zr&&zr.exhaustive||!1;return{type:Fe,attributeName:$r,name:Fr,count:Vr,exhaustive:Wr}}function getHierarchicalRefinement(_r,Fe,$r,Fr){var jr=_r.getHierarchicalFacetByName(Fe),zr=_r._getHierarchicalFacetSeparator(jr),Vr=$r.split(zr),Wr=find(Fr,function(Jr){return Jr.name===Fe}),Kr=Vr.reduce(function(Jr,Zr){var tn=Jr&&find(Jr.data,function(en){return en.name===Zr});return tn!==void 0?tn:Jr},Wr),Gr=Kr&&Kr.count||0,Yr=Kr&&Kr.exhaustive||!1,Qr=Kr&&Kr.path||"";return{type:"hierarchical",attributeName:Fe,name:Qr,count:Gr,exhaustive:Yr}}var SearchResults_1=SearchResults$2;function EventEmitter$2(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}var events=EventEmitter$2;EventEmitter$2.prototype._events=void 0;EventEmitter$2.prototype._maxListeners=void 0;EventEmitter$2.defaultMaxListeners=10;EventEmitter$2.prototype.setMaxListeners=function(_r){if(!isNumber$2(_r)||_r<0||isNaN(_r))throw TypeError("n must be a positive number");return this._maxListeners=_r,this};EventEmitter$2.prototype.emit=function(_r){var Fe,$r,Fr,jr,zr,Vr;if(this._events||(this._events={}),_r==="error"&&(!this._events.error||isObject$1(this._events.error)&&!this._events.error.length)){if(Fe=arguments[1],Fe instanceof Error)throw Fe;var Wr=new Error('Uncaught, unspecified "error" event. ('+Fe+")");throw Wr.context=Fe,Wr}if($r=this._events[_r],isUndefined$1($r))return!1;if(isFunction$1($r))switch(arguments.length){case 1:$r.call(this);break;case 2:$r.call(this,arguments[1]);break;case 3:$r.call(this,arguments[1],arguments[2]);break;default:jr=Array.prototype.slice.call(arguments,1),$r.apply(this,jr)}else if(isObject$1($r))for(jr=Array.prototype.slice.call(arguments,1),Vr=$r.slice(),Fr=Vr.length,zr=0;zr<Fr;zr++)Vr[zr].apply(this,jr);return!0};EventEmitter$2.prototype.addListener=function(_r,Fe){var $r;if(!isFunction$1(Fe))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",_r,isFunction$1(Fe.listener)?Fe.listener:Fe),this._events[_r]?isObject$1(this._events[_r])?this._events[_r].push(Fe):this._events[_r]=[this._events[_r],Fe]:this._events[_r]=Fe,isObject$1(this._events[_r])&&!this._events[_r].warned&&(isUndefined$1(this._maxListeners)?$r=EventEmitter$2.defaultMaxListeners:$r=this._maxListeners,$r&&$r>0&&this._events[_r].length>$r&&(this._events[_r].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[_r].length),typeof console.trace=="function"&&console.trace())),this};EventEmitter$2.prototype.on=EventEmitter$2.prototype.addListener;EventEmitter$2.prototype.once=function(_r,Fe){if(!isFunction$1(Fe))throw TypeError("listener must be a function");var $r=!1;function Fr(){this.removeListener(_r,Fr),$r||($r=!0,Fe.apply(this,arguments))}return Fr.listener=Fe,this.on(_r,Fr),this};EventEmitter$2.prototype.removeListener=function(_r,Fe){var $r,Fr,jr,zr;if(!isFunction$1(Fe))throw TypeError("listener must be a function");if(!this._events||!this._events[_r])return this;if($r=this._events[_r],jr=$r.length,Fr=-1,$r===Fe||isFunction$1($r.listener)&&$r.listener===Fe)delete this._events[_r],this._events.removeListener&&this.emit("removeListener",_r,Fe);else if(isObject$1($r)){for(zr=jr;zr-- >0;)if($r[zr]===Fe||$r[zr].listener&&$r[zr].listener===Fe){Fr=zr;break}if(Fr<0)return this;$r.length===1?($r.length=0,delete this._events[_r]):$r.splice(Fr,1),this._events.removeListener&&this.emit("removeListener",_r,Fe)}return this};EventEmitter$2.prototype.removeAllListeners=function(_r){var Fe,$r;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[_r]&&delete this._events[_r],this;if(arguments.length===0){for(Fe in this._events)Fe!=="removeListener"&&this.removeAllListeners(Fe);return this.removeAllListeners("removeListener"),this._events={},this}if($r=this._events[_r],isFunction$1($r))this.removeListener(_r,$r);else if($r)for(;$r.length;)this.removeListener(_r,$r[$r.length-1]);return delete this._events[_r],this};EventEmitter$2.prototype.listeners=function(_r){var Fe;return!this._events||!this._events[_r]?Fe=[]:isFunction$1(this._events[_r])?Fe=[this._events[_r]]:Fe=this._events[_r].slice(),Fe};EventEmitter$2.prototype.listenerCount=function(_r){if(this._events){var Fe=this._events[_r];if(isFunction$1(Fe))return 1;if(Fe)return Fe.length}return 0};EventEmitter$2.listenerCount=function(_r,Fe){return _r.listenerCount(Fe)};function isFunction$1(_r){return typeof _r=="function"}function isNumber$2(_r){return typeof _r=="number"}function isObject$1(_r){return typeof _r=="object"&&_r!==null}function isUndefined$1(_r){return _r===void 0}function inherits$2(_r,Fe){_r.prototype=Object.create(Fe.prototype,{constructor:{value:_r,enumerable:!1,writable:!0,configurable:!0}})}var inherits_1=inherits$2,EventEmitter$1=events,inherits$1=inherits_1;function DerivedHelper$1(_r,Fe){this.main=_r,this.fn=Fe,this.lastResults=null}inherits$1(DerivedHelper$1,EventEmitter$1);DerivedHelper$1.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)};DerivedHelper$1.prototype.getModifiedState=function(_r){return this.fn(_r)};var DerivedHelper_1=DerivedHelper$1,merge$2=merge_1;function sortObject(_r){return Object.keys(_r).sort(function(Fe,$r){return Fe.localeCompare($r)}).reduce(function(Fe,$r){return Fe[$r]=_r[$r],Fe},{})}var requestBuilder$1={_getQueries:function _r(Fe,$r){var Fr=[];return Fr.push({indexName:Fe,params:requestBuilder$1._getHitsSearchParams($r)}),$r.getRefinedDisjunctiveFacets().forEach(function(jr){Fr.push({indexName:Fe,params:requestBuilder$1._getDisjunctiveFacetSearchParams($r,jr)})}),$r.getRefinedHierarchicalFacets().forEach(function(jr){var zr=$r.getHierarchicalFacetByName(jr),Vr=$r.getHierarchicalRefinement(jr),Wr=$r._getHierarchicalFacetSeparator(zr);if(Vr.length>0&&Vr[0].split(Wr).length>1){var Kr=Vr[0].split(Wr).slice(0,-1).reduce(function(Yr,Qr,Jr){return Yr.concat({attribute:zr.attributes[Jr],value:Jr===0?Qr:[Yr[Yr.length-1].value,Qr].join(Wr)})},[]);Kr.forEach(function(Gr,Yr){var Qr=requestBuilder$1._getDisjunctiveFacetSearchParams($r,Gr.attribute,Yr===0);function Jr(en){return zr.attributes.some(function(rn){return rn===en.split(":")[0]})}var Zr=(Qr.facetFilters||[]).reduce(function(en,rn){if(Array.isArray(rn)){var nn=rn.filter(function(on){return!Jr(on)});nn.length>0&&en.push(nn)}return typeof rn=="string"&&!Jr(rn)&&en.push(rn),en},[]),tn=Kr[Yr-1];Yr>0?Qr.facetFilters=Zr.concat(tn.attribute+":"+tn.value):Qr.facetFilters=Zr.length>0?Zr:void 0,Fr.push({indexName:Fe,params:Qr})})}}),Fr},_getHitsSearchParams:function(_r){var Fe=_r.facets.concat(_r.disjunctiveFacets).concat(requestBuilder$1._getHitsHierarchicalFacetsAttributes(_r)),$r=requestBuilder$1._getFacetFilters(_r),Fr=requestBuilder$1._getNumericFilters(_r),jr=requestBuilder$1._getTagFilters(_r),zr={facets:Fe.indexOf("*")>-1?["*"]:Fe,tagFilters:jr};return $r.length>0&&(zr.facetFilters=$r),Fr.length>0&&(zr.numericFilters=Fr),sortObject(merge$2({},_r.getQueryParams(),zr))},_getDisjunctiveFacetSearchParams:function(_r,Fe,$r){var Fr=requestBuilder$1._getFacetFilters(_r,Fe,$r),jr=requestBuilder$1._getNumericFilters(_r,Fe),zr=requestBuilder$1._getTagFilters(_r),Vr={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};zr.length>0&&(Vr.tagFilters=zr);var Wr=_r.getHierarchicalFacetByName(Fe);return Wr?Vr.facets=requestBuilder$1._getDisjunctiveHierarchicalFacetAttribute(_r,Wr,$r):Vr.facets=Fe,jr.length>0&&(Vr.numericFilters=jr),Fr.length>0&&(Vr.facetFilters=Fr),sortObject(merge$2({},_r.getQueryParams(),Vr))},_getNumericFilters:function(_r,Fe){if(_r.numericFilters)return _r.numericFilters;var $r=[];return Object.keys(_r.numericRefinements).forEach(function(Fr){var jr=_r.numericRefinements[Fr]||{};Object.keys(jr).forEach(function(zr){var Vr=jr[zr]||[];Fe!==Fr&&Vr.forEach(function(Wr){if(Array.isArray(Wr)){var Kr=Wr.map(function(Gr){return Fr+zr+Gr});$r.push(Kr)}else $r.push(Fr+zr+Wr)})})}),$r},_getTagFilters:function(_r){return _r.tagFilters?_r.tagFilters:_r.tagRefinements.join(",")},_getFacetFilters:function(_r,Fe,$r){var Fr=[],jr=_r.facetsRefinements||{};Object.keys(jr).forEach(function(Kr){var Gr=jr[Kr]||[];Gr.forEach(function(Yr){Fr.push(Kr+":"+Yr)})});var zr=_r.facetsExcludes||{};Object.keys(zr).forEach(function(Kr){var Gr=zr[Kr]||[];Gr.forEach(function(Yr){Fr.push(Kr+":-"+Yr)})});var Vr=_r.disjunctiveFacetsRefinements||{};Object.keys(Vr).forEach(function(Kr){var Gr=Vr[Kr]||[];if(!(Kr===Fe||!Gr||Gr.length===0)){var Yr=[];Gr.forEach(function(Qr){Yr.push(Kr+":"+Qr)}),Fr.push(Yr)}});var Wr=_r.hierarchicalFacetsRefinements||{};return Object.keys(Wr).forEach(function(Kr){var Gr=Wr[Kr]||[],Yr=Gr[0];if(Yr!==void 0){var Qr=_r.getHierarchicalFacetByName(Kr),Jr=_r._getHierarchicalFacetSeparator(Qr),Zr=_r._getHierarchicalRootPath(Qr),tn,en;if(Fe===Kr){if(Yr.indexOf(Jr)===-1||!Zr&&$r===!0||Zr&&Zr.split(Jr).length===Yr.split(Jr).length)return;Zr?(en=Zr.split(Jr).length-1,Yr=Zr):(en=Yr.split(Jr).length-2,Yr=Yr.slice(0,Yr.lastIndexOf(Jr))),tn=Qr.attributes[en]}else en=Yr.split(Jr).length-1,tn=Qr.attributes[en];tn&&Fr.push([tn+":"+Yr])}}),Fr},_getHitsHierarchicalFacetsAttributes:function(_r){var Fe=[];return _r.hierarchicalFacets.reduce(function(Fr,jr){var zr=_r.getHierarchicalRefinement(jr.name)[0];if(!zr)return Fr.push(jr.attributes[0]),Fr;var Vr=_r._getHierarchicalFacetSeparator(jr),Wr=zr.split(Vr).length,Kr=jr.attributes.slice(0,Wr+1);return Fr.concat(Kr)},Fe)},_getDisjunctiveHierarchicalFacetAttribute:function(_r,Fe,$r){var Fr=_r._getHierarchicalFacetSeparator(Fe);if($r===!0){var jr=_r._getHierarchicalRootPath(Fe),zr=0;return jr&&(zr=jr.split(Fr).length),[Fe.attributes[zr]]}var Vr=_r.getHierarchicalRefinement(Fe.name)[0]||"",Wr=Vr.split(Fr).length-1;return Fe.attributes.slice(0,Wr+1)},getSearchForFacetQuery:function(_r,Fe,$r,Fr){var jr=Fr.isDisjunctiveFacet(_r)?Fr.clearRefinements(_r):Fr,zr={facetQuery:Fe,facetName:_r};return typeof $r=="number"&&(zr.maxFacetHits=$r),sortObject(merge$2({},requestBuilder$1._getHitsSearchParams(jr),zr))}},requestBuilder_1=requestBuilder$1,version$3="3.13.0",SearchParameters$1=SearchParameters_1,SearchResults$1=SearchResults_1,DerivedHelper=DerivedHelper_1,requestBuilder=requestBuilder_1,EventEmitter=events,inherits=inherits_1,objectHasKeys=objectHasKeys_1,omit=omit$3,merge$1=merge_1,version$2=version$3,escapeFacetValue=escapeFacetValue_1.escapeFacetValue;function AlgoliaSearchHelper$1(_r,Fe,$r){typeof _r.addAlgoliaAgent=="function"&&_r.addAlgoliaAgent("JS Helper ("+version$2+")"),this.setClient(_r);var Fr=$r||{};Fr.index=Fe,this.state=SearchParameters$1.make(Fr),this.lastResults=null,this._queryId=0,this._lastQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0}inherits(AlgoliaSearchHelper$1,EventEmitter);AlgoliaSearchHelper$1.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this};AlgoliaSearchHelper$1.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this};AlgoliaSearchHelper$1.prototype.getQuery=function(){var _r=this.state;return requestBuilder._getHitsSearchParams(_r)};AlgoliaSearchHelper$1.prototype.searchOnce=function(_r,Fe){var $r=_r?this.state.setQueryParameters(_r):this.state,Fr=requestBuilder._getQueries($r.index,$r),jr=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:$r}),Fe){this.client.search(Fr).then(function(zr){jr._currentNbQueries--,jr._currentNbQueries===0&&jr.emit("searchQueueEmpty"),Fe(null,new SearchResults$1($r,zr.results),$r)}).catch(function(zr){jr._currentNbQueries--,jr._currentNbQueries===0&&jr.emit("searchQueueEmpty"),Fe(zr,null,$r)});return}return this.client.search(Fr).then(function(zr){return jr._currentNbQueries--,jr._currentNbQueries===0&&jr.emit("searchQueueEmpty"),{content:new SearchResults$1($r,zr.results),state:$r,_originalResponse:zr}},function(zr){throw jr._currentNbQueries--,jr._currentNbQueries===0&&jr.emit("searchQueueEmpty"),zr})};AlgoliaSearchHelper$1.prototype.findAnswers=function(_r){console.warn("[algoliasearch-helper] answers is no longer supported");var Fe=this.state,$r=this.derivedHelpers[0];if(!$r)return Promise.resolve([]);var Fr=$r.getModifiedState(Fe),jr=merge$1({attributesForPrediction:_r.attributesForPrediction,nbHits:_r.nbHits},{params:omit(requestBuilder._getHitsSearchParams(Fr),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),zr="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if(typeof this.client.initIndex!="function")throw new Error(zr);var Vr=this.client.initIndex(Fr.index);if(typeof Vr.findAnswers!="function")throw new Error(zr);return Vr.findAnswers(Fr.query,_r.queryLanguages,jr)};AlgoliaSearchHelper$1.prototype.searchForFacetValues=function(_r,Fe,$r,Fr){var jr=typeof this.client.searchForFacetValues=="function",zr=typeof this.client.initIndex=="function";if(!jr&&!zr&&typeof this.client.search!="function")throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var Vr=this.state.setQueryParameters(Fr||{}),Wr=Vr.isDisjunctiveFacet(_r),Kr=requestBuilder.getSearchForFacetQuery(_r,Fe,$r,Vr);this._currentNbQueries++;var Gr=this,Yr;return jr?Yr=this.client.searchForFacetValues([{indexName:Vr.index,params:Kr}]):zr?Yr=this.client.initIndex(Vr.index).searchForFacetValues(Kr):(delete Kr.facetName,Yr=this.client.search([{type:"facet",facet:_r,indexName:Vr.index,params:Kr}]).then(function(Jr){return Jr.results[0]})),this.emit("searchForFacetValues",{state:Vr,facet:_r,query:Fe}),Yr.then(function(Jr){return Gr._currentNbQueries--,Gr._currentNbQueries===0&&Gr.emit("searchQueueEmpty"),Jr=Array.isArray(Jr)?Jr[0]:Jr,Jr.facetHits.forEach(function(Zr){Zr.escapedValue=escapeFacetValue(Zr.value),Zr.isRefined=Wr?Vr.isDisjunctiveFacetRefined(_r,Zr.escapedValue):Vr.isFacetRefined(_r,Zr.escapedValue)}),Jr},function(Qr){throw Gr._currentNbQueries--,Gr._currentNbQueries===0&&Gr.emit("searchQueueEmpty"),Qr})};AlgoliaSearchHelper$1.prototype.setQuery=function(_r){return this._change({state:this.state.resetPage().setQuery(_r),isPageReset:!0}),this};AlgoliaSearchHelper$1.prototype.clearRefinements=function(_r){return this._change({state:this.state.resetPage().clearRefinements(_r),isPageReset:!0}),this};AlgoliaSearchHelper$1.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this};AlgoliaSearchHelper$1.prototype.addDisjunctiveFacetRefinement=function(_r,Fe){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(_r,Fe),isPageReset:!0}),this};AlgoliaSearchHelper$1.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)};AlgoliaSearchHelper$1.prototype.addHierarchicalFacetRefinement=function(_r,Fe){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(_r,Fe),isPageReset:!0}),this};AlgoliaSearchHelper$1.prototype.addNumericRefinement=function(_r,Fe,$r){return this._change({state:this.state.resetPage().addNumericRefinement(_r,Fe,$r),isPageReset:!0}),this};AlgoliaSearchHelper$1.prototype.addFacetRefinement=function(_r,Fe){return this._change({state:this.state.resetPage().addFacetRefinement(_r,Fe),isPageReset:!0}),this};AlgoliaSearchHelper$1.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)};AlgoliaSearchHelper$1.prototype.addFacetExclusion=function(_r,Fe){return this._change({state:this.state.resetPage().addExcludeRefinement(_r,Fe),isPageReset:!0}),this};AlgoliaSearchHelper$1.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)};AlgoliaSearchHelper$1.prototype.addTag=function(_r){return this._change({state:this.state.resetPage().addTagRefinement(_r),isPageReset:!0}),this};AlgoliaSearchHelper$1.prototype.removeNumericRefinement=function(_r,Fe,$r){return this._change({state:this.state.resetPage().removeNumericRefinement(_r,Fe,$r),isPageReset:!0}),this};AlgoliaSearchHelper$1.prototype.removeDisjunctiveFacetRefinement=function(_r,Fe){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(_r,Fe),isPageReset:!0}),this};AlgoliaSearchHelper$1.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)};AlgoliaSearchHelper$1.prototype.removeHierarchicalFacetRefinement=function(_r){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(_r),isPageReset:!0}),this};AlgoliaSearchHelper$1.prototype.removeFacetRefinement=function(_r,Fe){return this._change({state:this.state.resetPage().removeFacetRefinement(_r,Fe),isPageReset:!0}),this};AlgoliaSearchHelper$1.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)};AlgoliaSearchHelper$1.prototype.removeFacetExclusion=function(_r,Fe){return this._change({state:this.state.resetPage().removeExcludeRefinement(_r,Fe),isPageReset:!0}),this};AlgoliaSearchHelper$1.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)};AlgoliaSearchHelper$1.prototype.removeTag=function(_r){return this._change({state:this.state.resetPage().removeTagRefinement(_r),isPageReset:!0}),this};AlgoliaSearchHelper$1.prototype.toggleFacetExclusion=function(_r,Fe){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(_r,Fe),isPageReset:!0}),this};AlgoliaSearchHelper$1.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)};AlgoliaSearchHelper$1.prototype.toggleRefinement=function(_r,Fe){return this.toggleFacetRefinement(_r,Fe)};AlgoliaSearchHelper$1.prototype.toggleFacetRefinement=function(_r,Fe){return this._change({state:this.state.resetPage().toggleFacetRefinement(_r,Fe),isPageReset:!0}),this};AlgoliaSearchHelper$1.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)};AlgoliaSearchHelper$1.prototype.toggleTag=function(_r){return this._change({state:this.state.resetPage().toggleTagRefinement(_r),isPageReset:!0}),this};AlgoliaSearchHelper$1.prototype.nextPage=function(){var _r=this.state.page||0;return this.setPage(_r+1)};AlgoliaSearchHelper$1.prototype.previousPage=function(){var _r=this.state.page||0;return this.setPage(_r-1)};function setCurrentPage(_r){if(_r<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(_r),isPageReset:!1}),this}AlgoliaSearchHelper$1.prototype.setCurrentPage=setCurrentPage;AlgoliaSearchHelper$1.prototype.setPage=setCurrentPage;AlgoliaSearchHelper$1.prototype.setIndex=function(_r){return this._change({state:this.state.resetPage().setIndex(_r),isPageReset:!0}),this};AlgoliaSearchHelper$1.prototype.setQueryParameter=function(_r,Fe){return this._change({state:this.state.resetPage().setQueryParameter(_r,Fe),isPageReset:!0}),this};AlgoliaSearchHelper$1.prototype.setState=function(_r){return this._change({state:SearchParameters$1.make(_r),isPageReset:!1}),this};AlgoliaSearchHelper$1.prototype.overrideStateWithoutTriggeringChangeEvent=function(_r){return this.state=new SearchParameters$1(_r),this};AlgoliaSearchHelper$1.prototype.hasRefinements=function(_r){return objectHasKeys(this.state.getNumericRefinements(_r))?!0:this.state.isConjunctiveFacet(_r)?this.state.isFacetRefined(_r):this.state.isDisjunctiveFacet(_r)?this.state.isDisjunctiveFacetRefined(_r):this.state.isHierarchicalFacet(_r)?this.state.isHierarchicalFacetRefined(_r):!1};AlgoliaSearchHelper$1.prototype.isExcluded=function(_r,Fe){return this.state.isExcludeRefined(_r,Fe)};AlgoliaSearchHelper$1.prototype.isDisjunctiveRefined=function(_r,Fe){return this.state.isDisjunctiveFacetRefined(_r,Fe)};AlgoliaSearchHelper$1.prototype.hasTag=function(_r){return this.state.isTagRefined(_r)};AlgoliaSearchHelper$1.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)};AlgoliaSearchHelper$1.prototype.getIndex=function(){return this.state.index};function getCurrentPage(){return this.state.page}AlgoliaSearchHelper$1.prototype.getCurrentPage=getCurrentPage;AlgoliaSearchHelper$1.prototype.getPage=getCurrentPage;AlgoliaSearchHelper$1.prototype.getTags=function(){return this.state.tagRefinements};AlgoliaSearchHelper$1.prototype.getRefinements=function(_r){var Fe=[];if(this.state.isConjunctiveFacet(_r)){var $r=this.state.getConjunctiveRefinements(_r);$r.forEach(function(Vr){Fe.push({value:Vr,type:"conjunctive"})});var Fr=this.state.getExcludeRefinements(_r);Fr.forEach(function(Vr){Fe.push({value:Vr,type:"exclude"})})}else if(this.state.isDisjunctiveFacet(_r)){var jr=this.state.getDisjunctiveRefinements(_r);jr.forEach(function(Vr){Fe.push({value:Vr,type:"disjunctive"})})}var zr=this.state.getNumericRefinements(_r);return Object.keys(zr).forEach(function(Vr){var Wr=zr[Vr];Fe.push({value:Wr,operator:Vr,type:"numeric"})}),Fe};AlgoliaSearchHelper$1.prototype.getNumericRefinement=function(_r,Fe){return this.state.getNumericRefinement(_r,Fe)};AlgoliaSearchHelper$1.prototype.getHierarchicalFacetBreadcrumb=function(_r){return this.state.getHierarchicalFacetBreadcrumb(_r)};AlgoliaSearchHelper$1.prototype._search=function(_r){var Fe=this.state,$r=[],Fr=[];_r.onlyWithDerivedHelpers||(Fr=requestBuilder._getQueries(Fe.index,Fe),$r.push({state:Fe,queriesCount:Fr.length,helper:this}),this.emit("search",{state:Fe,results:this.lastResults}));var jr=this.derivedHelpers.map(function(Wr){var Kr=Wr.getModifiedState(Fe),Gr=Kr.index?requestBuilder._getQueries(Kr.index,Kr):[];return $r.push({state:Kr,queriesCount:Gr.length,helper:Wr}),Wr.emit("search",{state:Kr,results:Wr.lastResults}),Gr}),zr=Array.prototype.concat.apply(Fr,jr),Vr=this._queryId++;if(this._currentNbQueries++,!zr.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,$r,Vr));try{this.client.search(zr).then(this._dispatchAlgoliaResponse.bind(this,$r,Vr)).catch(this._dispatchAlgoliaError.bind(this,Vr))}catch(Wr){this.emit("error",{error:Wr})}};AlgoliaSearchHelper$1.prototype._dispatchAlgoliaResponse=function(_r,Fe,$r){if(!(Fe<this._lastQueryIdReceived)){this._currentNbQueries-=Fe-this._lastQueryIdReceived,this._lastQueryIdReceived=Fe,this._currentNbQueries===0&&this.emit("searchQueueEmpty");var Fr=$r.results.slice();_r.forEach(function(jr){var zr=jr.state,Vr=jr.queriesCount,Wr=jr.helper,Kr=Fr.splice(0,Vr);if(!zr.index){Wr.emit("result",{results:null,state:zr});return}var Gr=Wr.lastResults=new SearchResults$1(zr,Kr);Wr.emit("result",{results:Gr,state:zr})})}};AlgoliaSearchHelper$1.prototype._dispatchAlgoliaError=function(_r,Fe){_r<this._lastQueryIdReceived||(this._currentNbQueries-=_r-this._lastQueryIdReceived,this._lastQueryIdReceived=_r,this.emit("error",{error:Fe}),this._currentNbQueries===0&&this.emit("searchQueueEmpty"))};AlgoliaSearchHelper$1.prototype.containsRefinement=function(_r,Fe,$r,Fr){return _r||Fe.length!==0||$r.length!==0||Fr.length!==0};AlgoliaSearchHelper$1.prototype._hasDisjunctiveRefinements=function(_r){return this.state.disjunctiveRefinements[_r]&&this.state.disjunctiveRefinements[_r].length>0};AlgoliaSearchHelper$1.prototype._change=function(_r){var Fe=_r.state,$r=_r.isPageReset;Fe!==this.state&&(this.state=Fe,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:$r}))};AlgoliaSearchHelper$1.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this};AlgoliaSearchHelper$1.prototype.setClient=function(_r){return this.client===_r?this:(typeof _r.addAlgoliaAgent=="function"&&_r.addAlgoliaAgent("JS Helper ("+version$2+")"),this.client=_r,this)};AlgoliaSearchHelper$1.prototype.getClient=function(){return this.client};AlgoliaSearchHelper$1.prototype.derive=function(_r){var Fe=new DerivedHelper(this,_r);return this.derivedHelpers.push(Fe),Fe};AlgoliaSearchHelper$1.prototype.detachDerivedHelper=function(_r){var Fe=this.derivedHelpers.indexOf(_r);if(Fe===-1)throw new Error("Derived helper already detached");this.derivedHelpers.splice(Fe,1)};AlgoliaSearchHelper$1.prototype.hasPendingRequests=function(){return this._currentNbQueries>0};var algoliasearch_helper=AlgoliaSearchHelper$1,AlgoliaSearchHelper=algoliasearch_helper,SearchParameters=SearchParameters_1,SearchResults=SearchResults_1;function algoliasearchHelper(_r,Fe,$r){return new AlgoliaSearchHelper(_r,Fe,$r)}algoliasearchHelper.version=version$3;algoliasearchHelper.AlgoliaSearchHelper=AlgoliaSearchHelper;algoliasearchHelper.SearchParameters=SearchParameters;algoliasearchHelper.SearchResults=SearchResults;var algoliasearchHelper_1=algoliasearchHelper;function _typeof$c(_r){return _typeof$c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$c(_r)}function ownKeys$b(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$b(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$b(Object($r),!0).forEach(function(Fr){_defineProperty$b(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$b(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$b(_r,Fe,$r){return Fe=_toPropertyKey$b(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$b(_r){var Fe=_toPrimitive$b(_r,"string");return _typeof$c(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$b(_r,Fe){if(_typeof$c(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$c(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}var withUsage$6=createDocumentationMessageGenerator({name:"configure",connector:!0});function getInitialSearchParameters(_r,Fe){return _r.setQueryParameters(Object.keys(Fe.searchParameters).reduce(function($r,Fr){return _objectSpread$b(_objectSpread$b({},$r),{},_defineProperty$b({},Fr,void 0))},{}))}var connectConfigure=function _r(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:noop$1,$r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$1;return function(Fr){if(!Fr||!isPlainObject$1(Fr.searchParameters))throw new Error(withUsage$6("The `searchParameters` option expects an object."));var jr={};function zr(Vr){return function(Wr){var Kr=getInitialSearchParameters(Vr.state,Fr),Gr=mergeSearchParameters(Kr,new algoliasearchHelper_1.SearchParameters(Wr));Fr.searchParameters=Wr,Vr.setState(Gr).search()}}return{$$type:"ais.configure",init:function(Wr){var Kr=Wr.instantSearchInstance;Fe(_objectSpread$b(_objectSpread$b({},this.getWidgetRenderState(Wr)),{},{instantSearchInstance:Kr}),!0)},render:function(Wr){var Kr=Wr.instantSearchInstance;Fe(_objectSpread$b(_objectSpread$b({},this.getWidgetRenderState(Wr)),{},{instantSearchInstance:Kr}),!1)},dispose:function(Wr){var Kr=Wr.state;return $r(),getInitialSearchParameters(Kr,Fr)},getRenderState:function(Wr,Kr){var Gr,Yr=this.getWidgetRenderState(Kr);return _objectSpread$b(_objectSpread$b({},Wr),{},{configure:_objectSpread$b(_objectSpread$b({},Yr),{},{widgetParams:_objectSpread$b(_objectSpread$b({},Yr.widgetParams),{},{searchParameters:mergeSearchParameters(new algoliasearchHelper_1.SearchParameters((Gr=Wr.configure)===null||Gr===void 0?void 0:Gr.widgetParams.searchParameters),new algoliasearchHelper_1.SearchParameters(Yr.widgetParams.searchParameters)).getQueryParams()})})})},getWidgetRenderState:function(Wr){var Kr=Wr.helper;return jr.refine||(jr.refine=zr(Kr)),{refine:jr.refine,widgetParams:Fr}},getWidgetSearchParameters:function(Wr,Kr){var Gr=Kr.uiState;return mergeSearchParameters(Wr,new algoliasearchHelper_1.SearchParameters(_objectSpread$b(_objectSpread$b({},Gr.configure),Fr.searchParameters)))},getWidgetUiState:function(Wr){return _objectSpread$b(_objectSpread$b({},Wr),{},{configure:_objectSpread$b(_objectSpread$b({},Wr.configure),Fr.searchParameters)})}}}},i$3=connectConfigure;function _typeof$b(_r){return _typeof$b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$b(_r)}function ownKeys$a(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$a(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$a(Object($r),!0).forEach(function(Fr){_defineProperty$a(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$a(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$a(_r,Fe,$r){return Fe=_toPropertyKey$a(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$a(_r){var Fe=_toPrimitive$a(_r,"string");return _typeof$b(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$a(_r,Fe){if(_typeof$b(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$b(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}function _toConsumableArray$3(_r){return _arrayWithoutHoles$3(_r)||_iterableToArray$3(_r)||_unsupportedIterableToArray$3(_r)||_nonIterableSpread$3()}function _nonIterableSpread$3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$3(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray$3(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray$3(_r,Fe)}}function _iterableToArray$3(_r){if(typeof Symbol!="undefined"&&_r[Symbol.iterator]!=null||_r["@@iterator"]!=null)return Array.from(_r)}function _arrayWithoutHoles$3(_r){if(Array.isArray(_r))return _arrayLikeToArray$3(_r)}function _arrayLikeToArray$3(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}var withUsage$5=createDocumentationMessageGenerator({name:"configure-related-items",connector:!0});function createOptionalFilter(_r){var Fe=_r.attributeName,$r=_r.attributeValue,Fr=_r.attributeScore;return"".concat(Fe,":").concat($r,"<score=").concat(Fr||1,">")}var connectConfigureRelatedItems=function _r(Fe,$r){return function(Fr){var jr=Fr||{},zr=jr.hit,Vr=jr.matchingPatterns,Wr=jr.transformSearchParameters,Kr=Wr===void 0?function(Jr){return Jr}:Wr;if(!zr)throw new Error(withUsage$5("The `hit` option is required."));if(!Vr)throw new Error(withUsage$5("The `matchingPatterns` option is required."));var Gr=Object.keys(Vr).reduce(function(Jr,Zr){var tn=Vr[Zr],en=getPropertyByPath(zr,Zr),rn=tn.score;return Array.isArray(en)?[].concat(_toConsumableArray$3(Jr),[en.map(function(nn){return createOptionalFilter({attributeName:Zr,attributeValue:nn,attributeScore:rn})})]):typeof en=="string"?[].concat(_toConsumableArray$3(Jr),[createOptionalFilter({attributeName:Zr,attributeValue:en,attributeScore:rn})]):Jr},[]),Yr=_objectSpread$a({},Kr(new algoliasearchHelper_1.SearchParameters({sumOrFiltersScores:!0,facetFilters:["objectID:-".concat(zr.objectID)],optionalFilters:Gr}))),Qr=i$3(Fe,$r);return _objectSpread$a(_objectSpread$a({},Qr({searchParameters:Yr})),{},{$$type:"ais.configureRelatedItems"})}},t$4=connectConfigureRelatedItems;function _typeof$a(_r){return _typeof$a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$a(_r)}function ownKeys$9(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$9(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$9(Object($r),!0).forEach(function(Fr){_defineProperty$9(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$9(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$9(_r,Fe,$r){return Fe=_toPropertyKey$9(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$9(_r){var Fe=_toPrimitive$9(_r,"string");return _typeof$a(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$9(_r,Fe){if(_typeof$a(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$a(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}var withUsage$4=createDocumentationMessageGenerator({name:"autocomplete",connector:!0}),connectAutocomplete=function _r(Fe){var $r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$1;return checkRendering(Fe,withUsage$4()),function(Fr){var jr=Fr||{},zr=jr.escapeHTML,Vr=zr===void 0?!0:zr,Wr={};return{$$type:"ais.autocomplete",init:function(Gr){var Yr=Gr.instantSearchInstance;Fe(_objectSpread$9(_objectSpread$9({},this.getWidgetRenderState(Gr)),{},{instantSearchInstance:Yr}),!0)},render:function(Gr){var Yr=Gr.instantSearchInstance,Qr=this.getWidgetRenderState(Gr);Qr.indices.forEach(function(Jr){var Zr=Jr.sendEvent,tn=Jr.hits;Zr("view:internal",tn)}),Fe(_objectSpread$9(_objectSpread$9({},Qr),{},{instantSearchInstance:Yr}),!1)},getRenderState:function(Gr,Yr){return _objectSpread$9(_objectSpread$9({},Gr),{},{autocomplete:this.getWidgetRenderState(Yr)})},getWidgetRenderState:function(Gr){var Yr=this,Qr=Gr.helper,Jr=Gr.state,Zr=Gr.scopedResults,tn=Gr.instantSearchInstance;Wr.refine||(Wr.refine=function(rn){Qr.setQuery(rn).search()});var en=Zr.map(function(rn){rn.results.hits=Vr?escapeHits(rn.results.hits):rn.results.hits;var nn=createSendEventForHits({instantSearchInstance:tn,index:rn.results.index,widgetType:Yr.$$type});return{indexId:rn.indexId,indexName:rn.results.index,hits:rn.results.hits,results:rn.results,sendEvent:nn}});return{currentRefinement:Jr.query||"",indices:en,refine:Wr.refine,widgetParams:Fr}},getWidgetUiState:function(Gr,Yr){var Qr=Yr.searchParameters,Jr=Qr.query||"";return Jr===""||Gr&&Gr.query===Jr?Gr:_objectSpread$9(_objectSpread$9({},Gr),{},{query:Jr})},getWidgetSearchParameters:function(Gr,Yr){var Qr=Yr.uiState,Jr={query:Qr.query||""};return Vr?Gr.setQueryParameters(_objectSpread$9(_objectSpread$9({},Jr),TAG_PLACEHOLDER)):Gr.setQueryParameters(Jr)},dispose:function(Gr){var Yr=Gr.state;$r();var Qr=Yr.setQueryParameter("query",void 0);return Vr?Qr.setQueryParameters(Object.keys(TAG_PLACEHOLDER).reduce(function(Jr,Zr){return _objectSpread$9(_objectSpread$9({},Jr),{},_defineProperty$9({},Zr,void 0))},{})):Qr}}}},o$3=connectAutocomplete;function _typeof$9(_r){return _typeof$9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$9(_r)}function ownKeys$8(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$8(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$8(Object($r),!0).forEach(function(Fr){_defineProperty$8(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$8(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$8(_r,Fe,$r){return Fe=_toPropertyKey$8(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$8(_r){var Fe=_toPrimitive$8(_r,"string");return _typeof$9(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$8(_r,Fe){if(_typeof$9(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$9(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}function _toConsumableArray$2(_r){return _arrayWithoutHoles$2(_r)||_iterableToArray$2(_r)||_unsupportedIterableToArray$2(_r)||_nonIterableSpread$2()}function _nonIterableSpread$2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$2(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray$2(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray$2(_r,Fe)}}function _iterableToArray$2(_r){if(typeof Symbol!="undefined"&&_r[Symbol.iterator]!=null||_r["@@iterator"]!=null)return Array.from(_r)}function _arrayWithoutHoles$2(_r){if(Array.isArray(_r))return _arrayLikeToArray$2(_r)}function _arrayLikeToArray$2(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}var withUsage$3=createDocumentationMessageGenerator({name:"query-rules",connector:!0});function hasStateRefinements(_r){return[_r.disjunctiveFacetsRefinements,_r.facetsRefinements,_r.hierarchicalFacetsRefinements,_r.numericRefinements].some(function(Fe){return Boolean(Fe&&Object.keys(Fe).length>0)})}function escapeRuleContext(_r){return _r.replace(/[^a-z0-9-_]+/gi,"_")}function getRuleContextsFromTrackedFilters(_r){var Fe=_r.helper,$r=_r.sharedHelperState,Fr=_r.trackedFilters,jr=Object.keys(Fr).reduce(function(zr,Vr){var Wr=getRefinements(Fe.lastResults||{},$r,!0).filter(function(Yr){return Yr.attribute===Vr}).map(function(Yr){return Yr.numericValue||Yr.name}),Kr=Fr[Vr],Gr=Kr(Wr);return[].concat(_toConsumableArray$2(zr),_toConsumableArray$2(Wr.filter(function(Yr){return Gr.includes(Yr)}).map(function(Yr){return escapeRuleContext("ais-".concat(Vr,"-").concat(Yr))})))},[]);return jr}function applyRuleContexts(_r){var Fe=this.helper,$r=this.initialRuleContexts,Fr=this.trackedFilters,jr=this.transformRuleContexts,zr=_r.state,Vr=zr.ruleContexts||[],Wr=getRuleContextsFromTrackedFilters({helper:Fe,sharedHelperState:zr,trackedFilters:Fr}),Kr=[].concat(_toConsumableArray$2($r),_toConsumableArray$2(Wr)),Gr=jr(Kr).slice(0,10);isEqual(Vr,Gr)||Fe.overrideStateWithoutTriggeringChangeEvent(_objectSpread$8(_objectSpread$8({},zr),{},{ruleContexts:Gr}))}var connectQueryRules=function _r(Fe){var $r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$1;return checkRendering(Fe,withUsage$3()),function(Fr){var jr=Fr||{},zr=jr.trackedFilters,Vr=zr===void 0?{}:zr,Wr=jr.transformRuleContexts,Kr=Wr===void 0?function(tn){return tn}:Wr,Gr=jr.transformItems,Yr=Gr===void 0?function(tn){return tn}:Gr;Object.keys(Vr).forEach(function(tn){if(typeof Vr[tn]!="function")throw new Error(withUsage$3(`'The "`.concat(tn,'" filter value in the `trackedFilters` option expects a function.')))});var Qr=Object.keys(Vr).length>0,Jr=[],Zr;return{$$type:"ais.queryRules",init:function(en){var rn=en.helper,nn=en.state,on=en.instantSearchInstance;Jr=nn.ruleContexts||[],Zr=applyRuleContexts.bind({helper:rn,initialRuleContexts:Jr,trackedFilters:Vr,transformRuleContexts:Kr}),Qr&&((hasStateRefinements(nn)||Boolean(Fr.transformRuleContexts))&&Zr({state:nn}),rn.on("change",Zr)),Fe(_objectSpread$8(_objectSpread$8({},this.getWidgetRenderState(en)),{},{instantSearchInstance:on}),!0)},render:function(en){var rn=en.instantSearchInstance;Fe(_objectSpread$8(_objectSpread$8({},this.getWidgetRenderState(en)),{},{instantSearchInstance:rn}),!1)},getWidgetRenderState:function(en){var rn=en.results,nn=rn||{},on=nn.userData,un=on===void 0?[]:on,an=Yr(un,{results:rn});return{items:an,widgetParams:Fr}},getRenderState:function(en,rn){return _objectSpread$8(_objectSpread$8({},en),{},{queryRules:this.getWidgetRenderState(rn)})},dispose:function(en){var rn=en.helper,nn=en.state;return $r(),Qr?(rn.removeListener("change",Zr),nn.setQueryParameter("ruleContexts",Jr)):nn}}}},s$4=connectQueryRules;function _typeof$8(_r){return _typeof$8=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$8(_r)}function ownKeys$7(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$7(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$7(Object($r),!0).forEach(function(Fr){_defineProperty$7(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$7(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$7(_r,Fe,$r){return Fe=_toPropertyKey$7(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$7(_r){var Fe=_toPrimitive$7(_r,"string");return _typeof$8(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$7(_r,Fe){if(_typeof$8(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$8(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}var createVoiceSearchHelper=function _r(Fe){var $r=Fe.searchAsYouSpeak,Fr=Fe.language,jr=Fe.onQueryChange,zr=Fe.onStateChange,Vr=window.webkitSpeechRecognition||window.SpeechRecognition,Wr=function(ln){return{status:ln,transcript:"",isSpeechFinal:!1,errorCode:void 0}},Kr=Wr("initial"),Gr,Yr=function(){return Boolean(Vr)},Qr=function(){return Kr.status==="askingPermission"||Kr.status==="waiting"||Kr.status==="recognizing"},Jr=function(){var ln=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Kr=_objectSpread$7(_objectSpread$7({},Kr),ln),zr()},Zr=function(){return Kr},tn=function(){var ln=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"initial";Jr(Wr(ln))},en=function(){Jr({status:"waiting"})},rn=function(ln){Jr({status:"error",errorCode:ln.error})},nn=function(ln){Jr({status:"recognizing",transcript:ln.results[0]&&ln.results[0][0]&&ln.results[0][0].transcript||"",isSpeechFinal:ln.results[0]&&ln.results[0].isFinal}),$r&&Kr.transcript&&jr(Kr.transcript)},on=function(){!Kr.errorCode&&Kr.transcript&&!$r&&jr(Kr.transcript),Kr.status!=="error"&&Jr({status:"finished"})},un=function(){Gr=new Vr,Gr&&(tn("askingPermission"),Gr.interimResults=!0,Fr&&(Gr.lang=Fr),Gr.addEventListener("start",en),Gr.addEventListener("error",rn),Gr.addEventListener("result",nn),Gr.addEventListener("end",on),Gr.start())},an=function(){!Gr||(Gr.stop(),Gr.removeEventListener("start",en),Gr.removeEventListener("error",rn),Gr.removeEventListener("result",nn),Gr.removeEventListener("end",on),Gr=void 0)},sn=function(){an(),tn("finished")};return{getState:Zr,isBrowserSupported:Yr,isListening:Qr,startListening:un,stopListening:sn,dispose:an}},builtInCreateVoiceSearchHelper=createVoiceSearchHelper;function _typeof$7(_r){return _typeof$7=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$7(_r)}function ownKeys$6(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$6(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$6(Object($r),!0).forEach(function(Fr){_defineProperty$6(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$6(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$6(_r,Fe,$r){return Fe=_toPropertyKey$6(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$6(_r){var Fe=_toPrimitive$6(_r,"string");return _typeof$7(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$6(_r,Fe){if(_typeof$7(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$7(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}var withUsage$2=createDocumentationMessageGenerator({name:"voice-search",connector:!0}),connectVoiceSearch=function _r(Fe){var $r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$1;return checkRendering(Fe,withUsage$2()),function(Fr){var jr=Fr.searchAsYouSpeak,zr=jr===void 0?!1:jr,Vr=Fr.language,Wr=Fr.additionalQueryParameters,Kr=Fr.createVoiceSearchHelper,Gr=Kr===void 0?builtInCreateVoiceSearchHelper:Kr;return{$$type:"ais.voiceSearch",init:function(Qr){var Jr=Qr.instantSearchInstance;Fe(_objectSpread$6(_objectSpread$6({},this.getWidgetRenderState(Qr)),{},{instantSearchInstance:Jr}),!0)},render:function(Qr){var Jr=Qr.instantSearchInstance;Fe(_objectSpread$6(_objectSpread$6({},this.getWidgetRenderState(Qr)),{},{instantSearchInstance:Jr}),!1)},getRenderState:function(Qr,Jr){return _objectSpread$6(_objectSpread$6({},Qr),{},{voiceSearch:this.getWidgetRenderState(Jr)})},getWidgetRenderState:function(Qr){var Jr=this,Zr=Qr.helper,tn=Qr.instantSearchInstance;this._refine||(this._refine=function(sn){if(sn!==Zr.state.query){var dn=Vr?[Vr.split("-")[0]]:void 0;Zr.setQueryParameter("queryLanguages",dn),typeof Wr=="function"&&Zr.setState(Zr.state.setQueryParameters(_objectSpread$6({ignorePlurals:!0,removeStopWords:!0,optionalWords:sn},Wr({query:sn})))),Zr.setQuery(sn).search()}}),this._voiceSearchHelper||(this._voiceSearchHelper=Gr({searchAsYouSpeak:zr,language:Vr,onQueryChange:function(dn){return Jr._refine(dn)},onStateChange:function(){Fe(_objectSpread$6(_objectSpread$6({},Jr.getWidgetRenderState(Qr)),{},{instantSearchInstance:tn}),!1)}}));var en=this._voiceSearchHelper,rn=en.isBrowserSupported,nn=en.isListening,on=en.startListening,un=en.stopListening,an=en.getState;return{isBrowserSupported:rn(),isListening:nn(),toggleListening:function(){!rn()||(nn()?un():on())},voiceListeningState:an(),widgetParams:Fr}},dispose:function(Qr){var Jr=Qr.state;this._voiceSearchHelper.dispose(),$r();var Zr=Jr;if(typeof Wr=="function"){var tn=Wr({query:""}),en=tn?Object.keys(tn).reduce(function(rn,nn){return rn[nn]=void 0,rn},{}):{};Zr=Jr.setQueryParameters(_objectSpread$6({queryLanguages:void 0,ignorePlurals:void 0,removeStopWords:void 0,optionalWords:void 0},en))}return Zr.setQueryParameter("query",void 0)},getWidgetUiState:function(Qr,Jr){var Zr=Jr.searchParameters,tn=Zr.query||"";return tn?_objectSpread$6(_objectSpread$6({},Qr),{},{query:tn}):Qr},getWidgetSearchParameters:function(Qr,Jr){var Zr=Jr.uiState;return Qr.setQueryParameter("query",Zr.query||"")}}}},i$2=connectVoiceSearch;function _typeof$6(_r){return _typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$6(_r)}function ownKeys$5(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$5(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$5(Object($r),!0).forEach(function(Fr){_defineProperty$5(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$5(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$5(_r,Fe,$r){return Fe=_toPropertyKey$5(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$5(_r){var Fe=_toPrimitive$5(_r,"string");return _typeof$6(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$5(_r,Fe){if(_typeof$6(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$6(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}var connectRelevantSort=function _r(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:noop$1,$r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$1;return function(Fr){var jr={};return{$$type:"ais.relevantSort",init:function(Vr){var Wr=Vr.instantSearchInstance;Fe(_objectSpread$5(_objectSpread$5({},this.getWidgetRenderState(Vr)),{},{instantSearchInstance:Wr}),!0)},render:function(Vr){var Wr=Vr.instantSearchInstance;Fe(_objectSpread$5(_objectSpread$5({},this.getWidgetRenderState(Vr)),{},{instantSearchInstance:Wr}),!1)},dispose:function(Vr){var Wr=Vr.state;return $r(),Wr.setQueryParameter("relevancyStrictness",void 0)},getRenderState:function(Vr,Wr){return _objectSpread$5(_objectSpread$5({},Vr),{},{relevantSort:this.getWidgetRenderState(Wr)})},getWidgetRenderState:function(Vr){var Wr=Vr.results,Kr=Vr.helper;jr.refine||(jr.refine=function(Jr){Kr.setQueryParameter("relevancyStrictness",Jr).search()});var Gr=Wr||{},Yr=Gr.appliedRelevancyStrictness,Qr=Yr!==void 0;return{isRelevantSorted:typeof Yr!="undefined"&&Yr>0,isVirtualReplica:Qr,canRefine:Qr,refine:jr.refine,widgetParams:Fr}},getWidgetSearchParameters:function(Vr,Wr){var Kr,Gr=Wr.uiState;return Vr.setQueryParameter("relevancyStrictness",(Kr=Gr.relevantSort)!==null&&Kr!==void 0?Kr:Vr.relevancyStrictness)},getWidgetUiState:function(Vr,Wr){var Kr=Wr.searchParameters;return _objectSpread$5(_objectSpread$5({},Vr),{},{relevantSort:Kr.relevancyStrictness||Vr.relevantSort})}}}},i$1=connectRelevantSort;deprecate(connectAnswers$1);deprecate(a$8);var e$w={name:"AisAutocomplete",mixins:[n$4({connector:o$3},{$$widgetType:"ais.autocomplete"}),t$6({name:"Autocomplete"})],props:{escapeHTML:{type:Boolean,required:!1,default:!0}},computed:{widgetParams:function(){return{escapeHTML:this.escapeHTML}}}},s$3=createVNode("p",null," This widget doesn't render anything without a filled in default slot. ",-1),a$6=createVNode("p",null,"query, function to refine and results are provided.",-1),d$2=createVNode("pre",null,"refine: Function",-1),f$4=createVNode("summary",null,[createVNode("code",null,"indices"),createTextVNode(":")],-1);function c$8(_r,Fe,$r,Fr,jr,zr){return _r.state?(openBlock(),createBlock("div",{key:0,class:_r.suit()},[renderSlot(_r.$slots,"default",{refine:_r.state.refine,currentRefinement:_r.state.currentRefinement,indices:_r.state.indices},function(){return[s$3,a$6,d$2,createVNode("pre",null,'currentRefinement: "'+toDisplayString(_r.state.currentRefinement)+'"',1),createVNode("details",null,[f$4,createVNode("pre",null,toDisplayString(_r.state.indices),1)])]})],2)):createCommentVNode("",!0)}e$w.render=c$8;function t$3(_r){return{all:_r=_r||new Map,on:function(Fe,$r){var Fr=_r.get(Fe);Fr&&Fr.push($r)||_r.set(Fe,[$r])},off:function(Fe,$r){var Fr=_r.get(Fe);Fr&&Fr.splice(Fr.indexOf($r)>>>0,1)},emit:function(Fe,$r){(_r.get(Fe)||[]).slice().map(function(Fr){Fr($r)}),(_r.get("*")||[]).slice().map(function(Fr){Fr(Fe,$r)})}}}var i=function(){var _r;return(_r={props:{emitter:{type:Object,required:!1,default:function(){return t$3()}}},provide:function(){var Fe;return(Fe={}).instantSearchPanelEmitter=this.emitter,Fe},data:function(){return{canRefine:!0}},created:function(){var Fe=this;this.emitter.on("PANEL_CHANGE_EVENT",function($r){Fe.updateCanRefine($r)})}}).beforeUnmount=function(){this.emitter.all.clear()},_r.methods={updateCanRefine:function(Fe){this.canRefine=Fe}},_r},r$b=function(_r){_r===void 0&&(_r={});var Fe=_r.mapStateToCanRefine;return Fe===void 0&&(Fe=function($r){return Boolean($r.canRefine)}),{inject:{emitter:{from:"instantSearchPanelEmitter",default:function(){return{emit:function(){}}}}},data:function(){return{state:null,hasAlreadyEmitted:!1}},watch:{state:{immediate:!0,handler:function($r,Fr){if($r){var jr=Fe(Fr||{}),zr=Fe($r);this.hasAlreadyEmitted&&jr===zr||(this.emitter.emit("PANEL_CHANGE_EVENT",zr),this.hasAlreadyEmitted=!0)}}}}}},e$v={name:"AisBreadcrumb",mixins:[n$4({connector:e$x},{$$widgetType:"ais.breadcrumb"}),r$b(),t$6({name:"Breadcrumb"})],props:{attributes:{type:Array,required:!0},separator:{type:String,default:void 0},rootPath:{type:String,default:void 0},transformItems:{type:Function,default:void 0}},computed:{widgetParams:function(){return{attributes:this.attributes,separator:this.separator,rootPath:this.rootPath,transformItems:this.transformItems}}},methods:{isLastItem:function(_r){return this.state.items.length-1===_r}}},c$7=createTextVNode("Home"),f$3={key:1},m$2=createTextVNode("Home"),k=createTextVNode(">"),p$1={key:1};function L(_r,Fe,$r,Fr,jr,zr){return _r.state?(openBlock(),createBlock("div",{key:0,class:[_r.suit(),!_r.state.canRefine&&_r.suit("","noRefinement")]},[renderSlot(_r.$slots,"default",{items:_r.state.items,canRefine:_r.state.canRefine,refine:_r.state.refine,createURL:_r.state.createURL},function(){return[createVNode("ul",{class:_r.suit("list")},[createVNode("li",{class:[_r.suit("item"),!_r.state.items.length&&_r.suit("item","selected")]},[Boolean(_r.state.items.length)?(openBlock(),createBlock("a",{key:0,href:_r.state.createURL(),class:_r.suit("link"),onClick:Fe[1]||(Fe[1]=withModifiers(function(Vr){return _r.state.refine()},["prevent"]))},[renderSlot(_r.$slots,"rootLabel",{},function(){return[c$7]})],10,["href"])):(openBlock(),createBlock("span",f$3,[renderSlot(_r.$slots,"rootLabel",{},function(){return[m$2]})]))],2),(openBlock(!0),createBlock(Fragment,null,renderList(_r.state.items,function(Vr,Wr){return openBlock(),createBlock("li",{key:Vr.label,class:[_r.suit("item"),zr.isLastItem(Wr)&&_r.suit("item","selected")]},[createVNode("span",{class:_r.suit("separator"),"aria-hidden":"true"},[renderSlot(_r.$slots,"separator",{},function(){return[k]})],2),zr.isLastItem(Wr)?(openBlock(),createBlock("span",p$1,toDisplayString(Vr.label),1)):(openBlock(),createBlock("a",{key:0,href:_r.state.createURL(Vr.value),class:_r.suit("link"),onClick:withModifiers(function(Kr){return _r.state.refine(Vr.value)},["prevent"])},toDisplayString(Vr.label),11,["href","onClick"]))],2)}),128))],2)]})],2)):createCommentVNode("",!0)}e$v.render=L;var e$u={name:"AisClearRefinements",mixins:[n$4({connector:i$c},{$$widgetType:"ais.clearRefinements"}),r$b(),t$6({name:"ClearRefinements"})],props:{excludedAttributes:{type:Array,default:void 0},includedAttributes:{type:Array,default:void 0},transformItems:{type:Function,default:void 0}},computed:{widgetParams:function(){return{includedAttributes:this.includedAttributes,excludedAttributes:this.excludedAttributes,transformItems:this.transformItems}},canRefine:function(){return this.state.hasRefinements}}},f$2=createTextVNode(" Clear refinements ");function u$7(_r,Fe,$r,Fr,jr,zr){return _r.state?(openBlock(),createBlock("div",{key:0,class:_r.suit()},[renderSlot(_r.$slots,"default",{canRefine:zr.canRefine,refine:_r.state.refine,createURL:_r.state.createURL},function(){return[createVNode("button",{type:"reset",class:[_r.suit("button"),!zr.canRefine&&_r.suit("button","disabled")],disabled:!zr.canRefine,onClick:Fe[1]||(Fe[1]=withModifiers(function(){for(var Vr,Wr=[],Kr=arguments.length;Kr--;)Wr[Kr]=arguments[Kr];return _r.state.refine&&(Vr=_r.state).refine.apply(Vr,Wr)},["prevent"]))},[renderSlot(_r.$slots,"resetLabel",{},function(){return[f$2]})],10,["disabled"])]})],2)):createCommentVNode("",!0)}e$u.render=u$7;var Configure={inheritAttrs:!1,name:"AisConfigure",mixins:[t$6({name:"Configure"}),n$4({connector:i$3},{$$widgetType:"ais.configure"})],computed:{widgetParams:function(){return{searchParameters:this.$attrs}}},render:n$6(function(_r){var Fe=this.$slots.default;return this.state&&Fe?_r("div",{class:this.suit()},[Fe({refine:this.state.refine,searchParameters:this.state.widgetParams.searchParameters})]):null})},ConfigureRelatedItems={inheritAttrs:!1,name:"AisExperimentalConfigureRelatedItems",mixins:[n$4({connector:t$4},{$$widgetType:"ais.configureRelatedItems"})],props:{hit:{type:Object,required:!0},matchingPatterns:{type:Object,required:!0},transformSearchParameters:{type:Function,required:!1}},computed:{widgetParams:function(){return{hit:this.hit,matchingPatterns:this.matchingPatterns,transformSearchParameters:this.transformSearchParameters}}},render:function(){return null}},e$t={name:"AisCurrentRefinements",mixins:[t$6({name:"CurrentRefinements"}),n$4({connector:i$b},{$$widgetType:"ais.currentRefinements"}),r$b()],props:{includedAttributes:{type:Array,default:void 0},excludedAttributes:{type:Array,default:void 0},transformItems:{type:Function,default:void 0}},computed:{noRefinement:function(){return this.state&&this.state.items.length===0},widgetParams:function(){return{includedAttributes:this.includedAttributes,excludedAttributes:this.excludedAttributes,transformItems:this.transformItems}}},methods:{createItemKey:function(_r){var Fe=_r.attribute,$r=_r.value;return[Fe,_r.type,$r,_r.operator].join(":")},capitalize:function(_r){return _r?_r.toString().charAt(0).toLocaleUpperCase()+_r.toString().slice(1):""}}},c$6={key:0};function f$1(_r,Fe,$r,Fr,jr,zr){return _r.state?(openBlock(),createBlock("div",{key:0,class:[_r.suit(),zr.noRefinement&&_r.suit("","noRefinement")]},[renderSlot(_r.$slots,"default",{refine:_r.state.refine,items:_r.state.items,createURL:_r.state.createURL},function(){return[createVNode("ul",{class:_r.suit("list")},[(openBlock(!0),createBlock(Fragment,null,renderList(_r.state.items,function(Vr){return openBlock(),createBlock("li",{key:Vr.attribute,class:_r.suit("item")},[renderSlot(_r.$slots,"item",{refine:Vr.refine,item:Vr,createURL:_r.state.createURL},function(){return[createVNode("span",{class:_r.suit("label")},toDisplayString(zr.capitalize(Vr.label))+": ",3),(openBlock(!0),createBlock(Fragment,null,renderList(Vr.refinements,function(Wr){return openBlock(),createBlock("span",{key:zr.createItemKey(Wr),class:_r.suit("category")},[renderSlot(_r.$slots,"refinement",{refine:Vr.refine,refinement:Wr,createURL:_r.state.createURL},function(){return[createVNode("span",{class:_r.suit("categoryLabel")},[Wr.attribute==="query"?(openBlock(),createBlock("q",c$6,toDisplayString(Wr.label),1)):(openBlock(),createBlock(Fragment,{key:1},[createTextVNode(toDisplayString(Wr.label),1)],64))],2),createVNode("button",{class:_r.suit("delete"),onClick:function(Kr){return Vr.refine(Wr)}}," \u2715 ",10,["onClick"])]})],2)}),128))]})],2)}),128))],2)]})],2)):createCommentVNode("",!0)}e$t.render=f$1;var e$s={name:"HierarchicalMenuList",props:{items:{type:Array,required:!0},level:{type:Number,required:!0},refine:{type:Function,required:!0},createURL:{type:Function,required:!0},suit:{type:Function,required:!0}}};function c$5(_r,Fe,$r,Fr,jr,zr){var Vr=resolveComponent("hierarchical-menu-list",!0);return $r.items.length>0?(openBlock(),createBlock("ul",{key:0,class:[$r.suit("list"),$r.level>0&&$r.suit("list","child"),$r.suit("list","lvl"+$r.level)]},[(openBlock(!0),createBlock(Fragment,null,renderList($r.items,function(Wr){return openBlock(),createBlock("li",{key:Wr.value,class:[$r.suit("item"),Wr.data&&Wr.data.length>0&&$r.suit("item","parent"),Wr.isRefined&&$r.suit("item","selected")]},[createVNode("a",{href:$r.createURL(Wr.value),class:[$r.suit("link"),Wr.isRefined&&$r.suit("link","selected")],onClick:withModifiers(function(Kr){return $r.refine(Wr.value)},["prevent"])},[createVNode("span",{class:$r.suit("label")},toDisplayString(Wr.label),3),createVNode("span",{class:$r.suit("count")},toDisplayString(Wr.count),3)],10,["href","onClick"]),Wr.data?(openBlock(),createBlock(Vr,{key:0,items:Wr.data,level:$r.level+1,refine:$r.refine,createURL:$r.createURL,suit:$r.suit},null,8,["items","level","refine","createURL","suit"])):createCommentVNode("",!0)],2)}),128))],2)):createCommentVNode("",!0)}e$s.render=c$5;var e$r={name:"AisHierarchicalMenu",mixins:[t$6({name:"HierarchicalMenu"}),n$4({connector:i$a},{$$widgetType:"ais.hierarchicalMenu"}),r$b()],components:{HierarchicalMenuList:e$s},props:{attributes:{type:Array,required:!0},limit:{type:Number,default:void 0},showMoreLimit:{type:Number,default:void 0},showMore:{type:Boolean,default:!1},sortBy:{type:[Array,Function],default:void 0},separator:{type:String,default:void 0},rootPath:{type:String,default:void 0},showParentLevel:{type:Boolean,default:void 0},transformItems:{type:Function,default:void 0}},computed:{widgetParams:function(){return{attributes:this.attributes,limit:this.limit,showMore:this.showMore,showMoreLimit:this.showMoreLimit,separator:this.separator,rootPath:this.rootPath,showParentLevel:this.showParentLevel,sortBy:this.sortBy,transformItems:this.transformItems}}}};function g$1(_r,Fe,$r,Fr,jr,zr){var Vr=resolveComponent("hierarchical-menu-list");return _r.state?(openBlock(),createBlock("div",{key:0,class:[_r.suit(),!_r.state.canRefine&&_r.suit("","noRefinement")]},[renderSlot(_r.$slots,"default",{items:_r.state.items,canRefine:_r.state.canRefine,canToggleShowMore:_r.state.canToggleShowMore,isShowingMore:_r.state.isShowingMore,refine:_r.state.refine,createURL:_r.state.createURL,toggleShowMore:_r.state.toggleShowMore,sendEvent:_r.state.sendEvent},function(){return[createVNode(Vr,{items:_r.state.items,level:0,refine:_r.state.refine,createURL:_r.state.createURL,suit:_r.suit},null,8,["items","refine","createURL","suit"]),$r.showMore?(openBlock(),createBlock("button",{key:0,class:[_r.suit("showMore"),!_r.state.canToggleShowMore&&_r.suit("showMore","disabled")],disabled:!_r.state.canToggleShowMore,onClick:Fe[1]||(Fe[1]=withModifiers(function(){for(var Wr,Kr=[],Gr=arguments.length;Gr--;)Kr[Gr]=arguments[Gr];return _r.state.toggleShowMore&&(Wr=_r.state).toggleShowMore.apply(Wr,Kr)},["prevent"]))},[renderSlot(_r.$slots,"showMoreLabel",{isShowingMore:_r.state.isShowingMore},function(){return[createTextVNode(toDisplayString(_r.state.isShowingMore?"Show less":"Show more"),1)]})],10,["disabled"])):createCommentVNode("",!0)]})],2)):createCommentVNode("",!0)}e$r.render=g$1;var t$2={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},e$q=/&(?:amp|lt|gt|quot|#39);/g,r$a=RegExp(e$q.source);function u$6(_r){return _r&&r$a.test(_r)?_r.replace(e$q,function(Fe){return t$2[Fe]}):_r}var t$1={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"};function r$9(_r){var Fe=_r.preTag,$r=_r.postTag,Fr=_r.highlightedValue;Fr===void 0&&(Fr="");var jr=Fr.split(Fe),zr=jr.shift(),Vr=zr===""?[]:[{value:zr,isHighlighted:!1}];if($r===Fe){var Wr=!0;jr.forEach(function(Kr){Vr.push({value:Kr,isHighlighted:Wr}),Wr=!Wr})}else jr.forEach(function(Kr){var Gr=Kr.split($r);Vr.push({value:Gr[0],isHighlighted:!0}),Gr[1]!==""&&Vr.push({value:Gr[1]===" "?"  ":Gr[1],isHighlighted:!1})});return Vr}function a$5(_r){var Fe=_r.preTag;Fe===void 0&&(Fe=t$1.highlightPreTag);var $r=_r.postTag;$r===void 0&&($r=t$1.highlightPostTag);var Fr=_r.highlightProperty,jr=_r.attribute,zr=_r.hit;if(!zr)throw new Error("`hit`, the matching record, must be provided");var Vr=getPropertyByPath(zr[Fr],jr)||{};return Array.isArray(Vr)?Vr.map(function(Wr){return r$9({preTag:Fe,postTag:$r,highlightedValue:u$6(Wr.value)})}):r$9({preTag:Fe,postTag:$r,highlightedValue:u$6(Vr.value)})}var e$o=function(_r,Fe){return Fe.slots.default()},e$p={name:"AisHighlighter",props:{hit:{type:Object,required:!0},attribute:{type:String,required:!0},highlightedTagName:{type:String,default:"mark"},suit:{type:Function,required:!0},highlightProperty:{type:String,required:!0},preTag:{type:String,required:!0},postTag:{type:String,required:!0}},data:function(){return{TextNode:e$o}},computed:{parsedHighlights:function(){return a$5({attribute:this.attribute,hit:this.hit,highlightProperty:this.highlightProperty,preTag:this.preTag,postTag:this.postTag})}}};function a$4(_r,Fe,$r,Fr,jr,zr){return openBlock(),createBlock("span",{class:$r.suit()},[(openBlock(!0),createBlock(Fragment,null,renderList(zr.parsedHighlights,function(Vr,Wr){var Kr=Vr.value,Gr=Vr.isHighlighted;return openBlock(),createBlock(resolveDynamicComponent(Gr?$r.highlightedTagName:jr.TextNode),{class:[Gr&&$r.suit("highlighted")],key:Wr},{default:withCtx(function(){return[createTextVNode(toDisplayString(Kr),1)]}),_:2},1032,["class"])}),128))],2)}e$p.render=a$4;var e$n={name:"AisHighlight",mixins:[t$6({name:"Highlight"})],components:{AisHighlighter:e$p},props:{hit:{type:Object,required:!0},attribute:{type:String,required:!0},highlightedTagName:{type:String,default:"mark"}}};function g(_r,Fe,$r,Fr,jr,zr){var Vr=resolveComponent("ais-highlighter");return openBlock(),createBlock(Vr,{hit:$r.hit,attribute:$r.attribute,"highlighted-tag-name":$r.highlightedTagName,suit:_r.suit,"highlight-property":"_highlightResult","pre-tag":"<mark>","post-tag":"</mark>"},null,8,["hit","attribute","highlighted-tag-name","suit"])}e$n.render=g;var e$m={name:"AisHits",mixins:[n$4({connector:e$A},{$$widgetType:"ais.hits"}),t$6({name:"Hits"})],props:{escapeHTML:{type:Boolean,default:!0},transformItems:{type:Function,default:void 0}},computed:{items:function(){return this.state.hits},widgetParams:function(){return{escapeHTML:this.escapeHTML,transformItems:this.transformItems}}}};function r$8(_r,Fe,$r,Fr,jr,zr){return _r.state?(openBlock(),createBlock("div",{key:0,class:_r.suit()},[renderSlot(_r.$slots,"default",{items:zr.items,insights:_r.state.insights,sendEvent:_r.state.sendEvent},function(){return[createVNode("ol",{class:_r.suit("list")},[(openBlock(!0),createBlock(Fragment,null,renderList(zr.items,function(Vr,Wr){return openBlock(),createBlock("li",{key:Vr.objectID,class:_r.suit("item"),onClick:function(Kr){return _r.state.sendEvent("click:internal",Vr,"Hit Clicked")},onAuxclick:function(Kr){return _r.state.sendEvent("click:internal",Vr,"Hit Clicked")}},[renderSlot(_r.$slots,"item",{item:Vr,index:Wr,insights:_r.state.insights,sendEvent:_r.state.sendEvent},function(){return[createTextVNode(" objectID: "+toDisplayString(Vr.objectID)+", index: "+toDisplayString(Wr),1)]})],42,["onClick","onAuxclick"])}),128))],2)]})],2)):createCommentVNode("",!0)}e$m.render=r$8;var e$l={name:"AisHitsPerPage",mixins:[t$6({name:"HitsPerPage"}),n$4({connector:i$9},{$$widgetType:"ais.hitsPerPage"}),r$b()],props:{items:{type:Array,required:!0},transformItems:{type:Function,default:void 0}},computed:{widgetParams:function(){return{items:this.items,transformItems:this.transformItems}}}};function r$7(_r,Fe,$r,Fr,jr,zr){return _r.state?(openBlock(),createBlock("div",{key:0,class:_r.suit()},[renderSlot(_r.$slots,"default",{items:_r.state.items,refine:_r.state.refine,hasNoResults:_r.state.hasNoResults,canRefine:_r.state.canRefine},function(){return[createVNode("select",{class:_r.suit("select"),onChange:Fe[1]||(Fe[1]=function(Vr){return _r.state.refine(Number(Vr.currentTarget.value))})},[(openBlock(!0),createBlock(Fragment,null,renderList(_r.state.items,function(Vr){return openBlock(),createBlock("option",{key:Vr.value,class:_r.suit("option"),value:Vr.value,selected:Vr.isRefined},toDisplayString(Vr.label),11,["value","selected"])}),128))],34)]})],2)):createCommentVNode("",!0)}e$l.render=r$7;function _typeof$5(_r){return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$5(_r)}var _excluded$1=["initialSearchParameters"];function ownKeys$4(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$4(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$4(Object($r),!0).forEach(function(Fr){_defineProperty$4(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$4(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$4(_r,Fe,$r){return Fe=_toPropertyKey$4(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$4(_r){var Fe=_toPrimitive$4(_r,"string");return _typeof$5(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$4(_r,Fe){if(_typeof$5(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$5(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}function _toConsumableArray$1(_r){return _arrayWithoutHoles$1(_r)||_iterableToArray$1(_r)||_unsupportedIterableToArray$1(_r)||_nonIterableSpread$1()}function _nonIterableSpread$1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$1(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray$1(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray$1(_r,Fe)}}function _iterableToArray$1(_r){if(typeof Symbol!="undefined"&&_r[Symbol.iterator]!=null||_r["@@iterator"]!=null)return Array.from(_r)}function _arrayWithoutHoles$1(_r){if(Array.isArray(_r))return _arrayLikeToArray$1(_r)}function _arrayLikeToArray$1(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}function _objectWithoutProperties$1(_r,Fe){if(_r==null)return{};var $r=_objectWithoutPropertiesLoose$1(_r,Fe),Fr,jr;if(Object.getOwnPropertySymbols){var zr=Object.getOwnPropertySymbols(_r);for(jr=0;jr<zr.length;jr++)Fr=zr[jr],!(Fe.indexOf(Fr)>=0)&&(!Object.prototype.propertyIsEnumerable.call(_r,Fr)||($r[Fr]=_r[Fr]))}return $r}function _objectWithoutPropertiesLoose$1(_r,Fe){if(_r==null)return{};var $r={},Fr=Object.keys(_r),jr,zr;for(zr=0;zr<Fr.length;zr++)jr=Fr[zr],!(Fe.indexOf(jr)>=0)&&($r[jr]=_r[jr]);return $r}var withUsage$1=createDocumentationMessageGenerator({name:"index-widget"});function privateHelperSetState(_r,Fe){var $r=Fe.state,Fr=Fe.isPageReset,jr=Fe._uiState;$r!==_r.state&&(_r.state=$r,_r.emit("change",{state:_r.state,results:_r.lastResults,isPageReset:Fr,_uiState:jr}))}function getLocalWidgetsUiState(_r,Fe){var $r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return _r.reduce(function(Fr,jr){return isIndexWidget(jr)||!jr.getWidgetUiState&&!jr.getWidgetState?Fr:jr.getWidgetUiState?jr.getWidgetUiState(Fr,Fe):jr.getWidgetState(Fr,Fe)},$r)}function getLocalWidgetsSearchParameters(_r,Fe){var $r=Fe.initialSearchParameters,Fr=_objectWithoutProperties$1(Fe,_excluded$1);return _r.filter(function(jr){return!isIndexWidget(jr)}).reduce(function(jr,zr){return zr.getWidgetSearchParameters?zr.getWidgetSearchParameters(jr,Fr):jr},$r)}function resetPageFromWidgets(_r){var Fe=_r.filter(isIndexWidget);Fe.length!==0&&Fe.forEach(function($r){var Fr=$r.getHelper();privateHelperSetState(Fr,{state:Fr.state.resetPage(),isPageReset:!0}),resetPageFromWidgets($r.getWidgets())})}function resolveScopedResultsFromWidgets(_r){var Fe=_r.filter(isIndexWidget);return Fe.reduce(function($r,Fr){return $r.concat.apply($r,[{indexId:Fr.getIndexId(),results:Fr.getResults(),helper:Fr.getHelper()}].concat(_toConsumableArray$1(resolveScopedResultsFromWidgets(Fr.getWidgets()))))},[])}var index=function _r(Fe){if(Fe===void 0||Fe.indexName===void 0)throw new Error(withUsage$1("The `indexName` option is required."));var $r=Fe.indexName,Fr=Fe.indexId,jr=Fr===void 0?$r:Fr,zr=[],Vr={},Wr=null,Kr=null,Gr=null,Yr=null,Qr=null;return{$$type:"ais.index",$$widgetType:"ais.index",getIndexName:function(){return $r},getIndexId:function(){return jr},getHelper:function(){return Gr},getResults:function(){var Zr;return(Zr=Yr)!==null&&Zr!==void 0&&Zr.lastResults?(Yr.lastResults._state=Gr.state,Yr.lastResults):null},getPreviousState:function(){return Qr},getScopedResults:function(){var Zr=this.getParent(),tn=Zr?Zr.getWidgets():[this];return resolveScopedResultsFromWidgets(tn)},getParent:function(){return Kr},createURL:function(Zr){return Wr._createURL(_defineProperty$4({},jr,getLocalWidgetsUiState(zr,{searchParameters:Zr,helper:Gr})))},getWidgets:function(){return zr},addWidgets:function(Zr){var tn=this;if(!Array.isArray(Zr))throw new Error(withUsage$1("The `addWidgets` method expects an array of widgets."));if(Zr.some(function(en){return typeof en.init!="function"&&typeof en.render!="function"}))throw new Error(withUsage$1("The widget definition expects a `render` and/or an `init` method."));return zr=zr.concat(Zr),Wr&&Boolean(Zr.length)&&(privateHelperSetState(Gr,{state:getLocalWidgetsSearchParameters(zr,{uiState:Vr,initialSearchParameters:Gr.state}),_uiState:Vr}),Zr.forEach(function(en){if(en.getRenderState){var rn=en.getRenderState(Wr.renderState[tn.getIndexId()]||{},createInitArgs(Wr,tn,Wr._initialUiState));storeRenderState({renderState:rn,instantSearchInstance:Wr,parent:tn})}}),Zr.forEach(function(en){en.init&&en.init(createInitArgs(Wr,tn,Wr._initialUiState))}),Wr.scheduleSearch()),this},removeWidgets:function(Zr){var tn=this;if(!Array.isArray(Zr))throw new Error(withUsage$1("The `removeWidgets` method expects an array of widgets."));if(Zr.some(function(rn){return typeof rn.dispose!="function"}))throw new Error(withUsage$1("The widget definition expects a `dispose` method."));if(zr=zr.filter(function(rn){return Zr.indexOf(rn)===-1}),Wr&&Boolean(Zr.length)){var en=Zr.reduce(function(rn,nn){var on=nn.dispose({helper:Gr,state:rn,parent:tn});return on||rn},Gr.state);Vr=getLocalWidgetsUiState(zr,{searchParameters:en,helper:Gr}),Gr.setState(getLocalWidgetsSearchParameters(zr,{uiState:Vr,initialSearchParameters:en})),zr.length&&Wr.scheduleSearch()}return this},init:function(Zr){var tn=this,en,rn=Zr.instantSearchInstance,nn=Zr.parent,on=Zr.uiState;if(Gr===null){Wr=rn,Kr=nn,Vr=on[jr]||{};var un=rn.mainHelper,an=getLocalWidgetsSearchParameters(zr,{uiState:Vr,initialSearchParameters:new algoliasearchHelper_1.SearchParameters({index:$r})});Gr=algoliasearchHelper_1({},an.index,an),Gr.search=function(){return rn.onStateChange?(rn.onStateChange({uiState:rn.mainIndex.getWidgetUiState({}),setUiState:function(cn){return rn.setUiState(cn,!1)}}),un):un.search()},Gr.searchWithoutTriggeringOnStateChange=function(){return un.search()},Gr.searchForFacetValues=function(ln,cn,fn,pn){var hn=Gr.state.setQueryParameters(pn);return un.searchForFacetValues(ln,cn,fn,hn)},Yr=un.derive(function(){return mergeSearchParameters.apply(void 0,_toConsumableArray$1(resolveSearchParameters(tn)))});var sn=(en=rn._initialResults)===null||en===void 0?void 0:en[this.getIndexId()];if(sn){var dn=new algoliasearchHelper_1.SearchResults(new algoliasearchHelper_1.SearchParameters(sn.state),sn.results);Yr.lastResults=dn,Gr.lastResults=dn}Gr.on("change",function(ln){var cn=ln.isPageReset;cn&&resetPageFromWidgets(zr)}),Yr.on("search",function(){rn.scheduleStalledRender()}),Yr.on("result",function(ln){var cn=ln.results;rn.scheduleRender(),Gr.lastResults=cn,Qr=cn==null?void 0:cn._state}),zr.forEach(function(ln){if(ln.getRenderState){var cn=ln.getRenderState(rn.renderState[tn.getIndexId()]||{},createInitArgs(rn,tn,on));storeRenderState({renderState:cn,instantSearchInstance:rn,parent:tn})}}),zr.forEach(function(ln){ln.init&&ln.init(createInitArgs(rn,tn,on))}),Gr.on("change",function(ln){var cn=ln.state,fn=ln._uiState;Vr=getLocalWidgetsUiState(zr,{searchParameters:cn,helper:Gr},fn||{}),rn.onStateChange||rn.onInternalStateChange()}),sn&&rn.scheduleRender()}},render:function(Zr){var tn=this,en=Zr.instantSearchInstance;en.status==="error"&&!en.mainHelper.hasPendingRequests()&&Qr&&Gr.setState(Qr);var rn=this.getResults()?zr:zr.filter(isIndexWidget);rn.forEach(function(nn){if(nn.getRenderState){var on=nn.getRenderState(en.renderState[tn.getIndexId()]||{},createRenderArgs(en,tn));storeRenderState({renderState:on,instantSearchInstance:en,parent:tn})}}),rn.forEach(function(nn){nn.render&&nn.render(createRenderArgs(en,tn))})},dispose:function(){var Zr=this,tn,en;zr.forEach(function(rn){rn.dispose&&rn.dispose({helper:Gr,state:Gr.state,parent:Zr})}),Wr=null,Kr=null,(tn=Gr)===null||tn===void 0||tn.removeAllListeners(),Gr=null,(en=Yr)===null||en===void 0||en.detach(),Yr=null},getWidgetUiState:function(Zr){return zr.filter(isIndexWidget).reduce(function(tn,en){return en.getWidgetUiState(tn)},_objectSpread$4(_objectSpread$4({},Zr),{},_defineProperty$4({},jr,_objectSpread$4(_objectSpread$4({},Zr[jr]),Vr))))},getWidgetState:function(Zr){return this.getWidgetUiState(Zr)},getWidgetSearchParameters:function(Zr,tn){var en=tn.uiState;return getLocalWidgetsSearchParameters(zr,{uiState:en,initialSearchParameters:Zr})},refreshUiState:function(){Vr=getLocalWidgetsUiState(zr,{searchParameters:this.getHelper().state,helper:this.getHelper()},Vr)},setIndexUiState:function(Zr){var tn=typeof Zr=="function"?Zr(Vr):Zr;Wr.setUiState(function(en){return _objectSpread$4(_objectSpread$4({},en),{},_defineProperty$4({},jr,tn))})}}},index$1=index;function storeRenderState(_r){var Fe=_r.renderState,$r=_r.instantSearchInstance,Fr=_r.parent,jr=Fr?Fr.getIndexId():$r.mainIndex.getIndexId();$r.renderState=_objectSpread$4(_objectSpread$4({},$r.renderState),{},_defineProperty$4({},jr,_objectSpread$4(_objectSpread$4({},$r.renderState[jr]),Fe)))}var Index={name:"AisIndex",mixins:[t$6({name:"Index"}),n$4({connector:function(){return index$1}},{$$widgetType:"ais.index"})],provide:function(){var _r=this;return{$_ais_getParentIndex:function(){return _r.widget}}},props:{indexName:{type:String,required:!0},indexId:{type:String,required:!1}},render:n$6(function(_r){return _r("div",{},s$7(this))}),computed:{widgetParams:function(){return{indexName:this.indexName,indexId:this.indexId}}}},NAMESPACE="ais",component=function _r(Fe){return function(){var $r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Fr=$r.descendantName,jr=$r.modifierName,zr=Fr?"-".concat(Fr):"",Vr=jr?"--".concat(jr):"";return"".concat(NAMESPACE,"-").concat(Fe).concat(zr).concat(Vr)}},suit$3=component("Highlight");function highlight(_r){var Fe=_r.attribute,$r=_r.highlightedTagName,Fr=$r===void 0?"mark":$r,jr=_r.hit,zr=_r.cssClasses,Vr=zr===void 0?{}:zr,Wr=getPropertyByPath(jr._highlightResult,Fe),Kr=Wr||{},Gr=Kr.value,Yr=Gr===void 0?"":Gr,Qr=suit$3({descendantName:"highlighted"})+(Vr.highlighted?" ".concat(Vr.highlighted):"");return Yr.replace(new RegExp(TAG_REPLACEMENT.highlightPreTag,"g"),"<".concat(Fr,' class="').concat(Qr,'">')).replace(new RegExp(TAG_REPLACEMENT.highlightPostTag,"g"),"</".concat(Fr,">"))}var suit$2=component("ReverseHighlight");function reverseHighlight(_r){var Fe=_r.attribute,$r=_r.highlightedTagName,Fr=$r===void 0?"mark":$r,jr=_r.hit,zr=_r.cssClasses,Vr=zr===void 0?{}:zr,Wr=getPropertyByPath(jr._highlightResult,Fe),Kr=Wr||{},Gr=Kr.value,Yr=Gr===void 0?"":Gr,Qr=suit$2({descendantName:"highlighted"})+(Vr.highlighted?" ".concat(Vr.highlighted):""),Jr=concatHighlightedParts(reverseHighlightedParts(getHighlightedParts(Yr)));return Jr.replace(new RegExp(TAG_REPLACEMENT.highlightPreTag,"g"),"<".concat(Fr,' class="').concat(Qr,'">')).replace(new RegExp(TAG_REPLACEMENT.highlightPostTag,"g"),"</".concat(Fr,">"))}var suit$1=component("Snippet");function snippet(_r){var Fe=_r.attribute,$r=_r.highlightedTagName,Fr=$r===void 0?"mark":$r,jr=_r.hit,zr=_r.cssClasses,Vr=zr===void 0?{}:zr,Wr=getPropertyByPath(jr._snippetResult,Fe),Kr=Wr||{},Gr=Kr.value,Yr=Gr===void 0?"":Gr,Qr=suit$1({descendantName:"highlighted"})+(Vr.highlighted?" ".concat(Vr.highlighted):"");return Yr.replace(new RegExp(TAG_REPLACEMENT.highlightPreTag,"g"),"<".concat(Fr,' class="').concat(Qr,'">')).replace(new RegExp(TAG_REPLACEMENT.highlightPostTag,"g"),"</".concat(Fr,">"))}var suit=component("ReverseSnippet");function reverseSnippet(_r){var Fe=_r.attribute,$r=_r.highlightedTagName,Fr=$r===void 0?"mark":$r,jr=_r.hit,zr=_r.cssClasses,Vr=zr===void 0?{}:zr,Wr=getPropertyByPath(jr._snippetResult,Fe),Kr=Wr||{},Gr=Kr.value,Yr=Gr===void 0?"":Gr,Qr=suit({descendantName:"highlighted"})+(Vr.highlighted?" ".concat(Vr.highlighted):""),Jr=concatHighlightedParts(reverseHighlightedParts(getHighlightedParts(Yr)));return Jr.replace(new RegExp(TAG_REPLACEMENT.highlightPreTag,"g"),"<".concat(Fr,' class="').concat(Qr,'">')).replace(new RegExp(TAG_REPLACEMENT.highlightPostTag,"g"),"</".concat(Fr,">"))}function _typeof$4(_r){return _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$4(_r)}var ANONYMOUS_TOKEN_COOKIE_KEY="_ALGOLIA";function getCookie(_r){if(!((typeof document=="undefined"?"undefined":_typeof$4(document))!=="object"||typeof document.cookie!="string"))for(var Fe="".concat(_r,"="),$r=document.cookie.split(";"),Fr=0;Fr<$r.length;Fr++){for(var jr=$r[Fr];jr.charAt(0)===" ";)jr=jr.substring(1);if(jr.indexOf(Fe)===0)return jr.substring(Fe.length,jr.length)}}function getInsightsAnonymousUserTokenInternal(){return getCookie(ANONYMOUS_TOKEN_COOKIE_KEY)}function getInsightsAnonymousUserToken(){return getInsightsAnonymousUserTokenInternal()}var _excluded=["page"];function _objectWithoutProperties(_r,Fe){if(_r==null)return{};var $r=_objectWithoutPropertiesLoose(_r,Fe),Fr,jr;if(Object.getOwnPropertySymbols){var zr=Object.getOwnPropertySymbols(_r);for(jr=0;jr<zr.length;jr++)Fr=zr[jr],!(Fe.indexOf(Fr)>=0)&&(!Object.prototype.propertyIsEnumerable.call(_r,Fr)||($r[Fr]=_r[Fr]))}return $r}function _objectWithoutPropertiesLoose(_r,Fe){if(_r==null)return{};var $r={},Fr=Object.keys(_r),jr,zr;for(zr=0;zr<Fr.length;zr++)jr=Fr[zr],!(Fe.indexOf(jr)>=0)&&($r[jr]=_r[jr]);return $r}function getStateWithoutPage(_r){var Fe=_r||{};Fe.page;var $r=_objectWithoutProperties(Fe,_excluded);return $r}var KEY="ais.infiniteHits";function createInfiniteHitsSessionStorageCache(){return{read:function(Fe){var $r=Fe.state,Fr=safelyRunOnBrowser(function(zr){var Vr=zr.window;return Vr.sessionStorage});if(!Fr)return null;try{var jr=JSON.parse(Fr.getItem(KEY));return jr&&isEqual(jr.state,getStateWithoutPage($r))?jr.hits:null}catch(zr){if(zr instanceof SyntaxError)try{Fr.removeItem(KEY)}catch{}return null}},write:function(Fe){var $r=Fe.state,Fr=Fe.hits,jr=safelyRunOnBrowser(function(zr){var Vr=zr.window;return Vr.sessionStorage});if(!!jr)try{jr.setItem(KEY,JSON.stringify({state:getStateWithoutPage($r),hits:Fr}))}catch{}}}}function _typeof$3(_r){return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$3(_r)}function ownKeys$3(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$3(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$3(Object($r),!0).forEach(function(Fr){_defineProperty$3(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$3(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$3(_r,Fe,$r){return Fe=_toPropertyKey$3(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$3(_r){var Fe=_toPrimitive$3(_r,"string");return _typeof$3(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$3(_r,Fe){if(_typeof$3(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$3(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}function _slicedToArray(_r,Fe){return _arrayWithHoles(_r)||_iterableToArrayLimit(_r,Fe)||_unsupportedIterableToArray(_r,Fe)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArrayLimit(_r,Fe){var $r=_r==null?null:typeof Symbol!="undefined"&&_r[Symbol.iterator]||_r["@@iterator"];if($r!=null){var Fr,jr,zr,Vr,Wr=[],Kr=!0,Gr=!1;try{if(zr=($r=$r.call(_r)).next,Fe===0){if(Object($r)!==$r)return;Kr=!1}else for(;!(Kr=(Fr=zr.call($r)).done)&&(Wr.push(Fr.value),Wr.length!==Fe);Kr=!0);}catch(Yr){Gr=!0,jr=Yr}finally{try{if(!Kr&&$r.return!=null&&(Vr=$r.return(),Object(Vr)!==Vr))return}finally{if(Gr)throw jr}}return Wr}}function _arrayWithHoles(_r){if(Array.isArray(_r))return _r}function _toConsumableArray(_r){return _arrayWithoutHoles(_r)||_iterableToArray(_r)||_unsupportedIterableToArray(_r)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(_r,Fe){if(!!_r){if(typeof _r=="string")return _arrayLikeToArray(_r,Fe);var $r=Object.prototype.toString.call(_r).slice(8,-1);if($r==="Object"&&_r.constructor&&($r=_r.constructor.name),$r==="Map"||$r==="Set")return Array.from(_r);if($r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($r))return _arrayLikeToArray(_r,Fe)}}function _iterableToArray(_r){if(typeof Symbol!="undefined"&&_r[Symbol.iterator]!=null||_r["@@iterator"]!=null)return Array.from(_r)}function _arrayWithoutHoles(_r){if(Array.isArray(_r))return _arrayLikeToArray(_r)}function _arrayLikeToArray(_r,Fe){(Fe==null||Fe>_r.length)&&(Fe=_r.length);for(var $r=0,Fr=new Array(Fe);$r<Fe;$r++)Fr[$r]=_r[$r];return Fr}var ALGOLIA_INSIGHTS_VERSION="2.6.0",ALGOLIA_INSIGHTS_SRC="https://cdn.jsdelivr.net/npm/search-insights@".concat(ALGOLIA_INSIGHTS_VERSION,"/dist/search-insights.min.js");function createInsightsMiddleware(){var _r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Fe=_r.insightsClient,$r=_r.insightsInitParams,Fr=_r.onEvent,jr=_r.$$internal,zr=jr===void 0?!1:jr,Vr=Fe;!Fe&&Fe!==null&&safelyRunOnBrowser(function(Kr){var Gr=Kr.window,Yr=Gr.AlgoliaAnalyticsObject||"aa";typeof Yr=="string"&&(Vr=Gr[Yr]),Vr||(Gr.AlgoliaAnalyticsObject=Yr,Gr[Yr]||(Gr[Yr]=function(){Gr[Yr].queue||(Gr[Yr].queue=[]);for(var Qr=arguments.length,Jr=new Array(Qr),Zr=0;Zr<Qr;Zr++)Jr[Zr]=arguments[Zr];Gr[Yr].queue.push(Jr)},Gr[Yr].version=ALGOLIA_INSIGHTS_VERSION,Gr[Yr].shouldAddScript=!0),Vr=Gr[Yr])});var Wr=Vr||noop$1;return function(Kr){var Gr=Kr.instantSearchInstance,Yr=Gr.middleware.filter(function(sn){return sn.instance.$$type==="ais.insights"&&sn.instance.$$internal}).map(function(sn){return sn.creator});Gr.unuse.apply(Gr,_toConsumableArray(Yr));var Qr=getAppIdAndApiKey(Gr.client),Jr=_slicedToArray(Qr,2),Zr=Jr[0],tn=Jr[1],en=void 0,rn=void 0;if(Array.isArray(Wr.queue)){var nn=find$5(Wr.queue.slice().reverse(),function(sn){var dn=_slicedToArray(sn,1),ln=dn[0];return ln==="setUserToken"})||[],on=_slicedToArray(nn,2);en=on[1]}Wr("getUserToken",null,function(sn,dn){rn=dn}),($r||!isModernInsightsClient(Wr))&&Wr("init",_objectSpread$3({appId:Zr,apiKey:tn,partial:!0},$r));var un,an;return{$$type:"ais.insights",$$internal:zr,onStateChange:function(){},subscribe:function(){if(!!Wr.shouldAddScript){var dn="[insights middleware]: could not load search-insights.js. Please load it manually following https://alg.li/insights-init";try{var ln=document.createElement("script");ln.async=!0,ln.src=ALGOLIA_INSIGHTS_SRC,ln.onerror=function(){Gr.emit("error",new Error(dn))},document.body.appendChild(ln),Wr.shouldAddScript=!1}catch{Wr.shouldAddScript=!1,Gr.emit("error",new Error(dn))}}},started:function(){Wr("addAlgoliaAgent","insights-middleware"),an=Gr.helper,un={userToken:an.state.userToken,clickAnalytics:an.state.clickAnalytics},an.overrideStateWithoutTriggeringChangeEvent(_objectSpread$3(_objectSpread$3({},an.state),{},{clickAnalytics:!0})),zr||Gr.scheduleSearch();var dn=function(pn){if(!!pn){var hn=an.state.userToken;an.overrideStateWithoutTriggeringChangeEvent(_objectSpread$3(_objectSpread$3({},an.state),{},{userToken:pn})),hn&&hn!==pn&&Gr.scheduleSearch()}},ln=getInsightsAnonymousUserTokenInternal();ln&&dn(ln),rn?(dn(rn),Wr("setUserToken",rn)):en&&(dn(en),Wr("setUserToken",en)),Wr("onUserTokenChange",dn,{immediate:!0});var cn=Wr;isModernInsightsClient(Wr)&&(cn=function(pn,hn){var mn={headers:{"X-Algolia-Application-Id":Zr,"X-Algolia-API-Key":tn}};return Wr(pn,hn,mn)}),Gr.sendEventToInsights=function(fn){Fr?Fr(fn,cn):fn.insightsMethod&&(fn.payload.algoliaSource=["instantsearch"],fn.eventModifier==="internal"&&fn.payload.algoliaSource.push("instantsearch-internal"),cn(fn.insightsMethod,fn.payload))}},unsubscribe:function(){Wr("onUserTokenChange",void 0),Gr.sendEventToInsights=noop$1,an&&un&&(an.overrideStateWithoutTriggeringChangeEvent(_objectSpread$3(_objectSpread$3({},an.state),un)),Gr.scheduleSearch())}}}}function isModernInsightsClient(_r){var Fe=(_r.version||"").split(".").map(Number),$r=_slicedToArray(Fe,2),Fr=$r[0],jr=$r[1],zr=Fr>=3,Vr=Fr===2&&jr>=6,Wr=Fr===1&&jr>=10;return zr||Vr||Wr}function extractWidgetPayload(_r,Fe,$r){var Fr=createInitArgs(Fe,Fe.mainIndex,Fe._initialUiState);_r.forEach(function(jr){var zr={};if(jr.getWidgetRenderState){var Vr=jr.getWidgetRenderState(Fr);Vr&&Vr.widgetParams&&(zr=Vr.widgetParams)}var Wr=Object.keys(zr).filter(function(Kr){return zr[Kr]!==void 0});$r.widgets.push({type:jr.$$type,widgetType:jr.$$widgetType,params:Wr}),jr.$$type==="ais.index"&&extractWidgetPayload(jr.getWidgets(),Fe,$r)})}function isMetadataEnabled(){return safelyRunOnBrowser(function(_r){var Fe,$r,Fr=_r.window;return((Fe=Fr.navigator)===null||Fe===void 0||($r=Fe.userAgent)===null||$r===void 0?void 0:$r.indexOf("Algolia Crawler"))>-1},{fallback:function(){return!1}})}function createMetadataMiddleware(){var _r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Fe=_r.$$internal,$r=Fe===void 0?!1:Fe;return function(Fr){var jr=Fr.instantSearchInstance,zr={widgets:[]},Vr=document.createElement("meta"),Wr=document.querySelector("head");return Vr.name="instantsearch:widgets",{$$type:"ais.metadata",$$internal:$r,onStateChange:function(){},subscribe:function(){setTimeout(function(){var Gr=jr.client;zr.ua=Gr.transporter&&Gr.transporter.userAgent?Gr.transporter.userAgent.value:Gr._ua,extractWidgetPayload(jr.mainIndex.getWidgets(),jr,zr),jr.middleware.forEach(function(Yr){return zr.widgets.push({middleware:!0,type:Yr.instance.$$type,internal:Yr.instance.$$internal})}),Vr.content=JSON.stringify(zr),Wr.appendChild(Vr)},0)},started:function(){},unsubscribe:function(){Vr.remove()}}}}function _typeof$2(_r){return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$2(_r)}function ownKeys$2(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$2(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$2(Object($r),!0).forEach(function(Fr){_defineProperty$2(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$2(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$2(_r,Fe,$r){return Fe=_toPropertyKey$2(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$2(_r){var Fe=_toPrimitive$2(_r,"string");return _typeof$2(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$2(_r,Fe){if(_typeof$2(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$2(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}var createRouterMiddleware=function _r(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$r=Fe.router,Fr=$r===void 0?historyRouter():$r,jr=Fe.stateMapping,zr=jr===void 0?simpleStateMapping():jr,Vr=Fe.$$internal,Wr=Vr===void 0?!1:Vr;return function(Kr){var Gr=Kr.instantSearchInstance;function Yr(Zr){var tn=Object.keys(Zr).reduce(function(rn,nn){return _objectSpread$2(_objectSpread$2({},rn),{},_defineProperty$2({},nn,Zr[nn]))},Gr.mainIndex.getWidgetUiState({})),en=zr.stateToRoute(tn);return Fr.createURL(en)}Gr._createURL=Yr;var Qr=void 0,Jr=Gr._initialUiState;return{$$type:"ais.router({router:".concat(Fr.$$type||"__unknown__",", stateMapping:").concat(zr.$$type||"__unknown__","})"),$$internal:Wr,onStateChange:function(tn){var en=tn.uiState,rn=zr.stateToRoute(en);(Qr===void 0||!isEqual(Qr,rn))&&(Fr.write(rn),Qr=rn)},subscribe:function(){Gr._initialUiState=_objectSpread$2(_objectSpread$2({},Jr),zr.routeToState(Fr.read())),Fr.onUpdate(function(tn){Gr.setUiState(zr.routeToState(tn))})},started:function(){var tn;(tn=Fr.start)===null||tn===void 0||tn.call(Fr)},unsubscribe:function(){Fr.dispose()}}}};function formatNumber$1(_r,Fe){return _r.toLocaleString(Fe)}function _typeof$1(_r){return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof$1(_r)}function ownKeys$1(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread$1(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys$1(Object($r),!0).forEach(function(Fr){_defineProperty$1(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys$1(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _defineProperty$1(_r,Fe,$r){return Fe=_toPropertyKey$1(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey$1(_r){var Fe=_toPrimitive$1(_r,"string");return _typeof$1(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive$1(_r,Fe){if(_typeof$1(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof$1(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}function hoganHelpers(_r){var Fe=_r.numberLocale;return{formatNumber:function(Fr,jr){return formatNumber$1(Number(jr(Fr)),Fe)},highlight:function(Fr,jr){try{var zr=JSON.parse(Fr);return jr(highlight(_objectSpread$1(_objectSpread$1({},zr),{},{hit:this})))}catch{throw new Error(`
The highlight helper expects a JSON object of the format:
{ "attribute": "name", "highlightedTagName": "mark" }`)}},reverseHighlight:function(Fr,jr){try{var zr=JSON.parse(Fr);return jr(reverseHighlight(_objectSpread$1(_objectSpread$1({},zr),{},{hit:this})))}catch{throw new Error(`
  The reverseHighlight helper expects a JSON object of the format:
  { "attribute": "name", "highlightedTagName": "mark" }`)}},snippet:function(Fr,jr){try{var zr=JSON.parse(Fr);return jr(snippet(_objectSpread$1(_objectSpread$1({},zr),{},{hit:this})))}catch{throw new Error(`
The snippet helper expects a JSON object of the format:
{ "attribute": "name", "highlightedTagName": "mark" }`)}},reverseSnippet:function(Fr,jr){try{var zr=JSON.parse(Fr);return jr(reverseSnippet(_objectSpread$1(_objectSpread$1({},zr),{},{hit:this})))}catch{throw new Error(`
  The reverseSnippet helper expects a JSON object of the format:
  { "attribute": "name", "highlightedTagName": "mark" }`)}},insights:function(Fr,jr){try{var zr=JSON.parse(Fr),Vr=zr.method,Wr=zr.payload;return jr(insights(Vr,_objectSpread$1({objectIDs:[this.objectID]},Wr)))}catch{throw new Error(`
The insights helper expects a JSON object of the format:
{ "method": "method-name", "payload": { "eventName": "name of the event" } }`)}}}}var version$1="4.56.1";function _typeof(_r){return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},_typeof(_r)}function ownKeys(_r,Fe){var $r=Object.keys(_r);if(Object.getOwnPropertySymbols){var Fr=Object.getOwnPropertySymbols(_r);Fe&&(Fr=Fr.filter(function(jr){return Object.getOwnPropertyDescriptor(_r,jr).enumerable})),$r.push.apply($r,Fr)}return $r}function _objectSpread(_r){for(var Fe=1;Fe<arguments.length;Fe++){var $r=arguments[Fe]!=null?arguments[Fe]:{};Fe%2?ownKeys(Object($r),!0).forEach(function(Fr){_defineProperty(_r,Fr,$r[Fr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors($r)):ownKeys(Object($r)).forEach(function(Fr){Object.defineProperty(_r,Fr,Object.getOwnPropertyDescriptor($r,Fr))})}return _r}function _classCallCheck(_r,Fe){if(!(_r instanceof Fe))throw new TypeError("Cannot call a class as a function")}function _defineProperties(_r,Fe){for(var $r=0;$r<Fe.length;$r++){var Fr=Fe[$r];Fr.enumerable=Fr.enumerable||!1,Fr.configurable=!0,"value"in Fr&&(Fr.writable=!0),Object.defineProperty(_r,_toPropertyKey(Fr.key),Fr)}}function _createClass(_r,Fe,$r){return Fe&&_defineProperties(_r.prototype,Fe),$r&&_defineProperties(_r,$r),Object.defineProperty(_r,"prototype",{writable:!1}),_r}function _inherits(_r,Fe){if(typeof Fe!="function"&&Fe!==null)throw new TypeError("Super expression must either be null or a function");_r.prototype=Object.create(Fe&&Fe.prototype,{constructor:{value:_r,writable:!0,configurable:!0}}),Object.defineProperty(_r,"prototype",{writable:!1}),Fe&&_setPrototypeOf(_r,Fe)}function _setPrototypeOf(_r,Fe){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Fr,jr){return Fr.__proto__=jr,Fr},_setPrototypeOf(_r,Fe)}function _createSuper(_r){var Fe=_isNativeReflectConstruct();return function(){var Fr=_getPrototypeOf(_r),jr;if(Fe){var zr=_getPrototypeOf(this).constructor;jr=Reflect.construct(Fr,arguments,zr)}else jr=Fr.apply(this,arguments);return _possibleConstructorReturn(this,jr)}}function _possibleConstructorReturn(_r,Fe){if(Fe&&(_typeof(Fe)==="object"||typeof Fe=="function"))return Fe;if(Fe!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(_r)}function _assertThisInitialized(_r){if(_r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _r}function _isNativeReflectConstruct(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf(_r){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function($r){return $r.__proto__||Object.getPrototypeOf($r)},_getPrototypeOf(_r)}function _defineProperty(_r,Fe,$r){return Fe=_toPropertyKey(Fe),Fe in _r?Object.defineProperty(_r,Fe,{value:$r,enumerable:!0,configurable:!0,writable:!0}):_r[Fe]=$r,_r}function _toPropertyKey(_r){var Fe=_toPrimitive(_r,"string");return _typeof(Fe)==="symbol"?Fe:String(Fe)}function _toPrimitive(_r,Fe){if(_typeof(_r)!=="object"||_r===null)return _r;var $r=_r[Symbol.toPrimitive];if($r!==void 0){var Fr=$r.call(_r,Fe||"default");if(_typeof(Fr)!=="object")return Fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fe==="string"?String:Number)(_r)}var withUsage=createDocumentationMessageGenerator({name:"instantsearch"});function defaultCreateURL(){return"#"}var InstantSearch$1=function(_r){_inherits($r,_r);var Fe=_createSuper($r);function $r(Fr){var jr;_classCallCheck(this,$r),jr=Fe.call(this),_defineProperty(_assertThisInitialized(jr),"client",void 0),_defineProperty(_assertThisInitialized(jr),"indexName",void 0),_defineProperty(_assertThisInitialized(jr),"insightsClient",void 0),_defineProperty(_assertThisInitialized(jr),"onStateChange",null),_defineProperty(_assertThisInitialized(jr),"helper",void 0),_defineProperty(_assertThisInitialized(jr),"mainHelper",void 0),_defineProperty(_assertThisInitialized(jr),"mainIndex",void 0),_defineProperty(_assertThisInitialized(jr),"started",void 0),_defineProperty(_assertThisInitialized(jr),"templatesConfig",void 0),_defineProperty(_assertThisInitialized(jr),"renderState",{}),_defineProperty(_assertThisInitialized(jr),"_stalledSearchDelay",void 0),_defineProperty(_assertThisInitialized(jr),"_searchStalledTimer",void 0),_defineProperty(_assertThisInitialized(jr),"_initialUiState",void 0),_defineProperty(_assertThisInitialized(jr),"_initialResults",void 0),_defineProperty(_assertThisInitialized(jr),"_createURL",void 0),_defineProperty(_assertThisInitialized(jr),"_searchFunction",void 0),_defineProperty(_assertThisInitialized(jr),"_mainHelperSearch",void 0),_defineProperty(_assertThisInitialized(jr),"middleware",[]),_defineProperty(_assertThisInitialized(jr),"sendEventToInsights",void 0),_defineProperty(_assertThisInitialized(jr),"status","idle"),_defineProperty(_assertThisInitialized(jr),"error",void 0),_defineProperty(_assertThisInitialized(jr),"scheduleSearch",defer(function(){jr.started&&jr.mainHelper.search()})),_defineProperty(_assertThisInitialized(jr),"scheduleRender",defer(function(){var fn,pn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;(fn=jr.mainHelper)!==null&&fn!==void 0&&fn.hasPendingRequests()||(clearTimeout(jr._searchStalledTimer),jr._searchStalledTimer=null,pn&&(jr.status="idle",jr.error=void 0)),jr.mainIndex.render({instantSearchInstance:_assertThisInitialized(jr)}),jr.emit("render")})),_defineProperty(_assertThisInitialized(jr),"onInternalStateChange",defer(function(){var fn=jr.mainIndex.getWidgetUiState({});jr.middleware.forEach(function(pn){var hn=pn.instance;hn.onStateChange({uiState:fn})})})),jr.setMaxListeners(100);var zr=Fr.indexName,Vr=zr===void 0?"":zr,Wr=Fr.numberLocale,Kr=Fr.initialUiState,Gr=Kr===void 0?{}:Kr,Yr=Fr.routing,Qr=Yr===void 0?null:Yr,Jr=Fr.insights,Zr=Jr===void 0?!1:Jr,tn=Fr.searchFunction,en=Fr.stalledSearchDelay,rn=en===void 0?200:en,nn=Fr.searchClient,on=nn===void 0?null:nn,un=Fr.insightsClient,an=un===void 0?null:un,sn=Fr.onStateChange,dn=sn===void 0?null:sn;if(on===null)throw new Error(withUsage("The `searchClient` option is required."));if(typeof on.search!="function")throw new Error("The `searchClient` must implement a `search` method.\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/going-further/backend-search/in-depth/backend-instantsearch/js/");if(typeof on.addAlgoliaAgent=="function"&&on.addAlgoliaAgent("instantsearch.js (".concat(version$1,")")),an&&typeof an!="function")throw new Error(withUsage("The `insightsClient` option should be a function."));if(jr.client=on,jr.insightsClient=an,jr.indexName=Vr,jr.helper=null,jr.mainHelper=null,jr.mainIndex=index$1({indexName:Vr}),jr.onStateChange=dn,jr.started=!1,jr.templatesConfig={helpers:hoganHelpers({numberLocale:Wr}),compileOptions:{}},jr._stalledSearchDelay=rn,jr._searchStalledTimer=null,jr._createURL=defaultCreateURL,jr._initialUiState=Gr,jr._initialResults=null,tn&&(jr._searchFunction=tn),jr.sendEventToInsights=noop$1,Qr){var ln=typeof Qr=="boolean"?{}:Qr;ln.$$internal=!0,jr.use(createRouterMiddleware(ln))}if(Zr){var cn=typeof Zr=="boolean"?{}:Zr;cn.$$internal=!0,jr.use(createInsightsMiddleware(cn))}return isMetadataEnabled()&&jr.use(createMetadataMiddleware({$$internal:!0})),jr}return _createClass($r,[{key:"_isSearchStalled",get:function(){return this.status==="stalled"}},{key:"use",value:function(){for(var jr=this,zr=arguments.length,Vr=new Array(zr),Wr=0;Wr<zr;Wr++)Vr[Wr]=arguments[Wr];var Kr=Vr.map(function(Gr){var Yr=_objectSpread({$$type:"__unknown__",$$internal:!1,subscribe:noop$1,started:noop$1,unsubscribe:noop$1,onStateChange:noop$1},Gr({instantSearchInstance:jr}));return jr.middleware.push({creator:Gr,instance:Yr}),Yr});return this.started&&Kr.forEach(function(Gr){Gr.subscribe(),Gr.started()}),this}},{key:"unuse",value:function(){for(var jr=arguments.length,zr=new Array(jr),Vr=0;Vr<jr;Vr++)zr[Vr]=arguments[Vr];return this.middleware.filter(function(Wr){return zr.includes(Wr.creator)}).forEach(function(Wr){return Wr.instance.unsubscribe()}),this.middleware=this.middleware.filter(function(Wr){return!zr.includes(Wr.creator)}),this}},{key:"EXPERIMENTAL_use",value:function(){return this.use.apply(this,arguments)}},{key:"addWidget",value:function(jr){return this.addWidgets([jr])}},{key:"addWidgets",value:function(jr){if(!Array.isArray(jr))throw new Error(withUsage("The `addWidgets` method expects an array of widgets. Please use `addWidget`."));if(jr.some(function(zr){return typeof zr.init!="function"&&typeof zr.render!="function"}))throw new Error(withUsage("The widget definition expects a `render` and/or an `init` method."));return this.mainIndex.addWidgets(jr),this}},{key:"removeWidget",value:function(jr){return this.removeWidgets([jr])}},{key:"removeWidgets",value:function(jr){if(!Array.isArray(jr))throw new Error(withUsage("The `removeWidgets` method expects an array of widgets. Please use `removeWidget`."));if(jr.some(function(zr){return typeof zr.dispose!="function"}))throw new Error(withUsage("The widget definition expects a `dispose` method."));return this.mainIndex.removeWidgets(jr),this}},{key:"start",value:function(){var jr=this;if(this.started)throw new Error(withUsage("The `start` method has already been called once."));var zr=this.mainHelper||algoliasearchHelper_1(this.client,this.indexName);if(zr.search=function(){return jr.status="loading",jr.scheduleRender(!1),zr.searchOnlyWithDerivedHelpers()},this._searchFunction){var Vr={search:function(){return new Promise(noop$1)}};this._mainHelperSearch=zr.search.bind(zr),zr.search=function(){var Kr=jr.mainIndex.getHelper(),Gr=algoliasearchHelper_1(Vr,Kr.state.index,Kr.state);return Gr.once("search",function(Yr){var Qr=Yr.state;Kr.overrideStateWithoutTriggeringChangeEvent(Qr),jr._mainHelperSearch()}),Gr.on("change",function(Yr){var Qr=Yr.state;Kr.setState(Qr)}),jr._searchFunction(Gr),zr}}if(zr.on("error",function(Kr){var Gr=Kr.error;if(!(Gr instanceof Error)){var Yr=Gr;Gr=Object.keys(Yr).reduce(function(Qr,Jr){return Qr[Jr]=Yr[Jr],Qr},new Error(Yr.message))}Gr.error=Gr,jr.error=Gr,jr.status="error",jr.scheduleRender(!1),jr.emit("error",Gr)}),this.mainHelper=zr,this.middleware.forEach(function(Kr){var Gr=Kr.instance;Gr.subscribe()}),this.mainIndex.init({instantSearchInstance:this,parent:null,uiState:this._initialUiState}),this._initialResults){var Wr=this.scheduleSearch;this.scheduleSearch=defer(noop$1),defer(function(){jr.scheduleSearch=Wr})()}else this.mainIndex.getWidgets().length>0&&this.scheduleSearch();this.helper=this.mainIndex.getHelper(),this.started=!0,this.middleware.forEach(function(Kr){var Gr=Kr.instance;Gr.started()})}},{key:"dispose",value:function(){var jr;this.scheduleSearch.cancel(),this.scheduleRender.cancel(),clearTimeout(this._searchStalledTimer),this.removeWidgets(this.mainIndex.getWidgets()),this.mainIndex.dispose(),this.started=!1,this.removeAllListeners(),(jr=this.mainHelper)===null||jr===void 0||jr.removeAllListeners(),this.mainHelper=null,this.helper=null,this.middleware.forEach(function(zr){var Vr=zr.instance;Vr.unsubscribe()})}},{key:"scheduleStalledRender",value:function(){var jr=this;this._searchStalledTimer||(this._searchStalledTimer=setTimeout(function(){jr.status="stalled",jr.scheduleRender()},this._stalledSearchDelay))}},{key:"setUiState",value:function(jr){var zr=this,Vr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!this.mainHelper)throw new Error(withUsage("The `start` method needs to be called before `setUiState`."));this.mainIndex.refreshUiState();var Wr=typeof jr=="function"?jr(this.mainIndex.getWidgetUiState({})):jr;this.onStateChange&&Vr?this.onStateChange({uiState:Wr,setUiState:function(Gr){setIndexHelperState(typeof Gr=="function"?Gr(Wr):Gr,zr.mainIndex),zr.scheduleSearch(),zr.onInternalStateChange()}}):(setIndexHelperState(Wr,this.mainIndex),this.scheduleSearch(),this.onInternalStateChange())}},{key:"getUiState",value:function(){return this.started&&this.mainIndex.refreshUiState(),this.mainIndex.getWidgetUiState({})}},{key:"createURL",value:function(){var jr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.started)throw new Error(withUsage("The `start` method needs to be called before `createURL`."));return this._createURL(jr)}},{key:"refresh",value:function(){if(!this.mainHelper)throw new Error(withUsage("The `start` method needs to be called before `refresh`."));this.mainHelper.clearCache().search()}}]),$r}(events),InstantSearch$2=InstantSearch$1,instantsearch=function _r(Fe){return new InstantSearch$2(Fe)};instantsearch.version=version$1;instantsearch.createInfiniteHitsSessionStorageCache=deprecate(createInfiniteHitsSessionStorageCache);instantsearch.highlight=deprecate(highlight);instantsearch.reverseHighlight=deprecate(reverseHighlight);instantsearch.snippet=deprecate(snippet);instantsearch.reverseSnippet=deprecate(reverseSnippet);instantsearch.insights=insights;instantsearch.getInsightsAnonymousUserToken=getInsightsAnonymousUserToken;Object.defineProperty(instantsearch,"widgets",{get:function _r(){throw new ReferenceError(`"instantsearch.widgets" are not available from the ES build.

To import the widgets:

import { searchBox } from 'instantsearch.js/es/widgets'`)}});Object.defineProperty(instantsearch,"connectors",{get:function _r(){throw new ReferenceError(`"instantsearch.connectors" are not available from the ES build.

To import the connectors:

import { connectSearchBox } from 'instantsearch.js/es/connectors'`)}});var r$6=instantsearch,r$5="4.10.1",s$2=function(_r){var Fe;return e$B(((Fe={mixins:[t$6({name:"InstantSearch"})],provide:function(){return{$_ais_instantSearchInstance:this.instantSearchInstance}},watch:{searchClient:function($r){a$9(!1),this.instantSearchInstance.helper.setClient($r).search()},indexName:function($r){this.instantSearchInstance.helper.setIndex($r||"").search()},stalledSearchDelay:function($r){this.instantSearchInstance._stalledSearchDelay=$r},routing:function(){throw new Error(`routing configuration can not be changed dynamically at this point.

Please open a new issue: https://github.com/algolia/instantsearch.js/discussions/new?category=ideas&labels=triage%2cLibrary%3A+Vue+InstantSearch&title=Feature%20request%3A%20dynamic%20props`)},onStateChange:function(){throw new Error(`onStateChange configuration can not be changed dynamically at this point.

Please open a new issue: https://github.com/algolia/instantsearch.js/discussions/new?category=ideas&labels=triage%2cLibrary%3A+Vue+InstantSearch&title=Feature%20request%3A%20dynamic%20props`)},searchFunction:function($r){this.instantSearchInstance._searchFunction=$r},middlewares:{immediate:!0,handler:function($r,Fr){var jr=this;(Fr||[]).filter(function(zr){return($r||[]).indexOf(zr)===-1}).forEach(function(zr){jr.instantSearchInstance.unuse(zr)}),($r||[]).filter(function(zr){return(Fr||[]).indexOf(zr)===-1}).forEach(function(zr){jr.instantSearchInstance.use(zr)})}}},created:function(){var $r=this.instantSearchInstance.client;typeof $r.addAlgoliaAgent=="function"&&($r.addAlgoliaAgent("Vue ("+version$4+")"),$r.addAlgoliaAgent("Vue InstantSearch ("+r$5+")"))},mounted:function(){var $r=this;this.$nextTick(function(){$r.instantSearchInstance.started||$r.instantSearchInstance.start()})}}).beforeUnmount=function(){this.instantSearchInstance.started&&this.instantSearchInstance.dispose(),this.instantSearchInstance.__initialSearchResults=void 0},Fe),_r)},r$4=`Vue InstantSearch: You used the prop api-key or app-id.
These have been replaced by search-client.

See more info here: https://www.algolia.com/doc/api-reference/widgets/instantsearch/vue/#widget-param-search-client`,InstantSearch=s$2({name:"AisInstantSearch",props:{searchClient:{type:Object,required:!0},insightsClient:{type:Function,default:void 0},indexName:{type:String,required:!0},routing:{default:void 0,validator:function(_r){return!(typeof _r=="boolean"||!_r.router&&!_r.stateMapping)||(a$9("The `routing` option expects an object with `router` and/or `stateMapping`.\n\nSee https://www.algolia.com/doc/api-reference/widgets/instantsearch/vue/#widget-param-routing"),!1)}},insights:{default:void 0,validator:function(_r){return typeof _r=="boolean"||typeof _r=="object"}},stalledSearchDelay:{type:Number,default:void 0},searchFunction:{type:Function,default:void 0},onStateChange:{type:Function,default:void 0},initialUiState:{type:Object,default:void 0},apiKey:{type:String,default:void 0,validator:function(_r){return _r&&a$9(r$4),!1}},appId:{type:String,default:void 0,validator:function(_r){return _r&&a$9(r$4),!1}},middlewares:{type:Array,default:null}},data:function(){return{instantSearchInstance:r$6({searchClient:this.searchClient,insightsClient:this.insightsClient,insights:this.insights,indexName:this.indexName,routing:this.routing,stalledSearchDelay:this.stalledSearchDelay,searchFunction:this.searchFunction,onStateChange:this.onStateChange,initialUiState:this.initialUiState})}},render:n$6(function(_r){var Fe;return _r("div",{class:(Fe={},Fe[this.suit()]=!0,Fe[this.suit("","ssr")]=!1,Fe)},s$7(this))})}),InstantSearchSsr=s$2({name:"AisInstantSearchSsr",inject:{$_ais_ssrInstantSearchInstance:{default:function(){throw new Error("`createServerRootMixin` is required when using SSR.")}}},data:function(){return{instantSearchInstance:this.$_ais_ssrInstantSearchInstance}},render:n$6(function(_r){var Fe;return _r("div",{class:(Fe={},Fe[this.suit()]=!0,Fe[this.suit("","ssr")]=!0,Fe)},s$7(this))})}),e$k={name:"AisInfiniteHits",mixins:[n$4({connector:s$6},{$$widgetType:"ais.infiniteHits"}),t$6({name:"InfiniteHits"})],props:{showPrevious:{type:Boolean,default:!1},escapeHTML:{type:Boolean,default:!0},transformItems:{type:Function,default:void 0},cache:{type:Object,default:void 0}},computed:{widgetParams:function(){return{showPrevious:this.showPrevious,escapeHTML:this.escapeHTML,transformItems:this.transformItems,cache:this.cache}},items:function(){return this.state.hits}},methods:{refinePrevious:function(){this.state.showPrevious()},refineNext:function(){this.state.showMore()}}};function l$7(_r,Fe,$r,Fr,jr,zr){return _r.state?(openBlock(),createBlock("div",{key:0,class:_r.suit()},[$r.showPrevious?renderSlot(_r.$slots,"loadPrevious",{key:0,refinePrevious:zr.refinePrevious,page:_r.state.results.page,isFirstPage:_r.state.isFirstPage},function(){return[createVNode("button",{class:[_r.suit("loadPrevious"),_r.state.isFirstPage&&_r.suit("loadPrevious","disabled")],disabled:_r.state.isFirstPage,onClick:Fe[1]||(Fe[1]=function(Vr){return zr.refinePrevious()})}," Show previous results ",10,["disabled"])]}):createCommentVNode("",!0),renderSlot(_r.$slots,"default",{items:zr.items,results:_r.state.results,isLastPage:_r.state.isLastPage,refinePrevious:zr.refinePrevious,refineNext:zr.refineNext,refine:zr.refineNext,insights:_r.state.insights,sendEvent:_r.state.sendEvent},function(){return[createVNode("ol",{class:_r.suit("list")},[(openBlock(!0),createBlock(Fragment,null,renderList(zr.items,function(Vr,Wr){return openBlock(),createBlock("li",{class:_r.suit("item"),key:Vr.objectID,onClick:function(Kr){return _r.state.sendEvent("click:internal",Vr,"Hit Clicked")},onAuxclick:function(Kr){return _r.state.sendEvent("click:internal",Vr,"Hit Clicked")}},[renderSlot(_r.$slots,"item",{item:Vr,index:Wr,insights:_r.state.insights,sendEvent:_r.state.sendEvent},function(){return[createTextVNode(" objectID: "+toDisplayString(Vr.objectID)+", index: "+toDisplayString(Wr),1)]})],42,["onClick","onAuxclick"])}),128))],2),renderSlot(_r.$slots,"loadMore",{refineNext:zr.refineNext,refine:zr.refineNext,page:_r.state.results.page,isLastPage:_r.state.isLastPage},function(){return[createVNode("button",{class:[_r.suit("loadMore"),_r.state.isLastPage&&_r.suit("loadMore","disabled")],disabled:_r.state.isLastPage,onClick:Fe[2]||(Fe[2]=function(Vr){return zr.refineNext()})}," Show more results ",10,["disabled"])]})]})],2)):createCommentVNode("",!0)}e$k.render=l$7;var e$j={name:"AisMenu",mixins:[t$6({name:"Menu"}),n$4({connector:i$8},{$$widgetType:"ais.menu"}),r$b()],props:{attribute:{type:String,required:!0},limit:{type:Number,default:void 0},showMoreLimit:{type:Number,default:void 0},showMore:{type:Boolean,default:!1},sortBy:{type:[Array,Function],default:void 0},transformItems:{type:Function,default:void 0}},computed:{widgetParams:function(){return{attribute:this.attribute,limit:this.limit,showMore:this.showMore,showMoreLimit:this.showMoreLimit,sortBy:this.sortBy,transformItems:this.transformItems}},showShowMoreButton:function(){return this.state.canRefine&&this.showMore}}};function c$4(_r,Fe,$r,Fr,jr,zr){return _r.state?(openBlock(),createBlock("div",{key:0,class:[_r.suit(),!_r.state.canRefine&&_r.suit("","noRefinement")]},[renderSlot(_r.$slots,"default",{items:_r.state.items,canRefine:_r.state.canRefine,canToggleShowMore:_r.state.canToggleShowMore,isShowingMore:_r.state.isShowingMore,refine:_r.state.refine,createURL:_r.state.createURL,toggleShowMore:_r.state.toggleShowMore,sendEvent:_r.state.sendEvent},function(){return[createVNode("ul",{class:_r.suit("list")},[(openBlock(!0),createBlock(Fragment,null,renderList(_r.state.items,function(Vr){return openBlock(),createBlock("li",{key:Vr.value,class:[_r.suit("item"),Vr.isRefined&&_r.suit("item","selected")]},[createVNode("a",{href:_r.state.createURL(Vr.value),class:_r.suit("link"),onClick:withModifiers(function(Wr){return _r.state.refine(Vr.value)},["prevent"])},[createVNode("span",{class:_r.suit("label")},toDisplayString(Vr.label),3),createVNode("span",{class:_r.suit("count")},toDisplayString(Vr.count),3)],10,["href","onClick"])],2)}),128))],2),zr.showShowMoreButton?(openBlock(),createBlock("button",{key:0,class:[_r.suit("showMore"),!_r.state.canToggleShowMore&&_r.suit("showMore","disabled")],disabled:!_r.state.canToggleShowMore,onClick:Fe[1]||(Fe[1]=withModifiers(function(Vr){return _r.state.toggleShowMore()},["prevent"]))},[renderSlot(_r.$slots,"showMoreLabel",{isShowingMore:_r.state.isShowingMore},function(){return[createTextVNode(toDisplayString(_r.state.isShowingMore?"Show less":"Show more"),1)]})],10,["disabled"])):createCommentVNode("",!0)]})],2)):createCommentVNode("",!0)}e$j.render=c$4;var e$i={name:"AisMenuSelect",mixins:[t$6({name:"MenuSelect"}),n$4({connector:i$8},{$$widgetType:"ais.menuSelect"}),r$b()],props:{attribute:{type:String,required:!0},limit:{type:Number,default:10},sortBy:{type:[Array,Function],default:void 0},transformItems:{type:Function,default:function(_r){return _r}}},computed:{widgetParams:function(){return{attribute:this.attribute,limit:this.limit,sortBy:this.sortBy,transformItems:this.transformItems}}},methods:{refine:function(_r){this.state.refine(_r)}}},r$3=createTextVNode(" See all ");function c$3(_r,Fe,$r,Fr,jr,zr){return _r.state?(openBlock(),createBlock("div",{key:0,class:[_r.suit(),!_r.state.canRefine&&_r.suit("","noRefinement")]},[renderSlot(_r.$slots,"default",{items:_r.state.items,canRefine:_r.state.canRefine,refine:zr.refine,createURL:_r.state.createURL,sendEvent:_r.state.sendEvent},function(){return[createVNode("select",{class:_r.suit("select"),onChange:Fe[1]||(Fe[1]=function(Vr){return zr.refine(Vr.currentTarget.value)})},[createVNode("option",{class:_r.suit("option"),value:""},[renderSlot(_r.$slots,"defaultOption",{},function(){return[r$3]})],2),(openBlock(!0),createBlock(Fragment,null,renderList(_r.state.items,function(Vr){return openBlock(),createBlock("option",{key:Vr.value,class:_r.suit("option"),value:Vr.value,selected:Vr.isRefined},[renderSlot(_r.$slots,"item",{item:Vr},function(){return[createTextVNode(toDisplayString(Vr.label)+" ("+toDisplayString(Vr.count)+") ",1)]})],10,["value","selected"])}),128))],34)]})],2)):createCommentVNode("",!0)}e$i.render=c$3;var e$h={name:"AisNumericMenu",mixins:[n$4({connector:i$7},{$$widgetType:"ais.numericMenu"}),t$6({name:"NumericMenu"}),r$b()],props:{attribute:{type:String,required:!0},items:{type:Array,required:!0},transformItems:{type:Function,default:void 0}},computed:{widgetParams:function(){return{attribute:this.attribute,transformItems:this.transformItems,items:this.items}}}};function c$2(_r,Fe,$r,Fr,jr,zr){return _r.state?(openBlock(),createBlock("div",{key:0,class:[_r.suit(),!_r.state.canRefine&&_r.suit("","noRefinement")]},[renderSlot(_r.$slots,"default",{items:_r.state.items,canRefine:_r.state.canRefine,refine:_r.state.refine,createURL:_r.state.createURL,sendEvent:_r.state.sendEvent},function(){return[createVNode("ul",{class:[_r.suit("list")]},[(openBlock(!0),createBlock(Fragment,null,renderList(_r.state.items,function(Vr){return openBlock(),createBlock("li",{key:Vr.label,class:[_r.suit("item"),Vr.isRefined&&_r.suit("item","selected")]},[createVNode("label",{class:_r.suit("label")},[createVNode("input",{type:"radio",class:_r.suit("radio"),name:$r.attribute,value:Vr.value,checked:Vr.isRefined,onChange:Fe[1]||(Fe[1]=function(Wr){return _r.state.refine(Wr.target.value)})},null,42,["name","value","checked"]),createVNode("span",{class:_r.suit("labelText")},toDisplayString(Vr.label),3)],2)],2)}),128))],2)]})],2)):createCommentVNode("",!0)}e$h.render=c$2;var e$g={name:"AisPagination",mixins:[t$6({name:"Pagination"}),n$4({connector:a$7},{$$widgetType:"ais.pagination"}),r$b()],props:{padding:{type:Number,default:void 0,validator:function(_r){return _r>0}},totalPages:{type:Number,default:void 0,validator:function(_r){return _r>0}},showFirst:{type:Boolean,default:!0},showLast:{type:Boolean,default:!0},showNext:{type:Boolean,default:!0},showPrevious:{type:Boolean,default:!0}},computed:{widgetParams:function(){return{padding:this.padding,totalPages:this.totalPages}}},emits:["page-change"],methods:{refine:function(_r){var Fe=Math.min(Math.max(_r,0),this.state.nbPages-1);this.state.refine(Fe),this.$emit("page-change",Fe)}}};function l$6(_r,Fe,$r,Fr,jr,zr){return _r.state?(openBlock(),createBlock("div",{key:0,class:_r.suit()},[renderSlot(_r.$slots,"default",{refine:zr.refine,createURL:_r.state.createURL,currentRefinement:_r.state.currentRefinement,nbHits:_r.state.nbHits,nbPages:_r.state.nbPages,pages:_r.state.pages,isFirstPage:_r.state.isFirstPage,isLastPage:_r.state.isLastPage},function(){var Vr,Wr,Kr,Gr;return[createVNode("ul",{class:_r.suit("list")},[$r.showFirst?(openBlock(),createBlock("li",{key:0,class:(Vr={},Vr[_r.suit("item")]=!0,Vr[_r.suit("item","firstPage")]=!0,Vr[_r.suit("item","disabled")]=_r.state.isFirstPage,Vr)},[renderSlot(_r.$slots,"first",{createURL:function(){return _r.state.createURL(0)},isFirstPage:_r.state.isFirstPage,refine:function(){return zr.refine(0)}},function(){return[_r.state.isFirstPage?(openBlock(),createBlock("span",{key:1,class:_r.suit("link"),"aria-label":"First"},"\u2039\u2039",2)):(openBlock(),createBlock("a",{key:0,class:_r.suit("link"),"aria-label":"First",href:_r.state.createURL(0),onClick:Fe[1]||(Fe[1]=withModifiers(function(Yr){return zr.refine(0)},["prevent"]))},"\u2039\u2039",10,["href"]))]})],2)):createCommentVNode("",!0),$r.showPrevious?(openBlock(),createBlock("li",{key:1,class:(Wr={},Wr[_r.suit("item")]=!0,Wr[_r.suit("item","previousPage")]=!0,Wr[_r.suit("item","disabled")]=_r.state.isFirstPage,Wr)},[renderSlot(_r.$slots,"previous",{createURL:function(){return _r.state.createURL(_r.state.currentRefinement-1)},isFirstPage:_r.state.isFirstPage,refine:function(){return zr.refine(_r.state.currentRefinement-1)}},function(){return[_r.state.isFirstPage?(openBlock(),createBlock("span",{key:1,class:_r.suit("link"),"aria-label":"Previous"},"\u2039",2)):(openBlock(),createBlock("a",{key:0,class:_r.suit("link"),"aria-label":"Previous",href:_r.state.createURL(_r.state.currentRefinement-1),onClick:Fe[2]||(Fe[2]=withModifiers(function(Yr){return zr.refine(_r.state.currentRefinement-1)},["prevent"]))},"\u2039",10,["href"]))]})],2)):createCommentVNode("",!0),(openBlock(!0),createBlock(Fragment,null,renderList(_r.state.pages,function(Yr){var Qr;return openBlock(),createBlock("li",{class:(Qr={},Qr[_r.suit("item")]=!0,Qr[_r.suit("item","page")]=!0,Qr[_r.suit("item","selected")]=_r.state.currentRefinement===Yr,Qr),key:Yr},[renderSlot(_r.$slots,"item",{page:Yr,createURL:function(){return _r.state.createURL(Yr)},isFirstPage:_r.state.isFirstPage,isLastPage:_r.state.isLastPage,refine:function(){return zr.refine(Yr)}},function(){return[createVNode("a",{class:_r.suit("link"),href:_r.state.createURL(Yr),"aria-label":"Page "+(Yr+1),onClick:withModifiers(function(Jr){return zr.refine(Yr)},["prevent"])},toDisplayString(Yr+1),11,["href","aria-label","onClick"])]})],2)}),128)),$r.showNext?(openBlock(),createBlock("li",{key:2,class:(Kr={},Kr[_r.suit("item")]=!0,Kr[_r.suit("item","nextPage")]=!0,Kr[_r.suit("item","disabled")]=_r.state.isLastPage,Kr)},[renderSlot(_r.$slots,"next",{createURL:function(){return _r.state.createURL(_r.state.currentRefinement+1)},isLastPage:_r.state.isLastPage,refine:function(){return zr.refine(_r.state.currentRefinement+1)}},function(){return[_r.state.isLastPage?(openBlock(),createBlock("span",{key:1,class:_r.suit("link"),"aria-label":"Next"},"\u203A",2)):(openBlock(),createBlock("a",{key:0,class:_r.suit("link"),"aria-label":"Next",href:_r.state.createURL(_r.state.currentRefinement+1),onClick:Fe[3]||(Fe[3]=withModifiers(function(Yr){return zr.refine(_r.state.currentRefinement+1)},["prevent"]))},"\u203A",10,["href"]))]})],2)):createCommentVNode("",!0),$r.showLast?(openBlock(),createBlock("li",{key:3,class:(Gr={},Gr[_r.suit("item")]=!0,Gr[_r.suit("item","lastPage")]=!0,Gr[_r.suit("item","disabled")]=_r.state.isLastPage,Gr)},[renderSlot(_r.$slots,"last",{createURL:function(){return _r.state.createURL(_r.state.nbPages-1)},isLastPage:_r.state.isLastPage,refine:function(){return zr.refine(_r.state.nbPages-1)}},function(){return[_r.state.isLastPage?(openBlock(),createBlock("span",{key:1,class:_r.suit("link"),"aria-label":"Last"},"\u203A\u203A",2)):(openBlock(),createBlock("a",{key:0,class:_r.suit("link"),"aria-label":"Last",href:_r.state.createURL(_r.state.nbPages-1),onClick:Fe[4]||(Fe[4]=withModifiers(function(Yr){return zr.refine(_r.state.nbPages-1)},["prevent"]))},"\u203A\u203A",10,["href"]))]})],2)):createCommentVNode("",!0)],2)]})],2)):createCommentVNode("",!0)}e$g.render=l$6;var e$f={name:"AisPanel",mixins:[t$6({name:"Panel"}),i()],methods:{getSlot:function(_r){return this.$slots[_r]}}};function o$2(_r,Fe,$r,Fr,jr,zr){return openBlock(),createBlock("div",{class:[_r.suit(),!_r.canRefine&&_r.suit("","noRefinement")]},[zr.getSlot("header")?(openBlock(),createBlock("div",{key:0,class:_r.suit("header")},[renderSlot(_r.$slots,"header",{hasRefinements:_r.canRefine})],2)):createCommentVNode("",!0),createVNode("div",{class:_r.suit("body")},[renderSlot(_r.$slots,"default",{hasRefinements:_r.canRefine})],2),zr.getSlot("footer")?(openBlock(),createBlock("div",{key:1,class:_r.suit("footer")},[renderSlot(_r.$slots,"footer",{hasRefinements:_r.canRefine})],2)):createCommentVNode("",!0)],2)}e$f.render=o$2;var e$e={name:"AisPoweredBy",mixins:[t$6({name:"PoweredBy"})],props:{theme:{default:"light",validator:function(_r){return["light","dark"].indexOf(_r)!==-1}}},computed:{algoliaUrl:function(){return"https://www.algolia.com/?utm_source=vue-instantsearch&utm_medium=website&utm_content="+(location?location.hostname:"")+"&utm_campaign=poweredby"}}};function l$5(_r,Fe,$r,Fr,jr,zr){return openBlock(),createBlock("div",{class:_r.suit()},[createVNode("a",{class:_r.suit("link"),href:zr.algoliaUrl,target:"_blank",rel:"noopener","aria-label":"search by Algolia"},[(openBlock(),createBlock("svg",{style:{height:"1.2em",width:"auto"},class:[_r.suit("logo"),_r.suit("",$r.theme)],viewBox:"0 0 572 64"},[createVNode("path",{fill:$r.theme==="dark"?"#FFF":"#36395a",d:"M16 48.3c-3.4 0-6.3-.6-8.7-1.7A12.4 12.4 0 0 1 1.9 42C.6 40 0 38 0 35.4h6.5a6.7 6.7 0 0 0 3.9 6c1.4.7 3.3 1.1 5.6 1.1 2.2 0 4-.3 5.4-1a7 7 0 0 0 3-2.4 6 6 0 0 0 1-3.4c0-1.5-.6-2.8-1.9-3.7-1.3-1-3.3-1.6-5.9-1.8l-4-.4c-3.7-.3-6.6-1.4-8.8-3.4a10 10 0 0 1-3.3-7.9c0-2.4.6-4.6 1.8-6.4a12 12 0 0 1 5-4.3c2.2-1 4.7-1.6 7.5-1.6s5.5.5 7.6 1.6a12 12 0 0 1 5 4.4c1.2 1.8 1.8 4 1.8 6.7h-6.5a6.4 6.4 0 0 0-3.5-5.9c-1-.6-2.6-1-4.4-1s-3.2.3-4.4 1c-1.1.6-2 1.4-2.6 2.4-.5 1-.8 2-.8 3.1a5 5 0 0 0 1.5 3.6c1 1 2.6 1.7 4.7 1.9l4 .3c2.8.2 5.2.8 7.2 1.8 2.1 1 3.7 2.2 4.9 3.8a9.7 9.7 0 0 1 1.7 5.8c0 2.5-.7 4.7-2 6.6a13 13 0 0 1-5.6 4.4c-2.4 1-5.2 1.6-8.4 1.6Zm35.6 0c-2.6 0-4.8-.4-6.7-1.3a13 13 0 0 1-4.7-3.5 17.1 17.1 0 0 1-3.6-10.4v-1c0-2 .3-3.8 1-5.6a13 13 0 0 1 7.3-8.3 15 15 0 0 1 6.3-1.4A13.2 13.2 0 0 1 64 24.3c1 2.2 1.6 4.6 1.6 7.2V34H39.4v-4.3h21.8l-1.8 2.2c0-2-.3-3.7-.9-5.1a7.3 7.3 0 0 0-2.7-3.4c-1.2-.7-2.7-1.1-4.6-1.1s-3.4.4-4.7 1.3a8 8 0 0 0-2.9 3.6c-.6 1.5-.9 3.3-.9 5.4 0 2 .3 3.7 1 5.3a7.9 7.9 0 0 0 2.8 3.7c1.3.8 3 1.3 5 1.3s3.8-.5 5.1-1.3c1.3-1 2.1-2 2.4-3.2h6a11.8 11.8 0 0 1-7 8.7 16 16 0 0 1-6.4 1.2ZM80 48c-2.2 0-4-.3-5.7-1a8.4 8.4 0 0 1-3.7-3.3 9.7 9.7 0 0 1-1.3-5.2c0-2 .5-3.8 1.5-5.2a9 9 0 0 1 4.3-3.1c1.8-.7 4-1 6.7-1H89v4.1h-7.5c-2 0-3.4.5-4.4 1.4-1 1-1.6 2.1-1.6 3.6s.5 2.7 1.6 3.6c1 1 2.5 1.4 4.4 1.4 1.1 0 2.2-.2 3.2-.7 1-.4 1.9-1 2.6-2 .6-1 1-2.4 1-4.2l1.7 2.1c-.2 2-.7 3.8-1.5 5.2a9 9 0 0 1-3.4 3.3 12 12 0 0 1-5.3 1Zm9.5-.7v-8.8h-1v-10c0-1.8-.5-3.2-1.4-4.1-1-1-2.4-1.4-4.2-1.4a142.9 142.9 0 0 0-10.2.4v-5.6a74.8 74.8 0 0 1 8.6-.4c3 0 5.5.4 7.5 1.2s3.4 2 4.4 3.6c1 1.7 1.4 4 1.4 6.7v18.4h-5Zm12.9 0V17.8h5v12.3h-.2c0-4.2 1-7.4 2.8-9.5a11 11 0 0 1 8.3-3.1h1v5.6h-2a9 9 0 0 0-6.3 2.2c-1.5 1.5-2.2 3.6-2.2 6.4v15.6h-6.4Zm34.4 1a15 15 0 0 1-6.6-1.3c-1.9-.9-3.4-2-4.7-3.5a15.5 15.5 0 0 1-2.7-5c-.6-1.7-1-3.6-1-5.4v-1c0-2 .4-3.8 1-5.6a15 15 0 0 1 2.8-4.9c1.3-1.5 2.8-2.6 4.6-3.5a16.4 16.4 0 0 1 13.3.2c2 1 3.5 2.3 4.8 4a12 12 0 0 1 2 6H144c-.2-1.6-1-3-2.2-4.1a7.5 7.5 0 0 0-5.2-1.7 8 8 0 0 0-4.7 1.3 8 8 0 0 0-2.8 3.6 13.8 13.8 0 0 0 0 10.3c.6 1.5 1.5 2.7 2.8 3.6s2.8 1.3 4.8 1.3c1.5 0 2.7-.2 3.8-.8a7 7 0 0 0 2.6-2c.7-1 1-2 1.2-3.2h6.2a11 11 0 0 1-2 6.2 15.1 15.1 0 0 1-11.8 5.5Zm19.7-1v-40h6.4V31h-1.3c0-3 .4-5.5 1.1-7.6a9.7 9.7 0 0 1 3.5-4.8A9.9 9.9 0 0 1 172 17h.3c3.5 0 6 1.1 7.9 3.5 1.7 2.3 2.6 5.7 2.6 10v16.8h-6.4V29.6c0-2.1-.6-3.8-1.8-5a6.4 6.4 0 0 0-4.8-1.8c-2 0-3.7.7-5 2a7.8 7.8 0 0 0-1.9 5.5v17h-6.4Zm63.8 1a12.2 12.2 0 0 1-10.9-6.2 19 19 0 0 1-1.8-7.3h1.4v12.5h-5.1v-40h6.4v19.8l-2 3.5c.2-3.1.8-5.7 1.9-7.7a11 11 0 0 1 4.4-4.5c1.8-1 3.9-1.5 6.1-1.5a13.4 13.4 0 0 1 12.8 9.1c.7 1.9 1 3.8 1 6v1c0 2.2-.3 4.1-1 6a13.6 13.6 0 0 1-13.2 9.4Zm-1.2-5.5a8.4 8.4 0 0 0 7.9-5c.7-1.5 1.1-3.3 1.1-5.3s-.4-3.8-1.1-5.3a8.7 8.7 0 0 0-3.2-3.6 9.6 9.6 0 0 0-9.2-.2 8.5 8.5 0 0 0-3.3 3.2c-.8 1.4-1.3 3-1.3 5v2.3a9 9 0 0 0 1.3 4.8 9 9 0 0 0 3.4 3c1.4.7 2.8 1 4.4 1Zm27.3 3.9-10-28.9h6.5l9.5 28.9h-6Zm-7.5 12.2v-5.7h4.9c1 0 2-.1 2.9-.4a4 4 0 0 0 2-1.4c.4-.7.9-1.6 1.2-2.7l8.6-30.9h6.2l-9.3 32.4a14 14 0 0 1-2.5 5 8.9 8.9 0 0 1-4 2.8c-1.5.6-3.4.9-5.6.9h-4.4Zm9-12.2v-5.2h6.4v5.2H248Z"},null,8,["fill"]),createVNode("path",{fill:$r.theme==="dark"?"#FFF":"#003DFF",d:"M534.4 9.1H528a.8.8 0 0 1-.7-.7V1.8c0-.4.2-.7.6-.8l6.5-1c.4 0 .8.2.9.6v7.8c0 .4-.4.7-.8.7zM428 35.2V.8c0-.5-.3-.8-.7-.8h-.2l-6.4 1c-.4 0-.7.4-.7.8v35c0 1.6 0 11.8 12.3 12.2.5 0 .8-.4.8-.8V43c0-.4-.3-.7-.6-.8-4.5-.5-4.5-6-4.5-7zm106.5-21.8H528c-.4 0-.7.4-.7.8v34c0 .4.3.8.7.8h6.5c.4 0 .8-.4.8-.8v-34c0-.5-.4-.8-.8-.8zm-17.7 21.8V.8c0-.5-.3-.8-.8-.8l-6.5 1c-.4 0-.7.4-.7.8v35c0 1.6 0 11.8 12.3 12.2.4 0 .8-.4.8-.8V43c0-.4-.3-.7-.7-.8-4.4-.5-4.4-6-4.4-7zm-22.2-20.6a16.5 16.5 0 0 1 8.6 9.3c.8 2.2 1.3 4.8 1.3 7.5a19.4 19.4 0 0 1-4.6 12.6 14.8 14.8 0 0 1-5.2 3.6c-2 .9-5.2 1.4-6.8 1.4a21 21 0 0 1-6.7-1.4 15.4 15.4 0 0 1-8.6-9.3 21.3 21.3 0 0 1 0-14.4 15.2 15.2 0 0 1 8.6-9.3c2-.8 4.3-1.2 6.7-1.2s4.6.4 6.7 1.2zm-6.7 27.6c2.7 0 4.7-1 6.2-3s2.2-4.3 2.2-7.8-.7-6.3-2.2-8.3-3.5-3-6.2-3-4.7 1-6.1 3c-1.5 2-2.2 4.8-2.2 8.3s.7 5.8 2.2 7.8 3.5 3 6.2 3zm-88.8-28.8c-6.2 0-11.7 3.3-14.8 8.2a18.6 18.6 0 0 0 4.8 25.2c1.8 1.2 4 1.8 6.2 1.7s.1 0 .1 0h.9c4.2-.7 8-4 9.1-8.1v7.4c0 .4.3.7.8.7h6.4a.7.7 0 0 0 .7-.7V14.2c0-.5-.3-.8-.7-.8h-13.5zm6.3 26.5a9.8 9.8 0 0 1-5.7 2h-.5a10 10 0 0 1-9.2-14c1.4-3.7 5-6.3 9-6.3h6.4v18.3zm152.3-26.5h13.5c.5 0 .8.3.8.7v33.7c0 .4-.3.7-.8.7h-6.4a.7.7 0 0 1-.8-.7v-7.4c-1.2 4-4.8 7.4-9 8h-.1a4.2 4.2 0 0 1-.5.1h-.9a10.3 10.3 0 0 1-7-2.6c-4-3.3-6.5-8.4-6.5-14.2 0-3.7 1-7.2 3-10 3-5 8.5-8.3 14.7-8.3zm.6 28.4c2.2-.1 4.2-.6 5.7-2V21.7h-6.3a9.8 9.8 0 0 0-9 6.4 10.2 10.2 0 0 0 9.1 13.9h.5zM452.8 13.4c-6.2 0-11.7 3.3-14.8 8.2a18.5 18.5 0 0 0 3.6 24.3 10.4 10.4 0 0 0 13 .6c2.2-1.5 3.8-3.7 4.5-6.1v7.8c0 2.8-.8 5-2.2 6.3-1.5 1.5-4 2.2-7.5 2.2l-6-.3c-.3 0-.7.2-.8.5l-1.6 5.5c-.1.4.1.8.5 1h.1c2.8.4 5.5.6 7 .6 6.3 0 11-1.4 14-4.1 2.7-2.5 4.2-6.3 4.5-11.4V14.2c0-.5-.4-.8-.8-.8h-13.5zm6.3 8.2v18.3a9.6 9.6 0 0 1-5.6 2h-1a10.3 10.3 0 0 1-8.8-14c1.4-3.7 5-6.3 9-6.3h6.4zM291 31.5A32 32 0 0 1 322.8 0h30.8c.6 0 1.2.5 1.2 1.2v61.5c0 1.1-1.3 1.7-2.2 1l-19.2-17a18 18 0 0 1-11 3.4 18.1 18.1 0 1 1 18.2-14.8c-.1.4-.5.7-.9.6-.1 0-.3 0-.4-.2l-3.8-3.4c-.4-.3-.6-.8-.7-1.4a12 12 0 1 0-2.4 8.3c.4-.4 1-.5 1.6-.2l14.7 13.1v-46H323a26 26 0 1 0 10 49.7c.8-.4 1.6-.2 2.3.3l3 2.7c.3.2.3.7 0 1l-.2.2a32 32 0 0 1-47.2-28.6z"},null,8,["fill"])],2))],10,["href"])],2)}e$e.render=l$5;var QueryRuleContext={name:"AisQueryRuleContext",mixins:[t$6({name:"QueryRuleContext"}),n$4({connector:s$4},{$$widgetType:"ais.queryRuleContext"})],props:{trackedFilters:{type:Object,required:!0},transformRuleContexts:{type:Function,required:!1,default:void 0}},computed:{widgetParams:function(){return{trackedFilters:this.trackedFilters,transformRuleContexts:this.transformRuleContexts}}},render:function(){return null}},e$d={name:"AisQueryRuleCustomData",mixins:[t$6({name:"QueryRuleCustomData"}),n$4({connector:s$4},{$$widgetType:"ais.queryRuleCustomData"})],props:{transformItems:{type:Function,required:!1,default:void 0}},computed:{widgetParams:function(){return{transformItems:this.transformItems}}}};function l$4(_r,Fe,$r,Fr,jr,zr){return _r.state?(openBlock(),createBlock("div",{key:0,class:_r.suit()},[renderSlot(_r.$slots,"default",{items:_r.state.items},function(){return[(openBlock(!0),createBlock(Fragment,null,renderList(_r.state.items,function(Vr,Wr){return openBlock(),createBlock("div",{key:Wr},[renderSlot(_r.$slots,"item",{item:Vr},function(){return[createVNode("pre",null,toDisplayString(Vr),1)]})])}),128))]})],2)):createCommentVNode("",!0)}e$d.render=l$4;var e$c={name:"AisRangeInput",mixins:[t$6({name:"RangeInput"}),n$4({connector:e$z},{$$widgetType:"ais.rangeInput"}),r$b()],props:{attribute:{type:String,required:!0},min:{type:Number,required:!1,default:void 0},max:{type:Number,required:!1,default:void 0},precision:{type:Number,required:!1,default:0}},data:function(){return{minInput:void 0,maxInput:void 0}},updated:function(){this.minInput=void 0,this.maxInput=void 0},computed:{widgetParams:function(){return{attribute:this.attribute,min:this.min,max:this.max,precision:this.precision}},step:function(){return 1/Math.pow(10,this.precision)},values:function(){var _r=this.state.start,Fe=_r[0],$r=_r[1],Fr=this.state.range,jr=Fr.min,zr=Fr.max;return{min:Fe!==-1/0&&Fe!==jr?Fe:void 0,max:$r!==1/0&&$r!==zr?$r:void 0}}},methods:{pick:function(_r,Fe){return _r!=null?_r:Fe},refine:function(_r){var Fe=_r.min,$r=_r.max;this.state.refine([Fe,$r])}}},r$2=createTextVNode("to"),l$3=createTextVNode(" Go ");function m$1(_r,Fe,$r,Fr,jr,zr){return _r.state?(openBlock(),createBlock("div",{key:0,class:[_r.suit(),!_r.state.canRefine&&_r.suit("","noRefinement")]},[renderSlot(_r.$slots,"default",{currentRefinement:zr.values,refine:zr.refine,canRefine:_r.state.canRefine,range:_r.state.range,sendEvent:_r.state.sendEvent},function(){return[createVNode("form",{class:_r.suit("form"),onSubmit:Fe[3]||(Fe[3]=withModifiers(function(Vr){return zr.refine({min:zr.pick(jr.minInput,zr.values.min),max:zr.pick(jr.maxInput,zr.values.max)})},["prevent"]))},[createVNode("label",{class:_r.suit("label")},[renderSlot(_r.$slots,"minLabel"),createVNode("input",{type:"number",class:[_r.suit("input"),_r.suit("input","min")],step:zr.step,min:_r.state.range.min,max:_r.state.range.max,placeholder:_r.state.range.min,value:zr.values.min,onChange:Fe[1]||(Fe[1]=function(Vr){return jr.minInput=Vr.currentTarget.value})},null,42,["step","min","max","placeholder","value"])],2),createVNode("span",{class:_r.suit("separator")},[renderSlot(_r.$slots,"separator",{},function(){return[r$2]})],2),createVNode("label",{class:_r.suit("label")},[renderSlot(_r.$slots,"maxLabel"),createVNode("input",{class:[_r.suit("input"),_r.suit("input","max")],type:"number",step:zr.step,min:_r.state.range.min,max:_r.state.range.max,placeholder:_r.state.range.max,value:zr.values.max,onChange:Fe[2]||(Fe[2]=function(Vr){return jr.maxInput=Vr.currentTarget.value})},null,42,["step","min","max","placeholder","value"])],2),createVNode("button",{class:_r.suit("submit"),type:"submit"},[renderSlot(_r.$slots,"submitLabel",{},function(){return[l$3]})],2)],34)]})],2)):createCommentVNode("",!0)}e$c.render=m$1;var e$b={name:"AisRatingMenu",mixins:[t$6({name:"RatingMenu"}),n$4({connector:e$y},{$$widgetType:"ais.ratingMenu"}),r$b()],props:{attribute:{type:String,required:!0},max:{type:Number,default:void 0}},computed:{widgetParams:function(){return{attribute:this.attribute,max:this.max}}}},c$1=createVNode("svg",{xmlns:"http://www.w3.org/2000/svg",style:{display:"none"}},[createVNode("symbol",{id:"ais-RatingMenu-starSymbol",viewBox:"0 0 24 24"},[createVNode("path",{d:"M12 .288l2.833 8.718h9.167l-7.417 5.389 2.833 8.718-7.416-5.388-7.417 5.388 2.833-8.718-7.416-5.389h9.167z"})]),createVNode("symbol",{id:"ais-RatingMenu-starEmptySymbol",viewBox:"0 0 24 24"},[createVNode("path",{d:"M12 6.76l1.379 4.246h4.465l-3.612 2.625 1.379 4.246-3.611-2.625-3.612 2.625 1.379-4.246-3.612-2.625h4.465l1.38-4.246zm0-6.472l-2.833 8.718h-9.167l7.416 5.389-2.833 8.718 7.417-5.388 7.416 5.388-2.833-8.718 7.417-5.389h-9.167l-2.833-8.718z"})])],-1),h=createVNode("use",{"xlink:href":"#ais-RatingMenu-starSymbol"},null,-1),d$1=createVNode("use",{"xlink:href":"#ais-RatingMenu-starEmptySymbol"},null,-1),f=createTextVNode("& Up");function m(_r,Fe,$r,Fr,jr,zr){return _r.state?(openBlock(),createBlock("div",{key:0,class:_r.suit()},[renderSlot(_r.$slots,"default",{items:_r.state.items,refine:_r.state.refine,createURL:_r.state.createURL,sendEvent:_r.state.sendEvent,canRefine:_r.state.canRefine},function(){return[c$1,createVNode("ul",{class:_r.suit("list")},[(openBlock(!0),createBlock(Fragment,null,renderList(_r.state.items,function(Vr,Wr){return openBlock(),createBlock("li",{key:Wr,class:[_r.suit("item"),Vr.isRefined&&_r.suit("item","selected")]},[createVNode("a",{href:_r.state.createURL(Vr.value),"aria-label":Vr.value+" & Up",class:_r.suit("link"),onClick:withModifiers(function(Kr){return _r.state.refine(Vr.value)},["prevent"])},[(openBlock(!0),createBlock(Fragment,null,renderList(Vr.stars,function(Kr,Gr){return openBlock(),createBlock(Fragment,null,[Kr?(openBlock(),createBlock("svg",{"aria-hidden":"true",width:"24",height:"24",class:[_r.suit("starIcon"),_r.suit("starIcon--full")],key:Gr+"-full"},[h],2)):(openBlock(),createBlock("svg",{class:[_r.suit("starIcon"),_r.suit("starIcon--empty")],"aria-hidden":"true",width:"24",height:"24",key:Gr+"-empty"},[d$1],2))],64)}),256)),createVNode("span",{class:_r.suit("label"),"aria-hidden":"true"},[renderSlot(_r.$slots,"andUp",{},function(){return[f]})],2),createVNode("span",{class:_r.suit("count")},toDisplayString(Vr.count),3)],10,["href","aria-label","onClick"])],2)}),128))],2)]})],2)):createCommentVNode("",!0)}e$b.render=m;var e$a={name:"SearchInput",mixins:[t$6({name:"SearchBox"})],props:{placeholder:{type:String,default:"Search here\u2026"},autofocus:{type:Boolean,default:!1},showLoadingIndicator:{type:Boolean,default:!1},shouldShowLoadingIndicator:{type:Boolean,default:!1},submitTitle:{type:String,default:"Search"},resetTitle:{type:String,default:"Clear"},value:{type:String,required:!1,default:void 0},modelValue:{type:String,required:!1,default:void 0}},emits:["input","update:modelValue","blur","focus","reset"],data:function(){return{query:""}},methods:{isFocused:function(){return document.activeElement===this.$refs.input},onFormSubmit:function(){this.$refs.input.blur()},onFormReset:function(){this.$emit("input",""),this.$emit("update:modelValue",""),this.$emit("reset")}}},r$1=createVNode("path",{d:"M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z",fillRule:"evenodd"},null,-1),a$3=createVNode("path",{d:"M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z",fillRule:"evenodd"},null,-1),u$5=createVNode("g",{fill:"none","fill-rule":"evenodd"},[createVNode("g",{transform:"translate(1 1)","stroke-width":"2"},[createVNode("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),createVNode("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[createVNode("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])],-1);function s$1(_r,Fe,$r,Fr,jr,zr){return openBlock(),createBlock("form",{action:"",role:"search",novalidate:"",class:_r.suit("form"),onSubmit:Fe[4]||(Fe[4]=withModifiers(function(){for(var Vr=[],Wr=arguments.length;Wr--;)Vr[Wr]=arguments[Wr];return zr.onFormSubmit&&zr.onFormSubmit.apply(zr,Vr)},["prevent"])),onReset:Fe[5]||(Fe[5]=withModifiers(function(){for(var Vr=[],Wr=arguments.length;Wr--;)Vr[Wr]=arguments[Wr];return zr.onFormReset&&zr.onFormReset.apply(zr,Vr)},["prevent"]))},[createVNode("input",{type:"search",autocorrect:"off",autocapitalize:"off",autocomplete:"off",spellcheck:"false",required:"",maxlength:"512","aria-label":"Search",placeholder:$r.placeholder,autofocus:$r.autofocus,class:_r.suit("input"),value:$r.value||$r.modelValue,onFocus:Fe[1]||(Fe[1]=function(Vr){return _r.$emit("focus",Vr)}),onBlur:Fe[2]||(Fe[2]=function(Vr){return _r.$emit("blur",Vr)}),onInput:Fe[3]||(Fe[3]=function(Vr){_r.$emit("input",Vr.target.value),_r.$emit("update:modelValue",Vr.target.value)}),ref:"input"},null,42,["placeholder","autofocus","value"]),createVNode("button",{type:"submit",title:$r.submitTitle,class:_r.suit("submit"),hidden:$r.showLoadingIndicator&&$r.shouldShowLoadingIndicator},[renderSlot(_r.$slots,"submit-icon",{},function(){return[(openBlock(),createBlock("svg",{"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 40 40",class:_r.suit("submitIcon")},[r$1],2))]})],10,["title","hidden"]),createVNode("button",{type:"reset",title:$r.resetTitle,class:_r.suit("reset"),hidden:!$r.value&&!$r.modelValue||$r.showLoadingIndicator&&$r.shouldShowLoadingIndicator},[renderSlot(_r.$slots,"reset-icon",{},function(){return[(openBlock(),createBlock("svg",{"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",style:{width:"1em",height:"1em"},viewBox:"0 0 20 20",class:_r.suit("resetIcon")},[a$3],2))]})],10,["title","hidden"]),$r.showLoadingIndicator?(openBlock(),createBlock("span",{key:0,hidden:!$r.shouldShowLoadingIndicator,class:_r.suit("loadingIndicator")},[renderSlot(_r.$slots,"loading-indicator",{},function(){return[(openBlock(),createBlock("svg",{role:"img","aria-label":"Results are loading",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",stroke:"#444",viewBox:"0 0 38 38",class:_r.suit("loadingIcon")},[u$5],2))]})],10,["hidden"])):createCommentVNode("",!0)],34)}e$a.render=s$1;var a$2=function(){},e$9={name:"AisRefinementList",components:{SearchInput:e$a,AisHighlight:e$n},mixins:[t$6({name:"RefinementList"}),n$4({connector:r$c},{$$widgetType:"ais.refinementList"}),r$b()],props:{attribute:{type:String,required:!0},searchable:{type:Boolean,default:void 0},searchablePlaceholder:{type:String,required:!1,default:"Search here\u2026"},operator:{default:"or",validator:function(_r){return _r==="and"||_r==="or"},required:!1},limit:{type:Number,required:!1,default:void 0},showMoreLimit:{type:Number,required:!1,default:void 0},showMore:{type:Boolean,required:!1,default:!1},sortBy:{type:[Array,Function],required:!1,default:void 0},transformItems:{type:Function,required:!1,default:void 0}},data:function(){return{searchForFacetValuesQuery:""}},computed:{searchForFacetValues:{get:function(){return this.searchForFacetValuesQuery},set:function(_r){this.state.searchForItems(_r),this.searchForFacetValuesQuery=_r}},toggleShowMore:function(){return this.state.toggleShowMore||a$2},items:function(){return this.state.items.map(function(_r){return Object.assign({},_r,{_highlightResult:{item:{value:_r.highlighted}}})})},widgetParams:function(){return{attribute:this.attribute,operator:this.operator,limit:this.limit,showMore:this.showMore,showMoreLimit:this.showMoreLimit,sortBy:this.sortBy,escapeFacetValues:!0,transformItems:this.transformItems}}},methods:{refine:function(_r){this.state.refine(_r),this.searchForFacetValuesQuery=""}}};function u$4(_r,Fe,$r,Fr,jr,zr){var Vr=resolveComponent("search-input"),Wr=resolveComponent("ais-highlight");return _r.state?(openBlock(),createBlock("div",{key:0,class:[_r.suit(),!_r.state.canRefine&&_r.suit("","noRefinement")]},[renderSlot(_r.$slots,"default",{items:zr.items,refine:zr.refine,searchForItems:_r.state.searchForItems,searchForItemsQuery:jr.searchForFacetValuesQuery,toggleShowMore:zr.toggleShowMore,canToggleShowMore:_r.state.canToggleShowMore,isShowingMore:_r.state.isShowingMore,createURL:_r.state.createURL,isFromSearch:_r.state.isFromSearch,canRefine:_r.state.canRefine,sendEvent:_r.state.sendEvent},function(){var Kr;return[$r.searchable?(openBlock(),createBlock("div",{key:0,class:_r.suit("searchBox")},[createVNode(Vr,{modelValue:zr.searchForFacetValues,"onUpdate:modelValue":Fe[1]||(Fe[1]=function(Gr){return zr.searchForFacetValues=Gr}),placeholder:$r.searchablePlaceholder,"class-names":_r.classNames},null,8,["modelValue","placeholder","class-names"])],2)):createCommentVNode("",!0),_r.state.isFromSearch&&zr.items.length===0?renderSlot(_r.$slots,"noResults",{key:1,query:zr.searchForFacetValues},function(){return[createVNode("div",{class:_r.suit("noResults")},"No results.",2)]}):createCommentVNode("",!0),createVNode("ul",{class:_r.suit("list")},[(openBlock(!0),createBlock(Fragment,null,renderList(zr.items,function(Gr){return openBlock(),createBlock("li",{class:[_r.suit("item"),Gr.isRefined&&_r.suit("item","selected")],key:Gr.value},[renderSlot(_r.$slots,"item",{item:Gr,refine:zr.refine,createURL:_r.state.createURL},function(){return[createVNode("label",{class:_r.suit("label")},[createVNode("input",{class:_r.suit("checkbox"),type:"checkbox",value:Gr.value,checked:Gr.isRefined,onChange:function(Yr){return zr.refine(Gr.value)}},null,42,["value","checked","onChange"]),$r.searchable?(openBlock(),createBlock("span",{key:0,class:_r.suit("labelText")},[createVNode(Wr,{attribute:"item",hit:Gr},null,8,["hit"])],2)):(openBlock(),createBlock("span",{key:1,class:_r.suit("labelText")},toDisplayString(Gr.label),3)),createVNode("span",{class:_r.suit("count")},toDisplayString(Gr.count),3)],2)]})],2)}),128))],2),$r.showMore?(openBlock(),createBlock("button",{key:2,class:[_r.suit("showMore"),(Kr={},Kr[_r.suit("showMore","disabled")]=!_r.state.canToggleShowMore,Kr)],onClick:Fe[2]||(Fe[2]=function(){for(var Gr=[],Yr=arguments.length;Yr--;)Gr[Yr]=arguments[Yr];return zr.toggleShowMore&&zr.toggleShowMore.apply(zr,Gr)}),disabled:!_r.state.canToggleShowMore},[renderSlot(_r.$slots,"showMoreLabel",{isShowingMore:_r.state.isShowingMore},function(){return[createTextVNode(" Show "+toDisplayString(_r.state.isShowingMore?"less":"more"),1)]})],10,["disabled"])):createCommentVNode("",!0)]})],2)):createCommentVNode("",!0)}e$9.render=u$4;var n$3,e$8=((n$3={name:"AisStateResults",mixins:[n$4({connector:!0}),t$6({name:"StateResults"})],props:{catchError:{type:Boolean,default:!1}},data:function(){var _r=this;return{renderFn:function(){var Fe=_r.instantSearchInstance,$r=Fe.status,Fr=Fe.error,jr=_r.getParentIndex().getResults(),zr=_r.getParentIndex().getHelper(),Vr=zr?zr.state:null;_r.state={results:jr,state:Vr,status:$r,error:Fr}}}},created:function(){this.instantSearchInstance.addListener("render",this.renderFn),this.renderFn()}}).beforeUnmount=function(){this.widget&&(this.instantSearchInstance.removeListener("render",this.renderFn),this.errorFn&&this.instantSearchInstance.removeListener("error",this.errorFn))},n$3.watch={catchError:{immediate:!0,handler:function(_r){_r?(this.errorFn=function(){},this.instantSearchInstance.addListener("error",this.errorFn)):this.errorFn&&(this.instantSearchInstance.removeListener("error",this.errorFn),this.errorFn=void 0)}}},n$3.computed={stateResults:function(){var _r=this.state,Fe=_r.results,$r=_r.state,Fr=_r.status,jr=_r.error;return e$B({},Fe,{results:Fe,state:$r,status:Fr,error:jr})}},n$3),n$2=createVNode("p",null," Use this component to have a different layout based on a certain state. ",-1),u$3=createVNode("p",null,"Fill in the slot, and get access to the following things:",-1);function o$1(_r,Fe,$r,Fr,jr,zr){return _r.state&&_r.state.state&&_r.state.results?(openBlock(),createBlock("div",{key:0,class:_r.suit()},[renderSlot(_r.$slots,"default",zr.stateResults,function(){return[n$2,u$3,createVNode("pre",null,"results: "+toDisplayString(Object.keys(_r.state.results)),1),createVNode("pre",null,"state: "+toDisplayString(Object.keys(_r.state.state)),1),createVNode("pre",null,"status: "+toDisplayString(_r.state.status),1),createVNode("pre",null,"error: "+toDisplayString(_r.state.error),1)]})],2)):createCommentVNode("",!0)}e$8.render=o$1;var e$7={name:"AisSearchBox",mixins:[n$4({connector:s$5},{$$widgetType:"ais.searchBox"}),t$6({name:"SearchBox"})],components:{SearchInput:e$a},props:{placeholder:{type:String,default:"Search here\u2026"},autofocus:{type:Boolean,default:!1},showLoadingIndicator:{type:Boolean,default:!1},submitTitle:{type:String,default:"Search"},resetTitle:{type:String,default:"Clear"},value:{type:String,default:void 0},modelValue:{type:String,default:void 0},queryHook:{type:Function,default:void 0}},data:function(){return{localValue:"",isVue2:o$4,isVue3:r$d}},computed:{widgetParams:function(){return{queryHook:this.queryHook}},isControlled:function(){return this.value!==void 0||this.modelValue!==void 0},model:function(){return this.value||this.modelValue},currentRefinement:{get:function(){this.isControlled&&this.model!==this.localValue&&(this.localValue=this.model,this.$emit("input",this.model),this.$emit("update:modelValue",this.model),this.state.refine(this.model));var _r=this.$refs.searchInput;return _r&&_r.isFocused()?this.localValue:this.model||this.state.query||""},set:function(_r){this.localValue=_r,this.state.refine(_r),this.isControlled&&(this.$emit("input",_r),this.$emit("update:modelValue",_r))}}}};function a$1(_r,Fe,$r,Fr,jr,zr){var Vr=resolveComponent("search-input");return _r.state?(openBlock(),createBlock("div",{key:0,class:_r.suit()},[renderSlot(_r.$slots,"default",{currentRefinement:zr.currentRefinement,isSearchStalled:_r.state.isSearchStalled,refine:_r.state.refine},function(){return[createVNode(Vr,{onFocus:Fe[1]||(Fe[1]=function(Wr){return _r.$emit("focus",Wr)}),onBlur:Fe[2]||(Fe[2]=function(Wr){return _r.$emit("blur",Wr)}),onReset:Fe[3]||(Fe[3]=function(Wr){return _r.$emit("reset")}),placeholder:$r.placeholder,autofocus:$r.autofocus,"show-loading-indicator":$r.showLoadingIndicator,"should-show-loading-indicator":_r.state.isSearchStalled,"submit-title":$r.submitTitle,"reset-title":$r.resetTitle,"class-names":_r.classNames,modelValue:zr.currentRefinement,"onUpdate:modelValue":Fe[4]||(Fe[4]=function(Wr){return zr.currentRefinement=Wr}),ref:"searchInput"},createSlots({default:withCtx(function(){return[jr.isVue2?renderSlot(_r.$slots,"loading-indicator",{key:0,slot:"loading-indicator"}):createCommentVNode("",!0),jr.isVue2?renderSlot(_r.$slots,"submit-icon",{key:1,slot:"submit-icon"}):createCommentVNode("",!0),jr.isVue2?renderSlot(_r.$slots,"reset-icon",{key:2,slot:"reset-icon"}):createCommentVNode("",!0)]}),_:2},[jr.isVue3?{name:"loading-indicator",fn:withCtx(function(){return[renderSlot(_r.$slots,"loading-indicator")]})}:void 0,jr.isVue3?{name:"submit-icon",fn:withCtx(function(){return[renderSlot(_r.$slots,"submit-icon")]})}:void 0,jr.isVue3?{name:"reset-icon",fn:withCtx(function(){return[renderSlot(_r.$slots,"reset-icon")]})}:void 0]),1032,["placeholder","autofocus","show-loading-indicator","should-show-loading-indicator","submit-title","reset-title","class-names","modelValue"])]})],2)):createCommentVNode("",!0)}e$7.render=a$1;var e$6={name:"AisSnippet",mixins:[t$6({name:"Snippet"})],components:{AisHighlighter:e$p},props:{hit:{type:Object,required:!0},attribute:{type:String,required:!0},highlightedTagName:{type:String,default:"mark"}}};function e$5(_r,Fe,$r,Fr,jr,zr){var Vr=resolveComponent("ais-highlighter");return openBlock(),createBlock(Vr,{hit:$r.hit,attribute:$r.attribute,"highlighted-tag-name":$r.highlightedTagName,suit:_r.suit,"highlight-property":"_snippetResult","pre-tag":"<mark>","post-tag":"</mark>"},null,8,["hit","attribute","highlighted-tag-name","suit"])}e$6.render=e$5;var e$4={name:"AisSortBy",mixins:[t$6({name:"SortBy"}),n$4({connector:i$6},{$$widgetType:"ais.sortBy"}),r$b()],props:{items:{type:Array,required:!0},transformItems:{type:Function,default:void 0}},computed:{widgetParams:function(){return{items:this.items,transformItems:this.transformItems}}}};function l$2(_r,Fe,$r,Fr,jr,zr){return _r.state?(openBlock(),createBlock("div",{key:0,class:_r.suit()},[renderSlot(_r.$slots,"default",{items:_r.state.options,hasNoResults:_r.state.hasNoResults,refine:_r.state.refine,currentRefinement:_r.state.currentRefinement,canRefine:_r.state.canRefine},function(){return[createVNode("select",{class:_r.suit("select"),onChange:Fe[1]||(Fe[1]=function(Vr){return _r.state.refine(Vr.currentTarget.value)})},[(openBlock(!0),createBlock(Fragment,null,renderList(_r.state.options,function(Vr){return openBlock(),createBlock("option",{key:Vr.value,class:_r.suit("option"),value:Vr.value,selected:Vr.value===_r.state.currentRefinement},toDisplayString(Vr.label),11,["value","selected"])}),128))],34)]})],2)):createCommentVNode("",!0)}e$4.render=l$2;var t={name:"AisStats",mixins:[n$4({connector:i$5},{$$widgetType:"ais.stats"}),t$6({name:"Stats"})],computed:{widgetParams:function(){return{}}}};function u$2(_r,Fe,$r,Fr,jr,zr){return _r.state?(openBlock(),createBlock("div",{key:0,class:_r.suit()},[renderSlot(_r.$slots,"default",mergeProps(_r.state,{results:_r.state.instantSearchInstance.helper.lastResults}),function(){return[createVNode("span",{class:_r.suit("text")},[_r.state.areHitsSorted?(openBlock(),createBlock(Fragment,{key:0},[createTextVNode(toDisplayString(_r.state.nbSortedHits.toLocaleString())+" relevant results sorted out of "+toDisplayString(_r.state.nbHits.toLocaleString()),1)],64)):(openBlock(),createBlock(Fragment,{key:1},[createTextVNode(toDisplayString(_r.state.nbHits.toLocaleString())+" results",1)],64)),createTextVNode(" found in "+toDisplayString(_r.state.processingTimeMS.toLocaleString())+"ms",1)],2)]})],2)):createCommentVNode("",!0)}t.render=u$2;var e$3={name:"AisToggleRefinement",mixins:[t$6({name:"ToggleRefinement"}),n$4({connector:i$4},{$$widgetType:"ais.toggleRefinement"}),r$b()],props:{attribute:{type:String,required:!0},label:{type:String,required:!0},on:{type:[String,Number,Boolean,Array],required:!1,default:!0},off:{type:[String,Number,Boolean,Array],required:!1,default:void 0}},computed:{widgetParams:function(){return{attribute:this.attribute,label:this.label,on:this.on,off:this.off}}}};function u$1(_r,Fe,$r,Fr,jr,zr){return _r.state?(openBlock(),createBlock("div",{key:0,class:[_r.suit(),!_r.state.canRefine&&_r.suit("","noRefinement")]},[renderSlot(_r.$slots,"default",{value:_r.state.value,canRefine:_r.state.canRefine,refine:_r.state.refine,createURL:_r.state.createURL,sendEvent:_r.state.sendEvent},function(){return[createVNode("label",{class:_r.suit("label")},[createVNode("input",{class:_r.suit("checkbox"),type:"checkbox",name:_r.state.value.name,value:$r.on,checked:_r.state.value.isRefined,onChange:Fe[1]||(Fe[1]=function(Vr){return _r.state.refine(_r.state.value)})},null,42,["name","value","checked"]),createVNode("span",{class:_r.suit("labelText")},toDisplayString($r.label),3),_r.state.value.count!==null?(openBlock(),createBlock("span",{key:0,class:_r.suit("count")},toDisplayString(_r.state.value.count.toLocaleString()),3)):createCommentVNode("",!0)],2)]})],2)):createCommentVNode("",!0)}e$3.render=u$1;var e$2={name:"AisVoiceSearch",mixins:[n$4({connector:i$2},{$$widgetType:"ais.voiceSearch"}),t$6({name:"VoiceSearch"})],props:{searchAsYouSpeak:{type:Boolean,required:!1,default:void 0},language:{type:String,default:void 0},additionalQueryParameters:{type:Object,default:void 0},buttonTitle:{type:String,required:!1,default:"Search by voice"},disabledButtonTitle:{type:String,required:!1,default:"Search by voice (not supported on this browser)"}},data:function(){return{buttonSvgAttrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}}},computed:{widgetParams:function(){return{searchAsYouSpeak:this.searchAsYouSpeak,language:this.language,additionalQueryParameters:this.additionalQueryParameters}},errorNotAllowed:function(){return this.state.voiceListeningState.status==="error"&&this.state.voiceListeningState.errorCode==="not-allowed"},rootSlotProps:function(){return{isBrowserSupported:this.state.isBrowserSupported,isListening:this.state.isListening,toggleListening:this.state.toggleListening,voiceListeningState:this.state.voiceListeningState}},innerSlotProps:function(){return{status:this.state.voiceListeningState.status,errorCode:this.state.voiceListeningState.errorCode,isListening:this.state.isListening,transcript:this.state.voiceListeningState.transcript,isSpeechFinal:this.state.voiceListeningState.isSpeechFinal,isBrowserSupported:this.state.isBrowserSupported}}},methods:{handleClick:function(_r){_r.currentTarget.blur(),this.state.toggleListening()}}},r=createVNode("line",{x1:"1",y1:"1",x2:"23",y2:"23"},null,-1),u=createVNode("path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"},null,-1),a=createVNode("path",{d:"M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"},null,-1),d=createVNode("line",{x1:"12",y1:"19",x2:"12",y2:"23"},null,-1),p=createVNode("line",{x1:"8",y1:"23",x2:"16",y2:"23"},null,-1),v=createVNode("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"},null,-1),y=createVNode("line",{x1:"12",y1:"19",x2:"12",y2:"23"},null,-1),c=createVNode("line",{x1:"8",y1:"23",x2:"16",y2:"23"},null,-1);function x(_r,Fe,$r,Fr,jr,zr){return _r.state?(openBlock(),createBlock("div",{key:0,class:_r.suit()},[renderSlot(_r.$slots,"default",zr.rootSlotProps,function(){return[createVNode("button",{type:"button",class:_r.suit("button"),title:_r.state.isBrowserSupported?$r.buttonTitle:$r.disabledButtonTitle,disabled:!_r.state.isBrowserSupported,onClick:Fe[1]||(Fe[1]=function(){for(var Vr=[],Wr=arguments.length;Wr--;)Vr[Wr]=arguments[Wr];return zr.handleClick&&zr.handleClick.apply(zr,Vr)})},[renderSlot(_r.$slots,"buttonText",zr.innerSlotProps,function(){return[zr.errorNotAllowed?(openBlock(),createBlock("svg",mergeProps({key:0},jr.buttonSvgAttrs),[r,u,a,d,p],16)):(openBlock(),createBlock("svg",mergeProps({key:1},jr.buttonSvgAttrs),[createVNode("path",{d:"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z",fill:_r.state.isListening?"currentColor":"none"},null,8,["fill"]),v,y,c],16))]})],10,["title","disabled"]),createVNode("div",{class:_r.suit("status")},[renderSlot(_r.$slots,"status",zr.innerSlotProps,function(){return[createVNode("p",null,toDisplayString(_r.state.voiceListeningState.transcript),1)]})],2)]})],2)):createCommentVNode("",!0)}e$2.render=x;var e$1={name:"AisRelevantSort",mixins:[t$6({name:"RelevantSort"}),n$4({connector:i$1},{$$widgetType:"ais.relevantSort"})],methods:{refine:function(){this.state.isRelevantSorted?this.state.refine(0):this.state.refine(void 0)}}};function l$1(_r,Fe,$r,Fr,jr,zr){return _r.state&&_r.state.isVirtualReplica?(openBlock(),createBlock("div",{key:0,class:_r.suit()},[renderSlot(_r.$slots,"default",{isRelevantSorted:_r.state.isRelevantSorted,refine:_r.state.refine},function(){return[createVNode("div",{class:_r.suit("text")},[renderSlot(_r.$slots,"text",{isRelevantSorted:_r.state.isRelevantSorted})],2),createVNode("button",{type:"button",class:_r.suit("button"),onClick:Fe[1]||(Fe[1]=function(Vr){return zr.refine()})},[renderSlot(_r.$slots,"button",{isRelevantSorted:_r.state.isRelevantSorted},function(){return[createTextVNode(toDisplayString(_r.state.isRelevantSorted?"See all results":"See relevant results"),1)]})],2)]})],2)):createCommentVNode("",!0)}e$1.render=l$1;var e={name:"AisDynamicWidgets",mixins:[n$4({connector:a$8},{$$widgetType:"ais.dynamicWidgets"}),t$6({name:"DynamicWidgets"})],props:{transformItems:{type:Function,default:void 0},facets:{type:Array,default:void 0},maxValuesPerFacet:{type:Number,default:void 0}},render:n$6(function(_r){var Fe=this,$r=new Map;if((s$7(this)||[]).forEach(function(jr){var zr=function Vr(Wr){var Kr,Gr=Wr.props;if(Gr){if(Gr.attribute)return Gr.attribute;if(Array.isArray(Gr.attributes))return Gr.attributes[0]}if(Kr=Wr.children&&Wr.children.default&&Wr.children.default(),Array.isArray(Kr))return Kr.reduce(function(Yr,Qr){return Yr||Vr(Qr)},void 0)}(jr);zr&&$r.set(zr,_r("div",{key:zr,class:[Fe.suit("widget")]},[jr]))}),!this.state){var Fr=[];return $r.forEach(function(jr){return Fr.push(jr)}),_r("div",e$B({class:[this.suit()]},{attrs:{hidden:!0}}),Fr)}return _r("div",{class:[this.suit()]},this.state.attributesToRender.map(function(jr){return $r.get(jr)}))}),computed:{widgetParams:function(){return{transformItems:this.transformItems,facets:this.facets,maxValuesPerFacet:this.maxValuesPerFacet,widgets:[]}}}},ExperimentalDynamicWidgets=Object.assign({},e,{name:"AisExperimentalDynamicWidgets",mounted:function(){a$9("Use AisDynamicWidgets instead of AisExperimentalDynamicWidgets.")}}),n$1=Object.freeze(Object.defineProperty({__proto__:null,AisAutocomplete:e$w,AisBreadcrumb:e$v,AisClearRefinements:e$u,AisConfigure:Configure,AisExperimentalConfigureRelatedItems:ConfigureRelatedItems,AisCurrentRefinements:e$t,AisHierarchicalMenu:e$r,AisHighlight:e$n,AisHits:e$m,AisHitsPerPage:e$l,AisIndex:Index,AisInstantSearch:InstantSearch,AisInstantSearchSsr:InstantSearchSsr,AisInfiniteHits:e$k,AisMenu:e$j,AisMenuSelect:e$i,AisNumericMenu:e$h,AisPagination:e$g,AisPanel:e$f,AisPoweredBy:e$e,AisQueryRuleContext:QueryRuleContext,AisQueryRuleCustomData:e$d,AisRangeInput:e$c,AisRatingMenu:e$b,AisRefinementList:e$9,AisStateResults:e$8,AisSearchBox:e$7,AisSnippet:e$6,AisSortBy:e$4,AisStats:t,AisToggleRefinement:e$3,AisVoiceSearch:e$2,AisRelevantSort:e$1,AisDynamicWidgets:e,AisExperimentalDynamicWidgets:ExperimentalDynamicWidgets},Symbol.toStringTag,{value:"Module"})),o={install:function(_r){Object.keys(n$1).forEach(function(Fe){_r.component(n$1[Fe].name,n$1[Fe])})}};const _hoisted_1=["value","onInput"],_hoisted_2={class:"p-2 flex"},_hoisted_3=["href"],_hoisted_4={class:"w-10 mr-4 shrink-0"},_hoisted_5={class:"pt-[150%] relative"},_hoisted_6=["data-src"],_hoisted_7={class:"leading-none"},_hoisted_8={class:"line-clamp-1 text-ellipsis overflow-hidden pb-1 leading-tight"},_hoisted_9={class:"line-clamp-1 text-ellipsis overflow-hidden pb-1 leading-tight"},_hoisted_10={class:"uppercase text-[16px]"},_hoisted_11={key:0},_hoisted_12=["href"],_sfc_main$1={__name:"SearchBar",props:{author:String},setup(_r){const Fe=_r,Fr=new TypesenseInstantSearchAdapter({server:{apiKey:"deE9bYxswOMCQPr9iX6aPo8MMy0XmdgR",nodes:[{host:"tym53i89rhszwx21p-1.a1.typesense.net",path:"",port:"443",protocol:"https"}],cacheSearchResultsForSeconds:2*60},additionalSearchParameters:{per_page:5,query_by:"extra,authors,title,isbn,translators",num_typos:"2,2,2,0,2",sort_by:"curated:desc,_text_match(buckets: 20):desc,stock:desc",filter_by:Fe.author?`authors:${Fe.author}`:"",prioritize_exact_match:!1}}).searchClient;onMounted(()=>{}),ref("");const jr=Yr=>{zr.value.value="",zr.value.dispatchEvent(new Event("input")),window.swup.loadPage({url:Yr.target.parentElement.closest("a").href})},zr=ref(null);document.querySelector("body").addEventListener("click",function(Yr){Yr.target.classList.contains("ais-Autocomplete-input")||setTimeout(function(){zr.value.value="",zr.value.dispatchEvent(new Event("input"))},150)},!0);const Vr=()=>{window.swup.loadPage({url:"/search?query="+zr.value.value}),zr.value.value="",zr.value.dispatchEvent(new Event("input"))},Wr=Yr=>{let Qr="/books";return Yr.broadCategory=="Merch"&&(Qr="/merch"),Kr(Yr)&&(Qr="/rare-books"),Qr},Kr=Yr=>Yr.category.includes("Rare Books"),Gr=Yr=>{let Qr="";return Yr.broadCategory=="Merch"||Yr.category.includes("Rare Books")||Yr.imgUrl!==void 0?Qr=Yr.imgUrl:Qr="https://covers.shakespeareandcompany.com/"+Yr.isbn.slice(0,8)+"/"+Yr.isbn+".jpg",Qr};return(Yr,Qr)=>{const Jr=resolveComponent("ais-instant-search");return openBlock(),createBlock(Jr,{"class-names":{"ais-InstantSearch":"w-full bg-white relative"},"search-client":unref(Fr),"index-name":"books"},{default:withCtx(()=>[createVNode(unref(e$w),null,{default:withCtx(({currentRefinement:Zr,indices:tn,refine:en})=>[createBaseVNode("input",{onKeyup:Qr[0]||(Qr[0]=withKeys(rn=>Vr(),["enter"])),class:"appearance-none rounded-none ais-Autocomplete-input w-full text-r22 p-2 py-1 focus:outline-none border-green border",type:"text",ref_key:"searchBox",ref:zr,"aria-label":"Search",value:Zr,placeholder:"Search by title, author or ISBN",onInput:rn=>en(rn.currentTarget.value)},null,40,_hoisted_1),Zr?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(tn,rn=>(openBlock(),createElementBlock("ul",{class:"absolute z-20 text-r22 bg-white border-green border-l border-r border-b w-full",key:rn.indexId},[createBaseVNode("li",_hoisted_2,[createBaseVNode("ul",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(rn.hits,nn=>(openBlock(),createElementBlock("li",{key:nn.objectID,class:"ais-Hits-item flex items-center"},[createBaseVNode("a",{onClick:Qr[1]||(Qr[1]=withModifiers(on=>jr(on),["prevent"])),class:"hover:underline flex mb-2",href:Wr(nn)+"/"+nn.url},[createBaseVNode("div",_hoisted_4,[createBaseVNode("div",_hoisted_5,[createBaseVNode("img",{onerror:"this.src='/img/book-placeholder.png'","data-src":Gr(nn),alt:"Book cover",class:"lazyload shadow absolute w-full h-full top-0 left-0 object-contain"},null,8,_hoisted_6)])]),createBaseVNode("div",_hoisted_7,[createBaseVNode("div",_hoisted_8,toDisplayString(nn.title),1),createBaseVNode("div",_hoisted_9,[(openBlock(!0),createElementBlock(Fragment,null,renderList(nn.authors,(on,un)=>(openBlock(),createElementBlock("span",_hoisted_10,[createTextVNode(toDisplayString(on)+" ",1),un!=Object.keys(nn.authors).length-1?(openBlock(),createElementBlock("span",_hoisted_11,", ")):createCommentVNode("",!0)]))),256))])])],8,_hoisted_3)]))),128)),createBaseVNode("li",null,[createBaseVNode("a",{onClick:Qr[2]||(Qr[2]=withModifiers(nn=>Vr(),["prevent"])),class:"hover:underline",href:"/search?query="+Zr},"See all results",8,_hoisted_12)])])])]))),128)):createCommentVNode("",!0)]),_:1})]),_:1},8,["search-client"])}}};/*!
 * @kurkle/color v0.3.2
 * https://github.com/kurkle/color#readme
 * (c) 2023 Jukka Kurkela
 * Released under the MIT License
 */function round(_r){return _r+.5|0}const lim=(_r,Fe,$r)=>Math.max(Math.min(_r,$r),Fe);function p2b(_r){return lim(round(_r*2.55),0,255)}function n2b(_r){return lim(round(_r*255),0,255)}function b2n(_r){return lim(round(_r/2.55)/100,0,1)}function n2p(_r){return lim(round(_r*100),0,100)}const map$1={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},hex=[..."0123456789ABCDEF"],h1=_r=>hex[_r&15],h2=_r=>hex[(_r&240)>>4]+hex[_r&15],eq=_r=>(_r&240)>>4===(_r&15),isShort=_r=>eq(_r.r)&&eq(_r.g)&&eq(_r.b)&&eq(_r.a);function hexParse(_r){var Fe=_r.length,$r;return _r[0]==="#"&&(Fe===4||Fe===5?$r={r:255&map$1[_r[1]]*17,g:255&map$1[_r[2]]*17,b:255&map$1[_r[3]]*17,a:Fe===5?map$1[_r[4]]*17:255}:(Fe===7||Fe===9)&&($r={r:map$1[_r[1]]<<4|map$1[_r[2]],g:map$1[_r[3]]<<4|map$1[_r[4]],b:map$1[_r[5]]<<4|map$1[_r[6]],a:Fe===9?map$1[_r[7]]<<4|map$1[_r[8]]:255})),$r}const alpha=(_r,Fe)=>_r<255?Fe(_r):"";function hexString(_r){var Fe=isShort(_r)?h1:h2;return _r?"#"+Fe(_r.r)+Fe(_r.g)+Fe(_r.b)+alpha(_r.a,Fe):void 0}const HUE_RE=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function hsl2rgbn(_r,Fe,$r){const Fr=Fe*Math.min($r,1-$r),jr=(zr,Vr=(zr+_r/30)%12)=>$r-Fr*Math.max(Math.min(Vr-3,9-Vr,1),-1);return[jr(0),jr(8),jr(4)]}function hsv2rgbn(_r,Fe,$r){const Fr=(jr,zr=(jr+_r/60)%6)=>$r-$r*Fe*Math.max(Math.min(zr,4-zr,1),0);return[Fr(5),Fr(3),Fr(1)]}function hwb2rgbn(_r,Fe,$r){const Fr=hsl2rgbn(_r,1,.5);let jr;for(Fe+$r>1&&(jr=1/(Fe+$r),Fe*=jr,$r*=jr),jr=0;jr<3;jr++)Fr[jr]*=1-Fe-$r,Fr[jr]+=Fe;return Fr}function hueValue(_r,Fe,$r,Fr,jr){return _r===jr?(Fe-$r)/Fr+(Fe<$r?6:0):Fe===jr?($r-_r)/Fr+2:(_r-Fe)/Fr+4}function rgb2hsl(_r){const $r=_r.r/255,Fr=_r.g/255,jr=_r.b/255,zr=Math.max($r,Fr,jr),Vr=Math.min($r,Fr,jr),Wr=(zr+Vr)/2;let Kr,Gr,Yr;return zr!==Vr&&(Yr=zr-Vr,Gr=Wr>.5?Yr/(2-zr-Vr):Yr/(zr+Vr),Kr=hueValue($r,Fr,jr,Yr,zr),Kr=Kr*60+.5),[Kr|0,Gr||0,Wr]}function calln(_r,Fe,$r,Fr){return(Array.isArray(Fe)?_r(Fe[0],Fe[1],Fe[2]):_r(Fe,$r,Fr)).map(n2b)}function hsl2rgb(_r,Fe,$r){return calln(hsl2rgbn,_r,Fe,$r)}function hwb2rgb(_r,Fe,$r){return calln(hwb2rgbn,_r,Fe,$r)}function hsv2rgb(_r,Fe,$r){return calln(hsv2rgbn,_r,Fe,$r)}function hue(_r){return(_r%360+360)%360}function hueParse(_r){const Fe=HUE_RE.exec(_r);let $r=255,Fr;if(!Fe)return;Fe[5]!==Fr&&($r=Fe[6]?p2b(+Fe[5]):n2b(+Fe[5]));const jr=hue(+Fe[2]),zr=+Fe[3]/100,Vr=+Fe[4]/100;return Fe[1]==="hwb"?Fr=hwb2rgb(jr,zr,Vr):Fe[1]==="hsv"?Fr=hsv2rgb(jr,zr,Vr):Fr=hsl2rgb(jr,zr,Vr),{r:Fr[0],g:Fr[1],b:Fr[2],a:$r}}function rotate(_r,Fe){var $r=rgb2hsl(_r);$r[0]=hue($r[0]+Fe),$r=hsl2rgb($r),_r.r=$r[0],_r.g=$r[1],_r.b=$r[2]}function hslString(_r){if(!_r)return;const Fe=rgb2hsl(_r),$r=Fe[0],Fr=n2p(Fe[1]),jr=n2p(Fe[2]);return _r.a<255?`hsla(${$r}, ${Fr}%, ${jr}%, ${b2n(_r.a)})`:`hsl(${$r}, ${Fr}%, ${jr}%)`}const map={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},names$1={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function unpack(){const _r={},Fe=Object.keys(names$1),$r=Object.keys(map);let Fr,jr,zr,Vr,Wr;for(Fr=0;Fr<Fe.length;Fr++){for(Vr=Wr=Fe[Fr],jr=0;jr<$r.length;jr++)zr=$r[jr],Wr=Wr.replace(zr,map[zr]);zr=parseInt(names$1[Vr],16),_r[Wr]=[zr>>16&255,zr>>8&255,zr&255]}return _r}let names;function nameParse(_r){names||(names=unpack(),names.transparent=[0,0,0,0]);const Fe=names[_r.toLowerCase()];return Fe&&{r:Fe[0],g:Fe[1],b:Fe[2],a:Fe.length===4?Fe[3]:255}}const RGB_RE=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function rgbParse(_r){const Fe=RGB_RE.exec(_r);let $r=255,Fr,jr,zr;if(!!Fe){if(Fe[7]!==Fr){const Vr=+Fe[7];$r=Fe[8]?p2b(Vr):lim(Vr*255,0,255)}return Fr=+Fe[1],jr=+Fe[3],zr=+Fe[5],Fr=255&(Fe[2]?p2b(Fr):lim(Fr,0,255)),jr=255&(Fe[4]?p2b(jr):lim(jr,0,255)),zr=255&(Fe[6]?p2b(zr):lim(zr,0,255)),{r:Fr,g:jr,b:zr,a:$r}}}function rgbString(_r){return _r&&(_r.a<255?`rgba(${_r.r}, ${_r.g}, ${_r.b}, ${b2n(_r.a)})`:`rgb(${_r.r}, ${_r.g}, ${_r.b})`)}const to=_r=>_r<=.0031308?_r*12.92:Math.pow(_r,1/2.4)*1.055-.055,from=_r=>_r<=.04045?_r/12.92:Math.pow((_r+.055)/1.055,2.4);function interpolate$1(_r,Fe,$r){const Fr=from(b2n(_r.r)),jr=from(b2n(_r.g)),zr=from(b2n(_r.b));return{r:n2b(to(Fr+$r*(from(b2n(Fe.r))-Fr))),g:n2b(to(jr+$r*(from(b2n(Fe.g))-jr))),b:n2b(to(zr+$r*(from(b2n(Fe.b))-zr))),a:_r.a+$r*(Fe.a-_r.a)}}function modHSL(_r,Fe,$r){if(_r){let Fr=rgb2hsl(_r);Fr[Fe]=Math.max(0,Math.min(Fr[Fe]+Fr[Fe]*$r,Fe===0?360:1)),Fr=hsl2rgb(Fr),_r.r=Fr[0],_r.g=Fr[1],_r.b=Fr[2]}}function clone$3(_r,Fe){return _r&&Object.assign(Fe||{},_r)}function fromObject(_r){var Fe={r:0,g:0,b:0,a:255};return Array.isArray(_r)?_r.length>=3&&(Fe={r:_r[0],g:_r[1],b:_r[2],a:255},_r.length>3&&(Fe.a=n2b(_r[3]))):(Fe=clone$3(_r,{r:0,g:0,b:0,a:1}),Fe.a=n2b(Fe.a)),Fe}function functionParse(_r){return _r.charAt(0)==="r"?rgbParse(_r):hueParse(_r)}class Color{constructor(Fe){if(Fe instanceof Color)return Fe;const $r=typeof Fe;let Fr;$r==="object"?Fr=fromObject(Fe):$r==="string"&&(Fr=hexParse(Fe)||nameParse(Fe)||functionParse(Fe)),this._rgb=Fr,this._valid=!!Fr}get valid(){return this._valid}get rgb(){var Fe=clone$3(this._rgb);return Fe&&(Fe.a=b2n(Fe.a)),Fe}set rgb(Fe){this._rgb=fromObject(Fe)}rgbString(){return this._valid?rgbString(this._rgb):void 0}hexString(){return this._valid?hexString(this._rgb):void 0}hslString(){return this._valid?hslString(this._rgb):void 0}mix(Fe,$r){if(Fe){const Fr=this.rgb,jr=Fe.rgb;let zr;const Vr=$r===zr?.5:$r,Wr=2*Vr-1,Kr=Fr.a-jr.a,Gr=((Wr*Kr===-1?Wr:(Wr+Kr)/(1+Wr*Kr))+1)/2;zr=1-Gr,Fr.r=255&Gr*Fr.r+zr*jr.r+.5,Fr.g=255&Gr*Fr.g+zr*jr.g+.5,Fr.b=255&Gr*Fr.b+zr*jr.b+.5,Fr.a=Vr*Fr.a+(1-Vr)*jr.a,this.rgb=Fr}return this}interpolate(Fe,$r){return Fe&&(this._rgb=interpolate$1(this._rgb,Fe._rgb,$r)),this}clone(){return new Color(this.rgb)}alpha(Fe){return this._rgb.a=n2b(Fe),this}clearer(Fe){const $r=this._rgb;return $r.a*=1-Fe,this}greyscale(){const Fe=this._rgb,$r=round(Fe.r*.3+Fe.g*.59+Fe.b*.11);return Fe.r=Fe.g=Fe.b=$r,this}opaquer(Fe){const $r=this._rgb;return $r.a*=1+Fe,this}negate(){const Fe=this._rgb;return Fe.r=255-Fe.r,Fe.g=255-Fe.g,Fe.b=255-Fe.b,this}lighten(Fe){return modHSL(this._rgb,2,Fe),this}darken(Fe){return modHSL(this._rgb,2,-Fe),this}saturate(Fe){return modHSL(this._rgb,1,Fe),this}desaturate(Fe){return modHSL(this._rgb,1,-Fe),this}rotate(Fe){return rotate(this._rgb,Fe),this}}/*!
 * Chart.js v4.3.0
 * https://www.chartjs.org
 * (c) 2023 Chart.js Contributors
 * Released under the MIT License
 */function noop(){}const uid=(()=>{let _r=0;return()=>_r++})();function isNullOrUndef(_r){return _r===null||typeof _r=="undefined"}function isArray(_r){if(Array.isArray&&Array.isArray(_r))return!0;const Fe=Object.prototype.toString.call(_r);return Fe.slice(0,7)==="[object"&&Fe.slice(-6)==="Array]"}function isObject(_r){return _r!==null&&Object.prototype.toString.call(_r)==="[object Object]"}function isNumberFinite(_r){return(typeof _r=="number"||_r instanceof Number)&&isFinite(+_r)}function finiteOrDefault(_r,Fe){return isNumberFinite(_r)?_r:Fe}function valueOrDefault(_r,Fe){return typeof _r=="undefined"?Fe:_r}const toDimension=(_r,Fe)=>typeof _r=="string"&&_r.endsWith("%")?parseFloat(_r)/100*Fe:+_r;function callback(_r,Fe,$r){if(_r&&typeof _r.call=="function")return _r.apply($r,Fe)}function each(_r,Fe,$r,Fr){let jr,zr,Vr;if(isArray(_r))if(zr=_r.length,Fr)for(jr=zr-1;jr>=0;jr--)Fe.call($r,_r[jr],jr);else for(jr=0;jr<zr;jr++)Fe.call($r,_r[jr],jr);else if(isObject(_r))for(Vr=Object.keys(_r),zr=Vr.length,jr=0;jr<zr;jr++)Fe.call($r,_r[Vr[jr]],Vr[jr])}function _elementsEqual(_r,Fe){let $r,Fr,jr,zr;if(!_r||!Fe||_r.length!==Fe.length)return!1;for($r=0,Fr=_r.length;$r<Fr;++$r)if(jr=_r[$r],zr=Fe[$r],jr.datasetIndex!==zr.datasetIndex||jr.index!==zr.index)return!1;return!0}function clone$2(_r){if(isArray(_r))return _r.map(clone$2);if(isObject(_r)){const Fe=Object.create(null),$r=Object.keys(_r),Fr=$r.length;let jr=0;for(;jr<Fr;++jr)Fe[$r[jr]]=clone$2(_r[$r[jr]]);return Fe}return _r}function isValidKey(_r){return["__proto__","prototype","constructor"].indexOf(_r)===-1}function _merger(_r,Fe,$r,Fr){if(!isValidKey(_r))return;const jr=Fe[_r],zr=$r[_r];isObject(jr)&&isObject(zr)?merge(jr,zr,Fr):Fe[_r]=clone$2(zr)}function merge(_r,Fe,$r){const Fr=isArray(Fe)?Fe:[Fe],jr=Fr.length;if(!isObject(_r))return _r;$r=$r||{};const zr=$r.merger||_merger;let Vr;for(let Wr=0;Wr<jr;++Wr){if(Vr=Fr[Wr],!isObject(Vr))continue;const Kr=Object.keys(Vr);for(let Gr=0,Yr=Kr.length;Gr<Yr;++Gr)zr(Kr[Gr],_r,Vr,$r)}return _r}function mergeIf(_r,Fe){return merge(_r,Fe,{merger:_mergerIf})}function _mergerIf(_r,Fe,$r){if(!isValidKey(_r))return;const Fr=Fe[_r],jr=$r[_r];isObject(Fr)&&isObject(jr)?mergeIf(Fr,jr):Object.prototype.hasOwnProperty.call(Fe,_r)||(Fe[_r]=clone$2(jr))}const keyResolvers={"":_r=>_r,x:_r=>_r.x,y:_r=>_r.y};function _splitKey(_r){const Fe=_r.split("."),$r=[];let Fr="";for(const jr of Fe)Fr+=jr,Fr.endsWith("\\")?Fr=Fr.slice(0,-1)+".":($r.push(Fr),Fr="");return $r}function _getKeyResolver(_r){const Fe=_splitKey(_r);return $r=>{for(const Fr of Fe){if(Fr==="")break;$r=$r&&$r[Fr]}return $r}}function resolveObjectKey(_r,Fe){return(keyResolvers[Fe]||(keyResolvers[Fe]=_getKeyResolver(Fe)))(_r)}function _capitalize(_r){return _r.charAt(0).toUpperCase()+_r.slice(1)}const defined=_r=>typeof _r!="undefined",isFunction=_r=>typeof _r=="function",setsEqual=(_r,Fe)=>{if(_r.size!==Fe.size)return!1;for(const $r of _r)if(!Fe.has($r))return!1;return!0};function _isClickEvent(_r){return _r.type==="mouseup"||_r.type==="click"||_r.type==="contextmenu"}const PI=Math.PI,TAU=2*PI,PITAU=TAU+PI,INFINITY=Number.POSITIVE_INFINITY,RAD_PER_DEG=PI/180,HALF_PI=PI/2,QUARTER_PI=PI/4,TWO_THIRDS_PI=PI*2/3,log10=Math.log10,sign=Math.sign;function almostEquals(_r,Fe,$r){return Math.abs(_r-Fe)<$r}function niceNum(_r){const Fe=Math.round(_r);_r=almostEquals(_r,Fe,_r/1e3)?Fe:_r;const $r=Math.pow(10,Math.floor(log10(_r))),Fr=_r/$r;return(Fr<=1?1:Fr<=2?2:Fr<=5?5:10)*$r}function _factorize(_r){const Fe=[],$r=Math.sqrt(_r);let Fr;for(Fr=1;Fr<$r;Fr++)_r%Fr===0&&(Fe.push(Fr),Fe.push(_r/Fr));return $r===($r|0)&&Fe.push($r),Fe.sort((jr,zr)=>jr-zr).pop(),Fe}function isNumber$1(_r){return!isNaN(parseFloat(_r))&&isFinite(_r)}function almostWhole(_r,Fe){const $r=Math.round(_r);return $r-Fe<=_r&&$r+Fe>=_r}function _setMinAndMaxByKey(_r,Fe,$r){let Fr,jr,zr;for(Fr=0,jr=_r.length;Fr<jr;Fr++)zr=_r[Fr][$r],isNaN(zr)||(Fe.min=Math.min(Fe.min,zr),Fe.max=Math.max(Fe.max,zr))}function toRadians(_r){return _r*(PI/180)}function toDegrees(_r){return _r*(180/PI)}function _decimalPlaces(_r){if(!isNumberFinite(_r))return;let Fe=1,$r=0;for(;Math.round(_r*Fe)/Fe!==_r;)Fe*=10,$r++;return $r}function getAngleFromPoint(_r,Fe){const $r=Fe.x-_r.x,Fr=Fe.y-_r.y,jr=Math.sqrt($r*$r+Fr*Fr);let zr=Math.atan2(Fr,$r);return zr<-.5*PI&&(zr+=TAU),{angle:zr,distance:jr}}function distanceBetweenPoints(_r,Fe){return Math.sqrt(Math.pow(Fe.x-_r.x,2)+Math.pow(Fe.y-_r.y,2))}function _angleDiff(_r,Fe){return(_r-Fe+PITAU)%TAU-PI}function _normalizeAngle(_r){return(_r%TAU+TAU)%TAU}function _angleBetween(_r,Fe,$r,Fr){const jr=_normalizeAngle(_r),zr=_normalizeAngle(Fe),Vr=_normalizeAngle($r),Wr=_normalizeAngle(zr-jr),Kr=_normalizeAngle(Vr-jr),Gr=_normalizeAngle(jr-zr),Yr=_normalizeAngle(jr-Vr);return jr===zr||jr===Vr||Fr&&zr===Vr||Wr>Kr&&Gr<Yr}function _limitValue(_r,Fe,$r){return Math.max(Fe,Math.min($r,_r))}function _int16Range(_r){return _limitValue(_r,-32768,32767)}function _isBetween(_r,Fe,$r,Fr=1e-6){return _r>=Math.min(Fe,$r)-Fr&&_r<=Math.max(Fe,$r)+Fr}function _lookup(_r,Fe,$r){$r=$r||(Vr=>_r[Vr]<Fe);let Fr=_r.length-1,jr=0,zr;for(;Fr-jr>1;)zr=jr+Fr>>1,$r(zr)?jr=zr:Fr=zr;return{lo:jr,hi:Fr}}const _lookupByKey=(_r,Fe,$r,Fr)=>_lookup(_r,$r,Fr?jr=>{const zr=_r[jr][Fe];return zr<$r||zr===$r&&_r[jr+1][Fe]===$r}:jr=>_r[jr][Fe]<$r),_rlookupByKey=(_r,Fe,$r)=>_lookup(_r,$r,Fr=>_r[Fr][Fe]>=$r);function _filterBetween(_r,Fe,$r){let Fr=0,jr=_r.length;for(;Fr<jr&&_r[Fr]<Fe;)Fr++;for(;jr>Fr&&_r[jr-1]>$r;)jr--;return Fr>0||jr<_r.length?_r.slice(Fr,jr):_r}const arrayEvents=["push","pop","shift","splice","unshift"];function listenArrayEvents(_r,Fe){if(_r._chartjs){_r._chartjs.listeners.push(Fe);return}Object.defineProperty(_r,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[Fe]}}),arrayEvents.forEach($r=>{const Fr="_onData"+_capitalize($r),jr=_r[$r];Object.defineProperty(_r,$r,{configurable:!0,enumerable:!1,value(...zr){const Vr=jr.apply(this,zr);return _r._chartjs.listeners.forEach(Wr=>{typeof Wr[Fr]=="function"&&Wr[Fr](...zr)}),Vr}})})}function unlistenArrayEvents(_r,Fe){const $r=_r._chartjs;if(!$r)return;const Fr=$r.listeners,jr=Fr.indexOf(Fe);jr!==-1&&Fr.splice(jr,1),!(Fr.length>0)&&(arrayEvents.forEach(zr=>{delete _r[zr]}),delete _r._chartjs)}function _arrayUnique(_r){const Fe=new Set(_r);return Fe.size===_r.length?_r:Array.from(Fe)}const requestAnimFrame=function(){return typeof window=="undefined"?function(_r){return _r()}:window.requestAnimationFrame}();function throttled(_r,Fe){let $r=[],Fr=!1;return function(...jr){$r=jr,Fr||(Fr=!0,requestAnimFrame.call(window,()=>{Fr=!1,_r.apply(Fe,$r)}))}}function debounce(_r,Fe){let $r;return function(...Fr){return Fe?(clearTimeout($r),$r=setTimeout(_r,Fe,Fr)):_r.apply(this,Fr),Fe}}const _toLeftRightCenter=_r=>_r==="start"?"left":_r==="end"?"right":"center",_alignStartEnd=(_r,Fe,$r)=>_r==="start"?Fe:_r==="end"?$r:(Fe+$r)/2,_textX=(_r,Fe,$r,Fr)=>_r===(Fr?"left":"right")?$r:_r==="center"?(Fe+$r)/2:Fe;function _getStartAndCountOfVisiblePoints(_r,Fe,$r){const Fr=Fe.length;let jr=0,zr=Fr;if(_r._sorted){const{iScale:Vr,_parsed:Wr}=_r,Kr=Vr.axis,{min:Gr,max:Yr,minDefined:Qr,maxDefined:Jr}=Vr.getUserBounds();Qr&&(jr=_limitValue(Math.min(_lookupByKey(Wr,Vr.axis,Gr).lo,$r?Fr:_lookupByKey(Fe,Kr,Vr.getPixelForValue(Gr)).lo),0,Fr-1)),Jr?zr=_limitValue(Math.max(_lookupByKey(Wr,Vr.axis,Yr,!0).hi+1,$r?0:_lookupByKey(Fe,Kr,Vr.getPixelForValue(Yr),!0).hi+1),jr,Fr)-jr:zr=Fr-jr}return{start:jr,count:zr}}function _scaleRangesChanged(_r){const{xScale:Fe,yScale:$r,_scaleRanges:Fr}=_r,jr={xmin:Fe.min,xmax:Fe.max,ymin:$r.min,ymax:$r.max};if(!Fr)return _r._scaleRanges=jr,!0;const zr=Fr.xmin!==Fe.min||Fr.xmax!==Fe.max||Fr.ymin!==$r.min||Fr.ymax!==$r.max;return Object.assign(Fr,jr),zr}const atEdge=_r=>_r===0||_r===1,elasticIn=(_r,Fe,$r)=>-(Math.pow(2,10*(_r-=1))*Math.sin((_r-Fe)*TAU/$r)),elasticOut=(_r,Fe,$r)=>Math.pow(2,-10*_r)*Math.sin((_r-Fe)*TAU/$r)+1,effects={linear:_r=>_r,easeInQuad:_r=>_r*_r,easeOutQuad:_r=>-_r*(_r-2),easeInOutQuad:_r=>(_r/=.5)<1?.5*_r*_r:-.5*(--_r*(_r-2)-1),easeInCubic:_r=>_r*_r*_r,easeOutCubic:_r=>(_r-=1)*_r*_r+1,easeInOutCubic:_r=>(_r/=.5)<1?.5*_r*_r*_r:.5*((_r-=2)*_r*_r+2),easeInQuart:_r=>_r*_r*_r*_r,easeOutQuart:_r=>-((_r-=1)*_r*_r*_r-1),easeInOutQuart:_r=>(_r/=.5)<1?.5*_r*_r*_r*_r:-.5*((_r-=2)*_r*_r*_r-2),easeInQuint:_r=>_r*_r*_r*_r*_r,easeOutQuint:_r=>(_r-=1)*_r*_r*_r*_r+1,easeInOutQuint:_r=>(_r/=.5)<1?.5*_r*_r*_r*_r*_r:.5*((_r-=2)*_r*_r*_r*_r+2),easeInSine:_r=>-Math.cos(_r*HALF_PI)+1,easeOutSine:_r=>Math.sin(_r*HALF_PI),easeInOutSine:_r=>-.5*(Math.cos(PI*_r)-1),easeInExpo:_r=>_r===0?0:Math.pow(2,10*(_r-1)),easeOutExpo:_r=>_r===1?1:-Math.pow(2,-10*_r)+1,easeInOutExpo:_r=>atEdge(_r)?_r:_r<.5?.5*Math.pow(2,10*(_r*2-1)):.5*(-Math.pow(2,-10*(_r*2-1))+2),easeInCirc:_r=>_r>=1?_r:-(Math.sqrt(1-_r*_r)-1),easeOutCirc:_r=>Math.sqrt(1-(_r-=1)*_r),easeInOutCirc:_r=>(_r/=.5)<1?-.5*(Math.sqrt(1-_r*_r)-1):.5*(Math.sqrt(1-(_r-=2)*_r)+1),easeInElastic:_r=>atEdge(_r)?_r:elasticIn(_r,.075,.3),easeOutElastic:_r=>atEdge(_r)?_r:elasticOut(_r,.075,.3),easeInOutElastic(_r){return atEdge(_r)?_r:_r<.5?.5*elasticIn(_r*2,.1125,.45):.5+.5*elasticOut(_r*2-1,.1125,.45)},easeInBack(_r){return _r*_r*((1.70158+1)*_r-1.70158)},easeOutBack(_r){return(_r-=1)*_r*((1.70158+1)*_r+1.70158)+1},easeInOutBack(_r){let Fe=1.70158;return(_r/=.5)<1?.5*(_r*_r*(((Fe*=1.525)+1)*_r-Fe)):.5*((_r-=2)*_r*(((Fe*=1.525)+1)*_r+Fe)+2)},easeInBounce:_r=>1-effects.easeOutBounce(1-_r),easeOutBounce(_r){return _r<1/2.75?7.5625*_r*_r:_r<2/2.75?7.5625*(_r-=1.5/2.75)*_r+.75:_r<2.5/2.75?7.5625*(_r-=2.25/2.75)*_r+.9375:7.5625*(_r-=2.625/2.75)*_r+.984375},easeInOutBounce:_r=>_r<.5?effects.easeInBounce(_r*2)*.5:effects.easeOutBounce(_r*2-1)*.5+.5};function isPatternOrGradient(_r){if(_r&&typeof _r=="object"){const Fe=_r.toString();return Fe==="[object CanvasPattern]"||Fe==="[object CanvasGradient]"}return!1}function color(_r){return isPatternOrGradient(_r)?_r:new Color(_r)}function getHoverColor(_r){return isPatternOrGradient(_r)?_r:new Color(_r).saturate(.5).darken(.1).hexString()}const numbers=["x","y","borderWidth","radius","tension"],colors=["color","borderColor","backgroundColor"];function applyAnimationsDefaults(_r){_r.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),_r.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:Fe=>Fe!=="onProgress"&&Fe!=="onComplete"&&Fe!=="fn"}),_r.set("animations",{colors:{type:"color",properties:colors},numbers:{type:"number",properties:numbers}}),_r.describe("animations",{_fallback:"animation"}),_r.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:Fe=>Fe|0}}}})}function applyLayoutsDefaults(_r){_r.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const intlCache=new Map;function getNumberFormat(_r,Fe){Fe=Fe||{};const $r=_r+JSON.stringify(Fe);let Fr=intlCache.get($r);return Fr||(Fr=new Intl.NumberFormat(_r,Fe),intlCache.set($r,Fr)),Fr}function formatNumber(_r,Fe,$r){return getNumberFormat(Fe,$r).format(_r)}const formatters={values(_r){return isArray(_r)?_r:""+_r},numeric(_r,Fe,$r){if(_r===0)return"0";const Fr=this.chart.options.locale;let jr,zr=_r;if($r.length>1){const Gr=Math.max(Math.abs($r[0].value),Math.abs($r[$r.length-1].value));(Gr<1e-4||Gr>1e15)&&(jr="scientific"),zr=calculateDelta(_r,$r)}const Vr=log10(Math.abs(zr)),Wr=isNaN(Vr)?1:Math.max(Math.min(-1*Math.floor(Vr),20),0),Kr={notation:jr,minimumFractionDigits:Wr,maximumFractionDigits:Wr};return Object.assign(Kr,this.options.ticks.format),formatNumber(_r,Fr,Kr)},logarithmic(_r,Fe,$r){if(_r===0)return"0";const Fr=$r[Fe].significand||_r/Math.pow(10,Math.floor(log10(_r)));return[1,2,3,5,10,15].includes(Fr)||Fe>.8*$r.length?formatters.numeric.call(this,_r,Fe,$r):""}};function calculateDelta(_r,Fe){let $r=Fe.length>3?Fe[2].value-Fe[1].value:Fe[1].value-Fe[0].value;return Math.abs($r)>=1&&_r!==Math.floor(_r)&&($r=_r-Math.floor(_r)),$r}var Ticks={formatters};function applyScaleDefaults(_r){_r.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(Fe,$r)=>$r.lineWidth,tickColor:(Fe,$r)=>$r.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Ticks.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),_r.route("scale.ticks","color","","color"),_r.route("scale.grid","color","","borderColor"),_r.route("scale.border","color","","borderColor"),_r.route("scale.title","color","","color"),_r.describe("scale",{_fallback:!1,_scriptable:Fe=>!Fe.startsWith("before")&&!Fe.startsWith("after")&&Fe!=="callback"&&Fe!=="parser",_indexable:Fe=>Fe!=="borderDash"&&Fe!=="tickBorderDash"&&Fe!=="dash"}),_r.describe("scales",{_fallback:"scale"}),_r.describe("scale.ticks",{_scriptable:Fe=>Fe!=="backdropPadding"&&Fe!=="callback",_indexable:Fe=>Fe!=="backdropPadding"})}const overrides=Object.create(null),descriptors=Object.create(null);function getScope$1(_r,Fe){if(!Fe)return _r;const $r=Fe.split(".");for(let Fr=0,jr=$r.length;Fr<jr;++Fr){const zr=$r[Fr];_r=_r[zr]||(_r[zr]=Object.create(null))}return _r}function set(_r,Fe,$r){return typeof Fe=="string"?merge(getScope$1(_r,Fe),$r):merge(getScope$1(_r,""),Fe)}class Defaults{constructor(Fe,$r){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=Fr=>Fr.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(Fr,jr)=>getHoverColor(jr.backgroundColor),this.hoverBorderColor=(Fr,jr)=>getHoverColor(jr.borderColor),this.hoverColor=(Fr,jr)=>getHoverColor(jr.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(Fe),this.apply($r)}set(Fe,$r){return set(this,Fe,$r)}get(Fe){return getScope$1(this,Fe)}describe(Fe,$r){return set(descriptors,Fe,$r)}override(Fe,$r){return set(overrides,Fe,$r)}route(Fe,$r,Fr,jr){const zr=getScope$1(this,Fe),Vr=getScope$1(this,Fr),Wr="_"+$r;Object.defineProperties(zr,{[Wr]:{value:zr[$r],writable:!0},[$r]:{enumerable:!0,get(){const Kr=this[Wr],Gr=Vr[jr];return isObject(Kr)?Object.assign({},Gr,Kr):valueOrDefault(Kr,Gr)},set(Kr){this[Wr]=Kr}}})}apply(Fe){Fe.forEach($r=>$r(this))}}var defaults=new Defaults({_scriptable:_r=>!_r.startsWith("on"),_indexable:_r=>_r!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[applyAnimationsDefaults,applyLayoutsDefaults,applyScaleDefaults]);function toFontString(_r){return!_r||isNullOrUndef(_r.size)||isNullOrUndef(_r.family)?null:(_r.style?_r.style+" ":"")+(_r.weight?_r.weight+" ":"")+_r.size+"px "+_r.family}function _measureText(_r,Fe,$r,Fr,jr){let zr=Fe[jr];return zr||(zr=Fe[jr]=_r.measureText(jr).width,$r.push(jr)),zr>Fr&&(Fr=zr),Fr}function _longestText(_r,Fe,$r,Fr){Fr=Fr||{};let jr=Fr.data=Fr.data||{},zr=Fr.garbageCollect=Fr.garbageCollect||[];Fr.font!==Fe&&(jr=Fr.data={},zr=Fr.garbageCollect=[],Fr.font=Fe),_r.save(),_r.font=Fe;let Vr=0;const Wr=$r.length;let Kr,Gr,Yr,Qr,Jr;for(Kr=0;Kr<Wr;Kr++)if(Qr=$r[Kr],Qr!=null&&!isArray(Qr))Vr=_measureText(_r,jr,zr,Vr,Qr);else if(isArray(Qr))for(Gr=0,Yr=Qr.length;Gr<Yr;Gr++)Jr=Qr[Gr],Jr!=null&&!isArray(Jr)&&(Vr=_measureText(_r,jr,zr,Vr,Jr));_r.restore();const Zr=zr.length/2;if(Zr>$r.length){for(Kr=0;Kr<Zr;Kr++)delete jr[zr[Kr]];zr.splice(0,Zr)}return Vr}function _alignPixel(_r,Fe,$r){const Fr=_r.currentDevicePixelRatio,jr=$r!==0?Math.max($r/2,.5):0;return Math.round((Fe-jr)*Fr)/Fr+jr}function clearCanvas(_r,Fe){Fe=Fe||_r.getContext("2d"),Fe.save(),Fe.resetTransform(),Fe.clearRect(0,0,_r.width,_r.height),Fe.restore()}function drawPoint(_r,Fe,$r,Fr){drawPointLegend(_r,Fe,$r,Fr,null)}function drawPointLegend(_r,Fe,$r,Fr,jr){let zr,Vr,Wr,Kr,Gr,Yr,Qr,Jr;const Zr=Fe.pointStyle,tn=Fe.rotation,en=Fe.radius;let rn=(tn||0)*RAD_PER_DEG;if(Zr&&typeof Zr=="object"&&(zr=Zr.toString(),zr==="[object HTMLImageElement]"||zr==="[object HTMLCanvasElement]")){_r.save(),_r.translate($r,Fr),_r.rotate(rn),_r.drawImage(Zr,-Zr.width/2,-Zr.height/2,Zr.width,Zr.height),_r.restore();return}if(!(isNaN(en)||en<=0)){switch(_r.beginPath(),Zr){default:jr?_r.ellipse($r,Fr,jr/2,en,0,0,TAU):_r.arc($r,Fr,en,0,TAU),_r.closePath();break;case"triangle":Yr=jr?jr/2:en,_r.moveTo($r+Math.sin(rn)*Yr,Fr-Math.cos(rn)*en),rn+=TWO_THIRDS_PI,_r.lineTo($r+Math.sin(rn)*Yr,Fr-Math.cos(rn)*en),rn+=TWO_THIRDS_PI,_r.lineTo($r+Math.sin(rn)*Yr,Fr-Math.cos(rn)*en),_r.closePath();break;case"rectRounded":Gr=en*.516,Kr=en-Gr,Vr=Math.cos(rn+QUARTER_PI)*Kr,Qr=Math.cos(rn+QUARTER_PI)*(jr?jr/2-Gr:Kr),Wr=Math.sin(rn+QUARTER_PI)*Kr,Jr=Math.sin(rn+QUARTER_PI)*(jr?jr/2-Gr:Kr),_r.arc($r-Qr,Fr-Wr,Gr,rn-PI,rn-HALF_PI),_r.arc($r+Jr,Fr-Vr,Gr,rn-HALF_PI,rn),_r.arc($r+Qr,Fr+Wr,Gr,rn,rn+HALF_PI),_r.arc($r-Jr,Fr+Vr,Gr,rn+HALF_PI,rn+PI),_r.closePath();break;case"rect":if(!tn){Kr=Math.SQRT1_2*en,Yr=jr?jr/2:Kr,_r.rect($r-Yr,Fr-Kr,2*Yr,2*Kr);break}rn+=QUARTER_PI;case"rectRot":Qr=Math.cos(rn)*(jr?jr/2:en),Vr=Math.cos(rn)*en,Wr=Math.sin(rn)*en,Jr=Math.sin(rn)*(jr?jr/2:en),_r.moveTo($r-Qr,Fr-Wr),_r.lineTo($r+Jr,Fr-Vr),_r.lineTo($r+Qr,Fr+Wr),_r.lineTo($r-Jr,Fr+Vr),_r.closePath();break;case"crossRot":rn+=QUARTER_PI;case"cross":Qr=Math.cos(rn)*(jr?jr/2:en),Vr=Math.cos(rn)*en,Wr=Math.sin(rn)*en,Jr=Math.sin(rn)*(jr?jr/2:en),_r.moveTo($r-Qr,Fr-Wr),_r.lineTo($r+Qr,Fr+Wr),_r.moveTo($r+Jr,Fr-Vr),_r.lineTo($r-Jr,Fr+Vr);break;case"star":Qr=Math.cos(rn)*(jr?jr/2:en),Vr=Math.cos(rn)*en,Wr=Math.sin(rn)*en,Jr=Math.sin(rn)*(jr?jr/2:en),_r.moveTo($r-Qr,Fr-Wr),_r.lineTo($r+Qr,Fr+Wr),_r.moveTo($r+Jr,Fr-Vr),_r.lineTo($r-Jr,Fr+Vr),rn+=QUARTER_PI,Qr=Math.cos(rn)*(jr?jr/2:en),Vr=Math.cos(rn)*en,Wr=Math.sin(rn)*en,Jr=Math.sin(rn)*(jr?jr/2:en),_r.moveTo($r-Qr,Fr-Wr),_r.lineTo($r+Qr,Fr+Wr),_r.moveTo($r+Jr,Fr-Vr),_r.lineTo($r-Jr,Fr+Vr);break;case"line":Vr=jr?jr/2:Math.cos(rn)*en,Wr=Math.sin(rn)*en,_r.moveTo($r-Vr,Fr-Wr),_r.lineTo($r+Vr,Fr+Wr);break;case"dash":_r.moveTo($r,Fr),_r.lineTo($r+Math.cos(rn)*(jr?jr/2:en),Fr+Math.sin(rn)*en);break;case!1:_r.closePath();break}_r.fill(),Fe.borderWidth>0&&_r.stroke()}}function _isPointInArea(_r,Fe,$r){return $r=$r||.5,!Fe||_r&&_r.x>Fe.left-$r&&_r.x<Fe.right+$r&&_r.y>Fe.top-$r&&_r.y<Fe.bottom+$r}function clipArea(_r,Fe){_r.save(),_r.beginPath(),_r.rect(Fe.left,Fe.top,Fe.right-Fe.left,Fe.bottom-Fe.top),_r.clip()}function unclipArea(_r){_r.restore()}function _steppedLineTo(_r,Fe,$r,Fr,jr){if(!Fe)return _r.lineTo($r.x,$r.y);if(jr==="middle"){const zr=(Fe.x+$r.x)/2;_r.lineTo(zr,Fe.y),_r.lineTo(zr,$r.y)}else jr==="after"!=!!Fr?_r.lineTo(Fe.x,$r.y):_r.lineTo($r.x,Fe.y);_r.lineTo($r.x,$r.y)}function _bezierCurveTo(_r,Fe,$r,Fr){if(!Fe)return _r.lineTo($r.x,$r.y);_r.bezierCurveTo(Fr?Fe.cp1x:Fe.cp2x,Fr?Fe.cp1y:Fe.cp2y,Fr?$r.cp2x:$r.cp1x,Fr?$r.cp2y:$r.cp1y,$r.x,$r.y)}function setRenderOpts(_r,Fe){Fe.translation&&_r.translate(Fe.translation[0],Fe.translation[1]),isNullOrUndef(Fe.rotation)||_r.rotate(Fe.rotation),Fe.color&&(_r.fillStyle=Fe.color),Fe.textAlign&&(_r.textAlign=Fe.textAlign),Fe.textBaseline&&(_r.textBaseline=Fe.textBaseline)}function decorateText(_r,Fe,$r,Fr,jr){if(jr.strikethrough||jr.underline){const zr=_r.measureText(Fr),Vr=Fe-zr.actualBoundingBoxLeft,Wr=Fe+zr.actualBoundingBoxRight,Kr=$r-zr.actualBoundingBoxAscent,Gr=$r+zr.actualBoundingBoxDescent,Yr=jr.strikethrough?(Kr+Gr)/2:Gr;_r.strokeStyle=_r.fillStyle,_r.beginPath(),_r.lineWidth=jr.decorationWidth||2,_r.moveTo(Vr,Yr),_r.lineTo(Wr,Yr),_r.stroke()}}function drawBackdrop(_r,Fe){const $r=_r.fillStyle;_r.fillStyle=Fe.color,_r.fillRect(Fe.left,Fe.top,Fe.width,Fe.height),_r.fillStyle=$r}function renderText(_r,Fe,$r,Fr,jr,zr={}){const Vr=isArray(Fe)?Fe:[Fe],Wr=zr.strokeWidth>0&&zr.strokeColor!=="";let Kr,Gr;for(_r.save(),_r.font=jr.string,setRenderOpts(_r,zr),Kr=0;Kr<Vr.length;++Kr)Gr=Vr[Kr],zr.backdrop&&drawBackdrop(_r,zr.backdrop),Wr&&(zr.strokeColor&&(_r.strokeStyle=zr.strokeColor),isNullOrUndef(zr.strokeWidth)||(_r.lineWidth=zr.strokeWidth),_r.strokeText(Gr,$r,Fr,zr.maxWidth)),_r.fillText(Gr,$r,Fr,zr.maxWidth),decorateText(_r,$r,Fr,Gr,zr),Fr+=Number(jr.lineHeight);_r.restore()}function addRoundedRectPath(_r,Fe){const{x:$r,y:Fr,w:jr,h:zr,radius:Vr}=Fe;_r.arc($r+Vr.topLeft,Fr+Vr.topLeft,Vr.topLeft,-HALF_PI,PI,!0),_r.lineTo($r,Fr+zr-Vr.bottomLeft),_r.arc($r+Vr.bottomLeft,Fr+zr-Vr.bottomLeft,Vr.bottomLeft,PI,HALF_PI,!0),_r.lineTo($r+jr-Vr.bottomRight,Fr+zr),_r.arc($r+jr-Vr.bottomRight,Fr+zr-Vr.bottomRight,Vr.bottomRight,HALF_PI,0,!0),_r.lineTo($r+jr,Fr+Vr.topRight),_r.arc($r+jr-Vr.topRight,Fr+Vr.topRight,Vr.topRight,0,-HALF_PI,!0),_r.lineTo($r+Vr.topLeft,Fr)}const LINE_HEIGHT=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,FONT_STYLE=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function toLineHeight(_r,Fe){const $r=(""+_r).match(LINE_HEIGHT);if(!$r||$r[1]==="normal")return Fe*1.2;switch(_r=+$r[2],$r[3]){case"px":return _r;case"%":_r/=100;break}return Fe*_r}const numberOrZero=_r=>+_r||0;function _readValueToProps(_r,Fe){const $r={},Fr=isObject(Fe),jr=Fr?Object.keys(Fe):Fe,zr=isObject(_r)?Fr?Vr=>valueOrDefault(_r[Vr],_r[Fe[Vr]]):Vr=>_r[Vr]:()=>_r;for(const Vr of jr)$r[Vr]=numberOrZero(zr(Vr));return $r}function toTRBL(_r){return _readValueToProps(_r,{top:"y",right:"x",bottom:"y",left:"x"})}function toTRBLCorners(_r){return _readValueToProps(_r,["topLeft","topRight","bottomLeft","bottomRight"])}function toPadding(_r){const Fe=toTRBL(_r);return Fe.width=Fe.left+Fe.right,Fe.height=Fe.top+Fe.bottom,Fe}function toFont(_r,Fe){_r=_r||{},Fe=Fe||defaults.font;let $r=valueOrDefault(_r.size,Fe.size);typeof $r=="string"&&($r=parseInt($r,10));let Fr=valueOrDefault(_r.style,Fe.style);Fr&&!(""+Fr).match(FONT_STYLE)&&(console.warn('Invalid font style specified: "'+Fr+'"'),Fr=void 0);const jr={family:valueOrDefault(_r.family,Fe.family),lineHeight:toLineHeight(valueOrDefault(_r.lineHeight,Fe.lineHeight),$r),size:$r,style:Fr,weight:valueOrDefault(_r.weight,Fe.weight),string:""};return jr.string=toFontString(jr),jr}function resolve(_r,Fe,$r,Fr){let jr=!0,zr,Vr,Wr;for(zr=0,Vr=_r.length;zr<Vr;++zr)if(Wr=_r[zr],Wr!==void 0&&(Fe!==void 0&&typeof Wr=="function"&&(Wr=Wr(Fe),jr=!1),$r!==void 0&&isArray(Wr)&&(Wr=Wr[$r%Wr.length],jr=!1),Wr!==void 0))return Fr&&!jr&&(Fr.cacheable=!1),Wr}function _addGrace(_r,Fe,$r){const{min:Fr,max:jr}=_r,zr=toDimension(Fe,(jr-Fr)/2),Vr=(Wr,Kr)=>$r&&Wr===0?0:Wr+Kr;return{min:Vr(Fr,-Math.abs(zr)),max:Vr(jr,zr)}}function createContext(_r,Fe){return Object.assign(Object.create(_r),Fe)}function _createResolver(_r,Fe=[""],$r,Fr,jr=()=>_r[0]){const zr=$r||_r;typeof Fr=="undefined"&&(Fr=_resolve("_fallback",_r));const Vr={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:_r,_rootScopes:zr,_fallback:Fr,_getTarget:jr,override:Wr=>_createResolver([Wr,..._r],Fe,zr,Fr)};return new Proxy(Vr,{deleteProperty(Wr,Kr){return delete Wr[Kr],delete Wr._keys,delete _r[0][Kr],!0},get(Wr,Kr){return _cached(Wr,Kr,()=>_resolveWithPrefixes(Kr,Fe,_r,Wr))},getOwnPropertyDescriptor(Wr,Kr){return Reflect.getOwnPropertyDescriptor(Wr._scopes[0],Kr)},getPrototypeOf(){return Reflect.getPrototypeOf(_r[0])},has(Wr,Kr){return getKeysFromAllScopes(Wr).includes(Kr)},ownKeys(Wr){return getKeysFromAllScopes(Wr)},set(Wr,Kr,Gr){const Yr=Wr._storage||(Wr._storage=jr());return Wr[Kr]=Yr[Kr]=Gr,delete Wr._keys,!0}})}function _attachContext(_r,Fe,$r,Fr){const jr={_cacheable:!1,_proxy:_r,_context:Fe,_subProxy:$r,_stack:new Set,_descriptors:_descriptors(_r,Fr),setContext:zr=>_attachContext(_r,zr,$r,Fr),override:zr=>_attachContext(_r.override(zr),Fe,$r,Fr)};return new Proxy(jr,{deleteProperty(zr,Vr){return delete zr[Vr],delete _r[Vr],!0},get(zr,Vr,Wr){return _cached(zr,Vr,()=>_resolveWithContext(zr,Vr,Wr))},getOwnPropertyDescriptor(zr,Vr){return zr._descriptors.allKeys?Reflect.has(_r,Vr)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(_r,Vr)},getPrototypeOf(){return Reflect.getPrototypeOf(_r)},has(zr,Vr){return Reflect.has(_r,Vr)},ownKeys(){return Reflect.ownKeys(_r)},set(zr,Vr,Wr){return _r[Vr]=Wr,delete zr[Vr],!0}})}function _descriptors(_r,Fe={scriptable:!0,indexable:!0}){const{_scriptable:$r=Fe.scriptable,_indexable:Fr=Fe.indexable,_allKeys:jr=Fe.allKeys}=_r;return{allKeys:jr,scriptable:$r,indexable:Fr,isScriptable:isFunction($r)?$r:()=>$r,isIndexable:isFunction(Fr)?Fr:()=>Fr}}const readKey=(_r,Fe)=>_r?_r+_capitalize(Fe):Fe,needsSubResolver=(_r,Fe)=>isObject(Fe)&&_r!=="adapters"&&(Object.getPrototypeOf(Fe)===null||Fe.constructor===Object);function _cached(_r,Fe,$r){if(Object.prototype.hasOwnProperty.call(_r,Fe))return _r[Fe];const Fr=$r();return _r[Fe]=Fr,Fr}function _resolveWithContext(_r,Fe,$r){const{_proxy:Fr,_context:jr,_subProxy:zr,_descriptors:Vr}=_r;let Wr=Fr[Fe];return isFunction(Wr)&&Vr.isScriptable(Fe)&&(Wr=_resolveScriptable(Fe,Wr,_r,$r)),isArray(Wr)&&Wr.length&&(Wr=_resolveArray(Fe,Wr,_r,Vr.isIndexable)),needsSubResolver(Fe,Wr)&&(Wr=_attachContext(Wr,jr,zr&&zr[Fe],Vr)),Wr}function _resolveScriptable(_r,Fe,$r,Fr){const{_proxy:jr,_context:zr,_subProxy:Vr,_stack:Wr}=$r;if(Wr.has(_r))throw new Error("Recursion detected: "+Array.from(Wr).join("->")+"->"+_r);Wr.add(_r);let Kr=Fe(zr,Vr||Fr);return Wr.delete(_r),needsSubResolver(_r,Kr)&&(Kr=createSubResolver(jr._scopes,jr,_r,Kr)),Kr}function _resolveArray(_r,Fe,$r,Fr){const{_proxy:jr,_context:zr,_subProxy:Vr,_descriptors:Wr}=$r;if(typeof zr.index!="undefined"&&Fr(_r))return Fe[zr.index%Fe.length];if(isObject(Fe[0])){const Kr=Fe,Gr=jr._scopes.filter(Yr=>Yr!==Kr);Fe=[];for(const Yr of Kr){const Qr=createSubResolver(Gr,jr,_r,Yr);Fe.push(_attachContext(Qr,zr,Vr&&Vr[_r],Wr))}}return Fe}function resolveFallback(_r,Fe,$r){return isFunction(_r)?_r(Fe,$r):_r}const getScope=(_r,Fe)=>_r===!0?Fe:typeof _r=="string"?resolveObjectKey(Fe,_r):void 0;function addScopes(_r,Fe,$r,Fr,jr){for(const zr of Fe){const Vr=getScope($r,zr);if(Vr){_r.add(Vr);const Wr=resolveFallback(Vr._fallback,$r,jr);if(typeof Wr!="undefined"&&Wr!==$r&&Wr!==Fr)return Wr}else if(Vr===!1&&typeof Fr!="undefined"&&$r!==Fr)return null}return!1}function createSubResolver(_r,Fe,$r,Fr){const jr=Fe._rootScopes,zr=resolveFallback(Fe._fallback,$r,Fr),Vr=[..._r,...jr],Wr=new Set;Wr.add(Fr);let Kr=addScopesFromKey(Wr,Vr,$r,zr||$r,Fr);return Kr===null||typeof zr!="undefined"&&zr!==$r&&(Kr=addScopesFromKey(Wr,Vr,zr,Kr,Fr),Kr===null)?!1:_createResolver(Array.from(Wr),[""],jr,zr,()=>subGetTarget(Fe,$r,Fr))}function addScopesFromKey(_r,Fe,$r,Fr,jr){for(;$r;)$r=addScopes(_r,Fe,$r,Fr,jr);return $r}function subGetTarget(_r,Fe,$r){const Fr=_r._getTarget();Fe in Fr||(Fr[Fe]={});const jr=Fr[Fe];return isArray(jr)&&isObject($r)?$r:jr||{}}function _resolveWithPrefixes(_r,Fe,$r,Fr){let jr;for(const zr of Fe)if(jr=_resolve(readKey(zr,_r),$r),typeof jr!="undefined")return needsSubResolver(_r,jr)?createSubResolver($r,Fr,_r,jr):jr}function _resolve(_r,Fe){for(const $r of Fe){if(!$r)continue;const Fr=$r[_r];if(typeof Fr!="undefined")return Fr}}function getKeysFromAllScopes(_r){let Fe=_r._keys;return Fe||(Fe=_r._keys=resolveKeysFromAllScopes(_r._scopes)),Fe}function resolveKeysFromAllScopes(_r){const Fe=new Set;for(const $r of _r)for(const Fr of Object.keys($r).filter(jr=>!jr.startsWith("_")))Fe.add(Fr);return Array.from(Fe)}const EPSILON=Number.EPSILON||1e-14,getPoint=(_r,Fe)=>Fe<_r.length&&!_r[Fe].skip&&_r[Fe],getValueAxis=_r=>_r==="x"?"y":"x";function splineCurve(_r,Fe,$r,Fr){const jr=_r.skip?Fe:_r,zr=Fe,Vr=$r.skip?Fe:$r,Wr=distanceBetweenPoints(zr,jr),Kr=distanceBetweenPoints(Vr,zr);let Gr=Wr/(Wr+Kr),Yr=Kr/(Wr+Kr);Gr=isNaN(Gr)?0:Gr,Yr=isNaN(Yr)?0:Yr;const Qr=Fr*Gr,Jr=Fr*Yr;return{previous:{x:zr.x-Qr*(Vr.x-jr.x),y:zr.y-Qr*(Vr.y-jr.y)},next:{x:zr.x+Jr*(Vr.x-jr.x),y:zr.y+Jr*(Vr.y-jr.y)}}}function monotoneAdjust(_r,Fe,$r){const Fr=_r.length;let jr,zr,Vr,Wr,Kr,Gr=getPoint(_r,0);for(let Yr=0;Yr<Fr-1;++Yr)if(Kr=Gr,Gr=getPoint(_r,Yr+1),!(!Kr||!Gr)){if(almostEquals(Fe[Yr],0,EPSILON)){$r[Yr]=$r[Yr+1]=0;continue}jr=$r[Yr]/Fe[Yr],zr=$r[Yr+1]/Fe[Yr],Wr=Math.pow(jr,2)+Math.pow(zr,2),!(Wr<=9)&&(Vr=3/Math.sqrt(Wr),$r[Yr]=jr*Vr*Fe[Yr],$r[Yr+1]=zr*Vr*Fe[Yr])}}function monotoneCompute(_r,Fe,$r="x"){const Fr=getValueAxis($r),jr=_r.length;let zr,Vr,Wr,Kr=getPoint(_r,0);for(let Gr=0;Gr<jr;++Gr){if(Vr=Wr,Wr=Kr,Kr=getPoint(_r,Gr+1),!Wr)continue;const Yr=Wr[$r],Qr=Wr[Fr];Vr&&(zr=(Yr-Vr[$r])/3,Wr[`cp1${$r}`]=Yr-zr,Wr[`cp1${Fr}`]=Qr-zr*Fe[Gr]),Kr&&(zr=(Kr[$r]-Yr)/3,Wr[`cp2${$r}`]=Yr+zr,Wr[`cp2${Fr}`]=Qr+zr*Fe[Gr])}}function splineCurveMonotone(_r,Fe="x"){const $r=getValueAxis(Fe),Fr=_r.length,jr=Array(Fr).fill(0),zr=Array(Fr);let Vr,Wr,Kr,Gr=getPoint(_r,0);for(Vr=0;Vr<Fr;++Vr)if(Wr=Kr,Kr=Gr,Gr=getPoint(_r,Vr+1),!!Kr){if(Gr){const Yr=Gr[Fe]-Kr[Fe];jr[Vr]=Yr!==0?(Gr[$r]-Kr[$r])/Yr:0}zr[Vr]=Wr?Gr?sign(jr[Vr-1])!==sign(jr[Vr])?0:(jr[Vr-1]+jr[Vr])/2:jr[Vr-1]:jr[Vr]}monotoneAdjust(_r,jr,zr),monotoneCompute(_r,zr,Fe)}function capControlPoint(_r,Fe,$r){return Math.max(Math.min(_r,$r),Fe)}function capBezierPoints(_r,Fe){let $r,Fr,jr,zr,Vr,Wr=_isPointInArea(_r[0],Fe);for($r=0,Fr=_r.length;$r<Fr;++$r)Vr=zr,zr=Wr,Wr=$r<Fr-1&&_isPointInArea(_r[$r+1],Fe),zr&&(jr=_r[$r],Vr&&(jr.cp1x=capControlPoint(jr.cp1x,Fe.left,Fe.right),jr.cp1y=capControlPoint(jr.cp1y,Fe.top,Fe.bottom)),Wr&&(jr.cp2x=capControlPoint(jr.cp2x,Fe.left,Fe.right),jr.cp2y=capControlPoint(jr.cp2y,Fe.top,Fe.bottom)))}function _updateBezierControlPoints(_r,Fe,$r,Fr,jr){let zr,Vr,Wr,Kr;if(Fe.spanGaps&&(_r=_r.filter(Gr=>!Gr.skip)),Fe.cubicInterpolationMode==="monotone")splineCurveMonotone(_r,jr);else{let Gr=Fr?_r[_r.length-1]:_r[0];for(zr=0,Vr=_r.length;zr<Vr;++zr)Wr=_r[zr],Kr=splineCurve(Gr,Wr,_r[Math.min(zr+1,Vr-(Fr?0:1))%Vr],Fe.tension),Wr.cp1x=Kr.previous.x,Wr.cp1y=Kr.previous.y,Wr.cp2x=Kr.next.x,Wr.cp2y=Kr.next.y,Gr=Wr}Fe.capBezierPoints&&capBezierPoints(_r,$r)}function _isDomSupported(){return typeof window!="undefined"&&typeof document!="undefined"}function _getParentNode(_r){let Fe=_r.parentNode;return Fe&&Fe.toString()==="[object ShadowRoot]"&&(Fe=Fe.host),Fe}function parseMaxStyle(_r,Fe,$r){let Fr;return typeof _r=="string"?(Fr=parseInt(_r,10),_r.indexOf("%")!==-1&&(Fr=Fr/100*Fe.parentNode[$r])):Fr=_r,Fr}const getComputedStyle$1=_r=>_r.ownerDocument.defaultView.getComputedStyle(_r,null);function getStyle(_r,Fe){return getComputedStyle$1(_r).getPropertyValue(Fe)}const positions=["top","right","bottom","left"];function getPositionedStyle(_r,Fe,$r){const Fr={};$r=$r?"-"+$r:"";for(let jr=0;jr<4;jr++){const zr=positions[jr];Fr[zr]=parseFloat(_r[Fe+"-"+zr+$r])||0}return Fr.width=Fr.left+Fr.right,Fr.height=Fr.top+Fr.bottom,Fr}const useOffsetPos=(_r,Fe,$r)=>(_r>0||Fe>0)&&(!$r||!$r.shadowRoot);function getCanvasPosition(_r,Fe){const $r=_r.touches,Fr=$r&&$r.length?$r[0]:_r,{offsetX:jr,offsetY:zr}=Fr;let Vr=!1,Wr,Kr;if(useOffsetPos(jr,zr,_r.target))Wr=jr,Kr=zr;else{const Gr=Fe.getBoundingClientRect();Wr=Fr.clientX-Gr.left,Kr=Fr.clientY-Gr.top,Vr=!0}return{x:Wr,y:Kr,box:Vr}}function getRelativePosition(_r,Fe){if("native"in _r)return _r;const{canvas:$r,currentDevicePixelRatio:Fr}=Fe,jr=getComputedStyle$1($r),zr=jr.boxSizing==="border-box",Vr=getPositionedStyle(jr,"padding"),Wr=getPositionedStyle(jr,"border","width"),{x:Kr,y:Gr,box:Yr}=getCanvasPosition(_r,$r),Qr=Vr.left+(Yr&&Wr.left),Jr=Vr.top+(Yr&&Wr.top);let{width:Zr,height:tn}=Fe;return zr&&(Zr-=Vr.width+Wr.width,tn-=Vr.height+Wr.height),{x:Math.round((Kr-Qr)/Zr*$r.width/Fr),y:Math.round((Gr-Jr)/tn*$r.height/Fr)}}function getContainerSize(_r,Fe,$r){let Fr,jr;if(Fe===void 0||$r===void 0){const zr=_getParentNode(_r);if(!zr)Fe=_r.clientWidth,$r=_r.clientHeight;else{const Vr=zr.getBoundingClientRect(),Wr=getComputedStyle$1(zr),Kr=getPositionedStyle(Wr,"border","width"),Gr=getPositionedStyle(Wr,"padding");Fe=Vr.width-Gr.width-Kr.width,$r=Vr.height-Gr.height-Kr.height,Fr=parseMaxStyle(Wr.maxWidth,zr,"clientWidth"),jr=parseMaxStyle(Wr.maxHeight,zr,"clientHeight")}}return{width:Fe,height:$r,maxWidth:Fr||INFINITY,maxHeight:jr||INFINITY}}const round1=_r=>Math.round(_r*10)/10;function getMaximumSize(_r,Fe,$r,Fr){const jr=getComputedStyle$1(_r),zr=getPositionedStyle(jr,"margin"),Vr=parseMaxStyle(jr.maxWidth,_r,"clientWidth")||INFINITY,Wr=parseMaxStyle(jr.maxHeight,_r,"clientHeight")||INFINITY,Kr=getContainerSize(_r,Fe,$r);let{width:Gr,height:Yr}=Kr;if(jr.boxSizing==="content-box"){const Jr=getPositionedStyle(jr,"border","width"),Zr=getPositionedStyle(jr,"padding");Gr-=Zr.width+Jr.width,Yr-=Zr.height+Jr.height}return Gr=Math.max(0,Gr-zr.width),Yr=Math.max(0,Fr?Gr/Fr:Yr-zr.height),Gr=round1(Math.min(Gr,Vr,Kr.maxWidth)),Yr=round1(Math.min(Yr,Wr,Kr.maxHeight)),Gr&&!Yr&&(Yr=round1(Gr/2)),(Fe!==void 0||$r!==void 0)&&Fr&&Kr.height&&Yr>Kr.height&&(Yr=Kr.height,Gr=round1(Math.floor(Yr*Fr))),{width:Gr,height:Yr}}function retinaScale(_r,Fe,$r){const Fr=Fe||1,jr=Math.floor(_r.height*Fr),zr=Math.floor(_r.width*Fr);_r.height=Math.floor(_r.height),_r.width=Math.floor(_r.width);const Vr=_r.canvas;return Vr.style&&($r||!Vr.style.height&&!Vr.style.width)&&(Vr.style.height=`${_r.height}px`,Vr.style.width=`${_r.width}px`),_r.currentDevicePixelRatio!==Fr||Vr.height!==jr||Vr.width!==zr?(_r.currentDevicePixelRatio=Fr,Vr.height=jr,Vr.width=zr,_r.ctx.setTransform(Fr,0,0,Fr,0,0),!0):!1}const supportsEventListenerOptions=function(){let _r=!1;try{const Fe={get passive(){return _r=!0,!1}};window.addEventListener("test",null,Fe),window.removeEventListener("test",null,Fe)}catch{}return _r}();function readUsedSize(_r,Fe){const $r=getStyle(_r,Fe),Fr=$r&&$r.match(/^(\d+)(\.\d+)?px$/);return Fr?+Fr[1]:void 0}function _pointInLine(_r,Fe,$r,Fr){return{x:_r.x+$r*(Fe.x-_r.x),y:_r.y+$r*(Fe.y-_r.y)}}function _steppedInterpolation(_r,Fe,$r,Fr){return{x:_r.x+$r*(Fe.x-_r.x),y:Fr==="middle"?$r<.5?_r.y:Fe.y:Fr==="after"?$r<1?_r.y:Fe.y:$r>0?Fe.y:_r.y}}function _bezierInterpolation(_r,Fe,$r,Fr){const jr={x:_r.cp2x,y:_r.cp2y},zr={x:Fe.cp1x,y:Fe.cp1y},Vr=_pointInLine(_r,jr,$r),Wr=_pointInLine(jr,zr,$r),Kr=_pointInLine(zr,Fe,$r),Gr=_pointInLine(Vr,Wr,$r),Yr=_pointInLine(Wr,Kr,$r);return _pointInLine(Gr,Yr,$r)}const getRightToLeftAdapter=function(_r,Fe){return{x($r){return _r+_r+Fe-$r},setWidth($r){Fe=$r},textAlign($r){return $r==="center"?$r:$r==="right"?"left":"right"},xPlus($r,Fr){return $r-Fr},leftForLtr($r,Fr){return $r-Fr}}},getLeftToRightAdapter=function(){return{x(_r){return _r},setWidth(_r){},textAlign(_r){return _r},xPlus(_r,Fe){return _r+Fe},leftForLtr(_r,Fe){return _r}}};function getRtlAdapter(_r,Fe,$r){return _r?getRightToLeftAdapter(Fe,$r):getLeftToRightAdapter()}function overrideTextDirection(_r,Fe){let $r,Fr;(Fe==="ltr"||Fe==="rtl")&&($r=_r.canvas.style,Fr=[$r.getPropertyValue("direction"),$r.getPropertyPriority("direction")],$r.setProperty("direction",Fe,"important"),_r.prevTextDirection=Fr)}function restoreTextDirection(_r,Fe){Fe!==void 0&&(delete _r.prevTextDirection,_r.canvas.style.setProperty("direction",Fe[0],Fe[1]))}function propertyFn(_r){return _r==="angle"?{between:_angleBetween,compare:_angleDiff,normalize:_normalizeAngle}:{between:_isBetween,compare:(Fe,$r)=>Fe-$r,normalize:Fe=>Fe}}function normalizeSegment({start:_r,end:Fe,count:$r,loop:Fr,style:jr}){return{start:_r%$r,end:Fe%$r,loop:Fr&&(Fe-_r+1)%$r===0,style:jr}}function getSegment(_r,Fe,$r){const{property:Fr,start:jr,end:zr}=$r,{between:Vr,normalize:Wr}=propertyFn(Fr),Kr=Fe.length;let{start:Gr,end:Yr,loop:Qr}=_r,Jr,Zr;if(Qr){for(Gr+=Kr,Yr+=Kr,Jr=0,Zr=Kr;Jr<Zr&&Vr(Wr(Fe[Gr%Kr][Fr]),jr,zr);++Jr)Gr--,Yr--;Gr%=Kr,Yr%=Kr}return Yr<Gr&&(Yr+=Kr),{start:Gr,end:Yr,loop:Qr,style:_r.style}}function _boundSegment(_r,Fe,$r){if(!$r)return[_r];const{property:Fr,start:jr,end:zr}=$r,Vr=Fe.length,{compare:Wr,between:Kr,normalize:Gr}=propertyFn(Fr),{start:Yr,end:Qr,loop:Jr,style:Zr}=getSegment(_r,Fe,$r),tn=[];let en=!1,rn=null,nn,on,un;const an=()=>Kr(jr,un,nn)&&Wr(jr,un)!==0,sn=()=>Wr(zr,nn)===0||Kr(zr,un,nn),dn=()=>en||an(),ln=()=>!en||sn();for(let cn=Yr,fn=Yr;cn<=Qr;++cn)on=Fe[cn%Vr],!on.skip&&(nn=Gr(on[Fr]),nn!==un&&(en=Kr(nn,jr,zr),rn===null&&dn()&&(rn=Wr(nn,jr)===0?cn:fn),rn!==null&&ln()&&(tn.push(normalizeSegment({start:rn,end:cn,loop:Jr,count:Vr,style:Zr})),rn=null),fn=cn,un=nn));return rn!==null&&tn.push(normalizeSegment({start:rn,end:Qr,loop:Jr,count:Vr,style:Zr})),tn}function _boundSegments(_r,Fe){const $r=[],Fr=_r.segments;for(let jr=0;jr<Fr.length;jr++){const zr=_boundSegment(Fr[jr],_r.points,Fe);zr.length&&$r.push(...zr)}return $r}function findStartAndEnd(_r,Fe,$r,Fr){let jr=0,zr=Fe-1;if($r&&!Fr)for(;jr<Fe&&!_r[jr].skip;)jr++;for(;jr<Fe&&_r[jr].skip;)jr++;for(jr%=Fe,$r&&(zr+=jr);zr>jr&&_r[zr%Fe].skip;)zr--;return zr%=Fe,{start:jr,end:zr}}function solidSegments(_r,Fe,$r,Fr){const jr=_r.length,zr=[];let Vr=Fe,Wr=_r[Fe],Kr;for(Kr=Fe+1;Kr<=$r;++Kr){const Gr=_r[Kr%jr];Gr.skip||Gr.stop?Wr.skip||(Fr=!1,zr.push({start:Fe%jr,end:(Kr-1)%jr,loop:Fr}),Fe=Vr=Gr.stop?Kr:null):(Vr=Kr,Wr.skip&&(Fe=Kr)),Wr=Gr}return Vr!==null&&zr.push({start:Fe%jr,end:Vr%jr,loop:Fr}),zr}function _computeSegments(_r,Fe){const $r=_r.points,Fr=_r.options.spanGaps,jr=$r.length;if(!jr)return[];const zr=!!_r._loop,{start:Vr,end:Wr}=findStartAndEnd($r,jr,zr,Fr);if(Fr===!0)return splitByStyles(_r,[{start:Vr,end:Wr,loop:zr}],$r,Fe);const Kr=Wr<Vr?Wr+jr:Wr,Gr=!!_r._fullLoop&&Vr===0&&Wr===jr-1;return splitByStyles(_r,solidSegments($r,Vr,Kr,Gr),$r,Fe)}function splitByStyles(_r,Fe,$r,Fr){return!Fr||!Fr.setContext||!$r?Fe:doSplitByStyles(_r,Fe,$r,Fr)}function doSplitByStyles(_r,Fe,$r,Fr){const jr=_r._chart.getContext(),zr=readStyle(_r.options),{_datasetIndex:Vr,options:{spanGaps:Wr}}=_r,Kr=$r.length,Gr=[];let Yr=zr,Qr=Fe[0].start,Jr=Qr;function Zr(tn,en,rn,nn){const on=Wr?-1:1;if(tn!==en){for(tn+=Kr;$r[tn%Kr].skip;)tn-=on;for(;$r[en%Kr].skip;)en+=on;tn%Kr!==en%Kr&&(Gr.push({start:tn%Kr,end:en%Kr,loop:rn,style:nn}),Yr=nn,Qr=en%Kr)}}for(const tn of Fe){Qr=Wr?Qr:tn.start;let en=$r[Qr%Kr],rn;for(Jr=Qr+1;Jr<=tn.end;Jr++){const nn=$r[Jr%Kr];rn=readStyle(Fr.setContext(createContext(jr,{type:"segment",p0:en,p1:nn,p0DataIndex:(Jr-1)%Kr,p1DataIndex:Jr%Kr,datasetIndex:Vr}))),styleChanged(rn,Yr)&&Zr(Qr,Jr-1,tn.loop,Yr),en=nn,Yr=rn}Qr<Jr-1&&Zr(Qr,Jr-1,tn.loop,Yr)}return Gr}function readStyle(_r){return{backgroundColor:_r.backgroundColor,borderCapStyle:_r.borderCapStyle,borderDash:_r.borderDash,borderDashOffset:_r.borderDashOffset,borderJoinStyle:_r.borderJoinStyle,borderWidth:_r.borderWidth,borderColor:_r.borderColor}}function styleChanged(_r,Fe){if(!Fe)return!1;const $r=[],Fr=function(jr,zr){return isPatternOrGradient(zr)?($r.includes(zr)||$r.push(zr),$r.indexOf(zr)):zr};return JSON.stringify(_r,Fr)!==JSON.stringify(Fe,Fr)}/*!
 * Chart.js v4.3.0
 * https://www.chartjs.org
 * (c) 2023 Chart.js Contributors
 * Released under the MIT License
 */class Animator{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(Fe,$r,Fr,jr){const zr=$r.listeners[jr],Vr=$r.duration;zr.forEach(Wr=>Wr({chart:Fe,initial:$r.initial,numSteps:Vr,currentStep:Math.min(Fr-$r.start,Vr)}))}_refresh(){this._request||(this._running=!0,this._request=requestAnimFrame.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(Fe=Date.now()){let $r=0;this._charts.forEach((Fr,jr)=>{if(!Fr.running||!Fr.items.length)return;const zr=Fr.items;let Vr=zr.length-1,Wr=!1,Kr;for(;Vr>=0;--Vr)Kr=zr[Vr],Kr._active?(Kr._total>Fr.duration&&(Fr.duration=Kr._total),Kr.tick(Fe),Wr=!0):(zr[Vr]=zr[zr.length-1],zr.pop());Wr&&(jr.draw(),this._notify(jr,Fr,Fe,"progress")),zr.length||(Fr.running=!1,this._notify(jr,Fr,Fe,"complete"),Fr.initial=!1),$r+=zr.length}),this._lastDate=Fe,$r===0&&(this._running=!1)}_getAnims(Fe){const $r=this._charts;let Fr=$r.get(Fe);return Fr||(Fr={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},$r.set(Fe,Fr)),Fr}listen(Fe,$r,Fr){this._getAnims(Fe).listeners[$r].push(Fr)}add(Fe,$r){!$r||!$r.length||this._getAnims(Fe).items.push(...$r)}has(Fe){return this._getAnims(Fe).items.length>0}start(Fe){const $r=this._charts.get(Fe);!$r||($r.running=!0,$r.start=Date.now(),$r.duration=$r.items.reduce((Fr,jr)=>Math.max(Fr,jr._duration),0),this._refresh())}running(Fe){if(!this._running)return!1;const $r=this._charts.get(Fe);return!(!$r||!$r.running||!$r.items.length)}stop(Fe){const $r=this._charts.get(Fe);if(!$r||!$r.items.length)return;const Fr=$r.items;let jr=Fr.length-1;for(;jr>=0;--jr)Fr[jr].cancel();$r.items=[],this._notify(Fe,$r,Date.now(),"complete")}remove(Fe){return this._charts.delete(Fe)}}var animator=new Animator;const transparent="transparent",interpolators={boolean(_r,Fe,$r){return $r>.5?Fe:_r},color(_r,Fe,$r){const Fr=color(_r||transparent),jr=Fr.valid&&color(Fe||transparent);return jr&&jr.valid?jr.mix(Fr,$r).hexString():Fe},number(_r,Fe,$r){return _r+(Fe-_r)*$r}};class Animation{constructor(Fe,$r,Fr,jr){const zr=$r[Fr];jr=resolve([Fe.to,jr,zr,Fe.from]);const Vr=resolve([Fe.from,zr,jr]);this._active=!0,this._fn=Fe.fn||interpolators[Fe.type||typeof Vr],this._easing=effects[Fe.easing]||effects.linear,this._start=Math.floor(Date.now()+(Fe.delay||0)),this._duration=this._total=Math.floor(Fe.duration),this._loop=!!Fe.loop,this._target=$r,this._prop=Fr,this._from=Vr,this._to=jr,this._promises=void 0}active(){return this._active}update(Fe,$r,Fr){if(this._active){this._notify(!1);const jr=this._target[this._prop],zr=Fr-this._start,Vr=this._duration-zr;this._start=Fr,this._duration=Math.floor(Math.max(Vr,Fe.duration)),this._total+=zr,this._loop=!!Fe.loop,this._to=resolve([Fe.to,$r,jr,Fe.from]),this._from=resolve([Fe.from,jr,$r])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(Fe){const $r=Fe-this._start,Fr=this._duration,jr=this._prop,zr=this._from,Vr=this._loop,Wr=this._to;let Kr;if(this._active=zr!==Wr&&(Vr||$r<Fr),!this._active){this._target[jr]=Wr,this._notify(!0);return}if($r<0){this._target[jr]=zr;return}Kr=$r/Fr%2,Kr=Vr&&Kr>1?2-Kr:Kr,Kr=this._easing(Math.min(1,Math.max(0,Kr))),this._target[jr]=this._fn(zr,Wr,Kr)}wait(){const Fe=this._promises||(this._promises=[]);return new Promise(($r,Fr)=>{Fe.push({res:$r,rej:Fr})})}_notify(Fe){const $r=Fe?"res":"rej",Fr=this._promises||[];for(let jr=0;jr<Fr.length;jr++)Fr[jr][$r]()}}class Animations{constructor(Fe,$r){this._chart=Fe,this._properties=new Map,this.configure($r)}configure(Fe){if(!isObject(Fe))return;const $r=Object.keys(defaults.animation),Fr=this._properties;Object.getOwnPropertyNames(Fe).forEach(jr=>{const zr=Fe[jr];if(!isObject(zr))return;const Vr={};for(const Wr of $r)Vr[Wr]=zr[Wr];(isArray(zr.properties)&&zr.properties||[jr]).forEach(Wr=>{(Wr===jr||!Fr.has(Wr))&&Fr.set(Wr,Vr)})})}_animateOptions(Fe,$r){const Fr=$r.options,jr=resolveTargetOptions(Fe,Fr);if(!jr)return[];const zr=this._createAnimations(jr,Fr);return Fr.$shared&&awaitAll(Fe.options.$animations,Fr).then(()=>{Fe.options=Fr},()=>{}),zr}_createAnimations(Fe,$r){const Fr=this._properties,jr=[],zr=Fe.$animations||(Fe.$animations={}),Vr=Object.keys($r),Wr=Date.now();let Kr;for(Kr=Vr.length-1;Kr>=0;--Kr){const Gr=Vr[Kr];if(Gr.charAt(0)==="$")continue;if(Gr==="options"){jr.push(...this._animateOptions(Fe,$r));continue}const Yr=$r[Gr];let Qr=zr[Gr];const Jr=Fr.get(Gr);if(Qr)if(Jr&&Qr.active()){Qr.update(Jr,Yr,Wr);continue}else Qr.cancel();if(!Jr||!Jr.duration){Fe[Gr]=Yr;continue}zr[Gr]=Qr=new Animation(Jr,Fe,Gr,Yr),jr.push(Qr)}return jr}update(Fe,$r){if(this._properties.size===0){Object.assign(Fe,$r);return}const Fr=this._createAnimations(Fe,$r);if(Fr.length)return animator.add(this._chart,Fr),!0}}function awaitAll(_r,Fe){const $r=[],Fr=Object.keys(Fe);for(let jr=0;jr<Fr.length;jr++){const zr=_r[Fr[jr]];zr&&zr.active()&&$r.push(zr.wait())}return Promise.all($r)}function resolveTargetOptions(_r,Fe){if(!Fe)return;let $r=_r.options;if(!$r){_r.options=Fe;return}return $r.$shared&&(_r.options=$r=Object.assign({},$r,{$shared:!1,$animations:{}})),$r}function scaleClip(_r,Fe){const $r=_r&&_r.options||{},Fr=$r.reverse,jr=$r.min===void 0?Fe:0,zr=$r.max===void 0?Fe:0;return{start:Fr?zr:jr,end:Fr?jr:zr}}function defaultClip(_r,Fe,$r){if($r===!1)return!1;const Fr=scaleClip(_r,$r),jr=scaleClip(Fe,$r);return{top:jr.end,right:Fr.end,bottom:jr.start,left:Fr.start}}function toClip(_r){let Fe,$r,Fr,jr;return isObject(_r)?(Fe=_r.top,$r=_r.right,Fr=_r.bottom,jr=_r.left):Fe=$r=Fr=jr=_r,{top:Fe,right:$r,bottom:Fr,left:jr,disabled:_r===!1}}function getSortedDatasetIndices(_r,Fe){const $r=[],Fr=_r._getSortedDatasetMetas(Fe);let jr,zr;for(jr=0,zr=Fr.length;jr<zr;++jr)$r.push(Fr[jr].index);return $r}function applyStack(_r,Fe,$r,Fr={}){const jr=_r.keys,zr=Fr.mode==="single";let Vr,Wr,Kr,Gr;if(Fe!==null){for(Vr=0,Wr=jr.length;Vr<Wr;++Vr){if(Kr=+jr[Vr],Kr===$r){if(Fr.all)continue;break}Gr=_r.values[Kr],isNumberFinite(Gr)&&(zr||Fe===0||sign(Fe)===sign(Gr))&&(Fe+=Gr)}return Fe}}function convertObjectDataToArray(_r){const Fe=Object.keys(_r),$r=new Array(Fe.length);let Fr,jr,zr;for(Fr=0,jr=Fe.length;Fr<jr;++Fr)zr=Fe[Fr],$r[Fr]={x:zr,y:_r[zr]};return $r}function isStacked(_r,Fe){const $r=_r&&_r.options.stacked;return $r||$r===void 0&&Fe.stack!==void 0}function getStackKey(_r,Fe,$r){return`${_r.id}.${Fe.id}.${$r.stack||$r.type}`}function getUserBounds(_r){const{min:Fe,max:$r,minDefined:Fr,maxDefined:jr}=_r.getUserBounds();return{min:Fr?Fe:Number.NEGATIVE_INFINITY,max:jr?$r:Number.POSITIVE_INFINITY}}function getOrCreateStack(_r,Fe,$r){const Fr=_r[Fe]||(_r[Fe]={});return Fr[$r]||(Fr[$r]={})}function getLastIndexInStack(_r,Fe,$r,Fr){for(const jr of Fe.getMatchingVisibleMetas(Fr).reverse()){const zr=_r[jr.index];if($r&&zr>0||!$r&&zr<0)return jr.index}return null}function updateStacks(_r,Fe){const{chart:$r,_cachedMeta:Fr}=_r,jr=$r._stacks||($r._stacks={}),{iScale:zr,vScale:Vr,index:Wr}=Fr,Kr=zr.axis,Gr=Vr.axis,Yr=getStackKey(zr,Vr,Fr),Qr=Fe.length;let Jr;for(let Zr=0;Zr<Qr;++Zr){const tn=Fe[Zr],{[Kr]:en,[Gr]:rn}=tn,nn=tn._stacks||(tn._stacks={});Jr=nn[Gr]=getOrCreateStack(jr,Yr,en),Jr[Wr]=rn,Jr._top=getLastIndexInStack(Jr,Vr,!0,Fr.type),Jr._bottom=getLastIndexInStack(Jr,Vr,!1,Fr.type);const on=Jr._visualValues||(Jr._visualValues={});on[Wr]=rn}}function getFirstScaleId(_r,Fe){const $r=_r.scales;return Object.keys($r).filter(Fr=>$r[Fr].axis===Fe).shift()}function createDatasetContext(_r,Fe){return createContext(_r,{active:!1,dataset:void 0,datasetIndex:Fe,index:Fe,mode:"default",type:"dataset"})}function createDataContext(_r,Fe,$r){return createContext(_r,{active:!1,dataIndex:Fe,parsed:void 0,raw:void 0,element:$r,index:Fe,mode:"default",type:"data"})}function clearStacks(_r,Fe){const $r=_r.controller.index,Fr=_r.vScale&&_r.vScale.axis;if(!!Fr){Fe=Fe||_r._parsed;for(const jr of Fe){const zr=jr._stacks;if(!zr||zr[Fr]===void 0||zr[Fr][$r]===void 0)return;delete zr[Fr][$r],zr[Fr]._visualValues!==void 0&&zr[Fr]._visualValues[$r]!==void 0&&delete zr[Fr]._visualValues[$r]}}}const isDirectUpdateMode=_r=>_r==="reset"||_r==="none",cloneIfNotShared=(_r,Fe)=>Fe?_r:Object.assign({},_r),createStack=(_r,Fe,$r)=>_r&&!Fe.hidden&&Fe._stacked&&{keys:getSortedDatasetIndices($r,!0),values:null};class DatasetController{constructor(Fe,$r){this.chart=Fe,this._ctx=Fe.ctx,this.index=$r,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const Fe=this._cachedMeta;this.configure(),this.linkScales(),Fe._stacked=isStacked(Fe.vScale,Fe),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(Fe){this.index!==Fe&&clearStacks(this._cachedMeta),this.index=Fe}linkScales(){const Fe=this.chart,$r=this._cachedMeta,Fr=this.getDataset(),jr=(Qr,Jr,Zr,tn)=>Qr==="x"?Jr:Qr==="r"?tn:Zr,zr=$r.xAxisID=valueOrDefault(Fr.xAxisID,getFirstScaleId(Fe,"x")),Vr=$r.yAxisID=valueOrDefault(Fr.yAxisID,getFirstScaleId(Fe,"y")),Wr=$r.rAxisID=valueOrDefault(Fr.rAxisID,getFirstScaleId(Fe,"r")),Kr=$r.indexAxis,Gr=$r.iAxisID=jr(Kr,zr,Vr,Wr),Yr=$r.vAxisID=jr(Kr,Vr,zr,Wr);$r.xScale=this.getScaleForId(zr),$r.yScale=this.getScaleForId(Vr),$r.rScale=this.getScaleForId(Wr),$r.iScale=this.getScaleForId(Gr),$r.vScale=this.getScaleForId(Yr)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(Fe){return this.chart.scales[Fe]}_getOtherScale(Fe){const $r=this._cachedMeta;return Fe===$r.iScale?$r.vScale:$r.iScale}reset(){this._update("reset")}_destroy(){const Fe=this._cachedMeta;this._data&&unlistenArrayEvents(this._data,this),Fe._stacked&&clearStacks(Fe)}_dataCheck(){const Fe=this.getDataset(),$r=Fe.data||(Fe.data=[]),Fr=this._data;if(isObject($r))this._data=convertObjectDataToArray($r);else if(Fr!==$r){if(Fr){unlistenArrayEvents(Fr,this);const jr=this._cachedMeta;clearStacks(jr),jr._parsed=[]}$r&&Object.isExtensible($r)&&listenArrayEvents($r,this),this._syncList=[],this._data=$r}}addElements(){const Fe=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(Fe.dataset=new this.datasetElementType)}buildOrUpdateElements(Fe){const $r=this._cachedMeta,Fr=this.getDataset();let jr=!1;this._dataCheck();const zr=$r._stacked;$r._stacked=isStacked($r.vScale,$r),$r.stack!==Fr.stack&&(jr=!0,clearStacks($r),$r.stack=Fr.stack),this._resyncElements(Fe),(jr||zr!==$r._stacked)&&updateStacks(this,$r._parsed)}configure(){const Fe=this.chart.config,$r=Fe.datasetScopeKeys(this._type),Fr=Fe.getOptionScopes(this.getDataset(),$r,!0);this.options=Fe.createResolver(Fr,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(Fe,$r){const{_cachedMeta:Fr,_data:jr}=this,{iScale:zr,_stacked:Vr}=Fr,Wr=zr.axis;let Kr=Fe===0&&$r===jr.length?!0:Fr._sorted,Gr=Fe>0&&Fr._parsed[Fe-1],Yr,Qr,Jr;if(this._parsing===!1)Fr._parsed=jr,Fr._sorted=!0,Jr=jr;else{isArray(jr[Fe])?Jr=this.parseArrayData(Fr,jr,Fe,$r):isObject(jr[Fe])?Jr=this.parseObjectData(Fr,jr,Fe,$r):Jr=this.parsePrimitiveData(Fr,jr,Fe,$r);const Zr=()=>Qr[Wr]===null||Gr&&Qr[Wr]<Gr[Wr];for(Yr=0;Yr<$r;++Yr)Fr._parsed[Yr+Fe]=Qr=Jr[Yr],Kr&&(Zr()&&(Kr=!1),Gr=Qr);Fr._sorted=Kr}Vr&&updateStacks(this,Jr)}parsePrimitiveData(Fe,$r,Fr,jr){const{iScale:zr,vScale:Vr}=Fe,Wr=zr.axis,Kr=Vr.axis,Gr=zr.getLabels(),Yr=zr===Vr,Qr=new Array(jr);let Jr,Zr,tn;for(Jr=0,Zr=jr;Jr<Zr;++Jr)tn=Jr+Fr,Qr[Jr]={[Wr]:Yr||zr.parse(Gr[tn],tn),[Kr]:Vr.parse($r[tn],tn)};return Qr}parseArrayData(Fe,$r,Fr,jr){const{xScale:zr,yScale:Vr}=Fe,Wr=new Array(jr);let Kr,Gr,Yr,Qr;for(Kr=0,Gr=jr;Kr<Gr;++Kr)Yr=Kr+Fr,Qr=$r[Yr],Wr[Kr]={x:zr.parse(Qr[0],Yr),y:Vr.parse(Qr[1],Yr)};return Wr}parseObjectData(Fe,$r,Fr,jr){const{xScale:zr,yScale:Vr}=Fe,{xAxisKey:Wr="x",yAxisKey:Kr="y"}=this._parsing,Gr=new Array(jr);let Yr,Qr,Jr,Zr;for(Yr=0,Qr=jr;Yr<Qr;++Yr)Jr=Yr+Fr,Zr=$r[Jr],Gr[Yr]={x:zr.parse(resolveObjectKey(Zr,Wr),Jr),y:Vr.parse(resolveObjectKey(Zr,Kr),Jr)};return Gr}getParsed(Fe){return this._cachedMeta._parsed[Fe]}getDataElement(Fe){return this._cachedMeta.data[Fe]}applyStack(Fe,$r,Fr){const jr=this.chart,zr=this._cachedMeta,Vr=$r[Fe.axis],Wr={keys:getSortedDatasetIndices(jr,!0),values:$r._stacks[Fe.axis]._visualValues};return applyStack(Wr,Vr,zr.index,{mode:Fr})}updateRangeFromParsed(Fe,$r,Fr,jr){const zr=Fr[$r.axis];let Vr=zr===null?NaN:zr;const Wr=jr&&Fr._stacks[$r.axis];jr&&Wr&&(jr.values=Wr,Vr=applyStack(jr,zr,this._cachedMeta.index)),Fe.min=Math.min(Fe.min,Vr),Fe.max=Math.max(Fe.max,Vr)}getMinMax(Fe,$r){const Fr=this._cachedMeta,jr=Fr._parsed,zr=Fr._sorted&&Fe===Fr.iScale,Vr=jr.length,Wr=this._getOtherScale(Fe),Kr=createStack($r,Fr,this.chart),Gr={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:Yr,max:Qr}=getUserBounds(Wr);let Jr,Zr;function tn(){Zr=jr[Jr];const en=Zr[Wr.axis];return!isNumberFinite(Zr[Fe.axis])||Yr>en||Qr<en}for(Jr=0;Jr<Vr&&!(!tn()&&(this.updateRangeFromParsed(Gr,Fe,Zr,Kr),zr));++Jr);if(zr){for(Jr=Vr-1;Jr>=0;--Jr)if(!tn()){this.updateRangeFromParsed(Gr,Fe,Zr,Kr);break}}return Gr}getAllParsedValues(Fe){const $r=this._cachedMeta._parsed,Fr=[];let jr,zr,Vr;for(jr=0,zr=$r.length;jr<zr;++jr)Vr=$r[jr][Fe.axis],isNumberFinite(Vr)&&Fr.push(Vr);return Fr}getMaxOverflow(){return!1}getLabelAndValue(Fe){const $r=this._cachedMeta,Fr=$r.iScale,jr=$r.vScale,zr=this.getParsed(Fe);return{label:Fr?""+Fr.getLabelForValue(zr[Fr.axis]):"",value:jr?""+jr.getLabelForValue(zr[jr.axis]):""}}_update(Fe){const $r=this._cachedMeta;this.update(Fe||"default"),$r._clip=toClip(valueOrDefault(this.options.clip,defaultClip($r.xScale,$r.yScale,this.getMaxOverflow())))}update(Fe){}draw(){const Fe=this._ctx,$r=this.chart,Fr=this._cachedMeta,jr=Fr.data||[],zr=$r.chartArea,Vr=[],Wr=this._drawStart||0,Kr=this._drawCount||jr.length-Wr,Gr=this.options.drawActiveElementsOnTop;let Yr;for(Fr.dataset&&Fr.dataset.draw(Fe,zr,Wr,Kr),Yr=Wr;Yr<Wr+Kr;++Yr){const Qr=jr[Yr];Qr.hidden||(Qr.active&&Gr?Vr.push(Qr):Qr.draw(Fe,zr))}for(Yr=0;Yr<Vr.length;++Yr)Vr[Yr].draw(Fe,zr)}getStyle(Fe,$r){const Fr=$r?"active":"default";return Fe===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(Fr):this.resolveDataElementOptions(Fe||0,Fr)}getContext(Fe,$r,Fr){const jr=this.getDataset();let zr;if(Fe>=0&&Fe<this._cachedMeta.data.length){const Vr=this._cachedMeta.data[Fe];zr=Vr.$context||(Vr.$context=createDataContext(this.getContext(),Fe,Vr)),zr.parsed=this.getParsed(Fe),zr.raw=jr.data[Fe],zr.index=zr.dataIndex=Fe}else zr=this.$context||(this.$context=createDatasetContext(this.chart.getContext(),this.index)),zr.dataset=jr,zr.index=zr.datasetIndex=this.index;return zr.active=!!$r,zr.mode=Fr,zr}resolveDatasetElementOptions(Fe){return this._resolveElementOptions(this.datasetElementType.id,Fe)}resolveDataElementOptions(Fe,$r){return this._resolveElementOptions(this.dataElementType.id,$r,Fe)}_resolveElementOptions(Fe,$r="default",Fr){const jr=$r==="active",zr=this._cachedDataOpts,Vr=Fe+"-"+$r,Wr=zr[Vr],Kr=this.enableOptionSharing&&defined(Fr);if(Wr)return cloneIfNotShared(Wr,Kr);const Gr=this.chart.config,Yr=Gr.datasetElementScopeKeys(this._type,Fe),Qr=jr?[`${Fe}Hover`,"hover",Fe,""]:[Fe,""],Jr=Gr.getOptionScopes(this.getDataset(),Yr),Zr=Object.keys(defaults.elements[Fe]),tn=()=>this.getContext(Fr,jr,$r),en=Gr.resolveNamedOptions(Jr,Zr,tn,Qr);return en.$shared&&(en.$shared=Kr,zr[Vr]=Object.freeze(cloneIfNotShared(en,Kr))),en}_resolveAnimations(Fe,$r,Fr){const jr=this.chart,zr=this._cachedDataOpts,Vr=`animation-${$r}`,Wr=zr[Vr];if(Wr)return Wr;let Kr;if(jr.options.animation!==!1){const Yr=this.chart.config,Qr=Yr.datasetAnimationScopeKeys(this._type,$r),Jr=Yr.getOptionScopes(this.getDataset(),Qr);Kr=Yr.createResolver(Jr,this.getContext(Fe,Fr,$r))}const Gr=new Animations(jr,Kr&&Kr.animations);return Kr&&Kr._cacheable&&(zr[Vr]=Object.freeze(Gr)),Gr}getSharedOptions(Fe){if(!!Fe.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},Fe))}includeOptions(Fe,$r){return!$r||isDirectUpdateMode(Fe)||this.chart._animationsDisabled}_getSharedOptions(Fe,$r){const Fr=this.resolveDataElementOptions(Fe,$r),jr=this._sharedOptions,zr=this.getSharedOptions(Fr),Vr=this.includeOptions($r,zr)||zr!==jr;return this.updateSharedOptions(zr,$r,Fr),{sharedOptions:zr,includeOptions:Vr}}updateElement(Fe,$r,Fr,jr){isDirectUpdateMode(jr)?Object.assign(Fe,Fr):this._resolveAnimations($r,jr).update(Fe,Fr)}updateSharedOptions(Fe,$r,Fr){Fe&&!isDirectUpdateMode($r)&&this._resolveAnimations(void 0,$r).update(Fe,Fr)}_setStyle(Fe,$r,Fr,jr){Fe.active=jr;const zr=this.getStyle($r,jr);this._resolveAnimations($r,Fr,jr).update(Fe,{options:!jr&&this.getSharedOptions(zr)||zr})}removeHoverStyle(Fe,$r,Fr){this._setStyle(Fe,Fr,"active",!1)}setHoverStyle(Fe,$r,Fr){this._setStyle(Fe,Fr,"active",!0)}_removeDatasetHoverStyle(){const Fe=this._cachedMeta.dataset;Fe&&this._setStyle(Fe,void 0,"active",!1)}_setDatasetHoverStyle(){const Fe=this._cachedMeta.dataset;Fe&&this._setStyle(Fe,void 0,"active",!0)}_resyncElements(Fe){const $r=this._data,Fr=this._cachedMeta.data;for(const[Wr,Kr,Gr]of this._syncList)this[Wr](Kr,Gr);this._syncList=[];const jr=Fr.length,zr=$r.length,Vr=Math.min(zr,jr);Vr&&this.parse(0,Vr),zr>jr?this._insertElements(jr,zr-jr,Fe):zr<jr&&this._removeElements(zr,jr-zr)}_insertElements(Fe,$r,Fr=!0){const jr=this._cachedMeta,zr=jr.data,Vr=Fe+$r;let Wr;const Kr=Gr=>{for(Gr.length+=$r,Wr=Gr.length-1;Wr>=Vr;Wr--)Gr[Wr]=Gr[Wr-$r]};for(Kr(zr),Wr=Fe;Wr<Vr;++Wr)zr[Wr]=new this.dataElementType;this._parsing&&Kr(jr._parsed),this.parse(Fe,$r),Fr&&this.updateElements(zr,Fe,$r,"reset")}updateElements(Fe,$r,Fr,jr){}_removeElements(Fe,$r){const Fr=this._cachedMeta;if(this._parsing){const jr=Fr._parsed.splice(Fe,$r);Fr._stacked&&clearStacks(Fr,jr)}Fr.data.splice(Fe,$r)}_sync(Fe){if(this._parsing)this._syncList.push(Fe);else{const[$r,Fr,jr]=Fe;this[$r](Fr,jr)}this.chart._dataChanges.push([this.index,...Fe])}_onDataPush(){const Fe=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-Fe,Fe])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(Fe,$r){$r&&this._sync(["_removeElements",Fe,$r]);const Fr=arguments.length-2;Fr&&this._sync(["_insertElements",Fe,Fr])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}ei(DatasetController,"defaults",{}),ei(DatasetController,"datasetElementType",null),ei(DatasetController,"dataElementType",null);class LineController extends DatasetController{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(Fe){const $r=this._cachedMeta,{dataset:Fr,data:jr=[],_dataset:zr}=$r,Vr=this.chart._animationsDisabled;let{start:Wr,count:Kr}=_getStartAndCountOfVisiblePoints($r,jr,Vr);this._drawStart=Wr,this._drawCount=Kr,_scaleRangesChanged($r)&&(Wr=0,Kr=jr.length),Fr._chart=this.chart,Fr._datasetIndex=this.index,Fr._decimated=!!zr._decimated,Fr.points=jr;const Gr=this.resolveDatasetElementOptions(Fe);this.options.showLine||(Gr.borderWidth=0),Gr.segment=this.options.segment,this.updateElement(Fr,void 0,{animated:!Vr,options:Gr},Fe),this.updateElements(jr,Wr,Kr,Fe)}updateElements(Fe,$r,Fr,jr){const zr=jr==="reset",{iScale:Vr,vScale:Wr,_stacked:Kr,_dataset:Gr}=this._cachedMeta,{sharedOptions:Yr,includeOptions:Qr}=this._getSharedOptions($r,jr),Jr=Vr.axis,Zr=Wr.axis,{spanGaps:tn,segment:en}=this.options,rn=isNumber$1(tn)?tn:Number.POSITIVE_INFINITY,nn=this.chart._animationsDisabled||zr||jr==="none",on=$r+Fr,un=Fe.length;let an=$r>0&&this.getParsed($r-1);for(let sn=0;sn<un;++sn){const dn=Fe[sn],ln=nn?dn:{};if(sn<$r||sn>=on){ln.skip=!0;continue}const cn=this.getParsed(sn),fn=isNullOrUndef(cn[Zr]),pn=ln[Jr]=Vr.getPixelForValue(cn[Jr],sn),hn=ln[Zr]=zr||fn?Wr.getBasePixel():Wr.getPixelForValue(Kr?this.applyStack(Wr,cn,Kr):cn[Zr],sn);ln.skip=isNaN(pn)||isNaN(hn)||fn,ln.stop=sn>0&&Math.abs(cn[Jr]-an[Jr])>rn,en&&(ln.parsed=cn,ln.raw=Gr.data[sn]),Qr&&(ln.options=Yr||this.resolveDataElementOptions(sn,dn.active?"active":jr)),nn||this.updateElement(dn,sn,ln,jr),an=cn}}getMaxOverflow(){const Fe=this._cachedMeta,$r=Fe.dataset,Fr=$r.options&&$r.options.borderWidth||0,jr=Fe.data||[];if(!jr.length)return Fr;const zr=jr[0].size(this.resolveDataElementOptions(0)),Vr=jr[jr.length-1].size(this.resolveDataElementOptions(jr.length-1));return Math.max(Fr,zr,Vr)/2}draw(){const Fe=this._cachedMeta;Fe.dataset.updateControlPoints(this.chart.chartArea,Fe.iScale.axis),super.draw()}}ei(LineController,"id","line"),ei(LineController,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),ei(LineController,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function abstract(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class DateAdapterBase{constructor(Fe){ei(this,"options");this.options=Fe||{}}static override(Fe){Object.assign(DateAdapterBase.prototype,Fe)}init(){}formats(){return abstract()}parse(){return abstract()}format(){return abstract()}add(){return abstract()}diff(){return abstract()}startOf(){return abstract()}endOf(){return abstract()}}var adapters={_date:DateAdapterBase};function binarySearch(_r,Fe,$r,Fr){const{controller:jr,data:zr,_sorted:Vr}=_r,Wr=jr._cachedMeta.iScale;if(Wr&&Fe===Wr.axis&&Fe!=="r"&&Vr&&zr.length){const Kr=Wr._reversePixels?_rlookupByKey:_lookupByKey;if(Fr){if(jr._sharedOptions){const Gr=zr[0],Yr=typeof Gr.getRange=="function"&&Gr.getRange(Fe);if(Yr){const Qr=Kr(zr,Fe,$r-Yr),Jr=Kr(zr,Fe,$r+Yr);return{lo:Qr.lo,hi:Jr.hi}}}}else return Kr(zr,Fe,$r)}return{lo:0,hi:zr.length-1}}function evaluateInteractionItems(_r,Fe,$r,Fr,jr){const zr=_r.getSortedVisibleDatasetMetas(),Vr=$r[Fe];for(let Wr=0,Kr=zr.length;Wr<Kr;++Wr){const{index:Gr,data:Yr}=zr[Wr],{lo:Qr,hi:Jr}=binarySearch(zr[Wr],Fe,Vr,jr);for(let Zr=Qr;Zr<=Jr;++Zr){const tn=Yr[Zr];tn.skip||Fr(tn,Gr,Zr)}}}function getDistanceMetricForAxis(_r){const Fe=_r.indexOf("x")!==-1,$r=_r.indexOf("y")!==-1;return function(Fr,jr){const zr=Fe?Math.abs(Fr.x-jr.x):0,Vr=$r?Math.abs(Fr.y-jr.y):0;return Math.sqrt(Math.pow(zr,2)+Math.pow(Vr,2))}}function getIntersectItems(_r,Fe,$r,Fr,jr){const zr=[];return!jr&&!_r.isPointInArea(Fe)||evaluateInteractionItems(_r,$r,Fe,function(Wr,Kr,Gr){!jr&&!_isPointInArea(Wr,_r.chartArea,0)||Wr.inRange(Fe.x,Fe.y,Fr)&&zr.push({element:Wr,datasetIndex:Kr,index:Gr})},!0),zr}function getNearestRadialItems(_r,Fe,$r,Fr){let jr=[];function zr(Vr,Wr,Kr){const{startAngle:Gr,endAngle:Yr}=Vr.getProps(["startAngle","endAngle"],Fr),{angle:Qr}=getAngleFromPoint(Vr,{x:Fe.x,y:Fe.y});_angleBetween(Qr,Gr,Yr)&&jr.push({element:Vr,datasetIndex:Wr,index:Kr})}return evaluateInteractionItems(_r,$r,Fe,zr),jr}function getNearestCartesianItems(_r,Fe,$r,Fr,jr,zr){let Vr=[];const Wr=getDistanceMetricForAxis($r);let Kr=Number.POSITIVE_INFINITY;function Gr(Yr,Qr,Jr){const Zr=Yr.inRange(Fe.x,Fe.y,jr);if(Fr&&!Zr)return;const tn=Yr.getCenterPoint(jr);if(!(!!zr||_r.isPointInArea(tn))&&!Zr)return;const rn=Wr(Fe,tn);rn<Kr?(Vr=[{element:Yr,datasetIndex:Qr,index:Jr}],Kr=rn):rn===Kr&&Vr.push({element:Yr,datasetIndex:Qr,index:Jr})}return evaluateInteractionItems(_r,$r,Fe,Gr),Vr}function getNearestItems(_r,Fe,$r,Fr,jr,zr){return!zr&&!_r.isPointInArea(Fe)?[]:$r==="r"&&!Fr?getNearestRadialItems(_r,Fe,$r,jr):getNearestCartesianItems(_r,Fe,$r,Fr,jr,zr)}function getAxisItems(_r,Fe,$r,Fr,jr){const zr=[],Vr=$r==="x"?"inXRange":"inYRange";let Wr=!1;return evaluateInteractionItems(_r,$r,Fe,(Kr,Gr,Yr)=>{Kr[Vr](Fe[$r],jr)&&(zr.push({element:Kr,datasetIndex:Gr,index:Yr}),Wr=Wr||Kr.inRange(Fe.x,Fe.y,jr))}),Fr&&!Wr?[]:zr}var Interaction={evaluateInteractionItems,modes:{index(_r,Fe,$r,Fr){const jr=getRelativePosition(Fe,_r),zr=$r.axis||"x",Vr=$r.includeInvisible||!1,Wr=$r.intersect?getIntersectItems(_r,jr,zr,Fr,Vr):getNearestItems(_r,jr,zr,!1,Fr,Vr),Kr=[];return Wr.length?(_r.getSortedVisibleDatasetMetas().forEach(Gr=>{const Yr=Wr[0].index,Qr=Gr.data[Yr];Qr&&!Qr.skip&&Kr.push({element:Qr,datasetIndex:Gr.index,index:Yr})}),Kr):[]},dataset(_r,Fe,$r,Fr){const jr=getRelativePosition(Fe,_r),zr=$r.axis||"xy",Vr=$r.includeInvisible||!1;let Wr=$r.intersect?getIntersectItems(_r,jr,zr,Fr,Vr):getNearestItems(_r,jr,zr,!1,Fr,Vr);if(Wr.length>0){const Kr=Wr[0].datasetIndex,Gr=_r.getDatasetMeta(Kr).data;Wr=[];for(let Yr=0;Yr<Gr.length;++Yr)Wr.push({element:Gr[Yr],datasetIndex:Kr,index:Yr})}return Wr},point(_r,Fe,$r,Fr){const jr=getRelativePosition(Fe,_r),zr=$r.axis||"xy",Vr=$r.includeInvisible||!1;return getIntersectItems(_r,jr,zr,Fr,Vr)},nearest(_r,Fe,$r,Fr){const jr=getRelativePosition(Fe,_r),zr=$r.axis||"xy",Vr=$r.includeInvisible||!1;return getNearestItems(_r,jr,zr,$r.intersect,Fr,Vr)},x(_r,Fe,$r,Fr){const jr=getRelativePosition(Fe,_r);return getAxisItems(_r,jr,"x",$r.intersect,Fr)},y(_r,Fe,$r,Fr){const jr=getRelativePosition(Fe,_r);return getAxisItems(_r,jr,"y",$r.intersect,Fr)}}};const STATIC_POSITIONS=["left","top","right","bottom"];function filterByPosition(_r,Fe){return _r.filter($r=>$r.pos===Fe)}function filterDynamicPositionByAxis(_r,Fe){return _r.filter($r=>STATIC_POSITIONS.indexOf($r.pos)===-1&&$r.box.axis===Fe)}function sortByWeight(_r,Fe){return _r.sort(($r,Fr)=>{const jr=Fe?Fr:$r,zr=Fe?$r:Fr;return jr.weight===zr.weight?jr.index-zr.index:jr.weight-zr.weight})}function wrapBoxes(_r){const Fe=[];let $r,Fr,jr,zr,Vr,Wr;for($r=0,Fr=(_r||[]).length;$r<Fr;++$r)jr=_r[$r],{position:zr,options:{stack:Vr,stackWeight:Wr=1}}=jr,Fe.push({index:$r,box:jr,pos:zr,horizontal:jr.isHorizontal(),weight:jr.weight,stack:Vr&&zr+Vr,stackWeight:Wr});return Fe}function buildStacks(_r){const Fe={};for(const $r of _r){const{stack:Fr,pos:jr,stackWeight:zr}=$r;if(!Fr||!STATIC_POSITIONS.includes(jr))continue;const Vr=Fe[Fr]||(Fe[Fr]={count:0,placed:0,weight:0,size:0});Vr.count++,Vr.weight+=zr}return Fe}function setLayoutDims(_r,Fe){const $r=buildStacks(_r),{vBoxMaxWidth:Fr,hBoxMaxHeight:jr}=Fe;let zr,Vr,Wr;for(zr=0,Vr=_r.length;zr<Vr;++zr){Wr=_r[zr];const{fullSize:Kr}=Wr.box,Gr=$r[Wr.stack],Yr=Gr&&Wr.stackWeight/Gr.weight;Wr.horizontal?(Wr.width=Yr?Yr*Fr:Kr&&Fe.availableWidth,Wr.height=jr):(Wr.width=Fr,Wr.height=Yr?Yr*jr:Kr&&Fe.availableHeight)}return $r}function buildLayoutBoxes(_r){const Fe=wrapBoxes(_r),$r=sortByWeight(Fe.filter(Gr=>Gr.box.fullSize),!0),Fr=sortByWeight(filterByPosition(Fe,"left"),!0),jr=sortByWeight(filterByPosition(Fe,"right")),zr=sortByWeight(filterByPosition(Fe,"top"),!0),Vr=sortByWeight(filterByPosition(Fe,"bottom")),Wr=filterDynamicPositionByAxis(Fe,"x"),Kr=filterDynamicPositionByAxis(Fe,"y");return{fullSize:$r,leftAndTop:Fr.concat(zr),rightAndBottom:jr.concat(Kr).concat(Vr).concat(Wr),chartArea:filterByPosition(Fe,"chartArea"),vertical:Fr.concat(jr).concat(Kr),horizontal:zr.concat(Vr).concat(Wr)}}function getCombinedMax(_r,Fe,$r,Fr){return Math.max(_r[$r],Fe[$r])+Math.max(_r[Fr],Fe[Fr])}function updateMaxPadding(_r,Fe){_r.top=Math.max(_r.top,Fe.top),_r.left=Math.max(_r.left,Fe.left),_r.bottom=Math.max(_r.bottom,Fe.bottom),_r.right=Math.max(_r.right,Fe.right)}function updateDims(_r,Fe,$r,Fr){const{pos:jr,box:zr}=$r,Vr=_r.maxPadding;if(!isObject(jr)){$r.size&&(_r[jr]-=$r.size);const Qr=Fr[$r.stack]||{size:0,count:1};Qr.size=Math.max(Qr.size,$r.horizontal?zr.height:zr.width),$r.size=Qr.size/Qr.count,_r[jr]+=$r.size}zr.getPadding&&updateMaxPadding(Vr,zr.getPadding());const Wr=Math.max(0,Fe.outerWidth-getCombinedMax(Vr,_r,"left","right")),Kr=Math.max(0,Fe.outerHeight-getCombinedMax(Vr,_r,"top","bottom")),Gr=Wr!==_r.w,Yr=Kr!==_r.h;return _r.w=Wr,_r.h=Kr,$r.horizontal?{same:Gr,other:Yr}:{same:Yr,other:Gr}}function handleMaxPadding(_r){const Fe=_r.maxPadding;function $r(Fr){const jr=Math.max(Fe[Fr]-_r[Fr],0);return _r[Fr]+=jr,jr}_r.y+=$r("top"),_r.x+=$r("left"),$r("right"),$r("bottom")}function getMargins(_r,Fe){const $r=Fe.maxPadding;function Fr(jr){const zr={left:0,top:0,right:0,bottom:0};return jr.forEach(Vr=>{zr[Vr]=Math.max(Fe[Vr],$r[Vr])}),zr}return Fr(_r?["left","right"]:["top","bottom"])}function fitBoxes(_r,Fe,$r,Fr){const jr=[];let zr,Vr,Wr,Kr,Gr,Yr;for(zr=0,Vr=_r.length,Gr=0;zr<Vr;++zr){Wr=_r[zr],Kr=Wr.box,Kr.update(Wr.width||Fe.w,Wr.height||Fe.h,getMargins(Wr.horizontal,Fe));const{same:Qr,other:Jr}=updateDims(Fe,$r,Wr,Fr);Gr|=Qr&&jr.length,Yr=Yr||Jr,Kr.fullSize||jr.push(Wr)}return Gr&&fitBoxes(jr,Fe,$r,Fr)||Yr}function setBoxDims(_r,Fe,$r,Fr,jr){_r.top=$r,_r.left=Fe,_r.right=Fe+Fr,_r.bottom=$r+jr,_r.width=Fr,_r.height=jr}function placeBoxes(_r,Fe,$r,Fr){const jr=$r.padding;let{x:zr,y:Vr}=Fe;for(const Wr of _r){const Kr=Wr.box,Gr=Fr[Wr.stack]||{count:1,placed:0,weight:1},Yr=Wr.stackWeight/Gr.weight||1;if(Wr.horizontal){const Qr=Fe.w*Yr,Jr=Gr.size||Kr.height;defined(Gr.start)&&(Vr=Gr.start),Kr.fullSize?setBoxDims(Kr,jr.left,Vr,$r.outerWidth-jr.right-jr.left,Jr):setBoxDims(Kr,Fe.left+Gr.placed,Vr,Qr,Jr),Gr.start=Vr,Gr.placed+=Qr,Vr=Kr.bottom}else{const Qr=Fe.h*Yr,Jr=Gr.size||Kr.width;defined(Gr.start)&&(zr=Gr.start),Kr.fullSize?setBoxDims(Kr,zr,jr.top,Jr,$r.outerHeight-jr.bottom-jr.top):setBoxDims(Kr,zr,Fe.top+Gr.placed,Jr,Qr),Gr.start=zr,Gr.placed+=Qr,zr=Kr.right}}Fe.x=zr,Fe.y=Vr}var layouts={addBox(_r,Fe){_r.boxes||(_r.boxes=[]),Fe.fullSize=Fe.fullSize||!1,Fe.position=Fe.position||"top",Fe.weight=Fe.weight||0,Fe._layers=Fe._layers||function(){return[{z:0,draw($r){Fe.draw($r)}}]},_r.boxes.push(Fe)},removeBox(_r,Fe){const $r=_r.boxes?_r.boxes.indexOf(Fe):-1;$r!==-1&&_r.boxes.splice($r,1)},configure(_r,Fe,$r){Fe.fullSize=$r.fullSize,Fe.position=$r.position,Fe.weight=$r.weight},update(_r,Fe,$r,Fr){if(!_r)return;const jr=toPadding(_r.options.layout.padding),zr=Math.max(Fe-jr.width,0),Vr=Math.max($r-jr.height,0),Wr=buildLayoutBoxes(_r.boxes),Kr=Wr.vertical,Gr=Wr.horizontal;each(_r.boxes,en=>{typeof en.beforeLayout=="function"&&en.beforeLayout()});const Yr=Kr.reduce((en,rn)=>rn.box.options&&rn.box.options.display===!1?en:en+1,0)||1,Qr=Object.freeze({outerWidth:Fe,outerHeight:$r,padding:jr,availableWidth:zr,availableHeight:Vr,vBoxMaxWidth:zr/2/Yr,hBoxMaxHeight:Vr/2}),Jr=Object.assign({},jr);updateMaxPadding(Jr,toPadding(Fr));const Zr=Object.assign({maxPadding:Jr,w:zr,h:Vr,x:jr.left,y:jr.top},jr),tn=setLayoutDims(Kr.concat(Gr),Qr);fitBoxes(Wr.fullSize,Zr,Qr,tn),fitBoxes(Kr,Zr,Qr,tn),fitBoxes(Gr,Zr,Qr,tn)&&fitBoxes(Kr,Zr,Qr,tn),handleMaxPadding(Zr),placeBoxes(Wr.leftAndTop,Zr,Qr,tn),Zr.x+=Zr.w,Zr.y+=Zr.h,placeBoxes(Wr.rightAndBottom,Zr,Qr,tn),_r.chartArea={left:Zr.left,top:Zr.top,right:Zr.left+Zr.w,bottom:Zr.top+Zr.h,height:Zr.h,width:Zr.w},each(Wr.chartArea,en=>{const rn=en.box;Object.assign(rn,_r.chartArea),rn.update(Zr.w,Zr.h,{left:0,top:0,right:0,bottom:0})})}};class BasePlatform{acquireContext(Fe,$r){}releaseContext(Fe){return!1}addEventListener(Fe,$r,Fr){}removeEventListener(Fe,$r,Fr){}getDevicePixelRatio(){return 1}getMaximumSize(Fe,$r,Fr,jr){return $r=Math.max(0,$r||Fe.width),Fr=Fr||Fe.height,{width:$r,height:Math.max(0,jr?Math.floor($r/jr):Fr)}}isAttached(Fe){return!0}updateConfig(Fe){}}class BasicPlatform extends BasePlatform{acquireContext(Fe){return Fe&&Fe.getContext&&Fe.getContext("2d")||null}updateConfig(Fe){Fe.options.animation=!1}}const EXPANDO_KEY="$chartjs",EVENT_TYPES={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},isNullOrEmpty=_r=>_r===null||_r==="";function initCanvas(_r,Fe){const $r=_r.style,Fr=_r.getAttribute("height"),jr=_r.getAttribute("width");if(_r[EXPANDO_KEY]={initial:{height:Fr,width:jr,style:{display:$r.display,height:$r.height,width:$r.width}}},$r.display=$r.display||"block",$r.boxSizing=$r.boxSizing||"border-box",isNullOrEmpty(jr)){const zr=readUsedSize(_r,"width");zr!==void 0&&(_r.width=zr)}if(isNullOrEmpty(Fr))if(_r.style.height==="")_r.height=_r.width/(Fe||2);else{const zr=readUsedSize(_r,"height");zr!==void 0&&(_r.height=zr)}return _r}const eventListenerOptions=supportsEventListenerOptions?{passive:!0}:!1;function addListener(_r,Fe,$r){_r.addEventListener(Fe,$r,eventListenerOptions)}function removeListener(_r,Fe,$r){_r.canvas.removeEventListener(Fe,$r,eventListenerOptions)}function fromNativeEvent(_r,Fe){const $r=EVENT_TYPES[_r.type]||_r.type,{x:Fr,y:jr}=getRelativePosition(_r,Fe);return{type:$r,chart:Fe,native:_r,x:Fr!==void 0?Fr:null,y:jr!==void 0?jr:null}}function nodeListContains(_r,Fe){for(const $r of _r)if($r===Fe||$r.contains(Fe))return!0}function createAttachObserver(_r,Fe,$r){const Fr=_r.canvas,jr=new MutationObserver(zr=>{let Vr=!1;for(const Wr of zr)Vr=Vr||nodeListContains(Wr.addedNodes,Fr),Vr=Vr&&!nodeListContains(Wr.removedNodes,Fr);Vr&&$r()});return jr.observe(document,{childList:!0,subtree:!0}),jr}function createDetachObserver(_r,Fe,$r){const Fr=_r.canvas,jr=new MutationObserver(zr=>{let Vr=!1;for(const Wr of zr)Vr=Vr||nodeListContains(Wr.removedNodes,Fr),Vr=Vr&&!nodeListContains(Wr.addedNodes,Fr);Vr&&$r()});return jr.observe(document,{childList:!0,subtree:!0}),jr}const drpListeningCharts=new Map;let oldDevicePixelRatio=0;function onWindowResize(){const _r=window.devicePixelRatio;_r!==oldDevicePixelRatio&&(oldDevicePixelRatio=_r,drpListeningCharts.forEach((Fe,$r)=>{$r.currentDevicePixelRatio!==_r&&Fe()}))}function listenDevicePixelRatioChanges(_r,Fe){drpListeningCharts.size||window.addEventListener("resize",onWindowResize),drpListeningCharts.set(_r,Fe)}function unlistenDevicePixelRatioChanges(_r){drpListeningCharts.delete(_r),drpListeningCharts.size||window.removeEventListener("resize",onWindowResize)}function createResizeObserver(_r,Fe,$r){const Fr=_r.canvas,jr=Fr&&_getParentNode(Fr);if(!jr)return;const zr=throttled((Wr,Kr)=>{const Gr=jr.clientWidth;$r(Wr,Kr),Gr<jr.clientWidth&&$r()},window),Vr=new ResizeObserver(Wr=>{const Kr=Wr[0],Gr=Kr.contentRect.width,Yr=Kr.contentRect.height;Gr===0&&Yr===0||zr(Gr,Yr)});return Vr.observe(jr),listenDevicePixelRatioChanges(_r,zr),Vr}function releaseObserver(_r,Fe,$r){$r&&$r.disconnect(),Fe==="resize"&&unlistenDevicePixelRatioChanges(_r)}function createProxyAndListen(_r,Fe,$r){const Fr=_r.canvas,jr=throttled(zr=>{_r.ctx!==null&&$r(fromNativeEvent(zr,_r))},_r);return addListener(Fr,Fe,jr),jr}class DomPlatform extends BasePlatform{acquireContext(Fe,$r){const Fr=Fe&&Fe.getContext&&Fe.getContext("2d");return Fr&&Fr.canvas===Fe?(initCanvas(Fe,$r),Fr):null}releaseContext(Fe){const $r=Fe.canvas;if(!$r[EXPANDO_KEY])return!1;const Fr=$r[EXPANDO_KEY].initial;["height","width"].forEach(zr=>{const Vr=Fr[zr];isNullOrUndef(Vr)?$r.removeAttribute(zr):$r.setAttribute(zr,Vr)});const jr=Fr.style||{};return Object.keys(jr).forEach(zr=>{$r.style[zr]=jr[zr]}),$r.width=$r.width,delete $r[EXPANDO_KEY],!0}addEventListener(Fe,$r,Fr){this.removeEventListener(Fe,$r);const jr=Fe.$proxies||(Fe.$proxies={}),Vr={attach:createAttachObserver,detach:createDetachObserver,resize:createResizeObserver}[$r]||createProxyAndListen;jr[$r]=Vr(Fe,$r,Fr)}removeEventListener(Fe,$r){const Fr=Fe.$proxies||(Fe.$proxies={}),jr=Fr[$r];if(!jr)return;({attach:releaseObserver,detach:releaseObserver,resize:releaseObserver}[$r]||removeListener)(Fe,$r,jr),Fr[$r]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(Fe,$r,Fr,jr){return getMaximumSize(Fe,$r,Fr,jr)}isAttached(Fe){const $r=_getParentNode(Fe);return!!($r&&$r.isConnected)}}function _detectPlatform(_r){return!_isDomSupported()||typeof OffscreenCanvas!="undefined"&&_r instanceof OffscreenCanvas?BasicPlatform:DomPlatform}class Element$1{constructor(){ei(this,"x");ei(this,"y");ei(this,"active",!1);ei(this,"options");ei(this,"$animations")}tooltipPosition(Fe){const{x:$r,y:Fr}=this.getProps(["x","y"],Fe);return{x:$r,y:Fr}}hasValue(){return isNumber$1(this.x)&&isNumber$1(this.y)}getProps(Fe,$r){const Fr=this.$animations;if(!$r||!Fr)return this;const jr={};return Fe.forEach(zr=>{jr[zr]=Fr[zr]&&Fr[zr].active()?Fr[zr]._to:this[zr]}),jr}}ei(Element$1,"defaults",{}),ei(Element$1,"defaultRoutes");function autoSkip(_r,Fe){const $r=_r.options.ticks,Fr=determineMaxTicks(_r),jr=Math.min($r.maxTicksLimit||Fr,Fr),zr=$r.major.enabled?getMajorIndices(Fe):[],Vr=zr.length,Wr=zr[0],Kr=zr[Vr-1],Gr=[];if(Vr>jr)return skipMajors(Fe,Gr,zr,Vr/jr),Gr;const Yr=calculateSpacing(zr,Fe,jr);if(Vr>0){let Qr,Jr;const Zr=Vr>1?Math.round((Kr-Wr)/(Vr-1)):null;for(skip(Fe,Gr,Yr,isNullOrUndef(Zr)?0:Wr-Zr,Wr),Qr=0,Jr=Vr-1;Qr<Jr;Qr++)skip(Fe,Gr,Yr,zr[Qr],zr[Qr+1]);return skip(Fe,Gr,Yr,Kr,isNullOrUndef(Zr)?Fe.length:Kr+Zr),Gr}return skip(Fe,Gr,Yr),Gr}function determineMaxTicks(_r){const Fe=_r.options.offset,$r=_r._tickSize(),Fr=_r._length/$r+(Fe?0:1),jr=_r._maxLength/$r;return Math.floor(Math.min(Fr,jr))}function calculateSpacing(_r,Fe,$r){const Fr=getEvenSpacing(_r),jr=Fe.length/$r;if(!Fr)return Math.max(jr,1);const zr=_factorize(Fr);for(let Vr=0,Wr=zr.length-1;Vr<Wr;Vr++){const Kr=zr[Vr];if(Kr>jr)return Kr}return Math.max(jr,1)}function getMajorIndices(_r){const Fe=[];let $r,Fr;for($r=0,Fr=_r.length;$r<Fr;$r++)_r[$r].major&&Fe.push($r);return Fe}function skipMajors(_r,Fe,$r,Fr){let jr=0,zr=$r[0],Vr;for(Fr=Math.ceil(Fr),Vr=0;Vr<_r.length;Vr++)Vr===zr&&(Fe.push(_r[Vr]),jr++,zr=$r[jr*Fr])}function skip(_r,Fe,$r,Fr,jr){const zr=valueOrDefault(Fr,0),Vr=Math.min(valueOrDefault(jr,_r.length),_r.length);let Wr=0,Kr,Gr,Yr;for($r=Math.ceil($r),jr&&(Kr=jr-Fr,$r=Kr/Math.floor(Kr/$r)),Yr=zr;Yr<0;)Wr++,Yr=Math.round(zr+Wr*$r);for(Gr=Math.max(zr,0);Gr<Vr;Gr++)Gr===Yr&&(Fe.push(_r[Gr]),Wr++,Yr=Math.round(zr+Wr*$r))}function getEvenSpacing(_r){const Fe=_r.length;let $r,Fr;if(Fe<2)return!1;for(Fr=_r[0],$r=1;$r<Fe;++$r)if(_r[$r]-_r[$r-1]!==Fr)return!1;return Fr}const reverseAlign=_r=>_r==="left"?"right":_r==="right"?"left":_r,offsetFromEdge=(_r,Fe,$r)=>Fe==="top"||Fe==="left"?_r[Fe]+$r:_r[Fe]-$r,getTicksLimit=(_r,Fe)=>Math.min(Fe||_r,_r);function sample(_r,Fe){const $r=[],Fr=_r.length/Fe,jr=_r.length;let zr=0;for(;zr<jr;zr+=Fr)$r.push(_r[Math.floor(zr)]);return $r}function getPixelForGridLine(_r,Fe,$r){const Fr=_r.ticks.length,jr=Math.min(Fe,Fr-1),zr=_r._startPixel,Vr=_r._endPixel,Wr=1e-6;let Kr=_r.getPixelForTick(jr),Gr;if(!($r&&(Fr===1?Gr=Math.max(Kr-zr,Vr-Kr):Fe===0?Gr=(_r.getPixelForTick(1)-Kr)/2:Gr=(Kr-_r.getPixelForTick(jr-1))/2,Kr+=jr<Fe?Gr:-Gr,Kr<zr-Wr||Kr>Vr+Wr)))return Kr}function garbageCollect(_r,Fe){each(_r,$r=>{const Fr=$r.gc,jr=Fr.length/2;let zr;if(jr>Fe){for(zr=0;zr<jr;++zr)delete $r.data[Fr[zr]];Fr.splice(0,jr)}})}function getTickMarkLength(_r){return _r.drawTicks?_r.tickLength:0}function getTitleHeight(_r,Fe){if(!_r.display)return 0;const $r=toFont(_r.font,Fe),Fr=toPadding(_r.padding);return(isArray(_r.text)?_r.text.length:1)*$r.lineHeight+Fr.height}function createScaleContext(_r,Fe){return createContext(_r,{scale:Fe,type:"scale"})}function createTickContext(_r,Fe,$r){return createContext(_r,{tick:$r,index:Fe,type:"tick"})}function titleAlign(_r,Fe,$r){let Fr=_toLeftRightCenter(_r);return($r&&Fe!=="right"||!$r&&Fe==="right")&&(Fr=reverseAlign(Fr)),Fr}function titleArgs(_r,Fe,$r,Fr){const{top:jr,left:zr,bottom:Vr,right:Wr,chart:Kr}=_r,{chartArea:Gr,scales:Yr}=Kr;let Qr=0,Jr,Zr,tn;const en=Vr-jr,rn=Wr-zr;if(_r.isHorizontal()){if(Zr=_alignStartEnd(Fr,zr,Wr),isObject($r)){const nn=Object.keys($r)[0],on=$r[nn];tn=Yr[nn].getPixelForValue(on)+en-Fe}else $r==="center"?tn=(Gr.bottom+Gr.top)/2+en-Fe:tn=offsetFromEdge(_r,$r,Fe);Jr=Wr-zr}else{if(isObject($r)){const nn=Object.keys($r)[0],on=$r[nn];Zr=Yr[nn].getPixelForValue(on)-rn+Fe}else $r==="center"?Zr=(Gr.left+Gr.right)/2-rn+Fe:Zr=offsetFromEdge(_r,$r,Fe);tn=_alignStartEnd(Fr,Vr,jr),Qr=$r==="left"?-HALF_PI:HALF_PI}return{titleX:Zr,titleY:tn,maxWidth:Jr,rotation:Qr}}class Scale extends Element$1{constructor(Fe){super(),this.id=Fe.id,this.type=Fe.type,this.options=void 0,this.ctx=Fe.ctx,this.chart=Fe.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(Fe){this.options=Fe.setContext(this.getContext()),this.axis=Fe.axis,this._userMin=this.parse(Fe.min),this._userMax=this.parse(Fe.max),this._suggestedMin=this.parse(Fe.suggestedMin),this._suggestedMax=this.parse(Fe.suggestedMax)}parse(Fe,$r){return Fe}getUserBounds(){let{_userMin:Fe,_userMax:$r,_suggestedMin:Fr,_suggestedMax:jr}=this;return Fe=finiteOrDefault(Fe,Number.POSITIVE_INFINITY),$r=finiteOrDefault($r,Number.NEGATIVE_INFINITY),Fr=finiteOrDefault(Fr,Number.POSITIVE_INFINITY),jr=finiteOrDefault(jr,Number.NEGATIVE_INFINITY),{min:finiteOrDefault(Fe,Fr),max:finiteOrDefault($r,jr),minDefined:isNumberFinite(Fe),maxDefined:isNumberFinite($r)}}getMinMax(Fe){let{min:$r,max:Fr,minDefined:jr,maxDefined:zr}=this.getUserBounds(),Vr;if(jr&&zr)return{min:$r,max:Fr};const Wr=this.getMatchingVisibleMetas();for(let Kr=0,Gr=Wr.length;Kr<Gr;++Kr)Vr=Wr[Kr].controller.getMinMax(this,Fe),jr||($r=Math.min($r,Vr.min)),zr||(Fr=Math.max(Fr,Vr.max));return $r=zr&&$r>Fr?Fr:$r,Fr=jr&&$r>Fr?$r:Fr,{min:finiteOrDefault($r,finiteOrDefault(Fr,$r)),max:finiteOrDefault(Fr,finiteOrDefault($r,Fr))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const Fe=this.chart.data;return this.options.labels||(this.isHorizontal()?Fe.xLabels:Fe.yLabels)||Fe.labels||[]}getLabelItems(Fe=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(Fe))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){callback(this.options.beforeUpdate,[this])}update(Fe,$r,Fr){const{beginAtZero:jr,grace:zr,ticks:Vr}=this.options,Wr=Vr.sampleSize;this.beforeUpdate(),this.maxWidth=Fe,this.maxHeight=$r,this._margins=Fr=Object.assign({left:0,right:0,top:0,bottom:0},Fr),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+Fr.left+Fr.right:this.height+Fr.top+Fr.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=_addGrace(this,zr,jr),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const Kr=Wr<this.ticks.length;this._convertTicksToLabels(Kr?sample(this.ticks,Wr):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),Vr.display&&(Vr.autoSkip||Vr.source==="auto")&&(this.ticks=autoSkip(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),Kr&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let Fe=this.options.reverse,$r,Fr;this.isHorizontal()?($r=this.left,Fr=this.right):($r=this.top,Fr=this.bottom,Fe=!Fe),this._startPixel=$r,this._endPixel=Fr,this._reversePixels=Fe,this._length=Fr-$r,this._alignToPixels=this.options.alignToPixels}afterUpdate(){callback(this.options.afterUpdate,[this])}beforeSetDimensions(){callback(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){callback(this.options.afterSetDimensions,[this])}_callHooks(Fe){this.chart.notifyPlugins(Fe,this.getContext()),callback(this.options[Fe],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){callback(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(Fe){const $r=this.options.ticks;let Fr,jr,zr;for(Fr=0,jr=Fe.length;Fr<jr;Fr++)zr=Fe[Fr],zr.label=callback($r.callback,[zr.value,Fr,Fe],this)}afterTickToLabelConversion(){callback(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){callback(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const Fe=this.options,$r=Fe.ticks,Fr=getTicksLimit(this.ticks.length,Fe.ticks.maxTicksLimit),jr=$r.minRotation||0,zr=$r.maxRotation;let Vr=jr,Wr,Kr,Gr;if(!this._isVisible()||!$r.display||jr>=zr||Fr<=1||!this.isHorizontal()){this.labelRotation=jr;return}const Yr=this._getLabelSizes(),Qr=Yr.widest.width,Jr=Yr.highest.height,Zr=_limitValue(this.chart.width-Qr,0,this.maxWidth);Wr=Fe.offset?this.maxWidth/Fr:Zr/(Fr-1),Qr+6>Wr&&(Wr=Zr/(Fr-(Fe.offset?.5:1)),Kr=this.maxHeight-getTickMarkLength(Fe.grid)-$r.padding-getTitleHeight(Fe.title,this.chart.options.font),Gr=Math.sqrt(Qr*Qr+Jr*Jr),Vr=toDegrees(Math.min(Math.asin(_limitValue((Yr.highest.height+6)/Wr,-1,1)),Math.asin(_limitValue(Kr/Gr,-1,1))-Math.asin(_limitValue(Jr/Gr,-1,1)))),Vr=Math.max(jr,Math.min(zr,Vr))),this.labelRotation=Vr}afterCalculateLabelRotation(){callback(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){callback(this.options.beforeFit,[this])}fit(){const Fe={width:0,height:0},{chart:$r,options:{ticks:Fr,title:jr,grid:zr}}=this,Vr=this._isVisible(),Wr=this.isHorizontal();if(Vr){const Kr=getTitleHeight(jr,$r.options.font);if(Wr?(Fe.width=this.maxWidth,Fe.height=getTickMarkLength(zr)+Kr):(Fe.height=this.maxHeight,Fe.width=getTickMarkLength(zr)+Kr),Fr.display&&this.ticks.length){const{first:Gr,last:Yr,widest:Qr,highest:Jr}=this._getLabelSizes(),Zr=Fr.padding*2,tn=toRadians(this.labelRotation),en=Math.cos(tn),rn=Math.sin(tn);if(Wr){const nn=Fr.mirror?0:rn*Qr.width+en*Jr.height;Fe.height=Math.min(this.maxHeight,Fe.height+nn+Zr)}else{const nn=Fr.mirror?0:en*Qr.width+rn*Jr.height;Fe.width=Math.min(this.maxWidth,Fe.width+nn+Zr)}this._calculatePadding(Gr,Yr,rn,en)}}this._handleMargins(),Wr?(this.width=this._length=$r.width-this._margins.left-this._margins.right,this.height=Fe.height):(this.width=Fe.width,this.height=this._length=$r.height-this._margins.top-this._margins.bottom)}_calculatePadding(Fe,$r,Fr,jr){const{ticks:{align:zr,padding:Vr},position:Wr}=this.options,Kr=this.labelRotation!==0,Gr=Wr!=="top"&&this.axis==="x";if(this.isHorizontal()){const Yr=this.getPixelForTick(0)-this.left,Qr=this.right-this.getPixelForTick(this.ticks.length-1);let Jr=0,Zr=0;Kr?Gr?(Jr=jr*Fe.width,Zr=Fr*$r.height):(Jr=Fr*Fe.height,Zr=jr*$r.width):zr==="start"?Zr=$r.width:zr==="end"?Jr=Fe.width:zr!=="inner"&&(Jr=Fe.width/2,Zr=$r.width/2),this.paddingLeft=Math.max((Jr-Yr+Vr)*this.width/(this.width-Yr),0),this.paddingRight=Math.max((Zr-Qr+Vr)*this.width/(this.width-Qr),0)}else{let Yr=$r.height/2,Qr=Fe.height/2;zr==="start"?(Yr=0,Qr=Fe.height):zr==="end"&&(Yr=$r.height,Qr=0),this.paddingTop=Yr+Vr,this.paddingBottom=Qr+Vr}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){callback(this.options.afterFit,[this])}isHorizontal(){const{axis:Fe,position:$r}=this.options;return $r==="top"||$r==="bottom"||Fe==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(Fe){this.beforeTickToLabelConversion(),this.generateTickLabels(Fe);let $r,Fr;for($r=0,Fr=Fe.length;$r<Fr;$r++)isNullOrUndef(Fe[$r].label)&&(Fe.splice($r,1),Fr--,$r--);this.afterTickToLabelConversion()}_getLabelSizes(){let Fe=this._labelSizes;if(!Fe){const $r=this.options.ticks.sampleSize;let Fr=this.ticks;$r<Fr.length&&(Fr=sample(Fr,$r)),this._labelSizes=Fe=this._computeLabelSizes(Fr,Fr.length,this.options.ticks.maxTicksLimit)}return Fe}_computeLabelSizes(Fe,$r,Fr){const{ctx:jr,_longestTextCache:zr}=this,Vr=[],Wr=[],Kr=Math.floor($r/getTicksLimit($r,Fr));let Gr=0,Yr=0,Qr,Jr,Zr,tn,en,rn,nn,on,un,an,sn;for(Qr=0;Qr<$r;Qr+=Kr){if(tn=Fe[Qr].label,en=this._resolveTickFontOptions(Qr),jr.font=rn=en.string,nn=zr[rn]=zr[rn]||{data:{},gc:[]},on=en.lineHeight,un=an=0,!isNullOrUndef(tn)&&!isArray(tn))un=_measureText(jr,nn.data,nn.gc,un,tn),an=on;else if(isArray(tn))for(Jr=0,Zr=tn.length;Jr<Zr;++Jr)sn=tn[Jr],!isNullOrUndef(sn)&&!isArray(sn)&&(un=_measureText(jr,nn.data,nn.gc,un,sn),an+=on);Vr.push(un),Wr.push(an),Gr=Math.max(un,Gr),Yr=Math.max(an,Yr)}garbageCollect(zr,$r);const dn=Vr.indexOf(Gr),ln=Wr.indexOf(Yr),cn=fn=>({width:Vr[fn]||0,height:Wr[fn]||0});return{first:cn(0),last:cn($r-1),widest:cn(dn),highest:cn(ln),widths:Vr,heights:Wr}}getLabelForValue(Fe){return Fe}getPixelForValue(Fe,$r){return NaN}getValueForPixel(Fe){}getPixelForTick(Fe){const $r=this.ticks;return Fe<0||Fe>$r.length-1?null:this.getPixelForValue($r[Fe].value)}getPixelForDecimal(Fe){this._reversePixels&&(Fe=1-Fe);const $r=this._startPixel+Fe*this._length;return _int16Range(this._alignToPixels?_alignPixel(this.chart,$r,0):$r)}getDecimalForPixel(Fe){const $r=(Fe-this._startPixel)/this._length;return this._reversePixels?1-$r:$r}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:Fe,max:$r}=this;return Fe<0&&$r<0?$r:Fe>0&&$r>0?Fe:0}getContext(Fe){const $r=this.ticks||[];if(Fe>=0&&Fe<$r.length){const Fr=$r[Fe];return Fr.$context||(Fr.$context=createTickContext(this.getContext(),Fe,Fr))}return this.$context||(this.$context=createScaleContext(this.chart.getContext(),this))}_tickSize(){const Fe=this.options.ticks,$r=toRadians(this.labelRotation),Fr=Math.abs(Math.cos($r)),jr=Math.abs(Math.sin($r)),zr=this._getLabelSizes(),Vr=Fe.autoSkipPadding||0,Wr=zr?zr.widest.width+Vr:0,Kr=zr?zr.highest.height+Vr:0;return this.isHorizontal()?Kr*Fr>Wr*jr?Wr/Fr:Kr/jr:Kr*jr<Wr*Fr?Kr/Fr:Wr/jr}_isVisible(){const Fe=this.options.display;return Fe!=="auto"?!!Fe:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(Fe){const $r=this.axis,Fr=this.chart,jr=this.options,{grid:zr,position:Vr,border:Wr}=jr,Kr=zr.offset,Gr=this.isHorizontal(),Qr=this.ticks.length+(Kr?1:0),Jr=getTickMarkLength(zr),Zr=[],tn=Wr.setContext(this.getContext()),en=tn.display?tn.width:0,rn=en/2,nn=function(_n){return _alignPixel(Fr,_n,en)};let on,un,an,sn,dn,ln,cn,fn,pn,hn,mn,Sn;if(Vr==="top")on=nn(this.bottom),ln=this.bottom-Jr,fn=on-rn,hn=nn(Fe.top)+rn,Sn=Fe.bottom;else if(Vr==="bottom")on=nn(this.top),hn=Fe.top,Sn=nn(Fe.bottom)-rn,ln=on+rn,fn=this.top+Jr;else if(Vr==="left")on=nn(this.right),dn=this.right-Jr,cn=on-rn,pn=nn(Fe.left)+rn,mn=Fe.right;else if(Vr==="right")on=nn(this.left),pn=Fe.left,mn=nn(Fe.right)-rn,dn=on+rn,cn=this.left+Jr;else if($r==="x"){if(Vr==="center")on=nn((Fe.top+Fe.bottom)/2+.5);else if(isObject(Vr)){const _n=Object.keys(Vr)[0],$n=Vr[_n];on=nn(this.chart.scales[_n].getPixelForValue($n))}hn=Fe.top,Sn=Fe.bottom,ln=on+rn,fn=ln+Jr}else if($r==="y"){if(Vr==="center")on=nn((Fe.left+Fe.right)/2);else if(isObject(Vr)){const _n=Object.keys(Vr)[0],$n=Vr[_n];on=nn(this.chart.scales[_n].getPixelForValue($n))}dn=on-rn,cn=dn-Jr,pn=Fe.left,mn=Fe.right}const vn=valueOrDefault(jr.ticks.maxTicksLimit,Qr),bn=Math.max(1,Math.ceil(Qr/vn));for(un=0;un<Qr;un+=bn){const _n=this.getContext(un),$n=zr.setContext(_n),yn=Wr.setContext(_n),wn=$n.lineWidth,gn=$n.color,Pn=yn.dash||[],Tn=yn.dashOffset,An=$n.tickWidth,Dn=$n.tickColor,Mn=$n.tickBorderDash||[],Ln=$n.tickBorderDashOffset;an=getPixelForGridLine(this,un,Kr),an!==void 0&&(sn=_alignPixel(Fr,an,wn),Gr?dn=cn=pn=mn=sn:ln=fn=hn=Sn=sn,Zr.push({tx1:dn,ty1:ln,tx2:cn,ty2:fn,x1:pn,y1:hn,x2:mn,y2:Sn,width:wn,color:gn,borderDash:Pn,borderDashOffset:Tn,tickWidth:An,tickColor:Dn,tickBorderDash:Mn,tickBorderDashOffset:Ln}))}return this._ticksLength=Qr,this._borderValue=on,Zr}_computeLabelItems(Fe){const $r=this.axis,Fr=this.options,{position:jr,ticks:zr}=Fr,Vr=this.isHorizontal(),Wr=this.ticks,{align:Kr,crossAlign:Gr,padding:Yr,mirror:Qr}=zr,Jr=getTickMarkLength(Fr.grid),Zr=Jr+Yr,tn=Qr?-Yr:Zr,en=-toRadians(this.labelRotation),rn=[];let nn,on,un,an,sn,dn,ln,cn,fn,pn,hn,mn,Sn="middle";if(jr==="top")dn=this.bottom-tn,ln=this._getXAxisLabelAlignment();else if(jr==="bottom")dn=this.top+tn,ln=this._getXAxisLabelAlignment();else if(jr==="left"){const bn=this._getYAxisLabelAlignment(Jr);ln=bn.textAlign,sn=bn.x}else if(jr==="right"){const bn=this._getYAxisLabelAlignment(Jr);ln=bn.textAlign,sn=bn.x}else if($r==="x"){if(jr==="center")dn=(Fe.top+Fe.bottom)/2+Zr;else if(isObject(jr)){const bn=Object.keys(jr)[0],_n=jr[bn];dn=this.chart.scales[bn].getPixelForValue(_n)+Zr}ln=this._getXAxisLabelAlignment()}else if($r==="y"){if(jr==="center")sn=(Fe.left+Fe.right)/2-Zr;else if(isObject(jr)){const bn=Object.keys(jr)[0],_n=jr[bn];sn=this.chart.scales[bn].getPixelForValue(_n)}ln=this._getYAxisLabelAlignment(Jr).textAlign}$r==="y"&&(Kr==="start"?Sn="top":Kr==="end"&&(Sn="bottom"));const vn=this._getLabelSizes();for(nn=0,on=Wr.length;nn<on;++nn){un=Wr[nn],an=un.label;const bn=zr.setContext(this.getContext(nn));cn=this.getPixelForTick(nn)+zr.labelOffset,fn=this._resolveTickFontOptions(nn),pn=fn.lineHeight,hn=isArray(an)?an.length:1;const _n=hn/2,$n=bn.color,yn=bn.textStrokeColor,wn=bn.textStrokeWidth;let gn=ln;Vr?(sn=cn,ln==="inner"&&(nn===on-1?gn=this.options.reverse?"left":"right":nn===0?gn=this.options.reverse?"right":"left":gn="center"),jr==="top"?Gr==="near"||en!==0?mn=-hn*pn+pn/2:Gr==="center"?mn=-vn.highest.height/2-_n*pn+pn:mn=-vn.highest.height+pn/2:Gr==="near"||en!==0?mn=pn/2:Gr==="center"?mn=vn.highest.height/2-_n*pn:mn=vn.highest.height-hn*pn,Qr&&(mn*=-1),en!==0&&!bn.showLabelBackdrop&&(sn+=pn/2*Math.sin(en))):(dn=cn,mn=(1-hn)*pn/2);let Pn;if(bn.showLabelBackdrop){const Tn=toPadding(bn.backdropPadding),An=vn.heights[nn],Dn=vn.widths[nn];let Mn=mn-Tn.top,Ln=0-Tn.left;switch(Sn){case"middle":Mn-=An/2;break;case"bottom":Mn-=An;break}switch(ln){case"center":Ln-=Dn/2;break;case"right":Ln-=Dn;break}Pn={left:Ln,top:Mn,width:Dn+Tn.width,height:An+Tn.height,color:bn.backdropColor}}rn.push({label:an,font:fn,textOffset:mn,options:{rotation:en,color:$n,strokeColor:yn,strokeWidth:wn,textAlign:gn,textBaseline:Sn,translation:[sn,dn],backdrop:Pn}})}return rn}_getXAxisLabelAlignment(){const{position:Fe,ticks:$r}=this.options;if(-toRadians(this.labelRotation))return Fe==="top"?"left":"right";let jr="center";return $r.align==="start"?jr="left":$r.align==="end"?jr="right":$r.align==="inner"&&(jr="inner"),jr}_getYAxisLabelAlignment(Fe){const{position:$r,ticks:{crossAlign:Fr,mirror:jr,padding:zr}}=this.options,Vr=this._getLabelSizes(),Wr=Fe+zr,Kr=Vr.widest.width;let Gr,Yr;return $r==="left"?jr?(Yr=this.right+zr,Fr==="near"?Gr="left":Fr==="center"?(Gr="center",Yr+=Kr/2):(Gr="right",Yr+=Kr)):(Yr=this.right-Wr,Fr==="near"?Gr="right":Fr==="center"?(Gr="center",Yr-=Kr/2):(Gr="left",Yr=this.left)):$r==="right"?jr?(Yr=this.left+zr,Fr==="near"?Gr="right":Fr==="center"?(Gr="center",Yr-=Kr/2):(Gr="left",Yr-=Kr)):(Yr=this.left+Wr,Fr==="near"?Gr="left":Fr==="center"?(Gr="center",Yr+=Kr/2):(Gr="right",Yr=this.right)):Gr="right",{textAlign:Gr,x:Yr}}_computeLabelArea(){if(this.options.ticks.mirror)return;const Fe=this.chart,$r=this.options.position;if($r==="left"||$r==="right")return{top:0,left:this.left,bottom:Fe.height,right:this.right};if($r==="top"||$r==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:Fe.width}}drawBackground(){const{ctx:Fe,options:{backgroundColor:$r},left:Fr,top:jr,width:zr,height:Vr}=this;$r&&(Fe.save(),Fe.fillStyle=$r,Fe.fillRect(Fr,jr,zr,Vr),Fe.restore())}getLineWidthForValue(Fe){const $r=this.options.grid;if(!this._isVisible()||!$r.display)return 0;const jr=this.ticks.findIndex(zr=>zr.value===Fe);return jr>=0?$r.setContext(this.getContext(jr)).lineWidth:0}drawGrid(Fe){const $r=this.options.grid,Fr=this.ctx,jr=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(Fe));let zr,Vr;const Wr=(Kr,Gr,Yr)=>{!Yr.width||!Yr.color||(Fr.save(),Fr.lineWidth=Yr.width,Fr.strokeStyle=Yr.color,Fr.setLineDash(Yr.borderDash||[]),Fr.lineDashOffset=Yr.borderDashOffset,Fr.beginPath(),Fr.moveTo(Kr.x,Kr.y),Fr.lineTo(Gr.x,Gr.y),Fr.stroke(),Fr.restore())};if($r.display)for(zr=0,Vr=jr.length;zr<Vr;++zr){const Kr=jr[zr];$r.drawOnChartArea&&Wr({x:Kr.x1,y:Kr.y1},{x:Kr.x2,y:Kr.y2},Kr),$r.drawTicks&&Wr({x:Kr.tx1,y:Kr.ty1},{x:Kr.tx2,y:Kr.ty2},{color:Kr.tickColor,width:Kr.tickWidth,borderDash:Kr.tickBorderDash,borderDashOffset:Kr.tickBorderDashOffset})}}drawBorder(){const{chart:Fe,ctx:$r,options:{border:Fr,grid:jr}}=this,zr=Fr.setContext(this.getContext()),Vr=Fr.display?zr.width:0;if(!Vr)return;const Wr=jr.setContext(this.getContext(0)).lineWidth,Kr=this._borderValue;let Gr,Yr,Qr,Jr;this.isHorizontal()?(Gr=_alignPixel(Fe,this.left,Vr)-Vr/2,Yr=_alignPixel(Fe,this.right,Wr)+Wr/2,Qr=Jr=Kr):(Qr=_alignPixel(Fe,this.top,Vr)-Vr/2,Jr=_alignPixel(Fe,this.bottom,Wr)+Wr/2,Gr=Yr=Kr),$r.save(),$r.lineWidth=zr.width,$r.strokeStyle=zr.color,$r.beginPath(),$r.moveTo(Gr,Qr),$r.lineTo(Yr,Jr),$r.stroke(),$r.restore()}drawLabels(Fe){if(!this.options.ticks.display)return;const Fr=this.ctx,jr=this._computeLabelArea();jr&&clipArea(Fr,jr);const zr=this.getLabelItems(Fe);for(const Vr of zr){const Wr=Vr.options,Kr=Vr.font,Gr=Vr.label,Yr=Vr.textOffset;renderText(Fr,Gr,0,Yr,Kr,Wr)}jr&&unclipArea(Fr)}drawTitle(){const{ctx:Fe,options:{position:$r,title:Fr,reverse:jr}}=this;if(!Fr.display)return;const zr=toFont(Fr.font),Vr=toPadding(Fr.padding),Wr=Fr.align;let Kr=zr.lineHeight/2;$r==="bottom"||$r==="center"||isObject($r)?(Kr+=Vr.bottom,isArray(Fr.text)&&(Kr+=zr.lineHeight*(Fr.text.length-1))):Kr+=Vr.top;const{titleX:Gr,titleY:Yr,maxWidth:Qr,rotation:Jr}=titleArgs(this,Kr,$r,Wr);renderText(Fe,Fr.text,0,0,zr,{color:Fr.color,maxWidth:Qr,rotation:Jr,textAlign:titleAlign(Wr,$r,jr),textBaseline:"middle",translation:[Gr,Yr]})}draw(Fe){!this._isVisible()||(this.drawBackground(),this.drawGrid(Fe),this.drawBorder(),this.drawTitle(),this.drawLabels(Fe))}_layers(){const Fe=this.options,$r=Fe.ticks&&Fe.ticks.z||0,Fr=valueOrDefault(Fe.grid&&Fe.grid.z,-1),jr=valueOrDefault(Fe.border&&Fe.border.z,0);return!this._isVisible()||this.draw!==Scale.prototype.draw?[{z:$r,draw:zr=>{this.draw(zr)}}]:[{z:Fr,draw:zr=>{this.drawBackground(),this.drawGrid(zr),this.drawTitle()}},{z:jr,draw:()=>{this.drawBorder()}},{z:$r,draw:zr=>{this.drawLabels(zr)}}]}getMatchingVisibleMetas(Fe){const $r=this.chart.getSortedVisibleDatasetMetas(),Fr=this.axis+"AxisID",jr=[];let zr,Vr;for(zr=0,Vr=$r.length;zr<Vr;++zr){const Wr=$r[zr];Wr[Fr]===this.id&&(!Fe||Wr.type===Fe)&&jr.push(Wr)}return jr}_resolveTickFontOptions(Fe){const $r=this.options.ticks.setContext(this.getContext(Fe));return toFont($r.font)}_maxDigits(){const Fe=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/Fe}}class TypedRegistry{constructor(Fe,$r,Fr){this.type=Fe,this.scope=$r,this.override=Fr,this.items=Object.create(null)}isForType(Fe){return Object.prototype.isPrototypeOf.call(this.type.prototype,Fe.prototype)}register(Fe){const $r=Object.getPrototypeOf(Fe);let Fr;isIChartComponent($r)&&(Fr=this.register($r));const jr=this.items,zr=Fe.id,Vr=this.scope+"."+zr;if(!zr)throw new Error("class does not have id: "+Fe);return zr in jr||(jr[zr]=Fe,registerDefaults(Fe,Vr,Fr),this.override&&defaults.override(Fe.id,Fe.overrides)),Vr}get(Fe){return this.items[Fe]}unregister(Fe){const $r=this.items,Fr=Fe.id,jr=this.scope;Fr in $r&&delete $r[Fr],jr&&Fr in defaults[jr]&&(delete defaults[jr][Fr],this.override&&delete overrides[Fr])}}function registerDefaults(_r,Fe,$r){const Fr=merge(Object.create(null),[$r?defaults.get($r):{},defaults.get(Fe),_r.defaults]);defaults.set(Fe,Fr),_r.defaultRoutes&&routeDefaults(Fe,_r.defaultRoutes),_r.descriptors&&defaults.describe(Fe,_r.descriptors)}function routeDefaults(_r,Fe){Object.keys(Fe).forEach($r=>{const Fr=$r.split("."),jr=Fr.pop(),zr=[_r].concat(Fr).join("."),Vr=Fe[$r].split("."),Wr=Vr.pop(),Kr=Vr.join(".");defaults.route(zr,jr,Kr,Wr)})}function isIChartComponent(_r){return"id"in _r&&"defaults"in _r}class Registry{constructor(){this.controllers=new TypedRegistry(DatasetController,"datasets",!0),this.elements=new TypedRegistry(Element$1,"elements"),this.plugins=new TypedRegistry(Object,"plugins"),this.scales=new TypedRegistry(Scale,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...Fe){this._each("register",Fe)}remove(...Fe){this._each("unregister",Fe)}addControllers(...Fe){this._each("register",Fe,this.controllers)}addElements(...Fe){this._each("register",Fe,this.elements)}addPlugins(...Fe){this._each("register",Fe,this.plugins)}addScales(...Fe){this._each("register",Fe,this.scales)}getController(Fe){return this._get(Fe,this.controllers,"controller")}getElement(Fe){return this._get(Fe,this.elements,"element")}getPlugin(Fe){return this._get(Fe,this.plugins,"plugin")}getScale(Fe){return this._get(Fe,this.scales,"scale")}removeControllers(...Fe){this._each("unregister",Fe,this.controllers)}removeElements(...Fe){this._each("unregister",Fe,this.elements)}removePlugins(...Fe){this._each("unregister",Fe,this.plugins)}removeScales(...Fe){this._each("unregister",Fe,this.scales)}_each(Fe,$r,Fr){[...$r].forEach(jr=>{const zr=Fr||this._getRegistryForType(jr);Fr||zr.isForType(jr)||zr===this.plugins&&jr.id?this._exec(Fe,zr,jr):each(jr,Vr=>{const Wr=Fr||this._getRegistryForType(Vr);this._exec(Fe,Wr,Vr)})})}_exec(Fe,$r,Fr){const jr=_capitalize(Fe);callback(Fr["before"+jr],[],Fr),$r[Fe](Fr),callback(Fr["after"+jr],[],Fr)}_getRegistryForType(Fe){for(let $r=0;$r<this._typedRegistries.length;$r++){const Fr=this._typedRegistries[$r];if(Fr.isForType(Fe))return Fr}return this.plugins}_get(Fe,$r,Fr){const jr=$r.get(Fe);if(jr===void 0)throw new Error('"'+Fe+'" is not a registered '+Fr+".");return jr}}var registry=new Registry;class PluginService{constructor(){this._init=[]}notify(Fe,$r,Fr,jr){$r==="beforeInit"&&(this._init=this._createDescriptors(Fe,!0),this._notify(this._init,Fe,"install"));const zr=jr?this._descriptors(Fe).filter(jr):this._descriptors(Fe),Vr=this._notify(zr,Fe,$r,Fr);return $r==="afterDestroy"&&(this._notify(zr,Fe,"stop"),this._notify(this._init,Fe,"uninstall")),Vr}_notify(Fe,$r,Fr,jr){jr=jr||{};for(const zr of Fe){const Vr=zr.plugin,Wr=Vr[Fr],Kr=[$r,jr,zr.options];if(callback(Wr,Kr,Vr)===!1&&jr.cancelable)return!1}return!0}invalidate(){isNullOrUndef(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(Fe){if(this._cache)return this._cache;const $r=this._cache=this._createDescriptors(Fe);return this._notifyStateChanges(Fe),$r}_createDescriptors(Fe,$r){const Fr=Fe&&Fe.config,jr=valueOrDefault(Fr.options&&Fr.options.plugins,{}),zr=allPlugins(Fr);return jr===!1&&!$r?[]:createDescriptors(Fe,zr,jr,$r)}_notifyStateChanges(Fe){const $r=this._oldCache||[],Fr=this._cache,jr=(zr,Vr)=>zr.filter(Wr=>!Vr.some(Kr=>Wr.plugin.id===Kr.plugin.id));this._notify(jr($r,Fr),Fe,"stop"),this._notify(jr(Fr,$r),Fe,"start")}}function allPlugins(_r){const Fe={},$r=[],Fr=Object.keys(registry.plugins.items);for(let zr=0;zr<Fr.length;zr++)$r.push(registry.getPlugin(Fr[zr]));const jr=_r.plugins||[];for(let zr=0;zr<jr.length;zr++){const Vr=jr[zr];$r.indexOf(Vr)===-1&&($r.push(Vr),Fe[Vr.id]=!0)}return{plugins:$r,localIds:Fe}}function getOpts(_r,Fe){return!Fe&&_r===!1?null:_r===!0?{}:_r}function createDescriptors(_r,{plugins:Fe,localIds:$r},Fr,jr){const zr=[],Vr=_r.getContext();for(const Wr of Fe){const Kr=Wr.id,Gr=getOpts(Fr[Kr],jr);Gr!==null&&zr.push({plugin:Wr,options:pluginOpts(_r.config,{plugin:Wr,local:$r[Kr]},Gr,Vr)})}return zr}function pluginOpts(_r,{plugin:Fe,local:$r},Fr,jr){const zr=_r.pluginScopeKeys(Fe),Vr=_r.getOptionScopes(Fr,zr);return $r&&Fe.defaults&&Vr.push(Fe.defaults),_r.createResolver(Vr,jr,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function getIndexAxis(_r,Fe){const $r=defaults.datasets[_r]||{};return((Fe.datasets||{})[_r]||{}).indexAxis||Fe.indexAxis||$r.indexAxis||"x"}function getAxisFromDefaultScaleID(_r,Fe){let $r=_r;return _r==="_index_"?$r=Fe:_r==="_value_"&&($r=Fe==="x"?"y":"x"),$r}function getDefaultScaleIDFromAxis(_r,Fe){return _r===Fe?"_index_":"_value_"}function idMatchesAxis(_r){if(_r==="x"||_r==="y"||_r==="r")return _r}function axisFromPosition(_r){if(_r==="top"||_r==="bottom")return"x";if(_r==="left"||_r==="right")return"y"}function determineAxis(_r,...Fe){if(idMatchesAxis(_r))return _r;for(const $r of Fe){const Fr=$r.axis||axisFromPosition($r.position)||_r.length>1&&idMatchesAxis(_r[0].toLowerCase());if(Fr)return Fr}throw new Error(`Cannot determine type of '${_r}' axis. Please provide 'axis' or 'position' option.`)}function getAxisFromDataset(_r,Fe,$r){if($r[Fe+"AxisID"]===_r)return{axis:Fe}}function retrieveAxisFromDatasets(_r,Fe){if(Fe.data&&Fe.data.datasets){const $r=Fe.data.datasets.filter(Fr=>Fr.xAxisID===_r||Fr.yAxisID===_r);if($r.length)return getAxisFromDataset(_r,"x",$r[0])||getAxisFromDataset(_r,"y",$r[0])}return{}}function mergeScaleConfig(_r,Fe){const $r=overrides[_r.type]||{scales:{}},Fr=Fe.scales||{},jr=getIndexAxis(_r.type,Fe),zr=Object.create(null);return Object.keys(Fr).forEach(Vr=>{const Wr=Fr[Vr];if(!isObject(Wr))return console.error(`Invalid scale configuration for scale: ${Vr}`);if(Wr._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${Vr}`);const Kr=determineAxis(Vr,Wr,retrieveAxisFromDatasets(Vr,_r),defaults.scales[Wr.type]),Gr=getDefaultScaleIDFromAxis(Kr,jr),Yr=$r.scales||{};zr[Vr]=mergeIf(Object.create(null),[{axis:Kr},Wr,Yr[Kr],Yr[Gr]])}),_r.data.datasets.forEach(Vr=>{const Wr=Vr.type||_r.type,Kr=Vr.indexAxis||getIndexAxis(Wr,Fe),Yr=(overrides[Wr]||{}).scales||{};Object.keys(Yr).forEach(Qr=>{const Jr=getAxisFromDefaultScaleID(Qr,Kr),Zr=Vr[Jr+"AxisID"]||Jr;zr[Zr]=zr[Zr]||Object.create(null),mergeIf(zr[Zr],[{axis:Jr},Fr[Zr],Yr[Qr]])})}),Object.keys(zr).forEach(Vr=>{const Wr=zr[Vr];mergeIf(Wr,[defaults.scales[Wr.type],defaults.scale])}),zr}function initOptions(_r){const Fe=_r.options||(_r.options={});Fe.plugins=valueOrDefault(Fe.plugins,{}),Fe.scales=mergeScaleConfig(_r,Fe)}function initData(_r){return _r=_r||{},_r.datasets=_r.datasets||[],_r.labels=_r.labels||[],_r}function initConfig(_r){return _r=_r||{},_r.data=initData(_r.data),initOptions(_r),_r}const keyCache=new Map,keysCached=new Set;function cachedKeys(_r,Fe){let $r=keyCache.get(_r);return $r||($r=Fe(),keyCache.set(_r,$r),keysCached.add($r)),$r}const addIfFound=(_r,Fe,$r)=>{const Fr=resolveObjectKey(Fe,$r);Fr!==void 0&&_r.add(Fr)};class Config{constructor(Fe){this._config=initConfig(Fe),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(Fe){this._config.type=Fe}get data(){return this._config.data}set data(Fe){this._config.data=initData(Fe)}get options(){return this._config.options}set options(Fe){this._config.options=Fe}get plugins(){return this._config.plugins}update(){const Fe=this._config;this.clearCache(),initOptions(Fe)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(Fe){return cachedKeys(Fe,()=>[[`datasets.${Fe}`,""]])}datasetAnimationScopeKeys(Fe,$r){return cachedKeys(`${Fe}.transition.${$r}`,()=>[[`datasets.${Fe}.transitions.${$r}`,`transitions.${$r}`],[`datasets.${Fe}`,""]])}datasetElementScopeKeys(Fe,$r){return cachedKeys(`${Fe}-${$r}`,()=>[[`datasets.${Fe}.elements.${$r}`,`datasets.${Fe}`,`elements.${$r}`,""]])}pluginScopeKeys(Fe){const $r=Fe.id,Fr=this.type;return cachedKeys(`${Fr}-plugin-${$r}`,()=>[[`plugins.${$r}`,...Fe.additionalOptionScopes||[]]])}_cachedScopes(Fe,$r){const Fr=this._scopeCache;let jr=Fr.get(Fe);return(!jr||$r)&&(jr=new Map,Fr.set(Fe,jr)),jr}getOptionScopes(Fe,$r,Fr){const{options:jr,type:zr}=this,Vr=this._cachedScopes(Fe,Fr),Wr=Vr.get($r);if(Wr)return Wr;const Kr=new Set;$r.forEach(Yr=>{Fe&&(Kr.add(Fe),Yr.forEach(Qr=>addIfFound(Kr,Fe,Qr))),Yr.forEach(Qr=>addIfFound(Kr,jr,Qr)),Yr.forEach(Qr=>addIfFound(Kr,overrides[zr]||{},Qr)),Yr.forEach(Qr=>addIfFound(Kr,defaults,Qr)),Yr.forEach(Qr=>addIfFound(Kr,descriptors,Qr))});const Gr=Array.from(Kr);return Gr.length===0&&Gr.push(Object.create(null)),keysCached.has($r)&&Vr.set($r,Gr),Gr}chartOptionScopes(){const{options:Fe,type:$r}=this;return[Fe,overrides[$r]||{},defaults.datasets[$r]||{},{type:$r},defaults,descriptors]}resolveNamedOptions(Fe,$r,Fr,jr=[""]){const zr={$shared:!0},{resolver:Vr,subPrefixes:Wr}=getResolver(this._resolverCache,Fe,jr);let Kr=Vr;if(needContext(Vr,$r)){zr.$shared=!1,Fr=isFunction(Fr)?Fr():Fr;const Gr=this.createResolver(Fe,Fr,Wr);Kr=_attachContext(Vr,Fr,Gr)}for(const Gr of $r)zr[Gr]=Kr[Gr];return zr}createResolver(Fe,$r,Fr=[""],jr){const{resolver:zr}=getResolver(this._resolverCache,Fe,Fr);return isObject($r)?_attachContext(zr,$r,void 0,jr):zr}}function getResolver(_r,Fe,$r){let Fr=_r.get(Fe);Fr||(Fr=new Map,_r.set(Fe,Fr));const jr=$r.join();let zr=Fr.get(jr);return zr||(zr={resolver:_createResolver(Fe,$r),subPrefixes:$r.filter(Wr=>!Wr.toLowerCase().includes("hover"))},Fr.set(jr,zr)),zr}const hasFunction=_r=>isObject(_r)&&Object.getOwnPropertyNames(_r).reduce((Fe,$r)=>Fe||isFunction(_r[$r]),!1);function needContext(_r,Fe){const{isScriptable:$r,isIndexable:Fr}=_descriptors(_r);for(const jr of Fe){const zr=$r(jr),Vr=Fr(jr),Wr=(Vr||zr)&&_r[jr];if(zr&&(isFunction(Wr)||hasFunction(Wr))||Vr&&isArray(Wr))return!0}return!1}var version="4.3.0";const KNOWN_POSITIONS=["top","bottom","left","right","chartArea"];function positionIsHorizontal(_r,Fe){return _r==="top"||_r==="bottom"||KNOWN_POSITIONS.indexOf(_r)===-1&&Fe==="x"}function compare2Level(_r,Fe){return function($r,Fr){return $r[_r]===Fr[_r]?$r[Fe]-Fr[Fe]:$r[_r]-Fr[_r]}}function onAnimationsComplete(_r){const Fe=_r.chart,$r=Fe.options.animation;Fe.notifyPlugins("afterRender"),callback($r&&$r.onComplete,[_r],Fe)}function onAnimationProgress(_r){const Fe=_r.chart,$r=Fe.options.animation;callback($r&&$r.onProgress,[_r],Fe)}function getCanvas(_r){return _isDomSupported()&&typeof _r=="string"?_r=document.getElementById(_r):_r&&_r.length&&(_r=_r[0]),_r&&_r.canvas&&(_r=_r.canvas),_r}const instances={},getChart=_r=>{const Fe=getCanvas(_r);return Object.values(instances).filter($r=>$r.canvas===Fe).pop()};function moveNumericKeys(_r,Fe,$r){const Fr=Object.keys(_r);for(const jr of Fr){const zr=+jr;if(zr>=Fe){const Vr=_r[jr];delete _r[jr],($r>0||zr>Fe)&&(_r[zr+$r]=Vr)}}}function determineLastEvent(_r,Fe,$r,Fr){return!$r||_r.type==="mouseout"?null:Fr?Fe:_r}function getDatasetArea(_r){const{xScale:Fe,yScale:$r}=_r;if(Fe&&$r)return{left:Fe.left,right:Fe.right,top:$r.top,bottom:$r.bottom}}class Chart$1{static register(...Fe){registry.add(...Fe),invalidatePlugins()}static unregister(...Fe){registry.remove(...Fe),invalidatePlugins()}constructor(Fe,$r){const Fr=this.config=new Config($r),jr=getCanvas(Fe),zr=getChart(jr);if(zr)throw new Error("Canvas is already in use. Chart with ID '"+zr.id+"' must be destroyed before the canvas with ID '"+zr.canvas.id+"' can be reused.");const Vr=Fr.createResolver(Fr.chartOptionScopes(),this.getContext());this.platform=new(Fr.platform||_detectPlatform(jr)),this.platform.updateConfig(Fr);const Wr=this.platform.acquireContext(jr,Vr.aspectRatio),Kr=Wr&&Wr.canvas,Gr=Kr&&Kr.height,Yr=Kr&&Kr.width;if(this.id=uid(),this.ctx=Wr,this.canvas=Kr,this.width=Yr,this.height=Gr,this._options=Vr,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new PluginService,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=debounce(Qr=>this.update(Qr),Vr.resizeDelay||0),this._dataChanges=[],instances[this.id]=this,!Wr||!Kr){console.error("Failed to create chart: can't acquire context from the given item");return}animator.listen(this,"complete",onAnimationsComplete),animator.listen(this,"progress",onAnimationProgress),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:Fe,maintainAspectRatio:$r},width:Fr,height:jr,_aspectRatio:zr}=this;return isNullOrUndef(Fe)?$r&&zr?zr:jr?Fr/jr:null:Fe}get data(){return this.config.data}set data(Fe){this.config.data=Fe}get options(){return this._options}set options(Fe){this.config.options=Fe}get registry(){return registry}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():retinaScale(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return clearCanvas(this.canvas,this.ctx),this}stop(){return animator.stop(this),this}resize(Fe,$r){animator.running(this)?this._resizeBeforeDraw={width:Fe,height:$r}:this._resize(Fe,$r)}_resize(Fe,$r){const Fr=this.options,jr=this.canvas,zr=Fr.maintainAspectRatio&&this.aspectRatio,Vr=this.platform.getMaximumSize(jr,Fe,$r,zr),Wr=Fr.devicePixelRatio||this.platform.getDevicePixelRatio(),Kr=this.width?"resize":"attach";this.width=Vr.width,this.height=Vr.height,this._aspectRatio=this.aspectRatio,retinaScale(this,Wr,!0)&&(this.notifyPlugins("resize",{size:Vr}),callback(Fr.onResize,[this,Vr],this),this.attached&&this._doResize(Kr)&&this.render())}ensureScalesHaveIDs(){const $r=this.options.scales||{};each($r,(Fr,jr)=>{Fr.id=jr})}buildOrUpdateScales(){const Fe=this.options,$r=Fe.scales,Fr=this.scales,jr=Object.keys(Fr).reduce((Vr,Wr)=>(Vr[Wr]=!1,Vr),{});let zr=[];$r&&(zr=zr.concat(Object.keys($r).map(Vr=>{const Wr=$r[Vr],Kr=determineAxis(Vr,Wr),Gr=Kr==="r",Yr=Kr==="x";return{options:Wr,dposition:Gr?"chartArea":Yr?"bottom":"left",dtype:Gr?"radialLinear":Yr?"category":"linear"}}))),each(zr,Vr=>{const Wr=Vr.options,Kr=Wr.id,Gr=determineAxis(Kr,Wr),Yr=valueOrDefault(Wr.type,Vr.dtype);(Wr.position===void 0||positionIsHorizontal(Wr.position,Gr)!==positionIsHorizontal(Vr.dposition))&&(Wr.position=Vr.dposition),jr[Kr]=!0;let Qr=null;if(Kr in Fr&&Fr[Kr].type===Yr)Qr=Fr[Kr];else{const Jr=registry.getScale(Yr);Qr=new Jr({id:Kr,type:Yr,ctx:this.ctx,chart:this}),Fr[Qr.id]=Qr}Qr.init(Wr,Fe)}),each(jr,(Vr,Wr)=>{Vr||delete Fr[Wr]}),each(Fr,Vr=>{layouts.configure(this,Vr,Vr.options),layouts.addBox(this,Vr)})}_updateMetasets(){const Fe=this._metasets,$r=this.data.datasets.length,Fr=Fe.length;if(Fe.sort((jr,zr)=>jr.index-zr.index),Fr>$r){for(let jr=$r;jr<Fr;++jr)this._destroyDatasetMeta(jr);Fe.splice($r,Fr-$r)}this._sortedMetasets=Fe.slice(0).sort(compare2Level("order","index"))}_removeUnreferencedMetasets(){const{_metasets:Fe,data:{datasets:$r}}=this;Fe.length>$r.length&&delete this._stacks,Fe.forEach((Fr,jr)=>{$r.filter(zr=>zr===Fr._dataset).length===0&&this._destroyDatasetMeta(jr)})}buildOrUpdateControllers(){const Fe=[],$r=this.data.datasets;let Fr,jr;for(this._removeUnreferencedMetasets(),Fr=0,jr=$r.length;Fr<jr;Fr++){const zr=$r[Fr];let Vr=this.getDatasetMeta(Fr);const Wr=zr.type||this.config.type;if(Vr.type&&Vr.type!==Wr&&(this._destroyDatasetMeta(Fr),Vr=this.getDatasetMeta(Fr)),Vr.type=Wr,Vr.indexAxis=zr.indexAxis||getIndexAxis(Wr,this.options),Vr.order=zr.order||0,Vr.index=Fr,Vr.label=""+zr.label,Vr.visible=this.isDatasetVisible(Fr),Vr.controller)Vr.controller.updateIndex(Fr),Vr.controller.linkScales();else{const Kr=registry.getController(Wr),{datasetElementType:Gr,dataElementType:Yr}=defaults.datasets[Wr];Object.assign(Kr,{dataElementType:registry.getElement(Yr),datasetElementType:Gr&&registry.getElement(Gr)}),Vr.controller=new Kr(this,Fr),Fe.push(Vr.controller)}}return this._updateMetasets(),Fe}_resetElements(){each(this.data.datasets,(Fe,$r)=>{this.getDatasetMeta($r).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(Fe){const $r=this.config;$r.update();const Fr=this._options=$r.createResolver($r.chartOptionScopes(),this.getContext()),jr=this._animationsDisabled=!Fr.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:Fe,cancelable:!0})===!1)return;const zr=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let Vr=0;for(let Gr=0,Yr=this.data.datasets.length;Gr<Yr;Gr++){const{controller:Qr}=this.getDatasetMeta(Gr),Jr=!jr&&zr.indexOf(Qr)===-1;Qr.buildOrUpdateElements(Jr),Vr=Math.max(+Qr.getMaxOverflow(),Vr)}Vr=this._minPadding=Fr.layout.autoPadding?Vr:0,this._updateLayout(Vr),jr||each(zr,Gr=>{Gr.reset()}),this._updateDatasets(Fe),this.notifyPlugins("afterUpdate",{mode:Fe}),this._layers.sort(compare2Level("z","_idx"));const{_active:Wr,_lastEvent:Kr}=this;Kr?this._eventHandler(Kr,!0):Wr.length&&this._updateHoverStyles(Wr,Wr,!0),this.render()}_updateScales(){each(this.scales,Fe=>{layouts.removeBox(this,Fe)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const Fe=this.options,$r=new Set(Object.keys(this._listeners)),Fr=new Set(Fe.events);(!setsEqual($r,Fr)||!!this._responsiveListeners!==Fe.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:Fe}=this,$r=this._getUniformDataChanges()||[];for(const{method:Fr,start:jr,count:zr}of $r){const Vr=Fr==="_removeElements"?-zr:zr;moveNumericKeys(Fe,jr,Vr)}}_getUniformDataChanges(){const Fe=this._dataChanges;if(!Fe||!Fe.length)return;this._dataChanges=[];const $r=this.data.datasets.length,Fr=zr=>new Set(Fe.filter(Vr=>Vr[0]===zr).map((Vr,Wr)=>Wr+","+Vr.splice(1).join(","))),jr=Fr(0);for(let zr=1;zr<$r;zr++)if(!setsEqual(jr,Fr(zr)))return;return Array.from(jr).map(zr=>zr.split(",")).map(zr=>({method:zr[1],start:+zr[2],count:+zr[3]}))}_updateLayout(Fe){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;layouts.update(this,this.width,this.height,Fe);const $r=this.chartArea,Fr=$r.width<=0||$r.height<=0;this._layers=[],each(this.boxes,jr=>{Fr&&jr.position==="chartArea"||(jr.configure&&jr.configure(),this._layers.push(...jr._layers()))},this),this._layers.forEach((jr,zr)=>{jr._idx=zr}),this.notifyPlugins("afterLayout")}_updateDatasets(Fe){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:Fe,cancelable:!0})!==!1){for(let $r=0,Fr=this.data.datasets.length;$r<Fr;++$r)this.getDatasetMeta($r).controller.configure();for(let $r=0,Fr=this.data.datasets.length;$r<Fr;++$r)this._updateDataset($r,isFunction(Fe)?Fe({datasetIndex:$r}):Fe);this.notifyPlugins("afterDatasetsUpdate",{mode:Fe})}}_updateDataset(Fe,$r){const Fr=this.getDatasetMeta(Fe),jr={meta:Fr,index:Fe,mode:$r,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",jr)!==!1&&(Fr.controller._update($r),jr.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",jr))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(animator.has(this)?this.attached&&!animator.running(this)&&animator.start(this):(this.draw(),onAnimationsComplete({chart:this})))}draw(){let Fe;if(this._resizeBeforeDraw){const{width:Fr,height:jr}=this._resizeBeforeDraw;this._resize(Fr,jr),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const $r=this._layers;for(Fe=0;Fe<$r.length&&$r[Fe].z<=0;++Fe)$r[Fe].draw(this.chartArea);for(this._drawDatasets();Fe<$r.length;++Fe)$r[Fe].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(Fe){const $r=this._sortedMetasets,Fr=[];let jr,zr;for(jr=0,zr=$r.length;jr<zr;++jr){const Vr=$r[jr];(!Fe||Vr.visible)&&Fr.push(Vr)}return Fr}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const Fe=this.getSortedVisibleDatasetMetas();for(let $r=Fe.length-1;$r>=0;--$r)this._drawDataset(Fe[$r]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(Fe){const $r=this.ctx,Fr=Fe._clip,jr=!Fr.disabled,zr=getDatasetArea(Fe)||this.chartArea,Vr={meta:Fe,index:Fe.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",Vr)!==!1&&(jr&&clipArea($r,{left:Fr.left===!1?0:zr.left-Fr.left,right:Fr.right===!1?this.width:zr.right+Fr.right,top:Fr.top===!1?0:zr.top-Fr.top,bottom:Fr.bottom===!1?this.height:zr.bottom+Fr.bottom}),Fe.controller.draw(),jr&&unclipArea($r),Vr.cancelable=!1,this.notifyPlugins("afterDatasetDraw",Vr))}isPointInArea(Fe){return _isPointInArea(Fe,this.chartArea,this._minPadding)}getElementsAtEventForMode(Fe,$r,Fr,jr){const zr=Interaction.modes[$r];return typeof zr=="function"?zr(this,Fe,Fr,jr):[]}getDatasetMeta(Fe){const $r=this.data.datasets[Fe],Fr=this._metasets;let jr=Fr.filter(zr=>zr&&zr._dataset===$r).pop();return jr||(jr={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:$r&&$r.order||0,index:Fe,_dataset:$r,_parsed:[],_sorted:!1},Fr.push(jr)),jr}getContext(){return this.$context||(this.$context=createContext(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(Fe){const $r=this.data.datasets[Fe];if(!$r)return!1;const Fr=this.getDatasetMeta(Fe);return typeof Fr.hidden=="boolean"?!Fr.hidden:!$r.hidden}setDatasetVisibility(Fe,$r){const Fr=this.getDatasetMeta(Fe);Fr.hidden=!$r}toggleDataVisibility(Fe){this._hiddenIndices[Fe]=!this._hiddenIndices[Fe]}getDataVisibility(Fe){return!this._hiddenIndices[Fe]}_updateVisibility(Fe,$r,Fr){const jr=Fr?"show":"hide",zr=this.getDatasetMeta(Fe),Vr=zr.controller._resolveAnimations(void 0,jr);defined($r)?(zr.data[$r].hidden=!Fr,this.update()):(this.setDatasetVisibility(Fe,Fr),Vr.update(zr,{visible:Fr}),this.update(Wr=>Wr.datasetIndex===Fe?jr:void 0))}hide(Fe,$r){this._updateVisibility(Fe,$r,!1)}show(Fe,$r){this._updateVisibility(Fe,$r,!0)}_destroyDatasetMeta(Fe){const $r=this._metasets[Fe];$r&&$r.controller&&$r.controller._destroy(),delete this._metasets[Fe]}_stop(){let Fe,$r;for(this.stop(),animator.remove(this),Fe=0,$r=this.data.datasets.length;Fe<$r;++Fe)this._destroyDatasetMeta(Fe)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:Fe,ctx:$r}=this;this._stop(),this.config.clearCache(),Fe&&(this.unbindEvents(),clearCanvas(Fe,$r),this.platform.releaseContext($r),this.canvas=null,this.ctx=null),delete instances[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...Fe){return this.canvas.toDataURL(...Fe)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const Fe=this._listeners,$r=this.platform,Fr=(zr,Vr)=>{$r.addEventListener(this,zr,Vr),Fe[zr]=Vr},jr=(zr,Vr,Wr)=>{zr.offsetX=Vr,zr.offsetY=Wr,this._eventHandler(zr)};each(this.options.events,zr=>Fr(zr,jr))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const Fe=this._responsiveListeners,$r=this.platform,Fr=(Kr,Gr)=>{$r.addEventListener(this,Kr,Gr),Fe[Kr]=Gr},jr=(Kr,Gr)=>{Fe[Kr]&&($r.removeEventListener(this,Kr,Gr),delete Fe[Kr])},zr=(Kr,Gr)=>{this.canvas&&this.resize(Kr,Gr)};let Vr;const Wr=()=>{jr("attach",Wr),this.attached=!0,this.resize(),Fr("resize",zr),Fr("detach",Vr)};Vr=()=>{this.attached=!1,jr("resize",zr),this._stop(),this._resize(0,0),Fr("attach",Wr)},$r.isAttached(this.canvas)?Wr():Vr()}unbindEvents(){each(this._listeners,(Fe,$r)=>{this.platform.removeEventListener(this,$r,Fe)}),this._listeners={},each(this._responsiveListeners,(Fe,$r)=>{this.platform.removeEventListener(this,$r,Fe)}),this._responsiveListeners=void 0}updateHoverStyle(Fe,$r,Fr){const jr=Fr?"set":"remove";let zr,Vr,Wr,Kr;for($r==="dataset"&&(zr=this.getDatasetMeta(Fe[0].datasetIndex),zr.controller["_"+jr+"DatasetHoverStyle"]()),Wr=0,Kr=Fe.length;Wr<Kr;++Wr){Vr=Fe[Wr];const Gr=Vr&&this.getDatasetMeta(Vr.datasetIndex).controller;Gr&&Gr[jr+"HoverStyle"](Vr.element,Vr.datasetIndex,Vr.index)}}getActiveElements(){return this._active||[]}setActiveElements(Fe){const $r=this._active||[],Fr=Fe.map(({datasetIndex:zr,index:Vr})=>{const Wr=this.getDatasetMeta(zr);if(!Wr)throw new Error("No dataset found at index "+zr);return{datasetIndex:zr,element:Wr.data[Vr],index:Vr}});!_elementsEqual(Fr,$r)&&(this._active=Fr,this._lastEvent=null,this._updateHoverStyles(Fr,$r))}notifyPlugins(Fe,$r,Fr){return this._plugins.notify(this,Fe,$r,Fr)}isPluginEnabled(Fe){return this._plugins._cache.filter($r=>$r.plugin.id===Fe).length===1}_updateHoverStyles(Fe,$r,Fr){const jr=this.options.hover,zr=(Kr,Gr)=>Kr.filter(Yr=>!Gr.some(Qr=>Yr.datasetIndex===Qr.datasetIndex&&Yr.index===Qr.index)),Vr=zr($r,Fe),Wr=Fr?Fe:zr(Fe,$r);Vr.length&&this.updateHoverStyle(Vr,jr.mode,!1),Wr.length&&jr.mode&&this.updateHoverStyle(Wr,jr.mode,!0)}_eventHandler(Fe,$r){const Fr={event:Fe,replay:$r,cancelable:!0,inChartArea:this.isPointInArea(Fe)},jr=Vr=>(Vr.options.events||this.options.events).includes(Fe.native.type);if(this.notifyPlugins("beforeEvent",Fr,jr)===!1)return;const zr=this._handleEvent(Fe,$r,Fr.inChartArea);return Fr.cancelable=!1,this.notifyPlugins("afterEvent",Fr,jr),(zr||Fr.changed)&&this.render(),this}_handleEvent(Fe,$r,Fr){const{_active:jr=[],options:zr}=this,Vr=$r,Wr=this._getActiveElements(Fe,jr,Fr,Vr),Kr=_isClickEvent(Fe),Gr=determineLastEvent(Fe,this._lastEvent,Fr,Kr);Fr&&(this._lastEvent=null,callback(zr.onHover,[Fe,Wr,this],this),Kr&&callback(zr.onClick,[Fe,Wr,this],this));const Yr=!_elementsEqual(Wr,jr);return(Yr||$r)&&(this._active=Wr,this._updateHoverStyles(Wr,jr,$r)),this._lastEvent=Gr,Yr}_getActiveElements(Fe,$r,Fr,jr){if(Fe.type==="mouseout")return[];if(!Fr)return $r;const zr=this.options.hover;return this.getElementsAtEventForMode(Fe,zr.mode,zr,jr)}}ei(Chart$1,"defaults",defaults),ei(Chart$1,"instances",instances),ei(Chart$1,"overrides",overrides),ei(Chart$1,"registry",registry),ei(Chart$1,"version",version),ei(Chart$1,"getChart",getChart);function invalidatePlugins(){return each(Chart$1.instances,_r=>_r._plugins.invalidate())}function setStyle(_r,Fe,$r=Fe){_r.lineCap=valueOrDefault($r.borderCapStyle,Fe.borderCapStyle),_r.setLineDash(valueOrDefault($r.borderDash,Fe.borderDash)),_r.lineDashOffset=valueOrDefault($r.borderDashOffset,Fe.borderDashOffset),_r.lineJoin=valueOrDefault($r.borderJoinStyle,Fe.borderJoinStyle),_r.lineWidth=valueOrDefault($r.borderWidth,Fe.borderWidth),_r.strokeStyle=valueOrDefault($r.borderColor,Fe.borderColor)}function lineTo(_r,Fe,$r){_r.lineTo($r.x,$r.y)}function getLineMethod(_r){return _r.stepped?_steppedLineTo:_r.tension||_r.cubicInterpolationMode==="monotone"?_bezierCurveTo:lineTo}function pathVars(_r,Fe,$r={}){const Fr=_r.length,{start:jr=0,end:zr=Fr-1}=$r,{start:Vr,end:Wr}=Fe,Kr=Math.max(jr,Vr),Gr=Math.min(zr,Wr),Yr=jr<Vr&&zr<Vr||jr>Wr&&zr>Wr;return{count:Fr,start:Kr,loop:Fe.loop,ilen:Gr<Kr&&!Yr?Fr+Gr-Kr:Gr-Kr}}function pathSegment(_r,Fe,$r,Fr){const{points:jr,options:zr}=Fe,{count:Vr,start:Wr,loop:Kr,ilen:Gr}=pathVars(jr,$r,Fr),Yr=getLineMethod(zr);let{move:Qr=!0,reverse:Jr}=Fr||{},Zr,tn,en;for(Zr=0;Zr<=Gr;++Zr)tn=jr[(Wr+(Jr?Gr-Zr:Zr))%Vr],!tn.skip&&(Qr?(_r.moveTo(tn.x,tn.y),Qr=!1):Yr(_r,en,tn,Jr,zr.stepped),en=tn);return Kr&&(tn=jr[(Wr+(Jr?Gr:0))%Vr],Yr(_r,en,tn,Jr,zr.stepped)),!!Kr}function fastPathSegment(_r,Fe,$r,Fr){const jr=Fe.points,{count:zr,start:Vr,ilen:Wr}=pathVars(jr,$r,Fr),{move:Kr=!0,reverse:Gr}=Fr||{};let Yr=0,Qr=0,Jr,Zr,tn,en,rn,nn;const on=an=>(Vr+(Gr?Wr-an:an))%zr,un=()=>{en!==rn&&(_r.lineTo(Yr,rn),_r.lineTo(Yr,en),_r.lineTo(Yr,nn))};for(Kr&&(Zr=jr[on(0)],_r.moveTo(Zr.x,Zr.y)),Jr=0;Jr<=Wr;++Jr){if(Zr=jr[on(Jr)],Zr.skip)continue;const an=Zr.x,sn=Zr.y,dn=an|0;dn===tn?(sn<en?en=sn:sn>rn&&(rn=sn),Yr=(Qr*Yr+an)/++Qr):(un(),_r.lineTo(an,sn),tn=dn,Qr=0,en=rn=sn),nn=sn}un()}function _getSegmentMethod(_r){const Fe=_r.options,$r=Fe.borderDash&&Fe.borderDash.length;return!_r._decimated&&!_r._loop&&!Fe.tension&&Fe.cubicInterpolationMode!=="monotone"&&!Fe.stepped&&!$r?fastPathSegment:pathSegment}function _getInterpolationMethod(_r){return _r.stepped?_steppedInterpolation:_r.tension||_r.cubicInterpolationMode==="monotone"?_bezierInterpolation:_pointInLine}function strokePathWithCache(_r,Fe,$r,Fr){let jr=Fe._path;jr||(jr=Fe._path=new Path2D,Fe.path(jr,$r,Fr)&&jr.closePath()),setStyle(_r,Fe.options),_r.stroke(jr)}function strokePathDirect(_r,Fe,$r,Fr){const{segments:jr,options:zr}=Fe,Vr=_getSegmentMethod(Fe);for(const Wr of jr)setStyle(_r,zr,Wr.style),_r.beginPath(),Vr(_r,Fe,Wr,{start:$r,end:$r+Fr-1})&&_r.closePath(),_r.stroke()}const usePath2D=typeof Path2D=="function";function draw(_r,Fe,$r,Fr){usePath2D&&!Fe.options.segment?strokePathWithCache(_r,Fe,$r,Fr):strokePathDirect(_r,Fe,$r,Fr)}class LineElement extends Element$1{constructor(Fe){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,Fe&&Object.assign(this,Fe)}updateControlPoints(Fe,$r){const Fr=this.options;if((Fr.tension||Fr.cubicInterpolationMode==="monotone")&&!Fr.stepped&&!this._pointsUpdated){const jr=Fr.spanGaps?this._loop:this._fullLoop;_updateBezierControlPoints(this._points,Fr,Fe,jr,$r),this._pointsUpdated=!0}}set points(Fe){this._points=Fe,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=_computeSegments(this,this.options.segment))}first(){const Fe=this.segments,$r=this.points;return Fe.length&&$r[Fe[0].start]}last(){const Fe=this.segments,$r=this.points,Fr=Fe.length;return Fr&&$r[Fe[Fr-1].end]}interpolate(Fe,$r){const Fr=this.options,jr=Fe[$r],zr=this.points,Vr=_boundSegments(this,{property:$r,start:jr,end:jr});if(!Vr.length)return;const Wr=[],Kr=_getInterpolationMethod(Fr);let Gr,Yr;for(Gr=0,Yr=Vr.length;Gr<Yr;++Gr){const{start:Qr,end:Jr}=Vr[Gr],Zr=zr[Qr],tn=zr[Jr];if(Zr===tn){Wr.push(Zr);continue}const en=Math.abs((jr-Zr[$r])/(tn[$r]-Zr[$r])),rn=Kr(Zr,tn,en,Fr.stepped);rn[$r]=Fe[$r],Wr.push(rn)}return Wr.length===1?Wr[0]:Wr}pathSegment(Fe,$r,Fr){return _getSegmentMethod(this)(Fe,this,$r,Fr)}path(Fe,$r,Fr){const jr=this.segments,zr=_getSegmentMethod(this);let Vr=this._loop;$r=$r||0,Fr=Fr||this.points.length-$r;for(const Wr of jr)Vr&=zr(Fe,this,Wr,{start:$r,end:$r+Fr-1});return!!Vr}draw(Fe,$r,Fr,jr){const zr=this.options||{};(this.points||[]).length&&zr.borderWidth&&(Fe.save(),draw(Fe,this,Fr,jr),Fe.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}ei(LineElement,"id","line"),ei(LineElement,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),ei(LineElement,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),ei(LineElement,"descriptors",{_scriptable:!0,_indexable:Fe=>Fe!=="borderDash"&&Fe!=="fill"});function inRange$1(_r,Fe,$r,Fr){const jr=_r.options,{[$r]:zr}=_r.getProps([$r],Fr);return Math.abs(Fe-zr)<jr.radius+jr.hitRadius}class PointElement extends Element$1{constructor($r){super();ei(this,"parsed");ei(this,"skip");ei(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,$r&&Object.assign(this,$r)}inRange($r,Fr,jr){const zr=this.options,{x:Vr,y:Wr}=this.getProps(["x","y"],jr);return Math.pow($r-Vr,2)+Math.pow(Fr-Wr,2)<Math.pow(zr.hitRadius+zr.radius,2)}inXRange($r,Fr){return inRange$1(this,$r,"x",Fr)}inYRange($r,Fr){return inRange$1(this,$r,"y",Fr)}getCenterPoint($r){const{x:Fr,y:jr}=this.getProps(["x","y"],$r);return{x:Fr,y:jr}}size($r){$r=$r||this.options||{};let Fr=$r.radius||0;Fr=Math.max(Fr,Fr&&$r.hoverRadius||0);const jr=Fr&&$r.borderWidth||0;return(Fr+jr)*2}draw($r,Fr){const jr=this.options;this.skip||jr.radius<.1||!_isPointInArea(this,Fr,this.size(jr)/2)||($r.strokeStyle=jr.borderColor,$r.lineWidth=jr.borderWidth,$r.fillStyle=jr.backgroundColor,drawPoint($r,jr,this.x,this.y))}getRange(){const $r=this.options||{};return $r.radius+$r.hitRadius}}ei(PointElement,"id","point"),ei(PointElement,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),ei(PointElement,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const getBoxSize=(_r,Fe)=>{let{boxHeight:$r=Fe,boxWidth:Fr=Fe}=_r;return _r.usePointStyle&&($r=Math.min($r,Fe),Fr=_r.pointStyleWidth||Math.min(Fr,Fe)),{boxWidth:Fr,boxHeight:$r,itemHeight:Math.max(Fe,$r)}},itemsEqual=(_r,Fe)=>_r!==null&&Fe!==null&&_r.datasetIndex===Fe.datasetIndex&&_r.index===Fe.index;class Legend extends Element$1{constructor(Fe){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=Fe.chart,this.options=Fe.options,this.ctx=Fe.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(Fe,$r,Fr){this.maxWidth=Fe,this.maxHeight=$r,this._margins=Fr,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const Fe=this.options.labels||{};let $r=callback(Fe.generateLabels,[this.chart],this)||[];Fe.filter&&($r=$r.filter(Fr=>Fe.filter(Fr,this.chart.data))),Fe.sort&&($r=$r.sort((Fr,jr)=>Fe.sort(Fr,jr,this.chart.data))),this.options.reverse&&$r.reverse(),this.legendItems=$r}fit(){const{options:Fe,ctx:$r}=this;if(!Fe.display){this.width=this.height=0;return}const Fr=Fe.labels,jr=toFont(Fr.font),zr=jr.size,Vr=this._computeTitleHeight(),{boxWidth:Wr,itemHeight:Kr}=getBoxSize(Fr,zr);let Gr,Yr;$r.font=jr.string,this.isHorizontal()?(Gr=this.maxWidth,Yr=this._fitRows(Vr,zr,Wr,Kr)+10):(Yr=this.maxHeight,Gr=this._fitCols(Vr,jr,Wr,Kr)+10),this.width=Math.min(Gr,Fe.maxWidth||this.maxWidth),this.height=Math.min(Yr,Fe.maxHeight||this.maxHeight)}_fitRows(Fe,$r,Fr,jr){const{ctx:zr,maxWidth:Vr,options:{labels:{padding:Wr}}}=this,Kr=this.legendHitBoxes=[],Gr=this.lineWidths=[0],Yr=jr+Wr;let Qr=Fe;zr.textAlign="left",zr.textBaseline="middle";let Jr=-1,Zr=-Yr;return this.legendItems.forEach((tn,en)=>{const rn=Fr+$r/2+zr.measureText(tn.text).width;(en===0||Gr[Gr.length-1]+rn+2*Wr>Vr)&&(Qr+=Yr,Gr[Gr.length-(en>0?0:1)]=0,Zr+=Yr,Jr++),Kr[en]={left:0,top:Zr,row:Jr,width:rn,height:jr},Gr[Gr.length-1]+=rn+Wr}),Qr}_fitCols(Fe,$r,Fr,jr){const{ctx:zr,maxHeight:Vr,options:{labels:{padding:Wr}}}=this,Kr=this.legendHitBoxes=[],Gr=this.columnSizes=[],Yr=Vr-Fe;let Qr=Wr,Jr=0,Zr=0,tn=0,en=0;return this.legendItems.forEach((rn,nn)=>{const{itemWidth:on,itemHeight:un}=calculateItemSize(Fr,$r,zr,rn,jr);nn>0&&Zr+un+2*Wr>Yr&&(Qr+=Jr+Wr,Gr.push({width:Jr,height:Zr}),tn+=Jr+Wr,en++,Jr=Zr=0),Kr[nn]={left:tn,top:Zr,col:en,width:on,height:un},Jr=Math.max(Jr,on),Zr+=un+Wr}),Qr+=Jr,Gr.push({width:Jr,height:Zr}),Qr}adjustHitBoxes(){if(!this.options.display)return;const Fe=this._computeTitleHeight(),{legendHitBoxes:$r,options:{align:Fr,labels:{padding:jr},rtl:zr}}=this,Vr=getRtlAdapter(zr,this.left,this.width);if(this.isHorizontal()){let Wr=0,Kr=_alignStartEnd(Fr,this.left+jr,this.right-this.lineWidths[Wr]);for(const Gr of $r)Wr!==Gr.row&&(Wr=Gr.row,Kr=_alignStartEnd(Fr,this.left+jr,this.right-this.lineWidths[Wr])),Gr.top+=this.top+Fe+jr,Gr.left=Vr.leftForLtr(Vr.x(Kr),Gr.width),Kr+=Gr.width+jr}else{let Wr=0,Kr=_alignStartEnd(Fr,this.top+Fe+jr,this.bottom-this.columnSizes[Wr].height);for(const Gr of $r)Gr.col!==Wr&&(Wr=Gr.col,Kr=_alignStartEnd(Fr,this.top+Fe+jr,this.bottom-this.columnSizes[Wr].height)),Gr.top=Kr,Gr.left+=this.left+jr,Gr.left=Vr.leftForLtr(Vr.x(Gr.left),Gr.width),Kr+=Gr.height+jr}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const Fe=this.ctx;clipArea(Fe,this),this._draw(),unclipArea(Fe)}}_draw(){const{options:Fe,columnSizes:$r,lineWidths:Fr,ctx:jr}=this,{align:zr,labels:Vr}=Fe,Wr=defaults.color,Kr=getRtlAdapter(Fe.rtl,this.left,this.width),Gr=toFont(Vr.font),{padding:Yr}=Vr,Qr=Gr.size,Jr=Qr/2;let Zr;this.drawTitle(),jr.textAlign=Kr.textAlign("left"),jr.textBaseline="middle",jr.lineWidth=.5,jr.font=Gr.string;const{boxWidth:tn,boxHeight:en,itemHeight:rn}=getBoxSize(Vr,Qr),nn=function(dn,ln,cn){if(isNaN(tn)||tn<=0||isNaN(en)||en<0)return;jr.save();const fn=valueOrDefault(cn.lineWidth,1);if(jr.fillStyle=valueOrDefault(cn.fillStyle,Wr),jr.lineCap=valueOrDefault(cn.lineCap,"butt"),jr.lineDashOffset=valueOrDefault(cn.lineDashOffset,0),jr.lineJoin=valueOrDefault(cn.lineJoin,"miter"),jr.lineWidth=fn,jr.strokeStyle=valueOrDefault(cn.strokeStyle,Wr),jr.setLineDash(valueOrDefault(cn.lineDash,[])),Vr.usePointStyle){const pn={radius:en*Math.SQRT2/2,pointStyle:cn.pointStyle,rotation:cn.rotation,borderWidth:fn},hn=Kr.xPlus(dn,tn/2),mn=ln+Jr;drawPointLegend(jr,pn,hn,mn,Vr.pointStyleWidth&&tn)}else{const pn=ln+Math.max((Qr-en)/2,0),hn=Kr.leftForLtr(dn,tn),mn=toTRBLCorners(cn.borderRadius);jr.beginPath(),Object.values(mn).some(Sn=>Sn!==0)?addRoundedRectPath(jr,{x:hn,y:pn,w:tn,h:en,radius:mn}):jr.rect(hn,pn,tn,en),jr.fill(),fn!==0&&jr.stroke()}jr.restore()},on=function(dn,ln,cn){renderText(jr,cn.text,dn,ln+rn/2,Gr,{strikethrough:cn.hidden,textAlign:Kr.textAlign(cn.textAlign)})},un=this.isHorizontal(),an=this._computeTitleHeight();un?Zr={x:_alignStartEnd(zr,this.left+Yr,this.right-Fr[0]),y:this.top+Yr+an,line:0}:Zr={x:this.left+Yr,y:_alignStartEnd(zr,this.top+an+Yr,this.bottom-$r[0].height),line:0},overrideTextDirection(this.ctx,Fe.textDirection);const sn=rn+Yr;this.legendItems.forEach((dn,ln)=>{jr.strokeStyle=dn.fontColor,jr.fillStyle=dn.fontColor;const cn=jr.measureText(dn.text).width,fn=Kr.textAlign(dn.textAlign||(dn.textAlign=Vr.textAlign)),pn=tn+Jr+cn;let hn=Zr.x,mn=Zr.y;Kr.setWidth(this.width),un?ln>0&&hn+pn+Yr>this.right&&(mn=Zr.y+=sn,Zr.line++,hn=Zr.x=_alignStartEnd(zr,this.left+Yr,this.right-Fr[Zr.line])):ln>0&&mn+sn>this.bottom&&(hn=Zr.x=hn+$r[Zr.line].width+Yr,Zr.line++,mn=Zr.y=_alignStartEnd(zr,this.top+an+Yr,this.bottom-$r[Zr.line].height));const Sn=Kr.x(hn);if(nn(Sn,mn,dn),hn=_textX(fn,hn+tn+Jr,un?hn+pn:this.right,Fe.rtl),on(Kr.x(hn),mn,dn),un)Zr.x+=pn+Yr;else if(typeof dn.text!="string"){const vn=Gr.lineHeight;Zr.y+=calculateLegendItemHeight(dn,vn)}else Zr.y+=sn}),restoreTextDirection(this.ctx,Fe.textDirection)}drawTitle(){const Fe=this.options,$r=Fe.title,Fr=toFont($r.font),jr=toPadding($r.padding);if(!$r.display)return;const zr=getRtlAdapter(Fe.rtl,this.left,this.width),Vr=this.ctx,Wr=$r.position,Kr=Fr.size/2,Gr=jr.top+Kr;let Yr,Qr=this.left,Jr=this.width;if(this.isHorizontal())Jr=Math.max(...this.lineWidths),Yr=this.top+Gr,Qr=_alignStartEnd(Fe.align,Qr,this.right-Jr);else{const tn=this.columnSizes.reduce((en,rn)=>Math.max(en,rn.height),0);Yr=Gr+_alignStartEnd(Fe.align,this.top,this.bottom-tn-Fe.labels.padding-this._computeTitleHeight())}const Zr=_alignStartEnd(Wr,Qr,Qr+Jr);Vr.textAlign=zr.textAlign(_toLeftRightCenter(Wr)),Vr.textBaseline="middle",Vr.strokeStyle=$r.color,Vr.fillStyle=$r.color,Vr.font=Fr.string,renderText(Vr,$r.text,Zr,Yr,Fr)}_computeTitleHeight(){const Fe=this.options.title,$r=toFont(Fe.font),Fr=toPadding(Fe.padding);return Fe.display?$r.lineHeight+Fr.height:0}_getLegendItemAt(Fe,$r){let Fr,jr,zr;if(_isBetween(Fe,this.left,this.right)&&_isBetween($r,this.top,this.bottom)){for(zr=this.legendHitBoxes,Fr=0;Fr<zr.length;++Fr)if(jr=zr[Fr],_isBetween(Fe,jr.left,jr.left+jr.width)&&_isBetween($r,jr.top,jr.top+jr.height))return this.legendItems[Fr]}return null}handleEvent(Fe){const $r=this.options;if(!isListened(Fe.type,$r))return;const Fr=this._getLegendItemAt(Fe.x,Fe.y);if(Fe.type==="mousemove"||Fe.type==="mouseout"){const jr=this._hoveredItem,zr=itemsEqual(jr,Fr);jr&&!zr&&callback($r.onLeave,[Fe,jr,this],this),this._hoveredItem=Fr,Fr&&!zr&&callback($r.onHover,[Fe,Fr,this],this)}else Fr&&callback($r.onClick,[Fe,Fr,this],this)}}function calculateItemSize(_r,Fe,$r,Fr,jr){const zr=calculateItemWidth(Fr,_r,Fe,$r),Vr=calculateItemHeight(jr,Fr,Fe.lineHeight);return{itemWidth:zr,itemHeight:Vr}}function calculateItemWidth(_r,Fe,$r,Fr){let jr=_r.text;return jr&&typeof jr!="string"&&(jr=jr.reduce((zr,Vr)=>zr.length>Vr.length?zr:Vr)),Fe+$r.size/2+Fr.measureText(jr).width}function calculateItemHeight(_r,Fe,$r){let Fr=_r;return typeof Fe.text!="string"&&(Fr=calculateLegendItemHeight(Fe,$r)),Fr}function calculateLegendItemHeight(_r,Fe){const $r=_r.text?_r.text.length+.5:0;return Fe*$r}function isListened(_r,Fe){return!!((_r==="mousemove"||_r==="mouseout")&&(Fe.onHover||Fe.onLeave)||Fe.onClick&&(_r==="click"||_r==="mouseup"))}var plugin_legend={id:"legend",_element:Legend,start(_r,Fe,$r){const Fr=_r.legend=new Legend({ctx:_r.ctx,options:$r,chart:_r});layouts.configure(_r,Fr,$r),layouts.addBox(_r,Fr)},stop(_r){layouts.removeBox(_r,_r.legend),delete _r.legend},beforeUpdate(_r,Fe,$r){const Fr=_r.legend;layouts.configure(_r,Fr,$r),Fr.options=$r},afterUpdate(_r){const Fe=_r.legend;Fe.buildLabels(),Fe.adjustHitBoxes()},afterEvent(_r,Fe){Fe.replay||_r.legend.handleEvent(Fe.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(_r,Fe,$r){const Fr=Fe.datasetIndex,jr=$r.chart;jr.isDatasetVisible(Fr)?(jr.hide(Fr),Fe.hidden=!0):(jr.show(Fr),Fe.hidden=!1)},onHover:null,onLeave:null,labels:{color:_r=>_r.chart.options.color,boxWidth:40,padding:10,generateLabels(_r){const Fe=_r.data.datasets,{labels:{usePointStyle:$r,pointStyle:Fr,textAlign:jr,color:zr,useBorderRadius:Vr,borderRadius:Wr}}=_r.legend.options;return _r._getSortedDatasetMetas().map(Kr=>{const Gr=Kr.controller.getStyle($r?0:void 0),Yr=toPadding(Gr.borderWidth);return{text:Fe[Kr.index].label,fillStyle:Gr.backgroundColor,fontColor:zr,hidden:!Kr.visible,lineCap:Gr.borderCapStyle,lineDash:Gr.borderDash,lineDashOffset:Gr.borderDashOffset,lineJoin:Gr.borderJoinStyle,lineWidth:(Yr.width+Yr.height)/4,strokeStyle:Gr.borderColor,pointStyle:Fr||Gr.pointStyle,rotation:Gr.rotation,textAlign:jr||Gr.textAlign,borderRadius:Vr&&(Wr||Gr.borderRadius),datasetIndex:Kr.index}},this)}},title:{color:_r=>_r.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:_r=>!_r.startsWith("on"),labels:{_scriptable:_r=>!["generateLabels","filter","sort"].includes(_r)}}};class Title extends Element$1{constructor(Fe){super(),this.chart=Fe.chart,this.options=Fe.options,this.ctx=Fe.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(Fe,$r){const Fr=this.options;if(this.left=0,this.top=0,!Fr.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=Fe,this.height=this.bottom=$r;const jr=isArray(Fr.text)?Fr.text.length:1;this._padding=toPadding(Fr.padding);const zr=jr*toFont(Fr.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=zr:this.width=zr}isHorizontal(){const Fe=this.options.position;return Fe==="top"||Fe==="bottom"}_drawArgs(Fe){const{top:$r,left:Fr,bottom:jr,right:zr,options:Vr}=this,Wr=Vr.align;let Kr=0,Gr,Yr,Qr;return this.isHorizontal()?(Yr=_alignStartEnd(Wr,Fr,zr),Qr=$r+Fe,Gr=zr-Fr):(Vr.position==="left"?(Yr=Fr+Fe,Qr=_alignStartEnd(Wr,jr,$r),Kr=PI*-.5):(Yr=zr-Fe,Qr=_alignStartEnd(Wr,$r,jr),Kr=PI*.5),Gr=jr-$r),{titleX:Yr,titleY:Qr,maxWidth:Gr,rotation:Kr}}draw(){const Fe=this.ctx,$r=this.options;if(!$r.display)return;const Fr=toFont($r.font),zr=Fr.lineHeight/2+this._padding.top,{titleX:Vr,titleY:Wr,maxWidth:Kr,rotation:Gr}=this._drawArgs(zr);renderText(Fe,$r.text,0,0,Fr,{color:$r.color,maxWidth:Kr,rotation:Gr,textAlign:_toLeftRightCenter($r.align),textBaseline:"middle",translation:[Vr,Wr]})}}function createTitle(_r,Fe){const $r=new Title({ctx:_r.ctx,options:Fe,chart:_r});layouts.configure(_r,$r,Fe),layouts.addBox(_r,$r),_r.titleBlock=$r}var plugin_title={id:"title",_element:Title,start(_r,Fe,$r){createTitle(_r,$r)},stop(_r){const Fe=_r.titleBlock;layouts.removeBox(_r,Fe),delete _r.titleBlock},beforeUpdate(_r,Fe,$r){const Fr=_r.titleBlock;layouts.configure(_r,Fr,$r),Fr.options=$r},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const positioners={average(_r){if(!_r.length)return!1;let Fe,$r,Fr=0,jr=0,zr=0;for(Fe=0,$r=_r.length;Fe<$r;++Fe){const Vr=_r[Fe].element;if(Vr&&Vr.hasValue()){const Wr=Vr.tooltipPosition();Fr+=Wr.x,jr+=Wr.y,++zr}}return{x:Fr/zr,y:jr/zr}},nearest(_r,Fe){if(!_r.length)return!1;let $r=Fe.x,Fr=Fe.y,jr=Number.POSITIVE_INFINITY,zr,Vr,Wr;for(zr=0,Vr=_r.length;zr<Vr;++zr){const Kr=_r[zr].element;if(Kr&&Kr.hasValue()){const Gr=Kr.getCenterPoint(),Yr=distanceBetweenPoints(Fe,Gr);Yr<jr&&(jr=Yr,Wr=Kr)}}if(Wr){const Kr=Wr.tooltipPosition();$r=Kr.x,Fr=Kr.y}return{x:$r,y:Fr}}};function pushOrConcat(_r,Fe){return Fe&&(isArray(Fe)?Array.prototype.push.apply(_r,Fe):_r.push(Fe)),_r}function splitNewlines(_r){return(typeof _r=="string"||_r instanceof String)&&_r.indexOf(`
`)>-1?_r.split(`
`):_r}function createTooltipItem(_r,Fe){const{element:$r,datasetIndex:Fr,index:jr}=Fe,zr=_r.getDatasetMeta(Fr).controller,{label:Vr,value:Wr}=zr.getLabelAndValue(jr);return{chart:_r,label:Vr,parsed:zr.getParsed(jr),raw:_r.data.datasets[Fr].data[jr],formattedValue:Wr,dataset:zr.getDataset(),dataIndex:jr,datasetIndex:Fr,element:$r}}function getTooltipSize(_r,Fe){const $r=_r.chart.ctx,{body:Fr,footer:jr,title:zr}=_r,{boxWidth:Vr,boxHeight:Wr}=Fe,Kr=toFont(Fe.bodyFont),Gr=toFont(Fe.titleFont),Yr=toFont(Fe.footerFont),Qr=zr.length,Jr=jr.length,Zr=Fr.length,tn=toPadding(Fe.padding);let en=tn.height,rn=0,nn=Fr.reduce((an,sn)=>an+sn.before.length+sn.lines.length+sn.after.length,0);if(nn+=_r.beforeBody.length+_r.afterBody.length,Qr&&(en+=Qr*Gr.lineHeight+(Qr-1)*Fe.titleSpacing+Fe.titleMarginBottom),nn){const an=Fe.displayColors?Math.max(Wr,Kr.lineHeight):Kr.lineHeight;en+=Zr*an+(nn-Zr)*Kr.lineHeight+(nn-1)*Fe.bodySpacing}Jr&&(en+=Fe.footerMarginTop+Jr*Yr.lineHeight+(Jr-1)*Fe.footerSpacing);let on=0;const un=function(an){rn=Math.max(rn,$r.measureText(an).width+on)};return $r.save(),$r.font=Gr.string,each(_r.title,un),$r.font=Kr.string,each(_r.beforeBody.concat(_r.afterBody),un),on=Fe.displayColors?Vr+2+Fe.boxPadding:0,each(Fr,an=>{each(an.before,un),each(an.lines,un),each(an.after,un)}),on=0,$r.font=Yr.string,each(_r.footer,un),$r.restore(),rn+=tn.width,{width:rn,height:en}}function determineYAlign(_r,Fe){const{y:$r,height:Fr}=Fe;return $r<Fr/2?"top":$r>_r.height-Fr/2?"bottom":"center"}function doesNotFitWithAlign(_r,Fe,$r,Fr){const{x:jr,width:zr}=Fr,Vr=$r.caretSize+$r.caretPadding;if(_r==="left"&&jr+zr+Vr>Fe.width||_r==="right"&&jr-zr-Vr<0)return!0}function determineXAlign(_r,Fe,$r,Fr){const{x:jr,width:zr}=$r,{width:Vr,chartArea:{left:Wr,right:Kr}}=_r;let Gr="center";return Fr==="center"?Gr=jr<=(Wr+Kr)/2?"left":"right":jr<=zr/2?Gr="left":jr>=Vr-zr/2&&(Gr="right"),doesNotFitWithAlign(Gr,_r,Fe,$r)&&(Gr="center"),Gr}function determineAlignment(_r,Fe,$r){const Fr=$r.yAlign||Fe.yAlign||determineYAlign(_r,$r);return{xAlign:$r.xAlign||Fe.xAlign||determineXAlign(_r,Fe,$r,Fr),yAlign:Fr}}function alignX(_r,Fe){let{x:$r,width:Fr}=_r;return Fe==="right"?$r-=Fr:Fe==="center"&&($r-=Fr/2),$r}function alignY(_r,Fe,$r){let{y:Fr,height:jr}=_r;return Fe==="top"?Fr+=$r:Fe==="bottom"?Fr-=jr+$r:Fr-=jr/2,Fr}function getBackgroundPoint(_r,Fe,$r,Fr){const{caretSize:jr,caretPadding:zr,cornerRadius:Vr}=_r,{xAlign:Wr,yAlign:Kr}=$r,Gr=jr+zr,{topLeft:Yr,topRight:Qr,bottomLeft:Jr,bottomRight:Zr}=toTRBLCorners(Vr);let tn=alignX(Fe,Wr);const en=alignY(Fe,Kr,Gr);return Kr==="center"?Wr==="left"?tn+=Gr:Wr==="right"&&(tn-=Gr):Wr==="left"?tn-=Math.max(Yr,Jr)+jr:Wr==="right"&&(tn+=Math.max(Qr,Zr)+jr),{x:_limitValue(tn,0,Fr.width-Fe.width),y:_limitValue(en,0,Fr.height-Fe.height)}}function getAlignedX(_r,Fe,$r){const Fr=toPadding($r.padding);return Fe==="center"?_r.x+_r.width/2:Fe==="right"?_r.x+_r.width-Fr.right:_r.x+Fr.left}function getBeforeAfterBodyLines(_r){return pushOrConcat([],splitNewlines(_r))}function createTooltipContext(_r,Fe,$r){return createContext(_r,{tooltip:Fe,tooltipItems:$r,type:"tooltip"})}function overrideCallbacks(_r,Fe){const $r=Fe&&Fe.dataset&&Fe.dataset.tooltip&&Fe.dataset.tooltip.callbacks;return $r?_r.override($r):_r}const defaultCallbacks={beforeTitle:noop,title(_r){if(_r.length>0){const Fe=_r[0],$r=Fe.chart.data.labels,Fr=$r?$r.length:0;if(this&&this.options&&this.options.mode==="dataset")return Fe.dataset.label||"";if(Fe.label)return Fe.label;if(Fr>0&&Fe.dataIndex<Fr)return $r[Fe.dataIndex]}return""},afterTitle:noop,beforeBody:noop,beforeLabel:noop,label(_r){if(this&&this.options&&this.options.mode==="dataset")return _r.label+": "+_r.formattedValue||_r.formattedValue;let Fe=_r.dataset.label||"";Fe&&(Fe+=": ");const $r=_r.formattedValue;return isNullOrUndef($r)||(Fe+=$r),Fe},labelColor(_r){const $r=_r.chart.getDatasetMeta(_r.datasetIndex).controller.getStyle(_r.dataIndex);return{borderColor:$r.borderColor,backgroundColor:$r.backgroundColor,borderWidth:$r.borderWidth,borderDash:$r.borderDash,borderDashOffset:$r.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(_r){const $r=_r.chart.getDatasetMeta(_r.datasetIndex).controller.getStyle(_r.dataIndex);return{pointStyle:$r.pointStyle,rotation:$r.rotation}},afterLabel:noop,afterBody:noop,beforeFooter:noop,footer:noop,afterFooter:noop};function invokeCallbackWithFallback(_r,Fe,$r,Fr){const jr=_r[Fe].call($r,Fr);return typeof jr=="undefined"?defaultCallbacks[Fe].call($r,Fr):jr}class Tooltip extends Element$1{constructor(Fe){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=Fe.chart,this.options=Fe.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(Fe){this.options=Fe,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const Fe=this._cachedAnimations;if(Fe)return Fe;const $r=this.chart,Fr=this.options.setContext(this.getContext()),jr=Fr.enabled&&$r.options.animation&&Fr.animations,zr=new Animations(this.chart,jr);return jr._cacheable&&(this._cachedAnimations=Object.freeze(zr)),zr}getContext(){return this.$context||(this.$context=createTooltipContext(this.chart.getContext(),this,this._tooltipItems))}getTitle(Fe,$r){const{callbacks:Fr}=$r,jr=invokeCallbackWithFallback(Fr,"beforeTitle",this,Fe),zr=invokeCallbackWithFallback(Fr,"title",this,Fe),Vr=invokeCallbackWithFallback(Fr,"afterTitle",this,Fe);let Wr=[];return Wr=pushOrConcat(Wr,splitNewlines(jr)),Wr=pushOrConcat(Wr,splitNewlines(zr)),Wr=pushOrConcat(Wr,splitNewlines(Vr)),Wr}getBeforeBody(Fe,$r){return getBeforeAfterBodyLines(invokeCallbackWithFallback($r.callbacks,"beforeBody",this,Fe))}getBody(Fe,$r){const{callbacks:Fr}=$r,jr=[];return each(Fe,zr=>{const Vr={before:[],lines:[],after:[]},Wr=overrideCallbacks(Fr,zr);pushOrConcat(Vr.before,splitNewlines(invokeCallbackWithFallback(Wr,"beforeLabel",this,zr))),pushOrConcat(Vr.lines,invokeCallbackWithFallback(Wr,"label",this,zr)),pushOrConcat(Vr.after,splitNewlines(invokeCallbackWithFallback(Wr,"afterLabel",this,zr))),jr.push(Vr)}),jr}getAfterBody(Fe,$r){return getBeforeAfterBodyLines(invokeCallbackWithFallback($r.callbacks,"afterBody",this,Fe))}getFooter(Fe,$r){const{callbacks:Fr}=$r,jr=invokeCallbackWithFallback(Fr,"beforeFooter",this,Fe),zr=invokeCallbackWithFallback(Fr,"footer",this,Fe),Vr=invokeCallbackWithFallback(Fr,"afterFooter",this,Fe);let Wr=[];return Wr=pushOrConcat(Wr,splitNewlines(jr)),Wr=pushOrConcat(Wr,splitNewlines(zr)),Wr=pushOrConcat(Wr,splitNewlines(Vr)),Wr}_createItems(Fe){const $r=this._active,Fr=this.chart.data,jr=[],zr=[],Vr=[];let Wr=[],Kr,Gr;for(Kr=0,Gr=$r.length;Kr<Gr;++Kr)Wr.push(createTooltipItem(this.chart,$r[Kr]));return Fe.filter&&(Wr=Wr.filter((Yr,Qr,Jr)=>Fe.filter(Yr,Qr,Jr,Fr))),Fe.itemSort&&(Wr=Wr.sort((Yr,Qr)=>Fe.itemSort(Yr,Qr,Fr))),each(Wr,Yr=>{const Qr=overrideCallbacks(Fe.callbacks,Yr);jr.push(invokeCallbackWithFallback(Qr,"labelColor",this,Yr)),zr.push(invokeCallbackWithFallback(Qr,"labelPointStyle",this,Yr)),Vr.push(invokeCallbackWithFallback(Qr,"labelTextColor",this,Yr))}),this.labelColors=jr,this.labelPointStyles=zr,this.labelTextColors=Vr,this.dataPoints=Wr,Wr}update(Fe,$r){const Fr=this.options.setContext(this.getContext()),jr=this._active;let zr,Vr=[];if(!jr.length)this.opacity!==0&&(zr={opacity:0});else{const Wr=positioners[Fr.position].call(this,jr,this._eventPosition);Vr=this._createItems(Fr),this.title=this.getTitle(Vr,Fr),this.beforeBody=this.getBeforeBody(Vr,Fr),this.body=this.getBody(Vr,Fr),this.afterBody=this.getAfterBody(Vr,Fr),this.footer=this.getFooter(Vr,Fr);const Kr=this._size=getTooltipSize(this,Fr),Gr=Object.assign({},Wr,Kr),Yr=determineAlignment(this.chart,Fr,Gr),Qr=getBackgroundPoint(Fr,Gr,Yr,this.chart);this.xAlign=Yr.xAlign,this.yAlign=Yr.yAlign,zr={opacity:1,x:Qr.x,y:Qr.y,width:Kr.width,height:Kr.height,caretX:Wr.x,caretY:Wr.y}}this._tooltipItems=Vr,this.$context=void 0,zr&&this._resolveAnimations().update(this,zr),Fe&&Fr.external&&Fr.external.call(this,{chart:this.chart,tooltip:this,replay:$r})}drawCaret(Fe,$r,Fr,jr){const zr=this.getCaretPosition(Fe,Fr,jr);$r.lineTo(zr.x1,zr.y1),$r.lineTo(zr.x2,zr.y2),$r.lineTo(zr.x3,zr.y3)}getCaretPosition(Fe,$r,Fr){const{xAlign:jr,yAlign:zr}=this,{caretSize:Vr,cornerRadius:Wr}=Fr,{topLeft:Kr,topRight:Gr,bottomLeft:Yr,bottomRight:Qr}=toTRBLCorners(Wr),{x:Jr,y:Zr}=Fe,{width:tn,height:en}=$r;let rn,nn,on,un,an,sn;return zr==="center"?(an=Zr+en/2,jr==="left"?(rn=Jr,nn=rn-Vr,un=an+Vr,sn=an-Vr):(rn=Jr+tn,nn=rn+Vr,un=an-Vr,sn=an+Vr),on=rn):(jr==="left"?nn=Jr+Math.max(Kr,Yr)+Vr:jr==="right"?nn=Jr+tn-Math.max(Gr,Qr)-Vr:nn=this.caretX,zr==="top"?(un=Zr,an=un-Vr,rn=nn-Vr,on=nn+Vr):(un=Zr+en,an=un+Vr,rn=nn+Vr,on=nn-Vr),sn=un),{x1:rn,x2:nn,x3:on,y1:un,y2:an,y3:sn}}drawTitle(Fe,$r,Fr){const jr=this.title,zr=jr.length;let Vr,Wr,Kr;if(zr){const Gr=getRtlAdapter(Fr.rtl,this.x,this.width);for(Fe.x=getAlignedX(this,Fr.titleAlign,Fr),$r.textAlign=Gr.textAlign(Fr.titleAlign),$r.textBaseline="middle",Vr=toFont(Fr.titleFont),Wr=Fr.titleSpacing,$r.fillStyle=Fr.titleColor,$r.font=Vr.string,Kr=0;Kr<zr;++Kr)$r.fillText(jr[Kr],Gr.x(Fe.x),Fe.y+Vr.lineHeight/2),Fe.y+=Vr.lineHeight+Wr,Kr+1===zr&&(Fe.y+=Fr.titleMarginBottom-Wr)}}_drawColorBox(Fe,$r,Fr,jr,zr){const Vr=this.labelColors[Fr],Wr=this.labelPointStyles[Fr],{boxHeight:Kr,boxWidth:Gr}=zr,Yr=toFont(zr.bodyFont),Qr=getAlignedX(this,"left",zr),Jr=jr.x(Qr),Zr=Kr<Yr.lineHeight?(Yr.lineHeight-Kr)/2:0,tn=$r.y+Zr;if(zr.usePointStyle){const en={radius:Math.min(Gr,Kr)/2,pointStyle:Wr.pointStyle,rotation:Wr.rotation,borderWidth:1},rn=jr.leftForLtr(Jr,Gr)+Gr/2,nn=tn+Kr/2;Fe.strokeStyle=zr.multiKeyBackground,Fe.fillStyle=zr.multiKeyBackground,drawPoint(Fe,en,rn,nn),Fe.strokeStyle=Vr.borderColor,Fe.fillStyle=Vr.backgroundColor,drawPoint(Fe,en,rn,nn)}else{Fe.lineWidth=isObject(Vr.borderWidth)?Math.max(...Object.values(Vr.borderWidth)):Vr.borderWidth||1,Fe.strokeStyle=Vr.borderColor,Fe.setLineDash(Vr.borderDash||[]),Fe.lineDashOffset=Vr.borderDashOffset||0;const en=jr.leftForLtr(Jr,Gr),rn=jr.leftForLtr(jr.xPlus(Jr,1),Gr-2),nn=toTRBLCorners(Vr.borderRadius);Object.values(nn).some(on=>on!==0)?(Fe.beginPath(),Fe.fillStyle=zr.multiKeyBackground,addRoundedRectPath(Fe,{x:en,y:tn,w:Gr,h:Kr,radius:nn}),Fe.fill(),Fe.stroke(),Fe.fillStyle=Vr.backgroundColor,Fe.beginPath(),addRoundedRectPath(Fe,{x:rn,y:tn+1,w:Gr-2,h:Kr-2,radius:nn}),Fe.fill()):(Fe.fillStyle=zr.multiKeyBackground,Fe.fillRect(en,tn,Gr,Kr),Fe.strokeRect(en,tn,Gr,Kr),Fe.fillStyle=Vr.backgroundColor,Fe.fillRect(rn,tn+1,Gr-2,Kr-2))}Fe.fillStyle=this.labelTextColors[Fr]}drawBody(Fe,$r,Fr){const{body:jr}=this,{bodySpacing:zr,bodyAlign:Vr,displayColors:Wr,boxHeight:Kr,boxWidth:Gr,boxPadding:Yr}=Fr,Qr=toFont(Fr.bodyFont);let Jr=Qr.lineHeight,Zr=0;const tn=getRtlAdapter(Fr.rtl,this.x,this.width),en=function(cn){$r.fillText(cn,tn.x(Fe.x+Zr),Fe.y+Jr/2),Fe.y+=Jr+zr},rn=tn.textAlign(Vr);let nn,on,un,an,sn,dn,ln;for($r.textAlign=Vr,$r.textBaseline="middle",$r.font=Qr.string,Fe.x=getAlignedX(this,rn,Fr),$r.fillStyle=Fr.bodyColor,each(this.beforeBody,en),Zr=Wr&&rn!=="right"?Vr==="center"?Gr/2+Yr:Gr+2+Yr:0,an=0,dn=jr.length;an<dn;++an){for(nn=jr[an],on=this.labelTextColors[an],$r.fillStyle=on,each(nn.before,en),un=nn.lines,Wr&&un.length&&(this._drawColorBox($r,Fe,an,tn,Fr),Jr=Math.max(Qr.lineHeight,Kr)),sn=0,ln=un.length;sn<ln;++sn)en(un[sn]),Jr=Qr.lineHeight;each(nn.after,en)}Zr=0,Jr=Qr.lineHeight,each(this.afterBody,en),Fe.y-=zr}drawFooter(Fe,$r,Fr){const jr=this.footer,zr=jr.length;let Vr,Wr;if(zr){const Kr=getRtlAdapter(Fr.rtl,this.x,this.width);for(Fe.x=getAlignedX(this,Fr.footerAlign,Fr),Fe.y+=Fr.footerMarginTop,$r.textAlign=Kr.textAlign(Fr.footerAlign),$r.textBaseline="middle",Vr=toFont(Fr.footerFont),$r.fillStyle=Fr.footerColor,$r.font=Vr.string,Wr=0;Wr<zr;++Wr)$r.fillText(jr[Wr],Kr.x(Fe.x),Fe.y+Vr.lineHeight/2),Fe.y+=Vr.lineHeight+Fr.footerSpacing}}drawBackground(Fe,$r,Fr,jr){const{xAlign:zr,yAlign:Vr}=this,{x:Wr,y:Kr}=Fe,{width:Gr,height:Yr}=Fr,{topLeft:Qr,topRight:Jr,bottomLeft:Zr,bottomRight:tn}=toTRBLCorners(jr.cornerRadius);$r.fillStyle=jr.backgroundColor,$r.strokeStyle=jr.borderColor,$r.lineWidth=jr.borderWidth,$r.beginPath(),$r.moveTo(Wr+Qr,Kr),Vr==="top"&&this.drawCaret(Fe,$r,Fr,jr),$r.lineTo(Wr+Gr-Jr,Kr),$r.quadraticCurveTo(Wr+Gr,Kr,Wr+Gr,Kr+Jr),Vr==="center"&&zr==="right"&&this.drawCaret(Fe,$r,Fr,jr),$r.lineTo(Wr+Gr,Kr+Yr-tn),$r.quadraticCurveTo(Wr+Gr,Kr+Yr,Wr+Gr-tn,Kr+Yr),Vr==="bottom"&&this.drawCaret(Fe,$r,Fr,jr),$r.lineTo(Wr+Zr,Kr+Yr),$r.quadraticCurveTo(Wr,Kr+Yr,Wr,Kr+Yr-Zr),Vr==="center"&&zr==="left"&&this.drawCaret(Fe,$r,Fr,jr),$r.lineTo(Wr,Kr+Qr),$r.quadraticCurveTo(Wr,Kr,Wr+Qr,Kr),$r.closePath(),$r.fill(),jr.borderWidth>0&&$r.stroke()}_updateAnimationTarget(Fe){const $r=this.chart,Fr=this.$animations,jr=Fr&&Fr.x,zr=Fr&&Fr.y;if(jr||zr){const Vr=positioners[Fe.position].call(this,this._active,this._eventPosition);if(!Vr)return;const Wr=this._size=getTooltipSize(this,Fe),Kr=Object.assign({},Vr,this._size),Gr=determineAlignment($r,Fe,Kr),Yr=getBackgroundPoint(Fe,Kr,Gr,$r);(jr._to!==Yr.x||zr._to!==Yr.y)&&(this.xAlign=Gr.xAlign,this.yAlign=Gr.yAlign,this.width=Wr.width,this.height=Wr.height,this.caretX=Vr.x,this.caretY=Vr.y,this._resolveAnimations().update(this,Yr))}}_willRender(){return!!this.opacity}draw(Fe){const $r=this.options.setContext(this.getContext());let Fr=this.opacity;if(!Fr)return;this._updateAnimationTarget($r);const jr={width:this.width,height:this.height},zr={x:this.x,y:this.y};Fr=Math.abs(Fr)<.001?0:Fr;const Vr=toPadding($r.padding),Wr=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;$r.enabled&&Wr&&(Fe.save(),Fe.globalAlpha=Fr,this.drawBackground(zr,Fe,jr,$r),overrideTextDirection(Fe,$r.textDirection),zr.y+=Vr.top,this.drawTitle(zr,Fe,$r),this.drawBody(zr,Fe,$r),this.drawFooter(zr,Fe,$r),restoreTextDirection(Fe,$r.textDirection),Fe.restore())}getActiveElements(){return this._active||[]}setActiveElements(Fe,$r){const Fr=this._active,jr=Fe.map(({datasetIndex:Wr,index:Kr})=>{const Gr=this.chart.getDatasetMeta(Wr);if(!Gr)throw new Error("Cannot find a dataset at index "+Wr);return{datasetIndex:Wr,element:Gr.data[Kr],index:Kr}}),zr=!_elementsEqual(Fr,jr),Vr=this._positionChanged(jr,$r);(zr||Vr)&&(this._active=jr,this._eventPosition=$r,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(Fe,$r,Fr=!0){if($r&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const jr=this.options,zr=this._active||[],Vr=this._getActiveElements(Fe,zr,$r,Fr),Wr=this._positionChanged(Vr,Fe),Kr=$r||!_elementsEqual(Vr,zr)||Wr;return Kr&&(this._active=Vr,(jr.enabled||jr.external)&&(this._eventPosition={x:Fe.x,y:Fe.y},this.update(!0,$r))),Kr}_getActiveElements(Fe,$r,Fr,jr){const zr=this.options;if(Fe.type==="mouseout")return[];if(!jr)return $r;const Vr=this.chart.getElementsAtEventForMode(Fe,zr.mode,zr,Fr);return zr.reverse&&Vr.reverse(),Vr}_positionChanged(Fe,$r){const{caretX:Fr,caretY:jr,options:zr}=this,Vr=positioners[zr.position].call(this,Fe,$r);return Vr!==!1&&(Fr!==Vr.x||jr!==Vr.y)}}ei(Tooltip,"positioners",positioners);var plugin_tooltip={id:"tooltip",_element:Tooltip,positioners,afterInit(_r,Fe,$r){$r&&(_r.tooltip=new Tooltip({chart:_r,options:$r}))},beforeUpdate(_r,Fe,$r){_r.tooltip&&_r.tooltip.initialize($r)},reset(_r,Fe,$r){_r.tooltip&&_r.tooltip.initialize($r)},afterDraw(_r){const Fe=_r.tooltip;if(Fe&&Fe._willRender()){const $r={tooltip:Fe};if(_r.notifyPlugins("beforeTooltipDraw",{...$r,cancelable:!0})===!1)return;Fe.draw(_r.ctx),_r.notifyPlugins("afterTooltipDraw",$r)}},afterEvent(_r,Fe){if(_r.tooltip){const $r=Fe.replay;_r.tooltip.handleEvent(Fe.event,$r,Fe.inChartArea)&&(Fe.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(_r,Fe)=>Fe.bodyFont.size,boxWidth:(_r,Fe)=>Fe.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:defaultCallbacks},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:_r=>_r!=="filter"&&_r!=="itemSort"&&_r!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const addIfString=(_r,Fe,$r,Fr)=>(typeof Fe=="string"?($r=_r.push(Fe)-1,Fr.unshift({index:$r,label:Fe})):isNaN(Fe)&&($r=null),$r);function findOrAddLabel(_r,Fe,$r,Fr){const jr=_r.indexOf(Fe);if(jr===-1)return addIfString(_r,Fe,$r,Fr);const zr=_r.lastIndexOf(Fe);return jr!==zr?$r:jr}const validIndex=(_r,Fe)=>_r===null?null:_limitValue(Math.round(_r),0,Fe);function _getLabelForValue(_r){const Fe=this.getLabels();return _r>=0&&_r<Fe.length?Fe[_r]:_r}class CategoryScale extends Scale{constructor(Fe){super(Fe),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(Fe){const $r=this._addedLabels;if($r.length){const Fr=this.getLabels();for(const{index:jr,label:zr}of $r)Fr[jr]===zr&&Fr.splice(jr,1);this._addedLabels=[]}super.init(Fe)}parse(Fe,$r){if(isNullOrUndef(Fe))return null;const Fr=this.getLabels();return $r=isFinite($r)&&Fr[$r]===Fe?$r:findOrAddLabel(Fr,Fe,valueOrDefault($r,Fe),this._addedLabels),validIndex($r,Fr.length-1)}determineDataLimits(){const{minDefined:Fe,maxDefined:$r}=this.getUserBounds();let{min:Fr,max:jr}=this.getMinMax(!0);this.options.bounds==="ticks"&&(Fe||(Fr=0),$r||(jr=this.getLabels().length-1)),this.min=Fr,this.max=jr}buildTicks(){const Fe=this.min,$r=this.max,Fr=this.options.offset,jr=[];let zr=this.getLabels();zr=Fe===0&&$r===zr.length-1?zr:zr.slice(Fe,$r+1),this._valueRange=Math.max(zr.length-(Fr?0:1),1),this._startValue=this.min-(Fr?.5:0);for(let Vr=Fe;Vr<=$r;Vr++)jr.push({value:Vr});return jr}getLabelForValue(Fe){return _getLabelForValue.call(this,Fe)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(Fe){return typeof Fe!="number"&&(Fe=this.parse(Fe)),Fe===null?NaN:this.getPixelForDecimal((Fe-this._startValue)/this._valueRange)}getPixelForTick(Fe){const $r=this.ticks;return Fe<0||Fe>$r.length-1?null:this.getPixelForValue($r[Fe].value)}getValueForPixel(Fe){return Math.round(this._startValue+this.getDecimalForPixel(Fe)*this._valueRange)}getBasePixel(){return this.bottom}}ei(CategoryScale,"id","category"),ei(CategoryScale,"defaults",{ticks:{callback:_getLabelForValue}});function generateTicks$1(_r,Fe){const $r=[],{bounds:jr,step:zr,min:Vr,max:Wr,precision:Kr,count:Gr,maxTicks:Yr,maxDigits:Qr,includeBounds:Jr}=_r,Zr=zr||1,tn=Yr-1,{min:en,max:rn}=Fe,nn=!isNullOrUndef(Vr),on=!isNullOrUndef(Wr),un=!isNullOrUndef(Gr),an=(rn-en)/(Qr+1);let sn=niceNum((rn-en)/tn/Zr)*Zr,dn,ln,cn,fn;if(sn<1e-14&&!nn&&!on)return[{value:en},{value:rn}];fn=Math.ceil(rn/sn)-Math.floor(en/sn),fn>tn&&(sn=niceNum(fn*sn/tn/Zr)*Zr),isNullOrUndef(Kr)||(dn=Math.pow(10,Kr),sn=Math.ceil(sn*dn)/dn),jr==="ticks"?(ln=Math.floor(en/sn)*sn,cn=Math.ceil(rn/sn)*sn):(ln=en,cn=rn),nn&&on&&zr&&almostWhole((Wr-Vr)/zr,sn/1e3)?(fn=Math.round(Math.min((Wr-Vr)/sn,Yr)),sn=(Wr-Vr)/fn,ln=Vr,cn=Wr):un?(ln=nn?Vr:ln,cn=on?Wr:cn,fn=Gr-1,sn=(cn-ln)/fn):(fn=(cn-ln)/sn,almostEquals(fn,Math.round(fn),sn/1e3)?fn=Math.round(fn):fn=Math.ceil(fn));const pn=Math.max(_decimalPlaces(sn),_decimalPlaces(ln));dn=Math.pow(10,isNullOrUndef(Kr)?pn:Kr),ln=Math.round(ln*dn)/dn,cn=Math.round(cn*dn)/dn;let hn=0;for(nn&&(Jr&&ln!==Vr?($r.push({value:Vr}),ln<Vr&&hn++,almostEquals(Math.round((ln+hn*sn)*dn)/dn,Vr,relativeLabelSize(Vr,an,_r))&&hn++):ln<Vr&&hn++);hn<fn;++hn){const mn=Math.round((ln+hn*sn)*dn)/dn;if(on&&mn>Wr)break;$r.push({value:mn})}return on&&Jr&&cn!==Wr?$r.length&&almostEquals($r[$r.length-1].value,Wr,relativeLabelSize(Wr,an,_r))?$r[$r.length-1].value=Wr:$r.push({value:Wr}):(!on||cn===Wr)&&$r.push({value:cn}),$r}function relativeLabelSize(_r,Fe,{horizontal:$r,minRotation:Fr}){const jr=toRadians(Fr),zr=($r?Math.sin(jr):Math.cos(jr))||.001,Vr=.75*Fe*(""+_r).length;return Math.min(Fe/zr,Vr)}class LinearScaleBase extends Scale{constructor(Fe){super(Fe),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(Fe,$r){return isNullOrUndef(Fe)||(typeof Fe=="number"||Fe instanceof Number)&&!isFinite(+Fe)?null:+Fe}handleTickRangeOptions(){const{beginAtZero:Fe}=this.options,{minDefined:$r,maxDefined:Fr}=this.getUserBounds();let{min:jr,max:zr}=this;const Vr=Kr=>jr=$r?jr:Kr,Wr=Kr=>zr=Fr?zr:Kr;if(Fe){const Kr=sign(jr),Gr=sign(zr);Kr<0&&Gr<0?Wr(0):Kr>0&&Gr>0&&Vr(0)}if(jr===zr){let Kr=zr===0?1:Math.abs(zr*.05);Wr(zr+Kr),Fe||Vr(jr-Kr)}this.min=jr,this.max=zr}getTickLimit(){const Fe=this.options.ticks;let{maxTicksLimit:$r,stepSize:Fr}=Fe,jr;return Fr?(jr=Math.ceil(this.max/Fr)-Math.floor(this.min/Fr)+1,jr>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${Fr} would result generating up to ${jr} ticks. Limiting to 1000.`),jr=1e3)):(jr=this.computeTickLimit(),$r=$r||11),$r&&(jr=Math.min($r,jr)),jr}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const Fe=this.options,$r=Fe.ticks;let Fr=this.getTickLimit();Fr=Math.max(2,Fr);const jr={maxTicks:Fr,bounds:Fe.bounds,min:Fe.min,max:Fe.max,precision:$r.precision,step:$r.stepSize,count:$r.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:$r.minRotation||0,includeBounds:$r.includeBounds!==!1},zr=this._range||this,Vr=generateTicks$1(jr,zr);return Fe.bounds==="ticks"&&_setMinAndMaxByKey(Vr,this,"value"),Fe.reverse?(Vr.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),Vr}configure(){const Fe=this.ticks;let $r=this.min,Fr=this.max;if(super.configure(),this.options.offset&&Fe.length){const jr=(Fr-$r)/Math.max(Fe.length-1,1)/2;$r-=jr,Fr+=jr}this._startValue=$r,this._endValue=Fr,this._valueRange=Fr-$r}getLabelForValue(Fe){return formatNumber(Fe,this.chart.options.locale,this.options.ticks.format)}}class LinearScale extends LinearScaleBase{determineDataLimits(){const{min:Fe,max:$r}=this.getMinMax(!0);this.min=isNumberFinite(Fe)?Fe:0,this.max=isNumberFinite($r)?$r:1,this.handleTickRangeOptions()}computeTickLimit(){const Fe=this.isHorizontal(),$r=Fe?this.width:this.height,Fr=toRadians(this.options.ticks.minRotation),jr=(Fe?Math.sin(Fr):Math.cos(Fr))||.001,zr=this._resolveTickFontOptions(0);return Math.ceil($r/Math.min(40,zr.lineHeight/jr))}getPixelForValue(Fe){return Fe===null?NaN:this.getPixelForDecimal((Fe-this._startValue)/this._valueRange)}getValueForPixel(Fe){return this._startValue+this.getDecimalForPixel(Fe)*this._valueRange}}ei(LinearScale,"id","linear"),ei(LinearScale,"defaults",{ticks:{callback:Ticks.formatters.numeric}});const log10Floor=_r=>Math.floor(log10(_r)),changeExponent=(_r,Fe)=>Math.pow(10,log10Floor(_r)+Fe);function isMajor(_r){return _r/Math.pow(10,log10Floor(_r))===1}function steps(_r,Fe,$r){const Fr=Math.pow(10,$r),jr=Math.floor(_r/Fr);return Math.ceil(Fe/Fr)-jr}function startExp(_r,Fe){const $r=Fe-_r;let Fr=log10Floor($r);for(;steps(_r,Fe,Fr)>10;)Fr++;for(;steps(_r,Fe,Fr)<10;)Fr--;return Math.min(Fr,log10Floor(_r))}function generateTicks(_r,{min:Fe,max:$r}){Fe=finiteOrDefault(_r.min,Fe);const Fr=[],jr=log10Floor(Fe);let zr=startExp(Fe,$r),Vr=zr<0?Math.pow(10,Math.abs(zr)):1;const Wr=Math.pow(10,zr),Kr=jr>zr?Math.pow(10,jr):0,Gr=Math.round((Fe-Kr)*Vr)/Vr,Yr=Math.floor((Fe-Kr)/Wr/10)*Wr*10;let Qr=Math.floor((Gr-Yr)/Math.pow(10,zr)),Jr=finiteOrDefault(_r.min,Math.round((Kr+Yr+Qr*Math.pow(10,zr))*Vr)/Vr);for(;Jr<$r;)Fr.push({value:Jr,major:isMajor(Jr),significand:Qr}),Qr>=10?Qr=Qr<15?15:20:Qr++,Qr>=20&&(zr++,Qr=2,Vr=zr>=0?1:Vr),Jr=Math.round((Kr+Yr+Qr*Math.pow(10,zr))*Vr)/Vr;const Zr=finiteOrDefault(_r.max,Jr);return Fr.push({value:Zr,major:isMajor(Zr),significand:Qr}),Fr}class LogarithmicScale extends Scale{constructor(Fe){super(Fe),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(Fe,$r){const Fr=LinearScaleBase.prototype.parse.apply(this,[Fe,$r]);if(Fr===0){this._zero=!0;return}return isNumberFinite(Fr)&&Fr>0?Fr:null}determineDataLimits(){const{min:Fe,max:$r}=this.getMinMax(!0);this.min=isNumberFinite(Fe)?Math.max(0,Fe):null,this.max=isNumberFinite($r)?Math.max(0,$r):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!isNumberFinite(this._userMin)&&(this.min=Fe===changeExponent(this.min,0)?changeExponent(this.min,-1):changeExponent(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:Fe,maxDefined:$r}=this.getUserBounds();let Fr=this.min,jr=this.max;const zr=Wr=>Fr=Fe?Fr:Wr,Vr=Wr=>jr=$r?jr:Wr;Fr===jr&&(Fr<=0?(zr(1),Vr(10)):(zr(changeExponent(Fr,-1)),Vr(changeExponent(jr,1)))),Fr<=0&&zr(changeExponent(jr,-1)),jr<=0&&Vr(changeExponent(Fr,1)),this.min=Fr,this.max=jr}buildTicks(){const Fe=this.options,$r={min:this._userMin,max:this._userMax},Fr=generateTicks($r,this);return Fe.bounds==="ticks"&&_setMinAndMaxByKey(Fr,this,"value"),Fe.reverse?(Fr.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),Fr}getLabelForValue(Fe){return Fe===void 0?"0":formatNumber(Fe,this.chart.options.locale,this.options.ticks.format)}configure(){const Fe=this.min;super.configure(),this._startValue=log10(Fe),this._valueRange=log10(this.max)-log10(Fe)}getPixelForValue(Fe){return(Fe===void 0||Fe===0)&&(Fe=this.min),Fe===null||isNaN(Fe)?NaN:this.getPixelForDecimal(Fe===this.min?0:(log10(Fe)-this._startValue)/this._valueRange)}getValueForPixel(Fe){const $r=this.getDecimalForPixel(Fe);return Math.pow(10,this._startValue+$r*this._valueRange)}}ei(LogarithmicScale,"id","logarithmic"),ei(LogarithmicScale,"defaults",{ticks:{callback:Ticks.formatters.logarithmic,major:{enabled:!0}}});function getTickBackdropHeight(_r){const Fe=_r.ticks;if(Fe.display&&_r.display){const $r=toPadding(Fe.backdropPadding);return valueOrDefault(Fe.font&&Fe.font.size,defaults.font.size)+$r.height}return 0}function measureLabelSize(_r,Fe,$r){return $r=isArray($r)?$r:[$r],{w:_longestText(_r,Fe.string,$r),h:$r.length*Fe.lineHeight}}function determineLimits(_r,Fe,$r,Fr,jr){return _r===Fr||_r===jr?{start:Fe-$r/2,end:Fe+$r/2}:_r<Fr||_r>jr?{start:Fe-$r,end:Fe}:{start:Fe,end:Fe+$r}}function fitWithPointLabels(_r){const Fe={l:_r.left+_r._padding.left,r:_r.right-_r._padding.right,t:_r.top+_r._padding.top,b:_r.bottom-_r._padding.bottom},$r=Object.assign({},Fe),Fr=[],jr=[],zr=_r._pointLabels.length,Vr=_r.options.pointLabels,Wr=Vr.centerPointLabels?PI/zr:0;for(let Kr=0;Kr<zr;Kr++){const Gr=Vr.setContext(_r.getPointLabelContext(Kr));jr[Kr]=Gr.padding;const Yr=_r.getPointPosition(Kr,_r.drawingArea+jr[Kr],Wr),Qr=toFont(Gr.font),Jr=measureLabelSize(_r.ctx,Qr,_r._pointLabels[Kr]);Fr[Kr]=Jr;const Zr=_normalizeAngle(_r.getIndexAngle(Kr)+Wr),tn=Math.round(toDegrees(Zr)),en=determineLimits(tn,Yr.x,Jr.w,0,180),rn=determineLimits(tn,Yr.y,Jr.h,90,270);updateLimits($r,Fe,Zr,en,rn)}_r.setCenterPoint(Fe.l-$r.l,$r.r-Fe.r,Fe.t-$r.t,$r.b-Fe.b),_r._pointLabelItems=buildPointLabelItems(_r,Fr,jr)}function updateLimits(_r,Fe,$r,Fr,jr){const zr=Math.abs(Math.sin($r)),Vr=Math.abs(Math.cos($r));let Wr=0,Kr=0;Fr.start<Fe.l?(Wr=(Fe.l-Fr.start)/zr,_r.l=Math.min(_r.l,Fe.l-Wr)):Fr.end>Fe.r&&(Wr=(Fr.end-Fe.r)/zr,_r.r=Math.max(_r.r,Fe.r+Wr)),jr.start<Fe.t?(Kr=(Fe.t-jr.start)/Vr,_r.t=Math.min(_r.t,Fe.t-Kr)):jr.end>Fe.b&&(Kr=(jr.end-Fe.b)/Vr,_r.b=Math.max(_r.b,Fe.b+Kr))}function createPointLabelItem(_r,Fe,$r){const Fr=_r.drawingArea,{extra:jr,additionalAngle:zr,padding:Vr,size:Wr}=$r,Kr=_r.getPointPosition(Fe,Fr+jr+Vr,zr),Gr=Math.round(toDegrees(_normalizeAngle(Kr.angle+HALF_PI))),Yr=yForAngle(Kr.y,Wr.h,Gr),Qr=getTextAlignForAngle(Gr),Jr=leftForTextAlign(Kr.x,Wr.w,Qr);return{visible:!0,x:Kr.x,y:Yr,textAlign:Qr,left:Jr,top:Yr,right:Jr+Wr.w,bottom:Yr+Wr.h}}function isNotOverlapped(_r,Fe){if(!Fe)return!0;const{left:$r,top:Fr,right:jr,bottom:zr}=_r;return!(_isPointInArea({x:$r,y:Fr},Fe)||_isPointInArea({x:$r,y:zr},Fe)||_isPointInArea({x:jr,y:Fr},Fe)||_isPointInArea({x:jr,y:zr},Fe))}function buildPointLabelItems(_r,Fe,$r){const Fr=[],jr=_r._pointLabels.length,zr=_r.options,{centerPointLabels:Vr,display:Wr}=zr.pointLabels,Kr={extra:getTickBackdropHeight(zr)/2,additionalAngle:Vr?PI/jr:0};let Gr;for(let Yr=0;Yr<jr;Yr++){Kr.padding=$r[Yr],Kr.size=Fe[Yr];const Qr=createPointLabelItem(_r,Yr,Kr);Fr.push(Qr),Wr==="auto"&&(Qr.visible=isNotOverlapped(Qr,Gr),Qr.visible&&(Gr=Qr))}return Fr}function getTextAlignForAngle(_r){return _r===0||_r===180?"center":_r<180?"left":"right"}function leftForTextAlign(_r,Fe,$r){return $r==="right"?_r-=Fe:$r==="center"&&(_r-=Fe/2),_r}function yForAngle(_r,Fe,$r){return $r===90||$r===270?_r-=Fe/2:($r>270||$r<90)&&(_r-=Fe),_r}function drawPointLabelBox(_r,Fe,$r){const{left:Fr,top:jr,right:zr,bottom:Vr}=$r,{backdropColor:Wr}=Fe;if(!isNullOrUndef(Wr)){const Kr=toTRBLCorners(Fe.borderRadius),Gr=toPadding(Fe.backdropPadding);_r.fillStyle=Wr;const Yr=Fr-Gr.left,Qr=jr-Gr.top,Jr=zr-Fr+Gr.width,Zr=Vr-jr+Gr.height;Object.values(Kr).some(tn=>tn!==0)?(_r.beginPath(),addRoundedRectPath(_r,{x:Yr,y:Qr,w:Jr,h:Zr,radius:Kr}),_r.fill()):_r.fillRect(Yr,Qr,Jr,Zr)}}function drawPointLabels(_r,Fe){const{ctx:$r,options:{pointLabels:Fr}}=_r;for(let jr=Fe-1;jr>=0;jr--){const zr=_r._pointLabelItems[jr];if(!zr.visible)continue;const Vr=Fr.setContext(_r.getPointLabelContext(jr));drawPointLabelBox($r,Vr,zr);const Wr=toFont(Vr.font),{x:Kr,y:Gr,textAlign:Yr}=zr;renderText($r,_r._pointLabels[jr],Kr,Gr+Wr.lineHeight/2,Wr,{color:Vr.color,textAlign:Yr,textBaseline:"middle"})}}function pathRadiusLine(_r,Fe,$r,Fr){const{ctx:jr}=_r;if($r)jr.arc(_r.xCenter,_r.yCenter,Fe,0,TAU);else{let zr=_r.getPointPosition(0,Fe);jr.moveTo(zr.x,zr.y);for(let Vr=1;Vr<Fr;Vr++)zr=_r.getPointPosition(Vr,Fe),jr.lineTo(zr.x,zr.y)}}function drawRadiusLine(_r,Fe,$r,Fr,jr){const zr=_r.ctx,Vr=Fe.circular,{color:Wr,lineWidth:Kr}=Fe;!Vr&&!Fr||!Wr||!Kr||$r<0||(zr.save(),zr.strokeStyle=Wr,zr.lineWidth=Kr,zr.setLineDash(jr.dash),zr.lineDashOffset=jr.dashOffset,zr.beginPath(),pathRadiusLine(_r,$r,Vr,Fr),zr.closePath(),zr.stroke(),zr.restore())}function createPointLabelContext(_r,Fe,$r){return createContext(_r,{label:$r,index:Fe,type:"pointLabel"})}class RadialLinearScale extends LinearScaleBase{constructor(Fe){super(Fe),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const Fe=this._padding=toPadding(getTickBackdropHeight(this.options)/2),$r=this.width=this.maxWidth-Fe.width,Fr=this.height=this.maxHeight-Fe.height;this.xCenter=Math.floor(this.left+$r/2+Fe.left),this.yCenter=Math.floor(this.top+Fr/2+Fe.top),this.drawingArea=Math.floor(Math.min($r,Fr)/2)}determineDataLimits(){const{min:Fe,max:$r}=this.getMinMax(!1);this.min=isNumberFinite(Fe)&&!isNaN(Fe)?Fe:0,this.max=isNumberFinite($r)&&!isNaN($r)?$r:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/getTickBackdropHeight(this.options))}generateTickLabels(Fe){LinearScaleBase.prototype.generateTickLabels.call(this,Fe),this._pointLabels=this.getLabels().map(($r,Fr)=>{const jr=callback(this.options.pointLabels.callback,[$r,Fr],this);return jr||jr===0?jr:""}).filter(($r,Fr)=>this.chart.getDataVisibility(Fr))}fit(){const Fe=this.options;Fe.display&&Fe.pointLabels.display?fitWithPointLabels(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(Fe,$r,Fr,jr){this.xCenter+=Math.floor((Fe-$r)/2),this.yCenter+=Math.floor((Fr-jr)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(Fe,$r,Fr,jr))}getIndexAngle(Fe){const $r=TAU/(this._pointLabels.length||1),Fr=this.options.startAngle||0;return _normalizeAngle(Fe*$r+toRadians(Fr))}getDistanceFromCenterForValue(Fe){if(isNullOrUndef(Fe))return NaN;const $r=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-Fe)*$r:(Fe-this.min)*$r}getValueForDistanceFromCenter(Fe){if(isNullOrUndef(Fe))return NaN;const $r=Fe/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-$r:this.min+$r}getPointLabelContext(Fe){const $r=this._pointLabels||[];if(Fe>=0&&Fe<$r.length){const Fr=$r[Fe];return createPointLabelContext(this.getContext(),Fe,Fr)}}getPointPosition(Fe,$r,Fr=0){const jr=this.getIndexAngle(Fe)-HALF_PI+Fr;return{x:Math.cos(jr)*$r+this.xCenter,y:Math.sin(jr)*$r+this.yCenter,angle:jr}}getPointPositionForValue(Fe,$r){return this.getPointPosition(Fe,this.getDistanceFromCenterForValue($r))}getBasePosition(Fe){return this.getPointPositionForValue(Fe||0,this.getBaseValue())}getPointLabelPosition(Fe){const{left:$r,top:Fr,right:jr,bottom:zr}=this._pointLabelItems[Fe];return{left:$r,top:Fr,right:jr,bottom:zr}}drawBackground(){const{backgroundColor:Fe,grid:{circular:$r}}=this.options;if(Fe){const Fr=this.ctx;Fr.save(),Fr.beginPath(),pathRadiusLine(this,this.getDistanceFromCenterForValue(this._endValue),$r,this._pointLabels.length),Fr.closePath(),Fr.fillStyle=Fe,Fr.fill(),Fr.restore()}}drawGrid(){const Fe=this.ctx,$r=this.options,{angleLines:Fr,grid:jr,border:zr}=$r,Vr=this._pointLabels.length;let Wr,Kr,Gr;if($r.pointLabels.display&&drawPointLabels(this,Vr),jr.display&&this.ticks.forEach((Yr,Qr)=>{if(Qr!==0){Kr=this.getDistanceFromCenterForValue(Yr.value);const Jr=this.getContext(Qr),Zr=jr.setContext(Jr),tn=zr.setContext(Jr);drawRadiusLine(this,Zr,Kr,Vr,tn)}}),Fr.display){for(Fe.save(),Wr=Vr-1;Wr>=0;Wr--){const Yr=Fr.setContext(this.getPointLabelContext(Wr)),{color:Qr,lineWidth:Jr}=Yr;!Jr||!Qr||(Fe.lineWidth=Jr,Fe.strokeStyle=Qr,Fe.setLineDash(Yr.borderDash),Fe.lineDashOffset=Yr.borderDashOffset,Kr=this.getDistanceFromCenterForValue($r.ticks.reverse?this.min:this.max),Gr=this.getPointPosition(Wr,Kr),Fe.beginPath(),Fe.moveTo(this.xCenter,this.yCenter),Fe.lineTo(Gr.x,Gr.y),Fe.stroke())}Fe.restore()}}drawBorder(){}drawLabels(){const Fe=this.ctx,$r=this.options,Fr=$r.ticks;if(!Fr.display)return;const jr=this.getIndexAngle(0);let zr,Vr;Fe.save(),Fe.translate(this.xCenter,this.yCenter),Fe.rotate(jr),Fe.textAlign="center",Fe.textBaseline="middle",this.ticks.forEach((Wr,Kr)=>{if(Kr===0&&!$r.reverse)return;const Gr=Fr.setContext(this.getContext(Kr)),Yr=toFont(Gr.font);if(zr=this.getDistanceFromCenterForValue(this.ticks[Kr].value),Gr.showLabelBackdrop){Fe.font=Yr.string,Vr=Fe.measureText(Wr.label).width,Fe.fillStyle=Gr.backdropColor;const Qr=toPadding(Gr.backdropPadding);Fe.fillRect(-Vr/2-Qr.left,-zr-Yr.size/2-Qr.top,Vr+Qr.width,Yr.size+Qr.height)}renderText(Fe,Wr.label,0,-zr,Yr,{color:Gr.color})}),Fe.restore()}drawTitle(){}}ei(RadialLinearScale,"id","radialLinear"),ei(RadialLinearScale,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Ticks.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(Fe){return Fe},padding:5,centerPointLabels:!1}}),ei(RadialLinearScale,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),ei(RadialLinearScale,"descriptors",{angleLines:{_fallback:"grid"}});const INTERVALS={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},UNITS=Object.keys(INTERVALS);function sorter(_r,Fe){return _r-Fe}function parse$1(_r,Fe){if(isNullOrUndef(Fe))return null;const $r=_r._adapter,{parser:Fr,round:jr,isoWeekday:zr}=_r._parseOpts;let Vr=Fe;return typeof Fr=="function"&&(Vr=Fr(Vr)),isNumberFinite(Vr)||(Vr=typeof Fr=="string"?$r.parse(Vr,Fr):$r.parse(Vr)),Vr===null?null:(jr&&(Vr=jr==="week"&&(isNumber$1(zr)||zr===!0)?$r.startOf(Vr,"isoWeek",zr):$r.startOf(Vr,jr)),+Vr)}function determineUnitForAutoTicks(_r,Fe,$r,Fr){const jr=UNITS.length;for(let zr=UNITS.indexOf(_r);zr<jr-1;++zr){const Vr=INTERVALS[UNITS[zr]],Wr=Vr.steps?Vr.steps:Number.MAX_SAFE_INTEGER;if(Vr.common&&Math.ceil(($r-Fe)/(Wr*Vr.size))<=Fr)return UNITS[zr]}return UNITS[jr-1]}function determineUnitForFormatting(_r,Fe,$r,Fr,jr){for(let zr=UNITS.length-1;zr>=UNITS.indexOf($r);zr--){const Vr=UNITS[zr];if(INTERVALS[Vr].common&&_r._adapter.diff(jr,Fr,Vr)>=Fe-1)return Vr}return UNITS[$r?UNITS.indexOf($r):0]}function determineMajorUnit(_r){for(let Fe=UNITS.indexOf(_r)+1,$r=UNITS.length;Fe<$r;++Fe)if(INTERVALS[UNITS[Fe]].common)return UNITS[Fe]}function addTick(_r,Fe,$r){if(!$r)_r[Fe]=!0;else if($r.length){const{lo:Fr,hi:jr}=_lookup($r,Fe),zr=$r[Fr]>=Fe?$r[Fr]:$r[jr];_r[zr]=!0}}function setMajorTicks(_r,Fe,$r,Fr){const jr=_r._adapter,zr=+jr.startOf(Fe[0].value,Fr),Vr=Fe[Fe.length-1].value;let Wr,Kr;for(Wr=zr;Wr<=Vr;Wr=+jr.add(Wr,1,Fr))Kr=$r[Wr],Kr>=0&&(Fe[Kr].major=!0);return Fe}function ticksFromTimestamps(_r,Fe,$r){const Fr=[],jr={},zr=Fe.length;let Vr,Wr;for(Vr=0;Vr<zr;++Vr)Wr=Fe[Vr],jr[Wr]=Vr,Fr.push({value:Wr,major:!1});return zr===0||!$r?Fr:setMajorTicks(_r,Fr,jr,$r)}class TimeScale extends Scale{constructor(Fe){super(Fe),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(Fe,$r={}){const Fr=Fe.time||(Fe.time={}),jr=this._adapter=new adapters._date(Fe.adapters.date);jr.init($r),mergeIf(Fr.displayFormats,jr.formats()),this._parseOpts={parser:Fr.parser,round:Fr.round,isoWeekday:Fr.isoWeekday},super.init(Fe),this._normalized=$r.normalized}parse(Fe,$r){return Fe===void 0?null:parse$1(this,Fe)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const Fe=this.options,$r=this._adapter,Fr=Fe.time.unit||"day";let{min:jr,max:zr,minDefined:Vr,maxDefined:Wr}=this.getUserBounds();function Kr(Gr){!Vr&&!isNaN(Gr.min)&&(jr=Math.min(jr,Gr.min)),!Wr&&!isNaN(Gr.max)&&(zr=Math.max(zr,Gr.max))}(!Vr||!Wr)&&(Kr(this._getLabelBounds()),(Fe.bounds!=="ticks"||Fe.ticks.source!=="labels")&&Kr(this.getMinMax(!1))),jr=isNumberFinite(jr)&&!isNaN(jr)?jr:+$r.startOf(Date.now(),Fr),zr=isNumberFinite(zr)&&!isNaN(zr)?zr:+$r.endOf(Date.now(),Fr)+1,this.min=Math.min(jr,zr-1),this.max=Math.max(jr+1,zr)}_getLabelBounds(){const Fe=this.getLabelTimestamps();let $r=Number.POSITIVE_INFINITY,Fr=Number.NEGATIVE_INFINITY;return Fe.length&&($r=Fe[0],Fr=Fe[Fe.length-1]),{min:$r,max:Fr}}buildTicks(){const Fe=this.options,$r=Fe.time,Fr=Fe.ticks,jr=Fr.source==="labels"?this.getLabelTimestamps():this._generate();Fe.bounds==="ticks"&&jr.length&&(this.min=this._userMin||jr[0],this.max=this._userMax||jr[jr.length-1]);const zr=this.min,Vr=this.max,Wr=_filterBetween(jr,zr,Vr);return this._unit=$r.unit||(Fr.autoSkip?determineUnitForAutoTicks($r.minUnit,this.min,this.max,this._getLabelCapacity(zr)):determineUnitForFormatting(this,Wr.length,$r.minUnit,this.min,this.max)),this._majorUnit=!Fr.major.enabled||this._unit==="year"?void 0:determineMajorUnit(this._unit),this.initOffsets(jr),Fe.reverse&&Wr.reverse(),ticksFromTimestamps(this,Wr,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(Fe=>+Fe.value))}initOffsets(Fe=[]){let $r=0,Fr=0,jr,zr;this.options.offset&&Fe.length&&(jr=this.getDecimalForValue(Fe[0]),Fe.length===1?$r=1-jr:$r=(this.getDecimalForValue(Fe[1])-jr)/2,zr=this.getDecimalForValue(Fe[Fe.length-1]),Fe.length===1?Fr=zr:Fr=(zr-this.getDecimalForValue(Fe[Fe.length-2]))/2);const Vr=Fe.length<3?.5:.25;$r=_limitValue($r,0,Vr),Fr=_limitValue(Fr,0,Vr),this._offsets={start:$r,end:Fr,factor:1/($r+1+Fr)}}_generate(){const Fe=this._adapter,$r=this.min,Fr=this.max,jr=this.options,zr=jr.time,Vr=zr.unit||determineUnitForAutoTicks(zr.minUnit,$r,Fr,this._getLabelCapacity($r)),Wr=valueOrDefault(jr.ticks.stepSize,1),Kr=Vr==="week"?zr.isoWeekday:!1,Gr=isNumber$1(Kr)||Kr===!0,Yr={};let Qr=$r,Jr,Zr;if(Gr&&(Qr=+Fe.startOf(Qr,"isoWeek",Kr)),Qr=+Fe.startOf(Qr,Gr?"day":Vr),Fe.diff(Fr,$r,Vr)>1e5*Wr)throw new Error($r+" and "+Fr+" are too far apart with stepSize of "+Wr+" "+Vr);const tn=jr.ticks.source==="data"&&this.getDataTimestamps();for(Jr=Qr,Zr=0;Jr<Fr;Jr=+Fe.add(Jr,Wr,Vr),Zr++)addTick(Yr,Jr,tn);return(Jr===Fr||jr.bounds==="ticks"||Zr===1)&&addTick(Yr,Jr,tn),Object.keys(Yr).sort((en,rn)=>en-rn).map(en=>+en)}getLabelForValue(Fe){const $r=this._adapter,Fr=this.options.time;return Fr.tooltipFormat?$r.format(Fe,Fr.tooltipFormat):$r.format(Fe,Fr.displayFormats.datetime)}format(Fe,$r){const jr=this.options.time.displayFormats,zr=this._unit,Vr=$r||jr[zr];return this._adapter.format(Fe,Vr)}_tickFormatFunction(Fe,$r,Fr,jr){const zr=this.options,Vr=zr.ticks.callback;if(Vr)return callback(Vr,[Fe,$r,Fr],this);const Wr=zr.time.displayFormats,Kr=this._unit,Gr=this._majorUnit,Yr=Kr&&Wr[Kr],Qr=Gr&&Wr[Gr],Jr=Fr[$r],Zr=Gr&&Qr&&Jr&&Jr.major;return this._adapter.format(Fe,jr||(Zr?Qr:Yr))}generateTickLabels(Fe){let $r,Fr,jr;for($r=0,Fr=Fe.length;$r<Fr;++$r)jr=Fe[$r],jr.label=this._tickFormatFunction(jr.value,$r,Fe)}getDecimalForValue(Fe){return Fe===null?NaN:(Fe-this.min)/(this.max-this.min)}getPixelForValue(Fe){const $r=this._offsets,Fr=this.getDecimalForValue(Fe);return this.getPixelForDecimal(($r.start+Fr)*$r.factor)}getValueForPixel(Fe){const $r=this._offsets,Fr=this.getDecimalForPixel(Fe)/$r.factor-$r.end;return this.min+Fr*(this.max-this.min)}_getLabelSize(Fe){const $r=this.options.ticks,Fr=this.ctx.measureText(Fe).width,jr=toRadians(this.isHorizontal()?$r.maxRotation:$r.minRotation),zr=Math.cos(jr),Vr=Math.sin(jr),Wr=this._resolveTickFontOptions(0).size;return{w:Fr*zr+Wr*Vr,h:Fr*Vr+Wr*zr}}_getLabelCapacity(Fe){const $r=this.options.time,Fr=$r.displayFormats,jr=Fr[$r.unit]||Fr.millisecond,zr=this._tickFormatFunction(Fe,0,ticksFromTimestamps(this,[Fe],this._majorUnit),jr),Vr=this._getLabelSize(zr),Wr=Math.floor(this.isHorizontal()?this.width/Vr.w:this.height/Vr.h)-1;return Wr>0?Wr:1}getDataTimestamps(){let Fe=this._cache.data||[],$r,Fr;if(Fe.length)return Fe;const jr=this.getMatchingVisibleMetas();if(this._normalized&&jr.length)return this._cache.data=jr[0].controller.getAllParsedValues(this);for($r=0,Fr=jr.length;$r<Fr;++$r)Fe=Fe.concat(jr[$r].controller.getAllParsedValues(this));return this._cache.data=this.normalize(Fe)}getLabelTimestamps(){const Fe=this._cache.labels||[];let $r,Fr;if(Fe.length)return Fe;const jr=this.getLabels();for($r=0,Fr=jr.length;$r<Fr;++$r)Fe.push(parse$1(this,jr[$r]));return this._cache.labels=this._normalized?Fe:this.normalize(Fe)}normalize(Fe){return _arrayUnique(Fe.sort(sorter))}}ei(TimeScale,"id","time"),ei(TimeScale,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function interpolate(_r,Fe,$r){let Fr=0,jr=_r.length-1,zr,Vr,Wr,Kr;$r?(Fe>=_r[Fr].pos&&Fe<=_r[jr].pos&&({lo:Fr,hi:jr}=_lookupByKey(_r,"pos",Fe)),{pos:zr,time:Wr}=_r[Fr],{pos:Vr,time:Kr}=_r[jr]):(Fe>=_r[Fr].time&&Fe<=_r[jr].time&&({lo:Fr,hi:jr}=_lookupByKey(_r,"time",Fe)),{time:zr,pos:Wr}=_r[Fr],{time:Vr,pos:Kr}=_r[jr]);const Gr=Vr-zr;return Gr?Wr+(Kr-Wr)*(Fe-zr)/Gr:Wr}class TimeSeriesScale extends TimeScale{constructor(Fe){super(Fe),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const Fe=this._getTimestampsForTable(),$r=this._table=this.buildLookupTable(Fe);this._minPos=interpolate($r,this.min),this._tableRange=interpolate($r,this.max)-this._minPos,super.initOffsets(Fe)}buildLookupTable(Fe){const{min:$r,max:Fr}=this,jr=[],zr=[];let Vr,Wr,Kr,Gr,Yr;for(Vr=0,Wr=Fe.length;Vr<Wr;++Vr)Gr=Fe[Vr],Gr>=$r&&Gr<=Fr&&jr.push(Gr);if(jr.length<2)return[{time:$r,pos:0},{time:Fr,pos:1}];for(Vr=0,Wr=jr.length;Vr<Wr;++Vr)Yr=jr[Vr+1],Kr=jr[Vr-1],Gr=jr[Vr],Math.round((Yr+Kr)/2)!==Gr&&zr.push({time:Gr,pos:Vr/(Wr-1)});return zr}_getTimestampsForTable(){let Fe=this._cache.all||[];if(Fe.length)return Fe;const $r=this.getDataTimestamps(),Fr=this.getLabelTimestamps();return $r.length&&Fr.length?Fe=this.normalize($r.concat(Fr)):Fe=$r.length?$r:Fr,Fe=this._cache.all=Fe,Fe}getDecimalForValue(Fe){return(interpolate(this._table,Fe)-this._minPos)/this._tableRange}getValueForPixel(Fe){const $r=this._offsets,Fr=this.getDecimalForPixel(Fe)/$r.factor-$r.end;return interpolate(this._table,Fr*this._tableRange+this._minPos,!0)}}ei(TimeSeriesScale,"id","timeseries"),ei(TimeSeriesScale,"defaults",TimeScale.defaults);const CommonProps={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},Props={type:{type:String,required:!0},...CommonProps},compatProps=version$4[0]==="2"?(_r,Fe)=>Object.assign(_r,{attrs:Fe}):(_r,Fe)=>Object.assign(_r,Fe);function toRawIfProxy(_r){return isProxy(_r)?toRaw(_r):_r}function cloneProxy(_r){let Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_r;return isProxy(Fe)?new Proxy(_r,{}):_r}function setOptions(_r,Fe){const $r=_r.options;$r&&Fe&&Object.assign($r,Fe)}function setLabels(_r,Fe){_r.labels=Fe}function setDatasets(_r,Fe,$r){const Fr=[];_r.datasets=Fe.map(jr=>{const zr=_r.datasets.find(Vr=>Vr[$r]===jr[$r]);return!zr||!jr.data||Fr.includes(zr)?{...jr}:(Fr.push(zr),Object.assign(zr,jr),zr)})}function cloneData(_r,Fe){const $r={labels:[],datasets:[]};return setLabels($r,_r.labels),setDatasets($r,_r.datasets,Fe),$r}const Chart=defineComponent({props:Props,setup(_r,Fe){let{expose:$r}=Fe;const Fr=ref(null),jr=shallowRef(null);$r({chart:jr});const zr=()=>{if(!Fr.value)return;const{type:Kr,data:Gr,options:Yr,plugins:Qr,datasetIdKey:Jr}=_r,Zr=cloneData(Gr,Jr),tn=cloneProxy(Zr,Gr);jr.value=new Chart$1(Fr.value,{type:Kr,data:tn,options:{...Yr},plugins:Qr})},Vr=()=>{const Kr=toRaw(jr.value);Kr&&(Kr.destroy(),jr.value=null)},Wr=Kr=>{Kr.update(_r.updateMode)};return onMounted(zr),onBeforeUnmount(Vr),watch([()=>_r.options,()=>_r.data],(Kr,Gr)=>{let[Yr,Qr]=Kr,[Jr,Zr]=Gr;const tn=toRaw(jr.value);if(!tn)return;let en=!1;if(Yr){const rn=toRawIfProxy(Yr),nn=toRawIfProxy(Jr);rn&&rn!==nn&&(setOptions(tn,rn),en=!0)}if(Qr){const rn=toRawIfProxy(Qr.labels),nn=toRawIfProxy(Zr.labels),on=toRawIfProxy(Qr.datasets),un=toRawIfProxy(Zr.datasets);rn!==nn&&(setLabels(tn.config.data,rn),en=!0),on&&on!==un&&(setDatasets(tn.config.data,on,_r.datasetIdKey),en=!0)}en&&Wr(tn)},{deep:!0}),()=>h$1("canvas",{ref:Fr})}});function createTypedChart(_r,Fe){return Chart$1.register(Fe),defineComponent({props:CommonProps,setup($r,Fr){let{expose:jr}=Fr;const zr=shallowRef(null),Vr=Wr=>{zr.value=Wr==null?void 0:Wr.chart};return jr({chart:zr}),()=>h$1(Chart,compatProps({ref:Vr},{type:_r,...$r}))}})}const Line=createTypedChart("line",LineController);class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(Fe){super(`Invalid DateTime: ${Fe.toMessage()}`)}}class InvalidIntervalError extends LuxonError{constructor(Fe){super(`Invalid Interval: ${Fe.toMessage()}`)}}class InvalidDurationError extends LuxonError{constructor(Fe){super(`Invalid Duration: ${Fe.toMessage()}`)}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(Fe){super(`Invalid unit ${Fe}`)}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super("Zone is an abstract class")}}const n="numeric",s="short",l="long",DATE_SHORT={year:n,month:n,day:n},DATE_MED={year:n,month:s,day:n},DATE_MED_WITH_WEEKDAY={year:n,month:s,day:n,weekday:s},DATE_FULL={year:n,month:l,day:n},DATE_HUGE={year:n,month:l,day:n,weekday:l},TIME_SIMPLE={hour:n,minute:n},TIME_WITH_SECONDS={hour:n,minute:n,second:n},TIME_WITH_SHORT_OFFSET={hour:n,minute:n,second:n,timeZoneName:s},TIME_WITH_LONG_OFFSET={hour:n,minute:n,second:n,timeZoneName:l},TIME_24_SIMPLE={hour:n,minute:n,hourCycle:"h23"},TIME_24_WITH_SECONDS={hour:n,minute:n,second:n,hourCycle:"h23"},TIME_24_WITH_SHORT_OFFSET={hour:n,minute:n,second:n,hourCycle:"h23",timeZoneName:s},TIME_24_WITH_LONG_OFFSET={hour:n,minute:n,second:n,hourCycle:"h23",timeZoneName:l},DATETIME_SHORT={year:n,month:n,day:n,hour:n,minute:n},DATETIME_SHORT_WITH_SECONDS={year:n,month:n,day:n,hour:n,minute:n,second:n},DATETIME_MED={year:n,month:s,day:n,hour:n,minute:n},DATETIME_MED_WITH_SECONDS={year:n,month:s,day:n,hour:n,minute:n,second:n},DATETIME_MED_WITH_WEEKDAY={year:n,month:s,day:n,weekday:s,hour:n,minute:n},DATETIME_FULL={year:n,month:l,day:n,hour:n,minute:n,timeZoneName:s},DATETIME_FULL_WITH_SECONDS={year:n,month:l,day:n,hour:n,minute:n,second:n,timeZoneName:s},DATETIME_HUGE={year:n,month:l,day:n,weekday:l,hour:n,minute:n,timeZoneName:l},DATETIME_HUGE_WITH_SECONDS={year:n,month:l,day:n,weekday:l,hour:n,minute:n,second:n,timeZoneName:l};class Zone{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(Fe,$r){throw new ZoneIsAbstractError}formatOffset(Fe,$r){throw new ZoneIsAbstractError}offset(Fe){throw new ZoneIsAbstractError}equals(Fe){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}}let singleton$1=null;class SystemZone extends Zone{static get instance(){return singleton$1===null&&(singleton$1=new SystemZone),singleton$1}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(Fe,{format:$r,locale:Fr}){return parseZoneInfo(Fe,$r,Fr)}formatOffset(Fe,$r){return formatOffset(this.offset(Fe),$r)}offset(Fe){return-new Date(Fe).getTimezoneOffset()}equals(Fe){return Fe.type==="system"}get isValid(){return!0}}let dtfCache={};function makeDTF(_r){return dtfCache[_r]||(dtfCache[_r]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:_r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),dtfCache[_r]}const typeToPos={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(_r,Fe){const $r=_r.format(Fe).replace(/\u200E/g,""),Fr=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec($r),[,jr,zr,Vr,Wr,Kr,Gr,Yr]=Fr;return[Vr,jr,zr,Wr,Kr,Gr,Yr]}function partsOffset(_r,Fe){const $r=_r.formatToParts(Fe),Fr=[];for(let jr=0;jr<$r.length;jr++){const{type:zr,value:Vr}=$r[jr],Wr=typeToPos[zr];zr==="era"?Fr[Wr]=Vr:isUndefined(Wr)||(Fr[Wr]=parseInt(Vr,10))}return Fr}let ianaZoneCache={};class IANAZone extends Zone{static create(Fe){return ianaZoneCache[Fe]||(ianaZoneCache[Fe]=new IANAZone(Fe)),ianaZoneCache[Fe]}static resetCache(){ianaZoneCache={},dtfCache={}}static isValidSpecifier(Fe){return this.isValidZone(Fe)}static isValidZone(Fe){if(!Fe)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:Fe}).format(),!0}catch{return!1}}constructor(Fe){super(),this.zoneName=Fe,this.valid=IANAZone.isValidZone(Fe)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(Fe,{format:$r,locale:Fr}){return parseZoneInfo(Fe,$r,Fr,this.name)}formatOffset(Fe,$r){return formatOffset(this.offset(Fe),$r)}offset(Fe){const $r=new Date(Fe);if(isNaN($r))return NaN;const Fr=makeDTF(this.name);let[jr,zr,Vr,Wr,Kr,Gr,Yr]=Fr.formatToParts?partsOffset(Fr,$r):hackyOffset(Fr,$r);Wr==="BC"&&(jr=-Math.abs(jr)+1);const Jr=objToLocalTS({year:jr,month:zr,day:Vr,hour:Kr===24?0:Kr,minute:Gr,second:Yr,millisecond:0});let Zr=+$r;const tn=Zr%1e3;return Zr-=tn>=0?tn:1e3+tn,(Jr-Zr)/(60*1e3)}equals(Fe){return Fe.type==="iana"&&Fe.name===this.name}get isValid(){return this.valid}}let intlLFCache={};function getCachedLF(_r,Fe={}){const $r=JSON.stringify([_r,Fe]);let Fr=intlLFCache[$r];return Fr||(Fr=new Intl.ListFormat(_r,Fe),intlLFCache[$r]=Fr),Fr}let intlDTCache={};function getCachedDTF(_r,Fe={}){const $r=JSON.stringify([_r,Fe]);let Fr=intlDTCache[$r];return Fr||(Fr=new Intl.DateTimeFormat(_r,Fe),intlDTCache[$r]=Fr),Fr}let intlNumCache={};function getCachedINF(_r,Fe={}){const $r=JSON.stringify([_r,Fe]);let Fr=intlNumCache[$r];return Fr||(Fr=new Intl.NumberFormat(_r,Fe),intlNumCache[$r]=Fr),Fr}let intlRelCache={};function getCachedRTF(_r,Fe={}){const{base:$r,...Fr}=Fe,jr=JSON.stringify([_r,Fr]);let zr=intlRelCache[jr];return zr||(zr=new Intl.RelativeTimeFormat(_r,Fe),intlRelCache[jr]=zr),zr}let sysLocaleCache=null;function systemLocale(){return sysLocaleCache||(sysLocaleCache=new Intl.DateTimeFormat().resolvedOptions().locale,sysLocaleCache)}function parseLocaleString(_r){const Fe=_r.indexOf("-x-");Fe!==-1&&(_r=_r.substring(0,Fe));const $r=_r.indexOf("-u-");if($r===-1)return[_r];{let Fr,jr;try{Fr=getCachedDTF(_r).resolvedOptions(),jr=_r}catch{const Kr=_r.substring(0,$r);Fr=getCachedDTF(Kr).resolvedOptions(),jr=Kr}const{numberingSystem:zr,calendar:Vr}=Fr;return[jr,zr,Vr]}}function intlConfigString(_r,Fe,$r){return($r||Fe)&&(_r.includes("-u-")||(_r+="-u"),$r&&(_r+=`-ca-${$r}`),Fe&&(_r+=`-nu-${Fe}`)),_r}function mapMonths(_r){const Fe=[];for(let $r=1;$r<=12;$r++){const Fr=DateTime.utc(2016,$r,1);Fe.push(_r(Fr))}return Fe}function mapWeekdays(_r){const Fe=[];for(let $r=1;$r<=7;$r++){const Fr=DateTime.utc(2016,11,13+$r);Fe.push(_r(Fr))}return Fe}function listStuff(_r,Fe,$r,Fr,jr){const zr=_r.listingMode($r);return zr==="error"?null:zr==="en"?Fr(Fe):jr(Fe)}function supportsFastNumbers(_r){return _r.numberingSystem&&_r.numberingSystem!=="latn"?!1:_r.numberingSystem==="latn"||!_r.locale||_r.locale.startsWith("en")||new Intl.DateTimeFormat(_r.intl).resolvedOptions().numberingSystem==="latn"}class PolyNumberFormatter{constructor(Fe,$r,Fr){this.padTo=Fr.padTo||0,this.floor=Fr.floor||!1;const{padTo:jr,floor:zr,...Vr}=Fr;if(!$r||Object.keys(Vr).length>0){const Wr={useGrouping:!1,...Fr};Fr.padTo>0&&(Wr.minimumIntegerDigits=Fr.padTo),this.inf=getCachedINF(Fe,Wr)}}format(Fe){if(this.inf){const $r=this.floor?Math.floor(Fe):Fe;return this.inf.format($r)}else{const $r=this.floor?Math.floor(Fe):roundTo(Fe,3);return padStart($r,this.padTo)}}}class PolyDateFormatter{constructor(Fe,$r,Fr){this.opts=Fr,this.originalZone=void 0;let jr;if(this.opts.timeZone)this.dt=Fe;else if(Fe.zone.type==="fixed"){const Vr=-1*(Fe.offset/60),Wr=Vr>=0?`Etc/GMT+${Vr}`:`Etc/GMT${Vr}`;Fe.offset!==0&&IANAZone.create(Wr).valid?(jr=Wr,this.dt=Fe):(jr="UTC",this.dt=Fe.offset===0?Fe:Fe.setZone("UTC").plus({minutes:Fe.offset}),this.originalZone=Fe.zone)}else Fe.zone.type==="system"?this.dt=Fe:Fe.zone.type==="iana"?(this.dt=Fe,jr=Fe.zone.name):(jr="UTC",this.dt=Fe.setZone("UTC").plus({minutes:Fe.offset}),this.originalZone=Fe.zone);const zr={...this.opts};zr.timeZone=zr.timeZone||jr,this.dtf=getCachedDTF($r,zr)}format(){return this.originalZone?this.formatToParts().map(({value:Fe})=>Fe).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const Fe=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?Fe.map($r=>{if($r.type==="timeZoneName"){const Fr=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...$r,value:Fr}}else return $r}):Fe}resolvedOptions(){return this.dtf.resolvedOptions()}}class PolyRelFormatter{constructor(Fe,$r,Fr){this.opts={style:"long",...Fr},!$r&&hasRelative()&&(this.rtf=getCachedRTF(Fe,Fr))}format(Fe,$r){return this.rtf?this.rtf.format(Fe,$r):formatRelativeTime($r,Fe,this.opts.numeric,this.opts.style!=="long")}formatToParts(Fe,$r){return this.rtf?this.rtf.formatToParts(Fe,$r):[]}}class Locale{static fromOpts(Fe){return Locale.create(Fe.locale,Fe.numberingSystem,Fe.outputCalendar,Fe.defaultToEN)}static create(Fe,$r,Fr,jr=!1){const zr=Fe||Settings.defaultLocale,Vr=zr||(jr?"en-US":systemLocale()),Wr=$r||Settings.defaultNumberingSystem,Kr=Fr||Settings.defaultOutputCalendar;return new Locale(Vr,Wr,Kr,zr)}static resetCache(){sysLocaleCache=null,intlDTCache={},intlNumCache={},intlRelCache={}}static fromObject({locale:Fe,numberingSystem:$r,outputCalendar:Fr}={}){return Locale.create(Fe,$r,Fr)}constructor(Fe,$r,Fr,jr){const[zr,Vr,Wr]=parseLocaleString(Fe);this.locale=zr,this.numberingSystem=$r||Vr||null,this.outputCalendar=Fr||Wr||null,this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=jr,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=supportsFastNumbers(this)),this.fastNumbersCached}listingMode(){const Fe=this.isEnglish(),$r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return Fe&&$r?"en":"intl"}clone(Fe){return!Fe||Object.getOwnPropertyNames(Fe).length===0?this:Locale.create(Fe.locale||this.specifiedLocale,Fe.numberingSystem||this.numberingSystem,Fe.outputCalendar||this.outputCalendar,Fe.defaultToEN||!1)}redefaultToEN(Fe={}){return this.clone({...Fe,defaultToEN:!0})}redefaultToSystem(Fe={}){return this.clone({...Fe,defaultToEN:!1})}months(Fe,$r=!1,Fr=!0){return listStuff(this,Fe,Fr,months,()=>{const jr=$r?{month:Fe,day:"numeric"}:{month:Fe},zr=$r?"format":"standalone";return this.monthsCache[zr][Fe]||(this.monthsCache[zr][Fe]=mapMonths(Vr=>this.extract(Vr,jr,"month"))),this.monthsCache[zr][Fe]})}weekdays(Fe,$r=!1,Fr=!0){return listStuff(this,Fe,Fr,weekdays,()=>{const jr=$r?{weekday:Fe,year:"numeric",month:"long",day:"numeric"}:{weekday:Fe},zr=$r?"format":"standalone";return this.weekdaysCache[zr][Fe]||(this.weekdaysCache[zr][Fe]=mapWeekdays(Vr=>this.extract(Vr,jr,"weekday"))),this.weekdaysCache[zr][Fe]})}meridiems(Fe=!0){return listStuff(this,void 0,Fe,()=>meridiems,()=>{if(!this.meridiemCache){const $r={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map(Fr=>this.extract(Fr,$r,"dayperiod"))}return this.meridiemCache})}eras(Fe,$r=!0){return listStuff(this,Fe,$r,eras,()=>{const Fr={era:Fe};return this.eraCache[Fe]||(this.eraCache[Fe]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map(jr=>this.extract(jr,Fr,"era"))),this.eraCache[Fe]})}extract(Fe,$r,Fr){const jr=this.dtFormatter(Fe,$r),zr=jr.formatToParts(),Vr=zr.find(Wr=>Wr.type.toLowerCase()===Fr);return Vr?Vr.value:null}numberFormatter(Fe={}){return new PolyNumberFormatter(this.intl,Fe.forceSimple||this.fastNumbers,Fe)}dtFormatter(Fe,$r={}){return new PolyDateFormatter(Fe,this.intl,$r)}relFormatter(Fe={}){return new PolyRelFormatter(this.intl,this.isEnglish(),Fe)}listFormatter(Fe={}){return getCachedLF(this.intl,Fe)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(Fe){return this.locale===Fe.locale&&this.numberingSystem===Fe.numberingSystem&&this.outputCalendar===Fe.outputCalendar}}let singleton=null;class FixedOffsetZone extends Zone{static get utcInstance(){return singleton===null&&(singleton=new FixedOffsetZone(0)),singleton}static instance(Fe){return Fe===0?FixedOffsetZone.utcInstance:new FixedOffsetZone(Fe)}static parseSpecifier(Fe){if(Fe){const $r=Fe.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if($r)return new FixedOffsetZone(signedOffset($r[1],$r[2]))}return null}constructor(Fe){super(),this.fixed=Fe}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${formatOffset(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(Fe,$r){return formatOffset(this.fixed,$r)}get isUniversal(){return!0}offset(){return this.fixed}equals(Fe){return Fe.type==="fixed"&&Fe.fixed===this.fixed}get isValid(){return!0}}class InvalidZone extends Zone{constructor(Fe){super(),this.zoneName=Fe}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function normalizeZone(_r,Fe){if(isUndefined(_r)||_r===null)return Fe;if(_r instanceof Zone)return _r;if(isString(_r)){const $r=_r.toLowerCase();return $r==="default"?Fe:$r==="local"||$r==="system"?SystemZone.instance:$r==="utc"||$r==="gmt"?FixedOffsetZone.utcInstance:FixedOffsetZone.parseSpecifier($r)||IANAZone.create(_r)}else return isNumber(_r)?FixedOffsetZone.instance(_r):typeof _r=="object"&&_r.offset&&typeof _r.offset=="number"?_r:new InvalidZone(_r)}let now=()=>Date.now(),defaultZone="system",defaultLocale=null,defaultNumberingSystem=null,defaultOutputCalendar=null,twoDigitCutoffYear=60,throwOnInvalid;class Settings{static get now(){return now}static set now(Fe){now=Fe}static set defaultZone(Fe){defaultZone=Fe}static get defaultZone(){return normalizeZone(defaultZone,SystemZone.instance)}static get defaultLocale(){return defaultLocale}static set defaultLocale(Fe){defaultLocale=Fe}static get defaultNumberingSystem(){return defaultNumberingSystem}static set defaultNumberingSystem(Fe){defaultNumberingSystem=Fe}static get defaultOutputCalendar(){return defaultOutputCalendar}static set defaultOutputCalendar(Fe){defaultOutputCalendar=Fe}static get twoDigitCutoffYear(){return twoDigitCutoffYear}static set twoDigitCutoffYear(Fe){twoDigitCutoffYear=Fe%100}static get throwOnInvalid(){return throwOnInvalid}static set throwOnInvalid(Fe){throwOnInvalid=Fe}static resetCaches(){Locale.resetCache(),IANAZone.resetCache()}}function isUndefined(_r){return typeof _r=="undefined"}function isNumber(_r){return typeof _r=="number"}function isInteger(_r){return typeof _r=="number"&&_r%1===0}function isString(_r){return typeof _r=="string"}function isDate(_r){return Object.prototype.toString.call(_r)==="[object Date]"}function hasRelative(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch{return!1}}function maybeArray(_r){return Array.isArray(_r)?_r:[_r]}function bestBy(_r,Fe,$r){if(_r.length!==0)return _r.reduce((Fr,jr)=>{const zr=[Fe(jr),jr];return Fr&&$r(Fr[0],zr[0])===Fr[0]?Fr:zr},null)[1]}function pick(_r,Fe){return Fe.reduce(($r,Fr)=>($r[Fr]=_r[Fr],$r),{})}function hasOwnProperty(_r,Fe){return Object.prototype.hasOwnProperty.call(_r,Fe)}function integerBetween(_r,Fe,$r){return isInteger(_r)&&_r>=Fe&&_r<=$r}function floorMod(_r,Fe){return _r-Fe*Math.floor(_r/Fe)}function padStart(_r,Fe=2){const $r=_r<0;let Fr;return $r?Fr="-"+(""+-_r).padStart(Fe,"0"):Fr=(""+_r).padStart(Fe,"0"),Fr}function parseInteger(_r){if(!(isUndefined(_r)||_r===null||_r===""))return parseInt(_r,10)}function parseFloating(_r){if(!(isUndefined(_r)||_r===null||_r===""))return parseFloat(_r)}function parseMillis(_r){if(!(isUndefined(_r)||_r===null||_r==="")){const Fe=parseFloat("0."+_r)*1e3;return Math.floor(Fe)}}function roundTo(_r,Fe,$r=!1){const Fr=10**Fe;return($r?Math.trunc:Math.round)(_r*Fr)/Fr}function isLeapYear(_r){return _r%4===0&&(_r%100!==0||_r%400===0)}function daysInYear(_r){return isLeapYear(_r)?366:365}function daysInMonth(_r,Fe){const $r=floorMod(Fe-1,12)+1,Fr=_r+(Fe-$r)/12;return $r===2?isLeapYear(Fr)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][$r-1]}function objToLocalTS(_r){let Fe=Date.UTC(_r.year,_r.month-1,_r.day,_r.hour,_r.minute,_r.second,_r.millisecond);return _r.year<100&&_r.year>=0&&(Fe=new Date(Fe),Fe.setUTCFullYear(_r.year,_r.month-1,_r.day)),+Fe}function weeksInWeekYear(_r){const Fe=(_r+Math.floor(_r/4)-Math.floor(_r/100)+Math.floor(_r/400))%7,$r=_r-1,Fr=($r+Math.floor($r/4)-Math.floor($r/100)+Math.floor($r/400))%7;return Fe===4||Fr===3?53:52}function untruncateYear(_r){return _r>99?_r:_r>Settings.twoDigitCutoffYear?1900+_r:2e3+_r}function parseZoneInfo(_r,Fe,$r,Fr=null){const jr=new Date(_r),zr={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};Fr&&(zr.timeZone=Fr);const Vr={timeZoneName:Fe,...zr},Wr=new Intl.DateTimeFormat($r,Vr).formatToParts(jr).find(Kr=>Kr.type.toLowerCase()==="timezonename");return Wr?Wr.value:null}function signedOffset(_r,Fe){let $r=parseInt(_r,10);Number.isNaN($r)&&($r=0);const Fr=parseInt(Fe,10)||0,jr=$r<0||Object.is($r,-0)?-Fr:Fr;return $r*60+jr}function asNumber(_r){const Fe=Number(_r);if(typeof _r=="boolean"||_r===""||Number.isNaN(Fe))throw new InvalidArgumentError(`Invalid unit value ${_r}`);return Fe}function normalizeObject(_r,Fe){const $r={};for(const Fr in _r)if(hasOwnProperty(_r,Fr)){const jr=_r[Fr];if(jr==null)continue;$r[Fe(Fr)]=asNumber(jr)}return $r}function formatOffset(_r,Fe){const $r=Math.trunc(Math.abs(_r/60)),Fr=Math.trunc(Math.abs(_r%60)),jr=_r>=0?"+":"-";switch(Fe){case"short":return`${jr}${padStart($r,2)}:${padStart(Fr,2)}`;case"narrow":return`${jr}${$r}${Fr>0?`:${Fr}`:""}`;case"techie":return`${jr}${padStart($r,2)}${padStart(Fr,2)}`;default:throw new RangeError(`Value format ${Fe} is out of range for property format`)}}function timeObject(_r){return pick(_r,["hour","minute","second","millisecond"])}const monthsLong=["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthsNarrow=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(_r){switch(_r){case"narrow":return[...monthsNarrow];case"short":return[...monthsShort];case"long":return[...monthsLong];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const weekdaysLong=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],weekdaysShort=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],weekdaysNarrow=["M","T","W","T","F","S","S"];function weekdays(_r){switch(_r){case"narrow":return[...weekdaysNarrow];case"short":return[...weekdaysShort];case"long":return[...weekdaysLong];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const meridiems=["AM","PM"],erasLong=["Before Christ","Anno Domini"],erasShort=["BC","AD"],erasNarrow=["B","A"];function eras(_r){switch(_r){case"narrow":return[...erasNarrow];case"short":return[...erasShort];case"long":return[...erasLong];default:return null}}function meridiemForDateTime(_r){return meridiems[_r.hour<12?0:1]}function weekdayForDateTime(_r,Fe){return weekdays(Fe)[_r.weekday-1]}function monthForDateTime(_r,Fe){return months(Fe)[_r.month-1]}function eraForDateTime(_r,Fe){return eras(Fe)[_r.year<0?0:1]}function formatRelativeTime(_r,Fe,$r="always",Fr=!1){const jr={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},zr=["hours","minutes","seconds"].indexOf(_r)===-1;if($r==="auto"&&zr){const Qr=_r==="days";switch(Fe){case 1:return Qr?"tomorrow":`next ${jr[_r][0]}`;case-1:return Qr?"yesterday":`last ${jr[_r][0]}`;case 0:return Qr?"today":`this ${jr[_r][0]}`}}const Vr=Object.is(Fe,-0)||Fe<0,Wr=Math.abs(Fe),Kr=Wr===1,Gr=jr[_r],Yr=Fr?Kr?Gr[1]:Gr[2]||Gr[1]:Kr?jr[_r][0]:_r;return Vr?`${Wr} ${Yr} ago`:`in ${Wr} ${Yr}`}function stringifyTokens(_r,Fe){let $r="";for(const Fr of _r)Fr.literal?$r+=Fr.val:$r+=Fe(Fr.val);return $r}const macroTokenToFormatOpts={D:DATE_SHORT,DD:DATE_MED,DDD:DATE_FULL,DDDD:DATE_HUGE,t:TIME_SIMPLE,tt:TIME_WITH_SECONDS,ttt:TIME_WITH_SHORT_OFFSET,tttt:TIME_WITH_LONG_OFFSET,T:TIME_24_SIMPLE,TT:TIME_24_WITH_SECONDS,TTT:TIME_24_WITH_SHORT_OFFSET,TTTT:TIME_24_WITH_LONG_OFFSET,f:DATETIME_SHORT,ff:DATETIME_MED,fff:DATETIME_FULL,ffff:DATETIME_HUGE,F:DATETIME_SHORT_WITH_SECONDS,FF:DATETIME_MED_WITH_SECONDS,FFF:DATETIME_FULL_WITH_SECONDS,FFFF:DATETIME_HUGE_WITH_SECONDS};class Formatter{static create(Fe,$r={}){return new Formatter(Fe,$r)}static parseFormat(Fe){let $r=null,Fr="",jr=!1;const zr=[];for(let Vr=0;Vr<Fe.length;Vr++){const Wr=Fe.charAt(Vr);Wr==="'"?(Fr.length>0&&zr.push({literal:jr||/^\s+$/.test(Fr),val:Fr}),$r=null,Fr="",jr=!jr):jr||Wr===$r?Fr+=Wr:(Fr.length>0&&zr.push({literal:/^\s+$/.test(Fr),val:Fr}),Fr=Wr,$r=Wr)}return Fr.length>0&&zr.push({literal:jr||/^\s+$/.test(Fr),val:Fr}),zr}static macroTokenToFormatOpts(Fe){return macroTokenToFormatOpts[Fe]}constructor(Fe,$r){this.opts=$r,this.loc=Fe,this.systemLoc=null}formatWithSystemDefault(Fe,$r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(Fe,{...this.opts,...$r}).format()}formatDateTime(Fe,$r={}){return this.loc.dtFormatter(Fe,{...this.opts,...$r}).format()}formatDateTimeParts(Fe,$r={}){return this.loc.dtFormatter(Fe,{...this.opts,...$r}).formatToParts()}formatInterval(Fe,$r={}){return this.loc.dtFormatter(Fe.start,{...this.opts,...$r}).dtf.formatRange(Fe.start.toJSDate(),Fe.end.toJSDate())}resolvedOptions(Fe,$r={}){return this.loc.dtFormatter(Fe,{...this.opts,...$r}).resolvedOptions()}num(Fe,$r=0){if(this.opts.forceSimple)return padStart(Fe,$r);const Fr={...this.opts};return $r>0&&(Fr.padTo=$r),this.loc.numberFormatter(Fr).format(Fe)}formatDateTimeFromString(Fe,$r){const Fr=this.loc.listingMode()==="en",jr=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",zr=(Zr,tn)=>this.loc.extract(Fe,Zr,tn),Vr=Zr=>Fe.isOffsetFixed&&Fe.offset===0&&Zr.allowZ?"Z":Fe.isValid?Fe.zone.formatOffset(Fe.ts,Zr.format):"",Wr=()=>Fr?meridiemForDateTime(Fe):zr({hour:"numeric",hourCycle:"h12"},"dayperiod"),Kr=(Zr,tn)=>Fr?monthForDateTime(Fe,Zr):zr(tn?{month:Zr}:{month:Zr,day:"numeric"},"month"),Gr=(Zr,tn)=>Fr?weekdayForDateTime(Fe,Zr):zr(tn?{weekday:Zr}:{weekday:Zr,month:"long",day:"numeric"},"weekday"),Yr=Zr=>{const tn=Formatter.macroTokenToFormatOpts(Zr);return tn?this.formatWithSystemDefault(Fe,tn):Zr},Qr=Zr=>Fr?eraForDateTime(Fe,Zr):zr({era:Zr},"era"),Jr=Zr=>{switch(Zr){case"S":return this.num(Fe.millisecond);case"u":case"SSS":return this.num(Fe.millisecond,3);case"s":return this.num(Fe.second);case"ss":return this.num(Fe.second,2);case"uu":return this.num(Math.floor(Fe.millisecond/10),2);case"uuu":return this.num(Math.floor(Fe.millisecond/100));case"m":return this.num(Fe.minute);case"mm":return this.num(Fe.minute,2);case"h":return this.num(Fe.hour%12===0?12:Fe.hour%12);case"hh":return this.num(Fe.hour%12===0?12:Fe.hour%12,2);case"H":return this.num(Fe.hour);case"HH":return this.num(Fe.hour,2);case"Z":return Vr({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return Vr({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return Vr({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return Fe.zone.offsetName(Fe.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return Fe.zone.offsetName(Fe.ts,{format:"long",locale:this.loc.locale});case"z":return Fe.zoneName;case"a":return Wr();case"d":return jr?zr({day:"numeric"},"day"):this.num(Fe.day);case"dd":return jr?zr({day:"2-digit"},"day"):this.num(Fe.day,2);case"c":return this.num(Fe.weekday);case"ccc":return Gr("short",!0);case"cccc":return Gr("long",!0);case"ccccc":return Gr("narrow",!0);case"E":return this.num(Fe.weekday);case"EEE":return Gr("short",!1);case"EEEE":return Gr("long",!1);case"EEEEE":return Gr("narrow",!1);case"L":return jr?zr({month:"numeric",day:"numeric"},"month"):this.num(Fe.month);case"LL":return jr?zr({month:"2-digit",day:"numeric"},"month"):this.num(Fe.month,2);case"LLL":return Kr("short",!0);case"LLLL":return Kr("long",!0);case"LLLLL":return Kr("narrow",!0);case"M":return jr?zr({month:"numeric"},"month"):this.num(Fe.month);case"MM":return jr?zr({month:"2-digit"},"month"):this.num(Fe.month,2);case"MMM":return Kr("short",!1);case"MMMM":return Kr("long",!1);case"MMMMM":return Kr("narrow",!1);case"y":return jr?zr({year:"numeric"},"year"):this.num(Fe.year);case"yy":return jr?zr({year:"2-digit"},"year"):this.num(Fe.year.toString().slice(-2),2);case"yyyy":return jr?zr({year:"numeric"},"year"):this.num(Fe.year,4);case"yyyyyy":return jr?zr({year:"numeric"},"year"):this.num(Fe.year,6);case"G":return Qr("short");case"GG":return Qr("long");case"GGGGG":return Qr("narrow");case"kk":return this.num(Fe.weekYear.toString().slice(-2),2);case"kkkk":return this.num(Fe.weekYear,4);case"W":return this.num(Fe.weekNumber);case"WW":return this.num(Fe.weekNumber,2);case"o":return this.num(Fe.ordinal);case"ooo":return this.num(Fe.ordinal,3);case"q":return this.num(Fe.quarter);case"qq":return this.num(Fe.quarter,2);case"X":return this.num(Math.floor(Fe.ts/1e3));case"x":return this.num(Fe.ts);default:return Yr(Zr)}};return stringifyTokens(Formatter.parseFormat($r),Jr)}formatDurationFromString(Fe,$r){const Fr=Kr=>{switch(Kr[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},jr=Kr=>Gr=>{const Yr=Fr(Gr);return Yr?this.num(Kr.get(Yr),Gr.length):Gr},zr=Formatter.parseFormat($r),Vr=zr.reduce((Kr,{literal:Gr,val:Yr})=>Gr?Kr:Kr.concat(Yr),[]),Wr=Fe.shiftTo(...Vr.map(Fr).filter(Kr=>Kr));return stringifyTokens(zr,jr(Wr))}}class Invalid{constructor(Fe,$r){this.reason=Fe,this.explanation=$r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const ianaRegex=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(..._r){const Fe=_r.reduce(($r,Fr)=>$r+Fr.source,"");return RegExp(`^${Fe}$`)}function combineExtractors(..._r){return Fe=>_r.reduce(([$r,Fr,jr],zr)=>{const[Vr,Wr,Kr]=zr(Fe,jr);return[{...$r,...Vr},Wr||Fr,Kr]},[{},null,1]).slice(0,2)}function parse(_r,...Fe){if(_r==null)return[null,null];for(const[$r,Fr]of Fe){const jr=$r.exec(_r);if(jr)return Fr(jr)}return[null,null]}function simpleParse(..._r){return(Fe,$r)=>{const Fr={};let jr;for(jr=0;jr<_r.length;jr++)Fr[_r[jr]]=parseInteger(Fe[$r+jr]);return[Fr,null,$r+jr]}}const offsetRegex=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,isoExtendedZone=`(?:${offsetRegex.source}?(?:\\[(${ianaRegex.source})\\])?)?`,isoTimeBaseRegex=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,isoTimeRegex=RegExp(`${isoTimeBaseRegex.source}${isoExtendedZone}`),isoTimeExtensionRegex=RegExp(`(?:T${isoTimeRegex.source})?`),isoYmdRegex=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,isoWeekRegex=/(\d{4})-?W(\d\d)(?:-?(\d))?/,isoOrdinalRegex=/(\d{4})-?(\d{3})/,extractISOWeekData=simpleParse("weekYear","weekNumber","weekDay"),extractISOOrdinalData=simpleParse("year","ordinal"),sqlYmdRegex=/(\d{4})-(\d\d)-(\d\d)/,sqlTimeRegex=RegExp(`${isoTimeBaseRegex.source} ?(?:${offsetRegex.source}|(${ianaRegex.source}))?`),sqlTimeExtensionRegex=RegExp(`(?: ${sqlTimeRegex.source})?`);function int(_r,Fe,$r){const Fr=_r[Fe];return isUndefined(Fr)?$r:parseInteger(Fr)}function extractISOYmd(_r,Fe){return[{year:int(_r,Fe),month:int(_r,Fe+1,1),day:int(_r,Fe+2,1)},null,Fe+3]}function extractISOTime(_r,Fe){return[{hours:int(_r,Fe,0),minutes:int(_r,Fe+1,0),seconds:int(_r,Fe+2,0),milliseconds:parseMillis(_r[Fe+3])},null,Fe+4]}function extractISOOffset(_r,Fe){const $r=!_r[Fe]&&!_r[Fe+1],Fr=signedOffset(_r[Fe+1],_r[Fe+2]),jr=$r?null:FixedOffsetZone.instance(Fr);return[{},jr,Fe+3]}function extractIANAZone(_r,Fe){const $r=_r[Fe]?IANAZone.create(_r[Fe]):null;return[{},$r,Fe+1]}const isoTimeOnly=RegExp(`^T?${isoTimeBaseRegex.source}$`),isoDuration=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function extractISODuration(_r){const[Fe,$r,Fr,jr,zr,Vr,Wr,Kr,Gr]=_r,Yr=Fe[0]==="-",Qr=Kr&&Kr[0]==="-",Jr=(Zr,tn=!1)=>Zr!==void 0&&(tn||Zr&&Yr)?-Zr:Zr;return[{years:Jr(parseFloating($r)),months:Jr(parseFloating(Fr)),weeks:Jr(parseFloating(jr)),days:Jr(parseFloating(zr)),hours:Jr(parseFloating(Vr)),minutes:Jr(parseFloating(Wr)),seconds:Jr(parseFloating(Kr),Kr==="-0"),milliseconds:Jr(parseMillis(Gr),Qr)}]}const obsOffsets={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fromStrings(_r,Fe,$r,Fr,jr,zr,Vr){const Wr={year:Fe.length===2?untruncateYear(parseInteger(Fe)):parseInteger(Fe),month:monthsShort.indexOf($r)+1,day:parseInteger(Fr),hour:parseInteger(jr),minute:parseInteger(zr)};return Vr&&(Wr.second=parseInteger(Vr)),_r&&(Wr.weekday=_r.length>3?weekdaysLong.indexOf(_r)+1:weekdaysShort.indexOf(_r)+1),Wr}const rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(_r){const[,Fe,$r,Fr,jr,zr,Vr,Wr,Kr,Gr,Yr,Qr]=_r,Jr=fromStrings(Fe,jr,Fr,$r,zr,Vr,Wr);let Zr;return Kr?Zr=obsOffsets[Kr]:Gr?Zr=0:Zr=signedOffset(Yr,Qr),[Jr,new FixedOffsetZone(Zr)]}function preprocessRFC2822(_r){return _r.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const rfc1123=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,rfc850=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,ascii=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(_r){const[,Fe,$r,Fr,jr,zr,Vr,Wr]=_r;return[fromStrings(Fe,jr,Fr,$r,zr,Vr,Wr),FixedOffsetZone.utcInstance]}function extractASCII(_r){const[,Fe,$r,Fr,jr,zr,Vr,Wr]=_r;return[fromStrings(Fe,Wr,$r,Fr,jr,zr,Vr),FixedOffsetZone.utcInstance]}const isoYmdWithTimeExtensionRegex=combineRegexes(isoYmdRegex,isoTimeExtensionRegex),isoWeekWithTimeExtensionRegex=combineRegexes(isoWeekRegex,isoTimeExtensionRegex),isoOrdinalWithTimeExtensionRegex=combineRegexes(isoOrdinalRegex,isoTimeExtensionRegex),isoTimeCombinedRegex=combineRegexes(isoTimeRegex),extractISOYmdTimeAndOffset=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone),extractISOWeekTimeAndOffset=combineExtractors(extractISOWeekData,extractISOTime,extractISOOffset,extractIANAZone),extractISOOrdinalDateAndTime=combineExtractors(extractISOOrdinalData,extractISOTime,extractISOOffset,extractIANAZone),extractISOTimeAndOffset=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(_r){return parse(_r,[isoYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[isoWeekWithTimeExtensionRegex,extractISOWeekTimeAndOffset],[isoOrdinalWithTimeExtensionRegex,extractISOOrdinalDateAndTime],[isoTimeCombinedRegex,extractISOTimeAndOffset])}function parseRFC2822Date(_r){return parse(preprocessRFC2822(_r),[rfc2822,extractRFC2822])}function parseHTTPDate(_r){return parse(_r,[rfc1123,extractRFC1123Or850],[rfc850,extractRFC1123Or850],[ascii,extractASCII])}function parseISODuration(_r){return parse(_r,[isoDuration,extractISODuration])}const extractISOTimeOnly=combineExtractors(extractISOTime);function parseISOTimeOnly(_r){return parse(_r,[isoTimeOnly,extractISOTimeOnly])}const sqlYmdWithTimeExtensionRegex=combineRegexes(sqlYmdRegex,sqlTimeExtensionRegex),sqlTimeCombinedRegex=combineRegexes(sqlTimeRegex),extractISOTimeOffsetAndIANAZone=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(_r){return parse(_r,[sqlYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[sqlTimeCombinedRegex,extractISOTimeOffsetAndIANAZone])}const INVALID$2="Invalid Duration",lowOrderMatrix={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},casualMatrix={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...lowOrderMatrix},daysInYearAccurate=146097/400,daysInMonthAccurate=146097/4800,accurateMatrix={years:{quarters:4,months:12,weeks:daysInYearAccurate/7,days:daysInYearAccurate,hours:daysInYearAccurate*24,minutes:daysInYearAccurate*24*60,seconds:daysInYearAccurate*24*60*60,milliseconds:daysInYearAccurate*24*60*60*1e3},quarters:{months:3,weeks:daysInYearAccurate/28,days:daysInYearAccurate/4,hours:daysInYearAccurate*24/4,minutes:daysInYearAccurate*24*60/4,seconds:daysInYearAccurate*24*60*60/4,milliseconds:daysInYearAccurate*24*60*60*1e3/4},months:{weeks:daysInMonthAccurate/7,days:daysInMonthAccurate,hours:daysInMonthAccurate*24,minutes:daysInMonthAccurate*24*60,seconds:daysInMonthAccurate*24*60*60,milliseconds:daysInMonthAccurate*24*60*60*1e3},...lowOrderMatrix},orderedUnits$1=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],reverseUnits=orderedUnits$1.slice(0).reverse();function clone$1(_r,Fe,$r=!1){const Fr={values:$r?Fe.values:{..._r.values,...Fe.values||{}},loc:_r.loc.clone(Fe.loc),conversionAccuracy:Fe.conversionAccuracy||_r.conversionAccuracy,matrix:Fe.matrix||_r.matrix};return new Duration(Fr)}function antiTrunc(_r){return _r<0?Math.floor(_r):Math.ceil(_r)}function convert(_r,Fe,$r,Fr,jr){const zr=_r[jr][$r],Vr=Fe[$r]/zr,Wr=Math.sign(Vr)===Math.sign(Fr[jr]),Kr=!Wr&&Fr[jr]!==0&&Math.abs(Vr)<=1?antiTrunc(Vr):Math.trunc(Vr);Fr[jr]+=Kr,Fe[$r]-=Kr*zr}function normalizeValues(_r,Fe){reverseUnits.reduce(($r,Fr)=>isUndefined(Fe[Fr])?$r:($r&&convert(_r,Fe,$r,Fe,Fr),Fr),null)}function removeZeroes(_r){const Fe={};for(const[$r,Fr]of Object.entries(_r))Fr!==0&&(Fe[$r]=Fr);return Fe}class Duration{constructor(Fe){const $r=Fe.conversionAccuracy==="longterm"||!1;let Fr=$r?accurateMatrix:casualMatrix;Fe.matrix&&(Fr=Fe.matrix),this.values=Fe.values,this.loc=Fe.loc||Locale.create(),this.conversionAccuracy=$r?"longterm":"casual",this.invalid=Fe.invalid||null,this.matrix=Fr,this.isLuxonDuration=!0}static fromMillis(Fe,$r){return Duration.fromObject({milliseconds:Fe},$r)}static fromObject(Fe,$r={}){if(Fe==null||typeof Fe!="object")throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${Fe===null?"null":typeof Fe}`);return new Duration({values:normalizeObject(Fe,Duration.normalizeUnit),loc:Locale.fromObject($r),conversionAccuracy:$r.conversionAccuracy,matrix:$r.matrix})}static fromDurationLike(Fe){if(isNumber(Fe))return Duration.fromMillis(Fe);if(Duration.isDuration(Fe))return Fe;if(typeof Fe=="object")return Duration.fromObject(Fe);throw new InvalidArgumentError(`Unknown duration argument ${Fe} of type ${typeof Fe}`)}static fromISO(Fe,$r){const[Fr]=parseISODuration(Fe);return Fr?Duration.fromObject(Fr,$r):Duration.invalid("unparsable",`the input "${Fe}" can't be parsed as ISO 8601`)}static fromISOTime(Fe,$r){const[Fr]=parseISOTimeOnly(Fe);return Fr?Duration.fromObject(Fr,$r):Duration.invalid("unparsable",`the input "${Fe}" can't be parsed as ISO 8601`)}static invalid(Fe,$r=null){if(!Fe)throw new InvalidArgumentError("need to specify a reason the Duration is invalid");const Fr=Fe instanceof Invalid?Fe:new Invalid(Fe,$r);if(Settings.throwOnInvalid)throw new InvalidDurationError(Fr);return new Duration({invalid:Fr})}static normalizeUnit(Fe){const $r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[Fe&&Fe.toLowerCase()];if(!$r)throw new InvalidUnitError(Fe);return $r}static isDuration(Fe){return Fe&&Fe.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(Fe,$r={}){const Fr={...$r,floor:$r.round!==!1&&$r.floor!==!1};return this.isValid?Formatter.create(this.loc,Fr).formatDurationFromString(this,Fe):INVALID$2}toHuman(Fe={}){const $r=orderedUnits$1.map(Fr=>{const jr=this.values[Fr];return isUndefined(jr)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...Fe,unit:Fr.slice(0,-1)}).format(jr)}).filter(Fr=>Fr);return this.loc.listFormatter({type:"conjunction",style:Fe.listStyle||"narrow",...Fe}).format($r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let Fe="P";return this.years!==0&&(Fe+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(Fe+=this.months+this.quarters*3+"M"),this.weeks!==0&&(Fe+=this.weeks+"W"),this.days!==0&&(Fe+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(Fe+="T"),this.hours!==0&&(Fe+=this.hours+"H"),this.minutes!==0&&(Fe+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(Fe+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S"),Fe==="P"&&(Fe+="T0S"),Fe}toISOTime(Fe={}){if(!this.isValid)return null;const $r=this.toMillis();if($r<0||$r>=864e5)return null;Fe={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...Fe};const Fr=this.shiftTo("hours","minutes","seconds","milliseconds");let jr=Fe.format==="basic"?"hhmm":"hh:mm";(!Fe.suppressSeconds||Fr.seconds!==0||Fr.milliseconds!==0)&&(jr+=Fe.format==="basic"?"ss":":ss",(!Fe.suppressMilliseconds||Fr.milliseconds!==0)&&(jr+=".SSS"));let zr=Fr.toFormat(jr);return Fe.includePrefix&&(zr="T"+zr),zr}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(Fe){if(!this.isValid)return this;const $r=Duration.fromDurationLike(Fe),Fr={};for(const jr of orderedUnits$1)(hasOwnProperty($r.values,jr)||hasOwnProperty(this.values,jr))&&(Fr[jr]=$r.get(jr)+this.get(jr));return clone$1(this,{values:Fr},!0)}minus(Fe){if(!this.isValid)return this;const $r=Duration.fromDurationLike(Fe);return this.plus($r.negate())}mapUnits(Fe){if(!this.isValid)return this;const $r={};for(const Fr of Object.keys(this.values))$r[Fr]=asNumber(Fe(this.values[Fr],Fr));return clone$1(this,{values:$r},!0)}get(Fe){return this[Duration.normalizeUnit(Fe)]}set(Fe){if(!this.isValid)return this;const $r={...this.values,...normalizeObject(Fe,Duration.normalizeUnit)};return clone$1(this,{values:$r})}reconfigure({locale:Fe,numberingSystem:$r,conversionAccuracy:Fr,matrix:jr}={}){const Vr={loc:this.loc.clone({locale:Fe,numberingSystem:$r}),matrix:jr,conversionAccuracy:Fr};return clone$1(this,Vr)}as(Fe){return this.isValid?this.shiftTo(Fe).get(Fe):NaN}normalize(){if(!this.isValid)return this;const Fe=this.toObject();return normalizeValues(this.matrix,Fe),clone$1(this,{values:Fe},!0)}rescale(){if(!this.isValid)return this;const Fe=removeZeroes(this.normalize().shiftToAll().toObject());return clone$1(this,{values:Fe},!0)}shiftTo(...Fe){if(!this.isValid)return this;if(Fe.length===0)return this;Fe=Fe.map(Vr=>Duration.normalizeUnit(Vr));const $r={},Fr={},jr=this.toObject();let zr;for(const Vr of orderedUnits$1)if(Fe.indexOf(Vr)>=0){zr=Vr;let Wr=0;for(const Gr in Fr)Wr+=this.matrix[Gr][Vr]*Fr[Gr],Fr[Gr]=0;isNumber(jr[Vr])&&(Wr+=jr[Vr]);const Kr=Math.trunc(Wr);$r[Vr]=Kr,Fr[Vr]=(Wr*1e3-Kr*1e3)/1e3;for(const Gr in jr)orderedUnits$1.indexOf(Gr)>orderedUnits$1.indexOf(Vr)&&convert(this.matrix,jr,Gr,$r,Vr)}else isNumber(jr[Vr])&&(Fr[Vr]=jr[Vr]);for(const Vr in Fr)Fr[Vr]!==0&&($r[zr]+=Vr===zr?Fr[Vr]:Fr[Vr]/this.matrix[zr][Vr]);return clone$1(this,{values:$r},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const Fe={};for(const $r of Object.keys(this.values))Fe[$r]=this.values[$r]===0?0:-this.values[$r];return clone$1(this,{values:Fe},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(Fe){if(!this.isValid||!Fe.isValid||!this.loc.equals(Fe.loc))return!1;function $r(Fr,jr){return Fr===void 0||Fr===0?jr===void 0||jr===0:Fr===jr}for(const Fr of orderedUnits$1)if(!$r(this.values[Fr],Fe.values[Fr]))return!1;return!0}}const INVALID$1="Invalid Interval";function validateStartEnd(_r,Fe){return!_r||!_r.isValid?Interval.invalid("missing or invalid start"):!Fe||!Fe.isValid?Interval.invalid("missing or invalid end"):Fe<_r?Interval.invalid("end before start",`The end of an interval must be after its start, but you had start=${_r.toISO()} and end=${Fe.toISO()}`):null}class Interval{constructor(Fe){this.s=Fe.start,this.e=Fe.end,this.invalid=Fe.invalid||null,this.isLuxonInterval=!0}static invalid(Fe,$r=null){if(!Fe)throw new InvalidArgumentError("need to specify a reason the Interval is invalid");const Fr=Fe instanceof Invalid?Fe:new Invalid(Fe,$r);if(Settings.throwOnInvalid)throw new InvalidIntervalError(Fr);return new Interval({invalid:Fr})}static fromDateTimes(Fe,$r){const Fr=friendlyDateTime(Fe),jr=friendlyDateTime($r),zr=validateStartEnd(Fr,jr);return zr==null?new Interval({start:Fr,end:jr}):zr}static after(Fe,$r){const Fr=Duration.fromDurationLike($r),jr=friendlyDateTime(Fe);return Interval.fromDateTimes(jr,jr.plus(Fr))}static before(Fe,$r){const Fr=Duration.fromDurationLike($r),jr=friendlyDateTime(Fe);return Interval.fromDateTimes(jr.minus(Fr),jr)}static fromISO(Fe,$r){const[Fr,jr]=(Fe||"").split("/",2);if(Fr&&jr){let zr,Vr;try{zr=DateTime.fromISO(Fr,$r),Vr=zr.isValid}catch{Vr=!1}let Wr,Kr;try{Wr=DateTime.fromISO(jr,$r),Kr=Wr.isValid}catch{Kr=!1}if(Vr&&Kr)return Interval.fromDateTimes(zr,Wr);if(Vr){const Gr=Duration.fromISO(jr,$r);if(Gr.isValid)return Interval.after(zr,Gr)}else if(Kr){const Gr=Duration.fromISO(Fr,$r);if(Gr.isValid)return Interval.before(Wr,Gr)}}return Interval.invalid("unparsable",`the input "${Fe}" can't be parsed as ISO 8601`)}static isInterval(Fe){return Fe&&Fe.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(Fe="milliseconds"){return this.isValid?this.toDuration(Fe).get(Fe):NaN}count(Fe="milliseconds"){if(!this.isValid)return NaN;const $r=this.start.startOf(Fe),Fr=this.end.startOf(Fe);return Math.floor(Fr.diff($r,Fe).get(Fe))+(Fr.valueOf()!==this.end.valueOf())}hasSame(Fe){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,Fe):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(Fe){return this.isValid?this.s>Fe:!1}isBefore(Fe){return this.isValid?this.e<=Fe:!1}contains(Fe){return this.isValid?this.s<=Fe&&this.e>Fe:!1}set({start:Fe,end:$r}={}){return this.isValid?Interval.fromDateTimes(Fe||this.s,$r||this.e):this}splitAt(...Fe){if(!this.isValid)return[];const $r=Fe.map(friendlyDateTime).filter(Vr=>this.contains(Vr)).sort(),Fr=[];let{s:jr}=this,zr=0;for(;jr<this.e;){const Vr=$r[zr]||this.e,Wr=+Vr>+this.e?this.e:Vr;Fr.push(Interval.fromDateTimes(jr,Wr)),jr=Wr,zr+=1}return Fr}splitBy(Fe){const $r=Duration.fromDurationLike(Fe);if(!this.isValid||!$r.isValid||$r.as("milliseconds")===0)return[];let{s:Fr}=this,jr=1,zr;const Vr=[];for(;Fr<this.e;){const Wr=this.start.plus($r.mapUnits(Kr=>Kr*jr));zr=+Wr>+this.e?this.e:Wr,Vr.push(Interval.fromDateTimes(Fr,zr)),Fr=zr,jr+=1}return Vr}divideEqually(Fe){return this.isValid?this.splitBy(this.length()/Fe).slice(0,Fe):[]}overlaps(Fe){return this.e>Fe.s&&this.s<Fe.e}abutsStart(Fe){return this.isValid?+this.e==+Fe.s:!1}abutsEnd(Fe){return this.isValid?+Fe.e==+this.s:!1}engulfs(Fe){return this.isValid?this.s<=Fe.s&&this.e>=Fe.e:!1}equals(Fe){return!this.isValid||!Fe.isValid?!1:this.s.equals(Fe.s)&&this.e.equals(Fe.e)}intersection(Fe){if(!this.isValid)return this;const $r=this.s>Fe.s?this.s:Fe.s,Fr=this.e<Fe.e?this.e:Fe.e;return $r>=Fr?null:Interval.fromDateTimes($r,Fr)}union(Fe){if(!this.isValid)return this;const $r=this.s<Fe.s?this.s:Fe.s,Fr=this.e>Fe.e?this.e:Fe.e;return Interval.fromDateTimes($r,Fr)}static merge(Fe){const[$r,Fr]=Fe.sort((jr,zr)=>jr.s-zr.s).reduce(([jr,zr],Vr)=>zr?zr.overlaps(Vr)||zr.abutsStart(Vr)?[jr,zr.union(Vr)]:[jr.concat([zr]),Vr]:[jr,Vr],[[],null]);return Fr&&$r.push(Fr),$r}static xor(Fe){let $r=null,Fr=0;const jr=[],zr=Fe.map(Kr=>[{time:Kr.s,type:"s"},{time:Kr.e,type:"e"}]),Vr=Array.prototype.concat(...zr),Wr=Vr.sort((Kr,Gr)=>Kr.time-Gr.time);for(const Kr of Wr)Fr+=Kr.type==="s"?1:-1,Fr===1?$r=Kr.time:($r&&+$r!=+Kr.time&&jr.push(Interval.fromDateTimes($r,Kr.time)),$r=null);return Interval.merge(jr)}difference(...Fe){return Interval.xor([this].concat(Fe)).map($r=>this.intersection($r)).filter($r=>$r&&!$r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:INVALID$1}toLocaleString(Fe=DATE_SHORT,$r={}){return this.isValid?Formatter.create(this.s.loc.clone($r),Fe).formatInterval(this):INVALID$1}toISO(Fe){return this.isValid?`${this.s.toISO(Fe)}/${this.e.toISO(Fe)}`:INVALID$1}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:INVALID$1}toISOTime(Fe){return this.isValid?`${this.s.toISOTime(Fe)}/${this.e.toISOTime(Fe)}`:INVALID$1}toFormat(Fe,{separator:$r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(Fe)}${$r}${this.e.toFormat(Fe)}`:INVALID$1}toDuration(Fe,$r){return this.isValid?this.e.diff(this.s,Fe,$r):Duration.invalid(this.invalidReason)}mapEndpoints(Fe){return Interval.fromDateTimes(Fe(this.s),Fe(this.e))}}class Info{static hasDST(Fe=Settings.defaultZone){const $r=DateTime.now().setZone(Fe).set({month:12});return!Fe.isUniversal&&$r.offset!==$r.set({month:6}).offset}static isValidIANAZone(Fe){return IANAZone.isValidZone(Fe)}static normalizeZone(Fe){return normalizeZone(Fe,Settings.defaultZone)}static months(Fe="long",{locale:$r=null,numberingSystem:Fr=null,locObj:jr=null,outputCalendar:zr="gregory"}={}){return(jr||Locale.create($r,Fr,zr)).months(Fe)}static monthsFormat(Fe="long",{locale:$r=null,numberingSystem:Fr=null,locObj:jr=null,outputCalendar:zr="gregory"}={}){return(jr||Locale.create($r,Fr,zr)).months(Fe,!0)}static weekdays(Fe="long",{locale:$r=null,numberingSystem:Fr=null,locObj:jr=null}={}){return(jr||Locale.create($r,Fr,null)).weekdays(Fe)}static weekdaysFormat(Fe="long",{locale:$r=null,numberingSystem:Fr=null,locObj:jr=null}={}){return(jr||Locale.create($r,Fr,null)).weekdays(Fe,!0)}static meridiems({locale:Fe=null}={}){return Locale.create(Fe).meridiems()}static eras(Fe="short",{locale:$r=null}={}){return Locale.create($r,null,"gregory").eras(Fe)}static features(){return{relative:hasRelative()}}}function dayDiff(_r,Fe){const $r=jr=>jr.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),Fr=$r(Fe)-$r(_r);return Math.floor(Duration.fromMillis(Fr).as("days"))}function highOrderDiffs(_r,Fe,$r){const Fr=[["years",(Kr,Gr)=>Gr.year-Kr.year],["quarters",(Kr,Gr)=>Gr.quarter-Kr.quarter+(Gr.year-Kr.year)*4],["months",(Kr,Gr)=>Gr.month-Kr.month+(Gr.year-Kr.year)*12],["weeks",(Kr,Gr)=>{const Yr=dayDiff(Kr,Gr);return(Yr-Yr%7)/7}],["days",dayDiff]],jr={},zr=_r;let Vr,Wr;for(const[Kr,Gr]of Fr)$r.indexOf(Kr)>=0&&(Vr=Kr,jr[Kr]=Gr(_r,Fe),Wr=zr.plus(jr),Wr>Fe?(jr[Kr]--,_r=zr.plus(jr)):_r=Wr);return[_r,jr,Wr,Vr]}function diff(_r,Fe,$r,Fr){let[jr,zr,Vr,Wr]=highOrderDiffs(_r,Fe,$r);const Kr=Fe-jr,Gr=$r.filter(Qr=>["hours","minutes","seconds","milliseconds"].indexOf(Qr)>=0);Gr.length===0&&(Vr<Fe&&(Vr=jr.plus({[Wr]:1})),Vr!==jr&&(zr[Wr]=(zr[Wr]||0)+Kr/(Vr-jr)));const Yr=Duration.fromObject(zr,Fr);return Gr.length>0?Duration.fromMillis(Kr,Fr).shiftTo(...Gr).plus(Yr):Yr}const numberingSystems={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},numberingSystemsUTF16={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},hanidecChars=numberingSystems.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(_r){let Fe=parseInt(_r,10);if(isNaN(Fe)){Fe="";for(let $r=0;$r<_r.length;$r++){const Fr=_r.charCodeAt($r);if(_r[$r].search(numberingSystems.hanidec)!==-1)Fe+=hanidecChars.indexOf(_r[$r]);else for(const jr in numberingSystemsUTF16){const[zr,Vr]=numberingSystemsUTF16[jr];Fr>=zr&&Fr<=Vr&&(Fe+=Fr-zr)}}return parseInt(Fe,10)}else return Fe}function digitRegex({numberingSystem:_r},Fe=""){return new RegExp(`${numberingSystems[_r||"latn"]}${Fe}`)}const MISSING_FTP="missing Intl.DateTimeFormat.formatToParts support";function intUnit(_r,Fe=$r=>$r){return{regex:_r,deser:([$r])=>Fe(parseDigits($r))}}const NBSP=String.fromCharCode(160),spaceOrNBSP=`[ ${NBSP}]`,spaceOrNBSPRegExp=new RegExp(spaceOrNBSP,"g");function fixListRegex(_r){return _r.replace(/\./g,"\\.?").replace(spaceOrNBSPRegExp,spaceOrNBSP)}function stripInsensitivities(_r){return _r.replace(/\./g,"").replace(spaceOrNBSPRegExp," ").toLowerCase()}function oneOf(_r,Fe){return _r===null?null:{regex:RegExp(_r.map(fixListRegex).join("|")),deser:([$r])=>_r.findIndex(Fr=>stripInsensitivities($r)===stripInsensitivities(Fr))+Fe}}function offset(_r,Fe){return{regex:_r,deser:([,$r,Fr])=>signedOffset($r,Fr),groups:Fe}}function simple(_r){return{regex:_r,deser:([Fe])=>Fe}}function escapeToken(_r){return _r.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(_r,Fe){const $r=digitRegex(Fe),Fr=digitRegex(Fe,"{2}"),jr=digitRegex(Fe,"{3}"),zr=digitRegex(Fe,"{4}"),Vr=digitRegex(Fe,"{6}"),Wr=digitRegex(Fe,"{1,2}"),Kr=digitRegex(Fe,"{1,3}"),Gr=digitRegex(Fe,"{1,6}"),Yr=digitRegex(Fe,"{1,9}"),Qr=digitRegex(Fe,"{2,4}"),Jr=digitRegex(Fe,"{4,6}"),Zr=rn=>({regex:RegExp(escapeToken(rn.val)),deser:([nn])=>nn,literal:!0}),en=(rn=>{if(_r.literal)return Zr(rn);switch(rn.val){case"G":return oneOf(Fe.eras("short",!1),0);case"GG":return oneOf(Fe.eras("long",!1),0);case"y":return intUnit(Gr);case"yy":return intUnit(Qr,untruncateYear);case"yyyy":return intUnit(zr);case"yyyyy":return intUnit(Jr);case"yyyyyy":return intUnit(Vr);case"M":return intUnit(Wr);case"MM":return intUnit(Fr);case"MMM":return oneOf(Fe.months("short",!0,!1),1);case"MMMM":return oneOf(Fe.months("long",!0,!1),1);case"L":return intUnit(Wr);case"LL":return intUnit(Fr);case"LLL":return oneOf(Fe.months("short",!1,!1),1);case"LLLL":return oneOf(Fe.months("long",!1,!1),1);case"d":return intUnit(Wr);case"dd":return intUnit(Fr);case"o":return intUnit(Kr);case"ooo":return intUnit(jr);case"HH":return intUnit(Fr);case"H":return intUnit(Wr);case"hh":return intUnit(Fr);case"h":return intUnit(Wr);case"mm":return intUnit(Fr);case"m":return intUnit(Wr);case"q":return intUnit(Wr);case"qq":return intUnit(Fr);case"s":return intUnit(Wr);case"ss":return intUnit(Fr);case"S":return intUnit(Kr);case"SSS":return intUnit(jr);case"u":return simple(Yr);case"uu":return simple(Wr);case"uuu":return intUnit($r);case"a":return oneOf(Fe.meridiems(),0);case"kkkk":return intUnit(zr);case"kk":return intUnit(Qr,untruncateYear);case"W":return intUnit(Wr);case"WW":return intUnit(Fr);case"E":case"c":return intUnit($r);case"EEE":return oneOf(Fe.weekdays("short",!1,!1),1);case"EEEE":return oneOf(Fe.weekdays("long",!1,!1),1);case"ccc":return oneOf(Fe.weekdays("short",!0,!1),1);case"cccc":return oneOf(Fe.weekdays("long",!0,!1),1);case"Z":case"ZZ":return offset(new RegExp(`([+-]${Wr.source})(?::(${Fr.source}))?`),2);case"ZZZ":return offset(new RegExp(`([+-]${Wr.source})(${Fr.source})?`),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);case" ":return simple(/[^\S\n\r]/);default:return Zr(rn)}})(_r)||{invalidReason:MISSING_FTP};return en.token=_r,en}const partTypeStyleToTokenVal={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function tokenForPart(_r,Fe){const{type:$r,value:Fr}=_r;if($r==="literal"){const Vr=/^\s+$/.test(Fr);return{literal:!Vr,val:Vr?" ":Fr}}const jr=Fe[$r];let zr=partTypeStyleToTokenVal[$r];if(typeof zr=="object"&&(zr=zr[jr]),zr)return{literal:!1,val:zr}}function buildRegex(_r){return[`^${_r.map($r=>$r.regex).reduce(($r,Fr)=>`${$r}(${Fr.source})`,"")}$`,_r]}function match(_r,Fe,$r){const Fr=_r.match(Fe);if(Fr){const jr={};let zr=1;for(const Vr in $r)if(hasOwnProperty($r,Vr)){const Wr=$r[Vr],Kr=Wr.groups?Wr.groups+1:1;!Wr.literal&&Wr.token&&(jr[Wr.token.val[0]]=Wr.deser(Fr.slice(zr,zr+Kr))),zr+=Kr}return[Fr,jr]}else return[Fr,{}]}function dateTimeFromMatches(_r){const Fe=zr=>{switch(zr){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let $r=null,Fr;return isUndefined(_r.z)||($r=IANAZone.create(_r.z)),isUndefined(_r.Z)||($r||($r=new FixedOffsetZone(_r.Z)),Fr=_r.Z),isUndefined(_r.q)||(_r.M=(_r.q-1)*3+1),isUndefined(_r.h)||(_r.h<12&&_r.a===1?_r.h+=12:_r.h===12&&_r.a===0&&(_r.h=0)),_r.G===0&&_r.y&&(_r.y=-_r.y),isUndefined(_r.u)||(_r.S=parseMillis(_r.u)),[Object.keys(_r).reduce((zr,Vr)=>{const Wr=Fe(Vr);return Wr&&(zr[Wr]=_r[Vr]),zr},{}),$r,Fr]}let dummyDateTimeCache=null;function getDummyDateTime(){return dummyDateTimeCache||(dummyDateTimeCache=DateTime.fromMillis(1555555555555)),dummyDateTimeCache}function maybeExpandMacroToken(_r,Fe){if(_r.literal)return _r;const $r=Formatter.macroTokenToFormatOpts(_r.val),Fr=formatOptsToTokens($r,Fe);return Fr==null||Fr.includes(void 0)?_r:Fr}function expandMacroTokens(_r,Fe){return Array.prototype.concat(..._r.map($r=>maybeExpandMacroToken($r,Fe)))}function explainFromTokens(_r,Fe,$r){const Fr=expandMacroTokens(Formatter.parseFormat($r),_r),jr=Fr.map(Vr=>unitForToken(Vr,_r)),zr=jr.find(Vr=>Vr.invalidReason);if(zr)return{input:Fe,tokens:Fr,invalidReason:zr.invalidReason};{const[Vr,Wr]=buildRegex(jr),Kr=RegExp(Vr,"i"),[Gr,Yr]=match(Fe,Kr,Wr),[Qr,Jr,Zr]=Yr?dateTimeFromMatches(Yr):[null,null,void 0];if(hasOwnProperty(Yr,"a")&&hasOwnProperty(Yr,"H"))throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format");return{input:Fe,tokens:Fr,regex:Kr,rawMatches:Gr,matches:Yr,result:Qr,zone:Jr,specificOffset:Zr}}}function parseFromTokens(_r,Fe,$r){const{result:Fr,zone:jr,specificOffset:zr,invalidReason:Vr}=explainFromTokens(_r,Fe,$r);return[Fr,jr,zr,Vr]}function formatOptsToTokens(_r,Fe){return _r?Formatter.create(Fe,_r).formatDateTimeParts(getDummyDateTime()).map(jr=>tokenForPart(jr,_r)):null}const nonLeapLadder=[0,31,59,90,120,151,181,212,243,273,304,334],leapLadder=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(_r,Fe){return new Invalid("unit out of range",`you specified ${Fe} (of type ${typeof Fe}) as a ${_r}, which is invalid`)}function dayOfWeek(_r,Fe,$r){const Fr=new Date(Date.UTC(_r,Fe-1,$r));_r<100&&_r>=0&&Fr.setUTCFullYear(Fr.getUTCFullYear()-1900);const jr=Fr.getUTCDay();return jr===0?7:jr}function computeOrdinal(_r,Fe,$r){return $r+(isLeapYear(_r)?leapLadder:nonLeapLadder)[Fe-1]}function uncomputeOrdinal(_r,Fe){const $r=isLeapYear(_r)?leapLadder:nonLeapLadder,Fr=$r.findIndex(zr=>zr<Fe),jr=Fe-$r[Fr];return{month:Fr+1,day:jr}}function gregorianToWeek(_r){const{year:Fe,month:$r,day:Fr}=_r,jr=computeOrdinal(Fe,$r,Fr),zr=dayOfWeek(Fe,$r,Fr);let Vr=Math.floor((jr-zr+10)/7),Wr;return Vr<1?(Wr=Fe-1,Vr=weeksInWeekYear(Wr)):Vr>weeksInWeekYear(Fe)?(Wr=Fe+1,Vr=1):Wr=Fe,{weekYear:Wr,weekNumber:Vr,weekday:zr,...timeObject(_r)}}function weekToGregorian(_r){const{weekYear:Fe,weekNumber:$r,weekday:Fr}=_r,jr=dayOfWeek(Fe,1,4),zr=daysInYear(Fe);let Vr=$r*7+Fr-jr-3,Wr;Vr<1?(Wr=Fe-1,Vr+=daysInYear(Wr)):Vr>zr?(Wr=Fe+1,Vr-=daysInYear(Fe)):Wr=Fe;const{month:Kr,day:Gr}=uncomputeOrdinal(Wr,Vr);return{year:Wr,month:Kr,day:Gr,...timeObject(_r)}}function gregorianToOrdinal(_r){const{year:Fe,month:$r,day:Fr}=_r,jr=computeOrdinal(Fe,$r,Fr);return{year:Fe,ordinal:jr,...timeObject(_r)}}function ordinalToGregorian(_r){const{year:Fe,ordinal:$r}=_r,{month:Fr,day:jr}=uncomputeOrdinal(Fe,$r);return{year:Fe,month:Fr,day:jr,...timeObject(_r)}}function hasInvalidWeekData(_r){const Fe=isInteger(_r.weekYear),$r=integerBetween(_r.weekNumber,1,weeksInWeekYear(_r.weekYear)),Fr=integerBetween(_r.weekday,1,7);return Fe?$r?Fr?!1:unitOutOfRange("weekday",_r.weekday):unitOutOfRange("week",_r.week):unitOutOfRange("weekYear",_r.weekYear)}function hasInvalidOrdinalData(_r){const Fe=isInteger(_r.year),$r=integerBetween(_r.ordinal,1,daysInYear(_r.year));return Fe?$r?!1:unitOutOfRange("ordinal",_r.ordinal):unitOutOfRange("year",_r.year)}function hasInvalidGregorianData(_r){const Fe=isInteger(_r.year),$r=integerBetween(_r.month,1,12),Fr=integerBetween(_r.day,1,daysInMonth(_r.year,_r.month));return Fe?$r?Fr?!1:unitOutOfRange("day",_r.day):unitOutOfRange("month",_r.month):unitOutOfRange("year",_r.year)}function hasInvalidTimeData(_r){const{hour:Fe,minute:$r,second:Fr,millisecond:jr}=_r,zr=integerBetween(Fe,0,23)||Fe===24&&$r===0&&Fr===0&&jr===0,Vr=integerBetween($r,0,59),Wr=integerBetween(Fr,0,59),Kr=integerBetween(jr,0,999);return zr?Vr?Wr?Kr?!1:unitOutOfRange("millisecond",jr):unitOutOfRange("second",Fr):unitOutOfRange("minute",$r):unitOutOfRange("hour",Fe)}const INVALID="Invalid DateTime",MAX_DATE=864e13;function unsupportedZone(_r){return new Invalid("unsupported zone",`the zone "${_r.name}" is not supported`)}function possiblyCachedWeekData(_r){return _r.weekData===null&&(_r.weekData=gregorianToWeek(_r.c)),_r.weekData}function clone(_r,Fe){const $r={ts:_r.ts,zone:_r.zone,c:_r.c,o:_r.o,loc:_r.loc,invalid:_r.invalid};return new DateTime({...$r,...Fe,old:$r})}function fixOffset(_r,Fe,$r){let Fr=_r-Fe*60*1e3;const jr=$r.offset(Fr);if(Fe===jr)return[Fr,Fe];Fr-=(jr-Fe)*60*1e3;const zr=$r.offset(Fr);return jr===zr?[Fr,jr]:[_r-Math.min(jr,zr)*60*1e3,Math.max(jr,zr)]}function tsToObj(_r,Fe){_r+=Fe*60*1e3;const $r=new Date(_r);return{year:$r.getUTCFullYear(),month:$r.getUTCMonth()+1,day:$r.getUTCDate(),hour:$r.getUTCHours(),minute:$r.getUTCMinutes(),second:$r.getUTCSeconds(),millisecond:$r.getUTCMilliseconds()}}function objToTS(_r,Fe,$r){return fixOffset(objToLocalTS(_r),Fe,$r)}function adjustTime(_r,Fe){const $r=_r.o,Fr=_r.c.year+Math.trunc(Fe.years),jr=_r.c.month+Math.trunc(Fe.months)+Math.trunc(Fe.quarters)*3,zr={..._r.c,year:Fr,month:jr,day:Math.min(_r.c.day,daysInMonth(Fr,jr))+Math.trunc(Fe.days)+Math.trunc(Fe.weeks)*7},Vr=Duration.fromObject({years:Fe.years-Math.trunc(Fe.years),quarters:Fe.quarters-Math.trunc(Fe.quarters),months:Fe.months-Math.trunc(Fe.months),weeks:Fe.weeks-Math.trunc(Fe.weeks),days:Fe.days-Math.trunc(Fe.days),hours:Fe.hours,minutes:Fe.minutes,seconds:Fe.seconds,milliseconds:Fe.milliseconds}).as("milliseconds"),Wr=objToLocalTS(zr);let[Kr,Gr]=fixOffset(Wr,$r,_r.zone);return Vr!==0&&(Kr+=Vr,Gr=_r.zone.offset(Kr)),{ts:Kr,o:Gr}}function parseDataToDateTime(_r,Fe,$r,Fr,jr,zr){const{setZone:Vr,zone:Wr}=$r;if(_r&&Object.keys(_r).length!==0||Fe){const Kr=Fe||Wr,Gr=DateTime.fromObject(_r,{...$r,zone:Kr,specificOffset:zr});return Vr?Gr:Gr.setZone(Wr)}else return DateTime.invalid(new Invalid("unparsable",`the input "${jr}" can't be parsed as ${Fr}`))}function toTechFormat(_r,Fe,$r=!0){return _r.isValid?Formatter.create(Locale.create("en-US"),{allowZ:$r,forceSimple:!0}).formatDateTimeFromString(_r,Fe):null}function toISODate(_r,Fe){const $r=_r.c.year>9999||_r.c.year<0;let Fr="";return $r&&_r.c.year>=0&&(Fr+="+"),Fr+=padStart(_r.c.year,$r?6:4),Fe?(Fr+="-",Fr+=padStart(_r.c.month),Fr+="-",Fr+=padStart(_r.c.day)):(Fr+=padStart(_r.c.month),Fr+=padStart(_r.c.day)),Fr}function toISOTime(_r,Fe,$r,Fr,jr,zr){let Vr=padStart(_r.c.hour);return Fe?(Vr+=":",Vr+=padStart(_r.c.minute),(_r.c.second!==0||!$r)&&(Vr+=":")):Vr+=padStart(_r.c.minute),(_r.c.second!==0||!$r)&&(Vr+=padStart(_r.c.second),(_r.c.millisecond!==0||!Fr)&&(Vr+=".",Vr+=padStart(_r.c.millisecond,3))),jr&&(_r.isOffsetFixed&&_r.offset===0&&!zr?Vr+="Z":_r.o<0?(Vr+="-",Vr+=padStart(Math.trunc(-_r.o/60)),Vr+=":",Vr+=padStart(Math.trunc(-_r.o%60))):(Vr+="+",Vr+=padStart(Math.trunc(_r.o/60)),Vr+=":",Vr+=padStart(Math.trunc(_r.o%60)))),zr&&(Vr+="["+_r.zone.ianaName+"]"),Vr}const defaultUnitValues={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},defaultWeekUnitValues={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},defaultOrdinalUnitValues={ordinal:1,hour:0,minute:0,second:0,millisecond:0},orderedUnits=["year","month","day","hour","minute","second","millisecond"],orderedWeekUnits=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],orderedOrdinalUnits=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(_r){const Fe={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[_r.toLowerCase()];if(!Fe)throw new InvalidUnitError(_r);return Fe}function quickDT(_r,Fe){const $r=normalizeZone(Fe.zone,Settings.defaultZone),Fr=Locale.fromObject(Fe),jr=Settings.now();let zr,Vr;if(isUndefined(_r.year))zr=jr;else{for(const Gr of orderedUnits)isUndefined(_r[Gr])&&(_r[Gr]=defaultUnitValues[Gr]);const Wr=hasInvalidGregorianData(_r)||hasInvalidTimeData(_r);if(Wr)return DateTime.invalid(Wr);const Kr=$r.offset(jr);[zr,Vr]=objToTS(_r,Kr,$r)}return new DateTime({ts:zr,zone:$r,loc:Fr,o:Vr})}function diffRelative(_r,Fe,$r){const Fr=isUndefined($r.round)?!0:$r.round,jr=(Vr,Wr)=>(Vr=roundTo(Vr,Fr||$r.calendary?0:2,!0),Fe.loc.clone($r).relFormatter($r).format(Vr,Wr)),zr=Vr=>$r.calendary?Fe.hasSame(_r,Vr)?0:Fe.startOf(Vr).diff(_r.startOf(Vr),Vr).get(Vr):Fe.diff(_r,Vr).get(Vr);if($r.unit)return jr(zr($r.unit),$r.unit);for(const Vr of $r.units){const Wr=zr(Vr);if(Math.abs(Wr)>=1)return jr(Wr,Vr)}return jr(_r>Fe?-0:0,$r.units[$r.units.length-1])}function lastOpts(_r){let Fe={},$r;return _r.length>0&&typeof _r[_r.length-1]=="object"?(Fe=_r[_r.length-1],$r=Array.from(_r).slice(0,_r.length-1)):$r=Array.from(_r),[Fe,$r]}class DateTime{constructor(Fe){const $r=Fe.zone||Settings.defaultZone;let Fr=Fe.invalid||(Number.isNaN(Fe.ts)?new Invalid("invalid input"):null)||($r.isValid?null:unsupportedZone($r));this.ts=isUndefined(Fe.ts)?Settings.now():Fe.ts;let jr=null,zr=null;if(!Fr)if(Fe.old&&Fe.old.ts===this.ts&&Fe.old.zone.equals($r))[jr,zr]=[Fe.old.c,Fe.old.o];else{const Wr=$r.offset(this.ts);jr=tsToObj(this.ts,Wr),Fr=Number.isNaN(jr.year)?new Invalid("invalid input"):null,jr=Fr?null:jr,zr=Fr?null:Wr}this._zone=$r,this.loc=Fe.loc||Locale.create(),this.invalid=Fr,this.weekData=null,this.c=jr,this.o=zr,this.isLuxonDateTime=!0}static now(){return new DateTime({})}static local(){const[Fe,$r]=lastOpts(arguments),[Fr,jr,zr,Vr,Wr,Kr,Gr]=$r;return quickDT({year:Fr,month:jr,day:zr,hour:Vr,minute:Wr,second:Kr,millisecond:Gr},Fe)}static utc(){const[Fe,$r]=lastOpts(arguments),[Fr,jr,zr,Vr,Wr,Kr,Gr]=$r;return Fe.zone=FixedOffsetZone.utcInstance,quickDT({year:Fr,month:jr,day:zr,hour:Vr,minute:Wr,second:Kr,millisecond:Gr},Fe)}static fromJSDate(Fe,$r={}){const Fr=isDate(Fe)?Fe.valueOf():NaN;if(Number.isNaN(Fr))return DateTime.invalid("invalid input");const jr=normalizeZone($r.zone,Settings.defaultZone);return jr.isValid?new DateTime({ts:Fr,zone:jr,loc:Locale.fromObject($r)}):DateTime.invalid(unsupportedZone(jr))}static fromMillis(Fe,$r={}){if(isNumber(Fe))return Fe<-MAX_DATE||Fe>MAX_DATE?DateTime.invalid("Timestamp out of range"):new DateTime({ts:Fe,zone:normalizeZone($r.zone,Settings.defaultZone),loc:Locale.fromObject($r)});throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof Fe} with value ${Fe}`)}static fromSeconds(Fe,$r={}){if(isNumber(Fe))return new DateTime({ts:Fe*1e3,zone:normalizeZone($r.zone,Settings.defaultZone),loc:Locale.fromObject($r)});throw new InvalidArgumentError("fromSeconds requires a numerical input")}static fromObject(Fe,$r={}){Fe=Fe||{};const Fr=normalizeZone($r.zone,Settings.defaultZone);if(!Fr.isValid)return DateTime.invalid(unsupportedZone(Fr));const jr=Settings.now(),zr=isUndefined($r.specificOffset)?Fr.offset(jr):$r.specificOffset,Vr=normalizeObject(Fe,normalizeUnit),Wr=!isUndefined(Vr.ordinal),Kr=!isUndefined(Vr.year),Gr=!isUndefined(Vr.month)||!isUndefined(Vr.day),Yr=Kr||Gr,Qr=Vr.weekYear||Vr.weekNumber,Jr=Locale.fromObject($r);if((Yr||Wr)&&Qr)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(Gr&&Wr)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");const Zr=Qr||Vr.weekday&&!Yr;let tn,en,rn=tsToObj(jr,zr);Zr?(tn=orderedWeekUnits,en=defaultWeekUnitValues,rn=gregorianToWeek(rn)):Wr?(tn=orderedOrdinalUnits,en=defaultOrdinalUnitValues,rn=gregorianToOrdinal(rn)):(tn=orderedUnits,en=defaultUnitValues);let nn=!1;for(const cn of tn){const fn=Vr[cn];isUndefined(fn)?nn?Vr[cn]=en[cn]:Vr[cn]=rn[cn]:nn=!0}const on=Zr?hasInvalidWeekData(Vr):Wr?hasInvalidOrdinalData(Vr):hasInvalidGregorianData(Vr),un=on||hasInvalidTimeData(Vr);if(un)return DateTime.invalid(un);const an=Zr?weekToGregorian(Vr):Wr?ordinalToGregorian(Vr):Vr,[sn,dn]=objToTS(an,zr,Fr),ln=new DateTime({ts:sn,zone:Fr,o:dn,loc:Jr});return Vr.weekday&&Yr&&Fe.weekday!==ln.weekday?DateTime.invalid("mismatched weekday",`you can't specify both a weekday of ${Vr.weekday} and a date of ${ln.toISO()}`):ln}static fromISO(Fe,$r={}){const[Fr,jr]=parseISODate(Fe);return parseDataToDateTime(Fr,jr,$r,"ISO 8601",Fe)}static fromRFC2822(Fe,$r={}){const[Fr,jr]=parseRFC2822Date(Fe);return parseDataToDateTime(Fr,jr,$r,"RFC 2822",Fe)}static fromHTTP(Fe,$r={}){const[Fr,jr]=parseHTTPDate(Fe);return parseDataToDateTime(Fr,jr,$r,"HTTP",$r)}static fromFormat(Fe,$r,Fr={}){if(isUndefined(Fe)||isUndefined($r))throw new InvalidArgumentError("fromFormat requires an input string and a format");const{locale:jr=null,numberingSystem:zr=null}=Fr,Vr=Locale.fromOpts({locale:jr,numberingSystem:zr,defaultToEN:!0}),[Wr,Kr,Gr,Yr]=parseFromTokens(Vr,Fe,$r);return Yr?DateTime.invalid(Yr):parseDataToDateTime(Wr,Kr,Fr,`format ${$r}`,Fe,Gr)}static fromString(Fe,$r,Fr={}){return DateTime.fromFormat(Fe,$r,Fr)}static fromSQL(Fe,$r={}){const[Fr,jr]=parseSQL(Fe);return parseDataToDateTime(Fr,jr,$r,"SQL",Fe)}static invalid(Fe,$r=null){if(!Fe)throw new InvalidArgumentError("need to specify a reason the DateTime is invalid");const Fr=Fe instanceof Invalid?Fe:new Invalid(Fe,$r);if(Settings.throwOnInvalid)throw new InvalidDateTimeError(Fr);return new DateTime({invalid:Fr})}static isDateTime(Fe){return Fe&&Fe.isLuxonDateTime||!1}static parseFormatForOpts(Fe,$r={}){const Fr=formatOptsToTokens(Fe,Locale.fromObject($r));return Fr?Fr.map(jr=>jr?jr.val:null).join(""):null}static expandFormat(Fe,$r={}){return expandMacroTokens(Formatter.parseFormat(Fe),Locale.fromObject($r)).map(jr=>jr.val).join("")}get(Fe){return this[Fe]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}resolvedLocaleOptions(Fe={}){const{locale:$r,numberingSystem:Fr,calendar:jr}=Formatter.create(this.loc.clone(Fe),Fe).resolvedOptions(this);return{locale:$r,numberingSystem:Fr,outputCalendar:jr}}toUTC(Fe=0,$r={}){return this.setZone(FixedOffsetZone.instance(Fe),$r)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(Fe,{keepLocalTime:$r=!1,keepCalendarTime:Fr=!1}={}){if(Fe=normalizeZone(Fe,Settings.defaultZone),Fe.equals(this.zone))return this;if(Fe.isValid){let jr=this.ts;if($r||Fr){const zr=Fe.offset(this.ts),Vr=this.toObject();[jr]=objToTS(Vr,zr,Fe)}return clone(this,{ts:jr,zone:Fe})}else return DateTime.invalid(unsupportedZone(Fe))}reconfigure({locale:Fe,numberingSystem:$r,outputCalendar:Fr}={}){const jr=this.loc.clone({locale:Fe,numberingSystem:$r,outputCalendar:Fr});return clone(this,{loc:jr})}setLocale(Fe){return this.reconfigure({locale:Fe})}set(Fe){if(!this.isValid)return this;const $r=normalizeObject(Fe,normalizeUnit),Fr=!isUndefined($r.weekYear)||!isUndefined($r.weekNumber)||!isUndefined($r.weekday),jr=!isUndefined($r.ordinal),zr=!isUndefined($r.year),Vr=!isUndefined($r.month)||!isUndefined($r.day),Wr=zr||Vr,Kr=$r.weekYear||$r.weekNumber;if((Wr||jr)&&Kr)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(Vr&&jr)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");let Gr;Fr?Gr=weekToGregorian({...gregorianToWeek(this.c),...$r}):isUndefined($r.ordinal)?(Gr={...this.toObject(),...$r},isUndefined($r.day)&&(Gr.day=Math.min(daysInMonth(Gr.year,Gr.month),Gr.day))):Gr=ordinalToGregorian({...gregorianToOrdinal(this.c),...$r});const[Yr,Qr]=objToTS(Gr,this.o,this.zone);return clone(this,{ts:Yr,o:Qr})}plus(Fe){if(!this.isValid)return this;const $r=Duration.fromDurationLike(Fe);return clone(this,adjustTime(this,$r))}minus(Fe){if(!this.isValid)return this;const $r=Duration.fromDurationLike(Fe).negate();return clone(this,adjustTime(this,$r))}startOf(Fe){if(!this.isValid)return this;const $r={},Fr=Duration.normalizeUnit(Fe);switch(Fr){case"years":$r.month=1;case"quarters":case"months":$r.day=1;case"weeks":case"days":$r.hour=0;case"hours":$r.minute=0;case"minutes":$r.second=0;case"seconds":$r.millisecond=0;break}if(Fr==="weeks"&&($r.weekday=1),Fr==="quarters"){const jr=Math.ceil(this.month/3);$r.month=(jr-1)*3+1}return this.set($r)}endOf(Fe){return this.isValid?this.plus({[Fe]:1}).startOf(Fe).minus(1):this}toFormat(Fe,$r={}){return this.isValid?Formatter.create(this.loc.redefaultToEN($r)).formatDateTimeFromString(this,Fe):INVALID}toLocaleString(Fe=DATE_SHORT,$r={}){return this.isValid?Formatter.create(this.loc.clone($r),Fe).formatDateTime(this):INVALID}toLocaleParts(Fe={}){return this.isValid?Formatter.create(this.loc.clone(Fe),Fe).formatDateTimeParts(this):[]}toISO({format:Fe="extended",suppressSeconds:$r=!1,suppressMilliseconds:Fr=!1,includeOffset:jr=!0,extendedZone:zr=!1}={}){if(!this.isValid)return null;const Vr=Fe==="extended";let Wr=toISODate(this,Vr);return Wr+="T",Wr+=toISOTime(this,Vr,$r,Fr,jr,zr),Wr}toISODate({format:Fe="extended"}={}){return this.isValid?toISODate(this,Fe==="extended"):null}toISOWeekDate(){return toTechFormat(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:Fe=!1,suppressSeconds:$r=!1,includeOffset:Fr=!0,includePrefix:jr=!1,extendedZone:zr=!1,format:Vr="extended"}={}){return this.isValid?(jr?"T":"")+toISOTime(this,Vr==="extended",$r,Fe,Fr,zr):null}toRFC2822(){return toTechFormat(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return toTechFormat(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?toISODate(this,!0):null}toSQLTime({includeOffset:Fe=!0,includeZone:$r=!1,includeOffsetSpace:Fr=!0}={}){let jr="HH:mm:ss.SSS";return($r||Fe)&&(Fr&&(jr+=" "),$r?jr+="z":Fe&&(jr+="ZZ")),toTechFormat(this,jr,!0)}toSQL(Fe={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(Fe)}`:null}toString(){return this.isValid?this.toISO():INVALID}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(Fe={}){if(!this.isValid)return{};const $r={...this.c};return Fe.includeConfig&&($r.outputCalendar=this.outputCalendar,$r.numberingSystem=this.loc.numberingSystem,$r.locale=this.loc.locale),$r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(Fe,$r="milliseconds",Fr={}){if(!this.isValid||!Fe.isValid)return Duration.invalid("created by diffing an invalid DateTime");const jr={locale:this.locale,numberingSystem:this.numberingSystem,...Fr},zr=maybeArray($r).map(Duration.normalizeUnit),Vr=Fe.valueOf()>this.valueOf(),Wr=Vr?this:Fe,Kr=Vr?Fe:this,Gr=diff(Wr,Kr,zr,jr);return Vr?Gr.negate():Gr}diffNow(Fe="milliseconds",$r={}){return this.diff(DateTime.now(),Fe,$r)}until(Fe){return this.isValid?Interval.fromDateTimes(this,Fe):this}hasSame(Fe,$r){if(!this.isValid)return!1;const Fr=Fe.valueOf(),jr=this.setZone(Fe.zone,{keepLocalTime:!0});return jr.startOf($r)<=Fr&&Fr<=jr.endOf($r)}equals(Fe){return this.isValid&&Fe.isValid&&this.valueOf()===Fe.valueOf()&&this.zone.equals(Fe.zone)&&this.loc.equals(Fe.loc)}toRelative(Fe={}){if(!this.isValid)return null;const $r=Fe.base||DateTime.fromObject({},{zone:this.zone}),Fr=Fe.padding?this<$r?-Fe.padding:Fe.padding:0;let jr=["years","months","days","hours","minutes","seconds"],zr=Fe.unit;return Array.isArray(Fe.unit)&&(jr=Fe.unit,zr=void 0),diffRelative($r,this.plus(Fr),{...Fe,numeric:"always",units:jr,unit:zr})}toRelativeCalendar(Fe={}){return this.isValid?diffRelative(Fe.base||DateTime.fromObject({},{zone:this.zone}),this,{...Fe,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...Fe){if(!Fe.every(DateTime.isDateTime))throw new InvalidArgumentError("min requires all arguments be DateTimes");return bestBy(Fe,$r=>$r.valueOf(),Math.min)}static max(...Fe){if(!Fe.every(DateTime.isDateTime))throw new InvalidArgumentError("max requires all arguments be DateTimes");return bestBy(Fe,$r=>$r.valueOf(),Math.max)}static fromFormatExplain(Fe,$r,Fr={}){const{locale:jr=null,numberingSystem:zr=null}=Fr,Vr=Locale.fromOpts({locale:jr,numberingSystem:zr,defaultToEN:!0});return explainFromTokens(Vr,Fe,$r)}static fromStringExplain(Fe,$r,Fr={}){return DateTime.fromFormatExplain(Fe,$r,Fr)}static get DATE_SHORT(){return DATE_SHORT}static get DATE_MED(){return DATE_MED}static get DATE_MED_WITH_WEEKDAY(){return DATE_MED_WITH_WEEKDAY}static get DATE_FULL(){return DATE_FULL}static get DATE_HUGE(){return DATE_HUGE}static get TIME_SIMPLE(){return TIME_SIMPLE}static get TIME_WITH_SECONDS(){return TIME_WITH_SECONDS}static get TIME_WITH_SHORT_OFFSET(){return TIME_WITH_SHORT_OFFSET}static get TIME_WITH_LONG_OFFSET(){return TIME_WITH_LONG_OFFSET}static get TIME_24_SIMPLE(){return TIME_24_SIMPLE}static get TIME_24_WITH_SECONDS(){return TIME_24_WITH_SECONDS}static get TIME_24_WITH_SHORT_OFFSET(){return TIME_24_WITH_SHORT_OFFSET}static get TIME_24_WITH_LONG_OFFSET(){return TIME_24_WITH_LONG_OFFSET}static get DATETIME_SHORT(){return DATETIME_SHORT}static get DATETIME_SHORT_WITH_SECONDS(){return DATETIME_SHORT_WITH_SECONDS}static get DATETIME_MED(){return DATETIME_MED}static get DATETIME_MED_WITH_SECONDS(){return DATETIME_MED_WITH_SECONDS}static get DATETIME_MED_WITH_WEEKDAY(){return DATETIME_MED_WITH_WEEKDAY}static get DATETIME_FULL(){return DATETIME_FULL}static get DATETIME_FULL_WITH_SECONDS(){return DATETIME_FULL_WITH_SECONDS}static get DATETIME_HUGE(){return DATETIME_HUGE}static get DATETIME_HUGE_WITH_SECONDS(){return DATETIME_HUGE_WITH_SECONDS}}function friendlyDateTime(_r){if(DateTime.isDateTime(_r))return _r;if(_r&&_r.valueOf&&isNumber(_r.valueOf()))return DateTime.fromJSDate(_r);if(_r&&typeof _r=="object")return DateTime.fromObject(_r);throw new InvalidArgumentError(`Unknown datetime argument: ${_r}, of type ${typeof _r}`)}/*!
 * chartjs-adapter-luxon v1.3.1
 * https://www.chartjs.org
 * (c) 2023 chartjs-adapter-luxon Contributors
 * Released under the MIT license
 */const FORMATS={datetime:DateTime.DATETIME_MED_WITH_SECONDS,millisecond:"h:mm:ss.SSS a",second:DateTime.TIME_WITH_SECONDS,minute:DateTime.TIME_SIMPLE,hour:{hour:"numeric"},day:{day:"numeric",month:"short"},week:"DD",month:{month:"short",year:"numeric"},quarter:"'Q'q - yyyy",year:{year:"numeric"}};adapters._date.override({_id:"luxon",_create:function(_r){return DateTime.fromMillis(_r,this.options)},init(_r){this.options.locale||(this.options.locale=_r.locale)},formats:function(){return FORMATS},parse:function(_r,Fe){const $r=this.options,Fr=typeof _r;return _r===null||Fr==="undefined"?null:(Fr==="number"?_r=this._create(_r):Fr==="string"?typeof Fe=="string"?_r=DateTime.fromFormat(_r,Fe,$r):_r=DateTime.fromISO(_r,$r):_r instanceof Date?_r=DateTime.fromJSDate(_r,$r):Fr==="object"&&!(_r instanceof DateTime)&&(_r=DateTime.fromObject(_r,$r)),_r.isValid?_r.valueOf():null)},format:function(_r,Fe){const $r=this._create(_r);return typeof Fe=="string"?$r.toFormat(Fe):$r.toLocaleString(Fe)},add:function(_r,Fe,$r){const Fr={};return Fr[$r]=Fe,this._create(_r).plus(Fr).valueOf()},diff:function(_r,Fe,$r){return this._create(_r).diff(this._create(Fe)).as($r).valueOf()},startOf:function(_r,Fe,$r){if(Fe==="isoWeek"){$r=Math.trunc(Math.min(Math.max(0,$r),6));const Fr=this._create(_r);return Fr.minus({days:(Fr.weekday-$r+7)%7}).startOf("day").valueOf()}return Fe?this._create(_r).startOf(Fe).valueOf():_r},endOf:function(_r,Fe){return this._create(_r).endOf(Fe).valueOf()}});const _sfc_main={__name:"Stats",props:["labels","sales"],setup(_r){const Fe=_r;Chart$1.register(CategoryScale,LinearScale,PointElement,LineElement,plugin_title,plugin_tooltip,TimeScale,plugin_legend);const $r=ref({labels:Fe.labels,datasets:[{label:"Data One",backgroundColor:"#f87979",data:Fe.sales}]}),Fr=ref({scales:{x:{type:"time",time:{tooltipFormat:"DD T"},title:{display:!0,text:"Date"}},y:{title:{display:!0,text:"value"}}}});return onMounted(()=>{}),(jr,zr)=>(openBlock(),createBlock(unref(Line),{data:$r.value,options:Fr.value},null,8,["data","options"]))}};gsapWithCSS.registerPlugin(ScrollToPlugin);_default$6(components);window.loadComponents=_default$6;window.components=components;window.refreshOnBack=!1;let options=[{from:"(.*)",to:"(.*)",in:function(_r,Fe){gsapWithCSS.to("#swup",{opacity:1,duration:.5,onComplete:function(){_r()}})},out:function(_r,Fe){Fe.paramsFrom[0].includes("/search?query")&&!Fe.paramsTo[0].includes("/search?query")?window.refreshOnBack=!0:window.refreshOnBack=!1,_default.emit("leavingPage",{url:swup.getCurrentUrl()}),gsapWithCSS.to("#swup",{opacity:0,duration:.2,onComplete:function(){gsapWithCSS.to(window,0,{scrollTo:0}),_r()}})}}];const pinia=createPinia();function initVue(){document.querySelector("#app-mailchimp")&&createApp({compilerOptions:{delimiters:["${","}"]},components:{NotifyList:_sfc_main$x},data(){return{}}}).mount("#app-mailchimp"),document.querySelectorAll(".app-add-to-cart").length>0&&document.querySelectorAll(".app-add-to-cart").forEach(function(_r){const Fe=createApp({compilerOptions:{delimiters:["${","}"]},components:{AddToCart:_sfc_main$w},data(){return{}}});Fe.use(pinia),Fe.mount(_r)}),document.querySelectorAll(".app-cart").length>0&&document.querySelectorAll(".app-cart").forEach(function(_r){const Fe=createApp({compilerOptions:{delimiters:["${","}"]},components:{Cart:_sfc_main$n},data(){return{}}});Fe.use(pinia),Fe.mount(_r)}),document.querySelectorAll(".app-shipping").length>0&&document.querySelectorAll(".app-shipping").forEach(function(_r){const Fe=createApp({compilerOptions:{delimiters:["${","}"]},components:{Shipping:_sfc_main$8},data(){return{}}});Fe.use(pinia),Fe.mount(_r)}),document.querySelectorAll(".app-order-summary").length>0&&document.querySelectorAll(".app-order-summary").forEach(function(_r){createApp({compilerOptions:{delimiters:["${","}"]},components:{OrderSummary:_sfc_main$5},data(){return{}}}).mount(_r)}),document.querySelectorAll(".app-shop-stock").length>0&&document.querySelectorAll(".app-shop-stock").forEach(function(_r){createApp({compilerOptions:{delimiters:["${","}"]},components:{ShopStock:_sfc_main$4},data(){return{}}}).mount(_r)}),document.querySelectorAll(".app-customer-address-management").length>0&&document.querySelectorAll(".app-customer-address-management").forEach(function(_r){createApp({compilerOptions:{delimiters:["${","}"]},components:{CustomerAddressManagement:_sfc_main$6},data(){return{}}}).mount(_r)}),document.querySelectorAll(".app-books").length>0&&document.querySelectorAll(".app-books").forEach(function(_r){const Fe=createApp({compilerOptions:{delimiters:["${","}"]},components:{Books:_sfc_main$2},data(){return{}}});Fe.use(o),Fe.mount(_r)}),document.querySelectorAll(".app-purchase-event").length>0&&document.querySelectorAll(".app-purchase-event").forEach(function(_r){const Fe=createApp({compilerOptions:{delimiters:["${","}"]},components:{PurchaseEvent:_sfc_main$7},data(){return{}}});Fe.use(pinia),Fe.mount(_r)})}function initVueHeader(){if(document.querySelector("#app-header")){const _r=createApp({compilerOptions:{delimiters:["${","}"]},components:{MiniCart:_sfc_main$v},data(){return{}}});_r.use(pinia),_r.mount("#app-header")}if(document.querySelector("#app-tiny-cart")){const _r=createApp({compilerOptions:{delimiters:["${","}"]},components:{TinyCart:_sfc_main$u},data(){return{}}});_r.use(pinia),_r.mount("#app-tiny-cart")}document.querySelector(".app-search-bar")&&document.querySelectorAll(".app-search-bar").forEach(function(_r){const Fe=createApp({compilerOptions:{delimiters:["${","}"]},components:{SearchBar:_sfc_main$1},data(){return{}}});Fe.use(o),Fe.mount(_r)}),document.querySelector("#app-stats")&&createApp({compilerOptions:{delimiters:["${","}"]},components:{Stats:_sfc_main},data(){return{}}}).mount("#app-stats")}const swup=new V({animateHistoryBrowsing:!0,plugins:[new _default$5({components,firstLoad:!0}),new _default$4(options),new _default$2,new _default$3({optin:!0})]});window.swup=swup;initVue();initVueHeader();window.addEventListener("popstate",function(_r){_r.currentTarget.location.pathname.includes("/search")&&window.refreshOnBack&&location.reload()});swup.on("contentReplaced",function(){htmx$1.process(document.body),initVue()});
