const fC=document.querySelectorAll(".accordionTrigger");fC.forEach(t=>{t.addEventListener("click",()=>{const e=t.nextElementSibling;if(t.classList.contains("active"))t.classList.remove("active"),e.style.maxHeight="0";else{const n=document.querySelector(".accordionTrigger.active + .accordionBody");n&&(n.style.maxHeight="0",n.previousElementSibling.classList.remove("active")),t.classList.add("active"),e.style.maxHeight=e.scrollHeight+"px"}})});var sp=!1,ap=!1,Bi=[],lp=-1;function dC(t){hC(t)}function hC(t){Bi.includes(t)||Bi.push(t),pC()}function cw(t){let e=Bi.indexOf(t);e!==-1&&e>lp&&Bi.splice(e,1)}function pC(){!ap&&!sp&&(sp=!0,queueMicrotask(mC))}function mC(){sp=!1,ap=!0;for(let t=0;t<Bi.length;t++)Bi[t](),lp=t;Bi.length=0,lp=-1,ap=!1}var As,vo,Os,uw,cp=!0;function gC(t){cp=!1,t(),cp=!0}function vC(t){As=t.reactive,Os=t.release,vo=e=>t.effect(e,{scheduler:n=>{cp?dC(n):n()}}),uw=t.raw}function gy(t){vo=t}function yC(t){let e=()=>{};return[r=>{let i=vo(r);return t._x_effects||(t._x_effects=new Set,t._x_runEffects=()=>{t._x_effects.forEach(o=>o())}),t._x_effects.add(i),e=()=>{i!==void 0&&(t._x_effects.delete(i),Os(i))},i},()=>{e()}]}function fw(t,e){let n=!0,r,i=vo(()=>{let o=t();JSON.stringify(o),n?r=o:queueMicrotask(()=>{e(o,r),r=o}),n=!1});return()=>Os(i)}function ca(t,e,n={}){t.dispatchEvent(new CustomEvent(e,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function Xr(t,e){if(typeof ShadowRoot=="function"&&t instanceof ShadowRoot){Array.from(t.children).forEach(i=>Xr(i,e));return}let n=!1;if(e(t,()=>n=!0),n)return;let r=t.firstElementChild;for(;r;)Xr(r,e),r=r.nextElementSibling}function yr(t,...e){console.warn(`Alpine Warning: ${t}`,...e)}var vy=!1;function bC(){vy&&yr("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),vy=!0,document.body||yr("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),ca(document,"alpine:init"),ca(document,"alpine:initializing"),ag(),wC(e=>br(e,Xr)),ig(e=>rg(e)),Sw((e,n)=>{fg(e,n).forEach(r=>r())});let t=e=>!ed(e.parentElement,!0);Array.from(document.querySelectorAll(pw().join(","))).filter(t).forEach(e=>{br(e)}),ca(document,"alpine:initialized")}var ng=[],dw=[];function hw(){return ng.map(t=>t())}function pw(){return ng.concat(dw).map(t=>t())}function mw(t){ng.push(t)}function gw(t){dw.push(t)}function ed(t,e=!1){return td(t,n=>{if((e?pw():hw()).some(i=>n.matches(i)))return!0})}function td(t,e){if(t){if(e(t))return t;if(t._x_teleportBack&&(t=t._x_teleportBack),!!t.parentElement)return td(t.parentElement,e)}}function _C(t){return hw().some(e=>t.matches(e))}var vw=[];function SC(t){vw.push(t)}function br(t,e=Xr,n=()=>{}){LC(()=>{e(t,(r,i)=>{n(r,i),vw.forEach(o=>o(r,i)),fg(r,r.attributes).forEach(o=>o()),r._x_ignore&&i()})})}function rg(t){Xr(t,e=>{Aw(e),AC(e)})}var yw=[],bw=[],_w=[];function wC(t){_w.push(t)}function ig(t,e){typeof e=="function"?(t._x_cleanups||(t._x_cleanups=[]),t._x_cleanups.push(e)):(e=t,bw.push(e))}function Sw(t){yw.push(t)}function ww(t,e,n){t._x_attributeCleanups||(t._x_attributeCleanups={}),t._x_attributeCleanups[e]||(t._x_attributeCleanups[e]=[]),t._x_attributeCleanups[e].push(n)}function Aw(t,e){t._x_attributeCleanups&&Object.entries(t._x_attributeCleanups).forEach(([n,r])=>{(e===void 0||e.includes(n))&&(r.forEach(i=>i()),delete t._x_attributeCleanups[n])})}function AC(t){if(t._x_cleanups)for(;t._x_cleanups.length;)t._x_cleanups.pop()()}var og=new MutationObserver(cg),sg=!1;function ag(){og.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),sg=!0}function Ow(){OC(),og.disconnect(),sg=!1}var Ds=[];function OC(){let t=og.takeRecords();Ds.push(()=>t.length>0&&cg(t));let e=Ds.length;queueMicrotask(()=>{if(Ds.length===e)for(;Ds.length>0;)Ds.shift()()})}function st(t){if(!sg)return t();Ow();let e=t();return ag(),e}var lg=!1,of=[];function EC(){lg=!0}function PC(){lg=!1,cg(of),of=[]}function cg(t){if(lg){of=of.concat(t);return}let e=new Set,n=new Set,r=new Map,i=new Map;for(let o=0;o<t.length;o++)if(!t[o].target._x_ignoreMutationObserver&&(t[o].type==="childList"&&(t[o].addedNodes.forEach(s=>s.nodeType===1&&e.add(s)),t[o].removedNodes.forEach(s=>s.nodeType===1&&n.add(s))),t[o].type==="attributes")){let s=t[o].target,a=t[o].attributeName,l=t[o].oldValue,c=()=>{r.has(s)||r.set(s,[]),r.get(s).push({name:a,value:s.getAttribute(a)})},u=()=>{i.has(s)||i.set(s,[]),i.get(s).push(a)};s.hasAttribute(a)&&l===null?c():s.hasAttribute(a)?(u(),c()):u()}i.forEach((o,s)=>{Aw(s,o)}),r.forEach((o,s)=>{yw.forEach(a=>a(s,o))});for(let o of n)e.has(o)||(bw.forEach(s=>s(o)),rg(o));e.forEach(o=>{o._x_ignoreSelf=!0,o._x_ignore=!0});for(let o of e)n.has(o)||o.isConnected&&(delete o._x_ignoreSelf,delete o._x_ignore,_w.forEach(s=>s(o)),o._x_ignore=!0,o._x_ignoreSelf=!0);e.forEach(o=>{delete o._x_ignoreSelf,delete o._x_ignore}),e=null,n=null,r=null,i=null}function Ew(t){return uc(Jo(t))}function cc(t,e,n){return t._x_dataStack=[e,...Jo(n||t)],()=>{t._x_dataStack=t._x_dataStack.filter(r=>r!==e)}}function Jo(t){return t._x_dataStack?t._x_dataStack:typeof ShadowRoot=="function"&&t instanceof ShadowRoot?Jo(t.host):t.parentNode?Jo(t.parentNode):[]}function uc(t){return new Proxy({objects:t},xC)}var xC={ownKeys({objects:t}){return Array.from(new Set(t.flatMap(e=>Object.keys(e))))},has({objects:t},e){return e==Symbol.unscopables?!1:t.some(n=>Object.prototype.hasOwnProperty.call(n,e))},get({objects:t},e,n){return e=="toJSON"?CC:Reflect.get(t.find(r=>Object.prototype.hasOwnProperty.call(r,e))||{},e,n)},set({objects:t},e,n,r){const i=t.find(s=>Object.prototype.hasOwnProperty.call(s,e))||t[t.length-1],o=Object.getOwnPropertyDescriptor(i,e);return o!=null&&o.set&&(o!=null&&o.get)?Reflect.set(i,e,n,r):Reflect.set(i,e,n)}};function CC(){return Reflect.ownKeys(this).reduce((e,n)=>(e[n]=Reflect.get(this,n),e),{})}function Pw(t){let e=r=>typeof r=="object"&&!Array.isArray(r)&&r!==null,n=(r,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([o,{value:s,enumerable:a}])=>{if(a===!1||s===void 0)return;let l=i===""?o:`${i}.${o}`;typeof s=="object"&&s!==null&&s._x_interceptor?r[o]=s.initialize(t,l,o):e(s)&&s!==r&&!(s instanceof Element)&&n(s,l)})};return n(t)}function xw(t,e=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(r,i,o){return t(this.initialValue,()=>TC(r,i),s=>up(r,i,s),i,o)}};return e(n),r=>{if(typeof r=="object"&&r!==null&&r._x_interceptor){let i=n.initialize.bind(n);n.initialize=(o,s,a)=>{let l=r.initialize(o,s,a);return n.initialValue=l,i(o,s,a)}}else n.initialValue=r;return n}}function TC(t,e){return e.split(".").reduce((n,r)=>n[r],t)}function up(t,e,n){if(typeof e=="string"&&(e=e.split(".")),e.length===1)t[e[0]]=n;else{if(e.length===0)throw error;return t[e[0]]||(t[e[0]]={}),up(t[e[0]],e.slice(1),n)}}var Cw={};function Vn(t,e){Cw[t]=e}function fp(t,e){return Object.entries(Cw).forEach(([n,r])=>{let i=null;function o(){if(i)return i;{let[s,a]=jw(e);return i={interceptor:xw,...s},ig(e,a),i}}Object.defineProperty(t,`$${n}`,{get(){return r(e,o())},enumerable:!1})}),t}function IC(t,e,n,...r){try{return n(...r)}catch(i){Ta(i,t,e)}}function Ta(t,e,n=void 0){t=Object.assign(t??{message:"No error message given."},{el:e,expression:n}),console.warn(`Alpine Expression Error: ${t.message} ${n?'Expression: "'+n+`" `:""}`,e),setTimeout(()=>{throw t},0)}var Hu=!0;function Tw(t){let e=Hu;Hu=!1;let n=t();return Hu=e,n}function Hi(t,e,n={}){let r;return Vt(t,e)(i=>r=i,n),r}function Vt(...t){return Iw(...t)}var Iw=Rw;function RC(t){Iw=t}function Rw(t,e){let n={};fp(n,t);let r=[n,...Jo(t)],i=typeof e=="function"?$C(r,e):jC(r,e,t);return IC.bind(null,t,e,i)}function $C(t,e){return(n=()=>{},{scope:r={},params:i=[]}={})=>{let o=e.apply(uc([r,...t]),i);sf(n,o)}}var Xd={};function VC(t,e){if(Xd[t])return Xd[t];let n=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(t.trim())||/^(let|const)\s/.test(t.trim())?`(async()=>{ ${t} })()`:t,o=(()=>{try{let s=new n(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`);return Object.defineProperty(s,"name",{value:`[Alpine] ${t}`}),s}catch(s){return Ta(s,e,t),Promise.resolve()}})();return Xd[t]=o,o}function jC(t,e,n){let r=VC(e,n);return(i=()=>{},{scope:o={},params:s=[]}={})=>{r.result=void 0,r.finished=!1;let a=uc([o,...t]);if(typeof r=="function"){let l=r(r,a).catch(c=>Ta(c,n,e));r.finished?(sf(i,r.result,a,s,n),r.result=void 0):l.then(c=>{sf(i,c,a,s,n)}).catch(c=>Ta(c,n,e)).finally(()=>r.result=void 0)}}}function sf(t,e,n,r,i){if(Hu&&typeof e=="function"){let o=e.apply(n,r);o instanceof Promise?o.then(s=>sf(t,s,n,r)).catch(s=>Ta(s,i,e)):t(o)}else typeof e=="object"&&e instanceof Promise?e.then(o=>t(o)):t(e)}var ug="x-";function Es(t=""){return ug+t}function NC(t){ug=t}var dp={};function nt(t,e){return dp[t]=e,{before(n){if(!dp[n]){console.warn(String.raw`Cannot find directive \`${n}\`. \`${t}\` will use the default order of execution`);return}const r=Ni.indexOf(n);Ni.splice(r>=0?r:Ni.indexOf("DEFAULT"),0,t)}}}function fg(t,e,n){if(e=Array.from(e),t._x_virtualDirectives){let o=Object.entries(t._x_virtualDirectives).map(([a,l])=>({name:a,value:l})),s=$w(o);o=o.map(a=>s.find(l=>l.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),e=e.concat(o)}let r={};return e.map(Fw((o,s)=>r[o]=s)).filter(Mw).map(DC(r,n)).sort(MC).map(o=>FC(t,o))}function $w(t){return Array.from(t).map(Fw()).filter(e=>!Mw(e))}var hp=!1,na=new Map,Vw=Symbol();function LC(t){hp=!0;let e=Symbol();Vw=e,na.set(e,[]);let n=()=>{for(;na.get(e).length;)na.get(e).shift()();na.delete(e)},r=()=>{hp=!1,n()};t(n),r()}function jw(t){let e=[],n=a=>e.push(a),[r,i]=yC(t);return e.push(i),[{Alpine:dc,effect:r,cleanup:n,evaluateLater:Vt.bind(Vt,t),evaluate:Hi.bind(Hi,t)},()=>e.forEach(a=>a())]}function FC(t,e){let n=()=>{},r=dp[e.type]||n,[i,o]=jw(t);ww(t,e.original,o);let s=()=>{t._x_ignore||t._x_ignoreSelf||(r.inline&&r.inline(t,e,i),r=r.bind(r,t,e,i),hp?na.get(Vw).push(r):r())};return s.runCleanups=o,s}var Nw=(t,e)=>({name:n,value:r})=>(n.startsWith(t)&&(n=n.replace(t,e)),{name:n,value:r}),Lw=t=>t;function Fw(t=()=>{}){return({name:e,value:n})=>{let{name:r,value:i}=Dw.reduce((o,s)=>s(o),{name:e,value:n});return r!==e&&t(r,e),{name:r,value:i}}}var Dw=[];function dg(t){Dw.push(t)}function Mw({name:t}){return kw().test(t)}var kw=()=>new RegExp(`^${ug}([^:^.]+)\\b`);function DC(t,e){return({name:n,value:r})=>{let i=n.match(kw()),o=n.match(/:([a-zA-Z0-9\-_:]+)/),s=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=e||t[n]||n;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:s.map(l=>l.replace(".","")),expression:r,original:a}}}var pp="DEFAULT",Ni=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",pp,"teleport"];function MC(t,e){let n=Ni.indexOf(t.type)===-1?pp:t.type,r=Ni.indexOf(e.type)===-1?pp:e.type;return Ni.indexOf(n)-Ni.indexOf(r)}var mp=[],hg=!1;function pg(t=()=>{}){return queueMicrotask(()=>{hg||setTimeout(()=>{gp()})}),new Promise(e=>{mp.push(()=>{t(),e()})})}function gp(){for(hg=!1;mp.length;)mp.shift()()}function kC(){hg=!0}function mg(t,e){return Array.isArray(e)?yy(t,e.join(" ")):typeof e=="object"&&e!==null?BC(t,e):typeof e=="function"?mg(t,e()):yy(t,e)}function yy(t,e){let n=i=>i.split(" ").filter(o=>!t.classList.contains(o)).filter(Boolean),r=i=>(t.classList.add(...i),()=>{t.classList.remove(...i)});return e=e===!0?e="":e||"",r(n(e))}function BC(t,e){let n=a=>a.split(" ").filter(Boolean),r=Object.entries(e).flatMap(([a,l])=>l?n(a):!1).filter(Boolean),i=Object.entries(e).flatMap(([a,l])=>l?!1:n(a)).filter(Boolean),o=[],s=[];return i.forEach(a=>{t.classList.contains(a)&&(t.classList.remove(a),s.push(a))}),r.forEach(a=>{t.classList.contains(a)||(t.classList.add(a),o.push(a))}),()=>{s.forEach(a=>t.classList.add(a)),o.forEach(a=>t.classList.remove(a))}}function nd(t,e){return typeof e=="object"&&e!==null?HC(t,e):qC(t,e)}function HC(t,e){let n={};return Object.entries(e).forEach(([r,i])=>{n[r]=t.style[r],r.startsWith("--")||(r=WC(r)),t.style.setProperty(r,i)}),setTimeout(()=>{t.style.length===0&&t.removeAttribute("style")}),()=>{nd(t,n)}}function qC(t,e){let n=t.getAttribute("style",e);return t.setAttribute("style",e),()=>{t.setAttribute("style",n||"")}}function WC(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function vp(t,e=()=>{}){let n=!1;return function(){n?e.apply(this,arguments):(n=!0,t.apply(this,arguments))}}nt("transition",(t,{value:e,modifiers:n,expression:r},{evaluate:i})=>{typeof r=="function"&&(r=i(r)),r!==!1&&(!r||typeof r=="boolean"?QC(t,n,e):UC(t,r,e))});function UC(t,e,n){Bw(t,mg,""),{enter:i=>{t._x_transition.enter.during=i},"enter-start":i=>{t._x_transition.enter.start=i},"enter-end":i=>{t._x_transition.enter.end=i},leave:i=>{t._x_transition.leave.during=i},"leave-start":i=>{t._x_transition.leave.start=i},"leave-end":i=>{t._x_transition.leave.end=i}}[n](e)}function QC(t,e,n){Bw(t,nd);let r=!e.includes("in")&&!e.includes("out")&&!n,i=r||e.includes("in")||["enter"].includes(n),o=r||e.includes("out")||["leave"].includes(n);e.includes("in")&&!r&&(e=e.filter((v,b)=>b<e.indexOf("out"))),e.includes("out")&&!r&&(e=e.filter((v,b)=>b>e.indexOf("out")));let s=!e.includes("opacity")&&!e.includes("scale"),a=s||e.includes("opacity"),l=s||e.includes("scale"),c=a?0:1,u=l?Ms(e,"scale",95)/100:1,f=Ms(e,"delay",0)/1e3,h=Ms(e,"origin","center"),d="opacity, transform",p=Ms(e,"duration",150)/1e3,m=Ms(e,"duration",75)/1e3,g="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(t._x_transition.enter.during={transformOrigin:h,transitionDelay:`${f}s`,transitionProperty:d,transitionDuration:`${p}s`,transitionTimingFunction:g},t._x_transition.enter.start={opacity:c,transform:`scale(${u})`},t._x_transition.enter.end={opacity:1,transform:"scale(1)"}),o&&(t._x_transition.leave.during={transformOrigin:h,transitionDelay:`${f}s`,transitionProperty:d,transitionDuration:`${m}s`,transitionTimingFunction:g},t._x_transition.leave.start={opacity:1,transform:"scale(1)"},t._x_transition.leave.end={opacity:c,transform:`scale(${u})`})}function Bw(t,e,n={}){t._x_transition||(t._x_transition={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(r=()=>{},i=()=>{}){yp(t,e,{during:this.enter.during,start:this.enter.start,end:this.enter.end},r,i)},out(r=()=>{},i=()=>{}){yp(t,e,{during:this.leave.during,start:this.leave.start,end:this.leave.end},r,i)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(t,e,n,r){const i=document.visibilityState==="visible"?requestAnimationFrame:setTimeout;let o=()=>i(n);if(e){t._x_transition&&(t._x_transition.enter||t._x_transition.leave)?t._x_transition.enter&&(Object.entries(t._x_transition.enter.during).length||Object.entries(t._x_transition.enter.start).length||Object.entries(t._x_transition.enter.end).length)?t._x_transition.in(n):o():t._x_transition?t._x_transition.in(n):o();return}t._x_hidePromise=t._x_transition?new Promise((s,a)=>{t._x_transition.out(()=>{},()=>s(r)),t._x_transitioning&&t._x_transitioning.beforeCancel(()=>a({isFromCancelledTransition:!0}))}):Promise.resolve(r),queueMicrotask(()=>{let s=Hw(t);s?(s._x_hideChildren||(s._x_hideChildren=[]),s._x_hideChildren.push(t)):i(()=>{let a=l=>{let c=Promise.all([l._x_hidePromise,...(l._x_hideChildren||[]).map(a)]).then(([u])=>u());return delete l._x_hidePromise,delete l._x_hideChildren,c};a(t).catch(l=>{if(!l.isFromCancelledTransition)throw l})})})};function Hw(t){let e=t.parentNode;if(e)return e._x_hidePromise?e:Hw(e)}function yp(t,e,{during:n,start:r,end:i}={},o=()=>{},s=()=>{}){if(t._x_transitioning&&t._x_transitioning.cancel(),Object.keys(n).length===0&&Object.keys(r).length===0&&Object.keys(i).length===0){o(),s();return}let a,l,c;zC(t,{start(){a=e(t,r)},during(){l=e(t,n)},before:o,end(){a(),c=e(t,i)},after:s,cleanup(){l(),c()}})}function zC(t,e){let n,r,i,o=vp(()=>{st(()=>{n=!0,r||e.before(),i||(e.end(),gp()),e.after(),t.isConnected&&e.cleanup(),delete t._x_transitioning})});t._x_transitioning={beforeCancels:[],beforeCancel(s){this.beforeCancels.push(s)},cancel:vp(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()}),finish:o},st(()=>{e.start(),e.during()}),kC(),requestAnimationFrame(()=>{if(n)return;let s=Number(getComputedStyle(t).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,a=Number(getComputedStyle(t).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;s===0&&(s=Number(getComputedStyle(t).animationDuration.replace("s",""))*1e3),st(()=>{e.before()}),r=!0,requestAnimationFrame(()=>{n||(st(()=>{e.end()}),gp(),setTimeout(t._x_transitioning.finish,s+a),i=!0)})})}function Ms(t,e,n){if(t.indexOf(e)===-1)return n;const r=t[t.indexOf(e)+1];if(!r||e==="scale"&&isNaN(r))return n;if(e==="duration"||e==="delay"){let i=r.match(/([0-9]+)ms/);if(i)return i[1]}return e==="origin"&&["top","right","left","center","bottom"].includes(t[t.indexOf(e)+2])?[r,t[t.indexOf(e)+2]].join(" "):r}var ei=!1;function fc(t,e=()=>{}){return(...n)=>ei?e(...n):t(...n)}function KC(t){return(...e)=>ei&&t(...e)}var qw=[];function rd(t){qw.push(t)}function GC(t,e){qw.forEach(n=>n(t,e)),ei=!0,Ww(()=>{br(e,(n,r)=>{r(n,()=>{})})}),ei=!1}var bp=!1;function YC(t,e){e._x_dataStack||(e._x_dataStack=t._x_dataStack),ei=!0,bp=!0,Ww(()=>{JC(e)}),ei=!1,bp=!1}function JC(t){let e=!1;br(t,(r,i)=>{Xr(r,(o,s)=>{if(e&&_C(o))return s();e=!0,i(o,s)})})}function Ww(t){let e=vo;gy((n,r)=>{let i=e(n);return Os(i),()=>{}}),t(),gy(e)}function Uw(t,e,n,r=[]){switch(t._x_bindings||(t._x_bindings=As({})),t._x_bindings[e]=n,e=r.includes("camel")?oT(e):e,e){case"value":ZC(t,n);break;case"style":eT(t,n);break;case"class":XC(t,n);break;case"selected":case"checked":tT(t,e,n);break;default:Qw(t,e,n);break}}function ZC(t,e){if(t.type==="radio")t.attributes.value===void 0&&(t.value=e),window.fromModel&&(typeof e=="boolean"?t.checked=qu(t.value)===e:t.checked=by(t.value,e));else if(t.type==="checkbox")Number.isInteger(e)?t.value=e:!Array.isArray(e)&&typeof e!="boolean"&&![null,void 0].includes(e)?t.value=String(e):Array.isArray(e)?t.checked=e.some(n=>by(n,t.value)):t.checked=!!e;else if(t.tagName==="SELECT")iT(t,e);else{if(t.value===e)return;t.value=e===void 0?"":e}}function XC(t,e){t._x_undoAddedClasses&&t._x_undoAddedClasses(),t._x_undoAddedClasses=mg(t,e)}function eT(t,e){t._x_undoAddedStyles&&t._x_undoAddedStyles(),t._x_undoAddedStyles=nd(t,e)}function tT(t,e,n){Qw(t,e,n),rT(t,e,n)}function Qw(t,e,n){[null,void 0,!1].includes(n)&&sT(e)?t.removeAttribute(e):(zw(e)&&(n=e),nT(t,e,n))}function nT(t,e,n){t.getAttribute(e)!=n&&t.setAttribute(e,n)}function rT(t,e,n){t[e]!==n&&(t[e]=n)}function iT(t,e){const n=[].concat(e).map(r=>r+"");Array.from(t.options).forEach(r=>{r.selected=n.includes(r.value)})}function oT(t){return t.toLowerCase().replace(/-(\w)/g,(e,n)=>n.toUpperCase())}function by(t,e){return t==e}function qu(t){return[1,"1","true","on","yes",!0].includes(t)?!0:[0,"0","false","off","no",!1].includes(t)?!1:t?!!t:null}function zw(t){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(t)}function sT(t){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(t)}function aT(t,e,n){return t._x_bindings&&t._x_bindings[e]!==void 0?t._x_bindings[e]:Kw(t,e,n)}function lT(t,e,n,r=!0){if(t._x_bindings&&t._x_bindings[e]!==void 0)return t._x_bindings[e];if(t._x_inlineBindings&&t._x_inlineBindings[e]!==void 0){let i=t._x_inlineBindings[e];return i.extract=r,Tw(()=>Hi(t,i.expression))}return Kw(t,e,n)}function Kw(t,e,n){let r=t.getAttribute(e);return r===null?typeof n=="function"?n():n:r===""?!0:zw(e)?!![e,"true"].includes(r):r}function Gw(t,e){var n;return function(){var r=this,i=arguments,o=function(){n=null,t.apply(r,i)};clearTimeout(n),n=setTimeout(o,e)}}function Yw(t,e){let n;return function(){let r=this,i=arguments;n||(t.apply(r,i),n=!0,setTimeout(()=>n=!1,e))}}function Jw({get:t,set:e},{get:n,set:r}){let i=!0,o,s=vo(()=>{let a=t(),l=n();if(i)r(eh(a)),i=!1;else{let c=JSON.stringify(a),u=JSON.stringify(l);c!==o?r(eh(a)):c!==u&&e(eh(l))}o=JSON.stringify(t()),JSON.stringify(n())});return()=>{Os(s)}}function eh(t){return typeof t=="object"?JSON.parse(JSON.stringify(t)):t}function cT(t){(Array.isArray(t)?t:[t]).forEach(n=>n(dc))}var Ci={},_y=!1;function uT(t,e){if(_y||(Ci=As(Ci),_y=!0),e===void 0)return Ci[t];Ci[t]=e,typeof e=="object"&&e!==null&&e.hasOwnProperty("init")&&typeof e.init=="function"&&Ci[t].init(),Pw(Ci[t])}function fT(){return Ci}var Zw={};function dT(t,e){let n=typeof e!="function"?()=>e:e;return t instanceof Element?Xw(t,n()):(Zw[t]=n,()=>{})}function hT(t){return Object.entries(Zw).forEach(([e,n])=>{Object.defineProperty(t,e,{get(){return(...r)=>n(...r)}})}),t}function Xw(t,e,n){let r=[];for(;r.length;)r.pop()();let i=Object.entries(e).map(([s,a])=>({name:s,value:a})),o=$w(i);return i=i.map(s=>o.find(a=>a.name===s.name)?{name:`x-bind:${s.name}`,value:`"${s.value}"`}:s),fg(t,i,n).map(s=>{r.push(s.runCleanups),s()}),()=>{for(;r.length;)r.pop()()}}var eA={};function pT(t,e){eA[t]=e}function mT(t,e){return Object.entries(eA).forEach(([n,r])=>{Object.defineProperty(t,n,{get(){return(...i)=>r.bind(e)(...i)},enumerable:!1})}),t}var gT={get reactive(){return As},get release(){return Os},get effect(){return vo},get raw(){return uw},version:"3.13.5",flushAndStopDeferringMutations:PC,dontAutoEvaluateFunctions:Tw,disableEffectScheduling:gC,startObservingMutations:ag,stopObservingMutations:Ow,setReactivityEngine:vC,onAttributeRemoved:ww,onAttributesAdded:Sw,closestDataStack:Jo,skipDuringClone:fc,onlyDuringClone:KC,addRootSelector:mw,addInitSelector:gw,interceptClone:rd,addScopeToNode:cc,deferMutations:EC,mapAttributes:dg,evaluateLater:Vt,interceptInit:SC,setEvaluator:RC,mergeProxies:uc,extractProp:lT,findClosest:td,onElRemoved:ig,closestRoot:ed,destroyTree:rg,interceptor:xw,transition:yp,setStyles:nd,mutateDom:st,directive:nt,entangle:Jw,throttle:Yw,debounce:Gw,evaluate:Hi,initTree:br,nextTick:pg,prefixed:Es,prefix:NC,plugin:cT,magic:Vn,store:uT,start:bC,clone:YC,cloneNode:GC,bound:aT,$data:Ew,watch:fw,walk:Xr,data:pT,bind:dT},dc=gT;function vT(t,e){const n=Object.create(null),r=t.split(",");for(let i=0;i<r.length;i++)n[r[i]]=!0;return e?i=>!!n[i.toLowerCase()]:i=>!!n[i]}var yT=Object.freeze({}),bT=Object.prototype.hasOwnProperty,id=(t,e)=>bT.call(t,e),qi=Array.isArray,ua=t=>tA(t)==="[object Map]",_T=t=>typeof t=="string",gg=t=>typeof t=="symbol",od=t=>t!==null&&typeof t=="object",ST=Object.prototype.toString,tA=t=>ST.call(t),nA=t=>tA(t).slice(8,-1),vg=t=>_T(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,wT=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},AT=wT(t=>t.charAt(0).toUpperCase()+t.slice(1)),rA=(t,e)=>t!==e&&(t===t||e===e),_p=new WeakMap,ks=[],Bn,Wi=Symbol("iterate"),Sp=Symbol("Map key iterate");function OT(t){return t&&t._isEffect===!0}function ET(t,e=yT){OT(t)&&(t=t.raw);const n=CT(t,e);return e.lazy||n(),n}function PT(t){t.active&&(iA(t),t.options.onStop&&t.options.onStop(),t.active=!1)}var xT=0;function CT(t,e){const n=function(){if(!n.active)return t();if(!ks.includes(n)){iA(n);try{return IT(),ks.push(n),Bn=n,t()}finally{ks.pop(),oA(),Bn=ks[ks.length-1]}}};return n.id=xT++,n.allowRecurse=!!e.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=t,n.deps=[],n.options=e,n}function iA(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}var Zo=!0,yg=[];function TT(){yg.push(Zo),Zo=!1}function IT(){yg.push(Zo),Zo=!0}function oA(){const t=yg.pop();Zo=t===void 0?!0:t}function Rn(t,e,n){if(!Zo||Bn===void 0)return;let r=_p.get(t);r||_p.set(t,r=new Map);let i=r.get(n);i||r.set(n,i=new Set),i.has(Bn)||(i.add(Bn),Bn.deps.push(i),Bn.options.onTrack&&Bn.options.onTrack({effect:Bn,target:t,type:e,key:n}))}function ti(t,e,n,r,i,o){const s=_p.get(t);if(!s)return;const a=new Set,l=u=>{u&&u.forEach(f=>{(f!==Bn||f.allowRecurse)&&a.add(f)})};if(e==="clear")s.forEach(l);else if(n==="length"&&qi(t))s.forEach((u,f)=>{(f==="length"||f>=r)&&l(u)});else switch(n!==void 0&&l(s.get(n)),e){case"add":qi(t)?vg(n)&&l(s.get("length")):(l(s.get(Wi)),ua(t)&&l(s.get(Sp)));break;case"delete":qi(t)||(l(s.get(Wi)),ua(t)&&l(s.get(Sp)));break;case"set":ua(t)&&l(s.get(Wi));break}const c=u=>{u.options.onTrigger&&u.options.onTrigger({effect:u,target:t,key:n,type:e,newValue:r,oldValue:i,oldTarget:o}),u.options.scheduler?u.options.scheduler(u):u()};a.forEach(c)}var RT=vT("__proto__,__v_isRef,__isVue"),sA=new Set(Object.getOwnPropertyNames(Symbol).map(t=>Symbol[t]).filter(gg)),$T=aA(),VT=aA(!0),Sy=jT();function jT(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const r=Be(this);for(let o=0,s=this.length;o<s;o++)Rn(r,"get",o+"");const i=r[e](...n);return i===-1||i===!1?r[e](...n.map(Be)):i}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){TT();const r=Be(this)[e].apply(this,n);return oA(),r}}),t}function aA(t=!1,e=!1){return function(r,i,o){if(i==="__v_isReactive")return!t;if(i==="__v_isReadonly")return t;if(i==="__v_raw"&&o===(t?e?YT:fA:e?GT:uA).get(r))return r;const s=qi(r);if(!t&&s&&id(Sy,i))return Reflect.get(Sy,i,o);const a=Reflect.get(r,i,o);return(gg(i)?sA.has(i):RT(i))||(t||Rn(r,"get",i),e)?a:wp(a)?!s||!vg(i)?a.value:a:od(a)?t?dA(a):wg(a):a}}var NT=LT();function LT(t=!1){return function(n,r,i,o){let s=n[r];if(!t&&(i=Be(i),s=Be(s),!qi(n)&&wp(s)&&!wp(i)))return s.value=i,!0;const a=qi(n)&&vg(r)?Number(r)<n.length:id(n,r),l=Reflect.set(n,r,i,o);return n===Be(o)&&(a?rA(i,s)&&ti(n,"set",r,i,s):ti(n,"add",r,i)),l}}function FT(t,e){const n=id(t,e),r=t[e],i=Reflect.deleteProperty(t,e);return i&&n&&ti(t,"delete",e,void 0,r),i}function DT(t,e){const n=Reflect.has(t,e);return(!gg(e)||!sA.has(e))&&Rn(t,"has",e),n}function MT(t){return Rn(t,"iterate",qi(t)?"length":Wi),Reflect.ownKeys(t)}var kT={get:$T,set:NT,deleteProperty:FT,has:DT,ownKeys:MT},BT={get:VT,set(t,e){return console.warn(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0},deleteProperty(t,e){return console.warn(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0}},bg=t=>od(t)?wg(t):t,_g=t=>od(t)?dA(t):t,Sg=t=>t,sd=t=>Reflect.getPrototypeOf(t);function zc(t,e,n=!1,r=!1){t=t.__v_raw;const i=Be(t),o=Be(e);e!==o&&!n&&Rn(i,"get",e),!n&&Rn(i,"get",o);const{has:s}=sd(i),a=r?Sg:n?_g:bg;if(s.call(i,e))return a(t.get(e));if(s.call(i,o))return a(t.get(o));t!==i&&t.get(e)}function Kc(t,e=!1){const n=this.__v_raw,r=Be(n),i=Be(t);return t!==i&&!e&&Rn(r,"has",t),!e&&Rn(r,"has",i),t===i?n.has(t):n.has(t)||n.has(i)}function Gc(t,e=!1){return t=t.__v_raw,!e&&Rn(Be(t),"iterate",Wi),Reflect.get(t,"size",t)}function wy(t){t=Be(t);const e=Be(this);return sd(e).has.call(e,t)||(e.add(t),ti(e,"add",t,t)),this}function Ay(t,e){e=Be(e);const n=Be(this),{has:r,get:i}=sd(n);let o=r.call(n,t);o?cA(n,r,t):(t=Be(t),o=r.call(n,t));const s=i.call(n,t);return n.set(t,e),o?rA(e,s)&&ti(n,"set",t,e,s):ti(n,"add",t,e),this}function Oy(t){const e=Be(this),{has:n,get:r}=sd(e);let i=n.call(e,t);i?cA(e,n,t):(t=Be(t),i=n.call(e,t));const o=r?r.call(e,t):void 0,s=e.delete(t);return i&&ti(e,"delete",t,void 0,o),s}function Ey(){const t=Be(this),e=t.size!==0,n=ua(t)?new Map(t):new Set(t),r=t.clear();return e&&ti(t,"clear",void 0,void 0,n),r}function Yc(t,e){return function(r,i){const o=this,s=o.__v_raw,a=Be(s),l=e?Sg:t?_g:bg;return!t&&Rn(a,"iterate",Wi),s.forEach((c,u)=>r.call(i,l(c),l(u),o))}}function Jc(t,e,n){return function(...r){const i=this.__v_raw,o=Be(i),s=ua(o),a=t==="entries"||t===Symbol.iterator&&s,l=t==="keys"&&s,c=i[t](...r),u=n?Sg:e?_g:bg;return!e&&Rn(o,"iterate",l?Sp:Wi),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:a?[u(f[0]),u(f[1])]:u(f),done:h}},[Symbol.iterator](){return this}}}}function xr(t){return function(...e){{const n=e[0]?`on key "${e[0]}" `:"";console.warn(`${AT(t)} operation ${n}failed: target is readonly.`,Be(this))}return t==="delete"?!1:this}}function HT(){const t={get(o){return zc(this,o)},get size(){return Gc(this)},has:Kc,add:wy,set:Ay,delete:Oy,clear:Ey,forEach:Yc(!1,!1)},e={get(o){return zc(this,o,!1,!0)},get size(){return Gc(this)},has:Kc,add:wy,set:Ay,delete:Oy,clear:Ey,forEach:Yc(!1,!0)},n={get(o){return zc(this,o,!0)},get size(){return Gc(this,!0)},has(o){return Kc.call(this,o,!0)},add:xr("add"),set:xr("set"),delete:xr("delete"),clear:xr("clear"),forEach:Yc(!0,!1)},r={get(o){return zc(this,o,!0,!0)},get size(){return Gc(this,!0)},has(o){return Kc.call(this,o,!0)},add:xr("add"),set:xr("set"),delete:xr("delete"),clear:xr("clear"),forEach:Yc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{t[o]=Jc(o,!1,!1),n[o]=Jc(o,!0,!1),e[o]=Jc(o,!1,!0),r[o]=Jc(o,!0,!0)}),[t,n,e,r]}var[qT,WT,UT,QT]=HT();function lA(t,e){const n=e?t?QT:UT:t?WT:qT;return(r,i,o)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?r:Reflect.get(id(n,i)&&i in r?n:r,i,o)}var zT={get:lA(!1,!1)},KT={get:lA(!0,!1)};function cA(t,e,n){const r=Be(n);if(r!==n&&e.call(t,r)){const i=nA(t);console.warn(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var uA=new WeakMap,GT=new WeakMap,fA=new WeakMap,YT=new WeakMap;function JT(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ZT(t){return t.__v_skip||!Object.isExtensible(t)?0:JT(nA(t))}function wg(t){return t&&t.__v_isReadonly?t:hA(t,!1,kT,zT,uA)}function dA(t){return hA(t,!0,BT,KT,fA)}function hA(t,e,n,r,i){if(!od(t))return console.warn(`value cannot be made reactive: ${String(t)}`),t;if(t.__v_raw&&!(e&&t.__v_isReactive))return t;const o=i.get(t);if(o)return o;const s=ZT(t);if(s===0)return t;const a=new Proxy(t,s===2?r:n);return i.set(t,a),a}function Be(t){return t&&Be(t.__v_raw)||t}function wp(t){return!!(t&&t.__v_isRef===!0)}Vn("nextTick",()=>pg);Vn("dispatch",t=>ca.bind(ca,t));Vn("watch",(t,{evaluateLater:e,cleanup:n})=>(r,i)=>{let o=e(r),a=fw(()=>{let l;return o(c=>l=c),l},i);n(a)});Vn("store",fT);Vn("data",t=>Ew(t));Vn("root",t=>ed(t));Vn("refs",t=>(t._x_refs_proxy||(t._x_refs_proxy=uc(XT(t))),t._x_refs_proxy));function XT(t){let e=[],n=t;for(;n;)n._x_refs&&e.push(n._x_refs),n=n.parentNode;return e}var th={};function pA(t){return th[t]||(th[t]=0),++th[t]}function eI(t,e){return td(t,n=>{if(n._x_ids&&n._x_ids[e])return!0})}function tI(t,e){t._x_ids||(t._x_ids={}),t._x_ids[e]||(t._x_ids[e]=pA(e))}Vn("id",(t,{cleanup:e})=>(n,r=null)=>{let i=`${n}${r?`-${r}`:""}`;return nI(t,i,e,()=>{let o=eI(t,n),s=o?o._x_ids[n]:pA(n);return r?`${n}-${s}-${r}`:`${n}-${s}`})});rd((t,e)=>{t._x_id&&(e._x_id=t._x_id)});function nI(t,e,n,r){if(t._x_id||(t._x_id={}),t._x_id[e])return t._x_id[e];let i=r();return t._x_id[e]=i,n(()=>{delete t._x_id[e]}),i}Vn("el",t=>t);mA("Focus","focus","focus");mA("Persist","persist","persist");function mA(t,e,n){Vn(e,r=>yr(`You can't use [$${e}] without first installing the "${t}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}nt("modelable",(t,{expression:e},{effect:n,evaluateLater:r,cleanup:i})=>{let o=r(e),s=()=>{let u;return o(f=>u=f),u},a=r(`${e} = __placeholder`),l=u=>a(()=>{},{scope:{__placeholder:u}}),c=s();l(c),queueMicrotask(()=>{if(!t._x_model)return;t._x_removeModelListeners.default();let u=t._x_model.get,f=t._x_model.set,h=Jw({get(){return u()},set(d){f(d)}},{get(){return s()},set(d){l(d)}});i(h)})});nt("teleport",(t,{modifiers:e,expression:n},{cleanup:r})=>{t.tagName.toLowerCase()!=="template"&&yr("x-teleport can only be used on a <template> tag",t);let i=Py(n),o=t.content.cloneNode(!0).firstElementChild;t._x_teleport=o,o._x_teleportBack=t,t.setAttribute("data-teleport-template",!0),o.setAttribute("data-teleport-target",!0),t._x_forwardEvents&&t._x_forwardEvents.forEach(a=>{o.addEventListener(a,l=>{l.stopPropagation(),t.dispatchEvent(new l.constructor(l.type,l))})}),cc(o,{},t);let s=(a,l,c)=>{c.includes("prepend")?l.parentNode.insertBefore(a,l):c.includes("append")?l.parentNode.insertBefore(a,l.nextSibling):l.appendChild(a)};st(()=>{s(o,i,e),br(o),o._x_ignore=!0}),t._x_teleportPutBack=()=>{let a=Py(n);st(()=>{s(t._x_teleport,a,e)})},r(()=>o.remove())});var rI=document.createElement("div");function Py(t){let e=fc(()=>document.querySelector(t),()=>rI)();return e||yr(`Cannot find x-teleport element for selector: "${t}"`),e}var gA=()=>{};gA.inline=(t,{modifiers:e},{cleanup:n})=>{e.includes("self")?t._x_ignoreSelf=!0:t._x_ignore=!0,n(()=>{e.includes("self")?delete t._x_ignoreSelf:delete t._x_ignore})};nt("ignore",gA);nt("effect",fc((t,{expression:e},{effect:n})=>{n(Vt(t,e))}));function Ap(t,e,n,r){let i=t,o=l=>r(l),s={},a=(l,c)=>u=>c(l,u);if(n.includes("dot")&&(e=iI(e)),n.includes("camel")&&(e=oI(e)),n.includes("passive")&&(s.passive=!0),n.includes("capture")&&(s.capture=!0),n.includes("window")&&(i=window),n.includes("document")&&(i=document),n.includes("debounce")){let l=n[n.indexOf("debounce")+1]||"invalid-wait",c=af(l.split("ms")[0])?Number(l.split("ms")[0]):250;o=Gw(o,c)}if(n.includes("throttle")){let l=n[n.indexOf("throttle")+1]||"invalid-wait",c=af(l.split("ms")[0])?Number(l.split("ms")[0]):250;o=Yw(o,c)}return n.includes("prevent")&&(o=a(o,(l,c)=>{c.preventDefault(),l(c)})),n.includes("stop")&&(o=a(o,(l,c)=>{c.stopPropagation(),l(c)})),n.includes("self")&&(o=a(o,(l,c)=>{c.target===t&&l(c)})),(n.includes("away")||n.includes("outside"))&&(i=document,o=a(o,(l,c)=>{t.contains(c.target)||c.target.isConnected!==!1&&(t.offsetWidth<1&&t.offsetHeight<1||t._x_isShown!==!1&&l(c))})),n.includes("once")&&(o=a(o,(l,c)=>{l(c),i.removeEventListener(e,o,s)})),o=a(o,(l,c)=>{aI(e)&&lI(c,n)||l(c)}),i.addEventListener(e,o,s),()=>{i.removeEventListener(e,o,s)}}function iI(t){return t.replace(/-/g,".")}function oI(t){return t.toLowerCase().replace(/-(\w)/g,(e,n)=>n.toUpperCase())}function af(t){return!Array.isArray(t)&&!isNaN(t)}function sI(t){return[" ","_"].includes(t)?t:t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function aI(t){return["keydown","keyup"].includes(t)}function lI(t,e){let n=e.filter(o=>!["window","document","prevent","stop","once","capture"].includes(o));if(n.includes("debounce")){let o=n.indexOf("debounce");n.splice(o,af((n[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.includes("throttle")){let o=n.indexOf("throttle");n.splice(o,af((n[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.length===0||n.length===1&&xy(t.key).includes(n[0]))return!1;const i=["ctrl","shift","alt","meta","cmd","super"].filter(o=>n.includes(o));return n=n.filter(o=>!i.includes(o)),!(i.length>0&&i.filter(s=>((s==="cmd"||s==="super")&&(s="meta"),t[`${s}Key`])).length===i.length&&xy(t.key).includes(n[0]))}function xy(t){if(!t)return[];t=sI(t);let e={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",equal:"=",minus:"-",underscore:"_"};return e[t]=t,Object.keys(e).map(n=>{if(e[n]===t)return n}).filter(n=>n)}nt("model",(t,{modifiers:e,expression:n},{effect:r,cleanup:i})=>{let o=t;e.includes("parent")&&(o=t.parentNode);let s=Vt(o,n),a;typeof n=="string"?a=Vt(o,`${n} = __placeholder`):typeof n=="function"&&typeof n()=="string"?a=Vt(o,`${n()} = __placeholder`):a=()=>{};let l=()=>{let h;return s(d=>h=d),Cy(h)?h.get():h},c=h=>{let d;s(p=>d=p),Cy(d)?d.set(h):a(()=>{},{scope:{__placeholder:h}})};typeof n=="string"&&t.type==="radio"&&st(()=>{t.hasAttribute("name")||t.setAttribute("name",n)});var u=t.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(t.type)||e.includes("lazy")?"change":"input";let f=ei?()=>{}:Ap(t,u,e,h=>{c(cI(t,e,h,l()))});if(e.includes("fill")&&([void 0,null,""].includes(l())||t.type==="checkbox"&&Array.isArray(l()))&&t.dispatchEvent(new Event(u,{})),t._x_removeModelListeners||(t._x_removeModelListeners={}),t._x_removeModelListeners.default=f,i(()=>t._x_removeModelListeners.default()),t.form){let h=Ap(t.form,"reset",[],d=>{pg(()=>t._x_model&&t._x_model.set(t.value))});i(()=>h())}t._x_model={get(){return l()},set(h){c(h)}},t._x_forceModelUpdate=h=>{h===void 0&&typeof n=="string"&&n.match(/\./)&&(h=""),window.fromModel=!0,st(()=>Uw(t,"value",h)),delete window.fromModel},r(()=>{let h=l();e.includes("unintrusive")&&document.activeElement.isSameNode(t)||t._x_forceModelUpdate(h)})});function cI(t,e,n,r){return st(()=>{if(n instanceof CustomEvent&&n.detail!==void 0)return n.detail!==null&&n.detail!==void 0?n.detail:n.target.value;if(t.type==="checkbox")if(Array.isArray(r)){let i=null;return e.includes("number")?i=nh(n.target.value):e.includes("boolean")?i=qu(n.target.value):i=n.target.value,n.target.checked?r.concat([i]):r.filter(o=>!uI(o,i))}else return n.target.checked;else return t.tagName.toLowerCase()==="select"&&t.multiple?e.includes("number")?Array.from(n.target.selectedOptions).map(i=>{let o=i.value||i.text;return nh(o)}):e.includes("boolean")?Array.from(n.target.selectedOptions).map(i=>{let o=i.value||i.text;return qu(o)}):Array.from(n.target.selectedOptions).map(i=>i.value||i.text):e.includes("number")?nh(n.target.value):e.includes("boolean")?qu(n.target.value):e.includes("trim")?n.target.value.trim():n.target.value})}function nh(t){let e=t?parseFloat(t):null;return fI(e)?e:t}function uI(t,e){return t==e}function fI(t){return!Array.isArray(t)&&!isNaN(t)}function Cy(t){return t!==null&&typeof t=="object"&&typeof t.get=="function"&&typeof t.set=="function"}nt("cloak",t=>queueMicrotask(()=>st(()=>t.removeAttribute(Es("cloak")))));gw(()=>`[${Es("init")}]`);nt("init",fc((t,{expression:e},{evaluate:n})=>typeof e=="string"?!!e.trim()&&n(e,{},!1):n(e,{},!1)));nt("text",(t,{expression:e},{effect:n,evaluateLater:r})=>{let i=r(e);n(()=>{i(o=>{st(()=>{t.textContent=o})})})});nt("html",(t,{expression:e},{effect:n,evaluateLater:r})=>{let i=r(e);n(()=>{i(o=>{st(()=>{t.innerHTML=o,t._x_ignoreSelf=!0,br(t),delete t._x_ignoreSelf})})})});dg(Nw(":",Lw(Es("bind:"))));var vA=(t,{value:e,modifiers:n,expression:r,original:i},{effect:o})=>{if(!e){let a={};hT(a),Vt(t,r)(c=>{Xw(t,c,i)},{scope:a});return}if(e==="key")return dI(t,r);if(t._x_inlineBindings&&t._x_inlineBindings[e]&&t._x_inlineBindings[e].extract)return;let s=Vt(t,r);o(()=>s(a=>{a===void 0&&typeof r=="string"&&r.match(/\./)&&(a=""),st(()=>Uw(t,e,a,n))}))};vA.inline=(t,{value:e,modifiers:n,expression:r})=>{e&&(t._x_inlineBindings||(t._x_inlineBindings={}),t._x_inlineBindings[e]={expression:r,extract:!1})};nt("bind",vA);function dI(t,e){t._x_keyExpression=e}mw(()=>`[${Es("data")}]`);nt("data",(t,{expression:e},{cleanup:n})=>{if(hI(t))return;e=e===""?"{}":e;let r={};fp(r,t);let i={};mT(i,r);let o=Hi(t,e,{scope:i});(o===void 0||o===!0)&&(o={}),fp(o,t);let s=As(o);Pw(s);let a=cc(t,s);s.init&&Hi(t,s.init),n(()=>{s.destroy&&Hi(t,s.destroy),a()})});rd((t,e)=>{t._x_dataStack&&(e._x_dataStack=t._x_dataStack,e.setAttribute("data-has-alpine-state",!0))});function hI(t){return ei?bp?!0:t.hasAttribute("data-has-alpine-state"):!1}nt("show",(t,{modifiers:e,expression:n},{effect:r})=>{let i=Vt(t,n);t._x_doHide||(t._x_doHide=()=>{st(()=>{t.style.setProperty("display","none",e.includes("important")?"important":void 0)})}),t._x_doShow||(t._x_doShow=()=>{st(()=>{t.style.length===1&&t.style.display==="none"?t.removeAttribute("style"):t.style.removeProperty("display")})});let o=()=>{t._x_doHide(),t._x_isShown=!1},s=()=>{t._x_doShow(),t._x_isShown=!0},a=()=>setTimeout(s),l=vp(f=>f?s():o(),f=>{typeof t._x_toggleAndCascadeWithTransitions=="function"?t._x_toggleAndCascadeWithTransitions(t,f,s,o):f?a():o()}),c,u=!0;r(()=>i(f=>{!u&&f===c||(e.includes("immediate")&&(f?a():o()),l(f),c=f,u=!1)}))});nt("for",(t,{expression:e},{effect:n,cleanup:r})=>{let i=mI(e),o=Vt(t,i.items),s=Vt(t,t._x_keyExpression||"index");t._x_prevKeys=[],t._x_lookup={},n(()=>pI(t,i,o,s)),r(()=>{Object.values(t._x_lookup).forEach(a=>a.remove()),delete t._x_prevKeys,delete t._x_lookup})});function pI(t,e,n,r){let i=s=>typeof s=="object"&&!Array.isArray(s),o=t;n(s=>{gI(s)&&s>=0&&(s=Array.from(Array(s).keys(),g=>g+1)),s===void 0&&(s=[]);let a=t._x_lookup,l=t._x_prevKeys,c=[],u=[];if(i(s))s=Object.entries(s).map(([g,v])=>{let b=Ty(e,v,g,s);r(y=>u.push(y),{scope:{index:g,...b}}),c.push(b)});else for(let g=0;g<s.length;g++){let v=Ty(e,s[g],g,s);r(b=>u.push(b),{scope:{index:g,...v}}),c.push(v)}let f=[],h=[],d=[],p=[];for(let g=0;g<l.length;g++){let v=l[g];u.indexOf(v)===-1&&d.push(v)}l=l.filter(g=>!d.includes(g));let m="template";for(let g=0;g<u.length;g++){let v=u[g],b=l.indexOf(v);if(b===-1)l.splice(g,0,v),f.push([m,g]);else if(b!==g){let y=l.splice(g,1)[0],_=l.splice(b-1,1)[0];l.splice(g,0,_),l.splice(b,0,y),h.push([y,_])}else p.push(v);m=v}for(let g=0;g<d.length;g++){let v=d[g];a[v]._x_effects&&a[v]._x_effects.forEach(cw),a[v].remove(),a[v]=null,delete a[v]}for(let g=0;g<h.length;g++){let[v,b]=h[g],y=a[v],_=a[b],A=document.createElement("div");st(()=>{_||yr('x-for ":key" is undefined or invalid',o),_.after(A),y.after(_),_._x_currentIfEl&&_.after(_._x_currentIfEl),A.before(y),y._x_currentIfEl&&y.after(y._x_currentIfEl),A.remove()}),_._x_refreshXForScope(c[u.indexOf(b)])}for(let g=0;g<f.length;g++){let[v,b]=f[g],y=v==="template"?o:a[v];y._x_currentIfEl&&(y=y._x_currentIfEl);let _=c[b],A=u[b],C=document.importNode(o.content,!0).firstElementChild,x=As(_);cc(C,x,o),C._x_refreshXForScope=S=>{Object.entries(S).forEach(([w,O])=>{x[w]=O})},st(()=>{y.after(C),br(C)}),typeof A=="object"&&yr("x-for key cannot be an object, it must be a string or an integer",o),a[A]=C}for(let g=0;g<p.length;g++)a[p[g]]._x_refreshXForScope(c[u.indexOf(p[g])]);o._x_prevKeys=u})}function mI(t){let e=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,n=/^\s*\(|\)\s*$/g,r=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,i=t.match(r);if(!i)return;let o={};o.items=i[2].trim();let s=i[1].replace(n,"").trim(),a=s.match(e);return a?(o.item=s.replace(e,"").trim(),o.index=a[1].trim(),a[2]&&(o.collection=a[2].trim())):o.item=s,o}function Ty(t,e,n,r){let i={};return/^\[.*\]$/.test(t.item)&&Array.isArray(e)?t.item.replace("[","").replace("]","").split(",").map(s=>s.trim()).forEach((s,a)=>{i[s]=e[a]}):/^\{.*\}$/.test(t.item)&&!Array.isArray(e)&&typeof e=="object"?t.item.replace("{","").replace("}","").split(",").map(s=>s.trim()).forEach(s=>{i[s]=e[s]}):i[t.item]=e,t.index&&(i[t.index]=n),t.collection&&(i[t.collection]=r),i}function gI(t){return!Array.isArray(t)&&!isNaN(t)}function yA(){}yA.inline=(t,{expression:e},{cleanup:n})=>{let r=ed(t);r._x_refs||(r._x_refs={}),r._x_refs[e]=t,n(()=>delete r._x_refs[e])};nt("ref",yA);nt("if",(t,{expression:e},{effect:n,cleanup:r})=>{t.tagName.toLowerCase()!=="template"&&yr("x-if can only be used on a <template> tag",t);let i=Vt(t,e),o=()=>{if(t._x_currentIfEl)return t._x_currentIfEl;let a=t.content.cloneNode(!0).firstElementChild;return cc(a,{},t),st(()=>{t.after(a),br(a)}),t._x_currentIfEl=a,t._x_undoIf=()=>{Xr(a,l=>{l._x_effects&&l._x_effects.forEach(cw)}),a.remove(),delete t._x_currentIfEl},a},s=()=>{t._x_undoIf&&(t._x_undoIf(),delete t._x_undoIf)};n(()=>i(a=>{a?o():s()})),r(()=>t._x_undoIf&&t._x_undoIf())});nt("id",(t,{expression:e},{evaluate:n})=>{n(e).forEach(i=>tI(t,i))});rd((t,e)=>{t._x_ids&&(e._x_ids=t._x_ids)});dg(Nw("@",Lw(Es("on:"))));nt("on",fc((t,{value:e,modifiers:n,expression:r},{cleanup:i})=>{let o=r?Vt(t,r):()=>{};t.tagName.toLowerCase()==="template"&&(t._x_forwardEvents||(t._x_forwardEvents=[]),t._x_forwardEvents.includes(e)||t._x_forwardEvents.push(e));let s=Ap(t,e,n,a=>{o(()=>{},{scope:{$event:a},params:[a]})});i(()=>s())}));ad("Collapse","collapse","collapse");ad("Intersect","intersect","intersect");ad("Focus","trap","focus");ad("Mask","mask","mask");function ad(t,e,n){nt(e,r=>yr(`You can't use [x-${e}] without first installing the "${t}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}dc.setEvaluator(Rw);dc.setReactivityEngine({reactive:wg,effect:ET,release:PT,raw:Be});var vI=dc,Ag=vI;const yI=()=>({menuActive:!1,slideOverOpen:!1,init(){this.$watch("slideOverOpen",t=>{t||this.$dispatch("close-menus")})}});window.Alpine=Ag;Ag.data("app",yI);Ag.start();const bI=document.querySelectorAll(".animatedNumber"),_I=document.querySelector(".bodyWrapper");function SI(t,e,n,r,i,o){function s(){n<e?(t.innerText=Math.ceil(n+i),n+=i,requestAnimationFrame(s)):t.innerText=e}s()}function wI(){return Math.floor(Math.random()*1e3)+2e3}function AI(){bI.forEach(t=>{const e=t.classList.contains("alive"),n=t.getAttribute("data-animated")==="true";if(e&&!n){const r=+t.getAttribute("data-number");let i=+t.innerText;const o=wI()/16,s=(r-i)/o;SI(t,r,i,o,s),t.setAttribute("data-animated","true")}else e||(t.innerText=0,t.setAttribute("data-animated","false"))})}_I.addEventListener("scroll",AI);const Iy=document.querySelector("header");Iy&&OI(Iy);function OI(t){const e=t.nextElementSibling,n=document.querySelector(".breadcrumbs");!e||!n||(e.classList.contains("bg-red-800")?n.classList.add("bg-is-red"):e.classList.contains("bg-gray-700")&&n.classList.add("bg-is-gray"))}document.addEventListener("DOMContentLoaded",function(){if(document.getElementById("budget_calculator")){let a=function(_){return _.replace(/,/g,".").replace(/[^0-9.]/g,"")},l=function(_){const A=a(_.target.value);_.target.value=A},c=function(_,A){switch(A){case"frequency_by_week":return _*52/12;case"frequency_by_two_week":return _*26/12;case"frequency_by_year":return _/12;default:return _}},u=function(){let _=0,A=0;document.querySelectorAll(".total_revenus input").forEach(R=>{const M=parseFloat(a(R.value))||0,k=R.closest(".input_group");if(k){const B=k.querySelector("select"),z=B?B.value:"frequency_by_month";_+=c(M,z)}}),document.querySelectorAll("#budget_calculator input").forEach(R=>{if(!R.closest(".total_revenus")){const M=parseFloat(a(R.value))||0,k=R.closest(".input_group");if(k){const B=k.querySelector("select"),z=B?B.value:"frequency_by_month";A+=c(M,z)}}});const C=document.querySelector(".result_revenues"),x=document.querySelector(".result_expenses"),S=document.querySelector(".result_difference");C.textContent=w(_,document.documentElement.lang),x.textContent=w(A,document.documentElement.lang),S.textContent=w(_-A,document.documentElement.lang);function w(R,M){return M==="fr"?R.toLocaleString("fr-FR",{minimumFractionDigits:2,maximumFractionDigits:2}).replace(/\B(?=(\d{3})+(?!\d))/g," "):R.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}const O=document.querySelectorAll(".positive_budget"),P=document.querySelectorAll(".negative_budget"),T=document.querySelectorAll(".neutral_budget");(O.length>0||P.length>0)&&(_-A>0?(O.forEach(R=>R.style.display="inline-block"),P.forEach(R=>R.style.display="none"),T.forEach(R=>R.style.display="none")):_-A<0?(O.forEach(R=>R.style.display="none"),P.forEach(R=>R.style.display="inline-block"),T.forEach(R=>R.style.display="none")):(O.forEach(R=>R.style.display="none"),P.forEach(R=>R.style.display="none"),T.forEach(R=>R.style.display="inline-block")))},f=function(){const _=document.querySelector(".other_expenses_wrapper"),A=` <div class="border-b border-gray-200 last:border-0 py-7"> <div class="block md:flex justify-between items-center"> <div class="flex-grow pb-7 md:pb-0 md:pr-10"> <input type="text" placeholder="Titre de la dépense" value="" class="added_expense_title" /> </div> <div class="input_group inline-block mr-2 mb-2 md:mb-0 md:mr-0 relative min-w-[280px]"> <input type="text" value="" class="added_expense text-right" /> <div class="inline-block absolute top-1/2 -translate-y-1/2 right-0 z-20"> <select name="frequency" class="adjust_width text-right !font-normal !pr-8 !border-0 !bg-white/0 w-auto"> <option value="frequency_by_week">$ /semaine</option> <option value="frequency_by_two_week">$ /2 semaines</option> <option value="frequency_by_month" selected="selected">$ /mois</option> <option value="frequency_by_year">$ /année</option> </select> </div> </div> </div> </div> `,C=` <div class="border-b border-gray-200 last:border-0 py-7"> <div class="block md:flex justify-between items-center"> <div class="flex-grow pb-7 md:pb-0 md:pr-10"> <input type="text" placeholder="Title of the expense" value="" class="added_expense_title" /> </div> <div class="input_group inline-block mr-2 mb-2 md:mb-0 md:mr-0 relative min-w-[280px]"> <input type="text" value="" class="added_expense text-right" /> <div class="inline-block absolute top-1/2 -translate-y-1/2 right-0 z-20"> <select name="frequency" class="adjust_width text-right !font-normal !pr-8 !border-0 !bg-white/0 w-auto"> <option value="frequency_by_week">$ /Weekly</option> <option value="frequency_by_two_week">$ /Bi-weekly</option> <option value="frequency_by_month" selected="selected">$ /Monthly</option> <option value="frequency_by_year">$ /Yearly</option> </select> </div> </div> </div> </div> `;document.documentElement.lang==="fr"?_.insertAdjacentHTML("beforeend",A):_.insertAdjacentHTML("beforeend",C);const x=_.querySelectorAll(".added_expense"),S=_.querySelectorAll(".adjust_width");x.forEach(O=>{O.addEventListener("input",l),O.addEventListener("input",u)}),S.forEach(O=>{O.addEventListener("change",u)});const w=document.querySelectorAll("select.adjust_width");w&&w.forEach(O=>{const P=document.createElement("div");P.classList.add("select_width"),P.textContent=O.options[O.selectedIndex].textContent,O.after(P),O.style.width=`${P.offsetWidth+2*16}px`;const T=()=>{P.textContent=O.options[O.selectedIndex].textContent,O.style.width=`${P.offsetWidth+2*16}px`;const R=O.closest(".input_group").querySelector("input");R&&(R.style.paddingRight=`${P.offsetWidth+2.35*16}px`)};O.addEventListener("change",T),T()})},h=function(){document.querySelectorAll("#budget_calculator input").forEach(_=>{_.addEventListener("input",l),_.addEventListener("input",u)}),document.querySelectorAll("#budget_calculator select").forEach(_=>{_.addEventListener("change",u)})};var e=a,n=l,r=c,i=u,o=f,s=h;const d=document.getElementById("print_button"),p=document.getElementById("add_expense"),m=document.querySelectorAll(".lang_fr"),g=document.querySelectorAll(".lang_en");d&&d.addEventListener("click",function(){window.print()}),p&&p.addEventListener("click",f),m.length>0&&(document.documentElement.lang==="fr"?(m.forEach(_=>_.style.display="inline-block"),g.forEach(_=>_.style.display="none")):(m.forEach(_=>_.style.display="none"),g.forEach(_=>_.style.display="inline-block"))),document.querySelectorAll(".heading-and-field").forEach(_=>{_.querySelectorAll('input[type="text"]').forEach(C=>{C.addEventListener("input",()=>{C.value.trim()!==""?_.classList.remove("print:hidden"):_.classList.add("print:hidden")})})});const b=document.getElementById("print_button"),y=document.getElementById("budget_calculator_cta");b&&y&&new IntersectionObserver(A=>{A.forEach(C=>{C.isIntersecting?b.classList.add("active"):b.classList.remove("active")})},{root:null,threshold:1}).observe(y),h(),u()}});function lf(){const t=document.cookie.split(";");let e=null;if(t.forEach(n=>{const[r,i]=n.split("=").map(o=>o.trim());r==="cookieyes-consent"&&(e=i)}),e){const n=e.split(","),r={};for(const i of n){const[o,s]=i.split(":");r[o]=s}return r.consent=="yes"}return!1}document.addEventListener("DOMContentLoaded",function(){if(document.getElementById("credit_card_payments")){let b=function(x){return x.replace(/,/g,".").replace(/[^0-9.]/g,"")},y=function(){const x=parseFloat(b(i.value))||0,S=parseFloat(b(o.value))/100||0;parseFloat(b(s.value));const w=parseFloat(b(a.value))||0,O=l.value,P=x*.045;if(document.documentElement.lang==="fr"?s.value=P?P.toLocaleString("fr-FR",{minimumFractionDigits:2,maximumFractionDigits:2}).replace(/\B(?=(\d{3})+(?!\d))/g," "):"":s.value=P?P.toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g,","):"",x>0&&S>=0&&P>0){const{remainingTime:T,totalInterests:R}=_(x,S,P),M=document.getElementById("credit_card_result"),k=document.getElementById("credit_card_result_error");T.years>=50?(M.style.display="none",k.style.display="block"):(M.style.display="block",k.style.display="none"),document.documentElement.lang==="fr"?(T.months===0?c.textContent=`${T.years} an${T.years<2?"":"s"}`:T.years===0?c.textContent=`${T.months} mois`:c.textContent=`${T.years} an${T.years<2?"":"s"} et ${T.months} mois`,u.textContent=R.toLocaleString("fr-FR",{minimumFractionDigits:2,maximumFractionDigits:2}).replace(/\B(?=(\d{3})+(?!\d))/g," "),d.textContent=P.toLocaleString("fr-FR",{minimumFractionDigits:2,maximumFractionDigits:2}).replace(/\B(?=(\d{3})+(?!\d))/g," ")):(T.months===0?c.textContent=`${T.years} year${T.years<2?"":"s"}`:T.years===0?c.textContent=`${T.months} month${T.months>1?"s":""}`:c.textContent=`${T.years} year${T.years<2?"":"s"} and ${T.months} month${T.months>1?"s":""}`,u.textContent=R.toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g,","),d.textContent=P.toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g,","))}if(v.hasOwnProperty(O)){const T=w*v[O];if(x>0&&S>=0&&T>0){const{remainingTime:R,totalInterests:M}=_(x,S,T),k=document.getElementById("credit_card_result_option_b"),B=document.getElementById("credit_card_result_error_option_b");R.years>=50||T<P?(k.style.display="none",B.style.display="block"):(k.style.display="block",B.style.display="none"),document.documentElement.lang==="fr"?(R.months===0?f.textContent=`${R.years} an${R.years<2?"":"s"}`:R.years===0?f.textContent=`${R.months} mois`:f.textContent=`${R.years} an${R.years<2?"":"s"} et ${R.months} mois`,h.textContent=M.toLocaleString("fr-FR",{minimumFractionDigits:2,maximumFractionDigits:2}).replace(/\B(?=(\d{3})+(?!\d))/g," ")):(R.months===0?f.textContent=`${R.years} year${R.years<2?"":"s"}`:R.years===0?f.textContent=`${R.months} month${R.months>1?"s":""}`:f.textContent=`${R.years} year${R.years<2?"":"s"} and ${R.months} month${R.months>1?"s":""}`,h.textContent=M.toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g,","))}}},_=function(x,S,w){const O=S/12;let P=0,T=0,R=x;for(;R>0&&P<600;){const M=R*O;T+=M,R=R+M-w,P++}return{remainingTime:{years:Math.floor(P/12),months:P%12},totalInterests:T}};var e=b,n=y,r=_;const i=document.getElementById("balance"),o=document.getElementById("interestRate"),s=document.getElementById("monthlyPayment"),a=document.getElementById("monthlyPayment_option_b"),l=document.getElementById("monthlyPayment_option_b_frequency"),c=document.getElementById("remaining_time"),u=document.getElementById("total_interests"),f=document.getElementById("remaining_time_option_b"),h=document.getElementById("total_interests_option_b");document.getElementById("credit_card_result_error"),document.getElementById("credit_card_result_error_option_b");const d=document.getElementById("minimum_payment"),p=document.getElementById("credit_card_payments"),m=[i,o,s,a],g=p.querySelectorAll("#credit_card_payments select"),v={frequency_by_week:52/12,frequency_by_two_week:26/12,frequency_by_month:1,frequency_by_year:1/12};m.forEach(x=>{x.addEventListener("input",function(){x.value=b(x.value),y()})}),g.forEach(x=>{x.addEventListener("change",y)});const A=document.querySelectorAll(".lang_fr"),C=document.querySelectorAll(".lang_en");A.length>0&&(document.documentElement.lang==="fr"?(A.forEach(x=>x.style.display="inline-block"),C.forEach(x=>x.style.display="none")):(A.forEach(x=>x.style.display="none"),C.forEach(x=>x.style.display="inline-block"))),y()}});document.addEventListener("DOMContentLoaded",function(){const t=document.getElementById("dept_rate_form"),e=document.getElementById("dept_ratio_results");if(t){let u=function(d){return d.replace(/,/g,".").replace(/[^0-9.]/g,"")},f=function(){const d=parseFloat(document.getElementById("gross_revenue").value)||0,p=document.getElementById("gross_revenue_frequency").value,m=d*c[p],g=parseFloat(document.getElementById("rent_price").value)||0,v=document.getElementById("rent_price_frequency").value,b=g*c[v],y=parseFloat(document.getElementById("car_cost").value)||0,_=document.getElementById("car_cost_frequency").value,A=y*c[_],C=parseFloat(document.getElementById("other_cost").value)||0,x=document.getElementById("other_cost_frequency").value,S=C*c[x],w=b+A+S;return m===0?100:{debtRatio:w/m*100,totalAnnualExpenses:w,annualGrossRevenue:m}},h=function(){let d=!0;if(s.forEach(p=>{p.value.trim()||(d=!1)}),l.classList.toggle("disabled",!d),d){const p=f(),m=p.debtRatio,g=Math.round(m),v=p.totalAnnualExpenses,b=p.annualGrossRevenue;let y;m<=33?y=1:m<=66?y=2:y=3;const _=l.getAttribute("data-page");l.href=`${_}?taux=${y}&revenue=${b}&expenses=${v}&ratio=${g}`}else l.href="#"};var n=u,r=f,i=h;const o=document.getElementById("dept_rate_form"),s=o.querySelectorAll("#dept_rate_form input[type='text']"),a=o.querySelectorAll("#dept_rate_form select"),l=o.querySelector("#dept_rate_form a.submit"),c={frequency_by_week:52,frequency_by_two_week:26,frequency_by_month:12,frequency_by_year:1};s.forEach(d=>{d.addEventListener("input",function(){d.value=u(d.value),h()})}),a.forEach(d=>{d.addEventListener("change",h)}),o.addEventListener("input",h),h()}if(e){document.querySelectorAll(".need_formating").forEach(l=>{const c=parseFloat(l.textContent);document.documentElement.lang==="fr"?l.textContent=c.toLocaleString("fr-FR"):l.textContent=c.toLocaleString("en-US")});const s=document.querySelectorAll(".lang_fr"),a=document.querySelectorAll(".lang_en");s.length>0&&(document.documentElement.lang==="fr"?(s.forEach(l=>l.style.display="inline-block"),a.forEach(l=>l.style.display="none")):(s.forEach(l=>l.style.display="none"),a.forEach(l=>l.style.display="inline-block")))}});const oe=(t,e=1e4)=>(t=parseFloat(t+"")||0,Math.round((t+Number.EPSILON)*e)/e),Op=function(t){if(!(t&&t instanceof Element&&t.offsetParent))return!1;const e=t.scrollHeight>t.clientHeight,n=window.getComputedStyle(t).overflowY,r=n.indexOf("hidden")!==-1,i=n.indexOf("visible")!==-1;return e&&!r&&!i},cf=function(t,e=void 0){return!(!t||t===document.body||e&&t===e)&&(Op(t)?t:cf(t.parentElement,e))},zn=function(t){var e=new DOMParser().parseFromString(t,"text/html").body;if(e.childElementCount>1){for(var n=document.createElement("div");e.firstChild;)n.appendChild(e.firstChild);return n}return e.firstChild},Og=t=>`${t||""}`.split(" ").filter(e=>!!e),Kn=(t,e,n)=>{t&&Og(e).forEach(r=>{t.classList.toggle(r,n||!1)})};let wo=class{constructor(e){Object.defineProperty(this,"pageX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"pageY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"time",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"nativePointer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.nativePointer=e,this.pageX=e.pageX,this.pageY=e.pageY,this.clientX=e.clientX,this.clientY=e.clientY,this.id=self.Touch&&e instanceof Touch?e.identifier:-1,this.time=Date.now()}};const Ao={passive:!1};let EI=class{constructor(e,{start:n=()=>!0,move:r=()=>{},end:i=()=>{}}){Object.defineProperty(this,"element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"startCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"moveCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"endCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"currentPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"startPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this.element=e,this.startCallback=n,this.moveCallback=r,this.endCallback=i;for(const o of["onPointerStart","onTouchStart","onMove","onTouchEnd","onPointerEnd","onWindowBlur"])this[o]=this[o].bind(this);this.element.addEventListener("mousedown",this.onPointerStart,Ao),this.element.addEventListener("touchstart",this.onTouchStart,Ao),this.element.addEventListener("touchmove",this.onMove,Ao),this.element.addEventListener("touchend",this.onTouchEnd),this.element.addEventListener("touchcancel",this.onTouchEnd)}onPointerStart(e){if(!e.buttons||e.button!==0)return;const n=new wo(e);this.currentPointers.some(r=>r.id===n.id)||this.triggerPointerStart(n,e)&&(window.addEventListener("mousemove",this.onMove),window.addEventListener("mouseup",this.onPointerEnd),window.addEventListener("blur",this.onWindowBlur))}onTouchStart(e){for(const n of Array.from(e.changedTouches||[]))this.triggerPointerStart(new wo(n),e);window.addEventListener("blur",this.onWindowBlur)}onMove(e){const n=this.currentPointers.slice(),r="changedTouches"in e?Array.from(e.changedTouches||[]).map(o=>new wo(o)):[new wo(e)],i=[];for(const o of r){const s=this.currentPointers.findIndex(a=>a.id===o.id);s<0||(i.push(o),this.currentPointers[s]=o)}i.length&&this.moveCallback(e,this.currentPointers.slice(),n)}onPointerEnd(e){e.buttons>0&&e.button!==0||(this.triggerPointerEnd(e,new wo(e)),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur))}onTouchEnd(e){for(const n of Array.from(e.changedTouches||[]))this.triggerPointerEnd(e,new wo(n))}triggerPointerStart(e,n){return!!this.startCallback(n,e,this.currentPointers.slice())&&(this.currentPointers.push(e),this.startPointers.push(e),!0)}triggerPointerEnd(e,n){const r=this.currentPointers.findIndex(i=>i.id===n.id);r<0||(this.currentPointers.splice(r,1),this.startPointers.splice(r,1),this.endCallback(e,n,this.currentPointers.slice()))}onWindowBlur(){this.clear()}clear(){for(;this.currentPointers.length;){const e=this.currentPointers[this.currentPointers.length-1];this.currentPointers.splice(this.currentPointers.length-1,1),this.startPointers.splice(this.currentPointers.length-1,1),this.endCallback(new Event("touchend",{bubbles:!0,cancelable:!0,clientX:e.clientX,clientY:e.clientY}),e,this.currentPointers.slice())}}stop(){this.element.removeEventListener("mousedown",this.onPointerStart,Ao),this.element.removeEventListener("touchstart",this.onTouchStart,Ao),this.element.removeEventListener("touchmove",this.onMove,Ao),this.element.removeEventListener("touchend",this.onTouchEnd),this.element.removeEventListener("touchcancel",this.onTouchEnd),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur)}};function Ry(t,e){return e?Math.sqrt(Math.pow(e.clientX-t.clientX,2)+Math.pow(e.clientY-t.clientY,2)):0}function $y(t,e){return e?{clientX:(t.clientX+e.clientX)/2,clientY:(t.clientY+e.clientY)/2}:t}const Ep=t=>typeof t=="object"&&t!==null&&t.constructor===Object&&Object.prototype.toString.call(t)==="[object Object]",Ft=(t,...e)=>{const n=e.length;for(let r=0;r<n;r++){const i=e[r]||{};Object.entries(i).forEach(([o,s])=>{const a=Array.isArray(s)?[]:{};t[o]||Object.assign(t,{[o]:a}),Ep(s)?Object.assign(t[o],Ft(a,s)):Array.isArray(s)?Object.assign(t,{[o]:[...s]}):Object.assign(t,{[o]:s})})}return t},rh=function(t,e){return t.split(".").reduce((n,r)=>typeof n=="object"?n[r]:void 0,e)};let uf=class{constructor(e={}){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),this.setOptions(e);for(const n of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))n.startsWith("on")&&typeof this[n]=="function"&&(this[n]=this[n].bind(this))}setOptions(e){this.options=e?Ft({},this.constructor.defaults,e):{};for(const[n,r]of Object.entries(this.option("on")||{}))this.on(n,r)}option(e,...n){let r=rh(e,this.options);return r&&typeof r=="function"&&(r=r.call(this,this,...n)),r}optionFor(e,n,r,...i){let o=rh(n,e);var s;typeof(s=o)!="string"||isNaN(s)||isNaN(parseFloat(s))||(o=parseFloat(o)),o==="true"&&(o=!0),o==="false"&&(o=!1),o&&typeof o=="function"&&(o=o.call(this,this,e,...i));let a=rh(n,this.options);return a&&typeof a=="function"?o=a.call(this,this,e,...i,o):o===void 0&&(o=a),o===void 0?r:o}cn(e){const n=this.options.classes;return n&&n[e]||""}localize(e,n=[]){e=String(e).replace(/\{\{(\w+).?(\w+)?\}\}/g,(r,i,o)=>{let s="";return o?s=this.option(`${i[0]+i.toLowerCase().substring(1)}.l10n.${o}`):i&&(s=this.option(`l10n.${i}`)),s||(s=r),s});for(let r=0;r<n.length;r++)e=e.split(n[r][0]).join(n[r][1]);return e=e.replace(/\{\{(.*?)\}\}/g,(r,i)=>i)}on(e,n){let r=[];typeof e=="string"?r=e.split(" "):Array.isArray(e)&&(r=e),this.events||(this.events=new Map),r.forEach(i=>{let o=this.events.get(i);o||(this.events.set(i,[]),o=[]),o.includes(n)||o.push(n),this.events.set(i,o)})}off(e,n){let r=[];typeof e=="string"?r=e.split(" "):Array.isArray(e)&&(r=e),r.forEach(i=>{const o=this.events.get(i);if(Array.isArray(o)){const s=o.indexOf(n);s>-1&&o.splice(s,1)}})}emit(e,...n){[...this.events.get(e)||[]].forEach(r=>r(this,...n)),e!=="*"&&this.emit("*",e,...n)}};Object.defineProperty(uf,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.33"}),Object.defineProperty(uf,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});let Eg=class extends uf{constructor(e={}){super(e),Object.defineProperty(this,"plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}})}attachPlugins(e={}){const n=new Map;for(const[r,i]of Object.entries(e)){const o=this.option(r),s=this.plugins[r];s||o===!1?s&&o===!1&&(s.detach(),delete this.plugins[r]):n.set(r,new i(this,o||{}))}for(const[r,i]of n)this.plugins[r]=i,i.attach()}detachPlugins(e){e=e||Object.keys(this.plugins);for(const n of e){const r=this.plugins[n];r&&r.detach(),delete this.plugins[n]}return this.emit("detachPlugins"),this}};var Ve;(function(t){t[t.Init=0]="Init",t[t.Error=1]="Error",t[t.Ready=2]="Ready",t[t.Panning=3]="Panning",t[t.Mousemove=4]="Mousemove",t[t.Destroy=5]="Destroy"})(Ve||(Ve={}));const rr=["a","b","c","d","e","f"],bA={PANUP:"Move up",PANDOWN:"Move down",PANLEFT:"Move left",PANRIGHT:"Move right",ZOOMIN:"Zoom in",ZOOMOUT:"Zoom out",TOGGLEZOOM:"Toggle zoom level",TOGGLE1TO1:"Toggle zoom level",ITERATEZOOM:"Toggle zoom level",ROTATECCW:"Rotate counterclockwise",ROTATECW:"Rotate clockwise",FLIPX:"Flip horizontally",FLIPY:"Flip vertically",FITX:"Fit horizontally",FITY:"Fit vertically",RESET:"Reset",TOGGLEFS:"Toggle fullscreen"},PI={content:null,width:"auto",height:"auto",panMode:"drag",touch:!0,dragMinThreshold:3,lockAxis:!1,mouseMoveFactor:1,mouseMoveFriction:.12,zoom:!0,pinchToZoom:!0,panOnlyZoomed:"auto",minScale:1,maxScale:2,friction:.25,dragFriction:.35,decelFriction:.05,click:"toggleZoom",dblClick:!1,wheel:"zoom",wheelLimit:7,spinner:!0,bounds:"auto",infinite:!1,rubberband:!0,bounce:!0,maxVelocity:75,transformParent:!1,classes:{content:"f-panzoom__content",isLoading:"is-loading",canZoomIn:"can-zoom_in",canZoomOut:"can-zoom_out",isDraggable:"is-draggable",isDragging:"is-dragging",inFullscreen:"in-fullscreen",htmlHasFullscreen:"with-panzoom-in-fullscreen"},l10n:bA},Vy='<circle cx="25" cy="25" r="20"></circle>',Pg='<div class="f-spinner"><svg viewBox="0 0 50 50">'+Vy+Vy+"</svg></div>",Lt=t=>t&&t!==null&&t instanceof Element&&"nodeType"in t,Re=(t,e)=>{t&&Og(e).forEach(n=>{t.classList.remove(n)})},pe=(t,e)=>{t&&Og(e).forEach(n=>{t.classList.add(n)})},Zc={a:1,b:0,c:0,d:1,e:0,f:0},xI=1e5,Xc=1e4,rn="mousemove",jy="drag",Ny="content";let ih=null,oh=null,Ia=class _A extends Eg{get fits(){return this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1}get isTouchDevice(){return oh===null&&(oh=window.matchMedia("(hover: none)").matches),oh}get isMobile(){return ih===null&&(ih=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)),ih}get panMode(){return this.options.panMode!==rn||this.isTouchDevice?jy:rn}get panOnlyZoomed(){const e=this.options.panOnlyZoomed;return e==="auto"?this.isTouchDevice:e}get isInfinite(){return this.option("infinite")}get angle(){return 180*Math.atan2(this.current.b,this.current.a)/Math.PI||0}get targetAngle(){return 180*Math.atan2(this.target.b,this.target.a)/Math.PI||0}get scale(){const{a:e,b:n}=this.current;return Math.sqrt(e*e+n*n)||1}get targetScale(){const{a:e,b:n}=this.target;return Math.sqrt(e*e+n*n)||1}get minScale(){return this.option("minScale")||1}get fullScale(){const{contentRect:e}=this;return e.fullWidth/e.fitWidth||1}get maxScale(){return this.fullScale*(this.option("maxScale")||1)||1}get coverScale(){const{containerRect:e,contentRect:n}=this,r=Math.max(e.height/n.fitHeight,e.width/n.fitWidth)||1;return Math.min(this.fullScale,r)}get isScaling(){return Math.abs(this.targetScale-this.scale)>1e-5&&!this.isResting}get isContentLoading(){const e=this.content;return!!(e&&e instanceof HTMLImageElement)&&!e.complete}get isResting(){if(this.isBouncingX||this.isBouncingY)return!1;for(const e of rr){const n=e=="e"||e==="f"?1e-4:1e-5;if(Math.abs(this.target[e]-this.current[e])>n)return!1}return!(!this.ignoreBounds&&!this.checkBounds().inBounds)}constructor(e,n={},r={}){var i;if(super(n),Object.defineProperty(this,"pointerTracker",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"resizeObserver",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"updateTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"rAF",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isTicking",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"ignoreBounds",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingX",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingY",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"clicks",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"trackingPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"cwd",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"pmme",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"friction",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Ve.Init}),Object.defineProperty(this,"isDragging",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"spinner",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"containerRect",{enumerable:!0,configurable:!0,writable:!0,value:{width:0,height:0,innerWidth:0,innerHeight:0}}),Object.defineProperty(this,"contentRect",{enumerable:!0,configurable:!0,writable:!0,value:{top:0,right:0,bottom:0,left:0,fullWidth:0,fullHeight:0,fitWidth:0,fitHeight:0,width:0,height:0}}),Object.defineProperty(this,"dragStart",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,top:0,left:0,time:0}}),Object.defineProperty(this,"dragOffset",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,time:0}}),Object.defineProperty(this,"current",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},Zc)}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},Zc)}),Object.defineProperty(this,"velocity",{enumerable:!0,configurable:!0,writable:!0,value:{a:0,b:0,c:0,d:0,e:0,f:0}}),Object.defineProperty(this,"lockedAxis",{enumerable:!0,configurable:!0,writable:!0,value:!1}),!e)throw new Error("Container Element Not Found");this.container=e,this.initContent(),this.attachPlugins(Object.assign(Object.assign({},_A.Plugins),r)),this.emit("attachPlugins"),this.emit("init");const o=this.content;if(o.addEventListener("load",this.onLoad),o.addEventListener("error",this.onError),this.isContentLoading){if(this.option("spinner")){e.classList.add(this.cn("isLoading"));const s=zn(Pg);!e.contains(o)||o.parentElement instanceof HTMLPictureElement?this.spinner=e.appendChild(s):this.spinner=((i=o.parentElement)===null||i===void 0?void 0:i.insertBefore(s,o))||null}this.emit("beforeLoad")}else queueMicrotask(()=>{this.enable()})}initContent(){const{container:e}=this,n=this.cn(Ny);let r=this.option(Ny)||e.querySelector(`.${n}`);if(r||(r=e.querySelector("img,picture")||e.firstElementChild,r&&pe(r,n)),r instanceof HTMLPictureElement&&(r=r.querySelector("img")),!r)throw new Error("No content found");this.content=r}onLoad(){const{spinner:e,container:n,state:r}=this;e&&(e.remove(),this.spinner=null),this.option("spinner")&&n.classList.remove(this.cn("isLoading")),this.emit("afterLoad"),r===Ve.Init?this.enable():this.updateMetrics()}onError(){this.state!==Ve.Destroy&&(this.spinner&&(this.spinner.remove(),this.spinner=null),this.stop(),this.detachEvents(),this.state=Ve.Error,this.emit("error"))}getNextScale(e){const{fullScale:n,targetScale:r,coverScale:i,maxScale:o,minScale:s}=this;let a=s;switch(e){case"toggleMax":a=r-s<.5*(o-s)?o:s;break;case"toggleCover":a=r-s<.5*(i-s)?i:s;break;case"toggleZoom":a=r-s<.5*(n-s)?n:s;break;case"iterateZoom":let l=[1,n,o].sort((u,f)=>u-f),c=l.findIndex(u=>u>r+1e-5);a=l[c]||1}return a}attachObserver(){var e;const n=()=>{const{container:r,containerRect:i}=this;return Math.abs(i.width-r.getBoundingClientRect().width)>.1||Math.abs(i.height-r.getBoundingClientRect().height)>.1};this.resizeObserver||window.ResizeObserver===void 0||(this.resizeObserver=new ResizeObserver(()=>{this.updateTimer||(n()?(this.onResize(),this.isMobile&&(this.updateTimer=setTimeout(()=>{n()&&this.onResize(),this.updateTimer=null},500))):this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null))})),(e=this.resizeObserver)===null||e===void 0||e.observe(this.container)}detachObserver(){var e;(e=this.resizeObserver)===null||e===void 0||e.disconnect()}attachEvents(){const{container:e}=this;e.addEventListener("click",this.onClick,{passive:!1,capture:!1}),e.addEventListener("wheel",this.onWheel,{passive:!1}),this.pointerTracker=new EI(e,{start:this.onPointerDown,move:this.onPointerMove,end:this.onPointerUp}),document.addEventListener(rn,this.onMouseMove)}detachEvents(){var e;const{container:n}=this;n.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),n.removeEventListener("wheel",this.onWheel,{passive:!1}),(e=this.pointerTracker)===null||e===void 0||e.stop(),this.pointerTracker=null,document.removeEventListener(rn,this.onMouseMove),document.removeEventListener("keydown",this.onKeydown,!0),this.clickTimer&&(clearTimeout(this.clickTimer),this.clickTimer=null),this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null)}animate(){this.setTargetForce();const e=this.friction,n=this.option("maxVelocity");for(const r of rr)e?(this.velocity[r]*=1-e,n&&!this.isScaling&&(this.velocity[r]=Math.max(Math.min(this.velocity[r],n),-1*n)),this.current[r]+=this.velocity[r]):this.current[r]=this.target[r];this.setTransform(),this.setEdgeForce(),!this.isResting||this.isDragging?this.rAF=requestAnimationFrame(()=>this.animate()):this.stop("current")}setTargetForce(){for(const e of rr)e==="e"&&this.isBouncingX||e==="f"&&this.isBouncingY||(this.velocity[e]=(1/(1-this.friction)-1)*(this.target[e]-this.current[e]))}checkBounds(e=0,n=0){const{current:r}=this,i=r.e+e,o=r.f+n,s=this.getBounds(),{x:a,y:l}=s,c=a.min,u=a.max,f=l.min,h=l.max;let d=0,p=0;return c!==1/0&&i<c?d=c-i:u!==1/0&&i>u&&(d=u-i),f!==1/0&&o<f?p=f-o:h!==1/0&&o>h&&(p=h-o),Math.abs(d)<1e-4&&(d=0),Math.abs(p)<1e-4&&(p=0),Object.assign(Object.assign({},s),{xDiff:d,yDiff:p,inBounds:!d&&!p})}clampTargetBounds(){const{target:e}=this,{x:n,y:r}=this.getBounds();n.min!==1/0&&(e.e=Math.max(e.e,n.min)),n.max!==1/0&&(e.e=Math.min(e.e,n.max)),r.min!==1/0&&(e.f=Math.max(e.f,r.min)),r.max!==1/0&&(e.f=Math.min(e.f,r.max))}calculateContentDim(e=this.current){const{content:n,contentRect:r}=this,{fitWidth:i,fitHeight:o,fullWidth:s,fullHeight:a}=r;let l=s,c=a;if(this.option("zoom")||this.angle!==0){const u=!(n instanceof HTMLImageElement)&&(window.getComputedStyle(n).maxWidth==="none"||window.getComputedStyle(n).maxHeight==="none"),f=u?s:i,h=u?a:o,d=this.getMatrix(e),p=new DOMPoint(0,0).matrixTransform(d),m=new DOMPoint(0+f,0).matrixTransform(d),g=new DOMPoint(0+f,0+h).matrixTransform(d),v=new DOMPoint(0,0+h).matrixTransform(d),b=Math.abs(g.x-p.x),y=Math.abs(g.y-p.y),_=Math.abs(v.x-m.x),A=Math.abs(v.y-m.y);l=Math.max(b,_),c=Math.max(y,A)}return{contentWidth:l,contentHeight:c}}setEdgeForce(){if(this.ignoreBounds||this.isDragging||this.panMode===rn||this.targetScale<this.scale)return this.isBouncingX=!1,void(this.isBouncingY=!1);const{target:e}=this,{x:n,y:r,xDiff:i,yDiff:o}=this.checkBounds(),s=this.option("maxVelocity");let a=this.velocity.e,l=this.velocity.f;i!==0?(this.isBouncingX=!0,i*a<=0?a+=.14*i:(a=.14*i,n.min!==1/0&&(this.target.e=Math.max(e.e,n.min)),n.max!==1/0&&(this.target.e=Math.min(e.e,n.max))),s&&(a=Math.max(Math.min(a,s),-1*s))):this.isBouncingX=!1,o!==0?(this.isBouncingY=!0,o*l<=0?l+=.14*o:(l=.14*o,r.min!==1/0&&(this.target.f=Math.max(e.f,r.min)),r.max!==1/0&&(this.target.f=Math.min(e.f,r.max))),s&&(l=Math.max(Math.min(l,s),-1*s))):this.isBouncingY=!1,this.isBouncingX&&(this.velocity.e=a),this.isBouncingY&&(this.velocity.f=l)}enable(){const{content:e}=this,n=new DOMMatrixReadOnly(window.getComputedStyle(e).transform);for(const r of rr)this.current[r]=this.target[r]=n[r];this.updateMetrics(),this.attachObserver(),this.attachEvents(),this.state=Ve.Ready,this.emit("ready")}onClick(e){var n;e.type==="click"&&e.detail===0&&(this.dragOffset.x=0,this.dragOffset.y=0),this.isDragging&&((n=this.pointerTracker)===null||n===void 0||n.clear(),this.trackingPoints=[],this.startDecelAnim());const r=e.target;if(!r||e.defaultPrevented)return;if(r.hasAttribute("disabled"))return e.preventDefault(),void e.stopPropagation();if((()=>{const d=window.getSelection();return d&&d.type==="Range"})()&&!r.closest("button"))return;const i=r.closest("[data-panzoom-action]"),o=r.closest("[data-panzoom-change]"),s=i||o,a=s&&Lt(s)?s.dataset:null;if(a){const d=a.panzoomChange,p=a.panzoomAction;if((d||p)&&e.preventDefault(),d){let m={};try{m=JSON.parse(d)}catch{console&&console.warn("The given data was not valid JSON")}return void this.applyChange(m)}if(p)return void(this[p]&&this[p]())}if(Math.abs(this.dragOffset.x)>3||Math.abs(this.dragOffset.y)>3)return e.preventDefault(),void e.stopPropagation();if(r.closest("[data-fancybox]"))return;const l=this.content.getBoundingClientRect(),c=this.dragStart;if(c.time&&!this.canZoomOut()&&(Math.abs(l.x-c.x)>2||Math.abs(l.y-c.y)>2))return;this.dragStart.time=0;const u=d=>{this.option("zoom",e)&&d&&typeof d=="string"&&/(iterateZoom)|(toggle(Zoom|Full|Cover|Max)|(zoomTo(Fit|Cover|Max)))/.test(d)&&typeof this[d]=="function"&&(e.preventDefault(),this[d]({event:e}))},f=this.option("click",e),h=this.option("dblClick",e);h?(this.clicks++,this.clicks==1&&(this.clickTimer=setTimeout(()=>{this.clicks===1?(this.emit("click",e),!e.defaultPrevented&&f&&u(f)):(this.emit("dblClick",e),e.defaultPrevented||u(h)),this.clicks=0,this.clickTimer=null},350))):(this.emit("click",e),!e.defaultPrevented&&f&&u(f))}addTrackingPoint(e){const n=this.trackingPoints.filter(r=>r.time>Date.now()-100);n.push(e),this.trackingPoints=n}onPointerDown(e,n,r){var i;if(this.option("touch",e)===!1)return!1;this.pwt=0,this.dragOffset={x:0,y:0,time:0},this.trackingPoints=[];const o=this.content.getBoundingClientRect();if(this.dragStart={x:o.x,y:o.y,top:o.top,left:o.left,time:Date.now()},this.clickTimer)return!1;if(this.panMode===rn&&this.targetScale>1)return e.preventDefault(),e.stopPropagation(),!1;const s=e.composedPath()[0];if(!r.length){if(["TEXTAREA","OPTION","INPUT","SELECT","VIDEO","IFRAME"].includes(s.nodeName)||s.closest("[contenteditable],[data-selectable],[data-draggable],[data-clickable],[data-panzoom-change],[data-panzoom-action]"))return!1;(i=window.getSelection())===null||i===void 0||i.removeAllRanges()}if(e.type==="mousedown")["A","BUTTON"].includes(s.nodeName)||e.preventDefault();else if(Math.abs(this.velocity.a)>.3)return!1;return this.target.e=this.current.e,this.target.f=this.current.f,this.stop(),this.isDragging||(this.isDragging=!0,this.addTrackingPoint(n),this.emit("touchStart",e)),!0}onPointerMove(e,n,r){if(this.option("touch",e)===!1||!this.isDragging||n.length<2&&this.panOnlyZoomed&&oe(this.targetScale)<=oe(this.minScale)||(this.emit("touchMove",e),e.defaultPrevented))return;this.addTrackingPoint(n[0]);const{content:i}=this,o=$y(r[0],r[1]),s=$y(n[0],n[1]);let a=0,l=0;if(n.length>1){const y=i.getBoundingClientRect();a=o.clientX-y.left-.5*y.width,l=o.clientY-y.top-.5*y.height}const c=Ry(r[0],r[1]),u=Ry(n[0],n[1]);let f=c?u/c:1,h=s.clientX-o.clientX,d=s.clientY-o.clientY;this.dragOffset.x+=h,this.dragOffset.y+=d,this.dragOffset.time=Date.now()-this.dragStart.time;let p=oe(this.targetScale)===oe(this.minScale)&&this.option("lockAxis");if(p&&!this.lockedAxis)if(p==="xy"||p==="y"||e.type==="touchmove"){if(Math.abs(this.dragOffset.x)<6&&Math.abs(this.dragOffset.y)<6)return void e.preventDefault();const y=Math.abs(180*Math.atan2(this.dragOffset.y,this.dragOffset.x)/Math.PI);this.lockedAxis=y>45&&y<135?"y":"x",this.dragOffset.x=0,this.dragOffset.y=0,h=0,d=0}else this.lockedAxis=p;if(cf(e.target,this.content)&&(p="x",this.dragOffset.y=0),p&&p!=="xy"&&this.lockedAxis!==p&&oe(this.targetScale)===oe(this.minScale))return;e.cancelable&&e.preventDefault(),this.container.classList.add(this.cn("isDragging"));const m=this.checkBounds(h,d);this.option("rubberband")?(this.isInfinite!=="x"&&(m.xDiff>0&&h<0||m.xDiff<0&&h>0)&&(h*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitWidth*m.xDiff))),this.isInfinite!=="y"&&(m.yDiff>0&&d<0||m.yDiff<0&&d>0)&&(d*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitHeight*m.yDiff)))):(m.xDiff&&(h=0),m.yDiff&&(d=0));const g=this.targetScale,v=this.minScale,b=this.maxScale;g<.5*v&&(f=Math.max(f,v)),g>1.5*b&&(f=Math.min(f,b)),this.lockedAxis==="y"&&oe(g)===oe(v)&&(h=0),this.lockedAxis==="x"&&oe(g)===oe(v)&&(d=0),this.applyChange({originX:a,originY:l,panX:h,panY:d,scale:f,friction:this.option("dragFriction"),ignoreBounds:!0})}onPointerUp(e,n,r){if(r.length)return this.dragOffset.x=0,this.dragOffset.y=0,void(this.trackingPoints=[]);this.container.classList.remove(this.cn("isDragging")),this.isDragging&&(this.addTrackingPoint(n),this.panOnlyZoomed&&this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1&&(this.trackingPoints=[]),cf(e.target,this.content)&&this.lockedAxis==="y"&&(this.trackingPoints=[]),this.emit("touchEnd",e),this.isDragging=!1,this.lockedAxis=!1,this.state!==Ve.Destroy&&(e.defaultPrevented||this.startDecelAnim()))}startDecelAnim(){var e;const n=this.isScaling;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const y of rr)this.velocity[y]=0;this.target.e=this.current.e,this.target.f=this.current.f,Re(this.container,"is-scaling"),Re(this.container,"is-animating"),this.isTicking=!1;const{trackingPoints:r}=this,i=r[0],o=r[r.length-1];let s=0,a=0,l=0;o&&i&&(s=o.clientX-i.clientX,a=o.clientY-i.clientY,l=o.time-i.time);const c=((e=window.visualViewport)===null||e===void 0?void 0:e.scale)||1;c!==1&&(s*=c,a*=c);let u=0,f=0,h=0,d=0,p=this.option("decelFriction");const m=this.targetScale;if(l>0){h=Math.abs(s)>3?s/(l/30):0,d=Math.abs(a)>3?a/(l/30):0;const y=this.option("maxVelocity");y&&(h=Math.max(Math.min(h,y),-1*y),d=Math.max(Math.min(d,y),-1*y))}h&&(u=h/(1/(1-p)-1)),d&&(f=d/(1/(1-p)-1)),(this.option("lockAxis")==="y"||this.option("lockAxis")==="xy"&&this.lockedAxis==="y"&&oe(m)===this.minScale)&&(u=h=0),(this.option("lockAxis")==="x"||this.option("lockAxis")==="xy"&&this.lockedAxis==="x"&&oe(m)===this.minScale)&&(f=d=0);const g=this.dragOffset.x,v=this.dragOffset.y,b=this.option("dragMinThreshold")||0;Math.abs(g)<b&&Math.abs(v)<b&&(u=f=0,h=d=0),(this.option("zoom")&&(m<this.minScale-1e-5||m>this.maxScale+1e-5)||n&&!u&&!f)&&(p=.35),this.applyChange({panX:u,panY:f,friction:p}),this.emit("decel",h,d,g,v)}onWheel(e){var n=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce(function(o,s){return Math.abs(s)>Math.abs(o)?s:o});const r=Math.max(-1,Math.min(1,n));if(this.emit("wheel",e,r),this.panMode===rn||e.defaultPrevented)return;const i=this.option("wheel");i==="pan"?(e.preventDefault(),this.panOnlyZoomed&&!this.canZoomOut()||this.applyChange({panX:2*-e.deltaX,panY:2*-e.deltaY,bounce:!1})):i==="zoom"&&this.option("zoom")!==!1&&this.zoomWithWheel(e)}onMouseMove(e){this.panWithMouse(e)}onKeydown(e){e.key==="Escape"&&this.toggleFS()}onResize(){this.updateMetrics(),this.checkBounds().inBounds||this.requestTick()}setTransform(){this.emit("beforeTransform");const{current:e,target:n,content:r,contentRect:i}=this,o=Object.assign({},Zc);for(const g of rr){const v=g=="e"||g==="f"?Xc:xI;o[g]=oe(e[g],v),Math.abs(n[g]-e[g])<(g=="e"||g==="f"?.51:.001)&&(e[g]=n[g])}let{a:s,b:a,c:l,d:c,e:u,f}=o,h=`matrix(${s}, ${a}, ${l}, ${c}, ${u}, ${f})`,d=r.parentElement instanceof HTMLPictureElement?r.parentElement:r;if(this.option("transformParent")&&(d=d.parentElement||d),d.style.transform===h)return;d.style.transform=h;const{contentWidth:p,contentHeight:m}=this.calculateContentDim();i.width=p,i.height=m,this.emit("afterTransform")}updateMetrics(e=!1){var n;if(!this||this.state===Ve.Destroy||this.isContentLoading)return;const r=Math.max(1,((n=window.visualViewport)===null||n===void 0?void 0:n.scale)||1),{container:i,content:o}=this,s=o instanceof HTMLImageElement,a=i.getBoundingClientRect(),l=getComputedStyle(this.container);let c=a.width*r,u=a.height*r;const f=parseFloat(l.paddingTop)+parseFloat(l.paddingBottom),h=c-(parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)),d=u-f;this.containerRect={width:c,height:u,innerWidth:h,innerHeight:d};let p=this.option("width")||"auto",m=this.option("height")||"auto";p==="auto"&&(p=parseFloat(o.dataset.width||"")||(x=>{let S=0;return S=x instanceof HTMLImageElement?x.naturalWidth:x instanceof SVGElement?x.width.baseVal.value:Math.max(x.offsetWidth,x.scrollWidth),S||0})(o)),m==="auto"&&(m=parseFloat(o.dataset.height||"")||(x=>{let S=0;return S=x instanceof HTMLImageElement?x.naturalHeight:x instanceof SVGElement?x.height.baseVal.value:Math.max(x.offsetHeight,x.scrollHeight),S||0})(o));let g=o.parentElement instanceof HTMLPictureElement?o.parentElement:o;this.option("transformParent")&&(g=g.parentElement||g);const v=g.getAttribute("style")||"";g.style.setProperty("transform","none","important"),s&&(g.style.width="",g.style.height=""),g.offsetHeight;const b=o.getBoundingClientRect();let y=b.width*r,_=b.height*r,A=0,C=0;s&&(Math.abs(p-y)>1||Math.abs(m-_)>1)&&({width:y,height:_,top:A,left:C}=((x,S,w,O)=>{const P=w/O;return P>x/S?(w=x,O=x/P):(w=S*P,O=S),{width:w,height:O,top:.5*(S-O),left:.5*(x-w)}})(y,_,p,m)),this.contentRect=Object.assign(Object.assign({},this.contentRect),{top:b.top-a.top+A,bottom:a.bottom-b.bottom+A,left:b.left-a.left+C,right:a.right-b.right+C,fitWidth:y,fitHeight:_,width:y,height:_,fullWidth:p,fullHeight:m}),g.style.cssText=v,s&&(g.style.width=`${y}px`,g.style.height=`${_}px`),this.setTransform(),e!==!0&&this.emit("refresh"),this.ignoreBounds||(oe(this.targetScale)<oe(this.minScale)?this.zoomTo(this.minScale,{friction:0}):this.targetScale>this.maxScale?this.zoomTo(this.maxScale,{friction:0}):this.state===Ve.Init||this.checkBounds().inBounds||this.requestTick()),this.updateControls()}calculateBounds(){const{contentWidth:e,contentHeight:n}=this.calculateContentDim(this.target),{targetScale:r,lockedAxis:i}=this,{fitWidth:o,fitHeight:s}=this.contentRect;let a=0,l=0,c=0,u=0;const f=this.option("infinite");if(f===!0||i&&f===i)a=-1/0,c=1/0,l=-1/0,u=1/0;else{let{containerRect:h,contentRect:d}=this,p=oe(o*r,Xc),m=oe(s*r,Xc),{innerWidth:g,innerHeight:v}=h;if(h.width===p&&(g=h.width),h.width===m&&(v=h.height),e>g){c=.5*(e-g),a=-1*c;let b=.5*(d.right-d.left);a+=b,c+=b}if(o>g&&e<g&&(a-=.5*(o-g),c-=.5*(o-g)),n>v){u=.5*(n-v),l=-1*u;let b=.5*(d.bottom-d.top);l+=b,u+=b}s>v&&n<v&&(a-=.5*(s-v),c-=.5*(s-v))}return{x:{min:a,max:c},y:{min:l,max:u}}}getBounds(){const e=this.option("bounds");return e!=="auto"?e:this.calculateBounds()}updateControls(){const e=this,n=e.container,{panMode:r,contentRect:i,targetScale:o,minScale:s}=e;let a=s,l=e.option("click")||!1;l&&(a=e.getNextScale(l));let c=e.canZoomIn(),u=e.canZoomOut(),f=r===jy&&!!this.option("touch"),h=u&&f;if(f&&(oe(o)<oe(s)&&!this.panOnlyZoomed&&(h=!0),(oe(i.width,1)>oe(i.fitWidth,1)||oe(i.height,1)>oe(i.fitHeight,1))&&(h=!0)),oe(i.width*o,1)<oe(i.fitWidth,1)&&(h=!1),r===rn&&(h=!1),Kn(n,this.cn("isDraggable"),h),!this.option("zoom"))return;let d=c&&oe(a)>oe(o),p=!d&&!h&&u&&oe(a)<oe(o);Kn(n,this.cn("canZoomIn"),d),Kn(n,this.cn("canZoomOut"),p);for(const m of n.querySelectorAll("[data-panzoom-action]")){let g=!1,v=!1;switch(m.dataset.panzoomAction){case"zoomIn":c?g=!0:v=!0;break;case"zoomOut":u?g=!0:v=!0;break;case"toggleZoom":case"iterateZoom":c||u?g=!0:v=!0;const b=m.querySelector("g");b&&(b.style.display=c?"":"none")}g?(m.removeAttribute("disabled"),m.removeAttribute("tabindex")):v&&(m.setAttribute("disabled",""),m.setAttribute("tabindex","-1"))}}panTo({x:e=this.target.e,y:n=this.target.f,scale:r=this.targetScale,friction:i=this.option("friction"),angle:o=0,originX:s=0,originY:a=0,flipX:l=!1,flipY:c=!1,ignoreBounds:u=!1}){this.state!==Ve.Destroy&&this.applyChange({panX:e-this.target.e,panY:n-this.target.f,scale:r/this.targetScale,angle:o,originX:s,originY:a,friction:i,flipX:l,flipY:c,ignoreBounds:u})}applyChange({panX:e=0,panY:n=0,scale:r=1,angle:i=0,originX:o=-this.current.e,originY:s=-this.current.f,friction:a=this.option("friction"),flipX:l=!1,flipY:c=!1,ignoreBounds:u=!1,bounce:f=this.option("bounce")}){const h=this.state;if(h===Ve.Destroy)return;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.friction=a||0,this.ignoreBounds=u;const{current:d}=this,p=d.e,m=d.f,g=this.getMatrix(this.target);let v=new DOMMatrix().translate(p,m).translate(o,s).translate(e,n);if(this.option("zoom")){if(!u){const b=this.targetScale,y=this.minScale,_=this.maxScale;b*r<y&&(r=y/b),b*r>_&&(r=_/b)}v=v.scale(r)}v=v.translate(-o,-s).translate(-p,-m).multiply(g),i&&(v=v.rotate(i)),l&&(v=v.scale(-1,1)),c&&(v=v.scale(1,-1));for(const b of rr)b!=="e"&&b!=="f"&&(v[b]>this.minScale+1e-5||v[b]<this.minScale-1e-5)?this.target[b]=v[b]:this.target[b]=oe(v[b],Xc);(this.targetScale<this.scale||Math.abs(r-1)>.1||this.panMode===rn||f===!1)&&!u&&this.clampTargetBounds(),h===Ve.Init?this.animate():this.isResting||(this.state=Ve.Panning,this.requestTick())}stop(e=!1){if(this.state===Ve.Init||this.state===Ve.Destroy)return;const n=this.isTicking;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const r of rr)this.velocity[r]=0,e==="current"?this.current[r]=this.target[r]:e==="target"&&(this.target[r]=this.current[r]);this.setTransform(),Re(this.container,"is-scaling"),Re(this.container,"is-animating"),this.isTicking=!1,this.state=Ve.Ready,n&&(this.emit("endAnimation"),this.updateControls())}requestTick(){this.isTicking||(this.emit("startAnimation"),this.updateControls(),pe(this.container,"is-animating"),this.isScaling&&pe(this.container,"is-scaling")),this.isTicking=!0,this.rAF||(this.rAF=requestAnimationFrame(()=>this.animate()))}panWithMouse(e,n=this.option("mouseMoveFriction")){if(this.pmme=e,this.panMode!==rn||!e||oe(this.targetScale)<=oe(this.minScale))return;this.emit("mouseMove",e);const{container:r,containerRect:i,contentRect:o}=this,s=i.width,a=i.height,l=r.getBoundingClientRect(),c=(e.clientX||0)-l.left,u=(e.clientY||0)-l.top;let{contentWidth:f,contentHeight:h}=this.calculateContentDim(this.target);const d=this.option("mouseMoveFactor");d>1&&(f!==s&&(f*=d),h!==a&&(h*=d));let p=.5*(f-s)-c/s*100/100*(f-s);p+=.5*(o.right-o.left);let m=.5*(h-a)-u/a*100/100*(h-a);m+=.5*(o.bottom-o.top),this.applyChange({panX:p-this.target.e,panY:m-this.target.f,friction:n})}zoomWithWheel(e){if(this.state===Ve.Destroy||this.state===Ve.Init)return;const n=Date.now();if(n-this.pwt<45)return void e.preventDefault();this.pwt=n;var r=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce(function(c,u){return Math.abs(u)>Math.abs(c)?u:c});const i=Math.max(-1,Math.min(1,r)),{targetScale:o,maxScale:s,minScale:a}=this;let l=o*(100+45*i)/100;oe(l)<oe(a)&&oe(o)<=oe(a)?(this.cwd+=Math.abs(i),l=a):oe(l)>oe(s)&&oe(o)>=oe(s)?(this.cwd+=Math.abs(i),l=s):(this.cwd=0,l=Math.max(Math.min(l,s),a)),this.cwd>this.option("wheelLimit")||(e.preventDefault(),oe(l)!==oe(o)&&this.zoomTo(l,{event:e}))}canZoomIn(){return this.option("zoom")&&(oe(this.contentRect.width,1)<oe(this.contentRect.fitWidth,1)||oe(this.targetScale)<oe(this.maxScale))}canZoomOut(){return this.option("zoom")&&oe(this.targetScale)>oe(this.minScale)}zoomIn(e=1.25,n){this.zoomTo(this.targetScale*e,n)}zoomOut(e=.8,n){this.zoomTo(this.targetScale*e,n)}zoomToFit(e){this.zoomTo("fit",e)}zoomToCover(e){this.zoomTo("cover",e)}zoomToFull(e){this.zoomTo("full",e)}zoomToMax(e){this.zoomTo("max",e)}toggleZoom(e){this.zoomTo(this.getNextScale("toggleZoom"),e)}toggleMax(e){this.zoomTo(this.getNextScale("toggleMax"),e)}toggleCover(e){this.zoomTo(this.getNextScale("toggleCover"),e)}iterateZoom(e){this.zoomTo("next",e)}zoomTo(e=1,{friction:n="auto",originX:r="auto",originY:i="auto",event:o}={}){if(this.isContentLoading||this.state===Ve.Destroy)return;const{targetScale:s,fullScale:a,maxScale:l,coverScale:c}=this;if(this.stop(),this.panMode===rn&&(o=this.pmme||o),o||r==="auto"||i==="auto"){const f=this.content.getBoundingClientRect(),h=this.container.getBoundingClientRect(),d=o?o.clientX:h.left+.5*h.width,p=o?o.clientY:h.top+.5*h.height;r=d-f.left-.5*f.width,i=p-f.top-.5*f.height}let u=1;typeof e=="number"?u=e:e==="full"?u=a:e==="cover"?u=c:e==="max"?u=l:e==="fit"?u=1:e==="next"&&(u=this.getNextScale("iterateZoom")),u=u/s||1,n=n==="auto"?u>1?.15:.25:n,this.applyChange({scale:u,originX:r,originY:i,friction:n}),o&&this.panMode===rn&&this.panWithMouse(o,n)}rotateCCW(){this.applyChange({angle:-90})}rotateCW(){this.applyChange({angle:90})}flipX(){this.applyChange({flipX:!0})}flipY(){this.applyChange({flipY:!0})}fitX(){this.stop("target");const{containerRect:e,contentRect:n,target:r}=this;this.applyChange({panX:.5*e.width-(n.left+.5*n.fitWidth)-r.e,panY:.5*e.height-(n.top+.5*n.fitHeight)-r.f,scale:e.width/n.fitWidth/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}fitY(){this.stop("target");const{containerRect:e,contentRect:n,target:r}=this;this.applyChange({panX:.5*e.width-(n.left+.5*n.fitWidth)-r.e,panY:.5*e.innerHeight-(n.top+.5*n.fitHeight)-r.f,scale:e.height/n.fitHeight/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}toggleFS(){const{container:e}=this,n=this.cn("inFullscreen"),r=this.cn("htmlHasFullscreen");e.classList.toggle(n);const i=e.classList.contains(n);i?(document.documentElement.classList.add(r),document.addEventListener("keydown",this.onKeydown,!0)):(document.documentElement.classList.remove(r),document.removeEventListener("keydown",this.onKeydown,!0)),this.updateMetrics(),this.emit(i?"enterFS":"exitFS")}getMatrix(e=this.current){const{a:n,b:r,c:i,d:o,e:s,f:a}=e;return new DOMMatrix([n,r,i,o,s,a])}reset(e){if(this.state!==Ve.Init&&this.state!==Ve.Destroy){this.stop("current");for(const n of rr)this.target[n]=Zc[n];this.target.a=this.minScale,this.target.d=this.minScale,this.clampTargetBounds(),this.isResting||(this.friction=e===void 0?this.option("friction"):e,this.state=Ve.Panning,this.requestTick())}}destroy(){this.stop(),this.state=Ve.Destroy,this.detachEvents(),this.detachObserver();const{container:e,content:n}=this,r=this.option("classes")||{};for(const i of Object.values(r))e.classList.remove(i+"");n&&(n.removeEventListener("load",this.onLoad),n.removeEventListener("error",this.onError)),this.detachPlugins()}};Object.defineProperty(Ia,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:PI}),Object.defineProperty(Ia,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}});const Ly=function(t,e){let n=!0;return(...r)=>{n&&(n=!1,t(...r),setTimeout(()=>{n=!0},e))}},Fy=(t,e)=>{let n=[];return t.childNodes.forEach(r=>{r.nodeType!==Node.ELEMENT_NODE||e&&!r.matches(e)||n.push(r)}),n},CI={viewport:null,track:null,enabled:!0,slides:[],axis:"x",transition:"fade",preload:1,slidesPerPage:"auto",initialPage:0,friction:.12,Panzoom:{decelFriction:.12},center:!0,infinite:!0,fill:!0,dragFree:!1,adaptiveHeight:!1,direction:"ltr",classes:{container:"f-carousel",viewport:"f-carousel__viewport",track:"f-carousel__track",slide:"f-carousel__slide",isLTR:"is-ltr",isRTL:"is-rtl",isHorizontal:"is-horizontal",isVertical:"is-vertical",inTransition:"in-transition",isSelected:"is-selected"},l10n:{NEXT:"Next slide",PREV:"Previous slide",GOTO:"Go to slide #%d"}};var Xe;(function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Destroy=2]="Destroy"})(Xe||(Xe={}));const sh=t=>{if(typeof t=="string"||t instanceof HTMLElement)t={html:t};else{const e=t.thumb;e!==void 0&&(typeof e=="string"&&(t.thumbSrc=e),e instanceof HTMLImageElement&&(t.thumbEl=e,t.thumbElSrc=e.src,t.thumbSrc=e.src),delete t.thumb)}return Object.assign({html:"",el:null,isDom:!1,class:"",customClass:"",index:-1,dim:0,gap:0,pos:0,transition:!1},t)},TI=(t={})=>Object.assign({index:-1,slides:[],dim:0,pos:-1},t);let jn=class extends uf{constructor(e,n){super(n),Object.defineProperty(this,"instance",{enumerable:!0,configurable:!0,writable:!0,value:e})}attach(){}detach(){}};const II={classes:{list:"f-carousel__dots",isDynamic:"is-dynamic",hasDots:"has-dots",dot:"f-carousel__dot",isBeforePrev:"is-before-prev",isPrev:"is-prev",isCurrent:"is-current",isNext:"is-next",isAfterNext:"is-after-next"},dotTpl:'<button type="button" data-carousel-page="%i" aria-label="{{GOTO}}"><span class="f-carousel__dot" aria-hidden="true"></span></button>',dynamicFrom:11,maxCount:1/0,minCount:2};let SA=class extends jn{constructor(){super(...arguments),Object.defineProperty(this,"isDynamic",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"list",{enumerable:!0,configurable:!0,writable:!0,value:null})}onRefresh(){this.refresh()}build(){let e=this.list;if(!e){e=document.createElement("ul"),pe(e,this.cn("list")),e.setAttribute("role","tablist");const n=this.instance.container;n.appendChild(e),pe(n,this.cn("hasDots")),this.list=e}return e}refresh(){var e;const n=this.instance.pages.length,r=Math.min(2,this.option("minCount")),i=Math.max(2e3,this.option("maxCount")),o=this.option("dynamicFrom");if(n<r||n>i)return void this.cleanup();const s=typeof o=="number"&&n>5&&n>=o,a=!this.list||this.isDynamic!==s||this.list.children.length!==n;a&&this.cleanup();const l=this.build();if(Kn(l,this.cn("isDynamic"),!!s),a)for(let f=0;f<n;f++)l.append(this.createItem(f));let c,u=0;for(const f of[...l.children]){const h=u===this.instance.page;h&&(c=f),Kn(f,this.cn("isCurrent"),h),(e=f.children[0])===null||e===void 0||e.setAttribute("aria-selected",h?"true":"false");for(const d of["isBeforePrev","isPrev","isNext","isAfterNext"])Re(f,this.cn(d));u++}if(c=c||l.firstChild,s&&c){const f=c.previousElementSibling,h=f&&f.previousElementSibling;pe(f,this.cn("isPrev")),pe(h,this.cn("isBeforePrev"));const d=c.nextElementSibling,p=d&&d.nextElementSibling;pe(d,this.cn("isNext")),pe(p,this.cn("isAfterNext"))}this.isDynamic=s}createItem(e=0){var n;const r=document.createElement("li");r.setAttribute("role","presentation");const i=zn(this.instance.localize(this.option("dotTpl"),[["%d",e+1]]).replace(/\%i/g,e+""));return r.appendChild(i),(n=r.children[0])===null||n===void 0||n.setAttribute("role","tab"),r}cleanup(){this.list&&(this.list.remove(),this.list=null),this.isDynamic=!1,Re(this.instance.container,this.cn("hasDots"))}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}};Object.defineProperty(SA,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:II});const eu="disabled",tu="next",Dy="prev";class wA extends jn{constructor(){super(...arguments),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prev",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"next",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isDom",{enumerable:!0,configurable:!0,writable:!0,value:!1})}onRefresh(){const e=this.instance,n=e.pages.length,r=e.page;if(n<2)return void this.cleanup();this.build();let i=this.prev,o=this.next;i&&o&&(i.removeAttribute(eu),o.removeAttribute(eu),e.isInfinite||(r<=0&&i.setAttribute(eu,""),r>=n-1&&o.setAttribute(eu,"")))}addBtn(e){var n;const r=this.instance,i=document.createElement("button");i.setAttribute("tabindex","0"),i.setAttribute("title",r.localize(`{{${e.toUpperCase()}}}`)),pe(i,this.cn("button")+" "+this.cn(e===tu?"isNext":"isPrev"));const o=r.isRTL?e===tu?Dy:tu:e;var s;return i.innerHTML=r.localize(this.option(`${o}Tpl`)),i.dataset[`carousel${s=e,s?s.match("^[a-z]")?s.charAt(0).toUpperCase()+s.substring(1):s:""}`]="true",(n=this.container)===null||n===void 0||n.appendChild(i),i}build(){const e=this.instance.container,n=this.cn("container");let{container:r,prev:i,next:o}=this;r||(r=e.querySelector("."+n),this.isDom=!!r),r||(r=document.createElement("div"),pe(r,n),e.appendChild(r)),this.container=r,o||(o=r.querySelector("[data-carousel-next]")),o||(o=this.addBtn(tu)),this.next=o,i||(i=r.querySelector("[data-carousel-prev]")),i||(i=this.addBtn(Dy)),this.prev=i}cleanup(){this.isDom||(this.prev&&this.prev.remove(),this.next&&this.next.remove(),this.container&&this.container.remove()),this.prev=null,this.next=null,this.container=null,this.isDom=!1}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(wA,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{container:"f-carousel__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"},nextTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M9 3l9 9-9 9"/></svg>',prevTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M15 3l-9 9 9 9"/></svg>'}});class AA extends jn{constructor(){super(...arguments),Object.defineProperty(this,"selectedIndex",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"nav",{enumerable:!0,configurable:!0,writable:!0,value:null})}addAsTargetFor(e){this.target=this.instance,this.nav=e,this.attachEvents()}addAsNavFor(e){this.nav=this.instance,this.target=e,this.attachEvents()}attachEvents(){const{nav:e,target:n}=this;e&&n&&(e.options.initialSlide=n.options.initialPage,e.state===Xe.Ready?this.onNavReady(e):e.on("ready",this.onNavReady),n.state===Xe.Ready?this.onTargetReady(n):n.on("ready",this.onTargetReady))}onNavReady(e){e.on("createSlide",this.onNavCreateSlide),e.on("Panzoom.click",this.onNavClick),e.on("Panzoom.touchEnd",this.onNavTouch),this.onTargetChange()}onTargetReady(e){e.on("change",this.onTargetChange),e.on("Panzoom.refresh",this.onTargetChange),this.onTargetChange()}onNavClick(e,n,r){this.onNavTouch(e,e.panzoom,r)}onNavTouch(e,n,r){var i,o;if(Math.abs(n.dragOffset.x)>3||Math.abs(n.dragOffset.y)>3)return;const s=r.target,{nav:a,target:l}=this;if(!a||!l||!s)return;const c=s.closest("[data-index]");if(r.stopPropagation(),r.preventDefault(),!c)return;const u=parseInt(c.dataset.index||"",10)||0,f=l.getPageForSlide(u),h=a.getPageForSlide(u);a.slideTo(h),l.slideTo(f,{friction:((o=(i=this.nav)===null||i===void 0?void 0:i.plugins)===null||o===void 0?void 0:o.Sync.option("friction"))||0}),this.markSelectedSlide(u)}onNavCreateSlide(e,n){n.index===this.selectedIndex&&this.markSelectedSlide(n.index)}onTargetChange(){var e,n;const{target:r,nav:i}=this;if(!r||!i||i.state!==Xe.Ready||r.state!==Xe.Ready)return;const o=(n=(e=r.pages[r.page])===null||e===void 0?void 0:e.slides[0])===null||n===void 0?void 0:n.index,s=i.getPageForSlide(o);this.markSelectedSlide(o),i.slideTo(s,i.prevPage===null&&r.prevPage===null?{friction:0}:void 0)}markSelectedSlide(e){const n=this.nav;n&&n.state===Xe.Ready&&(this.selectedIndex=e,[...n.slides].map(r=>{r.el&&r.el.classList[r.index===e?"add":"remove"]("is-nav-selected")}))}attach(){const e=this;let n=e.options.target,r=e.options.nav;n?e.addAsNavFor(n):r&&e.addAsTargetFor(r)}detach(){const e=this,n=e.nav,r=e.target;n&&(n.off("ready",e.onNavReady),n.off("createSlide",e.onNavCreateSlide),n.off("Panzoom.click",e.onNavClick),n.off("Panzoom.touchEnd",e.onNavTouch)),e.nav=null,r&&(r.off("ready",e.onTargetReady),r.off("refresh",e.onTargetChange),r.off("change",e.onTargetChange)),e.target=null}}Object.defineProperty(AA,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{friction:.35}});const RI={Navigation:wA,Dots:SA,Sync:AA},nu="animationend",My="isSelected",ru="slide";class Ui extends Eg{get axis(){return this.isHorizontal?"e":"f"}get isEnabled(){return this.state===Xe.Ready}get isInfinite(){let e=!1;const{contentDim:n,viewportDim:r,pages:i,slides:o}=this,s=o[0];return i.length>=2&&s&&n+s.dim>=r&&(e=this.option("infinite")),e}get isRTL(){return this.option("direction")==="rtl"}get isHorizontal(){return this.option("axis")==="x"}constructor(e,n={},r={}){if(super(),Object.defineProperty(this,"bp",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"lp",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"userOptions",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Xe.Init}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"prevPage",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"viewport",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"slides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pages",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"panzoom",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"inTransition",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"contentDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"viewportDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),typeof e=="string"&&(e=document.querySelector(e)),!e||!Lt(e))throw new Error("No Element found");this.container=e,this.slideNext=Ly(this.slideNext.bind(this),150),this.slidePrev=Ly(this.slidePrev.bind(this),150),this.userOptions=n,this.userPlugins=r,queueMicrotask(()=>{this.processOptions()})}processOptions(){var e,n;const r=Ft({},Ui.defaults,this.userOptions);let i="";const o=r.breakpoints;if(o&&Ep(o))for(const[s,a]of Object.entries(o))window.matchMedia(s).matches&&Ep(a)&&(i+=s,Ft(r,a));i===this.bp&&this.state!==Xe.Init||(this.bp=i,this.state===Xe.Ready&&(r.initialSlide=((n=(e=this.pages[this.page])===null||e===void 0?void 0:e.slides[0])===null||n===void 0?void 0:n.index)||0),this.state!==Xe.Init&&this.destroy(),super.setOptions(r),this.option("enabled")===!1?this.attachEvents():setTimeout(()=>{this.init()},0))}init(){this.state=Xe.Init,this.emit("init"),this.attachPlugins(Object.assign(Object.assign({},Ui.Plugins),this.userPlugins)),this.emit("attachPlugins"),this.initLayout(),this.initSlides(),this.updateMetrics(),this.setInitialPosition(),this.initPanzoom(),this.attachEvents(),this.state=Xe.Ready,this.emit("ready")}initLayout(){const{container:e}=this,n=this.option("classes");pe(e,this.cn("container")),Kn(e,n.isLTR,!this.isRTL),Kn(e,n.isRTL,this.isRTL),Kn(e,n.isVertical,!this.isHorizontal),Kn(e,n.isHorizontal,this.isHorizontal);let r=this.option("viewport")||e.querySelector(`.${n.viewport}`);r||(r=document.createElement("div"),pe(r,n.viewport),r.append(...Fy(e,`.${n.slide}`)),e.prepend(r)),r.addEventListener("scroll",this.onScroll);let i=this.option("track")||e.querySelector(`.${n.track}`);i||(i=document.createElement("div"),pe(i,n.track),i.append(...Array.from(r.childNodes))),i.setAttribute("aria-live","polite"),r.contains(i)||r.prepend(i),this.viewport=r,this.track=i,this.emit("initLayout")}initSlides(){const{track:e}=this;if(!e)return;const n=[...this.slides],r=[];[...Fy(e,`.${this.cn(ru)}`)].forEach(i=>{if(Lt(i)){const o=sh({el:i,isDom:!0,index:this.slides.length});r.push(o)}});for(let i of[...this.option("slides",[])||[],...n])r.push(sh(i));this.slides=r;for(let i=0;i<this.slides.length;i++)this.slides[i].index=i;for(const i of r)this.emit("beforeInitSlide",i,i.index),this.emit("initSlide",i,i.index);this.emit("initSlides")}setInitialPage(){const e=this.option("initialSlide");this.page=typeof e=="number"?this.getPageForSlide(e):parseInt(this.option("initialPage",0)+"",10)||0}setInitialPosition(){const{track:e,pages:n,isHorizontal:r}=this;if(!e||!n.length)return;let i=this.page;n[i]||(this.page=i=0);const o=(n[i].pos||0)*(this.isRTL&&r?1:-1),s=r?`${o}px`:"0",a=r?"0":`${o}px`;e.style.transform=`translate3d(${s}, ${a}, 0) scale(1)`,this.option("adaptiveHeight")&&this.setViewportHeight()}initPanzoom(){this.panzoom&&(this.panzoom.destroy(),this.panzoom=null);const e=this.option("Panzoom")||{};this.panzoom=new Ia(this.viewport,Ft({},{content:this.track,zoom:!1,panOnlyZoomed:!1,lockAxis:this.isHorizontal?"x":"y",infinite:this.isInfinite,click:!1,dblClick:!1,touch:n=>!(this.pages.length<2&&!n.options.infinite),bounds:()=>this.getBounds(),maxVelocity:n=>Math.abs(n.target[this.axis]-n.current[this.axis])<2*this.viewportDim?100:0},e)),this.panzoom.on("*",(n,r,...i)=>{this.emit(`Panzoom.${r}`,n,...i)}),this.panzoom.on("decel",this.onDecel),this.panzoom.on("refresh",this.onRefresh),this.panzoom.on("beforeTransform",this.onBeforeTransform),this.panzoom.on("endAnimation",this.onEndAnimation)}attachEvents(){const e=this.container;e&&(e.addEventListener("click",this.onClick,{passive:!1,capture:!1}),e.addEventListener("slideTo",this.onSlideTo)),window.addEventListener("resize",this.onResize)}createPages(){let e=[];const{contentDim:n,viewportDim:r}=this;let i=this.option("slidesPerPage");i=(i==="auto"||n<=r)&&this.option("fill")!==!1?1/0:parseFloat(i+"");let o=0,s=0,a=0;for(const l of this.slides)(!e.length||s+l.dim-r>.05||a>=i)&&(e.push(TI()),o=e.length-1,s=0,a=0),e[o].slides.push(l),s+=l.dim+l.gap,a++;return e}processPages(){const e=this.pages,{contentDim:n,viewportDim:r,isInfinite:i}=this,o=this.option("center"),s=this.option("fill"),a=s&&o&&n>r&&!i;if(e.forEach((u,f)=>{var h;u.index=f,u.pos=((h=u.slides[0])===null||h===void 0?void 0:h.pos)||0,u.dim=0;for(const[d,p]of u.slides.entries())u.dim+=p.dim,d<u.slides.length-1&&(u.dim+=p.gap);a&&u.pos+.5*u.dim<.5*r?u.pos=0:a&&u.pos+.5*u.dim>=n-.5*r?u.pos=n-r:o&&(u.pos+=-.5*(r-u.dim))}),e.forEach(u=>{s&&!i&&n>r&&(u.pos=Math.max(u.pos,0),u.pos=Math.min(u.pos,n-r)),u.pos=oe(u.pos,1e3),u.dim=oe(u.dim,1e3),Math.abs(u.pos)<=.1&&(u.pos=0)}),i)return e;const l=[];let c;return e.forEach(u=>{const f=Object.assign({},u);c&&f.pos===c.pos?(c.dim+=f.dim,c.slides=[...c.slides,...f.slides]):(f.index=l.length,c=f,l.push(f))}),l}getPageFromIndex(e=0){const n=this.pages.length;let r;return e=parseInt((e||0).toString())||0,r=this.isInfinite?(e%n+n)%n:Math.max(Math.min(e,n-1),0),r}getSlideMetrics(e){var n,r;const i=this.isHorizontal?"width":"height";let o=0,s=0,a=e.el;const l=!(!a||a.parentNode);if(a?o=parseFloat(a.dataset[i]||"")||0:(a=document.createElement("div"),a.style.visibility="hidden",(this.track||document.body).prepend(a)),pe(a,this.cn(ru)+" "+e.class+" "+e.customClass),o)a.style[i]=`${o}px`,a.style[i==="width"?"height":"width"]="";else{l&&(this.track||document.body).prepend(a),o=a.getBoundingClientRect()[i]*Math.max(1,((n=window.visualViewport)===null||n===void 0?void 0:n.scale)||1);let u=a[this.isHorizontal?"offsetWidth":"offsetHeight"];u-1>o&&(o=u)}const c=getComputedStyle(a);return c.boxSizing==="content-box"&&(this.isHorizontal?(o+=parseFloat(c.paddingLeft)||0,o+=parseFloat(c.paddingRight)||0):(o+=parseFloat(c.paddingTop)||0,o+=parseFloat(c.paddingBottom)||0)),s=parseFloat(c[this.isHorizontal?"marginRight":"marginBottom"])||0,l?(r=a.parentElement)===null||r===void 0||r.removeChild(a):e.el||a.remove(),{dim:oe(o,1e3),gap:oe(s,1e3)}}getBounds(){const{isInfinite:e,isRTL:n,isHorizontal:r,pages:i}=this;let o={min:0,max:0};if(e)o={min:-1/0,max:1/0};else if(i.length){const s=i[0].pos,a=i[i.length-1].pos;o=n&&r?{min:s,max:a}:{min:-1*a,max:-1*s}}return{x:r?o:{min:0,max:0},y:r?{min:0,max:0}:o}}repositionSlides(){let e,{isHorizontal:n,isRTL:r,isInfinite:i,viewport:o,viewportDim:s,contentDim:a,page:l,pages:c,slides:u,panzoom:f}=this,h=0,d=0,p=0,m=0;f?m=-1*f.current[this.axis]:c[l]&&(m=c[l].pos||0),e=n?r?"right":"left":"top",r&&n&&(m*=-1);for(const y of u){const _=y.el;_?(e==="top"?(_.style.right="",_.style.left=""):_.style.top="",y.index!==h?_.style[e]=d===0?"":`${oe(d,1e3)}px`:_.style[e]="",p+=y.dim+y.gap,h++):d+=y.dim+y.gap}if(i&&p&&o){let y=getComputedStyle(o),_="padding",A=n?"Right":"Bottom",C=parseFloat(y[_+(n?"Left":"Top")]);m-=C,s+=C,s+=parseFloat(y[_+A]);for(const x of u)x.el&&(oe(x.pos)<oe(s)&&oe(x.pos+x.dim+x.gap)<oe(m)&&oe(m)>oe(a-s)&&(x.el.style[e]=`${oe(d+p,1e3)}px`),oe(x.pos+x.gap)>=oe(a-s)&&oe(x.pos)>oe(m+s)&&oe(m)<oe(s)&&(x.el.style[e]=`-${oe(p,1e3)}px`))}let g,v,b=[...this.inTransition];if(b.length>1&&(g=c[b[0]],v=c[b[1]]),g&&v){let y=0;for(const _ of u)_.el?this.inTransition.has(_.index)&&g.slides.indexOf(_)<0&&(_.el.style[e]=`${oe(y+(g.pos-v.pos),1e3)}px`):y+=_.dim+_.gap}}createSlideEl(e){const{track:n,slides:r}=this;if(!n||!e||e.el&&e.el.parentNode)return;const i=e.el||document.createElement("div");pe(i,this.cn(ru)),pe(i,e.class),pe(i,e.customClass);const o=e.html;o&&(o instanceof HTMLElement?i.appendChild(o):i.innerHTML=e.html+"");const s=[];r.forEach((u,f)=>{u.el&&s.push(f)});const a=e.index;let l=null;s.length&&(l=r[s.reduce((u,f)=>Math.abs(f-a)<Math.abs(u-a)?f:u)]);const c=l&&l.el&&l.el.parentNode?l.index<e.index?l.el.nextSibling:l.el:null;n.insertBefore(i,n.contains(c)?c:null),e.el=i,this.emit("createSlide",e)}removeSlideEl(e,n=!1){const r=e==null?void 0:e.el;if(!r||!r.parentNode)return;const i=this.cn(My);if(r.classList.contains(i)&&(Re(r,i),this.emit("unselectSlide",e)),e.isDom&&!n)return r.removeAttribute("aria-hidden"),r.removeAttribute("data-index"),void(r.style.left="");this.emit("removeSlide",e);const o=new CustomEvent(nu);r.dispatchEvent(o),e.el&&(e.el.remove(),e.el=null)}transitionTo(e=0,n=this.option("transition")){var r,i,o,s;if(!n)return!1;const a=this.page,{pages:l,panzoom:c}=this;e=parseInt((e||0).toString())||0;const u=this.getPageFromIndex(e);if(!c||!l[u]||l.length<2||Math.abs((((i=(r=l[a])===null||r===void 0?void 0:r.slides[0])===null||i===void 0?void 0:i.dim)||0)-this.viewportDim)>1)return!1;const f=e>a?1:-1,h=l[u].pos*(this.isRTL?1:-1);if(a===u&&Math.abs(h-c.target[this.axis])<1)return!1;this.clearTransitions();const d=c.isResting;pe(this.container,this.cn("inTransition"));const p=((o=l[a])===null||o===void 0?void 0:o.slides[0])||null,m=((s=l[u])===null||s===void 0?void 0:s.slides[0])||null;this.inTransition.add(m.index),this.createSlideEl(m);let g=p.el,v=m.el;d||n===ru||(n="fadeFast",g=null);const b=this.isRTL?"next":"prev",y=this.isRTL?"prev":"next";return g&&(this.inTransition.add(p.index),p.transition=n,g.addEventListener(nu,this.onAnimationEnd),g.classList.add(`f-${n}Out`,`to-${f>0?y:b}`)),v&&(m.transition=n,v.addEventListener(nu,this.onAnimationEnd),v.classList.add(`f-${n}In`,`from-${f>0?b:y}`)),c.current[this.axis]=h,c.target[this.axis]=h,c.requestTick(),this.onChange(u),!0}manageSlideVisiblity(){const e=new Set,n=new Set,r=this.getVisibleSlides(parseFloat(this.option("preload",0)+"")||0);for(const i of this.slides)r.has(i)?e.add(i):n.add(i);for(const i of this.inTransition)e.add(this.slides[i]);for(const i of e)this.createSlideEl(i),this.lazyLoadSlide(i);for(const i of n)e.has(i)||this.removeSlideEl(i);this.markSelectedSlides(),this.repositionSlides()}markSelectedSlides(){if(!this.pages[this.page]||!this.pages[this.page].slides)return;const e="aria-hidden";let n=this.cn(My);if(n)for(const r of this.slides){const i=r.el;i&&(i.dataset.index=`${r.index}`,i.classList.contains("f-thumbs__slide")?this.getVisibleSlides(0).has(r)?i.removeAttribute(e):i.setAttribute(e,"true"):this.pages[this.page].slides.includes(r)?(i.classList.contains(n)||(pe(i,n),this.emit("selectSlide",r)),i.removeAttribute(e)):(i.classList.contains(n)&&(Re(i,n),this.emit("unselectSlide",r)),i.setAttribute(e,"true")))}}flipInfiniteTrack(){const{axis:e,isHorizontal:n,isInfinite:r,isRTL:i,viewportDim:o,contentDim:s}=this,a=this.panzoom;if(!a||!r)return;let l=a.current[e],c=a.target[e]-l,u=0,f=.5*o;i&&n?(l<-f&&(u=-1,l+=s),l>s-f&&(u=1,l-=s)):(l>f&&(u=1,l-=s),l<-s+f&&(u=-1,l+=s)),u&&(a.current[e]=l,a.target[e]=l+c)}lazyLoadImg(e,n){const r=this,i="f-fadeIn",o="is-preloading";let s=!1,a=null;const l=()=>{s||(s=!0,a&&(a.remove(),a=null),Re(n,o),n.complete&&(pe(n,i),setTimeout(()=>{Re(n,i)},350)),this.option("adaptiveHeight")&&e.el&&this.pages[this.page].slides.indexOf(e)>-1&&(r.updateMetrics(),r.setViewportHeight()),this.emit("load",e))};pe(n,o),n.src=n.dataset.lazySrcset||n.dataset.lazySrc||"",delete n.dataset.lazySrc,delete n.dataset.lazySrcset,n.addEventListener("error",()=>{l()}),n.addEventListener("load",()=>{l()}),setTimeout(()=>{const c=n.parentNode;c&&e.el&&(n.complete?l():s||(a=zn(Pg),c.insertBefore(a,n)))},300)}lazyLoadSlide(e){const n=e&&e.el;if(!n)return;const r=new Set;let i=Array.from(n.querySelectorAll("[data-lazy-src],[data-lazy-srcset]"));n.dataset.lazySrc&&i.push(n),i.map(o=>{o instanceof HTMLImageElement?r.add(o):o instanceof HTMLElement&&o.dataset.lazySrc&&(o.style.backgroundImage=`url('${o.dataset.lazySrc}')`,delete o.dataset.lazySrc)});for(const o of r)this.lazyLoadImg(e,o)}onAnimationEnd(e){var n;const r=e.target,i=r?parseInt(r.dataset.index||"",10)||0:-1,o=this.slides[i],s=e.animationName;if(!r||!o||!s)return;const a=!!this.inTransition.has(i)&&o.transition;a&&s.substring(0,a.length+2)===`f-${a}`&&this.inTransition.delete(i),this.inTransition.size||this.clearTransitions(),i===this.page&&(!((n=this.panzoom)===null||n===void 0)&&n.isResting)&&this.emit("settle")}onDecel(e,n=0,r=0,i=0,o=0){if(this.option("dragFree"))return void this.setPageFromPosition();const{isRTL:s,isHorizontal:a,axis:l,pages:c}=this,u=c.length,f=Math.abs(Math.atan2(r,n)/(Math.PI/180));let h=0;if(h=f>45&&f<135?a?0:r:a?n:0,!u)return;let d=this.page,p=s&&a?1:-1;const m=e.current[l]*p;let{pageIndex:g}=this.getPageFromPosition(m);Math.abs(h)>5?(c[d].dim<document.documentElement["client"+(this.isHorizontal?"Width":"Height")]-1&&(d=g),d=s&&a?h<0?d-1:d+1:h<0?d+1:d-1):d=i===0&&o===0?d:g,this.slideTo(d,{transition:!1,friction:e.option("decelFriction")})}onClick(e){const n=e.target,r=n&&Lt(n)?n.dataset:null;let i,o;r&&(r.carouselPage!==void 0?(o="slideTo",i=r.carouselPage):r.carouselNext!==void 0?o="slideNext":r.carouselPrev!==void 0&&(o="slidePrev")),o?(e.preventDefault(),e.stopPropagation(),n&&!n.hasAttribute("disabled")&&this[o](i)):this.emit("click",e)}onSlideTo(e){const n=e.detail||0;this.slideTo(this.getPageForSlide(n),{friction:0})}onChange(e,n=0){const r=this.page;this.prevPage=r,this.page=e,this.option("adaptiveHeight")&&this.setViewportHeight(),e!==r&&(this.markSelectedSlides(),this.emit("change",e,r,n))}onRefresh(){let e=this.contentDim,n=this.viewportDim;this.updateMetrics(),this.contentDim===e&&this.viewportDim===n||this.slideTo(this.page,{friction:0,transition:!1})}onScroll(){var e;(e=this.viewport)===null||e===void 0||e.scroll(0,0)}onResize(){this.option("breakpoints")&&this.processOptions()}onBeforeTransform(e){this.lp!==e.current[this.axis]&&(this.flipInfiniteTrack(),this.manageSlideVisiblity()),this.lp=e.current.e}onEndAnimation(){this.inTransition.size||this.emit("settle")}reInit(e=null,n=null){this.destroy(),this.state=Xe.Init,this.prevPage=null,this.userOptions=e||this.userOptions,this.userPlugins=n||this.userPlugins,this.processOptions()}slideTo(e=0,{friction:n=this.option("friction"),transition:r=this.option("transition")}={}){if(this.state===Xe.Destroy)return;e=parseInt((e||0).toString())||0;const i=this.getPageFromIndex(e),{axis:o,isHorizontal:s,isRTL:a,pages:l,panzoom:c}=this,u=l.length,f=a&&s?1:-1;if(!c||!u)return;if(this.page!==i){const d=new Event("beforeChange",{bubbles:!0,cancelable:!0});if(this.emit("beforeChange",d,e),d.defaultPrevented)return}if(this.transitionTo(e,r))return;let h=l[i].pos;if(this.isInfinite){const d=this.contentDim,p=c.target[o]*f;u===2?h+=d*Math.floor(parseFloat(e+"")/2):h=[h,h-d,h+d].reduce(function(m,g){return Math.abs(g-p)<Math.abs(m-p)?g:m})}h*=f,Math.abs(c.target[o]-h)<1||(c.panTo({x:s?h:0,y:s?0:h,friction:n}),this.onChange(i))}slideToClosest(e){if(this.panzoom){const{pageIndex:n}=this.getPageFromPosition();this.slideTo(n,e)}}slideNext(){this.slideTo(this.page+1)}slidePrev(){this.slideTo(this.page-1)}clearTransitions(){this.inTransition.clear(),Re(this.container,this.cn("inTransition"));const e=["to-prev","to-next","from-prev","from-next"];for(const n of this.slides){const r=n.el;if(r){r.removeEventListener(nu,this.onAnimationEnd),r.classList.remove(...e);const i=n.transition;i&&r.classList.remove(`f-${i}Out`,`f-${i}In`)}}this.manageSlideVisiblity()}addSlide(e,n){var r,i,o,s;const a=this.panzoom,l=((r=this.pages[this.page])===null||r===void 0?void 0:r.pos)||0,c=((i=this.pages[this.page])===null||i===void 0?void 0:i.dim)||0,u=this.contentDim<this.viewportDim;let f=Array.isArray(n)?n:[n];const h=[];for(const d of f)h.push(sh(d));this.slides.splice(e,0,...h);for(let d=0;d<this.slides.length;d++)this.slides[d].index=d;for(const d of h)this.emit("beforeInitSlide",d,d.index);if(this.page>=e&&(this.page+=h.length),this.updateMetrics(),a){const d=((o=this.pages[this.page])===null||o===void 0?void 0:o.pos)||0,p=((s=this.pages[this.page])===null||s===void 0?void 0:s.dim)||0,m=this.pages.length||1,g=this.isRTL?c-p:p-c,v=this.isRTL?l-d:d-l;u&&m===1?(e<=this.page&&(a.current[this.axis]-=g,a.target[this.axis]-=g),a.panTo({[this.isHorizontal?"x":"y"]:-1*d})):v&&e<=this.page&&(a.target[this.axis]-=v,a.current[this.axis]-=v,a.requestTick())}for(const d of h)this.emit("initSlide",d,d.index)}prependSlide(e){this.addSlide(0,e)}appendSlide(e){this.addSlide(this.slides.length,e)}removeSlide(e){const n=this.slides.length;e=(e%n+n)%n;const r=this.slides[e];if(r){this.removeSlideEl(r,!0),this.slides.splice(e,1);for(let i=0;i<this.slides.length;i++)this.slides[i].index=i;this.updateMetrics(),this.slideTo(this.page,{friction:0,transition:!1}),this.emit("destroySlide",r)}}updateMetrics(){const{panzoom:e,viewport:n,track:r,slides:i,isHorizontal:o,isInfinite:s}=this;if(!r)return;const a=o?"width":"height",l=o?"offsetWidth":"offsetHeight";if(n){let f=Math.max(n[l],oe(n.getBoundingClientRect()[a],1e3)),h=getComputedStyle(n),d="padding",p=o?"Right":"Bottom";f-=parseFloat(h[d+(o?"Left":"Top")])+parseFloat(h[d+p]),this.viewportDim=f}let c,u=0;for(const[f,h]of i.entries()){let d=0,p=0;!h.el&&c?(d=c.dim,p=c.gap):({dim:d,gap:p}=this.getSlideMetrics(h),c=h),d=oe(d,1e3),p=oe(p,1e3),h.dim=d,h.gap=p,h.pos=u,u+=d,(s||f<i.length-1)&&(u+=p)}u=oe(u,1e3),this.contentDim=u,e&&(e.contentRect[a]=u,e.contentRect[o?"fullWidth":"fullHeight"]=u),this.pages=this.createPages(),this.pages=this.processPages(),this.state===Xe.Init&&this.setInitialPage(),this.page=Math.max(0,Math.min(this.page,this.pages.length-1)),this.manageSlideVisiblity(),this.emit("refresh")}getProgress(e,n=!1,r=!1){e===void 0&&(e=this.page);const i=this,o=i.panzoom,s=i.contentDim,a=i.pages[e]||0;if(!a||!o)return e>this.page?-1:1;let l=-1*o.current.e,c=oe((l-a.pos)/(1*a.dim),1e3),u=c,f=c;this.isInfinite&&r!==!0&&(u=oe((l-a.pos+s)/(1*a.dim),1e3),f=oe((l-a.pos-s)/(1*a.dim),1e3));let h=[c,u,f].reduce(function(d,p){return Math.abs(p)<Math.abs(d)?p:d});return n?h:h>1?1:h<-1?-1:h}setViewportHeight(){const{page:e,pages:n,viewport:r,isHorizontal:i}=this;if(!r||!n[e])return;let o=0;i&&this.track&&(this.track.style.height="auto",n[e].slides.forEach(s=>{s.el&&(o=Math.max(o,s.el.offsetHeight))})),r.style.height=o?`${o}px`:""}getPageForSlide(e){for(const n of this.pages)for(const r of n.slides)if(r.index===e)return n.index;return-1}getVisibleSlides(e=0){var n;const r=new Set;let{panzoom:i,contentDim:o,viewportDim:s,pages:a,page:l}=this;if(s){o=o+((n=this.slides[this.slides.length-1])===null||n===void 0?void 0:n.gap)||0;let c=0;c=i&&i.state!==Ve.Init&&i.state!==Ve.Destroy?-1*i.current[this.axis]:a[l]&&a[l].pos||0,this.isInfinite&&(c-=Math.floor(c/o)*o),this.isRTL&&this.isHorizontal&&(c*=-1);const u=c-s*e,f=c+s*(e+1),h=this.isInfinite?[-1,0,1]:[0];for(const d of this.slides)for(const p of h){const m=d.pos+p*o,g=m+d.dim+d.gap;m<f&&g>u&&r.add(d)}}return r}getPageFromPosition(e){const{viewportDim:n,contentDim:r,slides:i,pages:o,panzoom:s}=this,a=o.length,l=i.length,c=i[0],u=i[l-1],f=this.option("center");let h=0,d=0,p=0,m=e===void 0?-1*((s==null?void 0:s.target[this.axis])||0):e;f&&(m+=.5*n),this.isInfinite?(m<c.pos-.5*u.gap&&(m-=r,p=-1),m>u.pos+u.dim+.5*u.gap&&(m-=r,p=1)):m=Math.max(c.pos||0,Math.min(m,u.pos));let g=u,v=i.find(b=>{const y=b.pos-.5*g.gap,_=b.pos+b.dim+.5*b.gap;return g=b,m>=y&&m<_});return v||(v=u),d=this.getPageForSlide(v.index),h=d+p*a,{page:h,pageIndex:d}}setPageFromPosition(){const{pageIndex:e}=this.getPageFromPosition();this.onChange(e)}destroy(){if([Xe.Destroy].includes(this.state))return;this.state=Xe.Destroy;const{container:e,viewport:n,track:r,slides:i,panzoom:o}=this,s=this.option("classes");e.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),e.removeEventListener("slideTo",this.onSlideTo),window.removeEventListener("resize",this.onResize),o&&(o.destroy(),this.panzoom=null),i&&i.forEach(l=>{this.removeSlideEl(l)}),this.detachPlugins(),n&&(n.removeEventListener("scroll",this.onScroll),n.offsetParent&&r&&r.offsetParent&&n.replaceWith(...r.childNodes));for(const[l,c]of Object.entries(s))l!=="container"&&c&&e.classList.remove(c);this.track=null,this.viewport=null,this.page=0,this.slides=[];const a=this.events.get("ready");this.events=new Map,a&&this.events.set("ready",a)}}Object.defineProperty(Ui,"Panzoom",{enumerable:!0,configurable:!0,writable:!0,value:Ia}),Object.defineProperty(Ui,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:CI}),Object.defineProperty(Ui,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:RI});const OA=function(t){if(!Lt(t))return 0;const e=window.scrollY,n=window.innerHeight,r=e+n,i=t.getBoundingClientRect(),o=i.y+e,s=i.height,a=o+s;if(e>a||r<o)return 0;if(e<o&&r>a||o<e&&a>r)return 100;let l=s;o<e&&(l-=e-o),a>r&&(l-=a-r);const c=l/n*100;return Math.round(c)},fa=!(typeof window>"u"||!window.document||!window.document.createElement);let ah;const lh=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden]):not(.fancybox-focus-guard)","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"]):not([disabled]):not([aria-hidden])'].join(","),ky=t=>{if(t&&fa){ah===void 0&&document.createElement("div").focus({get preventScroll(){return ah=!0,!1}});try{if(ah)t.focus({preventScroll:!0});else{const e=window.scrollY||document.body.scrollTop,n=window.scrollX||document.body.scrollLeft;t.focus(),document.body.scrollTo({top:e,left:n,behavior:"auto"})}}catch{}}},EA=()=>{const t=document;let e,n="",r="",i="";return t.fullscreenEnabled?(n="requestFullscreen",r="exitFullscreen",i="fullscreenElement"):t.webkitFullscreenEnabled&&(n="webkitRequestFullscreen",r="webkitExitFullscreen",i="webkitFullscreenElement"),n&&(e={request:function(o=t.documentElement){return n==="webkitRequestFullscreen"?o[n](Element.ALLOW_KEYBOARD_INPUT):o[n]()},exit:function(){return t[i]&&t[r]()},isFullscreen:function(){return t[i]}}),e},Pp={dragToClose:!0,hideScrollbar:!0,Carousel:{classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",track:"fancybox__track",slide:"fancybox__slide"}},contentClick:"toggleZoom",contentDblClick:!1,backdropClick:"close",animated:!0,idle:3500,showClass:"f-zoomInUp",hideClass:"f-fadeOut",commonCaption:!1,parentEl:null,startIndex:0,l10n:Object.assign(Object.assign({},bA),{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ERROR:"Something Went Wrong, Please Try Again Later",IMAGE_ERROR:"Image Not Found",ELEMENT_NOT_FOUND:"HTML Element Not Found",AJAX_NOT_FOUND:"Error Loading AJAX : Not Found",AJAX_FORBIDDEN:"Error Loading AJAX : Forbidden",IFRAME_ERROR:"Error Loading Page",TOGGLE_ZOOM:"Toggle zoom level",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_SLIDESHOW:"Toggle slideshow",TOGGLE_FULLSCREEN:"Toggle full-screen mode",DOWNLOAD:"Download"}),tpl:{closeButton:'<button data-fancybox-close class="f-button is-close-btn" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M20 20L4 4m16 0L4 20"/></svg></button>',main:`<div class="fancybox__container" role="dialog" aria-modal="true" aria-label="{{MODAL}}" tabindex="-1"> <div class="fancybox__backdrop"></div> <div class="fancybox__carousel"></div> <div class="fancybox__footer"></div> </div>`},groupAll:!1,groupAttr:"data-fancybox",defaultType:"image",defaultDisplay:"block",autoFocus:!0,trapFocus:!0,placeFocusBack:!0,closeButton:"auto",keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},Fullscreen:{autoStart:!1},compact:()=>window.matchMedia("(max-width: 578px), (max-height: 578px)").matches,wheel:"zoom"};var ft,Ot;(function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Closing=2]="Closing",t[t.CustomClosing=3]="CustomClosing",t[t.Destroy=4]="Destroy"})(ft||(ft={})),function(t){t[t.Loading=0]="Loading",t[t.Opening=1]="Opening",t[t.Ready=2]="Ready",t[t.Closing=3]="Closing"}(Ot||(Ot={}));let By="",ra=!1,iu=!1,Ri=null;const PA=()=>{let t="",e="";const n=Te.getInstance();if(n){const r=n.carousel,i=n.getSlide();if(r&&i){let o=i.slug||void 0,s=i.triggerEl||void 0;e=o||n.option("slug")||"",!e&&s&&s.dataset&&(e=s.dataset.fancybox||""),e&&e!=="true"&&(t="#"+e+(!o&&r.slides.length>1?"-"+(i.index+1):""))}}return{hash:t,slug:e,index:1}},ff=()=>{const t=new URL(document.URL).hash,e=t.slice(1).split("-"),n=e[e.length-1],r=n&&/^\+?\d+$/.test(n)&&parseInt(e.pop()||"1",10)||1;return{hash:t,slug:e.join("-"),index:r}},xA=()=>{const{slug:t,index:e}=ff();if(!t)return;let n=document.querySelector(`[data-slug="${t}"]`);if(n&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),Te.getInstance())return;const r=document.querySelectorAll(`[data-fancybox="${t}"]`);r.length&&(n=r[e-1],n&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))},CA=()=>{if(Te.defaults.Hash===!1)return;const t=Te.getInstance();if((t==null?void 0:t.options.Hash)===!1)return;const{slug:e,index:n}=ff(),{slug:r}=PA();t&&(e===r?t.jumpTo(n-1):(ra=!0,t.close())),xA()},TA=()=>{Ri&&clearTimeout(Ri),queueMicrotask(()=>{CA()})},Hy=()=>{window.addEventListener("hashchange",TA,!1),setTimeout(()=>{CA()},500)};fa&&(/complete|interactive|loaded/.test(document.readyState)?Hy():document.addEventListener("DOMContentLoaded",Hy));const ou="is-zooming-in";class IA extends jn{onCreateSlide(e,n,r){const i=this.instance.optionFor(r,"src")||"";r.el&&r.type==="image"&&typeof i=="string"&&this.setImage(r,i)}onRemoveSlide(e,n,r){r.panzoom&&r.panzoom.destroy(),r.panzoom=void 0,r.imageEl=void 0}onChange(e,n,r,i){Re(this.instance.container,ou);for(const o of n.slides){const s=o.panzoom;s&&o.index!==r&&s.reset(.35)}}onClose(){var e;const n=this.instance,r=n.container,i=n.getSlide();if(!r||!r.parentElement||!i)return;const{el:o,contentEl:s,panzoom:a,thumbElSrc:l}=i;if(!o||!l||!s||!a||a.isContentLoading||a.state===Ve.Init||a.state===Ve.Destroy)return;a.updateMetrics();let c=this.getZoomInfo(i);if(!c)return;this.instance.state=ft.CustomClosing,r.classList.remove(ou),r.classList.add("is-zooming-out"),s.style.backgroundImage=`url('${l}')`;const u=r.getBoundingClientRect();(((e=window.visualViewport)===null||e===void 0?void 0:e.scale)||1)===1&&Object.assign(r.style,{position:"absolute",top:`${r.offsetTop+window.scrollY}px`,left:`${r.offsetLeft+window.scrollX}px`,bottom:"auto",right:"auto",width:`${u.width}px`,height:`${u.height}px`,overflow:"hidden"});const{x:f,y:h,scale:d,opacity:p}=c;if(p){const m=((g,v,b,y)=>{const _=v-g,A=y-b;return C=>b+((C-g)/_*A||0)})(a.scale,d,1,0);a.on("afterTransform",()=>{s.style.opacity=m(a.scale)+""})}a.on("endAnimation",()=>{n.destroy()}),a.target.a=d,a.target.b=0,a.target.c=0,a.target.d=d,a.panTo({x:f,y:h,scale:d,friction:p?.2:.33,ignoreBounds:!0}),a.isResting&&n.destroy()}setImage(e,n){const r=this.instance;e.src=n,this.process(e,n).then(i=>{const{contentEl:o,imageEl:s,thumbElSrc:a,el:l}=e;if(r.isClosing()||!o||!s)return;o.offsetHeight;const c=!!r.isOpeningSlide(e)&&this.getZoomInfo(e);if(this.option("protected")&&l){l.addEventListener("contextmenu",h=>{h.preventDefault()});const f=document.createElement("div");pe(f,"fancybox-protected"),o.appendChild(f)}if(a&&c){const f=i.contentRect,h=Math.max(f.fullWidth,f.fullHeight);let d=null;!c.opacity&&h>1200&&(d=document.createElement("img"),pe(d,"fancybox-ghost"),d.src=a,o.appendChild(d));const p=()=>{d&&(pe(d,"f-fadeFastOut"),setTimeout(()=>{d&&(d.remove(),d=null)},200))};(u=a,new Promise((m,g)=>{const v=new Image;v.onload=m,v.onerror=g,v.src=u})).then(()=>{r.hideLoading(e),e.state=Ot.Opening,this.instance.emit("reveal",e),this.zoomIn(e).then(()=>{p(),this.instance.done(e)},()=>{}),d&&setTimeout(()=>{p()},h>2500?800:200)},()=>{r.hideLoading(e),r.revealContent(e)})}else{const f=this.optionFor(e,"initialSize"),h=this.optionFor(e,"zoom"),d={event:r.prevMouseMoveEvent||r.options.event,friction:h?.12:0};let p=r.optionFor(e,"showClass")||void 0,m=!0;r.isOpeningSlide(e)&&(f==="full"?i.zoomToFull(d):f==="cover"?i.zoomToCover(d):f==="max"?i.zoomToMax(d):m=!1,i.stop("current")),m&&p&&(p=i.isDragging?"f-fadeIn":""),r.hideLoading(e),r.revealContent(e,p)}var u},()=>{r.setError(e,"{{IMAGE_ERROR}}")})}process(e,n){return new Promise((r,i)=>{var o;const s=this.instance,a=e.el;s.clearContent(e),s.showLoading(e);let l=this.optionFor(e,"content");if(typeof l=="string"&&(l=zn(l)),!l||!Lt(l)){if(l=document.createElement("img"),l instanceof HTMLImageElement){let c="",u=e.caption;c=typeof u=="string"&&u?u.replace(/<[^>]+>/gi,"").substring(0,1e3):`Image ${e.index+1} of ${((o=s.carousel)===null||o===void 0?void 0:o.pages.length)||1}`,l.src=n||"",l.alt=c,l.draggable=!1,e.srcset&&l.setAttribute("srcset",e.srcset),this.instance.isOpeningSlide(e)&&(l.fetchPriority="high")}e.sizes&&l.setAttribute("sizes",e.sizes)}pe(l,"fancybox-image"),e.imageEl=l,s.setContent(e,l,!1),e.panzoom=new Ia(a,Ft({transformParent:!0},this.option("Panzoom")||{},{content:l,width:s.optionFor(e,"width","auto"),height:s.optionFor(e,"height","auto"),wheel:()=>{const c=s.option("wheel");return(c==="zoom"||c=="pan")&&c},click:(c,u)=>{var f,h;if(s.isCompact||s.isClosing()||e.index!==((f=s.getSlide())===null||f===void 0?void 0:f.index))return!1;if(u){const p=u.composedPath()[0];if(["A","BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].includes(p.nodeName))return!1}let d=!u||u.target&&((h=e.contentEl)===null||h===void 0?void 0:h.contains(u.target));return s.option(d?"contentClick":"backdropClick")||!1},dblClick:()=>s.isCompact?"toggleZoom":s.option("contentDblClick")||!1,spinner:!1,panOnlyZoomed:!0,wheelLimit:1/0,on:{ready:c=>{r(c)},error:()=>{i()},destroy:()=>{i()}}}))})}zoomIn(e){return new Promise((n,r)=>{const i=this.instance,o=i.container,{panzoom:s,contentEl:a,el:l}=e;s&&s.updateMetrics();const c=this.getZoomInfo(e);if(!(c&&l&&a&&s&&o))return void r();const{x:u,y:f,scale:h,opacity:d}=c,p=()=>{e.state!==Ot.Closing&&(d&&(a.style.opacity=Math.max(Math.min(1,1-(1-s.scale)/(1-h)),0)+""),s.scale>=1&&s.scale>s.targetScale-.1&&n(s))},m=b=>{(b.scale<.99||b.scale>1.01)&&!b.isDragging||(Re(o,ou),a.style.opacity="",b.off("endAnimation",m),b.off("touchStart",m),b.off("afterTransform",p),n(b))};s.on("endAnimation",m),s.on("touchStart",m),s.on("afterTransform",p),s.on(["error","destroy"],()=>{r()}),s.panTo({x:u,y:f,scale:h,friction:0,ignoreBounds:!0}),s.stop("current");const g={event:s.panMode==="mousemove"?i.prevMouseMoveEvent||i.options.event:void 0},v=this.optionFor(e,"initialSize");pe(o,ou),i.hideLoading(e),v==="full"?s.zoomToFull(g):v==="cover"?s.zoomToCover(g):v==="max"?s.zoomToMax(g):s.reset(.172)})}getZoomInfo(e){const{el:n,imageEl:r,thumbEl:i,panzoom:o}=e,s=this.instance,a=s.container;if(!n||!r||!i||!o||OA(i)<3||!this.optionFor(e,"zoom")||!a||s.state===ft.Destroy||getComputedStyle(a).getPropertyValue("--f-images-zoom")==="0")return!1;const l=window.visualViewport||null;if((l?l.scale:1)!==1)return!1;let{top:c,left:u,width:f,height:h}=i.getBoundingClientRect(),{top:d,left:p,fitWidth:m,fitHeight:g}=o.contentRect;if(!(f&&h&&m&&g))return!1;const v=o.container.getBoundingClientRect();p+=v.left,d+=v.top;const b=-1*(p+.5*m-(u+.5*f)),y=-1*(d+.5*g-(c+.5*h)),_=f/m;let A=this.option("zoomOpacity")||!1;return A==="auto"&&(A=Math.abs(f/h-m/g)>.1),{x:b,y,scale:_,opacity:A}}attach(){const e=this,n=e.instance;n.on("Carousel.change",e.onChange),n.on("Carousel.createSlide",e.onCreateSlide),n.on("Carousel.removeSlide",e.onRemoveSlide),n.on("close",e.onClose)}detach(){const e=this,n=e.instance;n.off("Carousel.change",e.onChange),n.off("Carousel.createSlide",e.onCreateSlide),n.off("Carousel.removeSlide",e.onRemoveSlide),n.off("close",e.onClose)}}Object.defineProperty(IA,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{initialSize:"fit",Panzoom:{maxScale:1},protected:!1,zoom:!0,zoomOpacity:"auto"}}),typeof SuppressedError=="function"&&SuppressedError;const ch="html",qy="image",uh="map",ir="youtube",gi="vimeo",Bs="html5video",Wy=(t,e={})=>{const n=new URL(t),r=new URLSearchParams(n.search),i=new URLSearchParams;for(const[a,l]of[...r,...Object.entries(e)]){let c=l+"";if(a==="t"){let u=c.match(/((\d*)m)?(\d*)s?/);u&&i.set("start",60*parseInt(u[2]||"0")+parseInt(u[3]||"0")+"")}else i.set(a,c)}let o=i+"",s=t.match(/#t=((.*)?\d+s)/);return s&&(o+=`#t=${s[1]}`),o},$I={ajax:null,autoSize:!0,iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto"},preload:!0,videoAutoplay:!0,videoRatio:16/9,videoTpl:`<video class="fancybox__html5video" playsinline controls controlsList="nodownload" poster="{{poster}}"> <source src="{{src}}" type="{{format}}" />Sorry, your browser doesn't support embedded videos.</video>`,videoFormat:"",vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}},VI=["image","html","ajax","inline","clone","iframe","map","pdf","html5video","youtube","vimeo"];class RA extends jn{onBeforeInitSlide(e,n,r){this.processType(r)}onCreateSlide(e,n,r){this.setContent(r)}onClearContent(e,n){n.xhr&&(n.xhr.abort(),n.xhr=null);const r=n.iframeEl;r&&(r.onload=r.onerror=null,r.src="//about:blank",n.iframeEl=null);const i=n.contentEl,o=n.placeholderEl;if(n.type==="inline"&&i&&o)i.classList.remove("fancybox__content"),i.style.display!=="none"&&(i.style.display="none"),o.parentNode&&o.parentNode.insertBefore(i,o),o.remove(),n.contentEl=void 0,n.placeholderEl=void 0;else for(;n.el&&n.el.firstChild;)n.el.removeChild(n.el.firstChild)}onSelectSlide(e,n,r){r.state===Ot.Ready&&this.playVideo()}onUnselectSlide(e,n,r){var i,o;if(r.type===Bs){try{(o=(i=r.el)===null||i===void 0?void 0:i.querySelector("video"))===null||o===void 0||o.pause()}catch{}return}let s;r.type===gi?s={method:"pause",value:"true"}:r.type===ir&&(s={event:"command",func:"pauseVideo"}),s&&r.iframeEl&&r.iframeEl.contentWindow&&r.iframeEl.contentWindow.postMessage(JSON.stringify(s),"*"),r.poller&&clearTimeout(r.poller)}onDone(e,n){e.isCurrentSlide(n)&&!e.isClosing()&&this.playVideo()}onRefresh(e,n){n.slides.forEach(r=>{r.el&&(this.resizeIframe(r),this.setAspectRatio(r))})}onMessage(e){try{let n=JSON.parse(e.data);if(e.origin==="https://player.vimeo.com"){if(n.event==="ready")for(let r of Array.from(document.getElementsByClassName("fancybox__iframe")))r instanceof HTMLIFrameElement&&r.contentWindow===e.source&&(r.dataset.ready="true")}else if(e.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&n.event==="onReady"){const r=document.getElementById(n.id);r&&(r.dataset.ready="true")}}catch{}}loadAjaxContent(e){const n=this.instance.optionFor(e,"src")||"";this.instance.showLoading(e);const r=this.instance,i=new XMLHttpRequest;r.showLoading(e),i.onreadystatechange=function(){i.readyState===XMLHttpRequest.DONE&&r.state===ft.Ready&&(r.hideLoading(e),i.status===200?r.setContent(e,i.responseText):r.setError(e,i.status===404?"{{AJAX_NOT_FOUND}}":"{{AJAX_FORBIDDEN}}"))};const o=e.ajax||null;i.open(o?"POST":"GET",n+""),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.send(o),e.xhr=i}setInlineContent(e){let n=null;if(Lt(e.src))n=e.src;else if(typeof e.src=="string"){const r=e.src.split("#",2).pop();n=r?document.getElementById(r):null}if(n){if(e.type==="clone"||n.closest(".fancybox__slide")){n=n.cloneNode(!0);const r=n.dataset.animationName;r&&(n.classList.remove(r),delete n.dataset.animationName);let i=n.getAttribute("id");i=i?`${i}--clone`:`clone-${this.instance.id}-${e.index}`,n.setAttribute("id",i)}else if(n.parentNode){const r=document.createElement("div");r.classList.add("fancybox-placeholder"),n.parentNode.insertBefore(r,n),e.placeholderEl=r}this.instance.setContent(e,n)}else this.instance.setError(e,"{{ELEMENT_NOT_FOUND}}")}setIframeContent(e){const{src:n,el:r}=e;if(!n||typeof n!="string"||!r)return;r.classList.add("is-loading");const i=this.instance,o=document.createElement("iframe");o.className="fancybox__iframe",o.setAttribute("id",`fancybox__iframe_${i.id}_${e.index}`);for(const[a,l]of Object.entries(this.optionFor(e,"iframeAttr")||{}))o.setAttribute(a,l);o.onerror=()=>{i.setError(e,"{{IFRAME_ERROR}}")},e.iframeEl=o;const s=this.optionFor(e,"preload");if(e.type!=="iframe"||s===!1)return o.setAttribute("src",e.src+""),i.setContent(e,o,!1),this.resizeIframe(e),void i.revealContent(e);i.showLoading(e),o.onload=()=>{if(!o.src.length)return;const a=o.dataset.ready!=="true";o.dataset.ready="true",this.resizeIframe(e),a?i.revealContent(e):i.hideLoading(e)},o.setAttribute("src",n),i.setContent(e,o,!1)}resizeIframe(e){const{type:n,iframeEl:r}=e;if(n===ir||n===gi)return;const i=r==null?void 0:r.parentElement;if(!r||!i)return;let o=e.autoSize;o===void 0&&(o=this.optionFor(e,"autoSize"));let s=e.width||0,a=e.height||0;s&&a&&(o=!1);const l=i&&i.style;if(e.preload!==!1&&o!==!1&&l)try{const c=window.getComputedStyle(i),u=parseFloat(c.paddingLeft)+parseFloat(c.paddingRight),f=parseFloat(c.paddingTop)+parseFloat(c.paddingBottom),h=r.contentWindow;if(h){const d=h.document,p=d.getElementsByTagName(ch)[0],m=d.body;l.width="",m.style.overflow="hidden",s=s||p.scrollWidth+u,l.width=`${s}px`,m.style.overflow="",l.flex="0 0 auto",l.height=`${m.scrollHeight}px`,a=p.scrollHeight+f}}catch{}if(s||a){const c={flex:"0 1 auto",width:"",height:""};s&&s!=="auto"&&(c.width=`${s}px`),a&&a!=="auto"&&(c.height=`${a}px`),Object.assign(l,c)}}playVideo(){const e=this.instance.getSlide();if(!e)return;const{el:n}=e;if(!n||!n.offsetParent||!this.optionFor(e,"videoAutoplay"))return;if(e.type===Bs)try{const i=n.querySelector("video");if(i){const o=i.play();o!==void 0&&o.then(()=>{}).catch(s=>{i.muted=!0,i.play()})}}catch{}if(e.type!==ir&&e.type!==gi)return;const r=()=>{if(e.iframeEl&&e.iframeEl.contentWindow){let i;if(e.iframeEl.dataset.ready==="true")return i=e.type===ir?{event:"command",func:"playVideo"}:{method:"play",value:"true"},i&&e.iframeEl.contentWindow.postMessage(JSON.stringify(i),"*"),void(e.poller=void 0);e.type===ir&&(i={event:"listening",id:e.iframeEl.getAttribute("id")},e.iframeEl.contentWindow.postMessage(JSON.stringify(i),"*"))}e.poller=setTimeout(r,250)};r()}processType(e){if(e.html)return e.type=ch,e.src=e.html,void(e.html="");const n=this.instance.optionFor(e,"src","");if(!n||typeof n!="string")return;let r=e.type,i=null;if(i=n.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i)){const o=this.optionFor(e,ir),{nocookie:s}=o,a=function(f,h){var d={};for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&h.indexOf(p)<0&&(d[p]=f[p]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function"){var m=0;for(p=Object.getOwnPropertySymbols(f);m<p.length;m++)h.indexOf(p[m])<0&&Object.prototype.propertyIsEnumerable.call(f,p[m])&&(d[p[m]]=f[p[m]])}return d}(o,["nocookie"]),l=`www.youtube${s?"-nocookie":""}.com`,c=Wy(n,a),u=encodeURIComponent(i[2]);e.videoId=u,e.src=`https://${l}/embed/${u}?${c}`,e.thumbSrc=e.thumbSrc||`https://i.ytimg.com/vi/${u}/mqdefault.jpg`,r=ir}else if(i=n.match(/^.+vimeo.com\/(?:\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/)){const o=Wy(n,this.optionFor(e,gi)),s=encodeURIComponent(i[1]),a=i[4]||"";e.videoId=s,e.src=`https://player.vimeo.com/video/${s}?${a?`h=${a}${o?"&":""}`:""}${o}`,r=gi}if(!r&&e.triggerEl){const o=e.triggerEl.dataset.type;VI.includes(o)&&(r=o)}r||typeof n=="string"&&(n.charAt(0)==="#"?r="inline":(i=n.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(r=Bs,e.videoFormat=e.videoFormat||"video/"+(i[1]==="ogv"?"ogg":i[1])):n.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?r=qy:n.match(/\.(pdf)((\?|#).*)?$/i)&&(r="pdf")),(i=n.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i))?(e.src=`https://maps.google.${i[1]}/?ll=${(i[2]?i[2]+"&z="+Math.floor(parseFloat(i[3]))+(i[4]?i[4].replace(/^\//,"&"):""):i[4]+"").replace(/\?/,"&")}&output=${i[4]&&i[4].indexOf("layer=c")>0?"svembed":"embed"}`,r=uh):(i=n.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i))&&(e.src=`https://maps.google.${i[1]}/maps?q=${i[2].replace("query=","q=").replace("api=1","")}&output=embed`,r=uh),r=r||this.instance.option("defaultType"),e.type=r,r===qy&&(e.thumbSrc=e.thumbSrc||e.src)}setContent(e){const n=this.instance.optionFor(e,"src")||"";if(e&&e.type&&n){switch(e.type){case ch:this.instance.setContent(e,n);break;case Bs:const r=this.option("videoTpl");r&&this.instance.setContent(e,r.replace(/\{\{src\}\}/gi,n+"").replace(/\{\{format\}\}/gi,this.optionFor(e,"videoFormat")||"").replace(/\{\{poster\}\}/gi,e.poster||e.thumbSrc||""));break;case"inline":case"clone":this.setInlineContent(e);break;case"ajax":this.loadAjaxContent(e);break;case"pdf":case uh:case ir:case gi:e.preload=!1;case"iframe":this.setIframeContent(e)}this.setAspectRatio(e)}}setAspectRatio(e){const n=e.contentEl;if(!(e.el&&n&&e.type&&[ir,gi,Bs].includes(e.type)))return;let r,i=e.width||"auto",o=e.height||"auto";if(i==="auto"||o==="auto"){r=this.optionFor(e,"videoRatio");const c=(r+"").match(/(\d+)\s*\/\s?(\d+)/);r=c&&c.length>2?parseFloat(c[1])/parseFloat(c[2]):parseFloat(r+"")}else i&&o&&(r=i/o);if(!r)return;n.style.aspectRatio="",n.style.width="",n.style.height="",n.offsetHeight;const s=n.getBoundingClientRect(),a=s.width||1,l=s.height||1;n.style.aspectRatio=r+"",r<a/l?(o=o==="auto"?l:Math.min(l,o),n.style.width="auto",n.style.height=`${o}px`):(i=i==="auto"?a:Math.min(a,i),n.style.width=`${i}px`,n.style.height="auto")}attach(){const e=this,n=e.instance;n.on("Carousel.beforeInitSlide",e.onBeforeInitSlide),n.on("Carousel.createSlide",e.onCreateSlide),n.on("Carousel.selectSlide",e.onSelectSlide),n.on("Carousel.unselectSlide",e.onUnselectSlide),n.on("Carousel.Panzoom.refresh",e.onRefresh),n.on("done",e.onDone),n.on("clearContent",e.onClearContent),window.addEventListener("message",e.onMessage)}detach(){const e=this,n=e.instance;n.off("Carousel.beforeInitSlide",e.onBeforeInitSlide),n.off("Carousel.createSlide",e.onCreateSlide),n.off("Carousel.selectSlide",e.onSelectSlide),n.off("Carousel.unselectSlide",e.onUnselectSlide),n.off("Carousel.Panzoom.refresh",e.onRefresh),n.off("done",e.onDone),n.off("clearContent",e.onClearContent),window.removeEventListener("message",e.onMessage)}}Object.defineProperty(RA,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:$I});const su="play",au="pause",Hs="ready";class $A extends jn{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Hs}),Object.defineProperty(this,"inHover",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"timer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"progressBar",{enumerable:!0,configurable:!0,writable:!0,value:null})}get isActive(){return this.state!==Hs}onReady(e){this.option("autoStart")&&(e.isInfinite||e.page<e.pages.length-1)&&this.start()}onChange(){this.removeProgressBar(),this.pause()}onSettle(){this.resume()}onVisibilityChange(){document.visibilityState==="visible"?this.resume():this.pause()}onMouseEnter(){this.inHover=!0,this.pause()}onMouseLeave(){var e;this.inHover=!1,!((e=this.instance.panzoom)===null||e===void 0)&&e.isResting&&this.resume()}onTimerEnd(){const e=this.instance;this.state==="play"&&(e.isInfinite||e.page!==e.pages.length-1?e.slideNext():e.slideTo(0))}removeProgressBar(){this.progressBar&&(this.progressBar.remove(),this.progressBar=null)}createProgressBar(){var e;if(!this.option("showProgress"))return null;this.removeProgressBar();const n=this.instance,r=((e=n.pages[n.page])===null||e===void 0?void 0:e.slides)||[];let i=this.option("progressParentEl");if(i||(i=(r.length===1?r[0].el:null)||n.viewport),!i)return null;const o=document.createElement("div");return pe(o,"f-progress"),i.prepend(o),this.progressBar=o,o.offsetHeight,o}set(){const e=this,n=e.instance;if(n.pages.length<2||e.timer)return;const r=e.option("timeout");e.state=su,pe(n.container,"has-autoplay");let i=e.createProgressBar();i&&(i.style.transitionDuration=`${r}ms`,i.style.transform="scaleX(1)"),e.timer=setTimeout(()=>{e.timer=null,e.inHover||e.onTimerEnd()},r),e.emit("set")}clear(){const e=this;e.timer&&(clearTimeout(e.timer),e.timer=null),e.removeProgressBar()}start(){const e=this;if(e.set(),e.state!==Hs){if(e.option("pauseOnHover")){const n=e.instance.container;n.addEventListener("mouseenter",e.onMouseEnter,!1),n.addEventListener("mouseleave",e.onMouseLeave,!1)}document.addEventListener("visibilitychange",e.onVisibilityChange,!1),e.emit("start")}}stop(){const e=this,n=e.state,r=e.instance.container;e.clear(),e.state=Hs,r.removeEventListener("mouseenter",e.onMouseEnter,!1),r.removeEventListener("mouseleave",e.onMouseLeave,!1),document.removeEventListener("visibilitychange",e.onVisibilityChange,!1),Re(r,"has-autoplay"),n!==Hs&&e.emit("stop")}pause(){const e=this;e.state===su&&(e.state=au,e.clear(),e.emit(au))}resume(){const e=this,n=e.instance;if(n.isInfinite||n.page!==n.pages.length-1)if(e.state!==su){if(e.state===au&&!e.inHover){const r=new Event("resume",{bubbles:!0,cancelable:!0});e.emit("resume",r),r.defaultPrevented||e.set()}}else e.set();else e.stop()}toggle(){this.state===su||this.state===au?this.stop():this.start()}attach(){const e=this,n=e.instance;n.on("ready",e.onReady),n.on("Panzoom.startAnimation",e.onChange),n.on("Panzoom.endAnimation",e.onSettle),n.on("Panzoom.touchMove",e.onChange)}detach(){const e=this,n=e.instance;n.off("ready",e.onReady),n.off("Panzoom.startAnimation",e.onChange),n.off("Panzoom.endAnimation",e.onSettle),n.off("Panzoom.touchMove",e.onChange),e.stop()}}Object.defineProperty($A,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{autoStart:!0,pauseOnHover:!0,progressParentEl:null,showProgress:!0,timeout:3e3}});class VA extends jn{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null})}onPrepare(e){const n=e.carousel;if(!n)return;const r=e.container;r&&(n.options.Autoplay=Ft({autoStart:!1},this.option("Autoplay")||{},{pauseOnHover:!1,timeout:this.option("timeout"),progressParentEl:()=>this.option("progressParentEl")||null,on:{start:()=>{e.emit("startSlideshow")},set:i=>{var o;r.classList.add("has-slideshow"),((o=e.getSlide())===null||o===void 0?void 0:o.state)!==Ot.Ready&&i.pause()},stop:()=>{r.classList.remove("has-slideshow"),e.isCompact||e.endIdle(),e.emit("endSlideshow")},resume:(i,o)=>{var s,a,l;!o||!o.cancelable||((s=e.getSlide())===null||s===void 0?void 0:s.state)===Ot.Ready&&(!((l=(a=e.carousel)===null||a===void 0?void 0:a.panzoom)===null||l===void 0)&&l.isResting)||o.preventDefault()}}}),n.attachPlugins({Autoplay:$A}),this.ref=n.plugins.Autoplay)}onReady(e){const n=e.carousel,r=this.ref;r&&n&&this.option("playOnStart")&&(n.isInfinite||n.page<n.pages.length-1)&&r.start()}onDone(e,n){const r=this.ref,i=e.carousel;if(!r||!i)return;const o=n.panzoom;o&&o.on("startAnimation",()=>{e.isCurrentSlide(n)&&r.stop()}),e.isCurrentSlide(n)&&r.resume()}onKeydown(e,n){var r;const i=this.ref;i&&n===this.option("key")&&((r=document.activeElement)===null||r===void 0?void 0:r.nodeName)!=="BUTTON"&&i.toggle()}attach(){const e=this,n=e.instance;n.on("Carousel.init",e.onPrepare),n.on("Carousel.ready",e.onReady),n.on("done",e.onDone),n.on("keydown",e.onKeydown)}detach(){const e=this,n=e.instance;n.off("Carousel.init",e.onPrepare),n.off("Carousel.ready",e.onReady),n.off("done",e.onDone),n.off("keydown",e.onKeydown)}}Object.defineProperty(VA,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{key:" ",playOnStart:!1,progressParentEl:t=>{var e;return((e=t.instance.container)===null||e===void 0?void 0:e.querySelector(".fancybox__toolbar [data-fancybox-toggle-slideshow]"))||t.instance.container},timeout:3e3}});const jA={classes:{container:"f-thumbs f-carousel__thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide",isResting:"is-resting",isSelected:"is-selected",isLoading:"is-loading",hasThumbs:"has-thumbs"},minCount:2,parentEl:null,thumbTpl:'<button class="f-thumbs__slide__button" tabindex="0" type="button" aria-label="{{GOTO}}" data-carousel-index="%i"><img class="f-thumbs__slide__img" data-lazy-src="{{%s}}" alt="" /></button>',type:"modern"};var dr;(function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Hidden=2]="Hidden"})(dr||(dr={}));const Uy="isResting",lu="thumbWidth",Oo="thumbHeight",Fn="thumbClipWidth";let NA=class extends jn{constructor(){super(...arguments),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:"modern"}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"thumbWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbClipWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbExtraGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:dr.Init})}get isModern(){return this.type==="modern"}onInitSlide(t,e){const n=e.el?e.el.dataset:void 0;n&&(e.thumbSrc=n.thumbSrc||e.thumbSrc||"",e[Fn]=parseFloat(n[Fn]||"")||e[Fn]||0,e[Oo]=parseFloat(n.thumbHeight||"")||e[Oo]||0),this.addSlide(e)}onInitSlides(){this.build()}onChange(){var t;if(!this.isModern)return;const e=this.container,n=this.instance,r=n.panzoom,i=this.carousel,o=i?i.panzoom:null,s=n.page;if(r&&i&&o){if(r.isDragging){Re(e,this.cn(Uy));let a=((t=i.pages[s])===null||t===void 0?void 0:t.pos)||0;a+=n.getProgress(s)*(this[Fn]+this.thumbGap);let l=o.getBounds();-1*a>l.x.min&&-1*a<l.x.max&&o.panTo({x:-1*a,friction:.12})}else Kn(e,this.cn(Uy),r.isResting);this.shiftModern()}}onRefresh(){this.updateProps();for(const t of this.instance.slides||[])this.resizeModernSlide(t);this.shiftModern()}isDisabled(){const t=this.option("minCount")||0;if(t){const n=this.instance;let r=0;for(const i of n.slides||[])i.thumbSrc&&r++;if(r<t)return!0}const e=this.option("type");return["modern","classic"].indexOf(e)<0}getThumb(t){const e=this.option("thumbTpl")||"";return{html:this.instance.localize(e,[["%i",t.index],["%d",t.index+1],["%s",t.thumbSrc||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"]])}}addSlide(t){const e=this.carousel;e&&e.addSlide(t.index,this.getThumb(t))}getSlides(){const t=[];for(const e of this.instance.slides||[])t.push(this.getThumb(e));return t}resizeModernSlide(t){this.isModern&&(t[lu]=t[Fn]&&t[Oo]?Math.round(this[Oo]*(t[Fn]/t[Oo])):this[lu])}updateProps(){const t=this.container;if(!t)return;const e=n=>parseFloat(getComputedStyle(t).getPropertyValue("--f-thumb-"+n))||0;this.thumbGap=e("gap"),this.thumbExtraGap=e("extra-gap"),this[lu]=e("width")||40,this[Fn]=e("clip-width")||40,this[Oo]=e("height")||40}build(){const t=this;if(t.state!==dr.Init)return;if(t.isDisabled())return void t.emit("disabled");const e=t.instance,n=e.container,r=t.getSlides(),i=t.option("type");t.type=i;const o=t.option("parentEl"),s=t.cn("container"),a=t.cn("track");let l=o==null?void 0:o.querySelector("."+s);l||(l=document.createElement("div"),pe(l,s),o?o.appendChild(l):n.after(l)),pe(l,`is-${i}`),pe(n,t.cn("hasThumbs")),t.container=l,t.updateProps();let c=l.querySelector("."+a);c||(c=document.createElement("div"),pe(c,t.cn("track")),l.appendChild(c)),t.track=c;const u=Ft({},{track:c,infinite:!1,center:!0,fill:i==="classic",dragFree:!0,slidesPerPage:1,transition:!1,preload:.25,friction:.12,Panzoom:{maxVelocity:0},Dots:!1,Navigation:!1,classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide"}},t.option("Carousel")||{},{Sync:{target:e},slides:r}),f=new e.constructor(l,u);f.on("createSlide",(h,d)=>{t.setProps(d.index),t.emit("createSlide",d,d.el)}),f.on("ready",()=>{t.shiftModern(),t.emit("ready")}),f.on("refresh",()=>{t.shiftModern()}),f.on("Panzoom.click",(h,d,p)=>{t.onClick(p)}),t.carousel=f,t.state=dr.Ready}onClick(t){t.preventDefault(),t.stopPropagation();const e=this.instance,{pages:n,page:r}=e,i=m=>{if(m){const g=m.closest("[data-carousel-index]");if(g)return[parseInt(g.dataset.carouselIndex||"",10)||0,g]}return[-1,void 0]},o=(m,g)=>{const v=document.elementFromPoint(m,g);return v?i(v):[-1,void 0]};let[s,a]=i(t.target);if(s>-1)return;const l=this[Fn],c=t.clientX,u=t.clientY;let[f,h]=o(c-l,u),[d,p]=o(c+l,u);h&&p?(s=Math.abs(c-h.getBoundingClientRect().right)<Math.abs(c-p.getBoundingClientRect().left)?f:d,s===r&&(s=s===f?d:f)):h?s=f:p&&(s=d),s>-1&&n[s]&&e.slideTo(s)}getShift(t){var e;const n=this,{instance:r}=n,i=n.carousel;if(!r||!i)return 0;const o=n[lu],s=n[Fn],a=n.thumbGap,l=n.thumbExtraGap;if(!(!((e=i.slides[t])===null||e===void 0)&&e.el))return 0;const c=.5*(o-s),u=r.pages.length-1;let f=r.getProgress(0),h=r.getProgress(u),d=r.getProgress(t,!1,!0),p=0,m=c+l+a;const g=f<0&&f>-1,v=h>0&&h<1;return t===0?(p=m*Math.abs(f),v&&f===1&&(p-=m*Math.abs(h))):t===u?(p=m*Math.abs(h)*-1,g&&h===-1&&(p+=m*Math.abs(f))):g||v?(p=-1*m,p+=m*Math.abs(f),p+=m*(1-Math.abs(h))):p=m*d,p}setProps(t){var e;const n=this;if(!n.isModern)return;const{instance:r}=n,i=n.carousel;if(r&&i){const o=(e=i.slides[t])===null||e===void 0?void 0:e.el;if(o&&o.childNodes.length){let s=oe(1-Math.abs(r.getProgress(t))),a=oe(n.getShift(t));o.style.setProperty("--progress",s?s+"":""),o.style.setProperty("--shift",a+"")}}}shiftModern(){const t=this;if(!t.isModern)return;const{instance:e,track:n}=t,r=e.panzoom,i=t.carousel;if(!(e&&n&&r&&i)||r.state===Ve.Init||r.state===Ve.Destroy)return;for(const s of e.slides)t.setProps(s.index);let o=(t[Fn]+t.thumbGap)*(i.slides.length||0);n.style.setProperty("--width",o+"")}cleanup(){const t=this;t.carousel&&t.carousel.destroy(),t.carousel=null,t.container&&t.container.remove(),t.container=null,t.track&&t.track.remove(),t.track=null,t.state=dr.Init,Re(t.instance.container,t.cn("hasThumbs"))}attach(){const t=this,e=t.instance;e.on("initSlide",t.onInitSlide),e.state===Xe.Init?e.on("initSlides",t.onInitSlides):t.onInitSlides(),e.on(["change","Panzoom.afterTransform"],t.onChange),e.on("Panzoom.refresh",t.onRefresh)}detach(){const t=this,e=t.instance;e.off("initSlide",t.onInitSlide),e.off("initSlides",t.onInitSlides),e.off(["change","Panzoom.afterTransform"],t.onChange),e.off("Panzoom.refresh",t.onRefresh),t.cleanup()}};Object.defineProperty(NA,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:jA});const jI=Object.assign(Object.assign({},jA),{key:"t",showOnStart:!0,parentEl:null}),Qy="is-masked",zy="aria-hidden";class LA extends jn{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"hidden",{enumerable:!0,configurable:!0,writable:!0,value:!1})}get isEnabled(){const e=this.ref;return e&&!e.isDisabled()}get isHidden(){return this.hidden}onClick(e,n){n.stopPropagation()}onCreateSlide(e,n){var r,i,o;const s=((o=(i=(r=this.instance)===null||r===void 0?void 0:r.carousel)===null||i===void 0?void 0:i.slides[n.index])===null||o===void 0?void 0:o.type)||"",a=n.el;if(a&&s){let l=`for-${s}`;["video","youtube","vimeo","html5video"].includes(s)&&(l+=" for-video"),pe(a,l)}}onInit(){var e;const n=this,r=n.instance,i=r.carousel;if(n.ref||!i)return;const o=n.option("parentEl")||r.footer||r.container;if(!o)return;const s=Ft({},n.options,{parentEl:o,classes:{container:"f-thumbs fancybox__thumbs"},Carousel:{Sync:{friction:r.option("Carousel.friction")||0}},on:{ready:a=>{const l=a.container;l&&this.hidden&&(n.refresh(),l.style.transition="none",n.hide(),l.offsetHeight,queueMicrotask(()=>{l.style.transition="",n.show()}))}}});s.Carousel=s.Carousel||{},s.Carousel.on=Ft(((e=n.options.Carousel)===null||e===void 0?void 0:e.on)||{},{click:this.onClick,createSlide:this.onCreateSlide}),i.options.Thumbs=s,i.attachPlugins({Thumbs:NA}),n.ref=i.plugins.Thumbs,n.option("showOnStart")||(n.ref.state=dr.Hidden,n.hidden=!0)}onResize(){var e;const n=(e=this.ref)===null||e===void 0?void 0:e.container;n&&(n.style.maxHeight="")}onKeydown(e,n){const r=this.option("key");r&&r===n&&this.toggle()}toggle(){const e=this.ref;if(e&&!e.isDisabled())return e.state===dr.Hidden?(e.state=dr.Init,void e.build()):void(this.hidden?this.show():this.hide())}show(){const e=this.ref;if(!e||e.isDisabled())return;const n=e.container;n&&(this.refresh(),n.offsetHeight,n.removeAttribute(zy),n.classList.remove(Qy),this.hidden=!1)}hide(){const e=this.ref,n=e&&e.container;n&&(this.refresh(),n.offsetHeight,n.classList.add(Qy),n.setAttribute(zy,"true")),this.hidden=!0}refresh(){const e=this.ref;if(!e||!e.state)return;const n=e.container,r=(n==null?void 0:n.firstChild)||null;n&&r&&r.childNodes.length&&(n.style.maxHeight=`${r.getBoundingClientRect().height}px`)}attach(){const e=this,n=e.instance;n.state===ft.Init?n.on("Carousel.init",e.onInit):e.onInit(),n.on("resize",e.onResize),n.on("keydown",e.onKeydown)}detach(){var e;const n=this,r=n.instance;r.off("Carousel.init",n.onInit),r.off("resize",n.onResize),r.off("keydown",n.onKeydown),(e=r.carousel)===null||e===void 0||e.detachPlugins(["Thumbs"]),n.ref=null}}Object.defineProperty(LA,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:jI});const fh={panLeft:{icon:'<svg><path d="M5 12h14M5 12l6 6M5 12l6-6"/></svg>',change:{panX:-100}},panRight:{icon:'<svg><path d="M5 12h14M13 18l6-6M13 6l6 6"/></svg>',change:{panX:100}},panUp:{icon:'<svg><path d="M12 5v14M18 11l-6-6M6 11l6-6"/></svg>',change:{panY:-100}},panDown:{icon:'<svg><path d="M12 5v14M18 13l-6 6M6 13l6 6"/></svg>',change:{panY:100}},zoomIn:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M11 8v6M8 11h6"/></svg>',action:"zoomIn"},zoomOut:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"zoomOut"},toggle1to1:{icon:'<svg><path d="M3.51 3.07c5.74.02 11.48-.02 17.22.02 1.37.1 2.34 1.64 2.18 3.13 0 4.08.02 8.16 0 12.23-.1 1.54-1.47 2.64-2.79 2.46-5.61-.01-11.24.02-16.86-.01-1.36-.12-2.33-1.65-2.17-3.14 0-4.07-.02-8.16 0-12.23.1-1.36 1.22-2.48 2.42-2.46Z"/><path d="M5.65 8.54h1.49v6.92m8.94-6.92h1.49v6.92M11.5 9.4v.02m0 5.18v0"/></svg>',action:"toggleZoom"},toggleZoom:{icon:'<svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"toggleZoom"},iterateZoom:{icon:'<svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"iterateZoom"},rotateCCW:{icon:'<svg><path d="M15 4.55a8 8 0 0 0-6 14.9M9 15v5H4M18.37 7.16v.01M13 19.94v.01M16.84 18.37v.01M19.37 15.1v.01M19.94 11v.01"/></svg>',action:"rotateCCW"},rotateCW:{icon:'<svg><path d="M9 4.55a8 8 0 0 1 6 14.9M15 15v5h5M5.63 7.16v.01M4.06 11v.01M4.63 15.1v.01M7.16 18.37v.01M11 19.94v.01"/></svg>',action:"rotateCW"},flipX:{icon:'<svg style="stroke-width: 1.3"><path d="M12 3v18M16 7v10h5L16 7M8 7v10H3L8 7"/></svg>',action:"flipX"},flipY:{icon:'<svg style="stroke-width: 1.3"><path d="M3 12h18M7 16h10L7 21v-5M7 8h10L7 3v5"/></svg>',action:"flipY"},fitX:{icon:'<svg><path d="M4 12V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v6M10 18H3M21 18h-7M6 15l-3 3 3 3M18 15l3 3-3 3"/></svg>',action:"fitX"},fitY:{icon:'<svg><path d="M12 20H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h6M18 14v7M18 3v7M15 18l3 3 3-3M15 6l3-3 3 3"/></svg>',action:"fitY"},reset:{icon:'<svg><path d="M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/></svg>',action:"reset"},toggleFS:{icon:'<svg><g><path d="M14.5 9.5 21 3m0 0h-6m6 0v6M3 21l6.5-6.5M3 21v-6m0 6h6"/></g><g><path d="m14 10 7-7m-7 7h6m-6 0V4M3 21l7-7m0 0v6m0-6H4"/></g></svg>',action:"toggleFS"}};var Li;(function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Disabled=2]="Disabled"})(Li||(Li={}));const NI={absolute:"auto",display:{left:["infobar"],middle:[],right:["iterateZoom","slideshow","fullscreen","thumbs","close"]},enabled:"auto",items:{infobar:{tpl:'<div class="fancybox__infobar" tabindex="-1"><span data-fancybox-current-index></span>/<span data-fancybox-count></span></div>'},download:{tpl:'<a class="f-button" title="{{DOWNLOAD}}" data-fancybox-download href="javasript:;"><svg><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5 5-5M12 4v12"/></svg></a>'},prev:{tpl:'<button class="f-button" title="{{PREV}}" data-fancybox-prev><svg><path d="m15 6-6 6 6 6"/></svg></button>'},next:{tpl:'<button class="f-button" title="{{NEXT}}" data-fancybox-next><svg><path d="m9 6 6 6-6 6"/></svg></button>'},slideshow:{tpl:'<button class="f-button" title="{{TOGGLE_SLIDESHOW}}" data-fancybox-toggle-slideshow><svg><g><path d="M8 4v16l13 -8z"></path></g><g><path d="M8 4v15M17 4v15"/></g></svg></button>'},fullscreen:{tpl:'<button class="f-button" title="{{TOGGLE_FULLSCREEN}}" data-fancybox-toggle-fullscreen><svg><g><path d="M4 8V6a2 2 0 0 1 2-2h2M4 16v2a2 2 0 0 0 2 2h2M16 4h2a2 2 0 0 1 2 2v2M16 20h2a2 2 0 0 0 2-2v-2"/></g><g><path d="M15 19v-2a2 2 0 0 1 2-2h2M15 5v2a2 2 0 0 0 2 2h2M5 15h2a2 2 0 0 1 2 2v2M5 9h2a2 2 0 0 0 2-2V5"/></g></svg></button>'},thumbs:{tpl:'<button class="f-button" title="{{TOGGLE_THUMBS}}" data-fancybox-toggle-thumbs><svg><circle cx="5.5" cy="5.5" r="1"/><circle cx="12" cy="5.5" r="1"/><circle cx="18.5" cy="5.5" r="1"/><circle cx="5.5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="18.5" cy="12" r="1"/><circle cx="5.5" cy="18.5" r="1"/><circle cx="12" cy="18.5" r="1"/><circle cx="18.5" cy="18.5" r="1"/></svg></button>'},close:{tpl:'<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg><path d="m19.5 4.5-15 15M4.5 4.5l15 15"/></svg></button>'}},parentEl:null},LI={tabindex:"-1",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ky="has-toolbar",dh="fancybox__toolbar";class FA extends jn{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Li.Init}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null})}onReady(e){var n;if(!e.carousel)return;let r=this.option("display"),i=this.option("absolute"),o=this.option("enabled");if(o==="auto"){const c=this.instance.carousel;let u=0;if(c)for(const f of c.slides)(f.panzoom||f.type==="image")&&u++;u||(o=!1)}o||(r=void 0);let s=0;const a={left:[],middle:[],right:[]};if(r)for(const c of["left","middle","right"])for(const u of r[c]){const f=this.createEl(u);f&&((n=a[c])===null||n===void 0||n.push(f),s++)}let l=null;if(s&&(l=this.createContainer()),l){for(const[c,u]of Object.entries(a)){const f=document.createElement("div");pe(f,dh+"__column is-"+c);for(const h of u)f.appendChild(h);i!=="auto"||c!=="middle"||u.length||(i=!0),l.appendChild(f)}i===!0&&pe(l,"is-absolute"),this.state=Li.Ready,this.onRefresh()}else this.state=Li.Disabled}onClick(e){var n,r;const i=this.instance,o=i.getSlide(),s=o==null?void 0:o.panzoom,a=e.target,l=a&&Lt(a)?a.dataset:null;if(!l)return;if(l.fancyboxToggleThumbs!==void 0)return e.preventDefault(),e.stopPropagation(),void((n=i.plugins.Thumbs)===null||n===void 0||n.toggle());if(l.fancyboxToggleFullscreen!==void 0)return e.preventDefault(),e.stopPropagation(),void this.instance.toggleFullscreen();if(l.fancyboxToggleSlideshow!==void 0){e.preventDefault(),e.stopPropagation();const f=(r=i.carousel)===null||r===void 0?void 0:r.plugins.Autoplay;let h=f.isActive;return s&&s.panMode==="mousemove"&&!h&&s.reset(),void(h?f.stop():f.start())}const c=l.panzoomAction,u=l.panzoomChange;if((u||c)&&(e.preventDefault(),e.stopPropagation()),u){let f={};try{f=JSON.parse(u)}catch{}s&&s.applyChange(f)}else c&&s&&s[c]&&s[c]()}onChange(){this.onRefresh()}onRefresh(){if(this.instance.isClosing())return;const e=this.container;if(!e)return;const n=this.instance.getSlide();if(!n||n.state!==Ot.Ready)return;const r=n&&!n.error&&n.panzoom;for(const s of e.querySelectorAll("[data-panzoom-action]"))r?(s.removeAttribute("disabled"),s.removeAttribute("tabindex")):(s.setAttribute("disabled",""),s.setAttribute("tabindex","-1"));let i=r&&r.canZoomIn(),o=r&&r.canZoomOut();for(const s of e.querySelectorAll('[data-panzoom-action="zoomIn"]'))i?(s.removeAttribute("disabled"),s.removeAttribute("tabindex")):(s.setAttribute("disabled",""),s.setAttribute("tabindex","-1"));for(const s of e.querySelectorAll('[data-panzoom-action="zoomOut"]'))o?(s.removeAttribute("disabled"),s.removeAttribute("tabindex")):(s.setAttribute("disabled",""),s.setAttribute("tabindex","-1"));for(const s of e.querySelectorAll('[data-panzoom-action="toggleZoom"],[data-panzoom-action="iterateZoom"]')){o||i?(s.removeAttribute("disabled"),s.removeAttribute("tabindex")):(s.setAttribute("disabled",""),s.setAttribute("tabindex","-1"));const a=s.querySelector("g");a&&(a.style.display=i?"":"none")}}onDone(e,n){var r;(r=n.panzoom)===null||r===void 0||r.on("afterTransform",()=>{this.instance.isCurrentSlide(n)&&this.onRefresh()}),this.instance.isCurrentSlide(n)&&this.onRefresh()}createContainer(){const e=this.instance.container;if(!e)return null;const n=this.option("parentEl")||e;let r=n.querySelector("."+dh);return r||(r=document.createElement("div"),pe(r,dh),n.prepend(r)),r.addEventListener("click",this.onClick,{passive:!1,capture:!0}),e&&pe(e,Ky),this.container=r,r}createEl(e){const n=this.instance,r=n.carousel;if(!r||e==="toggleFS"||e==="fullscreen"&&!EA())return null;let i=null;const o=r.slides.length||0;let s=0,a=0;for(const c of r.slides)(c.panzoom||c.type==="image")&&s++,(c.type==="image"||c.downloadSrc)&&a++;if(o<2&&["infobar","prev","next"].includes(e))return i;if(fh[e]!==void 0&&!s||e==="download"&&!a)return null;if(e==="thumbs"){const c=n.plugins.Thumbs;if(!c||!c.isEnabled)return null}if(e==="slideshow"&&(!r.plugins.Autoplay||o<2))return null;if(fh[e]!==void 0){const c=fh[e];i=document.createElement("button"),i.setAttribute("title",this.instance.localize(`{{${e.toUpperCase()}}}`)),pe(i,"f-button"),c.action&&(i.dataset.panzoomAction=c.action),c.change&&(i.dataset.panzoomChange=JSON.stringify(c.change)),i.appendChild(zn(this.instance.localize(c.icon)))}else{const c=(this.option("items")||[])[e];c&&(i=zn(this.instance.localize(c.tpl)),typeof c.click=="function"&&i.addEventListener("click",u=>{u.preventDefault(),u.stopPropagation(),typeof c.click=="function"&&c.click.call(this,this,u)}))}const l=i==null?void 0:i.querySelector("svg");if(l)for(const[c,u]of Object.entries(LI))l.getAttribute(c)||l.setAttribute(c,String(u));return i}removeContainer(){const e=this.container;e&&e.remove(),this.container=null,this.state=Li.Disabled;const n=this.instance.container;n&&Re(n,Ky)}attach(){const e=this,n=e.instance;n.on("Carousel.initSlides",e.onReady),n.on("done",e.onDone),n.on(["reveal","Carousel.change"],e.onChange),e.onReady(e.instance)}detach(){const e=this,n=e.instance;n.off("Carousel.initSlides",e.onReady),n.off("done",e.onDone),n.off(["reveal","Carousel.change"],e.onChange),e.removeContainer()}}Object.defineProperty(FA,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:NI});const FI={Hash:class extends jn{onReady(){ra=!1}onChange(t){Ri&&clearTimeout(Ri);const{hash:e}=PA(),{hash:n}=ff(),r=t.isOpeningSlide(t.getSlide());r&&(By=n===e?"":n),e&&e!==n&&(Ri=setTimeout(()=>{try{if(t.state===ft.Ready){let i="replaceState";r&&!iu&&(i="pushState",iu=!0),window.history[i]({},document.title,window.location.pathname+window.location.search+e)}}catch{}},300))}onClose(t){if(Ri&&clearTimeout(Ri),!ra&&iu)return iu=!1,ra=!1,void window.history.back();if(!ra)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+(By||""))}catch{}}attach(){const t=this.instance;t.on("ready",this.onReady),t.on(["Carousel.ready","Carousel.change"],this.onChange),t.on("close",this.onClose)}detach(){const t=this.instance;t.off("ready",this.onReady),t.off(["Carousel.ready","Carousel.change"],this.onChange),t.off("close",this.onClose)}static parseURL(){return ff()}static startFromUrl(){xA()}static destroy(){window.removeEventListener("hashchange",TA,!1)}},Html:RA,Images:IA,Slideshow:VA,Thumbs:LA,Toolbar:FA},Gy="with-fancybox",hh="hide-scrollbar",Yy="--fancybox-scrollbar-compensate",Jy="--fancybox-body-margin",ph="aria-hidden",mh="is-using-tab",gh="is-animated",Zy="is-compact",Xy="is-loading",vh="is-opening",cu="has-caption",Eo="disabled",vi="tabindex",eb="download",yh="href",Po="src",Cr=t=>typeof t=="string",tb=function(){var t=window.getSelection();return!!t&&t.type==="Range"};let on,sn=null,yi=null,nb=0,rb=0;const qs=new Map;let DI=0;class Te extends Eg{get isIdle(){return this.idle}get isCompact(){return this.option("compact")}constructor(e=[],n={},r={}){super(n),Object.defineProperty(this,"userSlides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"idle",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"idleTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"ignoreFocusChange",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"startedFs",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:ft.Init}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"footer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"lastFocus",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prevMouseMoveEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),on||(on=EA()),this.id=n.id||++DI,qs.set(this.id,this),this.userSlides=e,this.userPlugins=r,queueMicrotask(()=>{this.init()})}init(){if(this.state===ft.Destroy)return;this.state=ft.Init,this.attachPlugins(Object.assign(Object.assign({},Te.Plugins),this.userPlugins)),this.emit("init"),this.emit("attachPlugins"),this.option("hideScrollbar")===!0&&(()=>{if(!fa)return;const n=document,r=n.body,i=n.documentElement;if(r.classList.contains(hh))return;let o=window.innerWidth-i.getBoundingClientRect().width;const s=parseFloat(window.getComputedStyle(r).marginRight);o<0&&(o=0),i.style.setProperty(Yy,`${o}px`),s&&r.style.setProperty(Jy,`${s}px`),r.classList.add(hh)})(),this.initLayout(),this.scale();const e=()=>{this.initCarousel(this.userSlides),this.state=ft.Ready,this.attachEvents(),this.emit("ready"),setTimeout(()=>{this.container&&this.container.setAttribute(ph,"false")},16)};this.option("Fullscreen.autoStart")&&on&&!on.isFullscreen()?on.request().then(()=>{this.startedFs=!0,e()}).catch(()=>e()):e()}initLayout(){var e,n;const r=this.option("parentEl")||document.body,i=zn(this.localize(this.option("tpl.main")||""));i&&(i.setAttribute("id",`fancybox-${this.id}`),i.setAttribute("aria-label",this.localize("{{MODAL}}")),i.classList.toggle(Zy,this.isCompact),pe(i,this.option("mainClass")||""),pe(i,vh),this.container=i,this.footer=i.querySelector(".fancybox__footer"),r.appendChild(i),pe(document.documentElement,Gy),sn&&yi||(sn=document.createElement("span"),pe(sn,"fancybox-focus-guard"),sn.setAttribute(vi,"0"),sn.setAttribute(ph,"true"),sn.setAttribute("aria-label","Focus guard"),yi=sn.cloneNode(),(e=i.parentElement)===null||e===void 0||e.insertBefore(sn,i),(n=i.parentElement)===null||n===void 0||n.append(yi)),i.addEventListener("mousedown",o=>{nb=o.pageX,rb=o.pageY,Re(i,mh)}),this.option("animated")&&(pe(i,gh),setTimeout(()=>{this.isClosing()||Re(i,gh)},350)),this.emit("initLayout"))}initCarousel(e){const n=this.container;if(!n)return;const r=n.querySelector(".fancybox__carousel");if(!r)return;const i=this.carousel=new Ui(r,Ft({},{slides:e,transition:"fade",Panzoom:{lockAxis:this.option("dragToClose")?"xy":"x",infinite:!!this.option("dragToClose")&&"y"},Dots:!1,Navigation:{classes:{container:"fancybox__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"}},initialPage:this.option("startIndex"),l10n:this.option("l10n")},this.option("Carousel")||{}));i.on("*",(o,s,...a)=>{this.emit(`Carousel.${s}`,o,...a)}),i.on(["ready","change"],()=>{this.manageCaption()}),this.on("Carousel.removeSlide",(o,s,a)=>{this.clearContent(a),a.state=void 0}),i.on("Panzoom.touchStart",()=>{var o,s;this.isCompact||this.endIdle(),!((o=document.activeElement)===null||o===void 0)&&o.closest(".f-thumbs")&&((s=this.container)===null||s===void 0||s.focus())}),i.on("settle",()=>{this.idleTimer||this.isCompact||!this.option("idle")||this.setIdle(),this.option("autoFocus")&&!this.isClosing&&this.checkFocus()}),this.option("dragToClose")&&(i.on("Panzoom.afterTransform",(o,s)=>{const a=this.getSlide();if(a&&Op(a.el))return;const l=this.container;if(l){const c=Math.abs(s.current.f),u=c<1?"":Math.max(.5,Math.min(1,1-c/s.contentRect.fitHeight*1.5));l.style.setProperty("--fancybox-ts",u?"0s":""),l.style.setProperty("--fancybox-opacity",u+"")}}),i.on("Panzoom.touchEnd",(o,s,a)=>{var l;const c=this.getSlide();if(c&&Op(c.el)||s.isMobile&&document.activeElement&&["TEXTAREA","INPUT"].indexOf((l=document.activeElement)===null||l===void 0?void 0:l.nodeName)!==-1)return;const u=Math.abs(s.dragOffset.y);s.lockedAxis==="y"&&(u>=200||u>=50&&s.dragOffset.time<300)&&(a&&a.cancelable&&a.preventDefault(),this.close(a,"f-throwOut"+(s.current.f<0?"Up":"Down")))})),i.on("change",o=>{var s;let a=(s=this.getSlide())===null||s===void 0?void 0:s.triggerEl;if(a){const l=new CustomEvent("slideTo",{bubbles:!0,cancelable:!0,detail:o.page});a.dispatchEvent(l)}}),i.on(["refresh","change"],o=>{const s=this.container;if(!s)return;for(const c of s.querySelectorAll("[data-fancybox-current-index]"))c.innerHTML=o.page+1;for(const c of s.querySelectorAll("[data-fancybox-count]"))c.innerHTML=o.pages.length;if(!o.isInfinite){for(const c of s.querySelectorAll("[data-fancybox-next]"))o.page<o.pages.length-1?(c.removeAttribute(Eo),c.removeAttribute(vi)):(c.setAttribute(Eo,""),c.setAttribute(vi,"-1"));for(const c of s.querySelectorAll("[data-fancybox-prev]"))o.page>0?(c.removeAttribute(Eo),c.removeAttribute(vi)):(c.setAttribute(Eo,""),c.setAttribute(vi,"-1"))}const a=this.getSlide();if(!a)return;let l=a.downloadSrc||"";l||a.type!=="image"||a.error||!Cr(a[Po])||(l=a[Po]);for(const c of s.querySelectorAll("[data-fancybox-download]")){const u=a.downloadFilename;l?(c.removeAttribute(Eo),c.removeAttribute(vi),c.setAttribute(yh,l),c.setAttribute(eb,u||l),c.setAttribute("target","_blank")):(c.setAttribute(Eo,""),c.setAttribute(vi,"-1"),c.removeAttribute(yh),c.removeAttribute(eb))}}),this.emit("initCarousel")}attachEvents(){const e=this,n=e.container;if(!n)return;n.addEventListener("click",e.onClick,{passive:!1,capture:!1}),n.addEventListener("wheel",e.onWheel,{passive:!1,capture:!1}),document.addEventListener("keydown",e.onKeydown,{passive:!1,capture:!0}),document.addEventListener("visibilitychange",e.onVisibilityChange,!1),document.addEventListener("mousemove",e.onMousemove),e.option("trapFocus")&&document.addEventListener("focus",e.onFocus,!0),window.addEventListener("resize",e.onResize);const r=window.visualViewport;r&&(r.addEventListener("scroll",e.onResize),r.addEventListener("resize",e.onResize))}detachEvents(){const e=this,n=e.container;if(!n)return;document.removeEventListener("keydown",e.onKeydown,{passive:!1,capture:!0}),n.removeEventListener("wheel",e.onWheel,{passive:!1,capture:!1}),n.removeEventListener("click",e.onClick,{passive:!1,capture:!1}),document.removeEventListener("mousemove",e.onMousemove),window.removeEventListener("resize",e.onResize);const r=window.visualViewport;r&&(r.removeEventListener("resize",e.onResize),r.removeEventListener("scroll",e.onResize)),document.removeEventListener("visibilitychange",e.onVisibilityChange,!1),document.removeEventListener("focus",e.onFocus,!0)}scale(){const e=this.container;if(!e)return;const n=window.visualViewport,r=Math.max(1,(n==null?void 0:n.scale)||1);let i="",o="",s="";if(n&&r>1){let a=`${n.offsetLeft}px`,l=`${n.offsetTop}px`;i=n.width*r+"px",o=n.height*r+"px",s=`translate3d(${a}, ${l}, 0) scale(${1/r})`}e.style.transform=s,e.style.width=i,e.style.height=o}onClick(e){var n;const{container:r,isCompact:i}=this;if(!r||this.isClosing())return;!i&&this.option("idle")&&this.resetIdle();const o=e.composedPath()[0];if(o.closest(".fancybox-spinner")||o.closest("[data-fancybox-close]"))return e.preventDefault(),void this.close(e);if(o.closest("[data-fancybox-prev]"))return e.preventDefault(),void this.prev();if(o.closest("[data-fancybox-next]"))return e.preventDefault(),void this.next();if(e.type==="click"&&e.detail===0||Math.abs(e.pageX-nb)>30||Math.abs(e.pageY-rb)>30)return;const s=document.activeElement;if(tb()&&s&&r.contains(s))return;if(i&&((n=this.getSlide())===null||n===void 0?void 0:n.type)==="image")return void(this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null):this.clickTimer=setTimeout(()=>{this.toggleIdle(),this.clickTimer=null},350));if(this.emit("click",e),e.defaultPrevented)return;let a=!1;if(o.closest(".fancybox__content")){if(s){if(s.closest("[contenteditable]"))return;o.matches(lh)||s.blur()}if(tb())return;a=this.option("contentClick")}else o.closest(".fancybox__carousel")&&!o.matches(lh)&&(a=this.option("backdropClick"));a==="close"?(e.preventDefault(),this.close(e)):a==="next"?(e.preventDefault(),this.next()):a==="prev"&&(e.preventDefault(),this.prev())}onWheel(e){const n=e.target;let r=this.option("wheel",e);n.closest(".fancybox__thumbs")&&(r="slide");const i=r==="slide",o=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce(function(l,c){return Math.abs(c)>Math.abs(l)?c:l}),s=Math.max(-1,Math.min(1,o)),a=Date.now();this.pwt&&a-this.pwt<300?i&&e.preventDefault():(this.pwt=a,this.emit("wheel",e,s),e.defaultPrevented||(r==="close"?(e.preventDefault(),this.close(e)):r==="slide"&&(cf(n)||(e.preventDefault(),this[s>0?"prev":"next"]()))))}onKeydown(e){if(!this.isTopmost())return;this.isCompact||!this.option("idle")||this.isClosing()||this.resetIdle();const n=e.key,r=this.option("keyboard");if(!r)return;const i=e.composedPath()[0],o=document.activeElement&&document.activeElement.classList,s=o&&o.contains("f-button")||i.dataset.carouselPage||i.dataset.carouselIndex;if(n!=="Escape"&&!s&&Lt(i)&&(i.isContentEditable||["TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(i.nodeName)!==-1)||(e.key==="Tab"?pe(this.container,mh):Re(this.container,mh),e.ctrlKey||e.altKey||e.shiftKey))return;this.emit("keydown",n,e);const a=r[n];a&&typeof this[a]=="function"&&(e.preventDefault(),this[a]())}onResize(){const e=this.container;if(!e)return;const n=this.isCompact;e.classList.toggle(Zy,n),this.manageCaption(this.getSlide()),this.isCompact?this.clearIdle():this.endIdle(),this.scale(),this.emit("resize")}onFocus(e){this.isTopmost()&&this.checkFocus(e)}onMousemove(e){this.prevMouseMoveEvent=e,!this.isCompact&&this.option("idle")&&this.resetIdle()}onVisibilityChange(){document.visibilityState==="visible"?this.checkFocus():this.endIdle()}manageCloseBtn(e){const n=this.optionFor(e,"closeButton")||!1;if(n==="auto"){const i=this.plugins.Toolbar;if(i&&i.state===Li.Ready)return}if(!n||!e.contentEl||e.closeBtnEl)return;const r=this.option("tpl.closeButton");if(r){const i=zn(this.localize(r));e.closeBtnEl=e.contentEl.appendChild(i),e.el&&pe(e.el,"has-close-btn")}}manageCaption(e=void 0){var n,r;const i="fancybox__caption",o=this.container;if(!o)return;Re(o,cu);const s=this.isCompact||this.option("commonCaption"),a=!s;if(this.caption&&this.stop(this.caption),a&&this.caption&&(this.caption.remove(),this.caption=null),s&&!this.caption)for(const f of((n=this.carousel)===null||n===void 0?void 0:n.slides)||[])f.captionEl&&(f.captionEl.remove(),f.captionEl=void 0,Re(f.el,cu),(r=f.el)===null||r===void 0||r.removeAttribute("aria-labelledby"));if(e||(e=this.getSlide()),!e||s&&!this.isCurrentSlide(e))return;const l=e.el;let c=this.optionFor(e,"caption","");if(!c)return void(s&&this.caption&&this.animate(this.caption,"f-fadeOut",()=>{this.caption&&(this.caption.innerHTML="")}));let u=null;if(a){if(u=e.captionEl||null,l&&!u){const f=i+`_${this.id}_${e.index}`;u=document.createElement("div"),pe(u,i),u.setAttribute("id",f),e.captionEl=l.appendChild(u),pe(l,cu),l.setAttribute("aria-labelledby",f)}}else u=this.caption,u||(u=o.querySelector("."+i)),!u&&(u=document.createElement("div"),u.dataset.fancyboxCaption="",pe(u,i),(this.footer||o).prepend(u)),pe(o,cu),this.caption=u;u&&(u.innerHTML="",Cr(c)||typeof c=="number"?u.innerHTML=c+"":c instanceof HTMLElement&&u.appendChild(c))}checkFocus(e){this.focus(e)}focus(e){var n;if(this.ignoreFocusChange)return;const r=document.activeElement||null,i=(e==null?void 0:e.target)||null,o=this.container,s=(n=this.carousel)===null||n===void 0?void 0:n.viewport;if(!o||!s||!e&&r&&o.contains(r))return;const a=this.getSlide(),l=a&&a.state===Ot.Ready?a.el:null;if(!l||l.contains(r)||o===r)return;e&&e.cancelable&&e.preventDefault(),this.ignoreFocusChange=!0;const c=Array.from(o.querySelectorAll(lh));let u=[],f=null;for(let d of c){const p=!d.offsetParent||!!d.closest('[aria-hidden="true"]'),m=l&&l.contains(d),g=!s.contains(d);if(d===o||(m||g)&&!p){u.push(d);const v=d.dataset.origTabindex;v!==void 0&&v&&(d.tabIndex=parseFloat(v)),d.removeAttribute("data-orig-tabindex"),!d.hasAttribute("autoFocus")&&f||(f=d)}else{const v=d.dataset.origTabindex===void 0?d.getAttribute("tabindex")||"":d.dataset.origTabindex;v&&(d.dataset.origTabindex=v),d.tabIndex=-1}}let h=null;e?(!i||u.indexOf(i)<0)&&(h=f||o,u.length&&(r===yi?h=u[0]:this.lastFocus!==o&&r!==sn||(h=u[u.length-1]))):h=a&&a.type==="image"?o:f||o,h&&ky(h),this.lastFocus=document.activeElement,this.ignoreFocusChange=!1}next(){const e=this.carousel;e&&e.pages.length>1&&e.slideNext()}prev(){const e=this.carousel;e&&e.pages.length>1&&e.slidePrev()}jumpTo(...e){this.carousel&&this.carousel.slideTo(...e)}isTopmost(){var e;return((e=Te.getInstance())===null||e===void 0?void 0:e.id)==this.id}animate(e=null,n="",r){if(!e||!n)return void(r&&r());this.stop(e);const i=o=>{o.target===e&&e.dataset.animationName&&(e.removeEventListener("animationend",i),delete e.dataset.animationName,r&&r(),Re(e,n))};e.dataset.animationName=n,e.addEventListener("animationend",i),pe(e,n)}stop(e){e&&e.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:e}))}setContent(e,n="",r=!0){if(this.isClosing())return;const i=e.el;if(!i)return;let o=null;if(Lt(n)?o=n:(o=zn(n+""),Lt(o)||(o=document.createElement("div"),o.innerHTML=n+"")),["img","picture","iframe","video","audio"].includes(o.nodeName.toLowerCase())){const s=document.createElement("div");s.appendChild(o),o=s}Lt(o)&&e.filter&&!e.error&&(o=o.querySelector(e.filter)),o&&Lt(o)?(pe(o,"fancybox__content"),e.id&&o.setAttribute("id",e.id),o.style.display!=="none"&&getComputedStyle(o).getPropertyValue("display")!=="none"||(o.style.display=e.display||this.option("defaultDisplay")||"flex"),i.classList.add(`has-${e.error?"error":e.type||"unknown"}`),i.prepend(o),e.contentEl=o,r&&this.revealContent(e),this.manageCloseBtn(e),this.manageCaption(e)):this.setError(e,"{{ELEMENT_NOT_FOUND}}")}revealContent(e,n){const r=e.el,i=e.contentEl;r&&i&&(this.emit("reveal",e),this.hideLoading(e),e.state=Ot.Opening,(n=this.isOpeningSlide(e)?n===void 0?this.optionFor(e,"showClass"):n:"f-fadeIn")?this.animate(i,n,()=>{this.done(e)}):this.done(e))}done(e){this.isClosing()||(e.state=Ot.Ready,this.emit("done",e),pe(e.el,"is-done"),this.isCurrentSlide(e)&&this.option("autoFocus")&&queueMicrotask(()=>{var n;(n=e.panzoom)===null||n===void 0||n.updateControls(),this.option("autoFocus")&&this.focus()}),this.isOpeningSlide(e)&&(Re(this.container,vh),!this.isCompact&&this.option("idle")&&this.setIdle()))}isCurrentSlide(e){const n=this.getSlide();return!(!e||!n)&&n.index===e.index}isOpeningSlide(e){var n,r;return((n=this.carousel)===null||n===void 0?void 0:n.prevPage)===null&&e&&e.index===((r=this.getSlide())===null||r===void 0?void 0:r.index)}showLoading(e){e.state=Ot.Loading;const n=e.el;n&&(pe(n,Xy),this.emit("loading",e),e.spinnerEl||setTimeout(()=>{if(!this.isClosing()&&!e.spinnerEl&&e.state===Ot.Loading){let r=zn(Pg);pe(r,"fancybox-spinner"),e.spinnerEl=r,n.prepend(r),this.animate(r,"f-fadeIn")}},250))}hideLoading(e){const n=e.el;if(!n)return;const r=e.spinnerEl;this.isClosing()?r==null||r.remove():(Re(n,Xy),r&&this.animate(r,"f-fadeOut",()=>{r.remove()}),e.state===Ot.Loading&&(this.emit("loaded",e),e.state=Ot.Ready))}setError(e,n){if(this.isClosing())return;const r=new Event("error",{bubbles:!0,cancelable:!0});if(this.emit("error",r,e),r.defaultPrevented)return;e.error=n,this.hideLoading(e),this.clearContent(e);const i=document.createElement("div");i.classList.add("fancybox-error"),i.innerHTML=this.localize(n||"<p>{{ERROR}}</p>"),this.setContent(e,i)}clearContent(e){if(e.state===void 0)return;this.emit("clearContent",e),e.contentEl&&(e.contentEl.remove(),e.contentEl=void 0);const n=e.el;n&&(Re(n,"has-error"),Re(n,"has-unknown"),Re(n,`has-${e.type||"unknown"}`)),e.closeBtnEl&&e.closeBtnEl.remove(),e.closeBtnEl=void 0,e.captionEl&&e.captionEl.remove(),e.captionEl=void 0,e.spinnerEl&&e.spinnerEl.remove(),e.spinnerEl=void 0}getSlide(){var e;const n=this.carousel;return((e=n==null?void 0:n.pages[n==null?void 0:n.page])===null||e===void 0?void 0:e.slides[0])||void 0}close(e,n){if(this.isClosing())return;const r=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(this.emit("shouldClose",r,e),r.defaultPrevented)return;e&&e.cancelable&&(e.preventDefault(),e.stopPropagation());const i=()=>{this.proceedClose(e,n)};this.startedFs&&on&&on.isFullscreen()?Promise.resolve(on.exit()).then(()=>i()):i()}clearIdle(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=null}setIdle(e=!1){const n=()=>{this.clearIdle(),this.idle=!0,pe(this.container,"is-idle"),this.emit("setIdle")};if(this.clearIdle(),!this.isClosing())if(e)n();else{const r=this.option("idle");r&&(this.idleTimer=setTimeout(n,r))}}endIdle(){this.clearIdle(),this.idle&&!this.isClosing()&&(this.idle=!1,Re(this.container,"is-idle"),this.emit("endIdle"))}resetIdle(){this.endIdle(),this.setIdle()}toggleIdle(){this.idle?this.endIdle():this.setIdle(!0)}toggleFullscreen(){on&&(on.isFullscreen()?on.exit():on.request().then(()=>{this.startedFs=!0}))}isClosing(){return[ft.Closing,ft.CustomClosing,ft.Destroy].includes(this.state)}proceedClose(e,n){var r,i;this.state=ft.Closing,this.clearIdle(),this.detachEvents();const o=this.container,s=this.carousel,a=this.getSlide(),l=a&&this.option("placeFocusBack")?a.triggerEl||this.option("triggerEl"):null;if(l&&(OA(l)?ky(l):l.focus()),o&&(Re(o,vh),pe(o,"is-closing"),o.setAttribute(ph,"true"),this.option("animated")&&pe(o,gh),o.style.pointerEvents="none"),s){s.clearTransitions(),(r=s.panzoom)===null||r===void 0||r.destroy(),(i=s.plugins.Navigation)===null||i===void 0||i.detach();for(const c of s.slides){c.state=Ot.Closing,this.hideLoading(c);const u=c.contentEl;u&&this.stop(u);const f=c==null?void 0:c.panzoom;f&&(f.stop(),f.detachEvents(),f.detachObserver()),this.isCurrentSlide(c)||s.emit("removeSlide",c)}}this.emit("close",e),this.state!==ft.CustomClosing?(n===void 0&&a&&(n=this.optionFor(a,"hideClass")),n&&a?(this.animate(a.contentEl,n,()=>{s&&s.emit("removeSlide",a)}),setTimeout(()=>{this.destroy()},500)):this.destroy()):setTimeout(()=>{this.destroy()},500)}destroy(){var e;if(this.state===ft.Destroy)return;this.state=ft.Destroy,(e=this.carousel)===null||e===void 0||e.destroy();const n=this.container;n&&n.remove(),qs.delete(this.id);const r=Te.getInstance();r?r.focus():(sn&&(sn.remove(),sn=null),yi&&(yi.remove(),yi=null),Re(document.documentElement,Gy),(()=>{if(!fa)return;const i=document,o=i.body;o.classList.remove(hh),o.style.setProperty(Jy,""),i.documentElement.style.setProperty(Yy,"")})(),this.emit("destroy"))}static bind(e,n,r){if(!fa)return;let i,o="",s={};if(e===void 0?i=document.body:Cr(e)?(i=document.body,o=e,typeof n=="object"&&(s=n||{})):(i=e,Cr(n)&&(o=n),typeof r=="object"&&(s=r||{})),!i||!Lt(i))return;o=o||"[data-fancybox]";const a=Te.openers.get(i)||new Map;a.set(o,s),Te.openers.set(i,a),a.size===1&&i.addEventListener("click",Te.fromEvent)}static unbind(e,n){let r,i="";if(Cr(e)?(r=document.body,i=e):(r=e,Cr(n)&&(i=n)),!r)return;const o=Te.openers.get(r);o&&i&&o.delete(i),i&&o||(Te.openers.delete(r),r.removeEventListener("click",Te.fromEvent))}static destroy(){let e;for(;e=Te.getInstance();)e.destroy();for(const n of Te.openers.keys())n.removeEventListener("click",Te.fromEvent);Te.openers=new Map}static fromEvent(e){if(e.defaultPrevented||e.button&&e.button!==0||e.ctrlKey||e.metaKey||e.shiftKey)return;let n=e.composedPath()[0];const r=n.closest("[data-fancybox-trigger]");if(r){const p=r.dataset.fancyboxTrigger||"",m=document.querySelectorAll(`[data-fancybox="${p}"]`),g=parseInt(r.dataset.fancyboxIndex||"",10)||0;n=m[g]||n}if(!(n&&n instanceof Element))return;let i,o,s,a;if([...Te.openers].reverse().find(([p,m])=>!(!p.contains(n)||![...m].reverse().find(([g,v])=>{let b=n.closest(g);return!!b&&(i=p,o=g,s=b,a=v,!0)}))),!i||!o||!s)return;a=a||{},e.preventDefault(),n=s;let l=[],c=Ft({},Pp,a);c.event=e,c.triggerEl=n,c.delegate=r;const u=c.groupAll,f=c.groupAttr,h=f&&n?n.getAttribute(`${f}`):"";if((!n||h||u)&&(l=[].slice.call(i.querySelectorAll(o))),n&&!u&&(l=h?l.filter(p=>p.getAttribute(`${f}`)===h):[n]),!l.length)return;const d=Te.getInstance();return d&&d.options.triggerEl&&l.indexOf(d.options.triggerEl)>-1?void 0:(n&&(c.startIndex=l.indexOf(n)),Te.fromNodes(l,c))}static fromSelector(e,n,r){let i=null,o="",s={};if(Cr(e)?(i=document.body,o=e,typeof n=="object"&&(s=n||{})):e instanceof HTMLElement&&Cr(n)&&(i=e,o=n,typeof r=="object"&&(s=r||{})),!i||!o)return!1;const a=Te.openers.get(i);return!!a&&(s=Ft({},a.get(o)||{},s),!!s&&Te.fromNodes(Array.from(i.querySelectorAll(o)),s))}static fromNodes(e,n){n=Ft({},Pp,n||{});const r=[];for(const i of e){const o=i.dataset||{},s=o[Po]||i.getAttribute(yh)||i.getAttribute("currentSrc")||i.getAttribute(Po)||void 0;let a;const l=n.delegate;let c;l&&r.length===n.startIndex&&(a=l instanceof HTMLImageElement?l:l.querySelector("img:not([aria-hidden])")),a||(a=i instanceof HTMLImageElement?i:i.querySelector("img:not([aria-hidden])")),a&&(c=a.currentSrc||a[Po]||void 0,!c&&a.dataset&&(c=a.dataset.lazySrc||a.dataset[Po]||void 0));const u={src:s,triggerEl:i,thumbEl:a,thumbElSrc:c,thumbSrc:c};for(const f in o){let h=o[f]+"";h=h!=="false"&&(h==="true"||h),u[f]=h}r.push(u)}return new Te(r,n)}static getInstance(e){return e?qs.get(e):Array.from(qs.values()).reverse().find(n=>!n.isClosing()&&n)||null}static getSlide(){var e;return((e=Te.getInstance())===null||e===void 0?void 0:e.getSlide())||null}static show(e=[],n={}){return new Te(e,n)}static next(){const e=Te.getInstance();e&&e.next()}static prev(){const e=Te.getInstance();e&&e.prev()}static close(e=!0,...n){if(e)for(const r of qs.values())r.close(...n);else{const r=Te.getInstance();r&&r.close(...n)}}}Object.defineProperty(Te,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.33"}),Object.defineProperty(Te,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Pp}),Object.defineProperty(Te,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:FI}),Object.defineProperty(Te,"openers",{enumerable:!0,configurable:!0,writable:!0,value:new Map});Te.bind("[data-fancybox]",{});window.setUrlParamType=(t,e)=>{let n=new URLSearchParams(window.location.search);e?n.set(t,e):n.delete(t),window.location.search=n.toString()};const ib=document.querySelectorAll(".file-upload");ib&&ib.forEach(t=>{const e=t.getAttribute("name"),n=document.querySelector(`div[name="${e}"].file-names`);t.addEventListener("change",()=>{n.innerHTML="";const r=t.files;for(let i=0;i<r.length;i++){const o=document.querySelector(`p[name="${e}"].instructions`),s=document.querySelector(`label[name="${e}"]`);if(r[i].size>20971521){o&&(o.style.color="#ED1C24"),s&&(s.style.borderColor="#ED1C24"),t.value="";continue}else o&&(o.style.color="#AAAAAA"),s&&(s.style.borderColor="#d7d7d7");const a=r[i].name,l=document.createElement("span");l.textContent=a,n.appendChild(l)}})});const ob=document.querySelectorAll("select.adjust_width");ob&&ob.forEach(t=>{const e=document.createElement("div");e.classList.add("select_width"),e.textContent=t.options[t.selectedIndex].textContent,t.after(e),t.style.width=`${e.offsetWidth+2*16}px`;const n=()=>{e.textContent=t.options[t.selectedIndex].textContent,t.style.width=`${e.offsetWidth+2*16}px`;const r=t.closest(".input_group").querySelector("input");r&&(r.style.paddingRight=`${e.offsetWidth+2.35*16}px`)};t.addEventListener("change",n),n()});const MI=()=>{const t=document.querySelectorAll(".insight");function e(r){r.forEach(i=>{i.isIntersecting||i.boundingClientRect.y<0?i.target.classList.add("alive"):i.target.classList.remove("alive")})}const n=new IntersectionObserver(e,{root:null,threshold:0});t.forEach(r=>{n.observe(r)})};window.addEventListener("DOMContentLoaded",()=>{MI()});document.addEventListener("DOMContentLoaded",function(){if(document.getElementById("loanForm")){let m=function(_){return _.replace(/,/g,".").replace(/[^0-9.]/g,"")},g=function(){const _=parseFloat(m(i.value))||0,A=parseFloat(m(o.value))/100||0,C=s.value,x=parseInt(m(a.value),10)||0,S=x*12;if(_>0&&A>=0&&x>0){const{periodicPayment:w}=v(A,_,S,C);document.documentElement.lang==="fr"?(l.textContent=w.toLocaleString("fr-FR",{minimumFractionDigits:2,maximumFractionDigits:2}).replace(/\B(?=(\d{3})+(?!\d))/g," "),c.textContent=_.toLocaleString("fr-FR",{minimumFractionDigits:2,maximumFractionDigits:2}).replace(/\B(?=(\d{3})+(?!\d))/g," "),u.textContent=(A*100).toLocaleString("fr-FR",{maximumFractionDigits:2}).replace(/\B(?=(\d{3})+(?!\d))/g," "),f.textContent=x.toLocaleString("fr-FR").replace(/\B(?=(\d{3})+(?!\d))/g," ")):(l.textContent=w.toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g,","),c.textContent=_.toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g,","),u.textContent=(A*100).toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g,","),f.textContent=x.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")),d.style.display="block",h.style.display="none"}else d.style.display="none",h.style.display="block";l.textContent!=="NaN"&&i.value!==""&&i.value>0&&o.value!==""&&o.value>=0&&a.value!==""?(d.style.display="block",h.style.display="none"):(d.style.display="none",h.style.display="block"),f.textContent>=2?(document.querySelector(".conditionnal_s_input").style.display="inline-block",document.querySelector(".conditionnal_s_result").style.display="inline-block"):(document.querySelector(".conditionnal_s_input").style.display="none",document.querySelector(".conditionnal_s_result").style.display="none")},v=function(_,A,C,x){let S=0,w=0;switch(x){case"monthly":S=_/12,w=C;break;case"bimonthly":S=_/24,w=C*24/12;break;case"eachtwoweeks":S=_/26,w=C*26/12;break;case"weekly":S=_/52,w=C*52/12;break}return{periodicPayment:S*A/(1-Math.pow(1+S,-w)),periodicRate:S}};var e=m,n=g,r=v;const i=document.getElementById("principal"),o=document.getElementById("interestRate"),s=document.getElementById("paymentFrequency"),a=document.getElementById("amortizationPeriod"),l=document.getElementById("result_payments"),c=document.getElementById("result_sum"),u=document.getElementById("result_interest"),f=document.getElementById("result_years"),h=document.getElementById("error_message"),d=document.getElementById("valid_message");[i,o,a].forEach(_=>{_.addEventListener("input",function(){_.value=m(_.value),g()})}),s.addEventListener("change",function(){g()});const b=document.querySelectorAll(".lang_fr"),y=document.querySelectorAll(".lang_en");b.length>0&&(document.documentElement.lang==="fr"?(b.forEach(_=>_.style.display="inline-block"),y.forEach(_=>_.style.display="none")):(b.forEach(_=>_.style.display="none"),y.forEach(_=>_.style.display="inline-block"))),g()}});const kI=[{featureType:"water",elementType:"geometry",stylers:[{color:"#e9e9e9"},{lightness:17}]},{featureType:"landscape",elementType:"geometry",stylers:[{color:"#f5f5f5"},{lightness:20}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#ffffff"},{lightness:17}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#ffffff"},{lightness:29},{weight:.2}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#ffffff"},{lightness:18}]},{featureType:"road.local",elementType:"geometry",stylers:[{color:"#ffffff"},{lightness:16}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#f5f5f5"},{lightness:21}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#dedede"},{lightness:21}]},{elementType:"labels.text.stroke",stylers:[{visibility:"on"},{color:"#ffffff"},{lightness:16}]},{elementType:"labels.text.fill",stylers:[{saturation:36},{color:"#333333"},{lightness:40}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#f2f2f2"},{lightness:19}]},{featureType:"administrative",elementType:"geometry.fill",stylers:[{color:"#fefefe"},{lightness:20}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#fefefe"},{lightness:17},{weight:1.2}]}];window.GoogleMap={create:function(t,{latitude:e,longitude:n}){return new google.maps.Map(t,{center:{lat:e,lng:n},zoom:14,styles:kI})},addMarker:function(t,{title:e,latitude:n,longitude:r}){return new google.maps.Marker({position:{lat:n,lng:r},map:t,title:e})}};let sb=0;const Ra=document.querySelector("header"),BI=document.querySelectorAll(".mobile-menu-wrapper"),DA=document.querySelector(".search-toggle"),xp=document.querySelector(".dropdown-search"),HI=document.querySelector(".close-search"),MA=document.querySelectorAll(".dropdown-toggle"),fn=document.querySelector(".bodyWrapper");function ld(){let t=fn.scrollTop,e=Ra.offsetHeight;fn.classList.toggle("hideNavFully",t>e),fn.classList.toggle("hideNavPartially",t<sb&&t>e),sb=t}function cd(){let t=Ra.offsetHeight;Ra&&(fn.style.paddingTop=`${t}px`,BI.forEach(e=>{e.style.top=t+"px"}))}MA.forEach(t=>{t.addEventListener("click",()=>{let e=t.nextElementSibling;if(t.classList.contains("active"))t.classList.remove("active"),e.style.maxHeight="0";else{const n=document.querySelector(".dropdown-toggle.active + .dropdown-menu");n&&(n.style.maxHeight="0",n.previousElementSibling.classList.remove("active")),t.classList.add("active"),e.style.maxHeight=e.scrollHeight+"px"}})});fn.addEventListener("click",t=>{if(!Ra.contains(t.target)){let e=document.querySelector(".dropdown-toggle.active + .dropdown-menu");e&&(e.style.maxHeight="0",e.previousElementSibling.classList.remove("active"))}(!Ra.contains(t.target)&&!xp.contains(t.target)&&!DA.contains(t.target)||HI.contains(t.target))&&xp.classList.remove("active")});DA.addEventListener("click",()=>{xp.classList.toggle("active"),setTimeout(()=>{document.querySelector("input.aa-Input").focus()},300)});function qI(){cd(),ld()}fn.addEventListener("scroll",()=>{cd(),ld(),window.innerWidth>=1024&&window.innerHeight>=650&&MA.forEach(t=>{t.classList.remove("active"),t.nextElementSibling.style.maxHeight="0"})});window.addEventListener("resize",qI);window.addEventListener("load",()=>{setTimeout(()=>{cd(),ld()},300)});cd();ld();const WI=document.querySelectorAll(".menu_w_categories");WI.forEach(t=>{let e=t.querySelector(".dropdown-toggle"),n=t.querySelector(".left-column"),r=t.querySelector(".right-column"),i=n.querySelectorAll("button"),o=r.querySelectorAll(".category_content");i.forEach(s=>{s.addEventListener("click",()=>{let a=s.closest(".dropdown-menu"),l=a.querySelector(".left-column ul").offsetHeight;i.forEach(c=>{c.parentElement.classList.remove("active")}),s.parentElement.classList.add("active"),o.forEach(c=>{c.classList.remove("active")}),r.querySelector(`[data-id="${s.dataset.id}"]`).classList.add("active"),r.style.height=`${r.querySelector(`[data-id="${s.dataset.id}"]`).offsetHeight+7*16}px`,r.style.minHeight=`${l+7*16}px`,a.style.maxHeight=r.scrollHeight+100+"px"})}),e.addEventListener("click",()=>{e.classList.contains("active")&&t.querySelector(".left-column li:first-child button").click()})});document.querySelectorAll('a[href^="#"]').forEach(function(t){t.addEventListener("click",function(e){e.preventDefault();const n=this.getAttribute("href").substring(1),r=UI(document.getElementById(n)).top;QI(r,()=>{fn.scrollBy(0,3)})})});function UI(t){const e=t.getBoundingClientRect();return{left:e.left+event.target.scrollLeft,top:e.top+fn.scrollTop}}function QI(t,e){const n=t.toFixed(),r=function(){Math.floor(fn.pageYOffset)===Math.floor(n)&&(fn.removeEventListener("scroll",r),e())};fn.addEventListener("scroll",r),r(),fn.scrollTo({top:t,behavior:"smooth"})}var zI=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ps(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var kA={exports:{}};/*! algoliasearch-lite.umd.js | 4.22.1 | © Algolia, inc. | https://github.com/algolia/algoliasearch-client-javascript */(function(t,e){(function(n,r){t.exports=r()})(zI,function(){function n(V,F,N){return F in V?Object.defineProperty(V,F,{value:N,enumerable:!0,configurable:!0,writable:!0}):V[F]=N,V}function r(V,F){var N=Object.keys(V);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(V);F&&(W=W.filter(function(re){return Object.getOwnPropertyDescriptor(V,re).enumerable})),N.push.apply(N,W)}return N}function i(V){for(var F=1;F<arguments.length;F++){var N=arguments[F]!=null?arguments[F]:{};F%2?r(Object(N),!0).forEach(function(W){n(V,W,N[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(V,Object.getOwnPropertyDescriptors(N)):r(Object(N)).forEach(function(W){Object.defineProperty(V,W,Object.getOwnPropertyDescriptor(N,W))})}return V}function o(V,F){if(V==null)return{};var N,W,re=function(E,I){if(E==null)return{};var L,U,H={},X=Object.keys(E);for(U=0;U<X.length;U++)L=X[U],I.indexOf(L)>=0||(H[L]=E[L]);return H}(V,F);if(Object.getOwnPropertySymbols){var ae=Object.getOwnPropertySymbols(V);for(W=0;W<ae.length;W++)N=ae[W],F.indexOf(N)>=0||Object.prototype.propertyIsEnumerable.call(V,N)&&(re[N]=V[N])}return re}function s(V,F){return function(N){if(Array.isArray(N))return N}(V)||function(N,W){if(Symbol.iterator in Object(N)||Object.prototype.toString.call(N)==="[object Arguments]"){var re=[],ae=!0,E=!1,I=void 0;try{for(var L,U=N[Symbol.iterator]();!(ae=(L=U.next()).done)&&(re.push(L.value),!W||re.length!==W);ae=!0);}catch(H){E=!0,I=H}finally{try{ae||U.return==null||U.return()}finally{if(E)throw I}}return re}}(V,F)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(V){return function(F){if(Array.isArray(F)){for(var N=0,W=new Array(F.length);N<F.length;N++)W[N]=F[N];return W}}(V)||function(F){if(Symbol.iterator in Object(F)||Object.prototype.toString.call(F)==="[object Arguments]")return Array.from(F)}(V)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function l(V){var F,N="algoliasearch-client-js-".concat(V.key),W=function(){return F===void 0&&(F=V.localStorage||window.localStorage),F},re=function(){return JSON.parse(W().getItem(N)||"{}")},ae=function(I){W().setItem(N,JSON.stringify(I))},E=function(){var I=V.timeToLive?1e3*V.timeToLive:null,L=re(),U=Object.fromEntries(Object.entries(L).filter(function(X){return s(X,2)[1].timestamp!==void 0}));if(ae(U),I){var H=Object.fromEntries(Object.entries(U).filter(function(X){var ne=s(X,2)[1],J=new Date().getTime();return!(ne.timestamp+I<J)}));ae(H)}};return{get:function(I,L){var U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then(function(){E();var H=JSON.stringify(I);return re()[H]}).then(function(H){return Promise.all([H?H.value:L(),H!==void 0])}).then(function(H){var X=s(H,2),ne=X[0],J=X[1];return Promise.all([ne,J||U.miss(ne)])}).then(function(H){return s(H,1)[0]})},set:function(I,L){return Promise.resolve().then(function(){var U=re();return U[JSON.stringify(I)]={timestamp:new Date().getTime(),value:L},W().setItem(N,JSON.stringify(U)),L})},delete:function(I){return Promise.resolve().then(function(){var L=re();delete L[JSON.stringify(I)],W().setItem(N,JSON.stringify(L))})},clear:function(){return Promise.resolve().then(function(){W().removeItem(N)})}}}function c(V){var F=a(V.caches),N=F.shift();return N===void 0?{get:function(W,re){var ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}},E=re();return E.then(function(I){return Promise.all([I,ae.miss(I)])}).then(function(I){return s(I,1)[0]})},set:function(W,re){return Promise.resolve(re)},delete:function(W){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(W,re){var ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return N.get(W,re,ae).catch(function(){return c({caches:F}).get(W,re,ae)})},set:function(W,re){return N.set(W,re).catch(function(){return c({caches:F}).set(W,re)})},delete:function(W){return N.delete(W).catch(function(){return c({caches:F}).delete(W)})},clear:function(){return N.clear().catch(function(){return c({caches:F}).clear()})}}}function u(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{serializable:!0},F={};return{get:function(N,W){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}},ae=JSON.stringify(N);if(ae in F)return Promise.resolve(V.serializable?JSON.parse(F[ae]):F[ae]);var E=W(),I=re&&re.miss||function(){return Promise.resolve()};return E.then(function(L){return I(L)}).then(function(){return E})},set:function(N,W){return F[JSON.stringify(N)]=V.serializable?JSON.stringify(W):W,Promise.resolve(W)},delete:function(N){return delete F[JSON.stringify(N)],Promise.resolve()},clear:function(){return F={},Promise.resolve()}}}function f(V){for(var F=V.length-1;F>0;F--){var N=Math.floor(Math.random()*(F+1)),W=V[F];V[F]=V[N],V[N]=W}return V}function h(V,F){return F&&Object.keys(F).forEach(function(N){V[N]=F[N](V)}),V}function d(V){for(var F=arguments.length,N=new Array(F>1?F-1:0),W=1;W<F;W++)N[W-1]=arguments[W];var re=0;return V.replace(/%s/g,function(){return encodeURIComponent(N[re++])})}var p={WithinQueryParameters:0,WithinHeaders:1};function m(V,F){var N=V||{},W=N.data||{};return Object.keys(N).forEach(function(re){["timeout","headers","queryParameters","data","cacheable"].indexOf(re)===-1&&(W[re]=N[re])}),{data:Object.entries(W).length>0?W:void 0,timeout:N.timeout||F,headers:N.headers||{},queryParameters:N.queryParameters||{},cacheable:N.cacheable}}var g={Read:1,Write:2,Any:3},v=1,b=2,y=3;function _(V){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v;return i(i({},V),{},{status:F,lastUpdate:Date.now()})}function A(V){return typeof V=="string"?{protocol:"https",url:V,accept:g.Any}:{protocol:V.protocol||"https",url:V.url,accept:V.accept||g.Any}}var C="GET",x="POST";function S(V,F){return Promise.all(F.map(function(N){return V.get(N,function(){return Promise.resolve(_(N))})})).then(function(N){var W=N.filter(function(E){return function(I){return I.status===v||Date.now()-I.lastUpdate>12e4}(E)}),re=N.filter(function(E){return function(I){return I.status===y&&Date.now()-I.lastUpdate<=12e4}(E)}),ae=[].concat(a(W),a(re));return{getTimeout:function(E,I){return(re.length===0&&E===0?1:re.length+3+E)*I},statelessHosts:ae.length>0?ae.map(function(E){return A(E)}):F}})}function w(V,F,N,W){var re=[],ae=function(ne,J){if(!(ne.method===C||ne.data===void 0&&J.data===void 0)){var Z=Array.isArray(ne.data)?ne.data:i(i({},ne.data),J.data);return JSON.stringify(Z)}}(N,W),E=function(ne,J){var Z=i(i({},ne.headers),J.headers),Y={};return Object.keys(Z).forEach(function(ie){var le=Z[ie];Y[ie.toLowerCase()]=le}),Y}(V,W),I=N.method,L=N.method!==C?{}:i(i({},N.data),W.data),U=i(i(i({"x-algolia-agent":V.userAgent.value},V.queryParameters),L),W.queryParameters),H=0,X=function ne(J,Z){var Y=J.pop();if(Y===void 0)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:R(re)};var ie={data:ae,headers:E,method:I,url:P(Y,N.path,U),connectTimeout:Z(H,V.timeouts.connect),responseTimeout:Z(H,W.timeout)},le=function(ce){var se={request:ie,response:ce,host:Y,triesLeft:J.length};return re.push(se),se},de={onSuccess:function(ce){return function(se){try{return JSON.parse(se.content)}catch(be){throw function(j,ee){return{name:"DeserializationError",message:j,response:ee}}(be.message,se)}}(ce)},onRetry:function(ce){var se=le(ce);return ce.isTimedOut&&H++,Promise.all([V.logger.info("Retryable failure",M(se)),V.hostsCache.set(Y,_(Y,ce.isTimedOut?y:b))]).then(function(){return ne(J,Z)})},onFail:function(ce){throw le(ce),function(se,be){var j=se.content,ee=se.status,he=j;try{he=JSON.parse(j).message}catch{}return function(xe,Fe,Ke){return{name:"ApiError",message:xe,status:Fe,transporterStackTrace:Ke}}(he,ee,be)}(ce,R(re))}};return V.requester.send(ie).then(function(ce){return function(se,be){return function(j){var ee=j.status;return j.isTimedOut||function(he){var xe=he.isTimedOut,Fe=he.status;return!xe&&~~Fe==0}(j)||~~(ee/100)!=2&&~~(ee/100)!=4}(se)?be.onRetry(se):~~(se.status/100)==2?be.onSuccess(se):be.onFail(se)}(ce,de)})};return S(V.hostsCache,F).then(function(ne){return X(a(ne.statelessHosts).reverse(),ne.getTimeout)})}function O(V){var F={value:"Algolia for JavaScript (".concat(V,")"),add:function(N){var W="; ".concat(N.segment).concat(N.version!==void 0?" (".concat(N.version,")"):"");return F.value.indexOf(W)===-1&&(F.value="".concat(F.value).concat(W)),F}};return F}function P(V,F,N){var W=T(N),re="".concat(V.protocol,"://").concat(V.url,"/").concat(F.charAt(0)==="/"?F.substr(1):F);return W.length&&(re+="?".concat(W)),re}function T(V){return Object.keys(V).map(function(F){return d("%s=%s",F,(N=V[F],Object.prototype.toString.call(N)==="[object Object]"||Object.prototype.toString.call(N)==="[object Array]"?JSON.stringify(V[F]):V[F]));var N}).join("&")}function R(V){return V.map(function(F){return M(F)})}function M(V){var F=V.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return i(i({},V),{},{request:i(i({},V.request),{},{headers:i(i({},V.request.headers),F)})})}var k=function(V){var F=V.appId,N=function(re,ae,E){var I={"x-algolia-api-key":E,"x-algolia-application-id":ae};return{headers:function(){return re===p.WithinHeaders?I:{}},queryParameters:function(){return re===p.WithinQueryParameters?I:{}}}}(V.authMode!==void 0?V.authMode:p.WithinHeaders,F,V.apiKey),W=function(re){var ae=re.hostsCache,E=re.logger,I=re.requester,L=re.requestsCache,U=re.responsesCache,H=re.timeouts,X=re.userAgent,ne=re.hosts,J=re.queryParameters,Z={hostsCache:ae,logger:E,requester:I,requestsCache:L,responsesCache:U,timeouts:H,userAgent:X,headers:re.headers,queryParameters:J,hosts:ne.map(function(Y){return A(Y)}),read:function(Y,ie){var le=m(ie,Z.timeouts.read),de=function(){return w(Z,Z.hosts.filter(function(se){return(se.accept&g.Read)!=0}),Y,le)};if((le.cacheable!==void 0?le.cacheable:Y.cacheable)!==!0)return de();var ce={request:Y,mappedRequestOptions:le,transporter:{queryParameters:Z.queryParameters,headers:Z.headers}};return Z.responsesCache.get(ce,function(){return Z.requestsCache.get(ce,function(){return Z.requestsCache.set(ce,de()).then(function(se){return Promise.all([Z.requestsCache.delete(ce),se])},function(se){return Promise.all([Z.requestsCache.delete(ce),Promise.reject(se)])}).then(function(se){var be=s(se,2);return be[0],be[1]})})},{miss:function(se){return Z.responsesCache.set(ce,se)}})},write:function(Y,ie){return w(Z,Z.hosts.filter(function(le){return(le.accept&g.Write)!=0}),Y,m(ie,Z.timeouts.write))}};return Z}(i(i({hosts:[{url:"".concat(F,"-dsn.algolia.net"),accept:g.Read},{url:"".concat(F,".algolia.net"),accept:g.Write}].concat(f([{url:"".concat(F,"-1.algolianet.com")},{url:"".concat(F,"-2.algolianet.com")},{url:"".concat(F,"-3.algolianet.com")}]))},V),{},{headers:i(i(i({},N.headers()),{"content-type":"application/x-www-form-urlencoded"}),V.headers),queryParameters:i(i({},N.queryParameters()),V.queryParameters)}));return h({transporter:W,appId:F,addAlgoliaAgent:function(re,ae){W.userAgent.add({segment:re,version:ae})},clearCache:function(){return Promise.all([W.requestsCache.clear(),W.responsesCache.clear()]).then(function(){})}},V.methods)},B=function(V){return function(F,N){return F.method===C?V.transporter.read(F,N):V.transporter.write(F,N)}},z=function(V){return function(F){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W={transporter:V.transporter,appId:V.appId,indexName:F};return h(W,N.methods)}},Q=function(V){return function(F,N){var W=F.map(function(re){return i(i({},re),{},{params:T(re.params||{})})});return V.transporter.read({method:x,path:"1/indexes/*/queries",data:{requests:W},cacheable:!0},N)}},G=function(V){return function(F,N){return Promise.all(F.map(function(W){var re=W.params,ae=re.facetName,E=re.facetQuery,I=o(re,["facetName","facetQuery"]);return z(V)(W.indexName,{methods:{searchForFacetValues:ue}}).searchForFacetValues(ae,E,i(i({},N),I))}))}},K=function(V){return function(F,N,W){return V.transporter.read({method:x,path:d("1/answers/%s/prediction",V.indexName),data:{query:F,queryLanguages:N},cacheable:!0},W)}},te=function(V){return function(F,N){return V.transporter.read({method:x,path:d("1/indexes/%s/query",V.indexName),data:{query:F},cacheable:!0},N)}},ue=function(V){return function(F,N,W){return V.transporter.read({method:x,path:d("1/indexes/%s/facets/%s/query",V.indexName,F),data:{facetQuery:N},cacheable:!0},W)}},Se=1,ye=2,q=3;function D(V,F,N){var W,re={appId:V,apiKey:F,timeouts:{connect:1,read:2,write:30},requester:{send:function(ae){return new Promise(function(E){var I=new XMLHttpRequest;I.open(ae.method,ae.url,!0),Object.keys(ae.headers).forEach(function(X){return I.setRequestHeader(X,ae.headers[X])});var L,U=function(X,ne){return setTimeout(function(){I.abort(),E({status:0,content:ne,isTimedOut:!0})},1e3*X)},H=U(ae.connectTimeout,"Connection timeout");I.onreadystatechange=function(){I.readyState>I.OPENED&&L===void 0&&(clearTimeout(H),L=U(ae.responseTimeout,"Socket timeout"))},I.onerror=function(){I.status===0&&(clearTimeout(H),clearTimeout(L),E({content:I.responseText||"Network request failed",status:I.status,isTimedOut:!1}))},I.onload=function(){clearTimeout(H),clearTimeout(L),E({content:I.responseText,status:I.status,isTimedOut:!1})},I.send(ae.data)})}},logger:(W=q,{debug:function(ae,E){return Se>=W&&console.debug(ae,E),Promise.resolve()},info:function(ae,E){return ye>=W&&console.info(ae,E),Promise.resolve()},error:function(ae,E){return console.error(ae,E),Promise.resolve()}}),responsesCache:u(),requestsCache:u({serializable:!1}),hostsCache:c({caches:[l({key:"".concat("4.22.1","-").concat(V)}),u()]}),userAgent:O("4.22.1").add({segment:"Browser",version:"lite"}),authMode:p.WithinQueryParameters};return k(i(i(i({},re),N),{},{methods:{search:Q,searchForFacetValues:G,multipleQueries:Q,multipleSearchForFacetValues:G,customRequest:B,initIndex:function(ae){return function(E){return z(ae)(E,{methods:{search:te,searchForFacetValues:ue,findAnswers:K}})}}}}))}return D.version="4.22.1",D})})(kA);var KI=kA.exports;const xs=Ps(KI);function ia(t){return{current:t}}function df(t,e){var n=void 0;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];n&&clearTimeout(n),n=setTimeout(function(){return t.apply(void 0,i)},e)}}function ro(t){return t.reduce(function(e,n){return e.concat(n)},[])}var GI=0;function BA(){return"autocomplete-".concat(GI++)}function hf(t,e){return e.reduce(function(n,r){return n&&n[r]},t)}function $a(t){return t.collections.length===0?0:t.collections.reduce(function(e,n){return e+n.items.length},0)}function ab(t){return t!==Object(t)}function HA(t,e){if(t===e)return!0;if(ab(t)||ab(e)||typeof t=="function"||typeof e=="function")return t===e;if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];if(!(i in e)||!HA(t[i],e[i]))return!1}return!0}var pf=function(){};function YI(t){if(typeof window<"u")return t({window})}var qA="1.15.0",WA=[{segment:"autocomplete-core",version:qA}];function lb(t){var e=t.item,n=t.items,r=n===void 0?[]:n;return{index:e.__autocomplete_indexName,items:[e],positions:[1+r.findIndex(function(i){return i.objectID===e.objectID})],queryID:e.__autocomplete_queryID,algoliaSource:["autocomplete"]}}function JI(t,e){return tR(t)||eR(t,e)||XI(t,e)||ZI()}function ZI(){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 XI(t,e){if(t){if(typeof t=="string")return cb(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cb(t,e)}}function cb(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function eR(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==e);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}function tR(t){if(Array.isArray(t))return t}function nR(t){var e=(t.version||"").split(".").map(Number),n=JI(e,2),r=n[0],i=n[1],o=r>=3,s=r===2&&i>=4,a=r===1&&i>=10;return o||s||a}var rR=["items"],iR=["items"];function Va(t){"@babel/helpers - typeof";return Va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Va(t)}function uu(t){return lR(t)||aR(t)||sR(t)||oR()}function oR(){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 sR(t,e){if(t){if(typeof t=="string")return Cp(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cp(t,e)}}function aR(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function lR(t){if(Array.isArray(t))return Cp(t)}function Cp(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function UA(t,e){if(t==null)return{};var n=cR(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function cR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function ub(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Xo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ub(Object(n),!0).forEach(function(r){uR(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ub(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function uR(t,e,n){return e=fR(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fR(t){var e=dR(t,"string");return Va(e)==="symbol"?e:String(e)}function dR(t,e){if(Va(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Va(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function hR(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:20,n=[],r=0;r<t.objectIDs.length;r+=e)n.push(Xo(Xo({},t),{},{objectIDs:t.objectIDs.slice(r,r+e)}));return n}function fu(t){return t.map(function(e){var n=e.items,r=UA(e,rR);return Xo(Xo({},r),{},{objectIDs:(n==null?void 0:n.map(function(i){var o=i.objectID;return o}))||r.objectIDs})})}function pR(t){var e=nR(t);function n(r,i,o){if(e&&typeof o<"u"){var s=o[0].__autocomplete_algoliaCredentials,a=s.appId,l=s.apiKey,c={"X-Algolia-Application-Id":a,"X-Algolia-API-Key":l};t.apply(void 0,[r].concat(uu(i),[{headers:c}]))}else t.apply(void 0,[r].concat(uu(i)))}return{init:function(i,o){t("init",{appId:i,apiKey:o})},setAuthenticatedUserToken:function(i){t("setAuthenticatedUserToken",i)},setUserToken:function(i){t("setUserToken",i)},clickedObjectIDsAfterSearch:function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];o.length>0&&n("clickedObjectIDsAfterSearch",fu(o),o[0].items)},clickedObjectIDs:function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];o.length>0&&n("clickedObjectIDs",fu(o),o[0].items)},clickedFilters:function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];o.length>0&&t.apply(void 0,["clickedFilters"].concat(o))},convertedObjectIDsAfterSearch:function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];o.length>0&&n("convertedObjectIDsAfterSearch",fu(o),o[0].items)},convertedObjectIDs:function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];o.length>0&&n("convertedObjectIDs",fu(o),o[0].items)},convertedFilters:function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];o.length>0&&t.apply(void 0,["convertedFilters"].concat(o))},viewedObjectIDs:function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];o.length>0&&o.reduce(function(a,l){var c=l.items,u=UA(l,iR);return[].concat(uu(a),uu(hR(Xo(Xo({},u),{},{objectIDs:(c==null?void 0:c.map(function(f){var h=f.objectID;return h}))||u.objectIDs})).map(function(f){return{items:c,payload:f}})))},[]).forEach(function(a){var l=a.items,c=a.payload;return n("viewedObjectIDs",[c],l)})},viewedFilters:function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];o.length>0&&t.apply(void 0,["viewedFilters"].concat(o))}}}function mR(t){var e=t.items,n=e.reduce(function(r,i){var o;return r[i.__autocomplete_indexName]=((o=r[i.__autocomplete_indexName])!==null&&o!==void 0?o:[]).concat(i),r},{});return Object.keys(n).map(function(r){var i=n[r];return{index:r,items:i,algoliaSource:["autocomplete"]}})}function Ws(t){return t.objectID&&t.__autocomplete_indexName&&t.__autocomplete_queryID}function ja(t){"@babel/helpers - typeof";return ja=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ja(t)}function es(t){return bR(t)||yR(t)||vR(t)||gR()}function gR(){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 vR(t,e){if(t){if(typeof t=="string")return Tp(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tp(t,e)}}function yR(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function bR(t){if(Array.isArray(t))return Tp(t)}function Tp(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function fb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function An(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fb(Object(n),!0).forEach(function(r){_R(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fb(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function _R(t,e,n){return e=SR(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function SR(t){var e=wR(t,"string");return ja(e)==="symbol"?e:String(e)}function wR(t,e){if(ja(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(ja(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var AR=400,QA="2.13.0",OR="https://cdn.jsdelivr.net/npm/search-insights@".concat(QA,"/dist/search-insights.min.js"),ER=df(function(t){var e=t.onItemsChange,n=t.items,r=t.insights,i=t.state;e({insights:r,insightsEvents:mR({items:n}).map(function(o){return An({eventName:"Items Viewed"},o)}),state:i})},AR);function db(t){var e=PR(t),n=e.insightsClient,r=e.insightsInitParams,i=e.onItemsChange,o=e.onSelect,s=e.onActive,a=e.__autocomplete_clickAnalytics,l=n;if(n||YI(function(h){var d=h.window,p=d.AlgoliaAnalyticsObject||"aa";typeof p=="string"&&(l=d[p]),l||(d.AlgoliaAnalyticsObject=p,d[p]||(d[p]=function(){d[p].queue||(d[p].queue=[]);for(var m=arguments.length,g=new Array(m),v=0;v<m;v++)g[v]=arguments[v];d[p].queue.push(g)}),d[p].version=QA,l=d[p],xR(d))}),!l)return{};r&&l("init",An({partial:!0},r));var c=pR(l),u=ia([]),f=df(function(h){var d=h.state;if(d.isOpen){var p=d.collections.reduce(function(m,g){return[].concat(es(m),es(g.items))},[]).filter(Ws);HA(u.current.map(function(m){return m.objectID}),p.map(function(m){return m.objectID}))||(u.current=p,p.length>0&&ER({onItemsChange:i,items:p,insights:c,state:d}))}},0);return{name:"aa.algoliaInsightsPlugin",subscribe:function(d){var p=d.setContext,m=d.onSelect,g=d.onActive;function v(b){p({algoliaInsightsPlugin:{__algoliaSearchParameters:An(An({},a?{clickAnalytics:!0}:{}),b?{userToken:CR(b)}:{}),insights:c}})}l("addAlgoliaAgent","insights-plugin"),v(),l("onUserTokenChange",v),l("getUserToken",null,function(b,y){v(y)}),l("onAuthenticatedUserTokenChange",function(b){b?v(b):l("getUserToken",null,function(y,_){return v(_)})}),l("getAuthenticatedUserToken",null,function(b,y){y&&v(y)}),m(function(b){var y=b.item,_=b.state,A=b.event,C=b.source;Ws(y)&&o({state:_,event:A,insights:c,item:y,insightsEvents:[An({eventName:"Item Selected"},lb({item:y,items:C.getItems().filter(Ws)}))]})}),g(function(b){var y=b.item,_=b.source,A=b.state,C=b.event;Ws(y)&&s({state:A,event:C,insights:c,item:y,insightsEvents:[An({eventName:"Item Active"},lb({item:y,items:_.getItems().filter(Ws)}))]})})},onStateChange:function(d){var p=d.state;f({state:p})},__autocomplete_pluginOptions:t}}function hb(){var t,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;return[].concat(es(e),["autocomplete-internal"],es((t=n.algoliaInsightsPlugin)!==null&&t!==void 0&&t.__automaticInsights?["autocomplete-automatic"]:[]))}function PR(t){return An({onItemsChange:function(n){var r=n.insights,i=n.insightsEvents,o=n.state;r.viewedObjectIDs.apply(r,es(i.map(function(s){return An(An({},s),{},{algoliaSource:hb(s.algoliaSource,o.context)})})))},onSelect:function(n){var r=n.insights,i=n.insightsEvents,o=n.state;r.clickedObjectIDsAfterSearch.apply(r,es(i.map(function(s){return An(An({},s),{},{algoliaSource:hb(s.algoliaSource,o.context)})})))},onActive:pf,__autocomplete_clickAnalytics:!0},t)}function xR(t){var e="[Autocomplete]: Could not load search-insights.js. Please load it manually following https://alg.li/insights-autocomplete";try{var n=t.document.createElement("script");n.async=!0,n.src=OR,n.onerror=function(){console.error(e)},document.body.appendChild(n)}catch{console.error(e)}}function CR(t){return typeof t=="number"?t.toString():t}function Wu(t,e){var n=e;return{then:function(i,o){return Wu(t.then(du(i,n,t),du(o,n,t)),n)},catch:function(i){return Wu(t.catch(du(i,n,t)),n)},finally:function(i){return i&&n.onCancelList.push(i),Wu(t.finally(du(i&&function(){return n.onCancelList=[],i()},n,t)),n)},cancel:function(){n.isCanceled=!0;var i=n.onCancelList;n.onCancelList=[],i.forEach(function(o){o()})},isCanceled:function(){return n.isCanceled===!0}}}function pb(t){return Wu(t,{isCanceled:!1,onCancelList:[]})}function du(t,e,n){return t?function(i){return e.isCanceled?i:t(i)}:n}function TR(){var t=[];return{add:function(n){return t.push(n),n.finally(function(){t=t.filter(function(r){return r!==n})})},cancelAll:function(){t.forEach(function(n){return n.cancel()})},isEmpty:function(){return t.length===0}}}function IR(){var t=-1,e=-1,n=void 0;return function(i){t++;var o=t;return Promise.resolve(i).then(function(s){return n&&o<e?n:(e=o,n=s,s)})}}function mb(t,e,n,r){if(!n)return null;if(t<0&&(e===null||r!==null&&e===0))return n+t;var i=(e===null?-1:e)+t;return i<=-1||i>=n?r===null?null:0:i}function gb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function vb(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?gb(Object(n),!0).forEach(function(r){RR(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gb(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function RR(t,e,n){return e=$R(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $R(t){var e=VR(t,"string");return Na(e)==="symbol"?e:String(e)}function VR(t,e){if(Na(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Na(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Na(t){"@babel/helpers - typeof";return Na=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Na(t)}function jR(t,e){var n=[];return Promise.resolve(t(e)).then(function(r){return Promise.all(r.filter(function(i){return!!i}).map(function(i){if(i.sourceId,n.includes(i.sourceId))throw new Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(i.sourceId)," is not unique."));n.push(i.sourceId);var o={getItemInputValue:function(l){var c=l.state;return c.query},getItemUrl:function(){},onSelect:function(l){var c=l.setIsOpen;c(!1)},onActive:pf,onResolve:pf};Object.keys(o).forEach(function(a){o[a].__default=!0});var s=vb(vb({},o),i);return Promise.resolve(s)}))})}function NR(t){var e=t.collections.map(function(r){return r.items.length}).reduce(function(r,i,o){var s=r[o-1]||0,a=s+i;return r.push(a),r},[]),n=e.reduce(function(r,i){return i<=t.activeItemId?r+1:r},0);return t.collections[n]}function LR(t){for(var e=t.state,n=t.collection,r=!1,i=0,o=0;r===!1;){var s=e.collections[i];if(s===n){r=!0;break}o+=s.items.length,i++}return e.activeItemId-o}function Qi(t){var e=NR(t);if(!e)return null;var n=e.items[LR({state:t,collection:e})],r=e.source,i=r.getItemInputValue({item:n,state:t}),o=r.getItemUrl({item:n,state:t});return{item:n,itemInputValue:i,itemUrl:o,source:r}}function cn(t,e,n){return[t,n==null?void 0:n.sourceId,e].filter(Boolean).join("-").replace(/\s/g,"")}function FR(t,e){return t===e||t.contains(e)}var DR=/((gt|sm)-|galaxy nexus)|samsung[- ]|samsungbrowser/i;function MR(t){return!!(t&&t.match(DR))}function kR(t){return{results:t,hits:t.map(function(e){return e.hits}).filter(Boolean),facetHits:t.map(function(e){var n;return(n=e.facetHits)===null||n===void 0?void 0:n.map(function(r){return{label:r.value,count:r.count,_highlightResult:{label:{value:r.highlighted}}}})}).filter(Boolean)}}function La(t){"@babel/helpers - typeof";return La=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},La(t)}function yb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function BR(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?yb(Object(n),!0).forEach(function(r){HR(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yb(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function HR(t,e,n){return e=qR(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qR(t){var e=WR(t,"string");return La(e)==="symbol"?e:String(e)}function WR(t,e){if(La(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(La(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function UR(t,e,n){var r=e.initialState;return{getState:function(){return r},dispatch:function(o,s){var a=BR({},r);r=t(r,{type:o,props:e,payload:s}),n({state:r,prevState:a})},pendingRequests:TR()}}function Fa(t){"@babel/helpers - typeof";return Fa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fa(t)}function bb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function hu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?bb(Object(n),!0).forEach(function(r){QR(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bb(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function QR(t,e,n){return e=zR(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zR(t){var e=KR(t,"string");return Fa(e)==="symbol"?e:String(e)}function KR(t,e){if(Fa(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Fa(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function GR(t){var e=t.store,n=function(c){e.dispatch("setActiveItemId",c)},r=function(c){e.dispatch("setQuery",c)},i=function(c){var u=0,f=c.map(function(h){return hu(hu({},h),{},{items:ro(h.items).map(function(d){return hu(hu({},d),{},{__autocomplete_id:u++})})})});e.dispatch("setCollections",f)},o=function(c){e.dispatch("setIsOpen",c)},s=function(c){e.dispatch("setStatus",c)},a=function(c){e.dispatch("setContext",c)};return{setActiveItemId:n,setQuery:r,setCollections:i,setIsOpen:o,setStatus:s,setContext:a}}function Da(t){"@babel/helpers - typeof";return Da=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Da(t)}function YR(t){return e$(t)||XR(t)||ZR(t)||JR()}function JR(){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 ZR(t,e){if(t){if(typeof t=="string")return Ip(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ip(t,e)}}function XR(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function e$(t){if(Array.isArray(t))return Ip(t)}function Ip(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function _b(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function xo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_b(Object(n),!0).forEach(function(r){t$(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_b(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function t$(t,e,n){return e=n$(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function n$(t){var e=r$(t,"string");return Da(e)==="symbol"?e:String(e)}function r$(t,e){if(Da(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Da(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function i$(t,e){var n,r=typeof window<"u"?window:{},i=t.plugins||[];return xo(xo({debug:!1,openOnFocus:!1,enterKeyHint:void 0,placeholder:"",autoFocus:!1,defaultActiveItemId:null,stallThreshold:300,insights:void 0,environment:r,shouldPanelOpen:function(s){var a=s.state;return $a(a)>0},reshape:function(s){var a=s.sources;return a}},t),{},{id:(n=t.id)!==null&&n!==void 0?n:BA(),plugins:i,initialState:xo({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},t.initialState),onStateChange:function(s){var a;(a=t.onStateChange)===null||a===void 0||a.call(t,s),i.forEach(function(l){var c;return(c=l.onStateChange)===null||c===void 0?void 0:c.call(l,s)})},onSubmit:function(s){var a;(a=t.onSubmit)===null||a===void 0||a.call(t,s),i.forEach(function(l){var c;return(c=l.onSubmit)===null||c===void 0?void 0:c.call(l,s)})},onReset:function(s){var a;(a=t.onReset)===null||a===void 0||a.call(t,s),i.forEach(function(l){var c;return(c=l.onReset)===null||c===void 0?void 0:c.call(l,s)})},getSources:function(s){return Promise.all([].concat(YR(i.map(function(a){return a.getSources})),[t.getSources]).filter(Boolean).map(function(a){return jR(a,s)})).then(function(a){return ro(a)}).then(function(a){return a.map(function(l){return xo(xo({},l),{},{onSelect:function(u){l.onSelect(u),e.forEach(function(f){var h;return(h=f.onSelect)===null||h===void 0?void 0:h.call(f,u)})},onActive:function(u){l.onActive(u),e.forEach(function(f){var h;return(h=f.onActive)===null||h===void 0?void 0:h.call(f,u)})},onResolve:function(u){l.onResolve(u),e.forEach(function(f){var h;return(h=f.onResolve)===null||h===void 0?void 0:h.call(f,u)})}})})})},navigator:xo({navigate:function(s){var a=s.itemUrl;r.location.assign(a)},navigateNewTab:function(s){var a=s.itemUrl,l=r.open(a,"_blank","noopener");l==null||l.focus()},navigateNewWindow:function(s){var a=s.itemUrl;r.open(a,"_blank","noopener")}},t.navigator)})}function Ma(t){"@babel/helpers - typeof";return Ma=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ma(t)}function Sb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function pu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Sb(Object(n),!0).forEach(function(r){zA(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Sb(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function zA(t,e,n){return e=o$(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o$(t){var e=s$(t,"string");return Ma(e)==="symbol"?e:String(e)}function s$(t,e){if(Ma(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ma(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function a$(t){var e=t.collections,n=t.props,r=t.state,i=e.reduce(function(l,c){return pu(pu({},l),{},zA({},c.source.sourceId,pu(pu({},c.source),{},{getItems:function(){return ro(c.items)}})))},{}),o=n.plugins.reduce(function(l,c){return c.reshape?c.reshape(l):l},{sourcesBySourceId:i,state:r}),s=o.sourcesBySourceId,a=n.reshape({sourcesBySourceId:s,sources:Object.values(s),state:r});return ro(a).filter(Boolean).map(function(l){return{source:l,items:l.getItems()}})}function ka(t){"@babel/helpers - typeof";return ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ka(t)}function wb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Co(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?wb(Object(n),!0).forEach(function(r){l$(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wb(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function l$(t,e,n){return e=c$(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c$(t){var e=u$(t,"string");return ka(e)==="symbol"?e:String(e)}function u$(t,e){if(ka(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(ka(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function KA(t){return p$(t)||h$(t)||d$(t)||f$()}function f$(){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 d$(t,e){if(t){if(typeof t=="string")return Rp(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rp(t,e)}}function h$(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function p$(t){if(Array.isArray(t))return Rp(t)}function Rp(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function mu(t){return!!t.execute}function m$(t){return!!(t!=null&&t.execute)}function g$(t,e,n){if(m$(t)){var r=t.requesterId==="algolia"?Object.assign.apply(Object,[{}].concat(KA(Object.keys(n.context).map(function(i){var o;return(o=n.context[i])===null||o===void 0?void 0:o.__algoliaSearchParameters})))):{};return Co(Co({},t),{},{requests:t.queries.map(function(i){return{query:t.requesterId==="algolia"?Co(Co({},i),{},{params:Co(Co({},r),i.params)}):i,sourceId:e,transformResponse:t.transformResponse}})})}return{items:t,sourceId:e}}function v$(t){var e=t.reduce(function(r,i){if(!mu(i))return r.push(i),r;var o=i.searchClient,s=i.execute,a=i.requesterId,l=i.requests,c=r.find(function(h){return mu(i)&&mu(h)&&h.searchClient===o&&!!a&&h.requesterId===a});if(c){var u;(u=c.items).push.apply(u,KA(l))}else{var f={execute:s,requesterId:a,items:l,searchClient:o};r.push(f)}return r},[]),n=e.map(function(r){if(!mu(r))return Promise.resolve(r);var i=r,o=i.execute,s=i.items,a=i.searchClient;return o({searchClient:a,requests:s})});return Promise.all(n).then(function(r){return ro(r)})}function y$(t,e,n){return e.map(function(r){var i=t.filter(function(l){return l.sourceId===r.sourceId}),o=i.map(function(l){var c=l.items;return c}),s=i[0].transformResponse,a=s?s(kR(o)):o;return r.onResolve({source:r,results:o,items:a,state:n.getState()}),a.every(Boolean),'The `getItems` function from source "'.concat(r.sourceId,'" must return an array of items but returned ').concat(JSON.stringify(void 0),`. Did you forget to return items? See: https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/#param-getitems`),{source:r,items:a}})}function Ba(t){"@babel/helpers - typeof";return Ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ba(t)}var b$=["event","nextState","props","query","refresh","store"];function Ab(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function bi(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ab(Object(n),!0).forEach(function(r){_$(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ab(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function _$(t,e,n){return e=S$(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function S$(t){var e=w$(t,"string");return Ba(e)==="symbol"?e:String(e)}function w$(t,e){if(Ba(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ba(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function A$(t,e){if(t==null)return{};var n=O$(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function O$(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var Us=null,Ob=IR();function Bo(t){var e=t.event,n=t.nextState,r=n===void 0?{}:n,i=t.props,o=t.query,s=t.refresh,a=t.store,l=A$(t,b$);Us&&i.environment.clearTimeout(Us);var c=l.setCollections,u=l.setIsOpen,f=l.setQuery,h=l.setActiveItemId,d=l.setStatus,p=l.setContext;if(f(o),h(i.defaultActiveItemId),!o&&i.openOnFocus===!1){var m,g=a.getState().collections.map(function(y){return bi(bi({},y),{},{items:[]})});d("idle"),c(g),u((m=r.isOpen)!==null&&m!==void 0?m:i.shouldPanelOpen({state:a.getState()}));var v=pb(Ob(g).then(function(){return Promise.resolve()}));return a.pendingRequests.add(v)}d("loading"),Us=i.environment.setTimeout(function(){d("stalled")},i.stallThreshold);var b=pb(Ob(i.getSources(bi({query:o,refresh:s,state:a.getState()},l)).then(function(y){return Promise.all(y.map(function(_){return Promise.resolve(_.getItems(bi({query:o,refresh:s,state:a.getState()},l))).then(function(A){return g$(A,_.sourceId,a.getState())})})).then(v$).then(function(_){var A=_.some(function(x){var S=x.items;return E$(S)});if(A){var C;p({algoliaInsightsPlugin:bi(bi({},((C=a.getState().context)===null||C===void 0?void 0:C.algoliaInsightsPlugin)||{}),{},{__automaticInsights:A})})}return y$(_,y,a)}).then(function(_){return a$({collections:_,props:i,state:a.getState()})})}))).then(function(y){var _;d("idle"),c(y);var A=i.shouldPanelOpen({state:a.getState()});u((_=r.isOpen)!==null&&_!==void 0?_:i.openOnFocus&&!o&&A||A);var C=Qi(a.getState());if(a.getState().activeItemId!==null&&C){var x=C.item,S=C.itemInputValue,w=C.itemUrl,O=C.source;O.onActive(bi({event:e,item:x,itemInputValue:S,itemUrl:w,refresh:s,source:O,state:a.getState()},l))}}).finally(function(){d("idle"),Us&&i.environment.clearTimeout(Us)});return a.pendingRequests.add(b)}function E$(t){return!Array.isArray(t)&&!!(t!=null&&t._automaticInsights)}function Ha(t){"@babel/helpers - typeof";return Ha=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ha(t)}var P$=["event","props","refresh","store"];function Eb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function _i(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Eb(Object(n),!0).forEach(function(r){x$(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Eb(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function x$(t,e,n){return e=C$(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function C$(t){var e=T$(t,"string");return Ha(e)==="symbol"?e:String(e)}function T$(t,e){if(Ha(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ha(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function I$(t,e){if(t==null)return{};var n=R$(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function R$(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function $$(t){var e=t.event,n=t.props,r=t.refresh,i=t.store,o=I$(t,P$);if(e.key==="ArrowUp"||e.key==="ArrowDown"){var s=function(){var p=Qi(i.getState()),m=n.environment.document.getElementById(cn(n.id,"item-".concat(i.getState().activeItemId),p==null?void 0:p.source));m&&(m.scrollIntoViewIfNeeded?m.scrollIntoViewIfNeeded(!1):m.scrollIntoView(!1))},a=function(){var p=Qi(i.getState());if(i.getState().activeItemId!==null&&p){var m=p.item,g=p.itemInputValue,v=p.itemUrl,b=p.source;b.onActive(_i({event:e,item:m,itemInputValue:g,itemUrl:v,refresh:r,source:b,state:i.getState()},o))}};e.preventDefault(),i.getState().isOpen===!1&&(n.openOnFocus||i.getState().query)?Bo(_i({event:e,props:n,query:i.getState().query,refresh:r,store:i},o)).then(function(){i.dispatch(e.key,{nextActiveItemId:n.defaultActiveItemId}),a(),setTimeout(s,0)}):(i.dispatch(e.key,{}),a(),s())}else if(e.key==="Escape")e.preventDefault(),i.dispatch(e.key,null),i.pendingRequests.cancelAll();else if(e.key==="Tab")i.dispatch("blur",null),i.pendingRequests.cancelAll();else if(e.key==="Enter"){if(i.getState().activeItemId===null||i.getState().collections.every(function(d){return d.items.length===0})){n.debug||i.pendingRequests.cancelAll();return}e.preventDefault();var l=Qi(i.getState()),c=l.item,u=l.itemInputValue,f=l.itemUrl,h=l.source;if(e.metaKey||e.ctrlKey)f!==void 0&&(h.onSelect(_i({event:e,item:c,itemInputValue:u,itemUrl:f,refresh:r,source:h,state:i.getState()},o)),n.navigator.navigateNewTab({itemUrl:f,item:c,state:i.getState()}));else if(e.shiftKey)f!==void 0&&(h.onSelect(_i({event:e,item:c,itemInputValue:u,itemUrl:f,refresh:r,source:h,state:i.getState()},o)),n.navigator.navigateNewWindow({itemUrl:f,item:c,state:i.getState()}));else if(!e.altKey){if(f!==void 0){h.onSelect(_i({event:e,item:c,itemInputValue:u,itemUrl:f,refresh:r,source:h,state:i.getState()},o)),n.navigator.navigate({itemUrl:f,item:c,state:i.getState()});return}Bo(_i({event:e,nextState:{isOpen:!1},props:n,query:u,refresh:r,store:i},o)).then(function(){h.onSelect(_i({event:e,item:c,itemInputValue:u,itemUrl:f,refresh:r,source:h,state:i.getState()},o))})}}}function qa(t){"@babel/helpers - typeof";return qa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qa(t)}var V$=["props","refresh","store"],j$=["inputElement","formElement","panelElement"],N$=["inputElement"],L$=["inputElement","maxLength"],F$=["source"],D$=["item","source"];function Pb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function _t(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Pb(Object(n),!0).forEach(function(r){M$(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pb(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function M$(t,e,n){return e=k$(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function k$(t){var e=B$(t,"string");return qa(e)==="symbol"?e:String(e)}function B$(t,e){if(qa(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(qa(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function To(t,e){if(t==null)return{};var n=H$(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function H$(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function q$(t){var e=t.props,n=t.refresh,r=t.store,i=To(t,V$),o=function(p){var m=p.inputElement,g=p.formElement,v=p.panelElement,b=To(p,j$);function y(_){var A=r.getState().isOpen||!r.pendingRequests.isEmpty();if(!(!A||_.target===m)){var C=[g,v].some(function(x){return FR(x,_.target)});C===!1&&(r.dispatch("blur",null),e.debug||r.pendingRequests.cancelAll())}}return _t({onTouchStart:y,onMouseDown:y,onTouchMove:function(A){r.getState().isOpen===!1||m!==e.environment.document.activeElement||A.target===m||m.blur()}},b)},s=function(p){return _t({role:"combobox","aria-expanded":r.getState().isOpen,"aria-haspopup":"listbox","aria-owns":r.getState().isOpen?r.getState().collections.map(function(m){var g=m.source;return cn(e.id,"list",g)}).join(" "):void 0,"aria-labelledby":cn(e.id,"label")},p)},a=function(p){p.inputElement;var m=To(p,N$);return _t({action:"",noValidate:!0,role:"search",onSubmit:function(v){var b;v.preventDefault(),e.onSubmit(_t({event:v,refresh:n,state:r.getState()},i)),r.dispatch("submit",null),(b=p.inputElement)===null||b===void 0||b.blur()},onReset:function(v){var b;v.preventDefault(),e.onReset(_t({event:v,refresh:n,state:r.getState()},i)),r.dispatch("reset",null),(b=p.inputElement)===null||b===void 0||b.focus()}},m)},l=function(p){var m;function g(w){(e.openOnFocus||r.getState().query)&&Bo(_t({event:w,props:e,query:r.getState().completion||r.getState().query,refresh:n,store:r},i)),r.dispatch("focus",null)}var v=p||{};v.inputElement;var b=v.maxLength,y=b===void 0?512:b,_=To(v,L$),A=Qi(r.getState()),C=((m=e.environment.navigator)===null||m===void 0?void 0:m.userAgent)||"",x=MR(C),S=e.enterKeyHint||(A!=null&&A.itemUrl&&!x?"go":"search");return _t({"aria-autocomplete":"both","aria-activedescendant":r.getState().isOpen&&r.getState().activeItemId!==null?cn(e.id,"item-".concat(r.getState().activeItemId),A==null?void 0:A.source):void 0,"aria-controls":r.getState().isOpen?r.getState().collections.map(function(w){var O=w.source;return cn(e.id,"list",O)}).join(" "):void 0,"aria-labelledby":cn(e.id,"label"),value:r.getState().completion||r.getState().query,id:cn(e.id,"input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:S,spellCheck:"false",autoFocus:e.autoFocus,placeholder:e.placeholder,maxLength:y,type:"search",onChange:function(O){Bo(_t({event:O,props:e,query:O.currentTarget.value.slice(0,y),refresh:n,store:r},i))},onKeyDown:function(O){$$(_t({event:O,props:e,refresh:n,store:r},i))},onFocus:g,onBlur:pf,onClick:function(O){p.inputElement===e.environment.document.activeElement&&!r.getState().isOpen&&g(O)}},_)},c=function(p){return _t({htmlFor:cn(e.id,"input"),id:cn(e.id,"label")},p)},u=function(p){var m=p||{},g=m.source,v=To(m,F$);return _t({role:"listbox","aria-labelledby":cn(e.id,"label"),id:cn(e.id,"list",g)},v)},f=function(p){return _t({onMouseDown:function(g){g.preventDefault()},onMouseLeave:function(){r.dispatch("mouseleave",null)}},p)},h=function(p){var m=p.item,g=p.source,v=To(p,D$);return _t({id:cn(e.id,"item-".concat(m.__autocomplete_id),g),role:"option","aria-selected":r.getState().activeItemId===m.__autocomplete_id,onMouseMove:function(y){if(m.__autocomplete_id!==r.getState().activeItemId){r.dispatch("mousemove",m.__autocomplete_id);var _=Qi(r.getState());if(r.getState().activeItemId!==null&&_){var A=_.item,C=_.itemInputValue,x=_.itemUrl,S=_.source;S.onActive(_t({event:y,item:A,itemInputValue:C,itemUrl:x,refresh:n,source:S,state:r.getState()},i))}}},onMouseDown:function(y){y.preventDefault()},onClick:function(y){var _=g.getItemInputValue({item:m,state:r.getState()}),A=g.getItemUrl({item:m,state:r.getState()}),C=A?Promise.resolve():Bo(_t({event:y,nextState:{isOpen:!1},props:e,query:_,refresh:n,store:r},i));C.then(function(){g.onSelect(_t({event:y,item:m,itemInputValue:_,itemUrl:A,refresh:n,source:g,state:r.getState()},i))})}},v)};return{getEnvironmentProps:o,getRootProps:s,getFormProps:a,getLabelProps:c,getInputProps:l,getPanelProps:f,getListProps:u,getItemProps:h}}function Wa(t){"@babel/helpers - typeof";return Wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wa(t)}function xb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function W$(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?xb(Object(n),!0).forEach(function(r){GA(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xb(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function GA(t,e,n){return e=U$(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function U$(t){var e=Q$(t,"string");return Wa(e)==="symbol"?e:String(e)}function Q$(t,e){if(Wa(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Wa(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function z$(t){var e,n,r,i,o=t.plugins,s=t.options,a=(e=(((n=s.__autocomplete_metadata)===null||n===void 0?void 0:n.userAgents)||[])[0])===null||e===void 0?void 0:e.segment,l=a?GA({},a,Object.keys(((r=s.__autocomplete_metadata)===null||r===void 0?void 0:r.options)||{})):{};return{plugins:o.map(function(c){return{name:c.name,options:Object.keys(c.__autocomplete_pluginOptions||[])}}),options:W$({"autocomplete-core":Object.keys(s)},l),ua:WA.concat(((i=s.__autocomplete_metadata)===null||i===void 0?void 0:i.userAgents)||[])}}function K$(t){var e,n,r=t.metadata,i=t.environment,o=(e=i.navigator)===null||e===void 0||(n=e.userAgent)===null||n===void 0?void 0:n.includes("Algolia Crawler");if(o){var s=i.document.createElement("meta"),a=i.document.querySelector("head");s.name="algolia:metadata",setTimeout(function(){s.content=JSON.stringify(r),a.appendChild(s)},0)}}function Cb(t){var e,n=t.state;return n.isOpen===!1||n.activeItemId===null?null:((e=Qi(n))===null||e===void 0?void 0:e.itemInputValue)||null}function Ua(t){"@babel/helpers - typeof";return Ua=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ua(t)}function Tb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Oe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Tb(Object(n),!0).forEach(function(r){G$(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tb(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function G$(t,e,n){return e=Y$(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Y$(t){var e=J$(t,"string");return Ua(e)==="symbol"?e:String(e)}function J$(t,e){if(Ua(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ua(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Z$=function(e,n){switch(n.type){case"setActiveItemId":return Oe(Oe({},e),{},{activeItemId:n.payload});case"setQuery":return Oe(Oe({},e),{},{query:n.payload,completion:null});case"setCollections":return Oe(Oe({},e),{},{collections:n.payload});case"setIsOpen":return Oe(Oe({},e),{},{isOpen:n.payload});case"setStatus":return Oe(Oe({},e),{},{status:n.payload});case"setContext":return Oe(Oe({},e),{},{context:Oe(Oe({},e.context),n.payload)});case"ArrowDown":{var r=Oe(Oe({},e),{},{activeItemId:n.payload.hasOwnProperty("nextActiveItemId")?n.payload.nextActiveItemId:mb(1,e.activeItemId,$a(e),n.props.defaultActiveItemId)});return Oe(Oe({},r),{},{completion:Cb({state:r})})}case"ArrowUp":{var i=Oe(Oe({},e),{},{activeItemId:mb(-1,e.activeItemId,$a(e),n.props.defaultActiveItemId)});return Oe(Oe({},i),{},{completion:Cb({state:i})})}case"Escape":return e.isOpen?Oe(Oe({},e),{},{activeItemId:null,isOpen:!1,completion:null}):Oe(Oe({},e),{},{activeItemId:null,query:"",status:"idle",collections:[]});case"submit":return Oe(Oe({},e),{},{activeItemId:null,isOpen:!1,status:"idle"});case"reset":return Oe(Oe({},e),{},{activeItemId:n.props.openOnFocus===!0?n.props.defaultActiveItemId:null,status:"idle",completion:null,query:""});case"focus":return Oe(Oe({},e),{},{activeItemId:n.props.defaultActiveItemId,isOpen:(n.props.openOnFocus||!!e.query)&&n.props.shouldPanelOpen({state:e})});case"blur":return n.props.debug?e:Oe(Oe({},e),{},{isOpen:!1,activeItemId:null});case"mousemove":return Oe(Oe({},e),{},{activeItemId:n.payload});case"mouseleave":return Oe(Oe({},e),{},{activeItemId:n.props.defaultActiveItemId});default:return"The reducer action ".concat(JSON.stringify(n.type)," is not supported."),e}};function Qa(t){"@babel/helpers - typeof";return Qa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qa(t)}function Ib(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Si(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ib(Object(n),!0).forEach(function(r){X$(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ib(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function X$(t,e,n){return e=eV(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function eV(t){var e=tV(t,"string");return Qa(e)==="symbol"?e:String(e)}function tV(t,e){if(Qa(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Qa(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function nV(t){var e=[],n=i$(t,e),r=UR(Z$,n,s),i=GR({store:r}),o=q$(Si({props:n,refresh:a,store:r,navigator:n.navigator},i));function s(f){var h,d,p=f.prevState,m=f.state;if(n.onStateChange(Si({prevState:p,state:m,refresh:a,navigator:n.navigator},i)),!c()&&(h=m.context)!==null&&h!==void 0&&(d=h.algoliaInsightsPlugin)!==null&&d!==void 0&&d.__automaticInsights&&n.insights!==!1){var g=db({__autocomplete_clickAnalytics:!1});n.plugins.push(g),l([g])}}function a(){return Bo(Si({event:new Event("input"),nextState:{isOpen:r.getState().isOpen},props:n,navigator:n.navigator,query:r.getState().query,refresh:a,store:r},i))}function l(f){f.forEach(function(h){var d;return(d=h.subscribe)===null||d===void 0?void 0:d.call(h,Si(Si({},i),{},{navigator:n.navigator,refresh:a,onSelect:function(m){e.push({onSelect:m})},onActive:function(m){e.push({onActive:m})},onResolve:function(m){e.push({onResolve:m})}}))})}function c(){return n.plugins.some(function(f){return f.name==="aa.algoliaInsightsPlugin"})}if(n.insights&&!c()){var u=typeof n.insights=="boolean"?{}:n.insights;n.plugins.push(db(u))}return l(n.plugins),K$({metadata:z$({plugins:n.plugins,options:t}),environment:n.environment}),Si(Si({refresh:a,navigator:n.navigator},o),i)}var YA=function(t,e,n,r){var i;e[0]=0;for(var o=1;o<e.length;o++){var s=e[o++],a=e[o]?(e[0]|=s?1:2,n[e[o++]]):e[++o];s===3?r[0]=a:s===4?r[1]=Object.assign(r[1]||{},a):s===5?(r[1]=r[1]||{})[e[++o]]=a:s===6?r[1][e[++o]]+=a+"":s?(i=t.apply(a,YA(t,a,n,["",null])),r.push(i),a[0]?e[0]|=2:(e[o-2]=0,e[o]=i)):r.push(a)}return r},Rb=new Map;function JA(t){var e=Rb.get(this);return e||(e=new Map,Rb.set(this,e)),(e=YA(this,e.get(t)||(e.set(t,e=function(n){for(var r,i,o=1,s="",a="",l=[0],c=function(h){o===1&&(h||(s=s.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?l.push(0,h,s):o===3&&(h||s)?(l.push(3,h,s),o=2):o===2&&s==="..."&&h?l.push(4,h,0):o===2&&s&&!h?l.push(5,0,!0,s):o>=5&&((s||!h&&o===5)&&(l.push(o,0,s,i),o=6),h&&(l.push(o,h,0,i),o=6)),s=""},u=0;u<n.length;u++){u&&(o===1&&c(),c(u));for(var f=0;f<n[u].length;f++)r=n[u][f],o===1?r==="<"?(c(),l=[l],o=3):s+=r:o===4?s==="--"&&r===">"?(o=1,s=""):s=r+s[0]:a?r===a?a="":s+=r:r==='"'||r==="'"?a=r:r===">"?(c(),o=1):o&&(r==="="?(o=5,i=s,s=""):r==="/"&&(o<5||n[u][f+1]===">")?(c(),o===3&&(l=l[0]),o=l,(l=l[0]).push(2,0,o),o=0):r===" "||r===" "||r===` `||r==="\r"?(c(),o=2):s+=r),o===3&&s==="!--"&&(o=4,l=l[0])}return c(),l}(t)),e),arguments,[])).length>1?e:e[0]}var rV=function(e){var n=e.environment,r=n.document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("class","aa-ClearIcon"),r.setAttribute("viewBox","0 0 24 24"),r.setAttribute("width","18"),r.setAttribute("height","18"),r.setAttribute("fill","currentColor");var i=n.document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("d","M5.293 6.707l5.293 5.293-5.293 5.293c-0.391 0.391-0.391 1.024 0 1.414s1.024 0.391 1.414 0l5.293-5.293 5.293 5.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-5.293-5.293 5.293-5.293c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-5.293 5.293-5.293-5.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z"),r.appendChild(i),r};function $b(t,e){if(typeof e=="string"){var n=t.document.querySelector(e);return"The element ".concat(JSON.stringify(e)," is not in the document."),n}return e}function iV(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce(function(r,i){return Object.keys(i).forEach(function(o){var s=r[o],a=i[o];s!==a&&(r[o]=[s,a].filter(Boolean).join(" "))}),r},{})}function oV(t){return cV(t)||lV(t)||aV(t)||sV()}function sV(){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 aV(t,e){if(t){if(typeof t=="string")return $p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $p(t,e)}}function lV(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function cV(t){if(Array.isArray(t))return $p(t)}function $p(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Vp(t){"@babel/helpers - typeof";return Vp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vp(t)}var Vb=function(e){return e&&Vp(e)==="object"&&Object.prototype.toString.call(e)==="[object Object]"};function ZA(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce(function(r,i){return Object.keys(i).forEach(function(o){var s=r[o],a=i[o];Array.isArray(s)&&Array.isArray(a)?r[o]=s.concat.apply(s,oV(a)):Vb(s)&&Vb(a)?r[o]=ZA(s,a):r[o]=a}),r},{})}function za(t){"@babel/helpers - typeof";return za=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},za(t)}function jb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Nb(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?jb(Object(n),!0).forEach(function(r){XA(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jb(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function XA(t,e,n){return e=uV(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function uV(t){var e=fV(t,"string");return za(e)==="symbol"?e:String(e)}function fV(t,e){if(za(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(za(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function dV(t,e){return gV(t)||mV(t,e)||pV(t,e)||hV()}function hV(){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 pV(t,e){if(t){if(typeof t=="string")return Lb(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lb(t,e)}}function Lb(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function mV(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==e);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}function gV(t){if(Array.isArray(t))return t}function vV(t,e){return Object.entries(t).reduce(function(n,r){var i=dV(r,2),o=i[0],s=i[1];return e({key:o,value:s})?Nb(Nb({},n),{},XA({},o,s)):n},{})}var yV=["ontouchstart","ontouchend","ontouchmove","ontouchcancel"];function bV(t,e,n){n===null?t[e]="":typeof n!="number"?t[e]=n:t[e]=n+"px"}function Fb(t){this._listeners[t.type](t)}function e1(t,e,n){var r,i,o=t[e];if(e==="style")if(typeof n=="string")t.style=n;else if(n===null)t.style="";else for(e in n)(!o||n[e]!==o[e])&&bV(t.style,e,n[e]);else e[0]==="o"&&e[1]==="n"?(r=e!==(e=e.replace(/Capture$/,"")),i=e.toLowerCase(),(i in t||yV.includes(i))&&(e=i),e=e.slice(2),t._listeners||(t._listeners={}),t._listeners[e]=n,n?o||t.addEventListener(e,Fb,r):t.removeEventListener(e,Fb,r)):e!=="list"&&e!=="tagName"&&e!=="form"&&e!=="type"&&e!=="size"&&e!=="download"&&e!=="href"&&e in t?t[e]=n??"":typeof n!="function"&&e!=="dangerouslySetInnerHTML"&&(n==null||n===!1&&!/^ar/.test(e)?t.removeAttribute(e):t.setAttribute(e,n))}function t1(t){switch(t){case"onChange":return"onInput";default:return t}}function Wn(t,e){for(var n in e)e1(t,t1(n),e[n])}function Db(t,e){for(var n in e)n[0]==="o"&&n[1]==="n"||e1(t,t1(n),e[n])}var _V=["children"];function SV(t){return EV(t)||OV(t)||AV(t)||wV()}function wV(){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 AV(t,e){if(t){if(typeof t=="string")return jp(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jp(t,e)}}function OV(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function EV(t){if(Array.isArray(t))return jp(t)}function jp(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function PV(t,e){if(t==null)return{};var n=xV(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function xV(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function n1(t){return function(n,r){var i=r.children,o=i===void 0?[]:i,s=PV(r,_V),a=t.document.createElement(n);return Wn(a,s),a.append.apply(a,SV(o)),a}}function Ka(t){"@babel/helpers - typeof";return Ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ka(t)}var CV=["autocompleteScopeApi","environment","classNames","getInputProps","getInputPropsCore","isDetached","state"];function Mb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function bh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Mb(Object(n),!0).forEach(function(r){TV(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mb(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function TV(t,e,n){return e=IV(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function IV(t){var e=RV(t,"string");return Ka(e)==="symbol"?e:String(e)}function RV(t,e){if(Ka(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ka(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function $V(t,e){if(t==null)return{};var n=VV(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function VV(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var jV=function(e){var n=e.autocompleteScopeApi,r=e.environment;e.classNames;var i=e.getInputProps,o=e.getInputPropsCore,s=e.isDetached,a=e.state,l=$V(e,CV),c=n1(r),u=c("input",l),f=i(bh({state:a,props:o({inputElement:u}),inputElement:u},n));return Wn(u,bh(bh({},f),{},{onKeyDown:function(d){s&&d.key==="Tab"||f.onKeyDown(d)}})),u},NV=function(e){var n=e.environment,r=n.document.createElementNS("http://www.w3.org/2000/svg","svg");return r.setAttribute("class","aa-LoadingIcon"),r.setAttribute("viewBox","0 0 100 100"),r.setAttribute("width","20"),r.setAttribute("height","20"),r.innerHTML=`<circle cx="50" cy="50" fill="none" r="35" stroke="currentColor" stroke-dasharray="164.93361431346415 56.97787143782138" stroke-width="6" > <animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 50 50;90 50 50;180 50 50;360 50 50" keyTimes="0;0.40;0.65;1" /> </circle>`,r},kb=function(e){var n=e.environment,r=n.document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("class","aa-SubmitIcon"),r.setAttribute("viewBox","0 0 24 24"),r.setAttribute("width","20"),r.setAttribute("height","20"),r.setAttribute("fill","currentColor");var i=n.document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("d","M16.041 15.856c-0.034 0.026-0.067 0.055-0.099 0.087s-0.060 0.064-0.087 0.099c-1.258 1.213-2.969 1.958-4.855 1.958-1.933 0-3.682-0.782-4.95-2.050s-2.050-3.017-2.050-4.95 0.782-3.682 2.050-4.95 3.017-2.050 4.95-2.050 3.682 0.782 4.95 2.050 2.050 3.017 2.050 4.95c0 1.886-0.745 3.597-1.959 4.856zM21.707 20.293l-3.675-3.675c1.231-1.54 1.968-3.493 1.968-5.618 0-2.485-1.008-4.736-2.636-6.364s-3.879-2.636-6.364-2.636-4.736 1.008-6.364 2.636-2.636 3.879-2.636 6.364 1.008 4.736 2.636 6.364 3.879 2.636 6.364 2.636c2.125 0 4.078-0.737 5.618-1.968l3.675 3.675c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414z"),r.appendChild(i),r};function Ga(t){"@babel/helpers - typeof";return Ga=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ga(t)}function Bb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Tr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Bb(Object(n),!0).forEach(function(r){LV(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bb(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function LV(t,e,n){return e=FV(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function FV(t){var e=DV(t,"string");return Ga(e)==="symbol"?e:String(e)}function DV(t,e){if(Ga(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ga(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function MV(t){var e=t.autocomplete,n=t.autocompleteScopeApi,r=t.classNames,i=t.environment,o=t.isDetached,s=t.placeholder,a=s===void 0?"Search":s,l=t.propGetters,c=t.setIsModalOpen,u=t.state,f=t.translations,h=n1(i),d=l.getRootProps(Tr({state:u,props:e.getRootProps({})},n)),p=h("div",Tr({class:r.root},d)),m=h("div",{class:r.detachedContainer,onMouseDown:function(te){te.stopPropagation()}}),g=h("div",{class:r.detachedOverlay,children:[m],onMouseDown:function(){c(!1),e.setIsOpen(!1)}}),v=l.getLabelProps(Tr({state:u,props:e.getLabelProps({})},n)),b=h("button",{class:r.submitButton,type:"submit",title:f.submitButtonTitle,children:[kb({environment:i})]}),y=h("label",Tr({class:r.label,children:[b]},v)),_=h("button",{class:r.clearButton,type:"reset",title:f.clearButtonTitle,children:[rV({environment:i})]}),A=h("div",{class:r.loadingIndicator,children:[NV({environment:i})]}),C=jV({class:r.input,environment:i,state:u,getInputProps:l.getInputProps,getInputPropsCore:e.getInputProps,autocompleteScopeApi:n,isDetached:o}),x=h("div",{class:r.inputWrapperPrefix,children:[y,A]}),S=h("div",{class:r.inputWrapperSuffix,children:[_]}),w=h("div",{class:r.inputWrapper,children:[C]}),O=l.getFormProps(Tr({state:u,props:e.getFormProps({inputElement:C})},n)),P=h("form",Tr({class:r.form,children:[x,w,S]},O)),T=l.getPanelProps(Tr({state:u,props:e.getPanelProps({})},n)),R=h("div",Tr({class:r.panel},T)),M=h("div",{class:r.detachedSearchButtonQuery,textContent:u.query}),k=h("div",{class:r.detachedSearchButtonPlaceholder,hidden:!!u.query,textContent:a});if(o){var B=h("div",{class:r.detachedSearchButtonIcon,children:[kb({environment:i})]}),z=h("button",{type:"button",class:r.detachedSearchButton,onClick:function(){c(!0)},children:[B,k,M]}),Q=h("button",{type:"button",class:r.detachedCancelButton,textContent:f.detachedCancelButtonText,onTouchStart:function(te){te.stopPropagation()},onClick:function(){e.setIsOpen(!1),c(!1)}}),G=h("div",{class:r.detachedFormContainer,children:[P,Q]});m.appendChild(G),p.appendChild(z)}else p.appendChild(P);return{detachedContainer:m,detachedOverlay:g,detachedSearchButtonQuery:M,detachedSearchButtonPlaceholder:k,inputWrapper:w,input:C,root:p,form:P,label:y,submitButton:b,clearButton:_,loadingIndicator:A,panel:R}}function kV(){var t=[],e=[];function n(r){t.push(r);var i=r();e.push(i)}return{runEffect:n,cleanupEffects:function(){var i=e;e=[],i.forEach(function(o){o()})},runEffects:function(){var i=t;t=[],i.forEach(function(o){n(o)})}}}function BV(){var t=[];return{reactive:function(n){var r=n(),i={_fn:n,_ref:{current:r},get value(){return this._ref.current},set value(o){this._ref.current=o}};return t.push(i),i},runReactives:function(){t.forEach(function(n){n._ref.current=n._fn()})}}}var ud,We,r1,$i,Hb,i1,Np,Ya={},o1=[],HV=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,xg=Array.isArray;function Qr(t,e){for(var n in e)t[n]=e[n];return t}function s1(t){var e=t.parentNode;e&&e.removeChild(t)}function me(t,e,n){var r,i,o,s={};for(o in e)o=="key"?r=e[o]:o=="ref"?i=e[o]:s[o]=e[o];if(arguments.length>2&&(s.children=arguments.length>3?ud.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(o in t.defaultProps)s[o]===void 0&&(s[o]=t.defaultProps[o]);return Uu(t,s,r,i,null)}function Uu(t,e,n,r,i){var o={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++r1,__i:-1,__u:0};return i==null&&We.vnode!=null&&We.vnode(o),o}function qV(){return{current:null}}function Cs(t){return t.children}function Ho(t,e){this.props=t,this.context=e}function ts(t,e){if(e==null)return t.__?ts(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?ts(t):null}function a1(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return a1(t)}}function qb(t){(!t.__d&&(t.__d=!0)&&$i.push(t)&&!mf.__r++||Hb!==We.debounceRendering)&&((Hb=We.debounceRendering)||i1)(mf)}function mf(){var t,e,n,r,i,o,s,a,l;for($i.sort(Np);t=$i.shift();)t.__d&&(e=$i.length,r=void 0,o=(i=(n=t).__v).__e,a=[],l=[],(s=n.__P)&&((r=Qr({},i)).__v=i.__v+1,We.vnode&&We.vnode(r),Cg(s,r,i,n.__n,s.ownerSVGElement!==void 0,32&i.__u?[o]:null,a,o??ts(i),!!(32&i.__u),l),r.__.__k[r.__i]=r,u1(a,r,l),r.__e!=o&&a1(r)),$i.length>e&&$i.sort(Np));mf.__r=0}function l1(t,e,n,r,i,o,s,a,l,c,u){var f,h,d,p,m,g=r&&r.__k||o1,v=e.length;for(n.__d=l,WV(n,e,g),l=n.__d,f=0;f<v;f++)(d=n.__k[f])!=null&&typeof d!="boolean"&&typeof d!="function"&&(h=d.__i===-1?Ya:g[d.__i]||Ya,d.__i=f,Cg(t,d,h,i,o,s,a,l,c,u),p=d.__e,d.ref&&h.ref!=d.ref&&(h.ref&&Tg(h.ref,null,d),u.push(d.ref,d.__c||p,d)),m==null&&p!=null&&(m=p),65536&d.__u||h.__k===d.__k?l=c1(d,l,t):typeof d.type=="function"&&d.__d!==void 0?l=d.__d:p&&(l=p.nextSibling),d.__d=void 0,d.__u&=-196609);n.__d=l,n.__e=m}function WV(t,e,n){var r,i,o,s,a,l=e.length,c=n.length,u=c,f=0;for(t.__k=[],r=0;r<l;r++)(i=t.__k[r]=(i=e[r])==null||typeof i=="boolean"||typeof i=="function"?null:typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?Uu(null,i,null,null,i):xg(i)?Uu(Cs,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?Uu(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)!=null?(i.__=t,i.__b=t.__b+1,a=UV(i,n,s=r+f,u),i.__i=a,o=null,a!==-1&&(u--,(o=n[a])&&(o.__u|=131072)),o==null||o.__v===null?(a==-1&&f--,typeof i.type!="function"&&(i.__u|=65536)):a!==s&&(a===s+1?f++:a>s?u>l-s?f+=a-s:f--:f=a<s&&a==s-1?a-s:0,a!==r+f&&(i.__u|=65536))):(o=n[r])&&o.key==null&&o.__e&&(o.__e==t.__d&&(t.__d=ts(o)),Lp(o,o,!1),n[r]=null,u--);if(u)for(r=0;r<c;r++)(o=n[r])!=null&&!(131072&o.__u)&&(o.__e==t.__d&&(t.__d=ts(o)),Lp(o,o))}function c1(t,e,n){var r,i;if(typeof t.type=="function"){for(r=t.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=t,e=c1(r[i],e,n));return e}return t.__e!=e&&(n.insertBefore(t.__e,e||null),e=t.__e),e&&e.nextSibling}function UV(t,e,n,r){var i=t.key,o=t.type,s=n-1,a=n+1,l=e[n];if(l===null||l&&i==l.key&&o===l.type)return n;if(r>(l!=null&&!(131072&l.__u)?1:0))for(;s>=0||a<e.length;){if(s>=0){if((l=e[s])&&!(131072&l.__u)&&i==l.key&&o===l.type)return s;s--}if(a<e.length){if((l=e[a])&&!(131072&l.__u)&&i==l.key&&o===l.type)return a;a++}}return-1}function Wb(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||HV.test(e)?n:n+"px"}function gu(t,e,n,r,i){var o;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||Wb(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||Wb(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")o=e!==(e=e.replace(/(PointerCapture)$|Capture$/,"$1")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=n,n?r?n.u=r.u:(n.u=Date.now(),t.addEventListener(e,o?Qb:Ub,o)):t.removeEventListener(e,o?Qb:Ub,o);else{if(i)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e!=="rowSpan"&&e!=="colSpan"&&e!=="role"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e[4]!=="-"?t.removeAttribute(e):t.setAttribute(e,n))}}function Ub(t){var e=this.l[t.type+!1];if(t.t){if(t.t<=e.u)return}else t.t=Date.now();return e(We.event?We.event(t):t)}function Qb(t){return this.l[t.type+!0](We.event?We.event(t):t)}function Cg(t,e,n,r,i,o,s,a,l,c){var u,f,h,d,p,m,g,v,b,y,_,A,C,x,S,w=e.type;if(e.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=e.__e=n.__e]),(u=We.__b)&&u(e);e:if(typeof w=="function")try{if(v=e.props,b=(u=w.contextType)&&r[u.__c],y=u?b?b.props.value:u.__:r,n.__c?g=(f=e.__c=n.__c).__=f.__E:("prototype"in w&&w.prototype.render?e.__c=f=new w(v,y):(e.__c=f=new Ho(v,y),f.constructor=w,f.render=zV),b&&b.sub(f),f.props=v,f.state||(f.state={}),f.context=y,f.__n=r,h=f.__d=!0,f.__h=[],f._sb=[]),f.__s==null&&(f.__s=f.state),w.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=Qr({},f.__s)),Qr(f.__s,w.getDerivedStateFromProps(v,f.__s))),d=f.props,p=f.state,f.__v=e,h)w.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(w.getDerivedStateFromProps==null&&v!==d&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(v,y),!f.__e&&(f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(v,f.__s,y)===!1||e.__v===n.__v)){for(e.__v!==n.__v&&(f.props=v,f.state=f.__s,f.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(O){O&&(O.__=e)}),_=0;_<f._sb.length;_++)f.__h.push(f._sb[_]);f._sb=[],f.__h.length&&s.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(v,f.__s,y),f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(d,p,m)})}if(f.context=y,f.props=v,f.__P=t,f.__e=!1,A=We.__r,C=0,"prototype"in w&&w.prototype.render){for(f.state=f.__s,f.__d=!1,A&&A(e),u=f.render(f.props,f.state,f.context),x=0;x<f._sb.length;x++)f.__h.push(f._sb[x]);f._sb=[]}else do f.__d=!1,A&&A(e),u=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++C<25);f.state=f.__s,f.getChildContext!=null&&(r=Qr(Qr({},r),f.getChildContext())),h||f.getSnapshotBeforeUpdate==null||(m=f.getSnapshotBeforeUpdate(d,p)),l1(t,xg(S=u!=null&&u.type===Cs&&u.key==null?u.props.children:u)?S:[S],e,n,r,i,o,s,a,l,c),f.base=e.__e,e.__u&=-161,f.__h.length&&s.push(f),g&&(f.__E=f.__=null)}catch(O){e.__v=null,l||o!=null?(e.__e=a,e.__u|=l?160:32,o[o.indexOf(a)]=null):(e.__e=n.__e,e.__k=n.__k),We.__e(O,e,n)}else o==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=QV(n.__e,e,n,r,i,o,s,l,c);(u=We.diffed)&&u(e)}function u1(t,e,n){e.__d=void 0;for(var r=0;r<n.length;r++)Tg(n[r],n[++r],n[++r]);We.__c&&We.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(o){o.call(i)})}catch(o){We.__e(o,i.__v)}})}function QV(t,e,n,r,i,o,s,a,l){var c,u,f,h,d,p,m,g=n.props,v=e.props,b=e.type;if(b==="svg"&&(i=!0),o!=null){for(c=0;c<o.length;c++)if((d=o[c])&&"setAttribute"in d==!!b&&(b?d.localName===b:d.nodeType===3)){t=d,o[c]=null;break}}if(t==null){if(b===null)return document.createTextNode(v);t=i?document.createElementNS("http://www.w3.org/2000/svg",b):document.createElement(b,v.is&&v),o=null,a=!1}if(b===null)g===v||a&&t.data===v||(t.data=v);else{if(o=o&&ud.call(t.childNodes),g=n.props||Ya,!a&&o!=null)for(g={},c=0;c<t.attributes.length;c++)g[(d=t.attributes[c]).name]=d.value;for(c in g)d=g[c],c=="children"||(c=="dangerouslySetInnerHTML"?f=d:c==="key"||c in v||gu(t,c,null,d,i));for(c in v)d=v[c],c=="children"?h=d:c=="dangerouslySetInnerHTML"?u=d:c=="value"?p=d:c=="checked"?m=d:c==="key"||a&&typeof d!="function"||g[c]===d||gu(t,c,d,g[c],i);if(u)a||f&&(u.__html===f.__html||u.__html===t.innerHTML)||(t.innerHTML=u.__html),e.__k=[];else if(f&&(t.innerHTML=""),l1(t,xg(h)?h:[h],e,n,r,i&&b!=="foreignObject",o,s,o?o[0]:n.__k&&ts(n,0),a,l),o!=null)for(c=o.length;c--;)o[c]!=null&&s1(o[c]);a||(c="value",p!==void 0&&(p!==t[c]||b==="progress"&&!p||b==="option"&&p!==g[c])&&gu(t,c,p,g[c],!1),c="checked",m!==void 0&&m!==t[c]&&gu(t,c,m,g[c],!1))}return t}function Tg(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(r){We.__e(r,n)}}function Lp(t,e,n){var r,i;if(We.unmount&&We.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||Tg(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){We.__e(o,e)}r.base=r.__P=null,t.__c=void 0}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&Lp(r[i],e,n||typeof t.type!="function");n||t.__e==null||s1(t.__e),t.__=t.__e=t.__d=void 0}function zV(t,e,n){return this.constructor(t,n)}function Or(t,e,n){var r,i,o,s;We.__&&We.__(t,e),i=(r=typeof n=="function")?null:n&&n.__k||e.__k,o=[],s=[],Cg(e,t=(!r&&n||e).__k=me(Cs,null,[t]),i||Ya,Ya,e.ownerSVGElement!==void 0,!r&&n?[n]:i?null:e.firstChild?ud.call(e.childNodes):null,o,!r&&n?n:i?i.__e:e.firstChild,r,s),u1(o,t,s)}ud=o1.slice,We={__e:function(t,e,n,r){for(var i,o,s;e=e.__;)if((i=e.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(t)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,r||{}),s=i.__d),s)return i.__E=i}catch(a){t=a}throw t}},r1=0,Ho.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Qr({},this.state),typeof t=="function"&&(t=t(Qr({},n),this.props)),t&&Qr(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),qb(this))},Ho.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),qb(this))},Ho.prototype.render=Cs,$i=[],i1=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Np=function(t,e){return t.__v.__b-e.__v.__b},mf.__r=0;var f1="__aa-highlight__",d1="__/aa-highlight__";function KV(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=t;return{get:function(){return e},add:function(r){var i=e[e.length-1];(i==null?void 0:i.isHighlighted)===r.isHighlighted?e[e.length-1]={value:i.value+r.value,isHighlighted:i.isHighlighted}:e.push(r)}}}function h1(t){var e=t.highlightedValue,n=e.split(f1),r=n.shift(),i=KV(r?[{value:r,isHighlighted:!1}]:[]);return n.forEach(function(o){var s=o.split(d1);i.add({value:s[0],isHighlighted:!0}),s[1]!==""&&i.add({value:s[1],isHighlighted:!1})}),i.get()}function GV(t){return XV(t)||ZV(t)||JV(t)||YV()}function YV(){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 JV(t,e){if(t){if(typeof t=="string")return Fp(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fp(t,e)}}function ZV(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function XV(t){if(Array.isArray(t))return Fp(t)}function Fp(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function p1(t){var e=t.hit,n=t.attribute,r=Array.isArray(n)?n:[n],i=hf(e,["_highlightResult"].concat(GV(r),["value"]));return typeof i!="string"&&(i=hf(e,r)||""),h1({highlightedValue:i})}var ej={"&":"&","<":"<",">":">",""":'"',"'":"'"},tj=new RegExp(/\w/i),m1=/&(amp|quot|lt|gt|#39);/g,nj=RegExp(m1.source);function rj(t){return t&&nj.test(t)?t.replace(m1,function(e){return ej[e]}):t}function ij(t,e){var n,r,i=t[e],o=((n=t[e+1])===null||n===void 0?void 0:n.isHighlighted)||!0,s=((r=t[e-1])===null||r===void 0?void 0:r.isHighlighted)||!0;return!tj.test(rj(i.value))&&s===o?s:i.isHighlighted}function Ja(t){"@babel/helpers - typeof";return Ja=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ja(t)}function zb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function vu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?zb(Object(n),!0).forEach(function(r){oj(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zb(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function oj(t,e,n){return e=sj(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sj(t){var e=aj(t,"string");return Ja(e)==="symbol"?e:String(e)}function aj(t,e){if(Ja(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ja(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function g1(t){return t.some(function(e){return e.isHighlighted})?t.map(function(e,n){return vu(vu({},e),{},{isHighlighted:!ij(t,n)})}):t.map(function(e){return vu(vu({},e),{},{isHighlighted:!1})})}function lj(t){return g1(p1(t))}function cj(t){return hj(t)||dj(t)||fj(t)||uj()}function uj(){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 fj(t,e){if(t){if(typeof t=="string")return Dp(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dp(t,e)}}function dj(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function hj(t){if(Array.isArray(t))return Dp(t)}function Dp(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function v1(t){var e=t.hit,n=t.attribute,r=Array.isArray(n)?n:[n],i=hf(e,["_snippetResult"].concat(cj(r),["value"]));return typeof i!="string"&&(i=hf(e,r)||""),h1({highlightedValue:i})}function pj(t){return g1(v1(t))}function Za(t){"@babel/helpers - typeof";return Za=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Za(t)}function Kb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Gb(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Kb(Object(n),!0).forEach(function(r){mj(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kb(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function mj(t,e,n){return e=gj(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gj(t){var e=vj(t,"string");return Za(e)==="symbol"?e:String(e)}function vj(t,e){if(Za(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Za(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function yj(t,e){function n(r){return t({searchClient:r.searchClient,queries:r.requests.map(function(i){return i.query})}).then(function(i){return i.map(function(o,s){var a=r.requests[s],l=a.sourceId,c=a.transformResponse;return{items:o,sourceId:l,transformResponse:c}})})}return function(i){return function(s){return Gb(Gb({requesterId:e,execute:n},i),s)}}}function bj(t){var e=t.transporter||{},n=e.headers,r=n===void 0?{}:n,i=e.queryParameters,o=i===void 0?{}:i,s="x-algolia-application-id",a="x-algolia-api-key",l=r[s]||o[s],c=r[a]||o[a];return{appId:l,apiKey:c}}function Xa(t){"@babel/helpers - typeof";return Xa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xa(t)}var _j=["params"];function Yb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function wi(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Yb(Object(n),!0).forEach(function(r){Sj(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yb(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Sj(t,e,n){return e=wj(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wj(t){var e=Aj(t,"string");return Xa(e)==="symbol"?e:String(e)}function Aj(t,e){if(Xa(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Xa(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Oj(t,e){if(t==null)return{};var n=Ej(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Ej(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function Jb(t){return Tj(t)||Cj(t)||xj(t)||Pj()}function Pj(){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 xj(t,e){if(t){if(typeof t=="string")return Mp(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mp(t,e)}}function Cj(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Tj(t){if(Array.isArray(t))return Mp(t)}function Mp(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ij(t){var e=t.searchClient,n=t.queries,r=t.userAgents,i=r===void 0?[]:r;if(typeof e.addAlgoliaAgent=="function"){var o=[].concat(Jb(WA),Jb(i));o.forEach(function(c){var u=c.segment,f=c.version;e.addAlgoliaAgent(u,f)})}var s=bj(e),a=s.appId,l=s.apiKey;return e.search(n.map(function(c){var u=c.params,f=Oj(c,_j);return wi(wi({},f),{},{params:wi({hitsPerPage:5,highlightPreTag:f1,highlightPostTag:d1},u)})})).then(function(c){return c.results.map(function(u,f){var h;return wi(wi({},u),{},{hits:(h=u.hits)===null||h===void 0?void 0:h.map(function(d){return wi(wi({},d),{},{__autocomplete_indexName:u.index||n[f].indexName,__autocomplete_queryID:u.queryID,__autocomplete_algoliaCredentials:{appId:a,apiKey:l}})})})})})}function Rj(t){var e=t.createElement,n=t.Fragment;function r(i){var o=i.hit,s=i.attribute,a=i.tagName,l=a===void 0?"mark":a;return e(n,{},p1({hit:o,attribute:s}).map(function(c,u){return c.isHighlighted?e(l,{key:u},c.value):c.value}))}return r.__autocomplete_componentName="Highlight",r}function $j(t){var e=t.createElement,n=t.Fragment;function r(i){var o=i.hit,s=i.attribute,a=i.tagName,l=a===void 0?"mark":a;return e(n,{},lj({hit:o,attribute:s}).map(function(c,u){return c.isHighlighted?e(l,{key:u},c.value):c.value}))}return r.__autocomplete_componentName="ReverseHighlight",r}function Vj(t){var e=t.createElement,n=t.Fragment;function r(i){var o=i.hit,s=i.attribute,a=i.tagName,l=a===void 0?"mark":a;return e(n,{},pj({hit:o,attribute:s}).map(function(c,u){return c.isHighlighted?e(l,{key:u},c.value):c.value}))}return r.__autocomplete_componentName="ReverseSnippet",r}function jj(t){var e=t.createElement,n=t.Fragment;function r(i){var o=i.hit,s=i.attribute,a=i.tagName,l=a===void 0?"mark":a;return e(n,{},v1({hit:o,attribute:s}).map(function(c,u){return c.isHighlighted?e(l,{key:u},c.value):c.value}))}return r.__autocomplete_componentName="Snippet",r}function el(t){"@babel/helpers - typeof";return el=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},el(t)}var Nj=["classNames","container","getEnvironmentProps","getFormProps","getInputProps","getItemProps","getLabelProps","getListProps","getPanelProps","getRootProps","panelContainer","panelPlacement","render","renderNoResults","renderer","detachedMediaQuery","components","translations"];function Zb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ir(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Zb(Object(n),!0).forEach(function(r){Lj(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zb(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Lj(t,e,n){return e=Fj(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fj(t){var e=Dj(t,"string");return el(e)==="symbol"?e:String(e)}function Dj(t,e){if(el(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(el(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Mj(t,e){if(t==null)return{};var n=kj(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function kj(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var Bj={clearButton:"aa-ClearButton",detachedCancelButton:"aa-DetachedCancelButton",detachedContainer:"aa-DetachedContainer",detachedFormContainer:"aa-DetachedFormContainer",detachedOverlay:"aa-DetachedOverlay",detachedSearchButton:"aa-DetachedSearchButton",detachedSearchButtonIcon:"aa-DetachedSearchButtonIcon",detachedSearchButtonPlaceholder:"aa-DetachedSearchButtonPlaceholder",detachedSearchButtonQuery:"aa-DetachedSearchButtonQuery",form:"aa-Form",input:"aa-Input",inputWrapper:"aa-InputWrapper",inputWrapperPrefix:"aa-InputWrapperPrefix",inputWrapperSuffix:"aa-InputWrapperSuffix",item:"aa-Item",label:"aa-Label",list:"aa-List",loadingIndicator:"aa-LoadingIndicator",panel:"aa-Panel",panelLayout:"aa-PanelLayout aa-Panel--scrollable",root:"aa-Autocomplete",source:"aa-Source",sourceFooter:"aa-SourceFooter",sourceHeader:"aa-SourceHeader",sourceNoResults:"aa-SourceNoResults",submitButton:"aa-SubmitButton"},Hj=function(e,n){var r=e.children,i=e.render;i(r,n)},qj={createElement:me,Fragment:Cs,render:Or};function Wj(t){var e,n=t.classNames,r=t.container,i=t.getEnvironmentProps,o=t.getFormProps,s=t.getInputProps,a=t.getItemProps,l=t.getLabelProps,c=t.getListProps,u=t.getPanelProps,f=t.getRootProps,h=t.panelContainer,d=t.panelPlacement,p=t.render,m=t.renderNoResults,g=t.renderer,v=t.detachedMediaQuery,b=t.components,y=t.translations,_=Mj(t,Nj),A=typeof window<"u"?window:{},C=$b(A,r);C.tagName;var x=Ir(Ir({},qj),g),S={Highlight:Rj(x),ReverseHighlight:$j(x),ReverseSnippet:Vj(x),Snippet:jj(x)},w={clearButtonTitle:"Clear",detachedCancelButtonText:"Cancel",submitButtonTitle:"Submit"};return{renderer:{classNames:iV(Bj,n??{}),container:C,getEnvironmentProps:i??function(O){var P=O.props;return P},getFormProps:o??function(O){var P=O.props;return P},getInputProps:s??function(O){var P=O.props;return P},getItemProps:a??function(O){var P=O.props;return P},getLabelProps:l??function(O){var P=O.props;return P},getListProps:c??function(O){var P=O.props;return P},getPanelProps:u??function(O){var P=O.props;return P},getRootProps:f??function(O){var P=O.props;return P},panelContainer:h?$b(A,h):A.document.body,panelPlacement:d??"input-wrapper-width",render:p??Hj,renderNoResults:m,renderer:x,detachedMediaQuery:v??getComputedStyle(A.document.documentElement).getPropertyValue("--aa-detached-media-query"),components:Ir(Ir({},S),b),translations:Ir(Ir({},w),y)},core:Ir(Ir({},_),{},{id:(e=_.id)!==null&&e!==void 0?e:BA(),environment:A})}}function Uj(t){var e=t.panelPlacement,n=t.container,r=t.form,i=t.environment,o=n.getBoundingClientRect(),s=i.pageYOffset||i.document.documentElement.scrollTop||i.document.body.scrollTop||0,a=s+o.top+o.height;switch(e){case"start":return{top:a,left:o.left};case"end":return{top:a,right:i.document.documentElement.clientWidth-(o.left+o.width)};case"full-width":return{top:a,left:0,right:0,width:"unset",maxWidth:"unset"};case"input-wrapper-width":{var l=r.getBoundingClientRect();return{top:a,left:l.left,right:i.document.documentElement.clientWidth-(l.left+l.width),width:"unset",maxWidth:"unset"}}default:throw new Error("[Autocomplete] The `panelPlacement` value ".concat(JSON.stringify(e)," is not valid."))}}function tl(t){"@babel/helpers - typeof";return tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tl(t)}function gf(){return gf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},gf.apply(this,arguments)}function Xb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Do(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Xb(Object(n),!0).forEach(function(r){Qj(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xb(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Qj(t,e,n){return e=zj(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zj(t){var e=Kj(t,"string");return tl(e)==="symbol"?e:String(e)}function Kj(t,e){if(tl(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(tl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Gj(t){var e=t.autocomplete,n=t.autocompleteScopeApi,r=t.dom,i=t.propGetters,o=t.state;Db(r.root,i.getRootProps(Do({state:o,props:e.getRootProps({})},n))),Db(r.input,i.getInputProps(Do({state:o,props:e.getInputProps({inputElement:r.input}),inputElement:r.input},n))),Wn(r.label,{hidden:o.status==="stalled"}),Wn(r.loadingIndicator,{hidden:o.status!=="stalled"}),Wn(r.clearButton,{hidden:!o.query}),Wn(r.detachedSearchButtonQuery,{textContent:o.query}),Wn(r.detachedSearchButtonPlaceholder,{hidden:!!o.query})}function Yj(t,e){var n=e.autocomplete,r=e.autocompleteScopeApi,i=e.classNames,o=e.html,s=e.dom,a=e.panelContainer,l=e.propGetters,c=e.state,u=e.components,f=e.renderer;if(!c.isOpen){a.contains(s.panel)&&a.removeChild(s.panel);return}!a.contains(s.panel)&&c.status!=="loading"&&a.appendChild(s.panel),s.panel.classList.toggle("aa-Panel--stalled",c.status==="stalled");var h=c.collections.filter(function(m){var g=m.source,v=m.items;return g.templates.noResults||v.length>0}).map(function(m,g){var v=m.source,b=m.items;return f.createElement("section",{key:g,className:i.source,"data-autocomplete-source-id":v.sourceId},v.templates.header&&f.createElement("div",{className:i.sourceHeader},v.templates.header({components:u,createElement:f.createElement,Fragment:f.Fragment,items:b,source:v,state:c,html:o})),v.templates.noResults&&b.length===0?f.createElement("div",{className:i.sourceNoResults},v.templates.noResults({components:u,createElement:f.createElement,Fragment:f.Fragment,source:v,state:c,html:o})):f.createElement("ul",gf({className:i.list},l.getListProps(Do({state:c,props:n.getListProps({source:v})},r))),b.map(function(y){var _=n.getItemProps({item:y,source:v});return f.createElement("li",gf({key:_.id,className:i.item},l.getItemProps(Do({state:c,props:_},r))),v.templates.item({components:u,createElement:f.createElement,Fragment:f.Fragment,item:y,state:c,html:o}))})),v.templates.footer&&f.createElement("div",{className:i.sourceFooter},v.templates.footer({components:u,createElement:f.createElement,Fragment:f.Fragment,items:b,source:v,state:c,html:o})))}),d=f.createElement(f.Fragment,null,f.createElement("div",{className:i.panelLayout},h),f.createElement("div",{className:"aa-GradientBottom"})),p=h.reduce(function(m,g){return m[g.props["data-autocomplete-source-id"]]=g,m},{});t(Do(Do({children:d,state:c,sections:h,elements:p},f),{},{components:u,html:o},r),s.panel)}var y1=[{segment:"autocomplete-js",version:qA}],Jj=["components"];function nl(t){"@babel/helpers - typeof";return nl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nl(t)}function Zj(t,e){if(t==null)return{};var n=Xj(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Xj(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function e0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ai(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?e0(Object(n),!0).forEach(function(r){b1(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function b1(t,e,n){return e=eN(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function eN(t){var e=tN(t,"string");return nl(e)==="symbol"?e:String(e)}function tN(t,e){if(nl(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(nl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _1(t){var e=kV(),n=e.runEffect,r=e.cleanupEffects,i=e.runEffects,o=BV(),s=o.reactive,a=o.runReactives,l=ia(!1),c=ia(t),u=ia(void 0),f=s(function(){return Wj(c.current)}),h=s(function(){return f.value.core.environment.matchMedia(f.value.renderer.detachedMediaQuery).matches}),d=s(function(){return nV(Ai(Ai({},f.value.core),{},{onStateChange:function(w){var O,P,T;l.current=w.state.collections.some(function(R){return R.source.templates.noResults}),(O=u.current)===null||O===void 0||O.call(u,w),(P=(T=f.value.core).onStateChange)===null||P===void 0||P.call(T,w)},shouldPanelOpen:c.current.shouldPanelOpen||function(S){var w=S.state;if(h.value)return!0;var O=$a(w)>0;if(!f.value.core.openOnFocus&&!w.query)return O;var P=!!(l.current||f.value.renderer.renderNoResults);return!O&&P||O},__autocomplete_metadata:{userAgents:y1,options:t}}))}),p=ia(Ai({collections:[],completion:null,context:{},isOpen:!1,query:"",activeItemId:null,status:"idle"},f.value.core.initialState)),m={getEnvironmentProps:f.value.renderer.getEnvironmentProps,getFormProps:f.value.renderer.getFormProps,getInputProps:f.value.renderer.getInputProps,getItemProps:f.value.renderer.getItemProps,getLabelProps:f.value.renderer.getLabelProps,getListProps:f.value.renderer.getListProps,getPanelProps:f.value.renderer.getPanelProps,getRootProps:f.value.renderer.getRootProps},g={setActiveItemId:d.value.setActiveItemId,setQuery:d.value.setQuery,setCollections:d.value.setCollections,setIsOpen:d.value.setIsOpen,setStatus:d.value.setStatus,setContext:d.value.setContext,refresh:d.value.refresh,navigator:d.value.navigator},v=s(function(){return JA.bind(f.value.renderer.renderer.createElement)}),b=s(function(){return MV({autocomplete:d.value,autocompleteScopeApi:g,classNames:f.value.renderer.classNames,environment:f.value.core.environment,isDetached:h.value,placeholder:f.value.core.placeholder,propGetters:m,setIsModalOpen:x,state:p.current,translations:f.value.renderer.translations})});function y(){Wn(b.value.panel,{style:h.value?{}:Uj({panelPlacement:f.value.renderer.panelPlacement,container:b.value.root,form:b.value.form,environment:f.value.core.environment})})}function _(S){p.current=S;var w={autocomplete:d.value,autocompleteScopeApi:g,classNames:f.value.renderer.classNames,components:f.value.renderer.components,container:f.value.renderer.container,html:v.value,dom:b.value,panelContainer:h.value?b.value.detachedContainer:f.value.renderer.panelContainer,propGetters:m,state:p.current,renderer:f.value.renderer.renderer},O=!$a(S)&&!l.current&&f.value.renderer.renderNoResults||f.value.renderer.render;Gj(w),Yj(O,w)}n(function(){var S=d.value.getEnvironmentProps({formElement:b.value.form,panelElement:b.value.panel,inputElement:b.value.input});return Wn(f.value.core.environment,S),function(){Wn(f.value.core.environment,Object.keys(S).reduce(function(w,O){return Ai(Ai({},w),{},b1({},O,void 0))},{}))}}),n(function(){var S=h.value?f.value.core.environment.document.body:f.value.renderer.panelContainer,w=h.value?b.value.detachedOverlay:b.value.panel;return h.value&&p.current.isOpen&&x(!0),_(p.current),function(){S.contains(w)&&S.removeChild(w)}}),n(function(){var S=f.value.renderer.container;return S.appendChild(b.value.root),function(){S.removeChild(b.value.root)}}),n(function(){var S=df(function(w){var O=w.state;_(O)},0);return u.current=function(w){var O=w.state,P=w.prevState;if(h.value&&P.isOpen!==O.isOpen&&x(O.isOpen),!h.value&&O.isOpen&&!P.isOpen&&y(),O.query!==P.query){var T=f.value.core.environment.document.querySelectorAll(".aa-Panel--scrollable");T.forEach(function(R){R.scrollTop!==0&&(R.scrollTop=0)})}S({state:O})},function(){u.current=void 0}}),n(function(){var S=df(function(){var w=h.value;h.value=f.value.core.environment.matchMedia(f.value.renderer.detachedMediaQuery).matches,w!==h.value?C({}):requestAnimationFrame(y)},20);return f.value.core.environment.addEventListener("resize",S),function(){f.value.core.environment.removeEventListener("resize",S)}}),n(function(){if(!h.value)return function(){};function S(T){b.value.detachedContainer.classList.toggle("aa-DetachedContainer--modal",T)}function w(T){S(T.matches)}var O=f.value.core.environment.matchMedia(getComputedStyle(f.value.core.environment.document.documentElement).getPropertyValue("--aa-detached-modal-media-query"));S(O.matches);var P=!!O.addEventListener;return P?O.addEventListener("change",w):O.addListener(w),function(){P?O.removeEventListener("change",w):O.removeListener(w)}}),n(function(){return requestAnimationFrame(y),function(){}});function A(){r()}function C(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r();var w=f.value.renderer,O=w.components,P=Zj(w,Jj);c.current=ZA(P,f.value.core,{components:vV(O,function(T){var R=T.value;return!R.hasOwnProperty("__autocomplete_componentName")}),initialState:p.current},S),a(),i(),d.value.refresh().then(function(){_(p.current)})}function x(S){var w=f.value.core.environment.document.body.contains(b.value.detachedOverlay);S!==w&&(S?(f.value.core.environment.document.body.appendChild(b.value.detachedOverlay),f.value.core.environment.document.body.classList.add("aa-Detached"),b.value.input.focus()):(f.value.core.environment.document.body.removeChild(b.value.detachedOverlay),f.value.core.environment.document.body.classList.remove("aa-Detached")))}return Ai(Ai({},g),{},{update:C,destroy:A})}function rl(t){"@babel/helpers - typeof";return rl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rl(t)}function t0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function n0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?t0(Object(n),!0).forEach(function(r){nN(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):t0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function nN(t,e,n){return e=rN(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rN(t){var e=iN(t,"string");return rl(e)==="symbol"?e:String(e)}function iN(t,e){if(rl(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(rl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var oN=yj(function(t){return Ij(n0(n0({},t),{},{userAgents:y1}))},"algolia"),S1=oN({transformResponse:function(e){return e.hits}});const w1=xs("EIC10WP9LW","f46f83ab96da18b0937726cfbddffaf4"),ut=document.getElementsByTagName("html")[0].getAttribute("lang"),ht="5",sN={news_fr:"Actualités",news_en:"News",employees_fr:"Associé(e)s",employees_en:"Partners",offices_fr:"Bureaux",offices_en:"Offices",clients_fr:"Clients",clients_en:"Clients",tips_fr:"Conseils",tips_en:"Tips",creditors_fr:"Créanciers",creditors_en:"Creditors",debts_fr:"Dettes",debts_en:"Debts",public_records_fr:"Dossiers publics",public_records_en:"Public records",jobs_mallette_fr:"Carrières chez Mallette",jobs_mallette_en:"Careers at Mallette",jobs_client_fr:"Carrières chez nos clients",jobs_client_en:"Careers with our clients",pages_fr:"Pages",pages_en:"Pages",sectors_fr:"Secteurs d'activités",sectors_en:"Sectors",services_fr:"Services",services_en:"Services",solutions_fr:"Solutions",solutions_en:"Solutions",events_fr:"Événements",events_en:"Events"},aN=t=>ro(t).filter(Boolean),lN=(t,e)=>function(...r){const i=aN(r);if(i.length===0)return[];const o=i[0],a=ro(i.map(l=>l.getItems())).reduce((l,c)=>{const u=t(c);return l.hasOwnProperty(u)||(l[u]=[]),l[u].push(c),l},{});return Object.entries(a).map(([l,c])=>{const u=e.getSource({name:l,items:c});return{...o,sourceId:l,getItems(){return c},...u,templates:{...o.templates,...u.templates}}})},A1=lN(t=>sN[t.__autocomplete_indexName],{getSource({name:t,items:e}){return{getItems(){return e.slice(0,ht)},templates:{header({html:n}){return n` <div> <span className="aa-SourceHeaderTitle">${t}</span> <div className="aa-SourceHeaderLine" /> </div> `}}}}}),cN=t=>[{indexName:`news_${ut}`,query:t,params:{hitsPerPage:ht}},{indexName:`employees_${ut}`,query:t,params:{hitsPerPage:ht}},{indexName:`offices_${ut}`,query:t,params:{hitsPerPage:ht}},{indexName:`clients_${ut}`,query:t,params:{hitsPerPage:ht}},{indexName:`tips_${ut}`,query:t,params:{hitsPerPage:ht}},{indexName:`creditors_${ut}`,query:t,params:{hitsPerPage:ht}},{indexName:`debts_${ut}`,query:t,params:{hitsPerPage:ht}},{indexName:`public_records_${ut}`,query:t,params:{hitsPerPage:ht}},{indexName:`jobs_mallette_${ut}`,query:t,params:{hitsPerPage:ht}},{indexName:`jobs_client_${ut}`,query:t,params:{hitsPerPage:ht}},{indexName:`pages_${ut}`,query:t,params:{hitsPerPage:ht}},{indexName:`sectors_${ut}`,query:t,params:{hitsPerPage:ht}},{indexName:`services_${ut}`,query:t,params:{hitsPerPage:ht}},{indexName:`solutions_${ut}`,query:t,params:{hitsPerPage:ht}},{indexName:`events_${ut}`,query:t,params:{hitsPerPage:ht}}],uN=_1({container:"#autocomplete",placeholder:ut==="fr"?"Recherche":"Search",getSources({query:t}){return[{sourceId:"results",getItems(){return S1({searchClient:w1,queries:cN(t)})},templates:{item({item:e,components:n,html:r}){return r`<a title="${e.title}" href="${e.url}">${e.title}</a>`}}}]},reshape({sourcesBySourceId:t}){const{results:e}=t;return[A1(e)]}});if(document.getElementById("autocomplete_office")){const t=_1({container:"#autocomplete_office",placeholder:ut==="fr"?"Entrez votre ville":"Enter your city",getSources({query:e}){return[{sourceId:"results",getItems(){return S1({searchClient:w1,queries:[{indexName:`offices_${ut}`,query:e,params:{hitsPerPage:ht}}]})},templates:{item({item:n,components:r,html:i}){return i`<a title="${n.title}" href="?office_slug=${n.slug}">${n.title}</a>`}}}]},reshape({sourcesBySourceId:e}){const{results:n}=e;return[A1(n)]}});document.addEventListener("click",e=>{e.target.closest(".aa-Autocomplete")||(t.setIsOpen(!1),uN.setIsOpen(!1))})}$(document).ready(function(){$("select[multiple]").select2()});var O1={exports:{}};(function(t,e){(function(){var n={frameRate:150,animationTime:400,stepSize:100,pulseAlgorithm:!0,pulseScale:4,pulseNormalize:1,accelerationDelta:50,accelerationMax:3,keyboardSupport:!0,arrowScroll:50,fixedBackground:!0,excluded:""},r=n,i=!1,o=!1,s={x:0,y:0},a=!1,l=document.documentElement,c,u,f,h=[],d,p=/^Mac/.test(navigator.platform),m={left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36},g={37:1,38:1,39:1,40:1};function v(){r.keyboardSupport&&ye("keydown",w)}function b(){if(!(a||!document.body)){a=!0;var j=document.body,ee=document.documentElement,he=window.innerHeight,xe=j.scrollHeight;if(l=document.compatMode.indexOf("CSS")>=0?ee:j,c=j,v(),top!=self)o=!0;else if(ie&&xe>he&&(j.offsetHeight<=he||ee.offsetHeight<=he)){var Fe=document.createElement("div");Fe.style.cssText="position:absolute; z-index:-10000; top:0; left:0; right:0; height:"+l.scrollHeight+"px",document.body.appendChild(Fe);var Ke;f=function(){Ke||(Ke=setTimeout(function(){Fe.style.height="0",Fe.style.height=l.scrollHeight+"px",Ke=null},500))},setTimeout(f,10),ye("resize",f);var nn={attributes:!0,childList:!0,characterData:!1};if(u=new E(f),u.observe(j,nn),l.offsetHeight<=he){var Ne=document.createElement("div");Ne.style.clear="both",j.appendChild(Ne)}}!r.fixedBackground&&!i&&(j.style.backgroundAttachment="scroll",ee.style.backgroundAttachment="scroll")}}function y(){u&&u.disconnect(),q(se,S),q("mousedown",O),q("keydown",w),q("resize",f),q("load",b)}var _=[],A=!1,C=Date.now();function x(j,ee,he){if(V(ee,he),r.accelerationMax!=1){var xe=Date.now(),Fe=xe-C;if(Fe<r.accelerationDelta){var Ke=(1+50/Fe)/2;Ke>1&&(Ke=Math.min(Ke,r.accelerationMax),ee*=Ke,he*=Ke)}C=Date.now()}if(_.push({x:ee,y:he,lastX:ee<0?.99:-.99,lastY:he<0?.99:-.99,start:Date.now()}),!A){var nn=I(),Ne=j===nn||j===document.body;j.$scrollBehavior==null&&Se(j)&&(j.$scrollBehavior=j.style.scrollBehavior,j.style.scrollBehavior="auto");var Ue=function(nr){for(var Zd=Date.now(),pi=0,Uc=0,Fs=0;Fs<_.length;Fs++){var mi=_[Fs],dy=Zd-mi.start,hy=dy>=r.animationTime,Qc=hy?1:dy/r.animationTime;r.pulseAlgorithm&&(Qc=U(Qc));var py=mi.x*Qc-mi.lastX>>0,my=mi.y*Qc-mi.lastY>>0;pi+=py,Uc+=my,mi.lastX+=py,mi.lastY+=my,hy&&(_.splice(Fs,1),Fs--)}Ne?window.scrollBy(pi,Uc):(pi&&(j.scrollLeft+=pi),Uc&&(j.scrollTop+=Uc)),!ee&&!he&&(_=[]),_.length?ae(Ue,j,1e3/r.frameRate+1):(A=!1,j.$scrollBehavior!=null&&(j.style.scrollBehavior=j.$scrollBehavior,j.$scrollBehavior=null))};ae(Ue,j,0),A=!0}}function S(j){a||b();var ee=j.target;if(j.defaultPrevented||j.ctrlKey||D(c,"embed")||D(ee,"embed")&&/\.pdf/i.test(ee.src)||D(c,"object")||ee.shadowRoot)return!0;var he=-j.wheelDeltaX||j.deltaX||0,xe=-j.wheelDeltaY||j.deltaY||0;p&&(j.wheelDeltaX&&N(j.wheelDeltaX,120)&&(he=-120*(j.wheelDeltaX/Math.abs(j.wheelDeltaX))),j.wheelDeltaY&&N(j.wheelDeltaY,120)&&(xe=-120*(j.wheelDeltaY/Math.abs(j.wheelDeltaY)))),!he&&!xe&&(xe=-j.wheelDelta||0),j.deltaMode===1&&(he*=40,xe*=40);var Fe=G(ee);if(!Fe)return o&&ne?(Object.defineProperty(j,"target",{value:window.frameElement}),parent.wheel(j)):!0;if(F(xe))return!0;Math.abs(he)>1.2&&(he*=r.stepSize/120),Math.abs(xe)>1.2&&(xe*=r.stepSize/120),x(Fe,he,xe),j.preventDefault(),B()}function w(j){var ee=j.target,he=j.ctrlKey||j.altKey||j.metaKey||j.shiftKey&&j.keyCode!==m.spacebar;document.body.contains(c)||(c=document.activeElement);var xe=/^(textarea|select|embed|object)$/i,Fe=/^(button|submit|radio|checkbox|file|color|image)$/i;if(j.defaultPrevented||xe.test(ee.nodeName)||D(ee,"input")&&!Fe.test(ee.type)||D(c,"video")||re(j)||ee.isContentEditable||he||(D(ee,"button")||D(ee,"input")&&Fe.test(ee.type))&&j.keyCode===m.spacebar||D(ee,"input")&&ee.type=="radio"&&g[j.keyCode])return!0;var Ke,nn=0,Ne=0,Ue=G(c);if(!Ue)return o&&ne?parent.keydown(j):!0;var nr=Ue.clientHeight;switch(Ue==document.body&&(nr=window.innerHeight),j.keyCode){case m.up:Ne=-r.arrowScroll;break;case m.down:Ne=r.arrowScroll;break;case m.spacebar:Ke=j.shiftKey?1:-1,Ne=-Ke*nr*.9;break;case m.pageup:Ne=-nr*.9;break;case m.pagedown:Ne=nr*.9;break;case m.home:Ue==document.body&&document.scrollingElement&&(Ue=document.scrollingElement),Ne=-Ue.scrollTop;break;case m.end:var Zd=Ue.scrollHeight-Ue.scrollTop,pi=Zd-nr;Ne=pi>0?pi+10:0;break;case m.left:nn=-r.arrowScroll;break;case m.right:nn=r.arrowScroll;break;default:return!0}x(Ue,nn,Ne),j.preventDefault(),B()}function O(j){c=j.target}var P=function(){var j=0;return function(ee){return ee.uniqueID||(ee.uniqueID=j++)}}(),T={},R={},M,k={};function B(){clearTimeout(M),M=setInterval(function(){T=R=k={}},1*1e3)}function z(j,ee,he){for(var xe=he?T:R,Fe=j.length;Fe--;)xe[P(j[Fe])]=ee;return ee}function Q(j,ee){return(ee?T:R)[P(j)]}function G(j){var ee=[],he=document.body,xe=l.scrollHeight;do{var Fe=Q(j,!1);if(Fe)return z(ee,Fe);if(ee.push(j),xe===j.scrollHeight){var Ke=te(l)&&te(he),nn=Ke||ue(l);if(o&&K(l)||!o&&nn)return z(ee,I())}else if(K(j)&&ue(j))return z(ee,j)}while(j=j.parentElement)}function K(j){return j.clientHeight+10<j.scrollHeight}function te(j){var ee=getComputedStyle(j,"").getPropertyValue("overflow-y");return ee!=="hidden"}function ue(j){var ee=getComputedStyle(j,"").getPropertyValue("overflow-y");return ee==="scroll"||ee==="auto"}function Se(j){var ee=P(j);if(k[ee]==null){var he=getComputedStyle(j,"")["scroll-behavior"];k[ee]=he=="smooth"}return k[ee]}function ye(j,ee,he){window.addEventListener(j,ee,he||!1)}function q(j,ee,he){window.removeEventListener(j,ee,he||!1)}function D(j,ee){return j&&(j.nodeName||"").toLowerCase()===ee.toLowerCase()}function V(j,ee){j=j>0?1:-1,ee=ee>0?1:-1,(s.x!==j||s.y!==ee)&&(s.x=j,s.y=ee,_=[],C=0)}if(window.localStorage&&localStorage.SS_deltaBuffer)try{h=localStorage.SS_deltaBuffer.split(",")}catch{}function F(j){if(j){h.length||(h=[j,j,j]),j=Math.abs(j),h.push(j),h.shift(),clearTimeout(d),d=setTimeout(function(){try{localStorage.SS_deltaBuffer=h.join(",")}catch{}},1e3);var ee=j>120&&W(j),he=!W(120)&&!W(100)&&!ee;return j<50?!0:he}}function N(j,ee){return Math.floor(j/ee)==j/ee}function W(j){return N(h[0],j)&&N(h[1],j)&&N(h[2],j)}function re(j){var ee=j.target,he=!1;if(document.URL.indexOf("www.youtube.com/watch")!=-1)do if(he=ee.classList&&ee.classList.contains("html5-video-controls"),he)break;while(ee=ee.parentNode);return he}var ae=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(j,ee,he){window.setTimeout(j,he||1e3/60)}}(),E=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,I=function(){var j=document.scrollingElement;return function(){if(!j){var ee=document.createElement("div");ee.style.cssText="height:10000px;width:1px;",document.body.appendChild(ee);var he=document.body.scrollTop;document.documentElement.scrollTop,window.scrollBy(0,3),document.body.scrollTop!=he?j=document.body:j=document.documentElement,window.scrollBy(0,-3),document.body.removeChild(ee)}return j}}();function L(j){var ee,he,xe;return j=j*r.pulseScale,j<1?ee=j-(1-Math.exp(-j)):(he=Math.exp(-1),j-=1,xe=1-Math.exp(-j),ee=he+xe*(1-he)),ee*r.pulseNormalize}function U(j){return j>=1?1:j<=0?0:(r.pulseNormalize==1&&(r.pulseNormalize/=L(1)),L(j))}var H=window.navigator.userAgent,X=/Edge/.test(H),ne=/chrome/i.test(H)&&!X,J=/safari/i.test(H)&&!X,Z=/mobile/i.test(H),Y=/Windows NT 6.1/i.test(H)&&/rv:11/i.test(H),ie=J&&(/Version\/8/i.test(H)||/Version\/9/i.test(H)),le=(ne||J||Y)&&!Z,de=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){de=!0}}))}catch{}var ce=de?{passive:!1}:!1,se="onwheel"in document.createElement("div")?"wheel":"mousewheel";se&&le&&(ye(se,S,ce),ye("mousedown",O),ye("load",b));function be(j){for(var ee in j)n.hasOwnProperty(ee)&&(r[ee]=j[ee])}be.destroy=y,window.SmoothScrollOptions&&be(window.SmoothScrollOptions),t.exports=be})()})(O1);var fN=O1.exports;const dN=Ps(fN);dN({frameRate:200,animationTime:700,stepSize:100});function r0(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function hN(t,e,n){return e&&r0(t.prototype,e),n&&r0(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}/*! * Splide.js * Version : 4.1.4 * License : MIT * Copyright: 2022 Naotoshi Fujita */var i0="(prefers-reduced-motion: reduce)",Mo=1,pN=2,ns=3,Ts=4,hc=5,Qu=6,vf=7,mN={CREATED:Mo,MOUNTED:pN,IDLE:ns,MOVING:Ts,SCROLLING:hc,DRAGGING:Qu,DESTROYED:vf};function _r(t){t.length=0}function li(t,e,n){return Array.prototype.slice.call(t,e,n)}function Me(t){return t.bind.apply(t,[null].concat(li(arguments,1)))}var E1=setTimeout,kp=function(){};function o0(t){return requestAnimationFrame(t)}function fd(t,e){return typeof e===t}function il(t){return!Rg(t)&&fd("object",t)}var Ig=Array.isArray,P1=Me(fd,"function"),ni=Me(fd,"string"),pc=Me(fd,"undefined");function Rg(t){return t===null}function x1(t){try{return t instanceof(t.ownerDocument.defaultView||window).HTMLElement}catch{return!1}}function mc(t){return Ig(t)?t:[t]}function vn(t,e){mc(t).forEach(e)}function $g(t,e){return t.indexOf(e)>-1}function zu(t,e){return t.push.apply(t,mc(e)),t}function hr(t,e,n){t&&vn(e,function(r){r&&t.classList[n?"add":"remove"](r)})}function Yn(t,e){hr(t,ni(e)?e.split(" "):e,!0)}function gc(t,e){vn(e,t.appendChild.bind(t))}function Vg(t,e){vn(t,function(n){var r=(e||n).parentNode;r&&r.insertBefore(n,e)})}function ol(t,e){return x1(t)&&(t.msMatchesSelector||t.matches).call(t,e)}function C1(t,e){var n=t?li(t.children):[];return e?n.filter(function(r){return ol(r,e)}):n}function vc(t,e){return e?C1(t,e)[0]:t.firstElementChild}var sl=Object.keys;function zi(t,e,n){return t&&(n?sl(t).reverse():sl(t)).forEach(function(r){r!=="__proto__"&&e(t[r],r)}),t}function al(t){return li(arguments,1).forEach(function(e){zi(e,function(n,r){t[r]=e[r]})}),t}function zr(t){return li(arguments,1).forEach(function(e){zi(e,function(n,r){Ig(n)?t[r]=n.slice():il(n)?t[r]=zr({},il(t[r])?t[r]:{},n):t[r]=n})}),t}function s0(t,e){vn(e||sl(t),function(n){delete t[n]})}function Jn(t,e){vn(t,function(n){vn(e,function(r){n&&n.removeAttribute(r)})})}function we(t,e,n){il(e)?zi(e,function(r,i){we(t,i,r)}):vn(t,function(r){Rg(n)||n===""?Jn(r,e):r.setAttribute(e,String(n))})}function qo(t,e,n){var r=document.createElement(t);return e&&(ni(e)?Yn(r,e):we(r,e)),n&&gc(n,r),r}function Sn(t,e,n){if(pc(n))return getComputedStyle(t)[e];Rg(n)||(t.style[e]=""+n)}function ll(t,e){Sn(t,"display",e)}function T1(t){t.setActive&&t.setActive()||t.focus({preventScroll:!0})}function Pn(t,e){return t.getAttribute(e)}function a0(t,e){return t&&t.classList.contains(e)}function un(t){return t.getBoundingClientRect()}function io(t){vn(t,function(e){e&&e.parentNode&&e.parentNode.removeChild(e)})}function I1(t){return vc(new DOMParser().parseFromString(t,"text/html").body)}function ur(t,e){t.preventDefault(),e&&(t.stopPropagation(),t.stopImmediatePropagation())}function R1(t,e){return t&&t.querySelector(e)}function jg(t,e){return e?li(t.querySelectorAll(e)):[]}function pr(t,e){hr(t,e,!1)}function Bp(t){return t.timeStamp}function Oi(t){return ni(t)?t:t?t+"px":""}var yc="splide",Ng="data-"+yc;function da(t,e){if(!t)throw new Error("["+yc+"] "+(e||""))}var ri=Math.min,yf=Math.max,bf=Math.floor,cl=Math.ceil,Dt=Math.abs;function $1(t,e,n){return Dt(t-e)<n}function Ku(t,e,n,r){var i=ri(e,n),o=yf(e,n);return r?i<t&&t<o:i<=t&&t<=o}function jo(t,e,n){var r=ri(e,n),i=yf(e,n);return ri(yf(r,t),i)}function Hp(t){return+(t>0)-+(t<0)}function qp(t,e){return vn(e,function(n){t=t.replace("%s",""+n)}),t}function Lg(t){return t<10?"0"+t:""+t}var l0={};function gN(t){return""+t+Lg(l0[t]=(l0[t]||0)+1)}function V1(){var t=[];function e(s,a,l,c){i(s,a,function(u,f,h){var d="addEventListener"in u,p=d?u.removeEventListener.bind(u,f,l,c):u.removeListener.bind(u,l);d?u.addEventListener(f,l,c):u.addListener(l),t.push([u,f,h,l,p])})}function n(s,a,l){i(s,a,function(c,u,f){t=t.filter(function(h){return h[0]===c&&h[1]===u&&h[2]===f&&(!l||h[3]===l)?(h[4](),!1):!0})})}function r(s,a,l){var c,u=!0;return typeof CustomEvent=="function"?c=new CustomEvent(a,{bubbles:u,detail:l}):(c=document.createEvent("CustomEvent"),c.initCustomEvent(a,u,!1,l)),s.dispatchEvent(c),c}function i(s,a,l){vn(s,function(c){c&&vn(a,function(u){u.split(" ").forEach(function(f){var h=f.split(".");l(c,h[0],h[1])})})})}function o(){t.forEach(function(s){s[4]()}),_r(t)}return{bind:e,unbind:n,dispatch:r,destroy:o}}var yo="mounted",c0="ready",ii="move",bc="moved",j1="click",vN="active",yN="inactive",bN="visible",_N="hidden",at="refresh",Wt="updated",ul="resize",Fg="resized",SN="drag",wN="dragging",AN="dragged",Dg="scroll",Is="scrolled",ON="overflow",N1="destroy",EN="arrows:mounted",PN="arrows:updated",xN="pagination:mounted",CN="pagination:updated",L1="navigation:mounted",F1="autoplay:play",TN="autoplay:playing",D1="autoplay:pause",M1="lazyload:loaded",k1="sk",B1="sh",_f="ei";function ze(t){var e=t?t.event.bus:document.createDocumentFragment(),n=V1();function r(o,s){n.bind(e,mc(o).join(" "),function(a){s.apply(s,Ig(a.detail)?a.detail:[])})}function i(o){n.dispatch(e,o,li(arguments,1))}return t&&t.event.on(N1,n.destroy),al(n,{bus:e,on:r,off:Me(n.unbind,e),emit:i})}function dd(t,e,n,r){var i=Date.now,o,s=0,a,l=!0,c=0;function u(){if(!l){if(s=t?ri((i()-o)/t,1):1,n&&n(s),s>=1&&(e(),o=i(),r&&++c>=r))return h();a=o0(u)}}function f(v){v||p(),o=i()-(v?s*t:0),l=!1,a=o0(u)}function h(){l=!0}function d(){o=i(),s=0,n&&n(s)}function p(){a&&cancelAnimationFrame(a),s=0,a=0,l=!0}function m(v){t=v}function g(){return l}return{start:f,rewind:d,pause:h,cancel:p,set:m,isPaused:g}}function IN(t){var e=t;function n(i){e=i}function r(i){return $g(mc(i),e)}return{set:n,is:r}}function RN(t,e){var n=dd(e||0,t,null,1);return function(){n.isPaused()&&n.start()}}function $N(t,e,n){var r=t.state,i=n.breakpoints||{},o=n.reducedMotion||{},s=V1(),a=[];function l(){var p=n.mediaQuery==="min";sl(i).sort(function(m,g){return p?+m-+g:+g-+m}).forEach(function(m){u(i[m],"("+(p?"min":"max")+"-width:"+m+"px)")}),u(o,i0),f()}function c(p){p&&s.destroy()}function u(p,m){var g=matchMedia(m);s.bind(g,"change",f),a.push([p,g])}function f(){var p=r.is(vf),m=n.direction,g=a.reduce(function(v,b){return zr(v,b[1].matches?b[0]:{})},{});s0(n),d(g),n.destroy?t.destroy(n.destroy==="completely"):p?(c(!0),t.mount()):m!==n.direction&&t.refresh()}function h(p){matchMedia(i0).matches&&(p?zr(n,o):s0(n,sl(o)))}function d(p,m,g){zr(n,p),m&&zr(Object.getPrototypeOf(n),p),(g||!r.is(Mo))&&t.emit(Wt,n)}return{setup:l,destroy:c,reduce:h,set:d}}var hd="Arrow",pd=hd+"Left",md=hd+"Right",H1=hd+"Up",q1=hd+"Down",u0="rtl",gd="ttb",_h={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[H1,md],ArrowRight:[q1,pd]};function VN(t,e,n){function r(o,s,a){a=a||n.direction;var l=a===u0&&!s?1:a===gd?0:-1;return _h[o]&&_h[o][l]||o.replace(/width|left|right/i,function(c,u){var f=_h[c.toLowerCase()][l]||c;return u>0?f.charAt(0).toUpperCase()+f.slice(1):f})}function i(o){return o*(n.direction===u0?1:-1)}return{resolve:r,orient:i}}var mr="role",Wo="tabindex",jN="disabled",Nn="aria-",_c=Nn+"controls",W1=Nn+"current",f0=Nn+"selected",dn=Nn+"label",Mg=Nn+"labelledby",U1=Nn+"hidden",kg=Nn+"orientation",fl=Nn+"roledescription",d0=Nn+"live",h0=Nn+"busy",p0=Nn+"atomic",Bg=[mr,Wo,jN,_c,W1,dn,Mg,U1,kg,fl],tr=yc+"__",ci="is-",Sh=yc,m0=tr+"track",NN=tr+"list",vd=tr+"slide",Q1=vd+"--clone",LN=vd+"__container",Hg=tr+"arrows",yd=tr+"arrow",z1=yd+"--prev",K1=yd+"--next",bd=tr+"pagination",G1=bd+"__page",FN=tr+"progress",DN=FN+"__bar",MN=tr+"toggle",kN=tr+"spinner",BN=tr+"sr",HN=ci+"initialized",oo=ci+"active",Y1=ci+"prev",J1=ci+"next",Wp=ci+"visible",Up=ci+"loading",Z1=ci+"focus-in",X1=ci+"overflow",qN=[oo,Wp,Y1,J1,Up,Z1,X1],WN={slide:vd,clone:Q1,arrows:Hg,arrow:yd,prev:z1,next:K1,pagination:bd,page:G1,spinner:kN};function UN(t,e){if(P1(t.closest))return t.closest(e);for(var n=t;n&&n.nodeType===1&&!ol(n,e);)n=n.parentElement;return n}var QN=5,g0=200,eO="touchstart mousedown",wh="touchmove mousemove",Ah="touchend touchcancel mouseup click";function zN(t,e,n){var r=ze(t),i=r.on,o=r.bind,s=t.root,a=n.i18n,l={},c=[],u=[],f=[],h,d,p;function m(){y(),_(),b()}function g(){i(at,v),i(at,m),i(Wt,b),o(document,eO+" keydown",function(x){p=x.type==="keydown"},{capture:!0}),o(s,"focusin",function(){hr(s,Z1,!!p)})}function v(x){var S=Bg.concat("style");_r(c),pr(s,u),pr(h,f),Jn([h,d],S),Jn(s,x?S:["style",fl])}function b(){pr(s,u),pr(h,f),u=C(Sh),f=C(m0),Yn(s,u),Yn(h,f),we(s,dn,n.label),we(s,Mg,n.labelledby)}function y(){h=A("."+m0),d=vc(h,"."+NN),da(h&&d,"A track/list element is missing."),zu(c,C1(d,"."+vd+":not(."+Q1+")")),zi({arrows:Hg,pagination:bd,prev:z1,next:K1,bar:DN,toggle:MN},function(x,S){l[S]=A("."+x)}),al(l,{root:s,track:h,list:d,slides:c})}function _(){var x=s.id||gN(yc),S=n.role;s.id=x,h.id=h.id||x+"-track",d.id=d.id||x+"-list",!Pn(s,mr)&&s.tagName!=="SECTION"&&S&&we(s,mr,S),we(s,fl,a.carousel),we(d,mr,"presentation")}function A(x){var S=R1(s,x);return S&&UN(S,"."+Sh)===s?S:void 0}function C(x){return[x+"--"+n.type,x+"--"+n.direction,n.drag&&x+"--draggable",n.isNavigation&&x+"--nav",x===Sh&&oo]}return al(l,{setup:m,mount:g,destroy:v})}var rs="slide",Rs="loop",Sc="fade";function KN(t,e,n,r){var i=ze(t),o=i.on,s=i.emit,a=i.bind,l=t.Components,c=t.root,u=t.options,f=u.isNavigation,h=u.updateOnMove,d=u.i18n,p=u.pagination,m=u.slideFocus,g=l.Direction.resolve,v=Pn(r,"style"),b=Pn(r,dn),y=n>-1,_=vc(r,"."+LN),A;function C(){y||(r.id=c.id+"-slide"+Lg(e+1),we(r,mr,p?"tabpanel":"group"),we(r,fl,d.slide),we(r,dn,b||qp(d.slideLabel,[e+1,t.length]))),x()}function x(){a(r,"click",Me(s,j1,Q)),a(r,"keydown",Me(s,k1,Q)),o([bc,B1,Is],P),o(L1,w),h&&o(ii,O)}function S(){A=!0,i.destroy(),pr(r,qN),Jn(r,Bg),we(r,"style",v),we(r,dn,b||"")}function w(){var G=t.splides.map(function(K){var te=K.splide.Components.Slides.getAt(e);return te?te.slide.id:""}).join(" ");we(r,dn,qp(d.slideX,(y?n:e)+1)),we(r,_c,G),we(r,mr,m?"button":""),m&&Jn(r,fl)}function O(){A||P()}function P(){if(!A){var G=t.index;T(),R(),hr(r,Y1,e===G-1),hr(r,J1,e===G+1)}}function T(){var G=k();G!==a0(r,oo)&&(hr(r,oo,G),we(r,W1,f&&G||""),s(G?vN:yN,Q))}function R(){var G=B(),K=!G&&(!k()||y);if(t.state.is([Ts,hc])||we(r,U1,K||""),we(jg(r,u.focusableNodes||""),Wo,K?-1:""),m&&we(r,Wo,K?-1:0),G!==a0(r,Wp)&&(hr(r,Wp,G),s(G?bN:_N,Q)),!G&&document.activeElement===r){var te=l.Slides.getAt(t.index);te&&T1(te.slide)}}function M(G,K,te){Sn(te&&_||r,G,K)}function k(){var G=t.index;return G===e||u.cloneStatus&&G===n}function B(){if(t.is(Sc))return k();var G=un(l.Elements.track),K=un(r),te=g("left",!0),ue=g("right",!0);return bf(G[te])<=cl(K[te])&&bf(K[ue])<=cl(G[ue])}function z(G,K){var te=Dt(G-e);return!y&&(u.rewind||t.is(Rs))&&(te=ri(te,t.length-te)),te<=K}var Q={index:e,slideIndex:n,slide:r,container:_,isClone:y,mount:C,destroy:S,update:P,style:M,isWithin:z};return Q}function GN(t,e,n){var r=ze(t),i=r.on,o=r.emit,s=r.bind,a=e.Elements,l=a.slides,c=a.list,u=[];function f(){h(),i(at,d),i(at,h)}function h(){l.forEach(function(P,T){m(P,T,-1)})}function d(){A(function(P){P.destroy()}),_r(u)}function p(){A(function(P){P.update()})}function m(P,T,R){var M=KN(t,T,R,P);M.mount(),u.push(M),u.sort(function(k,B){return k.index-B.index})}function g(P){return P?C(function(T){return!T.isClone}):u}function v(P){var T=e.Controller,R=T.toIndex(P),M=T.hasFocus()?1:n.perPage;return C(function(k){return Ku(k.index,R,R+M-1)})}function b(P){return C(P)[0]}function y(P,T){vn(P,function(R){if(ni(R)&&(R=I1(R)),x1(R)){var M=l[T];M?Vg(R,M):gc(c,R),Yn(R,n.classes.slide),S(R,Me(o,ul))}}),o(at)}function _(P){io(C(P).map(function(T){return T.slide})),o(at)}function A(P,T){g(T).forEach(P)}function C(P){return u.filter(P1(P)?P:function(T){return ni(P)?ol(T.slide,P):$g(mc(P),T.index)})}function x(P,T,R){A(function(M){M.style(P,T,R)})}function S(P,T){var R=jg(P,"img"),M=R.length;M?R.forEach(function(k){s(k,"load error",function(){--M||T()})}):T()}function w(P){return P?l.length:u.length}function O(){return u.length>n.perPage}return{mount:f,destroy:d,update:p,register:m,get:g,getIn:v,getAt:b,add:y,remove:_,forEach:A,filter:C,style:x,getLength:w,isEnough:O}}function YN(t,e,n){var r=ze(t),i=r.on,o=r.bind,s=r.emit,a=e.Slides,l=e.Direction.resolve,c=e.Elements,u=c.root,f=c.track,h=c.list,d=a.getAt,p=a.style,m,g,v;function b(){y(),o(window,"resize load",RN(Me(s,ul))),i([Wt,at],y),i(ul,_)}function y(){m=n.direction===gd,Sn(u,"maxWidth",Oi(n.width)),Sn(f,l("paddingLeft"),A(!1)),Sn(f,l("paddingRight"),A(!0)),_(!0)}function _(Q){var G=un(u);(Q||g.width!==G.width||g.height!==G.height)&&(Sn(f,"height",C()),p(l("marginRight"),Oi(n.gap)),p("width",S()),p("height",w(),!0),g=G,s(Fg),v!==(v=z())&&(hr(u,X1,v),s(ON,v)))}function A(Q){var G=n.padding,K=l(Q?"right":"left");return G&&Oi(G[K]||(il(G)?0:G))||"0px"}function C(){var Q="";return m&&(Q=x(),da(Q,"height or heightRatio is missing."),Q="calc("+Q+" - "+A(!1)+" - "+A(!0)+")"),Q}function x(){return Oi(n.height||un(h).width*n.heightRatio)}function S(){return n.autoWidth?null:Oi(n.fixedWidth)||(m?"":O())}function w(){return Oi(n.fixedHeight)||(m?n.autoHeight?null:O():x())}function O(){var Q=Oi(n.gap);return"calc((100%"+(Q&&" + "+Q)+")/"+(n.perPage||1)+(Q&&" - "+Q)+")"}function P(){return un(h)[l("width")]}function T(Q,G){var K=d(Q||0);return K?un(K.slide)[l("width")]+(G?0:k()):0}function R(Q,G){var K=d(Q);if(K){var te=un(K.slide)[l("right")],ue=un(h)[l("left")];return Dt(te-ue)+(G?0:k())}return 0}function M(Q){return R(t.length-1)-R(0)+T(0,Q)}function k(){var Q=d(0);return Q&&parseFloat(Sn(Q.slide,l("marginRight")))||0}function B(Q){return parseFloat(Sn(f,l("padding"+(Q?"Right":"Left"))))||0}function z(){return t.is(Sc)||M(!0)>P()}return{mount:b,resize:_,listSize:P,slideSize:T,sliderSize:M,totalSize:R,getPadding:B,isOverflow:z}}var JN=2;function ZN(t,e,n){var r=ze(t),i=r.on,o=e.Elements,s=e.Slides,a=e.Direction.resolve,l=[],c;function u(){i(at,f),i([Wt,ul],d),(c=g())&&(p(c),e.Layout.resize(!0))}function f(){h(),u()}function h(){io(l),_r(l),r.destroy()}function d(){var v=g();c!==v&&(c<v||!v)&&r.emit(at)}function p(v){var b=s.get().slice(),y=b.length;if(y){for(;b.length<v;)zu(b,b);zu(b.slice(-v),b.slice(0,v)).forEach(function(_,A){var C=A<v,x=m(_.slide,A);C?Vg(x,b[0].slide):gc(o.list,x),zu(l,x),s.register(x,A-v+(C?0:y),_.index)})}}function m(v,b){var y=v.cloneNode(!0);return Yn(y,n.classes.clone),y.id=t.root.id+"-clone"+Lg(b+1),y}function g(){var v=n.clones;if(!t.is(Rs))v=0;else if(pc(v)){var b=n[a("fixedWidth")]&&e.Layout.slideSize(0),y=b&&cl(un(o.track)[a("width")]/b);v=y||n[a("autoWidth")]&&t.length||n.perPage*JN}return v}return{mount:u,destroy:h}}function XN(t,e,n){var r=ze(t),i=r.on,o=r.emit,s=t.state.set,a=e.Layout,l=a.slideSize,c=a.getPadding,u=a.totalSize,f=a.listSize,h=a.sliderSize,d=e.Direction,p=d.resolve,m=d.orient,g=e.Elements,v=g.list,b=g.track,y;function _(){y=e.Transition,i([yo,Fg,Wt,at],A)}function A(){e.Controller.isBusy()||(e.Scroll.cancel(),x(t.index),e.Slides.update())}function C(K,te,ue,Se){K!==te&&Q(K>ue)&&(P(),S(O(M(),K>ue),!0)),s(Ts),o(ii,te,ue,K),y.start(te,function(){s(ns),o(bc,te,ue,K),Se&&Se()})}function x(K){S(R(K,!0))}function S(K,te){if(!t.is(Sc)){var ue=te?K:w(K);Sn(v,"transform","translate"+p("X")+"("+ue+"px)"),K!==ue&&o(B1)}}function w(K){if(t.is(Rs)){var te=T(K),ue=te>e.Controller.getEnd(),Se=te<0;(Se||ue)&&(K=O(K,ue))}return K}function O(K,te){var ue=K-z(te),Se=h();return K-=m(Se*(cl(Dt(ue)/Se)||1))*(te?1:-1),K}function P(){S(M(),!0),y.cancel()}function T(K){for(var te=e.Slides.get(),ue=0,Se=1/0,ye=0;ye<te.length;ye++){var q=te[ye].index,D=Dt(R(q,!0)-K);if(D<=Se)Se=D,ue=q;else break}return ue}function R(K,te){var ue=m(u(K-1)-B(K));return te?k(ue):ue}function M(){var K=p("left");return un(v)[K]-un(b)[K]+m(c(!1))}function k(K){return n.trimSpace&&t.is(rs)&&(K=jo(K,0,m(h(!0)-f()))),K}function B(K){var te=n.focus;return te==="center"?(f()-l(K,!0))/2:+te*l(K)||0}function z(K){return R(K?e.Controller.getEnd():0,!!n.trimSpace)}function Q(K){var te=m(O(M(),K));return K?te>=0:te<=v[p("scrollWidth")]-un(b)[p("width")]}function G(K,te){te=pc(te)?M():te;var ue=K!==!0&&m(te)<m(z(!1)),Se=K!==!1&&m(te)>m(z(!0));return ue||Se}return{mount:_,move:C,jump:x,translate:S,shift:O,cancel:P,toIndex:T,toPosition:R,getPosition:M,getLimit:z,exceededLimit:G,reposition:A}}function eL(t,e,n){var r=ze(t),i=r.on,o=r.emit,s=e.Move,a=s.getPosition,l=s.getLimit,c=s.toPosition,u=e.Slides,f=u.isEnough,h=u.getLength,d=n.omitEnd,p=t.is(Rs),m=t.is(rs),g=Me(M,!1),v=Me(M,!0),b=n.start||0,y,_=b,A,C,x;function S(){w(),i([Wt,at,_f],w),i(Fg,O)}function w(){A=h(!0),C=n.perMove,x=n.perPage,y=Q();var D=jo(b,0,d?y:A-1);D!==b&&(b=D,s.reposition())}function O(){y!==Q()&&o(_f)}function P(D,V,F){if(!q()){var N=R(D),W=z(N);W>-1&&(V||W!==b)&&(ue(W),s.move(N,W,_,F))}}function T(D,V,F,N){e.Scroll.scroll(D,V,F,function(){var W=z(s.toIndex(a()));ue(d?ri(W,y):W),N&&N()})}function R(D){var V=b;if(ni(D)){var F=D.match(/([+\-<>])(\d+)?/)||[],N=F[1],W=F[2];N==="+"||N==="-"?V=k(b+ +(""+N+(+W||1)),b):N===">"?V=W?G(+W):g(!0):N==="<"&&(V=v(!0))}else V=p?D:jo(D,0,y);return V}function M(D,V){var F=C||(ye()?1:x),N=k(b+F*(D?-1:1),b,!(C||ye()));return N===-1&&m&&!$1(a(),l(!D),1)?D?0:y:V?N:z(N)}function k(D,V,F){if(f()||ye()){var N=B(D);N!==D&&(V=D,D=N,F=!1),D<0||D>y?!C&&(Ku(0,D,V,!0)||Ku(y,V,D,!0))?D=G(K(D)):p?D=F?D<0?-(A%x||x):A:D:n.rewind?D=D<0?y:0:D=-1:F&&D!==V&&(D=G(K(V)+(D<V?-1:1)))}else D=-1;return D}function B(D){if(m&&n.trimSpace==="move"&&D!==b)for(var V=a();V===c(D,!0)&&Ku(D,0,t.length-1,!n.rewind);)D<b?--D:++D;return D}function z(D){return p?(D+A)%A||0:D}function Q(){for(var D=A-(ye()||p&&C?1:x);d&&D-- >0;)if(c(A-1,!0)!==c(D,!0)){D++;break}return jo(D,0,A-1)}function G(D){return jo(ye()?D:x*D,0,y)}function K(D){return ye()?ri(D,y):bf((D>=y?A-1:D)/x)}function te(D){var V=s.toIndex(D);return m?jo(V,0,y):V}function ue(D){D!==b&&(_=b,b=D)}function Se(D){return D?_:b}function ye(){return!pc(n.focus)||n.isNavigation}function q(){return t.state.is([Ts,hc])&&!!n.waitForTransition}return{mount:S,go:P,scroll:T,getNext:g,getPrev:v,getAdjacent:M,getEnd:Q,setIndex:ue,getIndex:Se,toIndex:G,toPage:K,toDest:te,hasFocus:ye,isBusy:q}}var tL="http://www.w3.org/2000/svg",nL="m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z",yu=40;function rL(t,e,n){var r=ze(t),i=r.on,o=r.bind,s=r.emit,a=n.classes,l=n.i18n,c=e.Elements,u=e.Controller,f=c.arrows,h=c.track,d=f,p=c.prev,m=c.next,g,v,b={};function y(){A(),i(Wt,_)}function _(){C(),y()}function A(){var T=n.arrows;T&&!(p&&m)&&w(),p&&m&&(al(b,{prev:p,next:m}),ll(d,T?"":"none"),Yn(d,v=Hg+"--"+n.direction),T&&(x(),P(),we([p,m],_c,h.id),s(EN,p,m)))}function C(){r.destroy(),pr(d,v),g?(io(f?[p,m]:d),p=m=null):Jn([p,m],Bg)}function x(){i([yo,bc,at,Is,_f],P),o(m,"click",Me(S,">")),o(p,"click",Me(S,"<"))}function S(T){u.go(T,!0)}function w(){d=f||qo("div",a.arrows),p=O(!0),m=O(!1),g=!0,gc(d,[p,m]),!f&&Vg(d,h)}function O(T){var R='<button class="'+a.arrow+" "+(T?a.prev:a.next)+'" type="button"><svg xmlns="'+tL+'" viewBox="0 0 '+yu+" "+yu+'" width="'+yu+'" height="'+yu+'" focusable="false"><path d="'+(n.arrowPath||nL)+'" />';return I1(R)}function P(){if(p&&m){var T=t.index,R=u.getPrev(),M=u.getNext(),k=R>-1&&T<R?l.last:l.prev,B=M>-1&&T>M?l.first:l.next;p.disabled=R<0,m.disabled=M<0,we(p,dn,k),we(m,dn,B),s(PN,p,m,R,M)}}return{arrows:b,mount:y,destroy:C,update:P}}var iL=Ng+"-interval";function oL(t,e,n){var r=ze(t),i=r.on,o=r.bind,s=r.emit,a=dd(n.interval,t.go.bind(t,">"),x),l=a.isPaused,c=e.Elements,u=e.Elements,f=u.root,h=u.toggle,d=n.autoplay,p,m,g=d==="pause";function v(){d&&(b(),h&&we(h,_c,c.track.id),g||y(),C())}function b(){n.pauseOnHover&&o(f,"mouseenter mouseleave",function(w){p=w.type==="mouseenter",A()}),n.pauseOnFocus&&o(f,"focusin focusout",function(w){m=w.type==="focusin",A()}),h&&o(h,"click",function(){g?y():_(!0)}),i([ii,Dg,at],a.rewind),i(ii,S)}function y(){l()&&e.Slides.isEnough()&&(a.start(!n.resetProgress),m=p=g=!1,C(),s(F1))}function _(w){w===void 0&&(w=!0),g=!!w,C(),l()||(a.pause(),s(D1))}function A(){g||(p||m?_(!1):y())}function C(){h&&(hr(h,oo,!g),we(h,dn,n.i18n[g?"play":"pause"]))}function x(w){var O=c.bar;O&&Sn(O,"width",w*100+"%"),s(TN,w)}function S(w){var O=e.Slides.getAt(w);a.set(O&&+Pn(O.slide,iL)||n.interval)}return{mount:v,destroy:a.cancel,play:y,pause:_,isPaused:l}}function sL(t,e,n){var r=ze(t),i=r.on;function o(){n.cover&&(i(M1,Me(a,!0)),i([yo,Wt,at],Me(s,!0)))}function s(l){e.Slides.forEach(function(c){var u=vc(c.container||c.slide,"img");u&&u.src&&a(l,u,c)})}function a(l,c,u){u.style("background",l?'center/cover no-repeat url("'+c.src+'")':"",!0),ll(c,l?"none":"")}return{mount:o,destroy:Me(s,!1)}}var aL=10,lL=600,cL=.6,uL=1.5,fL=800;function dL(t,e,n){var r=ze(t),i=r.on,o=r.emit,s=t.state.set,a=e.Move,l=a.getPosition,c=a.getLimit,u=a.exceededLimit,f=a.translate,h=t.is(rs),d,p,m=1;function g(){i(ii,_),i([Wt,at],A)}function v(x,S,w,O,P){var T=l();if(_(),w&&(!h||!u())){var R=e.Layout.sliderSize(),M=Hp(x)*R*bf(Dt(x)/R)||0;x=a.toPosition(e.Controller.toDest(x%R))+M}var k=$1(T,x,1);m=1,S=k?0:S||yf(Dt(x-T)/uL,fL),p=O,d=dd(S,b,Me(y,T,x,P),1),s(hc),o(Dg),d.start()}function b(){s(ns),p&&p(),o(Is)}function y(x,S,w,O){var P=l(),T=x+(S-x)*C(O),R=(T-P)*m;f(P+R),h&&!w&&u()&&(m*=cL,Dt(R)<aL&&v(c(u(!0)),lL,!1,p,!0))}function _(){d&&d.cancel()}function A(){d&&!d.isPaused()&&(_(),b())}function C(x){var S=n.easingFunc;return S?S(x):1-Math.pow(1-x,4)}return{mount:g,destroy:_,scroll:v,cancel:A}}var No={passive:!1,capture:!0};function hL(t,e,n){var r=ze(t),i=r.on,o=r.emit,s=r.bind,a=r.unbind,l=t.state,c=e.Move,u=e.Scroll,f=e.Controller,h=e.Elements.track,d=e.Media.reduce,p=e.Direction,m=p.resolve,g=p.orient,v=c.getPosition,b=c.exceededLimit,y,_,A,C,x,S=!1,w,O,P;function T(){s(h,wh,kp,No),s(h,Ah,kp,No),s(h,eO,M,No),s(h,"click",z,{capture:!0}),s(h,"dragstart",ur),i([yo,Wt],R)}function R(){var E=n.drag;ae(!E),C=E==="free"}function M(E){if(w=!1,!O){var I=W(E);N(E.target)&&(I||!E.button)&&(f.isBusy()?ur(E,!0):(P=I?h:window,x=l.is([Ts,hc]),A=null,s(P,wh,k,No),s(P,Ah,B,No),c.cancel(),u.cancel(),Q(E)))}}function k(E){if(l.is(Qu)||(l.set(Qu),o(SN)),E.cancelable)if(x){c.translate(y+F(ye(E)));var I=q(E)>g0,L=S!==(S=b());(I||L)&&Q(E),w=!0,o(wN),ur(E)}else te(E)&&(x=K(E),ur(E))}function B(E){l.is(Qu)&&(l.set(ns),o(AN)),x&&(G(E),ur(E)),a(P,wh,k),a(P,Ah,B),x=!1}function z(E){!O&&w&&ur(E,!0)}function Q(E){A=_,_=E,y=v()}function G(E){var I=ue(E),L=Se(I),U=n.rewind&&n.rewindByDrag;d(!1),C?f.scroll(L,0,n.snap):t.is(Sc)?f.go(g(Hp(I))<0?U?"<":"-":U?">":"+"):t.is(rs)&&S&&U?f.go(b(!0)?">":"<"):f.go(f.toDest(L),!0),d(!0)}function K(E){var I=n.dragMinThreshold,L=il(I),U=L&&I.mouse||0,H=(L?I.touch:+I)||10;return Dt(ye(E))>(W(E)?H:U)}function te(E){return Dt(ye(E))>Dt(ye(E,!0))}function ue(E){if(t.is(Rs)||!S){var I=q(E);if(I&&I<g0)return ye(E)/I}return 0}function Se(E){return v()+Hp(E)*ri(Dt(E)*(n.flickPower||600),C?1/0:e.Layout.listSize()*(n.flickMaxPages||1))}function ye(E,I){return V(E,I)-V(D(E),I)}function q(E){return Bp(E)-Bp(D(E))}function D(E){return _===E&&A||_}function V(E,I){return(W(E)?E.changedTouches[0]:E)["page"+m(I?"Y":"X")]}function F(E){return E/(S&&t.is(rs)?QN:1)}function N(E){var I=n.noDrag;return!ol(E,"."+G1+", ."+yd)&&(!I||!ol(E,I))}function W(E){return typeof TouchEvent<"u"&&E instanceof TouchEvent}function re(){return x}function ae(E){O=E}return{mount:T,disable:ae,isDragging:re}}var pL={Spacebar:" ",Right:md,Left:pd,Up:H1,Down:q1};function qg(t){return t=ni(t)?t:t.key,pL[t]||t}var v0="keydown";function mL(t,e,n){var r=ze(t),i=r.on,o=r.bind,s=r.unbind,a=t.root,l=e.Direction.resolve,c,u;function f(){h(),i(Wt,d),i(Wt,h),i(ii,m)}function h(){var v=n.keyboard;v&&(c=v==="global"?window:a,o(c,v0,g))}function d(){s(c,v0)}function p(v){u=v}function m(){var v=u;u=!0,E1(function(){u=v})}function g(v){if(!u){var b=qg(v);b===l(pd)?t.go("<"):b===l(md)&&t.go(">")}}return{mount:f,destroy:d,disable:p}}var ha=Ng+"-lazy",Gu=ha+"-srcset",gL="["+ha+"], ["+Gu+"]";function vL(t,e,n){var r=ze(t),i=r.on,o=r.off,s=r.bind,a=r.emit,l=n.lazyLoad==="sequential",c=[bc,Is],u=[];function f(){n.lazyLoad&&(h(),i(at,h))}function h(){_r(u),d(),l?v():(o(c),i(c,p),p())}function d(){e.Slides.forEach(function(b){jg(b.slide,gL).forEach(function(y){var _=Pn(y,ha),A=Pn(y,Gu);if(_!==y.src||A!==y.srcset){var C=n.classes.spinner,x=y.parentElement,S=vc(x,"."+C)||qo("span",C,x);u.push([y,b,S]),y.src||ll(y,"none")}})})}function p(){u=u.filter(function(b){var y=n.perPage*((n.preloadPages||1)+1)-1;return b[1].isWithin(t.index,y)?m(b):!0}),u.length||o(c)}function m(b){var y=b[0];Yn(b[1].slide,Up),s(y,"load error",Me(g,b)),we(y,"src",Pn(y,ha)),we(y,"srcset",Pn(y,Gu)),Jn(y,ha),Jn(y,Gu)}function g(b,y){var _=b[0],A=b[1];pr(A.slide,Up),y.type!=="error"&&(io(b[2]),ll(_,""),a(M1,_,A),a(ul)),l&&v()}function v(){u.length&&m(u.shift())}return{mount:f,destroy:Me(_r,u),check:p}}function yL(t,e,n){var r=ze(t),i=r.on,o=r.emit,s=r.bind,a=e.Slides,l=e.Elements,c=e.Controller,u=c.hasFocus,f=c.getIndex,h=c.go,d=e.Direction.resolve,p=l.pagination,m=[],g,v;function b(){y(),i([Wt,at,_f],b);var O=n.pagination;p&&ll(p,O?"":"none"),O&&(i([ii,Dg,Is],w),_(),w(),o(xN,{list:g,items:m},S(t.index)))}function y(){g&&(io(p?li(g.children):g),pr(g,v),_r(m),g=null),r.destroy()}function _(){var O=t.length,P=n.classes,T=n.i18n,R=n.perPage,M=u()?c.getEnd()+1:cl(O/R);g=p||qo("ul",P.pagination,l.track.parentElement),Yn(g,v=bd+"--"+x()),we(g,mr,"tablist"),we(g,dn,T.select),we(g,kg,x()===gd?"vertical":"");for(var k=0;k<M;k++){var B=qo("li",null,g),z=qo("button",{class:P.page,type:"button"},B),Q=a.getIn(k).map(function(K){return K.slide.id}),G=!u()&&R>1?T.pageX:T.slideX;s(z,"click",Me(A,k)),n.paginationKeyboard&&s(z,"keydown",Me(C,k)),we(B,mr,"presentation"),we(z,mr,"tab"),we(z,_c,Q.join(" ")),we(z,dn,qp(G,k+1)),we(z,Wo,-1),m.push({li:B,button:z,page:k})}}function A(O){h(">"+O,!0)}function C(O,P){var T=m.length,R=qg(P),M=x(),k=-1;R===d(md,!1,M)?k=++O%T:R===d(pd,!1,M)?k=(--O+T)%T:R==="Home"?k=0:R==="End"&&(k=T-1);var B=m[k];B&&(T1(B.button),h(">"+k),ur(P,!0))}function x(){return n.paginationDirection||n.direction}function S(O){return m[c.toPage(O)]}function w(){var O=S(f(!0)),P=S(f());if(O){var T=O.button;pr(T,oo),Jn(T,f0),we(T,Wo,-1)}if(P){var R=P.button;Yn(R,oo),we(R,f0,!0),we(R,Wo,"")}o(CN,{list:g,items:m},O,P)}return{items:m,mount:b,destroy:y,getAt:S,update:w}}var bL=[" ","Enter"];function _L(t,e,n){var r=n.isNavigation,i=n.slideFocus,o=[];function s(){t.splides.forEach(function(p){p.isParent||(c(t,p.splide),c(p.splide,t))}),r&&u()}function a(){o.forEach(function(p){p.destroy()}),_r(o)}function l(){a(),s()}function c(p,m){var g=ze(p);g.on(ii,function(v,b,y){m.go(m.is(Rs)?y:v)}),o.push(g)}function u(){var p=ze(t),m=p.on;m(j1,h),m(k1,d),m([yo,Wt],f),o.push(p),p.emit(L1,t.splides)}function f(){we(e.Elements.list,kg,n.direction===gd?"vertical":"")}function h(p){t.go(p.index)}function d(p,m){$g(bL,qg(m))&&(h(p),ur(m))}return{setup:Me(e.Media.set,{slideFocus:pc(i)?r:i},!0),mount:s,destroy:a,remount:l}}function SL(t,e,n){var r=ze(t),i=r.bind,o=0;function s(){n.wheel&&i(e.Elements.track,"wheel",a,No)}function a(c){if(c.cancelable){var u=c.deltaY,f=u<0,h=Bp(c),d=n.wheelMinThreshold||0,p=n.wheelSleep||0;Dt(u)>d&&h-o>p&&(t.go(f?"<":">"),o=h),l(f)&&ur(c)}}function l(c){return!n.releaseWheel||t.state.is(Ts)||e.Controller.getAdjacent(c)!==-1}return{mount:s}}var wL=90;function AL(t,e,n){var r=ze(t),i=r.on,o=e.Elements.track,s=n.live&&!n.isNavigation,a=qo("span",BN),l=dd(wL,Me(u,!1));function c(){s&&(h(!e.Autoplay.isPaused()),we(o,p0,!0),a.textContent="…",i(F1,Me(h,!0)),i(D1,Me(h,!1)),i([bc,Is],Me(u,!0)))}function u(d){we(o,h0,d),d?(gc(o,a),l.start()):(io(a),l.cancel())}function f(){Jn(o,[d0,p0,h0]),io(a)}function h(d){s&&we(o,d0,d?"off":"polite")}return{mount:c,disable:h,destroy:f}}var OL=Object.freeze({__proto__:null,Media:$N,Direction:VN,Elements:zN,Slides:GN,Layout:YN,Clones:ZN,Move:XN,Controller:eL,Arrows:rL,Autoplay:oL,Cover:sL,Scroll:dL,Drag:hL,Keyboard:mL,LazyLoad:vL,Pagination:yL,Sync:_L,Wheel:SL,Live:AL}),EL={prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},PL={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:WN,i18n:EL,reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function xL(t,e,n){var r=e.Slides;function i(){ze(t).on([yo,at],o)}function o(){r.forEach(function(a){a.style("transform","translateX(-"+100*a.index+"%)")})}function s(a,l){r.style("transition","opacity "+n.speed+"ms "+n.easing),E1(l)}return{mount:i,start:s,cancel:kp}}function CL(t,e,n){var r=e.Move,i=e.Controller,o=e.Scroll,s=e.Elements.list,a=Me(Sn,s,"transition"),l;function c(){ze(t).bind(s,"transitionend",function(d){d.target===s&&l&&(f(),l())})}function u(d,p){var m=r.toPosition(d,!0),g=r.getPosition(),v=h(d);Dt(m-g)>=1&&v>=1?n.useScroll?o.scroll(m,v,!1,p):(a("transform "+v+"ms "+n.easing),r.translate(m,!0),l=p):(r.jump(d),p())}function f(){a(""),o.cancel()}function h(d){var p=n.rewindSpeed;if(t.is(rs)&&p){var m=i.getIndex(!0),g=i.getEnd();if(m===0&&d>=g||m>=g&&d===0)return p}return n.speed}return{mount:c,start:u,cancel:f}}var TL=function(){function t(n,r){this.event=ze(),this.Components={},this.state=IN(Mo),this.splides=[],this._o={},this._E={};var i=ni(n)?R1(document,n):n;da(i,i+" is invalid."),this.root=i,r=zr({label:Pn(i,dn)||"",labelledby:Pn(i,Mg)||""},PL,t.defaults,r||{});try{zr(r,JSON.parse(Pn(i,Ng)))}catch{da(!1,"Invalid JSON")}this._o=Object.create(zr({},r))}var e=t.prototype;return e.mount=function(r,i){var o=this,s=this.state,a=this.Components;da(s.is([Mo,vf]),"Already mounted!"),s.set(Mo),this._C=a,this._T=i||this._T||(this.is(Sc)?xL:CL),this._E=r||this._E;var l=al({},OL,this._E,{Transition:this._T});return zi(l,function(c,u){var f=c(o,a,o._o);a[u]=f,f.setup&&f.setup()}),zi(a,function(c){c.mount&&c.mount()}),this.emit(yo),Yn(this.root,HN),s.set(ns),this.emit(c0),this},e.sync=function(r){return this.splides.push({splide:r}),r.splides.push({splide:this,isParent:!0}),this.state.is(ns)&&(this._C.Sync.remount(),r.Components.Sync.remount()),this},e.go=function(r){return this._C.Controller.go(r),this},e.on=function(r,i){return this.event.on(r,i),this},e.off=function(r){return this.event.off(r),this},e.emit=function(r){var i;return(i=this.event).emit.apply(i,[r].concat(li(arguments,1))),this},e.add=function(r,i){return this._C.Slides.add(r,i),this},e.remove=function(r){return this._C.Slides.remove(r),this},e.is=function(r){return this._o.type===r},e.refresh=function(){return this.emit(at),this},e.destroy=function(r){r===void 0&&(r=!0);var i=this.event,o=this.state;return o.is(Mo)?ze(this).on(c0,this.destroy.bind(this,r)):(zi(this._C,function(s){s.destroy&&s.destroy(r)},!0),i.emit(N1),i.destroy(),r&&_r(this.splides),o.set(vf)),this},hN(t,[{key:"options",get:function(){return this._o},set:function(r){this._C.Media.set(r,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}]),t}(),Wg=TL;Wg.defaults={};Wg.STATES=mN;document.querySelectorAll(".events-splide").length>0&&document.querySelectorAll(".events-splide").forEach(e=>{new Wg(e,{type:"slide",drag:"free",snap:!0,speed:1e3,gap:"1.5em",perPage:2,arrows:!1,pagination:!1,breakpoints:{768:{perPage:1.5},500:{perPage:1}}}).mount()});window.addEventListener("load",function(){var t=document.querySelectorAll(".video_gallery");t.forEach(function(e){let n=window.innerWidth>=769?6:2,i=e.querySelector(".grid").querySelectorAll("a"),o=e.querySelector(".seeMore");i.length>n?o.style.display="block":o.style.display="none",o.addEventListener("click",function(){i.forEach(function(s){s.style.display="block"}),o.style.display="none"})})});const IL={"auth.failed":"These credentials do not match our records.","auth.password":"The provided password is incorrect.","auth.throttle":"Too many login attempts. Please try again in :seconds seconds.","pagination.previous":"« Previous","pagination.next":"Next »","passwords.reset":"Your password has been reset.","passwords.sent":"We have emailed your password reset link.","passwords.throttled":"Please wait before retrying.","passwords.token":"This password reset token is invalid.","passwords.user":"We can't find a user with that email address.","validation.accepted":"The :attribute field must be accepted.","validation.accepted_if":"The :attribute field must be accepted when :other is :value.","validation.active_url":"The :attribute field must be a valid URL.","validation.after":"The :attribute field must be a date after :date.","validation.after_or_equal":"The :attribute field must be a date after or equal to :date.","validation.alpha":"The :attribute field must only contain letters.","validation.alpha_dash":"The :attribute field must only contain letters, numbers, dashes, and underscores.","validation.alpha_num":"The :attribute field must only contain letters and numbers.","validation.array":"The :attribute field must be an array.","validation.ascii":"The :attribute field must only contain single-byte alphanumeric characters and symbols.","validation.before":"The :attribute field must be a date before :date.","validation.before_or_equal":"The :attribute field must be a date before or equal to :date.","validation.between.array":"The :attribute field must have between :min and :max items.","validation.between.file":"The :attribute field must be between :min and :max kilobytes.","validation.between.numeric":"The :attribute field must be between :min and :max.","validation.between.string":"The :attribute field must be between :min and :max characters.","validation.boolean":"The :attribute field must be true or false.","validation.can":"The :attribute field contains an unauthorized value.","validation.confirmed":"The :attribute field confirmation does not match.","validation.current_password":"The password is incorrect.","validation.date":"The :attribute field must be a valid date.","validation.date_equals":"The :attribute field must be a date equal to :date.","validation.date_format":"The :attribute field must match the format :format.","validation.decimal":"The :attribute field must have :decimal decimal places.","validation.declined":"The :attribute field must be declined.","validation.declined_if":"The :attribute field must be declined when :other is :value.","validation.different":"The :attribute field and :other must be different.","validation.digits":"The :attribute field must be :digits digits.","validation.digits_between":"The :attribute field must be between :min and :max digits.","validation.dimensions":"The :attribute field has invalid image dimensions.","validation.distinct":"The :attribute field has a duplicate value.","validation.doesnt_end_with":"The :attribute field must not end with one of the following: :values.","validation.doesnt_start_with":"The :attribute field must not start with one of the following: :values.","validation.email":"The :attribute field must be a valid email address.","validation.ends_with":"The :attribute field must end with one of the following: :values.","validation.enum":"The selected :attribute is invalid.","validation.exists":"The selected :attribute is invalid.","validation.extensions":"The :attribute field must have one of the following extensions: :values.","validation.file":"The :attribute field must be a file.","validation.filled":"The :attribute field must have a value.","validation.gt.array":"The :attribute field must have more than :value items.","validation.gt.file":"The :attribute field must be greater than :value kilobytes.","validation.gt.numeric":"The :attribute field must be greater than :value.","validation.gt.string":"The :attribute field must be greater than :value characters.","validation.gte.array":"The :attribute field must have :value items or more.","validation.gte.file":"The :attribute field must be greater than or equal to :value kilobytes.","validation.gte.numeric":"The :attribute field must be greater than or equal to :value.","validation.gte.string":"The :attribute field must be greater than or equal to :value characters.","validation.hex_color":"The :attribute field must be a valid hexadecimal color.","validation.image":"The :attribute field must be an image.","validation.in":"The selected :attribute is invalid.","validation.in_array":"The :attribute field must exist in :other.","validation.integer":"The :attribute field must be an integer.","validation.ip":"The :attribute field must be a valid IP address.","validation.ipv4":"The :attribute field must be a valid IPv4 address.","validation.ipv6":"The :attribute field must be a valid IPv6 address.","validation.json":"The :attribute field must be a valid JSON string.","validation.lowercase":"The :attribute field must be lowercase.","validation.lt.array":"The :attribute field must have less than :value items.","validation.lt.file":"The :attribute field must be less than :value kilobytes.","validation.lt.numeric":"The :attribute field must be less than :value.","validation.lt.string":"The :attribute field must be less than :value characters.","validation.lte.array":"The :attribute field must not have more than :value items.","validation.lte.file":"The :attribute field must be less than or equal to :value kilobytes.","validation.lte.numeric":"The :attribute field must be less than or equal to :value.","validation.lte.string":"The :attribute field must be less than or equal to :value characters.","validation.mac_address":"The :attribute field must be a valid MAC address.","validation.max.array":"The :attribute field must not have more than :max items.","validation.max.file":"The file may not be greater than :max kB.","validation.max.numeric":"The :attribute field must not be greater than :max.","validation.max.string":"The :attribute field must not be greater than :max characters.","validation.max_digits":"The :attribute field must not have more than :max digits.","validation.mimes":"The file must be a file of type: :values.","validation.mimetypes":"The :attribute field must be a file of type: :values.","validation.min.array":"The :attribute field must have at least :min items.","validation.min.file":"The :attribute field must be at least :min kilobytes.","validation.min.numeric":"The :attribute field must be at least :min.","validation.min.string":"The :attribute field must be at least :min characters.","validation.min_digits":"The :attribute field must have at least :min digits.","validation.missing":"The :attribute field must be missing.","validation.missing_if":"The :attribute field must be missing when :other is :value.","validation.missing_unless":"The :attribute field must be missing unless :other is :value.","validation.missing_with":"The :attribute field must be missing when :values is present.","validation.missing_with_all":"The :attribute field must be missing when :values are present.","validation.multiple_of":"The :attribute field must be a multiple of :value.","validation.not_in":"The selected :attribute is invalid.","validation.not_regex":"The :attribute field format is invalid.","validation.numeric":"The :attribute field must be a number.","validation.password.letters":"The :attribute field must contain at least one letter.","validation.password.mixed":"The :attribute field must contain at least one uppercase and one lowercase letter.","validation.password.numbers":"The :attribute field must contain at least one number.","validation.password.symbols":"The :attribute field must contain at least one symbol.","validation.password.uncompromised":"The given :attribute has appeared in a data leak. Please choose a different :attribute.","validation.present":"The :attribute field must be present.","validation.present_if":"The :attribute field must be present when :other is :value.","validation.present_unless":"The :attribute field must be present unless :other is :value.","validation.present_with":"The :attribute field must be present when :values is present.","validation.present_with_all":"The :attribute field must be present when :values are present.","validation.prohibited":"The :attribute field is prohibited.","validation.prohibited_if":"The :attribute field is prohibited when :other is :value.","validation.prohibited_unless":"The :attribute field is prohibited unless :other is in :values.","validation.prohibits":"The :attribute field prohibits :other from being present.","validation.regex":"The :attribute field format is invalid.","validation.required":"The :attribute field is required.","validation.required_array_keys":"The :attribute field must contain entries for: :values.","validation.required_if":"The :attribute field is required when :other is :value.","validation.required_if_accepted":"The :attribute field is required when :other is accepted.","validation.required_unless":"The :attribute field is required unless :other is in :values.","validation.required_with":"The :attribute field is required when :values is present.","validation.required_with_all":"The :attribute field is required when :values are present.","validation.required_without":"The :attribute field is required when :values is not present.","validation.required_without_all":"The :attribute field is required when none of :values are present.","validation.same":"The :attribute field must match :other.","validation.size.array":"The :attribute field must contain :size items.","validation.size.file":"The :attribute field must be :size kilobytes.","validation.size.numeric":"The :attribute field must be :size.","validation.size.string":"The :attribute field must be :size characters.","validation.starts_with":"The :attribute field must start with one of the following: :values.","validation.string":"The :attribute field must be a string.","validation.timezone":"The :attribute field must be a valid timezone.","validation.unique":"The :attribute has already been taken.","validation.uploaded":"The :attribute failed to upload.","validation.uppercase":"The :attribute field must be uppercase.","validation.url":"The :attribute field must be a valid URL.","validation.ulid":"The :attribute field must be a valid ULID.","validation.uuid":"The :attribute field must be a valid UUID.","validation.custom.attribute-name.rule-name":"custom-message","employees.see_all":"See all","employees.services_related_title":"I offer professional services to my specific clientele :","employees.corpo_our_team":"Discover the opportunities available to your company by meeting with a partner at your nearest office!","employees.syndics_our_team":"Our qualified team and competent support staff can assist you in making informed decisions about all aspects of your financial situation with utmost confidentiality.","employees.corpo_label":"{0}partners|{1}partner|[2,*]partners","employees.syndics_label":"{0}employees|{1}employee|[2,*]employees","employees.search.corpo_no_results":"We're sorry, but there are currently no partner matching your search criteria. We invite you to check our site regularly for future updates, or to broaden your search criteria to obtain more results.","employees.search.syndics_no_results":"We're sorry, but there are currently no employees matching your search criteria. We invite you to check our site regularly for future updates, or to broaden your search criteria to obtain more results.","expertises.label":"Expertises","filters.no_results":"There are no results for this search.","filters.category.default":"Categories","filters.date.future":"Future","filters.date.default":"Dates","filters.date.this-week":"This week","filters.date.this-month":"This month","filters.date.last-3months":"Last three months","filters.date.this-year":"This year","filters.date.last-year":"Last year","filters.date.more-than-a-year-ago":"More than a year ago","form.general.required_fields":"Required fields","form.general.submit_button":"Submit","form.general.drop_file":"Drop your file here or","form.general.select_file":"Select your file","form.general.drop_files":"Drop your files here or","form.general.select_files":"Select your files","form.general.allowed_files":"Allowed files:","form.general.footer":'For any information concerning the protection of your personal information, please send your request to <a href="mailto:prp@mallette.ca\\">prp@mallette.ca</a>.',"form.specific_application.submit_button":"Submit my application","form.specific_application.title":"Apply now","form.specific_application.success_message":"We thank you for submitting your application. We appreciate your interest and will be in touch with you shortly.","form.specific_application.footer":'For any information concerning the protection of your personal information, please send your request to <a href="mailto:recrutement@mallette.ca\\">recrutement@mallette.ca</a>.',"form.spontaneous_application.submit_button":"Submit my application","form.spontaneous_application.title":"Spontaneous application","form.spontaneous_application.success_message":"We thank you for submitting your application. We appreciate your interest and will be in touch with you shortly.","form.spontaneous_application.footer":'For any information concerning the protection of your personal information, please send your request to <a href="mailto:recrutement@mallette.ca\\">recrutement@mallette.ca</a>.',"form.make_an_appointment.submit_button":"Submit my application","form.make_an_appointment.title":"Contact us","form.make_an_appointment.success_message":"Your appointment request has been successfully sent. We will get back to you shortly.","form.make_an_appointment_syndics.submit_button":"Submit","form.make_an_appointment_syndics.title":"Contact us","form.make_an_appointment_syndics.success_message":"Thank you, your request has been received!","form.form_consultation.submit_button":"Submit","form.form_consultation.title":"Contact us","form.form_consultation.success_message":"Thank you, your request has been received!","form.write_us.title":"Write us","form.write_us.contact_title":"Contact us","form.write_us.success_message":"Thank you, your request has been received!","form.reseau_mallette.title":"Registration form for Réseau Mallette","form.reseau_mallette.contact_title":"Registration for Réseau Mallette","form.reseau_mallette.success_message":"Thank you, your request has been received!","form.error_message":"There was a problem with your submission. Please review the fields below.","form.general_error_message":"An error occurred while submitting the form. Please try again.","form.zoho_errors.already_postulated":"You have already applied to this job offer.","form.zoho_errors.invalid_email":"Invalid email.","gather_content.cta_title":"Contact one of our associates now","gather_content.cta_button_title":"Contact us","gather_content.featured_entries_title":"Related articles","gather_content.what_we_offer_title":"What we offer","global.advices":"advice(s)","global.tips":"tip(s)","global.events":"event(s)","global.news":"news","global.offices":"office(s)","global.jobs":"job(s)","global.clients":"client(s)","global.public_records":"public record(s)","global.solutions":"{0}solutions|{1}solution|[2,*]solutions","global.services":"{0}services|{1}service|[2,*]services","global.services_related_title":"{1}Service that can meet your needs|[2,*]Services that can meet your needs","global.all_our_solutions":"All our solutions","global.all_our_services":"All our services","global.related_articles":"Related articles","global.all_articles":"See all articles","global.all_our":"All our :type","global.contact_details":"Contact details","global.contact_me":"Contact me","global.contact_us":"Contact us","global.itinerary":"Itinerary","global.learn_more":"Learn more","global.next_page":"Next page","global.out_of":"out of","global.pages":"Page","global.previous_page":"Previous page","global.published":"Published","global.reset":"Reset","global.see_more":"See more","global.share":"Share this page:","global.showing_results":"results","global.write_us.corpo":"Contact us","global.write_us.syndics":"Contact us","global.city_or_postal_code":"City","global.play_video":"Play video","global.office_of":"Office of","global.linkedin_profile":"LinkedIn profile","global.extension":"ext.","global.associate":"Partner","global.associateM":"Partner","global.associateF":"Partner","global.available_in_person_and_virtually":"Available in person and virtually","global.available_in_person":"Available in person","global.available_virtually":"Available virtually","global.free_consultation":"Free Consultation","global.make_an_appointment":"Contact us","global.view_all_events":"View all events","global.share_page":"I want to share this page with you","global.this_content_may_interest_you":"This content may interest you","global.share_by_email":"Share by email","global.days.monday":"Monday","global.days.tuesday":"Tuesday","global.days.wednesday":"Wednesday","global.days.thursday":"Thursday","global.days.friday":"Friday","global.days.saturday":"Saturday","global.days.sunday":"Sunday","global.placekit.no_results":"No results for","global.change_office":"Change office","global.portal_city_intro":"You are on the client portal of Mallette","global.actuarial_access":"Actuarial access","global.legal_services":"Legal services","global.enter_city":"Enter city","global.siteName.corpo":"Mallette","global.siteName.syndics":"Mallette syndics","global.borrowed_amount":"What is the borrowed amount?","global.total_amount":"Enter the total amount you are borrowing.","global.interest_rate":"What is the interest rate?","global.how_often":"How often do you want to make payments?","global.monthly":"Monthly","global.bimonthly":"Two times per month","global.eachtwoweeks":"Each two weeks","global.weekly":"Weekly","global.loan_term":"What is the loan term (in years)?","global.yrs":"yr","global.your_payments":"Your payments will be","global.loan_of":"for a loan of","global.at":"at","global.with_amortization":"With an amortization of","global.not_valid":"These values do not appear to be valid.","global.gross_revenue":"What is your gross revenue?","global.rent_price":"What is the cost of your rent?","global.rent_price_incl":"Including: rent or mortgage, heating, electricity, home insurance, condo fees, and taxes.","global.car_price":"What is your car loan or lease?","global.other_price":"Do you have any other expenses related to other forms of financing?","global.other_price_incl":"E.g. financed furniture and appliances","global.by_week":"Weekly","global.by_two_week":"Bi-weekly","global.by_month":"Monthly","global.by_year":"Yearly","global.dol_by_week":"$ / Weekly","global.dol_by_two_week":"$ / Bi-weekly","global.dol_by_month":"$ / Monthly","global.dol_by_year":"$ / Yearly","global.per_by_week":"% / Weekly","global.per_by_two_week":"% / Bi-weekly","global.per_by_month":"% / Monthly","global.per_by_year":"% / Yearly","global.calculate":"Calculate","global.with_annual_income":"With an annual income of","global.and_expenses_of":"and annual expenses of","global.your_dept_ratio_is":"you obtain a debt ratio of","global.revenues":"Revenues","global.net_employment_income":"Net employment income","global.net_employment_income_subtitle":"Amount deposited into your account for each pay period","global.net_pensions_annuities":"Net pensions and annuities","global.child_support_received":"Child support received","global.spousal_support_received":"Spousal support received","global.net_employment_insurance_benefits":"Net employment insurance benefits","global.net_social_assistance_benefits":"Net social assistance benefits","global.net_self_employment_income":"Net self-employment income","global.child_tax_benefits":"Child tax benefits","global.other_net_taxable_income":"Other net taxable income","global.non_discretionary_spending":"Non discretionary spending","global.child_support_paid":"Child support paid","global.spousal_support_paid":"Spousal support paid","global.childcare_expenses":"Childcare expenses","global.medical_expenses":"Medical expenses","global.court_fines_penalties":"Court fines and penalties","global.employment_expenses":"Employment expenses","global.housing":"Housing","global.rent_mortgage_payments":"Rent / Mortgage payments","global.property_taxes":"Property taxes","global.home_insurance":"Home insurance","global.electricity":"Electricity","global.heating":"Heating","global.phone":"Phone","global.public_services":"Public services","global.cable_satellite_device_rentals":"Cable / Satellite / Device rentals","global.internet":"Internet","global.transport":"Transport","global.car_payments":"Car payments","global.car_gas":"Car gas","global.car_maintenance":"Car maintenance","global.car_insurance":"Car insurance","global.public_transportation":"Public transportation","global.essential_needs":"Essential needs","global.life_insurance":"Life insurance","global.groceries":"Groceries","global.healthcare":"Healthcare (dentist, psychologist, eyeglasses, etc)","global.personal_care":"Personal care (pharmacy, diapers, soap, etc)","global.clothing":"Clothing","global.cleaning_laundry":"Cleaning and laundry","global.credit_related_expenses":"Credit related expenses","global.credit_card":"Credit card","global.loans_lines_of_credit":"Loans or lines of credit","global.other_expenses":"Other expenses","global.add_expense":"Add an expense to the list","global.result_balanced":"Your budget is balanced.","global.result_deficit":"Your budget is in deficit.","global.income_per_month":"Income per month","global.expenses_per_month":"Expenses per month","global.surplus_per_month":"Surplus per month","global.deficit_per_month":"Deficit per month","global.card_balance":"What is the balance on your credit card?","global.card_interest":"What is the annual interest rate on the card?","global.desired_payments_question":"How much can you afford to pay?","global.minimum_payments_question":"What is the minimum monthly payment?","global.minimum_payment":"Minimum payment per month of","global.paid_off_your_credit_card":"You will have paid off your credit card in","global.with":"with","global.in_interest_charges":"in interest charges.","global.impossible_to_pay_fully":"The calculation indicates that it is impossible to repay your debt with the specified minimum payment. Please ensure that the interest rates and amounts entered are correct.","global.scenario_a":"Scenario A","global.scenario_b":"Scenario B","imports.label":"Imports","imports.office_hours_import.file_missing":"The file is required in order to import.","imports.office_hours_import.page_title":"Office opening hours imports","imports.office_hours_import.nav_label":"Import office hours","imports.office_hours_import.pending":"The file has been imported successfully. The changes will be visible soon.","jobs.general.reset":"Reset","jobs.general.showing_results":"results","jobs.general.out_of":"out of","jobs.general.published":"Published","jobs.general.share":"Share this page:","jobs.general.jobs":"job(s)","jobs.general.categories":"Categories","jobs.general.types":"Types","jobs.general.city_or_zip_code":"City","jobs.general.search":"Search","jobs.general.no_results":"We're sorry, but there are currently no job offers matching your search criteria. We invite you to check our site regularly for future updates, or to broaden your search criteria to obtain more results.","jobs.general.our_jobs_offer_region":"Our job offers in the region","jobs.buttons.see_all_jobs":"See all job offers","jobs.animated_text":"Integrity - Leadership - Respect - Mutual aid","menu.secondary_menu.our_offices":"Our offices","menu.secondary_menu.legal":"Licensed Insolvency Trustees","menu.buttons.actuarial_services":"Actuarial services access","menu.tertiary.is_part_of_the_group":"doing business under the name Mallette Redressement financier, is part of the group","menu.tertiary.website_by":"Website by","offices.our_team":"Our team","offices.local_office":"your local office","offices.open":"Open","offices.open_until":"Open until :end_time","offices.closed":"Closed","offices.closed_opens_at":"Closed, opens at :start_time","offices.closed_opens_at_day":"Closed, opens :day at :start_time","offices.open_hours":"Opening hours","offices.special_hours":"Special hours","offices.other":"Other","offices.general.out_of":"out of","offices.general.find_me":"Locate me","offices.general.city_or_zip_code":"City","offices.corpo_label":"{0}offices|{1}office|[2,*]offices","offices.syndics_label":"{0}offices|{1}office|[2,*]offices","offices.search.corpo_no_results":"There are no results for this search.","offices.search.syndics_no_results":"There are no results for this search.","paginate.see_more":"Show :nb more results","services.related_services":"{1}We also offer this related service:|[2,*]We also offer these related services:","validation.custom.full_name.required":"This field is required.","validation.custom.first_name.required":"This field is required.","validation.custom.last_name.required":"This field is required.","validation.custom.email.required":"This field is required.","validation.custom.phone.required":"This field is required.","validation.custom.message.required":"This field is required.","validation.custom.resume_upload.required":"This field is required."},RL=Object.freeze(Object.defineProperty({__proto__:null,default:IL},Symbol.toStringTag,{value:"Module"})),$L={"employees.see_all":"Voir tout","employees.services_related_title":"J’offre des services professionnels à ma clientèle spécifique :","employees.corpo_our_team":"Rencontrez nos associé(e)s au bureau le plus près de chez vous et découvrez les possibilités qui s’offrent à votre entreprise!","employees.syndics_our_team":"En toute confidentialité, notre équipe qualifiée et appuyée par un personnel de soutien compétent vous aidera à prendre des décisions éclairées à l'égard des aspects de votre situation financière.","employees.corpo_label":"{0}associé(e)s|{1}associé(e)|[2,*]associé(e)s","employees.syndics_label":"{0}employé(e)s|{1}employé(e)|[2,*]employé(e)s","employees.search.corpo_no_results":"Nous sommes désolés, mais actuellement, il n'y a aucun(e) associé(e) correspondant à vos critères de recherche. Nous vous invitons à consulter régulièrement notre site pour les mises à jour futures ou à élargir vos critères de recherche pour obtenir plus de résultats.","employees.search.syndics_no_results":"Nous sommes désolés, mais actuellement, il n'y a aucun(e) employé(e) correspondant à vos critères de recherche. Nous vous invitons à consulter régulièrement notre site pour les mises à jour futures ou à élargir vos critères de recherche pour obtenir plus de résultats.","expertises.label":"Expertises","filters.no_results":"Il n'y a aucun résultat pour cette recherche.","filters.category.default":"Catégories","filters.date.future":"À venir","filters.date.default":"Dates","filters.date.this-week":"Cette semaine","filters.date.this-month":"Ce mois","filters.date.last-3months":"Ces trois derniers mois","filters.date.this-year":"Cette année","filters.date.last-year":"L'an dernier","filters.date.more-than-a-year-ago":"Il y a plus d'un an","form.general.required_fields":"Champs requis","form.general.submit_button":"Envoyer","form.general.drop_file":"Déposez votre fichier ici ou","form.general.select_file":"Sélectionnez votre fichier","form.general.drop_files":"Déposez vos fichiers ici ou","form.general.select_files":"Sélectionnez vos fichiers","form.general.allowed_files":"Fichiers acceptés :","form.general.footer":'Pour toute information concernant la protection de vos renseignements personnels, veuillez adresser votre demande à <a href="mailto:prp@mallette.ca\\">prp@mallette.ca</a>.',"form.specific_application.submit_button":"Soumettre ma candidature","form.specific_application.title":"Postuler maintenant","form.specific_application.success_message":"Nous vous remercions d'avoir soumis votre candidature. Nous apprécions votre intérêt et nous prendrons contact avec vous sous peu.","form.specific_application.footer":'Pour toute information concernant la protection de vos renseignements personnels, veuillez adresser votre demande à <a href="mailto:recrutement@mallette.ca\\">recrutement@mallette.ca</a>.',"form.spontaneous_application.submit_button":"Soumettre ma candidature","form.spontaneous_application.title":"Candidature spontanée","form.spontaneous_application.success_message":"Nous vous remercions d'avoir soumis votre candidature. Nous apprécions votre intérêt et nous prendrons contact avec vous sous peu.","form.spontaneous_application.footer":'Pour toute information concernant la protection de vos renseignements personnels, veuillez adresser votre demande à <a href="mailto:recrutement@mallette.ca\\">recrutement@mallette.ca</a>.',"form.make_an_appointment.submit_button":"Envoyer","form.make_an_appointment.title":"Contactez-nous","form.make_an_appointment.success_message":"Votre demande de rendez-vous a été envoyée avec succès. Nous vous contacterons dans les plus brefs délais.","form.form_consultation.submit_button":"Envoyer","form.form_consultation.title":"Obtenez une consultation gratuite, confidentielle et sans engagement!","form.form_consultation.success_message":"Votre demande de rendez-vous a été envoyée avec succès. Nous vous contacterons dans les plus brefs délais.","form.make_an_appointment_syndics.submit_button":"Envoyer","form.make_an_appointment_syndics.title":"Contactez-nous","form.make_an_appointment_syndics.success_message":"Nous vous remercions! Votre demande a été reçue!","form.write_us.title":"Écrivez-nous","form.write_us.contact_title":"Contactez-nous","form.write_us.success_message":"Nous vous remercions! Votre demande a été reçue!","form.autoreflexion_intelligence_daffaires_bi.title":"Dressez le portrait de votre situation","form.autoreflexion_intelligence_daffaires_bi.success_message":"Merci! Votre demande a bien été reçue. Un membre de notre équipe communiquera avec vous sous peu.","form.reseau_mallette.title":"Formulaire d'inscription au Réseau Mallette","form.reseau_mallette.contact_title":"Inscription au Réseau Mallette","form.reseau_mallette.success_message":"Nous vous remercions! Votre demande a été reçue!","form.error_message":"Une erreur s’est produite lors de votre envoi. Veuillez vérifier les champs ci-dessous.","form.general_error_message":"Une erreur est survenue lors de la soumission du formulaire. Veuillez réessayer.","form.zoho_errors.already_postulated":"Vous avez déjà postulé à cette offre d'emploi.","form.zoho_errors.invalid_email":"Courriel invalide.","gather_content.cta_title":"Communiquez avec un de nos associés dès maintenant","gather_content.cta_button_title":"Contactez-nous","gather_content.featured_entries_title":"Articles reliés","gather_content.what_we_offer_title":"Ce que nous proposons","global.advices":"conseil(s)","global.tips":"conseil(s)","global.events":"événement(s)","global.news":"nouvelle(s)","global.offices":"bureau(x)","global.jobs":"emploi(s)","global.clients":"client(s)","global.public_records":"dossiers(s) public(s)","global.solutions":"{0}solutions|{1}solution|[2,*]solutions","global.services":"{0}services|{1}service|[2,*]services","global.services_related_title":"{1}Service pouvant répondre à votre besoin|[2,*]Services pouvant répondre à votre besoin","global.all_our_solutions":"Toutes nos solutions","global.all_our_services":"Tous nos services","global.related_articles":"Articles reliés","global.all_articles":"Tous les articles","global.all_our":"Tous nos :type","global.contact_details":"Coordonnées","global.contact_me":"Me contacter","global.contact_us":"Contactez-nous","global.itinerary":"Itinéraire","global.learn_more":"En savoir plus","global.next_page":"Page suivante","global.out_of":"sur","global.pages":"Page","global.previous_page":"Page précédente","global.published":"Publié le","global.reset":"Réinitialiser","global.see_more":"Voir plus","global.share":"Partager cette page:","global.showing_results":"résultats","global.write_us.corpo":"Écrivez-nous","global.write_us.syndics":"Obtenez une consultation gratuite et rapide","global.city_or_postal_code":"Ville","global.play_video":"Voir la vidéo","global.office_of":"Bureau de","global.linkedin_profile":"Profil LinkedIn","global.extension":"poste","global.associate":"Associé(e)","global.associateM":"Associé","global.associateF":"Associée","global.available_in_person_and_virtually":"Disponible en présentiel et virtuellement","global.available_in_person":"Disponible en présentiel","global.available_virtually":"Disponible virtuellement","global.free_consultation":"Consultation gratuite","global.make_an_appointment":"Contactez-nous","global.view_all_events":"Voir tous les événements","global.share_page":"Je veux partager cette page avec vous","global.this_content_may_interest_you":"Ce contenu pourrait vous intéresser","global.share_by_email":"Partager par courriel","global.days.monday":"Lundi","global.days.tuesday":"Mardi","global.days.wednesday":"Mercredi","global.days.thursday":"Jeudi","global.days.friday":"Vendredi","global.days.saturday":"Samedi","global.days.sunday":"Dimanche","global.placekit.no_results":"Aucun résultat pour","global.change_office":"Changer de bureau","global.portal_city_intro":"Vous êtes sur le portail client de Mallette","global.actuarial_access":"Accès actuariat","global.legal_services":"Services juridiques","global.enter_city":"Entrez votre ville","global.siteName.corpo":"Mallette","global.siteName.syndics":"Mallette syndics","global.borrowed_amount":"Quel est le montant emprunté?","global.total_amount":"Entrez le montant total que vous empruntez.","global.interest_rate":"Quel est le taux d'intérêt?","global.how_often":"À quelle fréquence souhaitez-vous effectuer les versements?","global.monthly":"Mensuel","global.bimonthly":"Deux fois par mois","global.eachtwoweeks":"Aux deux semaines","global.weekly":"Hebdomadaire","global.loan_term":"Quelle est la durée du prêt (en années)?","global.yrs":"an","global.your_payments":"Vos versements seront de","global.loan_of":"pour un prêt de","global.at":"à ","global.with_amortization":"avec amortissement de","global.not_valid":"Ces valeurs ne semblent pas être valides.","global.gross_revenue":"Quel est votre revenu brut?","global.rent_price":"Quel est le coût de votre loyer?","global.rent_price_incl":"Incluant : loyer ou hypothécaire, chauffage, électricité, assurance habitation, frais de condo et taxes.","global.car_price":"Quel est votre prêt ou location automobile?","global.other_price":"Avez-vous d'autres dépenses reliées à d'autres formes de financement?","global.other_price_incl":"Ex : meubles et électroménagers financés","global.by_week":"semaine","global.by_two_week":"2 semaines","global.by_month":"mois","global.by_year":"année","global.dol_by_week":"$ / semaine","global.dol_by_two_week":"$ / 2 semaines","global.dol_by_month":"$ / mois","global.dol_by_year":"$ / année","global.per_by_week":"% / semaine","global.per_by_two_week":"% / 2 semaines","global.per_by_month":"% / mois","global.per_by_year":"% / année","global.calculate":"Calculer","global.with_annual_income":"Avec un revenu annuel de","global.and_expenses_of":"et des dépenses annuelles de","global.your_dept_ratio_is":"vous obtenez un ratio d'endettement de","global.revenues":"Revenus","global.net_employment_income":"Revenus d'emploi nets","global.net_employment_income_subtitle":"Montant versé dans votre compte à chaque période de paie","global.net_pensions_annuities":"Pensions et rentes nettes","global.child_support_received":"Pension alimentaire pour enfants","global.spousal_support_received":"Pension alimentaire pour conjoint(e) divorcé","global.net_employment_insurance_benefits":"Prestations d'assurance-emploi nettes","global.net_social_assistance_benefits":"Prestations d'assistance sociale nettes","global.net_self_employment_income":"Revenus d'un travail indépendant","global.child_tax_benefits":"Prestations fiscales pour enfants","global.other_net_taxable_income":"Autres revenus nets d'impôts estimés","global.non_discretionary_spending":"Dépenses non-discrétionnaires","global.child_support_paid":"Pension alimentaire versée pour enfants","global.spousal_support_paid":"Pension alimentaire versée pour conjoint","global.childcare_expenses":"Frais de garde d'enfants","global.medical_expenses":"Dépenses relatives à la condition médicale","global.court_fines_penalties":"Amendes et pénalités imposées par un tribunal","global.employment_expenses":"Dépenses relatives à la condition d'emploi","global.housing":"Habitation","global.rent_mortgage_payments":"Loyer / Paiement hypothécaire","global.property_taxes":"Taxes foncières","global.home_insurance":"Assurance habitation","global.electricity":"Électricité","global.heating":"Chauffage","global.public_services":"Services publics","global.phone":"Téléphone","global.cable_satellite_device_rentals":"Câbles / Sattelite / Location Appareils","global.internet":"Internet","global.transport":"Transport","global.car_payments":"Paiement - Auto","global.car_gas":"Essence - Auto","global.car_maintenance":"Frais d'entretien - Auto","global.car_insurance":"Assurances - Auto","global.public_transportation":"Transport en commun","global.essential_needs":"Besoins essentiels","global.life_insurance":"Assurance-vie","global.groceries":"Épicerie","global.healthcare":"Soins de santé (dentiste, psychologue, lunettes, etc)","global.personal_care":"Soins personnels (pharmacie, couches, savon, etc)","global.clothing":"Vêtements","global.cleaning_laundry":"Nettoyage, buanderie, etc","global.credit_related_expenses":"Dépenses liées au crédit","global.credit_card":"Carte de crédit","global.loans_lines_of_credit":"Prêts ou marges de crédit","global.other_expenses":"Autres dépenses","global.add_expense":"Ajouter une dépense à la liste","global.result_balanced":"Votre budget est équilibré.","global.result_deficit":"Votre budget est déficitaire.","global.income_per_month":"Revenu par mois","global.expenses_per_month":"Dépenses par mois","global.surplus_per_month":"Surplus par mois","global.deficit_per_month":"Déficit par mois","global.card_balance":"Quel est le solde de votre carte de crédit?","global.card_interest":"Quel est le taux d'intérêt annuel de la carte?","global.desired_payments_question":"Selon votre capacité, quel montant pouvez-vous payer?","global.minimum_payments_question":"Quel est le paiement mensuel minimum?","global.minimum_payment":"Paiement mensuel minimum de","global.paid_off_your_credit_card":"Vous aurez remboursé votre carte de crédit dans","global.with":"avec","global.in_interest_charges":"de frais d'intérêts.","global.impossible_to_pay_fully":"Le calcul indique qu'il est impossible de rembourser votre dette avec le paiement minimum spécifié. Veuillez vérifier que les taux d'intérêt et les montants saisis sont corrects.","global.scenario_a":"Scénario A","global.scenario_b":"Scénario B","imports.label":"Imports","imports.office_hours_import.file_missing":"Le fichier est requis pour l'importation.","imports.office_hours_import.page_title":"Import des heures d'ouverture des bureaux","imports.office_hours_import.nav_label":"Import d'heures des bureaux","imports.office_hours_import.pending":"Le fichier a bien été importé. Les modifications seront bientôt visibles.","jobs.general.reset":"Réinitialiser","jobs.general.showing_results":"résultats","jobs.general.out_of":"sur","jobs.general.published":"Publié le","jobs.general.share":"Partager cette page:","jobs.general.jobs":"emploi(s)","jobs.general.categories":"Catégories","jobs.general.types":"Types","jobs.general.city_or_zip_code":"Ville","jobs.general.search":"Rechercher","jobs.general.no_results":"Nous sommes désolés, mais actuellement, il n'y a aucune offre d'emploi correspondant à vos critères de recherche. Nous vous invitons à consulter régulièrement notre site pour les mises à jour futures ou à élargir vos critères de recherche pour obtenir plus de résultats.","jobs.general.our_jobs_offer_region":"Nos offres d’emploi dans la région","jobs.buttons.see_all_jobs":"Voir toutes les offres d'emploi","jobs.animated_text":"Intégrité - Leadership - Respect - Entraide","menu.secondary_menu.our_offices":"Nos bureaux","menu.secondary_menu.legal":"Syndics autorisés en insolvabilité","menu.buttons.actuarial_services":"Accès UMQ","menu.tertiary.is_part_of_the_group":"faisant affaire sous l'appellation Mallette Redressement financier, fait partie du regroupement","menu.tertiary.website_by":"Site web par","offices.our_team":"Notre équipe","offices.local_office":"Votre bureau local","offices.open":"Ouvert","offices.open_until":"Ouvert jusqu'à :end_time","offices.closed":"Fermé","offices.closed_opens_at":"Fermé, ouvre à :start_time","offices.closed_opens_at_day":"Fermé, ouvre :jour à :start_time","offices.open_hours":"Heures d'ouverture","offices.special_hours":"Horaire spécial","offices.other":"Autre","offices.general.out_of":"sur","offices.general.find_me":"Localisez-moi","offices.general.city_or_zip_code":"Ville","offices.corpo_label":"{0}bureaux|{1}bureau|[2,*]bureaux","offices.syndics_label":"{0}bureaux|{1}bureau|[2,*]bureaux","offices.search.corpo_no_results":"Il n'y a aucun résultat pour cette recherche.","offices.search.syndics_no_results":"Il n'y a aucun résultat pour cette recherche.","paginate.see_more":"Voir :nb résultats de plus","services.related_services":"{1}Nous offrons également ce service connexe :|[2,*]Nous offrons également ces services connexes :","validation.custom.full_name.required":"Ce champ est requis.","validation.custom.first_name.required":"Ce champ est requis.","validation.custom.last_name.required":"Ce champ est requis.","validation.custom.email.required":"Ce champ est requis.","validation.custom.phone.required":"Ce champ est requis.","validation.custom.message.required":"Ce champ est requis.","validation.custom.resume_upload.required":"Ce champ est requis.","validation.max.file":"Le fichier ne doit pas dépasser :max ko.","validation.mimes":"Le fichier doit être de type :values."},VL=Object.freeze(Object.defineProperty({__proto__:null,default:$L},Symbol.toStringTag,{value:"Module"}));/** * @vue/shared v3.4.15 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function Ug(t,e){const n=new Set(t.split(","));return e?r=>n.has(r.toLowerCase()):r=>n.has(r)}const De={},Uo=[],$t=()=>{},jL=()=>!1,_d=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),tO=t=>t.startsWith("onUpdate:"),lt=Object.assign,Qg=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},NL=Object.prototype.hasOwnProperty,Ie=(t,e)=>NL.call(t,e),ge=Array.isArray,Qo=t=>wc(t)==="[object Map]",nO=t=>wc(t)==="[object Set]",LL=t=>wc(t)==="[object RegExp]",_e=t=>typeof t=="function",tt=t=>typeof t=="string",$s=t=>typeof t=="symbol",He=t=>t!==null&&typeof t=="object",zg=t=>(He(t)||_e(t))&&_e(t.then)&&_e(t.catch),rO=Object.prototype.toString,wc=t=>rO.call(t),FL=t=>wc(t).slice(8,-1),iO=t=>wc(t)==="[object Object]",Kg=t=>tt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,pa=Ug(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Sd=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},DL=/-(\w)/g,yn=Sd(t=>t.replace(DL,(e,n)=>n?n.toUpperCase():"")),ML=/\B([A-Z])/g,Ac=Sd(t=>t.replace(ML,"-$1").toLowerCase()),wd=Sd(t=>t.charAt(0).toUpperCase()+t.slice(1)),ma=Sd(t=>t?`on${wd(t)}`:""),$n=(t,e)=>!Object.is(t,e),ga=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},Sf=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},kL=t=>{const e=parseFloat(t);return isNaN(e)?t:e},BL=t=>{const e=tt(t)?Number(t):NaN;return isNaN(e)?t:e};let y0;const oO=()=>y0||(y0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),HL="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,Error",qL=Ug(HL);function Oc(t){if(ge(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],i=tt(r)?zL(r):Oc(r);if(i)for(const o in i)e[o]=i[o]}return e}else if(tt(t)||He(t))return t}const WL=/;(?![^(]*\))/g,UL=/:([^]+)/,QL=/\/\*[^]*?\*\//g;function zL(t){const e={};return t.replace(QL,"").split(WL).forEach(n=>{if(n){const r=n.split(UL);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function Ec(t){let e="";if(tt(t))e=t;else if(ge(t))for(let n=0;n<t.length;n++){const r=Ec(t[n]);r&&(e+=r+" ")}else if(He(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function KL(t){if(!t)return null;let{class:e,style:n}=t;return e&&!tt(e)&&(t.class=Ec(e)),n&&(t.style=Oc(n)),t}const sO=t=>tt(t)?t:t==null?"":ge(t)||He(t)&&(t.toString===rO||!_e(t.toString))?JSON.stringify(t,aO,2):String(t),aO=(t,e)=>e&&e.__v_isRef?aO(t,e.value):Qo(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,i],o)=>(n[Oh(r,o)+" =>"]=i,n),{})}:nO(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>Oh(n))}:$s(e)?Oh(e):He(e)&&!ge(e)&&!iO(e)?String(e):e,Oh=(t,e="")=>{var n;return $s(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/** * @vue/reactivity v3.4.15 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Kt;class Gg{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Kt,!e&&Kt&&(this.index=(Kt.scopes||(Kt.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=Kt;try{return Kt=this,e()}finally{Kt=n}}}on(){Kt=this}off(){Kt=this.parent}stop(e){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function GL(t){return new Gg(t)}function lO(t,e=Kt){e&&e.active&&e.effects.push(t)}function cO(){return Kt}function YL(t){Kt&&Kt.cleanups.push(t)}let Ki;class is{constructor(e,n,r,i){this.fn=e,this.trigger=n,this.scheduler=r,this.active=!0,this.deps=[],this._dirtyLevel=2,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,lO(this,i)}get dirty(){if(this._dirtyLevel===1){bo();for(let e=0;e<this._depsLength;e++){const n=this.deps[e];if(n.computed&&(JL(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),_o()}return this._dirtyLevel>=2}set dirty(e){this._dirtyLevel=e?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Kr,n=Ki;try{return Kr=!0,Ki=this,this._runnings++,b0(this),this.fn()}finally{_0(this),this._runnings--,Ki=n,Kr=e}}stop(){var e;this.active&&(b0(this),_0(this),(e=this.onStop)==null||e.call(this),this.active=!1)}}function JL(t){return t.value}function b0(t){t._trackId++,t._depsLength=0}function _0(t){if(t.deps&&t.deps.length>t._depsLength){for(let e=t._depsLength;e<t.deps.length;e++)uO(t.deps[e],t);t.deps.length=t._depsLength}}function uO(t,e){const n=t.get(e);n!==void 0&&e._trackId!==n&&(t.delete(e),t.size===0&&t.cleanup())}function ZL(t,e){t.effect instanceof is&&(t=t.effect.fn);const n=new is(t,$t,()=>{n.dirty&&n.run()});e&&(lt(n,e),e.scope&&lO(n,e.scope)),(!e||!e.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function XL(t){t.effect.stop()}let Kr=!0,Qp=0;const fO=[];function bo(){fO.push(Kr),Kr=!1}function _o(){const t=fO.pop();Kr=t===void 0?!0:t}function Yg(){Qp++}function Jg(){for(Qp--;!Qp&&zp.length;)zp.shift()()}function dO(t,e,n){if(e.get(t)!==t._trackId){e.set(t,t._trackId);const r=t.deps[t._depsLength];r!==e?(r&&uO(r,t),t.deps[t._depsLength++]=e):t._depsLength++}}const zp=[];function hO(t,e,n){Yg();for(const r of t.keys())if(r._dirtyLevel<e&&t.get(r)===r._trackId){const i=r._dirtyLevel;r._dirtyLevel=e,i===0&&(r._shouldSchedule=!0,r.trigger())}pO(t),Jg()}function pO(t){for(const e of t.keys())e.scheduler&&e._shouldSchedule&&(!e._runnings||e.allowRecurse)&&t.get(e)===e._trackId&&(e._shouldSchedule=!1,zp.push(e.scheduler))}const mO=(t,e)=>{const n=new Map;return n.cleanup=t,n.computed=e,n},wf=new WeakMap,Gi=Symbol(""),Kp=Symbol("");function Ut(t,e,n){if(Kr&&Ki){let r=wf.get(t);r||wf.set(t,r=new Map);let i=r.get(n);i||r.set(n,i=mO(()=>r.delete(n))),dO(Ki,i)}}function gr(t,e,n,r,i,o){const s=wf.get(t);if(!s)return;let a=[];if(e==="clear")a=[...s.values()];else if(n==="length"&&ge(t)){const l=Number(r);s.forEach((c,u)=>{(u==="length"||!$s(u)&&u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(s.get(n)),e){case"add":ge(t)?Kg(n)&&a.push(s.get("length")):(a.push(s.get(Gi)),Qo(t)&&a.push(s.get(Kp)));break;case"delete":ge(t)||(a.push(s.get(Gi)),Qo(t)&&a.push(s.get(Kp)));break;case"set":Qo(t)&&a.push(s.get(Gi));break}Yg();for(const l of a)l&&hO(l,2);Jg()}function eF(t,e){var n;return(n=wf.get(t))==null?void 0:n.get(e)}const tF=Ug("__proto__,__v_isRef,__isVue"),gO=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter($s)),S0=nF();function nF(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const r=Pe(this);for(let o=0,s=this.length;o<s;o++)Ut(r,"get",o+"");const i=r[e](...n);return i===-1||i===!1?r[e](...n.map(Pe)):i}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){bo(),Yg();const r=Pe(this)[e].apply(this,n);return Jg(),_o(),r}}),t}function rF(t){const e=Pe(this);return Ut(e,"has",t),e.hasOwnProperty(t)}class vO{constructor(e=!1,n=!1){this._isReadonly=e,this._shallow=n}get(e,n,r){const i=this._isReadonly,o=this._shallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(i?o?AO:wO:o?SO:_O).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const s=ge(e);if(!i){if(s&&Ie(S0,n))return Reflect.get(S0,n,r);if(n==="hasOwnProperty")return rF}const a=Reflect.get(e,n,r);return($s(n)?gO.has(n):tF(n))||(i||Ut(e,"get",n),o)?a:bt(a)?s&&Kg(n)?a:a.value:He(a)?i?Xg(a):Yi(a):a}}class yO extends vO{constructor(e=!1){super(!1,e)}set(e,n,r,i){let o=e[n];if(!this._shallow){const l=so(o);if(!dl(r)&&!so(r)&&(o=Pe(o),r=Pe(r)),!ge(e)&&bt(o)&&!bt(r))return l?!1:(o.value=r,!0)}const s=ge(e)&&Kg(n)?Number(n)<e.length:Ie(e,n),a=Reflect.set(e,n,r,i);return e===Pe(i)&&(s?$n(r,o)&&gr(e,"set",n,r):gr(e,"add",n,r)),a}deleteProperty(e,n){const r=Ie(e,n);e[n];const i=Reflect.deleteProperty(e,n);return i&&r&&gr(e,"delete",n,void 0),i}has(e,n){const r=Reflect.has(e,n);return(!$s(n)||!gO.has(n))&&Ut(e,"has",n),r}ownKeys(e){return Ut(e,"iterate",ge(e)?"length":Gi),Reflect.ownKeys(e)}}class bO extends vO{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const iF=new yO,oF=new bO,sF=new yO(!0),aF=new bO(!0),Zg=t=>t,Ad=t=>Reflect.getPrototypeOf(t);function bu(t,e,n=!1,r=!1){t=t.__v_raw;const i=Pe(t),o=Pe(e);n||($n(e,o)&&Ut(i,"get",e),Ut(i,"get",o));const{has:s}=Ad(i),a=r?Zg:n?nv:hl;if(s.call(i,e))return a(t.get(e));if(s.call(i,o))return a(t.get(o));t!==i&&t.get(e)}function _u(t,e=!1){const n=this.__v_raw,r=Pe(n),i=Pe(t);return e||($n(t,i)&&Ut(r,"has",t),Ut(r,"has",i)),t===i?n.has(t):n.has(t)||n.has(i)}function Su(t,e=!1){return t=t.__v_raw,!e&&Ut(Pe(t),"iterate",Gi),Reflect.get(t,"size",t)}function w0(t){t=Pe(t);const e=Pe(this);return Ad(e).has.call(e,t)||(e.add(t),gr(e,"add",t,t)),this}function A0(t,e){e=Pe(e);const n=Pe(this),{has:r,get:i}=Ad(n);let o=r.call(n,t);o||(t=Pe(t),o=r.call(n,t));const s=i.call(n,t);return n.set(t,e),o?$n(e,s)&&gr(n,"set",t,e):gr(n,"add",t,e),this}function O0(t){const e=Pe(this),{has:n,get:r}=Ad(e);let i=n.call(e,t);i||(t=Pe(t),i=n.call(e,t)),r&&r.call(e,t);const o=e.delete(t);return i&&gr(e,"delete",t,void 0),o}function E0(){const t=Pe(this),e=t.size!==0,n=t.clear();return e&&gr(t,"clear",void 0,void 0),n}function wu(t,e){return function(r,i){const o=this,s=o.__v_raw,a=Pe(s),l=e?Zg:t?nv:hl;return!t&&Ut(a,"iterate",Gi),s.forEach((c,u)=>r.call(i,l(c),l(u),o))}}function Au(t,e,n){return function(...r){const i=this.__v_raw,o=Pe(i),s=Qo(o),a=t==="entries"||t===Symbol.iterator&&s,l=t==="keys"&&s,c=i[t](...r),u=n?Zg:e?nv:hl;return!e&&Ut(o,"iterate",l?Kp:Gi),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:a?[u(f[0]),u(f[1])]:u(f),done:h}},[Symbol.iterator](){return this}}}}function Rr(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function lF(){const t={get(o){return bu(this,o)},get size(){return Su(this)},has:_u,add:w0,set:A0,delete:O0,clear:E0,forEach:wu(!1,!1)},e={get(o){return bu(this,o,!1,!0)},get size(){return Su(this)},has:_u,add:w0,set:A0,delete:O0,clear:E0,forEach:wu(!1,!0)},n={get(o){return bu(this,o,!0)},get size(){return Su(this,!0)},has(o){return _u.call(this,o,!0)},add:Rr("add"),set:Rr("set"),delete:Rr("delete"),clear:Rr("clear"),forEach:wu(!0,!1)},r={get(o){return bu(this,o,!0,!0)},get size(){return Su(this,!0)},has(o){return _u.call(this,o,!0)},add:Rr("add"),set:Rr("set"),delete:Rr("delete"),clear:Rr("clear"),forEach:wu(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{t[o]=Au(o,!1,!1),n[o]=Au(o,!0,!1),e[o]=Au(o,!1,!0),r[o]=Au(o,!0,!0)}),[t,n,e,r]}const[cF,uF,fF,dF]=lF();function Od(t,e){const n=e?t?dF:fF:t?uF:cF;return(r,i,o)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?r:Reflect.get(Ie(n,i)&&i in r?n:r,i,o)}const hF={get:Od(!1,!1)},pF={get:Od(!1,!0)},mF={get:Od(!0,!1)},gF={get:Od(!0,!0)},_O=new WeakMap,SO=new WeakMap,wO=new WeakMap,AO=new WeakMap;function vF(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function yF(t){return t.__v_skip||!Object.isExtensible(t)?0:vF(FL(t))}function Yi(t){return so(t)?t:Ed(t,!1,iF,hF,_O)}function OO(t){return Ed(t,!1,sF,pF,SO)}function Xg(t){return Ed(t,!0,oF,mF,wO)}function bF(t){return Ed(t,!0,aF,gF,AO)}function Ed(t,e,n,r,i){if(!He(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const o=i.get(t);if(o)return o;const s=yF(t);if(s===0)return t;const a=new Proxy(t,s===2?r:n);return i.set(t,a),a}function Ji(t){return so(t)?Ji(t.__v_raw):!!(t&&t.__v_isReactive)}function so(t){return!!(t&&t.__v_isReadonly)}function dl(t){return!!(t&&t.__v_isShallow)}function ev(t){return Ji(t)||so(t)}function Pe(t){const e=t&&t.__v_raw;return e?Pe(e):t}function tv(t){return Sf(t,"__v_skip",!0),t}const hl=t=>He(t)?Yi(t):t,nv=t=>He(t)?Xg(t):t;class EO{constructor(e,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new is(()=>e(this._value),()=>zo(this,1),()=>this.dep&&pO(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const e=Pe(this);return(!e._cacheable||e.effect.dirty)&&$n(e._value,e._value=e.effect.run())&&zo(e,2),rv(e),e.effect._dirtyLevel>=1&&zo(e,1),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function _F(t,e,n=!1){let r,i;const o=_e(t);return o?(r=t,i=$t):(r=t.get,i=t.set),new EO(r,i,o||!i,n)}function rv(t){Kr&&Ki&&(t=Pe(t),dO(Ki,t.dep||(t.dep=mO(()=>t.dep=void 0,t instanceof EO?t:void 0))))}function zo(t,e=2,n){t=Pe(t);const r=t.dep;r&&hO(r,e)}function bt(t){return!!(t&&t.__v_isRef===!0)}function va(t){return PO(t,!1)}function SF(t){return PO(t,!0)}function PO(t,e){return bt(t)?t:new wF(t,e)}class wF{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:Pe(e),this._value=n?e:hl(e)}get value(){return rv(this),this._value}set value(e){const n=this.__v_isShallow||dl(e)||so(e);e=n?e:Pe(e),$n(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:hl(e),zo(this,2))}}function AF(t){zo(t,2)}function iv(t){return bt(t)?t.value:t}function OF(t){return _e(t)?t():iv(t)}const EF={get:(t,e,n)=>iv(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const i=t[e];return bt(i)&&!bt(n)?(i.value=n,!0):Reflect.set(t,e,n,r)}};function ov(t){return Ji(t)?t:new Proxy(t,EF)}class PF{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=e(()=>rv(this),()=>zo(this));this._get=n,this._set=r}get value(){return this._get()}set value(e){this._set(e)}}function xO(t){return new PF(t)}function xF(t){const e=ge(t)?new Array(t.length):{};for(const n in t)e[n]=CO(t,n);return e}class CF{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return eF(Pe(this._object),this._key)}}class TF{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function IF(t,e,n){return bt(t)?t:_e(t)?new TF(t):He(t)&&arguments.length>1?CO(t,e,n):va(t)}function CO(t,e,n){const r=t[e];return bt(r)?r:new CF(t,e,n)}const RF={GET:"get",HAS:"has",ITERATE:"iterate"},$F={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};/** * @vue/runtime-core v3.4.15 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function VF(t,e){}const jF={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},NF={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function vr(t,e,n,r){let i;try{i=r?t(...r):t()}catch(o){So(o,e,n)}return i}function Jt(t,e,n,r){if(_e(t)){const o=vr(t,e,n,r);return o&&zg(o)&&o.catch(s=>{So(s,e,n)}),o}const i=[];for(let o=0;o<t.length;o++)i.push(Jt(t[o],e,n,r));return i}function So(t,e,n,r=!0){const i=e?e.vnode:null;if(e){let o=e.parent;const s=e.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const c=o.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](t,s,a)===!1)return}o=o.parent}const l=e.appContext.config.errorHandler;if(l){vr(l,null,10,[t,s,a]);return}}LF(t,n,i,r)}function LF(t,e,n,r=!0){console.error(t)}let pl=!1,Gp=!1;const Pt=[];let Un=0;const Ko=[];let kr=null,Vi=0;const TO=Promise.resolve();let sv=null;function Pd(t){const e=sv||TO;return t?e.then(this?t.bind(this):t):e}function FF(t){let e=Un+1,n=Pt.length;for(;e<n;){const r=e+n>>>1,i=Pt[r],o=ml(i);o<t||o===t&&i.pre?e=r+1:n=r}return e}function xd(t){(!Pt.length||!Pt.includes(t,pl&&t.allowRecurse?Un+1:Un))&&(t.id==null?Pt.push(t):Pt.splice(FF(t.id),0,t),IO())}function IO(){!pl&&!Gp&&(Gp=!0,sv=TO.then(RO))}function DF(t){const e=Pt.indexOf(t);e>Un&&Pt.splice(e,1)}function Af(t){ge(t)?Ko.push(...t):(!kr||!kr.includes(t,t.allowRecurse?Vi+1:Vi))&&Ko.push(t),IO()}function P0(t,e,n=pl?Un+1:0){for(;n<Pt.length;n++){const r=Pt[n];if(r&&r.pre){if(t&&r.id!==t.uid)continue;Pt.splice(n,1),n--,r()}}}function Of(t){if(Ko.length){const e=[...new Set(Ko)].sort((n,r)=>ml(n)-ml(r));if(Ko.length=0,kr){kr.push(...e);return}for(kr=e,Vi=0;Vi<kr.length;Vi++)kr[Vi]();kr=null,Vi=0}}const ml=t=>t.id==null?1/0:t.id,MF=(t,e)=>{const n=ml(t)-ml(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function RO(t){Gp=!1,pl=!0,Pt.sort(MF);const e=$t;try{for(Un=0;Un<Pt.length;Un++){const n=Pt[Un];n&&n.active!==!1&&vr(n,null,14)}}finally{Un=0,Pt.length=0,Of(),pl=!1,sv=null,(Pt.length||Ko.length)&&RO()}}let Lo,Ou=[];function $O(t,e){var n,r;Lo=t,Lo?(Lo.enabled=!0,Ou.forEach(({event:i,args:o})=>Lo.emit(i,...o)),Ou=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{$O(o,e)}),setTimeout(()=>{Lo||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Ou=[])},3e3)):Ou=[]}function kF(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||De;let i=n;const o=e.startsWith("update:"),s=o&&e.slice(7);if(s&&s in r){const u=`${s==="modelValue"?"model":s}Modifiers`,{number:f,trim:h}=r[u]||De;h&&(i=n.map(d=>tt(d)?d.trim():d)),f&&(i=n.map(kL))}let a,l=r[a=ma(e)]||r[a=ma(yn(e))];!l&&o&&(l=r[a=ma(Ac(e))]),l&&Jt(l,t,6,i);const c=r[a+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,Jt(c,t,6,i)}}function VO(t,e,n=!1){const r=e.emitsCache,i=r.get(t);if(i!==void 0)return i;const o=t.emits;let s={},a=!1;if(!_e(t)){const l=c=>{const u=VO(c,e,!0);u&&(a=!0,lt(s,u))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!o&&!a?(He(t)&&r.set(t,null),null):(ge(o)?o.forEach(l=>s[l]=null):lt(s,o),He(t)&&r.set(t,s),s)}function Cd(t,e){return!t||!_d(e)?!1:(e=e.slice(2).replace(/Once$/,""),Ie(t,e[0].toLowerCase()+e.slice(1))||Ie(t,Ac(e))||Ie(t,e))}let et=null,Td=null;function gl(t){const e=et;return et=t,Td=t&&t.type.__scopeId||null,e}function BF(t){Td=t}function HF(){Td=null}const qF=t=>av;function av(t,e=et,n){if(!e||t._n)return t;const r=(...i)=>{r._d&&rm(-1);const o=gl(e);let s;try{s=t(...i)}finally{gl(o),r._d&&rm(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Yu(t){const{type:e,vnode:n,proxy:r,withProxy:i,props:o,propsOptions:[s],slots:a,attrs:l,emit:c,render:u,renderCache:f,data:h,setupState:d,ctx:p,inheritAttrs:m}=t;let g,v;const b=gl(t);try{if(n.shapeFlag&4){const _=i||r,A=_;g=Yt(u.call(A,_,f,o,d,h,p)),v=l}else{const _=e;g=Yt(_.length>1?_(o,{attrs:l,slots:a,emit:c}):_(o,null)),v=e.props?l:UF(l)}}catch(_){wa.length=0,So(_,t,1),g=ke(xt)}let y=g;if(v&&m!==!1){const _=Object.keys(v),{shapeFlag:A}=y;_.length&&A&7&&(s&&_.some(tO)&&(v=QF(v,s)),y=Zn(y,v))}return n.dirs&&(y=Zn(y),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&(y.transition=n.transition),g=y,gl(b),g}function WF(t,e=!0){let n;for(let r=0;r<t.length;r++){const i=t[r];if(oi(i)){if(i.type!==xt||i.children==="v-if"){if(n)return;n=i}}else return}return n}const UF=t=>{let e;for(const n in t)(n==="class"||n==="style"||_d(n))&&((e||(e={}))[n]=t[n]);return e},QF=(t,e)=>{const n={};for(const r in t)(!tO(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function zF(t,e,n){const{props:r,children:i,component:o}=t,{props:s,children:a,patchFlag:l}=e,c=o.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?x0(r,s,c):!!s;if(l&8){const u=e.dynamicProps;for(let f=0;f<u.length;f++){const h=u[f];if(s[h]!==r[h]&&!Cd(c,h))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:r===s?!1:r?s?x0(r,s,c):!0:!!s;return!1}function x0(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(e[o]!==t[o]&&!Cd(n,o))return!0}return!1}function lv({vnode:t,parent:e},n){for(;e;){const r=e.subTree;if(r.suspense&&r.suspense.activeBranch===t&&(r.el=t.el),r===t)(t=e.vnode).el=n,e=e.parent;else break}}const cv="components",KF="directives";function GF(t,e){return uv(cv,t,!0,e)||t}const jO=Symbol.for("v-ndc");function YF(t){return tt(t)?uv(cv,t,!1)||t:t||jO}function JF(t){return uv(KF,t)}function uv(t,e,n=!0,r=!1){const i=et||ot;if(i){const o=i.type;if(t===cv){const a=lm(o,!1);if(a&&(a===e||a===yn(e)||a===wd(yn(e))))return o}const s=C0(i[t]||o[t],e)||C0(i.appContext[t],e);return!s&&r?o:s}}function C0(t,e){return t&&(t[e]||t[yn(e)]||t[wd(yn(e))])}const NO=t=>t.__isSuspense;let Yp=0;const ZF={name:"Suspense",__isSuspense:!0,process(t,e,n,r,i,o,s,a,l,c){if(t==null)eD(e,n,r,i,o,s,a,l,c);else{if(o&&o.deps>0){e.suspense=t.suspense;return}tD(t,e,n,r,i,s,a,l,c)}},hydrate:nD,create:fv,normalize:rD},XF=ZF;function vl(t,e){const n=t.props&&t.props[e];_e(n)&&n()}function eD(t,e,n,r,i,o,s,a,l){const{p:c,o:{createElement:u}}=l,f=u("div"),h=t.suspense=fv(t,i,r,e,f,n,o,s,a,l);c(null,h.pendingBranch=t.ssContent,f,null,r,h,o,s),h.deps>0?(vl(t,"onPending"),vl(t,"onFallback"),c(null,t.ssFallback,e,n,r,null,o,s),Go(h,t.ssFallback)):h.resolve(!1,!0)}function tD(t,e,n,r,i,o,s,a,{p:l,um:c,o:{createElement:u}}){const f=e.suspense=t.suspense;f.vnode=e,e.el=t.el;const h=e.ssContent,d=e.ssFallback,{activeBranch:p,pendingBranch:m,isInFallback:g,isHydrating:v}=f;if(m)f.pendingBranch=h,On(h,m)?(l(m,h,f.hiddenContainer,null,i,f,o,s,a),f.deps<=0?f.resolve():g&&(v||(l(p,d,n,r,i,null,o,s,a),Go(f,d)))):(f.pendingId=Yp++,v?(f.isHydrating=!1,f.activeBranch=m):c(m,i,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),g?(l(null,h,f.hiddenContainer,null,i,f,o,s,a),f.deps<=0?f.resolve():(l(p,d,n,r,i,null,o,s,a),Go(f,d))):p&&On(h,p)?(l(p,h,n,r,i,f,o,s,a),f.resolve(!0)):(l(null,h,f.hiddenContainer,null,i,f,o,s,a),f.deps<=0&&f.resolve()));else if(p&&On(h,p))l(p,h,n,r,i,f,o,s,a),Go(f,h);else if(vl(e,"onPending"),f.pendingBranch=h,h.shapeFlag&512?f.pendingId=h.component.suspenseId:f.pendingId=Yp++,l(null,h,f.hiddenContainer,null,i,f,o,s,a),f.deps<=0)f.resolve();else{const{timeout:b,pendingId:y}=f;b>0?setTimeout(()=>{f.pendingId===y&&f.fallback(d)},b):b===0&&f.fallback(d)}}function fv(t,e,n,r,i,o,s,a,l,c,u=!1){const{p:f,m:h,um:d,n:p,o:{parentNode:m,remove:g}}=c;let v;const b=iD(t);b&&e!=null&&e.pendingBranch&&(v=e.pendingId,e.deps++);const y=t.props?BL(t.props.timeout):void 0,_=o,A={vnode:t,parent:e,parentComponent:n,namespace:s,container:r,hiddenContainer:i,deps:0,pendingId:Yp++,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(C=!1,x=!1){const{vnode:S,activeBranch:w,pendingBranch:O,pendingId:P,effects:T,parentComponent:R,container:M}=A;let k=!1;A.isHydrating?A.isHydrating=!1:C||(k=w&&O.transition&&O.transition.mode==="out-in",k&&(w.transition.afterLeave=()=>{P===A.pendingId&&(h(O,M,o===_?p(w):o,0),Af(T))}),w&&(m(w.el)!==A.hiddenContainer&&(o=p(w)),d(w,R,A,!0)),k||h(O,M,o,0)),Go(A,O),A.pendingBranch=null,A.isInFallback=!1;let B=A.parent,z=!1;for(;B;){if(B.pendingBranch){B.effects.push(...T),z=!0;break}B=B.parent}!z&&!k&&Af(T),A.effects=[],b&&e&&e.pendingBranch&&v===e.pendingId&&(e.deps--,e.deps===0&&!x&&e.resolve()),vl(S,"onResolve")},fallback(C){if(!A.pendingBranch)return;const{vnode:x,activeBranch:S,parentComponent:w,container:O,namespace:P}=A;vl(x,"onFallback");const T=p(S),R=()=>{A.isInFallback&&(f(null,C,O,T,w,null,P,a,l),Go(A,C))},M=C.transition&&C.transition.mode==="out-in";M&&(S.transition.afterLeave=R),A.isInFallback=!0,d(S,w,null,!0),M||R()},move(C,x,S){A.activeBranch&&h(A.activeBranch,C,x,S),A.container=C},next(){return A.activeBranch&&p(A.activeBranch)},registerDep(C,x){const S=!!A.pendingBranch;S&&A.deps++;const w=C.vnode.el;C.asyncDep.catch(O=>{So(O,C,0)}).then(O=>{if(C.isUnmounted||A.isUnmounted||A.pendingId!==C.suspenseId)return;C.asyncResolved=!0;const{vnode:P}=C;sm(C,O,!1),w&&(P.el=w);const T=!w&&C.subTree.el;x(C,P,m(w||C.subTree.el),w?null:p(C.subTree),A,s,l),T&&g(T),lv(C,P.el),S&&--A.deps===0&&A.resolve()})},unmount(C,x){A.isUnmounted=!0,A.activeBranch&&d(A.activeBranch,n,C,x),A.pendingBranch&&d(A.pendingBranch,n,C,x)}};return A}function nD(t,e,n,r,i,o,s,a,l){const c=e.suspense=fv(e,r,n,t.parentNode,document.createElement("div"),null,i,o,s,a,!0),u=l(t,c.pendingBranch=e.ssContent,n,c,o,s);return c.deps===0&&c.resolve(!1,!0),u}function rD(t){const{shapeFlag:e,children:n}=t,r=e&32;t.ssContent=T0(r?n.default:n),t.ssFallback=r?T0(n.fallback):ke(xt)}function T0(t){let e;if(_e(t)){const n=co&&t._c;n&&(t._d=!1,xn()),t=t(),n&&(t._d=!0,e=Mt,vE())}return ge(t)&&(t=WF(t)),t=Yt(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(n=>n!==t)),t}function LO(t,e){e&&e.pendingBranch?ge(t)?e.effects.push(...t):e.effects.push(t):Af(t)}function Go(t,e){t.activeBranch=e;const{vnode:n,parentComponent:r}=t;let i=e.el;for(;!i&&e.component;)e=e.component.subTree,i=e.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,lv(r,i))}function iD(t){var e;return((e=t.props)==null?void 0:e.suspensible)!=null&&t.props.suspensible!==!1}const FO=Symbol.for("v-scx"),DO=()=>_a(FO);function MO(t,e){return Pc(t,null,e)}function kO(t,e){return Pc(t,null,{flush:"post"})}function BO(t,e){return Pc(t,null,{flush:"sync"})}const Eu={};function ya(t,e,n){return Pc(t,e,n)}function Pc(t,e,{immediate:n,deep:r,flush:i,once:o,onTrack:s,onTrigger:a}=De){if(e&&o){const C=e;e=(...x)=>{C(...x),A()}}const l=ot,c=C=>r===!0?C:Fi(C,r===!1?1:void 0);let u,f=!1,h=!1;if(bt(t)?(u=()=>t.value,f=dl(t)):Ji(t)?(u=()=>c(t),f=!0):ge(t)?(h=!0,f=t.some(C=>Ji(C)||dl(C)),u=()=>t.map(C=>{if(bt(C))return C.value;if(Ji(C))return c(C);if(_e(C))return vr(C,l,2)})):_e(t)?e?u=()=>vr(t,l,2):u=()=>(d&&d(),Jt(t,l,3,[p])):u=$t,e&&r){const C=u;u=()=>Fi(C())}let d,p=C=>{d=y.onStop=()=>{vr(C,l,4),d=y.onStop=void 0}},m;if(Tc)if(p=$t,e?n&&Jt(e,l,3,[u(),h?[]:void 0,p]):u(),i==="sync"){const C=DO();m=C.__watcherHandles||(C.__watcherHandles=[])}else return $t;let g=h?new Array(t.length).fill(Eu):Eu;const v=()=>{if(!(!y.active||!y.dirty))if(e){const C=y.run();(r||f||(h?C.some((x,S)=>$n(x,g[S])):$n(C,g)))&&(d&&d(),Jt(e,l,3,[C,g===Eu?void 0:h&&g[0]===Eu?[]:g,p]),g=C)}else y.run()};v.allowRecurse=!!e;let b;i==="sync"?b=v:i==="post"?b=()=>vt(v,l&&l.suspense):(v.pre=!0,l&&(v.id=l.uid),b=()=>xd(v));const y=new is(u,$t,b),_=cO(),A=()=>{y.stop(),_&&Qg(_.effects,y)};return e?n?v():g=y.run():i==="post"?vt(y.run.bind(y),l&&l.suspense):y.run(),m&&m.push(A),A}function oD(t,e,n){const r=this.proxy,i=tt(t)?t.includes(".")?HO(r,t):()=>r[t]:t.bind(r,r);let o;_e(e)?o=e:(o=e.handler,n=e);const s=uo(this),a=Pc(i,o.bind(r),n);return s(),a}function HO(t,e){const n=e.split(".");return()=>{let r=t;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}function Fi(t,e,n=0,r){if(!He(t)||t.__v_skip)return t;if(e&&e>0){if(n>=e)return t;n++}if(r=r||new Set,r.has(t))return t;if(r.add(t),bt(t))Fi(t.value,e,n,r);else if(ge(t))for(let i=0;i<t.length;i++)Fi(t[i],e,n,r);else if(nO(t)||Qo(t))t.forEach(i=>{Fi(i,e,n,r)});else if(iO(t))for(const i in t)Fi(t[i],e,n,r);return t}function sD(t,e){if(et===null)return t;const n=Ld(et)||et.proxy,r=t.dirs||(t.dirs=[]);for(let i=0;i<e.length;i++){let[o,s,a,l=De]=e[i];o&&(_e(o)&&(o={mounted:o,updated:o}),o.deep&&Fi(s),r.push({dir:o,instance:n,value:s,oldValue:void 0,arg:a,modifiers:l}))}return t}function Hn(t,e,n,r){const i=t.dirs,o=e&&e.dirs;for(let s=0;s<i.length;s++){const a=i[s];o&&(a.oldValue=o[s].value);let l=a.dir[r];l&&(bo(),Jt(l,n,8,[t.el,a,t,e]),_o())}}const Br=Symbol("_leaveCb"),Pu=Symbol("_enterCb");function dv(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Cc(()=>{t.isMounted=!0}),Vd(()=>{t.isUnmounting=!0}),t}const an=[Function,Array],hv={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:an,onEnter:an,onAfterEnter:an,onEnterCancelled:an,onBeforeLeave:an,onLeave:an,onAfterLeave:an,onLeaveCancelled:an,onBeforeAppear:an,onAppear:an,onAfterAppear:an,onAppearCancelled:an},aD={name:"BaseTransition",props:hv,setup(t,{slots:e}){const n=Pr(),r=dv();let i;return()=>{const o=e.default&&Id(e.default(),!0);if(!o||!o.length)return;let s=o[0];if(o.length>1){for(const m of o)if(m.type!==xt){s=m;break}}const a=Pe(t),{mode:l}=a;if(r.isLeaving)return Eh(s);const c=I0(s);if(!c)return Eh(s);const u=os(c,a,r,n);ao(c,u);const f=n.subTree,h=f&&I0(f);let d=!1;const{getTransitionKey:p}=c.type;if(p){const m=p();i===void 0?i=m:m!==i&&(i=m,d=!0)}if(h&&h.type!==xt&&(!On(c,h)||d)){const m=os(h,a,r,n);if(ao(h,m),l==="out-in")return r.isLeaving=!0,m.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Eh(s);l==="in-out"&&c.type!==xt&&(m.delayLeave=(g,v,b)=>{const y=WO(r,h);y[String(h.key)]=h,g[Br]=()=>{v(),g[Br]=void 0,delete u.delayedLeave},u.delayedLeave=b})}return s}}},qO=aD;function WO(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function os(t,e,n,r){const{appear:i,mode:o,persisted:s=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:h,onAfterLeave:d,onLeaveCancelled:p,onBeforeAppear:m,onAppear:g,onAfterAppear:v,onAppearCancelled:b}=e,y=String(t.key),_=WO(n,t),A=(S,w)=>{S&&Jt(S,r,9,w)},C=(S,w)=>{const O=w[1];A(S,w),ge(S)?S.every(P=>P.length<=1)&&O():S.length<=1&&O()},x={mode:o,persisted:s,beforeEnter(S){let w=a;if(!n.isMounted)if(i)w=m||a;else return;S[Br]&&S[Br](!0);const O=_[y];O&&On(t,O)&&O.el[Br]&&O.el[Br](),A(w,[S])},enter(S){let w=l,O=c,P=u;if(!n.isMounted)if(i)w=g||l,O=v||c,P=b||u;else return;let T=!1;const R=S[Pu]=M=>{T||(T=!0,M?A(P,[S]):A(O,[S]),x.delayedLeave&&x.delayedLeave(),S[Pu]=void 0)};w?C(w,[S,R]):R()},leave(S,w){const O=String(t.key);if(S[Pu]&&S[Pu](!0),n.isUnmounting)return w();A(f,[S]);let P=!1;const T=S[Br]=R=>{P||(P=!0,w(),R?A(p,[S]):A(d,[S]),S[Br]=void 0,_[O]===t&&delete _[O])};_[O]=t,h?C(h,[S,T]):T()},clone(S){return os(S,e,n,r)}};return x}function Eh(t){if(xc(t))return t=Zn(t),t.children=null,t}function I0(t){return xc(t)?t.children?t.children[0]:void 0:t}function ao(t,e){t.shapeFlag&6&&t.component?ao(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Id(t,e=!1,n){let r=[],i=0;for(let o=0;o<t.length;o++){let s=t[o];const a=n==null?s.key:String(n)+String(s.key!=null?s.key:o);s.type===dt?(s.patchFlag&128&&i++,r=r.concat(Id(s.children,e,a))):(e||s.type!==xt)&&r.push(a!=null?Zn(s,{key:a}):s)}if(i>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function pv(t,e){return _e(t)?(()=>lt({name:t.name},e,{setup:t}))():t}const Zi=t=>!!t.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function lD(t){_e(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:r,delay:i=200,timeout:o,suspensible:s=!0,onError:a}=t;let l=null,c,u=0;const f=()=>(u++,l=null,h()),h=()=>{let d;return l||(d=l=e().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),a)return new Promise((m,g)=>{a(p,()=>m(f()),()=>g(p),u+1)});throw p}).then(p=>d!==l&&l?l:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),c=p,p)))};return pv({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return c},setup(){const d=ot;if(c)return()=>Ph(c,d);const p=b=>{l=null,So(b,d,13,!r)};if(s&&d.suspense||Tc)return h().then(b=>()=>Ph(b,d)).catch(b=>(p(b),()=>r?ke(r,{error:b}):null));const m=va(!1),g=va(),v=va(!!i);return i&&setTimeout(()=>{v.value=!1},i),o!=null&&setTimeout(()=>{if(!m.value&&!g.value){const b=new Error(`Async component timed out after ${o}ms.`);p(b),g.value=b}},o),h().then(()=>{m.value=!0,d.parent&&xc(d.parent.vnode)&&(d.parent.effect.dirty=!0,xd(d.parent.update))}).catch(b=>{p(b),g.value=b}),()=>{if(m.value&&c)return Ph(c,d);if(g.value&&r)return ke(r,{error:g.value});if(n&&!v.value)return ke(n)}}})}function Ph(t,e){const{ref:n,props:r,children:i,ce:o}=e.vnode,s=ke(t,r,i);return s.ref=n,s.ce=o,delete e.vnode.ce,s}const xc=t=>t.type.__isKeepAlive,cD={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=Pr(),r=n.ctx;if(!r.renderer)return()=>{const b=e.default&&e.default();return b&&b.length===1?b[0]:b};const i=new Map,o=new Set;let s=null;const a=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:f}}}=r,h=f("div");r.activate=(b,y,_,A,C)=>{const x=b.component;c(b,y,_,0,a),l(x.vnode,b,y,_,x,a,A,b.slotScopeIds,C),vt(()=>{x.isDeactivated=!1,x.a&&ga(x.a);const S=b.props&&b.props.onVnodeMounted;S&&Nt(S,x.parent,b)},a)},r.deactivate=b=>{const y=b.component;c(b,h,null,1,a),vt(()=>{y.da&&ga(y.da);const _=b.props&&b.props.onVnodeUnmounted;_&&Nt(_,y.parent,b),y.isDeactivated=!0},a)};function d(b){xh(b),u(b,n,a,!0)}function p(b){i.forEach((y,_)=>{const A=lm(y.type);A&&(!b||!b(A))&&m(_)})}function m(b){const y=i.get(b);!s||!On(y,s)?d(y):s&&xh(s),i.delete(b),o.delete(b)}ya(()=>[t.include,t.exclude],([b,y])=>{b&&p(_=>oa(b,_)),y&&p(_=>!oa(y,_))},{flush:"post",deep:!0});let g=null;const v=()=>{g!=null&&i.set(g,Ch(n.subTree))};return Cc(v),$d(v),Vd(()=>{i.forEach(b=>{const{subTree:y,suspense:_}=n,A=Ch(y);if(b.type===A.type&&b.key===A.key){xh(A);const C=A.component.da;C&&vt(C,_);return}d(b)})}),()=>{if(g=null,!e.default)return null;const b=e.default(),y=b[0];if(b.length>1)return s=null,b;if(!oi(y)||!(y.shapeFlag&4)&&!(y.shapeFlag&128))return s=null,y;let _=Ch(y);const A=_.type,C=lm(Zi(_)?_.type.__asyncResolved||{}:A),{include:x,exclude:S,max:w}=t;if(x&&(!C||!oa(x,C))||S&&C&&oa(S,C))return s=_,y;const O=_.key==null?A:_.key,P=i.get(O);return _.el&&(_=Zn(_),y.shapeFlag&128&&(y.ssContent=_)),g=O,P?(_.el=P.el,_.component=P.component,_.transition&&ao(_,_.transition),_.shapeFlag|=512,o.delete(O),o.add(O)):(o.add(O),w&&o.size>parseInt(w,10)&&m(o.values().next().value)),_.shapeFlag|=256,s=_,NO(y.type)?y:_}}},uD=cD;function oa(t,e){return ge(t)?t.some(n=>oa(n,e)):tt(t)?t.split(",").includes(e):LL(t)?t.test(e):!1}function UO(t,e){zO(t,"a",e)}function QO(t,e){zO(t,"da",e)}function zO(t,e,n=ot){const r=t.__wdc||(t.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(Rd(e,r,n),n){let i=n.parent;for(;i&&i.parent;)xc(i.parent.vnode)&&fD(r,e,n,i),i=i.parent}}function fD(t,e,n,r){const i=Rd(e,t,r,!0);jd(()=>{Qg(r[e],i)},n)}function xh(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Ch(t){return t.shapeFlag&128?t.ssContent:t}function Rd(t,e,n=ot,r=!1){if(n){const i=n[t]||(n[t]=[]),o=e.__weh||(e.__weh=(...s)=>{if(n.isUnmounted)return;bo();const a=uo(n),l=Jt(e,n,t,s);return a(),_o(),l});return r?i.unshift(o):i.push(o),o}}const Er=t=>(e,n=ot)=>(!Tc||t==="sp")&&Rd(t,(...r)=>e(...r),n),KO=Er("bm"),Cc=Er("m"),GO=Er("bu"),$d=Er("u"),Vd=Er("bum"),jd=Er("um"),YO=Er("sp"),JO=Er("rtg"),ZO=Er("rtc");function XO(t,e=ot){Rd("ec",t,e)}function eE(t,e,n,r){let i;const o=n&&n[r];if(ge(t)||tt(t)){i=new Array(t.length);for(let s=0,a=t.length;s<a;s++)i[s]=e(t[s],s,void 0,o&&o[s])}else if(typeof t=="number"){i=new Array(t);for(let s=0;s<t;s++)i[s]=e(s+1,s,void 0,o&&o[s])}else if(He(t))if(t[Symbol.iterator])i=Array.from(t,(s,a)=>e(s,a,void 0,o&&o[a]));else{const s=Object.keys(t);i=new Array(s.length);for(let a=0,l=s.length;a<l;a++){const c=s[a];i[a]=e(t[c],c,a,o&&o[a])}}else i=[];return n&&(n[r]=i),i}function dD(t,e){for(let n=0;n<e.length;n++){const r=e[n];if(ge(r))for(let i=0;i<r.length;i++)t[r[i].name]=r[i].fn;else r&&(t[r.name]=r.key?(...i)=>{const o=r.fn(...i);return o&&(o.key=r.key),o}:r.fn)}return t}function hD(t,e,n={},r,i){if(et.isCE||et.parent&&Zi(et.parent)&&et.parent.isCE)return e!=="default"&&(n.name=e),ke("slot",n,r&&r());let o=t[e];o&&o._c&&(o._d=!1),xn();const s=o&&tE(o(n)),a=yv(dt,{key:n.key||s&&s.key||`_${e}`},s||(r?r():[]),s&&t._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),o&&o._c&&(o._d=!0),a}function tE(t){return t.some(e=>oi(e)?!(e.type===xt||e.type===dt&&!tE(e.children)):!0)?t:null}function pD(t,e){const n={};for(const r in t)n[e&&/[A-Z]/.test(r)?`on:${r}`:ma(r)]=t[r];return n}const Jp=t=>t?AE(t)?Ld(t)||t.proxy:Jp(t.parent):null,ba=lt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Jp(t.parent),$root:t=>Jp(t.root),$emit:t=>t.emit,$options:t=>mv(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,xd(t.update)}),$nextTick:t=>t.n||(t.n=Pd.bind(t.proxy)),$watch:t=>oD.bind(t)}),Th=(t,e)=>t!==De&&!t.__isScriptSetup&&Ie(t,e),Zp={get({_:t},e){const{ctx:n,setupState:r,data:i,props:o,accessCache:s,type:a,appContext:l}=t;let c;if(e[0]!=="$"){const d=s[e];if(d!==void 0)switch(d){case 1:return r[e];case 2:return i[e];case 4:return n[e];case 3:return o[e]}else{if(Th(r,e))return s[e]=1,r[e];if(i!==De&&Ie(i,e))return s[e]=2,i[e];if((c=t.propsOptions[0])&&Ie(c,e))return s[e]=3,o[e];if(n!==De&&Ie(n,e))return s[e]=4,n[e];Xp&&(s[e]=0)}}const u=ba[e];let f,h;if(u)return e==="$attrs"&&Ut(t,"get",e),u(t);if((f=a.__cssModules)&&(f=f[e]))return f;if(n!==De&&Ie(n,e))return s[e]=4,n[e];if(h=l.config.globalProperties,Ie(h,e))return h[e]},set({_:t},e,n){const{data:r,setupState:i,ctx:o}=t;return Th(i,e)?(i[e]=n,!0):r!==De&&Ie(r,e)?(r[e]=n,!0):Ie(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(o[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:i,propsOptions:o}},s){let a;return!!n[s]||t!==De&&Ie(t,s)||Th(e,s)||(a=o[0])&&Ie(a,s)||Ie(r,s)||Ie(ba,s)||Ie(i.config.globalProperties,s)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Ie(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}},mD=lt({},Zp,{get(t,e){if(e!==Symbol.unscopables)return Zp.get(t,e,t)},has(t,e){return e[0]!=="_"&&!qL(e)}});function gD(){return null}function vD(){return null}function yD(t){}function bD(t){}function _D(){return null}function SD(){}function wD(t,e){return null}function AD(){return nE().slots}function OD(){return nE().attrs}function nE(){const t=Pr();return t.setupContext||(t.setupContext=xE(t))}function yl(t){return ge(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function ED(t,e){const n=yl(t);for(const r in e){if(r.startsWith("__skip"))continue;let i=n[r];i?ge(i)||_e(i)?i=n[r]={type:i,default:e[r]}:i.default=e[r]:i===null&&(i=n[r]={default:e[r]}),i&&e[`__skip_${r}`]&&(i.skipFactory=!0)}return n}function PD(t,e){return!t||!e?t||e:ge(t)&&ge(e)?t.concat(e):lt({},yl(t),yl(e))}function xD(t,e){const n={};for(const r in t)e.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>t[r]});return n}function CD(t){const e=Pr();let n=t();return om(),zg(n)&&(n=n.catch(r=>{throw uo(e),r})),[n,()=>uo(e)]}let Xp=!0;function TD(t){const e=mv(t),n=t.proxy,r=t.ctx;Xp=!1,e.beforeCreate&&R0(e.beforeCreate,t,"bc");const{data:i,computed:o,methods:s,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:h,beforeUpdate:d,updated:p,activated:m,deactivated:g,beforeDestroy:v,beforeUnmount:b,destroyed:y,unmounted:_,render:A,renderTracked:C,renderTriggered:x,errorCaptured:S,serverPrefetch:w,expose:O,inheritAttrs:P,components:T,directives:R,filters:M}=e;if(c&&ID(c,r,null),s)for(const z in s){const Q=s[z];_e(Q)&&(r[z]=Q.bind(n))}if(i){const z=i.call(n,n);He(z)&&(t.data=Yi(z))}if(Xp=!0,o)for(const z in o){const Q=o[z],G=_e(Q)?Q.bind(n,n):_e(Q.get)?Q.get.bind(n,n):$t,K=!_e(Q)&&_e(Q.set)?Q.set.bind(n):$t,te=Tf({get:G,set:K});Object.defineProperty(r,z,{enumerable:!0,configurable:!0,get:()=>te.value,set:ue=>te.value=ue})}if(a)for(const z in a)rE(a[z],r,n,z);if(l){const z=_e(l)?l.call(n):l;Reflect.ownKeys(z).forEach(Q=>{oE(Q,z[Q])})}u&&R0(u,t,"c");function B(z,Q){ge(Q)?Q.forEach(G=>z(G.bind(n))):Q&&z(Q.bind(n))}if(B(KO,f),B(Cc,h),B(GO,d),B($d,p),B(UO,m),B(QO,g),B(XO,S),B(ZO,C),B(JO,x),B(Vd,b),B(jd,_),B(YO,w),ge(O))if(O.length){const z=t.exposed||(t.exposed={});O.forEach(Q=>{Object.defineProperty(z,Q,{get:()=>n[Q],set:G=>n[Q]=G})})}else t.exposed||(t.exposed={});A&&t.render===$t&&(t.render=A),P!=null&&(t.inheritAttrs=P),T&&(t.components=T),R&&(t.directives=R)}function ID(t,e,n=$t){ge(t)&&(t=em(t));for(const r in t){const i=t[r];let o;He(i)?"default"in i?o=_a(i.from||r,i.default,!0):o=_a(i.from||r):o=_a(i),bt(o)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):e[r]=o}}function R0(t,e,n){Jt(ge(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function rE(t,e,n,r){const i=r.includes(".")?HO(n,r):()=>n[r];if(tt(t)){const o=e[t];_e(o)&&ya(i,o)}else if(_e(t))ya(i,t.bind(n));else if(He(t))if(ge(t))t.forEach(o=>rE(o,e,n,r));else{const o=_e(t.handler)?t.handler.bind(n):e[t.handler];_e(o)&&ya(i,o,t)}}function mv(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=t.appContext,a=o.get(e);let l;return a?l=a:!i.length&&!n&&!r?l=e:(l={},i.length&&i.forEach(c=>Ef(l,c,s,!0)),Ef(l,e,s)),He(e)&&o.set(e,l),l}function Ef(t,e,n,r=!1){const{mixins:i,extends:o}=e;o&&Ef(t,o,n,!0),i&&i.forEach(s=>Ef(t,s,n,!0));for(const s in e)if(!(r&&s==="expose")){const a=RD[s]||n&&n[s];t[s]=a?a(t[s],e[s]):e[s]}return t}const RD={data:$0,props:V0,emits:V0,methods:sa,computed:sa,beforeCreate:Rt,created:Rt,beforeMount:Rt,mounted:Rt,beforeUpdate:Rt,updated:Rt,beforeDestroy:Rt,beforeUnmount:Rt,destroyed:Rt,unmounted:Rt,activated:Rt,deactivated:Rt,errorCaptured:Rt,serverPrefetch:Rt,components:sa,directives:sa,watch:VD,provide:$0,inject:$D};function $0(t,e){return e?t?function(){return lt(_e(t)?t.call(this,this):t,_e(e)?e.call(this,this):e)}:e:t}function $D(t,e){return sa(em(t),em(e))}function em(t){if(ge(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Rt(t,e){return t?[...new Set([].concat(t,e))]:e}function sa(t,e){return t?lt(Object.create(null),t,e):e}function V0(t,e){return t?ge(t)&&ge(e)?[...new Set([...t,...e])]:lt(Object.create(null),yl(t),yl(e??{})):e}function VD(t,e){if(!t)return e;if(!e)return t;const n=lt(Object.create(null),t);for(const r in e)n[r]=Rt(t[r],e[r]);return n}function iE(){return{app:null,config:{isNativeTag:jL,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 jD=0;function ND(t,e){return function(r,i=null){_e(r)||(r=lt({},r)),i!=null&&!He(i)&&(i=null);const o=iE(),s=new WeakSet;let a=!1;const l=o.app={_uid:jD++,_component:r,_props:i,_container:null,_context:o,_instance:null,version:IE,get config(){return o.config},set config(c){},use(c,...u){return s.has(c)||(c&&_e(c.install)?(s.add(c),c.install(l,...u)):_e(c)&&(s.add(c),c(l,...u))),l},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),l},component(c,u){return u?(o.components[c]=u,l):o.components[c]},directive(c,u){return u?(o.directives[c]=u,l):o.directives[c]},mount(c,u,f){if(!a){const h=ke(r,i);return h.appContext=o,f===!0?f="svg":f===!1&&(f=void 0),u&&e?e(h,c):t(h,c,f),a=!0,l._container=c,c.__vue_app__=l,Ld(h.component)||h.component.proxy}},unmount(){a&&(t(null,l._container),delete l._container.__vue_app__)},provide(c,u){return o.provides[c]=u,l},runWithContext(c){bl=l;try{return c()}finally{bl=null}}};return l}}let bl=null;function oE(t,e){if(ot){let n=ot.provides;const r=ot.parent&&ot.parent.provides;r===n&&(n=ot.provides=Object.create(r)),n[t]=e}}function _a(t,e,n=!1){const r=ot||et;if(r||bl){const i=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:bl._context.provides;if(i&&t in i)return i[t];if(arguments.length>1)return n&&_e(e)?e.call(r&&r.proxy):e}}function LD(){return!!(ot||et||bl)}function FD(t,e,n,r=!1){const i={},o={};Sf(o,Nd,1),t.propsDefaults=Object.create(null),sE(t,e,i,o);for(const s in t.propsOptions[0])s in i||(i[s]=void 0);n?t.props=r?i:OO(i):t.type.props?t.props=i:t.props=o,t.attrs=o}function DD(t,e,n,r){const{props:i,attrs:o,vnode:{patchFlag:s}}=t,a=Pe(i),[l]=t.propsOptions;let c=!1;if((r||s>0)&&!(s&16)){if(s&8){const u=t.vnode.dynamicProps;for(let f=0;f<u.length;f++){let h=u[f];if(Cd(t.emitsOptions,h))continue;const d=e[h];if(l)if(Ie(o,h))d!==o[h]&&(o[h]=d,c=!0);else{const p=yn(h);i[p]=tm(l,a,p,d,t,!1)}else d!==o[h]&&(o[h]=d,c=!0)}}}else{sE(t,e,i,o)&&(c=!0);let u;for(const f in a)(!e||!Ie(e,f)&&((u=Ac(f))===f||!Ie(e,u)))&&(l?n&&(n[f]!==void 0||n[u]!==void 0)&&(i[f]=tm(l,a,f,void 0,t,!0)):delete i[f]);if(o!==a)for(const f in o)(!e||!Ie(e,f))&&(delete o[f],c=!0)}c&&gr(t,"set","$attrs")}function sE(t,e,n,r){const[i,o]=t.propsOptions;let s=!1,a;if(e)for(let l in e){if(pa(l))continue;const c=e[l];let u;i&&Ie(i,u=yn(l))?!o||!o.includes(u)?n[u]=c:(a||(a={}))[u]=c:Cd(t.emitsOptions,l)||(!(l in r)||c!==r[l])&&(r[l]=c,s=!0)}if(o){const l=Pe(n),c=a||De;for(let u=0;u<o.length;u++){const f=o[u];n[f]=tm(i,l,f,c[f],t,!Ie(c,f))}}return s}function tm(t,e,n,r,i,o){const s=t[n];if(s!=null){const a=Ie(s,"default");if(a&&r===void 0){const l=s.default;if(s.type!==Function&&!s.skipFactory&&_e(l)){const{propsDefaults:c}=i;if(n in c)r=c[n];else{const u=uo(i);r=c[n]=l.call(null,e),u()}}else r=l}s[0]&&(o&&!a?r=!1:s[1]&&(r===""||r===Ac(n))&&(r=!0))}return r}function aE(t,e,n=!1){const r=e.propsCache,i=r.get(t);if(i)return i;const o=t.props,s={},a=[];let l=!1;if(!_e(t)){const u=f=>{l=!0;const[h,d]=aE(f,e,!0);lt(s,h),d&&a.push(...d)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!o&&!l)return He(t)&&r.set(t,Uo),Uo;if(ge(o))for(let u=0;u<o.length;u++){const f=yn(o[u]);j0(f)&&(s[f]=De)}else if(o)for(const u in o){const f=yn(u);if(j0(f)){const h=o[u],d=s[f]=ge(h)||_e(h)?{type:h}:lt({},h);if(d){const p=F0(Boolean,d.type),m=F0(String,d.type);d[0]=p>-1,d[1]=m<0||p<m,(p>-1||Ie(d,"default"))&&a.push(f)}}}const c=[s,a];return He(t)&&r.set(t,c),c}function j0(t){return t[0]!=="$"}function N0(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function L0(t,e){return N0(t)===N0(e)}function F0(t,e){return ge(e)?e.findIndex(n=>L0(n,t)):_e(e)&&L0(e,t)?0:-1}const lE=t=>t[0]==="_"||t==="$stable",gv=t=>ge(t)?t.map(Yt):[Yt(t)],MD=(t,e,n)=>{if(e._n)return e;const r=av((...i)=>gv(e(...i)),n);return r._c=!1,r},cE=(t,e,n)=>{const r=t._ctx;for(const i in t){if(lE(i))continue;const o=t[i];if(_e(o))e[i]=MD(i,o,r);else if(o!=null){const s=gv(o);e[i]=()=>s}}},uE=(t,e)=>{const n=gv(e);t.slots.default=()=>n},kD=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=Pe(e),Sf(e,"_",n)):cE(e,t.slots={})}else t.slots={},e&&uE(t,e);Sf(t.slots,Nd,1)},BD=(t,e,n)=>{const{vnode:r,slots:i}=t;let o=!0,s=De;if(r.shapeFlag&32){const a=e._;a?n&&a===1?o=!1:(lt(i,e),!n&&a===1&&delete i._):(o=!e.$stable,cE(e,i)),s=e}else e&&(uE(t,e),s={default:1});if(o)for(const a in i)!lE(a)&&s[a]==null&&delete i[a]};function Pf(t,e,n,r,i=!1){if(ge(t)){t.forEach((h,d)=>Pf(h,e&&(ge(e)?e[d]:e),n,r,i));return}if(Zi(r)&&!i)return;const o=r.shapeFlag&4?Ld(r.component)||r.component.proxy:r.el,s=i?null:o,{i:a,r:l}=t,c=e&&e.r,u=a.refs===De?a.refs={}:a.refs,f=a.setupState;if(c!=null&&c!==l&&(tt(c)?(u[c]=null,Ie(f,c)&&(f[c]=null)):bt(c)&&(c.value=null)),_e(l))vr(l,a,12,[s,u]);else{const h=tt(l),d=bt(l),p=t.f;if(h||d){const m=()=>{if(p){const g=h?Ie(f,l)?f[l]:u[l]:l.value;i?ge(g)&&Qg(g,o):ge(g)?g.includes(o)||g.push(o):h?(u[l]=[o],Ie(f,l)&&(f[l]=u[l])):(l.value=[o],t.k&&(u[t.k]=l.value))}else h?(u[l]=s,Ie(f,l)&&(f[l]=s)):d&&(l.value=s,t.k&&(u[t.k]=s))};i||p?m():(m.id=-1,vt(m,n))}}}let $r=!1;const HD=t=>t.namespaceURI.includes("svg")&&t.tagName!=="foreignObject",qD=t=>t.namespaceURI.includes("MathML"),xu=t=>{if(HD(t))return"svg";if(qD(t))return"mathml"},Cu=t=>t.nodeType===8;function WD(t){const{mt:e,p:n,o:{patchProp:r,createText:i,nextSibling:o,parentNode:s,remove:a,insert:l,createComment:c}}=t,u=(y,_)=>{if(!_.hasChildNodes()){n(null,y,_),Of(),_._vnode=y;return}$r=!1,f(_.firstChild,y,null,null,null),Of(),_._vnode=y,$r&&console.error("Hydration completed but contains mismatches.")},f=(y,_,A,C,x,S=!1)=>{const w=Cu(y)&&y.data==="[",O=()=>m(y,_,A,C,x,w),{type:P,ref:T,shapeFlag:R,patchFlag:M}=_;let k=y.nodeType;_.el=y,M===-2&&(S=!1,_.dynamicChildren=null);let B=null;switch(P){case lo:k!==3?_.children===""?(l(_.el=i(""),s(y),y),B=y):B=O():(y.data!==_.children&&($r=!0,y.data=_.children),B=o(y));break;case xt:b(y)?(B=o(y),v(_.el=y.content.firstChild,y,A)):k!==8||w?B=O():B=o(y);break;case Xi:if(w&&(y=o(y),k=y.nodeType),k===1||k===3){B=y;const z=!_.children.length;for(let Q=0;Q<_.staticCount;Q++)z&&(_.children+=B.nodeType===1?B.outerHTML:B.data),Q===_.staticCount-1&&(_.anchor=B),B=o(B);return w?o(B):B}else O();break;case dt:w?B=p(y,_,A,C,x,S):B=O();break;default:if(R&1)(k!==1||_.type.toLowerCase()!==y.tagName.toLowerCase())&&!b(y)?B=O():B=h(y,_,A,C,x,S);else if(R&6){_.slotScopeIds=x;const z=s(y);if(w?B=g(y):Cu(y)&&y.data==="teleport start"?B=g(y,y.data,"teleport end"):B=o(y),e(_,z,null,A,C,xu(z),S),Zi(_)){let Q;w?(Q=ke(dt),Q.anchor=B?B.previousSibling:z.lastChild):Q=y.nodeType===3?bv(""):ke("div"),Q.el=y,_.component.subTree=Q}}else R&64?k!==8?B=O():B=_.type.hydrate(y,_,A,C,x,S,t,d):R&128&&(B=_.type.hydrate(y,_,A,C,xu(s(y)),x,S,t,f))}return T!=null&&Pf(T,null,C,_),B},h=(y,_,A,C,x,S)=>{S=S||!!_.dynamicChildren;const{type:w,props:O,patchFlag:P,shapeFlag:T,dirs:R,transition:M}=_,k=w==="input"||w==="option";if(k||P!==-1){R&&Hn(_,null,A,"created");let B=!1;if(b(y)){B=pE(C,M)&&A&&A.vnode.props&&A.vnode.props.appear;const Q=y.content.firstChild;B&&M.beforeEnter(Q),v(Q,y,A),_.el=y=Q}if(T&16&&!(O&&(O.innerHTML||O.textContent))){let Q=d(y.firstChild,_,y,A,C,x,S);for(;Q;){$r=!0;const G=Q;Q=Q.nextSibling,a(G)}}else T&8&&y.textContent!==_.children&&($r=!0,y.textContent=_.children);if(O)if(k||!S||P&48)for(const Q in O)(k&&(Q.endsWith("value")||Q==="indeterminate")||_d(Q)&&!pa(Q)||Q[0]===".")&&r(y,Q,null,O[Q],void 0,void 0,A);else O.onClick&&r(y,"onClick",null,O.onClick,void 0,void 0,A);let z;(z=O&&O.onVnodeBeforeMount)&&Nt(z,A,_),R&&Hn(_,null,A,"beforeMount"),((z=O&&O.onVnodeMounted)||R||B)&&LO(()=>{z&&Nt(z,A,_),B&&M.enter(y),R&&Hn(_,null,A,"mounted")},C)}return y.nextSibling},d=(y,_,A,C,x,S,w)=>{w=w||!!_.dynamicChildren;const O=_.children,P=O.length;for(let T=0;T<P;T++){const R=w?O[T]:O[T]=Yt(O[T]);if(y)y=f(y,R,C,x,S,w);else{if(R.type===lo&&!R.children)continue;$r=!0,n(null,R,A,null,C,x,xu(A),S)}}return y},p=(y,_,A,C,x,S)=>{const{slotScopeIds:w}=_;w&&(x=x?x.concat(w):w);const O=s(y),P=d(o(y),_,O,A,C,x,S);return P&&Cu(P)&&P.data==="]"?o(_.anchor=P):($r=!0,l(_.anchor=c("]"),O,P),P)},m=(y,_,A,C,x,S)=>{if($r=!0,_.el=null,S){const P=g(y);for(;;){const T=o(y);if(T&&T!==P)a(T);else break}}const w=o(y),O=s(y);return a(y),n(null,_,O,w,A,C,xu(O),x),w},g=(y,_="[",A="]")=>{let C=0;for(;y;)if(y=o(y),y&&Cu(y)&&(y.data===_&&C++,y.data===A)){if(C===0)return o(y);C--}return y},v=(y,_,A)=>{const C=_.parentNode;C&&C.replaceChild(y,_);let x=A;for(;x;)x.vnode.el===_&&(x.vnode.el=x.subTree.el=y),x=x.parent},b=y=>y.nodeType===1&&y.tagName.toLowerCase()==="template";return[u,f]}const vt=LO;function fE(t){return hE(t)}function dE(t){return hE(t,WD)}function hE(t,e){const n=oO();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:s,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:h,setScopeId:d=$t,insertStaticContent:p}=t,m=(E,I,L,U=null,H=null,X=null,ne=void 0,J=null,Z=!!I.dynamicChildren)=>{if(E===I)return;E&&!On(E,I)&&(U=V(E),ue(E,H,X,!0),E=null),I.patchFlag===-2&&(Z=!1,I.dynamicChildren=null);const{type:Y,ref:ie,shapeFlag:le}=I;switch(Y){case lo:g(E,I,L,U);break;case xt:v(E,I,L,U);break;case Xi:E==null&&b(I,L,U,ne);break;case dt:T(E,I,L,U,H,X,ne,J,Z);break;default:le&1?A(E,I,L,U,H,X,ne,J,Z):le&6?R(E,I,L,U,H,X,ne,J,Z):(le&64||le&128)&&Y.process(E,I,L,U,H,X,ne,J,Z,W)}ie!=null&&H&&Pf(ie,E&&E.ref,X,I||E,!I)},g=(E,I,L,U)=>{if(E==null)r(I.el=a(I.children),L,U);else{const H=I.el=E.el;I.children!==E.children&&c(H,I.children)}},v=(E,I,L,U)=>{E==null?r(I.el=l(I.children||""),L,U):I.el=E.el},b=(E,I,L,U)=>{[E.el,E.anchor]=p(E.children,I,L,U,E.el,E.anchor)},y=({el:E,anchor:I},L,U)=>{let H;for(;E&&E!==I;)H=h(E),r(E,L,U),E=H;r(I,L,U)},_=({el:E,anchor:I})=>{let L;for(;E&&E!==I;)L=h(E),i(E),E=L;i(I)},A=(E,I,L,U,H,X,ne,J,Z)=>{I.type==="svg"?ne="svg":I.type==="math"&&(ne="mathml"),E==null?C(I,L,U,H,X,ne,J,Z):w(E,I,H,X,ne,J,Z)},C=(E,I,L,U,H,X,ne,J)=>{let Z,Y;const{props:ie,shapeFlag:le,transition:de,dirs:ce}=E;if(Z=E.el=s(E.type,X,ie&&ie.is,ie),le&8?u(Z,E.children):le&16&&S(E.children,Z,null,U,H,Ih(E,X),ne,J),ce&&Hn(E,null,U,"created"),x(Z,E,E.scopeId,ne,U),ie){for(const be in ie)be!=="value"&&!pa(be)&&o(Z,be,null,ie[be],X,E.children,U,H,D);"value"in ie&&o(Z,"value",null,ie.value,X),(Y=ie.onVnodeBeforeMount)&&Nt(Y,U,E)}ce&&Hn(E,null,U,"beforeMount");const se=pE(H,de);se&&de.beforeEnter(Z),r(Z,I,L),((Y=ie&&ie.onVnodeMounted)||se||ce)&&vt(()=>{Y&&Nt(Y,U,E),se&&de.enter(Z),ce&&Hn(E,null,U,"mounted")},H)},x=(E,I,L,U,H)=>{if(L&&d(E,L),U)for(let X=0;X<U.length;X++)d(E,U[X]);if(H){let X=H.subTree;if(I===X){const ne=H.vnode;x(E,ne,ne.scopeId,ne.slotScopeIds,H.parent)}}},S=(E,I,L,U,H,X,ne,J,Z=0)=>{for(let Y=Z;Y<E.length;Y++){const ie=E[Y]=J?Hr(E[Y]):Yt(E[Y]);m(null,ie,I,L,U,H,X,ne,J)}},w=(E,I,L,U,H,X,ne)=>{const J=I.el=E.el;let{patchFlag:Z,dynamicChildren:Y,dirs:ie}=I;Z|=E.patchFlag&16;const le=E.props||De,de=I.props||De;let ce;if(L&&Ei(L,!1),(ce=de.onVnodeBeforeUpdate)&&Nt(ce,L,I,E),ie&&Hn(I,E,L,"beforeUpdate"),L&&Ei(L,!0),Y?O(E.dynamicChildren,Y,J,L,U,Ih(I,H),X):ne||Q(E,I,J,null,L,U,Ih(I,H),X,!1),Z>0){if(Z&16)P(J,I,le,de,L,U,H);else if(Z&2&&le.class!==de.class&&o(J,"class",null,de.class,H),Z&4&&o(J,"style",le.style,de.style,H),Z&8){const se=I.dynamicProps;for(let be=0;be<se.length;be++){const j=se[be],ee=le[j],he=de[j];(he!==ee||j==="value")&&o(J,j,ee,he,H,E.children,L,U,D)}}Z&1&&E.children!==I.children&&u(J,I.children)}else!ne&&Y==null&&P(J,I,le,de,L,U,H);((ce=de.onVnodeUpdated)||ie)&&vt(()=>{ce&&Nt(ce,L,I,E),ie&&Hn(I,E,L,"updated")},U)},O=(E,I,L,U,H,X,ne)=>{for(let J=0;J<I.length;J++){const Z=E[J],Y=I[J],ie=Z.el&&(Z.type===dt||!On(Z,Y)||Z.shapeFlag&70)?f(Z.el):L;m(Z,Y,ie,null,U,H,X,ne,!0)}},P=(E,I,L,U,H,X,ne)=>{if(L!==U){if(L!==De)for(const J in L)!pa(J)&&!(J in U)&&o(E,J,L[J],null,ne,I.children,H,X,D);for(const J in U){if(pa(J))continue;const Z=U[J],Y=L[J];Z!==Y&&J!=="value"&&o(E,J,Y,Z,ne,I.children,H,X,D)}"value"in U&&o(E,"value",L.value,U.value,ne)}},T=(E,I,L,U,H,X,ne,J,Z)=>{const Y=I.el=E?E.el:a(""),ie=I.anchor=E?E.anchor:a("");let{patchFlag:le,dynamicChildren:de,slotScopeIds:ce}=I;ce&&(J=J?J.concat(ce):ce),E==null?(r(Y,L,U),r(ie,L,U),S(I.children||[],L,ie,H,X,ne,J,Z)):le>0&&le&64&&de&&E.dynamicChildren?(O(E.dynamicChildren,de,L,H,X,ne,J),(I.key!=null||H&&I===H.subTree)&&vv(E,I,!0)):Q(E,I,L,ie,H,X,ne,J,Z)},R=(E,I,L,U,H,X,ne,J,Z)=>{I.slotScopeIds=J,E==null?I.shapeFlag&512?H.ctx.activate(I,L,U,ne,Z):M(I,L,U,H,X,ne,Z):k(E,I,Z)},M=(E,I,L,U,H,X,ne)=>{const J=E.component=wE(E,U,H);if(xc(E)&&(J.ctx.renderer=W),OE(J),J.asyncDep){if(H&&H.registerDep(J,B),!E.el){const Z=J.subTree=ke(xt);v(null,Z,I,L)}}else B(J,E,I,L,H,X,ne)},k=(E,I,L)=>{const U=I.component=E.component;if(zF(E,I,L))if(U.asyncDep&&!U.asyncResolved){z(U,I,L);return}else U.next=I,DF(U.update),U.effect.dirty=!0,U.update();else I.el=E.el,U.vnode=I},B=(E,I,L,U,H,X,ne)=>{const J=()=>{if(E.isMounted){let{next:ie,bu:le,u:de,parent:ce,vnode:se}=E;{const xe=mE(E);if(xe){ie&&(ie.el=se.el,z(E,ie,ne)),xe.asyncDep.then(()=>{E.isUnmounted||J()});return}}let be=ie,j;Ei(E,!1),ie?(ie.el=se.el,z(E,ie,ne)):ie=se,le&&ga(le),(j=ie.props&&ie.props.onVnodeBeforeUpdate)&&Nt(j,ce,ie,se),Ei(E,!0);const ee=Yu(E),he=E.subTree;E.subTree=ee,m(he,ee,f(he.el),V(he),E,H,X),ie.el=ee.el,be===null&&lv(E,ee.el),de&&vt(de,H),(j=ie.props&&ie.props.onVnodeUpdated)&&vt(()=>Nt(j,ce,ie,se),H)}else{let ie;const{el:le,props:de}=I,{bm:ce,m:se,parent:be}=E,j=Zi(I);if(Ei(E,!1),ce&&ga(ce),!j&&(ie=de&&de.onVnodeBeforeMount)&&Nt(ie,be,I),Ei(E,!0),le&&ae){const ee=()=>{E.subTree=Yu(E),ae(le,E.subTree,E,H,null)};j?I.type.__asyncLoader().then(()=>!E.isUnmounted&&ee()):ee()}else{const ee=E.subTree=Yu(E);m(null,ee,L,U,E,H,X),I.el=ee.el}if(se&&vt(se,H),!j&&(ie=de&&de.onVnodeMounted)){const ee=I;vt(()=>Nt(ie,be,ee),H)}(I.shapeFlag&256||be&&Zi(be.vnode)&&be.vnode.shapeFlag&256)&&E.a&&vt(E.a,H),E.isMounted=!0,I=L=U=null}},Z=E.effect=new is(J,$t,()=>xd(Y),E.scope),Y=E.update=()=>{Z.dirty&&Z.run()};Y.id=E.uid,Ei(E,!0),Y()},z=(E,I,L)=>{I.component=E;const U=E.vnode.props;E.vnode=I,E.next=null,DD(E,I.props,U,L),BD(E,I.children,L),bo(),P0(E),_o()},Q=(E,I,L,U,H,X,ne,J,Z=!1)=>{const Y=E&&E.children,ie=E?E.shapeFlag:0,le=I.children,{patchFlag:de,shapeFlag:ce}=I;if(de>0){if(de&128){K(Y,le,L,U,H,X,ne,J,Z);return}else if(de&256){G(Y,le,L,U,H,X,ne,J,Z);return}}ce&8?(ie&16&&D(Y,H,X),le!==Y&&u(L,le)):ie&16?ce&16?K(Y,le,L,U,H,X,ne,J,Z):D(Y,H,X,!0):(ie&8&&u(L,""),ce&16&&S(le,L,U,H,X,ne,J,Z))},G=(E,I,L,U,H,X,ne,J,Z)=>{E=E||Uo,I=I||Uo;const Y=E.length,ie=I.length,le=Math.min(Y,ie);let de;for(de=0;de<le;de++){const ce=I[de]=Z?Hr(I[de]):Yt(I[de]);m(E[de],ce,L,null,H,X,ne,J,Z)}Y>ie?D(E,H,X,!0,!1,le):S(I,L,U,H,X,ne,J,Z,le)},K=(E,I,L,U,H,X,ne,J,Z)=>{let Y=0;const ie=I.length;let le=E.length-1,de=ie-1;for(;Y<=le&&Y<=de;){const ce=E[Y],se=I[Y]=Z?Hr(I[Y]):Yt(I[Y]);if(On(ce,se))m(ce,se,L,null,H,X,ne,J,Z);else break;Y++}for(;Y<=le&&Y<=de;){const ce=E[le],se=I[de]=Z?Hr(I[de]):Yt(I[de]);if(On(ce,se))m(ce,se,L,null,H,X,ne,J,Z);else break;le--,de--}if(Y>le){if(Y<=de){const ce=de+1,se=ce<ie?I[ce].el:U;for(;Y<=de;)m(null,I[Y]=Z?Hr(I[Y]):Yt(I[Y]),L,se,H,X,ne,J,Z),Y++}}else if(Y>de)for(;Y<=le;)ue(E[Y],H,X,!0),Y++;else{const ce=Y,se=Y,be=new Map;for(Y=se;Y<=de;Y++){const Ne=I[Y]=Z?Hr(I[Y]):Yt(I[Y]);Ne.key!=null&&be.set(Ne.key,Y)}let j,ee=0;const he=de-se+1;let xe=!1,Fe=0;const Ke=new Array(he);for(Y=0;Y<he;Y++)Ke[Y]=0;for(Y=ce;Y<=le;Y++){const Ne=E[Y];if(ee>=he){ue(Ne,H,X,!0);continue}let Ue;if(Ne.key!=null)Ue=be.get(Ne.key);else for(j=se;j<=de;j++)if(Ke[j-se]===0&&On(Ne,I[j])){Ue=j;break}Ue===void 0?ue(Ne,H,X,!0):(Ke[Ue-se]=Y+1,Ue>=Fe?Fe=Ue:xe=!0,m(Ne,I[Ue],L,null,H,X,ne,J,Z),ee++)}const nn=xe?UD(Ke):Uo;for(j=nn.length-1,Y=he-1;Y>=0;Y--){const Ne=se+Y,Ue=I[Ne],nr=Ne+1<ie?I[Ne+1].el:U;Ke[Y]===0?m(null,Ue,L,nr,H,X,ne,J,Z):xe&&(j<0||Y!==nn[j]?te(Ue,L,nr,2):j--)}}},te=(E,I,L,U,H=null)=>{const{el:X,type:ne,transition:J,children:Z,shapeFlag:Y}=E;if(Y&6){te(E.component.subTree,I,L,U);return}if(Y&128){E.suspense.move(I,L,U);return}if(Y&64){ne.move(E,I,L,W);return}if(ne===dt){r(X,I,L);for(let le=0;le<Z.length;le++)te(Z[le],I,L,U);r(E.anchor,I,L);return}if(ne===Xi){y(E,I,L);return}if(U!==2&&Y&1&&J)if(U===0)J.beforeEnter(X),r(X,I,L),vt(()=>J.enter(X),H);else{const{leave:le,delayLeave:de,afterLeave:ce}=J,se=()=>r(X,I,L),be=()=>{le(X,()=>{se(),ce&&ce()})};de?de(X,se,be):be()}else r(X,I,L)},ue=(E,I,L,U=!1,H=!1)=>{const{type:X,props:ne,ref:J,children:Z,dynamicChildren:Y,shapeFlag:ie,patchFlag:le,dirs:de}=E;if(J!=null&&Pf(J,null,L,E,!0),ie&256){I.ctx.deactivate(E);return}const ce=ie&1&&de,se=!Zi(E);let be;if(se&&(be=ne&&ne.onVnodeBeforeUnmount)&&Nt(be,I,E),ie&6)q(E.component,L,U);else{if(ie&128){E.suspense.unmount(L,U);return}ce&&Hn(E,null,I,"beforeUnmount"),ie&64?E.type.remove(E,I,L,H,W,U):Y&&(X!==dt||le>0&&le&64)?D(Y,I,L,!1,!0):(X===dt&&le&384||!H&&ie&16)&&D(Z,I,L),U&&Se(E)}(se&&(be=ne&&ne.onVnodeUnmounted)||ce)&&vt(()=>{be&&Nt(be,I,E),ce&&Hn(E,null,I,"unmounted")},L)},Se=E=>{const{type:I,el:L,anchor:U,transition:H}=E;if(I===dt){ye(L,U);return}if(I===Xi){_(E);return}const X=()=>{i(L),H&&!H.persisted&&H.afterLeave&&H.afterLeave()};if(E.shapeFlag&1&&H&&!H.persisted){const{leave:ne,delayLeave:J}=H,Z=()=>ne(L,X);J?J(E.el,X,Z):Z()}else X()},ye=(E,I)=>{let L;for(;E!==I;)L=h(E),i(E),E=L;i(I)},q=(E,I,L)=>{const{bum:U,scope:H,update:X,subTree:ne,um:J}=E;U&&ga(U),H.stop(),X&&(X.active=!1,ue(ne,E,I,L)),J&&vt(J,I),vt(()=>{E.isUnmounted=!0},I),I&&I.pendingBranch&&!I.isUnmounted&&E.asyncDep&&!E.asyncResolved&&E.suspenseId===I.pendingId&&(I.deps--,I.deps===0&&I.resolve())},D=(E,I,L,U=!1,H=!1,X=0)=>{for(let ne=X;ne<E.length;ne++)ue(E[ne],I,L,U,H)},V=E=>E.shapeFlag&6?V(E.component.subTree):E.shapeFlag&128?E.suspense.next():h(E.anchor||E.el);let F=!1;const N=(E,I,L)=>{E==null?I._vnode&&ue(I._vnode,null,null,!0):m(I._vnode||null,E,I,null,null,null,L),F||(F=!0,P0(),Of(),F=!1),I._vnode=E},W={p:m,um:ue,m:te,r:Se,mt:M,mc:S,pc:Q,pbc:O,n:V,o:t};let re,ae;return e&&([re,ae]=e(W)),{render:N,hydrate:re,createApp:ND(N,re)}}function Ih({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function Ei({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function pE(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function vv(t,e,n=!1){const r=t.children,i=e.children;if(ge(r)&&ge(i))for(let o=0;o<r.length;o++){const s=r[o];let a=i[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[o]=Hr(i[o]),a.el=s.el),n||vv(s,a)),a.type===lo&&(a.el=s.el)}}function UD(t){const e=t.slice(),n=[0];let r,i,o,s,a;const l=t.length;for(r=0;r<l;r++){const c=t[r];if(c!==0){if(i=n[n.length-1],t[i]<c){e[r]=i,n.push(r);continue}for(o=0,s=n.length-1;o<s;)a=o+s>>1,t[n[a]]<c?o=a+1:s=a;c<t[n[o]]&&(o>0&&(e[r]=n[o-1]),n[o]=r)}}for(o=n.length,s=n[o-1];o-- >0;)n[o]=s,s=e[s];return n}function mE(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:mE(e)}const QD=t=>t.__isTeleport,Sa=t=>t&&(t.disabled||t.disabled===""),D0=t=>typeof SVGElement<"u"&&t instanceof SVGElement,M0=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,nm=(t,e)=>{const n=t&&t.to;return tt(n)?e?e(n):null:n},zD={name:"Teleport",__isTeleport:!0,process(t,e,n,r,i,o,s,a,l,c){const{mc:u,pc:f,pbc:h,o:{insert:d,querySelector:p,createText:m,createComment:g}}=c,v=Sa(e.props);let{shapeFlag:b,children:y,dynamicChildren:_}=e;if(t==null){const A=e.el=m(""),C=e.anchor=m("");d(A,n,r),d(C,n,r);const x=e.target=nm(e.props,p),S=e.targetAnchor=m("");x&&(d(S,x),s==="svg"||D0(x)?s="svg":(s==="mathml"||M0(x))&&(s="mathml"));const w=(O,P)=>{b&16&&u(y,O,P,i,o,s,a,l)};v?w(n,C):x&&w(x,S)}else{e.el=t.el;const A=e.anchor=t.anchor,C=e.target=t.target,x=e.targetAnchor=t.targetAnchor,S=Sa(t.props),w=S?n:C,O=S?A:x;if(s==="svg"||D0(C)?s="svg":(s==="mathml"||M0(C))&&(s="mathml"),_?(h(t.dynamicChildren,_,w,i,o,s,a),vv(t,e,!0)):l||f(t,e,w,O,i,o,s,a,!1),v)S?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Tu(e,n,A,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const P=e.target=nm(e.props,p);P&&Tu(e,P,null,c,0)}else S&&Tu(e,C,x,c,1)}gE(e)},remove(t,e,n,r,{um:i,o:{remove:o}},s){const{shapeFlag:a,children:l,anchor:c,targetAnchor:u,target:f,props:h}=t;if(f&&o(u),s&&o(c),a&16){const d=s||!Sa(h);for(let p=0;p<l.length;p++){const m=l[p];i(m,e,n,d,!!m.dynamicChildren)}}},move:Tu,hydrate:KD};function Tu(t,e,n,{o:{insert:r},m:i},o=2){o===0&&r(t.targetAnchor,e,n);const{el:s,anchor:a,shapeFlag:l,children:c,props:u}=t,f=o===2;if(f&&r(s,e,n),(!f||Sa(u))&&l&16)for(let h=0;h<c.length;h++)i(c[h],e,n,2);f&&r(a,e,n)}function KD(t,e,n,r,i,o,{o:{nextSibling:s,parentNode:a,querySelector:l}},c){const u=e.target=nm(e.props,l);if(u){const f=u._lpa||u.firstChild;if(e.shapeFlag&16)if(Sa(e.props))e.anchor=c(s(t),e,a(t),n,r,i,o),e.targetAnchor=f;else{e.anchor=s(t);let h=f;for(;h;)if(h=s(h),h&&h.nodeType===8&&h.data==="teleport anchor"){e.targetAnchor=h,u._lpa=e.targetAnchor&&s(e.targetAnchor);break}c(f,e,u,n,r,i,o)}gE(e)}return e.anchor&&s(e.anchor)}const GD=zD;function gE(t){const e=t.ctx;if(e&&e.ut){let n=t.children[0].el;for(;n&&n!==t.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",e.uid),n=n.nextSibling;e.ut()}}const dt=Symbol.for("v-fgt"),lo=Symbol.for("v-txt"),xt=Symbol.for("v-cmt"),Xi=Symbol.for("v-stc"),wa=[];let Mt=null;function xn(t=!1){wa.push(Mt=t?null:[])}function vE(){wa.pop(),Mt=wa[wa.length-1]||null}let co=1;function rm(t){co+=t}function yE(t){return t.dynamicChildren=co>0?Mt||Uo:null,vE(),co>0&&Mt&&Mt.push(t),t}function Gr(t,e,n,r,i,o){return yE(Ee(t,e,n,r,i,o,!0))}function yv(t,e,n,r,i){return yE(ke(t,e,n,r,i,!0))}function oi(t){return t?t.__v_isVNode===!0:!1}function On(t,e){return t.type===e.type&&t.key===e.key}function YD(t){}const Nd="__vInternal",bE=({key:t})=>t??null,Ju=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?tt(t)||bt(t)||_e(t)?{i:et,r:t,k:e,f:!!n}:t:null);function Ee(t,e=null,n=null,r=0,i=null,o=t===dt?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&bE(e),ref:e&&Ju(e),scopeId:Td,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:et};return a?(_v(l,n),o&128&&t.normalize(l)):n&&(l.shapeFlag|=tt(n)?8:16),co>0&&!s&&Mt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Mt.push(l),l}const ke=JD;function JD(t,e=null,n=null,r=0,i=null,o=!1){if((!t||t===jO)&&(t=xt),oi(t)){const a=Zn(t,e,!0);return n&&_v(a,n),co>0&&!o&&Mt&&(a.shapeFlag&6?Mt[Mt.indexOf(t)]=a:Mt.push(a)),a.patchFlag|=-2,a}if(iM(t)&&(t=t.__vccOpts),e){e=_E(e);let{class:a,style:l}=e;a&&!tt(a)&&(e.class=Ec(a)),He(l)&&(ev(l)&&!ge(l)&&(l=lt({},l)),e.style=Oc(l))}const s=tt(t)?1:NO(t)?128:QD(t)?64:He(t)?4:_e(t)?2:0;return Ee(t,e,n,r,i,s,o,!0)}function _E(t){return t?ev(t)||Nd in t?lt({},t):t:null}function Zn(t,e,n=!1){const{props:r,ref:i,patchFlag:o,children:s}=t,a=e?SE(r||{},e):r;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&bE(a),ref:e&&e.ref?n&&i?ge(i)?i.concat(Ju(e)):[i,Ju(e)]:Ju(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:s,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==dt?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Zn(t.ssContent),ssFallback:t.ssFallback&&Zn(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function bv(t=" ",e=0){return ke(lo,null,t,e)}function Vs(t,e){const n=ke(Xi,null,t);return n.staticCount=e,n}function ZD(t="",e=!1){return e?(xn(),yv(xt,null,t)):ke(xt,null,t)}function Yt(t){return t==null||typeof t=="boolean"?ke(xt):ge(t)?ke(dt,null,t.slice()):typeof t=="object"?Hr(t):ke(lo,null,String(t))}function Hr(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Zn(t)}function _v(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(ge(e))n=16;else if(typeof e=="object")if(r&65){const i=e.default;i&&(i._c&&(i._d=!1),_v(t,i()),i._c&&(i._d=!0));return}else{n=32;const i=e._;!i&&!(Nd in e)?e._ctx=et:i===3&&et&&(et.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else _e(e)?(e={default:e,_ctx:et},n=32):(e=String(e),r&64?(n=16,e=[bv(e)]):n=8);t.children=e,t.shapeFlag|=n}function SE(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const i in r)if(i==="class")e.class!==r.class&&(e.class=Ec([e.class,r.class]));else if(i==="style")e.style=Oc([e.style,r.style]);else if(_d(i)){const o=e[i],s=r[i];s&&o!==s&&!(ge(o)&&o.includes(s))&&(e[i]=o?[].concat(o,s):s)}else i!==""&&(e[i]=r[i])}return e}function Nt(t,e,n,r=null){Jt(t,e,7,[n,r])}const XD=iE();let eM=0;function wE(t,e,n){const r=t.type,i=(e?e.appContext:t.appContext)||XD,o={uid:eM++,vnode:t,type:r,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Gg(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:aE(r,i),emitsOptions:VO(r,i),emit:null,emitted:null,propsDefaults:De,inheritAttrs:r.inheritAttrs,ctx:De,data:De,props:De,attrs:De,slots:De,refs:De,setupState:De,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.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 o.ctx={_:o},o.root=e?e.root:o,o.emit=kF.bind(null,o),t.ce&&t.ce(o),o}let ot=null;const Pr=()=>ot||et;let xf,im;{const t=oO(),e=(n,r)=>{let i;return(i=t[n])||(i=t[n]=[]),i.push(r),o=>{i.length>1?i.forEach(s=>s(o)):i[0](o)}};xf=e("__VUE_INSTANCE_SETTERS__",n=>ot=n),im=e("__VUE_SSR_SETTERS__",n=>Tc=n)}const uo=t=>{const e=ot;return xf(t),t.scope.on(),()=>{t.scope.off(),xf(e)}},om=()=>{ot&&ot.scope.off(),xf(null)};function AE(t){return t.vnode.shapeFlag&4}let Tc=!1;function OE(t,e=!1){e&&im(e);const{props:n,children:r}=t.vnode,i=AE(t);FD(t,n,i,e),kD(t,r);const o=i?tM(t,e):void 0;return e&&im(!1),o}function tM(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=tv(new Proxy(t.ctx,Zp));const{setup:r}=n;if(r){const i=t.setupContext=r.length>1?xE(t):null,o=uo(t);bo();const s=vr(r,t,0,[t.props,i]);if(_o(),o(),zg(s)){if(s.then(om,om),e)return s.then(a=>{sm(t,a,e)}).catch(a=>{So(a,t,0)});t.asyncDep=s}else sm(t,s,e)}else PE(t,e)}function sm(t,e,n){_e(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:He(e)&&(t.setupState=ov(e)),PE(t,n)}let Cf,am;function EE(t){Cf=t,am=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,mD))}}const nM=()=>!Cf;function PE(t,e,n){const r=t.type;if(!t.render){if(!e&&Cf&&!r.render){const i=r.template||mv(t).template;if(i){const{isCustomElement:o,compilerOptions:s}=t.appContext.config,{delimiters:a,compilerOptions:l}=r,c=lt(lt({isCustomElement:o,delimiters:a},s),l);r.render=Cf(i,c)}}t.render=r.render||$t,am&&am(t)}{const i=uo(t);bo();try{TD(t)}finally{_o(),i()}}}function rM(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,n){return Ut(t,"get","$attrs"),e[n]}}))}function xE(t){const e=n=>{t.exposed=n||{}};return{get attrs(){return rM(t)},slots:t.slots,emit:t.emit,expose:e}}function Ld(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(ov(tv(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in ba)return ba[n](t)},has(e,n){return n in e||n in ba}}))}function lm(t,e=!0){return _e(t)?t.displayName||t.name:t.name||e&&t.__name}function iM(t){return _e(t)&&"__vccOpts"in t}const Tf=(t,e)=>_F(t,e,Tc);function oM(t,e,n=De){const r=Pr(),i=yn(e),o=Ac(e),s=xO((l,c)=>{let u;return BO(()=>{const f=t[e];$n(u,f)&&(u=f,c())}),{get(){return l(),n.get?n.get(u):u},set(f){const h=r.vnode.props;!(h&&(e in h||i in h||o in h)&&(`onUpdate:${e}`in h||`onUpdate:${i}`in h||`onUpdate:${o}`in h))&&$n(f,u)&&(u=f,c()),r.emit(`update:${e}`,n.set?n.set(f):f)}}}),a=e==="modelValue"?"modelModifiers":`${e}Modifiers`;return s[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?t[a]||{}:s,done:!1}:{done:!0}}}},s}function CE(t,e,n){const r=arguments.length;return r===2?He(e)&&!ge(e)?oi(e)?ke(t,null,[e]):ke(t,e):ke(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&oi(n)&&(n=[n]),ke(t,e,n))}function sM(){}function aM(t,e,n,r){const i=n[r];if(i&&TE(i,t))return i;const o=e();return o.memo=t.slice(),n[r]=o}function TE(t,e){const n=t.memo;if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if($n(n[r],e[r]))return!1;return co>0&&Mt&&Mt.push(t),!0}const IE="3.4.15",lM=$t,cM=NF,uM=Lo,fM=$O,dM={createComponentInstance:wE,setupComponent:OE,renderComponentRoot:Yu,setCurrentRenderingInstance:gl,isVNode:oi,normalizeVNode:Yt},hM=dM,pM=null,mM=null,gM=null;/** * @vue/shared v3.4.15 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function vM(t,e){const n=new Set(t.split(","));return e?r=>n.has(r.toLowerCase()):r=>n.has(r)}const Rh={},yM=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),bM=t=>t.startsWith("onUpdate:"),Ic=Object.assign,Zt=Array.isArray,Rc=t=>$E(t)==="[object Set]",k0=t=>$E(t)==="[object Date]",RE=t=>typeof t=="function",_l=t=>typeof t=="string",B0=t=>typeof t=="symbol",cm=t=>t!==null&&typeof t=="object",_M=Object.prototype.toString,$E=t=>_M.call(t),Sv=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},SM=/-(\w)/g,$h=Sv(t=>t.replace(SM,(e,n)=>n?n.toUpperCase():"")),wM=/\B([A-Z])/g,Ur=Sv(t=>t.replace(wM,"-$1").toLowerCase()),AM=Sv(t=>t.charAt(0).toUpperCase()+t.slice(1)),OM=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},If=t=>{const e=parseFloat(t);return isNaN(e)?t:e},um=t=>{const e=_l(t)?Number(t):NaN;return isNaN(e)?t:e},EM="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",PM=vM(EM);function VE(t){return!!t||t===""}function xM(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=Sr(t[r],e[r]);return n}function Sr(t,e){if(t===e)return!0;let n=k0(t),r=k0(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=B0(t),r=B0(e),n||r)return t===e;if(n=Zt(t),r=Zt(e),n||r)return n&&r?xM(t,e):!1;if(n=cm(t),r=cm(e),n||r){if(!n||!r)return!1;const i=Object.keys(t).length,o=Object.keys(e).length;if(i!==o)return!1;for(const s in t){const a=t.hasOwnProperty(s),l=e.hasOwnProperty(s);if(a&&!l||!a&&l||!Sr(t[s],e[s]))return!1}}return String(t)===String(e)}function Fd(t,e){return t.findIndex(n=>Sr(n,e))}/** * @vue/runtime-dom v3.4.15 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const CM="http://www.w3.org/2000/svg",TM="http://www.w3.org/1998/Math/MathML",qr=typeof document<"u"?document:null,H0=qr&&qr.createElement("template"),IM={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const i=e==="svg"?qr.createElementNS(CM,t):e==="mathml"?qr.createElementNS(TM,t):qr.createElement(t,n?{is:n}:void 0);return t==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:t=>qr.createTextNode(t),createComment:t=>qr.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>qr.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,i,o){const s=n?n.previousSibling:e.lastChild;if(i&&(i===o||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{H0.innerHTML=r==="svg"?`<svg>${t}</svg>`:r==="mathml"?`<math>${t}</math>`:t;const a=H0.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[s?s.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},Vr="transition",Qs="animation",ss=Symbol("_vtc"),wv=(t,{slots:e})=>CE(qO,NE(t),e);wv.displayName="Transition";const jE={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},RM=wv.props=Ic({},hv,jE),Pi=(t,e=[])=>{Zt(t)?t.forEach(n=>n(...e)):t&&t(...e)},q0=t=>t?Zt(t)?t.some(e=>e.length>1):t.length>1:!1;function NE(t){const e={};for(const T in t)T in jE||(e[T]=t[T]);if(t.css===!1)return e;const{name:n="v",type:r,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=s,appearToClass:u=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:d=`${n}-leave-to`}=t,p=$M(i),m=p&&p[0],g=p&&p[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:y,onLeave:_,onLeaveCancelled:A,onBeforeAppear:C=v,onAppear:x=b,onAppearCancelled:S=y}=e,w=(T,R,M)=>{Fr(T,R?u:a),Fr(T,R?c:s),M&&M()},O=(T,R)=>{T._isLeaving=!1,Fr(T,f),Fr(T,d),Fr(T,h),R&&R()},P=T=>(R,M)=>{const k=T?x:b,B=()=>w(R,T,M);Pi(k,[R,B]),W0(()=>{Fr(R,T?l:o),lr(R,T?u:a),q0(k)||U0(R,r,m,B)})};return Ic(e,{onBeforeEnter(T){Pi(v,[T]),lr(T,o),lr(T,s)},onBeforeAppear(T){Pi(C,[T]),lr(T,l),lr(T,c)},onEnter:P(!1),onAppear:P(!0),onLeave(T,R){T._isLeaving=!0;const M=()=>O(T,R);lr(T,f),FE(),lr(T,h),W0(()=>{T._isLeaving&&(Fr(T,f),lr(T,d),q0(_)||U0(T,r,g,M))}),Pi(_,[T,M])},onEnterCancelled(T){w(T,!1),Pi(y,[T])},onAppearCancelled(T){w(T,!0),Pi(S,[T])},onLeaveCancelled(T){O(T),Pi(A,[T])}})}function $M(t){if(t==null)return null;if(cm(t))return[Vh(t.enter),Vh(t.leave)];{const e=Vh(t);return[e,e]}}function Vh(t){return um(t)}function lr(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[ss]||(t[ss]=new Set)).add(e)}function Fr(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const n=t[ss];n&&(n.delete(e),n.size||(t[ss]=void 0))}function W0(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let VM=0;function U0(t,e,n,r){const i=t._endId=++VM,o=()=>{i===t._endId&&r()};if(n)return setTimeout(o,n);const{type:s,timeout:a,propCount:l}=LE(t,e);if(!s)return r();const c=s+"end";let u=0;const f=()=>{t.removeEventListener(c,h),o()},h=d=>{d.target===t&&++u>=l&&f()};setTimeout(()=>{u<l&&f()},a+1),t.addEventListener(c,h)}function LE(t,e){const n=window.getComputedStyle(t),r=p=>(n[p]||"").split(", "),i=r(`${Vr}Delay`),o=r(`${Vr}Duration`),s=Q0(i,o),a=r(`${Qs}Delay`),l=r(`${Qs}Duration`),c=Q0(a,l);let u=null,f=0,h=0;e===Vr?s>0&&(u=Vr,f=s,h=o.length):e===Qs?c>0&&(u=Qs,f=c,h=l.length):(f=Math.max(s,c),u=f>0?s>c?Vr:Qs:null,h=u?u===Vr?o.length:l.length:0);const d=u===Vr&&/\b(transform|all)(,|$)/.test(r(`${Vr}Property`).toString());return{type:u,timeout:f,propCount:h,hasTransform:d}}function Q0(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,r)=>z0(n)+z0(t[r])))}function z0(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function FE(){return document.body.offsetHeight}function jM(t,e,n){const r=t[ss];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const Av=Symbol("_vod"),DE={beforeMount(t,{value:e},{transition:n}){t[Av]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):zs(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!=!n&&(r?e?(r.beforeEnter(t),zs(t,!0),r.enter(t)):r.leave(t,()=>{zs(t,!1)}):zs(t,e))},beforeUnmount(t,{value:e}){zs(t,e)}};function zs(t,e){t.style.display=e?t[Av]:"none"}function NM(){DE.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}}}const ME=Symbol("");function LM(t){const e=Pr();if(!e)return;const n=e.ut=(i=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(o=>dm(o,i))},r=()=>{const i=t(e.proxy);fm(e.subTree,i),n(i)};kO(r),Cc(()=>{const i=new MutationObserver(r);i.observe(e.subTree.el.parentNode,{childList:!0}),jd(()=>i.disconnect())})}function fm(t,e){if(t.shapeFlag&128){const n=t.suspense;t=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{fm(n.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)dm(t.el,e);else if(t.type===dt)t.children.forEach(n=>fm(n,e));else if(t.type===Xi){let{el:n,anchor:r}=t;for(;n&&(dm(n,e),n!==r);)n=n.nextSibling}}function dm(t,e){if(t.nodeType===1){const n=t.style;let r="";for(const i in e)n.setProperty(`--${i}`,e[i]),r+=`--${i}: ${e[i]};`;n[ME]=r}}function FM(t,e,n){const r=t.style,i=r.display,o=_l(n);if(n&&!o){if(e&&!_l(e))for(const s in e)n[s]==null&&hm(r,s,"");for(const s in n)hm(r,s,n[s])}else if(o){if(e!==n){const s=r[ME];s&&(n+=";"+s),r.cssText=n}}else e&&t.removeAttribute("style");Av in t&&(r.display=i)}const K0=/\s*!important$/;function hm(t,e,n){if(Zt(n))n.forEach(r=>hm(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=DM(t,e);K0.test(n)?t.setProperty(Ur(r),n.replace(K0,""),"important"):t[r]=n}}const G0=["Webkit","Moz","ms"],jh={};function DM(t,e){const n=jh[e];if(n)return n;let r=yn(e);if(r!=="filter"&&r in t)return jh[e]=r;r=AM(r);for(let i=0;i<G0.length;i++){const o=G0[i]+r;if(o in t)return jh[e]=o}return e}const Y0="http://www.w3.org/1999/xlink";function MM(t,e,n,r,i){if(r&&e.startsWith("xlink:"))n==null?t.removeAttributeNS(Y0,e.slice(6,e.length)):t.setAttributeNS(Y0,e,n);else{const o=PM(e);n==null||o&&!VE(n)?t.removeAttribute(e):t.setAttribute(e,o?"":n)}}function kM(t,e,n,r,i,o,s){if(e==="innerHTML"||e==="textContent"){r&&s(r,i,o),t[e]=n??"";return}const a=t.tagName;if(e==="value"&&a!=="PROGRESS"&&!a.includes("-")){t._value=n;const c=a==="OPTION"?t.getAttribute("value"):t.value,u=n??"";c!==u&&(t.value=u),n==null&&t.removeAttribute(e);return}let l=!1;if(n===""||n==null){const c=typeof t[e];c==="boolean"?n=VE(n):n==null&&c==="string"?(n="",l=!0):c==="number"&&(n=0,l=!0)}try{t[e]=n}catch{}l&&t.removeAttribute(e)}function fr(t,e,n,r){t.addEventListener(e,n,r)}function BM(t,e,n,r){t.removeEventListener(e,n,r)}const J0=Symbol("_vei");function HM(t,e,n,r,i=null){const o=t[J0]||(t[J0]={}),s=o[e];if(r&&s)s.value=r;else{const[a,l]=qM(e);if(r){const c=o[e]=QM(r,i);fr(t,a,c,l)}else s&&(BM(t,a,s,l),o[e]=void 0)}}const Z0=/(?:Once|Passive|Capture)$/;function qM(t){let e;if(Z0.test(t)){e={};let r;for(;r=t.match(Z0);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Ur(t.slice(2)),e]}let Nh=0;const WM=Promise.resolve(),UM=()=>Nh||(WM.then(()=>Nh=0),Nh=Date.now());function QM(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Jt(zM(r,n.value),e,5,[r])};return n.value=t,n.attached=UM(),n}function zM(t,e){if(Zt(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>i=>!i._stopped&&r&&r(i))}else return e}const X0=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,KM=(t,e,n,r,i,o,s,a,l)=>{const c=i==="svg";e==="class"?jM(t,r,c):e==="style"?FM(t,n,r):yM(e)?bM(e)||HM(t,e,n,r,s):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):GM(t,e,r,c))?kM(t,e,r,o,s,a,l):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),MM(t,e,r,c))};function GM(t,e,n,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in t&&X0(e)&&RE(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return X0(e)&&_l(n)?!1:e in t}/*! #__NO_SIDE_EFFECTS__ */function kE(t,e){const n=pv(t);class r extends Dd{constructor(o){super(n,o,e)}}return r.def=n,r}/*! #__NO_SIDE_EFFECTS__ */const YM=t=>kE(t,JE),JM=typeof HTMLElement<"u"?HTMLElement:class{};class Dd extends JM{constructor(e,n={},r){super(),this._def=e,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&r?r(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,this._ob&&(this._ob.disconnect(),this._ob=null),Pd(()=>{this._connected||(pm(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);this._ob=new MutationObserver(r=>{for(const i of r)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const e=(r,i=!1)=>{const{props:o,styles:s}=r;let a;if(o&&!Zt(o))for(const l in o){const c=o[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=um(this._props[l])),(a||(a=Object.create(null)))[$h(l)]=!0)}this._numberProps=a,i&&this._resolveProps(r),this._applyStyles(s),this._update()},n=this._def.__asyncLoader;n?n().then(r=>e(r,!0)):e(this._def)}_resolveProps(e){const{props:n}=e,r=Zt(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&r.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of r.map($h))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(o){this._setProp(i,o)}})}_setAttr(e){let n=this.getAttribute(e);const r=$h(e);this._numberProps&&this._numberProps[r]&&(n=um(n)),this._setProp(r,n,!1)}_getProp(e){return this._props[e]}_setProp(e,n,r=!0,i=!0){n!==this._props[e]&&(this._props[e]=n,i&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(Ur(e),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ur(e),n+""):n||this.removeAttribute(Ur(e))))}_update(){pm(this._createVNode(),this.shadowRoot)}_createVNode(){const e=ke(this._def,Ic({},this._props));return this._instance||(e.ce=n=>{this._instance=n,n.isCE=!0;const r=(o,s)=>{this.dispatchEvent(new CustomEvent(o,{detail:s}))};n.emit=(o,...s)=>{r(o,s),Ur(o)!==o&&r(Ur(o),s)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof Dd){n.parent=i._instance,n.provides=i._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function ZM(t="$style"){{const e=Pr();if(!e)return Rh;const n=e.type.__cssModules;if(!n)return Rh;const r=n[t];return r||Rh}}const BE=new WeakMap,HE=new WeakMap,Rf=Symbol("_moveCb"),e_=Symbol("_enterCb"),qE={name:"TransitionGroup",props:Ic({},RM,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=Pr(),r=dv();let i,o;return $d(()=>{if(!i.length)return;const s=t.moveClass||`${t.name||"v"}-move`;if(!ik(i[0].el,n.vnode.el,s))return;i.forEach(tk),i.forEach(nk);const a=i.filter(rk);FE(),a.forEach(l=>{const c=l.el,u=c.style;lr(c,s),u.transform=u.webkitTransform=u.transitionDuration="";const f=c[Rf]=h=>{h&&h.target!==c||(!h||/transform$/.test(h.propertyName))&&(c.removeEventListener("transitionend",f),c[Rf]=null,Fr(c,s))};c.addEventListener("transitionend",f)})}),()=>{const s=Pe(t),a=NE(s);let l=s.tag||dt;i=o,o=e.default?Id(e.default()):[];for(let c=0;c<o.length;c++){const u=o[c];u.key!=null&&ao(u,os(u,a,r,n))}if(i)for(let c=0;c<i.length;c++){const u=i[c];ao(u,os(u,a,r,n)),BE.set(u,u.el.getBoundingClientRect())}return ke(l,null,o)}}},XM=t=>delete t.mode;qE.props;const ek=qE;function tk(t){const e=t.el;e[Rf]&&e[Rf](),e[e_]&&e[e_]()}function nk(t){HE.set(t,t.el.getBoundingClientRect())}function rk(t){const e=BE.get(t),n=HE.get(t),r=e.left-n.left,i=e.top-n.top;if(r||i){const o=t.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${i}px)`,o.transitionDuration="0s",t}}function ik(t,e,n){const r=t.cloneNode(),i=t[ss];i&&i.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const o=e.nodeType===1?e:e.parentNode;o.appendChild(r);const{hasTransform:s}=LE(r);return o.removeChild(r),s}const si=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Zt(e)?n=>OM(e,n):e};function ok(t){t.target.composing=!0}function t_(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const mn=Symbol("_assign"),$f={created(t,{modifiers:{lazy:e,trim:n,number:r}},i){t[mn]=si(i);const o=r||i.props&&i.props.type==="number";fr(t,e?"change":"input",s=>{if(s.target.composing)return;let a=t.value;n&&(a=a.trim()),o&&(a=If(a)),t[mn](a)}),n&&fr(t,"change",()=>{t.value=t.value.trim()}),e||(fr(t,"compositionstart",ok),fr(t,"compositionend",t_),fr(t,"change",t_))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:r,number:i}},o){if(t[mn]=si(o),t.composing)return;const s=i||t.type==="number"?If(t.value):t.value,a=e??"";s!==a&&(document.activeElement===t&&t.type!=="range"&&(n||r&&t.value.trim()===a)||(t.value=a))}},Ov={deep:!0,created(t,e,n){t[mn]=si(n),fr(t,"change",()=>{const r=t._modelValue,i=as(t),o=t.checked,s=t[mn];if(Zt(r)){const a=Fd(r,i),l=a!==-1;if(o&&!l)s(r.concat(i));else if(!o&&l){const c=[...r];c.splice(a,1),s(c)}}else if(Rc(r)){const a=new Set(r);o?a.add(i):a.delete(i),s(a)}else s(UE(t,o))})},mounted:n_,beforeUpdate(t,e,n){t[mn]=si(n),n_(t,e,n)}};function n_(t,{value:e,oldValue:n},r){t._modelValue=e,Zt(e)?t.checked=Fd(e,r.props.value)>-1:Rc(e)?t.checked=e.has(r.props.value):e!==n&&(t.checked=Sr(e,UE(t,!0)))}const Ev={created(t,{value:e},n){t.checked=Sr(e,n.props.value),t[mn]=si(n),fr(t,"change",()=>{t[mn](as(t))})},beforeUpdate(t,{value:e,oldValue:n},r){t[mn]=si(r),e!==n&&(t.checked=Sr(e,r.props.value))}},WE={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const i=Rc(e);fr(t,"change",()=>{const o=Array.prototype.filter.call(t.options,s=>s.selected).map(s=>n?If(as(s)):as(s));t[mn](t.multiple?i?new Set(o):o:o[0]),t._assigning=!0,Pd(()=>{t._assigning=!1})}),t[mn]=si(r)},mounted(t,{value:e,oldValue:n,modifiers:{number:r}}){r_(t,e,n,r)},beforeUpdate(t,e,n){t[mn]=si(n)},updated(t,{value:e,oldValue:n,modifiers:{number:r}}){t._assigning||r_(t,e,n,r)}};function r_(t,e,n,r){const i=t.multiple,o=Zt(e);if(!(i&&!o&&!Rc(e))&&!(o&&Sr(e,n))){for(let s=0,a=t.options.length;s<a;s++){const l=t.options[s],c=as(l);if(i)if(o){const u=typeof c;u==="string"||u==="number"?l.selected=e.includes(r?If(c):c):l.selected=Fd(e,c)>-1}else l.selected=e.has(c);else if(Sr(as(l),e)){t.selectedIndex!==s&&(t.selectedIndex=s);return}}!i&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function as(t){return"_value"in t?t._value:t.value}function UE(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const QE={created(t,e,n){Iu(t,e,n,null,"created")},mounted(t,e,n){Iu(t,e,n,null,"mounted")},beforeUpdate(t,e,n,r){Iu(t,e,n,r,"beforeUpdate")},updated(t,e,n,r){Iu(t,e,n,r,"updated")}};function zE(t,e){switch(t){case"SELECT":return WE;case"TEXTAREA":return $f;default:switch(e){case"checkbox":return Ov;case"radio":return Ev;default:return $f}}}function Iu(t,e,n,r,i){const s=zE(t.tagName,n.props&&n.props.type)[i];s&&s(t,e,n,r)}function sk(){$f.getSSRProps=({value:t})=>({value:t}),Ev.getSSRProps=({value:t},e)=>{if(e.props&&Sr(e.props.value,t))return{checked:!0}},Ov.getSSRProps=({value:t},e)=>{if(Zt(t)){if(e.props&&Fd(t,e.props.value)>-1)return{checked:!0}}else if(Rc(t)){if(e.props&&t.has(e.props.value))return{checked:!0}}else if(t)return{checked:!0}},QE.getSSRProps=(t,e)=>{if(typeof e.type!="string")return;const n=zE(e.type.toUpperCase(),e.props&&e.props.type);if(n.getSSRProps)return n.getSSRProps(t,e)}}const ak=["ctrl","shift","alt","meta"],lk={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>ak.some(n=>t[`${n}Key`]&&!e.includes(n))},ck=(t,e)=>{const n=t._withMods||(t._withMods={}),r=e.join(".");return n[r]||(n[r]=(i,...o)=>{for(let s=0;s<e.length;s++){const a=lk[e[s]];if(a&&a(i,e))return}return t(i,...o)})},uk={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},fk=(t,e)=>{const n=t._withKeys||(t._withKeys={}),r=e.join(".");return n[r]||(n[r]=i=>{if(!("key"in i))return;const o=Ur(i.key);if(e.some(s=>s===o||uk[s]===o))return t(i)})},KE=Ic({patchProp:KM},IM);let Aa,i_=!1;function GE(){return Aa||(Aa=fE(KE))}function YE(){return Aa=i_?Aa:dE(KE),i_=!0,Aa}const pm=(...t)=>{GE().render(...t)},JE=(...t)=>{YE().hydrate(...t)},ZE=(...t)=>{const e=GE().createApp(...t),{mount:n}=e;return e.mount=r=>{const i=eP(r);if(!i)return;const o=e._component;!RE(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const s=n(i,!1,XE(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},e},dk=(...t)=>{const e=YE().createApp(...t),{mount:n}=e;return e.mount=r=>{const i=eP(r);if(i)return n(i,!0,XE(i))},e};function XE(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function eP(t){return _l(t)?document.querySelector(t):t}let o_=!1;const hk=()=>{o_||(o_=!0,sk(),NM())},pk=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:qO,BaseTransitionPropsValidators:hv,Comment:xt,DeprecationTypes:gM,EffectScope:Gg,ErrorCodes:jF,ErrorTypeStrings:cM,Fragment:dt,KeepAlive:uD,ReactiveEffect:is,Static:Xi,Suspense:XF,Teleport:GD,Text:lo,TrackOpTypes:RF,Transition:wv,TransitionGroup:ek,TriggerOpTypes:$F,VueElement:Dd,assertNumber:VF,callWithAsyncErrorHandling:Jt,callWithErrorHandling:vr,camelize:yn,capitalize:wd,cloneVNode:Zn,compatUtils:mM,computed:Tf,createApp:ZE,createBlock:yv,createCommentVNode:ZD,createElementBlock:Gr,createElementVNode:Ee,createHydrationRenderer:dE,createPropsRestProxy:xD,createRenderer:fE,createSSRApp:dk,createSlots:dD,createStaticVNode:Vs,createTextVNode:bv,createVNode:ke,customRef:xO,defineAsyncComponent:lD,defineComponent:pv,defineCustomElement:kE,defineEmits:vD,defineExpose:yD,defineModel:SD,defineOptions:bD,defineProps:gD,defineSSRCustomElement:YM,defineSlots:_D,devtools:uM,effect:ZL,effectScope:GL,getCurrentInstance:Pr,getCurrentScope:cO,getTransitionRawChildren:Id,guardReactiveProps:_E,h:CE,handleError:So,hasInjectionContext:LD,hydrate:JE,initCustomFormatter:sM,initDirectivesForSSR:hk,inject:_a,isMemoSame:TE,isProxy:ev,isReactive:Ji,isReadonly:so,isRef:bt,isRuntimeOnly:nM,isShallow:dl,isVNode:oi,markRaw:tv,mergeDefaults:ED,mergeModels:PD,mergeProps:SE,nextTick:Pd,normalizeClass:Ec,normalizeProps:KL,normalizeStyle:Oc,onActivated:UO,onBeforeMount:KO,onBeforeUnmount:Vd,onBeforeUpdate:GO,onDeactivated:QO,onErrorCaptured:XO,onMounted:Cc,onRenderTracked:ZO,onRenderTriggered:JO,onScopeDispose:YL,onServerPrefetch:YO,onUnmounted:jd,onUpdated:$d,openBlock:xn,popScopeId:HF,provide:oE,proxyRefs:ov,pushScopeId:BF,queuePostFlushCb:Af,reactive:Yi,readonly:Xg,ref:va,registerRuntimeCompiler:EE,render:pm,renderList:eE,renderSlot:hD,resolveComponent:GF,resolveDirective:JF,resolveDynamicComponent:YF,resolveFilter:pM,resolveTransitionHooks:os,setBlockTracking:rm,setDevtoolsHook:fM,setTransitionHooks:ao,shallowReactive:OO,shallowReadonly:bF,shallowRef:SF,ssrContextKey:FO,ssrUtils:hM,stop:XL,toDisplayString:sO,toHandlerKey:ma,toHandlers:pD,toRaw:Pe,toRef:IF,toRefs:xF,toValue:OF,transformVNodeArgs:YD,triggerRef:AF,unref:iv,useAttrs:OD,useCssModule:ZM,useCssVars:LM,useModel:oM,useSSRContext:DO,useSlots:AD,useTransitionState:dv,vModelCheckbox:Ov,vModelDynamic:QE,vModelRadio:Ev,vModelSelect:WE,vModelText:$f,vShow:DE,version:IE,warn:lM,watch:ya,watchEffect:MO,watchPostEffect:kO,watchSyncEffect:BO,withAsyncContext:CD,withCtx:av,withDefaults:wD,withDirectives:sD,withKeys:fk,withMemo:aM,withModifiers:ck,withScopeId:qF},Symbol.toStringTag,{value:"Module"}));/** * @vue/shared v3.4.15 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function tP(t,e){const n=new Set(t.split(","));return e?r=>n.has(r.toLowerCase()):r=>n.has(r)}const mk={},Lh=()=>{},Fh=()=>!1,nP=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Yo=Object.assign,Sl=Array.isArray,yt=t=>typeof t=="string",Pv=t=>typeof t=="symbol",gk=t=>t!==null&&typeof t=="object",s_=tP(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),vk=tP("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),xv=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},yk=/-(\w)/g,fo=xv(t=>t.replace(yk,(e,n)=>n?n.toUpperCase():"")),rP=xv(t=>t.charAt(0).toUpperCase()+t.slice(1)),bk=xv(t=>t?`on${rP(t)}`:"");/** * @vue/compiler-core v3.4.15 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const wl=Symbol(""),Oa=Symbol(""),Cv=Symbol(""),Vf=Symbol(""),iP=Symbol(""),ho=Symbol(""),oP=Symbol(""),sP=Symbol(""),Tv=Symbol(""),Iv=Symbol(""),$c=Symbol(""),Rv=Symbol(""),aP=Symbol(""),$v=Symbol(""),Vv=Symbol(""),jv=Symbol(""),Nv=Symbol(""),Lv=Symbol(""),Fv=Symbol(""),lP=Symbol(""),cP=Symbol(""),Md=Symbol(""),jf=Symbol(""),Dv=Symbol(""),Mv=Symbol(""),Al=Symbol(""),Vc=Symbol(""),kv=Symbol(""),mm=Symbol(""),_k=Symbol(""),gm=Symbol(""),Nf=Symbol(""),Sk=Symbol(""),wk=Symbol(""),Bv=Symbol(""),Ak=Symbol(""),Ok=Symbol(""),Hv=Symbol(""),uP=Symbol(""),ls={[wl]:"Fragment",[Oa]:"Teleport",[Cv]:"Suspense",[Vf]:"KeepAlive",[iP]:"BaseTransition",[ho]:"openBlock",[oP]:"createBlock",[sP]:"createElementBlock",[Tv]:"createVNode",[Iv]:"createElementVNode",[$c]:"createCommentVNode",[Rv]:"createTextVNode",[aP]:"createStaticVNode",[$v]:"resolveComponent",[Vv]:"resolveDynamicComponent",[jv]:"resolveDirective",[Nv]:"resolveFilter",[Lv]:"withDirectives",[Fv]:"renderList",[lP]:"renderSlot",[cP]:"createSlots",[Md]:"toDisplayString",[jf]:"mergeProps",[Dv]:"normalizeClass",[Mv]:"normalizeStyle",[Al]:"normalizeProps",[Vc]:"guardReactiveProps",[kv]:"toHandlers",[mm]:"camelize",[_k]:"capitalize",[gm]:"toHandlerKey",[Nf]:"setBlockTracking",[Sk]:"pushScopeId",[wk]:"popScopeId",[Bv]:"withCtx",[Ak]:"unref",[Ok]:"isRef",[Hv]:"withMemo",[uP]:"isMemoSame"};function Ek(t){Object.getOwnPropertySymbols(t).forEach(e=>{ls[e]=t[e]})}const en={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function Pk(t,e=""){return{type:0,source:e,children:t,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:en}}function Ol(t,e,n,r,i,o,s,a=!1,l=!1,c=!1,u=en){return t&&(a?(t.helper(ho),t.helper(fs(t.inSSR,c))):t.helper(us(t.inSSR,c)),s&&t.helper(Lv)),{type:13,tag:e,props:n,children:r,patchFlag:i,dynamicProps:o,directives:s,isBlock:a,disableTracking:l,isComponent:c,loc:u}}function jc(t,e=en){return{type:17,loc:e,elements:t}}function hn(t,e=en){return{type:15,loc:e,properties:t}}function Ze(t,e){return{type:16,loc:en,key:yt(t)?Ae(t,!0):t,value:e}}function Ae(t,e=!1,n=en,r=0){return{type:4,loc:n,content:t,isStatic:e,constType:e?3:r}}function Cn(t,e=en){return{type:8,loc:e,children:t}}function it(t,e=[],n=en){return{type:14,loc:n,callee:t,arguments:e}}function cs(t,e=void 0,n=!1,r=!1,i=en){return{type:18,params:t,returns:e,newline:n,isSlot:r,loc:i}}function vm(t,e,n,r=!0){return{type:19,test:t,consequent:e,alternate:n,newline:r,loc:en}}function xk(t,e,n=!1){return{type:20,index:t,value:e,isVNode:n,loc:en}}function Ck(t){return{type:21,body:t,loc:en}}function us(t,e){return t||e?Tv:Iv}function fs(t,e){return t||e?oP:sP}function qv(t,{helper:e,removeHelper:n,inSSR:r}){t.isBlock||(t.isBlock=!0,n(us(r,t.isComponent)),e(ho),e(fs(r,t.isComponent)))}const a_=new Uint8Array([123,123]),l_=new Uint8Array([125,125]);function c_(t){return t>=97&&t<=122||t>=65&&t<=90}function Gt(t){return t===32||t===10||t===9||t===12||t===13}function jr(t){return t===47||t===62||Gt(t)}function Lf(t){const e=new Uint8Array(t.length);for(let n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e}const St={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class Tk{constructor(e,n){this.stack=e,this.cbs=n,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=a_,this.delimiterClose=l_,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=a_,this.delimiterClose=l_}getPos(e){let n=1,r=e+1;for(let i=this.newlines.length-1;i>=0;i--){const o=this.newlines[i];if(e>o){n=i+2,r=e-o;break}}return{column:r,line:n,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){e===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?jr(e):(e|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(e===62||Gt(e)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const r=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=r}this.sectionStart=n+2,this.stateInClosingTagName(e),this.inRCDATA=!1;return}this.sequenceIndex=0}(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===St.TitleEnd||this.currentSequence===St.TextareaEnd&&!this.inSFCRoot?e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(e===60)}stateCDATASequence(e){e===St.Cdata[this.sequenceIndex]?++this.sequenceIndex===St.Cdata.length&&(this.state=28,this.currentSequence=St.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);if(n===10&&this.newlines.push(this.index),n===e)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===St.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(e,n){this.enterRCDATA(e,n),this.state=31}enterRCDATA(e,n){this.inRCDATA=!0,this.currentSequence=e,this.sequenceIndex=n}stateBeforeTagName(e){if(e===33)this.state=22,this.sectionStart=this.index+1;else if(e===63)this.state=24,this.sectionStart=this.index+1;else if(c_(e))if(this.sectionStart=this.index,this.mode===0)this.state=6;else if(this.inSFCRoot)this.state=34;else if(this.inXML)this.state=6;else{const n=e|32;n===116?this.state=30:this.state=n===115?29:6}else e===47?this.state=8:(this.state=1,this.stateText(e))}stateInTagName(e){jr(e)&&this.handleTagName(e)}stateInSFCRootTagName(e){if(jr(e)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(Lf("</"+n),0),this.handleTagName(e)}}handleTagName(e){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)}stateBeforeClosingTagName(e){Gt(e)||(e===62?(this.state=1,this.sectionStart=this.index+1):(this.state=c_(e)?9:27,this.sectionStart=this.index))}stateInClosingTagName(e){(e===62||Gt(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){e===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(e){e===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):e===47?this.state=7:e===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):Gt(e)||this.handleAttrStart(e)}handleAttrStart(e){e===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):e===46||e===58||e===64||e===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(e){e===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):Gt(e)||(this.state=11,this.stateBeforeAttrName(e))}stateInAttrName(e){(e===61||jr(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(e))}stateInDirName(e){e===61||jr(e)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(e)):e===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):e===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(e){e===61||jr(e)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(e)):e===91?this.state=15:e===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(e){e===93?this.state=14:(e===61||jr(e))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(e))}stateInDirModifier(e){e===61||jr(e)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(e)):e===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(e){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(e)}stateAfterAttrName(e){e===61?this.state=18:e===47||e===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)):Gt(e)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(e))}stateBeforeAttrValue(e){e===34?(this.state=19,this.sectionStart=this.index+1):e===39?(this.state=20,this.sectionStart=this.index+1):Gt(e)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(e))}handleInAttrValue(e,n){(e===n||this.fastForwardTo(n))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(e){this.handleInAttrValue(e,34)}stateInAttrValueSingleQuotes(e){this.handleInAttrValue(e,39)}stateInAttrValueNoQuotes(e){Gt(e)||e===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(e)):(e===39||e===60||e===61||e===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(e){e===91?(this.state=26,this.sequenceIndex=0):this.state=e===45?25:23}stateInDeclaration(e){(e===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(e){e===45?(this.state=28,this.currentSequence=St.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(e){(e===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){const n=e|32;n===St.ScriptEnd[3]?this.startSpecial(St.ScriptEnd,4):n===St.StyleEnd[3]?this.startSpecial(St.StyleEnd,4):(this.state=6,this.stateInTagName(e))}stateBeforeSpecialT(e){const n=e|32;n===St.TitleEnd[3]?this.startSpecial(St.TitleEnd,4):n===St.TextareaEnd[3]?this.startSpecial(St.TextareaEnd,4):(this.state=6,this.stateInTagName(e))}startEntity(){}stateInEntity(){}parse(e){for(this.buffer=e;this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);switch(n===10&&this.newlines.push(this.index),this.state){case 1:{this.stateText(n);break}case 2:{this.stateInterpolationOpen(n);break}case 3:{this.stateInterpolation(n);break}case 4:{this.stateInterpolationClose(n);break}case 31:{this.stateSpecialStartSequence(n);break}case 32:{this.stateInRCDATA(n);break}case 26:{this.stateCDATASequence(n);break}case 19:{this.stateInAttrValueDoubleQuotes(n);break}case 12:{this.stateInAttrName(n);break}case 13:{this.stateInDirName(n);break}case 14:{this.stateInDirArg(n);break}case 15:{this.stateInDynamicDirArg(n);break}case 16:{this.stateInDirModifier(n);break}case 28:{this.stateInCommentLike(n);break}case 27:{this.stateInSpecialComment(n);break}case 11:{this.stateBeforeAttrName(n);break}case 6:{this.stateInTagName(n);break}case 34:{this.stateInSFCRootTagName(n);break}case 9:{this.stateInClosingTagName(n);break}case 5:{this.stateBeforeTagName(n);break}case 17:{this.stateAfterAttrName(n);break}case 20:{this.stateInAttrValueSingleQuotes(n);break}case 18:{this.stateBeforeAttrValue(n);break}case 8:{this.stateBeforeClosingTagName(n);break}case 10:{this.stateAfterClosingTagName(n);break}case 29:{this.stateBeforeSpecialS(n);break}case 30:{this.stateBeforeSpecialT(n);break}case 21:{this.stateInAttrValueNoQuotes(n);break}case 7:{this.stateInSelfClosingTag(n);break}case 23:{this.stateInDeclaration(n);break}case 22:{this.stateBeforeDeclaration(n);break}case 25:{this.stateBeforeComment(n);break}case 24:{this.stateInProcessingInstruction(n);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const e=this.buffer.length;this.sectionStart>=e||(this.state===28?this.currentSequence===St.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,n){}}function u_(t,{compatConfig:e}){const n=e&&e[t];return t==="MODE"?n||3:n}function eo(t,e){const n=u_("MODE",e),r=u_(t,e);return n===3?r===!0:r!==!1}function El(t,e,n,...r){return eo(t,e)}function Wv(t){throw t}function fP(t){}function qe(t,e,n,r){const i=`https://vuejs.org/error-reference/#compiler-${t}`,o=new SyntaxError(String(i));return o.code=t,o.loc=e,o}const kt=t=>t.type===4&&t.isStatic;function dP(t){switch(t){case"Teleport":case"teleport":return Oa;case"Suspense":case"suspense":return Cv;case"KeepAlive":case"keep-alive":return Vf;case"BaseTransition":case"base-transition":return iP}}const Ik=/^\d|[^\$\w]/,Uv=t=>!Ik.test(t),Rk=/[A-Za-z_$\xA0-\uFFFF]/,$k=/[\.\?\w$\xA0-\uFFFF]/,Vk=/\s+[.[]\s*|\s*[.[]\s+/g,jk=t=>{t=t.trim().replace(Vk,s=>s.trim());let e=0,n=[],r=0,i=0,o=null;for(let s=0;s<t.length;s++){const a=t.charAt(s);switch(e){case 0:if(a==="[")n.push(e),e=1,r++;else if(a==="(")n.push(e),e=2,i++;else if(!(s===0?Rk:$k).test(a))return!1;break;case 1:a==="'"||a==='"'||a==="`"?(n.push(e),e=3,o=a):a==="["?r++:a==="]"&&(--r||(e=n.pop()));break;case 2:if(a==="'"||a==='"'||a==="`")n.push(e),e=3,o=a;else if(a==="(")i++;else if(a===")"){if(s===t.length-1)return!1;--i||(e=n.pop())}break;case 3:a===o&&(e=n.pop(),o=null);break}}return!r&&!i},hP=jk;function wn(t,e,n=!1){for(let r=0;r<t.props.length;r++){const i=t.props[r];if(i.type===7&&(n||i.exp)&&(yt(e)?i.name===e:e.test(i.name)))return i}}function kd(t,e,n=!1,r=!1){for(let i=0;i<t.props.length;i++){const o=t.props[i];if(o.type===6){if(n)continue;if(o.name===e&&(o.value||r))return o}else if(o.name==="bind"&&(o.exp||r)&&Di(o.arg,e))return o}}function Di(t,e){return!!(t&&kt(t)&&t.content===e)}function Nk(t){return t.props.some(e=>e.type===7&&e.name==="bind"&&(!e.arg||e.arg.type!==4||!e.arg.isStatic))}function Dh(t){return t.type===5||t.type===2}function Lk(t){return t.type===7&&t.name==="slot"}function Ff(t){return t.type===1&&t.tagType===3}function Df(t){return t.type===1&&t.tagType===2}const Fk=new Set([Al,Vc]);function pP(t,e=[]){if(t&&!yt(t)&&t.type===14){const n=t.callee;if(!yt(n)&&Fk.has(n))return pP(t.arguments[0],e.concat(t))}return[t,e]}function Mf(t,e,n){let r,i=t.type===13?t.props:t.arguments[2],o=[],s;if(i&&!yt(i)&&i.type===14){const a=pP(i);i=a[0],o=a[1],s=o[o.length-1]}if(i==null||yt(i))r=hn([e]);else if(i.type===14){const a=i.arguments[0];!yt(a)&&a.type===15?f_(e,a)||a.properties.unshift(e):i.callee===kv?r=it(n.helper(jf),[hn([e]),i]):i.arguments.unshift(hn([e])),!r&&(r=i)}else i.type===15?(f_(e,i)||i.properties.unshift(e),r=i):(r=it(n.helper(jf),[hn([e]),i]),s&&s.callee===Vc&&(s=o[o.length-2]));t.type===13?s?s.arguments[0]=r:t.props=r:s?s.arguments[0]=r:t.arguments[2]=r}function f_(t,e){let n=!1;if(t.key.type===4){const r=t.key.content;n=e.properties.some(i=>i.key.type===4&&i.key.content===r)}return n}function Pl(t,e){return`_${e}_${t.replace(/[^\w]/g,(n,r)=>n==="-"?"_":t.charCodeAt(r).toString())}`}function Dk(t){return t.type===14&&t.callee===Hv?t.arguments[1].returns:t}const Mk=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,mP={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:Fh,isPreTag:Fh,isCustomElement:Fh,onError:Wv,onWarn:fP,comments:!1,prefixIdentifiers:!1};let $e=mP,xl=null,to="",At=null,Ce=null,jt="",cr=-1,Ti=-1,kf=0,Wr=!1,ym=null;const Ye=[],Je=new Tk(Ye,{onerr:or,ontext(t,e){Ru(mt(t,e),t,e)},ontextentity(t,e,n){Ru(t,e,n)},oninterpolation(t,e){if(Wr)return Ru(mt(t,e),t,e);let n=t+Je.delimiterOpen.length,r=e-Je.delimiterClose.length;for(;Gt(to.charCodeAt(n));)n++;for(;Gt(to.charCodeAt(r-1));)r--;let i=mt(n,r);i.includes("&")&&(i=$e.decodeEntities(i,!1)),bm({type:5,content:Xu(i,!1,rt(n,r)),loc:rt(t,e)})},onopentagname(t,e){const n=mt(t,e);At={type:1,tag:n,ns:$e.getNamespace(n,Ye[0],$e.ns),tagType:0,props:[],children:[],loc:rt(t-1,e),codegenNode:void 0}},onopentagend(t){h_(t)},onclosetag(t,e){const n=mt(t,e);if(!$e.isVoidTag(n)){let r=!1;for(let i=0;i<Ye.length;i++)if(Ye[i].tag.toLowerCase()===n.toLowerCase()){r=!0,i>0&&or(24,Ye[0].loc.start.offset);for(let s=0;s<=i;s++){const a=Ye.shift();Zu(a,e,s<i)}break}r||or(23,gP(t,60))}},onselfclosingtag(t){var e;const n=At.tag;At.isSelfClosing=!0,h_(t),((e=Ye[0])==null?void 0:e.tag)===n&&Zu(Ye.shift(),t)},onattribname(t,e){Ce={type:6,name:mt(t,e),nameLoc:rt(t,e),value:void 0,loc:rt(t)}},ondirname(t,e){const n=mt(t,e),r=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!Wr&&r===""&&or(26,t),Wr||r==="")Ce={type:6,name:n,nameLoc:rt(t,e),value:void 0,loc:rt(t)};else if(Ce={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?["prop"]:[],loc:rt(t)},r==="pre"){Wr=Je.inVPre=!0,ym=At;const i=At.props;for(let o=0;o<i.length;o++)i[o].type===7&&(i[o]=Kk(i[o]))}},ondirarg(t,e){if(t===e)return;const n=mt(t,e);if(Wr)Ce.name+=n,Mi(Ce.nameLoc,e);else{const r=n[0]!=="[";Ce.arg=Xu(r?n:n.slice(1,-1),r,rt(t,e),r?3:0)}},ondirmodifier(t,e){const n=mt(t,e);if(Wr)Ce.name+="."+n,Mi(Ce.nameLoc,e);else if(Ce.name==="slot"){const r=Ce.arg;r&&(r.content+="."+n,Mi(r.loc,e))}else Ce.modifiers.push(n)},onattribdata(t,e){jt+=mt(t,e),cr<0&&(cr=t),Ti=e},onattribentity(t,e,n){jt+=t,cr<0&&(cr=e),Ti=n},onattribnameend(t){const e=Ce.loc.start.offset,n=mt(e,t);Ce.type===7&&(Ce.rawName=n),At.props.some(r=>(r.type===7?r.rawName:r.name)===n)&&or(2,e)},onattribend(t,e){if(At&&Ce){if(Mi(Ce.loc,e),t!==0)if(jt.includes("&")&&(jt=$e.decodeEntities(jt,!0)),Ce.type===6)Ce.name==="class"&&(jt=yP(jt).trim()),t===1&&!jt&&or(13,e),Ce.value={type:2,content:jt,loc:t===1?rt(cr,Ti):rt(cr-1,Ti+1)},Je.inSFCRoot&&At.tag==="template"&&Ce.name==="lang"&&jt&&jt!=="html"&&Je.enterRCDATA(Lf("</template"),0);else{let n=0;Ce.exp=Xu(jt,!1,rt(cr,Ti),0,n),Ce.name==="for"&&(Ce.forParseResult=Bk(Ce.exp));let r=-1;Ce.name==="bind"&&(r=Ce.modifiers.indexOf("sync"))>-1&&El("COMPILER_V_BIND_SYNC",$e,Ce.loc,Ce.rawName)&&(Ce.name="model",Ce.modifiers.splice(r,1))}(Ce.type!==7||Ce.name!=="pre")&&At.props.push(Ce)}jt="",cr=Ti=-1},oncomment(t,e){$e.comments&&bm({type:3,content:mt(t,e),loc:rt(t-4,e+3)})},onend(){const t=to.length;for(let e=0;e<Ye.length;e++)Zu(Ye[e],t-1),or(24,Ye[e].loc.start.offset)},oncdata(t,e){Ye[0].ns!==0?Ru(mt(t,e),t,e):or(1,t-9)},onprocessinginstruction(t){(Ye[0]?Ye[0].ns:$e.ns)===0&&or(21,t-1)}}),d_=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,kk=/^\(|\)$/g;function Bk(t){const e=t.loc,n=t.content,r=n.match(Mk);if(!r)return;const[,i,o]=r,s=(f,h,d=!1)=>{const p=e.start.offset+h,m=p+f.length;return Xu(f,!1,rt(p,m),0,d?1:0)},a={source:s(o.trim(),n.indexOf(o,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=i.trim().replace(kk,"").trim();const c=i.indexOf(l),u=l.match(d_);if(u){l=l.replace(d_,"").trim();const f=u[1].trim();let h;if(f&&(h=n.indexOf(f,c+l.length),a.key=s(f,h,!0)),u[2]){const d=u[2].trim();d&&(a.index=s(d,n.indexOf(d,a.key?h+f.length:c+l.length),!0))}}return l&&(a.value=s(l,c,!0)),a}function mt(t,e){return to.slice(t,e)}function h_(t){Je.inSFCRoot&&(At.innerLoc=rt(t+1,t+1)),bm(At);const{tag:e,ns:n}=At;n===0&&$e.isPreTag(e)&&kf++,$e.isVoidTag(e)?Zu(At,t):(Ye.unshift(At),(n===1||n===2)&&(Je.inXML=!0)),At=null}function Ru(t,e,n){var r;{const s=(r=Ye[0])==null?void 0:r.tag;s!=="script"&&s!=="style"&&t.includes("&")&&(t=$e.decodeEntities(t,!1))}const i=Ye[0]||xl,o=i.children[i.children.length-1];(o==null?void 0:o.type)===2?(o.content+=t,Mi(o.loc,n)):i.children.push({type:2,content:t,loc:rt(e,n)})}function Zu(t,e,n=!1){n?Mi(t.loc,gP(e,60)):Mi(t.loc,e+1),Je.inSFCRoot&&(t.children.length?t.innerLoc.end=Yo({},t.children[t.children.length-1].loc.end):t.innerLoc.end=Yo({},t.innerLoc.start),t.innerLoc.source=mt(t.innerLoc.start.offset,t.innerLoc.end.offset));const{tag:r,ns:i}=t;Wr||(r==="slot"?t.tagType=2:p_(t)?t.tagType=3:qk(t)&&(t.tagType=1)),Je.inRCDATA||(t.children=vP(t.children,t.tag)),i===0&&$e.isPreTag(r)&&kf--,ym===t&&(Wr=Je.inVPre=!1,ym=null),Je.inXML&&(Ye[0]?Ye[0].ns:$e.ns)===0&&(Je.inXML=!1);{const o=t.props;if(!Je.inSFCRoot&&eo("COMPILER_NATIVE_TEMPLATE",$e)&&t.tag==="template"&&!p_(t)){const a=Ye[0]||xl,l=a.children.indexOf(t);a.children.splice(l,1,...t.children)}const s=o.find(a=>a.type===6&&a.name==="inline-template");s&&El("COMPILER_INLINE_TEMPLATE",$e,s.loc)&&t.children.length&&(s.value={type:2,content:mt(t.children[0].loc.start.offset,t.children[t.children.length-1].loc.end.offset),loc:s.loc})}}function gP(t,e){let n=t;for(;to.charCodeAt(n)!==e&&n>=0;)n--;return n}const Hk=new Set(["if","else","else-if","for","slot"]);function p_({tag:t,props:e}){if(t==="template"){for(let n=0;n<e.length;n++)if(e[n].type===7&&Hk.has(e[n].name))return!0}return!1}function qk({tag:t,props:e}){var n;if($e.isCustomElement(t))return!1;if(t==="component"||Wk(t.charCodeAt(0))||dP(t)||(n=$e.isBuiltInComponent)!=null&&n.call($e,t)||$e.isNativeTag&&!$e.isNativeTag(t))return!0;for(let r=0;r<e.length;r++){const i=e[r];if(i.type===6){if(i.name==="is"&&i.value){if(i.value.content.startsWith("vue:"))return!0;if(El("COMPILER_IS_ON_ELEMENT",$e,i.loc))return!0}}else if(i.name==="bind"&&Di(i.arg,"is")&&El("COMPILER_IS_ON_ELEMENT",$e,i.loc))return!0}return!1}function Wk(t){return t>64&&t<91}const Uk=/\r\n/g;function vP(t,e){var n,r;const i=$e.whitespace!=="preserve";let o=!1;for(let s=0;s<t.length;s++){const a=t[s];if(a.type===2)if(kf)a.content=a.content.replace(Uk,` `);else if(Qk(a.content)){const l=(n=t[s-1])==null?void 0:n.type,c=(r=t[s+1])==null?void 0:r.type;!l||!c||i&&(l===3&&(c===3||c===1)||l===1&&(c===3||c===1&&zk(a.content)))?(o=!0,t[s]=null):a.content=" "}else i&&(a.content=yP(a.content))}if(kf&&e&&$e.isPreTag(e)){const s=t[0];s&&s.type===2&&(s.content=s.content.replace(/^\r?\n/,""))}return o?t.filter(Boolean):t}function Qk(t){for(let e=0;e<t.length;e++)if(!Gt(t.charCodeAt(e)))return!1;return!0}function zk(t){for(let e=0;e<t.length;e++){const n=t.charCodeAt(e);if(n===10||n===13)return!0}return!1}function yP(t){let e="",n=!1;for(let r=0;r<t.length;r++)Gt(t.charCodeAt(r))?n||(e+=" ",n=!0):(e+=t[r],n=!1);return e}function bm(t){(Ye[0]||xl).children.push(t)}function rt(t,e){return{start:Je.getPos(t),end:e==null?e:Je.getPos(e),source:e==null?e:mt(t,e)}}function Mi(t,e){t.end=Je.getPos(e),t.source=mt(t.start.offset,e)}function Kk(t){const e={type:6,name:t.rawName,nameLoc:rt(t.loc.start.offset,t.loc.start.offset+t.rawName.length),value:void 0,loc:t.loc};if(t.exp){const n=t.exp.loc;n.end.offset<t.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),e.value={type:2,content:t.exp.content,loc:n}}return e}function Xu(t,e=!1,n,r=0,i=0){return Ae(t,e,n,r)}function or(t,e,n){$e.onError(qe(t,rt(e,e)))}function Gk(){Je.reset(),At=null,Ce=null,jt="",cr=-1,Ti=-1,Ye.length=0}function Yk(t,e){if(Gk(),to=t,$e=Yo({},mP),e){let i;for(i in e)e[i]!=null&&($e[i]=e[i])}Je.mode=$e.parseMode==="html"?1:$e.parseMode==="sfc"?2:0,Je.inXML=$e.ns===1||$e.ns===2;const n=e==null?void 0:e.delimiters;n&&(Je.delimiterOpen=Lf(n[0]),Je.delimiterClose=Lf(n[1]));const r=xl=Pk([],t);return Je.parse(to),r.loc=rt(0,t.length),r.children=vP(r.children),xl=null,r}function Jk(t,e){ef(t,e,bP(t,t.children[0]))}function bP(t,e){const{children:n}=t;return n.length===1&&e.type===1&&!Df(e)}function ef(t,e,n=!1){const{children:r}=t,i=r.length;let o=0;for(let s=0;s<r.length;s++){const a=r[s];if(a.type===1&&a.tagType===0){const l=n?0:pn(a,e);if(l>0){if(l>=2){a.codegenNode.patchFlag="-1",a.codegenNode=e.hoist(a.codegenNode),o++;continue}}else{const c=a.codegenNode;if(c.type===13){const u=AP(c);if((!u||u===512||u===1)&&SP(a,e)>=2){const f=wP(a);f&&(c.props=e.hoist(f))}c.dynamicProps&&(c.dynamicProps=e.hoist(c.dynamicProps))}}}if(a.type===1){const l=a.tagType===1;l&&e.scopes.vSlot++,ef(a,e),l&&e.scopes.vSlot--}else if(a.type===11)ef(a,e,a.children.length===1);else if(a.type===9)for(let l=0;l<a.branches.length;l++)ef(a.branches[l],e,a.branches[l].children.length===1)}if(o&&e.transformHoist&&e.transformHoist(r,e,t),o&&o===i&&t.type===1&&t.tagType===0&&t.codegenNode&&t.codegenNode.type===13&&Sl(t.codegenNode.children)){const s=e.hoist(jc(t.codegenNode.children));e.hmr&&(s.content=`[...${s.content}]`),t.codegenNode.children=s}}function pn(t,e){const{constantCache:n}=e;switch(t.type){case 1:if(t.tagType!==0)return 0;const r=n.get(t);if(r!==void 0)return r;const i=t.codegenNode;if(i.type!==13||i.isBlock&&t.tag!=="svg"&&t.tag!=="foreignObject")return 0;if(AP(i))return n.set(t,0),0;{let a=3;const l=SP(t,e);if(l===0)return n.set(t,0),0;l<a&&(a=l);for(let c=0;c<t.children.length;c++){const u=pn(t.children[c],e);if(u===0)return n.set(t,0),0;u<a&&(a=u)}if(a>1)for(let c=0;c<t.props.length;c++){const u=t.props[c];if(u.type===7&&u.name==="bind"&&u.exp){const f=pn(u.exp,e);if(f===0)return n.set(t,0),0;f<a&&(a=f)}}if(i.isBlock){for(let c=0;c<t.props.length;c++)if(t.props[c].type===7)return n.set(t,0),0;e.removeHelper(ho),e.removeHelper(fs(e.inSSR,i.isComponent)),i.isBlock=!1,e.helper(us(e.inSSR,i.isComponent))}return n.set(t,a),a}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return pn(t.content,e);case 4:return t.constType;case 8:let s=3;for(let a=0;a<t.children.length;a++){const l=t.children[a];if(yt(l)||Pv(l))continue;const c=pn(l,e);if(c===0)return 0;c<s&&(s=c)}return s;default:return 0}}const Zk=new Set([Dv,Mv,Al,Vc]);function _P(t,e){if(t.type===14&&!yt(t.callee)&&Zk.has(t.callee)){const n=t.arguments[0];if(n.type===4)return pn(n,e);if(n.type===14)return _P(n,e)}return 0}function SP(t,e){let n=3;const r=wP(t);if(r&&r.type===15){const{properties:i}=r;for(let o=0;o<i.length;o++){const{key:s,value:a}=i[o],l=pn(s,e);if(l===0)return l;l<n&&(n=l);let c;if(a.type===4?c=pn(a,e):a.type===14?c=_P(a,e):c=0,c===0)return c;c<n&&(n=c)}}return n}function wP(t){const e=t.codegenNode;if(e.type===13)return e.props}function AP(t){const e=t.patchFlag;return e?parseInt(e,10):void 0}function Xk(t,{filename:e="",prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:i=!1,cacheHandlers:o=!1,nodeTransforms:s=[],directiveTransforms:a={},transformHoist:l=null,isBuiltInComponent:c=Lh,isCustomElement:u=Lh,expressionPlugins:f=[],scopeId:h=null,slotted:d=!0,ssr:p=!1,inSSR:m=!1,ssrCssVars:g="",bindingMetadata:v=mk,inline:b=!1,isTS:y=!1,onError:_=Wv,onWarn:A=fP,compatConfig:C}){const x=e.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),S={filename:e,selfName:x&&rP(fo(x[1])),prefixIdentifiers:n,hoistStatic:r,hmr:i,cacheHandlers:o,nodeTransforms:s,directiveTransforms:a,transformHoist:l,isBuiltInComponent:c,isCustomElement:u,expressionPlugins:f,scopeId:h,slotted:d,ssr:p,inSSR:m,ssrCssVars:g,bindingMetadata:v,inline:b,isTS:y,onError:_,onWarn:A,compatConfig:C,root:t,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new WeakMap,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:t,childIndex:0,inVOnce:!1,helper(w){const O=S.helpers.get(w)||0;return S.helpers.set(w,O+1),w},removeHelper(w){const O=S.helpers.get(w);if(O){const P=O-1;P?S.helpers.set(w,P):S.helpers.delete(w)}},helperString(w){return`_${ls[S.helper(w)]}`},replaceNode(w){S.parent.children[S.childIndex]=S.currentNode=w},removeNode(w){const O=S.parent.children,P=w?O.indexOf(w):S.currentNode?S.childIndex:-1;!w||w===S.currentNode?(S.currentNode=null,S.onNodeRemoved()):S.childIndex>P&&(S.childIndex--,S.onNodeRemoved()),S.parent.children.splice(P,1)},onNodeRemoved:Lh,addIdentifiers(w){},removeIdentifiers(w){},hoist(w){yt(w)&&(w=Ae(w)),S.hoists.push(w);const O=Ae(`_hoisted_${S.hoists.length}`,!1,w.loc,2);return O.hoisted=w,O},cache(w,O=!1){return xk(S.cached++,w,O)}};return S.filters=new Set,S}function e2(t,e){const n=Xk(t,e);Bd(t,n),e.hoistStatic&&Jk(t,n),e.ssr||t2(t,n),t.helpers=new Set([...n.helpers.keys()]),t.components=[...n.components],t.directives=[...n.directives],t.imports=n.imports,t.hoists=n.hoists,t.temps=n.temps,t.cached=n.cached,t.transformed=!0,t.filters=[...n.filters]}function t2(t,e){const{helper:n}=e,{children:r}=t;if(r.length===1){const i=r[0];if(bP(t,i)&&i.codegenNode){const o=i.codegenNode;o.type===13&&qv(o,e),t.codegenNode=o}else t.codegenNode=i}else if(r.length>1){let i=64;t.codegenNode=Ol(e,n(wl),void 0,t.children,i+"",void 0,void 0,!0,void 0,!1)}}function n2(t,e){let n=0;const r=()=>{n--};for(;n<t.children.length;n++){const i=t.children[n];yt(i)||(e.parent=t,e.childIndex=n,e.onNodeRemoved=r,Bd(i,e))}}function Bd(t,e){e.currentNode=t;const{nodeTransforms:n}=e,r=[];for(let o=0;o<n.length;o++){const s=n[o](t,e);if(s&&(Sl(s)?r.push(...s):r.push(s)),e.currentNode)t=e.currentNode;else return}switch(t.type){case 3:e.ssr||e.helper($c);break;case 5:e.ssr||e.helper(Md);break;case 9:for(let o=0;o<t.branches.length;o++)Bd(t.branches[o],e);break;case 10:case 11:case 1:case 0:n2(t,e);break}e.currentNode=t;let i=r.length;for(;i--;)r[i]()}function OP(t,e){const n=yt(t)?r=>r===t:r=>t.test(r);return(r,i)=>{if(r.type===1){const{props:o}=r;if(r.tagType===3&&o.some(Lk))return;const s=[];for(let a=0;a<o.length;a++){const l=o[a];if(l.type===7&&n(l.name)){o.splice(a,1),a--;const c=e(r,l,i);c&&s.push(c)}}return s}}}const Hd="/*#__PURE__*/",EP=t=>`${ls[t]}: _${ls[t]}`;function m_(t,{mode:e="function",prefixIdentifiers:n=e==="module",sourceMap:r=!1,filename:i="template.vue.html",scopeId:o=null,optimizeImports:s=!1,runtimeGlobalName:a="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:u=!1,isTS:f=!1,inSSR:h=!1}){const d={mode:e,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:o,optimizeImports:s,runtimeGlobalName:a,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:u,isTS:f,inSSR:h,source:t.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(m){return`_${ls[m]}`},push(m,g=-2,v){d.code+=m},indent(){p(++d.indentLevel)},deindent(m=!1){m?--d.indentLevel:p(--d.indentLevel)},newline(){p(d.indentLevel)}};function p(m){d.push(` `+" ".repeat(m),0)}return d}function r2(t,e={}){const n=m_(t,e);e.onContextCreated&&e.onContextCreated(n);const{mode:r,push:i,prefixIdentifiers:o,indent:s,deindent:a,newline:l,scopeId:c,ssr:u}=n,f=Array.from(t.helpers),h=f.length>0,d=!o&&r!=="module",p=!1,m=p?m_(t,e):n;i2(t,m);const g=u?"ssrRender":"render",b=(u?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(i(`function ${g}(${b}) {`),s(),d&&(i("with (_ctx) {"),s(),h&&(i(`const { ${f.map(EP).join(", ")} } = _Vue `,-1),l())),t.components.length&&(Mh(t.components,"component",n),(t.directives.length||t.temps>0)&&l()),t.directives.length&&(Mh(t.directives,"directive",n),t.temps>0&&l()),t.filters&&t.filters.length&&(l(),Mh(t.filters,"filter",n),l()),t.temps>0){i("let ");for(let y=0;y<t.temps;y++)i(`${y>0?", ":""}_temp${y}`)}return(t.components.length||t.directives.length||t.temps)&&(i(` `,0),l()),u||i("return "),t.codegenNode?Ct(t.codegenNode,n):i("null"),d&&(a(),i("}")),a(),i("}"),{ast:t,code:n.code,preamble:p?m.code:"",map:n.map?n.map.toJSON():void 0}}function i2(t,e){const{ssr:n,prefixIdentifiers:r,push:i,newline:o,runtimeModuleName:s,runtimeGlobalName:a,ssrRuntimeModuleName:l}=e,c=a,u=Array.from(t.helpers);if(u.length>0&&(i(`const _Vue = ${c} `,-1),t.hoists.length)){const f=[Tv,Iv,$c,Rv,aP].filter(h=>u.includes(h)).map(EP).join(", ");i(`const { ${f} } = _Vue `,-1)}o2(t.hoists,e),o(),i("return ")}function Mh(t,e,{helper:n,push:r,newline:i,isTS:o}){const s=n(e==="filter"?Nv:e==="component"?$v:jv);for(let a=0;a<t.length;a++){let l=t[a];const c=l.endsWith("__self");c&&(l=l.slice(0,-6)),r(`const ${Pl(l,e)} = ${s}(${JSON.stringify(l)}${c?", true":""})${o?"!":""}`),a<t.length-1&&i()}}function o2(t,e){if(!t.length)return;e.pure=!0;const{push:n,newline:r,helper:i,scopeId:o,mode:s}=e;r();for(let a=0;a<t.length;a++){const l=t[a];l&&(n(`const _hoisted_${a+1} = `),Ct(l,e),r())}e.pure=!1}function Qv(t,e){const n=t.length>3||!1;e.push("["),n&&e.indent(),Nc(t,e,n),n&&e.deindent(),e.push("]")}function Nc(t,e,n=!1,r=!0){const{push:i,newline:o}=e;for(let s=0;s<t.length;s++){const a=t[s];yt(a)?i(a,-3):Sl(a)?Qv(a,e):Ct(a,e),s<t.length-1&&(n?(r&&i(","),o()):r&&i(", "))}}function Ct(t,e){if(yt(t)){e.push(t,-3);return}if(Pv(t)){e.push(e.helper(t));return}switch(t.type){case 1:case 9:case 11:Ct(t.codegenNode,e);break;case 2:s2(t,e);break;case 4:PP(t,e);break;case 5:a2(t,e);break;case 12:Ct(t.codegenNode,e);break;case 8:xP(t,e);break;case 3:c2(t,e);break;case 13:u2(t,e);break;case 14:d2(t,e);break;case 15:h2(t,e);break;case 17:p2(t,e);break;case 18:m2(t,e);break;case 19:g2(t,e);break;case 20:v2(t,e);break;case 21:Nc(t.body,e,!0,!1);break}}function s2(t,e){e.push(JSON.stringify(t.content),-3,t)}function PP(t,e){const{content:n,isStatic:r}=t;e.push(r?JSON.stringify(n):n,-3,t)}function a2(t,e){const{push:n,helper:r,pure:i}=e;i&&n(Hd),n(`${r(Md)}(`),Ct(t.content,e),n(")")}function xP(t,e){for(let n=0;n<t.children.length;n++){const r=t.children[n];yt(r)?e.push(r,-3):Ct(r,e)}}function l2(t,e){const{push:n}=e;if(t.type===8)n("["),xP(t,e),n("]");else if(t.isStatic){const r=Uv(t.content)?t.content:JSON.stringify(t.content);n(r,-2,t)}else n(`[${t.content}]`,-3,t)}function c2(t,e){const{push:n,helper:r,pure:i}=e;i&&n(Hd),n(`${r($c)}(${JSON.stringify(t.content)})`,-3,t)}function u2(t,e){const{push:n,helper:r,pure:i}=e,{tag:o,props:s,children:a,patchFlag:l,dynamicProps:c,directives:u,isBlock:f,disableTracking:h,isComponent:d}=t;u&&n(r(Lv)+"("),f&&n(`(${r(ho)}(${h?"true":""}), `),i&&n(Hd);const p=f?fs(e.inSSR,d):us(e.inSSR,d);n(r(p)+"(",-2,t),Nc(f2([o,s,a,l,c]),e),n(")"),f&&n(")"),u&&(n(", "),Ct(u,e),n(")"))}function f2(t){let e=t.length;for(;e--&&t[e]==null;);return t.slice(0,e+1).map(n=>n||"null")}function d2(t,e){const{push:n,helper:r,pure:i}=e,o=yt(t.callee)?t.callee:r(t.callee);i&&n(Hd),n(o+"(",-2,t),Nc(t.arguments,e),n(")")}function h2(t,e){const{push:n,indent:r,deindent:i,newline:o}=e,{properties:s}=t;if(!s.length){n("{}",-2,t);return}const a=s.length>1||!1;n(a?"{":"{ "),a&&r();for(let l=0;l<s.length;l++){const{key:c,value:u}=s[l];l2(c,e),n(": "),Ct(u,e),l<s.length-1&&(n(","),o())}a&&i(),n(a?"}":" }")}function p2(t,e){Qv(t.elements,e)}function m2(t,e){const{push:n,indent:r,deindent:i}=e,{params:o,returns:s,body:a,newline:l,isSlot:c}=t;c&&n(`_${ls[Bv]}(`),n("(",-2,t),Sl(o)?Nc(o,e):o&&Ct(o,e),n(") => "),(l||a)&&(n("{"),r()),s?(l&&n("return "),Sl(s)?Qv(s,e):Ct(s,e)):a&&Ct(a,e),(l||a)&&(i(),n("}")),c&&(t.isNonScopedSlot&&n(", undefined, true"),n(")"))}function g2(t,e){const{test:n,consequent:r,alternate:i,newline:o}=t,{push:s,indent:a,deindent:l,newline:c}=e;if(n.type===4){const f=!Uv(n.content);f&&s("("),PP(n,e),f&&s(")")}else s("("),Ct(n,e),s(")");o&&a(),e.indentLevel++,o||s(" "),s("? "),Ct(r,e),e.indentLevel--,o&&c(),o||s(" "),s(": ");const u=i.type===19;u||e.indentLevel++,Ct(i,e),u||e.indentLevel--,o&&l(!0)}function v2(t,e){const{push:n,helper:r,indent:i,deindent:o,newline:s}=e;n(`_cache[${t.index}] || (`),t.isVNode&&(i(),n(`${r(Nf)}(-1),`),s()),n(`_cache[${t.index}] = `),Ct(t.value,e),t.isVNode&&(n(","),s(),n(`${r(Nf)}(1),`),s(),n(`_cache[${t.index}]`),o()),n(")")}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 y2=OP(/^(if|else|else-if)$/,(t,e,n)=>b2(t,e,n,(r,i,o)=>{const s=n.parent.children;let a=s.indexOf(r),l=0;for(;a-->=0;){const c=s[a];c&&c.type===9&&(l+=c.branches.length)}return()=>{if(o)r.codegenNode=v_(i,l,n);else{const c=_2(r.codegenNode);c.alternate=v_(i,l+r.branches.length-1,n)}}}));function b2(t,e,n,r){if(e.name!=="else"&&(!e.exp||!e.exp.content.trim())){const i=e.exp?e.exp.loc:t.loc;n.onError(qe(28,e.loc)),e.exp=Ae("true",!1,i)}if(e.name==="if"){const i=g_(t,e),o={type:9,loc:t.loc,branches:[i]};if(n.replaceNode(o),r)return r(o,i,!0)}else{const i=n.parent.children;let o=i.indexOf(t);for(;o-->=-1;){const s=i[o];if(s&&s.type===3){n.removeNode(s);continue}if(s&&s.type===2&&!s.content.trim().length){n.removeNode(s);continue}if(s&&s.type===9){e.name==="else-if"&&s.branches[s.branches.length-1].condition===void 0&&n.onError(qe(30,t.loc)),n.removeNode();const a=g_(t,e);s.branches.push(a);const l=r&&r(s,a,!1);Bd(a,n),l&&l(),n.currentNode=null}else n.onError(qe(30,t.loc));break}}}function g_(t,e){const n=t.tagType===3;return{type:10,loc:t.loc,condition:e.name==="else"?void 0:e.exp,children:n&&!wn(t,"for")?t.children:[t],userKey:kd(t,"key"),isTemplateIf:n}}function v_(t,e,n){return t.condition?vm(t.condition,y_(t,e,n),it(n.helper($c),['""',"true"])):y_(t,e,n)}function y_(t,e,n){const{helper:r}=n,i=Ze("key",Ae(`${e}`,!1,en,2)),{children:o}=t,s=o[0];if(o.length!==1||s.type!==1)if(o.length===1&&s.type===11){const l=s.codegenNode;return Mf(l,i,n),l}else{let l=64;return Ol(n,r(wl),hn([i]),o,l+"",void 0,void 0,!0,!1,!1,t.loc)}else{const l=s.codegenNode,c=Dk(l);return c.type===13&&qv(c,n),Mf(c,i,n),l}}function _2(t){for(;;)if(t.type===19)if(t.alternate.type===19)t=t.alternate;else return t;else t.type===20&&(t=t.value)}const S2=OP("for",(t,e,n)=>{const{helper:r,removeHelper:i}=n;return w2(t,e,n,o=>{const s=it(r(Fv),[o.source]),a=Ff(t),l=wn(t,"memo"),c=kd(t,"key"),u=c&&(c.type===6?Ae(c.value.content,!0):c.exp),f=c?Ze("key",u):null,h=o.source.type===4&&o.source.constType>0,d=h?64:c?128:256;return o.codegenNode=Ol(n,r(wl),void 0,s,d+"",void 0,void 0,!0,!h,!1,t.loc),()=>{let p;const{children:m}=o,g=m.length!==1||m[0].type!==1,v=Df(t)?t:a&&t.children.length===1&&Df(t.children[0])?t.children[0]:null;if(v?(p=v.codegenNode,a&&f&&Mf(p,f,n)):g?p=Ol(n,r(wl),f?hn([f]):void 0,t.children,"64",void 0,void 0,!0,void 0,!1):(p=m[0].codegenNode,a&&f&&Mf(p,f,n),p.isBlock!==!h&&(p.isBlock?(i(ho),i(fs(n.inSSR,p.isComponent))):i(us(n.inSSR,p.isComponent))),p.isBlock=!h,p.isBlock?(r(ho),r(fs(n.inSSR,p.isComponent))):r(us(n.inSSR,p.isComponent))),l){const b=cs(_m(o.parseResult,[Ae("_cached")]));b.body=Ck([Cn(["const _memo = (",l.exp,")"]),Cn(["if (_cached",...u?[" && _cached.key === ",u]:[],` && ${n.helperString(uP)}(_cached, _memo)) return _cached`]),Cn(["const _item = ",p]),Ae("_item.memo = _memo"),Ae("return _item")]),s.arguments.push(b,Ae("_cache"),Ae(String(n.cached++)))}else s.arguments.push(cs(_m(o.parseResult),p,!0))}})});function w2(t,e,n,r){if(!e.exp){n.onError(qe(31,e.loc));return}const i=e.forParseResult;if(!i){n.onError(qe(32,e.loc));return}CP(i);const{addIdentifiers:o,removeIdentifiers:s,scopes:a}=n,{source:l,value:c,key:u,index:f}=i,h={type:11,loc:e.loc,source:l,valueAlias:c,keyAlias:u,objectIndexAlias:f,parseResult:i,children:Ff(t)?t.children:[t]};n.replaceNode(h),a.vFor++;const d=r&&r(h);return()=>{a.vFor--,d&&d()}}function CP(t,e){t.finalized||(t.finalized=!0)}function _m({value:t,key:e,index:n},r=[]){return A2([t,e,n,...r])}function A2(t){let e=t.length;for(;e--&&!t[e];);return t.slice(0,e+1).map((n,r)=>n||Ae("_".repeat(r+1),!1))}const b_=Ae("undefined",!1),O2=(t,e)=>{if(t.type===1&&(t.tagType===1||t.tagType===3)){const n=wn(t,"slot");if(n)return n.exp,e.scopes.vSlot++,()=>{e.scopes.vSlot--}}},E2=(t,e,n,r)=>cs(t,n,!1,!0,n.length?n[0].loc:r);function P2(t,e,n=E2){e.helper(Bv);const{children:r,loc:i}=t,o=[],s=[];let a=e.scopes.vSlot>0||e.scopes.vFor>0;const l=wn(t,"slot",!0);if(l){const{arg:g,exp:v}=l;g&&!kt(g)&&(a=!0),o.push(Ze(g||Ae("default",!0),n(v,void 0,r,i)))}let c=!1,u=!1;const f=[],h=new Set;let d=0;for(let g=0;g<r.length;g++){const v=r[g];let b;if(!Ff(v)||!(b=wn(v,"slot",!0))){v.type!==3&&f.push(v);continue}if(l){e.onError(qe(37,b.loc));break}c=!0;const{children:y,loc:_}=v,{arg:A=Ae("default",!0),exp:C,loc:x}=b;let S;kt(A)?S=A?A.content:"default":a=!0;const w=wn(v,"for"),O=n(C,w,y,_);let P,T;if(P=wn(v,"if"))a=!0,s.push(vm(P.exp,$u(A,O,d++),b_));else if(T=wn(v,/^else(-if)?$/,!0)){let R=g,M;for(;R--&&(M=r[R],M.type===3););if(M&&Ff(M)&&wn(M,"if")){r.splice(g,1),g--;let k=s[s.length-1];for(;k.alternate.type===19;)k=k.alternate;k.alternate=T.exp?vm(T.exp,$u(A,O,d++),b_):$u(A,O,d++)}else e.onError(qe(30,T.loc))}else if(w){a=!0;const R=w.forParseResult;R?(CP(R),s.push(it(e.helper(Fv),[R.source,cs(_m(R),$u(A,O),!0)]))):e.onError(qe(32,w.loc))}else{if(S){if(h.has(S)){e.onError(qe(38,x));continue}h.add(S),S==="default"&&(u=!0)}o.push(Ze(A,O))}}if(!l){const g=(v,b)=>{const y=n(v,void 0,b,i);return e.compatConfig&&(y.isNonScopedSlot=!0),Ze("default",y)};c?f.length&&f.some(v=>TP(v))&&(u?e.onError(qe(39,f[0].loc)):o.push(g(void 0,f))):o.push(g(void 0,r))}const p=a?2:tf(t.children)?3:1;let m=hn(o.concat(Ze("_",Ae(p+"",!1))),i);return s.length&&(m=it(e.helper(cP),[m,jc(s)])),{slots:m,hasDynamicSlots:a}}function $u(t,e,n){const r=[Ze("name",t),Ze("fn",e)];return n!=null&&r.push(Ze("key",Ae(String(n),!0))),hn(r)}function tf(t){for(let e=0;e<t.length;e++){const n=t[e];switch(n.type){case 1:if(n.tagType===2||tf(n.children))return!0;break;case 9:if(tf(n.branches))return!0;break;case 10:case 11:if(tf(n.children))return!0;break}}return!1}function TP(t){return t.type!==2&&t.type!==12?!0:t.type===2?!!t.content.trim():TP(t.content)}const IP=new WeakMap,x2=(t,e)=>function(){if(t=e.currentNode,!(t.type===1&&(t.tagType===0||t.tagType===1)))return;const{tag:r,props:i}=t,o=t.tagType===1;let s=o?C2(t,e):`"${r}"`;const a=gk(s)&&s.callee===Vv;let l,c,u,f=0,h,d,p,m=a||s===Oa||s===Cv||!o&&(r==="svg"||r==="foreignObject");if(i.length>0){const g=RP(t,e,void 0,o,a);l=g.props,f=g.patchFlag,d=g.dynamicPropNames;const v=g.directives;p=v&&v.length?jc(v.map(b=>I2(b,e))):void 0,g.shouldUseBlock&&(m=!0)}if(t.children.length>0)if(s===Vf&&(m=!0,f|=1024),o&&s!==Oa&&s!==Vf){const{slots:v,hasDynamicSlots:b}=P2(t,e);c=v,b&&(f|=1024)}else if(t.children.length===1&&s!==Oa){const v=t.children[0],b=v.type,y=b===5||b===8;y&&pn(v,e)===0&&(f|=1),y||b===2?c=v:c=t.children}else c=t.children;f!==0&&(u=String(f),d&&d.length&&(h=R2(d))),t.codegenNode=Ol(e,s,l,c,u,h,p,!!m,!1,o,t.loc)};function C2(t,e,n=!1){let{tag:r}=t;const i=Sm(r),o=kd(t,"is");if(o)if(i||eo("COMPILER_IS_ON_ELEMENT",e)){const a=o.type===6?o.value&&Ae(o.value.content,!0):o.exp;if(a)return it(e.helper(Vv),[a])}else o.type===6&&o.value.content.startsWith("vue:")&&(r=o.value.content.slice(4));const s=dP(r)||e.isBuiltInComponent(r);return s?(n||e.helper(s),s):(e.helper($v),e.components.add(r),Pl(r,"component"))}function RP(t,e,n=t.props,r,i,o=!1){const{tag:s,loc:a,children:l}=t;let c=[];const u=[],f=[],h=l.length>0;let d=!1,p=0,m=!1,g=!1,v=!1,b=!1,y=!1,_=!1;const A=[],C=w=>{c.length&&(u.push(hn(S_(c),a)),c=[]),w&&u.push(w)},x=({key:w,value:O})=>{if(kt(w)){const P=w.content,T=nP(P);if(T&&(!r||i)&&P.toLowerCase()!=="onclick"&&P!=="onUpdate:modelValue"&&!s_(P)&&(b=!0),T&&s_(P)&&(_=!0),T&&O.type===14&&(O=O.arguments[0]),O.type===20||(O.type===4||O.type===8)&&pn(O,e)>0)return;P==="ref"?m=!0:P==="class"?g=!0:P==="style"?v=!0:P!=="key"&&!A.includes(P)&&A.push(P),r&&(P==="class"||P==="style")&&!A.includes(P)&&A.push(P)}else y=!0};for(let w=0;w<n.length;w++){const O=n[w];if(O.type===6){const{loc:P,name:T,nameLoc:R,value:M}=O;let k=!0;if(T==="ref"&&(m=!0,e.scopes.vFor>0&&c.push(Ze(Ae("ref_for",!0),Ae("true")))),T==="is"&&(Sm(s)||M&&M.content.startsWith("vue:")||eo("COMPILER_IS_ON_ELEMENT",e)))continue;c.push(Ze(Ae(T,!0,R),Ae(M?M.content:"",k,M?M.loc:P)))}else{const{name:P,arg:T,exp:R,loc:M,modifiers:k}=O,B=P==="bind",z=P==="on";if(P==="slot"){r||e.onError(qe(40,M));continue}if(P==="once"||P==="memo"||P==="is"||B&&Di(T,"is")&&(Sm(s)||eo("COMPILER_IS_ON_ELEMENT",e))||z&&o)continue;if((B&&Di(T,"key")||z&&h&&Di(T,"vue:before-update"))&&(d=!0),B&&Di(T,"ref")&&e.scopes.vFor>0&&c.push(Ze(Ae("ref_for",!0),Ae("true"))),!T&&(B||z)){if(y=!0,R)if(B){if(C(),eo("COMPILER_V_BIND_OBJECT_ORDER",e)){u.unshift(R);continue}u.push(R)}else C({type:14,loc:M,callee:e.helper(kv),arguments:r?[R]:[R,"true"]});else e.onError(qe(B?34:35,M));continue}B&&k.includes("prop")&&(p|=32);const Q=e.directiveTransforms[P];if(Q){const{props:G,needRuntime:K}=Q(O,t,e);!o&&G.forEach(x),z&&T&&!kt(T)?C(hn(G,a)):c.push(...G),K&&(f.push(O),Pv(K)&&IP.set(O,K))}else vk(P)||(f.push(O),h&&(d=!0))}}let S;if(u.length?(C(),u.length>1?S=it(e.helper(jf),u,a):S=u[0]):c.length&&(S=hn(S_(c),a)),y?p|=16:(g&&!r&&(p|=2),v&&!r&&(p|=4),A.length&&(p|=8),b&&(p|=32)),!d&&(p===0||p===32)&&(m||_||f.length>0)&&(p|=512),!e.inSSR&&S)switch(S.type){case 15:let w=-1,O=-1,P=!1;for(let M=0;M<S.properties.length;M++){const k=S.properties[M].key;kt(k)?k.content==="class"?w=M:k.content==="style"&&(O=M):k.isHandlerKey||(P=!0)}const T=S.properties[w],R=S.properties[O];P?S=it(e.helper(Al),[S]):(T&&!kt(T.value)&&(T.value=it(e.helper(Dv),[T.value])),R&&(v||R.value.type===4&&R.value.content.trim()[0]==="["||R.value.type===17)&&(R.value=it(e.helper(Mv),[R.value])));break;case 14:break;default:S=it(e.helper(Al),[it(e.helper(Vc),[S])]);break}return{props:S,directives:f,patchFlag:p,dynamicPropNames:A,shouldUseBlock:d}}function S_(t){const e=new Map,n=[];for(let r=0;r<t.length;r++){const i=t[r];if(i.key.type===8||!i.key.isStatic){n.push(i);continue}const o=i.key.content,s=e.get(o);s?(o==="style"||o==="class"||nP(o))&&T2(s,i):(e.set(o,i),n.push(i))}return n}function T2(t,e){t.value.type===17?t.value.elements.push(e.value):t.value=jc([t.value,e.value],t.loc)}function I2(t,e){const n=[],r=IP.get(t);r?n.push(e.helperString(r)):(e.helper(jv),e.directives.add(t.name),n.push(Pl(t.name,"directive")));const{loc:i}=t;if(t.exp&&n.push(t.exp),t.arg&&(t.exp||n.push("void 0"),n.push(t.arg)),Object.keys(t.modifiers).length){t.arg||(t.exp||n.push("void 0"),n.push("void 0"));const o=Ae("true",!1,i);n.push(hn(t.modifiers.map(s=>Ze(s,o)),i))}return jc(n,t.loc)}function R2(t){let e="[";for(let n=0,r=t.length;n<r;n++)e+=JSON.stringify(t[n]),n<r-1&&(e+=", ");return e+"]"}function Sm(t){return t==="component"||t==="Component"}const $2=(t,e)=>{if(Df(t)){const{children:n,loc:r}=t,{slotName:i,slotProps:o}=V2(t,e),s=[e.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let a=2;o&&(s[2]=o,a=3),n.length&&(s[3]=cs([],n,!1,!1,r),a=4),e.scopeId&&!e.slotted&&(a=5),s.splice(a),t.codegenNode=it(e.helper(lP),s,r)}};function V2(t,e){let n='"default"',r;const i=[];for(let o=0;o<t.props.length;o++){const s=t.props[o];s.type===6?s.value&&(s.name==="name"?n=JSON.stringify(s.value.content):(s.name=fo(s.name),i.push(s))):s.name==="bind"&&Di(s.arg,"name")?s.exp&&(n=s.exp):(s.name==="bind"&&s.arg&&kt(s.arg)&&(s.arg.content=fo(s.arg.content)),i.push(s))}if(i.length>0){const{props:o,directives:s}=RP(t,e,i,!1,!1);r=o,s.length&&e.onError(qe(36,s[0].loc))}return{slotName:n,slotProps:r}}const j2=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,$P=(t,e,n,r)=>{const{loc:i,modifiers:o,arg:s}=t;!t.exp&&!o.length&&n.onError(qe(35,i));let a;if(s.type===4)if(s.isStatic){let f=s.content;f.startsWith("vue:")&&(f=`vnode-${f.slice(4)}`);const h=e.tagType!==0||f.startsWith("vnode")||!/[A-Z]/.test(f)?bk(fo(f)):`on:${f}`;a=Ae(h,!0,s.loc)}else a=Cn([`${n.helperString(gm)}(`,s,")"]);else a=s,a.children.unshift(`${n.helperString(gm)}(`),a.children.push(")");let l=t.exp;l&&!l.content.trim()&&(l=void 0);let c=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const f=hP(l.content),h=!(f||j2.test(l.content)),d=l.content.includes(";");(h||c&&f)&&(l=Cn([`${h?"$event":"(...args)"} => ${d?"{":"("}`,l,d?"}":")"]))}let u={props:[Ze(a,l||Ae("() => {}",!1,i))]};return r&&(u=r(u)),c&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach(f=>f.key.isHandlerKey=!0),u},N2=(t,e,n)=>{const{modifiers:r,loc:i}=t,o=t.arg;let{exp:s}=t;if(!s&&o.type===4){const a=fo(o.content);s=t.exp=Ae(a,!1,o.loc)}return o.type!==4?(o.children.unshift("("),o.children.push(') || ""')):o.isStatic||(o.content=`${o.content} || ""`),r.includes("camel")&&(o.type===4?o.isStatic?o.content=fo(o.content):o.content=`${n.helperString(mm)}(${o.content})`:(o.children.unshift(`${n.helperString(mm)}(`),o.children.push(")"))),n.inSSR||(r.includes("prop")&&w_(o,"."),r.includes("attr")&&w_(o,"^")),!s||s.type===4&&!s.content.trim()?(n.onError(qe(34,i)),{props:[Ze(o,Ae("",!0,i))]}):{props:[Ze(o,s)]}},w_=(t,e)=>{t.type===4?t.isStatic?t.content=e+t.content:t.content=`\`${e}\${${t.content}}\``:(t.children.unshift(`'${e}' + (`),t.children.push(")"))},L2=(t,e)=>{if(t.type===0||t.type===1||t.type===11||t.type===10)return()=>{const n=t.children;let r,i=!1;for(let o=0;o<n.length;o++){const s=n[o];if(Dh(s)){i=!0;for(let a=o+1;a<n.length;a++){const l=n[a];if(Dh(l))r||(r=n[o]=Cn([s],s.loc)),r.children.push(" + ",l),n.splice(a,1),a--;else{r=void 0;break}}}}if(!(!i||n.length===1&&(t.type===0||t.type===1&&t.tagType===0&&!t.props.find(o=>o.type===7&&!e.directiveTransforms[o.name])&&t.tag!=="template")))for(let o=0;o<n.length;o++){const s=n[o];if(Dh(s)||s.type===8){const a=[];(s.type!==2||s.content!==" ")&&a.push(s),!e.ssr&&pn(s,e)===0&&a.push("1"),n[o]={type:12,content:s,loc:s.loc,codegenNode:it(e.helper(Rv),a)}}}}},A_=new WeakSet,F2=(t,e)=>{if(t.type===1&&wn(t,"once",!0))return A_.has(t)||e.inVOnce||e.inSSR?void 0:(A_.add(t),e.inVOnce=!0,e.helper(Nf),()=>{e.inVOnce=!1;const n=e.currentNode;n.codegenNode&&(n.codegenNode=e.cache(n.codegenNode,!0))})},VP=(t,e,n)=>{const{exp:r,arg:i}=t;if(!r)return n.onError(qe(41,t.loc)),Vu();const o=r.loc.source,s=r.type===4?r.content:o,a=n.bindingMetadata[o];if(a==="props"||a==="props-aliased")return n.onError(qe(44,r.loc)),Vu();const l=!1;if(!s.trim()||!hP(s)&&!l)return n.onError(qe(42,r.loc)),Vu();const c=i||Ae("modelValue",!0),u=i?kt(i)?`onUpdate:${fo(i.content)}`:Cn(['"onUpdate:" + ',i]):"onUpdate:modelValue";let f;const h=n.isTS?"($event: any)":"$event";f=Cn([`${h} => ((`,r,") = $event)"]);const d=[Ze(c,t.exp),Ze(u,f)];if(t.modifiers.length&&e.tagType===1){const p=t.modifiers.map(g=>(Uv(g)?g:JSON.stringify(g))+": true").join(", "),m=i?kt(i)?`${i.content}Modifiers`:Cn([i,' + "Modifiers"']):"modelModifiers";d.push(Ze(m,Ae(`{ ${p} }`,!1,t.loc,2)))}return Vu(d)};function Vu(t=[]){return{props:t}}const D2=/[\w).+\-_$\]]/,M2=(t,e)=>{eo("COMPILER_FILTERS",e)&&(t.type===5&&Bf(t.content,e),t.type===1&&t.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&Bf(n.exp,e)}))};function Bf(t,e){if(t.type===4)O_(t,e);else for(let n=0;n<t.children.length;n++){const r=t.children[n];typeof r=="object"&&(r.type===4?O_(r,e):r.type===8?Bf(t,e):r.type===5&&Bf(r.content,e))}}function O_(t,e){const n=t.content;let r=!1,i=!1,o=!1,s=!1,a=0,l=0,c=0,u=0,f,h,d,p,m=[];for(d=0;d<n.length;d++)if(h=f,f=n.charCodeAt(d),r)f===39&&h!==92&&(r=!1);else if(i)f===34&&h!==92&&(i=!1);else if(o)f===96&&h!==92&&(o=!1);else if(s)f===47&&h!==92&&(s=!1);else if(f===124&&n.charCodeAt(d+1)!==124&&n.charCodeAt(d-1)!==124&&!a&&!l&&!c)p===void 0?(u=d+1,p=n.slice(0,d).trim()):g();else{switch(f){case 34:i=!0;break;case 39:r=!0;break;case 96:o=!0;break;case 40:c++;break;case 41:c--;break;case 91:l++;break;case 93:l--;break;case 123:a++;break;case 125:a--;break}if(f===47){let v=d-1,b;for(;v>=0&&(b=n.charAt(v),b===" ");v--);(!b||!D2.test(b))&&(s=!0)}}p===void 0?p=n.slice(0,d).trim():u!==0&&g();function g(){m.push(n.slice(u,d).trim()),u=d+1}if(m.length){for(d=0;d<m.length;d++)p=k2(p,m[d],e);t.content=p}}function k2(t,e,n){n.helper(Nv);const r=e.indexOf("(");if(r<0)return n.filters.add(e),`${Pl(e,"filter")}(${t})`;{const i=e.slice(0,r),o=e.slice(r+1);return n.filters.add(i),`${Pl(i,"filter")}(${t}${o!==")"?","+o:o}`}}const E_=new WeakSet,B2=(t,e)=>{if(t.type===1){const n=wn(t,"memo");return!n||E_.has(t)?void 0:(E_.add(t),()=>{const r=t.codegenNode||e.currentNode.codegenNode;r&&r.type===13&&(t.tagType!==1&&qv(r,e),t.codegenNode=it(e.helper(Hv),[n.exp,cs(void 0,r),"_cache",String(e.cached++)]))})}};function H2(t){return[[F2,y2,B2,S2,M2,$2,x2,O2,L2],{on:$P,bind:N2,model:VP}]}function q2(t,e={}){const n=e.onError||Wv,r=e.mode==="module";e.prefixIdentifiers===!0?n(qe(47)):r&&n(qe(48));const i=!1;e.cacheHandlers&&n(qe(49)),e.scopeId&&!r&&n(qe(50));const o=Yo({},e,{prefixIdentifiers:i}),s=yt(t)?Yk(t,o):t,[a,l]=H2();return e2(s,Yo({},o,{nodeTransforms:[...a,...e.nodeTransforms||[]],directiveTransforms:Yo({},l,e.directiveTransforms||{})})),r2(s,o)}const W2=()=>({props:[]});/** * @vue/shared v3.4.15 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function ui(t,e){const n=new Set(t.split(","));return e?r=>n.has(r.toLowerCase()):r=>n.has(r)}const P_=Object.assign,U2=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Q2=U2(t=>t.charAt(0).toUpperCase()+t.slice(1)),z2=/;(?![^(]*\))/g,K2=/:([^]+)/,G2=/\/\*[^]*?\*\//g;function Y2(t){const e={};return t.replace(G2,"").split(z2).forEach(n=>{if(n){const r=n.split(K2);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}const J2="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",Z2="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",X2="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",eB="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",tB=ui(J2),nB=ui(Z2),rB=ui(X2),iB=ui(eB);/** * @vue/compiler-dom v3.4.15 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const jP=Symbol(""),NP=Symbol(""),LP=Symbol(""),FP=Symbol(""),wm=Symbol(""),DP=Symbol(""),MP=Symbol(""),kP=Symbol(""),BP=Symbol(""),HP=Symbol("");Ek({[jP]:"vModelRadio",[NP]:"vModelCheckbox",[LP]:"vModelText",[FP]:"vModelSelect",[wm]:"vModelDynamic",[DP]:"withModifiers",[MP]:"withKeys",[kP]:"vShow",[BP]:"Transition",[HP]:"TransitionGroup"});let Io;function oB(t,e=!1){return Io||(Io=document.createElement("div")),e?(Io.innerHTML=`<div foo="${t.replace(/"/g,""")}">`,Io.children[0].getAttribute("foo")):(Io.innerHTML=t,Io.textContent)}const sB={parseMode:"html",isVoidTag:iB,isNativeTag:t=>tB(t)||nB(t)||rB(t),isPreTag:t=>t==="pre",decodeEntities:oB,isBuiltInComponent:t=>{if(t==="Transition"||t==="transition")return BP;if(t==="TransitionGroup"||t==="transition-group")return HP},getNamespace(t,e,n){let r=e?e.ns:n;if(e&&r===2)if(e.tag==="annotation-xml"){if(t==="svg")return 1;e.props.some(i=>i.type===6&&i.name==="encoding"&&i.value!=null&&(i.value.content==="text/html"||i.value.content==="application/xhtml+xml"))&&(r=0)}else/^m(?:[ions]|text)$/.test(e.tag)&&t!=="mglyph"&&t!=="malignmark"&&(r=0);else e&&r===1&&(e.tag==="foreignObject"||e.tag==="desc"||e.tag==="title")&&(r=0);if(r===0){if(t==="svg")return 1;if(t==="math")return 2}return r}},aB=t=>{t.type===1&&t.props.forEach((e,n)=>{e.type===6&&e.name==="style"&&e.value&&(t.props[n]={type:7,name:"bind",arg:Ae("style",!0,e.loc),exp:lB(e.value.content,e.loc),modifiers:[],loc:e.loc})})},lB=(t,e)=>{const n=Y2(t);return Ae(JSON.stringify(n),!1,e,3)};function Yr(t,e){return qe(t,e)}const cB=(t,e,n)=>{const{exp:r,loc:i}=t;return r||n.onError(Yr(53,i)),e.children.length&&(n.onError(Yr(54,i)),e.children.length=0),{props:[Ze(Ae("innerHTML",!0,i),r||Ae("",!0))]}},uB=(t,e,n)=>{const{exp:r,loc:i}=t;return r||n.onError(Yr(55,i)),e.children.length&&(n.onError(Yr(56,i)),e.children.length=0),{props:[Ze(Ae("textContent",!0),r?pn(r,n)>0?r:it(n.helperString(Md),[r],i):Ae("",!0))]}},fB=(t,e,n)=>{const r=VP(t,e,n);if(!r.props.length||e.tagType===1)return r;t.arg&&n.onError(Yr(58,t.arg.loc));const{tag:i}=e,o=n.isCustomElement(i);if(i==="input"||i==="textarea"||i==="select"||o){let s=LP,a=!1;if(i==="input"||o){const l=kd(e,"type");if(l){if(l.type===7)s=wm;else if(l.value)switch(l.value.content){case"radio":s=jP;break;case"checkbox":s=NP;break;case"file":a=!0,n.onError(Yr(59,t.loc));break}}else Nk(e)&&(s=wm)}else i==="select"&&(s=FP);a||(r.needRuntime=n.helper(s))}else n.onError(Yr(57,t.loc));return r.props=r.props.filter(s=>!(s.key.type===4&&s.key.content==="modelValue")),r},dB=ui("passive,once,capture"),hB=ui("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),pB=ui("left,right"),qP=ui("onkeyup,onkeydown,onkeypress",!0),mB=(t,e,n,r)=>{const i=[],o=[],s=[];for(let a=0;a<e.length;a++){const l=e[a];l==="native"&&El("COMPILER_V_ON_NATIVE",n)||dB(l)?s.push(l):pB(l)?kt(t)?qP(t.content)?i.push(l):o.push(l):(i.push(l),o.push(l)):hB(l)?o.push(l):i.push(l)}return{keyModifiers:i,nonKeyModifiers:o,eventOptionModifiers:s}},x_=(t,e)=>kt(t)&&t.content.toLowerCase()==="onclick"?Ae(e,!0):t.type!==4?Cn(["(",t,`) === "onClick" ? "${e}" : (`,t,")"]):t,gB=(t,e,n)=>$P(t,e,n,r=>{const{modifiers:i}=t;if(!i.length)return r;let{key:o,value:s}=r.props[0];const{keyModifiers:a,nonKeyModifiers:l,eventOptionModifiers:c}=mB(o,i,n,t.loc);if(l.includes("right")&&(o=x_(o,"onContextmenu")),l.includes("middle")&&(o=x_(o,"onMouseup")),l.length&&(s=it(n.helper(DP),[s,JSON.stringify(l)])),a.length&&(!kt(o)||qP(o.content))&&(s=it(n.helper(MP),[s,JSON.stringify(a)])),c.length){const u=c.map(Q2).join("");o=kt(o)?Ae(`${o.content}${u}`,!0):Cn(["(",o,`) + "${u}"`])}return{props:[Ze(o,s)]}}),vB=(t,e,n)=>{const{exp:r,loc:i}=t;return r||n.onError(Yr(61,i)),{props:[],needRuntime:n.helper(kP)}},yB=(t,e)=>{t.type===1&&t.tagType===0&&(t.tag==="script"||t.tag==="style")&&e.removeNode()},bB=[aB],_B={cloak:W2,html:cB,text:uB,model:fB,on:gB,show:vB};function SB(t,e={}){return q2(t,P_({},sB,e,{nodeTransforms:[yB,...bB,...e.nodeTransforms||[]],directiveTransforms:P_({},_B,e.directiveTransforms||{}),transformHoist:null}))}const C_={},T_=()=>{},wB=Object.assign,AB=t=>typeof t=="string";/** * vue v3.4.15 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const I_=new WeakMap;function OB(t){let e=I_.get(t??C_);return e||(e=Object.create(null),I_.set(t??C_,e)),e}function EB(t,e){if(!AB(t))if(t.nodeType)t=t.innerHTML;else return T_;const n=t,r=OB(e),i=r[n];if(i)return i;if(t[0]==="#"){const l=document.querySelector(t);t=l?l.innerHTML:""}const o=wB({hoistStatic:!0,onError:void 0,onWarn:T_},e);!o.isCustomElement&&typeof customElements<"u"&&(o.isCustomElement=l=>!!customElements.get(l));const{code:s}=SB(t,o),a=new Function("Vue",s)(pk);return a._rc=!0,r[n]=a}EE(EB);function PB(t,e){switch(t.replace("_","-")){case"af":case"af-ZA":case"bn":case"bn-BD":case"bn-IN":case"bg":case"bg-BG":case"ca":case"ca-AD":case"ca-ES":case"ca-FR":case"ca-IT":case"da":case"da-DK":case"de":case"de-AT":case"de-BE":case"de-CH":case"de-DE":case"de-LI":case"de-LU":case"el":case"el-CY":case"el-GR":case"en":case"en-AG":case"en-AU":case"en-BW":case"en-CA":case"en-DK":case"en-GB":case"en-HK":case"en-IE":case"en-IN":case"en-NG":case"en-NZ":case"en-PH":case"en-SG":case"en-US":case"en-ZA":case"en-ZM":case"en-ZW":case"eo":case"eo-US":case"es":case"es-AR":case"es-BO":case"es-CL":case"es-CO":case"es-CR":case"es-CU":case"es-DO":case"es-EC":case"es-ES":case"es-GT":case"es-HN":case"es-MX":case"es-NI":case"es-PA":case"es-PE":case"es-PR":case"es-PY":case"es-SV":case"es-US":case"es-UY":case"es-VE":case"et":case"et-EE":case"eu":case"eu-ES":case"eu-FR":case"fa":case"fa-IR":case"fi":case"fi-FI":case"fo":case"fo-FO":case"fur":case"fur-IT":case"fy":case"fy-DE":case"fy-NL":case"gl":case"gl-ES":case"gu":case"gu-IN":case"ha":case"ha-NG":case"he":case"he-IL":case"hu":case"hu-HU":case"is":case"is-IS":case"it":case"it-CH":case"it-IT":case"ku":case"ku-TR":case"lb":case"lb-LU":case"ml":case"ml-IN":case"mn":case"mn-MN":case"mr":case"mr-IN":case"nah":case"nb":case"nb-NO":case"ne":case"ne-NP":case"nl":case"nl-AW":case"nl-BE":case"nl-NL":case"nn":case"nn-NO":case"no":case"om":case"om-ET":case"om-KE":case"or":case"or-IN":case"pa":case"pa-IN":case"pa-PK":case"pap":case"pap-AN":case"pap-AW":case"pap-CW":case"ps":case"ps-AF":case"pt":case"pt-BR":case"pt-PT":case"so":case"so-DJ":case"so-ET":case"so-KE":case"so-SO":case"sq":case"sq-AL":case"sq-MK":case"sv":case"sv-FI":case"sv-SE":case"sw":case"sw-KE":case"sw-TZ":case"ta":case"ta-IN":case"ta-LK":case"te":case"te-IN":case"tk":case"tk-TM":case"ur":case"ur-IN":case"ur-PK":case"zu":case"zu-ZA":return e===1?0:1;case"am":case"am-ET":case"bh":case"fil":case"fil-PH":case"fr":case"fr-BE":case"fr-CA":case"fr-CH":case"fr-FR":case"fr-LU":case"gun":case"hi":case"hi-IN":case"hy":case"hy-AM":case"ln":case"ln-CD":case"mg":case"mg-MG":case"nso":case"nso-ZA":case"ti":case"ti-ER":case"ti-ET":case"wa":case"wa-BE":case"xbr":return e===0||e===1?0:1;case"be":case"be-BY":case"bs":case"bs-BA":case"hr":case"hr-HR":case"ru":case"ru-RU":case"ru-UA":case"sr":case"sr-ME":case"sr-RS":case"uk":case"uk-UA":return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2;case"cs":case"cs-CZ":case"sk":case"sk-SK":return e==1?0:e>=2&&e<=4?1:2;case"ga":case"ga-IE":return e==1?0:e==2?1:2;case"lt":case"lt-LT":return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2;case"sl":case"sl-SI":return e%100==1?0:e%100==2?1:e%100==3||e%100==4?2:3;case"mk":case"mk-MK":return e%10==1?0:1;case"mt":case"mt-MT":return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3;case"lv":case"lv-LV":return e==0?0:e%10==1&&e%100!=11?1:2;case"pl":case"pl-PL":return e==1?0:e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?1:2;case"cy":case"cy-GB":return e==1?0:e==2?1:e==8||e==11?2:3;case"ro":case"ro-RO":return e==1?0:e==0||e%100>0&&e%100<20?1:2;case"ar":case"ar-AE":case"ar-BH":case"ar-DZ":case"ar-EG":case"ar-IN":case"ar-IQ":case"ar-JO":case"ar-KW":case"ar-LB":case"ar-LY":case"ar-MA":case"ar-OM":case"ar-QA":case"ar-SA":case"ar-SD":case"ar-SS":case"ar-SY":case"ar-TN":case"ar-YE":return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11&&e%100<=99?4:5;default:return 0}}function xB(t,e,n){let r=t.split("|");const i=CB(r,e);if(i!==null)return i.trim();r=IB(r);const o=PB(n,e);return r.length===1||!r[o]?r[0]:r[o]}function CB(t,e){for(const n of t){let r=TB(n,e);if(r!==null)return r}return null}function TB(t,e){const n=t.match(/^[\{\[]([^\[\]\{\}]*)[\}\]](.*)/s)||[];if(n.length!==3)return null;const r=n[1],i=n[2];if(r.includes(",")){let[o,s]=r.split(",");if(s==="*"&&e>=parseFloat(o))return i;if(o==="*"&&e<=parseFloat(s))return i;if(e>=parseFloat(o)&&e<=parseFloat(s))return i}return parseFloat(r)===e?i:null}function IB(t){return t.map(e=>e.replace(/^[\{\[]([^\[\]\{\}]*)[\}\]]/,""))}const kh=(t,e,n={})=>{try{return t(e)}catch{return n}},Bh=async(t,e={})=>{try{return(await t).default||e}catch{return e}};function R_(t){return t||RB()||$B()}function RB(){var t;return!!(typeof process<"u"&&((t=process.env)!=null&&t.LARAVEL_VUE_I18N_HAS_PHP))}function $B(){return typeof{VITE_APP_ENV:"production",VITE_APP_DOMAIN:"www.mallette.ca",VITE_APP_THEME:"corpo",VITE_PUSHER_APP_KEY:"",VITE_PUSHER_HOST:"",VITE_PUSHER_PORT:"443",VITE_PUSHER_SCHEME:"https",VITE_PUSHER_APP_CLUSTER:"mt1",VITE_PLACEKIT_API_KEY:"pk_BrTEsFmQNZbDe9V+nmWBOnIMotFCz2Q0eQuaZOgCEp4=",VITE_ALGOLIA_APP_ID:"EIC10WP9LW",VITE_ALGOLIA_SEARCH_KEY:"f46f83ab96da18b0937726cfbddffaf4",VITE_SEARCHBAR_HITS_PER_CATEGORY:"5",VITE_LARAVEL_VUE_I18N_HAS_PHP:"true",BASE_URL:"/build/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}<"u"}const Fo=typeof window>"u";let Ro=null;const $_={lang:!Fo&&document.documentElement.lang?document.documentElement.lang.replace("-","_"):null,fallbackLang:"en",fallbackMissingTranslations:!1,resolve:t=>new Promise(e=>e({default:{}})),onLoad:t=>{}},VB={shared:!0};function Lc(t,e=!1){return Et.getSharedInstance().loadLanguageAsync(t,e)}function zv(t,e={}){return Et.getSharedInstance().trans(t,e)}function WP(t,e,n={}){return Et.getSharedInstance().transChoice(t,e,n)}function ai(){return Et.getSharedInstance().getActiveLanguage()}const jB={install(t,e={}){e={...VB,...e};const n=e.shared?Et.getSharedInstance(e,!0):new Et(e);t.config.globalProperties.$t=(r,i)=>n.trans(r,i),t.config.globalProperties.$tChoice=(r,i,o)=>n.transChoice(r,i,o),t.provide("i18n",n)}};class Et{constructor(e={}){this.activeMessages=Yi({}),this.fallbackMessages=Yi({}),this.reset=()=>{Et.loaded=[],this.options=$_;for(const[n]of Object.entries(this.activeMessages))this.activeMessages[n]=null;this===Ro&&(Ro=null)},this.options={...$_,...e},this.options.fallbackMissingTranslations?this.loadFallbackLanguage():this.load()}setOptions(e={},n=!1){return this.options={...this.options,...e},n&&this.load(),this}load(){this[Fo?"loadLanguage":"loadLanguageAsync"](this.getActiveLanguage())}loadFallbackLanguage(){if(!Fo){this.resolveLangAsync(this.options.resolve,this.options.fallbackLang).then(({default:n})=>{this.applyFallbackLanguage(this.options.fallbackLang,n),this.load()});return}const{default:e}=this.resolveLang(this.options.resolve,this.options.fallbackLang);this.applyFallbackLanguage(this.options.fallbackLang,e),this.loadLanguage(this.getActiveLanguage())}loadLanguage(e,n=!1){const r=Et.loaded.find(o=>o.lang===e);if(r){this.setLanguage(r);return}const{default:i}=this.resolveLang(this.options.resolve,e);this.applyLanguage(e,i,n,this.loadLanguage)}loadLanguageAsync(e,n=!1,r=!1){var o;r||((o=this.abortController)==null||o.abort(),this.abortController=new AbortController);const i=Et.loaded.find(s=>s.lang===e);return i?Promise.resolve(this.setLanguage(i)):new Promise((s,a)=>{this.abortController.signal.addEventListener("abort",()=>{s()}),this.resolveLangAsync(this.options.resolve,e).then(({default:l})=>{s(this.applyLanguage(e,l,n,this.loadLanguageAsync))})})}resolveLang(e,n,r={}){return Object.keys(r).length||(r=kh(e,n)),R_(Fo)?{default:{...r,...kh(e,`php_${n}`)}}:{default:r}}async resolveLangAsync(e,n){let r=kh(e,n);if(!(r instanceof Promise))return this.resolveLang(e,n,r);if(R_(Fo)){const i=await Bh(e(`php_${n}`)),o=await Bh(r);return new Promise(s=>s({default:{...i,...o}}))}return new Promise(async i=>i({default:await Bh(r)}))}applyLanguage(e,n,r=!1,i){if(Object.keys(n).length<1){if(/[-_]/g.test(e)&&!r)return i.call(this,e.replace(/[-_]/g,s=>s==="-"?"_":"-"),!0,!0);if(e!==this.options.fallbackLang)return i.call(this,this.options.fallbackLang,!1,!0)}const o={lang:e,messages:n};return this.addLoadedLang(o),this.setLanguage(o)}applyFallbackLanguage(e,n){for(const[r,i]of Object.entries(n))this.fallbackMessages[r]=i;this.addLoadedLang({lang:this.options.fallbackLang,messages:n})}addLoadedLang(e){const n=Et.loaded.findIndex(r=>r.lang===e.lang);if(n!==-1){Et.loaded[n]=e;return}Et.loaded.push(e)}setLanguage({lang:e,messages:n}){Fo||document.documentElement.setAttribute("lang",e.replace("_","-")),this.options.lang=e;for(const[r,i]of Object.entries(n))this.activeMessages[r]=i;for(const[r,i]of Object.entries(this.fallbackMessages))(!this.isValid(n[r])||this.activeMessages[r]===r)&&(this.activeMessages[r]=i);for(const[r]of Object.entries(this.activeMessages))!this.isValid(n[r])&&!this.isValid(this.fallbackMessages[r])&&(this.activeMessages[r]=null);return this.options.onLoad(e),e}getActiveLanguage(){return this.options.lang||this.options.fallbackLang}isLoaded(e){return e??(e=this.getActiveLanguage()),Et.loaded.some(n=>n.lang.replace(/[-_]/g,"-")===e.replace(/[-_]/g,"-"))}trans(e,n={}){return this.wTrans(e,n).value}wTrans(e,n={}){return MO(()=>{let r=this.findTranslation(e);this.isValid(r)||(r=this.findTranslation(e.replace(/\//g,"."))),this.activeMessages[e]=this.isValid(r)?r:e}),Tf(()=>this.makeReplacements(this.activeMessages[e],n))}transChoice(e,n,r={}){return this.wTransChoice(e,n,r).value}wTransChoice(e,n,r={}){const i=this.wTrans(e,r);return r.count=n.toString(),Tf(()=>this.makeReplacements(xB(i.value,n,this.options.lang),r))}findTranslation(e){if(this.isValid(this.activeMessages[e]))return this.activeMessages[e];if(this.activeMessages[`${e}.0`]!==void 0){const r=Object.entries(this.activeMessages).filter(i=>i[0].startsWith(`${e}.`)).map(i=>i[1]);return Yi(r)}return this.activeMessages[e]}makeReplacements(e,n){const r=i=>i.charAt(0).toUpperCase()+i.slice(1);return Object.entries(n||[]).sort((i,o)=>i[0].length>=o[0].length?-1:1).forEach(([i,o])=>{o=o.toString(),e=(e||"").replace(new RegExp(`:${i}`,"g"),o).replace(new RegExp(`:${i.toUpperCase()}`,"g"),o.toUpperCase()).replace(new RegExp(`:${r(i)}`,"g"),r(o))}),e}isValid(e){return e!=null}static getSharedInstance(e,n=!1){return(Ro==null?void 0:Ro.setOptions(e,n))||(Ro=new Et(e))}}Et.loaded=[];window.__=zv;window.trans=zv;window.transChoice=WP;const NB={methods:{__:zv,transChoice:WP}};/*! @placekit/autocomplete-js v2.1.8 | © placekit.io | MIT license | https://github.com/placekit/autocomplete-js#readme */const UP=new Map;function LB(){const t=[];return typeof window<"u"&&navigator.userAgent&&t.push(navigator.userAgent),t.push("PlaceKit/2.2.0 (Client=JavaScript)"),typeof process<"u"&&process.version&&t.push(`NodeJS/${process.version}`),t.join(" ")}function qd(t,e={}){if(["string","undefined"].includes(typeof t))t||console.warn("PlaceKit: missing or empty `apiKey` argument.");else throw Error("PlaceKit: `apiKey` argument is invalid, expected a string.");let n=0;const r=["https://api.placekit.co"];let i=!1;const o={maxResults:5};typeof window<"u"&&navigator.language&&(o.language=navigator.language.slice(0,2));const s=LB();function a(c="POST",u="",f={}){const{timeout:h,forwardIP:d,...p}=f,m=new AbortController,g=typeof h<"u"?setTimeout(()=>m.abort(),h):void 0,v=new URL(u.trim().replace(/^\/+/,""),r[n]);["GET","HEAD"].includes(c)&&typeof p<"u"&&Object.keys(p).forEach(y=>v.searchParams.append(y,p[y]));const b={"Content-Type":"application/json; charset=UTF-8","User-Agent":s,"x-placekit-api-key":t};return d&&(b["x-forwarded-for"]=d),fetch(v,{method:c,headers:b,signal:m.signal,body:["GET","HEAD"].includes(c)?void 0:JSON.stringify(p)}).then(async y=>{clearTimeout(g);const _=await y.json();if(!y.ok)throw{status:y.status,statusText:y.statusText,..._};return _}).catch(y=>{if((y.name==="AbortError"||y.status&&y.status>=500)&&(n++,n<r.length-1))return a(c,u,f);throw y})}const l={get options(){return o},get hasGeolocation(){return i},configure(c={}){if(!["object","undefined"].includes(typeof c)||Array.isArray(c)||c===null)throw Error("PlaceKit.configure: `opts` argument is invalid, expected an object.");Object.assign(o,c)},requestGeolocation(c={}){if(!["object","undefined"].includes(typeof c)||Array.isArray(c)||c===null)throw Error("PlaceKit.requestGeolocation: `opts` argument is invalid, expected an object.");return new Promise((u,f)=>{typeof window>"u"||!navigator.geolocation?f(Error("PlaceKit.requestGeolocation: geolocation is only available in the browser.")):navigator.geolocation.getCurrentPosition(h=>{i=!0,o.coordinates=`${h.coords.latitude},${h.coords.longitude}`,u(h)},h=>{i=!1,delete o.coordinates,f(Error(`PlaceKit.requestGeolocation: (${h.code}) ${h.message}`))},c)})},clearGeolocation(){i=!1,delete o.coordinates}};for(const[c,u]of UP.entries()){if(c in l)throw Error(`PlaceKit extend: \`client.${c}\` already exists.`);l[c]=u(a,l)}return l.configure(e),l}qd.extend=function(t,e){if(!(e!=null&&e.call))throw Error("PlaceKit extend: `init` argument is invalid, expected a function.");UP.set(t,e)};qd.extend("search",(t,e)=>(n,r={})=>{if(!["string","undefined"].includes(typeof n))throw Error("PlaceKit `client.search`: `query` argument is invalid, expected a string.");if(!["object","undefined"].includes(typeof r)||Array.isArray(r)||r===null)throw Error("PlaceKit.search: `opts` argument is invalid, expected an object.");return t("POST","search",{...e.options,...r,query:n})});qd.extend("reverse",(t,e)=>(n={})=>{if(!["object","undefined"].includes(typeof n)||Array.isArray(n)||n===null)throw Error("PlaceKit.reverse: `opts` argument is invalid, expected an object.");return t("POST","reverse",{...e.options,...n})});var Ht="top",bn="bottom",_n="right",qt="left",Kv="auto",Fc=[Ht,bn,_n,qt],ds="start",Cl="end",FB="clippingParents",QP="viewport",Ks="popper",DB="reference",V_=Fc.reduce(function(t,e){return t.concat([e+"-"+ds,e+"-"+Cl])},[]),zP=[].concat(Fc,[Kv]).reduce(function(t,e){return t.concat([e,e+"-"+ds,e+"-"+Cl])},[]),MB="beforeRead",kB="read",BB="afterRead",HB="beforeMain",qB="main",WB="afterMain",UB="beforeWrite",QB="write",zB="afterWrite",KB=[MB,kB,BB,HB,qB,WB,UB,QB,zB];function Xn(t){return t?(t.nodeName||"").toLowerCase():null}function Xt(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function po(t){var e=Xt(t).Element;return t instanceof e||t instanceof Element}function gn(t){var e=Xt(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Gv(t){if(typeof ShadowRoot>"u")return!1;var e=Xt(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function GB(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},o=e.elements[n];!gn(o)||!Xn(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function YB(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],o=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!gn(i)||!Xn(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}var JB={name:"applyStyles",enabled:!0,phase:"write",fn:GB,effect:YB,requires:["computeStyles"]};function Gn(t){return t.split("-")[0]}var no=Math.max,Hf=Math.min,hs=Math.round;function Am(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function KP(){return!/^((?!chrome|android).)*safari/i.test(Am())}function ps(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),i=1,o=1;e&&gn(t)&&(i=t.offsetWidth>0&&hs(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&hs(r.height)/t.offsetHeight||1);var s=po(t)?Xt(t):window,a=s.visualViewport,l=!KP()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/i,u=(r.top+(l&&a?a.offsetTop:0))/o,f=r.width/i,h=r.height/o;return{width:f,height:h,top:u,right:c+f,bottom:u+h,left:c,x:c,y:u}}function Yv(t){var e=ps(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function GP(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Gv(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function wr(t){return Xt(t).getComputedStyle(t)}function ZB(t){return["table","td","th"].indexOf(Xn(t))>=0}function fi(t){return((po(t)?t.ownerDocument:t.document)||window.document).documentElement}function Wd(t){return Xn(t)==="html"?t:t.assignedSlot||t.parentNode||(Gv(t)?t.host:null)||fi(t)}function j_(t){return!gn(t)||wr(t).position==="fixed"?null:t.offsetParent}function XB(t){var e=/firefox/i.test(Am()),n=/Trident/i.test(Am());if(n&&gn(t)){var r=wr(t);if(r.position==="fixed")return null}var i=Wd(t);for(Gv(i)&&(i=i.host);gn(i)&&["html","body"].indexOf(Xn(i))<0;){var o=wr(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Dc(t){for(var e=Xt(t),n=j_(t);n&&ZB(n)&&wr(n).position==="static";)n=j_(n);return n&&(Xn(n)==="html"||Xn(n)==="body"&&wr(n).position==="static")?e:n||XB(t)||e}function Jv(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ea(t,e,n){return no(t,Hf(e,n))}function eH(t,e,n){var r=Ea(t,e,n);return r>n?n:r}function YP(){return{top:0,right:0,bottom:0,left:0}}function JP(t){return Object.assign({},YP(),t)}function ZP(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var tH=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,JP(typeof e!="number"?e:ZP(e,Fc))};function nH(t){var e,n=t.state,r=t.name,i=t.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Gn(n.placement),l=Jv(a),c=[qt,_n].indexOf(a)>=0,u=c?"height":"width";if(!(!o||!s)){var f=tH(i.padding,n),h=Yv(o),d=l==="y"?Ht:qt,p=l==="y"?bn:_n,m=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],g=s[l]-n.rects.reference[l],v=Dc(o),b=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,y=m/2-g/2,_=f[d],A=b-h[u]-f[p],C=b/2-h[u]/2+y,x=Ea(_,C,A),S=l;n.modifiersData[r]=(e={},e[S]=x,e.centerOffset=x-C,e)}}function rH(t){var e=t.state,n=t.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||GP(e.elements.popper,i)&&(e.elements.arrow=i))}var iH={name:"arrow",enabled:!0,phase:"main",fn:nH,effect:rH,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ms(t){return t.split("-")[1]}var oH={top:"auto",right:"auto",bottom:"auto",left:"auto"};function sH(t,e){var n=t.x,r=t.y,i=e.devicePixelRatio||1;return{x:hs(n*i)/i||0,y:hs(r*i)/i||0}}function N_(t){var e,n=t.popper,r=t.popperRect,i=t.placement,o=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,f=t.isFixed,h=s.x,d=h===void 0?0:h,p=s.y,m=p===void 0?0:p,g=typeof u=="function"?u({x:d,y:m}):{x:d,y:m};d=g.x,m=g.y;var v=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),y=qt,_=Ht,A=window;if(c){var C=Dc(n),x="clientHeight",S="clientWidth";if(C===Xt(n)&&(C=fi(n),wr(C).position!=="static"&&a==="absolute"&&(x="scrollHeight",S="scrollWidth")),C=C,i===Ht||(i===qt||i===_n)&&o===Cl){_=bn;var w=f&&C===A&&A.visualViewport?A.visualViewport.height:C[x];m-=w-r.height,m*=l?1:-1}if(i===qt||(i===Ht||i===bn)&&o===Cl){y=_n;var O=f&&C===A&&A.visualViewport?A.visualViewport.width:C[S];d-=O-r.width,d*=l?1:-1}}var P=Object.assign({position:a},c&&oH),T=u===!0?sH({x:d,y:m},Xt(n)):{x:d,y:m};if(d=T.x,m=T.y,l){var R;return Object.assign({},P,(R={},R[_]=b?"0":"",R[y]=v?"0":"",R.transform=(A.devicePixelRatio||1)<=1?"translate("+d+"px, "+m+"px)":"translate3d("+d+"px, "+m+"px, 0)",R))}return Object.assign({},P,(e={},e[_]=b?m+"px":"",e[y]=v?d+"px":"",e.transform="",e))}function aH(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Gn(e.placement),variation:ms(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,N_(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,N_(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var lH={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:aH,data:{}},ju={passive:!0};function cH(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,l=Xt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,ju)}),a&&l.addEventListener("resize",n.update,ju),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,ju)}),a&&l.removeEventListener("resize",n.update,ju)}}var uH={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:cH,data:{}},fH={left:"right",right:"left",bottom:"top",top:"bottom"};function nf(t){return t.replace(/left|right|bottom|top/g,function(e){return fH[e]})}var dH={start:"end",end:"start"};function L_(t){return t.replace(/start|end/g,function(e){return dH[e]})}function Zv(t){var e=Xt(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Xv(t){return ps(fi(t)).left+Zv(t).scrollLeft}function hH(t,e){var n=Xt(t),r=fi(t),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var c=KP();(c||!c&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+Xv(t),y:l}}function pH(t){var e,n=fi(t),r=Zv(t),i=(e=t.ownerDocument)==null?void 0:e.body,o=no(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=no(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+Xv(t),l=-r.scrollTop;return wr(i||n).direction==="rtl"&&(a+=no(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function ey(t){var e=wr(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function XP(t){return["html","body","#document"].indexOf(Xn(t))>=0?t.ownerDocument.body:gn(t)&&ey(t)?t:XP(Wd(t))}function Pa(t,e){var n;e===void 0&&(e=[]);var r=XP(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),o=Xt(r),s=i?[o].concat(o.visualViewport||[],ey(r)?r:[]):r,a=e.concat(s);return i?a:a.concat(Pa(Wd(s)))}function Om(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function mH(t,e){var n=ps(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function F_(t,e,n){return e===QP?Om(hH(t,n)):po(e)?mH(e,n):Om(pH(fi(t)))}function gH(t){var e=Pa(Wd(t)),n=["absolute","fixed"].indexOf(wr(t).position)>=0,r=n&&gn(t)?Dc(t):t;return po(r)?e.filter(function(i){return po(i)&&GP(i,r)&&Xn(i)!=="body"}):[]}function vH(t,e,n,r){var i=e==="clippingParents"?gH(t):[].concat(e),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(l,c){var u=F_(t,c,r);return l.top=no(u.top,l.top),l.right=Hf(u.right,l.right),l.bottom=Hf(u.bottom,l.bottom),l.left=no(u.left,l.left),l},F_(t,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ex(t){var e=t.reference,n=t.element,r=t.placement,i=r?Gn(r):null,o=r?ms(r):null,s=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,l;switch(i){case Ht:l={x:s,y:e.y-n.height};break;case bn:l={x:s,y:e.y+e.height};break;case _n:l={x:e.x+e.width,y:a};break;case qt:l={x:e.x-n.width,y:a};break;default:l={x:e.x,y:e.y}}var c=i?Jv(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case ds:l[c]=l[c]-(e[u]/2-n[u]/2);break;case Cl:l[c]=l[c]+(e[u]/2-n[u]/2);break}}return l}function Tl(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=r===void 0?t.placement:r,o=n.strategy,s=o===void 0?t.strategy:o,a=n.boundary,l=a===void 0?FB:a,c=n.rootBoundary,u=c===void 0?QP:c,f=n.elementContext,h=f===void 0?Ks:f,d=n.altBoundary,p=d===void 0?!1:d,m=n.padding,g=m===void 0?0:m,v=JP(typeof g!="number"?g:ZP(g,Fc)),b=h===Ks?DB:Ks,y=t.rects.popper,_=t.elements[p?b:h],A=vH(po(_)?_:_.contextElement||fi(t.elements.popper),l,u,s),C=ps(t.elements.reference),x=ex({reference:C,element:y,strategy:"absolute",placement:i}),S=Om(Object.assign({},y,x)),w=h===Ks?S:C,O={top:A.top-w.top+v.top,bottom:w.bottom-A.bottom+v.bottom,left:A.left-w.left+v.left,right:w.right-A.right+v.right},P=t.modifiersData.offset;if(h===Ks&&P){var T=P[i];Object.keys(O).forEach(function(R){var M=[_n,bn].indexOf(R)>=0?1:-1,k=[Ht,bn].indexOf(R)>=0?"y":"x";O[R]+=T[k]*M})}return O}function yH(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?zP:l,u=ms(r),f=u?a?V_:V_.filter(function(p){return ms(p)===u}):Fc,h=f.filter(function(p){return c.indexOf(p)>=0});h.length===0&&(h=f);var d=h.reduce(function(p,m){return p[m]=Tl(t,{placement:m,boundary:i,rootBoundary:o,padding:s})[Gn(m)],p},{});return Object.keys(d).sort(function(p,m){return d[p]-d[m]})}function bH(t){if(Gn(t)===Kv)return[];var e=nf(t);return[L_(t),e,L_(e)]}function _H(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,d=n.flipVariations,p=d===void 0?!0:d,m=n.allowedAutoPlacements,g=e.options.placement,v=Gn(g),b=v===g,y=l||(b||!p?[nf(g)]:bH(g)),_=[g].concat(y).reduce(function(ye,q){return ye.concat(Gn(q)===Kv?yH(e,{placement:q,boundary:u,rootBoundary:f,padding:c,flipVariations:p,allowedAutoPlacements:m}):q)},[]),A=e.rects.reference,C=e.rects.popper,x=new Map,S=!0,w=_[0],O=0;O<_.length;O++){var P=_[O],T=Gn(P),R=ms(P)===ds,M=[Ht,bn].indexOf(T)>=0,k=M?"width":"height",B=Tl(e,{placement:P,boundary:u,rootBoundary:f,altBoundary:h,padding:c}),z=M?R?_n:qt:R?bn:Ht;A[k]>C[k]&&(z=nf(z));var Q=nf(z),G=[];if(o&&G.push(B[T]<=0),a&&G.push(B[z]<=0,B[Q]<=0),G.every(function(ye){return ye})){w=P,S=!1;break}x.set(P,G)}if(S)for(var K=p?3:1,te=function(q){var D=_.find(function(V){var F=x.get(V);if(F)return F.slice(0,q).every(function(N){return N})});if(D)return w=D,"break"},ue=K;ue>0;ue--){var Se=te(ue);if(Se==="break")break}e.placement!==w&&(e.modifiersData[r]._skip=!0,e.placement=w,e.reset=!0)}}var SH={name:"flip",enabled:!0,phase:"main",fn:_H,requiresIfExists:["offset"],data:{_skip:!1}};function D_(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function M_(t){return[Ht,_n,bn,qt].some(function(e){return t[e]>=0})}function wH(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,s=Tl(e,{elementContext:"reference"}),a=Tl(e,{altBoundary:!0}),l=D_(s,r),c=D_(a,i,o),u=M_(l),f=M_(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}var AH={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:wH};function OH(t,e,n){var r=Gn(t),i=[qt,Ht].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[qt,_n].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function EH(t){var e=t.state,n=t.options,r=t.name,i=n.offset,o=i===void 0?[0,0]:i,s=zP.reduce(function(u,f){return u[f]=OH(f,e.rects,o),u},{}),a=s[e.placement],l=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=s}var PH={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:EH};function xH(t){var e=t.state,n=t.name;e.modifiersData[n]=ex({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var CH={name:"popperOffsets",enabled:!0,phase:"read",fn:xH,data:{}};function TH(t){return t==="x"?"y":"x"}function IH(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,d=h===void 0?!0:h,p=n.tetherOffset,m=p===void 0?0:p,g=Tl(e,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),v=Gn(e.placement),b=ms(e.placement),y=!b,_=Jv(v),A=TH(_),C=e.modifiersData.popperOffsets,x=e.rects.reference,S=e.rects.popper,w=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,O=typeof w=="number"?{mainAxis:w,altAxis:w}:Object.assign({mainAxis:0,altAxis:0},w),P=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,T={x:0,y:0};if(C){if(o){var R,M=_==="y"?Ht:qt,k=_==="y"?bn:_n,B=_==="y"?"height":"width",z=C[_],Q=z+g[M],G=z-g[k],K=d?-S[B]/2:0,te=b===ds?x[B]:S[B],ue=b===ds?-S[B]:-x[B],Se=e.elements.arrow,ye=d&&Se?Yv(Se):{width:0,height:0},q=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:YP(),D=q[M],V=q[k],F=Ea(0,x[B],ye[B]),N=y?x[B]/2-K-F-D-O.mainAxis:te-F-D-O.mainAxis,W=y?-x[B]/2+K+F+V+O.mainAxis:ue+F+V+O.mainAxis,re=e.elements.arrow&&Dc(e.elements.arrow),ae=re?_==="y"?re.clientTop||0:re.clientLeft||0:0,E=(R=P==null?void 0:P[_])!=null?R:0,I=z+N-E-ae,L=z+W-E,U=Ea(d?Hf(Q,I):Q,z,d?no(G,L):G);C[_]=U,T[_]=U-z}if(a){var H,X=_==="x"?Ht:qt,ne=_==="x"?bn:_n,J=C[A],Z=A==="y"?"height":"width",Y=J+g[X],ie=J-g[ne],le=[Ht,qt].indexOf(v)!==-1,de=(H=P==null?void 0:P[A])!=null?H:0,ce=le?Y:J-x[Z]-S[Z]-de+O.altAxis,se=le?J+x[Z]+S[Z]-de-O.altAxis:ie,be=d&&le?eH(ce,J,se):Ea(d?ce:Y,J,d?se:ie);C[A]=be,T[A]=be-J}e.modifiersData[r]=T}}var RH={name:"preventOverflow",enabled:!0,phase:"main",fn:IH,requiresIfExists:["offset"]};function $H(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function VH(t){return t===Xt(t)||!gn(t)?Zv(t):$H(t)}function jH(t){var e=t.getBoundingClientRect(),n=hs(e.width)/t.offsetWidth||1,r=hs(e.height)/t.offsetHeight||1;return n!==1||r!==1}function NH(t,e,n){n===void 0&&(n=!1);var r=gn(e),i=gn(e)&&jH(e),o=fi(e),s=ps(t,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Xn(e)!=="body"||ey(o))&&(a=VH(e)),gn(e)?(l=ps(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=Xv(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function LH(t){var e=new Map,n=new Set,r=[];t.forEach(function(o){e.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=e.get(a);l&&i(l)}}),r.push(o)}return t.forEach(function(o){n.has(o.name)||i(o)}),r}function FH(t){var e=LH(t);return KB.reduce(function(n,r){return n.concat(e.filter(function(i){return i.phase===r}))},[])}function DH(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function MH(t){var e=t.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var k_={placement:"bottom",modifiers:[],strategy:"absolute"};function B_(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function tx(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,i=e.defaultOptions,o=i===void 0?k_:i;return function(a,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},k_,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},f=[],h=!1,d={state:u,setOptions:function(v){var b=typeof v=="function"?v(u.options):v;m(),u.options=Object.assign({},o,u.options,b),u.scrollParents={reference:po(a)?Pa(a):a.contextElement?Pa(a.contextElement):[],popper:Pa(l)};var y=FH(MH([].concat(r,u.options.modifiers)));return u.orderedModifiers=y.filter(function(_){return _.enabled}),p(),d.update()},forceUpdate:function(){if(!h){var v=u.elements,b=v.reference,y=v.popper;if(B_(b,y)){u.rects={reference:NH(b,Dc(y),u.options.strategy==="fixed"),popper:Yv(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(O){return u.modifiersData[O.name]=Object.assign({},O.data)});for(var _=0;_<u.orderedModifiers.length;_++){if(u.reset===!0){u.reset=!1,_=-1;continue}var A=u.orderedModifiers[_],C=A.fn,x=A.options,S=x===void 0?{}:x,w=A.name;typeof C=="function"&&(u=C({state:u,options:S,name:w,instance:d})||u)}}}},update:DH(function(){return new Promise(function(g){d.forceUpdate(),g(u)})}),destroy:function(){m(),h=!0}};if(!B_(a,l))return d;d.setOptions(c).then(function(g){!h&&c.onFirstUpdate&&c.onFirstUpdate(g)});function p(){u.orderedModifiers.forEach(function(g){var v=g.name,b=g.options,y=b===void 0?{}:b,_=g.effect;if(typeof _=="function"){var A=_({state:u,name:v,instance:d,options:y}),C=function(){};f.push(A||C)}})}function m(){f.forEach(function(g){return g()}),f=[]}return d}}tx();var kH=[uH,CH,lH,JB,PH,SH,RH,iH,AH],BH=tx({defaultModifiers:kH});const Hh=t=>Object.prototype.toString.call(t)==="[object String]",Em=t=>typeof t=="object"&&!Array.isArray(t)&&t!==null,nx=(t,e)=>Em(t)?(Object.keys(e).forEach(n=>t[n]=Em(e[n])?nx(t[n]||{},e[n]):e[n]),t):e;function Ud(t,{target:e="#placekit",...n}={}){const r=Hh(e)?document.querySelector(e):e;if(r){if(r.tagName!=="INPUT"||!["text","search"].includes(r.getAttribute("type")))throw'Error: target must be an HTML input of type "text" or "search".'}else throw"Error: target not found.";const i=qd(t),o=new Map;let s=[],a=null,l=null,c=null,u=!1;const f={},h={empty:!r.value,dirty:!1,freeForm:!0,geolocation:!1,countryMode:!1},d={panel:{className:"",offset:4,strategy:"absolute",flip:!1},format:{flag:q=>`<img class="pka-flag" src="https://flagcdn.com/64x48/${q==null?void 0:q.toLowerCase()}.png" alt="${q}" loading="lazy" />`,icon:(q,D)=>`<span class="pka-icon pka-icon-${q}" role="img" aria-label="${D||"icon"}"></span>`,sub:q=>q.type==="country"?"":q.type==="city"?[q.zipcode.sort()[0],q.country].filter(D=>D).join(" "):[q.city,q.county].filter(D=>D).join(", "),noResults:q=>`No results for ${q}`,value:q=>q.name,applySuggestion:"Apply suggestion",suggestions:"Address suggestions",changeCountry:"Change country",cancel:"Cancel"},countryAutoFill:!0,countrySelect:!0};r.setAttribute("autocomplete","off"),r.setAttribute("aria-autocomplete","list"),r.setAttribute("aria-expanded",!1),r.setAttribute("role","combobox");const p=document.createElement("div");p.classList.add("pka-panel"),p.innerHTML=` <div class="pka-panel-loading" role="progressbar" aria-hidden="true">${d.format.icon("loading")}</div> <div class="pka-panel-suggestions" role="listbox" aria-label="${d.format.suggestions}"></div> <div class="pka-panel-footer"> <div class="pka-panel-country"> <input type="checkbox" id="pka-panel-country-mode" class="pka-sr-only" /> <label for="pka-panel-country-mode" class="pka-panel-country-open" aria-label="${d.format.changeCountry}"> </label> <label for="pka-panel-country-mode" class="pka-panel-country-close"> ${d.format.icon("cancel")} <span class="pka-panel-country-label">${d.format.cancel}</span> </label> </div> <div class="pka-panel-credits"> <span class="pka-panel-credits-text">Powered by</span> <a href="https://placekit.io/?utm_source=${encodeURI(window.location.hostname)}" target="_blank" class="pka-panel-credits-link" aria-label="PlaceKit.io"> <svg viewBox="0 0 98 24" fill-rule="evenodd" fill="currentColor" height="14"> <path d="M10.618 20.336a.506.506 0 0 1 .558-.414 8.009 8.009 0 0 0 1.867 0 .506.506 0 0 1 .557.414l.177 1a.504.504 0 0 1-.435.59 10.227 10.227 0 0 1-2.465 0 .51.51 0 0 1-.434-.59l.175-1Zm-6.577-5.521a.506.506 0 0 1 .639.28 8.12 8.12 0 0 0 2.971 3.542.504.504 0 0 1 .164.675c-.152.268-.35.612-.507.884a.508.508 0 0 1-.71.174 10.181 10.181 0 0 1-3.807-4.539.502.502 0 0 1 .293-.665c.294-.109.667-.245.957-.351Zm15.5.281a.504.504 0 0 1 .637-.278c.29.103.664.239.958.346a.503.503 0 0 1 .295.668 10.19 10.19 0 0 1-3.811 4.536.5.5 0 0 1-.707-.174c-.158-.27-.357-.614-.511-.88a.508.508 0 0 1 .165-.679 8.107 8.107 0 0 0 2.974-3.539Zm-11.003-.391-.008-.007a5.064 5.064 0 0 1 0-7.158 5.064 5.064 0 0 1 7.158 0 5.064 5.064 0 0 1 .001 7.157l.006.007-2.863 2.864a1.013 1.013 0 0 1-1.432 0l-2.862-2.863Zm3.575-5.601a2.015 2.015 0 0 1 0 4.028 2.015 2.015 0 0 1 0-4.028Zm9.023-.511a.507.507 0 0 1 .656.324c.236.775.382 1.591.426 2.433a.504.504 0 0 1-.505.527c-.312.002-.709.002-1.016.002a.507.507 0 0 1-.505-.481 7.986 7.986 0 0 0-.321-1.833.505.505 0 0 1 .31-.623l.955-.349Zm-18.707.324a.505.505 0 0 1 .654-.323c.295.106.667.242.956.347.253.092.39.367.311.624a7.988 7.988 0 0 0-.323 1.833.505.505 0 0 1-.504.479c-.308.002-.704.002-1.017.002a.508.508 0 0 1-.505-.529c.044-.842.191-1.658.428-2.433Zm11.349-6.499a.504.504 0 0 1 .607-.406 10.143 10.143 0 0 1 5.128 2.967.507.507 0 0 1-.049.726c-.238.203-.542.458-.778.656a.506.506 0 0 1-.697-.045 8.071 8.071 0 0 0-4.001-2.315.504.504 0 0 1-.385-.579c.051-.304.12-.695.175-1.004Zm-3.942-.404a.502.502 0 0 1 .604.405c.056.308.125.699.179 1.003a.506.506 0 0 1-.387.581 8.07 8.07 0 0 0-4.003 2.312.504.504 0 0 1-.694.044c-.237-.196-.541-.451-.781-.653a.506.506 0 0 1-.049-.728 10.136 10.136 0 0 1 5.131-2.964Z" /> <path d="M30.315 20.5v-5.028c.597.868 1.483 1.321 2.55 1.321 2.496 0 4.087-1.845 4.087-5.137 0-3.165-1.555-5.1-4.087-5.1-1.067 0-1.935.489-2.55 1.375V6.828H28V20.5h2.315Zm61.146-6.999c0 2.17.94 3.292 2.911 3.292.633 0 1.158-.109 1.411-.236v-1.7h-.434c-1.284 0-1.573-.542-1.573-1.555V8.618h2.043v-1.79h-2.043V4.603h-2.315v2.225h-1.248v1.79h1.248v4.883Zm-28.412-3.237c-.326-2.478-2.062-3.708-4.268-3.708-2.785 0-4.576 1.845-4.576 5.137 0 3.146 1.736 5.1 4.594 5.1 2.188 0 3.888-1.14 4.322-3.563h-2.333c-.235 1.103-.94 1.646-1.935 1.646-1.465 0-2.26-1.14-2.26-3.183 0-2.08.759-3.22 2.188-3.22.976 0 1.736.525 1.953 1.791h2.315Zm-17.018-.253c.145-.923.741-1.538 1.845-1.538 1.284 0 1.88.67 1.88 1.917v.236c-1.627.018-2.875.126-4.159.56-1.483.488-2.225 1.483-2.225 2.803 0 1.863 1.357 2.804 3.256 2.804 1.157 0 2.351-.471 3.146-1.592.019.525.073.995.199 1.32h2.406c-.181-.506-.29-1.175-.29-2.369V10.39c0-2.242-1.374-3.834-4.069-3.834-2.441 0-4.015 1.303-4.322 3.455h2.333Zm27.905 3.345h-2.441c-.308 1.031-1.049 1.538-2.134 1.538-1.411 0-2.225-.977-2.333-2.749h6.836v-.543c0-3.129-1.754-5.046-4.594-5.046-2.821 0-4.63 1.845-4.63 5.137 0 3.164 1.791 5.1 4.721 5.1 2.315 0 4.051-1.194 4.575-3.437Zm12.425 3.165h2.315V6.828h-2.315v9.693Zm-47.365 0h2.315V3.5h-2.315v13.021Zm36.966 0h2.315v-4.684l3.653 4.684h2.839l-4.178-5.389 3.907-4.304h-2.713l-3.508 4.051V3.5h-2.315v13.021Zm-30.257-2.658c0-.977.76-1.754 4.051-1.809v.416c0 1.447-1.103 2.604-2.532 2.604-.94 0-1.519-.47-1.519-1.211Zm-13.256-5.39c1.356 0 2.116 1.14 2.116 3.183 0 2.08-.742 3.22-2.116 3.22-1.356 0-2.134-1.158-2.134-3.22 0-2.061.741-3.183 2.134-3.183Zm36.821-.018c1.212 0 1.953.796 2.17 2.243h-4.358c.217-1.465.958-2.243 2.188-2.243Zm17.091-2.712h2.315V3.5h-2.315v2.243Z" /> </svg> </a> </div> </div> `,document.body.append(p);const m=p.querySelector(".pka-panel-loading"),g=p.querySelector(".pka-panel-suggestions"),v=p.querySelector("#pka-panel-country-mode"),b=BH(r,p);function y(q,...D){o.has(q)&&o.get(q).apply(f,D)}function _(q,D=!1){if(!Em(q))throw"TypeError: setState first argument must be a key/value object.";let V=!1;for(const F in h)F in q&&q[F]!==h[F]&&(h[F]=q[F],V=!0,D||y(F,h[F]));V&&y("state",h)}function A(q,{notify:D=!1,focus:V=!0}={}){Hh(q)&&(Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(r,q),_({empty:!r.value}),D&&(a=null,r.dispatchEvent(new Event("input",{bubbles:!0})),r.dispatchEvent(new Event("change",{bubbles:!0}))),V&&r.focus())}function C(){A("",{notify:!0,focus:!0}),S(!1),h.geolocation?M():s=[]}function x(q=!1){a!==null&&(A(a,{focus:!1}),q&&(a=null))}function S(q){const D=p.classList.contains("pka-open"),V=typeof q>"u"?!D:q;p.classList.toggle("pka-open",V),r.setAttribute("aria-expanded",V),D!==V&&(V||w(),y(V?"open":"close"))}function w(){p.querySelectorAll('[role="option"]').forEach(q=>q.classList.remove("pka-active"))}function O(q){a===null&&(a=r.value);const D=Array.from(g.children),V=D.findIndex(W=>W.classList.contains("pka-active"));w();const F=D.length+1,N=(V+1+q+F)%F;if(N===0)x();else{const W=D[N-1];W.classList.add("pka-active"),g.scrollTo({top:W.offsetTop}),A(d.format.value(s[N-1]))}}function P(q){const D=Array.from(g.children);if(typeof q>"u"&&(q=D.findIndex(N=>N.classList.contains("pka-active"))),!D[q])return;const F=s[q];h.countryMode?(k(F),B(!1)):(D.forEach((N,W)=>{N.classList.toggle("pka-selected",W===q),N.setAttribute("aria-selected",W===q)}),A(d.format.value(F),{notify:!0}),_({dirty:!0,freeForm:!1}),S(!1),y("pick",r.value,F,q))}let T;function R(q){clearTimeout(T),m.setAttribute("aria-hidden",!0),q&&(T=setTimeout(()=>{m.setAttribute("aria-hidden",!1)},300))}async function M(){a=null;const q=r.value;_({empty:!q,dirty:!0,freeForm:!0}),R(!0),v.disabled||await z();const D=u?["city","country"]:["country"];i.search(q,{countries:c?[c.countrycode]:d.countries,types:h.countryMode?["country"]:d.types,maxResults:h.countryMode?20:d.maxResults}).then(({results:V})=>{var F;R(!1),r.value===q&&(s=V,g.innerHTML=V.length>0?V.map(N=>` <div class="pka-panel-suggestion" role="option" tabindex="-1" aria-selected="false"> ${D.includes(N.type)?d.format.flag(N.countrycode):d.format.icon(N.type||"pin",N.type)} <span class="pka-panel-suggestion-label"> <span class="pka-panel-suggestion-label-name">${N.highlight}</span> <span class="pka-panel-suggestion-label-sub">${d.format.sub(N)}</span> </span> <button type="button" class="pka-panel-suggestion-action" aria-label="${d.format.applySuggestion}" /> </div> `).join(""):` <div class="pka-panel-suggestion" role="option" tabindex="-1" aria-selected="false" aria-disabled="true"> ${d.format.icon("noresults")} <span class="pka-panel-suggestion-label"> <span class="pka-panel-suggestion-label-name"> ${(F=d.format.noResults)!=null&&F.call?d.format.noResults(q):d.format.noResults} </span> </span> </div> `,b.update(),y("results",q,V))}).catch(V=>y("error",V))}function k(q){p.querySelector(".pka-panel-country-open").innerHTML=q===null?"":` ${d.format.flag(q.countrycode)} <span class="pka-panel-country-label">${q.name}</span> ${d.format.icon("switch")} `,(q==null?void 0:q.countrycode)!==(c==null?void 0:c.countrycode)&&(c=q,y("countryChange",c))}function B(q){v.checked=!v.disabled&&(typeof q>"u"?!v.checked:q),_({countryMode:v.checked}),h.countryMode?(l=r.value,A(c.name),r.select(),M()):l!==null&&(A(l),l=null,M())}function z(){return c?Promise.resolve(c):i.reverse({maxResults:1,types:["country"]}).then(({results:q})=>q.length?(k(q[0]),q[0]):null).catch(q=>y("error",q))}p.addEventListener("mousemove",q=>{var D;!q.movementX&&!q.movementY||(w(),(D=q.target.closest('[role="option"]'))==null||D.classList.add("pka-active"))}),p.addEventListener("click",q=>{const D=q.target.closest('[role="option"]');if(!D)return;q.stopPropagation();const V=Array.from(g.children).indexOf(D);if(q.target.closest(".pka-panel-suggestion-action")){const F=s[V];F&&(A(`${d.format.value(F)} `,{notify:!0}),_({dirty:!0,freeForm:!1}))}else P(V)}),v.addEventListener("change",q=>{B(q.target.checked)});function Q(q){q instanceof InputEvent&&(S(!!r.value.trim()||h.countryMode),M())}r.addEventListener("input",Q);function G(){!h.dirty&&r.value?(S(!0),M()):S(!!r.value.trim()||h.geolocation||h.countryMode)}r.addEventListener("click",G),r.addEventListener("focus",G);function K(q){![r,p].includes(q.target)&&!p.contains(q.target)&&(S(!1),x(!0))}window.addEventListener("click",K);function te(q){if(r===document.activeElement){const D=p.classList.contains("pka-open");switch(q.key){case"Up":case"ArrowUp":D&&(q.preventDefault(),q.altKey?S(!1):O(-1));break;case"Down":case"ArrowDown":s.length>0&&(D?q.altKey||(q.preventDefault(),O(1)):(q.preventDefault(),S(!0)));break;case"Enter":D&&(q.preventDefault(),P());break;case"Esc":case"Escape":q.preventDefault(),D?h.countryMode?B(!1):(S(!1),x(!0)):C();break;case"Tab":S(!1);break}}}window.addEventListener("keydown",te);function ue(){window.requestAnimationFrame(()=>{p.style.width=`${r.offsetWidth}px`,b.update()})}ue();const Se=new ResizeObserver(ue);Se.observe(r);function ye(q={}){var ae;delete q.target;const{panel:D,format:V,countryAutoFill:F,countrySelect:N,...W}=nx(d,q);i.configure(W),p.setAttribute("class",`pka-panel ${d.panel.className}`.trim()),b.setOptions({placement:"bottom-start",strategy:d.panel.strategy,modifiers:[{name:"flip",enabled:d.panel.flip},{name:"offset",options:{offset:[0,d.panel.offset]}}]});const re=((ae=d.types)==null?void 0:ae.join(",").toLowerCase())??"";v.disabled=d.countries||!d.countrySelect||re==="country",p.querySelector(".pka-panel-country").setAttribute("aria-hidden",v.disabled),u=!d.countries&&!d.countrySelect&&["city","city,country","country,city","country"].includes(re),d.countryAutoFill&&re==="country"&&!h.dirty&&!r.value.trim()&&z().then(E=>{A(E.name,{notify:!0,focus:!1}),_({freeForm:!1}),y("pick",E.name,E,0)})}return ye(n),Object.defineProperty(f,"input",{get:()=>r}),Object.defineProperty(f,"options",{get:()=>({target:e,...d,...i.options})}),Object.defineProperty(f,"handlers",{get:()=>Object.fromEntries(o)}),Object.defineProperty(f,"state",{get:()=>h}),f.setValue=(q,D=!1)=>(A(q,{notify:D,focus:!1}),f),f.clear=C,f.on=(q,D)=>{if(!Hh(q))throw"Error: first argument 'event' must be a string.";if(typeof D<"u"&&!D.call)throw"Error: second argument 'handler' must be a function if defined.";return D?o.set(q,D):o.has(q)&&o.delete(q),f},f.open=()=>(S(!0),f),f.close=()=>(S(!1),f),f.configure=(q={})=>(ye(q),f),f.requestGeolocation=(q={})=>i.requestGeolocation(q).then(D=>(_({geolocation:!0},!0),y("geolocation",!0,D),k(null),r.focus(),M(),D)).catch(D=>{_({geolocation:!1},!0),y("geolocation",!1,void 0,D.message)}),f.clearGeolocation=()=>(i.clearGeolocation(),_({geolocation:!1}),f),f.destroy=()=>{r.removeEventListener("input",Q),r.removeEventListener("click",G),r.removeEventListener("focus",G),window.removeEventListener("keydown",te),window.removeEventListener("click",K),Se.unobserve(r),p.remove()},f}var HH="ais",di=function(e){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=n.descendantName,i=n.modifierName,o=r?"-".concat(r):"",s=i?"--".concat(i):"";return"".concat(HH,"-").concat(e).concat(o).concat(s)}};function Qe(){}var Mc=function(e,n){return e};function qH(t){return Object.prototype.toString.call(t).slice(8,-1)}function js(t,e){if(t===void 0||typeof t!="function")throw new Error("The render function is not valid (received type ".concat(qH(t),`). `).concat(e))}function H_(t){var e=t.helper,n=t.attributesToClear,r=n===void 0?[]:n,i=e.state.setPage(0);return i=r.reduce(function(o,s){return i.isNumericRefined(s)?o.removeNumericRefinement(s):i.isHierarchicalFacet(s)?o.removeHierarchicalFacetRefinement(s):i.isDisjunctiveFacet(s)?o.removeDisjunctiveFacetRefinement(s):i.isConjunctiveFacet(s)?o.removeFacetRefinement(s):o},i),r.indexOf("query")!==-1&&(i=i.setQuery("")),i}var WH={"&":"&","<":"<",">":">",'"':""","'":"'"},rx=/[&<>"']/g,UH=RegExp(rx.source);function QH(t){return t&&UH.test(t)?t.replace(rx,function(e){return WH[e]}):t}var zH={"&":"&","<":"<",">":">",""":'"',"'":"'"},ix=/&(amp|quot|lt|gt|#39);/g,KH=RegExp(ix.source);function kc(t){return t&&KH.test(t)?t.replace(ix,function(e){return zH[e]}):t}function Pm(t){"@babel/helpers - typeof";return Pm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pm(t)}function GH(t){return t===null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}function YH(t){return Pm(t)==="object"&&t!==null}function ox(t){if(!YH(t)||GH(t)!=="[object Object]")return!1;if(Object.getPrototypeOf(t)===null)return!0;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Il(t){"@babel/helpers - typeof";return Il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Il(t)}function JH(t){if(t==null)throw new TypeError("Cannot destructure "+t)}function xm(){return xm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},xm.apply(this,arguments)}function q_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Nu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?q_(Object(n),!0).forEach(function(r){sx(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):q_(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function sx(t,e,n){return e=ZH(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ZH(t){var e=XH(t,"string");return Il(e)==="symbol"?e:String(e)}function XH(t,e){if(Il(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Il(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var qf={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},Qt={highlightPreTag:"<mark>",highlightPostTag:"</mark>"};function e3(t){return QH(t).replace(new RegExp(qf.highlightPreTag,"g"),Qt.highlightPreTag).replace(new RegExp(qf.highlightPostTag,"g"),Qt.highlightPostTag)}function Wf(t){return ox(t)&&typeof t.value!="string"?Object.keys(t).reduce(function(e,n){return Nu(Nu({},e),{},sx({},n,Wf(t[n])))},{}):Array.isArray(t)?t.map(Wf):Nu(Nu({},t),{},{value:e3(t.value)})}function t3(t){return t.__escaped===void 0&&(t=t.map(function(e){var n=xm({},(JH(e),e));return n._highlightResult&&(n._highlightResult=Wf(n._highlightResult)),n._snippetResult&&(n._snippetResult=Wf(n._snippetResult)),n}),t.__escaped=!0),t}function ax(t){var e=Qt.highlightPreTag,n=Qt.highlightPostTag;return t.map(function(r){return r.isHighlighted?e+r.value+n:r.value}).join("")}function n3(t,e,n){return t.state.isHierarchicalFacet(e)?t.state.isHierarchicalFacetRefined(e,n):t.state.isConjunctiveFacet(e)?t.state.isFacetRefined(e,n):t.state.isDisjunctiveFacetRefined(e,n)}function W_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function r3(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?W_(Object(n),!0).forEach(function(r){i3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):W_(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function i3(t,e,n){return e=o3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o3(t){var e=s3(t,"string");return gs(e)==="symbol"?e:String(e)}function s3(t,e){if(gs(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(gs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function gs(t){"@babel/helpers - typeof";return gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gs(t)}function a3(t,e){return f3(t)||u3(t,e)||c3(t,e)||l3()}function l3(){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 c3(t,e){if(t){if(typeof t=="string")return U_(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return U_(t,e)}}function U_(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u3(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==e);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}function f3(t){if(Array.isArray(t))return t}function d3(t){var e=t.instantSearchInstance,n=t.helper,r=t.attribute,i=t.widgetType,o=function(){for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];var u=l[1],f=l[2],h=f===void 0?"Filter Applied":f,d=l[3],p=d===void 0?{}:d,m=l[0].split(":"),g=a3(m,2),v=g[0],b=g[1],y=typeof r=="string"?r:r(u);l.length===1&&gs(l[0])==="object"?e.sendEventToInsights(l[0]):v==="click"&&l.length>=2&&l.length<=4&&(n3(n,y,u)||e.sendEventToInsights({insightsMethod:"clickedFilters",widgetType:i,eventType:v,eventModifier:b,payload:r3({eventName:h,index:n.getIndex(),filters:["".concat(y,":").concat(u)]},p),attribute:y}))};return o}function lx(t){return btoa(encodeURIComponent(JSON.stringify(t)))}function Q_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function qh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Q_(Object(n),!0).forEach(function(r){h3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Q_(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function h3(t,e,n){return e=p3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p3(t){var e=m3(t,"string");return vs(e)==="symbol"?e:String(e)}function m3(t,e){if(vs(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(vs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function g3(t,e){return _3(t)||b3(t,e)||y3(t,e)||v3()}function v3(){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 y3(t,e){if(t){if(typeof t=="string")return z_(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return z_(t,e)}}function z_(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function b3(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==e);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}function _3(t){if(Array.isArray(t))return t}function vs(t){"@babel/helpers - typeof";return vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vs(t)}function S3(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:20,n=[],r=0;r<Math.ceil(t.length/e);r++)n.push(t.slice(r*e,(r+1)*e));return n}function cx(t){var e=t.index,n=t.widgetType;t.methodName;var r=t.args,i=t.instantSearchInstance;if(r.length===1&&vs(r[0])==="object")return[r[0]];var o=r[0].split(":"),s=g3(o,2),a=s[0],l=s[1],c=r[1],u=r[2],f=r[3]||{};if(!c)return[];if((a==="click"||a==="conversion")&&!u)return[];var h=Array.isArray(c)?c:[c];if(h.length===0)return[];var d=h[0].__queryID,p=S3(h),m=p.map(function(v){return v.map(function(b){return b.objectID})}),g=p.map(function(v){return v.map(function(b){return b.__position})});return a==="view"?i.status!=="idle"?[]:p.map(function(v,b){return{insightsMethod:"viewedObjectIDs",widgetType:n,eventType:a,payload:qh({eventName:u||"Hits Viewed",index:e,objectIDs:m[b]},f),hits:v,eventModifier:l}}):a==="click"?p.map(function(v,b){return{insightsMethod:"clickedObjectIDsAfterSearch",widgetType:n,eventType:a,payload:qh({eventName:u||"Hit Clicked",index:e,queryID:d,objectIDs:m[b],positions:g[b]},f),hits:v,eventModifier:l}}):a==="conversion"?p.map(function(v,b){return{insightsMethod:"convertedObjectIDsAfterSearch",widgetType:n,eventType:a,payload:qh({eventName:u||"Hit Converted",index:e,queryID:d,objectIDs:m[b]},f),hits:v,eventModifier:l}}):[]}function w3(t){var e=t.instantSearchInstance,n=t.index,r=t.widgetType,i={},o=void 0,s=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var f=cx({widgetType:r,index:n,methodName:"sendEvent",args:c,instantSearchInstance:e});f.forEach(function(h){h.eventType==="click"&&h.eventModifier==="internal"&&i[h.eventType]||(i[h.eventType]=!0,e.sendEventToInsights(h))}),clearTimeout(o),o=setTimeout(function(){i={}},0)};return s}function A3(t){var e=t.index,n=t.widgetType,r=t.instantSearchInstance,i=function(){for(var s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];var c=cx({widgetType:n,index:e,methodName:"bindEvent",args:a,instantSearchInstance:r});return c.length?"data-insights-event=".concat(lx(c)):""};return i}function mo(t){return t.$$type==="ais.index"}function Cm(t,e){var n=t[e.getIndexId()]||{};e.getHelper().setState(e.getWidgetSearchParameters(e.getHelper().state,{uiState:n})),e.getWidgets().filter(mo).forEach(function(r){return Cm(t,r)})}var O3=Promise.resolve();function Gs(t){var e=null,n=!1,r=function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];e===null&&(e=O3.then(function(){if(e=null,n){n=!1;return}t.apply(void 0,s)}))};return r.wait=function(){if(e===null)throw new Error("The deferred function should be called before calling `wait()`");return e},r.cancel=function(){e!==null&&(n=!0)},r}function E3(t){var e=t.name,n=t.connector,r=n===void 0?!1:n;return["https://www.algolia.com/doc/api-reference/widgets/",e,"/js/",r?"#connector":""].join("")}function tn(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e.map(function(i){return E3(i)}).join(", ");return function(i){return[i,"See documentation: ".concat(r)].filter(Boolean).join(` `)}}function P3(t){return typeof t=="string"?t.replace(/^\\-/,"-"):t}function x3(t){return typeof t=="number"&&t<0||typeof t=="string"?String(t).replace(/^-/,"\\-"):t}function Uf(t,e){for(var n,r=0;r<t.length;r++)if(n=t[r],e(n,r,t))return n}function C3(t,e){if(!Array.isArray(t))return-1;for(var n=0;n<t.length;n++)if(e(t[n]))return n;return-1}function T3(t){if(t.transporter){var e=t.transporter,n=e.headers,r=e.queryParameters,i="x-algolia-application-id",o="x-algolia-api-key",s=n[i]||r[i],a=n[o]||r[o];return[s,a]}else return[t.applicationID,t.apiKey]}function I3(t){return t instanceof HTMLElement||!!t&&t.nodeType>0}function Rl(t){var e=typeof t=="string",n=e?document.querySelector(t):t;if(!I3(n)){var r="Container must be `string` or `HTMLElement`.";throw e&&(r+=" Unable to find ".concat(t)),new Error(r)}return n}function Ns(t){var e=Qt.highlightPostTag,n=Qt.highlightPreTag,r=t.split(n),i=r.shift(),o=i?[{value:i,isHighlighted:!1}]:[];return r.forEach(function(s){var a=s.split(e);o.push({value:a[0],isHighlighted:!0}),a[1]!==""&&o.push({value:a[1],isHighlighted:!1})}),o}var R3=new RegExp(/\w/i);function $3(t,e){var n,r,i=t[e],o=((n=t[e+1])===null||n===void 0?void 0:n.isHighlighted)||!0,s=((r=t[e-1])===null||r===void 0?void 0:r.isHighlighted)||!0;return!R3.test(kc(i.value))&&s===o?s:i.isHighlighted}function hi(t,e){var n=Array.isArray(e)?e:e.split(".");return n.reduce(function(r,i){return r&&r[i]},t)}function Wh(t,e,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],o={type:e,attribute:n,name:r,escapedValue:x3(r)},s=Uf(i,function(d){return d.name===n}),a;if(e==="hierarchical"){for(var l=t.getHierarchicalFacetByName(n),c=r.split(l.separator),u=function(p){return function(m){return p[m]}},f=function(p){s=s&&s.data&&Uf(Object.keys(s.data).map(u(s.data)),function(m){return m.name===c[p]})},h=0;s!==void 0&&h<c.length;++h)f(h);a=s&&s.count}else a=s&&s.data&&s.data[o.name];return a!==void 0&&(o.count=a),s&&s.exhaustive!==void 0&&(o.exhaustive=s.exhaustive),o}function V3(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=[],i=e.facetsRefinements,o=i===void 0?{}:i,s=e.facetsExcludes,a=s===void 0?{}:s,l=e.disjunctiveFacetsRefinements,c=l===void 0?{}:l,u=e.hierarchicalFacetsRefinements,f=u===void 0?{}:u,h=e.numericRefinements,d=h===void 0?{}:h,p=e.tagRefinements,m=p===void 0?[]:p;return Object.keys(o).forEach(function(g){var v=o[g];v.forEach(function(b){r.push(Wh(e,"facet",g,b,t.facets))})}),Object.keys(a).forEach(function(g){var v=a[g];v.forEach(function(b){r.push({type:"exclude",attribute:g,name:b,exclude:!0})})}),Object.keys(c).forEach(function(g){var v=c[g];v.forEach(function(b){r.push(Wh(e,"disjunctive",g,P3(b),t.disjunctiveFacets))})}),Object.keys(f).forEach(function(g){var v=f[g];v.forEach(function(b){r.push(Wh(e,"hierarchical",g,b,t.hierarchicalFacets))})}),Object.keys(d).forEach(function(g){var v=d[g];Object.keys(v).forEach(function(b){var y=b,_=v[y],A=Array.isArray(_)?_:[_];A.forEach(function(C){r.push({type:"numeric",attribute:g,name:"".concat(C),numericValue:C,operator:y})})})}),m.forEach(function(g){r.push({type:"tag",attribute:"_tags",name:g})}),n&&e.query&&e.query.trim()&&r.push({attribute:"query",type:"query",name:e.query,query:e.query}),r}function $l(t){"@babel/helpers - typeof";return $l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$l(t)}function K_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function G_(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?K_(Object(n),!0).forEach(function(r){j3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):K_(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function j3(t,e,n){return e=N3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function N3(t){var e=L3(t,"string");return $l(e)==="symbol"?e:String(e)}function L3(t,e){if($l(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if($l(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function F3(t,e,n){return t.map(function(r,i){return G_(G_({},r),{},{__position:n*e+i+1})})}function Vl(t){"@babel/helpers - typeof";return Vl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vl(t)}function Y_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function J_(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Y_(Object(n),!0).forEach(function(r){D3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y_(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function D3(t,e,n){return e=M3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function M3(t){var e=k3(t,"string");return Vl(e)==="symbol"?e:String(e)}function k3(t,e){if(Vl(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Vl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function B3(t,e){return e?t.map(function(n){return J_(J_({},n),{},{__queryID:e})}):t}function jl(t){"@babel/helpers - typeof";return jl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jl(t)}function H3(t,e){return Q3(t)||U3(t,e)||W3(t,e)||q3()}function q3(){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 W3(t,e){if(t){if(typeof t=="string")return Z_(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Z_(t,e)}}function Z_(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function U3(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==e);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}function Q3(t){if(Array.isArray(t))return t}function X_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ys(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?X_(Object(n),!0).forEach(function(r){ux(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):X_(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ux(t,e,n){return e=z3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function z3(t){var e=K3(t,"string");return jl(e)==="symbol"?e:String(e)}function K3(t,e){if(jl(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(jl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function G3(t,e){if(e&&!((!("transporter"in t)||t._cacheHydrated)&&(!t._useCache||typeof t.addAlgoliaAgent!="function"))){var n=Object.keys(e).map(function(s){var a=e[s],l=a.state,c=a.requestParams,u=a.results;return u.map(function(f){return Ys({indexName:l.index||f.index},c||f.params?{params:eS(c||Y3(f.params))}:{})})}),r=Object.keys(e).reduce(function(s,a){return s.concat(e[a].results)},[]);if("transporter"in t&&!t._cacheHydrated){t._cacheHydrated=!0;var i=t.search;t.search=function(s){for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];var u=s.map(function(f){return Ys(Ys({},f),{},{params:eS(f.params)})});return t.transporter.responsesCache.get({method:"search",args:[u].concat(l)},function(){return i.apply(void 0,[s].concat(l))})},t.transporter.responsesCache.set({method:"search",args:n},{results:r})}if(!("transporter"in t)){var o="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:n}));t.cache=Ys(Ys({},t.cache),{},ux({},o,JSON.stringify({results:Object.keys(e).map(function(s){return e[s].results})})))}}}function Y3(t){return t.split("&").reduce(function(e,n){var r=n.split("="),i=H3(r,2),o=i[0],s=i[1];return e[o]=s?decodeURIComponent(s):"",e},{})}function eS(t){var e=function(i){return Object.prototype.toString.call(i)==="[object Object]"||Object.prototype.toString.call(i)==="[object Array]"},n=function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];var l=0;return i.replace(/%s/g,function(){return encodeURIComponent(s[l++])})};return Object.keys(t).map(function(r){return n("%s=%s",r,e(t[r])?JSON.stringify(t[r]):t[r])}).join("&")}function tS(t){return t!==Object(t)}function Nl(t,e){if(t===e)return!0;if(tS(t)||tS(e)||typeof t=="function"||typeof e=="function")return t===e;if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];if(!(i in e)||!Nl(t[i],e[i]))return!1}return!0}function J3(t){var e=t.button===1;return e||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey}function ty(t){return t.filter(function(e,n,r){return r.indexOf(e)===n})}function Ll(t){"@babel/helpers - typeof";return Ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ll(t)}var Z3=["facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements","ruleContexts"];function nS(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function er(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?nS(Object(n),!0).forEach(function(r){X3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nS(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function X3(t,e,n){return e=eq(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function eq(t){var e=tq(t,"string");return Ll(e)==="symbol"?e:String(e)}function tq(t,e){if(Ll(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ll(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function nq(t,e){if(t==null)return{};var n=rq(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function rq(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var iq=function(e,n){n.facets,n.disjunctiveFacets,n.facetsRefinements,n.facetsExcludes,n.disjunctiveFacetsRefinements,n.numericRefinements,n.tagRefinements,n.hierarchicalFacets,n.hierarchicalFacetsRefinements,n.ruleContexts;var r=nq(n,Z3);return e.setQueryParameters(r)},oq=function(e,n){return n.facets.reduce(function(r,i){return r.addFacet(i)},e)},sq=function(e,n){return n.disjunctiveFacets.reduce(function(r,i){return r.addDisjunctiveFacet(i)},e)},aq=function(e,n){return e.setQueryParameters({hierarchicalFacets:n.hierarchicalFacets.reduce(function(r,i){var o=C3(r,function(a){return a.name===i.name});if(o===-1)return r.concat(i);var s=r.slice();return s.splice(o,1,i),s},e.hierarchicalFacets)})},lq=function(e,n){return n.tagRefinements.reduce(function(r,i){return r.addTagRefinement(i)},e)},cq=function(e,n){return e.setQueryParameters({facetsRefinements:er(er({},e.facetsRefinements),n.facetsRefinements)})},uq=function(e,n){return e.setQueryParameters({facetsExcludes:er(er({},e.facetsExcludes),n.facetsExcludes)})},fq=function(e,n){return e.setQueryParameters({disjunctiveFacetsRefinements:er(er({},e.disjunctiveFacetsRefinements),n.disjunctiveFacetsRefinements)})},dq=function(e,n){return e.setQueryParameters({numericRefinements:er(er({},e.numericRefinements),n.numericRefinements)})},hq=function(e,n){return e.setQueryParameters({hierarchicalFacetsRefinements:er(er({},e.hierarchicalFacetsRefinements),n.hierarchicalFacetsRefinements)})},pq=function(e,n){var r=ty([].concat(e.ruleContexts).concat(n.ruleContexts).filter(Boolean));return r.length>0?e.setQueryParameters({ruleContexts:r}):e},xa=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.reduce(function(i,o){var s=hq(i,o),a=aq(s,o),l=lq(a,o),c=dq(l,o),u=fq(c,o),f=uq(u,o),h=cq(f,o),d=sq(h,o),p=pq(d,o),m=oq(p,o);return iq(m,o)})};function mq(t){return bq(t)||yq(t)||vq(t)||gq()}function gq(){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 vq(t,e){if(t){if(typeof t=="string")return Tm(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tm(t,e)}}function yq(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function bq(t){if(Array.isArray(t))return Tm(t)}function Tm(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function rS(t){var e=t.start,n=e===void 0?0:e,r=t.end,i=t.step,o=i===void 0?1:i,s=o===0?1:o,a=Math.round((r-n)/s);return mq(Array(a)).map(function(l,c){return n+c*s})}function aa(t,e,n){var r=e.getHelper();return{uiState:n,helper:r,parent:e,instantSearchInstance:t,state:r.state,renderState:t.renderState,templatesConfig:t.templatesConfig,createURL:e.createURL,scopedResults:[],searchMetadata:{isSearchStalled:t.status==="stalled"},status:t.status,error:t.error}}function iS(t,e){var n=e.getResults(),r=e.getHelper();return{helper:r,parent:e,instantSearchInstance:t,results:n,scopedResults:e.getScopedResults(),state:n?n._state:r.state,renderState:t.renderState,templatesConfig:t.templatesConfig,createURL:e.createURL,searchMetadata:{isSearchStalled:t.status==="stalled"},status:t.status,error:t.error}}function _q(t){for(var e=t.getParent(),n=[t.getHelper().state];e!==null;)n=[e.getHelper().state].concat(n),e=e.getParent();return n}function Fl(t){"@babel/helpers - typeof";return Fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fl(t)}function oS(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Lu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?oS(Object(n),!0).forEach(function(r){Sq(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oS(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Sq(t,e,n){return e=wq(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wq(t){var e=Aq(t,"string");return Fl(e)==="symbol"?e:String(e)}function Aq(t,e){if(Fl(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Fl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function fx(t){return t.some(function(e){return e.isHighlighted})?t.map(function(e,n){return Lu(Lu({},e),{},{isHighlighted:!$3(t,n)})}):t.map(function(e){return Lu(Lu({},e),{},{isHighlighted:!1})})}function Qn(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{fallback:function(){}},n=e.fallback;return typeof window>"u"?n():t({window})}function Qd(t){return Array.isArray(t)?t:[t]}var Oq=di("Highlight");function dx(t){var e=t.attribute,n=t.highlightedTagName,r=n===void 0?"mark":n,i=t.hit,o=t.cssClasses,s=o===void 0?{}:o,a=hi(i._highlightResult,e),l=a||{},c=l.value,u=c===void 0?"":c,f=Oq({descendantName:"highlighted"})+(s.highlighted?" ".concat(s.highlighted):"");return u.replace(new RegExp(Qt.highlightPreTag,"g"),"<".concat(r,' class="').concat(f,'">')).replace(new RegExp(Qt.highlightPostTag,"g"),"</".concat(r,">"))}var Eq=di("ReverseHighlight");function hx(t){var e=t.attribute,n=t.highlightedTagName,r=n===void 0?"mark":n,i=t.hit,o=t.cssClasses,s=o===void 0?{}:o,a=hi(i._highlightResult,e),l=a||{},c=l.value,u=c===void 0?"":c,f=Eq({descendantName:"highlighted"})+(s.highlighted?" ".concat(s.highlighted):""),h=ax(fx(Ns(u)));return h.replace(new RegExp(Qt.highlightPreTag,"g"),"<".concat(r,' class="').concat(f,'">')).replace(new RegExp(Qt.highlightPostTag,"g"),"</".concat(r,">"))}var Pq=di("Snippet");function px(t){var e=t.attribute,n=t.highlightedTagName,r=n===void 0?"mark":n,i=t.hit,o=t.cssClasses,s=o===void 0?{}:o,a=hi(i._snippetResult,e),l=a||{},c=l.value,u=c===void 0?"":c,f=Pq({descendantName:"highlighted"})+(s.highlighted?" ".concat(s.highlighted):"");return u.replace(new RegExp(Qt.highlightPreTag,"g"),"<".concat(r,' class="').concat(f,'">')).replace(new RegExp(Qt.highlightPostTag,"g"),"</".concat(r,">"))}var xq=di("ReverseSnippet");function mx(t){var e=t.attribute,n=t.highlightedTagName,r=n===void 0?"mark":n,i=t.hit,o=t.cssClasses,s=o===void 0?{}:o,a=hi(i._snippetResult,e),l=a||{},c=l.value,u=c===void 0?"":c,f=xq({descendantName:"highlighted"})+(s.highlighted?" ".concat(s.highlighted):""),h=ax(fx(Ns(u)));return h.replace(new RegExp(Qt.highlightPreTag,"g"),"<".concat(r,' class="').concat(f,'">')).replace(new RegExp(Qt.highlightPostTag,"g"),"</".concat(r,">"))}function Im(t){"@babel/helpers - typeof";return Im=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Im(t)}function Cq(t){var e=t.method,n=t.payload;if(Im(n)!=="object")throw new Error("The insights helper expects the payload to be an object.");var r;try{r=lx(n)}catch{throw new Error("Could not JSON serialize the payload object.")}return'data-insights-method="'.concat(e,'" data-insights-payload="').concat(r,'"')}function gx(t,e){return Cq({method:t,payload:e})}function Rm(t){"@babel/helpers - typeof";return Rm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rm(t)}var Tq="_ALGOLIA";function Iq(t){if(!((typeof document>"u"?"undefined":Rm(document))!=="object"||typeof document.cookie!="string"))for(var e="".concat(t,"="),n=document.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];i.charAt(0)===" ";)i=i.substring(1);if(i.indexOf(e)===0)return i.substring(e.length,i.length)}}function vx(){return Iq(Tq)}function Rq(){return vx()}var $q=["page"];function Vq(t,e){if(t==null)return{};var n=jq(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function jq(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function sS(t){var e=t||{};e.page;var n=Vq(e,$q);return n}var Uh="ais.infiniteHits";function Nq(){return{read:function(e){var n=e.state,r=Qn(function(o){var s=o.window;return s.sessionStorage});if(!r)return null;try{var i=JSON.parse(r.getItem(Uh));return i&&Nl(i.state,sS(n))?i.hits:null}catch(o){if(o instanceof SyntaxError)try{r.removeItem(Uh)}catch{}return null}},write:function(e){var n=e.state,r=e.hits,i=Qn(function(o){var s=o.window;return s.sessionStorage});if(i)try{i.setItem(Uh,JSON.stringify({state:sS(n),hits:r}))}catch{}}}}function Tt(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}var ny=Tt;Tt.prototype._events=void 0;Tt.prototype._maxListeners=void 0;Tt.defaultMaxListeners=10;Tt.prototype.setMaxListeners=function(t){if(!Lq(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this};Tt.prototype.emit=function(t){var e,n,r,i,o,s;if(this._events||(this._events={}),t==="error"&&(!this._events.error||Dl(this._events.error)&&!this._events.error.length)){if(e=arguments[1],e instanceof Error)throw e;var a=new Error('Uncaught, unspecified "error" event. ('+e+")");throw a.context=e,a}if(n=this._events[t],yx(n))return!1;if(Ar(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),n.apply(this,i)}else if(Dl(n))for(i=Array.prototype.slice.call(arguments,1),s=n.slice(),r=s.length,o=0;o<r;o++)s[o].apply(this,i);return!0};Tt.prototype.addListener=function(t,e){var n;if(!Ar(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,Ar(e.listener)?e.listener:e),this._events[t]?Dl(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,Dl(this._events[t])&&!this._events[t].warned&&(yx(this._maxListeners)?n=Tt.defaultMaxListeners:n=this._maxListeners,n&&n>0&&this._events[t].length>n&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),typeof console.trace=="function"&&console.trace())),this};Tt.prototype.on=Tt.prototype.addListener;Tt.prototype.once=function(t,e){if(!Ar(e))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(t,r),n||(n=!0,e.apply(this,arguments))}return r.listener=e,this.on(t,r),this};Tt.prototype.removeListener=function(t,e){var n,r,i,o;if(!Ar(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(n=this._events[t],i=n.length,r=-1,n===e||Ar(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(Dl(n)){for(o=i;o-- >0;)if(n[o]===e||n[o].listener&&n[o].listener===e){r=o;break}if(r<0)return this;n.length===1?(n.length=0,delete this._events[t]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this};Tt.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[t]&&delete this._events[t],this;if(arguments.length===0){for(e in this._events)e!=="removeListener"&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[t],Ar(n))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this};Tt.prototype.listeners=function(t){var e;return!this._events||!this._events[t]?e=[]:Ar(this._events[t])?e=[this._events[t]]:e=this._events[t].slice(),e};Tt.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(Ar(e))return 1;if(e)return e.length}return 0};Tt.listenerCount=function(t,e){return t.listenerCount(e)};function Ar(t){return typeof t=="function"}function Lq(t){return typeof t=="number"}function Dl(t){return typeof t=="object"&&t!==null}function yx(t){return t===void 0}const Fq=Ps(ny);function Dq(t,e){t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}var bx=Dq,Mq=ny,kq=bx;function zd(t,e){this.main=t,this.fn=e,this.lastResults=null}kq(zd,Mq);zd.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)};zd.prototype.getModifiedState=function(t){return this.fn(t)};var Bq=zd;function Hq(t){return typeof t!="string"?t:String(t).replace(/^-/,"\\-")}function qq(t){return typeof t!="string"?t:t.replace(/^\\-/,"-")}var ry={escapeFacetValue:Hq,unescapeFacetValue:qq};function Wq(t){return typeof t=="object"&&t!==null?iy(Array.isArray(t)?[]:{},t):t}function Qf(t){return typeof t=="function"||Array.isArray(t)||Object.prototype.toString.call(t)==="[object Object]"}function iy(t,e){if(t===e)return t;for(var n in e)if(!(!Object.prototype.hasOwnProperty.call(e,n)||n==="__proto__"||n==="constructor")){var r=e[n],i=t[n];typeof i<"u"&&typeof r>"u"||(Qf(i)&&Qf(r)?t[n]=iy(i,r):t[n]=Wq(r))}return t}function Uq(t){Qf(t)||(t={});for(var e=1,n=arguments.length;e<n;e++){var r=arguments[e];Qf(r)&&iy(t,r)}return t}var Kd=Uq;function Qq(t){return t&&Object.keys(t).length>0}var oy=Qq;function zq(t,e){if(t===null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var sy=zq,Qh=Kd;function zh(t){return Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e},{})}var zt={_getQueries:function(e,n){var r=[];return r.push({indexName:e,params:zt._getHitsSearchParams(n)}),n.getRefinedDisjunctiveFacets().forEach(function(i){r.push({indexName:e,params:zt._getDisjunctiveFacetSearchParams(n,i)})}),n.getRefinedHierarchicalFacets().forEach(function(i){var o=n.getHierarchicalFacetByName(i),s=n.getHierarchicalRefinement(i),a=n._getHierarchicalFacetSeparator(o);if(s.length>0&&s[0].split(a).length>1){var l=s[0].split(a).slice(0,-1).reduce(function(u,f,h){return u.concat({attribute:o.attributes[h],value:h===0?f:[u[u.length-1].value,f].join(a)})},[]);l.forEach(function(c,u){var f=zt._getDisjunctiveFacetSearchParams(n,c.attribute,u===0);function h(m){return o.attributes.some(function(g){return g===m.split(":")[0]})}var d=(f.facetFilters||[]).reduce(function(m,g){if(Array.isArray(g)){var v=g.filter(function(b){return!h(b)});v.length>0&&m.push(v)}return typeof g=="string"&&!h(g)&&m.push(g),m},[]),p=l[u-1];u>0?f.facetFilters=d.concat(p.attribute+":"+p.value):f.facetFilters=d.length>0?d:void 0,r.push({indexName:e,params:f})})}}),r},_getHitsSearchParams:function(t){var e=t.facets.concat(t.disjunctiveFacets).concat(zt._getHitsHierarchicalFacetsAttributes(t)).sort(),n=zt._getFacetFilters(t),r=zt._getNumericFilters(t),i=zt._getTagFilters(t),o={facets:e.indexOf("*")>-1?["*"]:e,tagFilters:i};return n.length>0&&(o.facetFilters=n),r.length>0&&(o.numericFilters=r),zh(Qh({},t.getQueryParams(),o))},_getDisjunctiveFacetSearchParams:function(t,e,n){var r=zt._getFacetFilters(t,e,n),i=zt._getNumericFilters(t,e),o=zt._getTagFilters(t),s={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};o.length>0&&(s.tagFilters=o);var a=t.getHierarchicalFacetByName(e);return a?s.facets=zt._getDisjunctiveHierarchicalFacetAttribute(t,a,n):s.facets=e,i.length>0&&(s.numericFilters=i),r.length>0&&(s.facetFilters=r),zh(Qh({},t.getQueryParams(),s))},_getNumericFilters:function(t,e){if(t.numericFilters)return t.numericFilters;var n=[];return Object.keys(t.numericRefinements).forEach(function(r){var i=t.numericRefinements[r]||{};Object.keys(i).forEach(function(o){var s=i[o]||[];e!==r&&s.forEach(function(a){if(Array.isArray(a)){var l=a.map(function(c){return r+o+c});n.push(l)}else n.push(r+o+a)})})}),n},_getTagFilters:function(t){return t.tagFilters?t.tagFilters:t.tagRefinements.join(",")},_getFacetFilters:function(t,e,n){var r=[],i=t.facetsRefinements||{};Object.keys(i).sort().forEach(function(l){var c=i[l]||[];c.slice().sort().forEach(function(u){r.push(l+":"+u)})});var o=t.facetsExcludes||{};Object.keys(o).sort().forEach(function(l){var c=o[l]||[];c.sort().forEach(function(u){r.push(l+":-"+u)})});var s=t.disjunctiveFacetsRefinements||{};Object.keys(s).sort().forEach(function(l){var c=s[l]||[];if(!(l===e||!c||c.length===0)){var u=[];c.slice().sort().forEach(function(f){u.push(l+":"+f)}),r.push(u)}});var a=t.hierarchicalFacetsRefinements||{};return Object.keys(a).sort().forEach(function(l){var c=a[l]||[],u=c[0];if(u!==void 0){var f=t.getHierarchicalFacetByName(l),h=t._getHierarchicalFacetSeparator(f),d=t._getHierarchicalRootPath(f),p,m;if(e===l){if(u.indexOf(h)===-1||!d&&n===!0||d&&d.split(h).length===u.split(h).length)return;d?(m=d.split(h).length-1,u=d):(m=u.split(h).length-2,u=u.slice(0,u.lastIndexOf(h))),p=f.attributes[m]}else m=u.split(h).length-1,p=f.attributes[m];p&&r.push([p+":"+u])}}),r},_getHitsHierarchicalFacetsAttributes:function(t){var e=[];return t.hierarchicalFacets.reduce(function(r,i){var o=t.getHierarchicalRefinement(i.name)[0];if(!o)return r.push(i.attributes[0]),r;var s=t._getHierarchicalFacetSeparator(i),a=o.split(s).length,l=i.attributes.slice(0,a+1);return r.concat(l)},e)},_getDisjunctiveHierarchicalFacetAttribute:function(t,e,n){var r=t._getHierarchicalFacetSeparator(e);if(n===!0){var i=t._getHierarchicalRootPath(e),o=0;return i&&(o=i.split(r).length),[e.attributes[o]]}var s=t.getHierarchicalRefinement(e.name)[0]||"",a=s.split(r).length-1;return e.attributes.slice(0,a+1)},getSearchForFacetQuery:function(t,e,n,r){var i=r.isDisjunctiveFacet(t)?r.clearRefinements(t):r,o={facetQuery:e,facetName:t};return typeof n=="number"&&(o.maxFacetHits=n),zh(Qh({},zt._getHitsSearchParams(i),o))}},Kq=zt,ay=function(){var e=Array.prototype.slice.call(arguments);return e.reduceRight(function(n,r){return Object.keys(Object(r)).forEach(function(i){r[i]!==void 0&&(n[i]!==void 0&&delete n[i],n[i]=r[i])}),n},{})},Gd=function(e,n){if(Array.isArray(e)){for(var r=0;r<e.length;r++)if(n(e[r]))return e[r]}};function Gq(t,e){return t.filter(function(n,r){return e.indexOf(n)>-1&&t.indexOf(n)===r})}var Yq=Gq;function _x(t){if(typeof t=="number")return t;if(typeof t=="string")return parseFloat(t);if(Array.isArray(t))return t.map(_x);throw new Error("The value should be a number, a parsable string or an array of those.")}var Jq=_x,Zq=function(e){return e===null?!1:/^[a-zA-Z0-9_-]{1,64}$/.test(e)},Xq=ay,e5=oy,t5=sy,Ii={addRefinement:function(e,n,r){if(Ii.isRefined(e,n,r))return e;var i=""+r,o=e[n]?e[n].concat(i):[i],s={};return s[n]=o,Xq({},s,e)},removeRefinement:function(e,n,r){if(r===void 0)return Ii.clearRefinement(e,function(o,s){return n===s});var i=""+r;return Ii.clearRefinement(e,function(o,s){return n===s&&i===o})},toggleRefinement:function(e,n,r){if(r===void 0)throw new Error("toggleRefinement should be used with a value");return Ii.isRefined(e,n,r)?Ii.removeRefinement(e,n,r):Ii.addRefinement(e,n,r)},clearRefinement:function(e,n,r){if(n===void 0)return e5(e)?{}:e;if(typeof n=="string")return t5(e,[n]);if(typeof n=="function"){var i=!1,o=Object.keys(e).reduce(function(s,a){var l=e[a]||[],c=l.filter(function(u){return!n(u,a,r)});return c.length!==l.length&&(i=!0),s[a]=c,s},{});return i?o:e}},isRefined:function(e,n,r){var i=!!e[n]&&e[n].length>0;if(r===void 0||!i)return i;var o=""+r;return e[n].indexOf(o)!==-1}},n5=Ii,Kh=ay,Sx=Gd,aS=Yq,$m=Kd,Vm=oy,lS=sy,Gh=Jq,r5=Zq,Ge=n5;function ly(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&t.every(function(n,r){return ly(e[r],n)}):t===e}function i5(t,e){return Sx(t,function(n){return ly(n,e)})}function Bt(t){var e=t?Bt._parseNumbers(t):{};e.userToken!==void 0&&!r5(e.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=e.facets||[],this.disjunctiveFacets=e.disjunctiveFacets||[],this.hierarchicalFacets=e.hierarchicalFacets||[],this.facetsRefinements=e.facetsRefinements||{},this.facetsExcludes=e.facetsExcludes||{},this.disjunctiveFacetsRefinements=e.disjunctiveFacetsRefinements||{},this.numericRefinements=e.numericRefinements||{},this.tagRefinements=e.tagRefinements||[],this.hierarchicalFacetsRefinements=e.hierarchicalFacetsRefinements||{};var n=this;Object.keys(e).forEach(function(r){var i=Bt.PARAMETERS.indexOf(r)!==-1,o=e[r]!==void 0;!i&&o&&(n[r]=e[r])})}Bt.PARAMETERS=Object.keys(new Bt);Bt._parseNumbers=function(t){if(t instanceof Bt)return t;var e={},n=["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"];if(n.forEach(function(i){var o=t[i];if(typeof o=="string"){var s=parseFloat(o);e[i]=isNaN(s)?o:s}}),Array.isArray(t.insideBoundingBox)&&(e.insideBoundingBox=t.insideBoundingBox.map(function(i){return Array.isArray(i)?i.map(function(o){return parseFloat(o)}):i})),t.numericRefinements){var r={};Object.keys(t.numericRefinements).forEach(function(i){var o=t.numericRefinements[i]||{};r[i]={},Object.keys(o).forEach(function(s){var a=o[s],l=a.map(function(c){return Array.isArray(c)?c.map(function(u){return typeof u=="string"?parseFloat(u):u}):typeof c=="string"?parseFloat(c):c});r[i][s]=l})}),e.numericRefinements=r}return $m(t,e)};Bt.make=function(e){var n=new Bt(e),r=e.hierarchicalFacets||[];return r.forEach(function(i){if(i.rootPath){var o=n.getHierarchicalRefinement(i.name);o.length>0&&o[0].indexOf(i.rootPath)!==0&&(n=n.clearRefinements(i.name)),o=n.getHierarchicalRefinement(i.name),o.length===0&&(n=n.toggleHierarchicalFacetRefinement(i.name,i.rootPath))}}),n};Bt.validate=function(t,e){var n=e||{};return t.tagFilters&&n.tagRefinements&&n.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."):t.tagRefinements.length>0&&n.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."):t.numericFilters&&n.numericRefinements&&Vm(n.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."):Vm(t.numericRefinements)&&n.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};Bt.prototype={constructor:Bt,clearRefinements:function(e){var n={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:Ge.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:Ge.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:Ge.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:Ge.clearRefinement(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return n.numericRefinements===this.numericRefinements&&n.facetsRefinements===this.facetsRefinements&&n.facetsExcludes===this.facetsExcludes&&n.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&n.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(n)},clearTags:function(){return this.tagFilters===void 0&&this.tagRefinements.length===0?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(t,e,n){var r=Gh(n);if(this.isNumericRefined(t,e,r))return this;var i=$m({},this.numericRefinements);return i[t]=$m({},i[t]),i[t][e]?(i[t][e]=i[t][e].slice(),i[t][e].push(r)):i[t][e]=[r],this.setQueryParameters({numericRefinements:i})},getConjunctiveRefinements:function(t){return this.isConjunctiveFacet(t)?this.facetsRefinements[t]||[]:[]},getDisjunctiveRefinements:function(t){return this.isDisjunctiveFacet(t)?this.disjunctiveFacetsRefinements[t]||[]:[]},getHierarchicalRefinement:function(t){return this.hierarchicalFacetsRefinements[t]||[]},getExcludeRefinements:function(t){return this.isConjunctiveFacet(t)?this.facetsExcludes[t]||[]:[]},removeNumericRefinement:function(t,e,n){var r=n;return r!==void 0?this.isNumericRefined(t,e,r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(i,o){return o===t&&i.op===e&&ly(i.val,Gh(r))})}):this:e!==void 0?this.isNumericRefined(t,e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(i,o){return o===t&&i.op===e})}):this:this.isNumericRefined(t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(i,o){return o===t})}):this},getNumericRefinements:function(t){return this.numericRefinements[t]||{}},getNumericRefinement:function(t,e){return this.numericRefinements[t]&&this.numericRefinements[t][e]},_clearNumericRefinements:function(e){if(e===void 0)return Vm(this.numericRefinements)?{}:this.numericRefinements;if(typeof e=="string")return lS(this.numericRefinements,[e]);if(typeof e=="function"){var n=!1,r=this.numericRefinements,i=Object.keys(r).reduce(function(o,s){var a=r[s],l={};return a=a||{},Object.keys(a).forEach(function(c){var u=a[c]||[],f=[];u.forEach(function(h){var d=e({val:h,op:c},s,"numeric");d||f.push(h)}),f.length!==u.length&&(n=!0),l[c]=f}),o[s]=l,o},{});return n?i:this.numericRefinements}},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,n){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return Ge.isRefined(this.facetsRefinements,e,n)?this:this.setQueryParameters({facetsRefinements:Ge.addRefinement(this.facetsRefinements,e,n)})},addExcludeRefinement:function(e,n){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return Ge.isRefined(this.facetsExcludes,e,n)?this:this.setQueryParameters({facetsExcludes:Ge.addRefinement(this.facetsExcludes,e,n)})},addDisjunctiveFacetRefinement:function(e,n){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return Ge.isRefined(this.disjunctiveFacetsRefinements,e,n)?this:this.setQueryParameters({disjunctiveFacetsRefinements:Ge.addRefinement(this.disjunctiveFacetsRefinements,e,n)})},addTagRefinement:function(e){if(this.isTagRefined(e))return this;var n={tagRefinements:this.tagRefinements.concat(e)};return this.setQueryParameters(n)},removeFacet:function(e){return this.isConjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({facets:this.facets.filter(function(n){return n!==e})}):this},removeDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter(function(n){return n!==e})}):this},removeHierarchicalFacet:function(e){return this.isHierarchicalFacet(e)?this.clearRefinements(e).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter(function(n){return n.name!==e})}):this},removeFacetRefinement:function(e,n){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return Ge.isRefined(this.facetsRefinements,e,n)?this.setQueryParameters({facetsRefinements:Ge.removeRefinement(this.facetsRefinements,e,n)}):this},removeExcludeRefinement:function(e,n){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return Ge.isRefined(this.facetsExcludes,e,n)?this.setQueryParameters({facetsExcludes:Ge.removeRefinement(this.facetsExcludes,e,n)}):this},removeDisjunctiveFacetRefinement:function(e,n){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return Ge.isRefined(this.disjunctiveFacetsRefinements,e,n)?this.setQueryParameters({disjunctiveFacetsRefinements:Ge.removeRefinement(this.disjunctiveFacetsRefinements,e,n)}):this},removeTagRefinement:function(e){if(!this.isTagRefined(e))return this;var n={tagRefinements:this.tagRefinements.filter(function(r){return r!==e})};return this.setQueryParameters(n)},toggleRefinement:function(e,n){return this.toggleFacetRefinement(e,n)},toggleFacetRefinement:function(e,n){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,n);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,n);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,n);throw new Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,n){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:Ge.toggleRefinement(this.facetsRefinements,e,n)})},toggleExcludeFacetRefinement:function(e,n){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:Ge.toggleRefinement(this.facetsExcludes,e,n)})},toggleDisjunctiveFacetRefinement:function(e,n){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:Ge.toggleRefinement(this.disjunctiveFacetsRefinements,e,n)})},toggleHierarchicalFacetRefinement:function(e,n){if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),i={},o=this.hierarchicalFacetsRefinements[e]!==void 0&&this.hierarchicalFacetsRefinements[e].length>0&&(this.hierarchicalFacetsRefinements[e][0]===n||this.hierarchicalFacetsRefinements[e][0].indexOf(n+r)===0);return o?n.indexOf(r)===-1?i[e]=[]:i[e]=[n.slice(0,n.lastIndexOf(r))]:i[e]=[n],this.setQueryParameters({hierarchicalFacetsRefinements:Kh({},i,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(t,e){if(this.isHierarchicalFacetRefined(t))throw new Error(t+" is already refined.");if(!this.isHierarchicalFacet(t))throw new Error(t+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var n={};return n[t]=[e],this.setQueryParameters({hierarchicalFacetsRefinements:Kh({},n,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(t){if(!this.isHierarchicalFacetRefined(t))return this;var e={};return e[t]=[],this.setQueryParameters({hierarchicalFacetsRefinements:Kh({},e,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(t){return this.disjunctiveFacets.indexOf(t)>-1},isHierarchicalFacet:function(t){return this.getHierarchicalFacetByName(t)!==void 0},isConjunctiveFacet:function(t){return this.facets.indexOf(t)>-1},isFacetRefined:function(e,n){return this.isConjunctiveFacet(e)?Ge.isRefined(this.facetsRefinements,e,n):!1},isExcludeRefined:function(e,n){return this.isConjunctiveFacet(e)?Ge.isRefined(this.facetsExcludes,e,n):!1},isDisjunctiveFacetRefined:function(e,n){return this.isDisjunctiveFacet(e)?Ge.isRefined(this.disjunctiveFacetsRefinements,e,n):!1},isHierarchicalFacetRefined:function(e,n){if(!this.isHierarchicalFacet(e))return!1;var r=this.getHierarchicalRefinement(e);return n?r.indexOf(n)!==-1:r.length>0},isNumericRefined:function(e,n,r){if(r===void 0&&n===void 0)return!!this.numericRefinements[e];var i=this.numericRefinements[e]&&this.numericRefinements[e][n]!==void 0;if(r===void 0||!i)return i;var o=Gh(r),s=i5(this.numericRefinements[e][n],o)!==void 0;return i&&s},isTagRefined:function(e){return this.tagRefinements.indexOf(e)!==-1},getRefinedDisjunctiveFacets:function(){var e=this,n=aS(Object.keys(this.numericRefinements).filter(function(r){return Object.keys(e.numericRefinements[r]).length>0}),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter(function(r){return e.disjunctiveFacetsRefinements[r].length>0}).concat(n).concat(this.getRefinedHierarchicalFacets()).sort()},getRefinedHierarchicalFacets:function(){var e=this;return aS(this.hierarchicalFacets.map(function(n){return n.name}),Object.keys(this.hierarchicalFacetsRefinements).filter(function(n){return e.hierarchicalFacetsRefinements[n].length>0})).sort()},getUnrefinedDisjunctiveFacets:function(){var t=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter(function(e){return t.indexOf(e)===-1})},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,n={},r=this;return Object.keys(this).forEach(function(i){var o=r[i];e.indexOf(i)===-1&&o!==void 0&&(n[i]=o)}),n},setQueryParameter:function(e,n){if(this[e]===n)return this;var r={};return r[e]=n,this.setQueryParameters(r)},setQueryParameters:function(e){if(!e)return this;var n=Bt.validate(this,e);if(n)throw n;var r=this,i=Bt._parseNumbers(e),o=Object.keys(this).reduce(function(a,l){return a[l]=r[l],a},{}),s=Object.keys(i).reduce(function(a,l){var c=a[l]!==void 0,u=i[l]!==void 0;return c&&!u?lS(a,[l]):(u&&(a[l]=i[l]),a)},o);return new this.constructor(s)},resetPage:function(){return this.page===void 0?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(t){return t.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(t){return t.separator||" > "},_getHierarchicalRootPath:function(t){return t.rootPath||null},_getHierarchicalShowParentLevel:function(t){return typeof t.showParentLevel=="boolean"?t.showParentLevel:!0},getHierarchicalFacetByName:function(t){return Sx(this.hierarchicalFacets,function(e){return e.name===t})},getHierarchicalFacetBreadcrumb:function(t){if(!this.isHierarchicalFacet(t))return[];var e=this.getHierarchicalRefinement(t)[0];if(!e)return[];var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(t)),r=e.split(n);return r.map(function(i){return i.trim()})},toString:function(){return JSON.stringify(this,null,2)}};var wx=Bt,o5=function(e){return Array.isArray(e)?e.filter(Boolean):[]},s5=function(e,n){if(!Array.isArray(e))return-1;for(var r=0;r<e.length;r++)if(n(e[r]))return r;return-1},a5=Gd,Ax=function(e,n){var r=(n||[]).map(function(i){return i.split(":")});return e.reduce(function(o,s){var a=s.split(":"),l=a5(r,function(c){return c[0]===a[0]});return a.length>1||!l?(o[0].push(a[0]),o[1].push(a[1]),o):(o[0].push(l[0]),o[1].push(l[1]),o)},[[],[]])};function l5(t,e){if(t!==e){var n=t!==void 0,r=t===null,i=e!==void 0,o=e===null;if(!o&&t>e||r&&i||!n)return 1;if(!r&&t<e||o&&n||!i)return-1}return 0}function c5(t,e,n){if(!Array.isArray(t))return[];Array.isArray(n)||(n=[]);var r=t.map(function(i,o){return{criteria:e.map(function(s){return i[s]}),index:o,value:i}});return r.sort(function(o,s){for(var a=-1;++a<o.criteria.length;){var l=l5(o.criteria[a],s.criteria[a]);if(l)return a>=n.length?l:n[a]==="desc"?-l:l}return o.index-s.index}),r.map(function(i){return i.value})}var Ox=c5,u5=g5,Ex=ry,f5=Gd,d5=Ax,h5=Ox,p5=Ex.escapeFacetValue,m5=Ex.unescapeFacetValue;function g5(t){return function(n,r){var i=t.hierarchicalFacets[r],o=t.hierarchicalFacetsRefinements[i.name]&&t.hierarchicalFacetsRefinements[i.name][0]||"",s=t._getHierarchicalFacetSeparator(i),a=t._getHierarchicalRootPath(i),l=t._getHierarchicalShowParentLevel(i),c=d5(t._getHierarchicalFacetSortBy(i)),u=n.every(function(d){return d.exhaustive}),f=v5(c,s,a,l,o),h=n;return a&&(h=n.slice(a.split(s).length)),h.reduce(f,{name:t.hierarchicalFacets[r].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:u,data:null})}}function v5(t,e,n,r,i){return function(s,a,l){var c=s;if(l>0){var u=0;for(c=s;u<l;){var f=c&&Array.isArray(c.data)?c.data:[];c=f5(f,function(d){return d.isRefined}),u++}}if(c){var h=Object.keys(a.data).map(function(d){return[d,a.data[d]]}).filter(function(d){var p=d[0];return y5(p,c.path||n,i,e,n,r)});c.data=h5(h.map(function(d){var p=d[0],m=d[1];return b5(m,p,e,m5(i),a.exhaustive)}),t[0],t[1])}return s}}function y5(t,e,n,r,i,o){return i&&(t.indexOf(i)!==0||i===t)?!1:!i&&t.indexOf(r)===-1||i&&t.split(r).length-i.split(r).length===1||t.indexOf(r)===-1&&n.indexOf(r)===-1||n.indexOf(t)===0||t.indexOf(e+r)===0&&(o||t.indexOf(n)===0)}function b5(t,e,n,r,i){var o=e.split(n);return{name:o[o.length-1].trim(),path:e,escapedValue:p5(e),count:t,isRefined:r===e||r.indexOf(e+n)===0,exhaustive:i,data:null}}var Yh=o5,zf=ay,Px=ry,Tn=Gd,Js=s5,_5=Ax,cS=Kd,xx=Ox,uS=Px.escapeFacetValue,Cx=Px.unescapeFacetValue,S5=u5;function fS(t){var e={};return t.forEach(function(n,r){e[n]=r}),e}function Jh(t,e,n){e&&e[n]&&(t.stats=e[n])}function w5(t,e){return Tn(t,function(r){var i=r.attributes||[];return i.indexOf(e)>-1})}function Jr(t,e,n){var r=e[0];this._rawResults=e;var i=this;Object.keys(r).forEach(function(f){i[f]=r[f]});var o=cS({persistHierarchicalRootCount:!1},n);Object.keys(o).forEach(function(f){i[f]=o[f]}),this.processingTimeMS=e.reduce(function(f,h){return h.processingTimeMS===void 0?f:f+h.processingTimeMS},0),this.disjunctiveFacets=[],this.hierarchicalFacets=t.hierarchicalFacets.map(function(){return[]}),this.facets=[];var s=t.getRefinedDisjunctiveFacets(),a=fS(t.facets),l=fS(t.disjunctiveFacets),c=1,u=r.facets||{};Object.keys(u).forEach(function(f){var h=u[f],d=w5(t.hierarchicalFacets,f);if(d){var p=d.attributes.indexOf(f),m=Js(t.hierarchicalFacets,function(y){return y.name===d.name});i.hierarchicalFacets[m][p]={attribute:f,data:h,exhaustive:r.exhaustiveFacetsCount}}else{var g=t.disjunctiveFacets.indexOf(f)!==-1,v=t.facets.indexOf(f)!==-1,b;g&&(b=l[f],i.disjunctiveFacets[b]={name:f,data:h,exhaustive:r.exhaustiveFacetsCount},Jh(i.disjunctiveFacets[b],r.facets_stats,f)),v&&(b=a[f],i.facets[b]={name:f,data:h,exhaustive:r.exhaustiveFacetsCount},Jh(i.facets[b],r.facets_stats,f))}}),this.hierarchicalFacets=Yh(this.hierarchicalFacets),s.forEach(function(f){var h=e[c],d=h&&h.facets?h.facets:{},p=t.getHierarchicalFacetByName(f);Object.keys(d).forEach(function(m){var g=d[m],v;if(p){v=Js(t.hierarchicalFacets,function(_){return _.name===p.name});var b=Js(i.hierarchicalFacets[v],function(_){return _.attribute===m});if(b===-1)return;i.hierarchicalFacets[v][b].data=cS({},i.hierarchicalFacets[v][b].data,g)}else{v=l[m];var y=r.facets&&r.facets[m]||{};i.disjunctiveFacets[v]={name:m,data:zf({},g,y),exhaustive:h.exhaustiveFacetsCount},Jh(i.disjunctiveFacets[v],h.facets_stats,m),t.disjunctiveFacetsRefinements[m]&&t.disjunctiveFacetsRefinements[m].forEach(function(_){!i.disjunctiveFacets[v].data[_]&&t.disjunctiveFacetsRefinements[m].indexOf(Cx(_))>-1&&(i.disjunctiveFacets[v].data[_]=0)})}}),c++}),t.getRefinedHierarchicalFacets().forEach(function(f){var h=t.getHierarchicalFacetByName(f),d=t._getHierarchicalFacetSeparator(h),p=t.getHierarchicalRefinement(f);p.length===0||p[0].split(d).length<2||e.slice(c).forEach(function(m){var g=m&&m.facets?m.facets:{};Object.keys(g).forEach(function(v){var b=g[v],y=Js(t.hierarchicalFacets,function(x){return x.name===h.name}),_=Js(i.hierarchicalFacets[y],function(x){return x.attribute===v});if(_!==-1){var A={};if(p.length>0&&!i.persistHierarchicalRootCount){var C=p[0].split(d)[0];A[C]=i.hierarchicalFacets[y][_].data[C]}i.hierarchicalFacets[y][_].data=zf(A,b,i.hierarchicalFacets[y][_].data)}}),c++})}),Object.keys(t.facetsExcludes).forEach(function(f){var h=t.facetsExcludes[f],d=a[f];i.facets[d]={name:f,data:u[f],exhaustive:r.exhaustiveFacetsCount},h.forEach(function(p){i.facets[d]=i.facets[d]||{name:f},i.facets[d].data=i.facets[d].data||{},i.facets[d].data[p]=0})}),this.hierarchicalFacets=this.hierarchicalFacets.map(S5(t)),this.facets=Yh(this.facets),this.disjunctiveFacets=Yh(this.disjunctiveFacets),this._state=t}Jr.prototype.getFacetByName=function(t){function e(n){return n.name===t}return Tn(this.facets,e)||Tn(this.disjunctiveFacets,e)||Tn(this.hierarchicalFacets,e)};function A5(t,e){function n(u){return u.name===e}if(t._state.isConjunctiveFacet(e)){var r=Tn(t.facets,n);return r?Object.keys(r.data).map(function(u){var f=uS(u);return{name:u,escapedValue:f,count:r.data[u],isRefined:t._state.isFacetRefined(e,f),isExcluded:t._state.isExcludeRefined(e,u)}}):[]}else if(t._state.isDisjunctiveFacet(e)){var i=Tn(t.disjunctiveFacets,n);return i?Object.keys(i.data).map(function(u){var f=uS(u);return{name:u,escapedValue:f,count:i.data[u],isRefined:t._state.isDisjunctiveFacetRefined(e,f)}}):[]}else if(t._state.isHierarchicalFacet(e)){var o=Tn(t.hierarchicalFacets,n);if(!o)return o;var s=t._state.getHierarchicalFacetByName(e),a=t._state._getHierarchicalFacetSeparator(s),l=Cx(t._state.getHierarchicalRefinement(e)[0]||"");l.indexOf(s.rootPath)===0&&(l=l.replace(s.rootPath+a,""));var c=l.split(a);return c.unshift(e),Tx(o,c,0),o}}function Tx(t,e,n){t.isRefined=t.name===e[n],t.data&&t.data.forEach(function(r){Tx(r,e,n+1)})}function Ix(t,e,n,r){if(r=r||0,Array.isArray(e))return t(e,n[r]);if(!e.data||e.data.length===0)return e;var i=e.data.map(function(a){return Ix(t,a,n,r+1)}),o=t(i,n[r]),s=zf({data:o},e);return s}Jr.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"];function O5(t,e){return e.sort(t)}function E5(t,e){var n=[],r=[],i=e.order||[],o=i.reduce(function(l,c,u){return l[c]=u,l},{});t.forEach(function(l){var c=l.path||l.name;o[c]!==void 0?n[o[c]]=l:r.push(l)}),n=n.filter(function(l){return l});var s=e.sortRemainingBy,a;return s==="hidden"?n:(s==="alpha"?a=[["path","name"],["asc","asc"]]:a=[["count"],["desc"]],n.concat(xx(r,a[0],a[1])))}function P5(t,e){return t.renderingContent&&t.renderingContent.facetOrdering&&t.renderingContent.facetOrdering.values&&t.renderingContent.facetOrdering.values[e]}Jr.prototype.getFacetValues=function(t,e){var n=A5(this,t);if(n){var r=zf({},e,{sortBy:Jr.DEFAULT_SORT,facetOrdering:!(e&&e.sortBy)}),i=this,o;if(Array.isArray(n))o=[t];else{var s=i._state.getHierarchicalFacetByName(n.name);o=s.attributes}return Ix(function(a,l){if(r.facetOrdering){var c=P5(i,l);if(c)return E5(a,c)}if(Array.isArray(r.sortBy)){var u=_5(r.sortBy,Jr.DEFAULT_SORT);return xx(a,u[0],u[1])}else if(typeof r.sortBy=="function")return O5(r.sortBy,a);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")},n,o)}};Jr.prototype.getFacetStats=function(t){if(this._state.isConjunctiveFacet(t))return dS(this.facets,t);if(this._state.isDisjunctiveFacet(t))return dS(this.disjunctiveFacets,t)};function dS(t,e){var n=Tn(t,function(r){return r.name===e});return n&&n.stats}Jr.prototype.getRefinements=function(){var t=this._state,e=this,n=[];return Object.keys(t.facetsRefinements).forEach(function(r){t.facetsRefinements[r].forEach(function(i){n.push(Zh(t,"facet",r,i,e.facets))})}),Object.keys(t.facetsExcludes).forEach(function(r){t.facetsExcludes[r].forEach(function(i){n.push(Zh(t,"exclude",r,i,e.facets))})}),Object.keys(t.disjunctiveFacetsRefinements).forEach(function(r){t.disjunctiveFacetsRefinements[r].forEach(function(i){n.push(Zh(t,"disjunctive",r,i,e.disjunctiveFacets))})}),Object.keys(t.hierarchicalFacetsRefinements).forEach(function(r){t.hierarchicalFacetsRefinements[r].forEach(function(i){n.push(x5(t,r,i,e.hierarchicalFacets))})}),Object.keys(t.numericRefinements).forEach(function(r){var i=t.numericRefinements[r];Object.keys(i).forEach(function(o){i[o].forEach(function(s){n.push({type:"numeric",attributeName:r,name:s,numericValue:s,operator:o})})})}),t.tagRefinements.forEach(function(r){n.push({type:"tag",attributeName:"_tags",name:r})}),n};function Zh(t,e,n,r,i){var o=Tn(i,function(l){return l.name===n}),s=o&&o.data&&o.data[r]?o.data[r]:0,a=o&&o.exhaustive||!1;return{type:e,attributeName:n,name:r,count:s,exhaustive:a}}function x5(t,e,n,r){var i=t.getHierarchicalFacetByName(e),o=t._getHierarchicalFacetSeparator(i),s=n.split(o),a=Tn(r,function(h){return h.name===e}),l=s.reduce(function(h,d){var p=h&&Tn(h.data,function(m){return m.name===d});return p!==void 0?p:h},a),c=l&&l.count||0,u=l&&l.exhaustive||!1,f=l&&l.path||"";return{type:"hierarchical",attributeName:e,name:f,count:c,exhaustive:u}}var Rx=Jr,$x="3.16.2",C5=ny,T5=Bq,I5=ry.escapeFacetValue,R5=bx,$5=Kd,V5=oy,j5=sy,ys=Kq,cy=wx,jm=Rx,Vx=$x;function fe(t,e,n,r){typeof t.addAlgoliaAgent=="function"&&t.addAlgoliaAgent("JS Helper ("+Vx+")"),this.setClient(t);var i=n||{};i.index=e,this.state=cy.make(i),this.lastResults=null,this._queryId=0,this._lastQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0,this._searchResultsOptions=r}R5(fe,C5);fe.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this};fe.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this};fe.prototype.getQuery=function(){var t=this.state;return ys._getHitsSearchParams(t)};fe.prototype.searchOnce=function(t,e){var n=t?this.state.setQueryParameters(t):this.state,r=ys._getQueries(n.index,n),i=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:n}),e){this.client.search(r).then(function(o){i._currentNbQueries--,i._currentNbQueries===0&&i.emit("searchQueueEmpty"),e(null,new jm(n,o.results),n)}).catch(function(o){i._currentNbQueries--,i._currentNbQueries===0&&i.emit("searchQueueEmpty"),e(o,null,n)});return}return this.client.search(r).then(function(o){return i._currentNbQueries--,i._currentNbQueries===0&&i.emit("searchQueueEmpty"),{content:new jm(n,o.results),state:n,_originalResponse:o}},function(o){throw i._currentNbQueries--,i._currentNbQueries===0&&i.emit("searchQueueEmpty"),o})};fe.prototype.findAnswers=function(t){console.warn("[algoliasearch-helper] answers is no longer supported");var e=this.state,n=this.derivedHelpers[0];if(!n)return Promise.resolve([]);var r=n.getModifiedState(e),i=$5({attributesForPrediction:t.attributesForPrediction,nbHits:t.nbHits},{params:j5(ys._getHitsSearchParams(r),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),o="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(o);var s=this.client.initIndex(r.index);if(typeof s.findAnswers!="function")throw new Error(o);return s.findAnswers(r.query,t.queryLanguages,i)};fe.prototype.searchForFacetValues=function(t,e,n,r){var i=typeof this.client.searchForFacetValues=="function",o=typeof this.client.initIndex=="function";if(!i&&!o&&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 s=this.state.setQueryParameters(r||{}),a=s.isDisjunctiveFacet(t),l=ys.getSearchForFacetQuery(t,e,n,s);this._currentNbQueries++;var c=this,u;return i?u=this.client.searchForFacetValues([{indexName:s.index,params:l}]):o?u=this.client.initIndex(s.index).searchForFacetValues(l):(delete l.facetName,u=this.client.search([{type:"facet",facet:t,indexName:s.index,params:l}]).then(function(h){return h.results[0]})),this.emit("searchForFacetValues",{state:s,facet:t,query:e}),u.then(function(h){return c._currentNbQueries--,c._currentNbQueries===0&&c.emit("searchQueueEmpty"),h=Array.isArray(h)?h[0]:h,h.facetHits.forEach(function(d){d.escapedValue=I5(d.value),d.isRefined=a?s.isDisjunctiveFacetRefined(t,d.escapedValue):s.isFacetRefined(t,d.escapedValue)}),h},function(f){throw c._currentNbQueries--,c._currentNbQueries===0&&c.emit("searchQueueEmpty"),f})};fe.prototype.setQuery=function(t){return this._change({state:this.state.resetPage().setQuery(t),isPageReset:!0}),this};fe.prototype.clearRefinements=function(t){return this._change({state:this.state.resetPage().clearRefinements(t),isPageReset:!0}),this};fe.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this};fe.prototype.addDisjunctiveFacetRefinement=function(t,e){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(t,e),isPageReset:!0}),this};fe.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)};fe.prototype.addHierarchicalFacetRefinement=function(t,e){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(t,e),isPageReset:!0}),this};fe.prototype.addNumericRefinement=function(t,e,n){return this._change({state:this.state.resetPage().addNumericRefinement(t,e,n),isPageReset:!0}),this};fe.prototype.addFacetRefinement=function(t,e){return this._change({state:this.state.resetPage().addFacetRefinement(t,e),isPageReset:!0}),this};fe.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)};fe.prototype.addFacetExclusion=function(t,e){return this._change({state:this.state.resetPage().addExcludeRefinement(t,e),isPageReset:!0}),this};fe.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)};fe.prototype.addTag=function(t){return this._change({state:this.state.resetPage().addTagRefinement(t),isPageReset:!0}),this};fe.prototype.removeNumericRefinement=function(t,e,n){return this._change({state:this.state.resetPage().removeNumericRefinement(t,e,n),isPageReset:!0}),this};fe.prototype.removeDisjunctiveFacetRefinement=function(t,e){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(t,e),isPageReset:!0}),this};fe.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)};fe.prototype.removeHierarchicalFacetRefinement=function(t){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(t),isPageReset:!0}),this};fe.prototype.removeFacetRefinement=function(t,e){return this._change({state:this.state.resetPage().removeFacetRefinement(t,e),isPageReset:!0}),this};fe.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)};fe.prototype.removeFacetExclusion=function(t,e){return this._change({state:this.state.resetPage().removeExcludeRefinement(t,e),isPageReset:!0}),this};fe.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)};fe.prototype.removeTag=function(t){return this._change({state:this.state.resetPage().removeTagRefinement(t),isPageReset:!0}),this};fe.prototype.toggleFacetExclusion=function(t,e){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(t,e),isPageReset:!0}),this};fe.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)};fe.prototype.toggleRefinement=function(t,e){return this.toggleFacetRefinement(t,e)};fe.prototype.toggleFacetRefinement=function(t,e){return this._change({state:this.state.resetPage().toggleFacetRefinement(t,e),isPageReset:!0}),this};fe.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)};fe.prototype.toggleTag=function(t){return this._change({state:this.state.resetPage().toggleTagRefinement(t),isPageReset:!0}),this};fe.prototype.nextPage=function(){var t=this.state.page||0;return this.setPage(t+1)};fe.prototype.previousPage=function(){var t=this.state.page||0;return this.setPage(t-1)};function jx(t){if(t<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(t),isPageReset:!1}),this}fe.prototype.setCurrentPage=jx;fe.prototype.setPage=jx;fe.prototype.setIndex=function(t){return this._change({state:this.state.resetPage().setIndex(t),isPageReset:!0}),this};fe.prototype.setQueryParameter=function(t,e){return this._change({state:this.state.resetPage().setQueryParameter(t,e),isPageReset:!0}),this};fe.prototype.setState=function(t){return this._change({state:cy.make(t),isPageReset:!1}),this};fe.prototype.overrideStateWithoutTriggeringChangeEvent=function(t){return this.state=new cy(t),this};fe.prototype.hasRefinements=function(t){return V5(this.state.getNumericRefinements(t))?!0:this.state.isConjunctiveFacet(t)?this.state.isFacetRefined(t):this.state.isDisjunctiveFacet(t)?this.state.isDisjunctiveFacetRefined(t):this.state.isHierarchicalFacet(t)?this.state.isHierarchicalFacetRefined(t):!1};fe.prototype.isExcluded=function(t,e){return this.state.isExcludeRefined(t,e)};fe.prototype.isDisjunctiveRefined=function(t,e){return this.state.isDisjunctiveFacetRefined(t,e)};fe.prototype.hasTag=function(t){return this.state.isTagRefined(t)};fe.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)};fe.prototype.getIndex=function(){return this.state.index};function Nx(){return this.state.page}fe.prototype.getCurrentPage=Nx;fe.prototype.getPage=Nx;fe.prototype.getTags=function(){return this.state.tagRefinements};fe.prototype.getRefinements=function(t){var e=[];if(this.state.isConjunctiveFacet(t)){var n=this.state.getConjunctiveRefinements(t);n.forEach(function(s){e.push({value:s,type:"conjunctive"})});var r=this.state.getExcludeRefinements(t);r.forEach(function(s){e.push({value:s,type:"exclude"})})}else if(this.state.isDisjunctiveFacet(t)){var i=this.state.getDisjunctiveRefinements(t);i.forEach(function(s){e.push({value:s,type:"disjunctive"})})}var o=this.state.getNumericRefinements(t);return Object.keys(o).forEach(function(s){var a=o[s];e.push({value:a,operator:s,type:"numeric"})}),e};fe.prototype.getNumericRefinement=function(t,e){return this.state.getNumericRefinement(t,e)};fe.prototype.getHierarchicalFacetBreadcrumb=function(t){return this.state.getHierarchicalFacetBreadcrumb(t)};fe.prototype._search=function(t){var e=this.state,n=[],r=[];t.onlyWithDerivedHelpers||(r=ys._getQueries(e.index,e),n.push({state:e,queriesCount:r.length,helper:this}),this.emit("search",{state:e,results:this.lastResults}));var i=this.derivedHelpers.map(function(a){var l=a.getModifiedState(e),c=l.index?ys._getQueries(l.index,l):[];return n.push({state:l,queriesCount:c.length,helper:a}),a.emit("search",{state:l,results:a.lastResults}),c}),o=Array.prototype.concat.apply(r,i),s=this._queryId++;if(this._currentNbQueries++,!o.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,n,s));try{this.client.search(o).then(this._dispatchAlgoliaResponse.bind(this,n,s)).catch(this._dispatchAlgoliaError.bind(this,s))}catch(a){this.emit("error",{error:a})}};fe.prototype._dispatchAlgoliaResponse=function(t,e,n){var r=this;if(!(e<this._lastQueryIdReceived)){this._currentNbQueries-=e-this._lastQueryIdReceived,this._lastQueryIdReceived=e,this._currentNbQueries===0&&this.emit("searchQueueEmpty");var i=n.results.slice();t.forEach(function(o){var s=o.state,a=o.queriesCount,l=o.helper,c=i.splice(0,a);if(!s.index){l.emit("result",{results:null,state:s});return}l.lastResults=new jm(s,c,r._searchResultsOptions),l.emit("result",{results:l.lastResults,state:s})})}};fe.prototype._dispatchAlgoliaError=function(t,e){t<this._lastQueryIdReceived||(this._currentNbQueries-=t-this._lastQueryIdReceived,this._lastQueryIdReceived=t,this.emit("error",{error:e}),this._currentNbQueries===0&&this.emit("searchQueueEmpty"))};fe.prototype.containsRefinement=function(t,e,n,r){return t||e.length!==0||n.length!==0||r.length!==0};fe.prototype._hasDisjunctiveRefinements=function(t){return this.state.disjunctiveRefinements[t]&&this.state.disjunctiveRefinements[t].length>0};fe.prototype._change=function(t){var e=t.state,n=t.isPageReset;e!==this.state&&(this.state=e,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:n}))};fe.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this};fe.prototype.setClient=function(t){return this.client===t?this:(typeof t.addAlgoliaAgent=="function"&&t.addAlgoliaAgent("JS Helper ("+Vx+")"),this.client=t,this)};fe.prototype.getClient=function(){return this.client};fe.prototype.derive=function(t){var e=new T5(this,t);return this.derivedHelpers.push(e),e};fe.prototype.detachDerivedHelper=function(t){var e=this.derivedHelpers.indexOf(t);if(e===-1)throw new Error("Derived helper already detached");this.derivedHelpers.splice(e,1)};fe.prototype.hasPendingRequests=function(){return this._currentNbQueries>0};var N5=fe,Lx=N5,L5=wx,F5=Rx;function Bc(t,e,n,r){return new Lx(t,e,n,r)}Bc.version=$x;Bc.AlgoliaSearchHelper=Lx;Bc.SearchParameters=L5;Bc.SearchResults=F5;var D5=Bc;const En=Ps(D5);function Ml(t){"@babel/helpers - typeof";return Ml=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ml(t)}function hS(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function xi(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?hS(Object(n),!0).forEach(function(r){M5(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hS(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function M5(t,e,n){return e=k5(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function k5(t){var e=B5(t,"string");return Ml(e)==="symbol"?e:String(e)}function B5(t,e){if(Ml(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ml(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function la(t,e){return W5(t)||q5(t,e)||Fx(t,e)||H5()}function H5(){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 q5(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==e);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}function W5(t){if(Array.isArray(t))return t}function U5(t){return K5(t)||z5(t)||Fx(t)||Q5()}function Q5(){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 Fx(t,e){if(t){if(typeof t=="string")return Nm(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nm(t,e)}}function z5(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function K5(t){if(Array.isArray(t))return Nm(t)}function Nm(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Dx="2.13.0",G5="https://cdn.jsdelivr.net/npm/search-insights@".concat(Dx,"/dist/search-insights.min.js");function pS(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.insightsClient,n=t.insightsInitParams,r=t.onEvent,i=t.$$internal,o=i===void 0?!1:i,s=t.$$automatic,a=s===void 0?!1:s,l=e;!e&&e!==null&&Qn(function(u){var f=u.window,h=f.AlgoliaAnalyticsObject||"aa";typeof h=="string"&&(l=f[h]),l||(f.AlgoliaAnalyticsObject=h,f[h]||(f[h]=function(){f[h].queue||(f[h].queue=[]);for(var d=arguments.length,p=new Array(d),m=0;m<d;m++)p[m]=arguments[m];f[h].queue.push(p)},f[h].version=Dx,f[h].shouldAddScript=!0),l=f[h])});var c=l||Qe;return function(u){var f=u.instantSearchInstance,h=f.middleware.filter(function(O){return O.instance.$$type==="ais.insights"&&O.instance.$$internal}).map(function(O){return O.creator});f.unuse.apply(f,U5(h));var d=T3(f.client),p=la(d,2),m=p[0],g=p[1],v=void 0,b=void 0,y=void 0,_=void 0,A=c.queue;if(Array.isArray(A)){var C=["setUserToken","setAuthenticatedUserToken"].map(function(O){var P=Uf(A.slice().reverse(),function(M){var k=la(M,1),B=k[0];return B===O})||[],T=la(P,2),R=T[1];return R}),x=la(C,2);v=x[0],b=x[1]}c("getUserToken",null,function(O,P){y=Xh(P)}),c("getAuthenticatedUserToken",null,function(O,P){_=Xh(P)}),(n||!mS(c))&&c("init",xi({appId:m,apiKey:g,partial:!0},n));var S,w;return{$$type:"ais.insights",$$internal:o,$$automatic:a,onStateChange:function(){},subscribe:function(){if(c.shouldAddScript){var P="[insights middleware]: could not load search-insights.js. Please load it manually following https://alg.li/insights-init";try{var T=document.createElement("script");T.async=!0,T.src=G5,T.onerror=function(){f.emit("error",new Error(P))},document.body.appendChild(T),c.shouldAddScript=!1}catch{c.shouldAddScript=!1,f.emit("error",new Error(P))}}},started:function(){c("addAlgoliaAgent","insights-middleware"),w=f.mainHelper,S={userToken:w.state.userToken,clickAnalytics:w.state.clickAnalytics},a||w.overrideStateWithoutTriggeringChangeEvent(xi(xi({},w.state),{},{clickAnalytics:!0})),o||f.scheduleSearch();var P=function(Q){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,K=Xh(Q);if(!K)return;var te=w.state.userToken;function ue(){w.overrideStateWithoutTriggeringChangeEvent(xi(xi({},w.state),{},{userToken:K})),te&&te!==Q&&f.scheduleSearch()}G?ue():setTimeout(ue,0)},T=vx();T&&P(T,!0);function R(z,Q,G){P(z,!0),Q&&c("setUserToken",Q),G&&c("setAuthenticatedUserToken",G)}var M=_||y,k=b||v;M?R(M,y,_):k&&R(k,v,b),c("onUserTokenChange",P,{immediate:!0}),c("onAuthenticatedUserTokenChange",function(z){z||c("getUserToken",null,function(Q,G){P(G)}),P(z)},{immediate:!0});var B=c;mS(c)&&(B=function(Q,G){var K={headers:{"X-Algolia-Application-Id":m,"X-Algolia-API-Key":g}};return c(Q,G,K)}),f.sendEventToInsights=function(z){r?r(z,B):z.insightsMethod&&(z.payload.algoliaSource=["instantsearch"],a&&z.payload.algoliaSource.push("instantsearch-automatic"),z.eventModifier==="internal"&&z.payload.algoliaSource.push("instantsearch-internal"),B(z.insightsMethod,z.payload))}},unsubscribe:function(){c("onUserTokenChange",void 0),c("onAuthenticatedUserTokenChange",void 0),f.sendEventToInsights=Qe,w&&S&&(w.overrideStateWithoutTriggeringChangeEvent(xi(xi({},w.state),S)),f.scheduleSearch())}}}}function mS(t){var e=(t.version||"").split(".").map(Number),n=la(e,2),r=n[0],i=n[1],o=r>=3,s=r===2&&i>=6,a=r===1&&i>=10;return o||s||a}function Xh(t){if(t)return typeof t=="number"?t.toString():t}function Mx(t,e,n){var r=aa(e,e.mainIndex,e._initialUiState);t.forEach(function(i){var o={};if(i.getWidgetRenderState){var s=i.getWidgetRenderState(r);s&&s.widgetParams&&(o=s.widgetParams)}var a=Object.keys(o).filter(function(l){return o[l]!==void 0});n.widgets.push({type:i.$$type,widgetType:i.$$widgetType,params:a}),i.$$type==="ais.index"&&Mx(i.getWidgets(),e,n)})}function Y5(){return Qn(function(t){var e,n,r=t.window;return((e=r.navigator)===null||e===void 0||(n=e.userAgent)===null||n===void 0?void 0:n.indexOf("Algolia Crawler"))>-1},{fallback:function(){return!1}})}function J5(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.$$internal,n=e===void 0?!1:e;return function(r){var i=r.instantSearchInstance,o={widgets:[]},s=document.createElement("meta"),a=document.querySelector("head");return s.name="instantsearch:widgets",{$$type:"ais.metadata",$$internal:n,onStateChange:function(){},subscribe:function(){setTimeout(function(){var c=i.client;o.ua=c.transporter&&c.transporter.userAgent?c.transporter.userAgent.value:c._ua,Mx(i.mainIndex.getWidgets(),i,o),i.middleware.forEach(function(u){return o.widgets.push({middleware:!0,type:u.instance.$$type,internal:u.instance.$$internal})}),s.content=JSON.stringify(o),a.appendChild(s)},0)},started:function(){},unsubscribe:function(){s.remove()}}}}var Z5=String.prototype.replace,X5=/%20/g,ep={RFC1738:"RFC1738",RFC3986:"RFC3986"},uy={default:ep.RFC3986,formatters:{RFC1738:function(t){return Z5.call(t,X5,"+")},RFC3986:function(t){return String(t)}},RFC1738:ep.RFC1738,RFC3986:ep.RFC3986},e4=uy,tp=Object.prototype.hasOwnProperty,ji=Array.isArray,Dn=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),t4=function(e){for(;e.length>1;){var n=e.pop(),r=n.obj[n.prop];if(ji(r)){for(var i=[],o=0;o<r.length;++o)typeof r[o]<"u"&&i.push(r[o]);n.obj[n.prop]=i}}},kx=function(e,n){for(var r=n&&n.plainObjects?Object.create(null):{},i=0;i<e.length;++i)typeof e[i]<"u"&&(r[i]=e[i]);return r},n4=function t(e,n,r){if(!n)return e;if(typeof n!="object"){if(ji(e))e.push(n);else if(e&&typeof e=="object")(r&&(r.plainObjects||r.allowPrototypes)||!tp.call(Object.prototype,n))&&(e[n]=!0);else return[e,n];return e}if(!e||typeof e!="object")return[e].concat(n);var i=e;return ji(e)&&!ji(n)&&(i=kx(e,r)),ji(e)&&ji(n)?(n.forEach(function(o,s){if(tp.call(e,s)){var a=e[s];a&&typeof a=="object"&&o&&typeof o=="object"?e[s]=t(a,o,r):e.push(o)}else e[s]=o}),e):Object.keys(n).reduce(function(o,s){var a=n[s];return tp.call(o,s)?o[s]=t(o[s],a,r):o[s]=a,o},i)},r4=function(e,n){return Object.keys(n).reduce(function(r,i){return r[i]=n[i],r},e)},i4=function(t,e,n){var r=t.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},o4=function(e,n,r,i,o){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),r==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(u){return"%26%23"+parseInt(u.slice(2),16)+"%3B"});for(var a="",l=0;l<s.length;++l){var c=s.charCodeAt(l);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===e4.RFC1738&&(c===40||c===41)){a+=s.charAt(l);continue}if(c<128){a=a+Dn[c];continue}if(c<2048){a=a+(Dn[192|c>>6]+Dn[128|c&63]);continue}if(c<55296||c>=57344){a=a+(Dn[224|c>>12]+Dn[128|c>>6&63]+Dn[128|c&63]);continue}l+=1,c=65536+((c&1023)<<10|s.charCodeAt(l)&1023),a+=Dn[240|c>>18]+Dn[128|c>>12&63]+Dn[128|c>>6&63]+Dn[128|c&63]}return a},s4=function(e){for(var n=[{obj:{o:e},prop:"o"}],r=[],i=0;i<n.length;++i)for(var o=n[i],s=o.obj[o.prop],a=Object.keys(s),l=0;l<a.length;++l){var c=a[l],u=s[c];typeof u=="object"&&u!==null&&r.indexOf(u)===-1&&(n.push({obj:s,prop:c}),r.push(u))}return t4(n),e},a4=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},l4=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},c4=function(e,n){return[].concat(e,n)},u4=function(e,n){if(ji(e)){for(var r=[],i=0;i<e.length;i+=1)r.push(n(e[i]));return r}return n(e)},Bx={arrayToObject:kx,assign:r4,combine:c4,compact:s4,decode:i4,encode:o4,isBuffer:l4,isRegExp:a4,maybeMap:u4,merge:n4},Lm=Bx,Ca=uy,f4=Object.prototype.hasOwnProperty,gS={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,n){return e+"["+n+"]"},repeat:function(e){return e}},ki=Array.isArray,d4=String.prototype.split,h4=Array.prototype.push,Hx=function(t,e){h4.apply(t,ki(e)?e:[e])},p4=Date.prototype.toISOString,vS=Ca.default,gt={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Lm.encode,encodeValuesOnly:!1,format:vS,formatter:Ca.formatters[vS],indices:!1,serializeDate:function(e){return p4.call(e)},skipNulls:!1,strictNullHandling:!1},m4=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},g4=function t(e,n,r,i,o,s,a,l,c,u,f,h,d,p){var m=e;if(typeof a=="function"?m=a(n,m):m instanceof Date?m=u(m):r==="comma"&&ki(m)&&(m=Lm.maybeMap(m,function(P){return P instanceof Date?u(P):P})),m===null){if(i)return s&&!d?s(n,gt.encoder,p,"key",f):n;m=""}if(m4(m)||Lm.isBuffer(m)){if(s){var g=d?n:s(n,gt.encoder,p,"key",f);if(r==="comma"&&d){for(var v=d4.call(String(m),","),b="",y=0;y<v.length;++y)b+=(y===0?"":",")+h(s(v[y],gt.encoder,p,"value",f));return[h(g)+"="+b]}return[h(g)+"="+h(s(m,gt.encoder,p,"value",f))]}return[h(n)+"="+h(String(m))]}var _=[];if(typeof m>"u")return _;var A;if(r==="comma"&&ki(m))A=[{value:m.length>0?m.join(",")||null:void 0}];else if(ki(a))A=a;else{var C=Object.keys(m);A=l?C.sort(l):C}for(var x=0;x<A.length;++x){var S=A[x],w=typeof S=="object"&&typeof S.value<"u"?S.value:m[S];if(!(o&&w===null)){var O=ki(m)?typeof r=="function"?r(n,S):n:n+(c?"."+S:"["+S+"]");Hx(_,t(w,O,r,i,o,s,a,l,c,u,f,h,d,p))}}return _},v4=function(e){if(!e)return gt;if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=e.charset||gt.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=Ca.default;if(typeof e.format<"u"){if(!f4.call(Ca.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var i=Ca.formatters[r],o=gt.filter;return(typeof e.filter=="function"||ki(e.filter))&&(o=e.filter),{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:gt.addQueryPrefix,allowDots:typeof e.allowDots>"u"?gt.allowDots:!!e.allowDots,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:gt.charsetSentinel,delimiter:typeof e.delimiter>"u"?gt.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:gt.encode,encoder:typeof e.encoder=="function"?e.encoder:gt.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:gt.encodeValuesOnly,filter:o,format:r,formatter:i,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:gt.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:gt.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:gt.strictNullHandling}},y4=function(t,e){var n=t,r=v4(e),i,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):ki(r.filter)&&(o=r.filter,i=o);var s=[];if(typeof n!="object"||n===null)return"";var a;e&&e.arrayFormat in gS?a=e.arrayFormat:e&&"indices"in e?a=e.indices?"indices":"repeat":a="indices";var l=gS[a];i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var c=0;c<i.length;++c){var u=i[c];r.skipNulls&&n[u]===null||Hx(s,g4(n[u],u,l,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset))}var f=s.join(r.delimiter),h=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),f.length>0?h+f:""},bs=Bx,Fm=Object.prototype.hasOwnProperty,b4=Array.isArray,pt={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:bs.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},_4=function(t){return t.replace(/&#(\d+);/g,function(e,n){return String.fromCharCode(parseInt(n,10))})},qx=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},S4="utf8=%26%2310003%3B",w4="utf8=%E2%9C%93",A4=function(e,n){var r={},i=n.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=n.parameterLimit===1/0?void 0:n.parameterLimit,s=i.split(n.delimiter,o),a=-1,l,c=n.charset;if(n.charsetSentinel)for(l=0;l<s.length;++l)s[l].indexOf("utf8=")===0&&(s[l]===w4?c="utf-8":s[l]===S4&&(c="iso-8859-1"),a=l,l=s.length);for(l=0;l<s.length;++l)if(l!==a){var u=s[l],f=u.indexOf("]="),h=f===-1?u.indexOf("="):f+1,d,p;h===-1?(d=n.decoder(u,pt.decoder,c,"key"),p=n.strictNullHandling?null:""):(d=n.decoder(u.slice(0,h),pt.decoder,c,"key"),p=bs.maybeMap(qx(u.slice(h+1),n),function(m){return n.decoder(m,pt.decoder,c,"value")})),p&&n.interpretNumericEntities&&c==="iso-8859-1"&&(p=_4(p)),u.indexOf("[]=")>-1&&(p=b4(p)?[p]:p),Fm.call(r,d)?r[d]=bs.combine(r[d],p):r[d]=p}return r},O4=function(t,e,n,r){for(var i=r?e:qx(e,n),o=t.length-1;o>=0;--o){var s,a=t[o];if(a==="[]"&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,c=parseInt(l,10);!n.parseArrays&&l===""?s={0:i}:!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(s=[],s[c]=i):l!=="__proto__"&&(s[l]=i)}i=s}return i},E4=function(e,n,r,i){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=r.depth>0&&s.exec(o),c=l?o.slice(0,l.index):o,u=[];if(c){if(!r.plainObjects&&Fm.call(Object.prototype,c)&&!r.allowPrototypes)return;u.push(c)}for(var f=0;r.depth>0&&(l=a.exec(o))!==null&&f<r.depth;){if(f+=1,!r.plainObjects&&Fm.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(l[1])}return l&&u.push("["+o.slice(l.index)+"]"),O4(u,n,r,i)}},P4=function(e){if(!e)return pt;if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof e.charset>"u"?pt.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?pt.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:pt.allowPrototypes,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:pt.arrayLimit,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:pt.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:pt.comma,decoder:typeof e.decoder=="function"?e.decoder:pt.decoder,delimiter:typeof e.delimiter=="string"||bs.isRegExp(e.delimiter)?e.delimiter:pt.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:pt.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:pt.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:pt.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:pt.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:pt.strictNullHandling}},x4=function(t,e){var n=P4(e);if(t===""||t===null||typeof t>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof t=="string"?A4(t,n):t,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),s=0;s<o.length;++s){var a=o[s],l=E4(a,r[a],n,typeof t=="string");i=bs.merge(i,l,n)}return bs.compact(i)},C4=y4,T4=x4,I4=uy,R4={formats:I4,parse:T4,stringify:C4};const yS=Ps(R4);function kl(t){"@babel/helpers - typeof";return kl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kl(t)}function $4(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bS(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Wx(r.key),r)}}function V4(t,e,n){return e&&bS(t.prototype,e),n&&bS(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function It(t,e,n){return e=Wx(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Wx(t){var e=j4(t,"string");return kl(e)==="symbol"?e:String(e)}function j4(t,e){if(kl(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(kl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var _S=function(e){e&&(window.document.title=e)},N4=function(){function t(e){var n=this,r=e.windowTitle,i=e.writeDelay,o=i===void 0?400:i,s=e.createURL,a=e.parseURL,l=e.getLocation,c=e.start,u=e.dispose,f=e.push,h=e.cleanUrlOnDispose;$4(this,t),It(this,"$$type","ais.browser"),It(this,"windowTitle",void 0),It(this,"writeDelay",void 0),It(this,"_createURL",void 0),It(this,"parseURL",void 0),It(this,"getLocation",void 0),It(this,"writeTimer",void 0),It(this,"_onPopState",void 0),It(this,"inPopState",!1),It(this,"isDisposed",!1),It(this,"latestAcknowledgedHistory",0),It(this,"_start",void 0),It(this,"_dispose",void 0),It(this,"_push",void 0),It(this,"_cleanUrlOnDispose",void 0),this.windowTitle=r,this.writeTimer=void 0,this.writeDelay=o,this._createURL=s,this.parseURL=a,this.getLocation=l,this._start=c,this._dispose=u,this._push=f,this._cleanUrlOnDispose=typeof h>"u"?!0:h,Qn(function(d){var p=d.window,m=n.windowTitle&&n.windowTitle(n.read());_S(m),n.latestAcknowledgedHistory=p.history.length})}return V4(t,[{key:"read",value:function(){return this.parseURL({qsModule:yS,location:this.getLocation()})}},{key:"write",value:function(n){var r=this;Qn(function(i){var o=i.window,s=r.createURL(n),a=r.windowTitle&&r.windowTitle(n);r.writeTimer&&clearTimeout(r.writeTimer),r.writeTimer=setTimeout(function(){_S(a),r.shouldWrite(s)&&(r._push?r._push(s):o.history.pushState(n,a||"",s),r.latestAcknowledgedHistory=o.history.length),r.inPopState=!1,r.writeTimer=void 0},r.writeDelay)})}},{key:"onUpdate",value:function(n){var r=this;this._start&&this._start(function(){n(r.read())}),this._onPopState=function(){r.writeTimer&&(clearTimeout(r.writeTimer),r.writeTimer=void 0),r.inPopState=!0,n(r.read())},Qn(function(i){var o=i.window;o.addEventListener("popstate",r._onPopState)})}},{key:"createURL",value:function(n){var r=this._createURL({qsModule:yS,routeState:n,location:this.getLocation()});return r}},{key:"dispose",value:function(){var n=this;this._dispose&&this._dispose(),this.isDisposed=!0,Qn(function(r){var i=r.window;n._onPopState&&i.removeEventListener("popstate",n._onPopState)}),this.writeTimer&&clearTimeout(this.writeTimer),this._cleanUrlOnDispose&&this.write({})}},{key:"start",value:function(){this.isDisposed=!1}},{key:"shouldWrite",value:function(n){var r=this;return Qn(function(i){var o=i.window,s=!(r.isDisposed&&r.latestAcknowledgedHistory!==o.history.length);return!r.inPopState&&s&&n!==o.location.href})}}]),t}();function L4(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.createURL,n=e===void 0?function(p){var m=p.qsModule,g=p.routeState,v=p.location,b=v.protocol,y=v.hostname,_=v.port,A=_===void 0?"":_,C=v.pathname,x=v.hash,S=m.stringify(g),w=A===""?"":":".concat(A);return S?"".concat(b,"//").concat(y).concat(w).concat(C,"?").concat(S).concat(x):"".concat(b,"//").concat(y).concat(w).concat(C).concat(x)}:e,r=t.parseURL,i=r===void 0?function(p){var m=p.qsModule,g=p.location;return m.parse(g.search.slice(1),{arrayLimit:99})}:r,o=t.writeDelay,s=o===void 0?400:o,a=t.windowTitle,l=t.getLocation,c=l===void 0?function(){return Qn(function(p){var m=p.window;return m.location},{fallback:function(){throw new Error("You need to provide `getLocation` to the `history` router in environments where `window` does not exist.")}})}:l,u=t.start,f=t.dispose,h=t.push,d=t.cleanUrlOnDispose;return new N4({createURL:n,parseURL:i,writeDelay:s,windowTitle:a,getLocation:c,start:u,dispose:f,push:h,cleanUrlOnDispose:d})}function Bl(t){"@babel/helpers - typeof";return Bl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bl(t)}var F4=["configure"];function SS(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Fu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?SS(Object(n),!0).forEach(function(r){Dm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):SS(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Dm(t,e,n){return e=D4(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function D4(t){var e=M4(t,"string");return Bl(e)==="symbol"?e:String(e)}function M4(t,e){if(Bl(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Bl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function k4(t,e){if(t==null)return{};var n=B4(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function B4(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function wS(t){t.configure;var e=k4(t,F4);return e}function H4(){return{$$type:"ais.simple",stateToRoute:function(e){return Object.keys(e).reduce(function(n,r){return Fu(Fu({},n),{},Dm({},r,wS(e[r])))},{})},routeToState:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(n,r){return Fu(Fu({},n),{},Dm({},r,wS(e[r])))},{})}}}function Hl(t){"@babel/helpers - typeof";return Hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hl(t)}function AS(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Du(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?AS(Object(n),!0).forEach(function(r){Ux(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):AS(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ux(t,e,n){return e=q4(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function q4(t){var e=W4(t,"string");return Hl(e)==="symbol"?e:String(e)}function W4(t,e){if(Hl(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Hl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var U4=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.router,r=n===void 0?L4():n,i=e.stateMapping,o=i===void 0?H4():i,s=e.$$internal,a=s===void 0?!1:s;return function(l){var c=l.instantSearchInstance;function u(d){var p=c.mainIndex.getWidgets().length===0?c._initialUiState:c.mainIndex.getWidgetUiState({}),m=Object.keys(d).reduce(function(v,b){return Du(Du({},v),{},Ux({},b,d[b]))},p),g=o.stateToRoute(m);return r.createURL(g)}c._createURL=u;var f=void 0,h=c._initialUiState;return{$$type:"ais.router({router:".concat(r.$$type||"__unknown__",", stateMapping:").concat(o.$$type||"__unknown__","})"),$$internal:a,onStateChange:function(p){var m=p.uiState,g=o.stateToRoute(m);(f===void 0||!Nl(f,g))&&(r.write(g),f=g)},subscribe:function(){c._initialUiState=Du(Du({},h),o.routeToState(r.read())),r.onUpdate(function(p){c.mainIndex.getWidgets().length>0&&c.setUiState(o.routeToState(p))})},started:function(){var p;(p=r.start)===null||p===void 0||p.call(r)},unsubscribe:function(){r.dispose()}}}};function ql(t){"@babel/helpers - typeof";return ql=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ql(t)}var Q4=["initialSearchParameters"];function OS(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function qn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?OS(Object(n),!0).forEach(function(r){ko(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):OS(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ko(t,e,n){return e=z4(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function z4(t){var e=K4(t,"string");return ql(e)==="symbol"?e:String(e)}function K4(t,e){if(ql(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(ql(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Qx(t){return Z4(t)||J4(t)||Y4(t)||G4()}function G4(){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 Y4(t,e){if(t){if(typeof t=="string")return Mm(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mm(t,e)}}function J4(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Z4(t){if(Array.isArray(t))return Mm(t)}function Mm(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function X4(t,e){if(t==null)return{};var n=e6(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function e6(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var Zs=tn({name:"index-widget"});function zx(t,e){var n=e.state,r=e.isPageReset,i=e._uiState;n!==t.state&&(t.state=n,t.emit("change",{state:t.state,results:t.lastResults,isPageReset:r,_uiState:i}))}function Xs(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t.reduce(function(r,i){return mo(i)||!i.getWidgetUiState&&!i.getWidgetState?r:i.getWidgetUiState?i.getWidgetUiState(r,e):i.getWidgetState(r,e)},n)}function ea(t,e){var n=e.initialSearchParameters,r=X4(e,Q4);return t.filter(function(i){return!mo(i)}).reduce(function(i,o){return o.getWidgetSearchParameters?o.getWidgetSearchParameters(i,r):i},n)}function Kx(t){var e=t.filter(mo);e.length!==0&&e.forEach(function(n){var r=n.getHelper();zx(r,{state:r.state.resetPage(),isPageReset:!0}),Kx(n.getWidgets())})}function Gx(t){var e=t.filter(mo);return e.reduce(function(n,r){return n.concat.apply(n,[{indexId:r.getIndexId(),results:r.getResults(),helper:r.getHelper()}].concat(Qx(Gx(r.getWidgets()))))},[])}var t6=function(e){if(e===void 0||e.indexName===void 0)throw new Error(Zs("The `indexName` option is required."));var n=e.indexName,r=e.indexId,i=r===void 0?n:r,o=[],s={},a=null,l=null,c=null,u=null,f=null;return{$$type:"ais.index",$$widgetType:"ais.index",getIndexName:function(){return n},getIndexId:function(){return i},getHelper:function(){return c},getResults:function(){var d;return(d=u)!==null&&d!==void 0&&d.lastResults?(u.lastResults._state=c.state,u.lastResults):null},getPreviousState:function(){return f},getScopedResults:function(){var d=this.getParent(),p=d?d.getWidgets():[this];return Gx(p)},getParent:function(){return l},createURL:function(d){return typeof d=="function"?a._createURL(ko({},i,d(s))):a._createURL(ko({},i,Xs(o,{searchParameters:d,helper:c})))},getWidgets:function(){return o},addWidgets:function(d){var p=this;if(!Array.isArray(d))throw new Error(Zs("The `addWidgets` method expects an array of widgets."));if(d.some(function(m){return typeof m.init!="function"&&typeof m.render!="function"}))throw new Error(Zs("The widget definition expects a `render` and/or an `init` method."));return o=o.concat(d),a&&d.length&&(zx(c,{state:ea(o,{uiState:s,initialSearchParameters:c.state}),_uiState:s}),d.forEach(function(m){if(m.getRenderState){var g=m.getRenderState(a.renderState[p.getIndexId()]||{},aa(a,p,a._initialUiState));np({renderState:g,instantSearchInstance:a,parent:p})}}),d.forEach(function(m){m.init&&m.init(aa(a,p,a._initialUiState))}),a.scheduleSearch()),this},removeWidgets:function(d){var p=this;if(!Array.isArray(d))throw new Error(Zs("The `removeWidgets` method expects an array of widgets."));if(d.some(function(v){return typeof v.dispose!="function"}))throw new Error(Zs("The widget definition expects a `dispose` method."));if(o=o.filter(function(v){return d.indexOf(v)===-1}),a&&d.length){var m=d.reduce(function(v,b){var y=b.dispose({helper:c,state:v,parent:p});return y||v},c.state),g=a.future.preserveSharedStateOnUnmount?ea(o,{uiState:s,initialSearchParameters:new En.SearchParameters({index:this.getIndexName()})}):ea(o,{uiState:Xs(o,{searchParameters:m,helper:c}),initialSearchParameters:m});s=Xs(o,{searchParameters:g,helper:c}),c.setState(g),o.length&&a.scheduleSearch()}return this},init:function(d){var p=this,m,g=d.instantSearchInstance,v=d.parent,b=d.uiState;if(c===null){a=g,l=v,s=b[i]||{};var y=g.mainHelper,_=ea(o,{uiState:s,initialSearchParameters:new En.SearchParameters({index:n})});c=En({},_.index,_),c.search=function(){return g.onStateChange?(g.onStateChange({uiState:g.mainIndex.getWidgetUiState({}),setUiState:function(S){return g.setUiState(S,!1)}}),y):y.search()},c.searchWithoutTriggeringOnStateChange=function(){return y.search()},c.searchForFacetValues=function(x,S,w,O){var P=c.state.setQueryParameters(O);return y.searchForFacetValues(x,S,w,P)},u=y.derive(function(){return xa.apply(void 0,[y.state].concat(Qx(_q(p))))});var A=(m=g._initialResults)===null||m===void 0?void 0:m[this.getIndexId()];if(A){var C=new En.SearchResults(new En.SearchParameters(A.state),A.results);u.lastResults=C,c.lastResults=C}c.on("change",function(x){var S=x.isPageReset;S&&Kx(o)}),u.on("search",function(){g.scheduleStalledRender()}),u.on("result",function(x){var S=x.results;g.scheduleRender(),c.lastResults=S,f=S==null?void 0:S._state}),o.forEach(function(x){if(x.getRenderState){var S=x.getRenderState(g.renderState[p.getIndexId()]||{},aa(g,p,b));np({renderState:S,instantSearchInstance:g,parent:p})}}),o.forEach(function(x){x.init&&x.init(aa(g,p,b))}),c.on("change",function(x){var S=x.state,w=x._uiState;s=Xs(o,{searchParameters:S,helper:c},w||{}),g.onStateChange||g.onInternalStateChange()}),A&&g.scheduleRender()}},render:function(d){var p=this,m=d.instantSearchInstance;m.status==="error"&&!m.mainHelper.hasPendingRequests()&&f&&c.setState(f);var g=this.getResults()?o:o.filter(mo);g.forEach(function(v){if(v.getRenderState){var b=v.getRenderState(m.renderState[p.getIndexId()]||{},iS(m,p));np({renderState:b,instantSearchInstance:m,parent:p})}}),g.forEach(function(v){v.render&&v.render(iS(m,p))})},dispose:function(){var d=this,p,m;o.forEach(function(g){g.dispose&&g.dispose({helper:c,state:c.state,parent:d})}),a=null,l=null,(p=c)===null||p===void 0||p.removeAllListeners(),c=null,(m=u)===null||m===void 0||m.detach(),u=null},getWidgetUiState:function(d){return o.filter(mo).reduce(function(p,m){return m.getWidgetUiState(p)},qn(qn({},d),{},ko({},i,qn(qn({},d[i]),s))))},getWidgetState:function(d){return this.getWidgetUiState(d)},getWidgetSearchParameters:function(d,p){var m=p.uiState;return ea(o,{uiState:m,initialSearchParameters:d})},refreshUiState:function(){s=Xs(o,{searchParameters:this.getHelper().state,helper:this.getHelper()},s)},setIndexUiState:function(d){var p=typeof d=="function"?d(s):d;a.setUiState(function(m){return qn(qn({},m),{},ko({},i,p))})}}};const n6=t6;function np(t){var e=t.renderState,n=t.instantSearchInstance,r=t.parent,i=r?r.getIndexId():n.mainIndex.getIndexId();n.renderState=qn(qn({},n.renderState),{},ko({},i,qn(qn({},n.renderState[i]),e)))}function Wl(t,e){return t.toLocaleString(e)}function Ul(t){"@babel/helpers - typeof";return Ul=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ul(t)}function ES(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function sr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ES(Object(n),!0).forEach(function(r){r6(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ES(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function r6(t,e,n){return e=i6(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i6(t){var e=o6(t,"string");return Ul(e)==="symbol"?e:String(e)}function o6(t,e){if(Ul(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ul(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function s6(t){var e=t.numberLocale;return{formatNumber:function(r,i){return Wl(Number(i(r)),e)},highlight:function(r,i){try{var o=JSON.parse(r);return i(dx(sr(sr({},o),{},{hit:this})))}catch{throw new Error(` The highlight helper expects a JSON object of the format: { "attribute": "name", "highlightedTagName": "mark" }`)}},reverseHighlight:function(r,i){try{var o=JSON.parse(r);return i(hx(sr(sr({},o),{},{hit:this})))}catch{throw new Error(` The reverseHighlight helper expects a JSON object of the format: { "attribute": "name", "highlightedTagName": "mark" }`)}},snippet:function(r,i){try{var o=JSON.parse(r);return i(px(sr(sr({},o),{},{hit:this})))}catch{throw new Error(` The snippet helper expects a JSON object of the format: { "attribute": "name", "highlightedTagName": "mark" }`)}},reverseSnippet:function(r,i){try{var o=JSON.parse(r);return i(mx(sr(sr({},o),{},{hit:this})))}catch{throw new Error(` The reverseSnippet helper expects a JSON object of the format: { "attribute": "name", "highlightedTagName": "mark" }`)}},insights:function(r,i){try{var o=JSON.parse(r),s=o.method,a=o.payload;return i(gx(s,sr({objectIDs:[this.objectID]},a)))}catch{throw new Error(` The insights helper expects a JSON object of the format: { "method": "method-name", "payload": { "eventName": "name of the event" } }`)}}}}const Yx="4.64.1";function _s(t){"@babel/helpers - typeof";return _s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_s(t)}function PS(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function rp(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?PS(Object(n),!0).forEach(function(r){Le(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):PS(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function a6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xS(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Jx(r.key),r)}}function l6(t,e,n){return e&&xS(t.prototype,e),n&&xS(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function c6(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&km(t,e)}function km(t,e){return km=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},km(t,e)}function u6(t){var e=d6();return function(){var r=Kf(t),i;if(e){var o=Kf(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return f6(this,i)}}function f6(t,e){if(e&&(_s(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return je(t)}function je(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d6(){if(typeof Reflect>"u"||!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 Kf(t){return Kf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kf(t)}function Le(t,e,n){return e=Jx(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Jx(t){var e=h6(t,"string");return _s(e)==="symbol"?e:String(e)}function h6(t,e){if(_s(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(_s(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Mn=tn({name:"instantsearch"});function p6(){return"#"}var m6={preserveSharedStateOnUnmount:!1,persistHierarchicalRootCount:!1},g6=function(t){c6(n,t);var e=u6(n);function n(r){var i;a6(this,n),i=e.call(this),Le(je(i),"client",void 0),Le(je(i),"indexName",void 0),Le(je(i),"insightsClient",void 0),Le(je(i),"onStateChange",null),Le(je(i),"future",void 0),Le(je(i),"helper",void 0),Le(je(i),"mainHelper",void 0),Le(je(i),"mainIndex",void 0),Le(je(i),"started",void 0),Le(je(i),"templatesConfig",void 0),Le(je(i),"renderState",{}),Le(je(i),"_stalledSearchDelay",void 0),Le(je(i),"_searchStalledTimer",void 0),Le(je(i),"_initialUiState",void 0),Le(je(i),"_initialResults",void 0),Le(je(i),"_createURL",void 0),Le(je(i),"_searchFunction",void 0),Le(je(i),"_mainHelperSearch",void 0),Le(je(i),"_insights",void 0),Le(je(i),"middleware",[]),Le(je(i),"sendEventToInsights",void 0),Le(je(i),"status","idle"),Le(je(i),"error",void 0),Le(je(i),"scheduleSearch",Gs(function(){i.started&&i.mainHelper.search()})),Le(je(i),"scheduleRender",Gs(function(){var P,T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;(P=i.mainHelper)!==null&&P!==void 0&&P.hasPendingRequests()||(clearTimeout(i._searchStalledTimer),i._searchStalledTimer=null,T&&(i.status="idle",i.error=void 0)),i.mainIndex.render({instantSearchInstance:je(i)}),i.emit("render")})),Le(je(i),"onInternalStateChange",Gs(function(){var P=i.mainIndex.getWidgetUiState({});i.middleware.forEach(function(T){var R=T.instance;R.onStateChange({uiState:P})})})),i.setMaxListeners(100);var o=r.indexName,s=o===void 0?"":o,a=r.numberLocale,l=r.initialUiState,c=l===void 0?{}:l,u=r.routing,f=u===void 0?null:u,h=r.insights,d=h===void 0?void 0:h,p=r.searchFunction,m=r.stalledSearchDelay,g=m===void 0?200:m,v=r.searchClient,b=v===void 0?null:v,y=r.insightsClient,_=y===void 0?null:y,A=r.onStateChange,C=A===void 0?null:A,x=r.future,S=x===void 0?rp(rp({},m6),r.future||{}):x;if(b===null)throw new Error(Mn("The `searchClient` option is required."));if(typeof b.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 b.addAlgoliaAgent=="function"&&b.addAlgoliaAgent("instantsearch.js (".concat(Yx,")")),_&&typeof _!="function")throw new Error(Mn("The `insightsClient` option should be a function."));if(i.client=b,i.future=S,i.insightsClient=_,i.indexName=s,i.helper=null,i.mainHelper=null,i.mainIndex=n6({indexName:s}),i.onStateChange=C,i.started=!1,i.templatesConfig={helpers:s6({numberLocale:a}),compileOptions:{}},i._stalledSearchDelay=g,i._searchStalledTimer=null,i._createURL=p6,i._initialUiState=c,i._initialResults=null,i._insights=d,p&&(i._searchFunction=p),i.sendEventToInsights=Qe,f){var w=typeof f=="boolean"?{}:f;w.$$internal=!0,i.use(U4(w))}if(d){var O=typeof d=="boolean"?{}:d;O.$$internal=!0,i.use(pS(O))}return Y5()&&i.use(J5({$$internal:!0})),i}return l6(n,[{key:"_isSearchStalled",get:function(){return this.status==="stalled"}},{key:"use",value:function(){for(var i=this,o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var l=s.map(function(c){var u=rp({$$type:"__unknown__",$$internal:!1,subscribe:Qe,started:Qe,unsubscribe:Qe,onStateChange:Qe},c({instantSearchInstance:i}));return i.middleware.push({creator:c,instance:u}),u});return this.started&&l.forEach(function(c){c.subscribe(),c.started()}),this}},{key:"unuse",value:function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return this.middleware.filter(function(a){return o.includes(a.creator)}).forEach(function(a){return a.instance.unsubscribe()}),this.middleware=this.middleware.filter(function(a){return!o.includes(a.creator)}),this}},{key:"EXPERIMENTAL_use",value:function(){return this.use.apply(this,arguments)}},{key:"addWidget",value:function(i){return this.addWidgets([i])}},{key:"addWidgets",value:function(i){if(!Array.isArray(i))throw new Error(Mn("The `addWidgets` method expects an array of widgets. Please use `addWidget`."));if(i.some(function(o){return typeof o.init!="function"&&typeof o.render!="function"}))throw new Error(Mn("The widget definition expects a `render` and/or an `init` method."));return this.mainIndex.addWidgets(i),this}},{key:"removeWidget",value:function(i){return this.removeWidgets([i])}},{key:"removeWidgets",value:function(i){if(!Array.isArray(i))throw new Error(Mn("The `removeWidgets` method expects an array of widgets. Please use `removeWidget`."));if(i.some(function(o){return typeof o.dispose!="function"}))throw new Error(Mn("The widget definition expects a `dispose` method."));return this.mainIndex.removeWidgets(i),this}},{key:"start",value:function(){var i=this;if(this.started)throw new Error(Mn("The `start` method has already been called once."));var o=this.mainHelper||En(this.client,this.indexName,void 0,{persistHierarchicalRootCount:this.future.persistHierarchicalRootCount});if(o.search=function(){return i.status="loading",i.scheduleRender(!1),o.searchOnlyWithDerivedHelpers()},this._searchFunction){var s={search:function(){return new Promise(Qe)}};this._mainHelperSearch=o.search.bind(o),o.search=function(){var l=i.mainIndex.getHelper(),c=En(s,l.state.index,l.state);return c.once("search",function(u){var f=u.state;l.overrideStateWithoutTriggeringChangeEvent(f),i._mainHelperSearch()}),c.on("change",function(u){var f=u.state;l.setState(f)}),i._searchFunction(c),o}}if(o.on("error",function(l){var c=l.error;if(!(c instanceof Error)){var u=c;c=Object.keys(u).reduce(function(f,h){return f[h]=u[h],f},new Error(u.message))}c.error=c,i.error=c,i.status="error",i.scheduleRender(!1),i.emit("error",c)}),this.mainHelper=o,this.middleware.forEach(function(l){var c=l.instance;c.subscribe()}),this.mainIndex.init({instantSearchInstance:this,parent:null,uiState:this._initialUiState}),this._initialResults){G3(this.client,this._initialResults);var a=this.scheduleSearch;this.scheduleSearch=Gs(Qe),Gs(function(){i.scheduleSearch=a})()}else this.mainIndex.getWidgets().length>0&&this.scheduleSearch();this.helper=this.mainIndex.getHelper(),this.started=!0,this.middleware.forEach(function(l){var c=l.instance;c.started()}),typeof this._insights>"u"&&o.derivedHelpers[0].once("result",function(){var l=i.mainIndex.getScopedResults().some(function(c){var u=c.results;return u==null?void 0:u._automaticInsights});l&&i.use(pS({$$internal:!0,$$automatic:!0}))})}},{key:"dispose",value:function(){var i;this.scheduleSearch.cancel(),this.scheduleRender.cancel(),clearTimeout(this._searchStalledTimer),this.removeWidgets(this.mainIndex.getWidgets()),this.mainIndex.dispose(),this.started=!1,this.removeAllListeners(),(i=this.mainHelper)===null||i===void 0||i.removeAllListeners(),this.mainHelper=null,this.helper=null,this.middleware.forEach(function(o){var s=o.instance;s.unsubscribe()})}},{key:"scheduleStalledRender",value:function(){var i=this;this._searchStalledTimer||(this._searchStalledTimer=setTimeout(function(){i.status="stalled",i.scheduleRender()},this._stalledSearchDelay))}},{key:"setUiState",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!this.mainHelper)throw new Error(Mn("The `start` method needs to be called before `setUiState`."));this.mainIndex.refreshUiState();var a=typeof i=="function"?i(this.mainIndex.getWidgetUiState({})):i;this.onStateChange&&s?this.onStateChange({uiState:a,setUiState:function(c){Cm(typeof c=="function"?c(a):c,o.mainIndex),o.scheduleSearch(),o.onInternalStateChange()}}):(Cm(a,this.mainIndex),this.scheduleSearch(),this.onInternalStateChange())}},{key:"getUiState",value:function(){return this.started&&this.mainIndex.refreshUiState(),this.mainIndex.getWidgetUiState({})}},{key:"createURL",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.started)throw new Error(Mn("The `start` method needs to be called before `createURL`."));return this._createURL(i)}},{key:"refresh",value:function(){if(!this.mainHelper)throw new Error(Mn("The `start` method needs to be called before `refresh`."));this.mainHelper.clearCache().search()}}]),n}(Fq);const v6=g6;var Ln=function(e){return new v6(e)};Ln.version=Yx;Ln.createInfiniteHitsSessionStorageCache=Mc(Nq);Ln.highlight=Mc(dx);Ln.reverseHighlight=Mc(hx);Ln.snippet=Mc(px);Ln.reverseSnippet=Mc(mx);Ln.insights=gx;Ln.getInsightsAnonymousUserToken=Rq;Object.defineProperty(Ln,"widgets",{get:function(){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(Ln,"connectors",{get:function(){throw new ReferenceError(`"instantsearch.connectors" are not available from the ES build. To import the connectors: import { connectSearchBox } from 'instantsearch.js/es/connectors'`)}});const Hc=Ln;function ve(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce(function(r,i){return Array.isArray(i)?r.concat(i):r.concat([i])},[]).filter(Boolean).join(" ")}function Ql(t){"@babel/helpers - typeof";return Ql=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ql(t)}function CS(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function y6(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?CS(Object(n),!0).forEach(function(r){b6(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):CS(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function b6(t,e,n){return e=_6(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _6(t){var e=S6(t,"string");return Ql(e)==="symbol"?e:String(e)}function S6(t,e){if(Ql(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ql(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function TS(t){return E6(t)||O6(t)||A6(t)||w6()}function w6(){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 A6(t,e){if(t){if(typeof t=="string")return Bm(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bm(t,e)}}function O6(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function E6(t){if(Array.isArray(t))return Bm(t)}function Bm(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function P6(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=ty([].concat(TS(Object.keys(t||{})),TS(Object.keys(e))));return n.reduce(function(r,i){var o=t?t[i]:void 0,s=e[i],a=s!==void 0&&s!==o;return r.templates[i]=a?s:o,r.useCustomCompileOptions[i]=a,r},{templates:{},useCustomCompileOptions:{}})}function Zx(t){var e=t.defaultTemplates,n=t.templates,r=t.templatesConfig,i=P6(e,n);return y6({templatesConfig:r},i)}var Xx={};(function(t){(function(e){var n=/\S/,r=/\"/g,i=/\n/g,o=/\r/g,s=/\\/g,a=/\u2028/,l=/\u2029/;e.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(w,O){var P=w.length,T=0,R=1,M=2,k=T,B=null,z=null,Q="",G=[],K=!1,te=0,ue=0,Se="{{",ye="}}";function q(){Q.length>0&&(G.push({tag:"_t",text:new String(Q)}),Q="")}function D(){for(var N=!0,W=ue;W<G.length;W++)if(N=e.tags[G[W].tag]<e.tags._v||G[W].tag=="_t"&&G[W].text.match(n)===null,!N)return!1;return N}function V(N,W){if(q(),N&&D())for(var re=ue,ae;re<G.length;re++)G[re].text&&((ae=G[re+1])&&ae.tag==">"&&(ae.indent=G[re].text.toString()),G.splice(re,1));else W||G.push({tag:` `});K=!1,ue=G.length}function F(N,W){var re="="+ye,ae=N.indexOf(re,W),E=u(N.substring(N.indexOf("=",W)+1,ae)).split(" ");return Se=E[0],ye=E[E.length-1],ae+re.length-1}for(O&&(O=O.split(" "),Se=O[0],ye=O[1]),te=0;te<P;te++)k==T?f(Se,w,te)?(--te,q(),k=R):w.charAt(te)==` `?V(K):Q+=w.charAt(te):k==R?(te+=Se.length-1,z=e.tags[w.charAt(te+1)],B=z?w.charAt(te+1):"_v",B=="="?(te=F(w,te),k=T):(z&&te++,k=M),K=te):f(ye,w,te)?(G.push({tag:B,n:u(Q),otag:Se,ctag:ye,i:B=="/"?K-Se.length:te+ye.length}),Q="",te+=ye.length-1,k=T,B=="{"&&(ye=="}}"?te++:c(G[G.length-1]))):Q+=w.charAt(te);return V(K,!0),G};function c(S){S.n.substr(S.n.length-1)==="}"&&(S.n=S.n.substring(0,S.n.length-1))}function u(S){return S.trim?S.trim():S.replace(/^\s*|\s*$/g,"")}function f(S,w,O){if(w.charAt(O)!=S.charAt(0))return!1;for(var P=1,T=S.length;P<T;P++)if(w.charAt(O+P)!=S.charAt(P))return!1;return!0}var h={_t:!0,"\n":!0,$:!0,"/":!0};function d(S,w,O,P){var T=[],R=null,M=null,k=null;for(M=O[O.length-1];S.length>0;){if(k=S.shift(),M&&M.tag=="<"&&!(k.tag in h))throw new Error("Illegal content in < super tag.");if(e.tags[k.tag]<=e.tags.$||p(k,P))O.push(k),k.nodes=d(S,k.tag,O,P);else if(k.tag=="/"){if(O.length===0)throw new Error("Closing tag without opener: /"+k.n);if(R=O.pop(),k.n!=R.n&&!m(k.n,R.n,P))throw new Error("Nesting error: "+R.n+" vs. "+k.n);return R.end=k.i,T}else k.tag==` `&&(k.last=S.length==0||S[0].tag==` `);T.push(k)}if(O.length>0)throw new Error("missing closing tag: "+O.pop().n);return T}function p(S,w){for(var O=0,P=w.length;O<P;O++)if(w[O].o==S.n)return S.tag="#",!0}function m(S,w,O){for(var P=0,T=O.length;P<T;P++)if(O[P].c==S&&O[P].o==w)return!0}function g(S){var w=[];for(var O in S)w.push('"'+y(O)+'": function(c,p,t,i) {'+S[O]+"}");return"{ "+w.join(",")+" }"}function v(S){var w=[];for(var O in S.partials)w.push('"'+y(O)+'":{name:"'+y(S.partials[O].name)+'", '+v(S.partials[O])+"}");return"partials: {"+w.join(",")+"}, subs: "+g(S.subs)}e.stringify=function(S,w,O){return"{code: function (c,p,i) { "+e.wrapMain(S.code)+" },"+v(S)+"}"};var b=0;e.generate=function(S,w,O){b=0;var P={code:"",subs:{},partials:{}};return e.walk(S,P),O.asString?this.stringify(P,w,O):this.makeTemplate(P,w,O)},e.wrapMain=function(S){return'var t=this;t.b(i=i||"");'+S+"return t.fl();"},e.template=e.Template,e.makeTemplate=function(S,w,O){var P=this.makePartials(S);return P.code=new Function("c","p","i",this.wrapMain(S.code)),new this.template(P,w,this,O)},e.makePartials=function(S){var w,O={subs:{},partials:S.partials,name:S.name};for(w in O.partials)O.partials[w]=this.makePartials(O.partials[w]);for(w in S.subs)O.subs[w]=new Function("c","p","t","i",S.subs[w]);return O};function y(S){return S.replace(s,"\\\\").replace(r,'\\"').replace(i,"\\n").replace(o,"\\r").replace(a,"\\u2028").replace(l,"\\u2029")}function _(S){return~S.indexOf(".")?"d":"f"}function A(S,w){var O="<"+(w.prefix||""),P=O+S.n+b++;return w.partials[P]={name:S.n,partials:{}},w.code+='t.b(t.rp("'+y(P)+'",c,p,"'+(S.indent||"")+'"));',P}e.codegen={"#":function(S,w){w.code+="if(t.s(t."+_(S.n)+'("'+y(S.n)+'",c,p,1),c,p,0,'+S.i+","+S.end+',"'+S.otag+" "+S.ctag+'")){t.rs(c,p,function(c,p,t){',e.walk(S.nodes,w),w.code+="});c.pop();}"},"^":function(S,w){w.code+="if(!t.s(t."+_(S.n)+'("'+y(S.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(S.nodes,w),w.code+="};"},">":A,"<":function(S,w){var O={partials:{},code:"",subs:{},inPartial:!0};e.walk(S.nodes,O);var P=w.partials[A(S,w)];P.subs=O.subs,P.partials=O.partials},$:function(S,w){var O={subs:{},code:"",partials:w.partials,prefix:S.n};e.walk(S.nodes,O),w.subs[S.n]=O.code,w.inPartial||(w.code+='t.sub("'+y(S.n)+'",c,p,i);')},"\n":function(S,w){w.code+=x('"\\n"'+(S.last?"":" + i"))},_v:function(S,w){w.code+="t.b(t.v(t."+_(S.n)+'("'+y(S.n)+'",c,p,0)));'},_t:function(S,w){w.code+=x('"'+y(S.text)+'"')},"{":C,"&":C};function C(S,w){w.code+="t.b(t.t(t."+_(S.n)+'("'+y(S.n)+'",c,p,0)));'}function x(S){return"t.b("+S+");"}e.walk=function(S,w){for(var O,P=0,T=S.length;P<T;P++)O=e.codegen[S[P].tag],O&&O(S[P],w);return w},e.parse=function(S,w,O){return O=O||{},d(S,"",[],O.sectionTags||[])},e.cache={},e.cacheKey=function(S,w){return[S,!!w.asString,!!w.disableLambda,w.delimiters,!!w.modelGet].join("||")},e.compile=function(S,w){w=w||{};var O=e.cacheKey(S,w),P=this.cache[O];if(P){var T=P.partials;for(var R in T)delete T[R].instance;return P}return P=this.generate(this.parse(this.scan(S,w.delimiters),S,w),S,w),this.cache[O]=P}})(t)})(Xx);var eC={};(function(t){(function(e){e.Template=function(d,p,m,g){d=d||{},this.r=d.code||this.r,this.c=m,this.options=g||{},this.text=p||"",this.partials=d.partials||{},this.subs=d.subs||{},this.buf=""},e.Template.prototype={r:function(d,p,m){return""},v:f,t:u,render:function(p,m,g){return this.ri([p],m||{},g)},ri:function(d,p,m){return this.r(d,p,m)},ep:function(d,p){var m=this.partials[d],g=p[m.name];if(m.instance&&m.base==g)return m.instance;if(typeof g=="string"){if(!this.c)throw new Error("No compiler available.");g=this.c.compile(g,this.options)}if(!g)return null;if(this.partials[d].base=g,m.subs){p.stackText||(p.stackText={});for(key in m.subs)p.stackText[key]||(p.stackText[key]=this.activeSub!==void 0&&p.stackText[this.activeSub]?p.stackText[this.activeSub]:this.text);g=r(g,m.subs,m.partials,this.stackSubs,this.stackPartials,p.stackText)}return this.partials[d].instance=g,g},rp:function(d,p,m,g){var v=this.ep(d,m);return v?v.ri(p,m,g):""},rs:function(d,p,m){var g=d[d.length-1];if(!h(g)){m(d,p,this);return}for(var v=0;v<g.length;v++)d.push(g[v]),m(d,p,this),d.pop()},s:function(d,p,m,g,v,b,y){var _;return h(d)&&d.length===0?!1:(typeof d=="function"&&(d=this.ms(d,p,m,g,v,b,y)),_=!!d,!g&&_&&p&&p.push(typeof d=="object"?d:p[p.length-1]),_)},d:function(d,p,m,g){var v,b=d.split("."),y=this.f(b[0],p,m,g),_=this.options.modelGet,A=null;if(d==="."&&h(p[p.length-2]))y=p[p.length-1];else for(var C=1;C<b.length;C++)v=n(b[C],y,_),v!==void 0?(A=y,y=v):y="";return g&&!y?!1:(!g&&typeof y=="function"&&(p.push(A),y=this.mv(y,p,m),p.pop()),y)},f:function(d,p,m,g){for(var v=!1,b=null,y=!1,_=this.options.modelGet,A=p.length-1;A>=0;A--)if(b=p[A],v=n(d,b,_),v!==void 0){y=!0;break}return y?(!g&&typeof v=="function"&&(v=this.mv(v,p,m)),v):g?!1:""},ls:function(d,p,m,g,v){var b=this.options.delimiters;return this.options.delimiters=v,this.b(this.ct(u(d.call(p,g)),p,m)),this.options.delimiters=b,!1},ct:function(d,p,m){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(d,this.options).render(p,m)},b:function(d){this.buf+=d},fl:function(){var d=this.buf;return this.buf="",d},ms:function(d,p,m,g,v,b,y){var _,A=p[p.length-1],C=d.call(A);return typeof C=="function"?g?!0:(_=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(C,A,m,_.substring(v,b),y)):C},mv:function(d,p,m){var g=p[p.length-1],v=d.call(g);return typeof v=="function"?this.ct(u(v.call(g)),g,m):v},sub:function(d,p,m,g){var v=this.subs[d];v&&(this.activeSub=d,v(p,m,this,g),this.activeSub=!1)}};function n(d,p,m){var g;return p&&typeof p=="object"&&(p[d]!==void 0?g=p[d]:m&&p.get&&typeof p.get=="function"&&(g=p.get(d))),g}function r(d,p,m,g,v,b){function y(){}y.prototype=d;function _(){}_.prototype=d.subs;var A,C=new y;C.subs=new _,C.subsText={},C.buf="",g=g||{},C.stackSubs=g,C.subsText=b;for(A in p)g[A]||(g[A]=p[A]);for(A in g)C.subs[A]=g[A];v=v||{},C.stackPartials=v;for(A in m)v[A]||(v[A]=m[A]);for(A in v)C.partials[A]=v[A];return C}var i=/&/g,o=/</g,s=/>/g,a=/\'/g,l=/\"/g,c=/[&<>\"\']/;function u(d){return String(d??"")}function f(d){return d=u(d),c.test(d)?d.replace(i,"&").replace(o,"<").replace(s,">").replace(a,"'").replace(l,"""):d}var h=Array.isArray||function(d){return Object.prototype.toString.call(d)==="[object Array]"}})(t)})(eC);var Gf=Xx;Gf.Template=eC.Template;Gf.template=Gf.Template;var x6=Gf;const tC=Ps(x6);var C6=JA.bind(me);function Hm(){return Hm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Hm.apply(this,arguments)}function T6(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function I6(t,e){if(t==null)return{};var n=T6(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}var R6=["parts","highlightedTagName","nonHighlightedTagName","separator","className","classNames"];function $6(t){var e=t.createElement;return function(r){var i=r.classNames,o=r.children,s=r.highlightedTagName,a=r.isHighlighted,l=r.nonHighlightedTagName,c=a?s:l;return e(c,{className:a?i.highlighted:i.nonHighlighted},o)}}function V6(t){var e=t.createElement,n=t.Fragment,r=$6({createElement:e,Fragment:n});return function(o){var s=o.parts,a=o.highlightedTagName,l=a===void 0?"mark":a,c=o.nonHighlightedTagName,u=c===void 0?"span":c,f=o.separator,h=f===void 0?", ":f,d=o.className,p=o.classNames,m=p===void 0?{}:p,g=I6(o,R6);return e("span",Hm({},g,{className:ve(m.root,d)}),s.map(function(v,b){var y=b===s.length-1;return e(n,{key:b},v.map(function(_,A){return e(r,{key:A,classNames:m,highlightedTagName:l,nonHighlightedTagName:u,isHighlighted:_.isHighlighted},_.value)}),!y&&e("span",{className:m.separator},h))}))}}var Yd=V6({createElement:me,Fragment:Cs}),j6=["classNames"];function qm(){return qm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},qm.apply(this,arguments)}function N6(t,e){if(t==null)return{};var n=L6(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function L6(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function F6(t){var e=t.classNames,n=e===void 0?{}:e,r=N6(t,j6);return me(Yd,qm({classNames:{root:ve("ais-Highlight",n.root),highlighted:ve("ais-Highlight-highlighted",n.highlighted),nonHighlighted:ve("ais-Highlight-nonHighlighted",n.nonHighlighted),separator:ve("ais-Highlight-separator",n.separator)}},r))}var D6=["hit","attribute","cssClasses"];function Wm(){return Wm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Wm.apply(this,arguments)}function M6(t,e){if(t==null)return{};var n=k6(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function k6(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function B6(t){var e=t.hit,n=t.attribute,r=t.cssClasses,i=M6(t,D6),o=hi(e._highlightResult,n)||[],s=Qd(o),a=s.map(function(l){var c=l.value;return Ns(kc(c||""))});return me(F6,Wm({},i,{parts:a,classNames:r}))}var H6=["classNames"];function Um(){return Um=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Um.apply(this,arguments)}function q6(t,e){if(t==null)return{};var n=W6(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function W6(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function U6(t){var e=t.classNames,n=e===void 0?{}:e,r=q6(t,H6);return me(Yd,Um({classNames:{root:ve("ais-ReverseHighlight",n.root),highlighted:ve("ais-ReverseHighlight-highlighted",n.highlighted),nonHighlighted:ve("ais-ReverseHighlight-nonHighlighted",n.nonHighlighted),separator:ve("ais-ReverseHighlight-separator",n.separator)}},r))}function zl(t){"@babel/helpers - typeof";return zl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zl(t)}var Q6=["hit","attribute","cssClasses"],z6=["isHighlighted"];function Qm(){return Qm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Qm.apply(this,arguments)}function IS(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function RS(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?IS(Object(n),!0).forEach(function(r){K6(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):IS(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function K6(t,e,n){return e=G6(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function G6(t){var e=Y6(t,"string");return zl(e)==="symbol"?e:String(e)}function Y6(t,e){if(zl(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(zl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function $S(t,e){if(t==null)return{};var n=J6(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function J6(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function Z6(t){var e=t.hit,n=t.attribute,r=t.cssClasses,i=$S(t,Q6),o=hi(e._highlightResult,n)||[],s=Qd(o),a=s.map(function(l){var c=l.value;return Ns(kc(c||"")).map(function(u){var f=u.isHighlighted,h=$S(u,z6);return RS(RS({},h),{},{isHighlighted:!f})})});return me(U6,Qm({},i,{parts:a,classNames:r}))}var X6=["classNames"];function zm(){return zm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},zm.apply(this,arguments)}function eW(t,e){if(t==null)return{};var n=tW(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function tW(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function nW(t){var e=t.classNames,n=e===void 0?{}:e,r=eW(t,X6);return me(Yd,zm({classNames:{root:ve("ais-ReverseSnippet",n.root),highlighted:ve("ais-ReverseSnippet-highlighted",n.highlighted),nonHighlighted:ve("ais-ReverseSnippet-nonHighlighted",n.nonHighlighted),separator:ve("ais-ReverseSnippet-separator",n.separator)}},r))}function Kl(t){"@babel/helpers - typeof";return Kl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kl(t)}var rW=["hit","attribute","cssClasses"],iW=["isHighlighted"];function Km(){return Km=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Km.apply(this,arguments)}function VS(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function jS(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?VS(Object(n),!0).forEach(function(r){oW(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):VS(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function oW(t,e,n){return e=sW(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sW(t){var e=aW(t,"string");return Kl(e)==="symbol"?e:String(e)}function aW(t,e){if(Kl(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Kl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function NS(t,e){if(t==null)return{};var n=lW(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function lW(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function cW(t){var e=t.hit,n=t.attribute,r=t.cssClasses,i=NS(t,rW),o=hi(e._snippetResult,n)||[],s=Qd(o),a=s.map(function(l){var c=l.value;return Ns(kc(c||"")).map(function(u){var f=u.isHighlighted,h=NS(u,iW);return jS(jS({},h),{},{isHighlighted:!f})})});return me(nW,Km({},i,{parts:a,classNames:r}))}var uW=["classNames"];function Gm(){return Gm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Gm.apply(this,arguments)}function fW(t,e){if(t==null)return{};var n=dW(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function dW(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function hW(t){var e=t.classNames,n=e===void 0?{}:e,r=fW(t,uW);return me(Yd,Gm({classNames:{root:ve("ais-Snippet",n.root),highlighted:ve("ais-Snippet-highlighted",n.highlighted),nonHighlighted:ve("ais-Snippet-nonHighlighted",n.nonHighlighted),separator:ve("ais-Snippet-separator",n.separator)}},r))}var pW=["hit","attribute","cssClasses"];function Ym(){return Ym=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ym.apply(this,arguments)}function mW(t,e){if(t==null)return{};var n=gW(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function gW(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function vW(t){var e=t.hit,n=t.attribute,r=t.cssClasses,i=mW(t,pW),o=hi(e._snippetResult,n)||[],s=Qd(o),a=s.map(function(l){var c=l.value;return Ns(kc(c||""))});return me(hW,Ym({},i,{parts:a,classNames:r}))}function Ss(t){"@babel/helpers - typeof";return Ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ss(t)}function LS(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Yf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?LS(Object(n),!0).forEach(function(r){nC(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):LS(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function nC(t,e,n){return e=yW(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yW(t){var e=bW(t,"string");return Ss(e)==="symbol"?e:String(e)}function bW(t,e){if(Ss(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ss(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _W(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return Object.keys(t).reduce(function(r,i){return Yf(Yf({},r),{},nC({},i,function(){var o=this;return function(s){var a=function(c){return tC.compile(c,e).render(o)};return t[i].call(n,s,a)}}))},{})}function SW(t){var e=t.templates,n=t.templateKey,r=t.compileOptions,i=t.helpers,o=t.data,s=t.bindEvent,a=t.sendEvent,l=e[n];if(typeof l!="string"&&typeof l!="function")throw new Error("Template must be 'string' or 'function', was '".concat(Ss(l),"' (key: ").concat(n,")"));if(typeof l=="function"){var c=s||{};return c.html=C6,c.sendEvent=a,c.components={Highlight:B6,ReverseHighlight:Z6,Snippet:vW,ReverseSnippet:cW},l(o,c)}var u=_W(i,r,o);return tC.compile(l,r).render(Yf(Yf({},o),{},{helpers:u})).replace(/[ \n\r\t\f\xA0]+/g,function(f){return f.replace(/(^|\xA0+)[^\xA0]+/g,"$1 ")}).trim()}function Jm(){return Jm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Jm.apply(this,arguments)}function go(t){"@babel/helpers - typeof";return go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},go(t)}function wW(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function FS(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,rC(r.key),r)}}function AW(t,e,n){return e&&FS(t.prototype,e),n&&FS(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function OW(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Zm(t,e)}function Zm(t,e){return Zm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Zm(t,e)}function EW(t){var e=CW();return function(){var r=Jf(t),i;if(e){var o=Jf(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return PW(this,i)}}function PW(t,e){if(e&&(go(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xW(t)}function xW(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function CW(){if(typeof Reflect>"u"||!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 Jf(t){return Jf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jf(t)}function TW(t,e,n){return e=rC(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rC(t){var e=IW(t,"string");return go(e)==="symbol"?e:String(e)}function IW(t,e){if(go(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(go(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var RW={data:{},rootTagName:"div",useCustomCompileOptions:{},templates:{},templatesConfig:{}},iC=function(t){OW(n,t);var e=EW(n);function n(){return wW(this,n),e.apply(this,arguments)}return AW(n,[{key:"shouldComponentUpdate",value:function(i){return!Nl(this.props.data,i.data)||this.props.templateKey!==i.templateKey||!Nl(this.props.rootProps,i.rootProps)}},{key:"render",value:function(){var i=this.props.rootTagName,o=this.props.useCustomCompileOptions[this.props.templateKey],s=o?this.props.templatesConfig.compileOptions:{},a=SW({templates:this.props.templates,templateKey:this.props.templateKey,compileOptions:s,helpers:this.props.templatesConfig.helpers,data:this.props.data,bindEvent:this.props.bindEvent,sendEvent:this.props.sendEvent});return a===null?null:go(a)==="object"?me(i,this.props.rootProps,a):me(i,Jm({},this.props.rootProps,{dangerouslySetInnerHTML:{__html:a}}))}}]),n}(Ho);TW(iC,"defaultProps",RW);const Zr=iC;function Gl(t){"@babel/helpers - typeof";return Gl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gl(t)}function $W(t){return LW(t)||NW(t)||jW(t)||VW()}function VW(){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 jW(t,e){if(t){if(typeof t=="string")return Xm(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xm(t,e)}}function NW(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function LW(t){if(Array.isArray(t))return Xm(t)}function Xm(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function DS(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function $o(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?DS(Object(n),!0).forEach(function(r){FW(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):DS(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function FW(t,e,n){return e=DW(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function DW(t){var e=MW(t,"string");return Gl(e)==="symbol"?e:String(e)}function MW(t,e){if(Gl(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Gl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var MS=tn({name:"clear-refinements",connector:!0}),kW=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qe;return js(e,MS()),function(r){var i=r||{},o=i.includedAttributes,s=o===void 0?[]:o,a=i.excludedAttributes,l=a===void 0?["query"]:a,c=i.transformItems,u=c===void 0?function(p){return p}:c;if(r&&r.includedAttributes&&r.excludedAttributes)throw new Error(MS("The options `includedAttributes` and `excludedAttributes` cannot be used together."));var f={refine:Qe,createURL:function(){return""},attributesToClear:[]},h=function(){return f.refine()},d=function(){return f.createURL()};return{$$type:"ais.clearRefinements",init:function(m){var g=m.instantSearchInstance;e($o($o({},this.getWidgetRenderState(m)),{},{instantSearchInstance:g}),!0)},render:function(m){var g=m.instantSearchInstance;e($o($o({},this.getWidgetRenderState(m)),{},{instantSearchInstance:g}),!1)},dispose:function(){n()},getRenderState:function(m,g){return $o($o({},m),{},{clearRefinements:this.getWidgetRenderState(g)})},getWidgetRenderState:function(m){var g=m.createURL,v=m.scopedResults,b=m.results;f.attributesToClear=v.reduce(function(_,A){return _.concat(BW({scopedResult:A,includedAttributes:s,excludedAttributes:l,transformItems:u,results:b}))},[]),f.refine=function(){f.attributesToClear.forEach(function(_){var A=_.helper,C=_.items;A.setState(H_({helper:A,attributesToClear:C})).search()})},f.createURL=function(){return g(xa.apply(void 0,$W(f.attributesToClear.map(function(_){var A=_.helper,C=_.items;return H_({helper:A,attributesToClear:C})}))))};var y=f.attributesToClear.some(function(_){return _.items.length>0});return{canRefine:y,hasRefinements:y,refine:h,createURL:d,widgetParams:r}}}}};function BW(t){var e=t.scopedResult,n=t.includedAttributes,r=t.excludedAttributes,i=t.transformItems,o=t.results,s=n.indexOf("query")!==-1||r.indexOf("query")===-1;return{helper:e.helper,items:i(ty(V3(e.results,e.helper.state,s).map(function(a){return a.attribute}).filter(function(a){return n.length===0||n.indexOf(a)!==-1}).filter(function(a){return a==="query"&&s||r.indexOf(a)===-1})),{results:o})}}const HW=kW;function Yl(t){"@babel/helpers - typeof";return Yl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yl(t)}function kS(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ct(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?kS(Object(n),!0).forEach(function(r){oC(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kS(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function oC(t,e,n){return e=qW(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qW(t){var e=WW(t,"string");return Yl(e)==="symbol"?e:String(e)}function WW(t,e){if(Yl(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Yl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var UW=tn({name:"configure",connector:!0});function BS(t,e){return t.setQueryParameters(Object.keys(e.searchParameters).reduce(function(n,r){return ct(ct({},n),{},oC({},r,void 0))},{}))}var QW=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Qe,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qe;return function(r){if(!r||!ox(r.searchParameters))throw new Error(UW("The `searchParameters` option expects an object."));var i={};function o(s){return function(a){var l=BS(s.state,r),c=xa(l,new En.SearchParameters(a));r.searchParameters=a,s.setState(c).search()}}return{$$type:"ais.configure",init:function(a){var l=a.instantSearchInstance;e(ct(ct({},this.getWidgetRenderState(a)),{},{instantSearchInstance:l}),!0)},render:function(a){var l=a.instantSearchInstance;e(ct(ct({},this.getWidgetRenderState(a)),{},{instantSearchInstance:l}),!1)},dispose:function(a){var l=a.state;return n(),BS(l,r)},getRenderState:function(a,l){var c,u=this.getWidgetRenderState(l);return ct(ct({},a),{},{configure:ct(ct({},u),{},{widgetParams:ct(ct({},u.widgetParams),{},{searchParameters:xa(new En.SearchParameters((c=a.configure)===null||c===void 0?void 0:c.widgetParams.searchParameters),new En.SearchParameters(u.widgetParams.searchParameters)).getQueryParams()})})})},getWidgetRenderState:function(a){var l=a.helper;return i.refine||(i.refine=o(l)),{refine:i.refine,widgetParams:r}},getWidgetSearchParameters:function(a,l){var c=l.uiState;return xa(a,new En.SearchParameters(ct(ct({},c.configure),r.searchParameters)))},getWidgetUiState:function(a){return ct(ct({},a),{},{configure:ct(ct({},a.configure),r.searchParameters)})}}}};const zW=QW;function Jl(t){"@babel/helpers - typeof";return Jl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jl(t)}function HS(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function qS(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?HS(Object(n),!0).forEach(function(r){KW(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):HS(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function KW(t,e,n){return e=GW(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function GW(t){var e=YW(t,"string");return Jl(e)==="symbol"?e:String(e)}function YW(t,e){if(Jl(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Jl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var JW=function(e){var n=zW(Qe);return qS(qS({},n({searchParameters:e})),{},{$$widgetType:"ais.configure"})};const In=JW;function ws(t){"@babel/helpers - typeof";return ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ws(t)}function ZW(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function WS(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,sC(r.key),r)}}function XW(t,e,n){return e&&WS(t.prototype,e),n&&WS(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function eU(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&eg(t,e)}function eg(t,e){return eg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},eg(t,e)}function tU(t){var e=rU();return function(){var r=Zf(t),i;if(e){var o=Zf(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return nU(this,i)}}function nU(t,e){if(e&&(ws(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dr(t)}function Dr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rU(){if(typeof Reflect>"u"||!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 Zf(t){return Zf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Zf(t)}function Mr(t,e,n){return e=sC(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sC(t){var e=iU(t,"string");return ws(e)==="symbol"?e:String(e)}function iU(t,e){if(ws(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(ws(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var oU={query:"",showSubmit:!0,showReset:!0,showLoadingIndicator:!0,autofocus:!1,searchAsYouType:!0,isSearchStalled:!1,disabled:!1,ariaLabel:"Search",onChange:Qe,onSubmit:Qe,onReset:Qe,refine:Qe},aC=function(t){eU(n,t);var e=tU(n);function n(){var r;ZW(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o)),Mr(Dr(r),"state",{query:r.props.query,focused:!1}),Mr(Dr(r),"input",qV()),Mr(Dr(r),"onInput",function(a){var l=r.props,c=l.searchAsYouType,u=l.refine,f=l.onChange,h=a.target.value;(a.type==="compositionend"||!a.isComposing)&&(c&&u(h),r.setState({query:h}),f(a))}),Mr(Dr(r),"onSubmit",function(a){var l=r.props,c=l.searchAsYouType,u=l.refine,f=l.onSubmit;return a.preventDefault(),a.stopPropagation(),r.input.current&&r.input.current.blur(),c||u(r.state.query),f(a),!1}),Mr(Dr(r),"onReset",function(a){var l=r.props,c=l.refine,u=l.onReset,f="";r.input.current&&r.input.current.focus(),c(f),r.setState({query:f}),u(a)}),Mr(Dr(r),"onBlur",function(){r.setState({focused:!1})}),Mr(Dr(r),"onFocus",function(){r.setState({focused:!0})}),r}return XW(n,[{key:"resetInput",value:function(){this.setState({query:""})}},{key:"componentWillReceiveProps",value:function(i){!this.state.focused&&i.query!==this.state.query&&this.setState({query:i.query})}},{key:"render",value:function(){var i=this.props,o=i.cssClasses,s=i.placeholder,a=i.autofocus,l=i.showSubmit,c=i.showReset,u=i.showLoadingIndicator,f=i.templates,h=i.isSearchStalled,d=i.ariaLabel;return me("div",{className:o.root},me("form",{action:"",role:"search",className:o.form,noValidate:!0,onSubmit:this.onSubmit,onReset:this.onReset},me("input",{ref:this.input,value:this.state.query,disabled:this.props.disabled,className:o.input,type:"search",placeholder:s,autoFocus:a,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",maxLength:512,onInput:this.onInput,oncompositionend:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus,"aria-label":d}),me(Zr,{templateKey:"submit",rootTagName:"button",rootProps:{className:o.submit,type:"submit",title:"Submit the search query",hidden:!l},templates:f,data:{cssClasses:o}}),me(Zr,{templateKey:"reset",rootTagName:"button",rootProps:{className:o.reset,type:"reset",title:"Clear the search query",hidden:!(c&&this.state.query.trim()&&!h)},templates:f,data:{cssClasses:o}}),u&&me(Zr,{templateKey:"loadingIndicator",rootTagName:"span",rootProps:{className:o.loadingIndicator,hidden:!h},templates:f,data:{cssClasses:o}})))}}]),n}(Ho);Mr(aC,"defaultProps",oU);const sU=aC;function Zl(t){"@babel/helpers - typeof";return Zl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zl(t)}function US(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Nr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?US(Object(n),!0).forEach(function(r){lC(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):US(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function lC(t,e,n){return e=aU(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function aU(t){var e=lU(t,"string");return Zl(e)==="symbol"?e:String(e)}function lU(t,e){if(Zl(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Zl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var cU=tn({name:"hits",connector:!0}),uU=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qe;return js(e,cU()),function(r){var i=r||{},o=i.escapeHTML,s=o===void 0?!0:o,a=i.transformItems,l=a===void 0?function(f){return f}:a,c,u;return{$$type:"ais.hits",init:function(h){e(Nr(Nr({},this.getWidgetRenderState(h)),{},{instantSearchInstance:h.instantSearchInstance}),!0)},render:function(h){var d=this.getWidgetRenderState(h);e(Nr(Nr({},d),{},{instantSearchInstance:h.instantSearchInstance}),!1),d.sendEvent("view:internal",d.hits)},getRenderState:function(h,d){return Nr(Nr({},h),{},{hits:this.getWidgetRenderState(d)})},getWidgetRenderState:function(h){var d=h.results,p=h.helper,m=h.instantSearchInstance;if(c||(c=w3({instantSearchInstance:m,index:p.getIndex(),widgetType:this.$$type})),u||(u=A3({index:p.getIndex(),widgetType:this.$$type,instantSearchInstance:m})),!d)return{hits:[],results:void 0,sendEvent:c,bindEvent:u,widgetParams:r};s&&d.hits.length>0&&(d.hits=t3(d.hits));var g=F3(d.hits,d.page,d.hitsPerPage),v=B3(g,d.queryID),b=l(v,{results:d});return{hits:b,results:d,sendEvent:c,bindEvent:u,widgetParams:r}},dispose:function(h){var d=h.state;return n(),s?d.setQueryParameters(Object.keys(qf).reduce(function(p,m){return Nr(Nr({},p),{},lC({},m,void 0))},{})):d},getWidgetSearchParameters:function(h){return s?h.setQueryParameters(qf):h}}}};const qc=uU;var fU=["name","escapedValue","path"];function Xl(t){"@babel/helpers - typeof";return Xl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xl(t)}function dU(t,e){if(t==null)return{};var n=hU(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function hU(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function QS(t,e){return vU(t)||gU(t,e)||mU(t,e)||pU()}function pU(){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 mU(t,e){if(t){if(typeof t=="string")return zS(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zS(t,e)}}function zS(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function gU(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==e);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}function vU(t){if(Array.isArray(t))return t}function KS(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function wt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?KS(Object(n),!0).forEach(function(r){rf(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):KS(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function rf(t,e,n){return e=yU(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yU(t){var e=bU(t,"string");return Xl(e)==="symbol"?e:String(e)}function bU(t,e){if(Xl(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Xl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ip=tn({name:"menu",connector:!0}),GS=["isRefined","name:asc"],_U=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qe;return js(e,ip()),function(r){var i=r||{},o=i.attribute,s=i.limit,a=s===void 0?10:s,l=i.showMore,c=l===void 0?!1:l,u=i.showMoreLimit,f=u===void 0?20:u,h=i.sortBy,d=h===void 0?GS:h,p=i.transformItems,m=p===void 0?function(S){return S}:p;if(!o)throw new Error(ip("The `attribute` option is required."));if(c===!0&&f<=a)throw new Error(ip("The `showMoreLimit` option must be greater than `limit`."));var g,v,b,y=!1,_=function(){};function A(S,w){return function(){y=!y,w.render(S)}}function C(){_()}function x(){return y?f:a}return{$$type:"ais.menu",init:function(w){var O=w.instantSearchInstance;e(wt(wt({},this.getWidgetRenderState(w)),{},{instantSearchInstance:O}),!0)},render:function(w){var O=w.instantSearchInstance;e(wt(wt({},this.getWidgetRenderState(w)),{},{instantSearchInstance:O}),!1)},dispose:function(w){var O=w.state;return n(),O.removeHierarchicalFacet(o).setQueryParameter("maxValuesPerFacet",void 0)},getRenderState:function(w,O){return wt(wt({},w),{},{menu:wt(wt({},w.menu),{},rf({},o,this.getWidgetRenderState(O)))})},getWidgetRenderState:function(w){var O=this,P=w.results,T=w.createURL,R=w.instantSearchInstance,M=w.helper,k=[],B=!1;if(g||(g=d3({instantSearchInstance:R,helper:M,attribute:o,widgetType:this.$$type})),v||(v=function(K){return T(function(te){return O.getWidgetUiState(te,{searchParameters:M.state.resetPage().toggleFacetRefinement(o,K),helper:M})})}),b||(b=function(K){var te=M.getHierarchicalFacetBreadcrumb(o),ue=QS(te,1),Se=ue[0];g("click:internal",K||Se),M.toggleFacetRefinement(o,K||Se).search()}),w.results&&(_=A(w,this)),P){var z=P.getFacetValues(o,{sortBy:d,facetOrdering:d===GS}),Q=z&&!Array.isArray(z)&&z.data?z.data:[];B=c&&(y||Q.length>x()),k=m(Q.slice(0,x()).map(function(G){var K=G.name,te=G.escapedValue;G.path;var ue=dU(G,fU);return wt(wt({},ue),{},{label:K,value:te})}),{results:P})}return{items:k,createURL:v,refine:b,sendEvent:g,canRefine:k.length>0,widgetParams:r,isShowingMore:y,toggleShowMore:C,canToggleShowMore:B}},getWidgetUiState:function(w,O){var P=O.searchParameters,T=P.getHierarchicalFacetBreadcrumb(o),R=QS(T,1),M=R[0];return SU(wt(wt({},w),{},{menu:wt(wt({},w.menu),{},rf({},o,M))}),o)},getWidgetSearchParameters:function(w,O){var P=O.uiState,T=P.menu&&P.menu[o];if(w.isConjunctiveFacet(o)||w.isDisjunctiveFacet(o))return w;var R=w.removeHierarchicalFacet(o).addHierarchicalFacet({name:o,attributes:[o]}),M=R.maxValuesPerFacet||0,k=Math.max(M,c?f:a),B=R.setQueryParameter("maxValuesPerFacet",k);return T?B.addHierarchicalFacetRefinement(o,T):B.setQueryParameters({hierarchicalFacetsRefinements:wt(wt({},B.hierarchicalFacetsRefinements),{},rf({},o,[]))})}}}};function SU(t,e){return t.menu&&(t.menu[e]===void 0&&delete t.menu[e],Object.keys(t.menu).length===0&&delete t.menu),t}const wU=_U;function Xf(){return Xf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Xf.apply(this,arguments)}function AU(t){var e=t.cssClasses,n=t.templateProps,r=t.items,i=t.refine,o=Uf(r,function(a){return a.isRefined})||{value:""},s=o.value;return me("div",{className:ve(e.root,r.length===0&&e.noRefinementRoot)},me("select",{className:e.select,value:s,onChange:function(l){i(l.target.value)}},me(Zr,Xf({},n,{templateKey:"defaultOption",rootTagName:"option",rootProps:{value:"",className:e.option}})),r.map(function(a){return me(Zr,Xf({},n,{templateKey:"item",rootTagName:"option",rootProps:{value:a.value,className:e.option},key:a.value,data:a}))})))}var OU={item:function(e){var n=e.label,r=e.count;return"".concat(n," (").concat(Wl(r),")")},defaultOption:function(){return"See all"}};const EU=OU;function ec(t){"@babel/helpers - typeof";return ec=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ec(t)}function YS(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function JS(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?YS(Object(n),!0).forEach(function(r){PU(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):YS(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function PU(t,e,n){return e=xU(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xU(t){var e=CU(t,"string");return ec(e)==="symbol"?e:String(e)}function CU(t,e){if(ec(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(ec(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var TU=tn({name:"menu-select"}),Mu=di("MenuSelect"),IU=function(e){var n=e.containerNode,r=e.cssClasses,i=e.renderState,o=e.templates;return function(s,a){var l=s.refine,c=s.items,u=s.instantSearchInstance;if(a){i.templateProps=Zx({defaultTemplates:EU,templatesConfig:u.templatesConfig,templates:o});return}Or(me(AU,{cssClasses:r,items:c,refine:l,templateProps:i.templateProps}),n)}},RU=function(e){var n=e||{},r=n.container,i=n.attribute,o=n.sortBy,s=o===void 0?["name:asc"]:o,a=n.limit,l=a===void 0?10:a,c=n.cssClasses,u=c===void 0?{}:c,f=n.templates,h=f===void 0?{}:f,d=n.transformItems;if(!r)throw new Error(TU("The `container` option is required."));var p=Rl(r),m={root:ve(Mu(),u.root),noRefinementRoot:ve(Mu({modifierName:"noRefinement"}),u.noRefinementRoot),select:ve(Mu({descendantName:"select"}),u.select),option:ve(Mu({descendantName:"option"}),u.option)},g=IU({containerNode:p,cssClasses:m,renderState:{},templates:h}),v=wU(g,function(){return Or(null,p)});return JS(JS({},v({attribute:i,limit:l,sortBy:s,transformItems:d})),{},{$$widgetType:"ais.menuSelect"})};const ZS=RU;function $U(t){function e(n){return function(r){J3(r)||(r.preventDefault(),t.setCurrentPage(n))}}return me("div",{className:ve(t.cssClasses.root,t.nbPages<=1&&t.cssClasses.noRefinementRoot)},me("ul",{className:t.cssClasses.list},t.showFirst&&me(ta,{ariaLabel:"First Page",className:t.cssClasses.firstPageItem,isDisabled:t.isFirstPage,templates:t.templates,templateKey:"first",pageNumber:0,createURL:t.createURL,cssClasses:t.cssClasses,createClickHandler:e}),t.showPrevious&&me(ta,{ariaLabel:"Previous Page",className:t.cssClasses.previousPageItem,isDisabled:t.isFirstPage,templates:t.templates,templateKey:"previous",pageNumber:t.currentPage-1,createURL:t.createURL,cssClasses:t.cssClasses,createClickHandler:e}),t.pages.map(function(n){return me(ta,{key:n,ariaLabel:"Page ".concat(n+1),className:t.cssClasses.pageItem,isSelected:n===t.currentPage,templates:t.templates,templateKey:"page",pageNumber:n,createURL:t.createURL,cssClasses:t.cssClasses,createClickHandler:e})}),t.showNext&&me(ta,{ariaLabel:"Next Page",className:t.cssClasses.nextPageItem,isDisabled:t.isLastPage,templates:t.templates,templateKey:"next",pageNumber:t.currentPage+1,createURL:t.createURL,cssClasses:t.cssClasses,createClickHandler:e}),t.showLast&&me(ta,{ariaLabel:"Last Page, Page ".concat(t.nbPages),className:t.cssClasses.lastPageItem,isDisabled:t.isLastPage,templates:t.templates,templateKey:"last",pageNumber:t.nbPages-1,createURL:t.createURL,cssClasses:t.cssClasses,createClickHandler:e})))}function ta(t){var e=t.templates,n=t.templateKey,r=t.ariaLabel,i=t.pageNumber,o=t.className,s=t.isDisabled,a=s===void 0?!1:s,l=t.isSelected,c=l===void 0?!1:l,u=t.cssClasses,f=t.createURL,h=t.createClickHandler;return me("li",{className:ve(u.item,a&&u.disabledItem,o,c&&u.selectedItem)},a?me(Zr,{rootTagName:"span",rootProps:{className:u.link,"aria-label":r},templateKey:n,templates:e,data:{page:i+1}}):me(Zr,{rootTagName:"a",rootProps:{className:u.link,"aria-label":r,href:f(i),onClick:h(i)},templateKey:n,templates:e,data:{page:i+1}}))}function tc(t){"@babel/helpers - typeof";return tc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tc(t)}function VU(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function XS(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,cC(r.key),r)}}function jU(t,e,n){return e&&XS(t.prototype,e),n&&XS(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function op(t,e,n){return e=cC(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cC(t){var e=NU(t,"string");return tc(e)==="symbol"?e:String(e)}function NU(t,e){if(tc(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(tc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var LU=function(){function t(e){VU(this,t),op(this,"currentPage",void 0),op(this,"total",void 0),op(this,"padding",void 0),this.currentPage=e.currentPage,this.total=e.total,this.padding=e.padding}return jU(t,[{key:"pages",value:function(){var n=this.total,r=this.currentPage,i=this.padding;if(n===0)return[0];var o=this.nbPagesDisplayed(i,n);if(o===n)return rS({end:n});var s=this.calculatePaddingLeft(r,i,n,o),a=o-s,l=r-s,c=r+a;return rS({start:l,end:c})}},{key:"nbPagesDisplayed",value:function(n,r){return Math.min(2*n+1,r)}},{key:"calculatePaddingLeft",value:function(n,r,i,o){return n<=r?n:n>=i-r?o-(i-n):r}},{key:"isLastPage",value:function(){return this.currentPage===this.total-1||this.total===0}},{key:"isFirstPage",value:function(){return this.currentPage===0}}]),t}();const FU=LU;function nc(t){"@babel/helpers - typeof";return nc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nc(t)}function ew(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function kn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ew(Object(n),!0).forEach(function(r){DU(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ew(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function DU(t,e,n){return e=MU(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function MU(t){var e=kU(t,"string");return nc(e)==="symbol"?e:String(e)}function kU(t,e){if(nc(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(nc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var BU=tn({name:"pagination",connector:!0}),HU=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qe;return js(e,BU()),function(r){var i=r||{},o=i.totalPages,s=i.padding,a=s===void 0?3:s,l=new FU({currentPage:0,total:0,padding:a}),c={};function u(f){var h=f.nbPages;return o!==void 0?Math.min(o,h):h}return{$$type:"ais.pagination",init:function(h){var d=h.instantSearchInstance;e(kn(kn({},this.getWidgetRenderState(h)),{},{instantSearchInstance:d}),!0)},render:function(h){var d=h.instantSearchInstance;e(kn(kn({},this.getWidgetRenderState(h)),{},{instantSearchInstance:d}),!1)},dispose:function(h){var d=h.state;return n(),d.setQueryParameter("page",void 0)},getWidgetUiState:function(h,d){var p=d.searchParameters,m=p.page||0;return m?kn(kn({},h),{},{page:m+1}):h},getWidgetSearchParameters:function(h,d){var p=d.uiState,m=p.page?p.page-1:0;return h.setQueryParameter("page",m)},getWidgetRenderState:function(h){var d=h.results,p=h.helper,m=h.state,g=h.createURL;c.refine||(c.refine=function(y){p.setPage(y),p.search()}),c.createURL||(c.createURL=function(y){return g(function(_){return kn(kn({},_),{},{page:y+1})})});var v=m.page||0,b=u(d||{nbPages:0});return l.currentPage=v,l.total=b,{createURL:c.createURL,refine:c.refine,canRefine:b>1,currentRefinement:v,nbHits:(d==null?void 0:d.nbHits)||0,nbPages:b,pages:d?l.pages():[],isFirstPage:l.isFirstPage(),isLastPage:l.isLastPage(),widgetParams:r}},getRenderState:function(h,d){return kn(kn({},h),{},{pagination:this.getWidgetRenderState(d)})}}}};const qU=HU;function rc(t){"@babel/helpers - typeof";return rc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rc(t)}function tw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ku(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?tw(Object(n),!0).forEach(function(r){WU(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tw(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function WU(t,e,n){return e=UU(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function UU(t){var e=QU(t,"string");return rc(e)==="symbol"?e:String(e)}function QU(t,e){if(rc(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(rc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ln=di("Pagination"),zU=tn({name:"pagination"}),KU={previous:function(){return"‹"},next:function(){return"›"},page:function(e){var n=e.page;return"".concat(n)},first:function(){return"«"},last:function(){return"»"}},GU=function(e){var n=e.containerNode,r=e.cssClasses,i=e.templates,o=e.showFirst,s=e.showLast,a=e.showPrevious,l=e.showNext,c=e.scrollToNode;return function(u,f){var h=u.createURL,d=u.currentRefinement,p=u.nbPages,m=u.pages,g=u.isFirstPage,v=u.isLastPage,b=u.refine;if(!f){var y=function(A){b(A),c!==!1&&c.scrollIntoView()};Or(me($U,{createURL:h,cssClasses:r,currentPage:d,templates:i,nbPages:p,pages:m,isFirstPage:g,isLastPage:v,setCurrentPage:y,showFirst:o,showLast:s,showPrevious:a,showNext:l}),n)}}},YU=function(e){var n=e||{},r=n.container,i=n.templates,o=i===void 0?{}:i,s=n.cssClasses,a=s===void 0?{}:s,l=n.totalPages,c=n.padding,u=n.showFirst,f=u===void 0?!0:u,h=n.showLast,d=h===void 0?!0:h,p=n.showPrevious,m=p===void 0?!0:p,g=n.showNext,v=g===void 0?!0:g,b=n.scrollTo,y=b===void 0?"body":b;if(!r)throw new Error(zU("The `container` option is required."));var _=Rl(r),A=y===!0?"body":y,C=A!==!1?Rl(A):!1,x={root:ve(ln(),a.root),noRefinementRoot:ve(ln({modifierName:"noRefinement"}),a.noRefinementRoot),list:ve(ln({descendantName:"list"}),a.list),item:ve(ln({descendantName:"item"}),a.item),firstPageItem:ve(ln({descendantName:"item",modifierName:"firstPage"}),a.firstPageItem),lastPageItem:ve(ln({descendantName:"item",modifierName:"lastPage"}),a.lastPageItem),previousPageItem:ve(ln({descendantName:"item",modifierName:"previousPage"}),a.previousPageItem),nextPageItem:ve(ln({descendantName:"item",modifierName:"nextPage"}),a.nextPageItem),pageItem:ve(ln({descendantName:"item",modifierName:"page"}),a.pageItem),selectedItem:ve(ln({descendantName:"item",modifierName:"selected"}),a.selectedItem),disabledItem:ve(ln({descendantName:"item",modifierName:"disabled"}),a.disabledItem),link:ve(ln({descendantName:"link"}),a.link)},S=ku(ku({},KU),o),w=GU({containerNode:_,cssClasses:x,templates:S,showFirst:f,showLast:d,showPrevious:m,showNext:v,scrollToNode:C}),O=qU(w,function(){return Or(null,_)});return ku(ku({},O({totalPages:l,padding:c})),{},{$$widgetType:"ais.pagination"})};const fy=YU;var JU=me("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"}),ZU=me("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"}),XU=me("g",{fill:"none","fill-rule":"evenodd"},me("g",{transform:"translate(1 1)","stroke-width":"2"},me("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),me("path",{d:"M36 18c0-9.94-8.06-18-18-18"},me("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})))),e8={reset:function(e){var n=e.cssClasses;return me("svg",{className:n.resetIcon,viewBox:"0 0 20 20",width:"10",height:"10","aria-hidden":"true"},JU)},submit:function(e){var n=e.cssClasses;return me("svg",{className:n.submitIcon,width:"10",height:"10",viewBox:"0 0 40 40","aria-hidden":"true"},ZU)},loadingIndicator:function(e){var n=e.cssClasses;return me("svg",{"aria-label":"Results are loading",className:n.loadingIcon,width:"16",height:"16",viewBox:"0 0 38 38",stroke:"#444","aria-hidden":"true"},XU)}};const t8=e8;function ic(t){"@babel/helpers - typeof";return ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ic(t)}function nw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Lr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?nw(Object(n),!0).forEach(function(r){n8(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nw(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function n8(t,e,n){return e=r8(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r8(t){var e=i8(t,"string");return ic(e)==="symbol"?e:String(e)}function i8(t,e){if(ic(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(ic(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var o8=tn({name:"search-box",connector:!0}),s8=function(e,n){return n(e)},a8=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qe;return js(e,o8()),function(r){var i=r||{},o=i.queryHook,s=o===void 0?s8:o,a,l;return{$$type:"ais.searchBox",init:function(u){var f=u.instantSearchInstance;e(Lr(Lr({},this.getWidgetRenderState(u)),{},{instantSearchInstance:f}),!0)},render:function(u){var f=u.instantSearchInstance;e(Lr(Lr({},this.getWidgetRenderState(u)),{},{instantSearchInstance:f}),!1)},dispose:function(u){var f=u.state;return n(),f.setQueryParameter("query",void 0)},getRenderState:function(u,f){return Lr(Lr({},u),{},{searchBox:this.getWidgetRenderState(f)})},getWidgetRenderState:function(u){var f=u.helper,h=u.instantSearchInstance,d=u.state;return a||(a=function(m){s(m,function(g){return f.setQuery(g).search()})},l=function(){f.setQuery("").search()}),{query:d.query||"",refine:a,clear:l,widgetParams:r,isSearchStalled:h.status==="stalled"}},getWidgetUiState:function(u,f){var h=f.searchParameters,d=h.query||"";return d===""||u&&u.query===d?u:Lr(Lr({},u),{},{query:d})},getWidgetSearchParameters:function(u,f){var h=f.uiState;return u.setQueryParameter("query",h.query||"")}}}};const l8=a8;function oc(t){"@babel/helpers - typeof";return oc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oc(t)}function rw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Bu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?rw(Object(n),!0).forEach(function(r){c8(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rw(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function c8(t,e,n){return e=u8(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u8(t){var e=f8(t,"string");return oc(e)==="symbol"?e:String(e)}function f8(t,e){if(oc(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(oc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var d8=tn({name:"search-box"}),ar=di("SearchBox"),h8=function(e){var n=e.containerNode,r=e.cssClasses,i=e.placeholder,o=e.templates,s=e.autofocus,a=e.searchAsYouType,l=e.showReset,c=e.showSubmit,u=e.showLoadingIndicator;return function(f){var h=f.refine,d=f.query,p=f.isSearchStalled;Or(me(sU,{query:d,placeholder:i,autofocus:s,refine:h,searchAsYouType:a,templates:o,showSubmit:c,showReset:l,showLoadingIndicator:u,isSearchStalled:p,cssClasses:r}),n)}},p8=function(e){var n=e||{},r=n.container,i=n.placeholder,o=i===void 0?"":i,s=n.cssClasses,a=s===void 0?{}:s,l=n.autofocus,c=l===void 0?!1:l,u=n.searchAsYouType,f=u===void 0?!0:u,h=n.showReset,d=h===void 0?!0:h,p=n.showSubmit,m=p===void 0?!0:p,g=n.showLoadingIndicator,v=g===void 0?!0:g,b=n.queryHook,y=n.templates,_=y===void 0?{}:y;if(!r)throw new Error(d8("The `container` option is required."));var A=Rl(r),C={root:ve(ar(),a.root),form:ve(ar({descendantName:"form"}),a.form),input:ve(ar({descendantName:"input"}),a.input),submit:ve(ar({descendantName:"submit"}),a.submit),submitIcon:ve(ar({descendantName:"submitIcon"}),a.submitIcon),reset:ve(ar({descendantName:"reset"}),a.reset),resetIcon:ve(ar({descendantName:"resetIcon"}),a.resetIcon),loadingIndicator:ve(ar({descendantName:"loadingIndicator"}),a.loadingIndicator),loadingIcon:ve(ar({descendantName:"loadingIcon"}),a.loadingIcon)},x=Bu(Bu({},t8),_),S=h8({containerNode:A,cssClasses:C,placeholder:o,templates:x,autofocus:c,searchAsYouType:f,showReset:d,showSubmit:m,showLoadingIndicator:v}),w=l8(S,function(){return Or(null,A)});return Bu(Bu({},w({queryHook:b})),{},{$$widgetType:"ais.searchBox"})};const uC=p8;function sc(t){"@babel/helpers - typeof";return sc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sc(t)}var m8=["nbHits","nbSortedHits","cssClasses","templateProps"];function tg(){return tg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},tg.apply(this,arguments)}function iw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function g8(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?iw(Object(n),!0).forEach(function(r){v8(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):iw(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function v8(t,e,n){return e=y8(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y8(t){var e=b8(t,"string");return sc(e)==="symbol"?e:String(e)}function b8(t,e){if(sc(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(sc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _8(t,e){if(t==null)return{};var n=S8(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function S8(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var w8=function(e){var n=e.nbHits,r=e.nbSortedHits,i=e.cssClasses,o=e.templateProps,s=_8(e,m8);return me("div",{className:ve(i.root)},me(Zr,tg({},o,{templateKey:"text",rootTagName:"span",rootProps:{className:i.text},data:g8({hasManySortedResults:r&&r>1,hasNoSortedResults:r===0,hasOneSortedResults:r===1,hasManyResults:n>1,hasNoResults:n===0,hasOneResult:n===1,nbHits:n,nbSortedHits:r,cssClasses:i},s)})))};const A8=w8;function ac(t){"@babel/helpers - typeof";return ac=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ac(t)}function ow(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Vo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ow(Object(n),!0).forEach(function(r){O8(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ow(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function O8(t,e,n){return e=E8(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function E8(t){var e=P8(t,"string");return ac(e)==="symbol"?e:String(e)}function P8(t,e){if(ac(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(ac(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var x8=tn({name:"stats",connector:!0}),C8=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qe;return js(e,x8()),function(r){return{$$type:"ais.stats",init:function(o){var s=o.instantSearchInstance;e(Vo(Vo({},this.getWidgetRenderState(o)),{},{instantSearchInstance:s}),!0)},render:function(o){var s=o.instantSearchInstance;e(Vo(Vo({},this.getWidgetRenderState(o)),{},{instantSearchInstance:s}),!1)},dispose:function(){n()},getRenderState:function(o,s){return Vo(Vo({},o),{},{stats:this.getWidgetRenderState(s)})},getWidgetRenderState:function(o){var s=o.results,a=o.state;return s?{hitsPerPage:s.hitsPerPage,nbHits:s.nbHits,nbSortedHits:s.nbSortedHits,areHitsSorted:typeof s.appliedRelevancyStrictness<"u"&&s.appliedRelevancyStrictness>0&&s.nbSortedHits!==s.nbHits,nbPages:s.nbPages,page:s.page,processingTimeMS:s.processingTimeMS,query:s.query,widgetParams:r}:{hitsPerPage:a.hitsPerPage,nbHits:0,nbSortedHits:void 0,areHitsSorted:!1,nbPages:0,page:a.page||0,processingTimeMS:-1,query:a.query||"",widgetParams:r}}}}};const T8=C8;function lc(t){"@babel/helpers - typeof";return lc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lc(t)}function sw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function aw(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?sw(Object(n),!0).forEach(function(r){I8(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sw(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function I8(t,e,n){return e=R8(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function R8(t){var e=$8(t,"string");return lc(e)==="symbol"?e:String(e)}function $8(t,e){if(lc(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(lc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var V8=tn({name:"stats"}),lw=di("Stats"),j8={text:function(e){return"".concat(e.areHitsSorted?N8(e):L8(e)," found in ").concat(e.processingTimeMS,"ms")}};function N8(t){var e=t.nbHits,n=t.hasNoSortedResults,r=t.hasOneSortedResults,i=t.hasManySortedResults,o=t.nbSortedHits,s="sorted out of ".concat(Wl(e));return n?"No relevant results ".concat(s):r?"1 relevant result ".concat(s):i?"".concat(Wl(o||0)," relevant results ").concat(s):""}function L8(t){var e=t.nbHits,n=t.hasNoResults,r=t.hasOneResult,i=t.hasManyResults;return n?"No results":r?"1 result":i?"".concat(Wl(e)," results"):""}var F8=function(e){var n=e.renderState,r=e.cssClasses,i=e.containerNode,o=e.templates;return function(s,a){var l=s.hitsPerPage,c=s.nbHits,u=s.nbSortedHits,f=s.areHitsSorted,h=s.nbPages,d=s.page,p=s.processingTimeMS,m=s.query,g=s.instantSearchInstance;if(a){n.templateProps=Zx({defaultTemplates:j8,templatesConfig:g.templatesConfig,templates:o});return}Or(me(A8,{cssClasses:r,hitsPerPage:l,nbHits:c,nbSortedHits:u,areHitsSorted:f,nbPages:h,page:d,processingTimeMS:p,query:m,templateProps:n.templateProps}),i)}},D8=function(e){var n=e||{},r=n.container,i=n.cssClasses,o=i===void 0?{}:i,s=n.templates,a=s===void 0?{}:s;if(!r)throw new Error(V8("The `container` option is required."));var l=Rl(r),c={root:ve(lw(),o.root),text:ve(lw({descendantName:"text"}),o.text)},u=F8({containerNode:l,cssClasses:c,templates:a,renderState:{}}),f=T8(u,function(){return Or(null,l)});return aw(aw({},f({})),{},{$$widgetType:"ais.stats"})};const Jd=D8,Wc=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},M8={props:["slug","indexName"],data(){return{loading:!0,url:new URL(window.location.href),client:{}}},methods:{onGeolocationChange({lat:t,lng:e}){this.aroundLatLng=`${t},${e}`,this.search.addWidgets([In({aroundLatLng:this.aroundLatLng})])},resetFilters(){this.client.clear()},initGeoLocation(){this.client=Ud("pk_BrTEsFmQNZbDe9V+nmWBOnIMotFCz2Q0eQuaZOgCEp4=",{target:this.$refs.input,countries:["ca"],maxResults:10,format:{noResults:t=>`${trans("global.placekit.no_results")} ${t}`}}).on("pick",(t,e,n)=>{this.onGeolocationChange(e)}).on("error",t=>{console.error(t)})},renderCustomHits(){return qc((t,e)=>{const{hits:n,widgetParams:r}=t;if(n.length===0){r.container.innerHTML=` <div class="flex flex-wrap justify-center text-14 text-gray-700 mb-2 insight delay--1"> <span class="text-center w-1/2 relative items-center"> ${__("jobs.general.no_results")} </span> </div> `;return}else r.container.innerHTML=` <div> ${n.map(i=>{const o=ai();return` <a href="${o==="fr"?`/${this.slug}/${i.slug}`:`/${o}/${this.slug}/${i.slug}`}" title="${i.title}" class="group block relative border-t last:border-b border-gray-400 p-4 md:p-7 lg:p-9 delay--1" > <span class="absolute inset-0 top-[100%] bg-gradient-to-t from-white to-transparent duration-700 group-hover:top-0 group-hover:duration-300 z-10"></span> <span class="relative z-20"> <span class="flex flex-wrap items-center"> <span class="w-full md:w-3/5"> <span class="block text-14 text-gray-500"> ${i.city} (${i.account}) </span> <span class="block text-18 text-gray-700 group-hover:text-red-600 duration-300"> ${i.title} </span> </span> <span class="w-full md:w-2/5 pr-16 pt-4 md:pt-0"> <span class="flex flex-wrap items-center gap-3"> <span class="text-14 text-red-600 py-1 md:py-2 px-3 bg-white border border-gray-200 rounded-md"> ${i.type} </span> <span class="text-14 text-red-600 py-1 md:py-2 px-3 bg-white border border-gray-200 rounded-md"> ${i.industry} </span> </span> </span> <span class="absolute top-1/2 -translate-y-1/2 right-0 opacity-0 -translate-x-full group-hover:translate-x-0 group-hover:opacity-100 duration-700 group-hover:duration-300 z-30"> <svg width="8.125" height="14.122" viewBox="0 0 8.125 14.122"> <path d="M10.059,8l-.531.531-6,6L3,15.063,1.941,14l.531-.531L7.941,8,2.469,2.531,1.937,2,3,.941l.531.531,6,6L10.063,8Z" transform="translate(-1.938 -0.941)" fill="#e11a22"/> </svg> </span> </span> </span> </a> `}).join("")} </div> `})},renderCustomClearRefinements(){return HW((t,e)=>{const{canRefine:n,refine:r,widgetParams:i}=t;if(e){const o=document.createElement("button");o.innerHTML=`${__("jobs.general.reset")} <i class="fa-solid fa-arrows-rotate pl-1"></i>`,o.addEventListener("click",()=>{r(),this.resetFilters()}),i.container.appendChild(o)}})},initSearch(){const t=this.renderCustomHits(),e=this.renderCustomClearRefinements(),n=xs("EIC10WP9LW","f46f83ab96da18b0937726cfbddffaf4");this.search=Hc({indexName:this.indexName,searchClient:n,routing:!0,future:{preserveSharedStateOnUnmount:!0}}),this.search.addWidgets([uC({container:"#searchBar",placeholder:__("jobs.general.search"),autofocus:!1,showReset:!1,showSubmit:!1}),t({container:document.querySelector("#hits")}),fy({container:"#pagination",cssClasses:{list:"pagination"},scrollTo:document.querySelector(".ais-InstantSearch")}),ZS({container:"#type",attribute:"type",limit:100,templates:{defaultOption(r,{html:i}){return i`<span>${__("jobs.general.types")}</span>`}}}),ZS({container:"#industry",attribute:"industry",limit:100,templates:{defaultOption(r,{html:i}){return i`<span>${__("jobs.general.categories")}</span>`}}}),Jd({container:"#stats",cssClasses:{root:"",text:["text-14 text-gray-700 mb-2 insight ghost delay--1 alive"]},templates:{text(r,{html:i}){return i`<span>${r.nbHits} ${__("jobs.general.jobs")}</span>`}}}),In({aroundLatLngViaIP:!1}),e({container:document.querySelector("#clear-refinements"),includedAttributes:["type","industry","query"]})]),this.search.start()}},async mounted(){await Lc(ai()),this.initSearch(this.props),this.initGeoLocation(),this.loading=!1},beforeUnmount(){var t,e;(e=(t=this.client)==null?void 0:t.destroy)!=null&&e.call&&this.client.destroy()}},k8={class:"ais-InstantSearch mb-10 md:mb-16"},B8={class:"relative py-6"},H8=Ee("div",{class:"absolute block top-0 bottom-0 left-[-1000px] right-[-1000px] bg-white z-10"},null,-1),q8={class:"relative flex flex-wrap items-center gap-4 lg:gap-8 z-20"},W8=Ee("div",{class:"w-full sm:w-[200px]"},[Ee("div",{id:"searchBar",class:"search-global"})],-1),U8={class:"w-full sm:w-[200px] search-city"},Q8=["placeholder"],z8=Vs('<div class="w-full sm:w-[200px]"><div id="industry"></div></div><div class="w-full sm:w-[200px]"><div id="type"></div></div><div id="clear-refinements" type="button" class="text-14 text-gray-700 hover:text-red-500 duration-300"></div>',3),K8=Vs('<div id="stats" class="mb-2"></div><div class="ais-InstantSearch"><div class="right-panel w-full"><div id="hits" class="w-full mb-10"></div><div class="pagination" id="pagination"></div></div></div>',2);function G8(t,e,n,r,i,o){return xn(),Gr("div",null,[Ee("div",k8,[Ee("div",B8,[H8,Ee("div",q8,[W8,Ee("div",U8,[Ee("input",{ref:"input",type:"search",id:"placekit",placeholder:t.__("jobs.general.city_or_zip_code")},null,8,Q8)]),z8])])]),K8])}const Y8=Wc(M8,[["render",G8]]),J8={props:{theme:String,url:String,indexName:String},data(){return{loading:!0,client:{},cookieConsent:lf()}},methods:{onGeolocationChange({lat:t,lng:e}){this.aroundLatLng=`${t},${e}`,this.search.addWidgets([In({aroundLatLng:this.aroundLatLng})])},resetFilters(){this.client.clear()},initGeoLocation(){this.client=Ud("pk_BrTEsFmQNZbDe9V+nmWBOnIMotFCz2Q0eQuaZOgCEp4=",{target:this.$refs.input,countries:["ca"],maxResults:10,types:["city"]}).on("pick",(t,e,n)=>{this.onGeolocationChange(e)}).on("error",t=>{console.error(t)})},getImagePath(t){return`/storage/assets/employees/${t}`},renderCustomHits(){return qc((t,e)=>{const{hits:n,widgetParams:r}=t;if(n.length===0){r.container.innerHTML=` <div class="flex flex-wrap justify-center text-14 text-gray-700 mb-2 insight delay--1"> <span class="text-center w-1/2 relative items-center"> ${__(`employees.search.${this.theme}_no_results`)} </span> </div> `;return}else r.container.innerHTML=` <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4"> ${n.map(i=>{const o=ai();let a=` <a href="${o==="fr"?`/${this.url}/${i.slug}`:`/${o}/${this.url}/${i.slug}`}" title="${i.title}" class="block mb-7" > `;return i.photo?a+=` <div class="group relative bg-cover bg-top bg-no-repeat w-full rounded-xl pb-[100%] overflow-hidden" > <div class="absolute inset-0 will-change-transform bg-cover bg-top bg-no-repeat group-hover:scale-105 duration-500" style="background-image:url(${this.getImagePath(i.photo)});"></div> </div> `:a+=` <div class="group relative bg-cover bg-top bg-no-repeat w-full rounded-xl pb-[100%] overflow-hidden" style="background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABgAAAAYABAMAAABCwJ5YAAAAGFBMVEX29vbl5eXy8vLp6ent7e3w8PD09PTr6+s435ReAAAVoklEQVR42uzBgQAAAACAoP2pF6kCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGD24EAAAAAAAMj/tRFUVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVYU9OBAAAAAAAPJ/bQRVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVWEPDgQAAAAAgPxfG0FVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVdi7m96mgSAMwKtKNufBVLlCJeg5hI9zqcKZFAJXSBT1iqnK74djUGjqpHFqr5/nP6x25p0dLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAD0WXn2cj6fTqfz+dmrBAOymN9M4h/V5Pbqe4LsLb5N4g7V+6sEGSu/jGO7N8ohcrW4jAYq1wA5Wt1EQ9WtdoDMrOrYxdsE+Ti5jB1VHxLkofwce6i+JshAUcd+XifovfPY2+h5gl4rL+IhfiXosdU4NoiDGIrzeLCRmQB9tVH+SIMYjrKOw/idoHeKcWyQhzIURRzQqUaAfrmONVphBuZJ/OUOYKCKOLjTBD1RRIQTwFAVsU4WxLCcjKMd7xJ0XjmOtvxM0HV1tOdTgm6bxRongIF5Ea2qrMjQZdfxH8JQBqKI1j1N0FFlHe37mKCbZnEM2gC6aRlHMUrQQSexhTcR5G4WW5gGkLllbKEIInNFbCcLJWt1bKUIImvLOKrKhiRdUsS9FEHk6yLupQgiW8toQhJEnspoxoIkWZpFQ94EkaEidmA1gNzU0ZQ+mPws45E8S/DoynHszMcBZONH7MY8mJz8Ye9+dpsGgjiOr514c+VHCr3WRFWvmAp6bd8AU6lcGw7l2oB4f2QkToh2N7U9k8338wLpYeX5szPbqFy0QlGQrXIQAlCWqCyEAJSlVR5CAEpSKxMhACXZKhchAOWIMkcIQLriAgAhADnKCwCEAKQrMAAQApCuxABACEC6QsZAWY6EA7GTD9cBmN9STrAahlSHvwnMdjB8aOTG2wAkKGkMjk4ocpXYA6UTChsLjWF9SScUB2mnF7n89e7hIfwRH76d/+x4IQWHpNELXH0J/6i/djwWjYPRam8f/9e1PO+0N8pgPMNJCXz1VNP+Qvt6H4BnOBgDOr0LT4q3lME4AJ328iM8q76hDIZ3jfZxchZSXFAGw7l2v89/orrjNhiudcq2vgvpbpXvMQDzWCrb+izk2JADwa922vM/2HAVAK/i1Od/sCEHglOryc//YMNiGHxqpz//gw05EDyKc5z/QU8OBIdWs93R9uRA8Ked7T/ZxZ2yBGB6yvJhnJELHgiCE0vleDNSusVdGJzYKsP6frRfIweCC50yXI+0e0wOBCcaZXg93u/xQhZcqJTudMTlM/bC4MKN0n0e8xd5JRQORKV7PWrSxW48HFgp2fp+1Js3LoPhwFbJHsduPNEIhblOBh/j7xrwOATMNZJFPdor1asATKeSZDCWUCvVSQCm0xsl460ksRUDY1FGd7K1JLEVA2ONrLoxrZiGgLnK7BjWTEPA3o3M2vGtmIaAsWiYhzQUAbDWWLZiWrEWBluV5RlsKAJgrDdNw3tuAmAq2o5krtiLhKnG9gTGjpsAWFooyTpMpGInAJZaJfkUJhIpAmCpsz5/PTsBsBPN+/ANi8Gws7T//u7EVRisVPb3UBVLMTDT2zcha1EFw0rnYBizN8/CcKyihyb8gioYRhoXZ88+DcORqlyk3z1VMGy0DjKgvzkQ78NhdjsPGVCIDipxHCMvJ69nIhoWaifJ90IDHkjEzFZO2i81wxCwsPVyA9WJvWDMr/fQBB20Xv4QHJWdhyboYOWjGMeRcdEEHURex/rN3h0cyQrDUBQVpjHrHwIhEEKHQAgOgfw3v6ZmzfRiqlR35Hsi6EU/bEvCKF/jPHffloGUbs9+G/7ZsAykdAvnX/diNCQ0lYOz8e6cxUjTuDBHgIjLcThlO0FP3QFpyWkenXMEiHhxtmOaxEbpAnzpjKkkTWQHHQEibtBypCksqHPnsA6qXAMyCPRtBZ3INYULteveUOuRJvBG1V26A9HKdZLOwBG3jQClgu05DtSCpPIarOyygLoSmsAGK7y/UGdylbfDXkFpsECquIV2FxVsS6biBqsIFPH2ZhQlOlhFoIjDVrASXbQdx7ATpkQ3aRLoy07bk6m0k1Z13GwFKxGu79RpZSlV1nnP25MWSRXWeEfOm9WZU2kbrQoacdFOJSps51Xdh7MQSrPS2gARC60wq8JW3uN2NwBKs/BOnJvDQEozeDXHZgCU5uC9gNh553KVdQHbrrzKrMq6gJNnJ643p7Ju4J/tDfxNKuoGbjeIq5KKOoEHzgM3n6eyiAEYBkBZiDV3A6A0xLGDBViaVVHEAKy85pyK6rxZuIjdAChJI758svPmk1QUMgAvA6AkjTcNHbEZAD0xAL4Vr+IBQP4oldSIuw0DoCdTBKATT+YqyQBoasjdBrI7p5KYBRcDoEcTrAAGQI8MgDdjafoAuALIAEgGQPqNbgA0sz8aABthKtx0Rf4olYRsuiLf0lFNBkBTI/acmPMZKskAaGoGQFM7gVcjei2KPil9Oe5qAPSz2t8HWLwZTh8V/hqLl+Pq0QwBGAZAn1T+HJFfiFGaC/hnI/4mFQX8UHbcwFVJRQ1gydHvBCvNwuu6dr8UrzQrb/Ky/QM251TUyhsG2gyA/rN37zZQA1EYhVk/xvGRaMCiAhMQsyW4AywaYPtPQNocWMHO/Jo5XwUObN/n2NUs/MnHD5VteZekbgW+bgODkrq1EtdyuXwAVM1EXNN9z6vL1S/iFm/ueZ1Z9euIm4TlXZE69khLOAqB2xnq1plWcq64C6d6zrSu+5ZXlqtjV9og4JbXmFXH4u633V04VTSn9UHvaSFJXdsIa7uTVpSoaytZ38edSGtLqWsl7I27kTaYUN/IKjpvaSmZOvfI6rufDoL1O73fcYeDYFW1RyXdhayApO5dUW2XJawkUffmqFvuhnMwVbVEJR1nVDzSACYIOoFyhM3l1L1C0D034RhAlR0Q86OwmaymrAZwkrMRfeEYQJVd5GxEP4IeRg1iJmYUVrALqtoWYhZCt5xL0TBWYvKOPakjpVEQ03o57IKqvkdKETDlPIoayEnIJGAmai1Dg7gI6b6fOdWIBrKRkXoXUkKRhjJBxA7mgk0gNVDISD32kEik0TxIWIkuB0FLGRrIHpEDrdgEUhNXRA50QdTpTA1jIWECdUTEIQ2oEHDvrZAykdZojoAcaI8IQxrSSfs+ENbAauVqnwNtWAOrlaX96/ds/wxqWBMvVqAdXoFGdkDb47g3rIHVzg5t9xAe7ZMwDWyGpquYK+AXIdTMSts38AnuQqshmhahEwRMIjSwExpOg3cg5VymhnTj73z58AYFSwC1tfztPfiOEHCBYzA1VWgXAgo4BlNj93Yh4MISQK3doNUw9gA34dTYQqsQ8B1LADVXaFQFFCwBFODeKARcWAIowAUt5rEFLAEUYKFJCNixBFCCAlB9J23lhdpDeqOTBtn4HcCzAAow89c+/ucWqN9FV3sT1dORCWyCKsWD2vnIyZOfhVaAC+q2ZBYAbIIqw8oLfvyvHwLYBFUKXvHtPyVAnoZUip2ar+QZngK+zCv9svGKz/+ccJkBKUrhJV//QwHgGFhBTp4q9EJPzICUZubp/Vtxn3jJxw/S+xVe8/HbP65AOAZWlBNq1KYbPLkIpyjfqfEELPDkIpyyFIB3t2dWMAP6yd7d7DYNRGEYtoLsrD+ZKusUWtbGrbqOoPuatM0aoqpbkgC5faSCUKH5mXFIcnzmfa5hNHP+ZgY2NYoU3w7IKxEBwai+ol222P+pAcEoxTuJqQW90y/MAcGkoeKVN1mgotETumAwqq825pHhP3NAsKpSG4OAPLUYSyICgm2f1c58l+2fu2CwIldLg5v22z8/48GMkdq6ul+7/CfaiCdBYcYrtVder6rYnH3QZoxBwBDtpL4+z575crvQVqTAMGSoXZXLj0+WtYLQBIAhuQwhBUYAK2nwOqTA6JC+zKALjMMrKlnBi6A4gqmMKDPg8AoZwXNACGZhIOhv1EDRUT2ZwF1gxDDVDOMAQIeZaIbRBMPRNDo+HoNAOH9HAAcAIvmah2AKArE8zUMwBYFIvrIADgBEcpUFcAAgkq8jgBIQYnk6AigB4egaheMAgDs9xWAKCN4MdSQlU0AwoKh0HD8ywICpQlEChUczBaIHBo9yBaIECpcaBaEECp96CsFNeHg11R7wJyQ6Y6RtyIDhWK4tCIDg2lSx+A8Dnoy0AQEQvOtpAwIguPeoDZiBgHuNDqKkBQaTipnW4DcApCDXAbzPAKP6WoUEAKkYahVugSEVI71EBwDJKCrt09cMMC3XP0iAkZRHPUcCjNRMtScDEmB0wVB/UABCghr9xgQEktSw/pG0hvWPpDWsfyStYf0jaWPqn0jaG9Y/kvao/+KE9Y9ueqiY/0HKihnzz0jaWDsZUP5Bt+0UBs0zoOvGbP9I2kPF9o+kva0U65LiJ/woxorymugHvvTGCnZxnwHeFLeVQlyy+8Ops4W2KK+J/eFYMam03sV5BjhXnE1qvVB//0Tog3Sc3k2Wy0Vd11fLb3enxD34yR4cCAAAAAAA+b82gqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqsE/HJg0GABhEfxVSmw0ygpAVBFuHcX+svloiIUXuvQWuOgDgWb1dH+py3OJ0faiPg5yX80N9H7d4PT/U+0GOAcYASQYYAyQZYAyQZIAxQJIBxgBJBhgDJBlgDJBkgDFAkgHGAEkGGAMkGWAMkGSAMUCSAcYASQYYAyQZYAyQZIAxQJIBxgBJBhgDJBlgDJBkgDFAkgHGAEkGGAMkGWAMkGSAMUCSAcYASQYYAyQZYAyQZIAxQJIBxgBJBhgDJBlgDJBkgDFAkgHGAEkGGAMkGWAMkGSAMUCSAcYASQYYAyQZYAyQZIAxQJIBxgBJBhgDJBlgDJBkgDFAkgHGAEkGGAMkGWAMkGSAMUCSAcYASQYYAyQZYAyQZIAxQJIBxgBJBhgDJBlgDJBkgDFAkgHGAEkGGAMkGWAMkGSAMUCSAcYASQYYAyQZYAyQZIAxQJIBxgBJfw/w83lHl+MWp3umvwzAfwa4HM/h1QAYwAAYwAAYwAAYwAB1BjBAmgEMkGYAA6QZwAC/7NOBAAAAAIAgf+tBLofWBBBgTQAB1gQQYE0AAdYEEGBNAAHWBBBgTQAB1gQQYE0AAdYEEGBNAAHWBBBgTQAB1gQQYE0AAdYEEGBNAAHWBBBgTQAB1gQQYE0AAdYEEGBNAAHWBBBgTQAB1gQQYE0AAdYEEGBNAAHWBBBgTQAB1gQQYE0AAdYEEGBNAAHWBBBgTQAB1gQQYE0AAdYEEGBNAAHWBBBgTQAB1gQQYE0AAdYEEGBNAAHWBBBgTQAB1gQQYE0AAdYEEGBNAAHWBBBgTQAB1gQQYE0AAdYEEGBNAAHWBBBgTQAB1gQQYE0AAdYEEGBNAAHWBBBgTQAB1gQQYE0AAdYEEGBNAAHWBBBgTQAB1gQQYE0AAdYEEGBNAAHWBBBgLfbpQAAAAABAkL/1IJdDAgiwJoAAawIIsCaAAGsCCLAmgABrAgiwJoAAawIIsCaAAGsCCLAmgABrAgiwJoAAawIIsCaAAGsCCLAmgABrAgiwJoAAawIIsCaAAGsCCLAmgABrAgiwJoAAawIIsCaAAGsCCLAmgABrAgiwJoAAawIIsCaAAGsCCLAmgABrAgiwJoAAawIIsCaAAGsCCLAmgABrAgiwJoAAawIIsCaAAGsCCLAmgABrAgiwJoAAawIIsCaAAGsCCLAmgABrAgiwJoAAawIIsCaAAGsCCLAmgABrAgiwJoAAawIIsCaAAGsCCLAmgABrAgiwJoAAawIIsCaAAGsCCLAmgABrAgiwJoAAawIIsCaAAGsCCLAmgABrAgiwJkDs04EAAAAAgCB/60EuhwRYE0CANQEEWBNAgDUBBFgTQIA1AQRYE0CANQEEWBNAgDUBBFgTQIA1AQRYE0CANQEEWBNAgDUBBFgTQIA1AQRYE0CANQEEWBNAgDUBBFgTQIA1AQRYE0CANQEEWBNAgDUBBFgTQIA1AQRYE0CANQEEWBNAgDUBBFgTQIA1AQRYE0CANQEEWBNAgDUBBFgTQIA1AQRYE0CANQEEWBNAgDUBBFgTQIA1AQRYE0CANQEEWBNAgDUBBFgTQIA1AQRYE0CANQEEWBNAgDUBBFgTQIA1AQRYE0CANQEEWBNAgDUBBFgTQIA1AQRYE0CANQEEWBNAgDUBBFgTQIA1AQRYE0CANQEEWBNAgDUBBFgTQIA1AQRYE0CA2KeDAgBAGABCPoxmEPunWIQFOOhAmgACpAkgQJoAAqQJIECaAAKkCSBAmgACpAkgQJoAAqQJIECaAAKkCSBAmgACpAkgQJoAAqQJIECaAAKkCSBAmgACpAkgQJoAAqQJIECaAAKkCSBAmgACpAkgQJoAAqQJIECaAAKkCSBAmgACpAkgQJoAAqQJIECaAAKkCSBAmgACpAkgQJoAAqQJIECaAAKkCSBAmgACpAkgQJoAAqQJIECaAAKkCSBAmgACpAkgQJoAAqQJIECaAAKkCSBAmgACpAkgQJoAAqQJIECaAAKkCSBAmgACpAkgQJoAAqQJIECaAAKkCSBAmgACpAkgQJoAAqQJIECaAAKkCSBAmgACpAkgQJoAAqTdt/kHAABg2IMDAQAAAAAg/9dGUFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUV9uBAAAAAAADI/7URVFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVWFPTgQAAAAAADyf20EVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVhDw4EAAAAAID8XxtBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVXagwMBAAAAAEH+1iMsUAEAAAAAAAAAAAAAAAAAAAAAAAAAJyJJ87OMdYJkAAAAAElFTkSuQmCC');"></div> `,a+=` <div class="p-4"> <p class="m-0 mb-1 text-16 text-red-600 font-semibold">${i.title}</p> `,i.job&&(a+=` <p class="m-0 mb-1 text-14 text-gray-600">${i.job}</p> `),i.is_associate&&(i.gender==="male"?a+=` <p class="m-0 text-14 text-gray-500">${__("global.associateM")}</p> `:i.gender==="female"?a+=` <p class="m-0 text-14 text-gray-500">${__("global.associateF")}</p> `:a+=` <p class="m-0 text-14 text-gray-500">${__("global.associate")}</p> `),a+=` </div> </a> `,a}).join("")} </div> `})},initSearch(){const t=this,e=this.renderCustomHits(),n=xs("EIC10WP9LW","f46f83ab96da18b0937726cfbddffaf4");this.search=Hc({indexName:this.indexName,searchClient:n,routing:!0,future:{preserveSharedStateOnUnmount:!0}}),this.search.addWidgets([uC({container:"#searchBar",placeholder:__("jobs.general.search"),autofocus:!1,showReset:!1,showSubmit:!1}),e({container:document.querySelector("#hits")}),fy({container:"#pagination",cssClasses:{list:"pagination"},scrollTo:document.querySelector(".ais-InstantSearch")}),Jd({container:"#stats",cssClasses:{root:"",text:["text-14 text-gray-700 mb-2 insight ghost delay--1 alive"]},templates:{text(r,{html:i}){return r.nbHits>0?i`<span>${r.nbHits} ${transChoice(`employees.${t.theme}_label`,r.nbHits)}</span>`:""}}}),In({aroundLatLngViaIP:this.cookieConsent})]),this.search.start()},async handleConsentUpdate(){this.cookieConsent=lf(),this.initSearch()}},async mounted(){await Lc(ai()),this.initSearch(this.props),this.loading=!1,document.addEventListener("cookieyes_consent_update",this.handleConsentUpdate)},beforeUnmount(){var t,e;document.removeEventListener("cookieyes_consent_update",this.handleConsentUpdate),(e=(t=this.client)==null?void 0:t.destroy)!=null&&e.call&&this.client.destroy()}},Z8=Vs('<div class="ais-InstantSearch mb-10 md:mb-16"><div class="relative py-6"><div class="absolute block top-0 bottom-0 left-[-1000px] right-[-1000px] bg-white z-10"></div><div class="relative flex flex-wrap items-center gap-4 lg:gap-8 z-20"><div class="w-full sm:w-[200px]"><div id="searchBar" class="search-global"></div></div></div></div></div><div id="stats" class="mb-2"></div><div class="ais-InstantSearch"><div class="right-panel w-full"><div id="hits" class="w-full mb-10"></div><div class="pagination" id="pagination"></div></div></div>',3),X8=[Z8];function eQ(t,e,n,r,i,o){return xn(),Gr("div",null,X8)}const tQ=Wc(J8,[["render",eQ]]),nQ={props:{theme:String,url:String,indexName:String,timetablesJson:String},data(){return{loading:!0,client:{},timetables:{}}},methods:{onFindMe(){this.search.addWidgets([In({aroundLatLngViaIP:!0})])},onGeolocationChange({lat:t,lng:e}){this.aroundLatLng=`${t},${e}`,this.search.addWidgets([In({aroundLatLngViaIP:!1,aroundLatLng:this.aroundLatLng})])},initGeoLocation(){this.client=Ud("pk_BrTEsFmQNZbDe9V+nmWBOnIMotFCz2Q0eQuaZOgCEp4=",{target:this.$refs.input,countries:["ca"],maxResults:10,format:{noResults:t=>`${trans("global.placekit.no_results")} ${t}`}}).on("pick",(t,e,n)=>{this.onGeolocationChange(e)}).on("error",t=>{console.error(t)})},renderCustomHits(){return qc((t,e)=>{const{hits:n,widgetParams:r}=t;if(n.length===0){r.container.innerHTML=` <div class="flex flex-wrap justify-center text-14 text-gray-700 mb-2 insight delay--1"> <span class="text-center w-1/2 relative items-center"> ${__(`offices.search.${this.theme}_no_results`)} </span> </div> `;return}else{let i='<div class="grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-6">';n.map(o=>i+=this.renderHit(o)),i+="</div>",r.container.innerHTML=i}})},renderHit({objectID:t,title:e,address:n,url:r,phone_no:i}){let o='<div class="bg-white sm:rounded-md rounded-xl p-4 sm:p-6 md:p-8 lg:p-10">';return e&&(o+=`<p class="text-20 md:text-24 font-sans font-medium text-gray-700">${e}</p>`),n&&(o+=`<p class="text-16 mt-5">${n}</p>`),i&&(o+=`<p class="mt-5"><a href="tel:${i}" title="${i}" class="text-gray-600 text-16 bg-none">${i}</a></p>`),o+=this.timetables[t]||"",o+=`<div class="mt-6"><a href="${r}" title="${trans("global.learn_more")}" class="text-red-600 hover:text-red-700 py-2 text-14 sm:text-16 font-normal duration-300 whitespace-nowrap">${trans("global.learn_more")}</a></div>`,o+="</div>",o},initSearch(){const t=this,e=this.renderCustomHits(),n=xs("EIC10WP9LW","f46f83ab96da18b0937726cfbddffaf4");this.search=Hc({indexName:this.indexName,searchClient:n,routing:!0,future:{preserveSharedStateOnUnmount:!0}}),this.search.addWidgets([In({aroundLatLngViaIP:!1}),e({container:document.querySelector("#hits")}),fy({container:"#pagination",cssClasses:{list:"pagination"},scrollTo:document.querySelector(".ais-InstantSearch")}),Jd({container:"#stats",cssClasses:{root:"",text:["text-14 text-gray-700 mb-2 insight ghost delay--1 alive"]},templates:{text(r,{html:i}){return r.nbHits>0?i`<span>${r.nbHits} ${transChoice(`offices.${t.theme}_label`,r.nbHits)}</span>`:""}}})]),this.search.start()}},async mounted(){this.timetables=JSON.parse(this.timetablesJson),await Lc(ai()),this.initSearch(this.props),this.initGeoLocation(),this.loading=!1},beforeUnmount(){var t,e;(e=(t=this.client)==null?void 0:t.destroy)!=null&&e.call&&this.client.destroy()}},rQ={class:"ais-InstantSearch mb-10 md:mb-16"},iQ={class:"relative py-6"},oQ=Ee("div",{class:"absolute block top-0 bottom-0 left-[-1000px] right-[-1000px] bg-white z-10"},null,-1),sQ={class:"relative flex flex-wrap items-center gap-4 lg:gap-8 z-20"},aQ={class:""},lQ=["innerHTML"],cQ=Ee("svg",{width:"13.5",height:"13.5",viewBox:"0 0 13.5 13.501"},[Ee("path",{id:"location-arrow-light",d:"M22.76,53.726H17.048l11.424-4.673L23.8,60.476V54.764A1.037,1.037,0,0,0,22.76,53.726Zm-1.039,1.039H22.76v5.712a1.038,1.038,0,0,0,2,.393l4.673-11.424a1.038,1.038,0,0,0-1.353-1.353L16.655,52.765a1.038,1.038,0,0,0,.393,2Z",transform:"translate(-16.01 -48.014)",fill:"#191919"})],-1),uQ={class:"search-city"},fQ=["placeholder"],dQ=Vs('<div id="stats" class="mb-2"></div><div class="ais-InstantSearch"><div class="right-panel w-full"><div id="hits" class="w-full mb-10"></div><div class="pagination" id="pagination"></div></div></div>',2);function hQ(t,e,n,r,i,o){return xn(),Gr("div",null,[Ee("div",rQ,[Ee("div",iQ,[oQ,Ee("div",sQ,[Ee("div",aQ,[Ee("button",{class:"flex items-center text-16 text-gray-800 bg-gray-100 hover:bg-gray-200 duration-300 rounded-md py-2 px-6",onClick:e[0]||(e[0]=(...s)=>o.onFindMe&&o.onFindMe(...s))},[Ee("span",{class:"mr-3",innerHTML:t.__("offices.general.find_me")},null,8,lQ),cQ])]),Ee("div",uQ,[Ee("input",{ref:"input",type:"search",id:"placekit",placeholder:t.__("offices.general.city_or_zip_code")},null,8,fQ)])])])]),dQ])}const pQ=Wc(nQ,[["render",hQ]]),mQ={props:{theme:String,url:String,indexName:String,timetablesJson:String,officesRegionSlug:String,officesRegionTitle:String},data(){const t=this.officesRegionSlug.split("|"),e=this.officesRegionTitle.split("|"),n=t.reduce((r,i,o)=>(r[i]=e[o],r),{});return{loading:!0,client:{},timetables:{},searching:!1,regions:n}},methods:{scrollTo(t){const e=document.getElementById(t);e&&e.scrollIntoView({behavior:"smooth"})},onFindMe(){this.seaching=!0,this.search.addWidgets([In({aroundLatLngViaIP:!0})])},onGeolocationChange({lat:t,lng:e}){this.aroundLatLng=`${t},${e}`,this.seaching=!0,this.search.addWidgets([In({aroundLatLngViaIP:!1,aroundLatLng:this.aroundLatLng})])},initGeoLocation(){this.client=Ud("pk_BrTEsFmQNZbDe9V+nmWBOnIMotFCz2Q0eQuaZOgCEp4=",{target:this.$refs.input,countries:["ca"],maxResults:10,format:{noResults:t=>`${trans("global.placekit.no_results")} ${t}`}}).on("pick",(t,e,n)=>{this.onGeolocationChange(e)}).on("error",t=>{console.error(t)})},renderCustomHits(){return qc((t,e)=>{const{hits:n,widgetParams:r}=t;let i=[];if(this.seaching?i=n.reduce((o,s)=>(o[s.region.slug]!==void 0?o[s.region.slug].push(s):o[s.region.slug]=[s],o),{}):(i=n.reduce((o,s)=>((o[s.region.order]=o[s.region.order]||[]).push(s),o),{}),Object.keys(i).forEach(o=>{i[o].sort((s,a)=>s.order-a.order)})),n.length===0){r.container.innerHTML=` <div class="flex flex-wrap justify-center text-14 text-gray-700 mb-2 insight delay--1"> <span class="text-center w-1/2 relative items-center"> ${__(`offices.search.${this.theme}_no_results`)} </span> </div> `;return}else{let o='<div class="grid grid-row">';Object.keys(i).forEach(s=>{o+='<div class="grid grid-row pb-8">',o+=`<div id="${i[s][0].region.slug}" class="flex flex-wrap justify-center text-36 font-serif font-medium text-gray-700 py-10">${i[s][0].region.title??`${__("offices.other")}`}</div>`,o+='<div class="grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-6">',i[s].forEach(a=>{o+=this.renderHit(a)}),o+="</div>",o+="</div>"}),o+="</div>",r.container.innerHTML=o}})},renderHit({objectID:t,title:e,address:n,url:r,phone_no:i}){let o='<div class="bg-white sm:rounded-md rounded-xl p-4 sm:p-6 md:p-8 lg:p-10">';return e&&(o+=`<p class="text-20 md:text-24 font-sans font-medium text-gray-700">${e}</p>`),n&&(o+=`<p class="text-16 mt-5">${n}</p>`),i&&(o+=`<p class="mt-5"><a href="tel:${i}" title="${i}" class="text-gray-600 text-16 bg-none">${i}</a></p>`),o+=this.timetables[t]||"",o+=`<div class="mt-6"><a href="${r}" title="${trans("global.learn_more")}" class="text-red-600 hover:text-red-700 py-2 text-14 sm:text-16 font-normal duration-300 whitespace-nowrap">${trans("global.learn_more")}</a></div>`,o+="</div>",o},initSearch(){const t=this,e=this.renderCustomHits(),n=xs("EIC10WP9LW","f46f83ab96da18b0937726cfbddffaf4");this.search=Hc({indexName:this.indexName,searchClient:n,routing:!0,future:{preserveSharedStateOnUnmount:!0}}),this.search.addWidgets([In({aroundLatLngViaIP:!1}),e({container:document.querySelector("#hits")}),Jd({container:"#stats",cssClasses:{root:"",text:["text-14 text-gray-700 mb-2 insight ghost delay--1 alive"]},templates:{text(r,{html:i}){return r.nbHits>0?i`<span>${r.nbHits} ${transChoice(`offices.${t.theme}_label`,r.nbHits)}</span>`:""}}})]),this.search.start()}},async mounted(){this.timetables=JSON.parse(this.timetablesJson),await Lc(ai()),this.initSearch(this.props),this.initGeoLocation(),this.loading=!1},beforeUnmount(){var t,e;(e=(t=this.client)==null?void 0:t.destroy)!=null&&e.call&&this.client.destroy()}},gQ={class:"ais-InstantSearch mb-10 md:mb-16"},vQ={class:"relative py-6"},yQ=Ee("div",{class:"absolute block top-0 bottom-0 left-[-1000px] right-[-1000px] bg-white z-10"},null,-1),bQ={class:"relative flex flex-wrap items-center gap-4 lg:gap-8 z-20 pb-4"},_Q={class:""},SQ=["innerHTML"],wQ=Ee("svg",{width:"13.5",height:"13.5",viewBox:"0 0 13.5 13.501"},[Ee("path",{id:"location-arrow-light",d:"M22.76,53.726H17.048l11.424-4.673L23.8,60.476V54.764A1.037,1.037,0,0,0,22.76,53.726Zm-1.039,1.039H22.76v5.712a1.038,1.038,0,0,0,2,.393l4.673-11.424a1.038,1.038,0,0,0-1.353-1.353L16.655,52.765a1.038,1.038,0,0,0,.393,2Z",transform:"translate(-16.01 -48.014)",fill:"#191919"})],-1),AQ={class:"search-city"},OQ=["placeholder"],EQ={class:"relative flex flex-wrap border-t border-gray-400 items-center justify-center gap-2 lg:gap-2 z-20 pt-4"},PQ=["onClick"],xQ=Vs('<div id="stats" class="mb-2"></div><div class="ais-InstantSearch"><div class="right-panel w-full"><div id="hits" class="w-full mb-10"></div><div class="pagination" id="pagination"></div></div></div>',2);function CQ(t,e,n,r,i,o){return xn(),Gr("div",null,[Ee("div",gQ,[Ee("div",vQ,[yQ,Ee("div",bQ,[Ee("div",_Q,[Ee("button",{class:"flex items-center text-16 text-gray-800 bg-gray-100 hover:bg-gray-200 duration-300 rounded-md py-2 px-6",onClick:e[0]||(e[0]=(...s)=>o.onFindMe&&o.onFindMe(...s))},[Ee("span",{class:"mr-3",innerHTML:t.__("offices.general.find_me")},null,8,SQ),wQ])]),Ee("div",AQ,[Ee("input",{ref:"input",type:"search",id:"placekit",placeholder:t.__("offices.general.city_or_zip_code")},null,8,OQ)])]),Ee("div",EQ,[(xn(!0),Gr(dt,null,eE(i.regions,(s,a)=>(xn(),Gr("button",{class:"text-14 text-red-600 py-1 md:py-2 px-3 bg-white border border-gray-200 rounded-full hover:border-red-600",onClick:l=>o.scrollTo(a)},sO(s),9,PQ))),256))])])]),xQ])}const TQ=Wc(mQ,[["render",CQ]]),IQ={props:{theme:String,url:String,indexName:String,sectionTitle:String,buttonText:String,buttonLink:String,searchFilter:String,searchFilterValue:String},data(){return{loading:!0,client:{},cookieConsent:lf()}},methods:{getImagePath(t){return`/storage/assets/employees/${t}`},renderCustomHits(){return qc((t,e)=>{const{hits:n,widgetParams:r}=t;if(n.length!==0){const o=(this.cookieConsent?n:n.sort(()=>Math.random()-.5)).slice(0,4);r.container.innerHTML=` <div class="padd"> <div class="block md:flex md:items-end mb-10 lg:mb-14 xl:mb-16"> <h2 class="h3 font-serif text-gray-700 md:mr-14 grow !mb-0"> ${this.sectionTitle} </h2> <div> <div class="btnWrapper"> <a href="${this.url}${this.buttonLink}" class="bg-gray-700 text-white hover:bg-gray-800 w-full sm:w-auto text-center py-[11px] px-5 text-14 sm:text-16 font-medium rounded-full whitespace-nowrap"> ${this.buttonText} </a> </div> </div> </div> <div class="grid grid-cols-2 md:grid-cols-4 gap-4 md:gap-6"> ${o.map(s=>{let c=` <a href="${ai()==="fr"?`${this.url}${this.buttonLink}/${s.slug}`:`${this.url}${this.buttonLink}/${s.slug}`}" title="${s.title}" class="block mb-7" > `;return s.photo?c+=` <div class="group relative bg-cover bg-top bg-no-repeat w-full rounded-xl pb-[100%] overflow-hidden" > <div class="absolute inset-0 will-change-transform bg-cover bg-top bg-no-repeat group-hover:scale-105 duration-500" style="background-image:url(${this.getImagePath(s.photo)});"></div> </div> `:c+=` <div class="group relative bg-cover bg-top bg-no-repeat w-full rounded-xl pb-[100%] overflow-hidden" style="background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABgAAAAYABAMAAABCwJ5YAAAAGFBMVEX29vbl5eXy8vLp6ent7e3w8PD09PTr6+s435ReAAAVoklEQVR42uzBgQAAAACAoP2pF6kCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGD24EAAAAAAAMj/tRFUVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVYU9OBAAAAAAAPJ/bQRVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVWEPDgQAAAAAgPxfG0FVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVdi7m96mgSAMwKtKNufBVLlCJeg5hI9zqcKZFAJXSBT1iqnK74djUGjqpHFqr5/nP6x25p0dLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAD0WXn2cj6fTqfz+dmrBAOymN9M4h/V5Pbqe4LsLb5N4g7V+6sEGSu/jGO7N8ohcrW4jAYq1wA5Wt1EQ9WtdoDMrOrYxdsE+Ti5jB1VHxLkofwce6i+JshAUcd+XifovfPY2+h5gl4rL+IhfiXosdU4NoiDGIrzeLCRmQB9tVH+SIMYjrKOw/idoHeKcWyQhzIURRzQqUaAfrmONVphBuZJ/OUOYKCKOLjTBD1RRIQTwFAVsU4WxLCcjKMd7xJ0XjmOtvxM0HV1tOdTgm6bxRongIF5Ea2qrMjQZdfxH8JQBqKI1j1N0FFlHe37mKCbZnEM2gC6aRlHMUrQQSexhTcR5G4WW5gGkLllbKEIInNFbCcLJWt1bKUIImvLOKrKhiRdUsS9FEHk6yLupQgiW8toQhJEnspoxoIkWZpFQ94EkaEidmA1gNzU0ZQ+mPws45E8S/DoynHszMcBZONH7MY8mJz8Ye9+dpsGgjiOr514c+VHCr3WRFWvmAp6bd8AU6lcGw7l2oB4f2QkToh2N7U9k8338wLpYeX5szPbqFy0QlGQrXIQAlCWqCyEAJSlVR5CAEpSKxMhACXZKhchAOWIMkcIQLriAgAhADnKCwCEAKQrMAAQApCuxABACEC6QsZAWY6EA7GTD9cBmN9STrAahlSHvwnMdjB8aOTG2wAkKGkMjk4ocpXYA6UTChsLjWF9SScUB2mnF7n89e7hIfwRH76d/+x4IQWHpNELXH0J/6i/djwWjYPRam8f/9e1PO+0N8pgPMNJCXz1VNP+Qvt6H4BnOBgDOr0LT4q3lME4AJ328iM8q76hDIZ3jfZxchZSXFAGw7l2v89/orrjNhiudcq2vgvpbpXvMQDzWCrb+izk2JADwa922vM/2HAVAK/i1Od/sCEHglOryc//YMNiGHxqpz//gw05EDyKc5z/QU8OBIdWs93R9uRA8Ked7T/ZxZ2yBGB6yvJhnJELHgiCE0vleDNSusVdGJzYKsP6frRfIweCC50yXI+0e0wOBCcaZXg93u/xQhZcqJTudMTlM/bC4MKN0n0e8xd5JRQORKV7PWrSxW48HFgp2fp+1Js3LoPhwFbJHsduPNEIhblOBh/j7xrwOATMNZJFPdor1asATKeSZDCWUCvVSQCm0xsl460ksRUDY1FGd7K1JLEVA2ONrLoxrZiGgLnK7BjWTEPA3o3M2vGtmIaAsWiYhzQUAbDWWLZiWrEWBluV5RlsKAJgrDdNw3tuAmAq2o5krtiLhKnG9gTGjpsAWFooyTpMpGInAJZaJfkUJhIpAmCpsz5/PTsBsBPN+/ANi8Gws7T//u7EVRisVPb3UBVLMTDT2zcha1EFw0rnYBizN8/CcKyihyb8gioYRhoXZ88+DcORqlyk3z1VMGy0DjKgvzkQ78NhdjsPGVCIDipxHCMvJ69nIhoWaifJ90IDHkjEzFZO2i81wxCwsPVyA9WJvWDMr/fQBB20Xv4QHJWdhyboYOWjGMeRcdEEHURex/rN3h0cyQrDUBQVpjHrHwIhEEKHQAgOgfw3v6ZmzfRiqlR35Hsi6EU/bEvCKF/jPHffloGUbs9+G/7ZsAykdAvnX/diNCQ0lYOz8e6cxUjTuDBHgIjLcThlO0FP3QFpyWkenXMEiHhxtmOaxEbpAnzpjKkkTWQHHQEibtBypCksqHPnsA6qXAMyCPRtBZ3INYULteveUOuRJvBG1V26A9HKdZLOwBG3jQClgu05DtSCpPIarOyygLoSmsAGK7y/UGdylbfDXkFpsECquIV2FxVsS6biBqsIFPH2ZhQlOlhFoIjDVrASXbQdx7ATpkQ3aRLoy07bk6m0k1Z13GwFKxGu79RpZSlV1nnP25MWSRXWeEfOm9WZU2kbrQoacdFOJSps51Xdh7MQSrPS2gARC60wq8JW3uN2NwBKs/BOnJvDQEozeDXHZgCU5uC9gNh553KVdQHbrrzKrMq6gJNnJ643p7Ju4J/tDfxNKuoGbjeIq5KKOoEHzgM3n6eyiAEYBkBZiDV3A6A0xLGDBViaVVHEAKy85pyK6rxZuIjdAChJI758svPmk1QUMgAvA6AkjTcNHbEZAD0xAL4Vr+IBQP4oldSIuw0DoCdTBKATT+YqyQBoasjdBrI7p5KYBRcDoEcTrAAGQI8MgDdjafoAuALIAEgGQPqNbgA0sz8aABthKtx0Rf4olYRsuiLf0lFNBkBTI/acmPMZKskAaGoGQFM7gVcjei2KPil9Oe5qAPSz2t8HWLwZTh8V/hqLl+Pq0QwBGAZAn1T+HJFfiFGaC/hnI/4mFQX8UHbcwFVJRQ1gydHvBCvNwuu6dr8UrzQrb/Ky/QM251TUyhsG2gyA/rN37zZQA1EYhVk/xvGRaMCiAhMQsyW4AywaYPtPQNocWMHO/Jo5XwUObN/n2NUs/MnHD5VteZekbgW+bgODkrq1EtdyuXwAVM1EXNN9z6vL1S/iFm/ueZ1Z9euIm4TlXZE69khLOAqB2xnq1plWcq64C6d6zrSu+5ZXlqtjV9og4JbXmFXH4u633V04VTSn9UHvaSFJXdsIa7uTVpSoaytZ38edSGtLqWsl7I27kTaYUN/IKjpvaSmZOvfI6rufDoL1O73fcYeDYFW1RyXdhayApO5dUW2XJawkUffmqFvuhnMwVbVEJR1nVDzSACYIOoFyhM3l1L1C0D034RhAlR0Q86OwmaymrAZwkrMRfeEYQJVd5GxEP4IeRg1iJmYUVrALqtoWYhZCt5xL0TBWYvKOPakjpVEQ03o57IKqvkdKETDlPIoayEnIJGAmai1Dg7gI6b6fOdWIBrKRkXoXUkKRhjJBxA7mgk0gNVDISD32kEik0TxIWIkuB0FLGRrIHpEDrdgEUhNXRA50QdTpTA1jIWECdUTEIQ2oEHDvrZAykdZojoAcaI8IQxrSSfs+ENbAauVqnwNtWAOrlaX96/ds/wxqWBMvVqAdXoFGdkDb47g3rIHVzg5t9xAe7ZMwDWyGpquYK+AXIdTMSts38AnuQqshmhahEwRMIjSwExpOg3cg5VymhnTj73z58AYFSwC1tfztPfiOEHCBYzA1VWgXAgo4BlNj93Yh4MISQK3doNUw9gA34dTYQqsQ8B1LADVXaFQFFCwBFODeKARcWAIowAUt5rEFLAEUYKFJCNixBFCCAlB9J23lhdpDeqOTBtn4HcCzAAow89c+/ucWqN9FV3sT1dORCWyCKsWD2vnIyZOfhVaAC+q2ZBYAbIIqw8oLfvyvHwLYBFUKXvHtPyVAnoZUip2ar+QZngK+zCv9svGKz/+ccJkBKUrhJV//QwHgGFhBTp4q9EJPzICUZubp/Vtxn3jJxw/S+xVe8/HbP65AOAZWlBNq1KYbPLkIpyjfqfEELPDkIpyyFIB3t2dWMAP6yd7d7DYNRGEYtoLsrD+ZKusUWtbGrbqOoPuatM0aoqpbkgC5faSCUKH5mXFIcnzmfa5hNHP+ZgY2NYoU3w7IKxEBwai+ol222P+pAcEoxTuJqQW90y/MAcGkoeKVN1mgotETumAwqq825pHhP3NAsKpSG4OAPLUYSyICgm2f1c58l+2fu2CwIldLg5v22z8/48GMkdq6ul+7/CfaiCdBYcYrtVder6rYnH3QZoxBwBDtpL4+z575crvQVqTAMGSoXZXLj0+WtYLQBIAhuQwhBUYAK2nwOqTA6JC+zKALjMMrKlnBi6A4gqmMKDPg8AoZwXNACGZhIOhv1EDRUT2ZwF1gxDDVDOMAQIeZaIbRBMPRNDo+HoNAOH9HAAcAIvmah2AKArE8zUMwBYFIvrIADgBEcpUFcAAgkq8jgBIQYnk6AigB4egaheMAgDs9xWAKCN4MdSQlU0AwoKh0HD8ywICpQlEChUczBaIHBo9yBaIECpcaBaEECp96CsFNeHg11R7wJyQ6Y6RtyIDhWK4tCIDg2lSx+A8Dnoy0AQEQvOtpAwIguPeoDZiBgHuNDqKkBQaTipnW4DcApCDXAbzPAKP6WoUEAKkYahVugSEVI71EBwDJKCrt09cMMC3XP0iAkZRHPUcCjNRMtScDEmB0wVB/UABCghr9xgQEktSw/pG0hvWPpDWsfyStYf0jaWPqn0jaG9Y/kvao/+KE9Y9ueqiY/0HKihnzz0jaWDsZUP5Bt+0UBs0zoOvGbP9I2kPF9o+kva0U65LiJ/woxorymugHvvTGCnZxnwHeFLeVQlyy+8Ops4W2KK+J/eFYMam03sV5BjhXnE1qvVB//0Tog3Sc3k2Wy0Vd11fLb3enxD34yR4cCAAAAAAA+b82gqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqsE/HJg0GABhEfxVSmw0ygpAVBFuHcX+svloiIUXuvQWuOgDgWb1dH+py3OJ0faiPg5yX80N9H7d4PT/U+0GOAcYASQYYAyQZYAyQZIAxQJIBxgBJBhgDJBlgDJBkgDFAkgHGAEkGGAMkGWAMkGSAMUCSAcYASQYYAyQZYAyQZIAxQJIBxgBJBhgDJBlgDJBkgDFAkgHGAEkGGAMkGWAMkGSAMUCSAcYASQYYAyQZYAyQZIAxQJIBxgBJBhgDJBlgDJBkgDFAkgHGAEkGGAMkGWAMkGSAMUCSAcYASQYYAyQZYAyQZIAxQJIBxgBJBhgDJBlgDJBkgDFAkgHGAEkGGAMkGWAMkGSAMUCSAcYASQYYAyQZYAyQZIAxQJIBxgBJBhgDJBlgDJBkgDFAkgHGAEkGGAMkGWAMkGSAMUCSAcYASQYYAyQZYAyQZIAxQJIBxgBJfw/w83lHl+MWp3umvwzAfwa4HM/h1QAYwAAYwAAYwAAYwAB1BjBAmgEMkGYAA6QZwAC/7NOBAAAAAIAgf+tBLofWBBBgTQAB1gQQYE0AAdYEEGBNAAHWBBBgTQAB1gQQYE0AAdYEEGBNAAHWBBBgTQAB1gQQYE0AAdYEEGBNAAHWBBBgTQAB1gQQYE0AAdYEEGBNAAHWBBBgTQAB1gQQYE0AAdYEEGBNAAHWBBBgTQAB1gQQYE0AAdYEEGBNAAHWBBBgTQAB1gQQYE0AAdYEEGBNAAHWBBBgTQAB1gQQYE0AAdYEEGBNAAHWBBBgTQAB1gQQYE0AAdYEEGBNAAHWBBBgTQAB1gQQYE0AAdYEEGBNAAHWBBBgTQAB1gQQYE0AAdYEEGBNAAHWBBBgTQAB1gQQYE0AAdYEEGBNAAHWBBBgTQAB1gQQYE0AAdYEEGBNAAHWBBBgLfbpQAAAAABAkL/1IJdDAgiwJoAAawIIsCaAAGsCCLAmgABrAgiwJoAAawIIsCaAAGsCCLAmgABrAgiwJoAAawIIsCaAAGsCCLAmgABrAgiwJoAAawIIsCaAAGsCCLAmgABrAgiwJoAAawIIsCaAAGsCCLAmgABrAgiwJoAAawIIsCaAAGsCCLAmgABrAgiwJoAAawIIsCaAAGsCCLAmgABrAgiwJoAAawIIsCaAAGsCCLAmgABrAgiwJoAAawIIsCaAAGsCCLAmgABrAgiwJoAAawIIsCaAAGsCCLAmgABrAgiwJoAAawIIsCaAAGsCCLAmgABrAgiwJoAAawIIsCaAAGsCCLAmgABrAgiwJoAAawIIsCaAAGsCCLAmgABrAgiwJkDs04EAAAAAgCB/60EuhwRYE0CANQEEWBNAgDUBBFgTQIA1AQRYE0CANQEEWBNAgDUBBFgTQIA1AQRYE0CANQEEWBNAgDUBBFgTQIA1AQRYE0CANQEEWBNAgDUBBFgTQIA1AQRYE0CANQEEWBNAgDUBBFgTQIA1AQRYE0CANQEEWBNAgDUBBFgTQIA1AQRYE0CANQEEWBNAgDUBBFgTQIA1AQRYE0CANQEEWBNAgDUBBFgTQIA1AQRYE0CANQEEWBNAgDUBBFgTQIA1AQRYE0CANQEEWBNAgDUBBFgTQIA1AQRYE0CANQEEWBNAgDUBBFgTQIA1AQRYE0CANQEEWBNAgDUBBFgTQIA1AQRYE0CANQEEWBNAgDUBBFgTQIA1AQRYE0CA2KeDAgBAGABCPoxmEPunWIQFOOhAmgACpAkgQJoAAqQJIECaAAKkCSBAmgACpAkgQJoAAqQJIECaAAKkCSBAmgACpAkgQJoAAqQJIECaAAKkCSBAmgACpAkgQJoAAqQJIECaAAKkCSBAmgACpAkgQJoAAqQJIECaAAKkCSBAmgACpAkgQJoAAqQJIECaAAKkCSBAmgACpAkgQJoAAqQJIECaAAKkCSBAmgACpAkgQJoAAqQJIECaAAKkCSBAmgACpAkgQJoAAqQJIECaAAKkCSBAmgACpAkgQJoAAqQJIECaAAKkCSBAmgACpAkgQJoAAqQJIECaAAKkCSBAmgACpAkgQJoAAqQJIECaAAKkCSBAmgACpAkgQJoAAqTdt/kHAABg2IMDAQAAAAAg/9dGUFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUV9uBAAAAAAADI/7URVFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVWFPTgQAAAAAADyf20EVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVhDw4EAAAAAID8XxtBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVXagwMBAAAAAEH+1iMsUAEAAAAAAAAAAAAAAAAAAAAAAAAAJyJJ87OMdYJkAAAAAElFTkSuQmCC');"></div> `,c+=` <div class="p-4"> <p class="m-0 mb-1 text-16 text-red-600 font-semibold">${s.title}</p> `,s.job&&(c+=` <p class="m-0 mb-1 text-14 text-gray-600">${s.job}</p> `),s.is_associate&&(s.gender==="male"?c+=` <p class="m-0 text-14 text-gray-500">${__("global.associateM")}</p> `:s.gender==="female"?c+=` <p class="m-0 text-14 text-gray-500">${__("global.associateF")}</p> `:c+=` <p class="m-0 text-14 text-gray-500">${__("global.associate")}</p> `),c+=` </div> </a> `,c}).join("")} </div> </div> `}})},initSearch(){const t=this.renderCustomHits(),e=xs("EIC10WP9LW","f46f83ab96da18b0937726cfbddffaf4");this.search=Hc({indexName:this.indexName,searchClient:e,routing:!0,future:{preserveSharedStateOnUnmount:!0}}),this.search.addWidgets([t({container:document.querySelector("#hits")}),In({aroundLatLngViaIP:this.cookieConsent,filters:this.searchFilter?`${this.searchFilter}:"${this.searchFilterValue}"`:"",hitsPerPage:this.cookieConsent?4:1e3})]),this.search.start()}},async mounted(){await Lc(ai()),this.initSearch(this.props),this.loading=!1,document.addEventListener("cookieyes_consent_update",()=>{this.cookieConsent=lf(),this.initSearch()})},beforeUnmount(){var t,e;(e=(t=this.client)==null?void 0:t.destroy)!=null&&e.call&&this.client.destroy()}},RQ=Ee("div",{class:"ais-InstantSearch"},[Ee("div",{id:"hits",class:"w-full"})],-1),$Q=[RQ];function VQ(t,e,n,r,i,o){return xn(),Gr("div",null,$Q)}const jQ=Wc(IQ,[["render",VQ]]),Ls=ZE().use(jB,{resolve:t=>Object.assign({"../../lang/php_en.json":RL,"../../lang/php_fr.json":VL})[`../../lang/${t}.json`].default}).mixin(NB);Ls.component("JobSearch",Y8);Ls.component("AppEmployeeList",tQ);Ls.component("AppOfficeList",pQ);Ls.component("AppOfficeListSyndics",TQ);Ls.component("AppFeaturedEmployees",jQ);Ls.mount("#search");