(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerpolicy&&(a.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?a.credentials="include":i.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();/** * @vue/shared v3.5.8 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **//*! #__NO_SIDE_EFFECTS__ */function Md(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const bt={},Ca=[],Xr=()=>{},oS=()=>!1,Vu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ld=e=>e.startsWith("onUpdate:"),Nt=Object.assign,Nd=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},lS=Object.prototype.hasOwnProperty,ot=(e,t)=>lS.call(e,t),Be=Array.isArray,Ea=e=>Yu(e)==="[object Map]",Ey=e=>Yu(e)==="[object Set]",qe=e=>typeof e=="function",Rt=e=>typeof e=="string",Pi=e=>typeof e=="symbol",St=e=>e!==null&&typeof e=="object",Iy=e=>(St(e)||qe(e))&&qe(e.then)&&qe(e.catch),Dy=Object.prototype.toString,Yu=e=>Dy.call(e),uS=e=>Yu(e).slice(8,-1),jy=e=>Yu(e)==="[object Object]",Hd=e=>Rt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Es=Md(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Qu=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},cS=/-(\w)/g,nn=Qu(e=>e.replace(cS,(t,r)=>r?r.toUpperCase():"")),fS=/\B([A-Z])/g,xi=Qu(e=>e.replace(fS,"-$1").toLowerCase()),zu=Qu(e=>e.charAt(0).toUpperCase()+e.slice(1)),Wl=Qu(e=>e?`on${zu(e)}`:""),yi=(e,t)=>!Object.is(e,t),ql=(e,...t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},Af=e=>{const t=parseFloat(e);return isNaN(t)?e:t},dS=e=>{const t=Rt(e)?Number(e):NaN;return isNaN(t)?e:t};let Tp;const Ud=()=>Tp||(Tp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function gr(e){if(Be(e)){const t={};for(let r=0;r{if(r){const n=r.split(pS);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function te(e){let t="";if(Rt(e))t=e;else if(Be(e))for(let r=0;r!!(e&&e.__v_isRef===!0),ge=e=>Rt(e)?e:e==null?"":Be(e)||St(e)&&(e.toString===Dy||!qe(e.toString))?Ly(e)?ge(e.value):JSON.stringify(e,Ny,2):String(e),Ny=(e,t)=>Ly(t)?Ny(e,t.value):Ea(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i],a)=>(r[Sc(n,a)+" =>"]=i,r),{})}:Ey(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Sc(r))}:Pi(t)?Sc(t):St(t)&&!Be(t)&&!jy(t)?String(t):t,Sc=(e,t="")=>{var r;return Pi(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/** * @vue/reactivity v3.5.8 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let dr;class Hy{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=dr,!t&&dr&&(this.index=(dr.scopes||(dr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t0)return;let e;for(;Is;){let t=Is;for(Is=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function Vy(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Yy(e,t=!1){let r,n=e.depsTail,i=n;for(;i;){const a=i.prevDep;i.version===-1?(i===n&&(n=a),qd(i,t),_S(i)):r=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=a}e.deps=r,e.depsTail=n}function Tf(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Qy(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Qy(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===zs))return;e.globalVersion=zs;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Tf(e)){e.flags&=-3;return}const r=yt,n=Zr;yt=e,Zr=!0;try{Vy(e);const i=e.fn(e._value);(t.version===0||yi(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{yt=r,Zr=n,Yy(e,!0),e.flags&=-3}}function qd(e,t=!1){const{dep:r,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n),!r.subs)if(r.computed){r.computed.flags&=-5;for(let a=r.computed.deps;a;a=a.nextDep)qd(a,!0)}else r.map&&!t&&(r.map.delete(r.key),r.map.size||Ks.delete(r.target))}function _S(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Zr=!0;const zy=[];function Oi(){zy.push(Zr),Zr=!1}function $i(){const e=zy.pop();Zr=e===void 0?!0:e}function kp(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=yt;yt=void 0;try{t()}finally{yt=r}}}let zs=0;class SS{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Vd{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.target=void 0,this.map=void 0,this.key=void 0}track(t){if(!yt||!Zr||yt===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==yt)r=this.activeLink=new SS(yt,this),yt.deps?(r.prevDep=yt.depsTail,yt.depsTail.nextDep=r,yt.depsTail=r):yt.deps=yt.depsTail=r,yt.flags&4&&Ky(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=yt.depsTail,r.nextDep=void 0,yt.depsTail.nextDep=r,yt.depsTail=r,yt.deps===r&&(yt.deps=n)}return r}trigger(t){this.version++,zs++,this.notify(t)}notify(t){Bd();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{Wd()}}}function Ky(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)Ky(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}const Ks=new WeakMap,Gi=Symbol(""),kf=Symbol(""),Gs=Symbol("");function ar(e,t,r){if(Zr&&yt){let n=Ks.get(e);n||Ks.set(e,n=new Map);let i=n.get(r);i||(n.set(r,i=new Vd),i.target=e,i.map=n,i.key=r),i.track()}}function Bn(e,t,r,n,i,a){const s=Ks.get(e);if(!s){zs++;return}const o=l=>{l&&l.trigger()};if(Bd(),t==="clear")s.forEach(o);else{const l=Be(e),u=l&&Hd(r);if(l&&r==="length"){const c=Number(n);s.forEach((f,d)=>{(d==="length"||d===Gs||!Pi(d)&&d>=c)&&o(f)})}else switch(r!==void 0&&o(s.get(r)),u&&o(s.get(Gs)),t){case"add":l?u&&o(s.get("length")):(o(s.get(Gi)),Ea(e)&&o(s.get(kf)));break;case"delete":l||(o(s.get(Gi)),Ea(e)&&o(s.get(kf)));break;case"set":Ea(e)&&o(s.get(Gi));break}}Wd()}function PS(e,t){var r;return(r=Ks.get(e))==null?void 0:r.get(t)}function fa(e){const t=nt(e);return t===e?t:(ar(t,"iterate",Gs),Hr(e)?t:t.map(tr))}function Ku(e){return ar(e=nt(e),"iterate",Gs),e}const xS={__proto__:null,[Symbol.iterator](){return xc(this,Symbol.iterator,tr)},concat(...e){return fa(this).concat(...e.map(t=>Be(t)?fa(t):t))},entries(){return xc(this,"entries",e=>(e[1]=tr(e[1]),e))},every(e,t){return Dn(this,"every",e,t,void 0,arguments)},filter(e,t){return Dn(this,"filter",e,t,r=>r.map(tr),arguments)},find(e,t){return Dn(this,"find",e,t,tr,arguments)},findIndex(e,t){return Dn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Dn(this,"findLast",e,t,tr,arguments)},findLastIndex(e,t){return Dn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Dn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Oc(this,"includes",e)},indexOf(...e){return Oc(this,"indexOf",e)},join(e){return fa(this).join(e)},lastIndexOf(...e){return Oc(this,"lastIndexOf",e)},map(e,t){return Dn(this,"map",e,t,void 0,arguments)},pop(){return ls(this,"pop")},push(...e){return ls(this,"push",e)},reduce(e,...t){return Cp(this,"reduce",e,t)},reduceRight(e,...t){return Cp(this,"reduceRight",e,t)},shift(){return ls(this,"shift")},some(e,t){return Dn(this,"some",e,t,void 0,arguments)},splice(...e){return ls(this,"splice",e)},toReversed(){return fa(this).toReversed()},toSorted(e){return fa(this).toSorted(e)},toSpliced(...e){return fa(this).toSpliced(...e)},unshift(...e){return ls(this,"unshift",e)},values(){return xc(this,"values",tr)}};function xc(e,t,r){const n=Ku(e),i=n[t]();return n!==e&&!Hr(e)&&(i._next=i.next,i.next=()=>{const a=i._next();return a.value&&(a.value=r(a.value)),a}),i}const OS=Array.prototype;function Dn(e,t,r,n,i,a){const s=Ku(e),o=s!==e&&!Hr(e),l=s[t];if(l!==OS[t]){const f=l.apply(e,a);return o?tr(f):f}let u=r;s!==e&&(o?u=function(f,d){return r.call(this,tr(f),d,e)}:r.length>2&&(u=function(f,d){return r.call(this,f,d,e)}));const c=l.call(s,u,n);return o&&i?i(c):c}function Cp(e,t,r,n){const i=Ku(e);let a=r;return i!==e&&(Hr(e)?r.length>3&&(a=function(s,o,l){return r.call(this,s,o,l,e)}):a=function(s,o,l){return r.call(this,s,tr(o),l,e)}),i[t](a,...n)}function Oc(e,t,r){const n=nt(e);ar(n,"iterate",Gs);const i=n[t](...r);return(i===-1||i===!1)&&Kd(r[0])?(r[0]=nt(r[0]),n[t](...r)):i}function ls(e,t,r=[]){Oi(),Bd();const n=nt(e)[t].apply(e,r);return Wd(),$i(),n}const $S=Md("__proto__,__v_isRef,__isVue"),Gy=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Pi));function RS(e){Pi(e)||(e=String(e));const t=nt(this);return ar(t,"has",e),t.hasOwnProperty(e)}class Xy{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){const i=this._isReadonly,a=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return a;if(r==="__v_raw")return n===(i?a?HS:tb:a?eb:Jy).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const s=Be(t);if(!i){let l;if(s&&(l=xS[r]))return l;if(r==="hasOwnProperty")return RS}const o=Reflect.get(t,r,Ft(t)?t:n);return(Pi(r)?Gy.has(r):$S(r))||(i||ar(t,"get",r),a)?o:Ft(o)?s&&Hd(r)?o:o.value:St(o)?i?nb(o):Rr(o):o}}class Zy extends Xy{constructor(t=!1){super(!1,t)}set(t,r,n,i){let a=t[r];if(!this._isShallow){const l=ta(a);if(!Hr(n)&&!ta(n)&&(a=nt(a),n=nt(n)),!Be(t)&&Ft(a)&&!Ft(n))return l?!1:(a.value=n,!0)}const s=Be(t)&&Hd(r)?Number(r)e,Gu=e=>Reflect.getPrototypeOf(e);function fl(e,t,r=!1,n=!1){e=e.__v_raw;const i=nt(e),a=nt(t);r||(yi(t,a)&&ar(i,"get",t),ar(i,"get",a));const{has:s}=Gu(i),o=n?Yd:r?Gd:tr;if(s.call(i,t))return o(e.get(t));if(s.call(i,a))return o(e.get(a));e!==i&&e.get(t)}function dl(e,t=!1){const r=this.__v_raw,n=nt(r),i=nt(e);return t||(yi(e,i)&&ar(n,"has",e),ar(n,"has",i)),e===i?r.has(e):r.has(e)||r.has(i)}function hl(e,t=!1){return e=e.__v_raw,!t&&ar(nt(e),"iterate",Gi),Reflect.get(e,"size",e)}function Ep(e,t=!1){!t&&!Hr(e)&&!ta(e)&&(e=nt(e));const r=nt(this);return Gu(r).has.call(r,e)||(r.add(e),Bn(r,"add",e,e)),this}function Ip(e,t,r=!1){!r&&!Hr(t)&&!ta(t)&&(t=nt(t));const n=nt(this),{has:i,get:a}=Gu(n);let s=i.call(n,e);s||(e=nt(e),s=i.call(n,e));const o=a.call(n,e);return n.set(e,t),s?yi(t,o)&&Bn(n,"set",e,t):Bn(n,"add",e,t),this}function Dp(e){const t=nt(this),{has:r,get:n}=Gu(t);let i=r.call(t,e);i||(e=nt(e),i=r.call(t,e)),n&&n.call(t,e);const a=t.delete(e);return i&&Bn(t,"delete",e,void 0),a}function jp(){const e=nt(this),t=e.size!==0,r=e.clear();return t&&Bn(e,"clear",void 0,void 0),r}function pl(e,t){return function(n,i){const a=this,s=a.__v_raw,o=nt(s),l=t?Yd:e?Gd:tr;return!e&&ar(o,"iterate",Gi),s.forEach((u,c)=>n.call(i,l(u),l(c),a))}}function ml(e,t,r){return function(...n){const i=this.__v_raw,a=nt(i),s=Ea(a),o=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,u=i[e](...n),c=r?Yd:t?Gd:tr;return!t&&ar(a,"iterate",l?kf:Gi),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:o?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function Qn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ES(){const e={get(a){return fl(this,a)},get size(){return hl(this)},has:dl,add:Ep,set:Ip,delete:Dp,clear:jp,forEach:pl(!1,!1)},t={get(a){return fl(this,a,!1,!0)},get size(){return hl(this)},has:dl,add(a){return Ep.call(this,a,!0)},set(a,s){return Ip.call(this,a,s,!0)},delete:Dp,clear:jp,forEach:pl(!1,!0)},r={get(a){return fl(this,a,!0)},get size(){return hl(this,!0)},has(a){return dl.call(this,a,!0)},add:Qn("add"),set:Qn("set"),delete:Qn("delete"),clear:Qn("clear"),forEach:pl(!0,!1)},n={get(a){return fl(this,a,!0,!0)},get size(){return hl(this,!0)},has(a){return dl.call(this,a,!0)},add:Qn("add"),set:Qn("set"),delete:Qn("delete"),clear:Qn("clear"),forEach:pl(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=ml(a,!1,!1),r[a]=ml(a,!0,!1),t[a]=ml(a,!1,!0),n[a]=ml(a,!0,!0)}),[e,r,t,n]}const[IS,DS,jS,FS]=ES();function Qd(e,t){const r=t?e?FS:jS:e?DS:IS;return(n,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(ot(r,i)&&i in n?r:n,i,a)}const MS={get:Qd(!1,!1)},LS={get:Qd(!1,!0)},NS={get:Qd(!0,!1)};const Jy=new WeakMap,eb=new WeakMap,tb=new WeakMap,HS=new WeakMap;function US(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function BS(e){return e.__v_skip||!Object.isExtensible(e)?0:US(uS(e))}function Rr(e){return ta(e)?e:zd(e,!1,TS,MS,Jy)}function rb(e){return zd(e,!1,CS,LS,eb)}function nb(e){return zd(e,!0,kS,NS,tb)}function zd(e,t,r,n,i){if(!St(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const s=BS(e);if(s===0)return e;const o=new Proxy(e,s===2?n:r);return i.set(e,o),o}function Ia(e){return ta(e)?Ia(e.__v_raw):!!(e&&e.__v_isReactive)}function ta(e){return!!(e&&e.__v_isReadonly)}function Hr(e){return!!(e&&e.__v_isShallow)}function Kd(e){return e?!!e.__v_raw:!1}function nt(e){const t=e&&e.__v_raw;return t?nt(t):e}function WS(e){return!ot(e,"__v_skip")&&Object.isExtensible(e)&&Fy(e,"__v_skip",!0),e}const tr=e=>St(e)?Rr(e):e,Gd=e=>St(e)?nb(e):e;function Ft(e){return e?e.__v_isRef===!0:!1}function be(e){return ib(e,!1)}function qS(e){return ib(e,!0)}function ib(e,t){return Ft(e)?e:new VS(e,t)}class VS{constructor(t,r){this.dep=new Vd,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:nt(t),this._value=r?t:tr(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||Hr(t)||ta(t);t=n?t:nt(t),yi(t,r)&&(this._rawValue=t,this._value=n?t:tr(t),this.dep.trigger())}}function J(e){return Ft(e)?e.value:e}const YS={get:(e,t,r)=>t==="__v_raw"?e:J(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return Ft(i)&&!Ft(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function ab(e){return Ia(e)?e:new Proxy(e,YS)}class QS{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return PS(nt(this._object),this._key)}}class zS{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function lu(e,t,r){return Ft(e)?e:qe(e)?new zS(e):St(e)&&arguments.length>1?KS(e,t,r):be(e)}function KS(e,t,r){const n=e[t];return Ft(n)?n:new QS(e,t,r)}class GS{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Vd(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=zs-1,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&yt!==this)return qy(this),!0}get value(){const t=this.dep.track();return Qy(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function XS(e,t,r=!1){let n,i;return qe(e)?n=e:(n=e.get,i=e.set),new GS(n,i,r)}const vl={},uu=new WeakMap;let Ui;function ZS(e,t=!1,r=Ui){if(r){let n=uu.get(r);n||uu.set(r,n=[]),n.push(e)}}function JS(e,t,r=bt){const{immediate:n,deep:i,once:a,scheduler:s,augmentJob:o,call:l}=r,u=b=>i?b:Hr(b)||i===!1||i===0?Ln(b,1):Ln(b);let c,f,d,p,h=!1,m=!1;if(Ft(e)?(f=()=>e.value,h=Hr(e)):Ia(e)?(f=()=>u(e),h=!0):Be(e)?(m=!0,h=e.some(b=>Ia(b)||Hr(b)),f=()=>e.map(b=>{if(Ft(b))return b.value;if(Ia(b))return u(b);if(qe(b))return l?l(b,2):b()})):qe(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){Oi();try{d()}finally{$i()}}const b=Ui;Ui=c;try{return l?l(e,3,[p]):e(p)}finally{Ui=b}}:f=Xr,t&&i){const b=f,P=i===!0?1/0:i;f=()=>Ln(b(),P)}const v=Uy(),g=()=>{c.stop(),v&&Nd(v.effects,c)};if(a&&t){const b=t;t=(...P)=>{b(...P),g()}}let y=m?new Array(e.length).fill(vl):vl;const _=b=>{if(!(!(c.flags&1)||!c.dirty&&!b))if(t){const P=c.run();if(i||h||(m?P.some((k,A)=>yi(k,y[A])):yi(P,y))){d&&d();const k=Ui;Ui=c;try{const A=[P,y===vl?void 0:m&&y[0]===vl?[]:y,p];l?l(t,3,A):t(...A),y=P}finally{Ui=k}}}else c.run()};return o&&o(_),c=new By(f),c.scheduler=s?()=>s(_,!1):_,p=b=>ZS(b,!1,c),d=c.onStop=()=>{const b=uu.get(c);if(b){if(l)l(b,4);else for(const P of b)P();uu.delete(c)}},t?n?_(!0):y=c.run():s?s(_.bind(null,!0),!0):c.run(),g.pause=c.pause.bind(c),g.resume=c.resume.bind(c),g.stop=g,g}function Ln(e,t=1/0,r){if(t<=0||!St(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,Ft(e))Ln(e.value,t,r);else if(Be(e))for(let n=0;n{Ln(n,t,r)});else if(jy(e)){for(const n in e)Ln(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Ln(e[n],t,r)}return e}/** * @vue/runtime-core v3.5.8 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function el(e,t,r,n){try{return n?e(...n):e()}catch(i){Xu(i,t,r)}}function an(e,t,r,n){if(qe(e)){const i=el(e,t,r,n);return i&&Iy(i)&&i.catch(a=>{Xu(a,t,r)}),i}if(Be(e)){const i=[];for(let a=0;a>>1,i=pr[n],a=Zs(i);a=Zs(r)?pr.push(e):pr.splice(tP(t),0,e),e.flags|=1,ob()}}function ob(){!Xs&&!Cf&&(Cf=!0,Xd=sb.then(ub))}function rP(e){Be(e)?Da.push(...e):ni&&e.id===-1?ni.splice(Pa+1,0,e):e.flags&1||(Da.push(e),e.flags|=1),ob()}function Fp(e,t,r=Xs?mn+1:0){for(;rZs(r)-Zs(n));if(Da.length=0,ni){ni.push(...t);return}for(ni=t,Pa=0;Pae.id==null?e.flags&2?-1:1/0:e.id;function ub(e){Cf=!1,Xs=!0;const t=Xr;try{for(mn=0;mn{n._d&&zp(-1);const a=cu(t);let s;try{s=e(...i)}finally{cu(a),n._d&&zp(1)}return s};return n._n=!0,n._c=!0,n._d=!0,n}function Gt(e,t){if(qt===null)return e;const r=nc(qt),n=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport,Ds=e=>e&&(e.disabled||e.disabled===""),nP=e=>e&&(e.defer||e.defer===""),Mp=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Lp=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ef=(e,t)=>{const r=e&&e.to;return Rt(r)?t?t(r):null:r},iP={name:"Teleport",__isTeleport:!0,process(e,t,r,n,i,a,s,o,l,u){const{mc:c,pc:f,pbc:d,o:{insert:p,querySelector:h,createText:m,createComment:v}}=u,g=Ds(t.props);let{shapeFlag:y,children:_,dynamicChildren:b}=t;if(e==null){const P=t.el=m(""),k=t.anchor=m("");p(P,r,n),p(k,r,n);const A=(F,x)=>{y&16&&(i&&i.isCE&&(i.ce._teleportTarget=F),c(_,F,x,i,a,s,o,l))},U=()=>{const F=t.target=Ef(t.props,h),x=hb(F,t,m,p);F&&(s!=="svg"&&Mp(F)?s="svg":s!=="mathml"&&Lp(F)&&(s="mathml"),g||(A(F,x),Vl(t)))};g&&(A(r,k),Vl(t)),nP(t.props)?Sr(U,a):U()}else{t.el=e.el,t.targetStart=e.targetStart;const P=t.anchor=e.anchor,k=t.target=e.target,A=t.targetAnchor=e.targetAnchor,U=Ds(e.props),F=U?r:k,x=U?P:A;if(s==="svg"||Mp(k)?s="svg":(s==="mathml"||Lp(k))&&(s="mathml"),b?(d(e.dynamicChildren,b,F,i,a,s,o),nh(e,t,!0)):l||f(e,t,F,x,i,a,s,o,!1),g)U?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):gl(t,r,P,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const I=t.target=Ef(t.props,h);I&&gl(t,I,null,u,0)}else U&&gl(t,k,A,u,1);Vl(t)}},remove(e,t,r,{um:n,o:{remove:i}},a){const{shapeFlag:s,children:o,anchor:l,targetStart:u,targetAnchor:c,target:f,props:d}=e;if(f&&(i(u),i(c)),a&&i(l),s&16){const p=a||!Ds(d);for(let h=0;h{e.isMounted=!0}),Sb(()=>{e.isUnmounting=!0}),e}const Dr=[Function,Array],pb={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Dr,onEnter:Dr,onAfterEnter:Dr,onEnterCancelled:Dr,onBeforeLeave:Dr,onLeave:Dr,onAfterLeave:Dr,onLeaveCancelled:Dr,onBeforeAppear:Dr,onAppear:Dr,onAfterAppear:Dr,onAppearCancelled:Dr},mb=e=>{const t=e.subTree;return t.component?mb(t.component):t},lP={name:"BaseTransition",props:pb,setup(e,{slots:t}){const r=qb(),n=oP();return()=>{const i=t.default&&yb(t.default(),!0);if(!i||!i.length)return;const a=vb(i),s=nt(e),{mode:o}=s;if(n.isLeaving)return $c(a);const l=Np(a);if(!l)return $c(a);let u=If(l,s,n,r,d=>u=d);l.type!==mr&&Js(l,u);const c=r.subTree,f=c&&Np(c);if(f&&f.type!==mr&&!Vi(l,f)&&mb(r).type!==mr){const d=If(f,s,n,r);if(Js(f,d),o==="out-in"&&l.type!==mr)return n.isLeaving=!0,d.afterLeave=()=>{n.isLeaving=!1,r.job.flags&8||r.update(),delete d.afterLeave},$c(a);o==="in-out"&&l.type!==mr&&(d.delayLeave=(p,h,m)=>{const v=gb(n,f);v[String(f.key)]=f,p[ii]=()=>{h(),p[ii]=void 0,delete u.delayedLeave},u.delayedLeave=m})}return a}}};function vb(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==mr){t=r;break}}return t}const uP=lP;function gb(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function If(e,t,r,n,i){const{appear:a,mode:s,persisted:o=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:p,onAfterLeave:h,onLeaveCancelled:m,onBeforeAppear:v,onAppear:g,onAfterAppear:y,onAppearCancelled:_}=t,b=String(e.key),P=gb(r,e),k=(F,x)=>{F&&an(F,n,9,x)},A=(F,x)=>{const I=x[1];k(F,x),Be(F)?F.every(M=>M.length<=1)&&I():F.length<=1&&I()},U={mode:s,persisted:o,beforeEnter(F){let x=l;if(!r.isMounted)if(a)x=v||l;else return;F[ii]&&F[ii](!0);const I=P[b];I&&Vi(e,I)&&I.el[ii]&&I.el[ii](),k(x,[F])},enter(F){let x=u,I=c,M=f;if(!r.isMounted)if(a)x=g||u,I=y||c,M=_||f;else return;let Z=!1;const B=F[yl]=R=>{Z||(Z=!0,R?k(M,[F]):k(I,[F]),U.delayedLeave&&U.delayedLeave(),F[yl]=void 0)};x?A(x,[F,B]):B()},leave(F,x){const I=String(e.key);if(F[yl]&&F[yl](!0),r.isUnmounting)return x();k(d,[F]);let M=!1;const Z=F[ii]=B=>{M||(M=!0,x(),B?k(m,[F]):k(h,[F]),F[ii]=void 0,P[I]===e&&delete P[I])};P[I]=e,p?A(p,[F,Z]):Z()},clone(F){const x=If(F,t,r,n,i);return i&&i(x),x}};return U}function $c(e){if(Zu(e))return e=bi(e),e.children=null,e}function Np(e){if(!Zu(e))return db(e.type)&&e.children?vb(e.children):e;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&qe(r.default))return r.default()}}function Js(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Js(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function yb(e,t=!1,r){let n=[],i=0;for(let a=0;a1)for(let a=0;aNt({name:e.name},t,{setup:e}))():e}function bb(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Df(e,t,r,n,i=!1){if(Be(e)){e.forEach((h,m)=>Df(h,t&&(Be(t)?t[m]:t),r,n,i));return}if(ja(n)&&!i)return;const a=n.shapeFlag&4?nc(n.component):n.el,s=i?null:a,{i:o,r:l}=e,u=t&&t.r,c=o.refs===bt?o.refs={}:o.refs,f=o.setupState,d=nt(f),p=f===bt?()=>!1:h=>ot(d,h);if(u!=null&&u!==l&&(Rt(u)?(c[u]=null,p(u)&&(f[u]=null)):Ft(u)&&(u.value=null)),qe(l))el(l,o,12,[s,c]);else{const h=Rt(l),m=Ft(l);if(h||m){const v=()=>{if(e.f){const g=h?p(l)?f[l]:c[l]:l.value;i?Be(g)&&Nd(g,a):Be(g)?g.includes(a)||g.push(a):h?(c[l]=[a],p(l)&&(f[l]=c[l])):(l.value=[a],e.k&&(c[e.k]=l.value))}else h?(c[l]=s,p(l)&&(f[l]=s)):m&&(l.value=s,e.k&&(c[e.k]=s))};s?(v.id=-1,Sr(v,r)):v()}}}const ja=e=>!!e.type.__asyncLoader,Zu=e=>e.type.__isKeepAlive;function cP(e,t){wb(e,"a",t)}function fP(e,t){wb(e,"da",t)}function wb(e,t,r=zt){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Ju(t,n,r),r){let i=r.parent;for(;i&&i.parent;)Zu(i.parent.vnode)&&dP(n,t,r,i),i=i.parent}}function dP(e,t,r,n){const i=Ju(t,e,n,!0);Ri(()=>{Nd(n[t],i)},r)}function Ju(e,t,r=zt,n=!1){if(r){const i=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...s)=>{Oi();const o=tl(r),l=an(t,r,e,s);return o(),$i(),l});return n?i.unshift(a):i.push(a),a}}const Yn=e=>(t,r=zt)=>{(!rc||e==="sp")&&Ju(e,(...n)=>t(...n),r)},hP=Yn("bm"),Mt=Yn("m"),_b=Yn("bu"),pP=Yn("u"),Sb=Yn("bum"),Ri=Yn("um"),mP=Yn("sp"),vP=Yn("rtg"),gP=Yn("rtc");function yP(e,t=zt){Ju("ec",e,t)}const Jd="components",bP="directives";function Fe(e,t){return eh(Jd,e,!0,t)||e}const Pb=Symbol.for("v-ndc");function Xi(e){return Rt(e)?eh(Jd,e,!1)||e:e||Pb}function xb(e){return eh(bP,e)}function eh(e,t,r=!0,n=!1){const i=qt||zt;if(i){const a=i.type;if(e===Jd){const o=ax(a,!1);if(o&&(o===t||o===nn(t)||o===zu(nn(t))))return a}const s=Hp(i[e]||a[e],t)||Hp(i.appContext[e],t);return!s&&n?a:s}}function Hp(e,t){return e&&(e[t]||e[nn(t)]||e[zu(nn(t))])}function We(e,t,r,n){let i;const a=r&&r[n],s=Be(e);if(s||Rt(e)){const o=s&&Ia(e);let l=!1;o&&(l=!Hr(e),e=Ku(e)),i=new Array(e.length);for(let u=0,c=e.length;ut(o,l,void 0,a&&a[l]));else{const o=Object.keys(e);i=new Array(o.length);for(let l=0,u=o.length;l{const a=n.fn(...i);return a&&(a.key=n.key),a}:n.fn)}return e}function se(e,t,r={},n,i){if(qt.ce||qt.parent&&ja(qt.parent)&&qt.parent.ce)return t!=="default"&&(r.name=t),T(),Re(ye,null,[Ae("slot",r,n&&n())],64);let a=e[t];a&&a._c&&(a._d=!1),T();const s=a&&Ob(a(r)),o=Re(ye,{key:(r.key||s&&s.key||`_${t}`)+(!s&&n?"_fb":"")},s||(n?n():[]),s&&e._===1?64:-2);return!i&&o.scopeId&&(o.slotScopeIds=[o.scopeId+"-s"]),a&&a._c&&(a._d=!0),o}function Ob(e){return e.some(t=>du(t)?!(t.type===mr||t.type===ye&&!Ob(t.children)):!0)?e:null}function wP(e,t){const r={};for(const n in e)r[t&&/[A-Z]/.test(n)?`on:${n}`:Wl(n)]=e[n];return r}const jf=e=>e?Vb(e)?nc(e):jf(e.parent):null,js=Nt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>jf(e.parent),$root:e=>jf(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>th(e),$forceUpdate:e=>e.f||(e.f=()=>{Zd(e.update)}),$nextTick:e=>e.n||(e.n=Pr.bind(e.proxy)),$watch:e=>WP.bind(e)}),Rc=(e,t)=>e!==bt&&!e.__isScriptSetup&&ot(e,t),_P={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:i,props:a,accessCache:s,type:o,appContext:l}=e;let u;if(t[0]!=="$"){const p=s[t];if(p!==void 0)switch(p){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return a[t]}else{if(Rc(n,t))return s[t]=1,n[t];if(i!==bt&&ot(i,t))return s[t]=2,i[t];if((u=e.propsOptions[0])&&ot(u,t))return s[t]=3,a[t];if(r!==bt&&ot(r,t))return s[t]=4,r[t];Ff&&(s[t]=0)}}const c=js[t];let f,d;if(c)return t==="$attrs"&&ar(e.attrs,"get",""),c(e);if((f=o.__cssModules)&&(f=f[t]))return f;if(r!==bt&&ot(r,t))return s[t]=4,r[t];if(d=l.config.globalProperties,ot(d,t))return d[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:a}=e;return Rc(i,t)?(i[t]=r,!0):n!==bt&&ot(n,t)?(n[t]=r,!0):ot(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:i,propsOptions:a}},s){let o;return!!r[s]||e!==bt&&ot(e,s)||Rc(t,s)||(o=a[0])&&ot(o,s)||ot(n,s)||ot(js,s)||ot(i.config.globalProperties,s)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:ot(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function oa(){return SP().slots}function SP(){const e=qb();return e.setupContext||(e.setupContext=Qb(e))}function Up(e){return Be(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let Ff=!0;function PP(e){const t=th(e),r=e.proxy,n=e.ctx;Ff=!1,t.beforeCreate&&Bp(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:s,watch:o,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:p,updated:h,activated:m,deactivated:v,beforeDestroy:g,beforeUnmount:y,destroyed:_,unmounted:b,render:P,renderTracked:k,renderTriggered:A,errorCaptured:U,serverPrefetch:F,expose:x,inheritAttrs:I,components:M,directives:Z,filters:B}=t;if(u&&xP(u,n,null),s)for(const D in s){const L=s[D];qe(L)&&(n[D]=L.bind(r))}if(i){const D=i.call(r,r);St(D)&&(e.data=Rr(D))}if(Ff=!0,a)for(const D in a){const L=a[D],$=qe(L)?L.bind(r,r):qe(L.get)?L.get.bind(r,r):Xr,w=!qe(L)&&qe(L.set)?L.set.bind(r):Xr,Y=he({get:$,set:w});Object.defineProperty(n,D,{enumerable:!0,configurable:!0,get:()=>Y.value,set:X=>Y.value=X})}if(o)for(const D in o)$b(o[D],n,r,D);if(l){const D=qe(l)?l.call(r):l;Reflect.ownKeys(D).forEach(L=>{Yl(L,D[L])})}c&&Bp(c,e,"c");function j(D,L){Be(L)?L.forEach($=>D($.bind(r))):L&&D(L.bind(r))}if(j(hP,f),j(Mt,d),j(_b,p),j(pP,h),j(cP,m),j(fP,v),j(yP,U),j(gP,k),j(vP,A),j(Sb,y),j(Ri,b),j(mP,F),Be(x))if(x.length){const D=e.exposed||(e.exposed={});x.forEach(L=>{Object.defineProperty(D,L,{get:()=>r[L],set:$=>r[L]=$})})}else e.exposed||(e.exposed={});P&&e.render===Xr&&(e.render=P),I!=null&&(e.inheritAttrs=I),M&&(e.components=M),Z&&(e.directives=Z),F&&bb(e)}function xP(e,t,r=Xr){Be(e)&&(e=Mf(e));for(const n in e){const i=e[n];let a;St(i)?"default"in i?a=Wn(i.from||n,i.default,!0):a=Wn(i.from||n):a=Wn(i),Ft(a)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:s=>a.value=s}):t[n]=a}}function Bp(e,t,r){an(Be(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function $b(e,t,r,n){let i=n.includes(".")?Nb(r,n):()=>r[n];if(Rt(e)){const a=t[e];qe(a)&&yr(i,a)}else if(qe(e))yr(i,e.bind(r));else if(St(e))if(Be(e))e.forEach(a=>$b(a,t,r,n));else{const a=qe(e.handler)?e.handler.bind(r):t[e.handler];qe(a)&&yr(i,a,e)}}function th(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:s}}=e.appContext,o=a.get(t);let l;return o?l=o:!i.length&&!r&&!n?l=t:(l={},i.length&&i.forEach(u=>fu(l,u,s,!0)),fu(l,t,s)),St(t)&&a.set(t,l),l}function fu(e,t,r,n=!1){const{mixins:i,extends:a}=t;a&&fu(e,a,r,!0),i&&i.forEach(s=>fu(e,s,r,!0));for(const s in t)if(!(n&&s==="expose")){const o=OP[s]||r&&r[s];e[s]=o?o(e[s],t[s]):t[s]}return e}const OP={data:Wp,props:qp,emits:qp,methods:xs,computed:xs,beforeCreate:fr,created:fr,beforeMount:fr,mounted:fr,beforeUpdate:fr,updated:fr,beforeDestroy:fr,beforeUnmount:fr,destroyed:fr,unmounted:fr,activated:fr,deactivated:fr,errorCaptured:fr,serverPrefetch:fr,components:xs,directives:xs,watch:RP,provide:Wp,inject:$P};function Wp(e,t){return t?e?function(){return Nt(qe(e)?e.call(this,this):e,qe(t)?t.call(this,this):t)}:t:e}function $P(e,t){return xs(Mf(e),Mf(t))}function Mf(e){if(Be(e)){const t={};for(let r=0;r1)return r&&qe(t)?t.call(n&&n.proxy):t}}const Ab={},Tb=()=>Object.create(Ab),kb=e=>Object.getPrototypeOf(e)===Ab;function kP(e,t,r,n=!1){const i={},a=Tb();e.propsDefaults=Object.create(null),Cb(e,t,i,a);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);r?e.props=n?i:rb(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function CP(e,t,r,n){const{props:i,attrs:a,vnode:{patchFlag:s}}=e,o=nt(i),[l]=e.propsOptions;let u=!1;if((n||s>0)&&!(s&16)){if(s&8){const c=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,p]=Eb(f,t,!0);Nt(s,d),p&&o.push(...p)};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!a&&!l)return St(e)&&n.set(e,Ca),Ca;if(Be(a))for(let c=0;ce[0]==="_"||e==="$stable",rh=e=>Be(e)?e.map(yn):[yn(e)],IP=(e,t,r)=>{if(t._n)return t;const n=Ie((...i)=>rh(t(...i)),r);return n._c=!1,n},Db=(e,t,r)=>{const n=e._ctx;for(const i in e){if(Ib(i))continue;const a=e[i];if(qe(a))t[i]=IP(i,a,n);else if(a!=null){const s=rh(a);t[i]=()=>s}}},jb=(e,t)=>{const r=rh(t);e.slots.default=()=>r},Fb=(e,t,r)=>{for(const n in t)(r||n!=="_")&&(e[n]=t[n])},DP=(e,t,r)=>{const n=e.slots=Tb();if(e.vnode.shapeFlag&32){const i=t._;i?(Fb(n,t,r),r&&Fy(n,"_",i,!0)):Db(t,n)}else t&&jb(e,t)},jP=(e,t,r)=>{const{vnode:n,slots:i}=e;let a=!0,s=bt;if(n.shapeFlag&32){const o=t._;o?r&&o===1?a=!1:Fb(i,t,r):(a=!t.$stable,Db(t,i)),s=t}else t&&(jb(e,t),s={default:1});if(a)for(const o in i)!Ib(o)&&s[o]==null&&delete i[o]};function FP(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(Ud().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Sr=GP;function MP(e){return LP(e)}function LP(e,t){FP();const r=Ud();r.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:s,createText:o,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:p=Xr,insertStaticContent:h}=e,m=(S,C,N,re=null,ie=null,ue=null,pe=void 0,fe=null,de=!!C.dynamicChildren)=>{if(S===C)return;S&&!Vi(S,C)&&(re=K(S),X(S,ie,ue,!0),S=null),C.patchFlag===-2&&(de=!1,C.dynamicChildren=null);const{type:ce,ref:Pe,shapeFlag:ve}=C;switch(ce){case tc:v(S,C,N,re);break;case mr:g(S,C,N,re);break;case Ql:S==null&&y(C,N,re,pe);break;case ye:M(S,C,N,re,ie,ue,pe,fe,de);break;default:ve&1?P(S,C,N,re,ie,ue,pe,fe,de):ve&6?Z(S,C,N,re,ie,ue,pe,fe,de):(ve&64||ve&128)&&ce.process(S,C,N,re,ie,ue,pe,fe,de,q)}Pe!=null&&ie&&Df(Pe,S&&S.ref,ue,C||S,!C)},v=(S,C,N,re)=>{if(S==null)n(C.el=o(C.children),N,re);else{const ie=C.el=S.el;C.children!==S.children&&u(ie,C.children)}},g=(S,C,N,re)=>{S==null?n(C.el=l(C.children||""),N,re):C.el=S.el},y=(S,C,N,re)=>{[S.el,S.anchor]=h(S.children,C,N,re,S.el,S.anchor)},_=({el:S,anchor:C},N,re)=>{let ie;for(;S&&S!==C;)ie=d(S),n(S,N,re),S=ie;n(C,N,re)},b=({el:S,anchor:C})=>{let N;for(;S&&S!==C;)N=d(S),i(S),S=N;i(C)},P=(S,C,N,re,ie,ue,pe,fe,de)=>{C.type==="svg"?pe="svg":C.type==="math"&&(pe="mathml"),S==null?k(C,N,re,ie,ue,pe,fe,de):F(S,C,ie,ue,pe,fe,de)},k=(S,C,N,re,ie,ue,pe,fe)=>{let de,ce;const{props:Pe,shapeFlag:ve,transition:xe,dirs:Me}=S;if(de=S.el=s(S.type,ue,Pe&&Pe.is,Pe),ve&8?c(de,S.children):ve&16&&U(S.children,de,null,re,ie,Ac(S,ue),pe,fe),Me&&ji(S,null,re,"created"),A(de,S,S.scopeId,pe,re),Pe){for(const z in Pe)z!=="value"&&!Es(z)&&a(de,z,null,Pe[z],ue,re);"value"in Pe&&a(de,"value",null,Pe.value,ue),(ce=Pe.onVnodeBeforeMount)&&un(ce,re,S)}Me&&ji(S,null,re,"beforeMount");const Ce=NP(ie,xe);Ce&&xe.beforeEnter(de),n(de,C,N),((ce=Pe&&Pe.onVnodeMounted)||Ce||Me)&&Sr(()=>{ce&&un(ce,re,S),Ce&&xe.enter(de),Me&&ji(S,null,re,"mounted")},ie)},A=(S,C,N,re,ie)=>{if(N&&p(S,N),re)for(let ue=0;ue{for(let ce=de;ce{const fe=C.el=S.el;let{patchFlag:de,dynamicChildren:ce,dirs:Pe}=C;de|=S.patchFlag&16;const ve=S.props||bt,xe=C.props||bt;let Me;if(N&&Fi(N,!1),(Me=xe.onVnodeBeforeUpdate)&&un(Me,N,C,S),Pe&&ji(C,S,N,"beforeUpdate"),N&&Fi(N,!0),(ve.innerHTML&&xe.innerHTML==null||ve.textContent&&xe.textContent==null)&&c(fe,""),ce?x(S.dynamicChildren,ce,fe,N,re,Ac(C,ie),ue):pe||L(S,C,fe,null,N,re,Ac(C,ie),ue,!1),de>0){if(de&16)I(fe,ve,xe,N,ie);else if(de&2&&ve.class!==xe.class&&a(fe,"class",null,xe.class,ie),de&4&&a(fe,"style",ve.style,xe.style,ie),de&8){const Ce=C.dynamicProps;for(let z=0;z{Me&&un(Me,N,C,S),Pe&&ji(C,S,N,"updated")},re)},x=(S,C,N,re,ie,ue,pe)=>{for(let fe=0;fe{if(C!==N){if(C!==bt)for(const ue in C)!Es(ue)&&!(ue in N)&&a(S,ue,C[ue],null,ie,re);for(const ue in N){if(Es(ue))continue;const pe=N[ue],fe=C[ue];pe!==fe&&ue!=="value"&&a(S,ue,fe,pe,ie,re)}"value"in N&&a(S,"value",C.value,N.value,ie)}},M=(S,C,N,re,ie,ue,pe,fe,de)=>{const ce=C.el=S?S.el:o(""),Pe=C.anchor=S?S.anchor:o("");let{patchFlag:ve,dynamicChildren:xe,slotScopeIds:Me}=C;Me&&(fe=fe?fe.concat(Me):Me),S==null?(n(ce,N,re),n(Pe,N,re),U(C.children||[],N,Pe,ie,ue,pe,fe,de)):ve>0&&ve&64&&xe&&S.dynamicChildren?(x(S.dynamicChildren,xe,N,ie,ue,pe,fe),(C.key!=null||ie&&C===ie.subTree)&&nh(S,C,!0)):L(S,C,N,Pe,ie,ue,pe,fe,de)},Z=(S,C,N,re,ie,ue,pe,fe,de)=>{C.slotScopeIds=fe,S==null?C.shapeFlag&512?ie.ctx.activate(C,N,re,pe,de):B(C,N,re,ie,ue,pe,de):R(S,C,de)},B=(S,C,N,re,ie,ue,pe)=>{const fe=S.component=tx(S,re,ie);if(Zu(S)&&(fe.ctx.renderer=q),rx(fe,!1,pe),fe.asyncDep){if(ie&&ie.registerDep(fe,j,pe),!S.el){const de=fe.subTree=Ae(mr);g(null,de,C,N)}}else j(fe,S,C,N,ie,ue,pe)},R=(S,C,N)=>{const re=C.component=S.component;if(zP(S,C,N))if(re.asyncDep&&!re.asyncResolved){D(re,C,N);return}else re.next=C,re.update();else C.el=S.el,re.vnode=C},j=(S,C,N,re,ie,ue,pe)=>{const fe=()=>{if(S.isMounted){let{next:ve,bu:xe,u:Me,parent:Ce,vnode:z}=S;{const ct=Mb(S);if(ct){ve&&(ve.el=z.el,D(S,ve,pe)),ct.asyncDep.then(()=>{S.isUnmounted||fe()});return}}let le=ve,Oe;Fi(S,!1),ve?(ve.el=z.el,D(S,ve,pe)):ve=z,xe&&ql(xe),(Oe=ve.props&&ve.props.onVnodeBeforeUpdate)&&un(Oe,Ce,ve,z),Fi(S,!0);const Ee=Tc(S),Ve=S.subTree;S.subTree=Ee,m(Ve,Ee,f(Ve.el),K(Ve),S,ie,ue),ve.el=Ee.el,le===null&&KP(S,Ee.el),Me&&Sr(Me,ie),(Oe=ve.props&&ve.props.onVnodeUpdated)&&Sr(()=>un(Oe,Ce,ve,z),ie)}else{let ve;const{el:xe,props:Me}=C,{bm:Ce,m:z,parent:le,root:Oe,type:Ee}=S,Ve=ja(C);if(Fi(S,!1),Ce&&ql(Ce),!Ve&&(ve=Me&&Me.onVnodeBeforeMount)&&un(ve,le,C),Fi(S,!0),xe&&Q){const ct=()=>{S.subTree=Tc(S),Q(xe,S.subTree,S,ie,null)};Ve&&Ee.__asyncHydrate?Ee.__asyncHydrate(xe,S,ct):ct()}else{Oe.ce&&Oe.ce._injectChildStyle(Ee);const ct=S.subTree=Tc(S);m(null,ct,N,re,S,ie,ue),C.el=ct.el}if(z&&Sr(z,ie),!Ve&&(ve=Me&&Me.onVnodeMounted)){const ct=C;Sr(()=>un(ve,le,ct),ie)}(C.shapeFlag&256||le&&ja(le.vnode)&&le.vnode.shapeFlag&256)&&S.a&&Sr(S.a,ie),S.isMounted=!0,C=N=re=null}};S.scope.on();const de=S.effect=new By(fe);S.scope.off();const ce=S.update=de.run.bind(de),Pe=S.job=de.runIfDirty.bind(de);Pe.i=S,Pe.id=S.uid,de.scheduler=()=>Zd(Pe),Fi(S,!0),ce()},D=(S,C,N)=>{C.component=S;const re=S.vnode.props;S.vnode=C,S.next=null,CP(S,C.props,re,N),jP(S,C.children,N),Oi(),Fp(S),$i()},L=(S,C,N,re,ie,ue,pe,fe,de=!1)=>{const ce=S&&S.children,Pe=S?S.shapeFlag:0,ve=C.children,{patchFlag:xe,shapeFlag:Me}=C;if(xe>0){if(xe&128){w(ce,ve,N,re,ie,ue,pe,fe,de);return}else if(xe&256){$(ce,ve,N,re,ie,ue,pe,fe,de);return}}Me&8?(Pe&16&&V(ce,ie,ue),ve!==ce&&c(N,ve)):Pe&16?Me&16?w(ce,ve,N,re,ie,ue,pe,fe,de):V(ce,ie,ue,!0):(Pe&8&&c(N,""),Me&16&&U(ve,N,re,ie,ue,pe,fe,de))},$=(S,C,N,re,ie,ue,pe,fe,de)=>{S=S||Ca,C=C||Ca;const ce=S.length,Pe=C.length,ve=Math.min(ce,Pe);let xe;for(xe=0;xePe?V(S,ie,ue,!0,!1,ve):U(C,N,re,ie,ue,pe,fe,de,ve)},w=(S,C,N,re,ie,ue,pe,fe,de)=>{let ce=0;const Pe=C.length;let ve=S.length-1,xe=Pe-1;for(;ce<=ve&&ce<=xe;){const Me=S[ce],Ce=C[ce]=de?ai(C[ce]):yn(C[ce]);if(Vi(Me,Ce))m(Me,Ce,N,null,ie,ue,pe,fe,de);else break;ce++}for(;ce<=ve&&ce<=xe;){const Me=S[ve],Ce=C[xe]=de?ai(C[xe]):yn(C[xe]);if(Vi(Me,Ce))m(Me,Ce,N,null,ie,ue,pe,fe,de);else break;ve--,xe--}if(ce>ve){if(ce<=xe){const Me=xe+1,Ce=Mexe)for(;ce<=ve;)X(S[ce],ie,ue,!0),ce++;else{const Me=ce,Ce=ce,z=new Map;for(ce=Ce;ce<=xe;ce++){const Le=C[ce]=de?ai(C[ce]):yn(C[ce]);Le.key!=null&&z.set(Le.key,ce)}let le,Oe=0;const Ee=xe-Ce+1;let Ve=!1,ct=0;const Ht=new Array(Ee);for(ce=0;ce=Ee){X(Le,ie,ue,!0);continue}let De;if(Le.key!=null)De=z.get(Le.key);else for(le=Ce;le<=xe;le++)if(Ht[le-Ce]===0&&Vi(Le,C[le])){De=le;break}De===void 0?X(Le,ie,ue,!0):(Ht[De-Ce]=ce+1,De>=ct?ct=De:Ve=!0,m(Le,C[De],N,null,ie,ue,pe,fe,de),Oe++)}const _e=Ve?HP(Ht):Ca;for(le=_e.length-1,ce=Ee-1;ce>=0;ce--){const Le=Ce+ce,De=C[Le],lr=Le+1{const{el:ue,type:pe,transition:fe,children:de,shapeFlag:ce}=S;if(ce&6){Y(S.component.subTree,C,N,re);return}if(ce&128){S.suspense.move(C,N,re);return}if(ce&64){pe.move(S,C,N,q);return}if(pe===ye){n(ue,C,N);for(let ve=0;vefe.enter(ue),ie);else{const{leave:ve,delayLeave:xe,afterLeave:Me}=fe,Ce=()=>n(ue,C,N),z=()=>{ve(ue,()=>{Ce(),Me&&Me()})};xe?xe(ue,Ce,z):z()}else n(ue,C,N)},X=(S,C,N,re=!1,ie=!1)=>{const{type:ue,props:pe,ref:fe,children:de,dynamicChildren:ce,shapeFlag:Pe,patchFlag:ve,dirs:xe,cacheIndex:Me}=S;if(ve===-2&&(ie=!1),fe!=null&&Df(fe,null,N,S,!0),Me!=null&&(C.renderCache[Me]=void 0),Pe&256){C.ctx.deactivate(S);return}const Ce=Pe&1&&xe,z=!ja(S);let le;if(z&&(le=pe&&pe.onVnodeBeforeUnmount)&&un(le,C,S),Pe&6)ee(S.component,N,re);else{if(Pe&128){S.suspense.unmount(N,re);return}Ce&&ji(S,null,C,"beforeUnmount"),Pe&64?S.type.remove(S,C,N,q,re):ce&&!ce.hasOnce&&(ue!==ye||ve>0&&ve&64)?V(ce,C,N,!1,!0):(ue===ye&&ve&384||!ie&&Pe&16)&&V(de,C,N),re&&ae(S)}(z&&(le=pe&&pe.onVnodeUnmounted)||Ce)&&Sr(()=>{le&&un(le,C,S),Ce&&ji(S,null,C,"unmounted")},N)},ae=S=>{const{type:C,el:N,anchor:re,transition:ie}=S;if(C===ye){oe(N,re);return}if(C===Ql){b(S);return}const ue=()=>{i(N),ie&&!ie.persisted&&ie.afterLeave&&ie.afterLeave()};if(S.shapeFlag&1&&ie&&!ie.persisted){const{leave:pe,delayLeave:fe}=ie,de=()=>pe(N,ue);fe?fe(S.el,ue,de):de()}else ue()},oe=(S,C)=>{let N;for(;S!==C;)N=d(S),i(S),S=N;i(C)},ee=(S,C,N)=>{const{bum:re,scope:ie,job:ue,subTree:pe,um:fe,m:de,a:ce}=S;Yp(de),Yp(ce),re&&ql(re),ie.stop(),ue&&(ue.flags|=8,X(pe,S,C,N)),fe&&Sr(fe,C),Sr(()=>{S.isUnmounted=!0},C),C&&C.pendingBranch&&!C.isUnmounted&&S.asyncDep&&!S.asyncResolved&&S.suspenseId===C.pendingId&&(C.deps--,C.deps===0&&C.resolve())},V=(S,C,N,re=!1,ie=!1,ue=0)=>{for(let pe=ue;pe{if(S.shapeFlag&6)return K(S.component.subTree);if(S.shapeFlag&128)return S.suspense.next();const C=d(S.anchor||S.el),N=C&&C[fb];return N?d(N):C};let H=!1;const E=(S,C,N)=>{S==null?C._vnode&&X(C._vnode,null,null,!0):m(C._vnode||null,S,C,null,null,null,N),C._vnode=S,H||(H=!0,Fp(),lb(),H=!1)},q={p:m,um:X,m:Y,r:ae,mt:B,mc:U,pc:L,pbc:x,n:K,o:e};let G,Q;return t&&([G,Q]=t(q)),{render:E,hydrate:G,createApp:TP(E,G)}}function Ac({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Fi({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function NP(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function nh(e,t,r=!1){const n=e.children,i=t.children;if(Be(n)&&Be(i))for(let a=0;a>1,e[r[o]]0&&(t[n]=r[a-1]),r[a]=n)}}for(a=r.length,s=r[a-1];a-- >0;)r[a]=s,s=t[s];return r}function Mb(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Mb(t)}function Yp(e){if(e)for(let t=0;tWn(UP);function yr(e,t,r){return Lb(e,t,r)}function Lb(e,t,r=bt){const{immediate:n,deep:i,flush:a,once:s}=r,o=Nt({},r);let l;if(rc)if(a==="sync"){const d=BP();l=d.__watcherHandles||(d.__watcherHandles=[])}else if(!t||n)o.once=!0;else{const d=()=>{};return d.stop=Xr,d.resume=Xr,d.pause=Xr,d}const u=zt;o.call=(d,p,h)=>an(d,u,p,h);let c=!1;a==="post"?o.scheduler=d=>{Sr(d,u&&u.suspense)}:a!=="sync"&&(c=!0,o.scheduler=(d,p)=>{p?d():Zd(d)}),o.augmentJob=d=>{t&&(d.flags|=4),c&&(d.flags|=2,u&&(d.id=u.uid,d.i=u))};const f=JS(e,t,o);return l&&l.push(f),f}function WP(e,t,r){const n=this.proxy,i=Rt(e)?e.includes(".")?Nb(n,e):()=>n[e]:e.bind(n,n);let a;qe(t)?a=t:(a=t.handler,r=t);const s=tl(this),o=Lb(i,a.bind(n),r);return s(),o}function Nb(e,t){const r=t.split(".");return()=>{let n=e;for(let i=0;it==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${nn(t)}Modifiers`]||e[`${xi(t)}Modifiers`];function VP(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||bt;let i=r;const a=t.startsWith("update:"),s=a&&qP(n,t.slice(7));s&&(s.trim&&(i=r.map(c=>Rt(c)?c.trim():c)),s.number&&(i=r.map(Af)));let o,l=n[o=Wl(t)]||n[o=Wl(nn(t))];!l&&a&&(l=n[o=Wl(xi(t))]),l&&an(l,e,6,i);const u=n[o+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,an(u,e,6,i)}}function Hb(e,t,r=!1){const n=t.emitsCache,i=n.get(e);if(i!==void 0)return i;const a=e.emits;let s={},o=!1;if(!qe(e)){const l=u=>{const c=Hb(u,t,!0);c&&(o=!0,Nt(s,c))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!o?(St(e)&&n.set(e,null),null):(Be(a)?a.forEach(l=>s[l]=null):Nt(s,a),St(e)&&n.set(e,s),s)}function ec(e,t){return!e||!Vu(t)?!1:(t=t.slice(2).replace(/Once$/,""),ot(e,t[0].toLowerCase()+t.slice(1))||ot(e,xi(t))||ot(e,t))}function Tc(e){const{type:t,vnode:r,proxy:n,withProxy:i,propsOptions:[a],slots:s,attrs:o,emit:l,render:u,renderCache:c,props:f,data:d,setupState:p,ctx:h,inheritAttrs:m}=e,v=cu(e);let g,y;try{if(r.shapeFlag&4){const b=i||n,P=b;g=yn(u.call(P,b,c,f,p,d,h)),y=o}else{const b=t;g=yn(b.length>1?b(f,{attrs:o,slots:s,emit:l}):b(f,null)),y=t.props?o:YP(o)}}catch(b){Fs.length=0,Xu(b,e,1),g=Ae(mr)}let _=g;if(y&&m!==!1){const b=Object.keys(y),{shapeFlag:P}=_;b.length&&P&7&&(a&&b.some(Ld)&&(y=QP(y,a)),_=bi(_,y,!1,!0))}return r.dirs&&(_=bi(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&Js(_,r.transition),g=_,cu(v),g}const YP=e=>{let t;for(const r in e)(r==="class"||r==="style"||Vu(r))&&((t||(t={}))[r]=e[r]);return t},QP=(e,t)=>{const r={};for(const n in e)(!Ld(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function zP(e,t,r){const{props:n,children:i,component:a}=e,{props:s,children:o,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?Qp(n,s,u):!!s;if(l&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense;function GP(e,t){t&&t.pendingBranch?Be(e)?t.effects.push(...e):t.effects.push(e):rP(e)}const ye=Symbol.for("v-fgt"),tc=Symbol.for("v-txt"),mr=Symbol.for("v-cmt"),Ql=Symbol.for("v-stc"),Fs=[];let Cr=null;function T(e=!1){Fs.push(Cr=e?null:[])}function XP(){Fs.pop(),Cr=Fs[Fs.length-1]||null}let eo=1;function zp(e){eo+=e,e<0&&Cr&&(Cr.hasOnce=!0)}function Bb(e){return e.dynamicChildren=eo>0?Cr||Ca:null,XP(),eo>0&&Cr&&Cr.push(e),e}function W(e,t,r,n,i,a){return Bb(O(e,t,r,n,i,a,!0))}function Re(e,t,r,n,i){return Bb(Ae(e,t,r,n,i,!0))}function du(e){return e?e.__v_isVNode===!0:!1}function Vi(e,t){return e.type===t.type&&e.key===t.key}const Wb=({key:e})=>e!=null?e:null,zl=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Rt(e)||Ft(e)||qe(e)?{i:qt,r:e,k:t,f:!!r}:e:null);function O(e,t=null,r=null,n=0,i=null,a=e===ye?0:1,s=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wb(t),ref:t&&zl(t),scopeId:cb,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:qt};return o?(ih(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=Rt(r)?8:16),eo>0&&!s&&Cr&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&Cr.push(l),l}const Ae=ZP;function ZP(e,t=null,r=null,n=0,i=null,a=!1){if((!e||e===Pb)&&(e=mr),du(e)){const o=bi(e,t,!0);return r&&ih(o,r),eo>0&&!a&&Cr&&(o.shapeFlag&6?Cr[Cr.indexOf(e)]=o:Cr.push(o)),o.patchFlag=-2,o}if(sx(e)&&(e=e.__vccOpts),t){t=lt(t);let{class:o,style:l}=t;o&&!Rt(o)&&(t.class=te(o)),St(l)&&(Kd(l)&&!Be(l)&&(l=Nt({},l)),t.style=gr(l))}const s=Rt(e)?1:Ub(e)?128:db(e)?64:St(e)?4:qe(e)?2:0;return O(e,t,r,n,i,s,a,!0)}function lt(e){return e?Kd(e)||kb(e)?Nt({},e):e:null}function bi(e,t,r=!1,n=!1){const{props:i,ref:a,patchFlag:s,children:o,transition:l}=e,u=t?$t(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Wb(u),ref:t&&t.ref?r&&a?Be(a)?a.concat(zl(t)):[a,zl(t)]:zl(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ye?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&bi(e.ssContent),ssFallback:e.ssFallback&&bi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&Js(c,l.clone(c)),c}function He(e=" ",t=0){return Ae(tc,null,e,t)}function to(e,t){const r=Ae(Ql,null,e);return r.staticCount=t,r}function ne(e="",t=!1){return t?(T(),Re(mr,null,e)):Ae(mr,null,e)}function yn(e){return e==null||typeof e=="boolean"?Ae(mr):Be(e)?Ae(ye,null,e.slice()):typeof e=="object"?ai(e):Ae(tc,null,String(e))}function ai(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:bi(e)}function ih(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(Be(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),ih(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!kb(t)?t._ctx=qt:i===3&&qt&&(qt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else qe(t)?(t={default:t,_ctx:qt},r=32):(t=String(t),n&64?(r=16,t=[He(t)]):r=8);e.children=t,e.shapeFlag|=r}function $t(...e){const t={};for(let r=0;rzt||qt;let hu,Nf;{const e=Ud(),t=(r,n)=>{let i;return(i=e[r])||(i=e[r]=[]),i.push(n),a=>{i.length>1?i.forEach(s=>s(a)):i[0](a)}};hu=t("__VUE_INSTANCE_SETTERS__",r=>zt=r),Nf=t("__VUE_SSR_SETTERS__",r=>rc=r)}const tl=e=>{const t=zt;return hu(e),e.scope.on(),()=>{e.scope.off(),hu(t)}},Kp=()=>{zt&&zt.scope.off(),hu(null)};function Vb(e){return e.vnode.shapeFlag&4}let rc=!1;function rx(e,t=!1,r=!1){t&&Nf(t);const{props:n,children:i}=e.vnode,a=Vb(e);kP(e,n,a,t),DP(e,i,r);const s=a?nx(e,t):void 0;return t&&Nf(!1),s}function nx(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,_P);const{setup:n}=r;if(n){const i=e.setupContext=n.length>1?Qb(e):null,a=tl(e);Oi();const s=el(n,e,0,[e.props,i]);if($i(),a(),Iy(s)){if(ja(e)||bb(e),s.then(Kp,Kp),t)return s.then(o=>{Gp(e,o,t)}).catch(o=>{Xu(o,e,0)});e.asyncDep=s}else Gp(e,s,t)}else Yb(e,t)}function Gp(e,t,r){qe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:St(t)&&(e.setupState=ab(t)),Yb(e,r)}let Xp;function Yb(e,t,r){const n=e.type;if(!e.render){if(!t&&Xp&&!n.render){const i=n.template||th(e).template;if(i){const{isCustomElement:a,compilerOptions:s}=e.appContext.config,{delimiters:o,compilerOptions:l}=n,u=Nt(Nt({isCustomElement:a,delimiters:o},s),l);n.render=Xp(i,u)}}e.render=n.render||Xr}{const i=tl(e);Oi();try{PP(e)}finally{$i(),i()}}}const ix={get(e,t){return ar(e,"get",""),e[t]}};function Qb(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,ix),slots:e.slots,emit:e.emit,expose:t}}function nc(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ab(WS(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in js)return js[r](e)},has(t,r){return r in t||r in js}})):e.proxy}function ax(e,t=!0){return qe(e)?e.displayName||e.name:e.name||t&&e.__name}function sx(e){return qe(e)&&"__vccOpts"in e}const he=(e,t)=>XS(e,t,rc);function Ur(e,t,r){const n=arguments.length;return n===2?St(t)&&!Be(t)?du(t)?Ae(e,null,[t]):Ae(e,t):Ae(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&du(r)&&(r=[r]),Ae(e,t,r))}const zb="3.5.8";/** * @vue/runtime-dom v3.5.8 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Hf;const Zp=typeof window<"u"&&window.trustedTypes;if(Zp)try{Hf=Zp.createPolicy("vue",{createHTML:e=>e})}catch{}const Kb=Hf?e=>Hf.createHTML(e):e=>e,ox="http://www.w3.org/2000/svg",lx="http://www.w3.org/1998/Math/MathML",Mn=typeof document<"u"?document:null,Jp=Mn&&Mn.createElement("template"),ux={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const i=t==="svg"?Mn.createElementNS(ox,e):t==="mathml"?Mn.createElementNS(lx,e):r?Mn.createElement(e,{is:r}):Mn.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Mn.createTextNode(e),createComment:e=>Mn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Mn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,i,a){const s=r?r.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),r),!(i===a||!(i=i.nextSibling)););else{Jp.innerHTML=Kb(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const o=Jp.content;if(n==="svg"||n==="mathml"){const l=o.firstChild;for(;l.firstChild;)o.appendChild(l.firstChild);o.removeChild(l)}t.insertBefore(o,r)}return[s?s.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},zn="transition",us="animation",ro=Symbol("_vtc"),Gb={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},cx=Nt({},pb,Gb),fx=e=>(e.displayName="Transition",e.props=cx,e),Ai=fx((e,{slots:t})=>Ur(uP,dx(e),t)),Mi=(e,t=[])=>{Be(e)?e.forEach(r=>r(...t)):e&&e(...t)},em=e=>e?Be(e)?e.some(t=>t.length>1):e.length>1:!1;function dx(e){const t={};for(const M in e)M in Gb||(t[M]=e[M]);if(e.css===!1)return t;const{name:r="v",type:n,duration:i,enterFromClass:a=`${r}-enter-from`,enterActiveClass:s=`${r}-enter-active`,enterToClass:o=`${r}-enter-to`,appearFromClass:l=a,appearActiveClass:u=s,appearToClass:c=o,leaveFromClass:f=`${r}-leave-from`,leaveActiveClass:d=`${r}-leave-active`,leaveToClass:p=`${r}-leave-to`}=e,h=hx(i),m=h&&h[0],v=h&&h[1],{onBeforeEnter:g,onEnter:y,onEnterCancelled:_,onLeave:b,onLeaveCancelled:P,onBeforeAppear:k=g,onAppear:A=y,onAppearCancelled:U=_}=t,F=(M,Z,B)=>{Li(M,Z?c:o),Li(M,Z?u:s),B&&B()},x=(M,Z)=>{M._isLeaving=!1,Li(M,f),Li(M,p),Li(M,d),Z&&Z()},I=M=>(Z,B)=>{const R=M?A:y,j=()=>F(Z,M,B);Mi(R,[Z,j]),tm(()=>{Li(Z,M?l:a),Kn(Z,M?c:o),em(R)||rm(Z,n,m,j)})};return Nt(t,{onBeforeEnter(M){Mi(g,[M]),Kn(M,a),Kn(M,s)},onBeforeAppear(M){Mi(k,[M]),Kn(M,l),Kn(M,u)},onEnter:I(!1),onAppear:I(!0),onLeave(M,Z){M._isLeaving=!0;const B=()=>x(M,Z);Kn(M,f),Kn(M,d),vx(),tm(()=>{!M._isLeaving||(Li(M,f),Kn(M,p),em(b)||rm(M,n,v,B))}),Mi(b,[M,B])},onEnterCancelled(M){F(M,!1),Mi(_,[M])},onAppearCancelled(M){F(M,!0),Mi(U,[M])},onLeaveCancelled(M){x(M),Mi(P,[M])}})}function hx(e){if(e==null)return null;if(St(e))return[kc(e.enter),kc(e.leave)];{const t=kc(e);return[t,t]}}function kc(e){return dS(e)}function Kn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[ro]||(e[ro]=new Set)).add(t)}function Li(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[ro];r&&(r.delete(t),r.size||(e[ro]=void 0))}function tm(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let px=0;function rm(e,t,r,n){const i=e._endId=++px,a=()=>{i===e._endId&&n()};if(r!=null)return setTimeout(a,r);const{type:s,timeout:o,propCount:l}=mx(e,t);if(!s)return n();const u=s+"end";let c=0;const f=()=>{e.removeEventListener(u,d),a()},d=p=>{p.target===e&&++c>=l&&f()};setTimeout(()=>{c(r[h]||"").split(", "),i=n(`${zn}Delay`),a=n(`${zn}Duration`),s=nm(i,a),o=n(`${us}Delay`),l=n(`${us}Duration`),u=nm(o,l);let c=null,f=0,d=0;t===zn?s>0&&(c=zn,f=s,d=a.length):t===us?u>0&&(c=us,f=u,d=l.length):(f=Math.max(s,u),c=f>0?s>u?zn:us:null,d=c?c===zn?a.length:l.length:0);const p=c===zn&&/\b(transform|all)(,|$)/.test(n(`${zn}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:p}}function nm(e,t){for(;e.lengthim(r)+im(e[n])))}function im(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function vx(){return document.body.offsetHeight}function gx(e,t,r){const n=e[ro];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const pu=Symbol("_vod"),Xb=Symbol("_vsh"),Gr={beforeMount(e,{value:t},{transition:r}){e[pu]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):cs(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),cs(e,!0),n.enter(e)):n.leave(e,()=>{cs(e,!1)}):cs(e,t))},beforeUnmount(e,{value:t}){cs(e,t)}};function cs(e,t){e.style.display=t?e[pu]:"none",e[Xb]=!t}const yx=Symbol(""),bx=/(^|;)\s*display\s*:/;function wx(e,t,r){const n=e.style,i=Rt(r);let a=!1;if(r&&!i){if(t)if(Rt(t))for(const s of t.split(";")){const o=s.slice(0,s.indexOf(":")).trim();r[o]==null&&Kl(n,o,"")}else for(const s in t)r[s]==null&&Kl(n,s,"");for(const s in r)s==="display"&&(a=!0),Kl(n,s,r[s])}else if(i){if(t!==r){const s=n[yx];s&&(r+=";"+s),n.cssText=r,a=bx.test(r)}}else t&&e.removeAttribute("style");pu in e&&(e[pu]=a?n.display:"",e[Xb]&&(n.display="none"))}const am=/\s*!important$/;function Kl(e,t,r){if(Be(r))r.forEach(n=>Kl(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=_x(e,t);am.test(r)?e.setProperty(xi(n),r.replace(am,""),"important"):e[n]=r}}const sm=["Webkit","Moz","ms"],Cc={};function _x(e,t){const r=Cc[t];if(r)return r;let n=nn(t);if(n!=="filter"&&n in e)return Cc[t]=n;n=zu(n);for(let i=0;iEc||($x.then(()=>Ec=0),Ec=Date.now());function Ax(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;an(Tx(n,r.value),t,5,[n])};return r.value=e,r.attached=Rx(),r}function Tx(e,t){if(Be(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const fm=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,kx=(e,t,r,n,i,a)=>{const s=i==="svg";t==="class"?gx(e,n,s):t==="style"?wx(e,r,n):Vu(t)?Ld(t)||xx(e,t,r,n,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Cx(e,t,n,s))?(Sx(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&lm(e,t,n,s,a,t!=="value")):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),lm(e,t,n,s))};function Cx(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&fm(t)&&qe(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return fm(t)&&Rt(r)?!1:!!(t in e||e._isVueCE&&(/[A-Z]/.test(t)||!Rt(r)))}const dm=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Be(t)?r=>ql(t,r):t};function Ex(e){e.target.composing=!0}function hm(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ic=Symbol("_assign"),mu={created(e,{modifiers:{lazy:t,trim:r,number:n}},i){e[Ic]=dm(i);const a=n||i.props&&i.props.type==="number";xa(e,t?"change":"input",s=>{if(s.target.composing)return;let o=e.value;r&&(o=o.trim()),a&&(o=Af(o)),e[Ic](o)}),r&&xa(e,"change",()=>{e.value=e.value.trim()}),t||(xa(e,"compositionstart",Ex),xa(e,"compositionend",hm),xa(e,"change",hm))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:i,number:a}},s){if(e[Ic]=dm(s),e.composing)return;const o=(a||e.type==="number")&&!/^0\d/.test(e.value)?Af(e.value):e.value,l=t==null?"":t;o!==l&&(document.activeElement===e&&e.type!=="range"&&(n&&t===r||i&&e.value.trim()===l)||(e.value=l))}},Ix=["ctrl","shift","alt","meta"],Dx={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Ix.some(r=>e[`${r}Key`]&&!t.includes(r))},Se=(e,t)=>{const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=(i,...a)=>{for(let s=0;s{const r=e._withKeys||(e._withKeys={}),n=t.join(".");return r[n]||(r[n]=i=>{if(!("key"in i))return;const a=xi(i.key);if(t.some(s=>s===a||jx[s]===a))return e(i)})},Fx=Nt({patchProp:kx},ux);let pm;function Zb(){return pm||(pm=MP(Fx))}const mm=(...e)=>{Zb().render(...e)},Mx=(...e)=>{const t=Zb().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=Nx(n);if(!i)return;const a=t._component;!qe(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=r(i,!1,Lx(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t};function Lx(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Nx(e){return Rt(e)?document.querySelector(e):e}var vu="2.17.2";function Yr(e){return e.reduce(function(t,r){var n=t.events,i=t.additionalParams;return"index"in r?{additionalParams:i,events:n.concat([r])}:{events:n,additionalParams:r}},{events:[],additionalParams:void 0})}var Hx=function(){try{return Boolean(navigator.cookieEnabled)}catch{return!1}},Ux=function(){try{var e=require("http"),t=e.request,r=require("https"),n=r.request;return Boolean(t)&&Boolean(n)}catch{return!1}},Bx=function(){try{return fetch!==void 0}catch{return!1}},rs=function(){};rs.get=function(t){var r,n=(r=this.store)===null||r===void 0?void 0:r.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return null}};rs.set=function(t,r){var n;try{(n=this.store)===null||n===void 0||n.setItem(t,JSON.stringify(r))}catch{console.error("Unable to set "+t+" in localStorage, storage may be full.")}};rs.remove=function(t){var r;(r=this.store)===null||r===void 0||r.removeItem(t)};rs.store=Wx();function Wx(){try{var e="__test_localStorage__";return globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),globalThis.localStorage}catch{return}}var Jb="AlgoliaObjectQueryCache",qx=5e3,Vx=1e3;function ah(){var e;return(e=rs.get(Jb))!==null&&e!==void 0?e:{}}function e0(e){rs.set(Jb,Yx(e))}function Yx(e){return Object.keys(e).length>qx?Qx(e):e}function Qx(e){var t=Object.entries(e).sort(function(n,i){var a=n[1][1],s=i[1][1];return s-a}),r=t.slice(0,t.length-Vx-1).reduce(function(n,i){var a,s=i[0],o=i[1];return Object.assign(Object.assign({},n),(a={},a[s]=o,a))},{});return r}function sh(e,t){return e+"_"+t}function oh(e,t,r){var n=ah();n[sh(e,t)]=[r,Date.now()],e0(n)}function zx(e,t){return ah()[sh(e,t)]}function Kx(e,t){var r=ah();t.forEach(function(n){delete r[sh(e,n)]}),e0(r)}var Ms=function(e){return typeof e>"u"},Gx=function(e){return typeof e=="number"},Ti=function(e){return typeof e=="function"},Xx=function(e){return typeof(e==null?void 0:e.then)=="function"};function Zx(e){return function(t){for(var r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];if(t&&Ti(e[t]))return e[t].apply(e,r);console.warn("The method `"+t+"` doesn't exist.")}}var Jx=["insights-js ("+vu+")","insights-js-node-esm ("+vu+")"];function eO(e){this._ua.indexOf(e)===-1&&this._ua.push(e)}function tO(e){return Ti(e)&&e(this.version),this.version}/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */function lh(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i0&&arguments[0]!==void 0?arguments[0]:{},n=r.descendantName,i=r.modifierName,a=n?"-".concat(n):"",s=i?"--".concat(i):"";return"".concat(jO,"-").concat(t).concat(a).concat(s)}},FO=0;function MO(e){e.dependsOn==="recommend"&&(e.$$id=FO++)}function Ke(){}var Ci=function(t,r){return t};function LO(e){return Object.prototype.toString.call(e).slice(8,-1)}function Et(e,t){if(e===void 0||typeof e!="function")throw new Error("The render function is not valid (received type ".concat(LO(e),`). `).concat(t))}function ym(e){var t=e.helper,r=e.attributesToClear,n=r===void 0?[]:r,i=t.state.setPage(0);return i=n.reduce(function(a,s){return i.isNumericRefined(s)?a.removeNumericRefinement(s):i.isHierarchicalFacet(s)?a.removeHierarchicalFacetRefinement(s):i.isDisjunctiveFacet(s)?a.removeDisjunctiveFacetRefinement(s):i.isConjunctiveFacet(s)?a.removeFacetRefinement(s):a},i),n.indexOf("query")!==-1&&(i=i.setQuery("")),i}var NO={"&":"&","<":"<",">":">",'"':""","'":"'"},r0=/[&<>"']/g,HO=RegExp(r0.source);function UO(e){return e&&HO.test(e)?e.replace(r0,function(t){return NO[t]}):e}var BO={"&":"&","<":"<",">":">",""":'"',"'":"'"},n0=/&(amp|quot|lt|gt|#39);/g,WO=RegExp(n0.source);function i0(e){return e&&WO.test(e)?e.replace(n0,function(t){return BO[t]}):e}function Bf(e){return Bf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bf(e)}function qO(e){return e===null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function VO(e){return Bf(e)==="object"&&e!==null}function a0(e){if(!VO(e)||qO(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function no(e){return no=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},no(e)}function YO(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function Wf(){return Wf=Object.assign?Object.assign.bind():function(e){for(var t=1;t",highlightPostTag:""};function o0(e){return UO(e).replace(new RegExp(Tn.highlightPreTag,"g"),sr.highlightPreTag).replace(new RegExp(Tn.highlightPostTag,"g"),sr.highlightPostTag)}function gu(e){return a0(e)&&typeof e.value!="string"?Object.keys(e).reduce(function(t,r){return Ra(Ra({},t),{},s0({},r,gu(e[r])))},{}):Array.isArray(e)?e.map(gu):Ra(Ra({},e),{},{value:o0(e.value)})}function sc(e){return e.__escaped===void 0&&(e=e.map(function(t){var r=Wf({},(YO(t),t));return r._highlightResult&&(r._highlightResult=gu(r._highlightResult)),r._snippetResult&&(r._snippetResult=gu(r._snippetResult)),r}),e.__escaped=!0),e}function KO(e){return e.map(function(t){return Ra(Ra({},t),{},{highlighted:o0(t.highlighted)})})}function l0(e){var t=sr.highlightPreTag,r=sr.highlightPostTag;return e.map(function(n){return n.isHighlighted?t+n.value+r:n.value}).join("")}function GO(){var e=-1,t=-1,r=void 0;return function(i){var a=++e;return Promise.resolve(i).then(function(s){return r&&ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=2&&l.length<=4&&(XO(r,_,c)||t.sendEventToInsights({insightsMethod:"clickedFilters",widgetType:i,eventType:g,eventModifier:y,payload:ZO({eventName:d,index:r.getIndex(),filters:["".concat(_,":").concat(c)]},h),attribute:_}))};return a}function u0(e){return btoa(encodeURIComponent(JSON.stringify(e)))}function Sm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dc(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:20,r=[],n=0;n4&&arguments[4]!==void 0?arguments[4]:[],a={type:t,attribute:r,name:n,escapedValue:Os(n)},s=wi(i,function(p){return p.name===r}),o;if(t==="hierarchical"){for(var l=e.getHierarchicalFacetByName(r),u=n.split(l.separator),c=function(h){return function(m){return h[m]}},f=function(h){s=s&&s.data&&wi(Object.keys(s.data).map(c(s.data)),function(m){return m.name===u[h]})},d=0;s!==void 0&&d2&&arguments[2]!==void 0?arguments[2]:!1,n=[],i=t.facetsRefinements,a=i===void 0?{}:i,s=t.facetsExcludes,o=s===void 0?{}:s,l=t.disjunctiveFacetsRefinements,u=l===void 0?{}:l,c=t.hierarchicalFacetsRefinements,f=c===void 0?{}:c,d=t.numericRefinements,p=d===void 0?{}:d,h=t.tagRefinements,m=h===void 0?[]:h;return Object.keys(a).forEach(function(v){var g=a[v];g.forEach(function(y){n.push(jc(t,"facet",v,y,e.facets))})}),Object.keys(o).forEach(function(v){var g=o[v];g.forEach(function(y){n.push({type:"exclude",attribute:v,name:y,exclude:!0})})}),Object.keys(u).forEach(function(v){var g=u[v];g.forEach(function(y){n.push(jc(t,"disjunctive",v,y$(y),e.disjunctiveFacets))})}),Object.keys(f).forEach(function(v){var g=f[v];g.forEach(function(y){n.push(jc(t,"hierarchical",v,y,e.hierarchicalFacets))})}),Object.keys(p).forEach(function(v){var g=p[v];Object.keys(g).forEach(function(y){var _=y,b=g[_],P=Array.isArray(b)?b:[b];P.forEach(function(k){n.push({type:"numeric",attribute:v,name:"".concat(k),numericValue:k,operator:_})})})}),m.forEach(function(v){n.push({type:"tag",attribute:"_tags",name:v})}),r&&t.query&&t.query.trim()&&n.push({attribute:"query",type:"query",name:t.query,query:t.query}),n}function P$(e,t){var r,n=(r=e.getWidgetRenderState)===null||r===void 0?void 0:r.call(e,t),i=null;if(n&&n.widgetParams){var a=n.widgetParams;a.attribute?i=a.attribute:Array.isArray(a.attributes)&&(i=a.attributes[0])}if(typeof i!="string")throw new Error(`Could not find the attribute of the widget: `.concat(JSON.stringify(e),` Please check whether the widget's getWidgetRenderState returns widgetParams.attribute correctly.`));return i}function io(e){return io=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},io(e)}function Om(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $m(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?o-1:0),u=1;u1?a-1:0),o=1;o=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(r[n]=e[n]))}return r}function z$(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var K$=function(t,r){r.facets,r.disjunctiveFacets,r.facetsRefinements,r.facetsExcludes,r.disjunctiveFacetsRefinements,r.numericRefinements,r.tagRefinements,r.hierarchicalFacets,r.hierarchicalFacetsRefinements,r.ruleContexts;var n=Q$(r,W$);return t.setQueryParameters(n)},G$=function(t,r){return r.facets.reduce(function(n,i){return n.addFacet(i)},t)},X$=function(t,r){return r.disjunctiveFacets.reduce(function(n,i){return n.addDisjunctiveFacet(i)},t)},Z$=function(t,r){return t.setQueryParameters({hierarchicalFacets:r.hierarchicalFacets.reduce(function(n,i){var a=b$(n,function(o){return o.name===i.name});if(a===-1)return n.concat(i);var s=n.slice();return s.splice(a,1,i),s},t.hierarchicalFacets)})},J$=function(t,r){return r.tagRefinements.reduce(function(n,i){return n.addTagRefinement(i)},t)},eR=function(t,r){return t.setQueryParameters({facetsRefinements:kn(kn({},t.facetsRefinements),r.facetsRefinements)})},tR=function(t,r){return t.setQueryParameters({facetsExcludes:kn(kn({},t.facetsExcludes),r.facetsExcludes)})},rR=function(t,r){return t.setQueryParameters({disjunctiveFacetsRefinements:kn(kn({},t.disjunctiveFacetsRefinements),r.disjunctiveFacetsRefinements)})},nR=function(t,r){return t.setQueryParameters({numericRefinements:kn(kn({},t.numericRefinements),r.numericRefinements)})},iR=function(t,r){return t.setQueryParameters({hierarchicalFacetsRefinements:kn(kn({},t.hierarchicalFacetsRefinements),r.hierarchicalFacetsRefinements)})},aR=function(t,r){var n=mh([].concat(t.ruleContexts).concat(r.ruleContexts).filter(Boolean));return n.length>0?t.setQueryParameters({ruleContexts:n}):t},Ls=function(){for(var t=arguments.length,r=new Array(t),n=0;ne.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:{fallback:function(){}},r=t.fallback;return typeof window>"u"?r():e({window})}function Fc(e){return Array.isArray(e)?e:[e]}var mR=ac("Highlight");function m0(e){var t=e.attribute,r=e.highlightedTagName,n=r===void 0?"mark":r,i=e.hit,a=e.cssClasses,s=a===void 0?{}:a,o=ns(i._highlightResult,t),l=o||{},u=l.value,c=u===void 0?"":u,f=mR({descendantName:"highlighted"})+(s.highlighted?" ".concat(s.highlighted):"");return c.replace(new RegExp(sr.highlightPreTag,"g"),"<".concat(n,' class="').concat(f,'">')).replace(new RegExp(sr.highlightPostTag,"g"),""))}var vR=ac("ReverseHighlight");function v0(e){var t=e.attribute,r=e.highlightedTagName,n=r===void 0?"mark":r,i=e.hit,a=e.cssClasses,s=a===void 0?{}:a,o=ns(i._highlightResult,t),l=o||{},u=l.value,c=u===void 0?"":u,f=vR({descendantName:"highlighted"})+(s.highlighted?" ".concat(s.highlighted):""),d=l0(p0(fh(c)));return d.replace(new RegExp(sr.highlightPreTag,"g"),"<".concat(n,' class="').concat(f,'">')).replace(new RegExp(sr.highlightPostTag,"g"),""))}var gR=ac("Snippet");function g0(e){var t=e.attribute,r=e.highlightedTagName,n=r===void 0?"mark":r,i=e.hit,a=e.cssClasses,s=a===void 0?{}:a,o=ns(i._snippetResult,t),l=o||{},u=l.value,c=u===void 0?"":u,f=gR({descendantName:"highlighted"})+(s.highlighted?" ".concat(s.highlighted):"");return c.replace(new RegExp(sr.highlightPreTag,"g"),"<".concat(n,' class="').concat(f,'">')).replace(new RegExp(sr.highlightPostTag,"g"),""))}var yR=ac("ReverseSnippet");function y0(e){var t=e.attribute,r=e.highlightedTagName,n=r===void 0?"mark":r,i=e.hit,a=e.cssClasses,s=a===void 0?{}:a,o=ns(i._snippetResult,t),l=o||{},u=l.value,c=u===void 0?"":u,f=yR({descendantName:"highlighted"})+(s.highlighted?" ".concat(s.highlighted):""),d=l0(p0(fh(c)));return d.replace(new RegExp(sr.highlightPreTag,"g"),"<".concat(n,' class="').concat(f,'">')).replace(new RegExp(sr.highlightPostTag,"g"),""))}function Yf(e){return Yf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yf(e)}function bR(e){var t=e.method,r=e.payload;if(Yf(r)!=="object")throw new Error("The insights helper expects the payload to be an object.");var n;try{n=u0(r)}catch{throw new Error("Could not JSON serialize the payload object.")}return'data-insights-method="'.concat(t,'" data-insights-payload="').concat(n,'"')}function b0(e,t){return bR({method:e,payload:t})}function Qf(e){return Qf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qf(e)}var wR="_ALGOLIA";function _R(e){if(!((typeof document>"u"?"undefined":Qf(document))!=="object"||typeof document.cookie!="string"))for(var t="".concat(e,"="),r=document.cookie.split(";"),n=0;ne.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:{},t=e.insightsClient,r=e.insightsInitParams,n=e.onEvent,i=e.$$internal,a=i===void 0?!1:i,s=e.$$automatic,o=s===void 0?!1:s,l=t;!t&&t!==null&&wn(function(c){var f=c.window,d=f.AlgoliaAnalyticsObject||"aa";typeof d=="string"&&(l=f[d]),l||(f.AlgoliaAnalyticsObject=d,f[d]||(f[d]=function(){f[d].queue||(f[d].queue=[]);for(var p=arguments.length,h=new Array(p),m=0;m1&&arguments[1]!==void 0?arguments[1]:!1,w=Mc(L);if(!w)return;var Y=F.state.userToken;function X(){F.overrideStateWithoutTriggeringChangeEvent(Ni(Ni({},F.state),{},{userToken:w})),Y&&Y!==L&&f.scheduleSearch()}$?X():setTimeout(X,0)},M=w0();M&&I(M,!0);function Z(D,L,$){I(D,!0),L&&u("setUserToken",L),$&&u("setAuthenticatedUserToken",$)}var B=b||_,R=y||g;B?Z(B,_,b):R&&Z(R,g,y),u("onUserTokenChange",I,{immediate:!0}),u("onAuthenticatedUserTokenChange",function(D){D||u("getUserToken",null,function(L,$){I($)}),I(D)},{immediate:!0});var j=u;Hm(u)&&(j=function(L,$){var w={headers:{"X-Algolia-Application-Id":m,"X-Algolia-API-Key":v}};return u(L,$,w)}),f.sendEventToInsights=function(D){n?n(D,j):D.insightsMethod&&(D.payload.algoliaSource=["instantsearch"],o&&D.payload.algoliaSource.push("instantsearch-automatic"),D.eventModifier==="internal"&&D.payload.algoliaSource.push("instantsearch-internal"),j(D.insightsMethod,D.payload))}},unsubscribe:function(){u("onUserTokenChange",void 0),u("onAuthenticatedUserTokenChange",void 0),f.sendEventToInsights=Ke,F&&U&&(F.overrideStateWithoutTriggeringChangeEvent(Ni(Ni({},F.state),U)),f.scheduleSearch())}}}}function Hm(e){var t=(e.version||"").split(".").map(Number),r=Rs(t,2),n=r[0],i=r[1],a=n>=3,s=n===2&&i>=6,o=n===1&&i>=10;return a||s||o}function Mc(e){if(!!e)return typeof e=="number"?e.toString():e}var nl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},DR=String.prototype.replace,jR=/%20/g,Lc={RFC1738:"RFC1738",RFC3986:"RFC3986"},vh={default:Lc.RFC3986,formatters:{RFC1738:function(e){return DR.call(e,jR,"+")},RFC3986:function(e){return String(e)}},RFC1738:Lc.RFC1738,RFC3986:Lc.RFC3986},FR=vh,Nc=Object.prototype.hasOwnProperty,Yi=Array.isArray,cn=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),MR=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(Yi(n)){for(var i=[],a=0;a=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||a===FR.RFC1738&&(u===40||u===41)){o+=s.charAt(l);continue}if(u<128){o=o+cn[u];continue}if(u<2048){o=o+(cn[192|u>>6]+cn[128|u&63]);continue}if(u<55296||u>=57344){o=o+(cn[224|u>>12]+cn[128|u>>6&63]+cn[128|u&63]);continue}l+=1,u=65536+((u&1023)<<10|s.charCodeAt(l)&1023),o+=cn[240|u>>18]+cn[128|u>>12&63]+cn[128|u>>6&63]+cn[128|u&63]}return o},BR=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],i=0;i"u")return b;var P;if(n==="comma"&&Ki(m))P=[{value:m.length>0?m.join(",")||null:void 0}];else if(Ki(o))P=o;else{var k=Object.keys(m);P=l?k.sort(l):k}for(var A=0;A"u"?Qt.allowDots:!!t.allowDots,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Qt.charsetSentinel,delimiter:typeof t.delimiter>"u"?Qt.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Qt.encode,encoder:typeof t.encoder=="function"?t.encoder:Qt.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Qt.encodeValuesOnly,filter:a,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Qt.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Qt.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Qt.strictNullHandling}},eA=function(e,t){var r=e,n=JR(t),i,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):Ki(n.filter)&&(a=n.filter,i=a);var s=[];if(typeof r!="object"||r===null)return"";var o;t&&t.arrayFormat in Um?o=t.arrayFormat:t&&"indices"in t?o=t.indices?"indices":"repeat":o="indices";var l=Um[o];i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var u=0;u0?d+f:""},Ha=x0,Xf=Object.prototype.hasOwnProperty,tA=Array.isArray,Yt={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Ha.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},rA=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},$0=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},nA="utf8=%26%2310003%3B",iA="utf8=%E2%9C%93",aA=function(t,r){var n={},i=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,a=r.parameterLimit===1/0?void 0:r.parameterLimit,s=i.split(r.delimiter,a),o=-1,l,u=r.charset;if(r.charsetSentinel)for(l=0;l-1&&(h=tA(h)?[h]:h),Xf.call(n,p)?n[p]=Ha.combine(n[p],h):n[p]=h}return n},sA=function(e,t,r,n){for(var i=n?t:$0(t,r),a=e.length-1;a>=0;--a){var s,o=e[a];if(o==="[]"&&r.parseArrays)s=[].concat(i);else{s=r.plainObjects?Object.create(null):{};var l=o.charAt(0)==="["&&o.charAt(o.length-1)==="]"?o.slice(1,-1):o,u=parseInt(l,10);!r.parseArrays&&l===""?s={0:i}:!isNaN(u)&&o!==l&&String(u)===l&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(s=[],s[u]=i):l!=="__proto__"&&(s[l]=i)}i=s}return i},oA=function(t,r,n,i){if(!!t){var a=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,l=n.depth>0&&s.exec(a),u=l?a.slice(0,l.index):a,c=[];if(u){if(!n.plainObjects&&Xf.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var f=0;n.depth>0&&(l=o.exec(a))!==null&&f"u"?Yt.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Yt.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Yt.allowPrototypes,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Yt.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Yt.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Yt.comma,decoder:typeof t.decoder=="function"?t.decoder:Yt.decoder,delimiter:typeof t.delimiter=="string"||Ha.isRegExp(t.delimiter)?t.delimiter:Yt.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Yt.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Yt.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Yt.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Yt.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Yt.strictNullHandling}},uA=function(e,t){var r=lA(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?aA(e,r):e,i=r.plainObjects?Object.create(null):{},a=Object.keys(n),s=0;s"u"?!0:d,wn(function(p){var h=p.window,m=r.windowTitle&&r.windowTitle(r.read());Vm(m),r.latestAcknowledgedHistory=h.history.length})}return pA(e,[{key:"read",value:function(){return this.parseURL({qsModule:Wm,location:this.getLocation()})}},{key:"write",value:function(r){var n=this;wn(function(i){var a=i.window,s=n.createURL(r),o=n.windowTitle&&n.windowTitle(r);n.writeTimer&&clearTimeout(n.writeTimer),n.writeTimer=setTimeout(function(){Vm(o),n.shouldWrite(s)&&(n._push?n._push(s):a.history.pushState(r,o||"",s),n.latestAcknowledgedHistory=a.history.length),n.inPopState=!1,n.writeTimer=void 0},n.writeDelay)})}},{key:"onUpdate",value:function(r){var n=this;this._start&&this._start(function(){r(n.read())}),this._onPopState=function(){n.writeTimer&&(clearTimeout(n.writeTimer),n.writeTimer=void 0),n.inPopState=!0,r(n.read())},wn(function(i){var a=i.window;a.addEventListener("popstate",n._onPopState)})}},{key:"createURL",value:function(r){var n=this._createURL({qsModule:Wm,routeState:r,location:this.getLocation()});return n}},{key:"dispose",value:function(){var r=this;this._dispose&&this._dispose(),this.isDisposed=!0,wn(function(n){var i=n.window;r._onPopState&&i.removeEventListener("popstate",r._onPopState)}),this.writeTimer&&clearTimeout(this.writeTimer),this._cleanUrlOnDispose&&this.write({})}},{key:"start",value:function(){this.isDisposed=!1}},{key:"shouldWrite",value:function(r){var n=this;return wn(function(i){var a=i.window;if(n.isDisposed&&!n._cleanUrlOnDispose)return!1;var s=!(n.isDisposed&&n.latestAcknowledgedHistory!==a.history.length);return!n.inPopState&&s&&r!==a.location.href})}}]),e}();function gA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.createURL,r=t===void 0?function(h){var m=h.qsModule,v=h.routeState,g=h.location,y=g.protocol,_=g.hostname,b=g.port,P=b===void 0?"":b,k=g.pathname,A=g.hash,U=m.stringify(v),F=P===""?"":":".concat(P);return U?"".concat(y,"//").concat(_).concat(F).concat(k,"?").concat(U).concat(A):"".concat(y,"//").concat(_).concat(F).concat(k).concat(A)}:t,n=e.parseURL,i=n===void 0?function(h){var m=h.qsModule,v=h.location;return m.parse(v.search.slice(1),{arrayLimit:99})}:n,a=e.writeDelay,s=a===void 0?400:a,o=e.windowTitle,l=e.getLocation,u=l===void 0?function(){return wn(function(h){var m=h.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,c=e.start,f=e.dispose,d=e.push,p=e.cleanUrlOnDispose;return new vA({createURL:r,parseURL:i,writeDelay:s,windowTitle:o,getLocation:u,start:c,dispose:f,push:d,cleanUrlOnDispose:p})}function ho(e){return ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ho(e)}var yA=["configure"];function Ym(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wl(e){for(var t=1;t=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(r[n]=e[n]))}return r}function SA(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Qm(e){e.configure;var t=_A(e,yA);return t}function PA(){return{$$type:"ais.simple",stateToRoute:function(t){return Object.keys(t).reduce(function(r,n){return wl(wl({},r),{},Zf({},n,Qm(t[n])))},{})},routeToState:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(t).reduce(function(r,n){return wl(wl({},r),{},Zf({},n,Qm(t[n])))},{})}}}function po(e){return po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},po(e)}function zm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _l(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{},r=t.router,n=r===void 0?gA():r,i=t.stateMapping,a=i===void 0?PA():i,s=t.$$internal,o=s===void 0?!1:s;return function(l){var u=l.instantSearchInstance;function c(p){var h=u.mainIndex.getWidgets().length===0?u._initialUiState:u.mainIndex.getWidgetUiState({}),m=Object.keys(p).reduce(function(g,y){return _l(_l({},g),{},A0({},y,p[y]))},h),v=a.stateToRoute(m);return n.createURL(v)}u._createURL=c;var f=void 0,d=u._initialUiState;return{$$type:"ais.router({router:".concat(n.$$type||"__unknown__",", stateMapping:").concat(a.$$type||"__unknown__","})"),$$internal:o,onStateChange:function(h){var m=h.uiState,v=a.stateToRoute(m);(f===void 0||!rl(f,v))&&(n.write(v),f=v)},subscribe:function(){u._initialUiState=_l(_l({},d),a.routeToState(n.read())),n.onUpdate(function(h){u.mainIndex.getWidgets().length>0&&u.setUiState(a.routeToState(h))})},started:function(){var h;(h=n.start)===null||h===void 0||h.call(n)},unsubscribe:function(){n.dispose()}}}};function T0(e,t,r){var n=$s(t,t.mainIndex,t._initialUiState);e.forEach(function(i){var a={};if(i.getWidgetRenderState){var s=i.getWidgetRenderState(n);s&&s.widgetParams&&(a=s.widgetParams)}var o=Object.keys(a).filter(function(l){return a[l]!==void 0});r.widgets.push({type:i.$$type,widgetType:i.$$widgetType,params:o}),i.$$type==="ais.index"&&T0(i.getWidgets(),t,r)})}function RA(){return wn(function(e){var t,r,n=e.window;return((t=n.navigator)===null||t===void 0||(r=t.userAgent)===null||r===void 0?void 0:r.indexOf("Algolia Crawler"))>-1},{fallback:function(){return!1}})}function AA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.$$internal,r=t===void 0?!1:t;return function(n){var i=n.instantSearchInstance,a={widgets:[]},s=document.createElement("meta"),o=document.querySelector("head");return s.name="instantsearch:widgets",{$$type:"ais.metadata",$$internal:r,onStateChange:function(){},subscribe:function(){setTimeout(function(){var u=i.client;a.ua=u.transporter&&u.transporter.userAgent?u.transporter.userAgent.value:u._ua,T0(i.mainIndex.getWidgets(),i,a),i.middleware.forEach(function(c){return a.widgets.push({middleware:!0,type:c.instance.$$type,internal:c.instance.$$internal})}),s.content=JSON.stringify(a),o.appendChild(s)},0)},started:function(){},unsubscribe:function(){s.remove()}}}}const ut=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r},TA={name:"PbWelcomeHeader",data(){return{numberFormat:this.$filters.numberFormat}},computed:{guide(){return this.$store.state.config.urls.guide},site(){return this.$store.state.config.urls.pressbooks},totalBooksIndexed(){return this.$store.state.stats.numberOfBooksIndexed},totalNetworksIndexed(){return this.$store.state.stats.numberOfNetworksIndexed}},methods:{startTour(){this.sendInsight(["tour:opened"],"Start Tour Button Clicked"),this.$store.commit("showTour")},sendWelcomeCTAInsight(){this.sendInsight({insightsMethod:"convertedObjectIDs",payload:{eventName:"Welcome CTA Clicked",objectIDs:[`link:${this.site}`]}})}}},kA={"aria-labelledby":"welcome-section-title"},CA={class:"container mx-auto w-full lg:w-2/3 p-8"},EA={class:"font-serif leading-7 text-lg"},IA={"data-cy":"total-books-indexed"},DA={"data-cy":"total-networks-indexed"},jA={class:"flex items-center justify-center mt-8 mx-auto"},FA=["href"];function MA(e,t,r,n,i,a){return T(),W("section",kA,[O("div",CA,[t[5]||(t[5]=O("h1",{id:"welcome-section-title",class:"section-title text-4xl mb-8 font-bold text-center"}," Welcome to Pressbooks Directory ",-1)),O("p",EA,[t[2]||(t[2]=He(" Pressbooks Directory is a free, searchable catalog that includes ")),O("strong",IA,ge(i.numberFormat(a.totalBooksIndexed)),1),t[3]||(t[3]=He(" open access books published by ")),O("strong",DA,ge(i.numberFormat(a.totalNetworksIndexed)),1),t[4]||(t[4]=He(" organizations and networks using Pressbooks. It's easy to copy, revise, remix, and redistribute any openly licensed content found here using Pressbooks' publishing platform. Nearly all books are highly accessible, and many include interactive H5P learning activities to engage learners. "))]),O("div",jA,[O("button",{class:"border-pb-red rounded-full text-lg py-3 px-6 text-pb-red border-2 font-semibold mr-6",onClick:t[0]||(t[0]=(...s)=>a.startTour&&a.startTour(...s))}," Tour the Directory "),O("a",{href:a.site,target:"_blank",rel:"noopener",class:"inline-block text-center text-lg py-3 px-6 border-2 border-red-700 text-white bg-red-700 font-semibold rounded-full","data-cy":"learn-about-pressbooks",onClick:t[1]||(t[1]=(...s)=>a.sendWelcomeCTAInsight&&a.sendWelcomeCTAInsight(...s))}," Learn more about Pressbooks ",8,FA)])])])}const LA=ut(TA,[["render",MA]]),NA="/assets/images/icon_twitter.svg",HA="/assets/images/icon_linkedin.svg",UA="/assets/images/icon_youtube.svg",BA="/assets/images/ims-logo@2x.png",WA={},qA={class:"bg-pb-blue py-[70px]"},VA={class:"footer-container w-[calc(100%-80px)] lg:max-w-[1140px] mx-auto footer__wrap"},YA={class:"footer__lower pt-[35px] leading-[28px] w-full flex flex-col lg:flex-row lg:justify-between lg:items-end"},QA={class:"footer__nav--secondary flex lg:gap-[40px] order-2 lg:order-none flex-col lg:flex-row items-center justify-center lg:justify-end lg:items-end"},zA={class:"copyright"};function KA(e,t){const r=Fe("ais-powered-by");return T(),W("footer",qA,[O("div",VA,[t[5]||(t[5]=to('',1)),O("div",YA,[O("nav",QA,[O("div",zA,[Ae(r,{class:"text-center inline-block"}),t[0]||(t[0]=O("br",null,null,-1)),t[1]||(t[1]=He("\xA9 2023 Pressbooks "))]),t[2]||(t[2]=O("div",{class:"menu-footer-container"},[O("ul",{id:"footer-secondary-menu",class:"navbar-item"},[O("li",{id:"menu-item-13804",class:"menu-item menu-item-type-post_type menu-item-object-page menu-item-privacy-policy menu-item-13804"},[O("a",{rel:"privacy-policy",href:"https://pressbooks.com/privacy-policy/"},"Privacy Policy")])])],-1))]),t[3]||(t[3]=O("div",{class:"newsletter_subscription"},[O("form",{id:"mc-embedded-form",action:"https://pressbooks.us1.list-manage.com/subscribe/post?u=a260241aded0da249f7cdefa1&id=517f88d989",method:"post",class:"footer__form",target:"_blank",novalidate:""},[O("label",{class:"font-bold text-sm leading-8",for:"mce-EMAIL"},"Subscribe to Pressbooks' newsletter to receive news and updates about Pressbooks and our services."),O("div",{class:"footer__form__wrap flex items-end justify-center"},[O("input",{id:"mce-EMAIL",type:"email",value:"",name:"EMAIL",class:"email bg-transparent border-black text-[15px] leading-[17px] w-full font-black py-[18px] px-[16px]",placeholder:"Email address",required:""}),O("button",{type:"submit",class:"bg-transparent border border-black border-l-0 text-[15px] leading-[17px] px-[16px] py-[18px] font-bold uppercase tracking-[2px] hover:bg-black hover:text-white",form:"mc-embedded-form",value:"subscribe"}," Subscribe "),O("div",{style:{position:"absolute",left:"-5000px"},"aria-hidden":"true"},[O("input",{type:"text",name:"b_a260241aded0da249f7cdefa1_ba290fc915",tabindex:"-1",value:""})])])]),O("p",{class:"unsubscribe_notice mt-[16px]"},[He(" You can unsubscribe at any time. "),O("a",{href:"https://pressbooks.com/contact-pressbooks/",class:"underline"},"Contact us"),He(" for more information. ")])],-1)),t[4]||(t[4]=to('',1))])])])}const GA=ut(WA,[["render",KA]]),oc=function(e){document.querySelector(e).scrollIntoView({behavior:"smooth"})},XA={name:"PbCollectionCard",props:{card:{type:Object,default(){return{}}}},data(){return{truncateLimit:50,imageSize:{height:240}}},computed:{alias(){return this.$store.state.SClient.allowedFilters[this.card.facet].alias},truncatedTitle(){let e=this.card.name;return e.length>this.truncateLimit?`${e.substr(0,this.truncateLimit-1)}...`:e}},methods:{filter(){let e={...this.$route.query};oc("#books");const t="per_page"in e?2:1;if(e[this.alias]===this.card.name&&Object.entries(e).length===t)return;const{per_page:r}=e;this.sendClickInsight(),this.$router.replace({query:{[this.alias]:this.card.name,per_page:r}})},sendClickInsight(){this.sendFilterAppliedInsight([`${this.alias}:${this.card.name}`],"Collection visited")}}},ZA={class:"w-full h-full"},JA={class:"aspect-w-3 aspect-h-4 overflow-hidden rounded"},eT=["src"],tT={class:"text mt-4 px-2 font-semibold"};function rT(e,t,r,n,i,a){return T(),W("li",ZA,[O("a",{href:"#",class:"p-1 cursor-pointer h-full flex flex-col",onClick:t[0]||(t[0]=Se((...s)=>a.filter&&a.filter(...s),["prevent"]))},[O("div",JA,[O("img",{src:r.card.image,alt:"",class:"h-full w-full object-cover",role:"presentation"},null,8,eT)]),O("div",tT,ge(a.truncatedTitle),1)])])}const nT=ut(XA,[["render",rT]]),iT={name:"PbCollections",components:{PbCollectionCard:nT},data(){return{storeName:"collections",storeProperty:"collectionHeaderCardObjects",collectionCardsLimit:5}},mounted(){let e=this.$store.state.SClient.searchClient.initIndex(this.$store.state.SClient.indexName);this.$store.dispatch("getCollections",e)}},aT={key:0,class:"bg-pb-blue hidden md:block","data-cy":"collection-section","aria-labelledby":"collections-section-title"},sT={class:"mx-auto py-10 px-8 lg:max-w-[1140px]"},oT={class:"border-gray-300"},lT={class:"w-full mx-auto text-center"},uT={role:"list","aria-labelledby":"collections-section-title",class:"grid grid-cols-1 gap-y-3 md:grid-cols-5 md:gap-x-3"};function cT(e,t,r,n,i,a){const s=Fe("pb-collection-card");return e.$store.state[i.storeName][i.storeProperty].length>=5?(T(),W("section",aT,[O("div",sT,[O("div",oT,[O("div",lT,[t[0]||(t[0]=O("h2",{id:"collections-section-title",class:"section-title font-bold text-4xl mb-12"}," Curated Collections ",-1)),O("ul",uT,[(T(!0),W(ye,null,We(e.$store.state[i.storeName][i.storeProperty].slice(0,i.collectionCardsLimit),(o,l)=>(T(),Re(s,{key:l,card:o},null,8,["card"]))),128))])])])])])):ne("",!0)}const fT=ut(iT,[["render",cT]]),dT="/assets/images/logo-color.svg";var hT=function(){function e(t,r){r===void 0&&(r=[]),this._eventType=t,this._eventFunctions=r}return e.prototype.init=function(){var t=this;this._eventFunctions.forEach(function(r){typeof window<"u"&&window.addEventListener(t._eventType,r)})},e}(),yu=globalThis&&globalThis.__assign||function(){return yu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u")return!1;var t=Ir(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function $T(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},a=t.elements[r];!Br(a)||!Cn(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(s){var o=i[s];o===!1?a.removeAttribute(s):a.setAttribute(s,o===!0?"":o)}))})}function RT(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],a=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),o=s.reduce(function(l,u){return l[u]="",l},{});!Br(i)||!Cn(i)||(Object.assign(i.style,o),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}const AT={name:"applyStyles",enabled:!0,phase:"write",fn:$T,effect:RT,requires:["computeStyles"]};function $n(e){return e.split("-")[0]}var Zi=Math.max,Su=Math.min,Ba=Math.round;function Jf(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function j0(){return!/^((?!chrome|android).)*safari/i.test(Jf())}function Wa(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&Br(e)&&(i=e.offsetWidth>0&&Ba(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ba(n.height)/e.offsetHeight||1);var s=ra(e)?Ir(e):window,o=s.visualViewport,l=!j0()&&r,u=(n.left+(l&&o?o.offsetLeft:0))/i,c=(n.top+(l&&o?o.offsetTop:0))/a,f=n.width/i,d=n.height/a;return{width:f,height:d,top:c,right:u+f,bottom:c+d,left:u,x:u,y:c}}function xh(e){var t=Wa(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function F0(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Ph(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function qn(e){return Ir(e).getComputedStyle(e)}function TT(e){return["table","td","th"].indexOf(Cn(e))>=0}function Ei(e){return((ra(e)?e.ownerDocument:e.document)||window.document).documentElement}function lc(e){return Cn(e)==="html"?e:e.assignedSlot||e.parentNode||(Ph(e)?e.host:null)||Ei(e)}function Zm(e){return!Br(e)||qn(e).position==="fixed"?null:e.offsetParent}function kT(e){var t=/firefox/i.test(Jf()),r=/Trident/i.test(Jf());if(r&&Br(e)){var n=qn(e);if(n.position==="fixed")return null}var i=lc(e);for(Ph(i)&&(i=i.host);Br(i)&&["html","body"].indexOf(Cn(i))<0;){var a=qn(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function al(e){for(var t=Ir(e),r=Zm(e);r&&TT(r)&&qn(r).position==="static";)r=Zm(r);return r&&(Cn(r)==="html"||Cn(r)==="body"&&qn(r).position==="static")?t:r||kT(e)||t}function Oh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Hs(e,t,r){return Zi(e,Su(t,r))}function CT(e,t,r){var n=Hs(e,t,r);return n>r?r:n}function M0(){return{top:0,right:0,bottom:0,left:0}}function L0(e){return Object.assign({},M0(),e)}function N0(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var ET=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,L0(typeof t!="number"?t:N0(t,il))};function IT(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,o=$n(r.placement),l=Oh(o),u=[$r,qr].indexOf(o)>=0,c=u?"height":"width";if(!(!a||!s)){var f=ET(i.padding,r),d=xh(a),p=l==="y"?Or:$r,h=l==="y"?Wr:qr,m=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],v=s[l]-r.rects.reference[l],g=al(a),y=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,_=m/2-v/2,b=f[p],P=y-d[c]-f[h],k=y/2-d[c]/2+_,A=Hs(b,k,P),U=l;r.modifiersData[n]=(t={},t[U]=A,t.centerOffset=A-k,t)}}function DT(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!F0(t.elements.popper,i)||(t.elements.arrow=i))}const jT={name:"arrow",enabled:!0,phase:"main",fn:IT,effect:DT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qa(e){return e.split("-")[1]}var FT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function MT(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:Ba(r*i)/i||0,y:Ba(n*i)/i||0}}function Jm(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,o=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=s.x,p=d===void 0?0:d,h=s.y,m=h===void 0?0:h,v=typeof c=="function"?c({x:p,y:m}):{x:p,y:m};p=v.x,m=v.y;var g=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),_=$r,b=Or,P=window;if(u){var k=al(r),A="clientHeight",U="clientWidth";if(k===Ir(r)&&(k=Ei(r),qn(k).position!=="static"&&o==="absolute"&&(A="scrollHeight",U="scrollWidth")),k=k,i===Or||(i===$r||i===qr)&&a===mo){b=Wr;var F=f&&k===P&&P.visualViewport?P.visualViewport.height:k[A];m-=F-n.height,m*=l?1:-1}if(i===$r||(i===Or||i===Wr)&&a===mo){_=qr;var x=f&&k===P&&P.visualViewport?P.visualViewport.width:k[U];p-=x-n.width,p*=l?1:-1}}var I=Object.assign({position:o},u&&FT),M=c===!0?MT({x:p,y:m},Ir(r)):{x:p,y:m};if(p=M.x,m=M.y,l){var Z;return Object.assign({},I,(Z={},Z[b]=y?"0":"",Z[_]=g?"0":"",Z.transform=(P.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",Z))}return Object.assign({},I,(t={},t[b]=y?m+"px":"",t[_]=g?p+"px":"",t.transform="",t))}function LT(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,a=r.adaptive,s=a===void 0?!0:a,o=r.roundOffsets,l=o===void 0?!0:o,u={placement:$n(t.placement),variation:qa(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Jm(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Jm(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const NT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:LT,data:{}};var Sl={passive:!0};function HT(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,a=i===void 0?!0:i,s=n.resize,o=s===void 0?!0:s,l=Ir(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(c){c.addEventListener("scroll",r.update,Sl)}),o&&l.addEventListener("resize",r.update,Sl),function(){a&&u.forEach(function(c){c.removeEventListener("scroll",r.update,Sl)}),o&&l.removeEventListener("resize",r.update,Sl)}}const UT={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:HT,data:{}};var BT={left:"right",right:"left",bottom:"top",top:"bottom"};function Zl(e){return e.replace(/left|right|bottom|top/g,function(t){return BT[t]})}var WT={start:"end",end:"start"};function ev(e){return e.replace(/start|end/g,function(t){return WT[t]})}function $h(e){var t=Ir(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Rh(e){return Wa(Ei(e)).left+$h(e).scrollLeft}function qT(e,t){var r=Ir(e),n=Ei(e),i=r.visualViewport,a=n.clientWidth,s=n.clientHeight,o=0,l=0;if(i){a=i.width,s=i.height;var u=j0();(u||!u&&t==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}return{width:a,height:s,x:o+Rh(e),y:l}}function VT(e){var t,r=Ei(e),n=$h(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Zi(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Zi(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-n.scrollLeft+Rh(e),l=-n.scrollTop;return qn(i||r).direction==="rtl"&&(o+=Zi(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:o,y:l}}function Ah(e){var t=qn(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function H0(e){return["html","body","#document"].indexOf(Cn(e))>=0?e.ownerDocument.body:Br(e)&&Ah(e)?e:H0(lc(e))}function Us(e,t){var r;t===void 0&&(t=[]);var n=H0(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=Ir(n),s=i?[a].concat(a.visualViewport||[],Ah(n)?n:[]):n,o=t.concat(s);return i?o:o.concat(Us(lc(s)))}function ed(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function YT(e,t){var r=Wa(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function tv(e,t,r){return t===I0?ed(qT(e,r)):ra(t)?YT(t,r):ed(VT(Ei(e)))}function QT(e){var t=Us(lc(e)),r=["absolute","fixed"].indexOf(qn(e).position)>=0,n=r&&Br(e)?al(e):e;return ra(n)?t.filter(function(i){return ra(i)&&F0(i,n)&&Cn(i)!=="body"}):[]}function zT(e,t,r,n){var i=t==="clippingParents"?QT(e):[].concat(t),a=[].concat(i,[r]),s=a[0],o=a.reduce(function(l,u){var c=tv(e,u,n);return l.top=Zi(c.top,l.top),l.right=Su(c.right,l.right),l.bottom=Su(c.bottom,l.bottom),l.left=Zi(c.left,l.left),l},tv(e,s,n));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function U0(e){var t=e.reference,r=e.element,n=e.placement,i=n?$n(n):null,a=n?qa(n):null,s=t.x+t.width/2-r.width/2,o=t.y+t.height/2-r.height/2,l;switch(i){case Or:l={x:s,y:t.y-r.height};break;case Wr:l={x:s,y:t.y+t.height};break;case qr:l={x:t.x+t.width,y:o};break;case $r:l={x:t.x-r.width,y:o};break;default:l={x:t.x,y:t.y}}var u=i?Oh(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(a){case Ua:l[u]=l[u]-(t[c]/2-r[c]/2);break;case mo:l[u]=l[u]+(t[c]/2-r[c]/2);break}}return l}function vo(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,a=r.strategy,s=a===void 0?e.strategy:a,o=r.boundary,l=o===void 0?pT:o,u=r.rootBoundary,c=u===void 0?I0:u,f=r.elementContext,d=f===void 0?hs:f,p=r.altBoundary,h=p===void 0?!1:p,m=r.padding,v=m===void 0?0:m,g=L0(typeof v!="number"?v:N0(v,il)),y=d===hs?mT:hs,_=e.rects.popper,b=e.elements[h?y:d],P=zT(ra(b)?b:b.contextElement||Ei(e.elements.popper),l,c,s),k=Wa(e.elements.reference),A=U0({reference:k,element:_,strategy:"absolute",placement:i}),U=ed(Object.assign({},_,A)),F=d===hs?U:k,x={top:P.top-F.top+g.top,bottom:F.bottom-P.bottom+g.bottom,left:P.left-F.left+g.left,right:F.right-P.right+g.right},I=e.modifiersData.offset;if(d===hs&&I){var M=I[i];Object.keys(x).forEach(function(Z){var B=[qr,Wr].indexOf(Z)>=0?1:-1,R=[Or,Wr].indexOf(Z)>=0?"y":"x";x[Z]+=M[R]*B})}return x}function KT(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,a=r.rootBoundary,s=r.padding,o=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?D0:l,c=qa(n),f=c?o?Xm:Xm.filter(function(h){return qa(h)===c}):il,d=f.filter(function(h){return u.indexOf(h)>=0});d.length===0&&(d=f);var p=d.reduce(function(h,m){return h[m]=vo(e,{placement:m,boundary:i,rootBoundary:a,padding:s})[$n(m)],h},{});return Object.keys(p).sort(function(h,m){return p[h]-p[m]})}function GT(e){if($n(e)===Sh)return[];var t=Zl(e);return[ev(e),t,ev(t)]}function XT(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,s=r.altAxis,o=s===void 0?!0:s,l=r.fallbackPlacements,u=r.padding,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,p=r.flipVariations,h=p===void 0?!0:p,m=r.allowedAutoPlacements,v=t.options.placement,g=$n(v),y=g===v,_=l||(y||!h?[Zl(v)]:GT(v)),b=[v].concat(_).reduce(function(oe,ee){return oe.concat($n(ee)===Sh?KT(t,{placement:ee,boundary:c,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:m}):ee)},[]),P=t.rects.reference,k=t.rects.popper,A=new Map,U=!0,F=b[0],x=0;x=0,R=B?"width":"height",j=vo(t,{placement:I,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),D=B?Z?qr:$r:Z?Wr:Or;P[R]>k[R]&&(D=Zl(D));var L=Zl(D),$=[];if(a&&$.push(j[M]<=0),o&&$.push(j[D]<=0,j[L]<=0),$.every(function(oe){return oe})){F=I,U=!1;break}A.set(I,$)}if(U)for(var w=h?3:1,Y=function(ee){var V=b.find(function(K){var H=A.get(K);if(H)return H.slice(0,ee).every(function(E){return E})});if(V)return F=V,"break"},X=w;X>0;X--){var ae=Y(X);if(ae==="break")break}t.placement!==F&&(t.modifiersData[n]._skip=!0,t.placement=F,t.reset=!0)}}const ZT={name:"flip",enabled:!0,phase:"main",fn:XT,requiresIfExists:["offset"],data:{_skip:!1}};function rv(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function nv(e){return[Or,qr,Wr,$r].some(function(t){return e[t]>=0})}function JT(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,s=vo(t,{elementContext:"reference"}),o=vo(t,{altBoundary:!0}),l=rv(s,n),u=rv(o,i,a),c=nv(l),f=nv(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const ek={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:JT};function tk(e,t,r){var n=$n(e),i=[$r,Or].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=a[0],o=a[1];return s=s||0,o=(o||0)*i,[$r,qr].indexOf(n)>=0?{x:o,y:s}:{x:s,y:o}}function rk(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,s=D0.reduce(function(c,f){return c[f]=tk(f,t.rects,a),c},{}),o=s[t.placement],l=o.x,u=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=s}const nk={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:rk};function ik(e){var t=e.state,r=e.name;t.modifiersData[r]=U0({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ak={name:"popperOffsets",enabled:!0,phase:"read",fn:ik,data:{}};function sk(e){return e==="x"?"y":"x"}function ok(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=i===void 0?!0:i,s=r.altAxis,o=s===void 0?!1:s,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,f=r.padding,d=r.tether,p=d===void 0?!0:d,h=r.tetherOffset,m=h===void 0?0:h,v=vo(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),g=$n(t.placement),y=qa(t.placement),_=!y,b=Oh(g),P=sk(b),k=t.modifiersData.popperOffsets,A=t.rects.reference,U=t.rects.popper,F=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,x=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(!!k){if(a){var Z,B=b==="y"?Or:$r,R=b==="y"?Wr:qr,j=b==="y"?"height":"width",D=k[b],L=D+v[B],$=D-v[R],w=p?-U[j]/2:0,Y=y===Ua?A[j]:U[j],X=y===Ua?-U[j]:-A[j],ae=t.elements.arrow,oe=p&&ae?xh(ae):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:M0(),V=ee[B],K=ee[R],H=Hs(0,A[j],oe[j]),E=_?A[j]/2-w-H-V-x.mainAxis:Y-H-V-x.mainAxis,q=_?-A[j]/2+w+H+K+x.mainAxis:X+H+K+x.mainAxis,G=t.elements.arrow&&al(t.elements.arrow),Q=G?b==="y"?G.clientTop||0:G.clientLeft||0:0,S=(Z=I==null?void 0:I[b])!=null?Z:0,C=D+E-S-Q,N=D+q-S,re=Hs(p?Su(L,C):L,D,p?Zi($,N):$);k[b]=re,M[b]=re-D}if(o){var ie,ue=b==="x"?Or:$r,pe=b==="x"?Wr:qr,fe=k[P],de=P==="y"?"height":"width",ce=fe+v[ue],Pe=fe-v[pe],ve=[Or,$r].indexOf(g)!==-1,xe=(ie=I==null?void 0:I[P])!=null?ie:0,Me=ve?ce:fe-A[de]-U[de]-xe+x.altAxis,Ce=ve?fe+A[de]+U[de]-xe-x.altAxis:Pe,z=p&&ve?CT(Me,fe,Ce):Hs(p?Me:ce,fe,p?Ce:Pe);k[P]=z,M[P]=z-fe}t.modifiersData[n]=M}}const lk={name:"preventOverflow",enabled:!0,phase:"main",fn:ok,requiresIfExists:["offset"]};function uk(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ck(e){return e===Ir(e)||!Br(e)?$h(e):uk(e)}function fk(e){var t=e.getBoundingClientRect(),r=Ba(t.width)/e.offsetWidth||1,n=Ba(t.height)/e.offsetHeight||1;return r!==1||n!==1}function dk(e,t,r){r===void 0&&(r=!1);var n=Br(t),i=Br(t)&&fk(t),a=Ei(t),s=Wa(e,i,r),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Cn(t)!=="body"||Ah(a))&&(o=ck(t)),Br(t)?(l=Wa(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Rh(a))),{x:s.left+o.scrollLeft-l.x,y:s.top+o.scrollTop-l.y,width:s.width,height:s.height}}function hk(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function i(a){r.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(o){if(!r.has(o)){var l=t.get(o);l&&i(l)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||i(a)}),n}function pk(e){var t=hk(e);return OT.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function mk(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function vk(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var iv={placement:"bottom",modifiers:[],strategy:"absolute"};function av(){for(var e=arguments.length,t=new Array(e),r=0;r{t.value="ontouchstart"in window||navigator.maxTouchPoints>0,window.addEventListener("keydown",i)}),Ri(()=>{window.removeEventListener("keydown",i)});const r=be({products:!1,plans:!1,resources:!1,about:!1}),n=()=>{Object.keys(r.value).forEach(p=>{r.value[p]=!1})},i=p=>{p.key==="Escape"&&n()},a=p=>r.value[p],s=p=>{r.value[p]=!0},o=p=>{r.value[p]=!1},l=p=>{r.value[p]=!r.value[p]},u=p=>{const h=document.querySelector(`#${p}`).previousElementSibling;h&&h.focus(),o(p)},c=p=>{var m;p==="products"&&document.getElementById("logo").focus(),o(p);const h=(m=document.querySelector(`#${p}`).closest("li").previousElementSibling)==null?void 0:m.querySelector("a");h&&h.focus()},f=document.getElementById("navbar-top"),d=document.getElementById("toggle-navbar-top");return new yh(f,d),(p,h)=>(T(),W("header",_k,[O("nav",Sk,[O("div",Pk,[h[47]||(h[47]=to('',2)),O("div",xk,[O("ul",Ok,[O("li",{class:"group relative",role:"menuitem",onMouseleave:h[8]||(h[8]=m=>o("products"))},[O("a",{href:"#","aria-haspopup":"true","aria-expanded":"false",class:"flex gap-0.5 items-center py-2 pl-3 pr-4 text-pb-dark-blue rounded hover:bg-gray-100 lg:hover:bg-transparent lg:border-0 lg:hover:text-pb-red lg:p-0 font-semibold text-[18px]",onKeydown:[h[0]||(h[0]=je(Se(m=>l("products"),["prevent"]),["enter"])),h[1]||(h[1]=je(Se(m=>l("products"),["prevent"]),["space"])),h[4]||(h[4]=je(Se(m=>c("products"),["shift","prevent"]),["tab"]))],onFocus:h[2]||(h[2]=m=>s("products")),onMouseover:h[3]||(h[3]=m=>!t.value.value&&s("products")),onClick:h[5]||(h[5]=Se(m=>t.value.value&&l("products"),["prevent"]))},h[36]||(h[36]=[He(" Products "),O("span",{class:"ml-1"},[O("svg",{class:"size-3",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 17 17"},[O("g"),O("path",{d:"M16.354 5.075l-7.855 7.854-7.853-7.854 0.707-0.707 7.145 7.146 7.148-7.147 0.708 0.708z",fill:"#000000"})])],-1)]),32),Gt(O("ul",$k,[O("li",Rk,[O("a",{href:"https://pressbooks.com/enterprise/",class:"text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red",onKeydown:h[6]||(h[6]=je(Se(m=>u("products"),["shift","prevent"]),["tab"]))},"Enterprise",32)]),h[37]||(h[37]=O("li",{role:"menuitem"},[O("a",{href:"https://pressbooks.com/self-publisher/",class:"text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"},"Self-Publisher")],-1)),O("li",Ak,[O("a",{href:"/",class:"text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red",onBlur:h[7]||(h[7]=m=>o("products"))},"Pressbooks Directory",32)])],512),[[Gr,a("products")]])],32),O("li",{class:"group relative",onMouseleave:h[17]||(h[17]=m=>o("plans"))},[O("a",{"aria-haspopup":"true","aria-expanded":"false",href:"#",class:"flex gap-0.5 items-center py-2 pl-3 pr-4 text-pb-dark-blue rounded hover:bg-gray-100 lg:hover:bg-transparent lg:border-0 lg:hover:text-pb-red lg:p-0 font-semibold text-[18px]",onKeydown:[h[9]||(h[9]=je(Se(m=>l("plans"),["prevent"]),["enter"])),h[10]||(h[10]=je(Se(m=>l("plans"),["prevent"]),["space"])),h[13]||(h[13]=je(Se(m=>c("plans"),["shift","prevent"]),["tab"]))],onFocus:h[11]||(h[11]=m=>s("plans")),onMouseover:h[12]||(h[12]=m=>!t.value.value&&s("plans")),onClick:h[14]||(h[14]=Se(m=>t.value.value&&l("plans"),["prevent"]))},h[38]||(h[38]=[He(" Plans & Pricing "),O("span",{class:"ml-1"},[O("svg",{class:"size-3",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 17 17"},[O("g"),O("path",{d:"M16.354 5.075l-7.855 7.854-7.853-7.854 0.707-0.707 7.145 7.146 7.148-7.147 0.708 0.708z",fill:"#000000"})])],-1)]),32),Gt(O("ul",Tk,[O("li",kk,[O("a",{href:"https://pressbooks.com/educational-institutions-plans-and-pricing/",class:"text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red",onKeydown:h[15]||(h[15]=je(Se(m=>u("plans"),["shift","prevent"]),["tab"]))},"Enterprise Networks",32)]),O("li",Ck,[O("a",{href:"https://pressbooks.com/self-publisher-plans-and-pricing/",class:"text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red",onBlur:h[16]||(h[16]=m=>o("plans"))},"Self-Publisher Plans",32)])],512),[[Gr,a("plans")]])],32),O("li",{class:"group relative",onMouseleave:h[26]||(h[26]=m=>o("resources"))},[O("a",{"aria-haspopup":"true","aria-expanded":"false",href:"#",class:"flex gap-0.5 items-center py-2 pl-3 pr-4 text-pb-dark-blue rounded hover:bg-gray-100 lg:hover:bg-transparent lg:border-0 lg:hover:text-pb-red lg:p-0 font-semibold text-[18px]",onKeydown:[h[18]||(h[18]=je(Se(m=>l("resources"),["prevent"]),["enter"])),h[19]||(h[19]=je(Se(m=>l("resources"),["prevent"]),["space"])),h[22]||(h[22]=je(Se(m=>c("resources"),["shift","prevent"]),["tab"]))],onFocus:h[20]||(h[20]=m=>s("resources")),onMouseover:h[21]||(h[21]=m=>!t.value.value&&s("resources")),onClick:h[23]||(h[23]=Se(m=>t.value.value&&l("resources"),["prevent"]))},h[39]||(h[39]=[He(" Resources "),O("span",{class:"ml-1"},[O("svg",{class:"size-3",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 17 17"},[O("g"),O("path",{d:"M16.354 5.075l-7.855 7.854-7.853-7.854 0.707-0.707 7.145 7.146 7.148-7.147 0.708 0.708z",fill:"#000000"})])],-1)]),32),Gt(O("ul",Ek,[O("li",Ik,[O("a",{href:"https://pressbooks.com/collections-hub/",class:"text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red",onKeydown:h[24]||(h[24]=je(Se(m=>u("resources"),["shift","prevent"]),["tab"]))},"Collections Hub",32)]),h[40]||(h[40]=O("li",{role:"menuitem"},[O("a",{href:"https://pressbooks.com/category/success-stories/",class:"text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"},"Success Stories")],-1)),h[41]||(h[41]=O("li",{role:"menuitem"},[O("a",{href:"https://pressbooks.com/pressbooks-blog/",class:"text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"},"Blog")],-1)),h[42]||(h[42]=O("li",{role:"menuitem"},[O("a",{href:"/",class:"text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"},"Pressbooks Directory")],-1)),h[43]||(h[43]=O("li",{role:"menuitem"},[O("a",{href:"https://pressbooks.com/support/",class:"text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"},"Support Guides")],-1)),O("li",Dk,[O("a",{href:"https://pressbooks.com/webinars/",class:"text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red",onBlur:h[25]||(h[25]=m=>o("resources"))},"Events & Webinars",32)])],512),[[Gr,a("resources")]])],32),O("li",{class:"group relative",onMouseleave:h[35]||(h[35]=m=>o("about"))},[O("a",{"aria-haspopup":"true","aria-expanded":"false",href:"#",class:"flex gap-0.5 items-center py-2 pl-3 pr-4 text-pb-dark-blue rounded hover:bg-gray-100 lg:hover:bg-transparent lg:border-0 lg:hover:text-pb-red lg:p-0 font-semibold text-[18px]",onKeydown:[h[27]||(h[27]=je(Se(m=>l("about"),["prevent"]),["enter"])),h[28]||(h[28]=je(Se(m=>l("about"),["prevent"]),["space"])),h[31]||(h[31]=je(Se(m=>c("about"),["shift","prevent"]),["tab"]))],onFocus:h[29]||(h[29]=m=>s("about")),onMouseover:h[30]||(h[30]=m=>!t.value.value&&s("about")),onClick:h[32]||(h[32]=Se(m=>t.value.value&&l("about"),["prevent"]))},h[44]||(h[44]=[He(" About "),O("span",{class:"ml-1"},[O("svg",{class:"size-3",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 17 17"},[O("g"),O("path",{d:"M16.354 5.075l-7.855 7.854-7.853-7.854 0.707-0.707 7.145 7.146 7.148-7.147 0.708 0.708z",fill:"#000000"})])],-1)]),32),Gt(O("ul",jk,[O("li",Fk,[O("a",{href:"https://pressbooks.com/about/",class:"text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red",onKeydown:h[33]||(h[33]=je(Se(m=>u("about"),["shift","prevent"]),["tab"]))},"About Pressbooks",32)]),h[45]||(h[45]=O("li",{role:"menuitem"},[O("a",{href:"https://pressbooks.com/pressbooks-team/",class:"text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red"},"Our Team")],-1)),O("li",Mk,[O("a",{href:"https://pressbooks.com/category/inside-pressbooks/",class:"text-gray-500 font-semibold text-[18px] lg:hover:text-pb-red",onBlur:h[34]||(h[34]=m=>o("about"))},"Inside Pressbooks",32)])],512),[[Gr,a("about")]])],32),h[46]||(h[46]=O("li",{class:"lg:inline-block lg:text-center lg:border-2 lg:border-red-700 lg:text-white lg:bg-red-700 lg:rounded-full lg:leading-[20px] lg:ml-24"},[O("a",{href:"https://pressbooks.com/request-a-pressbooks-demo/",class:"block py-2 pl-3 pr-4 lg:text-white rounded hover:bg-gray-100 lg:hover:bg-transparent lg:border-0 lg:py-3 lg:px-6 font-semibold"},"Request a Demo")],-1))])])])])]))}};var z0={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(nl,function(){var r=1e3,n=6e4,i=36e5,a="millisecond",s="second",o="minute",l="hour",u="day",c="week",f="month",d="quarter",p="year",h="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var R=["th","st","nd","rd"],j=B%100;return"["+B+(R[(j-20)%10]||R[j]||R[0])+"]"}},_=function(B,R,j){var D=String(B);return!D||D.length>=R?B:""+Array(R+1-D.length).join(j)+B},b={s:_,z:function(B){var R=-B.utcOffset(),j=Math.abs(R),D=Math.floor(j/60),L=j%60;return(R<=0?"+":"-")+_(D,2,"0")+":"+_(L,2,"0")},m:function B(R,j){if(R.date()1)return B(w[0])}else{var Y=R.name;k[Y]=R,L=Y}return!D&&L&&(P=L),L||!D&&P},x=function(B,R){if(U(B))return B.clone();var j=typeof R=="object"?R:{};return j.date=B,j.args=arguments,new M(j)},I=b;I.l=F,I.i=U,I.w=function(B,R){return x(B,{locale:R.$L,utc:R.$u,x:R.$x,$offset:R.$offset})};var M=function(){function B(j){this.$L=F(j.locale,null,!0),this.parse(j),this.$x=this.$x||j.x||{},this[A]=!0}var R=B.prototype;return R.parse=function(j){this.$d=function(D){var L=D.date,$=D.utc;if(L===null)return new Date(NaN);if(I.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var w=L.match(v);if(w){var Y=w[2]-1||0,X=(w[7]||"0").substring(0,3);return $?new Date(Date.UTC(w[1],Y,w[3]||1,w[4]||0,w[5]||0,w[6]||0,X)):new Date(w[1],Y,w[3]||1,w[4]||0,w[5]||0,w[6]||0,X)}}return new Date(L)}(j),this.init()},R.init=function(){var j=this.$d;this.$y=j.getFullYear(),this.$M=j.getMonth(),this.$D=j.getDate(),this.$W=j.getDay(),this.$H=j.getHours(),this.$m=j.getMinutes(),this.$s=j.getSeconds(),this.$ms=j.getMilliseconds()},R.$utils=function(){return I},R.isValid=function(){return this.$d.toString()!==m},R.isSame=function(j,D){var L=x(j);return this.startOf(D)<=L&&L<=this.endOf(D)},R.isAfter=function(j,D){return x(j)i.opened=!i.opened,["prevent"]))},[se(e.$slots,"title"),Ae(s,{class:te(["h-6 w-6 text-red-800 transform duration-150",i.opened&&"rotate-180"])},null,8,["class"])],10,qk)]),Ae(Ai,{"enter-active-class":"transform transition-all ease-out duration-150","enter-from-class":"opacity-0 translate-y-full","enter-to-class":"opacity-100 translate-y-0","leave-active-class":"transform transition-all ease-out duration-150","leave-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-0"},{default:Ie(()=>[Gt(O("div",Vk,[se(e.$slots,"content")],512),[[Gr,i.opened]])]),_:3})])}const Mh=ut(Wk,[["render",Yk]]);function Vr(e){return Vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vr(e)}function Ue(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function ke(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function Ne(e){ke(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Vr(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Nn(e,t){ke(2,arguments);var r=Ne(e),n=Ue(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function Jr(e,t){ke(2,arguments);var r=Ne(e),n=Ue(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var i=r.getDate(),a=new Date(r.getTime());a.setMonth(r.getMonth()+n+1,0);var s=a.getDate();return i>=s?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}function X0(e,t){if(ke(2,arguments),!t||Vr(t)!=="object")return new Date(NaN);var r=t.years?Ue(t.years):0,n=t.months?Ue(t.months):0,i=t.weeks?Ue(t.weeks):0,a=t.days?Ue(t.days):0,s=t.hours?Ue(t.hours):0,o=t.minutes?Ue(t.minutes):0,l=t.seconds?Ue(t.seconds):0,u=Ne(e),c=n||r?Jr(u,n+r*12):u,f=a||i?Nn(c,a+i*7):c,d=o+s*60,p=l+d*60,h=p*1e3,m=new Date(f.getTime()+h);return m}function Qk(e,t){ke(2,arguments);var r=Ne(e).getTime(),n=Ue(t);return new Date(r+n)}var zk={};function En(){return zk}function na(e,t){var r,n,i,a,s,o,l,u;ke(1,arguments);var c=En(),f=Ue((r=(n=(i=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(s=t.locale)===null||s===void 0||(o=s.options)===null||o===void 0?void 0:o.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&n!==void 0?n:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Ne(e),p=d.getDay(),h=(p=i.getTime()?r+1:t.getTime()>=s.getTime()?r:r-1}function Gk(e){ke(1,arguments);var t=Kk(e),r=new Date(0);r.setFullYear(t,0,4),r.setHours(0,0,0,0);var n=Au(r);return n}function Tu(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function ov(e){ke(1,arguments);var t=Ne(e);return t.setHours(0,0,0,0),t}var Xk=864e5;function Zk(e,t){ke(2,arguments);var r=ov(e),n=ov(t),i=r.getTime()-Tu(r),a=n.getTime()-Tu(n);return Math.round((i-a)/Xk)}function Jk(e,t){ke(2,arguments);var r=Ue(t),n=r*3;return Jr(e,n)}function Lh(e,t){ke(2,arguments);var r=Ue(t);return Jr(e,r*12)}var Nh=6e4,Hh=36e5,eC=1e3;function Z0(e){return ke(1,arguments),e instanceof Date||Vr(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Ws(e){if(ke(1,arguments),!Z0(e)&&typeof e!="number")return!1;var t=Ne(e);return!isNaN(Number(t))}function lv(e){ke(1,arguments);var t=Ne(e),r=Math.floor(t.getMonth()/3)+1;return r}function J0(e,t){var r;ke(1,arguments);var n=e||{},i=Ne(n.start),a=Ne(n.end),s=a.getTime();if(!(i.getTime()<=s))throw new RangeError("Invalid interval");var o=[],l=i;l.setHours(0,0,0,0);var u=Number((r=t==null?void 0:t.step)!==null&&r!==void 0?r:1);if(u<1||isNaN(u))throw new RangeError("`options.step` must be a number greater than 1");for(;l.getTime()<=s;)o.push(Ne(l)),l.setDate(l.getDate()+u),l.setHours(0,0,0,0);return o}function go(e){ke(1,arguments);var t=Ne(e),r=t.getMonth(),n=r-r%3;return t.setMonth(n,1),t.setHours(0,0,0,0),t}function tC(e){ke(1,arguments);var t=e||{},r=Ne(t.start),n=Ne(t.end),i=n.getTime();if(!(r.getTime()<=i))throw new RangeError("Invalid interval");var a=go(r),s=go(n);i=s.getTime();for(var o=[],l=a;l.getTime()<=i;)o.push(Ne(l)),l=Jk(l,1);return o}function rC(e){ke(1,arguments);var t=Ne(e),r=t.getFullYear();return t.setFullYear(r+1,0,0),t.setHours(23,59,59,999),t}function nC(e){ke(1,arguments);var t=Ne(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function iC(e,t){var r,n,i,a,s,o,l,u;ke(1,arguments);var c=En(),f=Ue((r=(n=(i=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(s=t.locale)===null||s===void 0||(o=s.options)===null||o===void 0?void 0:o.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&n!==void 0?n:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Ne(e),p=d.getDay(),h=(p=i.getTime()?r+1:t.getTime()>=s.getTime()?r:r-1}function oC(e){ke(1,arguments);var t=tw(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=Va(r);return n}var lC=6048e5;function rw(e){ke(1,arguments);var t=Ne(e),r=Va(t).getTime()-oC(t).getTime();return Math.round(r/lC)+1}function ia(e,t){var r,n,i,a,s,o,l,u;ke(1,arguments);var c=En(),f=Ue((r=(n=(i=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(s=t.locale)===null||s===void 0||(o=s.options)===null||o===void 0?void 0:o.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&n!==void 0?n:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Ne(e),p=d.getUTCDay(),h=(p=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(f+1,0,p),h.setUTCHours(0,0,0,0);var m=ia(h,t),v=new Date(0);v.setUTCFullYear(f,0,p),v.setUTCHours(0,0,0,0);var g=ia(v,t);return c.getTime()>=m.getTime()?f+1:c.getTime()>=g.getTime()?f:f-1}function uC(e,t){var r,n,i,a,s,o,l,u;ke(1,arguments);var c=En(),f=Ue((r=(n=(i=(a=t==null?void 0:t.firstWeekContainsDate)!==null&&a!==void 0?a:t==null||(s=t.locale)===null||s===void 0||(o=s.options)===null||o===void 0?void 0:o.firstWeekContainsDate)!==null&&i!==void 0?i:c.firstWeekContainsDate)!==null&&n!==void 0?n:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=Uh(e,t),p=new Date(0);p.setUTCFullYear(d,0,f),p.setUTCHours(0,0,0,0);var h=ia(p,t);return h}var cC=6048e5;function nw(e,t){ke(1,arguments);var r=Ne(e),n=ia(r,t).getTime()-uC(r,t).getTime();return Math.round(n/cC)+1}function dt(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length0?n:1-n;return dt(r==="yy"?i%100:i,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):dt(n+1,2)},d:function(t,r){return dt(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return dt(t.getUTCHours()%12||12,r.length)},H:function(t,r){return dt(t.getUTCHours(),r.length)},m:function(t,r){return dt(t.getUTCMinutes(),r.length)},s:function(t,r){return dt(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,i=t.getUTCMilliseconds(),a=Math.floor(i*Math.pow(10,n-3));return dt(a,r.length)}};const Gn=fC;var da={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},dC={G:function(t,r,n){var i=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){var i=t.getUTCFullYear(),a=i>0?i:1-i;return n.ordinalNumber(a,{unit:"year"})}return Gn.y(t,r)},Y:function(t,r,n,i){var a=Uh(t,i),s=a>0?a:1-a;if(r==="YY"){var o=s%100;return dt(o,2)}return r==="Yo"?n.ordinalNumber(s,{unit:"year"}):dt(s,r.length)},R:function(t,r){var n=tw(t);return dt(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return dt(n,r.length)},Q:function(t,r,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(i);case"QQ":return dt(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,r,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(i);case"qq":return dt(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,r,n){var i=t.getUTCMonth();switch(r){case"M":case"MM":return Gn.M(t,r);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(t,r,n){var i=t.getUTCMonth();switch(r){case"L":return String(i+1);case"LL":return dt(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(t,r,n,i){var a=nw(t,i);return r==="wo"?n.ordinalNumber(a,{unit:"week"}):dt(a,r.length)},I:function(t,r,n){var i=rw(t);return r==="Io"?n.ordinalNumber(i,{unit:"week"}):dt(i,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):Gn.d(t,r)},D:function(t,r,n){var i=sC(t);return r==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):dt(i,r.length)},E:function(t,r,n){var i=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(t,r,n,i){var a=t.getUTCDay(),s=(a-i.weekStartsOn+8)%7||7;switch(r){case"e":return String(s);case"ee":return dt(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(t,r,n,i){var a=t.getUTCDay(),s=(a-i.weekStartsOn+8)%7||7;switch(r){case"c":return String(s);case"cc":return dt(s,r.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(t,r,n){var i=t.getUTCDay(),a=i===0?7:i;switch(r){case"i":return String(a);case"ii":return dt(a,r.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(t,r,n){var i=t.getUTCHours(),a=i/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(t,r,n){var i=t.getUTCHours(),a;switch(i===12?a=da.noon:i===0?a=da.midnight:a=i/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,r,n){var i=t.getUTCHours(),a;switch(i>=17?a=da.evening:i>=12?a=da.afternoon:i>=4?a=da.morning:a=da.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return Gn.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Gn.H(t,r)},K:function(t,r,n){var i=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(i,{unit:"hour"}):dt(i,r.length)},k:function(t,r,n){var i=t.getUTCHours();return i===0&&(i=24),r==="ko"?n.ordinalNumber(i,{unit:"hour"}):dt(i,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Gn.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Gn.s(t,r)},S:function(t,r){return Gn.S(t,r)},X:function(t,r,n,i){var a=i._originalDate||t,s=a.getTimezoneOffset();if(s===0)return"Z";switch(r){case"X":return fv(s);case"XXXX":case"XX":return Bi(s);case"XXXXX":case"XXX":default:return Bi(s,":")}},x:function(t,r,n,i){var a=i._originalDate||t,s=a.getTimezoneOffset();switch(r){case"x":return fv(s);case"xxxx":case"xx":return Bi(s);case"xxxxx":case"xxx":default:return Bi(s,":")}},O:function(t,r,n,i){var a=i._originalDate||t,s=a.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+cv(s,":");case"OOOO":default:return"GMT"+Bi(s,":")}},z:function(t,r,n,i){var a=i._originalDate||t,s=a.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+cv(s,":");case"zzzz":default:return"GMT"+Bi(s,":")}},t:function(t,r,n,i){var a=i._originalDate||t,s=Math.floor(a.getTime()/1e3);return dt(s,r.length)},T:function(t,r,n,i){var a=i._originalDate||t,s=a.getTime();return dt(s,r.length)}};function cv(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),a=n%60;if(a===0)return r+String(i);var s=t||"";return r+String(i)+s+dt(a,2)}function fv(e,t){if(e%60===0){var r=e>0?"-":"+";return r+dt(Math.abs(e)/60,2)}return Bi(e,t)}function Bi(e,t){var r=t||"",n=e>0?"-":"+",i=Math.abs(e),a=dt(Math.floor(i/60),2),s=dt(i%60,2);return n+a+r+s}const hC=dC;var dv=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},iw=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},pC=function(t,r){var n=t.match(/(P+)(p+)?/)||[],i=n[1],a=n[2];if(!a)return dv(t,r);var s;switch(i){case"P":s=r.dateTime({width:"short"});break;case"PP":s=r.dateTime({width:"medium"});break;case"PPP":s=r.dateTime({width:"long"});break;case"PPPP":default:s=r.dateTime({width:"full"});break}return s.replace("{{date}}",dv(i,r)).replace("{{time}}",iw(a,r))},mC={p:iw,P:pC};const nd=mC;var vC=["D","DD"],gC=["YY","YYYY"];function aw(e){return vC.indexOf(e)!==-1}function sw(e){return gC.indexOf(e)!==-1}function ku(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var yC={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},bC=function(t,r,n){var i,a=yC[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};const wC=bC;function Hc(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var _C={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},SC={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},PC={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},xC={date:Hc({formats:_C,defaultWidth:"full"}),time:Hc({formats:SC,defaultWidth:"full"}),dateTime:Hc({formats:PC,defaultWidth:"full"})};const OC=xC;var $C={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},RC=function(t,r,n,i){return $C[t]};const AC=RC;function ps(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",i;if(n==="formatting"&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,s=r!=null&&r.width?String(r.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{var o=e.defaultWidth,l=r!=null&&r.width?String(r.width):e.defaultWidth;i=e.values[l]||e.values[o]}var u=e.argumentCallback?e.argumentCallback(t):t;return i[u]}}var TC={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},kC={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},CC={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},EC={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},IC={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},DC={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},jC=function(t,r){var n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},FC={ordinalNumber:jC,era:ps({values:TC,defaultWidth:"wide"}),quarter:ps({values:kC,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ps({values:CC,defaultWidth:"wide"}),day:ps({values:EC,defaultWidth:"wide"}),dayPeriod:ps({values:IC,defaultWidth:"wide",formattingValues:DC,defaultFormattingWidth:"wide"})};const MC=FC;function ms(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var s=a[0],o=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(o)?NC(o,function(f){return f.test(s)}):LC(o,function(f){return f.test(s)}),u;u=e.valueCallback?e.valueCallback(l):l,u=r.valueCallback?r.valueCallback(u):u;var c=t.slice(s.length);return{value:u,rest:c}}}function LC(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function NC(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],a=t.match(e.parsePattern);if(!a)return null;var s=e.valueCallback?e.valueCallback(a[0]):a[0];s=r.valueCallback?r.valueCallback(s):s;var o=t.slice(i.length);return{value:s,rest:o}}}var UC=/^(\d+)(th|st|nd|rd)?/i,BC=/\d+/i,WC={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},qC={any:[/^b/i,/^(a|c)/i]},VC={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},YC={any:[/1/i,/2/i,/3/i,/4/i]},QC={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},zC={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},KC={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},GC={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},XC={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ZC={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},JC={ordinalNumber:HC({matchPattern:UC,parsePattern:BC,valueCallback:function(t){return parseInt(t,10)}}),era:ms({matchPatterns:WC,defaultMatchWidth:"wide",parsePatterns:qC,defaultParseWidth:"any"}),quarter:ms({matchPatterns:VC,defaultMatchWidth:"wide",parsePatterns:YC,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:ms({matchPatterns:QC,defaultMatchWidth:"wide",parsePatterns:zC,defaultParseWidth:"any"}),day:ms({matchPatterns:KC,defaultMatchWidth:"wide",parsePatterns:GC,defaultParseWidth:"any"}),dayPeriod:ms({matchPatterns:XC,defaultMatchWidth:"any",parsePatterns:ZC,defaultParseWidth:"any"})};const e2=JC;var t2={code:"en-US",formatDistance:wC,formatLong:OC,formatRelative:AC,localize:MC,match:e2,options:{weekStartsOn:0,firstWeekContainsDate:1}};const ow=t2;var r2=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,n2=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,i2=/^'([^]*?)'?$/,a2=/''/g,s2=/[a-zA-Z]/;function pi(e,t,r){var n,i,a,s,o,l,u,c,f,d,p,h,m,v,g,y,_,b;ke(2,arguments);var P=String(t),k=En(),A=(n=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:k.locale)!==null&&n!==void 0?n:ow,U=Ue((a=(s=(o=(l=r==null?void 0:r.firstWeekContainsDate)!==null&&l!==void 0?l:r==null||(u=r.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&o!==void 0?o:k.firstWeekContainsDate)!==null&&s!==void 0?s:(f=k.locale)===null||f===void 0||(d=f.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(U>=1&&U<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var F=Ue((p=(h=(m=(v=r==null?void 0:r.weekStartsOn)!==null&&v!==void 0?v:r==null||(g=r.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&m!==void 0?m:k.weekStartsOn)!==null&&h!==void 0?h:(_=k.locale)===null||_===void 0||(b=_.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&p!==void 0?p:0);if(!(F>=0&&F<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!A.localize)throw new RangeError("locale must contain localize property");if(!A.formatLong)throw new RangeError("locale must contain formatLong property");var x=Ne(e);if(!Ws(x))throw new RangeError("Invalid time value");var I=Tu(x),M=ew(x,I),Z={firstWeekContainsDate:U,weekStartsOn:F,locale:A,_originalDate:x},B=P.match(n2).map(function(R){var j=R[0];if(j==="p"||j==="P"){var D=nd[j];return D(R,A.formatLong)}return R}).join("").match(r2).map(function(R){if(R==="''")return"'";var j=R[0];if(j==="'")return o2(R);var D=hC[j];if(D)return!(r!=null&&r.useAdditionalWeekYearTokens)&&sw(R)&&ku(R,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&aw(R)&&ku(R,t,String(e)),D(M,R,A.localize,Z);if(j.match(s2))throw new RangeError("Format string contains an unescaped latin alphabet character `"+j+"`");return R}).join("");return B}function o2(e){var t=e.match(i2);return t?t[1].replace(a2,"'"):e}function l2(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function u2(e){ke(1,arguments);var t=Ne(e),r=t.getDay();return r}function c2(e){ke(1,arguments);var t=Ne(e),r=t.getFullYear(),n=t.getMonth(),i=new Date(0);return i.setFullYear(r,n+1,0),i.setHours(0,0,0,0),i.getDate()}function en(e){ke(1,arguments);var t=Ne(e),r=t.getHours();return r}var f2=6048e5;function d2(e){ke(1,arguments);var t=Ne(e),r=Au(t).getTime()-Gk(t).getTime();return Math.round(r/f2)+1}function Rn(e){ke(1,arguments);var t=Ne(e),r=t.getMinutes();return r}function Je(e){ke(1,arguments);var t=Ne(e),r=t.getMonth();return r}function Ya(e){ke(1,arguments);var t=Ne(e),r=t.getSeconds();return r}function h2(e,t){var r,n,i,a,s,o,l,u;ke(1,arguments);var c=Ne(e),f=c.getFullYear(),d=En(),p=Ue((r=(n=(i=(a=t==null?void 0:t.firstWeekContainsDate)!==null&&a!==void 0?a:t==null||(s=t.locale)===null||s===void 0||(o=s.options)===null||o===void 0?void 0:o.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&n!==void 0?n:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setFullYear(f+1,0,p),h.setHours(0,0,0,0);var m=na(h,t),v=new Date(0);v.setFullYear(f,0,p),v.setHours(0,0,0,0);var g=na(v,t);return c.getTime()>=m.getTime()?f+1:c.getTime()>=g.getTime()?f:f-1}function p2(e,t){var r,n,i,a,s,o,l,u;ke(1,arguments);var c=En(),f=Ue((r=(n=(i=(a=t==null?void 0:t.firstWeekContainsDate)!==null&&a!==void 0?a:t==null||(s=t.locale)===null||s===void 0||(o=s.options)===null||o===void 0?void 0:o.firstWeekContainsDate)!==null&&i!==void 0?i:c.firstWeekContainsDate)!==null&&n!==void 0?n:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=h2(e,t),p=new Date(0);p.setFullYear(d,0,f),p.setHours(0,0,0,0);var h=na(p,t);return h}var m2=6048e5;function v2(e,t){ke(1,arguments);var r=Ne(e),n=na(r,t).getTime()-p2(r,t).getTime();return Math.round(n/m2)+1}function Ye(e){return ke(1,arguments),Ne(e).getFullYear()}function yo(e,t){ke(2,arguments);var r=Ne(e),n=Ne(t);return r.getTime()>n.getTime()}function bo(e,t){ke(2,arguments);var r=Ne(e),n=Ne(t);return r.getTime()e.length)&&(t=e.length);for(var r=0,n=Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,s=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return s=u.done,u},e:function(u){o=!0,a=u},f:function(){try{s||r.return==null||r.return()}finally{if(o)throw a}}}}function Te(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function id(e,t){return id=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},id(e,t)}function et(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&id(e,t)}function Cu(e){return Cu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Cu(e)}function lw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lw=function(){return!!e})()}function y2(e,t){if(t&&(Vr(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Te(e)}function tt(e){var t=lw();return function(){var r,n=Cu(e);if(t){var i=Cu(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return y2(this,r)}}function Ge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b2(e,t){if(Vr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Vr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uw(e){var t=b2(e,"string");return Vr(t)=="symbol"?t:t+""}function mv(e,t){for(var r=0;r0,n=r?t:1-t,i;if(n<=50)i=e||100;else{var a=n+50,s=Math.floor(a/100)*100,o=e>=a%100;i=e+s-(o?100:0)}return r?i:1-i}function hw(e){return e%400===0||e%4===0&&e%100!==0}var x2=function(e){et(r,e);var t=tt(r);function r(){var n;Ge(this,r);for(var i=arguments.length,a=new Array(i),s=0;s0}},{key:"set",value:function(i,a,s){var o=i.getUTCFullYear();if(s.isTwoDigitYear){var l=dw(s.year,o);return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}var u=!("era"in a)||a.era===1?s.year:1-s.year;return i.setUTCFullYear(u,0,1),i.setUTCHours(0,0,0,0),i}}]),r}(at),O2=function(e){et(r,e);var t=tt(r);function r(){var n;Ge(this,r);for(var i=arguments.length,a=new Array(i),s=0;s0}},{key:"set",value:function(i,a,s,o){var l=Uh(i,o);if(s.isTwoDigitYear){var u=dw(s.year,l);return i.setUTCFullYear(u,0,o.firstWeekContainsDate),i.setUTCHours(0,0,0,0),ia(i,o)}var c=!("era"in a)||a.era===1?s.year:1-s.year;return i.setUTCFullYear(c,0,o.firstWeekContainsDate),i.setUTCHours(0,0,0,0),ia(i,o)}}]),r}(at),$2=function(e){et(r,e);var t=tt(r);function r(){var n;Ge(this,r);for(var i=arguments.length,a=new Array(i),s=0;s=1&&a<=4}},{key:"set",value:function(i,a,s){return i.setUTCMonth((s-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),r}(at),T2=function(e){et(r,e);var t=tt(r);function r(){var n;Ge(this,r);for(var i=arguments.length,a=new Array(i),s=0;s=1&&a<=4}},{key:"set",value:function(i,a,s){return i.setUTCMonth((s-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),r}(at),k2=function(e){et(r,e);var t=tt(r);function r(){var n;Ge(this,r);for(var i=arguments.length,a=new Array(i),s=0;s=0&&a<=11}},{key:"set",value:function(i,a,s){return i.setUTCMonth(s,1),i.setUTCHours(0,0,0,0),i}}]),r}(at),C2=function(e){et(r,e);var t=tt(r);function r(){var n;Ge(this,r);for(var i=arguments.length,a=new Array(i),s=0;s=0&&a<=11}},{key:"set",value:function(i,a,s){return i.setUTCMonth(s,1),i.setUTCHours(0,0,0,0),i}}]),r}(at);function E2(e,t,r){ke(2,arguments);var n=Ne(e),i=Ue(t),a=nw(n,r)-i;return n.setUTCDate(n.getUTCDate()-a*7),n}var I2=function(e){et(r,e);var t=tt(r);function r(){var n;Ge(this,r);for(var i=arguments.length,a=new Array(i),s=0;s=1&&a<=53}},{key:"set",value:function(i,a,s,o){return ia(E2(i,s,o),o)}}]),r}(at);function D2(e,t){ke(2,arguments);var r=Ne(e),n=Ue(t),i=rw(r)-n;return r.setUTCDate(r.getUTCDate()-i*7),r}var j2=function(e){et(r,e);var t=tt(r);function r(){var n;Ge(this,r);for(var i=arguments.length,a=new Array(i),s=0;s=1&&a<=53}},{key:"set",value:function(i,a,s){return Va(D2(i,s))}}]),r}(at),F2=[31,28,31,30,31,30,31,31,30,31,30,31],M2=[31,29,31,30,31,30,31,31,30,31,30,31],L2=function(e){et(r,e);var t=tt(r);function r(){var n;Ge(this,r);for(var i=arguments.length,a=new Array(i),s=0;s=1&&a<=M2[l]:a>=1&&a<=F2[l]}},{key:"set",value:function(i,a,s){return i.setUTCDate(s),i.setUTCHours(0,0,0,0),i}}]),r}(at),N2=function(e){et(r,e);var t=tt(r);function r(){var n;Ge(this,r);for(var i=arguments.length,a=new Array(i),s=0;s=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(i,a,s){return i.setUTCMonth(0,s),i.setUTCHours(0,0,0,0),i}}]),r}(at);function Wh(e,t,r){var n,i,a,s,o,l,u,c;ke(2,arguments);var f=En(),d=Ue((n=(i=(a=(s=r==null?void 0:r.weekStartsOn)!==null&&s!==void 0?s:r==null||(o=r.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&i!==void 0?i:(u=f.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Ne(e),h=Ue(t),m=p.getUTCDay(),v=h%7,g=(v+7)%7,y=(g=0&&a<=6}},{key:"set",value:function(i,a,s,o){return i=Wh(i,s,o),i.setUTCHours(0,0,0,0),i}}]),r}(at),U2=function(e){et(r,e);var t=tt(r);function r(){var n;Ge(this,r);for(var i=arguments.length,a=new Array(i),s=0;s=0&&a<=6}},{key:"set",value:function(i,a,s,o){return i=Wh(i,s,o),i.setUTCHours(0,0,0,0),i}}]),r}(at),B2=function(e){et(r,e);var t=tt(r);function r(){var n;Ge(this,r);for(var i=arguments.length,a=new Array(i),s=0;s=0&&a<=6}},{key:"set",value:function(i,a,s,o){return i=Wh(i,s,o),i.setUTCHours(0,0,0,0),i}}]),r}(at);function W2(e,t){ke(2,arguments);var r=Ue(t);r%7===0&&(r=r-7);var n=1,i=Ne(e),a=i.getUTCDay(),s=r%7,o=(s+7)%7,l=(o=1&&a<=7}},{key:"set",value:function(i,a,s){return i=W2(i,s),i.setUTCHours(0,0,0,0),i}}]),r}(at),V2=function(e){et(r,e);var t=tt(r);function r(){var n;Ge(this,r);for(var i=arguments.length,a=new Array(i),s=0;s=1&&a<=12}},{key:"set",value:function(i,a,s){var o=i.getUTCHours()>=12;return o&&s<12?i.setUTCHours(s+12,0,0,0):!o&&s===12?i.setUTCHours(0,0,0,0):i.setUTCHours(s,0,0,0),i}}]),r}(at),K2=function(e){et(r,e);var t=tt(r);function r(){var n;Ge(this,r);for(var i=arguments.length,a=new Array(i),s=0;s=0&&a<=23}},{key:"set",value:function(i,a,s){return i.setUTCHours(s,0,0,0),i}}]),r}(at),G2=function(e){et(r,e);var t=tt(r);function r(){var n;Ge(this,r);for(var i=arguments.length,a=new Array(i),s=0;s=0&&a<=11}},{key:"set",value:function(i,a,s){var o=i.getUTCHours()>=12;return o&&s<12?i.setUTCHours(s+12,0,0,0):i.setUTCHours(s,0,0,0),i}}]),r}(at),X2=function(e){et(r,e);var t=tt(r);function r(){var n;Ge(this,r);for(var i=arguments.length,a=new Array(i),s=0;s=1&&a<=24}},{key:"set",value:function(i,a,s){var o=s<=24?s%24:s;return i.setUTCHours(o,0,0,0),i}}]),r}(at),Z2=function(e){et(r,e);var t=tt(r);function r(){var n;Ge(this,r);for(var i=arguments.length,a=new Array(i),s=0;s=0&&a<=59}},{key:"set",value:function(i,a,s){return i.setUTCMinutes(s,0,0),i}}]),r}(at),J2=function(e){et(r,e);var t=tt(r);function r(){var n;Ge(this,r);for(var i=arguments.length,a=new Array(i),s=0;s=0&&a<=59}},{key:"set",value:function(i,a,s){return i.setUTCSeconds(s,0),i}}]),r}(at),eE=function(e){et(r,e);var t=tt(r);function r(){var n;Ge(this,r);for(var i=arguments.length,a=new Array(i),s=0;s=1&&x<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var I=Ue((h=(m=(v=(g=n==null?void 0:n.weekStartsOn)!==null&&g!==void 0?g:n==null||(y=n.locale)===null||y===void 0||(_=y.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&v!==void 0?v:U.weekStartsOn)!==null&&m!==void 0?m:(b=U.locale)===null||b===void 0||(P=b.options)===null||P===void 0?void 0:P.weekStartsOn)!==null&&h!==void 0?h:0);if(!(I>=0&&I<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(A==="")return k===""?Ne(r):new Date(NaN);var M={firstWeekContainsDate:x,weekStartsOn:I,locale:F},Z=[new S2],B=A.match(oE).map(function(H){var E=H[0];if(E in nd){var q=nd[E];return q(H,F.formatLong)}return H}).join("").match(sE),R=[],j=pv(B),D;try{var L=function(){var E=D.value;!(n!=null&&n.useAdditionalWeekYearTokens)&&sw(E)&&ku(E,A,e),!(n!=null&&n.useAdditionalDayOfYearTokens)&&aw(E)&&ku(E,A,e);var q=E[0],G=aE[q];if(G){var Q=G.incompatibleTokens;if(Array.isArray(Q)){var S=R.find(function(N){return Q.includes(N.token)||N.token===q});if(S)throw new RangeError("The format string mustn't contain `".concat(S.fullToken,"` and `").concat(E,"` at the same time"))}else if(G.incompatibleTokens==="*"&&R.length>0)throw new RangeError("The format string mustn't contain `".concat(E,"` and any other token at the same time"));R.push({token:q,fullToken:E});var C=G.run(k,E,F.match,M);if(!C)return{v:new Date(NaN)};Z.push(C.setter),k=C.rest}else{if(q.match(fE))throw new RangeError("Format string contains an unescaped latin alphabet character `"+q+"`");if(E==="''"?E="'":q==="'"&&(E=dE(E)),k.indexOf(E)===0)k=k.slice(E.length);else return{v:new Date(NaN)}}};for(j.s();!(D=j.n()).done;){var $=L();if(Vr($)==="object")return $.v}}catch(H){j.e(H)}finally{j.f()}if(k.length>0&&cE.test(k))return new Date(NaN);var w=Z.map(function(H){return H.priority}).sort(function(H,E){return E-H}).filter(function(H,E,q){return q.indexOf(H)===E}).map(function(H){return Z.filter(function(E){return E.priority===H}).sort(function(E,q){return q.subPriority-E.subPriority})}).map(function(H){return H[0]}),Y=Ne(r);if(isNaN(Y.getTime()))return new Date(NaN);var X=ew(Y,Tu(Y)),ae={},oe=pv(w),ee;try{for(oe.s();!(ee=oe.n()).done;){var V=ee.value;if(!V.validate(X,M))return new Date(NaN);var K=V.set(X,ae,M);Array.isArray(K)?(X=K[0],l2(ae,K[1])):X=K}}catch(H){oe.e(H)}finally{oe.f()}return X}function dE(e){return e.match(lE)[1].replace(uE,"'")}function vv(e,t){ke(2,arguments);var r=go(e),n=go(t);return r.getTime()===n.getTime()}function hE(e,t){ke(2,arguments);var r=Ue(t);return Nn(e,-r)}function pE(e,t){var r;ke(1,arguments);var n=Ue((r=t==null?void 0:t.additionalDigits)!==null&&r!==void 0?r:2);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=yE(e),a;if(i.date){var s=bE(i.date,n);a=wE(s.restDateString,s.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var o=a.getTime(),l=0,u;if(i.time&&(l=_E(i.time),isNaN(l)))return new Date(NaN);if(i.timezone){if(u=SE(i.timezone),isNaN(u))return new Date(NaN)}else{var c=new Date(o+l),f=new Date(0);return f.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),f.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),f}return new Date(o+l+u)}var Al={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},mE=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,vE=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,gE=/^([+-])(\d{2})(?::?(\d{2}))?$/;function yE(e){var t={},r=e.split(Al.dateTimeDelimiter),n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],Al.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Al.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){var i=Al.timezone.exec(n);i?(t.time=n.replace(i[1],""),t.timezone=i[1]):t.time=n}return t}function bE(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var i=n[1]?parseInt(n[1]):null,a=n[2]?parseInt(n[2]):null;return{year:a===null?i:a*100,restDateString:e.slice((n[1]||n[2]).length)}}function wE(e,t){if(t===null)return new Date(NaN);var r=e.match(mE);if(!r)return new Date(NaN);var n=!!r[4],i=vs(r[1]),a=vs(r[2])-1,s=vs(r[3]),o=vs(r[4]),l=vs(r[5])-1;if(n)return RE(t,o,l)?PE(t,o,l):new Date(NaN);var u=new Date(0);return!OE(t,a,s)||!$E(t,i)?new Date(NaN):(u.setUTCFullYear(t,a,Math.max(i,s)),u)}function vs(e){return e?parseInt(e):1}function _E(e){var t=e.match(vE);if(!t)return NaN;var r=Uc(t[1]),n=Uc(t[2]),i=Uc(t[3]);return AE(r,n,i)?r*Hh+n*Nh+i*1e3:NaN}function Uc(e){return e&&parseFloat(e.replace(",","."))||0}function SE(e){if(e==="Z")return 0;var t=e.match(gE);if(!t)return 0;var r=t[1]==="+"?-1:1,n=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return TE(n,i)?r*(n*Hh+i*Nh):NaN}function PE(e,t,r){var n=new Date(0);n.setUTCFullYear(e,0,4);var i=n.getUTCDay()||7,a=(t-1)*7+r+1-i;return n.setUTCDate(n.getUTCDate()+a),n}var xE=[31,null,31,30,31,30,31,31,30,31,30,31];function pw(e){return e%400===0||e%4===0&&e%100!==0}function OE(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(xE[t]||(pw(e)?29:28))}function $E(e,t){return t>=1&&t<=(pw(e)?366:365)}function RE(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function AE(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function TE(e,t){return t>=0&&t<=59}function mw(e,t){ke(2,arguments);var r=Ne(e),n=Ue(t),i=r.getFullYear(),a=r.getDate(),s=new Date(0);s.setFullYear(i,n,15),s.setHours(0,0,0,0);var o=c2(s);return r.setMonth(n,Math.min(a,o)),r}function Ot(e,t){if(ke(2,arguments),Vr(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var r=Ne(e);return isNaN(r.getTime())?new Date(NaN):(t.year!=null&&r.setFullYear(t.year),t.month!=null&&(r=mw(r,t.month)),t.date!=null&&r.setDate(Ue(t.date)),t.hours!=null&&r.setHours(Ue(t.hours)),t.minutes!=null&&r.setMinutes(Ue(t.minutes)),t.seconds!=null&&r.setSeconds(Ue(t.seconds)),t.milliseconds!=null&&r.setMilliseconds(Ue(t.milliseconds)),r)}function vw(e,t){ke(2,arguments);var r=Ne(e),n=Ue(t);return r.setHours(n),r}function qh(e,t){ke(2,arguments);var r=Ne(e),n=Ue(t);return r.setMilliseconds(n),r}function gw(e,t){ke(2,arguments);var r=Ne(e),n=Ue(t);return r.setMinutes(n),r}function Vh(e,t){ke(2,arguments);var r=Ne(e),n=Ue(t);return r.setSeconds(n),r}function On(e,t){ke(2,arguments);var r=Ne(e),n=Ue(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function Qa(e,t){ke(2,arguments);var r=Ue(t);return Jr(e,-r)}function kE(e,t){if(ke(2,arguments),!t||Vr(t)!=="object")return new Date(NaN);var r=t.years?Ue(t.years):0,n=t.months?Ue(t.months):0,i=t.weeks?Ue(t.weeks):0,a=t.days?Ue(t.days):0,s=t.hours?Ue(t.hours):0,o=t.minutes?Ue(t.minutes):0,l=t.seconds?Ue(t.seconds):0,u=Qa(e,n+r*12),c=hE(u,a+i*7),f=o+s*60,d=l+f*60,p=d*1e3,h=new Date(c.getTime()-p);return h}function yw(e,t){ke(2,arguments);var r=Ue(t);return Lh(e,-r)}function is(){return T(),W("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[O("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),O("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),O("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),O("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}is.compatConfig={MODE:3};function bw(){return T(),W("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[O("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),O("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}bw.compatConfig={MODE:3};function Yh(){return T(),W("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[O("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}Yh.compatConfig={MODE:3};function Qh(){return T(),W("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[O("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}Qh.compatConfig={MODE:3};function zh(){return T(),W("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[O("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),O("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}zh.compatConfig={MODE:3};function Kh(){return T(),W("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[O("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}Kh.compatConfig={MODE:3};function Gh(){return T(),W("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[O("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}Gh.compatConfig={MODE:3};function Xh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ww={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(ww);var CE=ww.exports,sd={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){if(n===null||n===!0||n===!1)return NaN;var i=Number(n);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}e.exports=t.default})(sd,sd.exports);var EE=sd.exports;const IE=Xh(EE);var od={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){var i=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return i.setUTCFullYear(n.getFullYear()),n.getTime()-i.getTime()}e.exports=t.default})(od,od.exports);var DE=od.exports;const gv=Xh(DE);function jE(e,t){var r=NE(t);return r.formatToParts?ME(r,e):LE(r,e)}var FE={year:0,month:1,day:2,hour:3,minute:4,second:5};function ME(e,t){try{for(var r=e.formatToParts(t),n=[],i=0;i=0&&(n[a]=parseInt(r[i].value,10))}return n}catch(s){if(s instanceof RangeError)return[NaN];throw s}}function LE(e,t){var r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r);return[n[3],n[1],n[2],n[4],n[5],n[6]]}var Bc={};function NE(e){if(!Bc[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),r=t==="06/25/2014, 00:00:00"||t==="\u200E06\u200E/\u200E25\u200E/\u200E2014\u200E \u200E00\u200E:\u200E00\u200E:\u200E00";Bc[e]=r?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Bc[e]}function Zh(e,t,r,n,i,a,s){var o=new Date(0);return o.setUTCFullYear(e,t,r),o.setUTCHours(n,i,a,s),o}var yv=36e5,HE=6e4,Wc={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function Jh(e,t,r){var n,i;if(e===""||(n=Wc.timezoneZ.exec(e),n))return 0;var a;if(n=Wc.timezoneHH.exec(e),n)return a=parseInt(n[1],10),bv(a)?-(a*yv):NaN;if(n=Wc.timezoneHHMM.exec(e),n){a=parseInt(n[1],10);var s=parseInt(n[2],10);return bv(a,s)?(i=Math.abs(a)*yv+s*HE,a>0?-i:i):NaN}if(WE(e)){t=new Date(t||Date.now());var o=r?t:UE(t),l=ld(o,e),u=r?l:BE(t,l,e);return-u}return NaN}function UE(e){return Zh(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function ld(e,t){var r=jE(e,t),n=Zh(r[0],r[1]-1,r[2],r[3]%24,r[4],r[5],0).getTime(),i=e.getTime(),a=i%1e3;return i-=a>=0?a:1e3+a,n-i}function BE(e,t,r){var n=e.getTime(),i=n-t,a=ld(new Date(i),r);if(t===a)return t;i-=a-t;var s=ld(new Date(i),r);return a===s?a:Math.max(a,s)}function bv(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var wv={};function WE(e){if(wv[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),wv[e]=!0,!0}catch{return!1}}var _w=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,qc=36e5,_v=6e4,qE=2,vr={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:_w};function ud(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var r=t||{},n=r.additionalDigits==null?qE:IE(r.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=VE(e),a=YE(i.date,n),s=a.year,o=a.restDateString,l=QE(o,s);if(isNaN(l))return new Date(NaN);if(l){var u=l.getTime(),c=0,f;if(i.time&&(c=zE(i.time),isNaN(c)))return new Date(NaN);if(i.timeZone||r.timeZone){if(f=Jh(i.timeZone||r.timeZone,new Date(u+c)),isNaN(f))return new Date(NaN)}else f=gv(new Date(u+c)),f=gv(new Date(u+c+f));return new Date(u+c+f)}else return new Date(NaN)}function VE(e){var t={},r=vr.dateTimePattern.exec(e),n;if(r?(t.date=r[1],n=r[3]):(r=vr.datePattern.exec(e),r?(t.date=r[1],n=r[2]):(t.date=null,n=e)),n){var i=vr.timeZone.exec(n);i?(t.time=n.replace(i[1],""),t.timeZone=i[1].trim()):t.time=n}return t}function YE(e,t){var r=vr.YYY[t],n=vr.YYYYY[t],i;if(i=vr.YYYY.exec(e)||n.exec(e),i){var a=i[1];return{year:parseInt(a,10),restDateString:e.slice(a.length)}}if(i=vr.YY.exec(e)||r.exec(e),i){var s=i[1];return{year:parseInt(s,10)*100,restDateString:e.slice(s.length)}}return{year:null}}function QE(e,t){if(t===null)return null;var r,n,i,a;if(e.length===0)return n=new Date(0),n.setUTCFullYear(t),n;if(r=vr.MM.exec(e),r)return n=new Date(0),i=parseInt(r[1],10)-1,Pv(t,i)?(n.setUTCFullYear(t,i),n):new Date(NaN);if(r=vr.DDD.exec(e),r){n=new Date(0);var s=parseInt(r[1],10);return XE(t,s)?(n.setUTCFullYear(t,0,s),n):new Date(NaN)}if(r=vr.MMDD.exec(e),r){n=new Date(0),i=parseInt(r[1],10)-1;var o=parseInt(r[2],10);return Pv(t,i,o)?(n.setUTCFullYear(t,i,o),n):new Date(NaN)}if(r=vr.Www.exec(e),r)return a=parseInt(r[1],10)-1,xv(t,a)?Sv(t,a):new Date(NaN);if(r=vr.WwwD.exec(e),r){a=parseInt(r[1],10)-1;var l=parseInt(r[2],10)-1;return xv(t,a,l)?Sv(t,a,l):new Date(NaN)}return null}function zE(e){var t,r,n;if(t=vr.HH.exec(e),t)return r=parseFloat(t[1].replace(",",".")),Vc(r)?r%24*qc:NaN;if(t=vr.HHMM.exec(e),t)return r=parseInt(t[1],10),n=parseFloat(t[2].replace(",",".")),Vc(r,n)?r%24*qc+n*_v:NaN;if(t=vr.HHMMSS.exec(e),t){r=parseInt(t[1],10),n=parseInt(t[2],10);var i=parseFloat(t[3].replace(",","."));return Vc(r,n,i)?r%24*qc+n*_v+i*1e3:NaN}return null}function Sv(e,t,r){t=t||0,r=r||0;var n=new Date(0);n.setUTCFullYear(e,0,4);var i=n.getUTCDay()||7,a=t*7+r+1-i;return n.setUTCDate(n.getUTCDate()+a),n}var KE=[31,28,31,30,31,30,31,31,30,31,30,31],GE=[31,29,31,30,31,30,31,31,30,31,30,31];function Sw(e){return e%400===0||e%4===0&&e%100!==0}function Pv(e,t,r){if(t<0||t>11)return!1;if(r!=null){if(r<1)return!1;var n=Sw(e);if(n&&r>GE[t]||!n&&r>KE[t])return!1}return!0}function XE(e,t){if(t<1)return!1;var r=Sw(e);return!(r&&t>366||!r&&t>365)}function xv(e,t,r){return!(t<0||t>52||r!=null&&(r<0||r>6))}function Vc(e,t,r){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||r!=null&&(r<0||r>=60))}var cd={exports:{}},fd={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,i){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a]);return n}e.exports=t.default})(fd,fd.exports);var ZE=fd.exports;(function(e,t){var r=CE.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(ZE);function i(a){return(0,n.default)({},a)}e.exports=t.default})(cd,cd.exports);var JE=cd.exports;const eI=Xh(JE);function tI(e,t,r){var n=ud(e,r),i=Jh(t,n,!0),a=new Date(n.getTime()-i),s=new Date(0);return s.setFullYear(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),s.setHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()),s}function rI(e,t,r){if(typeof e=="string"&&!e.match(_w)){var n=eI(r);return n.timeZone=t,ud(e,n)}var i=ud(e,r),a=Zh(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()).getTime(),s=Jh(t,new Date(a));return new Date(a+s)}function Ov(e){return t=>new Intl.DateTimeFormat(e,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${t}T00:00:00+00:00`)).slice(0,2)}function nI(e){return t=>pi(new Date(`2017-01-0${t}T00:00:00+00:00`),"EEEEEE",{locale:e})}const iI=(e,t,r)=>{const n=[1,2,3,4,5,6,7];let i;if(e!==null)try{i=n.map(nI(e))}catch{i=n.map(Ov(t))}else i=n.map(Ov(t));const a=i.slice(0,r),s=i.slice(r+1,i.length);return[i[r]].concat(...s).concat(...a)},ep=(e,t)=>{const r=[];for(let n=+e[0];n<=+e[1];n++)r.push({value:+n,text:`${n}`});return t?r.reverse():r},Pw=(e,t,r)=>{const n=[1,2,3,4,5,6,7,8,9,10,11,12].map(a=>{const s=a<10?`0${a}`:a;return new Date(`2017-${s}-01T00:00:00+00:00`)});if(e!==null)try{const a=r==="long"?"MMMM":"MMM";return n.map((s,o)=>{const l=pi(s,a,{locale:e});return{text:l.charAt(0).toUpperCase()+l.substring(1),value:o}})}catch{}const i=new Intl.DateTimeFormat(t,{month:r,timeZone:"UTC"});return n.map((a,s)=>{const o=i.format(a);return{text:o.charAt(0).toUpperCase()+o.substring(1),value:s}})},aI=e=>[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][e],Lt=e=>{const t=J(e);return t!=null&&t.$el?t==null?void 0:t.$el:t},sI=e=>Object.assign({type:"dot"},e),xw=e=>Array.isArray(e)?!!e[0]&&!!e[1]:!1,Iu={prop:e=>`"${e}" prop must be enabled!`,dateArr:e=>`You need to use array as "model-value" binding in order to support "${e}"`},Wt=e=>e,$v=e=>e===0?e:!e||isNaN(+e)?null:+e,Rv=e=>e===null,oI=e=>{if(e)return[...e.querySelectorAll("input, button, select, textarea, a[href]")][0]},lI=e=>{const t=[],r=n=>n.filter(i=>i);for(let n=0;n{const n=r!=null,i=t!=null;if(!n&&!i)return!1;const a=+r,s=+t;return n&&i?+e>a||+ea:i?+elI(e).map(r=>r.map(n=>{const{active:i,disabled:a,isBetween:s,highlighted:o}=t(n);return{...n,active:i,disabled:a,className:{dp__overlay_cell_active:i,dp__overlay_cell:!i,dp__overlay_cell_disabled:a,dp__overlay_cell_pad:!0,dp__overlay_cell_active_disabled:a&&i,dp__cell_in_between:s,"dp--highlighted":o}}})),mi=(e,t,r=!1)=>{e&&t.allowStopPropagation&&(r&&e.stopImmediatePropagation(),e.stopPropagation())},uI=()=>["a[href]","area[href]","input:not([disabled]):not([type='hidden'])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[tabindex]:not([tabindex='-1'])","[data-datepicker-instance]"].join(", ");function cI(e,t){let r=[...document.querySelectorAll(uI())];r=r.filter(i=>!e.contains(i)||i.hasAttribute("data-datepicker-instance"));const n=r.indexOf(e);if(n>=0&&(t?n-1>=0:n+1<=r.length))return r[n+(t?-1:1)]}const fI=(e,t)=>{let r;return function(...n){clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}},Av=(e,t,r,n,i)=>{const a=ad(e,t.slice(0,e.length),new Date);return Ws(a)&&Z0(a)?n||i?a:Ot(a,{hours:+r.hours,minutes:+(r==null?void 0:r.minutes),seconds:+(r==null?void 0:r.seconds),milliseconds:0}):null},dI=(e,t,r,n,i)=>{const a=Array.isArray(r)?r[0]:r;if(typeof t=="string")return Av(e,t,a,n,i);if(Array.isArray(t)){let s=null;for(const o of t)if(s=Av(e,o,a,n,i),s)break;return s}return typeof t=="function"?t(e):null},me=e=>e?new Date(e):new Date,hI=(e,t,r)=>{if(t){const i=(e.getMonth()+1).toString().padStart(2,"0"),a=e.getDate().toString().padStart(2,"0"),s=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0"),l=r?e.getSeconds().toString().padStart(2,"0"):"00";return`${e.getFullYear()}-${i}-${a}T${s}:${o}:${l}.000Z`}const n=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds());return new Date(n).toISOString()},ir=e=>{let t=me(JSON.parse(JSON.stringify(e)));return t=vw(t,0),t=gw(t,0),t=Vh(t,0),t=qh(t,0),t},vi=(e,t,r,n)=>{let i=e?me(e):me();return(t||t===0)&&(i=vw(i,+t)),(r||r===0)&&(i=gw(i,+r)),(n||n===0)&&(i=Vh(i,+n)),qh(i,0)},Kt=(e,t)=>!e||!t?!1:bo(ir(e),ir(t)),it=(e,t)=>!e||!t?!1:Ta(ir(e),ir(t)),rr=(e,t)=>!e||!t?!1:yo(ir(e),ir(t)),uc=(e,t,r)=>e!=null&&e[0]&&e!=null&&e[1]?rr(r,e[0])&&Kt(r,e[1]):e!=null&&e[0]&&t?rr(r,e[0])&&Kt(r,t)||Kt(r,e[0])&&rr(r,t):!1,Kr=e=>{const t=Ot(new Date(e),{date:1});return ir(t)},Yc=(e,t,r)=>t&&(r||r===0)?Object.fromEntries(["hours","minutes","seconds"].map(n=>n===t?[n,r]:[n,isNaN(+e[n])?void 0:+e[n]])):{hours:isNaN(+e.hours)?void 0:+e.hours,minutes:isNaN(+e.minutes)?void 0:+e.minutes,seconds:isNaN(+e.seconds)?void 0:+e.seconds},Ji=e=>({hours:en(e),minutes:Rn(e),seconds:Ya(e)}),Ow=(e,t)=>{if(t){const r=Ye(me(t));if(r>e)return 12;if(r===e)return Je(me(t))}},$w=(e,t)=>{if(t){const r=Ye(me(t));return r{if(e)return Ye(me(e))},tn=(e,t)=>t?tI(e,t):e,Rw=(e,t)=>t?rI(e,t):e,pI=e=>e instanceof Date?e:pE(e),Aw=(e,t)=>{const r=rr(e,t)?t:e,n=rr(t,e)?t:e;return J0({start:r,end:n})},mI=e=>{const t=Jr(e,1);return{month:Je(t),year:Ye(t)}},Jl=(e,t,r)=>{const n=na(tn(e,t),{weekStartsOn:+r}),i=iC(tn(e,t),{weekStartsOn:+r});return[n,i]},Tw=(e,t)=>{const r={hours:en(me()),minutes:Rn(me()),seconds:t?Ya(me()):0};return Object.assign(r,e)},hi=(e,t,r)=>[Ot(me(e),{date:1}),Ot(me(),{month:t,year:r,date:1})],Un=(e,t,r)=>{let n=e?me(e):me();return(t||t===0)&&(n=mw(n,t)),r&&(n=On(n,r)),n},kw=(e,t,r,n,i)=>{if(!n||i&&!t||!i&&!r)return!1;const a=i?Jr(e,1):Qa(e,1),s=[Je(a),Ye(a)];return i?!gI(...s,t):!vI(...s,r)},vI=(e,t,r)=>Kt(...hi(r,e,t))||it(...hi(r,e,t)),gI=(e,t,r)=>rr(...hi(r,e,t))||it(...hi(r,e,t)),Cw=(e,t,r,n,i,a,s)=>{if(typeof t=="function"&&!s)return t(e);const o=r?{locale:r}:void 0;return Array.isArray(e)?`${pi(e[0],a,o)}${i&&!e[1]?"":n}${e[1]?pi(e[1],a,o):""}`:pi(e,a,o)},ha=e=>{if(e)return null;throw new Error(Iu.prop("partial-range"))},Tl=(e,t)=>{if(t)return e();throw new Error(Iu.prop("range"))},dd=e=>Array.isArray(e)?Ws(e[0])&&(e[1]?Ws(e[1]):!0):e?Ws(e):!1,yI=(e,t)=>Ot(t!=null?t:me(),{hours:+e.hours||0,minutes:+e.minutes||0,seconds:+e.seconds||0}),Qc=(e,t,r,n)=>{if(!e)return!0;if(n){const i=r==="max"?bo(e,t):yo(e,t),a={seconds:0,milliseconds:0};return i||Ta(Ot(e,a),Ot(t,a))}return r==="max"?e.getTime()<=t.getTime():e.getTime()>=t.getTime()},zc=(e,t,r)=>e?yI(e,t):me(r!=null?r:t),Tv=(e,t,r,n,i)=>{if(Array.isArray(n)){const s=zc(e,n[0],t),o=zc(e,n[1],t);return Qc(n[0],s,r,!!t)&&Qc(n[1],o,r,!!t)&&i}const a=zc(e,n,t);return Qc(n,a,r,!!t)&&i},Kc=e=>Ot(me(),Ji(e)),bI=(e,t)=>Array.isArray(e)?e.map(r=>me(r)).filter(r=>Ye(me(r))===t).map(r=>Je(r)):[],Ew=(e,t,r)=>typeof e=="function"?e({month:t,year:r}):!!e.months.find(n=>n.month===t&&n.year===r),tp=(e,t)=>typeof e=="function"?e(t):e.years.includes(t),gs=Rr({menuFocused:!1,shiftKeyInMenu:!1}),Iw=()=>{const e=r=>{gs.menuFocused=r},t=r=>{gs.shiftKeyInMenu!==r&&(gs.shiftKeyInMenu=r)};return{control:he(()=>({shiftKeyInMenu:gs.shiftKeyInMenu,menuFocused:gs.menuFocused})),setMenuFocused:e,setShiftKey:t}},Pt=Rr({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),Gc=be(null),kl=be(!1),Xc=be(!1),Zc=be(!1),Jc=be(!1),cr=be(0),Vt=be(0),Ii=()=>{const e=he(()=>kl.value?[...Pt.selectionGrid,Pt.actionRow].filter(f=>f.length):Xc.value?[...Pt.timePicker[0],...Pt.timePicker[1],Jc.value?[]:[Gc.value],Pt.actionRow].filter(f=>f.length):Zc.value?[...Pt.monthPicker,Pt.actionRow]:[Pt.monthYear,...Pt.calendar,Pt.time,Pt.actionRow].filter(f=>f.length)),t=f=>{cr.value=f?cr.value+1:cr.value-1;let d=null;e.value[Vt.value]&&(d=e.value[Vt.value][cr.value]),d||(cr.value=f?cr.value-1:cr.value+1)},r=f=>{Vt.value===0&&!f||Vt.value===e.value.length&&f||(Vt.value=f?Vt.value+1:Vt.value-1,e.value[Vt.value]?e.value[Vt.value]&&!e.value[Vt.value][cr.value]&&cr.value!==0&&(cr.value=e.value[Vt.value].length-1):Vt.value=f?Vt.value-1:Vt.value+1)},n=f=>{let d=null;e.value[Vt.value]&&(d=e.value[Vt.value][cr.value]),d?d.focus({preventScroll:!kl.value}):cr.value=f?cr.value-1:cr.value+1},i=()=>{t(!0),n(!0)},a=()=>{t(!1),n(!1)},s=()=>{r(!1),n(!0)},o=()=>{r(!0),n(!0)},l=(f,d)=>{Pt[d]=f},u=(f,d)=>{Pt[d]=f},c=()=>{cr.value=0,Vt.value=0};return{buildMatrix:l,buildMultiLevelMatrix:u,setTimePickerBackRef:f=>{Gc.value=f},setSelectionGrid:f=>{kl.value=f,c(),f||(Pt.selectionGrid=[])},setTimePicker:(f,d=!1)=>{Xc.value=f,Jc.value=d,c(),f||(Pt.timePicker[0]=[],Pt.timePicker[1]=[])},setTimePickerElements:(f,d=0)=>{Pt.timePicker[d]=f},arrowRight:i,arrowLeft:a,arrowUp:s,arrowDown:o,clearArrowNav:()=>{Pt.monthYear=[],Pt.calendar=[],Pt.time=[],Pt.actionRow=[],Pt.selectionGrid=[],Pt.timePicker[0]=[],Pt.timePicker[1]=[],kl.value=!1,Xc.value=!1,Jc.value=!1,Zc.value=!1,c(),Gc.value=null},setMonthPicker:f=>{Zc.value=f,c()},refSets:Pt}},kv=e=>({menuAppearTop:"dp-menu-appear-top",menuAppearBottom:"dp-menu-appear-bottom",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down",...e!=null?e:{}}),wI=e=>({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",calendarWrap:"Calendar wrapper",calendarDays:"Calendar days",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:t=>`Increment ${t}`,decrementValue:t=>`Decrement ${t}`,openTpOverlay:t=>`Open ${t} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",nextYear:"Next year",prevYear:"Previous year",day:()=>"",...e!=null?e:{}}),Cv=e=>e?typeof e=="boolean"?e?2:0:+e>=2?+e:2:0,_I=e=>{var s;const t=typeof e=="object"&&e,r={static:!0,solo:!1};if(!e)return{...r,count:Cv(!1)};const n=t?e:{},i=t?(s=n.count)!=null?s:!0:e,a=Cv(i);return Object.assign(r,n,{count:a})},SI=(e,t,r)=>e||(typeof r=="string"?r:t),PI=e=>typeof e=="boolean"?e?kv({}):!1:kv(e),xI=e=>{const t={enterSubmit:!0,tabSubmit:!0,openMenu:!0,selectOnFocus:!1,rangeSeparator:" - "};return typeof e=="object"?{...t,...e!=null?e:{},enabled:!0}:{...t,enabled:e}},OI=e=>({months:[],years:[],times:{hours:[],minutes:[],seconds:[]},...e!=null?e:{}}),$I=e=>({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0,...e!=null?e:{}}),RI=e=>{const t={input:!1};return typeof e=="object"?{...t,...e!=null?e:{},enabled:!0}:{enabled:e,...t}},AI=e=>({allowStopPropagation:!0,closeOnScroll:!1,modeHeight:255,allowPreventDefault:!1,closeOnClearValue:!0,closeOnAutoApply:!0,noSwipe:!1,keepActionRow:!1,onClickOutside:void 0,tabOutClosesMenu:!0,...e!=null?e:{}}),TI=(e,t,r)=>{const n={dates:Array.isArray(e)?e.map(i=>me(i)):[],years:[],months:[],quarters:[],weeks:[],weekdays:t,options:{highlightDisabled:r}};return typeof e=="function"?e:{...n,...e!=null?e:{}}},kI=e=>{var t;return typeof e=="object"?{type:e.type,hideOnOffsetDates:(t=e.hideOnOffsetDates)!=null?t:!1}:{type:e,hideOnOffsetDates:!1}},jt=e=>{const t=()=>{const g=e.enableSeconds?":ss":"";return e.is24?`HH:mm${g}`:`hh:mm${g} aa`},r=()=>e.format?e.format:e.monthPicker?"MM/yyyy":e.timePicker?t():e.weekPicker?"MM/dd/yyyy":e.yearPicker?"yyyy":e.quarterPicker?"QQQ/yyyy":e.enableTimePicker?`MM/dd/yyyy, ${t()}`:"MM/dd/yyyy",n=g=>Tw(g,e.enableSeconds),i=()=>e.range?e.startTime&&Array.isArray(e.startTime)?[n(e.startTime[0]),n(e.startTime[1])]:null:e.startTime&&!Array.isArray(e.startTime)?n(e.startTime):null,a=he(()=>_I(e.multiCalendars)),s=he(()=>i()),o=he(()=>wI(e.ariaLabels)),l=he(()=>OI(e.filters)),u=he(()=>PI(e.transitions)),c=he(()=>$I(e.actionRow)),f=he(()=>SI(e.previewFormat,e.format,r())),d=he(()=>xI(e.textInput)),p=he(()=>RI(e.inline)),h=he(()=>AI(e.config)),m=he(()=>TI(e.highlight,e.highlightWeekDays,e.highlightDisabledDays)),v=he(()=>kI(e.weekNumbers));return{defaultedTransitions:u,defaultedMultiCalendars:a,defaultedStartTime:s,defaultedAriaLabels:o,defaultedFilters:l,defaultedActionRow:c,defaultedPreviewFormat:f,defaultedTextInput:d,defaultedInline:p,defaultedConfig:h,defaultedHighlight:m,defaultedWeekNumbers:v,getDefaultPattern:r,getDefaultStartTime:i}},CI=(e,t,r)=>{const n=be(),{defaultedTextInput:i,getDefaultPattern:a}=jt(t),s=be(""),o=lu(t,"format");yr(n,()=>{e("internal-model-change",n.value)}),yr(o,()=>{B()});const l=w=>Rw(w,t.timezone),u=w=>tn(w,t.timezone),c=(w,Y,X=!1)=>Cw(w,t.format,t.formatLocale,i.value.rangeSeparator,t.modelAuto,Y!=null?Y:a(),X),f=w=>w?t.modelType?j(w):{hours:en(w),minutes:Rn(w),seconds:t.enableSeconds?Ya(w):0}:null,d=w=>t.modelType?j(w):{month:Je(w),year:Ye(w)},p=w=>Array.isArray(w)?t.multiDates?w.map(Y=>h(Y,On(me(),Y))):Tl(()=>[On(me(),w[0]),w[1]?On(me(),w[1]):ha(t.partialRange)],t.range):On(me(),+w),h=(w,Y)=>(typeof w=="string"||typeof w=="number")&&t.modelType?R(w):Y,m=w=>Array.isArray(w)?[h(w[0],vi(null,+w[0].hours,+w[0].minutes,w[0].seconds)),h(w[1],vi(null,+w[1].hours,+w[1].minutes,w[1].seconds))]:h(w,vi(null,w.hours,w.minutes,w.seconds)),v=w=>Array.isArray(w)?t.multiDates?w.map(Y=>h(Y,Un(null,+Y.month,+Y.year))):Tl(()=>[h(w[0],Un(null,+w[0].month,+w[0].year)),h(w[1],w[1]?Un(null,+w[1].month,+w[1].year):ha(t.partialRange))],t.range):h(w,Un(null,+w.month,+w.year)),g=w=>{if(Array.isArray(w))return w.map(Y=>R(Y));throw new Error(Iu.dateArr("multi-dates"))},y=w=>{if(Array.isArray(w))return[me(w[0]),me(w[1])];throw new Error(Iu.dateArr("week-picker"))},_=w=>t.modelAuto?Array.isArray(w)?[R(w[0]),R(w[1])]:t.autoApply?[R(w)]:[R(w),null]:Array.isArray(w)?Tl(()=>[R(w[0]),w[1]?R(w[1]):ha(t.partialRange)],t.range):R(w),b=()=>{Array.isArray(n.value)&&t.range&&n.value.length===1&&n.value.push(ha(t.partialRange))},P=()=>{const w=n.value;return[j(w[0]),w[1]?j(w[1]):ha(t.partialRange)]},k=()=>n.value[1]?P():j(Wt(n.value[0])),A=()=>(n.value||[]).map(w=>j(w)),U=()=>(b(),t.modelAuto?k():t.multiDates?A():Array.isArray(n.value)?Tl(()=>P(),t.range):j(Wt(n.value))),F=w=>!w||Array.isArray(w)&&!w.length?null:t.timePicker?m(Wt(w)):t.monthPicker?v(Wt(w)):t.yearPicker?p(Wt(w)):t.multiDates?g(Wt(w)):t.weekPicker?y(Wt(w)):_(Wt(w)),x=w=>{const Y=F(w);dd(Wt(Y))?(n.value=Wt(Y),B()):(n.value=null,s.value="")},I=()=>{const w=Y=>pi(Y,i.value.format);return`${w(n.value[0])} ${i.value.rangeSeparator} ${n.value[1]?w(n.value[1]):""}`},M=()=>r.value&&n.value?Array.isArray(n.value)?I():pi(n.value,i.value.format):c(n.value),Z=()=>n.value?t.multiDates?n.value.map(w=>c(w)).join("; "):i.value.enabled&&typeof i.value.format=="string"?M():c(n.value):"",B=()=>{!t.format||typeof t.format=="string"||i.value.enabled&&typeof i.value.format=="string"?s.value=Z():s.value=t.format(n.value)},R=w=>{if(t.utc){const Y=new Date(w);return t.utc==="preserve"?new Date(Y.getTime()+Y.getTimezoneOffset()*6e4):Y}return t.modelType?t.modelType==="date"||t.modelType==="timestamp"?u(new Date(w)):t.modelType==="format"&&(typeof t.format=="string"||!t.format)?ad(w,a(),new Date):u(ad(w,t.modelType,new Date)):u(new Date(w))},j=w=>w?t.utc?hI(w,t.utc==="preserve",t.enableSeconds):t.modelType?t.modelType==="timestamp"?+l(w):t.modelType==="format"&&(typeof t.format=="string"||!t.format)?c(l(w)):c(l(w),t.modelType,!0):l(w):"",D=(w,Y=!1)=>{if(e("update:model-value",w),t.emitTimezone&&Y){const X=Array.isArray(w)?w.map(ae=>tn(Wt(ae)),t.emitTimezone):tn(Wt(w),t.emitTimezone);e("update:model-timezone-value",X)}},L=w=>Array.isArray(n.value)?t.multiDates?n.value.map(Y=>w(Y)):[w(n.value[0]),n.value[1]?w(n.value[1]):ha(t.partialRange)]:w(Wt(n.value)),$=w=>D(Wt(L(w)));return{inputValue:s,internalModelValue:n,checkBeforeEmit:()=>n.value?t.range?t.partialRange?n.value.length>=1:n.value.length===2:!!n.value:!1,parseExternalModelValue:x,formatInputValue:B,emitModelValue:()=>(B(),t.monthPicker?$(d):t.timePicker?$(f):t.yearPicker?$(Ye):t.weekPicker?D(n.value.map(w=>j(w)),!0):D(U(),!0))}},EI=(e,t)=>{const{defaultedFilters:r}=jt(e),{validateMonthYearInRange:n}=la(e),i=(u,c)=>{let f=u;return r.value.months.includes(Je(f))?(f=c?Jr(u,1):Qa(u,1),i(f,c)):f},a=(u,c)=>{let f=u;return r.value.years.includes(Ye(f))?(f=c?Lh(u,1):yw(u,1),a(f,c)):f},s=(u,c=!1)=>{const f=Ot(new Date,{month:e.month,year:e.year});let d=u?Jr(f,1):Qa(f,1);e.disableYearSelect&&(d=On(d,e.year));let p=Je(d),h=Ye(d);r.value.months.includes(p)&&(d=i(d,u),p=Je(d),h=Ye(d)),r.value.years.includes(h)&&(d=a(d,u),h=Ye(d)),n(p,h,u,e.preventMinMaxNavigation)&&o(p,h,c)},o=(u,c,f)=>{t("update-month-year",{month:u,year:c,fromNav:f})},l=he(()=>u=>kw(Ot(new Date,{month:e.month,year:e.year}),e.maxDate,e.minDate,e.preventMinMaxNavigation,u));return{handleMonthYearChange:s,isDisabled:l,updateMonthYear:o}};var Oa=(e=>(e.center="center",e.left="left",e.right="right",e))(Oa||{}),zr=(e=>(e.month="month",e.year="year",e))(zr||{}),Wi=(e=>(e.top="top",e.bottom="bottom",e))(Wi||{}),ea=(e=>(e.header="header",e.calendar="calendar",e.timePicker="timePicker",e))(ea||{}),gn=(e=>(e.month="month",e.year="year",e.calendar="calendar",e.time="time",e.minutes="minutes",e.hours="hours",e.seconds="seconds",e))(gn||{});const II=({menuRef:e,menuRefInner:t,inputRef:r,pickerWrapperRef:n,inline:i,emit:a,props:s,slots:o})=>{const l=be({}),u=be(!1),c=be({top:"0",left:"0"}),f=be(!1),d=lu(s,"teleportCenter");yr(d,()=>{c.value=JSON.parse(JSON.stringify({})),b()});const p=R=>{if(s.teleport){const j=R.getBoundingClientRect();return{left:j.left+window.scrollX,top:j.top+window.scrollY}}return{top:0,left:0}},h=(R,j)=>{c.value.left=`${R+j-l.value.width}px`},m=R=>{c.value.left=`${R}px`},v=(R,j)=>{s.position===Oa.left&&m(R),s.position===Oa.right&&h(R,j),s.position===Oa.center&&(c.value.left=`${R+j/2-l.value.width/2}px`)},g=R=>{const{width:j,height:D}=R.getBoundingClientRect(),{top:L,left:$}=s.altPosition?s.altPosition(R):p(R);return{top:+L,left:+$,width:j,height:D}},y=()=>{c.value.left="50%",c.value.top="50%",c.value.transform="translate(-50%, -50%)",c.value.position="fixed",delete c.value.opacity},_=()=>{const R=Lt(r),{top:j,left:D,transform:L}=s.altPosition(R);c.value={top:`${j}px`,left:`${D}px`,transform:L!=null?L:""}},b=(R=!0)=>{var j;if(!i.value.enabled){if(d.value)return y();if(s.altPosition!==null)return _();if(R){const D=s.teleport?(j=t.value)==null?void 0:j.$el:e.value;D&&(l.value=D.getBoundingClientRect()),a("recalculate-position")}return I()}},P=({inputEl:R,left:j,width:D})=>{window.screen.width>768&&!u.value&&v(j,D),U(R)},k=R=>{const{top:j,left:D,height:L,width:$}=g(R);c.value.top=`${L+j+ +s.offset}px`,f.value=!1,u.value||(c.value.left=`${D+$/2-l.value.width/2}px`),P({inputEl:R,left:D,width:$})},A=R=>{const{top:j,left:D,width:L}=g(R);c.value.top=`${j-+s.offset-l.value.height}px`,f.value=!0,P({inputEl:R,left:D,width:L})},U=R=>{if(s.autoPosition){const{left:j,width:D}=g(R),{left:L,right:$}=l.value;if(!u.value){if(Math.abs(L)!==Math.abs($)){if(L<=0)return u.value=!0,m(j);if($>=document.documentElement.clientWidth)return u.value=!0,h(j,D)}return v(j,D)}}},F=()=>{const R=Lt(r);if(R){const{height:j}=l.value,{top:D,height:L}=R.getBoundingClientRect(),$=window.innerHeight-D-L,w=D;return j<=$?Wi.bottom:j>$&&j<=w?Wi.top:$>=w?Wi.bottom:Wi.top}return Wi.bottom},x=R=>F()===Wi.bottom?k(R):A(R),I=()=>{const R=Lt(r);if(R)return s.autoPosition?x(R):k(R)},M=function(R){if(R){const j=R.scrollHeight>R.clientHeight,D=window.getComputedStyle(R).overflowY.indexOf("hidden")!==-1;return j&&!D}return!0},Z=function(R){return!R||R===document.body||R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?window:M(R)?R:Z(R.parentNode)},B=R=>{if(R)switch(s.position){case Oa.left:return{left:0,transform:"translateX(0)"};case Oa.right:return{left:`${R.width}px`,transform:"translateX(-100%)"};default:return{left:`${R.width/2}px`,transform:"translateX(-50%)"}}return{}};return{openOnTop:f,menuStyle:c,xCorrect:u,setMenuPosition:b,getScrollableParent:Z,shadowRender:(R,j)=>{var D,L,$;const w=document.createElement("div"),Y=(D=Lt(r))==null?void 0:D.getBoundingClientRect();w.setAttribute("id","dp--temp-container");const X=(L=n.value)!=null&&L.clientWidth?n.value:document.body;X.append(w);const ae=B(Y),oe=Ur(R,{...j,shadow:!0,style:{opacity:0,position:"absolute",...ae}},Object.fromEntries(Object.keys(o).filter(ee=>["right-sidebar","left-sidebar"].includes(ee)).map(ee=>[ee,o[ee]])));mm(oe,w),l.value=($=oe.el)==null?void 0:$.getBoundingClientRect(),mm(null,w),X.removeChild(w)}}},Xn=[{name:"clock-icon",use:["time","calendar","shared"]},{name:"arrow-left",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-right",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-up",use:["time","calendar","month-year","shared"]},{name:"arrow-down",use:["time","calendar","month-year","shared"]},{name:"calendar-icon",use:["month-year","time","calendar","shared","year-mode"]},{name:"day",use:["calendar","shared"]},{name:"month-overlay-value",use:["calendar","month-year","shared"]},{name:"year-overlay-value",use:["calendar","month-year","shared","year-mode"]},{name:"year-overlay",use:["month-year","shared"]},{name:"month-overlay",use:["month-year","shared"]},{name:"month-overlay-header",use:["month-year","shared"]},{name:"year-overlay-header",use:["month-year","shared"]},{name:"hours-overlay-value",use:["calendar","time","shared"]},{name:"minutes-overlay-value",use:["calendar","time","shared"]},{name:"seconds-overlay-value",use:["calendar","time","shared"]},{name:"hours",use:["calendar","time","shared"]},{name:"minutes",use:["calendar","time","shared"]},{name:"month",use:["calendar","month-year","shared"]},{name:"year",use:["calendar","month-year","shared","year-mode"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar","shared"]},{name:"marker-tooltip",use:["calendar","shared"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time","shared"]},{name:"am-pm-button",use:["calendar","time","shared"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year","shared"]},{name:"time-picker",use:["menu","shared"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar","shared"]},{name:"quarter",use:["shared"]}],DI=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],jI={all:()=>Xn,monthYear:()=>Xn.filter(e=>e.use.includes("month-year")),input:()=>DI,timePicker:()=>Xn.filter(e=>e.use.includes("time")),action:()=>Xn.filter(e=>e.use.includes("action")),calendar:()=>Xn.filter(e=>e.use.includes("calendar")),menu:()=>Xn.filter(e=>e.use.includes("menu")),shared:()=>Xn.filter(e=>e.use.includes("shared")),yearMode:()=>Xn.filter(e=>e.use.includes("year-mode"))},Er=(e,t,r)=>{const n=[];return jI[t]().forEach(i=>{e[i.name]&&n.push(i.name)}),r!=null&&r.length&&r.forEach(i=>{i.slot&&n.push(i.slot)}),n},sl=e=>{const t=he(()=>n=>e.value?n?e.value.open:e.value.close:""),r=he(()=>n=>e.value?n?e.value.menuAppearTop:e.value.menuAppearBottom:"");return{transitionName:t,showTransition:!!e.value,menuTransition:r}},ol=(e,t)=>{const r=me(tn(new Date,e.timezone)),n=be([{month:Je(r),year:Ye(r)}]),i=Rr({hours:e.range?[en(r),en(r)]:en(r),minutes:e.range?[Rn(r),Rn(r)]:Rn(r),seconds:e.range?[0,0]:0}),a=he({get:()=>e.internalModelValue,set:l=>{!e.readonly&&!e.disabled&&t("update:internal-model-value",l)}}),s=he(()=>l=>n.value[l]?n.value[l].month:0),o=he(()=>l=>n.value[l]?n.value[l].year:0);return{calendars:n,time:i,modelValue:a,month:s,year:o}},FI=(e,t)=>{const{defaultedMultiCalendars:r,defaultedHighlight:n}=jt(t),{isDisabled:i,matchDate:a}=la(t),s=be(null),o=be(me(tn(new Date,t.timezone))),l=$=>{!$.current&&t.hideOffsetDates||(s.value=$.value)},u=()=>{s.value=null},c=$=>Array.isArray(e.value)&&t.range&&e.value[0]&&s.value?$?rr(s.value,e.value[0]):Kt(s.value,e.value[0]):!0,f=($,w)=>{const Y=()=>e.value?w?e.value[0]||null:e.value[1]:null,X=e.value&&Array.isArray(e.value)?Y():null;return it(me($.value),X)},d=$=>{var Y;const w=Array.isArray(e.value)?e.value[0]:null;return $?!Kt((Y=s.value)!=null?Y:null,w):!0},p=($,w=!0)=>(t.range||t.weekPicker)&&Array.isArray(e.value)&&e.value.length===2?t.hideOffsetDates&&!$.current?!1:it(me($.value),e.value[w?0:1]):t.range?f($,w)&&d(w)||it($.value,Array.isArray(e.value)?e.value[0]:null)&&c(w):!1,h=($,w,Y)=>Array.isArray(e.value)&&e.value[0]&&e.value.length===1?$?!1:Y?rr(e.value[0],w.value):Kt(e.value[0],w.value):!1,m=$=>!e.value||t.hideOffsetDates&&!$.current?!1:t.range?t.modelAuto&&Array.isArray(e.value)?it($.value,e.value[0]?e.value[0]:o.value):!1:t.multiDates&&Array.isArray(e.value)?e.value.some(w=>it(w,$.value)):it($.value,e.value?e.value:o.value),v=$=>{if(t.autoRange||t.weekPicker){if(s.value){if(t.hideOffsetDates&&!$.current)return!1;const w=Nn(s.value,+t.autoRange),Y=Jl(me(s.value),t.timezone,t.weekStart);return t.weekPicker?it(Y[1],me($.value)):it(w,me($.value))}return!1}return!1},g=$=>{if(t.autoRange||t.weekPicker){if(s.value){const w=Nn(s.value,+t.autoRange);if(t.hideOffsetDates&&!$.current)return!1;const Y=Jl(me(s.value),t.timezone,t.weekStart);return t.weekPicker?rr($.value,Y[0])&&Kt($.value,Y[1]):rr($.value,s.value)&&Kt($.value,w)}return!1}return!1},y=$=>{if(t.autoRange||t.weekPicker){if(s.value){if(t.hideOffsetDates&&!$.current)return!1;const w=Jl(me(s.value),t.timezone,t.weekStart);return t.weekPicker?it(w[0],$.value):it(s.value,$.value)}return!1}return!1},_=$=>uc(e.value,s.value,$.value),b=()=>t.modelAuto&&Array.isArray(t.internalModelValue)?!!t.internalModelValue[0]:!1,P=()=>t.modelAuto?xw(t.internalModelValue):!0,k=$=>{if(Array.isArray(e.value)&&e.value.length||t.weekPicker)return!1;const w=t.range?!p($)&&!p($,!1):!0;return!i($.value)&&!m($)&&!(!$.current&&t.hideOffsetDates)&&w},A=$=>t.range?t.modelAuto?b()&&m($):!1:m($),U=$=>{var w;return n.value?typeof n.value=="function"?n.value($.value):a($.value,(w=t.arrMapValues)!=null&&w.highlightedDates?t.arrMapValues.highlightedDates:n.value.dates):!1},F=$=>{const w=i($.value);return w&&(typeof n.value=="function"?!n.value($.value,w):!n.value.options.highlightDisabled)},x=$=>{var w;return typeof n.value=="function"?n.value($.value):(w=n.value.weekdays)==null?void 0:w.includes($.value.getDay())},I=$=>(t.range||t.weekPicker)&&(!(r.value.count>0)||$.current)&&P()&&!(!$.current&&t.hideOffsetDates)&&!m($)?_($):!1,M=$=>{const{isRangeStart:w,isRangeEnd:Y}=R($),X=t.range?w||Y:!1;return{dp__cell_offset:!$.current,dp__pointer:!t.disabled&&!(!$.current&&t.hideOffsetDates)&&!i($.value),dp__cell_disabled:i($.value),dp__cell_highlight:!F($)&&(U($)||x($))&&!A($)&&!X&&!y($)&&!(I($)&&t.weekPicker)&&!Y,dp__cell_highlight_active:!F($)&&(U($)||x($))&&A($),dp__today:!t.noToday&&it($.value,o.value)&&$.current}},Z=$=>({dp__active_date:A($),dp__date_hover:k($)}),B=$=>({...j($),...D($),dp__range_between_week:I($)&&t.weekPicker}),R=$=>{const w=r.value.count>0?$.current&&p($)&&P():p($)&&P(),Y=r.value.count>0?$.current&&p($,!1)&&P():p($,!1)&&P();return{isRangeStart:w,isRangeEnd:Y}},j=$=>{const{isRangeStart:w,isRangeEnd:Y}=R($);return{dp__range_start:w,dp__range_end:Y,dp__range_between:I($)&&!t.weekPicker,dp__date_hover_start:h(k($),$,!0),dp__date_hover_end:h(k($),$,!1)}},D=$=>({...j($),dp__cell_auto_range:g($),dp__cell_auto_range_start:y($),dp__cell_auto_range_end:v($)}),L=$=>t.range?t.autoRange?D($):t.modelAuto?{...Z($),...j($)}:j($):t.weekPicker?B($):Z($);return{setHoverDate:l,clearHoverDate:u,getDayClassData:$=>t.hideOffsetDates&&!$.current?{}:{...M($),...L($),[t.dayClass?t.dayClass($.value):""]:!0,[t.calendarCellClassName]:!!t.calendarCellClassName}}},la=e=>{const{defaultedFilters:t,defaultedHighlight:r}=jt(e),n=()=>{if(e.timezone)return e.timezone;if(e.utc)return"UTC"},i=x=>{const I=ir(a(me(x))).toISOString(),[M]=I.split("T");return M},a=x=>e.utc==="preserve"?Rw(x,n()):tn(x,n()),s=x=>{var I;const M=e.maxDate?rr(x,a(me(e.maxDate))):!1,Z=e.minDate?Kt(x,a(me(e.minDate))):!1,B=c(a(x),(I=e.arrMapValues)!=null&&I.disabledDates?e.arrMapValues.disabledDates:e.disabledDates),R=t.value.months.map(w=>+w).includes(Je(x)),j=e.disabledWeekDays.length?e.disabledWeekDays.some(w=>+w===u2(x)):!1,D=d(x),L=Ye(x),$=L<+e.yearRange[0]||L>+e.yearRange[1];return!(M||Z||B||R||$||j||D)},o=(x,I)=>Kt(...hi(e.minDate,x,I))||it(...hi(e.minDate,x,I)),l=(x,I)=>rr(...hi(e.maxDate,x,I))||it(...hi(e.maxDate,x,I)),u=(x,I,M)=>{let Z=!1;return e.maxDate&&M&&l(x,I)&&(Z=!0),e.minDate&&!M&&o(x,I)&&(Z=!0),Z},c=(x,I)=>x?I instanceof Map?!!I.get(i(x)):Array.isArray(I)?I.some(M=>it(a(me(M)),x)):I?I(me(JSON.parse(JSON.stringify(x)))):!1:!0,f=(x,I,M,Z)=>{let B=!1;return Z?e.minDate&&e.maxDate?B=u(x,I,M):(e.minDate&&o(x,I)||e.maxDate&&l(x,I))&&(B=!0):B=!0,B},d=x=>{var I,M,Z,B,R;return Array.isArray(e.allowedDates)&&!((I=e.allowedDates)!=null&&I.length)?!0:(M=e.arrMapValues)!=null&&M.allowedDates?!c(x,(Z=e.arrMapValues)==null?void 0:Z.allowedDates):(B=e.allowedDates)!=null&&B.length?!((R=e.allowedDates)!=null&&R.some(j=>it(ir(j),a(ir(x))))):!1},p=x=>!s(x),h=x=>e.noDisabledRange?!J0({start:x[0],end:x[1]}).some(I=>p(I)):!0,m=(x,I,M=0)=>{if(Array.isArray(I)&&I[M]){const Z=Zk(x,I[M]),B=Aw(I[M],x),R=B.length===1?0:B.filter(D=>p(D)).length,j=Math.abs(Z)-R;if(e.minRange&&e.maxRange)return j>=+e.minRange&&j<=+e.maxRange;if(e.minRange)return j>=+e.minRange;if(e.maxRange)return j<=+e.maxRange}return!0},v=x=>new Map(x.map(I=>[i(I),!0])),g=x=>Array.isArray(x)&&x.length>0,y=()=>{const x={disabledDates:null,allowedDates:null,highlightedDates:null};return g(e.allowedDates)&&(x.allowedDates=v(e.allowedDates)),typeof r.value!="function"&&g(r.value.dates)&&(x.highlightedDates=v(r.value.dates)),g(e.disabledDates)&&(x.disabledDates=v(e.disabledDates)),x},_=()=>!e.enableTimePicker||e.monthPicker||e.yearPicker||e.ignoreTimeValidation,b=x=>Array.isArray(x)?[x[0]?Kc(x[0]):null,x[1]?Kc(x[1]):null]:Kc(x),P=(x,I,M)=>x.find(Z=>+Z.hours===en(I)&&Z.minutes==="*"?!0:+Z.minutes===Rn(I)&&+Z.hours===en(I))&&M,k=(x,I,M)=>{const[Z,B]=x,[R,j]=I;return!P(Z,R,M)&&!P(B,j,M)&&M},A=(x,I)=>{const M=Array.isArray(I)?I:[I];return Array.isArray(e.disabledTimes)?Array.isArray(e.disabledTimes[0])?k(e.disabledTimes,M,x):!M.some(Z=>P(e.disabledTimes,Z,x)):x},U=(x,I)=>{const M=Array.isArray(I)?[Ji(I[0]),I[1]?Ji(I[1]):void 0]:Ji(I),Z=!e.disabledTimes(M);return x&&Z},F=(x,I)=>e.disabledTimes?Array.isArray(e.disabledTimes)?A(I,x):U(I,x):I;return{isDisabled:p,validateDate:s,validateMonthYearInRange:f,isDateRangeAllowed:h,checkMinMaxRange:m,matchDate:c,mapDatesArrToMap:y,isValidTime:x=>{let I=!0;if(!x||_())return!0;const M=!e.minDate&&!e.maxDate?b(x):x;return(e.maxTime||e.maxDate)&&(I=Tv(e.maxTime,e.maxDate,"max",Wt(M),I)),(e.minTime||e.minDate)&&(I=Tv(e.minTime,e.minDate,"min",Wt(M),I)),F(x,I)}}},cc=()=>{const e=he(()=>(n,i)=>n==null?void 0:n.includes(i)),t=he(()=>(n,i)=>n.count?n.solo?!0:i===0:!0),r=he(()=>(n,i)=>n.count?n.solo?!0:i===n.count-1:!0);return{hideNavigationButtons:e,showLeftIcon:t,showRightIcon:r}},MI=(e,t,r)=>{const n=be(0),i=Rr({[ea.timePicker]:!e.enableTimePicker||e.timePicker||e.monthPicker,[ea.calendar]:!1,[ea.header]:!1}),a=he(()=>e.monthPicker),s=f=>{var d;if((d=e.flow)!=null&&d.length){if(!f&&a.value)return c();i[f]=!0,Object.keys(i).filter(p=>!i[p]).length||c()}},o=()=>{var f;(f=e.flow)!=null&&f.length&&n.value!==-1&&(n.value+=1,t("flow-step",n.value),c())},l=()=>{n.value=-1},u=(f,d,...p)=>{e.flow[n.value]===f&&r.value&&r.value[d](...p)},c=()=>{u(gn.month,"toggleMonthPicker",!0),u(gn.year,"toggleYearPicker",!0),u(gn.calendar,"toggleTimePicker",!1,!0),u(gn.time,"toggleTimePicker",!0,!0);const f=e.flow[n.value];(f===gn.hours||f===gn.minutes||f===gn.seconds)&&u(f,"toggleTimePicker",!0,!0,f)};return{childMount:s,updateFlowStep:o,resetFlow:l,flowStep:n}},fc={multiCalendars:{type:[Boolean,Number,String,Object],default:void 0},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:()=>null},autoPosition:{type:Boolean,default:!0},altPosition:{type:Function,default:null},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:()=>({})},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:()=>[]},timezone:{type:String,default:null},emitTimezone:{type:String,default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},menuClassName:{type:String,default:null},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},calendarCellClassName:{type:String,default:null},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:()=>[]},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},hideOffsetDates:{type:Boolean,default:!1},autoRange:{type:[Number,String],default:null},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:null},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetDates:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},minRange:{type:[Number,String],default:null},maxRange:{type:[Number,String],default:null},multiDatesLimit:{type:[Number,String],default:null},reverseYears:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},disableTimeRangeValidation:{type:Boolean,default:!1},highlight:{type:[Array,Function,Object],default:null},highlightWeekDays:{type:Array,default:null},highlightDisabledDays:{type:Boolean,default:!1},teleport:{type:[String,Boolean,Object],default:null},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:[String,Function,Object],default:null},calendarClassName:{type:String,default:null},monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:()=>""},multiDates:{type:Boolean,default:!1},partialRange:{type:Boolean,default:!0},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},inputClassName:{type:String,default:null},fixedStart:{type:Boolean,default:!1},fixedEnd:{type:Boolean,default:!1},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:Boolean,default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:[Boolean,Object],default:!1},textInput:{type:[Boolean,Object],default:!1},noDisabledRange:{type:Boolean,default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:[Function,Array],default:void 0},showLastInRange:{type:Boolean,default:!0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},config:{type:Object,default:void 0},quarterPicker:{type:Boolean,default:!1},yearFirst:{type:Boolean,default:!1}},on={...fc,shadow:{type:Boolean,default:!1},flowStep:{type:Number,default:0},internalModelValue:{type:[Date,Array],default:null},arrMapValues:{type:Object,default:()=>({})},noOverlayFocus:{type:Boolean,default:!1}},LI={key:1,class:"dp__input_wrap"},NI=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","aria-disabled","aria-invalid"],HI={key:2,class:"dp__clear_icon"},UI=Ct({compatConfig:{MODE:3},__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...fc},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur"],setup(e,{expose:t,emit:r}){const n=r,i=e,{defaultedTextInput:a,defaultedAriaLabels:s,defaultedInline:o,defaultedConfig:l,getDefaultPattern:u,getDefaultStartTime:c}=jt(i),{checkMinMaxRange:f}=la(i),d=be(),p=be(null),h=be(!1),m=be(!1),v=he(()=>({dp__pointer:!i.disabled&&!i.readonly&&!a.value.enabled,dp__disabled:i.disabled,dp__input_readonly:!a.value.enabled,dp__input:!0,dp__input_icon_pad:!i.hideInputIcon,dp__input_valid:!!i.state,dp__input_invalid:i.state===!1,dp__input_focus:h.value||i.isMenuOpen,dp__input_reg:!a.value.enabled,[i.inputClassName]:!!i.inputClassName})),g=()=>{n("set-input-date",null),i.autoApply&&(n("set-empty-date"),d.value=null)},y=B=>{var j;const R=c();return dI(B,(j=a.value.format)!=null?j:u(),R!=null?R:Tw({},i.enableSeconds),i.inputValue,m.value)},_=B=>{const{rangeSeparator:R}=a.value,[j,D]=B.split(`${R}`);if(j){const L=y(j.trim()),$=D?y(D.trim()):null,w=L&&$?[L,$]:[L];f($,w,0)&&(d.value=L?w:null)}},b=()=>{m.value=!0},P=B=>{if(i.range)_(B);else if(i.multiDates){const R=B.split(";");d.value=R.map(j=>y(j.trim())).filter(j=>j)}else d.value=y(B)},k=B=>{var R;const j=typeof B=="string"?B:(R=B.target)==null?void 0:R.value;j!==""?(a.value.openMenu&&!i.isMenuOpen&&n("open"),P(j),n("set-input-date",d.value)):g(),m.value=!1,n("update:input-value",j)},A=B=>{a.value.enabled?(P(B.target.value),a.value.enterSubmit&&dd(d.value)&&i.inputValue!==""?(n("set-input-date",d.value,!0),d.value=null):a.value.enterSubmit&&i.inputValue===""&&(d.value=null,n("clear"))):x(B)},U=B=>{a.value.enabled&&a.value.tabSubmit&&P(B.target.value),a.value.tabSubmit&&dd(d.value)&&i.inputValue!==""?(n("set-input-date",d.value,!0,!0),d.value=null):a.value.tabSubmit&&i.inputValue===""&&(d.value=null,n("clear",!0))},F=()=>{var B;h.value=!0,n("focus"),a.value.enabled&&a.value.selectOnFocus&&((B=p.value)==null||B.select())},x=B=>{B.preventDefault(),mi(B,l.value,!0),a.value.enabled&&a.value.openMenu&&!o.value.input&&!i.isMenuOpen?n("open"):a.value.enabled||n("toggle")},I=()=>{n("real-blur"),h.value=!1,(!i.isMenuOpen||o.value.enabled&&o.value.input)&&n("blur"),i.autoApply&&a.value.enabled&&d.value&&!i.isMenuOpen&&(n("set-input-date",d.value),n("select-date"),d.value=null)},M=B=>{mi(B,l.value,!0),n("clear")},Z=B=>{if(!a.value.enabled){if(B.code==="Tab")return;B.preventDefault()}};return t({focusInput:()=>{var B;(B=p.value)==null||B.focus({preventScroll:!0})},setParsedDate:B=>{d.value=B}}),(B,R)=>{var j;return T(),W("div",{onClick:x},[B.$slots.trigger&&!B.$slots["dp-input"]&&!J(o).enabled?se(B.$slots,"trigger",{key:0}):ne("",!0),!B.$slots.trigger&&(!J(o).enabled||J(o).input)?(T(),W("div",LI,[B.$slots["dp-input"]&&!B.$slots.trigger&&!J(o).enabled?se(B.$slots,"dp-input",{key:0,value:e.inputValue,isMenuOpen:e.isMenuOpen,onInput:k,onEnter:A,onTab:U,onClear:M,onBlur:I,onKeypress:Z,onPaste:b,openMenu:()=>B.$emit("open"),closeMenu:()=>B.$emit("close"),toggleMenu:()=>B.$emit("toggle")}):ne("",!0),B.$slots["dp-input"]?ne("",!0):(T(),W("input",{key:1,id:B.uid?`dp-input-${B.uid}`:void 0,ref_key:"inputRef",ref:p,name:B.name,class:te(v.value),inputmode:J(a).enabled?"text":"none",placeholder:B.placeholder,disabled:B.disabled,readonly:B.readonly,required:B.required,value:e.inputValue,autocomplete:B.autocomplete,"aria-label":(j=J(s))==null?void 0:j.input,"aria-disabled":B.disabled||void 0,"aria-invalid":B.state===!1?!0:void 0,onInput:k,onKeydown:[je(A,["enter"]),je(U,["tab"]),Z],onBlur:I,onFocus:F,onKeypress:Z,onPaste:b},null,42,NI)),O("div",{onClick:R[2]||(R[2]=D=>n("toggle"))},[B.$slots["input-icon"]&&!B.hideInputIcon?(T(),W("span",{key:0,class:"dp__input_icon",onClick:R[0]||(R[0]=D=>n("toggle"))},[se(B.$slots,"input-icon")])):ne("",!0),!B.$slots["input-icon"]&&!B.hideInputIcon&&!B.$slots["dp-input"]?(T(),Re(J(is),{key:1,class:"dp__input_icon dp__input_icons",onClick:R[1]||(R[1]=D=>n("toggle"))})):ne("",!0)]),B.$slots["clear-icon"]&&e.inputValue&&B.clearable&&!B.disabled&&!B.readonly?(T(),W("span",HI,[se(B.$slots,"clear-icon",{clear:M})])):ne("",!0),B.clearable&&!B.$slots["clear-icon"]&&e.inputValue&&!B.disabled&&!B.readonly?(T(),Re(J(bw),{key:3,class:"dp__clear_icon dp__input_icons",onClick:R[3]||(R[3]=Se(D=>M(D),["prevent"]))})):ne("",!0)])):ne("",!0)])}}}),BI=["title"],WI={class:"dp__action_buttons"},qI=["disabled"],VI=Ct({compatConfig:{MODE:3},__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},calendarWidth:{type:Number,default:0},...on},emits:["close-picker","select-date","select-now","invalid-select"],setup(e,{emit:t}){const r=t,n=e,{defaultedActionRow:i,defaultedPreviewFormat:a,defaultedMultiCalendars:s,defaultedTextInput:o,defaultedInline:l,getDefaultPattern:u}=jt(n),{isValidTime:c}=la(n),{buildMatrix:f}=Ii(),d=be(null),p=be(null);Mt(()=>{n.arrowNavigation&&f([Lt(d),Lt(p)],"actionRow")});const h=he(()=>n.range&&!n.partialRange&&n.internalModelValue?n.internalModelValue.length===2:!0),m=he(()=>!v.value||!g.value||!h.value),v=he(()=>!n.enableTimePicker||n.ignoreTimeValidation?!0:c(n.internalModelValue)),g=he(()=>n.monthPicker?n.range&&Array.isArray(n.internalModelValue)?!n.internalModelValue.filter(x=>!U(x)).length:U(n.internalModelValue):!0),y=()=>{const x=a.value;return n.timePicker||n.monthPicker,x(Wt(n.internalModelValue))},_=()=>{const x=n.internalModelValue;return s.value.count>0?`${b(x[0])} - ${b(x[1])}`:[b(x[0]),b(x[1])]},b=x=>Cw(x,a.value,n.formatLocale,o.value.rangeSeparator,n.modelAuto,u()),P=he(()=>!n.internalModelValue||!n.menuMount?"":typeof a.value=="string"?Array.isArray(n.internalModelValue)?n.internalModelValue.length===2&&n.internalModelValue[1]?_():n.multiDates?n.internalModelValue.map(x=>`${b(x)}`):n.modelAuto?`${b(n.internalModelValue[0])}`:`${b(n.internalModelValue[0])} -`:b(n.internalModelValue):y()),k=()=>n.multiDates?"; ":" - ",A=he(()=>Array.isArray(P.value)?P.value.join(k()):P.value),U=x=>{if(!n.monthPicker)return!0;let I=!0;const M=me(Kr(x));if(n.minDate&&n.maxDate){const Z=me(Kr(n.minDate)),B=me(Kr(n.maxDate));return rr(M,Z)&&Kt(M,B)||it(M,Z)||it(M,B)}if(n.minDate){const Z=me(Kr(n.minDate));I=rr(M,Z)||it(M,Z)}if(n.maxDate){const Z=me(Kr(n.maxDate));I=Kt(M,Z)||it(M,Z)}return I},F=()=>{v.value&&g.value&&h.value?r("select-date"):r("invalid-select")};return(x,I)=>(T(),W("div",{class:"dp__action_row",style:gr(e.calendarWidth?{width:`${e.calendarWidth}px`}:{})},[x.$slots["action-row"]?se(x.$slots,"action-row",Qe($t({key:0},{internalModelValue:x.internalModelValue,disabled:m.value,selectDate:()=>x.$emit("select-date"),closePicker:()=>x.$emit("close-picker")}))):(T(),W(ye,{key:1},[J(i).showPreview?(T(),W("div",{key:0,class:"dp__selection_preview",title:A.value},[x.$slots["action-preview"]?se(x.$slots,"action-preview",{key:0,value:x.internalModelValue}):ne("",!0),x.$slots["action-preview"]?ne("",!0):(T(),W(ye,{key:1},[He(ge(A.value),1)],64))],8,BI)):ne("",!0),O("div",WI,[x.$slots["action-buttons"]?se(x.$slots,"action-buttons",{key:0,value:x.internalModelValue}):ne("",!0),x.$slots["action-buttons"]?ne("",!0):(T(),W(ye,{key:1},[!J(l).enabled&&J(i).showCancel?(T(),W("button",{key:0,ref_key:"cancelButtonRef",ref:d,type:"button",class:"dp__action_button dp__action_cancel",onClick:I[0]||(I[0]=M=>x.$emit("close-picker")),onKeydown:[I[1]||(I[1]=je(M=>x.$emit("close-picker"),["enter"])),I[2]||(I[2]=je(M=>x.$emit("close-picker"),["space"]))]},ge(x.cancelText),545)):ne("",!0),J(i).showNow?(T(),W("button",{key:1,ref_key:"cancelButtonRef",ref:d,type:"button",class:"dp__action_button dp__action_cancel",onClick:I[3]||(I[3]=M=>x.$emit("select-now")),onKeydown:[I[4]||(I[4]=je(M=>x.$emit("select-now"),["enter"])),I[5]||(I[5]=je(M=>x.$emit("select-now"),["space"]))]},ge(x.nowButtonLabel),545)):ne("",!0),J(i).showSelect?(T(),W("button",{key:2,ref_key:"selectButtonRef",ref:p,type:"button",class:"dp__action_button dp__action_select",disabled:m.value,onKeydown:[je(F,["enter"]),je(F,["space"])],onClick:F},ge(x.selectText),41,qI)):ne("",!0)],64))])],64))],4))}}),YI=["onKeydown"],QI={class:"dp__selection_grid_header"},zI=["aria-selected","aria-disabled","onClick","onKeydown","onMouseover"],KI=["aria-label"],ll=Ct({__name:"SelectionOverlay",props:{items:{},type:{},isLast:{type:Boolean},arrowNavigation:{type:Boolean},skipButtonRef:{type:Boolean},headerRefs:{},hideNavigation:{},escClose:{type:Boolean},useRelative:{type:Boolean},height:{},textInput:{type:[Boolean,Object]},config:{},noOverlayFocus:{type:Boolean},focusValue:{}},emits:["selected","toggle","reset-flow","hover-value"],setup(e,{expose:t,emit:r}){const{setSelectionGrid:n,buildMultiLevelMatrix:i,setMonthPicker:a}=Ii(),s=r,o=e,{defaultedAriaLabels:l,defaultedTextInput:u,defaultedConfig:c}=jt(o),{hideNavigationButtons:f}=cc(),d=be(!1),p=be(null),h=be(null),m=be([]),v=be(),g=be(null),y=be(0),_=be(null);_b(()=>{p.value=null}),Mt(()=>{Pr().then(()=>I()),o.noOverlayFocus||P(),b(!0)}),Ri(()=>b(!1));const b=$=>{var w;o.arrowNavigation&&((w=o.headerRefs)!=null&&w.length?a($):n($))},P=()=>{var $;const w=Lt(h);w&&(u.value.enabled||(p.value?($=p.value)==null||$.focus({preventScroll:!0}):w.focus({preventScroll:!0})),d.value=w.clientHeight({dp__overlay:!0,"dp--overlay-absolute":!o.useRelative,"dp--overlay-relative":o.useRelative})),A=he(()=>o.useRelative?{height:`${o.height}px`,width:"260px"}:void 0),U=he(()=>({dp__overlay_col:!0})),F=he(()=>({dp__btn:!0,dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:d.value,dp__button_bottom:o.isLast})),x=he(()=>{var $,w;return{dp__overlay_container:!0,dp__container_flex:(($=o.items)==null?void 0:$.length)<=6,dp__container_block:((w=o.items)==null?void 0:w.length)>6}});yr(()=>o.items,()=>I(),{deep:!0});const I=()=>{Pr().then(()=>{const $=Lt(p),w=Lt(h),Y=Lt(g),X=Lt(_),ae=Y?Y.getBoundingClientRect().height:0;w&&(w.getBoundingClientRect().height?y.value=w.getBoundingClientRect().height-ae:y.value=c.value.modeHeight-ae),$&&X&&(X.scrollTop=$.offsetTop-X.offsetTop-(y.value/2-$.getBoundingClientRect().height)-ae)})},M=$=>{$.disabled||s("selected",$.value)},Z=()=>{s("toggle"),s("reset-flow")},B=()=>{o.escClose&&Z()},R=($,w,Y,X)=>{$&&((w.active||w.value===o.focusValue)&&(p.value=$),o.arrowNavigation&&(Array.isArray(m.value[Y])?m.value[Y][X]=$:m.value[Y]=[$],j()))},j=()=>{var $,w;const Y=($=o.headerRefs)!=null&&$.length?[o.headerRefs].concat(m.value):m.value.concat([o.skipButtonRef?[]:[g.value]]);i(Wt(Y),(w=o.headerRefs)!=null&&w.length?"monthPicker":"selectionGrid")},D=$=>{o.arrowNavigation||mi($,c.value,!0)},L=$=>{v.value=$,s("hover-value",$)};return t({focusGrid:P}),($,w)=>{var Y;return T(),W("div",{ref_key:"gridWrapRef",ref:h,class:te(k.value),style:gr(A.value),role:"dialog",tabindex:"0",onKeydown:[je(Se(B,["prevent"]),["esc"]),w[0]||(w[0]=je(Se(X=>D(X),["prevent"]),["left"])),w[1]||(w[1]=je(Se(X=>D(X),["prevent"]),["up"])),w[2]||(w[2]=je(Se(X=>D(X),["prevent"]),["down"])),w[3]||(w[3]=je(Se(X=>D(X),["prevent"]),["right"]))]},[O("div",{ref_key:"containerRef",ref:_,class:te(x.value),role:"grid",style:gr({height:`${y.value}px`})},[O("div",QI,[se($.$slots,"header")]),$.$slots.overlay?se($.$slots,"overlay",{key:0}):(T(!0),W(ye,{key:1},We($.items,(X,ae)=>(T(),W("div",{key:ae,class:te(["dp__overlay_row",{dp__flex_row:$.items.length>=3}]),role:"row"},[(T(!0),W(ye,null,We(X,(oe,ee)=>(T(),W("div",{key:oe.value,ref_for:!0,ref:V=>R(V,oe,ae,ee),role:"gridcell",class:te(U.value),"aria-selected":oe.active,"aria-disabled":oe.disabled||void 0,tabindex:"0",onClick:V=>M(oe),onKeydown:[je(Se(V=>M(oe),["prevent"]),["enter"]),je(Se(V=>M(oe),["prevent"]),["space"])],onMouseover:V=>L(oe.value)},[O("div",{class:te(oe.className)},[$.$slots.item?se($.$slots,"item",{key:0,item:oe}):ne("",!0),$.$slots.item?ne("",!0):(T(),W(ye,{key:1},[He(ge(oe.text),1)],64))],2)],42,zI))),128))],2))),128))],6),$.$slots["button-icon"]?Gt((T(),W("button",{key:0,ref_key:"toggleButton",ref:g,type:"button","aria-label":(Y=J(l))==null?void 0:Y.toggleOverlay,class:te(F.value),tabindex:"0",onClick:Z,onKeydown:[je(Z,["enter"]),je(Z,["tab"])]},[se($.$slots,"button-icon")],42,KI)),[[Gr,!J(f)($.hideNavigation,$.type)]]):ne("",!0)],46,YI)}}}),dc=Ct({__name:"InstanceWrap",props:{multiCalendars:{},stretch:{type:Boolean}},setup(e){const t=e,r=he(()=>t.multiCalendars>0?[...Array(t.multiCalendars).keys()]:[0]),n=he(()=>({dp__instance_calendar:t.multiCalendars>0}));return(i,a)=>(T(),W("div",{class:te({dp__menu_inner:!i.stretch,"dp--menu--inner-stretched":i.stretch,dp__flex_display:i.multiCalendars>0})},[(T(!0),W(ye,null,We(r.value,(s,o)=>(T(),W("div",{key:s,class:te(n.value)},[se(i.$slots,"default",{instance:s,index:o})],2))),128))],2))}}),GI=["aria-label","aria-disabled"],qs=Ct({compatConfig:{MODE:3},__name:"ArrowBtn",props:{ariaLabel:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(e,{emit:t}){const r=t,n=be(null);return Mt(()=>r("set-ref",n)),(i,a)=>(T(),W("button",{ref_key:"elRef",ref:n,type:"button",class:"dp__btn dp--arrow-btn-nav",tabindex:"0","aria-label":i.ariaLabel,"aria-disabled":i.disabled||void 0,onClick:a[0]||(a[0]=s=>i.$emit("activate")),onKeydown:[a[1]||(a[1]=je(Se(s=>i.$emit("activate"),["prevent"]),["enter"])),a[2]||(a[2]=je(Se(s=>i.$emit("activate"),["prevent"]),["space"]))]},[O("span",{class:te(["dp__inner_nav",{dp__inner_nav_disabled:i.disabled}])},[se(i.$slots,"default")],2)],40,GI))}}),XI={class:"dp--year-mode-picker"},ZI=["aria-label"],Dw=Ct({__name:"YearModePicker",props:{...on,showYearPicker:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},instance:{type:Number,default:0},year:{type:Number,default:0},isDisabled:{type:Function,default:()=>!1}},emits:["toggle-year-picker","year-select","handle-year"],setup(e,{emit:t}){const r=t,n=e,{showRightIcon:i,showLeftIcon:a}=cc(),{defaultedConfig:s,defaultedMultiCalendars:o,defaultedAriaLabels:l,defaultedTransitions:u}=jt(n),{showTransition:c,transitionName:f}=sl(u),d=(m=!1,v)=>{r("toggle-year-picker",{flow:m,show:v})},p=m=>{r("year-select",m)},h=(m=!1)=>{r("handle-year",m)};return(m,v)=>{var g,y,_;return T(),W("div",XI,[J(a)(J(o),e.instance)?(T(),Re(qs,{key:0,ref:"mpPrevIconRef","aria-label":(g=J(l))==null?void 0:g.prevYear,disabled:e.isDisabled(!1),onActivate:v[0]||(v[0]=b=>h(!1))},{default:Ie(()=>[m.$slots["arrow-left"]?se(m.$slots,"arrow-left",{key:0}):ne("",!0),m.$slots["arrow-left"]?ne("",!0):(T(),Re(J(Yh),{key:1}))]),_:3},8,["aria-label","disabled"])):ne("",!0),O("button",{ref:"mpYearButtonRef",class:"dp__btn dp--year-select",type:"button","aria-label":(y=J(l))==null?void 0:y.openYearsOverlay,onClick:v[1]||(v[1]=()=>d(!1)),onKeydown:v[2]||(v[2]=je(()=>d(!1),["enter"]))},[m.$slots.year?se(m.$slots,"year",{key:0,year:e.year}):ne("",!0),m.$slots.year?ne("",!0):(T(),W(ye,{key:1},[He(ge(e.year),1)],64))],40,ZI),J(i)(J(o),e.instance)?(T(),Re(qs,{key:1,ref:"mpNextIconRef","aria-label":(_=J(l))==null?void 0:_.nextYear,disabled:e.isDisabled(!0),onActivate:v[3]||(v[3]=b=>h(!0))},{default:Ie(()=>[m.$slots["arrow-right"]?se(m.$slots,"arrow-right",{key:0}):ne("",!0),m.$slots["arrow-right"]?ne("",!0):(T(),Re(J(Qh),{key:1}))]),_:3},8,["aria-label","disabled"])):ne("",!0),Ae(Ai,{name:J(f)(e.showYearPicker),css:J(c)},{default:Ie(()=>[e.showYearPicker?(T(),Re(ll,{key:0,items:e.items,"text-input":m.textInput,"esc-close":m.escClose,config:m.config,"is-last":m.autoApply&&!J(s).keepActionRow,"hide-navigation":m.hideNavigation,type:"year",onToggle:d,onSelected:v[4]||(v[4]=b=>p(b))},nr({"button-icon":Ie(()=>[m.$slots["calendar-icon"]?se(m.$slots,"calendar-icon",{key:0}):ne("",!0),m.$slots["calendar-icon"]?ne("",!0):(T(),Re(J(is),{key:1}))]),_:2},[m.$slots["year-overlay-value"]?{name:"item",fn:Ie(({item:b})=>[se(m.$slots,"year-overlay-value",{text:b.text,value:b.value})]),key:"0"}:void 0]),1032,["items","text-input","esc-close","config","is-last","hide-navigation"])):ne("",!0)]),_:3},8,["name","css"])])}}}),rp=(e,t,r)=>{if(t.value&&Array.isArray(t.value))if(t.value.some(n=>it(e,n))){const n=t.value.filter(i=>!it(i,e));t.value=n.length?n:null}else(r&&+r>t.value.length||!r)&&t.value.push(e);else t.value=[e]},np=(e,t,r)=>{let n=e.value?e.value.slice():[];return n.length===2&&n[1]!==null&&(n=[]),n.length?Kt(t,n[0])?(n.unshift(t),r("range-start",n[0]),r("range-start",n[1])):(n[1]=t,r("range-end",t)):(n=[t],r("range-start",t)),e.value=n,n},hc=(e,t,r,n)=>{e[0]&&e[1]&&r&&t("auto-apply"),e[0]&&!e[1]&&n&&r&&t("auto-apply")},jw=e=>{Array.isArray(e.value)&&e.value.length<=2&&e.range?e.modelValue.value=e.value.map(t=>tn(me(t),e.timezone)):Array.isArray(e.value)||(e.modelValue.value=tn(me(e.value),e.timezone))},Fw=({multiCalendars:e,highlight:t,calendars:r,modelValue:n,props:i,year:a,month:s,emit:o})=>{const l=he(()=>ep(i.yearRange,i.reverseYears)),u=be([!1]),c=he(()=>(b,P)=>{const k=Ot(Kr(new Date),{month:s.value(b),year:a.value(b)});return kw(k,i.maxDate,i.minDate,i.preventMinMaxNavigation,P)}),f=()=>{for(let b=0;b{if(!b)return f();const P=Ot(me(),r.value[b]);return r.value[0].year=Ye(yw(P,e.value.count-1)),f()},p=b=>i.focusStartDate?b[0]:b[1]?b[1]:b[0],h=()=>{if(n.value){const b=Array.isArray(n.value)?p(n.value):n.value;r.value[0]={month:Je(b),year:Ye(b)}}};Mt(()=>{h(),e.value.count&&f()});const m=(b,P)=>{r.value[P].year=b,e.value.count&&!e.value.solo&&d(P)},v=he(()=>b=>za(l.value,P=>{const k=a.value(b)===P.value,A=wo(P.value,Ka(i.minDate),Ka(i.maxDate)),U=tp(t.value,P.value);return{active:k,disabled:A,highlighted:U}})),g=(b,P)=>{m(b,P),_(P)},y=(b,P=!1)=>{if(!c.value(b,P)){const k=P?a.value(b)+1:a.value(b)-1;m(k,b)}},_=(b,P=!1,k)=>{P||o("reset-flow"),k!==void 0?u.value[b]=k:u.value[b]=!u.value[b],u.value||o("overlay-closed")};return{isDisabled:c,groupedYears:v,showYearPicker:u,selectYear:m,toggleYearPicker:_,handleYearSelect:g,handleYear:y}},JI=(e,t)=>{const{defaultedMultiCalendars:r,defaultedAriaLabels:n,defaultedTransitions:i,defaultedConfig:a,defaultedHighlight:s}=jt(e),{modelValue:o,year:l,month:u,calendars:c}=ol(e,t),f=he(()=>Pw(e.formatLocale,e.locale,e.monthNameFormat)),d=be(null),{selectYear:p,groupedYears:h,showYearPicker:m,toggleYearPicker:v,handleYearSelect:g,handleYear:y,isDisabled:_}=Fw({modelValue:o,multiCalendars:r,highlight:s,calendars:c,year:l,month:u,props:e,emit:t});Mt(()=>{e.startDate&&(o.value&&e.focusStartDate||!o.value)&&p(Ye(me(e.startDate)),0)});const b=D=>D?{month:Je(D),year:Ye(D)}:{month:null,year:null},P=()=>o.value?Array.isArray(o.value)?o.value.map(D=>b(D)):b(o.value):b(),k=(D,L)=>{const $=c.value[D],w=P();return Array.isArray(w)?w.some(Y=>Y.year===($==null?void 0:$.year)&&Y.month===L):($==null?void 0:$.year)===w.year&&L===w.month},A=(D,L,$)=>{var w,Y;const X=P();return Array.isArray(X)?l.value(L)===((w=X[$])==null?void 0:w.year)&&D===((Y=X[$])==null?void 0:Y.month):!1},U=(D,L)=>{if(e.range){const $=P();if(Array.isArray(o.value)&&Array.isArray($)){const w=A(D,L,0)||A(D,L,1),Y=Un(Kr(me()),D,l.value(L));return uc(o.value,d.value,Y)&&!w}return!1}return!1},F=he(()=>D=>za(f.value,L=>{const $=k(D,L.value),w=wo(L.value,Ow(l.value(D),e.minDate),$w(l.value(D),e.maxDate))||bI(e.disabledDates,l.value(D)).includes(L.value),Y=U(L.value,D),X=Ew(s.value,L.value,l.value(D));return{active:$,disabled:w,isBetween:Y,highlighted:X}})),x=(D,L)=>Un(Kr(me()),D,l.value(L)),I=(D,L)=>{const $=o.value?o.value:Kr(new Date);o.value=Un($,D,l.value(L)),t("auto-apply")},M=(D,L)=>{const $=np(o,x(D,L),t);hc($,t,e.autoApply,e.modelAuto)},Z=(D,L)=>{rp(x(D,L),o,e.multiDatesLimit),t("auto-apply",!0)},B=(D,L)=>(c.value[L].month=D,j(L,c.value[L].year,D),e.multiDates?Z(D,L):e.range?M(D,L):I(D,L)),R=(D,L)=>{p(D,L),j(L,D,null)},j=(D,L,$)=>{let w=$;if(!w&&w!==0){const Y=P();w=Array.isArray(Y)?Y[D].month:Y.month}t("update-month-year",{instance:D,year:L,month:w})};return{groupedMonths:F,groupedYears:h,year:l,isDisabled:_,defaultedMultiCalendars:r,defaultedAriaLabels:n,defaultedTransitions:i,defaultedConfig:a,showYearPicker:m,modelValue:o,presetDate:(D,L)=>{jw({value:D,modelValue:o,range:e.range,timezone:L?void 0:e.timezone}),t("auto-apply")},setHoverDate:(D,L)=>{d.value=x(D,L)},selectMonth:B,selectYear:R,toggleYearPicker:v,handleYearSelect:g,handleYear:y,getModelMonthYear:P}},eD=Ct({compatConfig:{MODE:3},__name:"MonthPicker",props:{...on},emits:["update:internal-model-value","overlay-closed","reset-flow","range-start","range-end","auto-apply","update-month-year","mount"],setup(e,{expose:t,emit:r}){const n=r,i=oa(),a=Er(i,"yearMode"),s=e;Mt(()=>{s.shadow||n("mount",null)});const{groupedMonths:o,groupedYears:l,year:u,isDisabled:c,defaultedMultiCalendars:f,defaultedConfig:d,showYearPicker:p,modelValue:h,presetDate:m,setHoverDate:v,selectMonth:g,selectYear:y,toggleYearPicker:_,handleYearSelect:b,handleYear:P,getModelMonthYear:k}=JI(s,n);return t({getSidebarProps:()=>({modelValue:h,year:u,getModelMonthYear:k,selectMonth:g,selectYear:y,handleYear:P}),presetDate:m,toggleYearPicker:A=>_(0,A)}),(A,U)=>(T(),Re(dc,{"multi-calendars":J(f).count,stretch:""},{default:Ie(({instance:F})=>[A.$slots["month-year"]?se(A.$slots,"month-year",Qe($t({key:0},{year:J(u),months:J(o)(F),years:J(l)(F),selectMonth:J(g),selectYear:J(y),instance:F}))):(T(),Re(ll,{key:1,items:J(o)(F),"arrow-navigation":A.arrowNavigation,"is-last":A.autoApply&&!J(d).keepActionRow,"esc-close":A.escClose,height:J(d).modeHeight,config:A.config,"no-overlay-focus":!!(A.noOverlayFocus||A.textInput),"use-relative":"",type:"month",onSelected:x=>J(g)(x,F),onHoverValue:x=>J(v)(x,F)},{header:Ie(()=>[Ae(Dw,$t(A.$props,{items:J(l)(F),instance:F,"show-year-picker":J(p)[F],year:J(u)(F),"is-disabled":x=>J(c)(F,x),onHandleYear:x=>J(P)(F,x),onYearSelect:x=>J(b)(x,F),onToggleYearPicker:x=>J(_)(F,x==null?void 0:x.flow,x==null?void 0:x.show)}),nr({_:2},[We(J(a),(x,I)=>({name:x,fn:Ie(M=>[se(A.$slots,x,Qe(lt(M)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),_:2},1032,["items","arrow-navigation","is-last","esc-close","height","config","no-overlay-focus","onSelected","onHoverValue"]))]),_:3},8,["multi-calendars"]))}}),tD=(e,t)=>{const{modelValue:r}=ol(e,t),n=be(null),{defaultedHighlight:i,defaultedFilters:a}=jt(e),s=be();Mt(()=>{e.startDate&&(r.value&&e.focusStartDate||!r.value)&&(s.value=Ye(me(e.startDate)))});const o=f=>Array.isArray(r.value)?r.value.some(d=>Ye(d)===f):r.value?Ye(r.value)===f:!1,l=f=>e.range&&Array.isArray(r.value)?uc(r.value,n.value,c(f)):!1,u=he(()=>za(ep(e.yearRange,e.reverseYears),f=>{const d=o(f.value),p=wo(f.value,Ka(e.minDate),Ka(e.maxDate))||a.value.years.includes(f.value),h=l(f.value)&&!d,m=tp(i.value,f.value);return{active:d,disabled:p,isBetween:h,highlighted:m}})),c=f=>On(Kr(new Date),f);return{groupedYears:u,modelValue:r,focusYear:s,setHoverValue:f=>{n.value=On(Kr(new Date),f)},selectYear:f=>{var d;if(e.multiDates)return r.value?Array.isArray(r.value)&&(((d=r.value)==null?void 0:d.map(p=>Ye(p))).includes(f)?r.value=r.value.filter(p=>Ye(p)!==f):r.value.push(On(ir(me()),f))):r.value=[On(ir(me()),f)],t("auto-apply",!0);if(e.range){const p=np(r,c(f),t);return hc(p,t,e.autoApply,e.modelAuto)}r.value=c(f),t("auto-apply")}}},rD=Ct({compatConfig:{MODE:3},__name:"YearPicker",props:{...on},emits:["update:internal-model-value","reset-flow","range-start","range-end","auto-apply"],setup(e,{expose:t,emit:r}){const n=r,i=e,{groupedYears:a,modelValue:s,focusYear:o,selectYear:l,setHoverValue:u}=tD(i,n),{defaultedConfig:c}=jt(i);return t({getSidebarProps:()=>({modelValue:s,selectYear:l})}),(f,d)=>(T(),W("div",null,[f.$slots["month-year"]?se(f.$slots,"month-year",Qe($t({key:0},{years:J(a),selectYear:J(l)}))):(T(),Re(ll,{key:1,items:J(a),"is-last":f.autoApply&&!J(c).keepActionRow,height:J(c).modeHeight,config:f.config,"no-overlay-focus":!!(f.noOverlayFocus||f.textInput),"focus-value":J(o),type:"year","use-relative":"",onSelected:J(l),onHoverValue:J(u)},nr({_:2},[f.$slots["year-overlay-value"]?{name:"item",fn:Ie(({item:p})=>[se(f.$slots,"year-overlay-value",{text:p.text,value:p.value})]),key:"0"}:void 0]),1032,["items","is-last","height","config","no-overlay-focus","focus-value","onSelected","onHoverValue"]))]))}}),nD={key:0,class:"dp__time_input"},iD=["aria-label","onKeydown","onClick"],aD=O("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),sD=O("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),oD=["aria-label","disabled","onKeydown","onClick"],lD=["aria-label","onKeydown","onClick"],uD=O("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),cD=O("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),fD={key:0},dD=["aria-label","onKeydown"],hD=Ct({compatConfig:{MODE:3},__name:"TimeInput",props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...on},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:r}){const n=r,i=e,{setTimePickerElements:a,setTimePickerBackRef:s}=Ii(),{defaultedAriaLabels:o,defaultedTransitions:l,defaultedFilters:u,defaultedConfig:c}=jt(i),{transitionName:f,showTransition:d}=sl(l),p=Rr({hours:!1,minutes:!1,seconds:!1}),h=be("AM"),m=be(null),v=be([]);Mt(()=>{n("mounted")});const g=V=>Ot(new Date,{hours:V.hours,minutes:V.minutes,seconds:i.enableSeconds?V.seconds:0,milliseconds:0}),y=he(()=>V=>B(V,i[V])||b(V,i[V])),_=he(()=>({hours:i.hours,minutes:i.minutes,seconds:i.seconds})),b=(V,K)=>i.range&&!i.disableTimeRangeValidation?!i.validateTime(V,K):!1,P=(V,K)=>{if(i.range&&!i.disableTimeRangeValidation){const H=K?+i[`${V}Increment`]:-+i[`${V}Increment`],E=i[V]+H;return!i.validateTime(V,E)}return!1},k=he(()=>V=>!j(+i[V]+ +i[`${V}Increment`],V)||P(V,!0)),A=he(()=>V=>!j(+i[V]-+i[`${V}Increment`],V)||P(V,!1)),U=(V,K)=>X0(Ot(me(),V),K),F=(V,K)=>kE(Ot(me(),V),K),x=he(()=>({dp__time_col:!0,dp__time_col_block:!i.timePickerInline,dp__time_col_reg_block:!i.enableSeconds&&i.is24&&!i.timePickerInline,dp__time_col_reg_inline:!i.enableSeconds&&i.is24&&i.timePickerInline,dp__time_col_reg_with_button:!i.enableSeconds&&!i.is24,dp__time_col_sec:i.enableSeconds&&i.is24,dp__time_col_sec_with_button:i.enableSeconds&&!i.is24})),I=he(()=>{const V=[{type:"hours"},{type:"",separator:!0},{type:"minutes"}];return i.enableSeconds?V.concat([{type:"",separator:!0},{type:"seconds"}]):V}),M=he(()=>I.value.filter(V=>!V.separator)),Z=he(()=>V=>{if(V==="hours"){const K=Y(+i.hours);return{text:K<10?`0${K}`:`${K}`,value:K}}return{text:i[V]<10?`0${i[V]}`:`${i[V]}`,value:i[V]}}),B=(V,K)=>{var H;if(!i.disabledTimesConfig)return!1;const E=i.disabledTimesConfig(i.order,V==="hours"?K:void 0);return E[V]?!!((H=E[V])!=null&&H.includes(K)):!0},R=V=>{const K=i.is24?24:12,H=V==="hours"?K:60,E=+i[`${V}GridIncrement`],q=V==="hours"&&!i.is24?E:0,G=[];for(let Q=q;Q({active:!1,disabled:u.value.times[V].includes(Q.value)||!j(Q.value,V)||B(V,Q.value)||b(V,Q.value)}))},j=(V,K)=>{const H=i.minTime?g(Yc(i.minTime)):null,E=i.maxTime?g(Yc(i.maxTime)):null,q=g(Yc(_.value,K,V));return H&&E?(bo(q,E)||Ta(q,E))&&(yo(q,H)||Ta(q,H)):H?yo(q,H)||Ta(q,H):E?bo(q,E)||Ta(q,E):!0},D=V=>i[`no${V[0].toUpperCase()+V.slice(1)}Overlay`],L=V=>{D(V)||(p[V]=!p[V],p[V]||n("overlay-closed"))},$=V=>V==="hours"?en:V==="minutes"?Rn:Ya,w=(V,K=!0)=>{const H=K?U:F,E=K?+i[`${V}Increment`]:-+i[`${V}Increment`];j(+i[V]+E,V)&&n(`update:${V}`,$(V)(H({[V]:+i[V]},{[V]:+i[`${V}Increment`]})))},Y=V=>i.is24?V:(V>=12?h.value="PM":h.value="AM",aI(V)),X=()=>{h.value==="PM"?(h.value="AM",n("update:hours",i.hours-12)):(h.value="PM",n("update:hours",i.hours+12)),n("am-pm-change",h.value)},ae=V=>{p[V]=!0},oe=(V,K,H)=>{if(V&&i.arrowNavigation){Array.isArray(v.value[K])?v.value[K][H]=V:v.value[K]=[V];const E=v.value.reduce((q,G)=>G.map((Q,S)=>[...q[S]||[],G[S]]),[]);s(i.closeTimePickerBtn),m.value&&(E[1]=E[1].concat(m.value)),a(E,i.order)}},ee=(V,K)=>(L(V),V==="hours"&&!i.is24?n(`update:${V}`,h.value==="PM"?K+12:K):n(`update:${V}`,K));return t({openChildCmp:ae}),(V,K)=>{var H;return V.disabled?ne("",!0):(T(),W("div",nD,[(T(!0),W(ye,null,We(I.value,(E,q)=>{var G,Q,S;return T(),W("div",{key:q,class:te(x.value)},[E.separator?(T(),W(ye,{key:0},[He(" : ")],64)):(T(),W(ye,{key:1},[O("button",{ref_for:!0,ref:C=>oe(C,q,0),type:"button",class:te({dp__btn:!0,dp__inc_dec_button:!V.timePickerInline,dp__inc_dec_button_inline:V.timePickerInline,dp__tp_inline_btn_top:V.timePickerInline,dp__inc_dec_button_disabled:k.value(E.type)}),"aria-label":(G=J(o))==null?void 0:G.incrementValue(E.type),tabindex:"0",onKeydown:[je(Se(C=>w(E.type),["prevent"]),["enter"]),je(Se(C=>w(E.type),["prevent"]),["space"])],onClick:C=>w(E.type)},[i.timePickerInline?(T(),W(ye,{key:1},[aD,sD],64)):(T(),W(ye,{key:0},[V.$slots["arrow-up"]?se(V.$slots,"arrow-up",{key:0}):ne("",!0),V.$slots["arrow-up"]?ne("",!0):(T(),Re(J(Kh),{key:1}))],64))],42,iD),O("button",{ref_for:!0,ref:C=>oe(C,q,1),type:"button","aria-label":(Q=J(o))==null?void 0:Q.openTpOverlay(E.type),class:te({dp__time_display:!0,dp__time_display_block:!V.timePickerInline,dp__time_display_inline:V.timePickerInline,"dp--time-invalid":y.value(E.type),"dp--time-overlay-btn":!y.value(E.type)}),disabled:D(E.type),tabindex:"0",onKeydown:[je(Se(C=>L(E.type),["prevent"]),["enter"]),je(Se(C=>L(E.type),["prevent"]),["space"])],onClick:C=>L(E.type)},[V.$slots[E.type]?se(V.$slots,E.type,{key:0,text:Z.value(E.type).text,value:Z.value(E.type).value}):ne("",!0),V.$slots[E.type]?ne("",!0):(T(),W(ye,{key:1},[He(ge(Z.value(E.type).text),1)],64))],42,oD),O("button",{ref_for:!0,ref:C=>oe(C,q,2),type:"button",class:te({dp__btn:!0,dp__inc_dec_button:!V.timePickerInline,dp__inc_dec_button_inline:V.timePickerInline,dp__tp_inline_btn_bottom:V.timePickerInline,dp__inc_dec_button_disabled:A.value(E.type)}),"aria-label":(S=J(o))==null?void 0:S.decrementValue(E.type),tabindex:"0",onKeydown:[je(Se(C=>w(E.type,!1),["prevent"]),["enter"]),je(Se(C=>w(E.type,!1),["prevent"]),["space"])],onClick:C=>w(E.type,!1)},[i.timePickerInline?(T(),W(ye,{key:1},[uD,cD],64)):(T(),W(ye,{key:0},[V.$slots["arrow-down"]?se(V.$slots,"arrow-down",{key:0}):ne("",!0),V.$slots["arrow-down"]?ne("",!0):(T(),Re(J(Gh),{key:1}))],64))],42,lD)],64))],2)}),128)),V.is24?ne("",!0):(T(),W("div",fD,[V.$slots["am-pm-button"]?se(V.$slots,"am-pm-button",{key:0,toggle:X,value:h.value}):ne("",!0),V.$slots["am-pm-button"]?ne("",!0):(T(),W("button",{key:1,ref_key:"amPmButton",ref:m,type:"button",class:"dp__pm_am_button",role:"button","aria-label":(H=J(o))==null?void 0:H.amPmButton,tabindex:"0",onClick:X,onKeydown:[je(Se(X,["prevent"]),["enter"]),je(Se(X,["prevent"]),["space"])]},ge(h.value),41,dD))])),(T(!0),W(ye,null,We(M.value,(E,q)=>(T(),Re(Ai,{key:q,name:J(f)(p[E.type]),css:J(d)},{default:Ie(()=>[p[E.type]?(T(),Re(ll,{key:0,items:R(E.type),"is-last":V.autoApply&&!J(c).keepActionRow,"esc-close":V.escClose,type:E.type,"text-input":V.textInput,config:V.config,"arrow-navigation":V.arrowNavigation,onSelected:G=>ee(E.type,G),onToggle:G=>L(E.type),onResetFlow:K[0]||(K[0]=G=>V.$emit("reset-flow"))},nr({"button-icon":Ie(()=>[V.$slots["clock-icon"]?se(V.$slots,"clock-icon",{key:0}):ne("",!0),V.$slots["clock-icon"]?ne("",!0):(T(),Re(Xi(V.timePickerInline?J(is):J(zh)),{key:1}))]),_:2},[V.$slots[`${E.type}-overlay-value`]?{name:"item",fn:Ie(({item:G})=>[se(V.$slots,`${E.type}-overlay-value`,{text:G.text,value:G.value})]),key:"0"}:void 0]),1032,["items","is-last","esc-close","type","text-input","config","arrow-navigation","onSelected","onToggle"])):ne("",!0)]),_:2},1032,["name","css"]))),128))]))}}}),pD={class:"dp--tp-wrap"},mD=["aria-label","tabindex"],vD=["tabindex"],gD=["aria-label"],Mw=Ct({compatConfig:{MODE:3},__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...on},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:r}){const n=r,i=e,{buildMatrix:a,setTimePicker:s}=Ii(),o=oa(),{defaultedTransitions:l,defaultedAriaLabels:u,defaultedTextInput:c,defaultedConfig:f}=jt(i),{transitionName:d,showTransition:p}=sl(l),{hideNavigationButtons:h}=cc(),m=be(null),v=be(null),g=be([]),y=be(null);Mt(()=>{n("mount"),!i.timePicker&&i.arrowNavigation?a([Lt(m.value)],"time"):s(!0,i.timePicker)});const _=he(()=>i.range&&i.modelAuto?xw(i.internalModelValue):!0),b=be(!1),P=R=>({hours:Array.isArray(i.hours)?i.hours[R]:i.hours,minutes:Array.isArray(i.minutes)?i.minutes[R]:i.minutes,seconds:Array.isArray(i.seconds)?i.seconds[R]:i.seconds}),k=he(()=>{const R=[];if(i.range)for(let j=0;j<2;j++)R.push(P(j));else R.push(P(0));return R}),A=(R,j=!1,D="")=>{j||n("reset-flow"),b.value=R,n(R?"overlay-opened":"overlay-closed"),i.arrowNavigation&&s(R),Pr(()=>{D!==""&&g.value[0]&&g.value[0].openChildCmp(D)})},U=he(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:i.autoApply&&!f.value.keepActionRow})),F=Er(o,"timePicker"),x=(R,j,D)=>i.range?j===0?[R,k.value[1][D]]:[k.value[0][D],R]:R,I=R=>{n("update:hours",R)},M=R=>{n("update:minutes",R)},Z=R=>{n("update:seconds",R)},B=()=>{if(y.value&&!c.value.enabled&&!i.noOverlayFocus){const R=oI(y.value);R&&R.focus({preventScroll:!0})}};return t({toggleTimePicker:A}),(R,j)=>{var D;return T(),W("div",pD,[!R.timePicker&&!R.timePickerInline?Gt((T(),W("button",{key:0,ref_key:"openTimePickerBtn",ref:m,type:"button",class:te(U.value),"aria-label":(D=J(u))==null?void 0:D.openTimePicker,tabindex:R.noOverlayFocus?void 0:0,onKeydown:[j[0]||(j[0]=je(L=>A(!0),["enter"])),j[1]||(j[1]=je(L=>A(!0),["space"]))],onClick:j[2]||(j[2]=L=>A(!0))},[R.$slots["clock-icon"]?se(R.$slots,"clock-icon",{key:0}):ne("",!0),R.$slots["clock-icon"]?ne("",!0):(T(),Re(J(zh),{key:1}))],42,mD)),[[Gr,!J(h)(R.hideNavigation,"time")]]):ne("",!0),Ae(Ai,{name:J(d)(b.value),css:J(p)&&!R.timePickerInline},{default:Ie(()=>{var L;return[b.value||R.timePicker||R.timePickerInline?(T(),W("div",{key:0,ref_key:"overlayRef",ref:y,class:te({dp__overlay:!R.timePickerInline,"dp--overlay-absolute":!i.timePicker&&!R.timePickerInline,"dp--overlay-relative":i.timePicker}),style:gr(R.timePicker?{height:`${J(f).modeHeight}px`}:void 0),tabindex:R.timePickerInline?void 0:0},[O("div",{class:te(R.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[R.$slots["time-picker-overlay"]?se(R.$slots,"time-picker-overlay",{key:0,hours:e.hours,minutes:e.minutes,seconds:e.seconds,setHours:I,setMinutes:M,setSeconds:Z}):ne("",!0),R.$slots["time-picker-overlay"]?ne("",!0):(T(),W("div",{key:1,class:te(R.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(T(!0),W(ye,null,We(k.value,($,w)=>Gt((T(),Re(hD,$t({key:w},{...R.$props,order:w,hours:$.hours,minutes:$.minutes,seconds:$.seconds,closeTimePickerBtn:v.value,disabledTimesConfig:e.disabledTimesConfig,disabled:w===0?R.fixedStart:R.fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:g,"validate-time":(Y,X)=>e.validateTime(Y,x(X,w,Y)),"onUpdate:hours":Y=>I(x(Y,w,"hours")),"onUpdate:minutes":Y=>M(x(Y,w,"minutes")),"onUpdate:seconds":Y=>Z(x(Y,w,"seconds")),onMounted:B,onOverlayClosed:B,onAmPmChange:j[3]||(j[3]=Y=>R.$emit("am-pm-change",Y))}),nr({_:2},[We(J(F),(Y,X)=>({name:Y,fn:Ie(ae=>[se(R.$slots,Y,Qe(lt(ae)))])}))]),1040,["validate-time","onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[Gr,w===0?!0:_.value]])),128))],2)),!R.timePicker&&!R.timePickerInline?Gt((T(),W("button",{key:2,ref_key:"closeTimePickerBtn",ref:v,type:"button",class:te(U.value),"aria-label":(L=J(u))==null?void 0:L.closeTimePicker,tabindex:"0",onKeydown:[j[4]||(j[4]=je($=>A(!1),["enter"])),j[5]||(j[5]=je($=>A(!1),["space"]))],onClick:j[6]||(j[6]=$=>A(!1))},[R.$slots["calendar-icon"]?se(R.$slots,"calendar-icon",{key:0}):ne("",!0),R.$slots["calendar-icon"]?ne("",!0):(T(),Re(J(is),{key:1}))],42,gD)),[[Gr,!J(h)(R.hideNavigation,"time")]]):ne("",!0)],2)],14,vD)):ne("",!0)]}),_:3},8,["name","css"])])}}}),Lw=(e,t,r,n)=>{const i=(g,y)=>Array.isArray(t[g])?t[g][y]:t[g],a=g=>e.enableSeconds?Array.isArray(t.seconds)?t.seconds[g]:t.seconds:0,s=(g,y)=>g?y!==void 0?vi(g,i("hours",y),i("minutes",y),a(y)):vi(g,t.hours,t.minutes,a()):Vh(me(),a(y)),o=(g,y)=>{t[g]=y},l=(g,y)=>{const _=Object.fromEntries(Object.keys(t).map(b=>b===g?[b,y]:[b,t[b]].slice()));if(e.range&&!e.disableTimeRangeValidation){const b=k=>r.value?vi(r.value[k],_.hours[k],_.minutes[k],_.seconds[k]):null,P=k=>qh(r.value[k],0);return!(it(b(0),b(1))&&(yo(b(0),P(1))||bo(b(1),P(0))))}return!0},u=(g,y)=>{l(g,y)&&(o(g,y),n&&n())},c=g=>{u("hours",g)},f=g=>{u("minutes",g)},d=g=>{u("seconds",g)},p=(g,y,_,b)=>{y&&c(g),!y&&!_&&f(g),_&&d(g),r.value&&b(r.value)},h=g=>{if(g){const y=Array.isArray(g),_=y?[+g[0].hours,+g[1].hours]:+g.hours,b=y?[+g[0].minutes,+g[1].minutes]:+g.minutes,P=y?[+g[0].seconds,+g[1].seconds]:+g.seconds;o("hours",_),o("minutes",b),e.enableSeconds&&o("seconds",P)}},m=(g,y)=>{const _={hours:Array.isArray(t.hours)?t.hours[g]:t.hours,disabledArr:[]};return(y||y===0)&&(_.hours=y),Array.isArray(e.disabledTimes)&&(_.disabledArr=e.range&&Array.isArray(e.disabledTimes[g])?e.disabledTimes[g]:e.disabledTimes),_},v=he(()=>(g,y)=>{var b,P;var _;if(Array.isArray(e.disabledTimes)){const{disabledArr:k,hours:A}=m(g,y),U=k.filter(F=>+F.hours===A);return((_=U[0])==null?void 0:_.minutes)==="*"?{hours:[A],minutes:void 0,seconds:void 0}:{hours:[],minutes:(b=U==null?void 0:U.map(F=>+F.minutes))!=null?b:[],seconds:(P=U==null?void 0:U.map(F=>F.seconds?+F.seconds:void 0))!=null?P:[]}}return{hours:[],minutes:[],seconds:[]}});return{setTime:o,updateHours:c,updateMinutes:f,updateSeconds:d,getSetDateTime:s,updateTimeValues:p,getSecondsValue:a,assignStartTime:h,validateTime:l,disabledTimesConfig:v}},yD=(e,t)=>{const{modelValue:r,time:n}=ol(e,t),{defaultedStartTime:i}=jt(e),{updateTimeValues:a,getSetDateTime:s,setTime:o,assignStartTime:l,disabledTimesConfig:u,validateTime:c}=Lw(e,n,r),f=y=>{const{hours:_,minutes:b,seconds:P}=y;return{hours:+_,minutes:+b,seconds:P?+P:0}},d=()=>{if(e.startTime){if(Array.isArray(e.startTime)){const _=f(e.startTime[0]),b=f(e.startTime[1]);return[Ot(me(),_),Ot(me(),b)]}const y=f(e.startTime);return Ot(me(),y)}return e.range?[null,null]:null},p=()=>{if(e.range){const[y,_]=d();r.value=[s(y,0),s(_,1)]}else r.value=s(d())},h=y=>Array.isArray(y)?[Ji(me(y[0])),Ji(me(y[1]))]:[Ji(y!=null?y:me())],m=(y,_,b)=>{o("hours",y),o("minutes",_),o("seconds",e.enableSeconds?b:0)},v=()=>{const[y,_]=h(r.value);return e.range?m([y.hours,_.hours],[y.minutes,_.minutes],[y.seconds,_.minutes]):m(y.hours,y.minutes,y.seconds)};Mt(()=>{if(!e.shadow)return l(i.value),r.value?v():p()});const g=()=>{Array.isArray(r.value)?r.value=r.value.map((y,_)=>y&&s(y,_)):r.value=s(r.value),t("time-update")};return{modelValue:r,time:n,disabledTimesConfig:u,updateTime:(y,_=!0,b=!1)=>{a(y,_,b,g)},validateTime:c}},bD=Ct({compatConfig:{MODE:3},__name:"TimePickerSolo",props:{...on},emits:["update:internal-model-value","time-update","am-pm-change"],setup(e,{expose:t,emit:r}){const n=r,i=e,a=oa(),s=Er(a,"timePicker"),{time:o,modelValue:l,disabledTimesConfig:u,updateTime:c,validateTime:f}=yD(i,n);return t({getSidebarProps:()=>({modelValue:l,time:o,updateTime:c})}),(d,p)=>(T(),Re(dc,{"multi-calendars":0,stretch:""},{default:Ie(()=>[Ae(Mw,$t(d.$props,{hours:J(o).hours,minutes:J(o).minutes,seconds:J(o).seconds,"internal-model-value":d.internalModelValue,"disabled-times-config":J(u),"validate-time":J(f),"onUpdate:hours":p[0]||(p[0]=h=>J(c)(h)),"onUpdate:minutes":p[1]||(p[1]=h=>J(c)(h,!1)),"onUpdate:seconds":p[2]||(p[2]=h=>J(c)(h,!1,!0)),onAmPmChange:p[3]||(p[3]=h=>d.$emit("am-pm-change",h))}),nr({_:2},[We(J(s),(h,m)=>({name:h,fn:Ie(v=>[se(d.$slots,h,Qe(lt(v)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"])]),_:3}))}}),wD={class:"dp__month_year_row"},_D=["aria-label","onClick","onKeydown"],SD=Ct({compatConfig:{MODE:3},__name:"DpHeader",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},...on},emits:["update-month-year","mount","reset-flow","overlay-closed"],setup(e,{expose:t,emit:r}){const n=r,i=e,{defaultedTransitions:a,defaultedAriaLabels:s,defaultedMultiCalendars:o,defaultedFilters:l,defaultedConfig:u,defaultedHighlight:c}=jt(i),{transitionName:f,showTransition:d}=sl(a),{buildMatrix:p}=Ii(),{handleMonthYearChange:h,isDisabled:m,updateMonthYear:v}=EI(i,n),{showLeftIcon:g,showRightIcon:y}=cc(),_=be(!1),b=be(!1),P=be([null,null,null,null]);Mt(()=>{n("mount")});const k=w=>({get:()=>i[w],set:Y=>{const X=w===zr.month?zr.year:zr.month;n("update-month-year",{[w]:Y,[X]:i[X]}),w===zr.month?B(!0):R(!0)}}),A=he(k(zr.month)),U=he(k(zr.year)),F=he(()=>w=>({month:i.month,year:i.year,items:w===zr.month?i.months:i.years,instance:i.instance,updateMonthYear:v,toggle:w===zr.month?B:R})),x=he(()=>i.months.find(Y=>Y.value===i.month)||{text:"",value:0}),I=he(()=>za(i.months,w=>{const Y=i.month===w.value,X=wo(w.value,Ow(i.year,i.minDate),$w(i.year,i.maxDate))||l.value.months.includes(w.value),ae=Ew(c.value,w.value,i.year);return{active:Y,disabled:X,highlighted:ae}})),M=he(()=>za(i.years,w=>{const Y=i.year===w.value,X=wo(w.value,Ka(i.minDate),Ka(i.maxDate))||l.value.years.includes(w.value),ae=tp(c.value,w.value);return{active:Y,disabled:X,highlighted:ae}})),Z=(w,Y)=>{Y!==void 0?w.value=Y:w.value=!w.value,w.value||n("overlay-closed")},B=(w=!1,Y)=>{j(w),Z(_,Y)},R=(w=!1,Y)=>{j(w),Z(b,Y)},j=w=>{w||n("reset-flow")},D=(w,Y)=>{i.arrowNavigation&&(P.value[Y]=Lt(w),p(P.value,"monthYear"))},L=he(()=>{var w,Y;return[{type:zr.month,index:1,toggle:B,modelValue:A.value,updateModelValue:X=>A.value=X,text:x.value.text,showSelectionGrid:_.value,items:I.value,ariaLabel:(w=s.value)==null?void 0:w.openMonthsOverlay},{type:zr.year,index:2,toggle:R,modelValue:U.value,updateModelValue:X=>U.value=X,text:i.year,showSelectionGrid:b.value,items:M.value,ariaLabel:(Y=s.value)==null?void 0:Y.openYearsOverlay}]}),$=he(()=>i.disableYearSelect?[L.value[0]]:i.yearFirst?[...L.value].reverse():L.value);return t({toggleMonthPicker:B,toggleYearPicker:R,handleMonthYearChange:h}),(w,Y)=>{var X,ae,oe;return T(),W("div",wD,[w.$slots["month-year"]?se(w.$slots,"month-year",Qe($t({key:0},{month:e.month,year:e.year,months:e.months,years:e.years,updateMonthYear:J(v),handleMonthYearChange:J(h),instance:e.instance}))):(T(),W(ye,{key:1},[J(g)(J(o),e.instance)&&!w.vertical?(T(),Re(qs,{key:0,"aria-label":(X=J(s))==null?void 0:X.prevMonth,disabled:J(m)(!1),onActivate:Y[0]||(Y[0]=ee=>J(h)(!1,!0)),onSetRef:Y[1]||(Y[1]=ee=>D(ee,0))},{default:Ie(()=>[w.$slots["arrow-left"]?se(w.$slots,"arrow-left",{key:0}):ne("",!0),w.$slots["arrow-left"]?ne("",!0):(T(),Re(J(Yh),{key:1}))]),_:3},8,["aria-label","disabled"])):ne("",!0),O("div",{class:te(["dp__month_year_wrap",{dp__year_disable_select:w.disableYearSelect}])},[(T(!0),W(ye,null,We($.value,(ee,V)=>(T(),W(ye,{key:ee.type},[O("button",{ref_for:!0,ref:K=>D(K,V+1),type:"button",class:"dp__btn dp__month_year_select",tabindex:"0","aria-label":ee.ariaLabel,onClick:ee.toggle,onKeydown:[je(Se(ee.toggle,["prevent"]),["enter"]),je(Se(ee.toggle,["prevent"]),["space"])]},[w.$slots[ee.type]?se(w.$slots,ee.type,{key:0,text:ee.text,value:i[ee.type]}):ne("",!0),w.$slots[ee.type]?ne("",!0):(T(),W(ye,{key:1},[He(ge(ee.text),1)],64))],40,_D),Ae(Ai,{name:J(f)(ee.showSelectionGrid),css:J(d)},{default:Ie(()=>[ee.showSelectionGrid?(T(),Re(ll,{key:0,items:ee.items,"arrow-navigation":w.arrowNavigation,"hide-navigation":w.hideNavigation,"is-last":w.autoApply&&!J(u).keepActionRow,"skip-button-ref":!1,config:w.config,type:ee.type,"header-refs":[],"esc-close":w.escClose,"text-input":w.textInput,onSelected:ee.updateModelValue,onToggle:ee.toggle},nr({"button-icon":Ie(()=>[w.$slots["calendar-icon"]?se(w.$slots,"calendar-icon",{key:0}):ne("",!0),w.$slots["calendar-icon"]?ne("",!0):(T(),Re(J(is),{key:1}))]),_:2},[w.$slots[`${ee.type}-overlay-value`]?{name:"item",fn:Ie(({item:K})=>[se(w.$slots,`${ee.type}-overlay-value`,{text:K.text,value:K.value})]),key:"0"}:void 0,w.$slots[`${ee.type}-overlay`]?{name:"overlay",fn:Ie(()=>[se(w.$slots,`${ee.type}-overlay`,Qe(lt(F.value(ee.type))))]),key:"1"}:void 0,w.$slots[`${ee.type}-overlay-header`]?{name:"header",fn:Ie(()=>[se(w.$slots,`${ee.type}-overlay-header`,{toggle:ee.toggle})]),key:"2"}:void 0]),1032,["items","arrow-navigation","hide-navigation","is-last","config","type","esc-close","text-input","onSelected","onToggle"])):ne("",!0)]),_:2},1032,["name","css"])],64))),128))],2),J(g)(J(o),e.instance)&&w.vertical?(T(),Re(qs,{key:1,"aria-label":(ae=J(s))==null?void 0:ae.prevMonth,disabled:J(m)(!1),onActivate:Y[2]||(Y[2]=ee=>J(h)(!1,!0))},{default:Ie(()=>[w.$slots["arrow-up"]?se(w.$slots,"arrow-up",{key:0}):ne("",!0),w.$slots["arrow-up"]?ne("",!0):(T(),Re(J(Kh),{key:1}))]),_:3},8,["aria-label","disabled"])):ne("",!0),J(y)(J(o),e.instance)?(T(),Re(qs,{key:2,ref:"rightIcon",disabled:J(m)(!0),"aria-label":(oe=J(s))==null?void 0:oe.nextMonth,onActivate:Y[3]||(Y[3]=ee=>J(h)(!0,!0)),onSetRef:Y[4]||(Y[4]=ee=>D(ee,w.disableYearSelect?2:3))},{default:Ie(()=>[w.$slots[w.vertical?"arrow-down":"arrow-right"]?se(w.$slots,w.vertical?"arrow-down":"arrow-right",{key:0}):ne("",!0),w.$slots[w.vertical?"arrow-down":"arrow-right"]?ne("",!0):(T(),Re(Xi(w.vertical?J(Gh):J(Qh)),{key:1}))]),_:3},8,["disabled","aria-label"])):ne("",!0)],64))])}}}),PD=["aria-label"],xD={class:"dp__calendar_header",role:"row"},OD={key:0,class:"dp__calendar_header_item",role:"gridcell"},$D=O("div",{class:"dp__calendar_header_separator"},null,-1),RD=["aria-label"],AD={key:0,role:"gridcell",class:"dp__calendar_item dp__week_num"},TD={class:"dp__cell_inner"},kD=["id","aria-selected","aria-disabled","aria-label","onClick","onKeydown","onMouseenter","onMouseleave"],CD=Ct({compatConfig:{MODE:3},__name:"DpCalendar",props:{mappedDates:{type:Array,default:()=>[]},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},...on},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(e,{expose:t,emit:r}){const n=r,i=e,{buildMultiLevelMatrix:a}=Ii(),{defaultedTransitions:s,defaultedConfig:o,defaultedAriaLabels:l,defaultedMultiCalendars:u,defaultedWeekNumbers:c}=jt(i),f=be(null),d=be({bottom:"",left:"",transform:""}),p=be([]),h=be(null),m=be(!0),v=be(""),g=be({startX:0,endX:0,startY:0,endY:0}),y=be([]),_=be({left:"50%"}),b=he(()=>i.calendar?i.calendar(i.mappedDates):i.mappedDates),P=he(()=>i.dayNames?Array.isArray(i.dayNames)?i.dayNames:i.dayNames(i.locale,+i.weekStart):iI(i.formatLocale,i.locale,+i.weekStart));Mt(()=>{n("mount",{cmp:"calendar",refs:p}),o.value.noSwipe||h.value&&(h.value.addEventListener("touchstart",R,{passive:!1}),h.value.addEventListener("touchend",j,{passive:!1}),h.value.addEventListener("touchmove",D,{passive:!1})),i.monthChangeOnScroll&&h.value&&h.value.addEventListener("wheel",w,{passive:!1})});const k=ee=>ee?i.vertical?"vNext":"next":i.vertical?"vPrevious":"previous",A=(ee,V)=>{if(i.transitions){const K=ir(Un(me(),i.month,i.year));v.value=rr(ir(Un(me(),ee,V)),K)?s.value[k(!0)]:s.value[k(!1)],m.value=!1,Pr(()=>{m.value=!0})}},U=he(()=>({[i.calendarClassName]:!!i.calendarClassName})),F=he(()=>ee=>{const V=sI(ee);return{dp__marker_dot:V.type==="dot",dp__marker_line:V.type==="line"}}),x=he(()=>ee=>it(ee,f.value)),I=he(()=>({dp__calendar:!0,dp__calendar_next:u.value.count>0&&i.instance!==0})),M=he(()=>ee=>i.hideOffsetDates?ee.current:!0),Z=async(ee,V,K)=>{var H,E;if(n("set-hover-date",ee),(E=(H=ee.marker)==null?void 0:H.tooltip)!=null&&E.length){const q=Lt(p.value[V][K]);if(q){const{width:G,height:Q}=q.getBoundingClientRect();f.value=ee.value;let S={left:`${G/2}px`},C=-50;if(await Pr(),y.value[0]){const{left:N,width:re}=y.value[0].getBoundingClientRect();N<0&&(S={left:"0"},C=0,_.value.left=`${G/2}px`),window.innerWidth{f.value&&(f.value=null,d.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),n("tooltip-close",ee.marker))},R=ee=>{g.value.startX=ee.changedTouches[0].screenX,g.value.startY=ee.changedTouches[0].screenY},j=ee=>{g.value.endX=ee.changedTouches[0].screenX,g.value.endY=ee.changedTouches[0].screenY,L()},D=ee=>{i.vertical&&!i.inline&&ee.preventDefault()},L=()=>{const ee=i.vertical?"Y":"X";Math.abs(g.value[`start${ee}`]-g.value[`end${ee}`])>10&&n("handle-swipe",g.value[`start${ee}`]>g.value[`end${ee}`]?"right":"left")},$=(ee,V,K)=>{ee&&(Array.isArray(p.value[V])?p.value[V][K]=ee:p.value[V]=[ee]),i.arrowNavigation&&a(p.value,"calendar")},w=ee=>{i.monthChangeOnScroll&&(ee.preventDefault(),n("handle-scroll",ee))},Y=ee=>c.value.type==="local"?v2(ee.value,{weekStartsOn:+i.weekStart}):c.value.type==="iso"?d2(ee.value):typeof c.value.type=="function"?c.value.type(ee.value):"",X=ee=>{const V=ee[0];return c.value.hideOnOffsetDates?ee.some(K=>K.current)?Y(V):"":Y(V)},ae=(ee,V)=>{mi(ee,o.value),n("select-date",V)},oe=ee=>{mi(ee,o.value)};return t({triggerTransition:A}),(ee,V)=>{var K;return T(),W("div",{class:te(I.value)},[O("div",{ref_key:"calendarWrapRef",ref:h,role:"grid",class:te(U.value),"aria-label":(K=J(l))==null?void 0:K.calendarWrap},[(T(),W(ye,{key:0},[O("div",xD,[ee.weekNumbers?(T(),W("div",OD,ge(ee.weekNumName),1)):ne("",!0),(T(!0),W(ye,null,We(P.value,(H,E)=>(T(),W("div",{key:E,class:"dp__calendar_header_item",role:"gridcell"},[ee.$slots["calendar-header"]?se(ee.$slots,"calendar-header",{key:0,day:H,index:E}):ne("",!0),ee.$slots["calendar-header"]?ne("",!0):(T(),W(ye,{key:1},[He(ge(H),1)],64))]))),128))]),$D,Ae(Ai,{name:v.value,css:!!ee.transitions},{default:Ie(()=>{var H;return[m.value?(T(),W("div",{key:0,class:"dp__calendar",role:"rowgroup","aria-label":((H=J(l))==null?void 0:H.calendarDays)||void 0},[(T(!0),W(ye,null,We(b.value,(E,q)=>(T(),W("div",{key:q,class:"dp__calendar_row",role:"row"},[ee.weekNumbers?(T(),W("div",AD,[O("div",TD,ge(X(E.days)),1)])):ne("",!0),(T(!0),W(ye,null,We(E.days,(G,Q)=>{var S,C,N;return T(),W("div",{id:G.value.toISOString().split("T")[0],ref_for:!0,ref:re=>$(re,q,Q),key:Q+q,role:"gridcell",class:"dp__calendar_item","aria-selected":G.classData.dp__active_date||G.classData.dp__range_start||G.classData.dp__range_start,"aria-disabled":G.classData.dp__cell_disabled||void 0,"aria-label":(C=(S=J(l))==null?void 0:S.day)==null?void 0:C.call(S,G),tabindex:"0",onClick:Se(re=>ae(re,G),["prevent"]),onKeydown:[je(re=>ee.$emit("select-date",G),["enter"]),je(re=>ee.$emit("handle-space",G),["space"])],onMouseenter:re=>Z(G,q,Q),onMouseleave:re=>B(G)},[O("div",{class:te(["dp__cell_inner",G.classData])},[ee.$slots.day&&M.value(G)?se(ee.$slots,"day",{key:0,day:+G.text,date:G.value}):ne("",!0),ee.$slots.day?ne("",!0):(T(),W(ye,{key:1},[He(ge(G.text),1)],64)),G.marker&&M.value(G)?(T(),W(ye,{key:2},[ee.$slots.marker?se(ee.$slots,"marker",{key:0,marker:G.marker,day:+G.text,date:G.value}):(T(),W("div",{key:1,class:te(F.value(G.marker)),style:gr(G.marker.color?{backgroundColor:G.marker.color}:{})},null,6))],64)):ne("",!0),x.value(G.value)?(T(),W("div",{key:3,ref_for:!0,ref_key:"activeTooltip",ref:y,class:"dp__marker_tooltip",style:gr(d.value)},[(N=G.marker)!=null&&N.tooltip?(T(),W("div",{key:0,class:"dp__tooltip_content",onClick:oe},[(T(!0),W(ye,null,We(G.marker.tooltip,(re,ie)=>(T(),W("div",{key:ie,class:"dp__tooltip_text"},[ee.$slots["marker-tooltip"]?se(ee.$slots,"marker-tooltip",{key:0,tooltip:re,day:G.value}):ne("",!0),ee.$slots["marker-tooltip"]?ne("",!0):(T(),W(ye,{key:1},[O("div",{class:"dp__tooltip_mark",style:gr(re.color?{backgroundColor:re.color}:{})},null,4),O("div",null,ge(re.text),1)],64))]))),128)),O("div",{class:"dp__arrow_bottom_tp",style:gr(_.value)},null,4)])):ne("",!0)],4)):ne("",!0)],2)],40,kD)}),128))]))),128))],8,RD)):ne("",!0)]}),_:3},8,["name","css"])],64))],10,PD)],2)}}}),Ev=e=>Array.isArray(e),ED=(e,t,r,n)=>{const i=be([]),{modelValue:a,calendars:s,time:o}=ol(e,t),{defaultedMultiCalendars:l,defaultedStartTime:u}=jt(e),{validateMonthYearInRange:c,isDisabled:f,isDateRangeAllowed:d,checkMinMaxRange:p}=la(e),{updateTimeValues:h,getSetDateTime:m,setTime:v,assignStartTime:g,validateTime:y,disabledTimesConfig:_}=Lw(e,o,a,n),b=he(()=>z=>s.value[z]?s.value[z].month:0),P=he(()=>z=>s.value[z]?s.value[z].year:0),k=(z,le,Oe)=>{var Ee,Ve;s.value[z]||(s.value[z]={month:0,year:0}),s.value[z].month=Rv(le)?(Ee=s.value[z])==null?void 0:Ee.month:le,s.value[z].year=Rv(Oe)?(Ve=s.value[z])==null?void 0:Ve.year:Oe},A=()=>{e.autoApply&&t("select-date")};yr(a,(z,le)=>{JSON.stringify(z)!==JSON.stringify(le)&&x()}),Mt(()=>{e.shadow||(a.value||(w(),u.value&&g(u.value)),x(!0),e.focusStartDate&&e.startDate&&w())});const U=he(()=>{var z;return(z=e.flow)!=null&&z.length&&!e.partialFlow?e.flowStep===e.flow.length:!0}),F=()=>{e.autoApply&&U.value&&t("auto-apply",e.partialFlow)},x=(z=!1)=>{if(a.value)return Array.isArray(a.value)?(i.value=a.value,j(z)):M(a.value,z);if(l.value.count&&z&&!e.startDate)return I(me(),z)},I=(z,le=!1)=>{if((!l.value.count||!l.value.static||le)&&k(0,Je(z),Ye(z)),l.value.count&&(!l.value.solo||!a.value))for(let Oe=1;Oe{I(z),v("hours",en(z)),v("minutes",Rn(z)),v("seconds",Ya(z)),l.value.count&&le&&$()},Z=z=>{if(l.value.count){if(l.value.solo)return 0;const le=Je(z[0]),Oe=Je(z[1]);return Math.abs(Oe-le){z[1]&&e.showLastInRange?I(z[Z(z)],le):I(z[0],le);const Oe=(Ee,Ve)=>[Ee(z[0]),z[1]?Ee(z[1]):o[Ve][1]];v("hours",Oe(en,"hours")),v("minutes",Oe(Rn,"minutes")),v("seconds",Oe(Ya,"seconds"))},R=(z,le)=>{if((e.range||e.weekPicker)&&!e.multiDates)return B(z,le);if(e.multiDates&&le){const Oe=z[z.length-1];return M(Oe,le)}},j=z=>{const le=a.value;R(le,z),l.value.count&&l.value.solo&&$()},D=(z,le)=>{const Oe=Ot(me(),{month:b.value(le),year:P.value(le)}),Ee=z<0?Jr(Oe,1):Qa(Oe,1);c(Je(Ee),Ye(Ee),z<0,e.preventMinMaxNavigation)&&(k(le,Je(Ee),Ye(Ee)),t("update-month-year",{instance:le,month:Je(Ee),year:Ye(Ee)}),l.value.count&&!l.value.solo&&L(le),r())},L=z=>{for(let le=z-1;le>=0;le--){const Oe=Qa(Ot(me(),{month:b.value(le+1),year:P.value(le+1)}),1);k(le,Je(Oe),Ye(Oe))}for(let le=z+1;le<=l.value.count-1;le++){const Oe=Jr(Ot(me(),{month:b.value(le-1),year:P.value(le-1)}),1);k(le,Je(Oe),Ye(Oe))}},$=()=>{if(Array.isArray(a.value)&&a.value.length===2){const z=me(me(a.value[1]?a.value[1]:Jr(a.value[0],1))),[le,Oe]=[Je(a.value[0]),Ye(a.value[0])],[Ee,Ve]=[Je(a.value[1]),Ye(a.value[1])];(le!==Ee||le===Ee&&Oe!==Ve)&&l.value.solo&&k(1,Je(z),Ye(z))}else a.value&&!Array.isArray(a.value)&&(k(0,Je(a.value),Ye(a.value)),I(me()))},w=()=>{e.startDate&&(k(0,Je(me(e.startDate)),Ye(me(e.startDate))),l.value.count&&L(0))},Y=fI((z,le)=>{e.monthChangeOnScroll&&D(e.monthChangeOnScroll!=="inverse"?-z.deltaY:z.deltaY,le)},50),X=(z,le,Oe=!1)=>{e.monthChangeOnArrows&&e.vertical===Oe&&ae(z,le)},ae=(z,le)=>{D(z==="right"?-1:1,le)},oe=z=>e.markers.find(le=>it(pI(z.value),tn(me(le.date),e.timezone))),ee=(z,le)=>{switch(e.sixWeeks===!0?"append":e.sixWeeks){case"prepend":return[!0,!1];case"center":return[z==0,!0];case"fair":return[z==0||le>z,!0];case"append":return[!1,!1];default:return[!1,!1]}},V=(z,le,Oe,Ee)=>{if(e.sixWeeks&&z.length<6){const Ve=6-z.length,ct=(le.getDay()+7-Ee)%7,Ht=6-(Oe.getDay()+7-Ee)%7,[_e,Le]=ee(ct,Ht);for(let De=1;De<=Ve;De++)if(Le?!!(De%2)==_e:_e){const lr=z[0].days[0],In=K(Nn(lr.value,-7),Je(le));z.unshift({days:In})}else{const lr=z[z.length-1],In=lr.days[lr.days.length-1],_c=K(Nn(In.value,1),Je(le));z.push({days:_c})}}return z},K=(z,le)=>{const Oe=me(z),Ee=[];for(let Ve=0;Ve<7;Ve++){const ct=Nn(Oe,Ve),Ht=Je(ct)!==le;Ee.push({text:e.hideOffsetDates&&Ht?"":ct.getDate(),value:ct,current:!Ht,classData:{}})}return Ee},H=(z,le)=>{const Oe=[],Ee=new Date(le,z),Ve=new Date(le,z+1,0),ct=e.weekStart,Ht=na(Ee,{weekStartsOn:ct}),_e=Le=>{const De=K(Le,z);if(Oe.push({days:De}),!Oe[Oe.length-1].days.some(lr=>it(ir(lr.value),ir(Ve)))){const lr=Nn(Le,7);_e(lr)}};return _e(Ht),V(Oe,Ee,Ve,ct)},E=z=>(a.value=Jl(me(z.value),e.timezone,e.weekStart),t("date-update",z.value),F()),q=z=>{const le=vi(me(z.value),o.hours,o.minutes,ue());t("date-update",le),e.multiDates?rp(le,a,e.multiDatesLimit):a.value=le,n(),Pr().then(()=>{F()})},G=z=>e.noDisabledRange?Aw(i.value[0],z).some(le=>f(le)):!1,Q=()=>{i.value=a.value?a.value.slice():[],i.value.length===2&&!(e.fixedStart||e.fixedEnd)&&(i.value=[])},S=(z,le)=>{const Oe=[me(z.value),Nn(me(z.value),+e.autoRange)];d(Oe)?(le&&C(z.value),i.value=Oe):t("invalid-date",z.value)},C=z=>{const le=Je(me(z)),Oe=Ye(me(z));if(k(0,le,Oe),l.value.count>0)for(let Ee=1;EeArray.isArray(a.value)&&a.value.length===2?e.fixedStart&&(rr(z,a.value[0])||it(z,a.value[0]))?[a.value[0],z]:e.fixedEnd&&(Kt(z,a.value[1])||it(z,a.value[1]))?[z,a.value[1]]:(t("invalid-fixed-range",z),a.value):[],re=z=>{if(G(z.value)||!p(z.value,a.value,e.fixedStart?0:1))return t("invalid-date",z.value);i.value=N(me(z.value))},ie=(z,le)=>{if(Q(),e.autoRange)return S(z,le);if(e.fixedStart||e.fixedEnd)return re(z);i.value[0]?p(me(z.value),a.value)&&!G(z.value)?Kt(me(z.value),me(i.value[0]))?(i.value.unshift(me(z.value)),t("range-end",i.value[0])):(i.value[1]=me(z.value),t("range-end",i.value[1])):(e.autoApply&&t("auto-apply-invalid",z.value),t("invalid-date",z.value)):(i.value[0]=me(z.value),t("range-start",i.value[0]))},ue=(z=!0)=>e.enableSeconds?Array.isArray(o.seconds)?z?o.seconds[0]:o.seconds[1]:o.seconds:0,pe=z=>{i.value[z]=vi(i.value[z],o.hours[z],o.minutes[z],ue(z!==1))},fe=()=>{var z,le;i.value[0]&&i.value[1]&&+((z=i.value)==null?void 0:z[0])>+((le=i.value)==null?void 0:le[1])&&(i.value.reverse(),t("range-start",i.value[0]),t("range-end",i.value[1]))},de=()=>{i.value.length&&(i.value[0]&&!i.value[1]?pe(0):(pe(0),pe(1),n()),fe(),a.value=i.value.slice(),hc(i.value,t,e.autoApply,e.modelAuto))},ce=(z,le=!1)=>{if(f(z.value)||!z.current&&e.hideOffsetDates)return t("invalid-date",z.value);if(e.weekPicker)return E(z);if(!e.range)return q(z);Ev(o.hours)&&Ev(o.minutes)&&!e.multiDates&&(ie(z,le),de())},Pe=(z,le)=>{var Oe;k(z,le.month,le.year),l.value.count&&!l.value.solo&&L(z),t("update-month-year",{instance:z,month:le.month,year:le.year}),r(l.value.solo?z:void 0);const Ee=(Oe=e.flow)!=null&&Oe.length?e.flow[e.flowStep]:void 0;!le.fromNav&&(Ee===gn.month||Ee===gn.year)&&n()},ve=(z,le)=>{jw({value:z,modelValue:a,range:e.range,timezone:le?void 0:e.timezone}),A(),e.multiCalendars&&Pr().then(()=>x(!0))},xe=()=>{e.range?a.value&&Array.isArray(a.value)&&a.value[0]?a.value=Kt(me(),a.value[0])?[me(),a.value[0]]:[a.value[0],me()]:a.value=[me()]:a.value=me(),A()},Me=()=>{if(Array.isArray(a.value))if(e.multiDates){const z=Ce();a.value[a.value.length-1]=m(z)}else a.value=a.value.map((z,le)=>z&&m(z,le));else a.value=m(a.value);t("time-update")},Ce=()=>Array.isArray(a.value)&&a.value.length?a.value[a.value.length-1]:null;return{calendars:s,modelValue:a,month:b,year:P,time:o,disabledTimesConfig:_,validateTime:y,getCalendarDays:H,getMarker:oe,handleScroll:Y,handleSwipe:ae,handleArrow:X,selectDate:ce,updateMonthYear:Pe,presetDate:ve,selectCurrentDate:xe,updateTime:(z,le=!0,Oe=!1)=>{h(z,le,Oe,Me)}}},ID={key:0},DD=Ct({__name:"DatePicker",props:{...on},emits:["tooltip-open","tooltip-close","mount","update:internal-model-value","update-flow-step","reset-flow","auto-apply","focus-menu","select-date","range-start","range-end","invalid-fixed-range","time-update","am-pm-change","time-picker-open","time-picker-close","recalculate-position","update-month-year","auto-apply-invalid","date-update","invalid-date"],setup(e,{expose:t,emit:r}){const n=r,i=e,{calendars:a,month:s,year:o,modelValue:l,time:u,disabledTimesConfig:c,validateTime:f,getCalendarDays:d,getMarker:p,handleArrow:h,handleScroll:m,handleSwipe:v,selectDate:g,updateMonthYear:y,presetDate:_,selectCurrentDate:b,updateTime:P}=ED(i,n,$,w),k=oa(),{setHoverDate:A,getDayClassData:U,clearHoverDate:F}=FI(l,i),{defaultedMultiCalendars:x}=jt(i),I=be([]),M=be([]),Z=be(null),B=Er(k,"calendar"),R=Er(k,"monthYear"),j=Er(k,"timePicker"),D=X=>{i.shadow||n("mount",X)};yr(a,()=>{i.shadow||setTimeout(()=>{n("recalculate-position")},0)},{deep:!0});const L=he(()=>X=>d(s.value(X),o.value(X)).map(ae=>({...ae,days:ae.days.map(oe=>(oe.marker=p(oe),oe.classData=U(oe),oe))})));function $(X){var ae;X||X===0?(ae=M.value[X])==null||ae.triggerTransition(s.value(X),o.value(X)):M.value.forEach((oe,ee)=>oe.triggerTransition(s.value(ee),o.value(ee)))}function w(){n("update-flow-step")}const Y=(X,ae=!1)=>{g(X,ae),i.spaceConfirm&&n("select-date")};return t({clearHoverDate:F,presetDate:_,selectCurrentDate:b,toggleMonthPicker:(X,ae,oe=0)=>{var ee;(ee=I.value[oe])==null||ee.toggleMonthPicker(X,ae)},toggleYearPicker:(X,ae,oe=0)=>{var ee;(ee=I.value[oe])==null||ee.toggleYearPicker(X,ae)},toggleTimePicker:(X,ae,oe)=>{var ee;(ee=Z.value)==null||ee.toggleTimePicker(X,ae,oe)},handleArrow:h,updateMonthYear:y,getSidebarProps:()=>({modelValue:l,month:s,year:o,time:u,updateTime:P,updateMonthYear:y,selectDate:g,presetDate:_})}),(X,ae)=>(T(),W(ye,null,[Ae(dc,{"multi-calendars":J(x).count},{default:Ie(({instance:oe,index:ee})=>[X.disableMonthYearSelect?ne("",!0):(T(),Re(SD,$t({key:0,ref:V=>{V&&(I.value[ee]=V)},months:J(Pw)(X.formatLocale,X.locale,X.monthNameFormat),years:J(ep)(X.yearRange,X.reverseYears),month:J(s)(oe),year:J(o)(oe),instance:oe},X.$props,{onMount:ae[0]||(ae[0]=V=>D(J(ea).header)),onResetFlow:ae[1]||(ae[1]=V=>X.$emit("reset-flow")),onUpdateMonthYear:V=>J(y)(oe,V),onOverlayClosed:ae[2]||(ae[2]=V=>X.$emit("focus-menu"))}),nr({_:2},[We(J(R),(V,K)=>({name:V,fn:Ie(H=>[se(X.$slots,V,Qe(lt(H)))])}))]),1040,["months","years","month","year","instance","onUpdateMonthYear"])),Ae(CD,$t({ref:V=>{V&&(M.value[ee]=V)},"mapped-dates":L.value(oe),month:J(s)(oe),year:J(o)(oe),instance:oe},X.$props,{onSelectDate:V=>J(g)(V,oe!==1),onHandleSpace:V=>Y(V,oe!==1),onSetHoverDate:ae[3]||(ae[3]=V=>J(A)(V)),onHandleScroll:V=>J(m)(V,oe),onHandleSwipe:V=>J(v)(V,oe),onMount:ae[4]||(ae[4]=V=>D(J(ea).calendar)),onResetFlow:ae[5]||(ae[5]=V=>X.$emit("reset-flow")),onTooltipOpen:ae[6]||(ae[6]=V=>X.$emit("tooltip-open",V)),onTooltipClose:ae[7]||(ae[7]=V=>X.$emit("tooltip-close",V))}),nr({_:2},[We(J(B),(V,K)=>({name:V,fn:Ie(H=>[se(X.$slots,V,Qe(lt({...H})))])}))]),1040,["mapped-dates","month","year","instance","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])]),_:3},8,["multi-calendars"]),X.enableTimePicker?(T(),W("div",ID,[X.$slots["time-picker"]?se(X.$slots,"time-picker",Qe($t({key:0},{time:J(u),updateTime:J(P)}))):(T(),Re(Mw,$t({key:1,ref_key:"timePickerRef",ref:Z},X.$props,{hours:J(u).hours,minutes:J(u).minutes,seconds:J(u).seconds,"internal-model-value":X.internalModelValue,"disabled-times-config":J(c),"validate-time":J(f),onMount:ae[8]||(ae[8]=oe=>D(J(ea).timePicker)),"onUpdate:hours":ae[9]||(ae[9]=oe=>J(P)(oe)),"onUpdate:minutes":ae[10]||(ae[10]=oe=>J(P)(oe,!1)),"onUpdate:seconds":ae[11]||(ae[11]=oe=>J(P)(oe,!1,!0)),onResetFlow:ae[12]||(ae[12]=oe=>X.$emit("reset-flow")),onOverlayClosed:ae[13]||(ae[13]=oe=>X.$emit("time-picker-close")),onOverlayOpened:ae[14]||(ae[14]=oe=>X.$emit("time-picker-open",oe)),onAmPmChange:ae[15]||(ae[15]=oe=>X.$emit("am-pm-change",oe))}),nr({_:2},[We(J(j),(oe,ee)=>({name:oe,fn:Ie(V=>[se(X.$slots,oe,Qe(lt(V)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"]))])):ne("",!0)],64))}}),jD=(e,t)=>{const r=be(),{defaultedMultiCalendars:n,defaultedConfig:i,defaultedHighlight:a}=jt(e),{modelValue:s,year:o,month:l,calendars:u}=ol(e,t),{isDisabled:c}=la(e),{selectYear:f,groupedYears:d,showYearPicker:p,isDisabled:h,toggleYearPicker:m,handleYearSelect:v,handleYear:g}=Fw({modelValue:s,multiCalendars:n,highlight:a,calendars:u,month:l,year:o,props:e,emit:t}),y=(F,x)=>[F,x].map(I=>pi(I,"MMMM",{locale:e.formatLocale})).join("-"),_=he(()=>F=>s.value?Array.isArray(s.value)?s.value.some(x=>vv(F,x)):vv(s.value,F):!1),b=F=>{if(e.range){if(Array.isArray(s.value)){const x=it(F,s.value[0])||it(F,s.value[1]);return uc(s.value,r.value,F)&&!x}return!1}return!1},P=he(()=>F=>{const x=Ot(new Date,{year:o.value(F)});return tC({start:nC(x),end:rC(x)}).map(I=>{const M=go(I),Z=uv(I),B=c(I),R=b(M),j=typeof a.value=="function"?a.value({quarter:lv(M),year:Ye(M)}):!!a.value.quarters.find(D=>D.quarter===lv(M)&&D.year===Ye(M));return{text:y(M,Z),value:M,active:_.value(M),highlighted:j,disabled:B,isBetween:R}})}),k=F=>{rp(F,s,e.multiDatesLimit),t("auto-apply",!0)},A=F=>{const x=np(s,F,t);hc(x,t,e.autoApply,e.modelAuto)},U=F=>{s.value=F,t("auto-apply")};return{defaultedConfig:i,defaultedMultiCalendars:n,groupedYears:d,year:o,isDisabled:h,quarters:P,showYearPicker:p,modelValue:s,setHoverDate:F=>{r.value=F},selectYear:f,selectQuarter:(F,x,I)=>{if(!I)return u.value[x].month=Je(uv(F)),e.multiDates?k(F):e.range?A(F):U(F)},toggleYearPicker:m,handleYearSelect:v,handleYear:g}},FD={class:"dp--quarter-items"},MD=["disabled","onClick","onMouseover"],LD=Ct({compatConfig:{MODE:3},__name:"QuarterPicker",props:{...on},emits:["update:internal-model-value","reset-flow","overlay-closed","auto-apply","range-start","range-end"],setup(e,{expose:t,emit:r}){const n=r,i=e,a=oa(),s=Er(a,"yearMode"),{defaultedMultiCalendars:o,defaultedConfig:l,groupedYears:u,year:c,isDisabled:f,quarters:d,modelValue:p,showYearPicker:h,setHoverDate:m,selectQuarter:v,toggleYearPicker:g,handleYearSelect:y,handleYear:_}=jD(i,n);return t({getSidebarProps:()=>({modelValue:p,year:c,selectQuarter:v,handleYearSelect:y,handleYear:_})}),(b,P)=>(T(),Re(dc,{"multi-calendars":J(o).count,stretch:""},{default:Ie(({instance:k})=>[O("div",{class:"dp-quarter-picker-wrap",style:gr({minHeight:`${J(l).modeHeight}px`})},[O("div",null,[Ae(Dw,$t(b.$props,{items:J(u)(k),instance:k,"show-year-picker":J(h)[k],year:J(c)(k),"is-disabled":A=>J(f)(k,A),onHandleYear:A=>J(_)(k,A),onYearSelect:A=>J(y)(A,k),onToggleYearPicker:A=>J(g)(k,A==null?void 0:A.flow,A==null?void 0:A.show)}),nr({_:2},[We(J(s),(A,U)=>({name:A,fn:Ie(F=>[se(b.$slots,A,Qe(lt(F)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),O("div",FD,[(T(!0),W(ye,null,We(J(d)(k),(A,U)=>(T(),W("div",{key:U},[O("button",{type:"button",class:te(["dp--qr-btn",{"dp--qr-btn-active":A.active,"dp--qr-btn-between":A.isBetween,"dp--qr-btn-disabled":A.disabled,"dp--highlighted":A.highlighted}]),disabled:A.disabled,onClick:F=>J(v)(A.value,k,A.disabled),onMouseover:F=>J(m)(A.value)},[b.$slots.quarter?se(b.$slots,"quarter",{key:0,value:A.value,text:A.text}):(T(),W(ye,{key:1},[He(ge(A.text),1)],64))],42,MD)]))),128))])],4)]),_:3},8,["multi-calendars"]))}}),ND=["id"],HD={key:0,class:"dp__sidebar_left"},UD={key:1,class:"dp--preset-dates"},BD=["onClick","onKeydown"],WD={key:2,class:"dp__sidebar_right"},qD={key:3,class:"dp__action_extra"},Iv=Ct({compatConfig:{MODE:3},__name:"DatepickerMenu",props:{...fc,shadow:{type:Boolean,default:!1},openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},arrMapValues:{type:Object,default:()=>({})},noOverlayFocus:{type:Boolean,default:!1}},emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invalid-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","auto-apply-invalid","date-update","invalid-date"],setup(e,{expose:t,emit:r}){const n=r,i=e,a=he(()=>{const{openOnTop:Q,...S}=i;return{...S,flowStep:U.value,noOverlayFocus:i.noOverlayFocus}}),{setMenuFocused:s,setShiftKey:o,control:l}=Iw(),u=oa(),{defaultedTextInput:c,defaultedInline:f,defaultedConfig:d}=jt(i),p=be(null),h=be(0),m=be(null),v=be(null),g=be(!1),y=be(null);Mt(()=>{if(!i.shadow){g.value=!0,_(),window.addEventListener("resize",_);const Q=Lt(m);if(Q&&!c.value.enabled&&!f.value.enabled&&(s(!0),Z()),Q){const S=C=>{d.value.allowPreventDefault&&C.preventDefault(),mi(C,d.value,!0)};Q.addEventListener("pointerdown",S),Q.addEventListener("mousedown",S)}}}),Ri(()=>{window.removeEventListener("resize",_)});const _=()=>{const Q=Lt(v);Q&&(h.value=Q.getBoundingClientRect().width)},{arrowRight:b,arrowLeft:P,arrowDown:k,arrowUp:A}=Ii(),{flowStep:U,updateFlowStep:F,childMount:x,resetFlow:I}=MI(i,n,y),M=he(()=>i.monthPicker?eD:i.yearPicker?rD:i.timePicker?bD:i.quarterPicker?LD:DD),Z=()=>{const Q=Lt(m);Q&&Q.focus({preventScroll:!0})},B=he(()=>{var Q;return((Q=y.value)==null?void 0:Q.getSidebarProps())||{}}),R=()=>{i.openOnTop&&n("recalculate-position")},j=Er(u,"action"),D=he(()=>i.monthPicker||i.yearPicker?Er(u,"monthYear"):i.timePicker?Er(u,"timePicker"):Er(u,"shared")),L=he(()=>i.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),$=he(()=>({dp__menu_disabled:i.disabled,dp__menu_readonly:i.readonly})),w=he(()=>({dp__menu:!0,dp__menu_index:!f.value.enabled,dp__relative:f.value.enabled,[i.menuClassName]:!!i.menuClassName})),Y=Q=>{mi(Q,d.value,!0)},X=()=>{i.escClose&&n("close-picker")},ae=Q=>{if(i.arrowNavigation){if(Q==="up")return A();if(Q==="down")return k();if(Q==="left")return P();if(Q==="right")return b()}else Q==="left"||Q==="up"?H("handleArrow","left",0,Q==="up"):H("handleArrow","right",0,Q==="down")},oe=Q=>{o(Q.shiftKey),!i.disableMonthYearSelect&&Q.code==="Tab"&&Q.target.classList.contains("dp__menu")&&l.value.shiftKeyInMenu&&(Q.preventDefault(),mi(Q,d.value,!0),n("close-picker"))},ee=()=>{Z(),n("time-picker-close")},V=Q=>{var S,C,N;(S=y.value)==null||S.toggleTimePicker(!1,!1),(C=y.value)==null||C.toggleMonthPicker(!1,!1,Q),(N=y.value)==null||N.toggleYearPicker(!1,!1,Q)},K=(Q,S=0)=>{var C,N,re;return Q==="month"?(C=y.value)==null?void 0:C.toggleMonthPicker(!1,!0,S):Q==="year"?(N=y.value)==null?void 0:N.toggleYearPicker(!1,!0,S):Q==="time"?(re=y.value)==null?void 0:re.toggleTimePicker(!0,!1):V(S)},H=(Q,...S)=>{var C,N;(C=y.value)!=null&&C[Q]&&((N=y.value)==null||N[Q](...S))},E=()=>{H("selectCurrentDate")},q=(Q,S)=>{H("presetDate",Q,S)},G=()=>{H("clearHoverDate")};return t({updateMonthYear:(Q,S)=>{H("updateMonthYear",Q,S)},switchView:K}),(Q,S)=>{var C;return T(),W("div",{id:Q.uid?`dp-menu-${Q.uid}`:void 0,ref_key:"dpMenuRef",ref:m,tabindex:"0",role:"dialog",class:te(w.value),onMouseleave:G,onClick:Y,onKeydown:[je(X,["esc"]),S[18]||(S[18]=je(Se(N=>ae("left"),["prevent"]),["left"])),S[19]||(S[19]=je(Se(N=>ae("up"),["prevent"]),["up"])),S[20]||(S[20]=je(Se(N=>ae("down"),["prevent"]),["down"])),S[21]||(S[21]=je(Se(N=>ae("right"),["prevent"]),["right"])),oe]},[(Q.disabled||Q.readonly)&&J(f).enabled?(T(),W("div",{key:0,class:te($.value)},null,2)):ne("",!0),!J(f).enabled&&!Q.teleportCenter?(T(),W("div",{key:1,class:te(L.value)},null,2)):ne("",!0),O("div",{ref_key:"innerMenuRef",ref:v,class:te({dp__menu_content_wrapper:((C=Q.presetDates)==null?void 0:C.length)||!!Q.$slots["left-sidebar"]||!!Q.$slots["right-sidebar"]}),style:gr({"--dp-menu-width":`${h.value}px`})},[Q.$slots["left-sidebar"]?(T(),W("div",HD,[se(Q.$slots,"left-sidebar",Qe(lt(B.value)))])):ne("",!0),Q.presetDates.length?(T(),W("div",UD,[(T(!0),W(ye,null,We(Q.presetDates,(N,re)=>(T(),W(ye,{key:re},[N.slot?se(Q.$slots,N.slot,{key:0,presetDate:q,label:N.label,value:N.value}):(T(),W("button",{key:1,type:"button",style:gr(N.style||{}),class:"dp__btn dp--preset-range",onClick:Se(ie=>q(N.value,N.noTz),["prevent"]),onKeydown:[je(Se(ie=>q(N.value,N.noTz),["prevent"]),["enter"]),je(Se(ie=>q(N.value,N.noTz),["prevent"]),["space"])]},ge(N.label),45,BD))],64))),128))])):ne("",!0),O("div",{ref_key:"calendarWrapperRef",ref:p,class:"dp__instance_calendar",role:"document"},[(T(),Re(Xi(M.value),$t({ref_key:"dynCmpRef",ref:y},a.value,{"flow-step":J(U),onMount:J(x),onUpdateFlowStep:J(F),onResetFlow:J(I),onFocusMenu:Z,onSelectDate:S[0]||(S[0]=N=>Q.$emit("select-date")),onDateUpdate:S[1]||(S[1]=N=>Q.$emit("date-update",N)),onTooltipOpen:S[2]||(S[2]=N=>Q.$emit("tooltip-open",N)),onTooltipClose:S[3]||(S[3]=N=>Q.$emit("tooltip-close",N)),onAutoApply:S[4]||(S[4]=N=>Q.$emit("auto-apply",N)),onRangeStart:S[5]||(S[5]=N=>Q.$emit("range-start",N)),onRangeEnd:S[6]||(S[6]=N=>Q.$emit("range-end",N)),onInvalidFixedRange:S[7]||(S[7]=N=>Q.$emit("invalid-fixed-range",N)),onTimeUpdate:S[8]||(S[8]=N=>Q.$emit("time-update")),onAmPmChange:S[9]||(S[9]=N=>Q.$emit("am-pm-change",N)),onTimePickerOpen:S[10]||(S[10]=N=>Q.$emit("time-picker-open",N)),onTimePickerClose:ee,onRecalculatePosition:R,onUpdateMonthYear:S[11]||(S[11]=N=>Q.$emit("update-month-year",N)),onAutoApplyInvalid:S[12]||(S[12]=N=>Q.$emit("auto-apply-invalid",N)),onInvalidDate:S[13]||(S[13]=N=>Q.$emit("invalid-date",N)),"onUpdate:internalModelValue":S[14]||(S[14]=N=>Q.$emit("update:internal-model-value",N))}),nr({_:2},[We(D.value,(N,re)=>({name:N,fn:Ie(ie=>[se(Q.$slots,N,Qe(lt({...ie})))])}))]),1040,["flow-step","onMount","onUpdateFlowStep","onResetFlow"]))],512),Q.$slots["right-sidebar"]?(T(),W("div",WD,[se(Q.$slots,"right-sidebar",Qe(lt(B.value)))])):ne("",!0),Q.$slots["action-extra"]?(T(),W("div",qD,[Q.$slots["action-extra"]?se(Q.$slots,"action-extra",{key:0,selectCurrentDate:E}):ne("",!0)])):ne("",!0)],6),!Q.autoApply||J(d).keepActionRow?(T(),Re(VI,$t({key:2,"menu-mount":g.value},a.value,{"calendar-width":h.value,onClosePicker:S[15]||(S[15]=N=>Q.$emit("close-picker")),onSelectDate:S[16]||(S[16]=N=>Q.$emit("select-date")),onInvalidSelect:S[17]||(S[17]=N=>Q.$emit("invalid-select")),onSelectNow:E}),nr({_:2},[We(J(j),(N,re)=>({name:N,fn:Ie(ie=>[se(Q.$slots,N,Qe(lt({...ie})))])}))]),1040,["menu-mount","calendar-width"])):ne("",!0)],42,ND)}}}),VD=typeof window<"u"?window:void 0,ef=()=>{},YD=e=>Uy()?(wS(e),!0):!1,QD=(e,t,r,n)=>{if(!e)return ef;let i=ef;const a=yr(()=>J(e),o=>{i(),o&&(o.addEventListener(t,r,n),i=()=>{o.removeEventListener(t,r,n),i=ef})},{immediate:!0,flush:"post"}),s=()=>{a(),i()};return YD(s),s},zD=(e,t,r,n={})=>{const{window:i=VD,event:a="pointerdown"}=n;return i?QD(i,a,s=>{const o=Lt(e),l=Lt(t);!o||!l||o===s.target||s.composedPath().includes(o)||s.composedPath().includes(l)||r(s)},{passive:!0}):void 0},KD=Ct({compatConfig:{MODE:3},__name:"VueDatePicker",props:{...fc},emits:["update:model-value","update:model-timezone-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invalid-select","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","date-update","invalid-date"],setup(e,{expose:t,emit:r}){const n=r,i=e,a=oa(),s=be(!1),o=lu(i,"modelValue"),l=lu(i,"timezone"),u=be(null),c=be(null),f=be(null),d=be(!1),p=be(null),h=be(!1),m=be(!1),{setMenuFocused:v,setShiftKey:g}=Iw(),{clearArrowNav:y}=Ii(),{mapDatesArrToMap:_,validateDate:b,isValidTime:P}=la(i),{defaultedTransitions:k,defaultedTextInput:A,defaultedInline:U,defaultedConfig:F}=jt(i),{menuTransition:x,showTransition:I}=sl(k);Mt(()=>{ae(i.modelValue),Pr().then(()=>{if(!U.value.enabled){const _e=$(p.value);_e==null||_e.addEventListener("scroll",Q),window==null||window.addEventListener("resize",S)}}),U.value.enabled&&(s.value=!0),window==null||window.addEventListener("keyup",C),window==null||window.addEventListener("keydown",N)});const M=he(()=>_());Ri(()=>{if(!U.value.enabled){const _e=$(p.value);_e==null||_e.removeEventListener("scroll",Q),window==null||window.removeEventListener("resize",S)}window==null||window.removeEventListener("keyup",C),window==null||window.removeEventListener("keydown",N)});const Z=Er(a,"all",i.presetDates),B=Er(a,"input");yr([o,l],()=>{ae(o.value)},{deep:!0});const{openOnTop:R,menuStyle:j,xCorrect:D,setMenuPosition:L,getScrollableParent:$,shadowRender:w}=II({menuRef:u,menuRefInner:c,inputRef:f,pickerWrapperRef:p,inline:U,emit:n,props:i,slots:a}),{inputValue:Y,internalModelValue:X,parseExternalModelValue:ae,emitModelValue:oe,formatInputValue:ee,checkBeforeEmit:V}=CI(n,i,d),K=he(()=>({dp__main:!0,dp__theme_dark:i.dark,dp__theme_light:!i.dark,dp__flex_display:U.value.enabled,dp__flex_display_with_input:U.value.input})),H=he(()=>i.dark?"dp__theme_dark":"dp__theme_light"),E=he(()=>({to:typeof i.teleport=="boolean"?"body":i.teleport,disabled:!i.teleport||U.value.enabled})),q=he(()=>({class:"dp__outer_menu_wrap"})),G=he(()=>U.value.enabled&&(i.timePicker||i.monthPicker||i.yearPicker||i.quarterPicker)),Q=()=>{s.value&&(F.value.closeOnScroll?ve():L())},S=()=>{s.value&&L()},C=_e=>{_e.key==="Tab"&&!U.value.enabled&&!i.teleport&&F.value.tabOutClosesMenu&&(p.value.contains(document.activeElement)||ve()),m.value=_e.shiftKey},N=_e=>{m.value=_e.shiftKey},re=()=>{!i.disabled&&!i.readonly&&(w(Iv,i),L(!1),s.value=!0,s.value&&n("open"),s.value||Pe(),ae(i.modelValue))},ie=()=>{var _e;Y.value="",Pe(),(_e=f.value)==null||_e.setParsedDate(null),n("update:model-value",null),n("update:model-timezone-value",null),n("cleared"),F.value.closeOnClearValue&&ve()},ue=()=>{const _e=X.value;return!_e||!Array.isArray(_e)&&b(_e)?!0:Array.isArray(_e)?i.multiDates||_e.length===2&&b(_e[0])&&b(_e[1])?!0:i.partialRange&&!i.timePicker?b(_e[0]):!1:!1},pe=()=>{V()&&ue()?(oe(),ve()):n("invalid-select",X.value)},fe=_e=>{de(),oe(),F.value.closeOnAutoApply&&!_e&&ve()},de=()=>{f.value&&A.value.enabled&&f.value.setParsedDate(X.value)},ce=(_e=!1)=>{i.autoApply&&P(X.value)&&ue()&&(i.range&&Array.isArray(X.value)?(i.partialRange||X.value.length===2)&&fe(_e):fe(_e))},Pe=()=>{A.value.enabled||(X.value=null)},ve=()=>{U.value.enabled||(s.value&&(s.value=!1,D.value=!1,v(!1),g(!1),y(),n("closed"),Y.value&&ae(o.value)),Pe(),n("blur"))},xe=(_e,Le,De=!1)=>{if(!_e){X.value=null;return}const lr=Array.isArray(_e)?!_e.some(_c=>!b(_c)):b(_e),In=P(_e);lr&&In&&(X.value=_e,Le&&(h.value=De,pe(),n("text-submit")))},Me=()=>{i.autoApply&&P(X.value)&&oe(),de()},Ce=()=>s.value?ve():re(),z=_e=>{X.value=_e},le=()=>{A.value.enabled&&(d.value=!0,ee()),n("focus")},Oe=()=>{if(A.value.enabled&&(d.value=!1,ae(i.modelValue),h.value)){const _e=cI(p.value,m.value);_e==null||_e.focus()}n("blur")},Ee=_e=>{c.value&&c.value.updateMonthYear(0,{month:$v(_e.month),year:$v(_e.year)})},Ve=_e=>{ae(_e!=null?_e:i.modelValue)},ct=(_e,Le)=>{var De;(De=c.value)==null||De.switchView(_e,Le)},Ht=_e=>F.value.onClickOutside?F.value.onClickOutside(_e):ve();return zD(u,f,()=>Ht(ue)),t({closeMenu:ve,selectDate:pe,clearValue:ie,openMenu:re,onScroll:Q,formatInputValue:ee,updateInternalModelValue:z,setMonthYear:Ee,parseModel:Ve,switchView:ct,toggleMenu:Ce}),(_e,Le)=>(T(),W("div",{ref_key:"pickerWrapperRef",ref:p,class:te(K.value),"data-datepicker-instance":""},[Ae(UI,$t({ref_key:"inputRef",ref:f,"input-value":J(Y),"onUpdate:inputValue":Le[0]||(Le[0]=De=>Ft(Y)?Y.value=De:null),"is-menu-open":s.value},_e.$props,{onClear:ie,onOpen:re,onSetInputDate:xe,onSetEmptyDate:J(oe),onSelectDate:pe,onToggle:Ce,onClose:ve,onFocus:le,onBlur:Oe,onRealBlur:Le[1]||(Le[1]=De=>d.value=!1)}),nr({_:2},[We(J(B),(De,lr)=>({name:De,fn:Ie(In=>[se(_e.$slots,De,Qe(lt(In)))])}))]),1040,["input-value","is-menu-open","onSetEmptyDate"]),Ae(sP,Qe(lt(E.value)),{default:Ie(()=>[Ae(Ai,{name:J(x)(J(R)),css:J(I)&&!J(U).enabled},{default:Ie(()=>[s.value?(T(),W("div",$t({key:0,ref_key:"dpWrapMenuRef",ref:u},q.value,{class:{"dp--menu-wrapper":!J(U).enabled},style:J(U).enabled?void 0:J(j)}),[Ae(Iv,$t({ref_key:"dpMenuRef",ref:c},_e.$props,{"internal-model-value":J(X),"onUpdate:internalModelValue":Le[2]||(Le[2]=De=>Ft(X)?X.value=De:null),class:{[H.value]:!0,"dp--menu-wrapper":_e.teleport},"open-on-top":J(R),"arr-map-values":M.value,"no-overlay-focus":G.value,onClosePicker:ve,onSelectDate:pe,onAutoApply:ce,onTimeUpdate:Me,onFlowStep:Le[3]||(Le[3]=De=>_e.$emit("flow-step",De)),onUpdateMonthYear:Le[4]||(Le[4]=De=>_e.$emit("update-month-year",De)),onInvalidSelect:Le[5]||(Le[5]=De=>_e.$emit("invalid-select",J(X))),onAutoApplyInvalid:Le[6]||(Le[6]=De=>_e.$emit("invalid-select",De)),onInvalidFixedRange:Le[7]||(Le[7]=De=>_e.$emit("invalid-fixed-range",De)),onRecalculatePosition:J(L),onTooltipOpen:Le[8]||(Le[8]=De=>_e.$emit("tooltip-open",De)),onTooltipClose:Le[9]||(Le[9]=De=>_e.$emit("tooltip-close",De)),onTimePickerOpen:Le[10]||(Le[10]=De=>_e.$emit("time-picker-open",De)),onTimePickerClose:Le[11]||(Le[11]=De=>_e.$emit("time-picker-close",De)),onAmPmChange:Le[12]||(Le[12]=De=>_e.$emit("am-pm-change",De)),onRangeStart:Le[13]||(Le[13]=De=>_e.$emit("range-start",De)),onRangeEnd:Le[14]||(Le[14]=De=>_e.$emit("range-end",De)),onDateUpdate:Le[15]||(Le[15]=De=>_e.$emit("date-update",De)),onInvalidDate:Le[16]||(Le[16]=De=>_e.$emit("invalid-date",De))}),nr({_:2},[We(J(Z),(De,lr)=>({name:De,fn:Ie(In=>[se(_e.$slots,De,Qe(lt({...In})))])}))]),1040,["internal-model-value","class","open-on-top","arr-map-values","no-overlay-focus","onRecalculatePosition"])],16)):ne("",!0)]),_:3},8,["name","css"])]),_:3},16)],2))}}),ip=(()=>{const e=KD;return e.install=t=>{t.component("Vue3DatePicker",e)},e})(),GD=Object.freeze(Object.defineProperty({__proto__:null,default:ip},Symbol.toStringTag,{value:"Module"}));Object.entries(GD).forEach(([e,t])=>{e!=="default"&&(ip[e]=t)});var Nw={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(nl,function(){var r={year:0,month:1,day:2,hour:3,minute:4,second:5},n={};return function(i,a,s){var o,l=function(d,p,h){h===void 0&&(h={});var m=new Date(d),v=function(g,y){y===void 0&&(y={});var _=y.timeZoneName||"short",b=g+"|"+_,P=n[b];return P||(P=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:g,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:_}),n[b]=P),P}(p,h);return v.formatToParts(m)},u=function(d,p){for(var h=l(d,p),m=[],v=0;v=0&&(m[b]=parseInt(_,10))}var P=m[3],k=P===24?0:P,A=m[0]+"-"+m[1]+"-"+m[2]+" "+k+":"+m[4]+":"+m[5]+":000",U=+d;return(s.utc(A).valueOf()-(U-=U%1e3))/6e4},c=a.prototype;c.tz=function(d,p){d===void 0&&(d=o);var h,m=this.utcOffset(),v=this.toDate(),g=v.toLocaleString("en-US",{timeZone:d}),y=Math.round((v-new Date(g))/1e3/60),_=15*-Math.round(v.getTimezoneOffset()/15)-y;if(!Number(_))h=this.utcOffset(0,p);else if(h=s(g,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(_,!0),p){var b=h.utcOffset();h=h.add(m-b,"minute")}return h.$x.$timezone=d,h},c.offsetName=function(d){var p=this.$x.$timezone||s.tz.guess(),h=l(this.valueOf(),p,{timeZoneName:d}).find(function(m){return m.type.toLowerCase()==="timezonename"});return h&&h.value};var f=c.startOf;c.startOf=function(d,p){if(!this.$x||!this.$x.$timezone)return f.call(this,d,p);var h=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return f.call(h,d,p).tz(this.$x.$timezone,!0)},s.tz=function(d,p,h){var m=h&&p,v=h||p||o,g=u(+s(),v);if(typeof d!="string")return s(d).tz(v);var y=function(k,A,U){var F=k-60*A*1e3,x=u(F,U);if(A===x)return[F,A];var I=u(F-=60*(x-A)*1e3,U);return x===I?[F,x]:[k-60*Math.min(x,I)*1e3,Math.max(x,I)]}(s.utc(d,m).valueOf(),g,v),_=y[0],b=y[1],P=s(_).utcOffset(b);return P.$x.$timezone=v,P},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(d){o=d}}})})(Nw);const XD=Nw.exports;vn.extend(XD);const ZD={name:"DateRangeFilters",components:{PbAccordion:Mh,Datepicker:ip},props:{field:{type:String,default:""},title:{type:String,default:""}},data(){return{dates:{start:null,to:null},opened:!1}},computed:{alias(){return this.$store.state.SClient.allowedFilters[this.field].alias},disabled(){return!this.dates.start&&!this.dates.to}},watch:{"$route.query":{deep:!0,handler(e){if(e[this.alias]===void 0)return this.reset();let t=e[this.alias],r=new RegExp(/\<=(.*)/),n=t.includes("&&")?new RegExp(/\>=(.*)\&&/):new RegExp(/\>=(.*)/),i=null,a=null;n.test(t)&&([,i]=t.match(n),i=vn.unix(i)),r.test(t)&&([,a]=t.match(r),a=vn.unix(a)),this.opened=!0,this.dates={start:i&&i.isValid()?vn.tz(i,"UTC").format("YYYY-MM-DD"):null,to:a&&a.isValid()?vn.tz(a,"UTC").format("YYYY-MM-DD"):null}}}},methods:{reset(){this.opened=!1,this.dates={start:null,to:null}},formatDate(e){return vn.tz(e,"UTC").format("YYYY-MM-DD")},buildQueryString(){let e=null,t=vn.tz(this.dates.start,"UTC").startOf("day"),r=vn.tz(this.dates.to,"UTC").endOf("day");if(!r.isBefore(t))return t.isValid()&&(e=`>=${t.unix()}`),r.isValid()&&(e=e?`${e}&&<=${r.unix()}`:`<=${r.unix()}`),e},filterByDateRange(){let e={...this.$route.query},t=this.buildQueryString();if(!!t&&e[this.alias]!==t)return this.sendClickInsight(),this.$router.replace({query:{...e,[this.alias]:t}})},sendClickInsight(){let e=[this.dates.start?`${this.alias}:>=${this.dates.start}`:null,this.dates.to?`${this.alias}:<=${this.dates.to}`:null];this.sendFilterAppliedInsight(e.filter(t=>t))}}},JD={class:"title font-headings font-semibold"},ej={class:"p-2"},tj=["data-date"],rj={class:"p-2"},nj=["data-date"],ij={class:"p-2"},aj=["disabled","data-cy"],sj={class:"sr-only"};function oj(e,t,r,n,i,a){const s=Fe("Datepicker"),o=Fe("pb-accordion");return T(),Re(o,{open:i.opened,"data-cy-button":`${r.field}`},{title:Ie(()=>[O("span",JD,ge(r.title),1)]),content:Ie(()=>[O("div",null,[O("div",ej,[Ae(s,{modelValue:i.dates.start,"onUpdate:modelValue":t[0]||(t[0]=l=>i.dates.start=l),"text-input":!0,"text-input-options":{enterSubmit:!0,tabSubmit:!0},utc:"preserve",placeholder:"From date","max-date":i.dates.to,"data-cy":`from-date-${r.field}`,format:"MMM dd, yyyy","enable-time-picker":!1,"auto-apply":!0},{day:Ie(({date:l,day:u})=>[O("span",{"data-date":a.formatDate(l)},ge(u),9,tj)]),default:Ie(()=>[t[3]||(t[3]=He(" > "))]),_:1},8,["modelValue","max-date","data-cy"])]),O("div",rj,[Ae(s,{modelValue:i.dates.to,"onUpdate:modelValue":t[1]||(t[1]=l=>i.dates.to=l),"text-input":!0,placeholder:"To date","min-date":i.dates.start,utc:"preserve","data-cy":`to-date-${r.field}`,format:"MMM dd, yyyy","enable-time-picker":!1,"auto-apply":!0},{day:Ie(({date:l,day:u})=>[O("span",{"data-date":a.formatDate(l)},ge(u),9,nj)]),_:1},8,["modelValue","min-date","data-cy"])])]),O("div",ij,[O("button",{class:"w-full rounded-full bg-pb-red text-white p-2",disabled:a.disabled,"data-cy":`apply-filter-${r.field}`,onClick:t[2]||(t[2]=(...l)=>a.filterByDateRange&&a.filterByDateRange(...l))},[O("span",sj,ge(`Apply ${r.title} filter`),1),t[4]||(t[4]=O("span",{"aria-hidden":"true"},"Go",-1))],8,aj)])]),_:1},8,["open","data-cy-button"])}const lj=ut(ZD,[["render",oj]]);function uj(e,t){return T(),W("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z","clip-rule":"evenodd"})])}function cj(e,t){return T(),W("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[O("path",{"fill-rule":"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-1.72 6.97a.75.75 0 1 0-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06L12 13.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L13.06 12l1.72-1.72a.75.75 0 1 0-1.06-1.06L12 10.94l-1.72-1.72Z","clip-rule":"evenodd"})])}let fj={imagesPath:"assets/images/",urls:{guide:"https://guide.pressbooks.com/chapter/find-books-on-the-pressbooks-directory/",linkedin:"https://www.linkedin.com/company/pressbooks",pressbooks:"https://pressbooks.com",twitter:"https://twitter.com/pressbooks",youtube:"https://www.youtube.com/channel/UCyMeJ5C4p6AxF9QXg6Bgzjg",blog:"https://pressbooks.com/blog",collections:"https://pressbooks.com/collections-hub/",opensource:"https://pressbooks.org",contact:"https://pressbooks.com/contact-pressbooks/",jobs:"https://pressbooks.com/about/#work-with-us",procurement:"https://pressbooks.com/edu-procurement-helpers/"},h5pLogo:"h5p.png",basedOnImg:"is-child.png",originalImg:"is-base.png",defaultBookCover:"default-book-cover.jpg",licenseIcons:{"cc-by-sa-(attribution-sharealike)":{image:"by-sa.png",alt:"Attribution - ShareAlike (SA)"},"cc-by-nd-(attribution-noderivatives)":{image:"by-nd.png",alt:"Attribution - No Derivative Work (ND)"},"cc-by-nc-sa-(attribution-noncommercial-sharealike)":{image:"by-nc-sa.png",alt:"Attribution - Non Commercial - ShareAlike"},"cc-by-nc-nd-(attribution-noncommercial-noderivatives)":{image:"by-nc-nd.png",alt:"Attribution - Noncommercial - NoDerivatives"},"cc-by-nc-(attribution-noncommercial)":{image:"by-nc.png",alt:"Attribution - Non Commercial (NC)"},"cc-by-(attribution)":{image:"by.png",alt:"Attribution Alone (BY)"},"all-rights-reserved":{image:"allrights.png",alt:"All Rights Reserved"},"cc0-(creative-commons-zero)":{image:"0.png",alt:"Zero - Public Domain"},"public-domain":{image:"public-domain.png",alt:"Public Domain"}},canFilter:!0,showTour:!1};const eu={state:fj,mutations:{showTour(e){e.showTour=!e.showTour}}};function dj(e,t){let r=[],n=[],i="",a={},s=[],o=[],l={},u=[],c=Object.keys(e).length;for(let f in e){u=[];for(let d=0;d0&&s.push(u)}o.length>0&&s.length>0&&(c===1?r.push(s):r=s,r=r.concat(o)),s.length>0&&o.length===0&&(r=r.concat(s)),s.length===0&&o.length>0&&(r=r.concat(o));for(let f in l)if(l[f].length>1){let d=l[f][0].value,p=l[f][1].value;n.push(f+":"+d+" TO "+p)}else{let d=l[f][0].value;i=l[f][0].operator,n.push(f+i+d)}return[r,n.join(" AND ")]}function hj(e,t,r,n){t=t.replace(/"/g,""),t[0]==="-"&&(t=t.slice(1,t.length));let i={},a=[];for(const o in r){i[o]=[];for(let l=0;l=0});if(s.length>0)for(let o=0;o=0?'"'+s[o]+'"':s[o],a.push(s[o]);return a}function pj(e,t){let r="";return t.length>0?e.length>0?r="("+e+") AND ("+t+")":r=t:r=e,r}function mj(e){if(e){let t=document.createElement("textarea");return t.innerHTML=e,t.value}return e}function vj(e,t){let r=dj(e,t.allowedFilters);t.notFilters=r[0],t.hasNumeric=r[1].length>0,t.numericFilters=r[1],t.filtersParams=pj(t.numericFilters,t.searchFilters)}function gj(e){return e.replaceAll(/[^a-zA-Z0-9_]+/ig,"-").toLowerCase()}function yj(e){if(e===void 0)return{image:!1,alt:!1};const t=e.toLowerCase().split(" ").join("-"),r=eu.state.licenseIcons[t]||eu.state.licenseIcons["public-domain"];return{image:`${eu.state.imagesPath}licenses/${r.image}`,alt:r.alt}}const hr={functions:{getSimilarFacetValues:hj,unescapeHTML:mj,setNumericFilters:vj,getLowerCaseAlphanumericAndHyphen:gj,getLicenseIconAndAltByLicenseName:yj}},bj={name:"PbFilterButtons",components:{CheckCircleIcon:Uk,CheckCircleIconSolid:uj,XCircleIcon:G0,XCircleIconSolid:cj},props:{item:{type:Object,default(){return{}}},field:{type:String,default:""}},data(){return{includedChecked:!0,excludedChecked:!1,sExpanded:!1,excluded:!1,alias:this.$store.state.SClient.allowedFilters[this.field].alias,empty:this.$store.state.SClient.allowedFilters[this.field].empty,emptyFieldCount:0,textEmpty:"No value / empty",itemsFiltered:!1,filterApplied:!1}},watch:{"$store.state.stats.filters":{deep:!0,handler(e){if(typeof e[this.empty]<"u"){for(let t=0;tn.value===e&&n.exclude===t)!==void 0},clearFilters(){let e={...this.$route.query};delete e[this.alias],this.$router.replace({query:e})},removeFilter(e){let t={...this.$route.query},r=t[this.alias].split("&&"),n;for(let i=0;i"u")n[this.alias]=i.toString();else{let a=n[this.alias].split("&&");for(let s=0;sa.applyFilter(r.item,!1))},[O("span",Sj,ge(`Include ${r.item.facet}`),1),a.wasFiltered(r.item.facet,!1)?(T(),Re(s,{key:0,class:"h-6 w-6"})):(T(),Re(o,{key:1,class:"h-6 w-6"}))],8,_j),O("button",{class:"exclude","data-cy":`filter-${r.field}-${a.getAlphanumericFacet(r.item.facet)}-exclude-button`,"aria-pressed":a.wasFiltered(r.item,!0)?"true":"false",onClick:t[1]||(t[1]=c=>a.applyFilter(r.item,!0))},[O("span",xj,ge(`Exclude ${r.item.facet}`),1),a.wasFiltered(r.item.facet,!0)?(T(),Re(l,{key:0,class:"h-6 w-6"})):(T(),Re(u,{key:1,class:"h-6 w-6"}))],8,Pj)])}const $j=ut(bj,[["render",Oj]]),Rj={name:"PbSelectableFilters",components:{PbAccordion:Mh,PbFilterButtons:$j,SearchIcon:K0},props:{field:{type:String,default:""},searchable:{type:Boolean,default:!1},title:{type:String,default:""}},data(){return{search:"",displayAmount:10,minDisplayAmount:10,maxDisplayAmount:1e3}},computed:{alias(){return this.$store.state.SClient.allowedFilters[this.field].alias},items(){const e=this.$store.state.stats.filters[this.field]||[];if(this.searchIsEmpty())return e.slice(0,this.maxDisplayAmount);const t=this.search.toLowerCase(),r=n=>n.facet.toLowerCase().search(t)!==-1;return e.filter(r).slice(0,this.maxDisplayAmount)},displayItems(){return this.items.slice(0,this.displayAmount)},showMoreVisible(){return this.displayAmountthis.items.length||this.displayAmount>=this.maxDisplayAmount},amountLeft(){return this.items.length-this.displayItems.length}},methods:{incrementDisplayAmount(){this.displayAmount>=this.items.length||(this.displayAmount+=10)},resetDisplayAmount(){this.displayAmount=this.minDisplayAmount},reset(){const{[this.alias]:e,...t}=this.$route.query;!e||(this.search="",this.$router.replace({query:t}))},searchIsEmpty(){return this.search===""}}},Aj={class:"title font-semibold"},Tj={key:0,class:"px-4 flex items-center w-full","data-cy":"filter-search"},kj=["id","data-cy","placeholder"],Cj=["aria-label"],Ej=["data-cy"],Ij={class:"title text-sm text-gray-900 w-full"},Dj={key:1,class:"flex items-center justify-center py-2 px-4"},jj=["data-cy"],Fj={class:"sr-only"},Mj={"aria-hidden":"true"},Lj=["data-cy"],Nj={class:"sr-only"},Hj={class:"flex items-center justify-center py-2 px-4"},Uj=["data-cy"],Bj={class:"sr-only"};function Wj(e,t,r,n,i,a){const s=Fe("search-icon"),o=Fe("pb-filter-buttons"),l=Fe("pb-accordion");return typeof e.$store.state.stats.filters[r.field]<"u"?(T(),Re(l,{key:0,open:typeof e.$store.state.SClient.filtersExcluded[r.field]<"u","data-cy-button":`${r.field}`},{title:Ie(()=>[O("span",Aj,ge(r.title),1)]),content:Ie(()=>[r.searchable?(T(),W("div",Tj,[Ae(s,{class:"h-5 w-5 text-gray-400"}),Gt(O("input",{id:`search-filter-${r.field}`,"onUpdate:modelValue":t[0]||(t[0]=u=>i.search=u),"data-cy":`search-filter-${r.field}`,type:"search",class:"w-full border-0 text-sm py-2 px-3 focus:outline-none focus:ring-0",placeholder:`Search ${r.title}`,autocomplete:"off",autocapitalize:"none",spellcheck:"false","aria-label":"`Search ${title}`"},null,8,kj),[[mu,i.search]])])):ne("",!0),O("ul",{class:"divide-y",role:"list","aria-label":`${r.title} filter options`},[(T(!0),W(ye,null,We(a.displayItems,(u,c)=>(T(),W("li",{key:c,"data-cy":`filter-${r.field}-option`,class:"body py-2 px-4 flex items-center justify-between space-x-1"},[O("span",Ij,ge(`${u.facet} (${u.count})`),1),Ae(o,{item:u,field:r.field},null,8,["item","field"])],8,Ej))),128))],8,Cj),a.showMoreVisible||a.showLessVisible?(T(),W("div",Dj,[a.showMoreVisible?(T(),W("button",{key:0,class:"p-1 text-pb-dark-blue text-xs","data-cy":`show-more-${r.field}`,onClick:t[1]||(t[1]=(...u)=>a.incrementDisplayAmount&&a.incrementDisplayAmount(...u))},[O("span",Fj,ge(`Show more from ${r.title}. ${a.amountLeft} items left`),1),O("span",Mj,"Show more ("+ge(a.amountLeft)+")",1)],8,jj)):ne("",!0),a.showLessVisible?(T(),W("button",{key:1,class:"p-1 text-pb-dark-blue text-xs","data-cy":`show-less-${r.field}`,onClick:t[2]||(t[2]=(...u)=>a.resetDisplayAmount&&a.resetDisplayAmount(...u))},[O("span",Nj,ge(`Show less from ${r.title}`),1),t[4]||(t[4]=O("span",{"aria-hidden":"true"},"Show less",-1))],8,Lj)):ne("",!0)])):ne("",!0),O("div",Hj,[O("button",{class:"p-1 font-bold text-pb-red text-right text-xs uppercase",type:"reset","data-cy":`clear-filter-${r.field}`,onClick:t[3]||(t[3]=Se((...u)=>a.reset&&a.reset(...u),["prevent"]))},[O("span",Bj,ge(`Clear ${r.title} filter`),1),t[5]||(t[5]=O("span",{"aria-hidden":"true"},"Clear filter",-1))],8,Uj)])]),_:1},8,["open","data-cy-button"])):ne("",!0)}const qj=ut(Rj,[["render",Wj]]),Vj={name:"PbNumericFilters",components:{PbAccordion:Mh},props:{field:{type:String,default:""},title:{type:String,default:""}},data(){return{number:{min:null,max:null},itemsFiltered:!1}},computed:{alias(){return this.$store.state.SClient.allowedFilters[this.field].alias},min(){return this.number.min.length===0?0:this.number.min},max(){return this.number.max.length===0?0:this.number.max}},watch:{"$store.state.SClient.filtersExcluded":{deep:!0,handler(e){if(typeof e[this.field]<"u"&&e[this.field].length>0){this.itemsFiltered=!0,this.number.min=0,this.number.max=0;for(let t=0;t="?this.number.min=e[this.field][t].value:this.number.max=e[this.field][t].value}else this.number.min=0,this.number.max=0,this.itemsFiltered=!1}}},methods:{clearFilters(){this.number.min=0,this.number.max=0;let e={...this.$route.query};delete e[this.alias],this.$router.replace({query:e})},applyFilter(){let e=null,t={...this.$route.query},r=parseInt(this.min),n=parseInt(this.max);if(r>n?(this.number.max=0,e=`>=${r}`):e=`>=${r}&&<=${n}`,!!e&&t[this.alias]!==e)return this.sendClickInsight(),this.$router.replace({query:{...t,[this.alias]:e}})},sendClickInsight(){let e=[this.min?`${this.alias}:>=${this.min}`:null,this.max?`${this.alias}:<=${this.max}`:null];this.sendFilterAppliedInsight(e.filter(t=>t))}}},Yj={class:"title font-semibold"},Qj={class:"flex items-center space-x-4 py-2 px-4"},zj=["for"],Kj={class:"sr-only"},Gj={class:"border-b border-gray-300 flex flex-row w-full items-center focus-within:border-red-700"},Xj=["id","data-cy-input"],Zj=["for"],Jj={class:"sr-only"},eF={class:"border-b border-gray-300 flex flex-row w-full items-center focus-within:border-red-700"},tF=["id","data-cy-input"],rF=["data-cy-button"],nF=["disabled"],iF={class:"sr-only"};function aF(e,t,r,n,i,a){const s=Fe("pb-accordion");return T(),Re(s,{open:typeof e.$store.state.SClient.filtersExcluded[r.field]<"u","data-cy-button":`${r.field}`},{title:Ie(()=>[O("span",Yj,ge(r.title),1)]),content:Ie(()=>[O("form",{onSubmit:t[2]||(t[2]=Se((...o)=>a.applyFilter&&a.applyFilter(...o),["prevent"]))},[O("div",Qj,[O("div",null,[O("label",{class:"block text-sm",for:`${r.field}-min`},[O("span",Kj,ge(`Minimum ${r.title} value`),1),t[3]||(t[3]=O("span",{"aria-hidden":"true"},"Min",-1))],8,zj),O("div",Gj,[Gt(O("input",{id:`${r.field}-min`,"onUpdate:modelValue":t[0]||(t[0]=o=>i.number.min=o),min:0,type:"number",class:"w-full border-0 text-sm p-1 focus:outline-none focus:ring-0","data-cy-input":`${r.field}-min`},null,8,Xj),[[mu,i.number.min,void 0,{trim:!0,number:!0}]])])]),O("div",null,[O("label",{class:"block text-sm",for:`${r.field}-max`},[O("span",Jj,ge(`Maximum ${r.title} value`),1),t[4]||(t[4]=O("span",{"aria-hidden":"true"},"Max",-1))],8,Zj),O("div",eF,[Gt(O("input",{id:`${r.field}-max`,"onUpdate:modelValue":t[1]||(t[1]=o=>i.number.max=o),min:0,type:"number",class:"w-full border-0 text-sm p-1 focus:outline-none focus:ring-0","data-cy-input":`${r.field}-max`},null,8,tF),[[mu,i.number.max,void 0,{trim:!0,number:!0}]])])]),O("div",{"data-cy-button":`${r.field}`},[O("button",{type:"submit",disabled:!i.number.min&&!i.number.max},[O("span",iF,ge(`Apply ${r.title}`),1),t[5]||(t[5]=O("span",{"aria-hidden":"true"},"Go",-1))],8,nF)],8,rF)])],32)]),_:1},8,["open","data-cy-button"])}const sF=ut(Vj,[["render",aF]]),oF={name:"PbFilters",components:{PbNumericFilters:sF,PbDateRangeFilters:lj,PbSelectableFilters:qj},data(){return{filters:[{component:"pb-selectable-filters",props:{title:"License",field:"licenseCode","data-cy":"license-filter"}},{component:"pb-selectable-filters",props:{title:"Subject",field:"about","data-cy":"subject-filter",searchable:!0}},{component:"pb-selectable-filters",props:{title:"Network",field:"networkName","data-cy":"network-filter",searchable:!0}},{component:"pb-selectable-filters",props:{title:"Collection",field:"collections","data-cy":"collections-filter",searchable:!0}},{component:"pb-date-range-filters",props:{title:"Last Updated",field:"lastUpdated","data-cy":"last-updated-filter"}},{component:"pb-selectable-filters",props:{title:"Language",field:"languageName","data-cy":"language-filter",searchable:!0}},{component:"pb-selectable-filters",props:{title:"Institution",field:"institutions","data-cy":"institution-filter",searchable:!0}},{component:"pb-selectable-filters",props:{title:"Publisher",field:"publisherName","data-cy":"publisher-filter",searchable:!0}},{component:"pb-numeric-filters",props:{title:"Word Count",field:"wordCount","data-cy":"word-count-filter"}},{component:"pb-numeric-filters",props:{title:"H5P Activities",field:"h5pActivities","data-cy":"h5p-filter"}}]}}},lF={class:"w-full md:w-60 lg:w-72","aria-labelledby":"filters"},uF={class:"w-full border border-gray-200 shadow divide-y divide-gray-200","data-cy":"facet-filters"};function cF(e,t,r,n,i,a){return T(),W("section",lF,[t[0]||(t[0]=O("h3",{id:"filters",class:"font-semibold text-2xl mb-4"}," Filters ",-1)),O("div",uF,[(T(!0),W(ye,null,We(i.filters,(s,o)=>(T(),Re(Xi(s.component),$t({key:o,ref_for:!0},{...s.props}),null,16))),128))])])}const fF=ut(oF,[["render",cF]]);var dF=Object.defineProperty,hF=Object.defineProperties,pF=Object.getOwnPropertyDescriptors,Dv=Object.getOwnPropertySymbols,mF=Object.prototype.hasOwnProperty,vF=Object.prototype.propertyIsEnumerable,jv=(e,t,r)=>t in e?dF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pa=(e,t)=>{for(var r in t||(t={}))mF.call(t,r)&&jv(e,r,t[r]);if(Dv)for(var r of Dv(t))vF.call(t,r)&&jv(e,r,t[r]);return e},Fv=(e,t)=>hF(e,pF(t));const gF={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer(){this.autoscroll&&this.maybeAdjustScroll()},open(e){this.autoscroll&&e&&this.$nextTick(()=>this.maybeAdjustScroll())}},methods:{maybeAdjustScroll(){var e;const t=((e=this.$refs.dropdownMenu)==null?void 0:e.children[this.typeAheadPointer])||!1;if(t){const r=this.getDropdownViewport(),{top:n,bottom:i,height:a}=t.getBoundingClientRect();if(nr.bottom)return this.$refs.dropdownMenu.scrollTop=t.offsetTop-(r.height-a)}},getDropdownViewport(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},yF={data(){return{typeAheadPointer:-1}},watch:{filteredOptions(){for(let e=0;e=0;e--)if(this.selectable(this.filteredOptions[e])){this.typeAheadPointer=e;break}},typeAheadDown(){for(let e=this.typeAheadPointer+1;e{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r},wF={},_F={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},SF=O("path",{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"},null,-1),PF=[SF];function xF(e,t){return T(),W("svg",_F,PF)}const OF=ap(wF,[["render",xF]]),$F={},RF={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},AF=O("path",{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"},null,-1),TF=[AF];function kF(e,t){return T(),W("svg",RF,TF)}const CF=ap($F,[["render",kF]]),Mv={Deselect:OF,OpenIndicator:CF},EF={mounted(e,{instance:t}){if(t.appendToBody){const{height:r,top:n,left:i,width:a}=t.$refs.toggle.getBoundingClientRect();let s=window.scrollX||window.pageXOffset,o=window.scrollY||window.pageYOffset;e.unbindPosition=t.calculatePosition(e,t,{width:a+"px",left:s+i+"px",top:o+n+r+"px"}),document.body.appendChild(e)}},unmounted(e,{instance:t}){t.appendToBody&&(e.unbindPosition&&typeof e.unbindPosition=="function"&&e.unbindPosition(),e.parentNode&&e.parentNode.removeChild(e))}};function IF(e){const t={};return Object.keys(e).sort().forEach(r=>{t[r]=e[r]}),JSON.stringify(t)}let DF=0;function jF(){return++DF}const FF={components:pa({},Mv),directives:{appendToBody:EF},mixins:[gF,yF,bF],compatConfig:{MODE:3},emits:["open","close","update:modelValue","search","search:compositionstart","search:compositionend","search:keydown","search:blur","search:focus","search:input","option:created","option:selecting","option:selected","option:deselecting","option:deselected"],props:{modelValue:{},components:{type:Object,default:()=>({})},options:{type:Array,default(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:e=>e},selectable:{type:Function,default:e=>!0},getOptionLabel:{type:Function,default(e){return typeof e=="object"?e.hasOwnProperty(this.label)?e[this.label]:console.warn(`[vue-select warn]: Label key "option.${this.label}" does not exist in options object ${JSON.stringify(e)}. https://vue-select.org/api/props.html#getoptionlabel`):e}},getOptionKey:{type:Function,default(e){if(typeof e!="object")return e;try{return e.hasOwnProperty("id")?e.id:IF(e)}catch(t){return console.warn(`[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option. https://vue-select.org/api/props.html#getoptionkey`,e,t)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default(e,t,r){return(t||"").toLocaleLowerCase().indexOf(r.toLocaleLowerCase())>-1}},filter:{type:Function,default(e,t){return e.filter(r=>{let n=this.getOptionLabel(r);return typeof n=="number"&&(n=n.toString()),this.filterBy(r,n,t)})}},createOption:{type:Function,default(e){return typeof this.optionList[0]=="object"?{[this.label]:e}:e}},resetOnOptionsChange:{default:!1,validator:e=>["function","boolean"].includes(typeof e)},clearSearchOnBlur:{type:Function,default:function({clearSearchOnSelect:e,multiple:t}){return e&&!t}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:()=>[13]},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:(e,t)=>e},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default(e,t,{width:r,top:n,left:i}){e.style.top=n,e.style.left=i,e.style.width=r}},dropdownShouldOpen:{type:Function,default({noDrop:e,open:t,mutableLoading:r}){return e?!1:t&&!r}},uid:{type:[String,Number],default:()=>jF()}},data(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[],deselectButtons:[]}},computed:{isReducingValues(){return this.$props.reduce!==this.$options.props.reduce.default},isTrackingValues(){return typeof this.modelValue>"u"||this.isReducingValues},selectedValue(){let e=this.modelValue;return this.isTrackingValues&&(e=this.$data._value),e!=null&&e!==""?[].concat(e):[]},optionList(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl(){return this.$slots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope(){const e={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:pa({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":`vs${this.uid}__combobox`,"aria-controls":`vs${this.uid}__listbox`,ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":`vs${this.uid}__option-${this.typeAheadPointer}`}:{}),events:{compositionstart:()=>this.isComposing=!0,compositionend:()=>this.isComposing=!1,keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:t=>this.search=t.target.value}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:e,listFooter:e,header:Fv(pa({},e),{deselect:this.deselect}),footer:Fv(pa({},e),{deselect:this.deselect})}},childComponents(){return pa(pa({},Mv),this.components)},stateClasses(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching(){return!!this.search},dropdownOpen(){return this.dropdownShouldOpen(this)},searchPlaceholder(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions(){const e=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return e;const t=this.search.length?this.filter(e,this.search,this):e;if(this.taggable&&this.search.length){const r=this.createOption(this.search);this.optionExists(r)||t.unshift(r)}return t},isValueEmpty(){return this.selectedValue.length===0},showClearButton(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options(e,t){const r=()=>typeof this.resetOnOptionsChange=="function"?this.resetOnOptionsChange(e,t,this.selectedValue):this.resetOnOptionsChange;!this.taggable&&r()&&this.clearSelection(),this.modelValue&&this.isTrackingValues&&this.setInternalValueFromOptions(this.modelValue)},modelValue:{immediate:!0,handler(e){this.isTrackingValues&&this.setInternalValueFromOptions(e)}},multiple(){this.clearSelection()},open(e){this.$emit(e?"open":"close")}},created(){this.mutableLoading=this.loading},methods:{setInternalValueFromOptions(e){Array.isArray(e)?this.$data._value=e.map(t=>this.findOptionFromReducedValue(t)):this.$data._value=this.findOptionFromReducedValue(e)},select(e){this.$emit("option:selecting",e),this.isOptionSelected(e)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(e):(this.taggable&&!this.optionExists(e)&&(this.$emit("option:created",e),this.pushTag(e)),this.multiple&&(e=this.selectedValue.concat(e)),this.updateValue(e),this.$emit("option:selected",e)),this.onAfterSelect(e)},deselect(e){this.$emit("option:deselecting",e),this.updateValue(this.selectedValue.filter(t=>!this.optionComparator(t,e))),this.$emit("option:deselected",e)},clearSelection(){this.updateValue(this.multiple?[]:null)},onAfterSelect(e){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search="")},updateValue(e){typeof this.modelValue>"u"&&(this.$data._value=e),e!==null&&(Array.isArray(e)?e=e.map(t=>this.reduce(t)):e=this.reduce(e)),this.$emit("update:modelValue",e)},toggleDropdown(e){const t=e.target!==this.searchEl;t&&e.preventDefault();const r=[...this.deselectButtons||[],this.$refs.clearButton];if(this.searchEl===void 0||r.filter(Boolean).some(n=>n.contains(e.target)||n===e.target)){e.preventDefault();return}this.open&&t?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected(e){return this.selectedValue.some(t=>this.optionComparator(t,e))},isOptionDeselectable(e){return this.isOptionSelected(e)&&this.deselectFromDropdown},optionComparator(e,t){return this.getOptionKey(e)===this.getOptionKey(t)},findOptionFromReducedValue(e){const t=n=>JSON.stringify(this.reduce(n))===JSON.stringify(e),r=[...this.options,...this.pushedTags].filter(t);return r.length===1?r[0]:r.find(n=>this.optionComparator(n,this.$data._value))||e},closeSearchOptions(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){let e=null;this.multiple&&(e=[...this.selectedValue.slice(0,this.selectedValue.length-1)]),this.updateValue(e)}},optionExists(e){return this.optionList.some(t=>this.optionComparator(t,e))},normalizeOptionForSlot(e){return typeof e=="object"?e:{[this.label]:e}},pushTag(e){this.pushedTags.push(e)},onEscape(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur(){if(this.mousedown&&!this.searching)this.mousedown=!1;else{const{clearSearchOnSelect:e,multiple:t}=this;this.clearSearchOnBlur({clearSearchOnSelect:e,multiple:t})&&(this.search=""),this.closeSearchOptions();return}if(this.search.length===0&&this.options.length===0){this.closeSearchOptions();return}},onSearchFocus(){this.open=!0,this.$emit("search:focus")},onMousedown(){this.mousedown=!0},onMouseUp(){this.mousedown=!1},onSearchKeyDown(e){const t=i=>(i.preventDefault(),!this.isComposing&&this.typeAheadSelect()),r={8:i=>this.maybeDeleteValue(),9:i=>this.onTab(),27:i=>this.onEscape(),38:i=>(i.preventDefault(),this.typeAheadUp()),40:i=>(i.preventDefault(),this.typeAheadDown())};this.selectOnKeyCodes.forEach(i=>r[i]=t);const n=this.mapKeydown(r,this);if(typeof n[e.keyCode]=="function")return n[e.keyCode](e)}}},MF=["dir"],LF=["id","aria-expanded","aria-owns"],NF={ref:"selectedOptions",class:"vs__selected-options"},HF=["disabled","title","aria-label","onClick"],UF={ref:"actions",class:"vs__actions"},BF=["disabled"],WF={class:"vs__spinner"},qF=["id"],VF=["id","aria-selected","onMouseover","onClick"],YF={key:0,class:"vs__no-options"},QF=He(" Sorry, no matching options. "),zF=["id"];function KF(e,t,r,n,i,a){const s=xb("append-to-body");return T(),W("div",{dir:r.dir,class:te(["v-select",a.stateClasses])},[se(e.$slots,"header",Qe(lt(a.scope.header))),O("div",{id:`vs${r.uid}__combobox`,ref:"toggle",class:"vs__dropdown-toggle",role:"combobox","aria-expanded":a.dropdownOpen.toString(),"aria-owns":`vs${r.uid}__listbox`,"aria-label":"Search for option",onMousedown:t[1]||(t[1]=o=>a.toggleDropdown(o))},[O("div",NF,[(T(!0),W(ye,null,We(a.selectedValue,(o,l)=>se(e.$slots,"selected-option-container",{option:a.normalizeOptionForSlot(o),deselect:a.deselect,multiple:r.multiple,disabled:r.disabled},()=>[(T(),W("span",{key:r.getOptionKey(o),class:"vs__selected"},[se(e.$slots,"selected-option",Qe(lt(a.normalizeOptionForSlot(o))),()=>[He(ge(r.getOptionLabel(o)),1)]),r.multiple?(T(),W("button",{key:0,ref_for:!0,ref:u=>i.deselectButtons[l]=u,disabled:r.disabled,type:"button",class:"vs__deselect",title:`Deselect ${r.getOptionLabel(o)}`,"aria-label":`Deselect ${r.getOptionLabel(o)}`,onClick:u=>a.deselect(o)},[(T(),Re(Xi(a.childComponents.Deselect)))],8,HF)):ne("",!0)]))])),256)),se(e.$slots,"search",Qe(lt(a.scope.search)),()=>[O("input",$t({class:"vs__search"},a.scope.search.attributes,wP(a.scope.search.events)),null,16)])],512),O("div",UF,[Gt(O("button",{ref:"clearButton",disabled:r.disabled,type:"button",class:"vs__clear",title:"Clear Selected","aria-label":"Clear Selected",onClick:t[0]||(t[0]=(...o)=>a.clearSelection&&a.clearSelection(...o))},[(T(),Re(Xi(a.childComponents.Deselect)))],8,BF),[[Gr,a.showClearButton]]),se(e.$slots,"open-indicator",Qe(lt(a.scope.openIndicator)),()=>[r.noDrop?ne("",!0):(T(),Re(Xi(a.childComponents.OpenIndicator),Qe($t({key:0},a.scope.openIndicator.attributes)),null,16))]),se(e.$slots,"spinner",Qe(lt(a.scope.spinner)),()=>[Gt(O("div",WF,"Loading...",512),[[Gr,e.mutableLoading]])])],512)],40,LF),Ae(Ai,{name:r.transition},{default:Ie(()=>[a.dropdownOpen?Gt((T(),W("ul",{id:`vs${r.uid}__listbox`,ref:"dropdownMenu",key:`vs${r.uid}__listbox`,class:"vs__dropdown-menu",role:"listbox",tabindex:"-1",onMousedown:t[2]||(t[2]=Se((...o)=>a.onMousedown&&a.onMousedown(...o),["prevent"])),onMouseup:t[3]||(t[3]=(...o)=>a.onMouseUp&&a.onMouseUp(...o))},[se(e.$slots,"list-header",Qe(lt(a.scope.listHeader))),(T(!0),W(ye,null,We(a.filteredOptions,(o,l)=>(T(),W("li",{id:`vs${r.uid}__option-${l}`,key:r.getOptionKey(o),role:"option",class:te(["vs__dropdown-option",{"vs__dropdown-option--deselect":a.isOptionDeselectable(o)&&l===e.typeAheadPointer,"vs__dropdown-option--selected":a.isOptionSelected(o),"vs__dropdown-option--highlight":l===e.typeAheadPointer,"vs__dropdown-option--disabled":!r.selectable(o)}]),"aria-selected":l===e.typeAheadPointer?!0:null,onMouseover:u=>r.selectable(o)?e.typeAheadPointer=l:null,onClick:Se(u=>r.selectable(o)?a.select(o):null,["prevent","stop"])},[se(e.$slots,"option",Qe(lt(a.normalizeOptionForSlot(o))),()=>[He(ge(r.getOptionLabel(o)),1)])],42,VF))),128)),a.filteredOptions.length===0?(T(),W("li",YF,[se(e.$slots,"no-options",Qe(lt(a.scope.noOptions)),()=>[QF])])):ne("",!0),se(e.$slots,"list-footer",Qe(lt(a.scope.listFooter)))],40,qF)),[[s]]):(T(),W("ul",{key:1,id:`vs${r.uid}__listbox`,role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,zF))]),_:3},8,["name"]),se(e.$slots,"footer",Qe(lt(a.scope.footer)))],10,MF)}const Hw=ap(FF,[["render",KF]]),GF={name:"PbDropdown",components:{vSelect:Hw},props:{clearable:{type:Boolean,default:!1},options:{type:Array,default(){return[]}},placeholder:{type:String,default:"Options"},searchable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{itemSelected:""}},mounted(){this.itemSelected=this.options.filter(e=>{if(e.default)return e.value})},methods:{select(e){this.itemSelected=e,this.$emit("update:modelValue",e.value)}}};function XF(e,t,r,n,i,a){const s=Fe("v-select");return T(),W("div",null,[Ae(s,{"model-value":i.itemSelected,options:r.options,placeholder:r.placeholder,searchable:r.searchable,clearable:r.clearable,disabled:r.disabled,"onUpdate:modelValue":a.select},null,8,["model-value","options","placeholder","searchable","clearable","disabled","onUpdate:modelValue"])])}const Uw=ut(GF,[["render",XF]]),ZF={name:"PbPerPageDropdown",components:{PbDropdown:Uw},props:{options:{type:Array,default(){return[]}}},data(){return{itemsOptions:this.options,alias:this.$store.state.SClient.searchParameters.aliases.hitsPerPage}},methods:{onInput(e){let t={...this.$route.query};(!t[this.alias]||t[this.alias]&&e!==t[this.alias])&&(this.sendFilterAppliedInsight([`value:${e}`],"Per Page Changed"),t[this.alias]=e,this.$router.replace({query:t}))}}};function JF(e,t,r,n,i,a){const s=Fe("pb-dropdown"),o=Fe("ais-hits-per-page");return T(),Re(o,{items:i.itemsOptions,class:"w-full md:w-1/2"},{default:Ie(({items:l})=>[Ae(s,{placeholder:"Books per page",options:l,"data-cy":"books-per-page","onUpdate:modelValue":a.onInput},null,8,["options","onUpdate:modelValue"])]),_:1},8,["items"])}const e3=ut(ZF,[["render",JF]]),t3={name:"PbSortByDropdown",components:{PbDropdown:Uw},props:{options:{type:Array,default(){return[]}}},data(){return{alias:this.$store.state.SClient.searchParameters.aliases.sortedBy,itemsOptions:this.options,disabled:!0}},watch:{"$route.query":{deep:!0,handler(e){if(Object.keys(e).forEach(a=>{e[a]===void 0&&delete e[a]}),e===void 0||Object.keys(e).length===0){this.disabled=!0;return}let t=Object.keys(e),r=this.$store.state.SClient.allowedFilters;const i=Object.keys(r).map(function(a){return r[a].alias}).filter(a=>t.includes(a));this.disabled=i.length===0}}},methods:{onInput(e,t){this.$store.commit("setResetMainIndex",!1);let r={...this.$route.query};const n=this.$store.state.SClient.availableIndexes.reduce((i,a)=>({...i,[a.value]:a.orderedBy}),{});(!r[this.alias]||r[this.alias]&&r[this.alias]!==n[e])&&(this.sendFilterAppliedInsight([`value:${e}`],"Sort By Changed"),r[this.alias]=n[e],this.$router.replace({query:r}),t(e))}}};function r3(e,t,r,n,i,a){const s=Fe("pb-dropdown"),o=Fe("ais-sort-by");return T(),Re(o,{items:i.itemsOptions,class:"w-ful md:w-1/2"},{default:Ie(({items:l,refine:u})=>[Ae(s,{placeholder:"Sort books by",options:l,"data-cy":"sort-books-by",disabled:i.disabled,"onUpdate:modelValue":c=>{a.onInput(c,u)}},null,8,["options","disabled","onUpdate:modelValue"])]),_:1},8,["items"])}const n3=ut(t3,[["render",r3]]);var Bw={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress * @license MIT */(function(e,t){(function(r,n){e.exports=n()})(nl,function(){var r={};r.version="0.2.0";var n=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};r.configure=function(h){var m,v;for(m in h)v=h[m],v!==void 0&&h.hasOwnProperty(m)&&(n[m]=v);return this},r.status=null,r.set=function(h){var m=r.isStarted();h=i(h,n.minimum,1),r.status=h===1?null:h;var v=r.render(!m),g=v.querySelector(n.barSelector),y=n.speed,_=n.easing;return v.offsetWidth,o(function(b){n.positionUsing===""&&(n.positionUsing=r.getPositioningCSS()),l(g,s(h,y,_)),h===1?(l(v,{transition:"none",opacity:1}),v.offsetWidth,setTimeout(function(){l(v,{transition:"all "+y+"ms linear",opacity:0}),setTimeout(function(){r.remove(),b()},y)},y)):setTimeout(b,y)}),this},r.isStarted=function(){return typeof r.status=="number"},r.start=function(){r.status||r.set(0);var h=function(){setTimeout(function(){!r.status||(r.trickle(),h())},n.trickleSpeed)};return n.trickle&&h(),this},r.done=function(h){return!h&&!r.status?this:r.inc(.3+.5*Math.random()).set(1)},r.inc=function(h){var m=r.status;return m?(typeof h!="number"&&(h=(1-m)*i(Math.random()*m,.1,.95)),m=i(m+h,0,.994),r.set(m)):r.start()},r.trickle=function(){return r.inc(Math.random()*n.trickleRate)},function(){var h=0,m=0;r.promise=function(v){return!v||v.state()==="resolved"?this:(m===0&&r.start(),h++,m++,v.always(function(){m--,m===0?(h=0,r.done()):r.set((h-m)/h)}),this)}}(),r.render=function(h){if(r.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var m=document.createElement("div");m.id="nprogress",m.innerHTML=n.template;var v=m.querySelector(n.barSelector),g=h?"-100":a(r.status||0),y=document.querySelector(n.parent),_;return l(v,{transition:"all 0 linear",transform:"translate3d("+g+"%,0,0)"}),n.showSpinner||(_=m.querySelector(n.spinnerSelector),_&&p(_)),y!=document.body&&c(y,"nprogress-custom-parent"),y.appendChild(m),m},r.remove=function(){f(document.documentElement,"nprogress-busy"),f(document.querySelector(n.parent),"nprogress-custom-parent");var h=document.getElementById("nprogress");h&&p(h)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var h=document.body.style,m="WebkitTransform"in h?"Webkit":"MozTransform"in h?"Moz":"msTransform"in h?"ms":"OTransform"in h?"O":"";return m+"Perspective"in h?"translate3d":m+"Transform"in h?"translate":"margin"};function i(h,m,v){return hv?v:h}function a(h){return(-1+h)*100}function s(h,m,v){var g;return n.positionUsing==="translate3d"?g={transform:"translate3d("+a(h)+"%,0,0)"}:n.positionUsing==="translate"?g={transform:"translate("+a(h)+"%,0)"}:g={"margin-left":a(h)+"%"},g.transition="all "+m+"ms "+v,g}var o=function(){var h=[];function m(){var v=h.shift();v&&v(m)}return function(v){h.push(v),h.length==1&&m()}}(),l=function(){var h=["Webkit","O","Moz","ms"],m={};function v(b){return b.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(P,k){return k.toUpperCase()})}function g(b){var P=document.body.style;if(b in P)return b;for(var k=h.length,A=b.charAt(0).toUpperCase()+b.slice(1),U;k--;)if(U=h[k]+A,U in P)return U;return b}function y(b){return b=v(b),m[b]||(m[b]=g(b))}function _(b,P,k){P=y(P),b.style[P]=k}return function(b,P){var k=arguments,A,U;if(k.length==2)for(A in P)U=P[A],U!==void 0&&P.hasOwnProperty(A)&&_(b,A,U);else _(b,k[1],k[2])}}();function u(h,m){var v=typeof h=="string"?h:d(h);return v.indexOf(" "+m+" ")>=0}function c(h,m){var v=d(h),g=v+m;u(v,m)||(h.className=g.substring(1))}function f(h,m){var v=d(h),g;!u(h,m)||(g=v.replace(" "+m+" "," "),h.className=g.substring(1,g.length-1))}function d(h){return(" "+(h.className||"")+" ").replace(/\s+/gi," ")}function p(h){h&&h.parentNode&&h.parentNode.removeChild(h)}return r})})(Bw);const Cl=Bw.exports,i3={name:"PbSearchBox",components:{SearchIcon:K0},data(){return{stringSearch:"",searchCharsLimit:{min:3,max:512}}},watch:{"$route.query.q"(e){if(this.stringSearch="",typeof e>"u"){this.$store.state.SClient.searchFilters="",this.$store.state.SClient.searchParameters.searchQuery="",this.$store.state.SClient.filtersParams=this.$store.state.SClient.hasNumeric?this.$store.state.SClient.numericFilters:"";return}if(e.length>0){this.stringSearch=e;let r=this.filterSearch(e);this.$store.state.SClient.hasNumeric&&r.facetFilters.length>0&&(this.$store.state.SClient.filtersParams="("+this.$store.state.SClient.numericFilters+") AND ("+r.facetFilters+")"),!this.$store.state.SClient.hasNumeric&&r.facetFilters.length>0&&(this.$store.state.SClient.filtersParams=r.facetFilters),this.$store.state.SClient.searchFilters=r.facetFilters,this.$store.state.SClient.searchParameters.searchQuery=r.stringSearch;return}let t={...this.$route.query};delete t.q,this.$router.replace({query:t})}},mounted(){this.$store.commit("setComponentAsLoaded","searchbox")},methods:{filterSearch(e){if(e.length===0)return{facetFilters:"",stringSearch:""};const t=e.match(/("[^"]+"|[^"\s]+)/g);let r=!1,n={},i="",a=[],s=this.$store;const o=Object.keys(s.state.SClient.allowedFilters).map(function(p){if(s.state.SClient.allowedFilters[p].search)return s.state.SClient.allowedFilters[p].alias});s.commit("getRealAttributesMapped");let l=s.state.SClient.mappedFilters,u=[];for(let p=0;p0)for(let h=0;h=0){let h=t[p].split(":");if(typeof n[l[h[0]]]>"u"&&(n[l[h[0]]]={operator:"OR",filters:[]}),o.indexOf(h[0].toLowerCase())>=0&&h.length===2)if(h[1].length===0){r=!0,i+=h[0];continue}else{if(u=hr.functions.getSimilarFacetValues(h[0],h[1],s.state.stats.filters,l),h[1][0]==="-"&&(n[l[h[0]]].operator="AND NOT"),u.length>0)for(let m=0;m0&&(d=n[p].operator==="AND NOT"?"NOT ":"",f.length>1?c+="("+d+n[p].filters.join(" "+n[p].operator+" ")+") AND ":c+=d+n[p].filters.join(" "+n[p].operator+" "));if(c=f.length>1?c.slice(0,-5):c,a.length>1)for(let p=1;p=this.searchCharsLimit.min&&e.length<=this.searchCharsLimit.max||e.length===0){oc("#books");let t={...this.$route.query},r=this.$store.state.SClient.allowedFilters.search.alias;if(t[r]===e)return;if(e==="")return t[r]?(delete t[r],this.$router.replace({query:t})):void 0;this.sendFilterAppliedInsight([`search:${e}`],"Search Applied"),this.$router.replace({query:{...t,[r]:e}})}}}},a3={class:"flex flex-row items-end space-x-6"},s3={class:"w-2/3 md:w-4/5 flex flex-row items-end input-wrapper","data-cy":"search-container"},o3={class:"border-b border-gray-300 flex flex-row w-full items-center focus-within:border-red-700"},l3={class:"w-1/3 md:w-1/5"},u3=["disabled"];function c3(e,t,r,n,i,a){const s=Fe("search-icon");return T(),W("form",{class:"left w-full flex-1 flex-shrink-0","data-cy":"search-form",onSubmit:t[1]||(t[1]=Se(o=>a.search(i.stringSearch),["prevent"]))},[O("div",a3,[O("div",s3,[O("div",o3,[Ae(s,{class:"h-6 w-6 text-gray-400"}),Gt(O("input",{"onUpdate:modelValue":t[0]||(t[0]=o=>i.stringSearch=o),class:"w-full border-0 text-sm py-3 px-4 focus:outline-none focus:ring-0",type:"search",placeholder:"Find a book","data-cy":"book-input-search",autocomplete:"off",autocapitalize:"none",spellcheck:"false","aria-label":"Search a book"},null,512),[[mu,i.stringSearch]])])]),O("div",l3,[O("button",{type:"submit",class:"w-full py-3 font-semibold rounded-full text-white bg-red-700",disabled:i.stringSearch.length>0&&(i.stringSearch.lengthi.searchCharsLimit.max),"data-cy":"book-button-search"}," Search ",8,u3)])])],32)}const f3=ut(i3,[["render",c3]]),d3={name:"PbSearchAndSortBox",components:{PbPerPageDropdown:e3,PbSortByDropdown:n3,PbSearchBox:f3},data(){return{defaultHitsPerPage:10,perPageOptions:[],sortByOptions:this.$store.state.SClient.availableIndexes}},watch:{"$store.state.SClient.searchParameters.hitsPerPage"(e){this.perPageOptions=this.perPageOptions.map(t=>(t.default=e==t.value,t))}},mounted(){let e=this;this.perPageOptions=this.$store.state.SClient.searchParameters.hitsPerPageAllowed.map(t=>({label:`${t} books`,value:t,default:t===e.defaultHitsPerPage}))}},h3={class:"space-y-10"},p3={class:"flex flex-col items-center space-y-10 md:flex-row md:space-y-0 md:space-x-10"},m3={class:"right w-full flex flex-col space-y-4 md:w-2/5 md:flex-row md:space-y-0 md:space-x-4","data-cy":"top-filters"};function v3(e,t,r,n,i,a){const s=Fe("pb-search-box"),o=Fe("pb-per-page-dropdown"),l=Fe("pb-sort-by-dropdown");return T(),W("div",h3,[t[0]||(t[0]=O("h2",{id:"find-book",class:"section-title text-4xl font-bold text-center"}," Find a book ",-1)),O("div",p3,[Ae(s),O("div",m3,[i.perPageOptions.length>0?(T(),Re(o,{key:0,options:i.perPageOptions},null,8,["options"])):ne("",!0),Ae(l,{options:i.sortByOptions},null,8,["options"])])])])}const g3=ut(d3,[["render",v3]]),y3={name:"PbStats"},b3={id:"results",class:"font-semibold text-2xl mb-6","data-cy":"number-of-books"};function w3(e,t,r,n,i,a){const s=Fe("ais-stats");return T(),Re(s,null,{default:Ie(({nbHits:o,query:l})=>[O("h3",b3,ge(`${e.$filters.numberFormat(o)} results ${l?`for "${l}"`:""}`),1)]),_:1})}const _3=ut(y3,[["render",w3]]),S3={name:"PbSelectedFilter",components:{XCircleIcon:G0},props:{name:{type:String,default:""},value:{type:Object,default(){return{}}},attributesAllowed:{type:Array,default(){return[]}},attributesAllowEmpty:{type:Array,default(){return[]}}},methods:{getAliasType(e){for(let t in this.$store.state.SClient.allowedFilters){if(e.attribute===t)return{alias:this.$store.state.SClient.allowedFilters[t].alias,type:this.$store.state.SClient.allowedFilters[t].type};if(e.attribute===this.$store.state.SClient.allowedFilters[t].empty)return{alias:this.$store.state.SClient.allowedFilters[t].alias,type:this.$store.state.SClient.allowedFilters[t].type}}return!1},closeExcludeFilter(e){let t={...this.$route.query},r=this.attributesAllowed.concat(this.attributesAllowEmpty),n=this.getAliasType(e);if(r.indexOf(e.attribute)<0||!n)return!1;for(let i in t)if(i===n.alias){t[i]=t[i].split("&&");for(let a=0;aa.closeExcludeFilter(r.value),["prevent"]))},[O("span",$3,ge(`Remove ${r.name} filter`),1),Ae(s,{class:"h-4 w-4"})],8,O3)])}const A3=ut(S3,[["render",R3]]),T3={name:"PbActiveFilters",components:{PbSelectedFilter:A3},data(){return{attrAllowed:[],allowed:this.$store.state.SClient.allowedFilters,attrAllowedEmpty:[]}},mounted(){this.attrAllowed=Object.keys(this.$store.state.SClient.allowedFilters);let e=this.allowed;this.attrAllowedEmpty=Object.keys(this.allowed).map(t=>{if(typeof e[t].empty<"u")return e[t].empty})},methods:{removeFilters(){if(Object.keys(this.$route.query).length!==0){const{q:e,per_page:t}=this.$route.query;this.$router.replace({query:{q:e,per_page:t}})}},getLabel(e){let t;switch(e.attribute){case"hasIsBasedOn":t=e.value?"Based on another book":"Original";break;case"wordCount":t="Words "+e.operator+" "+e.value;break;case"lastUpdated":let r=vn.unix(e.value).utc().format("MM-DD-YYYY");t=`Updated ${e.operator} ${r}`;break;case"h5pActivities":t="H5P Activities "+e.operator+" "+e.value;break;default:this.attrAllowedEmpty.indexOf(e.attribute)>=0?t=this.getAliasType(e).alias+": Empty":t=e.value}return e.exclude?"NOT "+t:t}}},k3={"data-cy":"active-filters"},C3={key:0,class:"flex flex-col md:flex-row justify-between items-start"},E3={class:"active-filters flex flex-col flex-wrap flex-1 md:flex-row",role:"list","aria-labelledby":"active-filters"},I3={class:"flex-shrink-0 justify-center align-middle flex flex-col clear-filters"};function D3(e,t,r,n,i,a){const s=Fe("pb-selected-filter");return T(),W("div",k3,[t[2]||(t[2]=O("span",{id:"active-filters",class:"font-semibold text-lg mb-1"}," Active Filters ",-1)),Object.keys(e.$store.state.SClient.filtersExcluded).length>0||e.$store.state.config.showTour===!0?(T(),W("div",C3,[O("ul",E3,[(T(!0),W(ye,null,We(e.$store.state.SClient.filtersExcluded,(o,l)=>(T(),W(ye,null,[(T(!0),W(ye,null,We(o,(u,c)=>(T(),Re(s,{key:l.toString()+c.toString(),name:a.getLabel(u),value:u,"attributes-allowed":i.attrAllowed,"attributes-allow-empty":i.attrAllowedEmpty},null,8,["name","value","attributes-allowed","attributes-allow-empty"]))),128))],64))),256))]),O("div",I3,[Object.keys(e.$store.state.SClient.filtersExcluded).length>0||e.$store.state.config.showTour===!0?(T(),W("button",{key:0,type:"reset",class:"font-bold text-pb-red text-right uppercase","data-cy":"clear-all-filters",onClick:t[0]||(t[0]=Se((...o)=>a.removeFilters&&a.removeFilters(...o),["prevent"]))},t[1]||(t[1]=[O("span",{class:"sr-only"},"Clear all active filters",-1),O("span",{"aria-hidden":"true"},"Clear all",-1)]))):ne("",!0)])])):ne("",!0)])}const j3=ut(T3,[["render",D3]]),F3={name:"BookInfo",props:{item:{type:Object,default(){return{}}}},emits:["book-title-click"],computed:{hasH5PActivities(){return this.item.hasH5pActivities&&this.item.h5pActivities>0},bookLicense(){return this.item.licenseCode}}},M3={class:"space-y-2"},L3={class:"tracking-widest uppercase text-sm font-medium","data-cy":"book-network"},N3={class:"leading-tight text-xl font-semibold mb-1"},H3=["href"],U3={class:"leading-tight"},B3={"data-cy":"book-copyright-license"},W3=["href"],q3={"data-cy":"h5p-count"},V3={"data-cy":"h5p-count"},Y3={"data-cy":"book-word-count"};function Q3(e,t,r,n,i,a){return T(),W("div",M3,[O("span",L3,[t[1]||(t[1]=O("span",{class:"sr-only"},"Network",-1)),He(" "+ge(`${r.item.networkHost} | ${r.item.networkName}`),1)]),O("h4",N3,[O("a",{class:"text-red-700 underline hover:text-red-900",href:r.item.url,target:"_blank",rel:"noopener","data-cy":"book-title",onClick:t[0]||(t[0]=s=>e.$emit("book-title-click"))},ge(r.item.name),9,H3)]),O("p",U3,[O("span",B3,ge(a.bookLicense),1),t[4]||(t[4]=He(" | ")),a.hasH5PActivities?(T(),W("a",{key:0,href:r.item.url+"h5p-listing",class:"text-pb-red underline",target:"_blank"},[O("span",q3,ge(e.$filters.numberFormat(r.item.h5pActivities)),1),t[2]||(t[2]=He(" H5P activities"))],8,W3)):(T(),W(ye,{key:1},[O("span",V3,ge(e.$filters.numberFormat(r.item.h5pActivities)),1),t[3]||(t[3]=He(" H5P activities "))],64)),t[5]||(t[5]=He(" | ")),O("span",Y3,ge(e.$filters.numberFormat(r.item.wordCount)),1),t[6]||(t[6]=He(" words "))])])}const z3=ut(F3,[["render",Q3]]),K3={name:"MetaInfo",props:{title:{type:String,default:""},text:{type:String,default:""}}};function G3(e,t,r,n,i,a){return T(),W("p",null,[O("strong",null,ge(r.title),1),O("span",null,ge(r.text),1)])}const X3=ut(K3,[["render",G3]]);var tf=null;function Z3(e){return tf||(tf=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){return setTimeout(t,16)}).bind(window)),tf(e)}var rf=null;function J3(e){rf||(rf=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(t){clearTimeout(t)}).bind(window)),rf(e)}function eM(e){var t=document.createElement("style");return t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),(document.querySelector("head")||document.body).appendChild(t),t}function El(e,t){t===void 0&&(t={});var r=document.createElement(e);return Object.keys(t).forEach(function(n){r[n]=t[n]}),r}function Ww(e,t,r){var n=window.getComputedStyle(e,r||null)||{display:"none"};return n[t]}function hd(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};for(var t=e;t!==document;){if(Ww(t,"display")==="none")return{detached:!1,rendered:!1};t=t.parentNode}return{detached:!1,rendered:!0}}var tM='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',pd=0,tu=null;function rM(e,t){e.__resize_mutation_handler__||(e.__resize_mutation_handler__=aM.bind(e));var r=e.__resize_listeners__;if(!r){if(e.__resize_listeners__=[],window.ResizeObserver){var n=e.offsetWidth,i=e.offsetHeight,a=new ResizeObserver(function(){!e.__resize_observer_triggered__&&(e.__resize_observer_triggered__=!0,e.offsetWidth===n&&e.offsetHeight===i)||Du(e)}),s=hd(e),o=s.detached,l=s.rendered;e.__resize_observer_triggered__=o===!1&&l===!1,e.__resize_observer__=a,a.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){Du(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(pd||(tu=eM(tM)),sM(e),e.__resize_rendered__=hd(e).rendered,window.MutationObserver){var u=new MutationObserver(e.__resize_mutation_handler__);u.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=u}}e.__resize_listeners__.push(t),pd++}function nM(e,t){var r=e.__resize_listeners__;if(!!r){if(t&&r.splice(r.indexOf(t),1),!r.length||!t){if(e.detachEvent&&e.removeEventListener){e.detachEvent("onresize",e.__resize_legacy_resize_handler__),document.removeEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);return}e.__resize_observer__?(e.__resize_observer__.unobserve(e),e.__resize_observer__.disconnect(),e.__resize_observer__=null):(e.__resize_mutation_observer__&&(e.__resize_mutation_observer__.disconnect(),e.__resize_mutation_observer__=null),e.removeEventListener("scroll",sp),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null}!--pd&&tu&&tu.parentNode.removeChild(tu)}}function iM(e){var t=e.__resize_last__,r=t.width,n=t.height,i=e.offsetWidth,a=e.offsetHeight;return i!==r||a!==n?{width:i,height:a}:null}function aM(){var e=hd(this),t=e.rendered,r=e.detached;t!==this.__resize_rendered__&&(!r&&this.__resize_triggers__&&(op(this),this.addEventListener("scroll",sp,!0)),this.__resize_rendered__=t,Du(this))}function sp(){var e=this;op(this),this.__resize_raf__&&J3(this.__resize_raf__),this.__resize_raf__=Z3(function(){var t=iM(e);t&&(e.__resize_last__=t,Du(e))})}function Du(e){!e||!e.__resize_listeners__||e.__resize_listeners__.forEach(function(t){t.call(e,e)})}function sM(e){var t=Ww(e,"position");(!t||t==="static")&&(e.style.position="relative"),e.__resize_old_position__=t,e.__resize_last__={};var r=El("div",{className:"resize-triggers"}),n=El("div",{className:"resize-expand-trigger"}),i=El("div"),a=El("div",{className:"resize-contract-trigger"});n.appendChild(i),r.appendChild(n),r.appendChild(a),e.appendChild(r),e.__resize_triggers__={triggers:r,expand:n,expandChild:i,contract:a},op(e),e.addEventListener("scroll",sp,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}function op(e){var t=e.__resize_triggers__,r=t.expand,n=t.expandChild,i=t.contract,a=i.scrollWidth,s=i.scrollHeight,o=r.offsetWidth,l=r.offsetHeight,u=r.scrollWidth,c=r.scrollHeight;i.scrollLeft=a,i.scrollTop=s,n.style.width=o+1+"px",n.style.height=l+1+"px",r.scrollLeft=u,r.scrollTop=c}const oM=Ct({name:"VueClamp",props:{tag:{type:String,default:"div"},autoresize:{type:Boolean,default:!1},maxLines:{type:Number,default:3},maxHeight:{type:[String,Number],default:0},ellipsis:{type:String,default:"\u2026"},location:{type:String,default:"end",validator(e){return["start","middle","end"].indexOf(e)!==-1}},expanded:Boolean},data(){return{offset:null,text:this.getText(),localExpanded:!!this.expanded}},computed:{clampedText(){if(this.location==="start")return this.ellipsis+(this.text.slice(0,this.offset)||"").trim();if(this.location==="middle"){const e=Math.floor(this.offset/2);return(this.text.slice(0,e)||"").trim()+this.ellipsis+(this.text.slice(-e)||"").trim()}return(this.text.slice(0,this.offset)||"").trim()+this.ellipsis},isClamped(){return this.text?this.offset!==this.text.length:!1},realText(){return this.isClamped?this.clampedText:this.text},realMaxHeight(){if(this.localExpanded)return null;const{maxHeight:e}=this;return e?typeof e=="number"?`${e}px`:e:null}},watch:{expanded(e){this.localExpanded=e},localExpanded(e){e?this.clampAt(this.text.length):this.update(),this.expanded!==e&&this.$emit("update:expanded",e)},isClamped:{handler(e){this.$nextTick(()=>this.$emit("clampchange",e))},immediate:!0}},mounted(){this.init(),this.$watch(e=>[e.maxLines,e.maxHeight,e.ellipsis,e.isClamped].join(),this.update),this.$watch(e=>[e.tag,e.text,e.autoresize].join(),this.init)},updated(){this.text=this.getText(),this.applyChange()},beforeUnmount(){this.cleanUp()},methods:{init(){!this.$slots.default()||(this.offset=this.text.length,this.cleanUp(),this.autoresize&&(rM(this.$el,this.update),this.unregisterResizeCallback=()=>{nM(this.$el,this.update)}),this.update())},update(){this.localExpanded||(this.applyChange(),(this.isOverflow()||this.isClamped)&&this.search())},expand(){this.localExpanded=!0},collapse(){this.localExpanded=!1},toggle(){this.localExpanded=!this.localExpanded},getLines(){const e=parseInt(getComputedStyle(this.$refs.content).lineHeight),t=this.$refs.content.offsetHeight;return Math.round(t/e)},isOverflow(){return!this.maxLines&&!this.maxHeight?!1:!!(this.maxLines&&this.getLines()>this.maxLines||this.maxHeight&&this.$el.scrollHeight>this.$el.offsetHeight)},getText(){const e=this.$slots.default?this.$slots.default():[];let t="";for(let r=0;r1&&this.offset>0;)this.moveEdge(-1)},search(...e){const[t=0,r=this.offset]=e;if(r-t<=3){this.stepToFit();return}const n=Math.floor((r+t)/2);this.clampAt(n),this.isOverflow()?this.search(t,n):this.search(n,r)},cleanUp(){this.unregisterResizeCallback&&this.unregisterResizeCallback()}},render(){var l;const e=[Ur("span",{ref:"text",attrs:{"aria-label":(l=this.text)==null?void 0:l.trim()},class:"book-description",innerHTML:this.realText},[])],{expand:t,collapse:r,toggle:n}=this,i={expand:t,collapse:r,toggle:n,clamped:this.isClamped,expanded:this.localExpanded},a=this.$slots.before?this.$slots.before(i):this.$slots.before;a&&e.unshift(...Array.isArray(a)?a:[a]);const s=this.$slots.after?this.$slots.after(i):this.$slots.after;s&&e.push(...Array.isArray(s)?s:[s]);const o=[Ur("span",{style:{boxShadow:"transparent 0 0"},ref:"content"},e)];return Ur(this.tag,{style:{maxHeight:this.realMaxHeight,overflow:"hidden"}},o)}}),lM={name:"BookDetails",components:{MetaInfo:X3,VueClamp:oM},props:{item:{type:Object,default(){return{}}}},data(){return{maxLinesDescription:6}},computed:{hasAuthors(){return this.item.author&&this.item.author.length>0},hasDescription(){return this.item.description},hasLastUpdated(){return this.item.hasLastUpdated},hasInstitutions(){return this.item.institutions&&this.item.institutions.length>0},hasPublisher(){return this.item.publisherName},hasSubjects(){return this.item.about&&this.item.about.length>0},hasEditor(){return this.item.editor&&this.item.editor.length>0},authors(){return this.item.author.join(", ")},subjects(){return this.item.about.join(", ")},institutions(){return this.item.institutions.join(", ")},lastUpdated(){const e=new Date(this.item.lastUpdated*1e3),t=e.getUTCMonth()+1,r=e.getUTCDate();return`${t<10?"0"+t:t}-${r}-${e.getUTCFullYear()}`},editors(){return this.item.editor.join(", ")}},methods:{sendClickInsight(){this.sendInsight({insightsMethod:"clickedObjectIDsAfterSearch",payload:{eventName:"Read More Clicked",objectIDs:[this.item.objectID],positions:[this.item.__position],queryID:this.item.__queryID}})}}},uM={class:"py-4 space-y-1","data-cy":"book-meta"},cM={"data-cy":"book-description"},fM=["onClick"],dM={class:"sr-only"};function hM(e,t,r,n,i,a){const s=Fe("meta-info"),o=Fe("vue-clamp");return T(),W("div",null,[O("div",uM,[a.hasAuthors?(T(),Re(s,{key:0,title:"Author(s): ",text:a.authors,"data-cy":"book-authors"},null,8,["text"])):ne("",!0),a.hasEditor?(T(),Re(s,{key:1,title:"Editor(s): ",text:a.editors,"data-cy":"book-editors"},null,8,["text"])):ne("",!0),a.hasSubjects?(T(),Re(s,{key:2,title:"Subject(s): ",text:a.subjects,"data-cy":"book-subjects"},null,8,["text"])):ne("",!0),a.hasLastUpdated?(T(),Re(s,{key:3,title:"Last updated: ","data-cy":"book-last-updated",text:a.lastUpdated},null,8,["text"])):ne("",!0),a.hasInstitutions?(T(),Re(s,{key:4,title:"Institution(s): ",text:a.institutions,"data-cy":"book-institutions"},null,8,["text"])):ne("",!0),a.hasPublisher?(T(),Re(s,{key:5,title:"Publisher: ",text:r.item.publisherName,"data-cy":"book-publisher"},null,8,["text"])):ne("",!0),Ae(s,{title:"Language: ",text:r.item.languageName,"data-cy":"book-language"},null,8,["text"])]),O("div",cM,[a.hasDescription?(T(),Re(o,{key:0,autoresize:"","max-lines":i.maxLinesDescription,class:"leading-relaxed font-serif","data-cy":"book-description"},{after:Ie(({toggle:l,clamped:u})=>[u?(T(),W("button",{key:0,class:"block text-pb-red underline","data-cy":"book-read-more-description",onClick:Se(()=>{l(),a.sendClickInsight()},["prevent"])},[O("span",dM,ge(`Read more about ${r.item.name}`),1),t[0]||(t[0]=O("span",{"aria-hidden":"true"},"Read more",-1))],8,fM)):ne("",!0)]),default:Ie(()=>[He(ge(r.item.description)+" ",1)]),_:1},8,["max-lines"])):ne("",!0)])])}const pM=ut(lM,[["render",hM]]),mM={name:"BookCover",props:{item:{type:Object,default(){return{}}}},emits:["book-title-click"],data(){return{defaultImg:"/assets/images/default-book-cover.jpg"}}},vM={class:"w-full md:w-1/3"},gM={class:"book-cover image max-w-[350px]","data-cy":"book-cover"},yM=["href"],bM=["src","data-src","alt"],wM=["src","data-src","alt"];function _M(e,t,r,n,i,a){const s=xb("lazy-container");return T(),W("div",vM,[O("div",gM,[Gt((T(),W("a",{href:r.item.url,target:"_blank",rel:"noopener","data-cy":"book-cover",onClick:t[0]||(t[0]=o=>e.$emit("book-title-click"))},[r.item.hasThumbnailUrl?(T(),W("img",{key:0,class:"w-full",src:r.item.thumbnailUrl,"data-src":r.item.thumbnailUrl,alt:`${r.item.name} cover`},null,8,bM)):(T(),W("img",{key:1,class:"w-full",src:r.item.image,"data-src":r.item.image,alt:`${r.item.name} cover`},null,8,wM))],8,yM)),[[s,{selector:"img",error:i.defaultImg,loading:i.defaultImg}]])])])}const SM=ut(mM,[["render",_M]]),PM={name:"CollectionTag",props:{collection:{type:String,default(){return""}}},computed:{enabled(){return this.$store.state.SClient.filtersExcluded.collections?Object.values(this.$store.state.SClient.filtersExcluded.collections).map(e=>e.value).includes(this.collection):!1}},methods:{toggle(){oc("#books");let e={...this.$route.query},t=e.collec?e.collec.split("&&"):[];t.includes(this.collection)?t=t.filter(r=>this.collection!==r):(this.sendClickInsight(),t.push(this.collection)),e.collec=t.join("&&"),t.length===0&&delete e.collec,this.$router.replace({query:e})},sendClickInsight(){this.sendFilterAppliedInsight([`collec:${this.collection}`],"Card Collection Activated")}}},xM={class:"mb-2 mr-2"},OM=["aria-pressed"];function $M(e,t,r,n,i,a){return T(),W("li",xM,[O("button",{type:"button","data-cy":"book-collection-tag",class:te(["inline-block leading-none border border-pb-red py-2 px-3 text-sm font-bold rounded",a.enabled?"bg-red-700 text-white":"text-pb-red border-pb-red"]),"aria-pressed":a.enabled?"true":"false",onClick:t[0]||(t[0]=Se((...s)=>a.toggle&&a.toggle(...s),["prevent"]))},ge(r.collection),11,OM)])}const RM=ut(PM,[["render",$M]]),AM={name:"BookCard",components:{CollectionTag:RM,BookInfo:z3,BookDetails:pM,BookCover:SM},props:{item:{type:Object,default(){return{}}}},emits:["book-clicked"]},TM={"data-cy":"book-card",class:"flex flex-col md:flex-row gap-8 items-start border border-gray-300 px-8 py-8 shadow-md"},kM={class:"w-full md:w-2/3"},CM={key:0,role:"list","aria-label":"Book tags",class:"flex","data-cy":"book-tags"};function EM(e,t,r,n,i,a){const s=Fe("book-cover"),o=Fe("collection-tag"),l=Fe("book-info"),u=Fe("book-details");return T(),W("article",TM,[Ae(s,{item:r.item,onBookTitleClick:t[0]||(t[0]=c=>e.$emit("book-clicked"))},null,8,["item"]),O("div",kM,[r.item.collections.length>0?(T(),W("ul",CM,[(T(!0),W(ye,null,We(r.item.collections,(c,f)=>(T(),Re(o,{key:f,collection:c},null,8,["collection"]))),128))])):ne("",!0),Ae(l,{item:r.item,onBookTitleClick:t[1]||(t[1]=c=>e.$emit("book-clicked"))},null,8,["item"]),Ae(u,{item:r.item},null,8,["item"])])])}const IM=ut(AM,[["render",EM]]),DM={name:"PbBooks",components:{BookCard:IM},methods:{transformItems(e){let t=this;return e.map(r=>({...r,authorNames:typeof r.author=="object"&&r.author!==null?hr.functions.unescapeHTML(r.author.join(", ")):hr.functions.unescapeHTML(r.author),editorNames:r.hasEditor&&typeof r.editor=="object"?hr.functions.unescapeHTML(r.editor.join(", ")):hr.functions.unescapeHTML(r.editor),image:r.hasThumbnailUrl?r.thumbnailUrl:r.hasImage?r.image:t.$store.state.config.imagesPath+t.$store.state.config.defaultBookCover,publisherName:r.hasPublisher?hr.functions.unescapeHTML(r.publisherName):!1,lang:r.hasLanguageName?r.inLanguage:!1,description:t.getBookDescription(r),licenseIcon:r.hasLicense?t.getLicenseIcon(r).image:!1,licenseAlt:r.hasLicense?t.getLicenseIcon(r).alt:!1,isBasedOn:r.isBasedOn!==void 0,subject:r.subject!==void 0?r.subject:!1,wordCount:r.wordCount!==void 0?r.wordCount:!1,name:hr.functions.unescapeHTML(r.name)}))},getLicenseIcon(e){return hr.functions.getLicenseIconAndAltByLicenseName(e.licenseName)},removeXMLTags(e){return e.replace(/(<\/?(?:a|p|em|strong|ul|ol|li|u|span)[^>]*>)|<[^>]+>/ig,"$1")},getBookDescription(e){return!e.hasDescription&&e.hasDisambiguatingDescription?this.removeXMLTags(hr.functions.unescapeHTML(e.disambiguatingDescription)):e.hasDescription?this.removeXMLTags(hr.functions.unescapeHTML(e.description)):""},handleBookClicked(e,t){t("conversion",e,"Book Opened");const r={}.VITE_CLICK_COUNT_ENDPOINT;r&&fetch(r,{mode:"no-cors",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({book_id:e.objectID})})}}},jM={key:0,class:"ais-Hits__books__noresults"};function FM(e,t,r,n,i,a){const s=Fe("book-card"),o=Fe("ais-hits");return T(),Re(o,{"transform-items":a.transformItems,class:"mt-4 space-y-4"},{default:Ie(({items:l,sendEvent:u})=>[l.length===0?(T(),W("p",jM,' Sorry, no results were found for "'+ge(e.$store.state.SClient.searchParameters.searchQuery)+'". You may want to check your spelling, use alternative terms with similar meanings, or clear one or more filters. ',1)):ne("",!0),(T(!0),W(ye,null,We(l,c=>(T(),Re(s,{key:c.objectID,item:c,onBookClicked:f=>a.handleBookClicked(c,u)},null,8,["item","onBookClicked"]))),128))]),_:1},8,["transform-items"])}const MM=ut(DM,[["render",FM]]),LM={name:"PbPagination",components:{ArrowLongLeftIcon:Nk,ArrowLongRightIcon:Hk},props:{dataCySubfix:{type:String,default:""}},data(){return{alias:this.$store.state.SClient.searchParameters.aliases.page}},methods:{scrollToBooksList(){oc("#books")},changePage(e){let t={...this.$route.query};(!t[this.alias]||t[this.alias]&&t[this.alias]!==e)&&(t[this.alias]=e,this.$router.replace({query:t}))}}},NM=["data-cy"],HM={key:0},UM=["data-cy"],BM=["data-cy","onClick"],WM={key:1},qM=["data-cy"];function VM(e,t,r,n,i,a){const s=Fe("ArrowLongLeftIcon"),o=Fe("ArrowLongRightIcon"),l=Fe("ais-pagination");return T(),Re(l,{"total-pages":500,role:"navigation",class:"mx-auto my-4"},{default:Ie(({pages:u,isFirstPage:c,isLastPage:f})=>[O("ul",{class:"flex flex-row w-full items-center justify-center space-x-2","data-cy":`paginator-${r.dataCySubfix}`,onClick:t[2]||(t[2]=(...d)=>a.scrollToBooksList&&a.scrollToBooksList(...d))},[c?ne("",!0):(T(),W("li",HM,[O("a",{class:"block py-1 px-2","data-cy":`paginator-prev-${r.dataCySubfix}`,href:"#",onClick:t[0]||(t[0]=Se(d=>a.changePage(e.$store.state.SClient.searchParameters.page-1),["prevent"]))},[t[3]||(t[3]=O("span",{class:"sr-only"},"Previous page",-1)),Ae(s,{class:"h-6 w-6 text-pb-red"})],8,UM)])),(T(!0),W(ye,null,We(u,d=>(T(),W("li",{key:d,class:"page"},[O("a",{class:te(["block py-1 px-2",e.$store.state.SClient.searchParameters.page==d+1?"font-bold font-gray-900":""]),href:"#","data-cy":`paginator-link-${d+1}-${r.dataCySubfix}`,onClick:Se(p=>a.changePage(d+1),["prevent"])},[t[4]||(t[4]=O("span",{class:"sr-only"},"Page",-1)),He(" "+ge(d+1),1)],10,BM)]))),128)),f?ne("",!0):(T(),W("li",WM,[O("a",{class:"block py-1 px-2",href:"#","data-cy":`paginator-next-${r.dataCySubfix}`,onClick:t[1]||(t[1]=Se(d=>a.changePage(parseInt(e.$store.state.SClient.searchParameters.page)+1),["prevent"]))},[t[5]||(t[5]=O("span",{class:"sr-only"},"Next page",-1)),Ae(o,{class:"h-6 w-6 text-pb-red"})],8,qM)]))],8,NM)]),_:1})}const YM=ut(LM,[["render",VM]]),QM={name:"PbShare",data(){return{isOpen:!1,isCopied:!1}},computed:{currentUrl(){return window.location},copyButtonText(){return this.isCopied?"Copied":"Copy"}},methods:{toggle(){this.isOpen=!this.isOpen},close(){this.isOpen=!1,this.isCopied=!1},copyToClipboard(){this.sendFilterAppliedInsight([`url:${this.currentUrl}`],"Share This Query"),navigator.clipboard.writeText(this.currentUrl).then(()=>{this.isCopied=!0,setTimeout(()=>{this.close()},2e3)},function(e){console.error("Async: Could not copy text: ",e),this.close()})}}},zM={class:"relative w-full md:w-1/2 text-right","data-cy":"share-component"},KM={key:0,"data-cy":"share-box",class:"bg-pb-dark-blue absolute block z-30 right-0 w-full p-1 pr-6 -top-4 shadow-lg"},GM={class:"flex flex-row border-2 w-full"},XM=["value"],ZM={class:"text-white"};function JM(e,t,r,n,i,a){return T(),W("div",zM,[O("button",{class:"inline-flex items-center pl-3 py-0","data-cy":"share-button",onClick:t[0]||(t[0]=(...s)=>a.toggle&&a.toggle(...s))},t[3]||(t[3]=[O("svg",{class:"w-6 h-6",fill:"none",stroke:"#00243a",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8.684 13.342C8.886 12.938 9 12.482 9 12c0-.482-.114-.938-.316-1.342m0 2.684a3 3 0 110-2.684m0 2.684l6.632 3.316m-6.632-6l6.632-3.316m0 0a3 3 0 105.367-2.684 3 3 0 00-5.367 2.684zm0 9.316a3 3 0 105.368 2.684 3 3 0 00-5.368-2.684z"})],-1),O("span",{class:"ml-3 font-sans text-pb-dark-blue font-bold"},"Share this query",-1)])),i.isOpen?(T(),W("div",KM,[O("button",{class:"absolute right-0 top-0","data-cy":"share-close-box",onClick:t[1]||(t[1]=(...s)=>a.close&&a.close(...s))},t[4]||(t[4]=[O("svg",{class:"w-6 h-6",fill:"none",stroke:"#fff",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])),O("div",GM,[O("input",{"data-cy":"share-input",class:"w-full border-0 text-sm p-2 focus:outline-none focus:ring-0",name:"share-query",value:a.currentUrl},null,8,XM),O("button",{"data-cy":"share-copy-button",class:"border-1 border-pb-dark-blue px-2 inline-flex items-center",onClick:t[2]||(t[2]=(...s)=>a.copyToClipboard&&a.copyToClipboard(...s))},[t[5]||(t[5]=O("svg",{class:"w-6 h-6",fill:"none",stroke:"#fff",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"})],-1)),O("span",ZM,ge(a.copyButtonText),1)])])])):ne("",!0)])}const eL=ut(QM,[["render",JM]]),tL={name:"PbPaginatedBooks",components:{PbBooks:MM,PbShareButton:eL,PbPagination:YM,PbActiveFilters:j3,PbStats:_3}},rL={id:"books",class:"w-full flex-1","aria-labelledby":"results"},nL={class:"flex flex-col lg:flex-row lg:justify-between"};function iL(e,t,r,n,i,a){const s=Fe("pb-stats"),o=Fe("pb-share-button"),l=Fe("pb-active-filters"),u=Fe("pb-pagination"),c=Fe("pb-books");return T(),W("section",rL,[O("div",nL,[Ae(s),Ae(o)]),Ae(l),Ae(u,{"aria-label":"top pagination","data-cy-subfix":"top"}),Ae(c),Ae(u,{"aria-label":"bottom pagination","data-cy-subfix":"bottom"})])}const aL=ut(tL,[["render",iL]]);/*! * Intro.js v7.2.0 * https://introjs.com * * Copyright (C) 2012-2023 Afshin Mehrabani (@afshinmeh). * https://introjs.com * * Date: Mon, 14 Aug 2023 19:47:14 GMT */function ju(e){return ju=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ju(e)}function pt(e,t,r,n){return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(c){a(c)}}function o(u){try{l(n.throw(u))}catch(c){a(c)}}function l(u){var c;u.done?i(u.value):(c=u.value,c instanceof r?c:new r(function(f){f(c)})).then(s,o)}l((n=n.apply(e,t||[])).next())})}function mt(e,t){var r,n,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(l){return function(u){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,n=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!((i=i.length>0&&i[i.length-1])||c[0]!==6&&c[0]!==2)){s=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]=0&&l.left>=0&&l.bottom+80<=window.innerHeight&&l.right<=window.innerWidth}(n))){var s=up().height;a.bottom-(a.bottom-a.top)<0||n.clientHeight>s?window.scrollBy(0,a.top-(s/2-a.height/2)-r):window.scrollBy(0,a.top-(s/2-a.height/2)+r)}}function Vs(e){e.setAttribute("role","button"),e.tabIndex=0}function pc(e){var t=e.parentElement;return!(!t||t.nodeName==="HTML")&&(lp(e,"position")==="fixed"||pc(t))}function Ga(e,t){var r=document.body,n=document.documentElement,i=window.pageYOffset||n.scrollTop||r.scrollTop,a=window.pageXOffset||n.scrollLeft||r.scrollLeft;t=t||r;var s=e.getBoundingClientRect(),o=t.getBoundingClientRect(),l=lp(t,"position"),u={width:s.width,height:s.height};return t.tagName.toLowerCase()!=="body"&&l==="relative"||l==="sticky"?Object.assign(u,{top:s.top-o.top,left:s.left-o.left}):pc(e)?Object.assign(u,{top:s.top,left:s.left}):Object.assign(u,{top:s.top+i,left:s.left+a})}function cp(e,t){if(e instanceof SVGElement){var r=e.getAttribute("class")||"";e.setAttribute("class",r.replace(t,"").replace(/^\s+|\s+$/g,""))}else e.className=e.className.replace(t,"").replace(/^\s+|\s+$/g,"")}function _i(e,t){var r="";if(e.style.cssText&&(r+=e.style.cssText),typeof t=="string")r+=t;else for(var n in t)r+="".concat(n,":").concat(t[n],";");e.style.cssText=r}function Hn(e,t,r){if(r&&t){var n=Ga(t.element,e._targetElement),i=e._options.helperElementPadding;t.element instanceof Element&&pc(t.element)?Pn(r,"introjs-fixedTooltip"):cp(r,"introjs-fixedTooltip"),t.position==="floating"&&(i=0),_i(r,{width:"".concat(n.width+i,"px"),height:"".concat(n.height+i,"px"),top:"".concat(n.top-i/2,"px"),left:"".concat(n.left-i/2,"px")})}}function Dl(e,t,r,n,i){return e.left+t+r.width>n.width?(i.style.left="".concat(n.width-r.width-e.left,"px"),!1):(i.style.left="".concat(t,"px"),!0)}function jl(e,t,r,n){return e.left+e.width-t-r.width<0?(n.style.left="".concat(-e.left,"px"),!1):(n.style.right="".concat(t,"px"),!0)}function fn(e,t){e.includes(t)&&e.splice(e.indexOf(t),1)}function oL(e,t,r,n){var i=e.slice(),a=up(),s=Ga(r).height+10,o=Ga(r).width+20,l=t.getBoundingClientRect(),u="floating";if(l.bottom+s>a.height&&fn(i,"bottom"),l.top-s<0&&fn(i,"top"),l.right+o>a.width&&fn(i,"right"),l.left-o<0&&fn(i,"left"),n&&(n=n.split("-")[0]),i.length&&(u=i[0],i.includes(n)&&(u=n)),u==="top"||u==="bottom"){var c=void 0,f=[];u==="top"?(c="top-middle-aligned",f=["top-left-aligned","top-middle-aligned","top-right-aligned"]):(c="bottom-middle-aligned",f=["bottom-left-aligned","bottom-middle-aligned","bottom-right-aligned"]),u=function(d,p,h,m){var v=p/2,g=Math.min(h,window.screen.width);return g-do.height?(n.className="introjs-arrow left-bottom",r.style.top="-".concat(a.height-s.height-20,"px")):n.className="introjs-arrow left";break;case"left":i||e._options.showStepNumbers!==!0||(r.style.top="15px"),s.top+a.height>o.height?(r.style.top="-".concat(a.height-s.height-20,"px"),n.className="introjs-arrow right-bottom"):n.className="introjs-arrow right",r.style.right="".concat(s.width+20,"px");break;case"floating":n.style.display="none",r.style.left="50%",r.style.top="50%",r.style.marginLeft="-".concat(a.width/2,"px"),r.style.marginTop="-".concat(a.height/2,"px");break;case"bottom-right-aligned":n.className="introjs-arrow top-right",jl(s,f=0,a,r),r.style.top="".concat(s.height+20,"px");break;case"bottom-middle-aligned":n.className="introjs-arrow top-middle",i&&(c+=5),jl(s,c,a,r)&&(r.style.right="",Dl(s,c,a,o,r)),r.style.top="".concat(s.height+20,"px");break;default:n.className="introjs-arrow top",Dl(s,0,a,o,r),r.style.top="".concat(s.height+20,"px")}}}function Vw(){for(var e=0,t=Array.from(document.querySelectorAll(".introjs-showElement"));e a.active"),j=Z.querySelector('.introjs-bullets li > a[data-step-number="'.concat(B.step,'"]'));R&&j&&(R.className="",j.className="active")}}(e._options.showBullets,n,t),zw(n,e._currentStep,e._introItems.length),d.style.opacity="1",(a!=null&&/introjs-donebutton/gi.test(a.className)||a!=null)&&a.focus(),Hv(e._options.scrollToElement,t.scrollTo,e._options.scrollPadding,t.element,u)},350)):(p=Ze("div",{className:i}),h=Ze("div",{className:"introjs-tooltipReferenceLayer"}),m=Ze("div",{className:"introjs-arrow"}),v=Ze("div",{className:"introjs-tooltip"}),g=Ze("div",{className:"introjs-tooltiptext"}),y=Ze("div",{className:"introjs-tooltip-header"}),_=Ze("h1",{className:"introjs-tooltip-title"}),b=Ze("div"),_i(p,{"box-shadow":"0 0 1px 2px rgba(33, 33, 33, 0.8), rgba(33, 33, 33, ".concat(e._options.overlayOpacity.toString(),") 0 0 0 5000px")}),Nv(e._options.scrollToElement,t.element),Hn(e,t,p),Hn(e,t,h),Uv(e._targetElement,p,!0),Uv(e._targetElement,h),g.innerHTML=t.intro,_.innerHTML=t.title,b.className="introjs-tooltipbuttons",e._options.showButtons===!1&&(b.style.display="none"),y.appendChild(_),v.appendChild(y),v.appendChild(g),e._options.dontShowAgain&&(P=Ze("div",{className:"introjs-dontShowAgain"}),(k=Ze("input",{type:"checkbox",id:"introjs-dontShowAgain",name:"introjs-dontShowAgain"})).onchange=function(M){e.setDontShowAgain(M.target.checked)},(A=Ze("label",{htmlFor:"introjs-dontShowAgain"})).innerText=e._options.dontShowAgainLabel,P.appendChild(k),P.appendChild(A),v.appendChild(P)),v.appendChild(Qw(e,t)),v.appendChild(function(M){var Z=Ze("div");Z.className="introjs-progress",M._options.showProgress===!1&&(Z.style.display="none");var B=Ze("div",{className:"introjs-progressbar"});M._options.progressBarAdditionalClass&&(B.className+=" "+M._options.progressBarAdditionalClass);var R=Yw(M._currentStep,M._introItems.length);return B.setAttribute("role","progress"),B.setAttribute("aria-valuemin","0"),B.setAttribute("aria-valuemax","100"),B.setAttribute("aria-valuenow",R.toString()),B.style.cssText="width:".concat(R,"%;"),Z.appendChild(B),Z}(e)),U=Ze("div"),e._options.showStepNumbers===!0&&(U.className="introjs-helperNumberLayer",U.innerHTML="".concat(t.step," ").concat(e._options.stepNumbersOfLabel," ").concat(e._introItems.length),v.appendChild(U)),v.appendChild(m),h.appendChild(v),(a=Ze("a")).onclick=function(){return pt(x,void 0,void 0,function(){return mt(this,function(M){switch(M.label){case 0:return e._introItems.length-1===e._currentStep?[3,2]:[4,aa(e)];case 1:return M.sent(),[3,6];case 2:return/introjs-donebutton/gi.test(a.className)?xt(e._introCompleteCallback)?[4,e._introCompleteCallback.call(e,e._currentStep,"done")]:[3,4]:[3,6];case 3:M.sent(),M.label=4;case 4:return[4,sa(e,e._targetElement)];case 5:M.sent(),M.label=6;case 6:return[2]}})})},Vs(a),a.innerHTML=e._options.nextLabel,(s=Ze("a")).onclick=function(){return pt(x,void 0,void 0,function(){return mt(this,function(M){switch(M.label){case 0:return e._currentStep>0?[4,Mu(e)]:[3,2];case 1:M.sent(),M.label=2;case 2:return[2]}})})},Vs(s),s.innerHTML=e._options.prevLabel,Vs(o=Ze("a",{className:"introjs-skipbutton"})),o.innerHTML=e._options.skipLabel,o.onclick=function(){return pt(x,void 0,void 0,function(){return mt(this,function(M){switch(M.label){case 0:return e._introItems.length-1===e._currentStep&&xt(e._introCompleteCallback)?[4,e._introCompleteCallback.call(e,e._currentStep,"skip")]:[3,2];case 1:M.sent(),M.label=2;case 2:return xt(e._introSkipCallback)?[4,e._introSkipCallback.call(e,e._currentStep)]:[3,4];case 3:M.sent(),M.label=4;case 4:return[4,sa(e,e._targetElement)];case 5:return M.sent(),[2]}})})},y.appendChild(o),e._introItems.length>1&&b.appendChild(s),b.appendChild(a),v.appendChild(b),Fu(e,t,v,m),Hv(e._options.scrollToElement,t.scrollTo,e._options.scrollPadding,t.element,v)),(F=e._targetElement.querySelector(".introjs-disableInteraction"))&&F.parentNode&&F.parentNode.removeChild(F),t.disableInteraction&&function(M,Z){var B=document.querySelector(".introjs-disableInteraction");B===null&&(B=Ze("div",{className:"introjs-disableInteraction"}),M._targetElement.appendChild(B)),Hn(M,Z,B)}(e,t),e._currentStep===0&&e._introItems.length>1?(a!=null&&(a.className="".concat(e._options.buttonClass," introjs-nextbutton"),a.innerHTML=e._options.nextLabel),e._options.hidePrev===!0?(s!=null&&(s.className="".concat(e._options.buttonClass," introjs-prevbutton introjs-hidden")),a!=null&&Pn(a,"introjs-fullbutton")):s!=null&&(s.className="".concat(e._options.buttonClass," introjs-prevbutton introjs-disabled"))):e._introItems.length-1===e._currentStep||e._introItems.length===1?(s!=null&&(s.className="".concat(e._options.buttonClass," introjs-prevbutton")),e._options.hideNext===!0?(a!=null&&(a.className="".concat(e._options.buttonClass," introjs-nextbutton introjs-hidden")),s!=null&&Pn(s,"introjs-fullbutton")):a!=null&&(e._options.nextToDone===!0?(a.innerHTML=e._options.doneLabel,Pn(a,"".concat(e._options.buttonClass," introjs-nextbutton introjs-donebutton"))):a.className="".concat(e._options.buttonClass," introjs-nextbutton introjs-disabled"))):(s!=null&&(s.className="".concat(e._options.buttonClass," introjs-prevbutton")),a!=null&&(a.className="".concat(e._options.buttonClass," introjs-nextbutton"),a.innerHTML=e._options.nextLabel)),s!=null&&s.setAttribute("role","button"),a!=null&&a.setAttribute("role","button"),o!=null&&o.setAttribute("role","button"),a!=null&&a.focus(),function(M){Pn(M,"introjs-showElement");var Z=lp(M,"position");Z!=="absolute"&&Z!=="relative"&&Z!=="sticky"&&Z!=="fixed"&&Pn(M,"introjs-relativePosition")}(t.element),xt(e._introAfterChangeCallback)?[4,e._introAfterChangeCallback.call(e,t.element)]:[3,4];case 3:I.sent(),I.label=4;case 4:return[2]}})})}function lL(e,t){return pt(this,void 0,void 0,function(){return mt(this,function(r){switch(r.label){case 0:return e._currentStep=t-2,e._introItems===void 0?[3,2]:[4,aa(e)];case 1:r.sent(),r.label=2;case 2:return[2]}})})}function uL(e,t){return pt(this,void 0,void 0,function(){return mt(this,function(r){switch(r.label){case 0:return e._currentStepNumber=t,e._introItems===void 0?[3,2]:[4,aa(e)];case 1:r.sent(),r.label=2;case 2:return[2]}})})}function aa(e){return pt(this,void 0,void 0,function(){var t,r,n;return mt(this,function(i){switch(i.label){case 0:if(e._direction="forward",e._currentStepNumber!==void 0)for(t=0;t=0&&(e._hintsAutoRefreshFunction=(u=function(){return vc(e)},c=e._options.hintAutoRefreshInterval,function(){for(var d=[],p=0;p0)for(r=0,n=e._options.hints;r0&&(n[d-1]={step:d,element:f,title:f.getAttribute("data-title")||"",intro:f.getAttribute("data-intro")||"",tooltipClass:f.getAttribute("data-tooltip-class")||void 0,highlightClass:f.getAttribute("data-highlight-class")||void 0,position:f.getAttribute("data-position")||e._options.tooltipPosition,scrollTo:f.getAttribute("data-scroll-to")||e._options.scrollTo,disableInteraction:l})}}for(var p=0,h=0,m=r;h{window.scrollTo({top:window.scrollY-r,behavior:"smooth"})},t)}function ma(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)}const mL={name:"PbTour",props:{overlay:{type:Number,default:.5},autoScroll:{type:Boolean,default:!0},typingSpeed:{type:Number,default:15}},data(){return{intro:null,searchInput:document.querySelector('input[data-cy="book-input-search"]'),h5pActivitiesImage:this.$store.state.config.imagesPath+this.$store.state.config.h5pLogo,guideUrl:this.$store.state.config.urls.guide,h5pLogoWidth:100,waitForFilter:300}},mounted(){const e=()=>{this.searchInput.value=""},t=document.querySelector('div[data-cy="license-filter"] button'),r=(n,i=0)=>{this.searchInput.value+=n[i],i{r(n,i)},this.typingSpeed)):this.searchInput.setAttribute("value",this.searchInput.value)};t.click(),setTimeout(()=>{const n=document.querySelector('div[data-cy="search-container"]'),i=document.querySelector('button[data-cy="book-button-search"]');this.intro=vd().setOptions({hidePrev:!0,showBullets:!1,showProgress:!0,scrollToElement:this.autoScroll,overlayOpacity:this.overlay,steps:[{title:"Take a tour",intro:`

Welcome to Pressbooks Directory. Use the 'next' and 'back' buttons to navigate this tour.

`},{title:"The search bar",intro:`

This search bar allows you to search within all of the metadata fields for the books indexed in Pressbooks Directory (title, author, subject, publisher, description, etc.).

It does not search the content of the books.

`,element:ma()?document.querySelector('form[data-cy="search-form"]'):n},{title:"Searching for multiple words",intro:`

If you enter multiple words, the search will produce results that contain all of those words.

For example, a search for open education will retrieve books that include the words 'open' AND 'education'.

`,element:ma()?document.querySelector('form[data-cy="search-form"]'):n},{title:"Searching for exact phrases",intro:`

Search for an exact phrase by putting the desired term in quotation marks.

For example, a search for teaching "open education" will retrieve books that include the word 'teaching' AND the exact phrase 'open education'.

`,element:ma()?document.querySelector('form[data-cy="search-form"]'):n},{title:"Excluding words or phrases",intro:`

To exclude a word or phrase from the results, use the "-" sign before the word you want to exclude.

For example, a search for "open education" -teaching will retrieve books that include the exact phrase 'open education' but NOT the word 'teaching'.

`,element:ma()?document.querySelector('form[data-cy="search-form"]'):n},{title:"Performing a search",intro:`

To see updated search results (after changing or removing a query), select the "Search" button.

`,element:ma()?document.querySelector('form[data-cy="search-form"]'):i,position:"bottom"},{title:"Viewing search results",intro:`

Once you\u2019ve performed a search, you will see the number of results for your query. This value will be updated each time you perform a new search or change the applied filters.

`,element:document.querySelector(".ais-Stats"),position:"bottom"},{title:"Changing results display",intro:`

You can change the number of results displayed per page and the method used to sort your results using these dropdowns.

`,element:document.querySelector('div[data-cy="top-filters"]'),position:"bottom"},{title:"Using facet filters",intro:`

Filters allow you to perform faceted search to narrow down your results by license, subject, word count, and more. Faceted searching can be combined with text search or used separately.

`,element:document.querySelector('div[data-cy="license-filter"]'),position:"right"},{title:"Include filter",intro:`

Click the checkmark to apply that filter and see only those results, or click the X to omit those results. Click the same option again to remove that filter.

You can apply multiple inclusion or exclusion filters for each facet. If multiple filters are selected within a facet, your results will include books that satisfy any of the active filter conditions.

`,element:document.querySelector('div[data-cy="license-filter"]'),position:"right"},{title:"Viewing all active filters",intro:`

All filters that are currently being applied to your results will be displayed here. Exclude filters will display the word NOT before the filtered term.

Clear individual filters by clicking on them.

`,element:document.querySelector('div[data-cy="active-filters"]'),position:"bottom"},{title:"Clearing filters",intro:`

Clear all active filters by clicking on the \u2018Clear all\u2019 button.

`,element:ma()?document.querySelector('div[data-cy="active-filters"]'):document.querySelector('div[data-cy="active-filters"] .clear-filters'),position:"left"},{title:"Interpreting book cards",intro:`

Each book card displays available information about the book, including title, copyright license, word count, author(s), subject(s), date last updated, publisher, and language.

Clicking a book's title or cover will take you to the book\u2019s home page.

`,element:document.querySelector('.ais-Hits article[data-cy="book-card"]:nth-of-type(1) [data-cy="book-meta"]')},{title:"Visual icons",intro:`

Beneath the cover image, you will see a set of icons that convey additional information about the book.

`,element:document.querySelector('.ais-Hits article[data-cy="book-card"]:nth-of-type(1) [data-cy="book-icons"]'),position:"left"},{title:"Copyright",intro:`

This icon indicates the copyright license selected for the work (All Rights Reserved or one of the Creative Commons licenses). Hovering over the icon will display the license name.

`,element:document.querySelector('.ais-Hits article[data-cy="book-card"]:nth-of-type(1) [data-cy="book-icons"]'),position:"left"},{title:"H5P Activities",intro:` H5P Logo

The H5P logo is displayed when a book contains interactive H5P elements (like quizzes or flashcards). Hovering over the icon will display the number of H5P activities present in that book.

`,element:document.querySelector('.ais-Hits article[data-cy="book-card"]:nth-of-type(1) [data-cy="book-icons"]'),position:"left"},{title:"Visit the guide",intro:`

You\u2019ve concluded the Pressbooks Directory tour! For more details on using the Directory to find books of interest to you, please see our guide chapter.

`}]}).start(),this.intro.oncomplete(()=>{this.sendFilterAppliedInsight(["tour:complete"],"Finished Tour")}),this.intro.onexit(()=>{this.searchInput.value="",this.$store.commit("showTour"),t.click()}),this.intro.onafterchange(a=>{if(e(),this.sendProgressInsight(),(a.classList.contains("input-wrapper")||a.tagName==="FORM")&&this.intro._currentStep>1){let s="";switch(this.intro._currentStep){case 2:s="open education";break;case 3:s='teaching "open education"';break;case 4:s='"open education" -teaching ';break}s?r(s):this.searchInput.value=""}else this.intro._currentStep===9?([1,2,3].forEach(function(s,o){setTimeout(()=>{document.querySelector('div[data-cy="license-filter"] [data-cy="filter-licenseCode-option"]:nth-of-type('+s+") button:nth-of-type(1)").click()},o*600)}),this.intro._introItems[10].element=document.querySelector('div[data-cy="active-filters"]')):this.intro._currentStep===10?setTimeout(()=>{document.querySelector('button[data-cy="clear-all-filters"]').click(),setTimeout(()=>{this.intro._introItems[12].element=document.querySelector('.ais-Hits article[data-cy="book-card"]:nth-of-type(1) [data-cy="book-meta"]'),this.intro._introItems[13].element=document.querySelector('.ais-Hits article[data-cy="book-card"]:nth-of-type(1) [data-cy="book-icons"]'),this.intro._introItems[14].element=document.querySelector('.ais-Hits article[data-cy="book-card"]:nth-of-type(1) [data-cy="book-copyright-license"]'),this.intro._introItems[15].element=document.querySelector('.ais-Hits article[data-cy="book-card"]:nth-of-type(1) [data-cy="book-icons"]')},1e3)},1e3):this.searchInput.value="";pL(this.intro._currentStep)})},this.waitForFilter)},methods:{sendProgressInsight(){const{_currentStep:e,_direction:t,_introItems:r}=this.intro,{title:n}=r[e];this.sendFilterAppliedInsight([`tour:${e}-${n}`],t==="backward"?"Tour Retreat":"Tour Advance")}}};function vL(e,t,r,n,i,a){return T(),W("div")}const gL=ut(mL,[["render",vL]]),yL=Kf({insightsClient:Gl,onEvent(e,t){const{insightsMethod:r,payload:n,widgetType:i,eventType:a}=e;i==="ais.hits"&&a==="view"||t(r,n)}}),bL={components:{PbTour:gL,PbPaginatedBooks:aL,PbSearchAndSortBox:g3,PbFilters:fF,PbWelcomeHeader:LA,PbFooter:GA,PbCollections:fT,PbNavbar:Lk},data(){return{middlewares:[this.middleware,yL],resetPage:!1,routeQuery:void 0,restartIndex:!1,currentIndex:this.$store.state.SClient.indexName}},watch:{"$store.state.SClient":{deep:!0,handler(){Cl.start()}},"$route.query":{deep:!0,handler(e){if(typeof this.routeQuery<"u"){this.resetPage=!1;const t={...e};t[this.$store.state.SClient.searchParameters.aliases.page]&&delete t[this.$store.state.SClient.searchParameters.aliases.page],this.routeQuery[this.$store.state.SClient.searchParameters.aliases.page]&&delete this.routeQuery[this.$store.state.SClient.searchParameters.aliases.page];for(let r in t)(typeof this.routeQuery[r]>"u"||this.routeQuery[r].toString()!==t[r].toString())&&(this.resetPage=!0)}this.routeQuery=e,this.currentIndex!==this.$store.state.SClient.indexName&&(this.currentIndex=this.$store.state.SClient.indexName)}}},beforeMount(){Cl.configure({showSpinner:!1}),Cl.start()},updated(){this.hideLoader()},methods:{paginationHook(e){if(e.setQueryParameter("hitsPerPage",this.$store.state.SClient.searchParameters.hitsPerPage),this.resetPage&&parseInt(this.$store.state.SClient.searchParameters.page)>1){e.setPage(0);let t={...this.$route.query};t[this.$store.state.SClient.searchParameters.aliases.page]=1,this.$router.replace({query:t})}else e.setPage(this.$store.state.SClient.searchParameters.page-1);this.resetPage=!1,e.search()},middleware(){return{onStateChange:({uiState:e})=>{this.hideLoader()}}},hideLoader(){setTimeout(()=>{Cl.done()},window.Cypress?3e3:250)}}},wL={"aria-labelledby":"find-book",class:"lg:max-w-[1140px] mx-auto"},_L={class:"content mx-auto px-8 max-w-screen-2xl"},SL={class:"py-8 border-b border-grey-300"},PL={class:"flex flex-col mt-8 md:flex-row space-y-10 md:space-y-0 md:space-x-10"};function xL(e,t,r,n,i,a){const s=Fe("ais-configure"),o=Fe("pb-navbar"),l=Fe("pb-welcome-header"),u=Fe("pb-collections"),c=Fe("pb-search-and-sort-box"),f=Fe("pb-filters"),d=Fe("pb-paginated-books"),p=Fe("pb-footer"),h=Fe("pb-tour"),m=Fe("ais-instant-search");return i.restartIndex?ne("",!0):(T(),Re(m,{key:0,class:"w-full","index-name":i.currentIndex,"search-client":e.$store.state.SClient.searchClient,"search-function":a.paginationHook,middlewares:i.middlewares},{default:Ie(()=>[Ae(s,{facetFilters:e.$store.state.SClient.notFilters,filters:e.$store.state.SClient.filtersParams.length>0?e.$store.state.SClient.filtersParams:"",query:e.$store.state.SClient.searchParameters.searchQuery},null,8,["facetFilters","filters","query"]),Ae(o),O("main",null,[Ae(l),Ae(u),O("section",wL,[O("div",_L,[O("div",SL,[Ae(c)]),O("div",PL,[Ae(f),Ae(d)])])])]),Ae(p),e.$store.state.config.showTour?(T(),Re(h,{key:0,overlay:.5,"auto-scroll":!0,"typing-speed":17})):ne("",!0)]),_:1},8,["index-name","search-client","search-function","middlewares"]))}const i1=ut(bL,[["render",xL]]),OL=Object.freeze(Object.defineProperty({__proto__:null,default:i1},Symbol.toStringTag,{value:"Module"}));var a1={exports:{}};/*! algoliasearch-lite.umd.js | 4.24.0 | © Algolia, inc. | https://github.com/algolia/algoliasearch-client-javascript */(function(e,t){(function(r,n){e.exports=n()})(nl,function(){function r(H,E,q){return E in H?Object.defineProperty(H,E,{value:q,enumerable:!0,configurable:!0,writable:!0}):H[E]=q,H}function n(H,E){var q=Object.keys(H);if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(H);E&&(G=G.filter(function(Q){return Object.getOwnPropertyDescriptor(H,Q).enumerable})),q.push.apply(q,G)}return q}function i(H){for(var E=1;E=0||(ue[re]=C[re]);return ue}(H,E);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(H);for(G=0;G=0||Object.prototype.propertyIsEnumerable.call(H,q)&&(Q[q]=H[q])}return Q}function s(H,E){return function(q){if(Array.isArray(q))return q}(H)||function(q,G){if(Symbol.iterator in Object(q)||Object.prototype.toString.call(q)==="[object Arguments]"){var Q=[],S=!0,C=!1,N=void 0;try{for(var re,ie=q[Symbol.iterator]();!(S=(re=ie.next()).done)&&(Q.push(re.value),!G||Q.length!==G);S=!0);}catch(ue){C=!0,N=ue}finally{try{S||ie.return==null||ie.return()}finally{if(C)throw N}}return Q}}(H,E)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(H){return function(E){if(Array.isArray(E)){for(var q=0,G=new Array(E.length);q2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then(function(){C();var ue=JSON.stringify(N);return Q()[ue]}).then(function(ue){return Promise.all([ue?ue.value:re(),ue!==void 0])}).then(function(ue){var pe=s(ue,2),fe=pe[0],de=pe[1];return Promise.all([fe,de||ie.miss(fe)])}).then(function(ue){return s(ue,1)[0]})},set:function(N,re){return Promise.resolve().then(function(){var ie=Q();return ie[JSON.stringify(N)]={timestamp:new Date().getTime(),value:re},G().setItem(q,JSON.stringify(ie)),re})},delete:function(N){return Promise.resolve().then(function(){var re=Q();delete re[JSON.stringify(N)],G().setItem(q,JSON.stringify(re))})},clear:function(){return Promise.resolve().then(function(){G().removeItem(q)})}}}function u(H){var E=o(H.caches),q=E.shift();return q===void 0?{get:function(G,Q){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}},C=Q();return C.then(function(N){return Promise.all([N,S.miss(N)])}).then(function(N){return s(N,1)[0]})},set:function(G,Q){return Promise.resolve(Q)},delete:function(G){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(G,Q){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return q.get(G,Q,S).catch(function(){return u({caches:E}).get(G,Q,S)})},set:function(G,Q){return q.set(G,Q).catch(function(){return u({caches:E}).set(G,Q)})},delete:function(G){return q.delete(G).catch(function(){return u({caches:E}).delete(G)})},clear:function(){return q.clear().catch(function(){return u({caches:E}).clear()})}}}function c(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{serializable:!0},E={};return{get:function(q,G){var Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}},S=JSON.stringify(q);if(S in E)return Promise.resolve(H.serializable?JSON.parse(E[S]):E[S]);var C=G(),N=Q&&Q.miss||function(){return Promise.resolve()};return C.then(function(re){return N(re)}).then(function(){return C})},set:function(q,G){return E[JSON.stringify(q)]=H.serializable?JSON.stringify(G):G,Promise.resolve(G)},delete:function(q){return delete E[JSON.stringify(q)],Promise.resolve()},clear:function(){return E={},Promise.resolve()}}}function f(H){for(var E=H.length-1;E>0;E--){var q=Math.floor(Math.random()*(E+1)),G=H[E];H[E]=H[q],H[q]=G}return H}function d(H,E){return E&&Object.keys(E).forEach(function(q){H[q]=E[q](H)}),H}function p(H){for(var E=arguments.length,q=new Array(E>1?E-1:0),G=1;G0?G:void 0,timeout:q.timeout||E,headers:q.headers||{},queryParameters:q.queryParameters||{},cacheable:q.cacheable}}var v={Read:1,Write:2,Any:3},g=1,y=2,_=3;function b(H){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g;return i(i({},H),{},{status:E,lastUpdate:Date.now()})}function P(H){return typeof H=="string"?{protocol:"https",url:H,accept:v.Any}:{protocol:H.protocol||"https",url:H.url,accept:H.accept||v.Any}}var k="GET",A="POST";function U(H,E){return Promise.all(E.map(function(q){return H.get(q,function(){return Promise.resolve(b(q))})})).then(function(q){var G=q.filter(function(C){return function(N){return N.status===g||Date.now()-N.lastUpdate>12e4}(C)}),Q=q.filter(function(C){return function(N){return N.status===_&&Date.now()-N.lastUpdate<=12e4}(C)}),S=[].concat(o(G),o(Q));return{getTimeout:function(C,N){return(Q.length===0&&C===0?1:Q.length+3+C)*N},statelessHosts:S.length>0?S.map(function(C){return P(C)}):E}})}function F(H,E,q,G){var Q=[],S=function(fe,de){if(!(fe.method===k||fe.data===void 0&&de.data===void 0)){var ce=Array.isArray(fe.data)?fe.data:i(i({},fe.data),de.data);return JSON.stringify(ce)}}(q,G),C=function(fe,de){var ce=i(i({},fe.headers),de.headers),Pe={};return Object.keys(ce).forEach(function(ve){var xe=ce[ve];Pe[ve.toLowerCase()]=xe}),Pe}(H,G),N=q.method,re=q.method!==k?{}:i(i({},q.data),G.data),ie=i(i(i({"x-algolia-agent":H.userAgent.value},H.queryParameters),re),G.queryParameters),ue=0,pe=function fe(de,ce){var Pe=de.pop();if(Pe===void 0)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support .",transporterStackTrace:Z(Q)};var ve={data:S,headers:C,method:N,url:I(Pe,q.path,ie),connectTimeout:ce(ue,H.timeouts.connect),responseTimeout:ce(ue,G.timeout)},xe=function(Ce){var z={request:ve,response:Ce,host:Pe,triesLeft:de.length};return Q.push(z),z},Me={onSuccess:function(Ce){return function(z){try{return JSON.parse(z.content)}catch(le){throw function(Oe,Ee){return{name:"DeserializationError",message:Oe,response:Ee}}(le.message,z)}}(Ce)},onRetry:function(Ce){var z=xe(Ce);return Ce.isTimedOut&&ue++,Promise.all([H.logger.info("Retryable failure",B(z)),H.hostsCache.set(Pe,b(Pe,Ce.isTimedOut?_:y))]).then(function(){return fe(de,ce)})},onFail:function(Ce){throw xe(Ce),function(z,le){var Oe=z.content,Ee=z.status,Ve=Oe;try{Ve=JSON.parse(Oe).message}catch{}return function(ct,Ht,_e){return{name:"ApiError",message:ct,status:Ht,transporterStackTrace:_e}}(Ve,Ee,le)}(Ce,Z(Q))}};return H.requester.send(ve).then(function(Ce){return function(z,le){return function(Oe){var Ee=Oe.status;return Oe.isTimedOut||function(Ve){var ct=Ve.isTimedOut,Ht=Ve.status;return!ct&&~~Ht==0}(Oe)||~~(Ee/100)!=2&&~~(Ee/100)!=4}(z)?le.onRetry(z):~~(z.status/100)==2?le.onSuccess(z):le.onFail(z)}(Ce,Me)})};return U(H.hostsCache,E).then(function(fe){return pe(o(fe.statelessHosts).reverse(),fe.getTimeout)})}function x(H){var E={value:"Algolia for JavaScript (".concat(H,")"),add:function(q){var G="; ".concat(q.segment).concat(q.version!==void 0?" (".concat(q.version,")"):"");return E.value.indexOf(G)===-1&&(E.value="".concat(E.value).concat(G)),E}};return E}function I(H,E,q){var G=M(q),Q="".concat(H.protocol,"://").concat(H.url,"/").concat(E.charAt(0)==="/"?E.substr(1):E);return G.length&&(Q+="?".concat(G)),Q}function M(H){return Object.keys(H).map(function(E){return p("%s=%s",E,(q=H[E],Object.prototype.toString.call(q)==="[object Object]"||Object.prototype.toString.call(q)==="[object Array]"?JSON.stringify(H[E]):H[E]));var q}).join("&")}function Z(H){return H.map(function(E){return B(E)})}function B(H){var E=H.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return i(i({},H),{},{request:i(i({},H.request),{},{headers:i(i({},H.request.headers),E)})})}var R=function(H){var E=H.appId,q=function(Q,S,C){var N={"x-algolia-api-key":C,"x-algolia-application-id":S};return{headers:function(){return Q===h.WithinHeaders?N:{}},queryParameters:function(){return Q===h.WithinQueryParameters?N:{}}}}(H.authMode!==void 0?H.authMode:h.WithinHeaders,E,H.apiKey),G=function(Q){var S=Q.hostsCache,C=Q.logger,N=Q.requester,re=Q.requestsCache,ie=Q.responsesCache,ue=Q.timeouts,pe=Q.userAgent,fe=Q.hosts,de=Q.queryParameters,ce={hostsCache:S,logger:C,requester:N,requestsCache:re,responsesCache:ie,timeouts:ue,userAgent:pe,headers:Q.headers,queryParameters:de,hosts:fe.map(function(Pe){return P(Pe)}),read:function(Pe,ve){var xe=m(ve,ce.timeouts.read),Me=function(){return F(ce,ce.hosts.filter(function(z){return(z.accept&v.Read)!=0}),Pe,xe)};if((xe.cacheable!==void 0?xe.cacheable:Pe.cacheable)!==!0)return Me();var Ce={request:Pe,mappedRequestOptions:xe,transporter:{queryParameters:ce.queryParameters,headers:ce.headers}};return ce.responsesCache.get(Ce,function(){return ce.requestsCache.get(Ce,function(){return ce.requestsCache.set(Ce,Me()).then(function(z){return Promise.all([ce.requestsCache.delete(Ce),z])},function(z){return Promise.all([ce.requestsCache.delete(Ce),Promise.reject(z)])}).then(function(z){var le=s(z,2);return le[0],le[1]})})},{miss:function(z){return ce.responsesCache.set(Ce,z)}})},write:function(Pe,ve){return F(ce,ce.hosts.filter(function(xe){return(xe.accept&v.Write)!=0}),Pe,m(ve,ce.timeouts.write))}};return ce}(i(i({hosts:[{url:"".concat(E,"-dsn.algolia.net"),accept:v.Read},{url:"".concat(E,".algolia.net"),accept:v.Write}].concat(f([{url:"".concat(E,"-1.algolianet.com")},{url:"".concat(E,"-2.algolianet.com")},{url:"".concat(E,"-3.algolianet.com")}]))},H),{},{headers:i(i(i({},q.headers()),{"content-type":"application/x-www-form-urlencoded"}),H.headers),queryParameters:i(i({},q.queryParameters()),H.queryParameters)}));return d({transporter:G,appId:E,addAlgoliaAgent:function(Q,S){G.userAgent.add({segment:Q,version:S})},clearCache:function(){return Promise.all([G.requestsCache.clear(),G.responsesCache.clear()]).then(function(){})}},H.methods)},j=function(H){return function(E,q){return E.method===k?H.transporter.read(E,q):H.transporter.write(E,q)}},D=function(H){return function(E){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},G={transporter:H.transporter,appId:H.appId,indexName:E};return d(G,q.methods)}},L=function(H){return function(E,q){var G=E.map(function(Q){return i(i({},Q),{},{params:M(Q.params||{})})});return H.transporter.read({method:A,path:"1/indexes/*/queries",data:{requests:G},cacheable:!0},q)}},$=function(H){return function(E,q){return Promise.all(E.map(function(G){var Q=G.params,S=Q.facetName,C=Q.facetQuery,N=a(Q,["facetName","facetQuery"]);return D(H)(G.indexName,{methods:{searchForFacetValues:X}}).searchForFacetValues(S,C,i(i({},q),N))}))}},w=function(H){return function(E,q,G){return H.transporter.read({method:A,path:p("1/answers/%s/prediction",H.indexName),data:{query:E,queryLanguages:q},cacheable:!0},G)}},Y=function(H){return function(E,q){return H.transporter.read({method:A,path:p("1/indexes/%s/query",H.indexName),data:{query:E},cacheable:!0},q)}},X=function(H){return function(E,q,G){return H.transporter.read({method:A,path:p("1/indexes/%s/facets/%s/query",H.indexName,E),data:{facetQuery:q},cacheable:!0},G)}},ae=1,oe=2,ee=3,V=function(H){return function(E,q){var G=E.map(function(Q){return i(i({},Q),{},{threshold:Q.threshold||0})});return H.transporter.read({method:A,path:"1/indexes/*/recommendations",data:{requests:G},cacheable:!0},q)}};function K(H,E,q){var G,Q={appId:H,apiKey:E,timeouts:{connect:1,read:2,write:30},requester:{send:function(S){return new Promise(function(C){var N=new XMLHttpRequest;N.open(S.method,S.url,!0),Object.keys(S.headers).forEach(function(pe){return N.setRequestHeader(pe,S.headers[pe])});var re,ie=function(pe,fe){return setTimeout(function(){N.abort(),C({status:0,content:fe,isTimedOut:!0})},1e3*pe)},ue=ie(S.connectTimeout,"Connection timeout");N.onreadystatechange=function(){N.readyState>N.OPENED&&re===void 0&&(clearTimeout(ue),re=ie(S.responseTimeout,"Socket timeout"))},N.onerror=function(){N.status===0&&(clearTimeout(ue),clearTimeout(re),C({content:N.responseText||"Network request failed",status:N.status,isTimedOut:!1}))},N.onload=function(){clearTimeout(ue),clearTimeout(re),C({content:N.responseText,status:N.status,isTimedOut:!1})},N.send(S.data)})}},logger:(G=ee,{debug:function(S,C){return ae>=G&&console.debug(S,C),Promise.resolve()},info:function(S,C){return oe>=G&&console.info(S,C),Promise.resolve()},error:function(S,C){return console.error(S,C),Promise.resolve()}}),responsesCache:c(),requestsCache:c({serializable:!1}),hostsCache:u({caches:[l({key:"".concat("4.24.0","-").concat(H)}),c()]}),userAgent:x("4.24.0").add({segment:"Browser",version:"lite"}),authMode:h.WithinQueryParameters};return R(i(i(i({},Q),q),{},{methods:{search:L,searchForFacetValues:$,multipleQueries:L,multipleSearchForFacetValues:$,customRequest:j,initIndex:function(S){return function(C){return D(S)(C,{methods:{search:Y,searchForFacetValues:X,findAnswers:w}})}},getRecommendations:V}}))}return K.version="4.24.0",K})})(a1);const $L=a1.exports;let RL={searchClient:$L("K0SNCQLM4A","587d230fe991746c9a30f6007fb3e06c"),indexName:"prod_pressbooks_directory_by_lastUpdated",availableIndexes:[{value:"prod_pressbooks_directory",default:!1,orderedBy:"relevance",isReplica:!1,label:"Relevance"},{value:"prod_pressbooks_directory_by_lastUpdated",default:!0,orderedBy:"updated",isReplica:!0,label:"Recently updated"},{value:"prod_pressbooks_directory_by_alphabetical",default:!1,orderedBy:"name",isReplica:!0,label:"Title (A-Z)"}],filtersExcluded:[],notFilters:[],filtersParams:"",numericFilters:"",hasNumeric:!1,allowedFilters:{licenseCode:{type:"string",alias:"license",search:!1},about:{type:"string",alias:"subj",empty:"hasAbout",search:!0},hasIsBasedOn:{type:"boolean",alias:"based",search:!1},wordCount:{type:"numeric",alias:"words",search:!1},languageName:{type:"string",alias:"lang",empty:"hasLanguageName",search:!0},institutions:{type:"string",alias:"inst",empty:"hasInstitutions",search:!0},publisherName:{type:"string",alias:"pub",empty:"hasPublisher",search:!0},h5pActivities:{type:"numeric",alias:"h5p",search:!1},search:{type:"string",alias:"q",search:!1},networkName:{type:"string",alias:"net",search:!0},lastUpdated:{type:"numeric",alias:"updated",search:!1},collections:{type:"string",alias:"collec",search:!1,default:[]}},mappedFilters:{},searchFilters:"",searchParameters:{hitsPerPage:10,sortedBy:"",facetFilters:[],page:1,searchQuery:"",hitsPerPageAllowed:[10,20,50],aliases:{hitsPerPage:"per_page",page:"p",sortedBy:"sort"}},resetMainIndex:!0};const AL={state:RL,mutations:{setFiltersFromQueryParams(e,t){let r={},n=!1,i={},a="";for(let s in t){r[s]=[];for(let o=0;o=")>=0?">=":"<=",i.value=i.value.substr(2)),r[s].push(i)}e.filtersExcluded={...r},hr.functions.setNumericFilters(r,e)},getRealAttributesMapped(e){if(Object.keys(e.mappedFilters).length===0)for(const t in e.allowedFilters)e.mappedFilters[e.allowedFilters[t].alias]=t},setPage(e,t){parseInt(t)>0&&(e.searchParameters.page=t)},setHitsPerPage(e,t){e.searchParameters.hitsPerPageAllowed.includes(parseInt(t))&&(e.searchParameters.hitsPerPage=t)},setSortedBy(e,t){e.availableIndexes.map(n=>n.orderedBy).includes(t)&&(e.searchParameters.sortedBy=t)},setMainIndex(e,t){e.availableIndexes.map(n=>n.value).includes(t)&&(e.indexName=t,e.availableIndexes=e.availableIndexes.map(n=>(n.default=n.value===t,n)))},setResetMainIndex(e,t){e.resetMainIndex=t},setIndexFromQuery(e,t){Object.keys(t).forEach(s=>{t[s]===void 0&&delete t[s]});const r=Object.keys(t);let n=!1;Object.keys(e.allowedFilters).map(function(s){return e.allowedFilters[s].alias}).filter(s=>r.includes(s)).length===0&&(e.searchParameters.sortedBy="updated",e.availableIndexes[0].default=!1,e.availableIndexes[1].default=!0,e.indexName="prod_pressbooks_directory_by_lastUpdated",n=!0),n||(e.searchParameters.sortedBy="relevance",e.availableIndexes[1].default=!1,e.availableIndexes[0].default=!0,e.indexName="prod_pressbooks_directory")}}};let TL={totalBooks:0,totalNetworks:0,numberOfBooksIndexed:0,numberOfNetworksIndexed:0,facets:["networkName","licenseCode","about","languageName","publisherName","hasIsBasedOn","hasLicense","hasAbout","hasLanguageName","hasPublisher","hasNetworkName","hasInstitutions","institutions","collections"],filters:{},facetFilters:[],numericFilters:"",keepFacets:[]};const kL={state:TL,mutations:{setTotalBooks(e,t){e.totalBooks=t},setTotalNetworks(e,t){e.totalNetworks=t},setNumberOfBooksIndexed(e,t){e.numberOfBooksIndexed=t},setNumberOfNetworksIndexed(e,t){e.numberOfNetworksIndexed=t},setFacetFilters(e,t){e.facetFilters=t},setNumericFilters(e,t){e.numericFilters=t},setKeepFacets(e,t){e.keepFacets=t},setFilters(e,t){let r=Object.keys(t.facets).reduce((n,i)=>{if(e.keepFacets.includes(i))return n[i]=[...e.filters[i]||[]],n;let a=t.facets[i];return n[i]=Object.keys(a).map(s=>({count:a[s],facet:s})),n},{});Object.keys(e.filters).forEach(n=>{typeof r[n]<"u"||!e.keepFacets.includes(n)||(r[n]=[...e.filters[n]])}),e.filters={...r}},getSimilarFacetValues(e,t){return hr.functions.getSimilarFacetValues(t.facet,t.value,e.filters)}},actions:{getStats(e,t){let r={facets:e.state.facets,facetFilters:e.state.facetFilters};return e.state.numericFilters.length>0&&(r.filters=e.state.numericFilters),t.search("",r).then(function(n){e.commit("setTotalBooks",n.nbHits),typeof n.facets.networkName>"u"&&(n.facets.networkName=[]),e.commit("setTotalNetworks",Object.keys(n.facets.networkName).length),e.commit("setFilters",n),e.state.numberOfBooksIndexed===0&&e.commit("setNumberOfBooksIndexed",n.nbHits),e.state.numberOfNetworksIndexed===0&&e.commit("setNumberOfNetworksIndexed",Object.keys(n.facets.networkName).length)})}}};let CL={books:[]};const EL={state:CL,mutations:{setFeaturedBooks(e,t){e.books=t}},actions:{getFeaturedBooks(e,t){const r={facetFilters:"isFeatured:true"};return t.search("",r).then(function(n){n.hasOwnProperty("hits")&&e.commit("setFeaturedBooks",n.hits)})}}};let IL={collections:[],collectionHeaderCardObjects:[],collectionsFacetName:"collections",coverImageFacetName:"coverImageCollections"};const DL={state:IL,mutations:{setCollections(e,t){e.collections=t},setCollectionHeaderCards(e,t){e.collectionHeaderCardObjects=t}},actions:{getCollections(e,t){return t.search("",{facets:e.state.collectionsFacetName}).then(function(r){if(r.hasOwnProperty("facets")&&typeof r.facets[e.state.collectionsFacetName]<"u"){const n=Object.keys(r.facets[e.state.collectionsFacetName]);if(n.length>0){e.commit("setCollections",n);const i=n.map(a=>e.state.coverImageFacetName+":"+a);return t.search("",{facetFilters:[i]}).then(function(a){a.hasOwnProperty("hits")&&e.commit("setCollectionHeaderCards",a.hits.map(s=>({image:s.thumbnailUrl?s.thumbnailUrl:s.image,name:s[e.state.coverImageFacetName][0],url:!1,facet:e.state.collectionsFacetName})))})}}})}}};let jL={welcomeHeader:!1};const FL={state:jL,mutations:{setComponentAsLoaded(e,t){e[t]=!0}}};function ML(){return s1().__VUE_DEVTOOLS_GLOBAL_HOOK__}function s1(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const LL=typeof Proxy=="function",NL="devtools-plugin:setup",HL="plugin:settings:set";let va,gd;function UL(){var e;return va!==void 0||(typeof window<"u"&&window.performance?(va=!0,gd=window.performance):typeof globalThis<"u"&&((e=globalThis.perf_hooks)===null||e===void 0?void 0:e.performance)?(va=!0,gd=globalThis.perf_hooks.performance):va=!1),va}function BL(){return UL()?gd.now():Date.now()}class WL{constructor(t,r){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=r;const n={};if(t.settings)for(const s in t.settings){const o=t.settings[s];n[s]=o.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let a=Object.assign({},n);try{const s=localStorage.getItem(i),o=JSON.parse(s);Object.assign(a,o)}catch{}this.fallbacks={getSettings(){return a},setSettings(s){try{localStorage.setItem(i,JSON.stringify(s))}catch{}a=s},now(){return BL()}},r&&r.on(HL,(s,o)=>{s===this.plugin.id&&this.fallbacks.setSettings(o)}),this.proxiedOn=new Proxy({},{get:(s,o)=>this.target?this.target.on[o]:(...l)=>{this.onQueue.push({method:o,args:l})}}),this.proxiedTarget=new Proxy({},{get:(s,o)=>this.target?this.target[o]:o==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(o)?(...l)=>(this.targetQueue.push({method:o,args:l,resolve:()=>{}}),this.fallbacks[o](...l)):(...l)=>new Promise(u=>{this.targetQueue.push({method:o,args:l,resolve:u})})})}async setRealTarget(t){this.target=t;for(const r of this.onQueue)this.target.on[r.method](...r.args);for(const r of this.targetQueue)r.resolve(await this.target[r.method](...r.args))}}function qL(e,t){const r=e,n=s1(),i=ML(),a=LL&&r.enableEarlyProxy;if(i&&(n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))i.emit(NL,e,t);else{const s=a?new WL(r,i):null;(n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r,setupFn:t,proxy:s}),s&&t(s.proxiedTarget)}}/*! * vuex v4.1.0 * (c) 2022 Evan You * @license MIT */var VL="store";function ss(e,t){Object.keys(e).forEach(function(r){return t(e[r],r)})}function YL(e){return e!==null&&typeof e=="object"}function QL(e){return e&&typeof e.then=="function"}function zL(e,t){return function(){return e(t)}}function o1(e,t,r){return t.indexOf(e)<0&&(r&&r.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function l1(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;gc(e,r,[],e._modules.root,!0),hp(e,r,t)}function hp(e,t,r){var n=e._state,i=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var a=e._wrappedGetters,s={},o={},l=bS(!0);l.run(function(){ss(a,function(u,c){s[c]=zL(u,e),o[c]=he(function(){return s[c]()}),Object.defineProperty(e.getters,c,{get:function(){return o[c].value},enumerable:!0})})}),e._state=Rr({data:t}),e._scope=l,e.strict&&JL(e),n&&r&&e._withCommit(function(){n.data=null}),i&&i.stop()}function gc(e,t,r,n,i){var a=!r.length,s=e._modules.getNamespace(r);if(n.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=n),!a&&!i){var o=pp(t,r.slice(0,-1)),l=r[r.length-1];e._withCommit(function(){o[l]=n.state})}var u=n.context=KL(e,s,r);n.forEachMutation(function(c,f){var d=s+f;GL(e,d,c,u)}),n.forEachAction(function(c,f){var d=c.root?f:s+f,p=c.handler||c;XL(e,d,p,u)}),n.forEachGetter(function(c,f){var d=s+f;ZL(e,d,c,u)}),n.forEachChild(function(c,f){gc(e,t,r.concat(f),c,i)})}function KL(e,t,r){var n=t==="",i={dispatch:n?e.dispatch:function(a,s,o){var l=Lu(a,s,o),u=l.payload,c=l.options,f=l.type;return(!c||!c.root)&&(f=t+f),e.dispatch(f,u)},commit:n?e.commit:function(a,s,o){var l=Lu(a,s,o),u=l.payload,c=l.options,f=l.type;(!c||!c.root)&&(f=t+f),e.commit(f,u,c)}};return Object.defineProperties(i,{getters:{get:n?function(){return e.getters}:function(){return u1(e,t)}},state:{get:function(){return pp(e.state,r)}}}),i}function u1(e,t){if(!e._makeLocalGettersCache[t]){var r={},n=t.length;Object.keys(e.getters).forEach(function(i){if(i.slice(0,n)===t){var a=i.slice(n);Object.defineProperty(r,a,{get:function(){return e.getters[i]},enumerable:!0})}}),e._makeLocalGettersCache[t]=r}return e._makeLocalGettersCache[t]}function GL(e,t,r,n){var i=e._mutations[t]||(e._mutations[t]=[]);i.push(function(s){r.call(e,n.state,s)})}function XL(e,t,r,n){var i=e._actions[t]||(e._actions[t]=[]);i.push(function(s){var o=r.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},s);return QL(o)||(o=Promise.resolve(o)),e._devtoolHook?o.catch(function(l){throw e._devtoolHook.emit("vuex:error",l),l}):o})}function ZL(e,t,r,n){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(a){return r(n.state,n.getters,a.state,a.getters)})}function JL(e){yr(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function pp(e,t){return t.reduce(function(r,n){return r[n]},e)}function Lu(e,t,r){return YL(e)&&e.type&&(r=t,t=e,e=e.type),{type:e,payload:t,options:r}}var eN="vuex bindings",qv="vuex:mutations",af="vuex:actions",ga="vuex",tN=0;function rN(e,t){qL({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[eN]},function(r){r.addTimelineLayer({id:qv,label:"Vuex Mutations",color:Vv}),r.addTimelineLayer({id:af,label:"Vuex Actions",color:Vv}),r.addInspector({id:ga,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),r.on.getInspectorTree(function(n){if(n.app===e&&n.inspectorId===ga)if(n.filter){var i=[];h1(i,t._modules.root,n.filter,""),n.rootNodes=i}else n.rootNodes=[d1(t._modules.root,"")]}),r.on.getInspectorState(function(n){if(n.app===e&&n.inspectorId===ga){var i=n.nodeId;u1(t,i),n.state=aN(oN(t._modules,i),i==="root"?t.getters:t._makeLocalGettersCache,i)}}),r.on.editInspectorState(function(n){if(n.app===e&&n.inspectorId===ga){var i=n.nodeId,a=n.path;i!=="root"&&(a=i.split("/").filter(Boolean).concat(a)),t._withCommit(function(){n.set(t._state.data,a,n.state.value)})}}),t.subscribe(function(n,i){var a={};n.payload&&(a.payload=n.payload),a.state=i,r.notifyComponentUpdate(),r.sendInspectorTree(ga),r.sendInspectorState(ga),r.addTimelineEvent({layerId:qv,event:{time:Date.now(),title:n.type,data:a}})}),t.subscribeAction({before:function(n,i){var a={};n.payload&&(a.payload=n.payload),n._id=tN++,n._time=Date.now(),a.state=i,r.addTimelineEvent({layerId:af,event:{time:n._time,title:n.type,groupId:n._id,subtitle:"start",data:a}})},after:function(n,i){var a={},s=Date.now()-n._time;a.duration={_custom:{type:"duration",display:s+"ms",tooltip:"Action duration",value:s}},n.payload&&(a.payload=n.payload),a.state=i,r.addTimelineEvent({layerId:af,event:{time:Date.now(),title:n.type,groupId:n._id,subtitle:"end",data:a}})}})})}var Vv=8702998,nN=6710886,iN=16777215,c1={label:"namespaced",textColor:iN,backgroundColor:nN};function f1(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function d1(e,t){return{id:t||"root",label:f1(t),tags:e.namespaced?[c1]:[],children:Object.keys(e._children).map(function(r){return d1(e._children[r],t+r+"/")})}}function h1(e,t,r,n){n.includes(r)&&e.push({id:n||"root",label:n.endsWith("/")?n.slice(0,n.length-1):n||"Root",tags:t.namespaced?[c1]:[]}),Object.keys(t._children).forEach(function(i){h1(e,t._children[i],r,n+i+"/")})}function aN(e,t,r){t=r==="root"?t:t[r];var n=Object.keys(t),i={state:Object.keys(e.state).map(function(s){return{key:s,editable:!0,value:e.state[s]}})};if(n.length){var a=sN(t);i.getters=Object.keys(a).map(function(s){return{key:s.endsWith("/")?f1(s):s,editable:!1,value:yd(function(){return a[s]})}})}return i}function sN(e){var t={};return Object.keys(e).forEach(function(r){var n=r.split("/");if(n.length>1){var i=t,a=n.pop();n.forEach(function(s){i[s]||(i[s]={_custom:{value:{},display:s,tooltip:"Module",abstract:!0}}),i=i[s]._custom.value}),i[a]=yd(function(){return e[r]})}else t[r]=yd(function(){return e[r]})}),t}function oN(e,t){var r=t.split("/").filter(function(n){return n});return r.reduce(function(n,i,a){var s=n[i];if(!s)throw new Error('Missing module "'+i+'" for path "'+t+'".');return a===r.length-1?s:s._children},t==="root"?e:e.root._children)}function yd(e){try{return e()}catch(t){return t}}var ln=function(t,r){this.runtime=r,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=(typeof n=="function"?n():n)||{}},p1={namespaced:{configurable:!0}};p1.namespaced.get=function(){return!!this._rawModule.namespaced};ln.prototype.addChild=function(t,r){this._children[t]=r};ln.prototype.removeChild=function(t){delete this._children[t]};ln.prototype.getChild=function(t){return this._children[t]};ln.prototype.hasChild=function(t){return t in this._children};ln.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};ln.prototype.forEachChild=function(t){ss(this._children,t)};ln.prototype.forEachGetter=function(t){this._rawModule.getters&&ss(this._rawModule.getters,t)};ln.prototype.forEachAction=function(t){this._rawModule.actions&&ss(this._rawModule.actions,t)};ln.prototype.forEachMutation=function(t){this._rawModule.mutations&&ss(this._rawModule.mutations,t)};Object.defineProperties(ln.prototype,p1);var ua=function(t){this.register([],t,!1)};ua.prototype.get=function(t){return t.reduce(function(r,n){return r.getChild(n)},this.root)};ua.prototype.getNamespace=function(t){var r=this.root;return t.reduce(function(n,i){return r=r.getChild(i),n+(r.namespaced?i+"/":"")},"")};ua.prototype.update=function(t){m1([],this.root,t)};ua.prototype.register=function(t,r,n){var i=this;n===void 0&&(n=!0);var a=new ln(r,n);if(t.length===0)this.root=a;else{var s=this.get(t.slice(0,-1));s.addChild(t[t.length-1],a)}r.modules&&ss(r.modules,function(o,l){i.register(t.concat(l),o,n)})};ua.prototype.unregister=function(t){var r=this.get(t.slice(0,-1)),n=t[t.length-1],i=r.getChild(n);!i||!i.runtime||r.removeChild(n)};ua.prototype.isRegistered=function(t){var r=this.get(t.slice(0,-1)),n=t[t.length-1];return r?r.hasChild(n):!1};function m1(e,t,r){if(t.update(r),r.modules)for(var n in r.modules){if(!t.getChild(n))return;m1(e.concat(n),t.getChild(n),r.modules[n])}}function lN(e){return new Ar(e)}var Ar=function(t){var r=this;t===void 0&&(t={});var n=t.plugins;n===void 0&&(n=[]);var i=t.strict;i===void 0&&(i=!1);var a=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new ua(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=a;var s=this,o=this,l=o.dispatch,u=o.commit;this.dispatch=function(d,p){return l.call(s,d,p)},this.commit=function(d,p,h){return u.call(s,d,p,h)},this.strict=i;var c=this._modules.root.state;gc(this,c,[],this._modules.root),hp(this,c),n.forEach(function(f){return f(r)})},mp={state:{configurable:!0}};Ar.prototype.install=function(t,r){t.provide(r||VL,this),t.config.globalProperties.$store=this;var n=this._devtools!==void 0?this._devtools:!1;n&&rN(t,this)};mp.state.get=function(){return this._state.data};mp.state.set=function(e){};Ar.prototype.commit=function(t,r,n){var i=this,a=Lu(t,r,n),s=a.type,o=a.payload,l={type:s,payload:o},u=this._mutations[s];!u||(this._withCommit(function(){u.forEach(function(f){f(o)})}),this._subscribers.slice().forEach(function(c){return c(l,i.state)}))};Ar.prototype.dispatch=function(t,r){var n=this,i=Lu(t,r),a=i.type,s=i.payload,o={type:a,payload:s},l=this._actions[a];if(!!l){try{this._actionSubscribers.slice().filter(function(c){return c.before}).forEach(function(c){return c.before(o,n.state)})}catch{}var u=l.length>1?Promise.all(l.map(function(c){return c(s)})):l[0](s);return new Promise(function(c,f){u.then(function(d){try{n._actionSubscribers.filter(function(p){return p.after}).forEach(function(p){return p.after(o,n.state)})}catch{}c(d)},function(d){try{n._actionSubscribers.filter(function(p){return p.error}).forEach(function(p){return p.error(o,n.state,d)})}catch{}f(d)})})}};Ar.prototype.subscribe=function(t,r){return o1(t,this._subscribers,r)};Ar.prototype.subscribeAction=function(t,r){var n=typeof t=="function"?{before:t}:t;return o1(n,this._actionSubscribers,r)};Ar.prototype.watch=function(t,r,n){var i=this;return yr(function(){return t(i.state,i.getters)},r,Object.assign({},n))};Ar.prototype.replaceState=function(t){var r=this;this._withCommit(function(){r._state.data=t})};Ar.prototype.registerModule=function(t,r,n){n===void 0&&(n={}),typeof t=="string"&&(t=[t]),this._modules.register(t,r),gc(this,this.state,t,this._modules.get(t),n.preserveState),hp(this,this.state)};Ar.prototype.unregisterModule=function(t){var r=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var n=pp(r.state,t.slice(0,-1));delete n[t[t.length-1]]}),l1(this)};Ar.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};Ar.prototype.hotUpdate=function(t){this._modules.update(t),l1(this,!0)};Ar.prototype._withCommit=function(t){var r=this._committing;this._committing=!0,t(),this._committing=r};Object.defineProperties(Ar.prototype,mp);const ze=lN({modules:{SClient:AL,config:eu,stats:kL,featuredBooks:EL,collections:DL,componentsLoaded:FL}});function uN(e,t,r){if(!e)throw new Error("You need to provide `widgetName` in your data");var n=["ais-"+e];return t&&n.push("-"+t),r&&n.push("--"+r),n.join("")}var rt=function(e){var t=e.name;return{props:{classNames:{type:Object,default:void 0}},methods:{suit:function(r,n){var i=uN(t,r,n),a=this.classNames&&this.classNames[i];return a?[i,a].join(" "):i}}}};function _o(e){for(var t=arguments,r=1;r0;)i[a]=arguments[a+2];var s=i.length>0?i:void 0;if(typeof n=="object"&&(n.attrs||n.props||n.scopedSlots||n.on)){var o=Object.keys(n.on||{}),l=Object.assign({},n,n.attrs,n.props,o.reduce(function(u,c){return u["on"+c[0].toUpperCase()+c.slice(1)]=n.on[c],u},{}));return delete l.attrs,delete l.props,delete l.scopedSlots,o.forEach(function(u){return delete l.on[u]}),l.on&&Object.keys(l.on).length===0&&delete l.on,Ur(r,l,n.scopedSlots?Object.assign({default:function(){return s}},n.scopedSlots):s)}return Ur(r,n,s)}return function(){return e.call(this,t)}}function yc(e){var t=e.$slots||e.slots;return typeof t.default=="function"?t.default():t.default}function sf(e,t){return(e.$slots||e.slots||{})[t]}var Yv=new Set;function Ma(e){Yv.has(e)||(Yv.add(e),console.warn(e))}var gt=function(e,t){var r;e===void 0&&(e={});var n=e.connector;return t===void 0&&(t={}),(r={inject:{instantSearchInstance:{from:"$_ais_instantSearchInstance",default:function(){var i=this.$options._componentTag;throw new TypeError('It looks like you forgot to wrap your Algolia search component "<'+i+'>" inside of an "" component.')}},getParentIndex:{from:"$_ais_getParentIndex",default:function(){var i=this;return function(){return i.instantSearchInstance.mainIndex}}}},data:function(){return{state:null}},created:function(){if(typeof n=="function"){if(this.factory=n(this.updateState,function(){}),this.widget=_o(this.factory(this.widgetParams),t),this.getParentIndex().addWidgets([this.widget]),this.instantSearchInstance._initialResults&&!this.instantSearchInstance.started){if(typeof this.instantSearchInstance.__forceRender!="function")throw new Error("You are using server side rendering with instead of .");this.instantSearchInstance.__forceRender(this.widget,this.getParentIndex())}}else n!==!0&&Ma(`You are using the InstantSearch widget mixin, but didn't provide a connector. While this is technically possible, and will give you access to the Helper, it's not the recommended way of making custom components. If you want to disable this message, pass { connector: true } to the mixin. Read more on using connectors: https://alg.li/vue-custom`)}}).beforeUnmount=function(){this.widget&&this.getParentIndex().removeWidgets([this.widget])},r.watch={widgetParams:{handler:function(i){this.state=null,this.getParentIndex().removeWidgets([this.widget]),this.widget=_o(this.factory(i),t),this.getParentIndex().addWidgets([this.widget])},deep:!0}},r.methods={updateState:function(i,a){i===void 0&&(i={}),a||(this.state=i)}},r};function So(e){return So=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},So(e)}function Qv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jr(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:Ke;return Et(t,Fl()),function(n){var i=n||{},a=i.queryLanguages,s=i.attributesForPrediction,o=i.nbHits,l=o===void 0?1:o,u=i.renderDebounceTime,c=u===void 0?100:u,f=i.searchDebounceTime,d=f===void 0?100:f,p=i.escapeHTML,h=p===void 0?!0:p,m=i.extraParameters,v=m===void 0?{}:m;if(!a||a.length===0)throw new Error(Fl("The `queryLanguages` expects an array of strings."));var g=GO(),y=[],_=!1,b=xm(t,c),P;return{$$type:"ais.answers",init:function(A){var U=A.state,F=A.instantSearchInstance;if(typeof F.client.initIndex!="function")throw new Error(Fl("`algoliasearch` <5 required."));var x=F.client.initIndex(U.index);if(!vN(x))throw new Error(Fl("`algoliasearch` >= 4.8.0 required."));P=xm(x.findAnswers,d),t(jr(jr({},this.getWidgetRenderState(A)),{},{instantSearchInstance:A.instantSearchInstance}),!0)},render:function(A){var U=this,F=A.state.query;if(!F){y=[],_=!1,t(jr(jr({},this.getWidgetRenderState(A)),{},{instantSearchInstance:A.instantSearchInstance}),!1);return}y=[],_=!0,t(jr(jr({},this.getWidgetRenderState(A)),{},{instantSearchInstance:A.instantSearchInstance}),!1),g(P(F,a,jr(jr({},v),{},{nbHits:l,attributesForPrediction:s}))).then(function(x){if(!!x){h&&x.hits.length>0&&(x.hits=sc(x.hits));var I=hh(x.hits,0,l),M=ph(I,x.queryID);y=M,_=!1,b(jr(jr({},U.getWidgetRenderState(A)),{},{instantSearchInstance:A.instantSearchInstance}),!1)}})},getRenderState:function(A,U){return jr(jr({},A),{},{answers:this.getWidgetRenderState(U)})},getWidgetRenderState:function(){return{hits:y,isLoading:_,widgetParams:n}},dispose:function(A){var U=A.state;return r(),U},getWidgetSearchParameters:function(A){return A}}}};const yN=gN;function or(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}var vp=or;or.prototype._events=void 0;or.prototype._maxListeners=void 0;or.defaultMaxListeners=10;or.prototype.setMaxListeners=function(e){if(!bN(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this};or.prototype.emit=function(e){var t,r,n,i,a,s;if(this._events||(this._events={}),e==="error"&&(!this._events.error||Po(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var o=new Error('Uncaught, unspecified "error" event. ('+t+")");throw o.context=t,o}if(r=this._events[e],v1(r))return!1;if(Vn(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),r.apply(this,i)}else if(Po(r))for(i=Array.prototype.slice.call(arguments,1),s=r.slice(),n=s.length,a=0;a0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),typeof console.trace=="function"&&console.trace())),this};or.prototype.on=or.prototype.addListener;or.prototype.once=function(e,t){if(!Vn(t))throw TypeError("listener must be a function");var r=!1;function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}return n.listener=t,this.on(e,n),this};or.prototype.removeListener=function(e,t){var r,n,i,a;if(!Vn(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],i=r.length,n=-1,r===t||Vn(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(Po(r)){for(a=i;a-- >0;)if(r[a]===t||r[a].listener&&r[a].listener===t){n=a;break}if(n<0)return this;r.length===1?(r.length=0,delete this._events[e]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this};or.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[e]&&delete this._events[e],this;if(arguments.length===0){for(t in this._events)t!=="removeListener"&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],Vn(r))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this};or.prototype.listeners=function(e){var t;return!this._events||!this._events[e]?t=[]:Vn(this._events[e])?t=[this._events[e]]:t=this._events[e].slice(),t};or.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(Vn(t))return 1;if(t)return t.length}return 0};or.listenerCount=function(e,t){return e.listenerCount(t)};function Vn(e){return typeof e=="function"}function bN(e){return typeof e=="number"}function Po(e){return typeof e=="object"&&e!==null}function v1(e){return e===void 0}function wN(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}var g1=wN,_N=vp,SN=g1;function ul(e,t,r){this.main=e,this.fn=t,this.recommendFn=r,this.lastResults=null,this.lastRecommendResults=null}SN(ul,_N);ul.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)};ul.prototype.getModifiedState=function(e){return this.fn(e)};ul.prototype.getModifiedRecommendState=function(e){return this.recommendFn(e)};var PN=ul;function xN(e){return typeof e!="string"?e:String(e).replace(/^-/,"\\-")}function ON(e){return typeof e!="string"?e:e.replace(/^\\-/,"-")}var gp={escapeFacetValue:xN,unescapeFacetValue:ON};function $N(e){return typeof e=="object"&&e!==null?yp(Array.isArray(e)?[]:{},e):e}function Nu(e){return typeof e=="function"||Array.isArray(e)||Object.prototype.toString.call(e)==="[object Object]"}function yp(e,t){if(e===t)return e;for(var r in t)if(!(!Object.prototype.hasOwnProperty.call(t,r)||r==="__proto__"||r==="constructor")){var n=t[r],i=e[r];typeof i<"u"&&typeof n>"u"||(Nu(i)&&Nu(n)?e[r]=yp(i,n):e[r]=$N(n))}return e}function RN(e){Nu(e)||(e={});for(var t=1,r=arguments.length;t0}var bp=AN;function TN(e,t){if(e===null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var wp=TN;function As(e){e=e||{},this.params=e.params||[]}As.prototype={constructor:As,addParams:function(e){var t=this.params.slice();return t.push(e),new As({params:t})},removeParams:function(e){return new As({params:this.params.filter(function(t){return t.$$id!==e})})},addFrequentlyBoughtTogether:function(e){return this.addParams(Object.assign({},e,{model:"bought-together"}))},addRelatedProducts:function(e){return this.addParams(Object.assign({},e,{model:"related-products"}))},addTrendingItems:function(e){return this.addParams(Object.assign({},e,{model:"trending-items"}))},addTrendingFacets:function(e){return this.addParams(Object.assign({},e,{model:"trending-facets"}))},addLookingSimilar:function(e){return this.addParams(Object.assign({},e,{model:"looking-similar"}))},_buildQueries:function(e,t){return this.params.filter(function(r){return t[r.$$id]===void 0}).map(function(r){var n=Object.assign({},r,{indexName:e,threshold:r.threshold||0});return delete n.$$id,n})}};var y1=As;function bd(e,t){this._state=e,this._rawResults={};var r=this;e.params.forEach(function(n){var i=n.$$id;r[i]=t[i],r._rawResults[i]=t[i]})}bd.prototype={constructor:bd};var b1=bd,of=bc;function lf(e){return Object.keys(e).sort().reduce(function(t,r){return t[r]=e[r],t},{})}var kr={_getQueries:function(t,r){var n=[];return n.push({indexName:t,params:kr._getHitsSearchParams(r)}),r.getRefinedDisjunctiveFacets().forEach(function(i){n.push({indexName:t,params:kr._getDisjunctiveFacetSearchParams(r,i)})}),r.getRefinedHierarchicalFacets().forEach(function(i){var a=r.getHierarchicalFacetByName(i),s=r.getHierarchicalRefinement(i),o=r._getHierarchicalFacetSeparator(a);if(s.length>0&&s[0].split(o).length>1){var l=s[0].split(o).slice(0,-1).reduce(function(c,f,d){return c.concat({attribute:a.attributes[d],value:d===0?f:[c[c.length-1].value,f].join(o)})},[]);l.forEach(function(u,c){var f=kr._getDisjunctiveFacetSearchParams(r,u.attribute,c===0);function d(m){return a.attributes.some(function(v){return v===m.split(":")[0]})}var p=(f.facetFilters||[]).reduce(function(m,v){if(Array.isArray(v)){var g=v.filter(function(y){return!d(y)});g.length>0&&m.push(g)}return typeof v=="string"&&!d(v)&&m.push(v),m},[]),h=l[c-1];c>0?f.facetFilters=p.concat(h.attribute+":"+h.value):p.length>0?f.facetFilters=p:delete f.facetFilters,n.push({indexName:t,params:f})})}}),n},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(kr._getHitsHierarchicalFacetsAttributes(e)).sort(),r=kr._getFacetFilters(e),n=kr._getNumericFilters(e),i=kr._getTagFilters(e),a={};return t.length>0&&(a.facets=t.indexOf("*")>-1?["*"]:t),i.length>0&&(a.tagFilters=i),r.length>0&&(a.facetFilters=r),n.length>0&&(a.numericFilters=n),lf(of({},e.getQueryParams(),a))},_getDisjunctiveFacetSearchParams:function(e,t,r){var n=kr._getFacetFilters(e,t,r),i=kr._getNumericFilters(e,t),a=kr._getTagFilters(e),s={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};a.length>0&&(s.tagFilters=a);var o=e.getHierarchicalFacetByName(t);return o?s.facets=kr._getDisjunctiveHierarchicalFacetAttribute(e,o,r):s.facets=t,i.length>0&&(s.numericFilters=i),n.length>0&&(s.facetFilters=n),lf(of({},e.getQueryParams(),s))},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var r=[];return Object.keys(e.numericRefinements).forEach(function(n){var i=e.numericRefinements[n]||{};Object.keys(i).forEach(function(a){var s=i[a]||[];t!==n&&s.forEach(function(o){if(Array.isArray(o)){var l=o.map(function(u){return n+a+u});r.push(l)}else r.push(n+a+o)})})}),r},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,r){var n=[],i=e.facetsRefinements||{};Object.keys(i).sort().forEach(function(l){var u=i[l]||[];u.slice().sort().forEach(function(c){n.push(l+":"+c)})});var a=e.facetsExcludes||{};Object.keys(a).sort().forEach(function(l){var u=a[l]||[];u.sort().forEach(function(c){n.push(l+":-"+c)})});var s=e.disjunctiveFacetsRefinements||{};Object.keys(s).sort().forEach(function(l){var u=s[l]||[];if(!(l===t||!u||u.length===0)){var c=[];u.slice().sort().forEach(function(f){c.push(l+":"+f)}),n.push(c)}});var o=e.hierarchicalFacetsRefinements||{};return Object.keys(o).sort().forEach(function(l){var u=o[l]||[],c=u[0];if(c!==void 0){var f=e.getHierarchicalFacetByName(l),d=e._getHierarchicalFacetSeparator(f),p=e._getHierarchicalRootPath(f),h,m;if(t===l){if(c.indexOf(d)===-1||!p&&r===!0||p&&p.split(d).length===c.split(d).length)return;p?(m=p.split(d).length-1,c=p):(m=c.split(d).length-2,c=c.slice(0,c.lastIndexOf(d))),h=f.attributes[m]}else m=c.split(d).length-1,h=f.attributes[m];h&&n.push([h+":"+c])}}),n},_getHitsHierarchicalFacetsAttributes:function(e){var t=[];return e.hierarchicalFacets.reduce(function(n,i){var a=e.getHierarchicalRefinement(i.name)[0];if(!a)return n.push(i.attributes[0]),n;var s=e._getHierarchicalFacetSeparator(i),o=a.split(s).length,l=i.attributes.slice(0,o+1);return n.concat(l)},t)},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,r){var n=e._getHierarchicalFacetSeparator(t);if(r===!0){var i=e._getHierarchicalRootPath(t),a=0;return i&&(a=i.split(n).length),[t.attributes[a]]}var s=e.getHierarchicalRefinement(t.name)[0]||"",o=s.split(n).length-1;return t.attributes.slice(0,o+1)},getSearchForFacetQuery:function(e,t,r,n){var i=n.isDisjunctiveFacet(e)?n.clearRefinements(e):n,a={facetQuery:t,facetName:e};return typeof r=="number"&&(a.maxFacetHits=r),lf(of({},kr._getHitsSearchParams(i),a))}},kN=kr,_p=function(){var t=Array.prototype.slice.call(arguments);return t.reduceRight(function(r,n){return Object.keys(Object(n)).forEach(function(i){n[i]!==void 0&&(r[i]!==void 0&&delete r[i],r[i]=n[i])}),r},{})},cl=function(t,r){if(!!Array.isArray(t)){for(var n=0;n-1&&e.indexOf(r)===n})}var EN=CN;function w1(e){if(typeof e=="number")return e;if(typeof e=="string")return parseFloat(e);if(Array.isArray(e))return e.map(w1);throw new Error("The value should be a number, a parsable string or an array of those.")}var IN=w1,DN=function(t){return t===null?!1:/^[a-zA-Z0-9_-]{1,64}$/.test(t)},jN=_p,FN=bp,MN=wp,qi={addRefinement:function(t,r,n){if(qi.isRefined(t,r,n))return t;var i=""+n,a=t[r]?t[r].concat(i):[i],s={};return s[r]=a,jN({},s,t)},removeRefinement:function(t,r,n){if(n===void 0)return qi.clearRefinement(t,function(a,s){return r===s});var i=""+n;return qi.clearRefinement(t,function(a,s){return r===s&&i===a})},toggleRefinement:function(t,r,n){if(n===void 0)throw new Error("toggleRefinement should be used with a value");return qi.isRefined(t,r,n)?qi.removeRefinement(t,r,n):qi.addRefinement(t,r,n)},clearRefinement:function(t,r,n){if(r===void 0)return FN(t)?{}:t;if(typeof r=="string")return MN(t,[r]);if(typeof r=="function"){var i=!1,a=Object.keys(t).reduce(function(s,o){var l=t[o]||[],u=l.filter(function(c){return!r(c,o,n)});return u.length!==l.length&&(i=!0),s[o]=u,s},{});return i?a:t}},isRefined:function(t,r,n){var i=Boolean(t[r])&&t[r].length>0;if(n===void 0||!i)return i;var a=""+n;return t[r].indexOf(a)!==-1}},LN=qi,uf=_p,_1=cl,zv=EN,wd=bc,_d=bp,Kv=wp,cf=IN,NN=DN,Tt=LN;function Sp(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every(function(r,n){return Sp(t[n],r)}):e===t}function HN(e,t){return _1(e,function(r){return Sp(r,t)})}function xr(e){var t=e?xr._parseNumbers(e):{};t.userToken!==void 0&&!NN(t.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=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{};var r=this;Object.keys(t).forEach(function(n){var i=xr.PARAMETERS.indexOf(n)!==-1,a=t[n]!==void 0;!i&&a&&(r[n]=t[n])})}xr.PARAMETERS=Object.keys(new xr);xr._parseNumbers=function(e){if(e instanceof xr)return e;var t={},r=["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"];if(r.forEach(function(i){var a=e[i];if(typeof a=="string"){var s=parseFloat(a);t[i]=isNaN(s)?a:s}}),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map(function(i){return Array.isArray(i)?i.map(function(a){return parseFloat(a)}):i})),e.numericRefinements){var n={};Object.keys(e.numericRefinements).forEach(function(i){var a=e.numericRefinements[i]||{};n[i]={},Object.keys(a).forEach(function(s){var o=a[s],l=o.map(function(u){return Array.isArray(u)?u.map(function(c){return typeof c=="string"?parseFloat(c):c}):typeof u=="string"?parseFloat(u):u});n[i][s]=l})}),t.numericRefinements=n}return wd(e,t)};xr.make=function(t){var r=new xr(t),n=t.hierarchicalFacets||[];return n.forEach(function(i){if(i.rootPath){var a=r.getHierarchicalRefinement(i.name);a.length>0&&a[0].indexOf(i.rootPath)!==0&&(r=r.clearRefinements(i.name)),a=r.getHierarchicalRefinement(i.name),a.length===0&&(r=r.toggleHierarchicalFacetRefinement(i.name,i.rootPath))}}),r};xr.validate=function(e,t){var r=t||{};return e.tagFilters&&r.tagRefinements&&r.tagRefinements.length>0?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&r.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&r.numericRefinements&&_d(r.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):_d(e.numericRefinements)&&r.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null};xr.prototype={constructor:xr,clearRefinements:function(t){var r={numericRefinements:this._clearNumericRefinements(t),facetsRefinements:Tt.clearRefinement(this.facetsRefinements,t,"conjunctiveFacet"),facetsExcludes:Tt.clearRefinement(this.facetsExcludes,t,"exclude"),disjunctiveFacetsRefinements:Tt.clearRefinement(this.disjunctiveFacetsRefinements,t,"disjunctiveFacet"),hierarchicalFacetsRefinements:Tt.clearRefinement(this.hierarchicalFacetsRefinements,t,"hierarchicalFacet")};return r.numericRefinements===this.numericRefinements&&r.facetsRefinements===this.facetsRefinements&&r.facetsExcludes===this.facetsExcludes&&r.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&r.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(r)},clearTags:function(){return this.tagFilters===void 0&&this.tagRefinements.length===0?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(t){return t===this.index?this:this.setQueryParameters({index:t})},setQuery:function(t){return t===this.query?this:this.setQueryParameters({query:t})},setPage:function(t){return t===this.page?this:this.setQueryParameters({page:t})},setFacets:function(t){return this.setQueryParameters({facets:t})},setDisjunctiveFacets:function(t){return this.setQueryParameters({disjunctiveFacets:t})},setHitsPerPage:function(t){return this.hitsPerPage===t?this:this.setQueryParameters({hitsPerPage:t})},setTypoTolerance:function(t){return this.typoTolerance===t?this:this.setQueryParameters({typoTolerance:t})},addNumericRefinement:function(e,t,r){var n=cf(r);if(this.isNumericRefined(e,t,n))return this;var i=wd({},this.numericRefinements);return i[e]=wd({},i[e]),i[e][t]?(i[e][t]=i[e][t].slice(),i[e][t].push(n)):i[e][t]=[n],this.setQueryParameters({numericRefinements:i})},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)?this.facetsRefinements[e]||[]:[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)?this.disjunctiveFacetsRefinements[e]||[]:[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)?this.facetsExcludes[e]||[]:[]},removeNumericRefinement:function(e,t,r){var n=r;return n!==void 0?this.isNumericRefined(e,t,n)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(i,a){return a===e&&i.op===t&&Sp(i.val,cf(n))})}):this:t!==void 0?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(i,a){return a===e&&i.op===t})}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(i,a){return a===e})}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(t){if(t===void 0)return _d(this.numericRefinements)?{}:this.numericRefinements;if(typeof t=="string")return Kv(this.numericRefinements,[t]);if(typeof t=="function"){var r=!1,n=this.numericRefinements,i=Object.keys(n).reduce(function(a,s){var o=n[s],l={};return o=o||{},Object.keys(o).forEach(function(u){var c=o[u]||[],f=[];c.forEach(function(d){var p=t({val:d,op:u},s,"numeric");p||f.push(d)}),f.length!==c.length&&(r=!0),l[u]=f}),a[s]=l,a},{});return r?i:this.numericRefinements}},addFacet:function(t){return this.isConjunctiveFacet(t)?this:this.setQueryParameters({facets:this.facets.concat([t])})},addDisjunctiveFacet:function(t){return this.isDisjunctiveFacet(t)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([t])})},addHierarchicalFacet:function(t){if(this.isHierarchicalFacet(t.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+t.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([t])})},addFacetRefinement:function(t,r){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return Tt.isRefined(this.facetsRefinements,t,r)?this:this.setQueryParameters({facetsRefinements:Tt.addRefinement(this.facetsRefinements,t,r)})},addExcludeRefinement:function(t,r){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return Tt.isRefined(this.facetsExcludes,t,r)?this:this.setQueryParameters({facetsExcludes:Tt.addRefinement(this.facetsExcludes,t,r)})},addDisjunctiveFacetRefinement:function(t,r){if(!this.isDisjunctiveFacet(t))throw new Error(t+" is not defined in the disjunctiveFacets attribute of the helper configuration");return Tt.isRefined(this.disjunctiveFacetsRefinements,t,r)?this:this.setQueryParameters({disjunctiveFacetsRefinements:Tt.addRefinement(this.disjunctiveFacetsRefinements,t,r)})},addTagRefinement:function(t){if(this.isTagRefined(t))return this;var r={tagRefinements:this.tagRefinements.concat(t)};return this.setQueryParameters(r)},removeFacet:function(t){return this.isConjunctiveFacet(t)?this.clearRefinements(t).setQueryParameters({facets:this.facets.filter(function(r){return r!==t})}):this},removeDisjunctiveFacet:function(t){return this.isDisjunctiveFacet(t)?this.clearRefinements(t).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter(function(r){return r!==t})}):this},removeHierarchicalFacet:function(t){return this.isHierarchicalFacet(t)?this.clearRefinements(t).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter(function(r){return r.name!==t})}):this},removeFacetRefinement:function(t,r){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return Tt.isRefined(this.facetsRefinements,t,r)?this.setQueryParameters({facetsRefinements:Tt.removeRefinement(this.facetsRefinements,t,r)}):this},removeExcludeRefinement:function(t,r){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return Tt.isRefined(this.facetsExcludes,t,r)?this.setQueryParameters({facetsExcludes:Tt.removeRefinement(this.facetsExcludes,t,r)}):this},removeDisjunctiveFacetRefinement:function(t,r){if(!this.isDisjunctiveFacet(t))throw new Error(t+" is not defined in the disjunctiveFacets attribute of the helper configuration");return Tt.isRefined(this.disjunctiveFacetsRefinements,t,r)?this.setQueryParameters({disjunctiveFacetsRefinements:Tt.removeRefinement(this.disjunctiveFacetsRefinements,t,r)}):this},removeTagRefinement:function(t){if(!this.isTagRefined(t))return this;var r={tagRefinements:this.tagRefinements.filter(function(n){return n!==t})};return this.setQueryParameters(r)},toggleRefinement:function(t,r){return this.toggleFacetRefinement(t,r)},toggleFacetRefinement:function(t,r){if(this.isHierarchicalFacet(t))return this.toggleHierarchicalFacetRefinement(t,r);if(this.isConjunctiveFacet(t))return this.toggleConjunctiveFacetRefinement(t,r);if(this.isDisjunctiveFacet(t))return this.toggleDisjunctiveFacetRefinement(t,r);throw new Error("Cannot refine the undeclared facet "+t+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(t,r){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:Tt.toggleRefinement(this.facetsRefinements,t,r)})},toggleExcludeFacetRefinement:function(t,r){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:Tt.toggleRefinement(this.facetsExcludes,t,r)})},toggleDisjunctiveFacetRefinement:function(t,r){if(!this.isDisjunctiveFacet(t))throw new Error(t+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:Tt.toggleRefinement(this.disjunctiveFacetsRefinements,t,r)})},toggleHierarchicalFacetRefinement:function(t,r){if(!this.isHierarchicalFacet(t))throw new Error(t+" is not defined in the hierarchicalFacets attribute of the helper configuration");var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(t)),i={},a=this.hierarchicalFacetsRefinements[t]!==void 0&&this.hierarchicalFacetsRefinements[t].length>0&&(this.hierarchicalFacetsRefinements[t][0]===r||this.hierarchicalFacetsRefinements[t][0].indexOf(r+n)===0);return a?r.indexOf(n)===-1?i[t]=[]:i[t]=[r.slice(0,r.lastIndexOf(n))]:i[t]=[r],this.setQueryParameters({hierarchicalFacetsRefinements:uf({},i,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw new Error(e+" is already refined.");if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var r={};return r[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:uf({},r,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))return this;var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:uf({},t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(t){return this.isTagRefined(t)?this.removeTagRefinement(t):this.addTagRefinement(t)},isDisjunctiveFacet:function(e){return this.disjunctiveFacets.indexOf(e)>-1},isHierarchicalFacet:function(e){return this.getHierarchicalFacetByName(e)!==void 0},isConjunctiveFacet:function(e){return this.facets.indexOf(e)>-1},isFacetRefined:function(t,r){return this.isConjunctiveFacet(t)?Tt.isRefined(this.facetsRefinements,t,r):!1},isExcludeRefined:function(t,r){return this.isConjunctiveFacet(t)?Tt.isRefined(this.facetsExcludes,t,r):!1},isDisjunctiveFacetRefined:function(t,r){return this.isDisjunctiveFacet(t)?Tt.isRefined(this.disjunctiveFacetsRefinements,t,r):!1},isHierarchicalFacetRefined:function(t,r){if(!this.isHierarchicalFacet(t))return!1;var n=this.getHierarchicalRefinement(t);return r?n.indexOf(r)!==-1:n.length>0},isNumericRefined:function(t,r,n){if(n===void 0&&r===void 0)return Boolean(this.numericRefinements[t]);var i=this.numericRefinements[t]&&this.numericRefinements[t][r]!==void 0;if(n===void 0||!i)return i;var a=cf(n),s=HN(this.numericRefinements[t][r],a)!==void 0;return i&&s},isTagRefined:function(t){return this.tagRefinements.indexOf(t)!==-1},getRefinedDisjunctiveFacets:function(){var t=this,r=zv(Object.keys(this.numericRefinements).filter(function(n){return Object.keys(t.numericRefinements[n]).length>0}),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter(function(n){return t.disjunctiveFacetsRefinements[n].length>0}).concat(r).concat(this.getRefinedHierarchicalFacets()).sort()},getRefinedHierarchicalFacets:function(){var t=this;return zv(this.hierarchicalFacets.map(function(r){return r.name}),Object.keys(this.hierarchicalFacetsRefinements).filter(function(r){return t.hierarchicalFacetsRefinements[r].length>0})).sort()},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter(function(t){return e.indexOf(t)===-1})},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var t=this.managedParameters,r={},n=this;return Object.keys(this).forEach(function(i){var a=n[i];t.indexOf(i)===-1&&a!==void 0&&(r[i]=a)}),r},setQueryParameter:function(t,r){if(this[t]===r)return this;var n={};return n[t]=r,this.setQueryParameters(n)},setQueryParameters:function(t){if(!t)return this;var r=xr.validate(this,t);if(r)throw r;var n=this,i=xr._parseNumbers(t),a=Object.keys(this).reduce(function(o,l){return o[l]=n[l],o},{}),s=Object.keys(i).reduce(function(o,l){var u=o[l]!==void 0,c=i[l]!==void 0;return u&&!c?Kv(o,[l]):(c&&(o[l]=i[l]),o)},a);return new this.constructor(s)},resetPage:function(){return this.page===void 0?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return typeof e.showParentLevel=="boolean"?e.showParentLevel:!0},getHierarchicalFacetByName:function(e){return _1(this.hierarchicalFacets,function(t){return t.name===e})},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),n=t.split(r);return n.map(function(i){return i.trim()})},toString:function(){return JSON.stringify(this,null,2)}};var S1=xr,UN=function(t){return Array.isArray(t)?t.filter(Boolean):[]},BN=function(t,r){if(!Array.isArray(t))return-1;for(var n=0;n1||!l?(a[0].push(o[0]),a[1].push(o[1]),a):(a[0].push(l[0]),a[1].push(l[1]),a)},[[],[]])};function qN(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=t!==void 0,a=t===null;if(!a&&e>t||n&&i||!r)return 1;if(!n&&e=r.length?l:r[o]==="desc"?-l:l}return a.index-s.index}),n.map(function(i){return i.value})}var x1=VN,YN=ZN,O1=gp,QN=cl,zN=P1,KN=x1,GN=O1.escapeFacetValue,XN=O1.unescapeFacetValue;function ZN(e){return function(r,n){var i=e.hierarchicalFacets[n],a=e.hierarchicalFacetsRefinements[i.name]&&e.hierarchicalFacetsRefinements[i.name][0]||"",s=e._getHierarchicalFacetSeparator(i),o=e._getHierarchicalRootPath(i),l=e._getHierarchicalShowParentLevel(i),u=zN(e._getHierarchicalFacetSortBy(i)),c=r.every(function(p){return p.exhaustive}),f=JN(u,s,o,l,a),d=r;return o&&(d=r.slice(o.split(s).length)),d.reduce(f,{name:e.hierarchicalFacets[n].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:c,data:null})}}function JN(e,t,r,n,i){return function(s,o,l){var u=s;if(l>0){var c=0;for(u=s;c-1})}function gi(e,t,r){var n=t[0]||{};this._rawResults=t;var i=this;Object.keys(n).forEach(function(f){i[f]=n[f]});var a=Gv({persistHierarchicalRootCount:!1},r);Object.keys(a).forEach(function(f){i[f]=a[f]}),this.processingTimeMS=t.reduce(function(f,d){return d.processingTimeMS===void 0?f:f+d.processingTimeMS},0),this.disjunctiveFacets=[],this.hierarchicalFacets=e.hierarchicalFacets.map(function(){return[]}),this.facets=[];var s=e.getRefinedDisjunctiveFacets(),o=Zv(e.facets),l=Zv(e.disjunctiveFacets),u=1,c=n.facets||{};Object.keys(c).forEach(function(f){var d=c[f],p=i4(e.hierarchicalFacets,f);if(p){var h=p.attributes.indexOf(f),m=bs(e.hierarchicalFacets,function(_){return _.name===p.name});i.hierarchicalFacets[m][h]={attribute:f,data:d,exhaustive:n.exhaustiveFacetsCount}}else{var v=e.disjunctiveFacets.indexOf(f)!==-1,g=e.facets.indexOf(f)!==-1,y;v&&(y=l[f],i.disjunctiveFacets[y]={name:f,data:d,exhaustive:n.exhaustiveFacetsCount},df(i.disjunctiveFacets[y],n.facets_stats,f)),g&&(y=o[f],i.facets[y]={name:f,data:d,exhaustive:n.exhaustiveFacetsCount},df(i.facets[y],n.facets_stats,f))}}),this.hierarchicalFacets=ff(this.hierarchicalFacets),s.forEach(function(f){var d=t[u],p=d&&d.facets?d.facets:{},h=e.getHierarchicalFacetByName(f);Object.keys(p).forEach(function(m){var v=p[m],g;if(h){g=bs(e.hierarchicalFacets,function(b){return b.name===h.name});var y=bs(i.hierarchicalFacets[g],function(b){return b.attribute===m});if(y===-1)return;i.hierarchicalFacets[g][y].data=Gv({},i.hierarchicalFacets[g][y].data,v)}else{g=l[m];var _=n.facets&&n.facets[m]||{};i.disjunctiveFacets[g]={name:m,data:Hu({},v,_),exhaustive:d.exhaustiveFacetsCount},df(i.disjunctiveFacets[g],d.facets_stats,m),e.disjunctiveFacetsRefinements[m]&&e.disjunctiveFacetsRefinements[m].forEach(function(b){!i.disjunctiveFacets[g].data[b]&&e.disjunctiveFacetsRefinements[m].indexOf(A1(b))>-1&&(i.disjunctiveFacets[g].data[b]=0)})}}),u++}),e.getRefinedHierarchicalFacets().forEach(function(f){var d=e.getHierarchicalFacetByName(f),p=e._getHierarchicalFacetSeparator(d),h=e.getHierarchicalRefinement(f);h.length===0||h[0].split(p).length<2||t.slice(u).forEach(function(m){var v=m&&m.facets?m.facets:{};Object.keys(v).forEach(function(g){var y=v[g],_=bs(e.hierarchicalFacets,function(A){return A.name===d.name}),b=bs(i.hierarchicalFacets[_],function(A){return A.attribute===g});if(b!==-1){var P={};if(h.length>0&&!i.persistHierarchicalRootCount){var k=h[0].split(p)[0];P[k]=i.hierarchicalFacets[_][b].data[k]}i.hierarchicalFacets[_][b].data=Hu(P,y,i.hierarchicalFacets[_][b].data)}}),u++})}),Object.keys(e.facetsExcludes).forEach(function(f){var d=e.facetsExcludes[f],p=o[f];i.facets[p]={name:f,data:c[f],exhaustive:n.exhaustiveFacetsCount},d.forEach(function(h){i.facets[p]=i.facets[p]||{name:f},i.facets[p].data=i.facets[p].data||{},i.facets[p].data[h]=0})}),this.hierarchicalFacets=this.hierarchicalFacets.map(n4(e)),this.facets=ff(this.facets),this.disjunctiveFacets=ff(this.disjunctiveFacets),this._state=e}gi.prototype.getFacetByName=function(e){function t(r){return r.name===e}return rn(this.facets,t)||rn(this.disjunctiveFacets,t)||rn(this.hierarchicalFacets,t)};function a4(e,t){function r(c){return c.name===t}if(e._state.isConjunctiveFacet(t)){var n=rn(e.facets,r);return n?Object.keys(n.data).map(function(c){var f=Xv(c);return{name:c,escapedValue:f,count:n.data[c],isRefined:e._state.isFacetRefined(t,f),isExcluded:e._state.isExcludeRefined(t,c)}}):[]}else if(e._state.isDisjunctiveFacet(t)){var i=rn(e.disjunctiveFacets,r);return i?Object.keys(i.data).map(function(c){var f=Xv(c);return{name:c,escapedValue:f,count:i.data[c],isRefined:e._state.isDisjunctiveFacetRefined(t,f)}}):[]}else if(e._state.isHierarchicalFacet(t)){var a=rn(e.hierarchicalFacets,r);if(!a)return a;var s=e._state.getHierarchicalFacetByName(t),o=e._state._getHierarchicalFacetSeparator(s),l=A1(e._state.getHierarchicalRefinement(t)[0]||"");l.indexOf(s.rootPath)===0&&(l=l.replace(s.rootPath+o,""));var u=l.split(o);return u.unshift(t),T1(a,u,0),a}}function T1(e,t,r){e.isRefined=e.name===(t[r]&&t[r].trim()),e.data&&e.data.forEach(function(n){T1(n,t,r+1)})}function k1(e,t,r,n){if(n=n||0,Array.isArray(t))return e(t,r[n]);if(!t.data||t.data.length===0)return t;var i=t.data.map(function(o){return k1(e,o,r,n+1)}),a=e(i,r[n]),s=Hu({data:a},t);return s}gi.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"];function s4(e,t){return t.sort(e)}function o4(e,t){var r=[],n=[],i=t.hide||[],a=t.order||[],s=a.reduce(function(u,c,f){return u[c]=f,u},{});e.forEach(function(u){var c=u.path||u.name,f=i.indexOf(c)>-1;!f&&s[c]!==void 0?r[s[c]]=u:f||n.push(u)}),r=r.filter(function(u){return u});var o=t.sortRemainingBy,l;return o==="hidden"?r:(o==="alpha"?l=[["path","name"],["asc","asc"]]:l=[["count"],["desc"]],r.concat(R1(n,l[0],l[1])))}function l4(e,t){return e.renderingContent&&e.renderingContent.facetOrdering&&e.renderingContent.facetOrdering.values&&e.renderingContent.facetOrdering.values[t]}gi.prototype.getFacetValues=function(e,t){var r=a4(this,e);if(!!r){var n=Hu({},t,{sortBy:gi.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),i=this,a;if(Array.isArray(r))a=[e];else{var s=i._state.getHierarchicalFacetByName(r.name);a=s.attributes}return k1(function(o,l){if(n.facetOrdering){var u=l4(i,l);if(u)return o4(o,u)}if(Array.isArray(n.sortBy)){var c=r4(n.sortBy,gi.DEFAULT_SORT);return R1(o,c[0],c[1])}else if(typeof n.sortBy=="function")return s4(n.sortBy,o);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")},r,a)}};gi.prototype.getFacetStats=function(e){if(this._state.isConjunctiveFacet(e))return Jv(this.facets,e);if(this._state.isDisjunctiveFacet(e))return Jv(this.disjunctiveFacets,e)};function Jv(e,t){var r=rn(e,function(n){return n.name===t});return r&&r.stats}gi.prototype.getRefinements=function(){var e=this._state,t=this,r=[];return Object.keys(e.facetsRefinements).forEach(function(n){e.facetsRefinements[n].forEach(function(i){r.push(hf(e,"facet",n,i,t.facets))})}),Object.keys(e.facetsExcludes).forEach(function(n){e.facetsExcludes[n].forEach(function(i){r.push(hf(e,"exclude",n,i,t.facets))})}),Object.keys(e.disjunctiveFacetsRefinements).forEach(function(n){e.disjunctiveFacetsRefinements[n].forEach(function(i){r.push(hf(e,"disjunctive",n,i,t.disjunctiveFacets))})}),Object.keys(e.hierarchicalFacetsRefinements).forEach(function(n){e.hierarchicalFacetsRefinements[n].forEach(function(i){r.push(u4(e,n,i,t.hierarchicalFacets))})}),Object.keys(e.numericRefinements).forEach(function(n){var i=e.numericRefinements[n];Object.keys(i).forEach(function(a){i[a].forEach(function(s){r.push({type:"numeric",attributeName:n,name:s,numericValue:s,operator:a})})})}),e.tagRefinements.forEach(function(n){r.push({type:"tag",attributeName:"_tags",name:n})}),r};function hf(e,t,r,n,i){var a=rn(i,function(l){return l.name===r}),s=a&&a.data&&a.data[n]?a.data[n]:0,o=a&&a.exhaustive||!1;return{type:t,attributeName:r,name:n,count:s,exhaustive:o}}function u4(e,t,r,n){var i=e.getHierarchicalFacetByName(t),a=e._getHierarchicalFacetSeparator(i),s=r.split(a),o=rn(n,function(d){return d.name===t}),l=s.reduce(function(d,p){var h=d&&rn(d.data,function(m){return m.name===p});return h!==void 0?h:d},o),u=l&&l.count||0,c=l&&l.exhaustive||!1,f=l&&l.path||"";return{type:"hierarchical",attributeName:t,name:f,count:u,exhaustive:c}}var C1=gi,c4=function(t){return t.reduce(function(r,n){return r.concat(n)},[])},f4=cl,d4=c4;function h4(e,t){var r=[];return Object.keys(e).forEach(function(n){e[n].count<2&&(e[n].indexSum+=100),r.push({objectID:n,avgOfIndices:e[n].indexSum/t})}),r.sort(function(n,i){return n.avgOfIndices>i.avgOfIndices?1:-1})}function p4(e){var t={};e.forEach(function(i){i.forEach(function(a,s){t[a.objectID]?t[a.objectID]={indexSum:t[a.objectID].indexSum+s,count:t[a.objectID].count+1}:t[a.objectID]={indexSum:s,count:1}})});var r=h4(t,e.length),n=r.reduce(function(i,a){var s=f4(d4(e),function(o){return o.objectID===a.objectID});return s?i.concat(s):i},[]);return n}var m4=p4,E1="3.22.5",v4=vp,g4=PN,y4=gp.escapeFacetValue,b4=g1,w4=bc,_4=bp,S4=wp,I1=y1,P4=b1,Xa=kN,Pp=S1,Sd=C1,x4=m4,D1=E1;function we(e,t,r,n){typeof e.addAlgoliaAgent=="function"&&e.addAlgoliaAgent("JS Helper ("+D1+")"),this.setClient(e);var i=r||{};i.index=t,this.state=Pp.make(i),this.recommendState=new I1({params:i.recommendState}),this.lastResults=null,this.lastRecommendResults=null,this._queryId=0,this._recommendQueryId=0,this._lastQueryIdReceived=-1,this._lastRecommendQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0,this._currentNbRecommendQueries=0,this._searchResultsOptions=n,this._recommendCache={}}b4(we,v4);we.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this};we.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this};we.prototype.recommend=function(){return this._recommend(),this};we.prototype.getQuery=function(){var e=this.state;return Xa._getHitsSearchParams(e)};we.prototype.searchOnce=function(e,t){var r=e?this.state.setQueryParameters(e):this.state,n=Xa._getQueries(r.index,r),i=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:r}),t){this.client.search(n).then(function(a){i._currentNbQueries--,i._currentNbQueries===0&&i.emit("searchQueueEmpty"),t(null,new Sd(r,a.results),r)}).catch(function(a){i._currentNbQueries--,i._currentNbQueries===0&&i.emit("searchQueueEmpty"),t(a,null,r)});return}return this.client.search(n).then(function(a){return i._currentNbQueries--,i._currentNbQueries===0&&i.emit("searchQueueEmpty"),{content:new Sd(r,a.results),state:r,_originalResponse:a}},function(a){throw i._currentNbQueries--,i._currentNbQueries===0&&i.emit("searchQueueEmpty"),a})};we.prototype.findAnswers=function(e){console.warn("[algoliasearch-helper] answers is no longer supported");var t=this.state,r=this.derivedHelpers[0];if(!r)return Promise.resolve([]);var n=r.getModifiedState(t),i=w4({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:S4(Xa._getHitsSearchParams(n),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),a="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(a);var s=this.client.initIndex(n.index);if(typeof s.findAnswers!="function")throw new Error(a);return s.findAnswers(n.query,e.queryLanguages,i)};we.prototype.searchForFacetValues=function(e,t,r,n){var i=typeof this.client.searchForFacetValues=="function"&&typeof this.client.searchForFacets!="function",a=typeof this.client.initIndex=="function";if(!i&&!a&&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(n||{}),o=s.isDisjunctiveFacet(e),l=Xa.getSearchForFacetQuery(e,t,r,s);this._currentNbQueries++;var u=this,c;return i?c=this.client.searchForFacetValues([{indexName:s.index,params:l}]):a?c=this.client.initIndex(s.index).searchForFacetValues(l):(delete l.facetName,c=this.client.search([{type:"facet",facet:e,indexName:s.index,params:l}]).then(function(d){return d.results[0]})),this.emit("searchForFacetValues",{state:s,facet:e,query:t}),c.then(function(d){return u._currentNbQueries--,u._currentNbQueries===0&&u.emit("searchQueueEmpty"),d=Array.isArray(d)?d[0]:d,d.facetHits.forEach(function(p){p.escapedValue=y4(p.value),p.isRefined=o?s.isDisjunctiveFacetRefined(e,p.escapedValue):s.isFacetRefined(e,p.escapedValue)}),d},function(f){throw u._currentNbQueries--,u._currentNbQueries===0&&u.emit("searchQueueEmpty"),f})};we.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this};we.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this};we.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this};we.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this};we.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)};we.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this};we.prototype.addNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,r),isPageReset:!0}),this};we.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this};we.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)};we.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this};we.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)};we.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this};we.prototype.addFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.addFrequentlyBoughtTogether(e)}),this};we.prototype.addRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.addRelatedProducts(e)}),this};we.prototype.addTrendingItems=function(e){return this._recommendChange({state:this.recommendState.addTrendingItems(e)}),this};we.prototype.addTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.addTrendingFacets(e)}),this};we.prototype.addLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.addLookingSimilar(e)}),this};we.prototype.removeNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,r),isPageReset:!0}),this};we.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this};we.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)};we.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this};we.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this};we.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)};we.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this};we.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)};we.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this};we.prototype.removeFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this};we.prototype.removeRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this};we.prototype.removeTrendingItems=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this};we.prototype.removeTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this};we.prototype.removeLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this};we.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this};we.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)};we.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)};we.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this};we.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)};we.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this};we.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)};we.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)};function j1(e){if(e<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}we.prototype.setCurrentPage=j1;we.prototype.setPage=j1;we.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this};we.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this};we.prototype.setState=function(e){return this._change({state:Pp.make(e),isPageReset:!1}),this};we.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new Pp(e),this};we.prototype.hasRefinements=function(e){return _4(this.state.getNumericRefinements(e))?!0:this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):this.state.isHierarchicalFacet(e)?this.state.isHierarchicalFacetRefined(e):!1};we.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)};we.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)};we.prototype.hasTag=function(e){return this.state.isTagRefined(e)};we.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)};we.prototype.getIndex=function(){return this.state.index};function F1(){return this.state.page}we.prototype.getCurrentPage=F1;we.prototype.getPage=F1;we.prototype.getTags=function(){return this.state.tagRefinements};we.prototype.getRefinements=function(e){var t=[];if(this.state.isConjunctiveFacet(e)){var r=this.state.getConjunctiveRefinements(e);r.forEach(function(s){t.push({value:s,type:"conjunctive"})});var n=this.state.getExcludeRefinements(e);n.forEach(function(s){t.push({value:s,type:"exclude"})})}else if(this.state.isDisjunctiveFacet(e)){var i=this.state.getDisjunctiveRefinements(e);i.forEach(function(s){t.push({value:s,type:"disjunctive"})})}var a=this.state.getNumericRefinements(e);return Object.keys(a).forEach(function(s){var o=a[s];t.push({value:o,operator:s,type:"numeric"})}),t};we.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)};we.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)};we.prototype._search=function(e){var t=this.state,r=[],n=[];e.onlyWithDerivedHelpers||(n=Xa._getQueries(t.index,t),r.push({state:t,queriesCount:n.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var i=this.derivedHelpers.map(function(o){var l=o.getModifiedState(t),u=l.index?Xa._getQueries(l.index,l):[];return r.push({state:l,queriesCount:u.length,helper:o}),o.emit("search",{state:l,results:o.lastResults}),u}),a=Array.prototype.concat.apply(n,i),s=this._queryId++;if(this._currentNbQueries++,!a.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,r,s));try{this.client.search(a).then(this._dispatchAlgoliaResponse.bind(this,r,s)).catch(this._dispatchAlgoliaError.bind(this,s))}catch(o){this.emit("error",{error:o})}};we.prototype._recommend=function(){var e=this.state,t=this.recommendState,r=this.getIndex(),n=[{state:t,index:r,helper:this}],i=t.params.map(function(u){return u.$$id});this.emit("fetch",{recommend:{state:t,results:this.lastRecommendResults}});var a=this._recommendCache,s=this.derivedHelpers.map(function(u){var c=u.getModifiedState(e).index;if(!c)return[];var f=u.getModifiedRecommendState(new I1);return n.push({state:f,index:c,helper:u}),i=Array.prototype.concat.apply(i,f.params.map(function(d){return d.$$id})),u.emit("fetch",{recommend:{state:f,results:u.lastRecommendResults}}),f._buildQueries(c,a)}),o=Array.prototype.concat.apply(this.recommendState._buildQueries(r,a),s);if(o.length!==0){if(o.length>0&&typeof this.client.getRecommendations>"u"){console.warn("Please update algoliasearch/lite to the latest version in order to use recommend widgets.");return}var l=this._recommendQueryId++;this._currentNbRecommendQueries++;try{this.client.getRecommendations(o).then(this._dispatchRecommendResponse.bind(this,l,n,i)).catch(this._dispatchRecommendError.bind(this,l))}catch(u){this.emit("error",{error:u})}}};we.prototype._dispatchAlgoliaResponse=function(e,t,r){var n=this;if(!(t0};we.prototype._change=function(e){var t=e.state,r=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:r}))};we.prototype._recommendChange=function(e){var t=e.state;t!==this.recommendState&&(this.recommendState=t,this.emit("recommend:change",{search:{results:this.lastResults,state:this.state},recommend:{results:this.lastRecommendResults,state:this.recommendState}}))};we.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this};we.prototype.setClient=function(e){return this.client===e?this:(typeof e.addAlgoliaAgent=="function"&&e.addAlgoliaAgent("JS Helper ("+D1+")"),this.client=e,this)};we.prototype.getClient=function(){return this.client};we.prototype.derive=function(e,t){var r=new g4(this,e,t);return this.derivedHelpers.push(r),r};we.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(t===-1)throw new Error("Derived helper already detached");this.derivedHelpers.splice(t,1)};we.prototype.hasPendingRequests=function(){return this._currentNbQueries>0};var O4=we,M1=O4,$4=y1,R4=b1,A4=S1,T4=C1;function ca(e,t,r,n){return new M1(e,t,r,n)}ca.version=E1;ca.AlgoliaSearchHelper=M1;ca.SearchParameters=A4;ca.RecommendParameters=$4;ca.SearchResults=T4;ca.RecommendResults=R4;var er=ca;function xo(e){return xo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xo(e)}function eg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bt(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:Ke,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ke;return function(n){if(!n||!a0(n.searchParameters))throw new Error(E4("The `searchParameters` option expects an object."));var i={};function a(s){return function(o){var l=tg(s.state,n),u=Ls(l,new er.SearchParameters(o));n.searchParameters=o,s.setState(u).search()}}return{$$type:"ais.configure",init:function(o){var l=o.instantSearchInstance;t(Bt(Bt({},this.getWidgetRenderState(o)),{},{instantSearchInstance:l}),!0)},render:function(o){var l=o.instantSearchInstance;t(Bt(Bt({},this.getWidgetRenderState(o)),{},{instantSearchInstance:l}),!1)},dispose:function(o){var l=o.state;return r(),tg(l,n)},getRenderState:function(o,l){var u,c=this.getWidgetRenderState(l);return Bt(Bt({},o),{},{configure:Bt(Bt({},c),{},{widgetParams:Bt(Bt({},c.widgetParams),{},{searchParameters:Ls(new er.SearchParameters((u=o.configure)===null||u===void 0?void 0:u.widgetParams.searchParameters),new er.SearchParameters(c.widgetParams.searchParameters)).getQueryParams()})})})},getWidgetRenderState:function(o){var l=o.helper;return i.refine||(i.refine=a(l)),{refine:i.refine,widgetParams:n}},getWidgetSearchParameters:function(o,l){var u=l.uiState;return Ls(o,new er.SearchParameters(Bt(Bt({},u.configure),n.searchParameters)))},getWidgetUiState:function(o){return Bt(Bt({},o),{},{configure:Bt(Bt({},o.configure),n.searchParameters)})}}}};const N1=I4;function Oo(e){return Oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oo(e)}function rg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pf(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r")}var U4=function(t,r){return function(n){var i=n||{},a=i.hit,s=i.matchingPatterns,o=i.transformSearchParameters,l=o===void 0?function(d){return d}:o;if(!a)throw new Error(ig("The `hit` option is required."));if(!s)throw new Error(ig("The `matchingPatterns` option is required."));var u=Object.keys(s).reduce(function(d,p){var h=s[p],m=ns(a,p),v=h.score;return Array.isArray(m)?[].concat(ng(d),[m.map(function(g){return ag({attributeName:p,attributeValue:g,attributeScore:v})})]):typeof m=="string"?[].concat(ng(d),[ag({attributeName:p,attributeValue:m,attributeScore:v})]):d},[]),c=pf({},l(new er.SearchParameters({sumOrFiltersScores:!0,facetFilters:["objectID:-".concat(a.objectID)],optionalFilters:u}))),f=N1(t,r);return pf(pf({},f({searchParameters:c})),{},{$$type:"ais.configureRelatedItems"})}};const B4=U4;function sg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ya(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:Ke;return Et(t,Ml()),function(n){var i=n.widgets,a=n.maxValuesPerFacet,s=a===void 0?20:a,o=n.facets,l=o===void 0?["*"]:o,u=n.transformItems,c=u===void 0?function(p){return p}:u,f=n.fallbackWidget;if(!(i&&Array.isArray(i)&&i.every(function(p){return Za(p)==="object"})))throw new Error(Ml("The `widgets` option expects an array of widgets."));if(!Array.isArray(l))throw new Error(Ml("The `facets` option only accepts an array of facets, you passed ".concat(JSON.stringify(l))));var d=new Map;return{$$type:"ais.dynamicWidgets",init:function(h){i.forEach(function(m){var v=P$(m,h);d.set(v,{widget:m,isMounted:!1})}),t(ya(ya({},this.getWidgetRenderState(h)),{},{instantSearchInstance:h.instantSearchInstance}),!0)},render:function(h){var m=h.parent,v=this.getWidgetRenderState(h),g=[],y=[];f&&v.attributesToRender.forEach(function(_){if(!d.has(_)){var b=f({attribute:_});d.set(_,{widget:b,isMounted:!1})}}),d.forEach(function(_,b){var P=_.widget,k=_.isMounted,A=v.attributesToRender.indexOf(b)>-1;!k&&A?(y.push(P),d.set(b,{widget:P,isMounted:!0})):k&&!A&&(g.push(P),d.set(b,{widget:P,isMounted:!1}))}),m.addWidgets(y),setTimeout(function(){return m.removeWidgets(g)},0),t(ya(ya({},v),{},{instantSearchInstance:h.instantSearchInstance}),!1)},dispose:function(h){var m=h.parent,v=[];d.forEach(function(g){var y=g.widget,_=g.isMounted;_&&v.push(y)}),m.removeWidgets(v),r()},getWidgetSearchParameters:function(h){return l.reduce(function(m,v){return m.addFacet(v)},h.setQueryParameters({maxValuesPerFacet:Math.max(s||0,h.maxValuesPerFacet||0)}))},getRenderState:function(h,m){return ya(ya({},h),{},{dynamicWidgets:this.getWidgetRenderState(m)})},getWidgetRenderState:function(h){var m,v,g,y,_=h.results;if(h.state,!_)return{attributesToRender:[],widgetParams:n};var b=c((m=(v=_.renderingContent)===null||v===void 0||(g=v.facetOrdering)===null||g===void 0||(y=g.facets)===null||y===void 0?void 0:y.order)!==null&&m!==void 0?m:[],{results:_});if(!Array.isArray(b))throw new Error(Ml("The `transformItems` option expects a function that returns an Array."));return{attributesToRender:b,widgetParams:n}}}}};const H1=Y4;function $o(e){return $o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$o(e)}function Q4(e){return X4(e)||G4(e)||K4(e)||z4()}function z4(){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 K4(e,t){if(!!e){if(typeof e=="string")return xd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xd(e,t)}}function G4(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function X4(e){if(Array.isArray(e))return xd(e)}function xd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:Ke;return Et(t,lg()),function(n){var i=n||{},a=i.includedAttributes,s=a===void 0?[]:a,o=i.excludedAttributes,l=o===void 0?["query"]:o,u=i.transformItems,c=u===void 0?function(h){return h}:u;if(n&&n.includedAttributes&&n.excludedAttributes)throw new Error(lg("The options `includedAttributes` and `excludedAttributes` cannot be used together."));var f={refine:Ke,createURL:function(){return""},attributesToClear:[]},d=function(){return f.refine()},p=function(){return f.createURL()};return{$$type:"ais.clearRefinements",init:function(m){var v=m.instantSearchInstance;t(ba(ba({},this.getWidgetRenderState(m)),{},{instantSearchInstance:v}),!0)},render:function(m){var v=m.instantSearchInstance;t(ba(ba({},this.getWidgetRenderState(m)),{},{instantSearchInstance:v}),!1)},dispose:function(){r()},getRenderState:function(m,v){return ba(ba({},m),{},{clearRefinements:this.getWidgetRenderState(v)})},getWidgetRenderState:function(m){var v=m.createURL,g=m.scopedResults,y=m.results;f.attributesToClear=g.reduce(function(b,P){return b.concat(rH({scopedResult:P,includedAttributes:s,excludedAttributes:l,transformItems:c,results:y}))},[]),f.refine=function(){f.attributesToClear.forEach(function(b){var P=b.helper,k=b.items;P.setState(ym({helper:P,attributesToClear:k})).search()})},f.createURL=function(){return v(Ls.apply(void 0,Q4(f.attributesToClear.map(function(b){var P=b.helper,k=b.items;return ym({helper:P,attributesToClear:k})}))))};var _=f.attributesToClear.some(function(b){return b.items.length>0});return{canRefine:_,hasRefinements:_,refine:d,createURL:p,widgetParams:n}}}}};function rH(e){var t=e.scopedResult,r=e.includedAttributes,n=e.excludedAttributes,i=e.transformItems,a=e.results,s=r.indexOf("query")!==-1||n.indexOf("query")===-1;return{helper:t.helper,items:i(mh(dh(t.results,t.helper.state,s).map(function(o){return o.attribute}).filter(function(o){return r.length===0||r.indexOf(o)!==-1}).filter(function(o){return o==="query"&&s||n.indexOf(o)===-1})),{results:a})}}const nH=tH;function Ro(e){return Ro=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ro(e)}function iH(e){return lH(e)||oH(e)||sH(e)||aH()}function aH(){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 sH(e,t){if(!!e){if(typeof e=="string")return Od(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Od(e,t)}}function oH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lH(e){if(Array.isArray(e))return Od(e)}function Od(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:Ke;return Et(t,cg()),function(n){if((n||{}).includedAttributes&&(n||{}).excludedAttributes)throw new Error(cg("The options `includedAttributes` and `excludedAttributes` cannot be used together."));var i=n||{},a=i.includedAttributes,s=i.excludedAttributes,o=s===void 0?["query"]:s,l=i.transformItems,u=l===void 0?function(c){return c}:l;return{$$type:"ais.currentRefinements",init:function(f){var d=f.instantSearchInstance;t(wa(wa({},this.getWidgetRenderState(f)),{},{instantSearchInstance:d}),!0)},render:function(f){var d=f.instantSearchInstance;t(wa(wa({},this.getWidgetRenderState(f)),{},{instantSearchInstance:d}),!1)},dispose:function(){r()},getRenderState:function(f,d){return wa(wa({},f),{},{currentRefinements:this.getWidgetRenderState(d)})},getWidgetRenderState:function(f){var d=f.results,p=f.scopedResults,h=f.createURL,m=f.helper;function v(){return d?p.reduce(function(y,_){return y.concat(u(fg({results:_.results,helper:_.helper,indexId:_.indexId,includedAttributes:a,excludedAttributes:o}),{results:d}))},[]):u(fg({results:{},helper:m,indexId:m.state.index,includedAttributes:a,excludedAttributes:o}),{results:d})}var g=v();return{items:g,canRefine:g.length>0,refine:function(_){return B1(m,_)},createURL:function(_){return h(U1(m.state,_))},widgetParams:n}}}}};function fg(e){var t=e.results,r=e.helper,n=e.indexId,i=e.includedAttributes,a=e.excludedAttributes,s=(i||[]).indexOf("query")!==-1||(a||[]).indexOf("query")===-1,o=i?function(u){return i.indexOf(u.attribute)!==-1}:function(u){return a.indexOf(u.attribute)===-1},l=dh(t,r.state,s).map(pH).filter(o);return l.reduce(function(u,c){return[].concat(iH(u.filter(function(f){return f.attribute!==c.attribute})),[{indexName:r.state.index,indexId:n,attribute:c.attribute,label:c.attribute,refinements:l.filter(function(f){return f.attribute===c.attribute}).sort(function(f,d){return f.type==="numeric"?f.value-d.value:0}),refine:function(d){return B1(r,d)}}])},[])}function U1(e,t){switch(e=e.resetPage(),t.type){case"facet":return e.removeFacetRefinement(t.attribute,String(t.value));case"disjunctive":return e.removeDisjunctiveFacetRefinement(t.attribute,String(t.value));case"hierarchical":return e.removeHierarchicalFacetRefinement(t.attribute);case"exclude":return e.removeExcludeRefinement(t.attribute,String(t.value));case"numeric":return e.removeNumericRefinement(t.attribute,t.operator,String(t.value));case"tag":return e.removeTagRefinement(String(t.value));case"query":return e.setQueryParameter("query","");default:return e}}function B1(e,t){e.setState(U1(e.state,t)).search()}function hH(e){switch(e){case">=":return"\u2265";case"<=":return"\u2264";default:return e}}function pH(e){var t=mH(e),r=e.operator?"".concat(hH(e.operator)," ").concat(e.name):e.name,n={attribute:e.attribute,type:e.type,value:t,label:r};return e.operator!==void 0&&(n.operator=e.operator),e.count!==void 0&&(n.count=e.count),e.exhaustive!==void 0&&(n.exhaustive=e.exhaustive),n}function mH(e){return e.type==="numeric"?Number(e.name):"escapedValue"in e?e.escapedValue:e.name}const vH=dH;function Ao(e){return Ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ao(e)}var gH=["name","escapedValue","data","path"];function dg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xt(e){for(var t=1;t=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(r[n]=e[n]))}return r}function _H(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function SH(e,t){return $H(e)||OH(e,t)||xH(e,t)||PH()}function PH(){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 xH(e,t){if(!!e){if(typeof e=="string")return hg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hg(e,t)}}function hg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:Ke;return Et(t,mf()),function(n){var i=n||{},a=i.attributes,s=i.separator,o=s===void 0?" > ":s,l=i.rootPath,u=l===void 0?null:l,c=i.showParentLevel,f=c===void 0?!0:c,d=i.limit,p=d===void 0?10:d,h=i.showMore,m=h===void 0?!1:h,v=i.showMoreLimit,g=v===void 0?20:v,y=i.sortBy,_=y===void 0?pg:y,b=i.transformItems,P=b===void 0?function(j){return j}:b;if(!a||!Array.isArray(a)||a.length===0)throw new Error(mf("The `attributes` option expects an array of strings."));if(m===!0&&g<=p)throw new Error(mf("The `showMoreLimit` option must be greater than `limit`."));var k=SH(a,1),A=k[0],U,F=function(){};function x(){F()}var I,M=!1;function Z(j,D){return function(){M=!M,D.render(j)}}function B(){return M?g:p}function R(j){return j.slice(0,B()).map(function(D){var L=D.name,$=D.escapedValue,w=D.data;D.path;var Y=wH(D,gH),X=Xt(Xt({},Y),{},{value:$,label:L,data:null});return Array.isArray(w)&&(X.data=R(w)),X})}return{$$type:"ais.hierarchicalMenu",init:function(D){var L=D.instantSearchInstance;t(Xt(Xt({},this.getWidgetRenderState(D)),{},{instantSearchInstance:L}),!0)},render:function(D){var L=D.instantSearchInstance;F=Z(D,this),t(Xt(Xt({},this.getWidgetRenderState(D)),{},{instantSearchInstance:L}),!1)},dispose:function(D){var L=D.state;return r(),L.removeHierarchicalFacet(A).setQueryParameter("maxValuesPerFacet",void 0)},getRenderState:function(D,L){return Xt(Xt({},D),{},{hierarchicalMenu:Xt(Xt({},D.hierarchicalMenu),{},ru({},A,this.getWidgetRenderState(L)))})},getWidgetRenderState:function(D){var L=this,$=D.results,w=D.state,Y=D.createURL,X=D.instantSearchInstance,ae=D.helper,oe=[],ee=!1,V=function(G){return Y(function(Q){return L.getWidgetUiState(Q,{searchParameters:w.resetPage().toggleFacetRefinement(A,G),helper:ae})})};if(U||(U=uh({instantSearchInstance:X,helper:ae,attribute:function(G){var Q=G.split(o).length-1;return a[Q]},widgetType:this.$$type})),I||(I=function(G){U("click:internal",G),ae.toggleFacetRefinement(A,G).search()}),$){var K=$.getFacetValues(A,{sortBy:_,facetOrdering:_===pg}),H=K&&!Array.isArray(K)&&K.data?K.data:[],E=(w.maxValuesPerFacet||0)>B()?H.length<=B():H.length0,createURL:V,sendEvent:U,widgetParams:n,isShowingMore:M,toggleShowMore:x,canToggleShowMore:ee}},getWidgetUiState:function(D,L){var $=L.searchParameters,w=$.getHierarchicalFacetBreadcrumb(A);return AH(Xt(Xt({},D),{},{hierarchicalMenu:Xt(Xt({},D.hierarchicalMenu),{},ru({},A,w))}),A)},getWidgetSearchParameters:function(D,L){var $=L.uiState,w=$.hierarchicalMenu&&$.hierarchicalMenu[A];if(D.isConjunctiveFacet(A)||D.isDisjunctiveFacet(A))return D;D.isHierarchicalFacet(A)&&D.getHierarchicalFacetByName(A);var Y=D.removeHierarchicalFacet(A).addHierarchicalFacet({name:A,attributes:a,separator:o,rootPath:u,showParentLevel:f}),X=Y.maxValuesPerFacet||0,ae=Math.max(X,m?g:p),oe=Y.setQueryParameter("maxValuesPerFacet",ae);return w?oe.addHierarchicalFacetRefinement(A,w.join(o)):oe.setQueryParameters({hierarchicalFacetsRefinements:Xt(Xt({},oe.hierarchicalFacetsRefinements),{},ru({},A,[]))})}}}};function AH(e,t){return e.hierarchicalMenu&&((!e.hierarchicalMenu[t]||e.hierarchicalMenu[t].length===0)&&delete e.hierarchicalMenu[t],Object.keys(e.hierarchicalMenu).length===0&&delete e.hierarchicalMenu),e}const TH=RH;function To(e){return To=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},To(e)}function mg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zn(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:Ke;return Et(t,EH()),function(n){var i=n||{},a=i.escapeHTML,s=a===void 0?!0:a,o=i.transformItems,l=o===void 0?function(f){return f}:o,u,c;return{$$type:"ais.hits",init:function(d){t(Zn(Zn({},this.getWidgetRenderState(d)),{},{instantSearchInstance:d.instantSearchInstance}),!0)},render:function(d){var p=this.getWidgetRenderState(d);t(Zn(Zn({},p),{},{instantSearchInstance:d.instantSearchInstance}),!1),p.sendEvent("view:internal",p.items)},getRenderState:function(d,p){return Zn(Zn({},d),{},{hits:this.getWidgetRenderState(p)})},getWidgetRenderState:function(d){var p,h,m,v=d.results,g=d.helper,y=d.instantSearchInstance;if(u||(u=ch({instantSearchInstance:y,getIndex:function(){return g.getIndex()},widgetType:this.$$type})),c||(c=f0({getIndex:function(){return g.getIndex()},widgetType:this.$$type,instantSearchInstance:y})),!v)return{hits:[],items:[],results:void 0,banner:void 0,sendEvent:u,bindEvent:c,widgetParams:n};s&&v.hits.length>0&&(v.hits=sc(v.hits));var _=hh(v.hits,v.page,v.hitsPerPage),b=ph(_,v.queryID),P=l(b,{results:v}),k=(p=v.renderingContent)===null||p===void 0||(h=p.widgets)===null||h===void 0||(m=h.banners)===null||m===void 0?void 0:m[0];return{hits:P,items:P,results:v,banner:k,sendEvent:u,bindEvent:c,widgetParams:n}},dispose:function(d){var p=d.state;return r(),s?p.setQueryParameters(Object.keys(Tn).reduce(function(h,m){return Zn(Zn({},h),{},W1({},m,void 0))},{})):p},getWidgetSearchParameters:function(d,p){return s?d.setQueryParameters(Tn):d}}}};function ko(e){return ko=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ko(e)}function vg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Uu(e){for(var t=1;t"u")throw new Error('Could not find objectID "'.concat(n,'" passed to `clickedObjectIDsAfterSearch` in the returned hits. This is necessary to infer the absolute position and the query ID.'));return i})},LH=function(t){var r=mh(t.map(function(i){return i.__queryID}));if(r.length>1)throw new Error("Insights currently allows a single `queryID`. The `objectIDs` provided map to multiple `queryID`s.");var n=r[0];if(typeof n!="string")throw new Error("Could not infer `queryID`. Ensure InstantSearch `clickAnalytics: true` was added with the Configure widget.\n\nSee: https://alg.li/lNiZZ7");return n},NH=function(t){return t.map(function(r){return r.__position})},HH=function(t){var r=t.method,n=t.results,i=t.hits,a=t.objectIDs,s=n.index,o=MH(i,a),l=LH(o);switch(r){case"clickedObjectIDsAfterSearch":{var u=NH(o);return{index:s,queryID:l,objectIDs:a,positions:u}}case"convertedObjectIDsAfterSearch":return{index:s,queryID:l,objectIDs:a};default:throw new Error('Unsupported method passed to insights: "'.concat(r,'".'))}},UH=function(t,r,n){return function(i){for(var a=arguments.length,s=new Array(a>1?a-1:0),o=1;oe.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:Ke;return Et(t,Ll()),function(n){var i=n||{},a=i.items,s=i.transformItems,o=s===void 0?function(p){return p}:s;if(!Array.isArray(a))throw new Error(Ll("The `items` option expects an array of objects."));var l=a,u=l.filter(function(p){return p.default===!0});if(u.length===0)throw new Error(Ll("A default value must be specified in `items`."));if(u.length>1)throw new Error(Ll("More than one default value is specified in `items`."));var c=u[0],f=function(h){var m=h.hitsPerPage;return l.map(function(v){return dn(dn({},v),{},{isRefined:Number(v.value)===Number(m)})})},d={getRefine:function(h){return function(m){return!m&&m!==0?h.setQueryParameter("hitsPerPage",void 0).search():h.setQueryParameter("hitsPerPage",m).search()}},createURLFactory:function(h){var m=h.state,v=h.createURL,g=h.getWidgetUiState,y=h.helper;return function(_){return v(function(b){return g(b,{searchParameters:m.resetPage().setQueryParameter("hitsPerPage",!_&&_!==0?void 0:_),helper:y})})}}};return{$$type:"ais.hitsPerPage",init:function(h){var m=h.state,v=h.instantSearchInstance,g=l.some(function(y){return Number(m.hitsPerPage)===Number(y.value)});g||(l=[{value:"",label:""}].concat(qH(l))),t(dn(dn({},this.getWidgetRenderState(h)),{},{instantSearchInstance:v}),!0)},render:function(h){var m=h.instantSearchInstance;t(dn(dn({},this.getWidgetRenderState(h)),{},{instantSearchInstance:m}),!1)},dispose:function(h){var m=h.state;return r(),m.setQueryParameter("hitsPerPage",void 0)},getRenderState:function(h,m){return dn(dn({},h),{},{hitsPerPage:this.getWidgetRenderState(m)})},getWidgetRenderState:function(h){var m=h.state,v=h.results,g=h.createURL,y=h.helper,_=v?v.nbHits>0:!1;return{items:o(f(m),{results:v}),refine:d.getRefine(y),createURL:d.createURLFactory({state:m,createURL:g,getWidgetUiState:this.getWidgetUiState,helper:y}),hasNoResults:!_,canRefine:_,widgetParams:n}},getWidgetUiState:function(h,m){var v=m.searchParameters,g=v.hitsPerPage;return g===void 0||g===c.value?h:dn(dn({},h),{},{hitsPerPage:g})},getWidgetSearchParameters:function(h,m){var v=m.uiState;return h.setQueryParameters({hitsPerPage:v.hitsPerPage||c.value})}}}};const JH=ZH;function Eo(e){return Eo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eo(e)}var e8=["page"],t8=["clickAnalytics","userToken"];function yg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fr(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(r[n]=e[n]))}return r}function l8(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var u8=wt({name:"infinite-hits",connector:!0});function wg(e){var t=e||{};t.page;var r=Y1(t,e8);return r}function Nl(e){var t=e||{};t.clickAnalytics,t.userToken;var r=Y1(t,t8);return r}function c8(){var e=null,t=null;return{read:function(n){var i=n.state;return rl(t,wg(i))?e:null},write:function(n){var i=n.state,a=n.hits;t=wg(i),e=a}}}function f8(e){return Object.keys(e).map(Number).sort(function(t,r){return t-r}).reduce(function(t,r){return t.concat(e[r])},[])}const d8=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ke;return Et(t,u8()),function(n){var i=n||{},a=i.escapeHTML,s=a===void 0?!0:a,o=i.transformItems,l=o===void 0?function(_){return _}:o,u=i.cache,c=u===void 0?c8():u,f,d,p,h,m=function(b,P){var k=b.page,A=k===void 0?0:k,U=Object.keys(P).map(Number);return U.length===0?A:Math.min.apply(Math,[A].concat(bg(U)))},v=function(b,P){var k=b.page,A=k===void 0?0:k,U=Object.keys(P).map(Number);return U.length===0?A:Math.max.apply(Math,[A].concat(bg(U)))},g=function(b){return function(){b.overrideStateWithoutTriggeringChangeEvent(Fr(Fr({},b.state),{},{page:m(b.state,c.read({state:Nl(b.state)})||{})-1})).searchWithoutTriggeringOnStateChange()}},y=function(b){return function(){b.setPage(v(b.state,c.read({state:Nl(b.state)})||{})+1).search()}};return{$$type:"ais.infiniteHits",init:function(b){t(Fr(Fr({},this.getWidgetRenderState(b)),{},{instantSearchInstance:b.instantSearchInstance}),!0)},render:function(b){var P=b.instantSearchInstance,k=this.getWidgetRenderState(b);t(Fr(Fr({},k),{},{instantSearchInstance:P}),!1),p("view:internal",k.currentPageHits)},getRenderState:function(b,P){return Fr(Fr({},b),{},{infiniteHits:this.getWidgetRenderState(P)})},getWidgetRenderState:function(b){var P,k,A,U=b.results,F=b.helper,x=b.parent,I=b.state,M=b.instantSearchInstance,Z,B=[],R=x.getPreviousState()||I,j=c.read({state:Nl(R)})||{},D=U==null||(P=U.renderingContent)===null||P===void 0||(k=P.widgets)===null||k===void 0||(A=k.banners)===null||A===void 0?void 0:A[0];if(!U)f=g(F),d=y(F),p=ch({instantSearchInstance:M,getIndex:function(){return F.getIndex()},widgetType:this.$$type}),h=f0({getIndex:function(){return F.getIndex()},widgetType:this.$$type,instantSearchInstance:M}),Z=R.page===void 0||m(R,j)===0;else{var L,$,w=R.page,Y=w===void 0?0:w;s&&U.hits.length>0&&(U.hits=sc(U.hits));var X=hh(U.hits,U.page,U.hitsPerPage),ae=ph(X,U.queryID),oe=l(ae,{results:U}),ee=!1;h0(M.mainIndex,function(E){!ee&&E.getWidgets().some(function(q){var G=q.$$type;return G==="ais.dynamicWidgets"})&&(ee=!0)});var V=!((L=R.disjunctiveFacets)!==null&&L!==void 0&&L.length)&&!(R.facets||[]).filter(function(E){return E!=="*"}).length&&!(($=R.hierarchicalFacets)!==null&&$!==void 0&&$.length);j[Y]===void 0&&!U.__isArtificial&&M.status==="idle"&&!(ee&&V)&&(j[Y]=oe,c.write({state:Nl(R),hits:j})),B=oe,Z=m(R,j)===0}var K=f8(j),H=U?U.nbPages<=v(R,j)+1:!0;return{hits:K,items:K,currentPageHits:B,sendEvent:p,bindEvent:h,banner:D,results:U,showPrevious:f,showMore:d,isFirstPage:Z,isLastPage:H,widgetParams:n}},dispose:function(b){var P=b.state;r();var k=P.setQueryParameter("page",void 0);return s?k.setQueryParameters(Object.keys(Tn).reduce(function(A,U){return Fr(Fr({},A),{},V1({},U,void 0))},{})):k},getWidgetUiState:function(b,P){var k=P.searchParameters,A=k.page||0;return A?Fr(Fr({},b),{},{page:A+1}):b},getWidgetSearchParameters:function(b,P){var k=P.uiState,A=b;s&&(A=b.setQueryParameters(Tn));var U=k.page?k.page-1:0;return A.setQueryParameter("page",U)}}}};var h8=q1(d8);const p8=h8;var m8=["name","escapedValue","path"];function Io(e){return Io=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Io(e)}function v8(e,t){if(e==null)return{};var r=g8(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(r[n]=e[n]))}return r}function g8(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function _g(e,t){return _8(e)||w8(e,t)||b8(e,t)||y8()}function y8(){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 b8(e,t){if(!!e){if(typeof e=="string")return Sg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sg(e,t)}}function Sg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:Ke;return Et(t,vf()),function(n){var i=n||{},a=i.attribute,s=i.limit,o=s===void 0?10:s,l=i.showMore,u=l===void 0?!1:l,c=i.showMoreLimit,f=c===void 0?20:c,d=i.sortBy,p=d===void 0?xg:d,h=i.transformItems,m=h===void 0?function(U){return U}:h;if(!a)throw new Error(vf("The `attribute` option is required."));if(u===!0&&f<=o)throw new Error(vf("The `showMoreLimit` option must be greater than `limit`."));var v,g,y,_=!1,b=function(){};function P(U,F){return function(){_=!_,F.render(U)}}function k(){b()}function A(){return _?f:o}return{$$type:"ais.menu",init:function(F){var x=F.instantSearchInstance;t(Zt(Zt({},this.getWidgetRenderState(F)),{},{instantSearchInstance:x}),!0)},render:function(F){var x=F.instantSearchInstance;t(Zt(Zt({},this.getWidgetRenderState(F)),{},{instantSearchInstance:x}),!1)},dispose:function(F){var x=F.state;return r(),x.removeHierarchicalFacet(a).setQueryParameter("maxValuesPerFacet",void 0)},getRenderState:function(F,x){return Zt(Zt({},F),{},{menu:Zt(Zt({},F.menu),{},nu({},a,this.getWidgetRenderState(x)))})},getWidgetRenderState:function(F){var x=this,I=F.results,M=F.createURL,Z=F.instantSearchInstance,B=F.helper,R=[],j=!1;if(v||(v=uh({instantSearchInstance:Z,helper:B,attribute:a,widgetType:this.$$type})),g||(g=function(w){return M(function(Y){return x.getWidgetUiState(Y,{searchParameters:B.state.resetPage().toggleFacetRefinement(a,w),helper:B})})}),y||(y=function(w){var Y=B.getHierarchicalFacetBreadcrumb(a),X=_g(Y,1),ae=X[0];v("click:internal",w||ae),B.toggleFacetRefinement(a,w||ae).search()}),F.results&&(b=P(F,this)),I){var D=I.getFacetValues(a,{sortBy:p,facetOrdering:p===xg}),L=D&&!Array.isArray(D)&&D.data?D.data:[];j=u&&(_||L.length>A()),R=m(L.slice(0,A()).map(function($){var w=$.name,Y=$.escapedValue;$.path;var X=v8($,m8);return Zt(Zt({},X),{},{label:w,value:Y})}),{results:I})}return{items:R,createURL:g,refine:y,sendEvent:v,canRefine:R.length>0,widgetParams:n,isShowingMore:_,toggleShowMore:k,canToggleShowMore:j}},getWidgetUiState:function(F,x){var I=x.searchParameters,M=I.getHierarchicalFacetBreadcrumb(a),Z=_g(M,1),B=Z[0];return O8(Zt(Zt({},F),{},{menu:Zt(Zt({},F.menu),{},nu({},a,B))}),a)},getWidgetSearchParameters:function(F,x){var I=x.uiState,M=I.menu&&I.menu[a];if(F.isConjunctiveFacet(a)||F.isDisjunctiveFacet(a))return F;var Z=F.removeHierarchicalFacet(a).addHierarchicalFacet({name:a,attributes:[a]}),B=Z.maxValuesPerFacet||0,R=Math.max(B,u?f:o),j=Z.setQueryParameter("maxValuesPerFacet",R);return M?j.addHierarchicalFacetRefinement(a,M):j.setQueryParameters({hierarchicalFacetsRefinements:Zt(Zt({},j.hierarchicalFacetsRefinements),{},nu({},a,[]))})}}}};function O8(e,t){return e.menu&&(e.menu[t]===void 0&&delete e.menu[t],Object.keys(e.menu).length===0&&delete e.menu),e}const Q1=x8;function Do(e){return Do=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Do(e)}function $8(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=z1(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,s=!1,o;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return a=u.done,u},e:function(u){s=!0,o=u},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(s)throw o}}}}function R8(e,t){return k8(e)||T8(e,t)||z1(e,t)||A8()}function A8(){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 z1(e,t){if(!!e){if(typeof e=="string")return Og(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Og(e,t)}}function Og(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:Ke;return Et(t,gf()),function(n){var i=n||{},a=i.attribute,s=a===void 0?"":a,o=i.items,l=o===void 0?[]:o,u=i.transformItems,c=u===void 0?function(p){return p}:u;if(s==="")throw new Error(gf("The `attribute` option is required."));if(!l||l.length===0)throw new Error(gf("The `items` option expects an array of objects."));var f=function(h){return l.map(function(m){var v=m.start,g=m.end,y=m.label;return{label:y,value:encodeURI(JSON.stringify({start:v,end:g})),isRefined:K1(h,s,{start:v,end:g,label:y})}})},d={};return{$$type:I8,init:function(h){var m=h.instantSearchInstance;t(Ut(Ut({},this.getWidgetRenderState(h)),{},{instantSearchInstance:m}),!0)},render:function(h){var m=h.instantSearchInstance;t(Ut(Ut({},this.getWidgetRenderState(h)),{},{instantSearchInstance:m}),!1)},dispose:function(h){var m=h.state;return r(),m.removeNumericRefinement(s)},getWidgetUiState:function(h,m){var v=m.searchParameters,g=v.getNumericRefinements(s),y=g["="]&&g["="][0];if(y||y===0)return Ut(Ut({},h),{},{numericMenu:Ut(Ut({},h.numericMenu),{},Ts({},s,"".concat(g["="])))});var _=g[">="]&&g[">="][0]||"",b=g["<="]&&g["<="][0]||"";return F8(Ut(Ut({},h),{},{numericMenu:Ut(Ut({},h.numericMenu),{},Ts({},s,"".concat(_,":").concat(b)))}),s)},getWidgetSearchParameters:function(h,m){var v=m.uiState,g=v.numericMenu&&v.numericMenu[s],y=h.setQueryParameters({numericRefinements:Ut(Ut({},h.numericRefinements),{},Ts({},s,{}))});if(!g)return y;var _=g.indexOf(":")===-1;if(_)return y.addNumericRefinement(s,"=",Number(g));var b=g.split(":").map(parseFloat),P=R8(b,2),k=P[0],A=P[1],U=vt(k)?y.addNumericRefinement(s,">=",k):y,F=vt(A)?U.addNumericRefinement(s,"<=",A):U;return F},getRenderState:function(h,m){return Ut(Ut({},h),{},{numericMenu:Ut(Ut({},h.numericMenu),{},Ts({},s,this.getWidgetRenderState(m)))})},getWidgetRenderState:function(h){var m=this,v=h.results,g=h.state,y=h.instantSearchInstance,_=h.helper,b=h.createURL;d.refine||(d.refine=function(I){var M=Rg(_.state,s,I);d.sendEvent("click:internal",I),_.setState(M).search()}),d.createURL||(d.createURL=function(I){return function(M){return b(function(Z){return m.getWidgetUiState(Z,{searchParameters:Rg(I,s,M),helper:_})})}}),d.sendEvent||(d.sendEvent=D8({instantSearchInstance:y}));var P=v?v.nbHits===0:!0,k=f(g),A=!0,U=$8(k),F;try{for(U.s();!(F=U.n()).done;){var x=F.value;if(x.isRefined&&decodeURI(x.value)!=="{}"){A=!1;break}}}catch(I){U.e(I)}finally{U.f()}return{createURL:d.createURL(g),items:c(k,{results:v}),hasNoResults:P,canRefine:!(P&&A),refine:d.refine,sendEvent:d.sendEvent,widgetParams:n}}}}};function K1(e,t,r){var n=e.getNumericRefinements(t);return r.start!==void 0&&r.end!==void 0?r.start===r.end?di(n,"=",r.start):di(n,">=",r.start)&&di(n,"<=",r.end):r.start!==void 0?di(n,">=",r.start):r.end!==void 0?di(n,"<=",r.end):r.start===void 0&&r.end===void 0?Object.keys(n).every(function(i){return(n[i]||[]).length===0}):!1}function Rg(e,t,r){var n=e,i=JSON.parse(decodeURI(r)),a=n.getNumericRefinements(t);if(i.start===void 0&&i.end===void 0)return n.removeNumericRefinement(t);if(K1(n,t,i)||(n=n.removeNumericRefinement(t)),i.start!==void 0&&i.end!==void 0){if(i.start>i.end)throw new Error("option.start should be > to option.end");if(i.start===i.end)return di(a,"=",i.start)?n=n.removeNumericRefinement(t,"=",i.start):n=n.addNumericRefinement(t,"=",i.start),n}return i.start!==void 0&&(di(a,">=",i.start)&&(n=n.removeNumericRefinement(t,">=",i.start)),n=n.addNumericRefinement(t,">=",i.start)),i.end!==void 0&&(di(a,"<=",i.end)&&(n=n.removeNumericRefinement(t,"<=",i.end)),n=n.addNumericRefinement(t,"<=",i.end)),typeof n.page=="number"&&(n.page=0),n}function di(e,t,r){return e[t]!==void 0&&e[t].includes(r)}function F8(e,t){return e.numericMenu&&(e.numericMenu[t]===":"&&delete e.numericMenu[t],Object.keys(e.numericMenu).length===0&&delete e.numericMenu),e}const M8=j8;function jo(e){return jo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jo(e)}function L8(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ag(e,t){for(var r=0;r=i-n?a-(i-r):n}},{key:"isLastPage",value:function(){return this.currentPage>=this.total-1}},{key:"isFirstPage",value:function(){return this.currentPage<=0}}]),e}();const B8=U8;function Fo(e){return Fo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fo(e)}function Tg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hn(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:Ke;return Et(t,Y8()),function(n){var i=n||{},a=i.totalPages,s=i.padding,o=s===void 0?3:s,l=new B8({currentPage:0,total:0,padding:o}),u={};function c(f){var d=f.nbPages;return a!==void 0?Math.min(a,d):d}return{$$type:"ais.pagination",init:function(d){var p=d.instantSearchInstance;t(hn(hn({},this.getWidgetRenderState(d)),{},{instantSearchInstance:p}),!0)},render:function(d){var p=d.instantSearchInstance;t(hn(hn({},this.getWidgetRenderState(d)),{},{instantSearchInstance:p}),!1)},dispose:function(d){var p=d.state;return r(),p.setQueryParameter("page",void 0)},getWidgetUiState:function(d,p){var h=p.searchParameters,m=h.page||0;return m?hn(hn({},d),{},{page:m+1}):d},getWidgetSearchParameters:function(d,p){var h=p.uiState,m=h.page?h.page-1:0;return d.setQueryParameter("page",m)},getWidgetRenderState:function(d){var p=d.results,h=d.helper,m=d.state,v=d.createURL;u.refine||(u.refine=function(_){h.setPage(_),h.search()}),u.createURL||(u.createURL=function(_){return v(function(b){return hn(hn({},b),{},{page:_+1})})});var g=m.page||0,y=c(p||{nbPages:0});return l.currentPage=g,l.total=y,{createURL:u.createURL,refine:u.refine,canRefine:y>1,currentRefinement:g,nbHits:(p==null?void 0:p.nbHits)||0,nbPages:y,pages:p?l.pages():[],isFirstPage:l.isFirstPage(),isLastPage:l.isLastPage(),widgetParams:n}},getRenderState:function(d,p){return hn(hn({},d),{},{pagination:this.getWidgetRenderState(p)})}}}};const z8=Q8;function Mo(e){return Mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mo(e)}function kg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jt(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:Ke;return Et(t,bf()),function(n){var i=n||{},a=i.attribute,s=a===void 0?"":a,o=i.min,l=i.max,u=i.precision,c=u===void 0?0:u;if(!s)throw new Error(bf("The `attribute` option is required."));if(vt(o)&&vt(l)&&o>l)throw new Error(bf("The `max` option can't be lower than `min`."));var f=function(_){return Number(Number(_).toFixed(c))},d={from:function(_){return _.toLocaleString()},to:function(_){return f(_).toLocaleString()}},p=function(_,b,P,k){var A=_.state,U=b.min,F=b.max,x=A.getNumericRefinement(s,">=")||[],I=_a(x,1),M=I[0],Z=A.getNumericRefinement(s,"<=")||[],B=_a(Z,1),R=B[0],j=P===void 0||P==="",D=k===void 0||k==="",L=Eg({min:j?void 0:parseFloat(P),max:D?void 0:parseFloat(k),precision:c}),$=L.min,w=L.max,Y;!vt(o)&&U===$?Y=void 0:vt(o)&&j?Y=o:Y=$;var X;!vt(l)&&F===w?X=void 0:vt(l)&&D?X=l:X=w;var ae=Y===void 0,oe=vt(U)&&U<=Y,ee=ae||vt(Y)&&(!vt(U)||oe),V=X===void 0,K=vt(X)&&F>=X,H=V||vt(X)&&(!vt(F)||K),E=M!==Y,q=R!==X;return(E||q)&&ee&&H?(A=A.removeNumericRefinement(s),vt(Y)&&(A=A.addNumericRefinement(s,">=",Y)),vt(X)&&(A=A.addNumericRefinement(s,"<=",X)),A.resetPage()):null},h=function(_){return function(){if(arguments.length===1){_.sendEventToInsights(arguments.length<=0?void 0:arguments[0]);return}}};function m(y){var _;vt(o)?_=o:vt(y.min)?_=y.min:_=0;var b;return vt(l)?b=l:vt(y.max)?b=y.max:b=0,Eg({min:_,max:b,precision:c})}function v(y){var _=y.getNumericRefinement(s,">=")||[],b=_a(_,1),P=b[0],k=y.getNumericRefinement(s,"<=")||[],A=_a(k,1),U=A[0],F=vt(P)?P:-1/0,x=vt(U)?U:1/0;return[F,x]}function g(y,_){return function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[void 0,void 0],P=_a(b,2),k=P[0],A=P[1],U=p(y,_,k,A);U&&y.setState(U).search()}}return{$$type:t6,init:function(_){t(Jt(Jt({},this.getWidgetRenderState(_)),{},{instantSearchInstance:_.instantSearchInstance}),!0)},render:function(_){t(Jt(Jt({},this.getWidgetRenderState(_)),{},{instantSearchInstance:_.instantSearchInstance}),!1)},getRenderState:function(_,b){return Jt(Jt({},_),{},{range:Jt(Jt({},_.range),{},iu({},s,this.getWidgetRenderState(b)))})},getWidgetRenderState:function(_){var b=_.results,P=_.helper,k=_.instantSearchInstance,A=b&&b.disjunctiveFacets||[],U=wi(A,function(Z){return Z.name===s}),F=U&&U.stats||{min:void 0,max:void 0},x=m(F),I=v(P),M;return b?M=g(P,x):M=g(P,{min:void 0,max:void 0}),{refine:M,canRefine:x.min!==x.max,format:d,range:x,sendEvent:h(k),widgetParams:Jt(Jt({},n),{},{precision:c}),start:I}},dispose:function(_){var b=_.state;return r(),b.removeDisjunctiveFacet(s).removeNumericRefinement(s)},getWidgetUiState:function(_,b){var P=b.searchParameters,k=P.getNumericRefinements(s),A=k[">="],U=A===void 0?[]:A,F=k["<="],x=F===void 0?[]:F;return U.length===0&&x.length===0?_:Jt(Jt({},_),{},{range:Jt(Jt({},_.range),{},iu({},s,"".concat(U,":").concat(x)))})},getWidgetSearchParameters:function(_,b){var P=b.uiState,k=_.addDisjunctiveFacet(s).setQueryParameters({numericRefinements:Jt(Jt({},_.numericRefinements),{},iu({},s,{}))});vt(o)&&(k=k.addNumericRefinement(s,">=",o)),vt(l)&&(k=k.addNumericRefinement(s,"<=",l));var A=P.range&&P.range[s];if(!A||A.indexOf(":")===-1)return k;var U=A.split(":").map(parseFloat),F=_a(U,2),x=F[0],I=F[1];return vt(x)&&(!vt(o)||o="),k=k.addNumericRefinement(s,">=",x)),vt(I)&&(!vt(l)||I=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(r[n]=e[n]))}return r}function l6(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Hl=wt({name:"refinement-list",connector:!0}),jg=["isRefined","count:desc","name:asc"],u6=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ke;return Et(t,Hl()),function(n){var i=n||{},a=i.attribute,s=i.operator,o=s===void 0?"or":s,l=i.limit,u=l===void 0?10:l,c=i.showMore,f=c===void 0?!1:c,d=i.showMoreLimit,p=d===void 0?20:d,h=i.sortBy,m=h===void 0?jg:h,v=i.escapeFacetValues,g=v===void 0?!0:v,y=i.transformItems,_=y===void 0?function(D){return D}:y;if(!a)throw new Error(Hl("The `attribute` option is required."));if(!/^(and|or)$/.test(o))throw new Error(Hl('The `operator` must one of: `"and"`, `"or"` (got "'.concat(o,'").')));if(f===!0&&p<=u)throw new Error(Hl("`showMoreLimit` should be greater than `limit`."));var b=function(L){var $=L.name,w=L.escapedValue,Y=Dg(L,i6);return _t(_t({},Y),{},{value:w,label:$,highlighted:$})},P,k=[],A=!0,U,F,x=!1,I=function(){};function M(){I()}function Z(D,L){return function(){x=!x,L.render(D)}}function B(){return x?p:u}var R=function(){return function(){}},j=function(L,$){return function(w){return function(Y){var X=w.instantSearchInstance,ae=w.results;if(Y===""&&k)t(_t(_t({},$.getWidgetRenderState(_t(_t({},w),{},{results:P}))),{},{instantSearchInstance:X}),!1);else{var oe={highlightPreTag:g?Tn.highlightPreTag:sr.highlightPreTag,highlightPostTag:g?Tn.highlightPostTag:sr.highlightPostTag};L.searchForFacetValues(a,Y,Math.min(B(),100),oe).then(function(ee){var V=g?KO(ee.facetHits):ee.facetHits,K=_(V.map(function(H){var E=H.escapedValue,q=H.value,G=Dg(H,a6);return _t(_t({},G),{},{value:E,label:q})}),{results:ae});t(_t(_t({},$.getWidgetRenderState(_t(_t({},w),{},{results:P}))),{},{items:K,canToggleShowMore:!1,canRefine:!0,isFromSearch:!0,instantSearchInstance:X}),!1)})}}}};return{$$type:"ais.refinementList",init:function(L){t(_t(_t({},this.getWidgetRenderState(L)),{},{instantSearchInstance:L.instantSearchInstance}),!0)},render:function(L){t(_t(_t({},this.getWidgetRenderState(L)),{},{instantSearchInstance:L.instantSearchInstance}),!1)},getRenderState:function(L,$){return _t(_t({},L),{},{refinementList:_t(_t({},L.refinementList),{},ks({},a,this.getWidgetRenderState($)))})},getWidgetRenderState:function(L){var $=this,w=L.results,Y=L.state,X=L.createURL,ae=L.instantSearchInstance,oe=L.helper,ee=[],V=[];if((!F||!U||!R)&&(F=uh({instantSearchInstance:ae,helper:oe,attribute:a,widgetType:this.$$type}),U=function(N){F("click:internal",N),oe.toggleFacetRefinement(a,N).search()},R=j(oe,this)),w){var K=w.getFacetValues(a,{sortBy:m,facetOrdering:m===jg});V=K&&Array.isArray(K)?K:[],ee=_(V.slice(0,B()).map(b),{results:w});var H=Y.maxValuesPerFacet,E=B();A=H>E?V.length<=E:V.lengthu,Q=f&&!A,S=G||Q;return{createURL:function(N){return X(function(re){return $.getWidgetUiState(re,{searchParameters:Y.resetPage().toggleFacetRefinement(a,N),helper:oe})})},items:ee,refine:U,searchForItems:q,isFromSearch:!1,canRefine:ee.length>0,widgetParams:n,isShowingMore:x,canToggleShowMore:S,toggleShowMore:M,sendEvent:F,hasExhaustiveItems:A}},dispose:function(L){var $=L.state;r();var w=$.setQueryParameter("maxValuesPerFacet",void 0);return o==="and"?w.removeFacet(a):w.removeDisjunctiveFacet(a)},getWidgetUiState:function(L,$){var w=$.searchParameters,Y=o==="or"?w.getDisjunctiveRefinements(a):w.getConjunctiveRefinements(a);return c6(_t(_t({},L),{},{refinementList:_t(_t({},L.refinementList),{},ks({},a,Y))}),a)},getWidgetSearchParameters:function(L,$){var w=$.uiState,Y=o==="or";if(L.isHierarchicalFacet(a)||Y&&L.isConjunctiveFacet(a)||!Y&&L.isDisjunctiveFacet(a))return L;var X=w.refinementList&&w.refinementList[a],ae=Y?L.addDisjunctiveFacet(a).removeDisjunctiveFacetRefinement(a):L.addFacet(a).removeFacetRefinement(a),oe=ae.maxValuesPerFacet||0,ee=Math.max(oe,f?p:u),V=ae.setQueryParameter("maxValuesPerFacet",ee);if(!X){var K=Y?"disjunctiveFacetsRefinements":"facetsRefinements";return V.setQueryParameters(ks({},K,_t(_t({},V[K]),{},ks({},a,[]))))}return X.reduce(function(H,E){return Y?H.addDisjunctiveFacetRefinement(a,E):H.addFacetRefinement(a,E)},V)}}}};function c6(e,t){return e.refinementList&&((!e.refinementList[t]||e.refinementList[t].length===0)&&delete e.refinementList[t],Object.keys(e.refinementList).length===0&&delete e.refinementList),e}const f6=u6;function No(e){return No=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},No(e)}function Fg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jn(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:Ke;return Et(t,m6()),function(n){var i=n||{},a=i.queryHook,s=a===void 0?v6:a,o,l;return{$$type:"ais.searchBox",init:function(c){var f=c.instantSearchInstance;t(Jn(Jn({},this.getWidgetRenderState(c)),{},{instantSearchInstance:f}),!0)},render:function(c){var f=c.instantSearchInstance;t(Jn(Jn({},this.getWidgetRenderState(c)),{},{instantSearchInstance:f}),!1)},dispose:function(c){var f=c.state;return r(),f.setQueryParameter("query",void 0)},getRenderState:function(c,f){return Jn(Jn({},c),{},{searchBox:this.getWidgetRenderState(f)})},getWidgetRenderState:function(c){var f=c.helper,d=c.instantSearchInstance,p=c.state;return o||(o=function(m){s(m,function(v){return f.setQuery(v).search()})},l=function(){f.setQuery("").search()}),{query:p.query||"",refine:o,clear:l,widgetParams:n,isSearchStalled:d.status==="stalled"}},getWidgetUiState:function(c,f){var d=f.searchParameters,p=d.query||"";return p===""||c&&c.query===p?c:Jn(Jn({},c),{},{query:p})},getWidgetSearchParameters:function(c,f){var d=f.uiState;return c.setQueryParameter("query",d.query||"")}}}};const y6=g6;function Ho(e){return Ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ho(e)}function Mg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ei(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:Ke;Et(t,Lg());var n={};return function(i){var a=i||{},s=a.items,o=a.transformItems,l=o===void 0?function(u){return u}:o;if(!Array.isArray(s))throw new Error(Lg("The `items` option expects an array of objects."));return{$$type:"ais.sortBy",init:function(c){var f=c.instantSearchInstance,d=this.getWidgetRenderState(c),p=d.currentRefinement;wi(s,function(h){return h.value===p}),t(ei(ei({},d),{},{instantSearchInstance:f}),!0)},render:function(c){var f=c.instantSearchInstance;t(ei(ei({},this.getWidgetRenderState(c)),{},{instantSearchInstance:f}),!1)},dispose:function(c){var f=c.state;return r(),n.initialIndex?f.setIndex(n.initialIndex):f},getRenderState:function(c,f){return ei(ei({},c),{},{sortBy:this.getWidgetRenderState(f)})},getWidgetRenderState:function(c){var f=c.results,d=c.helper,p=c.state,h=c.parent;!n.initialIndex&&h&&(n.initialIndex=h.getIndexName()),n.setIndex||(n.setIndex=function(v){d.setIndex(v).search()});var m=f?f.nbHits===0:!0;return{currentRefinement:p.index,options:l(s,{results:f}),refine:n.setIndex,hasNoResults:m,canRefine:!m&&s.length>0,widgetParams:i}},getWidgetUiState:function(c,f){var d=f.searchParameters,p=d.index;return ei(ei({},c),{},{sortBy:p!==n.initialIndex?p:void 0})},getWidgetSearchParameters:function(c,f){var d=f.uiState;return c.setQueryParameter("index",d.sortBy||n.initialIndex||c.index)}}}};const P6=S6;function Uo(e){return Uo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uo(e)}function x6(e){return R6(e)||$6(e)||Z1(e)||O6()}function O6(){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 $6(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function R6(e){if(Array.isArray(e))return Ad(e)}function Ng(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function br(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=").concat(u)]},attribute:a})}}},D6=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ke;return Et(t,Hg()),function(n){var i=n||{},a=i.attribute,s=i.max,o=s===void 0?5:s,l;if(!a)throw new Error(Hg("The `attribute` option is required."));var u=function(m){var v,g=m.getNumericRefinements(a);if(!!((v=g[">="])!==null&&v!==void 0&&v.length))return g[">="][0]},c=function(m){var v=0;return m.forEach(function(g){var y=g.name.split("."),_=X1(y,2),b=_[1],P=b===void 0?"":b;v=Math.max(v,P.length)}),v};function f(h,m){var v=u(h)===Number(m),g=h.resetPage().removeNumericRefinement(a);return v?g:g.addNumericRefinement(a,"<=",o).addNumericRefinement(a,">=",Number(m))}var d=function(m,v){l("click:internal",v),m.setState(f(m.state,v)).search()},p={toggleRefinementFactory:function(m){return d.bind(null,m)},createURLFactory:function(m){var v=m.state,g=m.createURL,y=m.getWidgetUiState,_=m.helper;return function(b){return g(function(P){return y(P,{searchParameters:f(v,b),helper:_})})}}};return{$$type:J1,init:function(m){var v=m.instantSearchInstance;t(br(br({},this.getWidgetRenderState(m)),{},{instantSearchInstance:v}),!0)},render:function(m){var v=m.instantSearchInstance;t(br(br({},this.getWidgetRenderState(m)),{},{instantSearchInstance:v}),!1)},getRenderState:function(m,v){return br(br({},m),{},{ratingMenu:br(br({},m.ratingMenu),{},au({},a,this.getWidgetRenderState(v)))})},getWidgetRenderState:function(m){var v=m.helper,g=m.results,y=m.state,_=m.instantSearchInstance,b=m.createURL,P=[];l||(l=I6({instantSearchInstance:_,helper:v,getRefinedStar:function(){return u(v.state)},attribute:a}));var k=!1,A=0,U=g==null?void 0:g.getFacetValues(a,{});if(g&&U){U.length,c(U);for(var F=u(y),x=function(R){var j=F===R;k=k||j;var D=U.filter(function($){return Number($.name)>=R&&Number($.name)<=o}).map(function($){return $.count}).reduce(function($,w){return $+w},0);if(A+=D,F&&!j&&D===0)return"continue";var L=x6(new Array(Math.floor(o/Ul))).map(function($,w){return w*Ul0,refine:p.toggleRefinementFactory(v),sendEvent:l,createURL:p.createURLFactory({state:y,createURL:b,helper:v,getWidgetUiState:this.getWidgetUiState}),widgetParams:n}},dispose:function(m){var v=m.state;return r(),v.removeNumericRefinement(a)},getWidgetUiState:function(m,v){var g=v.searchParameters,y=u(g);return j6(br(br({},m),{},{ratingMenu:br(br({},m.ratingMenu),{},au({},a,typeof y=="number"?y:void 0))}),a)},getWidgetSearchParameters:function(m,v){var g=v.uiState,y=g.ratingMenu&&g.ratingMenu[a],_=m.addDisjunctiveFacet(a).removeNumericRefinement(a).removeDisjunctiveFacetRefinement(a);return y?_.addNumericRefinement(a,"<=",o).addNumericRefinement(a,">=",y):_.setQueryParameters({numericRefinements:br(br({},_.numericRefinements),{},au({},a,{}))})}}}};function j6(e,t){return e.ratingMenu&&(typeof e.ratingMenu[t]!="number"&&delete e.ratingMenu[t],Object.keys(e.ratingMenu).length===0&&delete e.ratingMenu),e}const F6=D6;function Bo(e){return Bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bo(e)}function Ug(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Sa(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:Ke;return Et(t,H6()),function(n){return{$$type:"ais.stats",init:function(a){var s=a.instantSearchInstance;t(Sa(Sa({},this.getWidgetRenderState(a)),{},{instantSearchInstance:s}),!0)},render:function(a){var s=a.instantSearchInstance;t(Sa(Sa({},this.getWidgetRenderState(a)),{},{instantSearchInstance:s}),!1)},dispose:function(){r()},getRenderState:function(a,s){return Sa(Sa({},a),{},{stats:this.getWidgetRenderState(s)})},getWidgetRenderState:function(a){var s=a.results,o=a.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:n}:{hitsPerPage:o.hitsPerPage,nbHits:0,nbSortedHits:void 0,areHitsSorted:!1,nbPages:0,page:o.page||0,processingTimeMS:-1,query:o.query||"",widgetParams:n}}}}};const B6=U6;function Wo(e){return Wo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wo(e)}function Bg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wr(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:Ke;return Et(t,qg()),function(n){var i=n||{},a=i.attribute,s=i.on,o=s===void 0?!0:s,l=i.off;if(!a)throw new Error(qg("The `attribute` option is required."));var u=l!==void 0,c=Fc(o).map(Os),f=u?Fc(l).map(Os):void 0,d,p=function(v){return function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{isRefined:!1},y=g.isRefined;y?(c.forEach(function(_){return v.removeDisjunctiveFacetRefinement(a,_)}),u&&f.forEach(function(_){return v.addDisjunctiveFacetRefinement(a,_)})):(d("click:internal",y),u&&f.forEach(function(_){return v.removeDisjunctiveFacetRefinement(a,_)}),c.forEach(function(_){return v.addDisjunctiveFacetRefinement(a,_)})),v.search()}},h={createURLFactory:function(v,g){var y=g.state,_=g.createURL,b=g.getWidgetUiState,P=g.helper;return function(){y=y.resetPage();var k=v?c:f;k&&k.forEach(function(U){y=y.removeDisjunctiveFacetRefinement(a,U)});var A=v?f:c;return A&&A.forEach(function(U){y=y.addDisjunctiveFacetRefinement(a,U)}),_(function(U){return b(U,{searchParameters:y,helper:P})})}}};return{$$type:e_,init:function(v){var g=v.instantSearchInstance;t(wr(wr({},this.getWidgetRenderState(v)),{},{instantSearchInstance:g}),!0)},render:function(v){var g=v.instantSearchInstance;t(wr(wr({},this.getWidgetRenderState(v)),{},{instantSearchInstance:g}),!1)},dispose:function(v){var g=v.state;return r(),g.removeDisjunctiveFacet(a)},getRenderState:function(v,g){return wr(wr({},v),{},{toggleRefinement:wr(wr({},v.toggleRefinement),{},su({},a,this.getWidgetRenderState(g)))})},getWidgetRenderState:function(v){var g=v.state,y=v.helper,_=v.results,b=v.createURL,P=v.instantSearchInstance,k=_?c.every(function(B){return g.isDisjunctiveFacetRefined(a,B)}):c.every(function(B){return g.isDisjunctiveFacetRefined(a,B)}),A={isRefined:k,count:0},U={isRefined:u&&!k,count:0};if(_){var F=Fc(f||!1),x=_.getFacetValues(a,{})||[],I=c.map(function(B){return wi(x,function(R){var j=R.escapedValue;return j===Os(String(B))})}).filter(function(B){return B!==void 0}),M=u?F.map(function(B){return wi(x,function(R){var j=R.escapedValue;return j===Os(String(B))})}).filter(function(B){return B!==void 0}):[];A={isRefined:I.length?I.every(function(B){return B.isRefined}):!1,count:I.reduce(function(B,R){return B+R.count},0)||null},U={isRefined:M.length?M.every(function(B){return B.isRefined}):!1,count:M.reduce(function(B,R){return B+R.count},0)||x.reduce(function(B,R){var j=R.count;return B+j},0)}}d||(d=G6({instantSearchInstance:P,attribute:a,on:c,helper:y}));var Z=k?U:A;return{value:{name:a,isRefined:k,count:_?Z.count:null,onFacetValue:A,offFacetValue:U},createURL:h.createURLFactory(k,{state:g,createURL:b,helper:y,getWidgetUiState:this.getWidgetUiState}),sendEvent:d,canRefine:Boolean(_?Z.count:null),refine:p(y),widgetParams:n}},getWidgetUiState:function(v,g){var y=g.searchParameters,_=c&&c.every(function(P){return y.isDisjunctiveFacetRefined(a,P)});if(!_){var b;return(b=v.toggle)===null||b===void 0||delete b[a],v}return wr(wr({},v),{},{toggle:wr(wr({},v.toggle),{},su({},a,_))})},getWidgetSearchParameters:function(v,g){var y=g.uiState;if(v.isHierarchicalFacet(a)||v.isConjunctiveFacet(a))return v;var _=v.addDisjunctiveFacet(a).removeDisjunctiveFacetRefinement(a),b=Boolean(y.toggle&&y.toggle[a]);return b?(c&&c.forEach(function(P){_=_.addDisjunctiveFacetRefinement(a,P)}),_):u?(f&&f.forEach(function(P){_=_.addDisjunctiveFacetRefinement(a,P)}),_):_.setQueryParameters({disjunctiveFacetsRefinements:wr(wr({},v.disjunctiveFacetsRefinements),{},su({},a,[]))})}}}};const Z6=X6;function qo(e){return qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qo(e)}function Vg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _r(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:Ke;Et(t,zg());var n={};return function(i){var a=i||{},s=a.attributes,o=a.separator,l=o===void 0?" > ":o,u=a.rootPath,c=u===void 0?null:u,f=a.transformItems,d=f===void 0?function(v){return v}:f;if(!s||!Array.isArray(s)||s.length===0)throw new Error(zg("The `attributes` option expects an array of strings."));var p=Yg(s,1),h=p[0];function m(v,g){if(!g){var y=v.getHierarchicalFacetBreadcrumb(h);return y.length===0?v:v.resetPage().toggleFacetRefinement(h,y[0])}return v.resetPage().toggleFacetRefinement(h,g)}return{$$type:"ais.breadcrumb",init:function(g){t(_r(_r({},this.getWidgetRenderState(g)),{},{instantSearchInstance:g.instantSearchInstance}),!0)},render:function(g){t(_r(_r({},this.getWidgetRenderState(g)),{},{instantSearchInstance:g.instantSearchInstance}),!1)},dispose:function(){r()},getRenderState:function(g,y){return _r(_r({},g),{},{breadcrumb:_r(_r({},g.breadcrumb),{},ou({},h,this.getWidgetRenderState(y)))})},getWidgetRenderState:function(g){var y=this,_=g.helper,b=g.createURL,P=g.results,k=g.state;function A(){if(!P||k.hierarchicalFacets.length===0)return[];var F=Yg(k.hierarchicalFacets,1),x=F[0].name,I=P.getFacetValues(x,{}),M=I&&!Array.isArray(I)&&I.data?I.data:[],Z=d(s5(t_(M)),{results:P});return Z}var U=A();return n.createURL||(n.createURL=function(F){return b(function(x){return y.getWidgetUiState(x,{searchParameters:m(_.state,F),helper:_})})}),n.refine||(n.refine=function(F){_.setState(m(_.state,F)).search()}),{canRefine:U.length>0,createURL:n.createURL,items:U,refine:n.refine,widgetParams:i}},getWidgetUiState:function(g,y){var _=y.searchParameters,b=_.getHierarchicalFacetBreadcrumb(h);return o5(_r(_r({},g),{},{hierarchicalMenu:_r(_r({},g.hierarchicalMenu),{},ou({},h,b))}),h)},getWidgetSearchParameters:function(g,y){var _=y.uiState,b=_.hierarchicalMenu&&_.hierarchicalMenu[h];if(g.isConjunctiveFacet(h)||g.isDisjunctiveFacet(h))return g;g.isHierarchicalFacet(h)&&g.getHierarchicalFacetByName(h);var P=g.removeHierarchicalFacet(h).addHierarchicalFacet({name:h,attributes:s,separator:l,rootPath:c});return b?P.addHierarchicalFacetRefinement(h,b.join(l)):P.setQueryParameters({hierarchicalFacetsRefinements:_r(_r({},P.hierarchicalFacetsRefinements),{},ou({},h,[]))})}}}};function t_(e){return e.reduce(function(t,r){return r.isRefined&&(t.push({label:r.name,value:r.escapedValue}),Array.isArray(r.data)&&(t=t.concat(t_(r.data)))),t},[])}function s5(e){return e.map(function(t,r){return{label:t.label,value:r+1===e.length?null:e[r+1].value}})}function o5(e,t){return e.hierarchicalMenu&&((!e.hierarchicalMenu[t]||!e.hierarchicalMenu[t].length)&&delete e.hierarchicalMenu[t],Object.keys(e.hierarchicalMenu).length===0&&delete e.hierarchicalMenu),e}const l5=a5;function Vo(e){return Vo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vo(e)}function Kg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mr(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:Ke;return Et(t,f5()),function(n){var i=n||{},a=i.escapeHTML,s=a===void 0?!0:a,o={};return{$$type:"ais.autocomplete",init:function(u){var c=u.instantSearchInstance;t(Mr(Mr({},this.getWidgetRenderState(u)),{},{instantSearchInstance:c}),!0)},render:function(u){var c=u.instantSearchInstance,f=this.getWidgetRenderState(u);f.indices.forEach(function(d){var p=d.sendEvent,h=d.hits;p("view:internal",h)}),t(Mr(Mr({},f),{},{instantSearchInstance:c}),!1)},getRenderState:function(u,c){return Mr(Mr({},u),{},{autocomplete:this.getWidgetRenderState(c)})},getWidgetRenderState:function(u){var c=this,f=u.helper,d=u.state,p=u.scopedResults,h=u.instantSearchInstance;o.refine||(o.refine=function(v){f.setQuery(v).search()});var m=p.map(function(v){v.results.hits=s?sc(v.results.hits):v.results.hits;var g=ch({instantSearchInstance:h,getIndex:function(){return v.results.index},widgetType:c.$$type});return{indexId:v.indexId,indexName:v.results.index,hits:v.results.hits,results:v.results,sendEvent:g}});return{currentRefinement:d.query||"",indices:m,refine:o.refine,widgetParams:n}},getWidgetUiState:function(u,c){var f=c.searchParameters,d=f.query||"";return d===""||u&&u.query===d?u:Mr(Mr({},u),{},{query:d})},getWidgetSearchParameters:function(u,c){var f=c.uiState,d={query:f.query||""};return s?u.setQueryParameters(Mr(Mr({},d),Tn)):u.setQueryParameters(d)},dispose:function(u){var c=u.state;r();var f=c.setQueryParameter("query",void 0);return s?f.setQueryParameters(Object.keys(Tn).reduce(function(d,p){return Mr(Mr({},d),{},r_({},p,void 0))},{})):f}}}};const h5=d5;function Yo(e){return Yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yo(e)}function Gg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ci(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0)})}function S5(e){return e.replace(/[^a-z0-9-_]+/gi,"_")}function P5(e){var t=e.helper,r=e.sharedHelperState,n=e.trackedFilters,i=Object.keys(n).reduce(function(a,s){var o=dh(t.lastResults||{},r,!0).filter(function(c){return c.attribute===s}).map(function(c){return c.numericValue||c.name}),l=n[s],u=l(o);return[].concat(Bu(a),Bu(o.filter(function(c){return u.includes(c)}).map(function(c){return S5("ais-".concat(s,"-").concat(c))})))},[]);return i}function x5(e){var t=this.helper,r=this.initialRuleContexts,n=this.trackedFilters,i=this.transformRuleContexts,a=e.state,s=a.ruleContexts||[],o=P5({helper:t,sharedHelperState:a,trackedFilters:n}),l=[].concat(Bu(r),Bu(o)),u=i(l).slice(0,10);rl(s,u)||t.overrideStateWithoutTriggeringChangeEvent(ci(ci({},a),{},{ruleContexts:u}))}var O5=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ke;return Et(t,Xg()),function(n){var i=n||{},a=i.trackedFilters,s=a===void 0?{}:a,o=i.transformRuleContexts,l=o===void 0?function(h){return h}:o,u=i.transformItems,c=u===void 0?function(h){return h}:u;Object.keys(s).forEach(function(h){if(typeof s[h]!="function")throw new Error(Xg(`'The "`.concat(h,'" filter value in the `trackedFilters` option expects a function.')))});var f=Object.keys(s).length>0,d=[],p;return{$$type:"ais.queryRules",init:function(m){var v=m.helper,g=m.state,y=m.instantSearchInstance;d=g.ruleContexts||[],p=x5.bind({helper:v,initialRuleContexts:d,trackedFilters:s,transformRuleContexts:l}),f&&((_5(g)||Boolean(n.transformRuleContexts))&&p({state:g}),v.on("change",p)),t(ci(ci({},this.getWidgetRenderState(m)),{},{instantSearchInstance:y}),!0)},render:function(m){var v=m.instantSearchInstance;t(ci(ci({},this.getWidgetRenderState(m)),{},{instantSearchInstance:v}),!1)},getWidgetRenderState:function(m){var v=m.results,g=v||{},y=g.userData,_=y===void 0?[]:y,b=c(_,{results:v});return{items:b,widgetParams:n}},getRenderState:function(m,v){return ci(ci({},m),{},{queryRules:this.getWidgetRenderState(v)})},dispose:function(m){var v=m.helper,g=m.state;return r(),f?(v.removeListener("change",p),g.setQueryParameter("ruleContexts",d)):g}}}};const n_=O5;function Qo(e){return Qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qo(e)}function Zg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jg(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{};l=Jg(Jg({},l),A),a()},p=function(){return l},h=function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"initial";d(o(A))},m=function(){d({status:"waiting"})},v=function(A){d({status:"error",errorCode:A.error})},g=function(A){d({status:"recognizing",transcript:A.results[0]&&A.results[0][0]&&A.results[0][0].transcript||"",isSpeechFinal:A.results[0]&&A.results[0].isFinal}),r&&l.transcript&&i(l.transcript)},y=function(){!l.errorCode&&l.transcript&&!r&&i(l.transcript),l.status!=="error"&&d({status:"finished"})},_=function(){u=new s,u&&(h("askingPermission"),u.interimResults=!0,n&&(u.lang=n),u.addEventListener("start",m),u.addEventListener("error",v),u.addEventListener("result",g),u.addEventListener("end",y),u.start())},b=function(){!u||(u.stop(),u.removeEventListener("start",m),u.removeEventListener("error",v),u.removeEventListener("result",g),u.removeEventListener("end",y),u=void 0)},P=function(){b(),h("finished")};return{getState:p,isBrowserSupported:c,isListening:f,startListening:_,stopListening:P,dispose:b}};const k5=T5;function zo(e){return zo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zo(e)}function ey(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Lr(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:Ke;return Et(t,D5()),function(n){var i=n.searchAsYouSpeak,a=i===void 0?!1:i,s=n.language,o=n.additionalQueryParameters,l=n.createVoiceSearchHelper,u=l===void 0?k5:l;return{$$type:"ais.voiceSearch",init:function(f){var d=f.instantSearchInstance;t(Lr(Lr({},this.getWidgetRenderState(f)),{},{instantSearchInstance:d}),!0)},render:function(f){var d=f.instantSearchInstance;t(Lr(Lr({},this.getWidgetRenderState(f)),{},{instantSearchInstance:d}),!1)},getRenderState:function(f,d){return Lr(Lr({},f),{},{voiceSearch:this.getWidgetRenderState(d)})},getWidgetRenderState:function(f){var d=this,p=f.helper,h=f.instantSearchInstance;this._refine||(this._refine=function(P){if(P!==p.state.query){var k=s?[s.split("-")[0]]:void 0;p.setQueryParameter("queryLanguages",k),typeof o=="function"&&p.setState(p.state.setQueryParameters(Lr({ignorePlurals:!0,removeStopWords:!0,optionalWords:P},o({query:P})))),p.setQuery(P).search()}}),this._voiceSearchHelper||(this._voiceSearchHelper=u({searchAsYouSpeak:a,language:s,onQueryChange:function(k){return d._refine(k)},onStateChange:function(){t(Lr(Lr({},d.getWidgetRenderState(f)),{},{instantSearchInstance:h}),!1)}}));var m=this._voiceSearchHelper,v=m.isBrowserSupported,g=m.isListening,y=m.startListening,_=m.stopListening,b=m.getState;return{isBrowserSupported:v(),isListening:g(),toggleListening:function(){!v()||(g()?_():y())},voiceListeningState:b(),widgetParams:n}},dispose:function(f){var d=f.state;this._voiceSearchHelper.dispose(),r();var p=d;if(typeof o=="function"){var h=o({query:""}),m=h?Object.keys(h).reduce(function(v,g){return v[g]=void 0,v},{}):{};p=d.setQueryParameters(Lr({queryLanguages:void 0,ignorePlurals:void 0,removeStopWords:void 0,optionalWords:void 0},m))}return p.setQueryParameter("query",void 0)},getWidgetUiState:function(f,d){var p=d.searchParameters,h=p.query||"";return h?Lr(Lr({},f),{},{query:h}):f},getWidgetSearchParameters:function(f,d){var p=d.uiState;return f.setQueryParameter("query",p.query||"")}}}};const F5=j5;function Ko(e){return Ko=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ko(e)}function ty(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ti(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:Ke,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ke;return function(n){var i={};return{$$type:"ais.relevantSort",init:function(s){var o=s.instantSearchInstance;t(ti(ti({},this.getWidgetRenderState(s)),{},{instantSearchInstance:o}),!0)},render:function(s){var o=s.instantSearchInstance;t(ti(ti({},this.getWidgetRenderState(s)),{},{instantSearchInstance:o}),!1)},dispose:function(s){var o=s.state;return r(),o.setQueryParameter("relevancyStrictness",void 0)},getRenderState:function(s,o){return ti(ti({},s),{},{relevantSort:this.getWidgetRenderState(o)})},getWidgetRenderState:function(s){var o=s.results,l=s.helper;i.refine||(i.refine=function(d){l.setQueryParameter("relevancyStrictness",d).search()});var u=o||{},c=u.appliedRelevancyStrictness,f=c!==void 0;return{isRelevantSorted:typeof c<"u"&&c>0,isVirtualReplica:f,canRefine:f,refine:i.refine,widgetParams:n}},getWidgetSearchParameters:function(s,o){var l,u=o.uiState;return s.setQueryParameter("relevancyStrictness",(l=u.relevantSort)!==null&&l!==void 0?l:s.relevancyStrictness)},getWidgetUiState:function(s,o){var l=o.searchParameters;return ti(ti({},s),{},{relevantSort:l.relevancyStrictness||s.relevantSort})}}}};const U5=H5;Ci(yN);var B5=Ci(B4);Ci(H1);const i_={name:"AisAutocomplete",mixins:[gt({connector:h5},{$$widgetType:"ais.autocomplete"}),rt({name:"Autocomplete"})],props:{escapeHTML:{type:Boolean,required:!1,default:!0}},computed:{widgetParams:function(){return{escapeHTML:this.escapeHTML}}}};var W5=O("p",null," This widget doesn't render anything without a filled in default slot. ",-1),q5=O("p",null,"query, function to refine and results are provided.",-1),V5=O("pre",null,"refine: Function",-1),Y5=O("summary",null,[O("code",null,"indices"),He(":")],-1);function Q5(e,t,r,n,i,a){return e.state?(T(),W("div",{key:0,class:te(e.suit())},[se(e.$slots,"default",{refine:e.state.refine,currentRefinement:e.state.currentRefinement,indices:e.state.indices},function(){return[W5,q5,V5,O("pre",null,'currentRefinement: "'+ge(e.state.currentRefinement)+'"',1),O("details",null,[Y5,O("pre",null,ge(e.state.indices),1)])]})],2)):ne("",!0)}i_.render=Q5;function z5(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n&&n.push(r)||e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&n.splice(n.indexOf(r)>>>0,1)},emit:function(t,r){(e.get(t)||[]).slice().map(function(n){n(r)}),(e.get("*")||[]).slice().map(function(n){n(t,r)})}}}var K5=function(){var e;return(e={props:{emitter:{type:Object,required:!1,default:function(){return z5()}}},provide:function(){var t;return(t={}).instantSearchPanelEmitter=this.emitter,t},data:function(){return{canRefine:!0}},created:function(){var t=this;this.emitter.on("PANEL_CHANGE_EVENT",function(r){t.updateCanRefine(r)})}}).beforeUnmount=function(){this.emitter.all.clear()},e.methods={updateCanRefine:function(t){this.canRefine=t}},e},Tr=function(e){e===void 0&&(e={});var t=e.mapStateToCanRefine;return t===void 0&&(t=function(r){return Boolean(r.canRefine)}),{inject:{emitter:{from:"instantSearchPanelEmitter",default:function(){return{emit:function(){}}}}},data:function(){return{state:null,hasAlreadyEmitted:!1}},watch:{state:{immediate:!0,handler:function(r,n){if(r){var i=t(n||{}),a=t(r);this.hasAlreadyEmitted&&i===a||(this.emitter.emit("PANEL_CHANGE_EVENT",a),this.hasAlreadyEmitted=!0)}}}}}};const a_={name:"AisBreadcrumb",mixins:[gt({connector:l5},{$$widgetType:"ais.breadcrumb"}),Tr(),rt({name:"Breadcrumb"})],props:{attributes:{type:Array,required:!0},separator:{type:String,default:void 0},rootPath:{type:String,default:void 0},transformItems:{type:Function,default:void 0}},computed:{widgetParams:function(){return{attributes:this.attributes,separator:this.separator,rootPath:this.rootPath,transformItems:this.transformItems}}},methods:{isLastItem:function(e){return this.state.items.length-1===e}}};var G5=["href"],X5=["href"],Z5=["href","onClick"];function J5(e,t,r,n,i,a){return e.state?(T(),W("div",{key:0,class:te([e.suit(),!e.state.canRefine&&e.suit("","noRefinement")])},[se(e.$slots,"default",{items:e.state.items,canRefine:e.state.canRefine,refine:e.state.refine,createURL:e.state.createURL},function(){return[O("ul",{class:te(e.suit("list"))},[O("li",{class:te([e.suit("item"),!e.state.items.length&&e.suit("item","selected")])},[Boolean(e.state.items.length)?(T(),W("a",{key:0,href:e.state.createURL(),class:te(e.suit("link")),onClick:t[0]||(t[0]=Se(function(s){return e.state.refine()},["exact","left","prevent"]))},[se(e.$slots,"rootLabel",{},function(){return[He("Home")]})],10,G5)):(T(),W("a",{key:1,href:e.state.createURL(null),class:te(e.suit("link")),onClick:t[1]||(t[1]=Se(function(s){return e.state.refine(null)},["exact","left","prevent"]))},[se(e.$slots,"rootLabel",{},function(){return[He("Home")]})],10,X5))],2),(T(!0),W(ye,null,We(e.state.items,function(s,o){return T(),W("li",{key:s.label,class:te([e.suit("item"),a.isLastItem(o)&&e.suit("item","selected")])},[O("span",{class:te(e.suit("separator")),"aria-hidden":"true"},[se(e.$slots,"separator",{},function(){return[He(">")]})],2),a.isLastItem(o)?(T(),W(ye,{key:1},[He(ge(s.label),1)],64)):(T(),W("a",{key:0,href:e.state.createURL(s.value),class:te(e.suit("link")),onClick:Se(function(l){return e.state.refine(s.value)},["exact","left","prevent"])},ge(s.label),11,Z5))],2)}),128))],2)]})],2)):ne("",!0)}a_.render=J5;const s_={name:"AisClearRefinements",mixins:[gt({connector:nH},{$$widgetType:"ais.clearRefinements"}),Tr(),rt({name:"ClearRefinements"})],props:{excludedAttributes:{type:Array,default:void 0},includedAttributes:{type:Array,default:void 0},transformItems:{type:Function,default:void 0}},computed:{widgetParams:function(){return{includedAttributes:this.includedAttributes,excludedAttributes:this.excludedAttributes,transformItems:this.transformItems}},canRefine:function(){return this.state.hasRefinements}}};var eU=["disabled"];function tU(e,t,r,n,i,a){return e.state?(T(),W("div",{key:0,class:te(e.suit())},[se(e.$slots,"default",{canRefine:a.canRefine,refine:e.state.refine,createURL:e.state.createURL},function(){return[O("button",{type:"reset",class:te([e.suit("button"),!a.canRefine&&e.suit("button","disabled")]),disabled:!a.canRefine,onClick:t[0]||(t[0]=Se(function(){for(var s,o=[],l=arguments.length;l--;)o[l]=arguments[l];return e.state.refine&&(s=e.state).refine.apply(s,o)},["prevent"]))},[se(e.$slots,"resetLabel",{},function(){return[He(" Clear refinements ")]})],10,eU)]})],2)):ne("",!0)}s_.render=tU;const rU={inheritAttrs:!1,name:"AisConfigure",mixins:[rt({name:"Configure"}),gt({connector:N1},{$$widgetType:"ais.configure"})],computed:{widgetParams:function(){return{searchParameters:Object.assign({},this.$attrs)}}},render:os(function(e){var t=this.$slots.default;return this.state&&t?e("div",{class:this.suit()},[t({refine:this.state.refine,searchParameters:this.state.widgetParams.searchParameters})]):null})},nU={inheritAttrs:!1,name:"AisExperimentalConfigureRelatedItems",mixins:[gt({connector:B5},{$$widgetType:"ais.configureRelatedItems"})],props:{hit:{type:Object,required:!0},matchingPatterns:{type:Object,required:!0},transformSearchParameters:{type:Function,required:!1}},computed:{widgetParams:function(){return{hit:this.hit,matchingPatterns:this.matchingPatterns,transformSearchParameters:this.transformSearchParameters}}},render:function(){return null}},o_={name:"AisCurrentRefinements",mixins:[rt({name:"CurrentRefinements"}),gt({connector:vH},{$$widgetType:"ais.currentRefinements"}),Tr()],props:{includedAttributes:{type:Array,default:void 0},excludedAttributes:{type:Array,default:void 0},transformItems:{type:Function,default:void 0}},computed:{noRefinement:function(){return this.state&&this.state.items.length===0},widgetParams:function(){return{includedAttributes:this.includedAttributes,excludedAttributes:this.excludedAttributes,transformItems:this.transformItems}}},methods:{createItemKey:function(e){var t=e.attribute,r=e.value;return[t,e.type,r,e.operator].join(":")},capitalize:function(e){return e?e.toString().charAt(0).toLocaleUpperCase()+e.toString().slice(1):""}}};var iU={key:0},aU=["onClick"];function sU(e,t,r,n,i,a){return e.state?(T(),W("div",{key:0,class:te([e.suit(),a.noRefinement&&e.suit("","noRefinement")])},[se(e.$slots,"default",{refine:e.state.refine,items:e.state.items,createURL:e.state.createURL},function(){return[O("ul",{class:te(e.suit("list"))},[(T(!0),W(ye,null,We(e.state.items,function(s){return T(),W("li",{key:s.attribute,class:te(e.suit("item"))},[se(e.$slots,"item",{refine:s.refine,item:s,createURL:e.state.createURL},function(){return[O("span",{class:te(e.suit("label"))},ge(a.capitalize(s.label))+": ",3),(T(!0),W(ye,null,We(s.refinements,function(o){return T(),W("span",{key:a.createItemKey(o),class:te(e.suit("category"))},[se(e.$slots,"refinement",{refine:s.refine,refinement:o,createURL:e.state.createURL},function(){return[O("span",{class:te(e.suit("categoryLabel"))},[o.attribute==="query"?(T(),W("q",iU,ge(o.label),1)):(T(),W(ye,{key:1},[He(ge(o.label),1)],64))],2),O("button",{class:te(e.suit("delete")),type:"button",onClick:Se(function(l){return s.refine(o)},["left","exact"])}," \u2715 ",10,aU)]})],2)}),128))]})],2)}),128))],2)]})],2)):ne("",!0)}o_.render=sU;const l_={name:"HierarchicalMenuList",props:{items:{type:Array,required:!0},level:{type:Number,required:!0},refine:{type:Function,required:!0},createURL:{type:Function,required:!0},suit:{type:Function,required:!0}}};var oU=["href","onClick"];function lU(e,t,r,n,i,a){var s=Fe("hierarchical-menu-list",!0);return r.items.length>0?(T(),W("ul",{key:0,class:te([r.suit("list"),r.level>0&&r.suit("list","child"),r.suit("list","lvl"+r.level)])},[(T(!0),W(ye,null,We(r.items,function(o){return T(),W("li",{key:o.value,class:te([r.suit("item"),o.isRefined&&r.suit("item","selected"),o.data&&o.data.length>0&&r.suit("item","parent")])},[O("a",{href:r.createURL(o.value),class:te([r.suit("link"),o.isRefined&&r.suit("link","selected")]),onClick:Se(function(l){return r.refine(o.value)},["exact","left","prevent"])},[O("span",{class:te(r.suit("label"))},ge(o.label),3),O("span",{class:te(r.suit("count"))},ge(o.count),3)],10,oU),o.data?(T(),Re(s,{key:0,items:o.data,level:r.level+1,refine:r.refine,createURL:r.createURL,suit:r.suit},null,8,["items","level","refine","createURL","suit"])):ne("",!0)],2)}),128))],2)):ne("",!0)}l_.render=lU;const u_={name:"AisHierarchicalMenu",mixins:[rt({name:"HierarchicalMenu"}),gt({connector:TH},{$$widgetType:"ais.hierarchicalMenu"}),Tr()],components:{HierarchicalMenuList:l_},props:{attributes:{type:Array,required:!0},limit:{type:Number,default:void 0},showMoreLimit:{type:Number,default:void 0},showMore:{type:Boolean,default:!1},sortBy:{type:[Array,Function],default:void 0},separator:{type:String,default:void 0},rootPath:{type:String,default:void 0},showParentLevel:{type:Boolean,default:void 0},transformItems:{type:Function,default:void 0}},computed:{widgetParams:function(){return{attributes:this.attributes,limit:this.limit,showMore:this.showMore,showMoreLimit:this.showMoreLimit,separator:this.separator,rootPath:this.rootPath,showParentLevel:this.showParentLevel,sortBy:this.sortBy,transformItems:this.transformItems}}}};var uU=["disabled"];function cU(e,t,r,n,i,a){var s=Fe("hierarchical-menu-list");return e.state?(T(),W("div",{key:0,class:te([e.suit(),!e.state.canRefine&&e.suit("","noRefinement")])},[se(e.$slots,"default",{items:e.state.items,canRefine:e.state.canRefine,canToggleShowMore:e.state.canToggleShowMore,isShowingMore:e.state.isShowingMore,refine:e.state.refine,createURL:e.state.createURL,toggleShowMore:e.state.toggleShowMore,sendEvent:e.state.sendEvent},function(){return[Ae(s,{items:e.state.items,level:0,refine:e.state.refine,createURL:e.state.createURL,suit:e.suit},null,8,["items","refine","createURL","suit"]),r.showMore?(T(),W("button",{key:0,class:te([e.suit("showMore"),!e.state.canToggleShowMore&&e.suit("showMore","disabled")]),disabled:!e.state.canToggleShowMore,onClick:t[0]||(t[0]=Se(function(){for(var o,l=[],u=arguments.length;u--;)l[u]=arguments[u];return e.state.toggleShowMore&&(o=e.state).toggleShowMore.apply(o,l)},["prevent"]))},[se(e.$slots,"showMoreLabel",{isShowingMore:e.state.isShowingMore},function(){return[He(ge(e.state.isShowingMore?"Show less":"Show more"),1)]})],10,uU)):ne("",!0)]})],2)):ne("",!0)}u_.render=cU;function Wu(){return Wu=Object.assign?Object.assign.bind():function(e){for(var t=1;t","post-tag":""},null,8,["hit","attribute","highlighted-tag-name","suit"])}xp.render=bU;const wU={name:"AisHits",mixins:[gt({connector:WH},{$$widgetType:"ais.hits"}),rt({name:"Hits"})],props:{showBanner:{type:Boolean,default:!0},escapeHTML:{type:Boolean,default:!0},transformItems:{type:Function,default:void 0}},computed:{widgetParams:function(){return{showBanner:this.showBanner,escapeHTML:this.escapeHTML,transformItems:this.transformItems}}},render:os(function(e){var t=this;if(!this.state)return null;var r=sf(this,"default"),n=sf(this,"item"),i=sf(this,"banner");return n||i||!r?e(gU({createElement:e}),{hits:this.state.items,itemComponent:function(a){var s=a.hit,o=a.index,l=a.onClick,u=a.onAuxClick,c=(a.key,function(f,d){var p={};for(var h in f)Object.prototype.hasOwnProperty.call(f,h)&&d.indexOf(h)===-1&&(p[h]=f[h]);return p}(a,["hit","index","onClick","onAuxClick","key"]));return e("li",{key:s.objectID,attrs:c,on:{click:l,auxclick:u}},[n&&n({item:s,index:o,insights:t.state.insights,sendEvent:t.state.sendEvent})||"objectID: "+s.objectID+", index: "+o])},banner:this.showBanner?this.state.banner:void 0,bannerComponent:i,sendEvent:this.state.sendEvent,classNames:this.classNames&&{root:this.classNames["ais-Hits"],list:this.classNames["ais-Hits-list"],item:this.classNames["ais-Hits-item"],bannerRoot:this.classNames["ais-Hits-banner"],bannerImage:this.classNames["ais-Hits-banner-image"],bannerLink:this.classNames["ais-Hits-banner-link"]}}):e("div",{attrs:{class:this.suit()}},[r({banner:this.state.banner,items:this.state.items,insights:this.state.insights,sendEvent:this.state.sendEvent})])})},h_={name:"AisHitsPerPage",mixins:[rt({name:"HitsPerPage"}),gt({connector:JH},{$$widgetType:"ais.hitsPerPage"}),Tr()],props:{items:{type:Array,required:!0},transformItems:{type:Function,default:void 0}},computed:{widgetParams:function(){return{items:this.items,transformItems:this.transformItems}}}};var _U=["value","selected"];function SU(e,t,r,n,i,a){return e.state?(T(),W("div",{key:0,class:te(e.suit())},[se(e.$slots,"default",{items:e.state.items,refine:e.state.refine,hasNoResults:e.state.hasNoResults,canRefine:e.state.canRefine,createURL:e.state.createURL},function(){return[O("select",{class:te(e.suit("select")),onChange:t[0]||(t[0]=function(s){return e.state.refine(Number(s.currentTarget.value))})},[(T(!0),W(ye,null,We(e.state.items,function(s){return T(),W("option",{key:s.value,class:te(e.suit("option")),value:s.value,selected:s.isRefined},ge(s.label),11,_U)}),128))],34)]})],2)):ne("",!0)}h_.render=SU;function Go(e){return Go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Go(e)}var PU=["initialSearchParameters"],xU=["initialRecommendParameters"];function ry(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bn(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(r[n]=e[n]))}return r}function CU(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var ws=wt({name:"index-widget"});function v_(e,t){var r=t.state,n=t.recommendState,i=t.isPageReset,a=t._uiState;r!==e.state&&(e.state=r,e.emit("change",{state:e.state,results:e.lastResults,isPageReset:i,_uiState:a})),n!==e.recommendState&&(e.recommendState=n)}function _s(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return e.reduce(function(n,i){return Nr(i)||!i.getWidgetUiState&&!i.getWidgetState?n:i.getWidgetUiState?i.getWidgetUiState(n,t):i.getWidgetState(n,t)},r)}function Ss(e,t){var r=t.initialSearchParameters,n=m_(t,PU);return e.reduce(function(i,a){return!a.getWidgetSearchParameters||Nr(a)?i:a.dependsOn==="search"&&a.getWidgetParameters?a.getWidgetParameters(i,n):a.getWidgetSearchParameters(i,n)},r)}function ny(e,t){var r=t.initialRecommendParameters,n=m_(t,xU);return e.reduce(function(i,a){return!Nr(a)&&a.dependsOn==="recommend"&&a.getWidgetParameters?a.getWidgetParameters(i,n):i},r)}function g_(e){var t=e.filter(Nr);t.length!==0&&t.forEach(function(r){var n=r.getHelper();v_(n,{state:n.state.resetPage(),recommendState:n.recommendState,isPageReset:!0}),g_(r.getWidgets())})}function y_(e){var t=e.filter(Nr);return t.reduce(function(r,n){return r.concat.apply(r,[{indexId:n.getIndexId(),results:n.getResults(),helper:n.getHelper()}].concat(p_(y_(n.getWidgets()))))},[])}var EU=function(t){if(t===void 0||t.indexName===void 0)throw new Error(ws("The `indexName` option is required."));var r=t.indexName,n=t.indexId,i=n===void 0?r:n,a=[],s={},o=null,l=null,u=null,c=null,f=null,d=!1,p=!1;return{$$type:"ais.index",$$widgetType:"ais.index",getIndexName:function(){return r},getIndexId:function(){return i},getHelper:function(){return u},getResults:function(){var m;return(m=c)!==null&&m!==void 0&&m.lastResults?(c.lastResults._state=u.state,c.lastResults):null},getResultsForWidget:function(m){var v;return m.dependsOn!=="recommend"||Nr(m)||m.$$id===void 0?this.getResults():(v=u)!==null&&v!==void 0&&v.lastRecommendResults?u.lastRecommendResults[m.$$id]:null},getPreviousState:function(){return f},getScopedResults:function(){var m=this.getParent(),v;return m?v=m.getWidgets():r.length===0?v=this.getWidgets():v=[this],y_(v)},getParent:function(){return l},createURL:function(m){return typeof m=="function"?o._createURL(ka({},i,m(s))):o._createURL(ka({},i,_s(a,{searchParameters:m,helper:u})))},getWidgets:function(){return a},addWidgets:function(m){var v=this;if(!Array.isArray(m))throw new Error(ws("The `addWidgets` method expects an array of widgets."));if(m.some(function(g){return typeof g.init!="function"&&typeof g.render!="function"}))throw new Error(ws("The widget definition expects a `render` and/or an `init` method."));return m.forEach(function(g){Nr(g)||(o&&g.dependsOn==="recommend"?o._hasRecommendWidget=!0:o?o._hasSearchWidget=!0:g.dependsOn==="recommend"?d=!0:p=!0,MO(g))}),a=a.concat(m),o&&Boolean(m.length)&&(v_(u,{state:Ss(a,{uiState:s,initialSearchParameters:u.state}),recommendState:ny(a,{uiState:s,initialRecommendParameters:u.recommendState}),_uiState:s}),m.forEach(function(g){if(g.getRenderState){var y=g.getRenderState(o.renderState[v.getIndexId()]||{},$s(o,v,o._initialUiState));wf({renderState:y,instantSearchInstance:o,parent:v})}}),m.forEach(function(g){g.init&&g.init($s(o,v,o._initialUiState))}),o.scheduleSearch()),this},removeWidgets:function(m){var v=this;if(!Array.isArray(m))throw new Error(ws("The `removeWidgets` method expects an array of widgets."));if(m.some(function(P){return typeof P.dispose!="function"}))throw new Error(ws("The widget definition expects a `dispose` method."));if(a=a.filter(function(P){return m.indexOf(P)===-1}),a.forEach(function(P){Nr(P)||(o&&P.dependsOn==="recommend"?o._hasRecommendWidget=!0:o?o._hasSearchWidget=!0:P.dependsOn==="recommend"?d=!0:p=!0)}),o&&Boolean(m.length)){var g=m.reduce(function(P,k){var A=k.dispose({helper:u,state:P.cleanedSearchState,recommendState:P.cleanedRecommendState,parent:v});return A instanceof er.RecommendParameters?P.cleanedRecommendState=A:A&&(P.cleanedSearchState=A),P},{cleanedSearchState:u.state,cleanedRecommendState:u.recommendState}),y=g.cleanedSearchState,_=g.cleanedRecommendState,b=o.future.preserveSharedStateOnUnmount?Ss(a,{uiState:s,initialSearchParameters:new er.SearchParameters({index:this.getIndexName()})}):Ss(a,{uiState:_s(a,{searchParameters:y,helper:u}),initialSearchParameters:y});s=_s(a,{searchParameters:b,helper:u}),u.setState(b),u.recommendState=_,a.length&&o.scheduleSearch()}return this},init:function(m){var v=this,g,y=m.instantSearchInstance,_=m.parent,b=m.uiState;if(u===null){o=y,l=_,s=b[i]||{};var P=y.mainHelper,k=Ss(a,{uiState:s,initialSearchParameters:new er.SearchParameters({index:r})}),A=ny(a,{uiState:s,initialRecommendParameters:new er.RecommendParameters});u=er({},k.index,k),u.recommendState=A,u.search=function(){return y.onStateChange?(y.onStateChange({uiState:y.mainIndex.getWidgetUiState({}),setUiState:function(M){return y.setUiState(M,!1)}}),P):P.search()},u.searchWithoutTriggeringOnStateChange=function(){return P.search()},u.searchForFacetValues=function(I,M,Z,B){var R=u.state.setQueryParameters(B);return P.searchForFacetValues(I,M,Z,R)},c=P.derive(function(){return Ls.apply(void 0,[P.state].concat(p_(fR(v))))},function(){return v.getHelper().recommendState});var U=(g=y._initialResults)===null||g===void 0?void 0:g[this.getIndexId()];if(U!=null&&U.results){var F=new er.SearchResults(new er.SearchParameters(U.state),U.results);c.lastResults=F,u.lastResults=F}if(U!=null&&U.recommendResults){var x=new er.RecommendResults(new er.RecommendParameters({params:U.recommendResults.params}),U.recommendResults.results);c.lastRecommendResults=x,u.lastRecommendResults=x}u.on("change",function(I){var M=I.isPageReset;M&&g_(a)}),c.on("search",function(){y.scheduleStalledRender()}),c.on("result",function(I){var M=I.results;y.scheduleRender(),u.lastResults=M,f=M==null?void 0:M._state}),c.on("recommend:result",function(I){var M=I.recommend;y.scheduleRender(),u.lastRecommendResults=M.results}),a.forEach(function(I){if(I.getRenderState){var M=I.getRenderState(y.renderState[v.getIndexId()]||{},$s(y,v,b));wf({renderState:M,instantSearchInstance:y,parent:v})}}),a.forEach(function(I){I.init&&I.init($s(y,v,b))}),u.on("change",function(I){var M=I.state,Z=I._uiState;s=_s(a,{searchParameters:M,helper:u},Z||{}),y.onStateChange||y.onInternalStateChange()}),U&&y.scheduleRender(),d&&(y._hasRecommendWidget=!0),p&&(y._hasSearchWidget=!0)}},render:function(m){var v,g=this,y=m.instantSearchInstance;y.status==="error"&&!y.mainHelper.hasPendingRequests()&&f&&u.setState(f);var _=this.getResults()||(v=c)!==null&&v!==void 0&&v.lastRecommendResults?a:a.filter(Nr);_=_.filter(function(b){return b.shouldRender?b.shouldRender({instantSearchInstance:y}):!0}),_.forEach(function(b){if(b.getRenderState){var P=b.getRenderState(y.renderState[g.getIndexId()]||{},Mm(y,g,b));wf({renderState:P,instantSearchInstance:y,parent:g})}}),_.forEach(function(b){b.render&&b.render(Mm(y,g,b))})},dispose:function(){var m=this,v,g;a.forEach(function(y){y.dispose&&u&&y.dispose({helper:u,state:u.state,recommendState:u.recommendState,parent:m})}),o=null,l=null,(v=u)===null||v===void 0||v.removeAllListeners(),u=null,(g=c)===null||g===void 0||g.detach(),c=null},getWidgetUiState:function(m){return a.filter(Nr).reduce(function(v,g){return g.getWidgetUiState(v)},bn(bn({},m),{},ka({},i,bn(bn({},m[i]),s))))},getWidgetState:function(m){return this.getWidgetUiState(m)},getWidgetSearchParameters:function(m,v){var g=v.uiState;return Ss(a,{uiState:g,initialSearchParameters:m})},refreshUiState:function(){s=_s(a,{searchParameters:this.getHelper().state,helper:this.getHelper()},s)},setIndexUiState:function(m){var v=typeof m=="function"?m(s):m;o.setUiState(function(g){return bn(bn({},g),{},ka({},i,v))})}}};const b_=EU;function wf(e){var t=e.renderState,r=e.instantSearchInstance,n=e.parent,i=n?n.getIndexId():r.mainIndex.getIndexId();r.renderState=bn(bn({},r.renderState),{},ka({},i,bn(bn({},r.renderState[i]),t)))}const IU={name:"AisIndex",mixins:[rt({name:"Index"}),gt({connector:function(){return b_}},{$$widgetType:"ais.index"})],provide:function(){var e=this;return{$_ais_getParentIndex:function(){return e.widget}}},props:{indexName:{type:String,required:!0},indexId:{type:String,required:!1}},render:os(function(e){return e("div",{},yc(this))}),computed:{widgetParams:function(){return{indexName:this.indexName,indexId:this.indexId}}}};var DU=["page"];function jU(e,t){if(e==null)return{};var r=FU(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(r[n]=e[n]))}return r}function FU(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function iy(e){var t=e||{};t.page;var r=jU(t,DU);return r}var _f="ais.infiniteHits";function MU(){return{read:function(t){var r=t.state,n=wn(function(a){var s=a.window;return s.sessionStorage});if(!n)return null;try{var i=JSON.parse(n.getItem(_f));return i&&rl(i.state,iy(r))?i.hits:null}catch(a){if(a instanceof SyntaxError)try{n.removeItem(_f)}catch{}return null}},write:function(t){var r=t.state,n=t.hits,i=wn(function(a){var s=a.window;return s.sessionStorage});if(!!i)try{i.setItem(_f,JSON.stringify({state:iy(r),hits:n}))}catch{}}}}function LU(e,t){return e.toLocaleString(t)}function Xo(e){return Xo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xo(e)}function ay(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jn(e){for(var t=1;t"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 qu(e){return qu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qu(e)}function ft(e,t,r){return t=__(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function __(e){var t=KU(e,"string");return Ja(t)==="symbol"?t:String(t)}function KU(e,t){if(Ja(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ja(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pn=wt({name:"instantsearch"});function GU(){return"#"}var S_={preserveSharedStateOnUnmount:!1,persistHierarchicalRootCount:!1},XU=function(e){VU(r,e);var t=YU(r);function r(n){var i;WU(this,r),i=t.call(this),ft(st(i),"client",void 0),ft(st(i),"indexName",void 0),ft(st(i),"insightsClient",void 0),ft(st(i),"onStateChange",null),ft(st(i),"future",void 0),ft(st(i),"helper",void 0),ft(st(i),"mainHelper",void 0),ft(st(i),"mainIndex",void 0),ft(st(i),"started",void 0),ft(st(i),"templatesConfig",void 0),ft(st(i),"renderState",{}),ft(st(i),"_stalledSearchDelay",void 0),ft(st(i),"_searchStalledTimer",void 0),ft(st(i),"_initialUiState",void 0),ft(st(i),"_initialResults",void 0),ft(st(i),"_createURL",void 0),ft(st(i),"_searchFunction",void 0),ft(st(i),"_mainHelperSearch",void 0),ft(st(i),"_hasSearchWidget",!1),ft(st(i),"_hasRecommendWidget",!1),ft(st(i),"_insights",void 0),ft(st(i),"middleware",[]),ft(st(i),"sendEventToInsights",void 0),ft(st(i),"status","idle"),ft(st(i),"error",void 0),ft(st(i),"scheduleSearch",fs(function(){i.started&&i.mainHelper.search()})),ft(st(i),"scheduleRender",fs(function(){var I,M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;(I=i.mainHelper)!==null&&I!==void 0&&I.hasPendingRequests()||(clearTimeout(i._searchStalledTimer),i._searchStalledTimer=null,M&&(i.status="idle",i.error=void 0)),i.mainIndex.render({instantSearchInstance:st(i)}),i.emit("render")})),ft(st(i),"onInternalStateChange",fs(function(){var I=i.mainIndex.getWidgetUiState({});i.middleware.forEach(function(M){var Z=M.instance;Z.onStateChange({uiState:I})})})),i.setMaxListeners(100);var a=n.indexName,s=a===void 0?"":a,o=n.numberLocale,l=n.initialUiState,u=l===void 0?{}:l,c=n.routing,f=c===void 0?null:c,d=n.insights,p=d===void 0?void 0:d,h=n.searchFunction,m=n.stalledSearchDelay,v=m===void 0?200:m,g=n.searchClient,y=g===void 0?null:g,_=n.insightsClient,b=_===void 0?null:_,P=n.onStateChange,k=P===void 0?null:P,A=n.future,U=A===void 0?Sf(Sf({},S_),n.future||{}):A;if(y===null)throw new Error(pn("The `searchClient` option is required."));if(typeof y.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 y.addAlgoliaAgent=="function"&&y.addAlgoliaAgent("instantsearch.js (".concat(w_,")")),b&&typeof b!="function")throw new Error(pn("The `insightsClient` option should be a function."));if(i.client=y,i.future=U,i.insightsClient=b,i.indexName=s,i.helper=null,i.mainHelper=null,i.mainIndex=b_({indexName:s}),i.onStateChange=k,i.started=!1,i.templatesConfig={helpers:BU({numberLocale:o}),compileOptions:{}},i._stalledSearchDelay=v,i._searchStalledTimer=null,i._createURL=GU,i._initialUiState=u,i._initialResults=null,i._insights=p,h&&(i._searchFunction=h),i.sendEventToInsights=Ke,f){var F=typeof f=="boolean"?{}:f;F.$$internal=!0,i.use($A(F))}if(p){var x=typeof p=="boolean"?{}:p;x.$$internal=!0,i.use(Kf(x))}return RA()&&i.use(AA({$$internal:!0})),i}return qU(r,[{key:"_isSearchStalled",get:function(){return this.status==="stalled"}},{key:"use",value:function(){for(var i=this,a=arguments.length,s=new Array(a),o=0;o0&&this.scheduleSearch();this.helper=this.mainIndex.getHelper(),this.started=!0,this.middleware.forEach(function(l){var u=l.instance;u.started()}),typeof this._insights>"u"&&a.derivedHelpers[0].once("result",function(){var l=i.mainIndex.getScopedResults().some(function(u){var c=u.results;return c==null?void 0:c._automaticInsights});l&&i.use(Kf({$$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(a){var s=a.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 a=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!this.mainHelper)throw new Error(pn("The `start` method needs to be called before `setUiState`."));this.mainIndex.refreshUiState();var o=typeof i=="function"?i(this.mainIndex.getWidgetUiState({})):i;this.onStateChange&&s?this.onStateChange({uiState:o,setUiState:function(u){qf(typeof u=="function"?u(o):u,a.mainIndex),a.scheduleSearch(),a.onInternalStateChange()}}):(qf(o,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(pn("The `start` method needs to be called before `createURL`."));return this._createURL(i)}},{key:"refresh",value:function(){if(!this.mainHelper)throw new Error(pn("The `start` method needs to be called before `refresh`."));this.mainHelper.clearCache().search()}}]),r}(vp),Qr=function(t){return new XU(t)};Qr.version=w_;Qr.createInfiniteHitsSessionStorageCache=Ci(MU);Qr.highlight=Ci(m0);Qr.reverseHighlight=Ci(v0);Qr.snippet=Ci(g0);Qr.reverseSnippet=Ci(y0);Qr.insights=b0;Qr.getInsightsAnonymousUserToken=SR;Object.defineProperty(Qr,"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(Qr,"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'`)}});Object.defineProperty(Qr,"templates",{get:function(){throw new ReferenceError(`"instantsearch.templates" are not available from the ES build. To import the templates: import { carousel } from 'instantsearch.js/es/templates'`)}});const ZU=Qr;var JU="4.19.5",P_=function(e){var t;return _o(((t={mixins:[rt({name:"InstantSearch"})],provide:function(){return{$_ais_instantSearchInstance:this.instantSearchInstance}},watch:{searchClient:function(r){Ma(!1),this.instantSearchInstance.helper.setClient(r).search()},indexName:function(r){this.instantSearchInstance.helper.setIndex(r||"").search()},stalledSearchDelay:function(r){this.instantSearchInstance._stalledSearchDelay=r},routing:function(){throw new Error(`routing configuration can not be changed dynamically at this point. Please open a new issue: https://github.com/algolia/instantsearch/discussions/new?category=ideas&labels=triage%2cLibrary%3A+Vue+InstantSearch&title=Feature%20request%3A%20dynamic%20props`)},onStateChange:function(){throw new Error(`onStateChange configuration can not be changed dynamically at this point. Please open a new issue: https://github.com/algolia/instantsearch/discussions/new?category=ideas&labels=triage%2cLibrary%3A+Vue+InstantSearch&title=Feature%20request%3A%20dynamic%20props`)},searchFunction:function(r){this.instantSearchInstance._searchFunction=r},middlewares:{immediate:!0,handler:function(r,n){var i=this;(n||[]).filter(function(a){return(r||[]).indexOf(a)===-1}).forEach(function(a){i.instantSearchInstance.unuse(a)}),(r||[]).filter(function(a){return(n||[]).indexOf(a)===-1}).forEach(function(a){i.instantSearchInstance.use(a)})}},future:function(r){this.instantSearchInstance.future=Object.assign(S_,r)}},created:function(){var r=this.instantSearchInstance.client;typeof r.addAlgoliaAgent=="function"&&(r.addAlgoliaAgent("Vue ("+zb+")"),r.addAlgoliaAgent("Vue InstantSearch ("+JU+")"))},mounted:function(){var r=this;this.$nextTick(function(){r.instantSearchInstance.started||r.instantSearchInstance.start()})}}).beforeUnmount=function(){this.instantSearchInstance.started&&this.instantSearchInstance.dispose(),this.instantSearchInstance.__initialSearchResults=void 0},t),e)},ly=`Vue InstantSearch: You used the prop api-key or app-id. These have been replaced by search-client. See more info here: https://www.algolia.com/doc/api-reference/widgets/instantsearch/vue/#widget-param-search-client`;const eB=P_({name:"AisInstantSearch",props:{searchClient:{type:Object,required:!0},insightsClient:{type:Function,default:void 0},indexName:{type:String,required:!0},routing:{default:void 0,validator:function(e){return!(typeof e=="boolean"||!e.router&&!e.stateMapping)||(Ma("The `routing` option expects an object with `router` and/or `stateMapping`.\n\nSee https://www.algolia.com/doc/api-reference/widgets/instantsearch/vue/#widget-param-routing"),!1)}},insights:{default:void 0,validator:function(e){return e===void 0||typeof e=="boolean"||typeof e=="object"}},stalledSearchDelay:{type:Number,default:void 0},searchFunction:{type:Function,default:void 0},onStateChange:{type:Function,default:void 0},initialUiState:{type:Object,default:void 0},apiKey:{type:String,default:void 0,validator:function(e){return e&&Ma(ly),!1}},appId:{type:String,default:void 0,validator:function(e){return e&&Ma(ly),!1}},middlewares:{type:Array,default:null},future:{type:Object,default:void 0}},data:function(){return{instantSearchInstance:ZU({searchClient:this.searchClient,insightsClient:this.insightsClient,insights:this.insights,indexName:this.indexName,routing:this.routing,stalledSearchDelay:this.stalledSearchDelay,searchFunction:this.searchFunction,onStateChange:this.onStateChange,initialUiState:this.initialUiState,future:this.future})}},render:os(function(e){var t;return e("div",{class:(t={},t[this.suit()]=!0,t[this.suit("","ssr")]=!1,t)},yc(this))})}),tB=P_({name:"AisInstantSearchSsr",inject:{$_ais_ssrInstantSearchInstance:{default:function(){throw new Error("`createServerRootMixin` is required when using SSR.")}}},data:function(){return{instantSearchInstance:this.$_ais_ssrInstantSearchInstance}},render:os(function(e){var t;return e("div",{class:(t={},t[this.suit()]=!0,t[this.suit("","ssr")]=!0,t)},yc(this))})}),x_={name:"AisInfiniteHits",mixins:[gt({connector:p8},{$$widgetType:"ais.infiniteHits"}),rt({name:"InfiniteHits"})],props:{showBanner:{type:Boolean,default:!0},showPrevious:{type:Boolean,default:!1},escapeHTML:{type:Boolean,default:!0},transformItems:{type:Function,default:void 0},cache:{type:Object,default:void 0}},computed:{widgetParams:function(){return{showBanner:this.showBanner,showPrevious:this.showPrevious,escapeHTML:this.escapeHTML,transformItems:this.transformItems,cache:this.cache}}},methods:{refinePrevious:function(){this.state.showPrevious()},refineNext:function(){this.state.showMore()}}};var rB=["disabled"],nB=["href","target"],iB=["src","alt"],aB=["src","alt"],sB=["onClick","onAuxclick"],oB=["disabled"];function lB(e,t,r,n,i,a){return e.state?(T(),W("div",{key:0,class:te(e.suit())},[r.showPrevious?se(e.$slots,"loadPrevious",{key:0,refinePrevious:a.refinePrevious,page:e.state.results.page,isFirstPage:e.state.isFirstPage},function(){return[O("button",{class:te([e.suit("loadPrevious"),e.state.isFirstPage&&e.suit("loadPrevious","disabled")]),disabled:e.state.isFirstPage,onClick:t[0]||(t[0]=function(s){return a.refinePrevious()})}," Show previous results ",10,rB)]}):ne("",!0),se(e.$slots,"default",{items:e.state.items,results:e.state.results,banner:e.state.banner,isLastPage:e.state.isLastPage,refinePrevious:a.refinePrevious,refineNext:a.refineNext,refine:a.refineNext,insights:e.state.insights,sendEvent:e.state.sendEvent},function(){return[r.showBanner&&e.state.banner&&e.state.banner.image.urls[0].url?se(e.$slots,"banner",{key:0,banner:e.state.banner},function(){return[O("aside",{class:te(e.suit("banner"))},[e.state.banner.link?(T(),W("a",{key:0,href:e.state.banner.link.url,target:e.state.banner.link.target,class:te(e.suit("banner-link"))},[O("img",{src:e.state.banner.image.urls[0].url,alt:e.state.banner.image.title,class:te(e.suit("banner-image"))},null,10,iB)],10,nB)):(T(),W("img",{key:1,src:e.state.banner.image.urls[0].url,alt:e.state.banner.image.title,class:te(e.suit("banner-image"))},null,10,aB))],2)]}):ne("",!0),O("ol",{class:te(e.suit("list"))},[(T(!0),W(ye,null,We(e.state.items,function(s,o){return T(),W("li",{class:te(e.suit("item")),key:s.objectID,onClick:function(l){return e.state.sendEvent("click:internal",s,"Hit Clicked")},onAuxclick:function(l){return e.state.sendEvent("click:internal",s,"Hit Clicked")}},[se(e.$slots,"item",{item:s,index:o,insights:e.state.insights,sendEvent:e.state.sendEvent},function(){return[He(" objectID: "+ge(s.objectID)+", index: "+ge(o),1)]})],42,sB)}),128))],2),se(e.$slots,"loadMore",{refineNext:a.refineNext,refine:a.refineNext,page:e.state.results.page,isLastPage:e.state.isLastPage},function(){return[O("button",{class:te([e.suit("loadMore"),e.state.isLastPage&&e.suit("loadMore","disabled")]),disabled:e.state.isLastPage,onClick:t[1]||(t[1]=function(s){return a.refineNext()})}," Show more results ",10,oB)]})]})],2)):ne("",!0)}x_.render=lB;const O_={name:"AisMenu",mixins:[rt({name:"Menu"}),gt({connector:Q1},{$$widgetType:"ais.menu"}),Tr()],props:{attribute:{type:String,required:!0},limit:{type:Number,default:void 0},showMoreLimit:{type:Number,default:void 0},showMore:{type:Boolean,default:!1},sortBy:{type:[Array,Function],default:void 0},transformItems:{type:Function,default:void 0}},computed:{widgetParams:function(){return{attribute:this.attribute,limit:this.limit,showMore:this.showMore,showMoreLimit:this.showMoreLimit,sortBy:this.sortBy,transformItems:this.transformItems}},showShowMoreButton:function(){return this.state.canRefine&&this.showMore}}};var uB=["href","onClick"],cB=["disabled"];function fB(e,t,r,n,i,a){return e.state?(T(),W("div",{key:0,class:te([e.suit(),!e.state.canRefine&&e.suit("","noRefinement")])},[se(e.$slots,"default",{items:e.state.items,canRefine:e.state.canRefine,canToggleShowMore:e.state.canToggleShowMore,isShowingMore:e.state.isShowingMore,refine:e.state.refine,createURL:e.state.createURL,toggleShowMore:e.state.toggleShowMore,sendEvent:e.state.sendEvent},function(){return[O("ul",{class:te(e.suit("list"))},[(T(!0),W(ye,null,We(e.state.items,function(s){return T(),W("li",{key:s.value,class:te([e.suit("item"),s.isRefined&&e.suit("item","selected")])},[O("a",{href:e.state.createURL(s.value),class:te(e.suit("link")),onClick:Se(function(o){return e.state.refine(s.value)},["exact","left","prevent"])},[O("span",{class:te(e.suit("label"))},ge(s.label),3),O("span",{class:te(e.suit("count"))},ge(s.count),3)],10,uB)],2)}),128))],2),a.showShowMoreButton?(T(),W("button",{key:0,class:te([e.suit("showMore"),!e.state.canToggleShowMore&&e.suit("showMore","disabled")]),disabled:!e.state.canToggleShowMore,onClick:t[0]||(t[0]=Se(function(){for(var s,o=[],l=arguments.length;l--;)o[l]=arguments[l];return e.state.toggleShowMore&&(s=e.state).toggleShowMore.apply(s,o)},["prevent"]))},[se(e.$slots,"showMoreLabel",{isShowingMore:e.state.isShowingMore},function(){return[He(ge(e.state.isShowingMore?"Show less":"Show more"),1)]})],10,cB)):ne("",!0)]})],2)):ne("",!0)}O_.render=fB;const $_={name:"AisMenuSelect",mixins:[rt({name:"MenuSelect"}),gt({connector:Q1},{$$widgetType:"ais.menuSelect"}),Tr()],props:{attribute:{type:String,required:!0},limit:{type:Number,default:10},sortBy:{type:[Array,Function],default:void 0},transformItems:{type:Function,default:function(e){return e}}},computed:{widgetParams:function(){return{attribute:this.attribute,limit:this.limit,sortBy:this.sortBy,transformItems:this.transformItems}}},methods:{refine:function(e){this.state.refine(e)}}};var dB=["value","selected"];function hB(e,t,r,n,i,a){return e.state?(T(),W("div",{key:0,class:te([e.suit(),!e.state.canRefine&&e.suit("","noRefinement")])},[se(e.$slots,"default",{items:e.state.items,canRefine:e.state.canRefine,refine:a.refine,createURL:e.state.createURL,sendEvent:e.state.sendEvent},function(){return[O("select",{class:te(e.suit("select")),onChange:t[0]||(t[0]=function(s){return a.refine(s.currentTarget.value)})},[O("option",{class:te(e.suit("option")),value:""},[se(e.$slots,"defaultOption",{},function(){return[He(" See all ")]})],2),(T(!0),W(ye,null,We(e.state.items,function(s){return T(),W("option",{key:s.value,class:te(e.suit("option")),value:s.value,selected:s.isRefined},[se(e.$slots,"item",{item:s},function(){return[He(ge(s.label)+" ("+ge(s.count)+") ",1)]})],10,dB)}),128))],34)]})],2)):ne("",!0)}$_.render=hB;const R_={name:"AisNumericMenu",mixins:[gt({connector:M8},{$$widgetType:"ais.numericMenu"}),rt({name:"NumericMenu"}),Tr()],props:{attribute:{type:String,required:!0},items:{type:Array,required:!0},transformItems:{type:Function,default:void 0}},computed:{widgetParams:function(){return{attribute:this.attribute,transformItems:this.transformItems,items:this.items}}}};var pB=["name","value","checked"];function mB(e,t,r,n,i,a){return e.state?(T(),W("div",{key:0,class:te([e.suit(),!e.state.canRefine&&e.suit("","noRefinement")])},[se(e.$slots,"default",{items:e.state.items,canRefine:e.state.canRefine,refine:e.state.refine,createURL:e.state.createURL,sendEvent:e.state.sendEvent},function(){return[O("ul",{class:te([e.suit("list")])},[(T(!0),W(ye,null,We(e.state.items,function(s){return T(),W("li",{key:s.label,class:te([e.suit("item"),s.isRefined&&e.suit("item","selected")])},[O("label",{class:te(e.suit("label"))},[O("input",{type:"radio",class:te(e.suit("radio")),name:r.attribute,value:s.value,checked:s.isRefined,onChange:t[0]||(t[0]=function(o){return e.state.refine(o.target.value)})},null,42,pB),O("span",{class:te(e.suit("labelText"))},ge(s.label),3)],2)],2)}),128))],2)]})],2)):ne("",!0)}R_.render=mB;const A_={name:"AisPagination",mixins:[rt({name:"Pagination"}),gt({connector:z8},{$$widgetType:"ais.pagination"}),Tr()],props:{padding:{type:Number,default:void 0,validator:function(e){return e>0}},totalPages:{type:Number,default:void 0,validator:function(e){return e>0}},showFirst:{type:Boolean,default:!0},showLast:{type:Boolean,default:!0},showNext:{type:Boolean,default:!0},showPrevious:{type:Boolean,default:!0}},computed:{widgetParams:function(){return{padding:this.padding,totalPages:this.totalPages}}},emits:["page-change"],methods:{refine:function(e){var t=Math.min(Math.max(e,0),this.state.nbPages-1);this.state.refine(t),this.$emit("page-change",t)}}};var vB=["href"],gB=["href"],yB=["href","aria-label","onClick"],bB=["href"],wB=["aria-label","href"],_B=["aria-label"];function SB(e,t,r,n,i,a){var s;return e.state?(T(),W("div",{key:0,class:te((s={},s[e.suit()]=!0,s[e.suit("","noRefinement")]=e.state.nbPages<=1,s))},[se(e.$slots,"default",{refine:a.refine,createURL:e.state.createURL,currentRefinement:e.state.currentRefinement,nbHits:e.state.nbHits,nbPages:e.state.nbPages,pages:e.state.pages,isFirstPage:e.state.isFirstPage,isLastPage:e.state.isLastPage},function(){var o,l,u,c;return[O("ul",{class:te(e.suit("list"))},[r.showFirst?(T(),W("li",{key:0,class:te((o={},o[e.suit("item")]=!0,o[e.suit("item","disabled")]=e.state.isFirstPage,o[e.suit("item","firstPage")]=!0,o))},[se(e.$slots,"first",{createURL:function(){return e.state.createURL(0)},isFirstPage:e.state.isFirstPage,refine:function(){return a.refine(0)}},function(){return[e.state.isFirstPage?(T(),W("span",{key:1,class:te(e.suit("link")),"aria-label":"First Page"},"\u2039\u2039",2)):(T(),W("a",{key:0,class:te(e.suit("link")),"aria-label":"First Page",href:e.state.createURL(0),onClick:t[0]||(t[0]=Se(function(f){return a.refine(0)},["exact","left","prevent"]))},"\u2039\u2039",10,vB))]})],2)):ne("",!0),r.showPrevious?(T(),W("li",{key:1,class:te((l={},l[e.suit("item")]=!0,l[e.suit("item","disabled")]=e.state.isFirstPage,l[e.suit("item","previousPage")]=!0,l))},[se(e.$slots,"previous",{createURL:function(){return e.state.createURL(e.state.currentRefinement-1)},isFirstPage:e.state.isFirstPage,refine:function(){return a.refine(e.state.currentRefinement-1)}},function(){return[e.state.isFirstPage?(T(),W("span",{key:1,class:te(e.suit("link")),"aria-label":"Previous Page"},"\u2039",2)):(T(),W("a",{key:0,class:te(e.suit("link")),"aria-label":"Previous Page",href:e.state.createURL(e.state.currentRefinement-1),onClick:t[1]||(t[1]=Se(function(f){return a.refine(e.state.currentRefinement-1)},["exact","left","prevent"]))},"\u2039",10,gB))]})],2)):ne("",!0),(T(!0),W(ye,null,We(e.state.pages,function(f){var d;return T(),W("li",{class:te((d={},d[e.suit("item")]=!0,d[e.suit("item","page")]=!0,d[e.suit("item","selected")]=e.state.currentRefinement===f,d)),key:f},[se(e.$slots,"item",{page:f,createURL:function(){return e.state.createURL(f)},isFirstPage:e.state.isFirstPage,isLastPage:e.state.isLastPage,refine:function(){return a.refine(f)}},function(){return[O("a",{class:te(e.suit("link")),href:e.state.createURL(f),"aria-label":"Page "+(f+1),onClick:Se(function(p){return a.refine(f)},["exact","left","prevent"])},ge(f+1),11,yB)]})],2)}),128)),r.showNext?(T(),W("li",{key:2,class:te((u={},u[e.suit("item")]=!0,u[e.suit("item","disabled")]=e.state.isLastPage,u[e.suit("item","nextPage")]=!0,u))},[se(e.$slots,"next",{createURL:function(){return e.state.createURL(e.state.currentRefinement+1)},isLastPage:e.state.isLastPage,refine:function(){return a.refine(e.state.currentRefinement+1)}},function(){return[e.state.isLastPage?(T(),W("span",{key:1,class:te(e.suit("link")),"aria-label":"Next Page"},"\u203A",2)):(T(),W("a",{key:0,class:te(e.suit("link")),"aria-label":"Next Page",href:e.state.createURL(e.state.currentRefinement+1),onClick:t[2]||(t[2]=Se(function(f){return a.refine(e.state.currentRefinement+1)},["exact","left","prevent"]))},"\u203A",10,bB))]})],2)):ne("",!0),r.showLast?(T(),W("li",{key:3,class:te((c={},c[e.suit("item")]=!0,c[e.suit("item","disabled")]=e.state.isLastPage,c[e.suit("item","lastPage")]=!0,c))},[se(e.$slots,"last",{createURL:function(){return e.state.createURL(e.state.nbPages-1)},isLastPage:e.state.isLastPage,refine:function(){return a.refine(e.state.nbPages-1)}},function(){return[e.state.isLastPage?(T(),W("span",{key:1,class:te(e.suit("link")),"aria-label":"Last Page, Page "+e.state.nbPages}," \u203A\u203A ",10,_B)):(T(),W("a",{key:0,class:te(e.suit("link")),"aria-label":"Last Page, Page "+e.state.nbPages,href:e.state.createURL(e.state.nbPages-1),onClick:t[3]||(t[3]=Se(function(f){return a.refine(e.state.nbPages-1)},["exact","left","prevent"]))},"\u203A\u203A",10,wB))]})],2)):ne("",!0)],2)]})],2)):ne("",!0)}A_.render=SB;const T_={name:"AisPanel",mixins:[rt({name:"Panel"}),K5()],methods:{getSlot:function(e){return this.$slots[e]}}};function PB(e,t,r,n,i,a){return T(),W("div",{class:te([e.suit(),!e.canRefine&&e.suit("","noRefinement")])},[a.getSlot("header")?(T(),W("div",{key:0,class:te(e.suit("header"))},[se(e.$slots,"header",{hasRefinements:e.canRefine})],2)):ne("",!0),O("div",{class:te(e.suit("body"))},[se(e.$slots,"default",{hasRefinements:e.canRefine})],2),a.getSlot("footer")?(T(),W("div",{key:1,class:te(e.suit("footer"))},[se(e.$slots,"footer",{hasRefinements:e.canRefine})],2)):ne("",!0)],2)}T_.render=PB;const k_={name:"AisPoweredBy",mixins:[rt({name:"PoweredBy"})],props:{theme:{default:"light",validator:function(e){return["light","dark"].indexOf(e)!==-1}}},computed:{algoliaUrl:function(){return"https://www.algolia.com/?utm_source=vue-instantsearch&utm_medium=website&utm_content="+(location?location.hostname:"")+"&utm_campaign=poweredby"}}};var xB=["href"],OB=["fill"],$B=["fill"];function RB(e,t,r,n,i,a){return T(),W("div",{class:te([e.suit(),e.suit("",r.theme)])},[O("a",{class:te(e.suit("link")),href:a.algoliaUrl,target:"_blank",rel:"noopener","aria-label":"search by Algolia"},[(T(),W("svg",{style:{height:"1.2em",width:"auto"},class:te([e.suit("logo"),e.suit("",r.theme)]),viewBox:"0 0 572 64"},[O("path",{fill:r.theme==="dark"?"#FFF":"#36395A",d:"M16 48.3c-3.4 0-6.3-.6-8.7-1.7A12.4 12.4 0 0 1 1.9 42C.6 40 0 38 0 35.4h6.5a6.7 6.7 0 0 0 3.9 6c1.4.7 3.3 1.1 5.6 1.1 2.2 0 4-.3 5.4-1a7 7 0 0 0 3-2.4 6 6 0 0 0 1-3.4c0-1.5-.6-2.8-1.9-3.7-1.3-1-3.3-1.6-5.9-1.8l-4-.4c-3.7-.3-6.6-1.4-8.8-3.4a10 10 0 0 1-3.3-7.9c0-2.4.6-4.6 1.8-6.4a12 12 0 0 1 5-4.3c2.2-1 4.7-1.6 7.5-1.6s5.5.5 7.6 1.6a12 12 0 0 1 5 4.4c1.2 1.8 1.8 4 1.8 6.7h-6.5a6.4 6.4 0 0 0-3.5-5.9c-1-.6-2.6-1-4.4-1s-3.2.3-4.4 1c-1.1.6-2 1.4-2.6 2.4-.5 1-.8 2-.8 3.1a5 5 0 0 0 1.5 3.6c1 1 2.6 1.7 4.7 1.9l4 .3c2.8.2 5.2.8 7.2 1.8 2.1 1 3.7 2.2 4.9 3.8a9.7 9.7 0 0 1 1.7 5.8c0 2.5-.7 4.7-2 6.6a13 13 0 0 1-5.6 4.4c-2.4 1-5.2 1.6-8.4 1.6Zm35.6 0c-2.6 0-4.8-.4-6.7-1.3a13 13 0 0 1-4.7-3.5 17.1 17.1 0 0 1-3.6-10.4v-1c0-2 .3-3.8 1-5.6a13 13 0 0 1 7.3-8.3 15 15 0 0 1 6.3-1.4A13.2 13.2 0 0 1 64 24.3c1 2.2 1.6 4.6 1.6 7.2V34H39.4v-4.3h21.8l-1.8 2.2c0-2-.3-3.7-.9-5.1a7.3 7.3 0 0 0-2.7-3.4c-1.2-.7-2.7-1.1-4.6-1.1s-3.4.4-4.7 1.3a8 8 0 0 0-2.9 3.6c-.6 1.5-.9 3.3-.9 5.4 0 2 .3 3.7 1 5.3a7.9 7.9 0 0 0 2.8 3.7c1.3.8 3 1.3 5 1.3s3.8-.5 5.1-1.3c1.3-1 2.1-2 2.4-3.2h6a11.8 11.8 0 0 1-7 8.7 16 16 0 0 1-6.4 1.2ZM80 48c-2.2 0-4-.3-5.7-1a8.4 8.4 0 0 1-3.7-3.3 9.7 9.7 0 0 1-1.3-5.2c0-2 .5-3.8 1.5-5.2a9 9 0 0 1 4.3-3.1c1.8-.7 4-1 6.7-1H89v4.1h-7.5c-2 0-3.4.5-4.4 1.4-1 1-1.6 2.1-1.6 3.6s.5 2.7 1.6 3.6c1 1 2.5 1.4 4.4 1.4 1.1 0 2.2-.2 3.2-.7 1-.4 1.9-1 2.6-2 .6-1 1-2.4 1-4.2l1.7 2.1c-.2 2-.7 3.8-1.5 5.2a9 9 0 0 1-3.4 3.3 12 12 0 0 1-5.3 1Zm9.5-.7v-8.8h-1v-10c0-1.8-.5-3.2-1.4-4.1-1-1-2.4-1.4-4.2-1.4a142.9 142.9 0 0 0-10.2.4v-5.6a74.8 74.8 0 0 1 8.6-.4c3 0 5.5.4 7.5 1.2s3.4 2 4.4 3.6c1 1.7 1.4 4 1.4 6.7v18.4h-5Zm12.9 0V17.8h5v12.3h-.2c0-4.2 1-7.4 2.8-9.5a11 11 0 0 1 8.3-3.1h1v5.6h-2a9 9 0 0 0-6.3 2.2c-1.5 1.5-2.2 3.6-2.2 6.4v15.6h-6.4Zm34.4 1a15 15 0 0 1-6.6-1.3c-1.9-.9-3.4-2-4.7-3.5a15.5 15.5 0 0 1-2.7-5c-.6-1.7-1-3.6-1-5.4v-1c0-2 .4-3.8 1-5.6a15 15 0 0 1 2.8-4.9c1.3-1.5 2.8-2.6 4.6-3.5a16.4 16.4 0 0 1 13.3.2c2 1 3.5 2.3 4.8 4a12 12 0 0 1 2 6H144c-.2-1.6-1-3-2.2-4.1a7.5 7.5 0 0 0-5.2-1.7 8 8 0 0 0-4.7 1.3 8 8 0 0 0-2.8 3.6 13.8 13.8 0 0 0 0 10.3c.6 1.5 1.5 2.7 2.8 3.6s2.8 1.3 4.8 1.3c1.5 0 2.7-.2 3.8-.8a7 7 0 0 0 2.6-2c.7-1 1-2 1.2-3.2h6.2a11 11 0 0 1-2 6.2 15.1 15.1 0 0 1-11.8 5.5Zm19.7-1v-40h6.4V31h-1.3c0-3 .4-5.5 1.1-7.6a9.7 9.7 0 0 1 3.5-4.8A9.9 9.9 0 0 1 172 17h.3c3.5 0 6 1.1 7.9 3.5 1.7 2.3 2.6 5.7 2.6 10v16.8h-6.4V29.6c0-2.1-.6-3.8-1.8-5a6.4 6.4 0 0 0-4.8-1.8c-2 0-3.7.7-5 2a7.8 7.8 0 0 0-1.9 5.5v17h-6.4Zm63.8 1a12.2 12.2 0 0 1-10.9-6.2 19 19 0 0 1-1.8-7.3h1.4v12.5h-5.1v-40h6.4v19.8l-2 3.5c.2-3.1.8-5.7 1.9-7.7a11 11 0 0 1 4.4-4.5c1.8-1 3.9-1.5 6.1-1.5a13.4 13.4 0 0 1 12.8 9.1c.7 1.9 1 3.8 1 6v1c0 2.2-.3 4.1-1 6a13.6 13.6 0 0 1-13.2 9.4Zm-1.2-5.5a8.4 8.4 0 0 0 7.9-5c.7-1.5 1.1-3.3 1.1-5.3s-.4-3.8-1.1-5.3a8.7 8.7 0 0 0-3.2-3.6 9.6 9.6 0 0 0-9.2-.2 8.5 8.5 0 0 0-3.3 3.2c-.8 1.4-1.3 3-1.3 5v2.3a9 9 0 0 0 1.3 4.8 9 9 0 0 0 3.4 3c1.4.7 2.8 1 4.4 1Zm27.3 3.9-10-28.9h6.5l9.5 28.9h-6Zm-7.5 12.2v-5.7h4.9c1 0 2-.1 2.9-.4a4 4 0 0 0 2-1.4c.4-.7.9-1.6 1.2-2.7l8.6-30.9h6.2l-9.3 32.4a14 14 0 0 1-2.5 5 8.9 8.9 0 0 1-4 2.8c-1.5.6-3.4.9-5.6.9h-4.4Zm9-12.2v-5.2h6.4v5.2H248Z"},null,8,OB),O("path",{fill:r.theme==="dark"?"#FFF":"#003DFF",d:"M534.4 9.1H528a.8.8 0 0 1-.7-.7V1.8c0-.4.2-.7.6-.8l6.5-1c.4 0 .8.2.9.6v7.8c0 .4-.4.7-.8.7zM428 35.2V.8c0-.5-.3-.8-.7-.8h-.2l-6.4 1c-.4 0-.7.4-.7.8v35c0 1.6 0 11.8 12.3 12.2.5 0 .8-.4.8-.8V43c0-.4-.3-.7-.6-.8-4.5-.5-4.5-6-4.5-7zm106.5-21.8H528c-.4 0-.7.4-.7.8v34c0 .4.3.8.7.8h6.5c.4 0 .8-.4.8-.8v-34c0-.5-.4-.8-.8-.8zm-17.7 21.8V.8c0-.5-.3-.8-.8-.8l-6.5 1c-.4 0-.7.4-.7.8v35c0 1.6 0 11.8 12.3 12.2.4 0 .8-.4.8-.8V43c0-.4-.3-.7-.7-.8-4.4-.5-4.4-6-4.4-7zm-22.2-20.6a16.5 16.5 0 0 1 8.6 9.3c.8 2.2 1.3 4.8 1.3 7.5a19.4 19.4 0 0 1-4.6 12.6 14.8 14.8 0 0 1-5.2 3.6c-2 .9-5.2 1.4-6.8 1.4a21 21 0 0 1-6.7-1.4 15.4 15.4 0 0 1-8.6-9.3 21.3 21.3 0 0 1 0-14.4 15.2 15.2 0 0 1 8.6-9.3c2-.8 4.3-1.2 6.7-1.2s4.6.4 6.7 1.2zm-6.7 27.6c2.7 0 4.7-1 6.2-3s2.2-4.3 2.2-7.8-.7-6.3-2.2-8.3-3.5-3-6.2-3-4.7 1-6.1 3c-1.5 2-2.2 4.8-2.2 8.3s.7 5.8 2.2 7.8 3.5 3 6.2 3zm-88.8-28.8c-6.2 0-11.7 3.3-14.8 8.2a18.6 18.6 0 0 0 4.8 25.2c1.8 1.2 4 1.8 6.2 1.7s.1 0 .1 0h.9c4.2-.7 8-4 9.1-8.1v7.4c0 .4.3.7.8.7h6.4a.7.7 0 0 0 .7-.7V14.2c0-.5-.3-.8-.7-.8h-13.5zm6.3 26.5a9.8 9.8 0 0 1-5.7 2h-.5a10 10 0 0 1-9.2-14c1.4-3.7 5-6.3 9-6.3h6.4v18.3zm152.3-26.5h13.5c.5 0 .8.3.8.7v33.7c0 .4-.3.7-.8.7h-6.4a.7.7 0 0 1-.8-.7v-7.4c-1.2 4-4.8 7.4-9 8h-.1a4.2 4.2 0 0 1-.5.1h-.9a10.3 10.3 0 0 1-7-2.6c-4-3.3-6.5-8.4-6.5-14.2 0-3.7 1-7.2 3-10 3-5 8.5-8.3 14.7-8.3zm.6 28.4c2.2-.1 4.2-.6 5.7-2V21.7h-6.3a9.8 9.8 0 0 0-9 6.4 10.2 10.2 0 0 0 9.1 13.9h.5zM452.8 13.4c-6.2 0-11.7 3.3-14.8 8.2a18.5 18.5 0 0 0 3.6 24.3 10.4 10.4 0 0 0 13 .6c2.2-1.5 3.8-3.7 4.5-6.1v7.8c0 2.8-.8 5-2.2 6.3-1.5 1.5-4 2.2-7.5 2.2l-6-.3c-.3 0-.7.2-.8.5l-1.6 5.5c-.1.4.1.8.5 1h.1c2.8.4 5.5.6 7 .6 6.3 0 11-1.4 14-4.1 2.7-2.5 4.2-6.3 4.5-11.4V14.2c0-.5-.4-.8-.8-.8h-13.5zm6.3 8.2v18.3a9.6 9.6 0 0 1-5.6 2h-1a10.3 10.3 0 0 1-8.8-14c1.4-3.7 5-6.3 9-6.3h6.4zM291 31.5A32 32 0 0 1 322.8 0h30.8c.6 0 1.2.5 1.2 1.2v61.5c0 1.1-1.3 1.7-2.2 1l-19.2-17a18 18 0 0 1-11 3.4 18.1 18.1 0 1 1 18.2-14.8c-.1.4-.5.7-.9.6-.1 0-.3 0-.4-.2l-3.8-3.4c-.4-.3-.6-.8-.7-1.4a12 12 0 1 0-2.4 8.3c.4-.4 1-.5 1.6-.2l14.7 13.1v-46H323a26 26 0 1 0 10 49.7c.8-.4 1.6-.2 2.3.3l3 2.7c.3.2.3.7 0 1l-.2.2a32 32 0 0 1-47.2-28.6z"},null,8,$B)],2))],10,xB)],2)}k_.render=RB;const AB={name:"AisQueryRuleContext",mixins:[rt({name:"QueryRuleContext"}),gt({connector:n_},{$$widgetType:"ais.queryRuleContext"})],props:{trackedFilters:{type:Object,required:!0},transformRuleContexts:{type:Function,required:!1,default:void 0}},computed:{widgetParams:function(){return{trackedFilters:this.trackedFilters,transformRuleContexts:this.transformRuleContexts}}},render:function(){return null}},C_={name:"AisQueryRuleCustomData",mixins:[rt({name:"QueryRuleCustomData"}),gt({connector:n_},{$$widgetType:"ais.queryRuleCustomData"})],props:{transformItems:{type:Function,required:!1,default:void 0}},computed:{widgetParams:function(){return{transformItems:this.transformItems}}}};function TB(e,t,r,n,i,a){return e.state?(T(),W("div",{key:0,class:te(e.suit())},[se(e.$slots,"default",{items:e.state.items},function(){return[(T(!0),W(ye,null,We(e.state.items,function(s,o){return T(),W("div",{key:o},[se(e.$slots,"item",{item:s},function(){return[O("pre",null,ge(s),1)]})])}),128))]})],2)):ne("",!0)}C_.render=TB;const E_={name:"AisRangeInput",mixins:[rt({name:"RangeInput"}),gt({connector:n6},{$$widgetType:"ais.rangeInput"}),Tr()],props:{attribute:{type:String,required:!0},min:{type:Number,required:!1,default:void 0},max:{type:Number,required:!1,default:void 0},precision:{type:Number,required:!1,default:0}},data:function(){return{minInput:void 0,maxInput:void 0}},updated:function(){this.minInput=void 0,this.maxInput=void 0},computed:{widgetParams:function(){return{attribute:this.attribute,min:this.min,max:this.max,precision:this.precision}},step:function(){return 1/Math.pow(10,this.precision)},values:function(){var e=this.state.start,t=e[0],r=e[1],n=this.state.range,i=n.min,a=n.max;return{min:t!==-1/0&&t!==i?t:void 0,max:r!==1/0&&r!==a?r:void 0}}},methods:{pick:function(e,t){return e!=null?e:t},refine:function(e){var t=e.min,r=e.max;this.state.refine([t,r])}}};var kB=["step","min","max","placeholder","value"],CB=["step","min","max","placeholder","value"];function EB(e,t,r,n,i,a){return e.state?(T(),W("div",{key:0,class:te([e.suit(),!e.state.canRefine&&e.suit("","noRefinement")])},[se(e.$slots,"default",{currentRefinement:a.values,refine:a.refine,canRefine:e.state.canRefine,range:e.state.range,sendEvent:e.state.sendEvent},function(){return[O("form",{class:te(e.suit("form")),onSubmit:t[2]||(t[2]=Se(function(s){return a.refine({min:a.pick(i.minInput,a.values.min),max:a.pick(i.maxInput,a.values.max)})},["prevent"]))},[O("label",{class:te(e.suit("label"))},[se(e.$slots,"minLabel"),O("input",{type:"number",class:te([e.suit("input"),e.suit("input","min")]),step:a.step,min:e.state.range.min,max:e.state.range.max,placeholder:e.state.range.min,value:a.values.min,onChange:t[0]||(t[0]=function(s){return i.minInput=s.currentTarget.value})},null,42,kB)],2),O("span",{class:te(e.suit("separator"))},[se(e.$slots,"separator",{},function(){return[He("to")]})],2),O("label",{class:te(e.suit("label"))},[se(e.$slots,"maxLabel"),O("input",{class:te([e.suit("input"),e.suit("input","max")]),type:"number",step:a.step,min:e.state.range.min,max:e.state.range.max,placeholder:e.state.range.max,value:a.values.max,onChange:t[1]||(t[1]=function(s){return i.maxInput=s.currentTarget.value})},null,42,CB)],2),O("button",{class:te(e.suit("submit")),type:"submit"},[se(e.$slots,"submitLabel",{},function(){return[He(" Go ")]})],2)],34)]})],2)):ne("",!0)}E_.render=EB;const I_={name:"AisRatingMenu",mixins:[rt({name:"RatingMenu"}),gt({connector:F6},{$$widgetType:"ais.ratingMenu"}),Tr()],props:{attribute:{type:String,required:!0},max:{type:Number,default:void 0}},computed:{widgetParams:function(){return{attribute:this.attribute,max:this.max}}}};var IB={style:{display:"none"}},DB=[O("symbol",{id:"ais-RatingMenu-starSymbol",viewBox:"0 0 24 24"},[O("path",{d:"M12 .288l2.833 8.718h9.167l-7.417 5.389 2.833 8.718-7.416-5.388-7.417 5.388 2.833-8.718-7.416-5.389h9.167z"})],-1),O("symbol",{id:"ais-RatingMenu-starEmptySymbol",viewBox:"0 0 24 24"},[O("path",{d:"M12 6.76l1.379 4.246h4.465l-3.612 2.625 1.379 4.246-3.611-2.625-3.612 2.625 1.379-4.246-3.612-2.625h4.465l1.38-4.246zm0-6.472l-2.833 8.718h-9.167l7.416 5.389-2.833 8.718 7.417-5.388 7.416 5.388-2.833-8.718 7.417-5.389h-9.167l-2.833-8.718z"})],-1)],jB=["href","aria-label","onClick"],FB=[O("use",{"xlink:href":"#ais-RatingMenu-starSymbol"},null,-1)],MB=[O("use",{"xlink:href":"#ais-RatingMenu-starEmptySymbol"},null,-1)];function LB(e,t,r,n,i,a){return e.state?(T(),W("div",{key:0,class:te(e.suit())},[se(e.$slots,"default",{items:e.state.items,refine:e.state.refine,createURL:e.state.createURL,sendEvent:e.state.sendEvent,canRefine:e.state.canRefine},function(){return[(T(),W("svg",IB,DB)),O("ul",{class:te(e.suit("list"))},[(T(!0),W(ye,null,We(e.state.items,function(s,o){return T(),W("li",{key:o,class:te([e.suit("item"),s.isRefined&&e.suit("item","selected")])},[O("div",null,[O("a",{href:e.state.createURL(s.value),"aria-label":s.value+" & up",class:te(e.suit("link")),onClick:Se(function(l){return e.state.refine(s.value)},["exact","left","prevent"])},[(T(!0),W(ye,null,We(s.stars,function(l,u){return T(),W(ye,null,[l?(T(),W("svg",{"aria-hidden":"true",width:"24",height:"24",class:te([e.suit("starIcon"),e.suit("starIcon--full")]),key:u+"-full"},FB,2)):(T(),W("svg",{class:te([e.suit("starIcon"),e.suit("starIcon--empty")]),"aria-hidden":"true",width:"24",height:"24",key:u+"-empty"},MB,2))],64)}),256)),O("span",{class:te(e.suit("label")),"aria-hidden":"true"},[se(e.$slots,"andUp",{},function(){return[He("& Up")]})],2),O("span",{class:te(e.suit("count"))},ge(s.count),3)],10,jB)])],2)}),128))],2)]})],2)):ne("",!0)}I_.render=LB;const Op={name:"SearchInput",mixins:[rt({name:"SearchBox"})],props:{placeholder:{type:String,default:"Search here\u2026"},autofocus:{type:Boolean,default:!1},showLoadingIndicator:{type:Boolean,default:!1},shouldShowLoadingIndicator:{type:Boolean,default:!1},ignoreCompositionEvents:{type:Boolean,default:!1},submitTitle:{type:String,default:"Search"},resetTitle:{type:String,default:"Clear"},value:{type:String,required:!1,default:void 0},modelValue:{type:String,required:!1,default:void 0}},emits:["input","update:modelValue","blur","focus","reset"],data:function(){return{query:""}},methods:{isFocused:function(){return document.activeElement===this.$refs.input},onInput:function(e){this.ignoreCompositionEvents&&e.isComposing||(this.$emit("input",e.target.value),this.$emit("update:modelValue",e.target.value))},onFormSubmit:function(){this.$refs.input.blur()},onFormReset:function(){this.$emit("input",""),this.$emit("update:modelValue",""),this.$emit("reset")}}};var NB=["placeholder","autofocus","value"],HB=["title","hidden"],UB=[O("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"},null,-1)],BB=["title","hidden"],WB=[O("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"},null,-1)],qB=["hidden"],VB=["aria-hidden"],YB=[to('',1)];function QB(e,t,r,n,i,a){return T(),W("form",{action:"",role:"search",novalidate:"",class:te(e.suit("form")),onSubmit:t[4]||(t[4]=Se(function(){for(var s=[],o=arguments.length;o--;)s[o]=arguments[o];return a.onFormSubmit&&a.onFormSubmit.apply(a,s)},["prevent"])),onReset:t[5]||(t[5]=Se(function(){for(var s=[],o=arguments.length;o--;)s[o]=arguments[o];return a.onFormReset&&a.onFormReset.apply(a,s)},["prevent"]))},[O("input",{type:"search",autocorrect:"off",autocapitalize:"off",autocomplete:"off",spellcheck:"false",maxlength:"512","aria-label":"Search",placeholder:r.placeholder,autofocus:r.autofocus,class:te(e.suit("input")),value:r.value||r.modelValue,onFocus:t[0]||(t[0]=function(s){return e.$emit("focus",s)}),onBlur:t[1]||(t[1]=function(s){return e.$emit("blur",s)}),onInput:t[2]||(t[2]=function(s){return a.onInput(s)}),onCompositionend:t[3]||(t[3]=function(s){return a.onInput(s)}),ref:"input"},null,42,NB),O("button",{type:"submit",title:r.submitTitle,class:te(e.suit("submit")),hidden:r.showLoadingIndicator&&r.shouldShowLoadingIndicator},[se(e.$slots,"submit-icon",{},function(){return[(T(),W("svg",{"aria-hidden":"true",width:"10",height:"10",viewBox:"0 0 40 40",class:te(e.suit("submitIcon"))},UB,2))]})],10,HB),O("button",{type:"reset",title:r.resetTitle,class:te(e.suit("reset")),hidden:!r.value&&!r.modelValue||r.showLoadingIndicator&&r.shouldShowLoadingIndicator},[se(e.$slots,"reset-icon",{},function(){return[(T(),W("svg",{"aria-hidden":"true",height:"10",viewBox:"0 0 20 20",class:te(e.suit("resetIcon")),width:"10"},WB,2))]})],10,BB),r.showLoadingIndicator?(T(),W("span",{key:0,hidden:!r.shouldShowLoadingIndicator,class:te(e.suit("loadingIndicator"))},[se(e.$slots,"loading-indicator",{},function(){return[(T(),W("svg",{"aria-hidden":!r.shouldShowLoadingIndicator,"aria-label":"Results are loading",width:"16",height:"16",stroke:"#444",viewBox:"0 0 38 38",class:te(e.suit("loadingIcon"))},YB,10,VB))]})],10,qB)):ne("",!0)],34)}Op.render=QB;var zB=function(){};const D_={name:"AisRefinementList",components:{SearchInput:Op,AisHighlight:xp},mixins:[rt({name:"RefinementList"}),gt({connector:f6},{$$widgetType:"ais.refinementList"}),Tr()],props:{attribute:{type:String,required:!0},searchable:{type:Boolean,default:void 0},searchablePlaceholder:{type:String,required:!1,default:"Search here\u2026"},operator:{default:"or",validator:function(e){return e==="and"||e==="or"},required:!1},limit:{type:Number,required:!1,default:void 0},showMoreLimit:{type:Number,required:!1,default:void 0},showMore:{type:Boolean,required:!1,default:!1},sortBy:{type:[Array,Function],required:!1,default:void 0},transformItems:{type:Function,required:!1,default:void 0}},data:function(){return{searchForFacetValuesQuery:""}},computed:{searchForFacetValues:{get:function(){return this.searchForFacetValuesQuery},set:function(e){this.state.searchForItems(e),this.searchForFacetValuesQuery=e}},toggleShowMore:function(){return this.state.toggleShowMore||zB},items:function(){return this.state.items.map(function(e){return Object.assign({},e,{_highlightResult:{item:{value:e.highlighted}}})})},widgetParams:function(){return{attribute:this.attribute,operator:this.operator,limit:this.limit,showMore:this.showMore,showMoreLimit:this.showMoreLimit,sortBy:this.sortBy,escapeFacetValues:!0,transformItems:this.transformItems}}},methods:{refine:function(e){this.state.refine(e),this.searchForFacetValuesQuery=""}}};var KB=["value","checked","onChange"],GB=["disabled"];function XB(e,t,r,n,i,a){var s=Fe("search-input"),o=Fe("ais-highlight");return e.state?(T(),W("div",{key:0,class:te([e.suit(),a.items.length===0&&e.suit("","noRefinement")])},[se(e.$slots,"default",{items:a.items,refine:a.refine,searchForItems:e.state.searchForItems,searchForItemsQuery:i.searchForFacetValuesQuery,toggleShowMore:a.toggleShowMore,canToggleShowMore:e.state.canToggleShowMore,isShowingMore:e.state.isShowingMore,createURL:e.state.createURL,isFromSearch:e.state.isFromSearch,canRefine:e.state.canRefine,sendEvent:e.state.sendEvent},function(){var l;return[r.searchable?(T(),W("div",{key:0,class:te(e.suit("searchBox"))},[Ae(s,{modelValue:a.searchForFacetValues,"onUpdate:modelValue":t[0]||(t[0]=function(u){return a.searchForFacetValues=u}),"show-loading-indicator":!0,placeholder:r.searchablePlaceholder,"class-names":e.classNames},null,8,["modelValue","placeholder","class-names"])],2)):ne("",!0),e.state.isFromSearch&&a.items.length===0?se(e.$slots,"noResults",{key:1,query:a.searchForFacetValues},function(){return[O("div",{class:te(e.suit("noResults"))},"No results.",2)]}):ne("",!0),a.items.length>0?(T(),W("ul",{key:2,class:te(e.suit("list"))},[(T(!0),W(ye,null,We(a.items,function(u){return T(),W("li",{class:te([e.suit("item"),u.isRefined&&e.suit("item","selected")]),key:u.value},[se(e.$slots,"item",{item:u,refine:a.refine,createURL:e.state.createURL},function(){return[O("label",{class:te(e.suit("label"))},[O("input",{class:te(e.suit("checkbox")),type:"checkbox",value:u.value,checked:u.isRefined,onChange:function(c){return a.refine(u.value)}},null,42,KB),r.searchable?(T(),W("span",{key:0,class:te(e.suit("labelText"))},[Ae(o,{attribute:"item",hit:u},null,8,["hit"])],2)):(T(),W("span",{key:1,class:te(e.suit("labelText"))},ge(u.label),3)),O("span",{class:te(e.suit("count"))},ge(u.count),3)],2)]})],2)}),128))],2)):ne("",!0),r.showMore?(T(),W("button",{key:3,class:te([e.suit("showMore"),(l={},l[e.suit("showMore","disabled")]=!e.state.canToggleShowMore,l)]),onClick:t[1]||(t[1]=function(){for(var u=[],c=arguments.length;c--;)u[c]=arguments[c];return a.toggleShowMore&&a.toggleShowMore.apply(a,u)}),disabled:!e.state.canToggleShowMore},[se(e.$slots,"showMoreLabel",{isShowingMore:e.state.isShowingMore},function(){return[He(" Show "+ge(e.state.isShowingMore?"less":"more"),1)]})],10,GB)):ne("",!0)]})],2)):ne("",!0)}D_.render=XB;var Bl;const j_=((Bl={name:"AisStateResults",mixins:[gt({connector:!0}),rt({name:"StateResults"})],props:{catchError:{type:Boolean,default:!1}},data:function(){var e=this;return{renderFn:function(){var t=e.instantSearchInstance,r=t.status,n=t.error,i=e.getParentIndex().getResults(),a=e.getParentIndex().getHelper(),s=a?a.state:null;e.state={results:i,state:s,status:r,error:n}}}},created:function(){this.instantSearchInstance.addListener("render",this.renderFn),this.renderFn()}}).beforeUnmount=function(){this.widget&&(this.instantSearchInstance.removeListener("render",this.renderFn),this.errorFn&&this.instantSearchInstance.removeListener("error",this.errorFn))},Bl.watch={catchError:{immediate:!0,handler:function(e){e?(this.errorFn=function(){},this.instantSearchInstance.addListener("error",this.errorFn)):this.errorFn&&(this.instantSearchInstance.removeListener("error",this.errorFn),this.errorFn=void 0)}}},Bl.computed={stateResults:function(){var e=this.state,t=e.results,r=e.state,n=e.status,i=e.error;return _o({},t,{results:t,state:r,status:n,error:i})}},Bl);var ZB=O("p",null," Use this component to have a different layout based on a certain state. ",-1),JB=O("p",null,"Fill in the slot, and get access to the following things:",-1);function e7(e,t,r,n,i,a){return e.state&&e.state.state&&e.state.results?(T(),W("div",{key:0,class:te(e.suit())},[se(e.$slots,"default",Qe(lt(a.stateResults)),function(){return[ZB,JB,O("pre",null,"results: "+ge(Object.keys(e.state.results)),1),O("pre",null,"state: "+ge(Object.keys(e.state.state)),1),O("pre",null,"status: "+ge(e.state.status),1),O("pre",null,"error: "+ge(e.state.error),1)]})],2)):ne("",!0)}j_.render=e7;const F_={name:"AisSearchBox",mixins:[gt({connector:y6},{$$widgetType:"ais.searchBox"}),rt({name:"SearchBox"})],components:{SearchInput:Op},props:{placeholder:{type:String,default:""},autofocus:{type:Boolean,default:!1},showLoadingIndicator:{type:Boolean,default:!0},ignoreCompositionEvents:{type:Boolean,default:!1},submitTitle:{type:String,default:"Submit the search query"},resetTitle:{type:String,default:"Clear the search query"},value:{type:String,default:void 0},modelValue:{type:String,default:void 0},queryHook:{type:Function,default:void 0}},data:function(){return{localValue:"",isVue2:fN,isVue3:dN}},computed:{widgetParams:function(){return{queryHook:this.queryHook}},isControlled:function(){return this.value!==void 0||this.modelValue!==void 0},model:function(){return this.value||this.modelValue},currentRefinement:{get:function(){this.isControlled&&this.model!==this.localValue&&(this.localValue=this.model,this.$emit("input",this.model),this.$emit("update:modelValue",this.model),this.state.refine(this.model));var e=this.$refs.searchInput;return e&&e.isFocused()?this.localValue:this.model||this.state.query||""},set:function(e){this.localValue=e,this.state.refine(e),this.isControlled&&(this.$emit("input",e),this.$emit("update:modelValue",e))}}}};function t7(e,t,r,n,i,a){var s=Fe("search-input");return e.state?(T(),W("div",{key:0,class:te(e.suit())},[se(e.$slots,"default",{currentRefinement:a.currentRefinement,isSearchStalled:e.state.isSearchStalled,refine:e.state.refine},function(){return[Ae(s,{onFocus:t[0]||(t[0]=function(o){return e.$emit("focus",o)}),onBlur:t[1]||(t[1]=function(o){return e.$emit("blur",o)}),onReset:t[2]||(t[2]=function(o){return e.$emit("reset")}),placeholder:r.placeholder,autofocus:r.autofocus,"show-loading-indicator":r.showLoadingIndicator,"should-show-loading-indicator":e.state.isSearchStalled,"ignore-composition-events":r.ignoreCompositionEvents,"submit-title":r.submitTitle,"reset-title":r.resetTitle,"class-names":e.classNames,modelValue:a.currentRefinement,"onUpdate:modelValue":t[3]||(t[3]=function(o){return a.currentRefinement=o}),ref:"searchInput"},nr({default:Ie(function(){return[i.isVue2?se(e.$slots,"loading-indicator",{key:0,slot:"loading-indicator"}):ne("",!0),i.isVue2?se(e.$slots,"submit-icon",{key:1,slot:"submit-icon"}):ne("",!0),i.isVue2?se(e.$slots,"reset-icon",{key:2,slot:"reset-icon"}):ne("",!0)]}),_:2},[i.isVue3?{name:"loading-indicator",fn:Ie(function(){return[se(e.$slots,"loading-indicator")]}),key:"0"}:void 0,i.isVue3?{name:"submit-icon",fn:Ie(function(){return[se(e.$slots,"submit-icon")]}),key:"1"}:void 0,i.isVue3?{name:"reset-icon",fn:Ie(function(){return[se(e.$slots,"reset-icon")]}),key:"2"}:void 0]),1032,["placeholder","autofocus","show-loading-indicator","should-show-loading-indicator","ignore-composition-events","submit-title","reset-title","class-names","modelValue"])]})],2)):ne("",!0)}F_.render=t7;const M_={name:"AisSnippet",mixins:[rt({name:"Snippet"})],components:{AisHighlighter:d_},props:{hit:{type:Object,required:!0},attribute:{type:String,required:!0},highlightedTagName:{type:String,default:"mark"}}};function r7(e,t,r,n,i,a){var s=Fe("ais-highlighter");return T(),Re(s,{hit:r.hit,attribute:r.attribute,"highlighted-tag-name":r.highlightedTagName,suit:e.suit,"highlight-property":"_snippetResult","pre-tag":"","post-tag":""},null,8,["hit","attribute","highlighted-tag-name","suit"])}M_.render=r7;const L_={name:"AisSortBy",mixins:[rt({name:"SortBy"}),gt({connector:P6},{$$widgetType:"ais.sortBy"}),Tr()],props:{items:{type:Array,required:!0},transformItems:{type:Function,default:void 0}},computed:{widgetParams:function(){return{items:this.items,transformItems:this.transformItems}}}};var n7=["value","selected"];function i7(e,t,r,n,i,a){return e.state?(T(),W("div",{key:0,class:te(e.suit())},[se(e.$slots,"default",{items:e.state.options,hasNoResults:e.state.hasNoResults,refine:e.state.refine,currentRefinement:e.state.currentRefinement,canRefine:e.state.canRefine},function(){return[O("select",{class:te(e.suit("select")),onChange:t[0]||(t[0]=function(s){return e.state.refine(s.currentTarget.value)}),"aria-label":"Sort results by"},[(T(!0),W(ye,null,We(e.state.options,function(s){return T(),W("option",{key:s.value,class:te(e.suit("option")),value:s.value,selected:s.value===e.state.currentRefinement},ge(s.label),11,n7)}),128))],34)]})],2)):ne("",!0)}L_.render=i7;const N_={name:"AisStats",mixins:[gt({connector:B6},{$$widgetType:"ais.stats"}),rt({name:"Stats"})],computed:{sortedResultsSentence:function(){var e=this.state,t=e.nbHits,r=e.nbSortedHits,n="sorted out of "+t.toLocaleString();return r===0?"No relevant results "+n:r===1?"1 relevant result "+n:r>1?(r||0).toLocaleString()+" relevant results "+n:""},resultsSentence:function(){var e=this.state.nbHits;return e===0?"No results":e===1?"1 result":e>1?e.toLocaleString()+" results":""},widgetParams:function(){return{}}}};function a7(e,t,r,n,i,a){return e.state?(T(),W("div",{key:0,class:te(e.suit())},[se(e.$slots,"default",$t(e.state,{results:e.state.instantSearchInstance.helper.lastResults}),function(){return[O("span",{class:te(e.suit("text"))},[e.state.areHitsSorted?(T(),W(ye,{key:0},[He(ge(a.sortedResultsSentence),1)],64)):(T(),W(ye,{key:1},[He(ge(a.resultsSentence),1)],64)),He(" found in "+ge(e.state.processingTimeMS.toLocaleString())+"ms",1)],2)]})],2)):ne("",!0)}N_.render=a7;const H_={name:"AisToggleRefinement",mixins:[rt({name:"ToggleRefinement"}),gt({connector:Z6},{$$widgetType:"ais.toggleRefinement"}),Tr()],props:{attribute:{type:String,required:!0},on:{type:[String,Number,Boolean,Array],required:!1,default:!0},off:{type:[String,Number,Boolean,Array],required:!1,default:void 0},label:{type:String,default:void 0}},computed:{widgetParams:function(){return{attribute:this.attribute,on:this.on,off:this.off}}}};var s7=["name","value","checked"];function o7(e,t,r,n,i,a){return e.state?(T(),W("div",{key:0,class:te([e.suit(),!e.state.canRefine&&e.suit("","noRefinement")])},[se(e.$slots,"default",{value:e.state.value,canRefine:e.state.canRefine,refine:e.state.refine,createURL:e.state.createURL,sendEvent:e.state.sendEvent},function(){return[O("label",{class:te(e.suit("label"))},[O("input",{class:te(e.suit("checkbox")),type:"checkbox",name:e.state.value.name,value:r.on,checked:e.state.value.isRefined,onChange:t[0]||(t[0]=function(s){return e.state.refine(e.state.value)})},null,42,s7),O("span",{class:te(e.suit("labelText"))},ge(r.label||e.state.value.name),3),e.state.value.count!==null?(T(),W("span",{key:0,class:te(e.suit("count"))},ge(e.state.value.count.toLocaleString()),3)):ne("",!0)],2)]})],2)):ne("",!0)}H_.render=o7;const U_={name:"AisVoiceSearch",mixins:[gt({connector:F5},{$$widgetType:"ais.voiceSearch"}),rt({name:"VoiceSearch"})],props:{searchAsYouSpeak:{type:Boolean,required:!1,default:void 0},language:{type:String,default:void 0},additionalQueryParameters:{type:Object,default:void 0},buttonTitle:{type:String,required:!1,default:"Search by voice"},disabledButtonTitle:{type:String,required:!1,default:"Search by voice (not supported on this browser)"}},data:function(){return{buttonSvgAttrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}}},computed:{widgetParams:function(){return{searchAsYouSpeak:this.searchAsYouSpeak,language:this.language,additionalQueryParameters:this.additionalQueryParameters}},errorNotAllowed:function(){return this.state.voiceListeningState.status==="error"&&this.state.voiceListeningState.errorCode==="not-allowed"},rootSlotProps:function(){return{isBrowserSupported:this.state.isBrowserSupported,isListening:this.state.isListening,toggleListening:this.state.toggleListening,voiceListeningState:this.state.voiceListeningState}},innerSlotProps:function(){return{status:this.state.voiceListeningState.status,errorCode:this.state.voiceListeningState.errorCode,isListening:this.state.isListening,transcript:this.state.voiceListeningState.transcript,isSpeechFinal:this.state.voiceListeningState.isSpeechFinal,isBrowserSupported:this.state.isBrowserSupported}}},methods:{handleClick:function(e){e.currentTarget.blur(),this.state.toggleListening()}}};var l7=["title","disabled"],u7=[to('',5)],c7=["fill"],f7=O("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"},null,-1),d7=O("line",{x1:"12",y1:"19",x2:"12",y2:"23"},null,-1),h7=O("line",{x1:"8",y1:"23",x2:"16",y2:"23"},null,-1);function p7(e,t,r,n,i,a){return e.state?(T(),W("div",{key:0,class:te(e.suit())},[se(e.$slots,"default",Qe(lt(a.rootSlotProps)),function(){return[O("button",{type:"button",class:te(e.suit("button")),title:e.state.isBrowserSupported?r.buttonTitle:r.disabledButtonTitle,disabled:!e.state.isBrowserSupported,onClick:t[0]||(t[0]=function(){for(var s=[],o=arguments.length;o--;)s[o]=arguments[o];return a.handleClick&&a.handleClick.apply(a,s)})},[se(e.$slots,"buttonText",Qe(lt(a.innerSlotProps)),function(){return[a.errorNotAllowed?(T(),W("svg",Qe($t({key:0},i.buttonSvgAttrs)),u7,16)):(T(),W("svg",Qe($t({key:1},i.buttonSvgAttrs)),[O("path",{d:"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z",fill:e.state.isListening?"currentColor":"none"},null,8,c7),f7,d7,h7],16))]})],10,l7),O("div",{class:te(e.suit("status"))},[se(e.$slots,"status",Qe(lt(a.innerSlotProps)),function(){return[O("p",null,ge(e.state.voiceListeningState.transcript),1)]})],2)]})],2)):ne("",!0)}U_.render=p7;const B_={name:"AisRelevantSort",mixins:[rt({name:"RelevantSort"}),gt({connector:U5},{$$widgetType:"ais.relevantSort"})],methods:{refine:function(){this.state.isRelevantSorted?this.state.refine(0):this.state.refine(void 0)}}};function m7(e,t,r,n,i,a){return e.state&&e.state.isVirtualReplica?(T(),W("div",{key:0,class:te(e.suit())},[se(e.$slots,"default",{isRelevantSorted:e.state.isRelevantSorted,refine:e.state.refine},function(){return[O("div",{class:te(e.suit("text"))},[se(e.$slots,"text",{isRelevantSorted:e.state.isRelevantSorted})],2),O("button",{type:"button",class:te(e.suit("button")),onClick:t[0]||(t[0]=function(s){return a.refine()})},[se(e.$slots,"button",{isRelevantSorted:e.state.isRelevantSorted},function(){return[He(ge(e.state.isRelevantSorted?"See all results":"See relevant results"),1)]})],2)]})],2)):ne("",!0)}B_.render=m7;const W_={name:"AisDynamicWidgets",mixins:[gt({connector:H1},{$$widgetType:"ais.dynamicWidgets"}),rt({name:"DynamicWidgets"})],props:{transformItems:{type:Function,default:void 0},facets:{type:Array,default:void 0},maxValuesPerFacet:{type:Number,default:void 0}},render:os(function(e){var t=this,r=new Map;if((yc(this)||[]).forEach(function(i){var a=function s(o){var l,u=o.props;if(u){if(u.attribute)return u.attribute;if(Array.isArray(u.attributes))return u.attributes[0]}if(l=o.children&&o.children.default&&o.children.default(),Array.isArray(l))return l.reduce(function(c,f){return c||s(f)},void 0)}(i);a&&r.set(a,e("div",{key:a,class:[t.suit("widget")]},[i]))}),!this.state){var n=[];return r.forEach(function(i){return n.push(i)}),e("div",_o({class:[this.suit()]},{attrs:{hidden:!0}}),n)}return e("div",{class:[this.suit()]},this.state.attributesToRender.map(function(i){return r.get(i)}))}),computed:{widgetParams:function(){return{transformItems:this.transformItems,facets:this.facets,maxValuesPerFacet:this.maxValuesPerFacet,widgets:[]}}}},v7=Object.assign({},W_,{name:"AisExperimentalDynamicWidgets",mounted:function(){Ma("Use AisDynamicWidgets instead of AisExperimentalDynamicWidgets.")}}),Pf=Object.freeze(Object.defineProperty({__proto__:null,AisAutocomplete:i_,AisBreadcrumb:a_,AisClearRefinements:s_,AisConfigure:rU,AisExperimentalConfigureRelatedItems:nU,AisCurrentRefinements:o_,AisHierarchicalMenu:u_,AisHighlight:xp,AisHits:wU,AisHitsPerPage:h_,AisIndex:IU,AisInstantSearch:eB,AisInstantSearchSsr:tB,AisInfiniteHits:x_,AisMenu:O_,AisMenuSelect:$_,AisNumericMenu:R_,AisPagination:A_,AisPanel:T_,AisPoweredBy:k_,AisQueryRuleContext:AB,AisQueryRuleCustomData:C_,AisRangeInput:E_,AisRatingMenu:I_,AisRefinementList:D_,AisStateResults:j_,AisSearchBox:F_,AisSnippet:M_,AisSortBy:L_,AisStats:N_,AisToggleRefinement:H_,AisVoiceSearch:U_,AisRelevantSort:B_,AisDynamicWidgets:W_,AisExperimentalDynamicWidgets:v7},Symbol.toStringTag,{value:"Module"}));var g7={install:function(e){Object.keys(Pf).forEach(function(t){e.component(Pf[t].name,Pf[t])})}};/*! * Vue-Lazyload.js v3.0.0 * (c) 2023 Awe * Released under the MIT License. */function q_(e,t){return t={exports:{}},e(t,t.exports),t.exports}var Ed=q_(function(e){const t=Object.prototype.toString,r=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols;e.exports=(a,...s)=>{if(!i(a))throw new TypeError("expected the first argument to be an object");if(s.length===0||typeof Symbol!="function"||typeof n!="function")return a;for(let o of s){let l=n(o);for(let u of l)r.call(o,u)&&(a[u]=o[u])}return a};function i(a){return typeof a=="function"||t.call(a)==="[object Object]"||Array.isArray(a)}}),uy=Object.freeze({__proto__:null,default:Ed,__moduleExports:Ed}),y7=uy&&Ed||uy,cy=q_(function(e){const t=Object.prototype.toString,r=s=>s!=="__proto__"&&s!=="constructor"&&s!=="prototype",n=e.exports=(s,...o)=>{let l=0;for(a(s)&&(s=o[l++]),s||(s={});l0}}),!0):!1}const Hi={event:"event",observer:"observer"};function Cs(e,t){if(!e.length)return;const r=e.indexOf(t);if(r>-1)return e.splice(r,1)}function dy(e,t){if(e.tagName!=="IMG"||!e.getAttribute("data-srcset"))return"";let r=e.getAttribute("data-srcset").trim().split(",");const n=[],a=e.parentNode.offsetWidth*t;let s,o,l;r.forEach(f=>{f=f.trim(),s=f.lastIndexOf(" "),s===-1?(o=f,l=99999):(o=f.substr(0,s),l=parseInt(f.substr(s+1,f.length-s-2),10)),n.push([l,o])}),n.sort((f,d)=>{if(f[0]d[0])return-1;if(f[0]===d[0]){if(d[1].indexOf(".webp",d[1].length-5)!==-1)return 1;if(f[1].indexOf(".webp",f[1].length-5)!==-1)return-1}return 0});let u="",c;for(let f=0;fSi&&window.devicePixelRatio||e;function _7(){if(!Si)return!1;let e=!0;function t(r,n){const i={lossy:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",lossless:"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",animation:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"},a=new Image;a.onload=function(){const s=a.width>0&&a.height>0;n(s)},a.onerror=function(){n(!1)},a.src="data:image/webp;base64,"+i[r]}return t("lossy",r=>{e=r}),t("lossless",r=>{e=r}),t("alpha",r=>{e=r}),t("animation",r=>{e=r}),e}function S7(e,t){let r=null,n=0;return function(){if(r)return;const i=Date.now()-n,a=this,s=arguments,o=function(){n=Date.now(),r=!1,e.apply(a,s)};i>=t?o():r=setTimeout(o,t)}}function P7(){if(!Si)return!1;let e=!1;try{const t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",$p,t)}catch{}return e}const x7=P7(),O7={on(e,t,r,n=!1){x7?e.addEventListener(t,r,{capture:n,passive:!0}):e.addEventListener(t,r,n)},off(e,t,r,n=!1){e.removeEventListener(t,r,n)}},Id=(e,t,r)=>{let n=new Image;if(!e||!e.src){const i=new Error("image src is required");return r(i)}e.cors&&(n.crossOrigin=e.cors),n.src=e.src,n.onload=function(){t({naturalHeight:n.naturalHeight,naturalWidth:n.naturalWidth,src:n.src}),n=null},n.onerror=function(i){r(i)}},xf=(e,t)=>typeof getComputedStyle<"u"?getComputedStyle(e,null).getPropertyValue(t):e.style[t],$7=e=>xf(e,"overflow")+xf(e,"overflowY")+xf(e,"overflowX"),R7=e=>{if(!Si)return;if(!(e instanceof Element))return window;let t=e;for(;t&&!(t===document.body||t===document.documentElement||!t.parentNode);){if(/(scroll|auto)/.test($7(t)))return t;t=t.parentNode}return window};function A7(e){return e!==null&&typeof e=="object"}function $p(){}class T7{constructor(t){this.max=t||100,this._caches=[]}has(t){return this._caches.indexOf(t)>-1}add(t){this.has(t)||(this._caches.push(t),this._caches.length>this.max&&this.free())}free(){this._caches.shift()}}class k7{constructor(t,r,n,i,a,s,o,l,u,c){this.el=t,this.src=r,this.error=n,this.loading=i,this.bindType=a,this.attempt=0,this.cors=l,this.naturalHeight=0,this.naturalWidth=0,this.options=o,this.rect={},this.$parent=s,this.elRenderer=u,this._imageCache=c,this.performanceData={init:Date.now(),loadStart:0,loadEnd:0},this.filter(),this.initState(),this.render("loading",!1)}initState(){"dataset"in this.el?this.el.dataset.src=this.src:this.el.setAttribute("data-src",this.src),this.state={loading:!1,error:!1,loaded:!1,rendered:!1}}record(t){this.performanceData[t]=Date.now()}update(t){const r=this.src;this.src=t.src,this.loading=t.loading,this.error=t.error,this.filter(),r!==this.src&&(this.attempt=0,this.initState())}getRect(){this.rect=this.el.getBoundingClientRect()}checkInView(){return this.getRect(),this.rect.topthis.options.preLoadTop&&this.rect.left0}filter(){for(const t in this.options.filter)this.options.filter[t](this,this.options)}renderLoading(t){this.state.loading=!0,Id({src:this.loading,cors:this.cors},()=>{this.render("loading",!1),this.state.loading=!1,t()},()=>{t(),this.state.loading=!1,this.options.silent||console.warn(`VueLazyload log: load failed with loading image(${this.loading})`)})}load(t=$p){if(this.attempt>this.options.attempt-1&&this.state.error){this.options.silent||console.log(`VueLazyload log: ${this.src} tried too more than ${this.options.attempt} times`),t();return}if(!(this.state.rendered&&this.state.loaded)){if(this._imageCache.has(this.src))return this.state.loaded=!0,this.render("loaded",!0),this.state.rendered=!0,t();this.renderLoading(()=>{this.attempt++,this.options.adapter.beforeLoad&&this.options.adapter.beforeLoad(this,this.options),this.record("loadStart"),Id({src:this.src,cors:this.cors},r=>{this.naturalHeight=r.naturalHeight,this.naturalWidth=r.naturalWidth,this.state.loaded=!0,this.state.error=!1,this.record("loadEnd"),this.render("loaded",!1),this.state.rendered=!0,this._imageCache.add(this.src),t()},r=>{!this.options.silent&&console.error(r),this.state.error=!0,this.state.loaded=!1,this.render("error",!1)})})}}render(t,r){this.elRenderer(this,t,r)}performance(){let t="loading",r=0;return this.state.loaded&&(t="loaded",r=(this.performanceData.loadEnd-this.performanceData.loadStart)/1e3),this.state.error&&(t="error"),{src:this.src,state:t,time:r}}$destroy(){this.el=null,this.src="",this.error=null,this.loading="",this.bindType=null,this.attempt=0}}const hy="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",C7=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],E7={rootMargin:"0px",threshold:0};class I7{constructor({preLoad:t,error:r,throttleWait:n,preLoadTop:i,dispatchEvent:a,loading:s,attempt:o,silent:l=!0,scale:u,listenEvents:c,filter:f,adapter:d,observer:p,observerOptions:h}){this.version='"3.0.0"',this.lazyContainerMananger=null,this.mode=Hi.event,this.ListenerQueue=[],this.TargetIndex=0,this.TargetQueue=[],this.options={silent:l,dispatchEvent:!!a,throttleWait:n||200,preLoad:t||1.3,preLoadTop:i||0,error:r||hy,loading:s||hy,attempt:o||3,scale:u||w7(u),listenEvents:c||C7,supportWebp:_7(),filter:f||{},adapter:d||{},observer:!!p,observerOptions:h||E7},this._initEvent(),this._imageCache=new T7(200),this.lazyLoadHandler=S7(this._lazyLoadHandler.bind(this),this.options.throttleWait),this.setMode(this.options.observer?Hi.observer:Hi.event)}performance(){const t=[];return this.ListenerQueue.map(r=>t.push(r.performance())),t}addLazyBox(t){this.ListenerQueue.push(t),Si&&(this._addListenerTarget(window),this._observer&&this._observer.observe(t.el),t.$el&&t.$el.parentNode&&this._addListenerTarget(t.$el.parentNode))}add(t,r,n){if(this.ListenerQueue.some(l=>l.el===t))return this.update(t,r),Pr(this.lazyLoadHandler);let{src:i,loading:a,error:s,cors:o}=this._valueFormatter(r.value);Pr(()=>{i=dy(t,this.options.scale)||i,this._observer&&this._observer.observe(t);const l=Object.keys(r.modifiers)[0];let u;l&&(u=r.instance.$refs[l],u=u?u.el||u:document.getElementById(l)),u||(u=R7(t));const c=new k7(t,i,s,a,r.arg,u,this.options,o,this._elRenderer.bind(this),this._imageCache);this.ListenerQueue.push(c),Si&&(this._addListenerTarget(window),this._addListenerTarget(u)),Pr(this.lazyLoadHandler)})}update(t,r,n){let{src:i,loading:a,error:s}=this._valueFormatter(r.value);i=dy(t,this.options.scale)||i;const o=this.ListenerQueue.find(l=>l.el===t);o?o.update({src:i,loading:a,error:s}):(t.getAttribute("lazy")!=="loaded"||t.dataset.src!==i)&&this.add(t,r,n),this._observer&&(this._observer.unobserve(t),this._observer.observe(t)),Pr(this.lazyLoadHandler)}remove(t){if(!t)return;this._observer&&this._observer.unobserve(t);const r=this.ListenerQueue.find(n=>n.el===t);r&&(this._removeListenerTarget(r.$parent),this._removeListenerTarget(window),Cs(this.ListenerQueue,r),r.$destroy&&r.$destroy())}removeComponent(t){!t||(Cs(this.ListenerQueue,t),this._observer&&this._observer.unobserve(t.el),t.$parent&&t.$el.parentNode&&this._removeListenerTarget(t.$el.parentNode),this._removeListenerTarget(window))}setMode(t){!fy&&t===Hi.observer&&(t=Hi.event),this.mode=t,t===Hi.event?(this._observer&&(this.ListenerQueue.forEach(r=>{this._observer.unobserve(r.el)}),this._observer=null),this.TargetQueue.forEach(r=>{this._initListen(r.el,!0)})):(this.TargetQueue.forEach(r=>{this._initListen(r.el,!1)}),this._initIntersectionObserver())}_addListenerTarget(t){if(!t)return;let r=this.TargetQueue.find(n=>n.el===t);return r?r.childrenCount++:(r={el:t,id:++this.TargetIndex,childrenCount:1,listened:!0},this.mode===Hi.event&&this._initListen(r.el,!0),this.TargetQueue.push(r)),this.TargetIndex}_removeListenerTarget(t){this.TargetQueue.forEach((r,n)=>{r.el===t&&(r.childrenCount--,r.childrenCount||(this._initListen(r.el,!1),this.TargetQueue.splice(n,1),r=null))})}_initListen(t,r){this.options.listenEvents.forEach(n=>O7[r?"on":"off"](t,n,this.lazyLoadHandler))}_initEvent(){this.Event={listeners:{loading:[],loaded:[],error:[]}},this.$on=(t,r)=>{this.Event.listeners[t]||(this.Event.listeners[t]=[]),this.Event.listeners[t].push(r)},this.$once=(t,r)=>{const n=this;function i(){n.$off(t,i),r.apply(n,arguments)}this.$on(t,i)},this.$off=(t,r)=>{if(!r){if(!this.Event.listeners[t])return;this.Event.listeners[t].length=0;return}Cs(this.Event.listeners[t],r)},this.$emit=(t,r,n)=>{!this.Event.listeners[t]||this.Event.listeners[t].forEach(i=>i(r,n))}}_lazyLoadHandler(){const t=[];this.ListenerQueue.forEach((r,n)=>{(!r.el||!r.el.parentNode||r.state.loaded)&&t.push(r),r.checkInView()&&(r.state.loaded||r.load())}),t.forEach(r=>{Cs(this.ListenerQueue,r),r.$destroy&&r.$destroy()})}_initIntersectionObserver(){!fy||(this._observer=new IntersectionObserver(this._observerHandler.bind(this),this.options.observerOptions),this.ListenerQueue.length&&this.ListenerQueue.forEach(t=>{this._observer.observe(t.el)}))}_observerHandler(t){t.forEach(r=>{r.isIntersecting&&this.ListenerQueue.forEach(n=>{if(n.el===r.target){if(n.state.loaded)return this._observer.unobserve(n.el);n.load()}})})}_elRenderer(t,r,n){if(!t.el)return;const{el:i,bindType:a}=t;let s;switch(r){case"loading":s=t.loading;break;case"error":s=t.error;break;default:s=t.src;break}if(a?i.style[a]='url("'+s+'")':i.getAttribute("src")!==s&&i.setAttribute("src",s),i.setAttribute("lazy",r),this.$emit(r,t,n),this.options.adapter[r]&&this.options.adapter[r](t,this.options),this.options.dispatchEvent){const o=new CustomEvent(r,{detail:t});i.dispatchEvent(o)}}_valueFormatter(t){return A7(t)?(!t.src&&!this.options.silent&&console.error("Vue Lazyload warning: miss src with "+t),{src:t.src,loading:t.loading||this.options.loading,error:t.error||this.options.error,cors:this.options.cors}):{src:t,loading:this.options.loading,error:this.options.error,cors:this.options.cors}}}const V_=(e,t)=>{let r=Rr({});const n=()=>{r=e.value.getBoundingClientRect()};return{rect:r,checkInView:()=>(n(),Si&&r.top0&&r.left0)}};var D7=e=>Ct({props:{tag:{type:String,default:"div"}},emits:["show"],setup(t,{emit:r,slots:n}){const i=be(),a=Rr({loaded:!1,error:!1,attempt:0}),s=be(!1),{rect:o,checkInView:l}=V_(i,e.options.preLoad),u=()=>{s.value=!0,a.loaded=!0,r("show",s.value)},c=he(()=>({el:i.value,rect:o,checkInView:l,load:u,state:a}));return Mt(()=>{e.addLazyBox(c.value),e.lazyLoadHandler()}),Ri(()=>{e.removeComponent(c.value)}),()=>{var f;return Ae(t.tag,{ref:i},[s.value&&((f=n.default)===null||f===void 0?void 0:f.call(n))])}}});class j7{constructor(t){this.lazy=t,t.lazyContainerMananger=this,this._queue=[]}bind(t,r,n){const i=new M7(t,r,n,this.lazy);this._queue.push(i)}update(t,r,n){const i=this._queue.find(a=>a.el===t);!i||i.update(t,r)}unbind(t,r,n){const i=this._queue.find(a=>a.el===t);!i||(i.clear(),Cs(this._queue,i))}}const F7={selector:"img",error:"",loading:""};class M7{constructor(t,r,n,i){this.el=t,this.vnode=n,this.binding=r,this.options={},this.lazy=i,this._queue=[],this.update(t,r)}update(t,r){this.el=t,this.options=cy({},F7,r.value),this.getImgs().forEach(i=>{this.lazy.add(i,cy({},this.binding,{value:{src:i.getAttribute("data-src")||i.dataset.src,error:i.getAttribute("data-error")||i.dataset.error||this.options.error,loading:i.getAttribute("data-loading")||i.dataset.loading||this.options.loading}}),this.vnode)})}getImgs(){return Array.from(this.el.querySelectorAll(this.options.selector))}clear(){this.getImgs().forEach(r=>this.lazy.remove(r)),this.vnode=null,this.binding=null,this.lazy=null}}var L7=e=>Ct({setup(t,{slots:r}){const n=be(),i=Rr({src:"",error:"",loading:"",attempt:e.options.attempt}),a=Rr({loaded:!1,error:!1,attempt:0}),{rect:s,checkInView:o}=V_(n,e.options.preLoad),l=be(""),u=(d=$p)=>{if(a.attempt>i.attempt-1&&a.error)return e.options.silent||console.log(`VueLazyload log: ${i.src} tried too more than ${i.attempt} times`),d();const p=i.src;Id({src:p},({src:h})=>{l.value=h,a.loaded=!0},()=>{a.attempt++,l.value=i.error,a.error=!0})},c=he(()=>({el:n.value,rect:s,checkInView:o,load:u,state:a}));Mt(()=>{e.addLazyBox(c.value),e.lazyLoadHandler()}),Ri(()=>{e.removeComponent(c.value)});const f=()=>{const{src:d,loading:p,error:h}=e._valueFormatter(t.src);a.loaded=!1,i.src=d,i.error=h,i.loading=p,l.value=i.loading};return yr(()=>t.src,()=>{f(),e.addLazyBox(c.value),e.lazyLoadHandler()},{immediate:!0}),()=>{var d;return Ae(t.tag||"img",{src:l.value,ref:n},[(d=r.default)===null||d===void 0?void 0:d.call(r)])}}}),N7={install(e,t={}){const r=new I7(t),n=new j7(r);if(Number(e.version.split(".")[0])<3)return new Error("Vue version at least 3.0");e.config.globalProperties.$Lazyload=r,e.provide("Lazyload",r),t.lazyComponent&&e.component("lazy-component",D7(r)),t.lazyImage&&e.component("lazy-image",L7(r)),e.directive("lazy",{beforeMount:r.add.bind(r),beforeUpdate:r.update.bind(r),updated:r.lazyLoadHandler.bind(r),unmounted:r.remove.bind(r)}),e.directive("lazy-container",{beforeMount:n.bind.bind(n),updated:n.update.bind(n),unmounted:n.unbind.bind(n)})}};const H7="modulepreload",U7=function(e){return"/"+e},py={},B7=function(t,r,n){if(!r||r.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(r.map(a=>{if(a=U7(a),a in py)return;py[a]=!0;const s=a.endsWith(".css"),o=s?'[rel="stylesheet"]':"";if(!!n)for(let c=i.length-1;c>=0;c--){const f=i[c];if(f.href===a&&(!s||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${o}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":H7,s||(u.as="script",u.crossOrigin=""),u.href=a,document.head.appendChild(u),s)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>t())};/*! * vue-router v4.4.5 * (c) 2024 Eduardo San Martin Morote * @license MIT */const $a=typeof document<"u";function Y_(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function W7(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Y_(e.default)}const ht=Object.assign;function Of(e,t){const r={};for(const n in t){const i=t[n];r[n]=sn(i)?i.map(e):e(i)}return r}const Ys=()=>{},sn=Array.isArray,Q_=/#/g,q7=/&/g,V7=/\//g,Y7=/=/g,Q7=/\?/g,z_=/\+/g,z7=/%5B/g,K7=/%5D/g,K_=/%5E/g,G7=/%60/g,G_=/%7B/g,X7=/%7C/g,X_=/%7D/g,Z7=/%20/g;function Rp(e){return encodeURI(""+e).replace(X7,"|").replace(z7,"[").replace(K7,"]")}function J7(e){return Rp(e).replace(G_,"{").replace(X_,"}").replace(K_,"^")}function Dd(e){return Rp(e).replace(z_,"%2B").replace(Z7,"+").replace(Q_,"%23").replace(q7,"%26").replace(G7,"`").replace(G_,"{").replace(X_,"}").replace(K_,"^")}function eW(e){return Dd(e).replace(Y7,"%3D")}function tW(e){return Rp(e).replace(Q_,"%23").replace(Q7,"%3F")}function rW(e){return e==null?"":tW(e).replace(V7,"%2F")}function Zo(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const nW=/\/$/,iW=e=>e.replace(nW,"");function $f(e,t,r="/"){let n,i={},a="",s="";const o=t.indexOf("#");let l=t.indexOf("?");return o=0&&(l=-1),l>-1&&(n=t.slice(0,l),a=t.slice(l+1,o>-1?o:t.length),i=e(a)),o>-1&&(n=n||t.slice(0,o),s=t.slice(o,t.length)),n=lW(n!=null?n:t,r),{fullPath:n+(a&&"?")+a+s,path:n,query:i,hash:Zo(s)}}function aW(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function my(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function sW(e,t,r){const n=t.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&es(t.matched[n],r.matched[i])&&Z_(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function es(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Z_(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!oW(e[r],t[r]))return!1;return!0}function oW(e,t){return sn(e)?vy(e,t):sn(t)?vy(t,e):e===t}function vy(e,t){return sn(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function lW(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let a=r.length-1,s,o;for(s=0;s1&&a--;else break;return r.slice(0,a).join("/")+"/"+n.slice(s).join("/")}const ri={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Jo;(function(e){e.pop="pop",e.push="push"})(Jo||(Jo={}));var Qs;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Qs||(Qs={}));function uW(e){if(!e)if($a){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),iW(e)}const cW=/^[^#]+#/;function fW(e,t){return e.replace(cW,"#")+t}function dW(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const wc=()=>({left:window.scrollX,top:window.scrollY});function hW(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),i=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!i)return;t=dW(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function gy(e,t){return(history.state?history.state.position-t:-1)+e}const jd=new Map;function pW(e,t){jd.set(e,t)}function mW(e){const t=jd.get(e);return jd.delete(e),t}let vW=()=>location.protocol+"//"+location.host;function J_(e,t){const{pathname:r,search:n,hash:i}=t,a=e.indexOf("#");if(a>-1){let o=i.includes(e.slice(a))?e.slice(a).length:1,l=i.slice(o);return l[0]!=="/"&&(l="/"+l),my(l,"")}return my(r,e)+n+i}function gW(e,t,r,n){let i=[],a=[],s=null;const o=({state:d})=>{const p=J_(e,location),h=r.value,m=t.value;let v=0;if(d){if(r.value=p,t.value=d,s&&s===h){s=null;return}v=m?d.position-m.position:0}else n(p);i.forEach(g=>{g(r.value,h,{delta:v,type:Jo.pop,direction:v?v>0?Qs.forward:Qs.back:Qs.unknown})})};function l(){s=r.value}function u(d){i.push(d);const p=()=>{const h=i.indexOf(d);h>-1&&i.splice(h,1)};return a.push(p),p}function c(){const{history:d}=window;!d.state||d.replaceState(ht({},d.state,{scroll:wc()}),"")}function f(){for(const d of a)d();a=[],window.removeEventListener("popstate",o),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",o),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function yy(e,t,r,n=!1,i=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:i?wc():null}}function yW(e){const{history:t,location:r}=window,n={value:J_(e,r)},i={value:t.state};i.value||a(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,u,c){const f=e.indexOf("#"),d=f>-1?(r.host&&document.querySelector("base")?e:e.slice(f))+l:vW()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),i.value=u}catch(p){console.error(p),r[c?"replace":"assign"](d)}}function s(l,u){const c=ht({},t.state,yy(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});a(l,c,!0),n.value=l}function o(l,u){const c=ht({},i.value,t.state,{forward:l,scroll:wc()});a(c.current,c,!0);const f=ht({},yy(n.value,l,null),{position:c.position+1},u);a(l,f,!1),n.value=l}return{location:n,state:i,push:o,replace:s}}function bW(e){e=uW(e);const t=yW(e),r=gW(e,t.state,t.location,t.replace);function n(a,s=!0){s||r.pauseListeners(),history.go(a)}const i=ht({location:"",base:e,go:n,createHref:fW.bind(null,e)},t,r);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function wW(e){return typeof e=="string"||e&&typeof e=="object"}function eS(e){return typeof e=="string"||typeof e=="symbol"}const tS=Symbol("");var by;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(by||(by={}));function ts(e,t){return ht(new Error,{type:e,[tS]:!0},t)}function Fn(e,t){return e instanceof Error&&tS in e&&(t==null||!!(e.type&t))}const wy="[^/]+?",_W={sensitive:!1,strict:!1,start:!0,end:!0},SW=/[.+*?^${}()[\]/\\]/g;function PW(e,t){const r=ht({},_W,t),n=[];let i=r.start?"^":"";const a=[];for(const u of e){const c=u.length?[]:[90];r.strict&&!u.length&&(i+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function rS(e,t){let r=0;const n=e.score,i=t.score;for(;r0&&t[t.length-1]<0}const OW={type:0,value:""},$W=/[a-zA-Z0-9_]/;function RW(e){if(!e)return[[]];if(e==="/")return[[OW]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${r})/"${u}": ${p}`)}let r=0,n=r;const i=[];let a;function s(){a&&i.push(a),a=[]}let o=0,l,u="",c="";function f(){!u||(r===0?a.push({type:0,value:u}):r===1||r===2||r===3?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;o{s(_)}:Ys}function s(f){if(eS(f)){const d=n.get(f);d&&(n.delete(f),r.splice(r.indexOf(d),1),d.children.forEach(s),d.alias.forEach(s))}else{const d=r.indexOf(f);d>-1&&(r.splice(d,1),f.record.name&&n.delete(f.record.name),f.children.forEach(s),f.alias.forEach(s))}}function o(){return r}function l(f){const d=EW(f,r);r.splice(d,0,f),f.record.name&&!xy(f)&&n.set(f.record.name,f)}function u(f,d){let p,h={},m,v;if("name"in f&&f.name){if(p=n.get(f.name),!p)throw ts(1,{location:f});v=p.record.name,h=ht(Sy(d.params,p.keys.filter(_=>!_.optional).concat(p.parent?p.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),f.params&&Sy(f.params,p.keys.map(_=>_.name))),m=p.stringify(h)}else if(f.path!=null)m=f.path,p=r.find(_=>_.re.test(m)),p&&(h=p.parse(m),v=p.record.name);else{if(p=d.name?n.get(d.name):r.find(_=>_.re.test(d.path)),!p)throw ts(1,{location:f,currentLocation:d});v=p.record.name,h=ht({},d.params,f.params),m=p.stringify(h)}const g=[];let y=p;for(;y;)g.unshift(y.record),y=y.parent;return{name:v,path:m,params:h,matched:g,meta:CW(g)}}e.forEach(f=>a(f));function c(){r.length=0,n.clear()}return{addRoute:a,resolve:u,removeRoute:s,clearRoutes:c,getRoutes:o,getRecordMatcher:i}}function Sy(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function Py(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:kW(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function kW(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="object"?r[n]:r;return t}function xy(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function CW(e){return e.reduce((t,r)=>ht(t,r.meta),{})}function Oy(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function EW(e,t){let r=0,n=t.length;for(;r!==n;){const a=r+n>>1;rS(e,t[a])<0?n=a:r=a+1}const i=IW(e);return i&&(n=t.lastIndexOf(i,n-1)),n}function IW(e){let t=e;for(;t=t.parent;)if(nS(t)&&rS(e,t)===0)return t}function nS({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function DW(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;ia&&Dd(a)):[n&&Dd(n)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+r,a!=null&&(t+="="+a))})}return t}function jW(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=sn(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const FW=Symbol(""),Ry=Symbol(""),Ap=Symbol(""),iS=Symbol(""),Fd=Symbol("");function Ps(){let e=[];function t(n){return e.push(n),()=>{const i=e.indexOf(n);i>-1&&e.splice(i,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function fi(e,t,r,n,i,a=s=>s()){const s=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((o,l)=>{const u=d=>{d===!1?l(ts(4,{from:r,to:t})):d instanceof Error?l(d):wW(d)?l(ts(2,{from:t,to:d})):(s&&n.enterCallbacks[i]===s&&typeof d=="function"&&s.push(d),o())},c=a(()=>e.call(n&&n.instances[i],t,r,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(d=>l(d))})}function Rf(e,t,r,n,i=a=>a()){const a=[];for(const s of e)for(const o in s.components){let l=s.components[o];if(!(t!=="beforeRouteEnter"&&!s.instances[o]))if(Y_(l)){const c=(l.__vccOpts||l)[t];c&&a.push(fi(c,r,n,s,o,i))}else{let u=l();a.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${o}" at "${s.path}"`);const f=W7(c)?c.default:c;s.mods[o]=c,s.components[o]=f;const p=(f.__vccOpts||f)[t];return p&&fi(p,r,n,s,o,i)()}))}}return a}function Ay(e){const t=Wn(Ap),r=Wn(iS),n=he(()=>{const l=J(e.to);return t.resolve(l)}),i=he(()=>{const{matched:l}=n.value,{length:u}=l,c=l[u-1],f=r.matched;if(!c||!f.length)return-1;const d=f.findIndex(es.bind(null,c));if(d>-1)return d;const p=Ty(l[u-2]);return u>1&&Ty(c)===p&&f[f.length-1].path!==p?f.findIndex(es.bind(null,l[u-2])):d}),a=he(()=>i.value>-1&&HW(r.params,n.value.params)),s=he(()=>i.value>-1&&i.value===r.matched.length-1&&Z_(r.params,n.value.params));function o(l={}){return NW(l)?t[J(e.replace)?"replace":"push"](J(e.to)).catch(Ys):Promise.resolve()}return{route:n,href:he(()=>n.value.href),isActive:a,isExactActive:s,navigate:o}}const MW=Ct({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ay,setup(e,{slots:t}){const r=Rr(Ay(e)),{options:n}=Wn(Ap),i=he(()=>({[ky(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[ky(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const a=t.default&&t.default(r);return e.custom?a:Ur("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},a)}}}),LW=MW;function NW(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function HW(e,t){for(const r in t){const n=t[r],i=e[r];if(typeof n=="string"){if(n!==i)return!1}else if(!sn(i)||i.length!==n.length||n.some((a,s)=>a!==i[s]))return!1}return!0}function Ty(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ky=(e,t,r)=>e!=null?e:t!=null?t:r,UW=Ct({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=Wn(Fd),i=he(()=>e.route||n.value),a=Wn(Ry,0),s=he(()=>{let u=J(a);const{matched:c}=i.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),o=he(()=>i.value.matched[s.value]);Yl(Ry,he(()=>s.value+1)),Yl(FW,o),Yl(Fd,i);const l=be();return yr(()=>[l.value,o.value,e.name],([u,c,f],[d,p,h])=>{c&&(c.instances[f]=u,p&&p!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=p.leaveGuards),c.updateGuards.size||(c.updateGuards=p.updateGuards))),u&&c&&(!p||!es(c,p)||!d)&&(c.enterCallbacks[f]||[]).forEach(m=>m(u))},{flush:"post"}),()=>{const u=i.value,c=e.name,f=o.value,d=f&&f.components[c];if(!d)return Cy(r.default,{Component:d,route:u});const p=f.props[c],h=p?p===!0?u.params:typeof p=="function"?p(u):p:null,v=Ur(d,ht({},h,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return Cy(r.default,{Component:v,route:u})||v}}});function Cy(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const BW=UW;function WW(e){const t=TW(e.routes,e),r=e.parseQuery||DW,n=e.stringifyQuery||$y,i=e.history,a=Ps(),s=Ps(),o=Ps(),l=qS(ri);let u=ri;$a&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Of.bind(null,K=>""+K),f=Of.bind(null,rW),d=Of.bind(null,Zo);function p(K,H){let E,q;return eS(K)?(E=t.getRecordMatcher(K),q=H):q=K,t.addRoute(q,E)}function h(K){const H=t.getRecordMatcher(K);H&&t.removeRoute(H)}function m(){return t.getRoutes().map(K=>K.record)}function v(K){return!!t.getRecordMatcher(K)}function g(K,H){if(H=ht({},H||l.value),typeof K=="string"){const C=$f(r,K,H.path),N=t.resolve({path:C.path},H),re=i.createHref(C.fullPath);return ht(C,N,{params:d(N.params),hash:Zo(C.hash),redirectedFrom:void 0,href:re})}let E;if(K.path!=null)E=ht({},K,{path:$f(r,K.path,H.path).path});else{const C=ht({},K.params);for(const N in C)C[N]==null&&delete C[N];E=ht({},K,{params:f(C)}),H.params=f(H.params)}const q=t.resolve(E,H),G=K.hash||"";q.params=c(d(q.params));const Q=aW(n,ht({},K,{hash:J7(G),path:q.path})),S=i.createHref(Q);return ht({fullPath:Q,hash:G,query:n===$y?jW(K.query):K.query||{}},q,{redirectedFrom:void 0,href:S})}function y(K){return typeof K=="string"?$f(r,K,l.value.path):ht({},K)}function _(K,H){if(u!==K)return ts(8,{from:H,to:K})}function b(K){return A(K)}function P(K){return b(ht(y(K),{replace:!0}))}function k(K){const H=K.matched[K.matched.length-1];if(H&&H.redirect){const{redirect:E}=H;let q=typeof E=="function"?E(K):E;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=y(q):{path:q},q.params={}),ht({query:K.query,hash:K.hash,params:q.path!=null?{}:K.params},q)}}function A(K,H){const E=u=g(K),q=l.value,G=K.state,Q=K.force,S=K.replace===!0,C=k(E);if(C)return A(ht(y(C),{state:typeof C=="object"?ht({},G,C.state):G,force:Q,replace:S}),H||E);const N=E;N.redirectedFrom=H;let re;return!Q&&sW(n,q,E)&&(re=ts(16,{to:N,from:q}),Y(q,q,!0,!1)),(re?Promise.resolve(re):x(N,q)).catch(ie=>Fn(ie)?Fn(ie,2)?ie:w(ie):L(ie,N,q)).then(ie=>{if(ie){if(Fn(ie,2))return A(ht({replace:S},y(ie.to),{state:typeof ie.to=="object"?ht({},G,ie.to.state):G,force:Q}),H||N)}else ie=M(N,q,!0,S,G);return I(N,q,ie),ie})}function U(K,H){const E=_(K,H);return E?Promise.reject(E):Promise.resolve()}function F(K){const H=oe.values().next().value;return H&&typeof H.runWithContext=="function"?H.runWithContext(K):K()}function x(K,H){let E;const[q,G,Q]=qW(K,H);E=Rf(q.reverse(),"beforeRouteLeave",K,H);for(const C of q)C.leaveGuards.forEach(N=>{E.push(fi(N,K,H))});const S=U.bind(null,K,H);return E.push(S),V(E).then(()=>{E=[];for(const C of a.list())E.push(fi(C,K,H));return E.push(S),V(E)}).then(()=>{E=Rf(G,"beforeRouteUpdate",K,H);for(const C of G)C.updateGuards.forEach(N=>{E.push(fi(N,K,H))});return E.push(S),V(E)}).then(()=>{E=[];for(const C of Q)if(C.beforeEnter)if(sn(C.beforeEnter))for(const N of C.beforeEnter)E.push(fi(N,K,H));else E.push(fi(C.beforeEnter,K,H));return E.push(S),V(E)}).then(()=>(K.matched.forEach(C=>C.enterCallbacks={}),E=Rf(Q,"beforeRouteEnter",K,H,F),E.push(S),V(E))).then(()=>{E=[];for(const C of s.list())E.push(fi(C,K,H));return E.push(S),V(E)}).catch(C=>Fn(C,8)?C:Promise.reject(C))}function I(K,H,E){o.list().forEach(q=>F(()=>q(K,H,E)))}function M(K,H,E,q,G){const Q=_(K,H);if(Q)return Q;const S=H===ri,C=$a?history.state:{};E&&(q||S?i.replace(K.fullPath,ht({scroll:S&&C&&C.scroll},G)):i.push(K.fullPath,G)),l.value=K,Y(K,H,E,S),w()}let Z;function B(){Z||(Z=i.listen((K,H,E)=>{if(!ee.listening)return;const q=g(K),G=k(q);if(G){A(ht(G,{replace:!0}),q).catch(Ys);return}u=q;const Q=l.value;$a&&pW(gy(Q.fullPath,E.delta),wc()),x(q,Q).catch(S=>Fn(S,12)?S:Fn(S,2)?(A(S.to,q).then(C=>{Fn(C,20)&&!E.delta&&E.type===Jo.pop&&i.go(-1,!1)}).catch(Ys),Promise.reject()):(E.delta&&i.go(-E.delta,!1),L(S,q,Q))).then(S=>{S=S||M(q,Q,!1),S&&(E.delta&&!Fn(S,8)?i.go(-E.delta,!1):E.type===Jo.pop&&Fn(S,20)&&i.go(-1,!1)),I(q,Q,S)}).catch(Ys)}))}let R=Ps(),j=Ps(),D;function L(K,H,E){w(K);const q=j.list();return q.length?q.forEach(G=>G(K,H,E)):console.error(K),Promise.reject(K)}function $(){return D&&l.value!==ri?Promise.resolve():new Promise((K,H)=>{R.add([K,H])})}function w(K){return D||(D=!K,B(),R.list().forEach(([H,E])=>K?E(K):H()),R.reset()),K}function Y(K,H,E,q){const{scrollBehavior:G}=e;if(!$a||!G)return Promise.resolve();const Q=!E&&mW(gy(K.fullPath,0))||(q||!E)&&history.state&&history.state.scroll||null;return Pr().then(()=>G(K,H,Q)).then(S=>S&&hW(S)).catch(S=>L(S,K,H))}const X=K=>i.go(K);let ae;const oe=new Set,ee={currentRoute:l,listening:!0,addRoute:p,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:m,resolve:g,options:e,push:b,replace:P,go:X,back:()=>X(-1),forward:()=>X(1),beforeEach:a.add,beforeResolve:s.add,afterEach:o.add,onError:j.add,isReady:$,install(K){const H=this;K.component("RouterLink",LW),K.component("RouterView",BW),K.config.globalProperties.$router=H,Object.defineProperty(K.config.globalProperties,"$route",{enumerable:!0,get:()=>J(l)}),$a&&!ae&&l.value===ri&&(ae=!0,b(i.location).catch(G=>{}));const E={};for(const G in ri)Object.defineProperty(E,G,{get:()=>l.value[G],enumerable:!0});K.provide(Ap,H),K.provide(iS,rb(E)),K.provide(Fd,l);const q=K.unmount;oe.add(K),K.unmount=function(){oe.delete(K),oe.size<1&&(u=ri,Z&&Z(),Z=null,l.value=ri,ae=!1,D=!1),q()}}};function V(K){return K.reduce((H,E)=>H.then(()=>F(E)),Promise.resolve())}return ee}function qW(e,t){const r=[],n=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let s=0;ses(u,o))?n.push(o):r.push(o));const l=e.matched[s];l&&(t.matched.find(u=>es(u,l))||i.push(l))}return[r,n,i]}const aS=WW({history:bW(),routes:[{path:"/",name:"Home",component:()=>B7(()=>Promise.resolve().then(()=>OL),void 0)}]}),VW={beforeMount(){Gl("init",{appId:"K0SNCQLM4A",apiKey:"587d230fe991746c9a30f6007fb3e06c"}),Gl("setUserToken","pressbooks-directory")},methods:{sendFilterAppliedInsight(e,t){this.sendInsight({insightsMethod:"clickedFilters",payload:{eventName:t||"Filter Applied",filters:e}})},sendInsight(e){const{sort:t}=this.$route.query,{insightsMethod:r,payload:n}=e,i=this.$store.state.SClient.availableIndexes.find(({orderedBy:a})=>a===t);Gl(r,{...n,index:i?i.value:this.$store.state.SClient.indexName})}}};var sS={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(nl,function(){var r="minute",n=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(a,s,o){var l=s.prototype;o.utc=function(m){var v={date:m,utc:!0,args:arguments};return new s(v)},l.utc=function(m){var v=o(this.toDate(),{locale:this.$L,utc:!0});return m?v.add(this.utcOffset(),r):v},l.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var u=l.parse;l.parse=function(m){m.utc&&(this.$u=!0),this.$utils().u(m.$offset)||(this.$offset=m.$offset),u.call(this,m)};var c=l.init;l.init=function(){if(this.$u){var m=this.$d;this.$y=m.getUTCFullYear(),this.$M=m.getUTCMonth(),this.$D=m.getUTCDate(),this.$W=m.getUTCDay(),this.$H=m.getUTCHours(),this.$m=m.getUTCMinutes(),this.$s=m.getUTCSeconds(),this.$ms=m.getUTCMilliseconds()}else c.call(this)};var f=l.utcOffset;l.utcOffset=function(m,v){var g=this.$utils().u;if(g(m))return this.$u?0:g(this.$offset)?f.call(this):this.$offset;if(typeof m=="string"&&(m=function(P){P===void 0&&(P="");var k=P.match(n);if(!k)return null;var A=(""+k[0]).match(i)||["-",0,0],U=A[0],F=60*+A[1]+ +A[2];return F===0?0:U==="+"?F:-F}(m),m===null))return this;var y=Math.abs(m)<=16?60*m:m,_=this;if(v)return _.$offset=y,_.$u=m===0,_;if(m!==0){var b=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(_=this.local().add(y+b,r)).$offset=y,_.$x.$localOffset=b}else _=this.utc();return _};var d=l.format;l.format=function(m){var v=m||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,v)},l.valueOf=function(){var m=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*m},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var p=l.toDate;l.toDate=function(m){return m==="s"&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var h=l.diff;l.diff=function(m,v,g){if(m&&this.$u===m.$u)return h.call(this,m,v,g);var y=this.local(),_=o(m).local();return h.call(y,_,v,g)}}})})(sS);const YW=sS.exports;const Di=Mx(i1);Di.use(ze);Di.component("VueSelect",Hw);Di.use(g7);Di.use(aS);Di.use(N7);Di.mixin(VW);Di.config.globalProperties.$filters={numberFormat(e){return e.toLocaleString()}};vn.extend(YW);aS.beforeEach((e,t,r)=>{if(e.query[ze.state.SClient.searchParameters.aliases.sortedBy]&&ze.state.SClient.resetMainIndex){const i=ze.state.SClient.availableIndexes.reduce((a,s)=>({...a,[s.orderedBy]:s.value}),{});ze.commit("setSortedBy",e.query[ze.state.SClient.searchParameters.aliases.sortedBy]),ze.commit("setMainIndex",i[e.query[ze.state.SClient.searchParameters.aliases.sortedBy]])}else ze.commit("setIndexFromQuery",e.query);Object.keys(e.query).length===1&&e.query[ze.state.SClient.searchParameters.aliases.sortedBy]&&delete e.query[ze.state.SClient.searchParameters.aliases.sortedBy];let n=ze.state.SClient.searchClient.initIndex(ze.state.SClient.indexName);ze.dispatch("getStats",n).then(()=>{let i={},a=!1;const s=Object.keys(ze.state.SClient.allowedFilters).map(function(o){return ze.state.SClient.allowedFilters[o].alias});e.query[ze.state.SClient.searchParameters.aliases.page]&&ze.commit("setPage",e.query[ze.state.SClient.searchParameters.aliases.page]),e.query[ze.state.SClient.searchParameters.aliases.hitsPerPage]&&ze.commit("setHitsPerPage",e.query[ze.state.SClient.searchParameters.aliases.hitsPerPage]);for(let o in e.query)if(s.indexOf(o)>=0){if(o===ze.state.SClient.allowedFilters.search.alias){a=!0;continue}for(let l in ze.state.SClient.allowedFilters)if(ze.state.SClient.allowedFilters[l].alias===o){typeof e.query[o]!="string"&&(e.query[o]=e.query[o].toString()),i[l]=e.query[o].split("&&");break}}Object.keys(i).length===0&&!a&&(ze.state.SClient.filtersExcluded={},ze.state.SClient.notFilters=[],ze.state.SClient.numericFilters=[]),ze.commit("setFiltersFromQueryParams",i),ze.commit("setFacetFilters",ze.state.SClient.notFilters),ze.commit("setNumericFilters",ze.state.SClient.numericFilters),ze.commit("setKeepFacets",Object.keys(ze.state.SClient.filtersExcluded)),ze.dispatch("getStats",n),r()})});Di.mount("#app");