@selfeesas/shared-components 1.3.1 → 1.3.2

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.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("vue"),vi={xs:18,sm:24,md:32,lg:38,xl:46},Vr={size:String};function qr(l,I=vi){return g.computed(()=>l.size!==void 0?{fontSize:l.size in I?`${I[l.size]}px`:l.size}:null)}function Lt(l,I,t,v){return Object.defineProperty(l,I,{get:t,set:v,enumerable:!0}),l}function Bs(l,I){for(const t in I)Lt(l,t,I[t]);return l}function $e(l){return g.markRaw(g.defineComponent(l))}function Fi(l){return g.markRaw(l)}const Is=(l,I)=>{const t=g.reactive(l);for(const v in l)Lt(I,v,()=>t[v],m=>{t[v]=m});return I};function gt(l,I){return l!==void 0&&l()||I}function ji(l,I){if(l!==void 0){const t=l();if(t!=null)return t.slice()}return I}function It(l,I){return l!==void 0?I.concat(l()):I}function ga(l,I){return l===void 0?I:I!==void 0?I.concat(l()):l()}function Os(l,I,t,v,m,c){I.key=v+m;const a=g.h(l,I,t);return m===!0?g.withDirectives(a,c()):a}const bo="0 0 24 24",$n=l=>l,ei=l=>`ionicons ${l}`,ba={"mdi-":l=>`mdi ${l}`,"icon-":$n,"bt-":l=>`bt ${l}`,"eva-":l=>`eva ${l}`,"ion-md":ei,"ion-ios":ei,"ion-logo":ei,"iconfont ":$n,"ti-":l=>`themify-icon ${l}`,"bi-":l=>`bootstrap-icons ${l}`,"i-":$n},va={o_:"-outlined",r_:"-round",s_:"-sharp"},ya={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Fs=new RegExp("^("+Object.keys(ba).join("|")+")"),js=new RegExp("^("+Object.keys(va).join("|")+")"),vo=new RegExp("^("+Object.keys(ya).join("|")+")"),Ds=/^[Mm]\s?[-+]?\.?\d/,Ps=/^img:/,Ns=/^svguse:/,Ls=/^ion-/,Vs=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,vt=$e({name:"QIcon",props:{...Vr,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(l,{slots:I}){const{proxy:{$q:t}}=g.getCurrentInstance(),v=qr(l),m=g.computed(()=>"q-icon"+(l.left===!0?" on-left":"")+(l.right===!0?" on-right":"")+(l.color!==void 0?` text-${l.color}`:"")),c=g.computed(()=>{let a,s=l.name;if(s==="none"||!s)return{none:!0};if(t.iconMapFn!==null){const r=t.iconMapFn(s);if(r!==void 0)if(r.icon!==void 0){if(s=r.icon,s==="none"||!s)return{none:!0}}else return{cls:r.cls,content:r.content!==void 0?r.content:" "}}if(Ds.test(s)===!0){const[r,u=bo]=s.split("|");return{svg:!0,viewBox:u,nodes:r.split("&&").map(o=>{const[i,d,h]=o.split("@@");return g.h("path",{style:d,d:i,transform:h})})}}if(Ps.test(s)===!0)return{img:!0,src:s.substring(4)};if(Ns.test(s)===!0){const[r,u=bo]=s.split("|");return{svguse:!0,src:r.substring(7),viewBox:u}}let n=" ";const e=s.match(Fs);if(e!==null)a=ba[e[1]](s);else if(Vs.test(s)===!0)a=s;else if(Ls.test(s)===!0)a=`ionicons ion-${t.platform.is.ios===!0?"ios":"md"}${s.substring(3)}`;else if(vo.test(s)===!0){a="notranslate material-symbols";const r=s.match(vo);r!==null&&(s=s.substring(6),a+=ya[r[1]]),n=s}else{a="notranslate material-icons";const r=s.match(js);r!==null&&(s=s.substring(2),a+=va[r[1]]),n=s}return{cls:a,content:n}});return()=>{const a={class:m.value,style:v.value,"aria-hidden":"true"};return c.value.none===!0?g.h(l.tag,a,gt(I.default)):c.value.img===!0?g.h(l.tag,a,It(I.default,[g.h("img",{src:c.value.src})])):c.value.svg===!0?g.h(l.tag,a,It(I.default,[g.h("svg",{viewBox:c.value.viewBox||"0 0 24 24"},c.value.nodes)])):c.value.svguse===!0?g.h(l.tag,a,It(I.default,[g.h("svg",{viewBox:c.value.viewBox},[g.h("use",{"xlink:href":c.value.src})])])):(c.value.cls!==void 0&&(a.class+=" "+c.value.cls),g.h(l.tag,a,It(I.default,[c.value.content])))}}});function En(l){if(Object(l.$parent)===l.$parent)return l.$parent;let{parent:I}=l.$;for(;Object(I)===I;){if(Object(I.proxy)===I.proxy)return I.proxy;I=I.parent}}function wa(l,I){typeof I.type=="symbol"?Array.isArray(I.children)===!0&&I.children.forEach(t=>{wa(l,t)}):l.add(I)}function qs(l){const I=new Set;return l.forEach(t=>{wa(I,t)}),Array.from(I)}function Di(l){return l.appContext.config.globalProperties.$router!==void 0}function Pi(l){return l.isUnmounted===!0||l.isDeactivated===!0}function yo(l){return l?l.aliasOf?l.aliasOf.path:l.path:""}function wo(l,I){return(l.aliasOf||l)===(I.aliasOf||I)}function zs(l,I){for(const t in I){const v=I[t],m=l[t];if(typeof v=="string"){if(v!==m)return!1}else if(Array.isArray(m)===!1||m.length!==v.length||v.some((c,a)=>c!==m[a]))return!1}return!0}function xo(l,I){return Array.isArray(I)===!0?l.length===I.length&&l.every((t,v)=>t===I[v]):l.length===1&&l[0]===I}function Us(l,I){return Array.isArray(l)===!0?xo(l,I):Array.isArray(I)===!0?xo(I,l):l===I}function Ws(l,I){if(Object.keys(l).length!==Object.keys(I).length)return!1;for(const t in l)if(Us(l[t],I[t])===!1)return!1;return!0}const xa={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Sa={...xa,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Ni({fallbackTag:l,useDisableForRouterLinkProps:I=!0}={}){const t=g.getCurrentInstance(),{props:v,proxy:m,emit:c}=t,a=Di(t),s=g.computed(()=>v.disable!==!0&&v.href!==void 0),n=I===!0?g.computed(()=>a===!0&&v.disable!==!0&&s.value!==!0&&v.to!==void 0&&v.to!==null&&v.to!==""):g.computed(()=>a===!0&&s.value!==!0&&v.to!==void 0&&v.to!==null&&v.to!==""),e=g.computed(()=>n.value===!0?p(v.to):null),r=g.computed(()=>e.value!==null),u=g.computed(()=>s.value===!0||r.value===!0),o=g.computed(()=>v.type==="a"||u.value===!0?"a":v.tag||l||"div"),i=g.computed(()=>s.value===!0?{href:v.href,target:v.target}:r.value===!0?{href:e.value.href,target:v.target}:{}),d=g.computed(()=>{if(r.value===!1)return-1;const{matched:T}=e.value,{length:D}=T,z=T[D-1];if(z===void 0)return-1;const P=m.$route.matched;if(P.length===0)return-1;const N=P.findIndex(wo.bind(null,z));if(N!==-1)return N;const V=yo(T[D-2]);return D>1&&yo(z)===V&&P[P.length-1].path!==V?P.findIndex(wo.bind(null,T[D-2])):N}),h=g.computed(()=>r.value===!0&&d.value!==-1&&zs(m.$route.params,e.value.params)),f=g.computed(()=>h.value===!0&&d.value===m.$route.matched.length-1&&Ws(m.$route.params,e.value.params)),b=g.computed(()=>r.value===!0?f.value===!0?` ${v.exactActiveClass} ${v.activeClass}`:v.exact===!0?"":h.value===!0?` ${v.activeClass}`:"":"");function p(T){try{return m.$router.resolve(T)}catch{}return null}function S(T,{returnRouterError:D,to:z=v.to,replace:P=v.replace}={}){if(v.disable===!0)return T.preventDefault(),Promise.resolve(!1);if(T.metaKey||T.altKey||T.ctrlKey||T.shiftKey||T.button!==void 0&&T.button!==0||v.target==="_blank")return Promise.resolve(!1);T.preventDefault();const N=m.$router[P===!0?"replace":"push"](z);return D===!0?N:N.then(()=>{}).catch(()=>{})}function _(T){if(r.value===!0){const D=z=>S(T,z);c("click",T,D),T.defaultPrevented!==!0&&D()}else c("click",T)}return{hasRouterLink:r,hasHrefLink:s,hasLink:u,linkTag:o,resolvedLink:e,linkIsActive:h,linkIsExactActive:f,linkClass:b,linkAttrs:i,getLink:p,navigateToRouterLink:S,navigateOnClick:_}}const Hs=$e({name:"QBreadcrumbsEl",props:{...Sa,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(l,{slots:I}){const{linkTag:t,linkAttrs:v,linkClass:m,navigateOnClick:c}=Ni(),a=g.computed(()=>({class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(l.disable!==!0?"q-link--focusable"+m.value:"q-breadcrumbs__el--disable"),...v.value,onClick:c})),s=g.computed(()=>"q-breadcrumbs__el-icon"+(l.label!==void 0?" q-breadcrumbs__el-icon--with-label":""));return()=>{const n=[];return l.icon!==void 0&&n.push(g.h(vt,{class:s.value,name:l.icon})),l.label!==void 0&&n.push(l.label),g.h(t.value,{...a.value},It(I.default,n))}}}),ka={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Ys=Object.keys(ka),Li={align:{type:String,validator:l=>Ys.includes(l)}};function Vi(l){return g.computed(()=>{const I=l.align===void 0?l.vertical===!0?"stretch":"left":l.align;return`${l.vertical===!0?"items":"justify"}-${ka[I]}`})}const Qs=["",!0],Ks=$e({name:"QBreadcrumbs",props:{...Li,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:l=>["none","xs","sm","md","lg","xl"].includes(l),default:"sm"}},setup(l,{slots:I}){const t=Vi(l),v=g.computed(()=>`flex items-center ${t.value}${l.gutter==="none"?"":` q-gutter-${l.gutter}`}`),m=g.computed(()=>l.separatorColor?` text-${l.separatorColor}`:""),c=g.computed(()=>` text-${l.activeColor}`);return()=>{if(I.default===void 0)return;const a=qs(gt(I.default));if(a.length===0)return;let s=1;const n=[],e=a.filter(u=>u.type?.name==="QBreadcrumbsEl").length,r=I.separator!==void 0?I.separator:()=>l.separator;return a.forEach(u=>{if(u.type?.name==="QBreadcrumbsEl"){const o=s<e,i=u.props!==null&&Qs.includes(u.props.disable),d=(o===!0?"":" q-breadcrumbs--last")+(i!==!0&&o===!0?c.value:"");s++,n.push(g.h("div",{class:`flex items-center${d}`},[u])),o===!0&&n.push(g.h("div",{class:"q-breadcrumbs__separator"+m.value},r()))}else n.push(u)}),g.h("div",{class:"q-breadcrumbs"},[g.h("div",{class:v.value},n)])}}}),Xs=g.defineComponent({inheritAttrs:!1,__name:"Breadcrumbs",props:{activeColor:{},separatorIcon:{},separatorSize:{},separatorColor:{},store:{},navStore:{},route:{},router:{},breadcrumbConfig:{},separator:{},gutter:{},align:{}},setup(l){const I=l,t=g.useAttrs(),v=g.computed(()=>{const{activeColor:o,separatorIcon:i,separatorSize:d,separatorColor:h,...f}=t;return f}),m=o=>({"data-cy":o.dataCy,class:"cursor-pointer text-h5",color:o.color}),c=g.computed(()=>I.activeColor||"primary"),a=g.computed(()=>I.separatorIcon||"chevron_right"),s=g.computed(()=>I.separatorSize||"2em"),n=g.computed(()=>I.separatorColor||"primary"),e=g.computed(()=>({store:I.store,route:I.route,navStore:I.navStore||{}})),r=g.computed(()=>{const o=[];return I.breadcrumbConfig.forEach(i=>{if(!i.shouldRender(e.value))return;const d=i.getLabel?i.getLabel(e.value):i.defaultLabel,h=i.getColor?i.getColor(e.value):"dark",f={name:i.routeName,...i.getRouteParams&&{params:i.getRouteParams(e.value)}},b=i.clearActions?i.clearActions.map(p=>()=>p(e.value)):[];o.push({label:d,dataCy:i.dataCy,color:h,route:f,clearActions:b})}),o}),u=o=>{o.clearActions&&o.clearActions.forEach(i=>i()),I.router.push(o.route)};return(o,i)=>(g.openBlock(),g.createBlock(Ks,g.mergeProps({"active-color":c.value,class:"text-brown"},v.value),{separator:g.withCtx(()=>[g.createVNode(vt,{size:s.value,name:a.value,color:n.value},null,8,["size","name","color"])]),default:g.withCtx(()=>[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(r.value,(d,h)=>(g.openBlock(),g.createBlock(Hs,g.mergeProps({key:h},{ref_for:!0},m(d),{label:d.label,onClick:f=>u(d)}),null,16,["label","onClick"]))),128))]),_:1},16,["active-color"]))}}),Gs={size:{type:[String,Number],default:"1em"},color:String};function Js(l){return{cSize:g.computed(()=>l.size in vi?`${vi[l.size]}px`:l.size),classes:g.computed(()=>"q-spinner"+(l.color?` text-${l.color}`:""))}}const Ca=$e({name:"QSpinner",props:{...Gs,thickness:{type:Number,default:5}},setup(l){const{cSize:I,classes:t}=Js(l);return()=>g.h("svg",{class:t.value+" q-spinner-mat",width:I.value,height:I.value,viewBox:"25 25 50 50"},[g.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":l.thickness,"stroke-miterlimit":"10"})])}});function yi(l,I){const t=l.style;for(const v in I)t[v]=I[v]}function Zs(l){if(l==null)return;if(typeof l=="string")try{return document.querySelector(l)||void 0}catch{return}const I=g.unref(l);if(I)return I.$el||I}function _a(l,I){if(l==null||l.contains(I)===!0)return!0;for(let t=l.nextElementSibling;t!==null;t=t.nextElementSibling)if(t.contains(I))return!0;return!1}const Ct={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const l=Object.defineProperty({},"passive",{get(){Object.assign(Ct,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,l),window.removeEventListener("qtest",null,l)}catch{}function Hn(){}function $s(l){return l.button===0}function Jr(l){return l.touches&&l.touches[0]?l=l.touches[0]:l.changedTouches&&l.changedTouches[0]?l=l.changedTouches[0]:l.targetTouches&&l.targetTouches[0]&&(l=l.targetTouches[0]),{top:l.clientY,left:l.clientX}}function el(l){if(l.path)return l.path;if(l.composedPath)return l.composedPath();const I=[];let t=l.target;for(;t;){if(I.push(t),t.tagName==="HTML")return I.push(document),I.push(window),I;t=t.parentElement}}function Dt(l){l.stopPropagation()}function Bt(l){l.cancelable!==!1&&l.preventDefault()}function St(l){l.cancelable!==!1&&l.preventDefault(),l.stopPropagation()}function ti(l,I){if(l===void 0||I===!0&&l.__dragPrevented===!0)return;const t=I===!0?v=>{v.__dragPrevented=!0,v.addEventListener("dragstart",Bt,Ct.notPassiveCapture)}:v=>{delete v.__dragPrevented,v.removeEventListener("dragstart",Bt,Ct.notPassiveCapture)};l.querySelectorAll("a, img").forEach(t)}function Gt(l,I,t){const v=`__q_${I}_evt`;l[v]=l[v]!==void 0?l[v].concat(t):t,t.forEach(m=>{m[0].addEventListener(m[1],l[m[2]],Ct[m[3]])})}function br(l,I){const t=`__q_${I}_evt`;l[t]!==void 0&&(l[t].forEach(v=>{v[0].removeEventListener(v[1],l[v[2]],Ct[v[3]])}),l[t]=void 0)}function qi(l){return l!==Object(l)||l.isComposing===!0||l.qKeyEvent===!0}function ur(l,I){return qi(l)===!0?!1:[].concat(I).includes(l.keyCode)}function tl(l,I=250){let t=!1,v;return function(){return t===!1&&(t=!0,setTimeout(()=>{t=!1},I),v=l.apply(this,arguments)),v}}function So(l,I,t,v){t.modifiers.stop===!0&&Dt(l);const m=t.modifiers.color;let c=t.modifiers.center;c=c===!0||v===!0;const a=document.createElement("span"),s=document.createElement("span"),n=Jr(l),{left:e,top:r,width:u,height:o}=I.getBoundingClientRect(),i=Math.sqrt(u*u+o*o),d=i/2,h=`${(u-i)/2}px`,f=c?h:`${n.left-e-d}px`,b=`${(o-i)/2}px`,p=c?b:`${n.top-r-d}px`;s.className="q-ripple__inner",yi(s,{height:`${i}px`,width:`${i}px`,transform:`translate3d(${f},${p},0) scale3d(.2,.2,1)`,opacity:0}),a.className=`q-ripple${m?" text-"+m:""}`,a.setAttribute("dir","ltr"),a.appendChild(s),I.appendChild(a);const S=()=>{a.remove(),clearTimeout(_)};t.abort.push(S);let _=setTimeout(()=>{s.classList.add("q-ripple__inner--enter"),s.style.transform=`translate3d(${h},${b},0) scale3d(1,1,1)`,s.style.opacity=.2,_=setTimeout(()=>{s.classList.remove("q-ripple__inner--enter"),s.classList.add("q-ripple__inner--leave"),s.style.opacity=0,_=setTimeout(()=>{a.remove(),t.abort.splice(t.abort.indexOf(S),1)},275)},250)},50)}function ko(l,{modifiers:I,value:t,arg:v}){const m=Object.assign({},l.cfg.ripple,I,t);l.modifiers={early:m.early===!0,stop:m.stop===!0,center:m.center===!0,color:m.color||v,keyCodes:[].concat(m.keyCodes||13)}}const Aa=Fi({name:"ripple",beforeMount(l,I){const t=I.instance.$.appContext.config.globalProperties.$q.config||{};if(t.ripple===!1)return;const v={cfg:t,enabled:I.value!==!1,modifiers:{},abort:[],start(m){v.enabled===!0&&m.qSkipRipple!==!0&&m.type===(v.modifiers.early===!0?"pointerdown":"click")&&So(m,l,v,m.qKeyEvent===!0)},keystart:tl(m=>{v.enabled===!0&&m.qSkipRipple!==!0&&ur(m,v.modifiers.keyCodes)===!0&&m.type===`key${v.modifiers.early===!0?"down":"up"}`&&So(m,l,v,!0)},300)};ko(v,I),l.__qripple=v,Gt(v,"main",[[l,"pointerdown","start","passive"],[l,"click","start","passive"],[l,"keydown","keystart","passive"],[l,"keyup","keystart","passive"]])},updated(l,I){if(I.oldValue!==I.value){const t=l.__qripple;t!==void 0&&(t.enabled=I.value!==!1,t.enabled===!0&&Object(I.value)===I.value&&ko(t,I))}},beforeUnmount(l){const I=l.__qripple;I!==void 0&&(I.abort.forEach(t=>{t()}),br(I,"main"),delete l._qripple)}}),Co={none:0,xs:4,sm:8,md:16,lg:24,xl:32},rl={xs:8,sm:10,md:14,lg:20,xl:24},nl=["button","submit","reset"],il=/[^\s]\/[^\s]/,ol=["flat","outline","push","unelevated"];function al(l,I){return l.flat===!0?"flat":l.outline===!0?"outline":l.push===!0?"push":l.unelevated===!0?"unelevated":I}const sl={...Vr,...xa,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...ol.reduce((l,I)=>(l[I]=Boolean)&&l,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...Li.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},ll={...sl,round:Boolean};function ul(l){const I=qr(l,rl),t=Vi(l),{hasRouterLink:v,hasLink:m,linkTag:c,linkAttrs:a,navigateOnClick:s}=Ni({fallbackTag:"button"}),n=g.computed(()=>{const f=l.fab===!1&&l.fabMini===!1?I.value:{};return l.padding!==void 0?Object.assign({},f,{padding:l.padding.split(/\s+/).map(b=>b in Co?Co[b]+"px":b).join(" "),minWidth:"0",minHeight:"0"}):f}),e=g.computed(()=>l.rounded===!0||l.fab===!0||l.fabMini===!0),r=g.computed(()=>l.disable!==!0&&l.loading!==!0),u=g.computed(()=>r.value===!0?l.tabindex||0:-1),o=g.computed(()=>al(l,"standard")),i=g.computed(()=>{const f={tabindex:u.value};return m.value===!0?Object.assign(f,a.value):nl.includes(l.type)===!0&&(f.type=l.type),c.value==="a"?(l.disable===!0?f["aria-disabled"]="true":f.href===void 0&&(f.role="button"),v.value!==!0&&il.test(l.type)===!0&&(f.type=l.type)):l.disable===!0&&(f.disabled="",f["aria-disabled"]="true"),l.loading===!0&&l.percentage!==void 0&&Object.assign(f,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l.percentage}),f}),d=g.computed(()=>{let f;l.color!==void 0?l.flat===!0||l.outline===!0?f=`text-${l.textColor||l.color}`:f=`bg-${l.color} text-${l.textColor||"white"}`:l.textColor&&(f=`text-${l.textColor}`);const b=l.round===!0?"round":`rectangle${e.value===!0?" q-btn--rounded":l.square===!0?" q-btn--square":""}`;return`q-btn--${o.value} q-btn--${b}`+(f!==void 0?" "+f:"")+(r.value===!0?" q-btn--actionable q-focusable q-hoverable":l.disable===!0?" disabled":"")+(l.fab===!0?" q-btn--fab":l.fabMini===!0?" q-btn--fab-mini":"")+(l.noCaps===!0?" q-btn--no-uppercase":"")+(l.dense===!0?" q-btn--dense":"")+(l.stretch===!0?" no-border-radius self-stretch":"")+(l.glossy===!0?" glossy":"")+(l.square?" q-btn--square":"")}),h=g.computed(()=>t.value+(l.stack===!0?" column":" row")+(l.noWrap===!0?" no-wrap text-no-wrap":"")+(l.loading===!0?" q-btn__content--hidden":""));return{classes:d,style:n,innerClasses:h,attributes:i,hasLink:m,linkTag:c,navigateOnClick:s,isActionable:r}}const{passiveCapture:Nt}=Ct;let _r=null,Ar=null,Er=null;const ot=$e({name:"QBtn",props:{...ll,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(l,{slots:I,emit:t}){const{proxy:v}=g.getCurrentInstance(),{classes:m,style:c,innerClasses:a,attributes:s,hasLink:n,linkTag:e,navigateOnClick:r,isActionable:u}=ul(l),o=g.ref(null),i=g.ref(null);let d=null,h,f=null;const b=g.computed(()=>l.label!==void 0&&l.label!==null&&l.label!==""),p=g.computed(()=>l.disable===!0||l.ripple===!1?!1:{keyCodes:n.value===!0?[13,32]:[13],...l.ripple===!0?{}:l.ripple}),S=g.computed(()=>({center:l.round})),_=g.computed(()=>{const M=Math.max(0,Math.min(100,l.percentage));return M>0?{transition:"transform 0.6s",transform:`translateX(${M-100}%)`}:{}}),T=g.computed(()=>{if(l.loading===!0)return{onMousedown:A,onTouchstart:A,onClick:A,onKeydown:A,onKeyup:A};if(u.value===!0){const M={onClick:z,onKeydown:P,onMousedown:V};if(v.$q.platform.has.touch===!0){const C=l.onTouchstart!==void 0?"":"Passive";M[`onTouchstart${C}`]=N}return M}return{onClick:St}}),D=g.computed(()=>({ref:o,class:"q-btn q-btn-item non-selectable no-outline "+m.value,style:c.value,...s.value,...T.value}));function z(M){if(o.value!==null){if(M!==void 0){if(M.defaultPrevented===!0)return;const C=document.activeElement;if(l.type==="submit"&&C!==document.body&&o.value.contains(C)===!1&&C.contains(o.value)===!1){M.qAvoidFocus!==!0&&o.value.focus();const y=()=>{document.removeEventListener("keydown",St,!0),document.removeEventListener("keyup",y,Nt),o.value?.removeEventListener("blur",y,Nt)};document.addEventListener("keydown",St,!0),document.addEventListener("keyup",y,Nt),o.value.addEventListener("blur",y,Nt)}}r(M)}}function P(M){o.value!==null&&(t("keydown",M),ur(M,[13,32])===!0&&Ar!==o.value&&(Ar!==null&&L(),M.defaultPrevented!==!0&&(M.qAvoidFocus!==!0&&o.value.focus(),Ar=o.value,o.value.classList.add("q-btn--active"),document.addEventListener("keyup",W,!0),o.value.addEventListener("blur",W,Nt)),St(M)))}function N(M){o.value!==null&&(t("touchstart",M),M.defaultPrevented!==!0&&(_r!==o.value&&(_r!==null&&L(),_r=o.value,d=M.target,d.addEventListener("touchcancel",W,Nt),d.addEventListener("touchend",W,Nt)),h=!0,f!==null&&clearTimeout(f),f=setTimeout(()=>{f=null,h=!1},200)))}function V(M){o.value!==null&&(M.qSkipRipple=h===!0,t("mousedown",M),M.defaultPrevented!==!0&&Er!==o.value&&(Er!==null&&L(),Er=o.value,o.value.classList.add("q-btn--active"),document.addEventListener("mouseup",W,Nt)))}function W(M){if(o.value!==null&&!(M?.type==="blur"&&document.activeElement===o.value)){if(M?.type==="keyup"){if(Ar===o.value&&ur(M,[13,32])===!0){const C=new MouseEvent("click",M);C.qKeyEvent=!0,M.defaultPrevented===!0&&Bt(C),M.cancelBubble===!0&&Dt(C),o.value.dispatchEvent(C),St(M),M.qKeyEvent=!0}t("keyup",M)}L()}}function L(M){const C=i.value;M!==!0&&(_r===o.value||Er===o.value)&&C!==null&&C!==document.activeElement&&(C.setAttribute("tabindex",-1),C.focus()),_r===o.value&&(d!==null&&(d.removeEventListener("touchcancel",W,Nt),d.removeEventListener("touchend",W,Nt)),_r=d=null),Er===o.value&&(document.removeEventListener("mouseup",W,Nt),Er=null),Ar===o.value&&(document.removeEventListener("keyup",W,!0),o.value?.removeEventListener("blur",W,Nt),Ar=null),o.value?.classList.remove("q-btn--active")}function A(M){St(M),M.qSkipRipple=!0}return g.onBeforeUnmount(()=>{L(!0)}),Object.assign(v,{click:M=>{u.value===!0&&z(M)}}),()=>{let M=[];l.icon!==void 0&&M.push(g.h(vt,{name:l.icon,left:l.stack!==!0&&b.value===!0,role:"img"})),b.value===!0&&M.push(g.h("span",{class:"block"},[l.label])),M=It(I.default,M),l.iconRight!==void 0&&l.round===!1&&M.push(g.h(vt,{name:l.iconRight,right:l.stack!==!0&&b.value===!0,role:"img"}));const C=[g.h("span",{class:"q-focus-helper",ref:i})];return l.loading===!0&&l.percentage!==void 0&&C.push(g.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(l.darkPercentage===!0?" q-btn__progress--dark":"")},[g.h("span",{class:"q-btn__progress-indicator fit block",style:_.value})])),C.push(g.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+a.value},M)),l.loading!==null&&C.push(g.h(g.Transition,{name:"q-transition--fade"},()=>l.loading===!0?[g.h("span",{key:"loading",class:"absolute-full flex flex-center"},I.loading!==void 0?I.loading():[g.h(Ca)])]:null)),g.withDirectives(g.h(e.value,D.value,C),[[Aa,p.value,void 0,S.value]])}}}),cl={class:"row justify-between"},fl=g.defineComponent({__name:"NavButton",props:{from:{},to:{default:void 0},labelFrom:{},labelTo:{default:void 0},params:{default:()=>({})},query:{default:()=>({})}},setup(l){const I=l,t=g.inject("navContext",null),v=g.inject("router");function m(c){if(!v){console.warn("Dependencies not available:",{router:v});return}t?.setTabs();const a=c==="back"?I.from:I.to;if(!a){console.warn("Destination not provided:",c);return}v.push({name:a,params:I.params,query:I.query})}return(c,a)=>(g.openBlock(),g.createElementBlock("div",cl,[g.createVNode(ot,{icon:"chevron_left","rounded-sm":"",label:c.labelFrom,"data-cy":"go-back","data-testid":"go-back",onClick:a[0]||(a[0]=s=>m("back"))},null,8,["label"]),c.labelTo?(g.openBlock(),g.createBlock(ot,{key:0,label:c.labelTo,color:"primary","text-color":"white","icon-right":"chevron_right","rounded-sm":"","data-cy":"go-next","data-testid":"go-next",onClick:a[1]||(a[1]=s=>m("next"))},null,8,["label"])):g.createCommentVNode("",!0)]))}}),Yt=(l,I)=>{const t=l.__vccOpts||l;for(const[v,m]of I)t[v]=m;return t},dl=Yt(fl,[["__scopeId","data-v-8dd99f80"]]),Ot={dark:{type:Boolean,default:null}};function Ft(l,I){return g.computed(()=>l.dark===null?I.dark.isActive:l.dark)}function hl(l,I){const t=g.ref(null),v=g.computed(()=>l.disable===!0?null:g.h("span",{ref:t,class:"no-outline",tabindex:-1}));function m(c){const a=I.value;c?.qAvoidFocus!==!0&&(c?.type.indexOf("key")===0?document.activeElement!==a&&a?.contains(document.activeElement)===!0&&a.focus():t.value!==null&&(c===void 0||a?.contains(c.target)===!0)&&t.value.focus())}return{refocusTargetEl:v,refocusTarget:m}}const Yn={name:String};function pl(l){return g.computed(()=>({type:"hidden",name:l.name,value:l.modelValue}))}function Ea(l={}){return(I,t,v)=>{I[t](g.h("input",{class:"hidden"+(v||""),...l.value}))}}function Ma(l){return g.computed(()=>l.name||l.for)}const ml={xs:30,sm:35,md:40,lg:50,xl:60},Ta={...Ot,...Vr,...Yn,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:l=>l==="tf"||l==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},Ra=["update:modelValue"];function Ba(l,I){const{props:t,slots:v,emit:m,proxy:c}=g.getCurrentInstance(),{$q:a}=c,s=Ft(t,a),n=g.ref(null),{refocusTargetEl:e,refocusTarget:r}=hl(t,n),u=qr(t,ml),o=g.computed(()=>t.val!==void 0&&Array.isArray(t.modelValue)),i=g.computed(()=>{const L=g.toRaw(t.val);return o.value===!0?t.modelValue.findIndex(A=>g.toRaw(A)===L):-1}),d=g.computed(()=>o.value===!0?i.value!==-1:g.toRaw(t.modelValue)===g.toRaw(t.trueValue)),h=g.computed(()=>o.value===!0?i.value===-1:g.toRaw(t.modelValue)===g.toRaw(t.falseValue)),f=g.computed(()=>d.value===!1&&h.value===!1),b=g.computed(()=>t.disable===!0?-1:t.tabindex||0),p=g.computed(()=>`q-${l} cursor-pointer no-outline row inline no-wrap items-center`+(t.disable===!0?" disabled":"")+(s.value===!0?` q-${l}--dark`:"")+(t.dense===!0?` q-${l}--dense`:"")+(t.leftLabel===!0?" reverse":"")),S=g.computed(()=>{const L=d.value===!0?"truthy":h.value===!0?"falsy":"indet",A=t.color!==void 0&&(t.keepColor===!0||(l==="toggle"?d.value===!0:h.value!==!0))?` text-${t.color}`:"";return`q-${l}__inner relative-position non-selectable q-${l}__inner--${L}${A}`}),_=g.computed(()=>{const L={type:"checkbox"};return t.name!==void 0&&Object.assign(L,{".checked":d.value,"^checked":d.value===!0?"checked":void 0,name:t.name,value:o.value===!0?t.val:t.trueValue}),L}),T=Ea(_),D=g.computed(()=>{const L={tabindex:b.value,role:l==="toggle"?"switch":"checkbox","aria-label":t.label,"aria-checked":f.value===!0?"mixed":d.value===!0?"true":"false"};return t.disable===!0&&(L["aria-disabled"]="true"),L});function z(L){L!==void 0&&(St(L),r(L)),t.disable!==!0&&m("update:modelValue",P(),L)}function P(){if(o.value===!0){if(d.value===!0){const L=t.modelValue.slice();return L.splice(i.value,1),L}return t.modelValue.concat([t.val])}if(d.value===!0){if(t.toggleOrder!=="ft"||t.toggleIndeterminate===!1)return t.falseValue}else if(h.value===!0){if(t.toggleOrder==="ft"||t.toggleIndeterminate===!1)return t.trueValue}else return t.toggleOrder!=="ft"?t.trueValue:t.falseValue;return t.indeterminateValue}function N(L){(L.keyCode===13||L.keyCode===32)&&St(L)}function V(L){(L.keyCode===13||L.keyCode===32)&&z(L)}const W=I(d,f);return Object.assign(c,{toggle:z}),()=>{const L=W();t.disable!==!0&&T(L,"unshift",` q-${l}__native absolute q-ma-none q-pa-none`);const A=[g.h("div",{class:S.value,style:u.value,"aria-hidden":"true"},L)];e.value!==null&&A.push(e.value);const M=t.label!==void 0?It(v.default,[t.label]):gt(v.default);return M!==void 0&&A.push(g.h("div",{class:`q-${l}__label q-anchor--skip`},M)),g.h("div",{ref:n,class:p.value,...D.value,onClick:z,onKeydown:N,onKeyup:V},A)}}const gl=()=>g.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[g.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[g.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),g.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),lr=$e({name:"QCheckbox",props:Ta,emits:Ra,setup(l){const I=gl();function t(v,m){const c=g.computed(()=>(v.value===!0?l.checkedIcon:m.value===!0?l.indeterminateIcon:l.uncheckedIcon)||null);return()=>c.value!==null?[g.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[g.h(vt,{class:"q-checkbox__icon",name:c.value})])]:[I]}return Ba("checkbox",t)}}),bl=$e({props:["store","barStyle","verticalBarStyle","horizontalBarStyle"],setup(l){return()=>[g.h("div",{class:l.store.scroll.vertical.barClass.value,style:[l.barStyle,l.verticalBarStyle],"aria-hidden":"true",onMousedown:l.store.onVerticalMousedown}),g.h("div",{class:l.store.scroll.horizontal.barClass.value,style:[l.barStyle,l.horizontalBarStyle],"aria-hidden":"true",onMousedown:l.store.onHorizontalMousedown}),g.withDirectives(g.h("div",{ref:l.store.scroll.vertical.ref,class:l.store.scroll.vertical.thumbClass.value,style:l.store.scroll.vertical.style.value,"aria-hidden":"true"}),l.store.thumbVertDir),g.withDirectives(g.h("div",{ref:l.store.scroll.horizontal.ref,class:l.store.scroll.horizontal.thumbClass.value,style:l.store.scroll.horizontal.style.value,"aria-hidden":"true"}),l.store.thumbHorizDir)]}}),cr=g.ref(!1);let wi;function vl(l,I){const t=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(l)||/(opr)[\/]([\w.]+)/.exec(l)||/(vivaldi)[\/]([\w.]+)/.exec(l)||/(chrome|crios)[\/]([\w.]+)/.exec(l)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(l)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(l)||/(firefox|fxios)[\/]([\w.]+)/.exec(l)||/(webkit)[\/]([\w.]+)/.exec(l)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(l)||[];return{browser:t[5]||t[3]||t[1]||"",version:t[4]||t[2]||"0",platform:I[0]||""}}function yl(l){return/(ipad)/.exec(l)||/(ipod)/.exec(l)||/(windows phone)/.exec(l)||/(iphone)/.exec(l)||/(kindle)/.exec(l)||/(silk)/.exec(l)||/(android)/.exec(l)||/(win)/.exec(l)||/(mac)/.exec(l)||/(linux)/.exec(l)||/(cros)/.exec(l)||/(playbook)/.exec(l)||/(bb)/.exec(l)||/(blackberry)/.exec(l)||[]}const Ia="ontouchstart"in window||window.navigator.maxTouchPoints>0;function wl(l){const I=l.toLowerCase(),t=yl(I),v=vl(I,t),m={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,blackberry:!1,playbook:!1,silk:!1};v.browser&&(m[v.browser]=!0,m.version=v.version,m.versionNumber=parseInt(v.version,10)),v.platform&&(m[v.platform]=!0);const c=m.android||m.ios||m.bb||m.blackberry||m.ipad||m.iphone||m.ipod||m.kindle||m.playbook||m.silk||m["windows phone"];if(c===!0||I.indexOf("mobile")!==-1?m.mobile=!0:m.desktop=!0,m["windows phone"]&&(m.winphone=!0,delete m["windows phone"]),m.edga||m.edgios||m.edg?(m.edge=!0,v.browser="edge"):m.crios?(m.chrome=!0,v.browser="chrome"):m.fxios&&(m.firefox=!0,v.browser="firefox"),(m.ipod||m.ipad||m.iphone)&&(m.ios=!0),m.vivaldi&&(v.browser="vivaldi",m.vivaldi=!0),(m.chrome||m.opr||m.safari||m.vivaldi||m.mobile===!0&&m.ios!==!0&&c!==!0)&&(m.webkit=!0),m.opr&&(v.browser="opera",m.opera=!0),m.safari&&(m.blackberry||m.bb?(v.browser="blackberry",m.blackberry=!0):m.playbook?(v.browser="playbook",m.playbook=!0):m.android?(v.browser="android",m.android=!0):m.kindle?(v.browser="kindle",m.kindle=!0):m.silk&&(v.browser="silk",m.silk=!0)),m.name=v.browser,m.platform=v.platform,I.indexOf("electron")!==-1)m.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)m.bex=!0;else{if(window.Capacitor!==void 0?(m.capacitor=!0,m.nativeMobile=!0,m.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(m.cordova=!0,m.nativeMobile=!0,m.nativeMobileWrapper="cordova"),cr.value===!0&&(wi={is:{...m}}),Ia===!0&&m.mac===!0&&(m.desktop===!0&&m.safari===!0||m.nativeMobile===!0&&m.android!==!0&&m.ios!==!0&&m.ipad!==!0)){delete m.mac,delete m.desktop;const a=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(m,{mobile:!0,ios:!0,platform:a,[a]:!0})}m.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete m.desktop,m.mobile=!0)}return m}const _o=navigator.userAgent||navigator.vendor||window.opera,xl={has:{touch:!1,webStorage:!1},within:{iframe:!1}},Et={userAgent:_o,is:wl(_o),has:{touch:Ia},within:{iframe:window.self!==window.top}},xi={install(l){const{$q:I}=l;cr.value===!0?(l.onSSRHydrated.push(()=>{Object.assign(I.platform,Et),cr.value=!1}),I.platform=g.reactive(this)):I.platform=this}};{let l;Lt(Et.has,"webStorage",()=>{if(l!==void 0)return l;try{if(window.localStorage)return l=!0,!0}catch{}return l=!1,!1}),Object.assign(xi,Et),cr.value===!0&&(Object.assign(xi,wi,xl),wi=null)}function Sl(){const l=g.ref(!cr.value);return l.value===!1&&g.onMounted(()=>{l.value=!0}),{isHydrated:l}}const Oa=typeof ResizeObserver<"u",Ao=Oa===!0?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"},Pr=$e({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(l,{emit:I}){let t=null,v,m={width:-1,height:-1};function c(n){n===!0||l.debounce===0||l.debounce==="0"?a():t===null&&(t=setTimeout(a,l.debounce))}function a(){if(t!==null&&(clearTimeout(t),t=null),v){const{offsetWidth:n,offsetHeight:e}=v;(n!==m.width||e!==m.height)&&(m={width:n,height:e},I("resize",m))}}const{proxy:s}=g.getCurrentInstance();if(s.trigger=c,Oa===!0){let n;const e=r=>{v=s.$el.parentNode,v?(n=new ResizeObserver(c),n.observe(v),a()):r!==!0&&g.nextTick(()=>{e(!0)})};return g.onMounted(()=>{e()}),g.onBeforeUnmount(()=>{t!==null&&clearTimeout(t),n!==void 0&&(n.disconnect!==void 0?n.disconnect():v&&n.unobserve(v))}),Hn}else{let n=function(){t!==null&&(clearTimeout(t),t=null),u!==void 0&&(u.removeEventListener!==void 0&&u.removeEventListener("resize",c,Ct.passive),u=void 0)},e=function(){n(),v?.contentDocument&&(u=v.contentDocument.defaultView,u.addEventListener("resize",c,Ct.passive),a())};const{isHydrated:r}=Sl();let u;return g.onMounted(()=>{g.nextTick(()=>{v=s.$el,v&&e()})}),g.onBeforeUnmount(n),()=>{if(r.value===!0)return g.h("object",{class:"q--avoid-card-border",style:Ao.style,tabindex:-1,type:"text/html",data:Ao.url,"aria-hidden":"true",onLoad:e})}}}}),Qn=[Element,String],kl=[null,document,document.body,document.scrollingElement,document.documentElement];function Kn(l,I){let t=Zs(I);if(t===void 0){if(l==null)return window;t=l.closest(".scroll,.scroll-y,.overflow-auto")}return kl.includes(t)?window:t}function zi(l){return l===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:l.scrollTop}function Ui(l){return l===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:l.scrollLeft}function Fa(l,I,t=0){const v=arguments[3]===void 0?performance.now():arguments[3],m=zi(l);if(t<=0){m!==I&&Si(l,I);return}requestAnimationFrame(c=>{const a=c-v,s=m+(I-m)/Math.max(a,t)*a;Si(l,s),s!==I&&Fa(l,I,t-a,c)})}function ja(l,I,t=0){const v=arguments[3]===void 0?performance.now():arguments[3],m=Ui(l);if(t<=0){m!==I&&ki(l,I);return}requestAnimationFrame(c=>{const a=c-v,s=m+(I-m)/Math.max(a,t)*a;ki(l,s),s!==I&&ja(l,I,t-a,c)})}function Si(l,I){if(l===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,I);return}l.scrollTop=I}function ki(l,I){if(l===window){window.scrollTo(I,window.pageYOffset||window.scrollY||document.body.scrollTop||0);return}l.scrollLeft=I}function Eo(l,I,t){if(t){Fa(l,I,t);return}Si(l,I)}function ri(l,I,t){if(t){ja(l,I,t);return}ki(l,I)}let pn;function Mn(){if(pn!==void 0)return pn;const l=document.createElement("p"),I=document.createElement("div");yi(l,{width:"100%",height:"200px"}),yi(I,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),I.appendChild(l),document.body.appendChild(I);const t=l.offsetWidth;I.style.overflow="scroll";let v=l.offsetWidth;return t===v&&(v=I.clientWidth),I.remove(),pn=t-v,pn}function Cl(l,I=!0){return!l||l.nodeType!==Node.ELEMENT_NODE?!1:I?l.scrollHeight>l.clientHeight&&(l.classList.contains("scroll")||l.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(l)["overflow-y"])):l.scrollWidth>l.clientWidth&&(l.classList.contains("scroll")||l.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(l)["overflow-x"]))}const{passive:Mo}=Ct,_l=["both","horizontal","vertical"],Da=$e({name:"QScrollObserver",props:{axis:{type:String,validator:l=>_l.includes(l),default:"vertical"},debounce:[String,Number],scrollTarget:Qn},emits:["scroll"],setup(l,{emit:I}){const t={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let v=null,m,c;g.watch(()=>l.scrollTarget,()=>{n(),s()});function a(){v?.();const u=Math.max(0,zi(m)),o=Ui(m),i={top:u-t.position.top,left:o-t.position.left};if(l.axis==="vertical"&&i.top===0||l.axis==="horizontal"&&i.left===0)return;const d=Math.abs(i.top)>=Math.abs(i.left)?i.top<0?"up":"down":i.left<0?"left":"right";t.position={top:u,left:o},t.directionChanged=t.direction!==d,t.delta=i,t.directionChanged===!0&&(t.direction=d,t.inflectionPoint=t.position),I("scroll",{...t})}function s(){m=Kn(c,l.scrollTarget),m.addEventListener("scroll",e,Mo),e(!0)}function n(){m!==void 0&&(m.removeEventListener("scroll",e,Mo),m=void 0)}function e(u){if(u===!0||l.debounce===0||l.debounce==="0")a();else if(v===null){const[o,i]=l.debounce?[setTimeout(a,l.debounce),clearTimeout]:[requestAnimationFrame(a),cancelAnimationFrame];v=()=>{i(o),v=null}}}const{proxy:r}=g.getCurrentInstance();return g.watch(()=>r.$q.lang.rtl,a),g.onMounted(()=>{c=r.$el.parentNode,s()}),g.onBeforeUnmount(()=>{v?.(),n()}),Object.assign(r,{trigger:e,getPosition:()=>t}),Hn}}),Wi={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},Al=Object.keys(Wi);Wi.all=!0;function To(l){const I={};for(const t of Al)l[t]===!0&&(I[t]=!0);return Object.keys(I).length===0?Wi:(I.horizontal===!0?I.left=I.right=!0:I.left===!0&&I.right===!0&&(I.horizontal=!0),I.vertical===!0?I.up=I.down=!0:I.up===!0&&I.down===!0&&(I.vertical=!0),I.horizontal===!0&&I.vertical===!0&&(I.all=!0),I)}const El=["INPUT","TEXTAREA"];function Ro(l,I){return I.event===void 0&&l.target!==void 0&&l.target.draggable!==!0&&typeof I.handler=="function"&&El.includes(l.target.nodeName.toUpperCase())===!1&&(l.qClonedBy===void 0||l.qClonedBy.indexOf(I.uid)===-1)}function In(){if(window.getSelection!==void 0){const l=window.getSelection();l.empty!==void 0?l.empty():l.removeAllRanges!==void 0&&(l.removeAllRanges(),xi.is.mobile!==!0&&l.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}function ni(l,I,t){const v=Jr(l);let m,c=v.left-I.event.x,a=v.top-I.event.y,s=Math.abs(c),n=Math.abs(a);const e=I.direction;e.horizontal===!0&&e.vertical!==!0?m=c<0?"left":"right":e.horizontal!==!0&&e.vertical===!0?m=a<0?"up":"down":e.up===!0&&a<0?(m="up",s>n&&(e.left===!0&&c<0?m="left":e.right===!0&&c>0&&(m="right"))):e.down===!0&&a>0?(m="down",s>n&&(e.left===!0&&c<0?m="left":e.right===!0&&c>0&&(m="right"))):e.left===!0&&c<0?(m="left",s<n&&(e.up===!0&&a<0?m="up":e.down===!0&&a>0&&(m="down"))):e.right===!0&&c>0&&(m="right",s<n&&(e.up===!0&&a<0?m="up":e.down===!0&&a>0&&(m="down")));let r=!1;if(m===void 0&&t===!1){if(I.event.isFirst===!0||I.event.lastDir===void 0)return{};m=I.event.lastDir,r=!0,m==="left"||m==="right"?(v.left-=c,s=0,c=0):(v.top-=a,n=0,a=0)}return{synthetic:r,payload:{evt:l,touch:I.event.mouse!==!0,mouse:I.event.mouse===!0,position:v,direction:m,isFirst:I.event.isFirst,isFinal:t===!0,duration:Date.now()-I.event.time,distance:{x:s,y:n},offset:{x:c,y:a},delta:{x:v.left-I.event.lastX,y:v.top-I.event.lastY}}}}let Ml=0;const Bo=Fi({name:"touch-pan",beforeMount(l,{value:I,modifiers:t}){if(t.mouse!==!0&&Et.has.touch!==!0)return;function v(c,a){t.mouse===!0&&a===!0?St(c):(t.stop===!0&&Dt(c),t.prevent===!0&&Bt(c))}const m={uid:"qvtp_"+Ml++,handler:I,modifiers:t,direction:To(t),noop:Hn,mouseStart(c){Ro(c,m)&&$s(c)&&(Gt(m,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),m.start(c,!0))},touchStart(c){if(Ro(c,m)){const a=c.target;Gt(m,"temp",[[a,"touchmove","move","notPassiveCapture"],[a,"touchcancel","end","passiveCapture"],[a,"touchend","end","passiveCapture"]]),m.start(c)}},start(c,a){if(Et.is.firefox===!0&&ti(l,!0),m.lastEvt=c,a===!0||t.stop===!0){if(m.direction.all!==!0&&(a!==!0||m.modifiers.mouseAllDir!==!0&&m.modifiers.mousealldir!==!0)){const e=c.type.indexOf("mouse")!==-1?new MouseEvent(c.type,c):new TouchEvent(c.type,c);c.defaultPrevented===!0&&Bt(e),c.cancelBubble===!0&&Dt(e),Object.assign(e,{qKeyEvent:c.qKeyEvent,qClickOutside:c.qClickOutside,qAnchorHandled:c.qAnchorHandled,qClonedBy:c.qClonedBy===void 0?[m.uid]:c.qClonedBy.concat(m.uid)}),m.initialEvent={target:c.target,event:e}}Dt(c)}const{left:s,top:n}=Jr(c);m.event={x:s,y:n,time:Date.now(),mouse:a===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:s,lastY:n}},move(c){if(m.event===void 0)return;const a=Jr(c),s=a.left-m.event.x,n=a.top-m.event.y;if(s===0&&n===0)return;m.lastEvt=c;const e=m.event.mouse===!0,r=()=>{v(c,e);let i;t.preserveCursor!==!0&&t.preservecursor!==!0&&(i=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),e===!0&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),In(),m.styleCleanup=d=>{if(m.styleCleanup=void 0,i!==void 0&&(document.documentElement.style.cursor=i),document.body.classList.remove("non-selectable"),e===!0){const h=()=>{document.body.classList.remove("no-pointer-events--children")};d!==void 0?setTimeout(()=>{h(),d()},50):h()}else d!==void 0&&d()}};if(m.event.detected===!0){m.event.isFirst!==!0&&v(c,m.event.mouse);const{payload:i,synthetic:d}=ni(c,m,!1);i!==void 0&&(m.handler(i)===!1?m.end(c):(m.styleCleanup===void 0&&m.event.isFirst===!0&&r(),m.event.lastX=i.position.left,m.event.lastY=i.position.top,m.event.lastDir=d===!0?void 0:i.direction,m.event.isFirst=!1));return}if(m.direction.all===!0||e===!0&&(m.modifiers.mouseAllDir===!0||m.modifiers.mousealldir===!0)){r(),m.event.detected=!0,m.move(c);return}const u=Math.abs(s),o=Math.abs(n);u!==o&&(m.direction.horizontal===!0&&u>o||m.direction.vertical===!0&&u<o||m.direction.up===!0&&u<o&&n<0||m.direction.down===!0&&u<o&&n>0||m.direction.left===!0&&u>o&&s<0||m.direction.right===!0&&u>o&&s>0?(m.event.detected=!0,m.move(c)):m.end(c,!0))},end(c,a){if(m.event!==void 0){if(br(m,"temp"),Et.is.firefox===!0&&ti(l,!1),a===!0)m.styleCleanup?.(),m.event.detected!==!0&&m.initialEvent!==void 0&&m.initialEvent.target.dispatchEvent(m.initialEvent.event);else if(m.event.detected===!0){m.event.isFirst===!0&&m.handler(ni(c===void 0?m.lastEvt:c,m).payload);const{payload:s}=ni(c===void 0?m.lastEvt:c,m,!0),n=()=>{m.handler(s)};m.styleCleanup!==void 0?m.styleCleanup(n):n()}m.event=void 0,m.initialEvent=void 0,m.lastEvt=void 0}}};if(l.__qtouchpan=m,t.mouse===!0){const c=t.mouseCapture===!0||t.mousecapture===!0?"Capture":"";Gt(m,"main",[[l,"mousedown","mouseStart",`passive${c}`]])}Et.has.touch===!0&&Gt(m,"main",[[l,"touchstart","touchStart",`passive${t.capture===!0?"Capture":""}`],[l,"touchmove","noop","notPassiveCapture"]])},updated(l,I){const t=l.__qtouchpan;t!==void 0&&(I.oldValue!==I.value&&(typeof value!="function"&&t.end(),t.handler=I.value),t.direction=To(I.modifiers))},beforeUnmount(l){const I=l.__qtouchpan;I!==void 0&&(I.event!==void 0&&I.end(),br(I,"main"),br(I,"temp"),Et.is.firefox===!0&&ti(l,!1),I.styleCleanup?.(),delete l.__qtouchpan)}});function Tl(l){return l.charAt(0).toUpperCase()+l.slice(1)}function Ur(l,I,t){return t<=I?I:Math.min(t,Math.max(I,l))}function Io(l,I,t){if(t<=I)return I;const v=t-I+1;let m=I+(l-I)%v;return m<I&&(m=v+m),m===0?0:m}function bt(l,I=2,t="0"){if(l==null)return l;const v=""+l;return v.length>=I?v:new Array(I-v.length+1).join(t)+v}function Hi(l,I=250,t){let v=null;function m(){const c=arguments,a=()=>{v=null,l.apply(this,c)};v!==null&&clearTimeout(v),v=setTimeout(a,I)}return m.cancel=()=>{v!==null&&clearTimeout(v)},m}const Oo=["vertical","horizontal"],ii={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}},Fo={prevent:!0,mouse:!0,mouseAllDir:!0},jo=l=>l>=250?50:Math.ceil(l/5),Rl=$e({name:"QScrollArea",props:{...Ot,thumbStyle:Object,verticalThumbStyle:Object,horizontalThumbStyle:Object,barStyle:[Array,String,Object],verticalBarStyle:[Array,String,Object],horizontalBarStyle:[Array,String,Object],verticalOffset:{type:Array,default:[0,0]},horizontalOffset:{type:Array,default:[0,0]},contentStyle:[Array,String,Object],contentActiveStyle:[Array,String,Object],delay:{type:[String,Number],default:1e3},visible:{type:Boolean,default:null},tabindex:[String,Number],onScroll:Function},setup(l,{slots:I,emit:t}){const v=g.ref(!1),m=g.ref(!1),c=g.ref(!1),a={vertical:g.ref(0),horizontal:g.ref(0)},s={vertical:{ref:g.ref(null),position:g.ref(0),size:g.ref(0)},horizontal:{ref:g.ref(null),position:g.ref(0),size:g.ref(0)}},{proxy:n}=g.getCurrentInstance(),e=Ft(l,n.$q);let r=null,u;const o=g.ref(null),i=g.computed(()=>"q-scrollarea"+(e.value===!0?" q-scrollarea--dark":""));Object.assign(a,{verticalInner:g.computed(()=>a.vertical.value-l.verticalOffset[0]-l.verticalOffset[1]),horizontalInner:g.computed(()=>a.horizontal.value-l.horizontalOffset[0]-l.horizontalOffset[1])}),s.vertical.percentage=g.computed(()=>{const M=s.vertical.size.value-a.vertical.value;if(M<=0)return 0;const C=Ur(s.vertical.position.value/M,0,1);return Math.round(C*1e4)/1e4}),s.vertical.thumbHidden=g.computed(()=>(l.visible===null?c.value:l.visible)!==!0&&v.value===!1&&m.value===!1||s.vertical.size.value<=a.vertical.value+1),s.vertical.thumbStart=g.computed(()=>l.verticalOffset[0]+s.vertical.percentage.value*(a.verticalInner.value-s.vertical.thumbSize.value)),s.vertical.thumbSize=g.computed(()=>Math.round(Ur(a.verticalInner.value*a.verticalInner.value/s.vertical.size.value,jo(a.verticalInner.value),a.verticalInner.value))),s.vertical.style=g.computed(()=>({...l.thumbStyle,...l.verticalThumbStyle,top:`${s.vertical.thumbStart.value}px`,height:`${s.vertical.thumbSize.value}px`,right:`${l.horizontalOffset[1]}px`})),s.vertical.thumbClass=g.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(s.vertical.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),s.vertical.barClass=g.computed(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(s.vertical.thumbHidden.value===!0?" q-scrollarea__bar--invisible":"")),s.horizontal.percentage=g.computed(()=>{const M=s.horizontal.size.value-a.horizontal.value;if(M<=0)return 0;const C=Ur(Math.abs(s.horizontal.position.value)/M,0,1);return Math.round(C*1e4)/1e4}),s.horizontal.thumbHidden=g.computed(()=>(l.visible===null?c.value:l.visible)!==!0&&v.value===!1&&m.value===!1||s.horizontal.size.value<=a.horizontal.value+1),s.horizontal.thumbStart=g.computed(()=>l.horizontalOffset[0]+s.horizontal.percentage.value*(a.horizontalInner.value-s.horizontal.thumbSize.value)),s.horizontal.thumbSize=g.computed(()=>Math.round(Ur(a.horizontalInner.value*a.horizontalInner.value/s.horizontal.size.value,jo(a.horizontalInner.value),a.horizontalInner.value))),s.horizontal.style=g.computed(()=>({...l.thumbStyle,...l.horizontalThumbStyle,[n.$q.lang.rtl===!0?"right":"left"]:`${s.horizontal.thumbStart.value}px`,width:`${s.horizontal.thumbSize.value}px`,bottom:`${l.verticalOffset[1]}px`})),s.horizontal.thumbClass=g.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(s.horizontal.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),s.horizontal.barClass=g.computed(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(s.horizontal.thumbHidden.value===!0?" q-scrollarea__bar--invisible":""));const d=g.computed(()=>s.vertical.thumbHidden.value===!0&&s.horizontal.thumbHidden.value===!0?l.contentStyle:l.contentActiveStyle);function h(){const M={};return Oo.forEach(C=>{const y=s[C];Object.assign(M,{[C+"Position"]:y.position.value,[C+"Percentage"]:y.percentage.value,[C+"Size"]:y.size.value,[C+"ContainerSize"]:a[C].value,[C+"ContainerInnerSize"]:a[C+"Inner"].value})}),M}const f=Hi(()=>{const M=h();M.ref=n,t("scroll",M)},0);function b(M,C,y){if(Oo.includes(M)===!1){console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");return}(M==="vertical"?Eo:ri)(o.value,C,y)}function p({height:M,width:C}){let y=!1;a.vertical.value!==M&&(a.vertical.value=M,y=!0),a.horizontal.value!==C&&(a.horizontal.value=C,y=!0),y===!0&&z()}function S({position:M}){let C=!1;s.vertical.position.value!==M.top&&(s.vertical.position.value=M.top,C=!0),s.horizontal.position.value!==M.left&&(s.horizontal.position.value=M.left,C=!0),C===!0&&z()}function _({height:M,width:C}){s.horizontal.size.value!==C&&(s.horizontal.size.value=C,z()),s.vertical.size.value!==M&&(s.vertical.size.value=M,z())}function T(M,C){const y=s[C];if(M.isFirst===!0){if(y.thumbHidden.value===!0)return;u=y.position.value,m.value=!0}else if(m.value!==!0)return;M.isFinal===!0&&(m.value=!1);const x=ii[C],w=(y.size.value-a[C].value)/(a[C+"Inner"].value-y.thumbSize.value),k=M.distance[x.dist],E=u+(M.direction===x.dir?1:-1)*k*w;P(E,C)}function D(M,C){const y=s[C];if(y.thumbHidden.value!==!0){const x=C==="vertical"?l.verticalOffset[0]:l.horizontalOffset[0],w=M[ii[C].offset]-x,k=y.thumbStart.value-x;if(w<k||w>k+y.thumbSize.value){const E=w-y.thumbSize.value/2,O=Ur(E/(a[C+"Inner"].value-y.thumbSize.value),0,1);P(O*Math.max(0,y.size.value-a[C].value),C)}y.ref.value!==null&&y.ref.value.dispatchEvent(new MouseEvent(M.type,M))}}function z(){v.value=!0,r!==null&&clearTimeout(r),r=setTimeout(()=>{r=null,v.value=!1},l.delay),l.onScroll!==void 0&&f()}function P(M,C){o.value[ii[C].scroll]=M}let N=null;function V(){N!==null&&clearTimeout(N),N=setTimeout(()=>{N=null,c.value=!0},n.$q.platform.is.ios?50:0)}function W(){N!==null&&(clearTimeout(N),N=null),c.value=!1}let L=null;g.watch(()=>n.$q.lang.rtl,M=>{o.value!==null&&ri(o.value,Math.abs(s.horizontal.position.value)*(M===!0?-1:1))}),g.onDeactivated(()=>{L={top:s.vertical.position.value,left:s.horizontal.position.value}}),g.onActivated(()=>{if(L===null)return;const M=o.value;M!==null&&(ri(M,L.left),Eo(M,L.top))}),g.onBeforeUnmount(f.cancel),Object.assign(n,{getScrollTarget:()=>o.value,getScroll:h,getScrollPosition:()=>({top:s.vertical.position.value,left:s.horizontal.position.value}),getScrollPercentage:()=>({top:s.vertical.percentage.value,left:s.horizontal.percentage.value}),setScrollPosition:b,setScrollPercentage(M,C,y){b(M,C*(s[M].size.value-a[M].value)*(M==="horizontal"&&n.$q.lang.rtl===!0?-1:1),y)}});const A={scroll:s,thumbVertDir:[[Bo,M=>{T(M,"vertical")},void 0,{vertical:!0,...Fo}]],thumbHorizDir:[[Bo,M=>{T(M,"horizontal")},void 0,{horizontal:!0,...Fo}]],onVerticalMousedown(M){D(M,"vertical")},onHorizontalMousedown(M){D(M,"horizontal")}};return()=>g.h("div",{class:i.value,onMouseenter:V,onMouseleave:W},[g.h("div",{ref:o,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:l.tabindex!==void 0?l.tabindex:void 0},[g.h("div",{class:"q-scrollarea__content absolute",style:d.value},It(I.default,[g.h(Pr,{debounce:0,onResize:_})])),g.h(Da,{axis:"both",onScroll:S})]),g.h(Pr,{debounce:0,onResize:p}),g.h(bl,{store:A,barStyle:l.barStyle,verticalBarStyle:l.verticalBarStyle,horizontalBarStyle:l.horizontalBarStyle})])}}),rn=$e({name:"QCard",props:{...Ot,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(l,{slots:I}){const{proxy:{$q:t}}=g.getCurrentInstance(),v=Ft(l,t),m=g.computed(()=>"q-card"+(v.value===!0?" q-card--dark q-dark":"")+(l.bordered===!0?" q-card--bordered":"")+(l.square===!0?" q-card--square no-border-radius":"")+(l.flat===!0?" q-card--flat no-shadow":""));return()=>g.h(l.tag,{class:m.value},gt(I.default))}}),Pa={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},Na={...Pa,contextMenu:Boolean};function Yi({showing:l,avoidEmit:I,configureAnchorEl:t}){const{props:v,proxy:m,emit:c}=g.getCurrentInstance(),a=g.ref(null);let s=null;function n(i){return a.value===null?!1:i===void 0||i.touches===void 0||i.touches.length<=1}const e={};t===void 0&&(Object.assign(e,{hide(i){m.hide(i)},toggle(i){m.toggle(i),i.qAnchorHandled=!0},toggleKey(i){ur(i,13)===!0&&e.toggle(i)},contextClick(i){m.hide(i),Bt(i),g.nextTick(()=>{m.show(i),i.qAnchorHandled=!0})},prevent:Bt,mobileTouch(i){if(e.mobileCleanup(i),n(i)!==!0)return;m.hide(i),a.value.classList.add("non-selectable");const d=i.target;Gt(e,"anchor",[[d,"touchmove","mobileCleanup","passive"],[d,"touchend","mobileCleanup","passive"],[d,"touchcancel","mobileCleanup","passive"],[a.value,"contextmenu","prevent","notPassive"]]),s=setTimeout(()=>{s=null,m.show(i),i.qAnchorHandled=!0},300)},mobileCleanup(i){a.value.classList.remove("non-selectable"),s!==null&&(clearTimeout(s),s=null),l.value===!0&&i!==void 0&&In()}}),t=function(i=v.contextMenu){if(v.noParentEvent===!0||a.value===null)return;let d;i===!0?m.$q.platform.is.mobile===!0?d=[[a.value,"touchstart","mobileTouch","passive"]]:d=[[a.value,"mousedown","hide","passive"],[a.value,"contextmenu","contextClick","notPassive"]]:d=[[a.value,"click","toggle","passive"],[a.value,"keyup","toggleKey","passive"]],Gt(e,"anchor",d)});function r(){br(e,"anchor")}function u(i){for(a.value=i;a.value.classList.contains("q-anchor--skip");)a.value=a.value.parentNode;t()}function o(){if(v.target===!1||v.target===""||m.$el.parentNode===null)a.value=null;else if(v.target===!0)u(m.$el.parentNode);else{let i=v.target;if(typeof v.target=="string")try{i=document.querySelector(v.target)}catch{i=void 0}i!=null?(a.value=i.$el||i,t()):(a.value=null,console.error(`Anchor: target "${v.target}" not found`))}}return g.watch(()=>v.contextMenu,i=>{a.value!==null&&(r(),t(i))}),g.watch(()=>v.target,()=>{a.value!==null&&r(),o()}),g.watch(()=>v.noParentEvent,i=>{a.value!==null&&(i===!0?r():t())}),g.onMounted(()=>{o(),I!==!0&&v.modelValue===!0&&a.value===null&&c("update:modelValue",!1)}),g.onBeforeUnmount(()=>{s!==null&&clearTimeout(s),r()}),{anchorEl:a,canShow:n,anchorEvents:e}}function La(l,I){const t=g.ref(null);let v;function m(s,n){const e=`${n!==void 0?"add":"remove"}EventListener`,r=n!==void 0?n:v;s!==window&&s[e]("scroll",r,Ct.passive),window[e]("scroll",r,Ct.passive),v=n}function c(){t.value!==null&&(m(t.value),t.value=null)}const a=g.watch(()=>l.noParentEvent,()=>{t.value!==null&&(c(),I())});return g.onBeforeUnmount(a),{localScrollTarget:t,unconfigureScrollTarget:c,changeScrollEvent:m}}const Qi={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Ki=["beforeShow","show","beforeHide","hide"];function Xi({showing:l,canShow:I,hideOnRouteChange:t,handleShow:v,handleHide:m,processOnMount:c}){const a=g.getCurrentInstance(),{props:s,emit:n,proxy:e}=a;let r;function u(p){l.value===!0?d(p):o(p)}function o(p){if(s.disable===!0||p?.qAnchorHandled===!0||I!==void 0&&I(p)!==!0)return;const S=s["onUpdate:modelValue"]!==void 0;S===!0&&(n("update:modelValue",!0),r=p,g.nextTick(()=>{r===p&&(r=void 0)})),(s.modelValue===null||S===!1)&&i(p)}function i(p){l.value!==!0&&(l.value=!0,n("beforeShow",p),v!==void 0?v(p):n("show",p))}function d(p){if(s.disable===!0)return;const S=s["onUpdate:modelValue"]!==void 0;S===!0&&(n("update:modelValue",!1),r=p,g.nextTick(()=>{r===p&&(r=void 0)})),(s.modelValue===null||S===!1)&&h(p)}function h(p){l.value!==!1&&(l.value=!1,n("beforeHide",p),m!==void 0?m(p):n("hide",p))}function f(p){s.disable===!0&&p===!0?s["onUpdate:modelValue"]!==void 0&&n("update:modelValue",!1):p===!0!==l.value&&(p===!0?i:h)(r)}g.watch(()=>s.modelValue,f),t!==void 0&&Di(a)===!0&&g.watch(()=>e.$route.fullPath,()=>{t.value===!0&&l.value===!0&&d()}),g.onMounted(()=>{f(s.modelValue)});const b={show:o,hide:d,toggle:u};return Object.assign(e,b),b}let gr=[],Zr=[];function Va(l){Zr=Zr.filter(I=>I!==l)}function Bl(l){Va(l),Zr.push(l)}function Do(l){Va(l),Zr.length===0&&gr.length!==0&&(gr[gr.length-1](),gr=[])}function nn(l){Zr.length===0?l():gr.push(l)}function Il(l){gr=gr.filter(I=>I!==l)}const Po={};let Ol=1,Fl=document.body;function jl(l,I){const t=document.createElement("div");if(t.id=I!==void 0?`q-portal--${I}--${Ol++}`:l,Po.globalNodes!==void 0){const v=Po.globalNodes.class;v!==void 0&&(t.className=v)}return Fl.appendChild(t),t}function Dl(l){l.remove()}const Fr=[];function Pl(l){return Fr.find(I=>I.contentEl!==null&&I.contentEl.contains(l))}function qa(l,I){do{if(l.$options.name==="QMenu"){if(l.hide(I),l.$props.separateClosePopup===!0)return En(l)}else if(l.__qPortal===!0){const t=En(l);return t?.$options.name==="QPopupProxy"?(l.hide(I),t):l}l=En(l)}while(l!=null)}function Nl(l,I,t){for(;t!==0&&l!==void 0&&l!==null;){if(l.__qPortal===!0){if(t--,l.$options.name==="QMenu"){l=qa(l,I);continue}l.hide(I)}l=En(l)}}const Ll=$e({name:"QPortal",setup(l,{slots:I}){return()=>I.default()}});function Vl(l){for(l=l.parent;l!=null;){if(l.type.name==="QGlobalDialog")return!0;if(l.type.name==="QDialog"||l.type.name==="QMenu")return!1;l=l.parent}return!1}function Gi(l,I,t,v){const m=g.ref(!1),c=g.ref(!1);let a=null;const s={},n=v==="dialog"&&Vl(l);function e(u){if(u===!0){Do(s),c.value=!0;return}c.value=!1,m.value===!1&&(n===!1&&a===null&&(a=jl(!1,v)),m.value=!0,Fr.push(l.proxy),Bl(s))}function r(u){if(c.value=!1,u!==!0)return;Do(s),m.value=!1;const o=Fr.indexOf(l.proxy);o!==-1&&Fr.splice(o,1),a!==null&&(Dl(a),a=null)}return g.onUnmounted(()=>{r(!0)}),l.proxy.__qPortal=!0,Lt(l.proxy,"contentEl",()=>I.value),{showPortal:e,hidePortal:r,portalIsActive:m,portalIsAccessible:c,renderPortal:()=>n===!0?t():m.value===!0?[g.h(g.Teleport,{to:a},g.h(Ll,t))]:void 0}}const Xr={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Ji(l,I=()=>{},t=()=>{}){return{transitionProps:g.computed(()=>{const v=`q-transition--${l.transitionShow||I()}`,m=`q-transition--${l.transitionHide||t()}`;return{appear:!0,enterFromClass:`${v}-enter-from`,enterActiveClass:`${v}-enter-active`,enterToClass:`${v}-enter-to`,leaveFromClass:`${m}-leave-from`,leaveActiveClass:`${m}-leave-active`,leaveToClass:`${m}-leave-to`}}),transitionStyle:g.computed(()=>`--q-transition-duration: ${l.transitionDuration}ms`)}}function Zi(){let l;const I=g.getCurrentInstance();function t(){l=void 0}return g.onDeactivated(t),g.onBeforeUnmount(t),{removeTick:t,registerTick(v){l=v,g.nextTick(()=>{l===v&&(Pi(I)===!1&&l(),l=void 0)})}}}function $i(){let l=null;const I=g.getCurrentInstance();function t(){l!==null&&(clearTimeout(l),l=null)}return g.onDeactivated(t),g.onBeforeUnmount(t),{removeTimeout:t,registerTimeout(v,m){t(),Pi(I)===!1&&(l=setTimeout(()=>{l=null,v()},m))}}}const vr=[];let Nr;function ql(l){Nr=l.keyCode===27}function zl(){Nr===!0&&(Nr=!1)}function Ul(l){Nr===!0&&(Nr=!1,ur(l,27)===!0&&vr[vr.length-1](l))}function za(l){window[l]("keydown",ql),window[l]("blur",zl),window[l]("keyup",Ul),Nr=!1}function Ua(l){Et.is.desktop===!0&&(vr.push(l),vr.length===1&&za("addEventListener"))}function On(l){const I=vr.indexOf(l);I!==-1&&(vr.splice(I,1),vr.length===0&&za("removeEventListener"))}const yr=[];function Wa(l){yr[yr.length-1](l)}function Ha(l){Et.is.desktop===!0&&(yr.push(l),yr.length===1&&document.body.addEventListener("focusin",Wa))}function Ci(l){const I=yr.indexOf(l);I!==-1&&(yr.splice(I,1),yr.length===0&&document.body.removeEventListener("focusin",Wa))}const{notPassiveCapture:Fn}=Ct,wr=[];function jn(l){const I=l.target;if(I===void 0||I.nodeType===8||I.classList.contains("no-pointer-events")===!0)return;let t=Fr.length-1;for(;t>=0;){const v=Fr[t].$;if(v.type.name==="QTooltip"){t--;continue}if(v.type.name!=="QDialog")break;if(v.props.seamless!==!0)return;t--}for(let v=wr.length-1;v>=0;v--){const m=wr[v];if((m.anchorEl.value===null||m.anchorEl.value.contains(I)===!1)&&(I===document.body||m.innerRef.value!==null&&m.innerRef.value.contains(I)===!1))l.qClickOutside=!0,m.onClickOutside(l);else return}}function Ya(l){wr.push(l),wr.length===1&&(document.addEventListener("mousedown",jn,Fn),document.addEventListener("touchstart",jn,Fn))}function Dn(l){const I=wr.findIndex(t=>t===l);I!==-1&&(wr.splice(I,1),wr.length===0&&(document.removeEventListener("mousedown",jn,Fn),document.removeEventListener("touchstart",jn,Fn)))}let No,Lo;function Pn(l){const I=l.split(" ");return I.length!==2?!1:["top","center","bottom"].includes(I[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(I[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function Qa(l){return l?!(l.length!==2||typeof l[0]!="number"||typeof l[1]!="number"):!0}const _i={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(l=>{_i[`${l}#ltr`]=l,_i[`${l}#rtl`]=l});function Nn(l,I){const t=l.split(" ");return{vertical:t[0],horizontal:_i[`${t[1]}#${I===!0?"rtl":"ltr"}`]}}function Wl(l,I){let{top:t,left:v,right:m,bottom:c,width:a,height:s}=l.getBoundingClientRect();return I!==void 0&&(t-=I[1],v-=I[0],c+=I[1],m+=I[0],a+=I[0],s+=I[1]),{top:t,bottom:c,height:s,left:v,right:m,width:a,middle:v+(m-v)/2,center:t+(c-t)/2}}function Hl(l,I,t){let{top:v,left:m}=l.getBoundingClientRect();return v+=I.top,m+=I.left,t!==void 0&&(v+=t[1],m+=t[0]),{top:v,bottom:v+1,height:1,left:m,right:m+1,width:1,middle:m,center:v}}function Yl(l,I){return{top:0,center:I/2,bottom:I,left:0,middle:l/2,right:l}}function Vo(l,I,t,v){return{top:l[t.vertical]-I[v.vertical],left:l[t.horizontal]-I[v.horizontal]}}function eo(l,I=0){if(l.targetEl===null||l.anchorEl===null||I>5)return;if(l.targetEl.offsetHeight===0||l.targetEl.offsetWidth===0){setTimeout(()=>{eo(l,I+1)},10);return}const{targetEl:t,offset:v,anchorEl:m,anchorOrigin:c,selfOrigin:a,absoluteOffset:s,fit:n,cover:e,maxHeight:r,maxWidth:u}=l;if(Et.is.ios===!0&&window.visualViewport!==void 0){const D=document.body.style,{offsetLeft:z,offsetTop:P}=window.visualViewport;z!==No&&(D.setProperty("--q-pe-left",z+"px"),No=z),P!==Lo&&(D.setProperty("--q-pe-top",P+"px"),Lo=P)}const{scrollLeft:o,scrollTop:i}=t,d=s===void 0?Wl(m,e===!0?[0,0]:v):Hl(m,s,v);Object.assign(t.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:u,maxHeight:r,visibility:"visible"});const{offsetWidth:h,offsetHeight:f}=t,{elWidth:b,elHeight:p}=n===!0||e===!0?{elWidth:Math.max(d.width,h),elHeight:e===!0?Math.max(d.height,f):f}:{elWidth:h,elHeight:f};let S={maxWidth:u,maxHeight:r};(n===!0||e===!0)&&(S.minWidth=d.width+"px",e===!0&&(S.minHeight=d.height+"px")),Object.assign(t.style,S);const _=Yl(b,p);let T=Vo(d,_,c,a);if(s===void 0||v===void 0)oi(T,d,_,c,a);else{const{top:D,left:z}=T;oi(T,d,_,c,a);let P=!1;if(T.top!==D){P=!0;const N=2*v[1];d.center=d.top-=N,d.bottom-=N+2}if(T.left!==z){P=!0;const N=2*v[0];d.middle=d.left-=N,d.right-=N+2}P===!0&&(T=Vo(d,_,c,a),oi(T,d,_,c,a))}S={top:T.top+"px",left:T.left+"px"},T.maxHeight!==void 0&&(S.maxHeight=T.maxHeight+"px",d.height>T.maxHeight&&(S.minHeight=S.maxHeight)),T.maxWidth!==void 0&&(S.maxWidth=T.maxWidth+"px",d.width>T.maxWidth&&(S.minWidth=S.maxWidth)),Object.assign(t.style,S),t.scrollTop!==i&&(t.scrollTop=i),t.scrollLeft!==o&&(t.scrollLeft=o)}function oi(l,I,t,v,m){const c=t.bottom,a=t.right,s=Mn(),n=window.innerHeight-s,e=document.body.clientWidth;if(l.top<0||l.top+c>n)if(m.vertical==="center")l.top=I[v.vertical]>n/2?Math.max(0,n-c):0,l.maxHeight=Math.min(c,n);else if(I[v.vertical]>n/2){const r=Math.min(n,v.vertical==="center"?I.center:v.vertical===m.vertical?I.bottom:I.top);l.maxHeight=Math.min(c,r),l.top=Math.max(0,r-c)}else l.top=Math.max(0,v.vertical==="center"?I.center:v.vertical===m.vertical?I.top:I.bottom),l.maxHeight=Math.min(c,n-l.top);if(l.left<0||l.left+a>e)if(l.maxWidth=Math.min(a,e),m.horizontal==="middle")l.left=I[v.horizontal]>e/2?Math.max(0,e-a):0;else if(I[v.horizontal]>e/2){const r=Math.min(e,v.horizontal==="middle"?I.middle:v.horizontal===m.horizontal?I.right:I.left);l.maxWidth=Math.min(a,r),l.left=Math.max(0,r-l.maxWidth)}else l.left=Math.max(0,v.horizontal==="middle"?I.middle:v.horizontal===m.horizontal?I.left:I.right),l.maxWidth=Math.min(a,e-l.left)}const on=$e({name:"QMenu",inheritAttrs:!1,props:{...Na,...Qi,...Ot,...Xr,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Pn},self:{type:String,validator:Pn},offset:{type:Array,validator:Qa},scrollTarget:Qn,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Ki,"click","escapeKey"],setup(l,{slots:I,emit:t,attrs:v}){let m=null,c,a,s;const n=g.getCurrentInstance(),{proxy:e}=n,{$q:r}=e,u=g.ref(null),o=g.ref(!1),i=g.computed(()=>l.persistent!==!0&&l.noRouteDismiss!==!0),d=Ft(l,r),{registerTick:h,removeTick:f}=Zi(),{registerTimeout:b}=$i(),{transitionProps:p,transitionStyle:S}=Ji(l),{localScrollTarget:_,changeScrollEvent:T,unconfigureScrollTarget:D}=La(l,U),{anchorEl:z,canShow:P}=Yi({showing:o}),{hide:N}=Xi({showing:o,canShow:P,handleShow:E,handleHide:O,hideOnRouteChange:i,processOnMount:!0}),{showPortal:V,hidePortal:W,renderPortal:L}=Gi(n,u,F,"menu"),A={anchorEl:z,innerRef:u,onClickOutside(B){if(l.persistent!==!0&&o.value===!0)return N(B),(B.type==="touchstart"||B.target.classList.contains("q-dialog__backdrop"))&&St(B),!0}},M=g.computed(()=>Nn(l.anchor||(l.cover===!0?"center middle":"bottom start"),r.lang.rtl)),C=g.computed(()=>l.cover===!0?M.value:Nn(l.self||"top start",r.lang.rtl)),y=g.computed(()=>(l.square===!0?" q-menu--square":"")+(d.value===!0?" q-menu--dark q-dark":"")),x=g.computed(()=>l.autoClose===!0?{onClick:q}:{}),w=g.computed(()=>o.value===!0&&l.persistent!==!0);g.watch(w,B=>{B===!0?(Ua(j),Ya(A)):(On(j),Dn(A))});function k(){nn(()=>{let B=u.value;B&&B.contains(document.activeElement)!==!0&&(B=B.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||B.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||B.querySelector("[autofocus], [data-autofocus]")||B,B.focus({preventScroll:!0}))})}function E(B){if(m=l.noRefocus===!1?document.activeElement:null,Ha(K),V(),U(),c=void 0,B!==void 0&&(l.touchPosition||l.contextMenu)){const H=Jr(B);if(H.left!==void 0){const{top:X,left:ee}=z.value.getBoundingClientRect();c={left:H.left-ee,top:H.top-X}}}a===void 0&&(a=g.watch(()=>r.screen.width+"|"+r.screen.height+"|"+l.self+"|"+l.anchor+"|"+r.lang.rtl,Y)),l.noFocus!==!0&&document.activeElement.blur(),h(()=>{Y(),l.noFocus!==!0&&k()}),b(()=>{r.platform.is.ios===!0&&(s=l.autoClose,u.value.click()),Y(),V(!0),t("show",B)},l.transitionDuration)}function O(B){f(),W(),R(!0),m!==null&&(B===void 0||B.qClickOutside!==!0)&&(((B?.type.indexOf("key")===0?m.closest('[tabindex]:not([tabindex^="-"])'):void 0)||m).focus(),m=null),b(()=>{W(!0),t("hide",B)},l.transitionDuration)}function R(B){c=void 0,a!==void 0&&(a(),a=void 0),(B===!0||o.value===!0)&&(Ci(K),D(),Dn(A),On(j)),B!==!0&&(m=null)}function U(){(z.value!==null||l.scrollTarget!==void 0)&&(_.value=Kn(z.value,l.scrollTarget),T(_.value,Y))}function q(B){s!==!0?(qa(e,B),t("click",B)):s=!1}function K(B){w.value===!0&&l.noFocus!==!0&&_a(u.value,B.target)!==!0&&k()}function j(B){l.noEscDismiss!==!0&&(t("escapeKey"),N(B))}function Y(){eo({targetEl:u.value,offset:l.offset,anchorEl:z.value,anchorOrigin:M.value,selfOrigin:C.value,absoluteOffset:c,fit:l.fit,cover:l.cover,maxHeight:l.maxHeight,maxWidth:l.maxWidth})}function F(){return g.h(g.Transition,p.value,()=>o.value===!0?g.h("div",{role:"menu",...v,ref:u,tabindex:-1,class:["q-menu q-position-engine scroll"+y.value,v.class],style:[v.style,S.value],...x.value},gt(I.default)):null)}return g.onBeforeUnmount(R),Object.assign(e,{focus:k,updatePosition:Y}),L}});let ai,mn=0;const Mt=new Array(256);for(let l=0;l<256;l++)Mt[l]=(l+256).toString(16).substring(1);const Ql=(()=>{const l=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(l!==void 0){if(l.randomBytes!==void 0)return l.randomBytes;if(l.getRandomValues!==void 0)return I=>{const t=new Uint8Array(I);return l.getRandomValues(t),t}}return I=>{const t=[];for(let v=I;v>0;v--)t.push(Math.floor(Math.random()*256));return t}})(),qo=4096;function Ai(){(ai===void 0||mn+16>qo)&&(mn=0,ai=Ql(qo));const l=Array.prototype.slice.call(ai,mn,mn+=16);return l[6]=l[6]&15|64,l[8]=l[8]&63|128,Mt[l[0]]+Mt[l[1]]+Mt[l[2]]+Mt[l[3]]+"-"+Mt[l[4]]+Mt[l[5]]+"-"+Mt[l[6]]+Mt[l[7]]+"-"+Mt[l[8]]+Mt[l[9]]+"-"+Mt[l[10]]+Mt[l[11]]+Mt[l[12]]+Mt[l[13]]+Mt[l[14]]+Mt[l[15]]}function Kl(l){return l??null}function zo(l,I){return l??(I===!0?`f_${Ai()}`:null)}function Xl({getValue:l,required:I=!0}={}){if(cr.value===!0){const t=l!==void 0?g.ref(Kl(l())):g.ref(null);return I===!0&&t.value===null&&g.onMounted(()=>{t.value=`f_${Ai()}`}),l!==void 0&&g.watch(l,v=>{t.value=zo(v,I)}),t}return l!==void 0?g.computed(()=>zo(l(),I)):g.ref(`f_${Ai()}`)}const Uo=/^on[A-Z]/;function Gl(){const{attrs:l,vnode:I}=g.getCurrentInstance(),t={listeners:g.ref({}),attributes:g.ref({})};function v(){const m={},c={};for(const a in l)a!=="class"&&a!=="style"&&Uo.test(a)===!1&&(m[a]=l[a]);for(const a in I.props)Uo.test(a)===!0&&(c[a]=I.props[a]);t.attributes.value=m,t.listeners.value=c}return g.onBeforeUpdate(v),v(),t}const Jl="_q_",an="_q_l_",Ka="_q_pc_",Xa="_q_fo_";function Rt(){}function Zl({validate:l,resetValidation:I,requiresQForm:t}){const v=g.inject(Xa,!1);if(v!==!1){const{props:m,proxy:c}=g.getCurrentInstance();Object.assign(c,{validate:l,resetValidation:I}),g.watch(()=>m.disable,a=>{a===!0?(typeof I=="function"&&I(),v.unbindComponent(c)):v.bindComponent(c)}),g.onMounted(()=>{m.disable!==!0&&v.bindComponent(c)}),g.onBeforeUnmount(()=>{m.disable!==!0&&v.unbindComponent(c)})}else t===!0&&console.error("Parent QForm not found on useFormChild()!")}const Wo=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Ho=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Yo=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,gn=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,bn=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,si={date:l=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(l),time:l=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(l),fulltime:l=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(l),timeOrFulltime:l=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(l),email:l=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(l),hexColor:l=>Wo.test(l),hexaColor:l=>Ho.test(l),hexOrHexaColor:l=>Yo.test(l),rgbColor:l=>gn.test(l),rgbaColor:l=>bn.test(l),rgbOrRgbaColor:l=>gn.test(l)||bn.test(l),hexOrRgbColor:l=>Wo.test(l)||gn.test(l),hexaOrRgbaColor:l=>Ho.test(l)||bn.test(l),anyColor:l=>Yo.test(l)||gn.test(l)||bn.test(l)},$l=[!0,!1,"ondemand"],eu={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:l=>$l.includes(l)}};function tu(l,I){const{props:t,proxy:v}=g.getCurrentInstance(),m=g.ref(!1),c=g.ref(null),a=g.ref(!1);Zl({validate:h,resetValidation:d});let s=0,n;const e=g.computed(()=>t.rules!==void 0&&t.rules!==null&&t.rules.length!==0),r=g.computed(()=>t.disable!==!0&&e.value===!0&&I.value===!1),u=g.computed(()=>t.error===!0||m.value===!0),o=g.computed(()=>typeof t.errorMessage=="string"&&t.errorMessage.length!==0?t.errorMessage:c.value);g.watch(()=>t.modelValue,()=>{a.value=!0,r.value===!0&&t.lazyRules===!1&&f()});function i(){t.lazyRules!=="ondemand"&&r.value===!0&&a.value===!0&&f()}g.watch(()=>t.reactiveRules,b=>{b===!0?n===void 0&&(n=g.watch(()=>t.rules,i,{immediate:!0,deep:!0})):n!==void 0&&(n(),n=void 0)},{immediate:!0}),g.watch(()=>t.lazyRules,i),g.watch(l,b=>{b===!0?a.value=!0:r.value===!0&&t.lazyRules!=="ondemand"&&f()});function d(){s++,I.value=!1,a.value=!1,m.value=!1,c.value=null,f.cancel()}function h(b=t.modelValue){if(t.disable===!0||e.value===!1)return!0;const p=++s,S=I.value!==!0?()=>{a.value=!0}:()=>{},_=(D,z)=>{D===!0&&S(),m.value=D,c.value=z||null,I.value=!1},T=[];for(let D=0;D<t.rules.length;D++){const z=t.rules[D];let P;if(typeof z=="function"?P=z(b,si):typeof z=="string"&&si[z]!==void 0&&(P=si[z](b)),P===!1||typeof P=="string")return _(!0,P),!1;P!==!0&&P!==void 0&&T.push(P)}return T.length===0?(_(!1),!0):(I.value=!0,Promise.all(T).then(D=>{if(D===void 0||Array.isArray(D)===!1||D.length===0)return p===s&&_(!1),!0;const z=D.find(P=>P===!1||typeof P=="string");return p===s&&_(z!==void 0,z),z===void 0},D=>(p===s&&(console.error(D),_(!0)),!1)))}const f=Hi(h,0);return g.onBeforeUnmount(()=>{n?.(),f.cancel()}),Object.assign(v,{resetValidation:d,validate:h}),Lt(v,"hasError",()=>u.value),{isDirtyModel:a,hasRules:e,hasError:u,errorMessage:o,validate:h,resetValidation:d}}function $r(l){return l!=null&&(""+l).length!==0}const ru={...Ot,...eu,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String},Xn={...ru,maxlength:[Number,String]},to=["update:modelValue","clear","focus","blur"];function ro({requiredForAttr:l=!0,tagProp:I,changeEvent:t=!1}={}){const{props:v,proxy:m}=g.getCurrentInstance(),c=Ft(v,m.$q),a=Xl({required:l,getValue:()=>v.for});return{requiredForAttr:l,changeEvent:t,tag:I===!0?g.computed(()=>v.tag):{value:"label"},isDark:c,editable:g.computed(()=>v.disable!==!0&&v.readonly!==!0),innerLoading:g.ref(!1),focused:g.ref(!1),hasPopupOpen:!1,splitAttrs:Gl(),targetUid:a,rootRef:g.ref(null),targetRef:g.ref(null),controlRef:g.ref(null)}}function no(l){const{props:I,emit:t,slots:v,attrs:m,proxy:c}=g.getCurrentInstance(),{$q:a}=c;let s=null;l.hasValue===void 0&&(l.hasValue=g.computed(()=>$r(I.modelValue))),l.emitValue===void 0&&(l.emitValue=w=>{t("update:modelValue",w)}),l.controlEvents===void 0&&(l.controlEvents={onFocusin:N,onFocusout:V}),Object.assign(l,{clearValue:W,onControlFocusin:N,onControlFocusout:V,focus:z}),l.computedCounter===void 0&&(l.computedCounter=g.computed(()=>{if(I.counter!==!1){const w=typeof I.modelValue=="string"||typeof I.modelValue=="number"?(""+I.modelValue).length:Array.isArray(I.modelValue)===!0?I.modelValue.length:0,k=I.maxlength!==void 0?I.maxlength:I.maxValues;return w+(k!==void 0?" / "+k:"")}}));const{isDirtyModel:n,hasRules:e,hasError:r,errorMessage:u,resetValidation:o}=tu(l.focused,l.innerLoading),i=l.floatingLabel!==void 0?g.computed(()=>I.stackLabel===!0||l.focused.value===!0||l.floatingLabel.value===!0):g.computed(()=>I.stackLabel===!0||l.focused.value===!0||l.hasValue.value===!0),d=g.computed(()=>I.bottomSlots===!0||I.hint!==void 0||e.value===!0||I.counter===!0||I.error!==null),h=g.computed(()=>I.filled===!0?"filled":I.outlined===!0?"outlined":I.borderless===!0?"borderless":I.standout?"standout":"standard"),f=g.computed(()=>`q-field row no-wrap items-start q-field--${h.value}`+(l.fieldClass!==void 0?` ${l.fieldClass.value}`:"")+(I.rounded===!0?" q-field--rounded":"")+(I.square===!0?" q-field--square":"")+(i.value===!0?" q-field--float":"")+(p.value===!0?" q-field--labeled":"")+(I.dense===!0?" q-field--dense":"")+(I.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(l.isDark.value===!0?" q-field--dark":"")+(l.getControl===void 0?" q-field--auto-height":"")+(l.focused.value===!0?" q-field--focused":"")+(r.value===!0?" q-field--error":"")+(r.value===!0||l.focused.value===!0?" q-field--highlighted":"")+(I.hideBottomSpace!==!0&&d.value===!0?" q-field--with-bottom":"")+(I.disable===!0?" q-field--disabled":I.readonly===!0?" q-field--readonly":"")),b=g.computed(()=>"q-field__control relative-position row no-wrap"+(I.bgColor!==void 0?` bg-${I.bgColor}`:"")+(r.value===!0?" text-negative":typeof I.standout=="string"&&I.standout.length!==0&&l.focused.value===!0?` ${I.standout}`:I.color!==void 0?` text-${I.color}`:"")),p=g.computed(()=>I.labelSlot===!0||I.label!==void 0),S=g.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(I.labelColor!==void 0&&r.value!==!0?` text-${I.labelColor}`:"")),_=g.computed(()=>({id:l.targetUid.value,editable:l.editable.value,focused:l.focused.value,floatingLabel:i.value,modelValue:I.modelValue,emitValue:l.emitValue})),T=g.computed(()=>{const w={};return l.targetUid.value&&(w.for=l.targetUid.value),I.disable===!0&&(w["aria-disabled"]="true"),w});function D(){const w=document.activeElement;let k=l.targetRef?.value;k&&(w===null||w.id!==l.targetUid.value)&&(k.hasAttribute("tabindex")===!0||(k=k.querySelector("[tabindex]")),k!==w&&k?.focus({preventScroll:!0}))}function z(){nn(D)}function P(){Il(D);const w=document.activeElement;w!==null&&l.rootRef.value.contains(w)&&w.blur()}function N(w){s!==null&&(clearTimeout(s),s=null),l.editable.value===!0&&l.focused.value===!1&&(l.focused.value=!0,t("focus",w))}function V(w,k){s!==null&&clearTimeout(s),s=setTimeout(()=>{s=null,!(document.hasFocus()===!0&&(l.hasPopupOpen===!0||l.controlRef===void 0||l.controlRef.value===null||l.controlRef.value.contains(document.activeElement)!==!1))&&(l.focused.value===!0&&(l.focused.value=!1,t("blur",w)),k?.())})}function W(w){St(w),a.platform.is.mobile!==!0?(l.targetRef?.value||l.rootRef.value).focus():l.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),I.type==="file"&&(l.inputRef.value.value=null),t("update:modelValue",null),l.changeEvent===!0&&t("change",null),t("clear",I.modelValue),g.nextTick(()=>{const k=n.value;o(),n.value=k})}function L(w){[13,32].includes(w.keyCode)&&W(w)}function A(){const w=[];return v.prepend!==void 0&&w.push(g.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:Bt},v.prepend())),w.push(g.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},M())),r.value===!0&&I.noErrorIcon===!1&&w.push(y("error",[g.h(vt,{name:a.iconSet.field.error,color:"negative"})])),I.loading===!0||l.innerLoading.value===!0?w.push(y("inner-loading-append",v.loading!==void 0?v.loading():[g.h(Ca,{color:I.color})])):I.clearable===!0&&l.hasValue.value===!0&&l.editable.value===!0&&w.push(y("inner-clearable-append",[g.h(vt,{class:"q-field__focusable-action",name:I.clearIcon||a.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":a.lang.label.clear,onKeyup:L,onClick:W})])),v.append!==void 0&&w.push(g.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:Bt},v.append())),l.getInnerAppend!==void 0&&w.push(y("inner-append",l.getInnerAppend())),l.getControlChild!==void 0&&w.push(l.getControlChild()),w}function M(){const w=[];return I.prefix!==void 0&&I.prefix!==null&&w.push(g.h("div",{class:"q-field__prefix no-pointer-events row items-center"},I.prefix)),l.getShadowControl!==void 0&&l.hasShadow.value===!0&&w.push(l.getShadowControl()),l.getControl!==void 0?w.push(l.getControl()):v.rawControl!==void 0?w.push(v.rawControl()):v.control!==void 0&&w.push(g.h("div",{ref:l.targetRef,class:"q-field__native row",tabindex:-1,...l.splitAttrs.attributes.value,"data-autofocus":I.autofocus===!0||void 0},v.control(_.value))),p.value===!0&&w.push(g.h("div",{class:S.value},gt(v.label,I.label))),I.suffix!==void 0&&I.suffix!==null&&w.push(g.h("div",{class:"q-field__suffix no-pointer-events row items-center"},I.suffix)),w.concat(gt(v.default))}function C(){let w,k;r.value===!0?u.value!==null?(w=[g.h("div",{role:"alert"},u.value)],k=`q--slot-error-${u.value}`):(w=gt(v.error),k="q--slot-error"):(I.hideHint!==!0||l.focused.value===!0)&&(I.hint!==void 0?(w=[g.h("div",I.hint)],k=`q--slot-hint-${I.hint}`):(w=gt(v.hint),k="q--slot-hint"));const E=I.counter===!0||v.counter!==void 0;if(I.hideBottomSpace===!0&&E===!1&&w===void 0)return;const O=g.h("div",{key:k,class:"q-field__messages col"},w);return g.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(I.hideBottomSpace!==!0?"animated":"stale"),onClick:Bt},[I.hideBottomSpace===!0?O:g.h(g.Transition,{name:"q-transition--field-message"},()=>O),E===!0?g.h("div",{class:"q-field__counter"},v.counter!==void 0?v.counter():l.computedCounter.value):null])}function y(w,k){return k===null?null:g.h("div",{key:w,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},k)}let x=!1;return g.onDeactivated(()=>{x=!0}),g.onActivated(()=>{x===!0&&I.autofocus===!0&&c.focus()}),I.autofocus===!0&&g.onMounted(()=>{c.focus()}),g.onBeforeUnmount(()=>{s!==null&&clearTimeout(s)}),Object.assign(c,{focus:z,blur:P}),function(){const k=l.getControl===void 0&&v.control===void 0?{...l.splitAttrs.attributes.value,"data-autofocus":I.autofocus===!0||void 0,...T.value}:T.value;return g.h(l.tag.value,{ref:l.rootRef,class:[f.value,m.class],style:m.style,...k},[v.before!==void 0?g.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:Bt},v.before()):null,g.h("div",{class:"q-field__inner relative-position col self-stretch"},[g.h("div",{ref:l.controlRef,class:b.value,tabindex:-1,...l.controlEvents},A()),d.value===!0?C():null]),v.after!==void 0?g.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:Bt},v.after()):null])}}const nu=$e({name:"QField",inheritAttrs:!1,props:{...Xn,tag:{type:String,default:"label"}},emits:to,setup(){return no(ro({tagProp:!0}))}}),iu={xs:8,sm:10,md:14,lg:20,xl:24},io=$e({name:"QChip",props:{...Ot,...Vr,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(l,{slots:I,emit:t}){const{proxy:{$q:v}}=g.getCurrentInstance(),m=Ft(l,v),c=qr(l,iu),a=g.computed(()=>l.selected===!0||l.icon!==void 0),s=g.computed(()=>l.selected===!0?l.iconSelected||v.iconSet.chip.selected:l.icon),n=g.computed(()=>l.iconRemove||v.iconSet.chip.remove),e=g.computed(()=>l.disable===!1&&(l.clickable===!0||l.selected!==null)),r=g.computed(()=>{const f=l.outline===!0&&l.color||l.textColor;return"q-chip row inline no-wrap items-center"+(l.outline===!1&&l.color!==void 0?` bg-${l.color}`:"")+(f?` text-${f} q-chip--colored`:"")+(l.disable===!0?" disabled":"")+(l.dense===!0?" q-chip--dense":"")+(l.outline===!0?" q-chip--outline":"")+(l.selected===!0?" q-chip--selected":"")+(e.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(l.square===!0?" q-chip--square":"")+(m.value===!0?" q-chip--dark q-dark":"")}),u=g.computed(()=>{const f=l.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:l.tabindex||0},b={...f,role:"button","aria-hidden":"false","aria-label":l.removeAriaLabel||v.lang.label.remove};return{chip:f,remove:b}});function o(f){f.keyCode===13&&i(f)}function i(f){l.disable||(t("update:selected",!l.selected),t("click",f))}function d(f){(f.keyCode===void 0||f.keyCode===13)&&(St(f),l.disable===!1&&(t("update:modelValue",!1),t("remove")))}function h(){const f=[];e.value===!0&&f.push(g.h("div",{class:"q-focus-helper"})),a.value===!0&&f.push(g.h(vt,{class:"q-chip__icon q-chip__icon--left",name:s.value}));const b=l.label!==void 0?[g.h("div",{class:"ellipsis"},[l.label])]:void 0;return f.push(g.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},ga(I.default,b))),l.iconRight&&f.push(g.h(vt,{class:"q-chip__icon q-chip__icon--right",name:l.iconRight})),l.removable===!0&&f.push(g.h(vt,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:n.value,...u.value.remove,onClick:d,onKeyup:d})),f}return()=>{if(l.modelValue===!1)return;const f={class:r.value,style:c.value};return e.value===!0&&Object.assign(f,u.value.chip,{onClick:i,onKeyup:o}),Os("div",f,h(),"ripple",l.ripple!==!1&&l.disable!==!0,()=>[[Aa,l.ripple]])}}}),Ir=$e({name:"QItem",props:{...Ot,...Sa,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(l,{slots:I,emit:t}){const{proxy:{$q:v}}=g.getCurrentInstance(),m=Ft(l,v),{hasLink:c,linkAttrs:a,linkClass:s,linkTag:n,navigateOnClick:e}=Ni(),r=g.ref(null),u=g.ref(null),o=g.computed(()=>l.clickable===!0||c.value===!0||l.tag==="label"),i=g.computed(()=>l.disable!==!0&&o.value===!0),d=g.computed(()=>"q-item q-item-type row no-wrap"+(l.dense===!0?" q-item--dense":"")+(m.value===!0?" q-item--dark":"")+(c.value===!0&&l.active===null?s.value:l.active===!0?` q-item--active${l.activeClass!==void 0?` ${l.activeClass}`:""}`:"")+(l.disable===!0?" disabled":"")+(i.value===!0?" q-item--clickable q-link cursor-pointer "+(l.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(l.focused===!0?" q-manual-focusable--focused":""):"")),h=g.computed(()=>l.insetLevel===void 0?null:{["padding"+(v.lang.rtl===!0?"Right":"Left")]:16+l.insetLevel*56+"px"});function f(S){i.value===!0&&(u.value!==null&&S.qAvoidFocus!==!0&&(S.qKeyEvent!==!0&&document.activeElement===r.value?u.value.focus():document.activeElement===u.value&&r.value.focus()),e(S))}function b(S){if(i.value===!0&&ur(S,[13,32])===!0){St(S),S.qKeyEvent=!0;const _=new MouseEvent("click",S);_.qKeyEvent=!0,r.value.dispatchEvent(_)}t("keyup",S)}function p(){const S=ji(I.default,[]);return i.value===!0&&S.unshift(g.h("div",{class:"q-focus-helper",tabindex:-1,ref:u})),S}return()=>{const S={ref:r,class:d.value,style:h.value,role:"listitem",onClick:f,onKeyup:b};return i.value===!0?(S.tabindex=l.tabindex||"0",Object.assign(S,a.value)):o.value===!0&&(S["aria-disabled"]="true"),g.h(n.value,S,p())}}}),Or=$e({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(l,{slots:I}){const t=g.computed(()=>`q-item__section column q-item__section--${l.avatar===!0||l.side===!0||l.thumbnail===!0?"side":"main"}`+(l.top===!0?" q-item__section--top justify-start":" justify-center")+(l.avatar===!0?" q-item__section--avatar":"")+(l.thumbnail===!0?" q-item__section--thumbnail":"")+(l.noWrap===!0?" q-item__section--nowrap":""));return()=>g.h("div",{class:t.value},gt(I.default))}}),Ei=$e({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(l,{slots:I}){const t=g.computed(()=>parseInt(l.lines,10)),v=g.computed(()=>"q-item__label"+(l.overline===!0?" q-item__label--overline text-overline":"")+(l.caption===!0?" q-item__label--caption text-caption":"")+(l.header===!0?" q-item__label--header":"")+(t.value===1?" ellipsis":"")),m=g.computed(()=>l.lines!==void 0&&t.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":t.value}:null);return()=>g.h("div",{style:m.value,class:v.value},gt(I.default))}});function ou(l,I,t){function v(){}return g.onBeforeUnmount(()=>{l.value===!0&&void 0}),{removeFromHistory:v,addToHistory(){}}}let Wr=0,li,ui,Qr,ci=!1,Qo,Ko,Xo,hr=null;function au(l){su(l)&&St(l)}function su(l){if(l.target===document.body||l.target.classList.contains("q-layout__backdrop"))return!0;const I=el(l),t=l.shiftKey&&!l.deltaX,v=!t&&Math.abs(l.deltaX)<=Math.abs(l.deltaY),m=t||v?l.deltaY:l.deltaX;for(let c=0;c<I.length;c++){const a=I[c];if(Cl(a,v))return v?m<0&&a.scrollTop===0?!0:m>0&&a.scrollTop+a.clientHeight===a.scrollHeight:m<0&&a.scrollLeft===0?!0:m>0&&a.scrollLeft+a.clientWidth===a.scrollWidth}return!0}function Go(l){l.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function vn(l){ci!==!0&&(ci=!0,requestAnimationFrame(()=>{ci=!1;const{height:I}=l.target,{clientHeight:t,scrollTop:v}=document.scrollingElement;(Qr===void 0||I!==window.innerHeight)&&(Qr=t-I,document.scrollingElement.scrollTop=v),v>Qr&&(document.scrollingElement.scrollTop-=Math.ceil((v-Qr)/8))}))}function Jo(l){const I=document.body,t=window.visualViewport!==void 0;if(l==="add"){const{overflowY:v,overflowX:m}=window.getComputedStyle(I);li=Ui(window),ui=zi(window),Qo=I.style.left,Ko=I.style.top,Xo=window.location.href,I.style.left=`-${li}px`,I.style.top=`-${ui}px`,m!=="hidden"&&(m==="scroll"||I.scrollWidth>window.innerWidth)&&I.classList.add("q-body--force-scrollbar-x"),v!=="hidden"&&(v==="scroll"||I.scrollHeight>window.innerHeight)&&I.classList.add("q-body--force-scrollbar-y"),I.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,Et.is.ios===!0&&(t===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",vn,Ct.passiveCapture),window.visualViewport.addEventListener("scroll",vn,Ct.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Go,Ct.passiveCapture))}Et.is.desktop===!0&&Et.is.mac===!0&&window[`${l}EventListener`]("wheel",au,Ct.notPassive),l==="remove"&&(Et.is.ios===!0&&(t===!0?(window.visualViewport.removeEventListener("resize",vn,Ct.passiveCapture),window.visualViewport.removeEventListener("scroll",vn,Ct.passiveCapture)):window.removeEventListener("scroll",Go,Ct.passiveCapture)),I.classList.remove("q-body--prevent-scroll"),I.classList.remove("q-body--force-scrollbar-x"),I.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,I.style.left=Qo,I.style.top=Ko,window.location.href===Xo&&window.scrollTo(li,ui),Qr=void 0)}function lu(l){let I="add";if(l===!0){if(Wr++,hr!==null){clearTimeout(hr),hr=null;return}if(Wr>1)return}else{if(Wr===0||(Wr--,Wr>0))return;if(I="remove",Et.is.ios===!0&&Et.is.nativeMobile===!0){hr!==null&&clearTimeout(hr),hr=setTimeout(()=>{Jo(I),hr=null},100);return}}Jo(I)}function uu(){let l;return{preventBodyScroll(I){I!==l&&(l!==void 0||I===!0)&&(l=I,lu(I))}}}let yn=0;const cu={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},Zo={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},Gn=$e({name:"QDialog",inheritAttrs:!1,props:{...Qi,...Xr,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:"standard",validator:l=>["standard","top","bottom","left","right"].includes(l)}},emits:[...Ki,"shake","click","escapeKey"],setup(l,{slots:I,emit:t,attrs:v}){const m=g.getCurrentInstance(),c=g.ref(null),a=g.ref(!1),s=g.ref(!1);let n=null,e=null,r,u;const o=g.computed(()=>l.persistent!==!0&&l.noRouteDismiss!==!0&&l.seamless!==!0),{preventBodyScroll:i}=uu(),{registerTimeout:d}=$i(),{registerTick:h,removeTick:f}=Zi(),{transitionProps:b,transitionStyle:p}=Ji(l,()=>Zo[l.position][0],()=>Zo[l.position][1]),S=g.computed(()=>p.value+(l.backdropFilter!==void 0?`;backdrop-filter:${l.backdropFilter};-webkit-backdrop-filter:${l.backdropFilter}`:"")),{showPortal:_,hidePortal:T,portalIsAccessible:D,renderPortal:z}=Gi(m,c,U,"dialog"),{hide:P}=Xi({showing:a,hideOnRouteChange:o,handleShow:A,handleHide:M,processOnMount:!0});ou(a);const N=g.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${l.maximized===!0?"maximized":"minimized"} q-dialog__inner--${l.position} ${cu[l.position]}`+(s.value===!0?" q-dialog__inner--animating":"")+(l.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(l.fullHeight===!0?" q-dialog__inner--fullheight":"")+(l.square===!0?" q-dialog__inner--square":"")),V=g.computed(()=>a.value===!0&&l.seamless!==!0),W=g.computed(()=>l.autoClose===!0?{onClick:E}:{}),L=g.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${V.value===!0?"modal":"seamless"}`,v.class]);g.watch(()=>l.maximized,q=>{a.value===!0&&k(q)}),g.watch(V,q=>{i(q),q===!0?(Ha(R),Ua(x)):(Ci(R),On(x))});function A(q){e=l.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,k(l.maximized),_(),s.value=!0,l.noFocus!==!0?(document.activeElement?.blur(),h(C)):f(),d(()=>{if(m.proxy.$q.platform.is.ios===!0){if(l.seamless!==!0&&document.activeElement){const{top:K,bottom:j}=document.activeElement.getBoundingClientRect(),{innerHeight:Y}=window,F=window.visualViewport!==void 0?window.visualViewport.height:Y;K>0&&j>F/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-F,j>=Y?1/0:Math.ceil(document.scrollingElement.scrollTop+j-F/2))),document.activeElement.scrollIntoView()}u=!0,c.value.click(),u=!1}_(!0),s.value=!1,t("show",q)},l.transitionDuration)}function M(q){f(),w(!0),s.value=!0,T(),e!==null&&(((q?.type.indexOf("key")===0?e.closest('[tabindex]:not([tabindex^="-"])'):void 0)||e).focus(),e=null),d(()=>{T(!0),s.value=!1,t("hide",q)},l.transitionDuration)}function C(q){nn(()=>{let K=c.value;if(K!==null){if(q!==void 0){const j=K.querySelector(q);if(j!==null){j.focus({preventScroll:!0});return}}K.contains(document.activeElement)!==!0&&(K=K.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||K.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||K.querySelector("[autofocus], [data-autofocus]")||K,K.focus({preventScroll:!0}))}})}function y(q){q&&typeof q.focus=="function"?q.focus({preventScroll:!0}):C(),t("shake");const K=c.value;K!==null&&(K.classList.remove("q-animate--scale"),K.classList.add("q-animate--scale"),n!==null&&clearTimeout(n),n=setTimeout(()=>{n=null,c.value!==null&&(K.classList.remove("q-animate--scale"),C())},170))}function x(){l.seamless!==!0&&(l.persistent===!0||l.noEscDismiss===!0?l.maximized!==!0&&l.noShake!==!0&&y():(t("escapeKey"),P()))}function w(q){n!==null&&(clearTimeout(n),n=null),(q===!0||a.value===!0)&&(k(!1),l.seamless!==!0&&(i(!1),Ci(R),On(x))),q!==!0&&(e=null)}function k(q){q===!0?r!==!0&&(yn<1&&document.body.classList.add("q-body--dialog"),yn++,r=!0):r===!0&&(yn<2&&document.body.classList.remove("q-body--dialog"),yn--,r=!1)}function E(q){u!==!0&&(P(q),t("click",q))}function O(q){l.persistent!==!0&&l.noBackdropDismiss!==!0?P(q):l.noShake!==!0&&y()}function R(q){l.allowFocusOutside!==!0&&D.value===!0&&_a(c.value,q.target)!==!0&&C('[tabindex]:not([tabindex="-1"])')}Object.assign(m.proxy,{focus:C,shake:y,__updateRefocusTarget(q){e=q||null}}),g.onBeforeUnmount(w);function U(){return g.h("div",{role:"dialog","aria-modal":V.value===!0?"true":"false",...v,class:L.value},[g.h(g.Transition,{name:"q-transition--fade",appear:!0},()=>V.value===!0?g.h("div",{class:"q-dialog__backdrop fixed-full",style:S.value,"aria-hidden":"true",tabindex:-1,onClick:O}):null),g.h(g.Transition,b.value,()=>a.value===!0?g.h("div",{ref:c,class:N.value,style:p.value,tabindex:-1,...W.value},gt(I.default)):null)])}return z}});let Ln=!1;{const l=document.createElement("div");l.setAttribute("dir","rtl"),Object.assign(l.style,{width:"1px",height:"1px",overflow:"auto"});const I=document.createElement("div");Object.assign(I.style,{width:"1000px",height:"1px"}),document.body.appendChild(l),l.appendChild(I),l.scrollLeft=-1e3,Ln=l.scrollLeft>=0,l.remove()}const Wt=1e3,fu=["start","center","end","start-force","center-force","end-force"],Ga=Array.prototype.filter,du=window.getComputedStyle(document.body).overflowAnchor===void 0?Hn:function(l,I){l!==null&&(l._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(l._qOverflowAnimationFrame),l._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(l===null)return;l._qOverflowAnimationFrame=void 0;const t=l.children||[];Ga.call(t,m=>m.dataset&&m.dataset.qVsAnchor!==void 0).forEach(m=>{delete m.dataset.qVsAnchor});const v=t[I];v?.dataset&&(v.dataset.qVsAnchor="")}))};function jr(l,I){return l+I}function fi(l,I,t,v,m,c,a,s){const n=l===window?document.scrollingElement||document.documentElement:l,e=m===!0?"offsetWidth":"offsetHeight",r={scrollStart:0,scrollViewSize:-a-s,scrollMaxSize:0,offsetStart:-a,offsetEnd:-s};if(m===!0?(l===window?(r.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,r.scrollViewSize+=document.documentElement.clientWidth):(r.scrollStart=n.scrollLeft,r.scrollViewSize+=n.clientWidth),r.scrollMaxSize=n.scrollWidth,c===!0&&(r.scrollStart=(Ln===!0?r.scrollMaxSize-r.scrollViewSize:0)-r.scrollStart)):(l===window?(r.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,r.scrollViewSize+=document.documentElement.clientHeight):(r.scrollStart=n.scrollTop,r.scrollViewSize+=n.clientHeight),r.scrollMaxSize=n.scrollHeight),t!==null)for(let u=t.previousElementSibling;u!==null;u=u.previousElementSibling)u.classList.contains("q-virtual-scroll--skip")===!1&&(r.offsetStart+=u[e]);if(v!==null)for(let u=v.nextElementSibling;u!==null;u=u.nextElementSibling)u.classList.contains("q-virtual-scroll--skip")===!1&&(r.offsetEnd+=u[e]);if(I!==l){const u=n.getBoundingClientRect(),o=I.getBoundingClientRect();m===!0?(r.offsetStart+=o.left-u.left,r.offsetEnd-=o.width):(r.offsetStart+=o.top-u.top,r.offsetEnd-=o.height),l!==window&&(r.offsetStart+=r.scrollStart),r.offsetEnd+=r.scrollMaxSize-r.offsetStart}return r}function $o(l,I,t,v){I==="end"&&(I=(l===window?document.body:l)[t===!0?"scrollWidth":"scrollHeight"]),l===window?t===!0?(v===!0&&(I=(Ln===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-I),window.scrollTo(I,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,I):t===!0?(v===!0&&(I=(Ln===!0?l.scrollWidth-l.offsetWidth:0)-I),l.scrollLeft=I):l.scrollTop=I}function Hr(l,I,t,v){if(t>=v)return 0;const m=I.length,c=Math.floor(t/Wt),a=Math.floor((v-1)/Wt)+1;let s=l.slice(c,a).reduce(jr,0);return t%Wt!==0&&(s-=I.slice(c*Wt,t).reduce(jr,0)),v%Wt!==0&&v!==m&&(s-=I.slice(v,a*Wt).reduce(jr,0)),s}const Ja={virtualScrollSliceSize:{type:[Number,String],default:10},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]},Za=Object.keys(Ja),Mi={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...Ja};function $a({virtualScrollLength:l,getVirtualScrollTarget:I,getVirtualScrollEl:t,virtualScrollItemSizeComputed:v}){const m=g.getCurrentInstance(),{props:c,emit:a,proxy:s}=m,{$q:n}=s;let e,r,u,o=[],i;const d=g.ref(0),h=g.ref(0),f=g.ref({}),b=g.ref(null),p=g.ref(null),S=g.ref(null),_=g.ref({from:0,to:0}),T=g.computed(()=>c.tableColspan!==void 0?c.tableColspan:100);v===void 0&&(v=g.computed(()=>c.virtualScrollItemSize));const D=g.computed(()=>v.value+";"+c.virtualScrollHorizontal),z=g.computed(()=>D.value+";"+c.virtualScrollSliceRatioBefore+";"+c.virtualScrollSliceRatioAfter);g.watch(z,()=>{y()}),g.watch(D,P);function P(){C(r,!0)}function N(O){C(O===void 0?r:O)}function V(O,R){const U=I();if(U==null||U.nodeType===8)return;const q=fi(U,t(),b.value,p.value,c.virtualScrollHorizontal,n.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd);u!==q.scrollViewSize&&y(q.scrollViewSize),L(U,q,Math.min(l.value-1,Math.max(0,parseInt(O,10)||0)),0,fu.indexOf(R)!==-1?R:r!==-1&&O>r?"end":"start")}function W(){const O=I();if(O==null||O.nodeType===8)return;const R=fi(O,t(),b.value,p.value,c.virtualScrollHorizontal,n.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd),U=l.value-1,q=R.scrollMaxSize-R.offsetStart-R.offsetEnd-h.value;if(e===R.scrollStart)return;if(R.scrollMaxSize<=0){L(O,R,0,0);return}u!==R.scrollViewSize&&y(R.scrollViewSize),A(_.value.from);const K=Math.floor(R.scrollMaxSize-Math.max(R.scrollViewSize,R.offsetEnd)-Math.min(i[U],R.scrollViewSize/2));if(K>0&&Math.ceil(R.scrollStart)>=K){L(O,R,U,R.scrollMaxSize-R.offsetEnd-o.reduce(jr,0));return}let j=0,Y=R.scrollStart-R.offsetStart,F=Y;if(Y<=q&&Y+R.scrollViewSize>=d.value)Y-=d.value,j=_.value.from,F=Y;else for(let B=0;Y>=o[B]&&j<U;B++)Y-=o[B],j+=Wt;for(;Y>0&&j<U;)Y-=i[j],Y>-R.scrollViewSize?(j++,F=Y):F=i[j]+Y;L(O,R,j,F)}function L(O,R,U,q,K){const j=typeof K=="string"&&K.indexOf("-force")!==-1,Y=j===!0?K.replace("-force",""):K,F=Y!==void 0?Y:"start";let B=Math.max(0,U-f.value[F]),H=B+f.value.total;H>l.value&&(H=l.value,B=Math.max(0,H-f.value.total)),e=R.scrollStart;const X=B!==_.value.from||H!==_.value.to;if(X===!1&&Y===void 0){w(U);return}const{activeElement:ee}=document,Q=S.value;X===!0&&Q!==null&&Q!==ee&&Q.contains(ee)===!0&&(Q.addEventListener("focusout",M),setTimeout(()=>{Q?.removeEventListener("focusout",M)})),du(Q,U-B);const Z=Y!==void 0?i.slice(B,U).reduce(jr,0):0;if(X===!0){const te=H>=_.value.from&&B<=_.value.to?_.value.to:H;_.value={from:B,to:te},d.value=Hr(o,i,0,B),h.value=Hr(o,i,H,l.value),requestAnimationFrame(()=>{_.value.to!==H&&e===R.scrollStart&&(_.value={from:_.value.from,to:H},h.value=Hr(o,i,H,l.value))})}requestAnimationFrame(()=>{if(e!==R.scrollStart)return;X===!0&&A(B);const te=i.slice(B,U).reduce(jr,0),ie=te+R.offsetStart+d.value,J=ie+i[U];let oe=ie+q;if(Y!==void 0){const ae=te-Z,fe=R.scrollStart+ae;oe=j!==!0&&fe<ie&&J<fe+R.scrollViewSize?fe:Y==="end"?J-R.scrollViewSize:ie-(Y==="start"?0:Math.round((R.scrollViewSize-i[U])/2))}e=oe,$o(O,oe,c.virtualScrollHorizontal,n.lang.rtl),w(U)})}function A(O){const R=S.value;if(R){const U=Ga.call(R.children,B=>B.classList&&B.classList.contains("q-virtual-scroll--skip")===!1),q=U.length,K=c.virtualScrollHorizontal===!0?B=>B.getBoundingClientRect().width:B=>B.offsetHeight;let j=O,Y,F;for(let B=0;B<q;){for(Y=K(U[B]),B++;B<q&&U[B].classList.contains("q-virtual-scroll--with-prev")===!0;)Y+=K(U[B]),B++;F=Y-i[j],F!==0&&(i[j]+=F,o[Math.floor(j/Wt)]+=F),j++}}}function M(){S.value?.focus()}function C(O,R){const U=1*v.value;(R===!0||Array.isArray(i)===!1)&&(i=[]);const q=i.length;i.length=l.value;for(let j=l.value-1;j>=q;j--)i[j]=U;const K=Math.floor((l.value-1)/Wt);o=[];for(let j=0;j<=K;j++){let Y=0;const F=Math.min((j+1)*Wt,l.value);for(let B=j*Wt;B<F;B++)Y+=i[B];o.push(Y)}r=-1,e=void 0,d.value=Hr(o,i,0,_.value.from),h.value=Hr(o,i,_.value.to,l.value),O>=0?(A(_.value.from),g.nextTick(()=>{V(O)})):k()}function y(O){if(O===void 0&&typeof window<"u"){const Y=I();Y!=null&&Y.nodeType!==8&&(O=fi(Y,t(),b.value,p.value,c.virtualScrollHorizontal,n.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd).scrollViewSize)}u=O;const R=parseFloat(c.virtualScrollSliceRatioBefore)||0,U=parseFloat(c.virtualScrollSliceRatioAfter)||0,q=1+R+U,K=O===void 0||O<=0?1:Math.ceil(O/v.value),j=Math.max(1,K,Math.ceil((c.virtualScrollSliceSize>0?c.virtualScrollSliceSize:10)/q));f.value={total:Math.ceil(j*q),start:Math.ceil(j*R),center:Math.ceil(j*(.5+R)),end:Math.ceil(j*(1+R)),view:K}}function x(O,R){const U=c.virtualScrollHorizontal===!0?"width":"height",q={["--q-virtual-scroll-item-"+U]:v.value+"px"};return[O==="tbody"?g.h(O,{class:"q-virtual-scroll__padding",key:"before",ref:b},[g.h("tr",[g.h("td",{style:{[U]:`${d.value}px`,...q},colspan:T.value})])]):g.h(O,{class:"q-virtual-scroll__padding",key:"before",ref:b,style:{[U]:`${d.value}px`,...q}}),g.h(O,{class:"q-virtual-scroll__content",key:"content",ref:S,tabindex:-1},R.flat()),O==="tbody"?g.h(O,{class:"q-virtual-scroll__padding",key:"after",ref:p},[g.h("tr",[g.h("td",{style:{[U]:`${h.value}px`,...q},colspan:T.value})])]):g.h(O,{class:"q-virtual-scroll__padding",key:"after",ref:p,style:{[U]:`${h.value}px`,...q}})]}function w(O){r!==O&&(c.onVirtualScroll!==void 0&&a("virtualScroll",{index:O,from:_.value.from,to:_.value.to-1,direction:O<r?"decrease":"increase",ref:s}),r=O)}y();const k=Hi(W,n.platform.is.ios===!0?120:35);g.onBeforeMount(()=>{y()});let E=!1;return g.onDeactivated(()=>{E=!0}),g.onActivated(()=>{if(E!==!0)return;const O=I();e!==void 0&&O!==void 0&&O!==null&&O.nodeType!==8?$o(O,e,c.virtualScrollHorizontal,n.lang.rtl):V(r)}),g.onBeforeUnmount(()=>{k.cancel()}),Object.assign(s,{scrollTo:V,reset:P,refresh:N}),{virtualScrollSliceRange:_,virtualScrollSliceSizeComputed:f,setVirtualScrollSize:y,onVirtualScrollEvt:k,localResetVirtualScroll:C,padVirtualScroll:x,scrollTo:V,reset:P,refresh:N}}const hu=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,pu=/[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u,mu=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,gu=/[a-z0-9_ -]$/i;function es(l){return function(t){if(t.type==="compositionend"||t.type==="change"){if(t.target.qComposing!==!0)return;t.target.qComposing=!1,l(t)}else t.type==="compositionupdate"&&t.target.qComposing!==!0&&typeof t.data=="string"&&(Et.is.firefox===!0?gu.test(t.data)===!1:hu.test(t.data)===!0||pu.test(t.data)===!0||mu.test(t.data)===!0)===!0&&(t.target.qComposing=!0)}}function ir(l,I){if(l===I)return!0;if(l!==null&&I!==null&&typeof l=="object"&&typeof I=="object"){if(l.constructor!==I.constructor)return!1;let t,v;if(l.constructor===Array){if(t=l.length,t!==I.length)return!1;for(v=t;v--!==0;)if(ir(l[v],I[v])!==!0)return!1;return!0}if(l.constructor===Map){if(l.size!==I.size)return!1;let c=l.entries();for(v=c.next();v.done!==!0;){if(I.has(v.value[0])!==!0)return!1;v=c.next()}for(c=l.entries(),v=c.next();v.done!==!0;){if(ir(v.value[1],I.get(v.value[0]))!==!0)return!1;v=c.next()}return!0}if(l.constructor===Set){if(l.size!==I.size)return!1;const c=l.entries();for(v=c.next();v.done!==!0;){if(I.has(v.value[0])!==!0)return!1;v=c.next()}return!0}if(l.buffer!=null&&l.buffer.constructor===ArrayBuffer){if(t=l.length,t!==I.length)return!1;for(v=t;v--!==0;)if(l[v]!==I[v])return!1;return!0}if(l.constructor===RegExp)return l.source===I.source&&l.flags===I.flags;if(l.valueOf!==Object.prototype.valueOf)return l.valueOf()===I.valueOf();if(l.toString!==Object.prototype.toString)return l.toString()===I.toString();const m=Object.keys(l).filter(c=>l[c]!==void 0);if(t=m.length,t!==Object.keys(I).filter(c=>I[c]!==void 0).length)return!1;for(v=t;v--!==0;){const c=m[v];if(ir(l[c],I[c])!==!0)return!1}return!0}return l!==l&&I!==I}function ts(l){return l!==null&&typeof l=="object"&&Array.isArray(l)!==!0}function Vn(l){return Object.prototype.toString.call(l)==="[object Date]"}function Ti(l){return typeof l=="number"&&isFinite(l)}const ea=l=>["add","add-unique","toggle"].includes(l),bu=".*+?^${}()|[]\\",vu=Object.keys(Xn);function di(l,I){if(typeof l=="function")return l;const t=l!==void 0?l:I;return v=>v!==null&&typeof v=="object"&&t in v?v[t]:v}const Jn=$e({name:"QSelect",inheritAttrs:!1,props:{...Mi,...Yn,...Xn,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],popupNoRouteDismiss:Boolean,useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:ea},mapOptions:Boolean,emitValue:Boolean,disableTabSelection:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{type:String,validator:l=>["default","menu","dialog"].includes(l),default:"default"},virtualScrollItemSize:Mi.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...to,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(l,{slots:I,emit:t}){const{proxy:v}=g.getCurrentInstance(),{$q:m}=v,c=g.ref(!1),a=g.ref(!1),s=g.ref(-1),n=g.ref(""),e=g.ref(!1),r=g.ref(!1);let u=null,o=null,i,d,h,f=null,b,p,S,_;const T=g.ref(null),D=g.ref(null),z=g.ref(null),P=g.ref(null),N=g.ref(null),V=Ma(l),W=es(he),L=g.computed(()=>Array.isArray(l.options)?l.options.length:0),A=g.computed(()=>l.virtualScrollItemSize===void 0?l.optionsDense===!0?24:48:l.virtualScrollItemSize),{virtualScrollSliceRange:M,virtualScrollSliceSizeComputed:C,localResetVirtualScroll:y,padVirtualScroll:x,onVirtualScrollEvt:w,scrollTo:k,setVirtualScrollSize:E}=$a({virtualScrollLength:L,getVirtualScrollTarget:nt,getVirtualScrollEl:He,virtualScrollItemSizeComputed:A}),O=ro(),R=g.computed(()=>{const se=l.mapOptions===!0&&l.multiple!==!0,je=l.modelValue!==void 0&&(l.modelValue!==null||se===!0)?l.multiple===!0&&Array.isArray(l.modelValue)?l.modelValue:[l.modelValue]:[];if(l.mapOptions===!0&&Array.isArray(l.options)===!0){const $=l.mapOptions===!0&&i!==void 0?i:[],ue=je.map(ve=>Fe(ve,$));return l.modelValue===null&&se===!0?ue.filter(ve=>ve!==null):ue}return je}),U=g.computed(()=>{const se={};return vu.forEach(je=>{const $=l[je];$!==void 0&&(se[je]=$)}),se}),q=g.computed(()=>l.optionsDark===null?O.isDark.value:l.optionsDark),K=g.computed(()=>$r(R.value)),j=g.computed(()=>{let se="q-field__input q-placeholder col";return l.hideSelected===!0||R.value.length===0?[se,l.inputClass]:(se+=" q-field__input--padding",l.inputClass===void 0?se:[se,l.inputClass])}),Y=g.computed(()=>(l.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(l.popupContentClass?" "+l.popupContentClass:"")),F=g.computed(()=>L.value===0),B=g.computed(()=>R.value.map(se=>de.value(se)).join(", ")),H=g.computed(()=>l.displayValue!==void 0?l.displayValue:B.value),X=g.computed(()=>l.optionsHtml===!0?()=>!0:se=>se?.html===!0),ee=g.computed(()=>l.displayValueHtml===!0||l.displayValue===void 0&&(l.optionsHtml===!0||R.value.some(X.value))),Q=g.computed(()=>O.focused.value===!0?l.tabindex:-1),Z=g.computed(()=>{const se={tabindex:l.tabindex,role:"combobox","aria-label":l.label,"aria-readonly":l.readonly===!0?"true":"false","aria-autocomplete":l.useInput===!0?"list":"none","aria-expanded":c.value===!0?"true":"false","aria-controls":`${O.targetUid.value}_lb`};return s.value>=0&&(se["aria-activedescendant"]=`${O.targetUid.value}_${s.value}`),se}),te=g.computed(()=>({id:`${O.targetUid.value}_lb`,role:"listbox","aria-multiselectable":l.multiple===!0?"true":"false"})),ie=g.computed(()=>R.value.map((se,je)=>({index:je,opt:se,html:X.value(se),selected:!0,removeAtIndex:Me,toggleOption:Ve,tabindex:Q.value}))),J=g.computed(()=>{if(L.value===0)return[];const{from:se,to:je}=M.value;return l.options.slice(se,je).map(($,ue)=>{const ve=me.value($)===!0,ye=ke($)===!0,Pe=se+ue,Se={clickable:!0,active:ye,activeClass:fe.value,manualFocus:!0,focused:!1,disable:ve,tabindex:-1,dense:l.optionsDense,dark:q.value,role:"option","aria-selected":ye===!0?"true":"false",id:`${O.targetUid.value}_${Pe}`,onClick:()=>{Ve($)}};return ve!==!0&&(s.value===Pe&&(Se.focused=!0),m.platform.is.desktop===!0&&(Se.onMousemove=()=>{c.value===!0&&Ne(Pe)})),{index:Pe,opt:$,html:X.value($),label:de.value($),selected:Se.active,focused:Se.focused,toggleOption:Ve,setOptionIndex:Ne,itemProps:Se}})}),oe=g.computed(()=>l.dropdownIcon!==void 0?l.dropdownIcon:m.iconSet.arrow.dropdown),ae=g.computed(()=>l.optionsCover===!1&&l.outlined!==!0&&l.standout!==!0&&l.borderless!==!0&&l.rounded!==!0),fe=g.computed(()=>l.optionsSelectedClass!==void 0?l.optionsSelectedClass:l.color!==void 0?`text-${l.color}`:""),ce=g.computed(()=>di(l.optionValue,"value")),de=g.computed(()=>di(l.optionLabel,"label")),me=g.computed(()=>di(l.optionDisable,"disable")),be=g.computed(()=>R.value.map(ce.value)),xe=g.computed(()=>{const se={onInput:he,onChange:W,onKeydown:et,onKeyup:Le,onKeypress:Ge,onFocus:De,onClick(je){d===!0&&Dt(je)}};return se.onCompositionstart=se.onCompositionupdate=se.onCompositionend=W,se});g.watch(R,se=>{i=se,l.useInput===!0&&l.fillInput===!0&&l.multiple!==!0&&O.innerLoading.value!==!0&&(a.value!==!0&&c.value!==!0||K.value!==!0)&&(h!==!0&&ze(),(a.value===!0||c.value===!0)&&Oe(""))},{immediate:!0}),g.watch(()=>l.fillInput,ze),g.watch(c,Je),g.watch(L,Ze);function Ie(se){return l.emitValue===!0?ce.value(se):se}function Ee(se){if(se!==-1&&se<R.value.length)if(l.multiple===!0){const je=l.modelValue.slice();t("remove",{index:se,value:je.splice(se,1)[0]}),t("update:modelValue",je)}else t("update:modelValue",null)}function Me(se){Ee(se),O.focus()}function We(se,je){const $=Ie(se);if(l.multiple!==!0){l.fillInput===!0&&Te(de.value(se),!0,!0),t("update:modelValue",$);return}if(R.value.length===0){t("add",{index:0,value:$}),t("update:modelValue",l.multiple===!0?[$]:$);return}if(je===!0&&ke(se)===!0||l.maxValues!==void 0&&l.modelValue.length>=l.maxValues)return;const ue=l.modelValue.slice();t("add",{index:ue.length,value:$}),ue.push($),t("update:modelValue",ue)}function Ve(se,je){if(O.editable.value!==!0||se===void 0||me.value(se)===!0)return;const $=ce.value(se);if(l.multiple!==!0){je!==!0&&(Te(l.fillInput===!0?de.value(se):"",!0,!0),Re()),D.value?.focus(),(R.value.length===0||ir(ce.value(R.value[0]),$)!==!0)&&t("update:modelValue",l.emitValue===!0?$:se);return}if((d!==!0||e.value===!0)&&O.focus(),De(),R.value.length===0){const ye=l.emitValue===!0?$:se;t("add",{index:0,value:ye}),t("update:modelValue",l.multiple===!0?[ye]:ye);return}const ue=l.modelValue.slice(),ve=be.value.findIndex(ye=>ir(ye,$));if(ve!==-1)t("remove",{index:ve,value:ue.splice(ve,1)[0]});else{if(l.maxValues!==void 0&&ue.length>=l.maxValues)return;const ye=l.emitValue===!0?$:se;t("add",{index:ue.length,value:ye}),ue.push(ye)}t("update:modelValue",ue)}function Ne(se){if(m.platform.is.desktop!==!0)return;const je=se!==-1&&se<L.value?se:-1;s.value!==je&&(s.value=je)}function qe(se=1,je){if(c.value===!0){let $=s.value;do $=Io($+se,-1,L.value-1);while($!==-1&&$!==s.value&&me.value(l.options[$])===!0);s.value!==$&&(Ne($),k($),je!==!0&&l.useInput===!0&&l.fillInput===!0&&we($>=0?de.value(l.options[$]):b,!0))}}function Fe(se,je){const $=ue=>ir(ce.value(ue),se);return l.options.find($)||je.find($)||se}function ke(se){const je=ce.value(se);return be.value.find($=>ir($,je))!==void 0}function De(se){l.useInput===!0&&D.value!==null&&(se===void 0||D.value===se.target&&se.target.value===B.value)&&D.value.select()}function Ue(se){ur(se,27)===!0&&c.value===!0&&(Dt(se),Re(),ze()),t("keyup",se)}function Le(se){const{value:je}=se.target;if(se.keyCode!==void 0){Ue(se);return}if(se.target.value="",u!==null&&(clearTimeout(u),u=null),o!==null&&(clearTimeout(o),o=null),ze(),typeof je=="string"&&je.length!==0){const $=je.toLocaleLowerCase(),ue=ye=>{const Pe=l.options.find(Se=>String(ye.value(Se)).toLocaleLowerCase()===$);return Pe===void 0?!1:(R.value.indexOf(Pe)===-1?Ve(Pe):Re(),!0)},ve=ye=>{ue(ce)!==!0&&ye!==!0&&ue(de)!==!0&&Oe(je,!0,()=>ve(!0))};ve()}else O.clearValue(se)}function Ge(se){t("keypress",se)}function et(se){if(t("keydown",se),qi(se)===!0)return;const je=n.value.length!==0&&(l.newValueMode!==void 0||l.onNewValue!==void 0),$=se.shiftKey!==!0&&l.disableTabSelection!==!0&&l.multiple!==!0&&(s.value!==-1||je===!0);if(se.keyCode===27){Bt(se);return}if(se.keyCode===9&&$===!1){ge();return}if(se.target===void 0||se.target.id!==O.targetUid.value||O.editable.value!==!0)return;if(se.keyCode===40&&O.innerLoading.value!==!0&&c.value===!1){St(se),Ce();return}if(se.keyCode===8&&(l.useChips===!0||l.clearable===!0)&&l.hideSelected!==!0&&n.value.length===0){l.multiple===!0&&Array.isArray(l.modelValue)===!0?Ee(l.modelValue.length-1):l.multiple!==!0&&l.modelValue!==null&&t("update:modelValue",null);return}(se.keyCode===35||se.keyCode===36)&&(typeof n.value!="string"||n.value.length===0)&&(St(se),s.value=-1,qe(se.keyCode===36?1:-1,l.multiple)),(se.keyCode===33||se.keyCode===34)&&C.value!==void 0&&(St(se),s.value=Math.max(-1,Math.min(L.value,s.value+(se.keyCode===33?-1:1)*C.value.view)),qe(se.keyCode===33?1:-1,l.multiple)),(se.keyCode===38||se.keyCode===40)&&(St(se),qe(se.keyCode===38?-1:1,l.multiple));const ue=L.value;if((S===void 0||_<Date.now())&&(S=""),ue>0&&l.useInput!==!0&&se.key!==void 0&&se.key.length===1&&se.altKey===!1&&se.ctrlKey===!1&&se.metaKey===!1&&(se.keyCode!==32||S.length!==0)){c.value!==!0&&Ce(se);const ve=se.key.toLocaleLowerCase(),ye=S.length===1&&S[0]===ve;_=Date.now()+1500,ye===!1&&(St(se),S+=ve);const Pe=new RegExp("^"+S.split("").map(Be=>bu.indexOf(Be)!==-1?"\\"+Be:Be).join(".*"),"i");let Se=s.value;if(ye===!0||Se<0||Pe.test(de.value(l.options[Se]))!==!0)do Se=Io(Se+1,-1,ue-1);while(Se!==s.value&&(me.value(l.options[Se])===!0||Pe.test(de.value(l.options[Se]))!==!0));s.value!==Se&&g.nextTick(()=>{Ne(Se),k(Se),Se>=0&&l.useInput===!0&&l.fillInput===!0&&we(de.value(l.options[Se]),!0)});return}if(!(se.keyCode!==13&&(se.keyCode!==32||l.useInput===!0||S!=="")&&(se.keyCode!==9||$===!1))){if(se.keyCode!==9&&St(se),s.value!==-1&&s.value<ue){Ve(l.options[s.value]);return}if(je===!0){const ve=(ye,Pe)=>{if(Pe){if(ea(Pe)!==!0)return}else Pe=l.newValueMode;if(Te("",l.multiple!==!0,!0),ye==null)return;(Pe==="toggle"?Ve:We)(ye,Pe==="add-unique"),l.multiple!==!0&&(D.value?.focus(),Re())};if(l.onNewValue!==void 0?t("newValue",n.value,ve):ve(n.value),l.multiple!==!0)return}c.value===!0?ge():O.innerLoading.value!==!0&&Ce()}}function He(){return d===!0?N.value:z.value!==null&&z.value.contentEl!==null?z.value.contentEl:void 0}function nt(){return He()}function tt(){return l.hideSelected===!0?[]:I["selected-item"]!==void 0?ie.value.map(se=>I["selected-item"](se)).slice():I.selected!==void 0?[].concat(I.selected()):l.useChips===!0?ie.value.map((se,je)=>g.h(io,{key:"option-"+je,removable:O.editable.value===!0&&me.value(se.opt)!==!0,dense:!0,textColor:l.color,tabindex:Q.value,onRemove(){se.removeAtIndex(je)}},()=>g.h("span",{class:"ellipsis",[se.html===!0?"innerHTML":"textContent"]:de.value(se.opt)}))):[g.h("span",{class:"ellipsis",[ee.value===!0?"innerHTML":"textContent"]:H.value})]}function Ye(){if(F.value===!0)return I["no-option"]!==void 0?I["no-option"]({inputValue:n.value}):void 0;const se=I.option!==void 0?I.option:$=>g.h(Ir,{key:$.index,...$.itemProps},()=>g.h(Or,()=>g.h(Ei,()=>g.h("span",{[$.html===!0?"innerHTML":"textContent"]:$.label}))));let je=x("div",J.value.map(se));return I["before-options"]!==void 0&&(je=I["before-options"]().concat(je)),It(I["after-options"],je)}function st(se,je){const $=je===!0?{...Z.value,...O.splitAttrs.attributes.value}:void 0,ue={ref:je===!0?D:void 0,key:"i_t",class:j.value,style:l.inputStyle,value:n.value!==void 0?n.value:"",type:"search",...$,id:je===!0?O.targetUid.value:void 0,maxlength:l.maxlength,autocomplete:l.autocomplete,"data-autofocus":se===!0||l.autofocus===!0||void 0,disabled:l.disable===!0,readonly:l.readonly===!0,...xe.value};return se!==!0&&d===!0&&(Array.isArray(ue.class)===!0?ue.class=[...ue.class,"no-pointer-events"]:ue.class+=" no-pointer-events"),g.h("input",ue)}function he(se){u!==null&&(clearTimeout(u),u=null),o!==null&&(clearTimeout(o),o=null),!(se&&se.target&&se.target.qComposing===!0)&&(we(se.target.value||""),h=!0,b=n.value,O.focused.value!==!0&&(d!==!0||e.value===!0)&&O.focus(),l.onFilter!==void 0&&(u=setTimeout(()=>{u=null,Oe(n.value)},l.inputDebounce)))}function we(se,je){n.value!==se&&(n.value=se,je===!0||l.inputDebounce===0||l.inputDebounce==="0"?t("inputValue",se):o=setTimeout(()=>{o=null,t("inputValue",se)},l.inputDebounce))}function Te(se,je,$){h=$!==!0,l.useInput===!0&&(we(se,!0),(je===!0||$!==!0)&&(b=se),je!==!0&&Oe(se))}function Oe(se,je,$){if(l.onFilter===void 0||je!==!0&&O.focused.value!==!0)return;O.innerLoading.value===!0?t("filterAbort"):(O.innerLoading.value=!0,r.value=!0),se!==""&&l.multiple!==!0&&R.value.length!==0&&h!==!0&&se===de.value(R.value[0])&&(se="");const ue=setTimeout(()=>{c.value===!0&&(c.value=!1)},10);f!==null&&clearTimeout(f),f=ue,t("filter",se,(ve,ye)=>{(je===!0||O.focused.value===!0)&&f===ue&&(clearTimeout(f),typeof ve=="function"&&ve(),r.value=!1,g.nextTick(()=>{O.innerLoading.value=!1,O.editable.value===!0&&(je===!0?c.value===!0&&Re():c.value===!0?Je(!0):c.value=!0),typeof ye=="function"&&g.nextTick(()=>{ye(v)}),typeof $=="function"&&g.nextTick(()=>{$(v)})}))},()=>{O.focused.value===!0&&f===ue&&(clearTimeout(f),O.innerLoading.value=!1,r.value=!1),c.value===!0&&(c.value=!1)})}function _e(){return g.h(on,{ref:z,class:Y.value,style:l.popupContentStyle,modelValue:c.value,fit:l.menuShrink!==!0,cover:l.optionsCover===!0&&F.value!==!0&&l.useInput!==!0,anchor:l.menuAnchor,self:l.menuSelf,offset:l.menuOffset,dark:q.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:l.popupNoRouteDismiss,square:ae.value,transitionShow:l.transitionShow,transitionHide:l.transitionHide,transitionDuration:l.transitionDuration,separateClosePopup:!0,...te.value,onScrollPassive:w,onBeforeShow:yt,onBeforeHide:Qe,onShow:Ke},Ye)}function Qe(se){ft(se),ge()}function Ke(){E()}function re(se){Dt(se),D.value?.focus(),e.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function G(se){Dt(se),g.nextTick(()=>{e.value=!1})}function ne(){const se=[g.h(nu,{class:`col-auto ${O.fieldClass.value}`,...U.value,for:O.targetUid.value,dark:q.value,square:!0,loading:r.value,itemAligned:!1,filled:!0,stackLabel:n.value.length!==0,...O.splitAttrs.listeners.value,onFocus:re,onBlur:G},{...I,rawControl:()=>O.getControl(!0),before:void 0,after:void 0})];return c.value===!0&&se.push(g.h("div",{ref:N,class:Y.value+" scroll",style:l.popupContentStyle,...te.value,onClick:Bt,onScrollPassive:w},Ye())),g.h(Gn,{ref:P,modelValue:a.value,position:l.useInput===!0?"top":void 0,transitionShow:p,transitionHide:l.transitionHide,transitionDuration:l.transitionDuration,noRouteDismiss:l.popupNoRouteDismiss,onBeforeShow:yt,onBeforeHide:le,onHide:pe,onShow:Ae},()=>g.h("div",{class:"q-select__dialog"+(q.value===!0?" q-select__dialog--dark q-dark":"")+(e.value===!0?" q-select__dialog--focused":"")},se))}function le(se){ft(se),P.value!==null&&P.value.__updateRefocusTarget(O.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),O.focused.value=!1}function pe(se){Re(),O.focused.value===!1&&t("blur",se),ze()}function Ae(){const se=document.activeElement;(se===null||se.id!==O.targetUid.value)&&D.value!==null&&D.value!==se&&D.value.focus(),E()}function ge(){a.value!==!0&&(s.value=-1,c.value===!0&&(c.value=!1),O.focused.value===!1&&(f!==null&&(clearTimeout(f),f=null),O.innerLoading.value===!0&&(t("filterAbort"),O.innerLoading.value=!1,r.value=!1)))}function Ce(se){O.editable.value===!0&&(d===!0?(O.onControlFocusin(se),a.value=!0,g.nextTick(()=>{O.focus()})):O.focus(),l.onFilter!==void 0?Oe(n.value):(F.value!==!0||I["no-option"]!==void 0)&&(c.value=!0))}function Re(){a.value=!1,ge()}function ze(){l.useInput===!0&&Te(l.multiple!==!0&&l.fillInput===!0&&R.value.length!==0&&de.value(R.value[0])||"",!0,!0)}function Je(se){let je=-1;if(se===!0){if(R.value.length!==0){const $=ce.value(R.value[0]);je=l.options.findIndex(ue=>ir(ce.value(ue),$))}y(je)}Ne(je)}function Ze(se,je){c.value===!0&&O.innerLoading.value===!1&&(y(-1,!0),g.nextTick(()=>{c.value===!0&&O.innerLoading.value===!1&&(se>je?y():Je(!0))}))}function rt(){a.value===!1&&z.value!==null&&z.value.updatePosition()}function yt(se){se!==void 0&&Dt(se),t("popupShow",se),O.hasPopupOpen=!0,O.onControlFocusin(se)}function ft(se){se!==void 0&&Dt(se),t("popupHide",se),O.hasPopupOpen=!1,O.onControlFocusout(se)}function kt(){d=m.platform.is.mobile!==!0&&l.behavior!=="dialog"?!1:l.behavior!=="menu"&&(l.useInput===!0?I["no-option"]!==void 0||l.onFilter!==void 0||F.value===!1:!0),p=m.platform.is.ios===!0&&d===!0&&l.useInput===!0?"fade":l.transitionShow}return g.onBeforeUpdate(kt),g.onUpdated(rt),kt(),g.onBeforeUnmount(()=>{u!==null&&clearTimeout(u),o!==null&&clearTimeout(o)}),Object.assign(v,{showPopup:Ce,hidePopup:Re,removeAtIndex:Ee,add:We,toggleOption:Ve,getOptionIndex:()=>s.value,setOptionIndex:Ne,moveOptionSelection:qe,filter:Oe,updateMenuPosition:rt,updateInputValue:Te,isOptionSelected:ke,getEmittingOptionValue:Ie,isOptionDisabled:(...se)=>me.value.apply(null,se)===!0,getOptionValue:(...se)=>ce.value.apply(null,se),getOptionLabel:(...se)=>de.value.apply(null,se)}),Object.assign(O,{innerValue:R,fieldClass:g.computed(()=>`q-select q-field--auto-height q-select--with${l.useInput!==!0?"out":""}-input q-select--with${l.useChips!==!0?"out":""}-chips q-select--${l.multiple===!0?"multiple":"single"}`),inputRef:T,targetRef:D,hasValue:K,showPopup:Ce,floatingLabel:g.computed(()=>l.hideSelected!==!0&&K.value===!0||typeof n.value=="number"||n.value.length!==0||$r(l.displayValue)),getControlChild:()=>{if(O.editable.value!==!1&&(a.value===!0||F.value!==!0||I["no-option"]!==void 0))return d===!0?ne():_e();O.hasPopupOpen===!0&&(O.hasPopupOpen=!1)},controlEvents:{onFocusin(se){O.onControlFocusin(se)},onFocusout(se){O.onControlFocusout(se,()=>{ze(),ge()})},onClick(se){if(Bt(se),d!==!0&&c.value===!0){ge(),D.value?.focus();return}Ce(se)}},getControl:se=>{const je=tt(),$=se===!0||a.value!==!0||d!==!0;if(l.useInput===!0)je.push(st(se,$));else if(O.editable.value===!0){const ve=$===!0?Z.value:void 0;je.push(g.h("input",{ref:$===!0?D:void 0,key:"d_t",class:"q-select__focus-target",id:$===!0?O.targetUid.value:void 0,value:H.value,readonly:!0,"data-autofocus":se===!0||l.autofocus===!0||void 0,...ve,onKeydown:et,onKeyup:Ue,onKeypress:Ge})),$===!0&&typeof l.autocomplete=="string"&&l.autocomplete.length!==0&&je.push(g.h("input",{class:"q-select__autocomplete-input",autocomplete:l.autocomplete,tabindex:-1,onKeyup:Le}))}if(V.value!==void 0&&l.disable!==!0&&be.value.length!==0){const ve=be.value.map(ye=>g.h("option",{value:ye,selected:!0}));je.push(g.h("select",{class:"hidden",name:V.value,multiple:l.multiple},ve))}const ue=l.useInput===!0||$!==!0?void 0:O.splitAttrs.attributes.value;return g.h("div",{class:"q-field__native row items-center",...ue,...O.splitAttrs.listeners.value},je)},getInnerAppend:()=>l.loading!==!0&&r.value!==!0&&l.hideDropdownIcon!==!0?[g.h(vt,{class:"q-select__dropdown-icon"+(c.value===!0?" rotate-180":""),name:oe.value})]:null}),no(O)}}),yu={class:"q-pa-none"},wu=g.defineComponent({__name:"CheckboxFilter",props:{options:{},label:{default:"Sélectionner les options"},modelValue:{default:()=>[]},scrollAreaHeight:{default:"200px"},scrollAreaWidth:{default:"250px"},dataCy:{default:"checkbox-filter"}},emits:["update:modelValue"],setup(l,{emit:I}){const t=l,v=I,m=g.ref(!1),c=g.ref(t.modelValue||[]),a=g.computed(()=>({height:t.scrollAreaHeight,width:t.scrollAreaWidth})),s=g.computed(()=>t.dataCy||"checkbox-filter");return g.watch(c,n=>{v("update:modelValue",n)}),g.watch(()=>t.modelValue,n=>{n&&(c.value=n)},{immediate:!0}),(n,e)=>(g.openBlock(),g.createElementBlock("div",yu,[g.createVNode(Jn,g.mergeProps({outlined:"",dense:"",label:t.label,class:["full-width","cursor-pointer"],"data-cy":s.value,"model-value":null,options:[],"hide-dropdown-icon":""},n.$attrs),{append:g.withCtx(()=>[g.createVNode(vt,{name:"arrow_drop_down",class:g.normalizeClass(["cursor-pointer smooth-rotate",{"rotate-180":m.value}])},null,8,["class"])]),default:g.withCtx(()=>[g.createVNode(on,{modelValue:m.value,"onUpdate:modelValue":e[1]||(e[1]=r=>m.value=r),anchor:"bottom left",self:"top left",offset:[0,8],"transition-show":"scale","transition-hide":"scale"},{default:g.withCtx(()=>[g.createVNode(rn,{class:"q-pa-sm"},{default:g.withCtx(()=>[g.createVNode(Rl,{style:g.normalizeStyle(a.value)},{default:g.withCtx(()=>[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(t.options,r=>(g.openBlock(),g.createBlock(lr,{key:r.value,modelValue:c.value,"onUpdate:modelValue":e[0]||(e[0]=u=>c.value=u),val:r,label:r.label,disable:r.disabled,color:"primary",class:"q-mb-sm q-ml-sm q-mr-sm","data-cy":`${s.value}-option-${r.label}`},null,8,["modelValue","val","label","disable","data-cy"]))),128))]),_:1},8,["style"])]),_:1})]),_:1},8,["modelValue"])]),_:1},16,["label","data-cy"])]))}}),xu=Yt(wu,[["__scopeId","data-v-0e12eb7b"]]),Su=g.defineComponent({__name:"SelectSearch",props:{options:{default:()=>[]},fetchOptions:{},label:{default:"Selectionner un option"},modelValue:{default:null}},emits:["update:modelValue"],setup(l,{emit:I}){const t=l,v=I,m=g.ref(),c=g.ref(t.modelValue??null),a=g.ref(""),s=g.ref(t.options??[]),n=g.ref(!1),e=g.ref(!0);g.watch(()=>t.options,f=>{s.value=f??[],r()},{immediate:!0}),g.watch(()=>t.modelValue,f=>{c.value=f,r(),n.value=!1});function r(){const f=s.value.find(b=>b.value===c.value);a.value=f?.label??""}function u(f){c.value=f,v("update:modelValue",f),r(),n.value=!1}function o(f){a.value=f,f===""&&(n.value=!0)}function i(){if(e.value){e.value=!1;return}c.value!==null&&!n.value?(a.value="",n.value=!0,m.value?.showPopup()):n.value&&(a.value="")}function d(){e.value=!0;const f=a.value.trim();if(f==="")n.value&&(c.value=null,v("update:modelValue",null));else{const b=s.value.find(p=>p.label.toLowerCase()===f.toLowerCase());b?(c.value=b.value,v("update:modelValue",b.value),a.value=b.label):r()}n.value=!1}function h(f,b,p){if(t.fetchOptions)t.fetchOptions(f).then(S=>{s.value=S,b(()=>{})}).catch(p).finally(()=>{});else{const S=t.options??[];s.value=S.filter(_=>_.label.toLowerCase().includes(f.toLowerCase())),b(()=>{})}}return(f,b)=>(g.openBlock(),g.createBlock(Jn,g.mergeProps({ref_key:"selectRef",ref:m,"model-value":c.value,"input-value":a.value,"use-input":"","fill-input":"","hide-selected":"","input-debounce":"300",label:f.label,options:s.value,dense:"",outlined:"",class:"full-width cursor-pointer"},f.$attrs,{"onUpdate:modelValue":u,"onUpdate:inputValue":o,onFocus:i,onBlur:d,onFilter:h}),null,16,["model-value","input-value","label","options"]))}}),ku=g.defineComponent({__name:"SelectYear",props:{modelValue:{},label:{default:"Sélectionner une année"},startYear:{default:2015},endYear:{default:void 0}},emits:["update:modelValue"],setup(l,{emit:I}){const t=l,v=I,m=g.computed(()=>{const s=t.startYear??new Date().getFullYear()-5,n=t.endYear??new Date().getFullYear(),e=[];for(let r=n;r>=s;r--)e.push({label:String(r),value:r});return e});function c(s){v("update:modelValue",s)}function a(){t.modelValue!==null&&v("update:modelValue",null)}return(s,n)=>(g.openBlock(),g.createBlock(Jn,g.mergeProps({"model-value":s.modelValue,options:m.value,"option-value":"value","option-label":"label",label:s.label,dense:"","emit-value":"",outlined:"",class:"full-width cursor-pointer"},s.$attrs,{"onUpdate:modelValue":c,onFocus:a}),null,16,["model-value","options","label"]))}}),rs=$e({name:"QAvatar",props:{...Vr,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(l,{slots:I}){const t=qr(l),v=g.computed(()=>"q-avatar"+(l.color?` bg-${l.color}`:"")+(l.textColor?` text-${l.textColor} q-chip--colored`:"")+(l.square===!0?" q-avatar--square":l.rounded===!0?" rounded-borders":"")),m=g.computed(()=>l.fontSize?{fontSize:l.fontSize}:null);return()=>{const c=l.icon!==void 0?[g.h(vt,{name:l.icon})]:void 0;return g.h("div",{class:v.value,style:t.value},[g.h("div",{class:"q-avatar__content row flex-center overflow-hidden",style:m.value},ga(I.default,c))])}}}),Cu=$e({name:"QSpace",setup(){const l=g.h("div",{class:"q-space"});return()=>l}}),_u=["ul","ol"],oo=$e({name:"QList",props:{...Ot,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(l,{slots:I}){const t=g.getCurrentInstance(),v=Ft(l,t.proxy.$q),m=g.computed(()=>_u.includes(l.tag)?null:"list"),c=g.computed(()=>"q-list"+(l.bordered===!0?" q-list--bordered":"")+(l.dense===!0?" q-list--dense":"")+(l.separator===!0?" q-list--separator":"")+(v.value===!0?" q-list--dark":"")+(l.padding===!0?" q-list--padding":""));return()=>g.h(l.tag,{class:c.value,role:m.value},gt(I.default))}}),ns=$e({name:"QToolbar",props:{inset:Boolean},setup(l,{slots:I}){const t=g.computed(()=>"q-toolbar row no-wrap items-center"+(l.inset===!0?" q-toolbar--inset":""));return()=>g.h("div",{class:t.value,role:"toolbar"},gt(I.default))}}),Au=$e({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(l,{slots:I,emit:t}){const{proxy:{$q:v}}=g.getCurrentInstance(),m=g.inject(an,Rt);if(m===Rt)return console.error("QHeader needs to be child of QLayout"),Rt;const c=g.ref(parseInt(l.heightHint,10)),a=g.ref(!0),s=g.computed(()=>l.reveal===!0||m.view.value.indexOf("H")!==-1||v.platform.is.ios&&m.isContainer.value===!0),n=g.computed(()=>{if(l.modelValue!==!0)return 0;if(s.value===!0)return a.value===!0?c.value:0;const p=c.value-m.scroll.value.position;return p>0?p:0}),e=g.computed(()=>l.modelValue!==!0||s.value===!0&&a.value!==!0),r=g.computed(()=>l.modelValue===!0&&e.value===!0&&l.reveal===!0),u=g.computed(()=>"q-header q-layout__section--marginal "+(s.value===!0?"fixed":"absolute")+"-top"+(l.bordered===!0?" q-header--bordered":"")+(e.value===!0?" q-header--hidden":"")+(l.modelValue!==!0?" q-layout--prevent-focus":"")),o=g.computed(()=>{const p=m.rows.value.top,S={};return p[0]==="l"&&m.left.space===!0&&(S[v.lang.rtl===!0?"right":"left"]=`${m.left.size}px`),p[2]==="r"&&m.right.space===!0&&(S[v.lang.rtl===!0?"left":"right"]=`${m.right.size}px`),S});function i(p,S){m.update("header",p,S)}function d(p,S){p.value!==S&&(p.value=S)}function h({height:p}){d(c,p),i("size",p)}function f(p){r.value===!0&&d(a,!0),t("focusin",p)}g.watch(()=>l.modelValue,p=>{i("space",p),d(a,!0),m.animate()}),g.watch(n,p=>{i("offset",p)}),g.watch(()=>l.reveal,p=>{p===!1&&d(a,l.modelValue)}),g.watch(a,p=>{m.animate(),t("reveal",p)}),g.watch(m.scroll,p=>{l.reveal===!0&&d(a,p.direction==="up"||p.position<=l.revealOffset||p.position-p.inflectionPoint<100)});const b={};return m.instances.header=b,l.modelValue===!0&&i("size",c.value),i("space",l.modelValue),i("offset",n.value),g.onBeforeUnmount(()=>{m.instances.header===b&&(m.instances.header=void 0,i("size",0),i("offset",0),i("space",!1))}),()=>{const p=ji(I.default,[]);return l.elevated===!0&&p.push(g.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),p.push(g.h(Pr,{debounce:0,onResize:h})),g.h("header",{class:u.value,style:o.value,onFocusin:f},p)}}});function ta(l){if(l===!1)return 0;if(l===!0||l===void 0)return 1;const I=parseInt(l,10);return isNaN(I)?0:I}const ao=Fi({name:"close-popup",beforeMount(l,{value:I}){const t={depth:ta(I),handler(v){t.depth!==0&&setTimeout(()=>{const m=Pl(l);m!==void 0&&Nl(m,v,t.depth)})},handlerKey(v){ur(v,13)===!0&&t.handler(v)}};l.__qclosepopup=t,l.addEventListener("click",t.handler),l.addEventListener("keyup",t.handlerKey)},updated(l,{value:I,oldValue:t}){I!==t&&(l.__qclosepopup.depth=ta(I))},beforeUnmount(l){const I=l.__qclosepopup;l.removeEventListener("click",I.handler),l.removeEventListener("keyup",I.handlerKey),delete l.__qclosepopup}}),Eu=["src","alt"],Mu={key:0,class:"project-environment-container row items-center q-mr-md"},Tu=g.defineComponent({__name:"SelfeeHeader",props:{logoSrc:{},logoAlt:{},logoTo:{},showProjectSwitch:{type:Boolean},currentProjectLabel:{},availableProjects:{},currentPath:{},environment:{}},emits:["project-change"],setup(l,{emit:I}){const t=l,v=t.logoAlt??"Logo",m=t.logoTo??"/",c=g.computed(()=>({width:"260px",height:"auto",borderRadius:"0"})),a=g.computed(()=>t.environment?t.environment.toUpperCase()!=="PROD":!1),s=g.computed(()=>`environment-badge--${t.environment?.toUpperCase()?.toLowerCase()}`),n=e=>t.currentPath?.startsWith(e);return(e,r)=>{const u=g.resolveComponent("router-link");return g.openBlock(),g.createBlock(Au,g.mergeProps({elevated:""},e.$attrs),{default:g.withCtx(()=>[g.createVNode(ns,null,{default:g.withCtx(()=>[g.createVNode(u,{to:g.unref(m),class:"q-mr-lg"},{default:g.withCtx(()=>[g.createVNode(rs,{class:"logo",style:g.normalizeStyle(c.value),"data-testid":"header-logo"},{default:g.withCtx(()=>[g.createElementVNode("img",{src:e.logoSrc,alt:g.unref(v)},null,8,Eu)]),_:1},8,["style"])]),_:1},8,["to"]),g.createVNode(Cu),e.showProjectSwitch||a.value?(g.openBlock(),g.createElementBlock("div",Mu,[a.value?(g.openBlock(),g.createElementBlock("div",{key:0,class:g.normalizeClass(["environment-badge",s.value]),"data-testid":"environment-badge"},g.toDisplayString(e.environment),3)):g.createCommentVNode("",!0),e.showProjectSwitch?(g.openBlock(),g.createBlock(ot,{key:1,dense:"",unelevated:"",color:"primary",label:e.currentProjectLabel,"data-testid":"project-switch-btn",class:"project-switch-btn q-mr-md bg-info"},{default:g.withCtx(()=>[g.createVNode(on,{anchor:"bottom right",self:"top right"},{default:g.withCtx(()=>[g.createVNode(oo,{dense:"",class:"project-menu"},{default:g.withCtx(()=>[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(e.availableProjects,o=>g.withDirectives((g.openBlock(),g.createBlock(Ir,{key:o.path,clickable:"",disable:n(o.path),onClick:i=>e.$emit("project-change",o.path)},{default:g.withCtx(()=>[g.createVNode(Or,{class:"q-mr-lg"},{default:g.withCtx(()=>[g.createVNode(Ei,null,{default:g.withCtx(()=>[g.createTextVNode(g.toDisplayString(o.label),1)]),_:2},1024),n(o.path)?(g.openBlock(),g.createBlock(Ei,{key:0,caption:""},{default:g.withCtx(()=>r[0]||(r[0]=[g.createTextVNode(" Actuel ")])),_:1,__:[0]})):g.createCommentVNode("",!0)]),_:2},1024)]),_:2},1032,["disable","onClick"])),[[ao]])),128))]),_:1})]),_:1})]),_:1},8,["label"])):g.createCommentVNode("",!0)])):g.createCommentVNode("",!0),g.renderSlot(e.$slots,"user-avatar",{},void 0,!0)]),_:3})]),_:3},16)}}}),Ru=Yt(Tu,[["__scopeId","data-v-a4df46a4"]]),Bu=$e({name:"QFooter",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(l,{slots:I,emit:t}){const{proxy:{$q:v}}=g.getCurrentInstance(),m=g.inject(an,Rt);if(m===Rt)return console.error("QFooter needs to be child of QLayout"),Rt;const c=g.ref(parseInt(l.heightHint,10)),a=g.ref(!0),s=g.ref(cr.value===!0||m.isContainer.value===!0?0:window.innerHeight),n=g.computed(()=>l.reveal===!0||m.view.value.indexOf("F")!==-1||v.platform.is.ios&&m.isContainer.value===!0),e=g.computed(()=>m.isContainer.value===!0?m.containerHeight.value:s.value),r=g.computed(()=>{if(l.modelValue!==!0)return 0;if(n.value===!0)return a.value===!0?c.value:0;const T=m.scroll.value.position+e.value+c.value-m.height.value;return T>0?T:0}),u=g.computed(()=>l.modelValue!==!0||n.value===!0&&a.value!==!0),o=g.computed(()=>l.modelValue===!0&&u.value===!0&&l.reveal===!0),i=g.computed(()=>"q-footer q-layout__section--marginal "+(n.value===!0?"fixed":"absolute")+"-bottom"+(l.bordered===!0?" q-footer--bordered":"")+(u.value===!0?" q-footer--hidden":"")+(l.modelValue!==!0?" q-layout--prevent-focus"+(n.value!==!0?" hidden":""):"")),d=g.computed(()=>{const T=m.rows.value.bottom,D={};return T[0]==="l"&&m.left.space===!0&&(D[v.lang.rtl===!0?"right":"left"]=`${m.left.size}px`),T[2]==="r"&&m.right.space===!0&&(D[v.lang.rtl===!0?"left":"right"]=`${m.right.size}px`),D});function h(T,D){m.update("footer",T,D)}function f(T,D){T.value!==D&&(T.value=D)}function b({height:T}){f(c,T),h("size",T)}function p(){if(l.reveal!==!0)return;const{direction:T,position:D,inflectionPoint:z}=m.scroll.value;f(a,T==="up"||D-z<100||m.height.value-e.value-D-c.value<300)}function S(T){o.value===!0&&f(a,!0),t("focusin",T)}g.watch(()=>l.modelValue,T=>{h("space",T),f(a,!0),m.animate()}),g.watch(r,T=>{h("offset",T)}),g.watch(()=>l.reveal,T=>{T===!1&&f(a,l.modelValue)}),g.watch(a,T=>{m.animate(),t("reveal",T)}),g.watch([c,m.scroll,m.height],p),g.watch(()=>v.screen.height,T=>{m.isContainer.value!==!0&&f(s,T)});const _={};return m.instances.footer=_,l.modelValue===!0&&h("size",c.value),h("space",l.modelValue),h("offset",r.value),g.onBeforeUnmount(()=>{m.instances.footer===_&&(m.instances.footer=void 0,h("size",0),h("offset",0),h("space",!1))}),()=>{const T=It(I.default,[g.h(Pr,{debounce:0,onResize:b})]);return l.elevated===!0&&T.push(g.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),g.h("footer",{class:i.value,style:d.value,onFocusin:S},T)}}}),Iu={class:"row justify-between"},Ou={class:"col-3 q-py-md flex justify-center"},Fu={class:"col-3 q-py-md flex justify-center"},ju={class:"col-3 q-py-md flex justify-center"},Du=g.defineComponent({__name:"SelfeeFooter",props:{frontVersion:{},backVersion:{},platform:{}},setup(l){return(I,t)=>(g.openBlock(),g.createBlock(Bu,g.mergeProps({elevated:""},I.$attrs),{default:g.withCtx(()=>[g.createElementVNode("div",Iu,[g.createElementVNode("div",Ou," Front: "+g.toDisplayString(I.frontVersion),1),g.createElementVNode("div",Fu," Back: "+g.toDisplayString(I.backVersion),1),g.createElementVNode("div",ju," Platform: "+g.toDisplayString(I.platform),1)])]),_:1},16))}}),Pu={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},hi={xs:2,sm:4,md:8,lg:16,xl:24},Gr=$e({name:"QSeparator",props:{...Ot,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(l){const I=g.getCurrentInstance(),t=Ft(l,I.proxy.$q),v=g.computed(()=>l.vertical===!0?"vertical":"horizontal"),m=g.computed(()=>` q-separator--${v.value}`),c=g.computed(()=>l.inset!==!1?`${m.value}-${Pu[l.inset]}`:""),a=g.computed(()=>`q-separator${m.value}${c.value}`+(l.color!==void 0?` bg-${l.color}`:"")+(t.value===!0?" q-separator--dark":"")),s=g.computed(()=>{const n={};if(l.size!==void 0&&(n[l.vertical===!0?"width":"height"]=l.size),l.spaced!==!1){const e=l.spaced===!0?`${hi.md}px`:l.spaced in hi?`${hi[l.spaced]}px`:l.spaced,r=l.vertical===!0?["Left","Right"]:["Top","Bottom"];n[`margin${r[0]}`]=n[`margin${r[1]}`]=e}return n});return()=>g.h("hr",{class:a.value,style:s.value,"aria-orientation":v.value})}}),Nu=$e({name:"QToggle",props:{...Ta,icon:String,iconColor:String},emits:Ra,setup(l){function I(t,v){const m=g.computed(()=>(t.value===!0?l.checkedIcon:v.value===!0?l.indeterminateIcon:l.uncheckedIcon)||l.icon),c=g.computed(()=>t.value===!0?l.iconColor:null);return()=>[g.h("div",{class:"q-toggle__track"}),g.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},m.value!==void 0?[g.h(vt,{name:m.value,color:c.value})]:void 0)]}return Ba("toggle",I)}}),Lu={class:"text-h6 text-primary","data-testid":"avatar-initial"},Vu={class:"text-weight-bold"},qu={class:"row items-center q-gutter-sm"},zu={class:"version-info"},Uu={class:"text-caption"},Wu={class:"text-caption"},Hu={class:"text-caption"},Yu=g.defineComponent({__name:"UserAvatar",props:{username:{},onLogout:{},logoutLabel:{default:"Déconnexion"},frontVersion:{default:"N/A"},backVersion:{default:"N/A"},platform:{default:"N/A"},showVersionInfo:{type:Boolean,default:!0},showFilterToggle:{type:Boolean,default:!1},persistFilters:{type:Boolean,default:!1}},emits:["toggle-filter-persistence"],setup(l,{emit:I}){const t=l,v=g.computed(()=>t.username?.charAt(0).toUpperCase()??"");return(m,c)=>(g.openBlock(),g.createElementBlock("div",null,[g.createVNode(rs,{class:"cursor-pointer",size:"40px",color:"white","data-cy":"cy-avatar","data-testid":"cy-avatar"},{default:g.withCtx(()=>[g.createElementVNode("span",Lu,g.toDisplayString(v.value),1),g.createVNode(on,{"transition-show":"flip-right","transition-hide":"flip-left",class:"user-avatar-menu"},{default:g.withCtx(()=>[g.createVNode(oo,{class:"user-menu-list"},{default:g.withCtx(()=>[g.createVNode(Ir,{class:"user-info-section"},{default:g.withCtx(()=>[g.createVNode(Or,null,{default:g.withCtx(()=>[g.createElementVNode("div",Vu,g.toDisplayString(m.username),1)]),_:1})]),_:1}),g.createVNode(Gr),m.showFilterToggle?(g.openBlock(),g.createBlock(Ir,{key:0,class:"filter-toggle-section"},{default:g.withCtx(()=>[g.createVNode(Or,null,{default:g.withCtx(()=>[g.createElementVNode("div",qu,[c[1]||(c[1]=g.createElementVNode("span",{class:"text-caption"},"Filtres persistants",-1)),g.createVNode(Nu,{"model-value":m.persistFilters,"onUpdate:modelValue":c[0]||(c[0]=a=>m.$emit("toggle-filter-persistence",a)),size:"sm","data-cy":"filter-persistence-toggle"},null,8,["model-value"])])]),_:1})]),_:1})):g.createCommentVNode("",!0),m.showFilterToggle?(g.openBlock(),g.createBlock(Gr,{key:1})):g.createCommentVNode("",!0),m.showVersionInfo?(g.openBlock(),g.createBlock(Ir,{key:2,class:"version-info-section"},{default:g.withCtx(()=>[g.createVNode(Or,null,{default:g.withCtx(()=>[g.createElementVNode("div",zu,[c[2]||(c[2]=g.createElementVNode("div",{class:"text-caption text-grey-7"},"Informations de version",-1)),g.createElementVNode("div",Uu,"Front: "+g.toDisplayString(m.frontVersion),1),g.createElementVNode("div",Wu,"Back: "+g.toDisplayString(m.backVersion),1),g.createElementVNode("div",Hu,"Plateforme: "+g.toDisplayString(m.platform),1)])]),_:1})]),_:1})):g.createCommentVNode("",!0),m.showVersionInfo?(g.openBlock(),g.createBlock(Gr,{key:3})):g.createCommentVNode("",!0),g.createVNode(Ir,{clickable:"",class:"logout-section","data-cy":"cy-logout-button","data-testid":"cy-logout-button",onClick:m.onLogout},{default:g.withCtx(()=>[g.createVNode(Or,null,{default:g.withCtx(()=>[g.createElementVNode("div",null,g.toDisplayString(m.logoutLabel),1)]),_:1})]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]))}}),Qu=Yt(Yu,[["__scopeId","data-v-d9b256cf"]]),Ku=$e({name:"QPageContainer",setup(l,{slots:I}){const{proxy:{$q:t}}=g.getCurrentInstance(),v=g.inject(an,Rt);if(v===Rt)return console.error("QPageContainer needs to be child of QLayout"),Rt;g.provide(Ka,!0);const m=g.computed(()=>{const c={};return v.header.space===!0&&(c.paddingTop=`${v.header.size}px`),v.right.space===!0&&(c[`padding${t.lang.rtl===!0?"Left":"Right"}`]=`${v.right.size}px`),v.footer.space===!0&&(c.paddingBottom=`${v.footer.size}px`),v.left.space===!0&&(c[`padding${t.lang.rtl===!0?"Right":"Left"}`]=`${v.left.size}px`),c});return()=>g.h("div",{class:"q-page-container",style:m.value},gt(I.default))}}),Xu=$e({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:l=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(l.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(l,{slots:I,emit:t}){const{proxy:{$q:v}}=g.getCurrentInstance(),m=g.ref(null),c=g.ref(v.screen.height),a=g.ref(l.container===!0?0:v.screen.width),s=g.ref({position:0,direction:"down",inflectionPoint:0}),n=g.ref(0),e=g.ref(cr.value===!0?0:Mn()),r=g.computed(()=>"q-layout q-layout--"+(l.container===!0?"containerized":"standard")),u=g.computed(()=>l.container===!1?{minHeight:v.screen.height+"px"}:null),o=g.computed(()=>e.value!==0?{[v.lang.rtl===!0?"left":"right"]:`${e.value}px`}:null),i=g.computed(()=>e.value!==0?{[v.lang.rtl===!0?"right":"left"]:0,[v.lang.rtl===!0?"left":"right"]:`-${e.value}px`,width:`calc(100% + ${e.value}px)`}:null);function d(_){if(l.container===!0||document.qScrollPrevented!==!0){const T={position:_.position.top,direction:_.direction,directionChanged:_.directionChanged,inflectionPoint:_.inflectionPoint.top,delta:_.delta.top};s.value=T,l.onScroll!==void 0&&t("scroll",T)}}function h(_){const{height:T,width:D}=_;let z=!1;c.value!==T&&(z=!0,c.value=T,l.onScrollHeight!==void 0&&t("scrollHeight",T),b()),a.value!==D&&(z=!0,a.value=D),z===!0&&l.onResize!==void 0&&t("resize",_)}function f({height:_}){n.value!==_&&(n.value=_,b())}function b(){if(l.container===!0){const _=c.value>n.value?Mn():0;e.value!==_&&(e.value=_)}}let p=null;const S={instances:{},view:g.computed(()=>l.view),isContainer:g.computed(()=>l.container),rootRef:m,height:c,containerHeight:n,scrollbarWidth:e,totalWidth:g.computed(()=>a.value+e.value),rows:g.computed(()=>{const _=l.view.toLowerCase().split(" ");return{top:_[0].split(""),middle:_[1].split(""),bottom:_[2].split("")}}),header:g.reactive({size:0,offset:0,space:!1}),right:g.reactive({size:300,offset:0,space:!1}),footer:g.reactive({size:0,offset:0,space:!1}),left:g.reactive({size:300,offset:0,space:!1}),scroll:s,animate(){p!==null?clearTimeout(p):document.body.classList.add("q-body--layout-animate"),p=setTimeout(()=>{p=null,document.body.classList.remove("q-body--layout-animate")},155)},update(_,T,D){S[_][T]=D}};if(g.provide(an,S),Mn()>0){let _=function(){z=null,P.classList.remove("hide-scrollbar")},T=function(){if(z===null){if(P.scrollHeight>v.screen.height)return;P.classList.add("hide-scrollbar")}else clearTimeout(z);z=setTimeout(_,300)},D=function(N){z!==null&&N==="remove"&&(clearTimeout(z),_()),window[`${N}EventListener`]("resize",T)},z=null;const P=document.body;g.watch(()=>l.container!==!0?"add":"remove",D),l.container!==!0&&D("add"),g.onUnmounted(()=>{D("remove")})}return()=>{const _=It(I.default,[g.h(Da,{onScroll:d}),g.h(Pr,{onResize:h})]),T=g.h("div",{class:r.value,style:u.value,ref:l.container===!0?void 0:m,tabindex:-1},_);return l.container===!0?g.h("div",{class:"q-layout-container overflow-hidden",ref:m},[g.h(Pr,{onResize:f}),g.h("div",{class:"absolute-full",style:o.value},[g.h("div",{class:"scroll",style:i.value},[T])])]):T}}}),so=g.defineComponent({name:"Layout",__name:"Layout",props:{view:{default:"HHh Lpr Fff"},layoutClass:{default:"bg-white"},pageContainerClass:{default:""}},setup(l){return(I,t)=>(g.openBlock(),g.createBlock(Xu,{view:I.view,class:g.normalizeClass(I.layoutClass),style:{minHeight:"auto !important"}},{default:g.withCtx(()=>[g.renderSlot(I.$slots,"header"),g.createVNode(Ku,{class:g.normalizeClass(I.pageContainerClass),style:{paddingBottom:"0 !important"}},{default:g.withCtx(()=>[g.renderSlot(I.$slots,"default")]),_:3},8,["class"]),g.renderSlot(I.$slots,"footer")]),_:3},8,["view","class"]))}});function Gu(){let l=Object.create(null);return{getCache:(I,t)=>l[I]===void 0?l[I]=typeof t=="function"?t():t:l[I],setCache(I,t){l[I]=t},hasCache(I){return Object.hasOwnProperty.call(l,I)},clearCache(I){I!==void 0?delete l[I]:l=Object.create(null)}}}const or=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178];function Ju(l,I,t){return Object.prototype.toString.call(l)==="[object Date]"&&(t=l.getDate(),I=l.getMonth()+1,l=l.getFullYear()),tc(lo(l,I,t))}function ra(l,I,t){return os(ec(l,I,t))}function Zu(l){return $u(l)===0}function Tn(l,I){return I<=6?31:I<=11||Zu(l)?30:29}function $u(l){const I=or.length;let t=or[0],v,m,c,a,s;if(l<t||l>=or[I-1])throw new Error("Invalid Jalaali year "+l);for(s=1;s<I&&(v=or[s],m=v-t,!(l<v));s+=1)t=v;return a=l-t,m-a<6&&(a=a-m+wt(m+4,33)*33),c=Pt(Pt(a+1,33)-1,4),c===-1&&(c=4),c}function is(l,I){const t=or.length,v=l+621;let m=-14,c=or[0],a,s,n,e,r;if(l<c||l>=or[t-1])throw new Error("Invalid Jalaali year "+l);for(r=1;r<t&&(a=or[r],s=a-c,!(l<a));r+=1)m=m+wt(s,33)*8+wt(Pt(s,33),4),c=a;e=l-c,m=m+wt(e,33)*8+wt(Pt(e,33)+3,4),Pt(s,33)===4&&s-e===4&&(m+=1);const u=wt(v,4)-wt((wt(v,100)+1)*3,4)-150,o=20+m-u;return I||(s-e<6&&(e=e-s+wt(s+4,33)*33),n=Pt(Pt(e+1,33)-1,4),n===-1&&(n=4)),{leap:n,gy:v,march:o}}function ec(l,I,t){const v=is(l,!0);return lo(v.gy,3,v.march)+(I-1)*31-wt(I,7)*(I-7)+t-1}function tc(l){const I=os(l).gy;let t=I-621,v,m,c;const a=is(t,!1),s=lo(I,3,a.march);if(c=l-s,c>=0){if(c<=185)return m=1+wt(c,31),v=Pt(c,31)+1,{jy:t,jm:m,jd:v};c-=186}else t-=1,c+=179,a.leap===1&&(c+=1);return m=7+wt(c,30),v=Pt(c,30)+1,{jy:t,jm:m,jd:v}}function lo(l,I,t){let v=wt((l+wt(I-8,6)+100100)*1461,4)+wt(153*Pt(I+9,12)+2,5)+t-34840408;return v=v-wt(wt(l+100100+wt(I-8,6),100)*3,4)+752,v}function os(l){let I=4*l+139361631;I=I+wt(wt(4*l+183187720,146097)*3,4)*4-3908;const t=wt(Pt(I,1461),4)*5+308,v=wt(Pt(t,153),5)+1,m=Pt(wt(t,153),12)+1;return{gy:wt(I,1461)-100100+wt(8-m,6),gm:m,gd:v}}function wt(l,I){return~~(l/I)}function Pt(l,I){return l-~~(l/I)*I}const rc=["gregorian","persian"],na={mask:{type:String},locale:Object,calendar:{type:String,validator:l=>rc.includes(l),default:"gregorian"},landscape:Boolean,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,readonly:Boolean,disable:Boolean},nc=["update:modelValue"];function tr(l){return l.year+"/"+bt(l.month)+"/"+bt(l.day)}function ic(l,I){const t=g.computed(()=>l.disable!==!0&&l.readonly!==!0),v=g.computed(()=>t.value===!0?0:-1),m=g.computed(()=>{const s=[];return l.color!==void 0&&s.push(`bg-${l.color}`),l.textColor!==void 0&&s.push(`text-${l.textColor}`),s.join(" ")});function c(){return l.locale!==void 0?{...I.lang.date,...l.locale}:I.lang.date}function a(s){const n=new Date,e=s===!0?null:0;if(l.calendar==="persian"){const r=Ju(n);return{year:r.jy,month:r.jm,day:r.jd}}return{year:n.getFullYear(),month:n.getMonth()+1,day:n.getDate(),hour:e,minute:e,second:e,millisecond:e}}return{editable:t,tabindex:v,headerClass:m,getLocale:c,getCurrentDate:a}}const Ri={isoName:"en-US",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh",expand:l=>l?`Expand "${l}"`:"Expand",collapse:l=>l?`Collapse "${l}"`:"Collapse"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1,pluralDay:"days",prevMonth:"Previous month",nextMonth:"Next month",prevYear:"Previous year",nextYear:"Next year",today:"Today",prevRangeYears:l=>`Previous ${l} years`,nextRangeYears:l=>`Next ${l} years`},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:l=>l===1?"1 record selected.":(l===0?"No":l)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(l,I,t)=>l+"-"+I+" of "+t,columns:"Columns"},pagination:{first:"First page",prev:"Previous page",next:"Next page",last:"Last page"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font",viewSource:"View Source"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}};function ia(){const l=Array.isArray(navigator.languages)===!0&&navigator.languages.length!==0?navigator.languages[0]:navigator.language;if(typeof l=="string")return l.split(/[-_]/).map((I,t)=>t===0?I.toLowerCase():t>1||I.length<4?I.toUpperCase():I[0].toUpperCase()+I.slice(1).toLowerCase()).join("-")}const nr=Is({__qLang:{}},{getLocale:ia,set(l=Ri,I){const t={...l,rtl:l.rtl===!0,getLocale:ia};{if(t.set=nr.set,nr.__langConfig===void 0||nr.__langConfig.noHtmlAttrs!==!0){const v=document.documentElement;v.setAttribute("dir",t.rtl===!0?"rtl":"ltr"),v.setAttribute("lang",t.isoName)}Object.assign(nr.__qLang,t)}},install({$q:l,lang:I,ssrContext:t}){l.lang=nr.__qLang,nr.__langConfig=l.config.lang,this.__installed===!0?I!==void 0&&this.set(I):(this.props=new Proxy(this.__qLang,{get(){return Reflect.get(...arguments)},ownKeys(v){return Reflect.ownKeys(v).filter(m=>m!=="set"&&m!=="getLocale")}}),this.set(I||Ri))}}),as=864e5,oc=36e5,Bi=6e4,ss="YYYY-MM-DDTHH:mm:ss.SSSZ",ac=/\[((?:[^\]\\]|\\]|\\)*)\]|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]/g,sc=/(\[[^\]]*\])|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]|([.*+:?^,\s${}()|\\]+)/g,pi={};function lc(l,I){const t="("+I.days.join("|")+")",v=l+t;if(pi[v]!==void 0)return pi[v];const m="("+I.daysShort.join("|")+")",c="("+I.months.join("|")+")",a="("+I.monthsShort.join("|")+")",s={};let n=0;const e=l.replace(sc,u=>{switch(n++,u){case"YY":return s.YY=n,"(-?\\d{1,2})";case"YYYY":return s.YYYY=n,"(-?\\d{1,4})";case"M":return s.M=n,"(\\d{1,2})";case"Mo":return s.M=n++,"(\\d{1,2}(st|nd|rd|th))";case"MM":return s.M=n,"(\\d{2})";case"MMM":return s.MMM=n,a;case"MMMM":return s.MMMM=n,c;case"D":return s.D=n,"(\\d{1,2})";case"Do":return s.D=n++,"(\\d{1,2}(st|nd|rd|th))";case"DD":return s.D=n,"(\\d{2})";case"H":return s.H=n,"(\\d{1,2})";case"HH":return s.H=n,"(\\d{2})";case"h":return s.h=n,"(\\d{1,2})";case"hh":return s.h=n,"(\\d{2})";case"m":return s.m=n,"(\\d{1,2})";case"mm":return s.m=n,"(\\d{2})";case"s":return s.s=n,"(\\d{1,2})";case"ss":return s.s=n,"(\\d{2})";case"S":return s.S=n,"(\\d{1})";case"SS":return s.S=n,"(\\d{2})";case"SSS":return s.S=n,"(\\d{3})";case"A":return s.A=n,"(AM|PM)";case"a":return s.a=n,"(am|pm)";case"aa":return s.aa=n,"(a\\.m\\.|p\\.m\\.)";case"ddd":return m;case"dddd":return t;case"Q":case"d":case"E":return"(\\d{1})";case"do":return n++,"(\\d{1}(st|nd|rd|th))";case"Qo":return"(1st|2nd|3rd|4th)";case"DDD":case"DDDD":return"(\\d{1,3})";case"DDDo":return n++,"(\\d{1,3}(st|nd|rd|th))";case"w":return"(\\d{1,2})";case"wo":return n++,"(\\d{1,2}(st|nd|rd|th))";case"ww":return"(\\d{2})";case"Z":return s.Z=n,"(Z|[+-]\\d{2}:\\d{2})";case"ZZ":return s.ZZ=n,"(Z|[+-]\\d{2}\\d{2})";case"X":return s.X=n,"(-?\\d+)";case"x":return s.x=n,"(-?\\d{4,})";default:return n--,u[0]==="["&&(u=u.substring(1,u.length-1)),u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}),r={map:s,regex:new RegExp("^"+e)};return pi[v]=r,r}function ls(l,I){return l!==void 0?l:I!==void 0?I.date:Ri.date}function oa(l,I=""){const t=l>0?"-":"+",v=Math.abs(l),m=Math.floor(v/60),c=v%60;return t+bt(m)+I+bt(c)}function uc(l,I,t){let v=l.getFullYear(),m=l.getMonth();const c=l.getDate();return I.year!==void 0&&(v+=t*I.year,delete I.year),I.month!==void 0&&(m+=t*I.month,delete I.month),l.setDate(1),l.setMonth(2),l.setFullYear(v),l.setMonth(m),l.setDate(Math.min(c,fo(l))),I.date!==void 0&&(l.setDate(l.getDate()+t*I.date),delete I.date),l}function cc(l,I,t){const v=I.year!==void 0?I.year:l[`get${t}FullYear`](),m=I.month!==void 0?I.month-1:l[`get${t}Month`](),c=new Date(v,m+1,0).getDate(),a=Math.min(c,I.date!==void 0?I.date:l[`get${t}Date`]());return l[`set${t}Date`](1),l[`set${t}Month`](2),l[`set${t}FullYear`](v),l[`set${t}Month`](m),l[`set${t}Date`](a),delete I.year,delete I.month,delete I.date,l}function uo(l,I,t){const v=us(I),m=new Date(l),c=v.year!==void 0||v.month!==void 0||v.date!==void 0?uc(m,v,t):m;for(const a in v){const s=Tl(a);c[`set${s}`](c[`get${s}`]()+t*v[a])}return c}function us(l){const I={...l};return l.years!==void 0&&(I.year=l.years,delete I.years),l.months!==void 0&&(I.month=l.months,delete I.months),l.days!==void 0&&(I.date=l.days,delete I.days),l.day!==void 0&&(I.date=l.day,delete I.day),l.hour!==void 0&&(I.hours=l.hour,delete I.hour),l.minute!==void 0&&(I.minutes=l.minute,delete I.minute),l.second!==void 0&&(I.seconds=l.second,delete I.second),l.millisecond!==void 0&&(I.milliseconds=l.millisecond,delete I.millisecond),I}function cs(l,I,t){const v=us(I),m=t===!0?"UTC":"",c=new Date(l),a=v.year!==void 0||v.month!==void 0||v.date!==void 0?cc(c,v,m):c;for(const s in v){const n=s.charAt(0).toUpperCase()+s.slice(1);a[`set${m}${n}`](v[s])}return a}function fc(l,I,t){const v=fs(l,I,t),m=new Date(v.year,v.month===null?null:v.month-1,v.day===null?1:v.day,v.hour,v.minute,v.second,v.millisecond),c=m.getTimezoneOffset();return v.timezoneOffset===null||v.timezoneOffset===c?m:uo(m,{minutes:v.timezoneOffset-c},1)}function fs(l,I,t,v,m){const c={year:null,month:null,day:null,hour:null,minute:null,second:null,millisecond:null,timezoneOffset:null,dateHash:null,timeHash:null};if(m!==void 0&&Object.assign(c,m),l==null||l===""||typeof l!="string")return c;I===void 0&&(I=ss);const a=ls(t,nr.props),s=a.months,n=a.monthsShort,{regex:e,map:r}=lc(I,a),u=l.match(e);if(u===null)return c;let o="";if(r.X!==void 0||r.x!==void 0){const i=parseInt(u[r.X!==void 0?r.X:r.x],10);if(isNaN(i)===!0||i<0)return c;const d=new Date(i*(r.X!==void 0?1e3:1));c.year=d.getFullYear(),c.month=d.getMonth()+1,c.day=d.getDate(),c.hour=d.getHours(),c.minute=d.getMinutes(),c.second=d.getSeconds(),c.millisecond=d.getMilliseconds()}else{if(r.YYYY!==void 0)c.year=parseInt(u[r.YYYY],10);else if(r.YY!==void 0){const i=parseInt(u[r.YY],10);c.year=i<0?i:2e3+i}if(r.M!==void 0){if(c.month=parseInt(u[r.M],10),c.month<1||c.month>12)return c}else r.MMM!==void 0?c.month=n.indexOf(u[r.MMM])+1:r.MMMM!==void 0&&(c.month=s.indexOf(u[r.MMMM])+1);if(r.D!==void 0){if(c.day=parseInt(u[r.D],10),c.year===null||c.month===null||c.day<1)return c;const i=v!=="persian"?new Date(c.year,c.month,0).getDate():Tn(c.year,c.month);if(c.day>i)return c}r.H!==void 0?c.hour=parseInt(u[r.H],10)%24:r.h!==void 0&&(c.hour=parseInt(u[r.h],10)%12,(r.A&&u[r.A]==="PM"||r.a&&u[r.a]==="pm"||r.aa&&u[r.aa]==="p.m.")&&(c.hour+=12),c.hour=c.hour%24),r.m!==void 0&&(c.minute=parseInt(u[r.m],10)%60),r.s!==void 0&&(c.second=parseInt(u[r.s],10)%60),r.S!==void 0&&(c.millisecond=parseInt(u[r.S],10)*10**(3-u[r.S].length)),(r.Z!==void 0||r.ZZ!==void 0)&&(o=r.Z!==void 0?u[r.Z].replace(":",""):u[r.ZZ],c.timezoneOffset=(o[0]==="+"?-1:1)*(60*o.slice(1,3)+1*o.slice(3,5)))}return c.dateHash=bt(c.year,4)+"/"+bt(c.month)+"/"+bt(c.day),c.timeHash=bt(c.hour)+":"+bt(c.minute)+":"+bt(c.second)+o,c}function dc(l){return typeof l=="number"?!0:isNaN(Date.parse(l))===!1}function hc(l,I){return cs(new Date,l,I)}function pc(l){const I=new Date(l).getDay();return I===0?7:I}function Rn(l){const I=new Date(l.getFullYear(),l.getMonth(),l.getDate());I.setDate(I.getDate()-(I.getDay()+6)%7+3);const t=new Date(I.getFullYear(),0,4);t.setDate(t.getDate()-(t.getDay()+6)%7+3);const v=I.getTimezoneOffset()-t.getTimezoneOffset();I.setHours(I.getHours()-v);const m=(I-t)/(as*7);return 1+Math.floor(m)}function mc(l){return l.getFullYear()*1e4+l.getMonth()*100+l.getDate()}function mi(l,I){const t=new Date(l);return I===!0?mc(t):t.getTime()}function gc(l,I,t,v={}){const m=mi(I,v.onlyDate),c=mi(t,v.onlyDate),a=mi(l,v.onlyDate);return(a>m||v.inclusiveFrom===!0&&a===m)&&(a<c||v.inclusiveTo===!0&&a===c)}function bc(l,I){return uo(l,I,1)}function vc(l,I){return uo(l,I,-1)}function Ht(l,I,t){const v=new Date(l),m=`set${t===!0?"UTC":""}`;switch(I){case"year":case"years":v[`${m}Month`](0);case"month":case"months":v[`${m}Date`](1);case"day":case"days":case"date":v[`${m}Hours`](0);case"hour":case"hours":v[`${m}Minutes`](0);case"minute":case"minutes":v[`${m}Seconds`](0);case"second":case"seconds":v[`${m}Milliseconds`](0)}return v}function yc(l,I,t){const v=new Date(l),m=`set${t===!0?"UTC":""}`;switch(I){case"year":case"years":v[`${m}Month`](11);case"month":case"months":v[`${m}Date`](fo(v));case"day":case"days":case"date":v[`${m}Hours`](23);case"hour":case"hours":v[`${m}Minutes`](59);case"minute":case"minutes":v[`${m}Seconds`](59);case"second":case"seconds":v[`${m}Milliseconds`](999)}return v}function wc(l){let I=new Date(l);return Array.prototype.slice.call(arguments,1).forEach(t=>{I=Math.max(I,new Date(t))}),I}function xc(l){let I=new Date(l);return Array.prototype.slice.call(arguments,1).forEach(t=>{I=Math.min(I,new Date(t))}),I}function wn(l,I,t){return(l.getTime()-l.getTimezoneOffset()*Bi-(I.getTime()-I.getTimezoneOffset()*Bi))/t}function co(l,I,t="days"){const v=new Date(l),m=new Date(I);switch(t){case"years":case"year":return v.getFullYear()-m.getFullYear();case"months":case"month":return(v.getFullYear()-m.getFullYear())*12+v.getMonth()-m.getMonth();case"days":case"day":case"date":return wn(Ht(v,"day"),Ht(m,"day"),as);case"hours":case"hour":return wn(Ht(v,"hour"),Ht(m,"hour"),oc);case"minutes":case"minute":return wn(Ht(v,"minute"),Ht(m,"minute"),Bi);case"seconds":case"second":return wn(Ht(v,"second"),Ht(m,"second"),1e3)}}function Bn(l){return co(l,Ht(l,"year"),"days")+1}function Sc(l){return Vn(l)===!0?"date":typeof l=="number"?"number":"string"}function kc(l,I,t){const v=new Date(l);if(I){const m=new Date(I);if(v<m)return m}if(t){const m=new Date(t);if(v>m)return m}return v}function Cc(l,I,t){const v=new Date(l),m=new Date(I);if(t===void 0)return v.getTime()===m.getTime();switch(t){case"second":case"seconds":if(v.getSeconds()!==m.getSeconds())return!1;case"minute":case"minutes":if(v.getMinutes()!==m.getMinutes())return!1;case"hour":case"hours":if(v.getHours()!==m.getHours())return!1;case"day":case"days":case"date":if(v.getDate()!==m.getDate())return!1;case"month":case"months":if(v.getMonth()!==m.getMonth())return!1;case"year":case"years":if(v.getFullYear()!==m.getFullYear())return!1;break;default:throw new Error(`date isSameDate unknown unit ${t}`)}return!0}function fo(l){return new Date(l.getFullYear(),l.getMonth()+1,0).getDate()}function Mr(l){if(l>=11&&l<=13)return`${l}th`;switch(l%10){case 1:return`${l}st`;case 2:return`${l}nd`;case 3:return`${l}rd`}return`${l}th`}const aa={YY(l,I,t){const v=this.YYYY(l,I,t)%100;return v>=0?bt(v):"-"+bt(Math.abs(v))},YYYY(l,I,t){return t??l.getFullYear()},M(l){return l.getMonth()+1},Mo(l){return Mr(l.getMonth()+1)},MM(l){return bt(l.getMonth()+1)},MMM(l,I){return I.monthsShort[l.getMonth()]},MMMM(l,I){return I.months[l.getMonth()]},Q(l){return Math.ceil((l.getMonth()+1)/3)},Qo(l){return Mr(this.Q(l))},D(l){return l.getDate()},Do(l){return Mr(l.getDate())},DD(l){return bt(l.getDate())},DDD(l){return Bn(l)},DDDo(l){return Mr(Bn(l))},DDDD(l){return bt(Bn(l),3)},d(l){return l.getDay()},do(l){return Mr(l.getDay())},dd(l,I){return I.days[l.getDay()].slice(0,2)},ddd(l,I){return I.daysShort[l.getDay()]},dddd(l,I){return I.days[l.getDay()]},E(l){return l.getDay()||7},w(l){return Rn(l)},wo(l){return Mr(Rn(l))},ww(l){return bt(Rn(l))},H(l){return l.getHours()},HH(l){return bt(l.getHours())},h(l){const I=l.getHours();return I===0?12:I>12?I%12:I},hh(l){return bt(this.h(l))},m(l){return l.getMinutes()},mm(l){return bt(l.getMinutes())},s(l){return l.getSeconds()},ss(l){return bt(l.getSeconds())},S(l){return Math.floor(l.getMilliseconds()/100)},SS(l){return bt(Math.floor(l.getMilliseconds()/10))},SSS(l){return bt(l.getMilliseconds(),3)},A(l){return l.getHours()<12?"AM":"PM"},a(l){return l.getHours()<12?"am":"pm"},aa(l){return l.getHours()<12?"a.m.":"p.m."},Z(l,I,t,v){const m=v??l.getTimezoneOffset();return oa(m,":")},ZZ(l,I,t,v){const m=v??l.getTimezoneOffset();return oa(m)},X(l){return Math.floor(l.getTime()/1e3)},x(l){return l.getTime()}};function ds(l,I,t,v,m){if(l!==0&&!l||l===1/0||l===-1/0)return;const c=new Date(l);if(isNaN(c))return;I===void 0&&(I=ss);const a=ls(t,nr.props);return I.replace(ac,(s,n)=>s in aa?aa[s](c,a,v,m):n===void 0?s:n.split("\\]").join("]"))}function _c(l){return Vn(l)===!0?new Date(l.getTime()):l}const hs={isValid:dc,extractDate:fc,buildDate:hc,getDayOfWeek:pc,getWeekOfYear:Rn,isBetweenDates:gc,addToDate:bc,subtractFromDate:vc,adjustDate:cs,startOfDate:Ht,endOfDate:yc,getMaxDate:wc,getMinDate:xc,getDateDiff:co,getDayOfYear:Bn,inferDateFormat:Sc,getDateBetween:kc,isSameDate:Cc,daysInMonth:fo,formatDate:ds,clone:_c},Kt=20,Ac=["Calendar","Years","Months"],sa=l=>Ac.includes(l),gi=l=>/^-?[\d]+\/[0-1]\d$/.test(l),Tr=" — ";function rr(l){return l.year+"/"+bt(l.month)}const ps=$e({name:"QDate",props:{...na,...Yn,...Ot,modelValue:{required:!0,validator:l=>typeof l=="string"||Array.isArray(l)===!0||Object(l)===l||l===null},multiple:Boolean,range:Boolean,title:String,subtitle:String,mask:{...na.mask,default:"YYYY/MM/DD"},defaultYearMonth:{type:String,validator:gi},yearsInMonthView:Boolean,events:[Array,Function],eventColor:[String,Function],emitImmediately:Boolean,options:[Array,Function],navigationMinYearMonth:{type:String,validator:gi},navigationMaxYearMonth:{type:String,validator:gi},noUnset:Boolean,firstDayOfWeek:[String,Number],todayBtn:Boolean,minimal:Boolean,defaultView:{type:String,default:"Calendar",validator:sa}},emits:[...nc,"rangeStart","rangeEnd","navigation"],setup(l,{slots:I,emit:t}){const{proxy:v}=g.getCurrentInstance(),{$q:m}=v,c=Ft(l,m),{getCache:a}=Gu(),{tabindex:s,headerClass:n,getLocale:e,getCurrentDate:r}=ic(l,m);let u;const o=pl(l),i=Ea(o),d=g.ref(null),h=g.ref(We()),f=g.ref(e()),b=g.computed(()=>We()),p=g.computed(()=>e()),S=g.computed(()=>r()),_=g.ref(Ne(h.value,f.value)),T=g.ref(l.defaultView),D=g.computed(()=>m.lang.rtl===!0?"right":"left"),z=g.ref(D.value),P=g.ref(D.value),N=_.value.year,V=g.ref(N-N%Kt-(N<0?Kt:0)),W=g.ref(null),L=g.computed(()=>{const re=l.landscape===!0?"landscape":"portrait";return`q-date q-date--${re} q-date--${re}-${l.minimal===!0?"minimal":"standard"}`+(c.value===!0?" q-date--dark q-dark":"")+(l.bordered===!0?" q-date--bordered":"")+(l.square===!0?" q-date--square no-border-radius":"")+(l.flat===!0?" q-date--flat no-shadow":"")+(l.disable===!0?" disabled":l.readonly===!0?" q-date--readonly":"")}),A=g.computed(()=>l.color||"primary"),M=g.computed(()=>l.textColor||"white"),C=g.computed(()=>l.emitImmediately===!0&&l.multiple!==!0&&l.range!==!0),y=g.computed(()=>Array.isArray(l.modelValue)===!0?l.modelValue:l.modelValue!==null&&l.modelValue!==void 0?[l.modelValue]:[]),x=g.computed(()=>y.value.filter(re=>typeof re=="string").map(re=>Ve(re,h.value,f.value)).filter(re=>re.dateHash!==null&&re.day!==null&&re.month!==null&&re.year!==null)),w=g.computed(()=>{const re=G=>Ve(G,h.value,f.value);return y.value.filter(G=>ts(G)===!0&&G.from!==void 0&&G.to!==void 0).map(G=>({from:re(G.from),to:re(G.to)})).filter(G=>G.from.dateHash!==null&&G.to.dateHash!==null&&G.from.dateHash<G.to.dateHash)}),k=g.computed(()=>l.calendar!=="persian"?re=>new Date(re.year,re.month-1,re.day):re=>{const G=ra(re.year,re.month,re.day);return new Date(G.gy,G.gm-1,G.gd)}),E=g.computed(()=>l.calendar==="persian"?tr:(re,G,ne)=>ds(new Date(re.year,re.month-1,re.day,re.hour,re.minute,re.second,re.millisecond),G===void 0?h.value:G,ne===void 0?f.value:ne,re.year,re.timezoneOffset)),O=g.computed(()=>x.value.length+w.value.reduce((re,G)=>re+1+co(k.value(G.to),k.value(G.from)),0)),R=g.computed(()=>{if(l.title!==void 0&&l.title!==null&&l.title.length!==0)return l.title;if(W.value!==null){const ne=W.value.init,le=k.value(ne);return f.value.daysShort[le.getDay()]+", "+f.value.monthsShort[ne.month-1]+" "+ne.day+Tr+"?"}if(O.value===0)return Tr;if(O.value>1)return`${O.value} ${f.value.pluralDay}`;const re=x.value[0],G=k.value(re);return isNaN(G.valueOf())===!0?Tr:f.value.headerTitle!==void 0?f.value.headerTitle(G,re):f.value.daysShort[G.getDay()]+", "+f.value.monthsShort[re.month-1]+" "+re.day}),U=g.computed(()=>x.value.concat(w.value.map(G=>G.from)).sort((G,ne)=>G.year-ne.year||G.month-ne.month)[0]),q=g.computed(()=>x.value.concat(w.value.map(G=>G.to)).sort((G,ne)=>ne.year-G.year||ne.month-G.month)[0]),K=g.computed(()=>{if(l.subtitle!==void 0&&l.subtitle!==null&&l.subtitle.length!==0)return l.subtitle;if(O.value===0)return Tr;if(O.value>1){const re=U.value,G=q.value,ne=f.value.monthsShort;return ne[re.month-1]+(re.year!==G.year?" "+re.year+Tr+ne[G.month-1]+" ":re.month!==G.month?Tr+ne[G.month-1]:"")+" "+G.year}return x.value[0].year}),j=g.computed(()=>{const re=[m.iconSet.datetime.arrowLeft,m.iconSet.datetime.arrowRight];return m.lang.rtl===!0?re.reverse():re}),Y=g.computed(()=>l.firstDayOfWeek!==void 0?Number(l.firstDayOfWeek):f.value.firstDayOfWeek),F=g.computed(()=>{const re=f.value.daysShort,G=Y.value;return G>0?re.slice(G,7).concat(re.slice(0,G)):re}),B=g.computed(()=>{const re=_.value;return l.calendar!=="persian"?new Date(re.year,re.month,0).getDate():Tn(re.year,re.month)}),H=g.computed(()=>typeof l.eventColor=="function"?l.eventColor:()=>l.eventColor),X=g.computed(()=>{if(l.navigationMinYearMonth===void 0)return null;const re=l.navigationMinYearMonth.split("/");return{year:parseInt(re[0],10),month:parseInt(re[1],10)}}),ee=g.computed(()=>{if(l.navigationMaxYearMonth===void 0)return null;const re=l.navigationMaxYearMonth.split("/");return{year:parseInt(re[0],10),month:parseInt(re[1],10)}}),Q=g.computed(()=>{const re={month:{prev:!0,next:!0},year:{prev:!0,next:!0}};return X.value!==null&&X.value.year>=_.value.year&&(re.year.prev=!1,X.value.year===_.value.year&&X.value.month>=_.value.month&&(re.month.prev=!1)),ee.value!==null&&ee.value.year<=_.value.year&&(re.year.next=!1,ee.value.year===_.value.year&&ee.value.month<=_.value.month&&(re.month.next=!1)),re}),Z=g.computed(()=>{const re={};return x.value.forEach(G=>{const ne=rr(G);re[ne]===void 0&&(re[ne]=[]),re[ne].push(G.day)}),re}),te=g.computed(()=>{const re={};return w.value.forEach(G=>{const ne=rr(G.from),le=rr(G.to);if(re[ne]===void 0&&(re[ne]=[]),re[ne].push({from:G.from.day,to:ne===le?G.to.day:void 0,range:G}),ne<le){let pe;const{year:Ae,month:ge}=G.from,Ce=ge<12?{year:Ae,month:ge+1}:{year:Ae+1,month:1};for(;(pe=rr(Ce))<=le;)re[pe]===void 0&&(re[pe]=[]),re[pe].push({from:void 0,to:pe===le?G.to.day:void 0,range:G}),Ce.month++,Ce.month>12&&(Ce.year++,Ce.month=1)}}),re}),ie=g.computed(()=>{if(W.value===null)return;const{init:re,initHash:G,final:ne,finalHash:le}=W.value,[pe,Ae]=G<=le?[re,ne]:[ne,re],ge=rr(pe),Ce=rr(Ae);if(ge!==J.value&&Ce!==J.value)return;const Re={};return ge===J.value?(Re.from=pe.day,Re.includeFrom=!0):Re.from=1,Ce===J.value?(Re.to=Ae.day,Re.includeTo=!0):Re.to=B.value,Re}),J=g.computed(()=>rr(_.value)),oe=g.computed(()=>{const re={};if(l.options===void 0){for(let ne=1;ne<=B.value;ne++)re[ne]=!0;return re}const G=typeof l.options=="function"?l.options:ne=>l.options.includes(ne);for(let ne=1;ne<=B.value;ne++){const le=J.value+"/"+bt(ne);re[ne]=G(le)}return re}),ae=g.computed(()=>{const re={};if(l.events===void 0)for(let G=1;G<=B.value;G++)re[G]=!1;else{const G=typeof l.events=="function"?l.events:ne=>l.events.includes(ne);for(let ne=1;ne<=B.value;ne++){const le=J.value+"/"+bt(ne);re[ne]=G(le)===!0&&H.value(le)}}return re}),fe=g.computed(()=>{let re,G;const{year:ne,month:le}=_.value;if(l.calendar!=="persian")re=new Date(ne,le-1,1),G=new Date(ne,le-1,0).getDate();else{const pe=ra(ne,le,1);re=new Date(pe.gy,pe.gm-1,pe.gd);let Ae=le-1,ge=ne;Ae===0&&(Ae=12,ge--),G=Tn(ge,Ae)}return{days:re.getDay()-Y.value-1,endDay:G}}),ce=g.computed(()=>{const re=[],{days:G,endDay:ne}=fe.value,le=G<0?G+7:G;if(le<6)for(let ge=ne-le;ge<=ne;ge++)re.push({i:ge,fill:!0});const pe=re.length;for(let ge=1;ge<=B.value;ge++){const Ce={i:ge,event:ae.value[ge],classes:[]};oe.value[ge]===!0&&(Ce.in=!0,Ce.flat=!0),re.push(Ce)}if(Z.value[J.value]!==void 0&&Z.value[J.value].forEach(ge=>{const Ce=pe+ge-1;Object.assign(re[Ce],{selected:!0,unelevated:!0,flat:!1,color:A.value,textColor:M.value})}),te.value[J.value]!==void 0&&te.value[J.value].forEach(ge=>{if(ge.from!==void 0){const Ce=pe+ge.from-1,Re=pe+(ge.to||B.value)-1;for(let ze=Ce;ze<=Re;ze++)Object.assign(re[ze],{range:ge.range,unelevated:!0,color:A.value,textColor:M.value});Object.assign(re[Ce],{rangeFrom:!0,flat:!1}),ge.to!==void 0&&Object.assign(re[Re],{rangeTo:!0,flat:!1})}else if(ge.to!==void 0){const Ce=pe+ge.to-1;for(let Re=pe;Re<=Ce;Re++)Object.assign(re[Re],{range:ge.range,unelevated:!0,color:A.value,textColor:M.value});Object.assign(re[Ce],{flat:!1,rangeTo:!0})}else{const Ce=pe+B.value-1;for(let Re=pe;Re<=Ce;Re++)Object.assign(re[Re],{range:ge.range,unelevated:!0,color:A.value,textColor:M.value})}}),ie.value!==void 0){const ge=pe+ie.value.from-1,Ce=pe+ie.value.to-1;for(let Re=ge;Re<=Ce;Re++)re[Re].color=A.value,re[Re].editRange=!0;ie.value.includeFrom===!0&&(re[ge].editRangeFrom=!0),ie.value.includeTo===!0&&(re[Ce].editRangeTo=!0)}_.value.year===S.value.year&&_.value.month===S.value.month&&(re[pe+S.value.day-1].today=!0);const Ae=re.length%7;if(Ae>0){const ge=7-Ae;for(let Ce=1;Ce<=ge;Ce++)re.push({i:Ce,fill:!0})}return re.forEach(ge=>{let Ce="q-date__calendar-item ";ge.fill===!0?Ce+="q-date__calendar-item--fill":(Ce+=`q-date__calendar-item--${ge.in===!0?"in":"out"}`,ge.range!==void 0&&(Ce+=` q-date__range${ge.rangeTo===!0?"-to":ge.rangeFrom===!0?"-from":""}`),ge.editRange===!0&&(Ce+=` q-date__edit-range${ge.editRangeFrom===!0?"-from":""}${ge.editRangeTo===!0?"-to":""}`),(ge.range!==void 0||ge.editRange===!0)&&(Ce+=` text-${ge.color}`)),ge.classes=Ce}),re}),de=g.computed(()=>l.disable===!0?{"aria-disabled":"true"}:{});g.watch(()=>l.modelValue,re=>{if(u===JSON.stringify(re))u=0;else{const G=Ne(h.value,f.value);et(G.year,G.month,G)}}),g.watch(T,()=>{d.value!==null&&v.$el.contains(document.activeElement)===!0&&d.value.focus()}),g.watch(()=>_.value.year+"|"+_.value.month,()=>{t("navigation",{year:_.value.year,month:_.value.month})}),g.watch(b,re=>{we(re,f.value,"mask"),h.value=re}),g.watch(p,re=>{we(h.value,re,"locale"),f.value=re});function me(re){u=JSON.stringify(re)}function be(){const{year:re,month:G,day:ne}=S.value,le={..._.value,year:re,month:G,day:ne},pe=Z.value[rr(le)];(pe===void 0||pe.includes(le.day)===!1)&&st(le),Ee(le.year,le.month)}function xe(re){sa(re)===!0&&(T.value=re)}function Ie(re,G){["month","year"].includes(re)&&(re==="month"?Fe:ke)(G===!0?-1:1)}function Ee(re,G){T.value="Calendar",et(re,G)}function Me(re,G){if(l.range===!1||!re){W.value=null;return}const ne=Object.assign({..._.value},re),le=G!==void 0?Object.assign({..._.value},G):ne;W.value={init:ne,initHash:tr(ne),final:le,finalHash:tr(le)},Ee(ne.year,ne.month)}function We(){return l.calendar==="persian"?"YYYY/MM/DD":l.mask}function Ve(re,G,ne){return fs(re,G,ne,l.calendar,{hour:0,minute:0,second:0,millisecond:0})}function Ne(re,G){const ne=Array.isArray(l.modelValue)===!0?l.modelValue:l.modelValue?[l.modelValue]:[];if(ne.length===0)return qe();const le=ne[ne.length-1],pe=Ve(le.from!==void 0?le.from:le,re,G);return pe.dateHash===null?qe():pe}function qe(){let re,G;if(l.defaultYearMonth!==void 0){const ne=l.defaultYearMonth.split("/");re=parseInt(ne[0],10),G=parseInt(ne[1],10)}else{const ne=S.value!==void 0?S.value:r();re=ne.year,G=ne.month}return{year:re,month:G,day:1,hour:0,minute:0,second:0,millisecond:0,dateHash:re+"/"+bt(G)+"/01"}}function Fe(re){let G=_.value.year,ne=Number(_.value.month)+re;ne===13?(ne=1,G++):ne===0&&(ne=12,G--),et(G,ne),C.value===!0&&nt("month")}function ke(re){const G=Number(_.value.year)+re;et(G,_.value.month),C.value===!0&&nt("year")}function De(re){et(re,_.value.month),T.value=l.defaultView==="Years"?"Months":"Calendar",C.value===!0&&nt("year")}function Ue(re){et(_.value.year,re),T.value="Calendar",C.value===!0&&nt("month")}function Le(re,G){(Z.value[G]?.includes(re.day)===!0?he:st)(re)}function Ge(re){return{year:re.year,month:re.month,day:re.day}}function et(re,G,ne){if(X.value!==null&&re<=X.value.year&&((G<X.value.month||re<X.value.year)&&(G=X.value.month),re=X.value.year),ee.value!==null&&re>=ee.value.year&&((G>ee.value.month||re>ee.value.year)&&(G=ee.value.month),re=ee.value.year),ne!==void 0){const{hour:pe,minute:Ae,second:ge,millisecond:Ce,timezoneOffset:Re,timeHash:ze}=ne;Object.assign(_.value,{hour:pe,minute:Ae,second:ge,millisecond:Ce,timezoneOffset:Re,timeHash:ze})}const le=re+"/"+bt(G)+"/01";le!==_.value.dateHash&&(z.value=_.value.dateHash<le==(m.lang.rtl!==!0)?"left":"right",re!==_.value.year&&(P.value=z.value),g.nextTick(()=>{V.value=re-re%Kt-(re<0?Kt:0),Object.assign(_.value,{year:re,month:G,day:1,dateHash:le})}))}function He(re,G,ne){const le=re!==null&&re.length===1&&l.multiple===!1?re[0]:re,{reason:pe,details:Ae}=tt(G,ne);me(le),t("update:modelValue",le,pe,Ae)}function nt(re){const G=x.value[0]!==void 0&&x.value[0].dateHash!==null?{...x.value[0]}:{..._.value};g.nextTick(()=>{G.year=_.value.year,G.month=_.value.month;const ne=l.calendar!=="persian"?new Date(G.year,G.month,0).getDate():Tn(G.year,G.month);G.day=Math.min(Math.max(1,G.day),ne);const le=Ye(G),{details:pe}=tt("",G);me(le),t("update:modelValue",le,re,pe)})}function tt(re,G){return G.from!==void 0?{reason:`${re}-range`,details:{...Ge(G.target),from:Ge(G.from),to:Ge(G.to)}}:{reason:`${re}-day`,details:Ge(G)}}function Ye(re,G,ne){return re.from!==void 0?{from:E.value(re.from,G,ne),to:E.value(re.to,G,ne)}:E.value(re,G,ne)}function st(re){let G;if(l.multiple===!0)if(re.from!==void 0){const ne=tr(re.from),le=tr(re.to),pe=x.value.filter(ge=>ge.dateHash<ne||ge.dateHash>le),Ae=w.value.filter(({from:ge,to:Ce})=>Ce.dateHash<ne||ge.dateHash>le);G=pe.concat(Ae).concat(re).map(ge=>Ye(ge))}else{const ne=y.value.slice();ne.push(Ye(re)),G=ne}else G=Ye(re);He(G,"add",re)}function he(re){if(l.noUnset===!0)return;let G=null;if(l.multiple===!0&&Array.isArray(l.modelValue)===!0){const ne=Ye(re);re.from!==void 0?G=l.modelValue.filter(le=>le.from!==void 0?le.from!==ne.from&&le.to!==ne.to:!0):G=l.modelValue.filter(le=>le!==ne),G.length===0&&(G=null)}He(G,"remove",re)}function we(re,G,ne){const le=x.value.concat(w.value).map(Ae=>Ye(Ae,re,G)).filter(Ae=>Ae.from!==void 0?Ae.from.dateHash!==null&&Ae.to.dateHash!==null:Ae.dateHash!==null),pe=(l.multiple===!0?le:le[0])||null;me(pe),t("update:modelValue",pe,ne)}function Te(){if(l.minimal!==!0)return g.h("div",{class:"q-date__header "+n.value},[g.h("div",{class:"relative-position"},[g.h(g.Transition,{name:"q-transition--fade"},()=>g.h("div",{key:"h-yr-"+K.value,class:"q-date__header-subtitle q-date__header-link "+(T.value==="Years"?"q-date__header-link--active":"cursor-pointer"),tabindex:s.value,...a("vY",{onClick(){T.value="Years"},onKeyup(re){re.keyCode===13&&(T.value="Years")}})},[K.value]))]),g.h("div",{class:"q-date__header-title relative-position flex no-wrap"},[g.h("div",{class:"relative-position col"},[g.h(g.Transition,{name:"q-transition--fade"},()=>g.h("div",{key:"h-sub"+R.value,class:"q-date__header-title-label q-date__header-link "+(T.value==="Calendar"?"q-date__header-link--active":"cursor-pointer"),tabindex:s.value,...a("vC",{onClick(){T.value="Calendar"},onKeyup(re){re.keyCode===13&&(T.value="Calendar")}})},[R.value]))]),l.todayBtn===!0?g.h(ot,{class:"q-date__header-today self-start",icon:m.iconSet.datetime.today,"aria-label":m.lang.date.today,flat:!0,size:"sm",round:!0,tabindex:s.value,onClick:be}):null])])}function Oe({label:re,type:G,key:ne,dir:le,goTo:pe,boundaries:Ae,cls:ge}){return[g.h("div",{class:"row items-center q-date__arrow"},[g.h(ot,{round:!0,dense:!0,size:"sm",flat:!0,icon:j.value[0],"aria-label":G==="Years"?m.lang.date.prevYear:m.lang.date.prevMonth,tabindex:s.value,disable:Ae.prev===!1,...a("go-#"+G,{onClick(){pe(-1)}})})]),g.h("div",{class:"relative-position overflow-hidden flex flex-center"+ge},[g.h(g.Transition,{name:"q-transition--jump-"+le},()=>g.h("div",{key:ne},[g.h(ot,{flat:!0,dense:!0,noCaps:!0,label:re,tabindex:s.value,...a("view#"+G,{onClick:()=>{T.value=G}})})]))]),g.h("div",{class:"row items-center q-date__arrow"},[g.h(ot,{round:!0,dense:!0,size:"sm",flat:!0,icon:j.value[1],"aria-label":G==="Years"?m.lang.date.nextYear:m.lang.date.nextMonth,tabindex:s.value,disable:Ae.next===!1,...a("go+#"+G,{onClick(){pe(1)}})})])]}const _e={Calendar:()=>[g.h("div",{key:"calendar-view",class:"q-date__view q-date__calendar"},[g.h("div",{class:"q-date__navigation row items-center no-wrap"},Oe({label:f.value.months[_.value.month-1],type:"Months",key:_.value.month,dir:z.value,goTo:Fe,boundaries:Q.value.month,cls:" col"}).concat(Oe({label:_.value.year,type:"Years",key:_.value.year,dir:P.value,goTo:ke,boundaries:Q.value.year,cls:""}))),g.h("div",{class:"q-date__calendar-weekdays row items-center no-wrap"},F.value.map(re=>g.h("div",{class:"q-date__calendar-item"},[g.h("div",re)]))),g.h("div",{class:"q-date__calendar-days-container relative-position overflow-hidden"},[g.h(g.Transition,{name:"q-transition--slide-"+z.value},()=>g.h("div",{key:J.value,class:"q-date__calendar-days fit"},ce.value.map(re=>g.h("div",{class:re.classes},[re.in===!0?g.h(ot,{class:re.today===!0?"q-date__today":"",dense:!0,flat:re.flat,unelevated:re.unelevated,color:re.color,textColor:re.textColor,label:re.i,tabindex:s.value,...a("day#"+re.i,{onClick:()=>{Qe(re.i)},onMouseover:()=>{Ke(re.i)}})},re.event!==!1?()=>g.h("div",{class:"q-date__event bg-"+re.event}):null):g.h("div",""+re.i)]))))])])],Months(){const re=_.value.year===S.value.year,G=le=>X.value!==null&&_.value.year===X.value.year&&X.value.month>le||ee.value!==null&&_.value.year===ee.value.year&&ee.value.month<le,ne=f.value.monthsShort.map((le,pe)=>{const Ae=_.value.month===pe+1;return g.h("div",{class:"q-date__months-item flex flex-center"},[g.h(ot,{class:re===!0&&S.value.month===pe+1?"q-date__today":null,flat:Ae!==!0,label:le,unelevated:Ae,color:Ae===!0?A.value:null,textColor:Ae===!0?M.value:null,tabindex:s.value,disable:G(pe+1),...a("month#"+pe,{onClick:()=>{Ue(pe+1)}})})])});return l.yearsInMonthView===!0&&ne.unshift(g.h("div",{class:"row no-wrap full-width"},[Oe({label:_.value.year,type:"Years",key:_.value.year,dir:P.value,goTo:ke,boundaries:Q.value.year,cls:" col"})])),g.h("div",{key:"months-view",class:"q-date__view q-date__months flex flex-center"},ne)},Years(){const re=V.value,G=re+Kt,ne=[],le=pe=>X.value!==null&&X.value.year>pe||ee.value!==null&&ee.value.year<pe;for(let pe=re;pe<=G;pe++){const Ae=_.value.year===pe;ne.push(g.h("div",{class:"q-date__years-item flex flex-center"},[g.h(ot,{key:"yr"+pe,class:S.value.year===pe?"q-date__today":null,flat:!Ae,label:pe,dense:!0,unelevated:Ae,color:Ae===!0?A.value:null,textColor:Ae===!0?M.value:null,tabindex:s.value,disable:le(pe),...a("yr#"+pe,{onClick:()=>{De(pe)}})})]))}return g.h("div",{class:"q-date__view q-date__years flex flex-center"},[g.h("div",{class:"col-auto"},[g.h(ot,{round:!0,dense:!0,flat:!0,icon:j.value[0],"aria-label":m.lang.date.prevRangeYears(Kt),tabindex:s.value,disable:le(re),...a("y-",{onClick:()=>{V.value-=Kt}})})]),g.h("div",{class:"q-date__years-content col self-stretch row items-center"},ne),g.h("div",{class:"col-auto"},[g.h(ot,{round:!0,dense:!0,flat:!0,icon:j.value[1],"aria-label":m.lang.date.nextRangeYears(Kt),tabindex:s.value,disable:le(G),...a("y+",{onClick:()=>{V.value+=Kt}})})])])}};function Qe(re){const G={..._.value,day:re};if(l.range===!1){Le(G,J.value);return}if(W.value===null){const ne=ce.value.find(pe=>pe.fill!==!0&&pe.i===re);if(l.noUnset!==!0&&ne.range!==void 0){he({target:G,from:ne.range.from,to:ne.range.to});return}if(ne.selected===!0){he(G);return}const le=tr(G);W.value={init:G,initHash:le,final:G,finalHash:le},t("rangeStart",Ge(G))}else{const ne=W.value.initHash,le=tr(G),pe=ne<=le?{from:W.value.init,to:G}:{from:G,to:W.value.init};W.value=null,st(ne===le?G:{target:G,...pe}),t("rangeEnd",{from:Ge(pe.from),to:Ge(pe.to)})}}function Ke(re){if(W.value!==null){const G={..._.value,day:re};Object.assign(W.value,{final:G,finalHash:tr(G)})}}return Object.assign(v,{setToday:be,setView:xe,offsetCalendar:Ie,setCalendarTo:Ee,setEditingRange:Me}),()=>{const re=[g.h("div",{class:"q-date__content col relative-position"},[g.h(g.Transition,{name:"q-transition--fade"},_e[T.value])])],G=gt(I.default);return G!==void 0&&re.push(g.h("div",{class:"q-date__actions"},G)),l.name!==void 0&&l.disable!==!0&&i(re,"push"),g.h("div",{class:L.value,...de.value},[Te(),g.h("div",{ref:d,class:"q-date__main col column",tabindex:-1},re)])}}}),ms=$e({name:"QPopupProxy",props:{...Na,breakpoint:{type:[String,Number],default:450}},emits:["show","hide"],setup(l,{slots:I,emit:t,attrs:v}){const{proxy:m}=g.getCurrentInstance(),{$q:c}=m,a=g.ref(!1),s=g.ref(null),n=g.computed(()=>parseInt(l.breakpoint,10)),{canShow:e}=Yi({showing:a});function r(){return c.screen.width<n.value||c.screen.height<n.value?"dialog":"menu"}const u=g.ref(r()),o=g.computed(()=>u.value==="menu"?{maxHeight:"99vh"}:{});g.watch(()=>r(),h=>{a.value!==!0&&(u.value=h)});function i(h){a.value=!0,t("show",h)}function d(h){a.value=!1,u.value=r(),t("hide",h)}return Object.assign(m,{show(h){e(h)===!0&&s.value.show(h)},hide(h){s.value.hide(h)},toggle(h){s.value.toggle(h)}}),Lt(m,"currentComponent",()=>({type:u.value,ref:s.value})),()=>{const h={ref:s,...o.value,...v,onShow:i,onHide:d};let f;return u.value==="dialog"?f=Gn:(f=on,Object.assign(h,{target:l.target,contextMenu:l.contextMenu,noParentEvent:!0,separateClosePopup:!0})),g.h(f,h,I.default)}}}),la={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},qn={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:l=>l.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:l=>l.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:l=>l.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:l=>l.toLocaleLowerCase()}},gs=Object.keys(qn);gs.forEach(l=>{qn[l].regex=new RegExp(qn[l].pattern)});const Ec=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+gs.join("")+"])|(.)","g"),ua=/[.*+?^${}()|[\]\\]/g,_t="",Mc={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function Tc(l,I,t,v){let m,c,a,s,n,e;const r=g.ref(null),u=g.ref(i());function o(){return l.autogrow===!0||["textarea","text","search","url","tel","password"].includes(l.type)}g.watch(()=>l.type+l.autogrow,h),g.watch(()=>l.mask,N=>{if(N!==void 0)f(u.value,!0);else{const V=z(u.value);h(),l.modelValue!==V&&I("update:modelValue",V)}}),g.watch(()=>l.fillMask+l.reverseFillMask,()=>{r.value===!0&&f(u.value,!0)}),g.watch(()=>l.unmaskedValue,()=>{r.value===!0&&f(u.value)});function i(){if(h(),r.value===!0){const N=T(z(l.modelValue));return l.fillMask!==!1?P(N):N}return l.modelValue}function d(N){if(N<m.length)return m.slice(-N);let V="",W=m;const L=W.indexOf(_t);if(L!==-1){for(let A=N-W.length;A>0;A--)V+=_t;W=W.slice(0,L)+V+W.slice(L)}return W}function h(){if(r.value=l.mask!==void 0&&l.mask.length!==0&&o(),r.value===!1){s=void 0,m="",c="";return}const N=la[l.mask]===void 0?l.mask:la[l.mask],V=typeof l.fillMask=="string"&&l.fillMask.length!==0?l.fillMask.slice(0,1):"_",W=V.replace(ua,"\\$&"),L=[],A=[],M=[];let C=l.reverseFillMask===!0,y="",x="";N.replace(Ec,(O,R,U,q,K)=>{if(q!==void 0){const j=qn[q];M.push(j),x=j.negate,C===!0&&(A.push("(?:"+x+"+)?("+j.pattern+"+)?(?:"+x+"+)?("+j.pattern+"+)?"),C=!1),A.push("(?:"+x+"+)?("+j.pattern+")?")}else if(U!==void 0)y="\\"+(U==="\\"?"":U),M.push(U),L.push("([^"+y+"]+)?"+y+"?");else{const j=R!==void 0?R:K;y=j==="\\"?"\\\\\\\\":j.replace(ua,"\\\\$&"),M.push(j),L.push("([^"+y+"]+)?"+y+"?")}});const w=new RegExp("^"+L.join("")+"("+(y===""?".":"[^"+y+"]")+"+)?"+(y===""?"":"["+y+"]*")+"$"),k=A.length-1,E=A.map((O,R)=>R===0&&l.reverseFillMask===!0?new RegExp("^"+W+"*"+O):R===k?new RegExp("^"+O+"("+(x===""?".":x)+"+)?"+(l.reverseFillMask===!0?"$":W+"*")):new RegExp("^"+O));a=M,s=O=>{const R=w.exec(l.reverseFillMask===!0?O:O.slice(0,M.length+1));R!==null&&(O=R.slice(1).join(""));const U=[],q=E.length;for(let K=0,j=O;K<q;K++){const Y=E[K].exec(j);if(Y===null)break;j=j.slice(Y.shift().length),U.push(...Y)}return U.length!==0?U.join(""):O},m=M.map(O=>typeof O=="string"?O:_t).join(""),c=m.split(_t).join(V)}function f(N,V,W){const L=v.value,A=L.selectionEnd,M=L.value.length-A,C=z(N);V===!0&&h();const y=T(C),x=l.fillMask!==!1?P(y):y,w=u.value!==x;L.value!==x&&(L.value=x),w===!0&&(u.value=x),document.activeElement===L&&g.nextTick(()=>{if(x===c){const E=l.reverseFillMask===!0?c.length:0;L.setSelectionRange(E,E,"forward");return}if(W==="insertFromPaste"&&l.reverseFillMask!==!0){const E=L.selectionEnd;let O=A-1;for(let R=n;R<=O&&R<E;R++)m[R]!==_t&&O++;p.right(L,O);return}if(["deleteContentBackward","deleteContentForward"].indexOf(W)!==-1){const E=l.reverseFillMask===!0?A===0?x.length>y.length?1:0:Math.max(0,x.length-(x===c?0:Math.min(y.length,M)+1))+1:A;L.setSelectionRange(E,E,"forward");return}if(l.reverseFillMask===!0)if(w===!0){const E=Math.max(0,x.length-(x===c?0:Math.min(y.length,M+1)));E===1&&A===1?L.setSelectionRange(E,E,"forward"):p.rightReverse(L,E)}else{const E=x.length-M;L.setSelectionRange(E,E,"backward")}else if(w===!0){const E=Math.max(0,m.indexOf(_t),Math.min(y.length,A)-1);p.right(L,E)}else{const E=A-1;p.right(L,E)}});const k=l.unmaskedValue===!0?z(x):x;String(l.modelValue)!==k&&(l.modelValue!==null||k!=="")&&t(k,!0)}function b(N,V,W){const L=T(z(N.value));V=Math.max(0,m.indexOf(_t),Math.min(L.length,V)),n=V,N.setSelectionRange(V,W,"forward")}const p={left(N,V){const W=m.slice(V-1).indexOf(_t)===-1;let L=Math.max(0,V-1);for(;L>=0;L--)if(m[L]===_t){V=L,W===!0&&V++;break}if(L<0&&m[V]!==void 0&&m[V]!==_t)return p.right(N,0);V>=0&&N.setSelectionRange(V,V,"backward")},right(N,V){const W=N.value.length;let L=Math.min(W,V+1);for(;L<=W;L++)if(m[L]===_t){V=L;break}else m[L-1]===_t&&(V=L);if(L>W&&m[V-1]!==void 0&&m[V-1]!==_t)return p.left(N,W);N.setSelectionRange(V,V,"forward")},leftReverse(N,V){const W=d(N.value.length);let L=Math.max(0,V-1);for(;L>=0;L--)if(W[L-1]===_t){V=L;break}else if(W[L]===_t&&(V=L,L===0))break;if(L<0&&W[V]!==void 0&&W[V]!==_t)return p.rightReverse(N,0);V>=0&&N.setSelectionRange(V,V,"backward")},rightReverse(N,V){const W=N.value.length,L=d(W),A=L.slice(0,V+1).indexOf(_t)===-1;let M=Math.min(W,V+1);for(;M<=W;M++)if(L[M-1]===_t){V=M,V>0&&A===!0&&V--;break}if(M>W&&L[V-1]!==void 0&&L[V-1]!==_t)return p.leftReverse(N,W);N.setSelectionRange(V,V,"forward")}};function S(N){I("click",N),e=void 0}function _(N){if(I("keydown",N),qi(N)===!0||N.altKey===!0)return;const V=v.value,W=V.selectionStart,L=V.selectionEnd;if(N.shiftKey||(e=void 0),N.keyCode===37||N.keyCode===39){N.shiftKey&&e===void 0&&(e=V.selectionDirection==="forward"?W:L);const A=p[(N.keyCode===39?"right":"left")+(l.reverseFillMask===!0?"Reverse":"")];if(N.preventDefault(),A(V,e===W?L:W),N.shiftKey){const M=V.selectionStart;V.setSelectionRange(Math.min(e,M),Math.max(e,M),"forward")}}else N.keyCode===8&&l.reverseFillMask!==!0&&W===L?(p.left(V,W),V.setSelectionRange(V.selectionStart,L,"backward")):N.keyCode===46&&l.reverseFillMask===!0&&W===L&&(p.rightReverse(V,L),V.setSelectionRange(W,V.selectionEnd,"forward"))}function T(N){if(N==null||N==="")return"";if(l.reverseFillMask===!0)return D(N);const V=a;let W=0,L="";for(let A=0;A<V.length;A++){const M=N[W],C=V[A];if(typeof C=="string")L+=C;else if(M!==void 0&&C.regex.test(M))L+=C.transform!==void 0?C.transform(M):M,W++;else return L}return L}function D(N){const V=a,W=m.indexOf(_t);let L=N.length-1,A="";for(let M=V.length-1;M>=0&&L!==-1;M--){const C=V[M];let y=N[L];if(typeof C=="string")A=C+A;else if(y!==void 0&&C.regex.test(y))do A=(C.transform!==void 0?C.transform(y):y)+A,L--,y=N[L];while(W===M&&y!==void 0&&C.regex.test(y));else return A}return A}function z(N){return typeof N!="string"||s===void 0?typeof N=="number"?s(""+N):N:s(N)}function P(N){return c.length-N.length<=0?N:l.reverseFillMask===!0&&N.length!==0?c.slice(0,-N.length)+N:N+c.slice(N.length)}return{innerValue:u,hasMask:r,moveCursorForPaste:b,updateMaskValue:f,onMaskedKeydown:_,onMaskedClick:S}}function Rc(l,I){function t(){const v=l.modelValue;try{const m="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(v)===v&&("length"in v?Array.from(v):[v]).forEach(c=>{m.items.add(c)}),{files:m.files}}catch{return{files:void 0}}}return g.computed(()=>{if(l.type==="file")return t()})}const en=$e({name:"QInput",inheritAttrs:!1,props:{...Xn,...Mc,...Yn,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...to,"paste","change","keydown","click","animationend"],setup(l,{emit:I,attrs:t}){const{proxy:v}=g.getCurrentInstance(),{$q:m}=v,c={};let a=NaN,s,n,e=null,r;const u=g.ref(null),o=Ma(l),{innerValue:i,hasMask:d,moveCursorForPaste:h,updateMaskValue:f,onMaskedKeydown:b,onMaskedClick:p}=Tc(l,I,y,u),S=Rc(l),_=g.computed(()=>$r(i.value)),T=es(M),D=ro({changeEvent:!0}),z=g.computed(()=>l.type==="textarea"||l.autogrow===!0),P=g.computed(()=>z.value===!0||["text","search","url","tel","password"].includes(l.type)),N=g.computed(()=>{const R={...D.splitAttrs.listeners.value,onInput:M,onPaste:A,onChange:w,onBlur:k,onFocus:Dt};return R.onCompositionstart=R.onCompositionupdate=R.onCompositionend=T,d.value===!0&&(R.onKeydown=b,R.onClick=p),l.autogrow===!0&&(R.onAnimationend=C),R}),V=g.computed(()=>{const R={tabindex:0,"data-autofocus":l.autofocus===!0||void 0,rows:l.type==="textarea"?6:void 0,"aria-label":l.label,name:o.value,...D.splitAttrs.attributes.value,id:D.targetUid.value,maxlength:l.maxlength,disabled:l.disable===!0,readonly:l.readonly===!0};return z.value===!1&&(R.type=l.type),l.autogrow===!0&&(R.rows=1),R});g.watch(()=>l.type,()=>{u.value&&(u.value.value=l.modelValue)}),g.watch(()=>l.modelValue,R=>{if(d.value===!0){if(n===!0&&(n=!1,String(R)===a))return;f(R)}else i.value!==R&&(i.value=R,l.type==="number"&&c.hasOwnProperty("value")===!0&&(s===!0?s=!1:delete c.value));l.autogrow===!0&&g.nextTick(x)}),g.watch(()=>l.autogrow,R=>{R===!0?g.nextTick(x):u.value!==null&&t.rows>0&&(u.value.style.height="auto")}),g.watch(()=>l.dense,()=>{l.autogrow===!0&&g.nextTick(x)});function W(){nn(()=>{const R=document.activeElement;u.value!==null&&u.value!==R&&(R===null||R.id!==D.targetUid.value)&&u.value.focus({preventScroll:!0})})}function L(){u.value?.select()}function A(R){if(d.value===!0&&l.reverseFillMask!==!0){const U=R.target;h(U,U.selectionStart,U.selectionEnd)}I("paste",R)}function M(R){if(!R||!R.target)return;if(l.type==="file"){I("update:modelValue",R.target.files);return}const U=R.target.value;if(R.target.qComposing===!0){c.value=U;return}if(d.value===!0)f(U,!1,R.inputType);else if(y(U),P.value===!0&&R.target===document.activeElement){const{selectionStart:q,selectionEnd:K}=R.target;q!==void 0&&K!==void 0&&g.nextTick(()=>{R.target===document.activeElement&&U.indexOf(R.target.value)===0&&R.target.setSelectionRange(q,K)})}l.autogrow===!0&&x()}function C(R){I("animationend",R),x()}function y(R,U){r=()=>{e=null,l.type!=="number"&&c.hasOwnProperty("value")===!0&&delete c.value,l.modelValue!==R&&a!==R&&(a=R,U===!0&&(n=!0),I("update:modelValue",R),g.nextTick(()=>{a===R&&(a=NaN)})),r=void 0},l.type==="number"&&(s=!0,c.value=R),l.debounce!==void 0?(e!==null&&clearTimeout(e),c.value=R,e=setTimeout(r,l.debounce)):r()}function x(){requestAnimationFrame(()=>{const R=u.value;if(R!==null){const U=R.parentNode.style,{scrollTop:q}=R,{overflowY:K,maxHeight:j}=m.platform.is.firefox===!0?{}:window.getComputedStyle(R),Y=K!==void 0&&K!=="scroll";Y===!0&&(R.style.overflowY="hidden"),U.marginBottom=R.scrollHeight-1+"px",R.style.height="1px",R.style.height=R.scrollHeight+"px",Y===!0&&(R.style.overflowY=parseInt(j,10)<R.scrollHeight?"auto":"hidden"),U.marginBottom="",R.scrollTop=q}})}function w(R){T(R),e!==null&&(clearTimeout(e),e=null),r?.(),I("change",R.target.value)}function k(R){R!==void 0&&Dt(R),e!==null&&(clearTimeout(e),e=null),r?.(),s=!1,n=!1,delete c.value,l.type!=="file"&&setTimeout(()=>{u.value!==null&&(u.value.value=i.value!==void 0?i.value:"")})}function E(){return c.hasOwnProperty("value")===!0?c.value:i.value!==void 0?i.value:""}g.onBeforeUnmount(()=>{k()}),g.onMounted(()=>{l.autogrow===!0&&x()}),Object.assign(D,{innerValue:i,fieldClass:g.computed(()=>`q-${z.value===!0?"textarea":"input"}`+(l.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:g.computed(()=>l.type!=="file"&&typeof l.shadowText=="string"&&l.shadowText.length!==0),inputRef:u,emitValue:y,hasValue:_,floatingLabel:g.computed(()=>_.value===!0&&(l.type!=="number"||isNaN(i.value)===!1)||$r(l.displayValue)),getControl:()=>g.h(z.value===!0?"textarea":"input",{ref:u,class:["q-field__native q-placeholder",l.inputClass],style:l.inputStyle,...V.value,...N.value,...l.type!=="file"?{value:E()}:S.value}),getShadowControl:()=>g.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(z.value===!0?"":" text-no-wrap")},[g.h("span",{class:"invisible"},E()),g.h("span",l.shadowText)])});const O=no(D);return Object.assign(v,{focus:W,select:L,getNativeElement:()=>u.value}),Lt(v,"nativeEl",()=>u.value),O}});function Bc(l){return{entity:l.entity,dataCy:l.dataCy,defaultLabel:l.defaultLabel,routeName:l.routeName,shouldRender:l.customShouldRender||(({store:I})=>l.storeField?!!I[l.storeField]:!0),getLabel:l.getLabel||(l.labelField?({store:I})=>l.storeField&&I[l.storeField]?.[l.labelField]||l.defaultLabel:void 0),getColor:l.customGetColor||(({store:I})=>l.storeField&&I[l.storeField]?"primary":"dark"),getRouteParams:l.routeParamKey&&l.routeParamField?({store:I})=>({[l.routeParamKey]:l.storeField&&I[l.storeField]?.[l.routeParamField]}):void 0,clearActions:[...l.clearMethods?.map(I=>({store:t})=>t[I]?.())||[],...l.navActions?.map(I=>({navStore:t})=>I(t))||[]]}}const bs=/^\d{2}-\d{2}-\d{4}$/;function Ic(l){const I=l.getTimezoneOffset()*6e4;return new Date(l.getTime()+I)}function Kr(l){const I=/^\d{4}-\d{2}-\d{2}$/,t=/^\d{2}-\d{2}-\d{4}$/;if(I.test(l))return l;if(t.test(l)){const v=l.split("-");return`${v[2]}-${v[1]}-${v[0]}`}return console.warn("'Invalid date format. Expected DD-MM-YYYY' or 'YYYY-MM-DD' but got: "+l),""}function ho(l,I,t,v=[]){const m=typeof l=="string"?new Date(Kr(l)):new Date(l);if(Number.isNaN(m.getTime()))return!1;if(I){const s=typeof I=="string"?new Date(Kr(I)):new Date(I);if(m<s)return!1}if(t){const s=typeof t=="string"?new Date(Kr(t)):new Date(t);if(m>s)return!1}return v.some(s=>{if(typeof s=="string"){const n=new Date(Kr(s));return m.getFullYear()===n.getFullYear()&&m.getMonth()===n.getMonth()&&m.getDate()===n.getDate()}else{if(s instanceof Date)return m.getFullYear()===s.getFullYear()&&m.getMonth()===s.getMonth()&&m.getDate()===s.getDate();{const n=new Date(s.start_date),e=new Date(s.end_date);return m>=n&&m<=e}}})?!1:!v.some(s=>{if(typeof s=="object"&&!(s instanceof Date)&&s.start_date&&s.end_date){const n=new Date(s.start_date),e=new Date(s.end_date);if(n.getTime()===e.getTime())return m.getTime()===n.getTime()||m.getTime()===e.getTime()}return!1})}const Xt={validateAndUpdate(l,I,t){return bs.test(I)?{...l,[t?"from":"to"]:I}:l},isEndDateValid(l,I,t=!1){if(!l||!I)return!0;try{const[v,m,c]=l.split("-"),[a,s,n]=I.split("-"),e=new Date(Number(c),Number(m)-1,Number(v)),r=new Date(Number(n),Number(s)-1,Number(a));return t?r>=e:r>e}catch{return!1}},handlePickerUpdate(l){return l===null?{from:"",to:""}:typeof l=="string"?{from:l,to:l}:l},reset(){return{from:"",to:""}},handleInput(l,I){typeof l=="string"&&I(l)}},vs={days:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],daysShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthsShort:["Janv","Févr","Mars","Avr","Mai","Juin","Juil","Août","Sept","Oct","Nov","Dec"],firstDayOfWeek:1,format24h:!0,pluralDay:"jours"};function Oc(l){if(!l||!/^\d{2}-\d{2}-\d{4}$/.test(l))return new Date(Number.NaN);const[I,t,v]=l.split("-").map(Number);return new Date(v,t-1,I)}function Ut(l){const I=l.getDate().toString().padStart(2,"0"),t=(l.getMonth()+1).toString().padStart(2,"0"),v=l.getFullYear();return`${I}-${t}-${v}`}function zn(l,I){return new Date(l,I-1,1)}function Un(l,I){return new Date(l,I,0)}function ys(l=new Date){const I=l.getFullYear(),t=l.getMonth()+1;let v=t-3,m=I;v<=0&&(v+=12,m-=1);const c=zn(m,v);let a=t-1,s=I;a<=0&&(a+=12,s-=1);const n=Un(s,a);return{from:Ut(c),to:Ut(n)}}const ws={currentMonth:(l=new Date)=>{const I=l.getFullYear(),t=l.getMonth()+1;return{from:Ut(zn(I,t)),to:Ut(Un(I,t))}},previousMonth:(l=new Date)=>{const I=l.getFullYear();let v=l.getMonth()+1-1,m=I;return v===0&&(v=12,m=I-1),{from:Ut(zn(m,v)),to:Ut(Un(m,v))}},last3Months:ys,currentYear:(l=new Date)=>{const I=l.getFullYear();return{from:Ut(new Date(I,0,1)),to:Ut(new Date(I,11,31))}},previousYear:(l=new Date)=>{const I=l.getFullYear()-1;return{from:Ut(new Date(I,0,1)),to:Ut(new Date(I,11,31))}}},Fc={class:"columns justify-end"},jc={class:"row items-center justify-end"},Dc=g.defineComponent({__name:"DatePicker",props:{label:{default:"Date"},date:{default:""},required:{type:Boolean,default:!1},minDate:{default:void 0},maxDate:{default:void 0},datesDisabled:{default:()=>[]},requiredErrorMessage:{default:"Ce champ est obligatoire !"},invalidDateErrorMessage:{default:"Date invalide!"},disabled:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},placeholder:{default:void 0},closeLabel:{default:"Close"},rules:{default:()=>[]}},emits:["update:date"],setup(l,{emit:I}){const t=l,v=I,m=g.useAttrs(),c=g.ref(t.date),a=g.ref(t.date),s=g.ref(null),n=S=>{if(!S||S.length!==10)return!1;const _=/^(\d{2})-(\d{2})-(\d{4})$/,T=S.match(_);if(!T)return!1;const D=Number.parseInt(T[1],10),z=Number.parseInt(T[2],10),P=Number.parseInt(T[3],10);if(z<1||z>12||D<1||D>31)return!1;const N=new Date(P,z-1,D);return N.getFullYear()===P&&N.getMonth()===z-1&&N.getDate()===D},e=S=>{if(!S)return null;if(S.length!==10)return"Le format doit être JJ-MM-AAAA";const _=/^(\d{2})-(\d{2})-(\d{4})$/,T=S.match(_);if(!T)return"Format invalide. Utilisez JJ-MM-AAAA";const D=Number.parseInt(T[1],10),z=Number.parseInt(T[2],10),P=Number.parseInt(T[3],10),N=r(z);if(N)return N;const V=u(D,z,P);return V||(i(D,z,P)?null:"Date inexistante")},r=S=>S<1||S>12?"Le mois doit être entre 01 et 12":null,u=(S,_,T)=>S<1||S>31?"Le jour doit être entre 01 et 31":[4,6,9,11].includes(_)&&S>30?`Le mois ${_} n'a que 30 jours`:_===2?o(S,T):null,o=(S,_)=>{const T=_%4===0&&_%100!==0||_%400===0;return T&&S>29?"Février a maximum 29 jours pour les années bissextiles":!T&&S>28?"Février a maximum 28 jours":null},i=(S,_,T)=>{const D=new Date(T,_-1,S);return D.getFullYear()===T&&D.getMonth()===_-1&&D.getDate()===S},d=()=>{a.value?s.value=e(a.value):s.value=null},h=g.computed(()=>S=>{const _=S.replaceAll("/","-");return ho(_,t.minDate,t.maxDate,t.datesDisabled)}),f=S=>{n(S)&&(c.value=S,a.value=S,s.value=null,v("update:date",S))},b=S=>{if(typeof S=="string")if(a.value=S,v("update:date",S),S.length===10){const _=e(S);_||(c.value=S),s.value=_}else S===""&&(c.value="",s.value=null);else S===null&&(a.value="",c.value="",s.value=null,v("update:date",""))},p=g.computed(()=>{const S=[...t.rules];return t.required&&S.push(_=>!!_||t.requiredErrorMessage),S.push(_=>_?n(_)||s.value||t.invalidDateErrorMessage:!0),S});return g.watch(()=>t.date,S=>{S!==c.value&&(c.value=S,a.value=S,d())}),(S,_)=>(g.openBlock(),g.createElementBlock("div",Fc,[g.createVNode(en,g.mergeProps(g.unref(m),{class:"full-width","model-value":a.value,mask:"##-##-####",dense:"",label:S.label,"data-cy":"datePick",rules:p.value,disable:S.disabled,required:S.required,outlined:S.outlined,placeholder:S.placeholder,"onUpdate:modelValue":b,onBlur:d}),{append:g.withCtx(()=>[g.createVNode(vt,{name:"event",class:"cursor-pointer","data-testid":"calendar-icon-picker"},{default:g.withCtx(()=>[g.createVNode(ms,{cover:"","transition-show":"scale","transition-hide":"scale"},{default:g.withCtx(()=>[g.createVNode(ps,{mask:"DD-MM-YYYY","model-value":c.value,options:h.value,disable:S.disabled,"onUpdate:modelValue":f},{default:g.withCtx(()=>[g.createElementVNode("div",jc,[g.withDirectives(g.createVNode(ot,{label:S.closeLabel,color:"primary",flat:""},null,8,["label"]),[[ao]])])]),_:1},8,["model-value","options","disable"])]),_:1})]),_:1})]),_:1},16,["model-value","label","rules","disable","required","outlined","placeholder"])]))}}),Pc={class:"date-range-wrapper"},Nc={class:"date-range-flex"},Lc={key:0,class:"actions-group"},Vc={class:"date-range-popup"},qc={key:0,class:"presets-section"},zc={class:"presets-grid"},Uc={class:"presets-row"},Wc={class:"presets-row"},Hc={class:"calendar-container"},Yc={class:"popup-actions"},Qc={key:0,class:"hint"},Kc={class:"text-warning text-caption q-mb-none"},Xc=g.defineComponent({__name:"DateRange",props:{allowSameDate:{type:Boolean,default:!0},from:{default:""},to:{default:""},labelStart:{default:"De"},labelEnd:{default:"À"},startDateHint:{default:""},resetLabel:{default:"Reinitialiser"},closeLabel:{default:"Fermer"},locale:{default:()=>vs},required:{type:Boolean,default:!1},requiredErrorMessage:{default:"Ce champ est obligatoire !"},invalidDateErrorMessage:{default:"Date invalide!"},rules:{default:()=>[]},minDate:{default:void 0},maxDate:{default:void 0},datesDisabled:{default:()=>[]},highlightEvents:{default:()=>[]},disabled:{type:Boolean,default:!1},idCy:{default:"dateRange"},isIconCalendar:{type:Boolean},resetPosition:{},hideActions:{type:Boolean,default:!1},hideShortcuts:{type:Boolean,default:!1},shortcuts:{default:()=>[{id:"currentMonth",label:"Mois courant"},{id:"previousMonth",label:"Mois précédent"},{id:"last3Months",label:"3 derniers mois"},{id:"currentYear",label:"Année courante"},{id:"previousYear",label:"Année précédente"}]}},emits:["update:dateRange","clear"],setup(l,{expose:I,emit:t}){const v=l,m=t,c=g.ref({from:v.from,to:v.to}),a=g.ref(null),s=g.computed(()=>`from-date-${v.idCy}`),n=g.computed(()=>`to-date-${v.idCy}`),e=g.ref(null),r=g.computed(()=>v.shortcuts.map(R=>({...R,getRange:ws[R.id]}))),u=g.computed(()=>r.value.slice(0,3)),o=g.computed(()=>r.value.slice(3)),i=()=>{c.value=Xt.reset(),D.value=null,z.value=null,e.value=null,w(),m("clear")},d=()=>{a.value&&a.value.hide()},h=()=>{if(e.value=null,!(!c.value.from||!c.value.to))for(const R of r.value)try{const U=R.getRange(new Date);if(U.from===c.value.from&&U.to===c.value.to){e.value=R.id;break}}catch(U){console.error("Error checking preset:",U)}},f=R=>{if(!R||R.length!==10)return!1;const U=/^(\d{2})-(\d{2})-(\d{4})$/,q=R.match(U);if(!q)return!1;const K=Number.parseInt(q[1],10),j=Number.parseInt(q[2],10),Y=Number.parseInt(q[3],10);if(j<1||j>12||K<1||K>31)return!1;const F=new Date(Y,j-1,K);return F.getFullYear()===Y&&F.getMonth()===j-1&&F.getDate()===K},b=R=>{if(!R)return null;if(R.length!==10)return"Le format doit être JJ-MM-AAAA";const U=/^(\d{2})-(\d{2})-(\d{4})$/,q=R.match(U);if(!q)return"Format invalide. Utilisez JJ-MM-AAAA";const K=Number.parseInt(q[1],10),j=Number.parseInt(q[2],10),Y=Number.parseInt(q[3],10),F=p(j);if(F)return F;const B=S(K,j,Y);return B||(T(K,j,Y)?null:"Date inexistante")},p=R=>R<1||R>12?"Le mois doit être entre 01 et 12":null,S=(R,U,q)=>R<1||R>31?"Le jour doit être entre 01 et 31":[4,6,9,11].includes(U)&&R>30?`Le mois ${U} n'a que 30 jours`:U===2?_(R,q):null,_=(R,U)=>{const q=U%4===0&&U%100!==0||U%400===0;return q&&R>29?"Février a maximum 29 jours pour les années bissextiles":!q&&R>28?"Février a maximum 28 jours":null},T=(R,U,q)=>{const K=new Date(q,U-1,R);return K.getFullYear()===q&&K.getMonth()===U-1&&K.getDate()===R},D=g.ref(null),z=g.ref(null),P=()=>{c.value.from?D.value=b(c.value.from):D.value=null},N=()=>{c.value.to?z.value=b(c.value.to):z.value=null},V=g.computed(()=>R=>{const U=R.replaceAll("/","-");return ho(U,v.minDate,v.maxDate,v.datesDisabled)});let W=!1;const L=()=>{W=!0,c.value.from="",D.value=null,e.value=null,w(),setTimeout(()=>{W=!1},100)},A=()=>{W=!0,c.value.to="",z.value=null,e.value=null,w(),setTimeout(()=>{W=!1},100)},M=R=>{if(R===null||R===""){const U=c.value.from;c.value.from="",D.value=null,e.value=null,w(),!c.value.to&&U&&!c.value.from&&m("clear");return}Xt.handleInput(R,U=>{const q=c.value.from;if(U&&U.length===10){const K=b(U);if(D.value=K,K){c.value.from=U,w();return}}else D.value=null;c.value=Xt.validateAndUpdate(c.value,U,!0),h(),w(),!U&&!c.value.to&&q&&m("clear")})},C=R=>{if(R===null||R===""){const U=c.value.to;c.value.to="",z.value=null,e.value=null,w(),!c.value.from&&U&&!c.value.to&&m("clear");return}Xt.handleInput(R,U=>{const q=c.value.to;if(U&&U.length===10){const K=b(U);if(z.value=K,K){c.value.to=U,w();return}}else z.value=null;c.value=Xt.validateAndUpdate(c.value,U,!1),h(),w(),!U&&!c.value.from&&q&&m("clear")})},y=()=>{setTimeout(()=>{c.value.from&&c.value.from.length===10?D.value=b(c.value.from):D.value=null,c.value.to&&c.value.to.length===10?z.value=b(c.value.to):z.value=null,!v.allowSameDate&&c.value.from&&c.value.to&&c.value.from===c.value.to&&(c.value.to=""),h()},10)},x=R=>{const U=Xt.handlePickerUpdate(R);(U.from!==c.value.from||U.to!==c.value.to)&&(e.value=null),c.value=U,w(),h()},w=()=>{m("update:dateRange",{...c.value})},k=g.computed(()=>[...v.required?[R=>!!R||v.requiredErrorMessage]:[],...v.rules,R=>{if(R&&!f(R))return D.value||v.invalidDateErrorMessage||"Date invalide!";const U=c.value.to;if(!R||!U)return!0;const q=Xt.isEndDateValid(R,U,v.allowSameDate);return v.allowSameDate?q||"La date de début doit être avant ou égale à la date de fin":q||"La date de début doit être strictement avant la date de fin"}]),E=g.computed(()=>[...v.required?[R=>!!R||v.requiredErrorMessage]:[],...v.rules,R=>{if(R&&!f(R))return z.value||v.invalidDateErrorMessage||"Date invalide!";const U=c.value.from;if(!R||!U)return!0;const q=Xt.isEndDateValid(U,R,v.allowSameDate);return v.allowSameDate?q||"La date de fin doit être après ou égale à la date de début":q||"La date de fin doit être strictement après la date de début"}]);g.watch([()=>c.value.from,()=>c.value.to],([R,U],[q,K])=>{!R&&!U&&(q||K)&&!W&&(D.value=null,z.value=null,e.value=null,m("clear"))}),g.watch(()=>v.from,R=>{R!==c.value.from&&(c.value.from=R,P(),h())}),g.watch(()=>v.to,R=>{R!==c.value.to&&(c.value.to=R,N(),h())}),I({setDateRange:R=>{c.value={from:R.from,to:R.to},P(),N(),h(),w()},getCurrentRange:()=>({from:c.value.from,to:c.value.to}),resetDate:()=>{i()}});const O=R=>{try{const U=R.getRange(new Date);c.value={from:U.from,to:U.to},e.value=R.id,P(),N(),w()}catch(U){console.error("Error applying date preset:",U)}};return g.onMounted(()=>{P(),N(),h()}),(R,U)=>(g.openBlock(),g.createElementBlock("div",Pc,[g.createElementVNode("div",Nc,[g.createVNode(en,g.mergeProps(R.$attrs,{"data-cy":s.value,"model-value":c.value.from,mask:"##-##-####",label:R.labelStart,rules:k.value,disable:R.disabled,required:R.required,"hide-bottom-space":"","onUpdate:modelValue":M,onClear:L,onBlur:P,class:"date-input",clearable:""}),null,16,["data-cy","model-value","label","rules","disable","required"]),g.createVNode(en,g.mergeProps(R.$attrs,{"model-value":c.value.to,mask:"##-##-####",label:R.labelEnd,"hide-bottom-space":"","data-cy":n.value,rules:E.value,disable:R.disabled,required:R.required,"onUpdate:modelValue":C,onClear:A,onBlur:N,class:"date-input",clearable:""}),null,16,["model-value","label","data-cy","rules","disable","required"]),R.hideActions?g.createCommentVNode("",!0):(g.openBlock(),g.createElementBlock("div",Lc,[g.createVNode(vt,{name:"event",size:"30px",class:"cursor-pointer calendar-icon",style:{opacity:"0.55"},"data-cy":"calendar-icon-range"},{default:g.withCtx(()=>[g.createVNode(ms,{cover:"","transition-show":"scale","transition-hide":"scale",ref_key:"popupRef",ref:a},{default:g.withCtx(()=>[g.createElementVNode("div",Vc,[R.hideShortcuts?g.createCommentVNode("",!0):(g.openBlock(),g.createElementBlock("div",qc,[U[0]||(U[0]=g.createElementVNode("div",{class:"presets-title"},"Périodes rapides :",-1)),g.createElementVNode("div",zc,[g.createElementVNode("div",Uc,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(u.value,q=>(g.openBlock(),g.createBlock(ot,{key:q.id,label:q.label,color:e.value===q.id?"primary":"grey-7",outline:e.value!==q.id,flat:"",dense:"",size:"sm",class:"preset-btn",onClick:K=>O(q),"data-cy":`date-preset-${q.id}`},null,8,["label","color","outline","onClick","data-cy"]))),128))]),g.createElementVNode("div",Wc,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(o.value,q=>(g.openBlock(),g.createBlock(ot,{key:q.id,label:q.label,color:e.value===q.id?"primary":"grey-7",outline:e.value!==q.id,flat:"",dense:"",size:"sm",class:"preset-btn",onClick:K=>O(q),"data-cy":`date-preset-${q.id}`},null,8,["label","color","outline","onClick","data-cy"]))),128))])])])),g.createElementVNode("div",Hc,[g.createVNode(ps,{"model-value":c.value,mask:"DD-MM-YYYY","today-btn":"",range:"","data-cy":"date-picker-range",locale:R.locale,options:V.value,events:R.highlightEvents,"event-color":"warning",disable:R.disabled,"onUpdate:modelValue":x,onRangeEnd:y,"no-unset":""},null,8,["model-value","locale","options","events","disable"])]),g.createElementVNode("div",Yc,[g.createVNode(ot,{label:R.resetLabel,color:"grey-7",flat:"",dense:"",onClick:i,class:"q-mr-sm"},null,8,["label"]),g.createVNode(ot,{label:R.closeLabel,color:"primary",flat:"",dense:"",onClick:d},null,8,["label"])])])]),_:1},512)]),_:1})]))]),R.startDateHint?(g.openBlock(),g.createElementBlock("div",Qc,[g.createElementVNode("p",Kc,g.toDisplayString(R.startDateHint),1)])):g.createCommentVNode("",!0)]))}}),xs=Yt(Xc,[["__scopeId","data-v-86c1fdea"]]),Gc=["top","middle","bottom"],tn=$e({name:"QBadge",props:{color:String,textColor:String,floating:Boolean,transparent:Boolean,multiLine:Boolean,outline:Boolean,rounded:Boolean,label:[Number,String],align:{type:String,validator:l=>Gc.includes(l)}},setup(l,{slots:I}){const t=g.computed(()=>l.align!==void 0?{verticalAlign:l.align}:null),v=g.computed(()=>{const m=l.outline===!0&&l.color||l.textColor;return`q-badge flex inline items-center no-wrap q-badge--${l.multiLine===!0?"multi":"single"}-line`+(l.outline===!0?" q-badge--outline":l.color!==void 0?` bg-${l.color}`:"")+(m!==void 0?` text-${m}`:"")+(l.floating===!0?" q-badge--floating":"")+(l.rounded===!0?" q-badge--rounded":"")+(l.transparent===!0?" q-badge--transparent":"")});return()=>g.h("div",{class:v.value,style:t.value,role:"status","aria-label":l.label},It(I.default,l.label!==void 0?[l.label]:[]))}}),ar=$e({name:"QTooltip",inheritAttrs:!1,props:{...Pa,...Qi,...Xr,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...Xr.transitionShow,default:"jump-down"},transitionHide:{...Xr.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:Pn},self:{type:String,default:"top middle",validator:Pn},offset:{type:Array,default:()=>[14,14],validator:Qa},scrollTarget:Qn,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...Ki],setup(l,{slots:I,emit:t,attrs:v}){let m,c;const a=g.getCurrentInstance(),{proxy:{$q:s}}=a,n=g.ref(null),e=g.ref(!1),r=g.computed(()=>Nn(l.anchor,s.lang.rtl)),u=g.computed(()=>Nn(l.self,s.lang.rtl)),o=g.computed(()=>l.persistent!==!0),{registerTick:i,removeTick:d}=Zi(),{registerTimeout:h}=$i(),{transitionProps:f,transitionStyle:b}=Ji(l),{localScrollTarget:p,changeScrollEvent:S,unconfigureScrollTarget:_}=La(l,E),{anchorEl:T,canShow:D,anchorEvents:z}=Yi({showing:e,configureAnchorEl:k}),{show:P,hide:N}=Xi({showing:e,canShow:D,handleShow:A,handleHide:M,hideOnRouteChange:o,processOnMount:!0});Object.assign(z,{delayShow:x,delayHide:w});const{showPortal:V,hidePortal:W,renderPortal:L}=Gi(a,n,R,"tooltip");if(s.platform.is.mobile===!0){const U={anchorEl:T,innerRef:n,onClickOutside(K){return N(K),K.target.classList.contains("q-dialog__backdrop")&&St(K),!0}},q=g.computed(()=>l.modelValue===null&&l.persistent!==!0&&e.value===!0);g.watch(q,K=>{(K===!0?Ya:Dn)(U)}),g.onBeforeUnmount(()=>{Dn(U)})}function A(U){V(),i(()=>{c=new MutationObserver(()=>y()),c.observe(n.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),y(),E()}),m===void 0&&(m=g.watch(()=>s.screen.width+"|"+s.screen.height+"|"+l.self+"|"+l.anchor+"|"+s.lang.rtl,y)),h(()=>{V(!0),t("show",U)},l.transitionDuration)}function M(U){d(),W(),C(),h(()=>{W(!0),t("hide",U)},l.transitionDuration)}function C(){c!==void 0&&(c.disconnect(),c=void 0),m!==void 0&&(m(),m=void 0),_(),br(z,"tooltipTemp")}function y(){eo({targetEl:n.value,offset:l.offset,anchorEl:T.value,anchorOrigin:r.value,selfOrigin:u.value,maxHeight:l.maxHeight,maxWidth:l.maxWidth})}function x(U){if(s.platform.is.mobile===!0){In(),document.body.classList.add("non-selectable");const q=T.value,K=["touchmove","touchcancel","touchend","click"].map(j=>[q,j,"delayHide","passiveCapture"]);Gt(z,"tooltipTemp",K)}h(()=>{P(U)},l.delay)}function w(U){s.platform.is.mobile===!0&&(br(z,"tooltipTemp"),In(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),h(()=>{N(U)},l.hideDelay)}function k(){if(l.noParentEvent===!0||T.value===null)return;const U=s.platform.is.mobile===!0?[[T.value,"touchstart","delayShow","passive"]]:[[T.value,"mouseenter","delayShow","passive"],[T.value,"mouseleave","delayHide","passive"]];Gt(z,"anchor",U)}function E(){if(T.value!==null||l.scrollTarget!==void 0){p.value=Kn(T.value,l.scrollTarget);const U=l.noParentEvent===!0?y:N;S(p.value,U)}}function O(){return e.value===!0?g.h("div",{...v,ref:n,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",v.class],style:[v.style,b.value],role:"tooltip"},gt(I.default)):null}function R(){return g.h(g.Transition,f.value,O)}return g.onBeforeUnmount(C),Object.assign(a.proxy,{updatePosition:y}),L}}),Jt=$e({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(l,{slots:I,emit:t}){const v=g.getCurrentInstance(),{proxy:{$q:m}}=v,c=a=>{t("click",a)};return()=>{if(l.props===void 0)return g.h("th",{class:l.autoWidth===!0?"q-table--col-auto-width":"",onClick:c},gt(I.default));let a,s;const n=v.vnode.key;if(n){if(a=l.props.colsMap[n],a===void 0)return}else a=l.props.col;if(a.sortable===!0){const r=a.align==="right"?"unshift":"push";s=ji(I.default,[]),s[r](g.h(vt,{class:a.__iconClass,name:m.iconSet.table.arrowUp}))}else s=gt(I.default);const e={class:a.__thClass+(l.autoWidth===!0?" q-table--col-auto-width":""),style:a.headerStyle,onClick:r=>{a.sortable===!0&&l.props.sort(a),c(r)}};return g.h("th",e,s)}}}),sr=$e({name:"QTr",props:{props:Object,noHover:Boolean},setup(l,{slots:I}){const t=g.computed(()=>"q-tr"+(l.props===void 0||l.props.header===!0?"":" "+l.props.__trClass)+(l.noHover===!0?" q-tr--no-hover":""));return()=>g.h("tr",{style:l.props?.__trStyle,class:t.value},gt(I.default))}}),Jc=["text","rect","circle","QBtn","QBadge","QChip","QToolbar","QCheckbox","QRadio","QToggle","QSlider","QRange","QInput","QAvatar"],Zc=["wave","pulse","pulse-x","pulse-y","fade","blink","none"],Wn=$e({name:"QSkeleton",props:{...Ot,tag:{type:String,default:"div"},type:{type:String,validator:l=>Jc.includes(l),default:"rect"},animation:{type:String,validator:l=>Zc.includes(l),default:"wave"},animationSpeed:{type:[String,Number],default:1500},square:Boolean,bordered:Boolean,size:String,width:String,height:String},setup(l,{slots:I}){const t=g.getCurrentInstance(),v=Ft(l,t.proxy.$q),m=g.computed(()=>{const a=l.size!==void 0?[l.size,l.size]:[l.width,l.height];return{"--q-skeleton-speed":`${l.animationSpeed}ms`,width:a[0],height:a[1]}}),c=g.computed(()=>`q-skeleton q-skeleton--${v.value===!0?"dark":"light"} q-skeleton--type-${l.type}`+(l.animation!=="none"?` q-skeleton--anim q-skeleton--anim-${l.animation}`:"")+(l.square===!0?" q-skeleton--square":"")+(l.bordered===!0?" q-skeleton--bordered":""));return()=>g.h(l.tag,{class:c.value,style:m.value},gt(I.default))}}),Dr=$e({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(l,{slots:I}){const t=g.getCurrentInstance(),v=g.computed(()=>"q-td"+(l.autoWidth===!0?" q-table--col-auto-width":"")+(l.noHover===!0?" q-td--no-hover":"")+" ");return()=>{if(l.props===void 0)return g.h("td",{class:v.value},gt(I.default));const m=t.vnode.key,c=(l.props.colsMap!==void 0?l.props.colsMap[m]:null)||l.props.col;if(c===void 0)return;const{row:a}=l.props;return g.h("td",{class:v.value+c.__tdClass(a),style:c.__tdStyle(a)},gt(I.default))}}}),$c=["horizontal","vertical","cell","none"],ef=$e({name:"QMarkupTable",props:{...Ot,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:l=>$c.includes(l)}},setup(l,{slots:I}){const t=g.getCurrentInstance(),v=Ft(l,t.proxy.$q),m=g.computed(()=>`q-markup-table q-table__container q-table__card q-table--${l.separator}-separator`+(v.value===!0?" q-table--dark q-table__card--dark q-dark":"")+(l.dense===!0?" q-table--dense":"")+(l.flat===!0?" q-table--flat":"")+(l.bordered===!0?" q-table--bordered":"")+(l.square===!0?" q-table--square":"")+(l.wrapCells===!1?" q-table--no-wrap":""));return()=>g.h("div",{class:m.value},[g.h("table",{class:"q-table"},gt(I.default))])}});function Ss(l,I){return g.h("div",l,[g.h("table",{class:"q-table"},I)])}const tf={list:oo,table:ef},rf=["list","table","__qtable"],nf=$e({name:"QVirtualScroll",props:{...Mi,type:{type:String,default:"list",validator:l=>rf.includes(l)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:Qn},setup(l,{slots:I,attrs:t}){let v;const m=g.ref(null),c=g.computed(()=>l.itemsSize>=0&&l.itemsFn!==void 0?parseInt(l.itemsSize,10):Array.isArray(l.items)?l.items.length:0),{virtualScrollSliceRange:a,localResetVirtualScroll:s,padVirtualScroll:n,onVirtualScrollEvt:e}=$a({virtualScrollLength:c,getVirtualScrollTarget:d,getVirtualScrollEl:i}),r=g.computed(()=>{if(c.value===0)return[];const p=(S,_)=>({index:a.value.from+_,item:S});return l.itemsFn===void 0?l.items.slice(a.value.from,a.value.to).map(p):l.itemsFn(a.value.from,a.value.to-a.value.from).map(p)}),u=g.computed(()=>"q-virtual-scroll q-virtual-scroll"+(l.virtualScrollHorizontal===!0?"--horizontal":"--vertical")+(l.scrollTarget!==void 0?"":" scroll")),o=g.computed(()=>l.scrollTarget!==void 0?{}:{tabindex:0});g.watch(c,()=>{s()}),g.watch(()=>l.scrollTarget,()=>{f(),h()});function i(){return m.value.$el||m.value}function d(){return v}function h(){v=Kn(i(),l.scrollTarget),v.addEventListener("scroll",e,Ct.passive)}function f(){v!==void 0&&(v.removeEventListener("scroll",e,Ct.passive),v=void 0)}function b(){let p=n(l.type==="list"?"div":"tbody",r.value.map(I.default));return I.before!==void 0&&(p=I.before().concat(p)),It(I.after,p)}return g.onBeforeMount(()=>{s()}),g.onMounted(()=>{h()}),g.onActivated(()=>{h()}),g.onDeactivated(()=>{f()}),g.onBeforeUnmount(()=>{f()}),()=>{if(I.default===void 0){console.error("QVirtualScroll: default scoped slot is required for rendering");return}return l.type==="__qtable"?Ss({ref:m,class:"q-table__middle "+u.value},b()):g.h(tf[l.type],{...t,ref:m,class:[t.class,u.value],...o.value},b)}}}),of={xs:2,sm:4,md:6,lg:10,xl:14};function ca(l,I,t){return{transform:I===!0?`translateX(${t.lang.rtl===!0?"-":""}100%) scale3d(${-l},1,1)`:`scale3d(${l},1,1)`}}const af=$e({name:"QLinearProgress",props:{...Ot,...Vr,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(l,{slots:I}){const{proxy:t}=g.getCurrentInstance(),v=Ft(l,t.$q),m=qr(l,of),c=g.computed(()=>l.indeterminate===!0||l.query===!0),a=g.computed(()=>l.reverse!==l.query),s=g.computed(()=>({...m.value!==null?m.value:{},"--q-linear-progress-speed":`${l.animationSpeed}ms`})),n=g.computed(()=>"q-linear-progress"+(l.color!==void 0?` text-${l.color}`:"")+(l.reverse===!0||l.query===!0?" q-linear-progress--reverse":"")+(l.rounded===!0?" rounded-borders":"")),e=g.computed(()=>ca(l.buffer!==void 0?l.buffer:1,a.value,t.$q)),r=g.computed(()=>`with${l.instantFeedback===!0?"out":""}-transition`),u=g.computed(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${r.value} q-linear-progress__track--${v.value===!0?"dark":"light"}`+(l.trackColor!==void 0?` bg-${l.trackColor}`:"")),o=g.computed(()=>ca(c.value===!0?1:l.value,a.value,t.$q)),i=g.computed(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${r.value} q-linear-progress__model--${c.value===!0?"in":""}determinate`),d=g.computed(()=>({width:`${l.value*100}%`})),h=g.computed(()=>`q-linear-progress__stripe absolute-${l.reverse===!0?"right":"left"} q-linear-progress__stripe--${r.value}`);return()=>{const f=[g.h("div",{class:u.value,style:e.value}),g.h("div",{class:i.value,style:o.value})];return l.stripe===!0&&c.value===!1&&f.push(g.h("div",{class:h.value,style:d.value})),g.h("div",{class:n.value,style:s.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":l.indeterminate===!0?void 0:l.value},It(I.default,f))}}});let Yr=0;const sf={fullscreen:Boolean,noRouteFullscreenExit:Boolean},lf=["update:fullscreen","fullscreen"];function uf(){const l=g.getCurrentInstance(),{props:I,emit:t,proxy:v}=l;let m,c;const a=g.ref(!1);Di(l)===!0&&g.watch(()=>v.$route.fullPath,()=>{I.noRouteFullscreenExit!==!0&&e()}),g.watch(()=>I.fullscreen,r=>{a.value!==r&&s()}),g.watch(a,r=>{t("update:fullscreen",r),t("fullscreen",r)});function s(){a.value===!0?e():n()}function n(){a.value!==!0&&(a.value=!0,c=v.$el.parentNode,c.replaceChild(m,v.$el),document.body.appendChild(v.$el),Yr++,Yr===1&&document.body.classList.add("q-body--fullscreen-mixin"))}function e(){a.value===!0&&(c.replaceChild(v.$el,m),a.value=!1,Yr=Math.max(0,Yr-1),Yr===0&&(document.body.classList.remove("q-body--fullscreen-mixin"),v.$el.scrollIntoView!==void 0&&setTimeout(()=>{v.$el.scrollIntoView()})))}return g.onBeforeMount(()=>{m=document.createElement("span")}),g.onMounted(()=>{I.fullscreen===!0&&n()}),g.onBeforeUnmount(e),Object.assign(v,{toggleFullscreen:s,setFullscreen:n,exitFullscreen:e}),{inFullscreen:a,toggleFullscreen:s}}function cf(l,I){return new Date(l)-new Date(I)}const ff={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:l=>l==="ad"||l==="da",default:"ad"}};function df(l,I,t,v){const m=g.computed(()=>{const{sortBy:s}=I.value;return s&&t.value.find(n=>n.name===s)||null}),c=g.computed(()=>l.sortMethod!==void 0?l.sortMethod:(s,n,e)=>{const r=t.value.find(i=>i.name===n);if(r===void 0||r.field===void 0)return s;const u=e===!0?-1:1,o=typeof r.field=="function"?i=>r.field(i):i=>i[r.field];return s.sort((i,d)=>{let h=o(i),f=o(d);return r.rawSort!==void 0?r.rawSort(h,f,i,d)*u:h==null?-1*u:f==null?1*u:r.sort!==void 0?r.sort(h,f,i,d)*u:Ti(h)===!0&&Ti(f)===!0?(h-f)*u:Vn(h)===!0&&Vn(f)===!0?cf(h,f)*u:typeof h=="boolean"&&typeof f=="boolean"?(h-f)*u:([h,f]=[h,f].map(b=>(b+"").toLocaleString().toLowerCase()),h<f?-1*u:h===f?0:u)})});function a(s){let n=l.columnSortOrder;if(ts(s)===!0)s.sortOrder&&(n=s.sortOrder),s=s.name;else{const u=t.value.find(o=>o.name===s);u?.sortOrder&&(n=u.sortOrder)}let{sortBy:e,descending:r}=I.value;e!==s?(e=s,r=n==="da"):l.binaryStateSort===!0?r=!r:r===!0?n==="ad"?e=null:r=!1:n==="ad"?r=!0:e=null,v({sortBy:e,descending:r,page:1})}return{columnToSort:m,computedSortMethod:c,sort:a}}const hf={filter:[String,Object],filterMethod:Function};function pf(l,I){const t=g.computed(()=>l.filterMethod!==void 0?l.filterMethod:(v,m,c,a)=>{const s=m?m.toLowerCase():"";return v.filter(n=>c.some(e=>{const r=a(e,n)+"";return(r==="undefined"||r==="null"?"":r.toLowerCase()).indexOf(s)!==-1}))});return g.watch(()=>l.filter,()=>{g.nextTick(()=>{I({page:1},!0)})},{deep:!0}),{computedFilterMethod:t}}function mf(l,I){for(const t in I)if(I[t]!==l[t])return!1;return!0}function fa(l){return l.page<1&&(l.page=1),l.rowsPerPage!==void 0&&l.rowsPerPage<1&&(l.rowsPerPage=0),l}const gf={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function bf(l,I){const{props:t,emit:v}=l,m=g.ref(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:t.rowsPerPageOptions.length!==0?t.rowsPerPageOptions[0]:5},t.pagination)),c=g.computed(()=>{const r=t["onUpdate:pagination"]!==void 0?{...m.value,...t.pagination}:m.value;return fa(r)}),a=g.computed(()=>c.value.rowsNumber!==void 0);function s(r){n({pagination:r,filter:t.filter})}function n(r={}){g.nextTick(()=>{v("request",{pagination:r.pagination||c.value,filter:r.filter||t.filter,getCellValue:I})})}function e(r,u){const o=fa({...c.value,...r});if(mf(c.value,o)===!0){a.value===!0&&u===!0&&s(o);return}if(a.value===!0){s(o);return}t.pagination!==void 0&&t["onUpdate:pagination"]!==void 0?v("update:pagination",o):m.value=o}return{innerPagination:m,computedPagination:c,isServerSide:a,requestServerInteraction:n,setPagination:e}}function vf(l,I,t,v,m,c){const{props:a,emit:s,proxy:{$q:n}}=l,e=g.computed(()=>v.value===!0?t.value.rowsNumber||0:c.value),r=g.computed(()=>{const{page:_,rowsPerPage:T}=t.value;return(_-1)*T}),u=g.computed(()=>{const{page:_,rowsPerPage:T}=t.value;return _*T}),o=g.computed(()=>t.value.page===1),i=g.computed(()=>t.value.rowsPerPage===0?1:Math.max(1,Math.ceil(e.value/t.value.rowsPerPage))),d=g.computed(()=>u.value===0?!0:t.value.page>=i.value),h=g.computed(()=>(a.rowsPerPageOptions.includes(I.value.rowsPerPage)?a.rowsPerPageOptions:[I.value.rowsPerPage].concat(a.rowsPerPageOptions)).map(T=>({label:T===0?n.lang.table.allRows:""+T,value:T})));g.watch(i,(_,T)=>{if(_===T)return;const D=t.value.page;_&&!D?m({page:1}):_<D&&m({page:_})});function f(){m({page:1})}function b(){const{page:_}=t.value;_>1&&m({page:_-1})}function p(){const{page:_,rowsPerPage:T}=t.value;u.value>0&&_*T<e.value&&m({page:_+1})}function S(){m({page:i.value})}return a["onUpdate:pagination"]!==void 0&&s("update:pagination",{...t.value}),{firstRowIndex:r,lastRowIndex:u,isFirstPage:o,isLastPage:d,pagesNumber:i,computedRowsPerPageOptions:h,computedRowsNumber:e,firstPage:f,prevPage:b,nextPage:p,lastPage:S}}const yf={selection:{type:String,default:"none",validator:l=>["single","multiple","none"].includes(l)},selected:{type:Array,default:()=>[]}},wf=["update:selected","selection"];function xf(l,I,t,v){const m=g.computed(()=>{const d={};return l.selected.map(v.value).forEach(h=>{d[h]=!0}),d}),c=g.computed(()=>l.selection!=="none"),a=g.computed(()=>l.selection==="single"),s=g.computed(()=>l.selection==="multiple"),n=g.computed(()=>t.value.length!==0&&t.value.every(d=>m.value[v.value(d)]===!0)),e=g.computed(()=>n.value!==!0&&t.value.some(d=>m.value[v.value(d)]===!0)),r=g.computed(()=>l.selected.length);function u(d){return m.value[d]===!0}function o(){I("update:selected",[])}function i(d,h,f,b){I("selection",{rows:h,added:f,keys:d,evt:b});const p=a.value===!0?f===!0?h:[]:f===!0?l.selected.concat(h):l.selected.filter(S=>d.includes(v.value(S))===!1);I("update:selected",p)}return{hasSelectionMode:c,singleSelection:a,multipleSelection:s,allRowsSelected:n,someRowsSelected:e,rowsSelectedNumber:r,isRowSelected:u,clearSelection:o,updateSelection:i}}function da(l){return Array.isArray(l)?l.slice():[]}const Sf={expanded:Array},kf=["update:expanded"];function Cf(l,I){const t=g.ref(da(l.expanded));g.watch(()=>l.expanded,a=>{t.value=da(a)});function v(a){return t.value.includes(a)}function m(a){l.expanded!==void 0?I("update:expanded",a):t.value=a}function c(a,s){const n=t.value.slice(),e=n.indexOf(a);s===!0?e===-1&&(n.push(a),m(n)):e!==-1&&(n.splice(e,1),m(n))}return{isRowExpanded:v,setExpanded:m,updateExpanded:c}}const _f={visibleColumns:Array};function Af(l,I,t){const v=g.computed(()=>{if(l.columns!==void 0)return l.columns;const s=l.rows[0];return s!==void 0?Object.keys(s).map(n=>({name:n,label:n.toUpperCase(),field:n,align:Ti(s[n])?"right":"left",sortable:!0})):[]}),m=g.computed(()=>{const{sortBy:s,descending:n}=I.value;return(l.visibleColumns!==void 0?v.value.filter(r=>r.required===!0||l.visibleColumns.includes(r.name)===!0):v.value).map(r=>{const u=r.align||"right",o=`text-${u}`;return{...r,align:u,__iconClass:`q-table__sort-icon q-table__sort-icon--${u}`,__thClass:o+(r.headerClasses!==void 0?" "+r.headerClasses:"")+(r.sortable===!0?" sortable":"")+(r.name===s?` sorted ${n===!0?"sort-desc":""}`:""),__tdStyle:r.style!==void 0?typeof r.style!="function"?()=>r.style:r.style:()=>null,__tdClass:r.classes!==void 0?typeof r.classes!="function"?()=>o+" "+r.classes:i=>o+" "+r.classes(i):()=>o}})}),c=g.computed(()=>{const s={};return m.value.forEach(n=>{s[n.name]=n}),s}),a=g.computed(()=>l.tableColspan!==void 0?l.tableColspan:m.value.length+(t.value===!0?1:0));return{colList:v,computedCols:m,computedColsMap:c,computedColspan:a}}const xn="q-table__bottom row items-center",ks={};Za.forEach(l=>{ks[l]={}});const Cs=$e({name:"QTable",props:{rows:{type:Array,required:!0},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:l=>["horizontal","vertical","cell","none"].includes(l)},wrapCells:Boolean,virtualScroll:Boolean,virtualScrollTarget:{},...ks,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],tableRowStyleFn:Function,tableRowClassFn:Function,cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],cardStyleFn:Function,cardClassFn:Function,hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...Ot,...sf,..._f,...hf,...gf,...Sf,...yf,...ff},emits:["request","virtualScroll",...lf,...kf,...wf],setup(l,{slots:I,emit:t}){const v=g.getCurrentInstance(),{proxy:{$q:m}}=v,c=Ft(l,m),{inFullscreen:a,toggleFullscreen:s}=uf(),n=g.computed(()=>typeof l.rowKey=="function"?l.rowKey:he=>he[l.rowKey]),e=g.ref(null),r=g.ref(null),u=g.computed(()=>l.grid!==!0&&l.virtualScroll===!0),o=g.computed(()=>" q-table__card"+(c.value===!0?" q-table__card--dark q-dark":"")+(l.square===!0?" q-table--square":"")+(l.flat===!0?" q-table--flat":"")+(l.bordered===!0?" q-table--bordered":"")),i=g.computed(()=>`q-table__container q-table--${l.separator}-separator column no-wrap`+(l.grid===!0?" q-table--grid":o.value)+(c.value===!0?" q-table--dark":"")+(l.dense===!0?" q-table--dense":"")+(l.wrapCells===!1?" q-table--no-wrap":"")+(a.value===!0?" fullscreen scroll":"")),d=g.computed(()=>i.value+(l.loading===!0?" q-table--loading":""));g.watch(()=>l.tableStyle+l.tableClass+l.tableHeaderStyle+l.tableHeaderClass+i.value,()=>{u.value===!0&&r.value?.reset()});const{innerPagination:h,computedPagination:f,isServerSide:b,requestServerInteraction:p,setPagination:S}=bf(v,Ne),{computedFilterMethod:_}=pf(l,S),{isRowExpanded:T,setExpanded:D,updateExpanded:z}=Cf(l,t),P=g.computed(()=>{let he=l.rows;if(b.value===!0||he.length===0)return he;const{sortBy:we,descending:Te}=f.value;return l.filter&&(he=_.value(he,l.filter,O.value,Ne)),q.value!==null&&(he=K.value(l.rows===he?he.slice():he,we,Te)),he}),N=g.computed(()=>P.value.length),V=g.computed(()=>{let he=P.value;if(b.value===!0)return he;const{rowsPerPage:we}=f.value;return we!==0&&(Y.value===0&&l.rows!==he?he.length>F.value&&(he=he.slice(0,F.value)):he=he.slice(Y.value,F.value)),he}),{hasSelectionMode:W,singleSelection:L,multipleSelection:A,allRowsSelected:M,someRowsSelected:C,rowsSelectedNumber:y,isRowSelected:x,clearSelection:w,updateSelection:k}=xf(l,t,V,n),{colList:E,computedCols:O,computedColsMap:R,computedColspan:U}=Af(l,f,W),{columnToSort:q,computedSortMethod:K,sort:j}=df(l,f,E,S),{firstRowIndex:Y,lastRowIndex:F,isFirstPage:B,isLastPage:H,pagesNumber:X,computedRowsPerPageOptions:ee,computedRowsNumber:Q,firstPage:Z,prevPage:te,nextPage:ie,lastPage:J}=vf(v,h,f,b,S,N),oe=g.computed(()=>V.value.length===0),ae=g.computed(()=>{const he={};return Za.forEach(we=>{he[we]=l[we]}),he.virtualScrollItemSize===void 0&&(he.virtualScrollItemSize=l.dense===!0?28:48),he});function fe(){u.value===!0&&r.value.reset()}function ce(){if(l.grid===!0)return st();const he=l.hideHeader!==!0?De:null;if(u.value===!0){const Te=I["top-row"],Oe=I["bottom-row"],_e={default:Qe=>xe(Qe.item,I.body,Qe.index)};if(Te!==void 0){const Qe=g.h("tbody",Te({cols:O.value}));_e.before=he===null?()=>Qe:()=>[he()].concat(Qe)}else he!==null&&(_e.before=he);return Oe!==void 0&&(_e.after=()=>g.h("tbody",Oe({cols:O.value}))),g.h(nf,{ref:r,class:l.tableClass,style:l.tableStyle,...ae.value,scrollTarget:l.virtualScrollTarget,items:V.value,type:"__qtable",tableColspan:U.value,onVirtualScroll:me},_e)}const we=[Ie()];return he!==null&&we.unshift(he()),Ss({class:["q-table__middle scroll",l.tableClass],style:l.tableStyle},we)}function de(he,we){if(r.value!==null){r.value.scrollTo(he,we);return}he=parseInt(he,10);const Te=e.value.querySelector(`tbody tr:nth-of-type(${he+1})`);if(Te!==null){const Oe=e.value.querySelector(".q-table__middle.scroll"),_e=Te.offsetTop-l.virtualScrollStickySizeStart,Qe=_e<Oe.scrollTop?"decrease":"increase";Oe.scrollTop=_e,t("virtualScroll",{index:he,from:0,to:h.value.rowsPerPage-1,direction:Qe})}}function me(he){t("virtualScroll",he)}function be(){return[g.h(af,{class:"q-table__linear-progress",color:l.color,dark:c.value,indeterminate:!0,trackColor:"transparent"})]}function xe(he,we,Te){const Oe=n.value(he),_e=x(Oe);if(we!==void 0){const G={key:Oe,row:he,pageIndex:Te,__trClass:_e?"selected":""};if(l.tableRowStyleFn!==void 0&&(G.__trStyle=l.tableRowStyleFn(he)),l.tableRowClassFn!==void 0){const ne=l.tableRowClassFn(he);ne&&(G.__trClass=`${ne} ${G.__trClass}`)}return we(Ee(G))}const Qe=I["body-cell"],Ke=O.value.map(G=>{const ne=I[`body-cell-${G.name}`],le=ne!==void 0?ne:Qe;return le!==void 0?le(Me({key:Oe,row:he,pageIndex:Te,col:G})):g.h("td",{class:G.__tdClass(he),style:G.__tdStyle(he)},Ne(G,he))});if(W.value===!0){const G=I["body-selection"],ne=G!==void 0?G(We({key:Oe,row:he,pageIndex:Te})):[g.h(lr,{modelValue:_e,color:l.color,dark:c.value,dense:l.dense,"onUpdate:modelValue":(le,pe)=>{k([Oe],[he],le,pe)}})];Ke.unshift(g.h("td",{class:"q-table--col-auto-width"},ne))}const re={key:Oe,class:{selected:_e}};if(l.onRowClick!==void 0&&(re.class["cursor-pointer"]=!0,re.onClick=G=>{t("rowClick",G,he,Te)}),l.onRowDblclick!==void 0&&(re.class["cursor-pointer"]=!0,re.onDblclick=G=>{t("rowDblclick",G,he,Te)}),l.onRowContextmenu!==void 0&&(re.class["cursor-pointer"]=!0,re.onContextmenu=G=>{t("rowContextmenu",G,he,Te)}),l.tableRowStyleFn!==void 0&&(re.style=l.tableRowStyleFn(he)),l.tableRowClassFn!==void 0){const G=l.tableRowClassFn(he);G&&(re.class[G]=!0)}return g.h("tr",re,Ke)}function Ie(){const he=I.body,we=I["top-row"],Te=I["bottom-row"];let Oe=V.value.map((_e,Qe)=>xe(_e,he,Qe));return we!==void 0&&(Oe=we({cols:O.value}).concat(Oe)),Te!==void 0&&(Oe=Oe.concat(Te({cols:O.value}))),g.h("tbody",Oe)}function Ee(he){return Ve(he),he.cols=he.cols.map(we=>Lt({...we},"value",()=>Ne(we,he.row))),he}function Me(he){return Ve(he),Lt(he,"value",()=>Ne(he.col,he.row)),he}function We(he){return Ve(he),he}function Ve(he){Object.assign(he,{cols:O.value,colsMap:R.value,sort:j,rowIndex:Y.value+he.pageIndex,color:l.color,dark:c.value,dense:l.dense}),W.value===!0&&Lt(he,"selected",()=>x(he.key),(we,Te)=>{k([he.key],[he.row],we,Te)}),Lt(he,"expand",()=>T(he.key),we=>{z(he.key,we)})}function Ne(he,we){const Te=typeof he.field=="function"?he.field(we):we[he.field];return he.format!==void 0?he.format(Te,we):Te}const qe=g.computed(()=>({pagination:f.value,pagesNumber:X.value,isFirstPage:B.value,isLastPage:H.value,firstPage:Z,prevPage:te,nextPage:ie,lastPage:J,inFullscreen:a.value,toggleFullscreen:s}));function Fe(){const he=I.top,we=I["top-left"],Te=I["top-right"],Oe=I["top-selection"],_e=W.value===!0&&Oe!==void 0&&y.value>0,Qe="q-table__top relative-position row items-center";if(he!==void 0)return g.h("div",{class:Qe},[he(qe.value)]);let Ke;if(_e===!0?Ke=Oe(qe.value).slice():(Ke=[],we!==void 0?Ke.push(g.h("div",{class:"q-table__control"},[we(qe.value)])):l.title&&Ke.push(g.h("div",{class:"q-table__control"},[g.h("div",{class:["q-table__title",l.titleClass]},l.title)]))),Te!==void 0&&(Ke.push(g.h("div",{class:"q-table__separator col"})),Ke.push(g.h("div",{class:"q-table__control"},[Te(qe.value)]))),Ke.length!==0)return g.h("div",{class:Qe},Ke)}const ke=g.computed(()=>C.value===!0?null:M.value);function De(){const he=Ue();return l.loading===!0&&I.loading===void 0&&he.push(g.h("tr",{class:"q-table__progress"},[g.h("th",{class:"relative-position",colspan:U.value},be())])),g.h("thead",he)}function Ue(){const he=I.header,we=I["header-cell"];if(he!==void 0)return he(Le({header:!0})).slice();const Te=O.value.map(Oe=>{const _e=I[`header-cell-${Oe.name}`],Qe=_e!==void 0?_e:we,Ke=Le({col:Oe});return Qe!==void 0?Qe(Ke):g.h(Jt,{key:Oe.name,props:Ke},()=>Oe.label)});if(L.value===!0&&l.grid!==!0)Te.unshift(g.h("th",{class:"q-table--col-auto-width"}," "));else if(A.value===!0){const Oe=I["header-selection"],_e=Oe!==void 0?Oe(Le({})):[g.h(lr,{color:l.color,modelValue:ke.value,dark:c.value,dense:l.dense,"onUpdate:modelValue":Ge})];Te.unshift(g.h("th",{class:"q-table--col-auto-width"},_e))}return[g.h("tr",{class:l.tableHeaderClass,style:l.tableHeaderStyle},Te)]}function Le(he){return Object.assign(he,{cols:O.value,sort:j,colsMap:R.value,color:l.color,dark:c.value,dense:l.dense}),A.value===!0&&Lt(he,"selected",()=>ke.value,Ge),he}function Ge(he){C.value===!0&&(he=!1),k(V.value.map(n.value),V.value,he)}const et=g.computed(()=>{const he=[l.iconFirstPage||m.iconSet.table.firstPage,l.iconPrevPage||m.iconSet.table.prevPage,l.iconNextPage||m.iconSet.table.nextPage,l.iconLastPage||m.iconSet.table.lastPage];return m.lang.rtl===!0?he.reverse():he});function He(){if(l.hideBottom===!0)return;if(oe.value===!0){if(l.hideNoData===!0)return;const Te=l.loading===!0?l.loadingLabel||m.lang.table.loading:l.filter?l.noResultsLabel||m.lang.table.noResults:l.noDataLabel||m.lang.table.noData,Oe=I["no-data"],_e=Oe!==void 0?[Oe({message:Te,icon:m.iconSet.table.warning,filter:l.filter})]:[g.h(vt,{class:"q-table__bottom-nodata-icon",name:m.iconSet.table.warning}),Te];return g.h("div",{class:xn+" q-table__bottom--nodata"},_e)}const he=I.bottom;if(he!==void 0)return g.h("div",{class:xn},[he(qe.value)]);const we=l.hideSelectedBanner!==!0&&W.value===!0&&y.value>0?[g.h("div",{class:"q-table__control"},[g.h("div",[(l.selectedRowsLabel||m.lang.table.selectedRecords)(y.value)])])]:[];if(l.hidePagination!==!0)return g.h("div",{class:xn+" justify-end"},tt(we));if(we.length!==0)return g.h("div",{class:xn},we)}function nt(he){S({page:1,rowsPerPage:he.value})}function tt(he){let we;const{rowsPerPage:Te}=f.value,Oe=l.paginationLabel||m.lang.table.pagination,_e=I.pagination,Qe=l.rowsPerPageOptions.length>1;if(he.push(g.h("div",{class:"q-table__separator col"})),Qe===!0&&he.push(g.h("div",{class:"q-table__control"},[g.h("span",{class:"q-table__bottom-item"},[l.rowsPerPageLabel||m.lang.table.recordsPerPage]),g.h(Jn,{class:"q-table__select inline q-table__bottom-item",color:l.color,modelValue:Te,options:ee.value,displayValue:Te===0?m.lang.table.allRows:Te,dark:c.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":nt})])),_e!==void 0)we=_e(qe.value);else if(we=[g.h("span",Te!==0?{class:"q-table__bottom-item"}:{},[Te?Oe(Y.value+1,Math.min(F.value,Q.value),Q.value):Oe(1,N.value,Q.value)])],Te!==0&&X.value>1){const Ke={color:l.color,round:!0,dense:!0,flat:!0};l.dense===!0&&(Ke.size="sm"),X.value>2&&we.push(g.h(ot,{key:"pgFirst",...Ke,icon:et.value[0],disable:B.value,"aria-label":m.lang.pagination.first,onClick:Z})),we.push(g.h(ot,{key:"pgPrev",...Ke,icon:et.value[1],disable:B.value,"aria-label":m.lang.pagination.prev,onClick:te}),g.h(ot,{key:"pgNext",...Ke,icon:et.value[2],disable:H.value,"aria-label":m.lang.pagination.next,onClick:ie})),X.value>2&&we.push(g.h(ot,{key:"pgLast",...Ke,icon:et.value[3],disable:H.value,"aria-label":m.lang.pagination.last,onClick:J}))}return he.push(g.h("div",{class:"q-table__control"},we)),he}function Ye(){const he=l.gridHeader===!0?[g.h("table",{class:"q-table"},[De()])]:l.loading===!0&&I.loading===void 0?be():void 0;return g.h("div",{class:"q-table__middle"},he)}function st(){const he=I.item!==void 0?I.item:we=>{const Te=we.cols.map(_e=>g.h("div",{class:"q-table__grid-item-row"},[g.h("div",{class:"q-table__grid-item-title"},[_e.label]),g.h("div",{class:"q-table__grid-item-value"},[_e.value])]));if(W.value===!0){const _e=I["body-selection"],Qe=_e!==void 0?_e(we):[g.h(lr,{modelValue:we.selected,color:l.color,dark:c.value,dense:l.dense,"onUpdate:modelValue":(Ke,re)=>{k([we.key],[we.row],Ke,re)}})];Te.unshift(g.h("div",{class:"q-table__grid-item-row"},Qe),g.h(Gr,{dark:c.value}))}const Oe={class:["q-table__grid-item-card"+o.value,l.cardClass],style:l.cardStyle};if(l.cardStyleFn!==void 0&&(Oe.style=[Oe.style,l.cardStyleFn(we.row)]),l.cardClassFn!==void 0){const _e=l.cardClassFn(we.row);_e&&(Oe.class[0]+=` ${_e}`)}return(l.onRowClick!==void 0||l.onRowDblclick!==void 0||l.onRowContextmenu!==void 0)&&(Oe.class[0]+=" cursor-pointer",l.onRowClick!==void 0&&(Oe.onClick=_e=>{t("RowClick",_e,we.row,we.pageIndex)}),l.onRowDblclick!==void 0&&(Oe.onDblclick=_e=>{t("RowDblclick",_e,we.row,we.pageIndex)}),l.onRowContextmenu!==void 0&&(Oe.onContextmenu=_e=>{t("rowContextmenu",_e,we.row,we.pageIndex)})),g.h("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(we.selected===!0?" q-table__grid-item--selected":"")},[g.h("div",Oe,Te)])};return g.h("div",{class:["q-table__grid-content row",l.cardContainerClass],style:l.cardContainerStyle},V.value.map((we,Te)=>he(Ee({key:n.value(we),row:we,pageIndex:Te}))))}return Object.assign(v.proxy,{requestServerInteraction:p,setPagination:S,firstPage:Z,prevPage:te,nextPage:ie,lastPage:J,isRowSelected:x,clearSelection:w,isRowExpanded:T,setExpanded:D,sort:j,resetVirtualScroll:fe,scrollTo:de,getCellValue:Ne}),Bs(v.proxy,{filteredSortedRows:()=>P.value,computedRows:()=>V.value,computedRowsNumber:()=>Q.value}),()=>{const he=[Fe()],we={ref:e,class:d.value};return l.grid===!0?he.push(Ye()):Object.assign(we,{class:[we.class,l.cardClass],style:l.cardStyle}),he.push(ce(),He()),l.loading===!0&&I.loading!==void 0&&he.push(I.loading()),g.h("div",we,he)}}});function Ef(l,I,t){if(!t.renderAsBadge)return null;const v={label:typeof t.format=="function"?t.format(l):String(l),outline:t.badgeOutline,rounded:t.badgeRounded,size:t.badgeSize||"md",class:t.badgeClass};if(t.badgeMapping){const m=String(l).toLowerCase(),c=t.badgeMapping[m]||t.badgeMapping[l];c&&(v.color=c.color,v.label=c.label||v.label,v.icon=c.icon,v.outline=c.outline??v.outline)}return typeof t.badgeColor=="function"?v.color=t.badgeColor(l,I):t.badgeColor?v.color=t.badgeColor:v.color||(v.color=Mf(l)),v}function Mf(l){const I=String(l).toLowerCase();return{active:"green",inactive:"grey",pending:"orange",approved:"blue",rejected:"red",completed:"green",cancelled:"red",success:"green",error:"red",warning:"orange",info:"blue",draft:"grey",published:"green",archived:"grey-7",true:"green",false:"grey",yes:"green",no:"grey",enabled:"green",disabled:"grey"}[I]||"primary"}function qt(l,I){const t=Rf(l,I);return{value:t,badgeConfig:Ef(t,l,I)}}const Tf={shouldShowExpandButton:()=>!0,shouldShowSelectionColumn:()=>!0};function Rf(l,I){return typeof I.field=="function"?I.field(l):l[I.field]}function Ii(l,I){return typeof l.visible=="function"?l.visible(I):l.visible!==!1}function Rr(l,I){return typeof l.disabled=="function"?l.disabled(I):!!l.disabled}function ha(l,I,t,v){return l.filter(m=>Ii(m,I)&&(m.position===t||m.position==="both")&&(!v||m.columnName===v))}function Sn(l,I){return Rr(l,I)?"grey":l.color||"primary"}function kn(l,I,t,v="action"){return l.testId?typeof l.testId=="function"?l.testId(I):l.testId:`${v}-${l.id}-${I[t]}`}function pr(l,I){return l[I]||String(l.id)||String(l._id)||JSON.stringify(l)}function Bf(l,I,t){const v=pr(l,t);return I.some(m=>pr(m,t)===v)}function If(l,I){const t=g.ref(new Set);return(()=>{if(I&&typeof localStorage<"u")try{const o=localStorage.getItem(I);if(o){const i=JSON.parse(o),d=new Set(Object.keys(i).filter(h=>i[h]));t.value=d;return}}catch(o){console.warn("Error loading column state from localStorage:",o)}l.forEach(o=>{!o.hidden&&!o.isSelectionColumn&&t.value.add(o.name)})})(),I&&g.watch(t,o=>{try{const i={};l.forEach(d=>{i[d.name]=o.has(d.name)}),localStorage.setItem(I,JSON.stringify(i))}catch(i){console.warn("Error saving column state to localStorage:",i)}},{deep:!0}),{visibleColumns:t,toggleColumnVisibility:o=>{const i=new Set(t.value);i.has(o)?i.delete(o):i.add(o),t.value=i},showColumn:o=>{t.value.add(o)},hideColumn:o=>{t.value.delete(o)},showAllColumns:()=>{const o=new Set;l.forEach(i=>{o.add(i.name)}),t.value=o},hideAllColumns:()=>{t.value.clear()},resetColumns:()=>{t.value.clear(),l.forEach(o=>{!o.hidden&&!o.isSelectionColumn&&t.value.add(o.name)}),I&&typeof localStorage<"u"&&localStorage.removeItem(I)},filteredColumns:o=>o.filter(i=>t.value.has(i.name)),isColumnVisible:o=>t.value.has(o)}}const Of={key:0,class:"row items-center q-mb-md q-pa-sm bg-blue-1 rounded-borders"},Ff={class:"col-auto q-mr-md"},jf={class:"col"},Df={class:"flex items-center gap-2"},Pf={key:1,class:"row items-center q-mb-sm q-pa-xs bg-grey-2 rounded-borders"},Nf={class:"col"},Lf={class:"flex items-center flex-wrap gap-1"},Vf={class:"column-container"},qf={class:"column-label ellipsis"},zf={key:0,"auto-width":"",class:"q-pa-xs selection-cell"},Uf={key:1,"auto-width":"",class:"expand-cell"},Wf=["onClick"],Hf={class:"flex items-center"},Yf={key:1,class:"text-no-wrap ellipsis"},Qf={colspan:"100%"},Kf=g.defineComponent({__name:"CustomTable",props:{columns:{},results:{},filter:{default:null},pagination:{},loading:{type:Boolean,default:!1},onRequest:{},rowKey:{default:"id"},services:{default:()=>({})},conditionals:{default:()=>({})},actions:{type:[Array,Function],default:()=>[]},showSkeleton:{type:Boolean,default:!1},rowClasses:{type:[String,Function],default:void 0},selection:{default:"none"},selected:{default:()=>[]},onSelectionChange:{},selectable:{type:Function,default:()=>!0},showSelectAll:{type:Boolean,default:!0},showColumnToggle:{type:Boolean,default:!1},columnStorageKey:{default:void 0},onRowDblClick:{}},emits:["update:pagination","update:selected","selection-change"],setup(l,{expose:I,emit:t}){const v=l,m=t,c=g.ref([]),a=g.ref(v.selected||[]),s=g.useSlots(),n=g.computed(()=>!!s.expanded),{toggleColumnVisibility:e,resetColumns:r,filteredColumns:u,isColumnVisible:o}=If(v.columns,v.columnStorageKey),i=g.computed(()=>u(v.columns)),d=g.computed({get(){return v.pagination},set(q){m("update:pagination",q)}}),h=g.computed(()=>({...Tf,...v.conditionals})),f=q=>h.value.shouldShowExpandButton(q),b=q=>c.value.includes(q[v.rowKey]),p=g.computed(()=>{if(v.selection!=="none")return v.selection}),S=g.computed(()=>v.selection==="none"?!1:h.value.shouldShowSelectionColumn()),_=g.computed(()=>v.results.length===0?!1:typeof v.actions=="function"?!0:v.actions.some(q=>Ii(q,v.results[0])&&(q.position==="row"||q.position==="both"))),T=g.computed(()=>S.value?[{name:"__selection",label:"",field:"__selection",align:"center",sortable:!1,isSelectionColumn:!0},...i.value]:i.value),D=q=>typeof v.selectable=="function"?v.selectable(q):v.selectable!==!1,z=q=>Bf(q,a.value,v.rowKey),P=g.computed(()=>v.results.filter(q=>D(q))),N=g.computed(()=>P.value.length===0?!1:P.value.every(q=>z(q))),V=g.computed(()=>a.value.length===0?!1:!N.value&&P.value.some(q=>z(q)));g.watch(()=>v.selected,q=>{JSON.stringify(q)!==JSON.stringify(a.value)&&(a.value=q||[])},{deep:!0}),g.watch(a,q=>{m("update:selected",q),m("selection-change",q)},{deep:!0});function W(q,K){if(!D(q))return;const j=pr(q,v.rowKey);K?a.value.some(Y=>pr(Y,v.rowKey)===j)||(a.value=[...a.value,q]):a.value=a.value.filter(Y=>pr(Y,v.rowKey)!==j)}function L(q){if(q){const K=[...a.value];P.value.forEach(j=>{z(j)||K.push(j)}),a.value=K}else{const K=new Set(P.value.map(j=>pr(j,v.rowKey)));a.value=a.value.filter(j=>!K.has(pr(j,v.rowKey)))}}function A(){a.value=[]}const M=q=>v.rowClasses&&typeof v.rowClasses=="function"?v.rowClasses(q):v.rowClasses||"";function C(q){return typeof v.actions=="function"?v.actions(q):v.actions.filter(K=>Ii(K,q))}function y(q){return ha(C(q),q,"row")}function x(q,K){return ha(C(q),q,"cell",K)}function w(q){if(v.onRowDblClick){v.onRowDblClick(q);return}const K=k(q);K&&!Rr(K,q)&&K.handler(q)}function k(q){return C(q).find(j=>j.id==="edit")}function E(q,K){const j=x(q,K);for(const Y of j)Rr(Y,q)||Y.handler(q)}async function O(q,K=!1){const j=q[v.rowKey];if(b(q)||K)c.value=c.value.filter(Y=>Y!==j);else if(c.value=[j],v.services.fetchDetails)try{q.details=await v.services.fetchDetails(q)}catch(Y){console.error("Error fetching details:",Y)}}async function R(q,K){if(!Rr(q,K))try{q.isCancel&&await O(K,!0),q.handler(K)}catch(j){console.error(`Error executing action ${q.id}:`,j)}}function U(q){d.value=q.pagination,v.onRequest&&v.onRequest(q)}return I({clearSelection:A,getSelectedRows:()=>a.value,toggleRowSelection:W,toggleSelectAll:L,toggleColumnVisibility:e,resetColumns:r}),(q,K)=>(g.openBlock(),g.createElementBlock(g.Fragment,null,[a.value.length>0?(g.openBlock(),g.createElementBlock("div",Of,[g.createElementVNode("div",Ff,[g.createVNode(tn,{color:"primary",class:"q-pa-xs"},{default:g.withCtx(()=>[g.createTextVNode(g.toDisplayString(a.value.length)+" sélectionné(s) ",1)]),_:1})]),g.createElementVNode("div",jf,[g.createElementVNode("div",Df,[g.renderSlot(q.$slots,"selection-actions",{selected:a.value,clearSelection:A},()=>[g.createVNode(ot,{dense:"",icon:"mdi-close",label:"Effacer",onClick:A,size:"sm"})],!0)])])])):g.createCommentVNode("",!0),q.showColumnToggle&&q.columns.length>0?(g.openBlock(),g.createElementBlock("div",Pf,[K[2]||(K[2]=g.createElementVNode("div",{class:"col-auto q-mr-sm"},[g.createElementVNode("span",{class:"text-caption text-grey-7"},"Colonnes:")],-1)),g.createElementVNode("div",Nf,[g.createElementVNode("div",Lf,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(q.columns.filter(j=>!j.isSelectionColumn),j=>(g.openBlock(),g.createBlock(io,{key:j.name,clickable:"",color:g.unref(o)(j.name)?"primary":"grey-5","text-color":"white",icon:g.unref(o)(j.name)?"visibility":"visibility_off",size:"sm",onClick:Y=>g.unref(e)(j.name)},{default:g.withCtx(()=>[g.createTextVNode(g.toDisplayString(j.label),1)]),_:2},1032,["color","icon","onClick"]))),128)),q.columnStorageKey?(g.openBlock(),g.createBlock(ot,{key:0,flat:"",dense:"",size:"sm",icon:"refresh",color:"grey",onClick:g.unref(r)},{default:g.withCtx(()=>[g.createVNode(ar,null,{default:g.withCtx(()=>K[1]||(K[1]=[g.createTextVNode("Réinitialiser les colonnes")])),_:1,__:[1]})]),_:1},8,["onClick"])):g.createCommentVNode("",!0)])])])):g.createCommentVNode("",!0),g.createVNode(Cs,{pagination:d.value,"onUpdate:pagination":K[0]||(K[0]=j=>d.value=j),columns:T.value,rows:q.results,filter:q.filter,"row-key":q.rowKey,"binary-state-sort":"","rows-per-page-options":d.value.rowsPerPageOptions,onRequest:U,loading:q.loading,"hide-no-data":q.loading,class:"q-mb-xl",flat:"",bordered:""},{header:g.withCtx(j=>[g.createVNode(sr,{props:j},{default:g.withCtx(()=>[S.value?(g.openBlock(),g.createBlock(Jt,{key:0,"auto-width":"",class:"selection-column"},{default:g.withCtx(()=>[p.value==="multiple"?(g.openBlock(),g.createBlock(lr,{key:0,"model-value":N.value,indeterminate:V.value,"onUpdate:modelValue":L,disabled:q.loading||P.value.length===0,"data-cy":"select-all-checkbox",dense:"",size:"sm"},null,8,["model-value","indeterminate","disabled"])):g.createCommentVNode("",!0)]),_:1})):g.createCommentVNode("",!0),n.value?(g.openBlock(),g.createBlock(Jt,{key:1,"auto-width":"",class:"expand-column"})):g.createCommentVNode("",!0),(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(j.cols.filter(Y=>!Y.isSelectionColumn),Y=>(g.openBlock(),g.createBlock(Jt,{key:Y.name,props:j,class:"column-header"},{default:g.withCtx(()=>[g.createElementVNode("div",Vf,[g.createElementVNode("span",qf,g.toDisplayString(Y.label),1),q.showColumnToggle?(g.openBlock(),g.createBlock(ot,{key:0,flat:"",dense:"",size:"xs",icon:"close",onClick:g.withModifiers(F=>g.unref(e)(Y.name),["stop"]),class:"column-close-btn"},{default:g.withCtx(()=>[g.createVNode(ar,null,{default:g.withCtx(()=>K[3]||(K[3]=[g.createTextVNode("Cacher cette colonne")])),_:1,__:[3]})]),_:2},1032,["onClick"])):g.createCommentVNode("",!0)])]),_:2},1032,["props"]))),128)),_.value?(g.openBlock(),g.createBlock(Jt,{key:2,"auto-width":"",class:"actions-column"},{default:g.withCtx(()=>K[4]||(K[4]=[g.createTextVNode(" Actions ")])),_:1,__:[4]})):g.createCommentVNode("",!0)]),_:2},1032,["props"])]),body:g.withCtx(j=>[q.showSkeleton?(g.openBlock(),g.createElementBlock(g.Fragment,{key:0},g.renderList(5,Y=>g.createVNode(sr,{key:`skeleton-${Y}`},{default:g.withCtx(()=>[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(T.value.filter(F=>!F.isSelectionColumn),F=>(g.openBlock(),g.createBlock(Dr,{key:F.name},{default:g.withCtx(()=>[g.createVNode(Wn,{type:"text"})]),_:2},1024))),128)),_.value?(g.openBlock(),g.createBlock(Dr,{key:0},{default:g.withCtx(()=>[g.createVNode(Wn,{type:"QBtn"})]),_:1})):g.createCommentVNode("",!0)]),_:2},1024)),64)):(g.openBlock(),g.createBlock(sr,{key:1,"data-cy":`row-${j.row[q.rowKey]}`,props:j,class:g.normalizeClass([{"bg-grey-3":j.row.archived},M(j.row),z(j.row)?"selected-row":""]),onDblclick:Y=>w(j.row)},{default:g.withCtx(()=>[S.value?(g.openBlock(),g.createElementBlock("td",zf,[g.createVNode(lr,{"model-value":z(j.row),"onUpdate:modelValue":Y=>W(j.row,Y),disabled:!D(j.row),"data-cy":`row-checkbox-${j.row[q.rowKey]}`,dense:"",size:"sm"},null,8,["model-value","onUpdate:modelValue","disabled","data-cy"])])):g.createCommentVNode("",!0),n.value?(g.openBlock(),g.createElementBlock("td",Uf,[g.renderSlot(q.$slots,"expand-button",{row:j.row,expanded:b(j.row),toggle:()=>O(j.row)},()=>[f(j.row)?(g.openBlock(),g.createBlock(ot,{key:0,"data-cy":`expand-button-${j.row[q.rowKey]}`,size:"sm",color:"primary",round:"",dense:"",icon:b(j.row)?"remove":"add",onClick:Y=>O(j.row)},null,8,["data-cy","icon","onClick"])):g.createCommentVNode("",!0)],!0)])):g.createCommentVNode("",!0),(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(j.cols.filter(Y=>!Y.isSelectionColumn),Y=>(g.openBlock(),g.createElementBlock("td",{key:Y.name,onClick:g.withModifiers(F=>E(j.row,Y.name),["stop"]),class:"data-cell"},[g.renderSlot(q.$slots,"body-cell",{row:j.row,col:Y,value:g.unref(qt)(j.row,Y).value,badgeConfig:g.unref(qt)(j.row,Y).badgeConfig},()=>[g.createElementVNode("div",Hf,[g.unref(qt)(j.row,Y).badgeConfig?(g.openBlock(),g.createBlock(tn,{key:0,color:g.unref(qt)(j.row,Y).badgeConfig?.color,outline:g.unref(qt)(j.row,Y).badgeConfig?.outline,rounded:g.unref(qt)(j.row,Y).badgeConfig?.rounded,size:g.unref(qt)(j.row,Y).badgeConfig?.size,icon:g.unref(qt)(j.row,Y).badgeConfig?.icon,class:g.normalizeClass(g.unref(qt)(j.row,Y).badgeConfig?.class)},{default:g.withCtx(()=>[g.createTextVNode(g.toDisplayString(g.unref(qt)(j.row,Y).badgeConfig?.label),1)]),_:2},1032,["color","outline","rounded","size","icon","class"])):(g.openBlock(),g.createElementBlock("span",Yf,g.toDisplayString(g.unref(qt)(j.row,Y).value),1)),(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(x(j.row,Y.name),F=>(g.openBlock(),g.createElementBlock(g.Fragment,{key:F.id},[F.isButton?(g.openBlock(),g.createBlock(ot,g.mergeProps({key:0,color:g.unref(Sn)(F,j.row),size:F.size||"sm",class:F.class,disabled:g.unref(Rr)(F,j.row),label:F.label},{ref_for:!0},F.buttonProps||{},{"data-cy":g.unref(kn)(F,j.row,q.rowKey),onClick:g.withModifiers(B=>R(F,j.row),["stop"])}),null,16,["color","size","class","disabled","label","data-cy","onClick"])):(g.openBlock(),g.createBlock(vt,{key:1,class:"cursor-pointer q-ml-sm",name:F.icon,color:g.unref(Sn)(F,j.row),size:F.size||"20px","data-cy":g.unref(kn)(F,j.row,q.rowKey,"cell-icon"),onClick:g.withModifiers(B=>R(F,j.row),["stop"])},{default:g.withCtx(()=>[F.label?(g.openBlock(),g.createBlock(ar,{key:0},{default:g.withCtx(()=>[g.createTextVNode(g.toDisplayString(F.label),1)]),_:2},1024)):g.createCommentVNode("",!0)]),_:2},1032,["name","color","size","data-cy","onClick"]))],64))),128))])],!0)],8,Wf))),128)),g.createVNode(Dr,{class:g.normalizeClass(["row items-center justify-center no-wrap actions-cell",M(j.row)])},{default:g.withCtx(()=>[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(y(j.row),Y=>(g.openBlock(),g.createElementBlock(g.Fragment,{key:Y.id},[Y.isButton?(g.openBlock(),g.createBlock(ot,g.mergeProps({key:0,color:g.unref(Sn)(Y,j.row),size:Y.size||"sm",class:Y.class,disabled:g.unref(Rr)(Y,j.row),label:Y.label},{ref_for:!0},Y.buttonProps||{},{"data-cy":g.unref(kn)(Y,j.row,q.rowKey),onClick:g.withModifiers(F=>R(Y,j.row),["stop"])}),null,16,["color","size","class","disabled","label","data-cy","onClick"])):(g.openBlock(),g.createBlock(vt,{key:1,class:"cursor-pointer q-mr-sm",name:Y.icon,color:g.unref(Sn)(Y,j.row),size:Y.size||"25px","data-cy":g.unref(kn)(Y,j.row,q.rowKey,"icon"),onClick:g.withModifiers(F=>R(Y,j.row),["stop"])},{default:g.withCtx(()=>[Y.label?(g.openBlock(),g.createBlock(ar,{key:0},{default:g.withCtx(()=>[g.createTextVNode(g.toDisplayString(Y.label),1)]),_:2},1024)):g.createCommentVNode("",!0)]),_:2},1032,["name","color","size","data-cy","onClick"]))],64))),128))]),_:2},1032,["class"])]),_:2},1032,["data-cy","props","class","onDblclick"])),n.value&&b(j.row)?(g.openBlock(),g.createBlock(sr,{key:2},{default:g.withCtx(()=>[g.createElementVNode("td",Qf,[g.renderSlot(q.$slots,"expanded",{row:j.row},void 0,!0)])]),_:2},1024)):g.createCommentVNode("",!0)]),_:3},8,["pagination","columns","rows","filter","row-key","rows-per-page-options","loading","hide-no-data"])],64))}}),Xf=Yt(Kf,[["__scopeId","data-v-31ba3090"]]);var ut=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gf(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}function Cn(l){throw new Error('Could not dynamically require "'+l+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var bi={exports:{}};/*! ExcelJS 19-10-2023 */var pa;function Jf(){return pa||(pa=1,function(l,I){(function(t){l.exports=t()})(function(){return function t(v,m,c){function a(e,r){if(!m[e]){if(!v[e]){var u=typeof Cn=="function"&&Cn;if(!r&&u)return u(e,!0);if(s)return s(e,!0);var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}var i=m[e]={exports:{}};v[e][0].call(i.exports,function(d){return a(v[e][1][d]||d)},i,i.exports,t,v,m,c)}return m[e].exports}for(var s=typeof Cn=="function"&&Cn,n=0;n<c.length;n++)a(c[n]);return a}({1:[function(t,v,m){const c=t("fs"),a=t("fast-csv"),s=t("dayjs/plugin/customParseFormat"),n=t("dayjs/plugin/utc"),e=t("dayjs").extend(s).extend(n),r=t("../utils/stream-buf"),{fs:{exists:u}}=t("../utils/utils"),o={true:!0,false:!1,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}};v.exports=class{constructor(i){this.workbook=i,this.worksheet=null}async readFile(i,d){if(d=d||{},!await u(i))throw new Error("File not found: "+i);const h=c.createReadStream(i),f=await this.read(h,d);return h.close(),f}read(i,d){return d=d||{},new Promise((h,f)=>{const b=this.workbook.addWorksheet(d.sheetName),p=d.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],S=d.map||function(T){if(T==="")return null;const D=Number(T);if(!Number.isNaN(D)&&D!==1/0)return D;const z=p.reduce((N,V)=>{if(N)return N;const W=e(T,V,!0);return W.isValid()?W:null},null);if(z)return new Date(z.valueOf());const P=o[T];return P!==void 0?P:T},_=a.parse(d.parserOptions).on("data",T=>{b.addRow(T.map(S))}).on("end",()=>{_.emit("worksheet",b)});_.on("worksheet",h).on("error",f),i.pipe(_)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(i,d){return new Promise((h,f)=>{d=d||{};const b=this.workbook.getWorksheet(d.sheetName||d.sheetId),p=a.format(d.formatterOptions);i.on("finish",()=>{h()}),p.on("error",f),p.pipe(i);const{dateFormat:S,dateUTC:_}=d,T=d.map||(P=>{if(P){if(P.text||P.hyperlink)return P.hyperlink||P.text||"";if(P.formula||P.result)return P.result||"";if(P instanceof Date)return S?_?e.utc(P).format(S):e(P).format(S):_?e.utc(P).format():e(P).format();if(P.error)return P.error;if(typeof P=="object")return JSON.stringify(P)}return P}),D=d.includeEmptyRows===void 0||d.includeEmptyRows;let z=1;b&&b.eachRow((P,N)=>{if(D)for(;z++<N-1;)p.write([]);const{values:V}=P;V.shift(),p.write(V.map(T)),z=N}),p.end()})}writeFile(i,d){const h={encoding:(d=d||{}).encoding||"utf8"},f=c.createWriteStream(i,h);return this.write(f,d)}async writeBuffer(i){const d=new r;return await this.write(d,i),d.read()}}},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(t,v,m){const c=t("../utils/col-cache");class a{constructor(n,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=n,e)if(typeof e=="string"){const u=c.decodeAddress(e);this.nativeCol=u.col+r,this.nativeColOff=0,this.nativeRow=u.row+r,this.nativeRowOff=0}else e.nativeCol!==void 0?(this.nativeCol=e.nativeCol||0,this.nativeColOff=e.nativeColOff||0,this.nativeRow=e.nativeRow||0,this.nativeRowOff=e.nativeRowOff||0):e.col!==void 0?(this.col=e.col+r,this.row=e.row+r):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(n){return n instanceof a||n==null?n:new a(n)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(n){this.nativeCol=Math.floor(n),this.nativeColOff=Math.floor((n-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(n){this.nativeRow=Math.floor(n),this.nativeRowOff=Math.floor((n-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(n){this.nativeCol=n.nativeCol,this.nativeColOff=n.nativeColOff,this.nativeRow=n.nativeRow,this.nativeRowOff=n.nativeRowOff}}v.exports=a},{"../utils/col-cache":19}],3:[function(t,v,m){const c=t("../utils/col-cache"),a=t("../utils/under-dash"),s=t("./enums"),{slideFormula:n}=t("../utils/shared-formula"),e=t("./note");class r{constructor(i,d,h){if(!i||!d)throw new Error("A Cell needs a Row");this._row=i,this._column=d,c.validateAddress(h),this._address=h,this._value=u.create(r.Types.Null,this),this.style=this._mergeStyle(i.style,d.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(i){this.style.numFmt=i}get font(){return this.style.font}set font(i){this.style.font=i}get alignment(){return this.style.alignment}set alignment(i){this.style.alignment=i}get border(){return this.style.border}set border(i){this.style.border=i}get fill(){return this.style.fill}set fill(i){this.style.fill=i}get protection(){return this.style.protection}set protection(i){this.style.protection=i}_mergeStyle(i,d,h){const f=i&&i.numFmt||d&&d.numFmt;f&&(h.numFmt=f);const b=i&&i.font||d&&d.font;b&&(h.font=b);const p=i&&i.alignment||d&&d.alignment;p&&(h.alignment=p);const S=i&&i.border||d&&d.border;S&&(h.border=S);const _=i&&i.fill||d&&d.fill;_&&(h.fill=_);const T=i&&i.protection||d&&d.protection;return T&&(h.protection=T),h}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===r.Types.Merge}merge(i,d){this._value.release(),this._value=u.create(r.Types.Merge,this,i),d||(this.style=i.style)}unmerge(){this.type===r.Types.Merge&&(this._value.release(),this._value=u.create(r.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(i){return this._value.type===r.Types.Merge&&this._value.isMergedTo(i)}get master(){return this.type===r.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===r.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(i){this.type!==r.Types.Merge?(this._value.release(),this._value=u.create(u.getType(i),this,i)):this._value.master.value=i}get note(){return this._comment&&this._comment.note}set note(i){this._comment=new e(i)}get text(){return this._value.toString()}get html(){return a.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(i){this.type===r.Types.String&&(this._value=u.create(r.Types.Hyperlink,this,{text:this._value.value,hyperlink:i}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:i}=this._row;return{sheetName:i.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(i){this.names=[i]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(i){const{definedNames:d}=this.workbook;d.removeAllNames(this.fullAddress),i.forEach(h=>{d.addEx(this.fullAddress,h)})}addName(i){this.workbook.definedNames.addEx(this.fullAddress,i)}removeName(i){this.workbook.definedNames.removeEx(this.fullAddress,i)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(i){this._dataValidations.add(this.address,i)}get model(){const{model:i}=this._value;return i.style=this.style,this._comment&&(i.comment=this._comment.model),i}set model(i){if(this._value.release(),this._value=u.create(i.type,this),this._value.model=i,i.comment)switch(i.comment.type){case"note":this._comment=e.fromModel(i.comment)}i.style?this.style=i.style:this.style={}}}r.Types=s.ValueType;const u={getType:o=>o==null?r.Types.Null:o instanceof String||typeof o=="string"?r.Types.String:typeof o=="number"?r.Types.Number:typeof o=="boolean"?r.Types.Boolean:o instanceof Date?r.Types.Date:o.text&&o.hyperlink?r.Types.Hyperlink:o.formula||o.sharedFormula?r.Types.Formula:o.richText?r.Types.RichText:o.sharedString?r.Types.SharedString:o.error?r.Types.Error:r.Types.JSON,types:[{t:r.Types.Null,f:class{constructor(o){this.model={address:o.address,type:r.Types.Null}}get value(){return null}set value(o){}get type(){return r.Types.Null}get effectiveType(){return r.Types.Null}get address(){return this.model.address}set address(o){this.model.address=o}toCsvString(){return""}release(){}toString(){return""}}},{t:r.Types.Number,f:class{constructor(o,i){this.model={address:o.address,type:r.Types.Number,value:i}}get value(){return this.model.value}set value(o){this.model.value=o}get type(){return r.Types.Number}get effectiveType(){return r.Types.Number}get address(){return this.model.address}set address(o){this.model.address=o}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.String,f:class{constructor(o,i){this.model={address:o.address,type:r.Types.String,value:i}}get value(){return this.model.value}set value(o){this.model.value=o}get type(){return r.Types.String}get effectiveType(){return r.Types.String}get address(){return this.model.address}set address(o){this.model.address=o}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:r.Types.Date,f:class{constructor(o,i){this.model={address:o.address,type:r.Types.Date,value:i}}get value(){return this.model.value}set value(o){this.model.value=o}get type(){return r.Types.Date}get effectiveType(){return r.Types.Date}get address(){return this.model.address}set address(o){this.model.address=o}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.Hyperlink,f:class{constructor(o,i){this.model={address:o.address,type:r.Types.Hyperlink,text:i?i.text:void 0,hyperlink:i?i.hyperlink:void 0},i&&i.tooltip&&(this.model.tooltip=i.tooltip)}get value(){const o={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(o.tooltip=this.model.tooltip),o}set value(o){this.model={text:o.text,hyperlink:o.hyperlink},o.tooltip&&(this.model.tooltip=o.tooltip)}get text(){return this.model.text}set text(o){this.model.text=o}get hyperlink(){return this.model.hyperlink}set hyperlink(o){this.model.hyperlink=o}get type(){return r.Types.Hyperlink}get effectiveType(){return r.Types.Hyperlink}get address(){return this.model.address}set address(o){this.model.address=o}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:r.Types.Formula,f:class{constructor(o,i){this.cell=o,this.model={address:o.address,type:r.Types.Formula,shareType:i?i.shareType:void 0,ref:i?i.ref:void 0,formula:i?i.formula:void 0,sharedFormula:i?i.sharedFormula:void 0,result:i?i.result:void 0}}_copyModel(o){const i={},d=h=>{const f=o[h];f&&(i[h]=f)};return d("formula"),d("result"),d("ref"),d("shareType"),d("sharedFormula"),i}get value(){return this._copyModel(this.model)}set value(o){this.model=this._copyModel(o)}validate(o){switch(u.getType(o)){case r.Types.Null:case r.Types.String:case r.Types.Number:case r.Types.Date:break;case r.Types.Hyperlink:case r.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(o){this.model.formula=o}get formulaType(){return this.model.formula?s.FormulaType.Master:this.model.sharedFormula?s.FormulaType.Shared:s.FormulaType.None}get result(){return this.model.result}set result(o){this.model.result=o}get type(){return r.Types.Formula}get effectiveType(){const o=this.model.result;return o==null?s.ValueType.Null:o instanceof String||typeof o=="string"?s.ValueType.String:typeof o=="number"?s.ValueType.Number:o instanceof Date?s.ValueType.Date:o.text&&o.hyperlink?s.ValueType.Hyperlink:o.formula?s.ValueType.Formula:s.ValueType.Null}get address(){return this.model.address}set address(o){this.model.address=o}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:o}=this.cell,i=o.findCell(this.model.sharedFormula);this._translatedFormula=i&&n(i.formula,i.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:r.Types.Merge,f:class{constructor(o,i){this.model={address:o.address,type:r.Types.Merge,master:i?i.address:void 0},this._master=i,i&&i.addMergeRef()}get value(){return this._master.value}set value(o){o instanceof r?(this._master&&this._master.releaseMergeRef(),o.addMergeRef(),this._master=o):this._master.value=o}isMergedTo(o){return o===this._master}get master(){return this._master}get type(){return r.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(o){this.model.address=o}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:r.Types.JSON,f:class{constructor(o,i){this.model={address:o.address,type:r.Types.String,value:JSON.stringify(i),rawValue:i}}get value(){return this.model.rawValue}set value(o){this.model.rawValue=o,this.model.value=JSON.stringify(o)}get type(){return r.Types.String}get effectiveType(){return r.Types.String}get address(){return this.model.address}set address(o){this.model.address=o}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:r.Types.SharedString,f:class{constructor(o,i){this.model={address:o.address,type:r.Types.SharedString,value:i}}get value(){return this.model.value}set value(o){this.model.value=o}get type(){return r.Types.SharedString}get effectiveType(){return r.Types.SharedString}get address(){return this.model.address}set address(o){this.model.address=o}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.RichText,f:class{constructor(o,i){this.model={address:o.address,type:r.Types.String,value:i}}get value(){return this.model.value}set value(o){this.model.value=o}toString(){return this.model.value.richText.map(o=>o.text).join("")}get type(){return r.Types.RichText}get effectiveType(){return r.Types.RichText}get address(){return this.model.address}set address(o){this.model.address=o}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:r.Types.Boolean,f:class{constructor(o,i){this.model={address:o.address,type:r.Types.Boolean,value:i}}get value(){return this.model.value}set value(o){this.model.value=o}get type(){return r.Types.Boolean}get effectiveType(){return r.Types.Boolean}get address(){return this.model.address}set address(o){this.model.address=o}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.Error,f:class{constructor(o,i){this.model={address:o.address,type:r.Types.Error,value:i}}get value(){return this.model.value}set value(o){this.model.value=o}get type(){return r.Types.Error}get effectiveType(){return r.Types.Error}get address(){return this.model.address}set address(o){this.model.address=o}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((o,i)=>(o[i.t]=i.f,o),[]),create(o,i,d){const h=this.types[o];if(!h)throw new Error("Could not create Value of type "+o);return new h(i,d)}};v.exports=r},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(t,v,m){const c=t("../utils/under-dash"),a=t("./enums"),s=t("../utils/col-cache");class n{constructor(r,u,o){this._worksheet=r,this._number=u,o!==!1&&(this.defn=o)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return s.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(r){r?(this.key=r.key,this.width=r.width!==void 0?r.width:9,this.outlineLevel=r.outlineLevel,r.style?this.style=r.style:this.style={},this.header=r.header,this._hidden=!!r.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(r){r!==void 0?(this._header=r,this.headers.forEach((u,o)=>{this._worksheet.getCell(o+1,this.number).value=u})):this._header=void 0}get key(){return this._key}set key(r){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=r,r&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(r){this._hidden=r}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(r){this._outlineLevel=r}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(r){return this.width===r.width&&this.hidden===r.hidden&&this.outlineLevel===r.outlineLevel&&c.isEqual(this.style,r.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const r=this.style;return!r||!(r.font||r.numFmt||r.alignment||r.border||r.fill||r.protection)}get headerCount(){return this.headers.length}eachCell(r,u){const o=this.number;u||(u=r,r=null),this._worksheet.eachRow(r,(i,d)=>{u(i.getCell(o),d)})}get values(){const r=[];return this.eachCell((u,o)=>{u&&u.type!==a.ValueType.Null&&(r[o]=u.value)}),r}set values(r){if(!r)return;const u=this.number;let o=0;r.hasOwnProperty("0")&&(o=1),r.forEach((i,d)=>{this._worksheet.getCell(d+o,u).value=i})}_applyStyle(r,u){return this.style[r]=u,this.eachCell(o=>{o[r]=u}),u}get numFmt(){return this.style.numFmt}set numFmt(r){this._applyStyle("numFmt",r)}get font(){return this.style.font}set font(r){this._applyStyle("font",r)}get alignment(){return this.style.alignment}set alignment(r){this._applyStyle("alignment",r)}get protection(){return this.style.protection}set protection(r){this._applyStyle("protection",r)}get border(){return this.style.border}set border(r){this._applyStyle("border",r)}get fill(){return this.style.fill}set fill(r){this._applyStyle("fill",r)}static toModel(r){const u=[];let o=null;return r&&r.forEach((i,d)=>{i.isDefault?o&&(o=null):o&&i.equivalentTo(o)?o.max=d+1:(o={min:d+1,max:d+1,width:i.width!==void 0?i.width:9,style:i.style,isCustomWidth:i.isCustomWidth,hidden:i.hidden,outlineLevel:i.outlineLevel,collapsed:i.collapsed},u.push(o))}),u.length?u:void 0}static fromModel(r,u){const o=[];let i=1,d=0;for(u=(u=u||[]).sort(function(h,f){return h.min-f.min});d<u.length;){const h=u[d++];for(;i<h.min;)o.push(new n(r,i++));for(;i<=h.max;)o.push(new n(r,i++,h))}return o.length?o:null}}v.exports=n},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(t,v,m){v.exports=class{constructor(c){this.model=c||{}}add(c,a){return this.model[c]=a}find(c){return this.model[c]}remove(c){this.model[c]=void 0}}},{}],6:[function(t,v,m){const c=t("../utils/under-dash"),a=t("../utils/col-cache"),s=t("../utils/cell-matrix"),n=t("./range"),e=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;v.exports=class{constructor(){this.matrixMap={}}getMatrix(r){return this.matrixMap[r]||(this.matrixMap[r]=new s)}add(r,u){const o=a.decodeEx(r);this.addEx(o,u)}addEx(r,u){const o=this.getMatrix(u);if(r.top)for(let i=r.left;i<=r.right;i++)for(let d=r.top;d<=r.bottom;d++){const h={sheetName:r.sheetName,address:a.n2l(i)+d,row:d,col:i};o.addCellEx(h)}else o.addCellEx(r)}remove(r,u){const o=a.decodeEx(r);this.removeEx(o,u)}removeEx(r,u){this.getMatrix(u).removeCellEx(r)}removeAllNames(r){c.each(this.matrixMap,u=>{u.removeCellEx(r)})}forEach(r){c.each(this.matrixMap,(u,o)=>{u.forEach(i=>{r(o,i)})})}getNames(r){return this.getNamesEx(a.decodeEx(r))}getNamesEx(r){return c.map(this.matrixMap,(u,o)=>u.findCellEx(r)&&o).filter(Boolean)}_explore(r,u){u.mark=!1;const{sheetName:o}=u,i=new n(u.row,u.col,u.row,u.col,o);let d,h;function f(p,S){const _=r.findCellAt(o,p,u.col);return!(!_||!_.mark)&&(i[S]=p,_.mark=!1,!0)}for(h=u.row-1;f(h,"top");h--);for(h=u.row+1;f(h,"bottom");h++);function b(p,S){const _=[];for(h=i.top;h<=i.bottom;h++){const T=r.findCellAt(o,h,p);if(!T||!T.mark)return!1;_.push(T)}i[S]=p;for(let T=0;T<_.length;T++)_[T].mark=!1;return!0}for(d=u.col-1;b(d,"left");d--);for(d=u.col+1;b(d,"right");d++);return i}getRanges(r,u){return(u=u||this.matrixMap[r])?(u.forEach(o=>{o.mark=!0}),{name:r,ranges:u.map(o=>o.mark&&this._explore(u,o)).filter(Boolean).map(o=>o.$shortRange)}):{name:r,ranges:[]}}normaliseMatrix(r,u){r.forEachInSheet(u,(o,i,d)=>{o&&(o.row===i&&o.col===d||(o.row=i,o.col=d,o.address=a.n2l(d)+i))})}spliceRows(r,u,o,i){c.each(this.matrixMap,d=>{d.spliceRows(r,u,o,i),this.normaliseMatrix(d,r)})}spliceColumns(r,u,o,i){c.each(this.matrixMap,d=>{d.spliceColumns(r,u,o,i),this.normaliseMatrix(d,r)})}get model(){return c.map(this.matrixMap,(r,u)=>this.getRanges(u,r)).filter(r=>r.ranges.length)}set model(r){const u=this.matrixMap={};r.forEach(o=>{const i=u[o.name]=new s;o.ranges.forEach(d=>{e.test(d.split("!").pop()||"")&&i.addCell(d)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(t,v,m){v.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(t,v,m){const c=t("../utils/col-cache"),a=t("./anchor");v.exports=class{constructor(s,n){this.worksheet=s,this.model=n}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(s){let{type:n,imageId:e,range:r,hyperlinks:u}=s;if(this.type=n,this.imageId=e,n==="image")if(typeof r=="string"){const o=c.decode(r);this.range={tl:new a(this.worksheet,{col:o.left,row:o.top},-1),br:new a(this.worksheet,{col:o.right,row:o.bottom},0),editAs:"oneCell"}}else this.range={tl:new a(this.worksheet,r.tl,0),br:r.br&&new a(this.worksheet,r.br,0),ext:r.ext,editAs:r.editAs,hyperlinks:u||r.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(t,v,m){const c=t("../utils/under-dash");class a{constructor(n){this.note=n}get model(){let n=null;switch(typeof this.note){case"string":n={type:"note",note:{texts:[{text:this.note}]}};break;default:n={type:"note",note:this.note}}return c.deepMerge({},a.DEFAULT_CONFIGS,n)}set model(n){const{note:e}=n,{texts:r}=e;r.length===1&&Object.keys(r[0]).length===1?this.note=r[0].text:this.note=e}static fromModel(n){const e=new a;return e.model=n,e}}a.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},v.exports=a},{"../utils/under-dash":26}],10:[function(t,v,m){const c=t("../utils/col-cache");class a{constructor(){this.decode(arguments)}setTLBR(n,e,r,u,o){if(arguments.length<4){const i=c.decodeAddress(n),d=c.decodeAddress(e);this.model={top:Math.min(i.row,d.row),left:Math.min(i.col,d.col),bottom:Math.max(i.row,d.row),right:Math.max(i.col,d.col),sheetName:r},this.setTLBR(i.row,i.col,d.row,d.col,o)}else this.model={top:Math.min(n,r),left:Math.min(e,u),bottom:Math.max(n,r),right:Math.max(e,u),sheetName:o}}decode(n){switch(n.length){case 5:this.setTLBR(n[0],n[1],n[2],n[3],n[4]);break;case 4:this.setTLBR(n[0],n[1],n[2],n[3]);break;case 3:this.setTLBR(n[0],n[1],n[2]);break;case 2:this.setTLBR(n[0],n[1]);break;case 1:{const e=n[0];if(e instanceof a)this.model={top:e.model.top,left:e.model.left,bottom:e.model.bottom,right:e.model.right,sheetName:e.sheetName};else if(e instanceof Array)this.decode(e);else if(e.top&&e.left&&e.bottom&&e.right)this.model={top:e.top,left:e.left,bottom:e.bottom,right:e.right,sheetName:e.sheetName};else{const r=c.decodeEx(e);r.top?this.model={top:r.top,left:r.left,bottom:r.bottom,right:r.right,sheetName:r.sheetName}:this.model={top:r.row,left:r.col,bottom:r.row,right:r.col,sheetName:r.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+n.length)}}get top(){return this.model.top||1}set top(n){this.model.top=n}get left(){return this.model.left||1}set left(n){this.model.left=n}get bottom(){return this.model.bottom||1}set bottom(n){this.model.bottom=n}get right(){return this.model.right||1}set right(n){this.model.right=n}get sheetName(){return this.model.sheetName}set sheetName(n){this.model.sheetName=n}get _serialisedSheetName(){const{sheetName:n}=this.model;return n?/^[a-zA-Z0-9]*$/.test(n)?n+"!":`'${n}'!`:""}expand(n,e,r,u){(!this.model.top||n<this.top)&&(this.top=n),(!this.model.left||e<this.left)&&(this.left=e),(!this.model.bottom||r>this.bottom)&&(this.bottom=r),(!this.model.right||u>this.right)&&(this.right=u)}expandRow(n){if(n){const{dimensions:e,number:r}=n;e&&this.expand(r,e.min,r,e.max)}}expandToAddress(n){const e=c.decodeEx(n);this.expand(e.row,e.col,e.row,e.col)}get tl(){return c.n2l(this.left)+this.top}get $t$l(){return`$${c.n2l(this.left)}$${this.top}`}get br(){return c.n2l(this.right)+this.bottom}get $b$r(){return`$${c.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(n){return(!n.sheetName||!this.sheetName||n.sheetName===this.sheetName)&&!(n.bottom<this.top)&&!(n.top>this.bottom)&&!(n.right<this.left)&&!(n.left>this.right)}contains(n){const e=c.decodeEx(n);return this.containsEx(e)}containsEx(n){return(!n.sheetName||!this.sheetName||n.sheetName===this.sheetName)&&n.row>=this.top&&n.row<=this.bottom&&n.col>=this.left&&n.col<=this.right}forEachAddress(n){for(let e=this.left;e<=this.right;e++)for(let r=this.top;r<=this.bottom;r++)n(c.encodeAddress(r,e),r,e)}}v.exports=a},{"../utils/col-cache":19}],11:[function(t,v,m){const c=t("../utils/under-dash"),a=t("./enums"),s=t("../utils/col-cache"),n=t("./cell");v.exports=class{constructor(e,r){this._worksheet=e,this._number=r,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(e){return this._cells[e-1]}getCellEx(e){let r=this._cells[e.col-1];if(!r){const u=this._worksheet.getColumn(e.col);r=new n(this,u,e.address),this._cells[e.col-1]=r}return r}getCell(e){if(typeof e=="string"){const r=this._worksheet.getColumnKey(e);e=r?r.number:s.l2n(e)}return this._cells[e-1]||this.getCellEx({address:s.encodeAddress(this._number,e),row:this._number,col:e})}splice(e,r){const u=e+r;for(var o=arguments.length,i=new Array(o>2?o-2:0),d=2;d<o;d++)i[d-2]=arguments[d];const h=i.length-r,f=this._cells.length;let b,p,S;if(h<0)for(b=e+i.length;b<=f;b++)S=this._cells[b-1],p=this._cells[b-h-1],p?(S=this.getCell(b),S.value=p.value,S.style=p.style,S._comment=p._comment):S&&(S.value=null,S.style={},S._comment=void 0);else if(h>0)for(b=f;b>=u;b--)p=this._cells[b-1],p?(S=this.getCell(b+h),S.value=p.value,S.style=p.style,S._comment=p._comment):this._cells[b+h-1]=void 0;for(b=0;b<i.length;b++)S=this.getCell(e+b),S.value=i[b],S.style={},S._comment=void 0}eachCell(e,r){if(r||(r=e,e=null),e&&e.includeEmpty){const u=this._cells.length;for(let o=1;o<=u;o++)r(this.getCell(o),o)}else this._cells.forEach((u,o)=>{u&&u.type!==a.ValueType.Null&&r(u,o+1)})}addPageBreak(e,r){const u=this._worksheet,o=Math.max(0,e-1)||0,i=Math.max(0,r-1)||16838,d={id:this._number,max:i,man:1};o&&(d.min=o),u.rowBreaks.push(d)}get values(){const e=[];return this._cells.forEach(r=>{r&&r.type!==a.ValueType.Null&&(e[r.col]=r.value)}),e}set values(e){if(this._cells=[],e)if(e instanceof Array){let r=0;e.hasOwnProperty("0")&&(r=1),e.forEach((u,o)=>{u!==void 0&&(this.getCellEx({address:s.encodeAddress(this._number,o+r),row:this._number,col:o+r}).value=u)})}else this._worksheet.eachColumnKey((r,u)=>{e[u]!==void 0&&(this.getCellEx({address:s.encodeAddress(this._number,r.number),row:this._number,col:r.number}).value=e[u])})}get hasValues(){return c.some(this._cells,e=>e&&e.type!==a.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let e=0;return this.eachCell(()=>{e++}),e}get dimensions(){let e=0,r=0;return this._cells.forEach(u=>{u&&u.type!==a.ValueType.Null&&((!e||e>u.col)&&(e=u.col),r<u.col&&(r=u.col))}),e>0?{min:e,max:r}:null}_applyStyle(e,r){return this.style[e]=r,this._cells.forEach(u=>{u&&(u[e]=r)}),r}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const e=[];let r=0,u=0;return this._cells.forEach(o=>{if(o){const i=o.model;i&&((!r||r>o.col)&&(r=o.col),u<o.col&&(u=o.col),e.push(i))}}),this.height||e.length?{cells:e,number:this.number,min:r,max:u,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(e){if(e.number!==this._number)throw new Error("Invalid row number in model");let r;this._cells=[],e.cells.forEach(u=>{switch(u.type){case n.Types.Merge:break;default:{let o;if(u.address)o=s.decodeAddress(u.address);else if(r){const{row:i}=r,d=r.col+1;o={row:i,col:d,address:s.encodeAddress(i,d),$col$row:`$${s.n2l(d)}$${i}`}}r=o,this.getCellEx(o).model=u;break}}}),e.height?this.height=e.height:delete this.height,this.hidden=e.hidden,this.outlineLevel=e.outlineLevel||0,this.style=e.style&&JSON.parse(JSON.stringify(e.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(t,v,m){const c=t("../utils/col-cache");class a{constructor(n,e,r){this.table=n,this.column=e,this.index=r}_set(n,e){this.table.cacheState(),this.column[n]=e}get name(){return this.column.name}set name(n){this._set("name",n)}get filterButton(){return this.column.filterButton}set filterButton(n){this.column.filterButton=n}get style(){return this.column.style}set style(n){this.column.style=n}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(n){this._set("totalsRowLabel",n)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(n){this._set("totalsRowFunction",n)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(n){this._set("totalsRowResult",n)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(n){this._set("totalsRowFormula",n)}}v.exports=class{constructor(s,n){this.worksheet=s,n&&(this.table=n,this.validate(),this.store())}getFormula(s){switch(s.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${s.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${s.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${s.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${s.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${s.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${s.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${s.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${s.name}])`;case"custom":return s.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+s.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:s}=this,n=(h,f,b)=>{h[f]===void 0&&(h[f]=b)};n(s,"headerRow",!0),n(s,"totalsRow",!1),n(s,"style",{}),n(s.style,"theme","TableStyleMedium2"),n(s.style,"showFirstColumn",!1),n(s.style,"showLastColumn",!1),n(s.style,"showRowStripes",!1),n(s.style,"showColumnStripes",!1);const e=(h,f)=>{if(!h)throw new Error(f)};e(s.ref,"Table must have ref"),e(s.columns,"Table must have column definitions"),e(s.rows,"Table must have row definitions"),s.tl=c.decodeAddress(s.ref);const{row:r,col:u}=s.tl;e(r>0,"Table must be on valid row"),e(u>0,"Table must be on valid col");const{width:o,filterHeight:i,tableHeight:d}=this;s.autoFilterRef=c.encode(r,u,r+i-1,u+o-1),s.tableRef=c.encode(r,u,r+d-1,u+o-1),s.columns.forEach((h,f)=>{e(h.name,`Column ${f} must have a name`),f===0?n(h,"totalsRowLabel","Total"):(n(h,"totalsRowFunction","none"),h.totalsRowFormula=this.getFormula(h))})}store(){const s=(i,d)=>{d&&Object.keys(d).forEach(h=>{i[h]=d[h]})},{worksheet:n,table:e}=this,{row:r,col:u}=e.tl;let o=0;if(e.headerRow){const i=n.getRow(r+o++);e.columns.forEach((d,h)=>{const{style:f,name:b}=d,p=i.getCell(u+h);p.value=b,s(p,f)})}if(e.rows.forEach(i=>{const d=n.getRow(r+o++);i.forEach((h,f)=>{const b=d.getCell(u+f);b.value=h,s(b,e.columns[f].style)})}),e.totalsRow){const i=n.getRow(r+o++);e.columns.forEach((d,h)=>{const f=i.getCell(u+h);if(h===0)f.value=d.totalsRowLabel;else{const b=this.getFormula(d);f.value=b?{formula:d.totalsRowFormula,result:d.totalsRowResult}:null}s(f,d.style)})}}load(s){const{table:n}=this,{row:e,col:r}=n.tl;let u=0;if(n.headerRow){const o=s.getRow(e+u++);n.columns.forEach((i,d)=>{o.getCell(r+d).value=i.name})}if(n.rows.forEach(o=>{const i=s.getRow(e+u++);o.forEach((d,h)=>{i.getCell(r+h).value=d})}),n.totalsRow){const o=s.getRow(e+u++);n.columns.forEach((i,d)=>{const h=o.getCell(r+d);d===0?h.value=i.totalsRowLabel:this.getFormula(i)&&(h.value={formula:i.totalsRowFormula,result:i.totalsRowResult})})}}get model(){return this.table}set model(s){this.table=s}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const s=c.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let n=0;n<this._cache.tableHeight;n++){const e=this.worksheet.getRow(s.row+n);for(let r=0;r<this._cache.width;r++)e.getCell(s.col+r).value=null}else{for(let n=this.tableHeight;n<this._cache.tableHeight;n++){const e=this.worksheet.getRow(s.row+n);for(let r=0;r<this._cache.width;r++)e.getCell(s.col+r).value=null}for(let n=0;n<this.tableHeight;n++){const e=this.worksheet.getRow(s.row+n);for(let r=this.width;r<this._cache.width;r++)e.getCell(s.col+r).value=null}}this.store()}addRow(s,n){this.cacheState(),n===void 0?this.table.rows.push(s):this.table.rows.splice(n,0,s)}removeRows(s){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(s,n)}getColumn(s){const n=this.table.columns[s];return new a(this,n,s)}addColumn(s,n,e){this.cacheState(),e===void 0?(this.table.columns.push(s),this.table.rows.forEach((r,u)=>{r.push(n[u])})):(this.table.columns.splice(e,0,s),this.table.rows.forEach((r,u)=>{r.splice(e,0,n[u])}))}removeColumns(s){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(s,n),this.table.rows.forEach(e=>{e.splice(s,n)})}_assign(s,n,e){this.cacheState(),s[n]=e}get ref(){return this.table.ref}set ref(s){this._assign(this.table,"ref",s)}get name(){return this.table.name}set name(s){this.table.name=s}get displayName(){return this.table.displyName||this.table.name}set displayNamename(s){this.table.displayName=s}get headerRow(){return this.table.headerRow}set headerRow(s){this._assign(this.table,"headerRow",s)}get totalsRow(){return this.table.totalsRow}set totalsRow(s){this._assign(this.table,"totalsRow",s)}get theme(){return this.table.style.name}set theme(s){this.table.style.name=s}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(s){this.table.style.showFirstColumn=s}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(s){this.table.style.showLastColumn=s}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(s){this.table.style.showRowStripes=s}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(s){this.table.style.showColumnStripes=s}}},{"../utils/col-cache":19}],13:[function(t,v,m){const c=t("./worksheet"),a=t("./defined-names"),s=t("../xlsx/xlsx"),n=t("../csv/csv");v.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new a}get xlsx(){return this._xlsx||(this._xlsx=new s(this)),this._xlsx}get csv(){return this._csv||(this._csv=new n(this)),this._csv}get nextId(){for(let e=1;e<this._worksheets.length;e++)if(!this._worksheets[e])return e;return this._worksheets.length||1}addWorksheet(e,r){const u=this.nextId;r&&(typeof r=="string"?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),r={properties:{tabColor:{argb:r}}}):(r.argb||r.theme||r.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),r={properties:{tabColor:r}}));const o=this._worksheets.reduce((h,f)=>(f&&f.orderNo)>h?f.orderNo:h,0),i=Object.assign({},r,{id:u,name:e,orderNo:o+1,workbook:this}),d=new c(i);return this._worksheets[u]=d,d}removeWorksheetEx(e){delete this._worksheets[e.id]}removeWorksheet(e){const r=this.getWorksheet(e);r&&r.destroy()}getWorksheet(e){return e===void 0?this._worksheets.find(Boolean):typeof e=="number"?this._worksheets[e]:typeof e=="string"?this._worksheets.find(r=>r&&r.name===e):void 0}get worksheets(){return this._worksheets.slice(1).sort((e,r)=>e.orderNo-r.orderNo).filter(Boolean)}eachSheet(e){this.worksheets.forEach(r=>{e(r,r.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(e){const r=this.media.length;return this.media.push(Object.assign({},e,{type:"image"})),r}getImage(e){return this.media[e]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(e=>e.model),sheets:this.worksheets.map(e=>e.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(e){this.creator=e.creator,this.lastModifiedBy=e.lastModifiedBy,this.lastPrinted=e.lastPrinted,this.created=e.created,this.modified=e.modified,this.company=e.company,this.manager=e.manager,this.title=e.title,this.subject=e.subject,this.keywords=e.keywords,this.category=e.category,this.description=e.description,this.language=e.language,this.revision=e.revision,this.contentStatus=e.contentStatus,this.properties=e.properties,this.calcProperties=e.calcProperties,this._worksheets=[],e.worksheets.forEach(r=>{const{id:u,name:o,state:i}=r,d=e.sheets&&e.sheets.findIndex(h=>h.id===u);(this._worksheets[u]=new c({id:u,name:o,orderNo:d,state:i,workbook:this})).model=r}),this._definedNames.model=e.definedNames,this.views=e.views,this._themes=e.themes,this.media=e.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(t,v,m){const c=t("../utils/under-dash"),a=t("../utils/col-cache"),s=t("./range"),n=t("./row"),e=t("./column"),r=t("./enums"),u=t("./image"),o=t("./table"),i=t("./data-validations"),d=t("../utils/encryptor"),{copyStyle:h}=t("../utils/copy-style");v.exports=class{constructor(f){f=f||{},this._workbook=f.workbook,this.id=f.id,this.orderNo=f.orderNo,this.name=f.name,this.state=f.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},f.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!f.pageSetup||!f.pageSetup.fitToWidth&&!f.pageSetup.fitToHeight||f.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},f.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},f.headerFooter),this.dataValidations=new i,this.views=f.views||[],this.autoFilter=f.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(f){if(f===void 0&&(f="sheet"+this.id),this._name!==f){if(typeof f!="string")throw new Error("The name has to be a string.");if(f==="")throw new Error("The name can't be empty.");if(f==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(f))throw new Error(`Worksheet name ${f} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(f))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+f);if(f&&f.length>31&&(console.warn(`Worksheet name ${f} exceeds 31 chars. This will be truncated`),f=f.substring(0,31)),this._workbook._worksheets.find(b=>b&&b.name.toLowerCase()===f.toLowerCase()))throw new Error("Worksheet name already exists: "+f);this._name=f}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const f=new s;return this._rows.forEach(b=>{if(b){const p=b.dimensions;p&&f.expand(b.number,p.min,b.number,p.max)}}),f}get columns(){return this._columns}set columns(f){this._headerRowCount=f.reduce((S,_)=>{const T=(_.header?1:_.headers&&_.headers.length)||0;return Math.max(S,T)},0);let b=1;const p=this._columns=[];f.forEach(S=>{const _=new e(this,b++,!1);p.push(_),_.defn=S})}getColumnKey(f){return this._keys[f]}setColumnKey(f,b){this._keys[f]=b}deleteColumnKey(f){delete this._keys[f]}eachColumnKey(f){c.each(this._keys,f)}getColumn(f){if(typeof f=="string"){const b=this._keys[f];if(b)return b;f=a.l2n(f)}if(this._columns||(this._columns=[]),f>this._columns.length){let b=this._columns.length+1;for(;b<=f;)this._columns.push(new e(this,b++))}return this._columns[f-1]}spliceColumns(f,b){const p=this._rows.length;for(var S=arguments.length,_=new Array(S>2?S-2:0),T=2;T<S;T++)_[T-2]=arguments[T];if(_.length>0)for(let N=0;N<p;N++){const V=[f,b];_.forEach(L=>{V.push(L[N]||null)});const W=this.getRow(N+1);W.splice.apply(W,V)}else this._rows.forEach(N=>{N&&N.splice(f,b)});const D=_.length-b,z=f+b,P=this._columns.length;if(D<0)for(let N=f+_.length;N<=P;N++)this.getColumn(N).defn=this.getColumn(N-D).defn;else if(D>0)for(let N=P;N>=z;N--)this.getColumn(N+D).defn=this.getColumn(N).defn;for(let N=f;N<f+_.length;N++)this.getColumn(N).defn=null;this.workbook.definedNames.spliceColumns(this.name,f,b,_.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let f=0;return this.eachRow(b=>{f=Math.max(f,b.cellCount)}),f}get actualColumnCount(){const f=[];let b=0;return this.eachRow(p=>{p.eachCell(S=>{let{col:_}=S;f[_]||(f[_]=!0,b++)})}),b}_commitRow(){}get _lastRowNumber(){const f=this._rows;let b=f.length;for(;b>0&&f[b-1]===void 0;)b--;return b}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(f){return this._rows[f-1]}findRows(f,b){return this._rows.slice(f-1,f-1+b)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let f=0;return this.eachRow(()=>{f++}),f}getRow(f){let b=this._rows[f-1];return b||(b=this._rows[f-1]=new n(this,f)),b}getRows(f,b){if(b<1)return;const p=[];for(let S=f;S<f+b;S++)p.push(this.getRow(S));return p}addRow(f){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const p=this._nextRow,S=this.getRow(p);return S.values=f,this._setStyleOption(p,b[0]==="i"?b:"n"),S}addRows(f){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const p=[];return f.forEach(S=>{p.push(this.addRow(S,b))}),p}insertRow(f,b){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(f,0,b),this._setStyleOption(f,p),this.getRow(f)}insertRows(f,b){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(f,0,...b),p!=="n")for(let S=0;S<b.length;S++)p[0]==="o"&&this.findRow(b.length+f+S)!==void 0?this._copyStyle(b.length+f+S,f+S,p[1]==="+"):p[0]==="i"&&this.findRow(f-1)!==void 0&&this._copyStyle(f-1,f+S,p[1]==="+");return this.getRows(f,b.length)}_setStyleOption(f){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";b[0]==="o"&&this.findRow(f+1)!==void 0?this._copyStyle(f+1,f,b[1]==="+"):b[0]==="i"&&this.findRow(f-1)!==void 0&&this._copyStyle(f-1,f,b[1]==="+")}_copyStyle(f,b){let p=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const S=this.getRow(f),_=this.getRow(b);_.style=h(S.style),S.eachCell({includeEmpty:p},(T,D)=>{_.getCell(D).style=h(T.style)}),_.height=S.height}duplicateRow(f,b){let p=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const S=this._rows[f-1],_=new Array(b).fill(S.values);this.spliceRows(f+1,p?0:b,..._);for(let T=0;T<b;T++){const D=this._rows[f+T];D.style=S.style,D.height=S.height,S.eachCell({includeEmpty:!0},(z,P)=>{D.getCell(P).style=z.style})}}spliceRows(f,b){const p=f+b;for(var S=arguments.length,_=new Array(S>2?S-2:0),T=2;T<S;T++)_[T-2]=arguments[T];const D=_.length,z=D-b,P=this._rows.length;let N,V;if(z<0)for(f===P&&(this._rows[P-1]=void 0),N=p;N<=P;N++)if(V=this._rows[N-1],V){const W=this.getRow(N+z);W.values=V.values,W.style=V.style,W.height=V.height,V.eachCell({includeEmpty:!0},(L,A)=>{W.getCell(A).style=L.style}),this._rows[N-1]=void 0}else this._rows[N+z-1]=void 0;else if(z>0)for(N=P;N>=p;N--)if(V=this._rows[N-1],V){const W=this.getRow(N+z);W.values=V.values,W.style=V.style,W.height=V.height,V.eachCell({includeEmpty:!0},(L,A)=>{if(W.getCell(A).style=L.style,L._value.constructor.name==="MergeValue"){const M=this.getRow(L._row._number+D).getCell(A),C=L._value._master,y=this.getRow(C._row._number+D).getCell(C._column._number);M.merge(y)}})}else this._rows[N+z-1]=void 0;for(N=0;N<D;N++){const W=this.getRow(f+N);W.style={},W.values=_[N]}this.workbook.definedNames.spliceRows(this.name,f,b,D)}eachRow(f,b){if(b||(b=f,f=void 0),f&&f.includeEmpty){const p=this._rows.length;for(let S=1;S<=p;S++)b(this.getRow(S),S)}else this._rows.forEach(p=>{p&&p.hasValues&&b(p,p.number)})}getSheetValues(){const f=[];return this._rows.forEach(b=>{b&&(f[b.number]=b.values)}),f}findCell(f,b){const p=a.getAddress(f,b),S=this._rows[p.row-1];return S?S.findCell(p.col):void 0}getCell(f,b){const p=a.getAddress(f,b);return this.getRow(p.row).getCellEx(p)}mergeCells(){for(var f=arguments.length,b=new Array(f),p=0;p<f;p++)b[p]=arguments[p];const S=new s(b);this._mergeCellsInternal(S)}mergeCellsWithoutStyle(){for(var f=arguments.length,b=new Array(f),p=0;p<f;p++)b[p]=arguments[p];const S=new s(b);this._mergeCellsInternal(S,!0)}_mergeCellsInternal(f,b){c.each(this._merges,S=>{if(S.intersects(f))throw new Error("Cannot merge already merged cells")});const p=this.getCell(f.top,f.left);for(let S=f.top;S<=f.bottom;S++)for(let _=f.left;_<=f.right;_++)(S>f.top||_>f.left)&&this.getCell(S,_).merge(p,b);this._merges[p.address]=f}_unMergeMaster(f){const b=this._merges[f.address];if(b){for(let p=b.top;p<=b.bottom;p++)for(let S=b.left;S<=b.right;S++)this.getCell(p,S).unmerge();delete this._merges[f.address]}}get hasMerges(){return c.some(this._merges,Boolean)}unMergeCells(){for(var f=arguments.length,b=new Array(f),p=0;p<f;p++)b[p]=arguments[p];const S=new s(b);for(let _=S.top;_<=S.bottom;_++)for(let T=S.left;T<=S.right;T++){const D=this.findCell(_,T);D&&(D.type===r.ValueType.Merge?this._unMergeMaster(D.master):this._merges[D.address]&&this._unMergeMaster(D))}}fillFormula(f,b,p){let S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"shared";const _=a.decode(f),{top:T,left:D,bottom:z,right:P}=_,N=P-D+1,V=a.encodeAddress(T,D),W=S==="shared";let L;L=typeof p=="function"?p:Array.isArray(p)?Array.isArray(p[0])?(M,C)=>p[M-T][C-D]:(M,C)=>p[(M-T)*N+(C-D)]:()=>{};let A=!0;for(let M=T;M<=z;M++)for(let C=D;C<=P;C++)A?(this.getCell(M,C).value={shareType:S,formula:b,ref:f,result:L(M,C)},A=!1):this.getCell(M,C).value=W?{sharedFormula:V,result:L(M,C)}:L(M,C)}addImage(f,b){const p={type:"image",imageId:f,range:b};this._media.push(new u(this,p))}getImages(){return this._media.filter(f=>f.type==="image")}addBackgroundImage(f){const b={type:"background",imageId:f};this._media.push(new u(this,b))}getBackgroundImageId(){const f=this._media.find(b=>b.type==="background");return f&&f.imageId}protect(f,b){return new Promise(p=>{this.sheetProtection={sheet:!0},b&&"spinCount"in b&&(b.spinCount=Number.isFinite(b.spinCount)?Math.round(Math.max(0,b.spinCount)):1e5),f&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=d.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=b&&"spinCount"in b?b.spinCount:1e5,this.sheetProtection.hashValue=d.convertPasswordToHash(f,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),b&&(this.sheetProtection=Object.assign(this.sheetProtection,b),!f&&"spinCount"in b&&delete this.sheetProtection.spinCount),p()})}unprotect(){this.sheetProtection=null}addTable(f){const b=new o(this,f);return this.tables[f.name]=b,b}getTable(f){return this.tables[f]}removeTable(f){delete this.tables[f]}getTables(){return Object.values(this.tables)}addConditionalFormatting(f){this.conditionalFormattings.push(f)}removeConditionalFormatting(f){typeof f=="number"?this.conditionalFormattings.splice(f,1):this.conditionalFormattings=f instanceof Function?this.conditionalFormattings.filter(f):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(f){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=f}get model(){const f={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(S=>S.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(S=>S.model),conditionalFormattings:this.conditionalFormattings};f.cols=e.toModel(this.columns);const b=f.rows=[],p=f.dimensions=new s;return this._rows.forEach(S=>{const _=S&&S.model;_&&(p.expand(_.number,_.min,_.number,_.max),b.push(_))}),f.merges=[],c.each(this._merges,S=>{f.merges.push(S.range)}),f}_parseRows(f){this._rows=[],f.rows.forEach(b=>{const p=new n(this,b.number);this._rows[p.number-1]=p,p.model=b})}_parseMergeCells(f){c.each(f.mergeCells,b=>{this.mergeCellsWithoutStyle(b)})}set model(f){this.name=f.name,this._columns=e.fromModel(this,f.cols),this._parseRows(f),this._parseMergeCells(f),this.dataValidations=new i(f.dataValidations),this.properties=f.properties,this.pageSetup=f.pageSetup,this.headerFooter=f.headerFooter,this.views=f.views,this.autoFilter=f.autoFilter,this._media=f.media.map(b=>new u(this,b)),this.sheetProtection=f.sheetProtection,this.tables=f.tables.reduce((b,p)=>{const S=new o;return S.model=p,b[p.name]=S,b},{}),this.conditionalFormattings=f.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(t,v,m){t("core-js/modules/es.promise"),t("core-js/modules/es.promise.finally"),t("core-js/modules/es.object.assign"),t("core-js/modules/es.object.keys"),t("core-js/modules/es.object.values"),t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.async-iterator"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.find-index"),t("core-js/modules/es.array.find"),t("core-js/modules/es.string.from-code-point"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.number.is-nan"),t("regenerator-runtime/runtime");const c={Workbook:t("./doc/workbook")},a=t("./doc/enums");Object.keys(a).forEach(s=>{c[s]=a[s]}),v.exports=c},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(t,v,m){const c=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");m.bufferToString=function(a){return typeof a=="string"?a:c?c.decode(a):a.toString()}},{}],17:[function(t,v,m){const c=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:a}=t("buffer");m.stringToBuffer=function(s){return typeof s!="string"?s:c?a.from(c.encode(s).buffer):a.from(s)}},{buffer:220}],18:[function(t,v,m){const c=t("./under-dash"),a=t("./col-cache");v.exports=class{constructor(s){this.template=s,this.sheets={}}addCell(s){this.addCellEx(a.decodeEx(s))}getCell(s){return this.findCellEx(a.decodeEx(s),!0)}findCell(s){return this.findCellEx(a.decodeEx(s),!1)}findCellAt(s,n,e){const r=this.sheets[s],u=r&&r[n];return u&&u[e]}addCellEx(s){if(s.top)for(let n=s.top;n<=s.bottom;n++)for(let e=s.left;e<=s.right;e++)this.getCellAt(s.sheetName,n,e);else this.findCellEx(s,!0)}getCellEx(s){return this.findCellEx(s,!0)}findCellEx(s,n){const e=this.findSheet(s,n),r=this.findSheetRow(e,s,n);return this.findRowCell(r,s,n)}getCellAt(s,n,e){const r=this.sheets[s]||(this.sheets[s]=[]),u=r[n]||(r[n]=[]);return u[e]||(u[e]={sheetName:s,address:a.n2l(e)+n,row:n,col:e})}removeCellEx(s){const n=this.findSheet(s);if(!n)return;const e=this.findSheetRow(n,s);e&&delete e[s.col]}forEachInSheet(s,n){const e=this.sheets[s];e&&e.forEach((r,u)=>{r&&r.forEach((o,i)=>{o&&n(o,u,i)})})}forEach(s){c.each(this.sheets,(n,e)=>{this.forEachInSheet(e,s)})}map(s){const n=[];return this.forEach(e=>{n.push(s(e))}),n}findSheet(s,n){const e=s.sheetName;return this.sheets[e]?this.sheets[e]:n?this.sheets[e]=[]:void 0}findSheetRow(s,n,e){const{row:r}=n;return s&&s[r]?s[r]:e?s[r]=[]:void 0}findRowCell(s,n,e){const{col:r}=n;return s&&s[r]?s[r]:e?s[r]=this.template?Object.assign(n,JSON.parse(JSON.stringify(this.template))):n:void 0}spliceRows(s,n,e,r){const u=this.sheets[s];if(u){const o=[];for(let i=0;i<r;i++)o.push([]);u.splice(n,e,...o)}}spliceColumns(s,n,e,r){const u=this.sheets[s];if(u){const o=[];for(let i=0;i<r;i++)o.push(null);c.each(u,i=>{i.splice(n,e,...o)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(t,v,m){const c=/^[A-Z]+\d+$/,a={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:s=>s<=26?1:s<=676?2:3,_fill(s){let n,e,r,u,o,i=1;if(s>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&s>=1){for(;i<=26;)n=this._dictionary[i-1],this._n2l[i]=n,this._l2n[n]=i,i++;this._l2nFill=1}if(this._l2nFill<2&&s>=2){for(i=27;i<=702;)e=i-27,r=e%26,u=Math.floor(e/26),n=this._dictionary[u]+this._dictionary[r],this._n2l[i]=n,this._l2n[n]=i,i++;this._l2nFill=2}if(this._l2nFill<3&&s>=3){for(i=703;i<=16384;)e=i-703,r=e%26,u=Math.floor(e/26)%26,o=Math.floor(e/676),n=this._dictionary[o]+this._dictionary[u]+this._dictionary[r],this._n2l[i]=n,this._l2n[n]=i,i++;this._l2nFill=3}},l2n(s){if(this._l2n[s]||this._fill(s.length),!this._l2n[s])throw new Error("Out of bounds. Invalid column letter: "+s);return this._l2n[s]},n2l(s){if(s<1||s>16384)throw new Error(s+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[s]||this._fill(this._level(s)),this._n2l[s]},_hash:{},validateAddress(s){if(!c.test(s))throw new Error("Invalid Address: "+s);return!0},decodeAddress(s){const n=s.length<5&&this._hash[s];if(n)return n;let e=!1,r="",u=0,o=!1,i="",d=0;for(let f,b=0;b<s.length;b++)if(f=s.charCodeAt(b),!o&&f>=65&&f<=90)e=!0,r+=s[b],u=26*u+f-64;else if(f>=48&&f<=57)o=!0,i+=s[b],d=10*d+f-48;else if(o&&e&&f!==36)break;if(e){if(u>16384)throw new Error("Out of bounds. Invalid column letter: "+r)}else u=void 0;o||(d=void 0);const h={address:s=r+i,col:u,row:d,$col$row:`$${r}$${i}`};return u<=100&&d<=100&&(this._hash[s]=h,this._hash[h.$col$row]=h),h},getAddress(s,n){if(n){const e=this.n2l(n)+s;return this.decodeAddress(e)}return this.decodeAddress(s)},decode(s){const n=s.split(":");if(n.length===2){const e=this.decodeAddress(n[0]),r=this.decodeAddress(n[1]),u={top:Math.min(e.row,r.row),left:Math.min(e.col,r.col),bottom:Math.max(e.row,r.row),right:Math.max(e.col,r.col)};return u.tl=this.n2l(u.left)+u.top,u.br=this.n2l(u.right)+u.bottom,u.dimensions=`${u.tl}:${u.br}`,u}return this.decodeAddress(s)},decodeEx(s){const n=s.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),e=n[1]||n[2],r=n[3],u=r.split(":");if(u.length>1){let i=this.decodeAddress(u[0]),d=this.decodeAddress(u[1]);const h=Math.min(i.row,d.row),f=Math.min(i.col,d.col),b=Math.max(i.row,d.row),p=Math.max(i.col,d.col);return i=this.n2l(f)+h,d=this.n2l(p)+b,{top:h,left:f,bottom:b,right:p,sheetName:e,tl:{address:i,col:f,row:h,$col$row:`$${this.n2l(f)}$${h}`,sheetName:e},br:{address:d,col:p,row:b,$col$row:`$${this.n2l(p)}$${b}`,sheetName:e},dimensions:`${i}:${d}`}}if(r.startsWith("#"))return e?{sheetName:e,error:r}:{error:r};const o=this.decodeAddress(r);return e?{sheetName:e,...o}:o},encodeAddress:(s,n)=>a.n2l(n)+s,encode(){switch(arguments.length){case 2:return a.encodeAddress(arguments[0],arguments[1]);case 4:return`${a.encodeAddress(arguments[0],arguments[1])}:${a.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(s,n){const[e,r,,u,o]=s,[i,d]=n;return i>=e&&i<=u&&d>=r&&d<=o}};v.exports=a},{}],20:[function(t,v,m){const c=(s,n)=>({...s,...n.reduce((e,r)=>(s[r]&&(e[r]={...s[r]}),e),{})}),a=function(s,n,e){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];s[e]&&(n[e]=c(s[e],r))};m.copyStyle=s=>{if(!s)return s;if(n=s,Object.keys(n).length===0)return{};var n;const e={...s};return a(s,e,"font",["color"]),a(s,e,"alignment"),a(s,e,"protection"),s.border&&(a(s,e,"border"),a(s.border,e.border,"top",["color"]),a(s.border,e.border,"left",["color"]),a(s.border,e.border,"bottom",["color"]),a(s.border,e.border,"right",["color"]),a(s.border,e.border,"diagonal",["color"])),s.fill&&(a(s,e,"fill",["fgColor","bgColor","center"]),s.fill.stops&&(e.fill.stops=s.fill.stops.map(r=>c(r,["color"])))),e}},{}],21:[function(t,v,m){(function(c){(function(){const a=t("crypto"),s={hash(n){const e=a.createHash(n);for(var r=arguments.length,u=new Array(r>1?r-1:0),o=1;o<r;o++)u[o-1]=arguments[o];return e.update(c.concat(u)),e.digest()},convertPasswordToHash(n,e,r,u){if(e=e.toLowerCase(),a.getHashes().indexOf(e)<0)throw new Error(`Hash algorithm '${e}' not supported!`);const o=c.from(n,"utf16le");let i=this.hash(e,c.from(r,"base64"),o);for(let d=0;d<u;d++){const h=c.alloc(4);h.writeUInt32LE(d,0),i=this.hash(e,i,h)}return i.toString("base64")},randomBytes:n=>a.randomBytes(n)};v.exports=s}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(t,v,m){const{SaxesParser:c}=t("saxes"),{PassThrough:a}=t("readable-stream"),{bufferToString:s}=t("./browser-buffer-decode");v.exports=async function*(n){n.pipe&&!n[Symbol.asyncIterator]&&(n=n.pipe(new a));const e=new c;let r;e.on("error",o=>{r=o});let u=[];e.on("opentag",o=>u.push({eventType:"opentag",value:o})),e.on("text",o=>u.push({eventType:"text",value:o})),e.on("closetag",o=>u.push({eventType:"closetag",value:o}));for await(const o of n){if(e.write(s(o)),r)throw r;yield u,u=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(t,v,m){const c=t("./col-cache"),a=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,s=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;v.exports={slideFormula:function(n,e,r){const u=c.decode(e),o=c.decode(r);return n.replace(a,(i,d,h,f,b)=>{if(b)return i;const p=s.exec(f);if(p){const S=p[1],_=p[2].toUpperCase(),T=p[3],D=p[4];if(_.length>3||_.length===3&&_>"XFD")return i;let z=c.l2n(_),P=parseInt(D,10);return S||(z+=o.col-u.col),T||(P+=o.row-u.row),(d||"")+(S||"")+c.n2l(z)+(T||"")+P}return i})}}},{"./col-cache":19}],24:[function(t,v,m){(function(c,a){(function(){const s=t("readable-stream"),n=t("./utils"),e=t("./string-buf");class r{constructor(f,b){this._data=f,this._encoding=b}get length(){return this.toBuffer().length}copy(f,b,p,S){return this.toBuffer().copy(f,b,p,S)}toBuffer(){return this._buffer||(this._buffer=a.from(this._data,this._encoding)),this._buffer}}class u{constructor(f){this._data=f}get length(){return this._data.length}copy(f,b,p,S){return this._data._buf.copy(f,b,p,S)}toBuffer(){return this._data.toBuffer()}}class o{constructor(f){this._data=f}get length(){return this._data.length}copy(f,b,p,S){this._data.copy(f,b,p,S)}toBuffer(){return this._data}}class i{constructor(f){this.size=f,this.buffer=a.alloc(f),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const f=a.alloc(this.iWrite-this.iRead);return this.buffer.copy(f,0,this.iRead,this.iWrite),f}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(f){let b;return f===0?null:f===void 0||f>=this.length?(b=this.toBuffer(),this.iRead=this.iWrite,b):(b=a.alloc(f),this.buffer.copy(b,0,this.iRead,f),this.iRead+=f,b)}write(f,b,p){const S=Math.min(p,this.size-this.iWrite);return f.copy(this.buffer,this.iWrite,b,b+S),this.iWrite+=S,S}}const d=function(h){h=h||{},this.bufSize=h.bufSize||1048576,this.buffers=[],this.batch=h.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};n.inherits(d,s.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return a.concat(this.buffers.map(h=>h.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const f=this.buffers[this.buffers.length-1];if(!f.full)return f}const h=new i(this.bufSize);return this.buffers.push(h),h},async _pipe(h){await Promise.all(this.pipes.map(function(f){return new Promise(b=>{f.write(h.toBuffer(),()=>{b()})})}))},_writeToBuffers(h){let f=0;const b=h.length;for(;f<b;)f+=this._getWritableBuffer().write(h,f,b-f)},async write(h,f,b){let p;if(f instanceof Function&&(b=f,f="utf8"),b=b||n.nop,h instanceof e)p=new u(h);else if(h instanceof a)p=new o(h);else{if(!(typeof h=="string"||h instanceof String||h instanceof ArrayBuffer))throw new Error("Chunk must be one of type String, Buffer or StringBuf.");p=new r(h,f)}if(this.pipes.length)if(this.batch)for(this._writeToBuffers(p);!this.corked&&this.buffers.length>1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(p),c.nextTick(b)):(await this._pipe(p),b());else this.paused||this.emit("data",p.toBuffer()),this._writeToBuffers(p),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(h,f,b){const p=S=>{S?b(S):(this._flush(),this.pipes.forEach(_=>{_.end()}),this.emit("finish"))};h?this.write(h,f,p):p()},read(h){let f;if(h){for(f=[];h&&this.buffers.length&&!this.buffers[0].eod;){const b=this.buffers[0],p=b.read(h);h-=p.length,f.push(p),b.eod&&b.full&&this.buffers.shift()}return a.concat(f)}return f=this.buffers.map(b=>b.toBuffer()).filter(Boolean),this.buffers=[],a.concat(f)},setEncoding(h){this.encoding=h},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(h){this.pipes.push(h),!this.paused&&this.buffers.length&&this.end()},unpipe(h){this.pipes=this.pipes.filter(f=>f!==h)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),v.exports=d}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(t,v,m){(function(c){(function(){v.exports=class{constructor(a){this._buf=c.alloc(a&&a.size||16384),this._encoding=a&&a.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=c.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(a){a=a||0,this._buffer=void 0,this._inPos=a}_grow(a){let s=2*this._buf.length;for(;s<a;)s*=2;const n=c.alloc(s);this._buf.copy(n,0),this._buf=n}addText(a){this._buffer=void 0;let s=this._inPos+this._buf.write(a,this._inPos,this._encoding);for(;s>=this._buf.length-4;)this._grow(this._inPos+a.length),s=this._inPos+this._buf.write(a,this._inPos,this._encoding);this._inPos=s}addStringBuf(a){a.length&&(this._buffer=void 0,this.length+a.length>this.capacity&&this._grow(this.length+a.length),a._buf.copy(this._buf,this._inPos,0,a.length),this._inPos+=a.length)}}}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220}],26:[function(t,v,m){const{toString:c}=Object.prototype,a=/["&<>]/,s={each:function(n,e){n&&(Array.isArray(n)?n.forEach(e):Object.keys(n).forEach(r=>{e(n[r],r)}))},some:function(n,e){return!!n&&(Array.isArray(n)?n.some(e):Object.keys(n).some(r=>e(n[r],r)))},every:function(n,e){return!n||(Array.isArray(n)?n.every(e):Object.keys(n).every(r=>e(n[r],r)))},map:function(n,e){return n?Array.isArray(n)?n.map(e):Object.keys(n).map(r=>e(n[r],r)):[]},keyBy:(n,e)=>n.reduce((r,u)=>(r[u[e]]=u,r),{}),isEqual:function(n,e){const r=typeof n,u=typeof e,o=Array.isArray(n),i=Array.isArray(e);let d;if(r!==u)return!1;switch(typeof n){case"object":if(o||i)return!(!o||!i)&&n.length===e.length&&n.every((h,f)=>{const b=e[f];return s.isEqual(h,b)});if(n===null||e===null)return n===e;if(d=Object.keys(n),Object.keys(e).length!==d.length)return!1;for(const h of d)if(!e.hasOwnProperty(h))return!1;return s.every(n,(h,f)=>{const b=e[f];return s.isEqual(h,b)});default:return n===e}},escapeHtml(n){const e=a.exec(n);if(!e)return n;let r="",u="",o=0,i=e.index;for(;i<n.length;i++){switch(n.charAt(i)){case'"':u="&quot;";break;case"&":u="&amp;";break;case"'":u="&apos;";break;case"<":u="&lt;";break;case">":u="&gt;";break;default:continue}o!==i&&(r+=n.substring(o,i)),o=i+1,r+=u}return o!==i?r+n.substring(o,i):r},strcmp:(n,e)=>n<e?-1:n>e?1:0,isUndefined:n=>c.call(n)==="[object Undefined]",isObject:n=>c.call(n)==="[object Object]",deepMerge(){const n=arguments[0]||{},{length:e}=arguments;let r,u,o;function i(d,h){r=n[h],o=Array.isArray(d),s.isObject(d)||o?(o?(o=!1,u=r&&Array.isArray(r)?r:[]):u=r&&s.isObject(r)?r:{},n[h]=s.deepMerge(u,d)):s.isUndefined(d)||(n[h]=d)}for(let d=0;d<e;d++)s.each(arguments[d],i);return n}};v.exports=s},{}],27:[function(t,v,m){(function(c,a){(function(){const s=t("fs"),n=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,e={nop(){},promiseImmediate:r=>new Promise(u=>{c.setImmediate?a(()=>{u(r)}):setTimeout(()=>{u(r)},1)}),inherits:function(r,u,o,i){r.super_=u,i||(i=o,o=null),o&&Object.keys(o).forEach(h=>{Object.defineProperty(r,h,Object.getOwnPropertyDescriptor(o,h))});const d={constructor:{value:r,enumerable:!1,writable:!1,configurable:!0}};i&&Object.keys(i).forEach(h=>{d[h]=Object.getOwnPropertyDescriptor(i,h)}),r.prototype=Object.create(u.prototype,d)},dateToExcel:(r,u)=>25569+r.getTime()/864e5-(u?1462:0),excelToDate(r,u){const o=Math.round(24*(r-25569+(u?1462:0))*3600*1e3);return new Date(o)},parsePath(r){const u=r.lastIndexOf("/");return{path:r.substring(0,u),name:r.substring(u+1)}},getRelsPath(r){const u=e.parsePath(r);return`${u.path}/_rels/${u.name}.rels`},xmlEncode(r){const u=n.exec(r);if(!u)return r;let o="",i="",d=0,h=u.index;for(;h<r.length;h++){const f=r.charCodeAt(h);switch(f){case 34:i="&quot;";break;case 38:i="&amp;";break;case 39:i="&apos;";break;case 60:i="&lt;";break;case 62:i="&gt;";break;case 127:i="";break;default:if(f<=31&&(f<=8||f>=11&&f!==13)){i="";break}continue}d!==h&&(o+=r.substring(d,h)),d=h+1,i&&(o+=i)}return d!==h?o+r.substring(d,h):o},xmlDecode:r=>r.replace(/&([a-z]*);/g,u=>{switch(u){case"&lt;":return"<";case"&gt;":return">";case"&amp;":return"&";case"&apos;":return"'";case"&quot;":return'"';default:return u}}),validInt(r){const u=parseInt(r,10);return Number.isNaN(u)?0:u},isDateFmt(r){return r?(r=(r=r.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:r=>new Promise(u=>{s.access(r,s.constants.F_OK,o=>{u(!o)})})},toIsoDateString:r=>r.toIsoString().subsstr(0,10),parseBoolean:r=>r===!0||r==="true"||r===1||r==="1"};v.exports=e}).call(this)}).call(this,typeof ut<"u"?ut:typeof self<"u"?self:typeof window<"u"?window:{},t("timers").setImmediate)},{fs:216,timers:523}],28:[function(t,v,m){const c=t("./under-dash"),a=t("./utils");function s(r,u,o){r.push(` ${u}="${a.xmlEncode(o.toString())}"`)}function n(r,u){if(u){const o=[];c.each(u,(i,d)=>{i!==void 0&&s(o,d,i)}),r.push(o.join(""))}}class e{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(u){const o=this._xml;o.push("<?xml"),n(o,u),o.push(`?>
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("vue"),vi={xs:18,sm:24,md:32,lg:38,xl:46},Vr={size:String};function qr(l,I=vi){return g.computed(()=>l.size!==void 0?{fontSize:l.size in I?`${I[l.size]}px`:l.size}:null)}function Lt(l,I,t,v){return Object.defineProperty(l,I,{get:t,set:v,enumerable:!0}),l}function Bs(l,I){for(const t in I)Lt(l,t,I[t]);return l}function $e(l){return g.markRaw(g.defineComponent(l))}function Fi(l){return g.markRaw(l)}const Is=(l,I)=>{const t=g.reactive(l);for(const v in l)Lt(I,v,()=>t[v],m=>{t[v]=m});return I};function gt(l,I){return l!==void 0&&l()||I}function ji(l,I){if(l!==void 0){const t=l();if(t!=null)return t.slice()}return I}function It(l,I){return l!==void 0?I.concat(l()):I}function ga(l,I){return l===void 0?I:I!==void 0?I.concat(l()):l()}function Os(l,I,t,v,m,c){I.key=v+m;const a=g.h(l,I,t);return m===!0?g.withDirectives(a,c()):a}const bo="0 0 24 24",$n=l=>l,ei=l=>`ionicons ${l}`,ba={"mdi-":l=>`mdi ${l}`,"icon-":$n,"bt-":l=>`bt ${l}`,"eva-":l=>`eva ${l}`,"ion-md":ei,"ion-ios":ei,"ion-logo":ei,"iconfont ":$n,"ti-":l=>`themify-icon ${l}`,"bi-":l=>`bootstrap-icons ${l}`,"i-":$n},va={o_:"-outlined",r_:"-round",s_:"-sharp"},ya={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Fs=new RegExp("^("+Object.keys(ba).join("|")+")"),js=new RegExp("^("+Object.keys(va).join("|")+")"),vo=new RegExp("^("+Object.keys(ya).join("|")+")"),Ds=/^[Mm]\s?[-+]?\.?\d/,Ps=/^img:/,Ns=/^svguse:/,Ls=/^ion-/,Vs=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,vt=$e({name:"QIcon",props:{...Vr,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(l,{slots:I}){const{proxy:{$q:t}}=g.getCurrentInstance(),v=qr(l),m=g.computed(()=>"q-icon"+(l.left===!0?" on-left":"")+(l.right===!0?" on-right":"")+(l.color!==void 0?` text-${l.color}`:"")),c=g.computed(()=>{let a,s=l.name;if(s==="none"||!s)return{none:!0};if(t.iconMapFn!==null){const r=t.iconMapFn(s);if(r!==void 0)if(r.icon!==void 0){if(s=r.icon,s==="none"||!s)return{none:!0}}else return{cls:r.cls,content:r.content!==void 0?r.content:" "}}if(Ds.test(s)===!0){const[r,u=bo]=s.split("|");return{svg:!0,viewBox:u,nodes:r.split("&&").map(o=>{const[i,d,h]=o.split("@@");return g.h("path",{style:d,d:i,transform:h})})}}if(Ps.test(s)===!0)return{img:!0,src:s.substring(4)};if(Ns.test(s)===!0){const[r,u=bo]=s.split("|");return{svguse:!0,src:r.substring(7),viewBox:u}}let n=" ";const e=s.match(Fs);if(e!==null)a=ba[e[1]](s);else if(Vs.test(s)===!0)a=s;else if(Ls.test(s)===!0)a=`ionicons ion-${t.platform.is.ios===!0?"ios":"md"}${s.substring(3)}`;else if(vo.test(s)===!0){a="notranslate material-symbols";const r=s.match(vo);r!==null&&(s=s.substring(6),a+=ya[r[1]]),n=s}else{a="notranslate material-icons";const r=s.match(js);r!==null&&(s=s.substring(2),a+=va[r[1]]),n=s}return{cls:a,content:n}});return()=>{const a={class:m.value,style:v.value,"aria-hidden":"true"};return c.value.none===!0?g.h(l.tag,a,gt(I.default)):c.value.img===!0?g.h(l.tag,a,It(I.default,[g.h("img",{src:c.value.src})])):c.value.svg===!0?g.h(l.tag,a,It(I.default,[g.h("svg",{viewBox:c.value.viewBox||"0 0 24 24"},c.value.nodes)])):c.value.svguse===!0?g.h(l.tag,a,It(I.default,[g.h("svg",{viewBox:c.value.viewBox},[g.h("use",{"xlink:href":c.value.src})])])):(c.value.cls!==void 0&&(a.class+=" "+c.value.cls),g.h(l.tag,a,It(I.default,[c.value.content])))}}});function En(l){if(Object(l.$parent)===l.$parent)return l.$parent;let{parent:I}=l.$;for(;Object(I)===I;){if(Object(I.proxy)===I.proxy)return I.proxy;I=I.parent}}function wa(l,I){typeof I.type=="symbol"?Array.isArray(I.children)===!0&&I.children.forEach(t=>{wa(l,t)}):l.add(I)}function qs(l){const I=new Set;return l.forEach(t=>{wa(I,t)}),Array.from(I)}function Di(l){return l.appContext.config.globalProperties.$router!==void 0}function Pi(l){return l.isUnmounted===!0||l.isDeactivated===!0}function yo(l){return l?l.aliasOf?l.aliasOf.path:l.path:""}function wo(l,I){return(l.aliasOf||l)===(I.aliasOf||I)}function zs(l,I){for(const t in I){const v=I[t],m=l[t];if(typeof v=="string"){if(v!==m)return!1}else if(Array.isArray(m)===!1||m.length!==v.length||v.some((c,a)=>c!==m[a]))return!1}return!0}function xo(l,I){return Array.isArray(I)===!0?l.length===I.length&&l.every((t,v)=>t===I[v]):l.length===1&&l[0]===I}function Us(l,I){return Array.isArray(l)===!0?xo(l,I):Array.isArray(I)===!0?xo(I,l):l===I}function Ws(l,I){if(Object.keys(l).length!==Object.keys(I).length)return!1;for(const t in l)if(Us(l[t],I[t])===!1)return!1;return!0}const xa={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Sa={...xa,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Ni({fallbackTag:l,useDisableForRouterLinkProps:I=!0}={}){const t=g.getCurrentInstance(),{props:v,proxy:m,emit:c}=t,a=Di(t),s=g.computed(()=>v.disable!==!0&&v.href!==void 0),n=I===!0?g.computed(()=>a===!0&&v.disable!==!0&&s.value!==!0&&v.to!==void 0&&v.to!==null&&v.to!==""):g.computed(()=>a===!0&&s.value!==!0&&v.to!==void 0&&v.to!==null&&v.to!==""),e=g.computed(()=>n.value===!0?p(v.to):null),r=g.computed(()=>e.value!==null),u=g.computed(()=>s.value===!0||r.value===!0),o=g.computed(()=>v.type==="a"||u.value===!0?"a":v.tag||l||"div"),i=g.computed(()=>s.value===!0?{href:v.href,target:v.target}:r.value===!0?{href:e.value.href,target:v.target}:{}),d=g.computed(()=>{if(r.value===!1)return-1;const{matched:T}=e.value,{length:D}=T,z=T[D-1];if(z===void 0)return-1;const P=m.$route.matched;if(P.length===0)return-1;const N=P.findIndex(wo.bind(null,z));if(N!==-1)return N;const V=yo(T[D-2]);return D>1&&yo(z)===V&&P[P.length-1].path!==V?P.findIndex(wo.bind(null,T[D-2])):N}),h=g.computed(()=>r.value===!0&&d.value!==-1&&zs(m.$route.params,e.value.params)),f=g.computed(()=>h.value===!0&&d.value===m.$route.matched.length-1&&Ws(m.$route.params,e.value.params)),b=g.computed(()=>r.value===!0?f.value===!0?` ${v.exactActiveClass} ${v.activeClass}`:v.exact===!0?"":h.value===!0?` ${v.activeClass}`:"":"");function p(T){try{return m.$router.resolve(T)}catch{}return null}function S(T,{returnRouterError:D,to:z=v.to,replace:P=v.replace}={}){if(v.disable===!0)return T.preventDefault(),Promise.resolve(!1);if(T.metaKey||T.altKey||T.ctrlKey||T.shiftKey||T.button!==void 0&&T.button!==0||v.target==="_blank")return Promise.resolve(!1);T.preventDefault();const N=m.$router[P===!0?"replace":"push"](z);return D===!0?N:N.then(()=>{}).catch(()=>{})}function _(T){if(r.value===!0){const D=z=>S(T,z);c("click",T,D),T.defaultPrevented!==!0&&D()}else c("click",T)}return{hasRouterLink:r,hasHrefLink:s,hasLink:u,linkTag:o,resolvedLink:e,linkIsActive:h,linkIsExactActive:f,linkClass:b,linkAttrs:i,getLink:p,navigateToRouterLink:S,navigateOnClick:_}}const Hs=$e({name:"QBreadcrumbsEl",props:{...Sa,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(l,{slots:I}){const{linkTag:t,linkAttrs:v,linkClass:m,navigateOnClick:c}=Ni(),a=g.computed(()=>({class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(l.disable!==!0?"q-link--focusable"+m.value:"q-breadcrumbs__el--disable"),...v.value,onClick:c})),s=g.computed(()=>"q-breadcrumbs__el-icon"+(l.label!==void 0?" q-breadcrumbs__el-icon--with-label":""));return()=>{const n=[];return l.icon!==void 0&&n.push(g.h(vt,{class:s.value,name:l.icon})),l.label!==void 0&&n.push(l.label),g.h(t.value,{...a.value},It(I.default,n))}}}),ka={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Ys=Object.keys(ka),Li={align:{type:String,validator:l=>Ys.includes(l)}};function Vi(l){return g.computed(()=>{const I=l.align===void 0?l.vertical===!0?"stretch":"left":l.align;return`${l.vertical===!0?"items":"justify"}-${ka[I]}`})}const Qs=["",!0],Ks=$e({name:"QBreadcrumbs",props:{...Li,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:l=>["none","xs","sm","md","lg","xl"].includes(l),default:"sm"}},setup(l,{slots:I}){const t=Vi(l),v=g.computed(()=>`flex items-center ${t.value}${l.gutter==="none"?"":` q-gutter-${l.gutter}`}`),m=g.computed(()=>l.separatorColor?` text-${l.separatorColor}`:""),c=g.computed(()=>` text-${l.activeColor}`);return()=>{if(I.default===void 0)return;const a=qs(gt(I.default));if(a.length===0)return;let s=1;const n=[],e=a.filter(u=>u.type?.name==="QBreadcrumbsEl").length,r=I.separator!==void 0?I.separator:()=>l.separator;return a.forEach(u=>{if(u.type?.name==="QBreadcrumbsEl"){const o=s<e,i=u.props!==null&&Qs.includes(u.props.disable),d=(o===!0?"":" q-breadcrumbs--last")+(i!==!0&&o===!0?c.value:"");s++,n.push(g.h("div",{class:`flex items-center${d}`},[u])),o===!0&&n.push(g.h("div",{class:"q-breadcrumbs__separator"+m.value},r()))}else n.push(u)}),g.h("div",{class:"q-breadcrumbs"},[g.h("div",{class:v.value},n)])}}}),Xs=g.defineComponent({inheritAttrs:!1,__name:"Breadcrumbs",props:{activeColor:{},separatorIcon:{},separatorSize:{},separatorColor:{},store:{},navStore:{},route:{},router:{},breadcrumbConfig:{},separator:{},gutter:{},align:{}},setup(l){const I=l,t=g.useAttrs(),v=g.computed(()=>{const{activeColor:o,separatorIcon:i,separatorSize:d,separatorColor:h,...f}=t;return f}),m=o=>({"data-cy":o.dataCy,class:"cursor-pointer text-h5",color:o.color}),c=g.computed(()=>I.activeColor||"primary"),a=g.computed(()=>I.separatorIcon||"chevron_right"),s=g.computed(()=>I.separatorSize||"2em"),n=g.computed(()=>I.separatorColor||"primary"),e=g.computed(()=>({store:I.store,route:I.route,navStore:I.navStore||{}})),r=g.computed(()=>{const o=[];return I.breadcrumbConfig.forEach(i=>{if(!i.shouldRender(e.value))return;const d=i.getLabel?i.getLabel(e.value):i.defaultLabel,h=i.getColor?i.getColor(e.value):"dark",f={name:i.routeName,...i.getRouteParams&&{params:i.getRouteParams(e.value)}},b=i.clearActions?i.clearActions.map(p=>()=>p(e.value)):[];o.push({label:d,dataCy:i.dataCy,color:h,route:f,clearActions:b})}),o}),u=o=>{o.clearActions&&o.clearActions.forEach(i=>i()),I.router.push(o.route)};return(o,i)=>(g.openBlock(),g.createBlock(Ks,g.mergeProps({"active-color":c.value,class:"text-brown"},v.value),{separator:g.withCtx(()=>[g.createVNode(vt,{size:s.value,name:a.value,color:n.value},null,8,["size","name","color"])]),default:g.withCtx(()=>[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(r.value,(d,h)=>(g.openBlock(),g.createBlock(Hs,g.mergeProps({key:h},{ref_for:!0},m(d),{label:d.label,onClick:f=>u(d)}),null,16,["label","onClick"]))),128))]),_:1},16,["active-color"]))}}),Gs={size:{type:[String,Number],default:"1em"},color:String};function Js(l){return{cSize:g.computed(()=>l.size in vi?`${vi[l.size]}px`:l.size),classes:g.computed(()=>"q-spinner"+(l.color?` text-${l.color}`:""))}}const Ca=$e({name:"QSpinner",props:{...Gs,thickness:{type:Number,default:5}},setup(l){const{cSize:I,classes:t}=Js(l);return()=>g.h("svg",{class:t.value+" q-spinner-mat",width:I.value,height:I.value,viewBox:"25 25 50 50"},[g.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":l.thickness,"stroke-miterlimit":"10"})])}});function yi(l,I){const t=l.style;for(const v in I)t[v]=I[v]}function Zs(l){if(l==null)return;if(typeof l=="string")try{return document.querySelector(l)||void 0}catch{return}const I=g.unref(l);if(I)return I.$el||I}function _a(l,I){if(l==null||l.contains(I)===!0)return!0;for(let t=l.nextElementSibling;t!==null;t=t.nextElementSibling)if(t.contains(I))return!0;return!1}const Ct={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const l=Object.defineProperty({},"passive",{get(){Object.assign(Ct,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,l),window.removeEventListener("qtest",null,l)}catch{}function Hn(){}function $s(l){return l.button===0}function Jr(l){return l.touches&&l.touches[0]?l=l.touches[0]:l.changedTouches&&l.changedTouches[0]?l=l.changedTouches[0]:l.targetTouches&&l.targetTouches[0]&&(l=l.targetTouches[0]),{top:l.clientY,left:l.clientX}}function el(l){if(l.path)return l.path;if(l.composedPath)return l.composedPath();const I=[];let t=l.target;for(;t;){if(I.push(t),t.tagName==="HTML")return I.push(document),I.push(window),I;t=t.parentElement}}function Dt(l){l.stopPropagation()}function Bt(l){l.cancelable!==!1&&l.preventDefault()}function St(l){l.cancelable!==!1&&l.preventDefault(),l.stopPropagation()}function ti(l,I){if(l===void 0||I===!0&&l.__dragPrevented===!0)return;const t=I===!0?v=>{v.__dragPrevented=!0,v.addEventListener("dragstart",Bt,Ct.notPassiveCapture)}:v=>{delete v.__dragPrevented,v.removeEventListener("dragstart",Bt,Ct.notPassiveCapture)};l.querySelectorAll("a, img").forEach(t)}function Gt(l,I,t){const v=`__q_${I}_evt`;l[v]=l[v]!==void 0?l[v].concat(t):t,t.forEach(m=>{m[0].addEventListener(m[1],l[m[2]],Ct[m[3]])})}function br(l,I){const t=`__q_${I}_evt`;l[t]!==void 0&&(l[t].forEach(v=>{v[0].removeEventListener(v[1],l[v[2]],Ct[v[3]])}),l[t]=void 0)}function qi(l){return l!==Object(l)||l.isComposing===!0||l.qKeyEvent===!0}function ur(l,I){return qi(l)===!0?!1:[].concat(I).includes(l.keyCode)}function tl(l,I=250){let t=!1,v;return function(){return t===!1&&(t=!0,setTimeout(()=>{t=!1},I),v=l.apply(this,arguments)),v}}function So(l,I,t,v){t.modifiers.stop===!0&&Dt(l);const m=t.modifiers.color;let c=t.modifiers.center;c=c===!0||v===!0;const a=document.createElement("span"),s=document.createElement("span"),n=Jr(l),{left:e,top:r,width:u,height:o}=I.getBoundingClientRect(),i=Math.sqrt(u*u+o*o),d=i/2,h=`${(u-i)/2}px`,f=c?h:`${n.left-e-d}px`,b=`${(o-i)/2}px`,p=c?b:`${n.top-r-d}px`;s.className="q-ripple__inner",yi(s,{height:`${i}px`,width:`${i}px`,transform:`translate3d(${f},${p},0) scale3d(.2,.2,1)`,opacity:0}),a.className=`q-ripple${m?" text-"+m:""}`,a.setAttribute("dir","ltr"),a.appendChild(s),I.appendChild(a);const S=()=>{a.remove(),clearTimeout(_)};t.abort.push(S);let _=setTimeout(()=>{s.classList.add("q-ripple__inner--enter"),s.style.transform=`translate3d(${h},${b},0) scale3d(1,1,1)`,s.style.opacity=.2,_=setTimeout(()=>{s.classList.remove("q-ripple__inner--enter"),s.classList.add("q-ripple__inner--leave"),s.style.opacity=0,_=setTimeout(()=>{a.remove(),t.abort.splice(t.abort.indexOf(S),1)},275)},250)},50)}function ko(l,{modifiers:I,value:t,arg:v}){const m=Object.assign({},l.cfg.ripple,I,t);l.modifiers={early:m.early===!0,stop:m.stop===!0,center:m.center===!0,color:m.color||v,keyCodes:[].concat(m.keyCodes||13)}}const Aa=Fi({name:"ripple",beforeMount(l,I){const t=I.instance.$.appContext.config.globalProperties.$q.config||{};if(t.ripple===!1)return;const v={cfg:t,enabled:I.value!==!1,modifiers:{},abort:[],start(m){v.enabled===!0&&m.qSkipRipple!==!0&&m.type===(v.modifiers.early===!0?"pointerdown":"click")&&So(m,l,v,m.qKeyEvent===!0)},keystart:tl(m=>{v.enabled===!0&&m.qSkipRipple!==!0&&ur(m,v.modifiers.keyCodes)===!0&&m.type===`key${v.modifiers.early===!0?"down":"up"}`&&So(m,l,v,!0)},300)};ko(v,I),l.__qripple=v,Gt(v,"main",[[l,"pointerdown","start","passive"],[l,"click","start","passive"],[l,"keydown","keystart","passive"],[l,"keyup","keystart","passive"]])},updated(l,I){if(I.oldValue!==I.value){const t=l.__qripple;t!==void 0&&(t.enabled=I.value!==!1,t.enabled===!0&&Object(I.value)===I.value&&ko(t,I))}},beforeUnmount(l){const I=l.__qripple;I!==void 0&&(I.abort.forEach(t=>{t()}),br(I,"main"),delete l._qripple)}}),Co={none:0,xs:4,sm:8,md:16,lg:24,xl:32},rl={xs:8,sm:10,md:14,lg:20,xl:24},nl=["button","submit","reset"],il=/[^\s]\/[^\s]/,ol=["flat","outline","push","unelevated"];function al(l,I){return l.flat===!0?"flat":l.outline===!0?"outline":l.push===!0?"push":l.unelevated===!0?"unelevated":I}const sl={...Vr,...xa,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...ol.reduce((l,I)=>(l[I]=Boolean)&&l,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...Li.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},ll={...sl,round:Boolean};function ul(l){const I=qr(l,rl),t=Vi(l),{hasRouterLink:v,hasLink:m,linkTag:c,linkAttrs:a,navigateOnClick:s}=Ni({fallbackTag:"button"}),n=g.computed(()=>{const f=l.fab===!1&&l.fabMini===!1?I.value:{};return l.padding!==void 0?Object.assign({},f,{padding:l.padding.split(/\s+/).map(b=>b in Co?Co[b]+"px":b).join(" "),minWidth:"0",minHeight:"0"}):f}),e=g.computed(()=>l.rounded===!0||l.fab===!0||l.fabMini===!0),r=g.computed(()=>l.disable!==!0&&l.loading!==!0),u=g.computed(()=>r.value===!0?l.tabindex||0:-1),o=g.computed(()=>al(l,"standard")),i=g.computed(()=>{const f={tabindex:u.value};return m.value===!0?Object.assign(f,a.value):nl.includes(l.type)===!0&&(f.type=l.type),c.value==="a"?(l.disable===!0?f["aria-disabled"]="true":f.href===void 0&&(f.role="button"),v.value!==!0&&il.test(l.type)===!0&&(f.type=l.type)):l.disable===!0&&(f.disabled="",f["aria-disabled"]="true"),l.loading===!0&&l.percentage!==void 0&&Object.assign(f,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l.percentage}),f}),d=g.computed(()=>{let f;l.color!==void 0?l.flat===!0||l.outline===!0?f=`text-${l.textColor||l.color}`:f=`bg-${l.color} text-${l.textColor||"white"}`:l.textColor&&(f=`text-${l.textColor}`);const b=l.round===!0?"round":`rectangle${e.value===!0?" q-btn--rounded":l.square===!0?" q-btn--square":""}`;return`q-btn--${o.value} q-btn--${b}`+(f!==void 0?" "+f:"")+(r.value===!0?" q-btn--actionable q-focusable q-hoverable":l.disable===!0?" disabled":"")+(l.fab===!0?" q-btn--fab":l.fabMini===!0?" q-btn--fab-mini":"")+(l.noCaps===!0?" q-btn--no-uppercase":"")+(l.dense===!0?" q-btn--dense":"")+(l.stretch===!0?" no-border-radius self-stretch":"")+(l.glossy===!0?" glossy":"")+(l.square?" q-btn--square":"")}),h=g.computed(()=>t.value+(l.stack===!0?" column":" row")+(l.noWrap===!0?" no-wrap text-no-wrap":"")+(l.loading===!0?" q-btn__content--hidden":""));return{classes:d,style:n,innerClasses:h,attributes:i,hasLink:m,linkTag:c,navigateOnClick:s,isActionable:r}}const{passiveCapture:Nt}=Ct;let _r=null,Ar=null,Er=null;const ot=$e({name:"QBtn",props:{...ll,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(l,{slots:I,emit:t}){const{proxy:v}=g.getCurrentInstance(),{classes:m,style:c,innerClasses:a,attributes:s,hasLink:n,linkTag:e,navigateOnClick:r,isActionable:u}=ul(l),o=g.ref(null),i=g.ref(null);let d=null,h,f=null;const b=g.computed(()=>l.label!==void 0&&l.label!==null&&l.label!==""),p=g.computed(()=>l.disable===!0||l.ripple===!1?!1:{keyCodes:n.value===!0?[13,32]:[13],...l.ripple===!0?{}:l.ripple}),S=g.computed(()=>({center:l.round})),_=g.computed(()=>{const M=Math.max(0,Math.min(100,l.percentage));return M>0?{transition:"transform 0.6s",transform:`translateX(${M-100}%)`}:{}}),T=g.computed(()=>{if(l.loading===!0)return{onMousedown:A,onTouchstart:A,onClick:A,onKeydown:A,onKeyup:A};if(u.value===!0){const M={onClick:z,onKeydown:P,onMousedown:V};if(v.$q.platform.has.touch===!0){const C=l.onTouchstart!==void 0?"":"Passive";M[`onTouchstart${C}`]=N}return M}return{onClick:St}}),D=g.computed(()=>({ref:o,class:"q-btn q-btn-item non-selectable no-outline "+m.value,style:c.value,...s.value,...T.value}));function z(M){if(o.value!==null){if(M!==void 0){if(M.defaultPrevented===!0)return;const C=document.activeElement;if(l.type==="submit"&&C!==document.body&&o.value.contains(C)===!1&&C.contains(o.value)===!1){M.qAvoidFocus!==!0&&o.value.focus();const y=()=>{document.removeEventListener("keydown",St,!0),document.removeEventListener("keyup",y,Nt),o.value?.removeEventListener("blur",y,Nt)};document.addEventListener("keydown",St,!0),document.addEventListener("keyup",y,Nt),o.value.addEventListener("blur",y,Nt)}}r(M)}}function P(M){o.value!==null&&(t("keydown",M),ur(M,[13,32])===!0&&Ar!==o.value&&(Ar!==null&&L(),M.defaultPrevented!==!0&&(M.qAvoidFocus!==!0&&o.value.focus(),Ar=o.value,o.value.classList.add("q-btn--active"),document.addEventListener("keyup",W,!0),o.value.addEventListener("blur",W,Nt)),St(M)))}function N(M){o.value!==null&&(t("touchstart",M),M.defaultPrevented!==!0&&(_r!==o.value&&(_r!==null&&L(),_r=o.value,d=M.target,d.addEventListener("touchcancel",W,Nt),d.addEventListener("touchend",W,Nt)),h=!0,f!==null&&clearTimeout(f),f=setTimeout(()=>{f=null,h=!1},200)))}function V(M){o.value!==null&&(M.qSkipRipple=h===!0,t("mousedown",M),M.defaultPrevented!==!0&&Er!==o.value&&(Er!==null&&L(),Er=o.value,o.value.classList.add("q-btn--active"),document.addEventListener("mouseup",W,Nt)))}function W(M){if(o.value!==null&&!(M?.type==="blur"&&document.activeElement===o.value)){if(M?.type==="keyup"){if(Ar===o.value&&ur(M,[13,32])===!0){const C=new MouseEvent("click",M);C.qKeyEvent=!0,M.defaultPrevented===!0&&Bt(C),M.cancelBubble===!0&&Dt(C),o.value.dispatchEvent(C),St(M),M.qKeyEvent=!0}t("keyup",M)}L()}}function L(M){const C=i.value;M!==!0&&(_r===o.value||Er===o.value)&&C!==null&&C!==document.activeElement&&(C.setAttribute("tabindex",-1),C.focus()),_r===o.value&&(d!==null&&(d.removeEventListener("touchcancel",W,Nt),d.removeEventListener("touchend",W,Nt)),_r=d=null),Er===o.value&&(document.removeEventListener("mouseup",W,Nt),Er=null),Ar===o.value&&(document.removeEventListener("keyup",W,!0),o.value?.removeEventListener("blur",W,Nt),Ar=null),o.value?.classList.remove("q-btn--active")}function A(M){St(M),M.qSkipRipple=!0}return g.onBeforeUnmount(()=>{L(!0)}),Object.assign(v,{click:M=>{u.value===!0&&z(M)}}),()=>{let M=[];l.icon!==void 0&&M.push(g.h(vt,{name:l.icon,left:l.stack!==!0&&b.value===!0,role:"img"})),b.value===!0&&M.push(g.h("span",{class:"block"},[l.label])),M=It(I.default,M),l.iconRight!==void 0&&l.round===!1&&M.push(g.h(vt,{name:l.iconRight,right:l.stack!==!0&&b.value===!0,role:"img"}));const C=[g.h("span",{class:"q-focus-helper",ref:i})];return l.loading===!0&&l.percentage!==void 0&&C.push(g.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(l.darkPercentage===!0?" q-btn__progress--dark":"")},[g.h("span",{class:"q-btn__progress-indicator fit block",style:_.value})])),C.push(g.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+a.value},M)),l.loading!==null&&C.push(g.h(g.Transition,{name:"q-transition--fade"},()=>l.loading===!0?[g.h("span",{key:"loading",class:"absolute-full flex flex-center"},I.loading!==void 0?I.loading():[g.h(Ca)])]:null)),g.withDirectives(g.h(e.value,D.value,C),[[Aa,p.value,void 0,S.value]])}}}),cl={class:"row justify-between"},fl=g.defineComponent({__name:"NavButton",props:{from:{},to:{default:void 0},labelFrom:{},labelTo:{default:void 0},params:{default:()=>({})},query:{default:()=>({})}},setup(l){const I=l,t=g.inject("navContext",null),v=g.inject("router");function m(c){if(!v){console.warn("Dependencies not available:",{router:v});return}t?.setTabs();const a=c==="back"?I.from:I.to;if(!a){console.warn("Destination not provided:",c);return}v.push({name:a,params:I.params,query:I.query})}return(c,a)=>(g.openBlock(),g.createElementBlock("div",cl,[g.createVNode(ot,{icon:"chevron_left","rounded-sm":"",label:c.labelFrom,"data-cy":"go-back","data-testid":"go-back",onClick:a[0]||(a[0]=s=>m("back"))},null,8,["label"]),c.labelTo?(g.openBlock(),g.createBlock(ot,{key:0,label:c.labelTo,color:"primary","text-color":"white","icon-right":"chevron_right","rounded-sm":"","data-cy":"go-next","data-testid":"go-next",onClick:a[1]||(a[1]=s=>m("next"))},null,8,["label"])):g.createCommentVNode("",!0)]))}}),Yt=(l,I)=>{const t=l.__vccOpts||l;for(const[v,m]of I)t[v]=m;return t},dl=Yt(fl,[["__scopeId","data-v-8dd99f80"]]),Ot={dark:{type:Boolean,default:null}};function Ft(l,I){return g.computed(()=>l.dark===null?I.dark.isActive:l.dark)}function hl(l,I){const t=g.ref(null),v=g.computed(()=>l.disable===!0?null:g.h("span",{ref:t,class:"no-outline",tabindex:-1}));function m(c){const a=I.value;c?.qAvoidFocus!==!0&&(c?.type.indexOf("key")===0?document.activeElement!==a&&a?.contains(document.activeElement)===!0&&a.focus():t.value!==null&&(c===void 0||a?.contains(c.target)===!0)&&t.value.focus())}return{refocusTargetEl:v,refocusTarget:m}}const Yn={name:String};function pl(l){return g.computed(()=>({type:"hidden",name:l.name,value:l.modelValue}))}function Ea(l={}){return(I,t,v)=>{I[t](g.h("input",{class:"hidden"+(v||""),...l.value}))}}function Ma(l){return g.computed(()=>l.name||l.for)}const ml={xs:30,sm:35,md:40,lg:50,xl:60},Ta={...Ot,...Vr,...Yn,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:l=>l==="tf"||l==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},Ra=["update:modelValue"];function Ba(l,I){const{props:t,slots:v,emit:m,proxy:c}=g.getCurrentInstance(),{$q:a}=c,s=Ft(t,a),n=g.ref(null),{refocusTargetEl:e,refocusTarget:r}=hl(t,n),u=qr(t,ml),o=g.computed(()=>t.val!==void 0&&Array.isArray(t.modelValue)),i=g.computed(()=>{const L=g.toRaw(t.val);return o.value===!0?t.modelValue.findIndex(A=>g.toRaw(A)===L):-1}),d=g.computed(()=>o.value===!0?i.value!==-1:g.toRaw(t.modelValue)===g.toRaw(t.trueValue)),h=g.computed(()=>o.value===!0?i.value===-1:g.toRaw(t.modelValue)===g.toRaw(t.falseValue)),f=g.computed(()=>d.value===!1&&h.value===!1),b=g.computed(()=>t.disable===!0?-1:t.tabindex||0),p=g.computed(()=>`q-${l} cursor-pointer no-outline row inline no-wrap items-center`+(t.disable===!0?" disabled":"")+(s.value===!0?` q-${l}--dark`:"")+(t.dense===!0?` q-${l}--dense`:"")+(t.leftLabel===!0?" reverse":"")),S=g.computed(()=>{const L=d.value===!0?"truthy":h.value===!0?"falsy":"indet",A=t.color!==void 0&&(t.keepColor===!0||(l==="toggle"?d.value===!0:h.value!==!0))?` text-${t.color}`:"";return`q-${l}__inner relative-position non-selectable q-${l}__inner--${L}${A}`}),_=g.computed(()=>{const L={type:"checkbox"};return t.name!==void 0&&Object.assign(L,{".checked":d.value,"^checked":d.value===!0?"checked":void 0,name:t.name,value:o.value===!0?t.val:t.trueValue}),L}),T=Ea(_),D=g.computed(()=>{const L={tabindex:b.value,role:l==="toggle"?"switch":"checkbox","aria-label":t.label,"aria-checked":f.value===!0?"mixed":d.value===!0?"true":"false"};return t.disable===!0&&(L["aria-disabled"]="true"),L});function z(L){L!==void 0&&(St(L),r(L)),t.disable!==!0&&m("update:modelValue",P(),L)}function P(){if(o.value===!0){if(d.value===!0){const L=t.modelValue.slice();return L.splice(i.value,1),L}return t.modelValue.concat([t.val])}if(d.value===!0){if(t.toggleOrder!=="ft"||t.toggleIndeterminate===!1)return t.falseValue}else if(h.value===!0){if(t.toggleOrder==="ft"||t.toggleIndeterminate===!1)return t.trueValue}else return t.toggleOrder!=="ft"?t.trueValue:t.falseValue;return t.indeterminateValue}function N(L){(L.keyCode===13||L.keyCode===32)&&St(L)}function V(L){(L.keyCode===13||L.keyCode===32)&&z(L)}const W=I(d,f);return Object.assign(c,{toggle:z}),()=>{const L=W();t.disable!==!0&&T(L,"unshift",` q-${l}__native absolute q-ma-none q-pa-none`);const A=[g.h("div",{class:S.value,style:u.value,"aria-hidden":"true"},L)];e.value!==null&&A.push(e.value);const M=t.label!==void 0?It(v.default,[t.label]):gt(v.default);return M!==void 0&&A.push(g.h("div",{class:`q-${l}__label q-anchor--skip`},M)),g.h("div",{ref:n,class:p.value,...D.value,onClick:z,onKeydown:N,onKeyup:V},A)}}const gl=()=>g.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[g.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[g.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),g.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),lr=$e({name:"QCheckbox",props:Ta,emits:Ra,setup(l){const I=gl();function t(v,m){const c=g.computed(()=>(v.value===!0?l.checkedIcon:m.value===!0?l.indeterminateIcon:l.uncheckedIcon)||null);return()=>c.value!==null?[g.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[g.h(vt,{class:"q-checkbox__icon",name:c.value})])]:[I]}return Ba("checkbox",t)}}),bl=$e({props:["store","barStyle","verticalBarStyle","horizontalBarStyle"],setup(l){return()=>[g.h("div",{class:l.store.scroll.vertical.barClass.value,style:[l.barStyle,l.verticalBarStyle],"aria-hidden":"true",onMousedown:l.store.onVerticalMousedown}),g.h("div",{class:l.store.scroll.horizontal.barClass.value,style:[l.barStyle,l.horizontalBarStyle],"aria-hidden":"true",onMousedown:l.store.onHorizontalMousedown}),g.withDirectives(g.h("div",{ref:l.store.scroll.vertical.ref,class:l.store.scroll.vertical.thumbClass.value,style:l.store.scroll.vertical.style.value,"aria-hidden":"true"}),l.store.thumbVertDir),g.withDirectives(g.h("div",{ref:l.store.scroll.horizontal.ref,class:l.store.scroll.horizontal.thumbClass.value,style:l.store.scroll.horizontal.style.value,"aria-hidden":"true"}),l.store.thumbHorizDir)]}}),cr=g.ref(!1);let wi;function vl(l,I){const t=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(l)||/(opr)[\/]([\w.]+)/.exec(l)||/(vivaldi)[\/]([\w.]+)/.exec(l)||/(chrome|crios)[\/]([\w.]+)/.exec(l)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(l)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(l)||/(firefox|fxios)[\/]([\w.]+)/.exec(l)||/(webkit)[\/]([\w.]+)/.exec(l)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(l)||[];return{browser:t[5]||t[3]||t[1]||"",version:t[4]||t[2]||"0",platform:I[0]||""}}function yl(l){return/(ipad)/.exec(l)||/(ipod)/.exec(l)||/(windows phone)/.exec(l)||/(iphone)/.exec(l)||/(kindle)/.exec(l)||/(silk)/.exec(l)||/(android)/.exec(l)||/(win)/.exec(l)||/(mac)/.exec(l)||/(linux)/.exec(l)||/(cros)/.exec(l)||/(playbook)/.exec(l)||/(bb)/.exec(l)||/(blackberry)/.exec(l)||[]}const Ia="ontouchstart"in window||window.navigator.maxTouchPoints>0;function wl(l){const I=l.toLowerCase(),t=yl(I),v=vl(I,t),m={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,blackberry:!1,playbook:!1,silk:!1};v.browser&&(m[v.browser]=!0,m.version=v.version,m.versionNumber=parseInt(v.version,10)),v.platform&&(m[v.platform]=!0);const c=m.android||m.ios||m.bb||m.blackberry||m.ipad||m.iphone||m.ipod||m.kindle||m.playbook||m.silk||m["windows phone"];if(c===!0||I.indexOf("mobile")!==-1?m.mobile=!0:m.desktop=!0,m["windows phone"]&&(m.winphone=!0,delete m["windows phone"]),m.edga||m.edgios||m.edg?(m.edge=!0,v.browser="edge"):m.crios?(m.chrome=!0,v.browser="chrome"):m.fxios&&(m.firefox=!0,v.browser="firefox"),(m.ipod||m.ipad||m.iphone)&&(m.ios=!0),m.vivaldi&&(v.browser="vivaldi",m.vivaldi=!0),(m.chrome||m.opr||m.safari||m.vivaldi||m.mobile===!0&&m.ios!==!0&&c!==!0)&&(m.webkit=!0),m.opr&&(v.browser="opera",m.opera=!0),m.safari&&(m.blackberry||m.bb?(v.browser="blackberry",m.blackberry=!0):m.playbook?(v.browser="playbook",m.playbook=!0):m.android?(v.browser="android",m.android=!0):m.kindle?(v.browser="kindle",m.kindle=!0):m.silk&&(v.browser="silk",m.silk=!0)),m.name=v.browser,m.platform=v.platform,I.indexOf("electron")!==-1)m.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)m.bex=!0;else{if(window.Capacitor!==void 0?(m.capacitor=!0,m.nativeMobile=!0,m.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(m.cordova=!0,m.nativeMobile=!0,m.nativeMobileWrapper="cordova"),cr.value===!0&&(wi={is:{...m}}),Ia===!0&&m.mac===!0&&(m.desktop===!0&&m.safari===!0||m.nativeMobile===!0&&m.android!==!0&&m.ios!==!0&&m.ipad!==!0)){delete m.mac,delete m.desktop;const a=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(m,{mobile:!0,ios:!0,platform:a,[a]:!0})}m.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete m.desktop,m.mobile=!0)}return m}const _o=navigator.userAgent||navigator.vendor||window.opera,xl={has:{touch:!1,webStorage:!1},within:{iframe:!1}},Et={userAgent:_o,is:wl(_o),has:{touch:Ia},within:{iframe:window.self!==window.top}},xi={install(l){const{$q:I}=l;cr.value===!0?(l.onSSRHydrated.push(()=>{Object.assign(I.platform,Et),cr.value=!1}),I.platform=g.reactive(this)):I.platform=this}};{let l;Lt(Et.has,"webStorage",()=>{if(l!==void 0)return l;try{if(window.localStorage)return l=!0,!0}catch{}return l=!1,!1}),Object.assign(xi,Et),cr.value===!0&&(Object.assign(xi,wi,xl),wi=null)}function Sl(){const l=g.ref(!cr.value);return l.value===!1&&g.onMounted(()=>{l.value=!0}),{isHydrated:l}}const Oa=typeof ResizeObserver<"u",Ao=Oa===!0?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"},Pr=$e({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(l,{emit:I}){let t=null,v,m={width:-1,height:-1};function c(n){n===!0||l.debounce===0||l.debounce==="0"?a():t===null&&(t=setTimeout(a,l.debounce))}function a(){if(t!==null&&(clearTimeout(t),t=null),v){const{offsetWidth:n,offsetHeight:e}=v;(n!==m.width||e!==m.height)&&(m={width:n,height:e},I("resize",m))}}const{proxy:s}=g.getCurrentInstance();if(s.trigger=c,Oa===!0){let n;const e=r=>{v=s.$el.parentNode,v?(n=new ResizeObserver(c),n.observe(v),a()):r!==!0&&g.nextTick(()=>{e(!0)})};return g.onMounted(()=>{e()}),g.onBeforeUnmount(()=>{t!==null&&clearTimeout(t),n!==void 0&&(n.disconnect!==void 0?n.disconnect():v&&n.unobserve(v))}),Hn}else{let n=function(){t!==null&&(clearTimeout(t),t=null),u!==void 0&&(u.removeEventListener!==void 0&&u.removeEventListener("resize",c,Ct.passive),u=void 0)},e=function(){n(),v?.contentDocument&&(u=v.contentDocument.defaultView,u.addEventListener("resize",c,Ct.passive),a())};const{isHydrated:r}=Sl();let u;return g.onMounted(()=>{g.nextTick(()=>{v=s.$el,v&&e()})}),g.onBeforeUnmount(n),()=>{if(r.value===!0)return g.h("object",{class:"q--avoid-card-border",style:Ao.style,tabindex:-1,type:"text/html",data:Ao.url,"aria-hidden":"true",onLoad:e})}}}}),Qn=[Element,String],kl=[null,document,document.body,document.scrollingElement,document.documentElement];function Kn(l,I){let t=Zs(I);if(t===void 0){if(l==null)return window;t=l.closest(".scroll,.scroll-y,.overflow-auto")}return kl.includes(t)?window:t}function zi(l){return l===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:l.scrollTop}function Ui(l){return l===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:l.scrollLeft}function Fa(l,I,t=0){const v=arguments[3]===void 0?performance.now():arguments[3],m=zi(l);if(t<=0){m!==I&&Si(l,I);return}requestAnimationFrame(c=>{const a=c-v,s=m+(I-m)/Math.max(a,t)*a;Si(l,s),s!==I&&Fa(l,I,t-a,c)})}function ja(l,I,t=0){const v=arguments[3]===void 0?performance.now():arguments[3],m=Ui(l);if(t<=0){m!==I&&ki(l,I);return}requestAnimationFrame(c=>{const a=c-v,s=m+(I-m)/Math.max(a,t)*a;ki(l,s),s!==I&&ja(l,I,t-a,c)})}function Si(l,I){if(l===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,I);return}l.scrollTop=I}function ki(l,I){if(l===window){window.scrollTo(I,window.pageYOffset||window.scrollY||document.body.scrollTop||0);return}l.scrollLeft=I}function Eo(l,I,t){if(t){Fa(l,I,t);return}Si(l,I)}function ri(l,I,t){if(t){ja(l,I,t);return}ki(l,I)}let pn;function Mn(){if(pn!==void 0)return pn;const l=document.createElement("p"),I=document.createElement("div");yi(l,{width:"100%",height:"200px"}),yi(I,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),I.appendChild(l),document.body.appendChild(I);const t=l.offsetWidth;I.style.overflow="scroll";let v=l.offsetWidth;return t===v&&(v=I.clientWidth),I.remove(),pn=t-v,pn}function Cl(l,I=!0){return!l||l.nodeType!==Node.ELEMENT_NODE?!1:I?l.scrollHeight>l.clientHeight&&(l.classList.contains("scroll")||l.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(l)["overflow-y"])):l.scrollWidth>l.clientWidth&&(l.classList.contains("scroll")||l.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(l)["overflow-x"]))}const{passive:Mo}=Ct,_l=["both","horizontal","vertical"],Da=$e({name:"QScrollObserver",props:{axis:{type:String,validator:l=>_l.includes(l),default:"vertical"},debounce:[String,Number],scrollTarget:Qn},emits:["scroll"],setup(l,{emit:I}){const t={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let v=null,m,c;g.watch(()=>l.scrollTarget,()=>{n(),s()});function a(){v?.();const u=Math.max(0,zi(m)),o=Ui(m),i={top:u-t.position.top,left:o-t.position.left};if(l.axis==="vertical"&&i.top===0||l.axis==="horizontal"&&i.left===0)return;const d=Math.abs(i.top)>=Math.abs(i.left)?i.top<0?"up":"down":i.left<0?"left":"right";t.position={top:u,left:o},t.directionChanged=t.direction!==d,t.delta=i,t.directionChanged===!0&&(t.direction=d,t.inflectionPoint=t.position),I("scroll",{...t})}function s(){m=Kn(c,l.scrollTarget),m.addEventListener("scroll",e,Mo),e(!0)}function n(){m!==void 0&&(m.removeEventListener("scroll",e,Mo),m=void 0)}function e(u){if(u===!0||l.debounce===0||l.debounce==="0")a();else if(v===null){const[o,i]=l.debounce?[setTimeout(a,l.debounce),clearTimeout]:[requestAnimationFrame(a),cancelAnimationFrame];v=()=>{i(o),v=null}}}const{proxy:r}=g.getCurrentInstance();return g.watch(()=>r.$q.lang.rtl,a),g.onMounted(()=>{c=r.$el.parentNode,s()}),g.onBeforeUnmount(()=>{v?.(),n()}),Object.assign(r,{trigger:e,getPosition:()=>t}),Hn}}),Wi={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},Al=Object.keys(Wi);Wi.all=!0;function To(l){const I={};for(const t of Al)l[t]===!0&&(I[t]=!0);return Object.keys(I).length===0?Wi:(I.horizontal===!0?I.left=I.right=!0:I.left===!0&&I.right===!0&&(I.horizontal=!0),I.vertical===!0?I.up=I.down=!0:I.up===!0&&I.down===!0&&(I.vertical=!0),I.horizontal===!0&&I.vertical===!0&&(I.all=!0),I)}const El=["INPUT","TEXTAREA"];function Ro(l,I){return I.event===void 0&&l.target!==void 0&&l.target.draggable!==!0&&typeof I.handler=="function"&&El.includes(l.target.nodeName.toUpperCase())===!1&&(l.qClonedBy===void 0||l.qClonedBy.indexOf(I.uid)===-1)}function In(){if(window.getSelection!==void 0){const l=window.getSelection();l.empty!==void 0?l.empty():l.removeAllRanges!==void 0&&(l.removeAllRanges(),xi.is.mobile!==!0&&l.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}function ni(l,I,t){const v=Jr(l);let m,c=v.left-I.event.x,a=v.top-I.event.y,s=Math.abs(c),n=Math.abs(a);const e=I.direction;e.horizontal===!0&&e.vertical!==!0?m=c<0?"left":"right":e.horizontal!==!0&&e.vertical===!0?m=a<0?"up":"down":e.up===!0&&a<0?(m="up",s>n&&(e.left===!0&&c<0?m="left":e.right===!0&&c>0&&(m="right"))):e.down===!0&&a>0?(m="down",s>n&&(e.left===!0&&c<0?m="left":e.right===!0&&c>0&&(m="right"))):e.left===!0&&c<0?(m="left",s<n&&(e.up===!0&&a<0?m="up":e.down===!0&&a>0&&(m="down"))):e.right===!0&&c>0&&(m="right",s<n&&(e.up===!0&&a<0?m="up":e.down===!0&&a>0&&(m="down")));let r=!1;if(m===void 0&&t===!1){if(I.event.isFirst===!0||I.event.lastDir===void 0)return{};m=I.event.lastDir,r=!0,m==="left"||m==="right"?(v.left-=c,s=0,c=0):(v.top-=a,n=0,a=0)}return{synthetic:r,payload:{evt:l,touch:I.event.mouse!==!0,mouse:I.event.mouse===!0,position:v,direction:m,isFirst:I.event.isFirst,isFinal:t===!0,duration:Date.now()-I.event.time,distance:{x:s,y:n},offset:{x:c,y:a},delta:{x:v.left-I.event.lastX,y:v.top-I.event.lastY}}}}let Ml=0;const Bo=Fi({name:"touch-pan",beforeMount(l,{value:I,modifiers:t}){if(t.mouse!==!0&&Et.has.touch!==!0)return;function v(c,a){t.mouse===!0&&a===!0?St(c):(t.stop===!0&&Dt(c),t.prevent===!0&&Bt(c))}const m={uid:"qvtp_"+Ml++,handler:I,modifiers:t,direction:To(t),noop:Hn,mouseStart(c){Ro(c,m)&&$s(c)&&(Gt(m,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),m.start(c,!0))},touchStart(c){if(Ro(c,m)){const a=c.target;Gt(m,"temp",[[a,"touchmove","move","notPassiveCapture"],[a,"touchcancel","end","passiveCapture"],[a,"touchend","end","passiveCapture"]]),m.start(c)}},start(c,a){if(Et.is.firefox===!0&&ti(l,!0),m.lastEvt=c,a===!0||t.stop===!0){if(m.direction.all!==!0&&(a!==!0||m.modifiers.mouseAllDir!==!0&&m.modifiers.mousealldir!==!0)){const e=c.type.indexOf("mouse")!==-1?new MouseEvent(c.type,c):new TouchEvent(c.type,c);c.defaultPrevented===!0&&Bt(e),c.cancelBubble===!0&&Dt(e),Object.assign(e,{qKeyEvent:c.qKeyEvent,qClickOutside:c.qClickOutside,qAnchorHandled:c.qAnchorHandled,qClonedBy:c.qClonedBy===void 0?[m.uid]:c.qClonedBy.concat(m.uid)}),m.initialEvent={target:c.target,event:e}}Dt(c)}const{left:s,top:n}=Jr(c);m.event={x:s,y:n,time:Date.now(),mouse:a===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:s,lastY:n}},move(c){if(m.event===void 0)return;const a=Jr(c),s=a.left-m.event.x,n=a.top-m.event.y;if(s===0&&n===0)return;m.lastEvt=c;const e=m.event.mouse===!0,r=()=>{v(c,e);let i;t.preserveCursor!==!0&&t.preservecursor!==!0&&(i=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),e===!0&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),In(),m.styleCleanup=d=>{if(m.styleCleanup=void 0,i!==void 0&&(document.documentElement.style.cursor=i),document.body.classList.remove("non-selectable"),e===!0){const h=()=>{document.body.classList.remove("no-pointer-events--children")};d!==void 0?setTimeout(()=>{h(),d()},50):h()}else d!==void 0&&d()}};if(m.event.detected===!0){m.event.isFirst!==!0&&v(c,m.event.mouse);const{payload:i,synthetic:d}=ni(c,m,!1);i!==void 0&&(m.handler(i)===!1?m.end(c):(m.styleCleanup===void 0&&m.event.isFirst===!0&&r(),m.event.lastX=i.position.left,m.event.lastY=i.position.top,m.event.lastDir=d===!0?void 0:i.direction,m.event.isFirst=!1));return}if(m.direction.all===!0||e===!0&&(m.modifiers.mouseAllDir===!0||m.modifiers.mousealldir===!0)){r(),m.event.detected=!0,m.move(c);return}const u=Math.abs(s),o=Math.abs(n);u!==o&&(m.direction.horizontal===!0&&u>o||m.direction.vertical===!0&&u<o||m.direction.up===!0&&u<o&&n<0||m.direction.down===!0&&u<o&&n>0||m.direction.left===!0&&u>o&&s<0||m.direction.right===!0&&u>o&&s>0?(m.event.detected=!0,m.move(c)):m.end(c,!0))},end(c,a){if(m.event!==void 0){if(br(m,"temp"),Et.is.firefox===!0&&ti(l,!1),a===!0)m.styleCleanup?.(),m.event.detected!==!0&&m.initialEvent!==void 0&&m.initialEvent.target.dispatchEvent(m.initialEvent.event);else if(m.event.detected===!0){m.event.isFirst===!0&&m.handler(ni(c===void 0?m.lastEvt:c,m).payload);const{payload:s}=ni(c===void 0?m.lastEvt:c,m,!0),n=()=>{m.handler(s)};m.styleCleanup!==void 0?m.styleCleanup(n):n()}m.event=void 0,m.initialEvent=void 0,m.lastEvt=void 0}}};if(l.__qtouchpan=m,t.mouse===!0){const c=t.mouseCapture===!0||t.mousecapture===!0?"Capture":"";Gt(m,"main",[[l,"mousedown","mouseStart",`passive${c}`]])}Et.has.touch===!0&&Gt(m,"main",[[l,"touchstart","touchStart",`passive${t.capture===!0?"Capture":""}`],[l,"touchmove","noop","notPassiveCapture"]])},updated(l,I){const t=l.__qtouchpan;t!==void 0&&(I.oldValue!==I.value&&(typeof value!="function"&&t.end(),t.handler=I.value),t.direction=To(I.modifiers))},beforeUnmount(l){const I=l.__qtouchpan;I!==void 0&&(I.event!==void 0&&I.end(),br(I,"main"),br(I,"temp"),Et.is.firefox===!0&&ti(l,!1),I.styleCleanup?.(),delete l.__qtouchpan)}});function Tl(l){return l.charAt(0).toUpperCase()+l.slice(1)}function Ur(l,I,t){return t<=I?I:Math.min(t,Math.max(I,l))}function Io(l,I,t){if(t<=I)return I;const v=t-I+1;let m=I+(l-I)%v;return m<I&&(m=v+m),m===0?0:m}function bt(l,I=2,t="0"){if(l==null)return l;const v=""+l;return v.length>=I?v:new Array(I-v.length+1).join(t)+v}function Hi(l,I=250,t){let v=null;function m(){const c=arguments,a=()=>{v=null,l.apply(this,c)};v!==null&&clearTimeout(v),v=setTimeout(a,I)}return m.cancel=()=>{v!==null&&clearTimeout(v)},m}const Oo=["vertical","horizontal"],ii={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}},Fo={prevent:!0,mouse:!0,mouseAllDir:!0},jo=l=>l>=250?50:Math.ceil(l/5),Rl=$e({name:"QScrollArea",props:{...Ot,thumbStyle:Object,verticalThumbStyle:Object,horizontalThumbStyle:Object,barStyle:[Array,String,Object],verticalBarStyle:[Array,String,Object],horizontalBarStyle:[Array,String,Object],verticalOffset:{type:Array,default:[0,0]},horizontalOffset:{type:Array,default:[0,0]},contentStyle:[Array,String,Object],contentActiveStyle:[Array,String,Object],delay:{type:[String,Number],default:1e3},visible:{type:Boolean,default:null},tabindex:[String,Number],onScroll:Function},setup(l,{slots:I,emit:t}){const v=g.ref(!1),m=g.ref(!1),c=g.ref(!1),a={vertical:g.ref(0),horizontal:g.ref(0)},s={vertical:{ref:g.ref(null),position:g.ref(0),size:g.ref(0)},horizontal:{ref:g.ref(null),position:g.ref(0),size:g.ref(0)}},{proxy:n}=g.getCurrentInstance(),e=Ft(l,n.$q);let r=null,u;const o=g.ref(null),i=g.computed(()=>"q-scrollarea"+(e.value===!0?" q-scrollarea--dark":""));Object.assign(a,{verticalInner:g.computed(()=>a.vertical.value-l.verticalOffset[0]-l.verticalOffset[1]),horizontalInner:g.computed(()=>a.horizontal.value-l.horizontalOffset[0]-l.horizontalOffset[1])}),s.vertical.percentage=g.computed(()=>{const M=s.vertical.size.value-a.vertical.value;if(M<=0)return 0;const C=Ur(s.vertical.position.value/M,0,1);return Math.round(C*1e4)/1e4}),s.vertical.thumbHidden=g.computed(()=>(l.visible===null?c.value:l.visible)!==!0&&v.value===!1&&m.value===!1||s.vertical.size.value<=a.vertical.value+1),s.vertical.thumbStart=g.computed(()=>l.verticalOffset[0]+s.vertical.percentage.value*(a.verticalInner.value-s.vertical.thumbSize.value)),s.vertical.thumbSize=g.computed(()=>Math.round(Ur(a.verticalInner.value*a.verticalInner.value/s.vertical.size.value,jo(a.verticalInner.value),a.verticalInner.value))),s.vertical.style=g.computed(()=>({...l.thumbStyle,...l.verticalThumbStyle,top:`${s.vertical.thumbStart.value}px`,height:`${s.vertical.thumbSize.value}px`,right:`${l.horizontalOffset[1]}px`})),s.vertical.thumbClass=g.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(s.vertical.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),s.vertical.barClass=g.computed(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(s.vertical.thumbHidden.value===!0?" q-scrollarea__bar--invisible":"")),s.horizontal.percentage=g.computed(()=>{const M=s.horizontal.size.value-a.horizontal.value;if(M<=0)return 0;const C=Ur(Math.abs(s.horizontal.position.value)/M,0,1);return Math.round(C*1e4)/1e4}),s.horizontal.thumbHidden=g.computed(()=>(l.visible===null?c.value:l.visible)!==!0&&v.value===!1&&m.value===!1||s.horizontal.size.value<=a.horizontal.value+1),s.horizontal.thumbStart=g.computed(()=>l.horizontalOffset[0]+s.horizontal.percentage.value*(a.horizontalInner.value-s.horizontal.thumbSize.value)),s.horizontal.thumbSize=g.computed(()=>Math.round(Ur(a.horizontalInner.value*a.horizontalInner.value/s.horizontal.size.value,jo(a.horizontalInner.value),a.horizontalInner.value))),s.horizontal.style=g.computed(()=>({...l.thumbStyle,...l.horizontalThumbStyle,[n.$q.lang.rtl===!0?"right":"left"]:`${s.horizontal.thumbStart.value}px`,width:`${s.horizontal.thumbSize.value}px`,bottom:`${l.verticalOffset[1]}px`})),s.horizontal.thumbClass=g.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(s.horizontal.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),s.horizontal.barClass=g.computed(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(s.horizontal.thumbHidden.value===!0?" q-scrollarea__bar--invisible":""));const d=g.computed(()=>s.vertical.thumbHidden.value===!0&&s.horizontal.thumbHidden.value===!0?l.contentStyle:l.contentActiveStyle);function h(){const M={};return Oo.forEach(C=>{const y=s[C];Object.assign(M,{[C+"Position"]:y.position.value,[C+"Percentage"]:y.percentage.value,[C+"Size"]:y.size.value,[C+"ContainerSize"]:a[C].value,[C+"ContainerInnerSize"]:a[C+"Inner"].value})}),M}const f=Hi(()=>{const M=h();M.ref=n,t("scroll",M)},0);function b(M,C,y){if(Oo.includes(M)===!1){console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");return}(M==="vertical"?Eo:ri)(o.value,C,y)}function p({height:M,width:C}){let y=!1;a.vertical.value!==M&&(a.vertical.value=M,y=!0),a.horizontal.value!==C&&(a.horizontal.value=C,y=!0),y===!0&&z()}function S({position:M}){let C=!1;s.vertical.position.value!==M.top&&(s.vertical.position.value=M.top,C=!0),s.horizontal.position.value!==M.left&&(s.horizontal.position.value=M.left,C=!0),C===!0&&z()}function _({height:M,width:C}){s.horizontal.size.value!==C&&(s.horizontal.size.value=C,z()),s.vertical.size.value!==M&&(s.vertical.size.value=M,z())}function T(M,C){const y=s[C];if(M.isFirst===!0){if(y.thumbHidden.value===!0)return;u=y.position.value,m.value=!0}else if(m.value!==!0)return;M.isFinal===!0&&(m.value=!1);const x=ii[C],w=(y.size.value-a[C].value)/(a[C+"Inner"].value-y.thumbSize.value),k=M.distance[x.dist],E=u+(M.direction===x.dir?1:-1)*k*w;P(E,C)}function D(M,C){const y=s[C];if(y.thumbHidden.value!==!0){const x=C==="vertical"?l.verticalOffset[0]:l.horizontalOffset[0],w=M[ii[C].offset]-x,k=y.thumbStart.value-x;if(w<k||w>k+y.thumbSize.value){const E=w-y.thumbSize.value/2,O=Ur(E/(a[C+"Inner"].value-y.thumbSize.value),0,1);P(O*Math.max(0,y.size.value-a[C].value),C)}y.ref.value!==null&&y.ref.value.dispatchEvent(new MouseEvent(M.type,M))}}function z(){v.value=!0,r!==null&&clearTimeout(r),r=setTimeout(()=>{r=null,v.value=!1},l.delay),l.onScroll!==void 0&&f()}function P(M,C){o.value[ii[C].scroll]=M}let N=null;function V(){N!==null&&clearTimeout(N),N=setTimeout(()=>{N=null,c.value=!0},n.$q.platform.is.ios?50:0)}function W(){N!==null&&(clearTimeout(N),N=null),c.value=!1}let L=null;g.watch(()=>n.$q.lang.rtl,M=>{o.value!==null&&ri(o.value,Math.abs(s.horizontal.position.value)*(M===!0?-1:1))}),g.onDeactivated(()=>{L={top:s.vertical.position.value,left:s.horizontal.position.value}}),g.onActivated(()=>{if(L===null)return;const M=o.value;M!==null&&(ri(M,L.left),Eo(M,L.top))}),g.onBeforeUnmount(f.cancel),Object.assign(n,{getScrollTarget:()=>o.value,getScroll:h,getScrollPosition:()=>({top:s.vertical.position.value,left:s.horizontal.position.value}),getScrollPercentage:()=>({top:s.vertical.percentage.value,left:s.horizontal.percentage.value}),setScrollPosition:b,setScrollPercentage(M,C,y){b(M,C*(s[M].size.value-a[M].value)*(M==="horizontal"&&n.$q.lang.rtl===!0?-1:1),y)}});const A={scroll:s,thumbVertDir:[[Bo,M=>{T(M,"vertical")},void 0,{vertical:!0,...Fo}]],thumbHorizDir:[[Bo,M=>{T(M,"horizontal")},void 0,{horizontal:!0,...Fo}]],onVerticalMousedown(M){D(M,"vertical")},onHorizontalMousedown(M){D(M,"horizontal")}};return()=>g.h("div",{class:i.value,onMouseenter:V,onMouseleave:W},[g.h("div",{ref:o,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:l.tabindex!==void 0?l.tabindex:void 0},[g.h("div",{class:"q-scrollarea__content absolute",style:d.value},It(I.default,[g.h(Pr,{debounce:0,onResize:_})])),g.h(Da,{axis:"both",onScroll:S})]),g.h(Pr,{debounce:0,onResize:p}),g.h(bl,{store:A,barStyle:l.barStyle,verticalBarStyle:l.verticalBarStyle,horizontalBarStyle:l.horizontalBarStyle})])}}),rn=$e({name:"QCard",props:{...Ot,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(l,{slots:I}){const{proxy:{$q:t}}=g.getCurrentInstance(),v=Ft(l,t),m=g.computed(()=>"q-card"+(v.value===!0?" q-card--dark q-dark":"")+(l.bordered===!0?" q-card--bordered":"")+(l.square===!0?" q-card--square no-border-radius":"")+(l.flat===!0?" q-card--flat no-shadow":""));return()=>g.h(l.tag,{class:m.value},gt(I.default))}}),Pa={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},Na={...Pa,contextMenu:Boolean};function Yi({showing:l,avoidEmit:I,configureAnchorEl:t}){const{props:v,proxy:m,emit:c}=g.getCurrentInstance(),a=g.ref(null);let s=null;function n(i){return a.value===null?!1:i===void 0||i.touches===void 0||i.touches.length<=1}const e={};t===void 0&&(Object.assign(e,{hide(i){m.hide(i)},toggle(i){m.toggle(i),i.qAnchorHandled=!0},toggleKey(i){ur(i,13)===!0&&e.toggle(i)},contextClick(i){m.hide(i),Bt(i),g.nextTick(()=>{m.show(i),i.qAnchorHandled=!0})},prevent:Bt,mobileTouch(i){if(e.mobileCleanup(i),n(i)!==!0)return;m.hide(i),a.value.classList.add("non-selectable");const d=i.target;Gt(e,"anchor",[[d,"touchmove","mobileCleanup","passive"],[d,"touchend","mobileCleanup","passive"],[d,"touchcancel","mobileCleanup","passive"],[a.value,"contextmenu","prevent","notPassive"]]),s=setTimeout(()=>{s=null,m.show(i),i.qAnchorHandled=!0},300)},mobileCleanup(i){a.value.classList.remove("non-selectable"),s!==null&&(clearTimeout(s),s=null),l.value===!0&&i!==void 0&&In()}}),t=function(i=v.contextMenu){if(v.noParentEvent===!0||a.value===null)return;let d;i===!0?m.$q.platform.is.mobile===!0?d=[[a.value,"touchstart","mobileTouch","passive"]]:d=[[a.value,"mousedown","hide","passive"],[a.value,"contextmenu","contextClick","notPassive"]]:d=[[a.value,"click","toggle","passive"],[a.value,"keyup","toggleKey","passive"]],Gt(e,"anchor",d)});function r(){br(e,"anchor")}function u(i){for(a.value=i;a.value.classList.contains("q-anchor--skip");)a.value=a.value.parentNode;t()}function o(){if(v.target===!1||v.target===""||m.$el.parentNode===null)a.value=null;else if(v.target===!0)u(m.$el.parentNode);else{let i=v.target;if(typeof v.target=="string")try{i=document.querySelector(v.target)}catch{i=void 0}i!=null?(a.value=i.$el||i,t()):(a.value=null,console.error(`Anchor: target "${v.target}" not found`))}}return g.watch(()=>v.contextMenu,i=>{a.value!==null&&(r(),t(i))}),g.watch(()=>v.target,()=>{a.value!==null&&r(),o()}),g.watch(()=>v.noParentEvent,i=>{a.value!==null&&(i===!0?r():t())}),g.onMounted(()=>{o(),I!==!0&&v.modelValue===!0&&a.value===null&&c("update:modelValue",!1)}),g.onBeforeUnmount(()=>{s!==null&&clearTimeout(s),r()}),{anchorEl:a,canShow:n,anchorEvents:e}}function La(l,I){const t=g.ref(null);let v;function m(s,n){const e=`${n!==void 0?"add":"remove"}EventListener`,r=n!==void 0?n:v;s!==window&&s[e]("scroll",r,Ct.passive),window[e]("scroll",r,Ct.passive),v=n}function c(){t.value!==null&&(m(t.value),t.value=null)}const a=g.watch(()=>l.noParentEvent,()=>{t.value!==null&&(c(),I())});return g.onBeforeUnmount(a),{localScrollTarget:t,unconfigureScrollTarget:c,changeScrollEvent:m}}const Qi={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Ki=["beforeShow","show","beforeHide","hide"];function Xi({showing:l,canShow:I,hideOnRouteChange:t,handleShow:v,handleHide:m,processOnMount:c}){const a=g.getCurrentInstance(),{props:s,emit:n,proxy:e}=a;let r;function u(p){l.value===!0?d(p):o(p)}function o(p){if(s.disable===!0||p?.qAnchorHandled===!0||I!==void 0&&I(p)!==!0)return;const S=s["onUpdate:modelValue"]!==void 0;S===!0&&(n("update:modelValue",!0),r=p,g.nextTick(()=>{r===p&&(r=void 0)})),(s.modelValue===null||S===!1)&&i(p)}function i(p){l.value!==!0&&(l.value=!0,n("beforeShow",p),v!==void 0?v(p):n("show",p))}function d(p){if(s.disable===!0)return;const S=s["onUpdate:modelValue"]!==void 0;S===!0&&(n("update:modelValue",!1),r=p,g.nextTick(()=>{r===p&&(r=void 0)})),(s.modelValue===null||S===!1)&&h(p)}function h(p){l.value!==!1&&(l.value=!1,n("beforeHide",p),m!==void 0?m(p):n("hide",p))}function f(p){s.disable===!0&&p===!0?s["onUpdate:modelValue"]!==void 0&&n("update:modelValue",!1):p===!0!==l.value&&(p===!0?i:h)(r)}g.watch(()=>s.modelValue,f),t!==void 0&&Di(a)===!0&&g.watch(()=>e.$route.fullPath,()=>{t.value===!0&&l.value===!0&&d()}),g.onMounted(()=>{f(s.modelValue)});const b={show:o,hide:d,toggle:u};return Object.assign(e,b),b}let gr=[],Zr=[];function Va(l){Zr=Zr.filter(I=>I!==l)}function Bl(l){Va(l),Zr.push(l)}function Do(l){Va(l),Zr.length===0&&gr.length!==0&&(gr[gr.length-1](),gr=[])}function nn(l){Zr.length===0?l():gr.push(l)}function Il(l){gr=gr.filter(I=>I!==l)}const Po={};let Ol=1,Fl=document.body;function jl(l,I){const t=document.createElement("div");if(t.id=I!==void 0?`q-portal--${I}--${Ol++}`:l,Po.globalNodes!==void 0){const v=Po.globalNodes.class;v!==void 0&&(t.className=v)}return Fl.appendChild(t),t}function Dl(l){l.remove()}const Fr=[];function Pl(l){return Fr.find(I=>I.contentEl!==null&&I.contentEl.contains(l))}function qa(l,I){do{if(l.$options.name==="QMenu"){if(l.hide(I),l.$props.separateClosePopup===!0)return En(l)}else if(l.__qPortal===!0){const t=En(l);return t?.$options.name==="QPopupProxy"?(l.hide(I),t):l}l=En(l)}while(l!=null)}function Nl(l,I,t){for(;t!==0&&l!==void 0&&l!==null;){if(l.__qPortal===!0){if(t--,l.$options.name==="QMenu"){l=qa(l,I);continue}l.hide(I)}l=En(l)}}const Ll=$e({name:"QPortal",setup(l,{slots:I}){return()=>I.default()}});function Vl(l){for(l=l.parent;l!=null;){if(l.type.name==="QGlobalDialog")return!0;if(l.type.name==="QDialog"||l.type.name==="QMenu")return!1;l=l.parent}return!1}function Gi(l,I,t,v){const m=g.ref(!1),c=g.ref(!1);let a=null;const s={},n=v==="dialog"&&Vl(l);function e(u){if(u===!0){Do(s),c.value=!0;return}c.value=!1,m.value===!1&&(n===!1&&a===null&&(a=jl(!1,v)),m.value=!0,Fr.push(l.proxy),Bl(s))}function r(u){if(c.value=!1,u!==!0)return;Do(s),m.value=!1;const o=Fr.indexOf(l.proxy);o!==-1&&Fr.splice(o,1),a!==null&&(Dl(a),a=null)}return g.onUnmounted(()=>{r(!0)}),l.proxy.__qPortal=!0,Lt(l.proxy,"contentEl",()=>I.value),{showPortal:e,hidePortal:r,portalIsActive:m,portalIsAccessible:c,renderPortal:()=>n===!0?t():m.value===!0?[g.h(g.Teleport,{to:a},g.h(Ll,t))]:void 0}}const Xr={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Ji(l,I=()=>{},t=()=>{}){return{transitionProps:g.computed(()=>{const v=`q-transition--${l.transitionShow||I()}`,m=`q-transition--${l.transitionHide||t()}`;return{appear:!0,enterFromClass:`${v}-enter-from`,enterActiveClass:`${v}-enter-active`,enterToClass:`${v}-enter-to`,leaveFromClass:`${m}-leave-from`,leaveActiveClass:`${m}-leave-active`,leaveToClass:`${m}-leave-to`}}),transitionStyle:g.computed(()=>`--q-transition-duration: ${l.transitionDuration}ms`)}}function Zi(){let l;const I=g.getCurrentInstance();function t(){l=void 0}return g.onDeactivated(t),g.onBeforeUnmount(t),{removeTick:t,registerTick(v){l=v,g.nextTick(()=>{l===v&&(Pi(I)===!1&&l(),l=void 0)})}}}function $i(){let l=null;const I=g.getCurrentInstance();function t(){l!==null&&(clearTimeout(l),l=null)}return g.onDeactivated(t),g.onBeforeUnmount(t),{removeTimeout:t,registerTimeout(v,m){t(),Pi(I)===!1&&(l=setTimeout(()=>{l=null,v()},m))}}}const vr=[];let Nr;function ql(l){Nr=l.keyCode===27}function zl(){Nr===!0&&(Nr=!1)}function Ul(l){Nr===!0&&(Nr=!1,ur(l,27)===!0&&vr[vr.length-1](l))}function za(l){window[l]("keydown",ql),window[l]("blur",zl),window[l]("keyup",Ul),Nr=!1}function Ua(l){Et.is.desktop===!0&&(vr.push(l),vr.length===1&&za("addEventListener"))}function On(l){const I=vr.indexOf(l);I!==-1&&(vr.splice(I,1),vr.length===0&&za("removeEventListener"))}const yr=[];function Wa(l){yr[yr.length-1](l)}function Ha(l){Et.is.desktop===!0&&(yr.push(l),yr.length===1&&document.body.addEventListener("focusin",Wa))}function Ci(l){const I=yr.indexOf(l);I!==-1&&(yr.splice(I,1),yr.length===0&&document.body.removeEventListener("focusin",Wa))}const{notPassiveCapture:Fn}=Ct,wr=[];function jn(l){const I=l.target;if(I===void 0||I.nodeType===8||I.classList.contains("no-pointer-events")===!0)return;let t=Fr.length-1;for(;t>=0;){const v=Fr[t].$;if(v.type.name==="QTooltip"){t--;continue}if(v.type.name!=="QDialog")break;if(v.props.seamless!==!0)return;t--}for(let v=wr.length-1;v>=0;v--){const m=wr[v];if((m.anchorEl.value===null||m.anchorEl.value.contains(I)===!1)&&(I===document.body||m.innerRef.value!==null&&m.innerRef.value.contains(I)===!1))l.qClickOutside=!0,m.onClickOutside(l);else return}}function Ya(l){wr.push(l),wr.length===1&&(document.addEventListener("mousedown",jn,Fn),document.addEventListener("touchstart",jn,Fn))}function Dn(l){const I=wr.findIndex(t=>t===l);I!==-1&&(wr.splice(I,1),wr.length===0&&(document.removeEventListener("mousedown",jn,Fn),document.removeEventListener("touchstart",jn,Fn)))}let No,Lo;function Pn(l){const I=l.split(" ");return I.length!==2?!1:["top","center","bottom"].includes(I[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(I[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function Qa(l){return l?!(l.length!==2||typeof l[0]!="number"||typeof l[1]!="number"):!0}const _i={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(l=>{_i[`${l}#ltr`]=l,_i[`${l}#rtl`]=l});function Nn(l,I){const t=l.split(" ");return{vertical:t[0],horizontal:_i[`${t[1]}#${I===!0?"rtl":"ltr"}`]}}function Wl(l,I){let{top:t,left:v,right:m,bottom:c,width:a,height:s}=l.getBoundingClientRect();return I!==void 0&&(t-=I[1],v-=I[0],c+=I[1],m+=I[0],a+=I[0],s+=I[1]),{top:t,bottom:c,height:s,left:v,right:m,width:a,middle:v+(m-v)/2,center:t+(c-t)/2}}function Hl(l,I,t){let{top:v,left:m}=l.getBoundingClientRect();return v+=I.top,m+=I.left,t!==void 0&&(v+=t[1],m+=t[0]),{top:v,bottom:v+1,height:1,left:m,right:m+1,width:1,middle:m,center:v}}function Yl(l,I){return{top:0,center:I/2,bottom:I,left:0,middle:l/2,right:l}}function Vo(l,I,t,v){return{top:l[t.vertical]-I[v.vertical],left:l[t.horizontal]-I[v.horizontal]}}function eo(l,I=0){if(l.targetEl===null||l.anchorEl===null||I>5)return;if(l.targetEl.offsetHeight===0||l.targetEl.offsetWidth===0){setTimeout(()=>{eo(l,I+1)},10);return}const{targetEl:t,offset:v,anchorEl:m,anchorOrigin:c,selfOrigin:a,absoluteOffset:s,fit:n,cover:e,maxHeight:r,maxWidth:u}=l;if(Et.is.ios===!0&&window.visualViewport!==void 0){const D=document.body.style,{offsetLeft:z,offsetTop:P}=window.visualViewport;z!==No&&(D.setProperty("--q-pe-left",z+"px"),No=z),P!==Lo&&(D.setProperty("--q-pe-top",P+"px"),Lo=P)}const{scrollLeft:o,scrollTop:i}=t,d=s===void 0?Wl(m,e===!0?[0,0]:v):Hl(m,s,v);Object.assign(t.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:u,maxHeight:r,visibility:"visible"});const{offsetWidth:h,offsetHeight:f}=t,{elWidth:b,elHeight:p}=n===!0||e===!0?{elWidth:Math.max(d.width,h),elHeight:e===!0?Math.max(d.height,f):f}:{elWidth:h,elHeight:f};let S={maxWidth:u,maxHeight:r};(n===!0||e===!0)&&(S.minWidth=d.width+"px",e===!0&&(S.minHeight=d.height+"px")),Object.assign(t.style,S);const _=Yl(b,p);let T=Vo(d,_,c,a);if(s===void 0||v===void 0)oi(T,d,_,c,a);else{const{top:D,left:z}=T;oi(T,d,_,c,a);let P=!1;if(T.top!==D){P=!0;const N=2*v[1];d.center=d.top-=N,d.bottom-=N+2}if(T.left!==z){P=!0;const N=2*v[0];d.middle=d.left-=N,d.right-=N+2}P===!0&&(T=Vo(d,_,c,a),oi(T,d,_,c,a))}S={top:T.top+"px",left:T.left+"px"},T.maxHeight!==void 0&&(S.maxHeight=T.maxHeight+"px",d.height>T.maxHeight&&(S.minHeight=S.maxHeight)),T.maxWidth!==void 0&&(S.maxWidth=T.maxWidth+"px",d.width>T.maxWidth&&(S.minWidth=S.maxWidth)),Object.assign(t.style,S),t.scrollTop!==i&&(t.scrollTop=i),t.scrollLeft!==o&&(t.scrollLeft=o)}function oi(l,I,t,v,m){const c=t.bottom,a=t.right,s=Mn(),n=window.innerHeight-s,e=document.body.clientWidth;if(l.top<0||l.top+c>n)if(m.vertical==="center")l.top=I[v.vertical]>n/2?Math.max(0,n-c):0,l.maxHeight=Math.min(c,n);else if(I[v.vertical]>n/2){const r=Math.min(n,v.vertical==="center"?I.center:v.vertical===m.vertical?I.bottom:I.top);l.maxHeight=Math.min(c,r),l.top=Math.max(0,r-c)}else l.top=Math.max(0,v.vertical==="center"?I.center:v.vertical===m.vertical?I.top:I.bottom),l.maxHeight=Math.min(c,n-l.top);if(l.left<0||l.left+a>e)if(l.maxWidth=Math.min(a,e),m.horizontal==="middle")l.left=I[v.horizontal]>e/2?Math.max(0,e-a):0;else if(I[v.horizontal]>e/2){const r=Math.min(e,v.horizontal==="middle"?I.middle:v.horizontal===m.horizontal?I.right:I.left);l.maxWidth=Math.min(a,r),l.left=Math.max(0,r-l.maxWidth)}else l.left=Math.max(0,v.horizontal==="middle"?I.middle:v.horizontal===m.horizontal?I.left:I.right),l.maxWidth=Math.min(a,e-l.left)}const on=$e({name:"QMenu",inheritAttrs:!1,props:{...Na,...Qi,...Ot,...Xr,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Pn},self:{type:String,validator:Pn},offset:{type:Array,validator:Qa},scrollTarget:Qn,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Ki,"click","escapeKey"],setup(l,{slots:I,emit:t,attrs:v}){let m=null,c,a,s;const n=g.getCurrentInstance(),{proxy:e}=n,{$q:r}=e,u=g.ref(null),o=g.ref(!1),i=g.computed(()=>l.persistent!==!0&&l.noRouteDismiss!==!0),d=Ft(l,r),{registerTick:h,removeTick:f}=Zi(),{registerTimeout:b}=$i(),{transitionProps:p,transitionStyle:S}=Ji(l),{localScrollTarget:_,changeScrollEvent:T,unconfigureScrollTarget:D}=La(l,U),{anchorEl:z,canShow:P}=Yi({showing:o}),{hide:N}=Xi({showing:o,canShow:P,handleShow:E,handleHide:O,hideOnRouteChange:i,processOnMount:!0}),{showPortal:V,hidePortal:W,renderPortal:L}=Gi(n,u,F,"menu"),A={anchorEl:z,innerRef:u,onClickOutside(B){if(l.persistent!==!0&&o.value===!0)return N(B),(B.type==="touchstart"||B.target.classList.contains("q-dialog__backdrop"))&&St(B),!0}},M=g.computed(()=>Nn(l.anchor||(l.cover===!0?"center middle":"bottom start"),r.lang.rtl)),C=g.computed(()=>l.cover===!0?M.value:Nn(l.self||"top start",r.lang.rtl)),y=g.computed(()=>(l.square===!0?" q-menu--square":"")+(d.value===!0?" q-menu--dark q-dark":"")),x=g.computed(()=>l.autoClose===!0?{onClick:q}:{}),w=g.computed(()=>o.value===!0&&l.persistent!==!0);g.watch(w,B=>{B===!0?(Ua(j),Ya(A)):(On(j),Dn(A))});function k(){nn(()=>{let B=u.value;B&&B.contains(document.activeElement)!==!0&&(B=B.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||B.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||B.querySelector("[autofocus], [data-autofocus]")||B,B.focus({preventScroll:!0}))})}function E(B){if(m=l.noRefocus===!1?document.activeElement:null,Ha(K),V(),U(),c=void 0,B!==void 0&&(l.touchPosition||l.contextMenu)){const H=Jr(B);if(H.left!==void 0){const{top:X,left:ee}=z.value.getBoundingClientRect();c={left:H.left-ee,top:H.top-X}}}a===void 0&&(a=g.watch(()=>r.screen.width+"|"+r.screen.height+"|"+l.self+"|"+l.anchor+"|"+r.lang.rtl,Y)),l.noFocus!==!0&&document.activeElement.blur(),h(()=>{Y(),l.noFocus!==!0&&k()}),b(()=>{r.platform.is.ios===!0&&(s=l.autoClose,u.value.click()),Y(),V(!0),t("show",B)},l.transitionDuration)}function O(B){f(),W(),R(!0),m!==null&&(B===void 0||B.qClickOutside!==!0)&&(((B?.type.indexOf("key")===0?m.closest('[tabindex]:not([tabindex^="-"])'):void 0)||m).focus(),m=null),b(()=>{W(!0),t("hide",B)},l.transitionDuration)}function R(B){c=void 0,a!==void 0&&(a(),a=void 0),(B===!0||o.value===!0)&&(Ci(K),D(),Dn(A),On(j)),B!==!0&&(m=null)}function U(){(z.value!==null||l.scrollTarget!==void 0)&&(_.value=Kn(z.value,l.scrollTarget),T(_.value,Y))}function q(B){s!==!0?(qa(e,B),t("click",B)):s=!1}function K(B){w.value===!0&&l.noFocus!==!0&&_a(u.value,B.target)!==!0&&k()}function j(B){l.noEscDismiss!==!0&&(t("escapeKey"),N(B))}function Y(){eo({targetEl:u.value,offset:l.offset,anchorEl:z.value,anchorOrigin:M.value,selfOrigin:C.value,absoluteOffset:c,fit:l.fit,cover:l.cover,maxHeight:l.maxHeight,maxWidth:l.maxWidth})}function F(){return g.h(g.Transition,p.value,()=>o.value===!0?g.h("div",{role:"menu",...v,ref:u,tabindex:-1,class:["q-menu q-position-engine scroll"+y.value,v.class],style:[v.style,S.value],...x.value},gt(I.default)):null)}return g.onBeforeUnmount(R),Object.assign(e,{focus:k,updatePosition:Y}),L}});let ai,mn=0;const Mt=new Array(256);for(let l=0;l<256;l++)Mt[l]=(l+256).toString(16).substring(1);const Ql=(()=>{const l=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(l!==void 0){if(l.randomBytes!==void 0)return l.randomBytes;if(l.getRandomValues!==void 0)return I=>{const t=new Uint8Array(I);return l.getRandomValues(t),t}}return I=>{const t=[];for(let v=I;v>0;v--)t.push(Math.floor(Math.random()*256));return t}})(),qo=4096;function Ai(){(ai===void 0||mn+16>qo)&&(mn=0,ai=Ql(qo));const l=Array.prototype.slice.call(ai,mn,mn+=16);return l[6]=l[6]&15|64,l[8]=l[8]&63|128,Mt[l[0]]+Mt[l[1]]+Mt[l[2]]+Mt[l[3]]+"-"+Mt[l[4]]+Mt[l[5]]+"-"+Mt[l[6]]+Mt[l[7]]+"-"+Mt[l[8]]+Mt[l[9]]+"-"+Mt[l[10]]+Mt[l[11]]+Mt[l[12]]+Mt[l[13]]+Mt[l[14]]+Mt[l[15]]}function Kl(l){return l??null}function zo(l,I){return l??(I===!0?`f_${Ai()}`:null)}function Xl({getValue:l,required:I=!0}={}){if(cr.value===!0){const t=l!==void 0?g.ref(Kl(l())):g.ref(null);return I===!0&&t.value===null&&g.onMounted(()=>{t.value=`f_${Ai()}`}),l!==void 0&&g.watch(l,v=>{t.value=zo(v,I)}),t}return l!==void 0?g.computed(()=>zo(l(),I)):g.ref(`f_${Ai()}`)}const Uo=/^on[A-Z]/;function Gl(){const{attrs:l,vnode:I}=g.getCurrentInstance(),t={listeners:g.ref({}),attributes:g.ref({})};function v(){const m={},c={};for(const a in l)a!=="class"&&a!=="style"&&Uo.test(a)===!1&&(m[a]=l[a]);for(const a in I.props)Uo.test(a)===!0&&(c[a]=I.props[a]);t.attributes.value=m,t.listeners.value=c}return g.onBeforeUpdate(v),v(),t}const Jl="_q_",an="_q_l_",Ka="_q_pc_",Xa="_q_fo_";function Rt(){}function Zl({validate:l,resetValidation:I,requiresQForm:t}){const v=g.inject(Xa,!1);if(v!==!1){const{props:m,proxy:c}=g.getCurrentInstance();Object.assign(c,{validate:l,resetValidation:I}),g.watch(()=>m.disable,a=>{a===!0?(typeof I=="function"&&I(),v.unbindComponent(c)):v.bindComponent(c)}),g.onMounted(()=>{m.disable!==!0&&v.bindComponent(c)}),g.onBeforeUnmount(()=>{m.disable!==!0&&v.unbindComponent(c)})}else t===!0&&console.error("Parent QForm not found on useFormChild()!")}const Wo=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Ho=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Yo=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,gn=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,bn=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,si={date:l=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(l),time:l=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(l),fulltime:l=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(l),timeOrFulltime:l=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(l),email:l=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(l),hexColor:l=>Wo.test(l),hexaColor:l=>Ho.test(l),hexOrHexaColor:l=>Yo.test(l),rgbColor:l=>gn.test(l),rgbaColor:l=>bn.test(l),rgbOrRgbaColor:l=>gn.test(l)||bn.test(l),hexOrRgbColor:l=>Wo.test(l)||gn.test(l),hexaOrRgbaColor:l=>Ho.test(l)||bn.test(l),anyColor:l=>Yo.test(l)||gn.test(l)||bn.test(l)},$l=[!0,!1,"ondemand"],eu={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:l=>$l.includes(l)}};function tu(l,I){const{props:t,proxy:v}=g.getCurrentInstance(),m=g.ref(!1),c=g.ref(null),a=g.ref(!1);Zl({validate:h,resetValidation:d});let s=0,n;const e=g.computed(()=>t.rules!==void 0&&t.rules!==null&&t.rules.length!==0),r=g.computed(()=>t.disable!==!0&&e.value===!0&&I.value===!1),u=g.computed(()=>t.error===!0||m.value===!0),o=g.computed(()=>typeof t.errorMessage=="string"&&t.errorMessage.length!==0?t.errorMessage:c.value);g.watch(()=>t.modelValue,()=>{a.value=!0,r.value===!0&&t.lazyRules===!1&&f()});function i(){t.lazyRules!=="ondemand"&&r.value===!0&&a.value===!0&&f()}g.watch(()=>t.reactiveRules,b=>{b===!0?n===void 0&&(n=g.watch(()=>t.rules,i,{immediate:!0,deep:!0})):n!==void 0&&(n(),n=void 0)},{immediate:!0}),g.watch(()=>t.lazyRules,i),g.watch(l,b=>{b===!0?a.value=!0:r.value===!0&&t.lazyRules!=="ondemand"&&f()});function d(){s++,I.value=!1,a.value=!1,m.value=!1,c.value=null,f.cancel()}function h(b=t.modelValue){if(t.disable===!0||e.value===!1)return!0;const p=++s,S=I.value!==!0?()=>{a.value=!0}:()=>{},_=(D,z)=>{D===!0&&S(),m.value=D,c.value=z||null,I.value=!1},T=[];for(let D=0;D<t.rules.length;D++){const z=t.rules[D];let P;if(typeof z=="function"?P=z(b,si):typeof z=="string"&&si[z]!==void 0&&(P=si[z](b)),P===!1||typeof P=="string")return _(!0,P),!1;P!==!0&&P!==void 0&&T.push(P)}return T.length===0?(_(!1),!0):(I.value=!0,Promise.all(T).then(D=>{if(D===void 0||Array.isArray(D)===!1||D.length===0)return p===s&&_(!1),!0;const z=D.find(P=>P===!1||typeof P=="string");return p===s&&_(z!==void 0,z),z===void 0},D=>(p===s&&(console.error(D),_(!0)),!1)))}const f=Hi(h,0);return g.onBeforeUnmount(()=>{n?.(),f.cancel()}),Object.assign(v,{resetValidation:d,validate:h}),Lt(v,"hasError",()=>u.value),{isDirtyModel:a,hasRules:e,hasError:u,errorMessage:o,validate:h,resetValidation:d}}function $r(l){return l!=null&&(""+l).length!==0}const ru={...Ot,...eu,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String},Xn={...ru,maxlength:[Number,String]},to=["update:modelValue","clear","focus","blur"];function ro({requiredForAttr:l=!0,tagProp:I,changeEvent:t=!1}={}){const{props:v,proxy:m}=g.getCurrentInstance(),c=Ft(v,m.$q),a=Xl({required:l,getValue:()=>v.for});return{requiredForAttr:l,changeEvent:t,tag:I===!0?g.computed(()=>v.tag):{value:"label"},isDark:c,editable:g.computed(()=>v.disable!==!0&&v.readonly!==!0),innerLoading:g.ref(!1),focused:g.ref(!1),hasPopupOpen:!1,splitAttrs:Gl(),targetUid:a,rootRef:g.ref(null),targetRef:g.ref(null),controlRef:g.ref(null)}}function no(l){const{props:I,emit:t,slots:v,attrs:m,proxy:c}=g.getCurrentInstance(),{$q:a}=c;let s=null;l.hasValue===void 0&&(l.hasValue=g.computed(()=>$r(I.modelValue))),l.emitValue===void 0&&(l.emitValue=w=>{t("update:modelValue",w)}),l.controlEvents===void 0&&(l.controlEvents={onFocusin:N,onFocusout:V}),Object.assign(l,{clearValue:W,onControlFocusin:N,onControlFocusout:V,focus:z}),l.computedCounter===void 0&&(l.computedCounter=g.computed(()=>{if(I.counter!==!1){const w=typeof I.modelValue=="string"||typeof I.modelValue=="number"?(""+I.modelValue).length:Array.isArray(I.modelValue)===!0?I.modelValue.length:0,k=I.maxlength!==void 0?I.maxlength:I.maxValues;return w+(k!==void 0?" / "+k:"")}}));const{isDirtyModel:n,hasRules:e,hasError:r,errorMessage:u,resetValidation:o}=tu(l.focused,l.innerLoading),i=l.floatingLabel!==void 0?g.computed(()=>I.stackLabel===!0||l.focused.value===!0||l.floatingLabel.value===!0):g.computed(()=>I.stackLabel===!0||l.focused.value===!0||l.hasValue.value===!0),d=g.computed(()=>I.bottomSlots===!0||I.hint!==void 0||e.value===!0||I.counter===!0||I.error!==null),h=g.computed(()=>I.filled===!0?"filled":I.outlined===!0?"outlined":I.borderless===!0?"borderless":I.standout?"standout":"standard"),f=g.computed(()=>`q-field row no-wrap items-start q-field--${h.value}`+(l.fieldClass!==void 0?` ${l.fieldClass.value}`:"")+(I.rounded===!0?" q-field--rounded":"")+(I.square===!0?" q-field--square":"")+(i.value===!0?" q-field--float":"")+(p.value===!0?" q-field--labeled":"")+(I.dense===!0?" q-field--dense":"")+(I.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(l.isDark.value===!0?" q-field--dark":"")+(l.getControl===void 0?" q-field--auto-height":"")+(l.focused.value===!0?" q-field--focused":"")+(r.value===!0?" q-field--error":"")+(r.value===!0||l.focused.value===!0?" q-field--highlighted":"")+(I.hideBottomSpace!==!0&&d.value===!0?" q-field--with-bottom":"")+(I.disable===!0?" q-field--disabled":I.readonly===!0?" q-field--readonly":"")),b=g.computed(()=>"q-field__control relative-position row no-wrap"+(I.bgColor!==void 0?` bg-${I.bgColor}`:"")+(r.value===!0?" text-negative":typeof I.standout=="string"&&I.standout.length!==0&&l.focused.value===!0?` ${I.standout}`:I.color!==void 0?` text-${I.color}`:"")),p=g.computed(()=>I.labelSlot===!0||I.label!==void 0),S=g.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(I.labelColor!==void 0&&r.value!==!0?` text-${I.labelColor}`:"")),_=g.computed(()=>({id:l.targetUid.value,editable:l.editable.value,focused:l.focused.value,floatingLabel:i.value,modelValue:I.modelValue,emitValue:l.emitValue})),T=g.computed(()=>{const w={};return l.targetUid.value&&(w.for=l.targetUid.value),I.disable===!0&&(w["aria-disabled"]="true"),w});function D(){const w=document.activeElement;let k=l.targetRef?.value;k&&(w===null||w.id!==l.targetUid.value)&&(k.hasAttribute("tabindex")===!0||(k=k.querySelector("[tabindex]")),k!==w&&k?.focus({preventScroll:!0}))}function z(){nn(D)}function P(){Il(D);const w=document.activeElement;w!==null&&l.rootRef.value.contains(w)&&w.blur()}function N(w){s!==null&&(clearTimeout(s),s=null),l.editable.value===!0&&l.focused.value===!1&&(l.focused.value=!0,t("focus",w))}function V(w,k){s!==null&&clearTimeout(s),s=setTimeout(()=>{s=null,!(document.hasFocus()===!0&&(l.hasPopupOpen===!0||l.controlRef===void 0||l.controlRef.value===null||l.controlRef.value.contains(document.activeElement)!==!1))&&(l.focused.value===!0&&(l.focused.value=!1,t("blur",w)),k?.())})}function W(w){St(w),a.platform.is.mobile!==!0?(l.targetRef?.value||l.rootRef.value).focus():l.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),I.type==="file"&&(l.inputRef.value.value=null),t("update:modelValue",null),l.changeEvent===!0&&t("change",null),t("clear",I.modelValue),g.nextTick(()=>{const k=n.value;o(),n.value=k})}function L(w){[13,32].includes(w.keyCode)&&W(w)}function A(){const w=[];return v.prepend!==void 0&&w.push(g.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:Bt},v.prepend())),w.push(g.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},M())),r.value===!0&&I.noErrorIcon===!1&&w.push(y("error",[g.h(vt,{name:a.iconSet.field.error,color:"negative"})])),I.loading===!0||l.innerLoading.value===!0?w.push(y("inner-loading-append",v.loading!==void 0?v.loading():[g.h(Ca,{color:I.color})])):I.clearable===!0&&l.hasValue.value===!0&&l.editable.value===!0&&w.push(y("inner-clearable-append",[g.h(vt,{class:"q-field__focusable-action",name:I.clearIcon||a.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":a.lang.label.clear,onKeyup:L,onClick:W})])),v.append!==void 0&&w.push(g.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:Bt},v.append())),l.getInnerAppend!==void 0&&w.push(y("inner-append",l.getInnerAppend())),l.getControlChild!==void 0&&w.push(l.getControlChild()),w}function M(){const w=[];return I.prefix!==void 0&&I.prefix!==null&&w.push(g.h("div",{class:"q-field__prefix no-pointer-events row items-center"},I.prefix)),l.getShadowControl!==void 0&&l.hasShadow.value===!0&&w.push(l.getShadowControl()),l.getControl!==void 0?w.push(l.getControl()):v.rawControl!==void 0?w.push(v.rawControl()):v.control!==void 0&&w.push(g.h("div",{ref:l.targetRef,class:"q-field__native row",tabindex:-1,...l.splitAttrs.attributes.value,"data-autofocus":I.autofocus===!0||void 0},v.control(_.value))),p.value===!0&&w.push(g.h("div",{class:S.value},gt(v.label,I.label))),I.suffix!==void 0&&I.suffix!==null&&w.push(g.h("div",{class:"q-field__suffix no-pointer-events row items-center"},I.suffix)),w.concat(gt(v.default))}function C(){let w,k;r.value===!0?u.value!==null?(w=[g.h("div",{role:"alert"},u.value)],k=`q--slot-error-${u.value}`):(w=gt(v.error),k="q--slot-error"):(I.hideHint!==!0||l.focused.value===!0)&&(I.hint!==void 0?(w=[g.h("div",I.hint)],k=`q--slot-hint-${I.hint}`):(w=gt(v.hint),k="q--slot-hint"));const E=I.counter===!0||v.counter!==void 0;if(I.hideBottomSpace===!0&&E===!1&&w===void 0)return;const O=g.h("div",{key:k,class:"q-field__messages col"},w);return g.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(I.hideBottomSpace!==!0?"animated":"stale"),onClick:Bt},[I.hideBottomSpace===!0?O:g.h(g.Transition,{name:"q-transition--field-message"},()=>O),E===!0?g.h("div",{class:"q-field__counter"},v.counter!==void 0?v.counter():l.computedCounter.value):null])}function y(w,k){return k===null?null:g.h("div",{key:w,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},k)}let x=!1;return g.onDeactivated(()=>{x=!0}),g.onActivated(()=>{x===!0&&I.autofocus===!0&&c.focus()}),I.autofocus===!0&&g.onMounted(()=>{c.focus()}),g.onBeforeUnmount(()=>{s!==null&&clearTimeout(s)}),Object.assign(c,{focus:z,blur:P}),function(){const k=l.getControl===void 0&&v.control===void 0?{...l.splitAttrs.attributes.value,"data-autofocus":I.autofocus===!0||void 0,...T.value}:T.value;return g.h(l.tag.value,{ref:l.rootRef,class:[f.value,m.class],style:m.style,...k},[v.before!==void 0?g.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:Bt},v.before()):null,g.h("div",{class:"q-field__inner relative-position col self-stretch"},[g.h("div",{ref:l.controlRef,class:b.value,tabindex:-1,...l.controlEvents},A()),d.value===!0?C():null]),v.after!==void 0?g.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:Bt},v.after()):null])}}const nu=$e({name:"QField",inheritAttrs:!1,props:{...Xn,tag:{type:String,default:"label"}},emits:to,setup(){return no(ro({tagProp:!0}))}}),iu={xs:8,sm:10,md:14,lg:20,xl:24},io=$e({name:"QChip",props:{...Ot,...Vr,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(l,{slots:I,emit:t}){const{proxy:{$q:v}}=g.getCurrentInstance(),m=Ft(l,v),c=qr(l,iu),a=g.computed(()=>l.selected===!0||l.icon!==void 0),s=g.computed(()=>l.selected===!0?l.iconSelected||v.iconSet.chip.selected:l.icon),n=g.computed(()=>l.iconRemove||v.iconSet.chip.remove),e=g.computed(()=>l.disable===!1&&(l.clickable===!0||l.selected!==null)),r=g.computed(()=>{const f=l.outline===!0&&l.color||l.textColor;return"q-chip row inline no-wrap items-center"+(l.outline===!1&&l.color!==void 0?` bg-${l.color}`:"")+(f?` text-${f} q-chip--colored`:"")+(l.disable===!0?" disabled":"")+(l.dense===!0?" q-chip--dense":"")+(l.outline===!0?" q-chip--outline":"")+(l.selected===!0?" q-chip--selected":"")+(e.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(l.square===!0?" q-chip--square":"")+(m.value===!0?" q-chip--dark q-dark":"")}),u=g.computed(()=>{const f=l.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:l.tabindex||0},b={...f,role:"button","aria-hidden":"false","aria-label":l.removeAriaLabel||v.lang.label.remove};return{chip:f,remove:b}});function o(f){f.keyCode===13&&i(f)}function i(f){l.disable||(t("update:selected",!l.selected),t("click",f))}function d(f){(f.keyCode===void 0||f.keyCode===13)&&(St(f),l.disable===!1&&(t("update:modelValue",!1),t("remove")))}function h(){const f=[];e.value===!0&&f.push(g.h("div",{class:"q-focus-helper"})),a.value===!0&&f.push(g.h(vt,{class:"q-chip__icon q-chip__icon--left",name:s.value}));const b=l.label!==void 0?[g.h("div",{class:"ellipsis"},[l.label])]:void 0;return f.push(g.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},ga(I.default,b))),l.iconRight&&f.push(g.h(vt,{class:"q-chip__icon q-chip__icon--right",name:l.iconRight})),l.removable===!0&&f.push(g.h(vt,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:n.value,...u.value.remove,onClick:d,onKeyup:d})),f}return()=>{if(l.modelValue===!1)return;const f={class:r.value,style:c.value};return e.value===!0&&Object.assign(f,u.value.chip,{onClick:i,onKeyup:o}),Os("div",f,h(),"ripple",l.ripple!==!1&&l.disable!==!0,()=>[[Aa,l.ripple]])}}}),Ir=$e({name:"QItem",props:{...Ot,...Sa,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(l,{slots:I,emit:t}){const{proxy:{$q:v}}=g.getCurrentInstance(),m=Ft(l,v),{hasLink:c,linkAttrs:a,linkClass:s,linkTag:n,navigateOnClick:e}=Ni(),r=g.ref(null),u=g.ref(null),o=g.computed(()=>l.clickable===!0||c.value===!0||l.tag==="label"),i=g.computed(()=>l.disable!==!0&&o.value===!0),d=g.computed(()=>"q-item q-item-type row no-wrap"+(l.dense===!0?" q-item--dense":"")+(m.value===!0?" q-item--dark":"")+(c.value===!0&&l.active===null?s.value:l.active===!0?` q-item--active${l.activeClass!==void 0?` ${l.activeClass}`:""}`:"")+(l.disable===!0?" disabled":"")+(i.value===!0?" q-item--clickable q-link cursor-pointer "+(l.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(l.focused===!0?" q-manual-focusable--focused":""):"")),h=g.computed(()=>l.insetLevel===void 0?null:{["padding"+(v.lang.rtl===!0?"Right":"Left")]:16+l.insetLevel*56+"px"});function f(S){i.value===!0&&(u.value!==null&&S.qAvoidFocus!==!0&&(S.qKeyEvent!==!0&&document.activeElement===r.value?u.value.focus():document.activeElement===u.value&&r.value.focus()),e(S))}function b(S){if(i.value===!0&&ur(S,[13,32])===!0){St(S),S.qKeyEvent=!0;const _=new MouseEvent("click",S);_.qKeyEvent=!0,r.value.dispatchEvent(_)}t("keyup",S)}function p(){const S=ji(I.default,[]);return i.value===!0&&S.unshift(g.h("div",{class:"q-focus-helper",tabindex:-1,ref:u})),S}return()=>{const S={ref:r,class:d.value,style:h.value,role:"listitem",onClick:f,onKeyup:b};return i.value===!0?(S.tabindex=l.tabindex||"0",Object.assign(S,a.value)):o.value===!0&&(S["aria-disabled"]="true"),g.h(n.value,S,p())}}}),Or=$e({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(l,{slots:I}){const t=g.computed(()=>`q-item__section column q-item__section--${l.avatar===!0||l.side===!0||l.thumbnail===!0?"side":"main"}`+(l.top===!0?" q-item__section--top justify-start":" justify-center")+(l.avatar===!0?" q-item__section--avatar":"")+(l.thumbnail===!0?" q-item__section--thumbnail":"")+(l.noWrap===!0?" q-item__section--nowrap":""));return()=>g.h("div",{class:t.value},gt(I.default))}}),Ei=$e({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(l,{slots:I}){const t=g.computed(()=>parseInt(l.lines,10)),v=g.computed(()=>"q-item__label"+(l.overline===!0?" q-item__label--overline text-overline":"")+(l.caption===!0?" q-item__label--caption text-caption":"")+(l.header===!0?" q-item__label--header":"")+(t.value===1?" ellipsis":"")),m=g.computed(()=>l.lines!==void 0&&t.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":t.value}:null);return()=>g.h("div",{style:m.value,class:v.value},gt(I.default))}});function ou(l,I,t){function v(){}return g.onBeforeUnmount(()=>{l.value===!0&&void 0}),{removeFromHistory:v,addToHistory(){}}}let Wr=0,li,ui,Qr,ci=!1,Qo,Ko,Xo,hr=null;function au(l){su(l)&&St(l)}function su(l){if(l.target===document.body||l.target.classList.contains("q-layout__backdrop"))return!0;const I=el(l),t=l.shiftKey&&!l.deltaX,v=!t&&Math.abs(l.deltaX)<=Math.abs(l.deltaY),m=t||v?l.deltaY:l.deltaX;for(let c=0;c<I.length;c++){const a=I[c];if(Cl(a,v))return v?m<0&&a.scrollTop===0?!0:m>0&&a.scrollTop+a.clientHeight===a.scrollHeight:m<0&&a.scrollLeft===0?!0:m>0&&a.scrollLeft+a.clientWidth===a.scrollWidth}return!0}function Go(l){l.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function vn(l){ci!==!0&&(ci=!0,requestAnimationFrame(()=>{ci=!1;const{height:I}=l.target,{clientHeight:t,scrollTop:v}=document.scrollingElement;(Qr===void 0||I!==window.innerHeight)&&(Qr=t-I,document.scrollingElement.scrollTop=v),v>Qr&&(document.scrollingElement.scrollTop-=Math.ceil((v-Qr)/8))}))}function Jo(l){const I=document.body,t=window.visualViewport!==void 0;if(l==="add"){const{overflowY:v,overflowX:m}=window.getComputedStyle(I);li=Ui(window),ui=zi(window),Qo=I.style.left,Ko=I.style.top,Xo=window.location.href,I.style.left=`-${li}px`,I.style.top=`-${ui}px`,m!=="hidden"&&(m==="scroll"||I.scrollWidth>window.innerWidth)&&I.classList.add("q-body--force-scrollbar-x"),v!=="hidden"&&(v==="scroll"||I.scrollHeight>window.innerHeight)&&I.classList.add("q-body--force-scrollbar-y"),I.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,Et.is.ios===!0&&(t===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",vn,Ct.passiveCapture),window.visualViewport.addEventListener("scroll",vn,Ct.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Go,Ct.passiveCapture))}Et.is.desktop===!0&&Et.is.mac===!0&&window[`${l}EventListener`]("wheel",au,Ct.notPassive),l==="remove"&&(Et.is.ios===!0&&(t===!0?(window.visualViewport.removeEventListener("resize",vn,Ct.passiveCapture),window.visualViewport.removeEventListener("scroll",vn,Ct.passiveCapture)):window.removeEventListener("scroll",Go,Ct.passiveCapture)),I.classList.remove("q-body--prevent-scroll"),I.classList.remove("q-body--force-scrollbar-x"),I.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,I.style.left=Qo,I.style.top=Ko,window.location.href===Xo&&window.scrollTo(li,ui),Qr=void 0)}function lu(l){let I="add";if(l===!0){if(Wr++,hr!==null){clearTimeout(hr),hr=null;return}if(Wr>1)return}else{if(Wr===0||(Wr--,Wr>0))return;if(I="remove",Et.is.ios===!0&&Et.is.nativeMobile===!0){hr!==null&&clearTimeout(hr),hr=setTimeout(()=>{Jo(I),hr=null},100);return}}Jo(I)}function uu(){let l;return{preventBodyScroll(I){I!==l&&(l!==void 0||I===!0)&&(l=I,lu(I))}}}let yn=0;const cu={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},Zo={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},Gn=$e({name:"QDialog",inheritAttrs:!1,props:{...Qi,...Xr,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:"standard",validator:l=>["standard","top","bottom","left","right"].includes(l)}},emits:[...Ki,"shake","click","escapeKey"],setup(l,{slots:I,emit:t,attrs:v}){const m=g.getCurrentInstance(),c=g.ref(null),a=g.ref(!1),s=g.ref(!1);let n=null,e=null,r,u;const o=g.computed(()=>l.persistent!==!0&&l.noRouteDismiss!==!0&&l.seamless!==!0),{preventBodyScroll:i}=uu(),{registerTimeout:d}=$i(),{registerTick:h,removeTick:f}=Zi(),{transitionProps:b,transitionStyle:p}=Ji(l,()=>Zo[l.position][0],()=>Zo[l.position][1]),S=g.computed(()=>p.value+(l.backdropFilter!==void 0?`;backdrop-filter:${l.backdropFilter};-webkit-backdrop-filter:${l.backdropFilter}`:"")),{showPortal:_,hidePortal:T,portalIsAccessible:D,renderPortal:z}=Gi(m,c,U,"dialog"),{hide:P}=Xi({showing:a,hideOnRouteChange:o,handleShow:A,handleHide:M,processOnMount:!0});ou(a);const N=g.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${l.maximized===!0?"maximized":"minimized"} q-dialog__inner--${l.position} ${cu[l.position]}`+(s.value===!0?" q-dialog__inner--animating":"")+(l.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(l.fullHeight===!0?" q-dialog__inner--fullheight":"")+(l.square===!0?" q-dialog__inner--square":"")),V=g.computed(()=>a.value===!0&&l.seamless!==!0),W=g.computed(()=>l.autoClose===!0?{onClick:E}:{}),L=g.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${V.value===!0?"modal":"seamless"}`,v.class]);g.watch(()=>l.maximized,q=>{a.value===!0&&k(q)}),g.watch(V,q=>{i(q),q===!0?(Ha(R),Ua(x)):(Ci(R),On(x))});function A(q){e=l.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,k(l.maximized),_(),s.value=!0,l.noFocus!==!0?(document.activeElement?.blur(),h(C)):f(),d(()=>{if(m.proxy.$q.platform.is.ios===!0){if(l.seamless!==!0&&document.activeElement){const{top:K,bottom:j}=document.activeElement.getBoundingClientRect(),{innerHeight:Y}=window,F=window.visualViewport!==void 0?window.visualViewport.height:Y;K>0&&j>F/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-F,j>=Y?1/0:Math.ceil(document.scrollingElement.scrollTop+j-F/2))),document.activeElement.scrollIntoView()}u=!0,c.value.click(),u=!1}_(!0),s.value=!1,t("show",q)},l.transitionDuration)}function M(q){f(),w(!0),s.value=!0,T(),e!==null&&(((q?.type.indexOf("key")===0?e.closest('[tabindex]:not([tabindex^="-"])'):void 0)||e).focus(),e=null),d(()=>{T(!0),s.value=!1,t("hide",q)},l.transitionDuration)}function C(q){nn(()=>{let K=c.value;if(K!==null){if(q!==void 0){const j=K.querySelector(q);if(j!==null){j.focus({preventScroll:!0});return}}K.contains(document.activeElement)!==!0&&(K=K.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||K.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||K.querySelector("[autofocus], [data-autofocus]")||K,K.focus({preventScroll:!0}))}})}function y(q){q&&typeof q.focus=="function"?q.focus({preventScroll:!0}):C(),t("shake");const K=c.value;K!==null&&(K.classList.remove("q-animate--scale"),K.classList.add("q-animate--scale"),n!==null&&clearTimeout(n),n=setTimeout(()=>{n=null,c.value!==null&&(K.classList.remove("q-animate--scale"),C())},170))}function x(){l.seamless!==!0&&(l.persistent===!0||l.noEscDismiss===!0?l.maximized!==!0&&l.noShake!==!0&&y():(t("escapeKey"),P()))}function w(q){n!==null&&(clearTimeout(n),n=null),(q===!0||a.value===!0)&&(k(!1),l.seamless!==!0&&(i(!1),Ci(R),On(x))),q!==!0&&(e=null)}function k(q){q===!0?r!==!0&&(yn<1&&document.body.classList.add("q-body--dialog"),yn++,r=!0):r===!0&&(yn<2&&document.body.classList.remove("q-body--dialog"),yn--,r=!1)}function E(q){u!==!0&&(P(q),t("click",q))}function O(q){l.persistent!==!0&&l.noBackdropDismiss!==!0?P(q):l.noShake!==!0&&y()}function R(q){l.allowFocusOutside!==!0&&D.value===!0&&_a(c.value,q.target)!==!0&&C('[tabindex]:not([tabindex="-1"])')}Object.assign(m.proxy,{focus:C,shake:y,__updateRefocusTarget(q){e=q||null}}),g.onBeforeUnmount(w);function U(){return g.h("div",{role:"dialog","aria-modal":V.value===!0?"true":"false",...v,class:L.value},[g.h(g.Transition,{name:"q-transition--fade",appear:!0},()=>V.value===!0?g.h("div",{class:"q-dialog__backdrop fixed-full",style:S.value,"aria-hidden":"true",tabindex:-1,onClick:O}):null),g.h(g.Transition,b.value,()=>a.value===!0?g.h("div",{ref:c,class:N.value,style:p.value,tabindex:-1,...W.value},gt(I.default)):null)])}return z}});let Ln=!1;{const l=document.createElement("div");l.setAttribute("dir","rtl"),Object.assign(l.style,{width:"1px",height:"1px",overflow:"auto"});const I=document.createElement("div");Object.assign(I.style,{width:"1000px",height:"1px"}),document.body.appendChild(l),l.appendChild(I),l.scrollLeft=-1e3,Ln=l.scrollLeft>=0,l.remove()}const Wt=1e3,fu=["start","center","end","start-force","center-force","end-force"],Ga=Array.prototype.filter,du=window.getComputedStyle(document.body).overflowAnchor===void 0?Hn:function(l,I){l!==null&&(l._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(l._qOverflowAnimationFrame),l._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(l===null)return;l._qOverflowAnimationFrame=void 0;const t=l.children||[];Ga.call(t,m=>m.dataset&&m.dataset.qVsAnchor!==void 0).forEach(m=>{delete m.dataset.qVsAnchor});const v=t[I];v?.dataset&&(v.dataset.qVsAnchor="")}))};function jr(l,I){return l+I}function fi(l,I,t,v,m,c,a,s){const n=l===window?document.scrollingElement||document.documentElement:l,e=m===!0?"offsetWidth":"offsetHeight",r={scrollStart:0,scrollViewSize:-a-s,scrollMaxSize:0,offsetStart:-a,offsetEnd:-s};if(m===!0?(l===window?(r.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,r.scrollViewSize+=document.documentElement.clientWidth):(r.scrollStart=n.scrollLeft,r.scrollViewSize+=n.clientWidth),r.scrollMaxSize=n.scrollWidth,c===!0&&(r.scrollStart=(Ln===!0?r.scrollMaxSize-r.scrollViewSize:0)-r.scrollStart)):(l===window?(r.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,r.scrollViewSize+=document.documentElement.clientHeight):(r.scrollStart=n.scrollTop,r.scrollViewSize+=n.clientHeight),r.scrollMaxSize=n.scrollHeight),t!==null)for(let u=t.previousElementSibling;u!==null;u=u.previousElementSibling)u.classList.contains("q-virtual-scroll--skip")===!1&&(r.offsetStart+=u[e]);if(v!==null)for(let u=v.nextElementSibling;u!==null;u=u.nextElementSibling)u.classList.contains("q-virtual-scroll--skip")===!1&&(r.offsetEnd+=u[e]);if(I!==l){const u=n.getBoundingClientRect(),o=I.getBoundingClientRect();m===!0?(r.offsetStart+=o.left-u.left,r.offsetEnd-=o.width):(r.offsetStart+=o.top-u.top,r.offsetEnd-=o.height),l!==window&&(r.offsetStart+=r.scrollStart),r.offsetEnd+=r.scrollMaxSize-r.offsetStart}return r}function $o(l,I,t,v){I==="end"&&(I=(l===window?document.body:l)[t===!0?"scrollWidth":"scrollHeight"]),l===window?t===!0?(v===!0&&(I=(Ln===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-I),window.scrollTo(I,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,I):t===!0?(v===!0&&(I=(Ln===!0?l.scrollWidth-l.offsetWidth:0)-I),l.scrollLeft=I):l.scrollTop=I}function Hr(l,I,t,v){if(t>=v)return 0;const m=I.length,c=Math.floor(t/Wt),a=Math.floor((v-1)/Wt)+1;let s=l.slice(c,a).reduce(jr,0);return t%Wt!==0&&(s-=I.slice(c*Wt,t).reduce(jr,0)),v%Wt!==0&&v!==m&&(s-=I.slice(v,a*Wt).reduce(jr,0)),s}const Ja={virtualScrollSliceSize:{type:[Number,String],default:10},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]},Za=Object.keys(Ja),Mi={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...Ja};function $a({virtualScrollLength:l,getVirtualScrollTarget:I,getVirtualScrollEl:t,virtualScrollItemSizeComputed:v}){const m=g.getCurrentInstance(),{props:c,emit:a,proxy:s}=m,{$q:n}=s;let e,r,u,o=[],i;const d=g.ref(0),h=g.ref(0),f=g.ref({}),b=g.ref(null),p=g.ref(null),S=g.ref(null),_=g.ref({from:0,to:0}),T=g.computed(()=>c.tableColspan!==void 0?c.tableColspan:100);v===void 0&&(v=g.computed(()=>c.virtualScrollItemSize));const D=g.computed(()=>v.value+";"+c.virtualScrollHorizontal),z=g.computed(()=>D.value+";"+c.virtualScrollSliceRatioBefore+";"+c.virtualScrollSliceRatioAfter);g.watch(z,()=>{y()}),g.watch(D,P);function P(){C(r,!0)}function N(O){C(O===void 0?r:O)}function V(O,R){const U=I();if(U==null||U.nodeType===8)return;const q=fi(U,t(),b.value,p.value,c.virtualScrollHorizontal,n.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd);u!==q.scrollViewSize&&y(q.scrollViewSize),L(U,q,Math.min(l.value-1,Math.max(0,parseInt(O,10)||0)),0,fu.indexOf(R)!==-1?R:r!==-1&&O>r?"end":"start")}function W(){const O=I();if(O==null||O.nodeType===8)return;const R=fi(O,t(),b.value,p.value,c.virtualScrollHorizontal,n.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd),U=l.value-1,q=R.scrollMaxSize-R.offsetStart-R.offsetEnd-h.value;if(e===R.scrollStart)return;if(R.scrollMaxSize<=0){L(O,R,0,0);return}u!==R.scrollViewSize&&y(R.scrollViewSize),A(_.value.from);const K=Math.floor(R.scrollMaxSize-Math.max(R.scrollViewSize,R.offsetEnd)-Math.min(i[U],R.scrollViewSize/2));if(K>0&&Math.ceil(R.scrollStart)>=K){L(O,R,U,R.scrollMaxSize-R.offsetEnd-o.reduce(jr,0));return}let j=0,Y=R.scrollStart-R.offsetStart,F=Y;if(Y<=q&&Y+R.scrollViewSize>=d.value)Y-=d.value,j=_.value.from,F=Y;else for(let B=0;Y>=o[B]&&j<U;B++)Y-=o[B],j+=Wt;for(;Y>0&&j<U;)Y-=i[j],Y>-R.scrollViewSize?(j++,F=Y):F=i[j]+Y;L(O,R,j,F)}function L(O,R,U,q,K){const j=typeof K=="string"&&K.indexOf("-force")!==-1,Y=j===!0?K.replace("-force",""):K,F=Y!==void 0?Y:"start";let B=Math.max(0,U-f.value[F]),H=B+f.value.total;H>l.value&&(H=l.value,B=Math.max(0,H-f.value.total)),e=R.scrollStart;const X=B!==_.value.from||H!==_.value.to;if(X===!1&&Y===void 0){w(U);return}const{activeElement:ee}=document,Q=S.value;X===!0&&Q!==null&&Q!==ee&&Q.contains(ee)===!0&&(Q.addEventListener("focusout",M),setTimeout(()=>{Q?.removeEventListener("focusout",M)})),du(Q,U-B);const Z=Y!==void 0?i.slice(B,U).reduce(jr,0):0;if(X===!0){const te=H>=_.value.from&&B<=_.value.to?_.value.to:H;_.value={from:B,to:te},d.value=Hr(o,i,0,B),h.value=Hr(o,i,H,l.value),requestAnimationFrame(()=>{_.value.to!==H&&e===R.scrollStart&&(_.value={from:_.value.from,to:H},h.value=Hr(o,i,H,l.value))})}requestAnimationFrame(()=>{if(e!==R.scrollStart)return;X===!0&&A(B);const te=i.slice(B,U).reduce(jr,0),ie=te+R.offsetStart+d.value,J=ie+i[U];let oe=ie+q;if(Y!==void 0){const ae=te-Z,fe=R.scrollStart+ae;oe=j!==!0&&fe<ie&&J<fe+R.scrollViewSize?fe:Y==="end"?J-R.scrollViewSize:ie-(Y==="start"?0:Math.round((R.scrollViewSize-i[U])/2))}e=oe,$o(O,oe,c.virtualScrollHorizontal,n.lang.rtl),w(U)})}function A(O){const R=S.value;if(R){const U=Ga.call(R.children,B=>B.classList&&B.classList.contains("q-virtual-scroll--skip")===!1),q=U.length,K=c.virtualScrollHorizontal===!0?B=>B.getBoundingClientRect().width:B=>B.offsetHeight;let j=O,Y,F;for(let B=0;B<q;){for(Y=K(U[B]),B++;B<q&&U[B].classList.contains("q-virtual-scroll--with-prev")===!0;)Y+=K(U[B]),B++;F=Y-i[j],F!==0&&(i[j]+=F,o[Math.floor(j/Wt)]+=F),j++}}}function M(){S.value?.focus()}function C(O,R){const U=1*v.value;(R===!0||Array.isArray(i)===!1)&&(i=[]);const q=i.length;i.length=l.value;for(let j=l.value-1;j>=q;j--)i[j]=U;const K=Math.floor((l.value-1)/Wt);o=[];for(let j=0;j<=K;j++){let Y=0;const F=Math.min((j+1)*Wt,l.value);for(let B=j*Wt;B<F;B++)Y+=i[B];o.push(Y)}r=-1,e=void 0,d.value=Hr(o,i,0,_.value.from),h.value=Hr(o,i,_.value.to,l.value),O>=0?(A(_.value.from),g.nextTick(()=>{V(O)})):k()}function y(O){if(O===void 0&&typeof window<"u"){const Y=I();Y!=null&&Y.nodeType!==8&&(O=fi(Y,t(),b.value,p.value,c.virtualScrollHorizontal,n.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd).scrollViewSize)}u=O;const R=parseFloat(c.virtualScrollSliceRatioBefore)||0,U=parseFloat(c.virtualScrollSliceRatioAfter)||0,q=1+R+U,K=O===void 0||O<=0?1:Math.ceil(O/v.value),j=Math.max(1,K,Math.ceil((c.virtualScrollSliceSize>0?c.virtualScrollSliceSize:10)/q));f.value={total:Math.ceil(j*q),start:Math.ceil(j*R),center:Math.ceil(j*(.5+R)),end:Math.ceil(j*(1+R)),view:K}}function x(O,R){const U=c.virtualScrollHorizontal===!0?"width":"height",q={["--q-virtual-scroll-item-"+U]:v.value+"px"};return[O==="tbody"?g.h(O,{class:"q-virtual-scroll__padding",key:"before",ref:b},[g.h("tr",[g.h("td",{style:{[U]:`${d.value}px`,...q},colspan:T.value})])]):g.h(O,{class:"q-virtual-scroll__padding",key:"before",ref:b,style:{[U]:`${d.value}px`,...q}}),g.h(O,{class:"q-virtual-scroll__content",key:"content",ref:S,tabindex:-1},R.flat()),O==="tbody"?g.h(O,{class:"q-virtual-scroll__padding",key:"after",ref:p},[g.h("tr",[g.h("td",{style:{[U]:`${h.value}px`,...q},colspan:T.value})])]):g.h(O,{class:"q-virtual-scroll__padding",key:"after",ref:p,style:{[U]:`${h.value}px`,...q}})]}function w(O){r!==O&&(c.onVirtualScroll!==void 0&&a("virtualScroll",{index:O,from:_.value.from,to:_.value.to-1,direction:O<r?"decrease":"increase",ref:s}),r=O)}y();const k=Hi(W,n.platform.is.ios===!0?120:35);g.onBeforeMount(()=>{y()});let E=!1;return g.onDeactivated(()=>{E=!0}),g.onActivated(()=>{if(E!==!0)return;const O=I();e!==void 0&&O!==void 0&&O!==null&&O.nodeType!==8?$o(O,e,c.virtualScrollHorizontal,n.lang.rtl):V(r)}),g.onBeforeUnmount(()=>{k.cancel()}),Object.assign(s,{scrollTo:V,reset:P,refresh:N}),{virtualScrollSliceRange:_,virtualScrollSliceSizeComputed:f,setVirtualScrollSize:y,onVirtualScrollEvt:k,localResetVirtualScroll:C,padVirtualScroll:x,scrollTo:V,reset:P,refresh:N}}const hu=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,pu=/[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u,mu=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,gu=/[a-z0-9_ -]$/i;function es(l){return function(t){if(t.type==="compositionend"||t.type==="change"){if(t.target.qComposing!==!0)return;t.target.qComposing=!1,l(t)}else t.type==="compositionupdate"&&t.target.qComposing!==!0&&typeof t.data=="string"&&(Et.is.firefox===!0?gu.test(t.data)===!1:hu.test(t.data)===!0||pu.test(t.data)===!0||mu.test(t.data)===!0)===!0&&(t.target.qComposing=!0)}}function ir(l,I){if(l===I)return!0;if(l!==null&&I!==null&&typeof l=="object"&&typeof I=="object"){if(l.constructor!==I.constructor)return!1;let t,v;if(l.constructor===Array){if(t=l.length,t!==I.length)return!1;for(v=t;v--!==0;)if(ir(l[v],I[v])!==!0)return!1;return!0}if(l.constructor===Map){if(l.size!==I.size)return!1;let c=l.entries();for(v=c.next();v.done!==!0;){if(I.has(v.value[0])!==!0)return!1;v=c.next()}for(c=l.entries(),v=c.next();v.done!==!0;){if(ir(v.value[1],I.get(v.value[0]))!==!0)return!1;v=c.next()}return!0}if(l.constructor===Set){if(l.size!==I.size)return!1;const c=l.entries();for(v=c.next();v.done!==!0;){if(I.has(v.value[0])!==!0)return!1;v=c.next()}return!0}if(l.buffer!=null&&l.buffer.constructor===ArrayBuffer){if(t=l.length,t!==I.length)return!1;for(v=t;v--!==0;)if(l[v]!==I[v])return!1;return!0}if(l.constructor===RegExp)return l.source===I.source&&l.flags===I.flags;if(l.valueOf!==Object.prototype.valueOf)return l.valueOf()===I.valueOf();if(l.toString!==Object.prototype.toString)return l.toString()===I.toString();const m=Object.keys(l).filter(c=>l[c]!==void 0);if(t=m.length,t!==Object.keys(I).filter(c=>I[c]!==void 0).length)return!1;for(v=t;v--!==0;){const c=m[v];if(ir(l[c],I[c])!==!0)return!1}return!0}return l!==l&&I!==I}function ts(l){return l!==null&&typeof l=="object"&&Array.isArray(l)!==!0}function Vn(l){return Object.prototype.toString.call(l)==="[object Date]"}function Ti(l){return typeof l=="number"&&isFinite(l)}const ea=l=>["add","add-unique","toggle"].includes(l),bu=".*+?^${}()|[]\\",vu=Object.keys(Xn);function di(l,I){if(typeof l=="function")return l;const t=l!==void 0?l:I;return v=>v!==null&&typeof v=="object"&&t in v?v[t]:v}const Jn=$e({name:"QSelect",inheritAttrs:!1,props:{...Mi,...Yn,...Xn,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],popupNoRouteDismiss:Boolean,useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:ea},mapOptions:Boolean,emitValue:Boolean,disableTabSelection:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{type:String,validator:l=>["default","menu","dialog"].includes(l),default:"default"},virtualScrollItemSize:Mi.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...to,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(l,{slots:I,emit:t}){const{proxy:v}=g.getCurrentInstance(),{$q:m}=v,c=g.ref(!1),a=g.ref(!1),s=g.ref(-1),n=g.ref(""),e=g.ref(!1),r=g.ref(!1);let u=null,o=null,i,d,h,f=null,b,p,S,_;const T=g.ref(null),D=g.ref(null),z=g.ref(null),P=g.ref(null),N=g.ref(null),V=Ma(l),W=es(he),L=g.computed(()=>Array.isArray(l.options)?l.options.length:0),A=g.computed(()=>l.virtualScrollItemSize===void 0?l.optionsDense===!0?24:48:l.virtualScrollItemSize),{virtualScrollSliceRange:M,virtualScrollSliceSizeComputed:C,localResetVirtualScroll:y,padVirtualScroll:x,onVirtualScrollEvt:w,scrollTo:k,setVirtualScrollSize:E}=$a({virtualScrollLength:L,getVirtualScrollTarget:nt,getVirtualScrollEl:He,virtualScrollItemSizeComputed:A}),O=ro(),R=g.computed(()=>{const se=l.mapOptions===!0&&l.multiple!==!0,je=l.modelValue!==void 0&&(l.modelValue!==null||se===!0)?l.multiple===!0&&Array.isArray(l.modelValue)?l.modelValue:[l.modelValue]:[];if(l.mapOptions===!0&&Array.isArray(l.options)===!0){const $=l.mapOptions===!0&&i!==void 0?i:[],ue=je.map(ve=>Fe(ve,$));return l.modelValue===null&&se===!0?ue.filter(ve=>ve!==null):ue}return je}),U=g.computed(()=>{const se={};return vu.forEach(je=>{const $=l[je];$!==void 0&&(se[je]=$)}),se}),q=g.computed(()=>l.optionsDark===null?O.isDark.value:l.optionsDark),K=g.computed(()=>$r(R.value)),j=g.computed(()=>{let se="q-field__input q-placeholder col";return l.hideSelected===!0||R.value.length===0?[se,l.inputClass]:(se+=" q-field__input--padding",l.inputClass===void 0?se:[se,l.inputClass])}),Y=g.computed(()=>(l.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(l.popupContentClass?" "+l.popupContentClass:"")),F=g.computed(()=>L.value===0),B=g.computed(()=>R.value.map(se=>de.value(se)).join(", ")),H=g.computed(()=>l.displayValue!==void 0?l.displayValue:B.value),X=g.computed(()=>l.optionsHtml===!0?()=>!0:se=>se?.html===!0),ee=g.computed(()=>l.displayValueHtml===!0||l.displayValue===void 0&&(l.optionsHtml===!0||R.value.some(X.value))),Q=g.computed(()=>O.focused.value===!0?l.tabindex:-1),Z=g.computed(()=>{const se={tabindex:l.tabindex,role:"combobox","aria-label":l.label,"aria-readonly":l.readonly===!0?"true":"false","aria-autocomplete":l.useInput===!0?"list":"none","aria-expanded":c.value===!0?"true":"false","aria-controls":`${O.targetUid.value}_lb`};return s.value>=0&&(se["aria-activedescendant"]=`${O.targetUid.value}_${s.value}`),se}),te=g.computed(()=>({id:`${O.targetUid.value}_lb`,role:"listbox","aria-multiselectable":l.multiple===!0?"true":"false"})),ie=g.computed(()=>R.value.map((se,je)=>({index:je,opt:se,html:X.value(se),selected:!0,removeAtIndex:Me,toggleOption:Ve,tabindex:Q.value}))),J=g.computed(()=>{if(L.value===0)return[];const{from:se,to:je}=M.value;return l.options.slice(se,je).map(($,ue)=>{const ve=me.value($)===!0,ye=ke($)===!0,Pe=se+ue,Se={clickable:!0,active:ye,activeClass:fe.value,manualFocus:!0,focused:!1,disable:ve,tabindex:-1,dense:l.optionsDense,dark:q.value,role:"option","aria-selected":ye===!0?"true":"false",id:`${O.targetUid.value}_${Pe}`,onClick:()=>{Ve($)}};return ve!==!0&&(s.value===Pe&&(Se.focused=!0),m.platform.is.desktop===!0&&(Se.onMousemove=()=>{c.value===!0&&Ne(Pe)})),{index:Pe,opt:$,html:X.value($),label:de.value($),selected:Se.active,focused:Se.focused,toggleOption:Ve,setOptionIndex:Ne,itemProps:Se}})}),oe=g.computed(()=>l.dropdownIcon!==void 0?l.dropdownIcon:m.iconSet.arrow.dropdown),ae=g.computed(()=>l.optionsCover===!1&&l.outlined!==!0&&l.standout!==!0&&l.borderless!==!0&&l.rounded!==!0),fe=g.computed(()=>l.optionsSelectedClass!==void 0?l.optionsSelectedClass:l.color!==void 0?`text-${l.color}`:""),ce=g.computed(()=>di(l.optionValue,"value")),de=g.computed(()=>di(l.optionLabel,"label")),me=g.computed(()=>di(l.optionDisable,"disable")),be=g.computed(()=>R.value.map(ce.value)),xe=g.computed(()=>{const se={onInput:he,onChange:W,onKeydown:et,onKeyup:Le,onKeypress:Ge,onFocus:De,onClick(je){d===!0&&Dt(je)}};return se.onCompositionstart=se.onCompositionupdate=se.onCompositionend=W,se});g.watch(R,se=>{i=se,l.useInput===!0&&l.fillInput===!0&&l.multiple!==!0&&O.innerLoading.value!==!0&&(a.value!==!0&&c.value!==!0||K.value!==!0)&&(h!==!0&&ze(),(a.value===!0||c.value===!0)&&Oe(""))},{immediate:!0}),g.watch(()=>l.fillInput,ze),g.watch(c,Je),g.watch(L,Ze);function Ie(se){return l.emitValue===!0?ce.value(se):se}function Ee(se){if(se!==-1&&se<R.value.length)if(l.multiple===!0){const je=l.modelValue.slice();t("remove",{index:se,value:je.splice(se,1)[0]}),t("update:modelValue",je)}else t("update:modelValue",null)}function Me(se){Ee(se),O.focus()}function We(se,je){const $=Ie(se);if(l.multiple!==!0){l.fillInput===!0&&Te(de.value(se),!0,!0),t("update:modelValue",$);return}if(R.value.length===0){t("add",{index:0,value:$}),t("update:modelValue",l.multiple===!0?[$]:$);return}if(je===!0&&ke(se)===!0||l.maxValues!==void 0&&l.modelValue.length>=l.maxValues)return;const ue=l.modelValue.slice();t("add",{index:ue.length,value:$}),ue.push($),t("update:modelValue",ue)}function Ve(se,je){if(O.editable.value!==!0||se===void 0||me.value(se)===!0)return;const $=ce.value(se);if(l.multiple!==!0){je!==!0&&(Te(l.fillInput===!0?de.value(se):"",!0,!0),Re()),D.value?.focus(),(R.value.length===0||ir(ce.value(R.value[0]),$)!==!0)&&t("update:modelValue",l.emitValue===!0?$:se);return}if((d!==!0||e.value===!0)&&O.focus(),De(),R.value.length===0){const ye=l.emitValue===!0?$:se;t("add",{index:0,value:ye}),t("update:modelValue",l.multiple===!0?[ye]:ye);return}const ue=l.modelValue.slice(),ve=be.value.findIndex(ye=>ir(ye,$));if(ve!==-1)t("remove",{index:ve,value:ue.splice(ve,1)[0]});else{if(l.maxValues!==void 0&&ue.length>=l.maxValues)return;const ye=l.emitValue===!0?$:se;t("add",{index:ue.length,value:ye}),ue.push(ye)}t("update:modelValue",ue)}function Ne(se){if(m.platform.is.desktop!==!0)return;const je=se!==-1&&se<L.value?se:-1;s.value!==je&&(s.value=je)}function qe(se=1,je){if(c.value===!0){let $=s.value;do $=Io($+se,-1,L.value-1);while($!==-1&&$!==s.value&&me.value(l.options[$])===!0);s.value!==$&&(Ne($),k($),je!==!0&&l.useInput===!0&&l.fillInput===!0&&we($>=0?de.value(l.options[$]):b,!0))}}function Fe(se,je){const $=ue=>ir(ce.value(ue),se);return l.options.find($)||je.find($)||se}function ke(se){const je=ce.value(se);return be.value.find($=>ir($,je))!==void 0}function De(se){l.useInput===!0&&D.value!==null&&(se===void 0||D.value===se.target&&se.target.value===B.value)&&D.value.select()}function Ue(se){ur(se,27)===!0&&c.value===!0&&(Dt(se),Re(),ze()),t("keyup",se)}function Le(se){const{value:je}=se.target;if(se.keyCode!==void 0){Ue(se);return}if(se.target.value="",u!==null&&(clearTimeout(u),u=null),o!==null&&(clearTimeout(o),o=null),ze(),typeof je=="string"&&je.length!==0){const $=je.toLocaleLowerCase(),ue=ye=>{const Pe=l.options.find(Se=>String(ye.value(Se)).toLocaleLowerCase()===$);return Pe===void 0?!1:(R.value.indexOf(Pe)===-1?Ve(Pe):Re(),!0)},ve=ye=>{ue(ce)!==!0&&ye!==!0&&ue(de)!==!0&&Oe(je,!0,()=>ve(!0))};ve()}else O.clearValue(se)}function Ge(se){t("keypress",se)}function et(se){if(t("keydown",se),qi(se)===!0)return;const je=n.value.length!==0&&(l.newValueMode!==void 0||l.onNewValue!==void 0),$=se.shiftKey!==!0&&l.disableTabSelection!==!0&&l.multiple!==!0&&(s.value!==-1||je===!0);if(se.keyCode===27){Bt(se);return}if(se.keyCode===9&&$===!1){ge();return}if(se.target===void 0||se.target.id!==O.targetUid.value||O.editable.value!==!0)return;if(se.keyCode===40&&O.innerLoading.value!==!0&&c.value===!1){St(se),Ce();return}if(se.keyCode===8&&(l.useChips===!0||l.clearable===!0)&&l.hideSelected!==!0&&n.value.length===0){l.multiple===!0&&Array.isArray(l.modelValue)===!0?Ee(l.modelValue.length-1):l.multiple!==!0&&l.modelValue!==null&&t("update:modelValue",null);return}(se.keyCode===35||se.keyCode===36)&&(typeof n.value!="string"||n.value.length===0)&&(St(se),s.value=-1,qe(se.keyCode===36?1:-1,l.multiple)),(se.keyCode===33||se.keyCode===34)&&C.value!==void 0&&(St(se),s.value=Math.max(-1,Math.min(L.value,s.value+(se.keyCode===33?-1:1)*C.value.view)),qe(se.keyCode===33?1:-1,l.multiple)),(se.keyCode===38||se.keyCode===40)&&(St(se),qe(se.keyCode===38?-1:1,l.multiple));const ue=L.value;if((S===void 0||_<Date.now())&&(S=""),ue>0&&l.useInput!==!0&&se.key!==void 0&&se.key.length===1&&se.altKey===!1&&se.ctrlKey===!1&&se.metaKey===!1&&(se.keyCode!==32||S.length!==0)){c.value!==!0&&Ce(se);const ve=se.key.toLocaleLowerCase(),ye=S.length===1&&S[0]===ve;_=Date.now()+1500,ye===!1&&(St(se),S+=ve);const Pe=new RegExp("^"+S.split("").map(Be=>bu.indexOf(Be)!==-1?"\\"+Be:Be).join(".*"),"i");let Se=s.value;if(ye===!0||Se<0||Pe.test(de.value(l.options[Se]))!==!0)do Se=Io(Se+1,-1,ue-1);while(Se!==s.value&&(me.value(l.options[Se])===!0||Pe.test(de.value(l.options[Se]))!==!0));s.value!==Se&&g.nextTick(()=>{Ne(Se),k(Se),Se>=0&&l.useInput===!0&&l.fillInput===!0&&we(de.value(l.options[Se]),!0)});return}if(!(se.keyCode!==13&&(se.keyCode!==32||l.useInput===!0||S!=="")&&(se.keyCode!==9||$===!1))){if(se.keyCode!==9&&St(se),s.value!==-1&&s.value<ue){Ve(l.options[s.value]);return}if(je===!0){const ve=(ye,Pe)=>{if(Pe){if(ea(Pe)!==!0)return}else Pe=l.newValueMode;if(Te("",l.multiple!==!0,!0),ye==null)return;(Pe==="toggle"?Ve:We)(ye,Pe==="add-unique"),l.multiple!==!0&&(D.value?.focus(),Re())};if(l.onNewValue!==void 0?t("newValue",n.value,ve):ve(n.value),l.multiple!==!0)return}c.value===!0?ge():O.innerLoading.value!==!0&&Ce()}}function He(){return d===!0?N.value:z.value!==null&&z.value.contentEl!==null?z.value.contentEl:void 0}function nt(){return He()}function tt(){return l.hideSelected===!0?[]:I["selected-item"]!==void 0?ie.value.map(se=>I["selected-item"](se)).slice():I.selected!==void 0?[].concat(I.selected()):l.useChips===!0?ie.value.map((se,je)=>g.h(io,{key:"option-"+je,removable:O.editable.value===!0&&me.value(se.opt)!==!0,dense:!0,textColor:l.color,tabindex:Q.value,onRemove(){se.removeAtIndex(je)}},()=>g.h("span",{class:"ellipsis",[se.html===!0?"innerHTML":"textContent"]:de.value(se.opt)}))):[g.h("span",{class:"ellipsis",[ee.value===!0?"innerHTML":"textContent"]:H.value})]}function Ye(){if(F.value===!0)return I["no-option"]!==void 0?I["no-option"]({inputValue:n.value}):void 0;const se=I.option!==void 0?I.option:$=>g.h(Ir,{key:$.index,...$.itemProps},()=>g.h(Or,()=>g.h(Ei,()=>g.h("span",{[$.html===!0?"innerHTML":"textContent"]:$.label}))));let je=x("div",J.value.map(se));return I["before-options"]!==void 0&&(je=I["before-options"]().concat(je)),It(I["after-options"],je)}function st(se,je){const $=je===!0?{...Z.value,...O.splitAttrs.attributes.value}:void 0,ue={ref:je===!0?D:void 0,key:"i_t",class:j.value,style:l.inputStyle,value:n.value!==void 0?n.value:"",type:"search",...$,id:je===!0?O.targetUid.value:void 0,maxlength:l.maxlength,autocomplete:l.autocomplete,"data-autofocus":se===!0||l.autofocus===!0||void 0,disabled:l.disable===!0,readonly:l.readonly===!0,...xe.value};return se!==!0&&d===!0&&(Array.isArray(ue.class)===!0?ue.class=[...ue.class,"no-pointer-events"]:ue.class+=" no-pointer-events"),g.h("input",ue)}function he(se){u!==null&&(clearTimeout(u),u=null),o!==null&&(clearTimeout(o),o=null),!(se&&se.target&&se.target.qComposing===!0)&&(we(se.target.value||""),h=!0,b=n.value,O.focused.value!==!0&&(d!==!0||e.value===!0)&&O.focus(),l.onFilter!==void 0&&(u=setTimeout(()=>{u=null,Oe(n.value)},l.inputDebounce)))}function we(se,je){n.value!==se&&(n.value=se,je===!0||l.inputDebounce===0||l.inputDebounce==="0"?t("inputValue",se):o=setTimeout(()=>{o=null,t("inputValue",se)},l.inputDebounce))}function Te(se,je,$){h=$!==!0,l.useInput===!0&&(we(se,!0),(je===!0||$!==!0)&&(b=se),je!==!0&&Oe(se))}function Oe(se,je,$){if(l.onFilter===void 0||je!==!0&&O.focused.value!==!0)return;O.innerLoading.value===!0?t("filterAbort"):(O.innerLoading.value=!0,r.value=!0),se!==""&&l.multiple!==!0&&R.value.length!==0&&h!==!0&&se===de.value(R.value[0])&&(se="");const ue=setTimeout(()=>{c.value===!0&&(c.value=!1)},10);f!==null&&clearTimeout(f),f=ue,t("filter",se,(ve,ye)=>{(je===!0||O.focused.value===!0)&&f===ue&&(clearTimeout(f),typeof ve=="function"&&ve(),r.value=!1,g.nextTick(()=>{O.innerLoading.value=!1,O.editable.value===!0&&(je===!0?c.value===!0&&Re():c.value===!0?Je(!0):c.value=!0),typeof ye=="function"&&g.nextTick(()=>{ye(v)}),typeof $=="function"&&g.nextTick(()=>{$(v)})}))},()=>{O.focused.value===!0&&f===ue&&(clearTimeout(f),O.innerLoading.value=!1,r.value=!1),c.value===!0&&(c.value=!1)})}function _e(){return g.h(on,{ref:z,class:Y.value,style:l.popupContentStyle,modelValue:c.value,fit:l.menuShrink!==!0,cover:l.optionsCover===!0&&F.value!==!0&&l.useInput!==!0,anchor:l.menuAnchor,self:l.menuSelf,offset:l.menuOffset,dark:q.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:l.popupNoRouteDismiss,square:ae.value,transitionShow:l.transitionShow,transitionHide:l.transitionHide,transitionDuration:l.transitionDuration,separateClosePopup:!0,...te.value,onScrollPassive:w,onBeforeShow:yt,onBeforeHide:Qe,onShow:Ke},Ye)}function Qe(se){ft(se),ge()}function Ke(){E()}function re(se){Dt(se),D.value?.focus(),e.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function G(se){Dt(se),g.nextTick(()=>{e.value=!1})}function ne(){const se=[g.h(nu,{class:`col-auto ${O.fieldClass.value}`,...U.value,for:O.targetUid.value,dark:q.value,square:!0,loading:r.value,itemAligned:!1,filled:!0,stackLabel:n.value.length!==0,...O.splitAttrs.listeners.value,onFocus:re,onBlur:G},{...I,rawControl:()=>O.getControl(!0),before:void 0,after:void 0})];return c.value===!0&&se.push(g.h("div",{ref:N,class:Y.value+" scroll",style:l.popupContentStyle,...te.value,onClick:Bt,onScrollPassive:w},Ye())),g.h(Gn,{ref:P,modelValue:a.value,position:l.useInput===!0?"top":void 0,transitionShow:p,transitionHide:l.transitionHide,transitionDuration:l.transitionDuration,noRouteDismiss:l.popupNoRouteDismiss,onBeforeShow:yt,onBeforeHide:le,onHide:pe,onShow:Ae},()=>g.h("div",{class:"q-select__dialog"+(q.value===!0?" q-select__dialog--dark q-dark":"")+(e.value===!0?" q-select__dialog--focused":"")},se))}function le(se){ft(se),P.value!==null&&P.value.__updateRefocusTarget(O.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),O.focused.value=!1}function pe(se){Re(),O.focused.value===!1&&t("blur",se),ze()}function Ae(){const se=document.activeElement;(se===null||se.id!==O.targetUid.value)&&D.value!==null&&D.value!==se&&D.value.focus(),E()}function ge(){a.value!==!0&&(s.value=-1,c.value===!0&&(c.value=!1),O.focused.value===!1&&(f!==null&&(clearTimeout(f),f=null),O.innerLoading.value===!0&&(t("filterAbort"),O.innerLoading.value=!1,r.value=!1)))}function Ce(se){O.editable.value===!0&&(d===!0?(O.onControlFocusin(se),a.value=!0,g.nextTick(()=>{O.focus()})):O.focus(),l.onFilter!==void 0?Oe(n.value):(F.value!==!0||I["no-option"]!==void 0)&&(c.value=!0))}function Re(){a.value=!1,ge()}function ze(){l.useInput===!0&&Te(l.multiple!==!0&&l.fillInput===!0&&R.value.length!==0&&de.value(R.value[0])||"",!0,!0)}function Je(se){let je=-1;if(se===!0){if(R.value.length!==0){const $=ce.value(R.value[0]);je=l.options.findIndex(ue=>ir(ce.value(ue),$))}y(je)}Ne(je)}function Ze(se,je){c.value===!0&&O.innerLoading.value===!1&&(y(-1,!0),g.nextTick(()=>{c.value===!0&&O.innerLoading.value===!1&&(se>je?y():Je(!0))}))}function rt(){a.value===!1&&z.value!==null&&z.value.updatePosition()}function yt(se){se!==void 0&&Dt(se),t("popupShow",se),O.hasPopupOpen=!0,O.onControlFocusin(se)}function ft(se){se!==void 0&&Dt(se),t("popupHide",se),O.hasPopupOpen=!1,O.onControlFocusout(se)}function kt(){d=m.platform.is.mobile!==!0&&l.behavior!=="dialog"?!1:l.behavior!=="menu"&&(l.useInput===!0?I["no-option"]!==void 0||l.onFilter!==void 0||F.value===!1:!0),p=m.platform.is.ios===!0&&d===!0&&l.useInput===!0?"fade":l.transitionShow}return g.onBeforeUpdate(kt),g.onUpdated(rt),kt(),g.onBeforeUnmount(()=>{u!==null&&clearTimeout(u),o!==null&&clearTimeout(o)}),Object.assign(v,{showPopup:Ce,hidePopup:Re,removeAtIndex:Ee,add:We,toggleOption:Ve,getOptionIndex:()=>s.value,setOptionIndex:Ne,moveOptionSelection:qe,filter:Oe,updateMenuPosition:rt,updateInputValue:Te,isOptionSelected:ke,getEmittingOptionValue:Ie,isOptionDisabled:(...se)=>me.value.apply(null,se)===!0,getOptionValue:(...se)=>ce.value.apply(null,se),getOptionLabel:(...se)=>de.value.apply(null,se)}),Object.assign(O,{innerValue:R,fieldClass:g.computed(()=>`q-select q-field--auto-height q-select--with${l.useInput!==!0?"out":""}-input q-select--with${l.useChips!==!0?"out":""}-chips q-select--${l.multiple===!0?"multiple":"single"}`),inputRef:T,targetRef:D,hasValue:K,showPopup:Ce,floatingLabel:g.computed(()=>l.hideSelected!==!0&&K.value===!0||typeof n.value=="number"||n.value.length!==0||$r(l.displayValue)),getControlChild:()=>{if(O.editable.value!==!1&&(a.value===!0||F.value!==!0||I["no-option"]!==void 0))return d===!0?ne():_e();O.hasPopupOpen===!0&&(O.hasPopupOpen=!1)},controlEvents:{onFocusin(se){O.onControlFocusin(se)},onFocusout(se){O.onControlFocusout(se,()=>{ze(),ge()})},onClick(se){if(Bt(se),d!==!0&&c.value===!0){ge(),D.value?.focus();return}Ce(se)}},getControl:se=>{const je=tt(),$=se===!0||a.value!==!0||d!==!0;if(l.useInput===!0)je.push(st(se,$));else if(O.editable.value===!0){const ve=$===!0?Z.value:void 0;je.push(g.h("input",{ref:$===!0?D:void 0,key:"d_t",class:"q-select__focus-target",id:$===!0?O.targetUid.value:void 0,value:H.value,readonly:!0,"data-autofocus":se===!0||l.autofocus===!0||void 0,...ve,onKeydown:et,onKeyup:Ue,onKeypress:Ge})),$===!0&&typeof l.autocomplete=="string"&&l.autocomplete.length!==0&&je.push(g.h("input",{class:"q-select__autocomplete-input",autocomplete:l.autocomplete,tabindex:-1,onKeyup:Le}))}if(V.value!==void 0&&l.disable!==!0&&be.value.length!==0){const ve=be.value.map(ye=>g.h("option",{value:ye,selected:!0}));je.push(g.h("select",{class:"hidden",name:V.value,multiple:l.multiple},ve))}const ue=l.useInput===!0||$!==!0?void 0:O.splitAttrs.attributes.value;return g.h("div",{class:"q-field__native row items-center",...ue,...O.splitAttrs.listeners.value},je)},getInnerAppend:()=>l.loading!==!0&&r.value!==!0&&l.hideDropdownIcon!==!0?[g.h(vt,{class:"q-select__dropdown-icon"+(c.value===!0?" rotate-180":""),name:oe.value})]:null}),no(O)}}),yu={class:"q-pa-none"},wu=g.defineComponent({__name:"CheckboxFilter",props:{options:{},label:{default:"Sélectionner les options"},modelValue:{default:()=>[]},scrollAreaHeight:{default:"200px"},scrollAreaWidth:{default:"250px"},dataCy:{default:"checkbox-filter"}},emits:["update:modelValue"],setup(l,{emit:I}){const t=l,v=I,m=g.ref(!1),c=g.ref(t.modelValue||[]),a=g.computed(()=>({height:t.scrollAreaHeight,width:t.scrollAreaWidth})),s=g.computed(()=>t.dataCy||"checkbox-filter");return g.watch(c,n=>{v("update:modelValue",n)}),g.watch(()=>t.modelValue,n=>{n&&(c.value=n)},{immediate:!0}),(n,e)=>(g.openBlock(),g.createElementBlock("div",yu,[g.createVNode(Jn,g.mergeProps({outlined:"",dense:"",label:t.label,class:["full-width","cursor-pointer"],"data-cy":s.value,"model-value":null,options:[],"hide-dropdown-icon":""},n.$attrs),{append:g.withCtx(()=>[g.createVNode(vt,{name:"arrow_drop_down",class:g.normalizeClass(["cursor-pointer smooth-rotate",{"rotate-180":m.value}])},null,8,["class"])]),default:g.withCtx(()=>[g.createVNode(on,{modelValue:m.value,"onUpdate:modelValue":e[1]||(e[1]=r=>m.value=r),anchor:"bottom left",self:"top left",offset:[0,8],"transition-show":"scale","transition-hide":"scale"},{default:g.withCtx(()=>[g.createVNode(rn,{class:"q-pa-sm"},{default:g.withCtx(()=>[g.createVNode(Rl,{style:g.normalizeStyle(a.value)},{default:g.withCtx(()=>[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(t.options,r=>(g.openBlock(),g.createBlock(lr,{key:r.value,modelValue:c.value,"onUpdate:modelValue":e[0]||(e[0]=u=>c.value=u),val:r,label:r.label,disable:r.disabled,color:"primary",class:"q-mb-sm q-ml-sm q-mr-sm","data-cy":`${s.value}-option-${r.label}`},null,8,["modelValue","val","label","disable","data-cy"]))),128))]),_:1},8,["style"])]),_:1})]),_:1},8,["modelValue"])]),_:1},16,["label","data-cy"])]))}}),xu=Yt(wu,[["__scopeId","data-v-0e12eb7b"]]),Su=g.defineComponent({__name:"SelectSearch",props:{options:{default:()=>[]},fetchOptions:{},label:{default:"Selectionner un option"},modelValue:{default:null}},emits:["update:modelValue"],setup(l,{emit:I}){const t=l,v=I,m=g.ref(),c=g.ref(t.modelValue??null),a=g.ref(""),s=g.ref(t.options??[]),n=g.ref(!1),e=g.ref(!0);g.watch(()=>t.options,f=>{s.value=f??[],r()},{immediate:!0}),g.watch(()=>t.modelValue,f=>{c.value=f,r(),n.value=!1});function r(){const f=s.value.find(b=>b.value===c.value);a.value=f?.label??""}function u(f){c.value=f,v("update:modelValue",f),r(),n.value=!1}function o(f){a.value=f,f===""&&(n.value=!0)}function i(){if(e.value){e.value=!1;return}c.value!==null&&!n.value?(a.value="",n.value=!0,m.value?.showPopup()):n.value&&(a.value="")}function d(){e.value=!0;const f=a.value.trim();if(f==="")n.value&&(c.value=null,v("update:modelValue",null));else{const b=s.value.find(p=>p.label.toLowerCase()===f.toLowerCase());b?(c.value=b.value,v("update:modelValue",b.value),a.value=b.label):r()}n.value=!1}function h(f,b,p){if(t.fetchOptions)t.fetchOptions(f).then(S=>{s.value=S,b(()=>{})}).catch(p).finally(()=>{});else{const S=t.options??[];s.value=S.filter(_=>_.label.toLowerCase().includes(f.toLowerCase())),b(()=>{})}}return(f,b)=>(g.openBlock(),g.createBlock(Jn,g.mergeProps({ref_key:"selectRef",ref:m,"model-value":c.value,"input-value":a.value,"use-input":"","fill-input":"","hide-selected":"","input-debounce":"300",label:f.label,options:s.value,dense:"",outlined:"",class:"full-width cursor-pointer"},f.$attrs,{"onUpdate:modelValue":u,"onUpdate:inputValue":o,onFocus:i,onBlur:d,onFilter:h}),null,16,["model-value","input-value","label","options"]))}}),ku=g.defineComponent({__name:"SelectYear",props:{modelValue:{},label:{default:"Sélectionner une année"},startYear:{default:2015},endYear:{default:void 0}},emits:["update:modelValue"],setup(l,{emit:I}){const t=l,v=I,m=g.computed(()=>{const s=t.startYear??new Date().getFullYear()-5,n=t.endYear??new Date().getFullYear(),e=[];for(let r=n;r>=s;r--)e.push({label:String(r),value:r});return e});function c(s){v("update:modelValue",s)}function a(){t.modelValue!==null&&v("update:modelValue",null)}return(s,n)=>(g.openBlock(),g.createBlock(Jn,g.mergeProps({"model-value":s.modelValue,options:m.value,"option-value":"value","option-label":"label",label:s.label,dense:"","emit-value":"",outlined:"",class:"full-width cursor-pointer"},s.$attrs,{"onUpdate:modelValue":c,onFocus:a}),null,16,["model-value","options","label"]))}}),rs=$e({name:"QAvatar",props:{...Vr,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(l,{slots:I}){const t=qr(l),v=g.computed(()=>"q-avatar"+(l.color?` bg-${l.color}`:"")+(l.textColor?` text-${l.textColor} q-chip--colored`:"")+(l.square===!0?" q-avatar--square":l.rounded===!0?" rounded-borders":"")),m=g.computed(()=>l.fontSize?{fontSize:l.fontSize}:null);return()=>{const c=l.icon!==void 0?[g.h(vt,{name:l.icon})]:void 0;return g.h("div",{class:v.value,style:t.value},[g.h("div",{class:"q-avatar__content row flex-center overflow-hidden",style:m.value},ga(I.default,c))])}}}),Cu=$e({name:"QSpace",setup(){const l=g.h("div",{class:"q-space"});return()=>l}}),_u=["ul","ol"],oo=$e({name:"QList",props:{...Ot,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(l,{slots:I}){const t=g.getCurrentInstance(),v=Ft(l,t.proxy.$q),m=g.computed(()=>_u.includes(l.tag)?null:"list"),c=g.computed(()=>"q-list"+(l.bordered===!0?" q-list--bordered":"")+(l.dense===!0?" q-list--dense":"")+(l.separator===!0?" q-list--separator":"")+(v.value===!0?" q-list--dark":"")+(l.padding===!0?" q-list--padding":""));return()=>g.h(l.tag,{class:c.value,role:m.value},gt(I.default))}}),ns=$e({name:"QToolbar",props:{inset:Boolean},setup(l,{slots:I}){const t=g.computed(()=>"q-toolbar row no-wrap items-center"+(l.inset===!0?" q-toolbar--inset":""));return()=>g.h("div",{class:t.value,role:"toolbar"},gt(I.default))}}),Au=$e({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(l,{slots:I,emit:t}){const{proxy:{$q:v}}=g.getCurrentInstance(),m=g.inject(an,Rt);if(m===Rt)return console.error("QHeader needs to be child of QLayout"),Rt;const c=g.ref(parseInt(l.heightHint,10)),a=g.ref(!0),s=g.computed(()=>l.reveal===!0||m.view.value.indexOf("H")!==-1||v.platform.is.ios&&m.isContainer.value===!0),n=g.computed(()=>{if(l.modelValue!==!0)return 0;if(s.value===!0)return a.value===!0?c.value:0;const p=c.value-m.scroll.value.position;return p>0?p:0}),e=g.computed(()=>l.modelValue!==!0||s.value===!0&&a.value!==!0),r=g.computed(()=>l.modelValue===!0&&e.value===!0&&l.reveal===!0),u=g.computed(()=>"q-header q-layout__section--marginal "+(s.value===!0?"fixed":"absolute")+"-top"+(l.bordered===!0?" q-header--bordered":"")+(e.value===!0?" q-header--hidden":"")+(l.modelValue!==!0?" q-layout--prevent-focus":"")),o=g.computed(()=>{const p=m.rows.value.top,S={};return p[0]==="l"&&m.left.space===!0&&(S[v.lang.rtl===!0?"right":"left"]=`${m.left.size}px`),p[2]==="r"&&m.right.space===!0&&(S[v.lang.rtl===!0?"left":"right"]=`${m.right.size}px`),S});function i(p,S){m.update("header",p,S)}function d(p,S){p.value!==S&&(p.value=S)}function h({height:p}){d(c,p),i("size",p)}function f(p){r.value===!0&&d(a,!0),t("focusin",p)}g.watch(()=>l.modelValue,p=>{i("space",p),d(a,!0),m.animate()}),g.watch(n,p=>{i("offset",p)}),g.watch(()=>l.reveal,p=>{p===!1&&d(a,l.modelValue)}),g.watch(a,p=>{m.animate(),t("reveal",p)}),g.watch(m.scroll,p=>{l.reveal===!0&&d(a,p.direction==="up"||p.position<=l.revealOffset||p.position-p.inflectionPoint<100)});const b={};return m.instances.header=b,l.modelValue===!0&&i("size",c.value),i("space",l.modelValue),i("offset",n.value),g.onBeforeUnmount(()=>{m.instances.header===b&&(m.instances.header=void 0,i("size",0),i("offset",0),i("space",!1))}),()=>{const p=ji(I.default,[]);return l.elevated===!0&&p.push(g.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),p.push(g.h(Pr,{debounce:0,onResize:h})),g.h("header",{class:u.value,style:o.value,onFocusin:f},p)}}});function ta(l){if(l===!1)return 0;if(l===!0||l===void 0)return 1;const I=parseInt(l,10);return isNaN(I)?0:I}const ao=Fi({name:"close-popup",beforeMount(l,{value:I}){const t={depth:ta(I),handler(v){t.depth!==0&&setTimeout(()=>{const m=Pl(l);m!==void 0&&Nl(m,v,t.depth)})},handlerKey(v){ur(v,13)===!0&&t.handler(v)}};l.__qclosepopup=t,l.addEventListener("click",t.handler),l.addEventListener("keyup",t.handlerKey)},updated(l,{value:I,oldValue:t}){I!==t&&(l.__qclosepopup.depth=ta(I))},beforeUnmount(l){const I=l.__qclosepopup;l.removeEventListener("click",I.handler),l.removeEventListener("keyup",I.handlerKey),delete l.__qclosepopup}}),Eu=["src","alt"],Mu={key:0,class:"project-environment-container row items-center q-mr-md"},Tu=g.defineComponent({__name:"SelfeeHeader",props:{logoSrc:{},logoAlt:{},logoTo:{},showProjectSwitch:{type:Boolean},currentProjectLabel:{},availableProjects:{},currentPath:{},environment:{}},emits:["project-change"],setup(l,{emit:I}){const t=l,v=t.logoAlt??"Logo",m=t.logoTo??"/",c=g.computed(()=>({width:"260px",height:"auto",borderRadius:"0"})),a=g.computed(()=>t.environment?t.environment.toUpperCase()!=="PROD":!1),s=g.computed(()=>`environment-badge--${t.environment?.toUpperCase()?.toLowerCase()}`),n=e=>t.currentPath?.startsWith(e);return(e,r)=>{const u=g.resolveComponent("router-link");return g.openBlock(),g.createBlock(Au,g.mergeProps({elevated:""},e.$attrs),{default:g.withCtx(()=>[g.createVNode(ns,null,{default:g.withCtx(()=>[g.createVNode(u,{to:g.unref(m),class:"q-mr-lg"},{default:g.withCtx(()=>[g.createVNode(rs,{class:"logo",style:g.normalizeStyle(c.value),"data-testid":"header-logo"},{default:g.withCtx(()=>[g.createElementVNode("img",{src:e.logoSrc,alt:g.unref(v)},null,8,Eu)]),_:1},8,["style"])]),_:1},8,["to"]),g.createVNode(Cu),e.showProjectSwitch||a.value?(g.openBlock(),g.createElementBlock("div",Mu,[a.value?(g.openBlock(),g.createElementBlock("div",{key:0,class:g.normalizeClass(["environment-badge",s.value]),"data-testid":"environment-badge"},g.toDisplayString(e.environment),3)):g.createCommentVNode("",!0),e.showProjectSwitch?(g.openBlock(),g.createBlock(ot,{key:1,dense:"",unelevated:"",color:"primary",label:e.currentProjectLabel,"data-testid":"project-switch-btn",class:"project-switch-btn q-mr-md bg-info"},{default:g.withCtx(()=>[g.createVNode(on,{anchor:"bottom right",self:"top right"},{default:g.withCtx(()=>[g.createVNode(oo,{dense:"",class:"project-menu"},{default:g.withCtx(()=>[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(e.availableProjects,o=>g.withDirectives((g.openBlock(),g.createBlock(Ir,{key:o.path,clickable:"",disable:n(o.path),onClick:i=>e.$emit("project-change",o.path)},{default:g.withCtx(()=>[g.createVNode(Or,{class:"q-mr-lg"},{default:g.withCtx(()=>[g.createVNode(Ei,null,{default:g.withCtx(()=>[g.createTextVNode(g.toDisplayString(o.label),1)]),_:2},1024),n(o.path)?(g.openBlock(),g.createBlock(Ei,{key:0,caption:""},{default:g.withCtx(()=>r[0]||(r[0]=[g.createTextVNode(" Actuel ")])),_:1,__:[0]})):g.createCommentVNode("",!0)]),_:2},1024)]),_:2},1032,["disable","onClick"])),[[ao]])),128))]),_:1})]),_:1})]),_:1},8,["label"])):g.createCommentVNode("",!0)])):g.createCommentVNode("",!0),g.renderSlot(e.$slots,"user-avatar",{},void 0,!0)]),_:3})]),_:3},16)}}}),Ru=Yt(Tu,[["__scopeId","data-v-a4df46a4"]]),Bu=$e({name:"QFooter",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(l,{slots:I,emit:t}){const{proxy:{$q:v}}=g.getCurrentInstance(),m=g.inject(an,Rt);if(m===Rt)return console.error("QFooter needs to be child of QLayout"),Rt;const c=g.ref(parseInt(l.heightHint,10)),a=g.ref(!0),s=g.ref(cr.value===!0||m.isContainer.value===!0?0:window.innerHeight),n=g.computed(()=>l.reveal===!0||m.view.value.indexOf("F")!==-1||v.platform.is.ios&&m.isContainer.value===!0),e=g.computed(()=>m.isContainer.value===!0?m.containerHeight.value:s.value),r=g.computed(()=>{if(l.modelValue!==!0)return 0;if(n.value===!0)return a.value===!0?c.value:0;const T=m.scroll.value.position+e.value+c.value-m.height.value;return T>0?T:0}),u=g.computed(()=>l.modelValue!==!0||n.value===!0&&a.value!==!0),o=g.computed(()=>l.modelValue===!0&&u.value===!0&&l.reveal===!0),i=g.computed(()=>"q-footer q-layout__section--marginal "+(n.value===!0?"fixed":"absolute")+"-bottom"+(l.bordered===!0?" q-footer--bordered":"")+(u.value===!0?" q-footer--hidden":"")+(l.modelValue!==!0?" q-layout--prevent-focus"+(n.value!==!0?" hidden":""):"")),d=g.computed(()=>{const T=m.rows.value.bottom,D={};return T[0]==="l"&&m.left.space===!0&&(D[v.lang.rtl===!0?"right":"left"]=`${m.left.size}px`),T[2]==="r"&&m.right.space===!0&&(D[v.lang.rtl===!0?"left":"right"]=`${m.right.size}px`),D});function h(T,D){m.update("footer",T,D)}function f(T,D){T.value!==D&&(T.value=D)}function b({height:T}){f(c,T),h("size",T)}function p(){if(l.reveal!==!0)return;const{direction:T,position:D,inflectionPoint:z}=m.scroll.value;f(a,T==="up"||D-z<100||m.height.value-e.value-D-c.value<300)}function S(T){o.value===!0&&f(a,!0),t("focusin",T)}g.watch(()=>l.modelValue,T=>{h("space",T),f(a,!0),m.animate()}),g.watch(r,T=>{h("offset",T)}),g.watch(()=>l.reveal,T=>{T===!1&&f(a,l.modelValue)}),g.watch(a,T=>{m.animate(),t("reveal",T)}),g.watch([c,m.scroll,m.height],p),g.watch(()=>v.screen.height,T=>{m.isContainer.value!==!0&&f(s,T)});const _={};return m.instances.footer=_,l.modelValue===!0&&h("size",c.value),h("space",l.modelValue),h("offset",r.value),g.onBeforeUnmount(()=>{m.instances.footer===_&&(m.instances.footer=void 0,h("size",0),h("offset",0),h("space",!1))}),()=>{const T=It(I.default,[g.h(Pr,{debounce:0,onResize:b})]);return l.elevated===!0&&T.push(g.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),g.h("footer",{class:i.value,style:d.value,onFocusin:S},T)}}}),Iu={class:"row justify-between"},Ou={class:"col-3 q-py-md flex justify-center"},Fu={class:"col-3 q-py-md flex justify-center"},ju={class:"col-3 q-py-md flex justify-center"},Du=g.defineComponent({__name:"SelfeeFooter",props:{frontVersion:{},backVersion:{},platform:{}},setup(l){return(I,t)=>(g.openBlock(),g.createBlock(Bu,g.mergeProps({elevated:""},I.$attrs),{default:g.withCtx(()=>[g.createElementVNode("div",Iu,[g.createElementVNode("div",Ou," Front: "+g.toDisplayString(I.frontVersion),1),g.createElementVNode("div",Fu," Back: "+g.toDisplayString(I.backVersion),1),g.createElementVNode("div",ju," Platform: "+g.toDisplayString(I.platform),1)])]),_:1},16))}}),Pu={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},hi={xs:2,sm:4,md:8,lg:16,xl:24},Gr=$e({name:"QSeparator",props:{...Ot,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(l){const I=g.getCurrentInstance(),t=Ft(l,I.proxy.$q),v=g.computed(()=>l.vertical===!0?"vertical":"horizontal"),m=g.computed(()=>` q-separator--${v.value}`),c=g.computed(()=>l.inset!==!1?`${m.value}-${Pu[l.inset]}`:""),a=g.computed(()=>`q-separator${m.value}${c.value}`+(l.color!==void 0?` bg-${l.color}`:"")+(t.value===!0?" q-separator--dark":"")),s=g.computed(()=>{const n={};if(l.size!==void 0&&(n[l.vertical===!0?"width":"height"]=l.size),l.spaced!==!1){const e=l.spaced===!0?`${hi.md}px`:l.spaced in hi?`${hi[l.spaced]}px`:l.spaced,r=l.vertical===!0?["Left","Right"]:["Top","Bottom"];n[`margin${r[0]}`]=n[`margin${r[1]}`]=e}return n});return()=>g.h("hr",{class:a.value,style:s.value,"aria-orientation":v.value})}}),Nu=$e({name:"QToggle",props:{...Ta,icon:String,iconColor:String},emits:Ra,setup(l){function I(t,v){const m=g.computed(()=>(t.value===!0?l.checkedIcon:v.value===!0?l.indeterminateIcon:l.uncheckedIcon)||l.icon),c=g.computed(()=>t.value===!0?l.iconColor:null);return()=>[g.h("div",{class:"q-toggle__track"}),g.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},m.value!==void 0?[g.h(vt,{name:m.value,color:c.value})]:void 0)]}return Ba("toggle",I)}}),Lu={class:"text-h6 text-primary","data-testid":"avatar-initial"},Vu={class:"text-weight-bold"},qu={class:"row items-center q-gutter-sm"},zu={class:"version-info"},Uu={class:"text-caption"},Wu={class:"text-caption"},Hu={class:"text-caption"},Yu=g.defineComponent({__name:"UserAvatar",props:{username:{},onLogout:{},logoutLabel:{default:"Déconnexion"},frontVersion:{default:"N/A"},backVersion:{default:"N/A"},platform:{default:"N/A"},showVersionInfo:{type:Boolean,default:!0},showFilterToggle:{type:Boolean,default:!1},persistFilters:{type:Boolean,default:!1}},emits:["toggle-filter-persistence"],setup(l,{emit:I}){const t=l,v=g.computed(()=>t.username?.charAt(0).toUpperCase()??"");return(m,c)=>(g.openBlock(),g.createElementBlock("div",null,[g.createVNode(rs,{class:"cursor-pointer",size:"40px",color:"white","data-cy":"cy-avatar","data-testid":"cy-avatar"},{default:g.withCtx(()=>[g.createElementVNode("span",Lu,g.toDisplayString(v.value),1),g.createVNode(on,{"transition-show":"flip-right","transition-hide":"flip-left",class:"user-avatar-menu"},{default:g.withCtx(()=>[g.createVNode(oo,{class:"user-menu-list"},{default:g.withCtx(()=>[g.createVNode(Ir,{class:"user-info-section"},{default:g.withCtx(()=>[g.createVNode(Or,null,{default:g.withCtx(()=>[g.createElementVNode("div",Vu,g.toDisplayString(m.username),1)]),_:1})]),_:1}),g.createVNode(Gr),m.showFilterToggle?(g.openBlock(),g.createBlock(Ir,{key:0,class:"filter-toggle-section"},{default:g.withCtx(()=>[g.createVNode(Or,null,{default:g.withCtx(()=>[g.createElementVNode("div",qu,[c[1]||(c[1]=g.createElementVNode("span",{class:"text-caption"},"Filtres persistants",-1)),g.createVNode(Nu,{"model-value":m.persistFilters,"onUpdate:modelValue":c[0]||(c[0]=a=>m.$emit("toggle-filter-persistence",a)),size:"sm","data-cy":"filter-persistence-toggle"},null,8,["model-value"])])]),_:1})]),_:1})):g.createCommentVNode("",!0),m.showFilterToggle?(g.openBlock(),g.createBlock(Gr,{key:1})):g.createCommentVNode("",!0),m.showVersionInfo?(g.openBlock(),g.createBlock(Ir,{key:2,class:"version-info-section"},{default:g.withCtx(()=>[g.createVNode(Or,null,{default:g.withCtx(()=>[g.createElementVNode("div",zu,[c[2]||(c[2]=g.createElementVNode("div",{class:"text-caption text-grey-7"},"Informations de version",-1)),g.createElementVNode("div",Uu,"Front: "+g.toDisplayString(m.frontVersion),1),g.createElementVNode("div",Wu,"Back: "+g.toDisplayString(m.backVersion),1),g.createElementVNode("div",Hu,"Plateforme: "+g.toDisplayString(m.platform),1)])]),_:1})]),_:1})):g.createCommentVNode("",!0),m.showVersionInfo?(g.openBlock(),g.createBlock(Gr,{key:3})):g.createCommentVNode("",!0),g.createVNode(Ir,{clickable:"",class:"logout-section","data-cy":"cy-logout-button","data-testid":"cy-logout-button",onClick:m.onLogout},{default:g.withCtx(()=>[g.createVNode(Or,null,{default:g.withCtx(()=>[g.createElementVNode("div",null,g.toDisplayString(m.logoutLabel),1)]),_:1})]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]))}}),Qu=Yt(Yu,[["__scopeId","data-v-d9b256cf"]]),Ku=$e({name:"QPageContainer",setup(l,{slots:I}){const{proxy:{$q:t}}=g.getCurrentInstance(),v=g.inject(an,Rt);if(v===Rt)return console.error("QPageContainer needs to be child of QLayout"),Rt;g.provide(Ka,!0);const m=g.computed(()=>{const c={};return v.header.space===!0&&(c.paddingTop=`${v.header.size}px`),v.right.space===!0&&(c[`padding${t.lang.rtl===!0?"Left":"Right"}`]=`${v.right.size}px`),v.footer.space===!0&&(c.paddingBottom=`${v.footer.size}px`),v.left.space===!0&&(c[`padding${t.lang.rtl===!0?"Right":"Left"}`]=`${v.left.size}px`),c});return()=>g.h("div",{class:"q-page-container",style:m.value},gt(I.default))}}),Xu=$e({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:l=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(l.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(l,{slots:I,emit:t}){const{proxy:{$q:v}}=g.getCurrentInstance(),m=g.ref(null),c=g.ref(v.screen.height),a=g.ref(l.container===!0?0:v.screen.width),s=g.ref({position:0,direction:"down",inflectionPoint:0}),n=g.ref(0),e=g.ref(cr.value===!0?0:Mn()),r=g.computed(()=>"q-layout q-layout--"+(l.container===!0?"containerized":"standard")),u=g.computed(()=>l.container===!1?{minHeight:v.screen.height+"px"}:null),o=g.computed(()=>e.value!==0?{[v.lang.rtl===!0?"left":"right"]:`${e.value}px`}:null),i=g.computed(()=>e.value!==0?{[v.lang.rtl===!0?"right":"left"]:0,[v.lang.rtl===!0?"left":"right"]:`-${e.value}px`,width:`calc(100% + ${e.value}px)`}:null);function d(_){if(l.container===!0||document.qScrollPrevented!==!0){const T={position:_.position.top,direction:_.direction,directionChanged:_.directionChanged,inflectionPoint:_.inflectionPoint.top,delta:_.delta.top};s.value=T,l.onScroll!==void 0&&t("scroll",T)}}function h(_){const{height:T,width:D}=_;let z=!1;c.value!==T&&(z=!0,c.value=T,l.onScrollHeight!==void 0&&t("scrollHeight",T),b()),a.value!==D&&(z=!0,a.value=D),z===!0&&l.onResize!==void 0&&t("resize",_)}function f({height:_}){n.value!==_&&(n.value=_,b())}function b(){if(l.container===!0){const _=c.value>n.value?Mn():0;e.value!==_&&(e.value=_)}}let p=null;const S={instances:{},view:g.computed(()=>l.view),isContainer:g.computed(()=>l.container),rootRef:m,height:c,containerHeight:n,scrollbarWidth:e,totalWidth:g.computed(()=>a.value+e.value),rows:g.computed(()=>{const _=l.view.toLowerCase().split(" ");return{top:_[0].split(""),middle:_[1].split(""),bottom:_[2].split("")}}),header:g.reactive({size:0,offset:0,space:!1}),right:g.reactive({size:300,offset:0,space:!1}),footer:g.reactive({size:0,offset:0,space:!1}),left:g.reactive({size:300,offset:0,space:!1}),scroll:s,animate(){p!==null?clearTimeout(p):document.body.classList.add("q-body--layout-animate"),p=setTimeout(()=>{p=null,document.body.classList.remove("q-body--layout-animate")},155)},update(_,T,D){S[_][T]=D}};if(g.provide(an,S),Mn()>0){let _=function(){z=null,P.classList.remove("hide-scrollbar")},T=function(){if(z===null){if(P.scrollHeight>v.screen.height)return;P.classList.add("hide-scrollbar")}else clearTimeout(z);z=setTimeout(_,300)},D=function(N){z!==null&&N==="remove"&&(clearTimeout(z),_()),window[`${N}EventListener`]("resize",T)},z=null;const P=document.body;g.watch(()=>l.container!==!0?"add":"remove",D),l.container!==!0&&D("add"),g.onUnmounted(()=>{D("remove")})}return()=>{const _=It(I.default,[g.h(Da,{onScroll:d}),g.h(Pr,{onResize:h})]),T=g.h("div",{class:r.value,style:u.value,ref:l.container===!0?void 0:m,tabindex:-1},_);return l.container===!0?g.h("div",{class:"q-layout-container overflow-hidden",ref:m},[g.h(Pr,{onResize:f}),g.h("div",{class:"absolute-full",style:o.value},[g.h("div",{class:"scroll",style:i.value},[T])])]):T}}}),so=g.defineComponent({name:"Layout",__name:"Layout",props:{view:{default:"HHh Lpr Fff"},layoutClass:{default:"bg-white"},pageContainerClass:{default:""}},setup(l){return(I,t)=>(g.openBlock(),g.createBlock(Xu,{view:I.view,class:g.normalizeClass(I.layoutClass),style:{minHeight:"auto !important"}},{default:g.withCtx(()=>[g.renderSlot(I.$slots,"header"),g.createVNode(Ku,{class:g.normalizeClass(I.pageContainerClass),style:{paddingBottom:"0 !important"}},{default:g.withCtx(()=>[g.renderSlot(I.$slots,"default")]),_:3},8,["class"]),g.renderSlot(I.$slots,"footer")]),_:3},8,["view","class"]))}});function Gu(){let l=Object.create(null);return{getCache:(I,t)=>l[I]===void 0?l[I]=typeof t=="function"?t():t:l[I],setCache(I,t){l[I]=t},hasCache(I){return Object.hasOwnProperty.call(l,I)},clearCache(I){I!==void 0?delete l[I]:l=Object.create(null)}}}const or=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178];function Ju(l,I,t){return Object.prototype.toString.call(l)==="[object Date]"&&(t=l.getDate(),I=l.getMonth()+1,l=l.getFullYear()),tc(lo(l,I,t))}function ra(l,I,t){return os(ec(l,I,t))}function Zu(l){return $u(l)===0}function Tn(l,I){return I<=6?31:I<=11||Zu(l)?30:29}function $u(l){const I=or.length;let t=or[0],v,m,c,a,s;if(l<t||l>=or[I-1])throw new Error("Invalid Jalaali year "+l);for(s=1;s<I&&(v=or[s],m=v-t,!(l<v));s+=1)t=v;return a=l-t,m-a<6&&(a=a-m+wt(m+4,33)*33),c=Pt(Pt(a+1,33)-1,4),c===-1&&(c=4),c}function is(l,I){const t=or.length,v=l+621;let m=-14,c=or[0],a,s,n,e,r;if(l<c||l>=or[t-1])throw new Error("Invalid Jalaali year "+l);for(r=1;r<t&&(a=or[r],s=a-c,!(l<a));r+=1)m=m+wt(s,33)*8+wt(Pt(s,33),4),c=a;e=l-c,m=m+wt(e,33)*8+wt(Pt(e,33)+3,4),Pt(s,33)===4&&s-e===4&&(m+=1);const u=wt(v,4)-wt((wt(v,100)+1)*3,4)-150,o=20+m-u;return I||(s-e<6&&(e=e-s+wt(s+4,33)*33),n=Pt(Pt(e+1,33)-1,4),n===-1&&(n=4)),{leap:n,gy:v,march:o}}function ec(l,I,t){const v=is(l,!0);return lo(v.gy,3,v.march)+(I-1)*31-wt(I,7)*(I-7)+t-1}function tc(l){const I=os(l).gy;let t=I-621,v,m,c;const a=is(t,!1),s=lo(I,3,a.march);if(c=l-s,c>=0){if(c<=185)return m=1+wt(c,31),v=Pt(c,31)+1,{jy:t,jm:m,jd:v};c-=186}else t-=1,c+=179,a.leap===1&&(c+=1);return m=7+wt(c,30),v=Pt(c,30)+1,{jy:t,jm:m,jd:v}}function lo(l,I,t){let v=wt((l+wt(I-8,6)+100100)*1461,4)+wt(153*Pt(I+9,12)+2,5)+t-34840408;return v=v-wt(wt(l+100100+wt(I-8,6),100)*3,4)+752,v}function os(l){let I=4*l+139361631;I=I+wt(wt(4*l+183187720,146097)*3,4)*4-3908;const t=wt(Pt(I,1461),4)*5+308,v=wt(Pt(t,153),5)+1,m=Pt(wt(t,153),12)+1;return{gy:wt(I,1461)-100100+wt(8-m,6),gm:m,gd:v}}function wt(l,I){return~~(l/I)}function Pt(l,I){return l-~~(l/I)*I}const rc=["gregorian","persian"],na={mask:{type:String},locale:Object,calendar:{type:String,validator:l=>rc.includes(l),default:"gregorian"},landscape:Boolean,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,readonly:Boolean,disable:Boolean},nc=["update:modelValue"];function tr(l){return l.year+"/"+bt(l.month)+"/"+bt(l.day)}function ic(l,I){const t=g.computed(()=>l.disable!==!0&&l.readonly!==!0),v=g.computed(()=>t.value===!0?0:-1),m=g.computed(()=>{const s=[];return l.color!==void 0&&s.push(`bg-${l.color}`),l.textColor!==void 0&&s.push(`text-${l.textColor}`),s.join(" ")});function c(){return l.locale!==void 0?{...I.lang.date,...l.locale}:I.lang.date}function a(s){const n=new Date,e=s===!0?null:0;if(l.calendar==="persian"){const r=Ju(n);return{year:r.jy,month:r.jm,day:r.jd}}return{year:n.getFullYear(),month:n.getMonth()+1,day:n.getDate(),hour:e,minute:e,second:e,millisecond:e}}return{editable:t,tabindex:v,headerClass:m,getLocale:c,getCurrentDate:a}}const Ri={isoName:"en-US",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh",expand:l=>l?`Expand "${l}"`:"Expand",collapse:l=>l?`Collapse "${l}"`:"Collapse"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1,pluralDay:"days",prevMonth:"Previous month",nextMonth:"Next month",prevYear:"Previous year",nextYear:"Next year",today:"Today",prevRangeYears:l=>`Previous ${l} years`,nextRangeYears:l=>`Next ${l} years`},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:l=>l===1?"1 record selected.":(l===0?"No":l)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(l,I,t)=>l+"-"+I+" of "+t,columns:"Columns"},pagination:{first:"First page",prev:"Previous page",next:"Next page",last:"Last page"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font",viewSource:"View Source"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}};function ia(){const l=Array.isArray(navigator.languages)===!0&&navigator.languages.length!==0?navigator.languages[0]:navigator.language;if(typeof l=="string")return l.split(/[-_]/).map((I,t)=>t===0?I.toLowerCase():t>1||I.length<4?I.toUpperCase():I[0].toUpperCase()+I.slice(1).toLowerCase()).join("-")}const nr=Is({__qLang:{}},{getLocale:ia,set(l=Ri,I){const t={...l,rtl:l.rtl===!0,getLocale:ia};{if(t.set=nr.set,nr.__langConfig===void 0||nr.__langConfig.noHtmlAttrs!==!0){const v=document.documentElement;v.setAttribute("dir",t.rtl===!0?"rtl":"ltr"),v.setAttribute("lang",t.isoName)}Object.assign(nr.__qLang,t)}},install({$q:l,lang:I,ssrContext:t}){l.lang=nr.__qLang,nr.__langConfig=l.config.lang,this.__installed===!0?I!==void 0&&this.set(I):(this.props=new Proxy(this.__qLang,{get(){return Reflect.get(...arguments)},ownKeys(v){return Reflect.ownKeys(v).filter(m=>m!=="set"&&m!=="getLocale")}}),this.set(I||Ri))}}),as=864e5,oc=36e5,Bi=6e4,ss="YYYY-MM-DDTHH:mm:ss.SSSZ",ac=/\[((?:[^\]\\]|\\]|\\)*)\]|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]/g,sc=/(\[[^\]]*\])|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]|([.*+:?^,\s${}()|\\]+)/g,pi={};function lc(l,I){const t="("+I.days.join("|")+")",v=l+t;if(pi[v]!==void 0)return pi[v];const m="("+I.daysShort.join("|")+")",c="("+I.months.join("|")+")",a="("+I.monthsShort.join("|")+")",s={};let n=0;const e=l.replace(sc,u=>{switch(n++,u){case"YY":return s.YY=n,"(-?\\d{1,2})";case"YYYY":return s.YYYY=n,"(-?\\d{1,4})";case"M":return s.M=n,"(\\d{1,2})";case"Mo":return s.M=n++,"(\\d{1,2}(st|nd|rd|th))";case"MM":return s.M=n,"(\\d{2})";case"MMM":return s.MMM=n,a;case"MMMM":return s.MMMM=n,c;case"D":return s.D=n,"(\\d{1,2})";case"Do":return s.D=n++,"(\\d{1,2}(st|nd|rd|th))";case"DD":return s.D=n,"(\\d{2})";case"H":return s.H=n,"(\\d{1,2})";case"HH":return s.H=n,"(\\d{2})";case"h":return s.h=n,"(\\d{1,2})";case"hh":return s.h=n,"(\\d{2})";case"m":return s.m=n,"(\\d{1,2})";case"mm":return s.m=n,"(\\d{2})";case"s":return s.s=n,"(\\d{1,2})";case"ss":return s.s=n,"(\\d{2})";case"S":return s.S=n,"(\\d{1})";case"SS":return s.S=n,"(\\d{2})";case"SSS":return s.S=n,"(\\d{3})";case"A":return s.A=n,"(AM|PM)";case"a":return s.a=n,"(am|pm)";case"aa":return s.aa=n,"(a\\.m\\.|p\\.m\\.)";case"ddd":return m;case"dddd":return t;case"Q":case"d":case"E":return"(\\d{1})";case"do":return n++,"(\\d{1}(st|nd|rd|th))";case"Qo":return"(1st|2nd|3rd|4th)";case"DDD":case"DDDD":return"(\\d{1,3})";case"DDDo":return n++,"(\\d{1,3}(st|nd|rd|th))";case"w":return"(\\d{1,2})";case"wo":return n++,"(\\d{1,2}(st|nd|rd|th))";case"ww":return"(\\d{2})";case"Z":return s.Z=n,"(Z|[+-]\\d{2}:\\d{2})";case"ZZ":return s.ZZ=n,"(Z|[+-]\\d{2}\\d{2})";case"X":return s.X=n,"(-?\\d+)";case"x":return s.x=n,"(-?\\d{4,})";default:return n--,u[0]==="["&&(u=u.substring(1,u.length-1)),u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}),r={map:s,regex:new RegExp("^"+e)};return pi[v]=r,r}function ls(l,I){return l!==void 0?l:I!==void 0?I.date:Ri.date}function oa(l,I=""){const t=l>0?"-":"+",v=Math.abs(l),m=Math.floor(v/60),c=v%60;return t+bt(m)+I+bt(c)}function uc(l,I,t){let v=l.getFullYear(),m=l.getMonth();const c=l.getDate();return I.year!==void 0&&(v+=t*I.year,delete I.year),I.month!==void 0&&(m+=t*I.month,delete I.month),l.setDate(1),l.setMonth(2),l.setFullYear(v),l.setMonth(m),l.setDate(Math.min(c,fo(l))),I.date!==void 0&&(l.setDate(l.getDate()+t*I.date),delete I.date),l}function cc(l,I,t){const v=I.year!==void 0?I.year:l[`get${t}FullYear`](),m=I.month!==void 0?I.month-1:l[`get${t}Month`](),c=new Date(v,m+1,0).getDate(),a=Math.min(c,I.date!==void 0?I.date:l[`get${t}Date`]());return l[`set${t}Date`](1),l[`set${t}Month`](2),l[`set${t}FullYear`](v),l[`set${t}Month`](m),l[`set${t}Date`](a),delete I.year,delete I.month,delete I.date,l}function uo(l,I,t){const v=us(I),m=new Date(l),c=v.year!==void 0||v.month!==void 0||v.date!==void 0?uc(m,v,t):m;for(const a in v){const s=Tl(a);c[`set${s}`](c[`get${s}`]()+t*v[a])}return c}function us(l){const I={...l};return l.years!==void 0&&(I.year=l.years,delete I.years),l.months!==void 0&&(I.month=l.months,delete I.months),l.days!==void 0&&(I.date=l.days,delete I.days),l.day!==void 0&&(I.date=l.day,delete I.day),l.hour!==void 0&&(I.hours=l.hour,delete I.hour),l.minute!==void 0&&(I.minutes=l.minute,delete I.minute),l.second!==void 0&&(I.seconds=l.second,delete I.second),l.millisecond!==void 0&&(I.milliseconds=l.millisecond,delete I.millisecond),I}function cs(l,I,t){const v=us(I),m=t===!0?"UTC":"",c=new Date(l),a=v.year!==void 0||v.month!==void 0||v.date!==void 0?cc(c,v,m):c;for(const s in v){const n=s.charAt(0).toUpperCase()+s.slice(1);a[`set${m}${n}`](v[s])}return a}function fc(l,I,t){const v=fs(l,I,t),m=new Date(v.year,v.month===null?null:v.month-1,v.day===null?1:v.day,v.hour,v.minute,v.second,v.millisecond),c=m.getTimezoneOffset();return v.timezoneOffset===null||v.timezoneOffset===c?m:uo(m,{minutes:v.timezoneOffset-c},1)}function fs(l,I,t,v,m){const c={year:null,month:null,day:null,hour:null,minute:null,second:null,millisecond:null,timezoneOffset:null,dateHash:null,timeHash:null};if(m!==void 0&&Object.assign(c,m),l==null||l===""||typeof l!="string")return c;I===void 0&&(I=ss);const a=ls(t,nr.props),s=a.months,n=a.monthsShort,{regex:e,map:r}=lc(I,a),u=l.match(e);if(u===null)return c;let o="";if(r.X!==void 0||r.x!==void 0){const i=parseInt(u[r.X!==void 0?r.X:r.x],10);if(isNaN(i)===!0||i<0)return c;const d=new Date(i*(r.X!==void 0?1e3:1));c.year=d.getFullYear(),c.month=d.getMonth()+1,c.day=d.getDate(),c.hour=d.getHours(),c.minute=d.getMinutes(),c.second=d.getSeconds(),c.millisecond=d.getMilliseconds()}else{if(r.YYYY!==void 0)c.year=parseInt(u[r.YYYY],10);else if(r.YY!==void 0){const i=parseInt(u[r.YY],10);c.year=i<0?i:2e3+i}if(r.M!==void 0){if(c.month=parseInt(u[r.M],10),c.month<1||c.month>12)return c}else r.MMM!==void 0?c.month=n.indexOf(u[r.MMM])+1:r.MMMM!==void 0&&(c.month=s.indexOf(u[r.MMMM])+1);if(r.D!==void 0){if(c.day=parseInt(u[r.D],10),c.year===null||c.month===null||c.day<1)return c;const i=v!=="persian"?new Date(c.year,c.month,0).getDate():Tn(c.year,c.month);if(c.day>i)return c}r.H!==void 0?c.hour=parseInt(u[r.H],10)%24:r.h!==void 0&&(c.hour=parseInt(u[r.h],10)%12,(r.A&&u[r.A]==="PM"||r.a&&u[r.a]==="pm"||r.aa&&u[r.aa]==="p.m.")&&(c.hour+=12),c.hour=c.hour%24),r.m!==void 0&&(c.minute=parseInt(u[r.m],10)%60),r.s!==void 0&&(c.second=parseInt(u[r.s],10)%60),r.S!==void 0&&(c.millisecond=parseInt(u[r.S],10)*10**(3-u[r.S].length)),(r.Z!==void 0||r.ZZ!==void 0)&&(o=r.Z!==void 0?u[r.Z].replace(":",""):u[r.ZZ],c.timezoneOffset=(o[0]==="+"?-1:1)*(60*o.slice(1,3)+1*o.slice(3,5)))}return c.dateHash=bt(c.year,4)+"/"+bt(c.month)+"/"+bt(c.day),c.timeHash=bt(c.hour)+":"+bt(c.minute)+":"+bt(c.second)+o,c}function dc(l){return typeof l=="number"?!0:isNaN(Date.parse(l))===!1}function hc(l,I){return cs(new Date,l,I)}function pc(l){const I=new Date(l).getDay();return I===0?7:I}function Rn(l){const I=new Date(l.getFullYear(),l.getMonth(),l.getDate());I.setDate(I.getDate()-(I.getDay()+6)%7+3);const t=new Date(I.getFullYear(),0,4);t.setDate(t.getDate()-(t.getDay()+6)%7+3);const v=I.getTimezoneOffset()-t.getTimezoneOffset();I.setHours(I.getHours()-v);const m=(I-t)/(as*7);return 1+Math.floor(m)}function mc(l){return l.getFullYear()*1e4+l.getMonth()*100+l.getDate()}function mi(l,I){const t=new Date(l);return I===!0?mc(t):t.getTime()}function gc(l,I,t,v={}){const m=mi(I,v.onlyDate),c=mi(t,v.onlyDate),a=mi(l,v.onlyDate);return(a>m||v.inclusiveFrom===!0&&a===m)&&(a<c||v.inclusiveTo===!0&&a===c)}function bc(l,I){return uo(l,I,1)}function vc(l,I){return uo(l,I,-1)}function Ht(l,I,t){const v=new Date(l),m=`set${t===!0?"UTC":""}`;switch(I){case"year":case"years":v[`${m}Month`](0);case"month":case"months":v[`${m}Date`](1);case"day":case"days":case"date":v[`${m}Hours`](0);case"hour":case"hours":v[`${m}Minutes`](0);case"minute":case"minutes":v[`${m}Seconds`](0);case"second":case"seconds":v[`${m}Milliseconds`](0)}return v}function yc(l,I,t){const v=new Date(l),m=`set${t===!0?"UTC":""}`;switch(I){case"year":case"years":v[`${m}Month`](11);case"month":case"months":v[`${m}Date`](fo(v));case"day":case"days":case"date":v[`${m}Hours`](23);case"hour":case"hours":v[`${m}Minutes`](59);case"minute":case"minutes":v[`${m}Seconds`](59);case"second":case"seconds":v[`${m}Milliseconds`](999)}return v}function wc(l){let I=new Date(l);return Array.prototype.slice.call(arguments,1).forEach(t=>{I=Math.max(I,new Date(t))}),I}function xc(l){let I=new Date(l);return Array.prototype.slice.call(arguments,1).forEach(t=>{I=Math.min(I,new Date(t))}),I}function wn(l,I,t){return(l.getTime()-l.getTimezoneOffset()*Bi-(I.getTime()-I.getTimezoneOffset()*Bi))/t}function co(l,I,t="days"){const v=new Date(l),m=new Date(I);switch(t){case"years":case"year":return v.getFullYear()-m.getFullYear();case"months":case"month":return(v.getFullYear()-m.getFullYear())*12+v.getMonth()-m.getMonth();case"days":case"day":case"date":return wn(Ht(v,"day"),Ht(m,"day"),as);case"hours":case"hour":return wn(Ht(v,"hour"),Ht(m,"hour"),oc);case"minutes":case"minute":return wn(Ht(v,"minute"),Ht(m,"minute"),Bi);case"seconds":case"second":return wn(Ht(v,"second"),Ht(m,"second"),1e3)}}function Bn(l){return co(l,Ht(l,"year"),"days")+1}function Sc(l){return Vn(l)===!0?"date":typeof l=="number"?"number":"string"}function kc(l,I,t){const v=new Date(l);if(I){const m=new Date(I);if(v<m)return m}if(t){const m=new Date(t);if(v>m)return m}return v}function Cc(l,I,t){const v=new Date(l),m=new Date(I);if(t===void 0)return v.getTime()===m.getTime();switch(t){case"second":case"seconds":if(v.getSeconds()!==m.getSeconds())return!1;case"minute":case"minutes":if(v.getMinutes()!==m.getMinutes())return!1;case"hour":case"hours":if(v.getHours()!==m.getHours())return!1;case"day":case"days":case"date":if(v.getDate()!==m.getDate())return!1;case"month":case"months":if(v.getMonth()!==m.getMonth())return!1;case"year":case"years":if(v.getFullYear()!==m.getFullYear())return!1;break;default:throw new Error(`date isSameDate unknown unit ${t}`)}return!0}function fo(l){return new Date(l.getFullYear(),l.getMonth()+1,0).getDate()}function Mr(l){if(l>=11&&l<=13)return`${l}th`;switch(l%10){case 1:return`${l}st`;case 2:return`${l}nd`;case 3:return`${l}rd`}return`${l}th`}const aa={YY(l,I,t){const v=this.YYYY(l,I,t)%100;return v>=0?bt(v):"-"+bt(Math.abs(v))},YYYY(l,I,t){return t??l.getFullYear()},M(l){return l.getMonth()+1},Mo(l){return Mr(l.getMonth()+1)},MM(l){return bt(l.getMonth()+1)},MMM(l,I){return I.monthsShort[l.getMonth()]},MMMM(l,I){return I.months[l.getMonth()]},Q(l){return Math.ceil((l.getMonth()+1)/3)},Qo(l){return Mr(this.Q(l))},D(l){return l.getDate()},Do(l){return Mr(l.getDate())},DD(l){return bt(l.getDate())},DDD(l){return Bn(l)},DDDo(l){return Mr(Bn(l))},DDDD(l){return bt(Bn(l),3)},d(l){return l.getDay()},do(l){return Mr(l.getDay())},dd(l,I){return I.days[l.getDay()].slice(0,2)},ddd(l,I){return I.daysShort[l.getDay()]},dddd(l,I){return I.days[l.getDay()]},E(l){return l.getDay()||7},w(l){return Rn(l)},wo(l){return Mr(Rn(l))},ww(l){return bt(Rn(l))},H(l){return l.getHours()},HH(l){return bt(l.getHours())},h(l){const I=l.getHours();return I===0?12:I>12?I%12:I},hh(l){return bt(this.h(l))},m(l){return l.getMinutes()},mm(l){return bt(l.getMinutes())},s(l){return l.getSeconds()},ss(l){return bt(l.getSeconds())},S(l){return Math.floor(l.getMilliseconds()/100)},SS(l){return bt(Math.floor(l.getMilliseconds()/10))},SSS(l){return bt(l.getMilliseconds(),3)},A(l){return l.getHours()<12?"AM":"PM"},a(l){return l.getHours()<12?"am":"pm"},aa(l){return l.getHours()<12?"a.m.":"p.m."},Z(l,I,t,v){const m=v??l.getTimezoneOffset();return oa(m,":")},ZZ(l,I,t,v){const m=v??l.getTimezoneOffset();return oa(m)},X(l){return Math.floor(l.getTime()/1e3)},x(l){return l.getTime()}};function ds(l,I,t,v,m){if(l!==0&&!l||l===1/0||l===-1/0)return;const c=new Date(l);if(isNaN(c))return;I===void 0&&(I=ss);const a=ls(t,nr.props);return I.replace(ac,(s,n)=>s in aa?aa[s](c,a,v,m):n===void 0?s:n.split("\\]").join("]"))}function _c(l){return Vn(l)===!0?new Date(l.getTime()):l}const hs={isValid:dc,extractDate:fc,buildDate:hc,getDayOfWeek:pc,getWeekOfYear:Rn,isBetweenDates:gc,addToDate:bc,subtractFromDate:vc,adjustDate:cs,startOfDate:Ht,endOfDate:yc,getMaxDate:wc,getMinDate:xc,getDateDiff:co,getDayOfYear:Bn,inferDateFormat:Sc,getDateBetween:kc,isSameDate:Cc,daysInMonth:fo,formatDate:ds,clone:_c},Kt=20,Ac=["Calendar","Years","Months"],sa=l=>Ac.includes(l),gi=l=>/^-?[\d]+\/[0-1]\d$/.test(l),Tr=" — ";function rr(l){return l.year+"/"+bt(l.month)}const ps=$e({name:"QDate",props:{...na,...Yn,...Ot,modelValue:{required:!0,validator:l=>typeof l=="string"||Array.isArray(l)===!0||Object(l)===l||l===null},multiple:Boolean,range:Boolean,title:String,subtitle:String,mask:{...na.mask,default:"YYYY/MM/DD"},defaultYearMonth:{type:String,validator:gi},yearsInMonthView:Boolean,events:[Array,Function],eventColor:[String,Function],emitImmediately:Boolean,options:[Array,Function],navigationMinYearMonth:{type:String,validator:gi},navigationMaxYearMonth:{type:String,validator:gi},noUnset:Boolean,firstDayOfWeek:[String,Number],todayBtn:Boolean,minimal:Boolean,defaultView:{type:String,default:"Calendar",validator:sa}},emits:[...nc,"rangeStart","rangeEnd","navigation"],setup(l,{slots:I,emit:t}){const{proxy:v}=g.getCurrentInstance(),{$q:m}=v,c=Ft(l,m),{getCache:a}=Gu(),{tabindex:s,headerClass:n,getLocale:e,getCurrentDate:r}=ic(l,m);let u;const o=pl(l),i=Ea(o),d=g.ref(null),h=g.ref(We()),f=g.ref(e()),b=g.computed(()=>We()),p=g.computed(()=>e()),S=g.computed(()=>r()),_=g.ref(Ne(h.value,f.value)),T=g.ref(l.defaultView),D=g.computed(()=>m.lang.rtl===!0?"right":"left"),z=g.ref(D.value),P=g.ref(D.value),N=_.value.year,V=g.ref(N-N%Kt-(N<0?Kt:0)),W=g.ref(null),L=g.computed(()=>{const re=l.landscape===!0?"landscape":"portrait";return`q-date q-date--${re} q-date--${re}-${l.minimal===!0?"minimal":"standard"}`+(c.value===!0?" q-date--dark q-dark":"")+(l.bordered===!0?" q-date--bordered":"")+(l.square===!0?" q-date--square no-border-radius":"")+(l.flat===!0?" q-date--flat no-shadow":"")+(l.disable===!0?" disabled":l.readonly===!0?" q-date--readonly":"")}),A=g.computed(()=>l.color||"primary"),M=g.computed(()=>l.textColor||"white"),C=g.computed(()=>l.emitImmediately===!0&&l.multiple!==!0&&l.range!==!0),y=g.computed(()=>Array.isArray(l.modelValue)===!0?l.modelValue:l.modelValue!==null&&l.modelValue!==void 0?[l.modelValue]:[]),x=g.computed(()=>y.value.filter(re=>typeof re=="string").map(re=>Ve(re,h.value,f.value)).filter(re=>re.dateHash!==null&&re.day!==null&&re.month!==null&&re.year!==null)),w=g.computed(()=>{const re=G=>Ve(G,h.value,f.value);return y.value.filter(G=>ts(G)===!0&&G.from!==void 0&&G.to!==void 0).map(G=>({from:re(G.from),to:re(G.to)})).filter(G=>G.from.dateHash!==null&&G.to.dateHash!==null&&G.from.dateHash<G.to.dateHash)}),k=g.computed(()=>l.calendar!=="persian"?re=>new Date(re.year,re.month-1,re.day):re=>{const G=ra(re.year,re.month,re.day);return new Date(G.gy,G.gm-1,G.gd)}),E=g.computed(()=>l.calendar==="persian"?tr:(re,G,ne)=>ds(new Date(re.year,re.month-1,re.day,re.hour,re.minute,re.second,re.millisecond),G===void 0?h.value:G,ne===void 0?f.value:ne,re.year,re.timezoneOffset)),O=g.computed(()=>x.value.length+w.value.reduce((re,G)=>re+1+co(k.value(G.to),k.value(G.from)),0)),R=g.computed(()=>{if(l.title!==void 0&&l.title!==null&&l.title.length!==0)return l.title;if(W.value!==null){const ne=W.value.init,le=k.value(ne);return f.value.daysShort[le.getDay()]+", "+f.value.monthsShort[ne.month-1]+" "+ne.day+Tr+"?"}if(O.value===0)return Tr;if(O.value>1)return`${O.value} ${f.value.pluralDay}`;const re=x.value[0],G=k.value(re);return isNaN(G.valueOf())===!0?Tr:f.value.headerTitle!==void 0?f.value.headerTitle(G,re):f.value.daysShort[G.getDay()]+", "+f.value.monthsShort[re.month-1]+" "+re.day}),U=g.computed(()=>x.value.concat(w.value.map(G=>G.from)).sort((G,ne)=>G.year-ne.year||G.month-ne.month)[0]),q=g.computed(()=>x.value.concat(w.value.map(G=>G.to)).sort((G,ne)=>ne.year-G.year||ne.month-G.month)[0]),K=g.computed(()=>{if(l.subtitle!==void 0&&l.subtitle!==null&&l.subtitle.length!==0)return l.subtitle;if(O.value===0)return Tr;if(O.value>1){const re=U.value,G=q.value,ne=f.value.monthsShort;return ne[re.month-1]+(re.year!==G.year?" "+re.year+Tr+ne[G.month-1]+" ":re.month!==G.month?Tr+ne[G.month-1]:"")+" "+G.year}return x.value[0].year}),j=g.computed(()=>{const re=[m.iconSet.datetime.arrowLeft,m.iconSet.datetime.arrowRight];return m.lang.rtl===!0?re.reverse():re}),Y=g.computed(()=>l.firstDayOfWeek!==void 0?Number(l.firstDayOfWeek):f.value.firstDayOfWeek),F=g.computed(()=>{const re=f.value.daysShort,G=Y.value;return G>0?re.slice(G,7).concat(re.slice(0,G)):re}),B=g.computed(()=>{const re=_.value;return l.calendar!=="persian"?new Date(re.year,re.month,0).getDate():Tn(re.year,re.month)}),H=g.computed(()=>typeof l.eventColor=="function"?l.eventColor:()=>l.eventColor),X=g.computed(()=>{if(l.navigationMinYearMonth===void 0)return null;const re=l.navigationMinYearMonth.split("/");return{year:parseInt(re[0],10),month:parseInt(re[1],10)}}),ee=g.computed(()=>{if(l.navigationMaxYearMonth===void 0)return null;const re=l.navigationMaxYearMonth.split("/");return{year:parseInt(re[0],10),month:parseInt(re[1],10)}}),Q=g.computed(()=>{const re={month:{prev:!0,next:!0},year:{prev:!0,next:!0}};return X.value!==null&&X.value.year>=_.value.year&&(re.year.prev=!1,X.value.year===_.value.year&&X.value.month>=_.value.month&&(re.month.prev=!1)),ee.value!==null&&ee.value.year<=_.value.year&&(re.year.next=!1,ee.value.year===_.value.year&&ee.value.month<=_.value.month&&(re.month.next=!1)),re}),Z=g.computed(()=>{const re={};return x.value.forEach(G=>{const ne=rr(G);re[ne]===void 0&&(re[ne]=[]),re[ne].push(G.day)}),re}),te=g.computed(()=>{const re={};return w.value.forEach(G=>{const ne=rr(G.from),le=rr(G.to);if(re[ne]===void 0&&(re[ne]=[]),re[ne].push({from:G.from.day,to:ne===le?G.to.day:void 0,range:G}),ne<le){let pe;const{year:Ae,month:ge}=G.from,Ce=ge<12?{year:Ae,month:ge+1}:{year:Ae+1,month:1};for(;(pe=rr(Ce))<=le;)re[pe]===void 0&&(re[pe]=[]),re[pe].push({from:void 0,to:pe===le?G.to.day:void 0,range:G}),Ce.month++,Ce.month>12&&(Ce.year++,Ce.month=1)}}),re}),ie=g.computed(()=>{if(W.value===null)return;const{init:re,initHash:G,final:ne,finalHash:le}=W.value,[pe,Ae]=G<=le?[re,ne]:[ne,re],ge=rr(pe),Ce=rr(Ae);if(ge!==J.value&&Ce!==J.value)return;const Re={};return ge===J.value?(Re.from=pe.day,Re.includeFrom=!0):Re.from=1,Ce===J.value?(Re.to=Ae.day,Re.includeTo=!0):Re.to=B.value,Re}),J=g.computed(()=>rr(_.value)),oe=g.computed(()=>{const re={};if(l.options===void 0){for(let ne=1;ne<=B.value;ne++)re[ne]=!0;return re}const G=typeof l.options=="function"?l.options:ne=>l.options.includes(ne);for(let ne=1;ne<=B.value;ne++){const le=J.value+"/"+bt(ne);re[ne]=G(le)}return re}),ae=g.computed(()=>{const re={};if(l.events===void 0)for(let G=1;G<=B.value;G++)re[G]=!1;else{const G=typeof l.events=="function"?l.events:ne=>l.events.includes(ne);for(let ne=1;ne<=B.value;ne++){const le=J.value+"/"+bt(ne);re[ne]=G(le)===!0&&H.value(le)}}return re}),fe=g.computed(()=>{let re,G;const{year:ne,month:le}=_.value;if(l.calendar!=="persian")re=new Date(ne,le-1,1),G=new Date(ne,le-1,0).getDate();else{const pe=ra(ne,le,1);re=new Date(pe.gy,pe.gm-1,pe.gd);let Ae=le-1,ge=ne;Ae===0&&(Ae=12,ge--),G=Tn(ge,Ae)}return{days:re.getDay()-Y.value-1,endDay:G}}),ce=g.computed(()=>{const re=[],{days:G,endDay:ne}=fe.value,le=G<0?G+7:G;if(le<6)for(let ge=ne-le;ge<=ne;ge++)re.push({i:ge,fill:!0});const pe=re.length;for(let ge=1;ge<=B.value;ge++){const Ce={i:ge,event:ae.value[ge],classes:[]};oe.value[ge]===!0&&(Ce.in=!0,Ce.flat=!0),re.push(Ce)}if(Z.value[J.value]!==void 0&&Z.value[J.value].forEach(ge=>{const Ce=pe+ge-1;Object.assign(re[Ce],{selected:!0,unelevated:!0,flat:!1,color:A.value,textColor:M.value})}),te.value[J.value]!==void 0&&te.value[J.value].forEach(ge=>{if(ge.from!==void 0){const Ce=pe+ge.from-1,Re=pe+(ge.to||B.value)-1;for(let ze=Ce;ze<=Re;ze++)Object.assign(re[ze],{range:ge.range,unelevated:!0,color:A.value,textColor:M.value});Object.assign(re[Ce],{rangeFrom:!0,flat:!1}),ge.to!==void 0&&Object.assign(re[Re],{rangeTo:!0,flat:!1})}else if(ge.to!==void 0){const Ce=pe+ge.to-1;for(let Re=pe;Re<=Ce;Re++)Object.assign(re[Re],{range:ge.range,unelevated:!0,color:A.value,textColor:M.value});Object.assign(re[Ce],{flat:!1,rangeTo:!0})}else{const Ce=pe+B.value-1;for(let Re=pe;Re<=Ce;Re++)Object.assign(re[Re],{range:ge.range,unelevated:!0,color:A.value,textColor:M.value})}}),ie.value!==void 0){const ge=pe+ie.value.from-1,Ce=pe+ie.value.to-1;for(let Re=ge;Re<=Ce;Re++)re[Re].color=A.value,re[Re].editRange=!0;ie.value.includeFrom===!0&&(re[ge].editRangeFrom=!0),ie.value.includeTo===!0&&(re[Ce].editRangeTo=!0)}_.value.year===S.value.year&&_.value.month===S.value.month&&(re[pe+S.value.day-1].today=!0);const Ae=re.length%7;if(Ae>0){const ge=7-Ae;for(let Ce=1;Ce<=ge;Ce++)re.push({i:Ce,fill:!0})}return re.forEach(ge=>{let Ce="q-date__calendar-item ";ge.fill===!0?Ce+="q-date__calendar-item--fill":(Ce+=`q-date__calendar-item--${ge.in===!0?"in":"out"}`,ge.range!==void 0&&(Ce+=` q-date__range${ge.rangeTo===!0?"-to":ge.rangeFrom===!0?"-from":""}`),ge.editRange===!0&&(Ce+=` q-date__edit-range${ge.editRangeFrom===!0?"-from":""}${ge.editRangeTo===!0?"-to":""}`),(ge.range!==void 0||ge.editRange===!0)&&(Ce+=` text-${ge.color}`)),ge.classes=Ce}),re}),de=g.computed(()=>l.disable===!0?{"aria-disabled":"true"}:{});g.watch(()=>l.modelValue,re=>{if(u===JSON.stringify(re))u=0;else{const G=Ne(h.value,f.value);et(G.year,G.month,G)}}),g.watch(T,()=>{d.value!==null&&v.$el.contains(document.activeElement)===!0&&d.value.focus()}),g.watch(()=>_.value.year+"|"+_.value.month,()=>{t("navigation",{year:_.value.year,month:_.value.month})}),g.watch(b,re=>{we(re,f.value,"mask"),h.value=re}),g.watch(p,re=>{we(h.value,re,"locale"),f.value=re});function me(re){u=JSON.stringify(re)}function be(){const{year:re,month:G,day:ne}=S.value,le={..._.value,year:re,month:G,day:ne},pe=Z.value[rr(le)];(pe===void 0||pe.includes(le.day)===!1)&&st(le),Ee(le.year,le.month)}function xe(re){sa(re)===!0&&(T.value=re)}function Ie(re,G){["month","year"].includes(re)&&(re==="month"?Fe:ke)(G===!0?-1:1)}function Ee(re,G){T.value="Calendar",et(re,G)}function Me(re,G){if(l.range===!1||!re){W.value=null;return}const ne=Object.assign({..._.value},re),le=G!==void 0?Object.assign({..._.value},G):ne;W.value={init:ne,initHash:tr(ne),final:le,finalHash:tr(le)},Ee(ne.year,ne.month)}function We(){return l.calendar==="persian"?"YYYY/MM/DD":l.mask}function Ve(re,G,ne){return fs(re,G,ne,l.calendar,{hour:0,minute:0,second:0,millisecond:0})}function Ne(re,G){const ne=Array.isArray(l.modelValue)===!0?l.modelValue:l.modelValue?[l.modelValue]:[];if(ne.length===0)return qe();const le=ne[ne.length-1],pe=Ve(le.from!==void 0?le.from:le,re,G);return pe.dateHash===null?qe():pe}function qe(){let re,G;if(l.defaultYearMonth!==void 0){const ne=l.defaultYearMonth.split("/");re=parseInt(ne[0],10),G=parseInt(ne[1],10)}else{const ne=S.value!==void 0?S.value:r();re=ne.year,G=ne.month}return{year:re,month:G,day:1,hour:0,minute:0,second:0,millisecond:0,dateHash:re+"/"+bt(G)+"/01"}}function Fe(re){let G=_.value.year,ne=Number(_.value.month)+re;ne===13?(ne=1,G++):ne===0&&(ne=12,G--),et(G,ne),C.value===!0&&nt("month")}function ke(re){const G=Number(_.value.year)+re;et(G,_.value.month),C.value===!0&&nt("year")}function De(re){et(re,_.value.month),T.value=l.defaultView==="Years"?"Months":"Calendar",C.value===!0&&nt("year")}function Ue(re){et(_.value.year,re),T.value="Calendar",C.value===!0&&nt("month")}function Le(re,G){(Z.value[G]?.includes(re.day)===!0?he:st)(re)}function Ge(re){return{year:re.year,month:re.month,day:re.day}}function et(re,G,ne){if(X.value!==null&&re<=X.value.year&&((G<X.value.month||re<X.value.year)&&(G=X.value.month),re=X.value.year),ee.value!==null&&re>=ee.value.year&&((G>ee.value.month||re>ee.value.year)&&(G=ee.value.month),re=ee.value.year),ne!==void 0){const{hour:pe,minute:Ae,second:ge,millisecond:Ce,timezoneOffset:Re,timeHash:ze}=ne;Object.assign(_.value,{hour:pe,minute:Ae,second:ge,millisecond:Ce,timezoneOffset:Re,timeHash:ze})}const le=re+"/"+bt(G)+"/01";le!==_.value.dateHash&&(z.value=_.value.dateHash<le==(m.lang.rtl!==!0)?"left":"right",re!==_.value.year&&(P.value=z.value),g.nextTick(()=>{V.value=re-re%Kt-(re<0?Kt:0),Object.assign(_.value,{year:re,month:G,day:1,dateHash:le})}))}function He(re,G,ne){const le=re!==null&&re.length===1&&l.multiple===!1?re[0]:re,{reason:pe,details:Ae}=tt(G,ne);me(le),t("update:modelValue",le,pe,Ae)}function nt(re){const G=x.value[0]!==void 0&&x.value[0].dateHash!==null?{...x.value[0]}:{..._.value};g.nextTick(()=>{G.year=_.value.year,G.month=_.value.month;const ne=l.calendar!=="persian"?new Date(G.year,G.month,0).getDate():Tn(G.year,G.month);G.day=Math.min(Math.max(1,G.day),ne);const le=Ye(G),{details:pe}=tt("",G);me(le),t("update:modelValue",le,re,pe)})}function tt(re,G){return G.from!==void 0?{reason:`${re}-range`,details:{...Ge(G.target),from:Ge(G.from),to:Ge(G.to)}}:{reason:`${re}-day`,details:Ge(G)}}function Ye(re,G,ne){return re.from!==void 0?{from:E.value(re.from,G,ne),to:E.value(re.to,G,ne)}:E.value(re,G,ne)}function st(re){let G;if(l.multiple===!0)if(re.from!==void 0){const ne=tr(re.from),le=tr(re.to),pe=x.value.filter(ge=>ge.dateHash<ne||ge.dateHash>le),Ae=w.value.filter(({from:ge,to:Ce})=>Ce.dateHash<ne||ge.dateHash>le);G=pe.concat(Ae).concat(re).map(ge=>Ye(ge))}else{const ne=y.value.slice();ne.push(Ye(re)),G=ne}else G=Ye(re);He(G,"add",re)}function he(re){if(l.noUnset===!0)return;let G=null;if(l.multiple===!0&&Array.isArray(l.modelValue)===!0){const ne=Ye(re);re.from!==void 0?G=l.modelValue.filter(le=>le.from!==void 0?le.from!==ne.from&&le.to!==ne.to:!0):G=l.modelValue.filter(le=>le!==ne),G.length===0&&(G=null)}He(G,"remove",re)}function we(re,G,ne){const le=x.value.concat(w.value).map(Ae=>Ye(Ae,re,G)).filter(Ae=>Ae.from!==void 0?Ae.from.dateHash!==null&&Ae.to.dateHash!==null:Ae.dateHash!==null),pe=(l.multiple===!0?le:le[0])||null;me(pe),t("update:modelValue",pe,ne)}function Te(){if(l.minimal!==!0)return g.h("div",{class:"q-date__header "+n.value},[g.h("div",{class:"relative-position"},[g.h(g.Transition,{name:"q-transition--fade"},()=>g.h("div",{key:"h-yr-"+K.value,class:"q-date__header-subtitle q-date__header-link "+(T.value==="Years"?"q-date__header-link--active":"cursor-pointer"),tabindex:s.value,...a("vY",{onClick(){T.value="Years"},onKeyup(re){re.keyCode===13&&(T.value="Years")}})},[K.value]))]),g.h("div",{class:"q-date__header-title relative-position flex no-wrap"},[g.h("div",{class:"relative-position col"},[g.h(g.Transition,{name:"q-transition--fade"},()=>g.h("div",{key:"h-sub"+R.value,class:"q-date__header-title-label q-date__header-link "+(T.value==="Calendar"?"q-date__header-link--active":"cursor-pointer"),tabindex:s.value,...a("vC",{onClick(){T.value="Calendar"},onKeyup(re){re.keyCode===13&&(T.value="Calendar")}})},[R.value]))]),l.todayBtn===!0?g.h(ot,{class:"q-date__header-today self-start",icon:m.iconSet.datetime.today,"aria-label":m.lang.date.today,flat:!0,size:"sm",round:!0,tabindex:s.value,onClick:be}):null])])}function Oe({label:re,type:G,key:ne,dir:le,goTo:pe,boundaries:Ae,cls:ge}){return[g.h("div",{class:"row items-center q-date__arrow"},[g.h(ot,{round:!0,dense:!0,size:"sm",flat:!0,icon:j.value[0],"aria-label":G==="Years"?m.lang.date.prevYear:m.lang.date.prevMonth,tabindex:s.value,disable:Ae.prev===!1,...a("go-#"+G,{onClick(){pe(-1)}})})]),g.h("div",{class:"relative-position overflow-hidden flex flex-center"+ge},[g.h(g.Transition,{name:"q-transition--jump-"+le},()=>g.h("div",{key:ne},[g.h(ot,{flat:!0,dense:!0,noCaps:!0,label:re,tabindex:s.value,...a("view#"+G,{onClick:()=>{T.value=G}})})]))]),g.h("div",{class:"row items-center q-date__arrow"},[g.h(ot,{round:!0,dense:!0,size:"sm",flat:!0,icon:j.value[1],"aria-label":G==="Years"?m.lang.date.nextYear:m.lang.date.nextMonth,tabindex:s.value,disable:Ae.next===!1,...a("go+#"+G,{onClick(){pe(1)}})})])]}const _e={Calendar:()=>[g.h("div",{key:"calendar-view",class:"q-date__view q-date__calendar"},[g.h("div",{class:"q-date__navigation row items-center no-wrap"},Oe({label:f.value.months[_.value.month-1],type:"Months",key:_.value.month,dir:z.value,goTo:Fe,boundaries:Q.value.month,cls:" col"}).concat(Oe({label:_.value.year,type:"Years",key:_.value.year,dir:P.value,goTo:ke,boundaries:Q.value.year,cls:""}))),g.h("div",{class:"q-date__calendar-weekdays row items-center no-wrap"},F.value.map(re=>g.h("div",{class:"q-date__calendar-item"},[g.h("div",re)]))),g.h("div",{class:"q-date__calendar-days-container relative-position overflow-hidden"},[g.h(g.Transition,{name:"q-transition--slide-"+z.value},()=>g.h("div",{key:J.value,class:"q-date__calendar-days fit"},ce.value.map(re=>g.h("div",{class:re.classes},[re.in===!0?g.h(ot,{class:re.today===!0?"q-date__today":"",dense:!0,flat:re.flat,unelevated:re.unelevated,color:re.color,textColor:re.textColor,label:re.i,tabindex:s.value,...a("day#"+re.i,{onClick:()=>{Qe(re.i)},onMouseover:()=>{Ke(re.i)}})},re.event!==!1?()=>g.h("div",{class:"q-date__event bg-"+re.event}):null):g.h("div",""+re.i)]))))])])],Months(){const re=_.value.year===S.value.year,G=le=>X.value!==null&&_.value.year===X.value.year&&X.value.month>le||ee.value!==null&&_.value.year===ee.value.year&&ee.value.month<le,ne=f.value.monthsShort.map((le,pe)=>{const Ae=_.value.month===pe+1;return g.h("div",{class:"q-date__months-item flex flex-center"},[g.h(ot,{class:re===!0&&S.value.month===pe+1?"q-date__today":null,flat:Ae!==!0,label:le,unelevated:Ae,color:Ae===!0?A.value:null,textColor:Ae===!0?M.value:null,tabindex:s.value,disable:G(pe+1),...a("month#"+pe,{onClick:()=>{Ue(pe+1)}})})])});return l.yearsInMonthView===!0&&ne.unshift(g.h("div",{class:"row no-wrap full-width"},[Oe({label:_.value.year,type:"Years",key:_.value.year,dir:P.value,goTo:ke,boundaries:Q.value.year,cls:" col"})])),g.h("div",{key:"months-view",class:"q-date__view q-date__months flex flex-center"},ne)},Years(){const re=V.value,G=re+Kt,ne=[],le=pe=>X.value!==null&&X.value.year>pe||ee.value!==null&&ee.value.year<pe;for(let pe=re;pe<=G;pe++){const Ae=_.value.year===pe;ne.push(g.h("div",{class:"q-date__years-item flex flex-center"},[g.h(ot,{key:"yr"+pe,class:S.value.year===pe?"q-date__today":null,flat:!Ae,label:pe,dense:!0,unelevated:Ae,color:Ae===!0?A.value:null,textColor:Ae===!0?M.value:null,tabindex:s.value,disable:le(pe),...a("yr#"+pe,{onClick:()=>{De(pe)}})})]))}return g.h("div",{class:"q-date__view q-date__years flex flex-center"},[g.h("div",{class:"col-auto"},[g.h(ot,{round:!0,dense:!0,flat:!0,icon:j.value[0],"aria-label":m.lang.date.prevRangeYears(Kt),tabindex:s.value,disable:le(re),...a("y-",{onClick:()=>{V.value-=Kt}})})]),g.h("div",{class:"q-date__years-content col self-stretch row items-center"},ne),g.h("div",{class:"col-auto"},[g.h(ot,{round:!0,dense:!0,flat:!0,icon:j.value[1],"aria-label":m.lang.date.nextRangeYears(Kt),tabindex:s.value,disable:le(G),...a("y+",{onClick:()=>{V.value+=Kt}})})])])}};function Qe(re){const G={..._.value,day:re};if(l.range===!1){Le(G,J.value);return}if(W.value===null){const ne=ce.value.find(pe=>pe.fill!==!0&&pe.i===re);if(l.noUnset!==!0&&ne.range!==void 0){he({target:G,from:ne.range.from,to:ne.range.to});return}if(ne.selected===!0){he(G);return}const le=tr(G);W.value={init:G,initHash:le,final:G,finalHash:le},t("rangeStart",Ge(G))}else{const ne=W.value.initHash,le=tr(G),pe=ne<=le?{from:W.value.init,to:G}:{from:G,to:W.value.init};W.value=null,st(ne===le?G:{target:G,...pe}),t("rangeEnd",{from:Ge(pe.from),to:Ge(pe.to)})}}function Ke(re){if(W.value!==null){const G={..._.value,day:re};Object.assign(W.value,{final:G,finalHash:tr(G)})}}return Object.assign(v,{setToday:be,setView:xe,offsetCalendar:Ie,setCalendarTo:Ee,setEditingRange:Me}),()=>{const re=[g.h("div",{class:"q-date__content col relative-position"},[g.h(g.Transition,{name:"q-transition--fade"},_e[T.value])])],G=gt(I.default);return G!==void 0&&re.push(g.h("div",{class:"q-date__actions"},G)),l.name!==void 0&&l.disable!==!0&&i(re,"push"),g.h("div",{class:L.value,...de.value},[Te(),g.h("div",{ref:d,class:"q-date__main col column",tabindex:-1},re)])}}}),ms=$e({name:"QPopupProxy",props:{...Na,breakpoint:{type:[String,Number],default:450}},emits:["show","hide"],setup(l,{slots:I,emit:t,attrs:v}){const{proxy:m}=g.getCurrentInstance(),{$q:c}=m,a=g.ref(!1),s=g.ref(null),n=g.computed(()=>parseInt(l.breakpoint,10)),{canShow:e}=Yi({showing:a});function r(){return c.screen.width<n.value||c.screen.height<n.value?"dialog":"menu"}const u=g.ref(r()),o=g.computed(()=>u.value==="menu"?{maxHeight:"99vh"}:{});g.watch(()=>r(),h=>{a.value!==!0&&(u.value=h)});function i(h){a.value=!0,t("show",h)}function d(h){a.value=!1,u.value=r(),t("hide",h)}return Object.assign(m,{show(h){e(h)===!0&&s.value.show(h)},hide(h){s.value.hide(h)},toggle(h){s.value.toggle(h)}}),Lt(m,"currentComponent",()=>({type:u.value,ref:s.value})),()=>{const h={ref:s,...o.value,...v,onShow:i,onHide:d};let f;return u.value==="dialog"?f=Gn:(f=on,Object.assign(h,{target:l.target,contextMenu:l.contextMenu,noParentEvent:!0,separateClosePopup:!0})),g.h(f,h,I.default)}}}),la={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},qn={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:l=>l.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:l=>l.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:l=>l.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:l=>l.toLocaleLowerCase()}},gs=Object.keys(qn);gs.forEach(l=>{qn[l].regex=new RegExp(qn[l].pattern)});const Ec=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+gs.join("")+"])|(.)","g"),ua=/[.*+?^${}()|[\]\\]/g,_t="",Mc={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function Tc(l,I,t,v){let m,c,a,s,n,e;const r=g.ref(null),u=g.ref(i());function o(){return l.autogrow===!0||["textarea","text","search","url","tel","password"].includes(l.type)}g.watch(()=>l.type+l.autogrow,h),g.watch(()=>l.mask,N=>{if(N!==void 0)f(u.value,!0);else{const V=z(u.value);h(),l.modelValue!==V&&I("update:modelValue",V)}}),g.watch(()=>l.fillMask+l.reverseFillMask,()=>{r.value===!0&&f(u.value,!0)}),g.watch(()=>l.unmaskedValue,()=>{r.value===!0&&f(u.value)});function i(){if(h(),r.value===!0){const N=T(z(l.modelValue));return l.fillMask!==!1?P(N):N}return l.modelValue}function d(N){if(N<m.length)return m.slice(-N);let V="",W=m;const L=W.indexOf(_t);if(L!==-1){for(let A=N-W.length;A>0;A--)V+=_t;W=W.slice(0,L)+V+W.slice(L)}return W}function h(){if(r.value=l.mask!==void 0&&l.mask.length!==0&&o(),r.value===!1){s=void 0,m="",c="";return}const N=la[l.mask]===void 0?l.mask:la[l.mask],V=typeof l.fillMask=="string"&&l.fillMask.length!==0?l.fillMask.slice(0,1):"_",W=V.replace(ua,"\\$&"),L=[],A=[],M=[];let C=l.reverseFillMask===!0,y="",x="";N.replace(Ec,(O,R,U,q,K)=>{if(q!==void 0){const j=qn[q];M.push(j),x=j.negate,C===!0&&(A.push("(?:"+x+"+)?("+j.pattern+"+)?(?:"+x+"+)?("+j.pattern+"+)?"),C=!1),A.push("(?:"+x+"+)?("+j.pattern+")?")}else if(U!==void 0)y="\\"+(U==="\\"?"":U),M.push(U),L.push("([^"+y+"]+)?"+y+"?");else{const j=R!==void 0?R:K;y=j==="\\"?"\\\\\\\\":j.replace(ua,"\\\\$&"),M.push(j),L.push("([^"+y+"]+)?"+y+"?")}});const w=new RegExp("^"+L.join("")+"("+(y===""?".":"[^"+y+"]")+"+)?"+(y===""?"":"["+y+"]*")+"$"),k=A.length-1,E=A.map((O,R)=>R===0&&l.reverseFillMask===!0?new RegExp("^"+W+"*"+O):R===k?new RegExp("^"+O+"("+(x===""?".":x)+"+)?"+(l.reverseFillMask===!0?"$":W+"*")):new RegExp("^"+O));a=M,s=O=>{const R=w.exec(l.reverseFillMask===!0?O:O.slice(0,M.length+1));R!==null&&(O=R.slice(1).join(""));const U=[],q=E.length;for(let K=0,j=O;K<q;K++){const Y=E[K].exec(j);if(Y===null)break;j=j.slice(Y.shift().length),U.push(...Y)}return U.length!==0?U.join(""):O},m=M.map(O=>typeof O=="string"?O:_t).join(""),c=m.split(_t).join(V)}function f(N,V,W){const L=v.value,A=L.selectionEnd,M=L.value.length-A,C=z(N);V===!0&&h();const y=T(C),x=l.fillMask!==!1?P(y):y,w=u.value!==x;L.value!==x&&(L.value=x),w===!0&&(u.value=x),document.activeElement===L&&g.nextTick(()=>{if(x===c){const E=l.reverseFillMask===!0?c.length:0;L.setSelectionRange(E,E,"forward");return}if(W==="insertFromPaste"&&l.reverseFillMask!==!0){const E=L.selectionEnd;let O=A-1;for(let R=n;R<=O&&R<E;R++)m[R]!==_t&&O++;p.right(L,O);return}if(["deleteContentBackward","deleteContentForward"].indexOf(W)!==-1){const E=l.reverseFillMask===!0?A===0?x.length>y.length?1:0:Math.max(0,x.length-(x===c?0:Math.min(y.length,M)+1))+1:A;L.setSelectionRange(E,E,"forward");return}if(l.reverseFillMask===!0)if(w===!0){const E=Math.max(0,x.length-(x===c?0:Math.min(y.length,M+1)));E===1&&A===1?L.setSelectionRange(E,E,"forward"):p.rightReverse(L,E)}else{const E=x.length-M;L.setSelectionRange(E,E,"backward")}else if(w===!0){const E=Math.max(0,m.indexOf(_t),Math.min(y.length,A)-1);p.right(L,E)}else{const E=A-1;p.right(L,E)}});const k=l.unmaskedValue===!0?z(x):x;String(l.modelValue)!==k&&(l.modelValue!==null||k!=="")&&t(k,!0)}function b(N,V,W){const L=T(z(N.value));V=Math.max(0,m.indexOf(_t),Math.min(L.length,V)),n=V,N.setSelectionRange(V,W,"forward")}const p={left(N,V){const W=m.slice(V-1).indexOf(_t)===-1;let L=Math.max(0,V-1);for(;L>=0;L--)if(m[L]===_t){V=L,W===!0&&V++;break}if(L<0&&m[V]!==void 0&&m[V]!==_t)return p.right(N,0);V>=0&&N.setSelectionRange(V,V,"backward")},right(N,V){const W=N.value.length;let L=Math.min(W,V+1);for(;L<=W;L++)if(m[L]===_t){V=L;break}else m[L-1]===_t&&(V=L);if(L>W&&m[V-1]!==void 0&&m[V-1]!==_t)return p.left(N,W);N.setSelectionRange(V,V,"forward")},leftReverse(N,V){const W=d(N.value.length);let L=Math.max(0,V-1);for(;L>=0;L--)if(W[L-1]===_t){V=L;break}else if(W[L]===_t&&(V=L,L===0))break;if(L<0&&W[V]!==void 0&&W[V]!==_t)return p.rightReverse(N,0);V>=0&&N.setSelectionRange(V,V,"backward")},rightReverse(N,V){const W=N.value.length,L=d(W),A=L.slice(0,V+1).indexOf(_t)===-1;let M=Math.min(W,V+1);for(;M<=W;M++)if(L[M-1]===_t){V=M,V>0&&A===!0&&V--;break}if(M>W&&L[V-1]!==void 0&&L[V-1]!==_t)return p.leftReverse(N,W);N.setSelectionRange(V,V,"forward")}};function S(N){I("click",N),e=void 0}function _(N){if(I("keydown",N),qi(N)===!0||N.altKey===!0)return;const V=v.value,W=V.selectionStart,L=V.selectionEnd;if(N.shiftKey||(e=void 0),N.keyCode===37||N.keyCode===39){N.shiftKey&&e===void 0&&(e=V.selectionDirection==="forward"?W:L);const A=p[(N.keyCode===39?"right":"left")+(l.reverseFillMask===!0?"Reverse":"")];if(N.preventDefault(),A(V,e===W?L:W),N.shiftKey){const M=V.selectionStart;V.setSelectionRange(Math.min(e,M),Math.max(e,M),"forward")}}else N.keyCode===8&&l.reverseFillMask!==!0&&W===L?(p.left(V,W),V.setSelectionRange(V.selectionStart,L,"backward")):N.keyCode===46&&l.reverseFillMask===!0&&W===L&&(p.rightReverse(V,L),V.setSelectionRange(W,V.selectionEnd,"forward"))}function T(N){if(N==null||N==="")return"";if(l.reverseFillMask===!0)return D(N);const V=a;let W=0,L="";for(let A=0;A<V.length;A++){const M=N[W],C=V[A];if(typeof C=="string")L+=C;else if(M!==void 0&&C.regex.test(M))L+=C.transform!==void 0?C.transform(M):M,W++;else return L}return L}function D(N){const V=a,W=m.indexOf(_t);let L=N.length-1,A="";for(let M=V.length-1;M>=0&&L!==-1;M--){const C=V[M];let y=N[L];if(typeof C=="string")A=C+A;else if(y!==void 0&&C.regex.test(y))do A=(C.transform!==void 0?C.transform(y):y)+A,L--,y=N[L];while(W===M&&y!==void 0&&C.regex.test(y));else return A}return A}function z(N){return typeof N!="string"||s===void 0?typeof N=="number"?s(""+N):N:s(N)}function P(N){return c.length-N.length<=0?N:l.reverseFillMask===!0&&N.length!==0?c.slice(0,-N.length)+N:N+c.slice(N.length)}return{innerValue:u,hasMask:r,moveCursorForPaste:b,updateMaskValue:f,onMaskedKeydown:_,onMaskedClick:S}}function Rc(l,I){function t(){const v=l.modelValue;try{const m="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(v)===v&&("length"in v?Array.from(v):[v]).forEach(c=>{m.items.add(c)}),{files:m.files}}catch{return{files:void 0}}}return g.computed(()=>{if(l.type==="file")return t()})}const en=$e({name:"QInput",inheritAttrs:!1,props:{...Xn,...Mc,...Yn,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...to,"paste","change","keydown","click","animationend"],setup(l,{emit:I,attrs:t}){const{proxy:v}=g.getCurrentInstance(),{$q:m}=v,c={};let a=NaN,s,n,e=null,r;const u=g.ref(null),o=Ma(l),{innerValue:i,hasMask:d,moveCursorForPaste:h,updateMaskValue:f,onMaskedKeydown:b,onMaskedClick:p}=Tc(l,I,y,u),S=Rc(l),_=g.computed(()=>$r(i.value)),T=es(M),D=ro({changeEvent:!0}),z=g.computed(()=>l.type==="textarea"||l.autogrow===!0),P=g.computed(()=>z.value===!0||["text","search","url","tel","password"].includes(l.type)),N=g.computed(()=>{const R={...D.splitAttrs.listeners.value,onInput:M,onPaste:A,onChange:w,onBlur:k,onFocus:Dt};return R.onCompositionstart=R.onCompositionupdate=R.onCompositionend=T,d.value===!0&&(R.onKeydown=b,R.onClick=p),l.autogrow===!0&&(R.onAnimationend=C),R}),V=g.computed(()=>{const R={tabindex:0,"data-autofocus":l.autofocus===!0||void 0,rows:l.type==="textarea"?6:void 0,"aria-label":l.label,name:o.value,...D.splitAttrs.attributes.value,id:D.targetUid.value,maxlength:l.maxlength,disabled:l.disable===!0,readonly:l.readonly===!0};return z.value===!1&&(R.type=l.type),l.autogrow===!0&&(R.rows=1),R});g.watch(()=>l.type,()=>{u.value&&(u.value.value=l.modelValue)}),g.watch(()=>l.modelValue,R=>{if(d.value===!0){if(n===!0&&(n=!1,String(R)===a))return;f(R)}else i.value!==R&&(i.value=R,l.type==="number"&&c.hasOwnProperty("value")===!0&&(s===!0?s=!1:delete c.value));l.autogrow===!0&&g.nextTick(x)}),g.watch(()=>l.autogrow,R=>{R===!0?g.nextTick(x):u.value!==null&&t.rows>0&&(u.value.style.height="auto")}),g.watch(()=>l.dense,()=>{l.autogrow===!0&&g.nextTick(x)});function W(){nn(()=>{const R=document.activeElement;u.value!==null&&u.value!==R&&(R===null||R.id!==D.targetUid.value)&&u.value.focus({preventScroll:!0})})}function L(){u.value?.select()}function A(R){if(d.value===!0&&l.reverseFillMask!==!0){const U=R.target;h(U,U.selectionStart,U.selectionEnd)}I("paste",R)}function M(R){if(!R||!R.target)return;if(l.type==="file"){I("update:modelValue",R.target.files);return}const U=R.target.value;if(R.target.qComposing===!0){c.value=U;return}if(d.value===!0)f(U,!1,R.inputType);else if(y(U),P.value===!0&&R.target===document.activeElement){const{selectionStart:q,selectionEnd:K}=R.target;q!==void 0&&K!==void 0&&g.nextTick(()=>{R.target===document.activeElement&&U.indexOf(R.target.value)===0&&R.target.setSelectionRange(q,K)})}l.autogrow===!0&&x()}function C(R){I("animationend",R),x()}function y(R,U){r=()=>{e=null,l.type!=="number"&&c.hasOwnProperty("value")===!0&&delete c.value,l.modelValue!==R&&a!==R&&(a=R,U===!0&&(n=!0),I("update:modelValue",R),g.nextTick(()=>{a===R&&(a=NaN)})),r=void 0},l.type==="number"&&(s=!0,c.value=R),l.debounce!==void 0?(e!==null&&clearTimeout(e),c.value=R,e=setTimeout(r,l.debounce)):r()}function x(){requestAnimationFrame(()=>{const R=u.value;if(R!==null){const U=R.parentNode.style,{scrollTop:q}=R,{overflowY:K,maxHeight:j}=m.platform.is.firefox===!0?{}:window.getComputedStyle(R),Y=K!==void 0&&K!=="scroll";Y===!0&&(R.style.overflowY="hidden"),U.marginBottom=R.scrollHeight-1+"px",R.style.height="1px",R.style.height=R.scrollHeight+"px",Y===!0&&(R.style.overflowY=parseInt(j,10)<R.scrollHeight?"auto":"hidden"),U.marginBottom="",R.scrollTop=q}})}function w(R){T(R),e!==null&&(clearTimeout(e),e=null),r?.(),I("change",R.target.value)}function k(R){R!==void 0&&Dt(R),e!==null&&(clearTimeout(e),e=null),r?.(),s=!1,n=!1,delete c.value,l.type!=="file"&&setTimeout(()=>{u.value!==null&&(u.value.value=i.value!==void 0?i.value:"")})}function E(){return c.hasOwnProperty("value")===!0?c.value:i.value!==void 0?i.value:""}g.onBeforeUnmount(()=>{k()}),g.onMounted(()=>{l.autogrow===!0&&x()}),Object.assign(D,{innerValue:i,fieldClass:g.computed(()=>`q-${z.value===!0?"textarea":"input"}`+(l.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:g.computed(()=>l.type!=="file"&&typeof l.shadowText=="string"&&l.shadowText.length!==0),inputRef:u,emitValue:y,hasValue:_,floatingLabel:g.computed(()=>_.value===!0&&(l.type!=="number"||isNaN(i.value)===!1)||$r(l.displayValue)),getControl:()=>g.h(z.value===!0?"textarea":"input",{ref:u,class:["q-field__native q-placeholder",l.inputClass],style:l.inputStyle,...V.value,...N.value,...l.type!=="file"?{value:E()}:S.value}),getShadowControl:()=>g.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(z.value===!0?"":" text-no-wrap")},[g.h("span",{class:"invisible"},E()),g.h("span",l.shadowText)])});const O=no(D);return Object.assign(v,{focus:W,select:L,getNativeElement:()=>u.value}),Lt(v,"nativeEl",()=>u.value),O}});function Bc(l){return{entity:l.entity,dataCy:l.dataCy,defaultLabel:l.defaultLabel,routeName:l.routeName,shouldRender:l.customShouldRender||(({store:I})=>l.storeField?!!I[l.storeField]:!0),getLabel:l.getLabel||(l.labelField?({store:I})=>l.storeField&&I[l.storeField]?.[l.labelField]||l.defaultLabel:void 0),getColor:l.customGetColor||(({store:I})=>l.storeField&&I[l.storeField]?"primary":"dark"),getRouteParams:l.routeParamKey&&l.routeParamField?({store:I})=>({[l.routeParamKey]:l.storeField&&I[l.storeField]?.[l.routeParamField]}):void 0,clearActions:[...l.clearMethods?.map(I=>({store:t})=>t[I]?.())||[],...l.navActions?.map(I=>({navStore:t})=>I(t))||[]]}}const bs=/^\d{2}-\d{2}-\d{4}$/;function Ic(l){const I=l.getTimezoneOffset()*6e4;return new Date(l.getTime()+I)}function Kr(l){const I=/^\d{4}-\d{2}-\d{2}$/,t=/^\d{2}-\d{2}-\d{4}$/;if(I.test(l))return l;if(t.test(l)){const v=l.split("-");return`${v[2]}-${v[1]}-${v[0]}`}return console.warn("'Invalid date format. Expected DD-MM-YYYY' or 'YYYY-MM-DD' but got: "+l),""}function ho(l,I,t,v=[]){const m=typeof l=="string"?new Date(Kr(l)):new Date(l);if(Number.isNaN(m.getTime()))return!1;if(I){const s=typeof I=="string"?new Date(Kr(I)):new Date(I);if(m<s)return!1}if(t){const s=typeof t=="string"?new Date(Kr(t)):new Date(t);if(m>s)return!1}return v.some(s=>{if(typeof s=="string"){const n=new Date(Kr(s));return m.getFullYear()===n.getFullYear()&&m.getMonth()===n.getMonth()&&m.getDate()===n.getDate()}else{if(s instanceof Date)return m.getFullYear()===s.getFullYear()&&m.getMonth()===s.getMonth()&&m.getDate()===s.getDate();{const n=new Date(s.start_date),e=new Date(s.end_date);return m>=n&&m<=e}}})?!1:!v.some(s=>{if(typeof s=="object"&&!(s instanceof Date)&&s.start_date&&s.end_date){const n=new Date(s.start_date),e=new Date(s.end_date);if(n.getTime()===e.getTime())return m.getTime()===n.getTime()||m.getTime()===e.getTime()}return!1})}const Xt={validateAndUpdate(l,I,t){return bs.test(I)?{...l,[t?"from":"to"]:I}:l},isEndDateValid(l,I,t=!1){if(!l||!I)return!0;try{const[v,m,c]=l.split("-"),[a,s,n]=I.split("-"),e=new Date(Number(c),Number(m)-1,Number(v)),r=new Date(Number(n),Number(s)-1,Number(a));return t?r>=e:r>e}catch{return!1}},handlePickerUpdate(l){return l===null?{from:"",to:""}:typeof l=="string"?{from:l,to:l}:l},reset(){return{from:"",to:""}},handleInput(l,I){typeof l=="string"&&I(l)}},vs={days:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],daysShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthsShort:["Janv","Févr","Mars","Avr","Mai","Juin","Juil","Août","Sept","Oct","Nov","Dec"],firstDayOfWeek:1,format24h:!0,pluralDay:"jours"};function Oc(l){if(!l||!/^\d{2}-\d{2}-\d{4}$/.test(l))return new Date(Number.NaN);const[I,t,v]=l.split("-").map(Number);return new Date(v,t-1,I)}function Ut(l){if(!l)return"";const I=new Date(l),t=I.getFullYear(),v=String(I.getMonth()+1).padStart(2,"0");return`${String(I.getDate()).padStart(2,"0")}-${v}-${t}`}function zn(l,I){return new Date(l,I-1,1)}function Un(l,I){return new Date(l,I,0)}function ys(l=new Date){const I=l.getFullYear(),t=l.getMonth()+1;let v=t-3,m=I;v<=0&&(v+=12,m-=1);const c=zn(m,v);let a=t-1,s=I;a<=0&&(a+=12,s-=1);const n=Un(s,a);return{from:Ut(c),to:Ut(n)}}const ws={currentMonth:(l=new Date)=>{const I=l.getFullYear(),t=l.getMonth()+1;return{from:Ut(zn(I,t)),to:Ut(Un(I,t))}},previousMonth:(l=new Date)=>{const I=l.getFullYear();let v=l.getMonth()+1-1,m=I;return v===0&&(v=12,m=I-1),{from:Ut(zn(m,v)),to:Ut(Un(m,v))}},last3Months:ys,currentYear:(l=new Date)=>{const I=l.getFullYear();return{from:Ut(new Date(I,0,1)),to:Ut(new Date(I,11,31))}},previousYear:(l=new Date)=>{const I=l.getFullYear()-1;return{from:Ut(new Date(I,0,1)),to:Ut(new Date(I,11,31))}}},Fc={class:"columns justify-end"},jc={class:"row items-center justify-end"},Dc=g.defineComponent({__name:"DatePicker",props:{label:{default:"Date"},date:{default:""},required:{type:Boolean,default:!1},minDate:{default:void 0},maxDate:{default:void 0},datesDisabled:{default:()=>[]},requiredErrorMessage:{default:"Ce champ est obligatoire !"},invalidDateErrorMessage:{default:"Date invalide!"},disabled:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},placeholder:{default:void 0},closeLabel:{default:"Close"},rules:{default:()=>[]}},emits:["update:date"],setup(l,{emit:I}){const t=l,v=I,m=g.useAttrs(),c=g.ref(t.date),a=g.ref(t.date),s=g.ref(null),n=S=>{if(!S||S.length!==10)return!1;const _=/^(\d{2})-(\d{2})-(\d{4})$/,T=S.match(_);if(!T)return!1;const D=Number.parseInt(T[1],10),z=Number.parseInt(T[2],10),P=Number.parseInt(T[3],10);if(z<1||z>12||D<1||D>31)return!1;const N=new Date(P,z-1,D);return N.getFullYear()===P&&N.getMonth()===z-1&&N.getDate()===D},e=S=>{if(!S)return null;if(S.length!==10)return"Le format doit être JJ-MM-AAAA";const _=/^(\d{2})-(\d{2})-(\d{4})$/,T=S.match(_);if(!T)return"Format invalide. Utilisez JJ-MM-AAAA";const D=Number.parseInt(T[1],10),z=Number.parseInt(T[2],10),P=Number.parseInt(T[3],10),N=r(z);if(N)return N;const V=u(D,z,P);return V||(i(D,z,P)?null:"Date inexistante")},r=S=>S<1||S>12?"Le mois doit être entre 01 et 12":null,u=(S,_,T)=>S<1||S>31?"Le jour doit être entre 01 et 31":[4,6,9,11].includes(_)&&S>30?`Le mois ${_} n'a que 30 jours`:_===2?o(S,T):null,o=(S,_)=>{const T=_%4===0&&_%100!==0||_%400===0;return T&&S>29?"Février a maximum 29 jours pour les années bissextiles":!T&&S>28?"Février a maximum 28 jours":null},i=(S,_,T)=>{const D=new Date(T,_-1,S);return D.getFullYear()===T&&D.getMonth()===_-1&&D.getDate()===S},d=()=>{a.value?s.value=e(a.value):s.value=null},h=g.computed(()=>S=>{const _=S.replaceAll("/","-");return ho(_,t.minDate,t.maxDate,t.datesDisabled)}),f=S=>{n(S)&&(c.value=S,a.value=S,s.value=null,v("update:date",S))},b=S=>{if(typeof S=="string")if(a.value=S,v("update:date",S),S.length===10){const _=e(S);_||(c.value=S),s.value=_}else S===""&&(c.value="",s.value=null);else S===null&&(a.value="",c.value="",s.value=null,v("update:date",""))},p=g.computed(()=>{const S=[...t.rules];return t.required&&S.push(_=>!!_||t.requiredErrorMessage),S.push(_=>_?n(_)||s.value||t.invalidDateErrorMessage:!0),S});return g.watch(()=>t.date,S=>{S!==c.value&&(c.value=S,a.value=S,d())}),(S,_)=>(g.openBlock(),g.createElementBlock("div",Fc,[g.createVNode(en,g.mergeProps(g.unref(m),{class:"full-width","model-value":a.value,mask:"##-##-####",dense:"",label:S.label,"data-cy":"datePick",rules:p.value,disable:S.disabled,required:S.required,outlined:S.outlined,placeholder:S.placeholder,"onUpdate:modelValue":b,onBlur:d}),{append:g.withCtx(()=>[g.createVNode(vt,{name:"event",class:"cursor-pointer","data-testid":"calendar-icon-picker"},{default:g.withCtx(()=>[g.createVNode(ms,{cover:"","transition-show":"scale","transition-hide":"scale"},{default:g.withCtx(()=>[g.createVNode(ps,{mask:"DD-MM-YYYY","model-value":c.value,options:h.value,disable:S.disabled,"onUpdate:modelValue":f},{default:g.withCtx(()=>[g.createElementVNode("div",jc,[g.withDirectives(g.createVNode(ot,{label:S.closeLabel,color:"primary",flat:""},null,8,["label"]),[[ao]])])]),_:1},8,["model-value","options","disable"])]),_:1})]),_:1})]),_:1},16,["model-value","label","rules","disable","required","outlined","placeholder"])]))}}),Pc={class:"date-range-wrapper"},Nc={class:"date-range-flex"},Lc={key:0,class:"actions-group"},Vc={class:"date-range-popup"},qc={key:0,class:"presets-section"},zc={class:"presets-grid"},Uc={class:"presets-row"},Wc={class:"presets-row"},Hc={class:"calendar-container"},Yc={class:"popup-actions"},Qc={key:0,class:"hint"},Kc={class:"text-warning text-caption q-mb-none"},Xc=g.defineComponent({__name:"DateRange",props:{allowSameDate:{type:Boolean,default:!0},from:{default:""},to:{default:""},labelStart:{default:"De"},labelEnd:{default:"À"},startDateHint:{default:""},resetLabel:{default:"Reinitialiser"},closeLabel:{default:"Fermer"},locale:{default:()=>vs},required:{type:Boolean,default:!1},requiredErrorMessage:{default:"Ce champ est obligatoire !"},invalidDateErrorMessage:{default:"Date invalide!"},rules:{default:()=>[]},minDate:{default:void 0},maxDate:{default:void 0},datesDisabled:{default:()=>[]},highlightEvents:{default:()=>[]},disabled:{type:Boolean,default:!1},idCy:{default:"dateRange"},isIconCalendar:{type:Boolean},resetPosition:{},hideActions:{type:Boolean,default:!1},hideShortcuts:{type:Boolean,default:!1},shortcuts:{default:()=>[{id:"currentMonth",label:"Mois courant"},{id:"previousMonth",label:"Mois précédent"},{id:"last3Months",label:"3 derniers mois"},{id:"currentYear",label:"Année courante"},{id:"previousYear",label:"Année précédente"}]}},emits:["update:dateRange","clear"],setup(l,{expose:I,emit:t}){const v=l,m=t,c=g.ref({from:v.from,to:v.to}),a=g.ref(null),s=g.computed(()=>`from-date-${v.idCy}`),n=g.computed(()=>`to-date-${v.idCy}`),e=g.ref(null),r=g.computed(()=>v.shortcuts.map(R=>({...R,getRange:ws[R.id]}))),u=g.computed(()=>r.value.slice(0,3)),o=g.computed(()=>r.value.slice(3)),i=()=>{c.value=Xt.reset(),D.value=null,z.value=null,e.value=null,w(),m("clear")},d=()=>{a.value&&a.value.hide()},h=()=>{if(e.value=null,!(!c.value.from||!c.value.to))for(const R of r.value)try{const U=R.getRange(new Date);if(U.from===c.value.from&&U.to===c.value.to){e.value=R.id;break}}catch(U){console.error("Error checking preset:",U)}},f=R=>{if(!R||R.length!==10)return!1;const U=/^(\d{2})-(\d{2})-(\d{4})$/,q=R.match(U);if(!q)return!1;const K=Number.parseInt(q[1],10),j=Number.parseInt(q[2],10),Y=Number.parseInt(q[3],10);if(j<1||j>12||K<1||K>31)return!1;const F=new Date(Y,j-1,K);return F.getFullYear()===Y&&F.getMonth()===j-1&&F.getDate()===K},b=R=>{if(!R)return null;if(R.length!==10)return"Le format doit être JJ-MM-AAAA";const U=/^(\d{2})-(\d{2})-(\d{4})$/,q=R.match(U);if(!q)return"Format invalide. Utilisez JJ-MM-AAAA";const K=Number.parseInt(q[1],10),j=Number.parseInt(q[2],10),Y=Number.parseInt(q[3],10),F=p(j);if(F)return F;const B=S(K,j,Y);return B||(T(K,j,Y)?null:"Date inexistante")},p=R=>R<1||R>12?"Le mois doit être entre 01 et 12":null,S=(R,U,q)=>R<1||R>31?"Le jour doit être entre 01 et 31":[4,6,9,11].includes(U)&&R>30?`Le mois ${U} n'a que 30 jours`:U===2?_(R,q):null,_=(R,U)=>{const q=U%4===0&&U%100!==0||U%400===0;return q&&R>29?"Février a maximum 29 jours pour les années bissextiles":!q&&R>28?"Février a maximum 28 jours":null},T=(R,U,q)=>{const K=new Date(q,U-1,R);return K.getFullYear()===q&&K.getMonth()===U-1&&K.getDate()===R},D=g.ref(null),z=g.ref(null),P=()=>{c.value.from?D.value=b(c.value.from):D.value=null},N=()=>{c.value.to?z.value=b(c.value.to):z.value=null},V=g.computed(()=>R=>{const U=R.replaceAll("/","-");return ho(U,v.minDate,v.maxDate,v.datesDisabled)});let W=!1;const L=()=>{W=!0,c.value.from="",D.value=null,e.value=null,w(),setTimeout(()=>{W=!1},100)},A=()=>{W=!0,c.value.to="",z.value=null,e.value=null,w(),setTimeout(()=>{W=!1},100)},M=R=>{if(R===null||R===""){const U=c.value.from;c.value.from="",D.value=null,e.value=null,w(),!c.value.to&&U&&!c.value.from&&m("clear");return}Xt.handleInput(R,U=>{const q=c.value.from;if(U&&U.length===10){const K=b(U);if(D.value=K,K){c.value.from=U,w();return}}else D.value=null;c.value=Xt.validateAndUpdate(c.value,U,!0),h(),w(),!U&&!c.value.to&&q&&m("clear")})},C=R=>{if(R===null||R===""){const U=c.value.to;c.value.to="",z.value=null,e.value=null,w(),!c.value.from&&U&&!c.value.to&&m("clear");return}Xt.handleInput(R,U=>{const q=c.value.to;if(U&&U.length===10){const K=b(U);if(z.value=K,K){c.value.to=U,w();return}}else z.value=null;c.value=Xt.validateAndUpdate(c.value,U,!1),h(),w(),!U&&!c.value.from&&q&&m("clear")})},y=()=>{setTimeout(()=>{c.value.from&&c.value.from.length===10?D.value=b(c.value.from):D.value=null,c.value.to&&c.value.to.length===10?z.value=b(c.value.to):z.value=null,!v.allowSameDate&&c.value.from&&c.value.to&&c.value.from===c.value.to&&(c.value.to=""),h()},10)},x=R=>{const U=Xt.handlePickerUpdate(R);(U.from!==c.value.from||U.to!==c.value.to)&&(e.value=null),c.value=U,w(),h()},w=()=>{m("update:dateRange",{...c.value})},k=g.computed(()=>[...v.required?[R=>!!R||v.requiredErrorMessage]:[],...v.rules,R=>{if(R&&!f(R))return D.value||v.invalidDateErrorMessage||"Date invalide!";const U=c.value.to;if(!R||!U)return!0;const q=Xt.isEndDateValid(R,U,v.allowSameDate);return v.allowSameDate?q||"La date de début doit être avant ou égale à la date de fin":q||"La date de début doit être strictement avant la date de fin"}]),E=g.computed(()=>[...v.required?[R=>!!R||v.requiredErrorMessage]:[],...v.rules,R=>{if(R&&!f(R))return z.value||v.invalidDateErrorMessage||"Date invalide!";const U=c.value.from;if(!R||!U)return!0;const q=Xt.isEndDateValid(U,R,v.allowSameDate);return v.allowSameDate?q||"La date de fin doit être après ou égale à la date de début":q||"La date de fin doit être strictement après la date de début"}]);g.watch([()=>c.value.from,()=>c.value.to],([R,U],[q,K])=>{!R&&!U&&(q||K)&&!W&&(D.value=null,z.value=null,e.value=null,m("clear"))}),g.watch(()=>v.from,R=>{R!==c.value.from&&(c.value.from=R,P(),h())}),g.watch(()=>v.to,R=>{R!==c.value.to&&(c.value.to=R,N(),h())}),I({setDateRange:R=>{c.value={from:R.from,to:R.to},P(),N(),h(),w()},getCurrentRange:()=>({from:c.value.from,to:c.value.to}),resetDate:()=>{i()}});const O=R=>{try{const U=R.getRange(new Date);c.value={from:U.from,to:U.to},e.value=R.id,P(),N(),w()}catch(U){console.error("Error applying date preset:",U)}};return g.onMounted(()=>{P(),N(),h()}),(R,U)=>(g.openBlock(),g.createElementBlock("div",Pc,[g.createElementVNode("div",Nc,[g.createVNode(en,g.mergeProps(R.$attrs,{"data-cy":s.value,"model-value":c.value.from,mask:"##-##-####",label:R.labelStart,rules:k.value,disable:R.disabled,required:R.required,"hide-bottom-space":"","onUpdate:modelValue":M,onClear:L,onBlur:P,class:"date-input",clearable:""}),null,16,["data-cy","model-value","label","rules","disable","required"]),g.createVNode(en,g.mergeProps(R.$attrs,{"model-value":c.value.to,mask:"##-##-####",label:R.labelEnd,"hide-bottom-space":"","data-cy":n.value,rules:E.value,disable:R.disabled,required:R.required,"onUpdate:modelValue":C,onClear:A,onBlur:N,class:"date-input",clearable:""}),null,16,["model-value","label","data-cy","rules","disable","required"]),R.hideActions?g.createCommentVNode("",!0):(g.openBlock(),g.createElementBlock("div",Lc,[g.createVNode(vt,{name:"event",size:"30px",class:"cursor-pointer calendar-icon",style:{opacity:"0.55"},"data-cy":"calendar-icon-range"},{default:g.withCtx(()=>[g.createVNode(ms,{cover:"","transition-show":"scale","transition-hide":"scale",ref_key:"popupRef",ref:a},{default:g.withCtx(()=>[g.createElementVNode("div",Vc,[R.hideShortcuts?g.createCommentVNode("",!0):(g.openBlock(),g.createElementBlock("div",qc,[U[0]||(U[0]=g.createElementVNode("div",{class:"presets-title"},"Périodes rapides :",-1)),g.createElementVNode("div",zc,[g.createElementVNode("div",Uc,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(u.value,q=>(g.openBlock(),g.createBlock(ot,{key:q.id,label:q.label,color:e.value===q.id?"primary":"grey-7",outline:e.value!==q.id,flat:"",dense:"",size:"sm",class:"preset-btn",onClick:K=>O(q),"data-cy":`date-preset-${q.id}`},null,8,["label","color","outline","onClick","data-cy"]))),128))]),g.createElementVNode("div",Wc,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(o.value,q=>(g.openBlock(),g.createBlock(ot,{key:q.id,label:q.label,color:e.value===q.id?"primary":"grey-7",outline:e.value!==q.id,flat:"",dense:"",size:"sm",class:"preset-btn",onClick:K=>O(q),"data-cy":`date-preset-${q.id}`},null,8,["label","color","outline","onClick","data-cy"]))),128))])])])),g.createElementVNode("div",Hc,[g.createVNode(ps,{"model-value":c.value,mask:"DD-MM-YYYY","today-btn":"",range:"","data-cy":"date-picker-range",locale:R.locale,options:V.value,events:R.highlightEvents,"event-color":"warning",disable:R.disabled,"onUpdate:modelValue":x,onRangeEnd:y,"no-unset":""},null,8,["model-value","locale","options","events","disable"])]),g.createElementVNode("div",Yc,[g.createVNode(ot,{label:R.resetLabel,color:"grey-7",flat:"",dense:"",onClick:i,class:"q-mr-sm"},null,8,["label"]),g.createVNode(ot,{label:R.closeLabel,color:"primary",flat:"",dense:"",onClick:d},null,8,["label"])])])]),_:1},512)]),_:1})]))]),R.startDateHint?(g.openBlock(),g.createElementBlock("div",Qc,[g.createElementVNode("p",Kc,g.toDisplayString(R.startDateHint),1)])):g.createCommentVNode("",!0)]))}}),xs=Yt(Xc,[["__scopeId","data-v-4b6fd6b7"]]),Gc=["top","middle","bottom"],tn=$e({name:"QBadge",props:{color:String,textColor:String,floating:Boolean,transparent:Boolean,multiLine:Boolean,outline:Boolean,rounded:Boolean,label:[Number,String],align:{type:String,validator:l=>Gc.includes(l)}},setup(l,{slots:I}){const t=g.computed(()=>l.align!==void 0?{verticalAlign:l.align}:null),v=g.computed(()=>{const m=l.outline===!0&&l.color||l.textColor;return`q-badge flex inline items-center no-wrap q-badge--${l.multiLine===!0?"multi":"single"}-line`+(l.outline===!0?" q-badge--outline":l.color!==void 0?` bg-${l.color}`:"")+(m!==void 0?` text-${m}`:"")+(l.floating===!0?" q-badge--floating":"")+(l.rounded===!0?" q-badge--rounded":"")+(l.transparent===!0?" q-badge--transparent":"")});return()=>g.h("div",{class:v.value,style:t.value,role:"status","aria-label":l.label},It(I.default,l.label!==void 0?[l.label]:[]))}}),ar=$e({name:"QTooltip",inheritAttrs:!1,props:{...Pa,...Qi,...Xr,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...Xr.transitionShow,default:"jump-down"},transitionHide:{...Xr.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:Pn},self:{type:String,default:"top middle",validator:Pn},offset:{type:Array,default:()=>[14,14],validator:Qa},scrollTarget:Qn,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...Ki],setup(l,{slots:I,emit:t,attrs:v}){let m,c;const a=g.getCurrentInstance(),{proxy:{$q:s}}=a,n=g.ref(null),e=g.ref(!1),r=g.computed(()=>Nn(l.anchor,s.lang.rtl)),u=g.computed(()=>Nn(l.self,s.lang.rtl)),o=g.computed(()=>l.persistent!==!0),{registerTick:i,removeTick:d}=Zi(),{registerTimeout:h}=$i(),{transitionProps:f,transitionStyle:b}=Ji(l),{localScrollTarget:p,changeScrollEvent:S,unconfigureScrollTarget:_}=La(l,E),{anchorEl:T,canShow:D,anchorEvents:z}=Yi({showing:e,configureAnchorEl:k}),{show:P,hide:N}=Xi({showing:e,canShow:D,handleShow:A,handleHide:M,hideOnRouteChange:o,processOnMount:!0});Object.assign(z,{delayShow:x,delayHide:w});const{showPortal:V,hidePortal:W,renderPortal:L}=Gi(a,n,R,"tooltip");if(s.platform.is.mobile===!0){const U={anchorEl:T,innerRef:n,onClickOutside(K){return N(K),K.target.classList.contains("q-dialog__backdrop")&&St(K),!0}},q=g.computed(()=>l.modelValue===null&&l.persistent!==!0&&e.value===!0);g.watch(q,K=>{(K===!0?Ya:Dn)(U)}),g.onBeforeUnmount(()=>{Dn(U)})}function A(U){V(),i(()=>{c=new MutationObserver(()=>y()),c.observe(n.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),y(),E()}),m===void 0&&(m=g.watch(()=>s.screen.width+"|"+s.screen.height+"|"+l.self+"|"+l.anchor+"|"+s.lang.rtl,y)),h(()=>{V(!0),t("show",U)},l.transitionDuration)}function M(U){d(),W(),C(),h(()=>{W(!0),t("hide",U)},l.transitionDuration)}function C(){c!==void 0&&(c.disconnect(),c=void 0),m!==void 0&&(m(),m=void 0),_(),br(z,"tooltipTemp")}function y(){eo({targetEl:n.value,offset:l.offset,anchorEl:T.value,anchorOrigin:r.value,selfOrigin:u.value,maxHeight:l.maxHeight,maxWidth:l.maxWidth})}function x(U){if(s.platform.is.mobile===!0){In(),document.body.classList.add("non-selectable");const q=T.value,K=["touchmove","touchcancel","touchend","click"].map(j=>[q,j,"delayHide","passiveCapture"]);Gt(z,"tooltipTemp",K)}h(()=>{P(U)},l.delay)}function w(U){s.platform.is.mobile===!0&&(br(z,"tooltipTemp"),In(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),h(()=>{N(U)},l.hideDelay)}function k(){if(l.noParentEvent===!0||T.value===null)return;const U=s.platform.is.mobile===!0?[[T.value,"touchstart","delayShow","passive"]]:[[T.value,"mouseenter","delayShow","passive"],[T.value,"mouseleave","delayHide","passive"]];Gt(z,"anchor",U)}function E(){if(T.value!==null||l.scrollTarget!==void 0){p.value=Kn(T.value,l.scrollTarget);const U=l.noParentEvent===!0?y:N;S(p.value,U)}}function O(){return e.value===!0?g.h("div",{...v,ref:n,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",v.class],style:[v.style,b.value],role:"tooltip"},gt(I.default)):null}function R(){return g.h(g.Transition,f.value,O)}return g.onBeforeUnmount(C),Object.assign(a.proxy,{updatePosition:y}),L}}),Jt=$e({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(l,{slots:I,emit:t}){const v=g.getCurrentInstance(),{proxy:{$q:m}}=v,c=a=>{t("click",a)};return()=>{if(l.props===void 0)return g.h("th",{class:l.autoWidth===!0?"q-table--col-auto-width":"",onClick:c},gt(I.default));let a,s;const n=v.vnode.key;if(n){if(a=l.props.colsMap[n],a===void 0)return}else a=l.props.col;if(a.sortable===!0){const r=a.align==="right"?"unshift":"push";s=ji(I.default,[]),s[r](g.h(vt,{class:a.__iconClass,name:m.iconSet.table.arrowUp}))}else s=gt(I.default);const e={class:a.__thClass+(l.autoWidth===!0?" q-table--col-auto-width":""),style:a.headerStyle,onClick:r=>{a.sortable===!0&&l.props.sort(a),c(r)}};return g.h("th",e,s)}}}),sr=$e({name:"QTr",props:{props:Object,noHover:Boolean},setup(l,{slots:I}){const t=g.computed(()=>"q-tr"+(l.props===void 0||l.props.header===!0?"":" "+l.props.__trClass)+(l.noHover===!0?" q-tr--no-hover":""));return()=>g.h("tr",{style:l.props?.__trStyle,class:t.value},gt(I.default))}}),Jc=["text","rect","circle","QBtn","QBadge","QChip","QToolbar","QCheckbox","QRadio","QToggle","QSlider","QRange","QInput","QAvatar"],Zc=["wave","pulse","pulse-x","pulse-y","fade","blink","none"],Wn=$e({name:"QSkeleton",props:{...Ot,tag:{type:String,default:"div"},type:{type:String,validator:l=>Jc.includes(l),default:"rect"},animation:{type:String,validator:l=>Zc.includes(l),default:"wave"},animationSpeed:{type:[String,Number],default:1500},square:Boolean,bordered:Boolean,size:String,width:String,height:String},setup(l,{slots:I}){const t=g.getCurrentInstance(),v=Ft(l,t.proxy.$q),m=g.computed(()=>{const a=l.size!==void 0?[l.size,l.size]:[l.width,l.height];return{"--q-skeleton-speed":`${l.animationSpeed}ms`,width:a[0],height:a[1]}}),c=g.computed(()=>`q-skeleton q-skeleton--${v.value===!0?"dark":"light"} q-skeleton--type-${l.type}`+(l.animation!=="none"?` q-skeleton--anim q-skeleton--anim-${l.animation}`:"")+(l.square===!0?" q-skeleton--square":"")+(l.bordered===!0?" q-skeleton--bordered":""));return()=>g.h(l.tag,{class:c.value,style:m.value},gt(I.default))}}),Dr=$e({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(l,{slots:I}){const t=g.getCurrentInstance(),v=g.computed(()=>"q-td"+(l.autoWidth===!0?" q-table--col-auto-width":"")+(l.noHover===!0?" q-td--no-hover":"")+" ");return()=>{if(l.props===void 0)return g.h("td",{class:v.value},gt(I.default));const m=t.vnode.key,c=(l.props.colsMap!==void 0?l.props.colsMap[m]:null)||l.props.col;if(c===void 0)return;const{row:a}=l.props;return g.h("td",{class:v.value+c.__tdClass(a),style:c.__tdStyle(a)},gt(I.default))}}}),$c=["horizontal","vertical","cell","none"],ef=$e({name:"QMarkupTable",props:{...Ot,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:l=>$c.includes(l)}},setup(l,{slots:I}){const t=g.getCurrentInstance(),v=Ft(l,t.proxy.$q),m=g.computed(()=>`q-markup-table q-table__container q-table__card q-table--${l.separator}-separator`+(v.value===!0?" q-table--dark q-table__card--dark q-dark":"")+(l.dense===!0?" q-table--dense":"")+(l.flat===!0?" q-table--flat":"")+(l.bordered===!0?" q-table--bordered":"")+(l.square===!0?" q-table--square":"")+(l.wrapCells===!1?" q-table--no-wrap":""));return()=>g.h("div",{class:m.value},[g.h("table",{class:"q-table"},gt(I.default))])}});function Ss(l,I){return g.h("div",l,[g.h("table",{class:"q-table"},I)])}const tf={list:oo,table:ef},rf=["list","table","__qtable"],nf=$e({name:"QVirtualScroll",props:{...Mi,type:{type:String,default:"list",validator:l=>rf.includes(l)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:Qn},setup(l,{slots:I,attrs:t}){let v;const m=g.ref(null),c=g.computed(()=>l.itemsSize>=0&&l.itemsFn!==void 0?parseInt(l.itemsSize,10):Array.isArray(l.items)?l.items.length:0),{virtualScrollSliceRange:a,localResetVirtualScroll:s,padVirtualScroll:n,onVirtualScrollEvt:e}=$a({virtualScrollLength:c,getVirtualScrollTarget:d,getVirtualScrollEl:i}),r=g.computed(()=>{if(c.value===0)return[];const p=(S,_)=>({index:a.value.from+_,item:S});return l.itemsFn===void 0?l.items.slice(a.value.from,a.value.to).map(p):l.itemsFn(a.value.from,a.value.to-a.value.from).map(p)}),u=g.computed(()=>"q-virtual-scroll q-virtual-scroll"+(l.virtualScrollHorizontal===!0?"--horizontal":"--vertical")+(l.scrollTarget!==void 0?"":" scroll")),o=g.computed(()=>l.scrollTarget!==void 0?{}:{tabindex:0});g.watch(c,()=>{s()}),g.watch(()=>l.scrollTarget,()=>{f(),h()});function i(){return m.value.$el||m.value}function d(){return v}function h(){v=Kn(i(),l.scrollTarget),v.addEventListener("scroll",e,Ct.passive)}function f(){v!==void 0&&(v.removeEventListener("scroll",e,Ct.passive),v=void 0)}function b(){let p=n(l.type==="list"?"div":"tbody",r.value.map(I.default));return I.before!==void 0&&(p=I.before().concat(p)),It(I.after,p)}return g.onBeforeMount(()=>{s()}),g.onMounted(()=>{h()}),g.onActivated(()=>{h()}),g.onDeactivated(()=>{f()}),g.onBeforeUnmount(()=>{f()}),()=>{if(I.default===void 0){console.error("QVirtualScroll: default scoped slot is required for rendering");return}return l.type==="__qtable"?Ss({ref:m,class:"q-table__middle "+u.value},b()):g.h(tf[l.type],{...t,ref:m,class:[t.class,u.value],...o.value},b)}}}),of={xs:2,sm:4,md:6,lg:10,xl:14};function ca(l,I,t){return{transform:I===!0?`translateX(${t.lang.rtl===!0?"-":""}100%) scale3d(${-l},1,1)`:`scale3d(${l},1,1)`}}const af=$e({name:"QLinearProgress",props:{...Ot,...Vr,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(l,{slots:I}){const{proxy:t}=g.getCurrentInstance(),v=Ft(l,t.$q),m=qr(l,of),c=g.computed(()=>l.indeterminate===!0||l.query===!0),a=g.computed(()=>l.reverse!==l.query),s=g.computed(()=>({...m.value!==null?m.value:{},"--q-linear-progress-speed":`${l.animationSpeed}ms`})),n=g.computed(()=>"q-linear-progress"+(l.color!==void 0?` text-${l.color}`:"")+(l.reverse===!0||l.query===!0?" q-linear-progress--reverse":"")+(l.rounded===!0?" rounded-borders":"")),e=g.computed(()=>ca(l.buffer!==void 0?l.buffer:1,a.value,t.$q)),r=g.computed(()=>`with${l.instantFeedback===!0?"out":""}-transition`),u=g.computed(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${r.value} q-linear-progress__track--${v.value===!0?"dark":"light"}`+(l.trackColor!==void 0?` bg-${l.trackColor}`:"")),o=g.computed(()=>ca(c.value===!0?1:l.value,a.value,t.$q)),i=g.computed(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${r.value} q-linear-progress__model--${c.value===!0?"in":""}determinate`),d=g.computed(()=>({width:`${l.value*100}%`})),h=g.computed(()=>`q-linear-progress__stripe absolute-${l.reverse===!0?"right":"left"} q-linear-progress__stripe--${r.value}`);return()=>{const f=[g.h("div",{class:u.value,style:e.value}),g.h("div",{class:i.value,style:o.value})];return l.stripe===!0&&c.value===!1&&f.push(g.h("div",{class:h.value,style:d.value})),g.h("div",{class:n.value,style:s.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":l.indeterminate===!0?void 0:l.value},It(I.default,f))}}});let Yr=0;const sf={fullscreen:Boolean,noRouteFullscreenExit:Boolean},lf=["update:fullscreen","fullscreen"];function uf(){const l=g.getCurrentInstance(),{props:I,emit:t,proxy:v}=l;let m,c;const a=g.ref(!1);Di(l)===!0&&g.watch(()=>v.$route.fullPath,()=>{I.noRouteFullscreenExit!==!0&&e()}),g.watch(()=>I.fullscreen,r=>{a.value!==r&&s()}),g.watch(a,r=>{t("update:fullscreen",r),t("fullscreen",r)});function s(){a.value===!0?e():n()}function n(){a.value!==!0&&(a.value=!0,c=v.$el.parentNode,c.replaceChild(m,v.$el),document.body.appendChild(v.$el),Yr++,Yr===1&&document.body.classList.add("q-body--fullscreen-mixin"))}function e(){a.value===!0&&(c.replaceChild(v.$el,m),a.value=!1,Yr=Math.max(0,Yr-1),Yr===0&&(document.body.classList.remove("q-body--fullscreen-mixin"),v.$el.scrollIntoView!==void 0&&setTimeout(()=>{v.$el.scrollIntoView()})))}return g.onBeforeMount(()=>{m=document.createElement("span")}),g.onMounted(()=>{I.fullscreen===!0&&n()}),g.onBeforeUnmount(e),Object.assign(v,{toggleFullscreen:s,setFullscreen:n,exitFullscreen:e}),{inFullscreen:a,toggleFullscreen:s}}function cf(l,I){return new Date(l)-new Date(I)}const ff={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:l=>l==="ad"||l==="da",default:"ad"}};function df(l,I,t,v){const m=g.computed(()=>{const{sortBy:s}=I.value;return s&&t.value.find(n=>n.name===s)||null}),c=g.computed(()=>l.sortMethod!==void 0?l.sortMethod:(s,n,e)=>{const r=t.value.find(i=>i.name===n);if(r===void 0||r.field===void 0)return s;const u=e===!0?-1:1,o=typeof r.field=="function"?i=>r.field(i):i=>i[r.field];return s.sort((i,d)=>{let h=o(i),f=o(d);return r.rawSort!==void 0?r.rawSort(h,f,i,d)*u:h==null?-1*u:f==null?1*u:r.sort!==void 0?r.sort(h,f,i,d)*u:Ti(h)===!0&&Ti(f)===!0?(h-f)*u:Vn(h)===!0&&Vn(f)===!0?cf(h,f)*u:typeof h=="boolean"&&typeof f=="boolean"?(h-f)*u:([h,f]=[h,f].map(b=>(b+"").toLocaleString().toLowerCase()),h<f?-1*u:h===f?0:u)})});function a(s){let n=l.columnSortOrder;if(ts(s)===!0)s.sortOrder&&(n=s.sortOrder),s=s.name;else{const u=t.value.find(o=>o.name===s);u?.sortOrder&&(n=u.sortOrder)}let{sortBy:e,descending:r}=I.value;e!==s?(e=s,r=n==="da"):l.binaryStateSort===!0?r=!r:r===!0?n==="ad"?e=null:r=!1:n==="ad"?r=!0:e=null,v({sortBy:e,descending:r,page:1})}return{columnToSort:m,computedSortMethod:c,sort:a}}const hf={filter:[String,Object],filterMethod:Function};function pf(l,I){const t=g.computed(()=>l.filterMethod!==void 0?l.filterMethod:(v,m,c,a)=>{const s=m?m.toLowerCase():"";return v.filter(n=>c.some(e=>{const r=a(e,n)+"";return(r==="undefined"||r==="null"?"":r.toLowerCase()).indexOf(s)!==-1}))});return g.watch(()=>l.filter,()=>{g.nextTick(()=>{I({page:1},!0)})},{deep:!0}),{computedFilterMethod:t}}function mf(l,I){for(const t in I)if(I[t]!==l[t])return!1;return!0}function fa(l){return l.page<1&&(l.page=1),l.rowsPerPage!==void 0&&l.rowsPerPage<1&&(l.rowsPerPage=0),l}const gf={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function bf(l,I){const{props:t,emit:v}=l,m=g.ref(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:t.rowsPerPageOptions.length!==0?t.rowsPerPageOptions[0]:5},t.pagination)),c=g.computed(()=>{const r=t["onUpdate:pagination"]!==void 0?{...m.value,...t.pagination}:m.value;return fa(r)}),a=g.computed(()=>c.value.rowsNumber!==void 0);function s(r){n({pagination:r,filter:t.filter})}function n(r={}){g.nextTick(()=>{v("request",{pagination:r.pagination||c.value,filter:r.filter||t.filter,getCellValue:I})})}function e(r,u){const o=fa({...c.value,...r});if(mf(c.value,o)===!0){a.value===!0&&u===!0&&s(o);return}if(a.value===!0){s(o);return}t.pagination!==void 0&&t["onUpdate:pagination"]!==void 0?v("update:pagination",o):m.value=o}return{innerPagination:m,computedPagination:c,isServerSide:a,requestServerInteraction:n,setPagination:e}}function vf(l,I,t,v,m,c){const{props:a,emit:s,proxy:{$q:n}}=l,e=g.computed(()=>v.value===!0?t.value.rowsNumber||0:c.value),r=g.computed(()=>{const{page:_,rowsPerPage:T}=t.value;return(_-1)*T}),u=g.computed(()=>{const{page:_,rowsPerPage:T}=t.value;return _*T}),o=g.computed(()=>t.value.page===1),i=g.computed(()=>t.value.rowsPerPage===0?1:Math.max(1,Math.ceil(e.value/t.value.rowsPerPage))),d=g.computed(()=>u.value===0?!0:t.value.page>=i.value),h=g.computed(()=>(a.rowsPerPageOptions.includes(I.value.rowsPerPage)?a.rowsPerPageOptions:[I.value.rowsPerPage].concat(a.rowsPerPageOptions)).map(T=>({label:T===0?n.lang.table.allRows:""+T,value:T})));g.watch(i,(_,T)=>{if(_===T)return;const D=t.value.page;_&&!D?m({page:1}):_<D&&m({page:_})});function f(){m({page:1})}function b(){const{page:_}=t.value;_>1&&m({page:_-1})}function p(){const{page:_,rowsPerPage:T}=t.value;u.value>0&&_*T<e.value&&m({page:_+1})}function S(){m({page:i.value})}return a["onUpdate:pagination"]!==void 0&&s("update:pagination",{...t.value}),{firstRowIndex:r,lastRowIndex:u,isFirstPage:o,isLastPage:d,pagesNumber:i,computedRowsPerPageOptions:h,computedRowsNumber:e,firstPage:f,prevPage:b,nextPage:p,lastPage:S}}const yf={selection:{type:String,default:"none",validator:l=>["single","multiple","none"].includes(l)},selected:{type:Array,default:()=>[]}},wf=["update:selected","selection"];function xf(l,I,t,v){const m=g.computed(()=>{const d={};return l.selected.map(v.value).forEach(h=>{d[h]=!0}),d}),c=g.computed(()=>l.selection!=="none"),a=g.computed(()=>l.selection==="single"),s=g.computed(()=>l.selection==="multiple"),n=g.computed(()=>t.value.length!==0&&t.value.every(d=>m.value[v.value(d)]===!0)),e=g.computed(()=>n.value!==!0&&t.value.some(d=>m.value[v.value(d)]===!0)),r=g.computed(()=>l.selected.length);function u(d){return m.value[d]===!0}function o(){I("update:selected",[])}function i(d,h,f,b){I("selection",{rows:h,added:f,keys:d,evt:b});const p=a.value===!0?f===!0?h:[]:f===!0?l.selected.concat(h):l.selected.filter(S=>d.includes(v.value(S))===!1);I("update:selected",p)}return{hasSelectionMode:c,singleSelection:a,multipleSelection:s,allRowsSelected:n,someRowsSelected:e,rowsSelectedNumber:r,isRowSelected:u,clearSelection:o,updateSelection:i}}function da(l){return Array.isArray(l)?l.slice():[]}const Sf={expanded:Array},kf=["update:expanded"];function Cf(l,I){const t=g.ref(da(l.expanded));g.watch(()=>l.expanded,a=>{t.value=da(a)});function v(a){return t.value.includes(a)}function m(a){l.expanded!==void 0?I("update:expanded",a):t.value=a}function c(a,s){const n=t.value.slice(),e=n.indexOf(a);s===!0?e===-1&&(n.push(a),m(n)):e!==-1&&(n.splice(e,1),m(n))}return{isRowExpanded:v,setExpanded:m,updateExpanded:c}}const _f={visibleColumns:Array};function Af(l,I,t){const v=g.computed(()=>{if(l.columns!==void 0)return l.columns;const s=l.rows[0];return s!==void 0?Object.keys(s).map(n=>({name:n,label:n.toUpperCase(),field:n,align:Ti(s[n])?"right":"left",sortable:!0})):[]}),m=g.computed(()=>{const{sortBy:s,descending:n}=I.value;return(l.visibleColumns!==void 0?v.value.filter(r=>r.required===!0||l.visibleColumns.includes(r.name)===!0):v.value).map(r=>{const u=r.align||"right",o=`text-${u}`;return{...r,align:u,__iconClass:`q-table__sort-icon q-table__sort-icon--${u}`,__thClass:o+(r.headerClasses!==void 0?" "+r.headerClasses:"")+(r.sortable===!0?" sortable":"")+(r.name===s?` sorted ${n===!0?"sort-desc":""}`:""),__tdStyle:r.style!==void 0?typeof r.style!="function"?()=>r.style:r.style:()=>null,__tdClass:r.classes!==void 0?typeof r.classes!="function"?()=>o+" "+r.classes:i=>o+" "+r.classes(i):()=>o}})}),c=g.computed(()=>{const s={};return m.value.forEach(n=>{s[n.name]=n}),s}),a=g.computed(()=>l.tableColspan!==void 0?l.tableColspan:m.value.length+(t.value===!0?1:0));return{colList:v,computedCols:m,computedColsMap:c,computedColspan:a}}const xn="q-table__bottom row items-center",ks={};Za.forEach(l=>{ks[l]={}});const Cs=$e({name:"QTable",props:{rows:{type:Array,required:!0},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:l=>["horizontal","vertical","cell","none"].includes(l)},wrapCells:Boolean,virtualScroll:Boolean,virtualScrollTarget:{},...ks,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],tableRowStyleFn:Function,tableRowClassFn:Function,cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],cardStyleFn:Function,cardClassFn:Function,hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...Ot,...sf,..._f,...hf,...gf,...Sf,...yf,...ff},emits:["request","virtualScroll",...lf,...kf,...wf],setup(l,{slots:I,emit:t}){const v=g.getCurrentInstance(),{proxy:{$q:m}}=v,c=Ft(l,m),{inFullscreen:a,toggleFullscreen:s}=uf(),n=g.computed(()=>typeof l.rowKey=="function"?l.rowKey:he=>he[l.rowKey]),e=g.ref(null),r=g.ref(null),u=g.computed(()=>l.grid!==!0&&l.virtualScroll===!0),o=g.computed(()=>" q-table__card"+(c.value===!0?" q-table__card--dark q-dark":"")+(l.square===!0?" q-table--square":"")+(l.flat===!0?" q-table--flat":"")+(l.bordered===!0?" q-table--bordered":"")),i=g.computed(()=>`q-table__container q-table--${l.separator}-separator column no-wrap`+(l.grid===!0?" q-table--grid":o.value)+(c.value===!0?" q-table--dark":"")+(l.dense===!0?" q-table--dense":"")+(l.wrapCells===!1?" q-table--no-wrap":"")+(a.value===!0?" fullscreen scroll":"")),d=g.computed(()=>i.value+(l.loading===!0?" q-table--loading":""));g.watch(()=>l.tableStyle+l.tableClass+l.tableHeaderStyle+l.tableHeaderClass+i.value,()=>{u.value===!0&&r.value?.reset()});const{innerPagination:h,computedPagination:f,isServerSide:b,requestServerInteraction:p,setPagination:S}=bf(v,Ne),{computedFilterMethod:_}=pf(l,S),{isRowExpanded:T,setExpanded:D,updateExpanded:z}=Cf(l,t),P=g.computed(()=>{let he=l.rows;if(b.value===!0||he.length===0)return he;const{sortBy:we,descending:Te}=f.value;return l.filter&&(he=_.value(he,l.filter,O.value,Ne)),q.value!==null&&(he=K.value(l.rows===he?he.slice():he,we,Te)),he}),N=g.computed(()=>P.value.length),V=g.computed(()=>{let he=P.value;if(b.value===!0)return he;const{rowsPerPage:we}=f.value;return we!==0&&(Y.value===0&&l.rows!==he?he.length>F.value&&(he=he.slice(0,F.value)):he=he.slice(Y.value,F.value)),he}),{hasSelectionMode:W,singleSelection:L,multipleSelection:A,allRowsSelected:M,someRowsSelected:C,rowsSelectedNumber:y,isRowSelected:x,clearSelection:w,updateSelection:k}=xf(l,t,V,n),{colList:E,computedCols:O,computedColsMap:R,computedColspan:U}=Af(l,f,W),{columnToSort:q,computedSortMethod:K,sort:j}=df(l,f,E,S),{firstRowIndex:Y,lastRowIndex:F,isFirstPage:B,isLastPage:H,pagesNumber:X,computedRowsPerPageOptions:ee,computedRowsNumber:Q,firstPage:Z,prevPage:te,nextPage:ie,lastPage:J}=vf(v,h,f,b,S,N),oe=g.computed(()=>V.value.length===0),ae=g.computed(()=>{const he={};return Za.forEach(we=>{he[we]=l[we]}),he.virtualScrollItemSize===void 0&&(he.virtualScrollItemSize=l.dense===!0?28:48),he});function fe(){u.value===!0&&r.value.reset()}function ce(){if(l.grid===!0)return st();const he=l.hideHeader!==!0?De:null;if(u.value===!0){const Te=I["top-row"],Oe=I["bottom-row"],_e={default:Qe=>xe(Qe.item,I.body,Qe.index)};if(Te!==void 0){const Qe=g.h("tbody",Te({cols:O.value}));_e.before=he===null?()=>Qe:()=>[he()].concat(Qe)}else he!==null&&(_e.before=he);return Oe!==void 0&&(_e.after=()=>g.h("tbody",Oe({cols:O.value}))),g.h(nf,{ref:r,class:l.tableClass,style:l.tableStyle,...ae.value,scrollTarget:l.virtualScrollTarget,items:V.value,type:"__qtable",tableColspan:U.value,onVirtualScroll:me},_e)}const we=[Ie()];return he!==null&&we.unshift(he()),Ss({class:["q-table__middle scroll",l.tableClass],style:l.tableStyle},we)}function de(he,we){if(r.value!==null){r.value.scrollTo(he,we);return}he=parseInt(he,10);const Te=e.value.querySelector(`tbody tr:nth-of-type(${he+1})`);if(Te!==null){const Oe=e.value.querySelector(".q-table__middle.scroll"),_e=Te.offsetTop-l.virtualScrollStickySizeStart,Qe=_e<Oe.scrollTop?"decrease":"increase";Oe.scrollTop=_e,t("virtualScroll",{index:he,from:0,to:h.value.rowsPerPage-1,direction:Qe})}}function me(he){t("virtualScroll",he)}function be(){return[g.h(af,{class:"q-table__linear-progress",color:l.color,dark:c.value,indeterminate:!0,trackColor:"transparent"})]}function xe(he,we,Te){const Oe=n.value(he),_e=x(Oe);if(we!==void 0){const G={key:Oe,row:he,pageIndex:Te,__trClass:_e?"selected":""};if(l.tableRowStyleFn!==void 0&&(G.__trStyle=l.tableRowStyleFn(he)),l.tableRowClassFn!==void 0){const ne=l.tableRowClassFn(he);ne&&(G.__trClass=`${ne} ${G.__trClass}`)}return we(Ee(G))}const Qe=I["body-cell"],Ke=O.value.map(G=>{const ne=I[`body-cell-${G.name}`],le=ne!==void 0?ne:Qe;return le!==void 0?le(Me({key:Oe,row:he,pageIndex:Te,col:G})):g.h("td",{class:G.__tdClass(he),style:G.__tdStyle(he)},Ne(G,he))});if(W.value===!0){const G=I["body-selection"],ne=G!==void 0?G(We({key:Oe,row:he,pageIndex:Te})):[g.h(lr,{modelValue:_e,color:l.color,dark:c.value,dense:l.dense,"onUpdate:modelValue":(le,pe)=>{k([Oe],[he],le,pe)}})];Ke.unshift(g.h("td",{class:"q-table--col-auto-width"},ne))}const re={key:Oe,class:{selected:_e}};if(l.onRowClick!==void 0&&(re.class["cursor-pointer"]=!0,re.onClick=G=>{t("rowClick",G,he,Te)}),l.onRowDblclick!==void 0&&(re.class["cursor-pointer"]=!0,re.onDblclick=G=>{t("rowDblclick",G,he,Te)}),l.onRowContextmenu!==void 0&&(re.class["cursor-pointer"]=!0,re.onContextmenu=G=>{t("rowContextmenu",G,he,Te)}),l.tableRowStyleFn!==void 0&&(re.style=l.tableRowStyleFn(he)),l.tableRowClassFn!==void 0){const G=l.tableRowClassFn(he);G&&(re.class[G]=!0)}return g.h("tr",re,Ke)}function Ie(){const he=I.body,we=I["top-row"],Te=I["bottom-row"];let Oe=V.value.map((_e,Qe)=>xe(_e,he,Qe));return we!==void 0&&(Oe=we({cols:O.value}).concat(Oe)),Te!==void 0&&(Oe=Oe.concat(Te({cols:O.value}))),g.h("tbody",Oe)}function Ee(he){return Ve(he),he.cols=he.cols.map(we=>Lt({...we},"value",()=>Ne(we,he.row))),he}function Me(he){return Ve(he),Lt(he,"value",()=>Ne(he.col,he.row)),he}function We(he){return Ve(he),he}function Ve(he){Object.assign(he,{cols:O.value,colsMap:R.value,sort:j,rowIndex:Y.value+he.pageIndex,color:l.color,dark:c.value,dense:l.dense}),W.value===!0&&Lt(he,"selected",()=>x(he.key),(we,Te)=>{k([he.key],[he.row],we,Te)}),Lt(he,"expand",()=>T(he.key),we=>{z(he.key,we)})}function Ne(he,we){const Te=typeof he.field=="function"?he.field(we):we[he.field];return he.format!==void 0?he.format(Te,we):Te}const qe=g.computed(()=>({pagination:f.value,pagesNumber:X.value,isFirstPage:B.value,isLastPage:H.value,firstPage:Z,prevPage:te,nextPage:ie,lastPage:J,inFullscreen:a.value,toggleFullscreen:s}));function Fe(){const he=I.top,we=I["top-left"],Te=I["top-right"],Oe=I["top-selection"],_e=W.value===!0&&Oe!==void 0&&y.value>0,Qe="q-table__top relative-position row items-center";if(he!==void 0)return g.h("div",{class:Qe},[he(qe.value)]);let Ke;if(_e===!0?Ke=Oe(qe.value).slice():(Ke=[],we!==void 0?Ke.push(g.h("div",{class:"q-table__control"},[we(qe.value)])):l.title&&Ke.push(g.h("div",{class:"q-table__control"},[g.h("div",{class:["q-table__title",l.titleClass]},l.title)]))),Te!==void 0&&(Ke.push(g.h("div",{class:"q-table__separator col"})),Ke.push(g.h("div",{class:"q-table__control"},[Te(qe.value)]))),Ke.length!==0)return g.h("div",{class:Qe},Ke)}const ke=g.computed(()=>C.value===!0?null:M.value);function De(){const he=Ue();return l.loading===!0&&I.loading===void 0&&he.push(g.h("tr",{class:"q-table__progress"},[g.h("th",{class:"relative-position",colspan:U.value},be())])),g.h("thead",he)}function Ue(){const he=I.header,we=I["header-cell"];if(he!==void 0)return he(Le({header:!0})).slice();const Te=O.value.map(Oe=>{const _e=I[`header-cell-${Oe.name}`],Qe=_e!==void 0?_e:we,Ke=Le({col:Oe});return Qe!==void 0?Qe(Ke):g.h(Jt,{key:Oe.name,props:Ke},()=>Oe.label)});if(L.value===!0&&l.grid!==!0)Te.unshift(g.h("th",{class:"q-table--col-auto-width"}," "));else if(A.value===!0){const Oe=I["header-selection"],_e=Oe!==void 0?Oe(Le({})):[g.h(lr,{color:l.color,modelValue:ke.value,dark:c.value,dense:l.dense,"onUpdate:modelValue":Ge})];Te.unshift(g.h("th",{class:"q-table--col-auto-width"},_e))}return[g.h("tr",{class:l.tableHeaderClass,style:l.tableHeaderStyle},Te)]}function Le(he){return Object.assign(he,{cols:O.value,sort:j,colsMap:R.value,color:l.color,dark:c.value,dense:l.dense}),A.value===!0&&Lt(he,"selected",()=>ke.value,Ge),he}function Ge(he){C.value===!0&&(he=!1),k(V.value.map(n.value),V.value,he)}const et=g.computed(()=>{const he=[l.iconFirstPage||m.iconSet.table.firstPage,l.iconPrevPage||m.iconSet.table.prevPage,l.iconNextPage||m.iconSet.table.nextPage,l.iconLastPage||m.iconSet.table.lastPage];return m.lang.rtl===!0?he.reverse():he});function He(){if(l.hideBottom===!0)return;if(oe.value===!0){if(l.hideNoData===!0)return;const Te=l.loading===!0?l.loadingLabel||m.lang.table.loading:l.filter?l.noResultsLabel||m.lang.table.noResults:l.noDataLabel||m.lang.table.noData,Oe=I["no-data"],_e=Oe!==void 0?[Oe({message:Te,icon:m.iconSet.table.warning,filter:l.filter})]:[g.h(vt,{class:"q-table__bottom-nodata-icon",name:m.iconSet.table.warning}),Te];return g.h("div",{class:xn+" q-table__bottom--nodata"},_e)}const he=I.bottom;if(he!==void 0)return g.h("div",{class:xn},[he(qe.value)]);const we=l.hideSelectedBanner!==!0&&W.value===!0&&y.value>0?[g.h("div",{class:"q-table__control"},[g.h("div",[(l.selectedRowsLabel||m.lang.table.selectedRecords)(y.value)])])]:[];if(l.hidePagination!==!0)return g.h("div",{class:xn+" justify-end"},tt(we));if(we.length!==0)return g.h("div",{class:xn},we)}function nt(he){S({page:1,rowsPerPage:he.value})}function tt(he){let we;const{rowsPerPage:Te}=f.value,Oe=l.paginationLabel||m.lang.table.pagination,_e=I.pagination,Qe=l.rowsPerPageOptions.length>1;if(he.push(g.h("div",{class:"q-table__separator col"})),Qe===!0&&he.push(g.h("div",{class:"q-table__control"},[g.h("span",{class:"q-table__bottom-item"},[l.rowsPerPageLabel||m.lang.table.recordsPerPage]),g.h(Jn,{class:"q-table__select inline q-table__bottom-item",color:l.color,modelValue:Te,options:ee.value,displayValue:Te===0?m.lang.table.allRows:Te,dark:c.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":nt})])),_e!==void 0)we=_e(qe.value);else if(we=[g.h("span",Te!==0?{class:"q-table__bottom-item"}:{},[Te?Oe(Y.value+1,Math.min(F.value,Q.value),Q.value):Oe(1,N.value,Q.value)])],Te!==0&&X.value>1){const Ke={color:l.color,round:!0,dense:!0,flat:!0};l.dense===!0&&(Ke.size="sm"),X.value>2&&we.push(g.h(ot,{key:"pgFirst",...Ke,icon:et.value[0],disable:B.value,"aria-label":m.lang.pagination.first,onClick:Z})),we.push(g.h(ot,{key:"pgPrev",...Ke,icon:et.value[1],disable:B.value,"aria-label":m.lang.pagination.prev,onClick:te}),g.h(ot,{key:"pgNext",...Ke,icon:et.value[2],disable:H.value,"aria-label":m.lang.pagination.next,onClick:ie})),X.value>2&&we.push(g.h(ot,{key:"pgLast",...Ke,icon:et.value[3],disable:H.value,"aria-label":m.lang.pagination.last,onClick:J}))}return he.push(g.h("div",{class:"q-table__control"},we)),he}function Ye(){const he=l.gridHeader===!0?[g.h("table",{class:"q-table"},[De()])]:l.loading===!0&&I.loading===void 0?be():void 0;return g.h("div",{class:"q-table__middle"},he)}function st(){const he=I.item!==void 0?I.item:we=>{const Te=we.cols.map(_e=>g.h("div",{class:"q-table__grid-item-row"},[g.h("div",{class:"q-table__grid-item-title"},[_e.label]),g.h("div",{class:"q-table__grid-item-value"},[_e.value])]));if(W.value===!0){const _e=I["body-selection"],Qe=_e!==void 0?_e(we):[g.h(lr,{modelValue:we.selected,color:l.color,dark:c.value,dense:l.dense,"onUpdate:modelValue":(Ke,re)=>{k([we.key],[we.row],Ke,re)}})];Te.unshift(g.h("div",{class:"q-table__grid-item-row"},Qe),g.h(Gr,{dark:c.value}))}const Oe={class:["q-table__grid-item-card"+o.value,l.cardClass],style:l.cardStyle};if(l.cardStyleFn!==void 0&&(Oe.style=[Oe.style,l.cardStyleFn(we.row)]),l.cardClassFn!==void 0){const _e=l.cardClassFn(we.row);_e&&(Oe.class[0]+=` ${_e}`)}return(l.onRowClick!==void 0||l.onRowDblclick!==void 0||l.onRowContextmenu!==void 0)&&(Oe.class[0]+=" cursor-pointer",l.onRowClick!==void 0&&(Oe.onClick=_e=>{t("RowClick",_e,we.row,we.pageIndex)}),l.onRowDblclick!==void 0&&(Oe.onDblclick=_e=>{t("RowDblclick",_e,we.row,we.pageIndex)}),l.onRowContextmenu!==void 0&&(Oe.onContextmenu=_e=>{t("rowContextmenu",_e,we.row,we.pageIndex)})),g.h("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(we.selected===!0?" q-table__grid-item--selected":"")},[g.h("div",Oe,Te)])};return g.h("div",{class:["q-table__grid-content row",l.cardContainerClass],style:l.cardContainerStyle},V.value.map((we,Te)=>he(Ee({key:n.value(we),row:we,pageIndex:Te}))))}return Object.assign(v.proxy,{requestServerInteraction:p,setPagination:S,firstPage:Z,prevPage:te,nextPage:ie,lastPage:J,isRowSelected:x,clearSelection:w,isRowExpanded:T,setExpanded:D,sort:j,resetVirtualScroll:fe,scrollTo:de,getCellValue:Ne}),Bs(v.proxy,{filteredSortedRows:()=>P.value,computedRows:()=>V.value,computedRowsNumber:()=>Q.value}),()=>{const he=[Fe()],we={ref:e,class:d.value};return l.grid===!0?he.push(Ye()):Object.assign(we,{class:[we.class,l.cardClass],style:l.cardStyle}),he.push(ce(),He()),l.loading===!0&&I.loading!==void 0&&he.push(I.loading()),g.h("div",we,he)}}});function Ef(l,I,t){if(!t.renderAsBadge)return null;const v={label:typeof t.format=="function"?t.format(l):String(l),outline:t.badgeOutline,rounded:t.badgeRounded,size:t.badgeSize||"md",class:t.badgeClass};if(t.badgeMapping){const m=String(l).toLowerCase(),c=t.badgeMapping[m]||t.badgeMapping[l];c&&(v.color=c.color,v.label=c.label||v.label,v.icon=c.icon,v.outline=c.outline??v.outline)}return typeof t.badgeColor=="function"?v.color=t.badgeColor(l,I):t.badgeColor?v.color=t.badgeColor:v.color||(v.color=Mf(l)),v}function Mf(l){const I=String(l).toLowerCase();return{active:"green",inactive:"grey",pending:"orange",approved:"blue",rejected:"red",completed:"green",cancelled:"red",success:"green",error:"red",warning:"orange",info:"blue",draft:"grey",published:"green",archived:"grey-7",true:"green",false:"grey",yes:"green",no:"grey",enabled:"green",disabled:"grey"}[I]||"primary"}function qt(l,I){const t=Rf(l,I);return{value:t,badgeConfig:Ef(t,l,I)}}const Tf={shouldShowExpandButton:()=>!0,shouldShowSelectionColumn:()=>!0};function Rf(l,I){return typeof I.field=="function"?I.field(l):l[I.field]}function Ii(l,I){return typeof l.visible=="function"?l.visible(I):l.visible!==!1}function Rr(l,I){return typeof l.disabled=="function"?l.disabled(I):!!l.disabled}function ha(l,I,t,v){return l.filter(m=>Ii(m,I)&&(m.position===t||m.position==="both")&&(!v||m.columnName===v))}function Sn(l,I){return Rr(l,I)?"grey":l.color||"primary"}function kn(l,I,t,v="action"){return l.testId?typeof l.testId=="function"?l.testId(I):l.testId:`${v}-${l.id}-${I[t]}`}function pr(l,I){return l[I]||String(l.id)||String(l._id)||JSON.stringify(l)}function Bf(l,I,t){const v=pr(l,t);return I.some(m=>pr(m,t)===v)}function If(l,I){const t=g.ref(new Set);return(()=>{if(I&&typeof localStorage<"u")try{const o=localStorage.getItem(I);if(o){const i=JSON.parse(o),d=new Set(Object.keys(i).filter(h=>i[h]));t.value=d;return}}catch(o){console.warn("Error loading column state from localStorage:",o)}l.forEach(o=>{!o.hidden&&!o.isSelectionColumn&&t.value.add(o.name)})})(),I&&g.watch(t,o=>{try{const i={};l.forEach(d=>{i[d.name]=o.has(d.name)}),localStorage.setItem(I,JSON.stringify(i))}catch(i){console.warn("Error saving column state to localStorage:",i)}},{deep:!0}),{visibleColumns:t,toggleColumnVisibility:o=>{const i=new Set(t.value);i.has(o)?i.delete(o):i.add(o),t.value=i},showColumn:o=>{t.value.add(o)},hideColumn:o=>{t.value.delete(o)},showAllColumns:()=>{const o=new Set;l.forEach(i=>{o.add(i.name)}),t.value=o},hideAllColumns:()=>{t.value.clear()},resetColumns:()=>{t.value.clear(),l.forEach(o=>{!o.hidden&&!o.isSelectionColumn&&t.value.add(o.name)}),I&&typeof localStorage<"u"&&localStorage.removeItem(I)},filteredColumns:o=>o.filter(i=>t.value.has(i.name)),isColumnVisible:o=>t.value.has(o)}}const Of={key:0,class:"row items-center q-mb-md q-pa-sm bg-blue-1 rounded-borders"},Ff={class:"col-auto q-mr-md"},jf={class:"col"},Df={class:"flex items-center gap-2"},Pf={key:1,class:"row items-center q-mb-sm q-pa-xs bg-grey-2 rounded-borders"},Nf={class:"col"},Lf={class:"flex items-center flex-wrap gap-1"},Vf={class:"column-container"},qf={class:"column-label ellipsis"},zf={key:0,"auto-width":"",class:"q-pa-xs selection-cell"},Uf={key:1,"auto-width":"",class:"expand-cell"},Wf=["onClick"],Hf={class:"flex items-center"},Yf={key:1,class:"text-no-wrap ellipsis"},Qf={colspan:"100%"},Kf=g.defineComponent({__name:"CustomTable",props:{columns:{},results:{},filter:{default:null},pagination:{},loading:{type:Boolean,default:!1},onRequest:{},rowKey:{default:"id"},services:{default:()=>({})},conditionals:{default:()=>({})},actions:{type:[Array,Function],default:()=>[]},showSkeleton:{type:Boolean,default:!1},rowClasses:{type:[String,Function],default:void 0},selection:{default:"none"},selected:{default:()=>[]},onSelectionChange:{},selectable:{type:Function,default:()=>!0},showSelectAll:{type:Boolean,default:!0},showColumnToggle:{type:Boolean,default:!1},columnStorageKey:{default:void 0},onRowDblClick:{}},emits:["update:pagination","update:selected","selection-change"],setup(l,{expose:I,emit:t}){const v=l,m=t,c=g.ref([]),a=g.ref(v.selected||[]),s=g.useSlots(),n=g.computed(()=>!!s.expanded),{toggleColumnVisibility:e,resetColumns:r,filteredColumns:u,isColumnVisible:o}=If(v.columns,v.columnStorageKey),i=g.computed(()=>u(v.columns)),d=g.computed({get(){return v.pagination},set(q){m("update:pagination",q)}}),h=g.computed(()=>({...Tf,...v.conditionals})),f=q=>h.value.shouldShowExpandButton(q),b=q=>c.value.includes(q[v.rowKey]),p=g.computed(()=>{if(v.selection!=="none")return v.selection}),S=g.computed(()=>v.selection==="none"?!1:h.value.shouldShowSelectionColumn()),_=g.computed(()=>v.results.length===0?!1:typeof v.actions=="function"?!0:v.actions.some(q=>Ii(q,v.results[0])&&(q.position==="row"||q.position==="both"))),T=g.computed(()=>S.value?[{name:"__selection",label:"",field:"__selection",align:"center",sortable:!1,isSelectionColumn:!0},...i.value]:i.value),D=q=>typeof v.selectable=="function"?v.selectable(q):v.selectable!==!1,z=q=>Bf(q,a.value,v.rowKey),P=g.computed(()=>v.results.filter(q=>D(q))),N=g.computed(()=>P.value.length===0?!1:P.value.every(q=>z(q))),V=g.computed(()=>a.value.length===0?!1:!N.value&&P.value.some(q=>z(q)));g.watch(()=>v.selected,q=>{JSON.stringify(q)!==JSON.stringify(a.value)&&(a.value=q||[])},{deep:!0}),g.watch(a,q=>{m("update:selected",q),m("selection-change",q)},{deep:!0});function W(q,K){if(!D(q))return;const j=pr(q,v.rowKey);K?a.value.some(Y=>pr(Y,v.rowKey)===j)||(a.value=[...a.value,q]):a.value=a.value.filter(Y=>pr(Y,v.rowKey)!==j)}function L(q){if(q){const K=[...a.value];P.value.forEach(j=>{z(j)||K.push(j)}),a.value=K}else{const K=new Set(P.value.map(j=>pr(j,v.rowKey)));a.value=a.value.filter(j=>!K.has(pr(j,v.rowKey)))}}function A(){a.value=[]}const M=q=>v.rowClasses&&typeof v.rowClasses=="function"?v.rowClasses(q):v.rowClasses||"";function C(q){return typeof v.actions=="function"?v.actions(q):v.actions.filter(K=>Ii(K,q))}function y(q){return ha(C(q),q,"row")}function x(q,K){return ha(C(q),q,"cell",K)}function w(q){if(v.onRowDblClick){v.onRowDblClick(q);return}const K=k(q);K&&!Rr(K,q)&&K.handler(q)}function k(q){return C(q).find(j=>j.id==="edit")}function E(q,K){const j=x(q,K);for(const Y of j)Rr(Y,q)||Y.handler(q)}async function O(q,K=!1){const j=q[v.rowKey];if(b(q)||K)c.value=c.value.filter(Y=>Y!==j);else if(c.value=[j],v.services.fetchDetails)try{q.details=await v.services.fetchDetails(q)}catch(Y){console.error("Error fetching details:",Y)}}async function R(q,K){if(!Rr(q,K))try{q.isCancel&&await O(K,!0),q.handler(K)}catch(j){console.error(`Error executing action ${q.id}:`,j)}}function U(q){d.value=q.pagination,v.onRequest&&v.onRequest(q)}return I({clearSelection:A,getSelectedRows:()=>a.value,toggleRowSelection:W,toggleSelectAll:L,toggleColumnVisibility:e,resetColumns:r}),(q,K)=>(g.openBlock(),g.createElementBlock(g.Fragment,null,[a.value.length>0?(g.openBlock(),g.createElementBlock("div",Of,[g.createElementVNode("div",Ff,[g.createVNode(tn,{color:"primary",class:"q-pa-xs"},{default:g.withCtx(()=>[g.createTextVNode(g.toDisplayString(a.value.length)+" sélectionné(s) ",1)]),_:1})]),g.createElementVNode("div",jf,[g.createElementVNode("div",Df,[g.renderSlot(q.$slots,"selection-actions",{selected:a.value,clearSelection:A},()=>[g.createVNode(ot,{dense:"",icon:"mdi-close",label:"Effacer",onClick:A,size:"sm"})],!0)])])])):g.createCommentVNode("",!0),q.showColumnToggle&&q.columns.length>0?(g.openBlock(),g.createElementBlock("div",Pf,[K[2]||(K[2]=g.createElementVNode("div",{class:"col-auto q-mr-sm"},[g.createElementVNode("span",{class:"text-caption text-grey-7"},"Colonnes:")],-1)),g.createElementVNode("div",Nf,[g.createElementVNode("div",Lf,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(q.columns.filter(j=>!j.isSelectionColumn),j=>(g.openBlock(),g.createBlock(io,{key:j.name,clickable:"",color:g.unref(o)(j.name)?"primary":"grey-5","text-color":"white",icon:g.unref(o)(j.name)?"visibility":"visibility_off",size:"sm",onClick:Y=>g.unref(e)(j.name)},{default:g.withCtx(()=>[g.createTextVNode(g.toDisplayString(j.label),1)]),_:2},1032,["color","icon","onClick"]))),128)),q.columnStorageKey?(g.openBlock(),g.createBlock(ot,{key:0,flat:"",dense:"",size:"sm",icon:"refresh",color:"grey",onClick:g.unref(r)},{default:g.withCtx(()=>[g.createVNode(ar,null,{default:g.withCtx(()=>K[1]||(K[1]=[g.createTextVNode("Réinitialiser les colonnes")])),_:1,__:[1]})]),_:1},8,["onClick"])):g.createCommentVNode("",!0)])])])):g.createCommentVNode("",!0),g.createVNode(Cs,{pagination:d.value,"onUpdate:pagination":K[0]||(K[0]=j=>d.value=j),columns:T.value,rows:q.results,filter:q.filter,"row-key":q.rowKey,"binary-state-sort":"","rows-per-page-options":d.value.rowsPerPageOptions,onRequest:U,loading:q.loading,"hide-no-data":q.loading,class:"q-mb-xl",flat:"",bordered:""},{header:g.withCtx(j=>[g.createVNode(sr,{props:j},{default:g.withCtx(()=>[S.value?(g.openBlock(),g.createBlock(Jt,{key:0,"auto-width":"",class:"selection-column"},{default:g.withCtx(()=>[p.value==="multiple"?(g.openBlock(),g.createBlock(lr,{key:0,"model-value":N.value,indeterminate:V.value,"onUpdate:modelValue":L,disabled:q.loading||P.value.length===0,"data-cy":"select-all-checkbox",dense:"",size:"sm"},null,8,["model-value","indeterminate","disabled"])):g.createCommentVNode("",!0)]),_:1})):g.createCommentVNode("",!0),n.value?(g.openBlock(),g.createBlock(Jt,{key:1,"auto-width":"",class:"expand-column"})):g.createCommentVNode("",!0),(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(j.cols.filter(Y=>!Y.isSelectionColumn),Y=>(g.openBlock(),g.createBlock(Jt,{key:Y.name,props:j,class:"column-header"},{default:g.withCtx(()=>[g.createElementVNode("div",Vf,[g.createElementVNode("span",qf,g.toDisplayString(Y.label),1),q.showColumnToggle?(g.openBlock(),g.createBlock(ot,{key:0,flat:"",dense:"",size:"xs",icon:"close",onClick:g.withModifiers(F=>g.unref(e)(Y.name),["stop"]),class:"column-close-btn"},{default:g.withCtx(()=>[g.createVNode(ar,null,{default:g.withCtx(()=>K[3]||(K[3]=[g.createTextVNode("Cacher cette colonne")])),_:1,__:[3]})]),_:2},1032,["onClick"])):g.createCommentVNode("",!0)])]),_:2},1032,["props"]))),128)),_.value?(g.openBlock(),g.createBlock(Jt,{key:2,"auto-width":"",class:"actions-column"},{default:g.withCtx(()=>K[4]||(K[4]=[g.createTextVNode(" Actions ")])),_:1,__:[4]})):g.createCommentVNode("",!0)]),_:2},1032,["props"])]),body:g.withCtx(j=>[q.showSkeleton?(g.openBlock(),g.createElementBlock(g.Fragment,{key:0},g.renderList(5,Y=>g.createVNode(sr,{key:`skeleton-${Y}`},{default:g.withCtx(()=>[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(T.value.filter(F=>!F.isSelectionColumn),F=>(g.openBlock(),g.createBlock(Dr,{key:F.name},{default:g.withCtx(()=>[g.createVNode(Wn,{type:"text"})]),_:2},1024))),128)),_.value?(g.openBlock(),g.createBlock(Dr,{key:0},{default:g.withCtx(()=>[g.createVNode(Wn,{type:"QBtn"})]),_:1})):g.createCommentVNode("",!0)]),_:2},1024)),64)):(g.openBlock(),g.createBlock(sr,{key:1,"data-cy":`row-${j.row[q.rowKey]}`,props:j,class:g.normalizeClass([{"bg-grey-3":j.row.archived},M(j.row),z(j.row)?"selected-row":""]),onDblclick:Y=>w(j.row)},{default:g.withCtx(()=>[S.value?(g.openBlock(),g.createElementBlock("td",zf,[g.createVNode(lr,{"model-value":z(j.row),"onUpdate:modelValue":Y=>W(j.row,Y),disabled:!D(j.row),"data-cy":`row-checkbox-${j.row[q.rowKey]}`,dense:"",size:"sm"},null,8,["model-value","onUpdate:modelValue","disabled","data-cy"])])):g.createCommentVNode("",!0),n.value?(g.openBlock(),g.createElementBlock("td",Uf,[g.renderSlot(q.$slots,"expand-button",{row:j.row,expanded:b(j.row),toggle:()=>O(j.row)},()=>[f(j.row)?(g.openBlock(),g.createBlock(ot,{key:0,"data-cy":`expand-button-${j.row[q.rowKey]}`,size:"sm",color:"primary",round:"",dense:"",icon:b(j.row)?"remove":"add",onClick:Y=>O(j.row)},null,8,["data-cy","icon","onClick"])):g.createCommentVNode("",!0)],!0)])):g.createCommentVNode("",!0),(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(j.cols.filter(Y=>!Y.isSelectionColumn),Y=>(g.openBlock(),g.createElementBlock("td",{key:Y.name,onClick:g.withModifiers(F=>E(j.row,Y.name),["stop"]),class:"data-cell"},[g.renderSlot(q.$slots,"body-cell",{row:j.row,col:Y,value:g.unref(qt)(j.row,Y).value,badgeConfig:g.unref(qt)(j.row,Y).badgeConfig},()=>[g.createElementVNode("div",Hf,[g.unref(qt)(j.row,Y).badgeConfig?(g.openBlock(),g.createBlock(tn,{key:0,color:g.unref(qt)(j.row,Y).badgeConfig?.color,outline:g.unref(qt)(j.row,Y).badgeConfig?.outline,rounded:g.unref(qt)(j.row,Y).badgeConfig?.rounded,size:g.unref(qt)(j.row,Y).badgeConfig?.size,icon:g.unref(qt)(j.row,Y).badgeConfig?.icon,class:g.normalizeClass(g.unref(qt)(j.row,Y).badgeConfig?.class)},{default:g.withCtx(()=>[g.createTextVNode(g.toDisplayString(g.unref(qt)(j.row,Y).badgeConfig?.label),1)]),_:2},1032,["color","outline","rounded","size","icon","class"])):(g.openBlock(),g.createElementBlock("span",Yf,g.toDisplayString(g.unref(qt)(j.row,Y).value),1)),(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(x(j.row,Y.name),F=>(g.openBlock(),g.createElementBlock(g.Fragment,{key:F.id},[F.isButton?(g.openBlock(),g.createBlock(ot,g.mergeProps({key:0,color:g.unref(Sn)(F,j.row),size:F.size||"sm",class:F.class,disabled:g.unref(Rr)(F,j.row),label:F.label},{ref_for:!0},F.buttonProps||{},{"data-cy":g.unref(kn)(F,j.row,q.rowKey),onClick:g.withModifiers(B=>R(F,j.row),["stop"])}),null,16,["color","size","class","disabled","label","data-cy","onClick"])):(g.openBlock(),g.createBlock(vt,{key:1,class:"cursor-pointer q-ml-sm",name:F.icon,color:g.unref(Sn)(F,j.row),size:F.size||"20px","data-cy":g.unref(kn)(F,j.row,q.rowKey,"cell-icon"),onClick:g.withModifiers(B=>R(F,j.row),["stop"])},{default:g.withCtx(()=>[F.label?(g.openBlock(),g.createBlock(ar,{key:0},{default:g.withCtx(()=>[g.createTextVNode(g.toDisplayString(F.label),1)]),_:2},1024)):g.createCommentVNode("",!0)]),_:2},1032,["name","color","size","data-cy","onClick"]))],64))),128))])],!0)],8,Wf))),128)),g.createVNode(Dr,{class:g.normalizeClass(["row items-center justify-center no-wrap actions-cell",M(j.row)])},{default:g.withCtx(()=>[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(y(j.row),Y=>(g.openBlock(),g.createElementBlock(g.Fragment,{key:Y.id},[Y.isButton?(g.openBlock(),g.createBlock(ot,g.mergeProps({key:0,color:g.unref(Sn)(Y,j.row),size:Y.size||"sm",class:Y.class,disabled:g.unref(Rr)(Y,j.row),label:Y.label},{ref_for:!0},Y.buttonProps||{},{"data-cy":g.unref(kn)(Y,j.row,q.rowKey),onClick:g.withModifiers(F=>R(Y,j.row),["stop"])}),null,16,["color","size","class","disabled","label","data-cy","onClick"])):(g.openBlock(),g.createBlock(vt,{key:1,class:"cursor-pointer q-mr-sm",name:Y.icon,color:g.unref(Sn)(Y,j.row),size:Y.size||"25px","data-cy":g.unref(kn)(Y,j.row,q.rowKey,"icon"),onClick:g.withModifiers(F=>R(Y,j.row),["stop"])},{default:g.withCtx(()=>[Y.label?(g.openBlock(),g.createBlock(ar,{key:0},{default:g.withCtx(()=>[g.createTextVNode(g.toDisplayString(Y.label),1)]),_:2},1024)):g.createCommentVNode("",!0)]),_:2},1032,["name","color","size","data-cy","onClick"]))],64))),128))]),_:2},1032,["class"])]),_:2},1032,["data-cy","props","class","onDblclick"])),n.value&&b(j.row)?(g.openBlock(),g.createBlock(sr,{key:2},{default:g.withCtx(()=>[g.createElementVNode("td",Qf,[g.renderSlot(q.$slots,"expanded",{row:j.row},void 0,!0)])]),_:2},1024)):g.createCommentVNode("",!0)]),_:3},8,["pagination","columns","rows","filter","row-key","rows-per-page-options","loading","hide-no-data"])],64))}}),Xf=Yt(Kf,[["__scopeId","data-v-31ba3090"]]);var ut=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gf(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}function Cn(l){throw new Error('Could not dynamically require "'+l+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var bi={exports:{}};/*! ExcelJS 19-10-2023 */var pa;function Jf(){return pa||(pa=1,function(l,I){(function(t){l.exports=t()})(function(){return function t(v,m,c){function a(e,r){if(!m[e]){if(!v[e]){var u=typeof Cn=="function"&&Cn;if(!r&&u)return u(e,!0);if(s)return s(e,!0);var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}var i=m[e]={exports:{}};v[e][0].call(i.exports,function(d){return a(v[e][1][d]||d)},i,i.exports,t,v,m,c)}return m[e].exports}for(var s=typeof Cn=="function"&&Cn,n=0;n<c.length;n++)a(c[n]);return a}({1:[function(t,v,m){const c=t("fs"),a=t("fast-csv"),s=t("dayjs/plugin/customParseFormat"),n=t("dayjs/plugin/utc"),e=t("dayjs").extend(s).extend(n),r=t("../utils/stream-buf"),{fs:{exists:u}}=t("../utils/utils"),o={true:!0,false:!1,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}};v.exports=class{constructor(i){this.workbook=i,this.worksheet=null}async readFile(i,d){if(d=d||{},!await u(i))throw new Error("File not found: "+i);const h=c.createReadStream(i),f=await this.read(h,d);return h.close(),f}read(i,d){return d=d||{},new Promise((h,f)=>{const b=this.workbook.addWorksheet(d.sheetName),p=d.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],S=d.map||function(T){if(T==="")return null;const D=Number(T);if(!Number.isNaN(D)&&D!==1/0)return D;const z=p.reduce((N,V)=>{if(N)return N;const W=e(T,V,!0);return W.isValid()?W:null},null);if(z)return new Date(z.valueOf());const P=o[T];return P!==void 0?P:T},_=a.parse(d.parserOptions).on("data",T=>{b.addRow(T.map(S))}).on("end",()=>{_.emit("worksheet",b)});_.on("worksheet",h).on("error",f),i.pipe(_)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(i,d){return new Promise((h,f)=>{d=d||{};const b=this.workbook.getWorksheet(d.sheetName||d.sheetId),p=a.format(d.formatterOptions);i.on("finish",()=>{h()}),p.on("error",f),p.pipe(i);const{dateFormat:S,dateUTC:_}=d,T=d.map||(P=>{if(P){if(P.text||P.hyperlink)return P.hyperlink||P.text||"";if(P.formula||P.result)return P.result||"";if(P instanceof Date)return S?_?e.utc(P).format(S):e(P).format(S):_?e.utc(P).format():e(P).format();if(P.error)return P.error;if(typeof P=="object")return JSON.stringify(P)}return P}),D=d.includeEmptyRows===void 0||d.includeEmptyRows;let z=1;b&&b.eachRow((P,N)=>{if(D)for(;z++<N-1;)p.write([]);const{values:V}=P;V.shift(),p.write(V.map(T)),z=N}),p.end()})}writeFile(i,d){const h={encoding:(d=d||{}).encoding||"utf8"},f=c.createWriteStream(i,h);return this.write(f,d)}async writeBuffer(i){const d=new r;return await this.write(d,i),d.read()}}},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(t,v,m){const c=t("../utils/col-cache");class a{constructor(n,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=n,e)if(typeof e=="string"){const u=c.decodeAddress(e);this.nativeCol=u.col+r,this.nativeColOff=0,this.nativeRow=u.row+r,this.nativeRowOff=0}else e.nativeCol!==void 0?(this.nativeCol=e.nativeCol||0,this.nativeColOff=e.nativeColOff||0,this.nativeRow=e.nativeRow||0,this.nativeRowOff=e.nativeRowOff||0):e.col!==void 0?(this.col=e.col+r,this.row=e.row+r):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(n){return n instanceof a||n==null?n:new a(n)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(n){this.nativeCol=Math.floor(n),this.nativeColOff=Math.floor((n-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(n){this.nativeRow=Math.floor(n),this.nativeRowOff=Math.floor((n-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(n){this.nativeCol=n.nativeCol,this.nativeColOff=n.nativeColOff,this.nativeRow=n.nativeRow,this.nativeRowOff=n.nativeRowOff}}v.exports=a},{"../utils/col-cache":19}],3:[function(t,v,m){const c=t("../utils/col-cache"),a=t("../utils/under-dash"),s=t("./enums"),{slideFormula:n}=t("../utils/shared-formula"),e=t("./note");class r{constructor(i,d,h){if(!i||!d)throw new Error("A Cell needs a Row");this._row=i,this._column=d,c.validateAddress(h),this._address=h,this._value=u.create(r.Types.Null,this),this.style=this._mergeStyle(i.style,d.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(i){this.style.numFmt=i}get font(){return this.style.font}set font(i){this.style.font=i}get alignment(){return this.style.alignment}set alignment(i){this.style.alignment=i}get border(){return this.style.border}set border(i){this.style.border=i}get fill(){return this.style.fill}set fill(i){this.style.fill=i}get protection(){return this.style.protection}set protection(i){this.style.protection=i}_mergeStyle(i,d,h){const f=i&&i.numFmt||d&&d.numFmt;f&&(h.numFmt=f);const b=i&&i.font||d&&d.font;b&&(h.font=b);const p=i&&i.alignment||d&&d.alignment;p&&(h.alignment=p);const S=i&&i.border||d&&d.border;S&&(h.border=S);const _=i&&i.fill||d&&d.fill;_&&(h.fill=_);const T=i&&i.protection||d&&d.protection;return T&&(h.protection=T),h}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===r.Types.Merge}merge(i,d){this._value.release(),this._value=u.create(r.Types.Merge,this,i),d||(this.style=i.style)}unmerge(){this.type===r.Types.Merge&&(this._value.release(),this._value=u.create(r.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(i){return this._value.type===r.Types.Merge&&this._value.isMergedTo(i)}get master(){return this.type===r.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===r.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(i){this.type!==r.Types.Merge?(this._value.release(),this._value=u.create(u.getType(i),this,i)):this._value.master.value=i}get note(){return this._comment&&this._comment.note}set note(i){this._comment=new e(i)}get text(){return this._value.toString()}get html(){return a.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(i){this.type===r.Types.String&&(this._value=u.create(r.Types.Hyperlink,this,{text:this._value.value,hyperlink:i}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:i}=this._row;return{sheetName:i.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(i){this.names=[i]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(i){const{definedNames:d}=this.workbook;d.removeAllNames(this.fullAddress),i.forEach(h=>{d.addEx(this.fullAddress,h)})}addName(i){this.workbook.definedNames.addEx(this.fullAddress,i)}removeName(i){this.workbook.definedNames.removeEx(this.fullAddress,i)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(i){this._dataValidations.add(this.address,i)}get model(){const{model:i}=this._value;return i.style=this.style,this._comment&&(i.comment=this._comment.model),i}set model(i){if(this._value.release(),this._value=u.create(i.type,this),this._value.model=i,i.comment)switch(i.comment.type){case"note":this._comment=e.fromModel(i.comment)}i.style?this.style=i.style:this.style={}}}r.Types=s.ValueType;const u={getType:o=>o==null?r.Types.Null:o instanceof String||typeof o=="string"?r.Types.String:typeof o=="number"?r.Types.Number:typeof o=="boolean"?r.Types.Boolean:o instanceof Date?r.Types.Date:o.text&&o.hyperlink?r.Types.Hyperlink:o.formula||o.sharedFormula?r.Types.Formula:o.richText?r.Types.RichText:o.sharedString?r.Types.SharedString:o.error?r.Types.Error:r.Types.JSON,types:[{t:r.Types.Null,f:class{constructor(o){this.model={address:o.address,type:r.Types.Null}}get value(){return null}set value(o){}get type(){return r.Types.Null}get effectiveType(){return r.Types.Null}get address(){return this.model.address}set address(o){this.model.address=o}toCsvString(){return""}release(){}toString(){return""}}},{t:r.Types.Number,f:class{constructor(o,i){this.model={address:o.address,type:r.Types.Number,value:i}}get value(){return this.model.value}set value(o){this.model.value=o}get type(){return r.Types.Number}get effectiveType(){return r.Types.Number}get address(){return this.model.address}set address(o){this.model.address=o}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.String,f:class{constructor(o,i){this.model={address:o.address,type:r.Types.String,value:i}}get value(){return this.model.value}set value(o){this.model.value=o}get type(){return r.Types.String}get effectiveType(){return r.Types.String}get address(){return this.model.address}set address(o){this.model.address=o}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:r.Types.Date,f:class{constructor(o,i){this.model={address:o.address,type:r.Types.Date,value:i}}get value(){return this.model.value}set value(o){this.model.value=o}get type(){return r.Types.Date}get effectiveType(){return r.Types.Date}get address(){return this.model.address}set address(o){this.model.address=o}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.Hyperlink,f:class{constructor(o,i){this.model={address:o.address,type:r.Types.Hyperlink,text:i?i.text:void 0,hyperlink:i?i.hyperlink:void 0},i&&i.tooltip&&(this.model.tooltip=i.tooltip)}get value(){const o={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(o.tooltip=this.model.tooltip),o}set value(o){this.model={text:o.text,hyperlink:o.hyperlink},o.tooltip&&(this.model.tooltip=o.tooltip)}get text(){return this.model.text}set text(o){this.model.text=o}get hyperlink(){return this.model.hyperlink}set hyperlink(o){this.model.hyperlink=o}get type(){return r.Types.Hyperlink}get effectiveType(){return r.Types.Hyperlink}get address(){return this.model.address}set address(o){this.model.address=o}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:r.Types.Formula,f:class{constructor(o,i){this.cell=o,this.model={address:o.address,type:r.Types.Formula,shareType:i?i.shareType:void 0,ref:i?i.ref:void 0,formula:i?i.formula:void 0,sharedFormula:i?i.sharedFormula:void 0,result:i?i.result:void 0}}_copyModel(o){const i={},d=h=>{const f=o[h];f&&(i[h]=f)};return d("formula"),d("result"),d("ref"),d("shareType"),d("sharedFormula"),i}get value(){return this._copyModel(this.model)}set value(o){this.model=this._copyModel(o)}validate(o){switch(u.getType(o)){case r.Types.Null:case r.Types.String:case r.Types.Number:case r.Types.Date:break;case r.Types.Hyperlink:case r.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(o){this.model.formula=o}get formulaType(){return this.model.formula?s.FormulaType.Master:this.model.sharedFormula?s.FormulaType.Shared:s.FormulaType.None}get result(){return this.model.result}set result(o){this.model.result=o}get type(){return r.Types.Formula}get effectiveType(){const o=this.model.result;return o==null?s.ValueType.Null:o instanceof String||typeof o=="string"?s.ValueType.String:typeof o=="number"?s.ValueType.Number:o instanceof Date?s.ValueType.Date:o.text&&o.hyperlink?s.ValueType.Hyperlink:o.formula?s.ValueType.Formula:s.ValueType.Null}get address(){return this.model.address}set address(o){this.model.address=o}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:o}=this.cell,i=o.findCell(this.model.sharedFormula);this._translatedFormula=i&&n(i.formula,i.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:r.Types.Merge,f:class{constructor(o,i){this.model={address:o.address,type:r.Types.Merge,master:i?i.address:void 0},this._master=i,i&&i.addMergeRef()}get value(){return this._master.value}set value(o){o instanceof r?(this._master&&this._master.releaseMergeRef(),o.addMergeRef(),this._master=o):this._master.value=o}isMergedTo(o){return o===this._master}get master(){return this._master}get type(){return r.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(o){this.model.address=o}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:r.Types.JSON,f:class{constructor(o,i){this.model={address:o.address,type:r.Types.String,value:JSON.stringify(i),rawValue:i}}get value(){return this.model.rawValue}set value(o){this.model.rawValue=o,this.model.value=JSON.stringify(o)}get type(){return r.Types.String}get effectiveType(){return r.Types.String}get address(){return this.model.address}set address(o){this.model.address=o}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:r.Types.SharedString,f:class{constructor(o,i){this.model={address:o.address,type:r.Types.SharedString,value:i}}get value(){return this.model.value}set value(o){this.model.value=o}get type(){return r.Types.SharedString}get effectiveType(){return r.Types.SharedString}get address(){return this.model.address}set address(o){this.model.address=o}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.RichText,f:class{constructor(o,i){this.model={address:o.address,type:r.Types.String,value:i}}get value(){return this.model.value}set value(o){this.model.value=o}toString(){return this.model.value.richText.map(o=>o.text).join("")}get type(){return r.Types.RichText}get effectiveType(){return r.Types.RichText}get address(){return this.model.address}set address(o){this.model.address=o}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:r.Types.Boolean,f:class{constructor(o,i){this.model={address:o.address,type:r.Types.Boolean,value:i}}get value(){return this.model.value}set value(o){this.model.value=o}get type(){return r.Types.Boolean}get effectiveType(){return r.Types.Boolean}get address(){return this.model.address}set address(o){this.model.address=o}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.Error,f:class{constructor(o,i){this.model={address:o.address,type:r.Types.Error,value:i}}get value(){return this.model.value}set value(o){this.model.value=o}get type(){return r.Types.Error}get effectiveType(){return r.Types.Error}get address(){return this.model.address}set address(o){this.model.address=o}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((o,i)=>(o[i.t]=i.f,o),[]),create(o,i,d){const h=this.types[o];if(!h)throw new Error("Could not create Value of type "+o);return new h(i,d)}};v.exports=r},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(t,v,m){const c=t("../utils/under-dash"),a=t("./enums"),s=t("../utils/col-cache");class n{constructor(r,u,o){this._worksheet=r,this._number=u,o!==!1&&(this.defn=o)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return s.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(r){r?(this.key=r.key,this.width=r.width!==void 0?r.width:9,this.outlineLevel=r.outlineLevel,r.style?this.style=r.style:this.style={},this.header=r.header,this._hidden=!!r.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(r){r!==void 0?(this._header=r,this.headers.forEach((u,o)=>{this._worksheet.getCell(o+1,this.number).value=u})):this._header=void 0}get key(){return this._key}set key(r){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=r,r&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(r){this._hidden=r}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(r){this._outlineLevel=r}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(r){return this.width===r.width&&this.hidden===r.hidden&&this.outlineLevel===r.outlineLevel&&c.isEqual(this.style,r.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const r=this.style;return!r||!(r.font||r.numFmt||r.alignment||r.border||r.fill||r.protection)}get headerCount(){return this.headers.length}eachCell(r,u){const o=this.number;u||(u=r,r=null),this._worksheet.eachRow(r,(i,d)=>{u(i.getCell(o),d)})}get values(){const r=[];return this.eachCell((u,o)=>{u&&u.type!==a.ValueType.Null&&(r[o]=u.value)}),r}set values(r){if(!r)return;const u=this.number;let o=0;r.hasOwnProperty("0")&&(o=1),r.forEach((i,d)=>{this._worksheet.getCell(d+o,u).value=i})}_applyStyle(r,u){return this.style[r]=u,this.eachCell(o=>{o[r]=u}),u}get numFmt(){return this.style.numFmt}set numFmt(r){this._applyStyle("numFmt",r)}get font(){return this.style.font}set font(r){this._applyStyle("font",r)}get alignment(){return this.style.alignment}set alignment(r){this._applyStyle("alignment",r)}get protection(){return this.style.protection}set protection(r){this._applyStyle("protection",r)}get border(){return this.style.border}set border(r){this._applyStyle("border",r)}get fill(){return this.style.fill}set fill(r){this._applyStyle("fill",r)}static toModel(r){const u=[];let o=null;return r&&r.forEach((i,d)=>{i.isDefault?o&&(o=null):o&&i.equivalentTo(o)?o.max=d+1:(o={min:d+1,max:d+1,width:i.width!==void 0?i.width:9,style:i.style,isCustomWidth:i.isCustomWidth,hidden:i.hidden,outlineLevel:i.outlineLevel,collapsed:i.collapsed},u.push(o))}),u.length?u:void 0}static fromModel(r,u){const o=[];let i=1,d=0;for(u=(u=u||[]).sort(function(h,f){return h.min-f.min});d<u.length;){const h=u[d++];for(;i<h.min;)o.push(new n(r,i++));for(;i<=h.max;)o.push(new n(r,i++,h))}return o.length?o:null}}v.exports=n},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(t,v,m){v.exports=class{constructor(c){this.model=c||{}}add(c,a){return this.model[c]=a}find(c){return this.model[c]}remove(c){this.model[c]=void 0}}},{}],6:[function(t,v,m){const c=t("../utils/under-dash"),a=t("../utils/col-cache"),s=t("../utils/cell-matrix"),n=t("./range"),e=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;v.exports=class{constructor(){this.matrixMap={}}getMatrix(r){return this.matrixMap[r]||(this.matrixMap[r]=new s)}add(r,u){const o=a.decodeEx(r);this.addEx(o,u)}addEx(r,u){const o=this.getMatrix(u);if(r.top)for(let i=r.left;i<=r.right;i++)for(let d=r.top;d<=r.bottom;d++){const h={sheetName:r.sheetName,address:a.n2l(i)+d,row:d,col:i};o.addCellEx(h)}else o.addCellEx(r)}remove(r,u){const o=a.decodeEx(r);this.removeEx(o,u)}removeEx(r,u){this.getMatrix(u).removeCellEx(r)}removeAllNames(r){c.each(this.matrixMap,u=>{u.removeCellEx(r)})}forEach(r){c.each(this.matrixMap,(u,o)=>{u.forEach(i=>{r(o,i)})})}getNames(r){return this.getNamesEx(a.decodeEx(r))}getNamesEx(r){return c.map(this.matrixMap,(u,o)=>u.findCellEx(r)&&o).filter(Boolean)}_explore(r,u){u.mark=!1;const{sheetName:o}=u,i=new n(u.row,u.col,u.row,u.col,o);let d,h;function f(p,S){const _=r.findCellAt(o,p,u.col);return!(!_||!_.mark)&&(i[S]=p,_.mark=!1,!0)}for(h=u.row-1;f(h,"top");h--);for(h=u.row+1;f(h,"bottom");h++);function b(p,S){const _=[];for(h=i.top;h<=i.bottom;h++){const T=r.findCellAt(o,h,p);if(!T||!T.mark)return!1;_.push(T)}i[S]=p;for(let T=0;T<_.length;T++)_[T].mark=!1;return!0}for(d=u.col-1;b(d,"left");d--);for(d=u.col+1;b(d,"right");d++);return i}getRanges(r,u){return(u=u||this.matrixMap[r])?(u.forEach(o=>{o.mark=!0}),{name:r,ranges:u.map(o=>o.mark&&this._explore(u,o)).filter(Boolean).map(o=>o.$shortRange)}):{name:r,ranges:[]}}normaliseMatrix(r,u){r.forEachInSheet(u,(o,i,d)=>{o&&(o.row===i&&o.col===d||(o.row=i,o.col=d,o.address=a.n2l(d)+i))})}spliceRows(r,u,o,i){c.each(this.matrixMap,d=>{d.spliceRows(r,u,o,i),this.normaliseMatrix(d,r)})}spliceColumns(r,u,o,i){c.each(this.matrixMap,d=>{d.spliceColumns(r,u,o,i),this.normaliseMatrix(d,r)})}get model(){return c.map(this.matrixMap,(r,u)=>this.getRanges(u,r)).filter(r=>r.ranges.length)}set model(r){const u=this.matrixMap={};r.forEach(o=>{const i=u[o.name]=new s;o.ranges.forEach(d=>{e.test(d.split("!").pop()||"")&&i.addCell(d)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(t,v,m){v.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(t,v,m){const c=t("../utils/col-cache"),a=t("./anchor");v.exports=class{constructor(s,n){this.worksheet=s,this.model=n}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(s){let{type:n,imageId:e,range:r,hyperlinks:u}=s;if(this.type=n,this.imageId=e,n==="image")if(typeof r=="string"){const o=c.decode(r);this.range={tl:new a(this.worksheet,{col:o.left,row:o.top},-1),br:new a(this.worksheet,{col:o.right,row:o.bottom},0),editAs:"oneCell"}}else this.range={tl:new a(this.worksheet,r.tl,0),br:r.br&&new a(this.worksheet,r.br,0),ext:r.ext,editAs:r.editAs,hyperlinks:u||r.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(t,v,m){const c=t("../utils/under-dash");class a{constructor(n){this.note=n}get model(){let n=null;switch(typeof this.note){case"string":n={type:"note",note:{texts:[{text:this.note}]}};break;default:n={type:"note",note:this.note}}return c.deepMerge({},a.DEFAULT_CONFIGS,n)}set model(n){const{note:e}=n,{texts:r}=e;r.length===1&&Object.keys(r[0]).length===1?this.note=r[0].text:this.note=e}static fromModel(n){const e=new a;return e.model=n,e}}a.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},v.exports=a},{"../utils/under-dash":26}],10:[function(t,v,m){const c=t("../utils/col-cache");class a{constructor(){this.decode(arguments)}setTLBR(n,e,r,u,o){if(arguments.length<4){const i=c.decodeAddress(n),d=c.decodeAddress(e);this.model={top:Math.min(i.row,d.row),left:Math.min(i.col,d.col),bottom:Math.max(i.row,d.row),right:Math.max(i.col,d.col),sheetName:r},this.setTLBR(i.row,i.col,d.row,d.col,o)}else this.model={top:Math.min(n,r),left:Math.min(e,u),bottom:Math.max(n,r),right:Math.max(e,u),sheetName:o}}decode(n){switch(n.length){case 5:this.setTLBR(n[0],n[1],n[2],n[3],n[4]);break;case 4:this.setTLBR(n[0],n[1],n[2],n[3]);break;case 3:this.setTLBR(n[0],n[1],n[2]);break;case 2:this.setTLBR(n[0],n[1]);break;case 1:{const e=n[0];if(e instanceof a)this.model={top:e.model.top,left:e.model.left,bottom:e.model.bottom,right:e.model.right,sheetName:e.sheetName};else if(e instanceof Array)this.decode(e);else if(e.top&&e.left&&e.bottom&&e.right)this.model={top:e.top,left:e.left,bottom:e.bottom,right:e.right,sheetName:e.sheetName};else{const r=c.decodeEx(e);r.top?this.model={top:r.top,left:r.left,bottom:r.bottom,right:r.right,sheetName:r.sheetName}:this.model={top:r.row,left:r.col,bottom:r.row,right:r.col,sheetName:r.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+n.length)}}get top(){return this.model.top||1}set top(n){this.model.top=n}get left(){return this.model.left||1}set left(n){this.model.left=n}get bottom(){return this.model.bottom||1}set bottom(n){this.model.bottom=n}get right(){return this.model.right||1}set right(n){this.model.right=n}get sheetName(){return this.model.sheetName}set sheetName(n){this.model.sheetName=n}get _serialisedSheetName(){const{sheetName:n}=this.model;return n?/^[a-zA-Z0-9]*$/.test(n)?n+"!":`'${n}'!`:""}expand(n,e,r,u){(!this.model.top||n<this.top)&&(this.top=n),(!this.model.left||e<this.left)&&(this.left=e),(!this.model.bottom||r>this.bottom)&&(this.bottom=r),(!this.model.right||u>this.right)&&(this.right=u)}expandRow(n){if(n){const{dimensions:e,number:r}=n;e&&this.expand(r,e.min,r,e.max)}}expandToAddress(n){const e=c.decodeEx(n);this.expand(e.row,e.col,e.row,e.col)}get tl(){return c.n2l(this.left)+this.top}get $t$l(){return`$${c.n2l(this.left)}$${this.top}`}get br(){return c.n2l(this.right)+this.bottom}get $b$r(){return`$${c.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(n){return(!n.sheetName||!this.sheetName||n.sheetName===this.sheetName)&&!(n.bottom<this.top)&&!(n.top>this.bottom)&&!(n.right<this.left)&&!(n.left>this.right)}contains(n){const e=c.decodeEx(n);return this.containsEx(e)}containsEx(n){return(!n.sheetName||!this.sheetName||n.sheetName===this.sheetName)&&n.row>=this.top&&n.row<=this.bottom&&n.col>=this.left&&n.col<=this.right}forEachAddress(n){for(let e=this.left;e<=this.right;e++)for(let r=this.top;r<=this.bottom;r++)n(c.encodeAddress(r,e),r,e)}}v.exports=a},{"../utils/col-cache":19}],11:[function(t,v,m){const c=t("../utils/under-dash"),a=t("./enums"),s=t("../utils/col-cache"),n=t("./cell");v.exports=class{constructor(e,r){this._worksheet=e,this._number=r,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(e){return this._cells[e-1]}getCellEx(e){let r=this._cells[e.col-1];if(!r){const u=this._worksheet.getColumn(e.col);r=new n(this,u,e.address),this._cells[e.col-1]=r}return r}getCell(e){if(typeof e=="string"){const r=this._worksheet.getColumnKey(e);e=r?r.number:s.l2n(e)}return this._cells[e-1]||this.getCellEx({address:s.encodeAddress(this._number,e),row:this._number,col:e})}splice(e,r){const u=e+r;for(var o=arguments.length,i=new Array(o>2?o-2:0),d=2;d<o;d++)i[d-2]=arguments[d];const h=i.length-r,f=this._cells.length;let b,p,S;if(h<0)for(b=e+i.length;b<=f;b++)S=this._cells[b-1],p=this._cells[b-h-1],p?(S=this.getCell(b),S.value=p.value,S.style=p.style,S._comment=p._comment):S&&(S.value=null,S.style={},S._comment=void 0);else if(h>0)for(b=f;b>=u;b--)p=this._cells[b-1],p?(S=this.getCell(b+h),S.value=p.value,S.style=p.style,S._comment=p._comment):this._cells[b+h-1]=void 0;for(b=0;b<i.length;b++)S=this.getCell(e+b),S.value=i[b],S.style={},S._comment=void 0}eachCell(e,r){if(r||(r=e,e=null),e&&e.includeEmpty){const u=this._cells.length;for(let o=1;o<=u;o++)r(this.getCell(o),o)}else this._cells.forEach((u,o)=>{u&&u.type!==a.ValueType.Null&&r(u,o+1)})}addPageBreak(e,r){const u=this._worksheet,o=Math.max(0,e-1)||0,i=Math.max(0,r-1)||16838,d={id:this._number,max:i,man:1};o&&(d.min=o),u.rowBreaks.push(d)}get values(){const e=[];return this._cells.forEach(r=>{r&&r.type!==a.ValueType.Null&&(e[r.col]=r.value)}),e}set values(e){if(this._cells=[],e)if(e instanceof Array){let r=0;e.hasOwnProperty("0")&&(r=1),e.forEach((u,o)=>{u!==void 0&&(this.getCellEx({address:s.encodeAddress(this._number,o+r),row:this._number,col:o+r}).value=u)})}else this._worksheet.eachColumnKey((r,u)=>{e[u]!==void 0&&(this.getCellEx({address:s.encodeAddress(this._number,r.number),row:this._number,col:r.number}).value=e[u])})}get hasValues(){return c.some(this._cells,e=>e&&e.type!==a.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let e=0;return this.eachCell(()=>{e++}),e}get dimensions(){let e=0,r=0;return this._cells.forEach(u=>{u&&u.type!==a.ValueType.Null&&((!e||e>u.col)&&(e=u.col),r<u.col&&(r=u.col))}),e>0?{min:e,max:r}:null}_applyStyle(e,r){return this.style[e]=r,this._cells.forEach(u=>{u&&(u[e]=r)}),r}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const e=[];let r=0,u=0;return this._cells.forEach(o=>{if(o){const i=o.model;i&&((!r||r>o.col)&&(r=o.col),u<o.col&&(u=o.col),e.push(i))}}),this.height||e.length?{cells:e,number:this.number,min:r,max:u,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(e){if(e.number!==this._number)throw new Error("Invalid row number in model");let r;this._cells=[],e.cells.forEach(u=>{switch(u.type){case n.Types.Merge:break;default:{let o;if(u.address)o=s.decodeAddress(u.address);else if(r){const{row:i}=r,d=r.col+1;o={row:i,col:d,address:s.encodeAddress(i,d),$col$row:`$${s.n2l(d)}$${i}`}}r=o,this.getCellEx(o).model=u;break}}}),e.height?this.height=e.height:delete this.height,this.hidden=e.hidden,this.outlineLevel=e.outlineLevel||0,this.style=e.style&&JSON.parse(JSON.stringify(e.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(t,v,m){const c=t("../utils/col-cache");class a{constructor(n,e,r){this.table=n,this.column=e,this.index=r}_set(n,e){this.table.cacheState(),this.column[n]=e}get name(){return this.column.name}set name(n){this._set("name",n)}get filterButton(){return this.column.filterButton}set filterButton(n){this.column.filterButton=n}get style(){return this.column.style}set style(n){this.column.style=n}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(n){this._set("totalsRowLabel",n)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(n){this._set("totalsRowFunction",n)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(n){this._set("totalsRowResult",n)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(n){this._set("totalsRowFormula",n)}}v.exports=class{constructor(s,n){this.worksheet=s,n&&(this.table=n,this.validate(),this.store())}getFormula(s){switch(s.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${s.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${s.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${s.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${s.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${s.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${s.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${s.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${s.name}])`;case"custom":return s.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+s.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:s}=this,n=(h,f,b)=>{h[f]===void 0&&(h[f]=b)};n(s,"headerRow",!0),n(s,"totalsRow",!1),n(s,"style",{}),n(s.style,"theme","TableStyleMedium2"),n(s.style,"showFirstColumn",!1),n(s.style,"showLastColumn",!1),n(s.style,"showRowStripes",!1),n(s.style,"showColumnStripes",!1);const e=(h,f)=>{if(!h)throw new Error(f)};e(s.ref,"Table must have ref"),e(s.columns,"Table must have column definitions"),e(s.rows,"Table must have row definitions"),s.tl=c.decodeAddress(s.ref);const{row:r,col:u}=s.tl;e(r>0,"Table must be on valid row"),e(u>0,"Table must be on valid col");const{width:o,filterHeight:i,tableHeight:d}=this;s.autoFilterRef=c.encode(r,u,r+i-1,u+o-1),s.tableRef=c.encode(r,u,r+d-1,u+o-1),s.columns.forEach((h,f)=>{e(h.name,`Column ${f} must have a name`),f===0?n(h,"totalsRowLabel","Total"):(n(h,"totalsRowFunction","none"),h.totalsRowFormula=this.getFormula(h))})}store(){const s=(i,d)=>{d&&Object.keys(d).forEach(h=>{i[h]=d[h]})},{worksheet:n,table:e}=this,{row:r,col:u}=e.tl;let o=0;if(e.headerRow){const i=n.getRow(r+o++);e.columns.forEach((d,h)=>{const{style:f,name:b}=d,p=i.getCell(u+h);p.value=b,s(p,f)})}if(e.rows.forEach(i=>{const d=n.getRow(r+o++);i.forEach((h,f)=>{const b=d.getCell(u+f);b.value=h,s(b,e.columns[f].style)})}),e.totalsRow){const i=n.getRow(r+o++);e.columns.forEach((d,h)=>{const f=i.getCell(u+h);if(h===0)f.value=d.totalsRowLabel;else{const b=this.getFormula(d);f.value=b?{formula:d.totalsRowFormula,result:d.totalsRowResult}:null}s(f,d.style)})}}load(s){const{table:n}=this,{row:e,col:r}=n.tl;let u=0;if(n.headerRow){const o=s.getRow(e+u++);n.columns.forEach((i,d)=>{o.getCell(r+d).value=i.name})}if(n.rows.forEach(o=>{const i=s.getRow(e+u++);o.forEach((d,h)=>{i.getCell(r+h).value=d})}),n.totalsRow){const o=s.getRow(e+u++);n.columns.forEach((i,d)=>{const h=o.getCell(r+d);d===0?h.value=i.totalsRowLabel:this.getFormula(i)&&(h.value={formula:i.totalsRowFormula,result:i.totalsRowResult})})}}get model(){return this.table}set model(s){this.table=s}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const s=c.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let n=0;n<this._cache.tableHeight;n++){const e=this.worksheet.getRow(s.row+n);for(let r=0;r<this._cache.width;r++)e.getCell(s.col+r).value=null}else{for(let n=this.tableHeight;n<this._cache.tableHeight;n++){const e=this.worksheet.getRow(s.row+n);for(let r=0;r<this._cache.width;r++)e.getCell(s.col+r).value=null}for(let n=0;n<this.tableHeight;n++){const e=this.worksheet.getRow(s.row+n);for(let r=this.width;r<this._cache.width;r++)e.getCell(s.col+r).value=null}}this.store()}addRow(s,n){this.cacheState(),n===void 0?this.table.rows.push(s):this.table.rows.splice(n,0,s)}removeRows(s){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(s,n)}getColumn(s){const n=this.table.columns[s];return new a(this,n,s)}addColumn(s,n,e){this.cacheState(),e===void 0?(this.table.columns.push(s),this.table.rows.forEach((r,u)=>{r.push(n[u])})):(this.table.columns.splice(e,0,s),this.table.rows.forEach((r,u)=>{r.splice(e,0,n[u])}))}removeColumns(s){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(s,n),this.table.rows.forEach(e=>{e.splice(s,n)})}_assign(s,n,e){this.cacheState(),s[n]=e}get ref(){return this.table.ref}set ref(s){this._assign(this.table,"ref",s)}get name(){return this.table.name}set name(s){this.table.name=s}get displayName(){return this.table.displyName||this.table.name}set displayNamename(s){this.table.displayName=s}get headerRow(){return this.table.headerRow}set headerRow(s){this._assign(this.table,"headerRow",s)}get totalsRow(){return this.table.totalsRow}set totalsRow(s){this._assign(this.table,"totalsRow",s)}get theme(){return this.table.style.name}set theme(s){this.table.style.name=s}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(s){this.table.style.showFirstColumn=s}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(s){this.table.style.showLastColumn=s}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(s){this.table.style.showRowStripes=s}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(s){this.table.style.showColumnStripes=s}}},{"../utils/col-cache":19}],13:[function(t,v,m){const c=t("./worksheet"),a=t("./defined-names"),s=t("../xlsx/xlsx"),n=t("../csv/csv");v.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new a}get xlsx(){return this._xlsx||(this._xlsx=new s(this)),this._xlsx}get csv(){return this._csv||(this._csv=new n(this)),this._csv}get nextId(){for(let e=1;e<this._worksheets.length;e++)if(!this._worksheets[e])return e;return this._worksheets.length||1}addWorksheet(e,r){const u=this.nextId;r&&(typeof r=="string"?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),r={properties:{tabColor:{argb:r}}}):(r.argb||r.theme||r.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),r={properties:{tabColor:r}}));const o=this._worksheets.reduce((h,f)=>(f&&f.orderNo)>h?f.orderNo:h,0),i=Object.assign({},r,{id:u,name:e,orderNo:o+1,workbook:this}),d=new c(i);return this._worksheets[u]=d,d}removeWorksheetEx(e){delete this._worksheets[e.id]}removeWorksheet(e){const r=this.getWorksheet(e);r&&r.destroy()}getWorksheet(e){return e===void 0?this._worksheets.find(Boolean):typeof e=="number"?this._worksheets[e]:typeof e=="string"?this._worksheets.find(r=>r&&r.name===e):void 0}get worksheets(){return this._worksheets.slice(1).sort((e,r)=>e.orderNo-r.orderNo).filter(Boolean)}eachSheet(e){this.worksheets.forEach(r=>{e(r,r.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(e){const r=this.media.length;return this.media.push(Object.assign({},e,{type:"image"})),r}getImage(e){return this.media[e]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(e=>e.model),sheets:this.worksheets.map(e=>e.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(e){this.creator=e.creator,this.lastModifiedBy=e.lastModifiedBy,this.lastPrinted=e.lastPrinted,this.created=e.created,this.modified=e.modified,this.company=e.company,this.manager=e.manager,this.title=e.title,this.subject=e.subject,this.keywords=e.keywords,this.category=e.category,this.description=e.description,this.language=e.language,this.revision=e.revision,this.contentStatus=e.contentStatus,this.properties=e.properties,this.calcProperties=e.calcProperties,this._worksheets=[],e.worksheets.forEach(r=>{const{id:u,name:o,state:i}=r,d=e.sheets&&e.sheets.findIndex(h=>h.id===u);(this._worksheets[u]=new c({id:u,name:o,orderNo:d,state:i,workbook:this})).model=r}),this._definedNames.model=e.definedNames,this.views=e.views,this._themes=e.themes,this.media=e.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(t,v,m){const c=t("../utils/under-dash"),a=t("../utils/col-cache"),s=t("./range"),n=t("./row"),e=t("./column"),r=t("./enums"),u=t("./image"),o=t("./table"),i=t("./data-validations"),d=t("../utils/encryptor"),{copyStyle:h}=t("../utils/copy-style");v.exports=class{constructor(f){f=f||{},this._workbook=f.workbook,this.id=f.id,this.orderNo=f.orderNo,this.name=f.name,this.state=f.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},f.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!f.pageSetup||!f.pageSetup.fitToWidth&&!f.pageSetup.fitToHeight||f.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},f.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},f.headerFooter),this.dataValidations=new i,this.views=f.views||[],this.autoFilter=f.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(f){if(f===void 0&&(f="sheet"+this.id),this._name!==f){if(typeof f!="string")throw new Error("The name has to be a string.");if(f==="")throw new Error("The name can't be empty.");if(f==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(f))throw new Error(`Worksheet name ${f} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(f))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+f);if(f&&f.length>31&&(console.warn(`Worksheet name ${f} exceeds 31 chars. This will be truncated`),f=f.substring(0,31)),this._workbook._worksheets.find(b=>b&&b.name.toLowerCase()===f.toLowerCase()))throw new Error("Worksheet name already exists: "+f);this._name=f}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const f=new s;return this._rows.forEach(b=>{if(b){const p=b.dimensions;p&&f.expand(b.number,p.min,b.number,p.max)}}),f}get columns(){return this._columns}set columns(f){this._headerRowCount=f.reduce((S,_)=>{const T=(_.header?1:_.headers&&_.headers.length)||0;return Math.max(S,T)},0);let b=1;const p=this._columns=[];f.forEach(S=>{const _=new e(this,b++,!1);p.push(_),_.defn=S})}getColumnKey(f){return this._keys[f]}setColumnKey(f,b){this._keys[f]=b}deleteColumnKey(f){delete this._keys[f]}eachColumnKey(f){c.each(this._keys,f)}getColumn(f){if(typeof f=="string"){const b=this._keys[f];if(b)return b;f=a.l2n(f)}if(this._columns||(this._columns=[]),f>this._columns.length){let b=this._columns.length+1;for(;b<=f;)this._columns.push(new e(this,b++))}return this._columns[f-1]}spliceColumns(f,b){const p=this._rows.length;for(var S=arguments.length,_=new Array(S>2?S-2:0),T=2;T<S;T++)_[T-2]=arguments[T];if(_.length>0)for(let N=0;N<p;N++){const V=[f,b];_.forEach(L=>{V.push(L[N]||null)});const W=this.getRow(N+1);W.splice.apply(W,V)}else this._rows.forEach(N=>{N&&N.splice(f,b)});const D=_.length-b,z=f+b,P=this._columns.length;if(D<0)for(let N=f+_.length;N<=P;N++)this.getColumn(N).defn=this.getColumn(N-D).defn;else if(D>0)for(let N=P;N>=z;N--)this.getColumn(N+D).defn=this.getColumn(N).defn;for(let N=f;N<f+_.length;N++)this.getColumn(N).defn=null;this.workbook.definedNames.spliceColumns(this.name,f,b,_.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let f=0;return this.eachRow(b=>{f=Math.max(f,b.cellCount)}),f}get actualColumnCount(){const f=[];let b=0;return this.eachRow(p=>{p.eachCell(S=>{let{col:_}=S;f[_]||(f[_]=!0,b++)})}),b}_commitRow(){}get _lastRowNumber(){const f=this._rows;let b=f.length;for(;b>0&&f[b-1]===void 0;)b--;return b}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(f){return this._rows[f-1]}findRows(f,b){return this._rows.slice(f-1,f-1+b)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let f=0;return this.eachRow(()=>{f++}),f}getRow(f){let b=this._rows[f-1];return b||(b=this._rows[f-1]=new n(this,f)),b}getRows(f,b){if(b<1)return;const p=[];for(let S=f;S<f+b;S++)p.push(this.getRow(S));return p}addRow(f){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const p=this._nextRow,S=this.getRow(p);return S.values=f,this._setStyleOption(p,b[0]==="i"?b:"n"),S}addRows(f){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const p=[];return f.forEach(S=>{p.push(this.addRow(S,b))}),p}insertRow(f,b){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(f,0,b),this._setStyleOption(f,p),this.getRow(f)}insertRows(f,b){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(f,0,...b),p!=="n")for(let S=0;S<b.length;S++)p[0]==="o"&&this.findRow(b.length+f+S)!==void 0?this._copyStyle(b.length+f+S,f+S,p[1]==="+"):p[0]==="i"&&this.findRow(f-1)!==void 0&&this._copyStyle(f-1,f+S,p[1]==="+");return this.getRows(f,b.length)}_setStyleOption(f){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";b[0]==="o"&&this.findRow(f+1)!==void 0?this._copyStyle(f+1,f,b[1]==="+"):b[0]==="i"&&this.findRow(f-1)!==void 0&&this._copyStyle(f-1,f,b[1]==="+")}_copyStyle(f,b){let p=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const S=this.getRow(f),_=this.getRow(b);_.style=h(S.style),S.eachCell({includeEmpty:p},(T,D)=>{_.getCell(D).style=h(T.style)}),_.height=S.height}duplicateRow(f,b){let p=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const S=this._rows[f-1],_=new Array(b).fill(S.values);this.spliceRows(f+1,p?0:b,..._);for(let T=0;T<b;T++){const D=this._rows[f+T];D.style=S.style,D.height=S.height,S.eachCell({includeEmpty:!0},(z,P)=>{D.getCell(P).style=z.style})}}spliceRows(f,b){const p=f+b;for(var S=arguments.length,_=new Array(S>2?S-2:0),T=2;T<S;T++)_[T-2]=arguments[T];const D=_.length,z=D-b,P=this._rows.length;let N,V;if(z<0)for(f===P&&(this._rows[P-1]=void 0),N=p;N<=P;N++)if(V=this._rows[N-1],V){const W=this.getRow(N+z);W.values=V.values,W.style=V.style,W.height=V.height,V.eachCell({includeEmpty:!0},(L,A)=>{W.getCell(A).style=L.style}),this._rows[N-1]=void 0}else this._rows[N+z-1]=void 0;else if(z>0)for(N=P;N>=p;N--)if(V=this._rows[N-1],V){const W=this.getRow(N+z);W.values=V.values,W.style=V.style,W.height=V.height,V.eachCell({includeEmpty:!0},(L,A)=>{if(W.getCell(A).style=L.style,L._value.constructor.name==="MergeValue"){const M=this.getRow(L._row._number+D).getCell(A),C=L._value._master,y=this.getRow(C._row._number+D).getCell(C._column._number);M.merge(y)}})}else this._rows[N+z-1]=void 0;for(N=0;N<D;N++){const W=this.getRow(f+N);W.style={},W.values=_[N]}this.workbook.definedNames.spliceRows(this.name,f,b,D)}eachRow(f,b){if(b||(b=f,f=void 0),f&&f.includeEmpty){const p=this._rows.length;for(let S=1;S<=p;S++)b(this.getRow(S),S)}else this._rows.forEach(p=>{p&&p.hasValues&&b(p,p.number)})}getSheetValues(){const f=[];return this._rows.forEach(b=>{b&&(f[b.number]=b.values)}),f}findCell(f,b){const p=a.getAddress(f,b),S=this._rows[p.row-1];return S?S.findCell(p.col):void 0}getCell(f,b){const p=a.getAddress(f,b);return this.getRow(p.row).getCellEx(p)}mergeCells(){for(var f=arguments.length,b=new Array(f),p=0;p<f;p++)b[p]=arguments[p];const S=new s(b);this._mergeCellsInternal(S)}mergeCellsWithoutStyle(){for(var f=arguments.length,b=new Array(f),p=0;p<f;p++)b[p]=arguments[p];const S=new s(b);this._mergeCellsInternal(S,!0)}_mergeCellsInternal(f,b){c.each(this._merges,S=>{if(S.intersects(f))throw new Error("Cannot merge already merged cells")});const p=this.getCell(f.top,f.left);for(let S=f.top;S<=f.bottom;S++)for(let _=f.left;_<=f.right;_++)(S>f.top||_>f.left)&&this.getCell(S,_).merge(p,b);this._merges[p.address]=f}_unMergeMaster(f){const b=this._merges[f.address];if(b){for(let p=b.top;p<=b.bottom;p++)for(let S=b.left;S<=b.right;S++)this.getCell(p,S).unmerge();delete this._merges[f.address]}}get hasMerges(){return c.some(this._merges,Boolean)}unMergeCells(){for(var f=arguments.length,b=new Array(f),p=0;p<f;p++)b[p]=arguments[p];const S=new s(b);for(let _=S.top;_<=S.bottom;_++)for(let T=S.left;T<=S.right;T++){const D=this.findCell(_,T);D&&(D.type===r.ValueType.Merge?this._unMergeMaster(D.master):this._merges[D.address]&&this._unMergeMaster(D))}}fillFormula(f,b,p){let S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"shared";const _=a.decode(f),{top:T,left:D,bottom:z,right:P}=_,N=P-D+1,V=a.encodeAddress(T,D),W=S==="shared";let L;L=typeof p=="function"?p:Array.isArray(p)?Array.isArray(p[0])?(M,C)=>p[M-T][C-D]:(M,C)=>p[(M-T)*N+(C-D)]:()=>{};let A=!0;for(let M=T;M<=z;M++)for(let C=D;C<=P;C++)A?(this.getCell(M,C).value={shareType:S,formula:b,ref:f,result:L(M,C)},A=!1):this.getCell(M,C).value=W?{sharedFormula:V,result:L(M,C)}:L(M,C)}addImage(f,b){const p={type:"image",imageId:f,range:b};this._media.push(new u(this,p))}getImages(){return this._media.filter(f=>f.type==="image")}addBackgroundImage(f){const b={type:"background",imageId:f};this._media.push(new u(this,b))}getBackgroundImageId(){const f=this._media.find(b=>b.type==="background");return f&&f.imageId}protect(f,b){return new Promise(p=>{this.sheetProtection={sheet:!0},b&&"spinCount"in b&&(b.spinCount=Number.isFinite(b.spinCount)?Math.round(Math.max(0,b.spinCount)):1e5),f&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=d.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=b&&"spinCount"in b?b.spinCount:1e5,this.sheetProtection.hashValue=d.convertPasswordToHash(f,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),b&&(this.sheetProtection=Object.assign(this.sheetProtection,b),!f&&"spinCount"in b&&delete this.sheetProtection.spinCount),p()})}unprotect(){this.sheetProtection=null}addTable(f){const b=new o(this,f);return this.tables[f.name]=b,b}getTable(f){return this.tables[f]}removeTable(f){delete this.tables[f]}getTables(){return Object.values(this.tables)}addConditionalFormatting(f){this.conditionalFormattings.push(f)}removeConditionalFormatting(f){typeof f=="number"?this.conditionalFormattings.splice(f,1):this.conditionalFormattings=f instanceof Function?this.conditionalFormattings.filter(f):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(f){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=f}get model(){const f={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(S=>S.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(S=>S.model),conditionalFormattings:this.conditionalFormattings};f.cols=e.toModel(this.columns);const b=f.rows=[],p=f.dimensions=new s;return this._rows.forEach(S=>{const _=S&&S.model;_&&(p.expand(_.number,_.min,_.number,_.max),b.push(_))}),f.merges=[],c.each(this._merges,S=>{f.merges.push(S.range)}),f}_parseRows(f){this._rows=[],f.rows.forEach(b=>{const p=new n(this,b.number);this._rows[p.number-1]=p,p.model=b})}_parseMergeCells(f){c.each(f.mergeCells,b=>{this.mergeCellsWithoutStyle(b)})}set model(f){this.name=f.name,this._columns=e.fromModel(this,f.cols),this._parseRows(f),this._parseMergeCells(f),this.dataValidations=new i(f.dataValidations),this.properties=f.properties,this.pageSetup=f.pageSetup,this.headerFooter=f.headerFooter,this.views=f.views,this.autoFilter=f.autoFilter,this._media=f.media.map(b=>new u(this,b)),this.sheetProtection=f.sheetProtection,this.tables=f.tables.reduce((b,p)=>{const S=new o;return S.model=p,b[p.name]=S,b},{}),this.conditionalFormattings=f.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(t,v,m){t("core-js/modules/es.promise"),t("core-js/modules/es.promise.finally"),t("core-js/modules/es.object.assign"),t("core-js/modules/es.object.keys"),t("core-js/modules/es.object.values"),t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.async-iterator"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.find-index"),t("core-js/modules/es.array.find"),t("core-js/modules/es.string.from-code-point"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.number.is-nan"),t("regenerator-runtime/runtime");const c={Workbook:t("./doc/workbook")},a=t("./doc/enums");Object.keys(a).forEach(s=>{c[s]=a[s]}),v.exports=c},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(t,v,m){const c=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");m.bufferToString=function(a){return typeof a=="string"?a:c?c.decode(a):a.toString()}},{}],17:[function(t,v,m){const c=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:a}=t("buffer");m.stringToBuffer=function(s){return typeof s!="string"?s:c?a.from(c.encode(s).buffer):a.from(s)}},{buffer:220}],18:[function(t,v,m){const c=t("./under-dash"),a=t("./col-cache");v.exports=class{constructor(s){this.template=s,this.sheets={}}addCell(s){this.addCellEx(a.decodeEx(s))}getCell(s){return this.findCellEx(a.decodeEx(s),!0)}findCell(s){return this.findCellEx(a.decodeEx(s),!1)}findCellAt(s,n,e){const r=this.sheets[s],u=r&&r[n];return u&&u[e]}addCellEx(s){if(s.top)for(let n=s.top;n<=s.bottom;n++)for(let e=s.left;e<=s.right;e++)this.getCellAt(s.sheetName,n,e);else this.findCellEx(s,!0)}getCellEx(s){return this.findCellEx(s,!0)}findCellEx(s,n){const e=this.findSheet(s,n),r=this.findSheetRow(e,s,n);return this.findRowCell(r,s,n)}getCellAt(s,n,e){const r=this.sheets[s]||(this.sheets[s]=[]),u=r[n]||(r[n]=[]);return u[e]||(u[e]={sheetName:s,address:a.n2l(e)+n,row:n,col:e})}removeCellEx(s){const n=this.findSheet(s);if(!n)return;const e=this.findSheetRow(n,s);e&&delete e[s.col]}forEachInSheet(s,n){const e=this.sheets[s];e&&e.forEach((r,u)=>{r&&r.forEach((o,i)=>{o&&n(o,u,i)})})}forEach(s){c.each(this.sheets,(n,e)=>{this.forEachInSheet(e,s)})}map(s){const n=[];return this.forEach(e=>{n.push(s(e))}),n}findSheet(s,n){const e=s.sheetName;return this.sheets[e]?this.sheets[e]:n?this.sheets[e]=[]:void 0}findSheetRow(s,n,e){const{row:r}=n;return s&&s[r]?s[r]:e?s[r]=[]:void 0}findRowCell(s,n,e){const{col:r}=n;return s&&s[r]?s[r]:e?s[r]=this.template?Object.assign(n,JSON.parse(JSON.stringify(this.template))):n:void 0}spliceRows(s,n,e,r){const u=this.sheets[s];if(u){const o=[];for(let i=0;i<r;i++)o.push([]);u.splice(n,e,...o)}}spliceColumns(s,n,e,r){const u=this.sheets[s];if(u){const o=[];for(let i=0;i<r;i++)o.push(null);c.each(u,i=>{i.splice(n,e,...o)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(t,v,m){const c=/^[A-Z]+\d+$/,a={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:s=>s<=26?1:s<=676?2:3,_fill(s){let n,e,r,u,o,i=1;if(s>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&s>=1){for(;i<=26;)n=this._dictionary[i-1],this._n2l[i]=n,this._l2n[n]=i,i++;this._l2nFill=1}if(this._l2nFill<2&&s>=2){for(i=27;i<=702;)e=i-27,r=e%26,u=Math.floor(e/26),n=this._dictionary[u]+this._dictionary[r],this._n2l[i]=n,this._l2n[n]=i,i++;this._l2nFill=2}if(this._l2nFill<3&&s>=3){for(i=703;i<=16384;)e=i-703,r=e%26,u=Math.floor(e/26)%26,o=Math.floor(e/676),n=this._dictionary[o]+this._dictionary[u]+this._dictionary[r],this._n2l[i]=n,this._l2n[n]=i,i++;this._l2nFill=3}},l2n(s){if(this._l2n[s]||this._fill(s.length),!this._l2n[s])throw new Error("Out of bounds. Invalid column letter: "+s);return this._l2n[s]},n2l(s){if(s<1||s>16384)throw new Error(s+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[s]||this._fill(this._level(s)),this._n2l[s]},_hash:{},validateAddress(s){if(!c.test(s))throw new Error("Invalid Address: "+s);return!0},decodeAddress(s){const n=s.length<5&&this._hash[s];if(n)return n;let e=!1,r="",u=0,o=!1,i="",d=0;for(let f,b=0;b<s.length;b++)if(f=s.charCodeAt(b),!o&&f>=65&&f<=90)e=!0,r+=s[b],u=26*u+f-64;else if(f>=48&&f<=57)o=!0,i+=s[b],d=10*d+f-48;else if(o&&e&&f!==36)break;if(e){if(u>16384)throw new Error("Out of bounds. Invalid column letter: "+r)}else u=void 0;o||(d=void 0);const h={address:s=r+i,col:u,row:d,$col$row:`$${r}$${i}`};return u<=100&&d<=100&&(this._hash[s]=h,this._hash[h.$col$row]=h),h},getAddress(s,n){if(n){const e=this.n2l(n)+s;return this.decodeAddress(e)}return this.decodeAddress(s)},decode(s){const n=s.split(":");if(n.length===2){const e=this.decodeAddress(n[0]),r=this.decodeAddress(n[1]),u={top:Math.min(e.row,r.row),left:Math.min(e.col,r.col),bottom:Math.max(e.row,r.row),right:Math.max(e.col,r.col)};return u.tl=this.n2l(u.left)+u.top,u.br=this.n2l(u.right)+u.bottom,u.dimensions=`${u.tl}:${u.br}`,u}return this.decodeAddress(s)},decodeEx(s){const n=s.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),e=n[1]||n[2],r=n[3],u=r.split(":");if(u.length>1){let i=this.decodeAddress(u[0]),d=this.decodeAddress(u[1]);const h=Math.min(i.row,d.row),f=Math.min(i.col,d.col),b=Math.max(i.row,d.row),p=Math.max(i.col,d.col);return i=this.n2l(f)+h,d=this.n2l(p)+b,{top:h,left:f,bottom:b,right:p,sheetName:e,tl:{address:i,col:f,row:h,$col$row:`$${this.n2l(f)}$${h}`,sheetName:e},br:{address:d,col:p,row:b,$col$row:`$${this.n2l(p)}$${b}`,sheetName:e},dimensions:`${i}:${d}`}}if(r.startsWith("#"))return e?{sheetName:e,error:r}:{error:r};const o=this.decodeAddress(r);return e?{sheetName:e,...o}:o},encodeAddress:(s,n)=>a.n2l(n)+s,encode(){switch(arguments.length){case 2:return a.encodeAddress(arguments[0],arguments[1]);case 4:return`${a.encodeAddress(arguments[0],arguments[1])}:${a.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(s,n){const[e,r,,u,o]=s,[i,d]=n;return i>=e&&i<=u&&d>=r&&d<=o}};v.exports=a},{}],20:[function(t,v,m){const c=(s,n)=>({...s,...n.reduce((e,r)=>(s[r]&&(e[r]={...s[r]}),e),{})}),a=function(s,n,e){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];s[e]&&(n[e]=c(s[e],r))};m.copyStyle=s=>{if(!s)return s;if(n=s,Object.keys(n).length===0)return{};var n;const e={...s};return a(s,e,"font",["color"]),a(s,e,"alignment"),a(s,e,"protection"),s.border&&(a(s,e,"border"),a(s.border,e.border,"top",["color"]),a(s.border,e.border,"left",["color"]),a(s.border,e.border,"bottom",["color"]),a(s.border,e.border,"right",["color"]),a(s.border,e.border,"diagonal",["color"])),s.fill&&(a(s,e,"fill",["fgColor","bgColor","center"]),s.fill.stops&&(e.fill.stops=s.fill.stops.map(r=>c(r,["color"])))),e}},{}],21:[function(t,v,m){(function(c){(function(){const a=t("crypto"),s={hash(n){const e=a.createHash(n);for(var r=arguments.length,u=new Array(r>1?r-1:0),o=1;o<r;o++)u[o-1]=arguments[o];return e.update(c.concat(u)),e.digest()},convertPasswordToHash(n,e,r,u){if(e=e.toLowerCase(),a.getHashes().indexOf(e)<0)throw new Error(`Hash algorithm '${e}' not supported!`);const o=c.from(n,"utf16le");let i=this.hash(e,c.from(r,"base64"),o);for(let d=0;d<u;d++){const h=c.alloc(4);h.writeUInt32LE(d,0),i=this.hash(e,i,h)}return i.toString("base64")},randomBytes:n=>a.randomBytes(n)};v.exports=s}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(t,v,m){const{SaxesParser:c}=t("saxes"),{PassThrough:a}=t("readable-stream"),{bufferToString:s}=t("./browser-buffer-decode");v.exports=async function*(n){n.pipe&&!n[Symbol.asyncIterator]&&(n=n.pipe(new a));const e=new c;let r;e.on("error",o=>{r=o});let u=[];e.on("opentag",o=>u.push({eventType:"opentag",value:o})),e.on("text",o=>u.push({eventType:"text",value:o})),e.on("closetag",o=>u.push({eventType:"closetag",value:o}));for await(const o of n){if(e.write(s(o)),r)throw r;yield u,u=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(t,v,m){const c=t("./col-cache"),a=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,s=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;v.exports={slideFormula:function(n,e,r){const u=c.decode(e),o=c.decode(r);return n.replace(a,(i,d,h,f,b)=>{if(b)return i;const p=s.exec(f);if(p){const S=p[1],_=p[2].toUpperCase(),T=p[3],D=p[4];if(_.length>3||_.length===3&&_>"XFD")return i;let z=c.l2n(_),P=parseInt(D,10);return S||(z+=o.col-u.col),T||(P+=o.row-u.row),(d||"")+(S||"")+c.n2l(z)+(T||"")+P}return i})}}},{"./col-cache":19}],24:[function(t,v,m){(function(c,a){(function(){const s=t("readable-stream"),n=t("./utils"),e=t("./string-buf");class r{constructor(f,b){this._data=f,this._encoding=b}get length(){return this.toBuffer().length}copy(f,b,p,S){return this.toBuffer().copy(f,b,p,S)}toBuffer(){return this._buffer||(this._buffer=a.from(this._data,this._encoding)),this._buffer}}class u{constructor(f){this._data=f}get length(){return this._data.length}copy(f,b,p,S){return this._data._buf.copy(f,b,p,S)}toBuffer(){return this._data.toBuffer()}}class o{constructor(f){this._data=f}get length(){return this._data.length}copy(f,b,p,S){this._data.copy(f,b,p,S)}toBuffer(){return this._data}}class i{constructor(f){this.size=f,this.buffer=a.alloc(f),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const f=a.alloc(this.iWrite-this.iRead);return this.buffer.copy(f,0,this.iRead,this.iWrite),f}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(f){let b;return f===0?null:f===void 0||f>=this.length?(b=this.toBuffer(),this.iRead=this.iWrite,b):(b=a.alloc(f),this.buffer.copy(b,0,this.iRead,f),this.iRead+=f,b)}write(f,b,p){const S=Math.min(p,this.size-this.iWrite);return f.copy(this.buffer,this.iWrite,b,b+S),this.iWrite+=S,S}}const d=function(h){h=h||{},this.bufSize=h.bufSize||1048576,this.buffers=[],this.batch=h.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};n.inherits(d,s.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return a.concat(this.buffers.map(h=>h.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const f=this.buffers[this.buffers.length-1];if(!f.full)return f}const h=new i(this.bufSize);return this.buffers.push(h),h},async _pipe(h){await Promise.all(this.pipes.map(function(f){return new Promise(b=>{f.write(h.toBuffer(),()=>{b()})})}))},_writeToBuffers(h){let f=0;const b=h.length;for(;f<b;)f+=this._getWritableBuffer().write(h,f,b-f)},async write(h,f,b){let p;if(f instanceof Function&&(b=f,f="utf8"),b=b||n.nop,h instanceof e)p=new u(h);else if(h instanceof a)p=new o(h);else{if(!(typeof h=="string"||h instanceof String||h instanceof ArrayBuffer))throw new Error("Chunk must be one of type String, Buffer or StringBuf.");p=new r(h,f)}if(this.pipes.length)if(this.batch)for(this._writeToBuffers(p);!this.corked&&this.buffers.length>1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(p),c.nextTick(b)):(await this._pipe(p),b());else this.paused||this.emit("data",p.toBuffer()),this._writeToBuffers(p),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(h,f,b){const p=S=>{S?b(S):(this._flush(),this.pipes.forEach(_=>{_.end()}),this.emit("finish"))};h?this.write(h,f,p):p()},read(h){let f;if(h){for(f=[];h&&this.buffers.length&&!this.buffers[0].eod;){const b=this.buffers[0],p=b.read(h);h-=p.length,f.push(p),b.eod&&b.full&&this.buffers.shift()}return a.concat(f)}return f=this.buffers.map(b=>b.toBuffer()).filter(Boolean),this.buffers=[],a.concat(f)},setEncoding(h){this.encoding=h},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(h){this.pipes.push(h),!this.paused&&this.buffers.length&&this.end()},unpipe(h){this.pipes=this.pipes.filter(f=>f!==h)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),v.exports=d}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(t,v,m){(function(c){(function(){v.exports=class{constructor(a){this._buf=c.alloc(a&&a.size||16384),this._encoding=a&&a.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=c.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(a){a=a||0,this._buffer=void 0,this._inPos=a}_grow(a){let s=2*this._buf.length;for(;s<a;)s*=2;const n=c.alloc(s);this._buf.copy(n,0),this._buf=n}addText(a){this._buffer=void 0;let s=this._inPos+this._buf.write(a,this._inPos,this._encoding);for(;s>=this._buf.length-4;)this._grow(this._inPos+a.length),s=this._inPos+this._buf.write(a,this._inPos,this._encoding);this._inPos=s}addStringBuf(a){a.length&&(this._buffer=void 0,this.length+a.length>this.capacity&&this._grow(this.length+a.length),a._buf.copy(this._buf,this._inPos,0,a.length),this._inPos+=a.length)}}}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220}],26:[function(t,v,m){const{toString:c}=Object.prototype,a=/["&<>]/,s={each:function(n,e){n&&(Array.isArray(n)?n.forEach(e):Object.keys(n).forEach(r=>{e(n[r],r)}))},some:function(n,e){return!!n&&(Array.isArray(n)?n.some(e):Object.keys(n).some(r=>e(n[r],r)))},every:function(n,e){return!n||(Array.isArray(n)?n.every(e):Object.keys(n).every(r=>e(n[r],r)))},map:function(n,e){return n?Array.isArray(n)?n.map(e):Object.keys(n).map(r=>e(n[r],r)):[]},keyBy:(n,e)=>n.reduce((r,u)=>(r[u[e]]=u,r),{}),isEqual:function(n,e){const r=typeof n,u=typeof e,o=Array.isArray(n),i=Array.isArray(e);let d;if(r!==u)return!1;switch(typeof n){case"object":if(o||i)return!(!o||!i)&&n.length===e.length&&n.every((h,f)=>{const b=e[f];return s.isEqual(h,b)});if(n===null||e===null)return n===e;if(d=Object.keys(n),Object.keys(e).length!==d.length)return!1;for(const h of d)if(!e.hasOwnProperty(h))return!1;return s.every(n,(h,f)=>{const b=e[f];return s.isEqual(h,b)});default:return n===e}},escapeHtml(n){const e=a.exec(n);if(!e)return n;let r="",u="",o=0,i=e.index;for(;i<n.length;i++){switch(n.charAt(i)){case'"':u="&quot;";break;case"&":u="&amp;";break;case"'":u="&apos;";break;case"<":u="&lt;";break;case">":u="&gt;";break;default:continue}o!==i&&(r+=n.substring(o,i)),o=i+1,r+=u}return o!==i?r+n.substring(o,i):r},strcmp:(n,e)=>n<e?-1:n>e?1:0,isUndefined:n=>c.call(n)==="[object Undefined]",isObject:n=>c.call(n)==="[object Object]",deepMerge(){const n=arguments[0]||{},{length:e}=arguments;let r,u,o;function i(d,h){r=n[h],o=Array.isArray(d),s.isObject(d)||o?(o?(o=!1,u=r&&Array.isArray(r)?r:[]):u=r&&s.isObject(r)?r:{},n[h]=s.deepMerge(u,d)):s.isUndefined(d)||(n[h]=d)}for(let d=0;d<e;d++)s.each(arguments[d],i);return n}};v.exports=s},{}],27:[function(t,v,m){(function(c,a){(function(){const s=t("fs"),n=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,e={nop(){},promiseImmediate:r=>new Promise(u=>{c.setImmediate?a(()=>{u(r)}):setTimeout(()=>{u(r)},1)}),inherits:function(r,u,o,i){r.super_=u,i||(i=o,o=null),o&&Object.keys(o).forEach(h=>{Object.defineProperty(r,h,Object.getOwnPropertyDescriptor(o,h))});const d={constructor:{value:r,enumerable:!1,writable:!1,configurable:!0}};i&&Object.keys(i).forEach(h=>{d[h]=Object.getOwnPropertyDescriptor(i,h)}),r.prototype=Object.create(u.prototype,d)},dateToExcel:(r,u)=>25569+r.getTime()/864e5-(u?1462:0),excelToDate(r,u){const o=Math.round(24*(r-25569+(u?1462:0))*3600*1e3);return new Date(o)},parsePath(r){const u=r.lastIndexOf("/");return{path:r.substring(0,u),name:r.substring(u+1)}},getRelsPath(r){const u=e.parsePath(r);return`${u.path}/_rels/${u.name}.rels`},xmlEncode(r){const u=n.exec(r);if(!u)return r;let o="",i="",d=0,h=u.index;for(;h<r.length;h++){const f=r.charCodeAt(h);switch(f){case 34:i="&quot;";break;case 38:i="&amp;";break;case 39:i="&apos;";break;case 60:i="&lt;";break;case 62:i="&gt;";break;case 127:i="";break;default:if(f<=31&&(f<=8||f>=11&&f!==13)){i="";break}continue}d!==h&&(o+=r.substring(d,h)),d=h+1,i&&(o+=i)}return d!==h?o+r.substring(d,h):o},xmlDecode:r=>r.replace(/&([a-z]*);/g,u=>{switch(u){case"&lt;":return"<";case"&gt;":return">";case"&amp;":return"&";case"&apos;":return"'";case"&quot;":return'"';default:return u}}),validInt(r){const u=parseInt(r,10);return Number.isNaN(u)?0:u},isDateFmt(r){return r?(r=(r=r.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:r=>new Promise(u=>{s.access(r,s.constants.F_OK,o=>{u(!o)})})},toIsoDateString:r=>r.toIsoString().subsstr(0,10),parseBoolean:r=>r===!0||r==="true"||r===1||r==="1"};v.exports=e}).call(this)}).call(this,typeof ut<"u"?ut:typeof self<"u"?self:typeof window<"u"?window:{},t("timers").setImmediate)},{fs:216,timers:523}],28:[function(t,v,m){const c=t("./under-dash"),a=t("./utils");function s(r,u,o){r.push(` ${u}="${a.xmlEncode(o.toString())}"`)}function n(r,u){if(u){const o=[];c.each(u,(i,d)=>{i!==void 0&&s(o,d,i)}),r.push(o.join(""))}}class e{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(u){const o=this._xml;o.push("<?xml"),n(o,u),o.push(`?>
2
2
  `)}openNode(u,o){const i=this.tos,d=this._xml;i&&this.open&&d.push(">"),this._stack.push(u),d.push("<"),d.push(u),n(d,o),this.leaf=!0,this.open=!0}addAttribute(u,o){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");o!==void 0&&s(this._xml,u,o)}addAttributes(u){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");n(this._xml,u)}writeText(u){const o=this._xml;this.open&&(o.push(">"),this.open=!1),this.leaf=!1,o.push(a.xmlEncode(u.toString()))}writeXml(u){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(u)}closeNode(){const u=this._stack.pop(),o=this._xml;this.leaf?o.push("/>"):(o.push("</"),o.push(u),o.push(">")),this.open=!1,this.leaf=!1}leafNode(u,o,i){this.openNode(u,o),i!==void 0&&this.writeText(i),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){const u=this._rollbacks.pop();this._xml.length>u.xml&&this._xml.splice(u.xml,this._xml.length-u.xml),this._stack.length>u.stack&&this._stack.splice(u.stack,this._stack.length-u.stack),this.leaf=u.leaf,this.open=u.open}get xml(){return this.closeAll(),this._xml.join("")}}e.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},v.exports=e},{"./under-dash":26,"./utils":27}],29:[function(t,v,m){(function(c){(function(){const a=t("events"),s=t("jszip"),n=t("./stream-buf"),{stringToBuffer:e}=t("./browser-buffer-encode");class r extends a.EventEmitter{constructor(o){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},o),this.zip=new s,this.stream=new n}append(o,i){i.hasOwnProperty("base64")&&i.base64?this.zip.file(i.name,o,{base64:!0}):(c.browser&&typeof o=="string"&&(o=e(o)),this.zip.file(i.name,o))}async finalize(){const o=await this.zip.generateAsync(this.options);this.stream.end(o),this.emit("finish")}read(o){return this.stream.read(o)}setEncoding(o){return this.stream.setEncoding(o)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(o,i){return this.stream.pipe(o,i)}unpipe(o){return this.stream.unpipe(o)}unshift(o){return this.stream.unshift(o)}wrap(o){return this.stream.wrap(o)}}v.exports={ZipWriter:r}}).call(this)}).call(this,t("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(t,v,m){v.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],31:[function(t,v,m){v.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],32:[function(t,v,m){const c=t("../../utils/parse-sax"),a=t("../../utils/xml-stream");class s{prepare(){}render(){}parseOpen(e){}parseText(e){}parseClose(e){}reconcile(e,r){}reset(){this.model=null,this.map&&Object.values(this.map).forEach(e=>{e instanceof s?e.reset():e.xform&&e.xform.reset()})}mergeModel(e){this.model=Object.assign(this.model||{},e)}async parse(e){for await(const r of e)for(const{eventType:u,value:o}of r)if(u==="opentag")this.parseOpen(o);else if(u==="text")this.parseText(o);else if(u==="closetag"&&!this.parseClose(o.name))return this.model;return this.model}async parseStream(e){return this.parse(c(e))}get xml(){return this.toXml(this.model)}toXml(e){const r=new a;return this.render(r,e),r.xml}static toAttribute(e,r){let u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(e===void 0){if(u)return r}else if(u||e!==r)return e.toString()}static toStringAttribute(e,r){let u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return s.toAttribute(e,r,u)}static toStringValue(e,r){return e===void 0?r:e}static toBoolAttribute(e,r){let u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(e===void 0){if(u)return r}else if(u||e!==r)return e?"1":"0"}static toBoolValue(e,r){return e===void 0?r:e==="1"}static toIntAttribute(e,r){let u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return s.toAttribute(e,r,u)}static toIntValue(e,r){return e===void 0?r:parseInt(e,10)}static toFloatAttribute(e,r){let u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return s.toAttribute(e,r,u)}static toFloatValue(e,r){return e===void 0?r:parseFloat(e)}}v.exports=s},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(t,v,m){const c=t("../base-xform"),a=t("../../../utils/col-cache");function s(e){try{return a.decodeEx(e),!0}catch{return!1}}function n(e){const r=[];let u=!1,o="";return e.split(",").forEach(i=>{if(!i)return;const d=(i.match(/'/g)||[]).length;if(!d)return void(u?o+=i+",":s(i)&&r.push(i));const h=d%2==0;!u&&h&&s(i)?r.push(i):u&&!h?(u=!1,s(o+i)&&r.push(o+i),o=""):(u=!0,o+=i+",")}),r}v.exports=class extends c{render(e,r){e.openNode("definedName",{name:r.name,localSheetId:r.localSheetId}),e.writeText(r.ranges.join(",")),e.closeNode()}parseOpen(e){switch(e.name){case"definedName":return this._parsedName=e.attributes.name,this._parsedLocalSheetId=e.attributes.localSheetId,this._parsedText=[],!0;default:return!1}}parseText(e){this._parsedText.push(e)}parseClose(){return this.model={name:this._parsedName,ranges:n(this._parsedText.join(""))},this._parsedLocalSheetId!==void 0&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(t,v,m){const c=t("../../../utils/utils"),a=t("../base-xform");v.exports=class extends a{render(s,n){s.leafNode("sheet",{sheetId:n.id,name:n.name,state:n.state,"r:id":n.rId})}parseOpen(s){return s.name==="sheet"&&(this.model={name:c.xmlDecode(s.attributes.name),id:parseInt(s.attributes.sheetId,10),state:s.attributes.state,rId:s.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{render(a,s){a.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:s.fullCalcOnLoad?1:void 0})}parseOpen(a){return a.name==="calcPr"&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{render(a,s){a.leafNode("workbookPr",{date1904:s.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(a){return a.name==="workbookPr"&&(this.model={date1904:a.attributes.date1904==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{render(a,s){const n={xWindow:s.x||0,yWindow:s.y||0,windowWidth:s.width||12e3,windowHeight:s.height||24e3,firstSheet:s.firstSheet,activeTab:s.activeTab};s.visibility&&s.visibility!=="visible"&&(n.visibility=s.visibility),a.leafNode("workbookView",n)}parseOpen(a){if(a.name==="workbookView"){const s=this.model={},n=function(r,u,o){const i=u!==void 0?s[r]=u:o;i!==void 0&&(s[r]=i)},e=function(r,u,o){const i=u!==void 0?s[r]=parseInt(u,10):o;i!==void 0&&(s[r]=i)};return e("x",a.attributes.xWindow,0),e("y",a.attributes.yWindow,0),e("width",a.attributes.windowWidth,25e3),e("height",a.attributes.windowHeight,1e4),n("visibility",a.attributes.visibility,"visible"),e("activeTab",a.attributes.activeTab,void 0),e("firstSheet",a.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(t,v,m){const c=t("../../../utils/under-dash"),a=t("../../../utils/col-cache"),s=t("../../../utils/xml-stream"),n=t("../base-xform"),e=t("../static-xform"),r=t("../list-xform"),u=t("./defined-name-xform"),o=t("./sheet-xform"),i=t("./workbook-view-xform"),d=t("./workbook-properties-xform"),h=t("./workbook-calc-properties-xform");class f extends n{constructor(){super(),this.map={fileVersion:f.STATIC_XFORMS.fileVersion,workbookPr:new d,bookViews:new r({tag:"bookViews",count:!1,childXform:new i}),sheets:new r({tag:"sheets",count:!1,childXform:new o}),definedNames:new r({tag:"definedNames",count:!1,childXform:new u}),calcPr:new h}}prepare(p){p.sheets=p.worksheets;const S=[];let _=0;p.sheets.forEach(T=>{if(T.pageSetup&&T.pageSetup.printArea&&T.pageSetup.printArea.split("&&").forEach(D=>{const z=D.split(":"),P={name:"_xlnm.Print_Area",ranges:[`'${T.name}'!$${z[0]}:$${z[1]}`],localSheetId:_};S.push(P)}),T.pageSetup&&(T.pageSetup.printTitlesRow||T.pageSetup.printTitlesColumn)){const D=[];if(T.pageSetup.printTitlesColumn){const P=T.pageSetup.printTitlesColumn.split(":");D.push(`'${T.name}'!$${P[0]}:$${P[1]}`)}if(T.pageSetup.printTitlesRow){const P=T.pageSetup.printTitlesRow.split(":");D.push(`'${T.name}'!$${P[0]}:$${P[1]}`)}const z={name:"_xlnm.Print_Titles",ranges:D,localSheetId:_};S.push(z)}_++}),S.length&&(p.definedNames=p.definedNames.concat(S)),(p.media||[]).forEach((T,D)=>{T.name=T.type+(D+1)})}render(p,S){p.openXml(s.StdDocAttributes),p.openNode("workbook",f.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(p),this.map.workbookPr.render(p,S.properties),this.map.bookViews.render(p,S.views),this.map.sheets.render(p,S.sheets),this.map.definedNames.render(p,S.definedNames),this.map.calcPr.render(p,S.calcProperties),p.closeNode()}parseOpen(p){if(this.parser)return this.parser.parseOpen(p),!0;switch(p.name){case"workbook":return!0;default:return this.parser=this.map[p.name],this.parser&&this.parser.parseOpen(p),!0}}parseText(p){this.parser&&this.parser.parseText(p)}parseClose(p){if(this.parser)return this.parser.parseClose(p)||(this.parser=void 0),!0;switch(p){case"workbook":return this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1;default:return!0}}reconcile(p){const S=(p.workbookRels||[]).reduce((P,N)=>(P[N.Id]=N,P),{}),_=[];let T,D=0;(p.sheets||[]).forEach(P=>{const N=S[P.rId];N&&(T=p.worksheetHash["xl/"+N.Target.replace(/^(\s|\/xl\/)+/,"")],T&&(T.name=P.name,T.id=P.id,T.state=P.state,_[D++]=T))});const z=[];c.each(p.definedNames,P=>{if(P.name==="_xlnm.Print_Area"){if(T=_[P.localSheetId],T){T.pageSetup||(T.pageSetup={});const N=a.decodeEx(P.ranges[0]);T.pageSetup.printArea=T.pageSetup.printArea?`${T.pageSetup.printArea}&&${N.dimensions}`:N.dimensions}}else if(P.name==="_xlnm.Print_Titles"){if(T=_[P.localSheetId],T){T.pageSetup||(T.pageSetup={});const N=P.ranges.join(","),V=/\$/g,W=/\$\d+:\$\d+/,L=N.match(W);if(L&&L.length){const C=L[0];T.pageSetup.printTitlesRow=C.replace(V,"")}const A=/\$[A-Z]+:\$[A-Z]+/,M=N.match(A);if(M&&M.length){const C=M[0];T.pageSetup.printTitlesColumn=C.replace(V,"")}}}else z.push(P)}),p.definedNames=z,p.media.forEach((P,N)=>{P.index=N})}}f.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},f.STATIC_XFORMS={fileVersion:new e({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},v.exports=f},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(t,v,m){const c=t("../strings/rich-text-xform"),a=t("../../../utils/utils"),s=t("../base-xform"),n=v.exports=function(e){this.model=e};a.inherits(n,s,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new c),this._richTextXform},render(e,r){r=r||this.model,e.openNode("comment",{ref:r.ref,authorId:0}),e.openNode("text"),r&&r.note&&r.note.texts&&r.note.texts.forEach(u=>{this.richTextXform.render(e,u)}),e.closeNode(),e.closeNode()},parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"comment":return this.model={type:"note",note:{texts:[]},...e.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(e),!0;default:return!1}},parseText(e){this.parser&&this.parser.parseText(e)},parseClose(e){switch(e){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(t,v,m){const c=t("../../../utils/xml-stream"),a=t("../../../utils/utils"),s=t("../base-xform"),n=t("./comment-xform"),e=v.exports=function(){this.map={comment:new n}};a.inherits(e,s,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(r,u){u=u||this.model,r.openXml(c.StdDocAttributes),r.openNode("comments",e.COMMENTS_ATTRIBUTES),r.openNode("authors"),r.leafNode("author",null,"Author"),r.closeNode(),r.openNode("commentList"),u.comments.forEach(o=>{this.map.comment.render(r,o)}),r.closeNode(),r.closeNode()},parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(r),!0;default:return!1}},parseText(r){this.parser&&this.parser.parseText(r)},parseClose(r){switch(r){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(r),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(t,v,m){const c=t("../../base-xform");v.exports=class extends c{constructor(a){super(),this._model=a}get tag(){return this._model&&this._model.tag}render(a,s,n){(s===n[2]||this.tag==="x:SizeWithCells"&&s===n[1])&&a.leafNode(this.tag)}parseOpen(a){switch(a.name){case this.tag:return this.model={},this.model[this.tag]=!0,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../base-xform":32}],42:[function(t,v,m){const c=t("../../base-xform");v.exports=class extends c{constructor(a){super(),this._model=a}get tag(){return this._model&&this._model.tag}render(a,s){a.leafNode(this.tag,null,s)}parseOpen(a){switch(a.name){case this.tag:return this.text="",!0;default:return!1}}parseText(a){this.text=a}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"x:Anchor"}getAnchorRect(a){const s=Math.floor(a.left),n=Math.floor(68*(a.left-s)),e=Math.floor(a.top),r=Math.floor(18*(a.top-e)),u=Math.floor(a.right),o=Math.floor(68*(a.right-u)),i=Math.floor(a.bottom);return[s,n,e,r,u,o,i,Math.floor(18*(a.bottom-i))]}getDefaultRect(a){const s=a.col,n=Math.max(a.row-2,0);return[s,6,n,14,s+2,2,n+4,16]}render(a,s){const n=s.anchor?this.getAnchorRect(s.anchor):this.getDefaultRect(s.refAddress);a.leafNode("x:Anchor",null,n.join(", "))}parseOpen(a){switch(a.name){case this.tag:return this.text="",!0;default:return!1}}parseText(a){this.text=a}parseClose(){return!1}}},{"../base-xform":32}],44:[function(t,v,m){const c=t("../base-xform"),a=t("./vml-anchor-xform"),s=t("./style/vml-protection-xform"),n=t("./style/vml-position-xform"),e=["twoCells","oneCells","absolute"];v.exports=class extends c{constructor(){super(),this.map={"x:Anchor":new a,"x:Locked":new s({tag:"x:Locked"}),"x:LockText":new s({tag:"x:LockText"}),"x:SizeWithCells":new n({tag:"x:SizeWithCells"}),"x:MoveWithCells":new n({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(r,u){const{protection:o,editAs:i}=u.note;r.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(r,i,e),this.map["x:SizeWithCells"].render(r,i,e),this.map["x:Anchor"].render(r,u),this.map["x:Locked"].render(r,o.locked),r.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(r,o.lockText),r.leafNode("x:Row",null,u.refAddress.row-1),r.leafNode("x:Column",null,u.refAddress.col-1),r.closeNode()}parseOpen(r){switch(r.name){case this.tag:this.reset(),this.model={anchor:[],protection:{},editAs:""};break;default:this.parser=this.map[r.name],this.parser&&this.parser.parseOpen(r)}return!0}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.parser=void 0),!0;switch(r){case this.tag:return this.normalizeModel(),!1;default:return!0}}normalizeModel(){const r=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),u=Object.keys(r).length;this.model.editAs=e[u],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(t,v,m){const c=t("../../../utils/xml-stream"),a=t("../base-xform"),s=t("./vml-shape-xform");class n extends a{constructor(){super(),this.map={"v:shape":new s}}get tag(){return"xml"}render(r,u){r.openXml(c.StdDocAttributes),r.openNode(this.tag,n.DRAWING_ATTRIBUTES),r.openNode("o:shapelayout",{"v:ext":"edit"}),r.leafNode("o:idmap",{"v:ext":"edit",data:1}),r.closeNode(),r.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),r.leafNode("v:stroke",{joinstyle:"miter"}),r.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),r.closeNode(),u.comments.forEach((o,i)=>{this.map["v:shape"].render(r,o,i)}),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case this.tag:this.reset(),this.model={comments:[]};break;default:this.parser=this.map[r.name],this.parser&&this.parser.parseOpen(r)}return!0}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0;switch(r){case this.tag:return!1;default:return!0}}reconcile(r,u){r.anchors.forEach(o=>{o.br?this.map["xdr:twoCellAnchor"].reconcile(o,u):this.map["xdr:oneCellAnchor"].reconcile(o,u)})}}n.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},v.exports=n},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(t,v,m){const c=t("../base-xform"),a=t("./vml-textbox-xform"),s=t("./vml-client-data-xform");class n extends c{constructor(){super(),this.map={"v:textbox":new a,"x:ClientData":new s}}get tag(){return"v:shape"}render(r,u,o){r.openNode("v:shape",n.V_SHAPE_ATTRIBUTES(u,o)),r.leafNode("v:fill",{color2:"infoBackground [80]"}),r.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),r.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(r,u),this.map["x:ClientData"].render(r,u),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case this.tag:this.reset(),this.model={margins:{insetmode:r.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}};break;default:this.parser=this.map[r.name],this.parser&&this.parser.parseOpen(r)}return!0}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.parser=void 0),!0;switch(r){case this.tag:return this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1;default:return!0}}}n.V_SHAPE_ATTRIBUTES=(e,r)=>({id:"_x0000_s"+(1025+r),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":e.note.margins&&e.note.margins.insetmode}),v.exports=n},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"v:textbox"}conversionUnit(a,s,n){return`${parseFloat(a)*s.toFixed(2)}${n}`}reverseConversionUnit(a){return(a||"").split(",").map(s=>Number(parseFloat(this.conversionUnit(parseFloat(s),.1,"")).toFixed(2)))}render(a,s){const n={style:"mso-direction-alt:auto"};if(s&&s.note){let{inset:e}=s.note&&s.note.margins;Array.isArray(e)&&(e=e.map(r=>this.conversionUnit(r,10,"mm")).join(",")),e&&(n.inset=e)}a.openNode("v:textbox",n),a.leafNode("div",{style:"text-align:left"}),a.closeNode()}parseOpen(a){switch(a.name){case this.tag:return this.model={inset:this.reverseConversionUnit(a.attributes.inset)},!0;default:return!0}}parseText(){}parseClose(a){switch(a){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],48:[function(t,v,m){const c=t("./base-xform");v.exports=class extends c{createNewModel(a){return{}}parseOpen(a){return this.parser=this.parser||this.map[a.name],this.parser?(this.parser.parseOpen(a),!0):a.name===this.tag&&(this.model=this.createNewModel(a),!0)}parseText(a){this.parser&&this.parser.parseText(a)}onParserClose(a,s){this.model[a]=s.model}parseClose(a){return this.parser?(this.parser.parseClose(a)||(this.onParserClose(a,this.parser),this.parser=void 0),!0):a!==this.tag}}},{"./base-xform":32}],49:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{render(a,s){a.openNode("HeadingPairs"),a.openNode("vt:vector",{size:2,baseType:"variant"}),a.openNode("vt:variant"),a.leafNode("vt:lpstr",void 0,"Worksheets"),a.closeNode(),a.openNode("vt:variant"),a.leafNode("vt:i4",void 0,s.length),a.closeNode(),a.closeNode(),a.closeNode()}parseOpen(a){return a.name==="HeadingPairs"}parseText(){}parseClose(a){return a!=="HeadingPairs"}}},{"../base-xform":32}],50:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{render(a,s){a.openNode("TitlesOfParts"),a.openNode("vt:vector",{size:s.length,baseType:"lpstr"}),s.forEach(n=>{a.leafNode("vt:lpstr",void 0,n.name)}),a.closeNode(),a.closeNode()}parseOpen(a){return a.name==="TitlesOfParts"}parseText(){}parseClose(a){return a!=="TitlesOfParts"}}},{"../base-xform":32}],51:[function(t,v,m){const c=t("../../../utils/xml-stream"),a=t("../base-xform"),s=t("../simple/string-xform"),n=t("./app-heading-pairs-xform"),e=t("./app-titles-of-parts-xform");class r extends a{constructor(){super(),this.map={Company:new s({tag:"Company"}),Manager:new s({tag:"Manager"}),HeadingPairs:new n,TitleOfParts:new e}}render(o,i){o.openXml(c.StdDocAttributes),o.openNode("Properties",r.PROPERTY_ATTRIBUTES),o.leafNode("Application",void 0,"Microsoft Excel"),o.leafNode("DocSecurity",void 0,"0"),o.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(o,i.worksheets),this.map.TitleOfParts.render(o,i.worksheets),this.map.Company.render(o,i.company||""),this.map.Manager.render(o,i.manager),o.leafNode("LinksUpToDate",void 0,"false"),o.leafNode("SharedDoc",void 0,"false"),o.leafNode("HyperlinksChanged",void 0,"false"),o.leafNode("AppVersion",void 0,"16.0300"),o.closeNode()}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case"Properties":return!0;default:return this.parser=this.map[o.name],!!this.parser&&(this.parser.parseOpen(o),!0)}}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){if(this.parser)return this.parser.parseClose(o)||(this.parser=void 0),!0;switch(o){case"Properties":return this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1;default:return!0}}}r.DateFormat=function(u){return u.toISOString().replace(/[.]\d{3,6}/,"")},r.DateAttrs={"xsi:type":"dcterms:W3CDTF"},r.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},v.exports=r},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(t,v,m){const c=t("../../../utils/xml-stream"),a=t("../base-xform");class s extends a{render(e,r){e.openXml(c.StdDocAttributes),e.openNode("Types",s.PROPERTY_ATTRIBUTES);const u={};(r.media||[]).forEach(o=>{if(o.type==="image"){const i=o.extension;u[i]||(u[i]=!0,e.leafNode("Default",{Extension:i,ContentType:"image/"+i}))}}),e.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),e.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),e.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),r.worksheets.forEach(o=>{const i=`/xl/worksheets/sheet${o.id}.xml`;e.leafNode("Override",{PartName:i,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),e.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),e.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),r.sharedStrings&&r.sharedStrings.count&&e.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),r.tables&&r.tables.forEach(o=>{e.leafNode("Override",{PartName:"/xl/tables/"+o.target,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),r.drawings&&r.drawings.forEach(o=>{e.leafNode("Override",{PartName:`/xl/drawings/${o.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),r.commentRefs&&(e.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),r.commentRefs.forEach(o=>{let{commentName:i}=o;e.leafNode("Override",{PartName:`/xl/${i}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),e.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),e.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),e.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}s.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},v.exports=s},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(t,v,m){const c=t("../../../utils/xml-stream"),a=t("../base-xform"),s=t("../simple/date-xform"),n=t("../simple/string-xform"),e=t("../simple/integer-xform");class r extends a{constructor(){super(),this.map={"dc:creator":new n({tag:"dc:creator"}),"dc:title":new n({tag:"dc:title"}),"dc:subject":new n({tag:"dc:subject"}),"dc:description":new n({tag:"dc:description"}),"dc:identifier":new n({tag:"dc:identifier"}),"dc:language":new n({tag:"dc:language"}),"cp:keywords":new n({tag:"cp:keywords"}),"cp:category":new n({tag:"cp:category"}),"cp:lastModifiedBy":new n({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new s({tag:"cp:lastPrinted",format:r.DateFormat}),"cp:revision":new e({tag:"cp:revision"}),"cp:version":new n({tag:"cp:version"}),"cp:contentStatus":new n({tag:"cp:contentStatus"}),"cp:contentType":new n({tag:"cp:contentType"}),"dcterms:created":new s({tag:"dcterms:created",attrs:r.DateAttrs,format:r.DateFormat}),"dcterms:modified":new s({tag:"dcterms:modified",attrs:r.DateAttrs,format:r.DateFormat})}}render(o,i){o.openXml(c.StdDocAttributes),o.openNode("cp:coreProperties",r.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(o,i.creator),this.map["dc:title"].render(o,i.title),this.map["dc:subject"].render(o,i.subject),this.map["dc:description"].render(o,i.description),this.map["dc:identifier"].render(o,i.identifier),this.map["dc:language"].render(o,i.language),this.map["cp:keywords"].render(o,i.keywords),this.map["cp:category"].render(o,i.category),this.map["cp:lastModifiedBy"].render(o,i.lastModifiedBy),this.map["cp:lastPrinted"].render(o,i.lastPrinted),this.map["cp:revision"].render(o,i.revision),this.map["cp:version"].render(o,i.version),this.map["cp:contentStatus"].render(o,i.contentStatus),this.map["cp:contentType"].render(o,i.contentType),this.map["dcterms:created"].render(o,i.created),this.map["dcterms:modified"].render(o,i.modified),o.closeNode()}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[o.name],this.parser)return this.parser.parseOpen(o),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(o))}}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){if(this.parser)return this.parser.parseClose(o)||(this.parser=void 0),!0;switch(o){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: "+o)}}}r.DateFormat=function(u){return u.toISOString().replace(/[.]\d{3}/,"")},r.DateAttrs={"xsi:type":"dcterms:W3CDTF"},r.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},v.exports=r},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{render(a,s){a.leafNode("Relationship",s)}parseOpen(a){switch(a.name){case"Relationship":return this.model=a.attributes,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(t,v,m){const c=t("../../../utils/xml-stream"),a=t("../base-xform"),s=t("./relationship-xform");class n extends a{constructor(){super(),this.map={Relationship:new s}}render(r,u){u=u||this._values,r.openXml(c.StdDocAttributes),r.openNode("Relationships",n.RELATIONSHIPS_ATTRIBUTES),u.forEach(o=>{this.map.Relationship.render(r,o)}),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case"Relationships":return this.model=[],!0;default:if(this.parser=this.map[r.name],this.parser)return this.parser.parseOpen(r),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(r))}}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.model.push(this.parser.model),this.parser=void 0),!0;switch(r){case"Relationships":return!1;default:throw new Error("Unexpected xml node in parseClose: "+r)}}}n.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},v.exports=n},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case this.tag:this.reset(),this.model={range:{editAs:a.attributes.editAs||"oneCell"}};break;default:this.parser=this.map[a.name],this.parser&&this.parser.parseOpen(a)}return!0}parseText(a){this.parser&&this.parser.parseText(a)}reconcilePicture(a,s){if(a&&a.rId){const n=s.rels[a.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(n){const e=n[1],r=s.mediaIndex[e];return s.media[r]}}}}},{"../base-xform":32}],57:[function(t,v,m){const c=t("../base-xform"),a=t("./blip-xform");v.exports=class extends c{constructor(){super(),this.map={"a:blip":new a}}get tag(){return"xdr:blipFill"}render(s,n){s.openNode(this.tag),this.map["a:blip"].render(s,n),s.openNode("a:stretch"),s.leafNode("a:fillRect"),s.closeNode(),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case this.tag:this.reset();break;default:this.parser=this.map[s.name],this.parser&&this.parser.parseOpen(s)}return!0}parseText(){}parseClose(s){if(this.parser)return this.parser.parseClose(s)||(this.parser=void 0),!0;switch(s){case this.tag:return this.model=this.map["a:blip"].model,!1;default:return!0}}}},{"../base-xform":32,"./blip-xform":58}],58:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"a:blip"}render(a,s){a.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":s.rId,cstate:"print"})}parseOpen(a){switch(a.name){case this.tag:return this.model={rId:a.attributes["r:embed"]},!0;default:return!0}}parseText(){}parseClose(a){switch(a){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],59:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"xdr:cNvPicPr"}render(a){a.openNode(this.tag),a.leafNode("a:picLocks",{noChangeAspect:"1"}),a.closeNode()}parseOpen(a){switch(a.name){case this.tag:default:return!0}}parseText(){}parseClose(a){switch(a){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],60:[function(t,v,m){const c=t("../base-xform"),a=t("./hlink-click-xform"),s=t("./ext-lst-xform");v.exports=class extends c{constructor(){super(),this.map={"a:hlinkClick":new a,"a:extLst":new s}}get tag(){return"xdr:cNvPr"}render(n,e){n.openNode(this.tag,{id:e.index,name:"Picture "+e.index}),this.map["a:hlinkClick"].render(n,e),this.map["a:extLst"].render(n,e),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case this.tag:this.reset();break;default:this.parser=this.map[n.name],this.parser&&this.parser.parseOpen(n)}return!0}parseText(){}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.parser=void 0),!0;switch(n){case this.tag:return this.model=this.map["a:hlinkClick"].model,!1;default:return!0}}}},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(t,v,m){const c=t("../base-xform"),a=t("../simple/integer-xform");v.exports=class extends c{constructor(s){super(),this.tag=s.tag,this.map={"xdr:col":new a({tag:"xdr:col",zero:!0}),"xdr:colOff":new a({tag:"xdr:colOff",zero:!0}),"xdr:row":new a({tag:"xdr:row",zero:!0}),"xdr:rowOff":new a({tag:"xdr:rowOff",zero:!0})}}render(s,n){s.openNode(this.tag),this.map["xdr:col"].render(s,n.nativeCol),this.map["xdr:colOff"].render(s,n.nativeColOff),this.map["xdr:row"].render(s,n.nativeRow),this.map["xdr:rowOff"].render(s,n.nativeRowOff),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case this.tag:this.reset();break;default:this.parser=this.map[s.name],this.parser&&this.parser.parseOpen(s)}return!0}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){if(this.parser)return this.parser.parseClose(s)||(this.parser=void 0),!0;switch(s){case this.tag:return this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1;default:return!0}}}},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(t,v,m){const c=t("../../../utils/col-cache"),a=t("../../../utils/xml-stream"),s=t("../base-xform"),n=t("./two-cell-anchor-xform"),e=t("./one-cell-anchor-xform");class r extends s{constructor(){super(),this.map={"xdr:twoCellAnchor":new n,"xdr:oneCellAnchor":new e}}prepare(o){o.anchors.forEach((i,d)=>{i.anchorType=function(h){return(typeof h.range=="string"?c.decode(h.range):h.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}(i),this.map[i.anchorType].prepare(i,{index:d})})}get tag(){return"xdr:wsDr"}render(o,i){o.openXml(a.StdDocAttributes),o.openNode(this.tag,r.DRAWING_ATTRIBUTES),i.anchors.forEach(d=>{this.map[d.anchorType].render(o,d)}),o.closeNode()}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:this.reset(),this.model={anchors:[]};break;default:this.parser=this.map[o.name],this.parser&&this.parser.parseOpen(o)}return!0}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){if(this.parser)return this.parser.parseClose(o)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0;switch(o){case this.tag:return!1;default:return!0}}reconcile(o,i){o.anchors.forEach(d=>{d.br?this.map["xdr:twoCellAnchor"].reconcile(d,i):this.map["xdr:oneCellAnchor"].reconcile(d,i)})}}r.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},v.exports=r},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"a:extLst"}render(a){a.openNode(this.tag),a.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),a.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),a.closeNode(),a.closeNode()}parseOpen(a){switch(a.name){case this.tag:default:return!0}}parseText(){}parseClose(a){switch(a){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],64:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{constructor(a){super(),this.tag=a.tag,this.map={}}render(a,s){a.openNode(this.tag);const n=Math.floor(9525*s.width),e=Math.floor(9525*s.height);a.addAttribute("cx",n),a.addAttribute("cy",e),a.closeNode()}parseOpen(a){return a.name===this.tag&&(this.model={width:parseInt(a.attributes.cx||"0",10)/9525,height:parseInt(a.attributes.cy||"0",10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"a:hlinkClick"}render(a,s){s.hyperlinks&&s.hyperlinks.rId&&a.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":s.hyperlinks.rId,tooltip:s.hyperlinks.tooltip})}parseOpen(a){switch(a.name){case this.tag:return this.model={hyperlinks:{rId:a.attributes["r:id"],tooltip:a.attributes.tooltip}},!0;default:return!0}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(t,v,m){const c=t("../base-xform"),a=t("./c-nv-pr-xform"),s=t("./c-nv-pic-pr-xform");v.exports=class extends c{constructor(){super(),this.map={"xdr:cNvPr":new a,"xdr:cNvPicPr":new s}}get tag(){return"xdr:nvPicPr"}render(n,e){n.openNode(this.tag),this.map["xdr:cNvPr"].render(n,e),this.map["xdr:cNvPicPr"].render(n,e),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case this.tag:this.reset();break;default:this.parser=this.map[n.name],this.parser&&this.parser.parseOpen(n)}return!0}parseText(){}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.parser=void 0),!0;switch(n){case this.tag:return this.model=this.map["xdr:cNvPr"].model,!1;default:return!0}}}},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(t,v,m){const c=t("./base-cell-anchor-xform"),a=t("../static-xform"),s=t("./cell-position-xform"),n=t("./ext-xform"),e=t("./pic-xform");v.exports=class extends c{constructor(){super(),this.map={"xdr:from":new s({tag:"xdr:from"}),"xdr:ext":new n({tag:"xdr:ext"}),"xdr:pic":new e,"xdr:clientData":new a({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(r,u){this.map["xdr:pic"].prepare(r.picture,u)}render(r,u){r.openNode(this.tag,{editAs:u.range.editAs||"oneCell"}),this.map["xdr:from"].render(r,u.range.tl),this.map["xdr:ext"].render(r,u.range.ext),this.map["xdr:pic"].render(r,u.picture),this.map["xdr:clientData"].render(r,{}),r.closeNode()}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.parser=void 0),!0;switch(r){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(r,u){r.medium=this.reconcilePicture(r.picture,u)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(t,v,m){const c=t("../base-xform"),a=t("../static-xform"),s=t("./blip-fill-xform"),n=t("./nv-pic-pr-xform"),e=t("./sp-pr");v.exports=class extends c{constructor(){super(),this.map={"xdr:nvPicPr":new n,"xdr:blipFill":new s,"xdr:spPr":new a(e)}}get tag(){return"xdr:pic"}prepare(r,u){r.index=u.index+1}render(r,u){r.openNode(this.tag),this.map["xdr:nvPicPr"].render(r,u),this.map["xdr:blipFill"].render(r,u),this.map["xdr:spPr"].render(r,u),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case this.tag:this.reset();break;default:this.parser=this.map[r.name],this.parser&&this.parser.parseOpen(r)}return!0}parseText(){}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.mergeModel(this.parser.model),this.parser=void 0),!0;switch(r){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(t,v,m){v.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],70:[function(t,v,m){const c=t("./base-cell-anchor-xform"),a=t("../static-xform"),s=t("./cell-position-xform"),n=t("./pic-xform");v.exports=class extends c{constructor(){super(),this.map={"xdr:from":new s({tag:"xdr:from"}),"xdr:to":new s({tag:"xdr:to"}),"xdr:pic":new n,"xdr:clientData":new a({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(e,r){this.map["xdr:pic"].prepare(e.picture,r)}render(e,r){e.openNode(this.tag,{editAs:r.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,r.range.tl),this.map["xdr:to"].render(e,r.range.br),this.map["xdr:pic"].render(e,r.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(e,r){e.medium=this.reconcilePicture(e.picture,r)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(t,v,m){const c=t("./base-xform");v.exports=class extends c{constructor(a){super(),this.tag=a.tag,this.always=!!a.always,this.count=a.count,this.empty=a.empty,this.$count=a.$count||"count",this.$=a.$,this.childXform=a.childXform,this.maxItems=a.maxItems}prepare(a,s){const{childXform:n}=this;a&&a.forEach((e,r)=>{s.index=r,n.prepare(e,s)})}render(a,s){if(this.always||s&&s.length){a.openNode(this.tag,this.$),this.count&&a.addAttribute(this.$count,s&&s.length||0);const{childXform:n}=this;(s||[]).forEach((e,r)=>{n.render(a,e,r)}),a.closeNode()}else this.empty&&a.leafNode(this.tag)}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case this.tag:return this.model=[],!0;default:return!!this.childXform.parseOpen(a)&&(this.parser=this.childXform,!0)}}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser){if(!this.parser.parseClose(a)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(a,s){if(a){const{childXform:n}=this;a.forEach(e=>{n.reconcile(e,s)})}}}},{"./base-xform":32}],72:[function(t,v,m){const c=t("../../../utils/col-cache"),a=t("../base-xform");v.exports=class extends a{get tag(){return"autoFilter"}render(s,n){if(n)if(typeof n=="string")s.leafNode("autoFilter",{ref:n});else{const e=function(o){return typeof o=="string"?o:c.getAddress(o.row,o.column).address},r=e(n.from),u=e(n.to);r&&u&&s.leafNode("autoFilter",{ref:`${r}:${u}`})}}parseOpen(s){s.name==="autoFilter"&&(this.model=s.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(t,v,m){const c=t("../../../utils/utils"),a=t("../base-xform"),s=t("../../../doc/range"),n=t("../../../doc/enums"),e=t("../strings/rich-text-xform");function r(u){if(u==null)return n.ValueType.Null;if(u instanceof String||typeof u=="string")return n.ValueType.String;if(typeof u=="number")return n.ValueType.Number;if(typeof u=="boolean")return n.ValueType.Boolean;if(u instanceof Date)return n.ValueType.Date;if(u.text&&u.hyperlink)return n.ValueType.Hyperlink;if(u.formula)return n.ValueType.Formula;if(u.error)return n.ValueType.Error;throw new Error("I could not understand type of value")}v.exports=class extends a{constructor(){super(),this.richTextXForm=new e}get tag(){return"c"}prepare(u,o){const i=o.styles.addStyleModel(u.style||{},function(d){switch(d.type){case n.ValueType.Formula:return r(d.result);default:return d.type}}(u));switch(i&&(u.styleId=i),u.comment&&o.comments.push({...u.comment,ref:u.address}),u.type){case n.ValueType.String:case n.ValueType.RichText:o.sharedStrings&&(u.ssId=o.sharedStrings.add(u.value));break;case n.ValueType.Date:o.date1904&&(u.date1904=!0);break;case n.ValueType.Hyperlink:o.sharedStrings&&u.text!==void 0&&u.text!==null&&(u.ssId=o.sharedStrings.add(u.text)),o.hyperlinks.push({address:u.address,target:u.hyperlink,tooltip:u.tooltip});break;case n.ValueType.Merge:o.merges.add(u);break;case n.ValueType.Formula:if(o.date1904&&(u.date1904=!0),u.shareType==="shared"&&(u.si=o.siFormulae++),u.formula)o.formulae[u.address]=u;else if(u.sharedFormula){const d=o.formulae[u.sharedFormula];if(!d)throw new Error("Shared Formula master must exist above and or left of clone for cell "+u.address);d.si===void 0?(d.shareType="shared",d.si=o.siFormulae++,d.range=new s(d.address,u.address)):d.range&&d.range.expandToAddress(u.address),u.si=d.si}}}renderFormula(u,o){let i=null;switch(o.shareType){case"shared":i={t:"shared",ref:o.ref||o.range.range,si:o.si};break;case"array":i={t:"array",ref:o.ref};break;default:o.si!==void 0&&(i={t:"shared",si:o.si})}switch(r(o.result)){case n.ValueType.Null:u.leafNode("f",i,o.formula);break;case n.ValueType.String:u.addAttribute("t","str"),u.leafNode("f",i,o.formula),u.leafNode("v",null,o.result);break;case n.ValueType.Number:u.leafNode("f",i,o.formula),u.leafNode("v",null,o.result);break;case n.ValueType.Boolean:u.addAttribute("t","b"),u.leafNode("f",i,o.formula),u.leafNode("v",null,o.result?1:0);break;case n.ValueType.Error:u.addAttribute("t","e"),u.leafNode("f",i,o.formula),u.leafNode("v",null,o.result.error);break;case n.ValueType.Date:u.leafNode("f",i,o.formula),u.leafNode("v",null,c.dateToExcel(o.result,o.date1904));break;default:throw new Error("I could not understand type of value")}}render(u,o){if(o.type!==n.ValueType.Null||o.styleId){switch(u.openNode("c"),u.addAttribute("r",o.address),o.styleId&&u.addAttribute("s",o.styleId),o.type){case n.ValueType.Null:break;case n.ValueType.Number:u.leafNode("v",null,o.value);break;case n.ValueType.Boolean:u.addAttribute("t","b"),u.leafNode("v",null,o.value?"1":"0");break;case n.ValueType.Error:u.addAttribute("t","e"),u.leafNode("v",null,o.value.error);break;case n.ValueType.String:case n.ValueType.RichText:o.ssId!==void 0?(u.addAttribute("t","s"),u.leafNode("v",null,o.ssId)):o.value&&o.value.richText?(u.addAttribute("t","inlineStr"),u.openNode("is"),o.value.richText.forEach(i=>{this.richTextXForm.render(u,i)}),u.closeNode("is")):(u.addAttribute("t","str"),u.leafNode("v",null,o.value));break;case n.ValueType.Date:u.leafNode("v",null,c.dateToExcel(o.value,o.date1904));break;case n.ValueType.Hyperlink:o.ssId!==void 0?(u.addAttribute("t","s"),u.leafNode("v",null,o.ssId)):(u.addAttribute("t","str"),u.leafNode("v",null,o.text));break;case n.ValueType.Formula:this.renderFormula(u,o);break;case n.ValueType.Merge:}u.closeNode()}}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"c":return this.model={address:u.attributes.r},this.t=u.attributes.t,u.attributes.s&&(this.model.styleId=parseInt(u.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=u.attributes.si,this.model.shareType=u.attributes.t,this.model.ref=u.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(u),!0;default:return!1}}parseText(u){if(this.parser)this.parser.parseText(u);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+u:u;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+u:u:this.model.value=this.model.value?this.model.value+u:u}}parseClose(u){switch(u){case"c":{const{model:o}=this;if(o.formula||o.shareType)o.type=n.ValueType.Formula,o.value&&(this.t==="str"?o.result=c.xmlDecode(o.value):this.t==="b"?o.result=parseInt(o.value,10)!==0:this.t==="e"?o.result={error:o.value}:o.result=parseFloat(o.value),o.value=void 0);else if(o.value!==void 0)switch(this.t){case"s":o.type=n.ValueType.String,o.value=parseInt(o.value,10);break;case"str":o.type=n.ValueType.String,o.value=c.xmlDecode(o.value);break;case"inlineStr":o.type=n.ValueType.String;break;case"b":o.type=n.ValueType.Boolean,o.value=parseInt(o.value,10)!==0;break;case"e":o.type=n.ValueType.Error,o.value={error:o.value};break;default:o.type=n.ValueType.Number,o.value=parseFloat(o.value)}else o.styleId?o.type=n.ValueType.Null:o.type=n.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(u),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(u),!0)}}reconcile(u,o){const i=u.styleId&&o.styles&&o.styles.getStyleModel(u.styleId);switch(i&&(u.style=i),u.styleId!==void 0&&(u.styleId=void 0),u.type){case n.ValueType.String:typeof u.value=="number"&&o.sharedStrings&&(u.value=o.sharedStrings.getString(u.value)),u.value.richText&&(u.type=n.ValueType.RichText);break;case n.ValueType.Number:i&&c.isDateFmt(i.numFmt)&&(u.type=n.ValueType.Date,u.value=c.excelToDate(u.value,o.date1904));break;case n.ValueType.Formula:u.result!==void 0&&i&&c.isDateFmt(i.numFmt)&&(u.result=c.excelToDate(u.result,o.date1904)),u.shareType==="shared"&&(u.ref?o.formulae[u.si]=u.address:(u.sharedFormula=o.formulae[u.si],delete u.shareType),delete u.si)}const d=o.hyperlinkMap[u.address];d&&(u.type===n.ValueType.Formula?(u.text=u.result,u.result=void 0):(u.text=u.value,u.value=void 0),u.type=n.ValueType.Hyperlink,u.hyperlink=d);const h=o.commentsMap&&o.commentsMap[u.address];h&&(u.comment=h)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(t,v,m){const c=t("../../base-xform");v.exports=class extends c{get tag(){return"x14:cfIcon"}render(a,s){a.leafNode(this.tag,{iconSet:s.iconSet,iconId:s.iconId})}parseOpen(a){let{attributes:s}=a;this.model={iconSet:s.iconSet,iconId:c.toIntValue(s.iconId)}}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],75:[function(t,v,m){const{v4:c}=t("uuid"),a=t("../../base-xform"),s=t("../../composite-xform"),n=t("./databar-ext-xform"),e=t("./icon-set-ext-xform"),r={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class u extends s{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new n,"x14:iconSet":this.iconSetXform=new e}}get tag(){return"x14:cfRule"}static isExt(i){return i.type==="dataBar"?n.isExt(i):!(i.type!=="iconSet"||!i.custom&&!r[i.iconSet])}prepare(i){u.isExt(i)&&(i.x14Id=`{${c()}}`.toUpperCase())}render(i,d){if(u.isExt(d))switch(d.type){case"dataBar":this.renderDataBar(i,d);break;case"iconSet":this.renderIconSet(i,d)}}renderDataBar(i,d){i.openNode(this.tag,{type:"dataBar",id:d.x14Id}),this.databarXform.render(i,d),i.closeNode()}renderIconSet(i,d){i.openNode(this.tag,{type:"iconSet",priority:d.priority,id:d.x14Id||`{${c()}}`}),this.iconSetXform.render(i,d),i.closeNode()}createNewModel(i){let{attributes:d}=i;return{type:d.type,x14Id:d.id,priority:a.toIntValue(d.priority)}}onParserClose(i,d){Object.assign(this.model,d.model)}}v.exports=u},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(t,v,m){const c=t("../../composite-xform"),a=t("./f-ext-xform");v.exports=class extends c{constructor(){super(),this.map={"xm:f":this.fExtXform=new a}}get tag(){return"x14:cfvo"}render(s,n){s.openNode(this.tag,{type:n.type}),n.value!==void 0&&this.fExtXform.render(s,n.value),s.closeNode()}createNewModel(s){return{type:s.attributes.type}}onParserClose(s,n){switch(s){case"xm:f":this.model.value=n.model?parseFloat(n.model):0}}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(t,v,m){const c=t("../../composite-xform"),a=t("./sqref-ext-xform"),s=t("./cf-rule-ext-xform");v.exports=class extends c{constructor(){super(),this.map={"xm:sqref":this.sqRef=new a,"x14:cfRule":this.cfRule=new s}}get tag(){return"x14:conditionalFormatting"}prepare(n,e){n.rules.forEach(r=>{this.cfRule.prepare(r,e)})}render(n,e){e.rules.some(s.isExt)&&(n.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),e.rules.filter(s.isExt).forEach(r=>this.cfRule.render(n,r)),this.sqRef.render(n,e.ref),n.closeNode())}createNewModel(){return{rules:[]}}onParserClose(n,e){switch(n){case"xm:sqref":this.model.ref=e.model;break;case"x14:cfRule":this.model.rules.push(e.model)}}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(t,v,m){const c=t("../../composite-xform"),a=t("./cf-rule-ext-xform"),s=t("./conditional-formatting-ext-xform");v.exports=class extends c{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new s}}get tag(){return"x14:conditionalFormattings"}hasContent(n){return n.hasExtContent===void 0&&(n.hasExtContent=n.some(e=>e.rules.some(a.isExt))),n.hasExtContent}prepare(n,e){n.forEach(r=>{this.cfXform.prepare(r,e)})}render(n,e){this.hasContent(e)&&(n.openNode(this.tag),e.forEach(r=>this.cfXform.render(n,r)),n.closeNode())}createNewModel(){return[]}onParserClose(n,e){this.model.push(e.model)}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(t,v,m){const c=t("../../base-xform"),a=t("../../composite-xform"),s=t("../../style/color-xform"),n=t("./cfvo-ext-xform");v.exports=class extends a{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new n,"x14:borderColor":this.borderColorXform=new s("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new s("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new s("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new s("x14:axisColor")}}static isExt(e){return!e.gradient}get tag(){return"x14:dataBar"}render(e,r){e.openNode(this.tag,{minLength:c.toIntAttribute(r.minLength,0,!0),maxLength:c.toIntAttribute(r.maxLength,100,!0),border:c.toBoolAttribute(r.border,!1),gradient:c.toBoolAttribute(r.gradient,!0),negativeBarColorSameAsPositive:c.toBoolAttribute(r.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:c.toBoolAttribute(r.negativeBarBorderColorSameAsPositive,!0),axisPosition:c.toAttribute(r.axisPosition,"auto"),direction:c.toAttribute(r.direction,"leftToRight")}),r.cfvo.forEach(u=>{this.cfvoXform.render(e,u)}),this.borderColorXform.render(e,r.borderColor),this.negativeBorderColorXform.render(e,r.negativeBorderColor),this.negativeFillColorXform.render(e,r.negativeFillColor),this.axisColorXform.render(e,r.axisColor),e.closeNode()}createNewModel(e){let{attributes:r}=e;return{cfvo:[],minLength:c.toIntValue(r.minLength,0),maxLength:c.toIntValue(r.maxLength,100),border:c.toBoolValue(r.border,!1),gradient:c.toBoolValue(r.gradient,!0),negativeBarColorSameAsPositive:c.toBoolValue(r.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:c.toBoolValue(r.negativeBarBorderColorSameAsPositive,!0),axisPosition:c.toStringValue(r.axisPosition,"auto"),direction:c.toStringValue(r.direction,"leftToRight")}}onParserClose(e,r){const[,u]=e.split(":");switch(u){case"cfvo":this.model.cfvo.push(r.model);break;default:this.model[u]=r.model}}}},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(t,v,m){const c=t("../../base-xform");v.exports=class extends c{get tag(){return"xm:f"}render(a,s){a.leafNode(this.tag,null,s)}parseOpen(){this.model=""}parseText(a){this.model+=a}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],81:[function(t,v,m){const c=t("../../base-xform"),a=t("../../composite-xform"),s=t("./cfvo-ext-xform"),n=t("./cf-icon-ext-xform");v.exports=class extends a{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new s,"x14:cfIcon":this.cfIconXform=new n}}get tag(){return"x14:iconSet"}render(e,r){e.openNode(this.tag,{iconSet:c.toStringAttribute(r.iconSet),reverse:c.toBoolAttribute(r.reverse,!1),showValue:c.toBoolAttribute(r.showValue,!0),custom:c.toBoolAttribute(r.icons,!1)}),r.cfvo.forEach(u=>{this.cfvoXform.render(e,u)}),r.icons&&r.icons.forEach((u,o)=>{u.iconId=o,this.cfIconXform.render(e,u)}),e.closeNode()}createNewModel(e){let{attributes:r}=e;return{cfvo:[],iconSet:c.toStringValue(r.iconSet,"3TrafficLights"),reverse:c.toBoolValue(r.reverse,!1),showValue:c.toBoolValue(r.showValue,!0)}}onParserClose(e,r){const[,u]=e.split(":");switch(u){case"cfvo":this.model.cfvo.push(r.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(r.model);break;default:this.model[u]=r.model}}}},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(t,v,m){const c=t("../../base-xform");v.exports=class extends c{get tag(){return"xm:sqref"}render(a,s){a.leafNode(this.tag,null,s)}parseOpen(){this.model=""}parseText(a){this.model+=a}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],83:[function(t,v,m){const c=t("../../base-xform"),a=t("../../composite-xform"),s=t("../../../../doc/range"),n=t("./databar-xform"),e=t("./ext-lst-ref-xform"),r=t("./formula-xform"),u=t("./color-scale-xform"),o=t("./icon-set-xform"),i={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},d=f=>{const{type:b,operator:p}=f;switch(b){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:b};default:return{type:b,operator:p}}};class h extends a{constructor(){super(),this.map={dataBar:this.databarXform=new n,extLst:this.extLstRefXform=new e,formula:this.formulaXform=new r,colorScale:this.colorScaleXform=new u,iconSet:this.iconSetXform=new o}}get tag(){return"cfRule"}static isPrimitive(b){return b.type!=="iconSet"||!b.custom&&!i[b.iconSet]}render(b,p){switch(p.type){case"expression":this.renderExpression(b,p);break;case"cellIs":this.renderCellIs(b,p);break;case"top10":this.renderTop10(b,p);break;case"aboveAverage":this.renderAboveAverage(b,p);break;case"dataBar":this.renderDataBar(b,p);break;case"colorScale":this.renderColorScale(b,p);break;case"iconSet":this.renderIconSet(b,p);break;case"containsText":this.renderText(b,p);break;case"timePeriod":this.renderTimePeriod(b,p)}}renderExpression(b,p){b.openNode(this.tag,{type:"expression",dxfId:p.dxfId,priority:p.priority}),this.formulaXform.render(b,p.formulae[0]),b.closeNode()}renderCellIs(b,p){b.openNode(this.tag,{type:"cellIs",dxfId:p.dxfId,priority:p.priority,operator:p.operator}),p.formulae.forEach(S=>{this.formulaXform.render(b,S)}),b.closeNode()}renderTop10(b,p){b.leafNode(this.tag,{type:"top10",dxfId:p.dxfId,priority:p.priority,percent:c.toBoolAttribute(p.percent,!1),bottom:c.toBoolAttribute(p.bottom,!1),rank:c.toIntValue(p.rank,10,!0)})}renderAboveAverage(b,p){b.leafNode(this.tag,{type:"aboveAverage",dxfId:p.dxfId,priority:p.priority,aboveAverage:c.toBoolAttribute(p.aboveAverage,!0)})}renderDataBar(b,p){b.openNode(this.tag,{type:"dataBar",priority:p.priority}),this.databarXform.render(b,p),this.extLstRefXform.render(b,p),b.closeNode()}renderColorScale(b,p){b.openNode(this.tag,{type:"colorScale",priority:p.priority}),this.colorScaleXform.render(b,p),b.closeNode()}renderIconSet(b,p){h.isPrimitive(p)&&(b.openNode(this.tag,{type:"iconSet",priority:p.priority}),this.iconSetXform.render(b,p),b.closeNode())}renderText(b,p){b.openNode(this.tag,{type:p.operator,dxfId:p.dxfId,priority:p.priority,operator:c.toStringAttribute(p.operator,"containsText")});const S=(_=>{if(_.formulae&&_.formulae[0])return _.formulae[0];const T=new s(_.ref),{tl:D}=T;switch(_.operator){case"containsText":return`NOT(ISERROR(SEARCH("${_.text}",${D})))`;case"containsBlanks":return`LEN(TRIM(${D}))=0`;case"notContainsBlanks":return`LEN(TRIM(${D}))>0`;case"containsErrors":return`ISERROR(${D})`;case"notContainsErrors":return`NOT(ISERROR(${D}))`;default:return}})(p);S&&this.formulaXform.render(b,S),b.closeNode()}renderTimePeriod(b,p){b.openNode(this.tag,{type:"timePeriod",dxfId:p.dxfId,priority:p.priority,timePeriod:p.timePeriod});const S=(_=>{if(_.formulae&&_.formulae[0])return _.formulae[0];const T=new s(_.ref),{tl:D}=T;switch(_.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${D},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${D},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${D},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${D},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${D},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${D},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${D},1)=TODAY()-1`;case"today":return`FLOOR(${D},1)=TODAY()`;case"tomorrow":return`FLOOR(${D},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${D},1)<=6,FLOOR(${D},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${D})=MONTH(EDATE(TODAY(),0-1)),YEAR(${D})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${D})=MONTH(TODAY()),YEAR(${D})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${D})=MONTH(EDATE(TODAY(),0+1)),YEAR(${D})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(p);S&&this.formulaXform.render(b,S),b.closeNode()}createNewModel(b){let{attributes:p}=b;return{...d(p),dxfId:c.toIntValue(p.dxfId),priority:c.toIntValue(p.priority),timePeriod:p.timePeriod,percent:c.toBoolValue(p.percent),bottom:c.toBoolValue(p.bottom),rank:c.toIntValue(p.rank),aboveAverage:c.toBoolValue(p.aboveAverage)}}onParserClose(b,p){switch(b){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,p.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(p.model)}}}v.exports=h},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(t,v,m){const c=t("../../base-xform");v.exports=class extends c{get tag(){return"cfvo"}render(a,s){a.leafNode(this.tag,{type:s.type,val:s.value})}parseOpen(a){this.model={type:a.attributes.type,value:c.toFloatValue(a.attributes.val)}}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],85:[function(t,v,m){const c=t("../../composite-xform"),a=t("../../style/color-xform"),s=t("./cfvo-xform");v.exports=class extends c{constructor(){super(),this.map={cfvo:this.cfvoXform=new s,color:this.colorXform=new a}}get tag(){return"colorScale"}render(n,e){n.openNode(this.tag),e.cfvo.forEach(r=>{this.cfvoXform.render(n,r)}),e.color.forEach(r=>{this.colorXform.render(n,r)}),n.closeNode()}createNewModel(n){return{cfvo:[],color:[]}}onParserClose(n,e){this.model[n].push(e.model)}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(t,v,m){const c=t("../../composite-xform"),a=t("./cf-rule-xform");v.exports=class extends c{constructor(){super(),this.map={cfRule:new a}}get tag(){return"conditionalFormatting"}render(s,n){n.rules.some(a.isPrimitive)&&(s.openNode(this.tag,{sqref:n.ref}),n.rules.forEach(e=>{a.isPrimitive(e)&&(e.ref=n.ref,this.map.cfRule.render(s,e))}),s.closeNode())}createNewModel(s){let{attributes:n}=s;return{ref:n.sqref,rules:[]}}onParserClose(s,n){this.model.rules.push(n.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(t,v,m){const c=t("../../base-xform"),a=t("./conditional-formatting-xform");v.exports=class extends c{constructor(){super(),this.cfXform=new a}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(s,n){let e=s.reduce((r,u)=>Math.max(r,...u.rules.map(o=>o.priority||0)),1);s.forEach(r=>{r.rules.forEach(u=>{u.priority||(u.priority=e++),u.style&&(u.dxfId=n.styles.addDxfStyle(u.style))})})}render(s,n){n.forEach(e=>{this.cfXform.render(s,e)})}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"conditionalFormatting":return this.parser=this.cfXform,this.parser.parseOpen(s),!0;default:return!1}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){return!!this.parser&&(!!this.parser.parseClose(s)||(this.model.push(this.parser.model),this.parser=void 0,!1))}reconcile(s,n){s.forEach(e=>{e.rules.forEach(r=>{r.dxfId!==void 0&&(r.style=n.styles.getDxfStyle(r.dxfId),delete r.dxfId)})})}}},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(t,v,m){const c=t("../../composite-xform"),a=t("../../style/color-xform"),s=t("./cfvo-xform");v.exports=class extends c{constructor(){super(),this.map={cfvo:this.cfvoXform=new s,color:this.colorXform=new a}}get tag(){return"dataBar"}render(n,e){n.openNode(this.tag),e.cfvo.forEach(r=>{this.cfvoXform.render(n,r)}),this.colorXform.render(n,e.color),n.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(n,e){switch(n){case"cfvo":this.model.cfvo.push(e.model);break;case"color":this.model.color=e.model}}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(t,v,m){const c=t("../../base-xform"),a=t("../../composite-xform");class s extends c{get tag(){return"x14:id"}render(r,u){r.leafNode(this.tag,null,u)}parseOpen(){this.model=""}parseText(r){this.model+=r}parseClose(r){return r!==this.tag}}class n extends a{constructor(){super(),this.map={"x14:id":this.idXform=new s}}get tag(){return"ext"}render(r,u){r.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(r,u.x14Id),r.closeNode()}createNewModel(){return{}}onParserClose(r,u){this.model.x14Id=u.model}}v.exports=class extends a{constructor(){super(),this.map={ext:new n}}get tag(){return"extLst"}render(e,r){e.openNode(this.tag),this.map.ext.render(e,r),e.closeNode()}createNewModel(){return{}}onParserClose(e,r){Object.assign(this.model,r.model)}}},{"../../base-xform":32,"../../composite-xform":48}],90:[function(t,v,m){const c=t("../../base-xform");v.exports=class extends c{get tag(){return"formula"}render(a,s){a.leafNode(this.tag,null,s)}parseOpen(){this.model=""}parseText(a){this.model+=a}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],91:[function(t,v,m){const c=t("../../base-xform"),a=t("../../composite-xform"),s=t("./cfvo-xform");v.exports=class extends a{constructor(){super(),this.map={cfvo:this.cfvoXform=new s}}get tag(){return"iconSet"}render(n,e){n.openNode(this.tag,{iconSet:c.toStringAttribute(e.iconSet,"3TrafficLights"),reverse:c.toBoolAttribute(e.reverse,!1),showValue:c.toBoolAttribute(e.showValue,!0)}),e.cfvo.forEach(r=>{this.cfvoXform.render(n,r)}),n.closeNode()}createNewModel(n){let{attributes:e}=n;return{iconSet:c.toStringValue(e.iconSet,"3TrafficLights"),reverse:c.toBoolValue(e.reverse),showValue:c.toBoolValue(e.showValue),cfvo:[]}}onParserClose(n,e){this.model[n].push(e.model)}}},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(t,v,m){const c=t("../../../utils/utils"),a=t("../base-xform");v.exports=class extends a{get tag(){return"col"}prepare(s,n){const e=n.styles.addStyleModel(s.style||{});e&&(s.styleId=e)}render(s,n){s.openNode("col"),s.addAttribute("min",n.min),s.addAttribute("max",n.max),n.width&&s.addAttribute("width",n.width),n.styleId&&s.addAttribute("style",n.styleId),n.hidden&&s.addAttribute("hidden","1"),n.bestFit&&s.addAttribute("bestFit","1"),n.outlineLevel&&s.addAttribute("outlineLevel",n.outlineLevel),n.collapsed&&s.addAttribute("collapsed","1"),s.addAttribute("customWidth","1"),s.closeNode()}parseOpen(s){if(s.name==="col"){const n=this.model={min:parseInt(s.attributes.min||"0",10),max:parseInt(s.attributes.max||"0",10),width:s.attributes.width===void 0?void 0:parseFloat(s.attributes.width||"0")};return s.attributes.style&&(n.styleId=parseInt(s.attributes.style,10)),c.parseBoolean(s.attributes.hidden)&&(n.hidden=!0),c.parseBoolean(s.attributes.bestFit)&&(n.bestFit=!0),s.attributes.outlineLevel&&(n.outlineLevel=parseInt(s.attributes.outlineLevel,10)),c.parseBoolean(s.attributes.collapsed)&&(n.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(s,n){s.styleId&&(s.style=n.styles.getStyleModel(s.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(t,v,m){const c=t("../../../utils/under-dash"),a=t("../../../utils/utils"),s=t("../../../utils/col-cache"),n=t("../base-xform"),e=t("../../../doc/range");function r(o,i,d,h){const f=i[d];f!==void 0?o[d]=f:h!==void 0&&(o[d]=h)}function u(o,i,d,h){const f=i[d];f!==void 0&&(o[d]=a.parseBoolean(f))}v.exports=class extends n{get tag(){return"dataValidations"}render(o,i){const d=function(h){const f=c.map(h,(S,_)=>({address:_,dataValidation:S,marked:!1})).sort((S,_)=>c.strcmp(S.address,_.address)),b=c.keyBy(f,"address"),p=(S,_,T)=>{for(let D=0;D<_;D++){const z=s.encodeAddress(S.row+D,T);if(!h[z]||!c.isEqual(h[S.address],h[z]))return!1}return!0};return f.map(S=>{if(!S.marked){const _=s.decodeEx(S.address);if(_.dimensions)return b[_.dimensions].marked=!0,{...S.dataValidation,sqref:S.address};let T=1,D=s.encodeAddress(_.row+T,_.col);for(;h[D]&&c.isEqual(S.dataValidation,h[D]);)T++,D=s.encodeAddress(_.row+T,_.col);let z=1;for(;p(_,T,_.col+z);)z++;for(let P=0;P<T;P++)for(let N=0;N<z;N++)D=s.encodeAddress(_.row+P,_.col+N),b[D].marked=!0;if(T>1||z>1){const P=_.row+(T-1),N=_.col+(z-1);return{...S.dataValidation,sqref:`${S.address}:${s.encodeAddress(P,N)}`}}return{...S.dataValidation,sqref:S.address}}return null}).filter(Boolean)}(i);d.length&&(o.openNode("dataValidations",{count:d.length}),d.forEach(h=>{o.openNode("dataValidation"),h.type!=="any"&&(o.addAttribute("type",h.type),h.operator&&h.type!=="list"&&h.operator!=="between"&&o.addAttribute("operator",h.operator),h.allowBlank&&o.addAttribute("allowBlank","1")),h.showInputMessage&&o.addAttribute("showInputMessage","1"),h.promptTitle&&o.addAttribute("promptTitle",h.promptTitle),h.prompt&&o.addAttribute("prompt",h.prompt),h.showErrorMessage&&o.addAttribute("showErrorMessage","1"),h.errorStyle&&o.addAttribute("errorStyle",h.errorStyle),h.errorTitle&&o.addAttribute("errorTitle",h.errorTitle),h.error&&o.addAttribute("error",h.error),o.addAttribute("sqref",h.sqref),(h.formulae||[]).forEach((f,b)=>{o.openNode("formula"+(b+1)),h.type==="date"?o.writeText(a.dateToExcel(new Date(f))):o.writeText(f),o.closeNode()}),o.closeNode()}),o.closeNode())}parseOpen(o){switch(o.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=o.attributes.sqref;const i={type:o.attributes.type||"any",formulae:[]};switch(o.attributes.type&&u(i,o.attributes,"allowBlank"),u(i,o.attributes,"showInputMessage"),u(i,o.attributes,"showErrorMessage"),i.type){case"any":case"list":case"custom":break;default:r(i,o.attributes,"operator","between")}return r(i,o.attributes,"promptTitle"),r(i,o.attributes,"prompt"),r(i,o.attributes,"errorStyle"),r(i,o.attributes,"errorTitle"),r(i,o.attributes,"error"),this._dataValidation=i,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(o){this._formula&&this._formula.push(o)}parseClose(o){switch(o){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach(i=>{i.includes(":")?new e(i).forEachAddress(d=>{this.model[d]=this._dataValidation}):this.model[i]=this._dataValidation}),!0;case"formula1":case"formula2":{let i=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":i=parseInt(i,10);break;case"decimal":i=parseFloat(i);break;case"date":i=a.excelToDate(parseFloat(i))}return this._dataValidation.formulae.push(i),this._formula=void 0,!0}default:return!0}}}},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"dimension"}render(a,s){s&&a.leafNode("dimension",{ref:s})}parseOpen(a){return a.name==="dimension"&&(this.model=a.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"drawing"}render(a,s){s&&a.leafNode(this.tag,{"r:id":s.rId})}parseOpen(a){switch(a.name){case this.tag:return this.model={rId:a.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(t,v,m){const c=t("../composite-xform"),a=t("./cf-ext/conditional-formattings-ext-xform");class s extends c{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new a}}get tag(){return"ext"}hasContent(e){return this.conditionalFormattings.hasContent(e.conditionalFormattings)}prepare(e,r){this.conditionalFormattings.prepare(e.conditionalFormattings,r)}render(e,r){e.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(e,r.conditionalFormattings),e.closeNode()}createNewModel(){return{}}onParserClose(e,r){this.model[e]=r.model}}v.exports=class extends c{constructor(){super(),this.map={ext:this.ext=new s}}get tag(){return"extLst"}prepare(n,e){this.ext.prepare(n,e)}hasContent(n){return this.ext.hasContent(n)}render(n,e){this.hasContent(e)&&(n.openNode("extLst"),this.ext.render(n,e),n.closeNode())}createNewModel(){return{}}onParserClose(n,e){Object.assign(this.model,e.model)}}},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"headerFooter"}render(a,s){if(s){a.addRollback();let n=!1;a.openNode("headerFooter"),s.differentFirst&&(a.addAttribute("differentFirst","1"),n=!0),s.differentOddEven&&(a.addAttribute("differentOddEven","1"),n=!0),s.oddHeader&&typeof s.oddHeader=="string"&&(a.leafNode("oddHeader",null,s.oddHeader),n=!0),s.oddFooter&&typeof s.oddFooter=="string"&&(a.leafNode("oddFooter",null,s.oddFooter),n=!0),s.evenHeader&&typeof s.evenHeader=="string"&&(a.leafNode("evenHeader",null,s.evenHeader),n=!0),s.evenFooter&&typeof s.evenFooter=="string"&&(a.leafNode("evenFooter",null,s.evenFooter),n=!0),s.firstHeader&&typeof s.firstHeader=="string"&&(a.leafNode("firstHeader",null,s.firstHeader),n=!0),s.firstFooter&&typeof s.firstFooter=="string"&&(a.leafNode("firstFooter",null,s.firstFooter),n=!0),n?(a.closeNode(),a.commit()):a.rollback()}}parseOpen(a){switch(a.name){case"headerFooter":return this.model={},a.attributes.differentFirst&&(this.model.differentFirst=parseInt(a.attributes.differentFirst,0)===1),a.attributes.differentOddEven&&(this.model.differentOddEven=parseInt(a.attributes.differentOddEven,0)===1),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}parseText(a){switch(this.currentNode){case"oddHeader":this.model.oddHeader=a;break;case"oddFooter":this.model.oddFooter=a;break;case"evenHeader":this.model.evenHeader=a;break;case"evenFooter":this.model.evenFooter=a;break;case"firstHeader":this.model.firstHeader=a;break;case"firstFooter":this.model.firstFooter=a}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}},{"../base-xform":32}],98:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"hyperlink"}render(a,s){this.isInternalLink(s)?a.leafNode("hyperlink",{ref:s.address,"r:id":s.rId,tooltip:s.tooltip,location:s.target}):a.leafNode("hyperlink",{ref:s.address,"r:id":s.rId,tooltip:s.tooltip})}parseOpen(a){return a.name==="hyperlink"&&(this.model={address:a.attributes.ref,rId:a.attributes["r:id"],tooltip:a.attributes.tooltip},a.attributes.location&&(this.model.target=a.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(a){return a.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(a.target)}}},{"../base-xform":32}],99:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"mergeCell"}render(a,s){a.leafNode("mergeCell",{ref:s})}parseOpen(a){return a.name==="mergeCell"&&(this.model=a.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(t,v,m){const c=t("../../../utils/under-dash"),a=t("../../../doc/range"),s=t("../../../utils/col-cache"),n=t("../../../doc/enums");v.exports=class{constructor(){this.merges={}}add(e){if(this.merges[e.master])this.merges[e.master].expandToAddress(e.address);else{const r=`${e.master}:${e.address}`;this.merges[e.master]=new a(r)}}get mergeCells(){return c.map(this.merges,e=>e.range)}reconcile(e,r){c.each(e,u=>{const o=s.decode(u);for(let i=o.top;i<=o.bottom;i++){const d=r[i-1];for(let h=o.left;h<=o.right;h++){const f=d.cells[h-1];f?f.type===n.ValueType.Merge&&(f.master=o.tl):d.cells[h]={type:n.ValueType.Null,address:s.encodeAddress(i,h)}}}})}getMasterAddress(e){const r=this.hash[e];return r&&r.tl}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(t,v,m){const c=t("../base-xform"),a=s=>s!==void 0;v.exports=class extends c{get tag(){return"outlinePr"}render(s,n){return!(!n||!a(n.summaryBelow)&&!a(n.summaryRight))&&(s.leafNode(this.tag,{summaryBelow:a(n.summaryBelow)?Number(n.summaryBelow):void 0,summaryRight:a(n.summaryRight)?Number(n.summaryRight):void 0}),!0)}parseOpen(s){return s.name===this.tag&&(this.model={summaryBelow:a(s.attributes.summaryBelow)?!!Number(s.attributes.summaryBelow):void 0,summaryRight:a(s.attributes.summaryRight)?!!Number(s.attributes.summaryRight):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"brk"}render(a,s){a.leafNode("brk",s)}parseOpen(a){return a.name==="brk"&&(this.model=a.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(t,v,m){const c=t("../../../utils/under-dash"),a=t("../base-xform");v.exports=class extends a{get tag(){return"pageMargins"}render(s,n){if(n){const e={left:n.left,right:n.right,top:n.top,bottom:n.bottom,header:n.header,footer:n.footer};c.some(e,r=>r!==void 0)&&s.leafNode(this.tag,e)}}parseOpen(s){switch(s.name){case this.tag:return this.model={left:parseFloat(s.attributes.left||.7),right:parseFloat(s.attributes.right||.7),top:parseFloat(s.attributes.top||.75),bottom:parseFloat(s.attributes.bottom||.75),header:parseFloat(s.attributes.header||.3),footer:parseFloat(s.attributes.footer||.3)},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"pageSetUpPr"}render(a,s){return!(!s||!s.fitToPage)&&(a.leafNode(this.tag,{fitToPage:s.fitToPage?"1":void 0}),!0)}parseOpen(a){return a.name===this.tag&&(this.model={fitToPage:a.attributes.fitToPage==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(t,v,m){const c=t("../../../utils/under-dash"),a=t("../base-xform");function s(u){return u?"1":void 0}function n(u){switch(u){case"overThenDown":return u;default:return}}function e(u){switch(u){case"atEnd":case"asDisplyed":return u;default:return}}function r(u){switch(u){case"dash":case"blank":case"NA":return u;default:return}}v.exports=class extends a{get tag(){return"pageSetup"}render(u,o){if(o){const i={paperSize:o.paperSize,orientation:o.orientation,horizontalDpi:o.horizontalDpi,verticalDpi:o.verticalDpi,pageOrder:n(o.pageOrder),blackAndWhite:s(o.blackAndWhite),draft:s(o.draft),cellComments:e(o.cellComments),errors:r(o.errors),scale:o.scale,fitToWidth:o.fitToWidth,fitToHeight:o.fitToHeight,firstPageNumber:o.firstPageNumber,useFirstPageNumber:s(o.firstPageNumber),usePrinterDefaults:s(o.usePrinterDefaults),copies:o.copies};c.some(i,d=>d!==void 0)&&u.leafNode(this.tag,i)}}parseOpen(u){switch(u.name){case this.tag:return this.model={paperSize:(o=u.attributes.paperSize,o!==void 0?parseInt(o,10):void 0),orientation:u.attributes.orientation||"portrait",horizontalDpi:parseInt(u.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(u.attributes.verticalDpi||"4294967295",10),pageOrder:u.attributes.pageOrder||"downThenOver",blackAndWhite:u.attributes.blackAndWhite==="1",draft:u.attributes.draft==="1",cellComments:u.attributes.cellComments||"None",errors:u.attributes.errors||"displayed",scale:parseInt(u.attributes.scale||"100",10),fitToWidth:parseInt(u.attributes.fitToWidth||"1",10),fitToHeight:parseInt(u.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(u.attributes.firstPageNumber||"1",10),useFirstPageNumber:u.attributes.useFirstPageNumber==="1",usePrinterDefaults:u.attributes.usePrinterDefaults==="1",copies:parseInt(u.attributes.copies||"1",10)},!0;default:return!1}var o}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"picture"}render(a,s){s&&a.leafNode(this.tag,{"r:id":s.rId})}parseOpen(a){switch(a.name){case this.tag:return this.model={rId:a.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(t,v,m){const c=t("../../../utils/under-dash"),a=t("../base-xform");function s(n){return n?"1":void 0}v.exports=class extends a{get tag(){return"printOptions"}render(n,e){if(e){const r={headings:s(e.showRowColHeaders),gridLines:s(e.showGridLines),horizontalCentered:s(e.horizontalCentered),verticalCentered:s(e.verticalCentered)};c.some(r,u=>u!==void 0)&&n.leafNode(this.tag,r)}}parseOpen(n){switch(n.name){case this.tag:return this.model={showRowColHeaders:n.attributes.headings==="1",showGridLines:n.attributes.gridLines==="1",horizontalCentered:n.attributes.horizontalCentered==="1",verticalCentered:n.attributes.verticalCentered==="1"},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(t,v,m){const c=t("./page-breaks-xform"),a=t("../list-xform");v.exports=class extends a{constructor(){super({tag:"rowBreaks",count:!0,childXform:new c})}render(s,n){if(n&&n.length){s.openNode(this.tag,this.$),this.count&&(s.addAttribute(this.$count,n.length),s.addAttribute("manualBreakCount",n.length));const{childXform:e}=this;n.forEach(r=>{e.render(s,r)}),s.closeNode()}else this.empty&&s.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(t,v,m){const c=t("../base-xform"),a=t("../../../utils/utils"),s=t("./cell-xform");v.exports=class extends c{constructor(n){super(),this.maxItems=n&&n.maxItems,this.map={c:new s}}get tag(){return"row"}prepare(n,e){const r=e.styles.addStyleModel(n.style);r&&(n.styleId=r);const u=this.map.c;n.cells.forEach(o=>{u.prepare(o,e)})}render(n,e,r){n.openNode("row"),n.addAttribute("r",e.number),e.height&&(n.addAttribute("ht",e.height),n.addAttribute("customHeight","1")),e.hidden&&n.addAttribute("hidden","1"),e.min>0&&e.max>0&&e.min<=e.max&&n.addAttribute("spans",`${e.min}:${e.max}`),e.styleId&&(n.addAttribute("s",e.styleId),n.addAttribute("customFormat","1")),n.addAttribute("x14ac:dyDescent","0.25"),e.outlineLevel&&n.addAttribute("outlineLevel",e.outlineLevel),e.collapsed&&n.addAttribute("collapsed","1");const u=this.map.c;e.cells.forEach(o=>{u.render(n,o,r)}),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;if(n.name==="row"){this.numRowsSeen+=1;const e=n.attributes.spans?n.attributes.spans.split(":").map(u=>parseInt(u,10)):[void 0,void 0],r=this.model={number:parseInt(n.attributes.r,10),min:e[0],max:e[1],cells:[]};return n.attributes.s&&(r.styleId=parseInt(n.attributes.s,10)),a.parseBoolean(n.attributes.hidden)&&(r.hidden=!0),a.parseBoolean(n.attributes.bestFit)&&(r.bestFit=!0),n.attributes.ht&&(r.height=parseFloat(n.attributes.ht)),n.attributes.outlineLevel&&(r.outlineLevel=parseInt(n.attributes.outlineLevel,10)),a.parseBoolean(n.attributes.collapsed)&&(r.collapsed=!0),!0}return this.parser=this.map[n.name],!!this.parser&&(this.parser.parseOpen(n),!0)}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser){if(!this.parser.parseClose(n)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(n,e){n.style=n.styleId?e.styles.getStyleModel(n.styleId):{},n.styleId!==void 0&&(n.styleId=void 0);const r=this.map.c;n.cells.forEach(u=>{r.reconcile(u,e)})}}},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(t,v,m){const c=t("../../../utils/under-dash"),a=t("../base-xform");v.exports=class extends a{get tag(){return"sheetFormatPr"}render(s,n){if(n){const e={defaultRowHeight:n.defaultRowHeight,outlineLevelRow:n.outlineLevelRow,outlineLevelCol:n.outlineLevelCol,"x14ac:dyDescent":n.dyDescent};n.defaultColWidth&&(e.defaultColWidth=n.defaultColWidth),n.defaultRowHeight&&n.defaultRowHeight===15||(e.customHeight="1"),c.some(e,r=>r!==void 0)&&s.leafNode("sheetFormatPr",e)}}parseOpen(s){return s.name==="sheetFormatPr"&&(this.model={defaultRowHeight:parseFloat(s.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(s.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(s.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(s.attributes.outlineLevelCol||"0",10)},s.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(s.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(t,v,m){const c=t("../base-xform"),a=t("../style/color-xform"),s=t("./page-setup-properties-xform"),n=t("./outline-properties-xform");v.exports=class extends c{constructor(){super(),this.map={tabColor:new a("tabColor"),pageSetUpPr:new s,outlinePr:new n}}get tag(){return"sheetPr"}render(e,r){if(r){e.addRollback(),e.openNode("sheetPr");let u=!1;u=this.map.tabColor.render(e,r.tabColor)||u,u=this.map.pageSetUpPr.render(e,r.pageSetup)||u,u=this.map.outlinePr.render(e,r.outlineProperties)||u,u?(e.closeNode(),e.commit()):e.rollback()}}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.reset(),!0):!!this.map[e.name]&&(this.parser=this.map[e.name],this.parser.parseOpen(e),!0)}parseText(e){return!!this.parser&&(this.parser.parseText(e),!0)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(t,v,m){const c=t("../../../utils/under-dash"),a=t("../base-xform");function s(e,r){return e?r:void 0}function n(e,r){return e===r||void 0}v.exports=class extends a{get tag(){return"sheetProtection"}render(e,r){if(r){const u={sheet:s(r.sheet,"1"),selectLockedCells:r.selectLockedCells===!1?"1":void 0,selectUnlockedCells:r.selectUnlockedCells===!1?"1":void 0,formatCells:s(r.formatCells,"0"),formatColumns:s(r.formatColumns,"0"),formatRows:s(r.formatRows,"0"),insertColumns:s(r.insertColumns,"0"),insertRows:s(r.insertRows,"0"),insertHyperlinks:s(r.insertHyperlinks,"0"),deleteColumns:s(r.deleteColumns,"0"),deleteRows:s(r.deleteRows,"0"),sort:s(r.sort,"0"),autoFilter:s(r.autoFilter,"0"),pivotTables:s(r.pivotTables,"0")};r.sheet&&(u.algorithmName=r.algorithmName,u.hashValue=r.hashValue,u.saltValue=r.saltValue,u.spinCount=r.spinCount,u.objects=s(r.objects===!1,"1"),u.scenarios=s(r.scenarios===!1,"1")),c.some(u,o=>o!==void 0)&&e.leafNode(this.tag,u)}}parseOpen(e){switch(e.name){case this.tag:return this.model={sheet:n(e.attributes.sheet,"1"),objects:e.attributes.objects!=="1"&&void 0,scenarios:e.attributes.scenarios!=="1"&&void 0,selectLockedCells:e.attributes.selectLockedCells!=="1"&&void 0,selectUnlockedCells:e.attributes.selectUnlockedCells!=="1"&&void 0,formatCells:n(e.attributes.formatCells,"0"),formatColumns:n(e.attributes.formatColumns,"0"),formatRows:n(e.attributes.formatRows,"0"),insertColumns:n(e.attributes.insertColumns,"0"),insertRows:n(e.attributes.insertRows,"0"),insertHyperlinks:n(e.attributes.insertHyperlinks,"0"),deleteColumns:n(e.attributes.deleteColumns,"0"),deleteRows:n(e.attributes.deleteRows,"0"),sort:n(e.attributes.sort,"0"),autoFilter:n(e.attributes.autoFilter,"0"),pivotTables:n(e.attributes.pivotTables,"0")},e.attributes.algorithmName&&(this.model.algorithmName=e.attributes.algorithmName,this.model.hashValue=e.attributes.hashValue,this.model.saltValue=e.attributes.saltValue,this.model.spinCount=parseInt(e.attributes.spinCount,10)),!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(t,v,m){const c=t("../../../utils/col-cache"),a=t("../base-xform"),s={frozen:"frozen",frozenSplit:"frozen",split:"split"};v.exports=class extends a{get tag(){return"sheetView"}prepare(n){switch(n.state){case"frozen":case"split":break;default:n.state="normal"}}render(n,e){n.openNode("sheetView",{workbookViewId:e.workbookViewId||0});const r=function(h,f,b){b&&n.addAttribute(h,f)};let u,o,i,d;switch(r("rightToLeft","1",e.rightToLeft===!0),r("tabSelected","1",e.tabSelected),r("showRuler","0",e.showRuler===!1),r("showRowColHeaders","0",e.showRowColHeaders===!1),r("showGridLines","0",e.showGridLines===!1),r("zoomScale",e.zoomScale,e.zoomScale),r("zoomScaleNormal",e.zoomScaleNormal,e.zoomScaleNormal),r("view",e.style,e.style),e.state){case"frozen":o=e.xSplit||0,i=e.ySplit||0,u=e.topLeftCell||c.getAddress(i+1,o+1).address,d=(e.xSplit&&e.ySplit?"bottomRight":e.xSplit&&"topRight")||"bottomLeft",n.leafNode("pane",{xSplit:e.xSplit||void 0,ySplit:e.ySplit||void 0,topLeftCell:u,activePane:d,state:"frozen"}),n.leafNode("selection",{pane:d,activeCell:e.activeCell,sqref:e.activeCell});break;case"split":e.activePane==="topLeft"&&(e.activePane=void 0),n.leafNode("pane",{xSplit:e.xSplit||void 0,ySplit:e.ySplit||void 0,topLeftCell:e.topLeftCell,activePane:e.activePane}),n.leafNode("selection",{pane:e.activePane,activeCell:e.activeCell,sqref:e.activeCell});break;case"normal":e.activeCell&&n.leafNode("selection",{activeCell:e.activeCell,sqref:e.activeCell})}n.closeNode()}parseOpen(n){switch(n.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(n.attributes.workbookViewId,10),rightToLeft:n.attributes.rightToLeft==="1",tabSelected:n.attributes.tabSelected==="1",showRuler:n.attributes.showRuler!=="0",showRowColHeaders:n.attributes.showRowColHeaders!=="0",showGridLines:n.attributes.showGridLines!=="0",zoomScale:parseInt(n.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(n.attributes.zoomScaleNormal||"100",10),style:n.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(n.attributes.xSplit||"0",10),ySplit:parseInt(n.attributes.ySplit||"0",10),topLeftCell:n.attributes.topLeftCell,activePane:n.attributes.activePane||"topLeft",state:n.attributes.state},!0;case"selection":{const e=n.attributes.pane||"topLeft";return this.selections[e]={pane:e,activeCell:n.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(n){let e,r;switch(n){case"sheetView":return this.sheetView&&this.pane?(e=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:s[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},this.model.state==="split"&&(e.activePane=this.pane.activePane),r=this.selections[this.pane.activePane],r&&r.activeCell&&(e.activeCell=r.activeCell),this.sheetView.style&&(e.style=this.sheetView.style)):(e=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},r=this.selections.topLeft,r&&r.activeCell&&(e.activeCell=r.activeCell),this.sheetView.style&&(e.style=this.sheetView.style)),!1;default:return!0}}reconcile(){}}},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"tablePart"}render(a,s){s&&a.leafNode(this.tag,{"r:id":s.rId})}parseOpen(a){switch(a.name){case this.tag:return this.model={rId:a.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(t,v,m){const c=t("../../../utils/under-dash"),a=t("../../../utils/col-cache"),s=t("../../../utils/xml-stream"),n=t("../../rel-type"),e=t("./merges"),r=t("../base-xform"),u=t("../list-xform"),o=t("./row-xform"),i=t("./col-xform"),d=t("./dimension-xform"),h=t("./hyperlink-xform"),f=t("./merge-cell-xform"),b=t("./data-validations-xform"),p=t("./sheet-properties-xform"),S=t("./sheet-format-properties-xform"),_=t("./sheet-view-xform"),T=t("./sheet-protection-xform"),D=t("./page-margins-xform"),z=t("./page-setup-xform"),P=t("./print-options-xform"),N=t("./auto-filter-xform"),V=t("./picture-xform"),W=t("./drawing-xform"),L=t("./table-part-xform"),A=t("./row-breaks-xform"),M=t("./header-footer-xform"),C=t("./cf/conditional-formattings-xform"),y=t("./ext-lst-xform"),x=(k,E)=>{if(!E||!E.length)return k;if(!k||!k.length)return E;const O={},R={};return k.forEach(U=>{O[U.ref]=U,U.rules.forEach(q=>{const{x14Id:K}=q;K&&(R[K]=q)})}),E.forEach(U=>{U.rules.forEach(q=>{const K=R[q.x14Id];K?((j,Y)=>{Object.keys(Y).forEach(F=>{const B=j[F],H=Y[F];B===void 0&&H!==void 0&&(j[F]=H)})})(K,q):O[U.ref]?O[U.ref].rules.push(q):k.push({ref:U.ref,rules:[q]})})}),k};class w extends r{constructor(E){super();const{maxRows:O,maxCols:R,ignoreNodes:U}=E||{};this.ignoreNodes=U||[],this.map={sheetPr:new p,dimension:new d,sheetViews:new u({tag:"sheetViews",count:!1,childXform:new _}),sheetFormatPr:new S,cols:new u({tag:"cols",count:!1,childXform:new i}),sheetData:new u({tag:"sheetData",count:!1,empty:!0,childXform:new o({maxItems:R}),maxItems:O}),autoFilter:new N,mergeCells:new u({tag:"mergeCells",count:!0,childXform:new f}),rowBreaks:new A,hyperlinks:new u({tag:"hyperlinks",count:!1,childXform:new h}),pageMargins:new D,dataValidations:new b,pageSetup:new z,headerFooter:new M,printOptions:new P,picture:new V,drawing:new W,sheetProtection:new T,tableParts:new u({tag:"tableParts",count:!0,childXform:new L}),conditionalFormatting:new C,extLst:new y}}prepare(E,O){O.merges=new e,E.hyperlinks=O.hyperlinks=[],E.comments=O.comments=[],O.formulae={},O.siFormulae=0,this.map.cols.prepare(E.cols,O),this.map.sheetData.prepare(E.rows,O),this.map.conditionalFormatting.prepare(E.conditionalFormattings,O),E.mergeCells=O.merges.mergeCells;const R=E.rels=[];function U(j){return"rId"+(j.length+1)}if(E.hyperlinks.forEach(j=>{const Y=U(R);j.rId=Y,R.push({Id:Y,Type:n.Hyperlink,Target:j.target,TargetMode:"External"})}),E.comments.length>0){const j={Id:U(R),Type:n.Comments,Target:`../comments${E.id}.xml`};R.push(j);const Y={Id:U(R),Type:n.VmlDrawing,Target:`../drawings/vmlDrawing${E.id}.vml`};R.push(Y),E.comments.forEach(F=>{F.refAddress=a.decodeAddress(F.ref)}),O.commentRefs.push({commentName:"comments"+E.id,vmlDrawing:"vmlDrawing"+E.id})}const q=[];let K;E.media.forEach(j=>{if(j.type==="background"){const Y=U(R);K=O.media[j.imageId],R.push({Id:Y,Type:n.Image,Target:`../media/${K.name}.${K.extension}`}),E.background={rId:Y},E.image=O.media[j.imageId]}else if(j.type==="image"){let{drawing:Y}=E;K=O.media[j.imageId],Y||(Y=E.drawing={rId:U(R),name:"drawing"+ ++O.drawingsCount,anchors:[],rels:[]},O.drawings.push(Y),R.push({Id:Y.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${Y.name}.xml`}));let F=this.preImageId===j.imageId?q[j.imageId]:q[Y.rels.length];F||(F=U(Y.rels),q[Y.rels.length]=F,Y.rels.push({Id:F,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${K.name}.${K.extension}`}));const B={picture:{rId:F},range:j.range};if(j.hyperlinks&&j.hyperlinks.hyperlink){const H=U(Y.rels);q[Y.rels.length]=H,B.picture.hyperlinks={tooltip:j.hyperlinks.tooltip,rId:H},Y.rels.push({Id:H,Type:n.Hyperlink,Target:j.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=j.imageId,Y.anchors.push(B)}}),E.tables.forEach(j=>{const Y=U(R);j.rId=Y,R.push({Id:Y,Type:n.Table,Target:"../tables/"+j.target}),j.columns.forEach(F=>{const{style:B}=F;B&&(F.dxfId=O.styles.addDxfStyle(B))})}),this.map.extLst.prepare(E,O)}render(E,O){E.openXml(s.StdDocAttributes),E.openNode("worksheet",w.WORKSHEET_ATTRIBUTES);const R=O.properties?{defaultRowHeight:O.properties.defaultRowHeight,dyDescent:O.properties.dyDescent,outlineLevelCol:O.properties.outlineLevelCol,outlineLevelRow:O.properties.outlineLevelRow}:void 0;O.properties&&O.properties.defaultColWidth&&(R.defaultColWidth=O.properties.defaultColWidth);const U={outlineProperties:O.properties&&O.properties.outlineProperties,tabColor:O.properties&&O.properties.tabColor,pageSetup:O.pageSetup&&O.pageSetup.fitToPage?{fitToPage:O.pageSetup.fitToPage}:void 0},q=O.pageSetup&&O.pageSetup.margins,K={showRowColHeaders:O.pageSetup&&O.pageSetup.showRowColHeaders,showGridLines:O.pageSetup&&O.pageSetup.showGridLines,horizontalCentered:O.pageSetup&&O.pageSetup.horizontalCentered,verticalCentered:O.pageSetup&&O.pageSetup.verticalCentered},j=O.sheetProtection;this.map.sheetPr.render(E,U),this.map.dimension.render(E,O.dimensions),this.map.sheetViews.render(E,O.views),this.map.sheetFormatPr.render(E,R),this.map.cols.render(E,O.cols),this.map.sheetData.render(E,O.rows),this.map.sheetProtection.render(E,j),this.map.autoFilter.render(E,O.autoFilter),this.map.mergeCells.render(E,O.mergeCells),this.map.conditionalFormatting.render(E,O.conditionalFormattings),this.map.dataValidations.render(E,O.dataValidations),this.map.hyperlinks.render(E,O.hyperlinks),this.map.printOptions.render(E,K),this.map.pageMargins.render(E,q),this.map.pageSetup.render(E,O.pageSetup),this.map.headerFooter.render(E,O.headerFooter),this.map.rowBreaks.render(E,O.rowBreaks),this.map.drawing.render(E,O.drawing),this.map.picture.render(E,O.background),this.map.tableParts.render(E,O.tables),this.map.extLst.render(E,O),O.rels&&O.rels.forEach(Y=>{Y.Type===n.VmlDrawing&&E.leafNode("legacyDrawing",{"r:id":Y.Id})}),E.closeNode()}parseOpen(E){return this.parser?(this.parser.parseOpen(E),!0):E.name==="worksheet"?(c.each(this.map,O=>{O.reset()}),!0):(this.map[E.name]&&!this.ignoreNodes.includes(E.name)&&(this.parser=this.map[E.name],this.parser.parseOpen(E)),!0)}parseText(E){this.parser&&this.parser.parseText(E)}parseClose(E){if(this.parser)return this.parser.parseClose(E)||(this.parser=void 0),!0;switch(E){case"worksheet":{const O=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(O.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(O.outlineProperties=this.map.sheetPr.model.outlineProperties);const R={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},U=Object.assign(R,this.map.pageSetup.model,this.map.printOptions.model),q=x(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:O,views:this.map.sheetViews.model,pageSetup:U,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:q},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}default:return!0}}reconcile(E,O){const R=(E.relationships||[]).reduce((q,K)=>{if(q[K.Id]=K,K.Type===n.Comments&&(E.comments=O.comments[K.Target].comments),K.Type===n.VmlDrawing&&E.comments&&E.comments.length){const j=O.vmlDrawings[K.Target].comments;E.comments.forEach((Y,F)=>{Y.note=Object.assign({},Y.note,j[F])})}return q},{});if(O.commentsMap=(E.comments||[]).reduce((q,K)=>(K.ref&&(q[K.ref]=K),q),{}),O.hyperlinkMap=(E.hyperlinks||[]).reduce((q,K)=>(K.rId&&(q[K.address]=R[K.rId].Target),q),{}),O.formulae={},E.rows=E.rows&&E.rows.filter(Boolean)||[],E.rows.forEach(q=>{q.cells=q.cells&&q.cells.filter(Boolean)||[]}),this.map.cols.reconcile(E.cols,O),this.map.sheetData.reconcile(E.rows,O),this.map.conditionalFormatting.reconcile(E.conditionalFormattings,O),E.media=[],E.drawing){const q=R[E.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(q){const K=q[1];O.drawings[K].anchors.forEach(j=>{if(j.medium){const Y={type:"image",imageId:j.medium.index,range:j.range,hyperlinks:j.picture.hyperlinks};E.media.push(Y)}})}}const U=E.background&&R[E.background.rId];if(U){const q=U.Target.split("/media/")[1],K=O.mediaIndex&&O.mediaIndex[q];K!==void 0&&E.media.push({type:"background",imageId:K})}E.tables=(E.tables||[]).map(q=>{const K=R[q.rId];return O.tables[K.Target]}),delete E.relationships,delete E.hyperlinks,delete E.comments}}w.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},v.exports=w},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{constructor(a){super(),this.tag=a.tag,this.attr=a.attr}render(a,s){s&&(a.openNode(this.tag),a.closeNode())}parseOpen(a){a.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{constructor(a){super(),this.tag=a.tag,this.attr=a.attr,this.attrs=a.attrs,this._format=a.format||function(s){try{return Number.isNaN(s.getTime())?"":s.toISOString()}catch{return""}},this._parse=a.parse||function(s){return new Date(s)}}render(a,s){s&&(a.openNode(this.tag),this.attrs&&a.addAttributes(this.attrs),this.attr?a.addAttribute(this.attr,this._format(s)):a.writeText(this._format(s)),a.closeNode())}parseOpen(a){a.name===this.tag&&(this.attr?this.model=this._parse(a.attributes[this.attr]):this.text=[])}parseText(a){this.attr||this.text.push(a)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},{"../base-xform":32}],118:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{constructor(a){super(),this.tag=a.tag,this.attr=a.attr,this.attrs=a.attrs,this.zero=a.zero}render(a,s){(s||this.zero)&&(a.openNode(this.tag),this.attrs&&a.addAttributes(this.attrs),this.attr?a.addAttribute(this.attr,s):a.writeText(s),a.closeNode())}parseOpen(a){return a.name===this.tag&&(this.attr?this.model=parseInt(a.attributes[this.attr],10):this.text=[],!0)}parseText(a){this.attr||this.text.push(a)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},{"../base-xform":32}],119:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{constructor(a){super(),this.tag=a.tag,this.attr=a.attr,this.attrs=a.attrs}render(a,s){s!==void 0&&(a.openNode(this.tag),this.attrs&&a.addAttributes(this.attrs),this.attr?a.addAttribute(this.attr,s):a.writeText(s),a.closeNode())}parseOpen(a){a.name===this.tag&&(this.attr?this.model=a.attributes[this.attr]:this.text=[])}parseText(a){this.attr||this.text.push(a)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},{"../base-xform":32}],120:[function(t,v,m){const c=t("./base-xform"),a=t("../../utils/xml-stream");v.exports=class extends c{constructor(s){super(),this._model=s}render(s){if(!this._xml){const n=new a;(function e(r,u){r.openNode(u.tag,u.$),u.c&&u.c.forEach(o=>{e(r,o)}),u.t&&r.writeText(u.t),r.closeNode()})(n,this._model),this._xml=n.xml}s.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(s){switch(s){case this._model.tag:return!1;default:return!0}}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(t,v,m){const c=t("./text-xform"),a=t("./rich-text-xform"),s=t("../base-xform");v.exports=class extends s{constructor(){super(),this.map={r:new a,t:new c}}get tag(){return"rPh"}render(n,e){if(n.openNode(this.tag,{sb:e.sb||0,eb:e.eb||0}),e&&e.hasOwnProperty("richText")&&e.richText){const{r}=this.map;e.richText.forEach(u=>{r.render(n,u)})}else e&&this.map.t.render(n,e.text);n.closeNode()}parseOpen(n){const{name:e}=n;return this.parser?(this.parser.parseOpen(n),!0):e===this.tag?(this.model={sb:parseInt(n.attributes.sb,10),eb:parseInt(n.attributes.eb,10)},!0):(this.parser=this.map[e],!!this.parser&&(this.parser.parseOpen(n),!0))}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser){if(!this.parser.parseClose(n)){switch(n){case"r":{let e=this.model.richText;e||(e=this.model.richText=[]),e.push(this.parser.model);break}case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}switch(n){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(t,v,m){const c=t("./text-xform"),a=t("../style/font-xform"),s=t("../base-xform");class n extends s{constructor(r){super(),this.model=r}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new c)}get fontXform(){return this._fontXform||(this._fontXform=new a(n.FONT_OPTIONS))}render(r,u){u=u||this.model,r.openNode("r"),u.font&&this.fontXform.render(r,u.font),this.textXform.render(r,u.text),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(r),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(r),!0;default:return!1}}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){switch(r){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(r),!0}}}n.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},v.exports=n},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(t,v,m){const c=t("./text-xform"),a=t("./rich-text-xform"),s=t("./phonetic-text-xform"),n=t("../base-xform");v.exports=class extends n{constructor(e){super(),this.model=e,this.map={r:new a,t:new c,rPh:new s}}get tag(){return"si"}render(e,r){e.openNode(this.tag),r&&r.hasOwnProperty("richText")&&r.richText?r.richText.length?r.richText.forEach(u=>{this.map.r.render(e,u)}):this.map.t.render(e,""):r!=null&&this.map.t.render(e,r),e.closeNode()}parseOpen(e){const{name:r}=e;return this.parser?(this.parser.parseOpen(e),!0):r===this.tag?(this.model={},!0):(this.parser=this.map[r],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":{let r=this.model.richText;r||(r=this.model.richText=[]),r.push(this.parser.model);break}case"t":this.model=this.parser.model}this.parser=void 0}return!0}switch(e){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(t,v,m){const c=t("../../../utils/xml-stream"),a=t("../base-xform"),s=t("./shared-string-xform");v.exports=class extends a{constructor(n){super(),this.model=n||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new s)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(n){return this.model.values[n]}add(n){return n.richText?this.addRichText(n):this.addText(n)}addText(n){let e=this.hash[n];return e===void 0&&(e=this.hash[n]=this.model.values.length,this.model.values.push(n)),this.model.count++,e}addRichText(n){const e=this.sharedStringXform.toXml(n);let r=this.rich[e];return r===void 0&&(r=this.rich[e]=this.model.values.length,this.model.values.push(n)),this.model.count++,r}render(n,e){e=e||this._values,n.openXml(c.StdDocAttributes),n.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:e.count,uniqueCount:e.values.length});const r=this.sharedStringXform;e.values.forEach(u=>{r.render(n,u)}),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(n),!0;default:throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(n))}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;switch(n){case"sst":return!1;default:throw new Error("Unexpected xml node in parseClose: "+n)}}}},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"t"}render(a,s){a.openNode("t"),/^\s|\n|\s$/.test(s)&&a.addAttribute("xml:space","preserve"),a.writeText(s),a.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(a,s)=>String.fromCharCode(parseInt(s,16)))}parseOpen(a){switch(a.name){case"t":return this._text=[],!0;default:return!1}}parseText(a){this._text.push(a)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(t,v,m){const c=t("../../../doc/enums"),a=t("../../../utils/utils"),s=t("../base-xform"),n={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((r,u)=>(r[u]=!0,r),{}),horizontal(r){return this.horizontalValues[r]?r:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((r,u)=>(r[u]=!0,r),{}),vertical(r){return r==="middle"?"center":this.verticalValues[r]?r:void 0},wrapText:r=>!!r||void 0,shrinkToFit:r=>!!r||void 0,textRotation(r){switch(r){case"vertical":return r;default:return(r=a.validInt(r))>=-90&&r<=90?r:void 0}},indent:r=>(r=a.validInt(r),Math.max(0,r)),readingOrder(r){switch(r){case"ltr":return c.ReadingOrder.LeftToRight;case"rtl":return c.ReadingOrder.RightToLeft;default:return}}},e={toXml(r){if(r=n.textRotation(r)){if(r==="vertical")return 255;const u=Math.round(r);if(u>=0&&u<=90)return u;if(u<0&&u>=-90)return 90-u}},toModel(r){const u=a.validInt(r);if(u!==void 0){if(u===255)return"vertical";if(u>=0&&u<=90)return u;if(u>90&&u<=180)return 90-u}}};v.exports=class extends s{get tag(){return"alignment"}render(r,u){r.addRollback(),r.openNode("alignment");let o=!1;function i(d,h){h&&(r.addAttribute(d,h),o=!0)}i("horizontal",n.horizontal(u.horizontal)),i("vertical",n.vertical(u.vertical)),i("wrapText",!!n.wrapText(u.wrapText)&&"1"),i("shrinkToFit",!!n.shrinkToFit(u.shrinkToFit)&&"1"),i("indent",n.indent(u.indent)),i("textRotation",e.toXml(u.textRotation)),i("readingOrder",n.readingOrder(u.readingOrder)),r.closeNode(),o?r.commit():r.rollback()}parseOpen(r){const u={};let o=!1;function i(d,h,f){d&&(u[h]=f,o=!0)}i(r.attributes.horizontal,"horizontal",r.attributes.horizontal),i(r.attributes.vertical,"vertical",r.attributes.vertical==="center"?"middle":r.attributes.vertical),i(r.attributes.wrapText,"wrapText",a.parseBoolean(r.attributes.wrapText)),i(r.attributes.shrinkToFit,"shrinkToFit",a.parseBoolean(r.attributes.shrinkToFit)),i(r.attributes.indent,"indent",parseInt(r.attributes.indent,10)),i(r.attributes.textRotation,"textRotation",e.toModel(r.attributes.textRotation)),i(r.attributes.readingOrder,"readingOrder",r.attributes.readingOrder==="2"?"rtl":"ltr"),this.model=o?u:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(t,v,m){const c=t("../base-xform"),a=t("../../../utils/utils"),s=t("./color-xform");class n extends c{constructor(r){super(),this.name=r,this.map={color:new s}}get tag(){return this.name}render(r,u,o){const i=u&&u.color||o||this.defaultColor;r.openNode(this.name),u&&u.style&&(r.addAttribute("style",u.style),i&&this.map.color.render(r,i)),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case this.name:{const{style:u}=r.attributes;return this.model=u?{style:u}:void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(r),!0;default:return!1}}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){return this.parser?(this.parser.parseClose(r)||(this.parser=void 0),!0):(r===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(r){return n.validStyleValues[r]}}n.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((e,r)=>(e[r]=!0,e),{}),v.exports=class extends c{constructor(){super(),this.map={top:new n("top"),left:new n("left"),bottom:new n("bottom"),right:new n("right"),diagonal:new n("diagonal")}}render(e,r){const{color:u}=r;function o(i,d){i&&!i.color&&r.color&&(i={...i,color:r.color}),d.render(e,i,u)}e.openNode("border"),r.diagonal&&r.diagonal.style&&(r.diagonal.up&&e.addAttribute("diagonalUp","1"),r.diagonal.down&&e.addAttribute("diagonalDown","1")),o(r.left,this.map.left),o(r.right,this.map.right),o(r.top,this.map.top),o(r.bottom,this.map.bottom),o(r.diagonal,this.map.diagonal),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"border":return this.reset(),this.diagonalUp=a.parseBoolean(e.attributes.diagonalUp),this.diagonalDown=a.parseBoolean(e.attributes.diagonalDown),!0;default:return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if(e==="border"){const r=this.model={},u=function(o,i,d){i&&(d&&Object.assign(i,d),r[o]=i)};u("left",this.map.left.model),u("right",this.map.right.model),u("top",this.map.top.model),u("bottom",this.map.bottom.model),u("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{constructor(a){super(),this.name=a||"color"}get tag(){return this.name}render(a,s){return!!s&&(a.openNode(this.name),s.argb?a.addAttribute("rgb",s.argb):s.theme!==void 0?(a.addAttribute("theme",s.theme),s.tint!==void 0&&a.addAttribute("tint",s.tint)):s.indexed!==void 0?a.addAttribute("indexed",s.indexed):a.addAttribute("auto","1"),a.closeNode(),!0)}parseOpen(a){return a.name===this.name&&(a.attributes.rgb?this.model={argb:a.attributes.rgb}:a.attributes.theme?(this.model={theme:parseInt(a.attributes.theme,10)},a.attributes.tint&&(this.model.tint=parseFloat(a.attributes.tint))):a.attributes.indexed?this.model={indexed:parseInt(a.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(t,v,m){const c=t("../base-xform"),a=t("./alignment-xform"),s=t("./border-xform"),n=t("./fill-xform"),e=t("./font-xform"),r=t("./numfmt-xform"),u=t("./protection-xform");v.exports=class extends c{constructor(){super(),this.map={alignment:new a,border:new s,fill:new n,font:new e,numFmt:new r,protection:new u}}get tag(){return"dxf"}render(o,i){if(o.openNode(this.tag),i.font&&this.map.font.render(o,i.font),i.numFmt&&i.numFmtId){const d={id:i.numFmtId,formatCode:i.numFmt};this.map.numFmt.render(o,d)}i.fill&&this.map.fill.render(o,i.fill),i.alignment&&this.map.alignment.render(o,i.alignment),i.border&&this.map.border.render(o,i.border),i.protection&&this.map.protection.render(o,i.protection),o.closeNode()}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:return this.reset(),!0;default:return this.parser=this.map[o.name],this.parser&&this.parser.parseOpen(o),!0}}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){return this.parser?(this.parser.parseClose(o)||(this.parser=void 0),!0):o!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}}},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(t,v,m){const c=t("../base-xform"),a=t("./color-xform");class s extends c{constructor(){super(),this.map={color:new a}}get tag(){return"stop"}render(o,i){o.openNode("stop"),o.addAttribute("position",i.position),this.map.color.render(o,i.color),o.closeNode()}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case"stop":return this.model={position:parseFloat(o.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(o),!0;default:return!1}}parseText(){}parseClose(o){return!!this.parser&&(this.parser.parseClose(o)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class n extends c{constructor(){super(),this.map={fgColor:new a("fgColor"),bgColor:new a("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(o,i){o.openNode("patternFill"),o.addAttribute("patternType",i.pattern),i.fgColor&&this.map.fgColor.render(o,i.fgColor),i.bgColor&&this.map.bgColor.render(o,i.bgColor),o.closeNode()}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case"patternFill":return this.model={type:"pattern",pattern:o.attributes.patternType},!0;default:return this.parser=this.map[o.name],!!this.parser&&(this.parser.parseOpen(o),!0)}}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){return!!this.parser&&(this.parser.parseClose(o)||(this.parser.model&&(this.model[o]=this.parser.model),this.parser=void 0),!0)}}class e extends c{constructor(){super(),this.map={stop:new s}}get name(){return"gradient"}get tag(){return"gradientFill"}render(o,i){switch(o.openNode("gradientFill"),i.gradient){case"angle":o.addAttribute("degree",i.degree);break;case"path":o.addAttribute("type","path"),i.center.left&&(o.addAttribute("left",i.center.left),i.center.right===void 0&&o.addAttribute("right",i.center.left)),i.center.right&&o.addAttribute("right",i.center.right),i.center.top&&(o.addAttribute("top",i.center.top),i.center.bottom===void 0&&o.addAttribute("bottom",i.center.top)),i.center.bottom&&o.addAttribute("bottom",i.center.bottom)}const d=this.map.stop;i.stops.forEach(h=>{d.render(o,h)}),o.closeNode()}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case"gradientFill":{const i=this.model={stops:[]};return o.attributes.degree?(i.gradient="angle",i.degree=parseInt(o.attributes.degree,10)):o.attributes.type==="path"&&(i.gradient="path",i.center={left:o.attributes.left?parseFloat(o.attributes.left):0,top:o.attributes.top?parseFloat(o.attributes.top):0},o.attributes.right!==o.attributes.left&&(i.center.right=o.attributes.right?parseFloat(o.attributes.right):0),o.attributes.bottom!==o.attributes.top&&(i.center.bottom=o.attributes.bottom?parseFloat(o.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen(o),!0;default:return!1}}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){return!!this.parser&&(this.parser.parseClose(o)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class r extends c{constructor(){super(),this.map={patternFill:new n,gradientFill:new e}}get tag(){return"fill"}render(o,i){switch(o.addRollback(),o.openNode("fill"),i.type){case"pattern":this.map.patternFill.render(o,i);break;case"gradient":this.map.gradientFill.render(o,i);break;default:return void o.rollback()}o.closeNode(),o.commit()}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case"fill":return this.model={},!0;default:return this.parser=this.map[o.name],!!this.parser&&(this.parser.parseOpen(o),!0)}}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){return!!this.parser&&(this.parser.parseClose(o)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(o){return r.validPatternValues[o]}}r.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((u,o)=>(u[o]=!0,u),{}),r.StopXform=s,r.PatternFillXform=n,r.GradientFillXform=e,v.exports=r},{"../base-xform":32,"./color-xform":128}],131:[function(t,v,m){const c=t("./color-xform"),a=t("../simple/boolean-xform"),s=t("../simple/integer-xform"),n=t("../simple/string-xform"),e=t("./underline-xform"),r=t("../../../utils/under-dash"),u=t("../base-xform");class o extends u{constructor(d){super(),this.options=d||o.OPTIONS,this.map={b:{prop:"bold",xform:new a({tag:"b",attr:"val"})},i:{prop:"italic",xform:new a({tag:"i",attr:"val"})},u:{prop:"underline",xform:new e},charset:{prop:"charset",xform:new s({tag:"charset",attr:"val"})},color:{prop:"color",xform:new c},condense:{prop:"condense",xform:new a({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new a({tag:"extend",attr:"val"})},family:{prop:"family",xform:new s({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new a({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new n({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new n({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new a({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new a({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new s({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new n({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(d,h){const{map:f}=this;d.openNode(this.options.tagName),r.each(this.map,(b,p)=>{f[p].xform.render(d,h[b.prop])}),d.closeNode()}parseOpen(d){if(this.parser)return this.parser.parseOpen(d),!0;if(this.map[d.name])return this.parser=this.map[d.name].xform,this.parser.parseOpen(d);switch(d.name){case this.options.tagName:return this.model={},!0;default:return!1}}parseText(d){this.parser&&this.parser.parseText(d)}parseClose(d){if(this.parser&&!this.parser.parseClose(d)){const h=this.map[d];return this.parser.model&&(this.model[h.prop]=this.parser.model),this.parser=void 0,!0}switch(d){case this.options.tagName:return!1;default:return!0}}}o.OPTIONS={tagName:"font",fontNameTag:"name"},v.exports=o},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(t,v,m){const c=t("../../../utils/under-dash"),a=t("../../defaultnumformats"),s=t("../base-xform"),n=function(){const r={};return c.each(a,(u,o)=>{u.f&&(r[u.f]=parseInt(o,10))}),r}();class e extends s{constructor(u,o){super(),this.id=u,this.formatCode=o}get tag(){return"numFmt"}render(u,o){u.leafNode("numFmt",{numFmtId:o.id,formatCode:o.formatCode})}parseOpen(u){switch(u.name){case"numFmt":return this.model={id:parseInt(u.attributes.numFmtId,10),formatCode:u.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0;default:return!1}}parseText(){}parseClose(){return!1}}e.getDefaultFmtId=function(r){return n[r]},e.getDefaultFmtCode=function(r){return a[r]&&a[r].f},v.exports=e},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(t,v,m){const c=t("../base-xform"),a={boolean:(s,n)=>s===void 0?n:s};v.exports=class extends c{get tag(){return"protection"}render(s,n){s.addRollback(),s.openNode("protection");let e=!1;function r(u,o){o!==void 0&&(s.addAttribute(u,o),e=!0)}r("locked",a.boolean(n.locked,!0)?void 0:"0"),r("hidden",a.boolean(n.hidden,!1)?"1":void 0),s.closeNode(),e?s.commit():s.rollback()}parseOpen(s){const n={locked:s.attributes.locked!=="0",hidden:s.attributes.hidden==="1"},e=!n.locked||n.hidden;this.model=e?n:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(t,v,m){const c=t("../base-xform"),a=t("./alignment-xform"),s=t("./protection-xform");v.exports=class extends c{constructor(n){super(),this.xfId=!(!n||!n.xfId),this.map={alignment:new a,protection:new s}}get tag(){return"xf"}render(n,e){n.openNode("xf",{numFmtId:e.numFmtId||0,fontId:e.fontId||0,fillId:e.fillId||0,borderId:e.borderId||0}),this.xfId&&n.addAttribute("xfId",e.xfId||0),e.numFmtId&&n.addAttribute("applyNumberFormat","1"),e.fontId&&n.addAttribute("applyFont","1"),e.fillId&&n.addAttribute("applyFill","1"),e.borderId&&n.addAttribute("applyBorder","1"),e.alignment&&n.addAttribute("applyAlignment","1"),e.protection&&n.addAttribute("applyProtection","1"),e.alignment&&this.map.alignment.render(n,e.alignment),e.protection&&this.map.protection.render(n,e.protection),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"xf":return this.model={numFmtId:parseInt(n.attributes.numFmtId,10),fontId:parseInt(n.attributes.fontId,10),fillId:parseInt(n.attributes.fillId,10),borderId:parseInt(n.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(n.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(n),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(n),!0;default:return!1}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){return this.parser?(this.parser.parseClose(n)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):n!=="xf"}}},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(t,v,m){const c=t("../../../doc/enums"),a=t("../../../utils/xml-stream"),s=t("../base-xform"),n=t("../static-xform"),e=t("../list-xform"),r=t("./font-xform"),u=t("./fill-xform"),o=t("./border-xform"),i=t("./numfmt-xform"),d=t("./style-xform"),h=t("./dxf-xform");class f extends s{constructor(p){super(),this.map={numFmts:new e({tag:"numFmts",count:!0,childXform:new i}),fonts:new e({tag:"fonts",count:!0,childXform:new r,$:{"x14ac:knownFonts":1}}),fills:new e({tag:"fills",count:!0,childXform:new u}),borders:new e({tag:"borders",count:!0,childXform:new o}),cellStyleXfs:new e({tag:"cellStyleXfs",count:!0,childXform:new d}),cellXfs:new e({tag:"cellXfs",count:!0,childXform:new d({xfId:!0})}),dxfs:new e({tag:"dxfs",always:!0,count:!0,childXform:new h}),numFmt:new i,font:new r,fill:new u,border:new o,style:new d({xfId:!0}),cellStyles:f.STATIC_XFORMS.cellStyles,tableStyles:f.STATIC_XFORMS.tableStyles,extLst:f.STATIC_XFORMS.extLst},p&&this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}render(p,S){S=S||this.model,p.openXml(a.StdDocAttributes),p.openNode("styleSheet",f.STYLESHEET_ATTRIBUTES),this.index?(S.numFmts&&S.numFmts.length&&(p.openNode("numFmts",{count:S.numFmts.length}),S.numFmts.forEach(_=>{p.writeXml(_)}),p.closeNode()),S.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),p.openNode("fonts",{count:S.fonts.length,"x14ac:knownFonts":1}),S.fonts.forEach(_=>{p.writeXml(_)}),p.closeNode(),p.openNode("fills",{count:S.fills.length}),S.fills.forEach(_=>{p.writeXml(_)}),p.closeNode(),p.openNode("borders",{count:S.borders.length}),S.borders.forEach(_=>{p.writeXml(_)}),p.closeNode(),this.map.cellStyleXfs.render(p,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),p.openNode("cellXfs",{count:S.styles.length}),S.styles.forEach(_=>{p.writeXml(_)}),p.closeNode()):(this.map.numFmts.render(p,S.numFmts),this.map.fonts.render(p,S.fonts),this.map.fills.render(p,S.fills),this.map.borders.render(p,S.borders),this.map.cellStyleXfs.render(p,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(p,S.styles)),f.STATIC_XFORMS.cellStyles.render(p),this.map.dxfs.render(p,S.dxfs),f.STATIC_XFORMS.tableStyles.render(p),f.STATIC_XFORMS.extLst.render(p),p.closeNode()}parseOpen(p){if(this.parser)return this.parser.parseOpen(p),!0;switch(p.name){case"styleSheet":return this.initIndex(),!0;default:return this.parser=this.map[p.name],this.parser&&this.parser.parseOpen(p),!0}}parseText(p){this.parser&&this.parser.parseText(p)}parseClose(p){if(this.parser)return this.parser.parseClose(p)||(this.parser=void 0),!0;switch(p){case"styleSheet":{this.model={};const S=(_,T)=>{T.model&&T.model.length&&(this.model[_]=T.model)};if(S("numFmts",this.map.numFmts),S("fonts",this.map.fonts),S("fills",this.map.fills),S("borders",this.map.borders),S("styles",this.map.cellXfs),S("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const _=this.index.numFmt;this.model.numFmts.forEach(T=>{_[T.id]=T.formatCode})}return!1}default:return!0}}addStyleModel(p,S){if(!p)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(p))return this.weakMap.get(p);const _={};if(S=S||c.ValueType.Number,p.numFmt)_.numFmtId=this._addNumFmtStr(p.numFmt);else switch(S){case c.ValueType.Number:_.numFmtId=this._addNumFmtStr("General");break;case c.ValueType.Date:_.numFmtId=this._addNumFmtStr("mm-dd-yy")}p.font&&(_.fontId=this._addFont(p.font)),p.border&&(_.borderId=this._addBorder(p.border)),p.fill&&(_.fillId=this._addFill(p.fill)),p.alignment&&(_.alignment=p.alignment),p.protection&&(_.protection=p.protection);const T=this._addStyle(_);return this.weakMap&&this.weakMap.set(p,T),T}getStyleModel(p){const S=this.model.styles[p];if(!S)return null;let _=this.index.model[p];if(_)return _;if(_=this.index.model[p]={},S.numFmtId){const D=this.index.numFmt[S.numFmtId]||i.getDefaultFmtCode(S.numFmtId);D&&(_.numFmt=D)}function T(D,z,P){if(P||P===0){const N=z[P];N&&(_[D]=N)}}return T("font",this.model.fonts,S.fontId),T("border",this.model.borders,S.borderId),T("fill",this.model.fills,S.fillId),S.alignment&&(_.alignment=S.alignment),S.protection&&(_.protection=S.protection),_}addDxfStyle(p){return p.numFmt&&(p.numFmtId=this._addNumFmtStr(p.numFmt)),this.model.dxfs.push(p),this.model.dxfs.length-1}getDxfStyle(p){return this.model.dxfs[p]}_addStyle(p){const S=this.map.style.toXml(p);let _=this.index.style[S];return _===void 0&&(_=this.index.style[S]=this.model.styles.length,this.model.styles.push(S)),_}_addNumFmtStr(p){let S=i.getDefaultFmtId(p);if(S!==void 0||(S=this.index.numFmt[p],S!==void 0))return S;S=this.index.numFmt[p]=164+this.model.numFmts.length;const _=this.map.numFmt.toXml({id:S,formatCode:p});return this.model.numFmts.push(_),S}_addFont(p){const S=this.map.font.toXml(p);let _=this.index.font[S];return _===void 0&&(_=this.index.font[S]=this.model.fonts.length,this.model.fonts.push(S)),_}_addBorder(p){const S=this.map.border.toXml(p);let _=this.index.border[S];return _===void 0&&(_=this.index.border[S]=this.model.borders.length,this.model.borders.push(S)),_}_addFill(p){const S=this.map.fill.toXml(p);let _=this.index.fill[S];return _===void 0&&(_=this.index.fill[S]=this.model.fills.length,this.model.fills.push(S)),_}}f.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},f.STATIC_XFORMS={cellStyles:new n({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new n({tag:"dxfs",$:{count:0}}),tableStyles:new n({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new n({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})},f.Mock=class extends f{constructor(){super(),this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream(b){return b.autodrain(),Promise.resolve()}addStyleModel(b,p){switch(p){case c.ValueType.Date:return this.dateStyleId;default:return 0}}get dateStyleId(){if(!this._dateStyleId){const b={numFmtId:i.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(b)}return this._dateStyleId}getStyleModel(){return{}}},v.exports=f},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(t,v,m){const c=t("../base-xform");class a extends c{constructor(n){super(),this.model=n}get tag(){return"u"}render(n,e){if((e=e||this.model)===!0)n.leafNode("u");else{const r=a.Attributes[e];r&&n.leafNode("u",r)}}parseOpen(n){n.name==="u"&&(this.model=n.attributes.val||!0)}parseText(){}parseClose(){return!1}}a.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},v.exports=a},{"../base-xform":32}],137:[function(t,v,m){const c=t("../base-xform"),a=t("./filter-column-xform");v.exports=class extends c{constructor(){super(),this.map={filterColumn:new a}}get tag(){return"autoFilter"}prepare(s){s.columns.forEach((n,e)=>{this.map.filterColumn.prepare(n,{index:e})})}render(s,n){return s.openNode(this.tag,{ref:n.autoFilterRef}),n.columns.forEach(e=>{this.map.filterColumn.render(s,e)}),s.closeNode(),!0}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case this.tag:return this.model={autoFilterRef:s.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[s.name],this.parser)return this.parseOpen(s),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(s))}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){if(this.parser)return this.parser.parseClose(s)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;switch(s){case this.tag:return!1;default:throw new Error("Unexpected xml node in parseClose: "+s)}}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"customFilter"}render(a,s){a.leafNode(this.tag,{val:s.val,operator:s.operator})}parseOpen(a){return a.name===this.tag&&(this.model={val:a.attributes.val,operator:a.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(t,v,m){const c=t("../base-xform"),a=t("../list-xform"),s=t("./custom-filter-xform"),n=t("./filter-xform");v.exports=class extends c{constructor(){super(),this.map={customFilters:new a({tag:"customFilters",count:!1,empty:!0,childXform:new s}),filters:new a({tag:"filters",count:!1,empty:!0,childXform:new n})}}get tag(){return"filterColumn"}prepare(e,r){e.colId=r.index.toString()}render(e,r){return r.customFilters?(e.openNode(this.tag,{colId:r.colId,hiddenButton:r.filterButton?"0":"1"}),this.map.customFilters.render(e,r.customFilters),e.closeNode(),!0):(e.leafNode(this.tag,{colId:r.colId,hiddenButton:r.filterButton?"0":"1"}),!0)}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;const{attributes:r}=e;switch(e.name){case this.tag:return this.model={filterButton:r.hiddenButton==="0"},!0;default:if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}}parseText(){}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model.customFilters=this.map.customFilters.model,!1;default:return!0}}}},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"filter"}render(a,s){a.leafNode(this.tag,{val:s.val})}parseOpen(a){return a.name===this.tag&&(this.model={val:a.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"tableColumn"}prepare(a,s){a.id=s.index+1}render(a,s){return a.leafNode(this.tag,{id:s.id.toString(),name:s.name,totalsRowLabel:s.totalsRowLabel,totalsRowFunction:s.totalsRowFunction,dxfId:s.dxfId}),!0}parseOpen(a){if(a.name===this.tag){const{attributes:s}=a;return this.model={name:s.name,totalsRowLabel:s.totalsRowLabel,totalsRowFunction:s.totalsRowFunction,dxfId:s.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"tableStyleInfo"}render(a,s){return a.leafNode(this.tag,{name:s.theme?s.theme:void 0,showFirstColumn:s.showFirstColumn?"1":"0",showLastColumn:s.showLastColumn?"1":"0",showRowStripes:s.showRowStripes?"1":"0",showColumnStripes:s.showColumnStripes?"1":"0"}),!0}parseOpen(a){if(a.name===this.tag){const{attributes:s}=a;return this.model={theme:s.name?s.name:null,showFirstColumn:s.showFirstColumn==="1",showLastColumn:s.showLastColumn==="1",showRowStripes:s.showRowStripes==="1",showColumnStripes:s.showColumnStripes==="1"},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(t,v,m){const c=t("../../../utils/xml-stream"),a=t("../base-xform"),s=t("../list-xform"),n=t("./auto-filter-xform"),e=t("./table-column-xform"),r=t("./table-style-info-xform");class u extends a{constructor(){super(),this.map={autoFilter:new n,tableColumns:new s({tag:"tableColumns",count:!0,empty:!0,childXform:new e}),tableStyleInfo:new r}}prepare(i,d){this.map.autoFilter.prepare(i),this.map.tableColumns.prepare(i.columns,d)}get tag(){return"table"}render(i,d){i.openXml(c.StdDocAttributes),i.openNode(this.tag,{...u.TABLE_ATTRIBUTES,id:d.id,name:d.name,displayName:d.displayName||d.name,ref:d.tableRef,totalsRowCount:d.totalsRow?"1":void 0,totalsRowShown:d.totalsRow?void 0:"1",headerRowCount:d.headerRow?"1":"0"}),this.map.autoFilter.render(i,d),this.map.tableColumns.render(i,d.columns),this.map.tableStyleInfo.render(i,d.style),i.closeNode()}parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;const{name:d,attributes:h}=i;switch(d){case this.tag:this.reset(),this.model={name:h.name,displayName:h.displayName||h.name,tableRef:h.ref,totalsRow:h.totalsRowCount==="1",headerRow:h.headerRowCount==="1"};break;default:this.parser=this.map[i.name],this.parser&&this.parser.parseOpen(i)}return!0}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){if(this.parser)return this.parser.parseClose(i)||(this.parser=void 0),!0;switch(i){case this.tag:return this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach((d,h)=>{this.model.columns[h].filterButton=d.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1;default:return!0}}reconcile(i,d){i.columns.forEach(h=>{h.dxfId!==void 0&&(h.style=d.styles.getDxfStyle(h.dxfId))})}}u.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"},v.exports=u},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(t,v,m){(function(c,a){(function(){const s=t("fs"),n=t("jszip"),{PassThrough:e}=t("readable-stream"),r=t("../utils/zip-stream"),u=t("../utils/stream-buf"),o=t("../utils/utils"),i=t("../utils/xml-stream"),{bufferToString:d}=t("../utils/browser-buffer-decode"),h=t("./xform/style/styles-xform"),f=t("./xform/core/core-xform"),b=t("./xform/strings/shared-strings-xform"),p=t("./xform/core/relationships-xform"),S=t("./xform/core/content-types-xform"),_=t("./xform/core/app-xform"),T=t("./xform/book/workbook-xform"),D=t("./xform/sheet/worksheet-xform"),z=t("./xform/drawing/drawing-xform"),P=t("./xform/table/table-xform"),N=t("./xform/comment/comments-xform"),V=t("./xform/comment/vml-notes-xform"),W=t("./xml/theme1");class L{constructor(M){this.workbook=M}async readFile(M,C){if(!await o.fs.exists(M))throw new Error("File not found: "+M);const y=s.createReadStream(M);try{const x=await this.read(y,C);return y.close(),x}catch(x){throw y.close(),x}}parseRels(M){return new p().parseStream(M)}parseWorkbook(M){return new T().parseStream(M)}parseSharedStrings(M){return new b().parseStream(M)}reconcile(M,C){const y=new T,x=new D(C),w=new z,k=new P;y.reconcile(M);const E={media:M.media,mediaIndex:M.mediaIndex};Object.keys(M.drawings).forEach(U=>{const q=M.drawings[U],K=M.drawingRels[U];K&&(E.rels=K.reduce((j,Y)=>(j[Y.Id]=Y,j),{}),(q.anchors||[]).forEach(j=>{const Y=j.picture&&j.picture.hyperlinks;Y&&E.rels[Y.rId]&&(Y.hyperlink=E.rels[Y.rId].Target,delete Y.rId)}),w.reconcile(q,E))});const O={styles:M.styles};Object.values(M.tables).forEach(U=>{k.reconcile(U,O)});const R={styles:M.styles,sharedStrings:M.sharedStrings,media:M.media,mediaIndex:M.mediaIndex,date1904:M.properties&&M.properties.date1904,drawings:M.drawings,comments:M.comments,tables:M.tables,vmlDrawings:M.vmlDrawings};M.worksheets.forEach(U=>{U.relationships=M.worksheetRels[U.sheetNo],x.reconcile(U,R)}),delete M.worksheetHash,delete M.worksheetRels,delete M.globalRels,delete M.sharedStrings,delete M.workbookRels,delete M.sheetDefs,delete M.styles,delete M.mediaIndex,delete M.drawings,delete M.drawingRels,delete M.vmlDrawings}async _processWorksheetEntry(M,C,y,x,w){const k=new D(x),E=await k.parseStream(M);E.sheetNo=y,C.worksheetHash[w]=E,C.worksheets.push(E)}async _processCommentEntry(M,C,y){const x=new N,w=await x.parseStream(M);C.comments[`../${y}.xml`]=w}async _processTableEntry(M,C,y){const x=new P,w=await x.parseStream(M);C.tables[`../tables/${y}.xml`]=w}async _processWorksheetRelsEntry(M,C,y){const x=new p,w=await x.parseStream(M);C.worksheetRels[y]=w}async _processMediaEntry(M,C,y){const x=y.lastIndexOf(".");if(x>=1){const w=y.substr(x+1),k=y.substr(0,x);await new Promise((E,O)=>{const R=new u;R.on("finish",()=>{C.mediaIndex[y]=C.media.length,C.mediaIndex[k]=C.media.length;const U={type:"image",name:k,extension:w,buffer:R.toBuffer()};C.media.push(U),E()}),M.on("error",U=>{O(U)}),M.pipe(R)})}}async _processDrawingEntry(M,C,y){const x=new z,w=await x.parseStream(M);C.drawings[y]=w}async _processDrawingRelsEntry(M,C,y){const x=new p,w=await x.parseStream(M);C.drawingRels[y]=w}async _processVmlDrawingEntry(M,C,y){const x=new V,w=await x.parseStream(M);C.vmlDrawings[`../drawings/${y}.vml`]=w}async _processThemeEntry(M,C,y){await new Promise((x,w)=>{const k=new u;M.on("error",w),k.on("error",w),k.on("finish",()=>{C.themes[y]=k.read().toString(),x()}),M.pipe(k)})}createInputStream(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}async read(M,C){!M[Symbol.asyncIterator]&&M.pipe&&(M=M.pipe(new e));const y=[];for await(const x of M)y.push(x);return this.load(a.concat(y),C)}async load(M,C){let y;y=C&&C.base64?a.from(M.toString(),"base64"):M;const x={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},w=await n.loadAsync(y);for(const k of Object.values(w.files))if(!k.dir){let E,O=k.name;if(O[0]==="/"&&(O=O.substr(1)),O.match(/xl\/media\//)||O.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))E=new e,E.write(await k.async("nodebuffer"));else{let R;E=new e({writableObjectMode:!0,readableObjectMode:!0}),R=c.browser?d(await k.async("nodebuffer")):await k.async("string");const U=16384;for(let q=0;q<R.length;q+=U)E.write(R.substring(q,q+U))}switch(E.end(),O){case"_rels/.rels":x.globalRels=await this.parseRels(E);break;case"xl/workbook.xml":{const R=await this.parseWorkbook(E);x.sheets=R.sheets,x.definedNames=R.definedNames,x.views=R.views,x.properties=R.properties,x.calcProperties=R.calcProperties;break}case"xl/_rels/workbook.xml.rels":x.workbookRels=await this.parseRels(E);break;case"xl/sharedStrings.xml":x.sharedStrings=new b,await x.sharedStrings.parseStream(E);break;case"xl/styles.xml":x.styles=new h,await x.styles.parseStream(E);break;case"docProps/app.xml":{const R=new _,U=await R.parseStream(E);x.company=U.company,x.manager=U.manager;break}case"docProps/core.xml":{const R=new f,U=await R.parseStream(E);Object.assign(x,U);break}default:{let R=O.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(R){await this._processWorksheetEntry(E,x,R[1],C,O);break}if(R=O.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),R){await this._processWorksheetRelsEntry(E,x,R[1]);break}if(R=O.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/),R){await this._processThemeEntry(E,x,R[1]);break}if(R=O.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/),R){await this._processMediaEntry(E,x,R[1]);break}if(R=O.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/),R){await this._processDrawingEntry(E,x,R[1]);break}if(R=O.match(/xl\/(comments\d+)[.]xml/),R){await this._processCommentEntry(E,x,R[1]);break}if(R=O.match(/xl\/tables\/(table\d+)[.]xml/),R){await this._processTableEntry(E,x,R[1]);break}if(R=O.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/),R){await this._processDrawingRelsEntry(E,x,R[1]);break}if(R=O.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/),R){await this._processVmlDrawingEntry(E,x,R[1]);break}}}}return this.reconcile(x,C),this.workbook.model=x,this.workbook}async addMedia(M,C){await Promise.all(C.media.map(async y=>{if(y.type==="image"){const x=`xl/media/${y.name}.${y.extension}`;if(y.filename){const w=await function(k,E){return new Promise((O,R)=>{s.readFile(k,E,(U,q)=>{U?R(U):O(q)})})}(y.filename);return M.append(w,{name:x})}if(y.buffer)return M.append(y.buffer,{name:x});if(y.base64){const w=y.base64,k=w.substring(w.indexOf(",")+1);return M.append(k,{name:x,base64:!0})}}throw new Error("Unsupported media")}))}addDrawings(M,C){const y=new z,x=new p;C.worksheets.forEach(w=>{const{drawing:k}=w;if(k){y.prepare(k,{});let E=y.toXml(k);M.append(E,{name:`xl/drawings/${k.name}.xml`}),E=x.toXml(k.rels),M.append(E,{name:`xl/drawings/_rels/${k.name}.xml.rels`})}})}addTables(M,C){const y=new P;C.worksheets.forEach(x=>{const{tables:w}=x;w.forEach(k=>{y.prepare(k,{});const E=y.toXml(k);M.append(E,{name:"xl/tables/"+k.target})})})}async addContentTypes(M,C){const y=new S().toXml(C);M.append(y,{name:"[Content_Types].xml"})}async addApp(M,C){const y=new _().toXml(C);M.append(y,{name:"docProps/app.xml"})}async addCore(M,C){const y=new f;M.append(y.toXml(C),{name:"docProps/core.xml"})}async addThemes(M,C){const y=C.themes||{theme1:W};Object.keys(y).forEach(x=>{const w=y[x],k=`xl/theme/${x}.xml`;M.append(w,{name:k})})}async addOfficeRels(M){const C=new p().toXml([{Id:"rId1",Type:L.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:L.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:L.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);M.append(C,{name:"_rels/.rels"})}async addWorkbookRels(M,C){let y=1;const x=[{Id:"rId"+y++,Type:L.RelType.Styles,Target:"styles.xml"},{Id:"rId"+y++,Type:L.RelType.Theme,Target:"theme/theme1.xml"}];C.sharedStrings.count&&x.push({Id:"rId"+y++,Type:L.RelType.SharedStrings,Target:"sharedStrings.xml"}),C.worksheets.forEach(k=>{k.rId="rId"+y++,x.push({Id:k.rId,Type:L.RelType.Worksheet,Target:`worksheets/sheet${k.id}.xml`})});const w=new p().toXml(x);M.append(w,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(M,C){C.sharedStrings&&C.sharedStrings.count&&M.append(C.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(M,C){const{xml:y}=C.styles;y&&M.append(y,{name:"xl/styles.xml"})}async addWorkbook(M,C){const y=new T;M.append(y.toXml(C),{name:"xl/workbook.xml"})}async addWorksheets(M,C){const y=new D,x=new p,w=new N,k=new V;C.worksheets.forEach(E=>{let O=new i;y.render(O,E),M.append(O.xml,{name:`xl/worksheets/sheet${E.id}.xml`}),E.rels&&E.rels.length&&(O=new i,x.render(O,E.rels),M.append(O.xml,{name:`xl/worksheets/_rels/sheet${E.id}.xml.rels`})),E.comments.length>0&&(O=new i,w.render(O,E),M.append(O.xml,{name:`xl/comments${E.id}.xml`}),O=new i,k.render(O,E),M.append(O.xml,{name:`xl/drawings/vmlDrawing${E.id}.vml`}))})}_finalize(M){return new Promise((C,y)=>{M.on("finish",()=>{C(this)}),M.on("error",y),M.finalize()})}prepareModel(M,C){M.creator=M.creator||"ExcelJS",M.lastModifiedBy=M.lastModifiedBy||"ExcelJS",M.created=M.created||new Date,M.modified=M.modified||new Date,M.useSharedStrings=C.useSharedStrings===void 0||C.useSharedStrings,M.useStyles=C.useStyles===void 0||C.useStyles,M.sharedStrings=new b,M.styles=M.useStyles?new h(!0):new h.Mock;const y=new T,x=new D;y.prepare(M);const w={sharedStrings:M.sharedStrings,styles:M.styles,date1904:M.properties.date1904,drawingsCount:0,media:M.media};w.drawings=M.drawings=[],w.commentRefs=M.commentRefs=[];let k=0;M.tables=[],M.worksheets.forEach(E=>{E.tables.forEach(O=>{k++,O.target=`table${k}.xml`,O.id=k,M.tables.push(O)}),x.prepare(E,w)})}async write(M,C){C=C||{};const{model:y}=this.workbook,x=new r.ZipWriter(C.zip);return x.pipe(M),this.prepareModel(y,C),await this.addContentTypes(x,y),await this.addOfficeRels(x,y),await this.addWorkbookRels(x,y),await this.addWorksheets(x,y),await this.addSharedStrings(x,y),await this.addDrawings(x,y),await this.addTables(x,y),await Promise.all([this.addThemes(x,y),this.addStyles(x,y)]),await this.addMedia(x,y),await Promise.all([this.addApp(x,y),this.addCore(x,y)]),await this.addWorkbook(x,y),this._finalize(x)}writeFile(M,C){const y=s.createWriteStream(M);return new Promise((x,w)=>{y.on("finish",()=>{x()}),y.on("error",k=>{w(k)}),this.write(y,C).then(()=>{y.end()}).catch(k=>{w(k)})})}async writeBuffer(M){const C=new u;return await this.write(C,M),C.read()}}L.RelType=t("./rel-type"),v.exports=L}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/worksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(t,v,m){v.exports=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
3
3
  <a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="15000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="1"/> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="100000"/> <a:shade val="100000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:shade val="100000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="0"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"> <a:shade val="95000"/> <a:satMod val="105000"/> </a:schemeClr> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="38000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> <a:scene3d> <a:camera prst="orthographicFront"> <a:rot lat="0" lon="0" rev="0"/> </a:camera> <a:lightRig rig="threePt" dir="t"> <a:rot lat="0" lon="0" rev="1200000"/> </a:lightRig> </a:scene3d> <a:sp3d> <a:bevelT w="63500" h="25400"/> </a:sp3d> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="40000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="40000"> <a:schemeClr val="phClr"> <a:tint val="45000"/> <a:shade val="99000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="20000"/> <a:satMod val="255000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="-80000" r="50000" b="180000"/> </a:path> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="80000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="30000"/> <a:satMod val="200000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="50000" r="50000" b="50000"/> </a:path> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults> <a:spDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="1"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="3"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="2"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="lt1"/> </a:fontRef> </a:style> </a:spDef> <a:lnDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="2"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="0"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="1"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="tx1"/> </a:fontRef> </a:style> </a:lnDef> </a:objectDefaults> <a:extraClrSchemeLst/> </a:theme>`},{}],146:[function(t,v,m){(function(c){(function(){Object.defineProperty(m,"__esModule",{value:!0}),m.CsvFormatterStream=void 0;const a=t("stream"),s=t("./formatter");class n extends a.Transform{constructor(r){super({writableObjectMode:r.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=r,this.rowFormatter=new s.RowFormatter(r),this.hasWrittenBOM=!r.writeBOM}transform(r){return this.rowFormatter.rowTransform=r,this}_transform(r,u,o){let i=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(r,(d,h)=>d?(i=!0,o(d)):(h&&h.forEach(f=>{this.push(c.from(f,"utf8"))}),i=!0,o()))}catch(d){if(i)throw d;o(d)}}_flush(r){this.rowFormatter.finish((u,o)=>u?r(u):(o&&o.forEach(i=>{this.push(c.from(i,"utf8"))}),r()))}}m.CsvFormatterStream=n}).call(this)}).call(this,t("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(t,v,m){Object.defineProperty(m,"__esModule",{value:!0}),m.FormatterOptions=void 0,m.FormatterOptions=class{constructor(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var a;this.objectMode=!0,this.delimiter=",",this.rowDelimiter=`
4
4
  `,this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\uFEFF",this.alwaysWriteHeaders=!1,Object.assign(this,c||{}),c?.quoteHeaders===void 0&&(this.quoteHeaders=this.quoteColumns),c?.quote===!0?this.quote='"':c?.quote===!1&&(this.quote=""),typeof c?.escape!="string"&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((a=c.writeHeaders)===null||a===void 0||a),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(t,v,m){var c=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(m,"__esModule",{value:!0}),m.FieldFormatter=void 0;const a=c(t("lodash.isboolean")),s=c(t("lodash.isnil")),n=c(t("lodash.escaperegexp"));m.FieldFormatter=class{constructor(e){this._headers=null,this.formatterOptions=e,e.headers!==null&&(this.headers=e.headers),this.REPLACE_REGEXP=new RegExp(e.quote,"g");const r=`[${e.delimiter}${n.default(e.rowDelimiter)}|\r|