PageSourceSearch

https://www.austria.info/_nuxt/DuzvDH_S.js

js austria.info collected 2026-09-24 08:42:57 UTC 231,054 bytes, 1 lines download raw bytes

1var pi=Object.defineProperty;var yi=(e,t,r)=>t in e?pi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Et=(e,t,r)=>yi(e,typeof t!="symbol"?t+"":t,r);import{bH as ks,b$ as Cs,bd as Is,bI as Xa,bJ as wi,bW as en,c0 as Pi,bM as vt,bP as qi,c4 as tn,bK as bi,bL as Zt,c1 as rn,c2 as Di,c3 as Ei,bm as Ti}from"./Dr_aj0OX.js";import{F as Si,A as $i,j as ki,I as Ci,i as Ii,r as _i,u as Mi,n as Ai,l as Oi}from"./BwRjuEEX.js";import{s as Ri}from"./CxDNZeNt.js";import{u as Yi,d as an,t as Ni,r as xi,b as Ui,l as Li,p as ji,e as Hi,a as Fi,c as Wi,f as Gi,o as Bi,g as zi,h as Vi,i as Ki}from"./C5o1H56f.js";import{u as Zi}from"./QXKEMWNQ.js";import{z as he,t as gt,d as w,b as oe,w as pe,c as nn,n as St,ax as Qi,J as je,X as ae,R as T,Y as ne,M as I,a6 as V,a7 as Y,_ as ht,U as Te,a9 as L,Z as Re,S as W,a8 as de,T as wa,V as ve,aa as ke,ac as kt,a2 as nr,r as Pa,a4 as ar,a5 as ua,u as D,I as xr,i as ur,f as ft,B as lr,F as qa,k as Ji,ab as Xi,ag as sn,ae as _s,l as Ms,ao as eu,ay as tu}from"./bHGN7eKL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8b5a719a-3a7e-4f4d-a5d1-67d7b5b13079",e._sentryDebugIdIdentifier="sentry-dbid-8b5a719a-3a7e-4f4d-a5d1-67d7b5b13079")}catch{}})();const Le=ks(vt.ui.strategy,vt.ui.select,Di),Qt=ks(vt.ui.strategy,vt.ui.selectMenu,Ei),ru=he({components:{HCombobox:Oi,HComboboxButton:Ai,HComboboxOptions:Mi,HComboboxOption:_i,HComboboxInput:Ii,HListbox:Ci,HListboxButton:ki,HListboxOptions:$i,HListboxOption:Si,UIcon:Is,UAvatar:Cs},inheritAttrs:!1,props:{modelValue:{type:[String,Number,Object,Array,Boolean],default:""},query:{type:String,default:null},by:{type:String,default:void 0},options:{type:Array,default:()=>[]},id:{type:String,default:null},name:{type:String,default:null},required:{type:Boolean,default:!1},icon:{type:String,default:null},loadingIcon:{type:String,default:()=>Le.default.loadingIcon},leadingIcon:{type:String,default:null},trailingIcon:{type:String,default:()=>Le.default.trailingIcon},trailing:{type:Boolean,default:!1},leading:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},selectedIcon:{type:String,default:()=>Qt.default.selectedIcon},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},searchable:{type:[Boolean,Function],default:!1},searchablePlaceholder:{type:String,default:()=>Qt.default.searchablePlaceholder.label},searchableLazy:{type:Boolean,default:!1},clearSearchOnClose:{type:Boolean,default:()=>Qt.default.clearSearchOnClose},debounce:{type:Number,default:200},creatable:{type:Boolean,default:!1},showCreateOptionWhen:{type:[String,Function],default:()=>Qt.default.showCreateOptionWhen},placeholder:{type:String,default:null},padded:{type:Boolean,default:!0},size:{type:String,default:null,validator(e){return Object.keys(Le.size).includes(e)}},color:{type:String,default:()=>Le.default.color,validator(e){return[...vt.ui.colors,...Object.keys(Le.color)].includes(e)}},variant:{type:String,default:()=>Le.default.variant,validator(e){return[...Object.keys(Le.variant),...Object.values(Le.color).flatMap(t=>Object.keys(t))].includes(e)}},optionAttribute:{type:String,default:"label"},valueAttribute:{type:String,default:null},searchAttributes:{type:Array,default:null},inputTargetForm:{type:String,default:null},popper:{type:Object,default:()=>({})},selectClass:{type:String,default:null},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})},uiMenu:{type:Object,default:()=>({})}},emits:["update:modelValue","update:query","open","close","change","scroll-end"],setup(e,{emit:t,slots:r}){const{ui:o,attrs:u}=Xa("select",gt(e,"ui"),Le,gt(e,"class")),{ui:f}=Xa("selectMenu",gt(e,"uiMenu"),Qt),l=w(()=>qi({},e.popper,f.value.popper)),[n,a]=Yi(l.value),s=w(()=>{if(!e.by)return;if(typeof e.by=="function")return e.by;const R=e.by;return R.indexOf(".")>0?(z,ce)=>se(z,R)===se(ce,R):R}),{size:i,rounded:c}=wi({ui:o,props:e}),{emitFormBlur:h,emitFormChange:d,inputId:m,color:v,size:y,name:p}=Zi(e,Le),P=w(()=>i.value??y.value),$=oe(""),q=w({get(){return e.query??$.value},set(R){$.value=R,t("update:query",R)}}),C=w(()=>{function R(z,ce){return s.value&&typeof s.value!="function"&&S(z)&&S(ce)?tn(z[s.value],ce[
1s.value]):tn(z,ce)}function B(z){return e.valueAttribute?se(z,e.valueAttribute):z}if(e.multiple){const z=e.modelValue;return!Array.isArray(z)||!z.length?[]:ue.value.filter(ce=>{const Ie=B(ce);return z.some(qt=>R(qt,Ie))})}return ue.value.find(z=>{const ce=B(z);return R(ce,nn(e.modelValue))})??e.modelValue}),U=w(()=>e.modelValue?Array.isArray(e.modelValue)&&e.modelValue.length?`${e.modelValue.length} selected`:["string","number"].includes(typeof e.modelValue)?e.valueAttribute?se(C.value,e.optionAttribute):e.modelValue:se(e.modelValue,e.optionAttribute):null),N=w(()=>{var B,z;const R=((z=(B=o.value.color)==null?void 0:B[v.value])==null?void 0:z[e.variant])||o.value.variant[e.variant];return bi(Zt(o.value.base,f.value.select,c.value,o.value.size[P.value],o.value.gap[P.value],e.padded?o.value.padding[P.value]:"p-0",R==null?void 0:R.replaceAll("{color}",v.value),(j.value||r.leading)&&o.value.leading.padding[P.value],(H.value||r.trailing)&&o.value.trailing.padding[P.value]),e.placeholder&&(!e.modelValue||Array.isArray(e.modelValue)&&!e.modelValue.length)&&o.value.placeholder,e.selectClass)}),j=w(()=>e.icon&&e.leading||e.icon&&!e.trailing||e.loading&&!e.trailing||e.leadingIcon),H=w(()=>e.icon&&e.trailing||e.loading&&e.trailing||e.trailingIcon),ie=w(()=>e.loading?e.loadingIcon:e.leadingIcon||e.icon),Q=w(()=>e.loading&&!j.value?e.loadingIcon:e.trailingIcon||e.icon),A=w(()=>Zt(o.value.icon.leading.wrapper,o.value.icon.leading.pointer,o.value.icon.leading.padding[P.value])),F=w(()=>Zt(o.value.icon.base,v.value&&vt.ui.colors.includes(v.value)&&o.value.icon.color.replaceAll("{color}",v.value),o.value.icon.size[P.value],e.loading&&o.value.icon.loading)),J=w(()=>Zt(o.value.icon.trailing.wrapper,o.value.icon.trailing.pointer,o.value.icon.trailing.padding[P.value])),M=w(()=>Zt(o.value.icon.base,v.value&&vt.ui.colors.includes(v.value)&&o.value.icon.color.replaceAll("{color}",v.value),o.value.icon.size[P.value],e.loading&&!j.value&&o.value.icon.loading)),te=e.searchable&&typeof e.searchable=="function"?en(e.searchable,e.debounce):void 0,ue=Pi(async()=>te?await te(q.value):e.options||[],[],{lazy:e.searchableLazy});function ye(R){return R.replace(/[.*+?^${}()|[\]\\]/g,B=>`\\${B}`)}function se(R,B){return rn(R,B)}function S(R){return!Array.isArray(R)&&R!==null&&typeof R=="object"}const G=w(()=>{if(!q.value||te)return ue.value;const R=ye(q.value);return ue.value.filter(B=>{var z;return((z=e.searchAttributes)!=null&&z.length?e.searchAttributes:[e.optionAttribute]).some(ce=>{if(["string","number"].includes(typeof B))return String(B).search(new RegExp(R,"i"))!==-1;const Ie=rn(B,ce);return Ie!=null&&String(Ie).search(new RegExp(R,"i"))!==-1})})}),O=w(()=>q.value===""||e.showCreateOptionWhen==="empty"&&G.value.length||e.showCreateOptionWhen==="always"&&G.value.find(B=>["string","number"].includes(typeof B)?B===q.value:se(B,e.optionAttribute)===q.value)||typeof e.showCreateOptionWhen=="function"&&!e.showCreateOptionWhen(q.value,G.value)?null:["string","number"].includes(typeof e.modelValue)?q.value:{[e.optionAttribute]:q.value});function ge(){e.clearSearchOnClose&&(q.value="")}const K=oe(!1);let fe=null;const me=en(R=>{const B=R.target;B&&(e.loading||K.value||B.scrollTop+B.clientHeight>=B.scrollHeight-5&&(K.value=!0,t("scroll-end")))},100);pe(()=>e.loading,R=>{R||(K.value=!1)}),pe(a,R=>{R?(t("open"),St(()=>{fe=R.querySelector('ul[role="listbox"]'),fe&&fe.addEventListener("scroll",me)})):(fe&&(fe.removeEventListener("scroll",me),fe=null),K.value=!1,ge(),t("close"),h())});function Ae(R){nn(e.modelValue)!==R&&(t("update:modelValue",R),t("change",R),d())}function Oe(R){q.value=R.target.value}return Ri(()=>Qi()),{ui:o,uiMenu:f,attrs:u,name:p,inputId:m,popper:l,trigger:n,container:a,selected:C,label:U,accessor:se,isLeading:j,isTrailing:H,selectClass:N,leadingIconName:ie,leadingIconClass:F,leadingWrapperIconClass:A,trailingIconName:Q,trailingIconClass:M,trailingWrapperIconClass:J,filteredOptions:G,createOption:O,query:q,onUpdate:Ae,onQueryChange:Oe,by:s}}}),au=["value","required","form"],nu=["id","disabled"],su={class:"truncate"},ou={key:0,class:"inset-x-0 bottom-0 z-10"};function iu(e,t,r,o,u,f){const l=Is,n=je("HComboboxInput"),a=Cs;return T(),ae(ht(e.searchable?"HCombobox":"HListbox"),{by:e.by,name:e.name,"model-value":e.multiple?Array.isArray(e.modelValue)?e.modelValue:[]:e.modelValue,multiple:e.multiple,disabled:e.disabled,as:"div",class:Y(e.ui.wrapper),"onUpdate:modelValue":e.onUpdate},{default:ne(({open:s})=>[e.required?(T(),I("input",{key:0,value:e.modelValue,required:e.required,
1class:Y(e.uiMenu.required),form:e.inputTargetForm,tabindex:"-1","aria-hidden":"true"},null,10,au)):V("",!0),(T(),ae(ht(e.searchable?"HComboboxButton":"HListboxButton"),{ref:"trigger",as:"div",role:"button",class:Y(e.uiMenu.trigger)},{default:ne(()=>[Te(e.$slots,"default",{open:s,disabled:e.disabled,loading:e.loading},()=>[L("button",Re({id:e.inputId,class:e.selectClass,disabled:e.disabled,type:"button"},e.attrs),[e.isLeading&&e.leadingIconName||e.$slots.leading?(T(),I("span",{key:0,class:Y(e.leadingWrapperIconClass)},[Te(e.$slots,"leading",{selected:e.selected,disabled:e.disabled,loading:e.loading},()=>[W(l,{name:e.leadingIconName,class:Y(e.leadingIconClass)},null,8,["name","class"])])],2)):V("",!0),Te(e.$slots,"label",{selected:e.selected},()=>[e.label?(T(),I("span",{key:0,class:Y(e.uiMenu.label)},de(e.label),3)):(T(),I("span",{key:1,class:Y(e.uiMenu.label)},de(e.placeholder||" "),3))]),e.isTrailing&&e.trailingIconName||e.$slots.trailing?(T(),I("span",{key:1,class:Y(e.trailingWrapperIconClass)},[Te(e.$slots,"trailing",{selected:e.selected,disabled:e.disabled,loading:e.loading},()=>[W(l,{name:e.trailingIconName,class:Y(e.trailingIconClass),"aria-hidden":"true"},null,8,["name","class"])])],2)):V("",!0)],16,nu)])]),_:2},1032,["class"])),s?(T(),I("div",{key:1,ref:"container",class:Y([e.uiMenu.container,e.uiMenu.width])},[W(wa,Re({appear:""},e.uiMenu.transition),{default:ne(()=>[L("div",null,[e.popper.arrow?(T(),I("div",{key:0,"data-popper-arrow":"",class:Y(Object.values(e.uiMenu.arrow))},null,2)):V("",!0),(T(),ae(ht(e.searchable?"HComboboxOptions":"HListboxOptions"),{static:"",class:Y(["overflow-hidden",[e.uiMenu.ring,e.uiMenu.rounded,e.uiMenu.shadow,e.uiMenu.background]])},{default:ne(()=>{var i,c;return[L("div",{class:Y([e.uiMenu.base,e.uiMenu.padding,e.uiMenu.height])},[e.searchable?(T(),ae(n,{key:0,"display-value":()=>e.query,name:"q",placeholder:e.$t("common.search-placeholder"),autofocus:"",autocomplete:"off",class:Y(e.uiMenu.input),onChange:e.onQueryChange},null,8,["display-value","placeholder","class","onChange"])):V("",!0),(T(!0),I(ve,null,ke(e.filteredOptions,(h,d)=>(T(),ae(ht(e.searchable?"HComboboxOption":"HListboxOption"),{key:d,as:"template",value:e.valueAttribute?e.accessor(h,e.valueAttribute):h,disabled:h.disabled},{default:ne(({active:m,selected:v,disabled:y})=>[L("li",{class:Y([e.uiMenu.option.base,e.uiMenu.option.rounded,e.uiMenu.option.padding,e.uiMenu.option.size,e.uiMenu.option.color,m?e.uiMenu.option.active:e.uiMenu.option.inactive,v&&e.uiMenu.option.selected,y&&e.uiMenu.option.disabled])},[L("div",{class:Y(e.uiMenu.option.container)},[Te(e.$slots,"option",{option:h,active:m,selected:v},()=>[h.icon?(T(),ae(l,{key:0,name:h.icon,class:Y([e.uiMenu.option.icon.base,m?e.uiMenu.option.icon.active:e.uiMenu.option.icon.inactive,h.iconClass]),"aria-hidden":"true"},null,8,["name","class"])):h.avatar?(T(),ae(a,Re({key:1,ref_for:!0},{size:e.uiMenu.option.avatar.size,...h.avatar},{class:e.uiMenu.option.avatar.base,"aria-hidden":"true"}),null,16,["class"])):h.chip?(T(),I("span",{key:2,class:Y(e.uiMenu.option.chip.base),style:kt({background:`#${h.chip}`})},null,6)):V("",!0),L("span",su,de(["string","number"].includes(typeof h)?h:e.accessor(h,e.optionAttribute)),1)])],2),v?(T(),I("span",{key:0,class:Y([e.uiMenu.option.selectedIcon.wrapper,e.uiMenu.option.selectedIcon.padding])},[W(l,{name:e.selectedIcon,class:Y(e.uiMenu.option.selectedIcon.base),"aria-hidden":"true"},null,8,["name","class"])],2)):V("",!0)],2)]),_:2},1032,["value","disabled"]))),128)),e.creatable&&e.createOption?(T(),ae(ht(e.searchable?"HComboboxOption":"HListboxOption"),{key:1,value:e.createOption,as:"template"},{default:ne(({active:h,selected:d})=>[L("li",{class:Y([e.uiMenu.option.base,e.uiMenu.option.rounded,e.uiMenu.option.padding,e.uiMenu.option.size,e.uiMenu.option.color,h?e.uiMenu.option.active:e.uiMenu.option.inactive])},[L("div",{class:Y(e.uiMenu.option.container)},[Te(e.$slots,"option-create",{option:e.createOption,active:h,selected:d},()=>[L("span",{class:Y(e.uiMenu.option.create)},' Create "'+de(typeof e.createOption=="string"?e.createOption:e.accessor(e.createOption,e.optionAttribute))+'" ',3)])],2)],2)
1]),_:3},8,["value"])):e.searchable&&e.query&&!((i=e.filteredOptions)!=null&&i.length)?(T(),I("p",{key:2,class:Y(e.uiMenu.option.empty)},[Te(e.$slots,"option-empty",{query:e.query},()=>[nr(de(e.uiMenu.default.optionEmpty.label.replace("{query}",e.query)),1)])],2)):(c=e.filteredOptions)!=null&&c.length?V("",!0):(T(),I("p",{key:3,class:Y(e.uiMenu.empty)},[Te(e.$slots,"empty",{query:e.query},()=>[nr(de(e.uiMenu.default.empty.label),1)])],2))],2),e.$slots.footer?(T(),I("div",ou,[Te(e.$slots,"footer")])):V("",!0)]}),_:3},8,["class"]))])]),_:3},16)],2)):V("",!0)]),_:3},8,["by","name","model-value","multiple","disabled","class","onUpdate:modelValue"])}const JD=Ti(ru,[["render",iu]]);function on(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 un(e){return[Ni,xi,Ui,Li].some(function(t){return e[t]>=0})}function uu(e){var t=e.state,r=e.name,o=t.rects.reference,u=t.rects.popper,f=t.modifiersData.preventOverflow,l=an(t,{elementContext:"reference"}),n=an(t,{altBoundary:!0}),a=on(l,o),s=on(n,u,f),i=un(a),c=un(s);t.modifiersData[r]={referenceClippingOffsets:a,popperEscapeOffsets:s,isReferenceHidden:i,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":i,"data-popper-escaped":c})}const lu={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:uu};var cu=[Hi,Fi,Wi,Gi,Bi,zi,Vi,Ki,lu],du=ji({defaultModifiers:cu}),hu=Object.defineProperty,fu=(e,t,r)=>t in e?hu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_=(e,t,r)=>(fu(e,typeof t!="symbol"?t+"":t,r),r),Pr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function As(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mu=Object.prototype,vu=mu.hasOwnProperty;function gu(e,t){return e!=null&&vu.call(e,t)}var pu=gu,yu=Array.isArray,Ne=yu,wu=typeof Pr=="object"&&Pr&&Pr.Object===Object&&Pr,Os=wu,Pu=Os,qu=typeof self=="object"&&self&&self.Object===Object&&self,bu=Pu||qu||Function("return this")(),We=bu,Du=We,Eu=Du.Symbol,Ur=Eu,ln=Ur,Rs=Object.prototype,Tu=Rs.hasOwnProperty,Su=Rs.toString,Jt=ln?ln.toStringTag:void 0;function $u(e){var t=Tu.call(e,Jt),r=e[Jt];try{e[Jt]=void 0;var o=!0}catch{}var u=Su.call(e);return o&&(t?e[Jt]=r:delete e[Jt]),u}var ku=$u,Cu=Object.prototype,Iu=Cu.toString;function _u(e){return Iu.call(e)}var Mu=_u,cn=Ur,Au=ku,Ou=Mu,Ru="[object Null]",Yu="[object Undefined]",dn=cn?cn.toStringTag:void 0;function Nu(e){return e==null?e===void 0?Yu:Ru:dn&&dn in Object(e)?Au(e):Ou(e)}var Ge=Nu;function xu(e){return e!=null&&typeof e=="object"}var xe=xu,Uu=Ge,Lu=xe,ju="[object Symbol]";function Hu(e){return typeof e=="symbol"||Lu(e)&&Uu(e)==ju}var ba=Hu,Fu=Ne,Wu=ba,Gu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bu=/^\w*$/;function zu(e,t){if(Fu(e))return!1;var r=typeof e;
vendor: 8,827 bytes, line 1
1return r=="number"||r=="symbol"||r=="boolean"||e==null||Wu(e)?!0:Bu.test(e)||!Gu.test(e)||t!=null&&e in Object(t)}var Da=zu;function Vu(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ze=Vu,Ku=Ge,Zu=Ze,Qu="[object AsyncFunction]",Ju="[object Function]",Xu="[object GeneratorFunction]",el="[object Proxy]";function tl(e){if(!Zu(e))return!1;var t=Ku(e);return t==Ju||t==Xu||t==Qu||t==el}var yt=tl,rl=We,al=rl["__core-js_shared__"],nl=al,ea=nl,hn=function(){var e=/[^.]+$/.exec(ea&&ea.keys&&ea.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function sl(e){return!!hn&&hn in e}var ol=sl,il=Function.prototype,ul=il.toString;function ll(e){if(e!=null){try{return ul.call(e)}catch{}try{return e+""}catch{}}return""}var Ys=ll,cl=yt,dl=ol,hl=Ze,fl=Ys,ml=/[\\^$.*+?()[\]{}|]/g,vl=/^\[object .+?Constructor\]$/,gl=Function.prototype,pl=Object.prototype,yl=gl.toString,wl=pl.hasOwnProperty,Pl=RegExp("^"+yl.call(wl).replace(ml,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ql(e){if(!hl(e)||dl(e))return!1;var t=cl(e)?Pl:vl;return t.test(fl(e))}var bl=ql;function Dl(e,t){return e==null?void 0:e[t]}var El=Dl,Tl=bl,Sl=El;function $l(e,t){var r=Sl(e,t);return Tl(r)?r:void 0}var wt=$l,kl=wt,Cl=kl(Object,"create"),Lr=Cl,fn=Lr;function Il(){this.__data__=fn?fn(null):{},this.size=0}var _l=Il;function Ml(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Al=Ml,Ol=Lr,Rl="__lodash_hash_undefined__",Yl=Object.prototype,Nl=Yl.hasOwnProperty;function xl(e){var t=this.__data__;if(Ol){var r=t[e];return r===Rl?void 0:r}return Nl.call(t,e)?t[e]:void 0}var Ul=xl,Ll=Lr,jl=Object.prototype,Hl=jl.hasOwnProperty;function Fl(e){var t=this.__data__;return Ll?t[e]!==void 0:Hl.call(t,e)}var Wl=Fl,Gl=Lr,Bl="__lodash_hash_undefined__";function zl(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Gl&&t===void 0?Bl:t,this}var Vl=zl,Kl=_l,Zl=Al,Ql=Ul,Jl=Wl,Xl=Vl;function At(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}At.prototype.clear=Kl;At.prototype.delete=Zl;At.prototype.get=Ql;At.prototype.has=Jl;At.prototype.set=Xl;var ec=At;function tc(){this.__data__=[],this.size=0}var rc=tc;function ac(e,t){return e===t||e!==e&&t!==t}var Ot=ac,nc=Ot;function sc(e,t){for(var r=e.length;r--;)if(nc(e[r][0],t))return r;return-1}var jr=sc,oc=jr,ic=Array.prototype,uc=ic.splice;function lc(e){var t=this.__data__,r=oc(t,e);if(r<0)return!1;var o=t.length-1;return r==o?t.pop():uc.call(t,r,1),--this.size,!0}var cc=lc,dc=jr;function hc(e){var t=this.__data__,r=dc(t,e);return r<0?void 0:t[r][1]}var fc=hc,mc=jr;function vc(e){return mc(this.__data__,e)>-1}var gc=vc,pc=jr;function yc(e,t){var r=this.__data__,o=pc(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}var wc=yc,Pc=rc,qc=cc,bc=fc,Dc=gc,Ec=wc;function Rt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Rt.prototype.clear=Pc;Rt.prototype.delete=qc;Rt.prototype.get=bc;Rt.prototype.has=Dc;Rt.prototype.set=Ec;var Hr=Rt,Tc=wt,Sc=We,$c=Tc(Sc,"Map"),Ea=$c,mn=ec,kc=Hr,Cc=Ea;function Ic(){this.size=0,this.__data__={hash:new mn,map:new(Cc||kc),string:new mn}}var _c=Ic;function Mc(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Ac=Mc,Oc=Ac;function Rc(e,t){var r=e.__data__;return Oc(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Fr=Rc,Yc=Fr;function Nc(e){var t=Yc(this,e).delete(e);return this.size-=t?1:0,t}var xc=Nc,Uc=Fr;function Lc(e){return Uc(this,e).get(e)}var jc=Lc,Hc=Fr;function Fc(e){return Hc(this,e).has(e)}var Wc=Fc,Gc=Fr;function Bc(e,t){var r=Gc(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}var zc=Bc,Vc=_c,Kc=xc,Zc=jc,Qc=Wc,Jc=zc;function Yt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Yt.prototype.clear=Vc;Yt.prototype.delete=Kc;Yt.prototype.get=Zc;Yt.prototype.has=Qc;Yt.prototype.set=Jc;var Ta=Yt,Ns=Ta,Xc="Expected a function";function Sa(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Xc);var r=function(){var o=arguments,u=t?t.apply(this,o):o[0],f=r.cache;if(f.has(u))return f.get(u);var l=e.apply(this,o);return r.cache=f.set(u,l)||f,l};return r.cache=new(Sa.Cache||Ns),r}Sa.Cache=Ns;var ed=Sa,td=ed,rd=500;function ad(e){var t=td(e,function(o){return r.size===rd&&r.clear(),o}),r=t.cache;return t}var nd=ad,sd=nd,od=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,id=/\\(\\)?/g,ud=sd(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(od,function(r,o,u,f){t.push(u?f.replace(id,"$1"):o||r)}),t}),ld=ud;function cd(e,t){for(var r=-1,o=e==null?0:e.length,u=Array(o);++r<o;)u[r]=t(e[r],r,e);return u}var dd=cd,vn=Ur,hd=dd,fd=Ne,md=ba,gn=vn?vn.prototype:void 0,pn=gn?gn.toString:void 0;function xs(e){if(typeof e=="string")return e;if(fd(e))return hd(e,xs)+"";if(md(e))return pn?pn.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var vd=xs,gd=vd;function pd(e){return e==null?"":gd(e)}var yd=pd,wd=Ne,Pd=Da,qd=ld,bd=yd;function Dd(e,t){return wd(e)?e:Pd(e,t)?[e]:qd(bd(e))}var Us=Dd,Ed=Ge,Td=xe,Sd="[object Arguments]";function $d(e){return Td(e)&&Ed(e)==Sd}var kd=$d,yn=kd,Cd=xe,Ls=Object.prototype,Id=Ls.hasOwnProperty,_d=Ls.propertyIsEnumerable,Md=yn(function(){return arguments}())?yn:function(e){return Cd(e)&&Id.call(e,"callee")&&!_d.call(e,"callee")},$a=Md,Ad=9007199254740991,Od=/^(?:0|[1-9]\d*)$/;function Rd(e,t){var r=typeof e;return t=t??Ad,!!t&&(r=="number"||r!="symbol"&&Od.test(e))&&e>-1&&e%1==0&&e<t}var ka=Rd,Yd=9007199254740991;function Nd(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Yd}var Ca=Nd,xd=ba;function Ud(e){if(typeof e=="string"||xd(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Wr=Ud,Ld=Us,jd=$a,Hd=Ne,Fd=ka,Wd=Ca,Gd=Wr;function Bd(e,t,r){t=Ld(t,e);for(var o=-1,u=t.length,f=!1;++o<u;){var l=Gd(t[o]);if(!(f=e!=null&&r(e,l)))break;e=e[l]}return f||++o!=u?f:(u=e==null?0:e.length,!!u&&Wd(u)&&Fd(l,u)&&(Hd(e)||jd(e)))}var js=Bd,zd=pu,Vd=js;function Kd(e,t){return e!=null&&Vd(e,t,zd)}var Hs=Kd,Zd=Ge,Qd=xe,Jd="[object Date]";function Xd(e){return Qd(e)&&Zd(e)==Jd}var eh=Xd;function th(e){return function(t){return e(t)}}var Fs=th,sr={},rh={get exports(){return sr},set exports(e){sr=e}};(function(e,t){var r=Os,o=t&&!t.nodeType&&t,u=o&&!0&&e&&!e.nodeType&&e,f=u&&u.exports===o,l=f&&r.process,n=function(){try{var a=u&&u.require&&u.require("util").types;return a||l&&l.binding&&l.binding("util")}catch{}}();e.exports=n})(rh,sr);var ah=eh,nh=Fs,wn=sr,Pn=wn&&wn.isDate,sh=Pn?nh(Pn):ah,oh=sh,ih=Ge,uh=Ne,lh=xe,ch="[object String]";function dh(e){return typeof e=="string"||!uh(e)&&lh(e)&&ih(e)==ch}var He=dh;function hh(e,t){for(var r=-1,o=e==null?0:e.length;++r<o;)if(t(e[r],r,e))return!0;return!1}var Ws=hh,fh=Hr;function mh(){this.__data__=new fh,this.size=0}var vh=mh;function gh(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var ph=gh;function yh(e){return this.__data__.get(e)}var wh=yh;function Ph(e){return this.__data__.has(e)}var qh=Ph,bh=Hr,Dh=Ea,Eh=Ta,Th=200;function Sh(e,t){var r=this.__data__;if(r instanceof bh){var o=r.__data__;if(!Dh||o.length<Th-1)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new Eh(o)}return r.set(e,t),this.size=r.size,this}var $h=Sh,kh=Hr,Ch=vh,Ih=ph,_h=wh,Mh=qh,Ah=$h;function Nt(e){var t=this.__data__=new kh(e);this.size=t.size}Nt.prototype.clear=Ch;Nt.prototype.delete=Ih;Nt.prototype.get=_h;Nt.prototype.has=Mh;Nt.prototype.set=Ah;var Ia=Nt,Oh="__lodash_hash_undefined__";function Rh(e){return this.__data__.set(e,Oh),this}var Yh=Rh;function Nh(e){return this.__data__.has(e)}var xh=Nh,Uh=Ta,Lh=Yh,jh=xh;function $r(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Uh;++t<r;)this.add(e[t])}$r.prototype.add=$r.prototype.push=Lh;$r.prototype.has=jh;var Hh=$r;function Fh(e,t){return e.has(t)}var Wh=Fh,Gh=Hh,Bh=Ws,zh=Wh,Vh=1,Kh=2;function Zh(e,t,r,o,u,f){var l=r&Vh,n=e.length,a=t.length;if(n!=a&&!(l&&a>n))return!1;var s=f.get(e),i=f.get(t);if(s&&i)return s==t&&i==e;var c=-1,h=!0,d=r&Kh?new Gh:void 0;for(f.set(e,t),f.set(t,e);++c<n;){var m=e[c],v=t[c];if(o)var y=l?o(v,m,c,t,e,f):o(m,v,c,e,t,f);if(y!==void 0){if(y)continue;h=!1;break}if(d){if(!Bh(t,function(p,P){if(!zh(d,P)&&(m===p||u(m,p,r,o,f)))return d.push(P)})){h=!1;break}}else if(!(m===v||u(m,v,r,o,f))){h=!1;break}}return f.delete(e),f.delete(t),h}var Gs=Zh,Qh=We,Jh=Qh.Uint8Array,Bs=Jh;function Xh(e){var t=-1,r=Array(e.size);return e.forEach(function(o,u){r[++t]=[u,o]}),r}var ef=Xh;function tf(e){var t=-1,r=Array(e.size);return e.forEach(function(o){r[++t]=o}),r}var rf=tf,qn=Ur,bn=Bs,af=Ot,nf=Gs,sf=ef,of=rf,uf=1,lf=2,cf="[object Boolean]",df="[object Date]",hf="[object Error]",ff="[object Map]",mf="[object Number]",vf="[object RegExp]",gf
vendor: 4,621 bytes, line 1
1="[object Set]",pf="[object String]",yf="[object Symbol]",wf="[object ArrayBuffer]",Pf="[object DataView]",Dn=qn?qn.prototype:void 0,ta=Dn?Dn.valueOf:void 0;function qf(e,t,r,o,u,f,l){switch(r){case Pf:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case wf:return!(e.byteLength!=t.byteLength||!f(new bn(e),new bn(t)));case cf:case df:case mf:return af(+e,+t);case hf:return e.name==t.name&&e.message==t.message;case vf:case pf:return e==t+"";case ff:var n=sf;case gf:var a=o&uf;if(n||(n=of),e.size!=t.size&&!a)return!1;var s=l.get(e);if(s)return s==t;o|=lf,l.set(e,t);var i=nf(n(e),n(t),o,u,f,l);return l.delete(e),i;case yf:if(ta)return ta.call(e)==ta.call(t)}return!1}var bf=qf;function Df(e,t){for(var r=-1,o=t.length,u=e.length;++r<o;)e[u+r]=t[r];return e}var Ef=Df,Tf=Ef,Sf=Ne;function $f(e,t,r){var o=t(e);return Sf(e)?o:Tf(o,r(e))}var kf=$f;function Cf(e,t){for(var r=-1,o=e==null?0:e.length,u=0,f=[];++r<o;){var l=e[r];t(l,r,e)&&(f[u++]=l)}return f}var If=Cf;function _f(){return[]}var Mf=_f,Af=If,Of=Mf,Rf=Object.prototype,Yf=Rf.propertyIsEnumerable,En=Object.getOwnPropertySymbols,Nf=En?function(e){return e==null?[]:(e=Object(e),Af(En(e),function(t){return Yf.call(e,t)}))}:Of,xf=Nf;function Uf(e,t){for(var r=-1,o=Array(e);++r<e;)o[r]=t(r);return o}var Lf=Uf,_t={},jf={get exports(){return _t},set exports(e){_t=e}};function Hf(){return!1}var Ff=Hf;(function(e,t){var r=We,o=Ff,u=t&&!t.nodeType&&t,f=u&&!0&&e&&!e.nodeType&&e,l=f&&f.exports===u,n=l?r.Buffer:void 0,a=n?n.isBuffer:void 0,s=a||o;e.exports=s})(jf,_t);var Wf=Ge,Gf=Ca,Bf=xe,zf="[object Arguments]",Vf="[object Array]",Kf="[object Boolean]",Zf="[object Date]",Qf="[object Error]",Jf="[object Function]",Xf="[object Map]",em="[object Number]",tm="[object Object]",rm="[object RegExp]",am="[object Set]",nm="[object String]",sm="[object WeakMap]",om="[object ArrayBuffer]",im="[object DataView]",um="[object Float32Array]",lm="[object Float64Array]",cm="[object Int8Array]",dm="[object Int16Array]",hm="[object Int32Array]",fm="[object Uint8Array]",mm="[object Uint8ClampedArray]",vm="[object Uint16Array]",gm="[object Uint32Array]",re={};re[um]=re[lm]=re[cm]=re[dm]=re[hm]=re[fm]=re[mm]=re[vm]=re[gm]=!0;re[zf]=re[Vf]=re[om]=re[Kf]=re[im]=re[Zf]=re[Qf]=re[Jf]=re[Xf]=re[em]=re[tm]=re[rm]=re[am]=re[nm]=re[sm]=!1;function pm(e){return Bf(e)&&Gf(e.length)&&!!re[Wf(e)]}var ym=pm,wm=ym,Pm=Fs,Tn=sr,Sn=Tn&&Tn.isTypedArray,qm=Sn?Pm(Sn):wm,_a=qm,bm=Lf,Dm=$a,Em=Ne,Tm=_t,Sm=ka,$m=_a,km=Object.prototype,Cm=km.hasOwnProperty;function Im(e,t){var r=Em(e),o=!r&&Dm(e),u=!r&&!o&&Tm(e),f=!r&&!o&&!u&&$m(e),l=r||o||u||f,n=l?bm(e.length,String):[],a=n.length;for(var s in e)(t||Cm.call(e,s))&&!(l&&(s=="length"||u&&(s=="offset"||s=="parent")||f&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||Sm(s,a)))&&n.push(s);return n}var zs=Im,_m=Object.prototype;function Mm(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||_m;return e===r}var Ma=Mm;function Am(e,t){return function(r){return e(t(r))}}var Vs=Am,Om=Vs,Rm=Om(Object.keys,Object),Ym=Rm,Nm=Ma,xm=Ym,Um=Object.prototype,Lm=Um.hasOwnProperty;function jm(e){if(!Nm(e))return xm(e);var t=[];for(var r in Object(e))Lm.call(e,r)&&r!="constructor"&&t.push(r);return t}var Hm=jm,Fm=yt,Wm=Ca;function Gm(e){return e!=null&&Wm(e.length)&&!Fm(e)}var cr=Gm,Bm=zs,zm=Hm,Vm=cr;function Km(e){return Vm(e)?Bm(e):zm(e)}var Aa=Km,Zm=kf,Qm=xf,Jm=Aa;function Xm(e){return Zm(e,Jm,Qm)}var ev=Xm,$n=ev,tv=1,rv=Object.prototype,av=rv.hasOwnProperty;function nv(e,t,r,o,u,f){var l=r&tv,n=$n(e),a=n.length,s=$n(t),i=s.length;if(a!=i&&!l)return!1;for(var c=a;c--;){var h=n[c];if(!(l?h in t:av.call(t,h)))return!1}var d=f.get(e),m=f.get(t);if(d&&m)return d==t&&m==e;var v=!0;f.set(e,t),f.set(t,e);for(var y=l;++c<a;){h=n[c];var p=e[h],P=t[h];if(o)var $=l?o(P,p,h,t,e,f):o(p,P,h,e,t,f);if(!($===void 0?p===P||u(p,P,r,o,f):$)){v=!1;break}y||(y=h=="constructor")}if(v&&!y){var q=e.constructor,C=t.constructor;q!=C&&"constructor"in e&&"constructor"in t&&!(typeof q=="function"&&q instanceof q&&typeof C=="function"&&C instanceof C)&&(v=!1)}return f.delete(e),f.delete(t),v}var sv=nv,ov=wt,iv=We,uv=ov(iv,"DataView"),lv=uv,cv=wt,dv=We,hv=cv(dv,"Promise"),fv=hv,mv=wt,vv=We,gv=mv(vv,"Set"),pv=gv,yv=wt,wv=We,Pv=yv(wv,"WeakMap"),qv=Pv,la=lv,ca=Ea,da=fv,ha=pv,fa=qv,Ks=Ge,xt=Ys,kn="[object Map]",bv="[object Object]",Cn="[object Promise]",In="[object Set]",_n="[object WeakMap]",Mn="[object DataView]",Dv=xt(la),Ev=xt(ca),Tv=xt(da),Sv=xt(ha),$v=xt(fa),dt=Ks;(la&&dt(new la(new ArrayBuffer(1)))!=Mn||ca&&dt(new ca)!=kn||da&&dt(da.resolve())!=Cn||ha&&dt(new ha)!=In||fa&&dt(new fa)!=_n)&&
vendor: 5,985 bytes, line 1
1(dt=function(e){var t=Ks(e),r=t==bv?e.constructor:void 0,o=r?xt(r):"";if(o)switch(o){case Dv:return Mn;case Ev:return kn;case Tv:return Cn;case Sv:return In;case $v:return _n}return t});var kv=dt,ra=Ia,Cv=Gs,Iv=bf,_v=sv,An=kv,On=Ne,Rn=_t,Mv=_a,Av=1,Yn="[object Arguments]",Nn="[object Array]",qr="[object Object]",Ov=Object.prototype,xn=Ov.hasOwnProperty;function Rv(e,t,r,o,u,f){var l=On(e),n=On(t),a=l?Nn:An(e),s=n?Nn:An(t);a=a==Yn?qr:a,s=s==Yn?qr:s;var i=a==qr,c=s==qr,h=a==s;if(h&&Rn(e)){if(!Rn(t))return!1;l=!0,i=!1}if(h&&!i)return f||(f=new ra),l||Mv(e)?Cv(e,t,r,o,u,f):Iv(e,t,a,r,o,u,f);if(!(r&Av)){var d=i&&xn.call(e,"__wrapped__"),m=c&&xn.call(t,"__wrapped__");if(d||m){var v=d?e.value():e,y=m?t.value():t;return f||(f=new ra),u(v,y,r,o,f)}}return h?(f||(f=new ra),_v(e,t,r,o,u,f)):!1}var Yv=Rv,Nv=Yv,Un=xe;function Zs(e,t,r,o,u){return e===t?!0:e==null||t==null||!Un(e)&&!Un(t)?e!==e&&t!==t:Nv(e,t,r,o,Zs,u)}var Qs=Zs,xv=Ia,Uv=Qs,Lv=1,jv=2;function Hv(e,t,r,o){var u=r.length,f=u,l=!o;if(e==null)return!f;for(e=Object(e);u--;){var n=r[u];if(l&&n[2]?n[1]!==e[n[0]]:!(n[0]in e))return!1}for(;++u<f;){n=r[u];var a=n[0],s=e[a],i=n[1];if(l&&n[2]){if(s===void 0&&!(a in e))return!1}else{var c=new xv;if(o)var h=o(s,i,a,e,t,c);if(!(h===void 0?Uv(i,s,Lv|jv,o,c):h))return!1}}return!0}var Fv=Hv,Wv=Ze;function Gv(e){return e===e&&!Wv(e)}var Js=Gv,Bv=Js,zv=Aa;function Vv(e){for(var t=zv(e),r=t.length;r--;){var o=t[r],u=e[o];t[r]=[o,u,Bv(u)]}return t}var Kv=Vv;function Zv(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Xs=Zv,Qv=Fv,Jv=Kv,Xv=Xs;function eg(e){var t=Jv(e);return t.length==1&&t[0][2]?Xv(t[0][0],t[0][1]):function(r){return r===e||Qv(r,e,t)}}var tg=eg,rg=Us,ag=Wr;function ng(e,t){t=rg(t,e);for(var r=0,o=t.length;e!=null&&r<o;)e=e[ag(t[r++])];return r&&r==o?e:void 0}var eo=ng,sg=eo;function og(e,t,r){var o=e==null?void 0:sg(e,t);return o===void 0?r:o}var mt=og;function ig(e,t){return e!=null&&t in Object(e)}var ug=ig,lg=ug,cg=js;function dg(e,t){return e!=null&&cg(e,t,lg)}var hg=dg,fg=Qs,mg=mt,vg=hg,gg=Da,pg=Js,yg=Xs,wg=Wr,Pg=1,qg=2;function bg(e,t){return gg(e)&&pg(t)?yg(wg(e),t):function(r){var o=mg(r,e);return o===void 0&&o===t?vg(r,e):fg(t,o,Pg|qg)}}var Dg=bg;function Eg(e){return e}var Oa=Eg;function Tg(e){return function(t){return t==null?void 0:t[e]}}var Sg=Tg,$g=eo;function kg(e){return function(t){return $g(t,e)}}var Cg=kg,Ig=Sg,_g=Cg,Mg=Da,Ag=Wr;function Og(e){return Mg(e)?Ig(Ag(e)):_g(e)}var Rg=Og,Yg=tg,Ng=Dg,xg=Oa,Ug=Ne,Lg=Rg;function jg(e){return typeof e=="function"?e:e==null?xg:typeof e=="object"?Ug(e)?Ng(e[0],e[1]):Yg(e):Lg(e)}var to=jg;function Hg(e){return function(t,r,o){for(var u=-1,f=Object(t),l=o(t),n=l.length;n--;){var a=l[e?n:++u];if(r(f[a],a,f)===!1)break}return t}}var Fg=Hg,Wg=Fg,Gg=Wg(),ro=Gg,Bg=ro,zg=Aa;function Vg(e,t){return e&&Bg(e,t,zg)}var ao=Vg,Kg=cr;function Zg(e,t){return function(r,o){if(r==null)return r;if(!Kg(r))return e(r,o);for(var u=r.length,f=t?u:-1,l=Object(r);(t?f--:++f<u)&&o(l[f],f,l)!==!1;);return r}}var Qg=Zg,Jg=ao,Xg=Qg,ep=Xg(Jg),tp=ep,rp=tp;function ap(e,t){var r;return rp(e,function(o,u,f){return r=t(o,u,f),!r}),!!r}var np=ap,sp=Ot,op=cr,ip=ka,up=Ze;function lp(e,t,r){if(!up(r))return!1;var o=typeof t;return(o=="number"?op(r)&&ip(t,r.length):o=="string"&&t in r)?sp(r[t],e):!1}var Ra=lp,cp=Ws,dp=to,hp=np,fp=Ne,mp=Ra;function vp(e,t,r){var o=fp(e)?cp:hp;return r&&mp(e,t,r)&&(t=void 0),o(e,dp(t))}var gp=vp,pp=Ge,yp=xe,wp="[object Boolean]";function Pp(e){return e===!0||e===!1||yp(e)&&pp(e)==wp}var qp=Pp,bp=Ge,Dp=xe,Ep="[object Number]";function Tp(e){return typeof e=="number"||Dp(e)&&bp(e)==Ep}var Ye=Tp,Sp=wt,$p=function(){try{var e=Sp(Object,"defineProperty");return e({},"",{}),e}catch{}}(),no=$p,Ln=no;function kp(e,t,r){t=="__proto__"&&Ln?Ln(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Gr=kp,Cp=Gr,Ip=Ot,_p=Object.prototype,Mp=_p.hasOwnProperty;function Ap(e,t,r){var o=e[t];(!(Mp.call(e,t)&&Ip(o,r))||r===void 0&&!(t in e))&&Cp(e,t,r)}var Op=Ap,Rp=Gr,Yp=ao,Np=to;function xp(e,t){var r={};return t=Np(t),Yp(e,function(o,u,f){Rp(r,u,t(o,u,f))}),r}var Up=xp;function Lp(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var so=Lp,jp=so,jn=Math.max;function Hp(e,t,r){return t=jn(t===void 0?e.length-1:t,0),function(){for(var o=arguments,u=-1,f=jn(o.length-t,0),l=Array(f);++u<f;)l[u]=o[t+u];u=-1;for(var n=Array(t+1);++u<t;)n[u]=o[u];return n[t]=r(l),jp(e,this,n)}}var Fp=Hp;function Wp(e){return function(){return e}}var Gp=Wp,Bp=Gp,Hn=no,zp=Oa,Vp=Hn?function(e,t){return Hn(e,"toString",{configurable:!0,enumerable:!1,value:Bp(t),writable:!0})}:zp,Kp=Vp,Zp=800,Qp=16,Jp=Date.now;function Xp(e){var t=0,r=0;return function(){var o=Jp(),u=Qp-(o-r);if(r=o,u>0){if(++t>=Zp)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var ey=Xp,ty=Kp,ry=ey,ay=ry(ty),ny=ay,sy=Oa,oy=Fp,iy=ny;function uy(e,t){return iy(oy(e,t,sy),e+"")}var Ya=uy;function ly(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var cy=ly,dy=Ze,hy=Ma,fy=cy,my=Object.prototype,vy=my.hasOwnProperty;function gy(e){if(!dy(e))return fy(e);var t=hy(e),r=[];for(var o in e)o=="constructor"&&(t||!vy.call(e,o))||r.push(o);return r}var py=gy,yy=zs,wy=py,Py=cr;function qy(e){return Py(e)?yy(e,!0):wy(e)}var Na=qy,by=Ya,Dy=Ot,Ey=Ra,Ty=Na,oo=Object.prototype,Sy=oo.hasOwnProperty,$y=by(function(e,t){e=Object(e);var r=-1,o=t.length,u=o>2?t[2]:void 0;for(u&&Ey(t[0],t[1],u)&&(o=1);++r<o;)for(var f=t[r],l=Ty(f),n=-1,a=l.length;++n<a;){var s=l[n],i=e[s];(i===void 0||Dy(i,oo[s])&&!Sy.call(e,s))&&(e[s]=f[s])}return e}),Fn=$y,ky=Gr,Cy=Ot;function Iy(e,t,r){(r!==void 0&&!Cy(e[t],r)||r===void 0&&!(t in e))&&ky(e,t,r)}var io=Iy,kr={},_y={get exports(){return kr},set exports(e){kr=e}};(function(e,t){var r=We,o=t&&!t.nodeType&&t,u=o&&!0&&e&&!e.nodeType&&e,f=u&&u.exports===o,l=f?r.Buffer:void 0,n=l?l.allocUnsafe:void 0;
1function a(s,i){if(i)return s.slice();var c=s.length,h=n?n(c):new s.constructor(c);return s.copy(h),h}e.exports=a})(_y,kr);var Wn=Bs;function My(e){var t=new e.constructor(e.byteLength);return new Wn(t).set(new Wn(e)),t}var Ay=My,Oy=Ay;function Ry(e,t){var r=t?Oy(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Yy=Ry;function Ny(e,t){var r=-1,o=e.length;for(t||(t=Array(o));++r<o;)t[r]=e[r];return t}var xy=Ny,Uy=Ze,Gn=Object.create,Ly=function(){function e(){}return function(t){if(!Uy(t))return{};if(Gn)return Gn(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),jy=Ly,Hy=Vs,Fy=Hy(Object.getPrototypeOf,Object),uo=Fy,Wy=jy,Gy=uo,By=Ma;function zy(e){return typeof e.constructor=="function"&&!By(e)?Wy(Gy(e)):{}}var Vy=zy,Ky=cr,Zy=xe;function Qy(e){return Zy(e)&&Ky(e)}var Jy=Qy,Xy=Ge,ew=uo,tw=xe,rw="[object Object]",aw=Function.prototype,nw=Object.prototype,lo=aw.toString,sw=nw.hasOwnProperty,ow=lo.call(Object);function iw(e){if(!tw(e)||Xy(e)!=rw)return!1;var t=ew(e);if(t===null)return!0;var r=sw.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&lo.call(r)==ow}var uw=iw;function lw(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var co=lw,cw=Op,dw=Gr;function hw(e,t,r,o){var u=!r;r||(r={});for(var f=-1,l=t.length;++f<l;){var n=t[f],a=o?o(r[n],e[n],n,r,e):void 0;a===void 0&&(a=e[n]),u?dw(r,n,a):cw(r,n,a)}return r}var fw=hw,mw=fw,vw=Na;function gw(e){return mw(e,vw(e))}var pw=gw,Bn=io,yw=kr,ww=Yy,Pw=xy,qw=Vy,zn=$a,Vn=Ne,bw=Jy,Dw=_t,Ew=yt,Tw=Ze,Sw=uw,$w=_a,Kn=co,kw=pw;function Cw(e,t,r,o,u,f,l){var n=Kn(e,r),a=Kn(t,r),s=l.get(a);if(s){Bn(e,r,s);return}var i=f?f(n,a,r+"",e,t,l):void 0,c=i===void 0;if(c){var h=Vn(a),d=!h&&Dw(a),m=!h&&!d&&$w(a);i=a,h||d||m?Vn(n)?i=n:bw(n)?i=Pw(n):d?(c=!1,i=yw(a,!0)):m?(c=!1,i=ww(a,!0)):i=[]:Sw(a)||zn(a)?(i=n,zn(n)?i=kw(n):(!Tw(n)||Ew(n))&&(i=qw(a))):c=!1}c&&(l.set(a,i),u(i,a,o,f,l),l.delete(a)),Bn(e,r,i)}var Iw=Cw,_w=Ia,Mw=io,Aw=ro,Ow=Iw,Rw=Ze,Yw=Na,Nw=co;function ho(e,t,r,o,u){e!==t&&Aw(t,function(f,l){if(u||(u=new _w),Rw(f))Ow(e,t,l,r,ho,o,u);else{var n=o?o(Nw(e,l),f,l+"",e,t,u):void 0;n===void 0&&(n=f),Mw(e,l,n)}},Yw)}var fo=ho,xw=fo,Zn=Ze;function mo(e,t,r,o,u,f){return Zn(e)&&Zn(t)&&(f.set(t,e),xw(e,t,void 0,mo,f),f.delete(t)),e}var Uw=mo,Lw=Ya,jw=Ra;function Hw(e){return Lw(function(t,r){var o=-1,u=r.length,f=u>1?r[u-1]:void 0,l=u>2?r[2]:void 0;for(f=e.length>3&&typeof f=="function"?(u--,f):void 0,l&&jw(r[0],r[1],l)&&(f=u<3?void 0:f,u=1),t=Object(t);++o<u;){var n=r[o];n&&e(t,n,o,f)}return t})}var Fw=Hw,Ww=fo,Gw=Fw,Bw=Gw(function(e,t,r,o){Ww(e,t,r,o)}),zw=Bw,Vw=so,Kw=Ya,Zw=Uw,Qw=zw,Jw=Kw(function(e){return e.push(void 0,Zw),Vw(Qw,void 0,e)}),or=Jw;function Xw(e){return e&&e.length?e[0]:void 0}var vo=Xw;function eP(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var $t=eP;const tP=e=>Object.prototype.toString.call(e).slice(8,-1),Ct=e=>oh(e)&&!isNaN(e.getTime()),Ve=e=>tP(e)==="Object",go=Hs,Qn=(e,t)=>gp(t,r=>Hs(e,r)),Z=(e,t,r="0")=>{for(e=e!=null?String(e):"",t=t||2;e.length<t;)e=`${r}${e}`;return e},Me=e=>Array.isArray(e),ze=e=>Me(e)&&e.length>0,Cr=e=>e==null?null:document&&He(e)?document.querySelector(e):e.$el??e,st=(e,t,r,o=void 0)=>{e.removeEventListener(t,r,o)},ot=(e,t,r,o=void 0)=>(e.addEventListener(t,r,o),()=>st(e,t,r,o)),Dr=(e,t)=>!!e&&!!t&&(e===t||e.contains(t)),br=(e,t)=>{(e.key===" "||e.key==="Enter")&&(t(e),e.preventDefault())},po=(e,...t)=>{const r={};let o;for(o in e)t.includes(o)||(r[o]=e[o]);return r},yo=(e,t)=>{const r={};return t.forEach(o=>{o in e&&(r[o]=e[o])}),r};function rP(e,t,r){return Math.min(Math.max(e,t),r)}var Ir={},aP={get exports(){return Ir},set exports(e){Ir=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(o){if(o===null||o===!0||o===!1)return NaN;var u=Number(o);return isNaN(u)?u:u<0?Math.ceil(u):Math.floor(u)}e.exports=t.default})(aP,Ir);const nP=As(Ir);var _r={},sP={get exports(){return _r},set exports(e){_r=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(o){var u=new Date(Date.UTC(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()));return u.setUTCFullYear(o.getFullYear()),o.getTime()-u.getTime()}
1e.exports=t.default})(sP,_r);const Jn=As(_r);function oP(e,t){var r=cP(t);return r.formatToParts?uP(r,e):lP(r,e)}var iP={year:0,month:1,day:2,hour:3,minute:4,second:5};function uP(e,t){try{for(var r=e.formatToParts(t),o=[],u=0;u<r.length;u++){var f=iP[r[u].type];f>=0&&(o[f]=parseInt(r[u].value,10))}return o}catch(l){if(l instanceof RangeError)return[NaN];throw l}}function lP(e,t){var r=e.format(t).replace(/\u200E/g,""),o=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r);return[o[3],o[1],o[2],o[4],o[5],o[6]]}var aa={};function cP(e){if(!aa[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==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";aa[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 aa[e]}function wo(e,t,r,o,u,f,l){var n=new Date(0);return n.setUTCFullYear(e,t,r),n.setUTCHours(o,u,f,l),n}var Xn=36e5,dP=6e4,na={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function hP(e,t,r){var o,u;if(!e||(o=na.timezoneZ.exec(e),o))return 0;var f;if(o=na.timezoneHH.exec(e),o)return f=parseInt(o[1],10),es(f)?-(f*Xn):NaN;if(o=na.timezoneHHMM.exec(e),o){f=parseInt(o[1],10);var l=parseInt(o[2],10);return es(f,l)?(u=Math.abs(f)*Xn+l*dP,f>0?-u:u):NaN}if(vP(e)){t=new Date(t||Date.now());var n=fP(t),a=ma(n,e),s=mP(t,a,e);return-s}return NaN}function fP(e){return wo(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function ma(e,t){var r=oP(e,t),o=wo(r[0],r[1]-1,r[2],r[3]%24,r[4],r[5],0).getTime(),u=e.getTime(),f=u%1e3;return u-=f>=0?f:1e3+f,o-u}function mP(e,t,r){var o=e.getTime(),u=o-t,f=ma(new Date(u),r);if(t===f)return t;u-=f-t;var l=ma(new Date(u),r);return f===l?f:Math.max(f,l)}function es(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var ts={};function vP(e){if(ts[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),ts[e]=!0,!0}catch{return!1}}var gP=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const pP=gP;var sa=36e5,rs=6e4,yP=2,De={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,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:pP};function wP(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||{},o=r.additionalDigits==null?yP:nP(r.additionalDigits);if(o!==2&&o!==1&&o!==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 u=PP(e),f=qP(u.date,o),l=f.year,n=f.restDateString,a=bP(n,l);if(isNaN(a))return new Date(NaN);if(a){var s=a.getTime(),i=0,c;
1if(u.time&&(i=DP(u.time),isNaN(i)))return new Date(NaN);if(u.timeZone||r.timeZone){if(c=hP(u.timeZone||r.timeZone,new Date(s+i)),isNaN(c))return new Date(NaN)}else c=Jn(new Date(s+i)),c=Jn(new Date(s+i+c));return new Date(s+i+c)}else return new Date(NaN)}function PP(e){var t={},r=De.dateTimePattern.exec(e),o;if(r?(t.date=r[1],o=r[3]):(r=De.datePattern.exec(e),r?(t.date=r[1],o=r[2]):(t.date=null,o=e)),o){var u=De.timeZone.exec(o);u?(t.time=o.replace(u[1],""),t.timeZone=u[1].trim()):t.time=o}return t}function qP(e,t){var r=De.YYY[t],o=De.YYYYY[t],u;if(u=De.YYYY.exec(e)||o.exec(e),u){var f=u[1];return{year:parseInt(f,10),restDateString:e.slice(f.length)}}if(u=De.YY.exec(e)||r.exec(e),u){var l=u[1];return{year:parseInt(l,10)*100,restDateString:e.slice(l.length)}}return{year:null}}function bP(e,t){if(t===null)return null;var r,o,u,f;if(e.length===0)return o=new Date(0),o.setUTCFullYear(t),o;if(r=De.MM.exec(e),r)return o=new Date(0),u=parseInt(r[1],10)-1,ns(t,u)?(o.setUTCFullYear(t,u),o):new Date(NaN);if(r=De.DDD.exec(e),r){o=new Date(0);var l=parseInt(r[1],10);return SP(t,l)?(o.setUTCFullYear(t,0,l),o):new Date(NaN)}if(r=De.MMDD.exec(e),r){o=new Date(0),u=parseInt(r[1],10)-1;var n=parseInt(r[2],10);return ns(t,u,n)?(o.setUTCFullYear(t,u,n),o):new Date(NaN)}if(r=De.Www.exec(e),r)return f=parseInt(r[1],10)-1,ss(t,f)?as(t,f):new Date(NaN);if(r=De.WwwD.exec(e),r){f=parseInt(r[1],10)-1;var a=parseInt(r[2],10)-1;return ss(t,f,a)?as(t,f,a):new Date(NaN)}return null}function DP(e){var t,r,o;if(t=De.HH.exec(e),t)return r=parseFloat(t[1].replace(",",".")),oa(r)?r%24*sa:NaN;if(t=De.HHMM.exec(e),t)return r=parseInt(t[1],10),o=parseFloat(t[2].replace(",",".")),oa(r,o)?r%24*sa+o*rs:NaN;if(t=De.HHMMSS.exec(e),t){r=parseInt(t[1],10),o=parseInt(t[2],10);var u=parseFloat(t[3].replace(",","."));return oa(r,o,u)?r%24*sa+o*rs+u*1e3:NaN}return null}function as(e,t,r){t=t||0,r=r||0;var o=new Date(0);o.setUTCFullYear(e,0,4);var u=o.getUTCDay()||7,f=t*7+r+1-u;return o.setUTCDate(o.getUTCDate()+f),o}var EP=[31,28,31,30,31,30,31,31,30,31,30,31],TP=[31,29,31,30,31,30,31,31,30,31,30,31];function Po(e){return e%400===0||e%4===0&&e%100!==0}function ns(e,t,r){if(t<0||t>11)return!1;if(r!=null){if(r<1)return!1;var o=Po(e);if(o&&r>TP[t]||!o&&r>EP[t])return!1}return!0}function SP(e,t){if(t<1)return!1;var r=Po(e);return!(r&&t>366||!r&&t>365)}function ss(e,t,r){return!(t<0||t>52||r!=null&&(r<0||r>6))}function oa(e,t,r){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||r!=null&&(r<0||r>=60))}function Pe(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Er(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Er=function(r){return typeof r}:Er=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Er(e)}function Qe(e){Pe(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Er(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 Ut(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)}var $P={};function xa(){return $P}function pt(e,t){var r,o,u,f,l,n,a,s;Pe(1,arguments);var i=xa(),c=Ut((r=(o=(u=(f=t==null?void 0:t.weekStartsOn)!==null&&f!==void 0?f:t==null||(l=t.locale)===null||l===void 0||(n=l.options)===null||n===void 0?void 0:n.weekStartsOn)!==null&&u!==void 0?u:i.weekStartsOn)!==null&&o!==void 0?o:(a=i.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&r!==void 0?r:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Qe(e),d=h.getDay(),m=(d<c?7:0)+d-c;return h.setDate(h.getDate()-m),h.setHours(0,0,0,0),h}function os(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()}var kP=6048e5;function CP(e,t,r){Pe(2,arguments);var o=pt(e,r),u=pt(t,r),f=o.getTime()-os(o),l=u.getTime()-os(u);return Math.round((f-l)/kP)}function IP(e){Pe(1,arguments);var t=Qe(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(0,0,0,0),t}function _P(e){Pe(1,arguments);var t=Qe(e);return t.setDate(1),t.setHours(0,0,0,0),t}function MP(e,t){return Pe(1,arguments),CP(IP(e),_P(e),t)+1}function AP(e,t){var r,o,u,f,l,n,a,s;Pe(1,arguments);var i=Qe(e),c=i.getFullYear(),h=xa(),d=Ut((r=(o=(u=(f=t==null?void 0:t.firstWeekContainsDate)!==null&&f!==void 0?f:t==null||(l=t.locale)===null||l===void 0||(n=l.options)===null||n===void 0?void 0:n.firstWeekContainsDate)!==null&&u!==void 0?u:h.firstWeekContainsDate)!==null&&o!==void 0?o:(a=h.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);
1m.setFullYear(c+1,0,d),m.setHours(0,0,0,0);var v=pt(m,t),y=new Date(0);y.setFullYear(c,0,d),y.setHours(0,0,0,0);var p=pt(y,t);return i.getTime()>=v.getTime()?c+1:i.getTime()>=p.getTime()?c:c-1}function OP(e,t){var r,o,u,f,l,n,a,s;Pe(1,arguments);var i=xa(),c=Ut((r=(o=(u=(f=t==null?void 0:t.firstWeekContainsDate)!==null&&f!==void 0?f:t==null||(l=t.locale)===null||l===void 0||(n=l.options)===null||n===void 0?void 0:n.firstWeekContainsDate)!==null&&u!==void 0?u:i.firstWeekContainsDate)!==null&&o!==void 0?o:(a=i.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&r!==void 0?r:1),h=AP(e,t),d=new Date(0);d.setFullYear(h,0,c),d.setHours(0,0,0,0);var m=pt(d,t);return m}var RP=6048e5;function YP(e,t){Pe(1,arguments);var r=Qe(e),o=pt(r,t).getTime()-OP(r,t).getTime();return Math.round(o/RP)+1}function Mr(e){return Pe(1,arguments),pt(e,{weekStartsOn:1})}function NP(e){Pe(1,arguments);var t=Qe(e),r=t.getFullYear(),o=new Date(0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);var u=Mr(o),f=new Date(0);f.setFullYear(r,0,4),f.setHours(0,0,0,0);var l=Mr(f);return t.getTime()>=u.getTime()?r+1:t.getTime()>=l.getTime()?r:r-1}function xP(e){Pe(1,arguments);var t=NP(e),r=new Date(0);r.setFullYear(t,0,4),r.setHours(0,0,0,0);var o=Mr(r);return o}var UP=6048e5;function LP(e){Pe(1,arguments);var t=Qe(e),r=Mr(t).getTime()-xP(t).getTime();return Math.round(r/UP)+1}function be(e,t){Pe(2,arguments);var r=Qe(e),o=Ut(t);return isNaN(o)?new Date(NaN):(o&&r.setDate(r.getDate()+o),r)}function Ar(e,t){Pe(2,arguments);var r=Qe(e),o=Ut(t);if(isNaN(o))return new Date(NaN);if(!o)return r;var u=r.getDate(),f=new Date(r.getTime());f.setMonth(r.getMonth()+o+1,0);var l=f.getDate();return u>=l?f:(r.setFullYear(f.getFullYear(),f.getMonth(),u),r)}function is(e,t){Pe(2,arguments);var r=Ut(t);return Ar(e,r*12)}const jP={daily:["year","month","day"],weekly:["year","month","week"],monthly:["year","month"]};function HP({monthComps:e,prevMonthComps:t,nextMonthComps:r},o){const u=[],{firstDayOfWeek:f,firstWeekday:l,isoWeeknumbers:n,weeknumbers:a,numDays:s,numWeeks:i}=e,c=l+(l<f?we:0)-f;let h=!0,d=!1,m=!1,v=0;const y=new Intl.DateTimeFormat(o.id,{weekday:"long",year:"numeric",month:"short",day:"numeric"});let p=t.numDays-c+1,P=t.numDays-p+1,$=Math.floor((p-1)/we+1),q=1,C=t.numWeeks,U=1,N=t.month,j=t.year;const H=new Date,ie=H.getDate(),Q=H.getMonth()+1,A=H.getFullYear();for(let F=1;F<=Oq;F++){for(let J=1,M=f;J<=we;J++,M+=M===we?1-we:1){h&&M===l&&(p=1,P=e.numDays,$=Math.floor((p-1)/we+1),q=Math.floor((s-p)/we+1),C=1,U=i,N=e.month,j=e.year,h=!1,d=!0);const te=o.getDateFromParams(j,N,p,0,0,0,0),ue=o.getDateFromParams(j,N,p,12,0,0,0),ye=o.getDateFromParams(j,N,p,23,59,59,999),se=te,S=`${Z(j,4)}-${Z(N,2)}-${Z(p,2)}`,G=J,O=we-J,ge=a[F-1],K=n[F-1],fe=p===ie&&N===Q&&j===A,Ce=d&&p===1,me=d&&p===s,Ae=F===1,Oe=F===i,R=J===1,B=J===we,z=Mo(j,N,p);u.push({locale:o,id:S,position:++v,label:p.toString(),ariaLabel:y.format(new Date(j,N-1,p)),day:p,dayFromEnd:P,weekday:M,weekdayPosition:G,weekdayPositionFromEnd:O,weekdayOrdinal:$,weekdayOrdinalFromEnd:q,week:C,weekFromEnd:U,weekPosition:F,weeknumber:ge,isoWeeknumber:K,month:N,year:j,date:se,startDate:te,endDate:ye,noonDate:ue,dayIndex:z,isToday:fe,isFirstDay:Ce,isLastDay:me,isDisabled:!d,isFocusable:!d,isFocused:!1,inMonth:d,inPrevMonth:h,inNextMonth:m,onTop:Ae,onBottom:Oe,onLeft:
1R,onRight:B,classes:[`id-${S}`,`day-${p}`,`day-from-end-${P}`,`weekday-${M}`,`weekday-position-${G}`,`weekday-ordinal-${$}`,`weekday-ordinal-from-end-${q}`,`week-${C}`,`week-from-end-${U}`,{"is-today":fe,"is-first-day":Ce,"is-last-day":me,"in-month":d,"in-prev-month":h,"in-next-month":m,"on-top":Ae,"on-bottom":Oe,"on-left":R,"on-right":B}]}),d&&me?(d=!1,m=!0,p=1,P=s,$=1,q=Math.floor((s-p)/we+1),C=1,U=r.numWeeks,N=r.month,j=r.year):(p++,P--,$=Math.floor((p-1)/we+1),q=Math.floor((s-p)/we+1))}C++,U--}return u}function FP(e,t,r,o){const u=e.reduce((f,l,n)=>{const a=Math.floor(n/7);let s=f[a];return s||(s={id:`week-${a+1}`,title:"",week:l.week,weekPosition:l.weekPosition,weeknumber:l.weeknumber,isoWeeknumber:l.isoWeeknumber,weeknumberDisplay:t?l.weeknumber:r?l.isoWeeknumber:void 0,days:[]},f[a]=s),s.days.push(l),f},Array(e.length/we));return u.forEach(f=>{const l=f.days[0],n=f.days[f.days.length-1];l.month===n.month?f.title=`${o.formatDate(l.date,"MMMM YYYY")}`:l.year===n.year?f.title=`${o.formatDate(l.date,"MMM")} - ${o.formatDate(n.date,"MMM YYYY")}`:f.title=`${o.formatDate(l.date,"MMM YYYY")} - ${o.formatDate(n.date,"MMM YYYY")}`}),u}function WP(e,t){return e.days.map(r=>({label:t.formatDate(r.date,t.masks.weekdays),weekday:r.weekday}))}function GP(e,t){return`${t}.${Z(e,2)}`}function qo(e,t,r){return yo(r.getDateParts(r.toDate(e)),jP[t])}function bo({day:e,week:t,month:r,year:o},u,f,l){if(f==="daily"&&e){const n=new Date(o,r-1,e),a=be(n,u);return{day:a.getDate(),month:a.getMonth()+1,year:a.getFullYear()}}else if(f==="weekly"&&t){const a=l.getMonthParts(r,o).firstDayOfMonth,s=be(a,(t-1+u)*7),i=l.getDateParts(s);return{week:i.week,month:i.month,year:i.year}}else{const n=new Date(o,r-1,1),a=Ar(n,u);return{month:a.getMonth()+1,year:a.getFullYear()}}}function Fe(e){return e!=null&&e.month!=null&&e.year!=null}function va(e,t){return!Fe(e)||!Fe(t)?!1:(e=e,t=t,e.year!==t.year?e.year<t.year:e.month&&t.month&&e.month!==t.month?e.month<t.month:e.week&&t.week&&e.week!==t.week?e.week<t.week:e.day&&t.day&&e.day!==t.day?e.day<t.day:!1)}function Or(e,t){return!Fe(e)||!Fe(t)?!1:(e=e,t=t,e.year!==t.year?e.year>t.year:e.month&&t.month&&e.month!==t.month?e.month>t.month:e.week&&t.week&&e.week!==t.week?e.week>t.week:e.day&&t.day&&e.day!==t.day?e.day>t.day:!1)}function BP(e,t,r){return(e||!1)&&!va(e,t)&&!Or(e,r)}function zP(e,t){return!e&&t||e&&!t?!1:!e&&!t?!0:(e=e,t=t,e.year===t.year&&e.month===t.month&&e.week===t.week&&e.day===t.day)}function VP(e,t,r,o){if(!Fe(e)||!Fe(t))return[];const u=[];for(;!Or(e,t);)u.push(e),e=bo(e,1,r,o);return u}function Do(e){const{day:t,week:r,month:o,year:u}=e;let f=`${u}-${Z(o,2)}`;return r&&(f=`${f}-w${r}`),t&&(f=`${f}-${Z(t,2)}`),f}function KP(e,t){const{month:r,year:o,showWeeknumbers:u,showIsoWeeknumbers:f}=e,l=new Date(o,r-1,15),n=t.getMonthParts(r,o),a=t.getPrevMonthParts(r,o),s=t.getNextMonthParts(r,o),i=HP({monthComps:n,prevMonthComps:a,nextMonthComps:s},t),c=FP(i,u,f,t),h=WP(c[0],t);return{id:Do(e),month:r,year:o,monthTitle:t.formatDate(l,t.masks.title),shortMonthLabel:t.formatDate(l,"MMM"),monthLabel:t.formatDate(l,"MMMM"),shortYearLabel:o.toString().substring(2),yearLabel:o.toString(),monthComps:n,prevMonthComps:a,nextMonthComps:s,days:i,weeks:c,weekdays:h}}function ZP(e,t){const{day:r,week:o,view:u,trimWeeks:f}=e,l={...t,...e,title:"",viewDays:[],viewWeeks:[]};switch(u){case"daily":{let n=l.days.find(s=>s.inMonth);r?n=l.days.find(s=>s.day===r&&s.inMonth)||n:o&&(n=l.days.find(s=>s.week===o&&s.inMonth));const a=l.weeks[n.week-1];l.viewWeeks=[a],l.viewDays=[n],l.week=n.week,l.weekTitle=a.title,l.day=n.day,l.dayTitle=n.ariaLabel,l.title=l.dayTitle;break}case"weekly":{l.week=o||1;const n=l.weeks[l.week-1];l.viewWeeks=[n],l.viewDays=n.days,l.weekTitle=n.title,l.title=l.weekTitle;break}default:{l.title=l.monthTitle,l.viewWeeks=l.weeks.slice(0,f?l.monthComps.numWeeks:void 0),l.viewDays=l.days;break}}return l}class us{constructor(t,r,o){_(this,"keys",[]),_(this,"store",{}),this.size=t,this.createKey=r,this.createItem=o}get(...t){const r=this.createKey(...t);return this.store[r]}getOrSet(...t){const r=this.createKey(...t);if(this.store[r])return this.store[r];const o=this.createItem(...t);if(this.keys.length>=this.size){const u=this.keys.shift();
1u!=null&&delete this.store[u]}return this.keys.push(r),this.store[r]=o,o}}class It{constructor(t,r=new Rr){_(this,"order"),_(this,"locale"),_(this,"start",null),_(this,"end",null),_(this,"repeat",null);var o;this.locale=r;const{start:u,end:f,span:l,order:n,repeat:a}=t;Ct(u)&&(this.start=r.getDateParts(u)),Ct(f)?this.end=r.getDateParts(f):this.start!=null&&l&&(this.end=r.getDateParts(be(this.start.date,l-1))),this.order=n??0,a&&(this.repeat=new Yr({from:(o=this.start)==null?void 0:o.date,...a},{locale:this.locale}))}static fromMany(t,r){return(Me(t)?t:[t]).filter(o=>o).map(o=>It.from(o,r))}static from(t,r){if(t instanceof It)return t;const o={start:null,end:null};return t!=null&&(Me(t)?(o.start=t[0]??null,o.end=t[1]??null):Ve(t)?Object.assign(o,t):(o.start=t,o.end=t)),o.start!=null&&(o.start=new Date(o.start)),o.end!=null&&(o.end=new Date(o.end)),new It(o,r)}get opts(){const{order:t,locale:r}=this;return{order:t,locale:r}}get hasRepeat(){return!!this.repeat}get isSingleDay(){const{start:t,end:r}=this;return t&&r&&t.year===r.year&&t.month===r.month&&t.day===r.day}get isMultiDay(){return!this.isSingleDay}get daySpan(){return this.start==null||this.end==null?this.hasRepeat?1:1/0:this.end.dayIndex-this.start.dayIndex}startsOnDay(t){var r,o;return((r=this.start)==null?void 0:r.dayIndex)===t.dayIndex||!!((o=this.repeat)!=null&&o.passes(t))}intersectsDay(t){return this.intersectsDayRange(t,t)}intersectsRange(t){var r,o;return this.intersectsDayRange(((r=t.start)==null?void 0:r.dayIndex)??-1/0,((o=t.end)==null?void 0:o.dayIndex)??1/0)}intersectsDayRange(t,r){return!(this.start&&this.start.dayIndex>r||this.end&&this.end.dayIndex<t)}}class QP{constructor(){_(this,"records",{})}render(t,r,o){var u,f,l,n;let a=null;const s=o[0].dayIndex,i=o[o.length-1].dayIndex;return r.hasRepeat?o.forEach(c=>{var h,d;if(r.startsOnDay(c)){const m=r.daySpan<1/0?r.daySpan:1;a={startDay:c.dayIndex,startTime:((h=r.start)==null?void 0:h.time)??0,endDay:c.dayIndex+m-1,endTime:((d=r.end)==null?void 0:d.time)??Tr},this.getRangeRecords(t).push(a)}}):r.intersectsDayRange(s,i)&&(a={startDay:((u=r.start)==null?void 0:u.dayIndex)??-1/0,startTime:((f=r.start)==null?void 0:f.time)??-1/0,endDay:((l=r.end)==null?void 0:l.dayIndex)??1/0,endTime:((n=r.end)==null?void 0:n.time)??1/0},this.getRangeRecords(t).push(a)),a}getRangeRecords(t){let r=this.records[t.key];return r||(r={ranges:[],data:t},this.records[t.key]=r),r.ranges}getCell(t,r){return this.getCells(r).find(f=>f.data.key===t)}cellExists(t,r){const o=this.records[t];return o==null?!1:o.ranges.some(u=>u.startDay<=r&&u.endDay>=r)}getCells(t){const r=Object.values(this.records),o=[],{dayIndex:u}=t;return r.forEach(({data:f,ranges:l})=>{l.filter(n=>n.startDay<=u&&n.endDay>=u).forEach(n=>{const a=u===n.startDay,s=u===n.endDay,i=a?n.startTime:0,c=new Date(t.startDate.getTime()+i),h=s?n.endTime:Tr,d=new Date(t.endDate.getTime()+h),m=i===0&&h===Tr,v=f.order||0;o.push({...n,data:f,onStart:a,onEnd:s,startTime:i,startDate:c,endTime:h,endDate:d,allDay:m,order:v})})}),o.sort((f,l)=>f.order-l.order),o}}const Ke={ar:{dow:7,L:"D/‏M/‏YYYY"},bg:{dow:2,L:"D.MM.YYYY"},ca:{dow:2,L:"DD/MM/YYYY"},"zh-CN":{dow:2,L:"YYYY/MM/DD"},"zh-TW":{dow:1,L:"YYYY/MM/DD"},hr:{dow:2,L:"DD.MM.YYYY"},cs:{dow:2,L:"DD.MM.YYYY"},da:{dow:2,L:"DD.MM.YYYY"},nl:{dow:2,L:"DD-MM-YYYY"},"en-US":{dow:1,L:"MM/DD/YYYY"},"en-AU":{dow:2,L:"DD/MM/YYYY"},"en-CA":{dow:1,L:"YYYY-MM-DD"},"en-GB":{dow:2,L:"DD/MM/YYYY"},"en-IE":{dow:2,L:"DD-MM-YYYY"},"en-NZ":{dow:2,L:"DD/MM/YYYY"},"en-ZA":{dow:1,L:"YYYY/MM/DD"},eo:{dow:2,L:"YYYY-MM-DD"},et:{dow:2,L:"DD.MM.YYYY"},fi:{dow:2,L:"DD.MM.YYYY"},fr:{dow:2,L:"DD/MM/YYYY"},"fr-CA":{dow:1,L:"YYYY-MM-DD"},"fr-CH":{dow:2,L:"DD.MM.YYYY"},de:{dow:2,L:"DD.MM.YYYY"},he:{dow:1,L:"DD.MM.YYYY"},id:{dow:2,L:"DD/MM/YYYY"},it:{dow:2,L:"DD/MM/YYYY"},ja:{dow:1,L:"YYYY年M月D日"},ko:{dow:1,L:"YYYY.MM.DD"},lv:{dow:2,L:"DD.MM.YYYY"},lt:{dow:2,L:"DD.MM.YYYY"},mk:{dow:2,L:"D.MM.YYYY"},nb:{dow:2,L:"D. MMMM YYYY"},nn:{dow:2,L:"D. MMMM YYYY"}
1,pl:{dow:2,L:"DD.MM.YYYY"},pt:{dow:2,L:"DD/MM/YYYY"},ro:{dow:2,L:"DD.MM.YYYY"},ru:{dow:2,L:"DD.MM.YYYY"},sk:{dow:2,L:"DD.MM.YYYY"},"es-ES":{dow:2,L:"DD/MM/YYYY"},"es-MX":{dow:2,L:"DD/MM/YYYY"},sv:{dow:2,L:"YYYY-MM-DD"},th:{dow:1,L:"DD/MM/YYYY"},tr:{dow:2,L:"DD.MM.YYYY"},uk:{dow:2,L:"DD.MM.YYYY"},vi:{dow:2,L:"DD/MM/YYYY"}};Ke.en=Ke["en-US"];Ke.es=Ke["es-ES"];Ke.no=Ke.nb;Ke.zh=Ke["zh-CN"];const JP=Object.entries(Ke).reduce((e,[t,{dow:r,L:o}])=>(e[t]={id:t,firstDayOfWeek:r,masks:{L:o}},e),{}),XP="MMMM YYYY",eq="W",tq="MMM",rq="h A",aq=["L","YYYY-MM-DD","YYYY/MM/DD"],nq=["L h:mm A","YYYY-MM-DD h:mm A","YYYY/MM/DD h:mm A"],sq=["L HH:mm","YYYY-MM-DD HH:mm","YYYY/MM/DD HH:mm"],oq=["h:mm A"],iq=["HH:mm"],uq="WWW, MMM D, YYYY",lq=["L","YYYY-MM-DD","YYYY/MM/DD"],cq="iso",dq="YYYY-MM-DDTHH:mm:ss.SSSZ",hq={title:XP,weekdays:eq,navMonths:tq,hours:rq,input:aq,inputDateTime:nq,inputDateTime24hr:sq,inputTime:oq,inputTime24hr:iq,dayPopover:uq,data:lq,model:cq,iso:dq},fq=300,mq=60,vq=80,gq={maxSwipeTime:fq,minHorizontalSwipeDistance:mq,maxVerticalSwipeDistance:vq},pq={componentPrefix:"V",color:"blue",isDark:!1,navVisibility:"click",titlePosition:"center",transition:"slide-h",touch:gq,masks:hq,locales:JP,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",isInteractive:!0}}},ga=Pa(pq),yq=w(()=>Up(ga.locales,e=>(e.masks=or(e.masks,ga.masks),e))),it=e=>typeof window<"u"&&go(window.__vcalendar__,e)?mt(window.__vcalendar__,e):mt(ga,e),wq=12,Pq=5;function qq(e,t){const r=new Intl.DateTimeFormat().resolvedOptions().locale;let o;He(e)?o=e:go(e,"id")&&(o=e.id),o=(o||r).toLowerCase();const u=Object.keys(t),f=a=>u.find(s=>s.toLowerCase()===a);o=f(o)||f(o.substring(0,2))||r;const l={...t["en-IE"],...t[o],id:o,monthCacheSize:wq,pageCacheSize:Pq};return Ve(e)?or(e,l):l}class Rr{constructor(t=void 0,r){_(this,"id"),_(this,"daysInWeek"),_(this,"firstDayOfWeek"),_(this,"masks"),_(this,"timezone"),_(this,"hourLabels"),_(this,"dayNames"),_(this,"dayNamesShort"),_(this,"dayNamesShorter"),_(this,"dayNamesNarrow"),_(this,"monthNames"),_(this,"monthNamesShort"),_(this,"relativeTimeNames"),_(this,"amPm",["am","pm"]),_(this,"monthCache"),_(this,"pageCache");const{id:o,firstDayOfWeek:u,masks:f,monthCacheSize:l,pageCacheSize:n}=qq(t,yq.value);this.monthCache=new us(l,Fq,Wq),this.pageCache=new us(n,Do,KP),this.id=o,this.daysInWeek=we,this.firstDayOfWeek=rP(u,1,we),this.masks=f,this.timezone=r||void 0,this.hourLabels=this.getHourLabels(),this.dayNames=ia("long",this.id),this.dayNamesShort=ia("short",this.id),this.dayNamesShorter=this.dayNamesShort.map(a=>a.substring(0,2)),this.dayNamesNarrow=ia("narrow",this.id),this.monthNames=ms("long",this.id),this.monthNamesShort=ms("short",this.id),this.relativeTimeNames=zq(this.id)}formatDate(t,r){return Jq(t,r,this)}parseDate(t,r){return vs(t,r,this)}toDate(t,r={}){const o=new Date(NaN);let u=o;const{fillDate:f,mask:l,patch:n,rules:a}=r;if(Ye(t)?(r.type="number",u=new Date(+t)):He(t)?(r.type="string",u=t?vs(t,l||"iso",this):o):Ct(t)?(r.type="date",u=new Date(t.getTime())):Ua(t)&&(r.type="object",u=this.getDateFromParts(t)),u&&(n||a)){let s=this.getDateParts(u);if(n&&f!=null){const i=this.getDateParts(this.toDate(f));s=this.getDateParts(this.toDate({...i,...yo(s,Aq[n])}))}a&&(s=Qq(s,a)),u=this.getDateFromParts(s)}return u||o}toDateOrNull(t,r={}){const o=this.toDate(t,r);return isNaN(o.getTime())?null:o}fromDate(t,{type:r,mask:o}={}){switch(r){case"number":return t?t.getTime():NaN;case"string":return t?this.formatDate(t,o||"iso"):"";case"object":return t?this.getDateParts(t):null;default:return t?new Date(t):null}}range(t){return It.from(t,this)}ranges(t){return It.fromMany(t,this)}getDateParts(t){return Hq(t,this)}getDateFromParts(t){return Oo(t,this.timezone)}getDateFromParams(t,r,o,u,f,l,n){return this.getDateFromParts({year:t,month:r,day:o,hours:u,minutes:f,seconds:l,milliseconds:n})}getPage(t){const r=this.pageCache.getOrSet(t,this);return ZP(t,r)}getMonthParts(t,r){const{firstDayOfWeek:o}=this;return this.monthCache.getOrSet(t,r,o)}getThisMonthParts(){const t=new Date;return this.getMonthParts(t.getMonth()+1,t.getFullYear())}getPrevMonthParts(t,r){return t===1?this.getMonthParts(12,r-1):this.getMonthParts(t-1,r)}getNextMonthParts(t,r){return t===12?this.getMonthParts(1,r+1):this.getMonthParts(t+1,r)}getHourLabels(){return Bq().map(t=>this.formatDate(t,this.masks.hours))}getDayId(t){return this.formatDate(t,"YYYY-MM-DD")}}var Tt=(e=>(e.Any="any",e.All="all",e))(Tt||{}),Eo=(e=>(e.Days="days",e.Weeks="weeks",e.Months="months",e.Years="years",e))(Eo||{}),To=(e=>(e.Days="days",e.Weekdays="weekdays",e.Weeks="weeks",e.Months="months",e.Years="years",e))(To||{}),So=(e=>(e.OrdinalWeekdays="ordinalWeekdays",e))(So||{});class bq{constructor(t,r,o){_(this,"validated",!0),this.type=t,this.interval=r,this.from=o,this.from||(console.error('A valid "from" date is required for date interval rule. This rule will be skipped.'),this.validated=!1)}passes(t){if(!this.validated)return!0;const{date:r}=t;switch(this.type){case"days":return La(this.from.date,r)%this.interval===0;case"weeks":return Lq(this.from.date,r)%this.interval===0;case"months":return jq(this.from.date,r)%this.interval===0;case"years":return Ao(this.from.date,r)%this.interval===0;default:return!1}}}class Lt{constructor(t,r,o,u){_(this,"components",[]),this.type=t,this.validator=o,this.getter=u,this.components=this.normalizeComponents(r)}static create(t,r){switch(t){case"days":return new Dq(r);case"weekdays":return new Eq(r);case"weeks":return new Tq(r);case"months":return new Sq(r);case"years":return new $q(r)}}normalizeComponents(t){if(this.validator(t))return[t];if(!Me(t))return[];const r=[];return t.forEach(o=>{if(!this.validator(o)){console.error(`Component value ${o}
1 in invalid for "${this.type}" rule. This rule will be skipped.`);return}r.push(o)}),r}passes(t){return this.getter(t).some(u=>this.components.includes(u))}}class Dq extends Lt{constructor(t){super("days",t,Iq,({day:r,dayFromEnd:o})=>[r,-o])}}class Eq extends Lt{constructor(t){super("weekdays",t,pa,({weekday:r})=>[r])}}class Tq extends Lt{constructor(t){super("weeks",t,_q,({week:r,weekFromEnd:o})=>[r,-o])}}class Sq extends Lt{constructor(t){super("months",t,Mq,({month:r})=>[r])}}class $q extends Lt{constructor(t){super("years",t,Ye,({year:r})=>[r])}}class kq{constructor(t,r){_(this,"components"),this.type=t,this.components=this.normalizeComponents(r)}normalizeArrayConfig(t){const r=[];return t.forEach((o,u)=>{if(Ye(o)){if(u===0)return;if(!ls(t[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!pa(o)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}r.push([t[0],o])}else Me(o)&&r.push(...this.normalizeArrayConfig(o))}),r}normalizeComponents(t){const r=[];return t.forEach((o,u)=>{if(Ye(o)){if(u===0)return;if(!ls(t[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!pa(o)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}r.push([t[0],o])}else Me(o)&&r.push(...this.normalizeArrayConfig(o))}),r}passes(t){const{weekday:r,weekdayOrdinal:o,weekdayOrdinalFromEnd:u}=t;return this.components.some(([f,l])=>(f===o||f===-u)&&r===l)}}class Cq{constructor(t){_(this,"type","function"),_(this,"validated",!0),this.fn=t,yt(t)||(console.error("The function rule requires a valid function. This rule will be skipped."),this.validated=!1)}passes(t){return this.validated?this.fn(t):!0}}class Yr{constructor(t,r={},o){_(this,"validated",!0),_(this,"config"),_(this,"type",Tt.Any),_(this,"from"),_(this,"until"),_(this,"rules",[]),_(this,"locale",new Rr),this.parent=o,r.locale&&(this.locale=r.locale),this.config=t,yt(t)?(this.type=Tt.All,this.rules=[new Cq(t)]):Me(t)?(this.type=Tt.Any,this.rules=t.map(u=>new Yr(u,r,this))):Ve(t)?(this.type=Tt.All,this.from=t.from?this.locale.getDateParts(t.from):o==null?void 0:o.from,this.until=t.until?this.locale.getDateParts(t.until):o==null?void 0:o.until,this.rules=this.getObjectRules(t)):(console.error("Rule group configuration must be an object or an array."),this.validated=!1)}getObjectRules(t){const r=[];if(t.every&&(He(t.every)&&(t.every=[1,`${t.every}s`]),Me(t.every))){const[o=1,u=Eo.Days]=t.every;r.push(new bq(u,o,this.from))}return Object.values(To).forEach(o=>{o in t&&r.push(Lt.create(o,t[o]))}),Object.values(So).forEach(o=>{o in t&&r.push(new kq(o,t[o]))}),t.on!=null&&(Me(t.on)||(t.on=[t.on]),r.push(new Yr(t.on,{locale:this.locale},this.parent))),r}passes(t){return this.validated?this.from&&t.dayIndex<=this.from.dayIndex||this.until&&t.dayIndex>=this.until.dayIndex?!1:this.type===Tt.Any?this.rules.some(r=>r.passes(t)):this.rules.every(r=>r.passes(t)):!0}}function Iq(e){return Ye(e)?e>=1&&e<=31:!1}function pa(e){return Ye(e)?e>=1&&e<=7:!1}function _q(e){return Ye(e)?e>=-6&&e<=-1||e>=1&&e<=6:!1}function Mq(e){return Ye(e)?e>=1&&e<=12:!1}function ls(e){return!(!Ye(e)||e<-5||e>5||e===0)}const Aq={dateTime:["year","month","day","hours","minutes","seconds","milliseconds"],date:["year","month","day"],time:["hours","minutes","seconds","milliseconds"]},we=7,Oq=6,$o=1e3,ko=$o*60,Co=ko*60,Tr=Co*24,Rq=[31,28,31,30,31,30,31,31,30,31,30,31],Yq=["L","iso"],tr={milliseconds:[0,999,3],seconds:[0,59,2],minutes:[0,59,2],hours:[0,23,2]},Io=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,Nq=/\[([^]*?)\]/gm,cs={D(e){return e.day},DD(e){return Z(e.day,2)},d(e){return e.weekday-1},dd(e){return Z(e.weekday-1,2)},W(e,t){return t.dayNamesNarrow[e.weekday-1]},WW(e,t){return t.dayNamesShorter[e.weekday-1]},WWW(e,t){return t.dayNamesShort[e.weekday-1]},WWWW(e,t){return t.dayNames[e.weekday-1]},M(e){return e.month},MM(e){return Z(e.month,2)},MMM(e,t){return t.monthNamesShort[e.month-1]},MMMM(e,t){return t.monthNames[e.month-1]},YY(e){return String(e.year).substr(2)},YYYY(e){return Z(e.year,4)},h(e){return e.hours%12||12},hh(e){return Z(e.hours%12||12,2)},H(e){return e.hours},HH(e){return Z(e.hours,2)},m(e){return e.minutes},mm(e){return Z(e.minutes,2)},s(e){return e.seconds},ss(e){return Z(e.seconds,2)},S(e){return Math.round(e.milliseconds/100)},SS(e){return Z(Math.round(e.milliseconds/10),2)},SSS(e){return Z(e.milliseconds,3)},a(e,t){return e.hours<12?t.amPm[0]:t.amPm[1]},A(e,t){return e.hours<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},Z(){return"Z"},ZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${Z(Math.floor(Math.abs(t)/60),2)}`},ZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${Z(Math.floor(Math.abs(t)/60)*100+Math.abs(t)%60,4)}`},ZZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${Z(Math.floor(Math.abs(t)/60),2)}:${Z(Math.abs(t)%60,2)}`}},nt=/\d\d?/,xq=/\d{3}/,Uq=/\d{4}/,Xt=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ds=()=>{},hs=e=>(t,r,o)=>{const u=o[e].indexOf(r.charAt(0).toUpperCase()+r.substr(1).toLowerCase());~u&&(t.month=u)},X={D:[nt,(e,t)=>{e.day=t}],Do:[new RegExp(nt.source+Xt.source),(e,t)=>{e.day=parseInt(t,10)}],d:[nt,ds],W:[Xt,ds],M:[nt,(e,t)=>{e.month=t-1}],MMM:[Xt,hs("monthNamesShort")],MMMM:[Xt,hs("monthNames")],YY:[nt,(e,t)=>{const o=+new Date().getFullYear().toString().substr(0,2);e.year=+`${t>68?o-1:o}${t}`}],YYYY:[Uq,(e,t)=>{e.year=t}],S:[/\d/,(e,t)=>{e.milliseconds=t*100}],SS:[/\d{2}/,(e,t)=>{e.milliseconds=t*10}],SSS:[xq,(e,t)=>{e.milliseconds=t}],h:[nt,(e,t)=>{e.hours=t}],m:[nt,(e,t)=>{e.minutes=t}],s:[nt,(e,t)=>{e.seconds=t}],a:[Xt,(e,t,r)=>{const o=t.toLowerCase();o===r.amPm[0]?e.isPm=!1:o===r.amPm[1]&&(e.isPm=!0)}],Z:[/[^\s]*?[+-]\d\d:?\d\d|[^\s]*?Z?/,(e,t)=>{t==="Z"&&(t="+00:00");const r=`${t}`.match(/([+-]|\d\d)/gi);if(r){const o=+r[1]*60+parseInt(r[2],10);
1e.timezoneOffset=r[0]==="+"?o:-o}}]};X.DD=X.D;X.dd=X.d;X.WWWW=X.WWW=X.WW=X.W;X.MM=X.M;X.mm=X.m;X.hh=X.H=X.HH=X.h;X.ss=X.s;X.A=X.a;X.ZZZZ=X.ZZZ=X.ZZ=X.Z;function _o(e,t){return(ze(e)&&e||[He(e)&&e||"YYYY-MM-DD"]).map(r=>Yq.reduce((o,u)=>o.replace(u,t.masks[u]||""),r))}function Ua(e){return Ve(e)&&"year"in e&&"month"in e&&"day"in e}function fs(e,t=1){const r=e.getDay()+1,o=r>=t?t-r:-(7-(t-r));return be(e,o)}function Mo(e,t,r){const o=Date.UTC(e,t-1,r);return La(new Date(0),new Date(o))}function La(e,t){return Math.round((t.getTime()-e.getTime())/Tr)}function Lq(e,t){return Math.ceil(La(fs(e),fs(t))/7)}function Ao(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}function jq(e,t){return Ao(e,t)*12+(t.getMonth()-e.getMonth())}function Oo(e,t=""){const r=new Date,{year:o=r.getFullYear(),month:u=r.getMonth()+1,day:f=r.getDate(),hours:l=0,minutes:n=0,seconds:a=0,milliseconds:s=0}=e;if(t){const i=`${Z(o,4)}-${Z(u,2)}-${Z(f,2)}T${Z(l,2)}:${Z(n,2)}:${Z(a,2)}.${Z(s,3)}`;return wP(i,{timeZone:t})}return new Date(o,u-1,f,l,n,a,s)}function Hq(e,t){let r=new Date(e.getTime());t.timezone&&(r=new Date(e.toLocaleString("en-US",{timeZone:t.timezone})),r.setMilliseconds(e.getMilliseconds()));const o=r.getMilliseconds(),u=r.getSeconds(),f=r.getMinutes(),l=r.getHours(),n=o+u*$o+f*ko+l*Co,a=r.getMonth()+1,s=r.getFullYear(),i=t.getMonthParts(a,s),c=r.getDate(),h=i.numDays-c+1,d=r.getDay()+1,m=Math.floor((c-1)/7+1),v=Math.floor((i.numDays-c)/7+1),y=Math.ceil((c+Math.abs(i.firstWeekday-i.firstDayOfWeek))/7),p=i.numWeeks-y+1,P=i.weeknumbers[y],$=Mo(s,a,c);return{milliseconds:o,seconds:u,minutes:f,hours:l,time:n,day:c,dayFromEnd:h,weekday:d,weekdayOrdinal:m,weekdayOrdinalFromEnd:v,week:y,weekFromEnd:p,weeknumber:P,month:a,year:s,date:r,dateTime:r.getTime(),dayIndex:$,timezoneOffset:0,isValid:!0}}function Fq(e,t,r){return`${t}-${e}-${r}`}function Wq(e,t,r){const o=t%4===0&&t%100!==0||t%400===0,u=new Date(t,e-1,1),f=u.getDay()+1,l=e===2&&o?29:Rq[e-1],n=r-1,a=MP(u,{weekStartsOn:n}),s=[],i=[];for(let c=0;c<a;c++){const h=be(u,c*7);s.push(YP(h,{weekStartsOn:n})),i.push(LP(h))}return{firstDayOfWeek:r,firstDayOfMonth:u,inLeapYear:o,firstWeekday:f,numDays:l,numWeeks:a,month:e,year:t,weeknumbers:s,isoWeeknumbers:i}}function Gq(){const e=[];for(let u=0;u<we;u++)e.push(Oo({year:2020,month:1,day:5+u,hours:12}));return e}function ia(e,t=void 0){const r=new Intl.DateTimeFormat(t,{weekday:e});return Gq().map(o=>r.format(o))}function Bq(){const e=[];for(let t=0;t<=24;t++)e.push(new Date(2e3,0,1,t));return e}function zq(e=void 0){const t=["second","minute","hour","day","week","month","quarter","year"],r=new Intl.RelativeTimeFormat(e);return t.reduce((o,u)=>{const f=r.formatToParts(100,u);return o[u]=f[1].unit,o},{})}function Ro(){const e=[];for(let t=0;t<12;t++)e.push(new Date(2e3,t,15));return e}function ms(e,t=void 0){const r=new Intl.DateTimeFormat(t,{month:e,timeZone:"UTC"});return Ro().map(o=>r.format(o))}function Vq(e,t,r){return Ye(t)?t===e:Me(t)?t.includes(e):yt(t)?t(e,r):!(t.min!=null&&t.min>e||t.max!=null&&t.max<e||t.interval!=null&&e%t.interval!==0)}function rr(e,t,r){const o=[],[u,f,l]=t;for(let n=u;n<=f;n++)(r==null||Vq(n,r,e))&&o.push({value:n,label:Z(n,l)});return o}function Kq(e,t){return{milliseconds:rr(e,tr.milliseconds,t.milliseconds),seconds:rr(e,tr.seconds,t.seconds),minutes:rr(e,tr.minutes,t.minutes),hours:rr(e,tr.hours,t.hours)}}function Zq(e,t,r,o){const f=rr(e,t,o).reduce((l,n)=>{if(n.disabled)return l;if(isNaN(l))return n.value;const a=Math.abs(l-r);return Math.abs(n.value-r)<a?n.value:l},NaN);return isNaN(f)?r:f}function Qq(e,t){const r={...e};return Object.entries(t).forEach(([o,u])=>{const f=tr[o],l=e[o];r[o]=Zq(e,f,l,u)}),r}function vs(e,t,r){return _o(t,r).map(u=>{if(typeof u!="string")throw new Error("Invalid mask");let f=e;if(f.length>1e3)return!1;let l=!0;const n={};if(u.replace(Io,i=>{if(X[i]){const c=X[i],h=f.search(c[0]);~h?f.replace(c[0],d=>(c[1](n,d,r),f=f.substr(h+d.length),d)):l=!1}return X[i]?"":i.slice(1,i.length-1)}),!l)return!1;const a=new Date;n.hours!=null&&(n.isPm===!0&&+n.hours!=12?n.hours=+n.hours+12:n.isPm===!1&&+n.hours==12&&(n.hours=0));let s;return n.timezoneOffset!=null?(n.minutes=+(n.minutes||0)-+n.timezoneOffset,s=new Date(Date.UTC(n.year||a.getFullYear(),n.month||0,n.day||1,n.hours||0,n.minutes||0,n.seconds||0,n.milliseconds||0))):s=r.getDateFromParts({year:n.year||a.getFullYear(),month:(n.month||0)+1,day:n.day||1,hours:n.hours||0,minutes:n.minutes||0,seconds:n.seconds||0,milliseconds:n.milliseconds||0}),s}).find(u=>u)||new Date(e)}function Jq(e,t,r){if(e==null)return"";let o=_o(t,r)[0];/Z$/.test(o)&&(r.timezone="utc");const u=[];o=o.replace(Nq,(l,n)=>(u.push(n),"??"));const f=r.getDateParts(e);return o=o.replace(Io,l=>l in cs?cs[l](f,r):l.slice(1,l.length-1)),o.replace(/\?\?/g,()=>u.shift())}let Xq=0;class Yo{constructor(t,r,o){_(this,"key",""),_(this,"hashcode",""),_(this,"highlight",null),_(this,"content",null),_(this,"dot",null),_(this,"bar",null),_(this,"event",null),_(this,"popover",null),_(this,"customData",null),_(this,"ranges"),_(this,"hasRanges",!1),_(this,"order",0),_(this,"pinPage",!1),_(this,"maxRepeatSpan",0),_(this,"locale");const{dates:u}=Object.assign(this,{hashcode:"",order:0,pinPage:!1},t);this.key||(this.key=++Xq),this.locale=o,r.normalizeGlyphs(this),this.ranges=o.ranges(u??[]),this.hasRanges=!!ze(this.ranges),this.maxRepeatSpan=this.ranges.filter(f=>f.hasRepeat).map(f=>f.daySpan).reduce((f,l)=>
1Math.max(f,l),0)}intersectsRange({start:t,end:r}){if(t==null||r==null)return!1;const o=this.ranges.filter(l=>!l.hasRepeat);for(const l of o)if(l.intersectsDayRange(t.dayIndex,r.dayIndex))return!0;const u=this.ranges.filter(l=>l.hasRepeat);if(!u.length)return!1;let f=t;for(this.maxRepeatSpan>1&&(f=this.locale.getDateParts(be(f.date,-this.maxRepeatSpan)));f.dayIndex<=r.dayIndex;){for(const l of u)if(l.startsOnDay(f))return!0;f=this.locale.getDateParts(be(f.date,1))}return!1}}function ya(e){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:e}))}function ir(e){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:e}))}function No(e){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:e}))}function xo(e){const{visibility:t}=e,r=t==="click",o=t==="hover",u=t==="hover-focus",f=t==="focus";e.autoHide=!r;let l=!1,n=!1;const a=m=>{r&&(No({...e,target:e.target||m.currentTarget}),m.stopPropagation())},s=m=>{l||(l=!0,(o||u)&&ya({...e,target:e.target||m.currentTarget}))},i=()=>{l&&(l=!1,(o||u&&!n)&&ir(e))},c=m=>{n||(n=!0,(f||u)&&ya({...e,target:e.target||m.currentTarget}))},h=m=>{n&&!Dr(m.currentTarget,m.relatedTarget)&&(n=!1,(f||u&&!l)&&ir(e))},d={};switch(e.visibility){case"click":d.click=a;break;case"hover":d.mousemove=s,d.mouseleave=i;break;case"focus":d.focusin=c,d.focusout=h;break;case"hover-focus":d.mousemove=s,d.mouseleave=i,d.focusin=c,d.focusout=h;break}return d}const gs=e=>{const t=Cr(e);if(t==null)return;const r=t.popoverHandlers;!r||!r.length||(r.forEach(o=>o()),delete t.popoverHandlers)},ps=(e,t)=>{const r=Cr(e);if(r==null)return;const o=[],u=xo(t);Object.entries(u).forEach(([f,l])=>{o.push(ot(r,f,l))}),r.popoverHandlers=o},Uo={mounted(e,t){const{value:r}=t;r&&ps(e,r)},updated(e,t){const{oldValue:r,value:o}=t,u=r==null?void 0:r.visibility,f=o==null?void 0:o.visibility;u!==f&&(u&&(gs(e),f||ir(r)),f&&ps(e,o))},unmounted(e){gs(e)}},eb=(e,t,{maxSwipeTime:r,minHorizontalSwipeDistance:o,maxVerticalSwipeDistance:u})=>{if(!e||!e.addEventListener||!yt(t))return null;let f=0,l=0,n=null,a=!1;function s(c){const h=c.changedTouches[0];f=h.screenX,l=h.screenY,n=new Date().getTime(),a=!0}function i(c){if(!a||!n)return;a=!1;const h=c.changedTouches[0],d=h.screenX-f,m=h.screenY-l;if(new Date().getTime()-n<r&&Math.abs(d)>=o&&Math.abs(m)<=u){const y={toLeft:!1,toRight:!1};d<0?y.toLeft=!0:y.toRight=!0,t(y)}}return ot(e,"touchstart",s,{passive:!0}),ot(e,"touchend",i,{passive:!0}),()=>{st(e,"touchstart",s),st(e,"touchend",i)}},Sr={},tb=(e,t=10)=>{Sr[e]=Date.now()+t},rb=(e,t)=>{if(e in Sr){const r=Sr[e];if(Date.now()<r)return;delete Sr[e]}t()};function Lo(){return typeof window<"u"}function ab(e){return Lo()&&e in window}function nb(e){const t=oe(!1),r=w(()=>t.value?"dark":"light");let o,u;function f(d){t.value=d.matches}function l(){ab("matchMedia")&&(o=window.matchMedia("(prefers-color-scheme: dark)"),o.addEventListener("change",f),t.value=o.matches)}function n(){const{selector:d=":root",darkClass:m="dark"}=e.value,v=document.querySelector(d);t.value=v.classList.contains(m)}function a(d){const{selector:m=":root",darkClass:v="dark"}=d;if(Lo()&&m&&v){const y=document.querySelector(m);y&&(u=new MutationObserver(n),u.observe(y,{attributes:!0,attributeFilter:["class"]}),t.value=y.classList.contains(v))}}function s(){c();const d=typeof e.value;d==="string"&&e.value.toLowerCase()==="system"?l():d==="object"?a(e.value):t.value=!!e.value}const i=pe(()=>e.value,()=>s(),{immediate:!0});function c(){o&&(o.removeEventListener("change",f),o=void 0),u&&(u.disconnect(),u=void 0)}function h(){c(),i()}return qa(()=>h()),{isDark:t,displayMode:r,cleanup:h}}const sb=["base","start","end","startEnd"],ob=["class","wrapperClass","contentClass","style","contentStyle","color","fillMode"],ib={base:{},start:{},end:{}};function ja(e,t,r=ib){let o=e,u={};t===!0||He(t)?(o=He(t)?t:o,u={...r}):Ve(t)&&(Qn(t,sb)?u={...t}:u={base:{...t},start:{...t},end:{...t}});const f=or(u,{start:u.startEnd,end:u.startEnd},r);return Object.entries(f).forEach(([l,n])=>{let a=o;n===!0||He(n)?(a=He(n)?n:a,f[l]={color:a}):Ve(n)&&(Qn(n,ob)?f[l]={...n}:f[l]={}),or(f[l],{color:a})}),f}
1class ub{constructor(){_(this,"type","highlight")}normalizeConfig(t,r){return ja(t,r,{base:{fillMode:"light"},start:{fillMode:"solid"},end:{fillMode:"solid"}})}prepareRender(t){t.highlights=[],t.content||(t.content=[])}render({data:t,onStart:r,onEnd:o},u){const{key:f,highlight:l}=t;if(!l)return;const{highlights:n}=u,{base:a,start:s,end:i}=l;r&&o?n.push({...s,key:f,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${s.color}`,class:[`vc-highlight vc-highlight-bg-${s.fillMode}`,s.class],contentClass:[`vc-attr vc-highlight-content-${s.fillMode} vc-${s.color}`,s.contentClass]}):r?(n.push({...a,key:`${f}-base`,wrapperClass:`vc-day-layer vc-day-box-right-center vc-attr vc-${a.color}`,class:[`vc-highlight vc-highlight-base-start vc-highlight-bg-${a.fillMode}`,a.class]}),n.push({...s,key:f,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${s.color}`,class:[`vc-highlight vc-highlight-bg-${s.fillMode}`,s.class],contentClass:[`vc-attr vc-highlight-content-${s.fillMode} vc-${s.color}`,s.contentClass]})):o?(n.push({...a,key:`${f}-base`,wrapperClass:`vc-day-layer vc-day-box-left-center vc-attr vc-${a.color}`,class:[`vc-highlight vc-highlight-base-end vc-highlight-bg-${a.fillMode}`,a.class]}),n.push({...i,key:f,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${i.color}`,class:[`vc-highlight vc-highlight-bg-${i.fillMode}`,i.class],contentClass:[`vc-attr vc-highlight-content-${i.fillMode} vc-${i.color}`,i.contentClass]})):n.push({...a,key:`${f}-middle`,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${a.color}`,class:[`vc-highlight vc-highlight-base-middle vc-highlight-bg-${a.fillMode}`,a.class],contentClass:[`vc-attr vc-highlight-content-${a.fillMode} vc-${a.color}`,a.contentClass]})}}class Ha{constructor(t,r){_(this,"type",""),_(this,"collectionType",""),this.type=t,this.collectionType=r}normalizeConfig(t,r){return ja(t,r)}prepareRender(t){t[this.collectionType]=[]}render({data:t,onStart:r,onEnd:o},u){const{key:f}=t,l=t[this.type];if(!f||!l)return;const n=u[this.collectionType],{base:a,start:s,end:i}=l;r?n.push({...s,key:f,class:[`vc-${this.type} vc-${this.type}-start vc-${s.color} vc-attr`,s.class]}):o?n.push({...i,key:f,class:[`vc-${this.type} vc-${this.type}-end vc-${i.color} vc-attr`,i.class]}):n.push({...a,key:f,class:[`vc-${this.type} vc-${this.type}-base vc-${a.color} vc-attr`,a.class]})}}class lb extends Ha{constructor(){super("content","content")}normalizeConfig(t,r){return ja("base",r)}}class cb extends Ha{constructor(){super("dot","dots")}}class db extends Ha{constructor(){super("bar","bars")}}class hb{constructor(t){_(this,"color"),_(this,"renderers",[new lb,new ub,new cb,new db]),this.color=t}normalizeGlyphs(t){this.renderers.forEach(r=>{const o=r.type;t[o]!=null&&(t[o]=r.normalizeConfig(this.color,t[o]))})}prepareRender(t={}){return this.renderers.forEach(r=>{r.prepareRender(t)}),t}render(t,r){this.renderers.forEach(o=>{o.render(t,r)})}}const jo=Symbol("__vc_base_context__"),Ho={color:{type:String,default:()=>it("color")},isDark:{type:[Boolean,String,Object],default:()=>it("isDark")},firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,disabledDates:null};function Fo(e){const t=w(()=>e.color??""),r=w(()=>e.isDark??!1),{displayMode:o}=nb(r),u=w(()=>new hb(t.value)),f=w(()=>{if(e.locale instanceof Rr)return e.locale;const h=Ve(e.locale)?e.locale:{id:e.locale,firstDayOfWeek:e.firstDayOfWeek,masks:e.masks};return new Rr(h,e.timezone)}),l=w(()=>f.value.masks),n=w(()=>e.minDate),a=w(()=>e.maxDate),s=w(()=>{const h=e.disabledDates?[...e.disabledDates]:[];return n.value!=null&&h.push({start:null,end:be(f.value.toDate(n.value),-1)}),a.value!=null&&h.push({start:be(f.value.toDate(a.value),1),end:null}),f.value.ranges(h)}),i=w(()=>new Yo({key:"disabled",dates:s.value,order:100},u.value,f.value)),c={color:t,isDark:r,displayMode:o,theme:u,locale:f,masks:l,minDate:n,maxDate:a,disabledDates:s,disabledAttribute:i};return lr(jo,c),c}function fb(e){return ur(jo,()=>Fo(e),!0)}function Wo(e){return`__vc_slot_${e}__`}function Go(e,t={}){Object.keys(e).forEach(r=>{lr(Wo(t[r]??r),e[r])})}function Bo(e){return ur(Wo(e),null)}const mb={...Ho,view:{type:String,default:"monthly",validator(e){return["daily","weekly","monthly"].includes(e)}},rows:{type:Number,default:1},columns:{type:Number,default:1},step:Number,titlePosition:{type:String,default:()=>it("titlePosition")},navVisibility:{type:String,default:()=>it("navVisibility")},showWeeknumbers:[Boolean,String],showIsoWeeknumbers:[Boolean,String],exp
1anded:Boolean,borderless:Boolean,transparent:Boolean,initialPage:Object,initialPagePosition:{type:Number,default:1},minPage:Object,maxPage:Object,transition:String,attributes:Array,trimWeeks:Boolean,disablePageSwipe:Boolean},vb=["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown","weeknumberclick","transition-start","transition-end","did-move","update:view","update:pages"],zo=Symbol("__vc_calendar_context__");function gb(e,{slots:t,emit:r}){const o=oe(null),u=oe(null),f=oe(new Date().getDate()),l=oe(!1),n=oe(Symbol()),a=oe(Symbol()),s=oe(e.view),i=oe([]),c=oe("");let h=null,d=null;Go(t);const{theme:m,color:v,displayMode:y,locale:p,masks:P,minDate:$,maxDate:q,disabledAttribute:C,disabledDates:U}=fb(e),N=w(()=>e.rows*e.columns),j=w(()=>e.step||N.value),H=w(()=>vo(i.value)??null),ie=w(()=>$t(i.value)??null),Q=w(()=>e.minPage||($.value?O($.value):null)),A=w(()=>e.maxPage||(q.value?O(q.value):null)),F=w(()=>e.navVisibility),J=w(()=>!!e.showWeeknumbers),M=w(()=>!!e.showIsoWeeknumbers),te=w(()=>s.value==="monthly"),ue=w(()=>s.value==="weekly"),ye=w(()=>s.value==="daily"),se=()=>{l.value=!0,r("transition-start")},S=()=>{l.value=!1,r("transition-end"),h&&(h.resolve(!0),h=null)},G=(E,g,b=s.value)=>bo(E,g,b,p.value),O=E=>qo(E,s.value,p.value),ge=E=>{!C.value||!Oe.value||(E.isDisabled=Oe.value.cellExists(C.value.key,E.dayIndex))},K=E=>{E.isFocusable=E.inMonth&&E.day===f.value},fe=(E,g)=>{for(const b of E)for(const k of b.days)if(g(k)===!1)return},Ce=w(()=>i.value.reduce((E,g)=>(E.push(...g.viewDays),E),[])),me=w(()=>{const E=[];return(e.attributes||[]).forEach((g,b)=>{!g||!g.dates||E.push(new Yo({...g,order:g.order||0},m.value,p.value))}),C.value&&E.push(C.value),E}),Ae=w(()=>ze(me.value)),Oe=w(()=>{const E=new QP;return me.value.forEach(g=>{g.ranges.forEach(b=>{E.render(g,b,Ce.value)})}),E}),R=w(()=>Ce.value.reduce((E,g)=>(E[g.dayIndex]={day:g,cells:[]},E[g.dayIndex].cells.push(...Oe.value.getCells(g)),E),{})),B=(E,g)=>{const b=e.showWeeknumbers||e.showIsoWeeknumbers;return b==null?"":qp(b)?b?"left":"":b.startsWith("right")?g>1?"right":b:E>1?"left":b},z=()=>{var E,g;if(!Ae.value)return null;const b=me.value.find(le=>le.pinPage)||me.value[0];if(!b||!b.hasRanges)return null;const[k]=b.ranges,x=((E=k.start)==null?void 0:E.date)||((g=k.end)==null?void 0:g.date);return x?O(x):null},ce=()=>{if(Fe(H.value))return H.value;const E=z();return Fe(E)?E:O(new Date)},Ie=(E,g={})=>{const{view:b=s.value,position:k=1,force:x}=g,le=k>0?1-k:-(N.value+k);let qe=G(E,le,b),Se=G(qe,N.value-1,b);return x||(va(qe,Q.value)?qe=Q.value:Or(Se,A.value)&&(qe=G(A.value,1-N.value)),Se=G(qe,N.value-1)),{fromPage:qe,toPage:Se}},qt=(E,g,b="")=>{if(b==="none"||b==="fade")return b;if((E==null?void 0:E.view)!==(g==null?void 0:g.view))return"fade";const k=Or(g,E),x=va(g,E);return!k&&!x?"fade":b==="slide-v"?x?"slide-down":"slide-up":x?"slide-right":"slide-left"},lt=(E={})=>new Promise((g,b)=>{const{position:k=1,force:x=!1,transition:le}=E,qe=Fe(E.page)?E.page:ce(),{fromPage:Se}=Ie(qe,{position:k,force:x}),bt=[];for(let Dt=0;Dt<N.value;Dt++){const Jr=G(Se,Dt),Ee=Dt+1,Xr=Math.ceil(Ee/e.columns),wr=e.rows-Xr+1,Vt=Ee%e.columns||e.columns,Kt=e.columns-Vt+1,gi=B(Vt,Kt);bt.push(p.value.getPage({...Jr,view:s.value,titlePosition:e.titlePosition,trimWeeks:e.trimWeeks,position:Ee,row:Xr,rowFromEnd:wr,column:Vt,columnFromEnd:Kt,showWeeknumbers:J.value,showIsoWeeknumbers:M.value,weeknumberPosition:gi}))}c.value=qt(i.value[0],bt[0],le),i.value=bt,c.value&&c.value!=="none"?h={resolve:g,reject:b}:g(!0)}),hr=E=>{const g=H.value??O(new Date);return G(g,E)},jt=(E,g={})=>{const b=Fe(E)?E:O(E);return Object.assign(g,Ie(b,{...g,force:!0})),VP(g.fromPage,g.toPage,s.value,p.value).map(x=>BP(x,Q.value,A.value)).some(x=>x)},Ht=(E,g={})=>jt(hr(E),g),Br=w(()=>Ht(-j.value)),zr=w(()=>Ht(j.value)),Ft=async(E,g={})=>!g.force&&!jt(E,g)?!1:(g.fromPage&&!zP(g.fromPage,H.value)&&(ir({id:n.value,hideDelay:0}),g.view&&(tb("view",10),s.value=g.view),await lt({...g,page:g.fromPage,position:1,force:!0}),r("did-move",i.value)),!0),Wt=(E,g={})=>Ft(hr(E),g),fr=()=>Wt(-j.value),Gt=()=>Wt(j.value),Bt=E=>{const g=te.value?".in-month":"",b=`.id-${p.value.getDayId(E)}${g}`,k=`${b}.vc-focusable, ${b} .vc-focusable`,x=o.value;if(x){const le=x.querySelector(k);if(le)return le.focus(),!0}return!1},mr=async(E,g={})=>Bt(E)?!0:(await Ft(E,g),Bt(E)),Vr=(E,g)=>{f.value=E.day,r("dayclick",E,g)},Kr=(E,g)=>{r("daymouseenter",E,g)},zt=(E,g)=>{r("daymouseleave",E,g)},Zr=(E,g)=>{f.value=E.day,u.value=E,E.isFocused=!0,r("dayfocusin",E,g)},vr=(E,g)=>{u.value=null,E.isFocused=!1,r("dayfocusout",E,g)},gr=(E,g)=>{r("daykeydown",E,g);const b=E.noonDate;let k=null;switch(g.key){case"ArrowLeft":{k=be(b,-1);break}case"ArrowRight":{k=be(b,1);break}case"ArrowUp":{k=be(b,-7);break}case"ArrowDown":{k=be(b,7);break}case"Home":{k=be(b,-E.weekdayPosition+1);break}case"End":{k=be(b,E.weekdayPositionFromEnd);break}case"PageUp":{g.altKey?k=is(b,-1):k=Ar(b,-1);break}case"PageDown":{g.altKey?k=is(b,1):k=Ar(b,1);break}}k&&(g.preventDefault(),mr(k).catch())},Qr=E=>{const g=u.value;g!=null&&gr(g,E)},pr=(E,g)=>{r("weeknumberclick",E,g)};lt({page:e.initialPage,position:e.initialPagePosition}),xr(()=>{!e.disablePageSwipe&&o.value&&(d=eb(o.value,({toLeft:E=!1,toRight:g=!1})=>{E?Gt():g&&fr()},it("touch")))}),qa(()=>{i.value=[],d&&d()}),pe(()=>p.value,()=>{lt()}),pe(()=>N.value,()=>lt()),pe(()=>e.view,()=>s.value=e.view),pe(()=>s.value,()=>{rb("view",()=>{lt()}),r("update:view",s.value)}),pe(()=>f.value,()=>{fe(i.value,E=>K(E))}),Ms(()=>{r("update:pages",i.value),fe(i.value,E=>
1{ge(E),K(E)})});const yr={emit:r,containerRef:o,focusedDay:u,inTransition:l,navPopoverId:n,dayPopoverId:a,view:s,pages:i,transitionName:c,theme:m,color:v,displayMode:y,locale:p,masks:P,attributes:me,disabledAttribute:C,disabledDates:U,attributeContext:Oe,days:Ce,dayCells:R,count:N,step:j,firstPage:H,lastPage:ie,canMovePrev:Br,canMoveNext:zr,minPage:Q,maxPage:A,isMonthly:te,isWeekly:ue,isDaily:ye,navVisibility:F,showWeeknumbers:J,showIsoWeeknumbers:M,getDateAddress:O,canMove:jt,canMoveBy:Ht,move:Ft,moveBy:Wt,movePrev:fr,moveNext:Gt,onTransitionBeforeEnter:se,onTransitionAfterEnter:S,tryFocusDate:Bt,focusDate:mr,onKeydown:Qr,onDayKeydown:gr,onDayClick:Vr,onDayMouseenter:Kr,onDayMouseleave:zt,onDayFocusin:Zr,onDayFocusout:vr,onWeeknumberClick:pr};return lr(zo,yr),yr}function Pt(){const e=ur(zo);if(e)return e;throw new Error("Calendar context missing. Please verify this component is nested within a valid context provider.")}const pb=he({inheritAttrs:!1,emits:["before-show","after-show","before-hide","after-hide"],props:{id:{type:[Number,String,Symbol],required:!0},showDelay:{type:Number,default:0},hideDelay:{type:Number,default:110},boundarySelector:{type:String}},setup(e,{emit:t}){let r;const o=oe();let u=null,f=null;const l=Pa({isVisible:!1,target:null,data:null,transition:"slide-fade",placement:"bottom",direction:"",positionFixed:!1,modifiers:[],isInteractive:!0,visibility:"click",isHovered:!1,isFocused:!1,autoHide:!1,force:!1});function n(S){S&&(l.direction=S.split("-")[0])}function a({placement:S,options:G}){n(S||(G==null?void 0:G.placement))}const s=w(()=>({placement:l.placement,strategy:l.positionFixed?"fixed":"absolute",boundary:"",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:a},...l.modifiers||[]],onFirstUpdate:a})),i=w(()=>{const S=l.direction==="left"||l.direction==="right";let G="";if(l.placement){const O=l.placement.split("-");O.length>1&&(G=O[1])}return["start","top","left"].includes(G)?S?"top":"left":["end","bottom","right"].includes(G)?S?"bottom":"right":S?"middle":"center"});function c(){f&&(f.destroy(),f=null)}function h(){St(()=>{const S=Cr(l.target);!S||!o.value||(f&&f.state.elements.reference!==S&&c(),f?f.update():f=du(S,o.value,s.value))})}function d(S){Object.assign(l,po(S,"force"))}function m(S,G){clearTimeout(r),S>0?r=setTimeout(G,S):G()}function v(S){return!S||!f?!1:Cr(S)===f.state.elements.reference}async function y(S={}){l.force||(S.force&&(l.force=!0),m(S.showDelay??e.showDelay,()=>{l.isVisible&&(l.force=!1),d({...S,isVisible:!0}),h()}))}function p(S={}){f&&(S.target&&!v(S.target)||l.force||(S.force&&(l.force=!0),m(S.hideDelay??e.hideDelay,()=>{l.isVisible||(l.force=!1),l.isVisible=!1})))}function P(S={}){S.target!=null&&(l.isVisible&&v(S.target)?p(S):y(S))}function $(S){if(!f)return;const G=f.state.elements.reference;if(!o.value||!G)return;const O=S.target;Dr(o.value,O)||Dr(G,O)||p({force:!0})}function q(S){(S.key==="Esc"||S.key==="Escape")&&p()}function C({detail:S}){!S.id||S.id!==e.id||y(S)}function U({detail:S}){!S.id||S.id!==e.id||p(S)}function N({detail:S}){!S.id||S.id!==e.id||P(S)}function j(){ot(document,"keydown",q),ot(document,"click",$),ot(document,"show-popover",C),ot(document,"hide-popover",U),ot(document,"toggle-popover",N)}function H(){st(document,"keydown",q),st(document,"click",$),st(document,"show-popover",C),st(document,"hide-popover",U),st(document,"toggle-popover",N)}function ie(S){t("before-show",S)}function Q(S){l.force=!1,t("after-show",S)}function A(S){t("before-hide",S)}function F(S){l.force=!1,c(),t("after-hide",S)}function J(S){S.stopPropagation()}function M(){l.isHovered=!0,l.isInteractive&&["hover","hover-focus"].includes(l.visibility)&&y()}function te(){if(l.isHovered=!1,!f)return;const S=f.state.elements.reference;l.autoHide&&!l.isFocused&&(!S||S!==document.activeElement)&&["hover","hover-focus"].includes(l.visibility)&&p()}function ue(){l.isFocused=!0,l.isInteractive&&["focus","hover-focus"].includes(l.visibility)&&y()}function ye(S){["focus","hover-focus"].includes(l.visibility)&&(!S.relatedTarget||!Dr(o.value,S.relatedTarget))&&(l.isFocused=!1,!l.isHovered&&l.autoHide&&p())}function se(){u!=null&&(u.disconnect(),u=null)}return pe(()=>
1o.value,S=>{se(),S&&(u=new ResizeObserver(()=>{f&&f.update()}),u.observe(S))}),pe(()=>l.placement,n,{immediate:!0}),xr(()=>{j()}),qa(()=>{c(),se(),H()}),{...Ji(l),popoverRef:o,alignment:i,hide:p,setupPopper:h,beforeEnter:ie,afterEnter:Q,beforeLeave:A,afterLeave:F,onClick:J,onMouseOver:M,onMouseLeave:te,onFocusIn:ue,onFocusOut:ye}}}),ut=(e,t)=>{const r=e.__vccOpts||e;for(const[o,u]of t)r[o]=u;return r};function yb(e,t,r,o,u,f){return T(),I("div",{class:Y(["vc-popover-content-wrapper",{"is-interactive":e.isInteractive}]),ref:"popoverRef",onClick:t[0]||(t[0]=(...l)=>e.onClick&&e.onClick(...l)),onMouseover:t[1]||(t[1]=(...l)=>e.onMouseOver&&e.onMouseOver(...l)),onMouseleave:t[2]||(t[2]=(...l)=>e.onMouseLeave&&e.onMouseLeave(...l)),onFocusin:t[3]||(t[3]=(...l)=>e.onFocusIn&&e.onFocusIn(...l)),onFocusout:t[4]||(t[4]=(...l)=>e.onFocusOut&&e.onFocusOut(...l))},[W(wa,{name:`vc-${e.transition}`,appear:"",onBeforeEnter:e.beforeEnter,onAfterEnter:e.afterEnter,onBeforeLeave:e.beforeLeave,onAfterLeave:e.afterLeave},{default:ne(()=>[e.isVisible?(T(),I("div",Re({key:0,tabindex:"-1",class:`vc-popover-content direction-${e.direction}`},e.$attrs),[Te(e.$slots,"default",{direction:e.direction,alignment:e.alignment,data:e.data,hide:e.hide},()=>[nr(de(e.data),1)]),L("span",{class:Y(["vc-popover-caret",`direction-${e.direction}`,`align-${e.alignment}`])},null,2)],16)):V("",!0)]),_:3},8,["name","onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave"])],34)}const Fa=ut(pb,[["render",yb]]),wb={class:"vc-day-popover-row"},Pb={key:0,class:"vc-day-popover-row-indicator"},qb={class:"vc-day-popover-row-label"},bb=he({__name:"PopoverRow",props:{attribute:null},setup(e){const t=e,r=w(()=>{const{content:o,highlight:u,dot:f,bar:l,popover:n}=t.attribute;return n&&n.hideIndicator?null:o?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${o.base.color}`}:u?{class:`vc-highlight-bg-solid vc-day-popover-row-highlight vc-attr vc-${u.base.color}`}:f?{class:`vc-dot vc-attr vc-${f.base.color}`}:l?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${l.base.color}`}:null});return(o,u)=>(T(),I("div",wb,[D(r)?(T(),I("div",Pb,[L("span",{class:Y(D(r).class)},null,2)])):V("",!0),L("div",qb,[Te(o.$slots,"default",{},()=>[nr(de(e.attribute.popover?e.attribute.popover.label:"No content provided"),1)])])]))}}),Db={inheritAttrs:!1},_e=he({...Db,__name:"CalendarSlot",props:{name:null},setup(e){const r=Bo(e.name);return(o,u)=>D(r)?(T(),ae(ht(D(r)),ar(Re({key:0},o.$attrs)),null,16)):Te(o.$slots,"default",{key:1})}}),Eb={class:"vc-day-popover-container"},Tb={key:0,class:"vc-day-popover-header"},Sb=he({__name:"CalendarDayPopover",setup(e){const{dayPopoverId:t,displayMode:r,color:o,masks:u,locale:f}=Pt();function l(a,s){return f.value.formatDate(a,s)}function n(a){return f.value.formatDate(a.date,u.value.dayPopover)}return(a,s)=>(T(),ae(Fa,{id:D(t),class:Y([`vc-${D(o)}`,`vc-${D(r)}`])},{default:ne(({data:{day:i,attributes:c},hide:h})=>[W(_e,{name:"day-popover",day:i,"day-title":n(i),attributes:c,format:l,masks:D(u),hide:h},{default:ne(()=>[L("div",Eb,[D(u).dayPopover?(T(),I("div",Tb,de(n(i)),1)):V("",!0),(T(!0),I(ve,null,ke(c,d=>(T(),ae(bb,{key:d.key,attribute:d},null,8,["attribute"]))),128))])]),_:2},1032,["day","day-title","attributes","masks","hide"])]),_:1},8,["id","class"]))}}),$b={},kb={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},Cb=L("polyline",{points:"9 18 15 12 9 6"},null,-1),Ib=[Cb];function _b(e,t){return T(),I("svg",kb,Ib)}const Mb=ut($b,[["render",_b]]),Ab={},Ob={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},Rb=L("polyline",{points:"15 18 9 12 15 6"},null,-1),Yb=[Rb];function Nb(e,t){return T(),I("svg",Ob,Yb)}const xb=ut(Ab,[["render",Nb]]),Ub={},Lb={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},jb=L("polyline",{points:"6 9 12 15 18 9"},null,-1),Hb=[jb];function Fb(e,t){return T(),I("svg",Lb,Hb)}const Wb=ut(Ub,[["render",Fb]]),Gb={},Bb={fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},zb=L("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1),Vb=[zb];function Kb(e,t){return T(),I("svg",Bb,Vb)}const Zb=ut(Gb,[["render",Kb]]),Qb=Object.freeze(Object.defineProperty({__proto__:null,IconChevronDown:Wb,IconChevronLeft:xb,IconChevronRight:
1Mb,IconClock:Zb},Symbol.toStringTag,{value:"Module"})),Mt=he({__name:"BaseIcon",props:{name:{type:String,required:!0},width:{type:String},height:{type:String},size:{type:String,default:"26"},viewBox:{type:String}},setup(e){const t=e,r=w(()=>t.width||t.size),o=w(()=>t.height||t.size),u=w(()=>Qb[`Icon${t.name}`]);return(f,l)=>(T(),ae(ht(D(u)),{width:D(r),height:D(o),class:"vc-base-icon"},null,8,["width","height"]))}}),Jb=["disabled"],Xb={key:1,class:"vc-title-wrapper"},e1={type:"button",class:"vc-title"},t1=["disabled"],Vo=he({__name:"CalendarHeader",props:{page:null,layout:null,isLg:{type:Boolean},isXl:{type:Boolean},is2xl:{type:Boolean},hideTitle:{type:Boolean},hideArrows:{type:Boolean}},setup(e){const t=e,{navPopoverId:r,navVisibility:o,canMovePrev:u,movePrev:f,canMoveNext:l,moveNext:n}=Pt(),a=w(()=>{switch(t.page.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}}),s=w(()=>{const{page:v}=t;return{id:r.value,visibility:o.value,placement:a.value,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:v},isInteractive:!0}}),i=w(()=>t.page.titlePosition.includes("left")),c=w(()=>t.page.titlePosition.includes("right")),h=w(()=>t.layout?t.layout:i.value?"tu-pn":c.value?"pn-tu":"p-tu-n;"),d=w(()=>({prev:h.value.includes("p")&&!t.hideArrows,title:h.value.includes("t")&&!t.hideTitle,next:h.value.includes("n")&&!t.hideArrows})),m=w(()=>({gridTemplateColumns:h.value.split("").map(y=>{switch(y){case"p":return"[prev] auto";case"n":return"[next] auto";case"t":return"[title] auto";case"-":return"1fr";default:return""}}).join(" ")}));return(v,y)=>(T(),I("div",{class:Y(["vc-header",{"is-lg":e.isLg,"is-xl":e.isXl,"is-2xl":e.is2xl}]),style:kt(D(m))},[D(d).prev?(T(),I("button",{key:0,type:"button",class:"vc-arrow vc-prev vc-focus",disabled:!D(u),onClick:y[0]||(y[0]=(...p)=>D(f)&&D(f)(...p)),onKeydown:y[1]||(y[1]=sn((...p)=>D(f)&&D(f)(...p),["space","enter"]))},[W(_e,{name:"header-prev-button",disabled:!D(u)},{default:ne(()=>[W(Mt,{name:"ChevronLeft",size:"24"})]),_:1},8,["disabled"])],40,Jb)):V("",!0),D(d).title?(T(),I("div",Xb,[W(_e,{name:"header-title-wrapper"},{default:ne(()=>[_s((T(),I("button",e1,[W(_e,{name:"header-title",title:e.page.title},{default:ne(()=>[L("span",null,de(e.page.title),1)]),_:1},8,["title"])])),[[D(Uo),D(s)]])]),_:1})])):V("",!0),D(d).next?(T(),I("button",{key:2,type:"button",class:"vc-arrow vc-next vc-focus",disabled:!D(l),onClick:y[2]||(y[2]=(...p)=>D(n)&&D(n)(...p)),onKeydown:y[3]||(y[3]=sn((...p)=>D(n)&&D(n)(...p),["space","enter"]))},[W(_e,{name:"header-next-button",disabled:!D(l)},{default:ne(()=>[W(Mt,{name:"ChevronRight",size:"24"})]),_:1},8,["disabled"])],40,t1)):V("",!0)],6))}}),Ko=Symbol("__vc_page_context__");function r1(e){const{locale:t,getDateAddress:r,canMove:o}=Pt();function u(n,a){const{month:s,year:i}=r(new Date);return Ro().map((c,h)=>{const d=h+1;return{month:d,year:n,id:GP(d,n),label:t.value.formatDate(c,a),ariaLabel:t.value.formatDate(c,"MMMM"),isActive:d===e.value.month&&n===e.value.year,isCurrent:d===s&&n===i,isDisabled:!o({month:d,year:n},{position:e.value.position})}})}function f(n,a){const{year:s}=r(new Date),{position:i}=e.value,c=[];for(let h=n;h<=a;h+=1){const d=[...Array(12).keys()].some(m=>o({month:m+1,year:h},{position:i}));c.push({year:h,id:h.toString(),label:h.toString(),ariaLabel:h.toString(),isActive:h===e.value.year,isCurrent:h===s,isDisabled:!d})}return c}const l={page:e,getMonthItems:u,getYearItems:f};return lr(Ko,l),l}function Zo(){const e=ur(Ko);if(e)return e;throw new Error("Page context missing. Please verify this component is nested within a valid context provider.")}const a1={class:"vc-nav-header"},n1=["disabled"],s1=["disabled"],o1={class:"vc-nav-items"},i1=["data-id","aria-label","disabled","onClick","onKeydown"],u1=he({__name:"CalendarNav",setup(e){const{masks:t,move:r}=Pt(),{page:o,getMonthItems:u,getYearItems:f}=Zo(),l=oe(!0),n=12,a=oe(o.value.year),s=oe(h(o.value.year)),i=oe(null);function c(){setTimeout(()=>{if(i.value==null)return;const O=i.value.querySelector(".vc-nav-item:not(:disabled)");O&&O.focus()},10)}function h(O){return Math.floor(O/n)}function d(){l.value=!l.value}function m(O){return O*n}function v(O){return n*(O+1)-1}function y(){ue.value&&(l.value&&P(),q())}function p(){ye.value&&(l.value&&$(),C())}function P(){a.value--}function $(){a.value++}function q(){s.value--}function C(){s.value++}const U=w(()=>u(a.value,t.value.navMonths).map(O=>({...O,click:()=>r({month:O.month,year:O.year},{position:o.value.position})}))),N=w(()=>u(a.value-1,t.value.navMonths)),j=w(()=>N.value.some(O=>!O.isDisabled)),H=w(()=>u(a.value+1,t.value.navMonths)),ie=w(()=>H.value.some(O=>!O.isDisabled)),Q=w(()=>f(m(s.value),v(s.value)).map(O=>({...O,click:()=>{a.value=O.year,l.value=!0,c()}}))),A=w(()=>f(m(s.value-1),v(s.value-1))),F=w(()=>A.value.some(O=>!O.isDisabled)),J=w(()=>f(m(s.value+1),v(s.value+1))),M=w(()=>J.value.some(O=>!O.isDisabled)),te=w(()=>l.value?U.value:Q.value),ue=w(()=>l.value?j.value:F.value),ye=w(()=>l.value?ie.value:M.value),se=w(()=>vo(Q.value.map(O=>O.year))),S=w(()=>$t(Q.value.map(O=>O.year))),G=w(()=>l.value?a.value:`${se.value} - ${S.value}`);return Ms(()=>{a.value=o.value.year,c()}),pe(()=>a.value,O=>s.value=h(O)),xr(()=>c()),(O,ge)=>(T(),I("div",{class:"vc-nav-container",ref_key:"navContainer",ref:i},[L("div",a1,[L("button",{type:"button",class:"vc-nav-arrow is-left vc-focus",disabled:!D(ue),onClick:y,onKeydown:ge[0]||(ge[0]=K=>D(br)(K,y))},[W(_e,{name:"nav-prev-button",move:y,disabled:!D(ue)},{default:ne(()=>[W(Mt,{name:"ChevronLeft",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,n1),L("button",{type:"button",class:"vc-nav-title vc-focus",onClick:d,onKeydown:ge[1]||(ge[1]=K=>D(br)(K,d))},de(D(G)),33),L("button",{type:"button",class:"vc-nav-arrow is-right vc-focus",disabled:!D(ye),onClick:p,onKeydown:ge[2]||(ge[2]=K=>D(br)(K,p))},[W(_e,{name:"nav-next-button",move:p,disabled:!D(ye)},{default:ne(()=>[W(Mt,{name:"ChevronRight",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,s1)]),L("div",o1,[(T(!0),I(ve,null,ke(D(te),K=>(T(),I("button",{key:K.label,type:"button","data-id":K.id,"aria-label":K.ariaLabel,class:Y(["v
1c-nav-item vc-focus",[K.isActive?"is-active":K.isCurrent?"is-current":""]]),disabled:K.isDisabled,onClick:K.click,onKeydown:fe=>D(br)(fe,K.click)},de(K.label),43,i1))),128))])],512))}}),Qo=he({__name:"CalendarPageProvider",props:{page:null},setup(e){return r1(gt(e,"page")),(r,o)=>Te(r.$slots,"default")}}),l1=he({__name:"CalendarNavPopover",setup(e){const{navPopoverId:t,color:r,displayMode:o}=Pt();return(u,f)=>(T(),ae(Fa,{id:D(t),class:Y(["vc-nav-popover-container",`vc-${D(r)}`,`vc-${D(o)}`])},{default:ne(({data:l})=>[W(Qo,{page:l.page},{default:ne(()=>[W(_e,{name:"nav"},{default:ne(()=>[W(u1)]),_:1})]),_:2},1032,["page"])]),_:1},8,["id","class"]))}}),c1=he({directives:{popover:Uo},components:{CalendarSlot:_e},props:{day:{type:Object,required:!0}},setup(e){const{locale:t,theme:r,attributeContext:o,dayPopoverId:u,onDayClick:f,onDayMouseenter:l,onDayMouseleave:n,onDayFocusin:a,onDayFocusout:s,onDayKeydown:i}=Pt(),c=w(()=>e.day),h=w(()=>o.value.getCells(c.value)),d=w(()=>h.value.map(M=>M.data)),m=w(()=>({...c.value,attributes:d.value,attributeCells:h.value}));function v({data:M},{popovers:te}){const{key:ue,customData:ye,popover:se}=M;if(!se)return;const S=Fn({key:ue,customData:ye,attribute:M},{...se},{visibility:se.label?"hover":"click",placement:"bottom",isInteractive:!se.label});te.splice(0,0,S)}const y=w(()=>{const M={...r.value.prepareRender({}),popovers:[]};return h.value.forEach(te=>{r.value.render(te,M),v(te,M)}),M}),p=w(()=>y.value.highlights),P=w(()=>!!ze(p.value)),$=w(()=>y.value.content),q=w(()=>y.value.dots),C=w(()=>!!ze(q.value)),U=w(()=>y.value.bars),N=w(()=>!!ze(U.value)),j=w(()=>y.value.popovers),H=w(()=>j.value.map(M=>M.attribute)),ie=Bo("day-content"),Q=w(()=>["vc-day",...c.value.classes,{"vc-day-box-center-center":!ie},{"is-not-in-month":!e.day.inMonth}]),A=w(()=>{let M;c.value.isFocusable?M="0":M="-1";const te=["vc-day-content vc-focusable vc-focus vc-attr",{"vc-disabled":c.value.isDisabled},mt($t(p.value),"contentClass"),mt($t($.value),"class")||""],ue={...mt($t(p.value),"contentStyle"),...mt($t($.value),"style")};return{class:te,style:ue,tabindex:M,"aria-label":c.value.ariaLabel,"aria-disabled":!!c.value.isDisabled,role:"button"}}),F=w(()=>({click(M){f(m.value,M)},mouseenter(M){l(m.value,M)},mouseleave(M){n(m.value,M)},focusin(M){a(m.value,M)},focusout(M){s(m.value,M)},keydown(M){i(m.value,M)}})),J=w(()=>ze(j.value)?Fn({id:u.value,data:{day:c,attributes:H.value}},...j.value):null);return{attributes:d,attributeCells:h,bars:U,dayClasses:Q,dayContentProps:A,dayContentEvents:F,dayPopover:J,glyphs:y,dots:q,hasDots:C,hasBars:N,highlights:p,hasHighlights:P,locale:t,popovers:j}}}),d1={key:0,class:"vc-highlights vc-day-layer"},h1={key:1,class:"vc-day-layer vc-day-box-center-bottom"},f1={class:"vc-dots"},m1={key:2,class:"vc-day-layer vc-day-box-center-bottom"},v1={class:"vc-bars"};function g1(e,t,r,o,u,f){const l=je("CalendarSlot"),n=eu("popover");return T(),I("div",{class:Y(e.dayClasses)},[e.hasHighlights?(T(),I("div",d1,[(T(!0),I(ve,null,ke(e.highlights,({key:a,wrapperClass:s,class:i,style:c})=>(T(),I("div",{key:a,class:Y(s)},[L("div",{class:Y(i),style:kt(c)},null,6)],2))),128))])):V("",!0),W(l,{name:"day-content",day:e.day,attributes:e.attributes,"attribute-cells":e.attributeCells,dayProps:e.dayContentProps,dayEvents:e.dayContentEvents,locale:e.locale},{default:ne(()=>[_s((T(),I("div",Re(e.dayContentProps,tu(e.dayContentEvents,!0)),[nr(de(e.day.label),1)],16)),[[n,e.dayPopover]])]),_:1},8,["day","attributes","attribute-cells","dayProps","dayEvents","locale"]),e.hasDots?(T(),I("div",h1,[L("div",f1,[(T(!0),I(ve,null,ke(e.dots,({key:a,class:s,style:i})=>(T(),I("span",{key:a,class:Y(s),style:kt(i)},null,6))),128))])])):V("",!0),e.hasBars?(T(),I("div",m1,[L("div",v1,[(T(!0),I(ve,null,ke(e.bars,({key:a,class:s,style:i})=>(T(),I("span",{key:a,class:Y(s),style:kt(i)},null,6))),128))])])):V("",!0)],2)}const p1=ut(c1,[["render",g1]]),y1={class:"vc-weekdays"},w1=["onClick"],P1={inheritAttrs:!1},q1=he({...P1,__name:"CalendarPage",setup(e){const{page:t}=Zo(),{onWeeknumberClick:r}=Pt();return(o,u)=>
1(T(),I("div",{class:Y(["vc-pane",`row-${D(t).row}`,`row-from-end-${D(t).rowFromEnd}`,`column-${D(t).column}`,`column-from-end-${D(t).columnFromEnd}`]),ref:"pane"},[W(Vo,{page:D(t),"is-lg":"","hide-arrows":""},null,8,["page"]),L("div",{class:Y(["vc-weeks",{[`vc-show-weeknumbers-${D(t).weeknumberPosition}`]:D(t).weeknumberPosition}])},[L("div",y1,[(T(!0),I(ve,null,ke(D(t).weekdays,({weekday:f,label:l},n)=>(T(),I("div",{key:n,class:Y(`vc-weekday vc-weekday-${f}`)},de(l),3))),128))]),(T(!0),I(ve,null,ke(D(t).viewWeeks,f=>(T(),I("div",{key:`weeknumber-${f.weeknumber}`,class:"vc-week"},[D(t).weeknumberPosition?(T(),I("div",{key:0,class:Y(["vc-weeknumber",`is-${D(t).weeknumberPosition}`])},[L("span",{class:Y(["vc-weeknumber-content"]),onClick:l=>D(r)(f,l)},de(f.weeknumberDisplay),9,w1)],2)):V("",!0),(T(!0),I(ve,null,ke(f.days,l=>(T(),ae(p1,{key:l.id,day:l},null,8,["day"]))),128))]))),128))],2)],2))}}),b1=he({components:{CalendarHeader:Vo,CalendarPage:q1,CalendarNavPopover:l1,CalendarDayPopover:Sb,CalendarPageProvider:Qo,CalendarSlot:_e},props:mb,emit:vb,setup(e,{emit:t,slots:r}){return gb(e,{emit:t,slots:r})}}),D1={class:"vc-pane-header-wrapper"};function E1(e,t,r,o,u,f){const l=je("CalendarHeader"),n=je("CalendarPage"),a=je("CalendarSlot"),s=je("CalendarPageProvider"),i=je("CalendarDayPopover"),c=je("CalendarNavPopover");return T(),I(ve,null,[L("div",Re({"data-helptext":"Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year"},e.$attrs,{class:["vc-container",`vc-${e.view}`,`vc-${e.color}`,`vc-${e.displayMode}`,{"vc-expanded":e.expanded,"vc-bordered":!e.borderless,"vc-transparent":e.transparent}],onMouseup:t[0]||(t[0]=Xi(()=>{},["prevent"])),ref:"containerRef"}),[L("div",{class:Y(["vc-pane-container",{"in-transition":e.inTransition}])},[L("div",D1,[e.firstPage?(T(),ae(l,{key:0,page:e.firstPage,"is-lg":"","hide-title":""},null,8,["page"])):V("",!0)]),W(wa,{name:`vc-${e.transitionName}`,onBeforeEnter:e.onTransitionBeforeEnter,onAfterEnter:e.onTransitionAfterEnter},{default:ne(()=>[(T(),I("div",{key:e.pages[0].id,class:"vc-pane-layout",style:kt({gridTemplateColumns:`repeat(${e.columns}, 1fr)`})},[(T(!0),I(ve,null,ke(e.pages,h=>(T(),ae(s,{key:h.id,page:h},{default:ne(()=>[W(a,{name:"page",page:h},{default:ne(()=>[W(n)]),_:2},1032,["page"])]),_:2},1032,["page"]))),128))],4))]),_:1},8,["name","onBeforeEnter","onAfterEnter"]),W(a,{name:"footer"})],2)],16),W(i),W(c)],64)}const T1=ut(b1,[["render",E1]]),Jo=Symbol("__vc_date_picker_context__"),S1={...Ho,mode:{type:String,default:"date"},modelValue:{type:[Number,String,Date,Object]},modelModifiers:{type:Object,default:()=>({})},rules:[String,Object],is24hr:Boolean,hideTimeHeader:Boolean,timeAccuracy:{type:Number,default:2},isRequired:Boolean,isRange:Boolean,updateOnInput:{type:Boolean,default:()=>it("datePicker.updateOnInput")},inputDebounce:{type:Number,default:()=>it("datePicker.inputDebounce")},popover:{type:[Boolean,Object],default:!0},dragAttribute:Object,selectAttribute:Object,attributes:[Object,Array]},$1=["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"];function k1(e,{emit:t,slots:r}){Go(r,{footer:"dp-footer"});const o=Fo(e),{locale:u,masks:f,disabledAttribute:l}=o,n=oe(!1),a=oe(Symbol()),s=oe(null),i=oe(null),c=oe(["",""]),h=oe(null),d=oe(null);let m,v,y=!0;const p=w(()=>e.isRange||e.modelModifiers.range===!0),P=w(()=>p.value&&s.value!=null?s.value.start:null),$=w(()=>p.value&&s.value!=null?s.value.end:null),q=w(()=>e.mode.toLowerCase()==="date"),C=w(()=>e.mode.toLowerCase()==="datetime"),U=w(()=>e.mode.toLowerCase()==="time"),N=w(()=>!!i.value),j=w(()=>{let g="date";e.modelModifiers.number&&(g="number"),e.modelModifiers.string&&(g="string");const b=f.value.modelValue||"iso";return ge({type:g,mask:b})}),H=w(()=>Ht(i.value??s.value)),ie=w(()=>U.value?e.is24hr?f.value.inputTime24hr:f.value.inputTime:C.value?e.is24hr?f.value.inputDateTime24hr:f.value.inputDateTime:f.value.input),Q=w(()=>/[Hh]/g.test(ie.value)),A=w(()=>/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(ie.value)),F=w(()=>
1{if(Q.value&&A.value)return"dateTime";if(A.value)return"date";if(Q.value)return"time"}),J=w(()=>{var g;const b=((g=h.value)==null?void 0:g.$el.previousElementSibling)??void 0;return or({},e.popover,it("datePicker.popover"),{target:b})}),M=w(()=>xo({...J.value,id:a.value})),te=w(()=>p.value?{start:c.value[0],end:c.value[1]}:c.value[0]),ue=w(()=>{const g=["start","end"].map(b=>({input:lt(b),change:hr(b),keyup:jt,...e.popover&&M.value}));return p.value?{start:g[0],end:g[1]}:g[0]}),ye=w(()=>{if(!me(s.value))return null;const g={key:"select-drag",...e.selectAttribute,dates:s.value,pinPage:!0},{dot:b,bar:k,highlight:x,content:le}=g;return!b&&!k&&!x&&!le&&(g.highlight=!0),g}),se=w(()=>{if(!p.value||!me(i.value))return null;const g={key:"select-drag",...e.dragAttribute,dates:i.value},{dot:b,bar:k,highlight:x,content:le}=g;return!b&&!k&&!x&&!le&&(g.highlight={startEnd:{fillMode:"outline"}}),g}),S=w(()=>{const g=Me(e.attributes)?[...e.attributes]:[];return se.value?g.unshift(se.value):ye.value&&g.unshift(ye.value),g}),G=w(()=>ge(e.rules==="auto"?O():e.rules??{}));function O(){const g={ms:[0,999],sec:[0,59],min:[0,59],hr:[0,23]},b=q.value?0:e.timeAccuracy;return[0,1].map(k=>{switch(b){case 0:return{hours:g.hr[k],minutes:g.min[k],seconds:g.sec[k],milliseconds:g.ms[k]};case 1:return{minutes:g.min[k],seconds:g.sec[k],milliseconds:g.ms[k]};case 3:return{milliseconds:g.ms[k]};case 4:return{};default:return{seconds:g.sec[k],milliseconds:g.ms[k]}}})}function ge(g){return Me(g)?g.length===1?[g[0],g[0]]:g:[g,g]}function K(g){return ge(g).map((b,k)=>({...b,rules:G.value[k]}))}function fe(g){return g==null?!1:Ye(g)?!isNaN(g):Ct(g)?!isNaN(g.getTime()):He(g)?g!=="":Ua(g)}function Ce(g){return Ve(g)&&"start"in g&&"end"in g&&fe(g.start??null)&&fe(g.end??null)}function me(g){return Ce(g)||fe(g)}function Ae(g,b){if(g==null&&b==null)return!0;if(g==null||b==null)return!1;const k=Ct(g),x=Ct(b);return k&&x?g.getTime()===b.getTime():k||x?!1:Ae(g.start,b.start)&&Ae(g.end,b.end)}function Oe(g){return!me(g)||!l.value?!1:l.value.intersectsRange(u.value.range(g))}function R(g,b,k,x){if(!me(g))return null;if(Ce(g)){const le=u.value.toDate(g.start,{...b[0],fillDate:P.value??void 0,patch:k}),qe=u.value.toDate(g.end,{...b[1],fillDate:$.value??void 0,patch:k});return vr({start:le,end:qe},x)}return u.value.toDateOrNull(g,{...b[0],fillDate:s.value,patch:k})}function B(g,b){return Ce(g)?{start:u.value.fromDate(g.start,b[0]),end:u.value.fromDate(g.end,b[1])}:p.value?null:u.value.fromDate(g,b[0])}function z(g,b={}){return clearTimeout(m),new Promise(k=>{const{debounce:x=0,...le}=b;x>0?m=window.setTimeout(()=>{k(ce(g,le))},x):k(ce(g,le))})}function ce(g,{config:b=j.value,patch:k="dateTime",clearIfEqual:x=!1,formatInput:le=!0,hidePopover:qe=!1,dragging:Se=N.value,targetPriority:bt,moveToValue:Dt=!1}={}){const Jr=K(b);let Ee=R(g,Jr,k,bt);if(Oe(Ee)){if(Se)return null;Ee=s.value,qe=!1}else Ee==null&&e.isRequired?Ee=s.value:Ee!=null&&Ae(s.value,Ee)&&x&&(Ee=null);const wr=Se?i:s,Vt=!Ae(wr.value,Ee);wr.value=Ee,Se||(i.value=null);const Kt=B(Ee,j.value);return Vt&&(y=!1,t(Se?"drag":"update:modelValue",Kt),St(()=>y=!0)),qe&&!Se&&zt(),le&&Ie(),Dt&&St(()=>pr(bt??"start")),Kt}function Ie(){St(()=>{const g=K({type:"string",mask:ie.value}),b=B(i.value??s.value,g);p.value?c.value=[b&&b.start,b&&b.end]:c.value=[b,""]})}function qt(g,b,k){c.value.splice(b==="start"?0:1,1,g);const x=p.value?{start:c.value[0],end:c.value[1]||c.value[0]}:g,le={type:"string",mask:ie.value};z(x,{...k,config:le,patch:F.value,targetPriority:b,moveToValue:!0})}function lt(g){return b=>{e.updateOnInput&&qt(b.currentTarget.value,g,{formatInput:!1,hidePopover:!1,debounce:e.inputDebounce})}}function hr(g){return b=>{qt(b.currentTarget.value,g,{formatInput:!0,hidePopover:!1})}}function jt(g){g.key==="Escape"&&z(s.value,{formatInput:!0,hidePopover:!0})}function Ht(g){return p.value?[g&&g.start?u.value.getDateParts(g.start):null,g&&g.end?u.value.getDateParts(g.end):null]:[g?u.value.getDateParts(g):null]}function Br(){i.value=null,Ie()}function zr(g){t("popover-will-show",g)}function Ft(g){t("popover-did-show",g)}function Wt(g){Br(),t("popover-will-hide",g)}function fr(g){t("popover-did-hide",g)}function Gt(g){const b={patch:"date",formatInput:!0,hidePopover:!0};if(p.value){const k=!N.value;
1k?v={start:g.startDate,end:g.endDate}:v!=null&&(v.end=g.date),z(v,{...b,dragging:k})}else z(g.date,{...b,clearIfEqual:!e.isRequired})}function Bt(g,b){Gt(g),t("dayclick",g,b)}function mr(g,b){switch(b.key){case" ":case"Enter":{Gt(g),b.preventDefault();break}case"Escape":zt()}t("daykeydown",g,b)}function Vr(g,b){!N.value||v==null||(v.end=g.date,z(vr(v),{patch:"date",formatInput:!0}))}function Kr(g={}){ya({...J.value,...g,isInteractive:!0,id:a.value})}function zt(g={}){ir({hideDelay:10,force:!0,...J.value,...g,id:a.value})}function Zr(g){No({...J.value,...g,isInteractive:!0,id:a.value})}function vr(g,b){const{start:k,end:x}=g;if(k>x)switch(b){case"start":return{start:k,end:k};case"end":return{start:x,end:x};default:return{start:x,end:k}}return{start:k,end:x}}async function gr(g,b={}){return d.value==null?!1:d.value.move(g,b)}async function Qr(g,b={}){return d.value==null?!1:d.value.moveBy(g,b)}async function pr(g,b={}){const k=s.value;if(d.value==null||!me(k))return!1;const x=g!=="end",le=x?1:-1,qe=Ce(k)?x?k.start:k.end:k,Se=qo(qe,"monthly",u.value);return d.value.move(Se,{position:le,...b})}pe(()=>e.isRange,g=>
1{g&&console.warn("The `is-range` prop will be deprecated in future releases. Please use the `range` modifier.")},{immediate:!0}),pe(()=>p.value,()=>{ce(null,{formatInput:!0})}),pe(()=>ie.value,()=>Ie()),pe(()=>e.modelValue,g=>{y&&ce(g,{formatInput:!0,hidePopover:!1})}),pe(()=>G.value,()=>{Ve(e.rules)&&ce(e.modelValue,{formatInput:!0,hidePopover:!1})}),pe(()=>e.timezone,()=>{ce(s.value,{formatInput:!0})});const yr=ge(j.value);s.value=R(e.modelValue??null,yr,"dateTime"),xr(()=>{ce(e.modelValue,{formatInput:!0,hidePopover:!1})}),St(()=>n.value=!0);const E={...o,showCalendar:n,datePickerPopoverId:a,popoverRef:h,popoverEvents:M,calendarRef:d,isRange:p,isTimeMode:U,isDateTimeMode:C,is24hr:gt(e,"is24hr"),hideTimeHeader:gt(e,"hideTimeHeader"),timeAccuracy:gt(e,"timeAccuracy"),isDragging:N,inputValue:te,inputEvents:ue,dateParts:H,attributes:S,rules:G,move:gr,moveBy:Qr,moveToValue:pr,updateValue:z,showPopover:Kr,hidePopover:zt,togglePopover:Zr,onDayClick:Bt,onDayKeydown:mr,onDayMouseEnter:Vr,onPopoverBeforeShow:zr,onPopoverAfterShow:Ft,onPopoverBeforeHide:Wt,onPopoverAfterHide:fr};return lr(Jo,E),E}function Wa(){const e=ur(Jo);if(e)return e;throw new Error("DatePicker context missing. Please verify this component is nested within a valid context provider.")}const C1=[{value:0,label:"12"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"},{value:6,label:"6"},{value:7,label:"7"},{value:8,label:"8"},{value:9,label:"9"},{value:10,label:"10"},{value:11,label:"11"}],I1=[{value:12,label:"12"},{value:13,label:"1"},{value:14,label:"2"},{value:15,label:"3"},{value:16,label:"4"},{value:17,label:"5"},{value:18,label:"6"},{value:19,label:"7"},{value:20,label:"8"},{value:21,label:"9"},{value:22,label:"10"},{value:23,label:"11"}];function _1(e){const t=Wa(),{locale:r,isRange:o,isTimeMode:u,dateParts:f,rules:l,is24hr:n,hideTimeHeader:a,timeAccuracy:s,updateValue:i}=t;function c(A){A=Object.assign(d.value,A);let F=null;if(o.value){const J=h.value?A:f.value[0],M=h.value?f.value[1]:A;F={start:J,end:M}}else F=A;i(F,{patch:"time",targetPriority:h.value?"start":"end",moveToValue:!0})}const h=w(()=>e.position===0),d=w(()=>f.value[e.position]||{isValid:!1}),m=w(()=>Ua(d.value)),v=w(()=>!!d.value.isValid),y=w(()=>!a.value&&v.value),p=w(()=>{if(!m.value)return null;let A=r.value.toDate(d.value);return d.value.hours===24&&(A=new Date(A.getTime()-1)),A}),P=w({get(){return d.value.hours},set(A){c({hours:A})}}),$=w({get(){return d.value.minutes},set(A){c({minutes:A})}}),q=w({get(){return d.value.seconds},set(A){c({seconds:A})}}),C=w({get(){return d.value.milliseconds},set(A){c({milliseconds:A})}}),U=w({get(){return d.value.hours<12},set(A){A=String(A).toLowerCase()=="true";let F=P.value;A&&F>=12?F-=12:!A&&F<12&&(F+=12),c({hours:F})}}),N=w(()=>Kq(d.value,l.value[e.position])),j=w(()=>C1.filter(A=>N.value.hours.some(F=>F.value===A.value))),H=w(()=>I1.filter(A=>N.value.hours.some(F=>F.value===A.value))),ie=w(()=>n.value?N.value.hours:U.value?j.value:H.value),Q=w(()=>{const A=[];return ze(j.value)&&A.push({value:!0,label:"AM"}),ze(H.value)&&A.push({value:!1,label:"PM"}),A});return{...t,showHeader:y,timeAccuracy:s,parts:d,isValid:v,date:p,hours:P,minutes:$,seconds:q,milliseconds:C,options:N,hourOptions:ie,isAM:U,isAMOptions:Q,is24hr:n}}const M1=["value"],A1=["value","disabled"],O1={key:1,class:"vc-base-sizer","aria-hidden":"true"},R1={inheritAttrs:!1},er=he({...R1,__name:"BaseSelect",props:{options:null,modelValue:null,alignRight:{type:Boolean},alignLeft:{type:Boolean},showIcon:{type:Boolean},fitContent:{type:Boolean}},emits:["update:modelValue"],setup(e){const t=e,r=w(()=>{const o=t.options.find(u=>u.value===t.modelValue);return o==null?void 0:o.label});return(o,u)=>(T(),I("div",{class:Y(["vc-base-select",{"vc-fit-content":e.fitContent,"vc-has-icon":e.showIcon}])},[L("select",Re(o.$attrs,{value:e.modelValue,class:["vc-focus",{"vc-align-right":e.alignRight,"vc-align-left":e.alignLeft}],onChange:u[0]||(u[0]=f=>o.$emit("update:modelValue",f.target.value))}),[(T(!0),I(ve,null,ke(e.options,f=>(T(),I("option",{key:f.value,value:f.value,disabled:f.disabled},de(f.label),9,A1))),128))],16,M1),e.showIcon?(T(),ae(Mt,{key:0,name:"ChevronDown",size:"18"})):V("",!0),e.fitContent?(T(),I("div",O1,de(D(r)),1)):V("",!0)],2))}}),Y1={key:0,class:"vc-time-header"},N1={class:"vc-time-weekday"},x1={class:"vc-time-month"},U1={class:"vc-time-day"},L1={class:"vc-time-year"},j1={class:"vc-time-select-group"},H1=L("span",{class:"vc-time-colon"},":",-1),F1=L("span",{class:"vc-time-colon"},":",-1),W1=L("span",{class:"vc-time-decimal"},".",-1),ys=he({__name:"TimePicker",props:{position:null},setup(e,{expose:t}){const o=_1(e);t(o);const{locale:u,isValid:f,date:l,hours:n,minutes:a,seconds:s,milliseconds:i,options:c,hourOptions:h,isTimeMode:d,isAM:m,isAMOptions:v,is24hr:y,showHeader:p,timeAccuracy:P}=o;return($,q)=>
1(T(),I("div",{class:Y(["vc-time-picker",[{"vc-invalid":!D(f),"vc-attached":!D(d)}]])},[W(_e,{name:"time-header"},{default:ne(()=>[D(p)&&D(l)?(T(),I("div",Y1,[L("span",N1,de(D(u).formatDate(D(l),"WWW")),1),L("span",x1,de(D(u).formatDate(D(l),"MMM")),1),L("span",U1,de(D(u).formatDate(D(l),"D")),1),L("span",L1,de(D(u).formatDate(D(l),"YYYY")),1)])):V("",!0)]),_:1}),L("div",j1,[W(Mt,{name:"Clock",size:"17"}),W(er,{modelValue:D(n),"onUpdate:modelValue":q[0]||(q[0]=C=>ft(n)?n.value=C:null),modelModifiers:{number:!0},options:D(h),class:"vc-time-select-hours","align-right":""},null,8,["modelValue","options"]),D(P)>1?(T(),I(ve,{key:0},[H1,W(er,{modelValue:D(a),"onUpdate:modelValue":q[1]||(q[1]=C=>ft(a)?a.value=C:null),modelModifiers:{number:!0},options:D(c).minutes,class:"vc-time-select-minutes","align-left":D(P)===2},null,8,["modelValue","options","align-left"])],64)):V("",!0),D(P)>2?(T(),I(ve,{key:1},[F1,W(er,{modelValue:D(s),"onUpdate:modelValue":q[2]||(q[2]=C=>ft(s)?s.value=C:null),modelModifiers:{number:!0},options:D(c).seconds,class:"vc-time-select-seconds","align-left":D(P)===3},null,8,["modelValue","options","align-left"])],64)):V("",!0),D(P)>3?(T(),I(ve,{key:2},[W1,W(er,{modelValue:D(i),"onUpdate:modelValue":q[3]||(q[3]=C=>ft(i)?i.value=C:null),modelModifiers:{number:!0},options:D(c).milliseconds,class:"vc-time-select-milliseconds","align-left":""},null,8,["modelValue","options"])],64)):V("",!0),D(y)?V("",!0):(T(),ae(er,{key:3,modelValue:D(m),"onUpdate:modelValue":q[4]||(q[4]=C=>ft(m)?m.value=C:null),options:D(v)},null,8,["modelValue","options"]))])],2))}}),Xo=he({__name:"DatePickerBase",setup(e){const{attributes:t,calendarRef:r,color:o,displayMode:u,isDateTimeMode:f,isTimeMode:l,isRange:n,onDayClick:a,onDayMouseEnter:s,onDayKeydown:i}=Wa(),c=n.value?[0,1]:[0];return(h,d)=>D(l)?(T(),I("div",{key:0,class:Y(`vc-container vc-bordered vc-${D(o)} vc-${D(u)}`)},[(T(!0),I(ve,null,ke(D(c),m=>(T(),ae(ys,{key:m,position:m},null,8,["position"]))),128))],2)):(T(),ae(T1,{key:1,attributes:D(t),ref_key:"calendarRef",ref:r,onDayclick:D(a),onDaymouseenter:D(s),onDaykeydown:D(i)},{footer:ne(()=>[D(f)?(T(!0),I(ve,{key:0},ke(D(c),m=>(T(),ae(ys,{key:m,position:m},null,8,["position"]))),128)):V("",!0),W(_e,{name:"dp-footer"})]),_:1},8,["attributes","onDayclick","onDaymouseenter","onDaykeydown"]))}}),G1={inheritAttrs:!1},B1=he({...G1,__name:"DatePickerPopover",setup(e){const{datePickerPopoverId:t,color:r,displayMode:o,popoverRef:u,onPopoverBeforeShow:f,onPopoverAfterShow:l,onPopoverBeforeHide:n,onPopoverAfterHide:a}=Wa();return(s,i)=>(T(),ae(Fa,{id:D(t),placement:"bottom-start",class:Y(`vc-date-picker-content vc-${D(r)} vc-${D(o)}`),ref_key:"popoverRef",ref:u,onBeforeShow:D(f),onAfterShow:D(l),onBeforeHide:D(n),onAfterHide:D(a)},{default:ne(()=>[W(Xo,ar(ua(s.$attrs)),null,16)]),_:1},8,["id","class","onBeforeShow","onAfterShow","onBeforeHide","onAfterHide"]))}}),z1=he({inheritAttrs:!1,emits:$1,props:S1,components:{DatePickerBase:Xo,DatePickerPopover:B1},setup(e,t){const r=k1(e,t),o=Pa(po(r,"calendarRef","popoverRef"));return{...r,slotCtx:o}}});function V1(e,t,r,o,u,f){const l=je("DatePickerPopover"),n=je("DatePickerBase");return e.$slots.default?(T(),I(ve,{key:0},[Te(e.$slots,"default",ar(ua(e.slotCtx))),W(l,ar(ua(e.$attrs)),null,16)],64)):(T(),ae(n,ar(Re({key:1},e.$attrs)),null,16))}const ws=ut(z1,[["render",V1]]),XD=he({inheritAttrs:!1,__name:"ADatePicker",props:{modelValue:{type:[Date,Object],default:null}},emits:["update:model-value","close"],setup(e,{emit:t}){const r=e,o=t,u=w({get:()=>r.modelValue,set:n=>{o("update:model-value",n),o("close")}}),f={transparent:!0,borderless:!0,color:"primary","is-dark":{selector:"html",darkClass:"dark"},"first-day-of-week":2};function l(n,a){a.target.blur()}return(n,a)=>{var s,i;return D(u)&&((s=D(u))!=null&&s.start)&&((i=D(u))!=null&&i.end)?(T(),ae(D(ws),Re({key:0,modelValue:D(u),"onUpdate:modelValue":a[0]||(a[0]=c=>ft(u)?u.value=c:null),columns:2},{...f,...n.$attrs},{onDayclick:l}),null,16,["modelValue"])):(T(),ae(D(ws),Re({key:1,modelValue:D(u),"onUpdate:modelValue":a[1]||(a[1]=c=>ft(u)?u.value=c:null)},{...f,...n.$attrs},{onDayclick:l}),null,16,["modelValue"]))}}});function Je(){function e(t){return new Promise(r=>{let o=new XMLHttpRequest;
1o.open(t.method,t.url,!0),Object.keys(t.headers).forEach(n=>o.setRequestHeader(n,t.headers[n]));let u=(n,a)=>setTimeout(()=>{o.abort(),r({status:0,content:a,isTimedOut:!0})},n),f=u(t.connectTimeout,"Connection timeout"),l;o.onreadystatechange=()=>{o.readyState>o.OPENED&&l===void 0&&(clearTimeout(f),l=u(t.responseTimeout,"Socket timeout"))},o.onerror=()=>{o.status===0&&(clearTimeout(f),clearTimeout(l),r({content:o.responseText||"Network request failed",status:o.status,isTimedOut:!1}))},o.onload=()=>{clearTimeout(f),clearTimeout(l),r({content:o.responseText,status:o.status,isTimedOut:!1})},o.send(t.data)})}return{send:e}}function Xe(e){let t;const r=`algolia-client-js-${e.key}`;function o(){return t===void 0&&(t=e.localStorage||window.localStorage),t}function u(){return JSON.parse(o().getItem(r)||"{}")}function f(n){o().setItem(r,JSON.stringify(n))}function l(){const n=e.timeToLive?e.timeToLive*1e3:null,a=u(),s=Object.fromEntries(Object.entries(a).filter(([,c])=>c.timestamp!==void 0));if(f(s),!n)return;const i=Object.fromEntries(Object.entries(s).filter(([,c])=>{const h=new Date().getTime();return!(c.timestamp+n<h)}));f(i)}return{get(n,a,s={miss:()=>Promise.resolve()}){return Promise.resolve().then(()=>(l(),u()[JSON.stringify(n)])).then(i=>Promise.all([i?i.value:a(),i!==void 0])).then(([i,c])=>Promise.all([i,c||s.miss(i)])).then(([i])=>i)},set(n,a){return Promise.resolve().then(()=>{const s=u();return s[JSON.stringify(n)]={timestamp:new Date().getTime(),value:a},o().setItem(r,JSON.stringify(s)),a})},delete(n){return Promise.resolve().then(()=>{const a=u();delete a[JSON.stringify(n)],o().setItem(r,JSON.stringify(a))})},clear(){return Promise.resolve().then(()=>{o().removeItem(r)})}}}function K1(){return{get(e,t,r={miss:()=>Promise.resolve()}){return t().then(u=>Promise.all([u,r.miss(u)])).then(([u])=>u)},set(e,t){return Promise.resolve(t)},delete(e){return Promise.resolve()},clear(){return Promise.resolve()}}}function $e(e){const t=[...e.caches],r=t.shift();return r===void 0?K1():{get(o,u,f={miss:()=>Promise.resolve()}){return r.get(o,u,f).catch(()=>$e({caches:t}).get(o,u,f))},set(o,u){return r.set(o,u).catch(()=>$e({caches:t}).set(o,u))},delete(o){return r.delete(o).catch(()=>$e({caches:t}).delete(o))},clear(){return r.clear().catch(()=>$e({caches:t}).clear())}}}function ee(e={serializable:!0}){let t={};return{get(r,o,u={miss:()=>Promise.resolve()}){const f=JSON.stringify(r);if(f in t)return Promise.resolve(e.serializable?JSON.parse(t[f]):t[f]);const l=o();return l.then(n=>u.miss(n)).then(()=>l)},set(r,o){return t[JSON.stringify(r)]=e.serializable?JSON.stringify(o):o,Promise.resolve(o)},delete(r){return delete t[JSON.stringify(r)],Promise.resolve()},clear(){return t={},Promise.resolve()}}}function Z1(e){const t={value:`Algolia for JavaScript (${e})`,add(r){const o=`; ${r.segment}${r.version!==void 0?` (${r.version})`:""}`;return t.value.indexOf(o)===-1&&(t.value=`${t.value}${o}`),t}};return t}function et(e,t,r="WithinHeaders"){const o={"x-algolia-api-key":t,"x-algolia-application-id":e};return{headers(){return r==="WithinHeaders"?o:{}},queryParameters(){return r==="WithinQueryParameters"?o:{}}}}function ct({func:e,validate:t,aggregator:r,error:o,timeout:u=()=>0}){const f=l=>new Promise((n,a)=>{e(l).then(async s=>(r&&await r(s),await t(s)?n(s):o&&await o.validate(s)?a(new Error(await o.message(s))):setTimeout(()=>{f(s).then(n).catch(a)},await u()))).catch(s=>{a(s)})});return f()}function tt({algoliaAgents:e,client:t,version:r}){const o=Z1(r).add({segment:t,version:r});return e.forEach(u=>o.add(u)),o}function rt(){return{debug(e,t){return Promise.resolve()},info(e,t){return Promise.resolve()},error(e,t){return Promise.resolve()}}}var Ps=2*60*1e3;function qs(e,t="up"){const r=Date.now();function o(){return t==="up"||Date.now()-r>Ps}function u(){return t==="timed out"&&Date.now()-r<=Ps}return{...e,status:t,lastUpdate:r,isUp:o,isTimedOut:u}}var ei=class extends Error{constructor(t,r){super(t);Et(this,"name","AlgoliaError");r&&(this.name=r)}},ti=class extends ei{constructor(t,r,o){super(t,o);Et(this,"stackTrace");this.stackTrace=r}},Q1=class extends ti{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support.",e,"RetryError")}},Nr=class extends ti{constructor(t,r,o,u="ApiError"){super(t,o,u);Et(this,"status");this.status=r}},J1=class extends ei{constructor(t,r){super(t,"DeserializationError");Et(this,"response");this.response=r}},X1=class extends Nr{constructor(t,r,o,u){super(t,r,u,"DetailedApiError");Et(this,"error");this.error=o}};function ri(e){const t=e;for(let r=e.length-1;r>0;r--){const o=Math.floor(Math.random()*(r+1)),u=e[r];t[r]=e[o],t[o]=u}return t}function eD(e,t,r){const o=tD(r);let u=`${e.protocol}://${e.url}${e.port?`:${e.port}`:""}/${t.charAt(0)==="/"?t.substring(1):t}`;return o.length&&(u+=`?${o}`),u}function tD(e){return Object.keys(e).filter(t=>e[t]!==void 0).sort().map(t=>`${t}=${encodeURIComponent(Object.prototype.toString.call(e[t])==="[object Array]"?e[t].join(","):e[t]).replace(/\+/g,"%20")}`).join("&")}function rD(e,t){if(e.method==="GET"||e.data===void 0&&t.data===void 0)return;const r=Array.isArray(e.data)?e.data:{...e.data,...t.data};return JSON.stringify(r)}function aD(e,t,r){const o={Accept:"application/json",...e,...t,...r},u={};
1return Object.keys(o).forEach(f=>{const l=o[f];u[f.toLowerCase()]=l}),u}function nD(e){try{return JSON.parse(e.content)}catch(t){throw new J1(t.message,e)}}function sD({content:e,status:t},r){try{const o=JSON.parse(e);return"error"in o?new X1(o.message,t,o.error,r):new Nr(o.message,t,r)}catch{}return new Nr(e,t,r)}function oD({isTimedOut:e,status:t}){return!e&&~~t===0}function iD({isTimedOut:e,status:t}){return e||oD({isTimedOut:e,status:t})||~~(t/100)!==2&&~~(t/100)!==4}function uD({status:e}){return~~(e/100)===2}function lD(e){return e.map(t=>ai(t))}function ai(e){const t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}function at({hosts:e,hostsCache:t,baseHeaders:r,logger:o,baseQueryParameters:u,algoliaAgent:f,timeouts:l,requester:n,requestsCache:a,responsesCache:s}){async function i(d){const m=await Promise.all(d.map($=>t.get($,()=>Promise.resolve(qs($))))),v=m.filter($=>$.isUp()),y=m.filter($=>$.isTimedOut()),p=[...v,...y];return{hosts:p.length>0?p:d,getTimeout($,q){return(y.length===0&&$===0?1:y.length+3+$)*q}}}async function c(d,m,v=!0){const y=[],p=rD(d,m),P=aD(r,d.headers,m.headers),$=d.method==="GET"?{...d.data,...m.data}:{},q={...u,...d.queryParameters,...$};if(f.value&&(q["x-algolia-agent"]=f.value),m&&m.queryParameters)for(const H of Object.keys(m.queryParameters))!m.queryParameters[H]||Object.prototype.toString.call(m.queryParameters[H])==="[object Object]"?q[H]=m.queryParameters[H]:q[H]=m.queryParameters[H].toString();let C=0;const U=async(H,ie)=>{const Q=H.pop();if(Q===void 0)throw new Q1(lD(y));const A={...l,...m.timeouts},F={data:p,headers:P,method:d.method,url:eD(Q,d.path,q),connectTimeout:ie(C,A.connect),responseTimeout:ie(C,v?A.read:A.write)},J=te=>{const ue={request:F,response:te,host:Q,triesLeft:H.length};return y.push(ue),ue},M=await n.send(F);if(iD(M)){const te=J(M);return M.isTimedOut&&C++,o.info("Retryable failure",ai(te)),await t.set(Q,qs(Q,M.isTimedOut?"timed out":"down")),U(H,ie)}if(uD(M))return nD(M);throw J(M),sD(M,y)},N=e.filter(H=>H.accept==="readWrite"||(v?H.accept==="read":H.accept==="write")),j=await i(N);return U([...j.hosts].reverse(),j.getTimeout)}function h(d,m={}){const v=d.useReadTransporter||d.method==="GET";if(!v)return c(d,m,v);const y=()=>c(d,m);if((m.cacheable||d.cacheable)!==!0)return y();const P={request:d,requestOptions:m,transporter:{queryParameters:u,headers:r}};return s.get(P,()=>a.get(P,()=>a.set(P,y()).then($=>Promise.all([a.delete(P),$]),$=>Promise.all([a.delete(P),Promise.reject($)])).then(([$,q])=>q)),{miss:$=>s.set(P,$)})}return{hostsCache:t,requester:n,timeouts:l,logger:o,algoliaAgent:f,baseHeaders:r,baseQueryParameters:u,hosts:e,request:h,requestsCache:a,responsesCache:s}}var Ga="5.20.4",bs=["de","us"];function cD(e){return[{url:e?"analytics.{region}.algolia.com".replace("{region}",e):"analytics.algolia.com",accept:"readWrite",protocol:"https"}]}function dD({appId:e,apiKey:t,authMode:r,algoliaAgents:o,region:u,...f}){const l=et(e,t,r),n=at({hosts:cD(u),...f,algoliaAgent:tt({algoliaAgents:o,client:"Abtesting",version:Ga}),baseHeaders:{"content-type":"text/plain",...l.headers(),...f.baseHeaders},baseQueryParameters:{...l.queryParameters(),...f.baseQueryParameters}});return{transporter:n,appId:e,apiKey:t,clearCache(){return Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then(()=>{})},get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(a,s){n.algoliaAgent.add({segment:a,version:s})},setClientApiKey({apiKey:a}){!r||r==="WithinHeaders"?n.baseHeaders["x-algolia-api-key"]=a:n.baseQueryParameters["x-algolia-api-key"]=a},addABTests(a,s){if(!a)throw new Error("Parameter `addABTestsRequest` is required when calling `addABTests`.");if(!a.name)throw new Error("Parameter `addABTestsRequest.name` is required when calling `addABTests`.");if(!a.variants)throw new Error("Parameter `addABTestsRequest.variants` is required when calling `addABTests`.");if(!a.endAt)throw new Error("Parameter `addABTestsRequest.endAt` is required when calling `addABTests`.");const d={method:"POST",path:"/2/abtests",queryParameters:{},headers:{},data:a};return n.request(d,s)},customDelete({path:a,parameters:s},i){if(!a)throw new Error("Parameter `path` is required when calling `customDelete`.");const m={method:"DELETE",path:"/{path}".replace("{path}",a),queryParameters:s||{},headers:{}};
1return n.request(m,i)},customGet({path:a,parameters:s},i){if(!a)throw new Error("Parameter `path` is required when calling `customGet`.");const m={method:"GET",path:"/{path}".replace("{path}",a),queryParameters:s||{},headers:{}};return n.request(m,i)},customPost({path:a,parameters:s,body:i},c){if(!a)throw new Error("Parameter `path` is required when calling `customPost`.");const v={method:"POST",path:"/{path}".replace("{path}",a),queryParameters:s||{},headers:{},data:i||{}};return n.request(v,c)},customPut({path:a,parameters:s,body:i},c){if(!a)throw new Error("Parameter `path` is required when calling `customPut`.");const v={method:"PUT",path:"/{path}".replace("{path}",a),queryParameters:s||{},headers:{},data:i||{}};return n.request(v,c)},deleteABTest({id:a},s){if(!a)throw new Error("Parameter `id` is required when calling `deleteABTest`.");const d={method:"DELETE",path:"/2/abtests/{id}".replace("{id}",encodeURIComponent(a)),queryParameters:{},headers:{}};return n.request(d,s)},estimateABTest(a,s){if(!a)throw new Error("Parameter `estimateABTestRequest` is required when calling `estimateABTest`.");if(!a.configuration)throw new Error("Parameter `estimateABTestRequest.configuration` is required when calling `estimateABTest`.");if(!a.variants)throw new Error("Parameter `estimateABTestRequest.variants` is required when calling `estimateABTest`.");const d={method:"POST",path:"/2/abtests/estimate",queryParameters:{},headers:{},data:a};return n.request(d,s)},getABTest({id:a},s){if(!a)throw new Error("Parameter `id` is required when calling `getABTest`.");const d={method:"GET",path:"/2/abtests/{id}".replace("{id}",encodeURIComponent(a)),queryParameters:{},headers:{}};return n.request(d,s)},listABTests({offset:a,limit:s,indexPrefix:i,indexSuffix:c}={},h=void 0){const d="/2/abtests",m={},v={};a!==void 0&&(v.offset=a.toString()),s!==void 0&&(v.limit=s.toString()),i!==void 0&&(v.indexPrefix=i.toString()),c!==void 0&&(v.indexSuffix=c.toString());const y={method:"GET",path:d,queryParameters:v,headers:m};return n.request(y,h)},scheduleABTest(a,s){if(!a)throw new Error("Parameter `scheduleABTestsRequest` is required when calling `scheduleABTest`.");if(!a.name)throw new Error("Parameter `scheduleABTestsRequest.name` is required when calling `scheduleABTest`.");if(!a.variants)throw new Error("Parameter `scheduleABTestsRequest.variants` is required when calling `scheduleABTest`.");if(!a.scheduledAt)throw new Error("Parameter `scheduleABTestsRequest.scheduledAt` is required when calling `scheduleABTest`.");if(!a.endAt)throw new Error("Parameter `scheduleABTestsRequest.endAt` is required when calling `scheduleABTest`.");const d={method:"POST",path:"/2/abtests/schedule",queryParameters:{},headers:{},data:a};return n.request(d,s)},stopABTest({id:a},s){if(!a)throw new Error("Parameter `id` is required when calling `stopABTest`.");const d={method:"POST",path:"/2/abtests/{id}/stop".replace("{id}",encodeURIComponent(a)),queryParameters:{},headers:{}};return n.request(d,s)}}}function ni(e,t,r,o){if(!e||typeof e!="string")throw new Error("`appId` is missing.");if(!t||typeof t!="string")throw new Error("`apiKey` is missing.");if(r&&(typeof r!="string"||!bs.includes(r)))throw new Error(`\`region\` must be one of the following: ${bs.join(", ")}`);return dD({appId:e,apiKey:t,region:r,timeouts:{connect:1e3,read:2e3,write:3e4},logger:rt(),requester:Je(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:ee(),requestsCache:ee({serializable:!1}),hostsCache:$e({caches:[Xe({key:`${Ga}-${e}`}),ee()]}),...o})}const hD=Object.freeze(Object.defineProperty({__proto__:null,abtestingClient:ni,apiClientVersion:Ga},Symbol.toStringTag,{value:"Module"}));var Ba="5.20.4",Ds=["de","us"];function fD(e){return[{url:e?"analytics.{region}.algolia.com".replace("{region}",e):"analytics.algolia.com",accept:"readWrite",protocol:"https"}]}function mD({appId:e,apiKey:t,authMode:r,algoliaAgents:o,region:u,...f}){const l=et(e,t,r),n=at({hosts:fD(u),...f,algoliaAgent:tt({algoliaAgents:o,client:"Analytics",version:Ba}),baseHeaders:{"content-type":"text/plain",...l.headers(),...f.baseHeaders},baseQueryParameters:{...l.queryParameters(),...f.baseQueryParameters}});return{transporter:n,appId:e,apiKey:t,clearCache(){return Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then(()=>{})},get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(a,s){n.algoliaAgent.add({segment:a,version:s})},setClientApiKey({apiKey:a}){!r||r==="WithinHeaders"?n.baseHeaders["x-algolia-api-key"]=a:n.baseQueryParameters["x-algolia-api-key"]=a},customDelete({path:a,parameters:s},i){if(!a)throw new Error("Parameter `path` is required when calling `customDelete`.");const m={method:"DELETE",path:"/{path}".replace("{path}",a),queryParameters:s||{},headers:{}};
1return n.request(m,i)},customGet({path:a,parameters:s},i){if(!a)throw new Error("Parameter `path` is required when calling `customGet`.");const m={method:"GET",path:"/{path}".replace("{path}",a),queryParameters:s||{},headers:{}};return n.request(m,i)},customPost({path:a,parameters:s,body:i},c){if(!a)throw new Error("Parameter `path` is required when calling `customPost`.");const v={method:"POST",path:"/{path}".replace("{path}",a),queryParameters:s||{},headers:{},data:i||{}};return n.request(v,c)},customPut({path:a,parameters:s,body:i},c){if(!a)throw new Error("Parameter `path` is required when calling `customPut`.");const v={method:"PUT",path:"/{path}".replace("{path}",a),queryParameters:s||{},headers:{},data:i||{}};return n.request(v,c)},getAddToCartRate({index:a,startDate:s,endDate:i,tags:c},h){if(!a)throw new Error("Parameter `index` is required when calling `getAddToCartRate`.");const d="/2/conversions/addToCartRate",m={},v={};a!==void 0&&(v.index=a.toString()),s!==void 0&&(v.startDate=s.toString()),i!==void 0&&(v.endDate=i.toString()),c!==void 0&&(v.tags=c.toString());const y={method:"GET",path:d,queryParameters:v,headers:m};return n.request(y,h)},getAverageClickPosition({index:a,startDate:s,endDate:i,tags:c},h){if(!a)throw new Error("Parameter `index` is required when calling `getAverageClickPosition`.");const d="/2/clicks/averageClickPosition",m={},v={};a!==void 0&&(v.index=a.toString()),s!==void 0&&(v.startDate=s.toString()),i!==void 0&&(v.endDate=i.toString()),c!==void 0&&(v.tags=c.toString());const y={method:"GET",path:d,queryParameters:v,headers:m};return n.request(y,h)},getClickPositions({index:a,startDate:s,endDate:i,tags:c},h){if(!a)throw new Error("Parameter `index` is required when calling `getClickPositions`.");const d="/2/clicks/positions",m={},v={};a!==void 0&&(v.index=a.toString()),s!==void 0&&(v.startDate=s.toString()),i!==void 0&&(v.endDate=i.toString()),c!==void 0&&(v.tags=c.toString());const y={method:"GET",path:d,queryParameters:v,headers:m};return n.request(y,h)},getClickThroughRate({index:a,startDate:s,endDate:i,tags:c},h){if(!a)throw new Error("Parameter `index` is required when calling `getClickThroughRate`.");const d="/2/clicks/clickThroughRate",m={},v={};a!==void 0&&(v.index=a.toString()),s!==void 0&&(v.startDate=s.toString()),i!==void 0&&(v.endDate=i.toString()),c!==void 0&&(v.tags=c.toString());const y={method:"GET",path:d,queryParameters:v,headers:m};return n.request(y,h)},getConversionRate({index:a,startDate:s,endDate:i,tags:c},h){if(!a)throw new Error("Parameter `index` is required when calling `getConversionRate`.");const d="/2/conversions/conversionRate",m={},v={};a!==void 0&&(v.index=a.toString()),s!==void 0&&(v.startDate=s.toString()),i!==void 0&&(v.endDate=i.toString()),c!==void 0&&(v.tags=c.toString());const y={method:"GET",path:d,queryParameters:v,headers:m};return n.request(y,h)},getNoClickRate({index:a,startDate:s,endDate:i,tags:c},h){if(!a)throw new Error("Parameter `index` is required when calling `getNoClickRate`.");const d="/2/searches/noClickRate",m={},v={};a!==void 0&&(v.index=a.toString()),s!==void 0&&(v.startDate=s.toString()),i!==void 0&&(v.endDate=i.toString()),c!==void 0&&(v.tags=c.toString());const y={method:"GET",path:d,queryParameters:v,headers:m};return n.request(y,h)},getNoResultsRate({index:a,startDate:s,endDate:i,tags:c},h){if(!a)throw new Error("Parameter `index` is required when calling `getNoResultsRate`.");const d="/2/searches/noResultRate",m={},v={};a!==void 0&&(v.index=a.toString()),s!==void 0&&(v.startDate=s.toString()),i!==void 0&&(v.endDate=i.toString()),c!==void 0&&(v.tags=c.toString());const y={method:"GET",path:d,queryParameters:v,headers:m};return n.request(y,h)},getPurchaseRate({index:a,startDate:s,endDate:i,tags:c},h){if(!a)throw new Error("Parameter `index` is required when calling `getPurchaseRate`.");const d="/2/conversions/purchaseRate",m={},v={};a!==void 0&&(v.index=a.toString()),s!==void 0&&(v.startDate=s.toString()),i!==void 0&&(v.endDate=i.toString()),c!==void 0&&(v.tags=c.toString());const y={method:"GET",path:d,queryParameters:v,headers:m};return n.request(y,h)},getRevenue({index:a,startDate:s,endDate:i,tags:c},h){if(!a)throw new Error("Parameter `index` is required when calling `getRevenue`.");const d="/2/conversions/revenue",m={},v={};a!==void 0&&(v.index=a.toString()),s!==void 0&&(v.startDate=s.toString()),i!==void 0&&(v.endDate=i.toString()),c!==void 0&&(v.tags=c.toString());const y={method:"GET",path:d,queryParameters:v,headers:m};return n.request(y,h)},getSearchesCount({index:a,startDate:s,endDate:i,tags:c},h){if(!a)throw new Error("Parameter `index` is required when calling `getSearchesCount`.");const d="/2/searches/count",m={},v={};a!==void 0&&(v.index=a.toString()),s!==void 0&&(v.startDate=s.toString()),i!==void 0&&(v.endDate=i.toString()),c!==void 0&&(v.tags=c.toString());const y={method:"GET",path:d,queryParameters:v,headers:m};return n.request(y,h)},getSearchesNoClicks({index:a,startDate:s,endDate:i,limit:c,offset:h,tags:d},m){if(!a)throw new Error("Parameter `index` is required when calling `getSearchesNoClicks`.");const v="/2/searches/noClicks",y={},p={};a!==void 0&&(p.index=a.toString()),s!==void 0&&(p.startDate=s.toString()),i!==void 0&&(p.endDate=i.toString()),c!==void 0&&(p.limit=c.toString()),h!==void 0&&(p.offset=h.toString()),d!==void 0&&(p.tags=d.toString());const P={method:"GET",path:v,queryParameters:p,headers:y};return n.request(P,m)},getSearchesNoResults({index:a,startDate:s,endDate:i,limit:c,offset:h,tags:d},m){if(!a)throw new Error("Parameter `index` is required when calling `getSearchesNoResults`.");const v="/2/searches/noResults",y={},p={};a!==void 0&&(p.index=a.toString()),s!==void 0&&(p.startDate=s.toString()),i!==void 0&&(p.endDate=i.toString()),c!==void 0&&(p.limit=c.toString()),h!==void 0&&(p.offset=h.toString()),d!==void 0&&(p.tags=d.toString());const P={method:"GET",path:v,queryParameters:p,headers:y};return n.request(P,m)},getStatus({index:a},s){if(!a)throw new Error("Parameter `index` is required when calling `getStatus`.");const i="/2/status",c={},h={};a!==void 0&&(h.index=a.toString());const d={method:"GET",path:i,queryParameters:h,headers:c};return n.request(d,s)},getTopCountries({index:a,startDate:s,endDate:i,limit:c,offset:h,tags:d},m){if(!a)throw new Error("Parameter `index` is required when calling `getTopCountries`.");const v="/2/countries",y={},p={};a!==void 0&&(p.index=a.toString()),s!==void 0&&(p.startDate=s.toString()),i!==void 0&&(p.endDate=i.toString()),c!==void 0&&(p.limit=c.toString()),h!==void 0&&(p.offset=h.toString()),d!==void 0&&(p.tags=d.toString());const P={method:"GET",path:v,queryParameters:p,headers:y};return n.request(P,m)},getTopFilterAttributes({index:a,search:s,startDate:i,endDate:c,limit:h,offset:d,tags:m},v){if(!a)throw new Error("Parameter `index` is required when calling `getTopFilterAttributes`.");const y="/2/filters",p={},P={};a!==void 0&&(P.index=a.toString()),s!==void 0&&(P.search=s.toString()),i!==void 0&&(P.startDate=i.toString()),c!==void 0&&(P.endDate=c.toString()),h!==void 0&&(P.limit=h.toString()),d!==void 0&&(P.offset=d.toString()),m!==void 0&&(P.tags=m.toString());const $={method:"GET",path:y,queryParameters:P,headers:p};return n.request($,v)},getTopFilterForAttribute({attribute:a,index:s,search:i,startDate:c,endDate:h,limit:d,offset:m,tags:v},y){if(!a)throw new Error("Parameter `attribute` is required when calling `getTopFilterForAttribute`.");if(!s)throw new Error("Parameter `index` is required when calling `getTopFilterForAttribute`.");const p="/2/filters/{attribute}".replace("{attribute}",encodeURIComponent(a)),P={},$={};s!==void 0&&($.index=s.toString()),i!==void 0&&($.search=i.toString()),c!==void 0&&($.startDate=c.toString()),h!==void 0&&($.endDate=h.toString()),d!==void 0&&($.limit=d.toString()),m!==void 0&&($.offset=m.toString()),v!==void 0&&($.tags=v.toString());const q={method:"GET",path:p,queryParameters:$,headers:P};return n.request(q,y)},getTopFiltersNoResults({index:a,search:s,startDate:i,endDate:c,limit:h,offset:d,tags:m},v){if(!a)throw new Error("Parameter `index` is required when calling `getTopFiltersNoResults`.");const y="/2/filters/noResults",p={},P={};a!==void 0&&(P.index=a.toString()),s!==void 0&&(P.search=s.toString()),i!==void 0&&(P.startDate=i.toString()),c!==void 0&&(P.endDate=c.toString()),h!==void 0&&(P.limit=h.toString()),d!==void 0&&(P.offset=d.toString()),m!==void 0&&(P.tags=m.toString());const $={method:"GET",path:y,queryParameters:P,headers:p};return n.request($,v)},getTopHits({index:a,search:s,clickAnalytics:i,revenueAnalytics:c,startDate:h,endDate:d,limit:m,offset:v,tags:y},p){if(!a)throw new Error("Parameter `index` is required when calling `getTopHits`.");const P="/2/hits",$={},q={};a!==void 0&&(q.index=a.toString()),s!==void 0&&(q.search=s.toString()),i!==void 0&&(q.clickAnalytics=i.toString()),c!==void 0&&(q.revenueAnalytics=c.toString()),h!==void 0&&(q.startDate=h.toString()),d!==void 0&&(q.endDate=d.toString()),m!==void 0&&(q.limit=m.toString()),v!==void 0&&(q.offset=v.toString()),y!==void 0&&(q.tags=y.toString());const C={method:"GET",path:P,queryParameters:q,headers:$};return n.request(C,p)},getTopSearches({index:a,clickAnalytics:s,revenueAnalytics:i,startDate:c,endDate:h,orderBy:d,direction:m,limit:v,offset:y,tags:p},P){if(!a)throw new Error("Parameter `index` is required when calling `getTopSearches`.");const $="/2/searches",q={},C={};a!==void 0&&(C.index=a.toString()),s!==void 0&&(C.clickAnalytics=s.toString()),i!==void 0&&(C.revenueAnalytics=i.toString()),c!==void 0&&(C.startDate=c.toString()),h!==void 0&&(C.endDate=h.toString()),d!==void 0&&(C.orderBy=d.toString()),m!==void 0&&(C.direction=m.toString()),v!==void 0&&(C.limit=v.toString()),y!==void 0&&(C.offset=y.toString()),p!==void 0&&(C.tags=p.toString());const U={method:"GET",path:$,queryParameters:C,headers:q};return n.request(U,P)},getUsersCount({index:a,startDate:s,endDate:i,tags:c},h){if(!a)throw new Error("Parameter `index` is required when calling `getUsersCount`.");const d="/2/users/count",m={},v={};a!==void 0&&(v.index=a.toString()),s!==void 0&&(v.startDate=s.toString()),i!==void 0&&(v.endDate=i.toString()),c!==void 0&&(v.tags=c.toString());const y={method:"GET",path:d,queryParameters:v,headers:m};return n.request(y,h)}}}function si(e,t,r,o){if(!e||typeof e!="string")throw new Error("`appId` is missing.");if(!t||typeof t!="string")throw new Error("`apiKey` is missing.");if(r&&(typeof r!="string"||!Ds.includes(r)))throw new Error(`\`region\` must be one of the following: ${Ds.join(", ")}`);return mD({appId:e,apiKey:t,region:r,timeouts:{connect:1e3,read:2e3,write:3e4},logger:rt(),requester:Je(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:ee(),requestsCache:ee({serializable:!1}),hostsCache:$e({caches:[Xe({key:`${Ba}-${e}`}),ee()]}),...o})}const vD=Object.freeze(Object.defineProperty({__proto__:null,analyticsClient:si,apiClientVersion:Ba},Symbol.toStringTag,{value:"Module"}));var za="5.20.4",Es=["de","us"];function gD(e){return[{url:e?"insights.{region}.algolia.io".replace("{region}",e):"insights.algolia.io",accept:"readWrite",protocol:"https"}]}function pD({appId:e,apiKey:t,authMode:r,algoliaAgents:o,region:u,...f}){const l=et(e,t,r),n=at({hosts:gD(u),...f,algoliaAgent:tt({algoliaAgents:o,client:"Insights",version:za}),baseHeaders:{"content-type":"text/plain",...l.headers(),...f.baseHeaders},baseQueryParameters:{...l.queryParameters(),...f.baseQueryParameters}});return{transporter:n,appId:e,apiKey:t,clearCache(){return Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then(()=>{})},get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(a,s){n.algoliaAgent.add({segment:a,version:s})},setClientApiKey({apiKey:a}){!r||r==="WithinHeaders"?n.baseHeaders["x-algolia-api-key"]=a:n.baseQueryParameters["x-algolia-api-key"]=a},customDelete({path:a,parameters:s},i){if(!a)throw new Error("Parameter `path` is required when calling `customDelete`.");const m={method:"DELETE",path:"/{path}".replace("{path}",a),queryParameters:s||{},headers:{}};
1return n.request(m,i)},customGet({path:a,parameters:s},i){if(!a)throw new Error("Parameter `path` is required when calling `customGet`.");const m={method:"GET",path:"/{path}".replace("{path}",a),queryParameters:s||{},headers:{}};return n.request(m,i)},customPost({path:a,parameters:s,body:i},c){if(!a)throw new Error("Parameter `path` is required when calling `customPost`.");const v={method:"POST",path:"/{path}".replace("{path}",a),queryParameters:s||{},headers:{},data:i||{}};return n.request(v,c)},customPut({path:a,parameters:s,body:i},c){if(!a)throw new Error("Parameter `path` is required when calling `customPut`.");const v={method:"PUT",path:"/{path}".replace("{path}",a),queryParameters:s||{},headers:{},data:i||{}};return n.request(v,c)},deleteUserToken({userToken:a},s){if(!a)throw new Error("Parameter `userToken` is required when calling `deleteUserToken`.");const d={method:"DELETE",path:"/1/usertokens/{userToken}".replace("{userToken}",encodeURIComponent(a)),queryParameters:{},headers:{}};return n.request(d,s)},pushEvents(a,s){if(!a)throw new Error("Parameter `insightsEvents` is required when calling `pushEvents`.");if(!a.events)throw new Error("Parameter `insightsEvents.events` is required when calling `pushEvents`.");const d={method:"POST",path:"/1/events",queryParameters:{},headers:{},data:a};return n.request(d,s)}}}function oi(e,t,r,o){if(!e||typeof e!="string")throw new Error("`appId` is missing.");if(!t||typeof t!="string")throw new Error("`apiKey` is missing.");if(r&&(typeof r!="string"||!Es.includes(r)))throw new Error(`\`region\` must be one of the following: ${Es.join(", ")}`);return pD({appId:e,apiKey:t,region:r,timeouts:{connect:1e3,read:2e3,write:3e4},logger:rt(),requester:Je(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:ee(),requestsCache:ee({serializable:!1}),hostsCache:$e({caches:[Xe({key:`${za}-${e}`}),ee()]}),...o})}const yD=Object.freeze(Object.defineProperty({__proto__:null,apiClientVersion:za,insightsClient:oi},Symbol.toStringTag,{value:"Module"}));var Va="5.20.4",Ts=["eu","us"];function wD(e){return[{url:"personalization.{region}.algolia.com".replace("{region}",e),accept:"readWrite",protocol:"https"}]}function PD({appId:e,apiKey:t,authMode:r,algoliaAgents:o,region:u,...f}){const l=et(e,t,r),n=at({hosts:wD(u),...f,algoliaAgent:tt({algoliaAgents:o,client:"Personalization",version:Va}),baseHeaders:{"content-type":"text/plain",...l.headers(),...f.baseHeaders},baseQueryParameters:{...l.queryParameters(),...f.baseQueryParameters}});return{transporter:n,appId:e,apiKey:t,clearCache(){return Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then(()=>{})},get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(a,s){n.algoliaAgent.add({segment:a,version:s})},setClientApiKey({apiKey:a}){!r||r==="WithinHeaders"?n.baseHeaders["x-algolia-api-key"]=a:n.baseQueryParameters["x-algolia-api-key"]=a},customDelete({path:a,parameters:s},i){if(!a)throw new Error("Parameter `path` is required when calling `customDelete`.");const m={method:"DELETE",path:"/{path}".replace("{path}",a),queryParameters:s||{},headers:{}};return n.request(m,i)},customGet({path:a,parameters:s},i){if(!a)throw new Error("Parameter `path` is required when calling `customGet`.");const m={method:"GET",path:"/{path}".replace("{path}",a),queryParameters:s||{},headers:{}};return n.request(m,i)},customPost({path:a,parameters:s,body:i},c){if(!a)throw new Error("Parameter `path` is required when calling `customPost`.");const v={method:"POST",path:"/{path}".replace("{path}",a),queryParameters:s||{},headers:{},data:i||{}};return n.request(v,c)},customPut({path:a,parameters:s,body:i},c){if(!a)throw new Error("Parameter `path` is required when calling `customPut`.");const v={method:"PUT",path:"/{path}".replace("{path}",a),queryParameters:s||{},headers:{},data:i||{}};return n.request(v,c)},deleteUserProfile({userToken:a},s){if(!a)throw new Error("Parameter `userToken` is required when calling `deleteUserProfile`.");const d={method:"DELETE",path:"/1/profiles/{userToken}".replace("{userToken}",encodeURIComponent(a)),queryParameters:{},headers:{}};return n.request(d,s)},getPersonalizationStrategy(a){const h={method:"GET",path:"/1/strategies/personalization",queryParameters:{},headers:{}};return n.request(h,a)},getUserTokenProfile({userToken:a},s){if(!a)throw new Error("Parameter `userToken` is required when calling `getUserTokenProfile`.");const d={method:"GET",path:"/1/profiles/personalization/{userToken}".replace("{userToken}",encodeURIComponent(a)),queryParameters:{},headers:{}};return n.request(d,s)},setPersonalizationStrategy(a,s){if(!a)throw new Error("Parameter `personalizationStrategyParams` is required when calling `setPersonalizationStrategy`.");if(!a.eventsScoring)throw new Error("Parameter `personalizationStrategyParams.eventsScoring` is required when calling `setPersonalizationStrategy`.");if(!a.facetsScoring)throw new Error("Parameter `personalizationStrategyParams.facetsScoring` is required when calling `setPersonalizationStrategy`.");if(!a.personalizationImpact)throw new Error("Parameter `personalizationStrategyParams.personalizationImpact` is required when calling `setPersonalizationStrategy`.");const d={method:"POST",path:"/1/strategies/personalization",queryParameters:{},headers:{},data:a};return n.request(d,s)}}}function ii(e,t,r,o){if(!e||typeof e!="string")throw new Error("`appId` is missing.");if(!t||typeof t!="string")throw new Error("`apiKey` is missing.");if(!r||r&&(typeof r!="string"||!Ts.includes(r)))throw new Error(`\`region\` is required and must be one of the following: ${Ts.join(", ")}`);return PD({appId:e,apiKey:t,region:r,timeouts:{connect:1e3,read:2e3,write:3e4},logger:rt(),requester:Je(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:ee(),requestsCache:ee({serializable:!1}),hostsCache:$e({caches:[Xe({key:`${Va}-${e}`}),ee()]}),...o})}const qD=Object.freeze(Object.defineProperty({__proto__:null,apiClientVersion:Va,personalizationClient:ii},Symbol.toStringTag,{value:"Module"}));var Ka="5.20.4",Ss=["eu","us"];function bD(e){return[{url:"query-suggestions.{region}.algolia.com".replace("{region}",e),accept:"readWrite",protocol:"https"}]}function DD({appId:e,apiKey:t,authMode:r,algoliaAgents:o,region:u,...f}){const l=et(e,t,r),n=at({hosts:bD(u),...f,algoliaAgent:tt({algoliaAgents:o,client:"QuerySuggestions",version:Ka}),baseHeaders:{"content-type":"text/plain",...l.headers(),...f.baseHeaders},baseQueryParameters:{...l.queryParameters(),...f.baseQueryParameters}});return{transporter:n,appId:e,apiKey:t,clearCache(){return Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then(()=>{})},get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(a,s){n.algoliaAgent.add({segment:a,version:s})},setClientApiKey({apiKey:a}){!r||r==="WithinHeaders"?n.baseHeaders["x-algolia-api-key"]=a:n.baseQueryParameters["x-algolia-api-key"]=a},createConfig(a,s){if(!a)throw new Error("Parameter `configurationWithIndex` is required when calling `createConfig`.");const d={method:"POST",path:"/1/configs",queryParameters:{},headers:{},data:a};return n.request(d,s)},customDelete({path:a,parameters:s},i){if(!a)throw new Error("Parameter `path` is required when calling `customDelete`.");const m={method:"DELETE",path:"/{path}".replace("{path}",a),queryParameters:s||{},headers:{}};
1return n.request(m,i)},customGet({path:a,parameters:s},i){if(!a)throw new Error("Parameter `path` is required when calling `customGet`.");const m={method:"GET",path:"/{path}".replace("{path}",a),queryParameters:s||{},headers:{}};return n.request(m,i)},customPost({path:a,parameters:s,body:i},c){if(!a)throw new Error("Parameter `path` is required when calling `customPost`.");const v={method:"POST",path:"/{path}".replace("{path}",a),queryParameters:s||{},headers:{},data:i||{}};return n.request(v,c)},customPut({path:a,parameters:s,body:i},c){if(!a)throw new Error("Parameter `path` is required when calling `customPut`.");const v={method:"PUT",path:"/{path}".replace("{path}",a),queryParameters:s||{},headers:{},data:i||{}};return n.request(v,c)},deleteConfig({indexName:a},s){if(!a)throw new Error("Parameter `indexName` is required when calling `deleteConfig`.");const d={method:"DELETE",path:"/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(a)),queryParameters:{},headers:{}};return n.request(d,s)},getAllConfigs(a){const h={method:"GET",path:"/1/configs",queryParameters:{},headers:{}};return n.request(h,a)},getConfig({indexName:a},s){if(!a)throw new Error("Parameter `indexName` is required when calling `getConfig`.");const d={method:"GET",path:"/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(a)),queryParameters:{},headers:{}};return n.request(d,s)},getConfigStatus({indexName:a},s){if(!a)throw new Error("Parameter `indexName` is required when calling `getConfigStatus`.");const d={method:"GET",path:"/1/configs/{indexName}/status".replace("{indexName}",encodeURIComponent(a)),queryParameters:{},headers:{}};return n.request(d,s)},getLogFile({indexName:a},s){if(!a)throw new Error("Parameter `indexName` is required when calling `getLogFile`.");const d={method:"GET",path:"/1/logs/{indexName}".replace("{indexName}",encodeURIComponent(a)),queryParameters:{},headers:{}};return n.request(d,s)},updateConfig({indexName:a,configuration:s},i){if(!a)throw new Error("Parameter `indexName` is required when calling `updateConfig`.");if(!s)throw new Error("Parameter `configuration` is required when calling `updateConfig`.");if(!s.sourceIndices)throw new Error("Parameter `configuration.sourceIndices` is required when calling `updateConfig`.");const m={method:"PUT",path:"/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(a)),queryParameters:{},headers:{},data:s};return n.request(m,i)}}}function ui(e,t,r,o){if(!e||typeof e!="string")throw new Error("`appId` is missing.");if(!t||typeof t!="string")throw new Error("`apiKey` is missing.");if(!r||r&&(typeof r!="string"||!Ss.includes(r)))throw new Error(`\`region\` is required and must be one of the following: ${Ss.join(", ")}`);return DD({appId:e,apiKey:t,region:r,timeouts:{connect:1e3,read:2e3,write:3e4},logger:rt(),requester:Je(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:ee(),requestsCache:ee({serializable:!1}),hostsCache:$e({caches:[Xe({key:`${Ka}-${e}`}),ee()]}),...o})}const ED=Object.freeze(Object.defineProperty({__proto__:null,apiClientVersion:Ka,querySuggestionsClient:ui},Symbol.toStringTag,{value:"Module"}));var dr="5.20.4";function TD(e){return[{url:`${e}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${e}.algolia.net`,accept:"write",protocol:"https"}].concat(ri([{url:`${e}-1.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-2.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-3.algolianet.com`,accept:"readWrite",protocol:"https"}]))}function SD({appId:e,apiKey:t,authMode:r,algoliaAgents:o,...u}){const f=et(e,t,r),l=at({hosts:TD(e),...u,algoliaAgent:tt({algoliaAgents:o,client:"Search",version:dr}),baseHeaders:{"content-type":"text/plain",...f.headers(),...u.baseHeaders},baseQueryParameters:{...f.queryParameters(),...u.baseQueryParameters}});return{transporter:l,appId:e,apiKey:t,clearCache(){return Promise.all([l.requestsCache.clear(),l.responsesCache.clear()]).then(()=>{})},get _ua(){return l.algoliaAgent.value},addAlgoliaAgent(n,a){l.algoliaAgent.add({segment:n,version:a})},setClientApiKey({apiKey:n}){!r||r==="WithinHeaders"?l.baseHeaders["x-algolia-api-key"]=n:l.baseQueryParameters["x-algolia-api-key"]=n},waitForTask({indexName:n,taskID:a,maxRetries:s=50,timeout:i=h=>Math.min(h*200,5e3)},c){let h=0;return ct({func:()=>this.getTask({indexName:n,taskID:a}
1,c),validate:d=>d.status==="published",aggregator:()=>h+=1,error:{validate:()=>h>=s,message:()=>`The maximum number of retries exceeded. (${h}/${s})`},timeout:()=>i(h)})},waitForAppTask({taskID:n,maxRetries:a=50,timeout:s=c=>Math.min(c*200,5e3)},i){let c=0;return ct({func:()=>this.getAppTask({taskID:n},i),validate:h=>h.status==="published",aggregator:()=>c+=1,error:{validate:()=>c>=a,message:()=>`The maximum number of retries exceeded. (${c}/${a})`},timeout:()=>s(c)})},waitForApiKey({operation:n,key:a,apiKey:s,maxRetries:i=50,timeout:c=d=>Math.min(d*200,5e3)},h){let d=0;const m={aggregator:()=>d+=1,error:{validate:()=>d>=i,message:()=>`The maximum number of retries exceeded. (${d}/${i})`},timeout:()=>c(d)};if(n==="update"){if(!s)throw new Error("`apiKey` is required when waiting for an `update` operation.");return ct({...m,func:()=>this.getApiKey({key:a},h),validate:v=>{for(const y of Object.keys(s)){const p=s[y],P=v[y];if(Array.isArray(p)&&Array.isArray(P)){if(p.length!==P.length||p.some(($,q)=>$!==P[q]))return!1}else if(p!==P)return!1}return!0}})}return ct({...m,func:()=>this.getApiKey({key:a},h).catch(v=>{if(v.status!==404)throw v}),validate:v=>n==="add"?v!==void 0:v===void 0})},browseObjects({indexName:n,browseParams:a,...s},i){return ct({func:c=>this.browse({indexName:n,browseParams:{cursor:c?c.cursor:void 0,hitsPerPage:1e3,...a}},i),validate:c=>c.cursor===void 0,...s})},browseRules({indexName:n,searchRulesParams:a,...s},i){const c={hitsPerPage:1e3,...a};return ct({func:h=>this.searchRules({indexName:n,searchRulesParams:{...c,page:h?h.page+1:c.page||0}},i),validate:h=>h.hits.length<c.hitsPerPage,...s})},browseSynonyms({indexName:n,searchSynonymsParams:a,...s},i){const c={page:0,...a,hitsPerPage:1e3};return ct({func:h=>{const d=this.searchSynonyms({indexName:n,searchSynonymsParams:{...c,page:c.page}},i);return c.page+=1,d},validate:h=>h.hits.length<c.hitsPerPage,...s})},async chunkedBatch({indexName:n,objects:a,action:s="addObject",waitForTasks:i,batchSize:c=1e3},h){let d=[];const m=[],v=a.entries();for(const[y,p]of v)d.push({action:s,body:p}),(d.length===c||y===a.length-1)&&(m.push(await this.batch({indexName:n,batchWriteParams:{requests:d}},h)),d=[]);if(i)for(const y of m)await this.waitForTask({indexName:n,taskID:y.taskID});return m},async saveObjects({indexName:n,objects:a,waitForTasks:s,batchSize:i},c){return await this.chunkedBatch({indexName:n,objects:a,action:"addObject",waitForTasks:s,batchSize:i},c)},async deleteObjects({indexName:n,objectIDs:a,waitForTasks:s,batchSize:i},c){return await this.chunkedBatch({indexName:n,objects:a.map(h=>({objectID:h})),action:"deleteObject",waitForTasks:s,batchSize:i},c)},async partialUpdateObjects({indexName:n,objects:a,createIfNotExists:s,waitForTasks:i,batchSize:c},h){return await this.chunkedBatch({indexName:n,objects:a,action:s?"partialUpdateObject":"partialUpdateObjectNoCreate",batchSize:c,waitForTasks:i},h)},async replaceAllObjects({indexName:n,objects:a,batchSize:s,scopes:i},c){const h=Math.floor(Math.random()*1e6)+1e5,d=`${n}_tmp_${h}`;i===void 0&&(i=["settings","rules","synonyms"]);try{let m=await this.operationIndex({indexName:n,operationIndexParams:{operation:"copy",destination:d,scope:i}},c);const v=await this.chunkedBatch({indexName:d,objects:a,waitForTasks:!0,batchSize:s},c);await this.waitForTask({indexName:d,taskID:m.taskID}),m=await this.operationIndex({indexName:n,operationIndexParams:{operation:"copy",destination:d,scope:i}},c),await this.waitForTask({indexName:d,taskID:m.taskID});const y=await this.operationIndex({indexName:d,operationIndexParams:{operation:"move",destination:n}},c);return await this.waitForTask({indexName:d,taskID:y.taskID}),{copyOperationResponse:m,batchResponses:v,moveOperationResponse:y}}catch(m){throw await this.deleteIndex({indexName:d}),m}},async indexExists({indexName:n}
1){try{await this.getSettings({indexName:n})}catch(a){if(a instanceof Nr&&a.status===404)return!1;throw a}return!0},searchForHits(n,a){return this.search(n,a)},searchForFacets(n,a){return this.search(n,a)},addApiKey(n,a){if(!n)throw new Error("Parameter `apiKey` is required when calling `addApiKey`.");if(!n.acl)throw new Error("Parameter `apiKey.acl` is required when calling `addApiKey`.");const h={method:"POST",path:"/1/keys",queryParameters:{},headers:{},data:n};return l.request(h,a)},addOrUpdateObject({indexName:n,objectID:a,body:s},i){if(!n)throw new Error("Parameter `indexName` is required when calling `addOrUpdateObject`.");if(!a)throw new Error("Parameter `objectID` is required when calling `addOrUpdateObject`.");if(!s)throw new Error("Parameter `body` is required when calling `addOrUpdateObject`.");const m={method:"PUT",path:"/1/indexes/{indexName}/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(a)),queryParameters:{},headers:{},data:s};return l.request(m,i)},appendSource(n,a){if(!n)throw new Error("Parameter `source` is required when calling `appendSource`.");if(!n.source)throw new Error("Parameter `source.source` is required when calling `appendSource`.");const h={method:"POST",path:"/1/security/sources/append",queryParameters:{},headers:{},data:n};return l.request(h,a)},assignUserId({xAlgoliaUserID:n,assignUserIdParams:a},s){if(!n)throw new Error("Parameter `xAlgoliaUserID` is required when calling `assignUserId`.");if(!a)throw new Error("Parameter `assignUserIdParams` is required when calling `assignUserId`.");if(!a.cluster)throw new Error("Parameter `assignUserIdParams.cluster` is required when calling `assignUserId`.");const i="/1/clusters/mapping",c={},h={};n!==void 0&&(c["X-Algolia-User-ID"]=n.toString());const d={method:"POST",path:i,queryParameters:h,headers:c,data:a};return l.request(d,s)},batch({indexName:n,batchWriteParams:a},s){if(!n)throw new Error("Parameter `indexName` is required when calling `batch`.");if(!a)throw new Error("Parameter `batchWriteParams` is required when calling `batch`.");if(!a.requests)throw new Error("Parameter `batchWriteParams.requests` is required when calling `batch`.");const d={method:"POST",path:"/1/indexes/{indexName}/batch".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:a};return l.request(d,s)},batchAssignUserIds({xAlgoliaUserID:n,batchAssignUserIdsParams:a},s){if(!n)throw new Error("Parameter `xAlgoliaUserID` is required when calling `batchAssignUserIds`.");if(!a)throw new Error("Parameter `batchAssignUserIdsParams` is required when calling `batchAssignUserIds`.");if(!a.cluster)throw new Error("Parameter `batchAssignUserIdsParams.cluster` is required when calling `batchAssignUserIds`.");if(!a.users)throw new Error("Parameter `batchAssignUserIdsParams.users` is required when calling `batchAssignUserIds`.");const i="/1/clusters/mapping/batch",c={},h={};n!==void 0&&(c["X-Algolia-User-ID"]=n.toString());const d={method:"POST",path:i,queryParameters:h,headers:c,data:a};return l.request(d,s)},batchDictionaryEntries({dictionaryName:n,batchDictionaryEntriesParams:a},s){if(!n)throw new Error("Parameter `dictionaryName` is required when calling `batchDictionaryEntries`.");if(!a)throw new Error("Parameter `batchDictionaryEntriesParams` is required when calling `batchDictionaryEntries`.");if(!a.requests)throw new Error("Parameter `batchDictionaryEntriesParams.requests` is required when calling `batchDictionaryEntries`.");const d={method:"POST",path:"/1/dictionaries/{dictionaryName}/batch".replace("{dictionaryName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:a};return l.request(d,s)},browse({indexName:n,browseParams:a},s){if(!n)throw new Error("Parameter `indexName` is required when calling `browse`.");const d={method:"POST",path:"/1/indexes/{indexName}/browse".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:a||{},useReadTransporter:!0};return l.request(d,s)},clearObjects({indexName:n},a){if(!n)throw new Error("Parameter `indexName` is required when calling `clearObjects`.");const h={method:"POST",path:"/1/indexes/{indexName}/clear".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{}};return l.request(h,a)},clearRules({indexName:n,forwardToReplicas:a},s){if(!n)throw new Error("Parameter `indexName` is required when calling `clearRules`.");const i="/1/indexes/{indexName}/rules/clear".replace("{indexName}",encodeURIComponent(n)),c={},h={};a!==void 0&&(h.forwardToReplicas=a.toString());const d={method:"POST",path:i,queryParameters:h,headers:c};return l.request(d,s)},clearSynonyms({indexName:n,forwardToReplicas:a},s){if(!n)throw new Error("Parameter `indexName` is required when calling `clearSynonyms`.");const i="/1/indexes/{indexName}/synonyms/clear".replace("{indexName}",encodeURIComponent(n)),c={},h={};a!==void 0&&(h.forwardToReplicas=a.toString());const d={method:"POST",path:i,queryParameters:h,headers:c};return l.request(d,s)},customDelete({path:n,parameters:a},s){if(!n)throw new Error("Parameter `path` is required when calling `customDelete`.");const d={method:"DELETE",path:"/{path}".replace("{path}",n),queryParameters:a||{},headers:{}};return l.request(d,s)},customGet({path:n,parameters:a},s){if(!n)throw new Error("Parameter `path` is required when calling `customGet`.");const d={method:"GET",path:"/{path}".replace("{path}",n),queryParameters:a||{},headers:{}};return l.request(d,s)},customPost({path:n,parameters:a,body:s},i){if(!n)throw new Error("Parameter `path` is required when calling `customPost`.");const m={method:"POST",path:"/{path}".replace("{path}",n),queryParameters:a||{},headers:{},data:s||{}};
1return l.request(m,i)},customPut({path:n,parameters:a,body:s},i){if(!n)throw new Error("Parameter `path` is required when calling `customPut`.");const m={method:"PUT",path:"/{path}".replace("{path}",n),queryParameters:a||{},headers:{},data:s||{}};return l.request(m,i)},deleteApiKey({key:n},a){if(!n)throw new Error("Parameter `key` is required when calling `deleteApiKey`.");const h={method:"DELETE",path:"/1/keys/{key}".replace("{key}",encodeURIComponent(n)),queryParameters:{},headers:{}};return l.request(h,a)},deleteBy({indexName:n,deleteByParams:a},s){if(!n)throw new Error("Parameter `indexName` is required when calling `deleteBy`.");if(!a)throw new Error("Parameter `deleteByParams` is required when calling `deleteBy`.");const d={method:"POST",path:"/1/indexes/{indexName}/deleteByQuery".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:a};return l.request(d,s)},deleteIndex({indexName:n},a){if(!n)throw new Error("Parameter `indexName` is required when calling `deleteIndex`.");const h={method:"DELETE",path:"/1/indexes/{indexName}".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{}};return l.request(h,a)},deleteObject({indexName:n,objectID:a},s){if(!n)throw new Error("Parameter `indexName` is required when calling `deleteObject`.");if(!a)throw new Error("Parameter `objectID` is required when calling `deleteObject`.");const d={method:"DELETE",path:"/1/indexes/{indexName}/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(a)),queryParameters:{},headers:{}};return l.request(d,s)},deleteRule({indexName:n,objectID:a,forwardToReplicas:s},i){if(!n)throw new Error("Parameter `indexName` is required when calling `deleteRule`.");if(!a)throw new Error("Parameter `objectID` is required when calling `deleteRule`.");const c="/1/indexes/{indexName}/rules/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(a)),h={},d={};s!==void 0&&(d.forwardToReplicas=s.toString());const m={method:"DELETE",path:c,queryParameters:d,headers:h};return l.request(m,i)},deleteSource({source:n},a){if(!n)throw new Error("Parameter `source` is required when calling `deleteSource`.");const h={method:"DELETE",path:"/1/security/sources/{source}".replace("{source}",encodeURIComponent(n)),queryParameters:{},headers:{}};return l.request(h,a)},deleteSynonym({indexName:n,objectID:a,forwardToReplicas:s},i){if(!n)throw new Error("Parameter `indexName` is required when calling `deleteSynonym`.");if(!a)throw new Error("Parameter `objectID` is required when calling `deleteSynonym`.");const c="/1/indexes/{indexName}/synonyms/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(a)),h={},d={};s!==void 0&&(d.forwardToReplicas=s.toString());const m={method:"DELETE",path:c,queryParameters:d,headers:h};return l.request(m,i)},getApiKey({key:n},a){if(!n)throw new Error("Parameter `key` is required when calling `getApiKey`.");const h={method:"GET",path:"/1/keys/{key}".replace("{key}",encodeURIComponent(n)),queryParameters:{},headers:{}};return l.request(h,a)},getAppTask({taskID:n},a){if(!n)throw new Error("Parameter `taskID` is required when calling `getAppTask`.");const h={method:"GET",path:"/1/task/{taskID}".replace("{taskID}",encodeURIComponent(n)),queryParameters:{},headers:{}};return l.request(h,a)},getDictionaryLanguages(n){const c={method:"GET",path:"/1/dictionaries/*/languages",queryParameters:{},headers:{}};return l.request(c,n)},getDictionarySettings(n){const c={method:"GET",path:"/1/dictionaries/*/settings",queryParameters:{},headers:{}};return l.request(c,n)},getLogs({offset:n,length:a,indexName:s,type:i}={},c=void 0){const h="/1/logs",d={},m={};n!==void 0&&(m.offset=n.toString()),a!==void 0&&(m.length=a.toString()),s!==void 0&&(m.indexName=s.toString()),i!==void 0&&(m.type=i.toString());const v={method:"GET",path:h,queryParameters:m,headers:d};return l.request(v,c)},getObject({indexName:n,objectID:a,attributesToRetrieve:s},i){if(!n)throw new Error("Parameter `indexName` is required when calling `getObject`.");if(!a)throw new Error("Parameter `objectID` is required when calling `getObject`.");const c="/1/indexes/{indexName}/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(a)),h={},d={};s!==void 0&&(d.attributesToRetrieve=s.toString());const m={method:"GET",path:c,queryParameters:d,headers:h};
1return l.request(m,i)},getObjects(n,a){if(!n)throw new Error("Parameter `getObjectsParams` is required when calling `getObjects`.");if(!n.requests)throw new Error("Parameter `getObjectsParams.requests` is required when calling `getObjects`.");const h={method:"POST",path:"/1/indexes/*/objects",queryParameters:{},headers:{},data:n,useReadTransporter:!0,cacheable:!0};return l.request(h,a)},getRule({indexName:n,objectID:a},s){if(!n)throw new Error("Parameter `indexName` is required when calling `getRule`.");if(!a)throw new Error("Parameter `objectID` is required when calling `getRule`.");const d={method:"GET",path:"/1/indexes/{indexName}/rules/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(a)),queryParameters:{},headers:{}};return l.request(d,s)},getSettings({indexName:n},a){if(!n)throw new Error("Parameter `indexName` is required when calling `getSettings`.");const h={method:"GET",path:"/1/indexes/{indexName}/settings".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{}};return l.request(h,a)},getSources(n){const c={method:"GET",path:"/1/security/sources",queryParameters:{},headers:{}};return l.request(c,n)},getSynonym({indexName:n,objectID:a},s){if(!n)throw new Error("Parameter `indexName` is required when calling `getSynonym`.");if(!a)throw new Error("Parameter `objectID` is required when calling `getSynonym`.");const d={method:"GET",path:"/1/indexes/{indexName}/synonyms/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(a)),queryParameters:{},headers:{}};return l.request(d,s)},getTask({indexName:n,taskID:a},s){if(!n)throw new Error("Parameter `indexName` is required when calling `getTask`.");if(!a)throw new Error("Parameter `taskID` is required when calling `getTask`.");const d={method:"GET",path:"/1/indexes/{indexName}/task/{taskID}".replace("{indexName}",encodeURIComponent(n)).replace("{taskID}",encodeURIComponent(a)),queryParameters:{},headers:{}};return l.request(d,s)},getTopUserIds(n){const c={method:"GET",path:"/1/clusters/mapping/top",queryParameters:{},headers:{}};return l.request(c,n)},getUserId({userID:n},a){if(!n)throw new Error("Parameter `userID` is required when calling `getUserId`.");const h={method:"GET",path:"/1/clusters/mapping/{userID}".replace("{userID}",encodeURIComponent(n)),queryParameters:{},headers:{}};return l.request(h,a)},hasPendingMappings({getClusters:n}={},a=void 0){const s="/1/clusters/mapping/pending",i={},c={};n!==void 0&&(c.getClusters=n.toString());const h={method:"GET",path:s,queryParameters:c,headers:i};return l.request(h,a)},listApiKeys(n){const c={method:"GET",path:"/1/keys",queryParameters:{},headers:{}};return l.request(c,n)},listClusters(n){const c={method:"GET",path:"/1/clusters",queryParameters:{},headers:{}};return l.request(c,n)},listIndices({page:n,hitsPerPage:a}={},s=void 0){const i="/1/indexes",c={},h={};n!==void 0&&(h.page=n.toString()),a!==void 0&&(h.hitsPerPage=a.toString());const d={method:"GET",path:i,queryParameters:h,headers:c};return l.request(d,s)},listUserIds({page:n,hitsPerPage:a}={},s=void 0){const i="/1/clusters/mapping",c={},h={};n!==void 0&&(h.page=n.toString()),a!==void 0&&(h.hitsPerPage=a.toString());const d={method:"GET",path:i,queryParameters:h,headers:c};return l.request(d,s)},multipleBatch(n,a){if(!n)throw new Error("Parameter `batchParams` is required when calling `multipleBatch`.");if(!n.requests)throw new Error("Parameter `batchParams.requests` is required when calling `multipleBatch`.");const h={method:"POST",path:"/1/indexes/*/batch",queryParameters:{},headers:{},data:n};return l.request(h,a)},operationIndex({indexName:n,operationIndexParams:a},s){if(!n)throw new Error("Parameter `indexName` is required when calling `operationIndex`.");if(!a)throw new Error("Parameter `operationIndexParams` is required when calling `operationIndex`.");if(!a.operation)throw new Error("Parameter `operationIndexParams.operation` is required when calling `operationIndex`.");if(!a.destination)throw new Error("Parameter `operationIndexParams.destination` is required when calling `operationIndex`.");const d={method:"POST",path:"/1/indexes/{indexName}/operation".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:a};return l.request(d,s)},partialUpdateObject({indexName:n,objectID:a,attributesToUpdate:s,createIfNotExists:i},c){if(!n)throw new Error("Parameter `indexName` is required when calling `partialUpdateObject`.");if(!a)throw new Error("Parameter `objectID` is required when calling `partialUpdateObject`.");if(!s)throw new Error("Parameter `attributesToUpdate` is required when calling `partialUpdateObject`.");const h="/1/indexes/{indexName}/{objectID}/partial".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(a)),d={},m={};i!==void 0&&(m.createIfNotExists=i.toString());const v={method:"POST",path:h,queryParameters:m,headers:d,data:s};return l.request(v,c)},removeUserId({userID:n},a){if(!n)throw new Error("Parameter `userID` is required when calling `removeUserId`.");const h={method:"DELETE",path:"/1/clusters/mapping/{userID}".replace("{userID}",encodeURIComponent(n)),queryParameters:{},headers:{}};return l.request(h,a)},replaceSources({source:n},a){if(!n)throw new Error("Parameter `source` is required when calling `replaceSources`.");const h={method:"PUT",path:"/1/security/sources",queryParameters:{},headers:{},data:n};return l.request(h,a)},restoreApiKey({key:n},a){if(!n)throw new Error("Parameter `key` is required when calling `restoreApiKey`.");const h={method:"POST",path:"/1/keys/{key}/restore".replace("{key}",encodeURIComponent(n)),queryParameters:{},headers:{}};return l.request(h,a)},saveObject({indexName:n,body:a},s){if(!n)throw new Error("Parameter `indexName` is required when calling `saveObject`.");if(!a)throw new Error("Parameter `body` is required when calling `saveObject`.");const d={method:"POST",path:"/1/indexes/{indexName}".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:a};return l.request(d,s)},saveRule({indexName:n,objectID:a,rule:s,forwardToReplicas:i},c){if(!n)throw new Error("Parameter `indexName` is required when calling `saveRule`.");if(!a)throw new Error("Parameter `objectID` is required when calling `saveRule`.");if(!s)throw new Error("Parameter `rule` is required when calling `saveRule`.");if(!s.objectID)throw new Error("Parameter `rule.objectID` is required when calling `saveRule`.");if(!s.consequence)throw new Error("Parameter `rule.consequence` is required when calling `saveRule`.");const h="/1/indexes/{indexName}/rules/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(a)),d={},m={};i!==void 0&&(m.forwardToReplicas=i.toString());const v={method:"PUT",path:h,queryParameters:m,headers:d,data:s};return l.request(v,c)},saveRules({indexName:n,rules:a,forwardToReplicas:s,clearExistingRules:i},c){if(!n)throw new Error("Parameter `indexName` is required when calling `saveRules`.");if(!a)throw new Error("Parameter `rules` is required when calling `saveRules`.");const h="/1/indexes/{indexName}/rules/batch".replace("{indexName}",encodeURIComponent(n)),d={},m={};s!==void 0&&(m.forwardToReplicas=s.toString()),i!==void 0&&(m.clearExistingRules=i.toString());const v={method:"POST",path:h,queryParameters:m,headers:d,data:a};return l.request(v,c)},saveSynonym({indexName:n,objectID:a,synonymHit:s,forwardToReplicas:i},c){if(!n)throw new Error("Parameter `indexName` is required when calling `saveSynonym`.");if(!a)throw new Error("Parameter `objectID` is required when calling `saveSynonym`.");if(!s)throw new Error("Parameter `synonymHit` is required when calling `saveSynonym`.");if(!s.objectID)throw new Error("Parameter `synonymHit.objectID` is required when calling `saveSynonym`.");if(!s.type)throw new Error("Parameter `synonymHit.type` is required when calling `saveSynonym`.");const h="/1/indexes/{indexName}/synonyms/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(a)),d={},m={};i!==void 0&&(m.forwardToReplicas=i.toString());const v={method:"PUT",path:h,queryParameters:m,headers:d,data:s};return l.request(v,c)},saveSynonyms({indexName:n,synonymHit:a,forwardToReplicas:s,replaceExistingSynonyms:i},c){if(!n)throw new Error("Parameter `indexName` is required when calling `saveSynonyms`.");if(!a)throw new Error("Parameter `synonymHit` is required when calling `saveSynonyms`.");const h="/1/indexes/{indexName}/synonyms/batch".replace("{indexName}",encodeURIComponent(n)),d={},m={};s!==void 0&&(m.forwardToReplicas=s.toString()),i!==void 0&&(m.replaceExistingSynonyms=i.toString());const v={method:"POST",path:h,queryParameters:m,headers:d,data:a};return l.request(v,c)},search(n,a){if(n&&Array.isArray(n)&&(n={requests:n.map(({params:m,...v})=>v.type==="facet"?{...v,...m,type:"facet"}:{...v,...m,facet:void 0,maxFacetHits:void 0,facetQuery:void 0})}),!n)throw new Error("Parameter `searchMethodParams` is required when calling `search`.");if(!n.requests)throw new Error("Parameter `searchMethodParams.requests` is required when calling `search`.");const h={method:"POST",path:"/1/indexes/*/queries",queryParameters:{},headers:{},data:n,useReadTransporter:!0,cacheable:!0};return l.request(h,a)},searchDictionaryEntries({dictionaryName:n,searchDictionaryEntriesParams:a},s){if(!n)throw new Error("Parameter `dictionaryName` is required when calling `searchDictionaryEntries`.");if(!a)throw new Error("Parameter `searchDictionaryEntriesParams` is required when calling `searchDictionaryEntries`.");if(!a.query)throw new Error("Parameter `searchDictionaryEntriesParams.query` is required when calling `searchDictionaryEntries`.");const d={method:"POST",path:"/1/dictionaries/{dictionaryName}/search".replace("{dictionaryName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:a,useReadTransporter:!0,cacheable:!0};return l.request(d,s)},searchForFacetValues({indexName:n,facetName:a,searchForFacetValuesRequest:s},i){if(!n)throw new Error("Parameter `indexName` is required when calling `searchForFacetValues`.");if(!a)throw new Error("Parameter `facetName` is required when calling `searchForFacetValues`.");const m={method:"POST",path:"/1/indexes/{indexName}/facets/{facetName}/query".replace("{indexName}",encodeURIComponent(n)).replace("{facetName}",encodeURIComponent(a)),queryParameters:{},headers:{},data:s||{},useReadTransporter:!0,cacheable:!0};
1return l.request(m,i)},searchRules({indexName:n,searchRulesParams:a},s){if(!n)throw new Error("Parameter `indexName` is required when calling `searchRules`.");const d={method:"POST",path:"/1/indexes/{indexName}/rules/search".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:a||{},useReadTransporter:!0,cacheable:!0};return l.request(d,s)},searchSingleIndex({indexName:n,searchParams:a},s){if(!n)throw new Error("Parameter `indexName` is required when calling `searchSingleIndex`.");const d={method:"POST",path:"/1/indexes/{indexName}/query".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:a||{},useReadTransporter:!0,cacheable:!0};return l.request(d,s)},searchSynonyms({indexName:n,searchSynonymsParams:a},s){if(!n)throw new Error("Parameter `indexName` is required when calling `searchSynonyms`.");const d={method:"POST",path:"/1/indexes/{indexName}/synonyms/search".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:a||{},useReadTransporter:!0,cacheable:!0};return l.request(d,s)},searchUserIds(n,a){if(!n)throw new Error("Parameter `searchUserIdsParams` is required when calling `searchUserIds`.");if(!n.query)throw new Error("Parameter `searchUserIdsParams.query` is required when calling `searchUserIds`.");const h={method:"POST",path:"/1/clusters/mapping/search",queryParameters:{},headers:{},data:n,useReadTransporter:!0,cacheable:!0};return l.request(h,a)},setDictionarySettings(n,a){if(!n)throw new Error("Parameter `dictionarySettingsParams` is required when calling `setDictionarySettings`.");if(!n.disableStandardEntries)throw new Error("Parameter `dictionarySettingsParams.disableStandardEntries` is required when calling `setDictionarySettings`.");const h={method:"PUT",path:"/1/dictionaries/*/settings",queryParameters:{},headers:{},data:n};return l.request(h,a)},setSettings({indexName:n,indexSettings:a,forwardToReplicas:s},i){if(!n)throw new Error("Parameter `indexName` is required when calling `setSettings`.");if(!a)throw new Error("Parameter `indexSettings` is required when calling `setSettings`.");const c="/1/indexes/{indexName}/settings".replace("{indexName}",encodeURIComponent(n)),h={},d={};s!==void 0&&(d.forwardToReplicas=s.toString());const m={method:"PUT",path:c,queryParameters:d,headers:h,data:a};return l.request(m,i)},updateApiKey({key:n,apiKey:a},s){if(!n)throw new Error("Parameter `key` is required when calling `updateApiKey`.");if(!a)throw new Error("Parameter `apiKey` is required when calling `updateApiKey`.");if(!a.acl)throw new Error("Parameter `apiKey.acl` is required when calling `updateApiKey`.");const d={method:"PUT",path:"/1/keys/{key}".replace("{key}",encodeURIComponent(n)),queryParameters:{},headers:{},data:a};return l.request(d,s)}}}function li(e,t,r){if(!e||typeof e!="string")throw new Error("`appId` is missing.");if(!t||typeof t!="string")throw new Error("`apiKey` is missing.");return SD({appId:e,apiKey:t,timeouts:{connect:1e3,read:2e3,write:3e4},logger:rt(),requester:Je(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:ee(),requestsCache:ee({serializable:!1}),hostsCache:$e({caches:[Xe({key:`${dr}-${e}`}),ee()]}),...r})}const $D=Object.freeze(Object.defineProperty({__proto__:null,apiClientVersion:dr,searchClient:li},Symbol.toStringTag,{value:"Module"}));var Za="1.20.4",$s=["eu","us"];function kD(e){return[{url:"data.{region}.algolia.com".replace("{region}",e),accept:"readWrite",protocol:"https"}]}function CD(e){return e.type==="onDemand"}function ID(e){return e.type==="schedule"}function _D(e){return e.type==="subscription"}function MD({appId:e,apiKey:t,authMode:r,algoliaAgents:o,region:u,...f}){const l=et(e,t,r),n=at({hosts:kD(u),...f,algoliaAgent:tt({algoliaAgents:o,client:"Ingestion",version:Za}),baseHeaders:{"content-type":"text/plain",...l.headers(),...f.baseHeaders},baseQueryParameters:{...l.queryParameters(),...f.baseQueryParameters}});return{transporter:n,appId:e,apiKey:t,clearCache(){return Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then(()=>{})},get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(a,s){n.algoliaAgent.add({segment:a,version:s})},setClientApiKey({apiKey:a}){!r||r==="WithinHeaders"?n.baseHeaders["x-algolia-api-key"]=a:n.baseQueryParameters["x-algolia-api-key"]=a},createAuthentication(a,s){if(!a)throw new Error("Parameter `authenticationCreate` is required when calling `createAuthentication`.");if(!a.type)throw new Error("Parameter `authenticationCreate.type` is required when calling `createAuthentication`.");if(!a.name)throw new Error("Parameter `authenticationCreate.name` is required when calling `createAuthentication`.");if(!a.input)throw new Error("Parameter `authenticationCreate.input` is required when calling `createAuthentication`.");const d={method:"POST",path:"/1/authentications",queryParameters:{},headers:{},data:a};return n.request(d,s)},createDestination(a,s){if(!a)throw new Error("Parameter `destinationCreate` is required when calling `createDestination`.");if(!a.type)throw new Error("Parameter `destinationCreate.type` is required when calling `createDestination`.");if(!a.name)throw new Error("Parameter `destinationCreate.name` is required when calling `createDestination`.");if(!a.input)throw new Error("Parameter `destinationCreate.input` is required when calling `createDestination`.");const d={method:"POST",path:"/1/destinations",queryParameters:{},headers:{},data:a};return n.request(d,s)},createSource(a,s){if(!a)throw new Error("Parameter `sourceCreate` is required when calling `createSource`.");if(!a.type)throw new Error("Parameter `sourceCreate.type` is required when calling `createSource`.");if(!a.name)throw new Error("Parameter `sourceCreate.name` is required when calling `createSource`.");const d={method:"POST",path:"/1/sources",queryParameters:{},headers:{},data:a};return n.request(d,s)},createTask(a,s){if(!a)throw new Error("Parameter `taskCreate` is required when calling `createTask`.");if(!a.sourceID)throw new Error("Parameter `taskCreate.sourceID` is required when calling `createTask`.");if(!a.destinationID)throw new Error("Parameter `taskCreate.destinationID` is required when calling `createTask`.");if(!a.action)throw new Error("Parameter `taskCreate.action` is required when calling `createTask`.");const d={method:"POST",path:"/2/tasks",queryParameters:{},headers:{},data:a};return n.request(d,s)},createTaskV1(a,s){if(!a)throw new Error("Parameter `taskCreate` is required when calling `createTaskV1`.");if(!a.sourceID)throw new Error("Parameter `taskCreate.sourceID` is required when calling `createTaskV1`.");if(!a.destinationID)throw new Error("Parameter `taskCreate.destinationID` is required when calling `createTaskV1`.");if(!a.trigger)throw new Error("Parameter `taskCreate.trigger` is required when calling `createTaskV1`.");if(!a.action)throw new Error("Parameter `taskCreate.action` is required when calling `createTaskV1`.");const d={method:"POST",path:"/1/tasks",queryParameters:{},headers:{},data:a};return n.request(d,s)},createTransformation(a,s){if(!a)throw new Error("Parameter `transformationCreate` is required when calling `createTransformation`.");if(!a.code)throw new Error("Parameter `transformationCreate.code` is required when calling `createTransformation`.");if(!a.name)throw new Error("Parameter `transformationCreate.name` is required when calling `createTransformation`.");const d={method:"POST",path:"/1/transformations",queryParameters:{},headers:{},data:a};return n.request(d,s)},customDelete({path:a,parameters:s},i){if(!a)throw new Error("Parameter `path` is required when calling `customDelete`.");const m={method:"DELETE",path:"/{path}".replace("{path}",a),queryParameters:s||{},headers:{}};
1return n.request(m,i)},customGet({path:a,parameters:s},i){if(!a)throw new Error("Parameter `path` is required when calling `customGet`.");const m={method:"GET",path:"/{path}".replace("{path}",a),queryParameters:s||{},headers:{}};return n.request(m,i)},customPost({path:a,parameters:s,body:i},c){if(!a)throw new Error("Parameter `path` is required when calling `customPost`.");const v={method:"POST",path:"/{path}".replace("{path}",a),queryParameters:s||{},headers:{},data:i||{}};return n.request(v,c)},customPut({path:a,parameters:s,body:i},c){if(!a)throw new Error("Parameter `path` is required when calling `customPut`.");const v={method:"PUT",path:"/{path}".replace("{path}",a),queryParameters:s||{},headers:{},data:i||{}};return n.request(v,c)},deleteAuthentication({authenticationID:a},s){if(!a)throw new Error("Parameter `authenticationID` is required when calling `deleteAuthentication`.");const d={method:"DELETE",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(a)),queryParameters:{},headers:{}};return n.request(d,s)},deleteDestination({destinationID:a},s){if(!a)throw new Error("Parameter `destinationID` is required when calling `deleteDestination`.");const d={method:"DELETE",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(a)),queryParameters:{},headers:{}};return n.request(d,s)},deleteSource({sourceID:a},s){if(!a)throw new Error("Parameter `sourceID` is required when calling `deleteSource`.");const d={method:"DELETE",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(a)),queryParameters:{},headers:{}};return n.request(d,s)},deleteTask({taskID:a},s){if(!a)throw new Error("Parameter `taskID` is required when calling `deleteTask`.");const d={method:"DELETE",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(a)),queryParameters:{},headers:{}};return n.request(d,s)},deleteTaskV1({taskID:a},s){if(!a)throw new Error("Parameter `taskID` is required when calling `deleteTaskV1`.");const d={method:"DELETE",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(a)),queryParameters:{},headers:{}};return n.request(d,s)},deleteTransformation({transformationID:a},s){if(!a)throw new Error("Parameter `transformationID` is required when calling `deleteTransformation`.");const d={method:"DELETE",path:"/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(a)),queryParameters:{},headers:{}};return n.request(d,s)},disableTask({taskID:a},s){if(!a)throw new Error("Parameter `taskID` is required when calling `disableTask`.");const d={method:"PUT",path:"/2/tasks/{taskID}/disable".replace("{taskID}",encodeURIComponent(a)),queryParameters:{},headers:{}};return n.request(d,s)},disableTaskV1({taskID:a},s){if(!a)throw new Error("Parameter `taskID` is required when calling `disableTaskV1`.");const d={method:"PUT",path:"/1/tasks/{taskID}/disable".replace("{taskID}",encodeURIComponent(a)),queryParameters:{},headers:{}};return n.request(d,s)},enableTask({taskID:a},s){if(!a)throw new Error("Parameter `taskID` is required when calling `enableTask`.");const d={method:"PUT",path:"/2/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(a)),queryParameters:{},headers:{}};return n.request(d,s)},enableTaskV1({taskID:a},s){if(!a)throw new Error("Parameter `taskID` is required when calling `enableTaskV1`.");const d={method:"PUT",path:"/1/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(a)),queryParameters:{},headers:{}};return n.request(d,s)},getAuthentication({authenticationID:a},s){if(!a)throw new Error("Parameter `authenticationID` is required when calling `getAuthentication`.");const d={method:"GET",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(a)),queryParameters:{},headers:{}};return n.request(d,s)},getDestination({destinationID:a},s){if(!a)throw new Error("Parameter `destinationID` is required when calling `getDestination`.");const d={method:"GET",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(a)),queryParameters:{},headers:{}};return n.request(d,s)},getEvent({runID:a,eventID:s},i){if(!a)throw new Error("Parameter `runID` is required when calling `getEvent`.");if(!s)throw new Error("Parameter `eventID` is required when calling `getEvent`.");const m={method:"GET",path:"/1/runs/{runID}/events/{eventID}".replace("{runID}",encodeURIComponent(a)).replace("{eventID}",encodeURIComponent(s)),queryParameters:{},headers:{}};
1return n.request(m,i)},getRun({runID:a},s){if(!a)throw new Error("Parameter `runID` is required when calling `getRun`.");const d={method:"GET",path:"/1/runs/{runID}".replace("{runID}",encodeURIComponent(a)),queryParameters:{},headers:{}};return n.request(d,s)},getSource({sourceID:a},s){if(!a)throw new Error("Parameter `sourceID` is required when calling `getSource`.");const d={method:"GET",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(a)),queryParameters:{},headers:{}};return n.request(d,s)},getTask({taskID:a},s){if(!a)throw new Error("Parameter `taskID` is required when calling `getTask`.");const d={method:"GET",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(a)),queryParameters:{},headers:{}};return n.request(d,s)},getTaskV1({taskID:a},s){if(!a)throw new Error("Parameter `taskID` is required when calling `getTaskV1`.");const d={method:"GET",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(a)),queryParameters:{},headers:{}};return n.request(d,s)},getTransformation({transformationID:a},s){if(!a)throw new Error("Parameter `transformationID` is required when calling `getTransformation`.");const d={method:"GET",path:"/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(a)),queryParameters:{},headers:{}};return n.request(d,s)},listAuthentications({itemsPerPage:a,page:s,type:i,platform:c,sort:h,order:d}={},m=void 0){const v="/1/authentications",y={},p={};a!==void 0&&(p.itemsPerPage=a.toString()),s!==void 0&&(p.page=s.toString()),i!==void 0&&(p.type=i.toString()),c!==void 0&&(p.platform=c.toString()),h!==void 0&&(p.sort=h.toString()),d!==void 0&&(p.order=d.toString());const P={method:"GET",path:v,queryParameters:p,headers:y};return n.request(P,m)},listDestinations({itemsPerPage:a,page:s,type:i,authenticationID:c,transformationID:h,sort:d,order:m}={},v=void 0){const y="/1/destinations",p={},P={};a!==void 0&&(P.itemsPerPage=a.toString()),s!==void 0&&(P.page=s.toString()),i!==void 0&&(P.type=i.toString()),c!==void 0&&(P.authenticationID=c.toString()),h!==void 0&&(P.transformationID=h.toString()),d!==void 0&&(P.sort=d.toString()),m!==void 0&&(P.order=m.toString());const $={method:"GET",path:y,queryParameters:P,headers:p};return n.request($,v)},listEvents({runID:a,itemsPerPage:s,page:i,status:c,type:h,sort:d,order:m,startDate:v,endDate:y},p){if(!a)throw new Error("Parameter `runID` is required when calling `listEvents`.");const P="/1/runs/{runID}/events".replace("{runID}",encodeURIComponent(a)),$={},q={};s!==void 0&&(q.itemsPerPage=s.toString()),i!==void 0&&(q.page=i.toString()),c!==void 0&&(q.status=c.toString()),h!==void 0&&(q.type=h.toString()),d!==void 0&&(q.sort=d.toString()),m!==void 0&&(q.order=m.toString()),v!==void 0&&(q.startDate=v.toString()),y!==void 0&&(q.endDate=y.toString());const C={method:"GET",path:P,queryParameters:q,headers:$};return n.request(C,p)},listRuns({itemsPerPage:a,page:s,status:i,type:c,taskID:h,sort:d,order:m,startDate:v,endDate:y}={},p=void 0){const P="/1/runs",$={},q={};a!==void 0&&(q.itemsPerPage=a.toString()),s!==void 0&&(q.page=s.toString()),i!==void 0&&(q.status=i.toString()),c!==void 0&&(q.type=c.toString()),h!==void 0&&(q.taskID=h.toString()),d!==void 0&&(q.sort=d.toString()),m!==void 0&&(q.order=m.toString()),v!==void 0&&(q.startDate=v.toString()),y!==void 0&&(q.endDate=y.toString());const C={method:"GET",path:P,queryParameters:q,headers:$};return n.request(C,p)},listSources({itemsPerPage:a,page:s,type:i,authenticationID:c,sort:h,order:d}={},m=void 0){const v="/1/sources",y={},p={};a!==void 0&&(p.itemsPerPage=a.toString()),s!==void 0&&(p.page=s.toString()),i!==void 0&&(p.type=i.toString()),c!==void 0&&(p.authenticationID=c.toString()),h!==void 0&&(p.sort=h.toString()),d!==void 0&&(p.order=d.toString());const P={method:"GET",path:v,queryParameters:p,headers:y};return n.request(P,m)},listTasks({itemsPerPage:a,page:s,action:i,enabled:c,sourceID:h,sourceType:d,destinationID:m,triggerType:v,withEmailNotifications:y,sort:p,order:P}={},$=void 0){const q="/2/tasks",C={},U={};a!==void 0&&(U.itemsPerPage=a.toString()),s!==void 0&&(U.page=s.toString()),i!==void 0&&(U.action=i.toString()),c!==void 0&&(U.enabled=c.toString()),h!==void 0&&(U.sourceID=h.toString()),d!==void 0&&(U.sourceType=d.toString()),m!==void 0&&(U.destinationID=m.toString()),v!==void 0&&(U.triggerType=v.toString()),y!==void 0&&(U.withEmailNotifications=y.toString()),p!==void 0&&(U.sort=p.toString()),P!==void 0&&(U.order=P.toString());const N={method:"GET",path:q,queryParameters:U,headers:C};return n.request(N,$)},listTasksV1({itemsPerPage:a,page:s,action:i,enabled:c,sourceID:h,destinationID:d,triggerType:m,sort:v,order:y}={},p=void 0){const P="/1/tasks",$={},q={};a!==void 0&&(q.itemsPerPage=a.toString()),s!==void 0&&(q.page=s.toString()),i!==void 0&&(q.action=i.toString()),c!==void 0&&(q.enabled=c.toString()),h!==void 0&&(q.sourceID=h.toString()),d!==void 0&&(q.destinationID=d.toString()),m!==void 0&&(q.triggerType=m.toString()),v!==void 0&&(q.sort=v.toString()),y!==void 0&&(q.order=y.toString());const C={method:"GET",path:P,queryParameters:q,headers:$};return n.request(C,p)},listTransformations({itemsPerPage:a,page:s,sort:i,order:c}={},h=void 0){const d="/1/transformations",m={},v={};a!==void 0&&(v.itemsPerPage=a.toString()),s!==void 0&&(v.page=s.toString()),i!==void 0&&(v.sort=i.toString()),c!==void 0&&(v.order=c.toString());const y={method:"GET",path:d,queryParameters:v,headers:m};return n.request(y,h)},pushTask({taskID:a,pushTaskPayload:s,watch:i},c){if(!a)throw new Error("Parameter `taskID` is required when calling `pushTask`.");if(!s)throw new Error("Parameter `pushTaskPayload` is required when calling `pushTask`.");if(!s.action)throw new Error("Parameter `pushTaskPayload.action` is required when calling `pushTask`.");if(!s.records)throw new Error("Parameter `pushTaskPayload.records` is required when calling `pushTask`.");const h="/2/tasks/{taskID}/push".replace("{taskID}",encodeURIComponent(a)),d={},m={};i!==void 0&&(m.watch=i.toString());const v={method:"POST",path:h,queryParameters:m,headers:d,data:s};return c={timeouts:{connect:18e4,read:18e4,write:18e4,...c==null?void 0:c.timeouts}},n.request(v,c)},runSource({sourceID:a,runSourcePayload:s},i){if(!a)throw new Error("Parameter `sourceID` is required when calling `runSource`.");const m={method:"POST",path:"/1/sources/{sourceID}/run".replace("{sourceID}",encodeURIComponent(a)),queryParameters:{},headers:{},data:s||{}};
1return n.request(m,i)},runTask({taskID:a},s){if(!a)throw new Error("Parameter `taskID` is required when calling `runTask`.");const d={method:"POST",path:"/2/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(a)),queryParameters:{},headers:{}};return n.request(d,s)},runTaskV1({taskID:a},s){if(!a)throw new Error("Parameter `taskID` is required when calling `runTaskV1`.");const d={method:"POST",path:"/1/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(a)),queryParameters:{},headers:{}};return n.request(d,s)},searchAuthentications(a,s){if(!a)throw new Error("Parameter `authenticationSearch` is required when calling `searchAuthentications`.");if(!a.authenticationIDs)throw new Error("Parameter `authenticationSearch.authenticationIDs` is required when calling `searchAuthentications`.");const d={method:"POST",path:"/1/authentications/search",queryParameters:{},headers:{},data:a};return n.request(d,s)},searchDestinations(a,s){if(!a)throw new Error("Parameter `destinationSearch` is required when calling `searchDestinations`.");if(!a.destinationIDs)throw new Error("Parameter `destinationSearch.destinationIDs` is required when calling `searchDestinations`.");const d={method:"POST",path:"/1/destinations/search",queryParameters:{},headers:{},data:a};return n.request(d,s)},searchSources(a,s){if(!a)throw new Error("Parameter `sourceSearch` is required when calling `searchSources`.");if(!a.sourceIDs)throw new Error("Parameter `sourceSearch.sourceIDs` is required when calling `searchSources`.");const d={method:"POST",path:"/1/sources/search",queryParameters:{},headers:{},data:a};return n.request(d,s)},searchTasks(a,s){if(!a)throw new Error("Parameter `taskSearch` is required when calling `searchTasks`.");if(!a.taskIDs)throw new Error("Parameter `taskSearch.taskIDs` is required when calling `searchTasks`.");const d={method:"POST",path:"/2/tasks/search",queryParameters:{},headers:{},data:a};return n.request(d,s)},searchTasksV1(a,s){if(!a)throw new Error("Parameter `taskSearch` is required when calling `searchTasksV1`.");if(!a.taskIDs)throw new Error("Parameter `taskSearch.taskIDs` is required when calling `searchTasksV1`.");const d={method:"POST",path:"/1/tasks/search",queryParameters:{},headers:{},data:a};return n.request(d,s)},searchTransformations(a,s){if(!a)throw new Error("Parameter `transformationSearch` is required when calling `searchTransformations`.");if(!a.transformationIDs)throw new Error("Parameter `transformationSearch.transformationIDs` is required when calling `searchTransformations`.");const d={method:"POST",path:"/1/transformations/search",queryParameters:{},headers:{},data:a};return n.request(d,s)},triggerDockerSourceDiscover({sourceID:a},s){if(!a)throw new Error("Parameter `sourceID` is required when calling `triggerDockerSourceDiscover`.");const d={method:"POST",path:"/1/sources/{sourceID}/discover".replace("{sourceID}",encodeURIComponent(a)),queryParameters:{},headers:{}};return s={timeouts:{connect:18e4,read:18e4,write:18e4,...s==null?void 0:s.timeouts}},n.request(d,s)},tryTransformation(a,s){if(!a)throw new Error("Parameter `transformationTry` is required when calling `tryTransformation`.");if(!a.code)throw new Error("Parameter `transformationTry.code` is required when calling `tryTransformation`.");if(!a.sampleRecord)throw new Error("Parameter `transformationTry.sampleRecord` is required when calling `tryTransformation`.");const d={method:"POST",path:"/1/transformations/try",queryParameters:{},headers:{},data:a};return n.request(d,s)},tryTransformationBeforeUpdate({transformationID:a,transformationTry:s},i){if(!a)throw new Error("Parameter `transformationID` is required when calling `tryTransformationBeforeUpdate`.");if(!s)throw new Error("Parameter `transformationTry` is required when calling `tryTransformationBeforeUpdate`.");if(!s.code)throw new Error("Parameter `transformationTry.code` is required when calling `tryTransformationBeforeUpdate`.");if(!s.sampleRecord)throw new Error("Parameter `transformationTry.sampleRecord` is required when calling `tryTransformationBeforeUpdate`.");const m={method:"POST",path:"/1/transformations/{transformationID}/try".replace("{transformationID}",encodeURIComponent(a)),queryParameters:{},headers:{},data:s};
1return n.request(m,i)},updateAuthentication({authenticationID:a,authenticationUpdate:s},i){if(!a)throw new Error("Parameter `authenticationID` is required when calling `updateAuthentication`.");if(!s)throw new Error("Parameter `authenticationUpdate` is required when calling `updateAuthentication`.");const m={method:"PATCH",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(a)),queryParameters:{},headers:{},data:s};return n.request(m,i)},updateDestination({destinationID:a,destinationUpdate:s},i){if(!a)throw new Error("Parameter `destinationID` is required when calling `updateDestination`.");if(!s)throw new Error("Parameter `destinationUpdate` is required when calling `updateDestination`.");const m={method:"PATCH",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(a)),queryParameters:{},headers:{},data:s};return n.request(m,i)},updateSource({sourceID:a,sourceUpdate:s},i){if(!a)throw new Error("Parameter `sourceID` is required when calling `updateSource`.");if(!s)throw new Error("Parameter `sourceUpdate` is required when calling `updateSource`.");const m={method:"PATCH",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(a)),queryParameters:{},headers:{},data:s};return n.request(m,i)},updateTask({taskID:a,taskUpdate:s},i){if(!a)throw new Error("Parameter `taskID` is required when calling `updateTask`.");if(!s)throw new Error("Parameter `taskUpdate` is required when calling `updateTask`.");const m={method:"PATCH",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(a)),queryParameters:{},headers:{},data:s};return n.request(m,i)},updateTaskV1({taskID:a,taskUpdate:s},i){if(!a)throw new Error("Parameter `taskID` is required when calling `updateTaskV1`.");if(!s)throw new Error("Parameter `taskUpdate` is required when calling `updateTaskV1`.");const m={method:"PATCH",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(a)),queryParameters:{},headers:{},data:s};return n.request(m,i)},updateTransformation({transformationID:a,transformationCreate:s},i){if(!a)throw new Error("Parameter `transformationID` is required when calling `updateTransformation`.");if(!s)throw new Error("Parameter `transformationCreate` is required when calling `updateTransformation`.");if(!s.code)throw new Error("Parameter `transformationCreate.code` is required when calling `updateTransformation`.");if(!s.name)throw new Error("Parameter `transformationCreate.name` is required when calling `updateTransformation`.");const m={method:"PUT",path:"/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(a)),queryParameters:{},headers:{},data:s};return n.request(m,i)},validateSource(a,s=void 0){const d={method:"POST",path:"/1/sources/validate",queryParameters:{},headers:{},data:a||{}};return s={timeouts:{connect:18e4,read:18e4,write:18e4,...s==null?void 0:s.timeouts}},n.request(d,s)},validateSourceBeforeUpdate({sourceID:a,sourceUpdate:s},i){if(!a)throw new Error("Parameter `sourceID` is required when calling `validateSourceBeforeUpdate`.");if(!s)throw new Error("Parameter `sourceUpdate` is required when calling `validateSourceBeforeUpdate`.");const m={method:"POST",path:"/1/sources/{sourceID}/validate".replace("{sourceID}",encodeURIComponent(a)),queryParameters:{},headers:{},data:s};return i={timeouts:{connect:18e4,read:18e4,write:18e4,...i==null?void 0:i.timeouts}},n.request(m,i)}}}function ci(e,t,r,o){if(!e||typeof e!="string")throw new Error("`appId` is missing.");if(!t||typeof t!="string")throw new Error("`apiKey` is missing.");if(!r||r&&(typeof r!="string"||!$s.includes(r)))throw new Error(`\`region\` is required and must be one of the following: ${$s.join(", ")}`);return MD({appId:e,apiKey:t,region:r,timeouts:{connect:25e3,read:25e3,write:25e3},logger:rt(),requester:Je(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:ee(),requestsCache:ee({serializable:!1}),hostsCache:$e({caches:[Xe({key:`${Za}-${e}`}),ee()]}),...o})}const AD=Object.freeze(Object.defineProperty({__proto__:null,apiClientVersion:Za,ingestionClient:ci,isOnDemandTrigger:CD,isScheduleTrigger:ID,isSubscriptionTrigger:_D},Symbol.toStringTag,{value:"Module"}));var Qa="1.20.4";function OD(){return[{url:"status.algolia.com",accept:"readWrite",protocol:"https"}]}function RD({appId:e,apiKey:t,authMode:r,algoliaAgents:o,...u}){const f=et(e,t,r),l=at({hosts:OD(),...u,algoliaAgent:tt({algoliaAgents:o,client:"Monitoring",version:Qa}),baseHeaders:{"content-type":"text/plain",...f.headers(),...u.baseHeaders},baseQueryParameters:{...f.queryParameters(),...u.baseQueryParameters}});return{transporter:l,appId:e,apiKey:t,clearCache(){return Promise.all([l.requestsCache.clear(),l.responsesCache.clear()]).then(()=>{})},get _ua(){return l.algoliaAgent.value},addAlgoliaAgent(n,a){l.algoliaAgent.add({segment:n,version:a})},setClientApiKey({apiKey:n}){!r||r==="WithinHeaders"?l.baseHeaders["x-algolia-api-key"]=n:l.baseQueryParameters["x-algolia-api-key"]=n},customDelete({path:n,parameters:a},s){if(!n)throw new Error("Parameter `path` is required when calling `customDelete`.");const d={method:"DELETE",path:"/{path}".replace("{path}",n),queryParameters:a||{},headers:{}};return l.request(d,s)},customGet({path:n,parameters:a},s){if(!n)throw new Error("Parameter `path` is required when calling `customGet`.");const d={method:"GET",path:"/{path}".replace("{path}",n),queryParameters:a||{},headers:{}};return l.request(d,s)},customPost({path:n,parameters:a,body:s},i){if(!n)throw new Error("Parameter `path` is required when calling `customPost`.");const m={method:"POST",path:"/{path}".replace("{path}",n),queryParameters:a||{},headers:{},data:s||{}};
1return l.request(m,i)},customPut({path:n,parameters:a,body:s},i){if(!n)throw new Error("Parameter `path` is required when calling `customPut`.");const m={method:"PUT",path:"/{path}".replace("{path}",n),queryParameters:a||{},headers:{},data:s||{}};return l.request(m,i)},getClusterIncidents({clusters:n},a){if(!n)throw new Error("Parameter `clusters` is required when calling `getClusterIncidents`.");const h={method:"GET",path:"/1/incidents/{clusters}".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return l.request(h,a)},getClusterStatus({clusters:n},a){if(!n)throw new Error("Parameter `clusters` is required when calling `getClusterStatus`.");const h={method:"GET",path:"/1/status/{clusters}".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return l.request(h,a)},getIncidents(n){const c={method:"GET",path:"/1/incidents",queryParameters:{},headers:{}};return l.request(c,n)},getIndexingTime({clusters:n},a){if(!n)throw new Error("Parameter `clusters` is required when calling `getIndexingTime`.");const h={method:"GET",path:"/1/indexing/{clusters}".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return l.request(h,a)},getLatency({clusters:n},a){if(!n)throw new Error("Parameter `clusters` is required when calling `getLatency`.");const h={method:"GET",path:"/1/latency/{clusters}".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return l.request(h,a)},getMetrics({metric:n,period:a},s){if(!n)throw new Error("Parameter `metric` is required when calling `getMetrics`.");if(!a)throw new Error("Parameter `period` is required when calling `getMetrics`.");const d={method:"GET",path:"/1/infrastructure/{metric}/period/{period}".replace("{metric}",encodeURIComponent(n)).replace("{period}",encodeURIComponent(a)),queryParameters:{},headers:{}};return l.request(d,s)},getReachability({clusters:n},a){if(!n)throw new Error("Parameter `clusters` is required when calling `getReachability`.");const h={method:"GET",path:"/1/reachability/{clusters}/probes".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return l.request(h,a)},getServers(n){const c={method:"GET",path:"/1/inventory/servers",queryParameters:{},headers:{}};return l.request(c,n)},getStatus(n){const c={method:"GET",path:"/1/status",queryParameters:{},headers:{}};return l.request(c,n)}}}function di(e,t,r){if(!e||typeof e!="string")throw new Error("`appId` is missing.");if(!t||typeof t!="string")throw new Error("`apiKey` is missing.");return RD({appId:e,apiKey:t,timeouts:{connect:1e3,read:2e3,write:3e4},logger:rt(),requester:Je(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:ee(),requestsCache:ee({serializable:!1}),hostsCache:$e({caches:[Xe({key:`${Qa}-${e}`}),ee()]}),...r})}const YD=Object.freeze(Object.defineProperty({__proto__:null,apiClientVersion:Qa,monitoringClient:di},Symbol.toStringTag,{value:"Module"}));var Ja="5.20.4";function ND(e){return[{url:`${e}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${e}.algolia.net`,accept:"write",protocol:"https"}].concat(ri([{url:`${e}-1.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-2.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-3.algolianet.com`,accept:"readWrite",protocol:"https"}]))}function xD({appId:e,apiKey:t,authMode:r,algoliaAgents:o,...u}){const f=et(e,t,r),l=at({hosts:ND(e),...u,algoliaAgent:tt({algoliaAgents:o,client:"Recommend",version:Ja}),baseHeaders:{"content-type":"text/plain",...f.headers(),...u.baseHeaders},baseQueryParameters:{...f.queryParameters(),...u.baseQueryParameters}});return{transporter:l,appId:e,apiKey:t,clearCache(){return Promise.all([l.requestsCache.clear(),l.responsesCache.clear()]).then(()=>{})},get _ua(){return l.algoliaAgent.value},addAlgoliaAgent(n,a){l.algoliaAgent.add({segment:n,version:a})},setClientApiKey({apiKey:n}){!r||r==="WithinHeaders"?l.baseHeaders["x-algolia-api-key"]=n:l.baseQueryParameters["x-algolia-api-key"]=n},batchRecommendRules({indexName:n,model:a,recommendRule:s},i){if(!n)throw new Error("Parameter `indexName` is required when calling `batchRecommendRules`.");if(!a)throw new Error("Parameter `model` is required when calling `batchRecommendRules`.");const m={method:"POST",path:"/1/indexes/{indexName}/{model}/recommend/rules/batch".replace("{indexName}",encodeURIComponent(n)).replace("{model}",encodeURIComponent(a)),queryParameters:{},headers:{},data:s||{}};
1return l.request(m,i)},customDelete({path:n,parameters:a},s){if(!n)throw new Error("Parameter `path` is required when calling `customDelete`.");const d={method:"DELETE",path:"/{path}".replace("{path}",n),queryParameters:a||{},headers:{}};return l.request(d,s)},customGet({path:n,parameters:a},s){if(!n)throw new Error("Parameter `path` is required when calling `customGet`.");const d={method:"GET",path:"/{path}".replace("{path}",n),queryParameters:a||{},headers:{}};return l.request(d,s)},customPost({path:n,parameters:a,body:s},i){if(!n)throw new Error("Parameter `path` is required when calling `customPost`.");const m={method:"POST",path:"/{path}".replace("{path}",n),queryParameters:a||{},headers:{},data:s||{}};return l.request(m,i)},customPut({path:n,parameters:a,body:s},i){if(!n)throw new Error("Parameter `path` is required when calling `customPut`.");const m={method:"PUT",path:"/{path}".replace("{path}",n),queryParameters:a||{},headers:{},data:s||{}};return l.request(m,i)},deleteRecommendRule({indexName:n,model:a,objectID:s},i){if(!n)throw new Error("Parameter `indexName` is required when calling `deleteRecommendRule`.");if(!a)throw new Error("Parameter `model` is required when calling `deleteRecommendRule`.");if(!s)throw new Error("Parameter `objectID` is required when calling `deleteRecommendRule`.");const m={method:"DELETE",path:"/1/indexes/{indexName}/{model}/recommend/rules/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{model}",encodeURIComponent(a)).replace("{objectID}",encodeURIComponent(s)),queryParameters:{},headers:{}};return l.request(m,i)},getRecommendRule({indexName:n,model:a,objectID:s},i){if(!n)throw new Error("Parameter `indexName` is required when calling `getRecommendRule`.");if(!a)throw new Error("Parameter `model` is required when calling `getRecommendRule`.");if(!s)throw new Error("Parameter `objectID` is required when calling `getRecommendRule`.");const m={method:"GET",path:"/1/indexes/{indexName}/{model}/recommend/rules/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{model}",encodeURIComponent(a)).replace("{objectID}",encodeURIComponent(s)),queryParameters:{},headers:{}};return l.request(m,i)},getRecommendStatus({indexName:n,model:a,taskID:s},i){if(!n)throw new Error("Parameter `indexName` is required when calling `getRecommendStatus`.");if(!a)throw new Error("Parameter `model` is required when calling `getRecommendStatus`.");if(!s)throw new Error("Parameter `taskID` is required when calling `getRecommendStatus`.");const m={method:"GET",path:"/1/indexes/{indexName}/{model}/task/{taskID}".replace("{indexName}",encodeURIComponent(n)).replace("{model}",encodeURIComponent(a)).replace("{taskID}",encodeURIComponent(s)),queryParameters:{},headers:{}};return l.request(m,i)},getRecommendations(n,a){if(n&&Array.isArray(n)&&(n={requests:n}),!n)throw new Error("Parameter `getRecommendationsParams` is required when calling `getRecommendations`.");if(!n.requests)throw new Error("Parameter `getRecommendationsParams.requests` is required when calling `getRecommendations`.");const h={method:"POST",path:"/1/indexes/*/recommendations",queryParameters:{},headers:{},data:n,useReadTransporter:!0,cacheable:!0};return l.request(h,a)},searchRecommendRules({indexName:n,model:a,searchRecommendRulesParams:s},i){if(!n)throw new Error("Parameter `indexName` is required when calling `searchRecommendRules`.");if(!a)throw new Error("Parameter `model` is required when calling `searchRecommendRules`.");const m={method:"POST",path:"/1/indexes/{indexName}/{model}/recommend/rules/search".replace("{indexName}",encodeURIComponent(n)).replace("{model}",encodeURIComponent(a)),queryParameters:{},headers:{},data:s||{},useReadTransporter:!0,cacheable:!0};return l.request(m,i)}}}function hi(e,t,r){if(!e||typeof e!="string")throw new Error("`appId` is missing.");if(!t||typeof t!="string")throw new Error("`apiKey` is missing.");return xD({appId:e,apiKey:t,timeouts:{connect:1e3,read:2e3,write:3e4},logger:rt(),requester:Je(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:ee(),requestsCache:ee({serializable:!1}),hostsCache:$e({caches:[Xe({key:`${Ja}-${e}`}),ee()]}),...r})}const UD=Object.freeze(Object.defineProperty({__proto__:null,apiClientVersion:Ja,recommendClient:hi},Symbol.toStringTag,{value:"Module"}));var fi=Object.defineProperty,LD=Object.getOwnPropertyDescriptor,jD=Object.getOwnPropertyNames,HD=Object.prototype.hasOwnProperty,mi=(e,t)=>{for(var r in t)fi(e,r,{get:t[r],enumerable:!0})},FD=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of jD(t))!HD.call(e,u)&&u!==r&&fi(e,u,{get:()=>t[u],enumerable:!(o=LD(t,u))||o.enumerable});return e},Be=(e,t,r)=>(FD(e,t,"default"),r),vi={};mi(vi,{algoliasearch:()=>WD,apiClientVersion:()=>dr});var Ue={};mi(Ue,{apiClientVersion:()=>dr});Be(Ue,hD);Be(Ue,vD);Be(Ue,yD);Be(Ue,qD);Be(Ue,ED);Be(Ue,$D);Be(Ue,AD);Be(Ue,YD);Be(Ue,UD);Be(vi,Ue);function WD(e,t,r){if(!e||typeof e!="string")throw new Error("`appId` is missing.");if(!t||typeof t!="string")throw new Error("`apiKey` is missing.");const o=li(e,t,r);return{...o,get _ua(){return o.transporter.algoliaAgent.value},initAbtesting:u=>ni(u.appId||e,u.apiKey||t,u.region,u.options),initAnalytics:u=>si(u.appId||e,u.apiKey||t,u.region,u.options),initIngestion:u=>ci(u.appId||e,u.apiKey||t,u.region,u.options),initInsights:u=>oi(u.appId||e,u.apiKey||t,u.region,u.options),initMonitoring:(u={})=>di(u.appId||e,u.apiKey||t,u.options),initPersonalization:u=>ii(u.appId||e,u.apiKey||t,u.region,u.options),initQuerySuggestions:u=>ui(u.appId||e,u.apiKey||t,u.region,u.options),initRecommend:(u={})=>hi(u.appId||e,u.apiKey||t,u.options)}}export{JD as _,WD as a,XD as b};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.