@sysvale/cuida 3.109.4 → 3.109.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -66,7 +66,7 @@ __p += '`),st&&(se+=`' +
66
66
  function print() { __p += __j.call(arguments, '') }
67
67
  `:`;
68
68
  `)+se+`return __p
69
- }`;var qe=W6(function(){return ht(O,Se+"return "+se).apply(n,A)});if(qe.source=se,Lp(qe))throw qe;return qe}function moe(c){return mt(c).toLowerCase()}function goe(c){return mt(c).toUpperCase()}function yoe(c,u,p){if(c=mt(c),c&&(p||u===n))return Jv(c);if(!c||!(u=li(u)))return c;var b=Gi(c),S=Gi(u),O=Qv(b,S),A=e_(b,S)+1;return Oa(b,O,A).join("")}function boe(c,u,p){if(c=mt(c),c&&(p||u===n))return c.slice(0,n_(c)+1);if(!c||!(u=li(u)))return c;var b=Gi(c),S=e_(b,Gi(u))+1;return Oa(b,0,S).join("")}function voe(c,u,p){if(c=mt(c),c&&(p||u===n))return c.replace(Vr,"");if(!c||!(u=li(u)))return c;var b=Gi(c),S=Qv(b,Gi(u));return Oa(b,S).join("")}function _oe(c,u){var p=U,b=ee;if(Yt(u)){var S="separator"in u?u.separator:S;p="length"in u?je(u.length):p,b="omission"in u?li(u.omission):b}c=mt(c);var O=c.length;if(Ho(c)){var A=Gi(c);O=A.length}if(p>=O)return c;var L=p-Wo(b);if(L<1)return b;var H=A?Oa(A,0,L).join(""):c.slice(0,L);if(S===n)return H+b;if(A&&(L+=H.length-L),zp(S)){if(c.slice(L).search(S)){var ie,re=H;for(S.global||(S=ep(S.source,mt(dn.exec(S))+"g")),S.lastIndex=0;ie=S.exec(re);)var se=ie.index;H=H.slice(0,se===n?L:se)}}else if(c.indexOf(li(S),L)!=L){var _e=H.lastIndexOf(S);_e>-1&&(H=H.slice(0,_e))}return H+b}function woe(c){return c=mt(c),c&&ut.test(c)?c.replace(Me,Zte):c}var koe=Zo(function(c,u,p){return c+(p?" ":"")+u.toUpperCase()}),Rp=Y_("toUpperCase");function H6(c,u,p){return c=mt(c),u=p?n:u,u===n?Ute(c)?Qte(c):Nte(c):c.match(u)||[]}var W6=Ge(function(c,u){try{return mn(c,n,u)}catch(p){return Lp(p)?p:new Re(p)}}),Coe=Hr(function(c,u){return Bi(u,function(p){p=hr(p),Fr(c,p,Ap(c[p],c))}),c});function xoe(c){var u=c==null?0:c.length,p=Ve();return c=u?Rt(c,function(b){if(typeof b[1]!="function")throw new Ei(o);return[p(b[0]),b[1]]}):[],Ge(function(b){for(var S=-1;++S<u;){var O=c[S];if(mn(O[0],this,b))return mn(O[1],this,b)}})}function Soe(c){return Zne(Oi(c,m))}function Hp(c){return function(){return c}}function Moe(c,u){return c==null||c!==c?u:c}var Boe=j_(),Eoe=j_(!0);function Jn(c){return c}function Wp(c){return k_(typeof c=="function"?c:Oi(c,m))}function Doe(c){return x_(Oi(c,m))}function Ooe(c,u){return S_(c,Oi(u,m))}var Voe=Ge(function(c,u){return function(p){return Yc(p,c,u)}}),$oe=Ge(function(c,u){return function(p){return Yc(c,p,u)}});function Yp(c,u,p){var b=gn(u),S=oh(u,b);p==null&&!(Yt(u)&&(S.length||!b.length))&&(p=u,u=c,c=this,S=oh(u,gn(u)));var O=!(Yt(p)&&"chain"in p)||!!p.chain,A=Yr(c);return Bi(S,function(L){var H=u[L];c[L]=H,A&&(c.prototype[L]=function(){var ie=this.__chain__;if(O||ie){var re=c(this.__wrapped__),se=re.__actions__=Kn(this.__actions__);return se.push({func:H,args:arguments,thisArg:c}),re.__chain__=ie,re}return H.apply(c,xa([this.value()],arguments))})}),c}function Toe(){return Ke._===this&&(Ke._=ane),this}function Up(){}function Ioe(c){return c=je(c),Ge(function(u){return M_(u,c)})}var Aoe=kp(Rt),Noe=kp(qv),Loe=kp(q0);function Y6(c){return Dp(c)?G0(hr(c)):fie(c)}function zoe(c){return function(u){return c==null?n:vs(c,u)}}var Poe=G_(),Foe=G_(!0);function jp(){return[]}function qp(){return!1}function Roe(){return{}}function Hoe(){return""}function Woe(){return!0}function Yoe(c,u){if(c=je(c),c<1||c>me)return[];var p=fe,b=Tn(c,fe);u=Ve(u),c-=fe;for(var S=X0(b,u);++p<c;)u(p);return S}function Uoe(c){return He(c)?Rt(c,hr):ci(c)?[c]:Kn(d6(mt(c)))}function joe(c){var u=++ine;return mt(c)+u}var qoe=fh(function(c,u){return c+u},0),Goe=Cp("ceil"),Koe=fh(function(c,u){return c/u},1),Zoe=Cp("floor");function Xoe(c){return c&&c.length?sh(c,Jn,lp):n}function Joe(c,u){return c&&c.length?sh(c,Ve(u,2),lp):n}function Qoe(c){return Zv(c,Jn)}function ele(c,u){return Zv(c,Ve(u,2))}function tle(c){return c&&c.length?sh(c,Jn,hp):n}function nle(c,u){return c&&c.length?sh(c,Ve(u,2),hp):n}var ile=fh(function(c,u){return c*u},1),rle=Cp("round"),ale=fh(function(c,u){return c-u},0);function sle(c){return c&&c.length?Z0(c,Jn):0}function ole(c,u){return c&&c.length?Z0(c,Ve(u,2)):0}return B.after=Dae,B.ary=w6,B.assign=gse,B.assignIn=A6,B.assignInWith=Mh,B.assignWith=yse,B.at=bse,B.before=k6,B.bind=Ap,B.bindAll=Coe,B.bindKey=C6,B.castArray=Rae,B.chain=b6,B.chunk=Zie,B.compact=Xie,B.concat=Jie,B.cond=xoe,B.conforms=Soe,B.constant=Hp,B.countBy=sae,B.create=vse,B.curry=x6,B.curryRight=S6,B.debounce=M6,B.defaults=_se,B.defaultsDeep=wse,B.defer=Oae,B.delay=Vae,B.difference=Qie,B.differenceBy=ere,B.differenceWith=tre,B.drop=nre,B.dropRight=ire,B.dropRightWhile=rre,B.dropWhile=are,B.fill=sre,B.filter=lae,B.flatMap=uae,B.flatMapDeep=hae,B.flatMapDepth=fae,B.flatten=p6,B.flattenDeep=ore,B.flattenDepth=lre,B.flip=$ae,B.flow=Boe,B.flowRight=Eoe,B.fromPairs=cre,B.functions=Ese,B.functionsIn=Dse,B.groupBy=pae,B.initial=ure,B.intersection=hre,B.intersectionBy=fre,B.intersectionWith=pre,B.invert=Vse,B.invertBy=$se,B.invokeMap=gae,B.iteratee=Wp,B.keyBy=yae,B.keys=gn,B.keysIn=Xn,B.map=_h,B.mapKeys=Ise,B.mapValues=Ase,B.matches=Doe,B.matchesProperty=Ooe,B.memoize=kh,B.merge=Nse,B.mergeWith=N6,B.method=Voe,B.methodOf=$oe,B.mixin=Yp,B.negate=Ch,B.nthArg=Ioe,B.omit=Lse,B.omitBy=zse,B.once=Tae,B.orderBy=bae,B.over=Aoe,B.overArgs=Iae,B.overEvery=Noe,B.overSome=Loe,B.partial=Np,B.partialRight=B6,B.partition=vae,B.pick=Pse,B.pickBy=L6,B.property=Y6,B.propertyOf=zoe,B.pull=bre,B.pullAll=g6,B.pullAllBy=vre,B.pullAllWith=_re,B.pullAt=wre,B.range=Poe,B.rangeRight=Foe,B.rearg=Aae,B.reject=kae,B.remove=kre,B.rest=Nae,B.reverse=Tp,B.sampleSize=xae,B.set=Rse,B.setWith=Hse,B.shuffle=Sae,B.slice=Cre,B.sortBy=Eae,B.sortedUniq=Ore,B.sortedUniqBy=Vre,B.split=uoe,B.spread=Lae,B.tail=$re,B.take=Tre,B.takeRight=Ire,B.takeRightWhile=Are,B.takeWhile=Nre,B.tap=Xre,B.throttle=zae,B.thru=vh,B.toArray=$6,B.toPairs=z6,B.toPairsIn=P6,B.toPath=Uoe,B.toPlainObject=I6,B.transform=Wse,B.unary=Pae,B.union=Lre,B.unionBy=zre,B.unionWith=Pre,B.uniq=Fre,B.uniqBy=Rre,B.uniqWith=Hre,B.unset=Yse,B.unzip=Ip,B.unzipWith=y6,B.update=Use,B.updateWith=jse,B.values=Qo,B.valuesIn=qse,B.without=Wre,B.words=H6,B.wrap=Fae,B.xor=Yre,B.xorBy=Ure,B.xorWith=jre,B.zip=qre,B.zipObject=Gre,B.zipObjectDeep=Kre,B.zipWith=Zre,B.entries=z6,B.entriesIn=P6,B.extend=A6,B.extendWith=Mh,Yp(B,B),B.add=qoe,B.attempt=W6,B.camelCase=Xse,B.capitalize=F6,B.ceil=Goe,B.clamp=Gse,B.clone=Hae,B.cloneDeep=Yae,B.cloneDeepWith=Uae,B.cloneWith=Wae,B.conformsTo=jae,B.deburr=R6,B.defaultTo=Moe,B.divide=Koe,B.endsWith=Jse,B.eq=Zi,B.escape=Qse,B.escapeRegExp=eoe,B.every=oae,B.find=cae,B.findIndex=h6,B.findKey=kse,B.findLast=dae,B.findLastIndex=f6,B.findLastKey=Cse,B.floor=Zoe,B.forEach=v6,B.forEachRight=_6,B.forIn=xse,B.forInRight=Sse,B.forOwn=Mse,B.forOwnRight=Bse,B.get=Pp,B.gt=qae,B.gte=Gae,B.has=Ose,B.hasIn=Fp,B.head=m6,B.identity=Jn,B.includes=mae,B.indexOf=dre,B.inRange=Kse,B.invoke=Tse,B.isArguments=ks,B.isArray=He,B.isArrayBuffer=Kae,B.isArrayLike=Zn,B.isArrayLikeObject=Qt,B.isBoolean=Zae,B.isBuffer=Va,B.isDate=Xae,B.isElement=Jae,B.isEmpty=Qae,B.isEqual=ese,B.isEqualWith=tse,B.isError=Lp,B.isFinite=nse,B.isFunction=Yr,B.isInteger=E6,B.isLength=xh,B.isMap=D6,B.isMatch=ise,B.isMatchWith=rse,B.isNaN=ase,B.isNative=sse,B.isNil=lse,B.isNull=ose,B.isNumber=O6,B.isObject=Yt,B.isObjectLike=qt,B.isPlainObject=Zc,B.isRegExp=zp,B.isSafeInteger=cse,B.isSet=V6,B.isString=Sh,B.isSymbol=ci,B.isTypedArray=Jo,B.isUndefined=dse,B.isWeakMap=use,B.isWeakSet=hse,B.join=mre,B.kebabCase=toe,B.last=$i,B.lastIndexOf=gre,B.lowerCase=noe,B.lowerFirst=ioe,B.lt=fse,B.lte=pse,B.max=Xoe,B.maxBy=Joe,B.mean=Qoe,B.meanBy=ele,B.min=tle,B.minBy=nle,B.stubArray=jp,B.stubFalse=qp,B.stubObject=Roe,B.stubString=Hoe,B.stubTrue=Woe,B.multiply=ile,B.nth=yre,B.noConflict=Toe,B.noop=Up,B.now=wh,B.pad=roe,B.padEnd=aoe,B.padStart=soe,B.parseInt=ooe,B.random=Zse,B.reduce=_ae,B.reduceRight=wae,B.repeat=loe,B.replace=coe,B.result=Fse,B.round=rle,B.runInContext=F,B.sample=Cae,B.size=Mae,B.snakeCase=doe,B.some=Bae,B.sortedIndex=xre,B.sortedIndexBy=Sre,B.sortedIndexOf=Mre,B.sortedLastIndex=Bre,B.sortedLastIndexBy=Ere,B.sortedLastIndexOf=Dre,B.startCase=hoe,B.startsWith=foe,B.subtract=ale,B.sum=sle,B.sumBy=ole,B.template=poe,B.times=Yoe,B.toFinite=Ur,B.toInteger=je,B.toLength=T6,B.toLower=moe,B.toNumber=Ti,B.toSafeInteger=mse,B.toString=mt,B.toUpper=goe,B.trim=yoe,B.trimEnd=boe,B.trimStart=voe,B.truncate=_oe,B.unescape=woe,B.uniqueId=joe,B.upperCase=koe,B.upperFirst=Rp,B.each=v6,B.eachRight=_6,B.first=m6,Yp(B,function(){var c={};return dr(B,function(u,p){wt.call(B.prototype,p)||(c[p]=u)}),c}(),{chain:!1}),B.VERSION=r,Bi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){B[c].placeholder=B}),Bi(["drop","take"],function(c,u){nt.prototype[c]=function(p){p=p===n?1:hn(je(p),0);var b=this.__filtered__&&!u?new nt(this):this.clone();return b.__filtered__?b.__takeCount__=Tn(p,b.__takeCount__):b.__views__.push({size:Tn(p,fe),type:c+(b.__dir__<0?"Right":"")}),b},nt.prototype[c+"Right"]=function(p){return this.reverse()[c](p).reverse()}}),Bi(["filter","map","takeWhile"],function(c,u){var p=u+1,b=p==le||p==pe;nt.prototype[c]=function(S){var O=this.clone();return O.__iteratees__.push({iteratee:Ve(S,3),type:p}),O.__filtered__=O.__filtered__||b,O}}),Bi(["head","last"],function(c,u){var p="take"+(u?"Right":"");nt.prototype[c]=function(){return this[p](1).value()[0]}}),Bi(["initial","tail"],function(c,u){var p="drop"+(u?"":"Right");nt.prototype[c]=function(){return this.__filtered__?new nt(this):this[p](1)}}),nt.prototype.compact=function(){return this.filter(Jn)},nt.prototype.find=function(c){return this.filter(c).head()},nt.prototype.findLast=function(c){return this.reverse().find(c)},nt.prototype.invokeMap=Ge(function(c,u){return typeof c=="function"?new nt(this):this.map(function(p){return Yc(p,c,u)})}),nt.prototype.reject=function(c){return this.filter(Ch(Ve(c)))},nt.prototype.slice=function(c,u){c=je(c);var p=this;return p.__filtered__&&(c>0||u<0)?new nt(p):(c<0?p=p.takeRight(-c):c&&(p=p.drop(c)),u!==n&&(u=je(u),p=u<0?p.dropRight(-u):p.take(u-c)),p)},nt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},nt.prototype.toArray=function(){return this.take(fe)},dr(nt.prototype,function(c,u){var p=/^(?:filter|find|map|reject)|While$/.test(u),b=/^(?:head|last)$/.test(u),S=B[b?"take"+(u=="last"?"Right":""):u],O=b||/^find/.test(u);S&&(B.prototype[u]=function(){var A=this.__wrapped__,L=b?[1]:arguments,H=A instanceof nt,ie=L[0],re=H||He(A),se=function(Je){var st=S.apply(B,xa([Je],L));return b&&_e?st[0]:st};re&&p&&typeof ie=="function"&&ie.length!=1&&(H=re=!1);var _e=this.__chain__,Se=!!this.__actions__.length,$e=O&&!_e,qe=H&&!Se;if(!O&&re){A=qe?A:new nt(this);var Te=c.apply(A,L);return Te.__actions__.push({func:vh,args:[se],thisArg:n}),new Di(Te,_e)}return $e&&qe?c.apply(this,L):(Te=this.thru(se),$e?b?Te.value()[0]:Te.value():Te)})}),Bi(["pop","push","shift","sort","splice","unshift"],function(c){var u=Uu[c],p=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",b=/^(?:pop|shift)$/.test(c);B.prototype[c]=function(){var S=arguments;if(b&&!this.__chain__){var O=this.value();return u.apply(He(O)?O:[],S)}return this[p](function(A){return u.apply(He(A)?A:[],S)})}}),dr(nt.prototype,function(c,u){var p=B[u];if(p){var b=p.name+"";wt.call(qo,b)||(qo[b]=[]),qo[b].push({name:u,func:p})}}),qo[hh(n,C).name]=[{name:"wrapper",func:n}],nt.prototype.clone=wne,nt.prototype.reverse=kne,nt.prototype.value=Cne,B.prototype.at=Jre,B.prototype.chain=Qre,B.prototype.commit=eae,B.prototype.next=tae,B.prototype.plant=iae,B.prototype.reverse=rae,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=aae,B.prototype.first=B.prototype.head,Lc&&(B.prototype[Lc]=nae),B},Yo=ene();Ft?((Ft.exports=Yo)._=Yo,lt._=Yo):Ke._=Yo}).call(yn)}(hu,hu.exports);var Bn=hu.exports;const Nf={components:{CdsIcon:ke},props:{modelValue:{default:null,required:!0},allowedExtensions:{type:String,default:null},size:{type:String,default:"md"},state:{type:String,default:"default"},textMessage:{type:String,default:"Arraste o arquivo aqui ou pesquise no seu dispositivo"},errorMessage:{type:String,default:"Valor inválido"},disabled:{type:Boolean,default:!1}},data(){return{file:this.modelValue&&!Bn.isEmpty(this.modelValue)?this.modelValue:null,isOnDragEnterState:!1,isValid:!0,internalState:this.state,invalidExtensionError:null}},computed:{sizeClass(){return{inputTitle:`file-input__title--${this.size}`,holderPadding:"px-3",wrapperPadding:"px-1 py-1",contentPadding:"mt-3",svgScale:1}},acceptString(){if(this.allowedExtensions===null)return null;let e="";return this.allowedExtensions.split(",").forEach((n,r,a)=>{n&&n.trim().length>0&&(e+=`.${n.trim()}${r!==a.length-1?", ":""}`)}),e},computedAllowedMessage(){if(this.allowedExtensions){if(this.invalidExtensionError){const t=this.allowedExtensions.split(",").length===1?"":"s";return`${`São aceitos apenas arquivo${t} do${t} seguinte${t} tipo${t}:`} ${this.acceptString}.`}return this.errorMessage}else if(this.state==="invalid")return this.errorMessage;return null},textAlignmentResolver(){return this.size==="sm"?"flex-start":"center"},formatFilename(){if(this.file instanceof File&&this.file.name.length>16){const e=this.file.name.split(".");return e.length>2?`arquivo.${Bn.last(e)}`:`${e[0].substring(0,16)}....${e[1]}`}return this.file.name}},watch:{file(e){this.$emit("update:modelValue",e)},state:{handler(e){this.internalState=e},immediate:!0},isValid:{handler(e){e?this.internalState="valid":this.internalState="invalid"},immediate:!0}},methods:{dropHandler(e){if(this.isValid=null,this.isOnDragEnterState=!1,e.preventDefault(),!e.dataTransfer.items||e.dataTransfer.items[0].kind!=="file"||this.disabled)return;const t=e.dataTransfer.items[0].getAsFile();if(this.isAValidExtension(t.name)){this.file=t,this.isValid=!0;return}this.isValid=!1,this.file=null},linkClick(){this.disabled||this.$refs.fileInput.click()},isAValidExtension(e){if(this.allowedExtensions===null)return!0;const t=this.allowedExtensions.split(",");let n=e.split(".");n=n[n.length-1].trim();const r=t.filter(a=>a===n).length>0;return this.invalidExtensionError=!r,r},handleFormFileChange(e){this.isValid="invalid";const[t]=e.target.files||{};if(this.isAValidExtension(t.name)){this.file=t,this.isValid=!0;return}this.isValid=!1,this.$nextTick().then(()=>{this.file=null})},handleRemove(){this.disabled||(this.isValid="default",this.file=null)}}},_4=()=>{i.useCssVars(e=>({"3c7a40a8":e.textAlignmentResolver}))},w4=Nf.setup;Nf.setup=w4?(e,t)=>(_4(),w4(e,t)):_4;const ZV=["accept"],XV={key:0,class:"file-input__container"},JV={key:0},QV={key:1},e$={key:1,class:"file-input__container"},t$={key:1},n$={key:0,class:"file-input__alert-container"};function i$(e,t,n,r,a,s){const o=i.resolveComponent("cds-icon");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",null,[i.createElementVNode("div",{class:i.normalizeClass(["file-input text-center",{"file-input--drag-state":a.isOnDragEnterState,"file-input--sm":n.size==="sm","file-input--md":n.size==="md","file-input--lg":n.size==="lg","file-input--valid":n.state==="valid","file-input--invalid":n.state==="invalid"||!a.isValid,"file-input--disabled":n.disabled===!0,[s.sizeClass.holderPadding]:n.size}]),onDragover:t[2]||(t[2]=i.withModifiers(l=>a.isOnDragEnterState=!0,["prevent","stop"])),onDragenter:t[3]||(t[3]=i.withModifiers(l=>a.isOnDragEnterState=!0,["prevent","stop"])),onDragleave:t[4]||(t[4]=i.withModifiers(l=>a.isOnDragEnterState=!1,["prevent","stop"])),onDragend:t[5]||(t[5]=i.withModifiers(l=>a.isOnDragEnterState=!1,["prevent","stop"])),onDrop:t[6]||(t[6]=(...l)=>s.dropHandler&&s.dropHandler(...l)),onClick:t[7]||(t[7]=(...l)=>s.linkClick&&s.linkClick(...l))},[i.withDirectives(i.createElementVNode("input",{ref:"fileInput",type:"file",accept:s.acceptString,onChange:t[0]||(t[0]=(...l)=>s.handleFormFileChange&&s.handleFormFileChange(...l))},null,40,ZV),[[i.vShow,!1]]),a.file?(i.openBlock(),i.createElementBlock("div",e$,[i.createVNode(o,{height:"24",width:"24",name:"document-text-outline",class:i.normalizeClass({"icon-document--sm":n.size==="sm","icon-document--md":n.size==="md","icon-document--lg":n.size==="lg","icon-document--disabled":n.disabled===!0})},null,8,["class"]),i.createElementVNode("div",{class:i.normalizeClass({[s.sizeClass.inputTitle]:n.size,[s.sizeClass.contentPadding]:n.size})},[a.isOnDragEnterState?(i.openBlock(),i.createElementBlock("div",t$," Solte aqui o seu arquivo ")):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["on-drag-content__container",{"on-drag-content__container--disabled":n.disabled===!0}])},[i.createElementVNode("div",null,i.toDisplayString(s.formatFilename),1),i.createElementVNode("div",{class:"x-icon__container",onClick:t[1]||(t[1]=i.withModifiers((...l)=>s.handleRemove&&s.handleRemove(...l),["stop"]))},[i.createVNode(o,{height:"18",width:"18",name:"x-outline",class:i.normalizeClass(["file-input__close-button",{"file-input__close-button--sm":n.size==="sm","file-input__close-button--md":n.size==="md","file-input__close-button--lg":n.size==="lg","file-input__close-button--disabled":n.disabled===!0}])},null,8,["class"])])],2))],2)])):(i.openBlock(),i.createElementBlock("div",XV,[i.createVNode(o,{name:"upload-cloud-outline",class:i.normalizeClass({"icon-upload--sm":n.size==="sm","icon-upload--md":n.size==="md","icon-upload--lg":n.size==="lg","icon-upload--disabled":n.disabled===!0,[s.sizeClass.holderPadding]:n.size})},null,8,["class"]),i.createElementVNode("div",{class:i.normalizeClass({[s.sizeClass.inputTitle]:n.size,[s.sizeClass.contentPadding]:n.size})},[a.isOnDragEnterState?(i.openBlock(),i.createElementBlock("div",QV," Solte aqui o seu arquivo ")):(i.openBlock(),i.createElementBlock("div",JV,i.toDisplayString(n.textMessage),1))],2)]))],34)]),a.internalState==="invalid"?(i.openBlock(),i.createElementBlock("div",n$,i.toDisplayString(s.computedAllowedMessage),1)):i.createCommentVNode("",!0)],64)}const k4=te(Nf,[["render",i$],["__scopeId","data-v-33f6f0ff"]]),r$={class:"file-viewer__image"},a$={key:0,class:"file-viewer__extension"},s$={class:"file-viewer__info"},o$={class:"file-viewer__label"},l$={class:"file-viewer__file-name"},c$={key:0,class:"file-viewer__backdrop"},d$={class:"file-viewer__visualizer-header"},u$={class:"file-viewer__visualizer-label"},h$={class:"file-viewer__visualizer-actions"},f$={key:0},p$={key:1,class:"file-viewer__visualizer-empty-state"},m$=te({__name:"FileViewer",props:{label:{type:String,required:!0,default:"Comprovante de residência"},fileUrl:{type:String,required:!0,default:"https://images.pexels.com/photos/1254140/pexels-photo-1254140.jpeg"},variant:{type:String,default:"green",validator:e=>ou.find(t=>t.name===e)}},emits:["close","download-click"],setup(e,{emit:t}){const n=t,r=e,a=i.ref(!1),s=i.ref(!1),o=["jpg","jpeg","png","webp"],l=i.computed(()=>{if(r.fileUrl){const k=Bn.last(r.fileUrl.split("/")).match(/\.([A-Za-z]{3,4})/),C=Bn.get(k,"1",null);if(C)return C.toLowerCase()}return"file"}),d=i.computed(()=>r.label.length>50?r.label.substring(0,50):r.label),h=()=>{a.value=!0},f=()=>{a.value=!1},m=()=>{s.value=!s.value,y(s.value)},g=()=>{s.value=!1,y(s.value),n("close",!0)},y=w=>{document.body.style.overflow=w?"hidden":"auto"},_=i.computed(()=>window.matchMedia("(max-width: 450px)").matches);return(w,k)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{ref:"fileViewer",class:i.normalizeClass(["file-viewer",`file-viewer--${e.variant}`]),tabindex:"0",onMouseenter:h,onMouseleave:f,onClick:m,onKeyup:i.withKeys(g,["esc"])},[i.createElementVNode("div",r$,[a.value?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["file-viewer__icon",`file-viewer__icon--${e.variant}`])},[i.createVNode(ke,{height:"32",width:"32",name:"image-outline"})],2)):(i.openBlock(),i.createElementBlock("div",a$,i.toDisplayString(l.value),1))]),i.createElementVNode("div",s$,[i.createElementVNode("div",o$,i.toDisplayString(d.value),1),i.createElementVNode("div",l$,i.toDisplayString(e.fileUrl),1),i.createElementVNode("div",null,[i.createElementVNode("a",{class:i.normalizeClass(["file-viewer__download",`file-viewer__download--${e.variant}`]),onClick:k[0]||(k[0]=i.withModifiers(C=>n("download-click",!0),["stop"]))}," Baixar arquivo ",2)])])],34),s.value?(i.openBlock(),i.createElementBlock("div",c$,[i.createElementVNode("div",d$,[i.createElementVNode("div",u$,i.toDisplayString(d.value),1),i.createElementVNode("div",h$,[i.createElementVNode("div",{class:"file-viewer__visualizer-download",onClick:k[1]||(k[1]=C=>n("download-click",!0))},[i.createVNode(ke,{height:"24",width:"24",name:"download-cloud-outline"}),_.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",f$," Baixar arquivo "))]),i.createVNode(ke,{class:"file-viewer__visualizer-close",height:"24",width:"24",name:"x-outline",onClick:g})])]),i.createElementVNode("div",{class:"file-viewer__visualizer-image-container",onClick:g},[o.includes(l.value)?(i.openBlock(),i.createBlock(ec,{key:0,class:"file-viewer__visualizer-image",src:e.fileUrl,onClick:k[2]||(k[2]=i.withModifiers(()=>{},["stop"]))},null,8,["src"])):(i.openBlock(),i.createElementBlock("div",p$,[i.createVNode(ec,{src:"https://i.imgur.com/d842Bek.png",width:"100",height:"100"}),k[3]||(k[3]=i.createTextVNode(" Não foi possível gerar uma pré-visualização do arquivo. "))]))])])):i.createCommentVNode("",!0)],64))}},[["__scopeId","data-v-c35f914b"]]);function ic(e=""){const t="ÀÁÂÃÄÅàáâãäåÒÓÔÕÕÖØòóôõöøÈÉÊËèéêëðÇçÐÌÍÎÏìíîïÙÚÛÜùúûüÑñŠšŸÿýŽž",n="AAAAAAaaaaaaOOOOOOOooooooEEEEeeeeeCcDIIIIiiiiUUUUuuuuNnSsYyyZz",r=e.length;let a=e.split(""),s;for(let o=0;o<r;o+=1)s=t.indexOf(e[o]),s!==-1&&(a[o]=n[s]);return a=a.join(""),a=a.split(".").join(""),a=a.split("-").join(""),a=a.split("/").join(""),a}const g$={props:{label:{type:String,default:"Label",required:!0},placeholder:{type:String,default:"Selecione...",required:!1},options:{type:Array,default:()=>[],required:!0},modelValue:{type:[Array,Object],required:!0},searchable:{type:Boolean,default:!1,required:!1},width:{type:String,default:"default",required:!1},fluid:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},optionsField:{type:String,default:"value",required:!1},returnValue:{type:Boolean,default:!1,required:!1}},data(){return{currentPos:0,active:!1,id:null,allowSearch:!1,localOptions:[],pristineOptions:[],localValue:"",selectElement:"",direction:"down",uniqueKey:Gr()}},computed:{inputClass(){let e="";const t="filter-select__input";return this.active&&this.direction==="down"?e=`${t}--opened-down`:this.active&&this.direction==="up"?e=`${t}--opened-up`:e=`${t}--closed`,this.disabled&&(e+=` ${t}--disabled`),e+=` ${t}--${Gh.find(n=>n===this.width)}`,e+=this.fluid?` ${t}--fluid`:` ${t}--fit`,e+=this.searchable?` ${t}--searchable`:"",e},capitalizedLabel(){return this.label.charAt(0).toUpperCase()+this.label.slice(1)}},watch:{modelValue:{handler(e,t){e!==t&&(e instanceof Object?this.localValue=e:this.localValue={id:e,value:e})},immediate:!0},options:{handler(e,t){e!==t&&(this.localOptions=e,this.pristineOptions=e)},immediate:!0},searchable:{handler(e,t){e!==t&&(this.allowSearch=e)},immediate:!0},localValue:{handler(e){this.localOptions.filter(n=>JSON.stringify(n)===JSON.stringify(e)).length!==0&&(this.returnValue?this.$emit("update:modelValue",e[this.optionsField]):this.$emit("update:modelValue",e))},deep:!0}},mounted(){this.id=`cds-filter-select-${this.uniqueKey}`,this.selectElement=this.$refs["cds-filter-select"],document.querySelector("body").addEventListener("click",this.closeFilterSelect)},methods:{filterOptions(){const e=ic(this.localValue[this.optionsField]),t=new RegExp(e,"i");this.localOptions=this.options.filter(n=>ic(n[this.optionsField]).search(t)>=0)},activeSelection(){this.disabled||this.$nextTick().then(()=>{const e=this.localOptions[this.currentPos];this.$refs[`${e[this.optionsField]}-${this.currentPos}`][0].classList.add("highlight")})},activateSelectionOnEnter(){this.disabled||(this.active=!this.active,typeof this.localOptions[this.currentPos]>"u"?this.localOptions=this.pristineOptions:this.localValue=Vs(this.localOptions[this.currentPos]),this.$refs["filter-select-input"].blur())},activateSelectionOnClick(){let e=this.selectElement.getBoundingClientRect();e.top+e.height+286<window.innerHeight?this.direction="down":this.direction="up",!this.disabled&&(this.active=!this.active)},hide(){this.localOptions=this.pristineOptions,this.active=!1},selectItem(){this.localValue=Vs(this.localOptions[this.currentPos])},getLiInDOM(e){const t=this.localOptions[e];return this.$refs[`${t[this.optionsField]}-${e}`][0]},handleOptionVisibility(e,t,n){const r=e.getBoundingClientRect(),a=this.$refs["filter-select-options"],s=a.getBoundingClientRect();n==="up"&&r.top<=s.top&&(a.scrollTop+=t),n==="down"&&r.top>=s.bottom&&(a.scrollTop+=t)},highlightOnArrowDown(){if(this.currentPos===this.localOptions.length-1)return;this.currentPos+=1;const e=this.getLiInDOM(this.currentPos),t=this.getLiInDOM(this.currentPos-1);e.classList.add("highlight"),t.classList.remove("highlight"),this.handleOptionVisibility(e,37,"down")},highlightOnArrowUp(){if(this.currentPos===0)return;const e=this.getLiInDOM(this.currentPos),t=this.getLiInDOM(this.currentPos-1);e.classList.remove("highlight"),t.classList.add("highlight"),this.handleOptionVisibility(e,-37,"up"),this.currentPos-=1},highlightOnMouseOver(e){this.currentPos=e,this.getLiInDOM(this.currentPos).classList.add("highlight")},unhighlightOnMouseOut(){this.getLiInDOM(this.currentPos).classList.remove("highlight")},closeFilterSelect(e){this.$refs.filterSelectRef&&!this.$refs.filterSelectRef.contains(e.target)&&this.hide()}}},y$={ref:"cds-filter-select",class:"filter-select"},b$={class:"filter-select__label"},v$={for:"cds-filter-select"},_$=["id","onkeypress","placeholder","disabled","readonly"],w$={key:0,class:"option__container"},k$=["onMouseover"],C$={key:1,class:"option__container"};function x$(e,t,n,r,a,s){return i.openBlock(),i.createElementBlock("div",y$,[i.createElementVNode("div",{ref:"filterSelectRef",class:i.normalizeClass(["filter-select__container",s.inputClass]),onKeydown:[t[6]||(t[6]=i.withKeys(i.withModifiers((...o)=>s.activateSelectionOnEnter&&s.activateSelectionOnEnter(...o),["prevent"]),["enter"])),t[7]||(t[7]=i.withKeys(i.withModifiers((...o)=>s.highlightOnArrowDown&&s.highlightOnArrowDown(...o),["prevent"]),["arrow-down"])),t[8]||(t[8]=i.withKeys(i.withModifiers((...o)=>s.highlightOnArrowUp&&s.highlightOnArrowUp(...o),["prevent"]),["arrow-up"]))],onClick:t[9]||(t[9]=(...o)=>s.activateSelectionOnClick&&s.activateSelectionOnClick(...o))},[i.createElementVNode("label",b$,[i.createElementVNode("div",v$,[i.createElementVNode("span",null,i.toDisplayString(s.capitalizedLabel),1)])]),i.withDirectives(i.createElementVNode("input",{id:e.$attrs.id||a.id,ref:"filter-select-input","onUpdate:modelValue":t[0]||(t[0]=o=>a.localValue[n.optionsField]=o),type:"text",autocomplete:"off",onkeypress:`return ${a.allowSearch};`,class:i.normalizeClass(s.inputClass),placeholder:n.placeholder,disabled:n.disabled,readonly:!n.searchable,onInput:t[1]||(t[1]=(...o)=>s.filterOptions&&s.filterOptions(...o)),onFocus:t[2]||(t[2]=(...o)=>s.activeSelection&&s.activeSelection(...o)),onBlur:t[3]||(t[3]=(...o)=>s.hide&&s.hide(...o))},null,42,_$),[[i.vModelText,a.localValue[n.optionsField]]]),i.withDirectives(i.createElementVNode("div",{ref:"filter-select-options",class:i.normalizeClass(["filter-select__options",{"filter-select__options--thin":n.width==="thin","filter-select__options--default":n.width==="default","filter-select__options--wide":n.width==="wide","filter-select__options--fluid":n.fluid,"filter-select__options--down":a.direction==="down","filter-select__options--up":a.direction==="up"}])},[a.localOptions.length>0?(i.openBlock(),i.createElementBlock("ul",w$,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.localOptions,(o,l)=>(i.openBlock(),i.createElementBlock("li",{key:l,ref_for:!0,ref:`${o[n.optionsField]}-${l}`,class:"option__text",onMousedown:t[4]||(t[4]=(...d)=>s.selectItem&&s.selectItem(...d)),onMouseover:d=>s.highlightOnMouseOver(l),onMouseout:t[5]||(t[5]=d=>s.unhighlightOnMouseOut())},i.toDisplayString(o[n.optionsField]),41,k$))),128))])):(i.openBlock(),i.createElementBlock("ul",C$,t[10]||(t[10]=[i.createElementVNode("li",{class:"option__text--muted"}," Nenhuma opção encontrada ",-1)])))],2),[[i.vShow,a.active]]),i.createElementVNode("span",{class:i.normalizeClass(a.active?"filter-select__chevron--opened":"filter-select__chevron--closed")},null,2)],34)],512)}const S$=te(g$,[["render",x$],["__scopeId","data-v-a234b486"]]),M$={props:{variant:{type:String,default:"green"},targetId:{type:String,default:""},position:{type:String,default:"top-end"}}},B$={id:"cds-pulsar"};function E$(e,t,n,r,a,s){const o=i.resolveDirective("cds-floatify");return i.withDirectives((i.openBlock(),i.createElementBlock("div",B$,[i.createElementVNode("div",{class:i.normalizeClass(`pulsar__outer-circle--${n.variant}`)},[i.createElementVNode("div",{class:i.normalizeClass(`pulsar__inner-circle--${n.variant}`)},null,2)],2)])),[[o,n.targetId,n.position]])}const C4=te(M$,[["render",E$],["__scopeId","data-v-6f878a26"]]),D$={components:{CdsPulsar:C4,CdsIcon:ke},props:{modelValue:{type:Boolean,default:!0,required:!0},title:{type:String,default:"Nova funcionalidade!",validator:e=>e.length<=22},startOnScroll:{type:Boolean,default:!1,required:!1},url:{type:String,default:""},variant:{type:String,default:"green"},targetId:{type:String,default:""}},data(){return{isActive:this.modelValue,id:null,pulsarId:null,containerId:null,position:"right",isExpanded:!1,waitingConfirmation:!1,boxTop:0}},watch:{isActive(e){this.$emit("update:modelValue",e)},modelValue(e){this.isActive=e,this.handleEventAnimation()}},mounted(){this.handleEventAnimation(),document.querySelector("body").addEventListener("click",this.closeFloatingAssistant)},methods:{handleEventAnimation(){this.id=`floating-assistant$-${this._uid}`,this.pulsarId=`floating-assistant-pulsar$-${this._uid}`,this.containerId=`floating-assistant-container$-${this._uid}`,this.startOnScroll?window.addEventListener("scroll",this.startAnimation):this.startAnimation()},startAnimation(){this.startOnScroll?this.isScrolledIntoView()&&setTimeout(()=>{document.getElementById(this.id).classList.add("animation"),window.removeEventListener("scroll",this.startAnimation)},1e3):setTimeout(()=>{document.getElementById(this.id).classList.add("animation")},1e3)},isScrolledIntoView(){const{top:e,bottom:t}=document.getElementById(this.id).getBoundingClientRect();return e>=0&&t<=window.innerHeight},expand(){this.waitingConfirmation||(this.isExpanded=!0)},collapse(){this.isExpanded=!1},close(){this.collapse(),this.waitingConfirmation=!0},confirmationHandle(e){if(!e){this.isActive=!1;return}this.$emit("disable-tip",!0),this.isActive=!1},closeFloatingAssistant(e){this.$refs.floatingAssistantRef&&!this.$refs.floatingAssistantRef.contains(e.target)&&this.collapse()}}},O$=["id"],V$=["id"],$$={key:0},T$={key:1},I$={key:0,class:"floating-assistant__content"},A$={key:0,class:"floating-assistant__footer"},N$=["href"],L$={key:1,class:"floating-assistant__subtitle"},z$={key:2};function P$(e,t,n,r,a,s){const o=i.resolveComponent("cds-pulsar"),l=i.resolveComponent("cds-icon"),d=i.resolveDirective("cds-floatify");return i.openBlock(),i.createElementBlock("div",{id:a.id,class:i.normalizeClass(["floating-assistant",{"floating-assistant--hidden":!a.isActive}])},[i.createVNode(o,{id:a.pulsarId,"target-id":n.targetId,variant:n.variant},null,8,["id","target-id","variant"]),i.withDirectives((i.openBlock(),i.createElementBlock("div",{id:a.containerId,class:"floating-assistant__container"},[i.createElementVNode("div",{ref:"floatingAssistantRef",class:i.normalizeClass(["floating-assistant__dropdown",{"floating-assistant__dropdown--expanded":a.isExpanded,"floating-assistant__dropdown--confirmation":a.waitingConfirmation}]),onClick:t[3]||(t[3]=(...h)=>s.expand&&s.expand(...h))},[a.waitingConfirmation?(i.openBlock(),i.createElementBlock("div",$$,[t[4]||(t[4]=i.createTextVNode(" Ocultar dica para sempre? ")),i.createElementVNode("span",{class:i.normalizeClass(`floating-assistant__link--${n.variant}`),onClick:t[0]||(t[0]=h=>s.confirmationHandle(!0))}," Sim ",2),t[5]||(t[5]=i.createTextVNode(" / ")),i.createElementVNode("span",{class:i.normalizeClass(`floating-assistant__link--${n.variant}`),onClick:t[1]||(t[1]=h=>s.confirmationHandle(!1))}," Não ",2)])):(i.openBlock(),i.createElementBlock("div",T$,[i.createElementVNode("span",{class:i.normalizeClass(`floating-assistant__title--${n.variant}`)},i.toDisplayString(n.title),3),a.isExpanded?(i.openBlock(),i.createElementBlock("div",I$,[i.renderSlot(e.$slots,"default",{},void 0,!0),n.url?(i.openBlock(),i.createElementBlock("span",A$,[t[6]||(t[6]=i.createTextVNode(" Você pode saber mais ")),i.createElementVNode("a",{class:i.normalizeClass(`floating-assistant__link--${n.variant}`),href:n.url,target:"_blank"}," clicando aqui ",10,N$),t[7]||(t[7]=i.createTextVNode(". "))])):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("span",L$," Clique para mais informações "))])),a.isExpanded?(i.openBlock(),i.createElementBlock("div",z$,[i.createElementVNode("div",{onClick:t[2]||(t[2]=i.withModifiers((...h)=>s.close&&s.close(...h),["stop"]))},[i.createVNode(l,{class:"floating-assistant__close-button",name:"x-outline",height:"20",width:"20"})])])):i.createCommentVNode("",!0)],2)],8,V$)),[[d,a.pulsarId,a.position]])],10,O$)}const F$=te(D$,[["render",P$],["__scopeId","data-v-01d1f93e"]]),R$={class:"floating-action-button__container"},H$=["onClick"],W$={class:"floating-action-button__subitem-label"},Y$={class:"floating-action-button__subitem"},U$=te({__name:"FloatingActionButton",props:{variant:{type:String,default:"green"},icon:{type:String,default:"plus-outline"},actions:{type:Array,default:()=>[],validator:e=>e.length<=5},size:{type:String,default:"md"}},emits:["main-button-click","action-click"],setup(e,{emit:t}){i.useCssVars(y=>({"0a3aecd8":h.value,"005b6afb":l.value,"21ef27b0":f.value,"87db115e":d.value}));const n=e,r=t,a=i.ref(!1),s=i.ref(!1),o=i.ref(-1),l=i.computed(()=>{switch(n.size){case"sm":return"44px";case"md":return"56px";case"lg":return"68px";default:return"56px"}}),d=i.computed(()=>{switch(n.size){case"sm":return"4px";case"md":return"10px";case"lg":return"16px";default:return"10px"}}),h=i.computed(()=>{switch(n.size){case"sm":return"12px";case"md":return"16px";case"lg":return"20px";default:return"16px"}}),f=i.computed(()=>n.variant==="white"||n.variant==="gray"?"#3B4754":"#fff");i.watch(a,y=>{y||(s.value=!0,setTimeout(()=>{s.value=!1},500))});function m(){if(n.actions.length>0){o.value=a.value?-1:1,a.value=!a.value;return}r("main-button-click")}function g(y){a.value=!1,r("action-click",y)}return(y,_)=>(i.openBlock(),i.createElementBlock("div",R$,[a.value||s.value?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(e.actions,w=>(i.openBlock(),i.createElementBlock("div",{key:w,class:i.normalizeClass(["floating-action-button__subitem-container",{exiting:s.value}]),onClick:k=>g(w)},[i.createElementVNode("div",W$,i.toDisplayString(w==null?void 0:w.label),1),i.createElementVNode("div",Y$,[i.createVNode(ke,{name:w==null?void 0:w.icon,height:"32",width:"32"},null,8,["name"])])],10,H$))),128)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["floating-action-button__main-button",`floating-action-button__main-button--${e.variant}`]),onClick:m},[i.createVNode(i.Transition,{name:"icon-transition",mode:"out-in"},{default:i.withCtx(()=>[a.value?(i.openBlock(),i.createBlock(ke,{key:"close-icon",name:"x-outline",height:"20",width:"20",style:i.normalizeStyle({"--rotation-direction":o.value})},null,8,["style"])):(i.openBlock(),i.createBlock(ke,{key:"main-icon",name:e.icon,height:"20",width:"20",style:i.normalizeStyle({"--rotation-direction":o.value})},null,8,["name","style"]))]),_:1})],2)]))}},[["__scopeId","data-v-3f44d904"]]),Lf={props:{modelValue:{type:Boolean,default:!1},width:{type:[String,Number],default:250},fitContentWidth:{type:Boolean,default:!1},targetId:{type:String,default:""},defaultPlacement:{type:String,default:null}},data(){return{id:"",target:"",popover:"",popperInstance:null,uniqueKey:Gr()}},computed:{variationPlacement(){return this.rightAligned?"end":"start"},popoverWidth(){return this.fitContentWidth?"fit-content":`${this.width}px`}},watch:{modelValue(e){e?this.show():this.hide()},targetId(e){this.setPopper(e)}},mounted(){this.id=`cds-popover-${this.uniqueKey}`,this.setPopper(this.targetId),document.querySelector("body").addEventListener("click",this.closeRichTooltip)},methods:{setPopper(e){this.$nextTick(()=>{this.target=document.querySelector(`[id='${e}']`),this.popover=document.querySelector(`#${this.id}`),this.popperInstance=ll(this.target,this.popover,{placement:this.defaultPlacement===null?"bottom":this.defaultPlacement,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{fallbackPlacements:["top"]}}]})})},show(){this.popover.setAttribute("data-show",""),this.popover.classList.remove("popover-hide"),this.popover.classList.add("popover-show"),this.$emit("update:modelValue",!0),this.popperInstance.update()},hide(){this.popover.classList.remove("popover-show"),this.popover.classList.add("popover-hide"),setTimeout(()=>{this.popover.removeAttribute("data-show")},350),this.$nextTick(()=>{this.popperInstance.setOptions(e=>({...e,modifiers:[...e.modifiers,{name:"eventListeners",enabled:!1}]})),this.$emit("update:modelValue",!1)})},closeRichTooltip(e){this.$refs.richTooltipRef&&!this.$refs.richTooltipRef.contains(e.target)&&this.hide()}}},x4=()=>{i.useCssVars(e=>({39058308:e.popoverWidth}))},S4=Lf.setup;Lf.setup=S4?(e,t)=>(x4(),S4(e,t)):x4;const j$=["id"];function q$(e,t,n,r,a,s){return i.openBlock(),i.createElementBlock("div",{id:e.$attrs.id||a.id,ref:"richTooltipRef",class:"richTooltip"},[i.renderSlot(e.$slots,"default",{},void 0,!0)],8,j$)}const zf=te(Lf,[["render",q$],["__scopeId","data-v-bcda0e86"]]),Pf={components:{CdsRichTooltip:zf},props:{value:{type:Number,default:0,validator:e=>e>=0&&e<=100},variant:{type:String,default:"green"},size:{type:Number,default:300},subtitle:{type:String,default:""},target:{type:Number,default:0,validator:e=>e>=0&&e<=100},showTarget:{type:Boolean,default:!1}},data(){return{showPopover:!1,uniqueKey:Gr()}},computed:{progressStyle(){return{"--value":this.value,"--size":this.size}},chartProgressValue(){return 198*(1-this.value/100)},targetValue(){let e=this.target-1;return e>=98&&(e=98),198*(1-e/100)},formatedValue(){return`${this.value.toLocaleString("pt-br",{minimumFractionDigits:1})}%`}},methods:{hasSlot:Za}},M4=()=>{i.useCssVars(e=>({eaad879e:e.chartProgressValue,cfd9d6d6:e.targetValue}))},B4=Pf.setup;Pf.setup=B4?(e,t)=>(M4(),B4(e,t)):M4;const G$={class:"responsive-container"},K$=["id"],Z$={transform:"scale(1.20) translate(-9.5 -12)"},X$={x:"50%",y:"50%","dominant-baseline":"middle","text-anchor":"middle",class:"value"},J$={x:"50%",y:"62%","dominant-baseline":"middle","text-anchor":"middle",class:"subtitle"};function Q$(e,t,n,r,a,s){const o=i.resolveComponent("cds-rich-tooltip");return i.openBlock(),i.createElementBlock("span",null,[i.createElementVNode("div",G$,[i.createElementVNode("div",{class:"gauge-chart",style:i.normalizeStyle(s.progressStyle)},[(i.openBlock(),i.createElementBlock("svg",{id:a.uniqueKey,class:i.normalizeClass(`svg--${n.variant}`),viewBox:"0 0 110 100",onMouseover:t[0]||(t[0]=l=>a.showPopover=!0),onMouseleave:t[1]||(t[1]=l=>a.showPopover=!1)},[t[5]||(t[5]=i.createElementVNode("linearGradient",{id:"gradient",x1:"0",y1:"0",x2:"0",y2:"100%",gradientTransform:"rotate(-340)"},[i.createElementVNode("stop",{class:"stop",offset:"1%"}),i.createElementVNode("stop",{class:"stop-2",offset:"99%"})],-1)),i.createElementVNode("g",Z$,[t[3]||(t[3]=i.createElementVNode("path",{class:"indicator-bar",d:"M30,90 A40,40 0 1,1 80,90",fill:"none"},null,-1)),t[4]||(t[4]=i.createElementVNode("path",{fill:"none",class:"indicator-progress",d:"M30,90 A40,40 0 1,1 80,90"},null,-1)),n.showTarget?(i.openBlock(),i.createElementBlock("path",{key:0,fill:"none",class:i.normalizeClass(["indicator-target",`indicator-target--${n.variant}`]),d:"M30,90 A40,40 0 1,1 80,90"},null,2)):i.createCommentVNode("",!0)]),i.createElementVNode("text",X$,i.toDisplayString(s.formatedValue),1),i.createElementVNode("text",J$,i.toDisplayString(n.subtitle),1)],42,K$))],4),s.hasSlot(e.$slots,"popover")?(i.openBlock(),i.createBlock(o,{key:0,modelValue:a.showPopover,"onUpdate:modelValue":t[2]||(t[2]=l=>a.showPopover=l),"default-placement":"top","target-id":a.uniqueKey},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"popover",{},void 0,!0)]),_:3},8,["modelValue","target-id"])):i.createCommentVNode("",!0)])])}const eT=te(Pf,[["render",Q$],["__scopeId","data-v-0c7cac1e"]]),tT={class:"grid-item"},nT=te({__name:"GridItem",props:{colSpan:{type:[Number,String],default:"auto"},rowSpan:{type:[Number,String],default:"1"},colStart:{type:[Number,String],default:"auto"},rowStart:{type:[Number,String],default:"auto"},gap:{type:[Number,String],default:0},rowGap:{type:[Number,String],default:0},colGap:{type:[Number,String],default:0},subGrid:{type:Boolean,default:!1},justify:{type:String,default:"auto"},align:{type:String,default:"auto"},direction:{type:String,default:"row"}},setup(e){i.useCssVars(o=>({"74e6f3ab":e.align,"00119c0e":a.value,"057d4122":s.value,"0cc4bb96":n.value,"5597afb4":r.value,"7a019494":e.justify,"5912a125":e.direction}));const t=e,n=i.computed(()=>{if(!t.colSpan&&!t.colStart)return"auto";const o=t.colStart?t.colStart:1,l=t.colSpan?`span ${t.colSpan}`:1;return`${o} / ${l}`}),r=i.computed(()=>{if(!t.rowSpan&&!t.rowStart)return"auto";const o=t.rowStart?t.rowStart:1,l=t.rowSpan?`span ${t.rowSpan}`:1;return`${o} / ${l}`}),a=i.computed(()=>t.subGrid?"grid":"block"),s=i.computed(()=>{let o="";return t.gap&&t.gap!==0&&t.gap!=="0"?Number.isFinite(t.gap)?`${t.gap}px`:t.gap:(t.rowGap?Number.isFinite(t.rowGap)?o=`${t.rowGap}px`:o=t.rowGap:o="0px",t.colGap?Number.isFinite(t.colGap)?o+=` ${t.colGap}px`:o+=` ${t.colGap}`:o+=" 0px",o)});return(o,l)=>(i.openBlock(),i.createElementBlock("div",tT,[i.renderSlot(o.$slots,"default",{},void 0,!0)]))}},[["__scopeId","data-v-47eebbde"]]),Ff={props:{variant:{type:String,default:"info"},animated:{type:Boolean,default:!1},duration:{type:Number,default:1},delay:{type:Number,default:0},highlightedText:{type:[String,null],default:null},caseSensitive:{type:Boolean,default:!1}},data(){return{substrings:[]}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},slotString(){return this.hasSlots?this.$slots.default()[0].children:""},normalizedSlotString(){return this.normalize(this.slotString)},normalizedHighlightText(){return this.normalize(this.highlightedText)},isAValidSubstring(){return this.normalizedSlotString.includes(this.normalizedHighlightText)},paddingResolver(){return this.highlightedText?"4px 1px":"4px"},dynamicHighlightClass(){let e="";switch(this.animated&&(e="highlight__container--highlighted"),this.variant){case"info":return`${e} highlight__container--info`;case"success":return`${e} highlight__container--success`;case"danger":return`${e} highlight__container--danger`;default:return`${e} highlight__container--info`}},dynamicStyle(){return{"--duration":`${this.duration}s`,"--delay":`${this.delay}s`}}},watch:{highlightedText(){this.splitContent()}},mounted(){this.splitContent()},methods:{normalize(e){const t={a:"[aáàâã]",á:"[aáàâã]",à:"[aáàâã]",â:"[aáàâã]",ã:"[aáàâã]",e:"[eéê]",é:"[eéê]",ê:"[eéê]",i:"[ií]",í:"[ií]",o:"[oóôõ]",ó:"[oóôõ]",ô:"[oóôõ]",õ:"[oóôõ]",u:"[uúü]",ú:"[uúü]",ü:"[uúü]"},n={a:"[aáàâã]",á:"[aáàâã]",à:"[aáàâã]",â:"[aáàâã]",ã:"[aáàâã]",e:"[eéê]",é:"[eéê]",ê:"[eéê]",i:"[ií]",í:"[ií]",o:"[oóôõ]",ó:"[oóôõ]",ô:"[oóôõ]",õ:"[oóôõ]",u:"[uúü]",ú:"[uúü]",ü:"[uúü]",A:"[AÁÀÂÃ]",Á:"[AÁÀÂÃ]",À:"[AÁÀÂÃ]",Â:"[AÁÀÂÃ]",Ã:"[AÁÀÂÃ]",E:"[EÉÊ]",É:"[EÉÊ]",Ê:"[EÉÊ]",I:"[IÍ]",Í:"[IÍ]",O:"[OÓÔÕ]",Ó:"[OÓÔÕ]",Ô:"[OÓÔÕ]",Õ:"[OÓÔÕ]",U:"[UÚÜ]",Ú:"[UÚÜ]",Ü:"[UÚÜ]"};return this.caseSensitive?e==null?void 0:e.replace(/[aáàâãeéêiíoóôõuúüAÁÀÂÃEÉÊIÍOÓÔÕUÚÜ]/g,r=>n[r]||r):e==null?void 0:e.toLowerCase().replace(/[aáàâãeéêiíoóôõuúü]/g,r=>t[r]||r)},splitContent(){let e=this.caseSensitive?"g":"gi",t=new RegExp(`(${this.normalizedHighlightText})`,e),n=this.slotString.split(t);this.substrings=n.map((r,a)=>({string:r,highlighted:new RegExp(`^${this.normalizedHighlightText}$`,e).test(this.caseSensitive?r:r==null?void 0:r.toLowerCase()),id:a}))}}},E4=()=>{i.useCssVars(e=>({"6b796b56":e.paddingResolver}))},D4=Ff.setup;Ff.setup=D4?(e,t)=>(E4(),D4(e,t)):E4;function iT(e,t,n,r,a,s){return n.highlightedText&&s.isAValidSubstring?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(a.substrings,o=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:o.id},[o.highlighted?(i.openBlock(),i.createElementBlock("mark",{key:0,class:i.normalizeClass(["highlight__container",s.dynamicHighlightClass]),style:i.normalizeStyle(s.dynamicStyle)},i.toDisplayString(o.string),7)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(o.string),1)],64))],64))),128)):(i.openBlock(),i.createElementBlock("mark",{key:1,class:i.normalizeClass(["highlight__container",s.dynamicHighlightClass]),style:i.normalizeStyle(s.dynamicStyle)},[i.renderSlot(e.$slots,"default",{},void 0,!0)],6))}const O4=te(Ff,[["render",iT],["__scopeId","data-v-3c7c0a20"]]),V4=["sm","md","lg"],rT={components:{CdsIcon:ke,CdsTooltip:sd},props:{size:{type:String,default:"md",validator:e=>V4.includes(e)},icon:{type:String,default:"create-outline"},disabled:{type:Boolean,default:!1},tooltipText:{type:String,default:null},feedbackOnClick:{type:Boolean,default:!1},feedbackIcon:{type:String,default:"check-outline"},variant:{type:String,default:"white"}},data(){return{predefinedSizes:V4,innerTooltipText:this.tooltipText,internalIcon:this.icon,inputControlPanel:0}},computed:{predefinedSize(){return`cds-icon-button--${this.size}`},computedModifiers(){const e=this.disabled?"cds-icon-button--disabled":"",t=`cds-icon-button__container--${this.variant}`;return`${e} ${this.predefinedSize} ${t}`}},watch:{tooltipText(){this.innerTooltipText=this.tooltipText}},methods:{clickHandler(e){this.disabled||(this.feedbackOnClick&&(this.inputControlPanel+=1,this.internalIcon=this.feedbackIcon,setTimeout(()=>{this.internalIcon=this.icon,this.inputControlPanel+=1},1e3),this.inputControlPanel+=1),this.$emit("cds-click",e))}}},aT={id:"cds-icon-button"};function sT(e,t,n,r,a,s){const o=i.resolveComponent("cds-icon");return i.openBlock(),i.createElementBlock("span",aT,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.tooltipText?"cds-tooltip":"span"),{text:a.innerTooltipText},{default:i.withCtx(()=>[i.createElementVNode("button",{class:i.normalizeClass(["cds-icon-button__container",s.computedModifiers]),onClick:t[0]||(t[0]=(...l)=>s.clickHandler&&s.clickHandler(...l))},[(i.openBlock(),i.createBlock(o,{key:a.inputControlPanel,name:a.internalIcon,class:"cds-icon-button__icon"},null,8,["name"]))],2)]),_:1},8,["text"]))])}const fu=te(rT,[["render",sT],["__scopeId","data-v-9242e925"]]);var pu={exports:{}};pu.exports,function(e,t){var n=200,r="__lodash_hash_undefined__",a=1,s=2,o=9007199254740991,l="[object Arguments]",d="[object Array]",h="[object AsyncFunction]",f="[object Boolean]",m="[object Date]",g="[object Error]",y="[object Function]",_="[object GeneratorFunction]",w="[object Map]",k="[object Number]",C="[object Null]",M="[object Object]",E="[object Promise]",x="[object Proxy]",$="[object RegExp]",I="[object Set]",P="[object String]",T="[object Symbol]",W="[object Undefined]",U="[object WeakMap]",ee="[object ArrayBuffer]",Y="[object DataView]",ne="[object Float32Array]",le="[object Float64Array]",J="[object Int8Array]",pe="[object Int16Array]",Q="[object Int32Array]",me="[object Uint8Array]",ge="[object Uint8ClampedArray]",z="[object Uint16Array]",fe="[object Uint32Array]",he=/[\\^$.*+?()[\]{}|]/g,De=/^\[object .+?Constructor\]$/,Oe=/^(?:0|[1-9]\d*)$/,we={};we[ne]=we[le]=we[J]=we[pe]=we[Q]=we[me]=we[ge]=we[z]=we[fe]=!0,we[l]=we[d]=we[ee]=we[f]=we[Y]=we[m]=we[g]=we[y]=we[w]=we[k]=we[M]=we[$]=we[I]=we[P]=we[U]=!1;var Ne=typeof yn=="object"&&yn&&yn.Object===Object&&yn,it=typeof self=="object"&&self&&self.Object===Object&&self,Pe=Ne||it||Function("return this")(),de=t&&!t.nodeType&&t,xe=de&&!0&&e&&!e.nodeType&&e,Ie=xe&&xe.exports===de,Fe=Ie&&Ne.process,Ye=function(){try{return Fe&&Fe.binding&&Fe.binding("util")}catch{}}(),et=Ye&&Ye.isTypedArray;function Pt(v,D){for(var N=-1,Z=v==null?0:v.length,ze=0,Be=[];++N<Z;){var rt=v[N];D(rt,N,v)&&(Be[ze++]=rt)}return Be}function tt(v,D){for(var N=-1,Z=D.length,ze=v.length;++N<Z;)v[ze+N]=D[N];return v}function yt(v,D){for(var N=-1,Z=v==null?0:v.length;++N<Z;)if(D(v[N],N,v))return!0;return!1}function Zt(v,D){for(var N=-1,Z=Array(v);++N<v;)Z[N]=D(N);return Z}function Xt(v){return function(D){return v(D)}}function ft(v,D){return v.has(D)}function ot(v,D){return v==null?void 0:v[D]}function $t(v){var D=-1,N=Array(v.size);return v.forEach(function(Z,ze){N[++D]=[ze,Z]}),N}function Ct(v,D){return function(N){return v(D(N))}}function Bt(v){var D=-1,N=Array(v.size);return v.forEach(function(Z){N[++D]=Z}),N}var xt=Array.prototype,nn=Function.prototype,Et=Object.prototype,oe=Pe["__core-js_shared__"],Le=nn.toString,Ue=Et.hasOwnProperty,rn=function(){var v=/[^.]+$/.exec(oe&&oe.keys&&oe.keys.IE_PROTO||"");return v?"Symbol(src)_1."+v:""}(),pn=Et.toString,ae=RegExp("^"+Le.call(Ue).replace(he,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),R=Ie?Pe.Buffer:void 0,K=Pe.Symbol,be=Pe.Uint8Array,j=Et.propertyIsEnumerable,V=xt.splice,G=K?K.toStringTag:void 0,ue=Object.getOwnPropertySymbols,Me=R?R.isBuffer:void 0,Xe=Ct(Object.keys,Object),ut=$n(Pe,"DataView"),Dt=$n(Pe,"Map"),ln=$n(Pe,"Promise"),Jt=$n(Pe,"Set"),Gn=$n(Pe,"WeakMap"),bt=$n(Object,"create"),zn=vn(ut),On=vn(Dt),ai=vn(ln),Ui=vn(Jt),Vr=vn(Gn),So=K?K.prototype:void 0,ss=So?So.valueOf:void 0;function cn(v){var D=-1,N=v==null?0:v.length;for(this.clear();++D<N;){var Z=v[D];this.set(Z[0],Z[1])}}function gc(){this.__data__=bt?bt(null):{},this.size=0}function yc(v){var D=this.has(v)&&delete this.__data__[v];return this.size-=D?1:0,D}function bc(v){var D=this.__data__;if(bt){var N=D[v];return N===r?void 0:N}return Ue.call(D,v)?D[v]:void 0}function vc(v){var D=this.__data__;return bt?D[v]!==void 0:Ue.call(D,v)}function _c(v,D){var N=this.__data__;return this.size+=this.has(v)?0:1,N[v]=bt&&D===void 0?r:D,this}cn.prototype.clear=gc,cn.prototype.delete=yc,cn.prototype.get=bc,cn.prototype.has=vc,cn.prototype.set=_c;function dn(v){var D=-1,N=v==null?0:v.length;for(this.clear();++D<N;){var Z=v[D];this.set(Z[0],Z[1])}}function wc(){this.__data__=[],this.size=0}function kc(v){var D=this.__data__,N=Tr(D,v);if(N<0)return!1;var Z=D.length-1;return N==Z?D.pop():V.call(D,N,1),--this.size,!0}function Cc(v){var D=this.__data__,N=Tr(D,v);return N<0?void 0:D[N][1]}function xc(v){return Tr(this.__data__,v)>-1}function Sc(v,D){var N=this.__data__,Z=Tr(N,v);return Z<0?(++this.size,N.push([v,D])):N[Z][1]=D,this}dn.prototype.clear=wc,dn.prototype.delete=kc,dn.prototype.get=Cc,dn.prototype.has=xc,dn.prototype.set=Sc;function Vn(v){var D=-1,N=v==null?0:v.length;for(this.clear();++D<N;){var Z=v[D];this.set(Z[0],Z[1])}}function ya(){this.size=0,this.__data__={hash:new cn,map:new(Dt||dn),string:new cn}}function Mc(v){var D=Pn(this,v).delete(v);return this.size-=D?1:0,D}function ba(v){return Pn(this,v).get(v)}function Bc(v){return Pn(this,v).has(v)}function Ec(v,D){var N=Pn(this,v),Z=N.size;return N.set(v,D),this.size+=N.size==Z?0:1,this}Vn.prototype.clear=ya,Vn.prototype.delete=Mc,Vn.prototype.get=ba,Vn.prototype.has=Bc,Vn.prototype.set=Ec;function va(v){var D=-1,N=v==null?0:v.length;for(this.__data__=new Vn;++D<N;)this.add(v[D])}function os(v){return this.__data__.set(v,r),this}function $r(v){return this.__data__.has(v)}va.prototype.add=va.prototype.push=os,va.prototype.has=$r;function si(v){var D=this.__data__=new dn(v);this.size=D.size}function ls(){this.__data__=new dn,this.size=0}function Dc(v){var D=this.__data__,N=D.delete(v);return this.size=D.size,N}function Oc(v){return this.__data__.get(v)}function Vc(v){return this.__data__.has(v)}function Mo(v,D){var N=this.__data__;if(N instanceof dn){var Z=N.__data__;if(!Dt||Z.length<n-1)return Z.push([v,D]),this.size=++N.size,this;N=this.__data__=new Vn(Z)}return N.set(v,D),this.size=N.size,this}si.prototype.clear=ls,si.prototype.delete=Dc,si.prototype.get=Oc,si.prototype.has=Vc,si.prototype.set=Mo;function Bo(v,D){var N=_a(v),Z=!N&&ds(v),ze=!N&&!Z&&wa(v),Be=!N&&!Z&&!ze&&Fo(v),rt=N||Z||ze||Be,at=rt?Zt(v.length,String):[],Ke=at.length;for(var lt in v)Ue.call(v,lt)&&!(rt&&(lt=="length"||ze&&(lt=="offset"||lt=="parent")||Be&&(lt=="buffer"||lt=="byteLength"||lt=="byteOffset")||To(lt,Ke)))&&at.push(lt);return at}function Tr(v,D){for(var N=v.length;N--;)if(zo(v[N][0],D))return N;return-1}function Ir(v,D,N){var Z=D(v);return _a(v)?Z:tt(Z,N(v))}function Ar(v){return v==null?v===void 0?W:C:G&&G in Object(v)?Ci(v):Lo(v)}function cs(v){return Si(v)&&Ar(v)==l}function Nr(v,D,N,Z,ze){return v===D?!0:v==null||D==null||!Si(v)&&!Si(D)?v!==v&&D!==D:Eo(v,D,N,Z,Nr,ze)}function Eo(v,D,N,Z,ze,Be){var rt=_a(v),at=_a(D),Ke=rt?d:xi(v),lt=at?d:xi(D);Ke=Ke==l?M:Ke,lt=lt==l?M:lt;var Ft=Ke==M,_n=lt==M,Wt=Ke==lt;if(Wt&&wa(v)){if(!wa(D))return!1;rt=!0,Ft=!1}if(Wt&&!Ft)return Be||(Be=new si),rt||Fo(v)?Lr(v,D,N,Z,ze,Be):Tc(v,D,Ke,N,Z,ze,Be);if(!(N&a)){var _t=Ft&&Ue.call(v,"__wrapped__"),an=_n&&Ue.call(D,"__wrapped__");if(_t||an){var qi=_t?v.value():v,Mi=an?D.value():D;return Be||(Be=new si),ze(qi,Mi,N,Z,Be)}}return Wt?(Be||(Be=new si),Vo(v,D,N,Z,ze,Be)):!1}function $c(v){if(!Po(v)||Ao(v))return!1;var D=ka(v)?ae:De;return D.test(vn(v))}function Do(v){return Si(v)&&hs(v.length)&&!!we[Ar(v)]}function Oo(v){if(!No(v))return Xe(v);var D=[];for(var N in Object(v))Ue.call(v,N)&&N!="constructor"&&D.push(N);return D}function Lr(v,D,N,Z,ze,Be){var rt=N&a,at=v.length,Ke=D.length;if(at!=Ke&&!(rt&&Ke>at))return!1;var lt=Be.get(v);if(lt&&Be.get(D))return lt==D;var Ft=-1,_n=!0,Wt=N&s?new va:void 0;for(Be.set(v,D),Be.set(D,v);++Ft<at;){var _t=v[Ft],an=D[Ft];if(Z)var qi=rt?Z(an,_t,Ft,D,v,Be):Z(_t,an,Ft,v,D,Be);if(qi!==void 0){if(qi)continue;_n=!1;break}if(Wt){if(!yt(D,function(Mi,cr){if(!ft(Wt,cr)&&(_t===Mi||ze(_t,Mi,N,Z,Be)))return Wt.push(cr)})){_n=!1;break}}else if(!(_t===an||ze(_t,an,N,Z,Be))){_n=!1;break}}return Be.delete(v),Be.delete(D),_n}function Tc(v,D,N,Z,ze,Be,rt){switch(N){case Y:if(v.byteLength!=D.byteLength||v.byteOffset!=D.byteOffset)return!1;v=v.buffer,D=D.buffer;case ee:return!(v.byteLength!=D.byteLength||!Be(new be(v),new be(D)));case f:case m:case k:return zo(+v,+D);case g:return v.name==D.name&&v.message==D.message;case $:case P:return v==D+"";case w:var at=$t;case I:var Ke=Z&a;if(at||(at=Bt),v.size!=D.size&&!Ke)return!1;var lt=rt.get(v);if(lt)return lt==D;Z|=s,rt.set(v,D);var Ft=Lr(at(v),at(D),Z,ze,Be,rt);return rt.delete(v),Ft;case T:if(ss)return ss.call(v)==ss.call(D)}return!1}function Vo(v,D,N,Z,ze,Be){var rt=N&a,at=ji(v),Ke=at.length,lt=ji(D),Ft=lt.length;if(Ke!=Ft&&!rt)return!1;for(var _n=Ke;_n--;){var Wt=at[_n];if(!(rt?Wt in D:Ue.call(D,Wt)))return!1}var _t=Be.get(v);if(_t&&Be.get(D))return _t==D;var an=!0;Be.set(v,D),Be.set(D,v);for(var qi=rt;++_n<Ke;){Wt=at[_n];var Mi=v[Wt],cr=D[Wt];if(Z)var Ac=rt?Z(cr,Mi,Wt,D,v,Be):Z(Mi,cr,Wt,v,D,Be);if(!(Ac===void 0?Mi===cr||ze(Mi,cr,N,Z,Be):Ac)){an=!1;break}qi||(qi=Wt=="constructor")}if(an&&!qi){var ps=v.constructor,mn=D.constructor;ps!=mn&&"constructor"in v&&"constructor"in D&&!(typeof ps=="function"&&ps instanceof ps&&typeof mn=="function"&&mn instanceof mn)&&(an=!1)}return Be.delete(v),Be.delete(D),an}function ji(v){return Ir(v,fs,$o)}function Pn(v,D){var N=v.__data__;return Io(D)?N[typeof D=="string"?"string":"hash"]:N.map}function $n(v,D){var N=ot(v,D);return $c(N)?N:void 0}function Ci(v){var D=Ue.call(v,G),N=v[G];try{v[G]=void 0;var Z=!0}catch{}var ze=pn.call(v);return Z&&(D?v[G]=N:delete v[G]),ze}var $o=ue?function(v){return v==null?[]:(v=Object(v),Pt(ue(v),function(D){return j.call(v,D)}))}:vt,xi=Ar;(ut&&xi(new ut(new ArrayBuffer(1)))!=Y||Dt&&xi(new Dt)!=w||ln&&xi(ln.resolve())!=E||Jt&&xi(new Jt)!=I||Gn&&xi(new Gn)!=U)&&(xi=function(v){var D=Ar(v),N=D==M?v.constructor:void 0,Z=N?vn(N):"";if(Z)switch(Z){case zn:return Y;case On:return w;case ai:return E;case Ui:return I;case Vr:return U}return D});function To(v,D){return D=D??o,!!D&&(typeof v=="number"||Oe.test(v))&&v>-1&&v%1==0&&v<D}function Io(v){var D=typeof v;return D=="string"||D=="number"||D=="symbol"||D=="boolean"?v!=="__proto__":v===null}function Ao(v){return!!rn&&rn in v}function No(v){var D=v&&v.constructor,N=typeof D=="function"&&D.prototype||Et;return v===N}function Lo(v){return pn.call(v)}function vn(v){if(v!=null){try{return Le.call(v)}catch{}try{return v+""}catch{}}return""}function zo(v,D){return v===D||v!==v&&D!==D}var ds=cs(function(){return arguments}())?cs:function(v){return Si(v)&&Ue.call(v,"callee")&&!j.call(v,"callee")},_a=Array.isArray;function us(v){return v!=null&&hs(v.length)&&!ka(v)}var wa=Me||pt;function Ic(v,D){return Nr(v,D)}function ka(v){if(!Po(v))return!1;var D=Ar(v);return D==y||D==_||D==h||D==x}function hs(v){return typeof v=="number"&&v>-1&&v%1==0&&v<=o}function Po(v){var D=typeof v;return v!=null&&(D=="object"||D=="function")}function Si(v){return v!=null&&typeof v=="object"}var Fo=et?Xt(et):Do;function fs(v){return us(v)?Bo(v):Oo(v)}function vt(){return[]}function pt(){return!1}e.exports=Ic}(pu,pu.exports);var oT=pu.exports;const ao=Uh(oT),lT={props:{tabs:{type:Array,default:()=>[],required:!0,validator:e=>!e.filter(n=>on(n.title)||on(n.name)).length},activeTab:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:e=>Ri.includes(e)}},data(){return{internalActiveTab:this.activeTab,colorOptions:Ri}},computed:{activeBorderStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},watch:{tabs:{handler(e){const t=e.filter(n=>n.name===this.activeTab.name);[this.internalActiveTab]=t.length?t:e},immediate:!0}},methods:{colorHexCode:to,getSlotName(e){return e.name},handleClick(e,t){this.$emit("tab-click",{event:e,item:t}),!this.internalActiveTab.disableTabChange&&(this.$emit("change",{event:e,item:t}),this.internalActiveTab=t)},isActive(e){return ao(this.internalActiveTab,e)},indicatorClass(e){return this.isActive(e)?`tab__indicator--active--${this.variant}`:""}}},cT={id:"inner-tabs"},dT={class:"inner-tabs__header-container"},uT={class:"inner-tabs__header"},hT=["onClick"],fT={class:"inner-tabs__content"};function pT(e,t,n,r,a,s){return i.openBlock(),i.createElementBlock("div",cT,[i.createElementVNode("div",dT,[i.createElementVNode("ul",uT,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.tabs,(o,l)=>(i.openBlock(),i.createElementBlock("li",{key:`${l}-${o.name}-tab`,role:"presentation"},[i.createElementVNode("a",{role:"tab",href:"javascript:void(0)",target:"_self",class:i.normalizeClass(["inner-tabs__tab",s.isActive(o)?"inner-tabs__tab--active":"inner-tabs__tab--inactive"]),onClick:d=>s.handleClick(d,o)},i.toDisplayString(o.title),11,hT),i.createElementVNode("div",{class:i.normalizeClass(s.indicatorClass(o)),style:i.normalizeStyle(s.activeBorderStyle)},null,6)]))),128))])]),i.createElementVNode("div",fT,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.tabs,(o,l)=>(i.openBlock(),i.createElementBlock("div",{key:`${l}-${o.name}-tab`,role:"tabpanel",class:i.normalizeClass(["content__pane",s.isActive(o)?"content__pane--active":"content__pane--inactive"])},[i.renderSlot(e.$slots,s.getSlotName(o))],2))),128))])])}const mT=te(lT,[["render",pT]]),gT={key:0,class:"landscape-overlay"},yT={class:"landscape-overlay__container"},bT=["src"],vT={class:"landscape-overlay__title"},_T={class:"landscape-overlay__subtitle"},wT={key:0,class:"landscape-overlay__button"},kT=te({__name:"InteractionBlockingOverlay",props:{blockInteraction:{type:String,required:!0,default:"mobile",validator:e=>["mobile","landscape"].includes(e.toLowerCase())},title:{type:String,default:""},description:{type:String,default:""},buttonVariant:{type:String,default:"green",validator:e=>Ri.includes(e.toLowerCase())},buttonText:{type:String,default:"Ir para o início"}},emits:["button-click"],setup(e,{emit:t}){const n=e,r=t,a=i.ref(!1),s=i.ref(""),o=i.ref(""),l=i.ref(""),d=i.computed(()=>Xa("smartphone")||Xa("tablet")),h=i.computed(()=>window.outerWidth>window.outerHeight&&d.value);return i.watch(a,f=>{f?document.body.style.overflow="hidden":document.body.style.overflow="auto"}),i.watchEffect(()=>{!d.value&&!h.value&&(a.value=!1)}),i.onMounted(()=>{if(n.blockInteraction==="mobile"){d.value&&(a.value=!0,n.title===""?s.value="Acesse o conteúdo por um computador":s.value=n.title,n.description===""?o.value="Esta tela não é otimizada para navegação em celular.":o.value=n.description,l.value="/img/page-not-responsive.svg");return}n.blockInteraction==="landscape"&&h.value&&(a.value=!0,n.title===""?s.value="Rotacione seu dispositivo":s.value=n.title,n.description===""?o.value="Este conteúdo é otimizado para a visualização em modo retrato.":o.value=n.description,l.value="/img/smartphone-rotation.svg")}),(f,m)=>a.value?(i.openBlock(),i.createElementBlock("div",gT,[i.createElementVNode("div",yT,[i.createElementVNode("img",{class:"landscape-overlay__image",src:l.value},null,8,bT),i.createElementVNode("span",vT,i.toDisplayString(s.value),1),i.createElementVNode("span",_T,i.toDisplayString(o.value),1),f.block-f.interaction==="mobile"?(i.openBlock(),i.createElementBlock("div",wT,[i.createVNode(ti,{variant:e.buttonVariant,block:"",onButtonClick:m[0]||(m[0]=g=>r("button-click"))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.buttonText),1)]),_:1},8,["variant"])])):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)}},[["__scopeId","data-v-a0718af5"]]);var CT=Object.defineProperty,xT=(e,t,n)=>t in e?CT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ee=(e,t,n)=>(xT(e,typeof t!="symbol"?t+"":t,n),n),mu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $4(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ST=Object.prototype,MT=ST.hasOwnProperty;function BT(e,t){return e!=null&&MT.call(e,t)}var ET=BT,DT=Array.isArray,Hi=DT,OT=typeof mu=="object"&&mu&&mu.Object===Object&&mu,T4=OT,VT=T4,$T=typeof self=="object"&&self&&self.Object===Object&&self,TT=VT||$T||Function("return this")(),ar=TT,IT=ar,AT=IT.Symbol,gu=AT,I4=gu,A4=Object.prototype,NT=A4.hasOwnProperty,LT=A4.toString,rc=I4?I4.toStringTag:void 0;function zT(e){var t=NT.call(e,rc),n=e[rc];try{e[rc]=void 0;var r=!0}catch{}var a=LT.call(e);return r&&(t?e[rc]=n:delete e[rc]),a}var PT=zT,FT=Object.prototype,RT=FT.toString;function HT(e){return RT.call(e)}var WT=HT,N4=gu,YT=PT,UT=WT,jT="[object Null]",qT="[object Undefined]",L4=N4?N4.toStringTag:void 0;function GT(e){return e==null?e===void 0?qT:jT:L4&&L4 in Object(e)?YT(e):UT(e)}var sr=GT;function KT(e){return e!=null&&typeof e=="object"}var Wi=KT,ZT=sr,XT=Wi,JT="[object Symbol]";function QT(e){return typeof e=="symbol"||XT(e)&&ZT(e)==JT}var Rf=QT,eI=Hi,tI=Rf,nI=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,iI=/^\w*$/;function rI(e,t){if(eI(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||tI(e)?!0:iI.test(e)||!nI.test(e)||t!=null&&e in Object(t)}var Hf=rI;function aI(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Sr=aI,sI=sr,oI=Sr,lI="[object AsyncFunction]",cI="[object Function]",dI="[object GeneratorFunction]",uI="[object Proxy]";function hI(e){if(!oI(e))return!1;var t=sI(e);return t==cI||t==dI||t==lI||t==uI}var Qa=hI,fI=ar,pI=fI["__core-js_shared__"],mI=pI,Wf=mI,z4=function(){var e=/[^.]+$/.exec(Wf&&Wf.keys&&Wf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function gI(e){return!!z4&&z4 in e}var yI=gI,bI=Function.prototype,vI=bI.toString;function _I(e){if(e!=null){try{return vI.call(e)}catch{}try{return e+""}catch{}}return""}var P4=_I,wI=Qa,kI=yI,CI=Sr,xI=P4,SI=/[\\^$.*+?()[\]{}|]/g,MI=/^\[object .+?Constructor\]$/,BI=Function.prototype,EI=Object.prototype,DI=BI.toString,OI=EI.hasOwnProperty,VI=RegExp("^"+DI.call(OI).replace(SI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $I(e){if(!CI(e)||kI(e))return!1;var t=wI(e)?VI:MI;return t.test(xI(e))}var TI=$I;function II(e,t){return e==null?void 0:e[t]}var AI=II,NI=TI,LI=AI;function zI(e,t){var n=LI(e,t);return NI(n)?n:void 0}var es=zI,PI=es,FI=PI(Object,"create"),yu=FI,F4=yu;function RI(){this.__data__=F4?F4(null):{},this.size=0}var HI=RI;function WI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var YI=WI,UI=yu,jI="__lodash_hash_undefined__",qI=Object.prototype,GI=qI.hasOwnProperty;function KI(e){var t=this.__data__;if(UI){var n=t[e];return n===jI?void 0:n}return GI.call(t,e)?t[e]:void 0}var ZI=KI,XI=yu,JI=Object.prototype,QI=JI.hasOwnProperty;function eA(e){var t=this.__data__;return XI?t[e]!==void 0:QI.call(t,e)}var tA=eA,nA=yu,iA="__lodash_hash_undefined__";function rA(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nA&&t===void 0?iA:t,this}var aA=rA,sA=HI,oA=YI,lA=ZI,cA=tA,dA=aA;function so(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}so.prototype.clear=sA,so.prototype.delete=oA,so.prototype.get=lA,so.prototype.has=cA,so.prototype.set=dA;var uA=so;function hA(){this.__data__=[],this.size=0}var fA=hA;function pA(e,t){return e===t||e!==e&&t!==t}var oo=pA,mA=oo;function gA(e,t){for(var n=e.length;n--;)if(mA(e[n][0],t))return n;return-1}var bu=gA,yA=bu,bA=Array.prototype,vA=bA.splice;function _A(e){var t=this.__data__,n=yA(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():vA.call(t,n,1),--this.size,!0}var wA=_A,kA=bu;function CA(e){var t=this.__data__,n=kA(t,e);return n<0?void 0:t[n][1]}var xA=CA,SA=bu;function MA(e){return SA(this.__data__,e)>-1}var BA=MA,EA=bu;function DA(e,t){var n=this.__data__,r=EA(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var OA=DA,VA=fA,$A=wA,TA=xA,IA=BA,AA=OA;function lo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}lo.prototype.clear=VA,lo.prototype.delete=$A,lo.prototype.get=TA,lo.prototype.has=IA,lo.prototype.set=AA;var vu=lo,NA=es,LA=ar,zA=NA(LA,"Map"),Yf=zA,R4=uA,PA=vu,FA=Yf;function RA(){this.size=0,this.__data__={hash:new R4,map:new(FA||PA),string:new R4}}var HA=RA;function WA(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var YA=WA,UA=YA;function jA(e,t){var n=e.__data__;return UA(t)?n[typeof t=="string"?"string":"hash"]:n.map}var _u=jA,qA=_u;function GA(e){var t=qA(this,e).delete(e);return this.size-=t?1:0,t}var KA=GA,ZA=_u;function XA(e){return ZA(this,e).get(e)}var JA=XA,QA=_u;function eN(e){return QA(this,e).has(e)}var tN=eN,nN=_u;function iN(e,t){var n=nN(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var rN=iN,aN=HA,sN=KA,oN=JA,lN=tN,cN=rN;function co(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}co.prototype.clear=aN,co.prototype.delete=sN,co.prototype.get=oN,co.prototype.has=lN,co.prototype.set=cN;var Uf=co,H4=Uf,dN="Expected a function";function jf(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(dN);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],s=n.cache;if(s.has(a))return s.get(a);var o=e.apply(this,r);return n.cache=s.set(a,o)||s,o};return n.cache=new(jf.Cache||H4),n}jf.Cache=H4;var uN=jf,hN=uN,fN=500;function pN(e){var t=hN(e,function(r){return n.size===fN&&n.clear(),r}),n=t.cache;return t}var mN=pN,gN=mN,yN=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bN=/\\(\\)?/g,vN=gN(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(yN,function(n,r,a,s){t.push(a?s.replace(bN,"$1"):r||n)}),t}),_N=vN;function wN(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var kN=wN,W4=gu,CN=kN,xN=Hi,SN=Rf,Y4=W4?W4.prototype:void 0,U4=Y4?Y4.toString:void 0;function j4(e){if(typeof e=="string")return e;if(xN(e))return CN(e,j4)+"";if(SN(e))return U4?U4.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var MN=j4,BN=MN;function EN(e){return e==null?"":BN(e)}var DN=EN,ON=Hi,VN=Hf,$N=_N,TN=DN;function IN(e,t){return ON(e)?e:VN(e,t)?[e]:$N(TN(e))}var q4=IN,AN=sr,NN=Wi,LN="[object Arguments]";function zN(e){return NN(e)&&AN(e)==LN}var PN=zN,G4=PN,FN=Wi,K4=Object.prototype,RN=K4.hasOwnProperty,HN=K4.propertyIsEnumerable,WN=G4(function(){return arguments}())?G4:function(e){return FN(e)&&RN.call(e,"callee")&&!HN.call(e,"callee")},qf=WN,YN=9007199254740991,UN=/^(?:0|[1-9]\d*)$/;function jN(e,t){var n=typeof e;return t=t??YN,!!t&&(n=="number"||n!="symbol"&&UN.test(e))&&e>-1&&e%1==0&&e<t}var Gf=jN,qN=9007199254740991;function GN(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qN}var Kf=GN,KN=Rf;function ZN(e){if(typeof e=="string"||KN(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var wu=ZN,XN=q4,JN=qf,QN=Hi,eL=Gf,tL=Kf,nL=wu;function iL(e,t,n){t=XN(t,e);for(var r=-1,a=t.length,s=!1;++r<a;){var o=nL(t[r]);if(!(s=e!=null&&n(e,o)))break;e=e[o]}return s||++r!=a?s:(a=e==null?0:e.length,!!a&&tL(a)&&eL(o,a)&&(QN(e)||JN(e)))}var Z4=iL,rL=ET,aL=Z4;function sL(e,t){return e!=null&&aL(e,t,rL)}var X4=sL,oL=sr,lL=Wi,cL="[object Date]";function dL(e){return lL(e)&&oL(e)==cL}var uL=dL;function hL(e){return function(t){return e(t)}}var J4=hL,ac={},fL={get exports(){return ac},set exports(e){ac=e}};(function(e,t){var n=T4,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===r,o=s&&n.process,l=function(){try{var d=a&&a.require&&a.require("util").types;return d||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(fL,ac);var pL=uL,mL=J4,Q4=ac,eb=Q4&&Q4.isDate,gL=eb?mL(eb):pL,yL=gL,bL=sr,vL=Hi,_L=Wi,wL="[object String]";function kL(e){return typeof e=="string"||!vL(e)&&_L(e)&&bL(e)==wL}var or=kL;function CL(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var tb=CL,xL=vu;function SL(){this.__data__=new xL,this.size=0}var ML=SL;function BL(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var EL=BL;function DL(e){return this.__data__.get(e)}var OL=DL;function VL(e){return this.__data__.has(e)}var $L=VL,TL=vu,IL=Yf,AL=Uf,NL=200;function LL(e,t){var n=this.__data__;if(n instanceof TL){var r=n.__data__;if(!IL||r.length<NL-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new AL(r)}return n.set(e,t),this.size=n.size,this}var zL=LL,PL=vu,FL=ML,RL=EL,HL=OL,WL=$L,YL=zL;function uo(e){var t=this.__data__=new PL(e);this.size=t.size}uo.prototype.clear=FL,uo.prototype.delete=RL,uo.prototype.get=HL,uo.prototype.has=WL,uo.prototype.set=YL;var Zf=uo,UL="__lodash_hash_undefined__";function jL(e){return this.__data__.set(e,UL),this}var qL=jL;function GL(e){return this.__data__.has(e)}var KL=GL,ZL=Uf,XL=qL,JL=KL;function ku(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new ZL;++t<n;)this.add(e[t])}ku.prototype.add=ku.prototype.push=XL,ku.prototype.has=JL;var QL=ku;function ez(e,t){return e.has(t)}var tz=ez,nz=QL,iz=tb,rz=tz,az=1,sz=2;function oz(e,t,n,r,a,s){var o=n&az,l=e.length,d=t.length;if(l!=d&&!(o&&d>l))return!1;var h=s.get(e),f=s.get(t);if(h&&f)return h==t&&f==e;var m=-1,g=!0,y=n&sz?new nz:void 0;for(s.set(e,t),s.set(t,e);++m<l;){var _=e[m],w=t[m];if(r)var k=o?r(w,_,m,t,e,s):r(_,w,m,e,t,s);if(k!==void 0){if(k)continue;g=!1;break}if(y){if(!iz(t,function(C,M){if(!rz(y,M)&&(_===C||a(_,C,n,r,s)))return y.push(M)})){g=!1;break}}else if(!(_===w||a(_,w,n,r,s))){g=!1;break}}return s.delete(e),s.delete(t),g}var nb=oz,lz=ar,cz=lz.Uint8Array,ib=cz;function dz(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var uz=dz;function hz(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var fz=hz,rb=gu,ab=ib,pz=oo,mz=nb,gz=uz,yz=fz,bz=1,vz=2,_z="[object Boolean]",wz="[object Date]",kz="[object Error]",Cz="[object Map]",xz="[object Number]",Sz="[object RegExp]",Mz="[object Set]",Bz="[object String]",Ez="[object Symbol]",Dz="[object ArrayBuffer]",Oz="[object DataView]",sb=rb?rb.prototype:void 0,Xf=sb?sb.valueOf:void 0;function Vz(e,t,n,r,a,s,o){switch(n){case Oz:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Dz:return!(e.byteLength!=t.byteLength||!s(new ab(e),new ab(t)));case _z:case wz:case xz:return pz(+e,+t);case kz:return e.name==t.name&&e.message==t.message;case Sz:case Bz:return e==t+"";case Cz:var l=gz;case Mz:var d=r&bz;if(l||(l=yz),e.size!=t.size&&!d)return!1;var h=o.get(e);if(h)return h==t;r|=vz,o.set(e,t);var f=mz(l(e),l(t),r,a,s,o);return o.delete(e),f;case Ez:if(Xf)return Xf.call(e)==Xf.call(t)}return!1}var $z=Vz;function Tz(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var Iz=Tz,Az=Iz,Nz=Hi;function Lz(e,t,n){var r=t(e);return Nz(e)?r:Az(r,n(e))}var zz=Lz;function Pz(e,t){for(var n=-1,r=e==null?0:e.length,a=0,s=[];++n<r;){var o=e[n];t(o,n,e)&&(s[a++]=o)}return s}var Fz=Pz;function Rz(){return[]}var Hz=Rz,Wz=Fz,Yz=Hz,Uz=Object.prototype,jz=Uz.propertyIsEnumerable,ob=Object.getOwnPropertySymbols,qz=ob?function(e){return e==null?[]:(e=Object(e),Wz(ob(e),function(t){return jz.call(e,t)}))}:Yz,Gz=qz;function Kz(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Zz=Kz,ho={},Xz={get exports(){return ho},set exports(e){ho=e}};function Jz(){return!1}var Qz=Jz;(function(e,t){var n=ar,r=Qz,a=t&&!t.nodeType&&t,s=a&&!0&&e&&!e.nodeType&&e,o=s&&s.exports===a,l=o?n.Buffer:void 0,d=l?l.isBuffer:void 0,h=d||r;e.exports=h})(Xz,ho);var eP=sr,tP=Kf,nP=Wi,iP="[object Arguments]",rP="[object Array]",aP="[object Boolean]",sP="[object Date]",oP="[object Error]",lP="[object Function]",cP="[object Map]",dP="[object Number]",uP="[object Object]",hP="[object RegExp]",fP="[object Set]",pP="[object String]",mP="[object WeakMap]",gP="[object ArrayBuffer]",yP="[object DataView]",bP="[object Float32Array]",vP="[object Float64Array]",_P="[object Int8Array]",wP="[object Int16Array]",kP="[object Int32Array]",CP="[object Uint8Array]",xP="[object Uint8ClampedArray]",SP="[object Uint16Array]",MP="[object Uint32Array]",Nt={};Nt[bP]=Nt[vP]=Nt[_P]=Nt[wP]=Nt[kP]=Nt[CP]=Nt[xP]=Nt[SP]=Nt[MP]=!0,Nt[iP]=Nt[rP]=Nt[gP]=Nt[aP]=Nt[yP]=Nt[sP]=Nt[oP]=Nt[lP]=Nt[cP]=Nt[dP]=Nt[uP]=Nt[hP]=Nt[fP]=Nt[pP]=Nt[mP]=!1;function BP(e){return nP(e)&&tP(e.length)&&!!Nt[eP(e)]}var EP=BP,DP=EP,OP=J4,lb=ac,cb=lb&&lb.isTypedArray,VP=cb?OP(cb):DP,Jf=VP,$P=Zz,TP=qf,IP=Hi,AP=ho,NP=Gf,LP=Jf,zP=Object.prototype,PP=zP.hasOwnProperty;function FP(e,t){var n=IP(e),r=!n&&TP(e),a=!n&&!r&&AP(e),s=!n&&!r&&!a&&LP(e),o=n||r||a||s,l=o?$P(e.length,String):[],d=l.length;for(var h in e)(t||PP.call(e,h))&&!(o&&(h=="length"||a&&(h=="offset"||h=="parent")||s&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||NP(h,d)))&&l.push(h);return l}var db=FP,RP=Object.prototype;function HP(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||RP;return e===n}var Qf=HP;function WP(e,t){return function(n){return e(t(n))}}var ub=WP,YP=ub,UP=YP(Object.keys,Object),jP=UP,qP=Qf,GP=jP,KP=Object.prototype,ZP=KP.hasOwnProperty;function XP(e){if(!qP(e))return GP(e);var t=[];for(var n in Object(e))ZP.call(e,n)&&n!="constructor"&&t.push(n);return t}var JP=XP,QP=Qa,eF=Kf;function tF(e){return e!=null&&eF(e.length)&&!QP(e)}var sc=tF,nF=db,iF=JP,rF=sc;function aF(e){return rF(e)?nF(e):iF(e)}var e0=aF,sF=zz,oF=Gz,lF=e0;function cF(e){return sF(e,lF,oF)}var dF=cF,hb=dF,uF=1,hF=Object.prototype,fF=hF.hasOwnProperty;function pF(e,t,n,r,a,s){var o=n&uF,l=hb(e),d=l.length,h=hb(t),f=h.length;if(d!=f&&!o)return!1;for(var m=d;m--;){var g=l[m];if(!(o?g in t:fF.call(t,g)))return!1}var y=s.get(e),_=s.get(t);if(y&&_)return y==t&&_==e;var w=!0;s.set(e,t),s.set(t,e);for(var k=o;++m<d;){g=l[m];var C=e[g],M=t[g];if(r)var E=o?r(M,C,g,t,e,s):r(C,M,g,e,t,s);if(!(E===void 0?C===M||a(C,M,n,r,s):E)){w=!1;break}k||(k=g=="constructor")}if(w&&!k){var x=e.constructor,$=t.constructor;x!=$&&"constructor"in e&&"constructor"in t&&!(typeof x=="function"&&x instanceof x&&typeof $=="function"&&$ instanceof $)&&(w=!1)}return s.delete(e),s.delete(t),w}var mF=pF,gF=es,yF=ar,bF=gF(yF,"DataView"),vF=bF,_F=es,wF=ar,kF=_F(wF,"Promise"),CF=kF,xF=es,SF=ar,MF=xF(SF,"Set"),BF=MF,EF=es,DF=ar,OF=EF(DF,"WeakMap"),VF=OF,t0=vF,n0=Yf,i0=CF,r0=BF,a0=VF,fb=sr,fo=P4,pb="[object Map]",$F="[object Object]",mb="[object Promise]",gb="[object Set]",yb="[object WeakMap]",bb="[object DataView]",TF=fo(t0),IF=fo(n0),AF=fo(i0),NF=fo(r0),LF=fo(a0),ts=fb;(t0&&ts(new t0(new ArrayBuffer(1)))!=bb||n0&&ts(new n0)!=pb||i0&&ts(i0.resolve())!=mb||r0&&ts(new r0)!=gb||a0&&ts(new a0)!=yb)&&(ts=function(e){var t=fb(e),n=t==$F?e.constructor:void 0,r=n?fo(n):"";if(r)switch(r){case TF:return bb;case IF:return pb;case AF:return mb;case NF:return gb;case LF:return yb}return t});var zF=ts,s0=Zf,PF=nb,FF=$z,RF=mF,vb=zF,_b=Hi,wb=ho,HF=Jf,WF=1,kb="[object Arguments]",Cb="[object Array]",Cu="[object Object]",YF=Object.prototype,xb=YF.hasOwnProperty;function UF(e,t,n,r,a,s){var o=_b(e),l=_b(t),d=o?Cb:vb(e),h=l?Cb:vb(t);d=d==kb?Cu:d,h=h==kb?Cu:h;var f=d==Cu,m=h==Cu,g=d==h;if(g&&wb(e)){if(!wb(t))return!1;o=!0,f=!1}if(g&&!f)return s||(s=new s0),o||HF(e)?PF(e,t,n,r,a,s):FF(e,t,d,n,r,a,s);if(!(n&WF)){var y=f&&xb.call(e,"__wrapped__"),_=m&&xb.call(t,"__wrapped__");if(y||_){var w=y?e.value():e,k=_?t.value():t;return s||(s=new s0),a(w,k,n,r,s)}}return g?(s||(s=new s0),RF(e,t,n,r,a,s)):!1}var jF=UF,qF=jF,Sb=Wi;function Mb(e,t,n,r,a){return e===t?!0:e==null||t==null||!Sb(e)&&!Sb(t)?e!==e&&t!==t:qF(e,t,n,r,Mb,a)}var Bb=Mb,GF=Zf,KF=Bb,ZF=1,XF=2;function JF(e,t,n,r){var a=n.length,s=a,o=!r;if(e==null)return!s;for(e=Object(e);a--;){var l=n[a];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<s;){l=n[a];var d=l[0],h=e[d],f=l[1];if(o&&l[2]){if(h===void 0&&!(d in e))return!1}else{var m=new GF;if(r)var g=r(h,f,d,e,t,m);if(!(g===void 0?KF(f,h,ZF|XF,r,m):g))return!1}}return!0}var QF=JF,eR=Sr;function tR(e){return e===e&&!eR(e)}var Eb=tR,nR=Eb,iR=e0;function rR(e){for(var t=iR(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,nR(a)]}return t}var aR=rR;function sR(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Db=sR,oR=QF,lR=aR,cR=Db;function dR(e){var t=lR(e);return t.length==1&&t[0][2]?cR(t[0][0],t[0][1]):function(n){return n===e||oR(n,e,t)}}var uR=dR,hR=q4,fR=wu;function pR(e,t){t=hR(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[fR(t[n++])];return n&&n==r?e:void 0}var Ob=pR,mR=Ob;function gR(e,t,n){var r=e==null?void 0:mR(e,t);return r===void 0?n:r}var ns=gR;function yR(e,t){return e!=null&&t in Object(e)}var bR=yR,vR=bR,_R=Z4;function wR(e,t){return e!=null&&_R(e,t,vR)}var kR=wR,CR=Bb,xR=ns,SR=kR,MR=Hf,BR=Eb,ER=Db,DR=wu,OR=1,VR=2;function $R(e,t){return MR(e)&&BR(t)?ER(DR(e),t):function(n){var r=xR(n,e);return r===void 0&&r===t?SR(n,e):CR(t,r,OR|VR)}}var TR=$R;function IR(e){return e}var o0=IR;function AR(e){return function(t){return t==null?void 0:t[e]}}var NR=AR,LR=Ob;function zR(e){return function(t){return LR(t,e)}}var PR=zR,FR=NR,RR=PR,HR=Hf,WR=wu;function YR(e){return HR(e)?FR(WR(e)):RR(e)}var UR=YR,jR=uR,qR=TR,GR=o0,KR=Hi,ZR=UR;function XR(e){return typeof e=="function"?e:e==null?GR:typeof e=="object"?KR(e)?qR(e[0],e[1]):jR(e):ZR(e)}var Vb=XR;function JR(e){return function(t,n,r){for(var a=-1,s=Object(t),o=r(t),l=o.length;l--;){var d=o[e?l:++a];if(n(s[d],d,s)===!1)break}return t}}var QR=JR,eH=QR,tH=eH(),$b=tH,nH=$b,iH=e0;function rH(e,t){return e&&nH(e,t,iH)}var Tb=rH,aH=sc;function sH(e,t){return function(n,r){if(n==null)return n;if(!aH(n))return e(n,r);for(var a=n.length,s=t?a:-1,o=Object(n);(t?s--:++s<a)&&r(o[s],s,o)!==!1;);return n}}var oH=sH,lH=Tb,cH=oH,dH=cH(lH),uH=dH,hH=uH;function fH(e,t){var n;return hH(e,function(r,a,s){return n=t(r,a,s),!n}),!!n}var pH=fH,mH=oo,gH=sc,yH=Gf,bH=Sr;function vH(e,t,n){if(!bH(n))return!1;var r=typeof t;return(r=="number"?gH(n)&&yH(t,n.length):r=="string"&&t in n)?mH(n[t],e):!1}var l0=vH,_H=tb,wH=Vb,kH=pH,CH=Hi,xH=l0;function SH(e,t,n){var r=CH(e)?_H:kH;return n&&xH(e,t,n)&&(t=void 0),r(e,wH(t))}var MH=SH,BH=sr,EH=Wi,DH="[object Boolean]";function OH(e){return e===!0||e===!1||EH(e)&&BH(e)==DH}var VH=OH,$H=sr,TH=Wi,IH="[object Number]";function AH(e){return typeof e=="number"||TH(e)&&$H(e)==IH}var Yi=AH,NH=es,LH=function(){try{var e=NH(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Ib=LH,Ab=Ib;function zH(e,t,n){t=="__proto__"&&Ab?Ab(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var xu=zH,PH=xu,FH=oo,RH=Object.prototype,HH=RH.hasOwnProperty;function WH(e,t,n){var r=e[t];(!(HH.call(e,t)&&FH(r,n))||n===void 0&&!(t in e))&&PH(e,t,n)}var YH=WH,UH=xu,jH=Tb,qH=Vb;function GH(e,t){var n={};return t=qH(t),jH(e,function(r,a,s){UH(n,a,t(r,a,s))}),n}var KH=GH;function ZH(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Nb=ZH,XH=Nb,Lb=Math.max;function JH(e,t,n){return t=Lb(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,s=Lb(r.length-t,0),o=Array(s);++a<s;)o[a]=r[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=r[a];return l[t]=n(o),XH(e,this,l)}}var QH=JH;function eW(e){return function(){return e}}var tW=eW,nW=tW,zb=Ib,iW=o0,rW=zb?function(e,t){return zb(e,"toString",{configurable:!0,enumerable:!1,value:nW(t),writable:!0})}:iW,aW=rW,sW=800,oW=16,lW=Date.now;function cW(e){var t=0,n=0;return function(){var r=lW(),a=oW-(r-n);if(n=r,a>0){if(++t>=sW)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var dW=cW,uW=aW,hW=dW,fW=hW(uW),pW=fW,mW=o0,gW=QH,yW=pW;function bW(e,t){return yW(gW(e,t,mW),e+"")}var c0=bW;function vW(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var _W=vW,wW=Sr,kW=Qf,CW=_W,xW=Object.prototype,SW=xW.hasOwnProperty;function MW(e){if(!wW(e))return CW(e);var t=kW(e),n=[];for(var r in e)r=="constructor"&&(t||!SW.call(e,r))||n.push(r);return n}var BW=MW,EW=db,DW=BW,OW=sc;function VW(e){return OW(e)?EW(e,!0):DW(e)}var d0=VW,$W=c0,TW=oo,IW=l0,AW=d0,Pb=Object.prototype,NW=Pb.hasOwnProperty,LW=$W(function(e,t){e=Object(e);var n=-1,r=t.length,a=r>2?t[2]:void 0;for(a&&IW(t[0],t[1],a)&&(r=1);++n<r;)for(var s=t[n],o=AW(s),l=-1,d=o.length;++l<d;){var h=o[l],f=e[h];(f===void 0||TW(f,Pb[h])&&!NW.call(e,h))&&(e[h]=s[h])}return e}),Fb=LW,zW=xu,PW=oo;function FW(e,t,n){(n!==void 0&&!PW(e[t],n)||n===void 0&&!(t in e))&&zW(e,t,n)}var Rb=FW,Su={},RW={get exports(){return Su},set exports(e){Su=e}};(function(e,t){var n=ar,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===r,o=s?n.Buffer:void 0,l=o?o.allocUnsafe:void 0;function d(h,f){if(f)return h.slice();var m=h.length,g=l?l(m):new h.constructor(m);return h.copy(g),g}e.exports=d})(RW,Su);var Hb=ib;function HW(e){var t=new e.constructor(e.byteLength);return new Hb(t).set(new Hb(e)),t}var WW=HW,YW=WW;function UW(e,t){var n=t?YW(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var jW=UW;function qW(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var GW=qW,KW=Sr,Wb=Object.create,ZW=function(){function e(){}return function(t){if(!KW(t))return{};if(Wb)return Wb(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),XW=ZW,JW=ub,QW=JW(Object.getPrototypeOf,Object),Yb=QW,eY=XW,tY=Yb,nY=Qf;function iY(e){return typeof e.constructor=="function"&&!nY(e)?eY(tY(e)):{}}var rY=iY,aY=sc,sY=Wi;function oY(e){return sY(e)&&aY(e)}var lY=oY,cY=sr,dY=Yb,uY=Wi,hY="[object Object]",fY=Function.prototype,pY=Object.prototype,Ub=fY.toString,mY=pY.hasOwnProperty,gY=Ub.call(Object);function yY(e){if(!uY(e)||cY(e)!=hY)return!1;var t=dY(e);if(t===null)return!0;var n=mY.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Ub.call(n)==gY}var bY=yY;function vY(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var jb=vY,_Y=YH,wY=xu;function kY(e,t,n,r){var a=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var l=t[s],d=r?r(n[l],e[l],l,n,e):void 0;d===void 0&&(d=e[l]),a?wY(n,l,d):_Y(n,l,d)}return n}var CY=kY,xY=CY,SY=d0;function MY(e){return xY(e,SY(e))}var BY=MY,qb=Rb,EY=Su,DY=jW,OY=GW,VY=rY,Gb=qf,Kb=Hi,$Y=lY,TY=ho,IY=Qa,AY=Sr,NY=bY,LY=Jf,Zb=jb,zY=BY;function PY(e,t,n,r,a,s,o){var l=Zb(e,n),d=Zb(t,n),h=o.get(d);if(h){qb(e,n,h);return}var f=s?s(l,d,n+"",e,t,o):void 0,m=f===void 0;if(m){var g=Kb(d),y=!g&&TY(d),_=!g&&!y&&LY(d);f=d,g||y||_?Kb(l)?f=l:$Y(l)?f=OY(l):y?(m=!1,f=EY(d,!0)):_?(m=!1,f=DY(d,!0)):f=[]:NY(d)||Gb(d)?(f=l,Gb(l)?f=zY(l):(!AY(l)||IY(l))&&(f=VY(d))):m=!1}m&&(o.set(d,f),a(f,d,r,s,o),o.delete(d)),qb(e,n,f)}var FY=PY,RY=Zf,HY=Rb,WY=$b,YY=FY,UY=Sr,jY=d0,qY=jb;function Xb(e,t,n,r,a){e!==t&&WY(t,function(s,o){if(a||(a=new RY),UY(s))YY(e,t,o,n,Xb,r,a);else{var l=r?r(qY(e,o),s,o+"",e,t,a):void 0;l===void 0&&(l=s),HY(e,o,l)}},jY)}var Jb=Xb,GY=Jb,Qb=Sr;function e5(e,t,n,r,a,s){return Qb(e)&&Qb(t)&&(s.set(t,e),GY(e,t,void 0,e5,s),s.delete(t)),e}var KY=e5,ZY=c0,XY=l0;function JY(e){return ZY(function(t,n){var r=-1,a=n.length,s=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(a--,s):void 0,o&&XY(n[0],n[1],o)&&(s=a<3?void 0:s,a=1),t=Object(t);++r<a;){var l=n[r];l&&e(t,l,r,s)}return t})}var QY=JY,eU=Jb,tU=QY,nU=tU(function(e,t,n,r){eU(e,t,n,r)}),iU=nU,rU=Nb,aU=c0,sU=KY,oU=iU,lU=aU(function(e){return e.push(void 0,sU),rU(oU,void 0,e)}),oc=lU;function cU(e){return e&&e.length?e[0]:void 0}var t5=cU;function dU(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var po=dU;const uU=e=>Object.prototype.toString.call(e).slice(8,-1),mo=e=>yL(e)&&!isNaN(e.getTime()),Mr=e=>uU(e)==="Object",n5=X4,i5=(e,t)=>MH(t,n=>X4(e,n)),kt=(e,t,n="0")=>{for(e=e!=null?String(e):"",t=t||2;e.length<t;)e=`${n}${e}`;return e},wi=e=>Array.isArray(e),Br=e=>wi(e)&&e.length>0,Mu=e=>e==null?null:document&&or(e)?document.querySelector(e):e.$el??e,ua=(e,t,n,r=void 0)=>{e.removeEventListener(t,n,r)},ha=(e,t,n,r=void 0)=>(e.addEventListener(t,n,r),()=>ua(e,t,n,r)),Bu=(e,t)=>!!e&&!!t&&(e===t||e.contains(t)),Eu=(e,t)=>{(e.key===" "||e.key==="Enter")&&(t(e),e.preventDefault())},r5=(e,...t)=>{const n={};let r;for(r in e)t.includes(r)||(n[r]=e[r]);return n},a5=(e,t)=>{const n={};return t.forEach(r=>{r in e&&(n[r]=e[r])}),n};function hU(e,t,n){return Math.min(Math.max(e,t),n)}var Du={},fU={get exports(){return Du},set exports(e){Du=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){if(r===null||r===!0||r===!1)return NaN;var a=Number(r);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}e.exports=t.default})(fU,Du);const pU=$4(Du);var Ou={},mU={get exports(){return Ou},set exports(e){Ou=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){var a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),r.getTime()-a.getTime()}e.exports=t.default})(mU,Ou);const s5=$4(Ou);function gU(e,t){var n=_U(t);return n.formatToParts?bU(n,e):vU(n,e)}var yU={year:0,month:1,day:2,hour:3,minute:4,second:5};function bU(e,t){try{for(var n=e.formatToParts(t),r=[],a=0;a<n.length;a++){var s=yU[n[a].type];s>=0&&(r[s]=parseInt(n[a].value,10))}return r}catch(o){if(o instanceof RangeError)return[NaN];throw o}}function vU(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var u0={};function _U(e){if(!u0[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")),n=t==="06/25/2014, 00:00:00"||t==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";u0[e]=n?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 u0[e]}function o5(e,t,n,r,a,s,o){var l=new Date(0);return l.setUTCFullYear(e,t,n),l.setUTCHours(r,a,s,o),l}var l5=36e5,wU=6e4,h0={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function kU(e,t,n){var r,a;if(!e||(r=h0.timezoneZ.exec(e),r))return 0;var s;if(r=h0.timezoneHH.exec(e),r)return s=parseInt(r[1],10),c5(s)?-(s*l5):NaN;if(r=h0.timezoneHHMM.exec(e),r){s=parseInt(r[1],10);var o=parseInt(r[2],10);return c5(s,o)?(a=Math.abs(s)*l5+o*wU,s>0?-a:a):NaN}if(SU(e)){t=new Date(t||Date.now());var l=CU(t),d=f0(l,e),h=xU(t,d,e);return-h}return NaN}function CU(e){return o5(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function f0(e,t){var n=gU(e,t),r=o5(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),a=e.getTime(),s=a%1e3;return a-=s>=0?s:1e3+s,r-a}function xU(e,t,n){var r=e.getTime(),a=r-t,s=f0(new Date(a),n);if(t===s)return t;a-=s-t;var o=f0(new Date(a),n);return s===o?s:Math.max(s,o)}function c5(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var d5={};function SU(e){if(d5[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),d5[e]=!0,!0}catch{return!1}}var MU=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const BU=MU;var p0=36e5,u5=6e4,EU=2,Nn={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:BU};function DU(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 n=t||{},r=n.additionalDigits==null?EU:pU(n.additionalDigits);if(r!==2&&r!==1&&r!==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 a=OU(e),s=VU(a.date,r),o=s.year,l=s.restDateString,d=$U(l,o);if(isNaN(d))return new Date(NaN);if(d){var h=d.getTime(),f=0,m;if(a.time&&(f=TU(a.time),isNaN(f)))return new Date(NaN);if(a.timeZone||n.timeZone){if(m=kU(a.timeZone||n.timeZone,new Date(h+f)),isNaN(m))return new Date(NaN)}else m=s5(new Date(h+f)),m=s5(new Date(h+f+m));return new Date(h+f+m)}else return new Date(NaN)}function OU(e){var t={},n=Nn.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=Nn.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){var a=Nn.timeZone.exec(r);a?(t.time=r.replace(a[1],""),t.timeZone=a[1].trim()):t.time=r}return t}function VU(e,t){var n=Nn.YYY[t],r=Nn.YYYYY[t],a;if(a=Nn.YYYY.exec(e)||r.exec(e),a){var s=a[1];return{year:parseInt(s,10),restDateString:e.slice(s.length)}}if(a=Nn.YY.exec(e)||n.exec(e),a){var o=a[1];return{year:parseInt(o,10)*100,restDateString:e.slice(o.length)}}return{year:null}}function $U(e,t){if(t===null)return null;var n,r,a,s;if(e.length===0)return r=new Date(0),r.setUTCFullYear(t),r;if(n=Nn.MM.exec(e),n)return r=new Date(0),a=parseInt(n[1],10)-1,p5(t,a)?(r.setUTCFullYear(t,a),r):new Date(NaN);if(n=Nn.DDD.exec(e),n){r=new Date(0);var o=parseInt(n[1],10);return NU(t,o)?(r.setUTCFullYear(t,0,o),r):new Date(NaN)}if(n=Nn.MMDD.exec(e),n){r=new Date(0),a=parseInt(n[1],10)-1;var l=parseInt(n[2],10);return p5(t,a,l)?(r.setUTCFullYear(t,a,l),r):new Date(NaN)}if(n=Nn.Www.exec(e),n)return s=parseInt(n[1],10)-1,m5(t,s)?h5(t,s):new Date(NaN);if(n=Nn.WwwD.exec(e),n){s=parseInt(n[1],10)-1;var d=parseInt(n[2],10)-1;return m5(t,s,d)?h5(t,s,d):new Date(NaN)}return null}function TU(e){var t,n,r;if(t=Nn.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),m0(n)?n%24*p0:NaN;if(t=Nn.HHMM.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),m0(n,r)?n%24*p0+r*u5:NaN;if(t=Nn.HHMMSS.exec(e),t){n=parseInt(t[1],10),r=parseInt(t[2],10);var a=parseFloat(t[3].replace(",","."));return m0(n,r,a)?n%24*p0+r*u5+a*1e3:NaN}return null}function h5(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var a=r.getUTCDay()||7,s=t*7+n+1-a;return r.setUTCDate(r.getUTCDate()+s),r}var IU=[31,28,31,30,31,30,31,31,30,31,30,31],AU=[31,29,31,30,31,30,31,31,30,31,30,31];function f5(e){return e%400===0||e%4===0&&e%100!==0}function p5(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;var r=f5(e);if(r&&n>AU[t]||!r&&n>IU[t])return!1}return!0}function NU(e,t){if(t<1)return!1;var n=f5(e);return!(n&&t>366||!n&&t>365)}function m5(e,t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function m0(e,t,n){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}function En(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Vu(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vu=function(n){return typeof n}:Vu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vu(e)}function Er(e){En(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Vu(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 go(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 LU={};function g0(){return LU}function is(e,t){var n,r,a,s,o,l,d,h;En(1,arguments);var f=g0(),m=go((n=(r=(a=(s=t==null?void 0:t.weekStartsOn)!==null&&s!==void 0?s:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&r!==void 0?r:(d=f.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&n!==void 0?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=Er(e),y=g.getDay(),_=(y<m?7:0)+y-m;return g.setDate(g.getDate()-_),g.setHours(0,0,0,0),g}function g5(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 zU=6048e5;function PU(e,t,n){En(2,arguments);var r=is(e,n),a=is(t,n),s=r.getTime()-g5(r),o=a.getTime()-g5(a);return Math.round((s-o)/zU)}function FU(e){En(1,arguments);var t=Er(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function RU(e){En(1,arguments);var t=Er(e);return t.setDate(1),t.setHours(0,0,0,0),t}function HU(e,t){return En(1,arguments),PU(FU(e),RU(e),t)+1}function WU(e,t){var n,r,a,s,o,l,d,h;En(1,arguments);var f=Er(e),m=f.getFullYear(),g=g0(),y=go((n=(r=(a=(s=t==null?void 0:t.firstWeekContainsDate)!==null&&s!==void 0?s:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:g.firstWeekContainsDate)!==null&&r!==void 0?r:(d=g.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=new Date(0);_.setFullYear(m+1,0,y),_.setHours(0,0,0,0);var w=is(_,t),k=new Date(0);k.setFullYear(m,0,y),k.setHours(0,0,0,0);var C=is(k,t);return f.getTime()>=w.getTime()?m+1:f.getTime()>=C.getTime()?m:m-1}function YU(e,t){var n,r,a,s,o,l,d,h;En(1,arguments);var f=g0(),m=go((n=(r=(a=(s=t==null?void 0:t.firstWeekContainsDate)!==null&&s!==void 0?s:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:f.firstWeekContainsDate)!==null&&r!==void 0?r:(d=f.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1),g=WU(e,t),y=new Date(0);y.setFullYear(g,0,m),y.setHours(0,0,0,0);var _=is(y,t);return _}var UU=6048e5;function jU(e,t){En(1,arguments);var n=Er(e),r=is(n,t).getTime()-YU(n,t).getTime();return Math.round(r/UU)+1}function $u(e){return En(1,arguments),is(e,{weekStartsOn:1})}function qU(e){En(1,arguments);var t=Er(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var a=$u(r),s=new Date(0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);var o=$u(s);return t.getTime()>=a.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function GU(e){En(1,arguments);var t=qU(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=$u(n);return r}var KU=6048e5;function ZU(e){En(1,arguments);var t=Er(e),n=$u(t).getTime()-GU(t).getTime();return Math.round(n/KU)+1}function Ln(e,t){En(2,arguments);var n=Er(e),r=go(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function Tu(e,t){En(2,arguments);var n=Er(e),r=go(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var a=n.getDate(),s=new Date(n.getTime());s.setMonth(n.getMonth()+r+1,0);var o=s.getDate();return a>=o?s:(n.setFullYear(s.getFullYear(),s.getMonth(),a),n)}function y5(e,t){En(2,arguments);var n=go(t);return Tu(e,n*12)}const XU={daily:["year","month","day"],weekly:["year","month","week"],monthly:["year","month"]};function JU({monthComps:e,prevMonthComps:t,nextMonthComps:n},r){const a=[],{firstDayOfWeek:s,firstWeekday:o,isoWeeknumbers:l,weeknumbers:d,numDays:h,numWeeks:f}=e,m=o+(o<s?Dn:0)-s;let g=!0,y=!1,_=!1,w=0;const k=new Intl.DateTimeFormat(r.id,{weekday:"long",year:"numeric",month:"short",day:"numeric"});let C=t.numDays-m+1,M=t.numDays-C+1,E=Math.floor((C-1)/Dn+1),x=1,$=t.numWeeks,I=1,P=t.month,T=t.year;const W=new Date,U=W.getDate(),ee=W.getMonth()+1,Y=W.getFullYear();for(let ne=1;ne<=Mj;ne++){for(let le=1,J=s;le<=Dn;le++,J+=J===Dn?1-Dn:1){g&&J===o&&(C=1,M=e.numDays,E=Math.floor((C-1)/Dn+1),x=Math.floor((h-C)/Dn+1),$=1,I=f,P=e.month,T=e.year,g=!1,y=!0);const pe=r.getDateFromParams(T,P,C,0,0,0,0),Q=r.getDateFromParams(T,P,C,12,0,0,0),me=r.getDateFromParams(T,P,C,23,59,59,999),ge=pe,z=`${kt(T,4)}-${kt(P,2)}-${kt(C,2)}`,fe=le,he=Dn-le,De=d[ne-1],Oe=l[ne-1],we=C===U&&P===ee&&T===Y,Ne=y&&C===1,it=y&&C===h,Pe=ne===1,de=ne===f,xe=le===1,Ie=le===Dn,Fe=A5(T,P,C);a.push({locale:r,id:z,position:++w,label:C.toString(),ariaLabel:k.format(new Date(T,P-1,C)),day:C,dayFromEnd:M,weekday:J,weekdayPosition:fe,weekdayPositionFromEnd:he,weekdayOrdinal:E,weekdayOrdinalFromEnd:x,week:$,weekFromEnd:I,weekPosition:ne,weeknumber:De,isoWeeknumber:Oe,month:P,year:T,date:ge,startDate:pe,endDate:me,noonDate:Q,dayIndex:Fe,isToday:we,isFirstDay:Ne,isLastDay:it,isDisabled:!y,isFocusable:!y,isFocused:!1,inMonth:y,inPrevMonth:g,inNextMonth:_,onTop:Pe,onBottom:de,onLeft:xe,onRight:Ie,classes:[`id-${z}`,`day-${C}`,`day-from-end-${M}`,`weekday-${J}`,`weekday-position-${fe}`,`weekday-ordinal-${E}`,`weekday-ordinal-from-end-${x}`,`week-${$}`,`week-from-end-${I}`,{"is-today":we,"is-first-day":Ne,"is-last-day":it,"in-month":y,"in-prev-month":g,"in-next-month":_,"on-top":Pe,"on-bottom":de,"on-left":xe,"on-right":Ie}]}),y&&it?(y=!1,_=!0,C=1,M=h,E=1,x=Math.floor((h-C)/Dn+1),$=1,I=n.numWeeks,P=n.month,T=n.year):(C++,M--,E=Math.floor((C-1)/Dn+1),x=Math.floor((h-C)/Dn+1))}$++,I--}return a}function QU(e,t,n,r){const a=e.reduce((s,o,l)=>{const d=Math.floor(l/7);let h=s[d];return h||(h={id:`week-${d+1}`,title:"",week:o.week,weekPosition:o.weekPosition,weeknumber:o.weeknumber,isoWeeknumber:o.isoWeeknumber,weeknumberDisplay:t?o.weeknumber:n?o.isoWeeknumber:void 0,days:[]},s[d]=h),h.days.push(o),s},Array(e.length/Dn));return a.forEach(s=>{const o=s.days[0],l=s.days[s.days.length-1];o.month===l.month?s.title=`${r.formatDate(o.date,"MMMM YYYY")}`:o.year===l.year?s.title=`${r.formatDate(o.date,"MMM")} - ${r.formatDate(l.date,"MMM YYYY")}`:s.title=`${r.formatDate(o.date,"MMM YYYY")} - ${r.formatDate(l.date,"MMM YYYY")}`}),a}function ej(e,t){return e.days.map(n=>({label:t.formatDate(n.date,t.masks.weekdays),weekday:n.weekday}))}function tj(e,t){return`${t}.${kt(e,2)}`}function b5(e,t,n){return a5(n.getDateParts(n.toDate(e)),XU[t])}function v5({day:e,week:t,month:n,year:r},a,s,o){if(s==="daily"&&e){const l=new Date(r,n-1,e),d=Ln(l,a);return{day:d.getDate(),month:d.getMonth()+1,year:d.getFullYear()}}else if(s==="weekly"&&t){const d=o.getMonthParts(n,r).firstDayOfMonth,h=Ln(d,(t-1+a)*7),f=o.getDateParts(h);return{week:f.week,month:f.month,year:f.year}}else{const l=new Date(r,n-1,1),d=Tu(l,a);return{month:d.getMonth()+1,year:d.getFullYear()}}}function lr(e){return e!=null&&e.month!=null&&e.year!=null}function y0(e,t){return!lr(e)||!lr(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 Iu(e,t){return!lr(e)||!lr(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 nj(e,t,n){return(e||!1)&&!y0(e,t)&&!Iu(e,n)}function ij(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 rj(e,t,n,r){if(!lr(e)||!lr(t))return[];const a=[];for(;!Iu(e,t);)a.push(e),e=v5(e,1,n,r);return a}function _5(e){const{day:t,week:n,month:r,year:a}=e;let s=`${a}-${kt(r,2)}`;return n&&(s=`${s}-w${n}`),t&&(s=`${s}-${kt(t,2)}`),s}function aj(e,t){const{month:n,year:r,showWeeknumbers:a,showIsoWeeknumbers:s}=e,o=new Date(r,n-1,15),l=t.getMonthParts(n,r),d=t.getPrevMonthParts(n,r),h=t.getNextMonthParts(n,r),f=JU({monthComps:l,prevMonthComps:d,nextMonthComps:h},t),m=QU(f,a,s,t),g=ej(m[0],t);return{id:_5(e),month:n,year:r,monthTitle:t.formatDate(o,t.masks.title),shortMonthLabel:t.formatDate(o,"MMM"),monthLabel:t.formatDate(o,"MMMM"),shortYearLabel:r.toString().substring(2),yearLabel:r.toString(),monthComps:l,prevMonthComps:d,nextMonthComps:h,days:f,weeks:m,weekdays:g}}function sj(e,t){const{day:n,week:r,view:a,trimWeeks:s}=e,o={...t,...e,title:"",viewDays:[],viewWeeks:[]};switch(a){case"daily":{let l=o.days.find(h=>h.inMonth);n?l=o.days.find(h=>h.day===n&&h.inMonth)||l:r&&(l=o.days.find(h=>h.week===r&&h.inMonth));const d=o.weeks[l.week-1];o.viewWeeks=[d],o.viewDays=[l],o.week=l.week,o.weekTitle=d.title,o.day=l.day,o.dayTitle=l.ariaLabel,o.title=o.dayTitle;break}case"weekly":{o.week=r||1;const l=o.weeks[o.week-1];o.viewWeeks=[l],o.viewDays=l.days,o.weekTitle=l.title,o.title=o.weekTitle;break}default:{o.title=o.monthTitle,o.viewWeeks=o.weeks.slice(0,s?o.monthComps.numWeeks:void 0),o.viewDays=o.days;break}}return o}class w5{constructor(t,n,r){Ee(this,"keys",[]),Ee(this,"store",{}),this.size=t,this.createKey=n,this.createItem=r}get(...t){const n=this.createKey(...t);return this.store[n]}getOrSet(...t){const n=this.createKey(...t);if(this.store[n])return this.store[n];const r=this.createItem(...t);if(this.keys.length>=this.size){const a=this.keys.shift();a!=null&&delete this.store[a]}return this.keys.push(n),this.store[n]=r,r}}class yo{constructor(t,n=new Au){Ee(this,"order"),Ee(this,"locale"),Ee(this,"start",null),Ee(this,"end",null),Ee(this,"repeat",null);var r;this.locale=n;const{start:a,end:s,span:o,order:l,repeat:d}=t;mo(a)&&(this.start=n.getDateParts(a)),mo(s)?this.end=n.getDateParts(s):this.start!=null&&o&&(this.end=n.getDateParts(Ln(this.start.date,o-1))),this.order=l??0,d&&(this.repeat=new Nu({from:(r=this.start)==null?void 0:r.date,...d},{locale:this.locale}))}static fromMany(t,n){return(wi(t)?t:[t]).filter(r=>r).map(r=>yo.from(r,n))}static from(t,n){if(t instanceof yo)return t;const r={start:null,end:null};return t!=null&&(wi(t)?(r.start=t[0]??null,r.end=t[1]??null):Mr(t)?Object.assign(r,t):(r.start=t,r.end=t)),r.start!=null&&(r.start=new Date(r.start)),r.end!=null&&(r.end=new Date(r.end)),new yo(r,n)}get opts(){const{order:t,locale:n}=this;return{order:t,locale:n}}get hasRepeat(){return!!this.repeat}get isSingleDay(){const{start:t,end:n}=this;return t&&n&&t.year===n.year&&t.month===n.month&&t.day===n.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 n,r;return((n=this.start)==null?void 0:n.dayIndex)===t.dayIndex||!!((r=this.repeat)!=null&&r.passes(t))}intersectsDay(t){return this.intersectsDayRange(t,t)}intersectsRange(t){var n,r;return this.intersectsDayRange(((n=t.start)==null?void 0:n.dayIndex)??-1/0,((r=t.end)==null?void 0:r.dayIndex)??1/0)}intersectsDayRange(t,n){return!(this.start&&this.start.dayIndex>n||this.end&&this.end.dayIndex<t)}}class oj{constructor(){Ee(this,"records",{})}render(t,n,r){var a,s,o,l;let d=null;const h=r[0].dayIndex,f=r[r.length-1].dayIndex;return n.hasRepeat?r.forEach(m=>{var g,y;if(n.startsOnDay(m)){const _=n.daySpan<1/0?n.daySpan:1;d={startDay:m.dayIndex,startTime:((g=n.start)==null?void 0:g.time)??0,endDay:m.dayIndex+_-1,endTime:((y=n.end)==null?void 0:y.time)??Lu},this.getRangeRecords(t).push(d)}}):n.intersectsDayRange(h,f)&&(d={startDay:((a=n.start)==null?void 0:a.dayIndex)??-1/0,startTime:((s=n.start)==null?void 0:s.time)??-1/0,endDay:((o=n.end)==null?void 0:o.dayIndex)??1/0,endTime:((l=n.end)==null?void 0:l.time)??1/0},this.getRangeRecords(t).push(d)),d}getRangeRecords(t){let n=this.records[t.key];return n||(n={ranges:[],data:t},this.records[t.key]=n),n.ranges}getCell(t,n){return this.getCells(n).find(s=>s.data.key===t)}cellExists(t,n){const r=this.records[t];return r==null?!1:r.ranges.some(a=>a.startDay<=n&&a.endDay>=n)}getCells(t){const n=Object.values(this.records),r=[],{dayIndex:a}=t;return n.forEach(({data:s,ranges:o})=>{o.filter(l=>l.startDay<=a&&l.endDay>=a).forEach(l=>{const d=a===l.startDay,h=a===l.endDay,f=d?l.startTime:0,m=new Date(t.startDate.getTime()+f),g=h?l.endTime:Lu,y=new Date(t.endDate.getTime()+g),_=f===0&&g===Lu,w=s.order||0;r.push({...l,data:s,onStart:d,onEnd:h,startTime:f,startDate:m,endTime:g,endDate:y,allDay:_,order:w})})}),r.sort((s,o)=>s.order-o.order),r}}const Dr={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"},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"}};Dr.en=Dr["en-US"],Dr.es=Dr["es-ES"],Dr.no=Dr.nb,Dr.zh=Dr["zh-CN"];const lj=Object.entries(Dr).reduce((e,[t,{dow:n,L:r}])=>(e[t]={id:t,firstDayOfWeek:n,masks:{L:r}},e),{}),cj={componentPrefix:"V",color:"blue",isDark:!1,navVisibility:"click",titlePosition:"center",transition:"slide-h",touch:{maxSwipeTime:300,minHorizontalSwipeDistance:60,maxVerticalSwipeDistance:80},masks:{title:"MMMM YYYY",weekdays:"W",navMonths:"MMM",hours:"h A",input:["L","YYYY-MM-DD","YYYY/MM/DD"],inputDateTime:["L h:mm A","YYYY-MM-DD h:mm A","YYYY/MM/DD h:mm A"],inputDateTime24hr:["L HH:mm","YYYY-MM-DD HH:mm","YYYY/MM/DD HH:mm"],inputTime:["h:mm A"],inputTime24hr:["HH:mm"],dayPopover:"WWW, MMM D, YYYY",data:["L","YYYY-MM-DD","YYYY/MM/DD"],model:"iso",iso:"YYYY-MM-DDTHH:mm:ss.SSSZ"},locales:lj,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",isInteractive:!0}}},b0=i.reactive(cj),dj=i.computed(()=>KH(b0.locales,e=>(e.masks=oc(e.masks,b0.masks),e))),fa=e=>typeof window<"u"&&n5(window.__vcalendar__,e)?ns(window.__vcalendar__,e):ns(b0,e),uj=12,hj=5;function fj(e,t){const n=new Intl.DateTimeFormat().resolvedOptions().locale;let r;or(e)?r=e:n5(e,"id")&&(r=e.id),r=(r||n).toLowerCase();const a=Object.keys(t),s=d=>a.find(h=>h.toLowerCase()===d);r=s(r)||s(r.substring(0,2))||n;const o={...t["en-IE"],...t[r],id:r,monthCacheSize:uj,pageCacheSize:hj};return Mr(e)?oc(e,o):o}class Au{constructor(t=void 0,n){Ee(this,"id"),Ee(this,"daysInWeek"),Ee(this,"firstDayOfWeek"),Ee(this,"masks"),Ee(this,"timezone"),Ee(this,"hourLabels"),Ee(this,"dayNames"),Ee(this,"dayNamesShort"),Ee(this,"dayNamesShorter"),Ee(this,"dayNamesNarrow"),Ee(this,"monthNames"),Ee(this,"monthNamesShort"),Ee(this,"relativeTimeNames"),Ee(this,"amPm",["am","pm"]),Ee(this,"monthCache"),Ee(this,"pageCache");const{id:r,firstDayOfWeek:a,masks:s,monthCacheSize:o,pageCacheSize:l}=fj(t,dj.value);this.monthCache=new w5(o,Aj,Nj),this.pageCache=new w5(l,_5,aj),this.id=r,this.daysInWeek=Dn,this.firstDayOfWeek=hU(a,1,Dn),this.masks=s,this.timezone=n||void 0,this.hourLabels=this.getHourLabels(),this.dayNames=k0("long",this.id),this.dayNamesShort=k0("short",this.id),this.dayNamesShorter=this.dayNamesShort.map(d=>d.substring(0,2)),this.dayNamesNarrow=k0("narrow",this.id),this.monthNames=P5("long",this.id),this.monthNamesShort=P5("short",this.id),this.relativeTimeNames=Pj(this.id)}formatDate(t,n){return Yj(t,n,this)}parseDate(t,n){return F5(t,n,this)}toDate(t,n={}){const r=new Date(NaN);let a=r;const{fillDate:s,mask:o,patch:l,rules:d}=n;if(Yi(t)?(n.type="number",a=new Date(+t)):or(t)?(n.type="string",a=t?F5(t,o||"iso",this):r):mo(t)?(n.type="date",a=new Date(t.getTime())):_0(t)&&(n.type="object",a=this.getDateFromParts(t)),a&&(l||d)){let h=this.getDateParts(a);if(l&&s!=null){const f=this.getDateParts(this.toDate(s));h=this.getDateParts(this.toDate({...f,...a5(h,Sj[l])}))}d&&(h=Wj(h,d)),a=this.getDateFromParts(h)}return a||r}toDateOrNull(t,n={}){const r=this.toDate(t,n);return isNaN(r.getTime())?null:r}fromDate(t,{type:n,mask:r}={}){switch(n){case"number":return t?t.getTime():NaN;case"string":return t?this.formatDate(t,r||"iso"):"";case"object":return t?this.getDateParts(t):null;default:return t?new Date(t):null}}range(t){return yo.from(t,this)}ranges(t){return yo.fromMany(t,this)}getDateParts(t){return Ij(t,this)}getDateFromParts(t){return L5(t,this.timezone)}getDateFromParams(t,n,r,a,s,o,l){return this.getDateFromParts({year:t,month:n,day:r,hours:a,minutes:s,seconds:o,milliseconds:l})}getPage(t){const n=this.pageCache.getOrSet(t,this);return sj(t,n)}getMonthParts(t,n){const{firstDayOfWeek:r}=this;return this.monthCache.getOrSet(t,n,r)}getThisMonthParts(){const t=new Date;return this.getMonthParts(t.getMonth()+1,t.getFullYear())}getPrevMonthParts(t,n){return t===1?this.getMonthParts(12,n-1):this.getMonthParts(t-1,n)}getNextMonthParts(t,n){return t===12?this.getMonthParts(1,n+1):this.getMonthParts(t+1,n)}getHourLabels(){return zj().map(t=>this.formatDate(t,this.masks.hours))}getDayId(t){return this.formatDate(t,"YYYY-MM-DD")}}var bo=(e=>(e.Any="any",e.All="all",e))(bo||{}),k5=(e=>(e.Days="days",e.Weeks="weeks",e.Months="months",e.Years="years",e))(k5||{}),C5=(e=>(e.Days="days",e.Weekdays="weekdays",e.Weeks="weeks",e.Months="months",e.Years="years",e))(C5||{}),x5=(e=>(e.OrdinalWeekdays="ordinalWeekdays",e))(x5||{});class pj{constructor(t,n,r){Ee(this,"validated",!0),this.type=t,this.interval=n,this.from=r,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:n}=t;switch(this.type){case"days":return w0(this.from.date,n)%this.interval===0;case"weeks":return $j(this.from.date,n)%this.interval===0;case"months":return Tj(this.from.date,n)%this.interval===0;case"years":return N5(this.from.date,n)%this.interval===0;default:return!1}}}class vo{constructor(t,n,r,a){Ee(this,"components",[]),this.type=t,this.validator=r,this.getter=a,this.components=this.normalizeComponents(n)}static create(t,n){switch(t){case"days":return new mj(n);case"weekdays":return new gj(n);case"weeks":return new yj(n);case"months":return new bj(n);case"years":return new vj(n)}}normalizeComponents(t){if(this.validator(t))return[t];if(!wi(t))return[];const n=[];return t.forEach(r=>{if(!this.validator(r)){console.error(`Component value ${r} in invalid for "${this.type}" rule. This rule will be skipped.`);return}n.push(r)}),n}passes(t){return this.getter(t).some(a=>this.components.includes(a))}}class mj extends vo{constructor(t){super("days",t,kj,({day:n,dayFromEnd:r})=>[n,-r])}}class gj extends vo{constructor(t){super("weekdays",t,v0,({weekday:n})=>[n])}}class yj extends vo{constructor(t){super("weeks",t,Cj,({week:n,weekFromEnd:r})=>[n,-r])}}class bj extends vo{constructor(t){super("months",t,xj,({month:n})=>[n])}}class vj extends vo{constructor(t){super("years",t,Yi,({year:n})=>[n])}}class _j{constructor(t,n){Ee(this,"components"),this.type=t,this.components=this.normalizeComponents(n)}normalizeArrayConfig(t){const n=[];return t.forEach((r,a)=>{if(Yi(r)){if(a===0)return;if(!S5(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(!v0(r)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}n.push([t[0],r])}else wi(r)&&n.push(...this.normalizeArrayConfig(r))}),n}normalizeComponents(t){const n=[];return t.forEach((r,a)=>{if(Yi(r)){if(a===0)return;if(!S5(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(!v0(r)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}n.push([t[0],r])}else wi(r)&&n.push(...this.normalizeArrayConfig(r))}),n}passes(t){const{weekday:n,weekdayOrdinal:r,weekdayOrdinalFromEnd:a}=t;return this.components.some(([s,o])=>(s===r||s===-a)&&n===o)}}class wj{constructor(t){Ee(this,"type","function"),Ee(this,"validated",!0),this.fn=t,Qa(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 Nu{constructor(t,n={},r){Ee(this,"validated",!0),Ee(this,"config"),Ee(this,"type",bo.Any),Ee(this,"from"),Ee(this,"until"),Ee(this,"rules",[]),Ee(this,"locale",new Au),this.parent=r,n.locale&&(this.locale=n.locale),this.config=t,Qa(t)?(this.type=bo.All,this.rules=[new wj(t)]):wi(t)?(this.type=bo.Any,this.rules=t.map(a=>new Nu(a,n,this))):Mr(t)?(this.type=bo.All,this.from=t.from?this.locale.getDateParts(t.from):r==null?void 0:r.from,this.until=t.until?this.locale.getDateParts(t.until):r==null?void 0:r.until,this.rules=this.getObjectRules(t)):(console.error("Rule group configuration must be an object or an array."),this.validated=!1)}getObjectRules(t){const n=[];if(t.every&&(or(t.every)&&(t.every=[1,`${t.every}s`]),wi(t.every))){const[r=1,a=k5.Days]=t.every;n.push(new pj(a,r,this.from))}return Object.values(C5).forEach(r=>{r in t&&n.push(vo.create(r,t[r]))}),Object.values(x5).forEach(r=>{r in t&&n.push(new _j(r,t[r]))}),t.on!=null&&(wi(t.on)||(t.on=[t.on]),n.push(new Nu(t.on,{locale:this.locale},this.parent))),n}passes(t){return this.validated?this.from&&t.dayIndex<=this.from.dayIndex||this.until&&t.dayIndex>=this.until.dayIndex?!1:this.type===bo.Any?this.rules.some(n=>n.passes(t)):this.rules.every(n=>n.passes(t)):!0}}function kj(e){return Yi(e)?e>=1&&e<=31:!1}function v0(e){return Yi(e)?e>=1&&e<=7:!1}function Cj(e){return Yi(e)?e>=-6&&e<=-1||e>=1&&e<=6:!1}function xj(e){return Yi(e)?e>=1&&e<=12:!1}function S5(e){return!(!Yi(e)||e<-5||e>5||e===0)}const Sj={dateTime:["year","month","day","hours","minutes","seconds","milliseconds"],date:["year","month","day"],time:["hours","minutes","seconds","milliseconds"]},Dn=7,Mj=6,M5=1e3,B5=M5*60,E5=B5*60,Lu=E5*24,Bj=[31,28,31,30,31,30,31,31,30,31,30,31],Ej=["L","iso"],lc={milliseconds:[0,999,3],seconds:[0,59,2],minutes:[0,59,2],hours:[0,23,2]},D5=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,Dj=/\[([^]*?)\]/gm,O5={D(e){return e.day},DD(e){return kt(e.day,2)},d(e){return e.weekday-1},dd(e){return kt(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 kt(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 kt(e.year,4)},h(e){return e.hours%12||12},hh(e){return kt(e.hours%12||12,2)},H(e){return e.hours},HH(e){return kt(e.hours,2)},m(e){return e.minutes},mm(e){return kt(e.minutes,2)},s(e){return e.seconds},ss(e){return kt(e.seconds,2)},S(e){return Math.round(e.milliseconds/100)},SS(e){return kt(Math.round(e.milliseconds/10),2)},SSS(e){return kt(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?"-":"+"}${kt(Math.floor(Math.abs(t)/60),2)}`},ZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${kt(Math.floor(Math.abs(t)/60)*100+Math.abs(t)%60,4)}`},ZZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${kt(Math.floor(Math.abs(t)/60),2)}:${kt(Math.abs(t)%60,2)}`}},pa=/\d\d?/,Oj=/\d{3}/,Vj=/\d{4}/,cc=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,V5=()=>{},$5=e=>(t,n,r)=>{const a=r[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~a&&(t.month=a)},Mt={D:[pa,(e,t)=>{e.day=t}],Do:[new RegExp(pa.source+cc.source),(e,t)=>{e.day=parseInt(t,10)}],d:[pa,V5],W:[cc,V5],M:[pa,(e,t)=>{e.month=t-1}],MMM:[cc,$5("monthNamesShort")],MMMM:[cc,$5("monthNames")],YY:[pa,(e,t)=>{const r=+new Date().getFullYear().toString().substr(0,2);e.year=+`${t>68?r-1:r}${t}`}],YYYY:[Vj,(e,t)=>{e.year=t}],S:[/\d/,(e,t)=>{e.milliseconds=t*100}],SS:[/\d{2}/,(e,t)=>{e.milliseconds=t*10}],SSS:[Oj,(e,t)=>{e.milliseconds=t}],h:[pa,(e,t)=>{e.hours=t}],m:[pa,(e,t)=>{e.minutes=t}],s:[pa,(e,t)=>{e.seconds=t}],a:[cc,(e,t,n)=>{const r=t.toLowerCase();r===n.amPm[0]?e.isPm=!1:r===n.amPm[1]&&(e.isPm=!0)}],Z:[/[^\s]*?[+-]\d\d:?\d\d|[^\s]*?Z?/,(e,t)=>{t==="Z"&&(t="+00:00");const n=`${t}`.match(/([+-]|\d\d)/gi);if(n){const r=+n[1]*60+parseInt(n[2],10);e.timezoneOffset=n[0]==="+"?r:-r}}]};Mt.DD=Mt.D,Mt.dd=Mt.d,Mt.WWWW=Mt.WWW=Mt.WW=Mt.W,Mt.MM=Mt.M,Mt.mm=Mt.m,Mt.hh=Mt.H=Mt.HH=Mt.h,Mt.ss=Mt.s,Mt.A=Mt.a,Mt.ZZZZ=Mt.ZZZ=Mt.ZZ=Mt.Z;function T5(e,t){return(Br(e)&&e||[or(e)&&e||"YYYY-MM-DD"]).map(n=>Ej.reduce((r,a)=>r.replace(a,t.masks[a]||""),n))}function _0(e){return Mr(e)&&"year"in e&&"month"in e&&"day"in e}function I5(e,t=1){const n=e.getDay()+1,r=n>=t?t-n:-(7-(t-n));return Ln(e,r)}function A5(e,t,n){const r=Date.UTC(e,t-1,n);return w0(new Date(0),new Date(r))}function w0(e,t){return Math.round((t.getTime()-e.getTime())/Lu)}function $j(e,t){return Math.ceil(w0(I5(e),I5(t))/7)}function N5(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}function Tj(e,t){return N5(e,t)*12+(t.getMonth()-e.getMonth())}function L5(e,t=""){const n=new Date,{year:r=n.getFullYear(),month:a=n.getMonth()+1,day:s=n.getDate(),hours:o=0,minutes:l=0,seconds:d=0,milliseconds:h=0}=e;if(t){const f=`${kt(r,4)}-${kt(a,2)}-${kt(s,2)}T${kt(o,2)}:${kt(l,2)}:${kt(d,2)}.${kt(h,3)}`;return DU(f,{timeZone:t})}return new Date(r,a-1,s,o,l,d,h)}function Ij(e,t){let n=new Date(e.getTime());t.timezone&&(n=new Date(e.toLocaleString("en-US",{timeZone:t.timezone})),n.setMilliseconds(e.getMilliseconds()));const r=n.getMilliseconds(),a=n.getSeconds(),s=n.getMinutes(),o=n.getHours(),l=r+a*M5+s*B5+o*E5,d=n.getMonth()+1,h=n.getFullYear(),f=t.getMonthParts(d,h),m=n.getDate(),g=f.numDays-m+1,y=n.getDay()+1,_=Math.floor((m-1)/7+1),w=Math.floor((f.numDays-m)/7+1),k=Math.ceil((m+Math.abs(f.firstWeekday-f.firstDayOfWeek))/7),C=f.numWeeks-k+1,M=f.weeknumbers[k],E=A5(h,d,m);return{milliseconds:r,seconds:a,minutes:s,hours:o,time:l,day:m,dayFromEnd:g,weekday:y,weekdayOrdinal:_,weekdayOrdinalFromEnd:w,week:k,weekFromEnd:C,weeknumber:M,month:d,year:h,date:n,dateTime:n.getTime(),dayIndex:E,timezoneOffset:0,isValid:!0}}function Aj(e,t,n){return`${t}-${e}-${n}`}function Nj(e,t,n){const r=t%4===0&&t%100!==0||t%400===0,a=new Date(t,e-1,1),s=a.getDay()+1,o=e===2&&r?29:Bj[e-1],l=n-1,d=HU(a,{weekStartsOn:l}),h=[],f=[];for(let m=0;m<d;m++){const g=Ln(a,m*7);h.push(jU(g,{weekStartsOn:l})),f.push(ZU(g))}return{firstDayOfWeek:n,firstDayOfMonth:a,inLeapYear:r,firstWeekday:s,numDays:o,numWeeks:d,month:e,year:t,weeknumbers:h,isoWeeknumbers:f}}function Lj(){const e=[];for(let a=0;a<Dn;a++)e.push(L5({year:2020,month:1,day:5+a,hours:12}));return e}function k0(e,t=void 0){const n=new Intl.DateTimeFormat(t,{weekday:e});return Lj().map(r=>n.format(r))}function zj(){const e=[];for(let t=0;t<=24;t++)e.push(new Date(2e3,0,1,t));return e}function Pj(e=void 0){const t=["second","minute","hour","day","week","month","quarter","year"],n=new Intl.RelativeTimeFormat(e);return t.reduce((r,a)=>{const s=n.formatToParts(100,a);return r[a]=s[1].unit,r},{})}function z5(){const e=[];for(let t=0;t<12;t++)e.push(new Date(2e3,t,15));return e}function P5(e,t=void 0){const n=new Intl.DateTimeFormat(t,{month:e,timeZone:"UTC"});return z5().map(r=>n.format(r))}function Fj(e,t,n){return Yi(t)?t===e:wi(t)?t.includes(e):Qa(t)?t(e,n):!(t.min!=null&&t.min>e||t.max!=null&&t.max<e||t.interval!=null&&e%t.interval!==0)}function dc(e,t,n){const r=[],[a,s,o]=t;for(let l=a;l<=s;l++)(n==null||Fj(l,n,e))&&r.push({value:l,label:kt(l,o)});return r}function Rj(e,t){return{milliseconds:dc(e,lc.milliseconds,t.milliseconds),seconds:dc(e,lc.seconds,t.seconds),minutes:dc(e,lc.minutes,t.minutes),hours:dc(e,lc.hours,t.hours)}}function Hj(e,t,n,r){const s=dc(e,t,r).reduce((o,l)=>{if(l.disabled)return o;if(isNaN(o))return l.value;const d=Math.abs(o-n);return Math.abs(l.value-n)<d?l.value:o},NaN);return isNaN(s)?n:s}function Wj(e,t){const n={...e};return Object.entries(t).forEach(([r,a])=>{const s=lc[r],o=e[r];n[r]=Hj(e,s,o,a)}),n}function F5(e,t,n){return T5(t,n).map(a=>{if(typeof a!="string")throw new Error("Invalid mask");let s=e;if(s.length>1e3)return!1;let o=!0;const l={};if(a.replace(D5,f=>{if(Mt[f]){const m=Mt[f],g=s.search(m[0]);~g?s.replace(m[0],y=>(m[1](l,y,n),s=s.substr(g+y.length),y)):o=!1}return Mt[f]?"":f.slice(1,f.length-1)}),!o)return!1;const d=new Date;l.hours!=null&&(l.isPm===!0&&+l.hours!=12?l.hours=+l.hours+12:l.isPm===!1&&+l.hours==12&&(l.hours=0));let h;return l.timezoneOffset!=null?(l.minutes=+(l.minutes||0)-+l.timezoneOffset,h=new Date(Date.UTC(l.year||d.getFullYear(),l.month||0,l.day||1,l.hours||0,l.minutes||0,l.seconds||0,l.milliseconds||0))):h=n.getDateFromParts({year:l.year||d.getFullYear(),month:(l.month||0)+1,day:l.day||1,hours:l.hours||0,minutes:l.minutes||0,seconds:l.seconds||0,milliseconds:l.milliseconds||0}),h}).find(a=>a)||new Date(e)}function Yj(e,t,n){if(e==null)return"";let r=T5(t,n)[0];/Z$/.test(r)&&(n.timezone="utc");const a=[];r=r.replace(Dj,(o,l)=>(a.push(l),"??"));const s=n.getDateParts(e);return r=r.replace(D5,o=>o in O5?O5[o](s,n):o.slice(1,o.length-1)),r.replace(/\?\?/g,()=>a.shift())}let Uj=0;class R5{constructor(t,n,r){Ee(this,"key",""),Ee(this,"hashcode",""),Ee(this,"highlight",null),Ee(this,"content",null),Ee(this,"dot",null),Ee(this,"bar",null),Ee(this,"event",null),Ee(this,"popover",null),Ee(this,"customData",null),Ee(this,"ranges"),Ee(this,"hasRanges",!1),Ee(this,"order",0),Ee(this,"pinPage",!1),Ee(this,"maxRepeatSpan",0),Ee(this,"locale");const{dates:a}=Object.assign(this,{hashcode:"",order:0,pinPage:!1},t);this.key||(this.key=++Uj),this.locale=r,n.normalizeGlyphs(this),this.ranges=r.ranges(a??[]),this.hasRanges=!!Br(this.ranges),this.maxRepeatSpan=this.ranges.filter(s=>s.hasRepeat).map(s=>s.daySpan).reduce((s,o)=>Math.max(s,o),0)}intersectsRange({start:t,end:n}){if(t==null||n==null)return!1;const r=this.ranges.filter(o=>!o.hasRepeat);for(const o of r)if(o.intersectsDayRange(t.dayIndex,n.dayIndex))return!0;const a=this.ranges.filter(o=>o.hasRepeat);if(!a.length)return!1;let s=t;for(this.maxRepeatSpan>1&&(s=this.locale.getDateParts(Ln(s.date,-this.maxRepeatSpan)));s.dayIndex<=n.dayIndex;){for(const o of a)if(o.startsOnDay(s))return!0;s=this.locale.getDateParts(Ln(s.date,1))}return!1}}function C0(e){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:e}))}function uc(e){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:e}))}function H5(e){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:e}))}function W5(e){const{visibility:t}=e,n=t==="click",r=t==="hover",a=t==="hover-focus",s=t==="focus";e.autoHide=!n;let o=!1,l=!1;const d=_=>{n&&(H5({...e,target:e.target||_.currentTarget}),_.stopPropagation())},h=_=>{o||(o=!0,(r||a)&&C0({...e,target:e.target||_.currentTarget}))},f=()=>{o&&(o=!1,(r||a&&!l)&&uc(e))},m=_=>{l||(l=!0,(s||a)&&C0({...e,target:e.target||_.currentTarget}))},g=_=>{l&&!Bu(_.currentTarget,_.relatedTarget)&&(l=!1,(s||a&&!o)&&uc(e))},y={};switch(e.visibility){case"click":y.click=d;break;case"hover":y.mousemove=h,y.mouseleave=f;break;case"focus":y.focusin=m,y.focusout=g;break;case"hover-focus":y.mousemove=h,y.mouseleave=f,y.focusin=m,y.focusout=g;break}return y}const Y5=e=>{const t=Mu(e);if(t==null)return;const n=t.popoverHandlers;!n||!n.length||(n.forEach(r=>r()),delete t.popoverHandlers)},U5=(e,t)=>{const n=Mu(e);if(n==null)return;const r=[],a=W5(t);Object.entries(a).forEach(([s,o])=>{r.push(ha(n,s,o))}),n.popoverHandlers=r},j5={mounted(e,t){const{value:n}=t;n&&U5(e,n)},updated(e,t){const{oldValue:n,value:r}=t,a=n==null?void 0:n.visibility,s=r==null?void 0:r.visibility;a!==s&&(a&&(Y5(e),s||uc(n)),s&&U5(e,r))},unmounted(e){Y5(e)}},jj=(e,t,{maxSwipeTime:n,minHorizontalSwipeDistance:r,maxVerticalSwipeDistance:a})=>{if(!e||!e.addEventListener||!Qa(t))return null;let s=0,o=0,l=null,d=!1;function h(m){const g=m.changedTouches[0];s=g.screenX,o=g.screenY,l=new Date().getTime(),d=!0}function f(m){if(!d||!l)return;d=!1;const g=m.changedTouches[0],y=g.screenX-s,_=g.screenY-o;if(new Date().getTime()-l<n&&Math.abs(y)>=r&&Math.abs(_)<=a){const k={toLeft:!1,toRight:!1};y<0?k.toLeft=!0:k.toRight=!0,t(k)}}return ha(e,"touchstart",h,{passive:!0}),ha(e,"touchend",f,{passive:!0}),()=>{ua(e,"touchstart",h),ua(e,"touchend",f)}},zu={},qj=(e,t=10)=>{zu[e]=Date.now()+t},Gj=(e,t)=>{if(e in zu){const n=zu[e];if(Date.now()<n)return;delete zu[e]}t()};function q5(){return typeof window<"u"}function Kj(e){return q5()&&e in window}function Zj(e){const t=i.ref(!1),n=i.computed(()=>t.value?"dark":"light");let r,a;function s(y){t.value=y.matches}function o(){Kj("matchMedia")&&(r=window.matchMedia("(prefers-color-scheme: dark)"),r.addEventListener("change",s),t.value=r.matches)}function l(){const{selector:y=":root",darkClass:_="dark"}=e.value,w=document.querySelector(y);t.value=w.classList.contains(_)}function d(y){const{selector:_=":root",darkClass:w="dark"}=y;if(q5()&&_&&w){const k=document.querySelector(_);k&&(a=new MutationObserver(l),a.observe(k,{attributes:!0,attributeFilter:["class"]}),t.value=k.classList.contains(w))}}function h(){m();const y=typeof e.value;y==="string"&&e.value.toLowerCase()==="system"?o():y==="object"?d(e.value):t.value=!!e.value}const f=i.watch(()=>e.value,()=>h(),{immediate:!0});function m(){r&&(r.removeEventListener("change",s),r=void 0),a&&(a.disconnect(),a=void 0)}function g(){m(),f()}return i.onUnmounted(()=>g()),{isDark:t,displayMode:n,cleanup:g}}const Xj=["base","start","end","startEnd"],Jj=["class","wrapperClass","contentClass","style","contentStyle","color","fillMode"],Qj={base:{},start:{},end:{}};function x0(e,t,n=Qj){let r=e,a={};t===!0||or(t)?(r=or(t)?t:r,a={...n}):Mr(t)&&(i5(t,Xj)?a={...t}:a={base:{...t},start:{...t},end:{...t}});const s=oc(a,{start:a.startEnd,end:a.startEnd},n);return Object.entries(s).forEach(([o,l])=>{let d=r;l===!0||or(l)?(d=or(l)?l:d,s[o]={color:d}):Mr(l)&&(i5(l,Jj)?s[o]={...l}:s[o]={}),oc(s[o],{color:d})}),s}class eq{constructor(){Ee(this,"type","highlight")}normalizeConfig(t,n){return x0(t,n,{base:{fillMode:"light"},start:{fillMode:"solid"},end:{fillMode:"solid"}})}prepareRender(t){t.highlights=[],t.content||(t.content=[])}render({data:t,onStart:n,onEnd:r},a){const{key:s,highlight:o}=t;if(!o)return;const{highlights:l}=a,{base:d,start:h,end:f}=o;n&&r?l.push({...h,key:s,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${h.color}`,class:[`vc-highlight vc-highlight-bg-${h.fillMode}`,h.class],contentClass:[`vc-attr vc-highlight-content-${h.fillMode} vc-${h.color}`,h.contentClass]}):n?(l.push({...d,key:`${s}-base`,wrapperClass:`vc-day-layer vc-day-box-right-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-start vc-highlight-bg-${d.fillMode}`,d.class]}),l.push({...h,key:s,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${h.color}`,class:[`vc-highlight vc-highlight-bg-${h.fillMode}`,h.class],contentClass:[`vc-attr vc-highlight-content-${h.fillMode} vc-${h.color}`,h.contentClass]})):r?(l.push({...d,key:`${s}-base`,wrapperClass:`vc-day-layer vc-day-box-left-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-end vc-highlight-bg-${d.fillMode}`,d.class]}),l.push({...f,key:s,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${f.color}`,class:[`vc-highlight vc-highlight-bg-${f.fillMode}`,f.class],contentClass:[`vc-attr vc-highlight-content-${f.fillMode} vc-${f.color}`,f.contentClass]})):l.push({...d,key:`${s}-middle`,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-middle vc-highlight-bg-${d.fillMode}`,d.class],contentClass:[`vc-attr vc-highlight-content-${d.fillMode} vc-${d.color}`,d.contentClass]})}}class S0{constructor(t,n){Ee(this,"type",""),Ee(this,"collectionType",""),this.type=t,this.collectionType=n}normalizeConfig(t,n){return x0(t,n)}prepareRender(t){t[this.collectionType]=[]}render({data:t,onStart:n,onEnd:r},a){const{key:s}=t,o=t[this.type];if(!s||!o)return;const l=a[this.collectionType],{base:d,start:h,end:f}=o;n?l.push({...h,key:s,class:[`vc-${this.type} vc-${this.type}-start vc-${h.color} vc-attr`,h.class]}):r?l.push({...f,key:s,class:[`vc-${this.type} vc-${this.type}-end vc-${f.color} vc-attr`,f.class]}):l.push({...d,key:s,class:[`vc-${this.type} vc-${this.type}-base vc-${d.color} vc-attr`,d.class]})}}class tq extends S0{constructor(){super("content","content")}normalizeConfig(t,n){return x0("base",n)}}class nq extends S0{constructor(){super("dot","dots")}}class iq extends S0{constructor(){super("bar","bars")}}class rq{constructor(t){Ee(this,"color"),Ee(this,"renderers",[new tq,new eq,new nq,new iq]),this.color=t}normalizeGlyphs(t){this.renderers.forEach(n=>{const r=n.type;t[r]!=null&&(t[r]=n.normalizeConfig(this.color,t[r]))})}prepareRender(t={}){return this.renderers.forEach(n=>{n.prepareRender(t)}),t}render(t,n){this.renderers.forEach(r=>{r.render(t,n)})}}const G5=Symbol("__vc_base_context__"),K5={color:{type:String,default:()=>fa("color")},isDark:{type:[Boolean,String,Object],default:()=>fa("isDark")},firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,disabledDates:null};function Z5(e){const t=i.computed(()=>e.color??""),n=i.computed(()=>e.isDark??!1),{displayMode:r}=Zj(n),a=i.computed(()=>new rq(t.value)),s=i.computed(()=>{if(e.locale instanceof Au)return e.locale;const g=Mr(e.locale)?e.locale:{id:e.locale,firstDayOfWeek:e.firstDayOfWeek,masks:e.masks};return new Au(g,e.timezone)}),o=i.computed(()=>s.value.masks),l=i.computed(()=>e.minDate),d=i.computed(()=>e.maxDate),h=i.computed(()=>{const g=e.disabledDates?[...e.disabledDates]:[];return l.value!=null&&g.push({start:null,end:Ln(s.value.toDate(l.value),-1)}),d.value!=null&&g.push({start:Ln(s.value.toDate(d.value),1),end:null}),s.value.ranges(g)}),f=i.computed(()=>new R5({key:"disabled",dates:h.value,order:100},a.value,s.value)),m={color:t,isDark:n,displayMode:r,theme:a,locale:s,masks:o,minDate:l,maxDate:d,disabledDates:h,disabledAttribute:f};return i.provide(G5,m),m}function aq(e){return i.inject(G5,()=>Z5(e),!0)}function X5(e){return`__vc_slot_${e}__`}function J5(e,t={}){Object.keys(e).forEach(n=>{i.provide(X5(t[n]??n),e[n])})}function Q5(e){return i.inject(X5(e),null)}const sq={...K5,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:()=>fa("titlePosition")},navVisibility:{type:String,default:()=>fa("navVisibility")},showWeeknumbers:[Boolean,String],showIsoWeeknumbers:[Boolean,String],expanded:Boolean,borderless:Boolean,transparent:Boolean,initialPage:Object,initialPagePosition:{type:Number,default:1},minPage:Object,maxPage:Object,transition:String,attributes:Array,trimWeeks:Boolean,disablePageSwipe:Boolean},oq=["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown","weeknumberclick","transition-start","transition-end","did-move","update:view","update:pages"],ev=Symbol("__vc_calendar_context__");function lq(e,{slots:t,emit:n}){const r=i.ref(null),a=i.ref(null),s=i.ref(new Date().getDate()),o=i.ref(!1),l=i.ref(Symbol()),d=i.ref(Symbol()),h=i.ref(e.view),f=i.ref([]),m=i.ref("");let g=null,y=null;J5(t);const{theme:_,color:w,displayMode:k,locale:C,masks:M,minDate:E,maxDate:x,disabledAttribute:$,disabledDates:I}=aq(e),P=i.computed(()=>e.rows*e.columns),T=i.computed(()=>e.step||P.value),W=i.computed(()=>t5(f.value)??null),U=i.computed(()=>po(f.value)??null),ee=i.computed(()=>e.minPage||(E.value?he(E.value):null)),Y=i.computed(()=>e.maxPage||(x.value?he(x.value):null)),ne=i.computed(()=>e.navVisibility),le=i.computed(()=>!!e.showWeeknumbers),J=i.computed(()=>!!e.showIsoWeeknumbers),pe=i.computed(()=>h.value==="monthly"),Q=i.computed(()=>h.value==="weekly"),me=i.computed(()=>h.value==="daily"),ge=()=>{o.value=!0,n("transition-start")},z=()=>{o.value=!1,n("transition-end"),g&&(g.resolve(!0),g=null)},fe=(j,V,G=h.value)=>v5(j,V,G,C.value),he=j=>b5(j,h.value,C.value),De=j=>{!$.value||!de.value||(j.isDisabled=de.value.cellExists($.value.key,j.dayIndex))},Oe=j=>{j.isFocusable=j.inMonth&&j.day===s.value},we=(j,V)=>{for(const G of j)for(const ue of G.days)if(V(ue)===!1)return},Ne=i.computed(()=>f.value.reduce((j,V)=>(j.push(...V.viewDays),j),[])),it=i.computed(()=>{const j=[];return(e.attributes||[]).forEach((V,G)=>{!V||!V.dates||j.push(new R5({...V,order:V.order||0},_.value,C.value))}),$.value&&j.push($.value),j}),Pe=i.computed(()=>Br(it.value)),de=i.computed(()=>{const j=new oj;return it.value.forEach(V=>{V.ranges.forEach(G=>{j.render(V,G,Ne.value)})}),j}),xe=i.computed(()=>Ne.value.reduce((j,V)=>(j[V.dayIndex]={day:V,cells:[]},j[V.dayIndex].cells.push(...de.value.getCells(V)),j),{})),Ie=(j,V)=>{const G=e.showWeeknumbers||e.showIsoWeeknumbers;return G==null?"":VH(G)?G?"left":"":G.startsWith("right")?V>1?"right":G:j>1?"left":G},Fe=()=>{var j,V;if(!Pe.value)return null;const G=it.value.find(Xe=>Xe.pinPage)||it.value[0];if(!G||!G.hasRanges)return null;const[ue]=G.ranges,Me=((j=ue.start)==null?void 0:j.date)||((V=ue.end)==null?void 0:V.date);return Me?he(Me):null},Ye=()=>{if(lr(W.value))return W.value;const j=Fe();return lr(j)?j:he(new Date)},et=(j,V={})=>{const{view:G=h.value,position:ue=1,force:Me}=V,Xe=ue>0?1-ue:-(P.value+ue);let ut=fe(j,Xe,G),Dt=fe(ut,P.value-1,G);return Me||(y0(ut,ee.value)?ut=ee.value:Iu(Dt,Y.value)&&(ut=fe(Y.value,1-P.value)),Dt=fe(ut,P.value-1)),{fromPage:ut,toPage:Dt}},Pt=(j,V,G="")=>{if(G==="none"||G==="fade")return G;if((j==null?void 0:j.view)!==(V==null?void 0:V.view))return"fade";const ue=Iu(V,j),Me=y0(V,j);return!ue&&!Me?"fade":G==="slide-v"?Me?"slide-down":"slide-up":Me?"slide-right":"slide-left"},tt=(j={})=>new Promise((V,G)=>{const{position:ue=1,force:Me=!1,transition:Xe}=j,ut=lr(j.page)?j.page:Ye(),{fromPage:Dt}=et(ut,{position:ue,force:Me}),ln=[];for(let Jt=0;Jt<P.value;Jt++){const Gn=fe(Dt,Jt),bt=Jt+1,zn=Math.ceil(bt/e.columns),On=e.rows-zn+1,ai=bt%e.columns||e.columns,Ui=e.columns-ai+1,Vr=Ie(ai,Ui);ln.push(C.value.getPage({...Gn,view:h.value,titlePosition:e.titlePosition,trimWeeks:e.trimWeeks,position:bt,row:zn,rowFromEnd:On,column:ai,columnFromEnd:Ui,showWeeknumbers:le.value,showIsoWeeknumbers:J.value,weeknumberPosition:Vr}))}m.value=Pt(f.value[0],ln[0],Xe),f.value=ln,m.value&&m.value!=="none"?g={resolve:V,reject:G}:V(!0)}),yt=j=>{const V=W.value??he(new Date);return fe(V,j)},Zt=(j,V={})=>{const G=lr(j)?j:he(j);return Object.assign(V,et(G,{...V,force:!0})),rj(V.fromPage,V.toPage,h.value,C.value).map(Me=>nj(Me,ee.value,Y.value)).some(Me=>Me)},Xt=(j,V={})=>Zt(yt(j),V),ft=i.computed(()=>Xt(-T.value)),ot=i.computed(()=>Xt(T.value)),$t=async(j,V={})=>!V.force&&!Zt(j,V)?!1:(V.fromPage&&!ij(V.fromPage,W.value)&&(uc({id:l.value,hideDelay:0}),V.view&&(qj("view",10),h.value=V.view),await tt({...V,page:V.fromPage,position:1,force:!0}),n("did-move",f.value)),!0),Ct=(j,V={})=>$t(yt(j),V),Bt=()=>Ct(-T.value),xt=()=>Ct(T.value),nn=j=>{const V=pe.value?".in-month":"",G=`.id-${C.value.getDayId(j)}${V}`,ue=`${G}.vc-focusable, ${G} .vc-focusable`,Me=r.value;if(Me){const Xe=Me.querySelector(ue);if(Xe)return Xe.focus(),!0}return!1},Et=async(j,V={})=>nn(j)?!0:(await $t(j,V),nn(j)),oe=(j,V)=>{s.value=j.day,n("dayclick",j,V)},Le=(j,V)=>{n("daymouseenter",j,V)},Ue=(j,V)=>{n("daymouseleave",j,V)},rn=(j,V)=>{s.value=j.day,a.value=j,j.isFocused=!0,n("dayfocusin",j,V)},pn=(j,V)=>{a.value=null,j.isFocused=!1,n("dayfocusout",j,V)},ae=(j,V)=>{n("daykeydown",j,V);const G=j.noonDate;let ue=null;switch(V.key){case"ArrowLeft":{ue=Ln(G,-1);break}case"ArrowRight":{ue=Ln(G,1);break}case"ArrowUp":{ue=Ln(G,-7);break}case"ArrowDown":{ue=Ln(G,7);break}case"Home":{ue=Ln(G,-j.weekdayPosition+1);break}case"End":{ue=Ln(G,j.weekdayPositionFromEnd);break}case"PageUp":{V.altKey?ue=y5(G,-1):ue=Tu(G,-1);break}case"PageDown":{V.altKey?ue=y5(G,1):ue=Tu(G,1);break}}ue&&(V.preventDefault(),Et(ue).catch())},R=j=>{const V=a.value;V!=null&&ae(V,j)},K=(j,V)=>{n("weeknumberclick",j,V)};tt({page:e.initialPage,position:e.initialPagePosition}),i.onMounted(()=>{!e.disablePageSwipe&&r.value&&(y=jj(r.value,({toLeft:j=!1,toRight:V=!1})=>{j?xt():V&&Bt()},fa("touch")))}),i.onUnmounted(()=>{f.value=[],y&&y()}),i.watch(()=>C.value,()=>{tt()}),i.watch(()=>P.value,()=>tt()),i.watch(()=>e.view,()=>h.value=e.view),i.watch(()=>h.value,()=>{Gj("view",()=>{tt()}),n("update:view",h.value)}),i.watch(()=>s.value,()=>{we(f.value,j=>Oe(j))}),i.watchEffect(()=>{n("update:pages",f.value),we(f.value,j=>{De(j),Oe(j)})});const be={emit:n,containerRef:r,focusedDay:a,inTransition:o,navPopoverId:l,dayPopoverId:d,view:h,pages:f,transitionName:m,theme:_,color:w,displayMode:k,locale:C,masks:M,attributes:it,disabledAttribute:$,disabledDates:I,attributeContext:de,days:Ne,dayCells:xe,count:P,step:T,firstPage:W,lastPage:U,canMovePrev:ft,canMoveNext:ot,minPage:ee,maxPage:Y,isMonthly:pe,isWeekly:Q,isDaily:me,navVisibility:ne,showWeeknumbers:le,showIsoWeeknumbers:J,getDateAddress:he,canMove:Zt,canMoveBy:Xt,move:$t,moveBy:Ct,movePrev:Bt,moveNext:xt,onTransitionBeforeEnter:ge,onTransitionAfterEnter:z,tryFocusDate:nn,focusDate:Et,onKeydown:R,onDayKeydown:ae,onDayClick:oe,onDayMouseenter:Le,onDayMouseleave:Ue,onDayFocusin:rn,onDayFocusout:pn,onWeeknumberClick:K};return i.provide(ev,be),be}function rs(){const e=i.inject(ev);if(e)return e;throw new Error("Calendar context missing. Please verify this component is nested within a valid context provider.")}const cq=i.defineComponent({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 n;const r=i.ref();let a=null,s=null;const o=i.reactive({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 l(z){z&&(o.direction=z.split("-")[0])}function d({placement:z,options:fe}){l(z||(fe==null?void 0:fe.placement))}const h=i.computed(()=>({placement:o.placement,strategy:o.positionFixed?"fixed":"absolute",boundary:"",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:d},...o.modifiers||[]],onFirstUpdate:d})),f=i.computed(()=>{const z=o.direction==="left"||o.direction==="right";let fe="";if(o.placement){const he=o.placement.split("-");he.length>1&&(fe=he[1])}return["start","top","left"].includes(fe)?z?"top":"left":["end","bottom","right"].includes(fe)?z?"bottom":"right":z?"middle":"center"});function m(){s&&(s.destroy(),s=null)}function g(){i.nextTick(()=>{const z=Mu(o.target);!z||!r.value||(s&&s.state.elements.reference!==z&&m(),s?s.update():s=ll(z,r.value,h.value))})}function y(z){Object.assign(o,r5(z,"force"))}function _(z,fe){clearTimeout(n),z>0?n=setTimeout(fe,z):fe()}function w(z){return!z||!s?!1:Mu(z)===s.state.elements.reference}async function k(z={}){o.force||(z.force&&(o.force=!0),_(z.showDelay??e.showDelay,()=>{o.isVisible&&(o.force=!1),y({...z,isVisible:!0}),g()}))}function C(z={}){s&&(z.target&&!w(z.target)||o.force||(z.force&&(o.force=!0),_(z.hideDelay??e.hideDelay,()=>{o.isVisible||(o.force=!1),o.isVisible=!1})))}function M(z={}){z.target!=null&&(o.isVisible&&w(z.target)?C(z):k(z))}function E(z){if(!s)return;const fe=s.state.elements.reference;if(!r.value||!fe)return;const he=z.target;Bu(r.value,he)||Bu(fe,he)||C({force:!0})}function x(z){(z.key==="Esc"||z.key==="Escape")&&C()}function $({detail:z}){!z.id||z.id!==e.id||k(z)}function I({detail:z}){!z.id||z.id!==e.id||C(z)}function P({detail:z}){!z.id||z.id!==e.id||M(z)}function T(){ha(document,"keydown",x),ha(document,"click",E),ha(document,"show-popover",$),ha(document,"hide-popover",I),ha(document,"toggle-popover",P)}function W(){ua(document,"keydown",x),ua(document,"click",E),ua(document,"show-popover",$),ua(document,"hide-popover",I),ua(document,"toggle-popover",P)}function U(z){t("before-show",z)}function ee(z){o.force=!1,t("after-show",z)}function Y(z){t("before-hide",z)}function ne(z){o.force=!1,m(),t("after-hide",z)}function le(z){z.stopPropagation()}function J(){o.isHovered=!0,o.isInteractive&&["hover","hover-focus"].includes(o.visibility)&&k()}function pe(){if(o.isHovered=!1,!s)return;const z=s.state.elements.reference;o.autoHide&&!o.isFocused&&(!z||z!==document.activeElement)&&["hover","hover-focus"].includes(o.visibility)&&C()}function Q(){o.isFocused=!0,o.isInteractive&&["focus","hover-focus"].includes(o.visibility)&&k()}function me(z){["focus","hover-focus"].includes(o.visibility)&&(!z.relatedTarget||!Bu(r.value,z.relatedTarget))&&(o.isFocused=!1,!o.isHovered&&o.autoHide&&C())}function ge(){a!=null&&(a.disconnect(),a=null)}return i.watch(()=>r.value,z=>{ge(),z&&(a=new ResizeObserver(()=>{s&&s.update()}),a.observe(z))}),i.watch(()=>o.placement,l,{immediate:!0}),i.onMounted(()=>{T()}),i.onUnmounted(()=>{m(),ge(),W()}),{...i.toRefs(o),popoverRef:r,alignment:f,hide:C,setupPopper:g,beforeEnter:U,afterEnter:ee,beforeLeave:Y,afterLeave:ne,onClick:le,onMouseOver:J,onMouseLeave:pe,onFocusIn:Q,onFocusOut:me}}}),ma=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};function dq(e,t,n,r,a,s){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-popover-content-wrapper",{"is-interactive":e.isInteractive}]),ref:"popoverRef",onClick:t[0]||(t[0]=(...o)=>e.onClick&&e.onClick(...o)),onMouseover:t[1]||(t[1]=(...o)=>e.onMouseOver&&e.onMouseOver(...o)),onMouseleave:t[2]||(t[2]=(...o)=>e.onMouseLeave&&e.onMouseLeave(...o)),onFocusin:t[3]||(t[3]=(...o)=>e.onFocusIn&&e.onFocusIn(...o)),onFocusout:t[4]||(t[4]=(...o)=>e.onFocusOut&&e.onFocusOut(...o))},[i.createVNode(i.Transition,{name:`vc-${e.transition}`,appear:"",onBeforeEnter:e.beforeEnter,onAfterEnter:e.afterEnter,onBeforeLeave:e.beforeLeave,onAfterLeave:e.afterLeave},{default:i.withCtx(()=>[e.isVisible?(i.openBlock(),i.createElementBlock("div",i.mergeProps({key:0,tabindex:"-1",class:`vc-popover-content direction-${e.direction}`},e.$attrs),[i.renderSlot(e.$slots,"default",{direction:e.direction,alignment:e.alignment,data:e.data,hide:e.hide},()=>[i.createTextVNode(i.toDisplayString(e.data),1)]),i.createElementVNode("span",{class:i.normalizeClass(["vc-popover-caret",`direction-${e.direction}`,`align-${e.alignment}`])},null,2)],16)):i.createCommentVNode("",!0)]),_:3},8,["name","onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave"])],34)}const M0=ma(cq,[["render",dq]]),uq={class:"vc-day-popover-row"},hq={key:0,class:"vc-day-popover-row-indicator"},fq={class:"vc-day-popover-row-label"},pq=i.defineComponent({__name:"PopoverRow",props:{attribute:null},setup(e){const t=e,n=i.computed(()=>{const{content:r,highlight:a,dot:s,bar:o,popover:l}=t.attribute;return l&&l.hideIndicator?null:r?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${r.base.color}`}:a?{class:`vc-highlight-bg-solid vc-day-popover-row-highlight vc-attr vc-${a.base.color}`}:s?{class:`vc-dot vc-attr vc-${s.base.color}`}:o?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${o.base.color}`}:null});return(r,a)=>(i.openBlock(),i.createElementBlock("div",uq,[i.unref(n)?(i.openBlock(),i.createElementBlock("div",hq,[i.createElementVNode("span",{class:i.normalizeClass(i.unref(n).class)},null,2)])):i.createCommentVNode("",!0),i.createElementVNode("div",fq,[i.renderSlot(r.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(e.attribute.popover?e.attribute.popover.label:"No content provided"),1)])])]))}}),mq={inheritAttrs:!1},ki=i.defineComponent({...mq,__name:"CalendarSlot",props:{name:null},setup(e){const n=Q5(e.name);return(r,a)=>i.unref(n)?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(n)),i.normalizeProps(i.mergeProps({key:0},r.$attrs)),null,16)):i.renderSlot(r.$slots,"default",{key:1})}}),gq={class:"vc-day-popover-container"},yq={key:0,class:"vc-day-popover-header"},bq=i.defineComponent({__name:"CalendarDayPopover",setup(e){const{dayPopoverId:t,displayMode:n,color:r,masks:a,locale:s}=rs();function o(d,h){return s.value.formatDate(d,h)}function l(d){return s.value.formatDate(d.date,a.value.dayPopover)}return(d,h)=>(i.openBlock(),i.createBlock(M0,{id:i.unref(t),class:i.normalizeClass([`vc-${i.unref(r)}`,`vc-${i.unref(n)}`])},{default:i.withCtx(({data:{day:f,attributes:m},hide:g})=>[i.createVNode(ki,{name:"day-popover",day:f,"day-title":l(f),attributes:m,format:o,masks:i.unref(a),hide:g},{default:i.withCtx(()=>[i.createElementVNode("div",gq,[i.unref(a).dayPopover?(i.openBlock(),i.createElementBlock("div",yq,i.toDisplayString(l(f)),1)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m,y=>(i.openBlock(),i.createBlock(pq,{key:y.key,attribute:y},null,8,["attribute"]))),128))])]),_:2},1032,["day","day-title","attributes","masks","hide"])]),_:1},8,["id","class"]))}}),vq={},_q={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},wq=[i.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1)];function kq(e,t){return i.openBlock(),i.createElementBlock("svg",_q,wq)}const Cq=ma(vq,[["render",kq]]),xq={},Sq={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},Mq=[i.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1)];function Bq(e,t){return i.openBlock(),i.createElementBlock("svg",Sq,Mq)}const Eq=ma(xq,[["render",Bq]]),Dq={},Oq={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},Vq=[i.createElementVNode("polyline",{points:"6 9 12 15 18 9"},null,-1)];function $q(e,t){return i.openBlock(),i.createElementBlock("svg",Oq,Vq)}const Tq=ma(Dq,[["render",$q]]),Iq={},Aq={fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},Nq=[i.createElementVNode("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)];function Lq(e,t){return i.openBlock(),i.createElementBlock("svg",Aq,Nq)}const zq=Object.freeze(Object.defineProperty({__proto__:null,IconChevronDown:Tq,IconChevronLeft:Eq,IconChevronRight:Cq,IconClock:ma(Iq,[["render",Lq]])},Symbol.toStringTag,{value:"Module"})),_o=i.defineComponent({__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,n=i.computed(()=>t.width||t.size),r=i.computed(()=>t.height||t.size),a=i.computed(()=>zq[`Icon${t.name}`]);return(s,o)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(a)),{width:i.unref(n),height:i.unref(r),class:"vc-base-icon"},null,8,["width","height"]))}}),Pq=["disabled"],Fq={key:1,class:"vc-title-wrapper"},Rq={type:"button",class:"vc-title"},Hq=["disabled"],tv=i.defineComponent({__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:n,navVisibility:r,canMovePrev:a,movePrev:s,canMoveNext:o,moveNext:l}=rs(),d=i.computed(()=>{switch(t.page.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}}),h=i.computed(()=>{const{page:w}=t;return{id:n.value,visibility:r.value,placement:d.value,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:w},isInteractive:!0}}),f=i.computed(()=>t.page.titlePosition.includes("left")),m=i.computed(()=>t.page.titlePosition.includes("right")),g=i.computed(()=>t.layout?t.layout:f.value?"tu-pn":m.value?"pn-tu":"p-tu-n;"),y=i.computed(()=>({prev:g.value.includes("p")&&!t.hideArrows,title:g.value.includes("t")&&!t.hideTitle,next:g.value.includes("n")&&!t.hideArrows})),_=i.computed(()=>({gridTemplateColumns:g.value.split("").map(k=>{switch(k){case"p":return"[prev] auto";case"n":return"[next] auto";case"t":return"[title] auto";case"-":return"1fr";default:return""}}).join(" ")}));return(w,k)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-header",{"is-lg":e.isLg,"is-xl":e.isXl,"is-2xl":e.is2xl}]),style:i.normalizeStyle(i.unref(_))},[i.unref(y).prev?(i.openBlock(),i.createElementBlock("button",{key:0,type:"button",class:"vc-arrow vc-prev vc-focus",disabled:!i.unref(a),onClick:k[0]||(k[0]=(...C)=>i.unref(s)&&i.unref(s)(...C)),onKeydown:k[1]||(k[1]=i.withKeys((...C)=>i.unref(s)&&i.unref(s)(...C),["space","enter"]))},[i.createVNode(ki,{name:"header-prev-button",disabled:!i.unref(a)},{default:i.withCtx(()=>[i.createVNode(_o,{name:"ChevronLeft",size:"24"})]),_:1},8,["disabled"])],40,Pq)):i.createCommentVNode("",!0),i.unref(y).title?(i.openBlock(),i.createElementBlock("div",Fq,[i.createVNode(ki,{name:"header-title-wrapper"},{default:i.withCtx(()=>[i.withDirectives((i.openBlock(),i.createElementBlock("button",Rq,[i.createVNode(ki,{name:"header-title",title:e.page.title},{default:i.withCtx(()=>[i.createElementVNode("span",null,i.toDisplayString(e.page.title),1)]),_:1},8,["title"])])),[[i.unref(j5),i.unref(h)]])]),_:1})])):i.createCommentVNode("",!0),i.unref(y).next?(i.openBlock(),i.createElementBlock("button",{key:2,type:"button",class:"vc-arrow vc-next vc-focus",disabled:!i.unref(o),onClick:k[2]||(k[2]=(...C)=>i.unref(l)&&i.unref(l)(...C)),onKeydown:k[3]||(k[3]=i.withKeys((...C)=>i.unref(l)&&i.unref(l)(...C),["space","enter"]))},[i.createVNode(ki,{name:"header-next-button",disabled:!i.unref(o)},{default:i.withCtx(()=>[i.createVNode(_o,{name:"ChevronRight",size:"24"})]),_:1},8,["disabled"])],40,Hq)):i.createCommentVNode("",!0)],6))}}),nv=Symbol("__vc_page_context__");function Wq(e){const{locale:t,getDateAddress:n,canMove:r}=rs();function a(l,d){const{month:h,year:f}=n(new Date);return z5().map((m,g)=>{const y=g+1;return{month:y,year:l,id:tj(y,l),label:t.value.formatDate(m,d),ariaLabel:t.value.formatDate(m,"MMMM"),isActive:y===e.value.month&&l===e.value.year,isCurrent:y===h&&l===f,isDisabled:!r({month:y,year:l},{position:e.value.position})}})}function s(l,d){const{year:h}=n(new Date),{position:f}=e.value,m=[];for(let g=l;g<=d;g+=1){const y=[...Array(12).keys()].some(_=>r({month:_+1,year:g},{position:f}));m.push({year:g,id:g.toString(),label:g.toString(),ariaLabel:g.toString(),isActive:g===e.value.year,isCurrent:g===h,isDisabled:!y})}return m}const o={page:e,getMonthItems:a,getYearItems:s};return i.provide(nv,o),o}function iv(){const e=i.inject(nv);if(e)return e;throw new Error("Page context missing. Please verify this component is nested within a valid context provider.")}const Yq={class:"vc-nav-header"},Uq=["disabled"],jq=["disabled"],qq={class:"vc-nav-items"},Gq=["data-id","aria-label","disabled","onClick","onKeydown"],Kq=i.defineComponent({__name:"CalendarNav",setup(e){const{masks:t,move:n}=rs(),{page:r,getMonthItems:a,getYearItems:s}=iv(),o=i.ref(!0),l=12,d=i.ref(r.value.year),h=i.ref(g(r.value.year)),f=i.ref(null);function m(){setTimeout(()=>{if(f.value==null)return;const he=f.value.querySelector(".vc-nav-item:not(:disabled)");he&&he.focus()},10)}function g(he){return Math.floor(he/l)}function y(){o.value=!o.value}function _(he){return he*l}function w(he){return l*(he+1)-1}function k(){Q.value&&(o.value&&M(),x())}function C(){me.value&&(o.value&&E(),$())}function M(){d.value--}function E(){d.value++}function x(){h.value--}function $(){h.value++}const I=i.computed(()=>a(d.value,t.value.navMonths).map(he=>({...he,click:()=>n({month:he.month,year:he.year},{position:r.value.position})}))),P=i.computed(()=>a(d.value-1,t.value.navMonths)),T=i.computed(()=>P.value.some(he=>!he.isDisabled)),W=i.computed(()=>a(d.value+1,t.value.navMonths)),U=i.computed(()=>W.value.some(he=>!he.isDisabled)),ee=i.computed(()=>s(_(h.value),w(h.value)).map(he=>({...he,click:()=>{d.value=he.year,o.value=!0,m()}}))),Y=i.computed(()=>s(_(h.value-1),w(h.value-1))),ne=i.computed(()=>Y.value.some(he=>!he.isDisabled)),le=i.computed(()=>s(_(h.value+1),w(h.value+1))),J=i.computed(()=>le.value.some(he=>!he.isDisabled)),pe=i.computed(()=>o.value?I.value:ee.value),Q=i.computed(()=>o.value?T.value:ne.value),me=i.computed(()=>o.value?U.value:J.value),ge=i.computed(()=>t5(ee.value.map(he=>he.year))),z=i.computed(()=>po(ee.value.map(he=>he.year))),fe=i.computed(()=>o.value?d.value:`${ge.value} - ${z.value}`);return i.watchEffect(()=>{d.value=r.value.year,m()}),i.watch(()=>d.value,he=>h.value=g(he)),i.onMounted(()=>m()),(he,De)=>(i.openBlock(),i.createElementBlock("div",{class:"vc-nav-container",ref_key:"navContainer",ref:f},[i.createElementVNode("div",Yq,[i.createElementVNode("button",{type:"button",class:"vc-nav-arrow is-left vc-focus",disabled:!i.unref(Q),onClick:k,onKeydown:De[0]||(De[0]=Oe=>i.unref(Eu)(Oe,k))},[i.createVNode(ki,{name:"nav-prev-button",move:k,disabled:!i.unref(Q)},{default:i.withCtx(()=>[i.createVNode(_o,{name:"ChevronLeft",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,Uq),i.createElementVNode("button",{type:"button",class:"vc-nav-title vc-focus",onClick:y,onKeydown:De[1]||(De[1]=Oe=>i.unref(Eu)(Oe,y))},i.toDisplayString(i.unref(fe)),33),i.createElementVNode("button",{type:"button",class:"vc-nav-arrow is-right vc-focus",disabled:!i.unref(me),onClick:C,onKeydown:De[2]||(De[2]=Oe=>i.unref(Eu)(Oe,C))},[i.createVNode(ki,{name:"nav-next-button",move:C,disabled:!i.unref(me)},{default:i.withCtx(()=>[i.createVNode(_o,{name:"ChevronRight",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,jq)]),i.createElementVNode("div",qq,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(pe),Oe=>(i.openBlock(),i.createElementBlock("button",{key:Oe.label,type:"button","data-id":Oe.id,"aria-label":Oe.ariaLabel,class:i.normalizeClass(["vc-nav-item vc-focus",[Oe.isActive?"is-active":Oe.isCurrent?"is-current":""]]),disabled:Oe.isDisabled,onClick:Oe.click,onKeydown:we=>i.unref(Eu)(we,Oe.click)},i.toDisplayString(Oe.label),43,Gq))),128))])],512))}}),rv=i.defineComponent({__name:"CalendarPageProvider",props:{page:null},setup(e){const t=e;return Wq(i.toRef(t,"page")),(n,r)=>i.renderSlot(n.$slots,"default")}}),Zq=i.defineComponent({__name:"CalendarNavPopover",setup(e){const{navPopoverId:t,color:n,displayMode:r}=rs();return(a,s)=>(i.openBlock(),i.createBlock(M0,{id:i.unref(t),class:i.normalizeClass(["vc-nav-popover-container",`vc-${i.unref(n)}`,`vc-${i.unref(r)}`])},{default:i.withCtx(({data:o})=>[i.createVNode(rv,{page:o.page},{default:i.withCtx(()=>[i.createVNode(ki,{name:"nav"},{default:i.withCtx(()=>[i.createVNode(Kq)]),_:1})]),_:2},1032,["page"])]),_:1},8,["id","class"]))}}),Xq=i.defineComponent({directives:{popover:j5},components:{CalendarSlot:ki},props:{day:{type:Object,required:!0}},setup(e){const{locale:t,theme:n,attributeContext:r,dayPopoverId:a,onDayClick:s,onDayMouseenter:o,onDayMouseleave:l,onDayFocusin:d,onDayFocusout:h,onDayKeydown:f}=rs(),m=i.computed(()=>e.day),g=i.computed(()=>r.value.getCells(m.value)),y=i.computed(()=>g.value.map(J=>J.data)),_=i.computed(()=>({...m.value,attributes:y.value,attributeCells:g.value}));function w({data:J},{popovers:pe}){const{key:Q,customData:me,popover:ge}=J;if(!ge)return;const z=Fb({key:Q,customData:me,attribute:J},{...ge},{visibility:ge.label?"hover":"click",placement:"bottom",isInteractive:!ge.label});pe.splice(0,0,z)}const k=i.computed(()=>{const J={...n.value.prepareRender({}),popovers:[]};return g.value.forEach(pe=>{n.value.render(pe,J),w(pe,J)}),J}),C=i.computed(()=>k.value.highlights),M=i.computed(()=>!!Br(C.value)),E=i.computed(()=>k.value.content),x=i.computed(()=>k.value.dots),$=i.computed(()=>!!Br(x.value)),I=i.computed(()=>k.value.bars),P=i.computed(()=>!!Br(I.value)),T=i.computed(()=>k.value.popovers),W=i.computed(()=>T.value.map(J=>J.attribute)),U=Q5("day-content"),ee=i.computed(()=>["vc-day",...m.value.classes,{"vc-day-box-center-center":!U},{"is-not-in-month":!e.day.inMonth}]),Y=i.computed(()=>{let J;m.value.isFocusable?J="0":J="-1";const pe=["vc-day-content vc-focusable vc-focus vc-attr",{"vc-disabled":m.value.isDisabled},ns(po(C.value),"contentClass"),ns(po(E.value),"class")||""],Q={...ns(po(C.value),"contentStyle"),...ns(po(E.value),"style")};return{class:pe,style:Q,tabindex:J,"aria-label":m.value.ariaLabel,"aria-disabled":!!m.value.isDisabled,role:"button"}}),ne=i.computed(()=>({click(J){s(_.value,J)},mouseenter(J){o(_.value,J)},mouseleave(J){l(_.value,J)},focusin(J){d(_.value,J)},focusout(J){h(_.value,J)},keydown(J){f(_.value,J)}})),le=i.computed(()=>Br(T.value)?Fb({id:a.value,data:{day:m,attributes:W.value}},...T.value):null);return{attributes:y,attributeCells:g,bars:I,dayClasses:ee,dayContentProps:Y,dayContentEvents:ne,dayPopover:le,glyphs:k,dots:x,hasDots:$,hasBars:P,highlights:C,hasHighlights:M,locale:t,popovers:T}}}),Jq={key:0,class:"vc-highlights vc-day-layer"},Qq={key:1,class:"vc-day-layer vc-day-box-center-bottom"},eG={class:"vc-dots"},tG={key:2,class:"vc-day-layer vc-day-box-center-bottom"},nG={class:"vc-bars"};function iG(e,t,n,r,a,s){const o=i.resolveComponent("CalendarSlot"),l=i.resolveDirective("popover");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(e.dayClasses)},[e.hasHighlights?(i.openBlock(),i.createElementBlock("div",Jq,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.highlights,({key:d,wrapperClass:h,class:f,style:m})=>(i.openBlock(),i.createElementBlock("div",{key:d,class:i.normalizeClass(h)},[i.createElementVNode("div",{class:i.normalizeClass(f),style:i.normalizeStyle(m)},null,6)],2))),128))])):i.createCommentVNode("",!0),i.createVNode(o,{name:"day-content",day:e.day,attributes:e.attributes,"attribute-cells":e.attributeCells,dayProps:e.dayContentProps,dayEvents:e.dayContentEvents,locale:e.locale},{default:i.withCtx(()=>[i.withDirectives((i.openBlock(),i.createElementBlock("div",i.mergeProps(e.dayContentProps,i.toHandlers(e.dayContentEvents,!0)),[i.createTextVNode(i.toDisplayString(e.day.label),1)],16)),[[l,e.dayPopover]])]),_:1},8,["day","attributes","attribute-cells","dayProps","dayEvents","locale"]),e.hasDots?(i.openBlock(),i.createElementBlock("div",Qq,[i.createElementVNode("div",eG,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.dots,({key:d,class:h,style:f})=>(i.openBlock(),i.createElementBlock("span",{key:d,class:i.normalizeClass(h),style:i.normalizeStyle(f)},null,6))),128))])])):i.createCommentVNode("",!0),e.hasBars?(i.openBlock(),i.createElementBlock("div",tG,[i.createElementVNode("div",nG,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.bars,({key:d,class:h,style:f})=>(i.openBlock(),i.createElementBlock("span",{key:d,class:i.normalizeClass(h),style:i.normalizeStyle(f)},null,6))),128))])])):i.createCommentVNode("",!0)],2)}const rG=ma(Xq,[["render",iG]]),aG={class:"vc-weekdays"},sG=["onClick"],oG={inheritAttrs:!1},lG=i.defineComponent({...oG,__name:"CalendarPage",setup(e){const{page:t}=iv(),{onWeeknumberClick:n}=rs();return(r,a)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-pane",`row-${i.unref(t).row}`,`row-from-end-${i.unref(t).rowFromEnd}`,`column-${i.unref(t).column}`,`column-from-end-${i.unref(t).columnFromEnd}`]),ref:"pane"},[i.createVNode(tv,{page:i.unref(t),"is-lg":"","hide-arrows":""},null,8,["page"]),i.createElementVNode("div",{class:i.normalizeClass(["vc-weeks",{[`vc-show-weeknumbers-${i.unref(t).weeknumberPosition}`]:i.unref(t).weeknumberPosition}])},[i.createElementVNode("div",aG,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(t).weekdays,({weekday:s,label:o},l)=>(i.openBlock(),i.createElementBlock("div",{key:l,class:i.normalizeClass(`vc-weekday vc-weekday-${s}`)},i.toDisplayString(o),3))),128))]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(t).viewWeeks,s=>(i.openBlock(),i.createElementBlock("div",{key:`weeknumber-${s.weeknumber}`,class:"vc-week"},[i.unref(t).weeknumberPosition?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["vc-weeknumber",`is-${i.unref(t).weeknumberPosition}`])},[i.createElementVNode("span",{class:i.normalizeClass(["vc-weeknumber-content"]),onClick:o=>i.unref(n)(s,o)},i.toDisplayString(s.weeknumberDisplay),9,sG)],2)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.days,o=>(i.openBlock(),i.createBlock(rG,{key:o.id,day:o},null,8,["day"]))),128))]))),128))],2)],2))}}),cG=i.defineComponent({components:{CalendarHeader:tv,CalendarPage:lG,CalendarNavPopover:Zq,CalendarDayPopover:bq,CalendarPageProvider:rv,CalendarSlot:ki},props:sq,emit:oq,setup(e,{emit:t,slots:n}){return lq(e,{emit:t,slots:n})}}),dG={class:"vc-pane-header-wrapper"};function uG(e,t,n,r,a,s){const o=i.resolveComponent("CalendarHeader"),l=i.resolveComponent("CalendarPage"),d=i.resolveComponent("CalendarSlot"),h=i.resolveComponent("CalendarPageProvider"),f=i.resolveComponent("CalendarDayPopover"),m=i.resolveComponent("CalendarNavPopover");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",i.mergeProps({"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]=i.withModifiers(()=>{},["prevent"])),ref:"containerRef"}),[i.createElementVNode("div",{class:i.normalizeClass(["vc-pane-container",{"in-transition":e.inTransition}])},[i.createElementVNode("div",dG,[e.firstPage?(i.openBlock(),i.createBlock(o,{key:0,page:e.firstPage,"is-lg":"","hide-title":""},null,8,["page"])):i.createCommentVNode("",!0)]),i.createVNode(i.Transition,{name:`vc-${e.transitionName}`,onBeforeEnter:e.onTransitionBeforeEnter,onAfterEnter:e.onTransitionAfterEnter},{default:i.withCtx(()=>[(i.openBlock(),i.createElementBlock("div",{key:e.pages[0].id,class:"vc-pane-layout",style:i.normalizeStyle({gridTemplateColumns:`repeat(${e.columns}, 1fr)`})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.pages,g=>(i.openBlock(),i.createBlock(h,{key:g.id,page:g},{default:i.withCtx(()=>[i.createVNode(d,{name:"page",page:g},{default:i.withCtx(()=>[i.createVNode(l)]),_:2},1032,["page"])]),_:2},1032,["page"]))),128))],4))]),_:1},8,["name","onBeforeEnter","onAfterEnter"]),i.createVNode(d,{name:"footer"})],2)],16),i.createVNode(f),i.createVNode(m)],64)}const hG=ma(cG,[["render",uG]]),av=Symbol("__vc_date_picker_context__"),fG={...K5,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:()=>fa("datePicker.updateOnInput")},inputDebounce:{type:Number,default:()=>fa("datePicker.inputDebounce")},popover:{type:[Boolean,Object],default:!0},dragAttribute:Object,selectAttribute:Object,attributes:[Object,Array]},pG=["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"];function mG(e,{emit:t,slots:n}){J5(n,{footer:"dp-footer"});const r=Z5(e),{locale:a,masks:s,disabledAttribute:o}=r,l=i.ref(!1),d=i.ref(Symbol()),h=i.ref(null),f=i.ref(null),m=i.ref(["",""]),g=i.ref(null),y=i.ref(null);let _,w,k=!0;const C=i.computed(()=>e.isRange||e.modelModifiers.range===!0),M=i.computed(()=>C.value&&h.value!=null?h.value.start:null),E=i.computed(()=>C.value&&h.value!=null?h.value.end:null),x=i.computed(()=>e.mode.toLowerCase()==="date"),$=i.computed(()=>e.mode.toLowerCase()==="datetime"),I=i.computed(()=>e.mode.toLowerCase()==="time"),P=i.computed(()=>!!f.value),T=i.computed(()=>{let V="date";e.modelModifiers.number&&(V="number"),e.modelModifiers.string&&(V="string");const G=s.value.modelValue||"iso";return De({type:V,mask:G})}),W=i.computed(()=>Xt(f.value??h.value)),U=i.computed(()=>I.value?e.is24hr?s.value.inputTime24hr:s.value.inputTime:$.value?e.is24hr?s.value.inputDateTime24hr:s.value.inputDateTime:s.value.input),ee=i.computed(()=>/[Hh]/g.test(U.value)),Y=i.computed(()=>/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(U.value)),ne=i.computed(()=>{if(ee.value&&Y.value)return"dateTime";if(Y.value)return"date";if(ee.value)return"time"}),le=i.computed(()=>{var V;const G=((V=g.value)==null?void 0:V.$el.previousElementSibling)??void 0;return oc({},e.popover,fa("datePicker.popover"),{target:G})}),J=i.computed(()=>W5({...le.value,id:d.value})),pe=i.computed(()=>C.value?{start:m.value[0],end:m.value[1]}:m.value[0]),Q=i.computed(()=>{const V=["start","end"].map(G=>({input:tt(G),change:yt(G),keyup:Zt,...e.popover&&J.value}));return C.value?{start:V[0],end:V[1]}:V[0]}),me=i.computed(()=>{if(!it(h.value))return null;const V={key:"select-drag",...e.selectAttribute,dates:h.value,pinPage:!0},{dot:G,bar:ue,highlight:Me,content:Xe}=V;return!G&&!ue&&!Me&&!Xe&&(V.highlight=!0),V}),ge=i.computed(()=>{if(!C.value||!it(f.value))return null;const V={key:"select-drag",...e.dragAttribute,dates:f.value},{dot:G,bar:ue,highlight:Me,content:Xe}=V;return!G&&!ue&&!Me&&!Xe&&(V.highlight={startEnd:{fillMode:"outline"}}),V}),z=i.computed(()=>{const V=wi(e.attributes)?[...e.attributes]:[];return ge.value?V.unshift(ge.value):me.value&&V.unshift(me.value),V}),fe=i.computed(()=>De(e.rules==="auto"?he():e.rules??{}));function he(){const V={ms:[0,999],sec:[0,59],min:[0,59],hr:[0,23]},G=x.value?0:e.timeAccuracy;return[0,1].map(ue=>{switch(G){case 0:return{hours:V.hr[ue],minutes:V.min[ue],seconds:V.sec[ue],milliseconds:V.ms[ue]};case 1:return{minutes:V.min[ue],seconds:V.sec[ue],milliseconds:V.ms[ue]};case 3:return{milliseconds:V.ms[ue]};case 4:return{};default:return{seconds:V.sec[ue],milliseconds:V.ms[ue]}}})}function De(V){return wi(V)?V.length===1?[V[0],V[0]]:V:[V,V]}function Oe(V){return De(V).map((G,ue)=>({...G,rules:fe.value[ue]}))}function we(V){return V==null?!1:Yi(V)?!isNaN(V):mo(V)?!isNaN(V.getTime()):or(V)?V!=="":_0(V)}function Ne(V){return Mr(V)&&"start"in V&&"end"in V&&we(V.start??null)&&we(V.end??null)}function it(V){return Ne(V)||we(V)}function Pe(V,G){if(V==null&&G==null)return!0;if(V==null||G==null)return!1;const ue=mo(V),Me=mo(G);return ue&&Me?V.getTime()===G.getTime():ue||Me?!1:Pe(V.start,G.start)&&Pe(V.end,G.end)}function de(V){return!it(V)||!o.value?!1:o.value.intersectsRange(a.value.range(V))}function xe(V,G,ue,Me){if(!it(V))return null;if(Ne(V)){const Xe=a.value.toDate(V.start,{...G[0],fillDate:M.value??void 0,patch:ue}),ut=a.value.toDate(V.end,{...G[1],fillDate:E.value??void 0,patch:ue});return pn({start:Xe,end:ut},Me)}return a.value.toDateOrNull(V,{...G[0],fillDate:h.value,patch:ue})}function Ie(V,G){return Ne(V)?{start:a.value.fromDate(V.start,G[0]),end:a.value.fromDate(V.end,G[1])}:C.value?null:a.value.fromDate(V,G[0])}function Fe(V,G={}){return clearTimeout(_),new Promise(ue=>{const{debounce:Me=0,...Xe}=G;Me>0?_=window.setTimeout(()=>{ue(Ye(V,Xe))},Me):ue(Ye(V,Xe))})}function Ye(V,{config:G=T.value,patch:ue="dateTime",clearIfEqual:Me=!1,formatInput:Xe=!0,hidePopover:ut=!1,dragging:Dt=P.value,targetPriority:ln,moveToValue:Jt=!1}={}){const Gn=Oe(G);let bt=xe(V,Gn,ue,ln);if(de(bt)){if(Dt)return null;bt=h.value,ut=!1}else bt==null&&e.isRequired?bt=h.value:bt!=null&&Pe(h.value,bt)&&Me&&(bt=null);const On=Dt?f:h,ai=!Pe(On.value,bt);On.value=bt,Dt||(f.value=null);const Ui=Ie(bt,T.value);return ai&&(k=!1,t(Dt?"drag":"update:modelValue",Ui),i.nextTick(()=>k=!0)),ut&&!Dt&&Ue(),Xe&&et(),Jt&&i.nextTick(()=>K(ln??"start")),Ui}function et(){i.nextTick(()=>{const V=Oe({type:"string",mask:U.value}),G=Ie(f.value??h.value,V);C.value?m.value=[G&&G.start,G&&G.end]:m.value=[G,""]})}function Pt(V,G,ue){m.value.splice(G==="start"?0:1,1,V);const Me=C.value?{start:m.value[0],end:m.value[1]||m.value[0]}:V,Xe={type:"string",mask:U.value};Fe(Me,{...ue,config:Xe,patch:ne.value,targetPriority:G,moveToValue:!0})}function tt(V){return G=>{e.updateOnInput&&Pt(G.currentTarget.value,V,{formatInput:!1,hidePopover:!1,debounce:e.inputDebounce})}}function yt(V){return G=>{Pt(G.currentTarget.value,V,{formatInput:!0,hidePopover:!1})}}function Zt(V){V.key==="Escape"&&Fe(h.value,{formatInput:!0,hidePopover:!0})}function Xt(V){return C.value?[V&&V.start?a.value.getDateParts(V.start):null,V&&V.end?a.value.getDateParts(V.end):null]:[V?a.value.getDateParts(V):null]}function ft(){f.value=null,et()}function ot(V){t("popover-will-show",V)}function $t(V){t("popover-did-show",V)}function Ct(V){ft(),t("popover-will-hide",V)}function Bt(V){t("popover-did-hide",V)}function xt(V){const G={patch:"date",formatInput:!0,hidePopover:!0};if(C.value){const ue=!P.value;ue?w={start:V.startDate,end:V.endDate}:w!=null&&(w.end=V.date),Fe(w,{...G,dragging:ue})}else Fe(V.date,{...G,clearIfEqual:!e.isRequired})}function nn(V,G){xt(V),t("dayclick",V,G)}function Et(V,G){switch(G.key){case" ":case"Enter":{xt(V),G.preventDefault();break}case"Escape":Ue()}t("daykeydown",V,G)}function oe(V,G){!P.value||w==null||(w.end=V.date,Fe(pn(w),{patch:"date",formatInput:!0}))}function Le(V={}){C0({...le.value,...V,isInteractive:!0,id:d.value})}function Ue(V={}){uc({hideDelay:10,force:!0,...le.value,...V,id:d.value})}function rn(V){H5({...le.value,...V,isInteractive:!0,id:d.value})}function pn(V,G){const{start:ue,end:Me}=V;if(ue>Me)switch(G){case"start":return{start:ue,end:ue};case"end":return{start:Me,end:Me};default:return{start:Me,end:ue}}return{start:ue,end:Me}}async function ae(V,G={}){return y.value==null?!1:y.value.move(V,G)}async function R(V,G={}){return y.value==null?!1:y.value.moveBy(V,G)}async function K(V,G={}){const ue=h.value;if(y.value==null||!it(ue))return!1;const Me=V!=="end",Xe=Me?1:-1,ut=Ne(ue)?Me?ue.start:ue.end:ue,Dt=b5(ut,"monthly",a.value);return y.value.move(Dt,{position:Xe,...G})}i.watch(()=>e.isRange,V=>{V&&console.warn("The `is-range` prop will be deprecated in future releases. Please use the `range` modifier.")},{immediate:!0}),i.watch(()=>C.value,()=>{Ye(null,{formatInput:!0})}),i.watch(()=>U.value,()=>et()),i.watch(()=>e.modelValue,V=>{k&&Ye(V,{formatInput:!0,hidePopover:!1})}),i.watch(()=>fe.value,()=>{Mr(e.rules)&&Ye(e.modelValue,{formatInput:!0,hidePopover:!1})}),i.watch(()=>e.timezone,()=>{Ye(h.value,{formatInput:!0})});const be=De(T.value);h.value=xe(e.modelValue??null,be,"dateTime"),i.onMounted(()=>{Ye(e.modelValue,{formatInput:!0,hidePopover:!1})}),i.nextTick(()=>l.value=!0);const j={...r,showCalendar:l,datePickerPopoverId:d,popoverRef:g,popoverEvents:J,calendarRef:y,isRange:C,isTimeMode:I,isDateTimeMode:$,is24hr:i.toRef(e,"is24hr"),hideTimeHeader:i.toRef(e,"hideTimeHeader"),timeAccuracy:i.toRef(e,"timeAccuracy"),isDragging:P,inputValue:pe,inputEvents:Q,dateParts:W,attributes:z,rules:fe,move:ae,moveBy:R,moveToValue:K,updateValue:Fe,showPopover:Le,hidePopover:Ue,togglePopover:rn,onDayClick:nn,onDayKeydown:Et,onDayMouseEnter:oe,onPopoverBeforeShow:ot,onPopoverAfterShow:$t,onPopoverBeforeHide:Ct,onPopoverAfterHide:Bt};return i.provide(av,j),j}function B0(){const e=i.inject(av);if(e)return e;throw new Error("DatePicker context missing. Please verify this component is nested within a valid context provider.")}const gG=[{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"}],yG=[{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 bG(e){const t=B0(),{locale:n,isRange:r,isTimeMode:a,dateParts:s,rules:o,is24hr:l,hideTimeHeader:d,timeAccuracy:h,updateValue:f}=t;function m(Y){Y=Object.assign(y.value,Y);let ne=null;if(r.value){const le=g.value?Y:s.value[0],J=g.value?s.value[1]:Y;ne={start:le,end:J}}else ne=Y;f(ne,{patch:"time",targetPriority:g.value?"start":"end",moveToValue:!0})}const g=i.computed(()=>e.position===0),y=i.computed(()=>s.value[e.position]||{isValid:!1}),_=i.computed(()=>_0(y.value)),w=i.computed(()=>!!y.value.isValid),k=i.computed(()=>!d.value&&w.value),C=i.computed(()=>{if(!_.value)return null;let Y=n.value.toDate(y.value);return y.value.hours===24&&(Y=new Date(Y.getTime()-1)),Y}),M=i.computed({get(){return y.value.hours},set(Y){m({hours:Y})}}),E=i.computed({get(){return y.value.minutes},set(Y){m({minutes:Y})}}),x=i.computed({get(){return y.value.seconds},set(Y){m({seconds:Y})}}),$=i.computed({get(){return y.value.milliseconds},set(Y){m({milliseconds:Y})}}),I=i.computed({get(){return y.value.hours<12},set(Y){Y=String(Y).toLowerCase()=="true";let ne=M.value;Y&&ne>=12?ne-=12:!Y&&ne<12&&(ne+=12),m({hours:ne})}}),P=i.computed(()=>Rj(y.value,o.value[e.position])),T=i.computed(()=>gG.filter(Y=>P.value.hours.some(ne=>ne.value===Y.value))),W=i.computed(()=>yG.filter(Y=>P.value.hours.some(ne=>ne.value===Y.value))),U=i.computed(()=>l.value?P.value.hours:I.value?T.value:W.value),ee=i.computed(()=>{const Y=[];return Br(T.value)&&Y.push({value:!0,label:"AM"}),Br(W.value)&&Y.push({value:!1,label:"PM"}),Y});return{...t,showHeader:k,timeAccuracy:h,parts:y,isValid:w,date:C,hours:M,minutes:E,seconds:x,milliseconds:$,options:P,hourOptions:U,isAM:I,isAMOptions:ee,is24hr:l}}const vG=["value"],_G=["value","disabled"],wG={key:1,class:"vc-base-sizer","aria-hidden":"true"},kG={inheritAttrs:!1},hc=i.defineComponent({...kG,__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,n=i.computed(()=>{const r=t.options.find(a=>a.value===t.modelValue);return r==null?void 0:r.label});return(r,a)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-base-select",{"vc-fit-content":e.fitContent,"vc-has-icon":e.showIcon}])},[i.createElementVNode("select",i.mergeProps(r.$attrs,{value:e.modelValue,class:["vc-focus",{"vc-align-right":e.alignRight,"vc-align-left":e.alignLeft}],onChange:a[0]||(a[0]=s=>r.$emit("update:modelValue",s.target.value))}),[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.options,s=>(i.openBlock(),i.createElementBlock("option",{key:s.value,value:s.value,disabled:s.disabled},i.toDisplayString(s.label),9,_G))),128))],16,vG),e.showIcon?(i.openBlock(),i.createBlock(_o,{key:0,name:"ChevronDown",size:"18"})):i.createCommentVNode("",!0),e.fitContent?(i.openBlock(),i.createElementBlock("div",wG,i.toDisplayString(i.unref(n)),1)):i.createCommentVNode("",!0)],2))}}),CG={key:0,class:"vc-time-header"},xG={class:"vc-time-weekday"},SG={class:"vc-time-month"},MG={class:"vc-time-day"},BG={class:"vc-time-year"},EG={class:"vc-time-select-group"},DG=i.createElementVNode("span",{class:"vc-time-colon"},":",-1),OG=i.createElementVNode("span",{class:"vc-time-colon"},":",-1),VG=i.createElementVNode("span",{class:"vc-time-decimal"},".",-1),sv=i.defineComponent({__name:"TimePicker",props:{position:null},setup(e,{expose:t}){const r=bG(e);t(r);const{locale:a,isValid:s,date:o,hours:l,minutes:d,seconds:h,milliseconds:f,options:m,hourOptions:g,isTimeMode:y,isAM:_,isAMOptions:w,is24hr:k,showHeader:C,timeAccuracy:M}=r;return(E,x)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-time-picker",[{"vc-invalid":!i.unref(s),"vc-attached":!i.unref(y)}]])},[i.createVNode(ki,{name:"time-header"},{default:i.withCtx(()=>[i.unref(C)&&i.unref(o)?(i.openBlock(),i.createElementBlock("div",CG,[i.createElementVNode("span",xG,i.toDisplayString(i.unref(a).formatDate(i.unref(o),"WWW")),1),i.createElementVNode("span",SG,i.toDisplayString(i.unref(a).formatDate(i.unref(o),"MMM")),1),i.createElementVNode("span",MG,i.toDisplayString(i.unref(a).formatDate(i.unref(o),"D")),1),i.createElementVNode("span",BG,i.toDisplayString(i.unref(a).formatDate(i.unref(o),"YYYY")),1)])):i.createCommentVNode("",!0)]),_:1}),i.createElementVNode("div",EG,[i.createVNode(_o,{name:"Clock",size:"17"}),i.createVNode(hc,{modelValue:i.unref(l),"onUpdate:modelValue":x[0]||(x[0]=$=>i.isRef(l)?l.value=$:null),modelModifiers:{number:!0},options:i.unref(g),class:"vc-time-select-hours","align-right":""},null,8,["modelValue","options"]),i.unref(M)>1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[DG,i.createVNode(hc,{modelValue:i.unref(d),"onUpdate:modelValue":x[1]||(x[1]=$=>i.isRef(d)?d.value=$:null),modelModifiers:{number:!0},options:i.unref(m).minutes,class:"vc-time-select-minutes","align-left":i.unref(M)===2},null,8,["modelValue","options","align-left"])],64)):i.createCommentVNode("",!0),i.unref(M)>2?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[OG,i.createVNode(hc,{modelValue:i.unref(h),"onUpdate:modelValue":x[2]||(x[2]=$=>i.isRef(h)?h.value=$:null),modelModifiers:{number:!0},options:i.unref(m).seconds,class:"vc-time-select-seconds","align-left":i.unref(M)===3},null,8,["modelValue","options","align-left"])],64)):i.createCommentVNode("",!0),i.unref(M)>3?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[VG,i.createVNode(hc,{modelValue:i.unref(f),"onUpdate:modelValue":x[3]||(x[3]=$=>i.isRef(f)?f.value=$:null),modelModifiers:{number:!0},options:i.unref(m).milliseconds,class:"vc-time-select-milliseconds","align-left":""},null,8,["modelValue","options"])],64)):i.createCommentVNode("",!0),i.unref(k)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(hc,{key:3,modelValue:i.unref(_),"onUpdate:modelValue":x[4]||(x[4]=$=>i.isRef(_)?_.value=$:null),options:i.unref(w)},null,8,["modelValue","options"]))])],2))}}),ov=i.defineComponent({__name:"DatePickerBase",setup(e){const{attributes:t,calendarRef:n,color:r,displayMode:a,isDateTimeMode:s,isTimeMode:o,isRange:l,onDayClick:d,onDayMouseEnter:h,onDayKeydown:f}=B0(),m=l.value?[0,1]:[0];return(g,y)=>i.unref(o)?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(`vc-container vc-bordered vc-${i.unref(r)} vc-${i.unref(a)}`)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(m),_=>(i.openBlock(),i.createBlock(sv,{key:_,position:_},null,8,["position"]))),128))],2)):(i.openBlock(),i.createBlock(hG,{key:1,attributes:i.unref(t),ref_key:"calendarRef",ref:n,onDayclick:i.unref(d),onDaymouseenter:i.unref(h),onDaykeydown:i.unref(f)},{footer:i.withCtx(()=>[i.unref(s)?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(i.unref(m),_=>(i.openBlock(),i.createBlock(sv,{key:_,position:_},null,8,["position"]))),128)):i.createCommentVNode("",!0),i.createVNode(ki,{name:"dp-footer"})]),_:1},8,["attributes","onDayclick","onDaymouseenter","onDaykeydown"]))}}),$G={inheritAttrs:!1},TG=i.defineComponent({...$G,__name:"DatePickerPopover",setup(e){const{datePickerPopoverId:t,color:n,displayMode:r,popoverRef:a,onPopoverBeforeShow:s,onPopoverAfterShow:o,onPopoverBeforeHide:l,onPopoverAfterHide:d}=B0();return(h,f)=>(i.openBlock(),i.createBlock(M0,{id:i.unref(t),placement:"bottom-start",class:i.normalizeClass(`vc-date-picker-content vc-${i.unref(n)} vc-${i.unref(r)}`),ref_key:"popoverRef",ref:a,onBeforeShow:i.unref(s),onAfterShow:i.unref(o),onBeforeHide:i.unref(l),onAfterHide:i.unref(d)},{default:i.withCtx(()=>[i.createVNode(ov,i.normalizeProps(i.guardReactiveProps(h.$attrs)),null,16)]),_:1},8,["id","class","onBeforeShow","onAfterShow","onBeforeHide","onAfterHide"]))}}),IG=i.defineComponent({inheritAttrs:!1,emits:pG,props:fG,components:{DatePickerBase:ov,DatePickerPopover:TG},setup(e,t){const n=mG(e,t),r=i.reactive(r5(n,"calendarRef","popoverRef"));return{...n,slotCtx:r}}});function AG(e,t,n,r,a,s){const o=i.resolveComponent("DatePickerPopover"),l=i.resolveComponent("DatePickerBase");return e.$slots.default?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.renderSlot(e.$slots,"default",i.normalizeProps(i.guardReactiveProps(e.slotCtx))),i.createVNode(o,i.normalizeProps(i.guardReactiveProps(e.$attrs)),null,16)],64)):(i.openBlock(),i.createBlock(l,i.normalizeProps(i.mergeProps({key:1},e.$attrs)),null,16))}const NG=ma(IG,[["render",AG]]),wo=e=>/^(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/.test(e),E0={components:{VDatePicker:NG,CdsChevron:Ts,CdsIcon:ke},props:{modelValue:{type:[String,Object],default:"",validator:e=>e===""||typeof e=="object"||wo(e)},label:{type:String,default:"Date"},disabled:{type:Boolean,default:!1},range:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},minDate:{type:String,default:"",validator:e=>e===""||wo(e)},maxDate:{type:String,default:"",validator:e=>e===""||wo(e)},placeholder:{type:String,default:"Selecione uma data"},showTodayDot:{type:Boolean,default:!1},variant:{type:String,default:"green"}},data(){return{sassColorVariables:yi,internalDate:ce.now(),isBeingFocused:!1,inputControl:0,attributes:[{dates:new Date,dot:!0}],variantColorData:{}}},computed:{errorState(){return this.state==="invalid"},hasSlots(){return!!Object.keys(this.$slots).length},capitalizedLabel(){return this.label.charAt(0).toUpperCase()+this.label.slice(1)},dateInputClassContainer(){let e="";return this.disabled?this.fluid?"inline-date-input--disabled inline-date-input--fluid":"inline-date-input--disabled":(e+=this.fluid?" date-input--fluid":" date-input",e)},inputClass(){let e="";return this.disabled?this.fluid?"date-input--disabled date-input--fluid":"date-input--disabled":(e+=this.fluid?" date-input--fluid":" date-input",e)},inlineCalendarDotColor(){return this.variantColorData.colorData[4].shade},inlineCalendarTextColor(){return this.variantColorData.colorData[7].shade},inlineCalendarTrailColor(){return this.variantColorData.colorData[1].shade}},watch:{modelValue(e,t){e!==t&&this.resolveInternalDate()},variant(e,t){e!==t&&this.updateColorData()}},created(){this.updateColorData()},mounted(){this.resolveInternalDate()},methods:{paleteBuilder:Cr,updateColorData(){this.variantColorData=this.paleteBuilder(yi.palete).find(e=>e.variantName.toLowerCase()===this.variant)},handleUpdateInput(e){if(this.range){this.$emit("update:modelValue",e.start&&e.end?{start:ce.fromJSDate(e.start).toFormat("yyyy-MM-dd"),end:ce.fromJSDate(e.end).toFormat("yyyy-MM-dd")}:"");return}this.$emit("update:modelValue",e?ce.fromJSDate(e).toFormat("yyyy-MM-dd"):"")},resolveInternalDate(){if(!this.modelValue){this.internalDate=this.range?null:"";return}if(this.range){this.internalDate=wo(this.modelValue.start)&&wo(this.modelValue.end)?{start:ce.fromFormat(this.modelValue.start,"yyyy-MM-dd"),end:ce.fromFormat(this.modelValue.end,"yyyy-MM-dd")}:{start:ce.now(),end:ce.now()};return}this.internalDate=wo(this.modelValue)?ce.fromFormat(this.modelValue,"yyyy-MM-dd"):ce.now()},resolveInputValue(e){return typeof e!="object"?e:!e.start&&!e.end||Bn.isEmpty(e)?null:`${e.start} a ${e.end}`}}},lv=()=>{i.useCssVars(e=>({"2a014cba":e.inlineCalendarTrailColor,"60dfc8d0":e.inlineCalendarTextColor,"311f6c80":e.inlineCalendarDotColor}))},cv=E0.setup;E0.setup=cv?(e,t)=>(lv(),cv(e,t)):lv;const LG={key:0},zG={key:1,class:"inline-date-input__label"},PG={class:"label__content",for:"cds-text-input"},FG=["value","disabled","placeholder","onClick"],RG={class:"inline-date-input__icon"};function HG(e,t,n,r,a,s){const o=i.resolveComponent("cds-chevron"),l=i.resolveComponent("cds-icon"),d=i.resolveComponent("v-date-picker");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["inline-date-input__container",s.dateInputClassContainer])},[i.createElementVNode("span",null,[s.hasSlots?(i.openBlock(),i.createElementBlock("span",LG,[i.renderSlot(e.$slots,"label",{},void 0,!0)])):(i.openBlock(),i.createElementBlock("label",zG,[i.createElementVNode("div",PG,[i.createElementVNode("span",null,i.toDisplayString(s.capitalizedLabel)+": ",1)])]))]),i.createVNode(d,{id:"cds--inline-date-input",modelValue:a.internalDate,"onUpdate:modelValue":[t[2]||(t[2]=h=>a.internalDate=h),s.handleUpdateInput],locale:"pt-BR","min-date":n.minDate?new Date(n.minDate):null,"max-date":n.maxDate?new Date(n.maxDate):null,attributes:n.showTodayDot?a.attributes:{},color:n.variant,"is-range":n.range},{"header-left-button":i.withCtx(({page:h})=>[i.createVNode(o,{direction:"left",onClick:f=>h.movePrevMonth()},null,8,["onClick"])]),"header-right-button":i.withCtx(({page:h})=>[i.createVNode(o,{direction:"right",onClick:f=>h.moveNextMonth()},null,8,["onClick"])]),default:i.withCtx(({inputValue:h,togglePopover:f,inputEvents:m})=>[i.createElementVNode("div",{class:i.normalizeClass(s.inputClass)},[i.createElementVNode("input",i.mergeProps({value:s.resolveInputValue(h),disabled:n.disabled,placeholder:n.placeholder,type:"text"},i.toHandlers(m,!0),{onClick:f,onFocus:t[0]||(t[0]=g=>a.isBeingFocused=!0),onBlur:t[1]||(t[1]=g=>a.isBeingFocused=!1)}),null,16,FG),i.createElementVNode("div",RG,[i.createVNode(l,{height:"20",width:"20",name:"calendar-outline"})])],2)]),_:1},8,["modelValue","min-date","max-date","attributes","color","is-range","onUpdate:modelValue"])],2)}const WG=te(E0,[["render",HG],["__scopeId","data-v-fd91d96d"]]),YG=["onClick"],UG={key:1,class:"list__body"},jG={class:"list__content"},qG={class:"list__actions"},GG={key:1},KG=te({__name:"List",props:{items:{type:Array,required:!0,default:()=>[]},variant:{type:String,default:"blue",validator:e=>Ri.includes(e)},clickable:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){i.useCssVars(l=>({c2849558:s.value}));const{isMobile:n}=su(),r=t,a=e,s=i.computed(()=>a.clickable?"pointer":"");function o(l){!a.clickable&&!n.value||r("click",l)}return(l,d)=>(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,(h,f)=>(i.openBlock(),i.createElementBlock("div",{key:f,class:"list",onClick:m=>o(h)},[i.unref(tc)("item")?i.renderSlot(l.$slots,"item",{key:0,item:h},void 0,!0):(i.openBlock(),i.createElementBlock("div",UG,[i.createElementVNode("div",{class:i.normalizeClass(["list__title",`list__title--${e.variant}`])},i.toDisplayString(h.title),3),i.createElementVNode("div",jG,i.toDisplayString(h.content),1)])),i.createElementVNode("div",qG,[i.unref(n)?(i.openBlock(),i.createBlock(ke,{key:0,height:"24",width:"24",name:"caret-right-outline"})):(i.openBlock(),i.createElementBlock("div",GG,[i.renderSlot(l.$slots,"actions",{item:h},void 0,!0)]))])],8,YG))),128))}},[["__scopeId","data-v-59486d91"]]),ZG={};function XG(e,t,n,r,a,s){return i.openBlock(),i.createElementBlock("div",null,t[0]||(t[0]=[i.createElementVNode("div",{class:"loading-bar__container"},[i.createElementVNode("div",{class:"loading-bar"})],-1)]))}const JG=te(ZG,[["render",XG],["__scopeId","data-v-59f3ef96"]]),QG=te({__name:"LoadingIndicator",props:{modelValue:{type:Boolean,default:!1,required:!0},variant:{type:String,default:"green"},intervalTime:{type:Number,default:500}},setup(e){i.useCssVars(h=>({e0a02066:r.value,"31f71fda":s.value,"51509f9e":a.value}));const t=e,n=i.ref(0),r=i.computed(()=>`${n.value}%`),a=i.computed(()=>n.value===0?"none":"width 0.5s"),s=i.computed(()=>Xa("smartphone")||Xa("tablet")?"4px":"3px");i.watch(()=>t.modelValue,h=>{if(h){o(),l();return}d()});function o(){n.value=1}function l(){if(n.value>0&&n.value<90){if(n.value+=Math.floor(Math.random()*16+10),n.value>=90){n.value=90;return}let h=Math.floor(Math.random()*(t.intervalTime*1.4-t.intervalTime*.5)+t.intervalTime*.5);setTimeout(l,h)}}function d(){n.value=100,setTimeout(()=>{n.value=0},600)}return(h,f)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(`loading-indicator--${e.variant}`)},null,2))}},[["__scopeId","data-v-fe0c8374"]]),eK={class:"mobile-navbar"},tK={class:"mobile-navbar__items"},nK={key:0,class:"mobile-navbar__item-text"},iK=te({__name:"MobileNavbar",props:{items:{type:Array,required:!0,validator:e=>e.length>0&&e.lenght<=5&&e.every(t=>t.route.path&&t.route.name)},variant:{type:String,default:"green"},showLabel:{type:Boolean,default:!1},activeItem:{type:Object,default:()=>({}),required:!0}},emits:["item-click"],setup(e,{emit:t}){const n=e,r=t,a=i.ref(n.items[0]),s=i.ref(0),o=i.computed(()=>({width:`${100/n.items.length}%`,transform:`translateX(${s.value*100}%)`})),l=i.computed(()=>{let f="";switch(s.value){case 0:f+="mobile-navbar__indicator--first ";break;case n.items.length-1:f+="mobile-navbar__indicator--last ";break;default:f+="mobile-navbar__indicator ";break}return f.concat(`mobile-navbar__indicator--${n.variant}`)});i.watchEffect(()=>{s.value=n.items.findIndex(f=>f.label===a.value.label)}),i.watch(n.activeItem,f=>{a.value=f}),i.onMounted(()=>a.value=n.activeItem||n.items[0]);function d(f){return f.route.name?{name:f.route.name}:{path:f.route.path}}function h(f){a.value=f,r("item-click",f)}return(f,m)=>{const g=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",eK,[i.createElementVNode("div",tK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,y=>(i.openBlock(),i.createBlock(g,{key:y,class:"mobile-navbar__item-link",to:d(y),onClick:_=>h(y)},{default:i.withCtx(()=>{var _,w;return[i.createElementVNode("div",{class:i.normalizeClass(["mobile-navbar__item",{"mobile-navbar__item--active":((_=a.value)==null?void 0:_.label)===y.label,[`mobile-navbar__item--active--${e.variant}`]:((w=a.value)==null?void 0:w.label)===y.label}])},[i.createVNode(ke,{height:"20",width:"20",name:y.icon},null,8,["name"]),e.showLabel?(i.openBlock(),i.createElementBlock("div",nK,i.toDisplayString(y.label),1)):i.createCommentVNode("",!0)],2)]}),_:2},1032,["to","onClick"]))),128)),i.createElementVNode("div",{class:i.normalizeClass(l.value),style:i.normalizeStyle(o.value)},null,6)])])}}},[["__scopeId","data-v-9bc49d6e"]]),rK={class:"mobile-navigation__header"},aK={class:"mobile-navigation__title"},sK={class:"mobile-navigation__sidebar-header"},oK={class:"mobile-navigation__sidebar-logo"},lK=["src"],cK={class:"mobile-navigation__sidebar-content"},dK={class:"mobile-navigation__sidebar-items"},uK={class:"mobile-navigation__sidebar-footer"},hK={class:"mobile-navigation__sidebar-user-text"},fK=te({__name:"MobileNavigation",props:{variant:{type:String,default:"green"},light:{type:Boolean,default:!1},sidebarLogo:{type:String,default:""},items:{type:Array,default:()=>[]},activeItem:{type:Object,default:()=>{}},user:{type:Object,default:()=>{}},sticky:{type:Boolean,default:!1}},emits:["logout","item-click","profile-click"],setup(e,{emit:t}){const n=e,r=t,a=i.ref(n.activeItem),s=i.ref(!1),o=i.computed(()=>n.light?"light":"dark"),l=i.computed(()=>{let w=`mobile-navigation mobile-navigation--${o.value}`;return n.sticky&&(w+=" mobile-navigation--sticky"),w});i.watch(s,async(w,k)=>{w!==k&&_(w)}),i.watch(()=>n.activeItem,w=>{a.value=w});const d=()=>{s.value=!0},h=()=>{s.value=!1},f=w=>Bn.isEqual(w,a.value),m=w=>{Bn.isEmpty(n.activeItem)&&(a.value=w),s.value=!1,r("item-click",w)},g=({route:w,path:k})=>{const C=Bn.isEmpty(w)?k:w;return C instanceof String?{path:C}:C},y=w=>g(w)?g(w).path:null,_=w=>{document.body.style.overflow=w?"hidden":"auto"};return(w,k)=>{const C=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(l.value)},[i.createElementVNode("div",{class:i.normalizeClass(`variant-resolver--${e.variant}`)},[i.createElementVNode("div",rK,[i.createElementVNode("div",aK,i.toDisplayString(a.value.label??""),1),i.createElementVNode("div",{class:"mobile-navigation__menu-btn",onClick:d},[i.createVNode(ke,{name:"menu-outline"})])]),i.createElementVNode("div",{class:i.normalizeClass(["mobile-navigation__sidebar",{"mobile-navigation__sidebar--expanded":s.value}])},[i.createElementVNode("div",sK,[i.createElementVNode("div",oK,[i.renderSlot(w.$slots,"sidebar-logo",{},()=>[i.createElementVNode("img",{src:e.sidebarLogo},null,8,lK)],!0)]),i.createElementVNode("div",{class:"mobile-navigation__sidebar-btn",onClick:h},[i.createVNode(ke,{name:"x-outline"})])]),i.createElementVNode("div",cK,[i.createElementVNode("div",dK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,M=>(i.openBlock(),i.createBlock(C,{key:M.label,to:y(M),class:i.normalizeClass(["mobile-navigation__sidebar-item",{"mobile-navigation__sidebar-item--active":f(M)}]),onClick:E=>m(M)},{default:i.withCtx(()=>[i.createVNode(ke,{name:M.icon,width:"24",height:"24"},null,8,["name"]),i.createElementVNode("span",null,i.toDisplayString(M.label),1)]),_:2},1032,["to","class","onClick"]))),128))]),i.createElementVNode("div",uK,[i.createElementVNode("div",{class:"mobile-navigation__sidebar-user-info",onClick:k[0]||(k[0]=M=>r("profile-click"))},[i.createVNode(pl,{src:e.user.picture??"",name:e.user.name??"",variant:e.variant,size:"lg"},null,8,["src","name","variant"]),i.createElementVNode("div",hK,[i.createElementVNode("p",null,i.toDisplayString(e.user.name??""),1),i.createElementVNode("p",null,i.toDisplayString(e.user.role??""),1)])]),i.createElementVNode("button",{class:"mobile-navigation__sidebar-logout",onClick:k[1]||(k[1]=M=>r("logout"))},[i.createVNode(ke,{name:"logout-outline",width:"24",height:"24"})])])])],2)],2)],2)}}},[["__scopeId","data-v-0bc86eef"]]),pK=["teal","green","blue","indigo","violet","pink","red","orange","amber"],mK={components:{CdsIcon:ke,CdsButton:ti,CdsScrollable:ad},props:{modelValue:{type:Boolean,default:!1,required:!0},title:{type:String,default:"Título"},size:{type:String,default:"md"},disableOkButton:{type:Boolean,default:!1},disableCancelButton:{type:Boolean,default:!1},noCloseOnBackdrop:{type:Boolean,default:!1},noCloseOkButton:{type:Boolean,default:!1},noCloseCancelButton:{type:Boolean,default:!1},noCloseButton:{type:Boolean,default:!1},noCancelButton:{type:Boolean,default:!1},noFooter:{type:Boolean,default:!1},noHeader:{type:Boolean,default:!1},okButtonText:{type:String,default:"Confirmar"},cancelButtonText:{type:String,default:"Cancelar"},actionButtonVariant:{type:String,default:"green",validator:e=>pK.includes(e)},scrollable:{type:Boolean,default:!1}},data(){return{innerValue:!1,tmp:""}},computed:{maxBodyHeight(){return`${window.innerHeight*.9-32*2-68-64}px`}},watch:{modelValue(e){this.innerValue=e}},mounted(){this.innerValue=this.modelValue},methods:{closeHandle(){this.innerValue=!this.innerValue,this.$emit("close",!0),this.$emit("update:modelValue",!1)},okHandle(){this.noCloseOkButton||(this.innerValue=!this.innerValue,this.$emit("update:modelValue",!1)),this.$emit("ok",!0)},cancelHandle(){this.noCloseCancelButton||(this.innerValue=!this.innerValue,this.$emit("close",!0),this.$emit("update:modelValue",!1)),this.$emit("cancel")}}},gK={key:0,class:"cds-modal__backdrop"},yK={key:0},bK={class:"cds-modal__header"},vK={key:1,class:"cds-modal__body"},_K={key:1,class:"cds-modal__footer"};function wK(e,t,n,r,a,s){const o=i.resolveComponent("cds-icon"),l=i.resolveComponent("cds-scrollable"),d=i.resolveComponent("cds-button"),h=i.resolveDirective("cds-click-outside");return a.innerValue?(i.openBlock(),i.createElementBlock("div",gK,[a.innerValue?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["cds-modal",`cds-modal--${n.size}`])},[n.noHeader?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("header",yK,[i.renderSlot(e.$slots,"header",{},()=>[i.createElementVNode("div",bK,[i.createElementVNode("h3",null,i.toDisplayString(n.title),1),n.noCloseButton?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"cds-modal__close-icon",onClick:t[0]||(t[0]=(...f)=>s.closeHandle&&s.closeHandle(...f))},[i.createVNode(o,{name:"x-outline",height:"20",width:"20",color:"#29333D"})]))])],!0)])),i.createElementVNode("section",null,[n.scrollable?(i.openBlock(),i.createBlock(l,{key:0,class:"cds-modal__body"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3})):(i.openBlock(),i.createElementBlock("div",vK,[i.renderSlot(e.$slots,"default",{},void 0,!0)]))]),n.noFooter?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("footer",_K,[i.renderSlot(e.$slots,"footer",{},()=>[n.noCancelButton?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(d,{key:0,text:n.cancelButtonText,secondary:"",disabled:n.disableCancelButton,onClick:t[1]||(t[1]=f=>n.disableCancelButton?!1:s.cancelHandle())},null,8,["text","disabled"])),i.createVNode(d,{class:"footer__ok-button",text:n.okButtonText,variant:n.actionButtonVariant,disabled:n.disableOkButton,onClick:t[2]||(t[2]=f=>n.disableOkButton?!1:s.okHandle())},null,8,["text","variant","disabled"])],!0)]))],2)),[[h,n.noCloseOnBackdrop?()=>{}:s.closeHandle]]):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)}const dv=te(mK,[["render",wK],["__scopeId","data-v-57e87b69"]]),kK={ref:"monthAndYearPicker",class:"month-and-year-picker"},CK={class:"month-and-year-picker__icon"},xK={class:"dropdown__header"},SK=te({__name:"MonthAndYearPicker",props:i.mergeModels({label:{type:String,default:"Label"},variant:{type:String,default:"green"},state:{type:String,default:"default"},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1},floatingLabel:{type:Boolean,default:!1},placeholder:{type:String,default:"Selecione uma data"},errorMessage:{type:String,default:"Valor inválido"},minDate:{type:String,default:""},maxDate:{type:String,default:""},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},supportingText:{type:[String,Array],default:""},supportLink:{type:String,default:null},supportLinkUrl:{type:String,default:"https://cuida.framer.wiki/"}},{modelValue:{type:String},modelModifiers:{}}),emits:["update:modelValue"],setup(e){i.useCssVars($=>({"2f8edad3":$.dateInputContainerWidth,"8869d91a":i.unref(c4),"3eb18a02":i.unref(l4)}));const t=i.useModel(e,"modelValue"),n=e,r=i.ref(!1),a=i.ref("down"),s=i.ref(ce.now().setLocale("pt-BR")),{clickedOutside:o,setTargetElement:l}=u4(),d=i.useTemplateRef("monthAndYearPicker"),h=i.computed(()=>s.value.toFormat("yyyy")),f=i.computed(()=>s.value.toFormat("MMMM/yyyy")),m=i.computed(()=>ce.fromFormat(n.minDate,"yyyy-MM-dd").toFormat("yyyy")===h.value?n.minDate:ce.fromFormat(`${h.value}-01-01`,"yyyy-MM-dd").setLocale("pt-BR").toFormat("yyyy-MM-dd")),g=i.computed(()=>ce.fromFormat(n.maxDate,"yyyy-MM-dd").toFormat("yyyy")===h.value?n.maxDate:ce.fromFormat(`${h.value}-12-31`,"yyyy-MM-dd").setLocale("pt-BR").toFormat("yyyy-MM-dd"));i.watch(o,$=>{$&&r.value&&(r.value=!1)}),i.watch(d,$=>{$&&l($)});function y($){s.value=s.value?s.value:ce.now().setLocale("pt-BR").toFormat("dd/MM/yyyy"),r.value=!r.value;let[I,P,T]=s.value.toFormat("dd/MM/yyyy").split("/");P=$.index,s.value=ce.fromObject({year:T,month:P}).setLocale("pt-BR"),t.value=s.value.toFormat("yyyy-MM")}const _=i.computed(()=>n.minDate?ce.fromFormat(n.minDate,"yyyy-MM-dd"):null),w=i.computed(()=>n.maxDate?ce.fromFormat(n.maxDate,"yyyy-MM-dd"):null);function k(){return _.value?s.value.minus({year:1}).startOf("year")>=_.value.startOf("year"):!0}function C(){return w.value?s.value.plus({year:1}).startOf("year")<=w.value.startOf("year"):!0}function M(){k()&&(s.value=s.value.minus({year:1}))}function E(){C()&&(s.value=s.value.plus({year:1}))}function x(){n.disabled||(a.value=o4(d,340,n.mobile||n.floatingLabel),r.value=!r.value)}return($,I)=>(i.openBlock(),i.createElementBlock("div",kK,[i.createVNode(rr,i.mergeProps({ref:"baseInput"},n,{modelValue:f.value,"onUpdate:modelValue":I[0]||(I[0]=P=>f.value=P),type:"text","floating-label":e.floatingLabel||e.mobile,readonly:!0,onClick:x}),{"trailing-icon":i.withCtx(()=>[i.createElementVNode("div",CK,[i.createVNode(ke,{height:"20",width:"20",name:"calendar-outline"})])]),_:1},16,["modelValue","floating-label"]),i.createVNode(i.Transition,{name:"month-and-year-picker-animation"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{ref:"calendar",class:i.normalizeClass(`month-and-year-picker__dropdown--${a.value}`),onMousedown:I[2]||(I[2]=i.withModifiers((...P)=>$.handleCalendarMouseDown&&$.handleCalendarMouseDown(...P),["prevent"]))},[i.createElementVNode("div",xK,[i.createElementVNode("span",{class:"dropdown__month-and-title--no-hover",onClick:I[1]||(I[1]=(...P)=>$.toggleYearPickerDisplay&&$.toggleYearPickerDisplay(...P))},i.toDisplayString(h.value),1),i.createVNode(St,null,{default:i.withCtx(()=>[i.createVNode(ke,{height:"20",width:"20",name:"caret-up-outline",class:i.normalizeClass(["dropdown__right-caret",{"dropdown__caret--disabled":!k()}]),onClick:M},null,8,["class"]),i.createVNode(ke,{height:"20",width:"20",name:"caret-down-outline",class:i.normalizeClass(["dropdown__left-caret",{"dropdown__caret--disabled":!C()}]),onClick:E},null,8,["class"])]),_:1})]),i.createVNode(d4,{ref:"monthPicker","selected-date":t.value,"min-date":m.value,"max-date":g.value,variant:e.variant,onClick:y},null,8,["selected-date","min-date","max-date","variant"])],34),[[i.vShow,r.value]])]),_:1})],512))}},[["__scopeId","data-v-a5ed7b60"]]),MK={ref:"cds-select",class:"select"},BK={key:0,class:"option__container"},EK=["onMouseover"],DK={key:1,class:"option__container"},OK={__name:"Select",props:i.mergeModels({label:{type:String,default:"Label"},placeholder:{type:String,default:"Selecione...",required:!1},options:{type:Array,default:()=>[],required:!0},state:{type:String,default:"default"},required:{type:Boolean,default:!1,required:!1},errorMessage:{type:String,default:"Valor inválido"},searchable:{type:Boolean,default:!1,required:!1},width:{type:String,default:"",required:!1},fluid:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},optionsField:{type:String,default:"value",required:!1},returnValue:{type:Boolean,default:!1,required:!1},linkText:{type:String,default:null},linkUrl:{type:String,default:"https://cuida.framer.wiki/"},supportLink:{type:String,default:null},supportingText:{type:[String,Array],default:""},supportLinkUrl:{type:String,default:"https://cuida.framer.wiki/"},mobile:{type:Boolean,default:!1},floatingLabel:{type:Boolean,default:!1}},{modelValue:{type:[Array,Object]},modelModifiers:{}}),emits:i.mergeModels({...da},["update:modelValue"]),setup(e,{expose:t,emit:n}){var it,Pe;i.useCssVars(de=>({"7bebed42":Y.value,"9cfd8530":W.value}));const r=i.useModel(e,"modelValue"),a=e,s=n,o=i.ref(0),l=i.ref(!1),d=i.ref(null),h=i.ref(!1),f=i.ref([]),m=i.ref([]),g=i.ref({value:"",id:""}),y=i.ref(""),_=i.ref("down"),w=i.ref(Gr()),k=i.useTemplateRef("baseInput"),C=i.useTemplateRef("cds-select"),M=i.useTemplateRef("select-options"),E=i.ref({}),{emitClick:x,emitFocus:$,emitBlur:I,emitKeydown:P}=ca(s),T=i.ref(0),W=i.computed(()=>a.mobile?"9px":"6px"),U=i.computed(()=>{let de="";const xe=a.mobile?"select__mobile-input":"select__input";return de+=` ${xe}--${Gh.find(Ie=>Ie===a.width)}`,de+=a.fluid?` ${xe}--fluid`:` ${xe}--fit`,de+=a.searchable?` ${xe}--searchable`:"",de}),ee=i.computed(()=>({"select__options--thin":a.width==="thin","select__options--default":a.width==="default","select__options--wide":a.width==="wide","select__options--fluid":a.fluid,"select__options--down":_.value==="down","select__options--up":_.value==="up"})),Y=i.computed(()=>a.fluid?"100%":"fit-content"),ne=i.computed(()=>Gh.some(de=>de===a.width)||a.fluid);i.watch(()=>a.searchable,(de,xe)=>{de!==xe&&(h.value=de)},{immediate:!0}),i.watch(()=>a.options,(de,xe)=>{de!==xe&&(f.value=de,m.value=de)},{immediate:!0}),i.watch(r,(de,xe)=>{de!==xe&&de!==g.value&&(de instanceof Object?g.value=de:g.value={id:de,value:de})},{immediate:!0}),i.watch(g,de=>{de===r.value||f.value.filter(Ie=>JSON.stringify(Ie)===JSON.stringify(de)).length===0||(a.returnValue?r.value=de[a.optionsField]:r.value=de)},{deep:!0}),i.onMounted(()=>{d.value=`cds-select-${w.value}`,y.value=C.value});function le(de){const xe=ic(String(de)||""),Ie=new RegExp(xe,"i");f.value=a.options.filter(Fe=>ic(Fe[a.optionsField]).search(Ie)>=0)}function J(){a.disabled||(Ne(),i.nextTick().then(()=>{var xe;const de=f.value[o.value];(xe=E.value[`${Bn.get(de,a.optionsField)}-${o.value}`])==null||xe.classList.add("highlight")}),$())}function pe(){a.disabled||(l.value=!l.value,Ne(),typeof f.value[o.value]>"u"?g.value=Vs(f.value[0]):g.value=Vs(f.value[o.value]),T.value+=1,k.value.blur())}function Q(){let de=y.value.getBoundingClientRect();de.top+de.height+286<window.innerHeight?_.value="down":_.value="up",!a.disabled&&(l.value=!l.value,x(),k.value.focus())}function me(){g.value=a.options.some(de=>{var xe,Ie;return((xe=de[a.optionsField])==null?void 0:xe.toLowerCase())===((Ie=Bn.get(g.value,a.optionsField))==null?void 0:Ie.toLowerCase())})?g.value:{},f.value=m.value,l.value=!1,I()}function ge(){g.value=Vs(f.value[o.value])}function z(de){const xe=f.value[de];return E.value[`${xe[a.optionsField]}-${de}`]}function fe(de,xe,Ie){const Fe=de.getBoundingClientRect(),Ye=M.value,et=Ye.getBoundingClientRect();Ie==="up"&&Fe.top<=et.top&&(Ye.scrollTop+=xe),Ie==="down"&&Fe.top>=et.bottom&&(Ye.scrollTop+=xe)}function he(){if(!l.value||o.value===f.value.length-1)return;o.value+=1;const de=z(o.value),xe=z(o.value-1);de.classList.add("highlight"),xe.classList.remove("highlight"),fe(de,37,"down")}function De(){if(!l.value||o.value===0)return;const de=z(o.value),xe=z(o.value-1);de.classList.remove("highlight"),xe.classList.add("highlight"),fe(de,-37,"up"),o.value-=1}function Oe(de){o.value=de,z(o.value).classList.add("highlight")}function we(){z(o.value).classList.remove("highlight")}function Ne(){f.value.forEach((de,xe)=>{const Ie=f.value[xe];E.value[`${Ie[a.optionsField]}-${xe}`].classList.remove("highlight")})}return t({componentRef:(it=k.value)==null?void 0:it.componentRef,isFocused:(Pe=k.value)==null?void 0:Pe.isFocused,focus:()=>{var de;return(de=k.value)==null?void 0:de.focus()},blur:()=>{var de;return(de=k.value)==null?void 0:de.blur()},clear:()=>{var de;return(de=k.value)==null?void 0:de.clear()},select:()=>{var de;return(de=k.value)==null?void 0:de.select()}}),(de,xe)=>(i.openBlock(),i.createElementBlock("div",MK,[i.createElementVNode("div",{class:i.normalizeClass(["select__container",e.fluid?"select__container--fluid":"select__container--fit"])},[(i.openBlock(),i.createBlock(rr,i.mergeProps({id:de.$attrs.id||d.value,key:T.value,ref:"baseInput"},{...de.$attrs,...a},{"model-value":i.unref(Bn.get)(g.value,e.optionsField),type:"text",onkeypress:`return ${h.value};`,placeholder:e.placeholder,disabled:e.disabled,readonly:!e.searchable,"support-link-url":e.supportLinkUrl||e.linkUrl,"support-link":e.supportLink||e.linkText,"floating-label":e.floatingLabel||e.mobile,class:U.value,fluid:ne.value,onKeydown:[i.withKeys(i.withModifiers(pe,["prevent"]),["enter"]),i.withKeys(i.withModifiers(he,["prevent"]),["arrow-down"]),i.withKeys(i.withModifiers(De,["prevent"]),["arrow-up"]),i.unref(P)],onClick:Q,"onUpdate:modelValue":le,onFocus:J,onBlur:me}),{"trailing-icon":i.withCtx(()=>[i.createElementVNode("span",{class:i.normalizeClass(l.value?"select__chevron--opened":"select__chevron--closed")},null,2)]),_:1},16,["id","model-value","onkeypress","placeholder","disabled","readonly","support-link-url","support-link","floating-label","class","fluid","onKeydown"])),i.withDirectives(i.createElementVNode("div",{ref:"select-options",class:i.normalizeClass(["select__options",ee.value])},[f.value.length>0?(i.openBlock(),i.createElementBlock("ul",BK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.value,(Ie,Fe)=>(i.openBlock(),i.createElementBlock("li",{key:Ie.id||Ie,ref_for:!0,ref:Ye=>{E.value[`${Ie[e.optionsField]}-${Fe}`]=Ye},class:"option__text",onMousedown:ge,onMouseover:Ye=>Oe(Fe),onMouseout:xe[0]||(xe[0]=Ye=>we())},i.toDisplayString(Ie[e.optionsField]),41,EK))),128))])):(i.openBlock(),i.createElementBlock("ul",DK,xe[1]||(xe[1]=[i.createElementVNode("li",{class:"option__text--muted"}," Nenhuma opção encontrada ",-1)])))],2),[[i.vShow,l.value]])],2)],512))}},uv=te(OK,[["__scopeId","data-v-49b139d2"]]),VK={class:"multi-file-input"},$K={class:"multi-file-input__file-container"},TK={class:"multi-file-input__box"},IK={class:"multi-file-input__badges_section"},AK={class:"multi-file-input__badge-content"},NK={key:0,class:"multi-file-input__empty-state"},LK={key:1,class:"multi-file-input__list-container"},zK={class:"multi-file-input__list"},PK={class:"multi-file-input__actions"},FK={key:0,class:"multi-file-input__alert"},RK={class:"multi-file-input__footer"},HK=te({__name:"MultiFileInput",props:{documents:{type:Array,required:!0},variant:{type:String,default:"green"},submitButtonText:{type:String,default:"Enviar"},buttonSecondary:{type:Boolean,default:!1}},emits:["submit"],setup(e,{emit:t}){const n=e,r=t,a=i.ref(0),s=i.ref({}),o=i.ref([]),l=i.ref(n.documents.map(C=>({id:no(),value:C.name,required:C.required,active:!1,file:null}))),d=i.computed(()=>o.value.filter(C=>{var M;return(M=C.selectedLabel)==null?void 0:M.id}).map(C=>C.selectedLabel.id)),h=i.computed(()=>{const C={},M=[];return d.value.forEach(E=>{C[E]?C[E]+=1:C[E]=1}),Object.keys(C).forEach(E=>{C[E]>1&&M.push(E)}),M}),f=i.computed(()=>w()&&h.value.length==0&&k());i.watch(()=>o.value,()=>{l.value.forEach(C=>{C.active=d.value.includes(C.id)})},{deep:!0});function m(C){C.name&&(o.value.push({file:C,selectedLabel:null}),a.value+=1,s.value=null)}function g(C){const M=o.value.indexOf(C);M>-1&&o.value.splice(M,1)}function y(C){var M;return h.value.includes((M=C.selectedLabel)==null?void 0:M.id)}function _(){r("submit",o.value)}function w(){return o.value.every(C=>{var M;return(M=C.selectedLabel)==null?void 0:M.id})}function k(){return l.value.filter(C=>C.required).every(C=>C.active)}return(C,M)=>(i.openBlock(),i.createElementBlock("div",VK,[i.createElementVNode("div",$K,[(i.openBlock(),i.createBlock(k4,i.mergeProps({key:a.value,modelValue:s.value,"onUpdate:modelValue":M[0]||(M[0]=E=>s.value=E)},C.$attrs,{"onUpdate:modelValue":m}),null,16,["modelValue"]))]),i.createElementVNode("div",TK,[M[2]||(M[2]=i.createElementVNode("div",{class:"multi-file-input__description"}," Os arquivos marcados com o asterisco (*) são obrigatórios: ",-1)),i.createElementVNode("div",IK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,E=>(i.openBlock(),i.createBlock(Qh,{key:E,variant:E.active?e.variant:"gray"},{default:i.withCtx(()=>[i.createElementVNode("div",AK,[E.active?(i.openBlock(),i.createBlock(ke,{key:0,name:"check-outline",height:"16",width:"16"})):i.createCommentVNode("",!0),i.createElementVNode("div",null,i.toDisplayString(E.value)+" "+i.toDisplayString(E.required?"*":""),1)])]),_:2},1032,["variant"]))),128))]),o.value.length==0?(i.openBlock(),i.createElementBlock("div",NK," Os arquivos adicionados serão exibidos aqui ")):(i.openBlock(),i.createElementBlock("div",LK,[M[1]||(M[1]=i.createElementVNode("div",{class:"multi-file-input__list-title"}," Arquivos anexados ",-1)),i.createElementVNode("div",zK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,E=>(i.openBlock(),i.createElementBlock("div",{key:E,class:"multi-file-input__list-item"},[i.createElementVNode("div",{class:i.normalizeClass(["multi-file-input__item",`multi-file-input__item--${e.variant}`])},[i.createTextVNode(i.toDisplayString(E.file.name)+" ",1),i.createElementVNode("div",null,[i.createElementVNode("div",PK,[i.createVNode(uv,{modelValue:E.selectedLabel,"onUpdate:modelValue":x=>E.selectedLabel=x,options:l.value,label:"",style:{display:"flex"}},null,8,["modelValue","onUpdate:modelValue","options"]),i.createVNode(fu,{icon:"trash-outline",size:"lg",onClick:x=>g(E)},null,8,["onClick"])]),y(E)?(i.openBlock(),i.createElementBlock("div",FK," Arquivo duplicado. ")):i.createCommentVNode("",!0)])],2)]))),128))])])),i.createElementVNode("div",RK,[i.createVNode(ti,{secondary:e.buttonSecondary,variant:e.variant,disabled:!f.value,onButtonClick:_},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.submitButtonText),1)]),_:1},8,["secondary","variant","disabled"])])])]))}},[["__scopeId","data-v-c736096e"]]);function D0(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function WK(e){return(...t)=>!e(...t)}function YK(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function UK(e){return e.filter(t=>!t.$isLabel)}function O0(e,t){return n=>n.reduce((r,a)=>a[e]&&a[e].length?(r.push({$groupLabel:a[t],$isLabel:!0}),r.concat(a[e])):r,[])}const hv=(...e)=>t=>e.reduce((n,r)=>r(n),t);var jK={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(e,t){return D0(e)?"":t?e[t]:e}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1},filteringSortFunc:{type:Function,default:null}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const e=this.search||"",t=e.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,t,this.label):this.filterOptions(n,t,this.label,this.customLabel):n=this.groupValues?O0(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(WK(this.isSelected)):n,this.taggable&&t.length&&!this.isExistingOption(t)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:e}):n.unshift({isTag:!0,label:e})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(t=>this.customLabel(t,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(e,t,n){return hv(this.filterGroups(t,n,this.groupValues,this.groupLabel,this.customLabel),O0(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return hv(O0(this.groupValues,this.groupLabel),UK)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){const t=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(t)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(D0(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return D0(t)?"":t},select(e,t){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(t)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(t==="Tab"&&!this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e)){t!=="Tab"&&this.removeElement(e);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([e])):this.$emit("update:modelValue",e),this.$emit("select",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(e){const t=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);if(t){if(this.wholeGroupSelected(t)){this.$emit("remove",t[this.groupValues],this.id);const n=this.trackBy?t[this.groupValues].map(a=>a[this.trackBy]):t[this.groupValues],r=this.internalValue.filter(a=>n.indexOf(this.trackBy?a[this.trackBy]:a)===-1);this.$emit("update:modelValue",r)}else{const n=t[this.groupValues].filter(r=>!(this.isOptionDisabled(r)||this.isSelected(r)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(e){return e[this.groupValues].every(t=>this.isSelected(t)||this.isOptionDisabled(t))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,t=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const r=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",r)}else this.$emit("update:modelValue",null);this.$emit("remove",e,this.id),this.closeOnSelect&&t&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const e=this.$el.getBoundingClientRect().top,t=window.innerHeight-this.$el.getBoundingClientRect().bottom;t>this.maxHeight||t>e||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(t-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))},filterOptions(e,t,n,r){return t?e.filter(a=>YK(r(a,n),t)).sort((a,s)=>typeof this.filteringSortFunc=="function"?this.filteringSortFunc(a,s):r(a,n).length-r(s,n).length):e},filterGroups(e,t,n,r,a){return s=>s.map(o=>{if(!o[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const l=this.filterOptions(o[n],e,t,a);return l.length?{[r]:o[r],[n]:l}:[]})}}},qK={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(e,t){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(t)}},groupHighlight(e,t){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":t.$isLabel}];const n=this.options.find(r=>r[this.groupLabel]===t.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(e){this.pointer=e,this.pointerDirty=!0}}},fv={name:"vue-multiselect",mixins:[jK,qK],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)},isRequired(){return this.required===!1?!1:this.internalValue.length<=0}}};const GK=["tabindex","aria-expanded","aria-owns","aria-activedescendant"],KK={ref:"tags",class:"multiselect__tags"},ZK={class:"multiselect__tags-wrap"},XK=["textContent"],JK=["onKeypress","onMousedown"],QK=["textContent"],eZ={class:"multiselect__spinner"},tZ=["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-label","aria-controls"],nZ=["id","aria-multiselectable"],iZ={key:0},rZ={class:"multiselect__option"},aZ=["aria-selected","id","role"],sZ=["onClick","onMouseenter","data-select","data-selected","data-deselect"],oZ=["data-select","data-deselect","onMouseenter","onMousedown"],lZ={class:"multiselect__option"},cZ={class:"multiselect__option"};function dZ(e,t,n,r,a,s){return i.openBlock(),i.createElementBlock("div",{tabindex:e.searchable?-1:n.tabindex,class:i.normalizeClass([{"multiselect--active":e.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":s.isAbove,"multiselect--has-options-group":s.hasOptionGroup},"multiselect"]),onFocus:t[14]||(t[14]=o=>e.activate()),onBlur:t[15]||(t[15]=o=>e.searchable?!1:e.deactivate()),onKeydown:[t[16]||(t[16]=i.withKeys(i.withModifiers(o=>e.pointerForward(),["self","prevent"]),["down"])),t[17]||(t[17]=i.withKeys(i.withModifiers(o=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[18]||(t[18]=i.withKeys(i.withModifiers(o=>e.addPointerElement(o),["stop","self"]),["enter","tab"])),onKeyup:t[19]||(t[19]=i.withKeys(o=>e.deactivate(),["esc"])),role:"combobox","aria-expanded":e.isOpen,"aria-owns":"listbox-"+e.id,"aria-activedescendant":e.isOpen&&e.pointer!==null?e.id+"-"+e.pointer:null},[i.renderSlot(e.$slots,"caret",{toggle:e.toggle},()=>[i.createElementVNode("div",{onMousedown:t[0]||(t[0]=i.withModifiers(o=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),i.renderSlot(e.$slots,"clear",{search:e.search}),i.createElementVNode("div",KK,[i.renderSlot(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:s.visibleValues,isOpen:e.isOpen},()=>[i.withDirectives(i.createElementVNode("div",ZK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.visibleValues,(o,l)=>i.renderSlot(e.$slots,"tag",{option:o,search:e.search,remove:e.removeElement},()=>[(i.openBlock(),i.createElementBlock("span",{class:"multiselect__tag",key:l,onMousedown:t[1]||(t[1]=i.withModifiers(()=>{},["prevent"]))},[i.createElementVNode("span",{textContent:i.toDisplayString(e.getOptionLabel(o))},null,8,XK),i.createElementVNode("i",{tabindex:"1",onKeypress:i.withKeys(i.withModifiers(d=>e.removeElement(o),["prevent"]),["enter"]),onMousedown:i.withModifiers(d=>e.removeElement(o),["prevent"]),class:"multiselect__tag-icon"},null,40,JK)],32))])),256))],512),[[i.vShow,s.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>n.limit?i.renderSlot(e.$slots,"limit",{key:0},()=>[i.createElementVNode("strong",{class:"multiselect__strong",textContent:i.toDisplayString(n.limitText(e.internalValue.length-n.limit))},null,8,QK)]):i.createCommentVNode("v-if",!0)]),i.createVNode(i.Transition,{name:"multiselect__loading"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"loading",{},()=>[i.withDirectives(i.createElementVNode("div",eZ,null,512),[[i.vShow,n.loading]])])]),_:3}),e.searchable?(i.openBlock(),i.createElementBlock("input",{key:0,ref:"search",name:n.name,id:e.id,type:"text",autocomplete:"off",spellcheck:n.spellcheck,placeholder:e.placeholder,required:s.isRequired,style:i.normalizeStyle(s.inputStyle),value:e.search,disabled:n.disabled,tabindex:n.tabindex,"aria-label":n.name+"-searchbox",onInput:t[2]||(t[2]=o=>e.updateSearch(o.target.value)),onFocus:t[3]||(t[3]=i.withModifiers(o=>e.activate(),["prevent"])),onBlur:t[4]||(t[4]=i.withModifiers(o=>e.deactivate(),["prevent"])),onKeyup:t[5]||(t[5]=i.withKeys(o=>e.deactivate(),["esc"])),onKeydown:[t[6]||(t[6]=i.withKeys(i.withModifiers(o=>e.pointerForward(),["prevent"]),["down"])),t[7]||(t[7]=i.withKeys(i.withModifiers(o=>e.pointerBackward(),["prevent"]),["up"])),t[9]||(t[9]=i.withKeys(i.withModifiers(o=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[8]||(t[8]=i.withKeys(i.withModifiers(o=>e.addPointerElement(o),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,tZ)):i.createCommentVNode("v-if",!0),s.isSingleLabelVisible?(i.openBlock(),i.createElementBlock("span",{key:1,class:"multiselect__single",onMousedown:t[10]||(t[10]=i.withModifiers((...o)=>e.toggle&&e.toggle(...o),["prevent"]))},[i.renderSlot(e.$slots,"singleLabel",{option:s.singleValue},()=>[i.createTextVNode(i.toDisplayString(e.currentOptionLabel),1)])],32)):i.createCommentVNode("v-if",!0),s.isPlaceholderVisible?(i.openBlock(),i.createElementBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:t[11]||(t[11]=i.withModifiers((...o)=>e.toggle&&e.toggle(...o),["prevent"]))},[i.renderSlot(e.$slots,"placeholder",{},()=>[i.createTextVNode(i.toDisplayString(e.placeholder),1)])],32)):i.createCommentVNode("v-if",!0)],512),i.createVNode(i.Transition,{name:"multiselect",persisted:""},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{class:"multiselect__content-wrapper",onFocus:t[12]||(t[12]=(...o)=>e.activate&&e.activate(...o)),tabindex:"-1",onMousedown:t[13]||(t[13]=i.withModifiers(()=>{},["prevent"])),style:i.normalizeStyle({maxHeight:e.optimizedHeight+"px"}),ref:"list"},[i.createElementVNode("ul",{class:"multiselect__content",style:i.normalizeStyle(s.contentStyle),role:"listbox",id:"listbox-"+e.id,"aria-multiselectable":e.multiple},[i.renderSlot(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(i.openBlock(),i.createElementBlock("li",iZ,[i.createElementVNode("span",rZ,[i.renderSlot(e.$slots,"maxElements",{},()=>[i.createTextVNode("Maximum of "+i.toDisplayString(e.max)+" options selected. First remove a selected option to select another.",1)])])])):i.createCommentVNode("v-if",!0),!e.max||e.internalValue.length<e.max?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(e.filteredOptions,(o,l)=>(i.openBlock(),i.createElementBlock("li",{class:"multiselect__element",key:l,"aria-selected":e.isSelected(o),id:e.id+"-"+l,role:o&&(o.$isLabel||o.$isDisabled)?null:"option"},[o&&(o.$isLabel||o.$isDisabled)?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass([e.optionHighlight(l,o),"multiselect__option"]),onClick:i.withModifiers(d=>e.select(o),["stop"]),onMouseenter:i.withModifiers(d=>e.pointerSet(l),["self"]),"data-select":o&&o.isTag?e.tagPlaceholder:s.selectLabelText,"data-selected":s.selectedLabelText,"data-deselect":s.deselectLabelText},[i.renderSlot(e.$slots,"option",{option:o,search:e.search,index:l},()=>[i.createElementVNode("span",null,i.toDisplayString(e.getOptionLabel(o)),1)])],42,sZ)),o&&(o.$isLabel||o.$isDisabled)?(i.openBlock(),i.createElementBlock("span",{key:1,"data-select":e.groupSelect&&s.selectGroupLabelText,"data-deselect":e.groupSelect&&s.deselectGroupLabelText,class:i.normalizeClass([e.groupHighlight(l,o),"multiselect__option"]),onMouseenter:i.withModifiers(d=>e.groupSelect&&e.pointerSet(l),["self"]),onMousedown:i.withModifiers(d=>e.selectGroup(o),["prevent"])},[i.renderSlot(e.$slots,"option",{option:o,search:e.search,index:l},()=>[i.createElementVNode("span",null,i.toDisplayString(e.getOptionLabel(o)),1)])],42,oZ)):i.createCommentVNode("v-if",!0)],8,aZ))),128)):i.createCommentVNode("v-if",!0),i.withDirectives(i.createElementVNode("li",null,[i.createElementVNode("span",lZ,[i.renderSlot(e.$slots,"noResult",{search:e.search},()=>[t[20]||(t[20]=i.createTextVNode("No elements found. Consider changing the search query."))])])],512),[[i.vShow,n.showNoResults&&e.filteredOptions.length===0&&e.search&&!n.loading]]),i.withDirectives(i.createElementVNode("li",null,[i.createElementVNode("span",cZ,[i.renderSlot(e.$slots,"noOptions",{},()=>[t[21]||(t[21]=i.createTextVNode("List is empty."))])])],512),[[i.vShow,n.showNoOptions&&(e.options.length===0||s.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!n.loading]]),i.renderSlot(e.$slots,"afterList")],12,nZ)],36),[[i.vShow,e.isOpen]])]),_:3})],42,GK)}fv.render=dZ;const ko=0,Co=1,Pu=e=>e===void 0?{}:JSON.parse(JSON.stringify(e)),V0={components:{Multiselect:fv,CdsDivider:$s,CdsCheckbox:eo,CdsSpacer:ru},props:{modelValue:{type:Array,required:!0},label:{type:String,default:"text"},variant:{type:String,default:"green"},trackBy:{type:String,default:"value"},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},errorMessage:{type:String,default:"Valor inválido"},state:{type:String,default:"default"},options:{type:Array,required:!0,default:()=>[]},optionsField:{type:String,default:"value",required:!1},hideSelectAll:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1}},data(){return{selectedValue:this.$attrs.modelValue||[],internalOptions:Pu(this.options),groupValues:null,groupLabel:null,selectAllValue:!1,queryString:"",indeterminate:!1,sassColorVariables:yi,uniqueKey:Gr()}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},errorState(){return this.state==="invalid"},selectedFancyMessage(){return e=>e===1?this.selectedValue[0][this.optionsField]:`${e} opções selecionadas`},selectAllFancyMessage(){return this.hasSelectedValues?"Desfazer seleção":"Selecionar todos"},hasSelectedValues(){return this.selectedValue.length>0},isAllItemsSelected(){return this.selectedValue.length===this.options.length},computedPlaceholder(){return this.$attrs.placeholder?this.$attrs.placeholder:"Selecione uma ou mais opções"},isGroupMode(){return this.internalOptions[ko]&&this.internalOptions[ko].$status||this.internalOptions[Co]&&this.internalOptions[Co].$status},attrs(){const{label:e,trackBy:t,options:n,...r}=this.$attrs;return r},inputBackgroundColor(){return this.disabled?this.sassColorVariables.n20:this.sassColorVariables.n0},resolveMultiselectHeight(){return this.mobile?"48px":"40px"},resolveMultiselectTop(){return this.mobile?"6px":"5px"}},watch:{selectedValue(e){const t=Pu(e);t.forEach(n=>delete n.isSelected),this.indeterminate=e.length>0&&e.length<this.options.length,this.$emit("input",t),this.$emit("update:modelValue",t)},isAllItemsSelected(e){if(!e&&this.selectAllValue){this.selectAllValue=!1;return}e&&!this.selectAllValue&&(this.selectAllValue=!0)},indeterminate(e){if(this.hideSelectAll)return;const t=document.getElementById(`select-all-input-id-${this.uniqueKey}`);t.indeterminate=e}},mounted(){this.modelValue===null||this.modelValue.length===0||(this.selectedValue=this.modelValue,this.updateRenderOptions(),this.indeterminate=this.hasSelectedValues&&this.selectedValue.length<this.options.length)},methods:{unselectItem(e){this.handleSelectItem(e),this.$emit("remove",e)},selectItem(e){this.handleSelectItem(e),this.$emit("select",e)},handleSelectItem(e){this.isGroupMode?(this.internalOptions[ko].options.forEach(t=>{t[this.optionsField]===e[this.optionsField]&&(t.isSelected=!t.isSelected)}),this.internalOptions[Co].options.forEach(t=>{t[this.optionsField]===e[this.optionsField]&&(t.isSelected=!t.isSelected)})):this.internalOptions.forEach(t=>{t[this.optionsField]===e[this.optionsField]&&(t.isSelected=!t.isSelected)})},toggleSelectAll(){this.selectAllValue=!this.hasSelectedValues,this.selectAllValue?this.selectedValue=this.options:this.selectedValue=[],this.$nextTick().then(()=>{this.isGroupMode?(this.internalOptions[ko].options=this.internalOptions[ko].options.map(e=>({...e,isSelected:this.selectAllValue})),this.internalOptions[Co].options=this.internalOptions[Co].options.map(e=>({...e,isSelected:this.selectAllValue}))):this.internalOptions=this.internalOptions.map(e=>({...e,isSelected:this.selectAllValue}))})},addItemViaCustomCheckbox(e){e.isSelected=!e.isSelected,this.selectedValue=[...this.selectedValue,e]},handleClose(){this.updateRenderOptions(),this.setContentWrapperScrollToTop(),this.$emit("close")},updateRenderOptions(){if(!this.hasSelectedValues){this.internalOptions=Pu(this.options.map(t=>({...t,isSelected:!1}))),this.groupValues=null,this.groupLabel=null;return}this.selectedValue.forEach(t=>{t.isSelected=!0});let e=Pu(this.options);e=e.map(t=>(this.selectedValue.some(r=>r[this.optionsField]===t[this.optionsField])?t.isSelected=!0:t.isSelected=!1,t)),this.internalOptions=[{$status:"Selecionados",options:[]},{$status:"Não selecionados",options:[]}],this.internalOptions[ko].options=this.selectedValue,this.internalOptions[Co].options=e.filter(t=>!t.isSelected),this.groupValues="options",this.groupLabel="$status"},handleSearchChange(e){this.queryString=e},setContentWrapperScrollToTop(){document.querySelector(`span[data-cds-multiselect-identifier='${this.uniqueKey}']`).getElementsByClassName("multiselect__content-wrapper")[0].scrollTo(0,0)}}},pv=()=>{i.useCssVars(e=>({"77b643b7":e.inputBackgroundColor,"30be1708":e.resolveMultiselectHeight,"4669b3c0":e.resolveMultiselectTop}))},mv=V0.setup;V0.setup=mv?(e,t)=>(pv(),mv(e,t)):pv;const uZ=["data-cds-multiselect-identifier"],hZ={key:0},fZ=["for"],pZ={key:0,class:"label__required-indicator"},mZ={key:1,class:"cds-multiselect__grouped-divider"},gZ={key:0,class:"cds-multiselect__group-label"},yZ={key:1,class:"cds-multiselect__option"},bZ={class:"option__checkbox"},vZ=["id","onUpdate:modelValue","name"],_Z=["id","for","onClick"],wZ={key:0,class:"multiselect__single"},kZ={key:1},CZ={key:0,class:"clustered-multiselect__error-message"};function xZ(e,t,n,r,a,s){const o=i.resolveComponent("cds-checkbox"),l=i.resolveComponent("cds-spacer"),d=i.resolveComponent("cds-divider"),h=i.resolveComponent("multiselect",!0);return i.openBlock(),i.createElementBlock("span",{class:"cds-multiselect","data-cds-multiselect-identifier":a.uniqueKey},[i.createElementVNode("span",null,[s.hasSlots?(i.openBlock(),i.createElementBlock("span",hZ,[i.renderSlot(e.$slots,"label")])):(i.openBlock(),i.createElementBlock("label",{key:1,class:i.normalizeClass(n.mobile?"clustered-multiselect__mobile-label":"clustered-multiselect__label")},[i.createElementVNode("div",{class:"label__content",for:`clustered-multiselect-${a.uniqueKey}`},[i.createElementVNode("span",null,i.toDisplayString(n.label),1),n.required?(i.openBlock(),i.createElementBlock("span",pZ," * ")):i.createCommentVNode("",!0)],8,fZ)],2))]),i.createVNode(h,i.mergeProps({id:`clustered-multiselect-${a.uniqueKey}`,ref:"cds-multiselect"},s.attrs,{modelValue:a.selectedValue,"onUpdate:modelValue":t[2]||(t[2]=f=>a.selectedValue=f),options:a.internalOptions,label:n.optionsField,"track-by":n.trackBy,multiple:"","group-values":a.groupValues,"group-label":a.groupLabel,"close-on-select":!1,"clear-on-select":!1,"select-label":"","deselect-label":"","selected-label":"",disabled:n.disabled,placeholder:s.computedPlaceholder,"block-keys":["Delete","Enter"],onClose:s.handleClose,onSelect:s.selectItem,onRemove:s.unselectItem,onSearchChange:s.handleSearchChange}),{beforeList:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",null,[n.hideSelectAll?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"cds-multiselect__option multiselect__option",onClick:t[1]||(t[1]=(...f)=>s.toggleSelectAll&&s.toggleSelectAll(...f))},[i.createVNode(l,{"margin-left":"2"},{default:i.withCtx(()=>[i.createVNode(o,{id:`select-all-input-id-${a.uniqueKey}`,modelValue:a.selectAllValue,"onUpdate:modelValue":t[0]||(t[0]=f=>a.selectAllValue=f),label:s.selectAllFancyMessage,indeterminate:a.indeterminate,variant:n.variant},null,8,["id","modelValue","label","indeterminate","variant"])]),_:1})])),s.isGroupMode?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",mZ,[i.createVNode(d,{dimmed:""})]))],512),[[i.vShow,!a.queryString&&n.options.length]])]),option:i.withCtx(({option:f})=>[f.$isLabel?(i.openBlock(),i.createElementBlock("div",gZ,[i.createVNode(d,{text:f.$groupLabel,inline:"",dimmed:""},null,8,["text"])])):(i.openBlock(),i.createElementBlock("div",yZ,[i.createElementVNode("div",bZ,[i.withDirectives(i.createElementVNode("input",{id:`input-${f[n.optionsField]}-${a.uniqueKey}`,"onUpdate:modelValue":m=>f.isSelected=m,type:"checkbox",name:`input-${f[n.optionsField]}-${a.uniqueKey}`,value:!0},null,8,vZ),[[i.vModelCheckbox,f.isSelected]]),i.createElementVNode("label",{id:`checkbox-${f[n.optionsField]}`,for:`input-${f[n.optionsField]}-${a.uniqueKey}`,class:i.normalizeClass(f.isSelected?`option__checkbox--${n.variant}`:""),onClick:m=>s.addItemViaCustomCheckbox(f)},null,10,_Z)]),i.renderSlot(e.$slots,"option",{option:f,optionField:n.optionsField},()=>[i.createTextVNode(i.toDisplayString(f[n.optionsField]),1)])]))]),selection:i.withCtx(({values:f,isOpen:m})=>[i.renderSlot(e.$slots,"selection",{values:f,isOpen:m,unselectItem:s.unselectItem},()=>[f.length&&!m?(i.openBlock(),i.createElementBlock("span",wZ,i.toDisplayString(s.selectedFancyMessage(f.length)),1)):(i.openBlock(),i.createElementBlock("span",kZ))])]),noResult:i.withCtx(()=>[t[3]||(t[3]=i.createTextVNode(' Nenhum resultado encontrado para: "')),i.createElementVNode("strong",null,i.toDisplayString(a.queryString),1),t[4]||(t[4]=i.createTextVNode('" '))]),noOptions:i.withCtx(()=>t[5]||(t[5]=[i.createTextVNode(" Não há nenhuma opção para ser exibida. ")])),_:3},16,["id","modelValue","options","label","track-by","group-values","group-label","disabled","placeholder","onClose","onSelect","onRemove","onSearchChange"]),s.errorState&&!n.disabled?(i.openBlock(),i.createElementBlock("div",CZ,i.toDisplayString(n.errorMessage),1)):i.createCommentVNode("",!0)],8,uZ)}const SZ=te(V0,[["render",xZ]]);function MZ(e){return i.getCurrentScope()?(i.onScopeDispose(e),!0):!1}const gv=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const BZ=Object.prototype.toString,EZ=e=>BZ.call(e)==="[object Object]",xo=()=>{},DZ=OZ();function OZ(){var e,t;return gv&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function $0(e){return Array.isArray(e)?e:[e]}function VZ(e,t,n){return i.watch(e,t,{...n,immediate:!0})}const yv=gv?window:void 0;function fc(e){var t;const n=i.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function pc(...e){const t=[],n=()=>{t.forEach(l=>l()),t.length=0},r=(l,d,h,f)=>(l.addEventListener(d,h,f),()=>l.removeEventListener(d,h,f)),a=i.computed(()=>{const l=$0(i.toValue(e[0])).filter(d=>d!=null);return l.every(d=>typeof d!="string")?l:void 0}),s=VZ(()=>{var l,d;return[(d=(l=a.value)==null?void 0:l.map(h=>fc(h)))!=null?d:[yv].filter(h=>h!=null),$0(i.toValue(a.value?e[1]:e[0])),$0(i.unref(a.value?e[2]:e[1])),i.toValue(a.value?e[3]:e[2])]},([l,d,h,f])=>{if(n(),!(l!=null&&l.length)||!(d!=null&&d.length)||!(h!=null&&h.length))return;const m=EZ(f)?{...f}:f;t.push(...l.flatMap(g=>d.flatMap(y=>h.map(_=>r(g,y,_,m)))))},{flush:"post"}),o=()=>{s(),n()};return MZ(n),o}let bv=!1;function $Z(e,t,n={}){const{window:r=yv,ignore:a=[],capture:s=!0,detectIframe:o=!1,controls:l=!1}=n;if(!r)return l?{stop:xo,cancel:xo,trigger:xo}:xo;if(DZ&&!bv){bv=!0;const k={passive:!0};Array.from(r.document.body.children).forEach(C=>pc(C,"click",xo,k)),pc(r.document.documentElement,"click",xo,k)}let d=!0;const h=k=>i.toValue(a).some(C=>{if(typeof C=="string")return Array.from(r.document.querySelectorAll(C)).some(M=>M===k.target||k.composedPath().includes(M));{const M=fc(C);return M&&(k.target===M||k.composedPath().includes(M))}});function f(k){const C=i.toValue(k);return C&&C.$.subTree.shapeFlag===16}function m(k,C){const M=i.toValue(k),E=M.$.subTree&&M.$.subTree.children;return E==null||!Array.isArray(E)?!1:E.some(x=>x.el===C.target||C.composedPath().includes(x.el))}const g=k=>{const C=fc(e);if(k.target!=null&&!(!(C instanceof Element)&&f(e)&&m(e,k))&&!(!C||C===k.target||k.composedPath().includes(C))){if("detail"in k&&k.detail===0&&(d=!h(k)),!d){d=!0;return}t(k)}};let y=!1;const _=[pc(r,"click",k=>{y||(y=!0,setTimeout(()=>{y=!1},0),g(k))},{passive:!0,capture:s}),pc(r,"pointerdown",k=>{const C=fc(e);d=!h(k)&&!!(C&&!k.composedPath().includes(C))},{passive:!0}),o&&pc(r,"blur",k=>{setTimeout(()=>{var C;const M=fc(e);((C=r.document.activeElement)==null?void 0:C.tagName)==="IFRAME"&&!(M!=null&&M.contains(r.document.activeElement))&&t(k)},0)},{passive:!0})].filter(Boolean),w=()=>_.forEach(k=>k());return l?{stop:w,cancel:()=>{d=!1},trigger:k=>{d=!0,g(k),d=!1}}:w}const TZ={ref:"cds-combobox",class:"combobox"},IZ={class:"badge"},AZ={key:0,class:"option__container"},NZ=["onClick"],LZ={key:1,class:"combobox__empty"},zZ=te({__name:"ComboBox",props:i.mergeModels({label:{type:String,default:"Label"},options:{type:Array,default:()=>[],required:!0},required:{type:Boolean,default:!1,required:!1},fluid:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},optionsKeyField:{type:String,default:"name",required:!0},optionsValueField:{type:String,default:"value",required:!0},state:{type:String,default:"default"},errorMessage:{type:String,default:"Valor inválido"},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},variant:{type:String,default:"green"}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:i.mergeModels(["update:modelValue"],["update:modelValue"]),setup(e,{emit:t}){i.useCssVars(Y=>({"7d4781ab":f.value,d80a6538:m.value}));const n=e,r=t,a=i.ref([]),s=i.ref(new Set),o=i.ref(!1),l=i.ref(""),d=i.useModel(e,"modelValue"),h=i.useTemplateRef("cds-combobox"),f=i.computed(()=>n.fluid?"100%":"fit-content"),m=i.computed(()=>n.fluid?"100%":"266px"),g=i.computed(()=>s.value.size>=1?"Desfazer seleção":"Selecionar todos"),y=i.computed(()=>s.value.size>0),_=i.computed(()=>s.value.size===a.value.length),w=i.computed(()=>y.value&&!_.value),k=i.computed(()=>l.value?a.value.filter(Y=>Y[n.optionsValueField].toLowerCase().includes(l.value.toLowerCase())):a.value),C=i.computed(()=>!!l.value.trim()),M=i.computed(()=>a.value.some(Y=>Y[n.optionsValueField].toLowerCase()===l.value.trim().toLowerCase()));i.watch(()=>n.options,(Y,ne)=>{Y!==ne&&(a.value=Y)},{immediate:!0}),i.watchEffect(()=>{const Y=new Set(a.value.filter(le=>d.value.some(J=>J[n.optionsKeyField]===le[n.optionsKeyField])));[...Y].some(le=>![...s.value].some(J=>J[n.optionsKeyField]===le[n.optionsKeyField]))&&(s.value=Y)}),i.watch(n.modelValue,Y=>{if(Y&&Y.length>0){const ne=new Set(Y.map(le=>le[n.optionsKeyField]));s.value=ne}},{immediate:!0}),i.watch(s,()=>{r("update:modelValue",Array.from(s.value))},{deep:!0,immediate:!0}),$Z(h,()=>{o.value=!1,l.value=""});const E=Y=>s.value.has(Y),x=Y=>{if(E(Y)){s.value.delete(Y);return}s.value.add(Y)},$=()=>{s.value=new Set(a.value)},I=()=>{s.value.clear()},P=()=>{if(!C.value||M.value)return;const Y={[n.optionsValueField]:l.value.trim(),[n.optionsKeyField]:l.value.toLowerCase().trim().replace(/ /g,"-")};s.value.add(Y),a.value.push(Y),l.value=""},T=()=>{P()},W=()=>{o.value=!o.value},U=()=>{o.value||l.value&&l.value.trim()===""||(o.value=!0)},ee=()=>{W(),U()};return(Y,ne)=>(i.openBlock(),i.createElementBlock("div",TZ,[i.createElementVNode("div",{class:i.normalizeClass(["combobox__container",e.fluid?"combobox__container--fluid":"combobox__container--fit"])},[i.createVNode(rr,{"model-value":l.value,"enable-top-content":s.value.size>0,label:e.label,placeholder:`Buscar ${e.label.toLowerCase()}`,state:e.state,"error-message":e.errorMessage,required:e.required,disabled:e.disabled,fluid:e.fluid,tooltip:e.tooltip,"tooltip-icon":e.tooltipIcon,onKeydown:i.withKeys(T,["enter"]),onClick:ee,onFocus:U,"onUpdate:modelValue":ne[0]||(ne[0]=le=>l.value=le)},{"top-content":i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(le,J)=>(i.openBlock(),i.createElementBlock("div",{key:J},[i.createVNode(Qh,{style:{cursor:"pointer"},variant:e.variant,size:"md",onClick:pe=>x(le)},{default:i.withCtx(()=>[i.createElementVNode("div",IZ,[i.createVNode(Jh,{width:"220"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(le[e.optionsValueField]),1)]),_:2},1024),i.createVNode(ke,{class:"badge__icon",name:"x-outline",height:"12",width:"12"})])]),_:2},1032,["variant","onClick"])]))),128))]),_:1},8,["model-value","enable-top-content","label","placeholder","state","error-message","required","disabled","fluid","tooltip","tooltip-icon"]),o.value?(i.openBlock(),i.createElementBlock("div",{key:0,ref:"combobox-options",class:i.normalizeClass(["combobox__options",Y.selectOptionsClass])},[a.value.length>0?(i.openBlock(),i.createElementBlock("div",AZ,[i.createVNode(eo,{class:"option__text",variant:e.variant,label:g.value,"model-value":_.value&&y.value,indeterminate:w.value,"onUpdate:modelValue":ne[1]||(ne[1]=le=>y.value?I():$())},null,8,["variant","label","model-value","indeterminate"]),i.createVNode($s,{light:""}),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(k.value,(le,J)=>(i.openBlock(),i.createElementBlock("div",{key:le[e.optionsKeyField]||J,class:i.normalizeClass(["option__text",{"option__text--selected":E(le[e.optionsKeyField])}]),onClick:pe=>x(le,E(le[e.optionsKeyField]))},[i.createVNode(eo,{variant:e.variant,label:le.value,prominent:E(le),"model-value":E(le)},null,8,["variant","label","prominent","model-value"])],10,NZ))),128))])):i.createCommentVNode("",!0),o.value&&a.value.length===0&&l.value.length===0?(i.openBlock(),i.createElementBlock("div",LZ," Nenhuma opção encontrada ")):i.createCommentVNode("",!0),!M.value&&C.value?(i.openBlock(),i.createElementBlock("div",{key:2,class:"option__button",onClick:P}," Adicionar "+i.toDisplayString(l.value),1)):i.createCommentVNode("",!0)],2)):i.createCommentVNode("",!0)],2)],512))}},[["__scopeId","data-v-6ec95a14"]]),PZ={props:{items:{type:Array,default:()=>[],required:!0,validator:e=>!e.filter(n=>{const r=on(n.path)&&on(n.route),a=on(n.items)||n.items.filter(s=>on(s.path)&&on(s.route)).length;return on(n.label)||a&&r}).length},activeItem:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:e=>Ri.includes(e)}},data(){return{internalActiveItem:this.activeItem,colorOptions:Ri}},computed:{activeBorderStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},watch:{items:{handler(e){const t=e.filter(n=>n.name===this.activeItem.name);[this.internalActiveItem]=t.length?t:e},immediate:!0}},mounted(){this.internalActiveItem=this.activeItem},methods:{colorHexCode:to,handleClick(e,t){this.internalActiveItem=t,this.$emit("navbar-click",this.internalActiveItem)},isActive(e){return ao(this.internalActiveItem,e)},resolveRoute({route:e,path:t}){const n=on(e)?t:e;return n instanceof String?{path:n}:n},routerPushTo(e){return this.resolveRoute(e)?this.resolveRoute(e).path:null},indicatorClass(e){return this.isActive(e)?`item__indicator--active--${this.variant}`:""}}},FZ={id:"nav-bar"};function RZ(e,t,n,r,a,s){const o=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",FZ,[i.createElementVNode("ul",{class:i.normalizeClass({"nav-bar__container":n.items.length>=1})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.items,(l,d)=>(i.openBlock(),i.createElementBlock("li",{key:`${d}-${l.name}-item`,role:"presentation",class:i.normalizeClass(["nav-bar__item-container",s.isActive(l)?"nav-bar__item-container--active":"nav-bar__item-container--inactive"])},[i.createVNode(o,{to:s.routerPushTo(l),class:i.normalizeClass(["nav-bar__item",s.isActive(l)?"nav-bar__item--active":"nav-bar__item--inactive"]),onClick:h=>s.handleClick(h,l)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(l.label),1)]),_:2},1032,["to","class","onClick"]),i.createElementVNode("div",{class:i.normalizeClass(s.indicatorClass(l)),style:i.normalizeStyle(s.activeBorderStyle)},null,6)],2))),128))],2)])}const HZ=te(PZ,[["render",RZ]]),WZ={mounted(e,t){const n=s=>{if(s==0)return"R$ 0,00";if(!s)return"";let o=String(s).replace(/\D/g,"");return o?(parseFloat(o)/100).toLocaleString("pt-BR",{style:"currency",currency:"BRL"}):"R$ 0,00"};let r=!1;const a=s=>{if(r)return;r=!0;let o=String(s.target.value||""),l=o.replace(/\D/g,""),d=parseFloat(l)/100;const h=n(o);s.target.value=h;const f=new Event("input",{bubbles:!0});Object.defineProperty(f,"target",{value:{value:d},writable:!1}),e.dispatchEvent(f),r=!1};e.addEventListener("input",a),e.value=n(t.value||""),e._inputHandler=a},updated(e,t){const n=r=>{if(!r)return"";let a=String(r).replace(/\D/g,"");return(parseFloat(a)/100).toLocaleString("pt-BR",{style:"currency",currency:"BRL"})};e.value=n(t.value||"")},unmounted(e){e._inputHandler&&e.removeEventListener("input",e._inputHandler)}},vv=e=>{let t=e.replace("R$","");return t=t.replaceAll(".",""),t=t.replace(/(.*),(\d{2})/g,"$1.$2"),+t},YZ={__name:"NumberInput",props:i.mergeModels({label:{type:String,default:"Valor"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},required:{type:Boolean,default:!1},placeholder:{type:String,default:"Digite aqui a informação"},supportingText:{type:[String,Array],default:""},errorMessage:{type:String,default:"Valor inválido"},fluid:{type:Boolean,default:!1,required:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},money:{type:Boolean,default:!1},linkText:{type:String,default:null},linkUrl:{type:String,default:"https://cuida.framer.wiki/"},supportLink:{type:String,default:null},supportLinkUrl:{type:String,default:"https://cuida.framer.wiki/"},lazy:{type:Boolean,default:!1},mask:{type:[String,Array],default:null},mobile:{type:Boolean,default:!1},floatingLabel:{type:Boolean,default:!1}},{modelValue:{type:[Number,String]},modelModifiers:{},unmaskedValue:{type:[Number,String,null]},unmaskedValueModifiers:{}}),emits:i.mergeModels({...da},["update:modelValue","update:unmaskedValue"]),setup(e,{expose:t,emit:n}){var M,E;const r=ro,a=i.useTemplateRef("baseInput"),s=i.useModel(e,"modelValue"),o=i.useModel(e,"unmaskedValue"),l=e,d=n,h=i.ref(""),{emitClick:f,emitChange:m,emitFocus:g,emitBlur:y,emitKeydown:_}=ca(d);let w={};i.watch(s,(x,$)=>{x!==$&&(h.value=x)},{immediate:!0}),i.watch(h,(x,$)=>{if(x!==$){let I=String(x);l.money?(o.value=vv(I),s.value=I):l.mask?(h.value=I,s.value=I,o.value=+I.replace(/\D/g,"")):I.length>15?h.value=+I.slice(0,15):(s.value=+I,o.value=+I)}}),i.onMounted(()=>{l.money&&a.value&&a.value.componentRef&&(w={value:s.value,oldValue:"",instance:a.value.componentRef,modifiers:{},arg:null},WZ.mounted(a.value.componentRef,w))});function k(){l.money&&(h.value=h.value==0||h.value==""?"R$ 0,00":h.value),g()}function C(){s.value=h.value,m()}return t({componentRef:(M=a.value)==null?void 0:M.componentRef,isFocused:(E=a.value)==null?void 0:E.isFocused,focus:()=>{var x;return(x=a.value)==null?void 0:x.focus()},blur:()=>{var x;return(x=a.value)==null?void 0:x.blur()},clear:()=>{var x;return(x=a.value)==null?void 0:x.clear()},select:()=>{var x;return(x=a.value)==null?void 0:x.select()}}),(x,$)=>(i.openBlock(),i.createElementBlock("div",null,[e.money?(i.openBlock(),i.createBlock(rr,i.mergeProps({key:0,ref:"baseInput"},{...x.$attrs,...l},{modelValue:h.value,"onUpdate:modelValue":$[0]||($[0]=I=>h.value=I),"floating-label":e.floatingLabel||e.mobile,"support-link":e.supportLink||e.linkText,"support-link-url":e.supportLinkUrl||e.linkUrl,onClick:i.unref(f),onChange:C,onFocus:k,onBlur:i.unref(y),onKeydown:i.unref(_)}),null,16,["modelValue","floating-label","support-link","support-link-url","onClick","onBlur","onKeydown"])):e.mask?i.withDirectives((i.openBlock(),i.createBlock(rr,i.mergeProps({key:1,ref:"baseInput"},{...x.$attrs,...l},{modelValue:h.value,"onUpdate:modelValue":$[1]||($[1]=I=>h.value=I),type:"tel","floating-label":e.floatingLabel||e.mobile,"support-link":e.supportLink||e.linkText,"support-link-url":e.supportLinkUrl||e.linkUrl,onClick:i.unref(f),onChange:C,onFocus:k,onBlur:i.unref(y),onKeydown:i.unref(_)}),null,16,["modelValue","floating-label","support-link","support-link-url","onClick","onBlur","onKeydown"])),[[i.unref(r),e.mask]]):(i.openBlock(),i.createBlock(rr,i.mergeProps({key:2,ref:"baseInput"},{...x.$attrs,...l},{modelValue:h.value,"onUpdate:modelValue":$[2]||($[2]=I=>h.value=I),"floating-label":e.floatingLabel||e.mobile,"support-link":e.supportLink||e.linkText,"support-link-url":e.supportLinkUrl||e.linkUrl,type:"number",onClick:i.unref(f),onChange:C,onFocus:k,onBlur:i.unref(y),onKeydown:i.unref(_)}),null,16,["modelValue","floating-label","support-link","support-link-url","onClick","onBlur","onKeydown"]))]))}},UZ={props:{size:{type:String,default:"md"},variant:{type:String,default:"green"}},computed:{computedSizeClass(){return`spin--${this.size}`},computedColorClass(){return`spin--${this.variant}`},computedSpinnerClass(){return`${this.computedSizeClass} ${this.computedColorClass}`}}},jZ={class:"overlay"};function qZ(e,t,n,r,a,s){return i.openBlock(),i.createElementBlock("div",jZ,[i.createElementVNode("div",{class:i.normalizeClass(s.computedSpinnerClass)},null,2)])}const GZ=te(UZ,[["render",qZ],["__scopeId","data-v-2022bd33"]]),KZ={},ZZ={class:"page-container__container"};function XZ(e,t,n,r,a,s){return i.openBlock(),i.createElementBlock("div",ZZ,[i.renderSlot(e.$slots,"default",{},void 0,!0)])}const _v=te(KZ,[["render",XZ],["__scopeId","data-v-2f5908a0"]]),T0={directives:{cdstip:hl},components:{CdsIcon:ke,CdsAvatar:pl,CdsRichTooltip:zf,CdsPopover:fl},props:{variant:{type:String,default:"green"},items:{type:Array,default:()=>[],required:!0,validator:e=>!e.filter(n=>{const r=on(n.path)&&on(n.route),a=on(n.items)||n.items.filter(s=>on(s.path)&&on(s.route)).length;return on(n.label)||a&&r}).length},activeItem:{type:Object,default:()=>({}),required:!0},showLogout:{type:Boolean,default:!0},showProfileMenu:{type:Boolean,default:!1},profileMenuItems:{type:Array,default:()=>[]},userName:{type:String,default:""},userRole:{type:String,default:""},userPicture:{type:String,default:null},collapsible:{type:Boolean,default:!1},collapsibleState:{type:Boolean,default:!1},logoImage:{type:String,default:null},light:{type:Boolean,default:!1},searchButton:{type:Boolean,default:!1}},data(){return{internalActiveItem:{},collapsed:!1,showUncollapsedItems:!0,colorOptions:Ri,expandItemControl:0,itemsWithVisibilityController:[],logoutTooltipText:"Sair",showPopover:!1,showSearchButtonShortCut:!0}},computed:{mainClass(){return this.light?this.collapsed?"side-bar--light--collapsed":"side-bar--light":this.collapsed?"side-bar--dark--collapsed":"side-bar--dark"},collapsedTooltipClass(){return this.collapsed?"Maximizar":"Minimizar"},shouldShowProfileMenu(){var e;return this.showProfileMenu&&((e=this.profileMenuItems)==null?void 0:e.length)>0},avatarCursorResolver(){return this.shouldShowProfileMenu?"pointer":"default"},computedSearchButtonJustify(){return this.collapsed?"center":"space-between"}},watch:{items:{handler(e){const t=e.filter(n=>n.name===this.activeItem.name);[this.internalActiveItem]=t.length?t:e},immediate:!0},collapsibleState:{handler(e){this.collapsed=e},immediate:!0},activeItem:{handler(e){this.internalActiveItem=e},immediate:!0},collapsed(e){if(e){this.showUncollapsedItems=!1,this.showSearchButtonShortCut=!1;return}setTimeout(()=>{this.showUncollapsedItems=!0},500),setTimeout(()=>{this.showSearchButtonShortCut=!0},250)}},created(){this.internalActiveItem=this.activeItem,this.collapsed=this.collapsibleState,this.items.forEach((e,t)=>{this.itemsWithVisibilityController.push({name:e.label,index:t,show:!1})})},methods:{colorHexCode:to,handleClick(e,t){if(!ao(this.internalActiveItem,t)){this.internalActiveItem=t,this.showUncollapsedItems=!0,this.expandItemControl+=1;return}if(t.items&&t.items.length>0){this.showUncollapsedItems=!this.showUncollapsedItems,this.expandItemControl+=1;return}t.icon&&(this.showUncollapsedItems=!1,this.expandItemControl+=1),this.$emit("sidebar-click",this.internalActiveItem)},isActive(e){let t=!1,n=!1;return e.items&&e.items.length>0&&(t=e.items.some(r=>ao(r,this.internalActiveItem))),n=ao(this.internalActiveItem,e),t||n},resolveRoute({route:e,path:t}){const n=on(e)?t:e;return n instanceof String?{path:n}:n},routerPushTo(e){return this.resolveRoute(e)?this.resolveRoute(e).path:null},handleCollapse(){this.$emit("collapse-click",!this.collapsed),this.collapsed=!this.collapsed},resolveItemCollapse(e){return!!e.items&&e.items.length>0&&this.isActive(e)&&this.showUncollapsedItems},resolveCollapsibleItemIcon(e){return this.resolveItemCollapse(e)?"caret-up-outline":"caret-down-outline"},handleProfileMenuOptionClick(e){this.$emit("profile-menu-option-click",e),this.showPopover=!1},handleLogoClick(){this.$emit("logo-click")}}},wv=()=>{i.useCssVars(e=>({"3043686a":e.avatarCursorResolver,"5b550093":e.computedSearchButtonJustify}))},kv=T0.setup;T0.setup=kv?(e,t)=>(wv(),kv(e,t)):wv;const JZ={class:"side-bar__header"},QZ=["src"],eX={class:"search-button__text-container"},tX={key:0},nX=["onMouseleave"],iX=["onClick"],rX=["id","onMouseover"],aX={class:"side-bar__subitem-container"},sX={class:"side-bar__subitems"},oX=["href","target","onClick"],lX={key:0,class:"side-bar__subitem-link"},cX={key:1},dX={class:"side-bar__subitems--collapsed"},uX={class:"side-bar__tooltip-title"},hX=["href","onClick"],fX={key:0,class:"side-bar__subitem-link"},pX={key:0},mX={key:0},gX={class:"dropdown-button__dropdown"},yX=["onClick"],bX={class:"dropdown__text"};function vX(e,t,n,r,a,s){const o=i.resolveComponent("cds-icon"),l=i.resolveComponent("router-link"),d=i.resolveComponent("cds-rich-tooltip"),h=i.resolveComponent("cds-avatar"),f=i.resolveComponent("cds-popover"),m=i.resolveDirective("cdstip");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(s.mainClass)},[i.createElementVNode("div",{class:i.normalizeClass(`variant-resolver--${n.variant}`)},[i.createElementVNode("div",JZ,[i.createElementVNode("div",{class:"side-bar__logo",onClick:t[0]||(t[0]=(...g)=>s.handleLogoClick&&s.handleLogoClick(...g))},[a.collapsed?i.createCommentVNode("",!0):i.renderSlot(e.$slots,"logo",{key:0},()=>[i.createElementVNode("img",{src:n.logoImage},null,8,QZ)])]),n.collapsible?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,class:"side-bar__collapsible",onClick:t[1]||(t[1]=(...g)=>s.handleCollapse&&s.handleCollapse(...g))},[a.collapsed?(i.openBlock(),i.createBlock(o,{key:1,name:"sidebar-expand-outline"})):(i.openBlock(),i.createBlock(o,{key:0,name:"sidebar-collapse-outline"}))])),[[m,s.collapsedTooltipClass]]):i.createCommentVNode("",!0)]),n.searchButton?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["side-bar__search-button",{"side-bar__search-button--light":n.light}]),onClick:t[2]||(t[2]=g=>e.$emit("search-button-click"))},[i.createElementVNode("div",eX,[i.createVNode(o,{height:"20",width:"20",name:"search-outline"}),a.showSearchButtonShortCut?(i.openBlock(),i.createElementBlock("span",tX,"Busca")):i.createCommentVNode("",!0)]),a.showSearchButtonShortCut?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["side-bar__search-shortcut",{"side-bar__search-shortcut--light":n.light}])}," Ctrl + K ",2)):i.createCommentVNode("",!0)],2)):i.createCommentVNode("",!0),i.createElementVNode("ul",{class:i.normalizeClass({"side-bar__container":n.items.length>=1})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.items,(g,y)=>(i.openBlock(),i.createElementBlock("li",{key:`${y}-${g.name}-item`,role:"presentation",onMouseleave:_=>a.itemsWithVisibilityController[y].show=!1},[i.createElementVNode("div",{class:i.normalizeClass(["side-bar__item-container",s.isActive(g)?"side-bar__item-container--active":"side-bar__item-container--inactive"]),onClick:_=>s.handleClick(_,g)},[g.items||g.type==="link"?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,id:g.label,class:i.normalizeClass(["side-bar__item",s.isActive(g)?"side-bar__item--active":"side-bar__item--inactive"]),onMouseover:_=>a.itemsWithVisibilityController[y].show=!0},[i.createElementVNode("div",null,[i.createVNode(o,{name:g.icon,width:"20",height:"20"},null,8,["name"]),i.createElementVNode("span",null,i.toDisplayString(g.label),1)]),g.items&&g.items.length>0?(i.openBlock(),i.createBlock(o,{key:a.expandItemControl,name:s.resolveCollapsibleItemIcon(g),class:i.normalizeClass({item__caret:s.isActive(g)}),width:"16",height:"16"},null,8,["name","class"])):i.createCommentVNode("",!0)],42,rX)),[[m,a.collapsed&&g.type==="link"?g.label:null]]):i.withDirectives((i.openBlock(),i.createBlock(l,{key:1,to:s.routerPushTo(g),class:i.normalizeClass(["side-bar__item",s.isActive(g)?"side-bar__item--active":"side-bar__item--inactive"]),onClick:_=>s.handleClick(_,g)},{default:i.withCtx(()=>[i.createElementVNode("div",null,[i.createVNode(o,{name:g.icon,width:"20",height:"20"},null,8,["name"]),i.createElementVNode("span",null,i.toDisplayString(g.label),1)])]),_:2},1032,["to","class","onClick"])),[[m,a.collapsed?g.label:null]])],10,iX),a.collapsed?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.Transition,{key:0,name:"collapse"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",aX,[i.createElementVNode("div",sX,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(g.items,(_,w)=>(i.openBlock(),i.createElementBlock("a",{key:`${w}-${_.name}-item`,class:i.normalizeClass(["side-bar__subitem",s.isActive(_)&&(_==null?void 0:_.type)!=="external"?"side-bar__subitem--active":"side-bar__subitem--inactive"]),href:(_==null?void 0:_.type)==="external"?_.route.path:"javascript:void(0)",target:(_==null?void 0:_.type)==="external"?"_blank":"_self",rel:"noopener noreferrer",onClick:k=>s.handleClick(k,_)},[(_==null?void 0:_.type)==="external"?(i.openBlock(),i.createElementBlock("div",lX,[i.createTextVNode(i.toDisplayString(_.label)+" ",1),i.createVNode(o,{height:"16",width:"16",name:"open-in-new-tab-outline"})])):(i.openBlock(),i.createBlock(l,{key:1,class:"side-bar__subitem-link",to:s.routerPushTo(_)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(_.label),1)]),_:2},1032,["to"]))],10,oX))),128))])],512),[[i.vShow,s.resolveItemCollapse(g)]])]),_:2},1024)),g.items&&a.collapsed?(i.openBlock(),i.createElementBlock("div",cX,[i.createVNode(d,{modelValue:a.itemsWithVisibilityController[y].show,"onUpdate:modelValue":_=>a.itemsWithVisibilityController[y].show=_,"target-id":g.label,"default-placement":"bottom-start",width:"160"},{default:i.withCtx(()=>[i.createElementVNode("div",dX,[i.createElementVNode("p",uX,i.toDisplayString(g.label),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(g.items,(_,w)=>(i.openBlock(),i.createElementBlock("a",{key:`${w}-${_.name}-item`,class:"side-bar__subitem",href:(_==null?void 0:_.type)==="external"?_.route.path:"javascript:void(0)",target:"_blank",rel:"noopener noreferrer",onClick:k=>s.handleClick(k,_)},[(_==null?void 0:_.type)==="external"?(i.openBlock(),i.createElementBlock("div",fX,[i.createTextVNode(i.toDisplayString(_.label)+" ",1),i.createVNode(o,{height:"16",width:"16",name:"open-in-new-tab-outline"})])):(i.openBlock(),i.createBlock(l,{key:1,class:"side-bar__subitem-link",to:s.routerPushTo(_)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(_.label),1)]),_:2},1032,["to"]))],8,hX))),128))])]),_:2},1032,["modelValue","onUpdate:modelValue","target-id"])])):i.createCommentVNode("",!0)],40,nX))),128))],2)],2),i.createElementVNode("div",{class:i.normalizeClass(`side-bar__footer variant-resolver--${n.variant}`)},[i.createElementVNode("div",{id:"menu-profile",class:"side-bar__avatar",onClick:t[3]||(t[3]=i.withModifiers(g=>a.showPopover=!a.showPopover,["stop"]))},[i.createVNode(h,{src:n.userPicture,name:n.userName,variant:"white",size:"lg"},null,8,["src","name"]),i.createVNode(i.Transition,{name:"fade"},{default:i.withCtx(()=>[a.collapsed?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",pX,[i.createElementVNode("p",null,i.toDisplayString(n.userName),1),i.createElementVNode("p",null,i.toDisplayString(n.userRole),1)]))]),_:1})]),i.createElementVNode("ul",null,[n.showLogout?i.withDirectives((i.openBlock(),i.createElementBlock("li",{key:0,class:"side-bar__logout-button",onClick:t[4]||(t[4]=g=>e.$emit("logout",!0))},[i.createVNode(o,{name:"logout-outline",width:"20",height:"20"})])),[[m,a.logoutTooltipText]]):i.createCommentVNode("",!0)]),s.shouldShowProfileMenu?(i.openBlock(),i.createElementBlock("div",mX,[i.createVNode(f,{modelValue:a.showPopover,"onUpdate:modelValue":t[5]||(t[5]=g=>a.showPopover=g),"right-aligned":"","target-id":"menu-profile",width:"160",height:"160"},{default:i.withCtx(()=>[i.createElementVNode("div",gX,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.profileMenuItems,(g,y)=>(i.openBlock(),i.createElementBlock("div",{key:y},[i.createElementVNode("div",{class:"dropdown__container",onClick:_=>s.handleProfileMenuOptionClick(g)},[i.createVNode(o,{class:"dropdown__icon",height:"22",width:"22",name:g.icon},null,8,["name"]),i.createElementVNode("span",bX,i.toDisplayString(g.name),1)],8,yX)]))),128))])]),_:1},8,["modelValue"])])):i.createCommentVNode("",!0)],2)],2)}const Cv=te(T0,[["render",vX]]),_X={class:"secondary-navigation__container"},wX={class:"secondary-navigation__content"},kX={key:1},CX=["onClick","onMouseover"],xX={class:"secondary-navigation__content"},SX={key:1},xv=te({__name:"SecondaryNavigation",props:{light:{type:Boolean,default:!1},activeItem:{type:Object,default:()=>{}},items:{type:Array,default:()=>[]}},emits:["item-click"],setup(e,{emit:t}){const n=e,r=t,a=i.ref(n.activeItem.key),s=i.ref(null),o=i.ref(0),l=i.computed(()=>n.light?"light":"dark");i.watch(n.activeItem,w=>{a.value=w.key});const d=w=>{o.value=w},h=w=>{if(!w.route)return null;const{path:k,name:C}=w.route;return k instanceof String?{path:k}:{name:C}},f=w=>{g(w.key)||(s.value=null,a.value=w.key,r("item-click",w.key))},m=w=>a.value===w,g=w=>n.items.find(k=>{var C;return k.key===w&&((C=k==null?void 0:k.subitems)==null?void 0:C.length)>0}),y=(w,k)=>{s.value=w,a.value=k,r("item-click",w)},_=w=>s.value===w;return(w,k)=>{const C=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["secondary-navigation",`secondary-navigation--${l.value}`])},[i.createElementVNode("div",_X,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,M=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:M.key},[g(M.key)?(i.openBlock(),i.createElementBlock("div",kX,[i.createElementVNode("div",{class:i.normalizeClass(["secondary-navigation__item",m(M.key)?`secondary-navigation__item--active-${l.value}`:""]),onClick:E=>f(M),onMouseover:E=>d(M.key),onMouseleave:k[0]||(k[0]=E=>d(-1))},[i.createElementVNode("div",xX,[i.createTextVNode(i.toDisplayString(M.label)+" ",1),M.key!==o.value?(i.openBlock(),i.createBlock(ke,{key:0,class:"secondary-navigation__icon",name:"caret-down-outline",height:"16",width:"16"})):M.key===o.value?(i.openBlock(),i.createElementBlock("div",SX,[i.createVNode(ke,{class:"secondary-navigation__icon",height:"16",width:"16",name:"caret-up-outline"}),i.createElementVNode("div",{class:i.normalizeClass(["secondary-navigation__dropdown",`secondary-navigation__dropdown--${l.value}`])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(M.subitems,E=>(i.openBlock(),i.createBlock(C,{key:E.key,to:h(E),class:i.normalizeClass(["secondary-navigation__subitem",{"secondary-navigation__subitem--active":_(E.key)}]),onClick:x=>y(E.key,M.key)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(E.label),1)]),_:2},1032,["to","class","onClick"]))),128))],2)])):i.createCommentVNode("",!0)])],42,CX)])):(i.openBlock(),i.createBlock(C,{key:0,class:i.normalizeClass(["secondary-navigation__item",m(M.key)?`secondary-navigation__item--active-${l.value}`:""]),to:h(M),onClick:E=>f(M)},{default:i.withCtx(()=>[i.createElementVNode("div",wX,i.toDisplayString(M.label),1)]),_:2},1032,["class","to","onClick"]))],64))),128))]),k[1]||(k[1]=i.createElementVNode("div",{class:"secondary-navigation__overflow-left"},null,-1)),k[2]||(k[2]=i.createElementVNode("div",{class:"secondary-navigation__overflow-right"},null,-1))],2)}}},[["__scopeId","data-v-2c0e5f5c"]]),MX={class:"page-layout"},BX={class:"page-layout__content"},EX=te({__name:"PageLayout",props:{variant:{type:String,default:"green"},light:{type:Boolean,default:!1},user:{type:Object,default:()=>{}},collapsibleSideBar:{type:Boolean,default:!1},showProfileMenu:{type:Boolean,default:!1},sideBarItems:{type:Array,default:()=>[]},profileMenuItems:{type:Array,default:()=>[]},navigationItems:{type:Array,default:()=>[]},logos:{type:Object,default:()=>{}},sideBarActiveItem:{type:Object,default:()=>{}},navigationActiveItem:{type:Object,default:()=>{}}},emits:["sidebar-item-click","sidebar-logout","popover-item-click","navigation-item-click"],setup(e,{emit:t}){i.useCssVars(o=>({"36685eea":s.value}));const n=e,r=t,a=i.computed(()=>{var o;return((o=n.navigationItems)==null?void 0:o.length)>0}),s=i.computed(()=>a.value?"54px":"0px");return(o,l)=>{var d;return i.openBlock(),i.createElementBlock("div",MX,[i.createVNode(Cv,{variant:e.variant,"active-item":e.sideBarActiveItem,light:e.light,"user-name":e.user.name??"","user-role":e.user.role??"","user-picture":e.user.picture??null,collapsible:e.collapsibleSideBar,items:e.sideBarItems,"logo-image":e.logos.default,"collapsed-logo-image":e.logos.collapsed,"show-profile-menu":e.showProfileMenu,"profile-menu-items":e.profileMenuItems,onProfileMenuOptionClick:l[0]||(l[0]=h=>r("profile-menu-option-click",h)),onSidebarClick:l[1]||(l[1]=h=>r("sidebar-item-click",h)),onLogout:l[2]||(l[2]=h=>r("sidebar-logout",h)),onSettings:l[3]||(l[3]=h=>r("sidebar-settings",h))},null,8,["variant","active-item","light","user-name","user-role","user-picture","collapsible","items","logo-image","collapsed-logo-image","show-profile-menu","profile-menu-items"]),i.createElementVNode("div",BX,[((d=e.navigationItems)==null?void 0:d.length)>0?(i.openBlock(),i.createBlock(xv,{key:0,light:e.light,"active-item":e.navigationActiveItem,items:e.navigationItems,onItemClick:l[4]||(l[4]=h=>r("navigation-item-click",h))},null,8,["light","active-item","items"])):i.createCommentVNode("",!0),i.createVNode(_v,{class:"page-layout__container"},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default",{},void 0,!0)]),_:3})])])}}},[["__scopeId","data-v-428d73ca"]]),DX={components:{CdsLink:nc},props:{title:{type:String,required:!0},subtitle:{type:String,default:null},compact:{type:Boolean,default:!1}},data(){return{hasURL:!1,url:"",splitedSubtitle:[]}},computed:{fancyUrl(){return this.url.split(/http:\/\/|https:\/\//)[1]}},mounted(){this.computedSubtitle()},methods:{computedSubtitle(){var n;const e=/\b(?:http:\/\/|https:\/\/)?[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,}(?:\/\S*)?/g,t=(n=this.subtitle)==null?void 0:n.match(e);t&&t.length>0&&(this.splitedSubtitle=this.subtitle.split(t[0]),this.url=t[0])}}},OX={class:"page-header__title"},VX={key:0,class:"d-flex"},$X={class:"page-header__subtitle"},TX={key:1,class:"page-header__subtitle"},IX={class:"page-header__aside-slot"};function AX(e,t,n,r,a,s){const o=i.resolveComponent("cds-link");return i.openBlock(),i.createElementBlock("header",{class:i.normalizeClass(n.compact?"page-header__container--compact":"page-header__container")},[i.createElementVNode("div",null,[i.createElementVNode("p",OX,i.toDisplayString(n.title),1),a.splitedSubtitle.length>0?(i.openBlock(),i.createElementBlock("div",VX,[i.createElementVNode("span",$X,[i.createTextVNode(i.toDisplayString(a.splitedSubtitle[0])+" ",1),i.createVNode(o,{href:a.url,bold:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(s.fancyUrl),1)]),_:1},8,["href"]),i.createTextVNode(" "+i.toDisplayString(a.splitedSubtitle[1]),1)])])):(i.openBlock(),i.createElementBlock("div",TX,i.toDisplayString(n.subtitle),1))]),i.createElementVNode("div",IX,[i.renderSlot(e.$slots,"aside")])],2)}const NX=te(DX,[["render",AX]]);class qn{constructor(t,n,r,a=null){this.index=t,this.value=n,this.selected=r,this.text=a||n}}const LX={components:{CdsChevron:Ts},props:{modelValue:{type:[Number,String],default:1},total:{type:Number,default:1,validator:e=>e>=1},perPage:{type:Number,default:1,validator:e=>e>=1},fluid:{type:Boolean,default:!1},variant:{type:String,default:"green"}},data(){return{selectedPage:new qn(null,parseInt(this.modelValue,10),!0),pages:[]}},computed:{pageCount(){return this.total/this.perPage<1?1:Math.ceil(this.total/this.perPage)},computedContainerClass(){return this.fluid?"pagination__container--fluid":"pagination__container"}},watch:{modelValue(e,t){e===t||e===this.selectedPage.value||(this.selectedPage=new qn(null,parseInt(e,10),!0),this.resolvePages())}},beforeMount(){this.resolvePages()},methods:{resolveButtonClass(e){switch(e.index){case 0:return this.selectedPage.value===1?"pagination__button--first pagination__button--disabled":"pagination__button--first";case 1:return this.selectedPage.value===1?"pagination__button pagination__button--disabled":"pagination__button";case 7:return this.selectedPage.value===this.pageCount?"pagination__button pagination__button--disabled":"pagination__button";case 8:return this.selectedPage.value===this.pageCount?"pagination__button--last pagination__button--disabled":"pagination__button--last";default:return e.selected?Bf("pagination__button--active",this.variant):"pagination__button"}},resolvePages(){this.pages=[new qn(0,"first",!1,"<<"),new qn(1,"back",!1,"<"),...this.mountPagesArray(),new qn(7,"forward",!1,">"),new qn(8,"last",!1,">>")]},mountPagesArray(){const e=this.pageCount<5?this.pageCount+2:7,t=[];if(this.selectedPage.value<=3||this.pageCount<=5){this.selectedPage.index=this.selectedPage.value;for(let n=2;n<e;n++)t[n-2]=new qn(n,n-1,this.selectedPage.value===n-1);return t}if(this.selectedPage.value<=this.pageCount-2){for(let n=2;n<e;n++){const r=this.selectedPage.value-4+n;t[n-2]=new qn(n+1,r,this.selectedPage.value===r)}return t}for(let n=2;n<e;n++){const r=this.pageCount-6+n;t[n-2]=new qn(n,r,this.selectedPage.value===r)}return t},handlePageClick(e){switch(e.value){case this.selectedPage.value:return;case"first":if(this.selectedPage.index===1)return;this.selectedPage=new qn(null,1,!0),this.$emit("update:modelValue",1),this.resolvePages();return;case"last":if(this.selectedPage.index===this.pageCount)return;this.selectedPage=new qn(null,this.pageCount,!0),this.$emit("update:modelValue",this.pageCount),this.resolvePages();return;case"back":if(this.selectedPage.index===1)return;this.$emit("update:modelValue",this.selectedPage.value-1),this.selectedPage=new qn(null,this.selectedPage.value-1,!0),this.resolvePages();return;case"forward":if(this.selectedPage.value===this.pageCount)return;this.$emit("update:modelValue",this.selectedPage.value+1),this.selectedPage=new qn(null,this.selectedPage.value+1,!0),this.resolvePages();return;default:this.selectedPage=new qn(null,e.value,!0),this.$emit("update:modelValue",e.value),this.resolvePages();break}}}},zX=["onClick"],PX={key:3};function FX(e,t,n,r,a,s){const o=i.resolveComponent("cds-chevron");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(s.computedContainerClass)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.pages,(l,d)=>(i.openBlock(),i.createElementBlock("div",{key:d,class:i.normalizeClass(s.resolveButtonClass(l)),onClick:h=>s.handlePageClick(l)},[d===0?(i.openBlock(),i.createBlock(o,{key:0,direction:"left",class:"pagination__double-chevron--left"})):i.createCommentVNode("",!0),d===0?(i.openBlock(),i.createBlock(o,{key:1,direction:"left",class:"pagination__double-chevron--left"})):i.createCommentVNode("",!0),d===1?(i.openBlock(),i.createBlock(o,{key:2,direction:"left"})):i.createCommentVNode("",!0),d>=2&&d<=a.pages.length-3?(i.openBlock(),i.createElementBlock("span",PX,i.toDisplayString(l.text),1)):i.createCommentVNode("",!0),d===a.pages.length-2?(i.openBlock(),i.createBlock(o,{key:4,direction:"right"})):i.createCommentVNode("",!0),d===a.pages.length-1?(i.openBlock(),i.createBlock(o,{key:5,direction:"right",class:"pagination__double-chevron--right"})):i.createCommentVNode("",!0),d===a.pages.length-1?(i.openBlock(),i.createBlock(o,{key:6,direction:"right",class:"pagination__double-chevron--right"})):i.createCommentVNode("",!0)],10,zX))),128))],2)}const RX=te(LX,[["render",FX],["__scopeId","data-v-c81c79f6"]]),HX={components:{CdsBox:Ql,CdsDivider:$s},props:{title:{type:String,default:"Título",required:!0},subtitle:{type:String,default:"Subtítulo",required:!0},noContentPadding:{type:Boolean,default:!1}},computed:{contentClass(){return this.noContentPadding?"panel-card__content--no-pading":"panel-card__content"}}},WX={class:"panel-card__header"},YX={class:"panel-card__title"},UX={class:"panel-card__subtitle"};function jX(e,t,n,r,a,s){const o=i.resolveComponent("cds-divider"),l=i.resolveComponent("cds-box");return i.openBlock(),i.createBlock(l,{class:"panel-card",padding:"0",fluid:""},{default:i.withCtx(()=>[i.createElementVNode("div",WX,[i.createElementVNode("div",null,[i.createElementVNode("span",YX,i.toDisplayString(n.title),1),t[0]||(t[0]=i.createElementVNode("br",null,null,-1)),i.createElementVNode("span",UX,i.toDisplayString(n.subtitle),1)]),i.createElementVNode("div",null,[i.renderSlot(e.$slots,"panel-actions",{},void 0,!0)])]),i.createVNode(o,{dimmed:""}),i.createElementVNode("div",{class:i.normalizeClass(s.contentClass)},[i.renderSlot(e.$slots,"default",{},void 0,!0)],2)]),_:3})}const qX=te(HX,[["render",jX],["__scopeId","data-v-e1c5a182"]]),GX={props:{modelValue:{type:String,default:""},length:{type:Number,default:4},state:{type:String,default:"default"},visible:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1}},data(){return{innerValue:this.modelValue.split("")}},computed:{computedClass(){let e="";switch(this.state){case"valid":e="pin-input--valid";break;case"invalid":e="pin-input--invalid";break;default:e="pin-input"}return this.mobile?`${e} pin-input--mobile`:e}},watch:{modelValue(e){this.innerValue=e.split("")}},methods:{handleInput(e,t){let n=this.innerValue.join("");t<this.length&&e.inputType!=="deleteContentBackward"&&this.$refs[`pin-input${t+1}`][0].focus(),n.length===this.length&&this.$emit("update:modelValue",n)},handleBack(e){if(e>1){this.innerValue[e-1]="";let t=this.$refs[`pin-input${e-1}`][0];setTimeout(()=>{t.focus()},150)}},fixCursorPosition(e){let t=this.$refs[`pin-input${e}`][0];setTimeout(()=>{t.setSelectionRange(1,1)},3)},changeInputContent(e,t){this.innerValue.splice(t-1,1,e.key),t<this.length&&this.$refs[`pin-input${t+1}`][0].focus(),t===this.length&&this.$emit("update:modelValue",this.innerValue.join(""))}}},KX={class:"pin-input__container"},ZX=["id","onUpdate:modelValue","type","onKeydown","onKeypress","onInput","onFocus"];function XX(e,t,n,r,a,s){return i.openBlock(),i.createElementBlock("div",KX,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.length,(o,l)=>i.withDirectives((i.openBlock(),i.createElementBlock("input",{id:`pin-input${o}`,key:l,ref_for:!0,ref:`pin-input${o}`,"onUpdate:modelValue":d=>a.innerValue[o-1]=d,type:n.visible?"text":"password",maxlength:"1",class:i.normalizeClass(["pin-input",s.computedClass]),autocomplete:"off",onKeydown:i.withKeys(i.withModifiers(d=>s.handleBack(o),["stop"]),["delete"]),onKeypress:d=>s.changeInputContent(d,o),onInput:d=>s.handleInput(d,o),onFocus:d=>s.fixCursorPosition(o)},null,42,ZX)),[[i.vModelDynamic,a.innerValue[o-1]]])),128))])}const JX=te(GX,[["render",XX],["__scopeId","data-v-4e202c49"]]),I0={props:{variant:{type:String,default:"green"},value:{type:Number,default:0,required:!0},showText:{type:Boolean,default:!1,required:!1},textAside:{type:Boolean,default:!1}},computed:{formatedvalue(){return`${parseInt(this.value*100,10)}%`},progressIndicatorStyle(){return{"--width":this.formatedvalue,"--leftMargin":this.textAside?"3":"10","--bottomMargin":this.textAside?"10":"2"}},textDirection(){return this.textAside?"row-reverse":"column"}}},Sv=()=>{i.useCssVars(e=>({bf5feb56:e.textDirection}))},Mv=I0.setup;I0.setup=Mv?(e,t)=>(Sv(),Mv(e,t)):Sv;const QX={class:"progress-bar"},eJ={class:"progress-bar__content"};function tJ(e,t,n,r,a,s){return i.openBlock(),i.createElementBlock("div",QX,[n.showText?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(n.textAside?"bar__text--aside":"bar__text")},i.toDisplayString(s.formatedvalue),3)):i.createCommentVNode("",!0),i.createElementVNode("div",eJ,[i.createElementVNode("div",{class:i.normalizeClass(`progress-bar__indicator--${n.variant}`),style:i.normalizeStyle(s.progressIndicatorStyle)},null,6)])])}const nJ=te(I0,[["render",tJ],["__scopeId","data-v-d3a3d8d6"]]),iJ={props:{variant:{type:String,default:"green"},size:{type:String,default:"md",required:!1},value:{type:Number,default:0,required:!0},maxValue:{type:Number,default:100,required:!1},slim:{type:Boolean,default:!1},thick:{type:Boolean,default:!1},noLabel:{type:Boolean,default:!1}},computed:{label(){return this.maxValue>=100?`${Math.round(100*this.value/this.maxValue)}%`:`${this.value}/${this.maxValue}`},normalizedDashArray(){return`${100*this.value/this.maxValue}, 100`},stroke(){return this.slim?1.5:this.thick?4.5:3.5},labelClass(){return`progress-circular__label${this.maxValue>=100?"--reduced":""}`},circleIndicatorStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},methods:{colorHexCode:to}},rJ=["stroke-width"],aJ=["stroke-dasharray","stroke-width"];function sJ(e,t,n,r,a,s){return i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["progress-circular",`progress-circular--${n.size}`]),viewBox:"0 0 36 36"},[i.createElementVNode("path",{class:"progress-circular__ring-background","stroke-width":s.stroke,d:`M18 2.0845
69
+ }`;var qe=W6(function(){return ht(O,Se+"return "+se).apply(n,A)});if(qe.source=se,Lp(qe))throw qe;return qe}function moe(c){return mt(c).toLowerCase()}function goe(c){return mt(c).toUpperCase()}function yoe(c,u,p){if(c=mt(c),c&&(p||u===n))return Jv(c);if(!c||!(u=li(u)))return c;var b=Gi(c),S=Gi(u),O=Qv(b,S),A=e_(b,S)+1;return Oa(b,O,A).join("")}function boe(c,u,p){if(c=mt(c),c&&(p||u===n))return c.slice(0,n_(c)+1);if(!c||!(u=li(u)))return c;var b=Gi(c),S=e_(b,Gi(u))+1;return Oa(b,0,S).join("")}function voe(c,u,p){if(c=mt(c),c&&(p||u===n))return c.replace(Vr,"");if(!c||!(u=li(u)))return c;var b=Gi(c),S=Qv(b,Gi(u));return Oa(b,S).join("")}function _oe(c,u){var p=U,b=ee;if(Yt(u)){var S="separator"in u?u.separator:S;p="length"in u?je(u.length):p,b="omission"in u?li(u.omission):b}c=mt(c);var O=c.length;if(Ho(c)){var A=Gi(c);O=A.length}if(p>=O)return c;var L=p-Wo(b);if(L<1)return b;var H=A?Oa(A,0,L).join(""):c.slice(0,L);if(S===n)return H+b;if(A&&(L+=H.length-L),zp(S)){if(c.slice(L).search(S)){var ie,re=H;for(S.global||(S=ep(S.source,mt(dn.exec(S))+"g")),S.lastIndex=0;ie=S.exec(re);)var se=ie.index;H=H.slice(0,se===n?L:se)}}else if(c.indexOf(li(S),L)!=L){var _e=H.lastIndexOf(S);_e>-1&&(H=H.slice(0,_e))}return H+b}function woe(c){return c=mt(c),c&&ut.test(c)?c.replace(Me,Zte):c}var koe=Zo(function(c,u,p){return c+(p?" ":"")+u.toUpperCase()}),Rp=Y_("toUpperCase");function H6(c,u,p){return c=mt(c),u=p?n:u,u===n?Ute(c)?Qte(c):Nte(c):c.match(u)||[]}var W6=Ge(function(c,u){try{return mn(c,n,u)}catch(p){return Lp(p)?p:new Re(p)}}),Coe=Hr(function(c,u){return Bi(u,function(p){p=hr(p),Fr(c,p,Ap(c[p],c))}),c});function xoe(c){var u=c==null?0:c.length,p=Ve();return c=u?Rt(c,function(b){if(typeof b[1]!="function")throw new Ei(o);return[p(b[0]),b[1]]}):[],Ge(function(b){for(var S=-1;++S<u;){var O=c[S];if(mn(O[0],this,b))return mn(O[1],this,b)}})}function Soe(c){return Zne(Oi(c,m))}function Hp(c){return function(){return c}}function Moe(c,u){return c==null||c!==c?u:c}var Boe=j_(),Eoe=j_(!0);function Jn(c){return c}function Wp(c){return k_(typeof c=="function"?c:Oi(c,m))}function Doe(c){return x_(Oi(c,m))}function Ooe(c,u){return S_(c,Oi(u,m))}var Voe=Ge(function(c,u){return function(p){return Yc(p,c,u)}}),$oe=Ge(function(c,u){return function(p){return Yc(c,p,u)}});function Yp(c,u,p){var b=gn(u),S=oh(u,b);p==null&&!(Yt(u)&&(S.length||!b.length))&&(p=u,u=c,c=this,S=oh(u,gn(u)));var O=!(Yt(p)&&"chain"in p)||!!p.chain,A=Yr(c);return Bi(S,function(L){var H=u[L];c[L]=H,A&&(c.prototype[L]=function(){var ie=this.__chain__;if(O||ie){var re=c(this.__wrapped__),se=re.__actions__=Kn(this.__actions__);return se.push({func:H,args:arguments,thisArg:c}),re.__chain__=ie,re}return H.apply(c,xa([this.value()],arguments))})}),c}function Toe(){return Ke._===this&&(Ke._=ane),this}function Up(){}function Ioe(c){return c=je(c),Ge(function(u){return M_(u,c)})}var Aoe=kp(Rt),Noe=kp(qv),Loe=kp(q0);function Y6(c){return Dp(c)?G0(hr(c)):fie(c)}function zoe(c){return function(u){return c==null?n:vs(c,u)}}var Poe=G_(),Foe=G_(!0);function jp(){return[]}function qp(){return!1}function Roe(){return{}}function Hoe(){return""}function Woe(){return!0}function Yoe(c,u){if(c=je(c),c<1||c>me)return[];var p=fe,b=Tn(c,fe);u=Ve(u),c-=fe;for(var S=X0(b,u);++p<c;)u(p);return S}function Uoe(c){return He(c)?Rt(c,hr):ci(c)?[c]:Kn(d6(mt(c)))}function joe(c){var u=++ine;return mt(c)+u}var qoe=fh(function(c,u){return c+u},0),Goe=Cp("ceil"),Koe=fh(function(c,u){return c/u},1),Zoe=Cp("floor");function Xoe(c){return c&&c.length?sh(c,Jn,lp):n}function Joe(c,u){return c&&c.length?sh(c,Ve(u,2),lp):n}function Qoe(c){return Zv(c,Jn)}function ele(c,u){return Zv(c,Ve(u,2))}function tle(c){return c&&c.length?sh(c,Jn,hp):n}function nle(c,u){return c&&c.length?sh(c,Ve(u,2),hp):n}var ile=fh(function(c,u){return c*u},1),rle=Cp("round"),ale=fh(function(c,u){return c-u},0);function sle(c){return c&&c.length?Z0(c,Jn):0}function ole(c,u){return c&&c.length?Z0(c,Ve(u,2)):0}return B.after=Dae,B.ary=w6,B.assign=gse,B.assignIn=A6,B.assignInWith=Mh,B.assignWith=yse,B.at=bse,B.before=k6,B.bind=Ap,B.bindAll=Coe,B.bindKey=C6,B.castArray=Rae,B.chain=b6,B.chunk=Zie,B.compact=Xie,B.concat=Jie,B.cond=xoe,B.conforms=Soe,B.constant=Hp,B.countBy=sae,B.create=vse,B.curry=x6,B.curryRight=S6,B.debounce=M6,B.defaults=_se,B.defaultsDeep=wse,B.defer=Oae,B.delay=Vae,B.difference=Qie,B.differenceBy=ere,B.differenceWith=tre,B.drop=nre,B.dropRight=ire,B.dropRightWhile=rre,B.dropWhile=are,B.fill=sre,B.filter=lae,B.flatMap=uae,B.flatMapDeep=hae,B.flatMapDepth=fae,B.flatten=p6,B.flattenDeep=ore,B.flattenDepth=lre,B.flip=$ae,B.flow=Boe,B.flowRight=Eoe,B.fromPairs=cre,B.functions=Ese,B.functionsIn=Dse,B.groupBy=pae,B.initial=ure,B.intersection=hre,B.intersectionBy=fre,B.intersectionWith=pre,B.invert=Vse,B.invertBy=$se,B.invokeMap=gae,B.iteratee=Wp,B.keyBy=yae,B.keys=gn,B.keysIn=Xn,B.map=_h,B.mapKeys=Ise,B.mapValues=Ase,B.matches=Doe,B.matchesProperty=Ooe,B.memoize=kh,B.merge=Nse,B.mergeWith=N6,B.method=Voe,B.methodOf=$oe,B.mixin=Yp,B.negate=Ch,B.nthArg=Ioe,B.omit=Lse,B.omitBy=zse,B.once=Tae,B.orderBy=bae,B.over=Aoe,B.overArgs=Iae,B.overEvery=Noe,B.overSome=Loe,B.partial=Np,B.partialRight=B6,B.partition=vae,B.pick=Pse,B.pickBy=L6,B.property=Y6,B.propertyOf=zoe,B.pull=bre,B.pullAll=g6,B.pullAllBy=vre,B.pullAllWith=_re,B.pullAt=wre,B.range=Poe,B.rangeRight=Foe,B.rearg=Aae,B.reject=kae,B.remove=kre,B.rest=Nae,B.reverse=Tp,B.sampleSize=xae,B.set=Rse,B.setWith=Hse,B.shuffle=Sae,B.slice=Cre,B.sortBy=Eae,B.sortedUniq=Ore,B.sortedUniqBy=Vre,B.split=uoe,B.spread=Lae,B.tail=$re,B.take=Tre,B.takeRight=Ire,B.takeRightWhile=Are,B.takeWhile=Nre,B.tap=Xre,B.throttle=zae,B.thru=vh,B.toArray=$6,B.toPairs=z6,B.toPairsIn=P6,B.toPath=Uoe,B.toPlainObject=I6,B.transform=Wse,B.unary=Pae,B.union=Lre,B.unionBy=zre,B.unionWith=Pre,B.uniq=Fre,B.uniqBy=Rre,B.uniqWith=Hre,B.unset=Yse,B.unzip=Ip,B.unzipWith=y6,B.update=Use,B.updateWith=jse,B.values=Qo,B.valuesIn=qse,B.without=Wre,B.words=H6,B.wrap=Fae,B.xor=Yre,B.xorBy=Ure,B.xorWith=jre,B.zip=qre,B.zipObject=Gre,B.zipObjectDeep=Kre,B.zipWith=Zre,B.entries=z6,B.entriesIn=P6,B.extend=A6,B.extendWith=Mh,Yp(B,B),B.add=qoe,B.attempt=W6,B.camelCase=Xse,B.capitalize=F6,B.ceil=Goe,B.clamp=Gse,B.clone=Hae,B.cloneDeep=Yae,B.cloneDeepWith=Uae,B.cloneWith=Wae,B.conformsTo=jae,B.deburr=R6,B.defaultTo=Moe,B.divide=Koe,B.endsWith=Jse,B.eq=Zi,B.escape=Qse,B.escapeRegExp=eoe,B.every=oae,B.find=cae,B.findIndex=h6,B.findKey=kse,B.findLast=dae,B.findLastIndex=f6,B.findLastKey=Cse,B.floor=Zoe,B.forEach=v6,B.forEachRight=_6,B.forIn=xse,B.forInRight=Sse,B.forOwn=Mse,B.forOwnRight=Bse,B.get=Pp,B.gt=qae,B.gte=Gae,B.has=Ose,B.hasIn=Fp,B.head=m6,B.identity=Jn,B.includes=mae,B.indexOf=dre,B.inRange=Kse,B.invoke=Tse,B.isArguments=ks,B.isArray=He,B.isArrayBuffer=Kae,B.isArrayLike=Zn,B.isArrayLikeObject=Qt,B.isBoolean=Zae,B.isBuffer=Va,B.isDate=Xae,B.isElement=Jae,B.isEmpty=Qae,B.isEqual=ese,B.isEqualWith=tse,B.isError=Lp,B.isFinite=nse,B.isFunction=Yr,B.isInteger=E6,B.isLength=xh,B.isMap=D6,B.isMatch=ise,B.isMatchWith=rse,B.isNaN=ase,B.isNative=sse,B.isNil=lse,B.isNull=ose,B.isNumber=O6,B.isObject=Yt,B.isObjectLike=qt,B.isPlainObject=Zc,B.isRegExp=zp,B.isSafeInteger=cse,B.isSet=V6,B.isString=Sh,B.isSymbol=ci,B.isTypedArray=Jo,B.isUndefined=dse,B.isWeakMap=use,B.isWeakSet=hse,B.join=mre,B.kebabCase=toe,B.last=$i,B.lastIndexOf=gre,B.lowerCase=noe,B.lowerFirst=ioe,B.lt=fse,B.lte=pse,B.max=Xoe,B.maxBy=Joe,B.mean=Qoe,B.meanBy=ele,B.min=tle,B.minBy=nle,B.stubArray=jp,B.stubFalse=qp,B.stubObject=Roe,B.stubString=Hoe,B.stubTrue=Woe,B.multiply=ile,B.nth=yre,B.noConflict=Toe,B.noop=Up,B.now=wh,B.pad=roe,B.padEnd=aoe,B.padStart=soe,B.parseInt=ooe,B.random=Zse,B.reduce=_ae,B.reduceRight=wae,B.repeat=loe,B.replace=coe,B.result=Fse,B.round=rle,B.runInContext=F,B.sample=Cae,B.size=Mae,B.snakeCase=doe,B.some=Bae,B.sortedIndex=xre,B.sortedIndexBy=Sre,B.sortedIndexOf=Mre,B.sortedLastIndex=Bre,B.sortedLastIndexBy=Ere,B.sortedLastIndexOf=Dre,B.startCase=hoe,B.startsWith=foe,B.subtract=ale,B.sum=sle,B.sumBy=ole,B.template=poe,B.times=Yoe,B.toFinite=Ur,B.toInteger=je,B.toLength=T6,B.toLower=moe,B.toNumber=Ti,B.toSafeInteger=mse,B.toString=mt,B.toUpper=goe,B.trim=yoe,B.trimEnd=boe,B.trimStart=voe,B.truncate=_oe,B.unescape=woe,B.uniqueId=joe,B.upperCase=koe,B.upperFirst=Rp,B.each=v6,B.eachRight=_6,B.first=m6,Yp(B,function(){var c={};return dr(B,function(u,p){wt.call(B.prototype,p)||(c[p]=u)}),c}(),{chain:!1}),B.VERSION=r,Bi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){B[c].placeholder=B}),Bi(["drop","take"],function(c,u){nt.prototype[c]=function(p){p=p===n?1:hn(je(p),0);var b=this.__filtered__&&!u?new nt(this):this.clone();return b.__filtered__?b.__takeCount__=Tn(p,b.__takeCount__):b.__views__.push({size:Tn(p,fe),type:c+(b.__dir__<0?"Right":"")}),b},nt.prototype[c+"Right"]=function(p){return this.reverse()[c](p).reverse()}}),Bi(["filter","map","takeWhile"],function(c,u){var p=u+1,b=p==le||p==pe;nt.prototype[c]=function(S){var O=this.clone();return O.__iteratees__.push({iteratee:Ve(S,3),type:p}),O.__filtered__=O.__filtered__||b,O}}),Bi(["head","last"],function(c,u){var p="take"+(u?"Right":"");nt.prototype[c]=function(){return this[p](1).value()[0]}}),Bi(["initial","tail"],function(c,u){var p="drop"+(u?"":"Right");nt.prototype[c]=function(){return this.__filtered__?new nt(this):this[p](1)}}),nt.prototype.compact=function(){return this.filter(Jn)},nt.prototype.find=function(c){return this.filter(c).head()},nt.prototype.findLast=function(c){return this.reverse().find(c)},nt.prototype.invokeMap=Ge(function(c,u){return typeof c=="function"?new nt(this):this.map(function(p){return Yc(p,c,u)})}),nt.prototype.reject=function(c){return this.filter(Ch(Ve(c)))},nt.prototype.slice=function(c,u){c=je(c);var p=this;return p.__filtered__&&(c>0||u<0)?new nt(p):(c<0?p=p.takeRight(-c):c&&(p=p.drop(c)),u!==n&&(u=je(u),p=u<0?p.dropRight(-u):p.take(u-c)),p)},nt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},nt.prototype.toArray=function(){return this.take(fe)},dr(nt.prototype,function(c,u){var p=/^(?:filter|find|map|reject)|While$/.test(u),b=/^(?:head|last)$/.test(u),S=B[b?"take"+(u=="last"?"Right":""):u],O=b||/^find/.test(u);S&&(B.prototype[u]=function(){var A=this.__wrapped__,L=b?[1]:arguments,H=A instanceof nt,ie=L[0],re=H||He(A),se=function(Je){var st=S.apply(B,xa([Je],L));return b&&_e?st[0]:st};re&&p&&typeof ie=="function"&&ie.length!=1&&(H=re=!1);var _e=this.__chain__,Se=!!this.__actions__.length,$e=O&&!_e,qe=H&&!Se;if(!O&&re){A=qe?A:new nt(this);var Te=c.apply(A,L);return Te.__actions__.push({func:vh,args:[se],thisArg:n}),new Di(Te,_e)}return $e&&qe?c.apply(this,L):(Te=this.thru(se),$e?b?Te.value()[0]:Te.value():Te)})}),Bi(["pop","push","shift","sort","splice","unshift"],function(c){var u=Uu[c],p=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",b=/^(?:pop|shift)$/.test(c);B.prototype[c]=function(){var S=arguments;if(b&&!this.__chain__){var O=this.value();return u.apply(He(O)?O:[],S)}return this[p](function(A){return u.apply(He(A)?A:[],S)})}}),dr(nt.prototype,function(c,u){var p=B[u];if(p){var b=p.name+"";wt.call(qo,b)||(qo[b]=[]),qo[b].push({name:u,func:p})}}),qo[hh(n,C).name]=[{name:"wrapper",func:n}],nt.prototype.clone=wne,nt.prototype.reverse=kne,nt.prototype.value=Cne,B.prototype.at=Jre,B.prototype.chain=Qre,B.prototype.commit=eae,B.prototype.next=tae,B.prototype.plant=iae,B.prototype.reverse=rae,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=aae,B.prototype.first=B.prototype.head,Lc&&(B.prototype[Lc]=nae),B},Yo=ene();Ft?((Ft.exports=Yo)._=Yo,lt._=Yo):Ke._=Yo}).call(yn)}(hu,hu.exports);var Bn=hu.exports;const Nf={components:{CdsIcon:ke},props:{modelValue:{default:null,required:!0},allowedExtensions:{type:String,default:null},size:{type:String,default:"md"},state:{type:String,default:"default"},textMessage:{type:String,default:"Arraste o arquivo aqui ou pesquise no seu dispositivo"},errorMessage:{type:String,default:"Valor inválido"},disabled:{type:Boolean,default:!1}},data(){return{file:this.modelValue&&!Bn.isEmpty(this.modelValue)?this.modelValue:null,isOnDragEnterState:!1,isValid:!0,internalState:this.state,invalidExtensionError:null}},computed:{sizeClass(){return{inputTitle:`file-input__title--${this.size}`,holderPadding:"px-3",wrapperPadding:"px-1 py-1",contentPadding:"mt-3",svgScale:1}},acceptString(){if(this.allowedExtensions===null)return null;let e="";return this.allowedExtensions.split(",").forEach((n,r,a)=>{n&&n.trim().length>0&&(e+=`.${n.trim()}${r!==a.length-1?", ":""}`)}),e},computedAllowedMessage(){if(this.allowedExtensions){if(this.invalidExtensionError){const t=this.allowedExtensions.split(",").length===1?"":"s";return`${`São aceitos apenas arquivo${t} do${t} seguinte${t} tipo${t}:`} ${this.acceptString}.`}return this.errorMessage}else if(this.state==="invalid")return this.errorMessage;return null},textAlignmentResolver(){return this.size==="sm"?"flex-start":"center"},formatFilename(){if(this.file instanceof File&&this.file.name.length>16){const e=this.file.name.split(".");return e.length>2?`arquivo.${Bn.last(e)}`:`${e[0].substring(0,16)}....${e[1]}`}return this.file.name}},watch:{file(e){this.$emit("update:modelValue",e)},state:{handler(e){this.internalState=e},immediate:!0},isValid:{handler(e){e?this.internalState="valid":this.internalState="invalid"},immediate:!0}},methods:{dropHandler(e){if(this.isValid=null,this.isOnDragEnterState=!1,e.preventDefault(),!e.dataTransfer.items||e.dataTransfer.items[0].kind!=="file"||this.disabled)return;const t=e.dataTransfer.items[0].getAsFile();if(this.isAValidExtension(t.name)){this.file=t,this.isValid=!0;return}this.isValid=!1,this.file=null},linkClick(){this.disabled||this.$refs.fileInput.click()},isAValidExtension(e){if(this.allowedExtensions===null)return!0;const t=this.allowedExtensions.split(",");let n=e.split(".");n=n[n.length-1].trim();const r=t.filter(a=>a===n).length>0;return this.invalidExtensionError=!r,r},handleFormFileChange(e){this.isValid="invalid";const[t]=e.target.files||{};if(this.isAValidExtension(t.name)){this.file=t,this.isValid=!0;return}this.isValid=!1,this.$nextTick().then(()=>{this.file=null})},handleRemove(){this.disabled||(this.isValid="default",this.file=null)}}},_4=()=>{i.useCssVars(e=>({"3c7a40a8":e.textAlignmentResolver}))},w4=Nf.setup;Nf.setup=w4?(e,t)=>(_4(),w4(e,t)):_4;const ZV=["accept"],XV={key:0,class:"file-input__container"},JV={key:0},QV={key:1},e$={key:1,class:"file-input__container"},t$={key:1},n$={key:0,class:"file-input__alert-container"};function i$(e,t,n,r,a,s){const o=i.resolveComponent("cds-icon");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",null,[i.createElementVNode("div",{class:i.normalizeClass(["file-input text-center",{"file-input--drag-state":a.isOnDragEnterState,"file-input--sm":n.size==="sm","file-input--md":n.size==="md","file-input--lg":n.size==="lg","file-input--valid":n.state==="valid","file-input--invalid":n.state==="invalid"||!a.isValid,"file-input--disabled":n.disabled===!0,[s.sizeClass.holderPadding]:n.size}]),onDragover:t[2]||(t[2]=i.withModifiers(l=>a.isOnDragEnterState=!0,["prevent","stop"])),onDragenter:t[3]||(t[3]=i.withModifiers(l=>a.isOnDragEnterState=!0,["prevent","stop"])),onDragleave:t[4]||(t[4]=i.withModifiers(l=>a.isOnDragEnterState=!1,["prevent","stop"])),onDragend:t[5]||(t[5]=i.withModifiers(l=>a.isOnDragEnterState=!1,["prevent","stop"])),onDrop:t[6]||(t[6]=(...l)=>s.dropHandler&&s.dropHandler(...l)),onClick:t[7]||(t[7]=(...l)=>s.linkClick&&s.linkClick(...l))},[i.withDirectives(i.createElementVNode("input",{ref:"fileInput",type:"file",accept:s.acceptString,onChange:t[0]||(t[0]=(...l)=>s.handleFormFileChange&&s.handleFormFileChange(...l))},null,40,ZV),[[i.vShow,!1]]),a.file?(i.openBlock(),i.createElementBlock("div",e$,[i.createVNode(o,{height:"24",width:"24",name:"document-text-outline",class:i.normalizeClass({"icon-document--sm":n.size==="sm","icon-document--md":n.size==="md","icon-document--lg":n.size==="lg","icon-document--disabled":n.disabled===!0})},null,8,["class"]),i.createElementVNode("div",{class:i.normalizeClass({[s.sizeClass.inputTitle]:n.size,[s.sizeClass.contentPadding]:n.size})},[a.isOnDragEnterState?(i.openBlock(),i.createElementBlock("div",t$," Solte aqui o seu arquivo ")):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["on-drag-content__container",{"on-drag-content__container--disabled":n.disabled===!0}])},[i.createElementVNode("div",null,i.toDisplayString(s.formatFilename),1),i.createElementVNode("div",{class:"x-icon__container",onClick:t[1]||(t[1]=i.withModifiers((...l)=>s.handleRemove&&s.handleRemove(...l),["stop"]))},[i.createVNode(o,{height:"18",width:"18",name:"x-outline",class:i.normalizeClass(["file-input__close-button",{"file-input__close-button--sm":n.size==="sm","file-input__close-button--md":n.size==="md","file-input__close-button--lg":n.size==="lg","file-input__close-button--disabled":n.disabled===!0}])},null,8,["class"])])],2))],2)])):(i.openBlock(),i.createElementBlock("div",XV,[i.createVNode(o,{name:"upload-cloud-outline",class:i.normalizeClass({"icon-upload--sm":n.size==="sm","icon-upload--md":n.size==="md","icon-upload--lg":n.size==="lg","icon-upload--disabled":n.disabled===!0,[s.sizeClass.holderPadding]:n.size})},null,8,["class"]),i.createElementVNode("div",{class:i.normalizeClass({[s.sizeClass.inputTitle]:n.size,[s.sizeClass.contentPadding]:n.size})},[a.isOnDragEnterState?(i.openBlock(),i.createElementBlock("div",QV," Solte aqui o seu arquivo ")):(i.openBlock(),i.createElementBlock("div",JV,i.toDisplayString(n.textMessage),1))],2)]))],34)]),a.internalState==="invalid"?(i.openBlock(),i.createElementBlock("div",n$,i.toDisplayString(s.computedAllowedMessage),1)):i.createCommentVNode("",!0)],64)}const k4=te(Nf,[["render",i$],["__scopeId","data-v-33f6f0ff"]]),r$={class:"file-viewer__image"},a$={key:0,class:"file-viewer__extension"},s$={class:"file-viewer__info"},o$={class:"file-viewer__label"},l$={class:"file-viewer__file-name"},c$={key:0,class:"file-viewer__backdrop"},d$={class:"file-viewer__visualizer-header"},u$={class:"file-viewer__visualizer-label"},h$={class:"file-viewer__visualizer-actions"},f$={key:0},p$={key:1,class:"file-viewer__visualizer-empty-state"},m$=te({__name:"FileViewer",props:{label:{type:String,required:!0,default:"Comprovante de residência"},fileUrl:{type:String,required:!0,default:"https://images.pexels.com/photos/1254140/pexels-photo-1254140.jpeg"},variant:{type:String,default:"green",validator:e=>ou.find(t=>t.name===e)}},emits:["close","download-click"],setup(e,{emit:t}){const n=t,r=e,a=i.ref(!1),s=i.ref(!1),o=["jpg","jpeg","png","webp"],l=i.computed(()=>{if(r.fileUrl){const k=Bn.last(r.fileUrl.split("/")).match(/\.([A-Za-z]{3,4})/),C=Bn.get(k,"1",null);if(C)return C.toLowerCase()}return"file"}),d=i.computed(()=>r.label.length>50?r.label.substring(0,50):r.label),h=()=>{a.value=!0},f=()=>{a.value=!1},m=()=>{s.value=!s.value,y(s.value)},g=()=>{s.value=!1,y(s.value),n("close",!0)},y=w=>{document.body.style.overflow=w?"hidden":"auto"},_=i.computed(()=>window.matchMedia("(max-width: 450px)").matches);return(w,k)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{ref:"fileViewer",class:i.normalizeClass(["file-viewer",`file-viewer--${e.variant}`]),tabindex:"0",onMouseenter:h,onMouseleave:f,onClick:m,onKeyup:i.withKeys(g,["esc"])},[i.createElementVNode("div",r$,[a.value?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["file-viewer__icon",`file-viewer__icon--${e.variant}`])},[i.createVNode(ke,{height:"32",width:"32",name:"image-outline"})],2)):(i.openBlock(),i.createElementBlock("div",a$,i.toDisplayString(l.value),1))]),i.createElementVNode("div",s$,[i.createElementVNode("div",o$,i.toDisplayString(d.value),1),i.createElementVNode("div",l$,i.toDisplayString(e.fileUrl),1),i.createElementVNode("div",null,[i.createElementVNode("a",{class:i.normalizeClass(["file-viewer__download",`file-viewer__download--${e.variant}`]),onClick:k[0]||(k[0]=i.withModifiers(C=>n("download-click",!0),["stop"]))}," Baixar arquivo ",2)])])],34),s.value?(i.openBlock(),i.createElementBlock("div",c$,[i.createElementVNode("div",d$,[i.createElementVNode("div",u$,i.toDisplayString(d.value),1),i.createElementVNode("div",h$,[i.createElementVNode("div",{class:"file-viewer__visualizer-download",onClick:k[1]||(k[1]=C=>n("download-click",!0))},[i.createVNode(ke,{height:"24",width:"24",name:"download-cloud-outline"}),_.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",f$," Baixar arquivo "))]),i.createVNode(ke,{class:"file-viewer__visualizer-close",height:"24",width:"24",name:"x-outline",onClick:g})])]),i.createElementVNode("div",{class:"file-viewer__visualizer-image-container",onClick:g},[o.includes(l.value)?(i.openBlock(),i.createBlock(ec,{key:0,class:"file-viewer__visualizer-image",src:e.fileUrl,onClick:k[2]||(k[2]=i.withModifiers(()=>{},["stop"]))},null,8,["src"])):(i.openBlock(),i.createElementBlock("div",p$,[i.createVNode(ec,{src:"https://i.imgur.com/d842Bek.png",width:"100",height:"100"}),k[3]||(k[3]=i.createTextVNode(" Não foi possível gerar uma pré-visualização do arquivo. "))]))])])):i.createCommentVNode("",!0)],64))}},[["__scopeId","data-v-c35f914b"]]);function ic(e=""){const t="ÀÁÂÃÄÅàáâãäåÒÓÔÕÕÖØòóôõöøÈÉÊËèéêëðÇçÐÌÍÎÏìíîïÙÚÛÜùúûüÑñŠšŸÿýŽž",n="AAAAAAaaaaaaOOOOOOOooooooEEEEeeeeeCcDIIIIiiiiUUUUuuuuNnSsYyyZz",r=e.length;let a=e.split(""),s;for(let o=0;o<r;o+=1)s=t.indexOf(e[o]),s!==-1&&(a[o]=n[s]);return a=a.join(""),a=a.split(".").join(""),a=a.split("-").join(""),a=a.split("/").join(""),a}const g$={props:{label:{type:String,default:"Label",required:!0},placeholder:{type:String,default:"Selecione...",required:!1},options:{type:Array,default:()=>[],required:!0},modelValue:{type:[Array,Object],required:!0},searchable:{type:Boolean,default:!1,required:!1},width:{type:String,default:"default",required:!1},fluid:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},optionsField:{type:String,default:"value",required:!1},returnValue:{type:Boolean,default:!1,required:!1}},data(){return{currentPos:0,active:!1,id:null,allowSearch:!1,localOptions:[],pristineOptions:[],localValue:"",selectElement:"",direction:"down",uniqueKey:Gr()}},computed:{inputClass(){let e="";const t="filter-select__input";return this.active&&this.direction==="down"?e=`${t}--opened-down`:this.active&&this.direction==="up"?e=`${t}--opened-up`:e=`${t}--closed`,this.disabled&&(e+=` ${t}--disabled`),e+=` ${t}--${Gh.find(n=>n===this.width)}`,e+=this.fluid?` ${t}--fluid`:` ${t}--fit`,e+=this.searchable?` ${t}--searchable`:"",e},capitalizedLabel(){return this.label.charAt(0).toUpperCase()+this.label.slice(1)}},watch:{modelValue:{handler(e,t){e!==t&&(e instanceof Object?this.localValue=e:this.localValue={id:e,value:e})},immediate:!0},options:{handler(e,t){e!==t&&(this.localOptions=e,this.pristineOptions=e)},immediate:!0},searchable:{handler(e,t){e!==t&&(this.allowSearch=e)},immediate:!0},localValue:{handler(e){this.localOptions.filter(n=>JSON.stringify(n)===JSON.stringify(e)).length!==0&&(this.returnValue?this.$emit("update:modelValue",e[this.optionsField]):this.$emit("update:modelValue",e))},deep:!0}},mounted(){this.id=`cds-filter-select-${this.uniqueKey}`,this.selectElement=this.$refs["cds-filter-select"],document.querySelector("body").addEventListener("click",this.closeFilterSelect)},methods:{filterOptions(){const e=ic(this.localValue[this.optionsField]),t=new RegExp(e,"i");this.localOptions=this.options.filter(n=>ic(n[this.optionsField]).search(t)>=0)},activeSelection(){this.disabled||this.$nextTick().then(()=>{const e=this.localOptions[this.currentPos];this.$refs[`${e[this.optionsField]}-${this.currentPos}`][0].classList.add("highlight")})},activateSelectionOnEnter(){this.disabled||(this.active=!this.active,typeof this.localOptions[this.currentPos]>"u"?this.localOptions=this.pristineOptions:this.localValue=Vs(this.localOptions[this.currentPos]),this.$refs["filter-select-input"].blur())},activateSelectionOnClick(){let e=this.selectElement.getBoundingClientRect();e.top+e.height+286<window.innerHeight?this.direction="down":this.direction="up",!this.disabled&&(this.active=!this.active)},hide(){this.localOptions=this.pristineOptions,this.active=!1},selectItem(){this.localValue=Vs(this.localOptions[this.currentPos])},getLiInDOM(e){const t=this.localOptions[e];return this.$refs[`${t[this.optionsField]}-${e}`][0]},handleOptionVisibility(e,t,n){const r=e.getBoundingClientRect(),a=this.$refs["filter-select-options"],s=a.getBoundingClientRect();n==="up"&&r.top<=s.top&&(a.scrollTop+=t),n==="down"&&r.top>=s.bottom&&(a.scrollTop+=t)},highlightOnArrowDown(){if(this.currentPos===this.localOptions.length-1)return;this.currentPos+=1;const e=this.getLiInDOM(this.currentPos),t=this.getLiInDOM(this.currentPos-1);e.classList.add("highlight"),t.classList.remove("highlight"),this.handleOptionVisibility(e,37,"down")},highlightOnArrowUp(){if(this.currentPos===0)return;const e=this.getLiInDOM(this.currentPos),t=this.getLiInDOM(this.currentPos-1);e.classList.remove("highlight"),t.classList.add("highlight"),this.handleOptionVisibility(e,-37,"up"),this.currentPos-=1},highlightOnMouseOver(e){this.currentPos=e,this.getLiInDOM(this.currentPos).classList.add("highlight")},unhighlightOnMouseOut(){this.getLiInDOM(this.currentPos).classList.remove("highlight")},closeFilterSelect(e){this.$refs.filterSelectRef&&!this.$refs.filterSelectRef.contains(e.target)&&this.hide()}}},y$={ref:"cds-filter-select",class:"filter-select"},b$={class:"filter-select__label"},v$={for:"cds-filter-select"},_$=["id","onkeypress","placeholder","disabled","readonly"],w$={key:0,class:"option__container"},k$=["onMouseover"],C$={key:1,class:"option__container"};function x$(e,t,n,r,a,s){return i.openBlock(),i.createElementBlock("div",y$,[i.createElementVNode("div",{ref:"filterSelectRef",class:i.normalizeClass(["filter-select__container",s.inputClass]),onKeydown:[t[6]||(t[6]=i.withKeys(i.withModifiers((...o)=>s.activateSelectionOnEnter&&s.activateSelectionOnEnter(...o),["prevent"]),["enter"])),t[7]||(t[7]=i.withKeys(i.withModifiers((...o)=>s.highlightOnArrowDown&&s.highlightOnArrowDown(...o),["prevent"]),["arrow-down"])),t[8]||(t[8]=i.withKeys(i.withModifiers((...o)=>s.highlightOnArrowUp&&s.highlightOnArrowUp(...o),["prevent"]),["arrow-up"]))],onClick:t[9]||(t[9]=(...o)=>s.activateSelectionOnClick&&s.activateSelectionOnClick(...o))},[i.createElementVNode("label",b$,[i.createElementVNode("div",v$,[i.createElementVNode("span",null,i.toDisplayString(s.capitalizedLabel),1)])]),i.withDirectives(i.createElementVNode("input",{id:e.$attrs.id||a.id,ref:"filter-select-input","onUpdate:modelValue":t[0]||(t[0]=o=>a.localValue[n.optionsField]=o),type:"text",autocomplete:"off",onkeypress:`return ${a.allowSearch};`,class:i.normalizeClass(s.inputClass),placeholder:n.placeholder,disabled:n.disabled,readonly:!n.searchable,onInput:t[1]||(t[1]=(...o)=>s.filterOptions&&s.filterOptions(...o)),onFocus:t[2]||(t[2]=(...o)=>s.activeSelection&&s.activeSelection(...o)),onBlur:t[3]||(t[3]=(...o)=>s.hide&&s.hide(...o))},null,42,_$),[[i.vModelText,a.localValue[n.optionsField]]]),i.withDirectives(i.createElementVNode("div",{ref:"filter-select-options",class:i.normalizeClass(["filter-select__options",{"filter-select__options--thin":n.width==="thin","filter-select__options--default":n.width==="default","filter-select__options--wide":n.width==="wide","filter-select__options--fluid":n.fluid,"filter-select__options--down":a.direction==="down","filter-select__options--up":a.direction==="up"}])},[a.localOptions.length>0?(i.openBlock(),i.createElementBlock("ul",w$,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.localOptions,(o,l)=>(i.openBlock(),i.createElementBlock("li",{key:l,ref_for:!0,ref:`${o[n.optionsField]}-${l}`,class:"option__text",onMousedown:t[4]||(t[4]=(...d)=>s.selectItem&&s.selectItem(...d)),onMouseover:d=>s.highlightOnMouseOver(l),onMouseout:t[5]||(t[5]=d=>s.unhighlightOnMouseOut())},i.toDisplayString(o[n.optionsField]),41,k$))),128))])):(i.openBlock(),i.createElementBlock("ul",C$,t[10]||(t[10]=[i.createElementVNode("li",{class:"option__text--muted"}," Nenhuma opção encontrada ",-1)])))],2),[[i.vShow,a.active]]),i.createElementVNode("span",{class:i.normalizeClass(a.active?"filter-select__chevron--opened":"filter-select__chevron--closed")},null,2)],34)],512)}const S$=te(g$,[["render",x$],["__scopeId","data-v-a234b486"]]),M$={props:{variant:{type:String,default:"green"},targetId:{type:String,default:""},position:{type:String,default:"top-end"}}},B$={id:"cds-pulsar"};function E$(e,t,n,r,a,s){const o=i.resolveDirective("cds-floatify");return i.withDirectives((i.openBlock(),i.createElementBlock("div",B$,[i.createElementVNode("div",{class:i.normalizeClass(`pulsar__outer-circle--${n.variant}`)},[i.createElementVNode("div",{class:i.normalizeClass(`pulsar__inner-circle--${n.variant}`)},null,2)],2)])),[[o,n.targetId,n.position]])}const C4=te(M$,[["render",E$],["__scopeId","data-v-6f878a26"]]),D$={components:{CdsPulsar:C4,CdsIcon:ke},props:{modelValue:{type:Boolean,default:!0,required:!0},title:{type:String,default:"Nova funcionalidade!",validator:e=>e.length<=22},startOnScroll:{type:Boolean,default:!1,required:!1},url:{type:String,default:""},variant:{type:String,default:"green"},targetId:{type:String,default:""}},data(){return{isActive:this.modelValue,id:null,pulsarId:null,containerId:null,position:"right",isExpanded:!1,waitingConfirmation:!1,boxTop:0}},watch:{isActive(e){this.$emit("update:modelValue",e)},modelValue(e){this.isActive=e,this.handleEventAnimation()}},mounted(){this.handleEventAnimation(),document.querySelector("body").addEventListener("click",this.closeFloatingAssistant)},methods:{handleEventAnimation(){this.id=`floating-assistant$-${this._uid}`,this.pulsarId=`floating-assistant-pulsar$-${this._uid}`,this.containerId=`floating-assistant-container$-${this._uid}`,this.startOnScroll?window.addEventListener("scroll",this.startAnimation):this.startAnimation()},startAnimation(){this.startOnScroll?this.isScrolledIntoView()&&setTimeout(()=>{document.getElementById(this.id).classList.add("animation"),window.removeEventListener("scroll",this.startAnimation)},1e3):setTimeout(()=>{document.getElementById(this.id).classList.add("animation")},1e3)},isScrolledIntoView(){const{top:e,bottom:t}=document.getElementById(this.id).getBoundingClientRect();return e>=0&&t<=window.innerHeight},expand(){this.waitingConfirmation||(this.isExpanded=!0)},collapse(){this.isExpanded=!1},close(){this.collapse(),this.waitingConfirmation=!0},confirmationHandle(e){if(!e){this.isActive=!1;return}this.$emit("disable-tip",!0),this.isActive=!1},closeFloatingAssistant(e){this.$refs.floatingAssistantRef&&!this.$refs.floatingAssistantRef.contains(e.target)&&this.collapse()}}},O$=["id"],V$=["id"],$$={key:0},T$={key:1},I$={key:0,class:"floating-assistant__content"},A$={key:0,class:"floating-assistant__footer"},N$=["href"],L$={key:1,class:"floating-assistant__subtitle"},z$={key:2};function P$(e,t,n,r,a,s){const o=i.resolveComponent("cds-pulsar"),l=i.resolveComponent("cds-icon"),d=i.resolveDirective("cds-floatify");return i.openBlock(),i.createElementBlock("div",{id:a.id,class:i.normalizeClass(["floating-assistant",{"floating-assistant--hidden":!a.isActive}])},[i.createVNode(o,{id:a.pulsarId,"target-id":n.targetId,variant:n.variant},null,8,["id","target-id","variant"]),i.withDirectives((i.openBlock(),i.createElementBlock("div",{id:a.containerId,class:"floating-assistant__container"},[i.createElementVNode("div",{ref:"floatingAssistantRef",class:i.normalizeClass(["floating-assistant__dropdown",{"floating-assistant__dropdown--expanded":a.isExpanded,"floating-assistant__dropdown--confirmation":a.waitingConfirmation}]),onClick:t[3]||(t[3]=(...h)=>s.expand&&s.expand(...h))},[a.waitingConfirmation?(i.openBlock(),i.createElementBlock("div",$$,[t[4]||(t[4]=i.createTextVNode(" Ocultar dica para sempre? ")),i.createElementVNode("span",{class:i.normalizeClass(`floating-assistant__link--${n.variant}`),onClick:t[0]||(t[0]=h=>s.confirmationHandle(!0))}," Sim ",2),t[5]||(t[5]=i.createTextVNode(" / ")),i.createElementVNode("span",{class:i.normalizeClass(`floating-assistant__link--${n.variant}`),onClick:t[1]||(t[1]=h=>s.confirmationHandle(!1))}," Não ",2)])):(i.openBlock(),i.createElementBlock("div",T$,[i.createElementVNode("span",{class:i.normalizeClass(`floating-assistant__title--${n.variant}`)},i.toDisplayString(n.title),3),a.isExpanded?(i.openBlock(),i.createElementBlock("div",I$,[i.renderSlot(e.$slots,"default",{},void 0,!0),n.url?(i.openBlock(),i.createElementBlock("span",A$,[t[6]||(t[6]=i.createTextVNode(" Você pode saber mais ")),i.createElementVNode("a",{class:i.normalizeClass(`floating-assistant__link--${n.variant}`),href:n.url,target:"_blank"}," clicando aqui ",10,N$),t[7]||(t[7]=i.createTextVNode(". "))])):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("span",L$," Clique para mais informações "))])),a.isExpanded?(i.openBlock(),i.createElementBlock("div",z$,[i.createElementVNode("div",{onClick:t[2]||(t[2]=i.withModifiers((...h)=>s.close&&s.close(...h),["stop"]))},[i.createVNode(l,{class:"floating-assistant__close-button",name:"x-outline",height:"20",width:"20"})])])):i.createCommentVNode("",!0)],2)],8,V$)),[[d,a.pulsarId,a.position]])],10,O$)}const F$=te(D$,[["render",P$],["__scopeId","data-v-01d1f93e"]]),R$={class:"floating-action-button__container"},H$=["onClick"],W$={class:"floating-action-button__subitem-label"},Y$={class:"floating-action-button__subitem"},U$=te({__name:"FloatingActionButton",props:{variant:{type:String,default:"green"},icon:{type:String,default:"plus-outline"},actions:{type:Array,default:()=>[],validator:e=>e.length<=5},size:{type:String,default:"md"}},emits:["main-button-click","action-click"],setup(e,{emit:t}){i.useCssVars(y=>({"0a3aecd8":h.value,"005b6afb":l.value,"21ef27b0":f.value,"87db115e":d.value}));const n=e,r=t,a=i.ref(!1),s=i.ref(!1),o=i.ref(-1),l=i.computed(()=>{switch(n.size){case"sm":return"44px";case"md":return"56px";case"lg":return"68px";default:return"56px"}}),d=i.computed(()=>{switch(n.size){case"sm":return"4px";case"md":return"10px";case"lg":return"16px";default:return"10px"}}),h=i.computed(()=>{switch(n.size){case"sm":return"12px";case"md":return"16px";case"lg":return"20px";default:return"16px"}}),f=i.computed(()=>n.variant==="white"||n.variant==="gray"?"#3B4754":"#fff");i.watch(a,y=>{y||(s.value=!0,setTimeout(()=>{s.value=!1},500))});function m(){if(n.actions.length>0){o.value=a.value?-1:1,a.value=!a.value;return}r("main-button-click")}function g(y){a.value=!1,r("action-click",y)}return(y,_)=>(i.openBlock(),i.createElementBlock("div",R$,[a.value||s.value?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(e.actions,w=>(i.openBlock(),i.createElementBlock("div",{key:w,class:i.normalizeClass(["floating-action-button__subitem-container",{exiting:s.value}]),onClick:k=>g(w)},[i.createElementVNode("div",W$,i.toDisplayString(w==null?void 0:w.label),1),i.createElementVNode("div",Y$,[i.createVNode(ke,{name:w==null?void 0:w.icon,height:"32",width:"32"},null,8,["name"])])],10,H$))),128)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["floating-action-button__main-button",`floating-action-button__main-button--${e.variant}`]),onClick:m},[i.createVNode(i.Transition,{name:"icon-transition",mode:"out-in"},{default:i.withCtx(()=>[a.value?(i.openBlock(),i.createBlock(ke,{key:"close-icon",name:"x-outline",height:"20",width:"20",style:i.normalizeStyle({"--rotation-direction":o.value})},null,8,["style"])):(i.openBlock(),i.createBlock(ke,{key:"main-icon",name:e.icon,height:"20",width:"20",style:i.normalizeStyle({"--rotation-direction":o.value})},null,8,["name","style"]))]),_:1})],2)]))}},[["__scopeId","data-v-3f44d904"]]),Lf={props:{modelValue:{type:Boolean,default:!1},width:{type:[String,Number],default:250},fitContentWidth:{type:Boolean,default:!1},targetId:{type:String,default:""},defaultPlacement:{type:String,default:null}},data(){return{id:"",target:"",popover:"",popperInstance:null,uniqueKey:Gr()}},computed:{variationPlacement(){return this.rightAligned?"end":"start"},popoverWidth(){return this.fitContentWidth?"fit-content":`${this.width}px`}},watch:{modelValue(e){e?this.show():this.hide()},targetId(e){this.setPopper(e)}},mounted(){this.id=`cds-popover-${this.uniqueKey}`,this.setPopper(this.targetId),document.querySelector("body").addEventListener("click",this.closeRichTooltip)},methods:{setPopper(e){this.$nextTick(()=>{this.target=document.querySelector(`[id='${e}']`),this.popover=document.querySelector(`#${this.id}`),this.popperInstance=ll(this.target,this.popover,{placement:this.defaultPlacement===null?"bottom":this.defaultPlacement,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{fallbackPlacements:["top"]}}]})})},show(){this.popover.setAttribute("data-show",""),this.popover.classList.remove("popover-hide"),this.popover.classList.add("popover-show"),this.$emit("update:modelValue",!0),this.popperInstance.update()},hide(){this.popover.classList.remove("popover-show"),this.popover.classList.add("popover-hide"),setTimeout(()=>{this.popover.removeAttribute("data-show")},350),this.$nextTick(()=>{this.popperInstance.setOptions(e=>({...e,modifiers:[...e.modifiers,{name:"eventListeners",enabled:!1}]})),this.$emit("update:modelValue",!1)})},closeRichTooltip(e){this.$refs.richTooltipRef&&!this.$refs.richTooltipRef.contains(e.target)&&this.hide()}}},x4=()=>{i.useCssVars(e=>({39058308:e.popoverWidth}))},S4=Lf.setup;Lf.setup=S4?(e,t)=>(x4(),S4(e,t)):x4;const j$=["id"];function q$(e,t,n,r,a,s){return i.openBlock(),i.createElementBlock("div",{id:e.$attrs.id||a.id,ref:"richTooltipRef",class:"richTooltip"},[i.renderSlot(e.$slots,"default",{},void 0,!0)],8,j$)}const zf=te(Lf,[["render",q$],["__scopeId","data-v-bcda0e86"]]),Pf={components:{CdsRichTooltip:zf},props:{value:{type:Number,default:0,validator:e=>e>=0&&e<=100},variant:{type:String,default:"green"},size:{type:Number,default:300},subtitle:{type:String,default:""},target:{type:Number,default:0,validator:e=>e>=0&&e<=100},showTarget:{type:Boolean,default:!1}},data(){return{showPopover:!1,uniqueKey:Gr()}},computed:{progressStyle(){return{"--value":this.value,"--size":this.size}},chartProgressValue(){return 198*(1-this.value/100)},targetValue(){let e=this.target-1;return e>=98&&(e=98),198*(1-e/100)},formatedValue(){return`${this.value.toLocaleString("pt-br",{minimumFractionDigits:1})}%`}},methods:{hasSlot:Za}},M4=()=>{i.useCssVars(e=>({eaad879e:e.chartProgressValue,cfd9d6d6:e.targetValue}))},B4=Pf.setup;Pf.setup=B4?(e,t)=>(M4(),B4(e,t)):M4;const G$={class:"responsive-container"},K$=["id"],Z$={transform:"scale(1.20) translate(-9.5 -12)"},X$={x:"50%",y:"50%","dominant-baseline":"middle","text-anchor":"middle",class:"value"},J$={x:"50%",y:"62%","dominant-baseline":"middle","text-anchor":"middle",class:"subtitle"};function Q$(e,t,n,r,a,s){const o=i.resolveComponent("cds-rich-tooltip");return i.openBlock(),i.createElementBlock("span",null,[i.createElementVNode("div",G$,[i.createElementVNode("div",{class:"gauge-chart",style:i.normalizeStyle(s.progressStyle)},[(i.openBlock(),i.createElementBlock("svg",{id:a.uniqueKey,class:i.normalizeClass(`svg--${n.variant}`),viewBox:"0 0 110 100",onMouseover:t[0]||(t[0]=l=>a.showPopover=!0),onMouseleave:t[1]||(t[1]=l=>a.showPopover=!1)},[t[5]||(t[5]=i.createElementVNode("linearGradient",{id:"gradient",x1:"0",y1:"0",x2:"0",y2:"100%",gradientTransform:"rotate(-340)"},[i.createElementVNode("stop",{class:"stop",offset:"1%"}),i.createElementVNode("stop",{class:"stop-2",offset:"99%"})],-1)),i.createElementVNode("g",Z$,[t[3]||(t[3]=i.createElementVNode("path",{class:"indicator-bar",d:"M30,90 A40,40 0 1,1 80,90",fill:"none"},null,-1)),t[4]||(t[4]=i.createElementVNode("path",{fill:"none",class:"indicator-progress",d:"M30,90 A40,40 0 1,1 80,90"},null,-1)),n.showTarget?(i.openBlock(),i.createElementBlock("path",{key:0,fill:"none",class:i.normalizeClass(["indicator-target",`indicator-target--${n.variant}`]),d:"M30,90 A40,40 0 1,1 80,90"},null,2)):i.createCommentVNode("",!0)]),i.createElementVNode("text",X$,i.toDisplayString(s.formatedValue),1),i.createElementVNode("text",J$,i.toDisplayString(n.subtitle),1)],42,K$))],4),s.hasSlot(e.$slots,"popover")?(i.openBlock(),i.createBlock(o,{key:0,modelValue:a.showPopover,"onUpdate:modelValue":t[2]||(t[2]=l=>a.showPopover=l),"default-placement":"top","target-id":a.uniqueKey},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"popover",{},void 0,!0)]),_:3},8,["modelValue","target-id"])):i.createCommentVNode("",!0)])])}const eT=te(Pf,[["render",Q$],["__scopeId","data-v-0c7cac1e"]]),tT={class:"grid-item"},nT=te({__name:"GridItem",props:{colSpan:{type:[Number,String],default:"auto"},rowSpan:{type:[Number,String],default:"1"},colStart:{type:[Number,String],default:"auto"},rowStart:{type:[Number,String],default:"auto"},gap:{type:[Number,String],default:0},rowGap:{type:[Number,String],default:0},colGap:{type:[Number,String],default:0},subGrid:{type:Boolean,default:!1},justify:{type:String,default:"auto"},align:{type:String,default:"auto"},direction:{type:String,default:"row"}},setup(e){i.useCssVars(o=>({"74e6f3ab":e.align,"00119c0e":a.value,"057d4122":s.value,"0cc4bb96":n.value,"5597afb4":r.value,"7a019494":e.justify,"5912a125":e.direction}));const t=e,n=i.computed(()=>{if(!t.colSpan&&!t.colStart)return"auto";const o=t.colStart?t.colStart:1,l=t.colSpan?`span ${t.colSpan}`:1;return`${o} / ${l}`}),r=i.computed(()=>{if(!t.rowSpan&&!t.rowStart)return"auto";const o=t.rowStart?t.rowStart:1,l=t.rowSpan?`span ${t.rowSpan}`:1;return`${o} / ${l}`}),a=i.computed(()=>t.subGrid?"grid":"block"),s=i.computed(()=>{let o="";return t.gap&&t.gap!==0&&t.gap!=="0"?Number.isFinite(t.gap)?`${t.gap}px`:t.gap:(t.rowGap?Number.isFinite(t.rowGap)?o=`${t.rowGap}px`:o=t.rowGap:o="0px",t.colGap?Number.isFinite(t.colGap)?o+=` ${t.colGap}px`:o+=` ${t.colGap}`:o+=" 0px",o)});return(o,l)=>(i.openBlock(),i.createElementBlock("div",tT,[i.renderSlot(o.$slots,"default",{},void 0,!0)]))}},[["__scopeId","data-v-47eebbde"]]),Ff={props:{variant:{type:String,default:"info"},animated:{type:Boolean,default:!1},duration:{type:Number,default:1},delay:{type:Number,default:0},highlightedText:{type:[String,null],default:null},caseSensitive:{type:Boolean,default:!1}},data(){return{substrings:[]}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},slotString(){return this.hasSlots?this.$slots.default()[0].children:""},normalizedSlotString(){return this.normalize(this.slotString)},normalizedHighlightText(){return this.normalize(this.highlightedText)},isAValidSubstring(){return this.normalizedSlotString.includes(this.normalizedHighlightText)},paddingResolver(){return this.highlightedText?"4px 1px":"4px"},dynamicHighlightClass(){let e="";switch(this.animated&&(e="highlight__container--highlighted"),this.variant){case"info":return`${e} highlight__container--info`;case"success":return`${e} highlight__container--success`;case"danger":return`${e} highlight__container--danger`;default:return`${e} highlight__container--info`}},dynamicStyle(){return{"--duration":`${this.duration}s`,"--delay":`${this.delay}s`}}},watch:{highlightedText(){this.splitContent()}},mounted(){this.splitContent()},methods:{normalize(e){const t={a:"[aáàâã]",á:"[aáàâã]",à:"[aáàâã]",â:"[aáàâã]",ã:"[aáàâã]",e:"[eéê]",é:"[eéê]",ê:"[eéê]",i:"[ií]",í:"[ií]",o:"[oóôõ]",ó:"[oóôõ]",ô:"[oóôõ]",õ:"[oóôõ]",u:"[uúü]",ú:"[uúü]",ü:"[uúü]"},n={a:"[aáàâã]",á:"[aáàâã]",à:"[aáàâã]",â:"[aáàâã]",ã:"[aáàâã]",e:"[eéê]",é:"[eéê]",ê:"[eéê]",i:"[ií]",í:"[ií]",o:"[oóôõ]",ó:"[oóôõ]",ô:"[oóôõ]",õ:"[oóôõ]",u:"[uúü]",ú:"[uúü]",ü:"[uúü]",A:"[AÁÀÂÃ]",Á:"[AÁÀÂÃ]",À:"[AÁÀÂÃ]",Â:"[AÁÀÂÃ]",Ã:"[AÁÀÂÃ]",E:"[EÉÊ]",É:"[EÉÊ]",Ê:"[EÉÊ]",I:"[IÍ]",Í:"[IÍ]",O:"[OÓÔÕ]",Ó:"[OÓÔÕ]",Ô:"[OÓÔÕ]",Õ:"[OÓÔÕ]",U:"[UÚÜ]",Ú:"[UÚÜ]",Ü:"[UÚÜ]"};return this.caseSensitive?e==null?void 0:e.replace(/[aáàâãeéêiíoóôõuúüAÁÀÂÃEÉÊIÍOÓÔÕUÚÜ]/g,r=>n[r]||r):e==null?void 0:e.toLowerCase().replace(/[aáàâãeéêiíoóôõuúü]/g,r=>t[r]||r)},splitContent(){let e=this.caseSensitive?"g":"gi",t=new RegExp(`(${this.normalizedHighlightText})`,e),n=this.slotString.split(t);this.substrings=n.map((r,a)=>({string:r,highlighted:new RegExp(`^${this.normalizedHighlightText}$`,e).test(this.caseSensitive?r:r==null?void 0:r.toLowerCase()),id:a}))}}},E4=()=>{i.useCssVars(e=>({"6b796b56":e.paddingResolver}))},D4=Ff.setup;Ff.setup=D4?(e,t)=>(E4(),D4(e,t)):E4;function iT(e,t,n,r,a,s){return n.highlightedText&&s.isAValidSubstring?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(a.substrings,o=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:o.id},[o.highlighted?(i.openBlock(),i.createElementBlock("mark",{key:0,class:i.normalizeClass(["highlight__container",s.dynamicHighlightClass]),style:i.normalizeStyle(s.dynamicStyle)},i.toDisplayString(o.string),7)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(o.string),1)],64))],64))),128)):(i.openBlock(),i.createElementBlock("mark",{key:1,class:i.normalizeClass(["highlight__container",s.dynamicHighlightClass]),style:i.normalizeStyle(s.dynamicStyle)},[i.renderSlot(e.$slots,"default",{},void 0,!0)],6))}const O4=te(Ff,[["render",iT],["__scopeId","data-v-3c7c0a20"]]),V4=["sm","md","lg"],rT={components:{CdsIcon:ke,CdsTooltip:sd},props:{size:{type:String,default:"md",validator:e=>V4.includes(e)},icon:{type:String,default:"create-outline"},disabled:{type:Boolean,default:!1},tooltipText:{type:String,default:null},feedbackOnClick:{type:Boolean,default:!1},feedbackIcon:{type:String,default:"check-outline"},variant:{type:String,default:"white"}},data(){return{predefinedSizes:V4,innerTooltipText:this.tooltipText,internalIcon:this.icon,inputControlPanel:0}},computed:{predefinedSize(){return`cds-icon-button--${this.size}`},computedModifiers(){const e=this.disabled?"cds-icon-button--disabled":"",t=`cds-icon-button__container--${this.variant}`;return`${e} ${this.predefinedSize} ${t}`}},watch:{tooltipText(){this.innerTooltipText=this.tooltipText}},methods:{clickHandler(e){this.disabled||(this.feedbackOnClick&&(this.inputControlPanel+=1,this.internalIcon=this.feedbackIcon,setTimeout(()=>{this.internalIcon=this.icon,this.inputControlPanel+=1},1e3),this.inputControlPanel+=1),this.$emit("cds-click",e))}}},aT={id:"cds-icon-button"};function sT(e,t,n,r,a,s){const o=i.resolveComponent("cds-icon");return i.openBlock(),i.createElementBlock("span",aT,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.tooltipText?"cds-tooltip":"span"),{text:a.innerTooltipText},{default:i.withCtx(()=>[i.createElementVNode("button",{class:i.normalizeClass(["cds-icon-button__container",s.computedModifiers]),onClick:t[0]||(t[0]=(...l)=>s.clickHandler&&s.clickHandler(...l))},[(i.openBlock(),i.createBlock(o,{key:a.inputControlPanel,name:a.internalIcon,class:"cds-icon-button__icon"},null,8,["name"]))],2)]),_:1},8,["text"]))])}const fu=te(rT,[["render",sT],["__scopeId","data-v-9242e925"]]);var pu={exports:{}};pu.exports,function(e,t){var n=200,r="__lodash_hash_undefined__",a=1,s=2,o=9007199254740991,l="[object Arguments]",d="[object Array]",h="[object AsyncFunction]",f="[object Boolean]",m="[object Date]",g="[object Error]",y="[object Function]",_="[object GeneratorFunction]",w="[object Map]",k="[object Number]",C="[object Null]",M="[object Object]",E="[object Promise]",x="[object Proxy]",$="[object RegExp]",I="[object Set]",P="[object String]",T="[object Symbol]",W="[object Undefined]",U="[object WeakMap]",ee="[object ArrayBuffer]",Y="[object DataView]",ne="[object Float32Array]",le="[object Float64Array]",J="[object Int8Array]",pe="[object Int16Array]",Q="[object Int32Array]",me="[object Uint8Array]",ge="[object Uint8ClampedArray]",z="[object Uint16Array]",fe="[object Uint32Array]",he=/[\\^$.*+?()[\]{}|]/g,De=/^\[object .+?Constructor\]$/,Oe=/^(?:0|[1-9]\d*)$/,we={};we[ne]=we[le]=we[J]=we[pe]=we[Q]=we[me]=we[ge]=we[z]=we[fe]=!0,we[l]=we[d]=we[ee]=we[f]=we[Y]=we[m]=we[g]=we[y]=we[w]=we[k]=we[M]=we[$]=we[I]=we[P]=we[U]=!1;var Ne=typeof yn=="object"&&yn&&yn.Object===Object&&yn,it=typeof self=="object"&&self&&self.Object===Object&&self,Pe=Ne||it||Function("return this")(),de=t&&!t.nodeType&&t,xe=de&&!0&&e&&!e.nodeType&&e,Ie=xe&&xe.exports===de,Fe=Ie&&Ne.process,Ye=function(){try{return Fe&&Fe.binding&&Fe.binding("util")}catch{}}(),et=Ye&&Ye.isTypedArray;function Pt(v,D){for(var N=-1,Z=v==null?0:v.length,ze=0,Be=[];++N<Z;){var rt=v[N];D(rt,N,v)&&(Be[ze++]=rt)}return Be}function tt(v,D){for(var N=-1,Z=D.length,ze=v.length;++N<Z;)v[ze+N]=D[N];return v}function yt(v,D){for(var N=-1,Z=v==null?0:v.length;++N<Z;)if(D(v[N],N,v))return!0;return!1}function Zt(v,D){for(var N=-1,Z=Array(v);++N<v;)Z[N]=D(N);return Z}function Xt(v){return function(D){return v(D)}}function ft(v,D){return v.has(D)}function ot(v,D){return v==null?void 0:v[D]}function $t(v){var D=-1,N=Array(v.size);return v.forEach(function(Z,ze){N[++D]=[ze,Z]}),N}function Ct(v,D){return function(N){return v(D(N))}}function Bt(v){var D=-1,N=Array(v.size);return v.forEach(function(Z){N[++D]=Z}),N}var xt=Array.prototype,nn=Function.prototype,Et=Object.prototype,oe=Pe["__core-js_shared__"],Le=nn.toString,Ue=Et.hasOwnProperty,rn=function(){var v=/[^.]+$/.exec(oe&&oe.keys&&oe.keys.IE_PROTO||"");return v?"Symbol(src)_1."+v:""}(),pn=Et.toString,ae=RegExp("^"+Le.call(Ue).replace(he,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),R=Ie?Pe.Buffer:void 0,K=Pe.Symbol,be=Pe.Uint8Array,j=Et.propertyIsEnumerable,V=xt.splice,G=K?K.toStringTag:void 0,ue=Object.getOwnPropertySymbols,Me=R?R.isBuffer:void 0,Xe=Ct(Object.keys,Object),ut=$n(Pe,"DataView"),Dt=$n(Pe,"Map"),ln=$n(Pe,"Promise"),Jt=$n(Pe,"Set"),Gn=$n(Pe,"WeakMap"),bt=$n(Object,"create"),zn=vn(ut),On=vn(Dt),ai=vn(ln),Ui=vn(Jt),Vr=vn(Gn),So=K?K.prototype:void 0,ss=So?So.valueOf:void 0;function cn(v){var D=-1,N=v==null?0:v.length;for(this.clear();++D<N;){var Z=v[D];this.set(Z[0],Z[1])}}function gc(){this.__data__=bt?bt(null):{},this.size=0}function yc(v){var D=this.has(v)&&delete this.__data__[v];return this.size-=D?1:0,D}function bc(v){var D=this.__data__;if(bt){var N=D[v];return N===r?void 0:N}return Ue.call(D,v)?D[v]:void 0}function vc(v){var D=this.__data__;return bt?D[v]!==void 0:Ue.call(D,v)}function _c(v,D){var N=this.__data__;return this.size+=this.has(v)?0:1,N[v]=bt&&D===void 0?r:D,this}cn.prototype.clear=gc,cn.prototype.delete=yc,cn.prototype.get=bc,cn.prototype.has=vc,cn.prototype.set=_c;function dn(v){var D=-1,N=v==null?0:v.length;for(this.clear();++D<N;){var Z=v[D];this.set(Z[0],Z[1])}}function wc(){this.__data__=[],this.size=0}function kc(v){var D=this.__data__,N=Tr(D,v);if(N<0)return!1;var Z=D.length-1;return N==Z?D.pop():V.call(D,N,1),--this.size,!0}function Cc(v){var D=this.__data__,N=Tr(D,v);return N<0?void 0:D[N][1]}function xc(v){return Tr(this.__data__,v)>-1}function Sc(v,D){var N=this.__data__,Z=Tr(N,v);return Z<0?(++this.size,N.push([v,D])):N[Z][1]=D,this}dn.prototype.clear=wc,dn.prototype.delete=kc,dn.prototype.get=Cc,dn.prototype.has=xc,dn.prototype.set=Sc;function Vn(v){var D=-1,N=v==null?0:v.length;for(this.clear();++D<N;){var Z=v[D];this.set(Z[0],Z[1])}}function ya(){this.size=0,this.__data__={hash:new cn,map:new(Dt||dn),string:new cn}}function Mc(v){var D=Pn(this,v).delete(v);return this.size-=D?1:0,D}function ba(v){return Pn(this,v).get(v)}function Bc(v){return Pn(this,v).has(v)}function Ec(v,D){var N=Pn(this,v),Z=N.size;return N.set(v,D),this.size+=N.size==Z?0:1,this}Vn.prototype.clear=ya,Vn.prototype.delete=Mc,Vn.prototype.get=ba,Vn.prototype.has=Bc,Vn.prototype.set=Ec;function va(v){var D=-1,N=v==null?0:v.length;for(this.__data__=new Vn;++D<N;)this.add(v[D])}function os(v){return this.__data__.set(v,r),this}function $r(v){return this.__data__.has(v)}va.prototype.add=va.prototype.push=os,va.prototype.has=$r;function si(v){var D=this.__data__=new dn(v);this.size=D.size}function ls(){this.__data__=new dn,this.size=0}function Dc(v){var D=this.__data__,N=D.delete(v);return this.size=D.size,N}function Oc(v){return this.__data__.get(v)}function Vc(v){return this.__data__.has(v)}function Mo(v,D){var N=this.__data__;if(N instanceof dn){var Z=N.__data__;if(!Dt||Z.length<n-1)return Z.push([v,D]),this.size=++N.size,this;N=this.__data__=new Vn(Z)}return N.set(v,D),this.size=N.size,this}si.prototype.clear=ls,si.prototype.delete=Dc,si.prototype.get=Oc,si.prototype.has=Vc,si.prototype.set=Mo;function Bo(v,D){var N=_a(v),Z=!N&&ds(v),ze=!N&&!Z&&wa(v),Be=!N&&!Z&&!ze&&Fo(v),rt=N||Z||ze||Be,at=rt?Zt(v.length,String):[],Ke=at.length;for(var lt in v)Ue.call(v,lt)&&!(rt&&(lt=="length"||ze&&(lt=="offset"||lt=="parent")||Be&&(lt=="buffer"||lt=="byteLength"||lt=="byteOffset")||To(lt,Ke)))&&at.push(lt);return at}function Tr(v,D){for(var N=v.length;N--;)if(zo(v[N][0],D))return N;return-1}function Ir(v,D,N){var Z=D(v);return _a(v)?Z:tt(Z,N(v))}function Ar(v){return v==null?v===void 0?W:C:G&&G in Object(v)?Ci(v):Lo(v)}function cs(v){return Si(v)&&Ar(v)==l}function Nr(v,D,N,Z,ze){return v===D?!0:v==null||D==null||!Si(v)&&!Si(D)?v!==v&&D!==D:Eo(v,D,N,Z,Nr,ze)}function Eo(v,D,N,Z,ze,Be){var rt=_a(v),at=_a(D),Ke=rt?d:xi(v),lt=at?d:xi(D);Ke=Ke==l?M:Ke,lt=lt==l?M:lt;var Ft=Ke==M,_n=lt==M,Wt=Ke==lt;if(Wt&&wa(v)){if(!wa(D))return!1;rt=!0,Ft=!1}if(Wt&&!Ft)return Be||(Be=new si),rt||Fo(v)?Lr(v,D,N,Z,ze,Be):Tc(v,D,Ke,N,Z,ze,Be);if(!(N&a)){var _t=Ft&&Ue.call(v,"__wrapped__"),an=_n&&Ue.call(D,"__wrapped__");if(_t||an){var qi=_t?v.value():v,Mi=an?D.value():D;return Be||(Be=new si),ze(qi,Mi,N,Z,Be)}}return Wt?(Be||(Be=new si),Vo(v,D,N,Z,ze,Be)):!1}function $c(v){if(!Po(v)||Ao(v))return!1;var D=ka(v)?ae:De;return D.test(vn(v))}function Do(v){return Si(v)&&hs(v.length)&&!!we[Ar(v)]}function Oo(v){if(!No(v))return Xe(v);var D=[];for(var N in Object(v))Ue.call(v,N)&&N!="constructor"&&D.push(N);return D}function Lr(v,D,N,Z,ze,Be){var rt=N&a,at=v.length,Ke=D.length;if(at!=Ke&&!(rt&&Ke>at))return!1;var lt=Be.get(v);if(lt&&Be.get(D))return lt==D;var Ft=-1,_n=!0,Wt=N&s?new va:void 0;for(Be.set(v,D),Be.set(D,v);++Ft<at;){var _t=v[Ft],an=D[Ft];if(Z)var qi=rt?Z(an,_t,Ft,D,v,Be):Z(_t,an,Ft,v,D,Be);if(qi!==void 0){if(qi)continue;_n=!1;break}if(Wt){if(!yt(D,function(Mi,cr){if(!ft(Wt,cr)&&(_t===Mi||ze(_t,Mi,N,Z,Be)))return Wt.push(cr)})){_n=!1;break}}else if(!(_t===an||ze(_t,an,N,Z,Be))){_n=!1;break}}return Be.delete(v),Be.delete(D),_n}function Tc(v,D,N,Z,ze,Be,rt){switch(N){case Y:if(v.byteLength!=D.byteLength||v.byteOffset!=D.byteOffset)return!1;v=v.buffer,D=D.buffer;case ee:return!(v.byteLength!=D.byteLength||!Be(new be(v),new be(D)));case f:case m:case k:return zo(+v,+D);case g:return v.name==D.name&&v.message==D.message;case $:case P:return v==D+"";case w:var at=$t;case I:var Ke=Z&a;if(at||(at=Bt),v.size!=D.size&&!Ke)return!1;var lt=rt.get(v);if(lt)return lt==D;Z|=s,rt.set(v,D);var Ft=Lr(at(v),at(D),Z,ze,Be,rt);return rt.delete(v),Ft;case T:if(ss)return ss.call(v)==ss.call(D)}return!1}function Vo(v,D,N,Z,ze,Be){var rt=N&a,at=ji(v),Ke=at.length,lt=ji(D),Ft=lt.length;if(Ke!=Ft&&!rt)return!1;for(var _n=Ke;_n--;){var Wt=at[_n];if(!(rt?Wt in D:Ue.call(D,Wt)))return!1}var _t=Be.get(v);if(_t&&Be.get(D))return _t==D;var an=!0;Be.set(v,D),Be.set(D,v);for(var qi=rt;++_n<Ke;){Wt=at[_n];var Mi=v[Wt],cr=D[Wt];if(Z)var Ac=rt?Z(cr,Mi,Wt,D,v,Be):Z(Mi,cr,Wt,v,D,Be);if(!(Ac===void 0?Mi===cr||ze(Mi,cr,N,Z,Be):Ac)){an=!1;break}qi||(qi=Wt=="constructor")}if(an&&!qi){var ps=v.constructor,mn=D.constructor;ps!=mn&&"constructor"in v&&"constructor"in D&&!(typeof ps=="function"&&ps instanceof ps&&typeof mn=="function"&&mn instanceof mn)&&(an=!1)}return Be.delete(v),Be.delete(D),an}function ji(v){return Ir(v,fs,$o)}function Pn(v,D){var N=v.__data__;return Io(D)?N[typeof D=="string"?"string":"hash"]:N.map}function $n(v,D){var N=ot(v,D);return $c(N)?N:void 0}function Ci(v){var D=Ue.call(v,G),N=v[G];try{v[G]=void 0;var Z=!0}catch{}var ze=pn.call(v);return Z&&(D?v[G]=N:delete v[G]),ze}var $o=ue?function(v){return v==null?[]:(v=Object(v),Pt(ue(v),function(D){return j.call(v,D)}))}:vt,xi=Ar;(ut&&xi(new ut(new ArrayBuffer(1)))!=Y||Dt&&xi(new Dt)!=w||ln&&xi(ln.resolve())!=E||Jt&&xi(new Jt)!=I||Gn&&xi(new Gn)!=U)&&(xi=function(v){var D=Ar(v),N=D==M?v.constructor:void 0,Z=N?vn(N):"";if(Z)switch(Z){case zn:return Y;case On:return w;case ai:return E;case Ui:return I;case Vr:return U}return D});function To(v,D){return D=D??o,!!D&&(typeof v=="number"||Oe.test(v))&&v>-1&&v%1==0&&v<D}function Io(v){var D=typeof v;return D=="string"||D=="number"||D=="symbol"||D=="boolean"?v!=="__proto__":v===null}function Ao(v){return!!rn&&rn in v}function No(v){var D=v&&v.constructor,N=typeof D=="function"&&D.prototype||Et;return v===N}function Lo(v){return pn.call(v)}function vn(v){if(v!=null){try{return Le.call(v)}catch{}try{return v+""}catch{}}return""}function zo(v,D){return v===D||v!==v&&D!==D}var ds=cs(function(){return arguments}())?cs:function(v){return Si(v)&&Ue.call(v,"callee")&&!j.call(v,"callee")},_a=Array.isArray;function us(v){return v!=null&&hs(v.length)&&!ka(v)}var wa=Me||pt;function Ic(v,D){return Nr(v,D)}function ka(v){if(!Po(v))return!1;var D=Ar(v);return D==y||D==_||D==h||D==x}function hs(v){return typeof v=="number"&&v>-1&&v%1==0&&v<=o}function Po(v){var D=typeof v;return v!=null&&(D=="object"||D=="function")}function Si(v){return v!=null&&typeof v=="object"}var Fo=et?Xt(et):Do;function fs(v){return us(v)?Bo(v):Oo(v)}function vt(){return[]}function pt(){return!1}e.exports=Ic}(pu,pu.exports);var oT=pu.exports;const ao=Uh(oT),lT={props:{tabs:{type:Array,default:()=>[],required:!0,validator:e=>!e.filter(n=>on(n.title)||on(n.name)).length},activeTab:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:e=>Ri.includes(e)}},data(){return{internalActiveTab:this.activeTab,colorOptions:Ri}},computed:{activeBorderStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},watch:{tabs:{handler(e){const t=e.filter(n=>n.name===this.activeTab.name);[this.internalActiveTab]=t.length?t:e},immediate:!0}},methods:{colorHexCode:to,getSlotName(e){return e.name},handleClick(e,t){this.$emit("tab-click",{event:e,item:t}),!this.internalActiveTab.disableTabChange&&(this.$emit("change",{event:e,item:t}),this.internalActiveTab=t)},isActive(e){return ao(this.internalActiveTab,e)},indicatorClass(e){return this.isActive(e)?`tab__indicator--active--${this.variant}`:""}}},cT={id:"inner-tabs"},dT={class:"inner-tabs__header-container"},uT={class:"inner-tabs__header"},hT=["onClick"],fT={class:"inner-tabs__content"};function pT(e,t,n,r,a,s){return i.openBlock(),i.createElementBlock("div",cT,[i.createElementVNode("div",dT,[i.createElementVNode("ul",uT,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.tabs,(o,l)=>(i.openBlock(),i.createElementBlock("li",{key:`${l}-${o.name}-tab`,role:"presentation"},[i.createElementVNode("a",{role:"tab",href:"javascript:void(0)",target:"_self",class:i.normalizeClass(["inner-tabs__tab",s.isActive(o)?"inner-tabs__tab--active":"inner-tabs__tab--inactive"]),onClick:d=>s.handleClick(d,o)},i.toDisplayString(o.title),11,hT),i.createElementVNode("div",{class:i.normalizeClass(s.indicatorClass(o)),style:i.normalizeStyle(s.activeBorderStyle)},null,6)]))),128))])]),i.createElementVNode("div",fT,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.tabs,(o,l)=>(i.openBlock(),i.createElementBlock("div",{key:`${l}-${o.name}-tab`,role:"tabpanel",class:i.normalizeClass(["content__pane",s.isActive(o)?"content__pane--active":"content__pane--inactive"])},[i.renderSlot(e.$slots,s.getSlotName(o))],2))),128))])])}const mT=te(lT,[["render",pT]]),gT={key:0,class:"landscape-overlay"},yT={class:"landscape-overlay__container"},bT=["src"],vT={class:"landscape-overlay__title"},_T={class:"landscape-overlay__subtitle"},wT={key:0,class:"landscape-overlay__button"},kT=te({__name:"InteractionBlockingOverlay",props:{blockInteraction:{type:String,required:!0,default:"mobile",validator:e=>["mobile","landscape"].includes(e.toLowerCase())},title:{type:String,default:""},description:{type:String,default:""},buttonVariant:{type:String,default:"green",validator:e=>Ri.includes(e.toLowerCase())},buttonText:{type:String,default:"Ir para o início"}},emits:["button-click"],setup(e,{emit:t}){const n=e,r=t,a=i.ref(!1),s=i.ref(""),o=i.ref(""),l=i.ref(""),d=i.computed(()=>Xa("smartphone")||Xa("tablet")),h=i.computed(()=>window.outerWidth>window.outerHeight&&d.value);return i.watch(a,f=>{f?document.body.style.overflow="hidden":document.body.style.overflow="auto"}),i.watchEffect(()=>{!d.value&&!h.value&&(a.value=!1)}),i.onMounted(()=>{if(n.blockInteraction==="mobile"){d.value&&(a.value=!0,n.title===""?s.value="Acesse o conteúdo por um computador":s.value=n.title,n.description===""?o.value="Esta tela não é otimizada para navegação em celular.":o.value=n.description,l.value="/img/page-not-responsive.svg");return}n.blockInteraction==="landscape"&&h.value&&(a.value=!0,n.title===""?s.value="Rotacione seu dispositivo":s.value=n.title,n.description===""?o.value="Este conteúdo é otimizado para a visualização em modo retrato.":o.value=n.description,l.value="/img/smartphone-rotation.svg")}),(f,m)=>a.value?(i.openBlock(),i.createElementBlock("div",gT,[i.createElementVNode("div",yT,[i.createElementVNode("img",{class:"landscape-overlay__image",src:l.value},null,8,bT),i.createElementVNode("span",vT,i.toDisplayString(s.value),1),i.createElementVNode("span",_T,i.toDisplayString(o.value),1),f.block-f.interaction==="mobile"?(i.openBlock(),i.createElementBlock("div",wT,[i.createVNode(ti,{variant:e.buttonVariant,block:"",onButtonClick:m[0]||(m[0]=g=>r("button-click"))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.buttonText),1)]),_:1},8,["variant"])])):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)}},[["__scopeId","data-v-a0718af5"]]);var CT=Object.defineProperty,xT=(e,t,n)=>t in e?CT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ee=(e,t,n)=>(xT(e,typeof t!="symbol"?t+"":t,n),n),mu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $4(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ST=Object.prototype,MT=ST.hasOwnProperty;function BT(e,t){return e!=null&&MT.call(e,t)}var ET=BT,DT=Array.isArray,Hi=DT,OT=typeof mu=="object"&&mu&&mu.Object===Object&&mu,T4=OT,VT=T4,$T=typeof self=="object"&&self&&self.Object===Object&&self,TT=VT||$T||Function("return this")(),ar=TT,IT=ar,AT=IT.Symbol,gu=AT,I4=gu,A4=Object.prototype,NT=A4.hasOwnProperty,LT=A4.toString,rc=I4?I4.toStringTag:void 0;function zT(e){var t=NT.call(e,rc),n=e[rc];try{e[rc]=void 0;var r=!0}catch{}var a=LT.call(e);return r&&(t?e[rc]=n:delete e[rc]),a}var PT=zT,FT=Object.prototype,RT=FT.toString;function HT(e){return RT.call(e)}var WT=HT,N4=gu,YT=PT,UT=WT,jT="[object Null]",qT="[object Undefined]",L4=N4?N4.toStringTag:void 0;function GT(e){return e==null?e===void 0?qT:jT:L4&&L4 in Object(e)?YT(e):UT(e)}var sr=GT;function KT(e){return e!=null&&typeof e=="object"}var Wi=KT,ZT=sr,XT=Wi,JT="[object Symbol]";function QT(e){return typeof e=="symbol"||XT(e)&&ZT(e)==JT}var Rf=QT,eI=Hi,tI=Rf,nI=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,iI=/^\w*$/;function rI(e,t){if(eI(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||tI(e)?!0:iI.test(e)||!nI.test(e)||t!=null&&e in Object(t)}var Hf=rI;function aI(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Sr=aI,sI=sr,oI=Sr,lI="[object AsyncFunction]",cI="[object Function]",dI="[object GeneratorFunction]",uI="[object Proxy]";function hI(e){if(!oI(e))return!1;var t=sI(e);return t==cI||t==dI||t==lI||t==uI}var Qa=hI,fI=ar,pI=fI["__core-js_shared__"],mI=pI,Wf=mI,z4=function(){var e=/[^.]+$/.exec(Wf&&Wf.keys&&Wf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function gI(e){return!!z4&&z4 in e}var yI=gI,bI=Function.prototype,vI=bI.toString;function _I(e){if(e!=null){try{return vI.call(e)}catch{}try{return e+""}catch{}}return""}var P4=_I,wI=Qa,kI=yI,CI=Sr,xI=P4,SI=/[\\^$.*+?()[\]{}|]/g,MI=/^\[object .+?Constructor\]$/,BI=Function.prototype,EI=Object.prototype,DI=BI.toString,OI=EI.hasOwnProperty,VI=RegExp("^"+DI.call(OI).replace(SI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $I(e){if(!CI(e)||kI(e))return!1;var t=wI(e)?VI:MI;return t.test(xI(e))}var TI=$I;function II(e,t){return e==null?void 0:e[t]}var AI=II,NI=TI,LI=AI;function zI(e,t){var n=LI(e,t);return NI(n)?n:void 0}var es=zI,PI=es,FI=PI(Object,"create"),yu=FI,F4=yu;function RI(){this.__data__=F4?F4(null):{},this.size=0}var HI=RI;function WI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var YI=WI,UI=yu,jI="__lodash_hash_undefined__",qI=Object.prototype,GI=qI.hasOwnProperty;function KI(e){var t=this.__data__;if(UI){var n=t[e];return n===jI?void 0:n}return GI.call(t,e)?t[e]:void 0}var ZI=KI,XI=yu,JI=Object.prototype,QI=JI.hasOwnProperty;function eA(e){var t=this.__data__;return XI?t[e]!==void 0:QI.call(t,e)}var tA=eA,nA=yu,iA="__lodash_hash_undefined__";function rA(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nA&&t===void 0?iA:t,this}var aA=rA,sA=HI,oA=YI,lA=ZI,cA=tA,dA=aA;function so(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}so.prototype.clear=sA,so.prototype.delete=oA,so.prototype.get=lA,so.prototype.has=cA,so.prototype.set=dA;var uA=so;function hA(){this.__data__=[],this.size=0}var fA=hA;function pA(e,t){return e===t||e!==e&&t!==t}var oo=pA,mA=oo;function gA(e,t){for(var n=e.length;n--;)if(mA(e[n][0],t))return n;return-1}var bu=gA,yA=bu,bA=Array.prototype,vA=bA.splice;function _A(e){var t=this.__data__,n=yA(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():vA.call(t,n,1),--this.size,!0}var wA=_A,kA=bu;function CA(e){var t=this.__data__,n=kA(t,e);return n<0?void 0:t[n][1]}var xA=CA,SA=bu;function MA(e){return SA(this.__data__,e)>-1}var BA=MA,EA=bu;function DA(e,t){var n=this.__data__,r=EA(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var OA=DA,VA=fA,$A=wA,TA=xA,IA=BA,AA=OA;function lo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}lo.prototype.clear=VA,lo.prototype.delete=$A,lo.prototype.get=TA,lo.prototype.has=IA,lo.prototype.set=AA;var vu=lo,NA=es,LA=ar,zA=NA(LA,"Map"),Yf=zA,R4=uA,PA=vu,FA=Yf;function RA(){this.size=0,this.__data__={hash:new R4,map:new(FA||PA),string:new R4}}var HA=RA;function WA(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var YA=WA,UA=YA;function jA(e,t){var n=e.__data__;return UA(t)?n[typeof t=="string"?"string":"hash"]:n.map}var _u=jA,qA=_u;function GA(e){var t=qA(this,e).delete(e);return this.size-=t?1:0,t}var KA=GA,ZA=_u;function XA(e){return ZA(this,e).get(e)}var JA=XA,QA=_u;function eN(e){return QA(this,e).has(e)}var tN=eN,nN=_u;function iN(e,t){var n=nN(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var rN=iN,aN=HA,sN=KA,oN=JA,lN=tN,cN=rN;function co(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}co.prototype.clear=aN,co.prototype.delete=sN,co.prototype.get=oN,co.prototype.has=lN,co.prototype.set=cN;var Uf=co,H4=Uf,dN="Expected a function";function jf(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(dN);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],s=n.cache;if(s.has(a))return s.get(a);var o=e.apply(this,r);return n.cache=s.set(a,o)||s,o};return n.cache=new(jf.Cache||H4),n}jf.Cache=H4;var uN=jf,hN=uN,fN=500;function pN(e){var t=hN(e,function(r){return n.size===fN&&n.clear(),r}),n=t.cache;return t}var mN=pN,gN=mN,yN=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bN=/\\(\\)?/g,vN=gN(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(yN,function(n,r,a,s){t.push(a?s.replace(bN,"$1"):r||n)}),t}),_N=vN;function wN(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var kN=wN,W4=gu,CN=kN,xN=Hi,SN=Rf,Y4=W4?W4.prototype:void 0,U4=Y4?Y4.toString:void 0;function j4(e){if(typeof e=="string")return e;if(xN(e))return CN(e,j4)+"";if(SN(e))return U4?U4.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var MN=j4,BN=MN;function EN(e){return e==null?"":BN(e)}var DN=EN,ON=Hi,VN=Hf,$N=_N,TN=DN;function IN(e,t){return ON(e)?e:VN(e,t)?[e]:$N(TN(e))}var q4=IN,AN=sr,NN=Wi,LN="[object Arguments]";function zN(e){return NN(e)&&AN(e)==LN}var PN=zN,G4=PN,FN=Wi,K4=Object.prototype,RN=K4.hasOwnProperty,HN=K4.propertyIsEnumerable,WN=G4(function(){return arguments}())?G4:function(e){return FN(e)&&RN.call(e,"callee")&&!HN.call(e,"callee")},qf=WN,YN=9007199254740991,UN=/^(?:0|[1-9]\d*)$/;function jN(e,t){var n=typeof e;return t=t??YN,!!t&&(n=="number"||n!="symbol"&&UN.test(e))&&e>-1&&e%1==0&&e<t}var Gf=jN,qN=9007199254740991;function GN(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qN}var Kf=GN,KN=Rf;function ZN(e){if(typeof e=="string"||KN(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var wu=ZN,XN=q4,JN=qf,QN=Hi,eL=Gf,tL=Kf,nL=wu;function iL(e,t,n){t=XN(t,e);for(var r=-1,a=t.length,s=!1;++r<a;){var o=nL(t[r]);if(!(s=e!=null&&n(e,o)))break;e=e[o]}return s||++r!=a?s:(a=e==null?0:e.length,!!a&&tL(a)&&eL(o,a)&&(QN(e)||JN(e)))}var Z4=iL,rL=ET,aL=Z4;function sL(e,t){return e!=null&&aL(e,t,rL)}var X4=sL,oL=sr,lL=Wi,cL="[object Date]";function dL(e){return lL(e)&&oL(e)==cL}var uL=dL;function hL(e){return function(t){return e(t)}}var J4=hL,ac={},fL={get exports(){return ac},set exports(e){ac=e}};(function(e,t){var n=T4,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===r,o=s&&n.process,l=function(){try{var d=a&&a.require&&a.require("util").types;return d||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(fL,ac);var pL=uL,mL=J4,Q4=ac,eb=Q4&&Q4.isDate,gL=eb?mL(eb):pL,yL=gL,bL=sr,vL=Hi,_L=Wi,wL="[object String]";function kL(e){return typeof e=="string"||!vL(e)&&_L(e)&&bL(e)==wL}var or=kL;function CL(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var tb=CL,xL=vu;function SL(){this.__data__=new xL,this.size=0}var ML=SL;function BL(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var EL=BL;function DL(e){return this.__data__.get(e)}var OL=DL;function VL(e){return this.__data__.has(e)}var $L=VL,TL=vu,IL=Yf,AL=Uf,NL=200;function LL(e,t){var n=this.__data__;if(n instanceof TL){var r=n.__data__;if(!IL||r.length<NL-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new AL(r)}return n.set(e,t),this.size=n.size,this}var zL=LL,PL=vu,FL=ML,RL=EL,HL=OL,WL=$L,YL=zL;function uo(e){var t=this.__data__=new PL(e);this.size=t.size}uo.prototype.clear=FL,uo.prototype.delete=RL,uo.prototype.get=HL,uo.prototype.has=WL,uo.prototype.set=YL;var Zf=uo,UL="__lodash_hash_undefined__";function jL(e){return this.__data__.set(e,UL),this}var qL=jL;function GL(e){return this.__data__.has(e)}var KL=GL,ZL=Uf,XL=qL,JL=KL;function ku(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new ZL;++t<n;)this.add(e[t])}ku.prototype.add=ku.prototype.push=XL,ku.prototype.has=JL;var QL=ku;function ez(e,t){return e.has(t)}var tz=ez,nz=QL,iz=tb,rz=tz,az=1,sz=2;function oz(e,t,n,r,a,s){var o=n&az,l=e.length,d=t.length;if(l!=d&&!(o&&d>l))return!1;var h=s.get(e),f=s.get(t);if(h&&f)return h==t&&f==e;var m=-1,g=!0,y=n&sz?new nz:void 0;for(s.set(e,t),s.set(t,e);++m<l;){var _=e[m],w=t[m];if(r)var k=o?r(w,_,m,t,e,s):r(_,w,m,e,t,s);if(k!==void 0){if(k)continue;g=!1;break}if(y){if(!iz(t,function(C,M){if(!rz(y,M)&&(_===C||a(_,C,n,r,s)))return y.push(M)})){g=!1;break}}else if(!(_===w||a(_,w,n,r,s))){g=!1;break}}return s.delete(e),s.delete(t),g}var nb=oz,lz=ar,cz=lz.Uint8Array,ib=cz;function dz(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var uz=dz;function hz(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var fz=hz,rb=gu,ab=ib,pz=oo,mz=nb,gz=uz,yz=fz,bz=1,vz=2,_z="[object Boolean]",wz="[object Date]",kz="[object Error]",Cz="[object Map]",xz="[object Number]",Sz="[object RegExp]",Mz="[object Set]",Bz="[object String]",Ez="[object Symbol]",Dz="[object ArrayBuffer]",Oz="[object DataView]",sb=rb?rb.prototype:void 0,Xf=sb?sb.valueOf:void 0;function Vz(e,t,n,r,a,s,o){switch(n){case Oz:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Dz:return!(e.byteLength!=t.byteLength||!s(new ab(e),new ab(t)));case _z:case wz:case xz:return pz(+e,+t);case kz:return e.name==t.name&&e.message==t.message;case Sz:case Bz:return e==t+"";case Cz:var l=gz;case Mz:var d=r&bz;if(l||(l=yz),e.size!=t.size&&!d)return!1;var h=o.get(e);if(h)return h==t;r|=vz,o.set(e,t);var f=mz(l(e),l(t),r,a,s,o);return o.delete(e),f;case Ez:if(Xf)return Xf.call(e)==Xf.call(t)}return!1}var $z=Vz;function Tz(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var Iz=Tz,Az=Iz,Nz=Hi;function Lz(e,t,n){var r=t(e);return Nz(e)?r:Az(r,n(e))}var zz=Lz;function Pz(e,t){for(var n=-1,r=e==null?0:e.length,a=0,s=[];++n<r;){var o=e[n];t(o,n,e)&&(s[a++]=o)}return s}var Fz=Pz;function Rz(){return[]}var Hz=Rz,Wz=Fz,Yz=Hz,Uz=Object.prototype,jz=Uz.propertyIsEnumerable,ob=Object.getOwnPropertySymbols,qz=ob?function(e){return e==null?[]:(e=Object(e),Wz(ob(e),function(t){return jz.call(e,t)}))}:Yz,Gz=qz;function Kz(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Zz=Kz,ho={},Xz={get exports(){return ho},set exports(e){ho=e}};function Jz(){return!1}var Qz=Jz;(function(e,t){var n=ar,r=Qz,a=t&&!t.nodeType&&t,s=a&&!0&&e&&!e.nodeType&&e,o=s&&s.exports===a,l=o?n.Buffer:void 0,d=l?l.isBuffer:void 0,h=d||r;e.exports=h})(Xz,ho);var eP=sr,tP=Kf,nP=Wi,iP="[object Arguments]",rP="[object Array]",aP="[object Boolean]",sP="[object Date]",oP="[object Error]",lP="[object Function]",cP="[object Map]",dP="[object Number]",uP="[object Object]",hP="[object RegExp]",fP="[object Set]",pP="[object String]",mP="[object WeakMap]",gP="[object ArrayBuffer]",yP="[object DataView]",bP="[object Float32Array]",vP="[object Float64Array]",_P="[object Int8Array]",wP="[object Int16Array]",kP="[object Int32Array]",CP="[object Uint8Array]",xP="[object Uint8ClampedArray]",SP="[object Uint16Array]",MP="[object Uint32Array]",Nt={};Nt[bP]=Nt[vP]=Nt[_P]=Nt[wP]=Nt[kP]=Nt[CP]=Nt[xP]=Nt[SP]=Nt[MP]=!0,Nt[iP]=Nt[rP]=Nt[gP]=Nt[aP]=Nt[yP]=Nt[sP]=Nt[oP]=Nt[lP]=Nt[cP]=Nt[dP]=Nt[uP]=Nt[hP]=Nt[fP]=Nt[pP]=Nt[mP]=!1;function BP(e){return nP(e)&&tP(e.length)&&!!Nt[eP(e)]}var EP=BP,DP=EP,OP=J4,lb=ac,cb=lb&&lb.isTypedArray,VP=cb?OP(cb):DP,Jf=VP,$P=Zz,TP=qf,IP=Hi,AP=ho,NP=Gf,LP=Jf,zP=Object.prototype,PP=zP.hasOwnProperty;function FP(e,t){var n=IP(e),r=!n&&TP(e),a=!n&&!r&&AP(e),s=!n&&!r&&!a&&LP(e),o=n||r||a||s,l=o?$P(e.length,String):[],d=l.length;for(var h in e)(t||PP.call(e,h))&&!(o&&(h=="length"||a&&(h=="offset"||h=="parent")||s&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||NP(h,d)))&&l.push(h);return l}var db=FP,RP=Object.prototype;function HP(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||RP;return e===n}var Qf=HP;function WP(e,t){return function(n){return e(t(n))}}var ub=WP,YP=ub,UP=YP(Object.keys,Object),jP=UP,qP=Qf,GP=jP,KP=Object.prototype,ZP=KP.hasOwnProperty;function XP(e){if(!qP(e))return GP(e);var t=[];for(var n in Object(e))ZP.call(e,n)&&n!="constructor"&&t.push(n);return t}var JP=XP,QP=Qa,eF=Kf;function tF(e){return e!=null&&eF(e.length)&&!QP(e)}var sc=tF,nF=db,iF=JP,rF=sc;function aF(e){return rF(e)?nF(e):iF(e)}var e0=aF,sF=zz,oF=Gz,lF=e0;function cF(e){return sF(e,lF,oF)}var dF=cF,hb=dF,uF=1,hF=Object.prototype,fF=hF.hasOwnProperty;function pF(e,t,n,r,a,s){var o=n&uF,l=hb(e),d=l.length,h=hb(t),f=h.length;if(d!=f&&!o)return!1;for(var m=d;m--;){var g=l[m];if(!(o?g in t:fF.call(t,g)))return!1}var y=s.get(e),_=s.get(t);if(y&&_)return y==t&&_==e;var w=!0;s.set(e,t),s.set(t,e);for(var k=o;++m<d;){g=l[m];var C=e[g],M=t[g];if(r)var E=o?r(M,C,g,t,e,s):r(C,M,g,e,t,s);if(!(E===void 0?C===M||a(C,M,n,r,s):E)){w=!1;break}k||(k=g=="constructor")}if(w&&!k){var x=e.constructor,$=t.constructor;x!=$&&"constructor"in e&&"constructor"in t&&!(typeof x=="function"&&x instanceof x&&typeof $=="function"&&$ instanceof $)&&(w=!1)}return s.delete(e),s.delete(t),w}var mF=pF,gF=es,yF=ar,bF=gF(yF,"DataView"),vF=bF,_F=es,wF=ar,kF=_F(wF,"Promise"),CF=kF,xF=es,SF=ar,MF=xF(SF,"Set"),BF=MF,EF=es,DF=ar,OF=EF(DF,"WeakMap"),VF=OF,t0=vF,n0=Yf,i0=CF,r0=BF,a0=VF,fb=sr,fo=P4,pb="[object Map]",$F="[object Object]",mb="[object Promise]",gb="[object Set]",yb="[object WeakMap]",bb="[object DataView]",TF=fo(t0),IF=fo(n0),AF=fo(i0),NF=fo(r0),LF=fo(a0),ts=fb;(t0&&ts(new t0(new ArrayBuffer(1)))!=bb||n0&&ts(new n0)!=pb||i0&&ts(i0.resolve())!=mb||r0&&ts(new r0)!=gb||a0&&ts(new a0)!=yb)&&(ts=function(e){var t=fb(e),n=t==$F?e.constructor:void 0,r=n?fo(n):"";if(r)switch(r){case TF:return bb;case IF:return pb;case AF:return mb;case NF:return gb;case LF:return yb}return t});var zF=ts,s0=Zf,PF=nb,FF=$z,RF=mF,vb=zF,_b=Hi,wb=ho,HF=Jf,WF=1,kb="[object Arguments]",Cb="[object Array]",Cu="[object Object]",YF=Object.prototype,xb=YF.hasOwnProperty;function UF(e,t,n,r,a,s){var o=_b(e),l=_b(t),d=o?Cb:vb(e),h=l?Cb:vb(t);d=d==kb?Cu:d,h=h==kb?Cu:h;var f=d==Cu,m=h==Cu,g=d==h;if(g&&wb(e)){if(!wb(t))return!1;o=!0,f=!1}if(g&&!f)return s||(s=new s0),o||HF(e)?PF(e,t,n,r,a,s):FF(e,t,d,n,r,a,s);if(!(n&WF)){var y=f&&xb.call(e,"__wrapped__"),_=m&&xb.call(t,"__wrapped__");if(y||_){var w=y?e.value():e,k=_?t.value():t;return s||(s=new s0),a(w,k,n,r,s)}}return g?(s||(s=new s0),RF(e,t,n,r,a,s)):!1}var jF=UF,qF=jF,Sb=Wi;function Mb(e,t,n,r,a){return e===t?!0:e==null||t==null||!Sb(e)&&!Sb(t)?e!==e&&t!==t:qF(e,t,n,r,Mb,a)}var Bb=Mb,GF=Zf,KF=Bb,ZF=1,XF=2;function JF(e,t,n,r){var a=n.length,s=a,o=!r;if(e==null)return!s;for(e=Object(e);a--;){var l=n[a];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<s;){l=n[a];var d=l[0],h=e[d],f=l[1];if(o&&l[2]){if(h===void 0&&!(d in e))return!1}else{var m=new GF;if(r)var g=r(h,f,d,e,t,m);if(!(g===void 0?KF(f,h,ZF|XF,r,m):g))return!1}}return!0}var QF=JF,eR=Sr;function tR(e){return e===e&&!eR(e)}var Eb=tR,nR=Eb,iR=e0;function rR(e){for(var t=iR(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,nR(a)]}return t}var aR=rR;function sR(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Db=sR,oR=QF,lR=aR,cR=Db;function dR(e){var t=lR(e);return t.length==1&&t[0][2]?cR(t[0][0],t[0][1]):function(n){return n===e||oR(n,e,t)}}var uR=dR,hR=q4,fR=wu;function pR(e,t){t=hR(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[fR(t[n++])];return n&&n==r?e:void 0}var Ob=pR,mR=Ob;function gR(e,t,n){var r=e==null?void 0:mR(e,t);return r===void 0?n:r}var ns=gR;function yR(e,t){return e!=null&&t in Object(e)}var bR=yR,vR=bR,_R=Z4;function wR(e,t){return e!=null&&_R(e,t,vR)}var kR=wR,CR=Bb,xR=ns,SR=kR,MR=Hf,BR=Eb,ER=Db,DR=wu,OR=1,VR=2;function $R(e,t){return MR(e)&&BR(t)?ER(DR(e),t):function(n){var r=xR(n,e);return r===void 0&&r===t?SR(n,e):CR(t,r,OR|VR)}}var TR=$R;function IR(e){return e}var o0=IR;function AR(e){return function(t){return t==null?void 0:t[e]}}var NR=AR,LR=Ob;function zR(e){return function(t){return LR(t,e)}}var PR=zR,FR=NR,RR=PR,HR=Hf,WR=wu;function YR(e){return HR(e)?FR(WR(e)):RR(e)}var UR=YR,jR=uR,qR=TR,GR=o0,KR=Hi,ZR=UR;function XR(e){return typeof e=="function"?e:e==null?GR:typeof e=="object"?KR(e)?qR(e[0],e[1]):jR(e):ZR(e)}var Vb=XR;function JR(e){return function(t,n,r){for(var a=-1,s=Object(t),o=r(t),l=o.length;l--;){var d=o[e?l:++a];if(n(s[d],d,s)===!1)break}return t}}var QR=JR,eH=QR,tH=eH(),$b=tH,nH=$b,iH=e0;function rH(e,t){return e&&nH(e,t,iH)}var Tb=rH,aH=sc;function sH(e,t){return function(n,r){if(n==null)return n;if(!aH(n))return e(n,r);for(var a=n.length,s=t?a:-1,o=Object(n);(t?s--:++s<a)&&r(o[s],s,o)!==!1;);return n}}var oH=sH,lH=Tb,cH=oH,dH=cH(lH),uH=dH,hH=uH;function fH(e,t){var n;return hH(e,function(r,a,s){return n=t(r,a,s),!n}),!!n}var pH=fH,mH=oo,gH=sc,yH=Gf,bH=Sr;function vH(e,t,n){if(!bH(n))return!1;var r=typeof t;return(r=="number"?gH(n)&&yH(t,n.length):r=="string"&&t in n)?mH(n[t],e):!1}var l0=vH,_H=tb,wH=Vb,kH=pH,CH=Hi,xH=l0;function SH(e,t,n){var r=CH(e)?_H:kH;return n&&xH(e,t,n)&&(t=void 0),r(e,wH(t))}var MH=SH,BH=sr,EH=Wi,DH="[object Boolean]";function OH(e){return e===!0||e===!1||EH(e)&&BH(e)==DH}var VH=OH,$H=sr,TH=Wi,IH="[object Number]";function AH(e){return typeof e=="number"||TH(e)&&$H(e)==IH}var Yi=AH,NH=es,LH=function(){try{var e=NH(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Ib=LH,Ab=Ib;function zH(e,t,n){t=="__proto__"&&Ab?Ab(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var xu=zH,PH=xu,FH=oo,RH=Object.prototype,HH=RH.hasOwnProperty;function WH(e,t,n){var r=e[t];(!(HH.call(e,t)&&FH(r,n))||n===void 0&&!(t in e))&&PH(e,t,n)}var YH=WH,UH=xu,jH=Tb,qH=Vb;function GH(e,t){var n={};return t=qH(t),jH(e,function(r,a,s){UH(n,a,t(r,a,s))}),n}var KH=GH;function ZH(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Nb=ZH,XH=Nb,Lb=Math.max;function JH(e,t,n){return t=Lb(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,s=Lb(r.length-t,0),o=Array(s);++a<s;)o[a]=r[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=r[a];return l[t]=n(o),XH(e,this,l)}}var QH=JH;function eW(e){return function(){return e}}var tW=eW,nW=tW,zb=Ib,iW=o0,rW=zb?function(e,t){return zb(e,"toString",{configurable:!0,enumerable:!1,value:nW(t),writable:!0})}:iW,aW=rW,sW=800,oW=16,lW=Date.now;function cW(e){var t=0,n=0;return function(){var r=lW(),a=oW-(r-n);if(n=r,a>0){if(++t>=sW)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var dW=cW,uW=aW,hW=dW,fW=hW(uW),pW=fW,mW=o0,gW=QH,yW=pW;function bW(e,t){return yW(gW(e,t,mW),e+"")}var c0=bW;function vW(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var _W=vW,wW=Sr,kW=Qf,CW=_W,xW=Object.prototype,SW=xW.hasOwnProperty;function MW(e){if(!wW(e))return CW(e);var t=kW(e),n=[];for(var r in e)r=="constructor"&&(t||!SW.call(e,r))||n.push(r);return n}var BW=MW,EW=db,DW=BW,OW=sc;function VW(e){return OW(e)?EW(e,!0):DW(e)}var d0=VW,$W=c0,TW=oo,IW=l0,AW=d0,Pb=Object.prototype,NW=Pb.hasOwnProperty,LW=$W(function(e,t){e=Object(e);var n=-1,r=t.length,a=r>2?t[2]:void 0;for(a&&IW(t[0],t[1],a)&&(r=1);++n<r;)for(var s=t[n],o=AW(s),l=-1,d=o.length;++l<d;){var h=o[l],f=e[h];(f===void 0||TW(f,Pb[h])&&!NW.call(e,h))&&(e[h]=s[h])}return e}),Fb=LW,zW=xu,PW=oo;function FW(e,t,n){(n!==void 0&&!PW(e[t],n)||n===void 0&&!(t in e))&&zW(e,t,n)}var Rb=FW,Su={},RW={get exports(){return Su},set exports(e){Su=e}};(function(e,t){var n=ar,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===r,o=s?n.Buffer:void 0,l=o?o.allocUnsafe:void 0;function d(h,f){if(f)return h.slice();var m=h.length,g=l?l(m):new h.constructor(m);return h.copy(g),g}e.exports=d})(RW,Su);var Hb=ib;function HW(e){var t=new e.constructor(e.byteLength);return new Hb(t).set(new Hb(e)),t}var WW=HW,YW=WW;function UW(e,t){var n=t?YW(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var jW=UW;function qW(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var GW=qW,KW=Sr,Wb=Object.create,ZW=function(){function e(){}return function(t){if(!KW(t))return{};if(Wb)return Wb(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),XW=ZW,JW=ub,QW=JW(Object.getPrototypeOf,Object),Yb=QW,eY=XW,tY=Yb,nY=Qf;function iY(e){return typeof e.constructor=="function"&&!nY(e)?eY(tY(e)):{}}var rY=iY,aY=sc,sY=Wi;function oY(e){return sY(e)&&aY(e)}var lY=oY,cY=sr,dY=Yb,uY=Wi,hY="[object Object]",fY=Function.prototype,pY=Object.prototype,Ub=fY.toString,mY=pY.hasOwnProperty,gY=Ub.call(Object);function yY(e){if(!uY(e)||cY(e)!=hY)return!1;var t=dY(e);if(t===null)return!0;var n=mY.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Ub.call(n)==gY}var bY=yY;function vY(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var jb=vY,_Y=YH,wY=xu;function kY(e,t,n,r){var a=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var l=t[s],d=r?r(n[l],e[l],l,n,e):void 0;d===void 0&&(d=e[l]),a?wY(n,l,d):_Y(n,l,d)}return n}var CY=kY,xY=CY,SY=d0;function MY(e){return xY(e,SY(e))}var BY=MY,qb=Rb,EY=Su,DY=jW,OY=GW,VY=rY,Gb=qf,Kb=Hi,$Y=lY,TY=ho,IY=Qa,AY=Sr,NY=bY,LY=Jf,Zb=jb,zY=BY;function PY(e,t,n,r,a,s,o){var l=Zb(e,n),d=Zb(t,n),h=o.get(d);if(h){qb(e,n,h);return}var f=s?s(l,d,n+"",e,t,o):void 0,m=f===void 0;if(m){var g=Kb(d),y=!g&&TY(d),_=!g&&!y&&LY(d);f=d,g||y||_?Kb(l)?f=l:$Y(l)?f=OY(l):y?(m=!1,f=EY(d,!0)):_?(m=!1,f=DY(d,!0)):f=[]:NY(d)||Gb(d)?(f=l,Gb(l)?f=zY(l):(!AY(l)||IY(l))&&(f=VY(d))):m=!1}m&&(o.set(d,f),a(f,d,r,s,o),o.delete(d)),qb(e,n,f)}var FY=PY,RY=Zf,HY=Rb,WY=$b,YY=FY,UY=Sr,jY=d0,qY=jb;function Xb(e,t,n,r,a){e!==t&&WY(t,function(s,o){if(a||(a=new RY),UY(s))YY(e,t,o,n,Xb,r,a);else{var l=r?r(qY(e,o),s,o+"",e,t,a):void 0;l===void 0&&(l=s),HY(e,o,l)}},jY)}var Jb=Xb,GY=Jb,Qb=Sr;function e5(e,t,n,r,a,s){return Qb(e)&&Qb(t)&&(s.set(t,e),GY(e,t,void 0,e5,s),s.delete(t)),e}var KY=e5,ZY=c0,XY=l0;function JY(e){return ZY(function(t,n){var r=-1,a=n.length,s=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(a--,s):void 0,o&&XY(n[0],n[1],o)&&(s=a<3?void 0:s,a=1),t=Object(t);++r<a;){var l=n[r];l&&e(t,l,r,s)}return t})}var QY=JY,eU=Jb,tU=QY,nU=tU(function(e,t,n,r){eU(e,t,n,r)}),iU=nU,rU=Nb,aU=c0,sU=KY,oU=iU,lU=aU(function(e){return e.push(void 0,sU),rU(oU,void 0,e)}),oc=lU;function cU(e){return e&&e.length?e[0]:void 0}var t5=cU;function dU(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var po=dU;const uU=e=>Object.prototype.toString.call(e).slice(8,-1),mo=e=>yL(e)&&!isNaN(e.getTime()),Mr=e=>uU(e)==="Object",n5=X4,i5=(e,t)=>MH(t,n=>X4(e,n)),kt=(e,t,n="0")=>{for(e=e!=null?String(e):"",t=t||2;e.length<t;)e=`${n}${e}`;return e},wi=e=>Array.isArray(e),Br=e=>wi(e)&&e.length>0,Mu=e=>e==null?null:document&&or(e)?document.querySelector(e):e.$el??e,ua=(e,t,n,r=void 0)=>{e.removeEventListener(t,n,r)},ha=(e,t,n,r=void 0)=>(e.addEventListener(t,n,r),()=>ua(e,t,n,r)),Bu=(e,t)=>!!e&&!!t&&(e===t||e.contains(t)),Eu=(e,t)=>{(e.key===" "||e.key==="Enter")&&(t(e),e.preventDefault())},r5=(e,...t)=>{const n={};let r;for(r in e)t.includes(r)||(n[r]=e[r]);return n},a5=(e,t)=>{const n={};return t.forEach(r=>{r in e&&(n[r]=e[r])}),n};function hU(e,t,n){return Math.min(Math.max(e,t),n)}var Du={},fU={get exports(){return Du},set exports(e){Du=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){if(r===null||r===!0||r===!1)return NaN;var a=Number(r);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}e.exports=t.default})(fU,Du);const pU=$4(Du);var Ou={},mU={get exports(){return Ou},set exports(e){Ou=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){var a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),r.getTime()-a.getTime()}e.exports=t.default})(mU,Ou);const s5=$4(Ou);function gU(e,t){var n=_U(t);return n.formatToParts?bU(n,e):vU(n,e)}var yU={year:0,month:1,day:2,hour:3,minute:4,second:5};function bU(e,t){try{for(var n=e.formatToParts(t),r=[],a=0;a<n.length;a++){var s=yU[n[a].type];s>=0&&(r[s]=parseInt(n[a].value,10))}return r}catch(o){if(o instanceof RangeError)return[NaN];throw o}}function vU(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var u0={};function _U(e){if(!u0[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")),n=t==="06/25/2014, 00:00:00"||t==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";u0[e]=n?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 u0[e]}function o5(e,t,n,r,a,s,o){var l=new Date(0);return l.setUTCFullYear(e,t,n),l.setUTCHours(r,a,s,o),l}var l5=36e5,wU=6e4,h0={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function kU(e,t,n){var r,a;if(!e||(r=h0.timezoneZ.exec(e),r))return 0;var s;if(r=h0.timezoneHH.exec(e),r)return s=parseInt(r[1],10),c5(s)?-(s*l5):NaN;if(r=h0.timezoneHHMM.exec(e),r){s=parseInt(r[1],10);var o=parseInt(r[2],10);return c5(s,o)?(a=Math.abs(s)*l5+o*wU,s>0?-a:a):NaN}if(SU(e)){t=new Date(t||Date.now());var l=CU(t),d=f0(l,e),h=xU(t,d,e);return-h}return NaN}function CU(e){return o5(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function f0(e,t){var n=gU(e,t),r=o5(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),a=e.getTime(),s=a%1e3;return a-=s>=0?s:1e3+s,r-a}function xU(e,t,n){var r=e.getTime(),a=r-t,s=f0(new Date(a),n);if(t===s)return t;a-=s-t;var o=f0(new Date(a),n);return s===o?s:Math.max(s,o)}function c5(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var d5={};function SU(e){if(d5[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),d5[e]=!0,!0}catch{return!1}}var MU=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const BU=MU;var p0=36e5,u5=6e4,EU=2,Nn={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:BU};function DU(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 n=t||{},r=n.additionalDigits==null?EU:pU(n.additionalDigits);if(r!==2&&r!==1&&r!==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 a=OU(e),s=VU(a.date,r),o=s.year,l=s.restDateString,d=$U(l,o);if(isNaN(d))return new Date(NaN);if(d){var h=d.getTime(),f=0,m;if(a.time&&(f=TU(a.time),isNaN(f)))return new Date(NaN);if(a.timeZone||n.timeZone){if(m=kU(a.timeZone||n.timeZone,new Date(h+f)),isNaN(m))return new Date(NaN)}else m=s5(new Date(h+f)),m=s5(new Date(h+f+m));return new Date(h+f+m)}else return new Date(NaN)}function OU(e){var t={},n=Nn.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=Nn.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){var a=Nn.timeZone.exec(r);a?(t.time=r.replace(a[1],""),t.timeZone=a[1].trim()):t.time=r}return t}function VU(e,t){var n=Nn.YYY[t],r=Nn.YYYYY[t],a;if(a=Nn.YYYY.exec(e)||r.exec(e),a){var s=a[1];return{year:parseInt(s,10),restDateString:e.slice(s.length)}}if(a=Nn.YY.exec(e)||n.exec(e),a){var o=a[1];return{year:parseInt(o,10)*100,restDateString:e.slice(o.length)}}return{year:null}}function $U(e,t){if(t===null)return null;var n,r,a,s;if(e.length===0)return r=new Date(0),r.setUTCFullYear(t),r;if(n=Nn.MM.exec(e),n)return r=new Date(0),a=parseInt(n[1],10)-1,p5(t,a)?(r.setUTCFullYear(t,a),r):new Date(NaN);if(n=Nn.DDD.exec(e),n){r=new Date(0);var o=parseInt(n[1],10);return NU(t,o)?(r.setUTCFullYear(t,0,o),r):new Date(NaN)}if(n=Nn.MMDD.exec(e),n){r=new Date(0),a=parseInt(n[1],10)-1;var l=parseInt(n[2],10);return p5(t,a,l)?(r.setUTCFullYear(t,a,l),r):new Date(NaN)}if(n=Nn.Www.exec(e),n)return s=parseInt(n[1],10)-1,m5(t,s)?h5(t,s):new Date(NaN);if(n=Nn.WwwD.exec(e),n){s=parseInt(n[1],10)-1;var d=parseInt(n[2],10)-1;return m5(t,s,d)?h5(t,s,d):new Date(NaN)}return null}function TU(e){var t,n,r;if(t=Nn.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),m0(n)?n%24*p0:NaN;if(t=Nn.HHMM.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),m0(n,r)?n%24*p0+r*u5:NaN;if(t=Nn.HHMMSS.exec(e),t){n=parseInt(t[1],10),r=parseInt(t[2],10);var a=parseFloat(t[3].replace(",","."));return m0(n,r,a)?n%24*p0+r*u5+a*1e3:NaN}return null}function h5(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var a=r.getUTCDay()||7,s=t*7+n+1-a;return r.setUTCDate(r.getUTCDate()+s),r}var IU=[31,28,31,30,31,30,31,31,30,31,30,31],AU=[31,29,31,30,31,30,31,31,30,31,30,31];function f5(e){return e%400===0||e%4===0&&e%100!==0}function p5(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;var r=f5(e);if(r&&n>AU[t]||!r&&n>IU[t])return!1}return!0}function NU(e,t){if(t<1)return!1;var n=f5(e);return!(n&&t>366||!n&&t>365)}function m5(e,t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function m0(e,t,n){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}function En(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Vu(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vu=function(n){return typeof n}:Vu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vu(e)}function Er(e){En(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Vu(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 go(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 LU={};function g0(){return LU}function is(e,t){var n,r,a,s,o,l,d,h;En(1,arguments);var f=g0(),m=go((n=(r=(a=(s=t==null?void 0:t.weekStartsOn)!==null&&s!==void 0?s:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&r!==void 0?r:(d=f.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&n!==void 0?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=Er(e),y=g.getDay(),_=(y<m?7:0)+y-m;return g.setDate(g.getDate()-_),g.setHours(0,0,0,0),g}function g5(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 zU=6048e5;function PU(e,t,n){En(2,arguments);var r=is(e,n),a=is(t,n),s=r.getTime()-g5(r),o=a.getTime()-g5(a);return Math.round((s-o)/zU)}function FU(e){En(1,arguments);var t=Er(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function RU(e){En(1,arguments);var t=Er(e);return t.setDate(1),t.setHours(0,0,0,0),t}function HU(e,t){return En(1,arguments),PU(FU(e),RU(e),t)+1}function WU(e,t){var n,r,a,s,o,l,d,h;En(1,arguments);var f=Er(e),m=f.getFullYear(),g=g0(),y=go((n=(r=(a=(s=t==null?void 0:t.firstWeekContainsDate)!==null&&s!==void 0?s:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:g.firstWeekContainsDate)!==null&&r!==void 0?r:(d=g.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=new Date(0);_.setFullYear(m+1,0,y),_.setHours(0,0,0,0);var w=is(_,t),k=new Date(0);k.setFullYear(m,0,y),k.setHours(0,0,0,0);var C=is(k,t);return f.getTime()>=w.getTime()?m+1:f.getTime()>=C.getTime()?m:m-1}function YU(e,t){var n,r,a,s,o,l,d,h;En(1,arguments);var f=g0(),m=go((n=(r=(a=(s=t==null?void 0:t.firstWeekContainsDate)!==null&&s!==void 0?s:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:f.firstWeekContainsDate)!==null&&r!==void 0?r:(d=f.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1),g=WU(e,t),y=new Date(0);y.setFullYear(g,0,m),y.setHours(0,0,0,0);var _=is(y,t);return _}var UU=6048e5;function jU(e,t){En(1,arguments);var n=Er(e),r=is(n,t).getTime()-YU(n,t).getTime();return Math.round(r/UU)+1}function $u(e){return En(1,arguments),is(e,{weekStartsOn:1})}function qU(e){En(1,arguments);var t=Er(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var a=$u(r),s=new Date(0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);var o=$u(s);return t.getTime()>=a.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function GU(e){En(1,arguments);var t=qU(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=$u(n);return r}var KU=6048e5;function ZU(e){En(1,arguments);var t=Er(e),n=$u(t).getTime()-GU(t).getTime();return Math.round(n/KU)+1}function Ln(e,t){En(2,arguments);var n=Er(e),r=go(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function Tu(e,t){En(2,arguments);var n=Er(e),r=go(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var a=n.getDate(),s=new Date(n.getTime());s.setMonth(n.getMonth()+r+1,0);var o=s.getDate();return a>=o?s:(n.setFullYear(s.getFullYear(),s.getMonth(),a),n)}function y5(e,t){En(2,arguments);var n=go(t);return Tu(e,n*12)}const XU={daily:["year","month","day"],weekly:["year","month","week"],monthly:["year","month"]};function JU({monthComps:e,prevMonthComps:t,nextMonthComps:n},r){const a=[],{firstDayOfWeek:s,firstWeekday:o,isoWeeknumbers:l,weeknumbers:d,numDays:h,numWeeks:f}=e,m=o+(o<s?Dn:0)-s;let g=!0,y=!1,_=!1,w=0;const k=new Intl.DateTimeFormat(r.id,{weekday:"long",year:"numeric",month:"short",day:"numeric"});let C=t.numDays-m+1,M=t.numDays-C+1,E=Math.floor((C-1)/Dn+1),x=1,$=t.numWeeks,I=1,P=t.month,T=t.year;const W=new Date,U=W.getDate(),ee=W.getMonth()+1,Y=W.getFullYear();for(let ne=1;ne<=Mj;ne++){for(let le=1,J=s;le<=Dn;le++,J+=J===Dn?1-Dn:1){g&&J===o&&(C=1,M=e.numDays,E=Math.floor((C-1)/Dn+1),x=Math.floor((h-C)/Dn+1),$=1,I=f,P=e.month,T=e.year,g=!1,y=!0);const pe=r.getDateFromParams(T,P,C,0,0,0,0),Q=r.getDateFromParams(T,P,C,12,0,0,0),me=r.getDateFromParams(T,P,C,23,59,59,999),ge=pe,z=`${kt(T,4)}-${kt(P,2)}-${kt(C,2)}`,fe=le,he=Dn-le,De=d[ne-1],Oe=l[ne-1],we=C===U&&P===ee&&T===Y,Ne=y&&C===1,it=y&&C===h,Pe=ne===1,de=ne===f,xe=le===1,Ie=le===Dn,Fe=A5(T,P,C);a.push({locale:r,id:z,position:++w,label:C.toString(),ariaLabel:k.format(new Date(T,P-1,C)),day:C,dayFromEnd:M,weekday:J,weekdayPosition:fe,weekdayPositionFromEnd:he,weekdayOrdinal:E,weekdayOrdinalFromEnd:x,week:$,weekFromEnd:I,weekPosition:ne,weeknumber:De,isoWeeknumber:Oe,month:P,year:T,date:ge,startDate:pe,endDate:me,noonDate:Q,dayIndex:Fe,isToday:we,isFirstDay:Ne,isLastDay:it,isDisabled:!y,isFocusable:!y,isFocused:!1,inMonth:y,inPrevMonth:g,inNextMonth:_,onTop:Pe,onBottom:de,onLeft:xe,onRight:Ie,classes:[`id-${z}`,`day-${C}`,`day-from-end-${M}`,`weekday-${J}`,`weekday-position-${fe}`,`weekday-ordinal-${E}`,`weekday-ordinal-from-end-${x}`,`week-${$}`,`week-from-end-${I}`,{"is-today":we,"is-first-day":Ne,"is-last-day":it,"in-month":y,"in-prev-month":g,"in-next-month":_,"on-top":Pe,"on-bottom":de,"on-left":xe,"on-right":Ie}]}),y&&it?(y=!1,_=!0,C=1,M=h,E=1,x=Math.floor((h-C)/Dn+1),$=1,I=n.numWeeks,P=n.month,T=n.year):(C++,M--,E=Math.floor((C-1)/Dn+1),x=Math.floor((h-C)/Dn+1))}$++,I--}return a}function QU(e,t,n,r){const a=e.reduce((s,o,l)=>{const d=Math.floor(l/7);let h=s[d];return h||(h={id:`week-${d+1}`,title:"",week:o.week,weekPosition:o.weekPosition,weeknumber:o.weeknumber,isoWeeknumber:o.isoWeeknumber,weeknumberDisplay:t?o.weeknumber:n?o.isoWeeknumber:void 0,days:[]},s[d]=h),h.days.push(o),s},Array(e.length/Dn));return a.forEach(s=>{const o=s.days[0],l=s.days[s.days.length-1];o.month===l.month?s.title=`${r.formatDate(o.date,"MMMM YYYY")}`:o.year===l.year?s.title=`${r.formatDate(o.date,"MMM")} - ${r.formatDate(l.date,"MMM YYYY")}`:s.title=`${r.formatDate(o.date,"MMM YYYY")} - ${r.formatDate(l.date,"MMM YYYY")}`}),a}function ej(e,t){return e.days.map(n=>({label:t.formatDate(n.date,t.masks.weekdays),weekday:n.weekday}))}function tj(e,t){return`${t}.${kt(e,2)}`}function b5(e,t,n){return a5(n.getDateParts(n.toDate(e)),XU[t])}function v5({day:e,week:t,month:n,year:r},a,s,o){if(s==="daily"&&e){const l=new Date(r,n-1,e),d=Ln(l,a);return{day:d.getDate(),month:d.getMonth()+1,year:d.getFullYear()}}else if(s==="weekly"&&t){const d=o.getMonthParts(n,r).firstDayOfMonth,h=Ln(d,(t-1+a)*7),f=o.getDateParts(h);return{week:f.week,month:f.month,year:f.year}}else{const l=new Date(r,n-1,1),d=Tu(l,a);return{month:d.getMonth()+1,year:d.getFullYear()}}}function lr(e){return e!=null&&e.month!=null&&e.year!=null}function y0(e,t){return!lr(e)||!lr(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 Iu(e,t){return!lr(e)||!lr(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 nj(e,t,n){return(e||!1)&&!y0(e,t)&&!Iu(e,n)}function ij(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 rj(e,t,n,r){if(!lr(e)||!lr(t))return[];const a=[];for(;!Iu(e,t);)a.push(e),e=v5(e,1,n,r);return a}function _5(e){const{day:t,week:n,month:r,year:a}=e;let s=`${a}-${kt(r,2)}`;return n&&(s=`${s}-w${n}`),t&&(s=`${s}-${kt(t,2)}`),s}function aj(e,t){const{month:n,year:r,showWeeknumbers:a,showIsoWeeknumbers:s}=e,o=new Date(r,n-1,15),l=t.getMonthParts(n,r),d=t.getPrevMonthParts(n,r),h=t.getNextMonthParts(n,r),f=JU({monthComps:l,prevMonthComps:d,nextMonthComps:h},t),m=QU(f,a,s,t),g=ej(m[0],t);return{id:_5(e),month:n,year:r,monthTitle:t.formatDate(o,t.masks.title),shortMonthLabel:t.formatDate(o,"MMM"),monthLabel:t.formatDate(o,"MMMM"),shortYearLabel:r.toString().substring(2),yearLabel:r.toString(),monthComps:l,prevMonthComps:d,nextMonthComps:h,days:f,weeks:m,weekdays:g}}function sj(e,t){const{day:n,week:r,view:a,trimWeeks:s}=e,o={...t,...e,title:"",viewDays:[],viewWeeks:[]};switch(a){case"daily":{let l=o.days.find(h=>h.inMonth);n?l=o.days.find(h=>h.day===n&&h.inMonth)||l:r&&(l=o.days.find(h=>h.week===r&&h.inMonth));const d=o.weeks[l.week-1];o.viewWeeks=[d],o.viewDays=[l],o.week=l.week,o.weekTitle=d.title,o.day=l.day,o.dayTitle=l.ariaLabel,o.title=o.dayTitle;break}case"weekly":{o.week=r||1;const l=o.weeks[o.week-1];o.viewWeeks=[l],o.viewDays=l.days,o.weekTitle=l.title,o.title=o.weekTitle;break}default:{o.title=o.monthTitle,o.viewWeeks=o.weeks.slice(0,s?o.monthComps.numWeeks:void 0),o.viewDays=o.days;break}}return o}class w5{constructor(t,n,r){Ee(this,"keys",[]),Ee(this,"store",{}),this.size=t,this.createKey=n,this.createItem=r}get(...t){const n=this.createKey(...t);return this.store[n]}getOrSet(...t){const n=this.createKey(...t);if(this.store[n])return this.store[n];const r=this.createItem(...t);if(this.keys.length>=this.size){const a=this.keys.shift();a!=null&&delete this.store[a]}return this.keys.push(n),this.store[n]=r,r}}class yo{constructor(t,n=new Au){Ee(this,"order"),Ee(this,"locale"),Ee(this,"start",null),Ee(this,"end",null),Ee(this,"repeat",null);var r;this.locale=n;const{start:a,end:s,span:o,order:l,repeat:d}=t;mo(a)&&(this.start=n.getDateParts(a)),mo(s)?this.end=n.getDateParts(s):this.start!=null&&o&&(this.end=n.getDateParts(Ln(this.start.date,o-1))),this.order=l??0,d&&(this.repeat=new Nu({from:(r=this.start)==null?void 0:r.date,...d},{locale:this.locale}))}static fromMany(t,n){return(wi(t)?t:[t]).filter(r=>r).map(r=>yo.from(r,n))}static from(t,n){if(t instanceof yo)return t;const r={start:null,end:null};return t!=null&&(wi(t)?(r.start=t[0]??null,r.end=t[1]??null):Mr(t)?Object.assign(r,t):(r.start=t,r.end=t)),r.start!=null&&(r.start=new Date(r.start)),r.end!=null&&(r.end=new Date(r.end)),new yo(r,n)}get opts(){const{order:t,locale:n}=this;return{order:t,locale:n}}get hasRepeat(){return!!this.repeat}get isSingleDay(){const{start:t,end:n}=this;return t&&n&&t.year===n.year&&t.month===n.month&&t.day===n.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 n,r;return((n=this.start)==null?void 0:n.dayIndex)===t.dayIndex||!!((r=this.repeat)!=null&&r.passes(t))}intersectsDay(t){return this.intersectsDayRange(t,t)}intersectsRange(t){var n,r;return this.intersectsDayRange(((n=t.start)==null?void 0:n.dayIndex)??-1/0,((r=t.end)==null?void 0:r.dayIndex)??1/0)}intersectsDayRange(t,n){return!(this.start&&this.start.dayIndex>n||this.end&&this.end.dayIndex<t)}}class oj{constructor(){Ee(this,"records",{})}render(t,n,r){var a,s,o,l;let d=null;const h=r[0].dayIndex,f=r[r.length-1].dayIndex;return n.hasRepeat?r.forEach(m=>{var g,y;if(n.startsOnDay(m)){const _=n.daySpan<1/0?n.daySpan:1;d={startDay:m.dayIndex,startTime:((g=n.start)==null?void 0:g.time)??0,endDay:m.dayIndex+_-1,endTime:((y=n.end)==null?void 0:y.time)??Lu},this.getRangeRecords(t).push(d)}}):n.intersectsDayRange(h,f)&&(d={startDay:((a=n.start)==null?void 0:a.dayIndex)??-1/0,startTime:((s=n.start)==null?void 0:s.time)??-1/0,endDay:((o=n.end)==null?void 0:o.dayIndex)??1/0,endTime:((l=n.end)==null?void 0:l.time)??1/0},this.getRangeRecords(t).push(d)),d}getRangeRecords(t){let n=this.records[t.key];return n||(n={ranges:[],data:t},this.records[t.key]=n),n.ranges}getCell(t,n){return this.getCells(n).find(s=>s.data.key===t)}cellExists(t,n){const r=this.records[t];return r==null?!1:r.ranges.some(a=>a.startDay<=n&&a.endDay>=n)}getCells(t){const n=Object.values(this.records),r=[],{dayIndex:a}=t;return n.forEach(({data:s,ranges:o})=>{o.filter(l=>l.startDay<=a&&l.endDay>=a).forEach(l=>{const d=a===l.startDay,h=a===l.endDay,f=d?l.startTime:0,m=new Date(t.startDate.getTime()+f),g=h?l.endTime:Lu,y=new Date(t.endDate.getTime()+g),_=f===0&&g===Lu,w=s.order||0;r.push({...l,data:s,onStart:d,onEnd:h,startTime:f,startDate:m,endTime:g,endDate:y,allDay:_,order:w})})}),r.sort((s,o)=>s.order-o.order),r}}const Dr={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"},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"}};Dr.en=Dr["en-US"],Dr.es=Dr["es-ES"],Dr.no=Dr.nb,Dr.zh=Dr["zh-CN"];const lj=Object.entries(Dr).reduce((e,[t,{dow:n,L:r}])=>(e[t]={id:t,firstDayOfWeek:n,masks:{L:r}},e),{}),cj={componentPrefix:"V",color:"blue",isDark:!1,navVisibility:"click",titlePosition:"center",transition:"slide-h",touch:{maxSwipeTime:300,minHorizontalSwipeDistance:60,maxVerticalSwipeDistance:80},masks:{title:"MMMM YYYY",weekdays:"W",navMonths:"MMM",hours:"h A",input:["L","YYYY-MM-DD","YYYY/MM/DD"],inputDateTime:["L h:mm A","YYYY-MM-DD h:mm A","YYYY/MM/DD h:mm A"],inputDateTime24hr:["L HH:mm","YYYY-MM-DD HH:mm","YYYY/MM/DD HH:mm"],inputTime:["h:mm A"],inputTime24hr:["HH:mm"],dayPopover:"WWW, MMM D, YYYY",data:["L","YYYY-MM-DD","YYYY/MM/DD"],model:"iso",iso:"YYYY-MM-DDTHH:mm:ss.SSSZ"},locales:lj,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",isInteractive:!0}}},b0=i.reactive(cj),dj=i.computed(()=>KH(b0.locales,e=>(e.masks=oc(e.masks,b0.masks),e))),fa=e=>typeof window<"u"&&n5(window.__vcalendar__,e)?ns(window.__vcalendar__,e):ns(b0,e),uj=12,hj=5;function fj(e,t){const n=new Intl.DateTimeFormat().resolvedOptions().locale;let r;or(e)?r=e:n5(e,"id")&&(r=e.id),r=(r||n).toLowerCase();const a=Object.keys(t),s=d=>a.find(h=>h.toLowerCase()===d);r=s(r)||s(r.substring(0,2))||n;const o={...t["en-IE"],...t[r],id:r,monthCacheSize:uj,pageCacheSize:hj};return Mr(e)?oc(e,o):o}class Au{constructor(t=void 0,n){Ee(this,"id"),Ee(this,"daysInWeek"),Ee(this,"firstDayOfWeek"),Ee(this,"masks"),Ee(this,"timezone"),Ee(this,"hourLabels"),Ee(this,"dayNames"),Ee(this,"dayNamesShort"),Ee(this,"dayNamesShorter"),Ee(this,"dayNamesNarrow"),Ee(this,"monthNames"),Ee(this,"monthNamesShort"),Ee(this,"relativeTimeNames"),Ee(this,"amPm",["am","pm"]),Ee(this,"monthCache"),Ee(this,"pageCache");const{id:r,firstDayOfWeek:a,masks:s,monthCacheSize:o,pageCacheSize:l}=fj(t,dj.value);this.monthCache=new w5(o,Aj,Nj),this.pageCache=new w5(l,_5,aj),this.id=r,this.daysInWeek=Dn,this.firstDayOfWeek=hU(a,1,Dn),this.masks=s,this.timezone=n||void 0,this.hourLabels=this.getHourLabels(),this.dayNames=k0("long",this.id),this.dayNamesShort=k0("short",this.id),this.dayNamesShorter=this.dayNamesShort.map(d=>d.substring(0,2)),this.dayNamesNarrow=k0("narrow",this.id),this.monthNames=P5("long",this.id),this.monthNamesShort=P5("short",this.id),this.relativeTimeNames=Pj(this.id)}formatDate(t,n){return Yj(t,n,this)}parseDate(t,n){return F5(t,n,this)}toDate(t,n={}){const r=new Date(NaN);let a=r;const{fillDate:s,mask:o,patch:l,rules:d}=n;if(Yi(t)?(n.type="number",a=new Date(+t)):or(t)?(n.type="string",a=t?F5(t,o||"iso",this):r):mo(t)?(n.type="date",a=new Date(t.getTime())):_0(t)&&(n.type="object",a=this.getDateFromParts(t)),a&&(l||d)){let h=this.getDateParts(a);if(l&&s!=null){const f=this.getDateParts(this.toDate(s));h=this.getDateParts(this.toDate({...f,...a5(h,Sj[l])}))}d&&(h=Wj(h,d)),a=this.getDateFromParts(h)}return a||r}toDateOrNull(t,n={}){const r=this.toDate(t,n);return isNaN(r.getTime())?null:r}fromDate(t,{type:n,mask:r}={}){switch(n){case"number":return t?t.getTime():NaN;case"string":return t?this.formatDate(t,r||"iso"):"";case"object":return t?this.getDateParts(t):null;default:return t?new Date(t):null}}range(t){return yo.from(t,this)}ranges(t){return yo.fromMany(t,this)}getDateParts(t){return Ij(t,this)}getDateFromParts(t){return L5(t,this.timezone)}getDateFromParams(t,n,r,a,s,o,l){return this.getDateFromParts({year:t,month:n,day:r,hours:a,minutes:s,seconds:o,milliseconds:l})}getPage(t){const n=this.pageCache.getOrSet(t,this);return sj(t,n)}getMonthParts(t,n){const{firstDayOfWeek:r}=this;return this.monthCache.getOrSet(t,n,r)}getThisMonthParts(){const t=new Date;return this.getMonthParts(t.getMonth()+1,t.getFullYear())}getPrevMonthParts(t,n){return t===1?this.getMonthParts(12,n-1):this.getMonthParts(t-1,n)}getNextMonthParts(t,n){return t===12?this.getMonthParts(1,n+1):this.getMonthParts(t+1,n)}getHourLabels(){return zj().map(t=>this.formatDate(t,this.masks.hours))}getDayId(t){return this.formatDate(t,"YYYY-MM-DD")}}var bo=(e=>(e.Any="any",e.All="all",e))(bo||{}),k5=(e=>(e.Days="days",e.Weeks="weeks",e.Months="months",e.Years="years",e))(k5||{}),C5=(e=>(e.Days="days",e.Weekdays="weekdays",e.Weeks="weeks",e.Months="months",e.Years="years",e))(C5||{}),x5=(e=>(e.OrdinalWeekdays="ordinalWeekdays",e))(x5||{});class pj{constructor(t,n,r){Ee(this,"validated",!0),this.type=t,this.interval=n,this.from=r,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:n}=t;switch(this.type){case"days":return w0(this.from.date,n)%this.interval===0;case"weeks":return $j(this.from.date,n)%this.interval===0;case"months":return Tj(this.from.date,n)%this.interval===0;case"years":return N5(this.from.date,n)%this.interval===0;default:return!1}}}class vo{constructor(t,n,r,a){Ee(this,"components",[]),this.type=t,this.validator=r,this.getter=a,this.components=this.normalizeComponents(n)}static create(t,n){switch(t){case"days":return new mj(n);case"weekdays":return new gj(n);case"weeks":return new yj(n);case"months":return new bj(n);case"years":return new vj(n)}}normalizeComponents(t){if(this.validator(t))return[t];if(!wi(t))return[];const n=[];return t.forEach(r=>{if(!this.validator(r)){console.error(`Component value ${r} in invalid for "${this.type}" rule. This rule will be skipped.`);return}n.push(r)}),n}passes(t){return this.getter(t).some(a=>this.components.includes(a))}}class mj extends vo{constructor(t){super("days",t,kj,({day:n,dayFromEnd:r})=>[n,-r])}}class gj extends vo{constructor(t){super("weekdays",t,v0,({weekday:n})=>[n])}}class yj extends vo{constructor(t){super("weeks",t,Cj,({week:n,weekFromEnd:r})=>[n,-r])}}class bj extends vo{constructor(t){super("months",t,xj,({month:n})=>[n])}}class vj extends vo{constructor(t){super("years",t,Yi,({year:n})=>[n])}}class _j{constructor(t,n){Ee(this,"components"),this.type=t,this.components=this.normalizeComponents(n)}normalizeArrayConfig(t){const n=[];return t.forEach((r,a)=>{if(Yi(r)){if(a===0)return;if(!S5(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(!v0(r)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}n.push([t[0],r])}else wi(r)&&n.push(...this.normalizeArrayConfig(r))}),n}normalizeComponents(t){const n=[];return t.forEach((r,a)=>{if(Yi(r)){if(a===0)return;if(!S5(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(!v0(r)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}n.push([t[0],r])}else wi(r)&&n.push(...this.normalizeArrayConfig(r))}),n}passes(t){const{weekday:n,weekdayOrdinal:r,weekdayOrdinalFromEnd:a}=t;return this.components.some(([s,o])=>(s===r||s===-a)&&n===o)}}class wj{constructor(t){Ee(this,"type","function"),Ee(this,"validated",!0),this.fn=t,Qa(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 Nu{constructor(t,n={},r){Ee(this,"validated",!0),Ee(this,"config"),Ee(this,"type",bo.Any),Ee(this,"from"),Ee(this,"until"),Ee(this,"rules",[]),Ee(this,"locale",new Au),this.parent=r,n.locale&&(this.locale=n.locale),this.config=t,Qa(t)?(this.type=bo.All,this.rules=[new wj(t)]):wi(t)?(this.type=bo.Any,this.rules=t.map(a=>new Nu(a,n,this))):Mr(t)?(this.type=bo.All,this.from=t.from?this.locale.getDateParts(t.from):r==null?void 0:r.from,this.until=t.until?this.locale.getDateParts(t.until):r==null?void 0:r.until,this.rules=this.getObjectRules(t)):(console.error("Rule group configuration must be an object or an array."),this.validated=!1)}getObjectRules(t){const n=[];if(t.every&&(or(t.every)&&(t.every=[1,`${t.every}s`]),wi(t.every))){const[r=1,a=k5.Days]=t.every;n.push(new pj(a,r,this.from))}return Object.values(C5).forEach(r=>{r in t&&n.push(vo.create(r,t[r]))}),Object.values(x5).forEach(r=>{r in t&&n.push(new _j(r,t[r]))}),t.on!=null&&(wi(t.on)||(t.on=[t.on]),n.push(new Nu(t.on,{locale:this.locale},this.parent))),n}passes(t){return this.validated?this.from&&t.dayIndex<=this.from.dayIndex||this.until&&t.dayIndex>=this.until.dayIndex?!1:this.type===bo.Any?this.rules.some(n=>n.passes(t)):this.rules.every(n=>n.passes(t)):!0}}function kj(e){return Yi(e)?e>=1&&e<=31:!1}function v0(e){return Yi(e)?e>=1&&e<=7:!1}function Cj(e){return Yi(e)?e>=-6&&e<=-1||e>=1&&e<=6:!1}function xj(e){return Yi(e)?e>=1&&e<=12:!1}function S5(e){return!(!Yi(e)||e<-5||e>5||e===0)}const Sj={dateTime:["year","month","day","hours","minutes","seconds","milliseconds"],date:["year","month","day"],time:["hours","minutes","seconds","milliseconds"]},Dn=7,Mj=6,M5=1e3,B5=M5*60,E5=B5*60,Lu=E5*24,Bj=[31,28,31,30,31,30,31,31,30,31,30,31],Ej=["L","iso"],lc={milliseconds:[0,999,3],seconds:[0,59,2],minutes:[0,59,2],hours:[0,23,2]},D5=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,Dj=/\[([^]*?)\]/gm,O5={D(e){return e.day},DD(e){return kt(e.day,2)},d(e){return e.weekday-1},dd(e){return kt(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 kt(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 kt(e.year,4)},h(e){return e.hours%12||12},hh(e){return kt(e.hours%12||12,2)},H(e){return e.hours},HH(e){return kt(e.hours,2)},m(e){return e.minutes},mm(e){return kt(e.minutes,2)},s(e){return e.seconds},ss(e){return kt(e.seconds,2)},S(e){return Math.round(e.milliseconds/100)},SS(e){return kt(Math.round(e.milliseconds/10),2)},SSS(e){return kt(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?"-":"+"}${kt(Math.floor(Math.abs(t)/60),2)}`},ZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${kt(Math.floor(Math.abs(t)/60)*100+Math.abs(t)%60,4)}`},ZZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${kt(Math.floor(Math.abs(t)/60),2)}:${kt(Math.abs(t)%60,2)}`}},pa=/\d\d?/,Oj=/\d{3}/,Vj=/\d{4}/,cc=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,V5=()=>{},$5=e=>(t,n,r)=>{const a=r[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~a&&(t.month=a)},Mt={D:[pa,(e,t)=>{e.day=t}],Do:[new RegExp(pa.source+cc.source),(e,t)=>{e.day=parseInt(t,10)}],d:[pa,V5],W:[cc,V5],M:[pa,(e,t)=>{e.month=t-1}],MMM:[cc,$5("monthNamesShort")],MMMM:[cc,$5("monthNames")],YY:[pa,(e,t)=>{const r=+new Date().getFullYear().toString().substr(0,2);e.year=+`${t>68?r-1:r}${t}`}],YYYY:[Vj,(e,t)=>{e.year=t}],S:[/\d/,(e,t)=>{e.milliseconds=t*100}],SS:[/\d{2}/,(e,t)=>{e.milliseconds=t*10}],SSS:[Oj,(e,t)=>{e.milliseconds=t}],h:[pa,(e,t)=>{e.hours=t}],m:[pa,(e,t)=>{e.minutes=t}],s:[pa,(e,t)=>{e.seconds=t}],a:[cc,(e,t,n)=>{const r=t.toLowerCase();r===n.amPm[0]?e.isPm=!1:r===n.amPm[1]&&(e.isPm=!0)}],Z:[/[^\s]*?[+-]\d\d:?\d\d|[^\s]*?Z?/,(e,t)=>{t==="Z"&&(t="+00:00");const n=`${t}`.match(/([+-]|\d\d)/gi);if(n){const r=+n[1]*60+parseInt(n[2],10);e.timezoneOffset=n[0]==="+"?r:-r}}]};Mt.DD=Mt.D,Mt.dd=Mt.d,Mt.WWWW=Mt.WWW=Mt.WW=Mt.W,Mt.MM=Mt.M,Mt.mm=Mt.m,Mt.hh=Mt.H=Mt.HH=Mt.h,Mt.ss=Mt.s,Mt.A=Mt.a,Mt.ZZZZ=Mt.ZZZ=Mt.ZZ=Mt.Z;function T5(e,t){return(Br(e)&&e||[or(e)&&e||"YYYY-MM-DD"]).map(n=>Ej.reduce((r,a)=>r.replace(a,t.masks[a]||""),n))}function _0(e){return Mr(e)&&"year"in e&&"month"in e&&"day"in e}function I5(e,t=1){const n=e.getDay()+1,r=n>=t?t-n:-(7-(t-n));return Ln(e,r)}function A5(e,t,n){const r=Date.UTC(e,t-1,n);return w0(new Date(0),new Date(r))}function w0(e,t){return Math.round((t.getTime()-e.getTime())/Lu)}function $j(e,t){return Math.ceil(w0(I5(e),I5(t))/7)}function N5(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}function Tj(e,t){return N5(e,t)*12+(t.getMonth()-e.getMonth())}function L5(e,t=""){const n=new Date,{year:r=n.getFullYear(),month:a=n.getMonth()+1,day:s=n.getDate(),hours:o=0,minutes:l=0,seconds:d=0,milliseconds:h=0}=e;if(t){const f=`${kt(r,4)}-${kt(a,2)}-${kt(s,2)}T${kt(o,2)}:${kt(l,2)}:${kt(d,2)}.${kt(h,3)}`;return DU(f,{timeZone:t})}return new Date(r,a-1,s,o,l,d,h)}function Ij(e,t){let n=new Date(e.getTime());t.timezone&&(n=new Date(e.toLocaleString("en-US",{timeZone:t.timezone})),n.setMilliseconds(e.getMilliseconds()));const r=n.getMilliseconds(),a=n.getSeconds(),s=n.getMinutes(),o=n.getHours(),l=r+a*M5+s*B5+o*E5,d=n.getMonth()+1,h=n.getFullYear(),f=t.getMonthParts(d,h),m=n.getDate(),g=f.numDays-m+1,y=n.getDay()+1,_=Math.floor((m-1)/7+1),w=Math.floor((f.numDays-m)/7+1),k=Math.ceil((m+Math.abs(f.firstWeekday-f.firstDayOfWeek))/7),C=f.numWeeks-k+1,M=f.weeknumbers[k],E=A5(h,d,m);return{milliseconds:r,seconds:a,minutes:s,hours:o,time:l,day:m,dayFromEnd:g,weekday:y,weekdayOrdinal:_,weekdayOrdinalFromEnd:w,week:k,weekFromEnd:C,weeknumber:M,month:d,year:h,date:n,dateTime:n.getTime(),dayIndex:E,timezoneOffset:0,isValid:!0}}function Aj(e,t,n){return`${t}-${e}-${n}`}function Nj(e,t,n){const r=t%4===0&&t%100!==0||t%400===0,a=new Date(t,e-1,1),s=a.getDay()+1,o=e===2&&r?29:Bj[e-1],l=n-1,d=HU(a,{weekStartsOn:l}),h=[],f=[];for(let m=0;m<d;m++){const g=Ln(a,m*7);h.push(jU(g,{weekStartsOn:l})),f.push(ZU(g))}return{firstDayOfWeek:n,firstDayOfMonth:a,inLeapYear:r,firstWeekday:s,numDays:o,numWeeks:d,month:e,year:t,weeknumbers:h,isoWeeknumbers:f}}function Lj(){const e=[];for(let a=0;a<Dn;a++)e.push(L5({year:2020,month:1,day:5+a,hours:12}));return e}function k0(e,t=void 0){const n=new Intl.DateTimeFormat(t,{weekday:e});return Lj().map(r=>n.format(r))}function zj(){const e=[];for(let t=0;t<=24;t++)e.push(new Date(2e3,0,1,t));return e}function Pj(e=void 0){const t=["second","minute","hour","day","week","month","quarter","year"],n=new Intl.RelativeTimeFormat(e);return t.reduce((r,a)=>{const s=n.formatToParts(100,a);return r[a]=s[1].unit,r},{})}function z5(){const e=[];for(let t=0;t<12;t++)e.push(new Date(2e3,t,15));return e}function P5(e,t=void 0){const n=new Intl.DateTimeFormat(t,{month:e,timeZone:"UTC"});return z5().map(r=>n.format(r))}function Fj(e,t,n){return Yi(t)?t===e:wi(t)?t.includes(e):Qa(t)?t(e,n):!(t.min!=null&&t.min>e||t.max!=null&&t.max<e||t.interval!=null&&e%t.interval!==0)}function dc(e,t,n){const r=[],[a,s,o]=t;for(let l=a;l<=s;l++)(n==null||Fj(l,n,e))&&r.push({value:l,label:kt(l,o)});return r}function Rj(e,t){return{milliseconds:dc(e,lc.milliseconds,t.milliseconds),seconds:dc(e,lc.seconds,t.seconds),minutes:dc(e,lc.minutes,t.minutes),hours:dc(e,lc.hours,t.hours)}}function Hj(e,t,n,r){const s=dc(e,t,r).reduce((o,l)=>{if(l.disabled)return o;if(isNaN(o))return l.value;const d=Math.abs(o-n);return Math.abs(l.value-n)<d?l.value:o},NaN);return isNaN(s)?n:s}function Wj(e,t){const n={...e};return Object.entries(t).forEach(([r,a])=>{const s=lc[r],o=e[r];n[r]=Hj(e,s,o,a)}),n}function F5(e,t,n){return T5(t,n).map(a=>{if(typeof a!="string")throw new Error("Invalid mask");let s=e;if(s.length>1e3)return!1;let o=!0;const l={};if(a.replace(D5,f=>{if(Mt[f]){const m=Mt[f],g=s.search(m[0]);~g?s.replace(m[0],y=>(m[1](l,y,n),s=s.substr(g+y.length),y)):o=!1}return Mt[f]?"":f.slice(1,f.length-1)}),!o)return!1;const d=new Date;l.hours!=null&&(l.isPm===!0&&+l.hours!=12?l.hours=+l.hours+12:l.isPm===!1&&+l.hours==12&&(l.hours=0));let h;return l.timezoneOffset!=null?(l.minutes=+(l.minutes||0)-+l.timezoneOffset,h=new Date(Date.UTC(l.year||d.getFullYear(),l.month||0,l.day||1,l.hours||0,l.minutes||0,l.seconds||0,l.milliseconds||0))):h=n.getDateFromParts({year:l.year||d.getFullYear(),month:(l.month||0)+1,day:l.day||1,hours:l.hours||0,minutes:l.minutes||0,seconds:l.seconds||0,milliseconds:l.milliseconds||0}),h}).find(a=>a)||new Date(e)}function Yj(e,t,n){if(e==null)return"";let r=T5(t,n)[0];/Z$/.test(r)&&(n.timezone="utc");const a=[];r=r.replace(Dj,(o,l)=>(a.push(l),"??"));const s=n.getDateParts(e);return r=r.replace(D5,o=>o in O5?O5[o](s,n):o.slice(1,o.length-1)),r.replace(/\?\?/g,()=>a.shift())}let Uj=0;class R5{constructor(t,n,r){Ee(this,"key",""),Ee(this,"hashcode",""),Ee(this,"highlight",null),Ee(this,"content",null),Ee(this,"dot",null),Ee(this,"bar",null),Ee(this,"event",null),Ee(this,"popover",null),Ee(this,"customData",null),Ee(this,"ranges"),Ee(this,"hasRanges",!1),Ee(this,"order",0),Ee(this,"pinPage",!1),Ee(this,"maxRepeatSpan",0),Ee(this,"locale");const{dates:a}=Object.assign(this,{hashcode:"",order:0,pinPage:!1},t);this.key||(this.key=++Uj),this.locale=r,n.normalizeGlyphs(this),this.ranges=r.ranges(a??[]),this.hasRanges=!!Br(this.ranges),this.maxRepeatSpan=this.ranges.filter(s=>s.hasRepeat).map(s=>s.daySpan).reduce((s,o)=>Math.max(s,o),0)}intersectsRange({start:t,end:n}){if(t==null||n==null)return!1;const r=this.ranges.filter(o=>!o.hasRepeat);for(const o of r)if(o.intersectsDayRange(t.dayIndex,n.dayIndex))return!0;const a=this.ranges.filter(o=>o.hasRepeat);if(!a.length)return!1;let s=t;for(this.maxRepeatSpan>1&&(s=this.locale.getDateParts(Ln(s.date,-this.maxRepeatSpan)));s.dayIndex<=n.dayIndex;){for(const o of a)if(o.startsOnDay(s))return!0;s=this.locale.getDateParts(Ln(s.date,1))}return!1}}function C0(e){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:e}))}function uc(e){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:e}))}function H5(e){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:e}))}function W5(e){const{visibility:t}=e,n=t==="click",r=t==="hover",a=t==="hover-focus",s=t==="focus";e.autoHide=!n;let o=!1,l=!1;const d=_=>{n&&(H5({...e,target:e.target||_.currentTarget}),_.stopPropagation())},h=_=>{o||(o=!0,(r||a)&&C0({...e,target:e.target||_.currentTarget}))},f=()=>{o&&(o=!1,(r||a&&!l)&&uc(e))},m=_=>{l||(l=!0,(s||a)&&C0({...e,target:e.target||_.currentTarget}))},g=_=>{l&&!Bu(_.currentTarget,_.relatedTarget)&&(l=!1,(s||a&&!o)&&uc(e))},y={};switch(e.visibility){case"click":y.click=d;break;case"hover":y.mousemove=h,y.mouseleave=f;break;case"focus":y.focusin=m,y.focusout=g;break;case"hover-focus":y.mousemove=h,y.mouseleave=f,y.focusin=m,y.focusout=g;break}return y}const Y5=e=>{const t=Mu(e);if(t==null)return;const n=t.popoverHandlers;!n||!n.length||(n.forEach(r=>r()),delete t.popoverHandlers)},U5=(e,t)=>{const n=Mu(e);if(n==null)return;const r=[],a=W5(t);Object.entries(a).forEach(([s,o])=>{r.push(ha(n,s,o))}),n.popoverHandlers=r},j5={mounted(e,t){const{value:n}=t;n&&U5(e,n)},updated(e,t){const{oldValue:n,value:r}=t,a=n==null?void 0:n.visibility,s=r==null?void 0:r.visibility;a!==s&&(a&&(Y5(e),s||uc(n)),s&&U5(e,r))},unmounted(e){Y5(e)}},jj=(e,t,{maxSwipeTime:n,minHorizontalSwipeDistance:r,maxVerticalSwipeDistance:a})=>{if(!e||!e.addEventListener||!Qa(t))return null;let s=0,o=0,l=null,d=!1;function h(m){const g=m.changedTouches[0];s=g.screenX,o=g.screenY,l=new Date().getTime(),d=!0}function f(m){if(!d||!l)return;d=!1;const g=m.changedTouches[0],y=g.screenX-s,_=g.screenY-o;if(new Date().getTime()-l<n&&Math.abs(y)>=r&&Math.abs(_)<=a){const k={toLeft:!1,toRight:!1};y<0?k.toLeft=!0:k.toRight=!0,t(k)}}return ha(e,"touchstart",h,{passive:!0}),ha(e,"touchend",f,{passive:!0}),()=>{ua(e,"touchstart",h),ua(e,"touchend",f)}},zu={},qj=(e,t=10)=>{zu[e]=Date.now()+t},Gj=(e,t)=>{if(e in zu){const n=zu[e];if(Date.now()<n)return;delete zu[e]}t()};function q5(){return typeof window<"u"}function Kj(e){return q5()&&e in window}function Zj(e){const t=i.ref(!1),n=i.computed(()=>t.value?"dark":"light");let r,a;function s(y){t.value=y.matches}function o(){Kj("matchMedia")&&(r=window.matchMedia("(prefers-color-scheme: dark)"),r.addEventListener("change",s),t.value=r.matches)}function l(){const{selector:y=":root",darkClass:_="dark"}=e.value,w=document.querySelector(y);t.value=w.classList.contains(_)}function d(y){const{selector:_=":root",darkClass:w="dark"}=y;if(q5()&&_&&w){const k=document.querySelector(_);k&&(a=new MutationObserver(l),a.observe(k,{attributes:!0,attributeFilter:["class"]}),t.value=k.classList.contains(w))}}function h(){m();const y=typeof e.value;y==="string"&&e.value.toLowerCase()==="system"?o():y==="object"?d(e.value):t.value=!!e.value}const f=i.watch(()=>e.value,()=>h(),{immediate:!0});function m(){r&&(r.removeEventListener("change",s),r=void 0),a&&(a.disconnect(),a=void 0)}function g(){m(),f()}return i.onUnmounted(()=>g()),{isDark:t,displayMode:n,cleanup:g}}const Xj=["base","start","end","startEnd"],Jj=["class","wrapperClass","contentClass","style","contentStyle","color","fillMode"],Qj={base:{},start:{},end:{}};function x0(e,t,n=Qj){let r=e,a={};t===!0||or(t)?(r=or(t)?t:r,a={...n}):Mr(t)&&(i5(t,Xj)?a={...t}:a={base:{...t},start:{...t},end:{...t}});const s=oc(a,{start:a.startEnd,end:a.startEnd},n);return Object.entries(s).forEach(([o,l])=>{let d=r;l===!0||or(l)?(d=or(l)?l:d,s[o]={color:d}):Mr(l)&&(i5(l,Jj)?s[o]={...l}:s[o]={}),oc(s[o],{color:d})}),s}class eq{constructor(){Ee(this,"type","highlight")}normalizeConfig(t,n){return x0(t,n,{base:{fillMode:"light"},start:{fillMode:"solid"},end:{fillMode:"solid"}})}prepareRender(t){t.highlights=[],t.content||(t.content=[])}render({data:t,onStart:n,onEnd:r},a){const{key:s,highlight:o}=t;if(!o)return;const{highlights:l}=a,{base:d,start:h,end:f}=o;n&&r?l.push({...h,key:s,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${h.color}`,class:[`vc-highlight vc-highlight-bg-${h.fillMode}`,h.class],contentClass:[`vc-attr vc-highlight-content-${h.fillMode} vc-${h.color}`,h.contentClass]}):n?(l.push({...d,key:`${s}-base`,wrapperClass:`vc-day-layer vc-day-box-right-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-start vc-highlight-bg-${d.fillMode}`,d.class]}),l.push({...h,key:s,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${h.color}`,class:[`vc-highlight vc-highlight-bg-${h.fillMode}`,h.class],contentClass:[`vc-attr vc-highlight-content-${h.fillMode} vc-${h.color}`,h.contentClass]})):r?(l.push({...d,key:`${s}-base`,wrapperClass:`vc-day-layer vc-day-box-left-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-end vc-highlight-bg-${d.fillMode}`,d.class]}),l.push({...f,key:s,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${f.color}`,class:[`vc-highlight vc-highlight-bg-${f.fillMode}`,f.class],contentClass:[`vc-attr vc-highlight-content-${f.fillMode} vc-${f.color}`,f.contentClass]})):l.push({...d,key:`${s}-middle`,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-middle vc-highlight-bg-${d.fillMode}`,d.class],contentClass:[`vc-attr vc-highlight-content-${d.fillMode} vc-${d.color}`,d.contentClass]})}}class S0{constructor(t,n){Ee(this,"type",""),Ee(this,"collectionType",""),this.type=t,this.collectionType=n}normalizeConfig(t,n){return x0(t,n)}prepareRender(t){t[this.collectionType]=[]}render({data:t,onStart:n,onEnd:r},a){const{key:s}=t,o=t[this.type];if(!s||!o)return;const l=a[this.collectionType],{base:d,start:h,end:f}=o;n?l.push({...h,key:s,class:[`vc-${this.type} vc-${this.type}-start vc-${h.color} vc-attr`,h.class]}):r?l.push({...f,key:s,class:[`vc-${this.type} vc-${this.type}-end vc-${f.color} vc-attr`,f.class]}):l.push({...d,key:s,class:[`vc-${this.type} vc-${this.type}-base vc-${d.color} vc-attr`,d.class]})}}class tq extends S0{constructor(){super("content","content")}normalizeConfig(t,n){return x0("base",n)}}class nq extends S0{constructor(){super("dot","dots")}}class iq extends S0{constructor(){super("bar","bars")}}class rq{constructor(t){Ee(this,"color"),Ee(this,"renderers",[new tq,new eq,new nq,new iq]),this.color=t}normalizeGlyphs(t){this.renderers.forEach(n=>{const r=n.type;t[r]!=null&&(t[r]=n.normalizeConfig(this.color,t[r]))})}prepareRender(t={}){return this.renderers.forEach(n=>{n.prepareRender(t)}),t}render(t,n){this.renderers.forEach(r=>{r.render(t,n)})}}const G5=Symbol("__vc_base_context__"),K5={color:{type:String,default:()=>fa("color")},isDark:{type:[Boolean,String,Object],default:()=>fa("isDark")},firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,disabledDates:null};function Z5(e){const t=i.computed(()=>e.color??""),n=i.computed(()=>e.isDark??!1),{displayMode:r}=Zj(n),a=i.computed(()=>new rq(t.value)),s=i.computed(()=>{if(e.locale instanceof Au)return e.locale;const g=Mr(e.locale)?e.locale:{id:e.locale,firstDayOfWeek:e.firstDayOfWeek,masks:e.masks};return new Au(g,e.timezone)}),o=i.computed(()=>s.value.masks),l=i.computed(()=>e.minDate),d=i.computed(()=>e.maxDate),h=i.computed(()=>{const g=e.disabledDates?[...e.disabledDates]:[];return l.value!=null&&g.push({start:null,end:Ln(s.value.toDate(l.value),-1)}),d.value!=null&&g.push({start:Ln(s.value.toDate(d.value),1),end:null}),s.value.ranges(g)}),f=i.computed(()=>new R5({key:"disabled",dates:h.value,order:100},a.value,s.value)),m={color:t,isDark:n,displayMode:r,theme:a,locale:s,masks:o,minDate:l,maxDate:d,disabledDates:h,disabledAttribute:f};return i.provide(G5,m),m}function aq(e){return i.inject(G5,()=>Z5(e),!0)}function X5(e){return`__vc_slot_${e}__`}function J5(e,t={}){Object.keys(e).forEach(n=>{i.provide(X5(t[n]??n),e[n])})}function Q5(e){return i.inject(X5(e),null)}const sq={...K5,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:()=>fa("titlePosition")},navVisibility:{type:String,default:()=>fa("navVisibility")},showWeeknumbers:[Boolean,String],showIsoWeeknumbers:[Boolean,String],expanded:Boolean,borderless:Boolean,transparent:Boolean,initialPage:Object,initialPagePosition:{type:Number,default:1},minPage:Object,maxPage:Object,transition:String,attributes:Array,trimWeeks:Boolean,disablePageSwipe:Boolean},oq=["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown","weeknumberclick","transition-start","transition-end","did-move","update:view","update:pages"],ev=Symbol("__vc_calendar_context__");function lq(e,{slots:t,emit:n}){const r=i.ref(null),a=i.ref(null),s=i.ref(new Date().getDate()),o=i.ref(!1),l=i.ref(Symbol()),d=i.ref(Symbol()),h=i.ref(e.view),f=i.ref([]),m=i.ref("");let g=null,y=null;J5(t);const{theme:_,color:w,displayMode:k,locale:C,masks:M,minDate:E,maxDate:x,disabledAttribute:$,disabledDates:I}=aq(e),P=i.computed(()=>e.rows*e.columns),T=i.computed(()=>e.step||P.value),W=i.computed(()=>t5(f.value)??null),U=i.computed(()=>po(f.value)??null),ee=i.computed(()=>e.minPage||(E.value?he(E.value):null)),Y=i.computed(()=>e.maxPage||(x.value?he(x.value):null)),ne=i.computed(()=>e.navVisibility),le=i.computed(()=>!!e.showWeeknumbers),J=i.computed(()=>!!e.showIsoWeeknumbers),pe=i.computed(()=>h.value==="monthly"),Q=i.computed(()=>h.value==="weekly"),me=i.computed(()=>h.value==="daily"),ge=()=>{o.value=!0,n("transition-start")},z=()=>{o.value=!1,n("transition-end"),g&&(g.resolve(!0),g=null)},fe=(j,V,G=h.value)=>v5(j,V,G,C.value),he=j=>b5(j,h.value,C.value),De=j=>{!$.value||!de.value||(j.isDisabled=de.value.cellExists($.value.key,j.dayIndex))},Oe=j=>{j.isFocusable=j.inMonth&&j.day===s.value},we=(j,V)=>{for(const G of j)for(const ue of G.days)if(V(ue)===!1)return},Ne=i.computed(()=>f.value.reduce((j,V)=>(j.push(...V.viewDays),j),[])),it=i.computed(()=>{const j=[];return(e.attributes||[]).forEach((V,G)=>{!V||!V.dates||j.push(new R5({...V,order:V.order||0},_.value,C.value))}),$.value&&j.push($.value),j}),Pe=i.computed(()=>Br(it.value)),de=i.computed(()=>{const j=new oj;return it.value.forEach(V=>{V.ranges.forEach(G=>{j.render(V,G,Ne.value)})}),j}),xe=i.computed(()=>Ne.value.reduce((j,V)=>(j[V.dayIndex]={day:V,cells:[]},j[V.dayIndex].cells.push(...de.value.getCells(V)),j),{})),Ie=(j,V)=>{const G=e.showWeeknumbers||e.showIsoWeeknumbers;return G==null?"":VH(G)?G?"left":"":G.startsWith("right")?V>1?"right":G:j>1?"left":G},Fe=()=>{var j,V;if(!Pe.value)return null;const G=it.value.find(Xe=>Xe.pinPage)||it.value[0];if(!G||!G.hasRanges)return null;const[ue]=G.ranges,Me=((j=ue.start)==null?void 0:j.date)||((V=ue.end)==null?void 0:V.date);return Me?he(Me):null},Ye=()=>{if(lr(W.value))return W.value;const j=Fe();return lr(j)?j:he(new Date)},et=(j,V={})=>{const{view:G=h.value,position:ue=1,force:Me}=V,Xe=ue>0?1-ue:-(P.value+ue);let ut=fe(j,Xe,G),Dt=fe(ut,P.value-1,G);return Me||(y0(ut,ee.value)?ut=ee.value:Iu(Dt,Y.value)&&(ut=fe(Y.value,1-P.value)),Dt=fe(ut,P.value-1)),{fromPage:ut,toPage:Dt}},Pt=(j,V,G="")=>{if(G==="none"||G==="fade")return G;if((j==null?void 0:j.view)!==(V==null?void 0:V.view))return"fade";const ue=Iu(V,j),Me=y0(V,j);return!ue&&!Me?"fade":G==="slide-v"?Me?"slide-down":"slide-up":Me?"slide-right":"slide-left"},tt=(j={})=>new Promise((V,G)=>{const{position:ue=1,force:Me=!1,transition:Xe}=j,ut=lr(j.page)?j.page:Ye(),{fromPage:Dt}=et(ut,{position:ue,force:Me}),ln=[];for(let Jt=0;Jt<P.value;Jt++){const Gn=fe(Dt,Jt),bt=Jt+1,zn=Math.ceil(bt/e.columns),On=e.rows-zn+1,ai=bt%e.columns||e.columns,Ui=e.columns-ai+1,Vr=Ie(ai,Ui);ln.push(C.value.getPage({...Gn,view:h.value,titlePosition:e.titlePosition,trimWeeks:e.trimWeeks,position:bt,row:zn,rowFromEnd:On,column:ai,columnFromEnd:Ui,showWeeknumbers:le.value,showIsoWeeknumbers:J.value,weeknumberPosition:Vr}))}m.value=Pt(f.value[0],ln[0],Xe),f.value=ln,m.value&&m.value!=="none"?g={resolve:V,reject:G}:V(!0)}),yt=j=>{const V=W.value??he(new Date);return fe(V,j)},Zt=(j,V={})=>{const G=lr(j)?j:he(j);return Object.assign(V,et(G,{...V,force:!0})),rj(V.fromPage,V.toPage,h.value,C.value).map(Me=>nj(Me,ee.value,Y.value)).some(Me=>Me)},Xt=(j,V={})=>Zt(yt(j),V),ft=i.computed(()=>Xt(-T.value)),ot=i.computed(()=>Xt(T.value)),$t=async(j,V={})=>!V.force&&!Zt(j,V)?!1:(V.fromPage&&!ij(V.fromPage,W.value)&&(uc({id:l.value,hideDelay:0}),V.view&&(qj("view",10),h.value=V.view),await tt({...V,page:V.fromPage,position:1,force:!0}),n("did-move",f.value)),!0),Ct=(j,V={})=>$t(yt(j),V),Bt=()=>Ct(-T.value),xt=()=>Ct(T.value),nn=j=>{const V=pe.value?".in-month":"",G=`.id-${C.value.getDayId(j)}${V}`,ue=`${G}.vc-focusable, ${G} .vc-focusable`,Me=r.value;if(Me){const Xe=Me.querySelector(ue);if(Xe)return Xe.focus(),!0}return!1},Et=async(j,V={})=>nn(j)?!0:(await $t(j,V),nn(j)),oe=(j,V)=>{s.value=j.day,n("dayclick",j,V)},Le=(j,V)=>{n("daymouseenter",j,V)},Ue=(j,V)=>{n("daymouseleave",j,V)},rn=(j,V)=>{s.value=j.day,a.value=j,j.isFocused=!0,n("dayfocusin",j,V)},pn=(j,V)=>{a.value=null,j.isFocused=!1,n("dayfocusout",j,V)},ae=(j,V)=>{n("daykeydown",j,V);const G=j.noonDate;let ue=null;switch(V.key){case"ArrowLeft":{ue=Ln(G,-1);break}case"ArrowRight":{ue=Ln(G,1);break}case"ArrowUp":{ue=Ln(G,-7);break}case"ArrowDown":{ue=Ln(G,7);break}case"Home":{ue=Ln(G,-j.weekdayPosition+1);break}case"End":{ue=Ln(G,j.weekdayPositionFromEnd);break}case"PageUp":{V.altKey?ue=y5(G,-1):ue=Tu(G,-1);break}case"PageDown":{V.altKey?ue=y5(G,1):ue=Tu(G,1);break}}ue&&(V.preventDefault(),Et(ue).catch())},R=j=>{const V=a.value;V!=null&&ae(V,j)},K=(j,V)=>{n("weeknumberclick",j,V)};tt({page:e.initialPage,position:e.initialPagePosition}),i.onMounted(()=>{!e.disablePageSwipe&&r.value&&(y=jj(r.value,({toLeft:j=!1,toRight:V=!1})=>{j?xt():V&&Bt()},fa("touch")))}),i.onUnmounted(()=>{f.value=[],y&&y()}),i.watch(()=>C.value,()=>{tt()}),i.watch(()=>P.value,()=>tt()),i.watch(()=>e.view,()=>h.value=e.view),i.watch(()=>h.value,()=>{Gj("view",()=>{tt()}),n("update:view",h.value)}),i.watch(()=>s.value,()=>{we(f.value,j=>Oe(j))}),i.watchEffect(()=>{n("update:pages",f.value),we(f.value,j=>{De(j),Oe(j)})});const be={emit:n,containerRef:r,focusedDay:a,inTransition:o,navPopoverId:l,dayPopoverId:d,view:h,pages:f,transitionName:m,theme:_,color:w,displayMode:k,locale:C,masks:M,attributes:it,disabledAttribute:$,disabledDates:I,attributeContext:de,days:Ne,dayCells:xe,count:P,step:T,firstPage:W,lastPage:U,canMovePrev:ft,canMoveNext:ot,minPage:ee,maxPage:Y,isMonthly:pe,isWeekly:Q,isDaily:me,navVisibility:ne,showWeeknumbers:le,showIsoWeeknumbers:J,getDateAddress:he,canMove:Zt,canMoveBy:Xt,move:$t,moveBy:Ct,movePrev:Bt,moveNext:xt,onTransitionBeforeEnter:ge,onTransitionAfterEnter:z,tryFocusDate:nn,focusDate:Et,onKeydown:R,onDayKeydown:ae,onDayClick:oe,onDayMouseenter:Le,onDayMouseleave:Ue,onDayFocusin:rn,onDayFocusout:pn,onWeeknumberClick:K};return i.provide(ev,be),be}function rs(){const e=i.inject(ev);if(e)return e;throw new Error("Calendar context missing. Please verify this component is nested within a valid context provider.")}const cq=i.defineComponent({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 n;const r=i.ref();let a=null,s=null;const o=i.reactive({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 l(z){z&&(o.direction=z.split("-")[0])}function d({placement:z,options:fe}){l(z||(fe==null?void 0:fe.placement))}const h=i.computed(()=>({placement:o.placement,strategy:o.positionFixed?"fixed":"absolute",boundary:"",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:d},...o.modifiers||[]],onFirstUpdate:d})),f=i.computed(()=>{const z=o.direction==="left"||o.direction==="right";let fe="";if(o.placement){const he=o.placement.split("-");he.length>1&&(fe=he[1])}return["start","top","left"].includes(fe)?z?"top":"left":["end","bottom","right"].includes(fe)?z?"bottom":"right":z?"middle":"center"});function m(){s&&(s.destroy(),s=null)}function g(){i.nextTick(()=>{const z=Mu(o.target);!z||!r.value||(s&&s.state.elements.reference!==z&&m(),s?s.update():s=ll(z,r.value,h.value))})}function y(z){Object.assign(o,r5(z,"force"))}function _(z,fe){clearTimeout(n),z>0?n=setTimeout(fe,z):fe()}function w(z){return!z||!s?!1:Mu(z)===s.state.elements.reference}async function k(z={}){o.force||(z.force&&(o.force=!0),_(z.showDelay??e.showDelay,()=>{o.isVisible&&(o.force=!1),y({...z,isVisible:!0}),g()}))}function C(z={}){s&&(z.target&&!w(z.target)||o.force||(z.force&&(o.force=!0),_(z.hideDelay??e.hideDelay,()=>{o.isVisible||(o.force=!1),o.isVisible=!1})))}function M(z={}){z.target!=null&&(o.isVisible&&w(z.target)?C(z):k(z))}function E(z){if(!s)return;const fe=s.state.elements.reference;if(!r.value||!fe)return;const he=z.target;Bu(r.value,he)||Bu(fe,he)||C({force:!0})}function x(z){(z.key==="Esc"||z.key==="Escape")&&C()}function $({detail:z}){!z.id||z.id!==e.id||k(z)}function I({detail:z}){!z.id||z.id!==e.id||C(z)}function P({detail:z}){!z.id||z.id!==e.id||M(z)}function T(){ha(document,"keydown",x),ha(document,"click",E),ha(document,"show-popover",$),ha(document,"hide-popover",I),ha(document,"toggle-popover",P)}function W(){ua(document,"keydown",x),ua(document,"click",E),ua(document,"show-popover",$),ua(document,"hide-popover",I),ua(document,"toggle-popover",P)}function U(z){t("before-show",z)}function ee(z){o.force=!1,t("after-show",z)}function Y(z){t("before-hide",z)}function ne(z){o.force=!1,m(),t("after-hide",z)}function le(z){z.stopPropagation()}function J(){o.isHovered=!0,o.isInteractive&&["hover","hover-focus"].includes(o.visibility)&&k()}function pe(){if(o.isHovered=!1,!s)return;const z=s.state.elements.reference;o.autoHide&&!o.isFocused&&(!z||z!==document.activeElement)&&["hover","hover-focus"].includes(o.visibility)&&C()}function Q(){o.isFocused=!0,o.isInteractive&&["focus","hover-focus"].includes(o.visibility)&&k()}function me(z){["focus","hover-focus"].includes(o.visibility)&&(!z.relatedTarget||!Bu(r.value,z.relatedTarget))&&(o.isFocused=!1,!o.isHovered&&o.autoHide&&C())}function ge(){a!=null&&(a.disconnect(),a=null)}return i.watch(()=>r.value,z=>{ge(),z&&(a=new ResizeObserver(()=>{s&&s.update()}),a.observe(z))}),i.watch(()=>o.placement,l,{immediate:!0}),i.onMounted(()=>{T()}),i.onUnmounted(()=>{m(),ge(),W()}),{...i.toRefs(o),popoverRef:r,alignment:f,hide:C,setupPopper:g,beforeEnter:U,afterEnter:ee,beforeLeave:Y,afterLeave:ne,onClick:le,onMouseOver:J,onMouseLeave:pe,onFocusIn:Q,onFocusOut:me}}}),ma=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};function dq(e,t,n,r,a,s){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-popover-content-wrapper",{"is-interactive":e.isInteractive}]),ref:"popoverRef",onClick:t[0]||(t[0]=(...o)=>e.onClick&&e.onClick(...o)),onMouseover:t[1]||(t[1]=(...o)=>e.onMouseOver&&e.onMouseOver(...o)),onMouseleave:t[2]||(t[2]=(...o)=>e.onMouseLeave&&e.onMouseLeave(...o)),onFocusin:t[3]||(t[3]=(...o)=>e.onFocusIn&&e.onFocusIn(...o)),onFocusout:t[4]||(t[4]=(...o)=>e.onFocusOut&&e.onFocusOut(...o))},[i.createVNode(i.Transition,{name:`vc-${e.transition}`,appear:"",onBeforeEnter:e.beforeEnter,onAfterEnter:e.afterEnter,onBeforeLeave:e.beforeLeave,onAfterLeave:e.afterLeave},{default:i.withCtx(()=>[e.isVisible?(i.openBlock(),i.createElementBlock("div",i.mergeProps({key:0,tabindex:"-1",class:`vc-popover-content direction-${e.direction}`},e.$attrs),[i.renderSlot(e.$slots,"default",{direction:e.direction,alignment:e.alignment,data:e.data,hide:e.hide},()=>[i.createTextVNode(i.toDisplayString(e.data),1)]),i.createElementVNode("span",{class:i.normalizeClass(["vc-popover-caret",`direction-${e.direction}`,`align-${e.alignment}`])},null,2)],16)):i.createCommentVNode("",!0)]),_:3},8,["name","onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave"])],34)}const M0=ma(cq,[["render",dq]]),uq={class:"vc-day-popover-row"},hq={key:0,class:"vc-day-popover-row-indicator"},fq={class:"vc-day-popover-row-label"},pq=i.defineComponent({__name:"PopoverRow",props:{attribute:null},setup(e){const t=e,n=i.computed(()=>{const{content:r,highlight:a,dot:s,bar:o,popover:l}=t.attribute;return l&&l.hideIndicator?null:r?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${r.base.color}`}:a?{class:`vc-highlight-bg-solid vc-day-popover-row-highlight vc-attr vc-${a.base.color}`}:s?{class:`vc-dot vc-attr vc-${s.base.color}`}:o?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${o.base.color}`}:null});return(r,a)=>(i.openBlock(),i.createElementBlock("div",uq,[i.unref(n)?(i.openBlock(),i.createElementBlock("div",hq,[i.createElementVNode("span",{class:i.normalizeClass(i.unref(n).class)},null,2)])):i.createCommentVNode("",!0),i.createElementVNode("div",fq,[i.renderSlot(r.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(e.attribute.popover?e.attribute.popover.label:"No content provided"),1)])])]))}}),mq={inheritAttrs:!1},ki=i.defineComponent({...mq,__name:"CalendarSlot",props:{name:null},setup(e){const n=Q5(e.name);return(r,a)=>i.unref(n)?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(n)),i.normalizeProps(i.mergeProps({key:0},r.$attrs)),null,16)):i.renderSlot(r.$slots,"default",{key:1})}}),gq={class:"vc-day-popover-container"},yq={key:0,class:"vc-day-popover-header"},bq=i.defineComponent({__name:"CalendarDayPopover",setup(e){const{dayPopoverId:t,displayMode:n,color:r,masks:a,locale:s}=rs();function o(d,h){return s.value.formatDate(d,h)}function l(d){return s.value.formatDate(d.date,a.value.dayPopover)}return(d,h)=>(i.openBlock(),i.createBlock(M0,{id:i.unref(t),class:i.normalizeClass([`vc-${i.unref(r)}`,`vc-${i.unref(n)}`])},{default:i.withCtx(({data:{day:f,attributes:m},hide:g})=>[i.createVNode(ki,{name:"day-popover",day:f,"day-title":l(f),attributes:m,format:o,masks:i.unref(a),hide:g},{default:i.withCtx(()=>[i.createElementVNode("div",gq,[i.unref(a).dayPopover?(i.openBlock(),i.createElementBlock("div",yq,i.toDisplayString(l(f)),1)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m,y=>(i.openBlock(),i.createBlock(pq,{key:y.key,attribute:y},null,8,["attribute"]))),128))])]),_:2},1032,["day","day-title","attributes","masks","hide"])]),_:1},8,["id","class"]))}}),vq={},_q={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},wq=[i.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1)];function kq(e,t){return i.openBlock(),i.createElementBlock("svg",_q,wq)}const Cq=ma(vq,[["render",kq]]),xq={},Sq={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},Mq=[i.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1)];function Bq(e,t){return i.openBlock(),i.createElementBlock("svg",Sq,Mq)}const Eq=ma(xq,[["render",Bq]]),Dq={},Oq={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},Vq=[i.createElementVNode("polyline",{points:"6 9 12 15 18 9"},null,-1)];function $q(e,t){return i.openBlock(),i.createElementBlock("svg",Oq,Vq)}const Tq=ma(Dq,[["render",$q]]),Iq={},Aq={fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},Nq=[i.createElementVNode("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)];function Lq(e,t){return i.openBlock(),i.createElementBlock("svg",Aq,Nq)}const zq=Object.freeze(Object.defineProperty({__proto__:null,IconChevronDown:Tq,IconChevronLeft:Eq,IconChevronRight:Cq,IconClock:ma(Iq,[["render",Lq]])},Symbol.toStringTag,{value:"Module"})),_o=i.defineComponent({__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,n=i.computed(()=>t.width||t.size),r=i.computed(()=>t.height||t.size),a=i.computed(()=>zq[`Icon${t.name}`]);return(s,o)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(a)),{width:i.unref(n),height:i.unref(r),class:"vc-base-icon"},null,8,["width","height"]))}}),Pq=["disabled"],Fq={key:1,class:"vc-title-wrapper"},Rq={type:"button",class:"vc-title"},Hq=["disabled"],tv=i.defineComponent({__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:n,navVisibility:r,canMovePrev:a,movePrev:s,canMoveNext:o,moveNext:l}=rs(),d=i.computed(()=>{switch(t.page.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}}),h=i.computed(()=>{const{page:w}=t;return{id:n.value,visibility:r.value,placement:d.value,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:w},isInteractive:!0}}),f=i.computed(()=>t.page.titlePosition.includes("left")),m=i.computed(()=>t.page.titlePosition.includes("right")),g=i.computed(()=>t.layout?t.layout:f.value?"tu-pn":m.value?"pn-tu":"p-tu-n;"),y=i.computed(()=>({prev:g.value.includes("p")&&!t.hideArrows,title:g.value.includes("t")&&!t.hideTitle,next:g.value.includes("n")&&!t.hideArrows})),_=i.computed(()=>({gridTemplateColumns:g.value.split("").map(k=>{switch(k){case"p":return"[prev] auto";case"n":return"[next] auto";case"t":return"[title] auto";case"-":return"1fr";default:return""}}).join(" ")}));return(w,k)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-header",{"is-lg":e.isLg,"is-xl":e.isXl,"is-2xl":e.is2xl}]),style:i.normalizeStyle(i.unref(_))},[i.unref(y).prev?(i.openBlock(),i.createElementBlock("button",{key:0,type:"button",class:"vc-arrow vc-prev vc-focus",disabled:!i.unref(a),onClick:k[0]||(k[0]=(...C)=>i.unref(s)&&i.unref(s)(...C)),onKeydown:k[1]||(k[1]=i.withKeys((...C)=>i.unref(s)&&i.unref(s)(...C),["space","enter"]))},[i.createVNode(ki,{name:"header-prev-button",disabled:!i.unref(a)},{default:i.withCtx(()=>[i.createVNode(_o,{name:"ChevronLeft",size:"24"})]),_:1},8,["disabled"])],40,Pq)):i.createCommentVNode("",!0),i.unref(y).title?(i.openBlock(),i.createElementBlock("div",Fq,[i.createVNode(ki,{name:"header-title-wrapper"},{default:i.withCtx(()=>[i.withDirectives((i.openBlock(),i.createElementBlock("button",Rq,[i.createVNode(ki,{name:"header-title",title:e.page.title},{default:i.withCtx(()=>[i.createElementVNode("span",null,i.toDisplayString(e.page.title),1)]),_:1},8,["title"])])),[[i.unref(j5),i.unref(h)]])]),_:1})])):i.createCommentVNode("",!0),i.unref(y).next?(i.openBlock(),i.createElementBlock("button",{key:2,type:"button",class:"vc-arrow vc-next vc-focus",disabled:!i.unref(o),onClick:k[2]||(k[2]=(...C)=>i.unref(l)&&i.unref(l)(...C)),onKeydown:k[3]||(k[3]=i.withKeys((...C)=>i.unref(l)&&i.unref(l)(...C),["space","enter"]))},[i.createVNode(ki,{name:"header-next-button",disabled:!i.unref(o)},{default:i.withCtx(()=>[i.createVNode(_o,{name:"ChevronRight",size:"24"})]),_:1},8,["disabled"])],40,Hq)):i.createCommentVNode("",!0)],6))}}),nv=Symbol("__vc_page_context__");function Wq(e){const{locale:t,getDateAddress:n,canMove:r}=rs();function a(l,d){const{month:h,year:f}=n(new Date);return z5().map((m,g)=>{const y=g+1;return{month:y,year:l,id:tj(y,l),label:t.value.formatDate(m,d),ariaLabel:t.value.formatDate(m,"MMMM"),isActive:y===e.value.month&&l===e.value.year,isCurrent:y===h&&l===f,isDisabled:!r({month:y,year:l},{position:e.value.position})}})}function s(l,d){const{year:h}=n(new Date),{position:f}=e.value,m=[];for(let g=l;g<=d;g+=1){const y=[...Array(12).keys()].some(_=>r({month:_+1,year:g},{position:f}));m.push({year:g,id:g.toString(),label:g.toString(),ariaLabel:g.toString(),isActive:g===e.value.year,isCurrent:g===h,isDisabled:!y})}return m}const o={page:e,getMonthItems:a,getYearItems:s};return i.provide(nv,o),o}function iv(){const e=i.inject(nv);if(e)return e;throw new Error("Page context missing. Please verify this component is nested within a valid context provider.")}const Yq={class:"vc-nav-header"},Uq=["disabled"],jq=["disabled"],qq={class:"vc-nav-items"},Gq=["data-id","aria-label","disabled","onClick","onKeydown"],Kq=i.defineComponent({__name:"CalendarNav",setup(e){const{masks:t,move:n}=rs(),{page:r,getMonthItems:a,getYearItems:s}=iv(),o=i.ref(!0),l=12,d=i.ref(r.value.year),h=i.ref(g(r.value.year)),f=i.ref(null);function m(){setTimeout(()=>{if(f.value==null)return;const he=f.value.querySelector(".vc-nav-item:not(:disabled)");he&&he.focus()},10)}function g(he){return Math.floor(he/l)}function y(){o.value=!o.value}function _(he){return he*l}function w(he){return l*(he+1)-1}function k(){Q.value&&(o.value&&M(),x())}function C(){me.value&&(o.value&&E(),$())}function M(){d.value--}function E(){d.value++}function x(){h.value--}function $(){h.value++}const I=i.computed(()=>a(d.value,t.value.navMonths).map(he=>({...he,click:()=>n({month:he.month,year:he.year},{position:r.value.position})}))),P=i.computed(()=>a(d.value-1,t.value.navMonths)),T=i.computed(()=>P.value.some(he=>!he.isDisabled)),W=i.computed(()=>a(d.value+1,t.value.navMonths)),U=i.computed(()=>W.value.some(he=>!he.isDisabled)),ee=i.computed(()=>s(_(h.value),w(h.value)).map(he=>({...he,click:()=>{d.value=he.year,o.value=!0,m()}}))),Y=i.computed(()=>s(_(h.value-1),w(h.value-1))),ne=i.computed(()=>Y.value.some(he=>!he.isDisabled)),le=i.computed(()=>s(_(h.value+1),w(h.value+1))),J=i.computed(()=>le.value.some(he=>!he.isDisabled)),pe=i.computed(()=>o.value?I.value:ee.value),Q=i.computed(()=>o.value?T.value:ne.value),me=i.computed(()=>o.value?U.value:J.value),ge=i.computed(()=>t5(ee.value.map(he=>he.year))),z=i.computed(()=>po(ee.value.map(he=>he.year))),fe=i.computed(()=>o.value?d.value:`${ge.value} - ${z.value}`);return i.watchEffect(()=>{d.value=r.value.year,m()}),i.watch(()=>d.value,he=>h.value=g(he)),i.onMounted(()=>m()),(he,De)=>(i.openBlock(),i.createElementBlock("div",{class:"vc-nav-container",ref_key:"navContainer",ref:f},[i.createElementVNode("div",Yq,[i.createElementVNode("button",{type:"button",class:"vc-nav-arrow is-left vc-focus",disabled:!i.unref(Q),onClick:k,onKeydown:De[0]||(De[0]=Oe=>i.unref(Eu)(Oe,k))},[i.createVNode(ki,{name:"nav-prev-button",move:k,disabled:!i.unref(Q)},{default:i.withCtx(()=>[i.createVNode(_o,{name:"ChevronLeft",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,Uq),i.createElementVNode("button",{type:"button",class:"vc-nav-title vc-focus",onClick:y,onKeydown:De[1]||(De[1]=Oe=>i.unref(Eu)(Oe,y))},i.toDisplayString(i.unref(fe)),33),i.createElementVNode("button",{type:"button",class:"vc-nav-arrow is-right vc-focus",disabled:!i.unref(me),onClick:C,onKeydown:De[2]||(De[2]=Oe=>i.unref(Eu)(Oe,C))},[i.createVNode(ki,{name:"nav-next-button",move:C,disabled:!i.unref(me)},{default:i.withCtx(()=>[i.createVNode(_o,{name:"ChevronRight",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,jq)]),i.createElementVNode("div",qq,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(pe),Oe=>(i.openBlock(),i.createElementBlock("button",{key:Oe.label,type:"button","data-id":Oe.id,"aria-label":Oe.ariaLabel,class:i.normalizeClass(["vc-nav-item vc-focus",[Oe.isActive?"is-active":Oe.isCurrent?"is-current":""]]),disabled:Oe.isDisabled,onClick:Oe.click,onKeydown:we=>i.unref(Eu)(we,Oe.click)},i.toDisplayString(Oe.label),43,Gq))),128))])],512))}}),rv=i.defineComponent({__name:"CalendarPageProvider",props:{page:null},setup(e){const t=e;return Wq(i.toRef(t,"page")),(n,r)=>i.renderSlot(n.$slots,"default")}}),Zq=i.defineComponent({__name:"CalendarNavPopover",setup(e){const{navPopoverId:t,color:n,displayMode:r}=rs();return(a,s)=>(i.openBlock(),i.createBlock(M0,{id:i.unref(t),class:i.normalizeClass(["vc-nav-popover-container",`vc-${i.unref(n)}`,`vc-${i.unref(r)}`])},{default:i.withCtx(({data:o})=>[i.createVNode(rv,{page:o.page},{default:i.withCtx(()=>[i.createVNode(ki,{name:"nav"},{default:i.withCtx(()=>[i.createVNode(Kq)]),_:1})]),_:2},1032,["page"])]),_:1},8,["id","class"]))}}),Xq=i.defineComponent({directives:{popover:j5},components:{CalendarSlot:ki},props:{day:{type:Object,required:!0}},setup(e){const{locale:t,theme:n,attributeContext:r,dayPopoverId:a,onDayClick:s,onDayMouseenter:o,onDayMouseleave:l,onDayFocusin:d,onDayFocusout:h,onDayKeydown:f}=rs(),m=i.computed(()=>e.day),g=i.computed(()=>r.value.getCells(m.value)),y=i.computed(()=>g.value.map(J=>J.data)),_=i.computed(()=>({...m.value,attributes:y.value,attributeCells:g.value}));function w({data:J},{popovers:pe}){const{key:Q,customData:me,popover:ge}=J;if(!ge)return;const z=Fb({key:Q,customData:me,attribute:J},{...ge},{visibility:ge.label?"hover":"click",placement:"bottom",isInteractive:!ge.label});pe.splice(0,0,z)}const k=i.computed(()=>{const J={...n.value.prepareRender({}),popovers:[]};return g.value.forEach(pe=>{n.value.render(pe,J),w(pe,J)}),J}),C=i.computed(()=>k.value.highlights),M=i.computed(()=>!!Br(C.value)),E=i.computed(()=>k.value.content),x=i.computed(()=>k.value.dots),$=i.computed(()=>!!Br(x.value)),I=i.computed(()=>k.value.bars),P=i.computed(()=>!!Br(I.value)),T=i.computed(()=>k.value.popovers),W=i.computed(()=>T.value.map(J=>J.attribute)),U=Q5("day-content"),ee=i.computed(()=>["vc-day",...m.value.classes,{"vc-day-box-center-center":!U},{"is-not-in-month":!e.day.inMonth}]),Y=i.computed(()=>{let J;m.value.isFocusable?J="0":J="-1";const pe=["vc-day-content vc-focusable vc-focus vc-attr",{"vc-disabled":m.value.isDisabled},ns(po(C.value),"contentClass"),ns(po(E.value),"class")||""],Q={...ns(po(C.value),"contentStyle"),...ns(po(E.value),"style")};return{class:pe,style:Q,tabindex:J,"aria-label":m.value.ariaLabel,"aria-disabled":!!m.value.isDisabled,role:"button"}}),ne=i.computed(()=>({click(J){s(_.value,J)},mouseenter(J){o(_.value,J)},mouseleave(J){l(_.value,J)},focusin(J){d(_.value,J)},focusout(J){h(_.value,J)},keydown(J){f(_.value,J)}})),le=i.computed(()=>Br(T.value)?Fb({id:a.value,data:{day:m,attributes:W.value}},...T.value):null);return{attributes:y,attributeCells:g,bars:I,dayClasses:ee,dayContentProps:Y,dayContentEvents:ne,dayPopover:le,glyphs:k,dots:x,hasDots:$,hasBars:P,highlights:C,hasHighlights:M,locale:t,popovers:T}}}),Jq={key:0,class:"vc-highlights vc-day-layer"},Qq={key:1,class:"vc-day-layer vc-day-box-center-bottom"},eG={class:"vc-dots"},tG={key:2,class:"vc-day-layer vc-day-box-center-bottom"},nG={class:"vc-bars"};function iG(e,t,n,r,a,s){const o=i.resolveComponent("CalendarSlot"),l=i.resolveDirective("popover");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(e.dayClasses)},[e.hasHighlights?(i.openBlock(),i.createElementBlock("div",Jq,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.highlights,({key:d,wrapperClass:h,class:f,style:m})=>(i.openBlock(),i.createElementBlock("div",{key:d,class:i.normalizeClass(h)},[i.createElementVNode("div",{class:i.normalizeClass(f),style:i.normalizeStyle(m)},null,6)],2))),128))])):i.createCommentVNode("",!0),i.createVNode(o,{name:"day-content",day:e.day,attributes:e.attributes,"attribute-cells":e.attributeCells,dayProps:e.dayContentProps,dayEvents:e.dayContentEvents,locale:e.locale},{default:i.withCtx(()=>[i.withDirectives((i.openBlock(),i.createElementBlock("div",i.mergeProps(e.dayContentProps,i.toHandlers(e.dayContentEvents,!0)),[i.createTextVNode(i.toDisplayString(e.day.label),1)],16)),[[l,e.dayPopover]])]),_:1},8,["day","attributes","attribute-cells","dayProps","dayEvents","locale"]),e.hasDots?(i.openBlock(),i.createElementBlock("div",Qq,[i.createElementVNode("div",eG,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.dots,({key:d,class:h,style:f})=>(i.openBlock(),i.createElementBlock("span",{key:d,class:i.normalizeClass(h),style:i.normalizeStyle(f)},null,6))),128))])])):i.createCommentVNode("",!0),e.hasBars?(i.openBlock(),i.createElementBlock("div",tG,[i.createElementVNode("div",nG,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.bars,({key:d,class:h,style:f})=>(i.openBlock(),i.createElementBlock("span",{key:d,class:i.normalizeClass(h),style:i.normalizeStyle(f)},null,6))),128))])])):i.createCommentVNode("",!0)],2)}const rG=ma(Xq,[["render",iG]]),aG={class:"vc-weekdays"},sG=["onClick"],oG={inheritAttrs:!1},lG=i.defineComponent({...oG,__name:"CalendarPage",setup(e){const{page:t}=iv(),{onWeeknumberClick:n}=rs();return(r,a)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-pane",`row-${i.unref(t).row}`,`row-from-end-${i.unref(t).rowFromEnd}`,`column-${i.unref(t).column}`,`column-from-end-${i.unref(t).columnFromEnd}`]),ref:"pane"},[i.createVNode(tv,{page:i.unref(t),"is-lg":"","hide-arrows":""},null,8,["page"]),i.createElementVNode("div",{class:i.normalizeClass(["vc-weeks",{[`vc-show-weeknumbers-${i.unref(t).weeknumberPosition}`]:i.unref(t).weeknumberPosition}])},[i.createElementVNode("div",aG,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(t).weekdays,({weekday:s,label:o},l)=>(i.openBlock(),i.createElementBlock("div",{key:l,class:i.normalizeClass(`vc-weekday vc-weekday-${s}`)},i.toDisplayString(o),3))),128))]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(t).viewWeeks,s=>(i.openBlock(),i.createElementBlock("div",{key:`weeknumber-${s.weeknumber}`,class:"vc-week"},[i.unref(t).weeknumberPosition?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["vc-weeknumber",`is-${i.unref(t).weeknumberPosition}`])},[i.createElementVNode("span",{class:i.normalizeClass(["vc-weeknumber-content"]),onClick:o=>i.unref(n)(s,o)},i.toDisplayString(s.weeknumberDisplay),9,sG)],2)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.days,o=>(i.openBlock(),i.createBlock(rG,{key:o.id,day:o},null,8,["day"]))),128))]))),128))],2)],2))}}),cG=i.defineComponent({components:{CalendarHeader:tv,CalendarPage:lG,CalendarNavPopover:Zq,CalendarDayPopover:bq,CalendarPageProvider:rv,CalendarSlot:ki},props:sq,emit:oq,setup(e,{emit:t,slots:n}){return lq(e,{emit:t,slots:n})}}),dG={class:"vc-pane-header-wrapper"};function uG(e,t,n,r,a,s){const o=i.resolveComponent("CalendarHeader"),l=i.resolveComponent("CalendarPage"),d=i.resolveComponent("CalendarSlot"),h=i.resolveComponent("CalendarPageProvider"),f=i.resolveComponent("CalendarDayPopover"),m=i.resolveComponent("CalendarNavPopover");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",i.mergeProps({"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]=i.withModifiers(()=>{},["prevent"])),ref:"containerRef"}),[i.createElementVNode("div",{class:i.normalizeClass(["vc-pane-container",{"in-transition":e.inTransition}])},[i.createElementVNode("div",dG,[e.firstPage?(i.openBlock(),i.createBlock(o,{key:0,page:e.firstPage,"is-lg":"","hide-title":""},null,8,["page"])):i.createCommentVNode("",!0)]),i.createVNode(i.Transition,{name:`vc-${e.transitionName}`,onBeforeEnter:e.onTransitionBeforeEnter,onAfterEnter:e.onTransitionAfterEnter},{default:i.withCtx(()=>[(i.openBlock(),i.createElementBlock("div",{key:e.pages[0].id,class:"vc-pane-layout",style:i.normalizeStyle({gridTemplateColumns:`repeat(${e.columns}, 1fr)`})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.pages,g=>(i.openBlock(),i.createBlock(h,{key:g.id,page:g},{default:i.withCtx(()=>[i.createVNode(d,{name:"page",page:g},{default:i.withCtx(()=>[i.createVNode(l)]),_:2},1032,["page"])]),_:2},1032,["page"]))),128))],4))]),_:1},8,["name","onBeforeEnter","onAfterEnter"]),i.createVNode(d,{name:"footer"})],2)],16),i.createVNode(f),i.createVNode(m)],64)}const hG=ma(cG,[["render",uG]]),av=Symbol("__vc_date_picker_context__"),fG={...K5,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:()=>fa("datePicker.updateOnInput")},inputDebounce:{type:Number,default:()=>fa("datePicker.inputDebounce")},popover:{type:[Boolean,Object],default:!0},dragAttribute:Object,selectAttribute:Object,attributes:[Object,Array]},pG=["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"];function mG(e,{emit:t,slots:n}){J5(n,{footer:"dp-footer"});const r=Z5(e),{locale:a,masks:s,disabledAttribute:o}=r,l=i.ref(!1),d=i.ref(Symbol()),h=i.ref(null),f=i.ref(null),m=i.ref(["",""]),g=i.ref(null),y=i.ref(null);let _,w,k=!0;const C=i.computed(()=>e.isRange||e.modelModifiers.range===!0),M=i.computed(()=>C.value&&h.value!=null?h.value.start:null),E=i.computed(()=>C.value&&h.value!=null?h.value.end:null),x=i.computed(()=>e.mode.toLowerCase()==="date"),$=i.computed(()=>e.mode.toLowerCase()==="datetime"),I=i.computed(()=>e.mode.toLowerCase()==="time"),P=i.computed(()=>!!f.value),T=i.computed(()=>{let V="date";e.modelModifiers.number&&(V="number"),e.modelModifiers.string&&(V="string");const G=s.value.modelValue||"iso";return De({type:V,mask:G})}),W=i.computed(()=>Xt(f.value??h.value)),U=i.computed(()=>I.value?e.is24hr?s.value.inputTime24hr:s.value.inputTime:$.value?e.is24hr?s.value.inputDateTime24hr:s.value.inputDateTime:s.value.input),ee=i.computed(()=>/[Hh]/g.test(U.value)),Y=i.computed(()=>/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(U.value)),ne=i.computed(()=>{if(ee.value&&Y.value)return"dateTime";if(Y.value)return"date";if(ee.value)return"time"}),le=i.computed(()=>{var V;const G=((V=g.value)==null?void 0:V.$el.previousElementSibling)??void 0;return oc({},e.popover,fa("datePicker.popover"),{target:G})}),J=i.computed(()=>W5({...le.value,id:d.value})),pe=i.computed(()=>C.value?{start:m.value[0],end:m.value[1]}:m.value[0]),Q=i.computed(()=>{const V=["start","end"].map(G=>({input:tt(G),change:yt(G),keyup:Zt,...e.popover&&J.value}));return C.value?{start:V[0],end:V[1]}:V[0]}),me=i.computed(()=>{if(!it(h.value))return null;const V={key:"select-drag",...e.selectAttribute,dates:h.value,pinPage:!0},{dot:G,bar:ue,highlight:Me,content:Xe}=V;return!G&&!ue&&!Me&&!Xe&&(V.highlight=!0),V}),ge=i.computed(()=>{if(!C.value||!it(f.value))return null;const V={key:"select-drag",...e.dragAttribute,dates:f.value},{dot:G,bar:ue,highlight:Me,content:Xe}=V;return!G&&!ue&&!Me&&!Xe&&(V.highlight={startEnd:{fillMode:"outline"}}),V}),z=i.computed(()=>{const V=wi(e.attributes)?[...e.attributes]:[];return ge.value?V.unshift(ge.value):me.value&&V.unshift(me.value),V}),fe=i.computed(()=>De(e.rules==="auto"?he():e.rules??{}));function he(){const V={ms:[0,999],sec:[0,59],min:[0,59],hr:[0,23]},G=x.value?0:e.timeAccuracy;return[0,1].map(ue=>{switch(G){case 0:return{hours:V.hr[ue],minutes:V.min[ue],seconds:V.sec[ue],milliseconds:V.ms[ue]};case 1:return{minutes:V.min[ue],seconds:V.sec[ue],milliseconds:V.ms[ue]};case 3:return{milliseconds:V.ms[ue]};case 4:return{};default:return{seconds:V.sec[ue],milliseconds:V.ms[ue]}}})}function De(V){return wi(V)?V.length===1?[V[0],V[0]]:V:[V,V]}function Oe(V){return De(V).map((G,ue)=>({...G,rules:fe.value[ue]}))}function we(V){return V==null?!1:Yi(V)?!isNaN(V):mo(V)?!isNaN(V.getTime()):or(V)?V!=="":_0(V)}function Ne(V){return Mr(V)&&"start"in V&&"end"in V&&we(V.start??null)&&we(V.end??null)}function it(V){return Ne(V)||we(V)}function Pe(V,G){if(V==null&&G==null)return!0;if(V==null||G==null)return!1;const ue=mo(V),Me=mo(G);return ue&&Me?V.getTime()===G.getTime():ue||Me?!1:Pe(V.start,G.start)&&Pe(V.end,G.end)}function de(V){return!it(V)||!o.value?!1:o.value.intersectsRange(a.value.range(V))}function xe(V,G,ue,Me){if(!it(V))return null;if(Ne(V)){const Xe=a.value.toDate(V.start,{...G[0],fillDate:M.value??void 0,patch:ue}),ut=a.value.toDate(V.end,{...G[1],fillDate:E.value??void 0,patch:ue});return pn({start:Xe,end:ut},Me)}return a.value.toDateOrNull(V,{...G[0],fillDate:h.value,patch:ue})}function Ie(V,G){return Ne(V)?{start:a.value.fromDate(V.start,G[0]),end:a.value.fromDate(V.end,G[1])}:C.value?null:a.value.fromDate(V,G[0])}function Fe(V,G={}){return clearTimeout(_),new Promise(ue=>{const{debounce:Me=0,...Xe}=G;Me>0?_=window.setTimeout(()=>{ue(Ye(V,Xe))},Me):ue(Ye(V,Xe))})}function Ye(V,{config:G=T.value,patch:ue="dateTime",clearIfEqual:Me=!1,formatInput:Xe=!0,hidePopover:ut=!1,dragging:Dt=P.value,targetPriority:ln,moveToValue:Jt=!1}={}){const Gn=Oe(G);let bt=xe(V,Gn,ue,ln);if(de(bt)){if(Dt)return null;bt=h.value,ut=!1}else bt==null&&e.isRequired?bt=h.value:bt!=null&&Pe(h.value,bt)&&Me&&(bt=null);const On=Dt?f:h,ai=!Pe(On.value,bt);On.value=bt,Dt||(f.value=null);const Ui=Ie(bt,T.value);return ai&&(k=!1,t(Dt?"drag":"update:modelValue",Ui),i.nextTick(()=>k=!0)),ut&&!Dt&&Ue(),Xe&&et(),Jt&&i.nextTick(()=>K(ln??"start")),Ui}function et(){i.nextTick(()=>{const V=Oe({type:"string",mask:U.value}),G=Ie(f.value??h.value,V);C.value?m.value=[G&&G.start,G&&G.end]:m.value=[G,""]})}function Pt(V,G,ue){m.value.splice(G==="start"?0:1,1,V);const Me=C.value?{start:m.value[0],end:m.value[1]||m.value[0]}:V,Xe={type:"string",mask:U.value};Fe(Me,{...ue,config:Xe,patch:ne.value,targetPriority:G,moveToValue:!0})}function tt(V){return G=>{e.updateOnInput&&Pt(G.currentTarget.value,V,{formatInput:!1,hidePopover:!1,debounce:e.inputDebounce})}}function yt(V){return G=>{Pt(G.currentTarget.value,V,{formatInput:!0,hidePopover:!1})}}function Zt(V){V.key==="Escape"&&Fe(h.value,{formatInput:!0,hidePopover:!0})}function Xt(V){return C.value?[V&&V.start?a.value.getDateParts(V.start):null,V&&V.end?a.value.getDateParts(V.end):null]:[V?a.value.getDateParts(V):null]}function ft(){f.value=null,et()}function ot(V){t("popover-will-show",V)}function $t(V){t("popover-did-show",V)}function Ct(V){ft(),t("popover-will-hide",V)}function Bt(V){t("popover-did-hide",V)}function xt(V){const G={patch:"date",formatInput:!0,hidePopover:!0};if(C.value){const ue=!P.value;ue?w={start:V.startDate,end:V.endDate}:w!=null&&(w.end=V.date),Fe(w,{...G,dragging:ue})}else Fe(V.date,{...G,clearIfEqual:!e.isRequired})}function nn(V,G){xt(V),t("dayclick",V,G)}function Et(V,G){switch(G.key){case" ":case"Enter":{xt(V),G.preventDefault();break}case"Escape":Ue()}t("daykeydown",V,G)}function oe(V,G){!P.value||w==null||(w.end=V.date,Fe(pn(w),{patch:"date",formatInput:!0}))}function Le(V={}){C0({...le.value,...V,isInteractive:!0,id:d.value})}function Ue(V={}){uc({hideDelay:10,force:!0,...le.value,...V,id:d.value})}function rn(V){H5({...le.value,...V,isInteractive:!0,id:d.value})}function pn(V,G){const{start:ue,end:Me}=V;if(ue>Me)switch(G){case"start":return{start:ue,end:ue};case"end":return{start:Me,end:Me};default:return{start:Me,end:ue}}return{start:ue,end:Me}}async function ae(V,G={}){return y.value==null?!1:y.value.move(V,G)}async function R(V,G={}){return y.value==null?!1:y.value.moveBy(V,G)}async function K(V,G={}){const ue=h.value;if(y.value==null||!it(ue))return!1;const Me=V!=="end",Xe=Me?1:-1,ut=Ne(ue)?Me?ue.start:ue.end:ue,Dt=b5(ut,"monthly",a.value);return y.value.move(Dt,{position:Xe,...G})}i.watch(()=>e.isRange,V=>{V&&console.warn("The `is-range` prop will be deprecated in future releases. Please use the `range` modifier.")},{immediate:!0}),i.watch(()=>C.value,()=>{Ye(null,{formatInput:!0})}),i.watch(()=>U.value,()=>et()),i.watch(()=>e.modelValue,V=>{k&&Ye(V,{formatInput:!0,hidePopover:!1})}),i.watch(()=>fe.value,()=>{Mr(e.rules)&&Ye(e.modelValue,{formatInput:!0,hidePopover:!1})}),i.watch(()=>e.timezone,()=>{Ye(h.value,{formatInput:!0})});const be=De(T.value);h.value=xe(e.modelValue??null,be,"dateTime"),i.onMounted(()=>{Ye(e.modelValue,{formatInput:!0,hidePopover:!1})}),i.nextTick(()=>l.value=!0);const j={...r,showCalendar:l,datePickerPopoverId:d,popoverRef:g,popoverEvents:J,calendarRef:y,isRange:C,isTimeMode:I,isDateTimeMode:$,is24hr:i.toRef(e,"is24hr"),hideTimeHeader:i.toRef(e,"hideTimeHeader"),timeAccuracy:i.toRef(e,"timeAccuracy"),isDragging:P,inputValue:pe,inputEvents:Q,dateParts:W,attributes:z,rules:fe,move:ae,moveBy:R,moveToValue:K,updateValue:Fe,showPopover:Le,hidePopover:Ue,togglePopover:rn,onDayClick:nn,onDayKeydown:Et,onDayMouseEnter:oe,onPopoverBeforeShow:ot,onPopoverAfterShow:$t,onPopoverBeforeHide:Ct,onPopoverAfterHide:Bt};return i.provide(av,j),j}function B0(){const e=i.inject(av);if(e)return e;throw new Error("DatePicker context missing. Please verify this component is nested within a valid context provider.")}const gG=[{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"}],yG=[{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 bG(e){const t=B0(),{locale:n,isRange:r,isTimeMode:a,dateParts:s,rules:o,is24hr:l,hideTimeHeader:d,timeAccuracy:h,updateValue:f}=t;function m(Y){Y=Object.assign(y.value,Y);let ne=null;if(r.value){const le=g.value?Y:s.value[0],J=g.value?s.value[1]:Y;ne={start:le,end:J}}else ne=Y;f(ne,{patch:"time",targetPriority:g.value?"start":"end",moveToValue:!0})}const g=i.computed(()=>e.position===0),y=i.computed(()=>s.value[e.position]||{isValid:!1}),_=i.computed(()=>_0(y.value)),w=i.computed(()=>!!y.value.isValid),k=i.computed(()=>!d.value&&w.value),C=i.computed(()=>{if(!_.value)return null;let Y=n.value.toDate(y.value);return y.value.hours===24&&(Y=new Date(Y.getTime()-1)),Y}),M=i.computed({get(){return y.value.hours},set(Y){m({hours:Y})}}),E=i.computed({get(){return y.value.minutes},set(Y){m({minutes:Y})}}),x=i.computed({get(){return y.value.seconds},set(Y){m({seconds:Y})}}),$=i.computed({get(){return y.value.milliseconds},set(Y){m({milliseconds:Y})}}),I=i.computed({get(){return y.value.hours<12},set(Y){Y=String(Y).toLowerCase()=="true";let ne=M.value;Y&&ne>=12?ne-=12:!Y&&ne<12&&(ne+=12),m({hours:ne})}}),P=i.computed(()=>Rj(y.value,o.value[e.position])),T=i.computed(()=>gG.filter(Y=>P.value.hours.some(ne=>ne.value===Y.value))),W=i.computed(()=>yG.filter(Y=>P.value.hours.some(ne=>ne.value===Y.value))),U=i.computed(()=>l.value?P.value.hours:I.value?T.value:W.value),ee=i.computed(()=>{const Y=[];return Br(T.value)&&Y.push({value:!0,label:"AM"}),Br(W.value)&&Y.push({value:!1,label:"PM"}),Y});return{...t,showHeader:k,timeAccuracy:h,parts:y,isValid:w,date:C,hours:M,minutes:E,seconds:x,milliseconds:$,options:P,hourOptions:U,isAM:I,isAMOptions:ee,is24hr:l}}const vG=["value"],_G=["value","disabled"],wG={key:1,class:"vc-base-sizer","aria-hidden":"true"},kG={inheritAttrs:!1},hc=i.defineComponent({...kG,__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,n=i.computed(()=>{const r=t.options.find(a=>a.value===t.modelValue);return r==null?void 0:r.label});return(r,a)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-base-select",{"vc-fit-content":e.fitContent,"vc-has-icon":e.showIcon}])},[i.createElementVNode("select",i.mergeProps(r.$attrs,{value:e.modelValue,class:["vc-focus",{"vc-align-right":e.alignRight,"vc-align-left":e.alignLeft}],onChange:a[0]||(a[0]=s=>r.$emit("update:modelValue",s.target.value))}),[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.options,s=>(i.openBlock(),i.createElementBlock("option",{key:s.value,value:s.value,disabled:s.disabled},i.toDisplayString(s.label),9,_G))),128))],16,vG),e.showIcon?(i.openBlock(),i.createBlock(_o,{key:0,name:"ChevronDown",size:"18"})):i.createCommentVNode("",!0),e.fitContent?(i.openBlock(),i.createElementBlock("div",wG,i.toDisplayString(i.unref(n)),1)):i.createCommentVNode("",!0)],2))}}),CG={key:0,class:"vc-time-header"},xG={class:"vc-time-weekday"},SG={class:"vc-time-month"},MG={class:"vc-time-day"},BG={class:"vc-time-year"},EG={class:"vc-time-select-group"},DG=i.createElementVNode("span",{class:"vc-time-colon"},":",-1),OG=i.createElementVNode("span",{class:"vc-time-colon"},":",-1),VG=i.createElementVNode("span",{class:"vc-time-decimal"},".",-1),sv=i.defineComponent({__name:"TimePicker",props:{position:null},setup(e,{expose:t}){const r=bG(e);t(r);const{locale:a,isValid:s,date:o,hours:l,minutes:d,seconds:h,milliseconds:f,options:m,hourOptions:g,isTimeMode:y,isAM:_,isAMOptions:w,is24hr:k,showHeader:C,timeAccuracy:M}=r;return(E,x)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-time-picker",[{"vc-invalid":!i.unref(s),"vc-attached":!i.unref(y)}]])},[i.createVNode(ki,{name:"time-header"},{default:i.withCtx(()=>[i.unref(C)&&i.unref(o)?(i.openBlock(),i.createElementBlock("div",CG,[i.createElementVNode("span",xG,i.toDisplayString(i.unref(a).formatDate(i.unref(o),"WWW")),1),i.createElementVNode("span",SG,i.toDisplayString(i.unref(a).formatDate(i.unref(o),"MMM")),1),i.createElementVNode("span",MG,i.toDisplayString(i.unref(a).formatDate(i.unref(o),"D")),1),i.createElementVNode("span",BG,i.toDisplayString(i.unref(a).formatDate(i.unref(o),"YYYY")),1)])):i.createCommentVNode("",!0)]),_:1}),i.createElementVNode("div",EG,[i.createVNode(_o,{name:"Clock",size:"17"}),i.createVNode(hc,{modelValue:i.unref(l),"onUpdate:modelValue":x[0]||(x[0]=$=>i.isRef(l)?l.value=$:null),modelModifiers:{number:!0},options:i.unref(g),class:"vc-time-select-hours","align-right":""},null,8,["modelValue","options"]),i.unref(M)>1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[DG,i.createVNode(hc,{modelValue:i.unref(d),"onUpdate:modelValue":x[1]||(x[1]=$=>i.isRef(d)?d.value=$:null),modelModifiers:{number:!0},options:i.unref(m).minutes,class:"vc-time-select-minutes","align-left":i.unref(M)===2},null,8,["modelValue","options","align-left"])],64)):i.createCommentVNode("",!0),i.unref(M)>2?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[OG,i.createVNode(hc,{modelValue:i.unref(h),"onUpdate:modelValue":x[2]||(x[2]=$=>i.isRef(h)?h.value=$:null),modelModifiers:{number:!0},options:i.unref(m).seconds,class:"vc-time-select-seconds","align-left":i.unref(M)===3},null,8,["modelValue","options","align-left"])],64)):i.createCommentVNode("",!0),i.unref(M)>3?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[VG,i.createVNode(hc,{modelValue:i.unref(f),"onUpdate:modelValue":x[3]||(x[3]=$=>i.isRef(f)?f.value=$:null),modelModifiers:{number:!0},options:i.unref(m).milliseconds,class:"vc-time-select-milliseconds","align-left":""},null,8,["modelValue","options"])],64)):i.createCommentVNode("",!0),i.unref(k)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(hc,{key:3,modelValue:i.unref(_),"onUpdate:modelValue":x[4]||(x[4]=$=>i.isRef(_)?_.value=$:null),options:i.unref(w)},null,8,["modelValue","options"]))])],2))}}),ov=i.defineComponent({__name:"DatePickerBase",setup(e){const{attributes:t,calendarRef:n,color:r,displayMode:a,isDateTimeMode:s,isTimeMode:o,isRange:l,onDayClick:d,onDayMouseEnter:h,onDayKeydown:f}=B0(),m=l.value?[0,1]:[0];return(g,y)=>i.unref(o)?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(`vc-container vc-bordered vc-${i.unref(r)} vc-${i.unref(a)}`)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(m),_=>(i.openBlock(),i.createBlock(sv,{key:_,position:_},null,8,["position"]))),128))],2)):(i.openBlock(),i.createBlock(hG,{key:1,attributes:i.unref(t),ref_key:"calendarRef",ref:n,onDayclick:i.unref(d),onDaymouseenter:i.unref(h),onDaykeydown:i.unref(f)},{footer:i.withCtx(()=>[i.unref(s)?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(i.unref(m),_=>(i.openBlock(),i.createBlock(sv,{key:_,position:_},null,8,["position"]))),128)):i.createCommentVNode("",!0),i.createVNode(ki,{name:"dp-footer"})]),_:1},8,["attributes","onDayclick","onDaymouseenter","onDaykeydown"]))}}),$G={inheritAttrs:!1},TG=i.defineComponent({...$G,__name:"DatePickerPopover",setup(e){const{datePickerPopoverId:t,color:n,displayMode:r,popoverRef:a,onPopoverBeforeShow:s,onPopoverAfterShow:o,onPopoverBeforeHide:l,onPopoverAfterHide:d}=B0();return(h,f)=>(i.openBlock(),i.createBlock(M0,{id:i.unref(t),placement:"bottom-start",class:i.normalizeClass(`vc-date-picker-content vc-${i.unref(n)} vc-${i.unref(r)}`),ref_key:"popoverRef",ref:a,onBeforeShow:i.unref(s),onAfterShow:i.unref(o),onBeforeHide:i.unref(l),onAfterHide:i.unref(d)},{default:i.withCtx(()=>[i.createVNode(ov,i.normalizeProps(i.guardReactiveProps(h.$attrs)),null,16)]),_:1},8,["id","class","onBeforeShow","onAfterShow","onBeforeHide","onAfterHide"]))}}),IG=i.defineComponent({inheritAttrs:!1,emits:pG,props:fG,components:{DatePickerBase:ov,DatePickerPopover:TG},setup(e,t){const n=mG(e,t),r=i.reactive(r5(n,"calendarRef","popoverRef"));return{...n,slotCtx:r}}});function AG(e,t,n,r,a,s){const o=i.resolveComponent("DatePickerPopover"),l=i.resolveComponent("DatePickerBase");return e.$slots.default?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.renderSlot(e.$slots,"default",i.normalizeProps(i.guardReactiveProps(e.slotCtx))),i.createVNode(o,i.normalizeProps(i.guardReactiveProps(e.$attrs)),null,16)],64)):(i.openBlock(),i.createBlock(l,i.normalizeProps(i.mergeProps({key:1},e.$attrs)),null,16))}const NG=ma(IG,[["render",AG]]),wo=e=>/^(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/.test(e),E0={components:{VDatePicker:NG,CdsChevron:Ts,CdsIcon:ke},props:{modelValue:{type:[String,Object],default:"",validator:e=>e===""||typeof e=="object"||wo(e)},label:{type:String,default:"Date"},disabled:{type:Boolean,default:!1},range:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},minDate:{type:String,default:"",validator:e=>e===""||wo(e)},maxDate:{type:String,default:"",validator:e=>e===""||wo(e)},placeholder:{type:String,default:"Selecione uma data"},showTodayDot:{type:Boolean,default:!1},variant:{type:String,default:"green"}},data(){return{sassColorVariables:yi,internalDate:ce.now(),isBeingFocused:!1,inputControl:0,attributes:[{dates:new Date,dot:!0}],variantColorData:{}}},computed:{errorState(){return this.state==="invalid"},hasSlots(){return!!Object.keys(this.$slots).length},capitalizedLabel(){return this.label.charAt(0).toUpperCase()+this.label.slice(1)},dateInputClassContainer(){let e="";return this.disabled?this.fluid?"inline-date-input--disabled inline-date-input--fluid":"inline-date-input--disabled":(e+=this.fluid?" date-input--fluid":" date-input",e)},inputClass(){let e="";return this.disabled?this.fluid?"date-input--disabled date-input--fluid":"date-input--disabled":(e+=this.fluid?" date-input--fluid":" date-input",e)},inlineCalendarDotColor(){return this.variantColorData.colorData[4].shade},inlineCalendarTextColor(){return this.variantColorData.colorData[7].shade},inlineCalendarTrailColor(){return this.variantColorData.colorData[1].shade}},watch:{modelValue(e,t){e!==t&&this.resolveInternalDate()},variant(e,t){e!==t&&this.updateColorData()}},created(){this.updateColorData()},mounted(){this.resolveInternalDate()},methods:{paleteBuilder:Cr,updateColorData(){this.variantColorData=this.paleteBuilder(yi.palete).find(e=>e.variantName.toLowerCase()===this.variant)},handleUpdateInput(e){if(this.range){this.$emit("update:modelValue",e.start&&e.end?{start:ce.fromJSDate(e.start).toFormat("yyyy-MM-dd"),end:ce.fromJSDate(e.end).toFormat("yyyy-MM-dd")}:"");return}this.$emit("update:modelValue",e?ce.fromJSDate(e).toFormat("yyyy-MM-dd"):"")},resolveInternalDate(){if(!this.modelValue){this.internalDate=this.range?null:"";return}if(this.range){this.internalDate=wo(this.modelValue.start)&&wo(this.modelValue.end)?{start:ce.fromFormat(this.modelValue.start,"yyyy-MM-dd"),end:ce.fromFormat(this.modelValue.end,"yyyy-MM-dd")}:{start:ce.now(),end:ce.now()};return}this.internalDate=wo(this.modelValue)?ce.fromFormat(this.modelValue,"yyyy-MM-dd"):ce.now()},resolveInputValue(e){return typeof e!="object"?e:!e.start&&!e.end||Bn.isEmpty(e)?null:`${e.start} a ${e.end}`}}},lv=()=>{i.useCssVars(e=>({"2a014cba":e.inlineCalendarTrailColor,"60dfc8d0":e.inlineCalendarTextColor,"311f6c80":e.inlineCalendarDotColor}))},cv=E0.setup;E0.setup=cv?(e,t)=>(lv(),cv(e,t)):lv;const LG={key:0},zG={key:1,class:"inline-date-input__label"},PG={class:"label__content",for:"cds-text-input"},FG=["value","disabled","placeholder","onClick"],RG={class:"inline-date-input__icon"};function HG(e,t,n,r,a,s){const o=i.resolveComponent("cds-chevron"),l=i.resolveComponent("cds-icon"),d=i.resolveComponent("v-date-picker");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["inline-date-input__container",s.dateInputClassContainer])},[i.createElementVNode("span",null,[s.hasSlots?(i.openBlock(),i.createElementBlock("span",LG,[i.renderSlot(e.$slots,"label",{},void 0,!0)])):(i.openBlock(),i.createElementBlock("label",zG,[i.createElementVNode("div",PG,[i.createElementVNode("span",null,i.toDisplayString(s.capitalizedLabel)+": ",1)])]))]),i.createVNode(d,{id:"cds--inline-date-input",modelValue:a.internalDate,"onUpdate:modelValue":[t[2]||(t[2]=h=>a.internalDate=h),s.handleUpdateInput],locale:"pt-BR","min-date":n.minDate?new Date(n.minDate):null,"max-date":n.maxDate?new Date(n.maxDate):null,attributes:n.showTodayDot?a.attributes:{},color:n.variant,"is-range":n.range},{"header-left-button":i.withCtx(({page:h})=>[i.createVNode(o,{direction:"left",onClick:f=>h.movePrevMonth()},null,8,["onClick"])]),"header-right-button":i.withCtx(({page:h})=>[i.createVNode(o,{direction:"right",onClick:f=>h.moveNextMonth()},null,8,["onClick"])]),default:i.withCtx(({inputValue:h,togglePopover:f,inputEvents:m})=>[i.createElementVNode("div",{class:i.normalizeClass(s.inputClass)},[i.createElementVNode("input",i.mergeProps({value:s.resolveInputValue(h),disabled:n.disabled,placeholder:n.placeholder,type:"text"},i.toHandlers(m,!0),{onClick:f,onFocus:t[0]||(t[0]=g=>a.isBeingFocused=!0),onBlur:t[1]||(t[1]=g=>a.isBeingFocused=!1)}),null,16,FG),i.createElementVNode("div",RG,[i.createVNode(l,{height:"20",width:"20",name:"calendar-outline"})])],2)]),_:1},8,["modelValue","min-date","max-date","attributes","color","is-range","onUpdate:modelValue"])],2)}const WG=te(E0,[["render",HG],["__scopeId","data-v-fd91d96d"]]),YG=["onClick"],UG={key:1,class:"list__body"},jG={class:"list__content"},qG={class:"list__actions"},GG={key:1},KG=te({__name:"List",props:{items:{type:Array,required:!0,default:()=>[]},variant:{type:String,default:"blue",validator:e=>Ri.includes(e)},clickable:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){i.useCssVars(l=>({c2849558:s.value}));const{isMobile:n}=su(),r=t,a=e,s=i.computed(()=>a.clickable?"pointer":"");function o(l){!a.clickable&&!n.value||r("click",l)}return(l,d)=>(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,(h,f)=>(i.openBlock(),i.createElementBlock("div",{key:f,class:"list",onClick:m=>o(h)},[i.unref(tc)("item")?i.renderSlot(l.$slots,"item",{key:0,item:h},void 0,!0):(i.openBlock(),i.createElementBlock("div",UG,[i.createElementVNode("div",{class:i.normalizeClass(["list__title",`list__title--${e.variant}`])},i.toDisplayString(h.title),3),i.createElementVNode("div",jG,i.toDisplayString(h.content),1)])),i.createElementVNode("div",qG,[i.unref(n)?(i.openBlock(),i.createBlock(ke,{key:0,height:"24",width:"24",name:"caret-right-outline"})):(i.openBlock(),i.createElementBlock("div",GG,[i.renderSlot(l.$slots,"actions",{item:h},void 0,!0)]))])],8,YG))),128))}},[["__scopeId","data-v-59486d91"]]),ZG={};function XG(e,t,n,r,a,s){return i.openBlock(),i.createElementBlock("div",null,t[0]||(t[0]=[i.createElementVNode("div",{class:"loading-bar__container"},[i.createElementVNode("div",{class:"loading-bar"})],-1)]))}const JG=te(ZG,[["render",XG],["__scopeId","data-v-59f3ef96"]]),QG=te({__name:"LoadingIndicator",props:{modelValue:{type:Boolean,default:!1,required:!0},variant:{type:String,default:"green"},intervalTime:{type:Number,default:500}},setup(e){i.useCssVars(h=>({e0a02066:r.value,"31f71fda":s.value,"51509f9e":a.value}));const t=e,n=i.ref(0),r=i.computed(()=>`${n.value}%`),a=i.computed(()=>n.value===0?"none":"width 0.5s"),s=i.computed(()=>Xa("smartphone")||Xa("tablet")?"4px":"3px");i.watch(()=>t.modelValue,h=>{if(h){o(),l();return}d()});function o(){n.value=1}function l(){if(n.value>0&&n.value<90){if(n.value+=Math.floor(Math.random()*16+10),n.value>=90){n.value=90;return}let h=Math.floor(Math.random()*(t.intervalTime*1.4-t.intervalTime*.5)+t.intervalTime*.5);setTimeout(l,h)}}function d(){n.value=100,setTimeout(()=>{n.value=0},600)}return(h,f)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(`loading-indicator--${e.variant}`)},null,2))}},[["__scopeId","data-v-fe0c8374"]]),eK={class:"mobile-navbar"},tK={class:"mobile-navbar__items"},nK={key:0,class:"mobile-navbar__item-text"},iK=te({__name:"MobileNavbar",props:{items:{type:Array,required:!0,validator:e=>e.length>0&&e.lenght<=5&&e.every(t=>t.route.path&&t.route.name)},variant:{type:String,default:"green"},showLabel:{type:Boolean,default:!1},activeItem:{type:Object,default:()=>({}),required:!0}},emits:["item-click"],setup(e,{emit:t}){const n=e,r=t,a=i.ref(n.items[0]),s=i.ref(0),o=i.computed(()=>({width:`${100/n.items.length}%`,transform:`translateX(${s.value*100}%)`})),l=i.computed(()=>{let f="";switch(s.value){case 0:f+="mobile-navbar__indicator--first ";break;case n.items.length-1:f+="mobile-navbar__indicator--last ";break;default:f+="mobile-navbar__indicator ";break}return f.concat(`mobile-navbar__indicator--${n.variant}`)});i.watchEffect(()=>{s.value=n.items.findIndex(f=>f.label===a.value.label)}),i.watch(n.activeItem,f=>{a.value=f}),i.onMounted(()=>a.value=n.activeItem||n.items[0]);function d(f){return f.route.name?{name:f.route.name}:{path:f.route.path}}function h(f){a.value=f,r("item-click",f)}return(f,m)=>{const g=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",eK,[i.createElementVNode("div",tK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,y=>(i.openBlock(),i.createBlock(g,{key:y,class:"mobile-navbar__item-link",to:d(y),onClick:_=>h(y)},{default:i.withCtx(()=>{var _,w;return[i.createElementVNode("div",{class:i.normalizeClass(["mobile-navbar__item",{"mobile-navbar__item--active":((_=a.value)==null?void 0:_.label)===y.label,[`mobile-navbar__item--active--${e.variant}`]:((w=a.value)==null?void 0:w.label)===y.label}])},[i.createVNode(ke,{height:"20",width:"20",name:y.icon},null,8,["name"]),e.showLabel?(i.openBlock(),i.createElementBlock("div",nK,i.toDisplayString(y.label),1)):i.createCommentVNode("",!0)],2)]}),_:2},1032,["to","onClick"]))),128)),i.createElementVNode("div",{class:i.normalizeClass(l.value),style:i.normalizeStyle(o.value)},null,6)])])}}},[["__scopeId","data-v-9bc49d6e"]]),rK={class:"mobile-navigation__header"},aK={class:"mobile-navigation__title"},sK={class:"mobile-navigation__sidebar-header"},oK={class:"mobile-navigation__sidebar-logo"},lK=["src"],cK={class:"mobile-navigation__sidebar-content"},dK={class:"mobile-navigation__sidebar-items"},uK={class:"mobile-navigation__sidebar-footer"},hK={class:"mobile-navigation__sidebar-user-text"},fK=te({__name:"MobileNavigation",props:{variant:{type:String,default:"green"},light:{type:Boolean,default:!1},sidebarLogo:{type:String,default:""},items:{type:Array,default:()=>[]},activeItem:{type:Object,default:()=>{}},user:{type:Object,default:()=>{}},sticky:{type:Boolean,default:!1}},emits:["logout","item-click","profile-click"],setup(e,{emit:t}){const n=e,r=t,a=i.ref(n.activeItem),s=i.ref(!1),o=i.computed(()=>n.light?"light":"dark"),l=i.computed(()=>{let w=`mobile-navigation mobile-navigation--${o.value}`;return n.sticky&&(w+=" mobile-navigation--sticky"),w});i.watch(s,async(w,k)=>{w!==k&&_(w)}),i.watch(()=>n.activeItem,w=>{a.value=w});const d=()=>{s.value=!0},h=()=>{s.value=!1},f=w=>Bn.isEqual(w,a.value),m=w=>{Bn.isEmpty(n.activeItem)&&(a.value=w),s.value=!1,r("item-click",w)},g=({route:w,path:k})=>{const C=Bn.isEmpty(w)?k:w;return C instanceof String?{path:C}:C},y=w=>g(w)?g(w).path:null,_=w=>{document.body.style.overflow=w?"hidden":"auto"};return(w,k)=>{const C=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(l.value)},[i.createElementVNode("div",{class:i.normalizeClass(`variant-resolver--${e.variant}`)},[i.createElementVNode("div",rK,[i.createElementVNode("div",aK,i.toDisplayString(a.value.label??""),1),i.createElementVNode("div",{class:"mobile-navigation__menu-btn",onClick:d},[i.createVNode(ke,{name:"menu-outline"})])]),i.createElementVNode("div",{class:i.normalizeClass(["mobile-navigation__sidebar",{"mobile-navigation__sidebar--expanded":s.value}])},[i.createElementVNode("div",sK,[i.createElementVNode("div",oK,[i.renderSlot(w.$slots,"sidebar-logo",{},()=>[i.createElementVNode("img",{src:e.sidebarLogo},null,8,lK)],!0)]),i.createElementVNode("div",{class:"mobile-navigation__sidebar-btn",onClick:h},[i.createVNode(ke,{name:"x-outline"})])]),i.createElementVNode("div",cK,[i.createElementVNode("div",dK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,M=>(i.openBlock(),i.createBlock(C,{key:M.label,to:y(M),class:i.normalizeClass(["mobile-navigation__sidebar-item",{"mobile-navigation__sidebar-item--active":f(M)}]),onClick:E=>m(M)},{default:i.withCtx(()=>[i.createVNode(ke,{name:M.icon,width:"24",height:"24"},null,8,["name"]),i.createElementVNode("span",null,i.toDisplayString(M.label),1)]),_:2},1032,["to","class","onClick"]))),128))]),i.createElementVNode("div",uK,[i.createElementVNode("div",{class:"mobile-navigation__sidebar-user-info",onClick:k[0]||(k[0]=M=>r("profile-click"))},[i.createVNode(pl,{src:e.user.picture??"",name:e.user.name??"",variant:e.variant,size:"lg"},null,8,["src","name","variant"]),i.createElementVNode("div",hK,[i.createElementVNode("p",null,i.toDisplayString(e.user.name??""),1),i.createElementVNode("p",null,i.toDisplayString(e.user.role??""),1)])]),i.createElementVNode("button",{class:"mobile-navigation__sidebar-logout",onClick:k[1]||(k[1]=M=>r("logout"))},[i.createVNode(ke,{name:"logout-outline",width:"24",height:"24"})])])])],2)],2)],2)}}},[["__scopeId","data-v-0bc86eef"]]),pK=["teal","green","blue","indigo","violet","pink","red","orange","amber"],mK={components:{CdsIcon:ke,CdsButton:ti,CdsScrollable:ad},props:{modelValue:{type:Boolean,default:!1,required:!0},title:{type:String,default:"Título"},size:{type:String,default:"md"},disableOkButton:{type:Boolean,default:!1},disableCancelButton:{type:Boolean,default:!1},noCloseOnBackdrop:{type:Boolean,default:!1},noCloseOkButton:{type:Boolean,default:!1},noCloseCancelButton:{type:Boolean,default:!1},noCloseButton:{type:Boolean,default:!1},noCancelButton:{type:Boolean,default:!1},noFooter:{type:Boolean,default:!1},noHeader:{type:Boolean,default:!1},okButtonText:{type:String,default:"Confirmar"},cancelButtonText:{type:String,default:"Cancelar"},actionButtonVariant:{type:String,default:"green",validator:e=>pK.includes(e)},scrollable:{type:Boolean,default:!1}},data(){return{innerValue:!1,tmp:""}},computed:{maxBodyHeight(){return`${window.innerHeight*.9-32*2-68-64}px`}},watch:{modelValue(e){this.innerValue=e}},mounted(){this.innerValue=this.modelValue},methods:{closeHandle(){this.innerValue=!this.innerValue,this.$emit("close",!0),this.$emit("update:modelValue",!1)},okHandle(){this.noCloseOkButton||(this.innerValue=!this.innerValue,this.$emit("update:modelValue",!1)),this.$emit("ok",!0)},cancelHandle(){this.noCloseCancelButton||(this.innerValue=!this.innerValue,this.$emit("close",!0),this.$emit("update:modelValue",!1)),this.$emit("cancel")}}},gK={key:0,class:"cds-modal__backdrop"},yK={key:0},bK={class:"cds-modal__header"},vK={key:1,class:"cds-modal__body"},_K={key:1,class:"cds-modal__footer"};function wK(e,t,n,r,a,s){const o=i.resolveComponent("cds-icon"),l=i.resolveComponent("cds-scrollable"),d=i.resolveComponent("cds-button"),h=i.resolveDirective("cds-click-outside");return a.innerValue?(i.openBlock(),i.createElementBlock("div",gK,[a.innerValue?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["cds-modal",`cds-modal--${n.size}`])},[n.noHeader?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("header",yK,[i.renderSlot(e.$slots,"header",{},()=>[i.createElementVNode("div",bK,[i.createElementVNode("h3",null,i.toDisplayString(n.title),1),n.noCloseButton?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"cds-modal__close-icon",onClick:t[0]||(t[0]=(...f)=>s.closeHandle&&s.closeHandle(...f))},[i.createVNode(o,{name:"x-outline",height:"20",width:"20",color:"#29333D"})]))])],!0)])),i.createElementVNode("section",null,[n.scrollable?(i.openBlock(),i.createBlock(l,{key:0,class:"cds-modal__body"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3})):(i.openBlock(),i.createElementBlock("div",vK,[i.renderSlot(e.$slots,"default",{},void 0,!0)]))]),n.noFooter?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("footer",_K,[i.renderSlot(e.$slots,"footer",{},()=>[n.noCancelButton?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(d,{key:0,text:n.cancelButtonText,secondary:"",disabled:n.disableCancelButton,onClick:t[1]||(t[1]=f=>n.disableCancelButton?!1:s.cancelHandle())},null,8,["text","disabled"])),i.createVNode(d,{class:"footer__ok-button",text:n.okButtonText,variant:n.actionButtonVariant,disabled:n.disableOkButton,onClick:t[2]||(t[2]=f=>n.disableOkButton?!1:s.okHandle())},null,8,["text","variant","disabled"])],!0)]))],2)),[[h,n.noCloseOnBackdrop?()=>{}:s.closeHandle]]):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)}const dv=te(mK,[["render",wK],["__scopeId","data-v-57e87b69"]]),kK={ref:"monthAndYearPicker",class:"month-and-year-picker"},CK={class:"month-and-year-picker__icon"},xK={class:"dropdown__header"},SK=te({__name:"MonthAndYearPicker",props:i.mergeModels({label:{type:String,default:"Label"},variant:{type:String,default:"green"},state:{type:String,default:"default"},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1},floatingLabel:{type:Boolean,default:!1},placeholder:{type:String,default:"Selecione uma data"},errorMessage:{type:String,default:"Valor inválido"},minDate:{type:String,default:""},maxDate:{type:String,default:""},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},supportingText:{type:[String,Array],default:""},supportLink:{type:String,default:null},supportLinkUrl:{type:String,default:"https://cuida.framer.wiki/"}},{modelValue:{type:String},modelModifiers:{}}),emits:["update:modelValue"],setup(e){i.useCssVars($=>({"2f8edad3":$.dateInputContainerWidth,"8869d91a":i.unref(c4),"3eb18a02":i.unref(l4)}));const t=i.useModel(e,"modelValue"),n=e,r=i.ref(!1),a=i.ref("down"),s=i.ref(ce.now().setLocale("pt-BR")),{clickedOutside:o,setTargetElement:l}=u4(),d=i.useTemplateRef("monthAndYearPicker"),h=i.computed(()=>s.value.toFormat("yyyy")),f=i.computed(()=>s.value.toFormat("MMMM/yyyy")),m=i.computed(()=>ce.fromFormat(n.minDate,"yyyy-MM-dd").toFormat("yyyy")===h.value?n.minDate:ce.fromFormat(`${h.value}-01-01`,"yyyy-MM-dd").setLocale("pt-BR").toFormat("yyyy-MM-dd")),g=i.computed(()=>ce.fromFormat(n.maxDate,"yyyy-MM-dd").toFormat("yyyy")===h.value?n.maxDate:ce.fromFormat(`${h.value}-12-31`,"yyyy-MM-dd").setLocale("pt-BR").toFormat("yyyy-MM-dd"));i.watch(o,$=>{$&&r.value&&(r.value=!1)}),i.watch(d,$=>{$&&l($)});function y($){s.value=s.value?s.value:ce.now().setLocale("pt-BR").toFormat("dd/MM/yyyy"),r.value=!r.value;let[I,P,T]=s.value.toFormat("dd/MM/yyyy").split("/");P=$.index,s.value=ce.fromObject({year:T,month:P}).setLocale("pt-BR"),t.value=s.value.toFormat("yyyy-MM")}const _=i.computed(()=>n.minDate?ce.fromFormat(n.minDate,"yyyy-MM-dd"):null),w=i.computed(()=>n.maxDate?ce.fromFormat(n.maxDate,"yyyy-MM-dd"):null);function k(){return _.value?s.value.minus({year:1}).startOf("year")>=_.value.startOf("year"):!0}function C(){return w.value?s.value.plus({year:1}).startOf("year")<=w.value.startOf("year"):!0}function M(){k()&&(s.value=s.value.minus({year:1}))}function E(){C()&&(s.value=s.value.plus({year:1}))}function x(){n.disabled||(a.value=o4(d,340,n.mobile||n.floatingLabel),r.value=!r.value)}return($,I)=>(i.openBlock(),i.createElementBlock("div",kK,[i.createVNode(rr,i.mergeProps({ref:"baseInput"},n,{modelValue:f.value,"onUpdate:modelValue":I[0]||(I[0]=P=>f.value=P),type:"text","floating-label":e.floatingLabel||e.mobile,readonly:!0,onClick:x}),{"trailing-icon":i.withCtx(()=>[i.createElementVNode("div",CK,[i.createVNode(ke,{height:"20",width:"20",name:"calendar-outline"})])]),_:1},16,["modelValue","floating-label"]),i.createVNode(i.Transition,{name:"month-and-year-picker-animation"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{ref:"calendar",class:i.normalizeClass(`month-and-year-picker__dropdown--${a.value}`),onMousedown:I[2]||(I[2]=i.withModifiers((...P)=>$.handleCalendarMouseDown&&$.handleCalendarMouseDown(...P),["prevent"]))},[i.createElementVNode("div",xK,[i.createElementVNode("span",{class:"dropdown__month-and-title--no-hover",onClick:I[1]||(I[1]=(...P)=>$.toggleYearPickerDisplay&&$.toggleYearPickerDisplay(...P))},i.toDisplayString(h.value),1),i.createVNode(St,null,{default:i.withCtx(()=>[i.createVNode(ke,{height:"20",width:"20",name:"caret-up-outline",class:i.normalizeClass(["dropdown__right-caret",{"dropdown__caret--disabled":!k()}]),onClick:M},null,8,["class"]),i.createVNode(ke,{height:"20",width:"20",name:"caret-down-outline",class:i.normalizeClass(["dropdown__left-caret",{"dropdown__caret--disabled":!C()}]),onClick:E},null,8,["class"])]),_:1})]),i.createVNode(d4,{ref:"monthPicker","selected-date":t.value,"min-date":m.value,"max-date":g.value,variant:e.variant,onClick:y},null,8,["selected-date","min-date","max-date","variant"])],34),[[i.vShow,r.value]])]),_:1})],512))}},[["__scopeId","data-v-a5ed7b60"]]),MK={ref:"cds-select",class:"select"},BK={key:0,class:"option__container"},EK=["onMouseover"],DK={key:1,class:"option__container"},OK={__name:"Select",props:i.mergeModels({label:{type:String,default:"Label"},placeholder:{type:String,default:"Selecione...",required:!1},options:{type:Array,default:()=>[],required:!0},state:{type:String,default:"default"},required:{type:Boolean,default:!1,required:!1},errorMessage:{type:String,default:"Valor inválido"},searchable:{type:Boolean,default:!1,required:!1},width:{type:String,default:"",required:!1},fluid:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},optionsField:{type:String,default:"value",required:!1},returnValue:{type:Boolean,default:!1,required:!1},linkText:{type:String,default:null},linkUrl:{type:String,default:"https://cuida.framer.wiki/"},supportLink:{type:String,default:null},supportingText:{type:[String,Array],default:""},supportLinkUrl:{type:String,default:"https://cuida.framer.wiki/"},mobile:{type:Boolean,default:!1},floatingLabel:{type:Boolean,default:!1}},{modelValue:{type:[Array,Object]},modelModifiers:{}}),emits:i.mergeModels({...da},["update:modelValue"]),setup(e,{expose:t,emit:n}){var it,Pe;i.useCssVars(de=>({"7bebed42":Y.value,"9cfd8530":W.value}));const r=i.useModel(e,"modelValue"),a=e,s=n,o=i.ref(0),l=i.ref(!1),d=i.ref(null),h=i.ref(!1),f=i.ref([]),m=i.ref([]),g=i.ref({value:"",id:""}),y=i.ref(""),_=i.ref("down"),w=i.ref(Gr()),k=i.useTemplateRef("baseInput"),C=i.useTemplateRef("cds-select"),M=i.useTemplateRef("select-options"),E=i.ref({}),{emitClick:x,emitFocus:$,emitBlur:I,emitKeydown:P}=ca(s),T=i.ref(0),W=i.computed(()=>a.mobile?"9px":"6px"),U=i.computed(()=>{let de="";const xe=a.mobile?"select__mobile-input":"select__input";return de+=` ${xe}--${Gh.find(Ie=>Ie===a.width)}`,de+=a.fluid?` ${xe}--fluid`:` ${xe}--fit`,de+=a.searchable?` ${xe}--searchable`:"",de}),ee=i.computed(()=>({"select__options--thin":a.width==="thin","select__options--default":a.width==="default","select__options--wide":a.width==="wide","select__options--fluid":a.fluid,"select__options--down":_.value==="down","select__options--up":_.value==="up"})),Y=i.computed(()=>a.fluid?"100%":"fit-content"),ne=i.computed(()=>Gh.some(de=>de===a.width)||a.fluid);i.watch(()=>a.searchable,(de,xe)=>{de!==xe&&(h.value=de)},{immediate:!0}),i.watch(()=>a.options,(de,xe)=>{de!==xe&&(f.value=de,m.value=de)},{immediate:!0}),i.watch(r,(de,xe)=>{de!==xe&&de!==g.value&&(de instanceof Object?g.value=de:g.value={id:de,value:de})},{immediate:!0}),i.watch(g,de=>{de===r.value||f.value.filter(Ie=>JSON.stringify(Ie)===JSON.stringify(de)).length===0||(a.returnValue?r.value=de[a.optionsField]:r.value=de)},{deep:!0}),i.onMounted(()=>{d.value=`cds-select-${w.value}`,y.value=C.value});function le(de){const xe=ic(String(de)||""),Ie=new RegExp(xe,"i");f.value=a.options.filter(Fe=>ic(Fe[a.optionsField]).search(Ie)>=0)}function J(){a.disabled||(Ne(),i.nextTick().then(()=>{var xe;const de=f.value[o.value];(xe=E.value[`${Bn.get(de,a.optionsField)}-${o.value}`])==null||xe.classList.add("highlight")}),$())}function pe(){a.disabled||(l.value=!l.value,Ne(),typeof f.value[o.value]>"u"?g.value=Vs(f.value[0]):g.value=Vs(f.value[o.value]),T.value+=1,k.value.blur())}function Q(){let de=y.value.getBoundingClientRect();de.top+de.height+286<window.innerHeight?_.value="down":_.value="up",!a.disabled&&(l.value=!l.value,x(),k.value.focus())}function me(){g.value=a.options.some(de=>{var xe,Ie;return((xe=de[a.optionsField])==null?void 0:xe.toLowerCase())===((Ie=Bn.get(g.value,a.optionsField))==null?void 0:Ie.toLowerCase())})?g.value:{},f.value=m.value,l.value=!1,I()}function ge(){g.value=Vs(f.value[o.value])}function z(de){const xe=f.value[de];return E.value[`${xe[a.optionsField]}-${de}`]}function fe(de,xe,Ie){const Fe=de.getBoundingClientRect(),Ye=M.value,et=Ye.getBoundingClientRect();Ie==="up"&&Fe.top<=et.top&&(Ye.scrollTop+=xe),Ie==="down"&&Fe.top>=et.bottom&&(Ye.scrollTop+=xe)}function he(){if(!l.value||o.value===f.value.length-1)return;o.value+=1;const de=z(o.value),xe=z(o.value-1);de.classList.add("highlight"),xe.classList.remove("highlight"),fe(de,37,"down")}function De(){if(!l.value||o.value===0)return;const de=z(o.value),xe=z(o.value-1);de.classList.remove("highlight"),xe.classList.add("highlight"),fe(de,-37,"up"),o.value-=1}function Oe(de){o.value=de,z(o.value).classList.add("highlight")}function we(){z(o.value).classList.remove("highlight")}function Ne(){f.value.forEach((de,xe)=>{const Ie=f.value[xe];E.value[`${Ie[a.optionsField]}-${xe}`].classList.remove("highlight")})}return t({componentRef:(it=k.value)==null?void 0:it.componentRef,isFocused:(Pe=k.value)==null?void 0:Pe.isFocused,focus:()=>{var de;return(de=k.value)==null?void 0:de.focus()},blur:()=>{var de;return(de=k.value)==null?void 0:de.blur()},clear:()=>{var de;return(de=k.value)==null?void 0:de.clear()},select:()=>{var de;return(de=k.value)==null?void 0:de.select()}}),(de,xe)=>(i.openBlock(),i.createElementBlock("div",MK,[i.createElementVNode("div",{class:i.normalizeClass(["select__container",e.fluid?"select__container--fluid":"select__container--fit"])},[(i.openBlock(),i.createBlock(rr,i.mergeProps({id:de.$attrs.id||d.value,key:T.value,ref:"baseInput"},{...de.$attrs,...a},{"model-value":i.unref(Bn.get)(g.value,e.optionsField),type:"text",onkeypress:`return ${h.value};`,placeholder:e.placeholder,disabled:e.disabled,readonly:!e.searchable,"support-link-url":e.supportLinkUrl||e.linkUrl,"support-link":e.supportLink||e.linkText,"floating-label":e.floatingLabel||e.mobile,class:U.value,fluid:ne.value,onKeydown:[i.withKeys(i.withModifiers(pe,["prevent"]),["enter"]),i.withKeys(i.withModifiers(he,["prevent"]),["arrow-down"]),i.withKeys(i.withModifiers(De,["prevent"]),["arrow-up"]),i.unref(P)],onClick:Q,"onUpdate:modelValue":le,onFocus:J,onBlur:me}),{"trailing-icon":i.withCtx(()=>[i.createElementVNode("span",{class:i.normalizeClass(l.value?"select__chevron--opened":"select__chevron--closed")},null,2)]),_:1},16,["id","model-value","onkeypress","placeholder","disabled","readonly","support-link-url","support-link","floating-label","class","fluid","onKeydown"])),i.withDirectives(i.createElementVNode("div",{ref:"select-options",class:i.normalizeClass(["select__options",ee.value])},[f.value.length>0?(i.openBlock(),i.createElementBlock("ul",BK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.value,(Ie,Fe)=>(i.openBlock(),i.createElementBlock("li",{key:Ie.id||Ie,ref_for:!0,ref:Ye=>{E.value[`${Ie[e.optionsField]}-${Fe}`]=Ye},class:"option__text",onMousedown:ge,onMouseover:Ye=>Oe(Fe),onMouseout:xe[0]||(xe[0]=Ye=>we())},i.toDisplayString(Ie[e.optionsField]),41,EK))),128))])):(i.openBlock(),i.createElementBlock("ul",DK,xe[1]||(xe[1]=[i.createElementVNode("li",{class:"option__text--muted"}," Nenhuma opção encontrada ",-1)])))],2),[[i.vShow,l.value]])],2)],512))}},uv=te(OK,[["__scopeId","data-v-49b139d2"]]),VK={class:"multi-file-input"},$K={class:"multi-file-input__file-container"},TK={class:"multi-file-input__box"},IK={class:"multi-file-input__badges_section"},AK={class:"multi-file-input__badge-content"},NK={key:0,class:"multi-file-input__empty-state"},LK={key:1,class:"multi-file-input__list-container"},zK={class:"multi-file-input__list"},PK={class:"multi-file-input__actions"},FK={key:0,class:"multi-file-input__alert"},RK={class:"multi-file-input__footer"},HK=te({__name:"MultiFileInput",props:{documents:{type:Array,required:!0},variant:{type:String,default:"green"},submitButtonText:{type:String,default:"Enviar"},buttonSecondary:{type:Boolean,default:!1}},emits:["submit"],setup(e,{emit:t}){const n=e,r=t,a=i.ref(0),s=i.ref({}),o=i.ref([]),l=i.ref(n.documents.map(C=>({id:no(),value:C.name,required:C.required,active:!1,file:null}))),d=i.computed(()=>o.value.filter(C=>{var M;return(M=C.selectedLabel)==null?void 0:M.id}).map(C=>C.selectedLabel.id)),h=i.computed(()=>{const C={},M=[];return d.value.forEach(E=>{C[E]?C[E]+=1:C[E]=1}),Object.keys(C).forEach(E=>{C[E]>1&&M.push(E)}),M}),f=i.computed(()=>w()&&h.value.length==0&&k());i.watch(()=>o.value,()=>{l.value.forEach(C=>{C.active=d.value.includes(C.id)})},{deep:!0});function m(C){C.name&&(o.value.push({file:C,selectedLabel:null}),a.value+=1,s.value=null)}function g(C){const M=o.value.indexOf(C);M>-1&&o.value.splice(M,1)}function y(C){var M;return h.value.includes((M=C.selectedLabel)==null?void 0:M.id)}function _(){r("submit",o.value)}function w(){return o.value.every(C=>{var M;return(M=C.selectedLabel)==null?void 0:M.id})}function k(){return l.value.filter(C=>C.required).every(C=>C.active)}return(C,M)=>(i.openBlock(),i.createElementBlock("div",VK,[i.createElementVNode("div",$K,[(i.openBlock(),i.createBlock(k4,i.mergeProps({key:a.value,modelValue:s.value,"onUpdate:modelValue":M[0]||(M[0]=E=>s.value=E)},C.$attrs,{"onUpdate:modelValue":m}),null,16,["modelValue"]))]),i.createElementVNode("div",TK,[M[2]||(M[2]=i.createElementVNode("div",{class:"multi-file-input__description"}," Os arquivos marcados com o asterisco (*) são obrigatórios: ",-1)),i.createElementVNode("div",IK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,E=>(i.openBlock(),i.createBlock(Qh,{key:E,variant:E.active?e.variant:"gray"},{default:i.withCtx(()=>[i.createElementVNode("div",AK,[E.active?(i.openBlock(),i.createBlock(ke,{key:0,name:"check-outline",height:"16",width:"16"})):i.createCommentVNode("",!0),i.createElementVNode("div",null,i.toDisplayString(E.value)+" "+i.toDisplayString(E.required?"*":""),1)])]),_:2},1032,["variant"]))),128))]),o.value.length==0?(i.openBlock(),i.createElementBlock("div",NK," Os arquivos adicionados serão exibidos aqui ")):(i.openBlock(),i.createElementBlock("div",LK,[M[1]||(M[1]=i.createElementVNode("div",{class:"multi-file-input__list-title"}," Arquivos anexados ",-1)),i.createElementVNode("div",zK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,E=>(i.openBlock(),i.createElementBlock("div",{key:E,class:"multi-file-input__list-item"},[i.createElementVNode("div",{class:i.normalizeClass(["multi-file-input__item",`multi-file-input__item--${e.variant}`])},[i.createTextVNode(i.toDisplayString(E.file.name)+" ",1),i.createElementVNode("div",null,[i.createElementVNode("div",PK,[i.createVNode(uv,{modelValue:E.selectedLabel,"onUpdate:modelValue":x=>E.selectedLabel=x,options:l.value,label:"",style:{display:"flex"}},null,8,["modelValue","onUpdate:modelValue","options"]),i.createVNode(fu,{icon:"trash-outline",size:"lg",onClick:x=>g(E)},null,8,["onClick"])]),y(E)?(i.openBlock(),i.createElementBlock("div",FK," Arquivo duplicado. ")):i.createCommentVNode("",!0)])],2)]))),128))])])),i.createElementVNode("div",RK,[i.createVNode(ti,{secondary:e.buttonSecondary,variant:e.variant,disabled:!f.value,onButtonClick:_},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.submitButtonText),1)]),_:1},8,["secondary","variant","disabled"])])])]))}},[["__scopeId","data-v-c736096e"]]);function D0(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function WK(e){return(...t)=>!e(...t)}function YK(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function UK(e){return e.filter(t=>!t.$isLabel)}function O0(e,t){return n=>n.reduce((r,a)=>a[e]&&a[e].length?(r.push({$groupLabel:a[t],$isLabel:!0}),r.concat(a[e])):r,[])}const hv=(...e)=>t=>e.reduce((n,r)=>r(n),t);var jK={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(e,t){return D0(e)?"":t?e[t]:e}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1},filteringSortFunc:{type:Function,default:null}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const e=this.search||"",t=e.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,t,this.label):this.filterOptions(n,t,this.label,this.customLabel):n=this.groupValues?O0(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(WK(this.isSelected)):n,this.taggable&&t.length&&!this.isExistingOption(t)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:e}):n.unshift({isTag:!0,label:e})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(t=>this.customLabel(t,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(e,t,n){return hv(this.filterGroups(t,n,this.groupValues,this.groupLabel,this.customLabel),O0(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return hv(O0(this.groupValues,this.groupLabel),UK)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){const t=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(t)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(D0(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return D0(t)?"":t},select(e,t){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(t)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(t==="Tab"&&!this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e)){t!=="Tab"&&this.removeElement(e);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([e])):this.$emit("update:modelValue",e),this.$emit("select",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(e){const t=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);if(t){if(this.wholeGroupSelected(t)){this.$emit("remove",t[this.groupValues],this.id);const n=this.trackBy?t[this.groupValues].map(a=>a[this.trackBy]):t[this.groupValues],r=this.internalValue.filter(a=>n.indexOf(this.trackBy?a[this.trackBy]:a)===-1);this.$emit("update:modelValue",r)}else{const n=t[this.groupValues].filter(r=>!(this.isOptionDisabled(r)||this.isSelected(r)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(e){return e[this.groupValues].every(t=>this.isSelected(t)||this.isOptionDisabled(t))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,t=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const r=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",r)}else this.$emit("update:modelValue",null);this.$emit("remove",e,this.id),this.closeOnSelect&&t&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const e=this.$el.getBoundingClientRect().top,t=window.innerHeight-this.$el.getBoundingClientRect().bottom;t>this.maxHeight||t>e||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(t-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))},filterOptions(e,t,n,r){return t?e.filter(a=>YK(r(a,n),t)).sort((a,s)=>typeof this.filteringSortFunc=="function"?this.filteringSortFunc(a,s):r(a,n).length-r(s,n).length):e},filterGroups(e,t,n,r,a){return s=>s.map(o=>{if(!o[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const l=this.filterOptions(o[n],e,t,a);return l.length?{[r]:o[r],[n]:l}:[]})}}},qK={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(e,t){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(t)}},groupHighlight(e,t){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":t.$isLabel}];const n=this.options.find(r=>r[this.groupLabel]===t.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(e){this.pointer=e,this.pointerDirty=!0}}},fv={name:"vue-multiselect",mixins:[jK,qK],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)},isRequired(){return this.required===!1?!1:this.internalValue.length<=0}}};const GK=["tabindex","aria-expanded","aria-owns","aria-activedescendant"],KK={ref:"tags",class:"multiselect__tags"},ZK={class:"multiselect__tags-wrap"},XK=["textContent"],JK=["onKeypress","onMousedown"],QK=["textContent"],eZ={class:"multiselect__spinner"},tZ=["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-label","aria-controls"],nZ=["id","aria-multiselectable"],iZ={key:0},rZ={class:"multiselect__option"},aZ=["aria-selected","id","role"],sZ=["onClick","onMouseenter","data-select","data-selected","data-deselect"],oZ=["data-select","data-deselect","onMouseenter","onMousedown"],lZ={class:"multiselect__option"},cZ={class:"multiselect__option"};function dZ(e,t,n,r,a,s){return i.openBlock(),i.createElementBlock("div",{tabindex:e.searchable?-1:n.tabindex,class:i.normalizeClass([{"multiselect--active":e.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":s.isAbove,"multiselect--has-options-group":s.hasOptionGroup},"multiselect"]),onFocus:t[14]||(t[14]=o=>e.activate()),onBlur:t[15]||(t[15]=o=>e.searchable?!1:e.deactivate()),onKeydown:[t[16]||(t[16]=i.withKeys(i.withModifiers(o=>e.pointerForward(),["self","prevent"]),["down"])),t[17]||(t[17]=i.withKeys(i.withModifiers(o=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[18]||(t[18]=i.withKeys(i.withModifiers(o=>e.addPointerElement(o),["stop","self"]),["enter","tab"])),onKeyup:t[19]||(t[19]=i.withKeys(o=>e.deactivate(),["esc"])),role:"combobox","aria-expanded":e.isOpen,"aria-owns":"listbox-"+e.id,"aria-activedescendant":e.isOpen&&e.pointer!==null?e.id+"-"+e.pointer:null},[i.renderSlot(e.$slots,"caret",{toggle:e.toggle},()=>[i.createElementVNode("div",{onMousedown:t[0]||(t[0]=i.withModifiers(o=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),i.renderSlot(e.$slots,"clear",{search:e.search}),i.createElementVNode("div",KK,[i.renderSlot(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:s.visibleValues,isOpen:e.isOpen},()=>[i.withDirectives(i.createElementVNode("div",ZK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.visibleValues,(o,l)=>i.renderSlot(e.$slots,"tag",{option:o,search:e.search,remove:e.removeElement},()=>[(i.openBlock(),i.createElementBlock("span",{class:"multiselect__tag",key:l,onMousedown:t[1]||(t[1]=i.withModifiers(()=>{},["prevent"]))},[i.createElementVNode("span",{textContent:i.toDisplayString(e.getOptionLabel(o))},null,8,XK),i.createElementVNode("i",{tabindex:"1",onKeypress:i.withKeys(i.withModifiers(d=>e.removeElement(o),["prevent"]),["enter"]),onMousedown:i.withModifiers(d=>e.removeElement(o),["prevent"]),class:"multiselect__tag-icon"},null,40,JK)],32))])),256))],512),[[i.vShow,s.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>n.limit?i.renderSlot(e.$slots,"limit",{key:0},()=>[i.createElementVNode("strong",{class:"multiselect__strong",textContent:i.toDisplayString(n.limitText(e.internalValue.length-n.limit))},null,8,QK)]):i.createCommentVNode("v-if",!0)]),i.createVNode(i.Transition,{name:"multiselect__loading"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"loading",{},()=>[i.withDirectives(i.createElementVNode("div",eZ,null,512),[[i.vShow,n.loading]])])]),_:3}),e.searchable?(i.openBlock(),i.createElementBlock("input",{key:0,ref:"search",name:n.name,id:e.id,type:"text",autocomplete:"off",spellcheck:n.spellcheck,placeholder:e.placeholder,required:s.isRequired,style:i.normalizeStyle(s.inputStyle),value:e.search,disabled:n.disabled,tabindex:n.tabindex,"aria-label":n.name+"-searchbox",onInput:t[2]||(t[2]=o=>e.updateSearch(o.target.value)),onFocus:t[3]||(t[3]=i.withModifiers(o=>e.activate(),["prevent"])),onBlur:t[4]||(t[4]=i.withModifiers(o=>e.deactivate(),["prevent"])),onKeyup:t[5]||(t[5]=i.withKeys(o=>e.deactivate(),["esc"])),onKeydown:[t[6]||(t[6]=i.withKeys(i.withModifiers(o=>e.pointerForward(),["prevent"]),["down"])),t[7]||(t[7]=i.withKeys(i.withModifiers(o=>e.pointerBackward(),["prevent"]),["up"])),t[9]||(t[9]=i.withKeys(i.withModifiers(o=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[8]||(t[8]=i.withKeys(i.withModifiers(o=>e.addPointerElement(o),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,tZ)):i.createCommentVNode("v-if",!0),s.isSingleLabelVisible?(i.openBlock(),i.createElementBlock("span",{key:1,class:"multiselect__single",onMousedown:t[10]||(t[10]=i.withModifiers((...o)=>e.toggle&&e.toggle(...o),["prevent"]))},[i.renderSlot(e.$slots,"singleLabel",{option:s.singleValue},()=>[i.createTextVNode(i.toDisplayString(e.currentOptionLabel),1)])],32)):i.createCommentVNode("v-if",!0),s.isPlaceholderVisible?(i.openBlock(),i.createElementBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:t[11]||(t[11]=i.withModifiers((...o)=>e.toggle&&e.toggle(...o),["prevent"]))},[i.renderSlot(e.$slots,"placeholder",{},()=>[i.createTextVNode(i.toDisplayString(e.placeholder),1)])],32)):i.createCommentVNode("v-if",!0)],512),i.createVNode(i.Transition,{name:"multiselect",persisted:""},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{class:"multiselect__content-wrapper",onFocus:t[12]||(t[12]=(...o)=>e.activate&&e.activate(...o)),tabindex:"-1",onMousedown:t[13]||(t[13]=i.withModifiers(()=>{},["prevent"])),style:i.normalizeStyle({maxHeight:e.optimizedHeight+"px"}),ref:"list"},[i.createElementVNode("ul",{class:"multiselect__content",style:i.normalizeStyle(s.contentStyle),role:"listbox",id:"listbox-"+e.id,"aria-multiselectable":e.multiple},[i.renderSlot(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(i.openBlock(),i.createElementBlock("li",iZ,[i.createElementVNode("span",rZ,[i.renderSlot(e.$slots,"maxElements",{},()=>[i.createTextVNode("Maximum of "+i.toDisplayString(e.max)+" options selected. First remove a selected option to select another.",1)])])])):i.createCommentVNode("v-if",!0),!e.max||e.internalValue.length<e.max?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(e.filteredOptions,(o,l)=>(i.openBlock(),i.createElementBlock("li",{class:"multiselect__element",key:l,"aria-selected":e.isSelected(o),id:e.id+"-"+l,role:o&&(o.$isLabel||o.$isDisabled)?null:"option"},[o&&(o.$isLabel||o.$isDisabled)?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass([e.optionHighlight(l,o),"multiselect__option"]),onClick:i.withModifiers(d=>e.select(o),["stop"]),onMouseenter:i.withModifiers(d=>e.pointerSet(l),["self"]),"data-select":o&&o.isTag?e.tagPlaceholder:s.selectLabelText,"data-selected":s.selectedLabelText,"data-deselect":s.deselectLabelText},[i.renderSlot(e.$slots,"option",{option:o,search:e.search,index:l},()=>[i.createElementVNode("span",null,i.toDisplayString(e.getOptionLabel(o)),1)])],42,sZ)),o&&(o.$isLabel||o.$isDisabled)?(i.openBlock(),i.createElementBlock("span",{key:1,"data-select":e.groupSelect&&s.selectGroupLabelText,"data-deselect":e.groupSelect&&s.deselectGroupLabelText,class:i.normalizeClass([e.groupHighlight(l,o),"multiselect__option"]),onMouseenter:i.withModifiers(d=>e.groupSelect&&e.pointerSet(l),["self"]),onMousedown:i.withModifiers(d=>e.selectGroup(o),["prevent"])},[i.renderSlot(e.$slots,"option",{option:o,search:e.search,index:l},()=>[i.createElementVNode("span",null,i.toDisplayString(e.getOptionLabel(o)),1)])],42,oZ)):i.createCommentVNode("v-if",!0)],8,aZ))),128)):i.createCommentVNode("v-if",!0),i.withDirectives(i.createElementVNode("li",null,[i.createElementVNode("span",lZ,[i.renderSlot(e.$slots,"noResult",{search:e.search},()=>[t[20]||(t[20]=i.createTextVNode("No elements found. Consider changing the search query."))])])],512),[[i.vShow,n.showNoResults&&e.filteredOptions.length===0&&e.search&&!n.loading]]),i.withDirectives(i.createElementVNode("li",null,[i.createElementVNode("span",cZ,[i.renderSlot(e.$slots,"noOptions",{},()=>[t[21]||(t[21]=i.createTextVNode("List is empty."))])])],512),[[i.vShow,n.showNoOptions&&(e.options.length===0||s.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!n.loading]]),i.renderSlot(e.$slots,"afterList")],12,nZ)],36),[[i.vShow,e.isOpen]])]),_:3})],42,GK)}fv.render=dZ;const ko=0,Co=1,Pu=e=>e===void 0?{}:JSON.parse(JSON.stringify(e)),V0={components:{Multiselect:fv,CdsDivider:$s,CdsCheckbox:eo,CdsSpacer:ru},props:{modelValue:{type:Array,required:!0},label:{type:String,default:"text"},variant:{type:String,default:"green"},trackBy:{type:String,default:"value"},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},errorMessage:{type:String,default:"Valor inválido"},state:{type:String,default:"default"},options:{type:Array,required:!0,default:()=>[]},optionsField:{type:String,default:"value",required:!1},hideSelectAll:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1}},data(){return{selectedValue:this.$attrs.modelValue||[],internalOptions:Pu(this.options),groupValues:null,groupLabel:null,selectAllValue:!1,queryString:"",indeterminate:!1,sassColorVariables:yi,uniqueKey:Gr()}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},errorState(){return this.state==="invalid"},selectedFancyMessage(){return e=>e===1?this.selectedValue[0][this.optionsField]:`${e} opções selecionadas`},selectAllFancyMessage(){return this.hasSelectedValues?"Desfazer seleção":"Selecionar todos"},hasSelectedValues(){return this.selectedValue.length>0},isAllItemsSelected(){return this.selectedValue.length===this.options.length},computedPlaceholder(){return this.$attrs.placeholder?this.$attrs.placeholder:"Selecione uma ou mais opções"},isGroupMode(){return this.internalOptions[ko]&&this.internalOptions[ko].$status||this.internalOptions[Co]&&this.internalOptions[Co].$status},attrs(){const{label:e,trackBy:t,options:n,...r}=this.$attrs;return r},inputBackgroundColor(){return this.disabled?this.sassColorVariables.n20:this.sassColorVariables.n0},resolveMultiselectHeight(){return this.mobile?"48px":"40px"},resolveMultiselectTop(){return this.mobile?"6px":"5px"}},watch:{selectedValue(e){const t=Pu(e);t.forEach(n=>delete n.isSelected),this.indeterminate=e.length>0&&e.length<this.options.length,this.$emit("input",t),this.$emit("update:modelValue",t)},isAllItemsSelected(e){if(!e&&this.selectAllValue){this.selectAllValue=!1;return}e&&!this.selectAllValue&&(this.selectAllValue=!0)},indeterminate(e){if(this.hideSelectAll)return;const t=document.getElementById(`select-all-input-id-${this.uniqueKey}`);t.indeterminate=e}},mounted(){this.modelValue===null||this.modelValue.length===0||(this.selectedValue=this.modelValue,this.updateRenderOptions(),this.indeterminate=this.hasSelectedValues&&this.selectedValue.length<this.options.length)},methods:{unselectItem(e){this.handleSelectItem(e),this.$emit("remove",e)},selectItem(e){this.handleSelectItem(e),this.$emit("select",e)},handleSelectItem(e){this.isGroupMode?(this.internalOptions[ko].options.forEach(t=>{t[this.optionsField]===e[this.optionsField]&&(t.isSelected=!t.isSelected)}),this.internalOptions[Co].options.forEach(t=>{t[this.optionsField]===e[this.optionsField]&&(t.isSelected=!t.isSelected)})):this.internalOptions.forEach(t=>{t[this.optionsField]===e[this.optionsField]&&(t.isSelected=!t.isSelected)})},toggleSelectAll(){this.selectAllValue=!this.hasSelectedValues,this.selectAllValue?this.selectedValue=this.options:this.selectedValue=[],this.$nextTick().then(()=>{this.isGroupMode?(this.internalOptions[ko].options=this.internalOptions[ko].options.map(e=>({...e,isSelected:this.selectAllValue})),this.internalOptions[Co].options=this.internalOptions[Co].options.map(e=>({...e,isSelected:this.selectAllValue}))):this.internalOptions=this.internalOptions.map(e=>({...e,isSelected:this.selectAllValue}))})},addItemViaCustomCheckbox(e){e.isSelected=!e.isSelected,this.selectedValue=[...this.selectedValue,e]},handleClose(){this.updateRenderOptions(),this.setContentWrapperScrollToTop(),this.$emit("close")},updateRenderOptions(){if(!this.hasSelectedValues){this.internalOptions=Pu(this.options.map(t=>({...t,isSelected:!1}))),this.groupValues=null,this.groupLabel=null;return}this.selectedValue.forEach(t=>{t.isSelected=!0});let e=Pu(this.options);e=e.map(t=>(this.selectedValue.some(r=>r[this.optionsField]===t[this.optionsField])?t.isSelected=!0:t.isSelected=!1,t)),this.internalOptions=[{$status:"Selecionados",options:[]},{$status:"Não selecionados",options:[]}],this.internalOptions[ko].options=this.selectedValue,this.internalOptions[Co].options=e.filter(t=>!t.isSelected),this.groupValues="options",this.groupLabel="$status"},handleSearchChange(e){this.queryString=e},setContentWrapperScrollToTop(){document.querySelector(`span[data-cds-multiselect-identifier='${this.uniqueKey}']`).getElementsByClassName("multiselect__content-wrapper")[0].scrollTo(0,0)}}},pv=()=>{i.useCssVars(e=>({"77b643b7":e.inputBackgroundColor,"30be1708":e.resolveMultiselectHeight,"4669b3c0":e.resolveMultiselectTop}))},mv=V0.setup;V0.setup=mv?(e,t)=>(pv(),mv(e,t)):pv;const uZ=["data-cds-multiselect-identifier"],hZ={key:0},fZ=["for"],pZ={key:0,class:"label__required-indicator"},mZ={key:1,class:"cds-multiselect__grouped-divider"},gZ={key:0,class:"cds-multiselect__group-label"},yZ={key:1,class:"cds-multiselect__option"},bZ={class:"option__checkbox"},vZ=["id","onUpdate:modelValue","name"],_Z=["id","for","onClick"],wZ={key:0,class:"multiselect__single"},kZ={key:1},CZ={key:0,class:"clustered-multiselect__error-message"};function xZ(e,t,n,r,a,s){const o=i.resolveComponent("cds-checkbox"),l=i.resolveComponent("cds-spacer"),d=i.resolveComponent("cds-divider"),h=i.resolveComponent("multiselect",!0);return i.openBlock(),i.createElementBlock("span",{class:"cds-multiselect","data-cds-multiselect-identifier":a.uniqueKey},[i.createElementVNode("span",null,[s.hasSlots?(i.openBlock(),i.createElementBlock("span",hZ,[i.renderSlot(e.$slots,"label")])):(i.openBlock(),i.createElementBlock("label",{key:1,class:i.normalizeClass(n.mobile?"clustered-multiselect__mobile-label":"clustered-multiselect__label")},[i.createElementVNode("div",{class:"label__content",for:`clustered-multiselect-${a.uniqueKey}`},[i.createElementVNode("span",null,i.toDisplayString(n.label),1),n.required?(i.openBlock(),i.createElementBlock("span",pZ," * ")):i.createCommentVNode("",!0)],8,fZ)],2))]),i.createVNode(h,i.mergeProps({id:`clustered-multiselect-${a.uniqueKey}`,ref:"cds-multiselect"},s.attrs,{modelValue:a.selectedValue,"onUpdate:modelValue":t[2]||(t[2]=f=>a.selectedValue=f),options:a.internalOptions,label:n.optionsField,"track-by":n.trackBy,multiple:"","group-values":a.groupValues,"group-label":a.groupLabel,"close-on-select":!1,"clear-on-select":!1,"select-label":"","deselect-label":"","selected-label":"",disabled:n.disabled,placeholder:s.computedPlaceholder,"block-keys":["Delete","Enter"],onClose:s.handleClose,onSelect:s.selectItem,onRemove:s.unselectItem,onSearchChange:s.handleSearchChange}),{beforeList:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",null,[n.hideSelectAll?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"cds-multiselect__option multiselect__option",onClick:t[1]||(t[1]=(...f)=>s.toggleSelectAll&&s.toggleSelectAll(...f))},[i.createVNode(l,{"margin-left":"2"},{default:i.withCtx(()=>[i.createVNode(o,{id:`select-all-input-id-${a.uniqueKey}`,modelValue:a.selectAllValue,"onUpdate:modelValue":t[0]||(t[0]=f=>a.selectAllValue=f),label:s.selectAllFancyMessage,indeterminate:a.indeterminate,variant:n.variant},null,8,["id","modelValue","label","indeterminate","variant"])]),_:1})])),s.isGroupMode?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",mZ,[i.createVNode(d,{dimmed:""})]))],512),[[i.vShow,!a.queryString&&n.options.length]])]),option:i.withCtx(({option:f})=>[f.$isLabel?(i.openBlock(),i.createElementBlock("div",gZ,[i.createVNode(d,{text:f.$groupLabel,inline:"",dimmed:""},null,8,["text"])])):(i.openBlock(),i.createElementBlock("div",yZ,[i.createElementVNode("div",bZ,[i.withDirectives(i.createElementVNode("input",{id:`input-${f[n.optionsField]}-${a.uniqueKey}`,"onUpdate:modelValue":m=>f.isSelected=m,type:"checkbox",name:`input-${f[n.optionsField]}-${a.uniqueKey}`,value:!0},null,8,vZ),[[i.vModelCheckbox,f.isSelected]]),i.createElementVNode("label",{id:`checkbox-${f[n.optionsField]}`,for:`input-${f[n.optionsField]}-${a.uniqueKey}`,class:i.normalizeClass(f.isSelected?`option__checkbox--${n.variant}`:""),onClick:m=>s.addItemViaCustomCheckbox(f)},null,10,_Z)]),i.renderSlot(e.$slots,"option",{option:f,optionField:n.optionsField},()=>[i.createTextVNode(i.toDisplayString(f[n.optionsField]),1)])]))]),selection:i.withCtx(({values:f,isOpen:m})=>[i.renderSlot(e.$slots,"selection",{values:f,isOpen:m,unselectItem:s.unselectItem},()=>[f.length&&!m?(i.openBlock(),i.createElementBlock("span",wZ,i.toDisplayString(s.selectedFancyMessage(f.length)),1)):(i.openBlock(),i.createElementBlock("span",kZ))])]),noResult:i.withCtx(()=>[t[3]||(t[3]=i.createTextVNode(' Nenhum resultado encontrado para: "')),i.createElementVNode("strong",null,i.toDisplayString(a.queryString),1),t[4]||(t[4]=i.createTextVNode('" '))]),noOptions:i.withCtx(()=>t[5]||(t[5]=[i.createTextVNode(" Não há nenhuma opção para ser exibida. ")])),_:3},16,["id","modelValue","options","label","track-by","group-values","group-label","disabled","placeholder","onClose","onSelect","onRemove","onSearchChange"]),s.errorState&&!n.disabled?(i.openBlock(),i.createElementBlock("div",CZ,i.toDisplayString(n.errorMessage),1)):i.createCommentVNode("",!0)],8,uZ)}const SZ=te(V0,[["render",xZ]]);function MZ(e){return i.getCurrentScope()?(i.onScopeDispose(e),!0):!1}const gv=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const BZ=Object.prototype.toString,EZ=e=>BZ.call(e)==="[object Object]",xo=()=>{},DZ=OZ();function OZ(){var e,t;return gv&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function $0(e){return Array.isArray(e)?e:[e]}function VZ(e,t,n){return i.watch(e,t,{...n,immediate:!0})}const yv=gv?window:void 0;function fc(e){var t;const n=i.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function pc(...e){const t=[],n=()=>{t.forEach(l=>l()),t.length=0},r=(l,d,h,f)=>(l.addEventListener(d,h,f),()=>l.removeEventListener(d,h,f)),a=i.computed(()=>{const l=$0(i.toValue(e[0])).filter(d=>d!=null);return l.every(d=>typeof d!="string")?l:void 0}),s=VZ(()=>{var l,d;return[(d=(l=a.value)==null?void 0:l.map(h=>fc(h)))!=null?d:[yv].filter(h=>h!=null),$0(i.toValue(a.value?e[1]:e[0])),$0(i.unref(a.value?e[2]:e[1])),i.toValue(a.value?e[3]:e[2])]},([l,d,h,f])=>{if(n(),!(l!=null&&l.length)||!(d!=null&&d.length)||!(h!=null&&h.length))return;const m=EZ(f)?{...f}:f;t.push(...l.flatMap(g=>d.flatMap(y=>h.map(_=>r(g,y,_,m)))))},{flush:"post"}),o=()=>{s(),n()};return MZ(n),o}let bv=!1;function $Z(e,t,n={}){const{window:r=yv,ignore:a=[],capture:s=!0,detectIframe:o=!1,controls:l=!1}=n;if(!r)return l?{stop:xo,cancel:xo,trigger:xo}:xo;if(DZ&&!bv){bv=!0;const k={passive:!0};Array.from(r.document.body.children).forEach(C=>pc(C,"click",xo,k)),pc(r.document.documentElement,"click",xo,k)}let d=!0;const h=k=>i.toValue(a).some(C=>{if(typeof C=="string")return Array.from(r.document.querySelectorAll(C)).some(M=>M===k.target||k.composedPath().includes(M));{const M=fc(C);return M&&(k.target===M||k.composedPath().includes(M))}});function f(k){const C=i.toValue(k);return C&&C.$.subTree.shapeFlag===16}function m(k,C){const M=i.toValue(k),E=M.$.subTree&&M.$.subTree.children;return E==null||!Array.isArray(E)?!1:E.some(x=>x.el===C.target||C.composedPath().includes(x.el))}const g=k=>{const C=fc(e);if(k.target!=null&&!(!(C instanceof Element)&&f(e)&&m(e,k))&&!(!C||C===k.target||k.composedPath().includes(C))){if("detail"in k&&k.detail===0&&(d=!h(k)),!d){d=!0;return}t(k)}};let y=!1;const _=[pc(r,"click",k=>{y||(y=!0,setTimeout(()=>{y=!1},0),g(k))},{passive:!0,capture:s}),pc(r,"pointerdown",k=>{const C=fc(e);d=!h(k)&&!!(C&&!k.composedPath().includes(C))},{passive:!0}),o&&pc(r,"blur",k=>{setTimeout(()=>{var C;const M=fc(e);((C=r.document.activeElement)==null?void 0:C.tagName)==="IFRAME"&&!(M!=null&&M.contains(r.document.activeElement))&&t(k)},0)},{passive:!0})].filter(Boolean),w=()=>_.forEach(k=>k());return l?{stop:w,cancel:()=>{d=!1},trigger:k=>{d=!0,g(k),d=!1}}:w}const TZ={ref:"cds-combobox",class:"combobox"},IZ={class:"badge"},AZ={key:0,class:"option__container"},NZ=["onClick"],LZ={key:1,class:"combobox__empty"},zZ=te({__name:"ComboBox",props:i.mergeModels({label:{type:String,default:"Label"},options:{type:Array,default:()=>[],required:!0},required:{type:Boolean,default:!1,required:!1},fluid:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},optionsKeyField:{type:String,default:"name",required:!0},optionsValueField:{type:String,default:"value",required:!0},state:{type:String,default:"default"},errorMessage:{type:String,default:"Valor inválido"},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},variant:{type:String,default:"green"}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:i.mergeModels(["update:modelValue"],["update:modelValue"]),setup(e,{emit:t}){i.useCssVars(Y=>({"6cd8ea82":f.value,"3f725310":m.value}));const n=e,r=t,a=i.ref([]),s=i.ref(new Set),o=i.ref(!1),l=i.ref(""),d=i.useModel(e,"modelValue"),h=i.useTemplateRef("cds-combobox"),f=i.computed(()=>n.fluid?"100%":"fit-content"),m=i.computed(()=>n.fluid?"100%":"266px"),g=i.computed(()=>s.value.size>=1?"Desfazer seleção":"Selecionar todos"),y=i.computed(()=>s.value.size>0),_=i.computed(()=>s.value.size===a.value.length),w=i.computed(()=>y.value&&!_.value),k=i.computed(()=>l.value?a.value.filter(Y=>Y[n.optionsValueField].toLowerCase().includes(l.value.toLowerCase())):a.value),C=i.computed(()=>!!l.value.trim()),M=i.computed(()=>a.value.some(Y=>Y[n.optionsValueField].toLowerCase()===l.value.trim().toLowerCase()));i.watch(()=>n.options,(Y,ne)=>{Y!==ne&&(a.value=Y)},{immediate:!0}),i.watchEffect(()=>{const Y=new Set(a.value.filter(le=>d.value.some(J=>J[n.optionsKeyField]===le[n.optionsKeyField])));[...Y].some(le=>![...s.value].some(J=>J[n.optionsKeyField]===le[n.optionsKeyField]))&&(s.value=Y)}),i.watch(n.modelValue,Y=>{if(Y&&Y.length>0){const ne=new Set(Y.map(le=>le[n.optionsKeyField]));s.value=ne}},{immediate:!0}),i.watch(s,()=>{r("update:modelValue",Array.from(s.value))},{deep:!0,immediate:!0}),$Z(h,()=>{o.value=!1,l.value=""});const E=Y=>s.value.has(Y),x=Y=>{if(E(Y)){s.value.delete(Y);return}s.value.add(Y)},$=()=>{s.value=new Set(a.value)},I=()=>{s.value.clear()},P=()=>{if(!C.value||M.value)return;const Y={[n.optionsValueField]:l.value.trim(),[n.optionsKeyField]:l.value.toLowerCase().trim().replace(/ /g,"-")};s.value.add(Y),a.value.push(Y),l.value=""},T=()=>{P()},W=()=>{o.value=!o.value},U=()=>{o.value||l.value&&l.value.trim()===""||(o.value=!0)},ee=()=>{W(),U()};return(Y,ne)=>(i.openBlock(),i.createElementBlock("div",TZ,[i.createElementVNode("div",{class:i.normalizeClass(["combobox__container",e.fluid?"combobox__container--fluid":"combobox__container--fit"])},[i.createVNode(rr,{"model-value":l.value,"enable-top-content":s.value.size>0,label:e.label,placeholder:`Buscar ${e.label.toLowerCase()}`,state:e.state,"error-message":e.errorMessage,required:e.required,disabled:e.disabled,fluid:e.fluid,tooltip:e.tooltip,"tooltip-icon":e.tooltipIcon,onKeydown:i.withKeys(T,["enter"]),onClick:ee,onFocus:U,"onUpdate:modelValue":ne[0]||(ne[0]=le=>l.value=le)},{"top-content":i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(le,J)=>(i.openBlock(),i.createElementBlock("div",{key:J},[i.createVNode(Qh,{style:{cursor:"pointer"},variant:e.variant,size:"md",onClick:pe=>x(le)},{default:i.withCtx(()=>[i.createElementVNode("div",IZ,[i.createVNode(Jh,{width:"220"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(le[e.optionsValueField]),1)]),_:2},1024),i.createVNode(ke,{class:"badge__icon",name:"x-outline",height:"12",width:"12"})])]),_:2},1032,["variant","onClick"])]))),128))]),_:1},8,["model-value","enable-top-content","label","placeholder","state","error-message","required","disabled","fluid","tooltip","tooltip-icon"]),o.value?(i.openBlock(),i.createElementBlock("div",{key:0,ref:"combobox-options",class:i.normalizeClass(["combobox__options",Y.selectOptionsClass])},[a.value.length>0?(i.openBlock(),i.createElementBlock("div",AZ,[i.createVNode(eo,{class:"option__text",variant:e.variant,label:g.value,"model-value":_.value&&y.value,indeterminate:w.value,"onUpdate:modelValue":ne[1]||(ne[1]=le=>y.value?I():$())},null,8,["variant","label","model-value","indeterminate"]),i.createVNode($s,{light:""}),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(k.value,(le,J)=>(i.openBlock(),i.createElementBlock("div",{key:le[e.optionsKeyField]||J,class:i.normalizeClass(["option__text",{"option__text--selected":E(le[e.optionsKeyField])}]),onClick:pe=>x(le,E(le[e.optionsKeyField]))},[i.createVNode(eo,{variant:e.variant,label:le[e.optionsValueField],prominent:E(le),"model-value":E(le)},null,8,["variant","label","prominent","model-value"])],10,NZ))),128))])):i.createCommentVNode("",!0),o.value&&a.value.length===0&&l.value.length===0?(i.openBlock(),i.createElementBlock("div",LZ," Nenhuma opção encontrada ")):i.createCommentVNode("",!0),!M.value&&C.value?(i.openBlock(),i.createElementBlock("div",{key:2,class:"option__button",onClick:P}," Adicionar "+i.toDisplayString(l.value),1)):i.createCommentVNode("",!0)],2)):i.createCommentVNode("",!0)],2)],512))}},[["__scopeId","data-v-45b406f5"]]),PZ={props:{items:{type:Array,default:()=>[],required:!0,validator:e=>!e.filter(n=>{const r=on(n.path)&&on(n.route),a=on(n.items)||n.items.filter(s=>on(s.path)&&on(s.route)).length;return on(n.label)||a&&r}).length},activeItem:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:e=>Ri.includes(e)}},data(){return{internalActiveItem:this.activeItem,colorOptions:Ri}},computed:{activeBorderStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},watch:{items:{handler(e){const t=e.filter(n=>n.name===this.activeItem.name);[this.internalActiveItem]=t.length?t:e},immediate:!0}},mounted(){this.internalActiveItem=this.activeItem},methods:{colorHexCode:to,handleClick(e,t){this.internalActiveItem=t,this.$emit("navbar-click",this.internalActiveItem)},isActive(e){return ao(this.internalActiveItem,e)},resolveRoute({route:e,path:t}){const n=on(e)?t:e;return n instanceof String?{path:n}:n},routerPushTo(e){return this.resolveRoute(e)?this.resolveRoute(e).path:null},indicatorClass(e){return this.isActive(e)?`item__indicator--active--${this.variant}`:""}}},FZ={id:"nav-bar"};function RZ(e,t,n,r,a,s){const o=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",FZ,[i.createElementVNode("ul",{class:i.normalizeClass({"nav-bar__container":n.items.length>=1})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.items,(l,d)=>(i.openBlock(),i.createElementBlock("li",{key:`${d}-${l.name}-item`,role:"presentation",class:i.normalizeClass(["nav-bar__item-container",s.isActive(l)?"nav-bar__item-container--active":"nav-bar__item-container--inactive"])},[i.createVNode(o,{to:s.routerPushTo(l),class:i.normalizeClass(["nav-bar__item",s.isActive(l)?"nav-bar__item--active":"nav-bar__item--inactive"]),onClick:h=>s.handleClick(h,l)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(l.label),1)]),_:2},1032,["to","class","onClick"]),i.createElementVNode("div",{class:i.normalizeClass(s.indicatorClass(l)),style:i.normalizeStyle(s.activeBorderStyle)},null,6)],2))),128))],2)])}const HZ=te(PZ,[["render",RZ]]),WZ={mounted(e,t){const n=s=>{if(s==0)return"R$ 0,00";if(!s)return"";let o=String(s).replace(/\D/g,"");return o?(parseFloat(o)/100).toLocaleString("pt-BR",{style:"currency",currency:"BRL"}):"R$ 0,00"};let r=!1;const a=s=>{if(r)return;r=!0;let o=String(s.target.value||""),l=o.replace(/\D/g,""),d=parseFloat(l)/100;const h=n(o);s.target.value=h;const f=new Event("input",{bubbles:!0});Object.defineProperty(f,"target",{value:{value:d},writable:!1}),e.dispatchEvent(f),r=!1};e.addEventListener("input",a),e.value=n(t.value||""),e._inputHandler=a},updated(e,t){const n=r=>{if(!r)return"";let a=String(r).replace(/\D/g,"");return(parseFloat(a)/100).toLocaleString("pt-BR",{style:"currency",currency:"BRL"})};e.value=n(t.value||"")},unmounted(e){e._inputHandler&&e.removeEventListener("input",e._inputHandler)}},vv=e=>{let t=e.replace("R$","");return t=t.replaceAll(".",""),t=t.replace(/(.*),(\d{2})/g,"$1.$2"),+t},YZ={__name:"NumberInput",props:i.mergeModels({label:{type:String,default:"Valor"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},required:{type:Boolean,default:!1},placeholder:{type:String,default:"Digite aqui a informação"},supportingText:{type:[String,Array],default:""},errorMessage:{type:String,default:"Valor inválido"},fluid:{type:Boolean,default:!1,required:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},money:{type:Boolean,default:!1},linkText:{type:String,default:null},linkUrl:{type:String,default:"https://cuida.framer.wiki/"},supportLink:{type:String,default:null},supportLinkUrl:{type:String,default:"https://cuida.framer.wiki/"},lazy:{type:Boolean,default:!1},mask:{type:[String,Array],default:null},mobile:{type:Boolean,default:!1},floatingLabel:{type:Boolean,default:!1}},{modelValue:{type:[Number,String]},modelModifiers:{},unmaskedValue:{type:[Number,String,null]},unmaskedValueModifiers:{}}),emits:i.mergeModels({...da},["update:modelValue","update:unmaskedValue"]),setup(e,{expose:t,emit:n}){var M,E;const r=ro,a=i.useTemplateRef("baseInput"),s=i.useModel(e,"modelValue"),o=i.useModel(e,"unmaskedValue"),l=e,d=n,h=i.ref(""),{emitClick:f,emitChange:m,emitFocus:g,emitBlur:y,emitKeydown:_}=ca(d);let w={};i.watch(s,(x,$)=>{x!==$&&(h.value=x)},{immediate:!0}),i.watch(h,(x,$)=>{if(x!==$){let I=String(x);l.money?(o.value=vv(I),s.value=I):l.mask?(h.value=I,s.value=I,o.value=+I.replace(/\D/g,"")):I.length>15?h.value=+I.slice(0,15):(s.value=+I,o.value=+I)}}),i.onMounted(()=>{l.money&&a.value&&a.value.componentRef&&(w={value:s.value,oldValue:"",instance:a.value.componentRef,modifiers:{},arg:null},WZ.mounted(a.value.componentRef,w))});function k(){l.money&&(h.value=h.value==0||h.value==""?"R$ 0,00":h.value),g()}function C(){s.value=h.value,m()}return t({componentRef:(M=a.value)==null?void 0:M.componentRef,isFocused:(E=a.value)==null?void 0:E.isFocused,focus:()=>{var x;return(x=a.value)==null?void 0:x.focus()},blur:()=>{var x;return(x=a.value)==null?void 0:x.blur()},clear:()=>{var x;return(x=a.value)==null?void 0:x.clear()},select:()=>{var x;return(x=a.value)==null?void 0:x.select()}}),(x,$)=>(i.openBlock(),i.createElementBlock("div",null,[e.money?(i.openBlock(),i.createBlock(rr,i.mergeProps({key:0,ref:"baseInput"},{...x.$attrs,...l},{modelValue:h.value,"onUpdate:modelValue":$[0]||($[0]=I=>h.value=I),"floating-label":e.floatingLabel||e.mobile,"support-link":e.supportLink||e.linkText,"support-link-url":e.supportLinkUrl||e.linkUrl,onClick:i.unref(f),onChange:C,onFocus:k,onBlur:i.unref(y),onKeydown:i.unref(_)}),null,16,["modelValue","floating-label","support-link","support-link-url","onClick","onBlur","onKeydown"])):e.mask?i.withDirectives((i.openBlock(),i.createBlock(rr,i.mergeProps({key:1,ref:"baseInput"},{...x.$attrs,...l},{modelValue:h.value,"onUpdate:modelValue":$[1]||($[1]=I=>h.value=I),type:"tel","floating-label":e.floatingLabel||e.mobile,"support-link":e.supportLink||e.linkText,"support-link-url":e.supportLinkUrl||e.linkUrl,onClick:i.unref(f),onChange:C,onFocus:k,onBlur:i.unref(y),onKeydown:i.unref(_)}),null,16,["modelValue","floating-label","support-link","support-link-url","onClick","onBlur","onKeydown"])),[[i.unref(r),e.mask]]):(i.openBlock(),i.createBlock(rr,i.mergeProps({key:2,ref:"baseInput"},{...x.$attrs,...l},{modelValue:h.value,"onUpdate:modelValue":$[2]||($[2]=I=>h.value=I),"floating-label":e.floatingLabel||e.mobile,"support-link":e.supportLink||e.linkText,"support-link-url":e.supportLinkUrl||e.linkUrl,type:"number",onClick:i.unref(f),onChange:C,onFocus:k,onBlur:i.unref(y),onKeydown:i.unref(_)}),null,16,["modelValue","floating-label","support-link","support-link-url","onClick","onBlur","onKeydown"]))]))}},UZ={props:{size:{type:String,default:"md"},variant:{type:String,default:"green"}},computed:{computedSizeClass(){return`spin--${this.size}`},computedColorClass(){return`spin--${this.variant}`},computedSpinnerClass(){return`${this.computedSizeClass} ${this.computedColorClass}`}}},jZ={class:"overlay"};function qZ(e,t,n,r,a,s){return i.openBlock(),i.createElementBlock("div",jZ,[i.createElementVNode("div",{class:i.normalizeClass(s.computedSpinnerClass)},null,2)])}const GZ=te(UZ,[["render",qZ],["__scopeId","data-v-2022bd33"]]),KZ={},ZZ={class:"page-container__container"};function XZ(e,t,n,r,a,s){return i.openBlock(),i.createElementBlock("div",ZZ,[i.renderSlot(e.$slots,"default",{},void 0,!0)])}const _v=te(KZ,[["render",XZ],["__scopeId","data-v-2f5908a0"]]),T0={directives:{cdstip:hl},components:{CdsIcon:ke,CdsAvatar:pl,CdsRichTooltip:zf,CdsPopover:fl},props:{variant:{type:String,default:"green"},items:{type:Array,default:()=>[],required:!0,validator:e=>!e.filter(n=>{const r=on(n.path)&&on(n.route),a=on(n.items)||n.items.filter(s=>on(s.path)&&on(s.route)).length;return on(n.label)||a&&r}).length},activeItem:{type:Object,default:()=>({}),required:!0},showLogout:{type:Boolean,default:!0},showProfileMenu:{type:Boolean,default:!1},profileMenuItems:{type:Array,default:()=>[]},userName:{type:String,default:""},userRole:{type:String,default:""},userPicture:{type:String,default:null},collapsible:{type:Boolean,default:!1},collapsibleState:{type:Boolean,default:!1},logoImage:{type:String,default:null},light:{type:Boolean,default:!1},searchButton:{type:Boolean,default:!1}},data(){return{internalActiveItem:{},collapsed:!1,showUncollapsedItems:!0,colorOptions:Ri,expandItemControl:0,itemsWithVisibilityController:[],logoutTooltipText:"Sair",showPopover:!1,showSearchButtonShortCut:!0}},computed:{mainClass(){return this.light?this.collapsed?"side-bar--light--collapsed":"side-bar--light":this.collapsed?"side-bar--dark--collapsed":"side-bar--dark"},collapsedTooltipClass(){return this.collapsed?"Maximizar":"Minimizar"},shouldShowProfileMenu(){var e;return this.showProfileMenu&&((e=this.profileMenuItems)==null?void 0:e.length)>0},avatarCursorResolver(){return this.shouldShowProfileMenu?"pointer":"default"},computedSearchButtonJustify(){return this.collapsed?"center":"space-between"}},watch:{items:{handler(e){const t=e.filter(n=>n.name===this.activeItem.name);[this.internalActiveItem]=t.length?t:e},immediate:!0},collapsibleState:{handler(e){this.collapsed=e},immediate:!0},activeItem:{handler(e){this.internalActiveItem=e},immediate:!0},collapsed(e){if(e){this.showUncollapsedItems=!1,this.showSearchButtonShortCut=!1;return}setTimeout(()=>{this.showUncollapsedItems=!0},500),setTimeout(()=>{this.showSearchButtonShortCut=!0},250)}},created(){this.internalActiveItem=this.activeItem,this.collapsed=this.collapsibleState,this.items.forEach((e,t)=>{this.itemsWithVisibilityController.push({name:e.label,index:t,show:!1})})},methods:{colorHexCode:to,handleClick(e,t){if(!ao(this.internalActiveItem,t)){this.internalActiveItem=t,this.showUncollapsedItems=!0,this.expandItemControl+=1;return}if(t.items&&t.items.length>0){this.showUncollapsedItems=!this.showUncollapsedItems,this.expandItemControl+=1;return}t.icon&&(this.showUncollapsedItems=!1,this.expandItemControl+=1),this.$emit("sidebar-click",this.internalActiveItem)},isActive(e){let t=!1,n=!1;return e.items&&e.items.length>0&&(t=e.items.some(r=>ao(r,this.internalActiveItem))),n=ao(this.internalActiveItem,e),t||n},resolveRoute({route:e,path:t}){const n=on(e)?t:e;return n instanceof String?{path:n}:n},routerPushTo(e){return this.resolveRoute(e)?this.resolveRoute(e).path:null},handleCollapse(){this.$emit("collapse-click",!this.collapsed),this.collapsed=!this.collapsed},resolveItemCollapse(e){return!!e.items&&e.items.length>0&&this.isActive(e)&&this.showUncollapsedItems},resolveCollapsibleItemIcon(e){return this.resolveItemCollapse(e)?"caret-up-outline":"caret-down-outline"},handleProfileMenuOptionClick(e){this.$emit("profile-menu-option-click",e),this.showPopover=!1},handleLogoClick(){this.$emit("logo-click")}}},wv=()=>{i.useCssVars(e=>({"3043686a":e.avatarCursorResolver,"5b550093":e.computedSearchButtonJustify}))},kv=T0.setup;T0.setup=kv?(e,t)=>(wv(),kv(e,t)):wv;const JZ={class:"side-bar__header"},QZ=["src"],eX={class:"search-button__text-container"},tX={key:0},nX=["onMouseleave"],iX=["onClick"],rX=["id","onMouseover"],aX={class:"side-bar__subitem-container"},sX={class:"side-bar__subitems"},oX=["href","target","onClick"],lX={key:0,class:"side-bar__subitem-link"},cX={key:1},dX={class:"side-bar__subitems--collapsed"},uX={class:"side-bar__tooltip-title"},hX=["href","onClick"],fX={key:0,class:"side-bar__subitem-link"},pX={key:0},mX={key:0},gX={class:"dropdown-button__dropdown"},yX=["onClick"],bX={class:"dropdown__text"};function vX(e,t,n,r,a,s){const o=i.resolveComponent("cds-icon"),l=i.resolveComponent("router-link"),d=i.resolveComponent("cds-rich-tooltip"),h=i.resolveComponent("cds-avatar"),f=i.resolveComponent("cds-popover"),m=i.resolveDirective("cdstip");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(s.mainClass)},[i.createElementVNode("div",{class:i.normalizeClass(`variant-resolver--${n.variant}`)},[i.createElementVNode("div",JZ,[i.createElementVNode("div",{class:"side-bar__logo",onClick:t[0]||(t[0]=(...g)=>s.handleLogoClick&&s.handleLogoClick(...g))},[a.collapsed?i.createCommentVNode("",!0):i.renderSlot(e.$slots,"logo",{key:0},()=>[i.createElementVNode("img",{src:n.logoImage},null,8,QZ)])]),n.collapsible?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,class:"side-bar__collapsible",onClick:t[1]||(t[1]=(...g)=>s.handleCollapse&&s.handleCollapse(...g))},[a.collapsed?(i.openBlock(),i.createBlock(o,{key:1,name:"sidebar-expand-outline"})):(i.openBlock(),i.createBlock(o,{key:0,name:"sidebar-collapse-outline"}))])),[[m,s.collapsedTooltipClass]]):i.createCommentVNode("",!0)]),n.searchButton?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["side-bar__search-button",{"side-bar__search-button--light":n.light}]),onClick:t[2]||(t[2]=g=>e.$emit("search-button-click"))},[i.createElementVNode("div",eX,[i.createVNode(o,{height:"20",width:"20",name:"search-outline"}),a.showSearchButtonShortCut?(i.openBlock(),i.createElementBlock("span",tX,"Busca")):i.createCommentVNode("",!0)]),a.showSearchButtonShortCut?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["side-bar__search-shortcut",{"side-bar__search-shortcut--light":n.light}])}," Ctrl + K ",2)):i.createCommentVNode("",!0)],2)):i.createCommentVNode("",!0),i.createElementVNode("ul",{class:i.normalizeClass({"side-bar__container":n.items.length>=1})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.items,(g,y)=>(i.openBlock(),i.createElementBlock("li",{key:`${y}-${g.name}-item`,role:"presentation",onMouseleave:_=>a.itemsWithVisibilityController[y].show=!1},[i.createElementVNode("div",{class:i.normalizeClass(["side-bar__item-container",s.isActive(g)?"side-bar__item-container--active":"side-bar__item-container--inactive"]),onClick:_=>s.handleClick(_,g)},[g.items||g.type==="link"?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,id:g.label,class:i.normalizeClass(["side-bar__item",s.isActive(g)?"side-bar__item--active":"side-bar__item--inactive"]),onMouseover:_=>a.itemsWithVisibilityController[y].show=!0},[i.createElementVNode("div",null,[i.createVNode(o,{name:g.icon,width:"20",height:"20"},null,8,["name"]),i.createElementVNode("span",null,i.toDisplayString(g.label),1)]),g.items&&g.items.length>0?(i.openBlock(),i.createBlock(o,{key:a.expandItemControl,name:s.resolveCollapsibleItemIcon(g),class:i.normalizeClass({item__caret:s.isActive(g)}),width:"16",height:"16"},null,8,["name","class"])):i.createCommentVNode("",!0)],42,rX)),[[m,a.collapsed&&g.type==="link"?g.label:null]]):i.withDirectives((i.openBlock(),i.createBlock(l,{key:1,to:s.routerPushTo(g),class:i.normalizeClass(["side-bar__item",s.isActive(g)?"side-bar__item--active":"side-bar__item--inactive"]),onClick:_=>s.handleClick(_,g)},{default:i.withCtx(()=>[i.createElementVNode("div",null,[i.createVNode(o,{name:g.icon,width:"20",height:"20"},null,8,["name"]),i.createElementVNode("span",null,i.toDisplayString(g.label),1)])]),_:2},1032,["to","class","onClick"])),[[m,a.collapsed?g.label:null]])],10,iX),a.collapsed?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.Transition,{key:0,name:"collapse"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",aX,[i.createElementVNode("div",sX,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(g.items,(_,w)=>(i.openBlock(),i.createElementBlock("a",{key:`${w}-${_.name}-item`,class:i.normalizeClass(["side-bar__subitem",s.isActive(_)&&(_==null?void 0:_.type)!=="external"?"side-bar__subitem--active":"side-bar__subitem--inactive"]),href:(_==null?void 0:_.type)==="external"?_.route.path:"javascript:void(0)",target:(_==null?void 0:_.type)==="external"?"_blank":"_self",rel:"noopener noreferrer",onClick:k=>s.handleClick(k,_)},[(_==null?void 0:_.type)==="external"?(i.openBlock(),i.createElementBlock("div",lX,[i.createTextVNode(i.toDisplayString(_.label)+" ",1),i.createVNode(o,{height:"16",width:"16",name:"open-in-new-tab-outline"})])):(i.openBlock(),i.createBlock(l,{key:1,class:"side-bar__subitem-link",to:s.routerPushTo(_)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(_.label),1)]),_:2},1032,["to"]))],10,oX))),128))])],512),[[i.vShow,s.resolveItemCollapse(g)]])]),_:2},1024)),g.items&&a.collapsed?(i.openBlock(),i.createElementBlock("div",cX,[i.createVNode(d,{modelValue:a.itemsWithVisibilityController[y].show,"onUpdate:modelValue":_=>a.itemsWithVisibilityController[y].show=_,"target-id":g.label,"default-placement":"bottom-start",width:"160"},{default:i.withCtx(()=>[i.createElementVNode("div",dX,[i.createElementVNode("p",uX,i.toDisplayString(g.label),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(g.items,(_,w)=>(i.openBlock(),i.createElementBlock("a",{key:`${w}-${_.name}-item`,class:"side-bar__subitem",href:(_==null?void 0:_.type)==="external"?_.route.path:"javascript:void(0)",target:"_blank",rel:"noopener noreferrer",onClick:k=>s.handleClick(k,_)},[(_==null?void 0:_.type)==="external"?(i.openBlock(),i.createElementBlock("div",fX,[i.createTextVNode(i.toDisplayString(_.label)+" ",1),i.createVNode(o,{height:"16",width:"16",name:"open-in-new-tab-outline"})])):(i.openBlock(),i.createBlock(l,{key:1,class:"side-bar__subitem-link",to:s.routerPushTo(_)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(_.label),1)]),_:2},1032,["to"]))],8,hX))),128))])]),_:2},1032,["modelValue","onUpdate:modelValue","target-id"])])):i.createCommentVNode("",!0)],40,nX))),128))],2)],2),i.createElementVNode("div",{class:i.normalizeClass(`side-bar__footer variant-resolver--${n.variant}`)},[i.createElementVNode("div",{id:"menu-profile",class:"side-bar__avatar",onClick:t[3]||(t[3]=i.withModifiers(g=>a.showPopover=!a.showPopover,["stop"]))},[i.createVNode(h,{src:n.userPicture,name:n.userName,variant:"white",size:"lg"},null,8,["src","name"]),i.createVNode(i.Transition,{name:"fade"},{default:i.withCtx(()=>[a.collapsed?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",pX,[i.createElementVNode("p",null,i.toDisplayString(n.userName),1),i.createElementVNode("p",null,i.toDisplayString(n.userRole),1)]))]),_:1})]),i.createElementVNode("ul",null,[n.showLogout?i.withDirectives((i.openBlock(),i.createElementBlock("li",{key:0,class:"side-bar__logout-button",onClick:t[4]||(t[4]=g=>e.$emit("logout",!0))},[i.createVNode(o,{name:"logout-outline",width:"20",height:"20"})])),[[m,a.logoutTooltipText]]):i.createCommentVNode("",!0)]),s.shouldShowProfileMenu?(i.openBlock(),i.createElementBlock("div",mX,[i.createVNode(f,{modelValue:a.showPopover,"onUpdate:modelValue":t[5]||(t[5]=g=>a.showPopover=g),"right-aligned":"","target-id":"menu-profile",width:"160",height:"160"},{default:i.withCtx(()=>[i.createElementVNode("div",gX,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.profileMenuItems,(g,y)=>(i.openBlock(),i.createElementBlock("div",{key:y},[i.createElementVNode("div",{class:"dropdown__container",onClick:_=>s.handleProfileMenuOptionClick(g)},[i.createVNode(o,{class:"dropdown__icon",height:"22",width:"22",name:g.icon},null,8,["name"]),i.createElementVNode("span",bX,i.toDisplayString(g.name),1)],8,yX)]))),128))])]),_:1},8,["modelValue"])])):i.createCommentVNode("",!0)],2)],2)}const Cv=te(T0,[["render",vX]]),_X={class:"secondary-navigation__container"},wX={class:"secondary-navigation__content"},kX={key:1},CX=["onClick","onMouseover"],xX={class:"secondary-navigation__content"},SX={key:1},xv=te({__name:"SecondaryNavigation",props:{light:{type:Boolean,default:!1},activeItem:{type:Object,default:()=>{}},items:{type:Array,default:()=>[]}},emits:["item-click"],setup(e,{emit:t}){const n=e,r=t,a=i.ref(n.activeItem.key),s=i.ref(null),o=i.ref(0),l=i.computed(()=>n.light?"light":"dark");i.watch(n.activeItem,w=>{a.value=w.key});const d=w=>{o.value=w},h=w=>{if(!w.route)return null;const{path:k,name:C}=w.route;return k instanceof String?{path:k}:{name:C}},f=w=>{g(w.key)||(s.value=null,a.value=w.key,r("item-click",w.key))},m=w=>a.value===w,g=w=>n.items.find(k=>{var C;return k.key===w&&((C=k==null?void 0:k.subitems)==null?void 0:C.length)>0}),y=(w,k)=>{s.value=w,a.value=k,r("item-click",w)},_=w=>s.value===w;return(w,k)=>{const C=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["secondary-navigation",`secondary-navigation--${l.value}`])},[i.createElementVNode("div",_X,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,M=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:M.key},[g(M.key)?(i.openBlock(),i.createElementBlock("div",kX,[i.createElementVNode("div",{class:i.normalizeClass(["secondary-navigation__item",m(M.key)?`secondary-navigation__item--active-${l.value}`:""]),onClick:E=>f(M),onMouseover:E=>d(M.key),onMouseleave:k[0]||(k[0]=E=>d(-1))},[i.createElementVNode("div",xX,[i.createTextVNode(i.toDisplayString(M.label)+" ",1),M.key!==o.value?(i.openBlock(),i.createBlock(ke,{key:0,class:"secondary-navigation__icon",name:"caret-down-outline",height:"16",width:"16"})):M.key===o.value?(i.openBlock(),i.createElementBlock("div",SX,[i.createVNode(ke,{class:"secondary-navigation__icon",height:"16",width:"16",name:"caret-up-outline"}),i.createElementVNode("div",{class:i.normalizeClass(["secondary-navigation__dropdown",`secondary-navigation__dropdown--${l.value}`])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(M.subitems,E=>(i.openBlock(),i.createBlock(C,{key:E.key,to:h(E),class:i.normalizeClass(["secondary-navigation__subitem",{"secondary-navigation__subitem--active":_(E.key)}]),onClick:x=>y(E.key,M.key)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(E.label),1)]),_:2},1032,["to","class","onClick"]))),128))],2)])):i.createCommentVNode("",!0)])],42,CX)])):(i.openBlock(),i.createBlock(C,{key:0,class:i.normalizeClass(["secondary-navigation__item",m(M.key)?`secondary-navigation__item--active-${l.value}`:""]),to:h(M),onClick:E=>f(M)},{default:i.withCtx(()=>[i.createElementVNode("div",wX,i.toDisplayString(M.label),1)]),_:2},1032,["class","to","onClick"]))],64))),128))]),k[1]||(k[1]=i.createElementVNode("div",{class:"secondary-navigation__overflow-left"},null,-1)),k[2]||(k[2]=i.createElementVNode("div",{class:"secondary-navigation__overflow-right"},null,-1))],2)}}},[["__scopeId","data-v-2c0e5f5c"]]),MX={class:"page-layout"},BX={class:"page-layout__content"},EX=te({__name:"PageLayout",props:{variant:{type:String,default:"green"},light:{type:Boolean,default:!1},user:{type:Object,default:()=>{}},collapsibleSideBar:{type:Boolean,default:!1},showProfileMenu:{type:Boolean,default:!1},sideBarItems:{type:Array,default:()=>[]},profileMenuItems:{type:Array,default:()=>[]},navigationItems:{type:Array,default:()=>[]},logos:{type:Object,default:()=>{}},sideBarActiveItem:{type:Object,default:()=>{}},navigationActiveItem:{type:Object,default:()=>{}}},emits:["sidebar-item-click","sidebar-logout","popover-item-click","navigation-item-click"],setup(e,{emit:t}){i.useCssVars(o=>({"36685eea":s.value}));const n=e,r=t,a=i.computed(()=>{var o;return((o=n.navigationItems)==null?void 0:o.length)>0}),s=i.computed(()=>a.value?"54px":"0px");return(o,l)=>{var d;return i.openBlock(),i.createElementBlock("div",MX,[i.createVNode(Cv,{variant:e.variant,"active-item":e.sideBarActiveItem,light:e.light,"user-name":e.user.name??"","user-role":e.user.role??"","user-picture":e.user.picture??null,collapsible:e.collapsibleSideBar,items:e.sideBarItems,"logo-image":e.logos.default,"collapsed-logo-image":e.logos.collapsed,"show-profile-menu":e.showProfileMenu,"profile-menu-items":e.profileMenuItems,onProfileMenuOptionClick:l[0]||(l[0]=h=>r("profile-menu-option-click",h)),onSidebarClick:l[1]||(l[1]=h=>r("sidebar-item-click",h)),onLogout:l[2]||(l[2]=h=>r("sidebar-logout",h)),onSettings:l[3]||(l[3]=h=>r("sidebar-settings",h))},null,8,["variant","active-item","light","user-name","user-role","user-picture","collapsible","items","logo-image","collapsed-logo-image","show-profile-menu","profile-menu-items"]),i.createElementVNode("div",BX,[((d=e.navigationItems)==null?void 0:d.length)>0?(i.openBlock(),i.createBlock(xv,{key:0,light:e.light,"active-item":e.navigationActiveItem,items:e.navigationItems,onItemClick:l[4]||(l[4]=h=>r("navigation-item-click",h))},null,8,["light","active-item","items"])):i.createCommentVNode("",!0),i.createVNode(_v,{class:"page-layout__container"},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default",{},void 0,!0)]),_:3})])])}}},[["__scopeId","data-v-428d73ca"]]),DX={components:{CdsLink:nc},props:{title:{type:String,required:!0},subtitle:{type:String,default:null},compact:{type:Boolean,default:!1}},data(){return{hasURL:!1,url:"",splitedSubtitle:[]}},computed:{fancyUrl(){return this.url.split(/http:\/\/|https:\/\//)[1]}},mounted(){this.computedSubtitle()},methods:{computedSubtitle(){var n;const e=/\b(?:http:\/\/|https:\/\/)?[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,}(?:\/\S*)?/g,t=(n=this.subtitle)==null?void 0:n.match(e);t&&t.length>0&&(this.splitedSubtitle=this.subtitle.split(t[0]),this.url=t[0])}}},OX={class:"page-header__title"},VX={key:0,class:"d-flex"},$X={class:"page-header__subtitle"},TX={key:1,class:"page-header__subtitle"},IX={class:"page-header__aside-slot"};function AX(e,t,n,r,a,s){const o=i.resolveComponent("cds-link");return i.openBlock(),i.createElementBlock("header",{class:i.normalizeClass(n.compact?"page-header__container--compact":"page-header__container")},[i.createElementVNode("div",null,[i.createElementVNode("p",OX,i.toDisplayString(n.title),1),a.splitedSubtitle.length>0?(i.openBlock(),i.createElementBlock("div",VX,[i.createElementVNode("span",$X,[i.createTextVNode(i.toDisplayString(a.splitedSubtitle[0])+" ",1),i.createVNode(o,{href:a.url,bold:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(s.fancyUrl),1)]),_:1},8,["href"]),i.createTextVNode(" "+i.toDisplayString(a.splitedSubtitle[1]),1)])])):(i.openBlock(),i.createElementBlock("div",TX,i.toDisplayString(n.subtitle),1))]),i.createElementVNode("div",IX,[i.renderSlot(e.$slots,"aside")])],2)}const NX=te(DX,[["render",AX]]);class qn{constructor(t,n,r,a=null){this.index=t,this.value=n,this.selected=r,this.text=a||n}}const LX={components:{CdsChevron:Ts},props:{modelValue:{type:[Number,String],default:1},total:{type:Number,default:1,validator:e=>e>=1},perPage:{type:Number,default:1,validator:e=>e>=1},fluid:{type:Boolean,default:!1},variant:{type:String,default:"green"}},data(){return{selectedPage:new qn(null,parseInt(this.modelValue,10),!0),pages:[]}},computed:{pageCount(){return this.total/this.perPage<1?1:Math.ceil(this.total/this.perPage)},computedContainerClass(){return this.fluid?"pagination__container--fluid":"pagination__container"}},watch:{modelValue(e,t){e===t||e===this.selectedPage.value||(this.selectedPage=new qn(null,parseInt(e,10),!0),this.resolvePages())}},beforeMount(){this.resolvePages()},methods:{resolveButtonClass(e){switch(e.index){case 0:return this.selectedPage.value===1?"pagination__button--first pagination__button--disabled":"pagination__button--first";case 1:return this.selectedPage.value===1?"pagination__button pagination__button--disabled":"pagination__button";case 7:return this.selectedPage.value===this.pageCount?"pagination__button pagination__button--disabled":"pagination__button";case 8:return this.selectedPage.value===this.pageCount?"pagination__button--last pagination__button--disabled":"pagination__button--last";default:return e.selected?Bf("pagination__button--active",this.variant):"pagination__button"}},resolvePages(){this.pages=[new qn(0,"first",!1,"<<"),new qn(1,"back",!1,"<"),...this.mountPagesArray(),new qn(7,"forward",!1,">"),new qn(8,"last",!1,">>")]},mountPagesArray(){const e=this.pageCount<5?this.pageCount+2:7,t=[];if(this.selectedPage.value<=3||this.pageCount<=5){this.selectedPage.index=this.selectedPage.value;for(let n=2;n<e;n++)t[n-2]=new qn(n,n-1,this.selectedPage.value===n-1);return t}if(this.selectedPage.value<=this.pageCount-2){for(let n=2;n<e;n++){const r=this.selectedPage.value-4+n;t[n-2]=new qn(n+1,r,this.selectedPage.value===r)}return t}for(let n=2;n<e;n++){const r=this.pageCount-6+n;t[n-2]=new qn(n,r,this.selectedPage.value===r)}return t},handlePageClick(e){switch(e.value){case this.selectedPage.value:return;case"first":if(this.selectedPage.index===1)return;this.selectedPage=new qn(null,1,!0),this.$emit("update:modelValue",1),this.resolvePages();return;case"last":if(this.selectedPage.index===this.pageCount)return;this.selectedPage=new qn(null,this.pageCount,!0),this.$emit("update:modelValue",this.pageCount),this.resolvePages();return;case"back":if(this.selectedPage.index===1)return;this.$emit("update:modelValue",this.selectedPage.value-1),this.selectedPage=new qn(null,this.selectedPage.value-1,!0),this.resolvePages();return;case"forward":if(this.selectedPage.value===this.pageCount)return;this.$emit("update:modelValue",this.selectedPage.value+1),this.selectedPage=new qn(null,this.selectedPage.value+1,!0),this.resolvePages();return;default:this.selectedPage=new qn(null,e.value,!0),this.$emit("update:modelValue",e.value),this.resolvePages();break}}}},zX=["onClick"],PX={key:3};function FX(e,t,n,r,a,s){const o=i.resolveComponent("cds-chevron");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(s.computedContainerClass)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.pages,(l,d)=>(i.openBlock(),i.createElementBlock("div",{key:d,class:i.normalizeClass(s.resolveButtonClass(l)),onClick:h=>s.handlePageClick(l)},[d===0?(i.openBlock(),i.createBlock(o,{key:0,direction:"left",class:"pagination__double-chevron--left"})):i.createCommentVNode("",!0),d===0?(i.openBlock(),i.createBlock(o,{key:1,direction:"left",class:"pagination__double-chevron--left"})):i.createCommentVNode("",!0),d===1?(i.openBlock(),i.createBlock(o,{key:2,direction:"left"})):i.createCommentVNode("",!0),d>=2&&d<=a.pages.length-3?(i.openBlock(),i.createElementBlock("span",PX,i.toDisplayString(l.text),1)):i.createCommentVNode("",!0),d===a.pages.length-2?(i.openBlock(),i.createBlock(o,{key:4,direction:"right"})):i.createCommentVNode("",!0),d===a.pages.length-1?(i.openBlock(),i.createBlock(o,{key:5,direction:"right",class:"pagination__double-chevron--right"})):i.createCommentVNode("",!0),d===a.pages.length-1?(i.openBlock(),i.createBlock(o,{key:6,direction:"right",class:"pagination__double-chevron--right"})):i.createCommentVNode("",!0)],10,zX))),128))],2)}const RX=te(LX,[["render",FX],["__scopeId","data-v-c81c79f6"]]),HX={components:{CdsBox:Ql,CdsDivider:$s},props:{title:{type:String,default:"Título",required:!0},subtitle:{type:String,default:"Subtítulo",required:!0},noContentPadding:{type:Boolean,default:!1}},computed:{contentClass(){return this.noContentPadding?"panel-card__content--no-pading":"panel-card__content"}}},WX={class:"panel-card__header"},YX={class:"panel-card__title"},UX={class:"panel-card__subtitle"};function jX(e,t,n,r,a,s){const o=i.resolveComponent("cds-divider"),l=i.resolveComponent("cds-box");return i.openBlock(),i.createBlock(l,{class:"panel-card",padding:"0",fluid:""},{default:i.withCtx(()=>[i.createElementVNode("div",WX,[i.createElementVNode("div",null,[i.createElementVNode("span",YX,i.toDisplayString(n.title),1),t[0]||(t[0]=i.createElementVNode("br",null,null,-1)),i.createElementVNode("span",UX,i.toDisplayString(n.subtitle),1)]),i.createElementVNode("div",null,[i.renderSlot(e.$slots,"panel-actions",{},void 0,!0)])]),i.createVNode(o,{dimmed:""}),i.createElementVNode("div",{class:i.normalizeClass(s.contentClass)},[i.renderSlot(e.$slots,"default",{},void 0,!0)],2)]),_:3})}const qX=te(HX,[["render",jX],["__scopeId","data-v-e1c5a182"]]),GX={props:{modelValue:{type:String,default:""},length:{type:Number,default:4},state:{type:String,default:"default"},visible:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1}},data(){return{innerValue:this.modelValue.split("")}},computed:{computedClass(){let e="";switch(this.state){case"valid":e="pin-input--valid";break;case"invalid":e="pin-input--invalid";break;default:e="pin-input"}return this.mobile?`${e} pin-input--mobile`:e}},watch:{modelValue(e){this.innerValue=e.split("")}},methods:{handleInput(e,t){let n=this.innerValue.join("");t<this.length&&e.inputType!=="deleteContentBackward"&&this.$refs[`pin-input${t+1}`][0].focus(),n.length===this.length&&this.$emit("update:modelValue",n)},handleBack(e){if(e>1){this.innerValue[e-1]="";let t=this.$refs[`pin-input${e-1}`][0];setTimeout(()=>{t.focus()},150)}},fixCursorPosition(e){let t=this.$refs[`pin-input${e}`][0];setTimeout(()=>{t.setSelectionRange(1,1)},3)},changeInputContent(e,t){this.innerValue.splice(t-1,1,e.key),t<this.length&&this.$refs[`pin-input${t+1}`][0].focus(),t===this.length&&this.$emit("update:modelValue",this.innerValue.join(""))}}},KX={class:"pin-input__container"},ZX=["id","onUpdate:modelValue","type","onKeydown","onKeypress","onInput","onFocus"];function XX(e,t,n,r,a,s){return i.openBlock(),i.createElementBlock("div",KX,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.length,(o,l)=>i.withDirectives((i.openBlock(),i.createElementBlock("input",{id:`pin-input${o}`,key:l,ref_for:!0,ref:`pin-input${o}`,"onUpdate:modelValue":d=>a.innerValue[o-1]=d,type:n.visible?"text":"password",maxlength:"1",class:i.normalizeClass(["pin-input",s.computedClass]),autocomplete:"off",onKeydown:i.withKeys(i.withModifiers(d=>s.handleBack(o),["stop"]),["delete"]),onKeypress:d=>s.changeInputContent(d,o),onInput:d=>s.handleInput(d,o),onFocus:d=>s.fixCursorPosition(o)},null,42,ZX)),[[i.vModelDynamic,a.innerValue[o-1]]])),128))])}const JX=te(GX,[["render",XX],["__scopeId","data-v-4e202c49"]]),I0={props:{variant:{type:String,default:"green"},value:{type:Number,default:0,required:!0},showText:{type:Boolean,default:!1,required:!1},textAside:{type:Boolean,default:!1}},computed:{formatedvalue(){return`${parseInt(this.value*100,10)}%`},progressIndicatorStyle(){return{"--width":this.formatedvalue,"--leftMargin":this.textAside?"3":"10","--bottomMargin":this.textAside?"10":"2"}},textDirection(){return this.textAside?"row-reverse":"column"}}},Sv=()=>{i.useCssVars(e=>({bf5feb56:e.textDirection}))},Mv=I0.setup;I0.setup=Mv?(e,t)=>(Sv(),Mv(e,t)):Sv;const QX={class:"progress-bar"},eJ={class:"progress-bar__content"};function tJ(e,t,n,r,a,s){return i.openBlock(),i.createElementBlock("div",QX,[n.showText?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(n.textAside?"bar__text--aside":"bar__text")},i.toDisplayString(s.formatedvalue),3)):i.createCommentVNode("",!0),i.createElementVNode("div",eJ,[i.createElementVNode("div",{class:i.normalizeClass(`progress-bar__indicator--${n.variant}`),style:i.normalizeStyle(s.progressIndicatorStyle)},null,6)])])}const nJ=te(I0,[["render",tJ],["__scopeId","data-v-d3a3d8d6"]]),iJ={props:{variant:{type:String,default:"green"},size:{type:String,default:"md",required:!1},value:{type:Number,default:0,required:!0},maxValue:{type:Number,default:100,required:!1},slim:{type:Boolean,default:!1},thick:{type:Boolean,default:!1},noLabel:{type:Boolean,default:!1}},computed:{label(){return this.maxValue>=100?`${Math.round(100*this.value/this.maxValue)}%`:`${this.value}/${this.maxValue}`},normalizedDashArray(){return`${100*this.value/this.maxValue}, 100`},stroke(){return this.slim?1.5:this.thick?4.5:3.5},labelClass(){return`progress-circular__label${this.maxValue>=100?"--reduced":""}`},circleIndicatorStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},methods:{colorHexCode:to}},rJ=["stroke-width"],aJ=["stroke-dasharray","stroke-width"];function sJ(e,t,n,r,a,s){return i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["progress-circular",`progress-circular--${n.size}`]),viewBox:"0 0 36 36"},[i.createElementVNode("path",{class:"progress-circular__ring-background","stroke-width":s.stroke,d:`M18 2.0845
70
70
  a 15.9155 15.9155 0 0 1 0 31.831
71
71
  a 15.9155 15.9155 0 0 1 0 -31.831`},null,8,rJ),i.createElementVNode("path",{class:i.normalizeClass(`progress-circular__ring-progress--${n.variant}`),"stroke-dasharray":s.normalizedDashArray,"stroke-width":s.stroke-1,style:i.normalizeStyle(s.circleIndicatorStyle),d:`M18 2.0845
72
72
  a 15.9155 15.9155 0 0 1 0 31.831