@selfeesas/shared-components 0.4.30 → 0.4.31
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 _=require("vue"),ei={xs:18,sm:24,md:32,lg:38,xl:46},Cr={size:String};function Ar(l,j=ei){return _.computed(()=>l.size!==void 0?{fontSize:l.size in j?`${j[l.size]}px`:l.size}:null)}function Lt(l,j,t,v){return Object.defineProperty(l,j,{get:t,set:v,enumerable:!0}),l}function ca(l,j){for(const t in j)Lt(l,t,j[t]);return l}function tt(l){return _.markRaw(_.defineComponent(l))}function bi(l){return _.markRaw(l)}const fa=(l,j)=>{const t=_.reactive(l);for(const v in l)Lt(j,v,()=>t[v],m=>{t[v]=m});return j};function mt(l,j){return l!==void 0&&l()||j}function vi(l,j){if(l!==void 0){const t=l();if(t!=null)return t.slice()}return j}function Dt(l,j){return l!==void 0?j.concat(l()):j}function to(l,j){return l===void 0?j:j!==void 0?j.concat(l()):l()}function da(l,j,t,v,m,f){j.key=v+m;const a=_.h(l,j,t);return m===!0?_.withDirectives(a,f()):a}const es="0 0 24 24",jn=l=>l,Fn=l=>`ionicons ${l}`,ro={"mdi-":l=>`mdi ${l}`,"icon-":jn,"bt-":l=>`bt ${l}`,"eva-":l=>`eva ${l}`,"ion-md":Fn,"ion-ios":Fn,"ion-logo":Fn,"iconfont ":jn,"ti-":l=>`themify-icon ${l}`,"bi-":l=>`bootstrap-icons ${l}`,"i-":jn},no={o_:"-outlined",r_:"-round",s_:"-sharp"},io={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},ha=new RegExp("^("+Object.keys(ro).join("|")+")"),pa=new RegExp("^("+Object.keys(no).join("|")+")"),ts=new RegExp("^("+Object.keys(io).join("|")+")"),ma=/^[Mm]\s?[-+]?\.?\d/,ga=/^img:/,ba=/^svguse:/,va=/^ion-/,ya=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,St=tt({name:"QIcon",props:{...Cr,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(l,{slots:j}){const{proxy:{$q:t}}=_.getCurrentInstance(),v=Ar(l),m=_.computed(()=>"q-icon"+(l.left===!0?" on-left":"")+(l.right===!0?" on-right":"")+(l.color!==void 0?` text-${l.color}`:"")),f=_.computed(()=>{let a,o=l.name;if(o==="none"||!o)return{none:!0};if(t.iconMapFn!==null){const r=t.iconMapFn(o);if(r!==void 0)if(r.icon!==void 0){if(o=r.icon,o==="none"||!o)return{none:!0}}else return{cls:r.cls,content:r.content!==void 0?r.content:" "}}if(ma.test(o)===!0){const[r,u=es]=o.split("|");return{svg:!0,viewBox:u,nodes:r.split("&&").map(s=>{const[i,d,h]=s.split("@@");return _.h("path",{style:d,d:i,transform:h})})}}if(ga.test(o)===!0)return{img:!0,src:o.substring(4)};if(ba.test(o)===!0){const[r,u=es]=o.split("|");return{svguse:!0,src:r.substring(7),viewBox:u}}let n=" ";const e=o.match(ha);if(e!==null)a=ro[e[1]](o);else if(ya.test(o)===!0)a=o;else if(va.test(o)===!0)a=`ionicons ion-${t.platform.is.ios===!0?"ios":"md"}${o.substring(3)}`;else if(ts.test(o)===!0){a="notranslate material-symbols";const r=o.match(ts);r!==null&&(o=o.substring(6),a+=io[r[1]]),n=o}else{a="notranslate material-icons";const r=o.match(pa);r!==null&&(o=o.substring(2),a+=no[r[1]]),n=o}return{cls:a,content:n}});return()=>{const a={class:m.value,style:v.value,"aria-hidden":"true"};return f.value.none===!0?_.h(l.tag,a,mt(j.default)):f.value.img===!0?_.h(l.tag,a,Dt(j.default,[_.h("img",{src:f.value.src})])):f.value.svg===!0?_.h(l.tag,a,Dt(j.default,[_.h("svg",{viewBox:f.value.viewBox||"0 0 24 24"},f.value.nodes)])):f.value.svguse===!0?_.h(l.tag,a,Dt(j.default,[_.h("svg",{viewBox:f.value.viewBox},[_.h("use",{"xlink:href":f.value.src})])])):(f.value.cls!==void 0&&(a.class+=" "+f.value.cls),_.h(l.tag,a,Dt(j.default,[f.value.content])))}}});function fn(l){if(Object(l.$parent)===l.$parent)return l.$parent;let{parent:j}=l.$;for(;Object(j)===j;){if(Object(j.proxy)===j.proxy)return j.proxy;j=j.parent}}function so(l,j){typeof j.type=="symbol"?Array.isArray(j.children)===!0&&j.children.forEach(t=>{so(l,t)}):l.add(j)}function wa(l){const j=new Set;return l.forEach(t=>{so(j,t)}),Array.from(j)}function yi(l){return l.appContext.config.globalProperties.$router!==void 0}function wi(l){return l.isUnmounted===!0||l.isDeactivated===!0}function rs(l){return l?l.aliasOf?l.aliasOf.path:l.path:""}function ns(l,j){return(l.aliasOf||l)===(j.aliasOf||j)}function xa(l,j){for(const t in j){const v=j[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((f,a)=>f!==m[a]))return!1}return!0}function is(l,j){return Array.isArray(j)===!0?l.length===j.length&&l.every((t,v)=>t===j[v]):l.length===1&&l[0]===j}function Sa(l,j){return Array.isArray(l)===!0?is(l,j):Array.isArray(j)===!0?is(j,l):l===j}function ka(l,j){if(Object.keys(l).length!==Object.keys(j).length)return!1;for(const t in l)if(Sa(l[t],j[t])===!1)return!1;return!0}const oo={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},ao={...oo,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function xi({fallbackTag:l,useDisableForRouterLinkProps:j=!0}={}){const t=_.getCurrentInstance(),{props:v,proxy:m,emit:f}=t,a=yi(t),o=_.computed(()=>v.disable!==!0&&v.href!==void 0),n=j===!0?_.computed(()=>a===!0&&v.disable!==!0&&o.value!==!0&&v.to!==void 0&&v.to!==null&&v.to!==""):_.computed(()=>a===!0&&o.value!==!0&&v.to!==void 0&&v.to!==null&&v.to!==""),e=_.computed(()=>n.value===!0?p(v.to):null),r=_.computed(()=>e.value!==null),u=_.computed(()=>o.value===!0||r.value===!0),s=_.computed(()=>v.type==="a"||u.value===!0?"a":v.tag||l||"div"),i=_.computed(()=>o.value===!0?{href:v.href,target:v.target}:r.value===!0?{href:e.value.href,target:v.target}:{}),d=_.computed(()=>{if(r.value===!1)return-1;const{matched:T}=e.value,{length:F}=T,z=T[F-1];if(z===void 0)return-1;const D=m.$route.matched;if(D.length===0)return-1;const N=D.findIndex(ns.bind(null,z));if(N!==-1)return N;const L=rs(T[F-2]);return F>1&&rs(z)===L&&D[D.length-1].path!==L?D.findIndex(ns.bind(null,T[F-2])):N}),h=_.computed(()=>r.value===!0&&d.value!==-1&&xa(m.$route.params,e.value.params)),c=_.computed(()=>h.value===!0&&d.value===m.$route.matched.length-1&&ka(m.$route.params,e.value.params)),g=_.computed(()=>r.value===!0?c.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:F,to:z=v.to,replace:D=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[D===!0?"replace":"push"](z);return F===!0?N:N.then(()=>{}).catch(()=>{})}function C(T){if(r.value===!0){const F=z=>S(T,z);f("click",T,F),T.defaultPrevented!==!0&&F()}else f("click",T)}return{hasRouterLink:r,hasHrefLink:o,hasLink:u,linkTag:s,resolvedLink:e,linkIsActive:h,linkIsExactActive:c,linkClass:g,linkAttrs:i,getLink:p,navigateToRouterLink:S,navigateOnClick:C}}const _a=tt({name:"QBreadcrumbsEl",props:{...ao,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(l,{slots:j}){const{linkTag:t,linkAttrs:v,linkClass:m,navigateOnClick:f}=xi(),a=_.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:f})),o=_.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(_.h(St,{class:o.value,name:l.icon})),l.label!==void 0&&n.push(l.label),_.h(t.value,{...a.value},Dt(j.default,n))}}}),lo={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Ca=Object.keys(lo),Si={align:{type:String,validator:l=>Ca.includes(l)}};function ki(l){return _.computed(()=>{const j=l.align===void 0?l.vertical===!0?"stretch":"left":l.align;return`${l.vertical===!0?"items":"justify"}-${lo[j]}`})}const Aa=["",!0],Ea=tt({name:"QBreadcrumbs",props:{...Si,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:j}){const t=ki(l),v=_.computed(()=>`flex items-center ${t.value}${l.gutter==="none"?"":` q-gutter-${l.gutter}`}`),m=_.computed(()=>l.separatorColor?` text-${l.separatorColor}`:""),f=_.computed(()=>` text-${l.activeColor}`);return()=>{if(j.default===void 0)return;const a=wa(mt(j.default));if(a.length===0)return;let o=1;const n=[],e=a.filter(u=>u.type?.name==="QBreadcrumbsEl").length,r=j.separator!==void 0?j.separator:()=>l.separator;return a.forEach(u=>{if(u.type?.name==="QBreadcrumbsEl"){const s=o<e,i=u.props!==null&&Aa.includes(u.props.disable),d=(s===!0?"":" q-breadcrumbs--last")+(i!==!0&&s===!0?f.value:"");o++,n.push(_.h("div",{class:`flex items-center${d}`},[u])),s===!0&&n.push(_.h("div",{class:"q-breadcrumbs__separator"+m.value},r()))}else n.push(u)}),_.h("div",{class:"q-breadcrumbs"},[_.h("div",{class:v.value},n)])}}}),Ma=_.defineComponent({inheritAttrs:!1,__name:"Breadcrumbs",props:{activeColor:{},separatorIcon:{},separatorSize:{},separatorColor:{},store:{},navStore:{},route:{},router:{},breadcrumbConfig:{},separator:{},gutter:{},align:{}},setup(l){const j=l,t=_.useAttrs(),v=_.computed(()=>{const{activeColor:s,separatorIcon:i,separatorSize:d,separatorColor:h,...c}=t;return c}),m=s=>({"data-cy":s.dataCy,class:"cursor-pointer text-h5",color:s.color}),f=_.computed(()=>j.activeColor||"primary"),a=_.computed(()=>j.separatorIcon||"chevron_right"),o=_.computed(()=>j.separatorSize||"2em"),n=_.computed(()=>j.separatorColor||"primary"),e=_.computed(()=>({store:j.store,route:j.route,navStore:j.navStore||{}})),r=_.computed(()=>{const s=[];return j.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",c={name:i.routeName,...i.getRouteParams&&{params:i.getRouteParams(e.value)}},g=i.clearActions?i.clearActions.map(p=>()=>p(e.value)):[];s.push({label:d,dataCy:i.dataCy,color:h,route:c,clearActions:g})}),s}),u=s=>{s.clearActions&&s.clearActions.forEach(i=>i()),j.router.push(s.route)};return(s,i)=>(_.openBlock(),_.createBlock(Ea,_.mergeProps({"active-color":f.value,class:"text-brown"},v.value),{separator:_.withCtx(()=>[_.createVNode(St,{size:o.value,name:a.value,color:n.value},null,8,["size","name","color"])]),default:_.withCtx(()=>[(_.openBlock(!0),_.createElementBlock(_.Fragment,null,_.renderList(r.value,(d,h)=>(_.openBlock(),_.createBlock(_a,_.mergeProps({key:h},{ref_for:!0},m(d),{label:d.label,onClick:c=>u(d)}),null,16,["label","onClick"]))),128))]),_:1},16,["active-color"]))}}),Ta={size:{type:[String,Number],default:"1em"},color:String};function Ra(l){return{cSize:_.computed(()=>l.size in ei?`${ei[l.size]}px`:l.size),classes:_.computed(()=>"q-spinner"+(l.color?` text-${l.color}`:""))}}const uo=tt({name:"QSpinner",props:{...Ta,thickness:{type:Number,default:5}},setup(l){const{cSize:j,classes:t}=Ra(l);return()=>_.h("svg",{class:t.value+" q-spinner-mat",width:j.value,height:j.value,viewBox:"25 25 50 50"},[_.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":l.thickness,"stroke-miterlimit":"10"})])}});function ti(l,j){const t=l.style;for(const v in j)t[v]=j[v]}function Ba(l){if(l==null)return;if(typeof l=="string")try{return document.querySelector(l)||void 0}catch{return}const j=_.unref(l);if(j)return j.$el||j}function co(l,j){if(l==null||l.contains(j)===!0)return!0;for(let t=l.nextElementSibling;t!==null;t=t.nextElementSibling)if(t.contains(j))return!0;return!1}const _t={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const l=Object.defineProperty({},"passive",{get(){Object.assign(_t,{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 Mn(){}function Ia(l){return l.button===0}function Nr(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 Oa(l){if(l.path)return l.path;if(l.composedPath)return l.composedPath();const j=[];let t=l.target;for(;t;){if(j.push(t),t.tagName==="HTML")return j.push(document),j.push(window),j;t=t.parentElement}}function Ft(l){l.stopPropagation()}function Bt(l){l.cancelable!==!1&&l.preventDefault()}function xt(l){l.cancelable!==!1&&l.preventDefault(),l.stopPropagation()}function Pn(l,j){if(l===void 0||j===!0&&l.__dragPrevented===!0)return;const t=j===!0?v=>{v.__dragPrevented=!0,v.addEventListener("dragstart",Bt,_t.notPassiveCapture)}:v=>{delete v.__dragPrevented,v.removeEventListener("dragstart",Bt,_t.notPassiveCapture)};l.querySelectorAll("a, img").forEach(t)}function Ht(l,j,t){const v=`__q_${j}_evt`;l[v]=l[v]!==void 0?l[v].concat(t):t,t.forEach(m=>{m[0].addEventListener(m[1],l[m[2]],_t[m[3]])})}function ar(l,j){const t=`__q_${j}_evt`;l[t]!==void 0&&(l[t].forEach(v=>{v[0].removeEventListener(v[1],l[v[2]],_t[v[3]])}),l[t]=void 0)}function _i(l){return l!==Object(l)||l.isComposing===!0||l.qKeyEvent===!0}function er(l,j){return _i(l)===!0?!1:[].concat(j).includes(l.keyCode)}function ja(l,j=250){let t=!1,v;return function(){return t===!1&&(t=!0,setTimeout(()=>{t=!1},j),v=l.apply(this,arguments)),v}}function ss(l,j,t,v){t.modifiers.stop===!0&&Ft(l);const m=t.modifiers.color;let f=t.modifiers.center;f=f===!0||v===!0;const a=document.createElement("span"),o=document.createElement("span"),n=Nr(l),{left:e,top:r,width:u,height:s}=j.getBoundingClientRect(),i=Math.sqrt(u*u+s*s),d=i/2,h=`${(u-i)/2}px`,c=f?h:`${n.left-e-d}px`,g=`${(s-i)/2}px`,p=f?g:`${n.top-r-d}px`;o.className="q-ripple__inner",ti(o,{height:`${i}px`,width:`${i}px`,transform:`translate3d(${c},${p},0) scale3d(.2,.2,1)`,opacity:0}),a.className=`q-ripple${m?" text-"+m:""}`,a.setAttribute("dir","ltr"),a.appendChild(o),j.appendChild(a);const S=()=>{a.remove(),clearTimeout(C)};t.abort.push(S);let C=setTimeout(()=>{o.classList.add("q-ripple__inner--enter"),o.style.transform=`translate3d(${h},${g},0) scale3d(1,1,1)`,o.style.opacity=.2,C=setTimeout(()=>{o.classList.remove("q-ripple__inner--enter"),o.classList.add("q-ripple__inner--leave"),o.style.opacity=0,C=setTimeout(()=>{a.remove(),t.abort.splice(t.abort.indexOf(S),1)},275)},250)},50)}function os(l,{modifiers:j,value:t,arg:v}){const m=Object.assign({},l.cfg.ripple,j,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 fo=bi({name:"ripple",beforeMount(l,j){const t=j.instance.$.appContext.config.globalProperties.$q.config||{};if(t.ripple===!1)return;const v={cfg:t,enabled:j.value!==!1,modifiers:{},abort:[],start(m){v.enabled===!0&&m.qSkipRipple!==!0&&m.type===(v.modifiers.early===!0?"pointerdown":"click")&&ss(m,l,v,m.qKeyEvent===!0)},keystart:ja(m=>{v.enabled===!0&&m.qSkipRipple!==!0&&er(m,v.modifiers.keyCodes)===!0&&m.type===`key${v.modifiers.early===!0?"down":"up"}`&&ss(m,l,v,!0)},300)};os(v,j),l.__qripple=v,Ht(v,"main",[[l,"pointerdown","start","passive"],[l,"click","start","passive"],[l,"keydown","keystart","passive"],[l,"keyup","keystart","passive"]])},updated(l,j){if(j.oldValue!==j.value){const t=l.__qripple;t!==void 0&&(t.enabled=j.value!==!1,t.enabled===!0&&Object(j.value)===j.value&&os(t,j))}},beforeUnmount(l){const j=l.__qripple;j!==void 0&&(j.abort.forEach(t=>{t()}),ar(j,"main"),delete l._qripple)}}),as={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Fa={xs:8,sm:10,md:14,lg:20,xl:24},Pa=["button","submit","reset"],Da=/[^\s]\/[^\s]/,Na=["flat","outline","push","unelevated"];function La(l,j){return l.flat===!0?"flat":l.outline===!0?"outline":l.push===!0?"push":l.unelevated===!0?"unelevated":j}const qa={...Cr,...oo,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Na.reduce((l,j)=>(l[j]=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:{...Si.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},za={...qa,round:Boolean};function Va(l){const j=Ar(l,Fa),t=ki(l),{hasRouterLink:v,hasLink:m,linkTag:f,linkAttrs:a,navigateOnClick:o}=xi({fallbackTag:"button"}),n=_.computed(()=>{const c=l.fab===!1&&l.fabMini===!1?j.value:{};return l.padding!==void 0?Object.assign({},c,{padding:l.padding.split(/\s+/).map(g=>g in as?as[g]+"px":g).join(" "),minWidth:"0",minHeight:"0"}):c}),e=_.computed(()=>l.rounded===!0||l.fab===!0||l.fabMini===!0),r=_.computed(()=>l.disable!==!0&&l.loading!==!0),u=_.computed(()=>r.value===!0?l.tabindex||0:-1),s=_.computed(()=>La(l,"standard")),i=_.computed(()=>{const c={tabindex:u.value};return m.value===!0?Object.assign(c,a.value):Pa.includes(l.type)===!0&&(c.type=l.type),f.value==="a"?(l.disable===!0?c["aria-disabled"]="true":c.href===void 0&&(c.role="button"),v.value!==!0&&Da.test(l.type)===!0&&(c.type=l.type)):l.disable===!0&&(c.disabled="",c["aria-disabled"]="true"),l.loading===!0&&l.percentage!==void 0&&Object.assign(c,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l.percentage}),c}),d=_.computed(()=>{let c;l.color!==void 0?l.flat===!0||l.outline===!0?c=`text-${l.textColor||l.color}`:c=`bg-${l.color} text-${l.textColor||"white"}`:l.textColor&&(c=`text-${l.textColor}`);const g=l.round===!0?"round":`rectangle${e.value===!0?" q-btn--rounded":l.square===!0?" q-btn--square":""}`;return`q-btn--${s.value} q-btn--${g}`+(c!==void 0?" "+c:"")+(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=_.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:f,navigateOnClick:o,isActionable:r}}const{passiveCapture:Nt}=_t;let mr=null,gr=null,br=null;const bt=tt({name:"QBtn",props:{...za,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(l,{slots:j,emit:t}){const{proxy:v}=_.getCurrentInstance(),{classes:m,style:f,innerClasses:a,attributes:o,hasLink:n,linkTag:e,navigateOnClick:r,isActionable:u}=Va(l),s=_.ref(null),i=_.ref(null);let d=null,h,c=null;const g=_.computed(()=>l.label!==void 0&&l.label!==null&&l.label!==""),p=_.computed(()=>l.disable===!0||l.ripple===!1?!1:{keyCodes:n.value===!0?[13,32]:[13],...l.ripple===!0?{}:l.ripple}),S=_.computed(()=>({center:l.round})),C=_.computed(()=>{const M=Math.max(0,Math.min(100,l.percentage));return M>0?{transition:"transform 0.6s",transform:`translateX(${M-100}%)`}:{}}),T=_.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:D,onMousedown:L};if(v.$q.platform.has.touch===!0){const k=l.onTouchstart!==void 0?"":"Passive";M[`onTouchstart${k}`]=N}return M}return{onClick:xt}}),F=_.computed(()=>({ref:s,class:"q-btn q-btn-item non-selectable no-outline "+m.value,style:f.value,...o.value,...T.value}));function z(M){if(s.value!==null){if(M!==void 0){if(M.defaultPrevented===!0)return;const k=document.activeElement;if(l.type==="submit"&&k!==document.body&&s.value.contains(k)===!1&&k.contains(s.value)===!1){M.qAvoidFocus!==!0&&s.value.focus();const b=()=>{document.removeEventListener("keydown",xt,!0),document.removeEventListener("keyup",b,Nt),s.value?.removeEventListener("blur",b,Nt)};document.addEventListener("keydown",xt,!0),document.addEventListener("keyup",b,Nt),s.value.addEventListener("blur",b,Nt)}}r(M)}}function D(M){s.value!==null&&(t("keydown",M),er(M,[13,32])===!0&&gr!==s.value&&(gr!==null&&q(),M.defaultPrevented!==!0&&(M.qAvoidFocus!==!0&&s.value.focus(),gr=s.value,s.value.classList.add("q-btn--active"),document.addEventListener("keyup",U,!0),s.value.addEventListener("blur",U,Nt)),xt(M)))}function N(M){s.value!==null&&(t("touchstart",M),M.defaultPrevented!==!0&&(mr!==s.value&&(mr!==null&&q(),mr=s.value,d=M.target,d.addEventListener("touchcancel",U,Nt),d.addEventListener("touchend",U,Nt)),h=!0,c!==null&&clearTimeout(c),c=setTimeout(()=>{c=null,h=!1},200)))}function L(M){s.value!==null&&(M.qSkipRipple=h===!0,t("mousedown",M),M.defaultPrevented!==!0&&br!==s.value&&(br!==null&&q(),br=s.value,s.value.classList.add("q-btn--active"),document.addEventListener("mouseup",U,Nt)))}function U(M){if(s.value!==null&&!(M?.type==="blur"&&document.activeElement===s.value)){if(M?.type==="keyup"){if(gr===s.value&&er(M,[13,32])===!0){const k=new MouseEvent("click",M);k.qKeyEvent=!0,M.defaultPrevented===!0&&Bt(k),M.cancelBubble===!0&&Ft(k),s.value.dispatchEvent(k),xt(M),M.qKeyEvent=!0}t("keyup",M)}q()}}function q(M){const k=i.value;M!==!0&&(mr===s.value||br===s.value)&&k!==null&&k!==document.activeElement&&(k.setAttribute("tabindex",-1),k.focus()),mr===s.value&&(d!==null&&(d.removeEventListener("touchcancel",U,Nt),d.removeEventListener("touchend",U,Nt)),mr=d=null),br===s.value&&(document.removeEventListener("mouseup",U,Nt),br=null),gr===s.value&&(document.removeEventListener("keyup",U,!0),s.value?.removeEventListener("blur",U,Nt),gr=null),s.value?.classList.remove("q-btn--active")}function A(M){xt(M),M.qSkipRipple=!0}return _.onBeforeUnmount(()=>{q(!0)}),Object.assign(v,{click:M=>{u.value===!0&&z(M)}}),()=>{let M=[];l.icon!==void 0&&M.push(_.h(St,{name:l.icon,left:l.stack!==!0&&g.value===!0,role:"img"})),g.value===!0&&M.push(_.h("span",{class:"block"},[l.label])),M=Dt(j.default,M),l.iconRight!==void 0&&l.round===!1&&M.push(_.h(St,{name:l.iconRight,right:l.stack!==!0&&g.value===!0,role:"img"}));const k=[_.h("span",{class:"q-focus-helper",ref:i})];return l.loading===!0&&l.percentage!==void 0&&k.push(_.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(l.darkPercentage===!0?" q-btn__progress--dark":"")},[_.h("span",{class:"q-btn__progress-indicator fit block",style:C.value})])),k.push(_.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+a.value},M)),l.loading!==null&&k.push(_.h(_.Transition,{name:"q-transition--fade"},()=>l.loading===!0?[_.h("span",{key:"loading",class:"absolute-full flex flex-center"},j.loading!==void 0?j.loading():[_.h(uo)])]:null)),_.withDirectives(_.h(e.value,F.value,k),[[fo,p.value,void 0,S.value]])}}}),Ua={class:"row justify-between"},Wa=_.defineComponent({__name:"NavButton",props:{from:{},to:{default:void 0},labelFrom:{},labelTo:{default:void 0},params:{default:()=>({})},query:{default:()=>({})}},setup(l){const j=l,t=_.inject("navContext",null),v=_.inject("router");function m(f){if(!v){console.warn("Dependencies not available:",{router:v});return}t?.setTabs();const a=f==="back"?j.from:j.to;if(!a){console.warn("Destination not provided:",f);return}v.push({name:a,params:j.params,query:j.query})}return(f,a)=>(_.openBlock(),_.createElementBlock("div",Ua,[_.createVNode(bt,{icon:"chevron_left","rounded-sm":"",label:f.labelFrom,"data-cy":"go-back","data-testid":"go-back",onClick:a[0]||(a[0]=o=>m("back"))},null,8,["label"]),f.labelTo?(_.openBlock(),_.createBlock(bt,{key:0,label:f.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]=o=>m("next"))},null,8,["label"])):_.createCommentVNode("",!0)]))}}),Er=(l,j)=>{const t=l.__vccOpts||l;for(const[v,m]of j)t[v]=m;return t},Ha=Er(Wa,[["__scopeId","data-v-8dd99f80"]]),It={dark:{type:Boolean,default:null}};function Ot(l,j){return _.computed(()=>l.dark===null?j.dark.isActive:l.dark)}function Ya(l,j){const t=_.ref(null),v=_.computed(()=>l.disable===!0?null:_.h("span",{ref:t,class:"no-outline",tabindex:-1}));function m(f){const a=j.value;f?.qAvoidFocus!==!0&&(f?.type.indexOf("key")===0?document.activeElement!==a&&a?.contains(document.activeElement)===!0&&a.focus():t.value!==null&&(f===void 0||a?.contains(f.target)===!0)&&t.value.focus())}return{refocusTargetEl:v,refocusTarget:m}}const Tn={name:String};function Qa(l){return _.computed(()=>({type:"hidden",name:l.name,value:l.modelValue}))}function ho(l={}){return(j,t,v)=>{j[t](_.h("input",{class:"hidden"+(v||""),...l.value}))}}function po(l){return _.computed(()=>l.name||l.for)}const Ka={xs:30,sm:35,md:40,lg:50,xl:60},Xa={...It,...Cr,...Tn,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]},Ga=["update:modelValue"];function Ja(l,j){const{props:t,slots:v,emit:m,proxy:f}=_.getCurrentInstance(),{$q:a}=f,o=Ot(t,a),n=_.ref(null),{refocusTargetEl:e,refocusTarget:r}=Ya(t,n),u=Ar(t,Ka),s=_.computed(()=>t.val!==void 0&&Array.isArray(t.modelValue)),i=_.computed(()=>{const q=_.toRaw(t.val);return s.value===!0?t.modelValue.findIndex(A=>_.toRaw(A)===q):-1}),d=_.computed(()=>s.value===!0?i.value!==-1:_.toRaw(t.modelValue)===_.toRaw(t.trueValue)),h=_.computed(()=>s.value===!0?i.value===-1:_.toRaw(t.modelValue)===_.toRaw(t.falseValue)),c=_.computed(()=>d.value===!1&&h.value===!1),g=_.computed(()=>t.disable===!0?-1:t.tabindex||0),p=_.computed(()=>`q-${l} cursor-pointer no-outline row inline no-wrap items-center`+(t.disable===!0?" disabled":"")+(o.value===!0?` q-${l}--dark`:"")+(t.dense===!0?` q-${l}--dense`:"")+(t.leftLabel===!0?" reverse":"")),S=_.computed(()=>{const q=d.value===!0?"truthy":h.value===!0?"falsy":"indet",A=t.color!==void 0&&(t.keepColor===!0||h.value!==!0)?` text-${t.color}`:"";return`q-${l}__inner relative-position non-selectable q-${l}__inner--${q}${A}`}),C=_.computed(()=>{const q={type:"checkbox"};return t.name!==void 0&&Object.assign(q,{".checked":d.value,"^checked":d.value===!0?"checked":void 0,name:t.name,value:s.value===!0?t.val:t.trueValue}),q}),T=ho(C),F=_.computed(()=>{const q={tabindex:g.value,role:"checkbox","aria-label":t.label,"aria-checked":c.value===!0?"mixed":d.value===!0?"true":"false"};return t.disable===!0&&(q["aria-disabled"]="true"),q});function z(q){q!==void 0&&(xt(q),r(q)),t.disable!==!0&&m("update:modelValue",D(),q)}function D(){if(s.value===!0){if(d.value===!0){const q=t.modelValue.slice();return q.splice(i.value,1),q}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(q){(q.keyCode===13||q.keyCode===32)&&xt(q)}function L(q){(q.keyCode===13||q.keyCode===32)&&z(q)}const U=j(d,c);return Object.assign(f,{toggle:z}),()=>{const q=U();t.disable!==!0&&T(q,"unshift",` q-${l}__native absolute q-ma-none q-pa-none`);const A=[_.h("div",{class:S.value,style:u.value,"aria-hidden":"true"},q)];e.value!==null&&A.push(e.value);const M=t.label!==void 0?Dt(v.default,[t.label]):mt(v.default);return M!==void 0&&A.push(_.h("div",{class:`q-${l}__label q-anchor--skip`},M)),_.h("div",{ref:n,class:p.value,...F.value,onClick:z,onKeydown:N,onKeyup:L},A)}}const Za=()=>_.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[_.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[_.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),_.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),dn=tt({name:"QCheckbox",props:Xa,emits:Ga,setup(l){const j=Za();function t(v,m){const f=_.computed(()=>(v.value===!0?l.checkedIcon:m.value===!0?l.indeterminateIcon:l.uncheckedIcon)||null);return()=>f.value!==null?[_.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[_.h(St,{class:"q-checkbox__icon",name:f.value})])]:[j]}return Ja("checkbox",t)}}),$a=tt({props:["store","barStyle","verticalBarStyle","horizontalBarStyle"],setup(l){return()=>[_.h("div",{class:l.store.scroll.vertical.barClass.value,style:[l.barStyle,l.verticalBarStyle],"aria-hidden":"true",onMousedown:l.store.onVerticalMousedown}),_.h("div",{class:l.store.scroll.horizontal.barClass.value,style:[l.barStyle,l.horizontalBarStyle],"aria-hidden":"true",onMousedown:l.store.onHorizontalMousedown}),_.withDirectives(_.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),_.withDirectives(_.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)]}}),tr=_.ref(!1);let ri;function el(l,j){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:j[0]||""}}function tl(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 mo="ontouchstart"in window||window.navigator.maxTouchPoints>0;function rl(l){const j=l.toLowerCase(),t=tl(j),v=el(j,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 f=m.android||m.ios||m.bb||m.blackberry||m.ipad||m.iphone||m.ipod||m.kindle||m.playbook||m.silk||m["windows phone"];if(f===!0||j.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&&f!==!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,j.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"),tr.value===!0&&(ri={is:{...m}}),mo===!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 ls=navigator.userAgent||navigator.vendor||window.opera,nl={has:{touch:!1,webStorage:!1},within:{iframe:!1}},Et={userAgent:ls,is:rl(ls),has:{touch:mo},within:{iframe:window.self!==window.top}},ni={install(l){const{$q:j}=l;tr.value===!0?(l.onSSRHydrated.push(()=>{Object.assign(j.platform,Et),tr.value=!1}),j.platform=_.reactive(this)):j.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(ni,Et),tr.value===!0&&(Object.assign(ni,ri,nl),ri=null)}function il(){const l=_.ref(!tr.value);return l.value===!1&&_.onMounted(()=>{l.value=!0}),{isHydrated:l}}const go=typeof ResizeObserver<"u",us=go===!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"},kr=tt({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(l,{emit:j}){let t=null,v,m={width:-1,height:-1};function f(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},j("resize",m))}}const{proxy:o}=_.getCurrentInstance();if(o.trigger=f,go===!0){let n;const e=r=>{v=o.$el.parentNode,v?(n=new ResizeObserver(f),n.observe(v),a()):r!==!0&&_.nextTick(()=>{e(!0)})};return _.onMounted(()=>{e()}),_.onBeforeUnmount(()=>{t!==null&&clearTimeout(t),n!==void 0&&(n.disconnect!==void 0?n.disconnect():v&&n.unobserve(v))}),Mn}else{let n=function(){t!==null&&(clearTimeout(t),t=null),u!==void 0&&(u.removeEventListener!==void 0&&u.removeEventListener("resize",f,_t.passive),u=void 0)},e=function(){n(),v?.contentDocument&&(u=v.contentDocument.defaultView,u.addEventListener("resize",f,_t.passive),a())};const{isHydrated:r}=il();let u;return _.onMounted(()=>{_.nextTick(()=>{v=o.$el,v&&e()})}),_.onBeforeUnmount(n),()=>{if(r.value===!0)return _.h("object",{class:"q--avoid-card-border",style:us.style,tabindex:-1,type:"text/html",data:us.url,"aria-hidden":"true",onLoad:e})}}}}),Rn=[Element,String],sl=[null,document,document.body,document.scrollingElement,document.documentElement];function Bn(l,j){let t=Ba(j);if(t===void 0){if(l==null)return window;t=l.closest(".scroll,.scroll-y,.overflow-auto")}return sl.includes(t)?window:t}function Ci(l){return l===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:l.scrollTop}function Ai(l){return l===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:l.scrollLeft}function bo(l,j,t=0){const v=arguments[3]===void 0?performance.now():arguments[3],m=Ci(l);if(t<=0){m!==j&&ii(l,j);return}requestAnimationFrame(f=>{const a=f-v,o=m+(j-m)/Math.max(a,t)*a;ii(l,o),o!==j&&bo(l,j,t-a,f)})}function vo(l,j,t=0){const v=arguments[3]===void 0?performance.now():arguments[3],m=Ai(l);if(t<=0){m!==j&&si(l,j);return}requestAnimationFrame(f=>{const a=f-v,o=m+(j-m)/Math.max(a,t)*a;si(l,o),o!==j&&vo(l,j,t-a,f)})}function ii(l,j){if(l===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,j);return}l.scrollTop=j}function si(l,j){if(l===window){window.scrollTo(j,window.pageYOffset||window.scrollY||document.body.scrollTop||0);return}l.scrollLeft=j}function cs(l,j,t){if(t){bo(l,j,t);return}ii(l,j)}function Dn(l,j,t){if(t){vo(l,j,t);return}si(l,j)}let Zr;function hn(){if(Zr!==void 0)return Zr;const l=document.createElement("p"),j=document.createElement("div");ti(l,{width:"100%",height:"200px"}),ti(j,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),j.appendChild(l),document.body.appendChild(j);const t=l.offsetWidth;j.style.overflow="scroll";let v=l.offsetWidth;return t===v&&(v=j.clientWidth),j.remove(),Zr=t-v,Zr}function ol(l,j=!0){return!l||l.nodeType!==Node.ELEMENT_NODE?!1:j?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:fs}=_t,al=["both","horizontal","vertical"],yo=tt({name:"QScrollObserver",props:{axis:{type:String,validator:l=>al.includes(l),default:"vertical"},debounce:[String,Number],scrollTarget:Rn},emits:["scroll"],setup(l,{emit:j}){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,f;_.watch(()=>l.scrollTarget,()=>{n(),o()});function a(){v?.();const u=Math.max(0,Ci(m)),s=Ai(m),i={top:u-t.position.top,left:s-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:s},t.directionChanged=t.direction!==d,t.delta=i,t.directionChanged===!0&&(t.direction=d,t.inflectionPoint=t.position),j("scroll",{...t})}function o(){m=Bn(f,l.scrollTarget),m.addEventListener("scroll",e,fs),e(!0)}function n(){m!==void 0&&(m.removeEventListener("scroll",e,fs),m=void 0)}function e(u){if(u===!0||l.debounce===0||l.debounce==="0")a();else if(v===null){const[s,i]=l.debounce?[setTimeout(a,l.debounce),clearTimeout]:[requestAnimationFrame(a),cancelAnimationFrame];v=()=>{i(s),v=null}}}const{proxy:r}=_.getCurrentInstance();return _.watch(()=>r.$q.lang.rtl,a),_.onMounted(()=>{f=r.$el.parentNode,o()}),_.onBeforeUnmount(()=>{v?.(),n()}),Object.assign(r,{trigger:e,getPosition:()=>t}),Mn}}),Ei={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},ll=Object.keys(Ei);Ei.all=!0;function ds(l){const j={};for(const t of ll)l[t]===!0&&(j[t]=!0);return Object.keys(j).length===0?Ei:(j.horizontal===!0?j.left=j.right=!0:j.left===!0&&j.right===!0&&(j.horizontal=!0),j.vertical===!0?j.up=j.down=!0:j.up===!0&&j.down===!0&&(j.vertical=!0),j.horizontal===!0&&j.vertical===!0&&(j.all=!0),j)}const ul=["INPUT","TEXTAREA"];function hs(l,j){return j.event===void 0&&l.target!==void 0&&l.target.draggable!==!0&&typeof j.handler=="function"&&ul.includes(l.target.nodeName.toUpperCase())===!1&&(l.qClonedBy===void 0||l.qClonedBy.indexOf(j.uid)===-1)}function vn(){if(window.getSelection!==void 0){const l=window.getSelection();l.empty!==void 0?l.empty():l.removeAllRanges!==void 0&&(l.removeAllRanges(),ni.is.mobile!==!0&&l.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}function Nn(l,j,t){const v=Nr(l);let m,f=v.left-j.event.x,a=v.top-j.event.y,o=Math.abs(f),n=Math.abs(a);const e=j.direction;e.horizontal===!0&&e.vertical!==!0?m=f<0?"left":"right":e.horizontal!==!0&&e.vertical===!0?m=a<0?"up":"down":e.up===!0&&a<0?(m="up",o>n&&(e.left===!0&&f<0?m="left":e.right===!0&&f>0&&(m="right"))):e.down===!0&&a>0?(m="down",o>n&&(e.left===!0&&f<0?m="left":e.right===!0&&f>0&&(m="right"))):e.left===!0&&f<0?(m="left",o<n&&(e.up===!0&&a<0?m="up":e.down===!0&&a>0&&(m="down"))):e.right===!0&&f>0&&(m="right",o<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(j.event.isFirst===!0||j.event.lastDir===void 0)return{};m=j.event.lastDir,r=!0,m==="left"||m==="right"?(v.left-=f,o=0,f=0):(v.top-=a,n=0,a=0)}return{synthetic:r,payload:{evt:l,touch:j.event.mouse!==!0,mouse:j.event.mouse===!0,position:v,direction:m,isFirst:j.event.isFirst,isFinal:t===!0,duration:Date.now()-j.event.time,distance:{x:o,y:n},offset:{x:f,y:a},delta:{x:v.left-j.event.lastX,y:v.top-j.event.lastY}}}}let cl=0;const ps=bi({name:"touch-pan",beforeMount(l,{value:j,modifiers:t}){if(t.mouse!==!0&&Et.has.touch!==!0)return;function v(f,a){t.mouse===!0&&a===!0?xt(f):(t.stop===!0&&Ft(f),t.prevent===!0&&Bt(f))}const m={uid:"qvtp_"+cl++,handler:j,modifiers:t,direction:ds(t),noop:Mn,mouseStart(f){hs(f,m)&&Ia(f)&&(Ht(m,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),m.start(f,!0))},touchStart(f){if(hs(f,m)){const a=f.target;Ht(m,"temp",[[a,"touchmove","move","notPassiveCapture"],[a,"touchcancel","end","passiveCapture"],[a,"touchend","end","passiveCapture"]]),m.start(f)}},start(f,a){if(Et.is.firefox===!0&&Pn(l,!0),m.lastEvt=f,a===!0||t.stop===!0){if(m.direction.all!==!0&&(a!==!0||m.modifiers.mouseAllDir!==!0&&m.modifiers.mousealldir!==!0)){const e=f.type.indexOf("mouse")!==-1?new MouseEvent(f.type,f):new TouchEvent(f.type,f);f.defaultPrevented===!0&&Bt(e),f.cancelBubble===!0&&Ft(e),Object.assign(e,{qKeyEvent:f.qKeyEvent,qClickOutside:f.qClickOutside,qAnchorHandled:f.qAnchorHandled,qClonedBy:f.qClonedBy===void 0?[m.uid]:f.qClonedBy.concat(m.uid)}),m.initialEvent={target:f.target,event:e}}Ft(f)}const{left:o,top:n}=Nr(f);m.event={x:o,y:n,time:Date.now(),mouse:a===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:o,lastY:n}},move(f){if(m.event===void 0)return;const a=Nr(f),o=a.left-m.event.x,n=a.top-m.event.y;if(o===0&&n===0)return;m.lastEvt=f;const e=m.event.mouse===!0,r=()=>{v(f,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"),vn(),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(f,m.event.mouse);const{payload:i,synthetic:d}=Nn(f,m,!1);i!==void 0&&(m.handler(i)===!1?m.end(f):(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(f);return}const u=Math.abs(o),s=Math.abs(n);u!==s&&(m.direction.horizontal===!0&&u>s||m.direction.vertical===!0&&u<s||m.direction.up===!0&&u<s&&n<0||m.direction.down===!0&&u<s&&n>0||m.direction.left===!0&&u>s&&o<0||m.direction.right===!0&&u>s&&o>0?(m.event.detected=!0,m.move(f)):m.end(f,!0))},end(f,a){if(m.event!==void 0){if(ar(m,"temp"),Et.is.firefox===!0&&Pn(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(Nn(f===void 0?m.lastEvt:f,m).payload);const{payload:o}=Nn(f===void 0?m.lastEvt:f,m,!0),n=()=>{m.handler(o)};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 f=t.mouseCapture===!0||t.mousecapture===!0?"Capture":"";Ht(m,"main",[[l,"mousedown","mouseStart",`passive${f}`]])}Et.has.touch===!0&&Ht(m,"main",[[l,"touchstart","touchStart",`passive${t.capture===!0?"Capture":""}`],[l,"touchmove","noop","notPassiveCapture"]])},updated(l,j){const t=l.__qtouchpan;t!==void 0&&(j.oldValue!==j.value&&(typeof value!="function"&&t.end(),t.handler=j.value),t.direction=ds(j.modifiers))},beforeUnmount(l){const j=l.__qtouchpan;j!==void 0&&(j.event!==void 0&&j.end(),ar(j,"main"),ar(j,"temp"),Et.is.firefox===!0&&Pn(l,!1),j.styleCleanup?.(),delete l.__qtouchpan)}});function fl(l){return l.charAt(0).toUpperCase()+l.slice(1)}function Tr(l,j,t){return t<=j?j:Math.min(t,Math.max(j,l))}function ms(l,j,t){if(t<=j)return j;const v=t-j+1;let m=j+(l-j)%v;return m<j&&(m=v+m),m===0?0:m}function gt(l,j=2,t="0"){if(l==null)return l;const v=""+l;return v.length>=j?v:new Array(j-v.length+1).join(t)+v}function Mi(l,j=250,t){let v=null;function m(){const f=arguments,a=()=>{v=null,l.apply(this,f)};v!==null&&clearTimeout(v),v=setTimeout(a,j)}return m.cancel=()=>{v!==null&&clearTimeout(v)},m}const gs=["vertical","horizontal"],Ln={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}},bs={prevent:!0,mouse:!0,mouseAllDir:!0},vs=l=>l>=250?50:Math.ceil(l/5),dl=tt({name:"QScrollArea",props:{...It,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:j,emit:t}){const v=_.ref(!1),m=_.ref(!1),f=_.ref(!1),a={vertical:_.ref(0),horizontal:_.ref(0)},o={vertical:{ref:_.ref(null),position:_.ref(0),size:_.ref(0)},horizontal:{ref:_.ref(null),position:_.ref(0),size:_.ref(0)}},{proxy:n}=_.getCurrentInstance(),e=Ot(l,n.$q);let r=null,u;const s=_.ref(null),i=_.computed(()=>"q-scrollarea"+(e.value===!0?" q-scrollarea--dark":""));Object.assign(a,{verticalInner:_.computed(()=>a.vertical.value-l.verticalOffset[0]-l.verticalOffset[1]),horizontalInner:_.computed(()=>a.horizontal.value-l.horizontalOffset[0]-l.horizontalOffset[1])}),o.vertical.percentage=_.computed(()=>{const M=o.vertical.size.value-a.vertical.value;if(M<=0)return 0;const k=Tr(o.vertical.position.value/M,0,1);return Math.round(k*1e4)/1e4}),o.vertical.thumbHidden=_.computed(()=>(l.visible===null?f.value:l.visible)!==!0&&v.value===!1&&m.value===!1||o.vertical.size.value<=a.vertical.value+1),o.vertical.thumbStart=_.computed(()=>l.verticalOffset[0]+o.vertical.percentage.value*(a.verticalInner.value-o.vertical.thumbSize.value)),o.vertical.thumbSize=_.computed(()=>Math.round(Tr(a.verticalInner.value*a.verticalInner.value/o.vertical.size.value,vs(a.verticalInner.value),a.verticalInner.value))),o.vertical.style=_.computed(()=>({...l.thumbStyle,...l.verticalThumbStyle,top:`${o.vertical.thumbStart.value}px`,height:`${o.vertical.thumbSize.value}px`,right:`${l.horizontalOffset[1]}px`})),o.vertical.thumbClass=_.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(o.vertical.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),o.vertical.barClass=_.computed(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(o.vertical.thumbHidden.value===!0?" q-scrollarea__bar--invisible":"")),o.horizontal.percentage=_.computed(()=>{const M=o.horizontal.size.value-a.horizontal.value;if(M<=0)return 0;const k=Tr(Math.abs(o.horizontal.position.value)/M,0,1);return Math.round(k*1e4)/1e4}),o.horizontal.thumbHidden=_.computed(()=>(l.visible===null?f.value:l.visible)!==!0&&v.value===!1&&m.value===!1||o.horizontal.size.value<=a.horizontal.value+1),o.horizontal.thumbStart=_.computed(()=>l.horizontalOffset[0]+o.horizontal.percentage.value*(a.horizontalInner.value-o.horizontal.thumbSize.value)),o.horizontal.thumbSize=_.computed(()=>Math.round(Tr(a.horizontalInner.value*a.horizontalInner.value/o.horizontal.size.value,vs(a.horizontalInner.value),a.horizontalInner.value))),o.horizontal.style=_.computed(()=>({...l.thumbStyle,...l.horizontalThumbStyle,[n.$q.lang.rtl===!0?"right":"left"]:`${o.horizontal.thumbStart.value}px`,width:`${o.horizontal.thumbSize.value}px`,bottom:`${l.verticalOffset[1]}px`})),o.horizontal.thumbClass=_.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(o.horizontal.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),o.horizontal.barClass=_.computed(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(o.horizontal.thumbHidden.value===!0?" q-scrollarea__bar--invisible":""));const d=_.computed(()=>o.vertical.thumbHidden.value===!0&&o.horizontal.thumbHidden.value===!0?l.contentStyle:l.contentActiveStyle);function h(){const M={};return gs.forEach(k=>{const b=o[k];Object.assign(M,{[k+"Position"]:b.position.value,[k+"Percentage"]:b.percentage.value,[k+"Size"]:b.size.value,[k+"ContainerSize"]:a[k].value,[k+"ContainerInnerSize"]:a[k+"Inner"].value})}),M}const c=Mi(()=>{const M=h();M.ref=n,t("scroll",M)},0);function g(M,k,b){if(gs.includes(M)===!1){console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");return}(M==="vertical"?cs:Dn)(s.value,k,b)}function p({height:M,width:k}){let b=!1;a.vertical.value!==M&&(a.vertical.value=M,b=!0),a.horizontal.value!==k&&(a.horizontal.value=k,b=!0),b===!0&&z()}function S({position:M}){let k=!1;o.vertical.position.value!==M.top&&(o.vertical.position.value=M.top,k=!0),o.horizontal.position.value!==M.left&&(o.horizontal.position.value=M.left,k=!0),k===!0&&z()}function C({height:M,width:k}){o.horizontal.size.value!==k&&(o.horizontal.size.value=k,z()),o.vertical.size.value!==M&&(o.vertical.size.value=M,z())}function T(M,k){const b=o[k];if(M.isFirst===!0){if(b.thumbHidden.value===!0)return;u=b.position.value,m.value=!0}else if(m.value!==!0)return;M.isFinal===!0&&(m.value=!1);const y=Ln[k],w=(b.size.value-a[k].value)/(a[k+"Inner"].value-b.thumbSize.value),x=M.distance[y.dist],E=u+(M.direction===y.dir?1:-1)*x*w;D(E,k)}function F(M,k){const b=o[k];if(b.thumbHidden.value!==!0){const y=k==="vertical"?l.verticalOffset[0]:l.horizontalOffset[0],w=M[Ln[k].offset]-y,x=b.thumbStart.value-y;if(w<x||w>x+b.thumbSize.value){const E=w-b.thumbSize.value/2,B=Tr(E/(a[k+"Inner"].value-b.thumbSize.value),0,1);D(B*Math.max(0,b.size.value-a[k].value),k)}b.ref.value!==null&&b.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&&c()}function D(M,k){s.value[Ln[k].scroll]=M}let N=null;function L(){N!==null&&clearTimeout(N),N=setTimeout(()=>{N=null,f.value=!0},n.$q.platform.is.ios?50:0)}function U(){N!==null&&(clearTimeout(N),N=null),f.value=!1}let q=null;_.watch(()=>n.$q.lang.rtl,M=>{s.value!==null&&Dn(s.value,Math.abs(o.horizontal.position.value)*(M===!0?-1:1))}),_.onDeactivated(()=>{q={top:o.vertical.position.value,left:o.horizontal.position.value}}),_.onActivated(()=>{if(q===null)return;const M=s.value;M!==null&&(Dn(M,q.left),cs(M,q.top))}),_.onBeforeUnmount(c.cancel),Object.assign(n,{getScrollTarget:()=>s.value,getScroll:h,getScrollPosition:()=>({top:o.vertical.position.value,left:o.horizontal.position.value}),getScrollPercentage:()=>({top:o.vertical.percentage.value,left:o.horizontal.percentage.value}),setScrollPosition:g,setScrollPercentage(M,k,b){g(M,k*(o[M].size.value-a[M].value)*(M==="horizontal"&&n.$q.lang.rtl===!0?-1:1),b)}});const A={scroll:o,thumbVertDir:[[ps,M=>{T(M,"vertical")},void 0,{vertical:!0,...bs}]],thumbHorizDir:[[ps,M=>{T(M,"horizontal")},void 0,{horizontal:!0,...bs}]],onVerticalMousedown(M){F(M,"vertical")},onHorizontalMousedown(M){F(M,"horizontal")}};return()=>_.h("div",{class:i.value,onMouseenter:L,onMouseleave:U},[_.h("div",{ref:s,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:l.tabindex!==void 0?l.tabindex:void 0},[_.h("div",{class:"q-scrollarea__content absolute",style:d.value},Dt(j.default,[_.h(kr,{debounce:0,onResize:C})])),_.h(yo,{axis:"both",onScroll:S})]),_.h(kr,{debounce:0,onResize:p}),_.h($a,{store:A,barStyle:l.barStyle,verticalBarStyle:l.verticalBarStyle,horizontalBarStyle:l.horizontalBarStyle})])}}),Ti=tt({name:"QCard",props:{...It,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(l,{slots:j}){const{proxy:{$q:t}}=_.getCurrentInstance(),v=Ot(l,t),m=_.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()=>_.h(l.tag,{class:m.value},mt(j.default))}}),wo={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},xo={...wo,contextMenu:Boolean};function Ri({showing:l,avoidEmit:j,configureAnchorEl:t}){const{props:v,proxy:m,emit:f}=_.getCurrentInstance(),a=_.ref(null);let o=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){er(i,13)===!0&&e.toggle(i)},contextClick(i){m.hide(i),Bt(i),_.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;Ht(e,"anchor",[[d,"touchmove","mobileCleanup","passive"],[d,"touchend","mobileCleanup","passive"],[d,"touchcancel","mobileCleanup","passive"],[a.value,"contextmenu","prevent","notPassive"]]),o=setTimeout(()=>{o=null,m.show(i),i.qAnchorHandled=!0},300)},mobileCleanup(i){a.value.classList.remove("non-selectable"),o!==null&&(clearTimeout(o),o=null),l.value===!0&&i!==void 0&&vn()}}),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"]],Ht(e,"anchor",d)});function r(){ar(e,"anchor")}function u(i){for(a.value=i;a.value.classList.contains("q-anchor--skip");)a.value=a.value.parentNode;t()}function s(){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 _.watch(()=>v.contextMenu,i=>{a.value!==null&&(r(),t(i))}),_.watch(()=>v.target,()=>{a.value!==null&&r(),s()}),_.watch(()=>v.noParentEvent,i=>{a.value!==null&&(i===!0?r():t())}),_.onMounted(()=>{s(),j!==!0&&v.modelValue===!0&&a.value===null&&f("update:modelValue",!1)}),_.onBeforeUnmount(()=>{o!==null&&clearTimeout(o),r()}),{anchorEl:a,canShow:n,anchorEvents:e}}function So(l,j){const t=_.ref(null);let v;function m(o,n){const e=`${n!==void 0?"add":"remove"}EventListener`,r=n!==void 0?n:v;o!==window&&o[e]("scroll",r,_t.passive),window[e]("scroll",r,_t.passive),v=n}function f(){t.value!==null&&(m(t.value),t.value=null)}const a=_.watch(()=>l.noParentEvent,()=>{t.value!==null&&(f(),j())});return _.onBeforeUnmount(a),{localScrollTarget:t,unconfigureScrollTarget:f,changeScrollEvent:m}}const Bi={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Ii=["beforeShow","show","beforeHide","hide"];function Oi({showing:l,canShow:j,hideOnRouteChange:t,handleShow:v,handleHide:m,processOnMount:f}){const a=_.getCurrentInstance(),{props:o,emit:n,proxy:e}=a;let r;function u(p){l.value===!0?d(p):s(p)}function s(p){if(o.disable===!0||p?.qAnchorHandled===!0||j!==void 0&&j(p)!==!0)return;const S=o["onUpdate:modelValue"]!==void 0;S===!0&&(n("update:modelValue",!0),r=p,_.nextTick(()=>{r===p&&(r=void 0)})),(o.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(o.disable===!0)return;const S=o["onUpdate:modelValue"]!==void 0;S===!0&&(n("update:modelValue",!1),r=p,_.nextTick(()=>{r===p&&(r=void 0)})),(o.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 c(p){o.disable===!0&&p===!0?o["onUpdate:modelValue"]!==void 0&&n("update:modelValue",!1):p===!0!==l.value&&(p===!0?i:h)(r)}_.watch(()=>o.modelValue,c),t!==void 0&&yi(a)===!0&&_.watch(()=>e.$route.fullPath,()=>{t.value===!0&&l.value===!0&&d()}),_.onMounted(()=>{c(o.modelValue)});const g={show:s,hide:d,toggle:u};return Object.assign(e,g),g}let or=[],Lr=[];function ko(l){Lr=Lr.filter(j=>j!==l)}function hl(l){ko(l),Lr.push(l)}function ys(l){ko(l),Lr.length===0&&or.length!==0&&(or[or.length-1](),or=[])}function Vr(l){Lr.length===0?l():or.push(l)}function pl(l){or=or.filter(j=>j!==l)}const ws={};let ml=1,gl=document.body;function bl(l,j){const t=document.createElement("div");if(t.id=j!==void 0?`q-portal--${j}--${ml++}`:l,ws.globalNodes!==void 0){const v=ws.globalNodes.class;v!==void 0&&(t.className=v)}return gl.appendChild(t),t}function vl(l){l.remove()}const xr=[];function yl(l){return xr.find(j=>j.contentEl!==null&&j.contentEl.contains(l))}function _o(l,j){do{if(l.$options.name==="QMenu"){if(l.hide(j),l.$props.separateClosePopup===!0)return fn(l)}else if(l.__qPortal===!0){const t=fn(l);return t?.$options.name==="QPopupProxy"?(l.hide(j),t):l}l=fn(l)}while(l!=null)}function wl(l,j,t){for(;t!==0&&l!==void 0&&l!==null;){if(l.__qPortal===!0){if(t--,l.$options.name==="QMenu"){l=_o(l,j);continue}l.hide(j)}l=fn(l)}}const xl=tt({name:"QPortal",setup(l,{slots:j}){return()=>j.default()}});function Sl(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 ji(l,j,t,v){const m=_.ref(!1),f=_.ref(!1);let a=null;const o={},n=v==="dialog"&&Sl(l);function e(u){if(u===!0){ys(o),f.value=!0;return}f.value=!1,m.value===!1&&(n===!1&&a===null&&(a=bl(!1,v)),m.value=!0,xr.push(l.proxy),hl(o))}function r(u){if(f.value=!1,u!==!0)return;ys(o),m.value=!1;const s=xr.indexOf(l.proxy);s!==-1&&xr.splice(s,1),a!==null&&(vl(a),a=null)}return _.onUnmounted(()=>{r(!0)}),l.proxy.__qPortal=!0,Lt(l.proxy,"contentEl",()=>j.value),{showPortal:e,hidePortal:r,portalIsActive:m,portalIsAccessible:f,renderPortal:()=>n===!0?t():m.value===!0?[_.h(_.Teleport,{to:a},_.h(xl,t))]:void 0}}const Fr={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Fi(l,j=()=>{},t=()=>{}){return{transitionProps:_.computed(()=>{const v=`q-transition--${l.transitionShow||j()}`,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:_.computed(()=>`--q-transition-duration: ${l.transitionDuration}ms`)}}function Pi(){let l;const j=_.getCurrentInstance();function t(){l=void 0}return _.onDeactivated(t),_.onBeforeUnmount(t),{removeTick:t,registerTick(v){l=v,_.nextTick(()=>{l===v&&(wi(j)===!1&&l(),l=void 0)})}}}function Di(){let l=null;const j=_.getCurrentInstance();function t(){l!==null&&(clearTimeout(l),l=null)}return _.onDeactivated(t),_.onBeforeUnmount(t),{removeTimeout:t,registerTimeout(v,m){t(),wi(j)===!1&&(l=setTimeout(()=>{l=null,v()},m))}}}const lr=[];let _r;function kl(l){_r=l.keyCode===27}function _l(){_r===!0&&(_r=!1)}function Cl(l){_r===!0&&(_r=!1,er(l,27)===!0&&lr[lr.length-1](l))}function Co(l){window[l]("keydown",kl),window[l]("blur",_l),window[l]("keyup",Cl),_r=!1}function Ao(l){Et.is.desktop===!0&&(lr.push(l),lr.length===1&&Co("addEventListener"))}function yn(l){const j=lr.indexOf(l);j!==-1&&(lr.splice(j,1),lr.length===0&&Co("removeEventListener"))}const ur=[];function Eo(l){ur[ur.length-1](l)}function Mo(l){Et.is.desktop===!0&&(ur.push(l),ur.length===1&&document.body.addEventListener("focusin",Eo))}function oi(l){const j=ur.indexOf(l);j!==-1&&(ur.splice(j,1),ur.length===0&&document.body.removeEventListener("focusin",Eo))}const{notPassiveCapture:wn}=_t,cr=[];function xn(l){const j=l.target;if(j===void 0||j.nodeType===8||j.classList.contains("no-pointer-events")===!0)return;let t=xr.length-1;for(;t>=0;){const v=xr[t].$;if(v.type.name==="QTooltip"){t--;continue}if(v.type.name!=="QDialog")break;if(v.props.seamless!==!0)return;t--}for(let v=cr.length-1;v>=0;v--){const m=cr[v];if((m.anchorEl.value===null||m.anchorEl.value.contains(j)===!1)&&(j===document.body||m.innerRef.value!==null&&m.innerRef.value.contains(j)===!1))l.qClickOutside=!0,m.onClickOutside(l);else return}}function To(l){cr.push(l),cr.length===1&&(document.addEventListener("mousedown",xn,wn),document.addEventListener("touchstart",xn,wn))}function Sn(l){const j=cr.findIndex(t=>t===l);j!==-1&&(cr.splice(j,1),cr.length===0&&(document.removeEventListener("mousedown",xn,wn),document.removeEventListener("touchstart",xn,wn)))}let xs,Ss;function kn(l){const j=l.split(" ");return j.length!==2?!1:["top","center","bottom"].includes(j[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(j[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function Ro(l){return l?!(l.length!==2||typeof l[0]!="number"||typeof l[1]!="number"):!0}const ai={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(l=>{ai[`${l}#ltr`]=l,ai[`${l}#rtl`]=l});function _n(l,j){const t=l.split(" ");return{vertical:t[0],horizontal:ai[`${t[1]}#${j===!0?"rtl":"ltr"}`]}}function Al(l,j){let{top:t,left:v,right:m,bottom:f,width:a,height:o}=l.getBoundingClientRect();return j!==void 0&&(t-=j[1],v-=j[0],f+=j[1],m+=j[0],a+=j[0],o+=j[1]),{top:t,bottom:f,height:o,left:v,right:m,width:a,middle:v+(m-v)/2,center:t+(f-t)/2}}function El(l,j,t){let{top:v,left:m}=l.getBoundingClientRect();return v+=j.top,m+=j.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 Ml(l,j){return{top:0,center:j/2,bottom:j,left:0,middle:l/2,right:l}}function ks(l,j,t,v){return{top:l[t.vertical]-j[v.vertical],left:l[t.horizontal]-j[v.horizontal]}}function Ni(l,j=0){if(l.targetEl===null||l.anchorEl===null||j>5)return;if(l.targetEl.offsetHeight===0||l.targetEl.offsetWidth===0){setTimeout(()=>{Ni(l,j+1)},10);return}const{targetEl:t,offset:v,anchorEl:m,anchorOrigin:f,selfOrigin:a,absoluteOffset:o,fit:n,cover:e,maxHeight:r,maxWidth:u}=l;if(Et.is.ios===!0&&window.visualViewport!==void 0){const F=document.body.style,{offsetLeft:z,offsetTop:D}=window.visualViewport;z!==xs&&(F.setProperty("--q-pe-left",z+"px"),xs=z),D!==Ss&&(F.setProperty("--q-pe-top",D+"px"),Ss=D)}const{scrollLeft:s,scrollTop:i}=t,d=o===void 0?Al(m,e===!0?[0,0]:v):El(m,o,v);Object.assign(t.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:u,maxHeight:r,visibility:"visible"});const{offsetWidth:h,offsetHeight:c}=t,{elWidth:g,elHeight:p}=n===!0||e===!0?{elWidth:Math.max(d.width,h),elHeight:e===!0?Math.max(d.height,c):c}:{elWidth:h,elHeight:c};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 C=Ml(g,p);let T=ks(d,C,f,a);if(o===void 0||v===void 0)qn(T,d,C,f,a);else{const{top:F,left:z}=T;qn(T,d,C,f,a);let D=!1;if(T.top!==F){D=!0;const N=2*v[1];d.center=d.top-=N,d.bottom-=N+2}if(T.left!==z){D=!0;const N=2*v[0];d.middle=d.left-=N,d.right-=N+2}D===!0&&(T=ks(d,C,f,a),qn(T,d,C,f,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!==s&&(t.scrollLeft=s)}function qn(l,j,t,v,m){const f=t.bottom,a=t.right,o=hn(),n=window.innerHeight-o,e=document.body.clientWidth;if(l.top<0||l.top+f>n)if(m.vertical==="center")l.top=j[v.vertical]>n/2?Math.max(0,n-f):0,l.maxHeight=Math.min(f,n);else if(j[v.vertical]>n/2){const r=Math.min(n,v.vertical==="center"?j.center:v.vertical===m.vertical?j.bottom:j.top);l.maxHeight=Math.min(f,r),l.top=Math.max(0,r-f)}else l.top=Math.max(0,v.vertical==="center"?j.center:v.vertical===m.vertical?j.top:j.bottom),l.maxHeight=Math.min(f,n-l.top);if(l.left<0||l.left+a>e)if(l.maxWidth=Math.min(a,e),m.horizontal==="middle")l.left=j[v.horizontal]>e/2?Math.max(0,e-a):0;else if(j[v.horizontal]>e/2){const r=Math.min(e,v.horizontal==="middle"?j.middle:v.horizontal===m.horizontal?j.right:j.left);l.maxWidth=Math.min(a,r),l.left=Math.max(0,r-l.maxWidth)}else l.left=Math.max(0,v.horizontal==="middle"?j.middle:v.horizontal===m.horizontal?j.left:j.right),l.maxWidth=Math.min(a,e-l.left)}const Ur=tt({name:"QMenu",inheritAttrs:!1,props:{...xo,...Bi,...It,...Fr,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:kn},self:{type:String,validator:kn},offset:{type:Array,validator:Ro},scrollTarget:Rn,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Ii,"click","escapeKey"],setup(l,{slots:j,emit:t,attrs:v}){let m=null,f,a,o;const n=_.getCurrentInstance(),{proxy:e}=n,{$q:r}=e,u=_.ref(null),s=_.ref(!1),i=_.computed(()=>l.persistent!==!0&&l.noRouteDismiss!==!0),d=Ot(l,r),{registerTick:h,removeTick:c}=Pi(),{registerTimeout:g}=Di(),{transitionProps:p,transitionStyle:S}=Fi(l),{localScrollTarget:C,changeScrollEvent:T,unconfigureScrollTarget:F}=So(l,W),{anchorEl:z,canShow:D}=Ri({showing:s}),{hide:N}=Oi({showing:s,canShow:D,handleShow:E,handleHide:B,hideOnRouteChange:i,processOnMount:!0}),{showPortal:L,hidePortal:U,renderPortal:q}=ji(n,u,O,"menu"),A={anchorEl:z,innerRef:u,onClickOutside(R){if(l.persistent!==!0&&s.value===!0)return N(R),(R.type==="touchstart"||R.target.classList.contains("q-dialog__backdrop"))&&xt(R),!0}},M=_.computed(()=>_n(l.anchor||(l.cover===!0?"center middle":"bottom start"),r.lang.rtl)),k=_.computed(()=>l.cover===!0?M.value:_n(l.self||"top start",r.lang.rtl)),b=_.computed(()=>(l.square===!0?" q-menu--square":"")+(d.value===!0?" q-menu--dark q-dark":"")),y=_.computed(()=>l.autoClose===!0?{onClick:H}:{}),w=_.computed(()=>s.value===!0&&l.persistent!==!0);_.watch(w,R=>{R===!0?(Ao(P),To(A)):(yn(P),Sn(A))});function x(){Vr(()=>{let R=u.value;R&&R.contains(document.activeElement)!==!0&&(R=R.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||R.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||R.querySelector("[autofocus], [data-autofocus]")||R,R.focus({preventScroll:!0}))})}function E(R){if(m=l.noRefocus===!1?document.activeElement:null,Mo(K),L(),W(),f=void 0,R!==void 0&&(l.touchPosition||l.contextMenu)){const V=Nr(R);if(V.left!==void 0){const{top:Q,left:$}=z.value.getBoundingClientRect();f={left:V.left-$,top:V.top-Q}}}a===void 0&&(a=_.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&&x()}),g(()=>{r.platform.is.ios===!0&&(o=l.autoClose,u.value.click()),Y(),L(!0),t("show",R)},l.transitionDuration)}function B(R){c(),U(),I(!0),m!==null&&(R===void 0||R.qClickOutside!==!0)&&(((R?.type.indexOf("key")===0?m.closest('[tabindex]:not([tabindex^="-"])'):void 0)||m).focus(),m=null),g(()=>{U(!0),t("hide",R)},l.transitionDuration)}function I(R){f=void 0,a!==void 0&&(a(),a=void 0),(R===!0||s.value===!0)&&(oi(K),F(),Sn(A),yn(P)),R!==!0&&(m=null)}function W(){(z.value!==null||l.scrollTarget!==void 0)&&(C.value=Bn(z.value,l.scrollTarget),T(C.value,Y))}function H(R){o!==!0?(_o(e,R),t("click",R)):o=!1}function K(R){w.value===!0&&l.noFocus!==!0&&co(u.value,R.target)!==!0&&x()}function P(R){l.noEscDismiss!==!0&&(t("escapeKey"),N(R))}function Y(){Ni({targetEl:u.value,offset:l.offset,anchorEl:z.value,anchorOrigin:M.value,selfOrigin:k.value,absoluteOffset:f,fit:l.fit,cover:l.cover,maxHeight:l.maxHeight,maxWidth:l.maxWidth})}function O(){return _.h(_.Transition,p.value,()=>s.value===!0?_.h("div",{role:"menu",...v,ref:u,tabindex:-1,class:["q-menu q-position-engine scroll"+b.value,v.class],style:[v.style,S.value],...y.value},mt(j.default)):null)}return _.onBeforeUnmount(I),Object.assign(e,{focus:x,updatePosition:Y}),q}});let zn,$r=0;const Mt=new Array(256);for(let l=0;l<256;l++)Mt[l]=(l+256).toString(16).substring(1);const Tl=(()=>{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 j=>{const t=new Uint8Array(j);return l.getRandomValues(t),t}}return j=>{const t=[];for(let v=j;v>0;v--)t.push(Math.floor(Math.random()*256));return t}})(),_s=4096;function li(){(zn===void 0||$r+16>_s)&&($r=0,zn=Tl(_s));const l=Array.prototype.slice.call(zn,$r,$r+=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 Rl(l){return l??null}function Cs(l,j){return l??(j===!0?`f_${li()}`:null)}function Bl({getValue:l,required:j=!0}={}){if(tr.value===!0){const t=l!==void 0?_.ref(Rl(l())):_.ref(null);return j===!0&&t.value===null&&_.onMounted(()=>{t.value=`f_${li()}`}),l!==void 0&&_.watch(l,v=>{t.value=Cs(v,j)}),t}return l!==void 0?_.computed(()=>Cs(l(),j)):_.ref(`f_${li()}`)}const As=/^on[A-Z]/;function Il(){const{attrs:l,vnode:j}=_.getCurrentInstance(),t={listeners:_.ref({}),attributes:_.ref({})};function v(){const m={},f={};for(const a in l)a!=="class"&&a!=="style"&&As.test(a)===!1&&(m[a]=l[a]);for(const a in j.props)As.test(a)===!0&&(f[a]=j.props[a]);t.attributes.value=m,t.listeners.value=f}return _.onBeforeUpdate(v),v(),t}const Wr="_q_l_",Bo="_q_pc_",Io="_q_fo_";function Rt(){}function Ol({validate:l,resetValidation:j,requiresQForm:t}){const v=_.inject(Io,!1);if(v!==!1){const{props:m,proxy:f}=_.getCurrentInstance();Object.assign(f,{validate:l,resetValidation:j}),_.watch(()=>m.disable,a=>{a===!0?(typeof j=="function"&&j(),v.unbindComponent(f)):v.bindComponent(f)}),_.onMounted(()=>{m.disable!==!0&&v.bindComponent(f)}),_.onBeforeUnmount(()=>{m.disable!==!0&&v.unbindComponent(f)})}else t===!0&&console.error("Parent QForm not found on useFormChild()!")}const Es=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Ms=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Ts=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,en=/^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])\)$/,tn=/^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)\)$/,Vn={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=>Es.test(l),hexaColor:l=>Ms.test(l),hexOrHexaColor:l=>Ts.test(l),rgbColor:l=>en.test(l),rgbaColor:l=>tn.test(l),rgbOrRgbaColor:l=>en.test(l)||tn.test(l),hexOrRgbColor:l=>Es.test(l)||en.test(l),hexaOrRgbaColor:l=>Ms.test(l)||tn.test(l),anyColor:l=>Ts.test(l)||en.test(l)||tn.test(l)},jl=[!0,!1,"ondemand"],Fl={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:l=>jl.includes(l)}};function Pl(l,j){const{props:t,proxy:v}=_.getCurrentInstance(),m=_.ref(!1),f=_.ref(null),a=_.ref(!1);Ol({validate:h,resetValidation:d});let o=0,n;const e=_.computed(()=>t.rules!==void 0&&t.rules!==null&&t.rules.length!==0),r=_.computed(()=>t.disable!==!0&&e.value===!0&&j.value===!1),u=_.computed(()=>t.error===!0||m.value===!0),s=_.computed(()=>typeof t.errorMessage=="string"&&t.errorMessage.length!==0?t.errorMessage:f.value);_.watch(()=>t.modelValue,()=>{a.value=!0,r.value===!0&&t.lazyRules===!1&&c()});function i(){t.lazyRules!=="ondemand"&&r.value===!0&&a.value===!0&&c()}_.watch(()=>t.reactiveRules,g=>{g===!0?n===void 0&&(n=_.watch(()=>t.rules,i,{immediate:!0,deep:!0})):n!==void 0&&(n(),n=void 0)},{immediate:!0}),_.watch(()=>t.lazyRules,i),_.watch(l,g=>{g===!0?a.value=!0:r.value===!0&&t.lazyRules!=="ondemand"&&c()});function d(){o++,j.value=!1,a.value=!1,m.value=!1,f.value=null,c.cancel()}function h(g=t.modelValue){if(t.disable===!0||e.value===!1)return!0;const p=++o,S=j.value!==!0?()=>{a.value=!0}:()=>{},C=(F,z)=>{F===!0&&S(),m.value=F,f.value=z||null,j.value=!1},T=[];for(let F=0;F<t.rules.length;F++){const z=t.rules[F];let D;if(typeof z=="function"?D=z(g,Vn):typeof z=="string"&&Vn[z]!==void 0&&(D=Vn[z](g)),D===!1||typeof D=="string")return C(!0,D),!1;D!==!0&&D!==void 0&&T.push(D)}return T.length===0?(C(!1),!0):(j.value=!0,Promise.all(T).then(F=>{if(F===void 0||Array.isArray(F)===!1||F.length===0)return p===o&&C(!1),!0;const z=F.find(D=>D===!1||typeof D=="string");return p===o&&C(z!==void 0,z),z===void 0},F=>(p===o&&(console.error(F),C(!0)),!1)))}const c=Mi(h,0);return _.onBeforeUnmount(()=>{n?.(),c.cancel()}),Object.assign(v,{resetValidation:d,validate:h}),Lt(v,"hasError",()=>u.value),{isDirtyModel:a,hasRules:e,hasError:u,errorMessage:s,validate:h,resetValidation:d}}function qr(l){return l!=null&&(""+l).length!==0}const Dl={...It,...Fl,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},In={...Dl,maxlength:[Number,String]},Li=["update:modelValue","clear","focus","blur"];function qi({requiredForAttr:l=!0,tagProp:j,changeEvent:t=!1}={}){const{props:v,proxy:m}=_.getCurrentInstance(),f=Ot(v,m.$q),a=Bl({required:l,getValue:()=>v.for});return{requiredForAttr:l,changeEvent:t,tag:j===!0?_.computed(()=>v.tag):{value:"label"},isDark:f,editable:_.computed(()=>v.disable!==!0&&v.readonly!==!0),innerLoading:_.ref(!1),focused:_.ref(!1),hasPopupOpen:!1,splitAttrs:Il(),targetUid:a,rootRef:_.ref(null),targetRef:_.ref(null),controlRef:_.ref(null)}}function zi(l){const{props:j,emit:t,slots:v,attrs:m,proxy:f}=_.getCurrentInstance(),{$q:a}=f;let o=null;l.hasValue===void 0&&(l.hasValue=_.computed(()=>qr(j.modelValue))),l.emitValue===void 0&&(l.emitValue=w=>{t("update:modelValue",w)}),l.controlEvents===void 0&&(l.controlEvents={onFocusin:N,onFocusout:L}),Object.assign(l,{clearValue:U,onControlFocusin:N,onControlFocusout:L,focus:z}),l.computedCounter===void 0&&(l.computedCounter=_.computed(()=>{if(j.counter!==!1){const w=typeof j.modelValue=="string"||typeof j.modelValue=="number"?(""+j.modelValue).length:Array.isArray(j.modelValue)===!0?j.modelValue.length:0,x=j.maxlength!==void 0?j.maxlength:j.maxValues;return w+(x!==void 0?" / "+x:"")}}));const{isDirtyModel:n,hasRules:e,hasError:r,errorMessage:u,resetValidation:s}=Pl(l.focused,l.innerLoading),i=l.floatingLabel!==void 0?_.computed(()=>j.stackLabel===!0||l.focused.value===!0||l.floatingLabel.value===!0):_.computed(()=>j.stackLabel===!0||l.focused.value===!0||l.hasValue.value===!0),d=_.computed(()=>j.bottomSlots===!0||j.hint!==void 0||e.value===!0||j.counter===!0||j.error!==null),h=_.computed(()=>j.filled===!0?"filled":j.outlined===!0?"outlined":j.borderless===!0?"borderless":j.standout?"standout":"standard"),c=_.computed(()=>`q-field row no-wrap items-start q-field--${h.value}`+(l.fieldClass!==void 0?` ${l.fieldClass.value}`:"")+(j.rounded===!0?" q-field--rounded":"")+(j.square===!0?" q-field--square":"")+(i.value===!0?" q-field--float":"")+(p.value===!0?" q-field--labeled":"")+(j.dense===!0?" q-field--dense":"")+(j.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":"")+(j.hideBottomSpace!==!0&&d.value===!0?" q-field--with-bottom":"")+(j.disable===!0?" q-field--disabled":j.readonly===!0?" q-field--readonly":"")),g=_.computed(()=>"q-field__control relative-position row no-wrap"+(j.bgColor!==void 0?` bg-${j.bgColor}`:"")+(r.value===!0?" text-negative":typeof j.standout=="string"&&j.standout.length!==0&&l.focused.value===!0?` ${j.standout}`:j.color!==void 0?` text-${j.color}`:"")),p=_.computed(()=>j.labelSlot===!0||j.label!==void 0),S=_.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(j.labelColor!==void 0&&r.value!==!0?` text-${j.labelColor}`:"")),C=_.computed(()=>({id:l.targetUid.value,editable:l.editable.value,focused:l.focused.value,floatingLabel:i.value,modelValue:j.modelValue,emitValue:l.emitValue})),T=_.computed(()=>{const w={};return l.targetUid.value&&(w.for=l.targetUid.value),j.disable===!0&&(w["aria-disabled"]="true"),w});function F(){const w=document.activeElement;let x=l.targetRef?.value;x&&(w===null||w.id!==l.targetUid.value)&&(x.hasAttribute("tabindex")===!0||(x=x.querySelector("[tabindex]")),x!==w&&x?.focus({preventScroll:!0}))}function z(){Vr(F)}function D(){pl(F);const w=document.activeElement;w!==null&&l.rootRef.value.contains(w)&&w.blur()}function N(w){o!==null&&(clearTimeout(o),o=null),l.editable.value===!0&&l.focused.value===!1&&(l.focused.value=!0,t("focus",w))}function L(w,x){o!==null&&clearTimeout(o),o=setTimeout(()=>{o=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)),x?.())})}function U(w){xt(w),a.platform.is.mobile!==!0?(l.targetRef?.value||l.rootRef.value).focus():l.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),j.type==="file"&&(l.inputRef.value.value=null),t("update:modelValue",null),l.changeEvent===!0&&t("change",null),t("clear",j.modelValue),_.nextTick(()=>{const x=n.value;s(),n.value=x})}function q(w){[13,32].includes(w.keyCode)&&U(w)}function A(){const w=[];return v.prepend!==void 0&&w.push(_.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:Bt},v.prepend())),w.push(_.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},M())),r.value===!0&&j.noErrorIcon===!1&&w.push(b("error",[_.h(St,{name:a.iconSet.field.error,color:"negative"})])),j.loading===!0||l.innerLoading.value===!0?w.push(b("inner-loading-append",v.loading!==void 0?v.loading():[_.h(uo,{color:j.color})])):j.clearable===!0&&l.hasValue.value===!0&&l.editable.value===!0&&w.push(b("inner-clearable-append",[_.h(St,{class:"q-field__focusable-action",name:j.clearIcon||a.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":a.lang.label.clear,onKeyup:q,onClick:U})])),v.append!==void 0&&w.push(_.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(b("inner-append",l.getInnerAppend())),l.getControlChild!==void 0&&w.push(l.getControlChild()),w}function M(){const w=[];return j.prefix!==void 0&&j.prefix!==null&&w.push(_.h("div",{class:"q-field__prefix no-pointer-events row items-center"},j.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(_.h("div",{ref:l.targetRef,class:"q-field__native row",tabindex:-1,...l.splitAttrs.attributes.value,"data-autofocus":j.autofocus===!0||void 0},v.control(C.value))),p.value===!0&&w.push(_.h("div",{class:S.value},mt(v.label,j.label))),j.suffix!==void 0&&j.suffix!==null&&w.push(_.h("div",{class:"q-field__suffix no-pointer-events row items-center"},j.suffix)),w.concat(mt(v.default))}function k(){let w,x;r.value===!0?u.value!==null?(w=[_.h("div",{role:"alert"},u.value)],x=`q--slot-error-${u.value}`):(w=mt(v.error),x="q--slot-error"):(j.hideHint!==!0||l.focused.value===!0)&&(j.hint!==void 0?(w=[_.h("div",j.hint)],x=`q--slot-hint-${j.hint}`):(w=mt(v.hint),x="q--slot-hint"));const E=j.counter===!0||v.counter!==void 0;if(j.hideBottomSpace===!0&&E===!1&&w===void 0)return;const B=_.h("div",{key:x,class:"q-field__messages col"},w);return _.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(j.hideBottomSpace!==!0?"animated":"stale"),onClick:Bt},[j.hideBottomSpace===!0?B:_.h(_.Transition,{name:"q-transition--field-message"},()=>B),E===!0?_.h("div",{class:"q-field__counter"},v.counter!==void 0?v.counter():l.computedCounter.value):null])}function b(w,x){return x===null?null:_.h("div",{key:w,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},x)}let y=!1;return _.onDeactivated(()=>{y=!0}),_.onActivated(()=>{y===!0&&j.autofocus===!0&&f.focus()}),j.autofocus===!0&&_.onMounted(()=>{f.focus()}),_.onBeforeUnmount(()=>{o!==null&&clearTimeout(o)}),Object.assign(f,{focus:z,blur:D}),function(){const x=l.getControl===void 0&&v.control===void 0?{...l.splitAttrs.attributes.value,"data-autofocus":j.autofocus===!0||void 0,...T.value}:T.value;return _.h(l.tag.value,{ref:l.rootRef,class:[c.value,m.class],style:m.style,...x},[v.before!==void 0?_.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:Bt},v.before()):null,_.h("div",{class:"q-field__inner relative-position col self-stretch"},[_.h("div",{ref:l.controlRef,class:g.value,tabindex:-1,...l.controlEvents},A()),d.value===!0?k():null]),v.after!==void 0?_.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:Bt},v.after()):null])}}const Nl=tt({name:"QField",inheritAttrs:!1,props:{...In,tag:{type:String,default:"label"}},emits:Li,setup(){return zi(qi({tagProp:!0}))}}),Ll={xs:8,sm:10,md:14,lg:20,xl:24},ql=tt({name:"QChip",props:{...It,...Cr,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:j,emit:t}){const{proxy:{$q:v}}=_.getCurrentInstance(),m=Ot(l,v),f=Ar(l,Ll),a=_.computed(()=>l.selected===!0||l.icon!==void 0),o=_.computed(()=>l.selected===!0?l.iconSelected||v.iconSet.chip.selected:l.icon),n=_.computed(()=>l.iconRemove||v.iconSet.chip.remove),e=_.computed(()=>l.disable===!1&&(l.clickable===!0||l.selected!==null)),r=_.computed(()=>{const c=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}`:"")+(c?` text-${c} 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=_.computed(()=>{const c=l.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:l.tabindex||0},g={...c,role:"button","aria-hidden":"false","aria-label":l.removeAriaLabel||v.lang.label.remove};return{chip:c,remove:g}});function s(c){c.keyCode===13&&i(c)}function i(c){l.disable||(t("update:selected",!l.selected),t("click",c))}function d(c){(c.keyCode===void 0||c.keyCode===13)&&(xt(c),l.disable===!1&&(t("update:modelValue",!1),t("remove")))}function h(){const c=[];e.value===!0&&c.push(_.h("div",{class:"q-focus-helper"})),a.value===!0&&c.push(_.h(St,{class:"q-chip__icon q-chip__icon--left",name:o.value}));const g=l.label!==void 0?[_.h("div",{class:"ellipsis"},[l.label])]:void 0;return c.push(_.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},to(j.default,g))),l.iconRight&&c.push(_.h(St,{class:"q-chip__icon q-chip__icon--right",name:l.iconRight})),l.removable===!0&&c.push(_.h(St,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:n.value,...u.value.remove,onClick:d,onKeyup:d})),c}return()=>{if(l.modelValue===!1)return;const c={class:r.value,style:f.value};return e.value===!0&&Object.assign(c,u.value.chip,{onClick:i,onKeyup:s}),da("div",c,h(),"ripple",l.ripple!==!1&&l.disable!==!0,()=>[[fo,l.ripple]])}}}),Pr=tt({name:"QItem",props:{...It,...ao,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:j,emit:t}){const{proxy:{$q:v}}=_.getCurrentInstance(),m=Ot(l,v),{hasLink:f,linkAttrs:a,linkClass:o,linkTag:n,navigateOnClick:e}=xi(),r=_.ref(null),u=_.ref(null),s=_.computed(()=>l.clickable===!0||f.value===!0||l.tag==="label"),i=_.computed(()=>l.disable!==!0&&s.value===!0),d=_.computed(()=>"q-item q-item-type row no-wrap"+(l.dense===!0?" q-item--dense":"")+(m.value===!0?" q-item--dark":"")+(f.value===!0&&l.active===null?o.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=_.computed(()=>l.insetLevel===void 0?null:{["padding"+(v.lang.rtl===!0?"Right":"Left")]:16+l.insetLevel*56+"px"});function c(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 g(S){if(i.value===!0&&er(S,[13,32])===!0){xt(S),S.qKeyEvent=!0;const C=new MouseEvent("click",S);C.qKeyEvent=!0,r.value.dispatchEvent(C)}t("keyup",S)}function p(){const S=vi(j.default,[]);return i.value===!0&&S.unshift(_.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:c,onKeyup:g};return i.value===!0?(S.tabindex=l.tabindex||"0",Object.assign(S,a.value)):s.value===!0&&(S["aria-disabled"]="true"),_.h(n.value,S,p())}}}),Dr=tt({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(l,{slots:j}){const t=_.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()=>_.h("div",{class:t.value},mt(j.default))}}),ui=tt({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(l,{slots:j}){const t=_.computed(()=>parseInt(l.lines,10)),v=_.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=_.computed(()=>l.lines!==void 0&&t.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":t.value}:null);return()=>_.h("div",{style:m.value,class:v.value},mt(j.default))}});function zl(l,j,t){function v(){}return _.onBeforeUnmount(()=>{l.value===!0&&void 0}),{removeFromHistory:v,addToHistory(){}}}let Rr=0,Un,Wn,Or,Hn=!1,Rs,Bs,Is,ir=null;function Vl(l){Ul(l)&&xt(l)}function Ul(l){if(l.target===document.body||l.target.classList.contains("q-layout__backdrop"))return!0;const j=Oa(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 f=0;f<j.length;f++){const a=j[f];if(ol(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 Os(l){l.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function rn(l){Hn!==!0&&(Hn=!0,requestAnimationFrame(()=>{Hn=!1;const{height:j}=l.target,{clientHeight:t,scrollTop:v}=document.scrollingElement;(Or===void 0||j!==window.innerHeight)&&(Or=t-j,document.scrollingElement.scrollTop=v),v>Or&&(document.scrollingElement.scrollTop-=Math.ceil((v-Or)/8))}))}function js(l){const j=document.body,t=window.visualViewport!==void 0;if(l==="add"){const{overflowY:v,overflowX:m}=window.getComputedStyle(j);Un=Ai(window),Wn=Ci(window),Rs=j.style.left,Bs=j.style.top,Is=window.location.href,j.style.left=`-${Un}px`,j.style.top=`-${Wn}px`,m!=="hidden"&&(m==="scroll"||j.scrollWidth>window.innerWidth)&&j.classList.add("q-body--force-scrollbar-x"),v!=="hidden"&&(v==="scroll"||j.scrollHeight>window.innerHeight)&&j.classList.add("q-body--force-scrollbar-y"),j.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,Et.is.ios===!0&&(t===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",rn,_t.passiveCapture),window.visualViewport.addEventListener("scroll",rn,_t.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Os,_t.passiveCapture))}Et.is.desktop===!0&&Et.is.mac===!0&&window[`${l}EventListener`]("wheel",Vl,_t.notPassive),l==="remove"&&(Et.is.ios===!0&&(t===!0?(window.visualViewport.removeEventListener("resize",rn,_t.passiveCapture),window.visualViewport.removeEventListener("scroll",rn,_t.passiveCapture)):window.removeEventListener("scroll",Os,_t.passiveCapture)),j.classList.remove("q-body--prevent-scroll"),j.classList.remove("q-body--force-scrollbar-x"),j.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,j.style.left=Rs,j.style.top=Bs,window.location.href===Is&&window.scrollTo(Un,Wn),Or=void 0)}function Wl(l){let j="add";if(l===!0){if(Rr++,ir!==null){clearTimeout(ir),ir=null;return}if(Rr>1)return}else{if(Rr===0||(Rr--,Rr>0))return;if(j="remove",Et.is.ios===!0&&Et.is.nativeMobile===!0){ir!==null&&clearTimeout(ir),ir=setTimeout(()=>{js(j),ir=null},100);return}}js(j)}function Hl(){let l;return{preventBodyScroll(j){j!==l&&(l!==void 0||j===!0)&&(l=j,Wl(j))}}}let nn=0;const Yl={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"},Fs={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},Vi=tt({name:"QDialog",inheritAttrs:!1,props:{...Bi,...Fr,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:[...Ii,"shake","click","escapeKey"],setup(l,{slots:j,emit:t,attrs:v}){const m=_.getCurrentInstance(),f=_.ref(null),a=_.ref(!1),o=_.ref(!1);let n=null,e=null,r,u;const s=_.computed(()=>l.persistent!==!0&&l.noRouteDismiss!==!0&&l.seamless!==!0),{preventBodyScroll:i}=Hl(),{registerTimeout:d}=Di(),{registerTick:h,removeTick:c}=Pi(),{transitionProps:g,transitionStyle:p}=Fi(l,()=>Fs[l.position][0],()=>Fs[l.position][1]),S=_.computed(()=>p.value+(l.backdropFilter!==void 0?`;backdrop-filter:${l.backdropFilter};-webkit-backdrop-filter:${l.backdropFilter}`:"")),{showPortal:C,hidePortal:T,portalIsAccessible:F,renderPortal:z}=ji(m,f,W,"dialog"),{hide:D}=Oi({showing:a,hideOnRouteChange:s,handleShow:A,handleHide:M,processOnMount:!0});zl(a);const N=_.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${l.maximized===!0?"maximized":"minimized"} q-dialog__inner--${l.position} ${Yl[l.position]}`+(o.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":"")),L=_.computed(()=>a.value===!0&&l.seamless!==!0),U=_.computed(()=>l.autoClose===!0?{onClick:E}:{}),q=_.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${L.value===!0?"modal":"seamless"}`,v.class]);_.watch(()=>l.maximized,H=>{a.value===!0&&x(H)}),_.watch(L,H=>{i(H),H===!0?(Mo(I),Ao(y)):(oi(I),yn(y))});function A(H){e=l.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,x(l.maximized),C(),o.value=!0,l.noFocus!==!0?(document.activeElement?.blur(),h(k)):c(),d(()=>{if(m.proxy.$q.platform.is.ios===!0){if(l.seamless!==!0&&document.activeElement){const{top:K,bottom:P}=document.activeElement.getBoundingClientRect(),{innerHeight:Y}=window,O=window.visualViewport!==void 0?window.visualViewport.height:Y;K>0&&P>O/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-O,P>=Y?1/0:Math.ceil(document.scrollingElement.scrollTop+P-O/2))),document.activeElement.scrollIntoView()}u=!0,f.value.click(),u=!1}C(!0),o.value=!1,t("show",H)},l.transitionDuration)}function M(H){c(),w(!0),o.value=!0,T(),e!==null&&(((H?.type.indexOf("key")===0?e.closest('[tabindex]:not([tabindex^="-"])'):void 0)||e).focus(),e=null),d(()=>{T(!0),o.value=!1,t("hide",H)},l.transitionDuration)}function k(H){Vr(()=>{let K=f.value;if(K!==null){if(H!==void 0){const P=K.querySelector(H);if(P!==null){P.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 b(H){H&&typeof H.focus=="function"?H.focus({preventScroll:!0}):k(),t("shake");const K=f.value;K!==null&&(K.classList.remove("q-animate--scale"),K.classList.add("q-animate--scale"),n!==null&&clearTimeout(n),n=setTimeout(()=>{n=null,f.value!==null&&(K.classList.remove("q-animate--scale"),k())},170))}function y(){l.seamless!==!0&&(l.persistent===!0||l.noEscDismiss===!0?l.maximized!==!0&&l.noShake!==!0&&b():(t("escapeKey"),D()))}function w(H){n!==null&&(clearTimeout(n),n=null),(H===!0||a.value===!0)&&(x(!1),l.seamless!==!0&&(i(!1),oi(I),yn(y))),H!==!0&&(e=null)}function x(H){H===!0?r!==!0&&(nn<1&&document.body.classList.add("q-body--dialog"),nn++,r=!0):r===!0&&(nn<2&&document.body.classList.remove("q-body--dialog"),nn--,r=!1)}function E(H){u!==!0&&(D(H),t("click",H))}function B(H){l.persistent!==!0&&l.noBackdropDismiss!==!0?D(H):l.noShake!==!0&&b()}function I(H){l.allowFocusOutside!==!0&&F.value===!0&&co(f.value,H.target)!==!0&&k('[tabindex]:not([tabindex="-1"])')}Object.assign(m.proxy,{focus:k,shake:b,__updateRefocusTarget(H){e=H||null}}),_.onBeforeUnmount(w);function W(){return _.h("div",{role:"dialog","aria-modal":L.value===!0?"true":"false",...v,class:q.value},[_.h(_.Transition,{name:"q-transition--fade",appear:!0},()=>L.value===!0?_.h("div",{class:"q-dialog__backdrop fixed-full",style:S.value,"aria-hidden":"true",tabindex:-1,onClick:B}):null),_.h(_.Transition,g.value,()=>a.value===!0?_.h("div",{ref:f,class:N.value,style:p.value,tabindex:-1,...U.value},mt(j.default)):null)])}return z}});let Cn=!1;{const l=document.createElement("div");l.setAttribute("dir","rtl"),Object.assign(l.style,{width:"1px",height:"1px",overflow:"auto"});const j=document.createElement("div");Object.assign(j.style,{width:"1000px",height:"1px"}),document.body.appendChild(l),l.appendChild(j),l.scrollLeft=-1e3,Cn=l.scrollLeft>=0,l.remove()}const zt=1e3,Ql=["start","center","end","start-force","center-force","end-force"],Oo=Array.prototype.filter,Kl=window.getComputedStyle(document.body).overflowAnchor===void 0?Mn:function(l,j){l!==null&&(l._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(l._qOverflowAnimationFrame),l._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(l===null)return;l._qOverflowAnimationFrame=void 0;const t=l.children||[];Oo.call(t,m=>m.dataset&&m.dataset.qVsAnchor!==void 0).forEach(m=>{delete m.dataset.qVsAnchor});const v=t[j];v?.dataset&&(v.dataset.qVsAnchor="")}))};function Sr(l,j){return l+j}function Yn(l,j,t,v,m,f,a,o){const n=l===window?document.scrollingElement||document.documentElement:l,e=m===!0?"offsetWidth":"offsetHeight",r={scrollStart:0,scrollViewSize:-a-o,scrollMaxSize:0,offsetStart:-a,offsetEnd:-o};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,f===!0&&(r.scrollStart=(Cn===!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(j!==l){const u=n.getBoundingClientRect(),s=j.getBoundingClientRect();m===!0?(r.offsetStart+=s.left-u.left,r.offsetEnd-=s.width):(r.offsetStart+=s.top-u.top,r.offsetEnd-=s.height),l!==window&&(r.offsetStart+=r.scrollStart),r.offsetEnd+=r.scrollMaxSize-r.offsetStart}return r}function Ps(l,j,t,v){j==="end"&&(j=(l===window?document.body:l)[t===!0?"scrollWidth":"scrollHeight"]),l===window?t===!0?(v===!0&&(j=(Cn===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-j),window.scrollTo(j,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,j):t===!0?(v===!0&&(j=(Cn===!0?l.scrollWidth-l.offsetWidth:0)-j),l.scrollLeft=j):l.scrollTop=j}function Br(l,j,t,v){if(t>=v)return 0;const m=j.length,f=Math.floor(t/zt),a=Math.floor((v-1)/zt)+1;let o=l.slice(f,a).reduce(Sr,0);return t%zt!==0&&(o-=j.slice(f*zt,t).reduce(Sr,0)),v%zt!==0&&v!==m&&(o-=j.slice(v,a*zt).reduce(Sr,0)),o}const jo={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]},Fo=Object.keys(jo),ci={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...jo};function Po({virtualScrollLength:l,getVirtualScrollTarget:j,getVirtualScrollEl:t,virtualScrollItemSizeComputed:v}){const m=_.getCurrentInstance(),{props:f,emit:a,proxy:o}=m,{$q:n}=o;let e,r,u,s=[],i;const d=_.ref(0),h=_.ref(0),c=_.ref({}),g=_.ref(null),p=_.ref(null),S=_.ref(null),C=_.ref({from:0,to:0}),T=_.computed(()=>f.tableColspan!==void 0?f.tableColspan:100);v===void 0&&(v=_.computed(()=>f.virtualScrollItemSize));const F=_.computed(()=>v.value+";"+f.virtualScrollHorizontal),z=_.computed(()=>F.value+";"+f.virtualScrollSliceRatioBefore+";"+f.virtualScrollSliceRatioAfter);_.watch(z,()=>{b()}),_.watch(F,D);function D(){k(r,!0)}function N(B){k(B===void 0?r:B)}function L(B,I){const W=j();if(W==null||W.nodeType===8)return;const H=Yn(W,t(),g.value,p.value,f.virtualScrollHorizontal,n.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd);u!==H.scrollViewSize&&b(H.scrollViewSize),q(W,H,Math.min(l.value-1,Math.max(0,parseInt(B,10)||0)),0,Ql.indexOf(I)!==-1?I:r!==-1&&B>r?"end":"start")}function U(){const B=j();if(B==null||B.nodeType===8)return;const I=Yn(B,t(),g.value,p.value,f.virtualScrollHorizontal,n.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd),W=l.value-1,H=I.scrollMaxSize-I.offsetStart-I.offsetEnd-h.value;if(e===I.scrollStart)return;if(I.scrollMaxSize<=0){q(B,I,0,0);return}u!==I.scrollViewSize&&b(I.scrollViewSize),A(C.value.from);const K=Math.floor(I.scrollMaxSize-Math.max(I.scrollViewSize,I.offsetEnd)-Math.min(i[W],I.scrollViewSize/2));if(K>0&&Math.ceil(I.scrollStart)>=K){q(B,I,W,I.scrollMaxSize-I.offsetEnd-s.reduce(Sr,0));return}let P=0,Y=I.scrollStart-I.offsetStart,O=Y;if(Y<=H&&Y+I.scrollViewSize>=d.value)Y-=d.value,P=C.value.from,O=Y;else for(let R=0;Y>=s[R]&&P<W;R++)Y-=s[R],P+=zt;for(;Y>0&&P<W;)Y-=i[P],Y>-I.scrollViewSize?(P++,O=Y):O=i[P]+Y;q(B,I,P,O)}function q(B,I,W,H,K){const P=typeof K=="string"&&K.indexOf("-force")!==-1,Y=P===!0?K.replace("-force",""):K,O=Y!==void 0?Y:"start";let R=Math.max(0,W-c.value[O]),V=R+c.value.total;V>l.value&&(V=l.value,R=Math.max(0,V-c.value.total)),e=I.scrollStart;const Q=R!==C.value.from||V!==C.value.to;if(Q===!1&&Y===void 0){w(W);return}const{activeElement:$}=document,G=S.value;Q===!0&&G!==null&&G!==$&&G.contains($)===!0&&(G.addEventListener("focusout",M),setTimeout(()=>{G?.removeEventListener("focusout",M)})),Kl(G,W-R);const ee=Y!==void 0?i.slice(R,W).reduce(Sr,0):0;if(Q===!0){const ae=V>=C.value.from&&R<=C.value.to?C.value.to:V;C.value={from:R,to:ae},d.value=Br(s,i,0,R),h.value=Br(s,i,V,l.value),requestAnimationFrame(()=>{C.value.to!==V&&e===I.scrollStart&&(C.value={from:C.value.from,to:V},h.value=Br(s,i,V,l.value))})}requestAnimationFrame(()=>{if(e!==I.scrollStart)return;Q===!0&&A(R);const ae=i.slice(R,W).reduce(Sr,0),se=ae+I.offsetStart+d.value,J=se+i[W];let ne=se+H;if(Y!==void 0){const ie=ae-ee,fe=I.scrollStart+ie;ne=P!==!0&&fe<se&&J<fe+I.scrollViewSize?fe:Y==="end"?J-I.scrollViewSize:se-(Y==="start"?0:Math.round((I.scrollViewSize-i[W])/2))}e=ne,Ps(B,ne,f.virtualScrollHorizontal,n.lang.rtl),w(W)})}function A(B){const I=S.value;if(I){const W=Oo.call(I.children,R=>R.classList&&R.classList.contains("q-virtual-scroll--skip")===!1),H=W.length,K=f.virtualScrollHorizontal===!0?R=>R.getBoundingClientRect().width:R=>R.offsetHeight;let P=B,Y,O;for(let R=0;R<H;){for(Y=K(W[R]),R++;R<H&&W[R].classList.contains("q-virtual-scroll--with-prev")===!0;)Y+=K(W[R]),R++;O=Y-i[P],O!==0&&(i[P]+=O,s[Math.floor(P/zt)]+=O),P++}}}function M(){S.value?.focus()}function k(B,I){const W=1*v.value;(I===!0||Array.isArray(i)===!1)&&(i=[]);const H=i.length;i.length=l.value;for(let P=l.value-1;P>=H;P--)i[P]=W;const K=Math.floor((l.value-1)/zt);s=[];for(let P=0;P<=K;P++){let Y=0;const O=Math.min((P+1)*zt,l.value);for(let R=P*zt;R<O;R++)Y+=i[R];s.push(Y)}r=-1,e=void 0,d.value=Br(s,i,0,C.value.from),h.value=Br(s,i,C.value.to,l.value),B>=0?(A(C.value.from),_.nextTick(()=>{L(B)})):x()}function b(B){if(B===void 0&&typeof window<"u"){const Y=j();Y!=null&&Y.nodeType!==8&&(B=Yn(Y,t(),g.value,p.value,f.virtualScrollHorizontal,n.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd).scrollViewSize)}u=B;const I=parseFloat(f.virtualScrollSliceRatioBefore)||0,W=parseFloat(f.virtualScrollSliceRatioAfter)||0,H=1+I+W,K=B===void 0||B<=0?1:Math.ceil(B/v.value),P=Math.max(1,K,Math.ceil((f.virtualScrollSliceSize>0?f.virtualScrollSliceSize:10)/H));c.value={total:Math.ceil(P*H),start:Math.ceil(P*I),center:Math.ceil(P*(.5+I)),end:Math.ceil(P*(1+I)),view:K}}function y(B,I){const W=f.virtualScrollHorizontal===!0?"width":"height",H={["--q-virtual-scroll-item-"+W]:v.value+"px"};return[B==="tbody"?_.h(B,{class:"q-virtual-scroll__padding",key:"before",ref:g},[_.h("tr",[_.h("td",{style:{[W]:`${d.value}px`,...H},colspan:T.value})])]):_.h(B,{class:"q-virtual-scroll__padding",key:"before",ref:g,style:{[W]:`${d.value}px`,...H}}),_.h(B,{class:"q-virtual-scroll__content",key:"content",ref:S,tabindex:-1},I.flat()),B==="tbody"?_.h(B,{class:"q-virtual-scroll__padding",key:"after",ref:p},[_.h("tr",[_.h("td",{style:{[W]:`${h.value}px`,...H},colspan:T.value})])]):_.h(B,{class:"q-virtual-scroll__padding",key:"after",ref:p,style:{[W]:`${h.value}px`,...H}})]}function w(B){r!==B&&(f.onVirtualScroll!==void 0&&a("virtualScroll",{index:B,from:C.value.from,to:C.value.to-1,direction:B<r?"decrease":"increase",ref:o}),r=B)}b();const x=Mi(U,n.platform.is.ios===!0?120:35);_.onBeforeMount(()=>{b()});let E=!1;return _.onDeactivated(()=>{E=!0}),_.onActivated(()=>{if(E!==!0)return;const B=j();e!==void 0&&B!==void 0&&B!==null&&B.nodeType!==8?Ps(B,e,f.virtualScrollHorizontal,n.lang.rtl):L(r)}),_.onBeforeUnmount(()=>{x.cancel()}),Object.assign(o,{scrollTo:L,reset:D,refresh:N}),{virtualScrollSliceRange:C,virtualScrollSliceSizeComputed:c,setVirtualScrollSize:b,onVirtualScrollEvt:x,localResetVirtualScroll:k,padVirtualScroll:y,scrollTo:L,reset:D,refresh:N}}const Xl=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,Gl=/[\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,Jl=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,Zl=/[a-z0-9_ -]$/i;function Do(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?Zl.test(t.data)===!1:Xl.test(t.data)===!0||Gl.test(t.data)===!0||Jl.test(t.data)===!0)===!0&&(t.target.qComposing=!0)}}function Zt(l,j){if(l===j)return!0;if(l!==null&&j!==null&&typeof l=="object"&&typeof j=="object"){if(l.constructor!==j.constructor)return!1;let t,v;if(l.constructor===Array){if(t=l.length,t!==j.length)return!1;for(v=t;v--!==0;)if(Zt(l[v],j[v])!==!0)return!1;return!0}if(l.constructor===Map){if(l.size!==j.size)return!1;let f=l.entries();for(v=f.next();v.done!==!0;){if(j.has(v.value[0])!==!0)return!1;v=f.next()}for(f=l.entries(),v=f.next();v.done!==!0;){if(Zt(v.value[1],j.get(v.value[0]))!==!0)return!1;v=f.next()}return!0}if(l.constructor===Set){if(l.size!==j.size)return!1;const f=l.entries();for(v=f.next();v.done!==!0;){if(j.has(v.value[0])!==!0)return!1;v=f.next()}return!0}if(l.buffer!=null&&l.buffer.constructor===ArrayBuffer){if(t=l.length,t!==j.length)return!1;for(v=t;v--!==0;)if(l[v]!==j[v])return!1;return!0}if(l.constructor===RegExp)return l.source===j.source&&l.flags===j.flags;if(l.valueOf!==Object.prototype.valueOf)return l.valueOf()===j.valueOf();if(l.toString!==Object.prototype.toString)return l.toString()===j.toString();const m=Object.keys(l).filter(f=>l[f]!==void 0);if(t=m.length,t!==Object.keys(j).filter(f=>j[f]!==void 0).length)return!1;for(v=t;v--!==0;){const f=m[v];if(Zt(l[f],j[f])!==!0)return!1}return!0}return l!==l&&j!==j}function No(l){return l!==null&&typeof l=="object"&&Array.isArray(l)!==!0}function An(l){return Object.prototype.toString.call(l)==="[object Date]"}function fi(l){return typeof l=="number"&&isFinite(l)}const Ds=l=>["add","add-unique","toggle"].includes(l),$l=".*+?^${}()|[]\\",eu=Object.keys(In);function Qn(l,j){if(typeof l=="function")return l;const t=l!==void 0?l:j;return v=>v!==null&&typeof v=="object"&&t in v?v[t]:v}const Ui=tt({name:"QSelect",inheritAttrs:!1,props:{...ci,...Tn,...In,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:Ds},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:ci.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...Li,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(l,{slots:j,emit:t}){const{proxy:v}=_.getCurrentInstance(),{$q:m}=v,f=_.ref(!1),a=_.ref(!1),o=_.ref(-1),n=_.ref(""),e=_.ref(!1),r=_.ref(!1);let u=null,s=null,i,d,h,c=null,g,p,S,C;const T=_.ref(null),F=_.ref(null),z=_.ref(null),D=_.ref(null),N=_.ref(null),L=po(l),U=Do(he),q=_.computed(()=>Array.isArray(l.options)?l.options.length:0),A=_.computed(()=>l.virtualScrollItemSize===void 0?l.optionsDense===!0?24:48:l.virtualScrollItemSize),{virtualScrollSliceRange:M,virtualScrollSliceSizeComputed:k,localResetVirtualScroll:b,padVirtualScroll:y,onVirtualScrollEvt:w,scrollTo:x,setVirtualScrollSize:E}=Po({virtualScrollLength:q,getVirtualScrollTarget:nt,getVirtualScrollEl:He,virtualScrollItemSizeComputed:A}),B=qi(),I=_.computed(()=>{const oe=l.mapOptions===!0&&l.multiple!==!0,Fe=l.modelValue!==void 0&&(l.modelValue!==null||oe===!0)?l.multiple===!0&&Array.isArray(l.modelValue)?l.modelValue:[l.modelValue]:[];if(l.mapOptions===!0&&Array.isArray(l.options)===!0){const Z=l.mapOptions===!0&&i!==void 0?i:[],ue=Fe.map(ve=>je(ve,Z));return l.modelValue===null&&oe===!0?ue.filter(ve=>ve!==null):ue}return Fe}),W=_.computed(()=>{const oe={};return eu.forEach(Fe=>{const Z=l[Fe];Z!==void 0&&(oe[Fe]=Z)}),oe}),H=_.computed(()=>l.optionsDark===null?B.isDark.value:l.optionsDark),K=_.computed(()=>qr(I.value)),P=_.computed(()=>{let oe="q-field__input q-placeholder col";return l.hideSelected===!0||I.value.length===0?[oe,l.inputClass]:(oe+=" q-field__input--padding",l.inputClass===void 0?oe:[oe,l.inputClass])}),Y=_.computed(()=>(l.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(l.popupContentClass?" "+l.popupContentClass:"")),O=_.computed(()=>q.value===0),R=_.computed(()=>I.value.map(oe=>de.value(oe)).join(", ")),V=_.computed(()=>l.displayValue!==void 0?l.displayValue:R.value),Q=_.computed(()=>l.optionsHtml===!0?()=>!0:oe=>oe?.html===!0),$=_.computed(()=>l.displayValueHtml===!0||l.displayValue===void 0&&(l.optionsHtml===!0||I.value.some(Q.value))),G=_.computed(()=>B.focused.value===!0?l.tabindex:-1),ee=_.computed(()=>{const oe={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":f.value===!0?"true":"false","aria-controls":`${B.targetUid.value}_lb`};return o.value>=0&&(oe["aria-activedescendant"]=`${B.targetUid.value}_${o.value}`),oe}),ae=_.computed(()=>({id:`${B.targetUid.value}_lb`,role:"listbox","aria-multiselectable":l.multiple===!0?"true":"false"})),se=_.computed(()=>I.value.map((oe,Fe)=>({index:Fe,opt:oe,html:Q.value(oe),selected:!0,removeAtIndex:Me,toggleOption:qe,tabindex:G.value}))),J=_.computed(()=>{if(q.value===0)return[];const{from:oe,to:Fe}=M.value;return l.options.slice(oe,Fe).map((Z,ue)=>{const ve=me.value(Z)===!0,ye=ke(Z)===!0,De=oe+ue,Se={clickable:!0,active:ye,activeClass:fe.value,manualFocus:!0,focused:!1,disable:ve,tabindex:-1,dense:l.optionsDense,dark:H.value,role:"option","aria-selected":ye===!0?"true":"false",id:`${B.targetUid.value}_${De}`,onClick:()=>{qe(Z)}};return ve!==!0&&(o.value===De&&(Se.focused=!0),m.platform.is.desktop===!0&&(Se.onMousemove=()=>{f.value===!0&&Ne(De)})),{index:De,opt:Z,html:Q.value(Z),label:de.value(Z),selected:Se.active,focused:Se.focused,toggleOption:qe,setOptionIndex:Ne,itemProps:Se}})}),ne=_.computed(()=>l.dropdownIcon!==void 0?l.dropdownIcon:m.iconSet.arrow.dropdown),ie=_.computed(()=>l.optionsCover===!1&&l.outlined!==!0&&l.standout!==!0&&l.borderless!==!0&&l.rounded!==!0),fe=_.computed(()=>l.optionsSelectedClass!==void 0?l.optionsSelectedClass:l.color!==void 0?`text-${l.color}`:""),ce=_.computed(()=>Qn(l.optionValue,"value")),de=_.computed(()=>Qn(l.optionLabel,"label")),me=_.computed(()=>Qn(l.optionDisable,"disable")),be=_.computed(()=>I.value.map(ce.value)),xe=_.computed(()=>{const oe={onInput:he,onChange:U,onKeydown:$e,onKeyup:Le,onKeypress:Ge,onFocus:Pe,onClick(Fe){d===!0&&Ft(Fe)}};return oe.onCompositionstart=oe.onCompositionupdate=oe.onCompositionend=U,oe});_.watch(I,oe=>{i=oe,l.useInput===!0&&l.fillInput===!0&&l.multiple!==!0&&B.innerLoading.value!==!0&&(a.value!==!0&&f.value!==!0||K.value!==!0)&&(h!==!0&&Ve(),(a.value===!0||f.value===!0)&&Oe(""))},{immediate:!0}),_.watch(()=>l.fillInput,Ve),_.watch(f,Je),_.watch(q,Ze);function Ie(oe){return l.emitValue===!0?ce.value(oe):oe}function Ee(oe){if(oe!==-1&&oe<I.value.length)if(l.multiple===!0){const Fe=l.modelValue.slice();t("remove",{index:oe,value:Fe.splice(oe,1)[0]}),t("update:modelValue",Fe)}else t("update:modelValue",null)}function Me(oe){Ee(oe),B.focus()}function We(oe,Fe){const Z=Ie(oe);if(l.multiple!==!0){l.fillInput===!0&&Te(de.value(oe),!0,!0),t("update:modelValue",Z);return}if(I.value.length===0){t("add",{index:0,value:Z}),t("update:modelValue",l.multiple===!0?[Z]:Z);return}if(Fe===!0&&ke(oe)===!0||l.maxValues!==void 0&&l.modelValue.length>=l.maxValues)return;const ue=l.modelValue.slice();t("add",{index:ue.length,value:Z}),ue.push(Z),t("update:modelValue",ue)}function qe(oe,Fe){if(B.editable.value!==!0||oe===void 0||me.value(oe)===!0)return;const Z=ce.value(oe);if(l.multiple!==!0){Fe!==!0&&(Te(l.fillInput===!0?de.value(oe):"",!0,!0),Re()),F.value?.focus(),(I.value.length===0||Zt(ce.value(I.value[0]),Z)!==!0)&&t("update:modelValue",l.emitValue===!0?Z:oe);return}if((d!==!0||e.value===!0)&&B.focus(),Pe(),I.value.length===0){const ye=l.emitValue===!0?Z:oe;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=>Zt(ye,Z));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?Z:oe;t("add",{index:ue.length,value:ye}),ue.push(ye)}t("update:modelValue",ue)}function Ne(oe){if(m.platform.is.desktop!==!0)return;const Fe=oe!==-1&&oe<q.value?oe:-1;o.value!==Fe&&(o.value=Fe)}function ze(oe=1,Fe){if(f.value===!0){let Z=o.value;do Z=ms(Z+oe,-1,q.value-1);while(Z!==-1&&Z!==o.value&&me.value(l.options[Z])===!0);o.value!==Z&&(Ne(Z),x(Z),Fe!==!0&&l.useInput===!0&&l.fillInput===!0&&we(Z>=0?de.value(l.options[Z]):g,!0))}}function je(oe,Fe){const Z=ue=>Zt(ce.value(ue),oe);return l.options.find(Z)||Fe.find(Z)||oe}function ke(oe){const Fe=ce.value(oe);return be.value.find(Z=>Zt(Z,Fe))!==void 0}function Pe(oe){l.useInput===!0&&F.value!==null&&(oe===void 0||F.value===oe.target&&oe.target.value===R.value)&&F.value.select()}function Ue(oe){er(oe,27)===!0&&f.value===!0&&(Ft(oe),Re(),Ve()),t("keyup",oe)}function Le(oe){const{value:Fe}=oe.target;if(oe.keyCode!==void 0){Ue(oe);return}if(oe.target.value="",u!==null&&(clearTimeout(u),u=null),s!==null&&(clearTimeout(s),s=null),Ve(),typeof Fe=="string"&&Fe.length!==0){const Z=Fe.toLocaleLowerCase(),ue=ye=>{const De=l.options.find(Se=>String(ye.value(Se)).toLocaleLowerCase()===Z);return De===void 0?!1:(I.value.indexOf(De)===-1?qe(De):Re(),!0)},ve=ye=>{ue(ce)!==!0&&ye!==!0&&ue(de)!==!0&&Oe(Fe,!0,()=>ve(!0))};ve()}else B.clearValue(oe)}function Ge(oe){t("keypress",oe)}function $e(oe){if(t("keydown",oe),_i(oe)===!0)return;const Fe=n.value.length!==0&&(l.newValueMode!==void 0||l.onNewValue!==void 0),Z=oe.shiftKey!==!0&&l.disableTabSelection!==!0&&l.multiple!==!0&&(o.value!==-1||Fe===!0);if(oe.keyCode===27){Bt(oe);return}if(oe.keyCode===9&&Z===!1){ge();return}if(oe.target===void 0||oe.target.id!==B.targetUid.value||B.editable.value!==!0)return;if(oe.keyCode===40&&B.innerLoading.value!==!0&&f.value===!1){xt(oe),_e();return}if(oe.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}(oe.keyCode===35||oe.keyCode===36)&&(typeof n.value!="string"||n.value.length===0)&&(xt(oe),o.value=-1,ze(oe.keyCode===36?1:-1,l.multiple)),(oe.keyCode===33||oe.keyCode===34)&&k.value!==void 0&&(xt(oe),o.value=Math.max(-1,Math.min(q.value,o.value+(oe.keyCode===33?-1:1)*k.value.view)),ze(oe.keyCode===33?1:-1,l.multiple)),(oe.keyCode===38||oe.keyCode===40)&&(xt(oe),ze(oe.keyCode===38?-1:1,l.multiple));const ue=q.value;if((S===void 0||C<Date.now())&&(S=""),ue>0&&l.useInput!==!0&&oe.key!==void 0&&oe.key.length===1&&oe.altKey===!1&&oe.ctrlKey===!1&&oe.metaKey===!1&&(oe.keyCode!==32||S.length!==0)){f.value!==!0&&_e(oe);const ve=oe.key.toLocaleLowerCase(),ye=S.length===1&&S[0]===ve;C=Date.now()+1500,ye===!1&&(xt(oe),S+=ve);const De=new RegExp("^"+S.split("").map(Be=>$l.indexOf(Be)!==-1?"\\"+Be:Be).join(".*"),"i");let Se=o.value;if(ye===!0||Se<0||De.test(de.value(l.options[Se]))!==!0)do Se=ms(Se+1,-1,ue-1);while(Se!==o.value&&(me.value(l.options[Se])===!0||De.test(de.value(l.options[Se]))!==!0));o.value!==Se&&_.nextTick(()=>{Ne(Se),x(Se),Se>=0&&l.useInput===!0&&l.fillInput===!0&&we(de.value(l.options[Se]),!0)});return}if(!(oe.keyCode!==13&&(oe.keyCode!==32||l.useInput===!0||S!=="")&&(oe.keyCode!==9||Z===!1))){if(oe.keyCode!==9&&xt(oe),o.value!==-1&&o.value<ue){qe(l.options[o.value]);return}if(Fe===!0){const ve=(ye,De)=>{if(De){if(Ds(De)!==!0)return}else De=l.newValueMode;if(Te("",l.multiple!==!0,!0),ye==null)return;(De==="toggle"?qe:We)(ye,De==="add-unique"),l.multiple!==!0&&(F.value?.focus(),Re())};if(l.onNewValue!==void 0?t("newValue",n.value,ve):ve(n.value),l.multiple!==!0)return}f.value===!0?ge():B.innerLoading.value!==!0&&_e()}}function He(){return d===!0?N.value:z.value!==null&&z.value.contentEl!==null?z.value.contentEl:void 0}function nt(){return He()}function et(){return l.hideSelected===!0?[]:j["selected-item"]!==void 0?se.value.map(oe=>j["selected-item"](oe)).slice():j.selected!==void 0?[].concat(j.selected()):l.useChips===!0?se.value.map((oe,Fe)=>_.h(ql,{key:"option-"+Fe,removable:B.editable.value===!0&&me.value(oe.opt)!==!0,dense:!0,textColor:l.color,tabindex:G.value,onRemove(){oe.removeAtIndex(Fe)}},()=>_.h("span",{class:"ellipsis",[oe.html===!0?"innerHTML":"textContent"]:de.value(oe.opt)}))):[_.h("span",{class:"ellipsis",[$.value===!0?"innerHTML":"textContent"]:V.value})]}function Ye(){if(O.value===!0)return j["no-option"]!==void 0?j["no-option"]({inputValue:n.value}):void 0;const oe=j.option!==void 0?j.option:Z=>_.h(Pr,{key:Z.index,...Z.itemProps},()=>_.h(Dr,()=>_.h(ui,()=>_.h("span",{[Z.html===!0?"innerHTML":"textContent"]:Z.label}))));let Fe=y("div",J.value.map(oe));return j["before-options"]!==void 0&&(Fe=j["before-options"]().concat(Fe)),Dt(j["after-options"],Fe)}function ot(oe,Fe){const Z=Fe===!0?{...ee.value,...B.splitAttrs.attributes.value}:void 0,ue={ref:Fe===!0?F:void 0,key:"i_t",class:P.value,style:l.inputStyle,value:n.value!==void 0?n.value:"",type:"search",...Z,id:Fe===!0?B.targetUid.value:void 0,maxlength:l.maxlength,autocomplete:l.autocomplete,"data-autofocus":oe===!0||l.autofocus===!0||void 0,disabled:l.disable===!0,readonly:l.readonly===!0,...xe.value};return oe!==!0&&d===!0&&(Array.isArray(ue.class)===!0?ue.class=[...ue.class,"no-pointer-events"]:ue.class+=" no-pointer-events"),_.h("input",ue)}function he(oe){u!==null&&(clearTimeout(u),u=null),s!==null&&(clearTimeout(s),s=null),!(oe&&oe.target&&oe.target.qComposing===!0)&&(we(oe.target.value||""),h=!0,g=n.value,B.focused.value!==!0&&(d!==!0||e.value===!0)&&B.focus(),l.onFilter!==void 0&&(u=setTimeout(()=>{u=null,Oe(n.value)},l.inputDebounce)))}function we(oe,Fe){n.value!==oe&&(n.value=oe,Fe===!0||l.inputDebounce===0||l.inputDebounce==="0"?t("inputValue",oe):s=setTimeout(()=>{s=null,t("inputValue",oe)},l.inputDebounce))}function Te(oe,Fe,Z){h=Z!==!0,l.useInput===!0&&(we(oe,!0),(Fe===!0||Z!==!0)&&(g=oe),Fe!==!0&&Oe(oe))}function Oe(oe,Fe,Z){if(l.onFilter===void 0||Fe!==!0&&B.focused.value!==!0)return;B.innerLoading.value===!0?t("filterAbort"):(B.innerLoading.value=!0,r.value=!0),oe!==""&&l.multiple!==!0&&I.value.length!==0&&h!==!0&&oe===de.value(I.value[0])&&(oe="");const ue=setTimeout(()=>{f.value===!0&&(f.value=!1)},10);c!==null&&clearTimeout(c),c=ue,t("filter",oe,(ve,ye)=>{(Fe===!0||B.focused.value===!0)&&c===ue&&(clearTimeout(c),typeof ve=="function"&&ve(),r.value=!1,_.nextTick(()=>{B.innerLoading.value=!1,B.editable.value===!0&&(Fe===!0?f.value===!0&&Re():f.value===!0?Je(!0):f.value=!0),typeof ye=="function"&&_.nextTick(()=>{ye(v)}),typeof Z=="function"&&_.nextTick(()=>{Z(v)})}))},()=>{B.focused.value===!0&&c===ue&&(clearTimeout(c),B.innerLoading.value=!1,r.value=!1),f.value===!0&&(f.value=!1)})}function Ce(){return _.h(Ur,{ref:z,class:Y.value,style:l.popupContentStyle,modelValue:f.value,fit:l.menuShrink!==!0,cover:l.optionsCover===!0&&O.value!==!0&&l.useInput!==!0,anchor:l.menuAnchor,self:l.menuSelf,offset:l.menuOffset,dark:H.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:l.popupNoRouteDismiss,square:ie.value,transitionShow:l.transitionShow,transitionHide:l.transitionHide,transitionDuration:l.transitionDuration,separateClosePopup:!0,...ae.value,onScrollPassive:w,onBeforeShow:vt,onBeforeHide:Qe,onShow:Ke},Ye)}function Qe(oe){ct(oe),ge()}function Ke(){E()}function te(oe){Ft(oe),F.value?.focus(),e.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function X(oe){Ft(oe),_.nextTick(()=>{e.value=!1})}function re(){const oe=[_.h(Nl,{class:`col-auto ${B.fieldClass.value}`,...W.value,for:B.targetUid.value,dark:H.value,square:!0,loading:r.value,itemAligned:!1,filled:!0,stackLabel:n.value.length!==0,...B.splitAttrs.listeners.value,onFocus:te,onBlur:X},{...j,rawControl:()=>B.getControl(!0),before:void 0,after:void 0})];return f.value===!0&&oe.push(_.h("div",{ref:N,class:Y.value+" scroll",style:l.popupContentStyle,...ae.value,onClick:Bt,onScrollPassive:w},Ye())),_.h(Vi,{ref:D,modelValue:a.value,position:l.useInput===!0?"top":void 0,transitionShow:p,transitionHide:l.transitionHide,transitionDuration:l.transitionDuration,noRouteDismiss:l.popupNoRouteDismiss,onBeforeShow:vt,onBeforeHide:le,onHide:pe,onShow:Ae},()=>_.h("div",{class:"q-select__dialog"+(H.value===!0?" q-select__dialog--dark q-dark":"")+(e.value===!0?" q-select__dialog--focused":"")},oe))}function le(oe){ct(oe),D.value!==null&&D.value.__updateRefocusTarget(B.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),B.focused.value=!1}function pe(oe){Re(),B.focused.value===!1&&t("blur",oe),Ve()}function Ae(){const oe=document.activeElement;(oe===null||oe.id!==B.targetUid.value)&&F.value!==null&&F.value!==oe&&F.value.focus(),E()}function ge(){a.value!==!0&&(o.value=-1,f.value===!0&&(f.value=!1),B.focused.value===!1&&(c!==null&&(clearTimeout(c),c=null),B.innerLoading.value===!0&&(t("filterAbort"),B.innerLoading.value=!1,r.value=!1)))}function _e(oe){B.editable.value===!0&&(d===!0?(B.onControlFocusin(oe),a.value=!0,_.nextTick(()=>{B.focus()})):B.focus(),l.onFilter!==void 0?Oe(n.value):(O.value!==!0||j["no-option"]!==void 0)&&(f.value=!0))}function Re(){a.value=!1,ge()}function Ve(){l.useInput===!0&&Te(l.multiple!==!0&&l.fillInput===!0&&I.value.length!==0&&de.value(I.value[0])||"",!0,!0)}function Je(oe){let Fe=-1;if(oe===!0){if(I.value.length!==0){const Z=ce.value(I.value[0]);Fe=l.options.findIndex(ue=>Zt(ce.value(ue),Z))}b(Fe)}Ne(Fe)}function Ze(oe,Fe){f.value===!0&&B.innerLoading.value===!1&&(b(-1,!0),_.nextTick(()=>{f.value===!0&&B.innerLoading.value===!1&&(oe>Fe?b():Je(!0))}))}function rt(){a.value===!1&&z.value!==null&&z.value.updatePosition()}function vt(oe){oe!==void 0&&Ft(oe),t("popupShow",oe),B.hasPopupOpen=!0,B.onControlFocusin(oe)}function ct(oe){oe!==void 0&&Ft(oe),t("popupHide",oe),B.hasPopupOpen=!1,B.onControlFocusout(oe)}function kt(){d=m.platform.is.mobile!==!0&&l.behavior!=="dialog"?!1:l.behavior!=="menu"&&(l.useInput===!0?j["no-option"]!==void 0||l.onFilter!==void 0||O.value===!1:!0),p=m.platform.is.ios===!0&&d===!0&&l.useInput===!0?"fade":l.transitionShow}return _.onBeforeUpdate(kt),_.onUpdated(rt),kt(),_.onBeforeUnmount(()=>{u!==null&&clearTimeout(u),s!==null&&clearTimeout(s)}),Object.assign(v,{showPopup:_e,hidePopup:Re,removeAtIndex:Ee,add:We,toggleOption:qe,getOptionIndex:()=>o.value,setOptionIndex:Ne,moveOptionSelection:ze,filter:Oe,updateMenuPosition:rt,updateInputValue:Te,isOptionSelected:ke,getEmittingOptionValue:Ie,isOptionDisabled:(...oe)=>me.value.apply(null,oe)===!0,getOptionValue:(...oe)=>ce.value.apply(null,oe),getOptionLabel:(...oe)=>de.value.apply(null,oe)}),Object.assign(B,{innerValue:I,fieldClass:_.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:F,hasValue:K,showPopup:_e,floatingLabel:_.computed(()=>l.hideSelected!==!0&&K.value===!0||typeof n.value=="number"||n.value.length!==0||qr(l.displayValue)),getControlChild:()=>{if(B.editable.value!==!1&&(a.value===!0||O.value!==!0||j["no-option"]!==void 0))return d===!0?re():Ce();B.hasPopupOpen===!0&&(B.hasPopupOpen=!1)},controlEvents:{onFocusin(oe){B.onControlFocusin(oe)},onFocusout(oe){B.onControlFocusout(oe,()=>{Ve(),ge()})},onClick(oe){if(Bt(oe),d!==!0&&f.value===!0){ge(),F.value?.focus();return}_e(oe)}},getControl:oe=>{const Fe=et(),Z=oe===!0||a.value!==!0||d!==!0;if(l.useInput===!0)Fe.push(ot(oe,Z));else if(B.editable.value===!0){const ve=Z===!0?ee.value:void 0;Fe.push(_.h("input",{ref:Z===!0?F:void 0,key:"d_t",class:"q-select__focus-target",id:Z===!0?B.targetUid.value:void 0,value:V.value,readonly:!0,"data-autofocus":oe===!0||l.autofocus===!0||void 0,...ve,onKeydown:$e,onKeyup:Ue,onKeypress:Ge})),Z===!0&&typeof l.autocomplete=="string"&&l.autocomplete.length!==0&&Fe.push(_.h("input",{class:"q-select__autocomplete-input",autocomplete:l.autocomplete,tabindex:-1,onKeyup:Le}))}if(L.value!==void 0&&l.disable!==!0&&be.value.length!==0){const ve=be.value.map(ye=>_.h("option",{value:ye,selected:!0}));Fe.push(_.h("select",{class:"hidden",name:L.value,multiple:l.multiple},ve))}const ue=l.useInput===!0||Z!==!0?void 0:B.splitAttrs.attributes.value;return _.h("div",{class:"q-field__native row items-center",...ue,...B.splitAttrs.listeners.value},Fe)},getInnerAppend:()=>l.loading!==!0&&r.value!==!0&&l.hideDropdownIcon!==!0?[_.h(St,{class:"q-select__dropdown-icon"+(f.value===!0?" rotate-180":""),name:ne.value})]:null}),zi(B)}}),tu={class:"q-pa-none"},ru=_.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:j}){const t=l,v=j,m=_.ref(!1),f=_.ref(t.modelValue||[]),a=_.computed(()=>({height:t.scrollAreaHeight,width:t.scrollAreaWidth})),o=_.computed(()=>t.dataCy||"checkbox-filter");return _.watch(f,n=>{v("update:modelValue",n)}),_.watch(()=>t.modelValue,n=>{n&&(f.value=n)},{immediate:!0}),(n,e)=>(_.openBlock(),_.createElementBlock("div",tu,[_.createVNode(Ui,_.mergeProps({outlined:"",dense:"",label:t.label,class:["full-width","cursor-pointer"],"data-cy":o.value,"model-value":null,options:[],"hide-dropdown-icon":""},n.$attrs),{append:_.withCtx(()=>[_.createVNode(St,{name:"arrow_drop_down",class:_.normalizeClass(["cursor-pointer smooth-rotate",{"rotate-180":m.value}])},null,8,["class"])]),default:_.withCtx(()=>[_.createVNode(Ur,{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:_.withCtx(()=>[_.createVNode(Ti,{class:"q-pa-sm"},{default:_.withCtx(()=>[_.createVNode(dl,{style:_.normalizeStyle(a.value)},{default:_.withCtx(()=>[(_.openBlock(!0),_.createElementBlock(_.Fragment,null,_.renderList(t.options,r=>(_.openBlock(),_.createBlock(dn,{key:r.value,modelValue:f.value,"onUpdate:modelValue":e[0]||(e[0]=u=>f.value=u),val:r,label:r.label,disable:r.disabled,color:"primary",class:"q-mb-sm q-ml-sm q-mr-sm","data-cy":`${o.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"])]))}}),nu=Er(ru,[["__scopeId","data-v-0e12eb7b"]]),iu=_.defineComponent({__name:"SelectSearch",props:{options:{default:()=>[]},fetchOptions:{},label:{default:"Selectionner un option"},modelValue:{default:null}},emits:["update:modelValue"],setup(l,{emit:j}){const t=l,v=j,m=_.ref(),f=_.ref(t.modelValue??null),a=_.ref(""),o=_.ref(t.options??[]),n=_.ref(!1),e=_.ref(!0);_.watch(()=>t.options,c=>{o.value=c??[],r()},{immediate:!0}),_.watch(()=>t.modelValue,c=>{f.value=c,r(),n.value=!1});function r(){const c=o.value.find(g=>g.value===f.value);a.value=c?.label??""}function u(c){f.value=c,v("update:modelValue",c),r(),n.value=!1}function s(c){a.value=c,c===""&&(n.value=!0)}function i(){if(e.value){e.value=!1;return}f.value!==null&&!n.value?(a.value="",n.value=!0,m.value?.showPopup()):n.value&&(a.value="")}function d(){e.value=!0;const c=a.value.trim();if(c==="")n.value&&(f.value=null,v("update:modelValue",null));else{const g=o.value.find(p=>p.label.toLowerCase()===c.toLowerCase());g?(f.value=g.value,v("update:modelValue",g.value),a.value=g.label):r()}n.value=!1}function h(c,g,p){if(t.fetchOptions)t.fetchOptions(c).then(S=>{o.value=S,g(()=>{})}).catch(p).finally(()=>{});else{const S=t.options??[];o.value=S.filter(C=>C.label.toLowerCase().includes(c.toLowerCase())),g(()=>{})}}return(c,g)=>(_.openBlock(),_.createBlock(Ui,_.mergeProps({ref_key:"selectRef",ref:m,"model-value":f.value,"input-value":a.value,"use-input":"","fill-input":"","hide-selected":"","input-debounce":"300",label:c.label,options:o.value,dense:"",outlined:"",class:"full-width cursor-pointer"},c.$attrs,{"onUpdate:modelValue":u,"onUpdate:inputValue":s,onFocus:i,onBlur:d,onFilter:h}),null,16,["model-value","input-value","label","options"]))}}),Lo=tt({name:"QAvatar",props:{...Cr,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(l,{slots:j}){const t=Ar(l),v=_.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=_.computed(()=>l.fontSize?{fontSize:l.fontSize}:null);return()=>{const f=l.icon!==void 0?[_.h(St,{name:l.icon})]:void 0;return _.h("div",{class:v.value,style:t.value},[_.h("div",{class:"q-avatar__content row flex-center overflow-hidden",style:m.value},to(j.default,f))])}}}),su=tt({name:"QSpace",setup(){const l=_.h("div",{class:"q-space"});return()=>l}}),ou=["ul","ol"],Wi=tt({name:"QList",props:{...It,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(l,{slots:j}){const t=_.getCurrentInstance(),v=Ot(l,t.proxy.$q),m=_.computed(()=>ou.includes(l.tag)?null:"list"),f=_.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()=>_.h(l.tag,{class:f.value,role:m.value},mt(j.default))}}),au=tt({name:"QToolbar",props:{inset:Boolean},setup(l,{slots:j}){const t=_.computed(()=>"q-toolbar row no-wrap items-center"+(l.inset===!0?" q-toolbar--inset":""));return()=>_.h("div",{class:t.value,role:"toolbar"},mt(j.default))}}),lu=tt({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:j,emit:t}){const{proxy:{$q:v}}=_.getCurrentInstance(),m=_.inject(Wr,Rt);if(m===Rt)return console.error("QHeader needs to be child of QLayout"),Rt;const f=_.ref(parseInt(l.heightHint,10)),a=_.ref(!0),o=_.computed(()=>l.reveal===!0||m.view.value.indexOf("H")!==-1||v.platform.is.ios&&m.isContainer.value===!0),n=_.computed(()=>{if(l.modelValue!==!0)return 0;if(o.value===!0)return a.value===!0?f.value:0;const p=f.value-m.scroll.value.position;return p>0?p:0}),e=_.computed(()=>l.modelValue!==!0||o.value===!0&&a.value!==!0),r=_.computed(()=>l.modelValue===!0&&e.value===!0&&l.reveal===!0),u=_.computed(()=>"q-header q-layout__section--marginal "+(o.value===!0?"fixed":"absolute")+"-top"+(l.bordered===!0?" q-header--bordered":"")+(e.value===!0?" q-header--hidden":"")+(l.modelValue!==!0?" q-layout--prevent-focus":"")),s=_.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(f,p),i("size",p)}function c(p){r.value===!0&&d(a,!0),t("focusin",p)}_.watch(()=>l.modelValue,p=>{i("space",p),d(a,!0),m.animate()}),_.watch(n,p=>{i("offset",p)}),_.watch(()=>l.reveal,p=>{p===!1&&d(a,l.modelValue)}),_.watch(a,p=>{m.animate(),t("reveal",p)}),_.watch(m.scroll,p=>{l.reveal===!0&&d(a,p.direction==="up"||p.position<=l.revealOffset||p.position-p.inflectionPoint<100)});const g={};return m.instances.header=g,l.modelValue===!0&&i("size",f.value),i("space",l.modelValue),i("offset",n.value),_.onBeforeUnmount(()=>{m.instances.header===g&&(m.instances.header=void 0,i("size",0),i("offset",0),i("space",!1))}),()=>{const p=vi(j.default,[]);return l.elevated===!0&&p.push(_.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),p.push(_.h(kr,{debounce:0,onResize:h})),_.h("header",{class:u.value,style:s.value,onFocusin:c},p)}}});function Ns(l){if(l===!1)return 0;if(l===!0||l===void 0)return 1;const j=parseInt(l,10);return isNaN(j)?0:j}const Hi=bi({name:"close-popup",beforeMount(l,{value:j}){const t={depth:Ns(j),handler(v){t.depth!==0&&setTimeout(()=>{const m=yl(l);m!==void 0&&wl(m,v,t.depth)})},handlerKey(v){er(v,13)===!0&&t.handler(v)}};l.__qclosepopup=t,l.addEventListener("click",t.handler),l.addEventListener("keyup",t.handlerKey)},updated(l,{value:j,oldValue:t}){j!==t&&(l.__qclosepopup.depth=Ns(j))},beforeUnmount(l){const j=l.__qclosepopup;l.removeEventListener("click",j.handler),l.removeEventListener("keyup",j.handlerKey),delete l.__qclosepopup}}),uu=["src","alt"],cu=_.defineComponent({__name:"SelfeeHeader",props:{logoSrc:{},logoAlt:{},logoTo:{},showProjectSwitch:{type:Boolean},currentProjectLabel:{},availableProjects:{},currentPath:{}},emits:["project-change"],setup(l,{emit:j}){const t=l,v=t.logoAlt??"Logo",m=t.logoTo??"/",f=_.computed(()=>({width:"260px",height:"auto",borderRadius:"0"})),a=o=>t.currentPath?.startsWith(o);return(o,n)=>{const e=_.resolveComponent("router-link");return _.openBlock(),_.createBlock(lu,_.mergeProps({elevated:""},o.$attrs),{default:_.withCtx(()=>[_.createVNode(au,null,{default:_.withCtx(()=>[_.createVNode(e,{to:_.unref(m),class:"q-mr-lg"},{default:_.withCtx(()=>[_.createVNode(Lo,{class:"logo",style:_.normalizeStyle(f.value),"data-testid":"header-logo"},{default:_.withCtx(()=>[_.createElementVNode("img",{src:o.logoSrc,alt:_.unref(v)},null,8,uu)]),_:1},8,["style"])]),_:1},8,["to"]),_.createVNode(su),o.showProjectSwitch?(_.openBlock(),_.createBlock(bt,{key:0,dense:"",unelevated:"",color:"primary",label:o.currentProjectLabel,"data-testid":"project-switch-btn",class:"project-switch-btn q-mr-md bg-info"},{default:_.withCtx(()=>[_.createVNode(Ur,{anchor:"bottom right",self:"top right"},{default:_.withCtx(()=>[_.createVNode(Wi,{dense:"",class:"project-menu"},{default:_.withCtx(()=>[(_.openBlock(!0),_.createElementBlock(_.Fragment,null,_.renderList(o.availableProjects,r=>_.withDirectives((_.openBlock(),_.createBlock(Pr,{key:r.path,clickable:"",disable:a(r.path),onClick:u=>o.$emit("project-change",r.path)},{default:_.withCtx(()=>[_.createVNode(Dr,{class:"q-mr-lg"},{default:_.withCtx(()=>[_.createVNode(ui,null,{default:_.withCtx(()=>[_.createTextVNode(_.toDisplayString(r.label),1)]),_:2},1024),a(r.path)?(_.openBlock(),_.createBlock(ui,{key:0,caption:""},{default:_.withCtx(()=>n[0]||(n[0]=[_.createTextVNode(" Actuel ")])),_:1,__:[0]})):_.createCommentVNode("",!0)]),_:2},1024)]),_:2},1032,["disable","onClick"])),[[Hi]])),128))]),_:1})]),_:1})]),_:1},8,["label"])):_.createCommentVNode("",!0),_.renderSlot(o.$slots,"user-avatar",{},void 0,!0)]),_:3})]),_:3},16)}}}),fu=Er(cu,[["__scopeId","data-v-0f07eaec"]]),du=tt({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:j,emit:t}){const{proxy:{$q:v}}=_.getCurrentInstance(),m=_.inject(Wr,Rt);if(m===Rt)return console.error("QFooter needs to be child of QLayout"),Rt;const f=_.ref(parseInt(l.heightHint,10)),a=_.ref(!0),o=_.ref(tr.value===!0||m.isContainer.value===!0?0:window.innerHeight),n=_.computed(()=>l.reveal===!0||m.view.value.indexOf("F")!==-1||v.platform.is.ios&&m.isContainer.value===!0),e=_.computed(()=>m.isContainer.value===!0?m.containerHeight.value:o.value),r=_.computed(()=>{if(l.modelValue!==!0)return 0;if(n.value===!0)return a.value===!0?f.value:0;const T=m.scroll.value.position+e.value+f.value-m.height.value;return T>0?T:0}),u=_.computed(()=>l.modelValue!==!0||n.value===!0&&a.value!==!0),s=_.computed(()=>l.modelValue===!0&&u.value===!0&&l.reveal===!0),i=_.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=_.computed(()=>{const T=m.rows.value.bottom,F={};return T[0]==="l"&&m.left.space===!0&&(F[v.lang.rtl===!0?"right":"left"]=`${m.left.size}px`),T[2]==="r"&&m.right.space===!0&&(F[v.lang.rtl===!0?"left":"right"]=`${m.right.size}px`),F});function h(T,F){m.update("footer",T,F)}function c(T,F){T.value!==F&&(T.value=F)}function g({height:T}){c(f,T),h("size",T)}function p(){if(l.reveal!==!0)return;const{direction:T,position:F,inflectionPoint:z}=m.scroll.value;c(a,T==="up"||F-z<100||m.height.value-e.value-F-f.value<300)}function S(T){s.value===!0&&c(a,!0),t("focusin",T)}_.watch(()=>l.modelValue,T=>{h("space",T),c(a,!0),m.animate()}),_.watch(r,T=>{h("offset",T)}),_.watch(()=>l.reveal,T=>{T===!1&&c(a,l.modelValue)}),_.watch(a,T=>{m.animate(),t("reveal",T)}),_.watch([f,m.scroll,m.height],p),_.watch(()=>v.screen.height,T=>{m.isContainer.value!==!0&&c(o,T)});const C={};return m.instances.footer=C,l.modelValue===!0&&h("size",f.value),h("space",l.modelValue),h("offset",r.value),_.onBeforeUnmount(()=>{m.instances.footer===C&&(m.instances.footer=void 0,h("size",0),h("offset",0),h("space",!1))}),()=>{const T=Dt(j.default,[_.h(kr,{debounce:0,onResize:g})]);return l.elevated===!0&&T.push(_.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),_.h("footer",{class:i.value,style:d.value,onFocusin:S},T)}}}),hu={class:"row justify-between"},pu={class:"col-3 q-py-md flex justify-center"},mu={class:"col-3 q-py-md flex justify-center"},gu={class:"col-3 q-py-md flex justify-center"},bu=_.defineComponent({__name:"SelfeeFooter",props:{frontVersion:{},backVersion:{},platform:{}},setup(l){return(j,t)=>(_.openBlock(),_.createBlock(du,_.mergeProps({elevated:""},j.$attrs),{default:_.withCtx(()=>[_.createElementVNode("div",hu,[_.createElementVNode("div",pu," Front: "+_.toDisplayString(j.frontVersion),1),_.createElementVNode("div",mu," Back: "+_.toDisplayString(j.backVersion),1),_.createElementVNode("div",gu," Platform: "+_.toDisplayString(j.platform),1)])]),_:1},16))}}),vu={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},Kn={xs:2,sm:4,md:8,lg:16,xl:24},di=tt({name:"QSeparator",props:{...It,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(l){const j=_.getCurrentInstance(),t=Ot(l,j.proxy.$q),v=_.computed(()=>l.vertical===!0?"vertical":"horizontal"),m=_.computed(()=>` q-separator--${v.value}`),f=_.computed(()=>l.inset!==!1?`${m.value}-${vu[l.inset]}`:""),a=_.computed(()=>`q-separator${m.value}${f.value}`+(l.color!==void 0?` bg-${l.color}`:"")+(t.value===!0?" q-separator--dark":"")),o=_.computed(()=>{const n={};if(l.size!==void 0&&(n[l.vertical===!0?"width":"height"]=l.size),l.spaced!==!1){const e=l.spaced===!0?`${Kn.md}px`:l.spaced in Kn?`${Kn[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()=>_.h("hr",{class:a.value,style:o.value,"aria-orientation":v.value})}}),yu={class:"text-h6 text-primary","data-testid":"avatar-initial"},wu={class:"text-weight-bold"},xu={class:"version-info"},Su={class:"text-caption"},ku={class:"text-caption"},_u={class:"text-caption"},Cu=_.defineComponent({__name:"UserAvatar",props:{username:{},onLogout:{},logoutLabel:{default:"Déconnexion"},frontVersion:{default:"N/A"},backVersion:{default:"N/A"},platform:{default:"dev"},showVersionInfo:{type:Boolean,default:!0}},setup(l){const j=l,t=_.computed(()=>j.username?.charAt(0).toUpperCase()??"");return(v,m)=>(_.openBlock(),_.createElementBlock("div",null,[_.createVNode(Lo,{class:"cursor-pointer",size:"40px",color:"white","data-cy":"cy-avatar","data-testid":"cy-avatar"},{default:_.withCtx(()=>[_.createElementVNode("span",yu,_.toDisplayString(t.value),1),_.createVNode(Ur,{"transition-show":"flip-right","transition-hide":"flip-left",class:"user-avatar-menu"},{default:_.withCtx(()=>[_.createVNode(Wi,{class:"user-menu-list"},{default:_.withCtx(()=>[_.createVNode(Pr,{class:"user-info-section"},{default:_.withCtx(()=>[_.createVNode(Dr,null,{default:_.withCtx(()=>[_.createElementVNode("div",wu,_.toDisplayString(v.username),1)]),_:1})]),_:1}),_.createVNode(di),v.showVersionInfo?(_.openBlock(),_.createBlock(Pr,{key:0,class:"version-info-section"},{default:_.withCtx(()=>[_.createVNode(Dr,null,{default:_.withCtx(()=>[_.createElementVNode("div",xu,[m[0]||(m[0]=_.createElementVNode("div",{class:"text-caption text-grey-7"},"Informations de version",-1)),_.createElementVNode("div",Su,"Front: "+_.toDisplayString(v.frontVersion),1),_.createElementVNode("div",ku,"Back: "+_.toDisplayString(v.backVersion),1),_.createElementVNode("div",_u,"Plateforme: "+_.toDisplayString(v.platform),1)])]),_:1})]),_:1})):_.createCommentVNode("",!0),v.showVersionInfo?(_.openBlock(),_.createBlock(di,{key:1})):_.createCommentVNode("",!0),_.createVNode(Pr,{clickable:"",class:"logout-section","data-cy":"cy-logout-button","data-testid":"cy-logout-button",onClick:v.onLogout},{default:_.withCtx(()=>[_.createVNode(Dr,null,{default:_.withCtx(()=>[_.createElementVNode("div",null,_.toDisplayString(v.logoutLabel),1)]),_:1})]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]))}}),Au=Er(Cu,[["__scopeId","data-v-18e2dcbc"]]),Eu=tt({name:"QPageContainer",setup(l,{slots:j}){const{proxy:{$q:t}}=_.getCurrentInstance(),v=_.inject(Wr,Rt);if(v===Rt)return console.error("QPageContainer needs to be child of QLayout"),Rt;_.provide(Bo,!0);const m=_.computed(()=>{const f={};return v.header.space===!0&&(f.paddingTop=`${v.header.size}px`),v.right.space===!0&&(f[`padding${t.lang.rtl===!0?"Left":"Right"}`]=`${v.right.size}px`),v.footer.space===!0&&(f.paddingBottom=`${v.footer.size}px`),v.left.space===!0&&(f[`padding${t.lang.rtl===!0?"Right":"Left"}`]=`${v.left.size}px`),f});return()=>_.h("div",{class:"q-page-container",style:m.value},mt(j.default))}}),Mu=tt({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:j,emit:t}){const{proxy:{$q:v}}=_.getCurrentInstance(),m=_.ref(null),f=_.ref(v.screen.height),a=_.ref(l.container===!0?0:v.screen.width),o=_.ref({position:0,direction:"down",inflectionPoint:0}),n=_.ref(0),e=_.ref(tr.value===!0?0:hn()),r=_.computed(()=>"q-layout q-layout--"+(l.container===!0?"containerized":"standard")),u=_.computed(()=>l.container===!1?{minHeight:v.screen.height+"px"}:null),s=_.computed(()=>e.value!==0?{[v.lang.rtl===!0?"left":"right"]:`${e.value}px`}:null),i=_.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(C){if(l.container===!0||document.qScrollPrevented!==!0){const T={position:C.position.top,direction:C.direction,directionChanged:C.directionChanged,inflectionPoint:C.inflectionPoint.top,delta:C.delta.top};o.value=T,l.onScroll!==void 0&&t("scroll",T)}}function h(C){const{height:T,width:F}=C;let z=!1;f.value!==T&&(z=!0,f.value=T,l.onScrollHeight!==void 0&&t("scrollHeight",T),g()),a.value!==F&&(z=!0,a.value=F),z===!0&&l.onResize!==void 0&&t("resize",C)}function c({height:C}){n.value!==C&&(n.value=C,g())}function g(){if(l.container===!0){const C=f.value>n.value?hn():0;e.value!==C&&(e.value=C)}}let p=null;const S={instances:{},view:_.computed(()=>l.view),isContainer:_.computed(()=>l.container),rootRef:m,height:f,containerHeight:n,scrollbarWidth:e,totalWidth:_.computed(()=>a.value+e.value),rows:_.computed(()=>{const C=l.view.toLowerCase().split(" ");return{top:C[0].split(""),middle:C[1].split(""),bottom:C[2].split("")}}),header:_.reactive({size:0,offset:0,space:!1}),right:_.reactive({size:300,offset:0,space:!1}),footer:_.reactive({size:0,offset:0,space:!1}),left:_.reactive({size:300,offset:0,space:!1}),scroll:o,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(C,T,F){S[C][T]=F}};if(_.provide(Wr,S),hn()>0){let C=function(){z=null,D.classList.remove("hide-scrollbar")},T=function(){if(z===null){if(D.scrollHeight>v.screen.height)return;D.classList.add("hide-scrollbar")}else clearTimeout(z);z=setTimeout(C,300)},F=function(N){z!==null&&N==="remove"&&(clearTimeout(z),C()),window[`${N}EventListener`]("resize",T)},z=null;const D=document.body;_.watch(()=>l.container!==!0?"add":"remove",F),l.container!==!0&&F("add"),_.onUnmounted(()=>{F("remove")})}return()=>{const C=Dt(j.default,[_.h(yo,{onScroll:d}),_.h(kr,{onResize:h})]),T=_.h("div",{class:r.value,style:u.value,ref:l.container===!0?void 0:m,tabindex:-1},C);return l.container===!0?_.h("div",{class:"q-layout-container overflow-hidden",ref:m},[_.h(kr,{onResize:c}),_.h("div",{class:"absolute-full",style:s.value},[_.h("div",{class:"scroll",style:i.value},[T])])]):T}}}),Yi=_.defineComponent({name:"Layout",__name:"Layout",props:{view:{default:"HHh Lpr Fff"},layoutClass:{default:"bg-white"},pageContainerClass:{default:""}},setup(l){return(j,t)=>(_.openBlock(),_.createBlock(Mu,{view:j.view,class:_.normalizeClass(j.layoutClass),style:{minHeight:"auto !important"}},{default:_.withCtx(()=>[_.renderSlot(j.$slots,"header"),_.createVNode(Eu,{class:_.normalizeClass(j.pageContainerClass),style:{paddingBottom:"0 !important"}},{default:_.withCtx(()=>[_.renderSlot(j.$slots,"default")]),_:3},8,["class"]),_.renderSlot(j.$slots,"footer")]),_:3},8,["view","class"]))}});function Tu(){let l=Object.create(null);return{getCache:(j,t)=>l[j]===void 0?l[j]=typeof t=="function"?t():t:l[j],setCache(j,t){l[j]=t},hasCache(j){return Object.hasOwnProperty.call(l,j)},clearCache(j){j!==void 0?delete l[j]:l=Object.create(null)}}}const $t=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178];function Ru(l,j,t){return Object.prototype.toString.call(l)==="[object Date]"&&(t=l.getDate(),j=l.getMonth()+1,l=l.getFullYear()),ju(Qi(l,j,t))}function Ls(l,j,t){return zo(Ou(l,j,t))}function Bu(l){return Iu(l)===0}function pn(l,j){return j<=6?31:j<=11||Bu(l)?30:29}function Iu(l){const j=$t.length;let t=$t[0],v,m,f,a,o;if(l<t||l>=$t[j-1])throw new Error("Invalid Jalaali year "+l);for(o=1;o<j&&(v=$t[o],m=v-t,!(l<v));o+=1)t=v;return a=l-t,m-a<6&&(a=a-m+yt(m+4,33)*33),f=Pt(Pt(a+1,33)-1,4),f===-1&&(f=4),f}function qo(l,j){const t=$t.length,v=l+621;let m=-14,f=$t[0],a,o,n,e,r;if(l<f||l>=$t[t-1])throw new Error("Invalid Jalaali year "+l);for(r=1;r<t&&(a=$t[r],o=a-f,!(l<a));r+=1)m=m+yt(o,33)*8+yt(Pt(o,33),4),f=a;e=l-f,m=m+yt(e,33)*8+yt(Pt(e,33)+3,4),Pt(o,33)===4&&o-e===4&&(m+=1);const u=yt(v,4)-yt((yt(v,100)+1)*3,4)-150,s=20+m-u;return j||(o-e<6&&(e=e-o+yt(o+4,33)*33),n=Pt(Pt(e+1,33)-1,4),n===-1&&(n=4)),{leap:n,gy:v,march:s}}function Ou(l,j,t){const v=qo(l,!0);return Qi(v.gy,3,v.march)+(j-1)*31-yt(j,7)*(j-7)+t-1}function ju(l){const j=zo(l).gy;let t=j-621,v,m,f;const a=qo(t,!1),o=Qi(j,3,a.march);if(f=l-o,f>=0){if(f<=185)return m=1+yt(f,31),v=Pt(f,31)+1,{jy:t,jm:m,jd:v};f-=186}else t-=1,f+=179,a.leap===1&&(f+=1);return m=7+yt(f,30),v=Pt(f,30)+1,{jy:t,jm:m,jd:v}}function Qi(l,j,t){let v=yt((l+yt(j-8,6)+100100)*1461,4)+yt(153*Pt(j+9,12)+2,5)+t-34840408;return v=v-yt(yt(l+100100+yt(j-8,6),100)*3,4)+752,v}function zo(l){let j=4*l+139361631;j=j+yt(yt(4*l+183187720,146097)*3,4)*4-3908;const t=yt(Pt(j,1461),4)*5+308,v=yt(Pt(t,153),5)+1,m=Pt(yt(t,153),12)+1;return{gy:yt(j,1461)-100100+yt(8-m,6),gm:m,gd:v}}function yt(l,j){return~~(l/j)}function Pt(l,j){return l-~~(l/j)*j}const Fu=["gregorian","persian"],qs={mask:{type:String},locale:Object,calendar:{type:String,validator:l=>Fu.includes(l),default:"gregorian"},landscape:Boolean,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,readonly:Boolean,disable:Boolean},Pu=["update:modelValue"];function Xt(l){return l.year+"/"+gt(l.month)+"/"+gt(l.day)}function Du(l,j){const t=_.computed(()=>l.disable!==!0&&l.readonly!==!0),v=_.computed(()=>t.value===!0?0:-1),m=_.computed(()=>{const o=[];return l.color!==void 0&&o.push(`bg-${l.color}`),l.textColor!==void 0&&o.push(`text-${l.textColor}`),o.join(" ")});function f(){return l.locale!==void 0?{...j.lang.date,...l.locale}:j.lang.date}function a(o){const n=new Date,e=o===!0?null:0;if(l.calendar==="persian"){const r=Ru(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:f,getCurrentDate:a}}const hi={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,j,t)=>l+"-"+j+" 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 zs(){const l=Array.isArray(navigator.languages)===!0&&navigator.languages.length!==0?navigator.languages[0]:navigator.language;if(typeof l=="string")return l.split(/[-_]/).map((j,t)=>t===0?j.toLowerCase():t>1||j.length<4?j.toUpperCase():j[0].toUpperCase()+j.slice(1).toLowerCase()).join("-")}const Jt=fa({__qLang:{}},{getLocale:zs,set(l=hi,j){const t={...l,rtl:l.rtl===!0,getLocale:zs};{if(t.set=Jt.set,Jt.__langConfig===void 0||Jt.__langConfig.noHtmlAttrs!==!0){const v=document.documentElement;v.setAttribute("dir",t.rtl===!0?"rtl":"ltr"),v.setAttribute("lang",t.isoName)}Object.assign(Jt.__qLang,t)}},install({$q:l,lang:j,ssrContext:t}){l.lang=Jt.__qLang,Jt.__langConfig=l.config.lang,this.__installed===!0?j!==void 0&&this.set(j):(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(j||hi))}}),Vo=864e5,Nu=36e5,pi=6e4,Uo="YYYY-MM-DDTHH:mm:ss.SSSZ",Lu=/\[((?:[^\]\\]|\\]|\\)*)\]|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,qu=/(\[[^\]]*\])|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,Xn={};function zu(l,j){const t="("+j.days.join("|")+")",v=l+t;if(Xn[v]!==void 0)return Xn[v];const m="("+j.daysShort.join("|")+")",f="("+j.months.join("|")+")",a="("+j.monthsShort.join("|")+")",o={};let n=0;const e=l.replace(qu,u=>{switch(n++,u){case"YY":return o.YY=n,"(-?\\d{1,2})";case"YYYY":return o.YYYY=n,"(-?\\d{1,4})";case"M":return o.M=n,"(\\d{1,2})";case"Mo":return o.M=n++,"(\\d{1,2}(st|nd|rd|th))";case"MM":return o.M=n,"(\\d{2})";case"MMM":return o.MMM=n,a;case"MMMM":return o.MMMM=n,f;case"D":return o.D=n,"(\\d{1,2})";case"Do":return o.D=n++,"(\\d{1,2}(st|nd|rd|th))";case"DD":return o.D=n,"(\\d{2})";case"H":return o.H=n,"(\\d{1,2})";case"HH":return o.H=n,"(\\d{2})";case"h":return o.h=n,"(\\d{1,2})";case"hh":return o.h=n,"(\\d{2})";case"m":return o.m=n,"(\\d{1,2})";case"mm":return o.m=n,"(\\d{2})";case"s":return o.s=n,"(\\d{1,2})";case"ss":return o.s=n,"(\\d{2})";case"S":return o.S=n,"(\\d{1})";case"SS":return o.S=n,"(\\d{2})";case"SSS":return o.S=n,"(\\d{3})";case"A":return o.A=n,"(AM|PM)";case"a":return o.a=n,"(am|pm)";case"aa":return o.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 o.Z=n,"(Z|[+-]\\d{2}:\\d{2})";case"ZZ":return o.ZZ=n,"(Z|[+-]\\d{2}\\d{2})";case"X":return o.X=n,"(-?\\d+)";case"x":return o.x=n,"(-?\\d{4,})";default:return n--,u[0]==="["&&(u=u.substring(1,u.length-1)),u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}),r={map:o,regex:new RegExp("^"+e)};return Xn[v]=r,r}function Wo(l,j){return l!==void 0?l:j!==void 0?j.date:hi.date}function Vs(l,j=""){const t=l>0?"-":"+",v=Math.abs(l),m=Math.floor(v/60),f=v%60;return t+gt(m)+j+gt(f)}function Vu(l,j,t){let v=l.getFullYear(),m=l.getMonth();const f=l.getDate();return j.year!==void 0&&(v+=t*j.year,delete j.year),j.month!==void 0&&(m+=t*j.month,delete j.month),l.setDate(1),l.setMonth(2),l.setFullYear(v),l.setMonth(m),l.setDate(Math.min(f,Gi(l))),j.date!==void 0&&(l.setDate(l.getDate()+t*j.date),delete j.date),l}function Uu(l,j,t){const v=j.year!==void 0?j.year:l[`get${t}FullYear`](),m=j.month!==void 0?j.month-1:l[`get${t}Month`](),f=new Date(v,m+1,0).getDate(),a=Math.min(f,j.date!==void 0?j.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 j.year,delete j.month,delete j.date,l}function Ki(l,j,t){const v=Ho(j),m=new Date(l),f=v.year!==void 0||v.month!==void 0||v.date!==void 0?Vu(m,v,t):m;for(const a in v){const o=fl(a);f[`set${o}`](f[`get${o}`]()+t*v[a])}return f}function Ho(l){const j={...l};return l.years!==void 0&&(j.year=l.years,delete j.years),l.months!==void 0&&(j.month=l.months,delete j.months),l.days!==void 0&&(j.date=l.days,delete j.days),l.day!==void 0&&(j.date=l.day,delete j.day),l.hour!==void 0&&(j.hours=l.hour,delete j.hour),l.minute!==void 0&&(j.minutes=l.minute,delete j.minute),l.second!==void 0&&(j.seconds=l.second,delete j.second),l.millisecond!==void 0&&(j.milliseconds=l.millisecond,delete j.millisecond),j}function Yo(l,j,t){const v=Ho(j),m=t===!0?"UTC":"",f=new Date(l),a=v.year!==void 0||v.month!==void 0||v.date!==void 0?Uu(f,v,m):f;for(const o in v){const n=o.charAt(0).toUpperCase()+o.slice(1);a[`set${m}${n}`](v[o])}return a}function Wu(l,j,t){const v=Qo(l,j,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),f=m.getTimezoneOffset();return v.timezoneOffset===null||v.timezoneOffset===f?m:Ki(m,{minutes:v.timezoneOffset-f},1)}function Qo(l,j,t,v,m){const f={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(f,m),l==null||l===""||typeof l!="string")return f;j===void 0&&(j=Uo);const a=Wo(t,Jt.props),o=a.months,n=a.monthsShort,{regex:e,map:r}=zu(j,a),u=l.match(e);if(u===null)return f;let s="";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 f;const d=new Date(i*(r.X!==void 0?1e3:1));f.year=d.getFullYear(),f.month=d.getMonth()+1,f.day=d.getDate(),f.hour=d.getHours(),f.minute=d.getMinutes(),f.second=d.getSeconds(),f.millisecond=d.getMilliseconds()}else{if(r.YYYY!==void 0)f.year=parseInt(u[r.YYYY],10);else if(r.YY!==void 0){const i=parseInt(u[r.YY],10);f.year=i<0?i:2e3+i}if(r.M!==void 0){if(f.month=parseInt(u[r.M],10),f.month<1||f.month>12)return f}else r.MMM!==void 0?f.month=n.indexOf(u[r.MMM])+1:r.MMMM!==void 0&&(f.month=o.indexOf(u[r.MMMM])+1);if(r.D!==void 0){if(f.day=parseInt(u[r.D],10),f.year===null||f.month===null||f.day<1)return f;const i=v!=="persian"?new Date(f.year,f.month,0).getDate():pn(f.year,f.month);if(f.day>i)return f}r.H!==void 0?f.hour=parseInt(u[r.H],10)%24:r.h!==void 0&&(f.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.")&&(f.hour+=12),f.hour=f.hour%24),r.m!==void 0&&(f.minute=parseInt(u[r.m],10)%60),r.s!==void 0&&(f.second=parseInt(u[r.s],10)%60),r.S!==void 0&&(f.millisecond=parseInt(u[r.S],10)*10**(3-u[r.S].length)),(r.Z!==void 0||r.ZZ!==void 0)&&(s=r.Z!==void 0?u[r.Z].replace(":",""):u[r.ZZ],f.timezoneOffset=(s[0]==="+"?-1:1)*(60*s.slice(1,3)+1*s.slice(3,5)))}return f.dateHash=gt(f.year,4)+"/"+gt(f.month)+"/"+gt(f.day),f.timeHash=gt(f.hour)+":"+gt(f.minute)+":"+gt(f.second)+s,f}function Hu(l){return typeof l=="number"?!0:isNaN(Date.parse(l))===!1}function Yu(l,j){return Yo(new Date,l,j)}function Qu(l){const j=new Date(l).getDay();return j===0?7:j}function mn(l){const j=new Date(l.getFullYear(),l.getMonth(),l.getDate());j.setDate(j.getDate()-(j.getDay()+6)%7+3);const t=new Date(j.getFullYear(),0,4);t.setDate(t.getDate()-(t.getDay()+6)%7+3);const v=j.getTimezoneOffset()-t.getTimezoneOffset();j.setHours(j.getHours()-v);const m=(j-t)/(Vo*7);return 1+Math.floor(m)}function Ku(l){return l.getFullYear()*1e4+l.getMonth()*100+l.getDate()}function Gn(l,j){const t=new Date(l);return j===!0?Ku(t):t.getTime()}function Xu(l,j,t,v={}){const m=Gn(j,v.onlyDate),f=Gn(t,v.onlyDate),a=Gn(l,v.onlyDate);return(a>m||v.inclusiveFrom===!0&&a===m)&&(a<f||v.inclusiveTo===!0&&a===f)}function Gu(l,j){return Ki(l,j,1)}function Ju(l,j){return Ki(l,j,-1)}function Vt(l,j,t){const v=new Date(l),m=`set${t===!0?"UTC":""}`;switch(j){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 Zu(l,j,t){const v=new Date(l),m=`set${t===!0?"UTC":""}`;switch(j){case"year":case"years":v[`${m}Month`](11);case"month":case"months":v[`${m}Date`](Gi(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 $u(l){let j=new Date(l);return Array.prototype.slice.call(arguments,1).forEach(t=>{j=Math.max(j,new Date(t))}),j}function ec(l){let j=new Date(l);return Array.prototype.slice.call(arguments,1).forEach(t=>{j=Math.min(j,new Date(t))}),j}function sn(l,j,t){return(l.getTime()-l.getTimezoneOffset()*pi-(j.getTime()-j.getTimezoneOffset()*pi))/t}function Xi(l,j,t="days"){const v=new Date(l),m=new Date(j);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 sn(Vt(v,"day"),Vt(m,"day"),Vo);case"hours":case"hour":return sn(Vt(v,"hour"),Vt(m,"hour"),Nu);case"minutes":case"minute":return sn(Vt(v,"minute"),Vt(m,"minute"),pi);case"seconds":case"second":return sn(Vt(v,"second"),Vt(m,"second"),1e3)}}function gn(l){return Xi(l,Vt(l,"year"),"days")+1}function tc(l){return An(l)===!0?"date":typeof l=="number"?"number":"string"}function rc(l,j,t){const v=new Date(l);if(j){const m=new Date(j);if(v<m)return m}if(t){const m=new Date(t);if(v>m)return m}return v}function nc(l,j,t){const v=new Date(l),m=new Date(j);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 Gi(l){return new Date(l.getFullYear(),l.getMonth()+1,0).getDate()}function vr(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 Us={YY(l,j,t){const v=this.YYYY(l,j,t)%100;return v>=0?gt(v):"-"+gt(Math.abs(v))},YYYY(l,j,t){return t??l.getFullYear()},M(l){return l.getMonth()+1},Mo(l){return vr(l.getMonth()+1)},MM(l){return gt(l.getMonth()+1)},MMM(l,j){return j.monthsShort[l.getMonth()]},MMMM(l,j){return j.months[l.getMonth()]},Q(l){return Math.ceil((l.getMonth()+1)/3)},Qo(l){return vr(this.Q(l))},D(l){return l.getDate()},Do(l){return vr(l.getDate())},DD(l){return gt(l.getDate())},DDD(l){return gn(l)},DDDo(l){return vr(gn(l))},DDDD(l){return gt(gn(l),3)},d(l){return l.getDay()},do(l){return vr(l.getDay())},dd(l,j){return j.days[l.getDay()].slice(0,2)},ddd(l,j){return j.daysShort[l.getDay()]},dddd(l,j){return j.days[l.getDay()]},E(l){return l.getDay()||7},w(l){return mn(l)},wo(l){return vr(mn(l))},ww(l){return gt(mn(l))},H(l){return l.getHours()},HH(l){return gt(l.getHours())},h(l){const j=l.getHours();return j===0?12:j>12?j%12:j},hh(l){return gt(this.h(l))},m(l){return l.getMinutes()},mm(l){return gt(l.getMinutes())},s(l){return l.getSeconds()},ss(l){return gt(l.getSeconds())},S(l){return Math.floor(l.getMilliseconds()/100)},SS(l){return gt(Math.floor(l.getMilliseconds()/10))},SSS(l){return gt(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,j,t,v){const m=v??l.getTimezoneOffset();return Vs(m,":")},ZZ(l,j,t,v){const m=v??l.getTimezoneOffset();return Vs(m)},X(l){return Math.floor(l.getTime()/1e3)},x(l){return l.getTime()}};function Ko(l,j,t,v,m){if(l!==0&&!l||l===1/0||l===-1/0)return;const f=new Date(l);if(isNaN(f))return;j===void 0&&(j=Uo);const a=Wo(t,Jt.props);return j.replace(Lu,(o,n)=>o in Us?Us[o](f,a,v,m):n===void 0?o:n.split("\\]").join("]"))}function ic(l){return An(l)===!0?new Date(l.getTime()):l}const Xo={isValid:Hu,extractDate:Wu,buildDate:Yu,getDayOfWeek:Qu,getWeekOfYear:mn,isBetweenDates:Xu,addToDate:Gu,subtractFromDate:Ju,adjustDate:Yo,startOfDate:Vt,endOfDate:Zu,getMaxDate:$u,getMinDate:ec,getDateDiff:Xi,getDayOfYear:gn,inferDateFormat:tc,getDateBetween:rc,isSameDate:nc,daysInMonth:Gi,formatDate:Ko,clone:ic},Wt=20,sc=["Calendar","Years","Months"],Ws=l=>sc.includes(l),Jn=l=>/^-?[\d]+\/[0-1]\d$/.test(l),yr=" — ";function Gt(l){return l.year+"/"+gt(l.month)}const Go=tt({name:"QDate",props:{...qs,...Tn,...It,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:{...qs.mask,default:"YYYY/MM/DD"},defaultYearMonth:{type:String,validator:Jn},yearsInMonthView:Boolean,events:[Array,Function],eventColor:[String,Function],emitImmediately:Boolean,options:[Array,Function],navigationMinYearMonth:{type:String,validator:Jn},navigationMaxYearMonth:{type:String,validator:Jn},noUnset:Boolean,firstDayOfWeek:[String,Number],todayBtn:Boolean,minimal:Boolean,defaultView:{type:String,default:"Calendar",validator:Ws}},emits:[...Pu,"rangeStart","rangeEnd","navigation"],setup(l,{slots:j,emit:t}){const{proxy:v}=_.getCurrentInstance(),{$q:m}=v,f=Ot(l,m),{getCache:a}=Tu(),{tabindex:o,headerClass:n,getLocale:e,getCurrentDate:r}=Du(l,m);let u;const s=Qa(l),i=ho(s),d=_.ref(null),h=_.ref(We()),c=_.ref(e()),g=_.computed(()=>We()),p=_.computed(()=>e()),S=_.computed(()=>r()),C=_.ref(Ne(h.value,c.value)),T=_.ref(l.defaultView),F=_.computed(()=>m.lang.rtl===!0?"right":"left"),z=_.ref(F.value),D=_.ref(F.value),N=C.value.year,L=_.ref(N-N%Wt-(N<0?Wt:0)),U=_.ref(null),q=_.computed(()=>{const te=l.landscape===!0?"landscape":"portrait";return`q-date q-date--${te} q-date--${te}-${l.minimal===!0?"minimal":"standard"}`+(f.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=_.computed(()=>l.color||"primary"),M=_.computed(()=>l.textColor||"white"),k=_.computed(()=>l.emitImmediately===!0&&l.multiple!==!0&&l.range!==!0),b=_.computed(()=>Array.isArray(l.modelValue)===!0?l.modelValue:l.modelValue!==null&&l.modelValue!==void 0?[l.modelValue]:[]),y=_.computed(()=>b.value.filter(te=>typeof te=="string").map(te=>qe(te,h.value,c.value)).filter(te=>te.dateHash!==null&&te.day!==null&&te.month!==null&&te.year!==null)),w=_.computed(()=>{const te=X=>qe(X,h.value,c.value);return b.value.filter(X=>No(X)===!0&&X.from!==void 0&&X.to!==void 0).map(X=>({from:te(X.from),to:te(X.to)})).filter(X=>X.from.dateHash!==null&&X.to.dateHash!==null&&X.from.dateHash<X.to.dateHash)}),x=_.computed(()=>l.calendar!=="persian"?te=>new Date(te.year,te.month-1,te.day):te=>{const X=Ls(te.year,te.month,te.day);return new Date(X.gy,X.gm-1,X.gd)}),E=_.computed(()=>l.calendar==="persian"?Xt:(te,X,re)=>Ko(new Date(te.year,te.month-1,te.day,te.hour,te.minute,te.second,te.millisecond),X===void 0?h.value:X,re===void 0?c.value:re,te.year,te.timezoneOffset)),B=_.computed(()=>y.value.length+w.value.reduce((te,X)=>te+1+Xi(x.value(X.to),x.value(X.from)),0)),I=_.computed(()=>{if(l.title!==void 0&&l.title!==null&&l.title.length!==0)return l.title;if(U.value!==null){const re=U.value.init,le=x.value(re);return c.value.daysShort[le.getDay()]+", "+c.value.monthsShort[re.month-1]+" "+re.day+yr+"?"}if(B.value===0)return yr;if(B.value>1)return`${B.value} ${c.value.pluralDay}`;const te=y.value[0],X=x.value(te);return isNaN(X.valueOf())===!0?yr:c.value.headerTitle!==void 0?c.value.headerTitle(X,te):c.value.daysShort[X.getDay()]+", "+c.value.monthsShort[te.month-1]+" "+te.day}),W=_.computed(()=>y.value.concat(w.value.map(X=>X.from)).sort((X,re)=>X.year-re.year||X.month-re.month)[0]),H=_.computed(()=>y.value.concat(w.value.map(X=>X.to)).sort((X,re)=>re.year-X.year||re.month-X.month)[0]),K=_.computed(()=>{if(l.subtitle!==void 0&&l.subtitle!==null&&l.subtitle.length!==0)return l.subtitle;if(B.value===0)return yr;if(B.value>1){const te=W.value,X=H.value,re=c.value.monthsShort;return re[te.month-1]+(te.year!==X.year?" "+te.year+yr+re[X.month-1]+" ":te.month!==X.month?yr+re[X.month-1]:"")+" "+X.year}return y.value[0].year}),P=_.computed(()=>{const te=[m.iconSet.datetime.arrowLeft,m.iconSet.datetime.arrowRight];return m.lang.rtl===!0?te.reverse():te}),Y=_.computed(()=>l.firstDayOfWeek!==void 0?Number(l.firstDayOfWeek):c.value.firstDayOfWeek),O=_.computed(()=>{const te=c.value.daysShort,X=Y.value;return X>0?te.slice(X,7).concat(te.slice(0,X)):te}),R=_.computed(()=>{const te=C.value;return l.calendar!=="persian"?new Date(te.year,te.month,0).getDate():pn(te.year,te.month)}),V=_.computed(()=>typeof l.eventColor=="function"?l.eventColor:()=>l.eventColor),Q=_.computed(()=>{if(l.navigationMinYearMonth===void 0)return null;const te=l.navigationMinYearMonth.split("/");return{year:parseInt(te[0],10),month:parseInt(te[1],10)}}),$=_.computed(()=>{if(l.navigationMaxYearMonth===void 0)return null;const te=l.navigationMaxYearMonth.split("/");return{year:parseInt(te[0],10),month:parseInt(te[1],10)}}),G=_.computed(()=>{const te={month:{prev:!0,next:!0},year:{prev:!0,next:!0}};return Q.value!==null&&Q.value.year>=C.value.year&&(te.year.prev=!1,Q.value.year===C.value.year&&Q.value.month>=C.value.month&&(te.month.prev=!1)),$.value!==null&&$.value.year<=C.value.year&&(te.year.next=!1,$.value.year===C.value.year&&$.value.month<=C.value.month&&(te.month.next=!1)),te}),ee=_.computed(()=>{const te={};return y.value.forEach(X=>{const re=Gt(X);te[re]===void 0&&(te[re]=[]),te[re].push(X.day)}),te}),ae=_.computed(()=>{const te={};return w.value.forEach(X=>{const re=Gt(X.from),le=Gt(X.to);if(te[re]===void 0&&(te[re]=[]),te[re].push({from:X.from.day,to:re===le?X.to.day:void 0,range:X}),re<le){let pe;const{year:Ae,month:ge}=X.from,_e=ge<12?{year:Ae,month:ge+1}:{year:Ae+1,month:1};for(;(pe=Gt(_e))<=le;)te[pe]===void 0&&(te[pe]=[]),te[pe].push({from:void 0,to:pe===le?X.to.day:void 0,range:X}),_e.month++,_e.month>12&&(_e.year++,_e.month=1)}}),te}),se=_.computed(()=>{if(U.value===null)return;const{init:te,initHash:X,final:re,finalHash:le}=U.value,[pe,Ae]=X<=le?[te,re]:[re,te],ge=Gt(pe),_e=Gt(Ae);if(ge!==J.value&&_e!==J.value)return;const Re={};return ge===J.value?(Re.from=pe.day,Re.includeFrom=!0):Re.from=1,_e===J.value?(Re.to=Ae.day,Re.includeTo=!0):Re.to=R.value,Re}),J=_.computed(()=>Gt(C.value)),ne=_.computed(()=>{const te={};if(l.options===void 0){for(let re=1;re<=R.value;re++)te[re]=!0;return te}const X=typeof l.options=="function"?l.options:re=>l.options.includes(re);for(let re=1;re<=R.value;re++){const le=J.value+"/"+gt(re);te[re]=X(le)}return te}),ie=_.computed(()=>{const te={};if(l.events===void 0)for(let X=1;X<=R.value;X++)te[X]=!1;else{const X=typeof l.events=="function"?l.events:re=>l.events.includes(re);for(let re=1;re<=R.value;re++){const le=J.value+"/"+gt(re);te[re]=X(le)===!0&&V.value(le)}}return te}),fe=_.computed(()=>{let te,X;const{year:re,month:le}=C.value;if(l.calendar!=="persian")te=new Date(re,le-1,1),X=new Date(re,le-1,0).getDate();else{const pe=Ls(re,le,1);te=new Date(pe.gy,pe.gm-1,pe.gd);let Ae=le-1,ge=re;Ae===0&&(Ae=12,ge--),X=pn(ge,Ae)}return{days:te.getDay()-Y.value-1,endDay:X}}),ce=_.computed(()=>{const te=[],{days:X,endDay:re}=fe.value,le=X<0?X+7:X;if(le<6)for(let ge=re-le;ge<=re;ge++)te.push({i:ge,fill:!0});const pe=te.length;for(let ge=1;ge<=R.value;ge++){const _e={i:ge,event:ie.value[ge],classes:[]};ne.value[ge]===!0&&(_e.in=!0,_e.flat=!0),te.push(_e)}if(ee.value[J.value]!==void 0&&ee.value[J.value].forEach(ge=>{const _e=pe+ge-1;Object.assign(te[_e],{selected:!0,unelevated:!0,flat:!1,color:A.value,textColor:M.value})}),ae.value[J.value]!==void 0&&ae.value[J.value].forEach(ge=>{if(ge.from!==void 0){const _e=pe+ge.from-1,Re=pe+(ge.to||R.value)-1;for(let Ve=_e;Ve<=Re;Ve++)Object.assign(te[Ve],{range:ge.range,unelevated:!0,color:A.value,textColor:M.value});Object.assign(te[_e],{rangeFrom:!0,flat:!1}),ge.to!==void 0&&Object.assign(te[Re],{rangeTo:!0,flat:!1})}else if(ge.to!==void 0){const _e=pe+ge.to-1;for(let Re=pe;Re<=_e;Re++)Object.assign(te[Re],{range:ge.range,unelevated:!0,color:A.value,textColor:M.value});Object.assign(te[_e],{flat:!1,rangeTo:!0})}else{const _e=pe+R.value-1;for(let Re=pe;Re<=_e;Re++)Object.assign(te[Re],{range:ge.range,unelevated:!0,color:A.value,textColor:M.value})}}),se.value!==void 0){const ge=pe+se.value.from-1,_e=pe+se.value.to-1;for(let Re=ge;Re<=_e;Re++)te[Re].color=A.value,te[Re].editRange=!0;se.value.includeFrom===!0&&(te[ge].editRangeFrom=!0),se.value.includeTo===!0&&(te[_e].editRangeTo=!0)}C.value.year===S.value.year&&C.value.month===S.value.month&&(te[pe+S.value.day-1].today=!0);const Ae=te.length%7;if(Ae>0){const ge=7-Ae;for(let _e=1;_e<=ge;_e++)te.push({i:_e,fill:!0})}return te.forEach(ge=>{let _e="q-date__calendar-item ";ge.fill===!0?_e+="q-date__calendar-item--fill":(_e+=`q-date__calendar-item--${ge.in===!0?"in":"out"}`,ge.range!==void 0&&(_e+=` q-date__range${ge.rangeTo===!0?"-to":ge.rangeFrom===!0?"-from":""}`),ge.editRange===!0&&(_e+=` q-date__edit-range${ge.editRangeFrom===!0?"-from":""}${ge.editRangeTo===!0?"-to":""}`),(ge.range!==void 0||ge.editRange===!0)&&(_e+=` text-${ge.color}`)),ge.classes=_e}),te}),de=_.computed(()=>l.disable===!0?{"aria-disabled":"true"}:{});_.watch(()=>l.modelValue,te=>{if(u===JSON.stringify(te))u=0;else{const X=Ne(h.value,c.value);$e(X.year,X.month,X)}}),_.watch(T,()=>{d.value!==null&&v.$el.contains(document.activeElement)===!0&&d.value.focus()}),_.watch(()=>C.value.year+"|"+C.value.month,()=>{t("navigation",{year:C.value.year,month:C.value.month})}),_.watch(g,te=>{we(te,c.value,"mask"),h.value=te}),_.watch(p,te=>{we(h.value,te,"locale"),c.value=te});function me(te){u=JSON.stringify(te)}function be(){const{year:te,month:X,day:re}=S.value,le={...C.value,year:te,month:X,day:re},pe=ee.value[Gt(le)];(pe===void 0||pe.includes(le.day)===!1)&&ot(le),Ee(le.year,le.month)}function xe(te){Ws(te)===!0&&(T.value=te)}function Ie(te,X){["month","year"].includes(te)&&(te==="month"?je:ke)(X===!0?-1:1)}function Ee(te,X){T.value="Calendar",$e(te,X)}function Me(te,X){if(l.range===!1||!te){U.value=null;return}const re=Object.assign({...C.value},te),le=X!==void 0?Object.assign({...C.value},X):re;U.value={init:re,initHash:Xt(re),final:le,finalHash:Xt(le)},Ee(re.year,re.month)}function We(){return l.calendar==="persian"?"YYYY/MM/DD":l.mask}function qe(te,X,re){return Qo(te,X,re,l.calendar,{hour:0,minute:0,second:0,millisecond:0})}function Ne(te,X){const re=Array.isArray(l.modelValue)===!0?l.modelValue:l.modelValue?[l.modelValue]:[];if(re.length===0)return ze();const le=re[re.length-1],pe=qe(le.from!==void 0?le.from:le,te,X);return pe.dateHash===null?ze():pe}function ze(){let te,X;if(l.defaultYearMonth!==void 0){const re=l.defaultYearMonth.split("/");te=parseInt(re[0],10),X=parseInt(re[1],10)}else{const re=S.value!==void 0?S.value:r();te=re.year,X=re.month}return{year:te,month:X,day:1,hour:0,minute:0,second:0,millisecond:0,dateHash:te+"/"+gt(X)+"/01"}}function je(te){let X=C.value.year,re=Number(C.value.month)+te;re===13?(re=1,X++):re===0&&(re=12,X--),$e(X,re),k.value===!0&&nt("month")}function ke(te){const X=Number(C.value.year)+te;$e(X,C.value.month),k.value===!0&&nt("year")}function Pe(te){$e(te,C.value.month),T.value=l.defaultView==="Years"?"Months":"Calendar",k.value===!0&&nt("year")}function Ue(te){$e(C.value.year,te),T.value="Calendar",k.value===!0&&nt("month")}function Le(te,X){(ee.value[X]?.includes(te.day)===!0?he:ot)(te)}function Ge(te){return{year:te.year,month:te.month,day:te.day}}function $e(te,X,re){if(Q.value!==null&&te<=Q.value.year&&((X<Q.value.month||te<Q.value.year)&&(X=Q.value.month),te=Q.value.year),$.value!==null&&te>=$.value.year&&((X>$.value.month||te>$.value.year)&&(X=$.value.month),te=$.value.year),re!==void 0){const{hour:pe,minute:Ae,second:ge,millisecond:_e,timezoneOffset:Re,timeHash:Ve}=re;Object.assign(C.value,{hour:pe,minute:Ae,second:ge,millisecond:_e,timezoneOffset:Re,timeHash:Ve})}const le=te+"/"+gt(X)+"/01";le!==C.value.dateHash&&(z.value=C.value.dateHash<le==(m.lang.rtl!==!0)?"left":"right",te!==C.value.year&&(D.value=z.value),_.nextTick(()=>{L.value=te-te%Wt-(te<0?Wt:0),Object.assign(C.value,{year:te,month:X,day:1,dateHash:le})}))}function He(te,X,re){const le=te!==null&&te.length===1&&l.multiple===!1?te[0]:te,{reason:pe,details:Ae}=et(X,re);me(le),t("update:modelValue",le,pe,Ae)}function nt(te){const X=y.value[0]!==void 0&&y.value[0].dateHash!==null?{...y.value[0]}:{...C.value};_.nextTick(()=>{X.year=C.value.year,X.month=C.value.month;const re=l.calendar!=="persian"?new Date(X.year,X.month,0).getDate():pn(X.year,X.month);X.day=Math.min(Math.max(1,X.day),re);const le=Ye(X),{details:pe}=et("",X);me(le),t("update:modelValue",le,te,pe)})}function et(te,X){return X.from!==void 0?{reason:`${te}-range`,details:{...Ge(X.target),from:Ge(X.from),to:Ge(X.to)}}:{reason:`${te}-day`,details:Ge(X)}}function Ye(te,X,re){return te.from!==void 0?{from:E.value(te.from,X,re),to:E.value(te.to,X,re)}:E.value(te,X,re)}function ot(te){let X;if(l.multiple===!0)if(te.from!==void 0){const re=Xt(te.from),le=Xt(te.to),pe=y.value.filter(ge=>ge.dateHash<re||ge.dateHash>le),Ae=w.value.filter(({from:ge,to:_e})=>_e.dateHash<re||ge.dateHash>le);X=pe.concat(Ae).concat(te).map(ge=>Ye(ge))}else{const re=b.value.slice();re.push(Ye(te)),X=re}else X=Ye(te);He(X,"add",te)}function he(te){if(l.noUnset===!0)return;let X=null;if(l.multiple===!0&&Array.isArray(l.modelValue)===!0){const re=Ye(te);te.from!==void 0?X=l.modelValue.filter(le=>le.from!==void 0?le.from!==re.from&&le.to!==re.to:!0):X=l.modelValue.filter(le=>le!==re),X.length===0&&(X=null)}He(X,"remove",te)}function we(te,X,re){const le=y.value.concat(w.value).map(Ae=>Ye(Ae,te,X)).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,re)}function Te(){if(l.minimal!==!0)return _.h("div",{class:"q-date__header "+n.value},[_.h("div",{class:"relative-position"},[_.h(_.Transition,{name:"q-transition--fade"},()=>_.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:o.value,...a("vY",{onClick(){T.value="Years"},onKeyup(te){te.keyCode===13&&(T.value="Years")}})},[K.value]))]),_.h("div",{class:"q-date__header-title relative-position flex no-wrap"},[_.h("div",{class:"relative-position col"},[_.h(_.Transition,{name:"q-transition--fade"},()=>_.h("div",{key:"h-sub"+I.value,class:"q-date__header-title-label q-date__header-link "+(T.value==="Calendar"?"q-date__header-link--active":"cursor-pointer"),tabindex:o.value,...a("vC",{onClick(){T.value="Calendar"},onKeyup(te){te.keyCode===13&&(T.value="Calendar")}})},[I.value]))]),l.todayBtn===!0?_.h(bt,{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:o.value,onClick:be}):null])])}function Oe({label:te,type:X,key:re,dir:le,goTo:pe,boundaries:Ae,cls:ge}){return[_.h("div",{class:"row items-center q-date__arrow"},[_.h(bt,{round:!0,dense:!0,size:"sm",flat:!0,icon:P.value[0],"aria-label":X==="Years"?m.lang.date.prevYear:m.lang.date.prevMonth,tabindex:o.value,disable:Ae.prev===!1,...a("go-#"+X,{onClick(){pe(-1)}})})]),_.h("div",{class:"relative-position overflow-hidden flex flex-center"+ge},[_.h(_.Transition,{name:"q-transition--jump-"+le},()=>_.h("div",{key:re},[_.h(bt,{flat:!0,dense:!0,noCaps:!0,label:te,tabindex:o.value,...a("view#"+X,{onClick:()=>{T.value=X}})})]))]),_.h("div",{class:"row items-center q-date__arrow"},[_.h(bt,{round:!0,dense:!0,size:"sm",flat:!0,icon:P.value[1],"aria-label":X==="Years"?m.lang.date.nextYear:m.lang.date.nextMonth,tabindex:o.value,disable:Ae.next===!1,...a("go+#"+X,{onClick(){pe(1)}})})])]}const Ce={Calendar:()=>[_.h("div",{key:"calendar-view",class:"q-date__view q-date__calendar"},[_.h("div",{class:"q-date__navigation row items-center no-wrap"},Oe({label:c.value.months[C.value.month-1],type:"Months",key:C.value.month,dir:z.value,goTo:je,boundaries:G.value.month,cls:" col"}).concat(Oe({label:C.value.year,type:"Years",key:C.value.year,dir:D.value,goTo:ke,boundaries:G.value.year,cls:""}))),_.h("div",{class:"q-date__calendar-weekdays row items-center no-wrap"},O.value.map(te=>_.h("div",{class:"q-date__calendar-item"},[_.h("div",te)]))),_.h("div",{class:"q-date__calendar-days-container relative-position overflow-hidden"},[_.h(_.Transition,{name:"q-transition--slide-"+z.value},()=>_.h("div",{key:J.value,class:"q-date__calendar-days fit"},ce.value.map(te=>_.h("div",{class:te.classes},[te.in===!0?_.h(bt,{class:te.today===!0?"q-date__today":"",dense:!0,flat:te.flat,unelevated:te.unelevated,color:te.color,textColor:te.textColor,label:te.i,tabindex:o.value,...a("day#"+te.i,{onClick:()=>{Qe(te.i)},onMouseover:()=>{Ke(te.i)}})},te.event!==!1?()=>_.h("div",{class:"q-date__event bg-"+te.event}):null):_.h("div",""+te.i)]))))])])],Months(){const te=C.value.year===S.value.year,X=le=>Q.value!==null&&C.value.year===Q.value.year&&Q.value.month>le||$.value!==null&&C.value.year===$.value.year&&$.value.month<le,re=c.value.monthsShort.map((le,pe)=>{const Ae=C.value.month===pe+1;return _.h("div",{class:"q-date__months-item flex flex-center"},[_.h(bt,{class:te===!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:o.value,disable:X(pe+1),...a("month#"+pe,{onClick:()=>{Ue(pe+1)}})})])});return l.yearsInMonthView===!0&&re.unshift(_.h("div",{class:"row no-wrap full-width"},[Oe({label:C.value.year,type:"Years",key:C.value.year,dir:D.value,goTo:ke,boundaries:G.value.year,cls:" col"})])),_.h("div",{key:"months-view",class:"q-date__view q-date__months flex flex-center"},re)},Years(){const te=L.value,X=te+Wt,re=[],le=pe=>Q.value!==null&&Q.value.year>pe||$.value!==null&&$.value.year<pe;for(let pe=te;pe<=X;pe++){const Ae=C.value.year===pe;re.push(_.h("div",{class:"q-date__years-item flex flex-center"},[_.h(bt,{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:o.value,disable:le(pe),...a("yr#"+pe,{onClick:()=>{Pe(pe)}})})]))}return _.h("div",{class:"q-date__view q-date__years flex flex-center"},[_.h("div",{class:"col-auto"},[_.h(bt,{round:!0,dense:!0,flat:!0,icon:P.value[0],"aria-label":m.lang.date.prevRangeYears(Wt),tabindex:o.value,disable:le(te),...a("y-",{onClick:()=>{L.value-=Wt}})})]),_.h("div",{class:"q-date__years-content col self-stretch row items-center"},re),_.h("div",{class:"col-auto"},[_.h(bt,{round:!0,dense:!0,flat:!0,icon:P.value[1],"aria-label":m.lang.date.nextRangeYears(Wt),tabindex:o.value,disable:le(X),...a("y+",{onClick:()=>{L.value+=Wt}})})])])}};function Qe(te){const X={...C.value,day:te};if(l.range===!1){Le(X,J.value);return}if(U.value===null){const re=ce.value.find(pe=>pe.fill!==!0&&pe.i===te);if(l.noUnset!==!0&&re.range!==void 0){he({target:X,from:re.range.from,to:re.range.to});return}if(re.selected===!0){he(X);return}const le=Xt(X);U.value={init:X,initHash:le,final:X,finalHash:le},t("rangeStart",Ge(X))}else{const re=U.value.initHash,le=Xt(X),pe=re<=le?{from:U.value.init,to:X}:{from:X,to:U.value.init};U.value=null,ot(re===le?X:{target:X,...pe}),t("rangeEnd",{from:Ge(pe.from),to:Ge(pe.to)})}}function Ke(te){if(U.value!==null){const X={...C.value,day:te};Object.assign(U.value,{final:X,finalHash:Xt(X)})}}return Object.assign(v,{setToday:be,setView:xe,offsetCalendar:Ie,setCalendarTo:Ee,setEditingRange:Me}),()=>{const te=[_.h("div",{class:"q-date__content col relative-position"},[_.h(_.Transition,{name:"q-transition--fade"},Ce[T.value])])],X=mt(j.default);return X!==void 0&&te.push(_.h("div",{class:"q-date__actions"},X)),l.name!==void 0&&l.disable!==!0&&i(te,"push"),_.h("div",{class:q.value,...de.value},[Te(),_.h("div",{ref:d,class:"q-date__main col column",tabindex:-1},te)])}}}),Jo=tt({name:"QPopupProxy",props:{...xo,breakpoint:{type:[String,Number],default:450}},emits:["show","hide"],setup(l,{slots:j,emit:t,attrs:v}){const{proxy:m}=_.getCurrentInstance(),{$q:f}=m,a=_.ref(!1),o=_.ref(null),n=_.computed(()=>parseInt(l.breakpoint,10)),{canShow:e}=Ri({showing:a});function r(){return f.screen.width<n.value||f.screen.height<n.value?"dialog":"menu"}const u=_.ref(r()),s=_.computed(()=>u.value==="menu"?{maxHeight:"99vh"}:{});_.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&&o.value.show(h)},hide(h){o.value.hide(h)},toggle(h){o.value.toggle(h)}}),Lt(m,"currentComponent",()=>({type:u.value,ref:o.value})),()=>{const h={ref:o,...s.value,...v,onShow:i,onHide:d};let c;return u.value==="dialog"?c=Vi:(c=Ur,Object.assign(h,{target:l.target,contextMenu:l.contextMenu,noParentEvent:!0,separateClosePopup:!0})),_.h(c,h,j.default)}}}),Hs={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},En={"#":{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()}},Zo=Object.keys(En);Zo.forEach(l=>{En[l].regex=new RegExp(En[l].pattern)});const oc=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+Zo.join("")+"])|(.)","g"),Ys=/[.*+?^${}()|[\]\\]/g,Ct="",ac={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function lc(l,j,t,v){let m,f,a,o,n,e;const r=_.ref(null),u=_.ref(i());function s(){return l.autogrow===!0||["textarea","text","search","url","tel","password"].includes(l.type)}_.watch(()=>l.type+l.autogrow,h),_.watch(()=>l.mask,N=>{if(N!==void 0)c(u.value,!0);else{const L=z(u.value);h(),l.modelValue!==L&&j("update:modelValue",L)}}),_.watch(()=>l.fillMask+l.reverseFillMask,()=>{r.value===!0&&c(u.value,!0)}),_.watch(()=>l.unmaskedValue,()=>{r.value===!0&&c(u.value)});function i(){if(h(),r.value===!0){const N=T(z(l.modelValue));return l.fillMask!==!1?D(N):N}return l.modelValue}function d(N){if(N<m.length)return m.slice(-N);let L="",U=m;const q=U.indexOf(Ct);if(q!==-1){for(let A=N-U.length;A>0;A--)L+=Ct;U=U.slice(0,q)+L+U.slice(q)}return U}function h(){if(r.value=l.mask!==void 0&&l.mask.length!==0&&s(),r.value===!1){o=void 0,m="",f="";return}const N=Hs[l.mask]===void 0?l.mask:Hs[l.mask],L=typeof l.fillMask=="string"&&l.fillMask.length!==0?l.fillMask.slice(0,1):"_",U=L.replace(Ys,"\\$&"),q=[],A=[],M=[];let k=l.reverseFillMask===!0,b="",y="";N.replace(oc,(B,I,W,H,K)=>{if(H!==void 0){const P=En[H];M.push(P),y=P.negate,k===!0&&(A.push("(?:"+y+"+)?("+P.pattern+"+)?(?:"+y+"+)?("+P.pattern+"+)?"),k=!1),A.push("(?:"+y+"+)?("+P.pattern+")?")}else if(W!==void 0)b="\\"+(W==="\\"?"":W),M.push(W),q.push("([^"+b+"]+)?"+b+"?");else{const P=I!==void 0?I:K;b=P==="\\"?"\\\\\\\\":P.replace(Ys,"\\\\$&"),M.push(P),q.push("([^"+b+"]+)?"+b+"?")}});const w=new RegExp("^"+q.join("")+"("+(b===""?".":"[^"+b+"]")+"+)?"+(b===""?"":"["+b+"]*")+"$"),x=A.length-1,E=A.map((B,I)=>I===0&&l.reverseFillMask===!0?new RegExp("^"+U+"*"+B):I===x?new RegExp("^"+B+"("+(y===""?".":y)+"+)?"+(l.reverseFillMask===!0?"$":U+"*")):new RegExp("^"+B));a=M,o=B=>{const I=w.exec(l.reverseFillMask===!0?B:B.slice(0,M.length+1));I!==null&&(B=I.slice(1).join(""));const W=[],H=E.length;for(let K=0,P=B;K<H;K++){const Y=E[K].exec(P);if(Y===null)break;P=P.slice(Y.shift().length),W.push(...Y)}return W.length!==0?W.join(""):B},m=M.map(B=>typeof B=="string"?B:Ct).join(""),f=m.split(Ct).join(L)}function c(N,L,U){const q=v.value,A=q.selectionEnd,M=q.value.length-A,k=z(N);L===!0&&h();const b=T(k),y=l.fillMask!==!1?D(b):b,w=u.value!==y;q.value!==y&&(q.value=y),w===!0&&(u.value=y),document.activeElement===q&&_.nextTick(()=>{if(y===f){const E=l.reverseFillMask===!0?f.length:0;q.setSelectionRange(E,E,"forward");return}if(U==="insertFromPaste"&&l.reverseFillMask!==!0){const E=q.selectionEnd;let B=A-1;for(let I=n;I<=B&&I<E;I++)m[I]!==Ct&&B++;p.right(q,B);return}if(["deleteContentBackward","deleteContentForward"].indexOf(U)!==-1){const E=l.reverseFillMask===!0?A===0?y.length>b.length?1:0:Math.max(0,y.length-(y===f?0:Math.min(b.length,M)+1))+1:A;q.setSelectionRange(E,E,"forward");return}if(l.reverseFillMask===!0)if(w===!0){const E=Math.max(0,y.length-(y===f?0:Math.min(b.length,M+1)));E===1&&A===1?q.setSelectionRange(E,E,"forward"):p.rightReverse(q,E)}else{const E=y.length-M;q.setSelectionRange(E,E,"backward")}else if(w===!0){const E=Math.max(0,m.indexOf(Ct),Math.min(b.length,A)-1);p.right(q,E)}else{const E=A-1;p.right(q,E)}});const x=l.unmaskedValue===!0?z(y):y;String(l.modelValue)!==x&&(l.modelValue!==null||x!=="")&&t(x,!0)}function g(N,L,U){const q=T(z(N.value));L=Math.max(0,m.indexOf(Ct),Math.min(q.length,L)),n=L,N.setSelectionRange(L,U,"forward")}const p={left(N,L){const U=m.slice(L-1).indexOf(Ct)===-1;let q=Math.max(0,L-1);for(;q>=0;q--)if(m[q]===Ct){L=q,U===!0&&L++;break}if(q<0&&m[L]!==void 0&&m[L]!==Ct)return p.right(N,0);L>=0&&N.setSelectionRange(L,L,"backward")},right(N,L){const U=N.value.length;let q=Math.min(U,L+1);for(;q<=U;q++)if(m[q]===Ct){L=q;break}else m[q-1]===Ct&&(L=q);if(q>U&&m[L-1]!==void 0&&m[L-1]!==Ct)return p.left(N,U);N.setSelectionRange(L,L,"forward")},leftReverse(N,L){const U=d(N.value.length);let q=Math.max(0,L-1);for(;q>=0;q--)if(U[q-1]===Ct){L=q;break}else if(U[q]===Ct&&(L=q,q===0))break;if(q<0&&U[L]!==void 0&&U[L]!==Ct)return p.rightReverse(N,0);L>=0&&N.setSelectionRange(L,L,"backward")},rightReverse(N,L){const U=N.value.length,q=d(U),A=q.slice(0,L+1).indexOf(Ct)===-1;let M=Math.min(U,L+1);for(;M<=U;M++)if(q[M-1]===Ct){L=M,L>0&&A===!0&&L--;break}if(M>U&&q[L-1]!==void 0&&q[L-1]!==Ct)return p.leftReverse(N,U);N.setSelectionRange(L,L,"forward")}};function S(N){j("click",N),e=void 0}function C(N){if(j("keydown",N),_i(N)===!0||N.altKey===!0)return;const L=v.value,U=L.selectionStart,q=L.selectionEnd;if(N.shiftKey||(e=void 0),N.keyCode===37||N.keyCode===39){N.shiftKey&&e===void 0&&(e=L.selectionDirection==="forward"?U:q);const A=p[(N.keyCode===39?"right":"left")+(l.reverseFillMask===!0?"Reverse":"")];if(N.preventDefault(),A(L,e===U?q:U),N.shiftKey){const M=L.selectionStart;L.setSelectionRange(Math.min(e,M),Math.max(e,M),"forward")}}else N.keyCode===8&&l.reverseFillMask!==!0&&U===q?(p.left(L,U),L.setSelectionRange(L.selectionStart,q,"backward")):N.keyCode===46&&l.reverseFillMask===!0&&U===q&&(p.rightReverse(L,q),L.setSelectionRange(U,L.selectionEnd,"forward"))}function T(N){if(N==null||N==="")return"";if(l.reverseFillMask===!0)return F(N);const L=a;let U=0,q="";for(let A=0;A<L.length;A++){const M=N[U],k=L[A];if(typeof k=="string")q+=k;else if(M!==void 0&&k.regex.test(M))q+=k.transform!==void 0?k.transform(M):M,U++;else return q}return q}function F(N){const L=a,U=m.indexOf(Ct);let q=N.length-1,A="";for(let M=L.length-1;M>=0&&q!==-1;M--){const k=L[M];let b=N[q];if(typeof k=="string")A=k+A;else if(b!==void 0&&k.regex.test(b))do A=(k.transform!==void 0?k.transform(b):b)+A,q--,b=N[q];while(U===M&&b!==void 0&&k.regex.test(b));else return A}return A}function z(N){return typeof N!="string"||o===void 0?typeof N=="number"?o(""+N):N:o(N)}function D(N){return f.length-N.length<=0?N:l.reverseFillMask===!0&&N.length!==0?f.slice(0,-N.length)+N:N+f.slice(N.length)}return{innerValue:u,hasMask:r,moveCursorForPaste:g,updateMaskValue:c,onMaskedKeydown:C,onMaskedClick:S}}function uc(l,j){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(f=>{m.items.add(f)}),{files:m.files}}catch{return{files:void 0}}}return _.computed(()=>{if(l.type==="file")return t()})}const zr=tt({name:"QInput",inheritAttrs:!1,props:{...In,...ac,...Tn,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:[...Li,"paste","change","keydown","click","animationend"],setup(l,{emit:j,attrs:t}){const{proxy:v}=_.getCurrentInstance(),{$q:m}=v,f={};let a=NaN,o,n,e=null,r;const u=_.ref(null),s=po(l),{innerValue:i,hasMask:d,moveCursorForPaste:h,updateMaskValue:c,onMaskedKeydown:g,onMaskedClick:p}=lc(l,j,b,u),S=uc(l),C=_.computed(()=>qr(i.value)),T=Do(M),F=qi({changeEvent:!0}),z=_.computed(()=>l.type==="textarea"||l.autogrow===!0),D=_.computed(()=>z.value===!0||["text","search","url","tel","password"].includes(l.type)),N=_.computed(()=>{const I={...F.splitAttrs.listeners.value,onInput:M,onPaste:A,onChange:w,onBlur:x,onFocus:Ft};return I.onCompositionstart=I.onCompositionupdate=I.onCompositionend=T,d.value===!0&&(I.onKeydown=g,I.onClick=p),l.autogrow===!0&&(I.onAnimationend=k),I}),L=_.computed(()=>{const I={tabindex:0,"data-autofocus":l.autofocus===!0||void 0,rows:l.type==="textarea"?6:void 0,"aria-label":l.label,name:s.value,...F.splitAttrs.attributes.value,id:F.targetUid.value,maxlength:l.maxlength,disabled:l.disable===!0,readonly:l.readonly===!0};return z.value===!1&&(I.type=l.type),l.autogrow===!0&&(I.rows=1),I});_.watch(()=>l.type,()=>{u.value&&(u.value.value=l.modelValue)}),_.watch(()=>l.modelValue,I=>{if(d.value===!0){if(n===!0&&(n=!1,String(I)===a))return;c(I)}else i.value!==I&&(i.value=I,l.type==="number"&&f.hasOwnProperty("value")===!0&&(o===!0?o=!1:delete f.value));l.autogrow===!0&&_.nextTick(y)}),_.watch(()=>l.autogrow,I=>{I===!0?_.nextTick(y):u.value!==null&&t.rows>0&&(u.value.style.height="auto")}),_.watch(()=>l.dense,()=>{l.autogrow===!0&&_.nextTick(y)});function U(){Vr(()=>{const I=document.activeElement;u.value!==null&&u.value!==I&&(I===null||I.id!==F.targetUid.value)&&u.value.focus({preventScroll:!0})})}function q(){u.value?.select()}function A(I){if(d.value===!0&&l.reverseFillMask!==!0){const W=I.target;h(W,W.selectionStart,W.selectionEnd)}j("paste",I)}function M(I){if(!I||!I.target)return;if(l.type==="file"){j("update:modelValue",I.target.files);return}const W=I.target.value;if(I.target.qComposing===!0){f.value=W;return}if(d.value===!0)c(W,!1,I.inputType);else if(b(W),D.value===!0&&I.target===document.activeElement){const{selectionStart:H,selectionEnd:K}=I.target;H!==void 0&&K!==void 0&&_.nextTick(()=>{I.target===document.activeElement&&W.indexOf(I.target.value)===0&&I.target.setSelectionRange(H,K)})}l.autogrow===!0&&y()}function k(I){j("animationend",I),y()}function b(I,W){r=()=>{e=null,l.type!=="number"&&f.hasOwnProperty("value")===!0&&delete f.value,l.modelValue!==I&&a!==I&&(a=I,W===!0&&(n=!0),j("update:modelValue",I),_.nextTick(()=>{a===I&&(a=NaN)})),r=void 0},l.type==="number"&&(o=!0,f.value=I),l.debounce!==void 0?(e!==null&&clearTimeout(e),f.value=I,e=setTimeout(r,l.debounce)):r()}function y(){requestAnimationFrame(()=>{const I=u.value;if(I!==null){const W=I.parentNode.style,{scrollTop:H}=I,{overflowY:K,maxHeight:P}=m.platform.is.firefox===!0?{}:window.getComputedStyle(I),Y=K!==void 0&&K!=="scroll";Y===!0&&(I.style.overflowY="hidden"),W.marginBottom=I.scrollHeight-1+"px",I.style.height="1px",I.style.height=I.scrollHeight+"px",Y===!0&&(I.style.overflowY=parseInt(P,10)<I.scrollHeight?"auto":"hidden"),W.marginBottom="",I.scrollTop=H}})}function w(I){T(I),e!==null&&(clearTimeout(e),e=null),r?.(),j("change",I.target.value)}function x(I){I!==void 0&&Ft(I),e!==null&&(clearTimeout(e),e=null),r?.(),o=!1,n=!1,delete f.value,l.type!=="file"&&setTimeout(()=>{u.value!==null&&(u.value.value=i.value!==void 0?i.value:"")})}function E(){return f.hasOwnProperty("value")===!0?f.value:i.value!==void 0?i.value:""}_.onBeforeUnmount(()=>{x()}),_.onMounted(()=>{l.autogrow===!0&&y()}),Object.assign(F,{innerValue:i,fieldClass:_.computed(()=>`q-${z.value===!0?"textarea":"input"}`+(l.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:_.computed(()=>l.type!=="file"&&typeof l.shadowText=="string"&&l.shadowText.length!==0),inputRef:u,emitValue:b,hasValue:C,floatingLabel:_.computed(()=>C.value===!0&&(l.type!=="number"||isNaN(i.value)===!1)||qr(l.displayValue)),getControl:()=>_.h(z.value===!0?"textarea":"input",{ref:u,class:["q-field__native q-placeholder",l.inputClass],style:l.inputStyle,...L.value,...N.value,...l.type!=="file"?{value:E()}:S.value}),getShadowControl:()=>_.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(z.value===!0?"":" text-no-wrap")},[_.h("span",{class:"invisible"},E()),_.h("span",l.shadowText)])});const B=zi(F);return Object.assign(v,{focus:U,select:q,getNativeElement:()=>u.value}),Lt(v,"nativeEl",()=>u.value),B}});function cc(l){return{entity:l.entity,dataCy:l.dataCy,defaultLabel:l.defaultLabel,routeName:l.routeName,shouldRender:l.customShouldRender||(({store:j})=>l.storeField?!!j[l.storeField]:!0),getLabel:l.getLabel||(l.labelField?({store:j})=>l.storeField&&j[l.storeField]?.[l.labelField]||l.defaultLabel:void 0),getColor:l.customGetColor||(({store:j})=>l.storeField&&j[l.storeField]?"primary":"dark"),getRouteParams:l.routeParamKey&&l.routeParamField?({store:j})=>({[l.routeParamKey]:l.storeField&&j[l.storeField]?.[l.routeParamField]}):void 0,clearActions:[...l.clearMethods?.map(j=>({store:t})=>t[j]?.())||[],...l.navActions?.map(j=>({navStore:t})=>j(t))||[]]}}const $o=/^\d{2}-\d{2}-\d{4}$/;function fc(l){const j=l.getTimezoneOffset()*6e4;return new Date(l.getTime()+j)}function jr(l){const j=/^\d{4}-\d{2}-\d{2}$/,t=/^\d{2}-\d{2}-\d{4}$/;if(j.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 Ji(l,j,t,v=[]){const m=typeof l=="string"?new Date(jr(l)):new Date(l);if(Number.isNaN(m.getTime()))return!1;if(j){const o=typeof j=="string"?new Date(jr(j)):new Date(j);if(m<o)return!1}if(t){const o=typeof t=="string"?new Date(jr(t)):new Date(t);if(m>o)return!1}return v.some(o=>{if(typeof o=="string"){const n=new Date(jr(o));return m.getFullYear()===n.getFullYear()&&m.getMonth()===n.getMonth()&&m.getDate()===n.getDate()}else{if(o instanceof Date)return m.getFullYear()===o.getFullYear()&&m.getMonth()===o.getMonth()&&m.getDate()===o.getDate();{const n=new Date(o.start_date),e=new Date(o.end_date);return m>=n&&m<=e}}})?!1:!v.some(o=>{if(typeof o=="object"&&!(o instanceof Date)&&o.start_date&&o.end_date){const n=new Date(o.start_date),e=new Date(o.end_date);if(n.getTime()===e.getTime())return m.getTime()===n.getTime()||m.getTime()===e.getTime()}return!1})}const sr={validateAndUpdate(l,j,t){return $o.test(j)?{...l,[t?"from":"to"]:j}:l},handlePickerUpdate(l){return l===null?{from:"",to:""}:typeof l=="string"?{from:l,to:l}:l},reset(){return{from:"",to:""}},handleInput(l,j){typeof l=="string"&&j(l)}},ea={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"},dc={class:"columns justify-end"},hc={class:"row items-center justify-end"},pc=_.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:"Field is required"},disabled:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},placeholder:{default:void 0},closeLabel:{default:"Close"}},emits:["update:date"],setup(l,{emit:j}){const t=l,v=j,m=_.useAttrs(),f=_.ref(t.date),a=_.ref(t.date),o=_.computed(()=>r=>{const u=r.replace(/\//g,"-");return Ji(u,t.minDate,t.maxDate,t.datesDisabled)}),n=r=>{f.value=r,a.value=r,v("update:date",r)},e=r=>{typeof r=="string"&&(f.value=r,a.value=r,v("update:date",r))};return _.watch(()=>t.date,r=>{r!==f.value&&(f.value=r,a.value=r)}),(r,u)=>(_.openBlock(),_.createElementBlock("div",dc,[_.createVNode(zr,_.mergeProps(_.unref(m),{class:"full-width","model-value":a.value,mask:"##-##-####",dense:"",label:r.label,"data-cy":"datePick",rules:r.required?[s=>!!s||r.requiredErrorMessage]:[],disable:r.disabled,required:r.required,outlined:r.outlined,placeholder:r.placeholder,"onUpdate:modelValue":e}),{append:_.withCtx(()=>[_.createVNode(St,{name:"event",class:"cursor-pointer","data-testid":"calendar-icon-picker"},{default:_.withCtx(()=>[_.createVNode(Jo,{cover:"","transition-show":"scale","transition-hide":"scale"},{default:_.withCtx(()=>[_.createVNode(Go,{mask:"DD-MM-YYYY","model-value":f.value,options:o.value,disable:r.disabled,"onUpdate:modelValue":n},{default:_.withCtx(()=>[_.createElementVNode("div",hc,[_.withDirectives(_.createVNode(bt,{label:r.closeLabel,color:"primary",flat:""},null,8,["label"]),[[Hi]])])]),_:1},8,["model-value","options","disable"])]),_:1})]),_:1})]),_:1},16,["model-value","label","rules","disable","required","outlined","placeholder"])]))}}),mc=Er(pc,[["__scopeId","data-v-b4c94b90"]]),gc={class:"row"},bc={class:"row no-wrap items-center"},vc={class:"row items-center justify-end"},yc={key:0,class:"row items-center text-warning text-caption"},wc={class:"row items-center justify-end q-ml-sm"},xc=_.defineComponent({__name:"DateRange",props:{from:{default:""},to:{default:""},labelStart:{default:"De"},labelEnd:{default:"à"},startDateHint:{default:""},resetLabel:{default:"Reset"},closeLabel:{default:"Close"},locale:{default:()=>ea},required:{type:Boolean,default:!1},requiredErrorMessage:{default:"Field is required"},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:{}},emits:["update:dateRange"],setup(l,{expose:j,emit:t}){const v=l,m=t,f=_.ref({from:v.from,to:v.to}),a=_.computed(()=>`from-date-${v.idCy}`),o=_.computed(()=>`to-date-${v.idCy}`),n=_.computed(()=>[...v.required?[d=>!!d||v.requiredErrorMessage]:[],...v.rules]),e=_.computed(()=>d=>{const h=d.replaceAll("/","-");return Ji(h,v.minDate,v.maxDate,v.datesDisabled)}),r=d=>{sr.handleInput(d,h=>{f.value=sr.validateAndUpdate(f.value,h,!0)})},u=d=>{sr.handleInput(d,h=>{f.value=sr.validateAndUpdate(f.value,h,!1)})},s=d=>{f.value=sr.handlePickerUpdate(d)},i=()=>{f.value=sr.reset()};return _.watch(f,d=>{m("update:dateRange",{...d})},{deep:!0}),_.watch(()=>v.from,d=>{d!==f.value.from&&(f.value.from=d)}),_.watch(()=>v.to,d=>{d!==f.value.to&&(f.value.to=d)}),j({resetDate:i}),(d,h)=>(_.openBlock(),_.createElementBlock("div",gc,[_.createElementVNode("div",bc,[_.createVNode(zr,_.mergeProps(d.$attrs,{"data-cy":a.value,"model-value":f.value.from,mask:"##-##-####",label:d.labelStart,rules:n.value,disable:d.disabled,required:d.required,"hide-bottom-space":"","onUpdate:modelValue":r}),null,16,["data-cy","model-value","label","rules","disable","required"]),_.createVNode(zr,_.mergeProps(d.$attrs,{"model-value":f.value.to,mask:"##-##-####",label:d.labelEnd,"hide-bottom-space":"",style:{"margin-left":"10px"},"data-cy":o.value,rules:n.value,disable:d.disabled,required:d.required,"onUpdate:modelValue":u}),null,16,["model-value","label","data-cy","rules","disable","required"]),_.createVNode(St,{name:"event",size:"30px",class:"q-ml-sm q-mt-sm cursor-pointer",style:{opacity:"0.55"},"data-cy":"calendar-icon-range"},{default:_.withCtx(()=>[_.createVNode(Jo,{cover:"","transition-show":"scale","transition-hide":"scale"},{default:_.withCtx(()=>[_.createVNode(Go,{modelValue:f.value,"onUpdate:modelValue":[h[0]||(h[0]=c=>f.value=c),s],mask:"DD-MM-YYYY","today-btn":"",range:"","data-cy":"date-picker-range",locale:d.locale,options:e.value,events:d.highlightEvents,"event-color":"warning",disable:d.disabled},{default:_.withCtx(()=>[_.createElementVNode("div",vc,[_.withDirectives(_.createVNode(bt,{label:d.closeLabel,color:"primary",flat:""},null,8,["label"]),[[Hi]])])]),_:1},8,["modelValue","locale","options","events","disable"])]),_:1})]),_:1})]),d.startDateHint?(_.openBlock(),_.createElementBlock("p",yc,_.toDisplayString(d.startDateHint),1)):_.createCommentVNode("",!0),_.createElementVNode("div",wc,[_.createVNode(bt,{class:"q-pa-sm",outlined:"",dense:"","data-cy":"reset-date",label:d.resetLabel,onClick:i},null,8,["label"])])]))}}),bn=tt({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(l,{slots:j,emit:t}){const v=_.getCurrentInstance(),{proxy:{$q:m}}=v,f=a=>{t("click",a)};return()=>{if(l.props===void 0)return _.h("th",{class:l.autoWidth===!0?"q-table--col-auto-width":"",onClick:f},mt(j.default));let a,o;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";o=vi(j.default,[]),o[r](_.h(St,{class:a.__iconClass,name:m.iconSet.table.arrowUp}))}else o=mt(j.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),f(r)}};return _.h("th",e,o)}}}),on=tt({name:"QTr",props:{props:Object,noHover:Boolean},setup(l,{slots:j}){const t=_.computed(()=>"q-tr"+(l.props===void 0||l.props.header===!0?"":" "+l.props.__trClass)+(l.noHover===!0?" q-tr--no-hover":""));return()=>_.h("tr",{style:l.props?.__trStyle,class:t.value},mt(j.default))}}),Sc=["text","rect","circle","QBtn","QBadge","QChip","QToolbar","QCheckbox","QRadio","QToggle","QSlider","QRange","QInput","QAvatar"],kc=["wave","pulse","pulse-x","pulse-y","fade","blink","none"],Qs=tt({name:"QSkeleton",props:{...It,tag:{type:String,default:"div"},type:{type:String,validator:l=>Sc.includes(l),default:"rect"},animation:{type:String,validator:l=>kc.includes(l),default:"wave"},animationSpeed:{type:[String,Number],default:1500},square:Boolean,bordered:Boolean,size:String,width:String,height:String},setup(l,{slots:j}){const t=_.getCurrentInstance(),v=Ot(l,t.proxy.$q),m=_.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]}}),f=_.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()=>_.h(l.tag,{class:f.value,style:m.value},mt(j.default))}}),Zn=tt({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(l,{slots:j}){const t=_.getCurrentInstance(),v=_.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 _.h("td",{class:v.value},mt(j.default));const m=t.vnode.key,f=(l.props.colsMap!==void 0?l.props.colsMap[m]:null)||l.props.col;if(f===void 0)return;const{row:a}=l.props;return _.h("td",{class:v.value+f.__tdClass(a),style:f.__tdStyle(a)},mt(j.default))}}}),Ks=tt({name:"QTooltip",inheritAttrs:!1,props:{...wo,...Bi,...Fr,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...Fr.transitionShow,default:"jump-down"},transitionHide:{...Fr.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:kn},self:{type:String,default:"top middle",validator:kn},offset:{type:Array,default:()=>[14,14],validator:Ro},scrollTarget:Rn,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...Ii],setup(l,{slots:j,emit:t,attrs:v}){let m,f;const a=_.getCurrentInstance(),{proxy:{$q:o}}=a,n=_.ref(null),e=_.ref(!1),r=_.computed(()=>_n(l.anchor,o.lang.rtl)),u=_.computed(()=>_n(l.self,o.lang.rtl)),s=_.computed(()=>l.persistent!==!0),{registerTick:i,removeTick:d}=Pi(),{registerTimeout:h}=Di(),{transitionProps:c,transitionStyle:g}=Fi(l),{localScrollTarget:p,changeScrollEvent:S,unconfigureScrollTarget:C}=So(l,E),{anchorEl:T,canShow:F,anchorEvents:z}=Ri({showing:e,configureAnchorEl:x}),{show:D,hide:N}=Oi({showing:e,canShow:F,handleShow:A,handleHide:M,hideOnRouteChange:s,processOnMount:!0});Object.assign(z,{delayShow:y,delayHide:w});const{showPortal:L,hidePortal:U,renderPortal:q}=ji(a,n,I,"tooltip");if(o.platform.is.mobile===!0){const W={anchorEl:T,innerRef:n,onClickOutside(K){return N(K),K.target.classList.contains("q-dialog__backdrop")&&xt(K),!0}},H=_.computed(()=>l.modelValue===null&&l.persistent!==!0&&e.value===!0);_.watch(H,K=>{(K===!0?To:Sn)(W)}),_.onBeforeUnmount(()=>{Sn(W)})}function A(W){L(),i(()=>{f=new MutationObserver(()=>b()),f.observe(n.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),b(),E()}),m===void 0&&(m=_.watch(()=>o.screen.width+"|"+o.screen.height+"|"+l.self+"|"+l.anchor+"|"+o.lang.rtl,b)),h(()=>{L(!0),t("show",W)},l.transitionDuration)}function M(W){d(),U(),k(),h(()=>{U(!0),t("hide",W)},l.transitionDuration)}function k(){f!==void 0&&(f.disconnect(),f=void 0),m!==void 0&&(m(),m=void 0),C(),ar(z,"tooltipTemp")}function b(){Ni({targetEl:n.value,offset:l.offset,anchorEl:T.value,anchorOrigin:r.value,selfOrigin:u.value,maxHeight:l.maxHeight,maxWidth:l.maxWidth})}function y(W){if(o.platform.is.mobile===!0){vn(),document.body.classList.add("non-selectable");const H=T.value,K=["touchmove","touchcancel","touchend","click"].map(P=>[H,P,"delayHide","passiveCapture"]);Ht(z,"tooltipTemp",K)}h(()=>{D(W)},l.delay)}function w(W){o.platform.is.mobile===!0&&(ar(z,"tooltipTemp"),vn(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),h(()=>{N(W)},l.hideDelay)}function x(){if(l.noParentEvent===!0||T.value===null)return;const W=o.platform.is.mobile===!0?[[T.value,"touchstart","delayShow","passive"]]:[[T.value,"mouseenter","delayShow","passive"],[T.value,"mouseleave","delayHide","passive"]];Ht(z,"anchor",W)}function E(){if(T.value!==null||l.scrollTarget!==void 0){p.value=Bn(T.value,l.scrollTarget);const W=l.noParentEvent===!0?b:N;S(p.value,W)}}function B(){return e.value===!0?_.h("div",{...v,ref:n,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",v.class],style:[v.style,g.value],role:"tooltip"},mt(j.default)):null}function I(){return _.h(_.Transition,c.value,B)}return _.onBeforeUnmount(k),Object.assign(a.proxy,{updatePosition:b}),q}}),_c=["horizontal","vertical","cell","none"],Cc=tt({name:"QMarkupTable",props:{...It,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:l=>_c.includes(l)}},setup(l,{slots:j}){const t=_.getCurrentInstance(),v=Ot(l,t.proxy.$q),m=_.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()=>_.h("div",{class:m.value},[_.h("table",{class:"q-table"},mt(j.default))])}});function ta(l,j){return _.h("div",l,[_.h("table",{class:"q-table"},j)])}const Ac={list:Wi,table:Cc},Ec=["list","table","__qtable"],Mc=tt({name:"QVirtualScroll",props:{...ci,type:{type:String,default:"list",validator:l=>Ec.includes(l)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:Rn},setup(l,{slots:j,attrs:t}){let v;const m=_.ref(null),f=_.computed(()=>l.itemsSize>=0&&l.itemsFn!==void 0?parseInt(l.itemsSize,10):Array.isArray(l.items)?l.items.length:0),{virtualScrollSliceRange:a,localResetVirtualScroll:o,padVirtualScroll:n,onVirtualScrollEvt:e}=Po({virtualScrollLength:f,getVirtualScrollTarget:d,getVirtualScrollEl:i}),r=_.computed(()=>{if(f.value===0)return[];const p=(S,C)=>({index:a.value.from+C,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=_.computed(()=>"q-virtual-scroll q-virtual-scroll"+(l.virtualScrollHorizontal===!0?"--horizontal":"--vertical")+(l.scrollTarget!==void 0?"":" scroll")),s=_.computed(()=>l.scrollTarget!==void 0?{}:{tabindex:0});_.watch(f,()=>{o()}),_.watch(()=>l.scrollTarget,()=>{c(),h()});function i(){return m.value.$el||m.value}function d(){return v}function h(){v=Bn(i(),l.scrollTarget),v.addEventListener("scroll",e,_t.passive)}function c(){v!==void 0&&(v.removeEventListener("scroll",e,_t.passive),v=void 0)}function g(){let p=n(l.type==="list"?"div":"tbody",r.value.map(j.default));return j.before!==void 0&&(p=j.before().concat(p)),Dt(j.after,p)}return _.onBeforeMount(()=>{o()}),_.onMounted(()=>{h()}),_.onActivated(()=>{h()}),_.onDeactivated(()=>{c()}),_.onBeforeUnmount(()=>{c()}),()=>{if(j.default===void 0){console.error("QVirtualScroll: default scoped slot is required for rendering");return}return l.type==="__qtable"?ta({ref:m,class:"q-table__middle "+u.value},g()):_.h(Ac[l.type],{...t,ref:m,class:[t.class,u.value],...s.value},g)}}}),Tc={xs:2,sm:4,md:6,lg:10,xl:14};function Xs(l,j,t){return{transform:j===!0?`translateX(${t.lang.rtl===!0?"-":""}100%) scale3d(${-l},1,1)`:`scale3d(${l},1,1)`}}const Rc=tt({name:"QLinearProgress",props:{...It,...Cr,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:j}){const{proxy:t}=_.getCurrentInstance(),v=Ot(l,t.$q),m=Ar(l,Tc),f=_.computed(()=>l.indeterminate===!0||l.query===!0),a=_.computed(()=>l.reverse!==l.query),o=_.computed(()=>({...m.value!==null?m.value:{},"--q-linear-progress-speed":`${l.animationSpeed}ms`})),n=_.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=_.computed(()=>Xs(l.buffer!==void 0?l.buffer:1,a.value,t.$q)),r=_.computed(()=>`with${l.instantFeedback===!0?"out":""}-transition`),u=_.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}`:"")),s=_.computed(()=>Xs(f.value===!0?1:l.value,a.value,t.$q)),i=_.computed(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${r.value} q-linear-progress__model--${f.value===!0?"in":""}determinate`),d=_.computed(()=>({width:`${l.value*100}%`})),h=_.computed(()=>`q-linear-progress__stripe absolute-${l.reverse===!0?"right":"left"} q-linear-progress__stripe--${r.value}`);return()=>{const c=[_.h("div",{class:u.value,style:e.value}),_.h("div",{class:i.value,style:s.value})];return l.stripe===!0&&f.value===!1&&c.push(_.h("div",{class:h.value,style:d.value})),_.h("div",{class:n.value,style:o.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":l.indeterminate===!0?void 0:l.value},Dt(j.default,c))}}});let Ir=0;const Bc={fullscreen:Boolean,noRouteFullscreenExit:Boolean},Ic=["update:fullscreen","fullscreen"];function Oc(){const l=_.getCurrentInstance(),{props:j,emit:t,proxy:v}=l;let m,f;const a=_.ref(!1);yi(l)===!0&&_.watch(()=>v.$route.fullPath,()=>{j.noRouteFullscreenExit!==!0&&e()}),_.watch(()=>j.fullscreen,r=>{a.value!==r&&o()}),_.watch(a,r=>{t("update:fullscreen",r),t("fullscreen",r)});function o(){a.value===!0?e():n()}function n(){a.value!==!0&&(a.value=!0,f=v.$el.parentNode,f.replaceChild(m,v.$el),document.body.appendChild(v.$el),Ir++,Ir===1&&document.body.classList.add("q-body--fullscreen-mixin"))}function e(){a.value===!0&&(f.replaceChild(v.$el,m),a.value=!1,Ir=Math.max(0,Ir-1),Ir===0&&(document.body.classList.remove("q-body--fullscreen-mixin"),v.$el.scrollIntoView!==void 0&&setTimeout(()=>{v.$el.scrollIntoView()})))}return _.onBeforeMount(()=>{m=document.createElement("span")}),_.onMounted(()=>{j.fullscreen===!0&&n()}),_.onBeforeUnmount(e),Object.assign(v,{toggleFullscreen:o,setFullscreen:n,exitFullscreen:e}),{inFullscreen:a,toggleFullscreen:o}}function jc(l,j){return new Date(l)-new Date(j)}const Fc={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:l=>l==="ad"||l==="da",default:"ad"}};function Pc(l,j,t,v){const m=_.computed(()=>{const{sortBy:o}=j.value;return o&&t.value.find(n=>n.name===o)||null}),f=_.computed(()=>l.sortMethod!==void 0?l.sortMethod:(o,n,e)=>{const r=t.value.find(i=>i.name===n);if(r===void 0||r.field===void 0)return o;const u=e===!0?-1:1,s=typeof r.field=="function"?i=>r.field(i):i=>i[r.field];return o.sort((i,d)=>{let h=s(i),c=s(d);return r.rawSort!==void 0?r.rawSort(h,c,i,d)*u:h==null?-1*u:c==null?1*u:r.sort!==void 0?r.sort(h,c,i,d)*u:fi(h)===!0&&fi(c)===!0?(h-c)*u:An(h)===!0&&An(c)===!0?jc(h,c)*u:typeof h=="boolean"&&typeof c=="boolean"?(h-c)*u:([h,c]=[h,c].map(g=>(g+"").toLocaleString().toLowerCase()),h<c?-1*u:h===c?0:u)})});function a(o){let n=l.columnSortOrder;if(No(o)===!0)o.sortOrder&&(n=o.sortOrder),o=o.name;else{const u=t.value.find(s=>s.name===o);u?.sortOrder&&(n=u.sortOrder)}let{sortBy:e,descending:r}=j.value;e!==o?(e=o,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:f,sort:a}}const Dc={filter:[String,Object],filterMethod:Function};function Nc(l,j){const t=_.computed(()=>l.filterMethod!==void 0?l.filterMethod:(v,m,f,a)=>{const o=m?m.toLowerCase():"";return v.filter(n=>f.some(e=>{const r=a(e,n)+"";return(r==="undefined"||r==="null"?"":r.toLowerCase()).indexOf(o)!==-1}))});return _.watch(()=>l.filter,()=>{_.nextTick(()=>{j({page:1},!0)})},{deep:!0}),{computedFilterMethod:t}}function Lc(l,j){for(const t in j)if(j[t]!==l[t])return!1;return!0}function Gs(l){return l.page<1&&(l.page=1),l.rowsPerPage!==void 0&&l.rowsPerPage<1&&(l.rowsPerPage=0),l}const qc={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function zc(l,j){const{props:t,emit:v}=l,m=_.ref(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:t.rowsPerPageOptions.length!==0?t.rowsPerPageOptions[0]:5},t.pagination)),f=_.computed(()=>{const r=t["onUpdate:pagination"]!==void 0?{...m.value,...t.pagination}:m.value;return Gs(r)}),a=_.computed(()=>f.value.rowsNumber!==void 0);function o(r){n({pagination:r,filter:t.filter})}function n(r={}){_.nextTick(()=>{v("request",{pagination:r.pagination||f.value,filter:r.filter||t.filter,getCellValue:j})})}function e(r,u){const s=Gs({...f.value,...r});if(Lc(f.value,s)===!0){a.value===!0&&u===!0&&o(s);return}if(a.value===!0){o(s);return}t.pagination!==void 0&&t["onUpdate:pagination"]!==void 0?v("update:pagination",s):m.value=s}return{innerPagination:m,computedPagination:f,isServerSide:a,requestServerInteraction:n,setPagination:e}}function Vc(l,j,t,v,m,f){const{props:a,emit:o,proxy:{$q:n}}=l,e=_.computed(()=>v.value===!0?t.value.rowsNumber||0:f.value),r=_.computed(()=>{const{page:C,rowsPerPage:T}=t.value;return(C-1)*T}),u=_.computed(()=>{const{page:C,rowsPerPage:T}=t.value;return C*T}),s=_.computed(()=>t.value.page===1),i=_.computed(()=>t.value.rowsPerPage===0?1:Math.max(1,Math.ceil(e.value/t.value.rowsPerPage))),d=_.computed(()=>u.value===0?!0:t.value.page>=i.value),h=_.computed(()=>(a.rowsPerPageOptions.includes(j.value.rowsPerPage)?a.rowsPerPageOptions:[j.value.rowsPerPage].concat(a.rowsPerPageOptions)).map(T=>({label:T===0?n.lang.table.allRows:""+T,value:T})));_.watch(i,(C,T)=>{if(C===T)return;const F=t.value.page;C&&!F?m({page:1}):C<F&&m({page:C})});function c(){m({page:1})}function g(){const{page:C}=t.value;C>1&&m({page:C-1})}function p(){const{page:C,rowsPerPage:T}=t.value;u.value>0&&C*T<e.value&&m({page:C+1})}function S(){m({page:i.value})}return a["onUpdate:pagination"]!==void 0&&o("update:pagination",{...t.value}),{firstRowIndex:r,lastRowIndex:u,isFirstPage:s,isLastPage:d,pagesNumber:i,computedRowsPerPageOptions:h,computedRowsNumber:e,firstPage:c,prevPage:g,nextPage:p,lastPage:S}}const Uc={selection:{type:String,default:"none",validator:l=>["single","multiple","none"].includes(l)},selected:{type:Array,default:()=>[]}},Wc=["update:selected","selection"];function Hc(l,j,t,v){const m=_.computed(()=>{const d={};return l.selected.map(v.value).forEach(h=>{d[h]=!0}),d}),f=_.computed(()=>l.selection!=="none"),a=_.computed(()=>l.selection==="single"),o=_.computed(()=>l.selection==="multiple"),n=_.computed(()=>t.value.length!==0&&t.value.every(d=>m.value[v.value(d)]===!0)),e=_.computed(()=>n.value!==!0&&t.value.some(d=>m.value[v.value(d)]===!0)),r=_.computed(()=>l.selected.length);function u(d){return m.value[d]===!0}function s(){j("update:selected",[])}function i(d,h,c,g){j("selection",{rows:h,added:c,keys:d,evt:g});const p=a.value===!0?c===!0?h:[]:c===!0?l.selected.concat(h):l.selected.filter(S=>d.includes(v.value(S))===!1);j("update:selected",p)}return{hasSelectionMode:f,singleSelection:a,multipleSelection:o,allRowsSelected:n,someRowsSelected:e,rowsSelectedNumber:r,isRowSelected:u,clearSelection:s,updateSelection:i}}function Js(l){return Array.isArray(l)?l.slice():[]}const Yc={expanded:Array},Qc=["update:expanded"];function Kc(l,j){const t=_.ref(Js(l.expanded));_.watch(()=>l.expanded,a=>{t.value=Js(a)});function v(a){return t.value.includes(a)}function m(a){l.expanded!==void 0?j("update:expanded",a):t.value=a}function f(a,o){const n=t.value.slice(),e=n.indexOf(a);o===!0?e===-1&&(n.push(a),m(n)):e!==-1&&(n.splice(e,1),m(n))}return{isRowExpanded:v,setExpanded:m,updateExpanded:f}}const Xc={visibleColumns:Array};function Gc(l,j,t){const v=_.computed(()=>{if(l.columns!==void 0)return l.columns;const o=l.rows[0];return o!==void 0?Object.keys(o).map(n=>({name:n,label:n.toUpperCase(),field:n,align:fi(o[n])?"right":"left",sortable:!0})):[]}),m=_.computed(()=>{const{sortBy:o,descending:n}=j.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",s=`text-${u}`;return{...r,align:u,__iconClass:`q-table__sort-icon q-table__sort-icon--${u}`,__thClass:s+(r.headerClasses!==void 0?" "+r.headerClasses:"")+(r.sortable===!0?" sortable":"")+(r.name===o?` 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"?()=>s+" "+r.classes:i=>s+" "+r.classes(i):()=>s}})}),f=_.computed(()=>{const o={};return m.value.forEach(n=>{o[n.name]=n}),o}),a=_.computed(()=>l.tableColspan!==void 0?l.tableColspan:m.value.length+(t.value===!0?1:0));return{colList:v,computedCols:m,computedColsMap:f,computedColspan:a}}const an="q-table__bottom row items-center",ra={};Fo.forEach(l=>{ra[l]={}});const Jc=tt({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:{},...ra,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,...It,...Bc,...Xc,...Dc,...qc,...Yc,...Uc,...Fc},emits:["request","virtualScroll",...Ic,...Qc,...Wc],setup(l,{slots:j,emit:t}){const v=_.getCurrentInstance(),{proxy:{$q:m}}=v,f=Ot(l,m),{inFullscreen:a,toggleFullscreen:o}=Oc(),n=_.computed(()=>typeof l.rowKey=="function"?l.rowKey:he=>he[l.rowKey]),e=_.ref(null),r=_.ref(null),u=_.computed(()=>l.grid!==!0&&l.virtualScroll===!0),s=_.computed(()=>" q-table__card"+(f.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=_.computed(()=>`q-table__container q-table--${l.separator}-separator column no-wrap`+(l.grid===!0?" q-table--grid":s.value)+(f.value===!0?" q-table--dark":"")+(l.dense===!0?" q-table--dense":"")+(l.wrapCells===!1?" q-table--no-wrap":"")+(a.value===!0?" fullscreen scroll":"")),d=_.computed(()=>i.value+(l.loading===!0?" q-table--loading":""));_.watch(()=>l.tableStyle+l.tableClass+l.tableHeaderStyle+l.tableHeaderClass+i.value,()=>{u.value===!0&&r.value?.reset()});const{innerPagination:h,computedPagination:c,isServerSide:g,requestServerInteraction:p,setPagination:S}=zc(v,Ne),{computedFilterMethod:C}=Nc(l,S),{isRowExpanded:T,setExpanded:F,updateExpanded:z}=Kc(l,t),D=_.computed(()=>{let he=l.rows;if(g.value===!0||he.length===0)return he;const{sortBy:we,descending:Te}=c.value;return l.filter&&(he=C.value(he,l.filter,B.value,Ne)),H.value!==null&&(he=K.value(l.rows===he?he.slice():he,we,Te)),he}),N=_.computed(()=>D.value.length),L=_.computed(()=>{let he=D.value;if(g.value===!0)return he;const{rowsPerPage:we}=c.value;return we!==0&&(Y.value===0&&l.rows!==he?he.length>O.value&&(he=he.slice(0,O.value)):he=he.slice(Y.value,O.value)),he}),{hasSelectionMode:U,singleSelection:q,multipleSelection:A,allRowsSelected:M,someRowsSelected:k,rowsSelectedNumber:b,isRowSelected:y,clearSelection:w,updateSelection:x}=Hc(l,t,L,n),{colList:E,computedCols:B,computedColsMap:I,computedColspan:W}=Gc(l,c,U),{columnToSort:H,computedSortMethod:K,sort:P}=Pc(l,c,E,S),{firstRowIndex:Y,lastRowIndex:O,isFirstPage:R,isLastPage:V,pagesNumber:Q,computedRowsPerPageOptions:$,computedRowsNumber:G,firstPage:ee,prevPage:ae,nextPage:se,lastPage:J}=Vc(v,h,c,g,S,N),ne=_.computed(()=>L.value.length===0),ie=_.computed(()=>{const he={};return Fo.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 ot();const he=l.hideHeader!==!0?Pe:null;if(u.value===!0){const Te=j["top-row"],Oe=j["bottom-row"],Ce={default:Qe=>xe(Qe.item,j.body,Qe.index)};if(Te!==void 0){const Qe=_.h("tbody",Te({cols:B.value}));Ce.before=he===null?()=>Qe:()=>[he()].concat(Qe)}else he!==null&&(Ce.before=he);return Oe!==void 0&&(Ce.after=()=>_.h("tbody",Oe({cols:B.value}))),_.h(Mc,{ref:r,class:l.tableClass,style:l.tableStyle,...ie.value,scrollTarget:l.virtualScrollTarget,items:L.value,type:"__qtable",tableColspan:W.value,onVirtualScroll:me},Ce)}const we=[Ie()];return he!==null&&we.unshift(he()),ta({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"),Ce=Te.offsetTop-l.virtualScrollStickySizeStart,Qe=Ce<Oe.scrollTop?"decrease":"increase";Oe.scrollTop=Ce,t("virtualScroll",{index:he,from:0,to:h.value.rowsPerPage-1,direction:Qe})}}function me(he){t("virtualScroll",he)}function be(){return[_.h(Rc,{class:"q-table__linear-progress",color:l.color,dark:f.value,indeterminate:!0,trackColor:"transparent"})]}function xe(he,we,Te){const Oe=n.value(he),Ce=y(Oe);if(we!==void 0){const X={key:Oe,row:he,pageIndex:Te,__trClass:Ce?"selected":""};if(l.tableRowStyleFn!==void 0&&(X.__trStyle=l.tableRowStyleFn(he)),l.tableRowClassFn!==void 0){const re=l.tableRowClassFn(he);re&&(X.__trClass=`${re} ${X.__trClass}`)}return we(Ee(X))}const Qe=j["body-cell"],Ke=B.value.map(X=>{const re=j[`body-cell-${X.name}`],le=re!==void 0?re:Qe;return le!==void 0?le(Me({key:Oe,row:he,pageIndex:Te,col:X})):_.h("td",{class:X.__tdClass(he),style:X.__tdStyle(he)},Ne(X,he))});if(U.value===!0){const X=j["body-selection"],re=X!==void 0?X(We({key:Oe,row:he,pageIndex:Te})):[_.h(dn,{modelValue:Ce,color:l.color,dark:f.value,dense:l.dense,"onUpdate:modelValue":(le,pe)=>{x([Oe],[he],le,pe)}})];Ke.unshift(_.h("td",{class:"q-table--col-auto-width"},re))}const te={key:Oe,class:{selected:Ce}};if(l.onRowClick!==void 0&&(te.class["cursor-pointer"]=!0,te.onClick=X=>{t("rowClick",X,he,Te)}),l.onRowDblclick!==void 0&&(te.class["cursor-pointer"]=!0,te.onDblclick=X=>{t("rowDblclick",X,he,Te)}),l.onRowContextmenu!==void 0&&(te.class["cursor-pointer"]=!0,te.onContextmenu=X=>{t("rowContextmenu",X,he,Te)}),l.tableRowStyleFn!==void 0&&(te.style=l.tableRowStyleFn(he)),l.tableRowClassFn!==void 0){const X=l.tableRowClassFn(he);X&&(te.class[X]=!0)}return _.h("tr",te,Ke)}function Ie(){const he=j.body,we=j["top-row"],Te=j["bottom-row"];let Oe=L.value.map((Ce,Qe)=>xe(Ce,he,Qe));return we!==void 0&&(Oe=we({cols:B.value}).concat(Oe)),Te!==void 0&&(Oe=Oe.concat(Te({cols:B.value}))),_.h("tbody",Oe)}function Ee(he){return qe(he),he.cols=he.cols.map(we=>Lt({...we},"value",()=>Ne(we,he.row))),he}function Me(he){return qe(he),Lt(he,"value",()=>Ne(he.col,he.row)),he}function We(he){return qe(he),he}function qe(he){Object.assign(he,{cols:B.value,colsMap:I.value,sort:P,rowIndex:Y.value+he.pageIndex,color:l.color,dark:f.value,dense:l.dense}),U.value===!0&&Lt(he,"selected",()=>y(he.key),(we,Te)=>{x([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 ze=_.computed(()=>({pagination:c.value,pagesNumber:Q.value,isFirstPage:R.value,isLastPage:V.value,firstPage:ee,prevPage:ae,nextPage:se,lastPage:J,inFullscreen:a.value,toggleFullscreen:o}));function je(){const he=j.top,we=j["top-left"],Te=j["top-right"],Oe=j["top-selection"],Ce=U.value===!0&&Oe!==void 0&&b.value>0,Qe="q-table__top relative-position row items-center";if(he!==void 0)return _.h("div",{class:Qe},[he(ze.value)]);let Ke;if(Ce===!0?Ke=Oe(ze.value).slice():(Ke=[],we!==void 0?Ke.push(_.h("div",{class:"q-table__control"},[we(ze.value)])):l.title&&Ke.push(_.h("div",{class:"q-table__control"},[_.h("div",{class:["q-table__title",l.titleClass]},l.title)]))),Te!==void 0&&(Ke.push(_.h("div",{class:"q-table__separator col"})),Ke.push(_.h("div",{class:"q-table__control"},[Te(ze.value)]))),Ke.length!==0)return _.h("div",{class:Qe},Ke)}const ke=_.computed(()=>k.value===!0?null:M.value);function Pe(){const he=Ue();return l.loading===!0&&j.loading===void 0&&he.push(_.h("tr",{class:"q-table__progress"},[_.h("th",{class:"relative-position",colspan:W.value},be())])),_.h("thead",he)}function Ue(){const he=j.header,we=j["header-cell"];if(he!==void 0)return he(Le({header:!0})).slice();const Te=B.value.map(Oe=>{const Ce=j[`header-cell-${Oe.name}`],Qe=Ce!==void 0?Ce:we,Ke=Le({col:Oe});return Qe!==void 0?Qe(Ke):_.h(bn,{key:Oe.name,props:Ke},()=>Oe.label)});if(q.value===!0&&l.grid!==!0)Te.unshift(_.h("th",{class:"q-table--col-auto-width"}," "));else if(A.value===!0){const Oe=j["header-selection"],Ce=Oe!==void 0?Oe(Le({})):[_.h(dn,{color:l.color,modelValue:ke.value,dark:f.value,dense:l.dense,"onUpdate:modelValue":Ge})];Te.unshift(_.h("th",{class:"q-table--col-auto-width"},Ce))}return[_.h("tr",{class:l.tableHeaderClass,style:l.tableHeaderStyle},Te)]}function Le(he){return Object.assign(he,{cols:B.value,sort:P,colsMap:I.value,color:l.color,dark:f.value,dense:l.dense}),A.value===!0&&Lt(he,"selected",()=>ke.value,Ge),he}function Ge(he){k.value===!0&&(he=!1),x(L.value.map(n.value),L.value,he)}const $e=_.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(ne.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=j["no-data"],Ce=Oe!==void 0?[Oe({message:Te,icon:m.iconSet.table.warning,filter:l.filter})]:[_.h(St,{class:"q-table__bottom-nodata-icon",name:m.iconSet.table.warning}),Te];return _.h("div",{class:an+" q-table__bottom--nodata"},Ce)}const he=j.bottom;if(he!==void 0)return _.h("div",{class:an},[he(ze.value)]);const we=l.hideSelectedBanner!==!0&&U.value===!0&&b.value>0?[_.h("div",{class:"q-table__control"},[_.h("div",[(l.selectedRowsLabel||m.lang.table.selectedRecords)(b.value)])])]:[];if(l.hidePagination!==!0)return _.h("div",{class:an+" justify-end"},et(we));if(we.length!==0)return _.h("div",{class:an},we)}function nt(he){S({page:1,rowsPerPage:he.value})}function et(he){let we;const{rowsPerPage:Te}=c.value,Oe=l.paginationLabel||m.lang.table.pagination,Ce=j.pagination,Qe=l.rowsPerPageOptions.length>1;if(he.push(_.h("div",{class:"q-table__separator col"})),Qe===!0&&he.push(_.h("div",{class:"q-table__control"},[_.h("span",{class:"q-table__bottom-item"},[l.rowsPerPageLabel||m.lang.table.recordsPerPage]),_.h(Ui,{class:"q-table__select inline q-table__bottom-item",color:l.color,modelValue:Te,options:$.value,displayValue:Te===0?m.lang.table.allRows:Te,dark:f.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":nt})])),Ce!==void 0)we=Ce(ze.value);else if(we=[_.h("span",Te!==0?{class:"q-table__bottom-item"}:{},[Te?Oe(Y.value+1,Math.min(O.value,G.value),G.value):Oe(1,N.value,G.value)])],Te!==0&&Q.value>1){const Ke={color:l.color,round:!0,dense:!0,flat:!0};l.dense===!0&&(Ke.size="sm"),Q.value>2&&we.push(_.h(bt,{key:"pgFirst",...Ke,icon:$e.value[0],disable:R.value,"aria-label":m.lang.pagination.first,onClick:ee})),we.push(_.h(bt,{key:"pgPrev",...Ke,icon:$e.value[1],disable:R.value,"aria-label":m.lang.pagination.prev,onClick:ae}),_.h(bt,{key:"pgNext",...Ke,icon:$e.value[2],disable:V.value,"aria-label":m.lang.pagination.next,onClick:se})),Q.value>2&&we.push(_.h(bt,{key:"pgLast",...Ke,icon:$e.value[3],disable:V.value,"aria-label":m.lang.pagination.last,onClick:J}))}return he.push(_.h("div",{class:"q-table__control"},we)),he}function Ye(){const he=l.gridHeader===!0?[_.h("table",{class:"q-table"},[Pe()])]:l.loading===!0&&j.loading===void 0?be():void 0;return _.h("div",{class:"q-table__middle"},he)}function ot(){const he=j.item!==void 0?j.item:we=>{const Te=we.cols.map(Ce=>_.h("div",{class:"q-table__grid-item-row"},[_.h("div",{class:"q-table__grid-item-title"},[Ce.label]),_.h("div",{class:"q-table__grid-item-value"},[Ce.value])]));if(U.value===!0){const Ce=j["body-selection"],Qe=Ce!==void 0?Ce(we):[_.h(dn,{modelValue:we.selected,color:l.color,dark:f.value,dense:l.dense,"onUpdate:modelValue":(Ke,te)=>{x([we.key],[we.row],Ke,te)}})];Te.unshift(_.h("div",{class:"q-table__grid-item-row"},Qe),_.h(di,{dark:f.value}))}const Oe={class:["q-table__grid-item-card"+s.value,l.cardClass],style:l.cardStyle};if(l.cardStyleFn!==void 0&&(Oe.style=[Oe.style,l.cardStyleFn(we.row)]),l.cardClassFn!==void 0){const Ce=l.cardClassFn(we.row);Ce&&(Oe.class[0]+=` ${Ce}`)}return(l.onRowClick!==void 0||l.onRowDblclick!==void 0||l.onRowContextmenu!==void 0)&&(Oe.class[0]+=" cursor-pointer",l.onRowClick!==void 0&&(Oe.onClick=Ce=>{t("RowClick",Ce,we.row,we.pageIndex)}),l.onRowDblclick!==void 0&&(Oe.onDblclick=Ce=>{t("RowDblclick",Ce,we.row,we.pageIndex)}),l.onRowContextmenu!==void 0&&(Oe.onContextmenu=Ce=>{t("rowContextmenu",Ce,we.row,we.pageIndex)})),_.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":"")},[_.h("div",Oe,Te)])};return _.h("div",{class:["q-table__grid-content row",l.cardContainerClass],style:l.cardContainerStyle},L.value.map((we,Te)=>he(Ee({key:n.value(we),row:we,pageIndex:Te}))))}return Object.assign(v.proxy,{requestServerInteraction:p,setPagination:S,firstPage:ee,prevPage:ae,nextPage:se,lastPage:J,isRowSelected:y,clearSelection:w,isRowExpanded:T,setExpanded:F,sort:P,resetVirtualScroll:fe,scrollTo:de,getCellValue:Ne}),ca(v.proxy,{filteredSortedRows:()=>D.value,computedRows:()=>L.value,computedRowsNumber:()=>G.value}),()=>{const he=[je()],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&&j.loading!==void 0&&he.push(j.loading()),_.h("div",we,he)}}}),Zc={shouldShowExpandButton:()=>!0};function Zs(l,j){return typeof j.field=="function"?j.field(l):l[j.field]}function mi(l,j){return typeof l.visible=="function"?l.visible(j):l.visible!==!1}function wr(l,j){return typeof l.disabled=="function"?l.disabled(j):!!l.disabled}function $s(l,j,t,v){return l.filter(m=>mi(m,j)&&(m.position===t||m.position==="both")&&(!v||m.columnName===v))}function ln(l,j){return wr(l,j)?"grey":l.color||"primary"}function un(l,j,t,v="action"){return l.testId?typeof l.testId=="function"?l.testId(j):l.testId:`${v}-${l.id}-${j[t]}`}const $c={key:0,"auto-width":""},ef=["onClick"],tf={class:"flex items-center"},rf={colspan:"100%"},nf=_.defineComponent({__name:"CustomTable",props:{columns:{},results:{},filter:{default:""},pagination:{},loading:{type:Boolean,default:!1},onRequest:{},rowKey:{default:"id"},services:{default:()=>({})},conditionals:{default:()=>({})},actions:{type:[Array,Function],default:()=>[]},showSkeleton:{type:Boolean},rowClasses:{type:[String,Function],default:void 0}},emits:["update:pagination"],setup(l,{emit:j}){const t=l,v=j,m=_.ref([]),f=_.useSlots(),a=_.computed(()=>!!f.expanded),o=_.computed({get(){return t.pagination},set(F){v("update:pagination",F)}}),n=_.computed(()=>({...Zc,...t.conditionals})),e=F=>n.value.shouldShowExpandButton(F),r=F=>m.value.includes(F[t.rowKey]),u=_.computed(()=>t.results.length===0?!1:typeof t.actions=="function"?!0:t.actions.some(F=>mi(F,t.results[0])&&(F.position==="row"||F.position==="both"))),s=F=>t.rowClasses&&typeof t.rowClasses=="function"?t.rowClasses(F):t.rowClasses||"";function i(F){return typeof t.actions=="function"?t.actions(F):t.actions.filter(z=>mi(z,F))}function d(F){return $s(i(F),F,"row")}function h(F,z){return $s(i(F),F,"cell",z)}function c(F){const z=g(F);z&&!wr(z,F)&&z.handler(F)}function g(F){return i(F).find(D=>D.id==="edit")}function p(F,z){const D=h(F,z);for(const N of D)wr(N,F)||N.handler(F)}async function S(F,z=!1){const D=F[t.rowKey];if(r(F)||z)m.value=m.value.filter(N=>N!==D);else if(m.value=[D],t.services.fetchDetails)try{F.details=await t.services.fetchDetails(F)}catch(N){console.error("Error fetching details:",N)}}async function C(F,z){if(!wr(F,z))try{F.isCancel&&await S(z,!0),F.handler(z)}catch(D){console.error(`Error executing action ${F.id}:`,D)}}function T(F){o.value=F.pagination,t.onRequest&&t.onRequest(F)}return(F,z)=>(_.openBlock(),_.createBlock(Jc,{pagination:o.value,"onUpdate:pagination":z[0]||(z[0]=D=>o.value=D),columns:F.columns,rows:F.results,filter:F.filter,"row-key":F.rowKey,"binary-state-sort":"","rows-per-page-options":o.value.rowsPerPageOptions,onRequest:T,loading:F.loading,"hide-no-data":F.loading,class:"q-mb-xl"},{header:_.withCtx(D=>[_.createVNode(on,{props:D},{default:_.withCtx(()=>[a.value?(_.openBlock(),_.createBlock(bn,{key:0,"auto-width":""})):_.createCommentVNode("",!0),(_.openBlock(!0),_.createElementBlock(_.Fragment,null,_.renderList(D.cols,N=>(_.openBlock(),_.createBlock(bn,{key:N.name,props:D},{default:_.withCtx(()=>[_.createTextVNode(_.toDisplayString(N.label),1)]),_:2},1032,["props"]))),128)),u.value?(_.openBlock(),_.createBlock(bn,{key:1},{default:_.withCtx(()=>z[1]||(z[1]=[_.createTextVNode("Actions")])),_:1,__:[1]})):_.createCommentVNode("",!0)]),_:2},1032,["props"])]),body:_.withCtx(D=>[F.showSkeleton?(_.openBlock(),_.createElementBlock(_.Fragment,{key:0},_.renderList(1,N=>_.createVNode(on,{key:`skeleton-${N}`},{default:_.withCtx(()=>[(_.openBlock(!0),_.createElementBlock(_.Fragment,null,_.renderList(F.columns,L=>(_.openBlock(),_.createBlock(Zn,{key:L.name},{default:_.withCtx(()=>[_.createVNode(Qs,{type:"text"})]),_:2},1024))),128)),u.value?(_.openBlock(),_.createBlock(Zn,{key:0},{default:_.withCtx(()=>[_.createVNode(Qs,{type:"QBtn"})]),_:1})):_.createCommentVNode("",!0)]),_:2},1024)),64)):(_.openBlock(),_.createBlock(on,{key:1,"data-cy":`row-${D.row[F.rowKey]}`,props:D,class:_.normalizeClass([{"bg-grey-3":D.row.archived},s(D.row)]),onDblclick:N=>c(D.row)},{default:_.withCtx(()=>[a.value?(_.openBlock(),_.createElementBlock("td",$c,[_.renderSlot(F.$slots,"expand-button",{row:D.row,expanded:r(D.row),toggle:()=>S(D.row)},()=>[e(D.row)?(_.openBlock(),_.createBlock(bt,{key:0,"data-cy":`expand-button-${D.row[F.rowKey]}`,size:"sm",color:"primary",round:"",dense:"",icon:r(D.row)?"remove":"add",onClick:N=>S(D.row)},null,8,["data-cy","icon","onClick"])):_.createCommentVNode("",!0)])])):_.createCommentVNode("",!0),(_.openBlock(!0),_.createElementBlock(_.Fragment,null,_.renderList(D.cols,N=>(_.openBlock(),_.createElementBlock("td",{key:N.name,onClick:_.withModifiers(L=>p(D.row,N.name),["stop"])},[_.renderSlot(F.$slots,"body-cell",{row:D.row,col:N,value:_.unref(Zs)(D.row,N)},()=>[_.createElementVNode("div",tf,[_.createElementVNode("span",null,_.toDisplayString(_.unref(Zs)(D.row,N)),1),(_.openBlock(!0),_.createElementBlock(_.Fragment,null,_.renderList(h(D.row,N.name),L=>(_.openBlock(),_.createElementBlock(_.Fragment,{key:L.id},[L.isButton?(_.openBlock(),_.createBlock(bt,_.mergeProps({key:0,color:_.unref(ln)(L,D.row),size:L.size||"sm",class:L.class,disabled:_.unref(wr)(L,D.row),label:L.label},{ref_for:!0},L.buttonProps||{},{"data-cy":_.unref(un)(L,D.row,F.rowKey),onClick:_.withModifiers(U=>C(L,D.row),["stop"])}),null,16,["color","size","class","disabled","label","data-cy","onClick"])):(_.openBlock(),_.createBlock(St,{key:1,class:"cursor-pointer q-ml-sm",name:L.icon,color:_.unref(ln)(L,D.row),size:L.size||"20px","data-cy":_.unref(un)(L,D.row,F.rowKey,"cell-icon"),onClick:_.withModifiers(U=>C(L,D.row),["stop"])},{default:_.withCtx(()=>[L.label?(_.openBlock(),_.createBlock(Ks,{key:0},{default:_.withCtx(()=>[_.createTextVNode(_.toDisplayString(L.label),1)]),_:2},1024)):_.createCommentVNode("",!0)]),_:2},1032,["name","color","size","data-cy","onClick"]))],64))),128))])])],8,ef))),128)),_.createVNode(Zn,{class:_.normalizeClass(["row items-center justify-center no-wrap",s(D.row)])},{default:_.withCtx(()=>[(_.openBlock(!0),_.createElementBlock(_.Fragment,null,_.renderList(d(D.row),N=>(_.openBlock(),_.createElementBlock(_.Fragment,{key:N.id},[N.isButton?(_.openBlock(),_.createBlock(bt,_.mergeProps({key:0,color:_.unref(ln)(N,D.row),size:N.size||"sm",class:N.class,disabled:_.unref(wr)(N,D.row),label:N.label},{ref_for:!0},N.buttonProps||{},{"data-cy":_.unref(un)(N,D.row,F.rowKey),onClick:_.withModifiers(L=>C(N,D.row),["stop"])}),null,16,["color","size","class","disabled","label","data-cy","onClick"])):(_.openBlock(),_.createBlock(St,{key:1,class:"cursor-pointer q-mr-sm",name:N.icon,color:_.unref(ln)(N,D.row),size:N.size||"25px","data-cy":_.unref(un)(N,D.row,F.rowKey,"icon"),onClick:_.withModifiers(L=>C(N,D.row),["stop"])},{default:_.withCtx(()=>[N.label?(_.openBlock(),_.createBlock(Ks,{key:0},{default:_.withCtx(()=>[_.createTextVNode(_.toDisplayString(N.label),1)]),_:2},1024)):_.createCommentVNode("",!0)]),_:2},1032,["name","color","size","data-cy","onClick"]))],64))),128))]),_:2},1032,["class"])]),_:2},1032,["data-cy","props","class","onDblclick"])),a.value&&r(D.row)?(_.openBlock(),_.createBlock(on,{key:2},{default:_.withCtx(()=>[_.createElementVNode("td",rf,[_.renderSlot(F.$slots,"expanded",{row:D.row})])]),_:2},1024)):_.createCommentVNode("",!0)]),_:3},8,["pagination","columns","rows","filter","row-key","rows-per-page-options","loading","hide-no-data"]))}});var lt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sf(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 $n={exports:{}};/*! ExcelJS 19-10-2023 */var eo;function of(){return eo||(eo=1,function(l,j){(function(t){l.exports=t()})(function(){return function t(v,m,f){function a(e,r){if(!m[e]){if(!v[e]){var u=typeof cn=="function"&&cn;if(!r&&u)return u(e,!0);if(o)return o(e,!0);var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}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,f)}return m[e].exports}for(var o=typeof cn=="function"&&cn,n=0;n<f.length;n++)a(f[n]);return a}({1:[function(t,v,m){const f=t("fs"),a=t("fast-csv"),o=t("dayjs/plugin/customParseFormat"),n=t("dayjs/plugin/utc"),e=t("dayjs").extend(o).extend(n),r=t("../utils/stream-buf"),{fs:{exists:u}}=t("../utils/utils"),s={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=f.createReadStream(i),c=await this.read(h,d);return h.close(),c}read(i,d){return d=d||{},new Promise((h,c)=>{const g=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 F=Number(T);if(!Number.isNaN(F)&&F!==1/0)return F;const z=p.reduce((N,L)=>{if(N)return N;const U=e(T,L,!0);return U.isValid()?U:null},null);if(z)return new Date(z.valueOf());const D=s[T];return D!==void 0?D:T},C=a.parse(d.parserOptions).on("data",T=>{g.addRow(T.map(S))}).on("end",()=>{C.emit("worksheet",g)});C.on("worksheet",h).on("error",c),i.pipe(C)})}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,c)=>{d=d||{};const g=this.workbook.getWorksheet(d.sheetName||d.sheetId),p=a.format(d.formatterOptions);i.on("finish",()=>{h()}),p.on("error",c),p.pipe(i);const{dateFormat:S,dateUTC:C}=d,T=d.map||(D=>{if(D){if(D.text||D.hyperlink)return D.hyperlink||D.text||"";if(D.formula||D.result)return D.result||"";if(D instanceof Date)return S?C?e.utc(D).format(S):e(D).format(S):C?e.utc(D).format():e(D).format();if(D.error)return D.error;if(typeof D=="object")return JSON.stringify(D)}return D}),F=d.includeEmptyRows===void 0||d.includeEmptyRows;let z=1;g&&g.eachRow((D,N)=>{if(F)for(;z++<N-1;)p.write([]);const{values:L}=D;L.shift(),p.write(L.map(T)),z=N}),p.end()})}writeFile(i,d){const h={encoding:(d=d||{}).encoding||"utf8"},c=f.createWriteStream(i,h);return this.write(c,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 f=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=f.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 f=t("../utils/col-cache"),a=t("../utils/under-dash"),o=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,f.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 c=i&&i.numFmt||d&&d.numFmt;c&&(h.numFmt=c);const g=i&&i.font||d&&d.font;g&&(h.font=g);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 C=i&&i.fill||d&&d.fill;C&&(h.fill=C);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=o.ValueType;const u={getType:s=>s==null?r.Types.Null:s instanceof String||typeof s=="string"?r.Types.String:typeof s=="number"?r.Types.Number:typeof s=="boolean"?r.Types.Boolean:s instanceof Date?r.Types.Date:s.text&&s.hyperlink?r.Types.Hyperlink:s.formula||s.sharedFormula?r.Types.Formula:s.richText?r.Types.RichText:s.sharedString?r.Types.SharedString:s.error?r.Types.Error:r.Types.JSON,types:[{t:r.Types.Null,f:class{constructor(s){this.model={address:s.address,type:r.Types.Null}}get value(){return null}set value(s){}get type(){return r.Types.Null}get effectiveType(){return r.Types.Null}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return""}release(){}toString(){return""}}},{t:r.Types.Number,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.Number,value:i}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.Number}get effectiveType(){return r.Types.Number}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.String,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.String,value:i}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.String}get effectiveType(){return r.Types.String}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:r.Types.Date,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.Date,value:i}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.Date}get effectiveType(){return r.Types.Date}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.Hyperlink,f:class{constructor(s,i){this.model={address:s.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 s={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(s.tooltip=this.model.tooltip),s}set value(s){this.model={text:s.text,hyperlink:s.hyperlink},s.tooltip&&(this.model.tooltip=s.tooltip)}get text(){return this.model.text}set text(s){this.model.text=s}get hyperlink(){return this.model.hyperlink}set hyperlink(s){this.model.hyperlink=s}get type(){return r.Types.Hyperlink}get effectiveType(){return r.Types.Hyperlink}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:r.Types.Formula,f:class{constructor(s,i){this.cell=s,this.model={address:s.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(s){const i={},d=h=>{const c=s[h];c&&(i[h]=c)};return d("formula"),d("result"),d("ref"),d("shareType"),d("sharedFormula"),i}get value(){return this._copyModel(this.model)}set value(s){this.model=this._copyModel(s)}validate(s){switch(u.getType(s)){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(s){this.model.formula=s}get formulaType(){return this.model.formula?o.FormulaType.Master:this.model.sharedFormula?o.FormulaType.Shared:o.FormulaType.None}get result(){return this.model.result}set result(s){this.model.result=s}get type(){return r.Types.Formula}get effectiveType(){const s=this.model.result;return s==null?o.ValueType.Null:s instanceof String||typeof s=="string"?o.ValueType.String:typeof s=="number"?o.ValueType.Number:s instanceof Date?o.ValueType.Date:s.text&&s.hyperlink?o.ValueType.Hyperlink:s.formula?o.ValueType.Formula:o.ValueType.Null}get address(){return this.model.address}set address(s){this.model.address=s}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:s}=this.cell,i=s.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(s,i){this.model={address:s.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(s){s instanceof r?(this._master&&this._master.releaseMergeRef(),s.addMergeRef(),this._master=s):this._master.value=s}isMergedTo(s){return s===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(s){this.model.address=s}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:r.Types.JSON,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.String,value:JSON.stringify(i),rawValue:i}}get value(){return this.model.rawValue}set value(s){this.model.rawValue=s,this.model.value=JSON.stringify(s)}get type(){return r.Types.String}get effectiveType(){return r.Types.String}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:r.Types.SharedString,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.SharedString,value:i}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.SharedString}get effectiveType(){return r.Types.SharedString}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.RichText,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.String,value:i}}get value(){return this.model.value}set value(s){this.model.value=s}toString(){return this.model.value.richText.map(s=>s.text).join("")}get type(){return r.Types.RichText}get effectiveType(){return r.Types.RichText}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:r.Types.Boolean,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.Boolean,value:i}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.Boolean}get effectiveType(){return r.Types.Boolean}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.Error,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.Error,value:i}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.Error}get effectiveType(){return r.Types.Error}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((s,i)=>(s[i.t]=i.f,s),[]),create(s,i,d){const h=this.types[s];if(!h)throw new Error("Could not create Value of type "+s);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 f=t("../utils/under-dash"),a=t("./enums"),o=t("../utils/col-cache");class n{constructor(r,u,s){this._worksheet=r,this._number=u,s!==!1&&(this.defn=s)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return o.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,s)=>{this._worksheet.getCell(s+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&&f.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 s=this.number;u||(u=r,r=null),this._worksheet.eachRow(r,(i,d)=>{u(i.getCell(s),d)})}get values(){const r=[];return this.eachCell((u,s)=>{u&&u.type!==a.ValueType.Null&&(r[s]=u.value)}),r}set values(r){if(!r)return;const u=this.number;let s=0;r.hasOwnProperty("0")&&(s=1),r.forEach((i,d)=>{this._worksheet.getCell(d+s,u).value=i})}_applyStyle(r,u){return this.style[r]=u,this.eachCell(s=>{s[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 s=null;return r&&r.forEach((i,d)=>{i.isDefault?s&&(s=null):s&&i.equivalentTo(s)?s.max=d+1:(s={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(s))}),u.length?u:void 0}static fromModel(r,u){const s=[];let i=1,d=0;for(u=(u=u||[]).sort(function(h,c){return h.min-c.min});d<u.length;){const h=u[d++];for(;i<h.min;)s.push(new n(r,i++));for(;i<=h.max;)s.push(new n(r,i++,h))}return s.length?s:null}}v.exports=n},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(t,v,m){v.exports=class{constructor(f){this.model=f||{}}add(f,a){return this.model[f]=a}find(f){return this.model[f]}remove(f){this.model[f]=void 0}}},{}],6:[function(t,v,m){const f=t("../utils/under-dash"),a=t("../utils/col-cache"),o=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 o)}add(r,u){const s=a.decodeEx(r);this.addEx(s,u)}addEx(r,u){const s=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};s.addCellEx(h)}else s.addCellEx(r)}remove(r,u){const s=a.decodeEx(r);this.removeEx(s,u)}removeEx(r,u){this.getMatrix(u).removeCellEx(r)}removeAllNames(r){f.each(this.matrixMap,u=>{u.removeCellEx(r)})}forEach(r){f.each(this.matrixMap,(u,s)=>{u.forEach(i=>{r(s,i)})})}getNames(r){return this.getNamesEx(a.decodeEx(r))}getNamesEx(r){return f.map(this.matrixMap,(u,s)=>u.findCellEx(r)&&s).filter(Boolean)}_explore(r,u){u.mark=!1;const{sheetName:s}=u,i=new n(u.row,u.col,u.row,u.col,s);let d,h;function c(p,S){const C=r.findCellAt(s,p,u.col);return!(!C||!C.mark)&&(i[S]=p,C.mark=!1,!0)}for(h=u.row-1;c(h,"top");h--);for(h=u.row+1;c(h,"bottom");h++);function g(p,S){const C=[];for(h=i.top;h<=i.bottom;h++){const T=r.findCellAt(s,h,p);if(!T||!T.mark)return!1;C.push(T)}i[S]=p;for(let T=0;T<C.length;T++)C[T].mark=!1;return!0}for(d=u.col-1;g(d,"left");d--);for(d=u.col+1;g(d,"right");d++);return i}getRanges(r,u){return(u=u||this.matrixMap[r])?(u.forEach(s=>{s.mark=!0}),{name:r,ranges:u.map(s=>s.mark&&this._explore(u,s)).filter(Boolean).map(s=>s.$shortRange)}):{name:r,ranges:[]}}normaliseMatrix(r,u){r.forEachInSheet(u,(s,i,d)=>{s&&(s.row===i&&s.col===d||(s.row=i,s.col=d,s.address=a.n2l(d)+i))})}spliceRows(r,u,s,i){f.each(this.matrixMap,d=>{d.spliceRows(r,u,s,i),this.normaliseMatrix(d,r)})}spliceColumns(r,u,s,i){f.each(this.matrixMap,d=>{d.spliceColumns(r,u,s,i),this.normaliseMatrix(d,r)})}get model(){return f.map(this.matrixMap,(r,u)=>this.getRanges(u,r)).filter(r=>r.ranges.length)}set model(r){const u=this.matrixMap={};r.forEach(s=>{const i=u[s.name]=new o;s.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 f=t("../utils/col-cache"),a=t("./anchor");v.exports=class{constructor(o,n){this.worksheet=o,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(o){let{type:n,imageId:e,range:r,hyperlinks:u}=o;if(this.type=n,this.imageId=e,n==="image")if(typeof r=="string"){const s=f.decode(r);this.range={tl:new a(this.worksheet,{col:s.left,row:s.top},-1),br:new a(this.worksheet,{col:s.right,row:s.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 f=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 f.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 f=t("../utils/col-cache");class a{constructor(){this.decode(arguments)}setTLBR(n,e,r,u,s){if(arguments.length<4){const i=f.decodeAddress(n),d=f.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,s)}else this.model={top:Math.min(n,r),left:Math.min(e,u),bottom:Math.max(n,r),right:Math.max(e,u),sheetName:s}}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=f.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=f.decodeEx(n);this.expand(e.row,e.col,e.row,e.col)}get tl(){return f.n2l(this.left)+this.top}get $t$l(){return`$${f.n2l(this.left)}$${this.top}`}get br(){return f.n2l(this.right)+this.bottom}get $b$r(){return`$${f.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=f.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(f.encodeAddress(r,e),r,e)}}v.exports=a},{"../utils/col-cache":19}],11:[function(t,v,m){const f=t("../utils/under-dash"),a=t("./enums"),o=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:o.l2n(e)}return this._cells[e-1]||this.getCellEx({address:o.encodeAddress(this._number,e),row:this._number,col:e})}splice(e,r){const u=e+r;for(var s=arguments.length,i=new Array(s>2?s-2:0),d=2;d<s;d++)i[d-2]=arguments[d];const h=i.length-r,c=this._cells.length;let g,p,S;if(h<0)for(g=e+i.length;g<=c;g++)S=this._cells[g-1],p=this._cells[g-h-1],p?(S=this.getCell(g),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(g=c;g>=u;g--)p=this._cells[g-1],p?(S=this.getCell(g+h),S.value=p.value,S.style=p.style,S._comment=p._comment):this._cells[g+h-1]=void 0;for(g=0;g<i.length;g++)S=this.getCell(e+g),S.value=i[g],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 s=1;s<=u;s++)r(this.getCell(s),s)}else this._cells.forEach((u,s)=>{u&&u.type!==a.ValueType.Null&&r(u,s+1)})}addPageBreak(e,r){const u=this._worksheet,s=Math.max(0,e-1)||0,i=Math.max(0,r-1)||16838,d={id:this._number,max:i,man:1};s&&(d.min=s),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,s)=>{u!==void 0&&(this.getCellEx({address:o.encodeAddress(this._number,s+r),row:this._number,col:s+r}).value=u)})}else this._worksheet.eachColumnKey((r,u)=>{e[u]!==void 0&&(this.getCellEx({address:o.encodeAddress(this._number,r.number),row:this._number,col:r.number}).value=e[u])})}get hasValues(){return f.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(s=>{if(s){const i=s.model;i&&((!r||r>s.col)&&(r=s.col),u<s.col&&(u=s.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 s;if(u.address)s=o.decodeAddress(u.address);else if(r){const{row:i}=r,d=r.col+1;s={row:i,col:d,address:o.encodeAddress(i,d),$col$row:`$${o.n2l(d)}$${i}`}}r=s,this.getCellEx(s).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 f=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(o,n){this.worksheet=o,n&&(this.table=n,this.validate(),this.store())}getFormula(o){switch(o.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${o.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${o.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${o.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${o.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${o.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${o.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${o.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${o.name}])`;case"custom":return o.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+o.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:o}=this,n=(h,c,g)=>{h[c]===void 0&&(h[c]=g)};n(o,"headerRow",!0),n(o,"totalsRow",!1),n(o,"style",{}),n(o.style,"theme","TableStyleMedium2"),n(o.style,"showFirstColumn",!1),n(o.style,"showLastColumn",!1),n(o.style,"showRowStripes",!1),n(o.style,"showColumnStripes",!1);const e=(h,c)=>{if(!h)throw new Error(c)};e(o.ref,"Table must have ref"),e(o.columns,"Table must have column definitions"),e(o.rows,"Table must have row definitions"),o.tl=f.decodeAddress(o.ref);const{row:r,col:u}=o.tl;e(r>0,"Table must be on valid row"),e(u>0,"Table must be on valid col");const{width:s,filterHeight:i,tableHeight:d}=this;o.autoFilterRef=f.encode(r,u,r+i-1,u+s-1),o.tableRef=f.encode(r,u,r+d-1,u+s-1),o.columns.forEach((h,c)=>{e(h.name,`Column ${c} must have a name`),c===0?n(h,"totalsRowLabel","Total"):(n(h,"totalsRowFunction","none"),h.totalsRowFormula=this.getFormula(h))})}store(){const o=(i,d)=>{d&&Object.keys(d).forEach(h=>{i[h]=d[h]})},{worksheet:n,table:e}=this,{row:r,col:u}=e.tl;let s=0;if(e.headerRow){const i=n.getRow(r+s++);e.columns.forEach((d,h)=>{const{style:c,name:g}=d,p=i.getCell(u+h);p.value=g,o(p,c)})}if(e.rows.forEach(i=>{const d=n.getRow(r+s++);i.forEach((h,c)=>{const g=d.getCell(u+c);g.value=h,o(g,e.columns[c].style)})}),e.totalsRow){const i=n.getRow(r+s++);e.columns.forEach((d,h)=>{const c=i.getCell(u+h);if(h===0)c.value=d.totalsRowLabel;else{const g=this.getFormula(d);c.value=g?{formula:d.totalsRowFormula,result:d.totalsRowResult}:null}o(c,d.style)})}}load(o){const{table:n}=this,{row:e,col:r}=n.tl;let u=0;if(n.headerRow){const s=o.getRow(e+u++);n.columns.forEach((i,d)=>{s.getCell(r+d).value=i.name})}if(n.rows.forEach(s=>{const i=o.getRow(e+u++);s.forEach((d,h)=>{i.getCell(r+h).value=d})}),n.totalsRow){const s=o.getRow(e+u++);n.columns.forEach((i,d)=>{const h=s.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(o){this.table=o}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const o=f.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let n=0;n<this._cache.tableHeight;n++){const e=this.worksheet.getRow(o.row+n);for(let r=0;r<this._cache.width;r++)e.getCell(o.col+r).value=null}else{for(let n=this.tableHeight;n<this._cache.tableHeight;n++){const e=this.worksheet.getRow(o.row+n);for(let r=0;r<this._cache.width;r++)e.getCell(o.col+r).value=null}for(let n=0;n<this.tableHeight;n++){const e=this.worksheet.getRow(o.row+n);for(let r=this.width;r<this._cache.width;r++)e.getCell(o.col+r).value=null}}this.store()}addRow(o,n){this.cacheState(),n===void 0?this.table.rows.push(o):this.table.rows.splice(n,0,o)}removeRows(o){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(o,n)}getColumn(o){const n=this.table.columns[o];return new a(this,n,o)}addColumn(o,n,e){this.cacheState(),e===void 0?(this.table.columns.push(o),this.table.rows.forEach((r,u)=>{r.push(n[u])})):(this.table.columns.splice(e,0,o),this.table.rows.forEach((r,u)=>{r.splice(e,0,n[u])}))}removeColumns(o){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(o,n),this.table.rows.forEach(e=>{e.splice(o,n)})}_assign(o,n,e){this.cacheState(),o[n]=e}get ref(){return this.table.ref}set ref(o){this._assign(this.table,"ref",o)}get name(){return this.table.name}set name(o){this.table.name=o}get displayName(){return this.table.displyName||this.table.name}set displayNamename(o){this.table.displayName=o}get headerRow(){return this.table.headerRow}set headerRow(o){this._assign(this.table,"headerRow",o)}get totalsRow(){return this.table.totalsRow}set totalsRow(o){this._assign(this.table,"totalsRow",o)}get theme(){return this.table.style.name}set theme(o){this.table.style.name=o}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(o){this.table.style.showFirstColumn=o}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(o){this.table.style.showLastColumn=o}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(o){this.table.style.showRowStripes=o}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(o){this.table.style.showColumnStripes=o}}},{"../utils/col-cache":19}],13:[function(t,v,m){const f=t("./worksheet"),a=t("./defined-names"),o=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 o(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 s=this._worksheets.reduce((h,c)=>(c&&c.orderNo)>h?c.orderNo:h,0),i=Object.assign({},r,{id:u,name:e,orderNo:s+1,workbook:this}),d=new f(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:s,state:i}=r,d=e.sheets&&e.sheets.findIndex(h=>h.id===u);(this._worksheets[u]=new f({id:u,name:s,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 f=t("../utils/under-dash"),a=t("../utils/col-cache"),o=t("./range"),n=t("./row"),e=t("./column"),r=t("./enums"),u=t("./image"),s=t("./table"),i=t("./data-validations"),d=t("../utils/encryptor"),{copyStyle:h}=t("../utils/copy-style");v.exports=class{constructor(c){c=c||{},this._workbook=c.workbook,this.id=c.id,this.orderNo=c.orderNo,this.name=c.name,this.state=c.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},c.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:!(!c.pageSetup||!c.pageSetup.fitToWidth&&!c.pageSetup.fitToHeight||c.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},c.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},c.headerFooter),this.dataValidations=new i,this.views=c.views||[],this.autoFilter=c.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(c){if(c===void 0&&(c="sheet"+this.id),this._name!==c){if(typeof c!="string")throw new Error("The name has to be a string.");if(c==="")throw new Error("The name can't be empty.");if(c==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(c))throw new Error(`Worksheet name ${c} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(c))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+c);if(c&&c.length>31&&(console.warn(`Worksheet name ${c} exceeds 31 chars. This will be truncated`),c=c.substring(0,31)),this._workbook._worksheets.find(g=>g&&g.name.toLowerCase()===c.toLowerCase()))throw new Error("Worksheet name already exists: "+c);this._name=c}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const c=new o;return this._rows.forEach(g=>{if(g){const p=g.dimensions;p&&c.expand(g.number,p.min,g.number,p.max)}}),c}get columns(){return this._columns}set columns(c){this._headerRowCount=c.reduce((S,C)=>{const T=(C.header?1:C.headers&&C.headers.length)||0;return Math.max(S,T)},0);let g=1;const p=this._columns=[];c.forEach(S=>{const C=new e(this,g++,!1);p.push(C),C.defn=S})}getColumnKey(c){return this._keys[c]}setColumnKey(c,g){this._keys[c]=g}deleteColumnKey(c){delete this._keys[c]}eachColumnKey(c){f.each(this._keys,c)}getColumn(c){if(typeof c=="string"){const g=this._keys[c];if(g)return g;c=a.l2n(c)}if(this._columns||(this._columns=[]),c>this._columns.length){let g=this._columns.length+1;for(;g<=c;)this._columns.push(new e(this,g++))}return this._columns[c-1]}spliceColumns(c,g){const p=this._rows.length;for(var S=arguments.length,C=new Array(S>2?S-2:0),T=2;T<S;T++)C[T-2]=arguments[T];if(C.length>0)for(let N=0;N<p;N++){const L=[c,g];C.forEach(q=>{L.push(q[N]||null)});const U=this.getRow(N+1);U.splice.apply(U,L)}else this._rows.forEach(N=>{N&&N.splice(c,g)});const F=C.length-g,z=c+g,D=this._columns.length;if(F<0)for(let N=c+C.length;N<=D;N++)this.getColumn(N).defn=this.getColumn(N-F).defn;else if(F>0)for(let N=D;N>=z;N--)this.getColumn(N+F).defn=this.getColumn(N).defn;for(let N=c;N<c+C.length;N++)this.getColumn(N).defn=null;this.workbook.definedNames.spliceColumns(this.name,c,g,C.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let c=0;return this.eachRow(g=>{c=Math.max(c,g.cellCount)}),c}get actualColumnCount(){const c=[];let g=0;return this.eachRow(p=>{p.eachCell(S=>{let{col:C}=S;c[C]||(c[C]=!0,g++)})}),g}_commitRow(){}get _lastRowNumber(){const c=this._rows;let g=c.length;for(;g>0&&c[g-1]===void 0;)g--;return g}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(c){return this._rows[c-1]}findRows(c,g){return this._rows.slice(c-1,c-1+g)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let c=0;return this.eachRow(()=>{c++}),c}getRow(c){let g=this._rows[c-1];return g||(g=this._rows[c-1]=new n(this,c)),g}getRows(c,g){if(g<1)return;const p=[];for(let S=c;S<c+g;S++)p.push(this.getRow(S));return p}addRow(c){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const p=this._nextRow,S=this.getRow(p);return S.values=c,this._setStyleOption(p,g[0]==="i"?g:"n"),S}addRows(c){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const p=[];return c.forEach(S=>{p.push(this.addRow(S,g))}),p}insertRow(c,g){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(c,0,g),this._setStyleOption(c,p),this.getRow(c)}insertRows(c,g){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(c,0,...g),p!=="n")for(let S=0;S<g.length;S++)p[0]==="o"&&this.findRow(g.length+c+S)!==void 0?this._copyStyle(g.length+c+S,c+S,p[1]==="+"):p[0]==="i"&&this.findRow(c-1)!==void 0&&this._copyStyle(c-1,c+S,p[1]==="+");return this.getRows(c,g.length)}_setStyleOption(c){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";g[0]==="o"&&this.findRow(c+1)!==void 0?this._copyStyle(c+1,c,g[1]==="+"):g[0]==="i"&&this.findRow(c-1)!==void 0&&this._copyStyle(c-1,c,g[1]==="+")}_copyStyle(c,g){let p=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const S=this.getRow(c),C=this.getRow(g);C.style=h(S.style),S.eachCell({includeEmpty:p},(T,F)=>{C.getCell(F).style=h(T.style)}),C.height=S.height}duplicateRow(c,g){let p=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const S=this._rows[c-1],C=new Array(g).fill(S.values);this.spliceRows(c+1,p?0:g,...C);for(let T=0;T<g;T++){const F=this._rows[c+T];F.style=S.style,F.height=S.height,S.eachCell({includeEmpty:!0},(z,D)=>{F.getCell(D).style=z.style})}}spliceRows(c,g){const p=c+g;for(var S=arguments.length,C=new Array(S>2?S-2:0),T=2;T<S;T++)C[T-2]=arguments[T];const F=C.length,z=F-g,D=this._rows.length;let N,L;if(z<0)for(c===D&&(this._rows[D-1]=void 0),N=p;N<=D;N++)if(L=this._rows[N-1],L){const U=this.getRow(N+z);U.values=L.values,U.style=L.style,U.height=L.height,L.eachCell({includeEmpty:!0},(q,A)=>{U.getCell(A).style=q.style}),this._rows[N-1]=void 0}else this._rows[N+z-1]=void 0;else if(z>0)for(N=D;N>=p;N--)if(L=this._rows[N-1],L){const U=this.getRow(N+z);U.values=L.values,U.style=L.style,U.height=L.height,L.eachCell({includeEmpty:!0},(q,A)=>{if(U.getCell(A).style=q.style,q._value.constructor.name==="MergeValue"){const M=this.getRow(q._row._number+F).getCell(A),k=q._value._master,b=this.getRow(k._row._number+F).getCell(k._column._number);M.merge(b)}})}else this._rows[N+z-1]=void 0;for(N=0;N<F;N++){const U=this.getRow(c+N);U.style={},U.values=C[N]}this.workbook.definedNames.spliceRows(this.name,c,g,F)}eachRow(c,g){if(g||(g=c,c=void 0),c&&c.includeEmpty){const p=this._rows.length;for(let S=1;S<=p;S++)g(this.getRow(S),S)}else this._rows.forEach(p=>{p&&p.hasValues&&g(p,p.number)})}getSheetValues(){const c=[];return this._rows.forEach(g=>{g&&(c[g.number]=g.values)}),c}findCell(c,g){const p=a.getAddress(c,g),S=this._rows[p.row-1];return S?S.findCell(p.col):void 0}getCell(c,g){const p=a.getAddress(c,g);return this.getRow(p.row).getCellEx(p)}mergeCells(){for(var c=arguments.length,g=new Array(c),p=0;p<c;p++)g[p]=arguments[p];const S=new o(g);this._mergeCellsInternal(S)}mergeCellsWithoutStyle(){for(var c=arguments.length,g=new Array(c),p=0;p<c;p++)g[p]=arguments[p];const S=new o(g);this._mergeCellsInternal(S,!0)}_mergeCellsInternal(c,g){f.each(this._merges,S=>{if(S.intersects(c))throw new Error("Cannot merge already merged cells")});const p=this.getCell(c.top,c.left);for(let S=c.top;S<=c.bottom;S++)for(let C=c.left;C<=c.right;C++)(S>c.top||C>c.left)&&this.getCell(S,C).merge(p,g);this._merges[p.address]=c}_unMergeMaster(c){const g=this._merges[c.address];if(g){for(let p=g.top;p<=g.bottom;p++)for(let S=g.left;S<=g.right;S++)this.getCell(p,S).unmerge();delete this._merges[c.address]}}get hasMerges(){return f.some(this._merges,Boolean)}unMergeCells(){for(var c=arguments.length,g=new Array(c),p=0;p<c;p++)g[p]=arguments[p];const S=new o(g);for(let C=S.top;C<=S.bottom;C++)for(let T=S.left;T<=S.right;T++){const F=this.findCell(C,T);F&&(F.type===r.ValueType.Merge?this._unMergeMaster(F.master):this._merges[F.address]&&this._unMergeMaster(F))}}fillFormula(c,g,p){let S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"shared";const C=a.decode(c),{top:T,left:F,bottom:z,right:D}=C,N=D-F+1,L=a.encodeAddress(T,F),U=S==="shared";let q;q=typeof p=="function"?p:Array.isArray(p)?Array.isArray(p[0])?(M,k)=>p[M-T][k-F]:(M,k)=>p[(M-T)*N+(k-F)]:()=>{};let A=!0;for(let M=T;M<=z;M++)for(let k=F;k<=D;k++)A?(this.getCell(M,k).value={shareType:S,formula:g,ref:c,result:q(M,k)},A=!1):this.getCell(M,k).value=U?{sharedFormula:L,result:q(M,k)}:q(M,k)}addImage(c,g){const p={type:"image",imageId:c,range:g};this._media.push(new u(this,p))}getImages(){return this._media.filter(c=>c.type==="image")}addBackgroundImage(c){const g={type:"background",imageId:c};this._media.push(new u(this,g))}getBackgroundImageId(){const c=this._media.find(g=>g.type==="background");return c&&c.imageId}protect(c,g){return new Promise(p=>{this.sheetProtection={sheet:!0},g&&"spinCount"in g&&(g.spinCount=Number.isFinite(g.spinCount)?Math.round(Math.max(0,g.spinCount)):1e5),c&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=d.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=g&&"spinCount"in g?g.spinCount:1e5,this.sheetProtection.hashValue=d.convertPasswordToHash(c,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),g&&(this.sheetProtection=Object.assign(this.sheetProtection,g),!c&&"spinCount"in g&&delete this.sheetProtection.spinCount),p()})}unprotect(){this.sheetProtection=null}addTable(c){const g=new s(this,c);return this.tables[c.name]=g,g}getTable(c){return this.tables[c]}removeTable(c){delete this.tables[c]}getTables(){return Object.values(this.tables)}addConditionalFormatting(c){this.conditionalFormattings.push(c)}removeConditionalFormatting(c){typeof c=="number"?this.conditionalFormattings.splice(c,1):this.conditionalFormattings=c instanceof Function?this.conditionalFormattings.filter(c):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(c){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=c}get model(){const c={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};c.cols=e.toModel(this.columns);const g=c.rows=[],p=c.dimensions=new o;return this._rows.forEach(S=>{const C=S&&S.model;C&&(p.expand(C.number,C.min,C.number,C.max),g.push(C))}),c.merges=[],f.each(this._merges,S=>{c.merges.push(S.range)}),c}_parseRows(c){this._rows=[],c.rows.forEach(g=>{const p=new n(this,g.number);this._rows[p.number-1]=p,p.model=g})}_parseMergeCells(c){f.each(c.mergeCells,g=>{this.mergeCellsWithoutStyle(g)})}set model(c){this.name=c.name,this._columns=e.fromModel(this,c.cols),this._parseRows(c),this._parseMergeCells(c),this.dataValidations=new i(c.dataValidations),this.properties=c.properties,this.pageSetup=c.pageSetup,this.headerFooter=c.headerFooter,this.views=c.views,this.autoFilter=c.autoFilter,this._media=c.media.map(g=>new u(this,g)),this.sheetProtection=c.sheetProtection,this.tables=c.tables.reduce((g,p)=>{const S=new s;return S.model=p,g[p.name]=S,g},{}),this.conditionalFormattings=c.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 f={Workbook:t("./doc/workbook")},a=t("./doc/enums");Object.keys(a).forEach(o=>{f[o]=a[o]}),v.exports=f},{"./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 f=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");m.bufferToString=function(a){return typeof a=="string"?a:f?f.decode(a):a.toString()}},{}],17:[function(t,v,m){const f=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:a}=t("buffer");m.stringToBuffer=function(o){return typeof o!="string"?o:f?a.from(f.encode(o).buffer):a.from(o)}},{buffer:220}],18:[function(t,v,m){const f=t("./under-dash"),a=t("./col-cache");v.exports=class{constructor(o){this.template=o,this.sheets={}}addCell(o){this.addCellEx(a.decodeEx(o))}getCell(o){return this.findCellEx(a.decodeEx(o),!0)}findCell(o){return this.findCellEx(a.decodeEx(o),!1)}findCellAt(o,n,e){const r=this.sheets[o],u=r&&r[n];return u&&u[e]}addCellEx(o){if(o.top)for(let n=o.top;n<=o.bottom;n++)for(let e=o.left;e<=o.right;e++)this.getCellAt(o.sheetName,n,e);else this.findCellEx(o,!0)}getCellEx(o){return this.findCellEx(o,!0)}findCellEx(o,n){const e=this.findSheet(o,n),r=this.findSheetRow(e,o,n);return this.findRowCell(r,o,n)}getCellAt(o,n,e){const r=this.sheets[o]||(this.sheets[o]=[]),u=r[n]||(r[n]=[]);return u[e]||(u[e]={sheetName:o,address:a.n2l(e)+n,row:n,col:e})}removeCellEx(o){const n=this.findSheet(o);if(!n)return;const e=this.findSheetRow(n,o);e&&delete e[o.col]}forEachInSheet(o,n){const e=this.sheets[o];e&&e.forEach((r,u)=>{r&&r.forEach((s,i)=>{s&&n(s,u,i)})})}forEach(o){f.each(this.sheets,(n,e)=>{this.forEachInSheet(e,o)})}map(o){const n=[];return this.forEach(e=>{n.push(o(e))}),n}findSheet(o,n){const e=o.sheetName;return this.sheets[e]?this.sheets[e]:n?this.sheets[e]=[]:void 0}findSheetRow(o,n,e){const{row:r}=n;return o&&o[r]?o[r]:e?o[r]=[]:void 0}findRowCell(o,n,e){const{col:r}=n;return o&&o[r]?o[r]:e?o[r]=this.template?Object.assign(n,JSON.parse(JSON.stringify(this.template))):n:void 0}spliceRows(o,n,e,r){const u=this.sheets[o];if(u){const s=[];for(let i=0;i<r;i++)s.push([]);u.splice(n,e,...s)}}spliceColumns(o,n,e,r){const u=this.sheets[o];if(u){const s=[];for(let i=0;i<r;i++)s.push(null);f.each(u,i=>{i.splice(n,e,...s)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(t,v,m){const f=/^[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:o=>o<=26?1:o<=676?2:3,_fill(o){let n,e,r,u,s,i=1;if(o>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&o>=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&&o>=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&&o>=3){for(i=703;i<=16384;)e=i-703,r=e%26,u=Math.floor(e/26)%26,s=Math.floor(e/676),n=this._dictionary[s]+this._dictionary[u]+this._dictionary[r],this._n2l[i]=n,this._l2n[n]=i,i++;this._l2nFill=3}},l2n(o){if(this._l2n[o]||this._fill(o.length),!this._l2n[o])throw new Error("Out of bounds. Invalid column letter: "+o);return this._l2n[o]},n2l(o){if(o<1||o>16384)throw new Error(o+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[o]||this._fill(this._level(o)),this._n2l[o]},_hash:{},validateAddress(o){if(!f.test(o))throw new Error("Invalid Address: "+o);return!0},decodeAddress(o){const n=o.length<5&&this._hash[o];if(n)return n;let e=!1,r="",u=0,s=!1,i="",d=0;for(let c,g=0;g<o.length;g++)if(c=o.charCodeAt(g),!s&&c>=65&&c<=90)e=!0,r+=o[g],u=26*u+c-64;else if(c>=48&&c<=57)s=!0,i+=o[g],d=10*d+c-48;else if(s&&e&&c!==36)break;if(e){if(u>16384)throw new Error("Out of bounds. Invalid column letter: "+r)}else u=void 0;s||(d=void 0);const h={address:o=r+i,col:u,row:d,$col$row:`$${r}$${i}`};return u<=100&&d<=100&&(this._hash[o]=h,this._hash[h.$col$row]=h),h},getAddress(o,n){if(n){const e=this.n2l(n)+o;return this.decodeAddress(e)}return this.decodeAddress(o)},decode(o){const n=o.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(o)},decodeEx(o){const n=o.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),c=Math.min(i.col,d.col),g=Math.max(i.row,d.row),p=Math.max(i.col,d.col);return i=this.n2l(c)+h,d=this.n2l(p)+g,{top:h,left:c,bottom:g,right:p,sheetName:e,tl:{address:i,col:c,row:h,$col$row:`$${this.n2l(c)}$${h}`,sheetName:e},br:{address:d,col:p,row:g,$col$row:`$${this.n2l(p)}$${g}`,sheetName:e},dimensions:`${i}:${d}`}}if(r.startsWith("#"))return e?{sheetName:e,error:r}:{error:r};const s=this.decodeAddress(r);return e?{sheetName:e,...s}:s},encodeAddress:(o,n)=>a.n2l(n)+o,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(o,n){const[e,r,,u,s]=o,[i,d]=n;return i>=e&&i<=u&&d>=r&&d<=s}};v.exports=a},{}],20:[function(t,v,m){const f=(o,n)=>({...o,...n.reduce((e,r)=>(o[r]&&(e[r]={...o[r]}),e),{})}),a=function(o,n,e){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];o[e]&&(n[e]=f(o[e],r))};m.copyStyle=o=>{if(!o)return o;if(n=o,Object.keys(n).length===0)return{};var n;const e={...o};return a(o,e,"font",["color"]),a(o,e,"alignment"),a(o,e,"protection"),o.border&&(a(o,e,"border"),a(o.border,e.border,"top",["color"]),a(o.border,e.border,"left",["color"]),a(o.border,e.border,"bottom",["color"]),a(o.border,e.border,"right",["color"]),a(o.border,e.border,"diagonal",["color"])),o.fill&&(a(o,e,"fill",["fgColor","bgColor","center"]),o.fill.stops&&(e.fill.stops=o.fill.stops.map(r=>f(r,["color"])))),e}},{}],21:[function(t,v,m){(function(f){(function(){const a=t("crypto"),o={hash(n){const e=a.createHash(n);for(var r=arguments.length,u=new Array(r>1?r-1:0),s=1;s<r;s++)u[s-1]=arguments[s];return e.update(f.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 s=f.from(n,"utf16le");let i=this.hash(e,f.from(r,"base64"),s);for(let d=0;d<u;d++){const h=f.alloc(4);h.writeUInt32LE(d,0),i=this.hash(e,i,h)}return i.toString("base64")},randomBytes:n=>a.randomBytes(n)};v.exports=o}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(t,v,m){const{SaxesParser:f}=t("saxes"),{PassThrough:a}=t("readable-stream"),{bufferToString:o}=t("./browser-buffer-decode");v.exports=async function*(n){n.pipe&&!n[Symbol.asyncIterator]&&(n=n.pipe(new a));const e=new f;let r;e.on("error",s=>{r=s});let u=[];e.on("opentag",s=>u.push({eventType:"opentag",value:s})),e.on("text",s=>u.push({eventType:"text",value:s})),e.on("closetag",s=>u.push({eventType:"closetag",value:s}));for await(const s of n){if(e.write(o(s)),r)throw r;yield u,u=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(t,v,m){const f=t("./col-cache"),a=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,o=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;v.exports={slideFormula:function(n,e,r){const u=f.decode(e),s=f.decode(r);return n.replace(a,(i,d,h,c,g)=>{if(g)return i;const p=o.exec(c);if(p){const S=p[1],C=p[2].toUpperCase(),T=p[3],F=p[4];if(C.length>3||C.length===3&&C>"XFD")return i;let z=f.l2n(C),D=parseInt(F,10);return S||(z+=s.col-u.col),T||(D+=s.row-u.row),(d||"")+(S||"")+f.n2l(z)+(T||"")+D}return i})}}},{"./col-cache":19}],24:[function(t,v,m){(function(f,a){(function(){const o=t("readable-stream"),n=t("./utils"),e=t("./string-buf");class r{constructor(c,g){this._data=c,this._encoding=g}get length(){return this.toBuffer().length}copy(c,g,p,S){return this.toBuffer().copy(c,g,p,S)}toBuffer(){return this._buffer||(this._buffer=a.from(this._data,this._encoding)),this._buffer}}class u{constructor(c){this._data=c}get length(){return this._data.length}copy(c,g,p,S){return this._data._buf.copy(c,g,p,S)}toBuffer(){return this._data.toBuffer()}}class s{constructor(c){this._data=c}get length(){return this._data.length}copy(c,g,p,S){this._data.copy(c,g,p,S)}toBuffer(){return this._data}}class i{constructor(c){this.size=c,this.buffer=a.alloc(c),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const c=a.alloc(this.iWrite-this.iRead);return this.buffer.copy(c,0,this.iRead,this.iWrite),c}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(c){let g;return c===0?null:c===void 0||c>=this.length?(g=this.toBuffer(),this.iRead=this.iWrite,g):(g=a.alloc(c),this.buffer.copy(g,0,this.iRead,c),this.iRead+=c,g)}write(c,g,p){const S=Math.min(p,this.size-this.iWrite);return c.copy(this.buffer,this.iWrite,g,g+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,o.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 c=this.buffers[this.buffers.length-1];if(!c.full)return c}const h=new i(this.bufSize);return this.buffers.push(h),h},async _pipe(h){await Promise.all(this.pipes.map(function(c){return new Promise(g=>{c.write(h.toBuffer(),()=>{g()})})}))},_writeToBuffers(h){let c=0;const g=h.length;for(;c<g;)c+=this._getWritableBuffer().write(h,c,g-c)},async write(h,c,g){let p;if(c instanceof Function&&(g=c,c="utf8"),g=g||n.nop,h instanceof e)p=new u(h);else if(h instanceof a)p=new s(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,c)}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),f.nextTick(g)):(await this._pipe(p),g());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,c,g){const p=S=>{S?g(S):(this._flush(),this.pipes.forEach(C=>{C.end()}),this.emit("finish"))};h?this.write(h,c,p):p()},read(h){let c;if(h){for(c=[];h&&this.buffers.length&&!this.buffers[0].eod;){const g=this.buffers[0],p=g.read(h);h-=p.length,c.push(p),g.eod&&g.full&&this.buffers.shift()}return a.concat(c)}return c=this.buffers.map(g=>g.toBuffer()).filter(Boolean),this.buffers=[],a.concat(c)},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(c=>c!==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(f){(function(){v.exports=class{constructor(a){this._buf=f.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=f.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 o=2*this._buf.length;for(;o<a;)o*=2;const n=f.alloc(o);this._buf.copy(n,0),this._buf=n}addText(a){this._buffer=void 0;let o=this._inPos+this._buf.write(a,this._inPos,this._encoding);for(;o>=this._buf.length-4;)this._grow(this._inPos+a.length),o=this._inPos+this._buf.write(a,this._inPos,this._encoding);this._inPos=o}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:f}=Object.prototype,a=/["&<>]/,o={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,s=Array.isArray(n),i=Array.isArray(e);let d;if(r!==u)return!1;switch(typeof n){case"object":if(s||i)return!(!s||!i)&&n.length===e.length&&n.every((h,c)=>{const g=e[c];return o.isEqual(h,g)});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 o.every(n,(h,c)=>{const g=e[c];return o.isEqual(h,g)});default:return n===e}},escapeHtml(n){const e=a.exec(n);if(!e)return n;let r="",u="",s=0,i=e.index;for(;i<n.length;i++){switch(n.charAt(i)){case'"':u=""";break;case"&":u="&";break;case"'":u="'";break;case"<":u="<";break;case">":u=">";break;default:continue}s!==i&&(r+=n.substring(s,i)),s=i+1,r+=u}return s!==i?r+n.substring(s,i):r},strcmp:(n,e)=>n<e?-1:n>e?1:0,isUndefined:n=>f.call(n)==="[object Undefined]",isObject:n=>f.call(n)==="[object Object]",deepMerge(){const n=arguments[0]||{},{length:e}=arguments;let r,u,s;function i(d,h){r=n[h],s=Array.isArray(d),o.isObject(d)||s?(s?(s=!1,u=r&&Array.isArray(r)?r:[]):u=r&&o.isObject(r)?r:{},n[h]=o.deepMerge(u,d)):o.isUndefined(d)||(n[h]=d)}for(let d=0;d<e;d++)o.each(arguments[d],i);return n}};v.exports=o},{}],27:[function(t,v,m){(function(f,a){(function(){const o=t("fs"),n=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,e={nop(){},promiseImmediate:r=>new Promise(u=>{f.setImmediate?a(()=>{u(r)}):setTimeout(()=>{u(r)},1)}),inherits:function(r,u,s,i){r.super_=u,i||(i=s,s=null),s&&Object.keys(s).forEach(h=>{Object.defineProperty(r,h,Object.getOwnPropertyDescriptor(s,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 s=Math.round(24*(r-25569+(u?1462:0))*3600*1e3);return new Date(s)},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 s="",i="",d=0,h=u.index;for(;h<r.length;h++){const c=r.charCodeAt(h);switch(c){case 34:i=""";break;case 38:i="&";break;case 39:i="'";break;case 60:i="<";break;case 62:i=">";break;case 127:i="";break;default:if(c<=31&&(c<=8||c>=11&&c!==13)){i="";break}continue}d!==h&&(s+=r.substring(d,h)),d=h+1,i&&(s+=i)}return d!==h?s+r.substring(d,h):s},xmlDecode:r=>r.replace(/&([a-z]*);/g,u=>{switch(u){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":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=>{o.access(r,o.constants.F_OK,s=>{u(!s)})})},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 lt<"u"?lt:typeof self<"u"?self:typeof window<"u"?window:{},t("timers").setImmediate)},{fs:216,timers:523}],28:[function(t,v,m){const f=t("./under-dash"),a=t("./utils");function o(r,u,s){r.push(` ${u}="${a.xmlEncode(s.toString())}"`)}function n(r,u){if(u){const s=[];f.each(u,(i,d)=>{i!==void 0&&o(s,d,i)}),r.push(s.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 s=this._xml;s.push("<?xml"),n(s,u),s.push(`?>
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("vue"),ei={xs:18,sm:24,md:32,lg:38,xl:46},Cr={size:String};function Ar(l,j=ei){return _.computed(()=>l.size!==void 0?{fontSize:l.size in j?`${j[l.size]}px`:l.size}:null)}function Lt(l,j,t,v){return Object.defineProperty(l,j,{get:t,set:v,enumerable:!0}),l}function ca(l,j){for(const t in j)Lt(l,t,j[t]);return l}function tt(l){return _.markRaw(_.defineComponent(l))}function bi(l){return _.markRaw(l)}const fa=(l,j)=>{const t=_.reactive(l);for(const v in l)Lt(j,v,()=>t[v],m=>{t[v]=m});return j};function mt(l,j){return l!==void 0&&l()||j}function vi(l,j){if(l!==void 0){const t=l();if(t!=null)return t.slice()}return j}function Dt(l,j){return l!==void 0?j.concat(l()):j}function to(l,j){return l===void 0?j:j!==void 0?j.concat(l()):l()}function da(l,j,t,v,m,f){j.key=v+m;const a=_.h(l,j,t);return m===!0?_.withDirectives(a,f()):a}const es="0 0 24 24",jn=l=>l,Fn=l=>`ionicons ${l}`,ro={"mdi-":l=>`mdi ${l}`,"icon-":jn,"bt-":l=>`bt ${l}`,"eva-":l=>`eva ${l}`,"ion-md":Fn,"ion-ios":Fn,"ion-logo":Fn,"iconfont ":jn,"ti-":l=>`themify-icon ${l}`,"bi-":l=>`bootstrap-icons ${l}`,"i-":jn},no={o_:"-outlined",r_:"-round",s_:"-sharp"},io={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},ha=new RegExp("^("+Object.keys(ro).join("|")+")"),pa=new RegExp("^("+Object.keys(no).join("|")+")"),ts=new RegExp("^("+Object.keys(io).join("|")+")"),ma=/^[Mm]\s?[-+]?\.?\d/,ga=/^img:/,ba=/^svguse:/,va=/^ion-/,ya=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,St=tt({name:"QIcon",props:{...Cr,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(l,{slots:j}){const{proxy:{$q:t}}=_.getCurrentInstance(),v=Ar(l),m=_.computed(()=>"q-icon"+(l.left===!0?" on-left":"")+(l.right===!0?" on-right":"")+(l.color!==void 0?` text-${l.color}`:"")),f=_.computed(()=>{let a,o=l.name;if(o==="none"||!o)return{none:!0};if(t.iconMapFn!==null){const r=t.iconMapFn(o);if(r!==void 0)if(r.icon!==void 0){if(o=r.icon,o==="none"||!o)return{none:!0}}else return{cls:r.cls,content:r.content!==void 0?r.content:" "}}if(ma.test(o)===!0){const[r,u=es]=o.split("|");return{svg:!0,viewBox:u,nodes:r.split("&&").map(s=>{const[i,d,h]=s.split("@@");return _.h("path",{style:d,d:i,transform:h})})}}if(ga.test(o)===!0)return{img:!0,src:o.substring(4)};if(ba.test(o)===!0){const[r,u=es]=o.split("|");return{svguse:!0,src:r.substring(7),viewBox:u}}let n=" ";const e=o.match(ha);if(e!==null)a=ro[e[1]](o);else if(ya.test(o)===!0)a=o;else if(va.test(o)===!0)a=`ionicons ion-${t.platform.is.ios===!0?"ios":"md"}${o.substring(3)}`;else if(ts.test(o)===!0){a="notranslate material-symbols";const r=o.match(ts);r!==null&&(o=o.substring(6),a+=io[r[1]]),n=o}else{a="notranslate material-icons";const r=o.match(pa);r!==null&&(o=o.substring(2),a+=no[r[1]]),n=o}return{cls:a,content:n}});return()=>{const a={class:m.value,style:v.value,"aria-hidden":"true"};return f.value.none===!0?_.h(l.tag,a,mt(j.default)):f.value.img===!0?_.h(l.tag,a,Dt(j.default,[_.h("img",{src:f.value.src})])):f.value.svg===!0?_.h(l.tag,a,Dt(j.default,[_.h("svg",{viewBox:f.value.viewBox||"0 0 24 24"},f.value.nodes)])):f.value.svguse===!0?_.h(l.tag,a,Dt(j.default,[_.h("svg",{viewBox:f.value.viewBox},[_.h("use",{"xlink:href":f.value.src})])])):(f.value.cls!==void 0&&(a.class+=" "+f.value.cls),_.h(l.tag,a,Dt(j.default,[f.value.content])))}}});function fn(l){if(Object(l.$parent)===l.$parent)return l.$parent;let{parent:j}=l.$;for(;Object(j)===j;){if(Object(j.proxy)===j.proxy)return j.proxy;j=j.parent}}function so(l,j){typeof j.type=="symbol"?Array.isArray(j.children)===!0&&j.children.forEach(t=>{so(l,t)}):l.add(j)}function wa(l){const j=new Set;return l.forEach(t=>{so(j,t)}),Array.from(j)}function yi(l){return l.appContext.config.globalProperties.$router!==void 0}function wi(l){return l.isUnmounted===!0||l.isDeactivated===!0}function rs(l){return l?l.aliasOf?l.aliasOf.path:l.path:""}function ns(l,j){return(l.aliasOf||l)===(j.aliasOf||j)}function xa(l,j){for(const t in j){const v=j[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((f,a)=>f!==m[a]))return!1}return!0}function is(l,j){return Array.isArray(j)===!0?l.length===j.length&&l.every((t,v)=>t===j[v]):l.length===1&&l[0]===j}function Sa(l,j){return Array.isArray(l)===!0?is(l,j):Array.isArray(j)===!0?is(j,l):l===j}function ka(l,j){if(Object.keys(l).length!==Object.keys(j).length)return!1;for(const t in l)if(Sa(l[t],j[t])===!1)return!1;return!0}const oo={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},ao={...oo,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function xi({fallbackTag:l,useDisableForRouterLinkProps:j=!0}={}){const t=_.getCurrentInstance(),{props:v,proxy:m,emit:f}=t,a=yi(t),o=_.computed(()=>v.disable!==!0&&v.href!==void 0),n=j===!0?_.computed(()=>a===!0&&v.disable!==!0&&o.value!==!0&&v.to!==void 0&&v.to!==null&&v.to!==""):_.computed(()=>a===!0&&o.value!==!0&&v.to!==void 0&&v.to!==null&&v.to!==""),e=_.computed(()=>n.value===!0?p(v.to):null),r=_.computed(()=>e.value!==null),u=_.computed(()=>o.value===!0||r.value===!0),s=_.computed(()=>v.type==="a"||u.value===!0?"a":v.tag||l||"div"),i=_.computed(()=>o.value===!0?{href:v.href,target:v.target}:r.value===!0?{href:e.value.href,target:v.target}:{}),d=_.computed(()=>{if(r.value===!1)return-1;const{matched:T}=e.value,{length:F}=T,z=T[F-1];if(z===void 0)return-1;const D=m.$route.matched;if(D.length===0)return-1;const N=D.findIndex(ns.bind(null,z));if(N!==-1)return N;const L=rs(T[F-2]);return F>1&&rs(z)===L&&D[D.length-1].path!==L?D.findIndex(ns.bind(null,T[F-2])):N}),h=_.computed(()=>r.value===!0&&d.value!==-1&&xa(m.$route.params,e.value.params)),c=_.computed(()=>h.value===!0&&d.value===m.$route.matched.length-1&&ka(m.$route.params,e.value.params)),g=_.computed(()=>r.value===!0?c.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:F,to:z=v.to,replace:D=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[D===!0?"replace":"push"](z);return F===!0?N:N.then(()=>{}).catch(()=>{})}function C(T){if(r.value===!0){const F=z=>S(T,z);f("click",T,F),T.defaultPrevented!==!0&&F()}else f("click",T)}return{hasRouterLink:r,hasHrefLink:o,hasLink:u,linkTag:s,resolvedLink:e,linkIsActive:h,linkIsExactActive:c,linkClass:g,linkAttrs:i,getLink:p,navigateToRouterLink:S,navigateOnClick:C}}const _a=tt({name:"QBreadcrumbsEl",props:{...ao,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(l,{slots:j}){const{linkTag:t,linkAttrs:v,linkClass:m,navigateOnClick:f}=xi(),a=_.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:f})),o=_.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(_.h(St,{class:o.value,name:l.icon})),l.label!==void 0&&n.push(l.label),_.h(t.value,{...a.value},Dt(j.default,n))}}}),lo={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Ca=Object.keys(lo),Si={align:{type:String,validator:l=>Ca.includes(l)}};function ki(l){return _.computed(()=>{const j=l.align===void 0?l.vertical===!0?"stretch":"left":l.align;return`${l.vertical===!0?"items":"justify"}-${lo[j]}`})}const Aa=["",!0],Ea=tt({name:"QBreadcrumbs",props:{...Si,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:j}){const t=ki(l),v=_.computed(()=>`flex items-center ${t.value}${l.gutter==="none"?"":` q-gutter-${l.gutter}`}`),m=_.computed(()=>l.separatorColor?` text-${l.separatorColor}`:""),f=_.computed(()=>` text-${l.activeColor}`);return()=>{if(j.default===void 0)return;const a=wa(mt(j.default));if(a.length===0)return;let o=1;const n=[],e=a.filter(u=>u.type?.name==="QBreadcrumbsEl").length,r=j.separator!==void 0?j.separator:()=>l.separator;return a.forEach(u=>{if(u.type?.name==="QBreadcrumbsEl"){const s=o<e,i=u.props!==null&&Aa.includes(u.props.disable),d=(s===!0?"":" q-breadcrumbs--last")+(i!==!0&&s===!0?f.value:"");o++,n.push(_.h("div",{class:`flex items-center${d}`},[u])),s===!0&&n.push(_.h("div",{class:"q-breadcrumbs__separator"+m.value},r()))}else n.push(u)}),_.h("div",{class:"q-breadcrumbs"},[_.h("div",{class:v.value},n)])}}}),Ma=_.defineComponent({inheritAttrs:!1,__name:"Breadcrumbs",props:{activeColor:{},separatorIcon:{},separatorSize:{},separatorColor:{},store:{},navStore:{},route:{},router:{},breadcrumbConfig:{},separator:{},gutter:{},align:{}},setup(l){const j=l,t=_.useAttrs(),v=_.computed(()=>{const{activeColor:s,separatorIcon:i,separatorSize:d,separatorColor:h,...c}=t;return c}),m=s=>({"data-cy":s.dataCy,class:"cursor-pointer text-h5",color:s.color}),f=_.computed(()=>j.activeColor||"primary"),a=_.computed(()=>j.separatorIcon||"chevron_right"),o=_.computed(()=>j.separatorSize||"2em"),n=_.computed(()=>j.separatorColor||"primary"),e=_.computed(()=>({store:j.store,route:j.route,navStore:j.navStore||{}})),r=_.computed(()=>{const s=[];return j.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",c={name:i.routeName,...i.getRouteParams&&{params:i.getRouteParams(e.value)}},g=i.clearActions?i.clearActions.map(p=>()=>p(e.value)):[];s.push({label:d,dataCy:i.dataCy,color:h,route:c,clearActions:g})}),s}),u=s=>{s.clearActions&&s.clearActions.forEach(i=>i()),j.router.push(s.route)};return(s,i)=>(_.openBlock(),_.createBlock(Ea,_.mergeProps({"active-color":f.value,class:"text-brown"},v.value),{separator:_.withCtx(()=>[_.createVNode(St,{size:o.value,name:a.value,color:n.value},null,8,["size","name","color"])]),default:_.withCtx(()=>[(_.openBlock(!0),_.createElementBlock(_.Fragment,null,_.renderList(r.value,(d,h)=>(_.openBlock(),_.createBlock(_a,_.mergeProps({key:h},{ref_for:!0},m(d),{label:d.label,onClick:c=>u(d)}),null,16,["label","onClick"]))),128))]),_:1},16,["active-color"]))}}),Ta={size:{type:[String,Number],default:"1em"},color:String};function Ra(l){return{cSize:_.computed(()=>l.size in ei?`${ei[l.size]}px`:l.size),classes:_.computed(()=>"q-spinner"+(l.color?` text-${l.color}`:""))}}const uo=tt({name:"QSpinner",props:{...Ta,thickness:{type:Number,default:5}},setup(l){const{cSize:j,classes:t}=Ra(l);return()=>_.h("svg",{class:t.value+" q-spinner-mat",width:j.value,height:j.value,viewBox:"25 25 50 50"},[_.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":l.thickness,"stroke-miterlimit":"10"})])}});function ti(l,j){const t=l.style;for(const v in j)t[v]=j[v]}function Ba(l){if(l==null)return;if(typeof l=="string")try{return document.querySelector(l)||void 0}catch{return}const j=_.unref(l);if(j)return j.$el||j}function co(l,j){if(l==null||l.contains(j)===!0)return!0;for(let t=l.nextElementSibling;t!==null;t=t.nextElementSibling)if(t.contains(j))return!0;return!1}const _t={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const l=Object.defineProperty({},"passive",{get(){Object.assign(_t,{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 Mn(){}function Ia(l){return l.button===0}function Nr(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 Oa(l){if(l.path)return l.path;if(l.composedPath)return l.composedPath();const j=[];let t=l.target;for(;t;){if(j.push(t),t.tagName==="HTML")return j.push(document),j.push(window),j;t=t.parentElement}}function Ft(l){l.stopPropagation()}function Bt(l){l.cancelable!==!1&&l.preventDefault()}function xt(l){l.cancelable!==!1&&l.preventDefault(),l.stopPropagation()}function Pn(l,j){if(l===void 0||j===!0&&l.__dragPrevented===!0)return;const t=j===!0?v=>{v.__dragPrevented=!0,v.addEventListener("dragstart",Bt,_t.notPassiveCapture)}:v=>{delete v.__dragPrevented,v.removeEventListener("dragstart",Bt,_t.notPassiveCapture)};l.querySelectorAll("a, img").forEach(t)}function Ht(l,j,t){const v=`__q_${j}_evt`;l[v]=l[v]!==void 0?l[v].concat(t):t,t.forEach(m=>{m[0].addEventListener(m[1],l[m[2]],_t[m[3]])})}function ar(l,j){const t=`__q_${j}_evt`;l[t]!==void 0&&(l[t].forEach(v=>{v[0].removeEventListener(v[1],l[v[2]],_t[v[3]])}),l[t]=void 0)}function _i(l){return l!==Object(l)||l.isComposing===!0||l.qKeyEvent===!0}function er(l,j){return _i(l)===!0?!1:[].concat(j).includes(l.keyCode)}function ja(l,j=250){let t=!1,v;return function(){return t===!1&&(t=!0,setTimeout(()=>{t=!1},j),v=l.apply(this,arguments)),v}}function ss(l,j,t,v){t.modifiers.stop===!0&&Ft(l);const m=t.modifiers.color;let f=t.modifiers.center;f=f===!0||v===!0;const a=document.createElement("span"),o=document.createElement("span"),n=Nr(l),{left:e,top:r,width:u,height:s}=j.getBoundingClientRect(),i=Math.sqrt(u*u+s*s),d=i/2,h=`${(u-i)/2}px`,c=f?h:`${n.left-e-d}px`,g=`${(s-i)/2}px`,p=f?g:`${n.top-r-d}px`;o.className="q-ripple__inner",ti(o,{height:`${i}px`,width:`${i}px`,transform:`translate3d(${c},${p},0) scale3d(.2,.2,1)`,opacity:0}),a.className=`q-ripple${m?" text-"+m:""}`,a.setAttribute("dir","ltr"),a.appendChild(o),j.appendChild(a);const S=()=>{a.remove(),clearTimeout(C)};t.abort.push(S);let C=setTimeout(()=>{o.classList.add("q-ripple__inner--enter"),o.style.transform=`translate3d(${h},${g},0) scale3d(1,1,1)`,o.style.opacity=.2,C=setTimeout(()=>{o.classList.remove("q-ripple__inner--enter"),o.classList.add("q-ripple__inner--leave"),o.style.opacity=0,C=setTimeout(()=>{a.remove(),t.abort.splice(t.abort.indexOf(S),1)},275)},250)},50)}function os(l,{modifiers:j,value:t,arg:v}){const m=Object.assign({},l.cfg.ripple,j,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 fo=bi({name:"ripple",beforeMount(l,j){const t=j.instance.$.appContext.config.globalProperties.$q.config||{};if(t.ripple===!1)return;const v={cfg:t,enabled:j.value!==!1,modifiers:{},abort:[],start(m){v.enabled===!0&&m.qSkipRipple!==!0&&m.type===(v.modifiers.early===!0?"pointerdown":"click")&&ss(m,l,v,m.qKeyEvent===!0)},keystart:ja(m=>{v.enabled===!0&&m.qSkipRipple!==!0&&er(m,v.modifiers.keyCodes)===!0&&m.type===`key${v.modifiers.early===!0?"down":"up"}`&&ss(m,l,v,!0)},300)};os(v,j),l.__qripple=v,Ht(v,"main",[[l,"pointerdown","start","passive"],[l,"click","start","passive"],[l,"keydown","keystart","passive"],[l,"keyup","keystart","passive"]])},updated(l,j){if(j.oldValue!==j.value){const t=l.__qripple;t!==void 0&&(t.enabled=j.value!==!1,t.enabled===!0&&Object(j.value)===j.value&&os(t,j))}},beforeUnmount(l){const j=l.__qripple;j!==void 0&&(j.abort.forEach(t=>{t()}),ar(j,"main"),delete l._qripple)}}),as={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Fa={xs:8,sm:10,md:14,lg:20,xl:24},Pa=["button","submit","reset"],Da=/[^\s]\/[^\s]/,Na=["flat","outline","push","unelevated"];function La(l,j){return l.flat===!0?"flat":l.outline===!0?"outline":l.push===!0?"push":l.unelevated===!0?"unelevated":j}const qa={...Cr,...oo,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Na.reduce((l,j)=>(l[j]=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:{...Si.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},za={...qa,round:Boolean};function Va(l){const j=Ar(l,Fa),t=ki(l),{hasRouterLink:v,hasLink:m,linkTag:f,linkAttrs:a,navigateOnClick:o}=xi({fallbackTag:"button"}),n=_.computed(()=>{const c=l.fab===!1&&l.fabMini===!1?j.value:{};return l.padding!==void 0?Object.assign({},c,{padding:l.padding.split(/\s+/).map(g=>g in as?as[g]+"px":g).join(" "),minWidth:"0",minHeight:"0"}):c}),e=_.computed(()=>l.rounded===!0||l.fab===!0||l.fabMini===!0),r=_.computed(()=>l.disable!==!0&&l.loading!==!0),u=_.computed(()=>r.value===!0?l.tabindex||0:-1),s=_.computed(()=>La(l,"standard")),i=_.computed(()=>{const c={tabindex:u.value};return m.value===!0?Object.assign(c,a.value):Pa.includes(l.type)===!0&&(c.type=l.type),f.value==="a"?(l.disable===!0?c["aria-disabled"]="true":c.href===void 0&&(c.role="button"),v.value!==!0&&Da.test(l.type)===!0&&(c.type=l.type)):l.disable===!0&&(c.disabled="",c["aria-disabled"]="true"),l.loading===!0&&l.percentage!==void 0&&Object.assign(c,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l.percentage}),c}),d=_.computed(()=>{let c;l.color!==void 0?l.flat===!0||l.outline===!0?c=`text-${l.textColor||l.color}`:c=`bg-${l.color} text-${l.textColor||"white"}`:l.textColor&&(c=`text-${l.textColor}`);const g=l.round===!0?"round":`rectangle${e.value===!0?" q-btn--rounded":l.square===!0?" q-btn--square":""}`;return`q-btn--${s.value} q-btn--${g}`+(c!==void 0?" "+c:"")+(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=_.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:f,navigateOnClick:o,isActionable:r}}const{passiveCapture:Nt}=_t;let mr=null,gr=null,br=null;const bt=tt({name:"QBtn",props:{...za,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(l,{slots:j,emit:t}){const{proxy:v}=_.getCurrentInstance(),{classes:m,style:f,innerClasses:a,attributes:o,hasLink:n,linkTag:e,navigateOnClick:r,isActionable:u}=Va(l),s=_.ref(null),i=_.ref(null);let d=null,h,c=null;const g=_.computed(()=>l.label!==void 0&&l.label!==null&&l.label!==""),p=_.computed(()=>l.disable===!0||l.ripple===!1?!1:{keyCodes:n.value===!0?[13,32]:[13],...l.ripple===!0?{}:l.ripple}),S=_.computed(()=>({center:l.round})),C=_.computed(()=>{const M=Math.max(0,Math.min(100,l.percentage));return M>0?{transition:"transform 0.6s",transform:`translateX(${M-100}%)`}:{}}),T=_.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:D,onMousedown:L};if(v.$q.platform.has.touch===!0){const k=l.onTouchstart!==void 0?"":"Passive";M[`onTouchstart${k}`]=N}return M}return{onClick:xt}}),F=_.computed(()=>({ref:s,class:"q-btn q-btn-item non-selectable no-outline "+m.value,style:f.value,...o.value,...T.value}));function z(M){if(s.value!==null){if(M!==void 0){if(M.defaultPrevented===!0)return;const k=document.activeElement;if(l.type==="submit"&&k!==document.body&&s.value.contains(k)===!1&&k.contains(s.value)===!1){M.qAvoidFocus!==!0&&s.value.focus();const b=()=>{document.removeEventListener("keydown",xt,!0),document.removeEventListener("keyup",b,Nt),s.value?.removeEventListener("blur",b,Nt)};document.addEventListener("keydown",xt,!0),document.addEventListener("keyup",b,Nt),s.value.addEventListener("blur",b,Nt)}}r(M)}}function D(M){s.value!==null&&(t("keydown",M),er(M,[13,32])===!0&&gr!==s.value&&(gr!==null&&q(),M.defaultPrevented!==!0&&(M.qAvoidFocus!==!0&&s.value.focus(),gr=s.value,s.value.classList.add("q-btn--active"),document.addEventListener("keyup",U,!0),s.value.addEventListener("blur",U,Nt)),xt(M)))}function N(M){s.value!==null&&(t("touchstart",M),M.defaultPrevented!==!0&&(mr!==s.value&&(mr!==null&&q(),mr=s.value,d=M.target,d.addEventListener("touchcancel",U,Nt),d.addEventListener("touchend",U,Nt)),h=!0,c!==null&&clearTimeout(c),c=setTimeout(()=>{c=null,h=!1},200)))}function L(M){s.value!==null&&(M.qSkipRipple=h===!0,t("mousedown",M),M.defaultPrevented!==!0&&br!==s.value&&(br!==null&&q(),br=s.value,s.value.classList.add("q-btn--active"),document.addEventListener("mouseup",U,Nt)))}function U(M){if(s.value!==null&&!(M?.type==="blur"&&document.activeElement===s.value)){if(M?.type==="keyup"){if(gr===s.value&&er(M,[13,32])===!0){const k=new MouseEvent("click",M);k.qKeyEvent=!0,M.defaultPrevented===!0&&Bt(k),M.cancelBubble===!0&&Ft(k),s.value.dispatchEvent(k),xt(M),M.qKeyEvent=!0}t("keyup",M)}q()}}function q(M){const k=i.value;M!==!0&&(mr===s.value||br===s.value)&&k!==null&&k!==document.activeElement&&(k.setAttribute("tabindex",-1),k.focus()),mr===s.value&&(d!==null&&(d.removeEventListener("touchcancel",U,Nt),d.removeEventListener("touchend",U,Nt)),mr=d=null),br===s.value&&(document.removeEventListener("mouseup",U,Nt),br=null),gr===s.value&&(document.removeEventListener("keyup",U,!0),s.value?.removeEventListener("blur",U,Nt),gr=null),s.value?.classList.remove("q-btn--active")}function A(M){xt(M),M.qSkipRipple=!0}return _.onBeforeUnmount(()=>{q(!0)}),Object.assign(v,{click:M=>{u.value===!0&&z(M)}}),()=>{let M=[];l.icon!==void 0&&M.push(_.h(St,{name:l.icon,left:l.stack!==!0&&g.value===!0,role:"img"})),g.value===!0&&M.push(_.h("span",{class:"block"},[l.label])),M=Dt(j.default,M),l.iconRight!==void 0&&l.round===!1&&M.push(_.h(St,{name:l.iconRight,right:l.stack!==!0&&g.value===!0,role:"img"}));const k=[_.h("span",{class:"q-focus-helper",ref:i})];return l.loading===!0&&l.percentage!==void 0&&k.push(_.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(l.darkPercentage===!0?" q-btn__progress--dark":"")},[_.h("span",{class:"q-btn__progress-indicator fit block",style:C.value})])),k.push(_.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+a.value},M)),l.loading!==null&&k.push(_.h(_.Transition,{name:"q-transition--fade"},()=>l.loading===!0?[_.h("span",{key:"loading",class:"absolute-full flex flex-center"},j.loading!==void 0?j.loading():[_.h(uo)])]:null)),_.withDirectives(_.h(e.value,F.value,k),[[fo,p.value,void 0,S.value]])}}}),Ua={class:"row justify-between"},Wa=_.defineComponent({__name:"NavButton",props:{from:{},to:{default:void 0},labelFrom:{},labelTo:{default:void 0},params:{default:()=>({})},query:{default:()=>({})}},setup(l){const j=l,t=_.inject("navContext",null),v=_.inject("router");function m(f){if(!v){console.warn("Dependencies not available:",{router:v});return}t?.setTabs();const a=f==="back"?j.from:j.to;if(!a){console.warn("Destination not provided:",f);return}v.push({name:a,params:j.params,query:j.query})}return(f,a)=>(_.openBlock(),_.createElementBlock("div",Ua,[_.createVNode(bt,{icon:"chevron_left","rounded-sm":"",label:f.labelFrom,"data-cy":"go-back","data-testid":"go-back",onClick:a[0]||(a[0]=o=>m("back"))},null,8,["label"]),f.labelTo?(_.openBlock(),_.createBlock(bt,{key:0,label:f.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]=o=>m("next"))},null,8,["label"])):_.createCommentVNode("",!0)]))}}),Er=(l,j)=>{const t=l.__vccOpts||l;for(const[v,m]of j)t[v]=m;return t},Ha=Er(Wa,[["__scopeId","data-v-8dd99f80"]]),It={dark:{type:Boolean,default:null}};function Ot(l,j){return _.computed(()=>l.dark===null?j.dark.isActive:l.dark)}function Ya(l,j){const t=_.ref(null),v=_.computed(()=>l.disable===!0?null:_.h("span",{ref:t,class:"no-outline",tabindex:-1}));function m(f){const a=j.value;f?.qAvoidFocus!==!0&&(f?.type.indexOf("key")===0?document.activeElement!==a&&a?.contains(document.activeElement)===!0&&a.focus():t.value!==null&&(f===void 0||a?.contains(f.target)===!0)&&t.value.focus())}return{refocusTargetEl:v,refocusTarget:m}}const Tn={name:String};function Qa(l){return _.computed(()=>({type:"hidden",name:l.name,value:l.modelValue}))}function ho(l={}){return(j,t,v)=>{j[t](_.h("input",{class:"hidden"+(v||""),...l.value}))}}function po(l){return _.computed(()=>l.name||l.for)}const Ka={xs:30,sm:35,md:40,lg:50,xl:60},Xa={...It,...Cr,...Tn,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]},Ga=["update:modelValue"];function Ja(l,j){const{props:t,slots:v,emit:m,proxy:f}=_.getCurrentInstance(),{$q:a}=f,o=Ot(t,a),n=_.ref(null),{refocusTargetEl:e,refocusTarget:r}=Ya(t,n),u=Ar(t,Ka),s=_.computed(()=>t.val!==void 0&&Array.isArray(t.modelValue)),i=_.computed(()=>{const q=_.toRaw(t.val);return s.value===!0?t.modelValue.findIndex(A=>_.toRaw(A)===q):-1}),d=_.computed(()=>s.value===!0?i.value!==-1:_.toRaw(t.modelValue)===_.toRaw(t.trueValue)),h=_.computed(()=>s.value===!0?i.value===-1:_.toRaw(t.modelValue)===_.toRaw(t.falseValue)),c=_.computed(()=>d.value===!1&&h.value===!1),g=_.computed(()=>t.disable===!0?-1:t.tabindex||0),p=_.computed(()=>`q-${l} cursor-pointer no-outline row inline no-wrap items-center`+(t.disable===!0?" disabled":"")+(o.value===!0?` q-${l}--dark`:"")+(t.dense===!0?` q-${l}--dense`:"")+(t.leftLabel===!0?" reverse":"")),S=_.computed(()=>{const q=d.value===!0?"truthy":h.value===!0?"falsy":"indet",A=t.color!==void 0&&(t.keepColor===!0||h.value!==!0)?` text-${t.color}`:"";return`q-${l}__inner relative-position non-selectable q-${l}__inner--${q}${A}`}),C=_.computed(()=>{const q={type:"checkbox"};return t.name!==void 0&&Object.assign(q,{".checked":d.value,"^checked":d.value===!0?"checked":void 0,name:t.name,value:s.value===!0?t.val:t.trueValue}),q}),T=ho(C),F=_.computed(()=>{const q={tabindex:g.value,role:"checkbox","aria-label":t.label,"aria-checked":c.value===!0?"mixed":d.value===!0?"true":"false"};return t.disable===!0&&(q["aria-disabled"]="true"),q});function z(q){q!==void 0&&(xt(q),r(q)),t.disable!==!0&&m("update:modelValue",D(),q)}function D(){if(s.value===!0){if(d.value===!0){const q=t.modelValue.slice();return q.splice(i.value,1),q}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(q){(q.keyCode===13||q.keyCode===32)&&xt(q)}function L(q){(q.keyCode===13||q.keyCode===32)&&z(q)}const U=j(d,c);return Object.assign(f,{toggle:z}),()=>{const q=U();t.disable!==!0&&T(q,"unshift",` q-${l}__native absolute q-ma-none q-pa-none`);const A=[_.h("div",{class:S.value,style:u.value,"aria-hidden":"true"},q)];e.value!==null&&A.push(e.value);const M=t.label!==void 0?Dt(v.default,[t.label]):mt(v.default);return M!==void 0&&A.push(_.h("div",{class:`q-${l}__label q-anchor--skip`},M)),_.h("div",{ref:n,class:p.value,...F.value,onClick:z,onKeydown:N,onKeyup:L},A)}}const Za=()=>_.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[_.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[_.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),_.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),dn=tt({name:"QCheckbox",props:Xa,emits:Ga,setup(l){const j=Za();function t(v,m){const f=_.computed(()=>(v.value===!0?l.checkedIcon:m.value===!0?l.indeterminateIcon:l.uncheckedIcon)||null);return()=>f.value!==null?[_.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[_.h(St,{class:"q-checkbox__icon",name:f.value})])]:[j]}return Ja("checkbox",t)}}),$a=tt({props:["store","barStyle","verticalBarStyle","horizontalBarStyle"],setup(l){return()=>[_.h("div",{class:l.store.scroll.vertical.barClass.value,style:[l.barStyle,l.verticalBarStyle],"aria-hidden":"true",onMousedown:l.store.onVerticalMousedown}),_.h("div",{class:l.store.scroll.horizontal.barClass.value,style:[l.barStyle,l.horizontalBarStyle],"aria-hidden":"true",onMousedown:l.store.onHorizontalMousedown}),_.withDirectives(_.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),_.withDirectives(_.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)]}}),tr=_.ref(!1);let ri;function el(l,j){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:j[0]||""}}function tl(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 mo="ontouchstart"in window||window.navigator.maxTouchPoints>0;function rl(l){const j=l.toLowerCase(),t=tl(j),v=el(j,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 f=m.android||m.ios||m.bb||m.blackberry||m.ipad||m.iphone||m.ipod||m.kindle||m.playbook||m.silk||m["windows phone"];if(f===!0||j.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&&f!==!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,j.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"),tr.value===!0&&(ri={is:{...m}}),mo===!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 ls=navigator.userAgent||navigator.vendor||window.opera,nl={has:{touch:!1,webStorage:!1},within:{iframe:!1}},Et={userAgent:ls,is:rl(ls),has:{touch:mo},within:{iframe:window.self!==window.top}},ni={install(l){const{$q:j}=l;tr.value===!0?(l.onSSRHydrated.push(()=>{Object.assign(j.platform,Et),tr.value=!1}),j.platform=_.reactive(this)):j.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(ni,Et),tr.value===!0&&(Object.assign(ni,ri,nl),ri=null)}function il(){const l=_.ref(!tr.value);return l.value===!1&&_.onMounted(()=>{l.value=!0}),{isHydrated:l}}const go=typeof ResizeObserver<"u",us=go===!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"},kr=tt({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(l,{emit:j}){let t=null,v,m={width:-1,height:-1};function f(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},j("resize",m))}}const{proxy:o}=_.getCurrentInstance();if(o.trigger=f,go===!0){let n;const e=r=>{v=o.$el.parentNode,v?(n=new ResizeObserver(f),n.observe(v),a()):r!==!0&&_.nextTick(()=>{e(!0)})};return _.onMounted(()=>{e()}),_.onBeforeUnmount(()=>{t!==null&&clearTimeout(t),n!==void 0&&(n.disconnect!==void 0?n.disconnect():v&&n.unobserve(v))}),Mn}else{let n=function(){t!==null&&(clearTimeout(t),t=null),u!==void 0&&(u.removeEventListener!==void 0&&u.removeEventListener("resize",f,_t.passive),u=void 0)},e=function(){n(),v?.contentDocument&&(u=v.contentDocument.defaultView,u.addEventListener("resize",f,_t.passive),a())};const{isHydrated:r}=il();let u;return _.onMounted(()=>{_.nextTick(()=>{v=o.$el,v&&e()})}),_.onBeforeUnmount(n),()=>{if(r.value===!0)return _.h("object",{class:"q--avoid-card-border",style:us.style,tabindex:-1,type:"text/html",data:us.url,"aria-hidden":"true",onLoad:e})}}}}),Rn=[Element,String],sl=[null,document,document.body,document.scrollingElement,document.documentElement];function Bn(l,j){let t=Ba(j);if(t===void 0){if(l==null)return window;t=l.closest(".scroll,.scroll-y,.overflow-auto")}return sl.includes(t)?window:t}function Ci(l){return l===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:l.scrollTop}function Ai(l){return l===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:l.scrollLeft}function bo(l,j,t=0){const v=arguments[3]===void 0?performance.now():arguments[3],m=Ci(l);if(t<=0){m!==j&&ii(l,j);return}requestAnimationFrame(f=>{const a=f-v,o=m+(j-m)/Math.max(a,t)*a;ii(l,o),o!==j&&bo(l,j,t-a,f)})}function vo(l,j,t=0){const v=arguments[3]===void 0?performance.now():arguments[3],m=Ai(l);if(t<=0){m!==j&&si(l,j);return}requestAnimationFrame(f=>{const a=f-v,o=m+(j-m)/Math.max(a,t)*a;si(l,o),o!==j&&vo(l,j,t-a,f)})}function ii(l,j){if(l===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,j);return}l.scrollTop=j}function si(l,j){if(l===window){window.scrollTo(j,window.pageYOffset||window.scrollY||document.body.scrollTop||0);return}l.scrollLeft=j}function cs(l,j,t){if(t){bo(l,j,t);return}ii(l,j)}function Dn(l,j,t){if(t){vo(l,j,t);return}si(l,j)}let Zr;function hn(){if(Zr!==void 0)return Zr;const l=document.createElement("p"),j=document.createElement("div");ti(l,{width:"100%",height:"200px"}),ti(j,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),j.appendChild(l),document.body.appendChild(j);const t=l.offsetWidth;j.style.overflow="scroll";let v=l.offsetWidth;return t===v&&(v=j.clientWidth),j.remove(),Zr=t-v,Zr}function ol(l,j=!0){return!l||l.nodeType!==Node.ELEMENT_NODE?!1:j?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:fs}=_t,al=["both","horizontal","vertical"],yo=tt({name:"QScrollObserver",props:{axis:{type:String,validator:l=>al.includes(l),default:"vertical"},debounce:[String,Number],scrollTarget:Rn},emits:["scroll"],setup(l,{emit:j}){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,f;_.watch(()=>l.scrollTarget,()=>{n(),o()});function a(){v?.();const u=Math.max(0,Ci(m)),s=Ai(m),i={top:u-t.position.top,left:s-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:s},t.directionChanged=t.direction!==d,t.delta=i,t.directionChanged===!0&&(t.direction=d,t.inflectionPoint=t.position),j("scroll",{...t})}function o(){m=Bn(f,l.scrollTarget),m.addEventListener("scroll",e,fs),e(!0)}function n(){m!==void 0&&(m.removeEventListener("scroll",e,fs),m=void 0)}function e(u){if(u===!0||l.debounce===0||l.debounce==="0")a();else if(v===null){const[s,i]=l.debounce?[setTimeout(a,l.debounce),clearTimeout]:[requestAnimationFrame(a),cancelAnimationFrame];v=()=>{i(s),v=null}}}const{proxy:r}=_.getCurrentInstance();return _.watch(()=>r.$q.lang.rtl,a),_.onMounted(()=>{f=r.$el.parentNode,o()}),_.onBeforeUnmount(()=>{v?.(),n()}),Object.assign(r,{trigger:e,getPosition:()=>t}),Mn}}),Ei={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},ll=Object.keys(Ei);Ei.all=!0;function ds(l){const j={};for(const t of ll)l[t]===!0&&(j[t]=!0);return Object.keys(j).length===0?Ei:(j.horizontal===!0?j.left=j.right=!0:j.left===!0&&j.right===!0&&(j.horizontal=!0),j.vertical===!0?j.up=j.down=!0:j.up===!0&&j.down===!0&&(j.vertical=!0),j.horizontal===!0&&j.vertical===!0&&(j.all=!0),j)}const ul=["INPUT","TEXTAREA"];function hs(l,j){return j.event===void 0&&l.target!==void 0&&l.target.draggable!==!0&&typeof j.handler=="function"&&ul.includes(l.target.nodeName.toUpperCase())===!1&&(l.qClonedBy===void 0||l.qClonedBy.indexOf(j.uid)===-1)}function vn(){if(window.getSelection!==void 0){const l=window.getSelection();l.empty!==void 0?l.empty():l.removeAllRanges!==void 0&&(l.removeAllRanges(),ni.is.mobile!==!0&&l.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}function Nn(l,j,t){const v=Nr(l);let m,f=v.left-j.event.x,a=v.top-j.event.y,o=Math.abs(f),n=Math.abs(a);const e=j.direction;e.horizontal===!0&&e.vertical!==!0?m=f<0?"left":"right":e.horizontal!==!0&&e.vertical===!0?m=a<0?"up":"down":e.up===!0&&a<0?(m="up",o>n&&(e.left===!0&&f<0?m="left":e.right===!0&&f>0&&(m="right"))):e.down===!0&&a>0?(m="down",o>n&&(e.left===!0&&f<0?m="left":e.right===!0&&f>0&&(m="right"))):e.left===!0&&f<0?(m="left",o<n&&(e.up===!0&&a<0?m="up":e.down===!0&&a>0&&(m="down"))):e.right===!0&&f>0&&(m="right",o<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(j.event.isFirst===!0||j.event.lastDir===void 0)return{};m=j.event.lastDir,r=!0,m==="left"||m==="right"?(v.left-=f,o=0,f=0):(v.top-=a,n=0,a=0)}return{synthetic:r,payload:{evt:l,touch:j.event.mouse!==!0,mouse:j.event.mouse===!0,position:v,direction:m,isFirst:j.event.isFirst,isFinal:t===!0,duration:Date.now()-j.event.time,distance:{x:o,y:n},offset:{x:f,y:a},delta:{x:v.left-j.event.lastX,y:v.top-j.event.lastY}}}}let cl=0;const ps=bi({name:"touch-pan",beforeMount(l,{value:j,modifiers:t}){if(t.mouse!==!0&&Et.has.touch!==!0)return;function v(f,a){t.mouse===!0&&a===!0?xt(f):(t.stop===!0&&Ft(f),t.prevent===!0&&Bt(f))}const m={uid:"qvtp_"+cl++,handler:j,modifiers:t,direction:ds(t),noop:Mn,mouseStart(f){hs(f,m)&&Ia(f)&&(Ht(m,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),m.start(f,!0))},touchStart(f){if(hs(f,m)){const a=f.target;Ht(m,"temp",[[a,"touchmove","move","notPassiveCapture"],[a,"touchcancel","end","passiveCapture"],[a,"touchend","end","passiveCapture"]]),m.start(f)}},start(f,a){if(Et.is.firefox===!0&&Pn(l,!0),m.lastEvt=f,a===!0||t.stop===!0){if(m.direction.all!==!0&&(a!==!0||m.modifiers.mouseAllDir!==!0&&m.modifiers.mousealldir!==!0)){const e=f.type.indexOf("mouse")!==-1?new MouseEvent(f.type,f):new TouchEvent(f.type,f);f.defaultPrevented===!0&&Bt(e),f.cancelBubble===!0&&Ft(e),Object.assign(e,{qKeyEvent:f.qKeyEvent,qClickOutside:f.qClickOutside,qAnchorHandled:f.qAnchorHandled,qClonedBy:f.qClonedBy===void 0?[m.uid]:f.qClonedBy.concat(m.uid)}),m.initialEvent={target:f.target,event:e}}Ft(f)}const{left:o,top:n}=Nr(f);m.event={x:o,y:n,time:Date.now(),mouse:a===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:o,lastY:n}},move(f){if(m.event===void 0)return;const a=Nr(f),o=a.left-m.event.x,n=a.top-m.event.y;if(o===0&&n===0)return;m.lastEvt=f;const e=m.event.mouse===!0,r=()=>{v(f,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"),vn(),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(f,m.event.mouse);const{payload:i,synthetic:d}=Nn(f,m,!1);i!==void 0&&(m.handler(i)===!1?m.end(f):(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(f);return}const u=Math.abs(o),s=Math.abs(n);u!==s&&(m.direction.horizontal===!0&&u>s||m.direction.vertical===!0&&u<s||m.direction.up===!0&&u<s&&n<0||m.direction.down===!0&&u<s&&n>0||m.direction.left===!0&&u>s&&o<0||m.direction.right===!0&&u>s&&o>0?(m.event.detected=!0,m.move(f)):m.end(f,!0))},end(f,a){if(m.event!==void 0){if(ar(m,"temp"),Et.is.firefox===!0&&Pn(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(Nn(f===void 0?m.lastEvt:f,m).payload);const{payload:o}=Nn(f===void 0?m.lastEvt:f,m,!0),n=()=>{m.handler(o)};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 f=t.mouseCapture===!0||t.mousecapture===!0?"Capture":"";Ht(m,"main",[[l,"mousedown","mouseStart",`passive${f}`]])}Et.has.touch===!0&&Ht(m,"main",[[l,"touchstart","touchStart",`passive${t.capture===!0?"Capture":""}`],[l,"touchmove","noop","notPassiveCapture"]])},updated(l,j){const t=l.__qtouchpan;t!==void 0&&(j.oldValue!==j.value&&(typeof value!="function"&&t.end(),t.handler=j.value),t.direction=ds(j.modifiers))},beforeUnmount(l){const j=l.__qtouchpan;j!==void 0&&(j.event!==void 0&&j.end(),ar(j,"main"),ar(j,"temp"),Et.is.firefox===!0&&Pn(l,!1),j.styleCleanup?.(),delete l.__qtouchpan)}});function fl(l){return l.charAt(0).toUpperCase()+l.slice(1)}function Tr(l,j,t){return t<=j?j:Math.min(t,Math.max(j,l))}function ms(l,j,t){if(t<=j)return j;const v=t-j+1;let m=j+(l-j)%v;return m<j&&(m=v+m),m===0?0:m}function gt(l,j=2,t="0"){if(l==null)return l;const v=""+l;return v.length>=j?v:new Array(j-v.length+1).join(t)+v}function Mi(l,j=250,t){let v=null;function m(){const f=arguments,a=()=>{v=null,l.apply(this,f)};v!==null&&clearTimeout(v),v=setTimeout(a,j)}return m.cancel=()=>{v!==null&&clearTimeout(v)},m}const gs=["vertical","horizontal"],Ln={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}},bs={prevent:!0,mouse:!0,mouseAllDir:!0},vs=l=>l>=250?50:Math.ceil(l/5),dl=tt({name:"QScrollArea",props:{...It,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:j,emit:t}){const v=_.ref(!1),m=_.ref(!1),f=_.ref(!1),a={vertical:_.ref(0),horizontal:_.ref(0)},o={vertical:{ref:_.ref(null),position:_.ref(0),size:_.ref(0)},horizontal:{ref:_.ref(null),position:_.ref(0),size:_.ref(0)}},{proxy:n}=_.getCurrentInstance(),e=Ot(l,n.$q);let r=null,u;const s=_.ref(null),i=_.computed(()=>"q-scrollarea"+(e.value===!0?" q-scrollarea--dark":""));Object.assign(a,{verticalInner:_.computed(()=>a.vertical.value-l.verticalOffset[0]-l.verticalOffset[1]),horizontalInner:_.computed(()=>a.horizontal.value-l.horizontalOffset[0]-l.horizontalOffset[1])}),o.vertical.percentage=_.computed(()=>{const M=o.vertical.size.value-a.vertical.value;if(M<=0)return 0;const k=Tr(o.vertical.position.value/M,0,1);return Math.round(k*1e4)/1e4}),o.vertical.thumbHidden=_.computed(()=>(l.visible===null?f.value:l.visible)!==!0&&v.value===!1&&m.value===!1||o.vertical.size.value<=a.vertical.value+1),o.vertical.thumbStart=_.computed(()=>l.verticalOffset[0]+o.vertical.percentage.value*(a.verticalInner.value-o.vertical.thumbSize.value)),o.vertical.thumbSize=_.computed(()=>Math.round(Tr(a.verticalInner.value*a.verticalInner.value/o.vertical.size.value,vs(a.verticalInner.value),a.verticalInner.value))),o.vertical.style=_.computed(()=>({...l.thumbStyle,...l.verticalThumbStyle,top:`${o.vertical.thumbStart.value}px`,height:`${o.vertical.thumbSize.value}px`,right:`${l.horizontalOffset[1]}px`})),o.vertical.thumbClass=_.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(o.vertical.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),o.vertical.barClass=_.computed(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(o.vertical.thumbHidden.value===!0?" q-scrollarea__bar--invisible":"")),o.horizontal.percentage=_.computed(()=>{const M=o.horizontal.size.value-a.horizontal.value;if(M<=0)return 0;const k=Tr(Math.abs(o.horizontal.position.value)/M,0,1);return Math.round(k*1e4)/1e4}),o.horizontal.thumbHidden=_.computed(()=>(l.visible===null?f.value:l.visible)!==!0&&v.value===!1&&m.value===!1||o.horizontal.size.value<=a.horizontal.value+1),o.horizontal.thumbStart=_.computed(()=>l.horizontalOffset[0]+o.horizontal.percentage.value*(a.horizontalInner.value-o.horizontal.thumbSize.value)),o.horizontal.thumbSize=_.computed(()=>Math.round(Tr(a.horizontalInner.value*a.horizontalInner.value/o.horizontal.size.value,vs(a.horizontalInner.value),a.horizontalInner.value))),o.horizontal.style=_.computed(()=>({...l.thumbStyle,...l.horizontalThumbStyle,[n.$q.lang.rtl===!0?"right":"left"]:`${o.horizontal.thumbStart.value}px`,width:`${o.horizontal.thumbSize.value}px`,bottom:`${l.verticalOffset[1]}px`})),o.horizontal.thumbClass=_.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(o.horizontal.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),o.horizontal.barClass=_.computed(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(o.horizontal.thumbHidden.value===!0?" q-scrollarea__bar--invisible":""));const d=_.computed(()=>o.vertical.thumbHidden.value===!0&&o.horizontal.thumbHidden.value===!0?l.contentStyle:l.contentActiveStyle);function h(){const M={};return gs.forEach(k=>{const b=o[k];Object.assign(M,{[k+"Position"]:b.position.value,[k+"Percentage"]:b.percentage.value,[k+"Size"]:b.size.value,[k+"ContainerSize"]:a[k].value,[k+"ContainerInnerSize"]:a[k+"Inner"].value})}),M}const c=Mi(()=>{const M=h();M.ref=n,t("scroll",M)},0);function g(M,k,b){if(gs.includes(M)===!1){console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");return}(M==="vertical"?cs:Dn)(s.value,k,b)}function p({height:M,width:k}){let b=!1;a.vertical.value!==M&&(a.vertical.value=M,b=!0),a.horizontal.value!==k&&(a.horizontal.value=k,b=!0),b===!0&&z()}function S({position:M}){let k=!1;o.vertical.position.value!==M.top&&(o.vertical.position.value=M.top,k=!0),o.horizontal.position.value!==M.left&&(o.horizontal.position.value=M.left,k=!0),k===!0&&z()}function C({height:M,width:k}){o.horizontal.size.value!==k&&(o.horizontal.size.value=k,z()),o.vertical.size.value!==M&&(o.vertical.size.value=M,z())}function T(M,k){const b=o[k];if(M.isFirst===!0){if(b.thumbHidden.value===!0)return;u=b.position.value,m.value=!0}else if(m.value!==!0)return;M.isFinal===!0&&(m.value=!1);const y=Ln[k],w=(b.size.value-a[k].value)/(a[k+"Inner"].value-b.thumbSize.value),x=M.distance[y.dist],E=u+(M.direction===y.dir?1:-1)*x*w;D(E,k)}function F(M,k){const b=o[k];if(b.thumbHidden.value!==!0){const y=k==="vertical"?l.verticalOffset[0]:l.horizontalOffset[0],w=M[Ln[k].offset]-y,x=b.thumbStart.value-y;if(w<x||w>x+b.thumbSize.value){const E=w-b.thumbSize.value/2,B=Tr(E/(a[k+"Inner"].value-b.thumbSize.value),0,1);D(B*Math.max(0,b.size.value-a[k].value),k)}b.ref.value!==null&&b.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&&c()}function D(M,k){s.value[Ln[k].scroll]=M}let N=null;function L(){N!==null&&clearTimeout(N),N=setTimeout(()=>{N=null,f.value=!0},n.$q.platform.is.ios?50:0)}function U(){N!==null&&(clearTimeout(N),N=null),f.value=!1}let q=null;_.watch(()=>n.$q.lang.rtl,M=>{s.value!==null&&Dn(s.value,Math.abs(o.horizontal.position.value)*(M===!0?-1:1))}),_.onDeactivated(()=>{q={top:o.vertical.position.value,left:o.horizontal.position.value}}),_.onActivated(()=>{if(q===null)return;const M=s.value;M!==null&&(Dn(M,q.left),cs(M,q.top))}),_.onBeforeUnmount(c.cancel),Object.assign(n,{getScrollTarget:()=>s.value,getScroll:h,getScrollPosition:()=>({top:o.vertical.position.value,left:o.horizontal.position.value}),getScrollPercentage:()=>({top:o.vertical.percentage.value,left:o.horizontal.percentage.value}),setScrollPosition:g,setScrollPercentage(M,k,b){g(M,k*(o[M].size.value-a[M].value)*(M==="horizontal"&&n.$q.lang.rtl===!0?-1:1),b)}});const A={scroll:o,thumbVertDir:[[ps,M=>{T(M,"vertical")},void 0,{vertical:!0,...bs}]],thumbHorizDir:[[ps,M=>{T(M,"horizontal")},void 0,{horizontal:!0,...bs}]],onVerticalMousedown(M){F(M,"vertical")},onHorizontalMousedown(M){F(M,"horizontal")}};return()=>_.h("div",{class:i.value,onMouseenter:L,onMouseleave:U},[_.h("div",{ref:s,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:l.tabindex!==void 0?l.tabindex:void 0},[_.h("div",{class:"q-scrollarea__content absolute",style:d.value},Dt(j.default,[_.h(kr,{debounce:0,onResize:C})])),_.h(yo,{axis:"both",onScroll:S})]),_.h(kr,{debounce:0,onResize:p}),_.h($a,{store:A,barStyle:l.barStyle,verticalBarStyle:l.verticalBarStyle,horizontalBarStyle:l.horizontalBarStyle})])}}),Ti=tt({name:"QCard",props:{...It,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(l,{slots:j}){const{proxy:{$q:t}}=_.getCurrentInstance(),v=Ot(l,t),m=_.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()=>_.h(l.tag,{class:m.value},mt(j.default))}}),wo={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},xo={...wo,contextMenu:Boolean};function Ri({showing:l,avoidEmit:j,configureAnchorEl:t}){const{props:v,proxy:m,emit:f}=_.getCurrentInstance(),a=_.ref(null);let o=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){er(i,13)===!0&&e.toggle(i)},contextClick(i){m.hide(i),Bt(i),_.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;Ht(e,"anchor",[[d,"touchmove","mobileCleanup","passive"],[d,"touchend","mobileCleanup","passive"],[d,"touchcancel","mobileCleanup","passive"],[a.value,"contextmenu","prevent","notPassive"]]),o=setTimeout(()=>{o=null,m.show(i),i.qAnchorHandled=!0},300)},mobileCleanup(i){a.value.classList.remove("non-selectable"),o!==null&&(clearTimeout(o),o=null),l.value===!0&&i!==void 0&&vn()}}),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"]],Ht(e,"anchor",d)});function r(){ar(e,"anchor")}function u(i){for(a.value=i;a.value.classList.contains("q-anchor--skip");)a.value=a.value.parentNode;t()}function s(){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 _.watch(()=>v.contextMenu,i=>{a.value!==null&&(r(),t(i))}),_.watch(()=>v.target,()=>{a.value!==null&&r(),s()}),_.watch(()=>v.noParentEvent,i=>{a.value!==null&&(i===!0?r():t())}),_.onMounted(()=>{s(),j!==!0&&v.modelValue===!0&&a.value===null&&f("update:modelValue",!1)}),_.onBeforeUnmount(()=>{o!==null&&clearTimeout(o),r()}),{anchorEl:a,canShow:n,anchorEvents:e}}function So(l,j){const t=_.ref(null);let v;function m(o,n){const e=`${n!==void 0?"add":"remove"}EventListener`,r=n!==void 0?n:v;o!==window&&o[e]("scroll",r,_t.passive),window[e]("scroll",r,_t.passive),v=n}function f(){t.value!==null&&(m(t.value),t.value=null)}const a=_.watch(()=>l.noParentEvent,()=>{t.value!==null&&(f(),j())});return _.onBeforeUnmount(a),{localScrollTarget:t,unconfigureScrollTarget:f,changeScrollEvent:m}}const Bi={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Ii=["beforeShow","show","beforeHide","hide"];function Oi({showing:l,canShow:j,hideOnRouteChange:t,handleShow:v,handleHide:m,processOnMount:f}){const a=_.getCurrentInstance(),{props:o,emit:n,proxy:e}=a;let r;function u(p){l.value===!0?d(p):s(p)}function s(p){if(o.disable===!0||p?.qAnchorHandled===!0||j!==void 0&&j(p)!==!0)return;const S=o["onUpdate:modelValue"]!==void 0;S===!0&&(n("update:modelValue",!0),r=p,_.nextTick(()=>{r===p&&(r=void 0)})),(o.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(o.disable===!0)return;const S=o["onUpdate:modelValue"]!==void 0;S===!0&&(n("update:modelValue",!1),r=p,_.nextTick(()=>{r===p&&(r=void 0)})),(o.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 c(p){o.disable===!0&&p===!0?o["onUpdate:modelValue"]!==void 0&&n("update:modelValue",!1):p===!0!==l.value&&(p===!0?i:h)(r)}_.watch(()=>o.modelValue,c),t!==void 0&&yi(a)===!0&&_.watch(()=>e.$route.fullPath,()=>{t.value===!0&&l.value===!0&&d()}),_.onMounted(()=>{c(o.modelValue)});const g={show:s,hide:d,toggle:u};return Object.assign(e,g),g}let or=[],Lr=[];function ko(l){Lr=Lr.filter(j=>j!==l)}function hl(l){ko(l),Lr.push(l)}function ys(l){ko(l),Lr.length===0&&or.length!==0&&(or[or.length-1](),or=[])}function Vr(l){Lr.length===0?l():or.push(l)}function pl(l){or=or.filter(j=>j!==l)}const ws={};let ml=1,gl=document.body;function bl(l,j){const t=document.createElement("div");if(t.id=j!==void 0?`q-portal--${j}--${ml++}`:l,ws.globalNodes!==void 0){const v=ws.globalNodes.class;v!==void 0&&(t.className=v)}return gl.appendChild(t),t}function vl(l){l.remove()}const xr=[];function yl(l){return xr.find(j=>j.contentEl!==null&&j.contentEl.contains(l))}function _o(l,j){do{if(l.$options.name==="QMenu"){if(l.hide(j),l.$props.separateClosePopup===!0)return fn(l)}else if(l.__qPortal===!0){const t=fn(l);return t?.$options.name==="QPopupProxy"?(l.hide(j),t):l}l=fn(l)}while(l!=null)}function wl(l,j,t){for(;t!==0&&l!==void 0&&l!==null;){if(l.__qPortal===!0){if(t--,l.$options.name==="QMenu"){l=_o(l,j);continue}l.hide(j)}l=fn(l)}}const xl=tt({name:"QPortal",setup(l,{slots:j}){return()=>j.default()}});function Sl(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 ji(l,j,t,v){const m=_.ref(!1),f=_.ref(!1);let a=null;const o={},n=v==="dialog"&&Sl(l);function e(u){if(u===!0){ys(o),f.value=!0;return}f.value=!1,m.value===!1&&(n===!1&&a===null&&(a=bl(!1,v)),m.value=!0,xr.push(l.proxy),hl(o))}function r(u){if(f.value=!1,u!==!0)return;ys(o),m.value=!1;const s=xr.indexOf(l.proxy);s!==-1&&xr.splice(s,1),a!==null&&(vl(a),a=null)}return _.onUnmounted(()=>{r(!0)}),l.proxy.__qPortal=!0,Lt(l.proxy,"contentEl",()=>j.value),{showPortal:e,hidePortal:r,portalIsActive:m,portalIsAccessible:f,renderPortal:()=>n===!0?t():m.value===!0?[_.h(_.Teleport,{to:a},_.h(xl,t))]:void 0}}const Fr={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Fi(l,j=()=>{},t=()=>{}){return{transitionProps:_.computed(()=>{const v=`q-transition--${l.transitionShow||j()}`,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:_.computed(()=>`--q-transition-duration: ${l.transitionDuration}ms`)}}function Pi(){let l;const j=_.getCurrentInstance();function t(){l=void 0}return _.onDeactivated(t),_.onBeforeUnmount(t),{removeTick:t,registerTick(v){l=v,_.nextTick(()=>{l===v&&(wi(j)===!1&&l(),l=void 0)})}}}function Di(){let l=null;const j=_.getCurrentInstance();function t(){l!==null&&(clearTimeout(l),l=null)}return _.onDeactivated(t),_.onBeforeUnmount(t),{removeTimeout:t,registerTimeout(v,m){t(),wi(j)===!1&&(l=setTimeout(()=>{l=null,v()},m))}}}const lr=[];let _r;function kl(l){_r=l.keyCode===27}function _l(){_r===!0&&(_r=!1)}function Cl(l){_r===!0&&(_r=!1,er(l,27)===!0&&lr[lr.length-1](l))}function Co(l){window[l]("keydown",kl),window[l]("blur",_l),window[l]("keyup",Cl),_r=!1}function Ao(l){Et.is.desktop===!0&&(lr.push(l),lr.length===1&&Co("addEventListener"))}function yn(l){const j=lr.indexOf(l);j!==-1&&(lr.splice(j,1),lr.length===0&&Co("removeEventListener"))}const ur=[];function Eo(l){ur[ur.length-1](l)}function Mo(l){Et.is.desktop===!0&&(ur.push(l),ur.length===1&&document.body.addEventListener("focusin",Eo))}function oi(l){const j=ur.indexOf(l);j!==-1&&(ur.splice(j,1),ur.length===0&&document.body.removeEventListener("focusin",Eo))}const{notPassiveCapture:wn}=_t,cr=[];function xn(l){const j=l.target;if(j===void 0||j.nodeType===8||j.classList.contains("no-pointer-events")===!0)return;let t=xr.length-1;for(;t>=0;){const v=xr[t].$;if(v.type.name==="QTooltip"){t--;continue}if(v.type.name!=="QDialog")break;if(v.props.seamless!==!0)return;t--}for(let v=cr.length-1;v>=0;v--){const m=cr[v];if((m.anchorEl.value===null||m.anchorEl.value.contains(j)===!1)&&(j===document.body||m.innerRef.value!==null&&m.innerRef.value.contains(j)===!1))l.qClickOutside=!0,m.onClickOutside(l);else return}}function To(l){cr.push(l),cr.length===1&&(document.addEventListener("mousedown",xn,wn),document.addEventListener("touchstart",xn,wn))}function Sn(l){const j=cr.findIndex(t=>t===l);j!==-1&&(cr.splice(j,1),cr.length===0&&(document.removeEventListener("mousedown",xn,wn),document.removeEventListener("touchstart",xn,wn)))}let xs,Ss;function kn(l){const j=l.split(" ");return j.length!==2?!1:["top","center","bottom"].includes(j[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(j[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function Ro(l){return l?!(l.length!==2||typeof l[0]!="number"||typeof l[1]!="number"):!0}const ai={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(l=>{ai[`${l}#ltr`]=l,ai[`${l}#rtl`]=l});function _n(l,j){const t=l.split(" ");return{vertical:t[0],horizontal:ai[`${t[1]}#${j===!0?"rtl":"ltr"}`]}}function Al(l,j){let{top:t,left:v,right:m,bottom:f,width:a,height:o}=l.getBoundingClientRect();return j!==void 0&&(t-=j[1],v-=j[0],f+=j[1],m+=j[0],a+=j[0],o+=j[1]),{top:t,bottom:f,height:o,left:v,right:m,width:a,middle:v+(m-v)/2,center:t+(f-t)/2}}function El(l,j,t){let{top:v,left:m}=l.getBoundingClientRect();return v+=j.top,m+=j.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 Ml(l,j){return{top:0,center:j/2,bottom:j,left:0,middle:l/2,right:l}}function ks(l,j,t,v){return{top:l[t.vertical]-j[v.vertical],left:l[t.horizontal]-j[v.horizontal]}}function Ni(l,j=0){if(l.targetEl===null||l.anchorEl===null||j>5)return;if(l.targetEl.offsetHeight===0||l.targetEl.offsetWidth===0){setTimeout(()=>{Ni(l,j+1)},10);return}const{targetEl:t,offset:v,anchorEl:m,anchorOrigin:f,selfOrigin:a,absoluteOffset:o,fit:n,cover:e,maxHeight:r,maxWidth:u}=l;if(Et.is.ios===!0&&window.visualViewport!==void 0){const F=document.body.style,{offsetLeft:z,offsetTop:D}=window.visualViewport;z!==xs&&(F.setProperty("--q-pe-left",z+"px"),xs=z),D!==Ss&&(F.setProperty("--q-pe-top",D+"px"),Ss=D)}const{scrollLeft:s,scrollTop:i}=t,d=o===void 0?Al(m,e===!0?[0,0]:v):El(m,o,v);Object.assign(t.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:u,maxHeight:r,visibility:"visible"});const{offsetWidth:h,offsetHeight:c}=t,{elWidth:g,elHeight:p}=n===!0||e===!0?{elWidth:Math.max(d.width,h),elHeight:e===!0?Math.max(d.height,c):c}:{elWidth:h,elHeight:c};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 C=Ml(g,p);let T=ks(d,C,f,a);if(o===void 0||v===void 0)qn(T,d,C,f,a);else{const{top:F,left:z}=T;qn(T,d,C,f,a);let D=!1;if(T.top!==F){D=!0;const N=2*v[1];d.center=d.top-=N,d.bottom-=N+2}if(T.left!==z){D=!0;const N=2*v[0];d.middle=d.left-=N,d.right-=N+2}D===!0&&(T=ks(d,C,f,a),qn(T,d,C,f,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!==s&&(t.scrollLeft=s)}function qn(l,j,t,v,m){const f=t.bottom,a=t.right,o=hn(),n=window.innerHeight-o,e=document.body.clientWidth;if(l.top<0||l.top+f>n)if(m.vertical==="center")l.top=j[v.vertical]>n/2?Math.max(0,n-f):0,l.maxHeight=Math.min(f,n);else if(j[v.vertical]>n/2){const r=Math.min(n,v.vertical==="center"?j.center:v.vertical===m.vertical?j.bottom:j.top);l.maxHeight=Math.min(f,r),l.top=Math.max(0,r-f)}else l.top=Math.max(0,v.vertical==="center"?j.center:v.vertical===m.vertical?j.top:j.bottom),l.maxHeight=Math.min(f,n-l.top);if(l.left<0||l.left+a>e)if(l.maxWidth=Math.min(a,e),m.horizontal==="middle")l.left=j[v.horizontal]>e/2?Math.max(0,e-a):0;else if(j[v.horizontal]>e/2){const r=Math.min(e,v.horizontal==="middle"?j.middle:v.horizontal===m.horizontal?j.right:j.left);l.maxWidth=Math.min(a,r),l.left=Math.max(0,r-l.maxWidth)}else l.left=Math.max(0,v.horizontal==="middle"?j.middle:v.horizontal===m.horizontal?j.left:j.right),l.maxWidth=Math.min(a,e-l.left)}const Ur=tt({name:"QMenu",inheritAttrs:!1,props:{...xo,...Bi,...It,...Fr,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:kn},self:{type:String,validator:kn},offset:{type:Array,validator:Ro},scrollTarget:Rn,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Ii,"click","escapeKey"],setup(l,{slots:j,emit:t,attrs:v}){let m=null,f,a,o;const n=_.getCurrentInstance(),{proxy:e}=n,{$q:r}=e,u=_.ref(null),s=_.ref(!1),i=_.computed(()=>l.persistent!==!0&&l.noRouteDismiss!==!0),d=Ot(l,r),{registerTick:h,removeTick:c}=Pi(),{registerTimeout:g}=Di(),{transitionProps:p,transitionStyle:S}=Fi(l),{localScrollTarget:C,changeScrollEvent:T,unconfigureScrollTarget:F}=So(l,W),{anchorEl:z,canShow:D}=Ri({showing:s}),{hide:N}=Oi({showing:s,canShow:D,handleShow:E,handleHide:B,hideOnRouteChange:i,processOnMount:!0}),{showPortal:L,hidePortal:U,renderPortal:q}=ji(n,u,O,"menu"),A={anchorEl:z,innerRef:u,onClickOutside(R){if(l.persistent!==!0&&s.value===!0)return N(R),(R.type==="touchstart"||R.target.classList.contains("q-dialog__backdrop"))&&xt(R),!0}},M=_.computed(()=>_n(l.anchor||(l.cover===!0?"center middle":"bottom start"),r.lang.rtl)),k=_.computed(()=>l.cover===!0?M.value:_n(l.self||"top start",r.lang.rtl)),b=_.computed(()=>(l.square===!0?" q-menu--square":"")+(d.value===!0?" q-menu--dark q-dark":"")),y=_.computed(()=>l.autoClose===!0?{onClick:H}:{}),w=_.computed(()=>s.value===!0&&l.persistent!==!0);_.watch(w,R=>{R===!0?(Ao(P),To(A)):(yn(P),Sn(A))});function x(){Vr(()=>{let R=u.value;R&&R.contains(document.activeElement)!==!0&&(R=R.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||R.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||R.querySelector("[autofocus], [data-autofocus]")||R,R.focus({preventScroll:!0}))})}function E(R){if(m=l.noRefocus===!1?document.activeElement:null,Mo(K),L(),W(),f=void 0,R!==void 0&&(l.touchPosition||l.contextMenu)){const V=Nr(R);if(V.left!==void 0){const{top:Q,left:$}=z.value.getBoundingClientRect();f={left:V.left-$,top:V.top-Q}}}a===void 0&&(a=_.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&&x()}),g(()=>{r.platform.is.ios===!0&&(o=l.autoClose,u.value.click()),Y(),L(!0),t("show",R)},l.transitionDuration)}function B(R){c(),U(),I(!0),m!==null&&(R===void 0||R.qClickOutside!==!0)&&(((R?.type.indexOf("key")===0?m.closest('[tabindex]:not([tabindex^="-"])'):void 0)||m).focus(),m=null),g(()=>{U(!0),t("hide",R)},l.transitionDuration)}function I(R){f=void 0,a!==void 0&&(a(),a=void 0),(R===!0||s.value===!0)&&(oi(K),F(),Sn(A),yn(P)),R!==!0&&(m=null)}function W(){(z.value!==null||l.scrollTarget!==void 0)&&(C.value=Bn(z.value,l.scrollTarget),T(C.value,Y))}function H(R){o!==!0?(_o(e,R),t("click",R)):o=!1}function K(R){w.value===!0&&l.noFocus!==!0&&co(u.value,R.target)!==!0&&x()}function P(R){l.noEscDismiss!==!0&&(t("escapeKey"),N(R))}function Y(){Ni({targetEl:u.value,offset:l.offset,anchorEl:z.value,anchorOrigin:M.value,selfOrigin:k.value,absoluteOffset:f,fit:l.fit,cover:l.cover,maxHeight:l.maxHeight,maxWidth:l.maxWidth})}function O(){return _.h(_.Transition,p.value,()=>s.value===!0?_.h("div",{role:"menu",...v,ref:u,tabindex:-1,class:["q-menu q-position-engine scroll"+b.value,v.class],style:[v.style,S.value],...y.value},mt(j.default)):null)}return _.onBeforeUnmount(I),Object.assign(e,{focus:x,updatePosition:Y}),q}});let zn,$r=0;const Mt=new Array(256);for(let l=0;l<256;l++)Mt[l]=(l+256).toString(16).substring(1);const Tl=(()=>{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 j=>{const t=new Uint8Array(j);return l.getRandomValues(t),t}}return j=>{const t=[];for(let v=j;v>0;v--)t.push(Math.floor(Math.random()*256));return t}})(),_s=4096;function li(){(zn===void 0||$r+16>_s)&&($r=0,zn=Tl(_s));const l=Array.prototype.slice.call(zn,$r,$r+=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 Rl(l){return l??null}function Cs(l,j){return l??(j===!0?`f_${li()}`:null)}function Bl({getValue:l,required:j=!0}={}){if(tr.value===!0){const t=l!==void 0?_.ref(Rl(l())):_.ref(null);return j===!0&&t.value===null&&_.onMounted(()=>{t.value=`f_${li()}`}),l!==void 0&&_.watch(l,v=>{t.value=Cs(v,j)}),t}return l!==void 0?_.computed(()=>Cs(l(),j)):_.ref(`f_${li()}`)}const As=/^on[A-Z]/;function Il(){const{attrs:l,vnode:j}=_.getCurrentInstance(),t={listeners:_.ref({}),attributes:_.ref({})};function v(){const m={},f={};for(const a in l)a!=="class"&&a!=="style"&&As.test(a)===!1&&(m[a]=l[a]);for(const a in j.props)As.test(a)===!0&&(f[a]=j.props[a]);t.attributes.value=m,t.listeners.value=f}return _.onBeforeUpdate(v),v(),t}const Wr="_q_l_",Bo="_q_pc_",Io="_q_fo_";function Rt(){}function Ol({validate:l,resetValidation:j,requiresQForm:t}){const v=_.inject(Io,!1);if(v!==!1){const{props:m,proxy:f}=_.getCurrentInstance();Object.assign(f,{validate:l,resetValidation:j}),_.watch(()=>m.disable,a=>{a===!0?(typeof j=="function"&&j(),v.unbindComponent(f)):v.bindComponent(f)}),_.onMounted(()=>{m.disable!==!0&&v.bindComponent(f)}),_.onBeforeUnmount(()=>{m.disable!==!0&&v.unbindComponent(f)})}else t===!0&&console.error("Parent QForm not found on useFormChild()!")}const Es=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Ms=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Ts=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,en=/^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])\)$/,tn=/^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)\)$/,Vn={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=>Es.test(l),hexaColor:l=>Ms.test(l),hexOrHexaColor:l=>Ts.test(l),rgbColor:l=>en.test(l),rgbaColor:l=>tn.test(l),rgbOrRgbaColor:l=>en.test(l)||tn.test(l),hexOrRgbColor:l=>Es.test(l)||en.test(l),hexaOrRgbaColor:l=>Ms.test(l)||tn.test(l),anyColor:l=>Ts.test(l)||en.test(l)||tn.test(l)},jl=[!0,!1,"ondemand"],Fl={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:l=>jl.includes(l)}};function Pl(l,j){const{props:t,proxy:v}=_.getCurrentInstance(),m=_.ref(!1),f=_.ref(null),a=_.ref(!1);Ol({validate:h,resetValidation:d});let o=0,n;const e=_.computed(()=>t.rules!==void 0&&t.rules!==null&&t.rules.length!==0),r=_.computed(()=>t.disable!==!0&&e.value===!0&&j.value===!1),u=_.computed(()=>t.error===!0||m.value===!0),s=_.computed(()=>typeof t.errorMessage=="string"&&t.errorMessage.length!==0?t.errorMessage:f.value);_.watch(()=>t.modelValue,()=>{a.value=!0,r.value===!0&&t.lazyRules===!1&&c()});function i(){t.lazyRules!=="ondemand"&&r.value===!0&&a.value===!0&&c()}_.watch(()=>t.reactiveRules,g=>{g===!0?n===void 0&&(n=_.watch(()=>t.rules,i,{immediate:!0,deep:!0})):n!==void 0&&(n(),n=void 0)},{immediate:!0}),_.watch(()=>t.lazyRules,i),_.watch(l,g=>{g===!0?a.value=!0:r.value===!0&&t.lazyRules!=="ondemand"&&c()});function d(){o++,j.value=!1,a.value=!1,m.value=!1,f.value=null,c.cancel()}function h(g=t.modelValue){if(t.disable===!0||e.value===!1)return!0;const p=++o,S=j.value!==!0?()=>{a.value=!0}:()=>{},C=(F,z)=>{F===!0&&S(),m.value=F,f.value=z||null,j.value=!1},T=[];for(let F=0;F<t.rules.length;F++){const z=t.rules[F];let D;if(typeof z=="function"?D=z(g,Vn):typeof z=="string"&&Vn[z]!==void 0&&(D=Vn[z](g)),D===!1||typeof D=="string")return C(!0,D),!1;D!==!0&&D!==void 0&&T.push(D)}return T.length===0?(C(!1),!0):(j.value=!0,Promise.all(T).then(F=>{if(F===void 0||Array.isArray(F)===!1||F.length===0)return p===o&&C(!1),!0;const z=F.find(D=>D===!1||typeof D=="string");return p===o&&C(z!==void 0,z),z===void 0},F=>(p===o&&(console.error(F),C(!0)),!1)))}const c=Mi(h,0);return _.onBeforeUnmount(()=>{n?.(),c.cancel()}),Object.assign(v,{resetValidation:d,validate:h}),Lt(v,"hasError",()=>u.value),{isDirtyModel:a,hasRules:e,hasError:u,errorMessage:s,validate:h,resetValidation:d}}function qr(l){return l!=null&&(""+l).length!==0}const Dl={...It,...Fl,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},In={...Dl,maxlength:[Number,String]},Li=["update:modelValue","clear","focus","blur"];function qi({requiredForAttr:l=!0,tagProp:j,changeEvent:t=!1}={}){const{props:v,proxy:m}=_.getCurrentInstance(),f=Ot(v,m.$q),a=Bl({required:l,getValue:()=>v.for});return{requiredForAttr:l,changeEvent:t,tag:j===!0?_.computed(()=>v.tag):{value:"label"},isDark:f,editable:_.computed(()=>v.disable!==!0&&v.readonly!==!0),innerLoading:_.ref(!1),focused:_.ref(!1),hasPopupOpen:!1,splitAttrs:Il(),targetUid:a,rootRef:_.ref(null),targetRef:_.ref(null),controlRef:_.ref(null)}}function zi(l){const{props:j,emit:t,slots:v,attrs:m,proxy:f}=_.getCurrentInstance(),{$q:a}=f;let o=null;l.hasValue===void 0&&(l.hasValue=_.computed(()=>qr(j.modelValue))),l.emitValue===void 0&&(l.emitValue=w=>{t("update:modelValue",w)}),l.controlEvents===void 0&&(l.controlEvents={onFocusin:N,onFocusout:L}),Object.assign(l,{clearValue:U,onControlFocusin:N,onControlFocusout:L,focus:z}),l.computedCounter===void 0&&(l.computedCounter=_.computed(()=>{if(j.counter!==!1){const w=typeof j.modelValue=="string"||typeof j.modelValue=="number"?(""+j.modelValue).length:Array.isArray(j.modelValue)===!0?j.modelValue.length:0,x=j.maxlength!==void 0?j.maxlength:j.maxValues;return w+(x!==void 0?" / "+x:"")}}));const{isDirtyModel:n,hasRules:e,hasError:r,errorMessage:u,resetValidation:s}=Pl(l.focused,l.innerLoading),i=l.floatingLabel!==void 0?_.computed(()=>j.stackLabel===!0||l.focused.value===!0||l.floatingLabel.value===!0):_.computed(()=>j.stackLabel===!0||l.focused.value===!0||l.hasValue.value===!0),d=_.computed(()=>j.bottomSlots===!0||j.hint!==void 0||e.value===!0||j.counter===!0||j.error!==null),h=_.computed(()=>j.filled===!0?"filled":j.outlined===!0?"outlined":j.borderless===!0?"borderless":j.standout?"standout":"standard"),c=_.computed(()=>`q-field row no-wrap items-start q-field--${h.value}`+(l.fieldClass!==void 0?` ${l.fieldClass.value}`:"")+(j.rounded===!0?" q-field--rounded":"")+(j.square===!0?" q-field--square":"")+(i.value===!0?" q-field--float":"")+(p.value===!0?" q-field--labeled":"")+(j.dense===!0?" q-field--dense":"")+(j.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":"")+(j.hideBottomSpace!==!0&&d.value===!0?" q-field--with-bottom":"")+(j.disable===!0?" q-field--disabled":j.readonly===!0?" q-field--readonly":"")),g=_.computed(()=>"q-field__control relative-position row no-wrap"+(j.bgColor!==void 0?` bg-${j.bgColor}`:"")+(r.value===!0?" text-negative":typeof j.standout=="string"&&j.standout.length!==0&&l.focused.value===!0?` ${j.standout}`:j.color!==void 0?` text-${j.color}`:"")),p=_.computed(()=>j.labelSlot===!0||j.label!==void 0),S=_.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(j.labelColor!==void 0&&r.value!==!0?` text-${j.labelColor}`:"")),C=_.computed(()=>({id:l.targetUid.value,editable:l.editable.value,focused:l.focused.value,floatingLabel:i.value,modelValue:j.modelValue,emitValue:l.emitValue})),T=_.computed(()=>{const w={};return l.targetUid.value&&(w.for=l.targetUid.value),j.disable===!0&&(w["aria-disabled"]="true"),w});function F(){const w=document.activeElement;let x=l.targetRef?.value;x&&(w===null||w.id!==l.targetUid.value)&&(x.hasAttribute("tabindex")===!0||(x=x.querySelector("[tabindex]")),x!==w&&x?.focus({preventScroll:!0}))}function z(){Vr(F)}function D(){pl(F);const w=document.activeElement;w!==null&&l.rootRef.value.contains(w)&&w.blur()}function N(w){o!==null&&(clearTimeout(o),o=null),l.editable.value===!0&&l.focused.value===!1&&(l.focused.value=!0,t("focus",w))}function L(w,x){o!==null&&clearTimeout(o),o=setTimeout(()=>{o=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)),x?.())})}function U(w){xt(w),a.platform.is.mobile!==!0?(l.targetRef?.value||l.rootRef.value).focus():l.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),j.type==="file"&&(l.inputRef.value.value=null),t("update:modelValue",null),l.changeEvent===!0&&t("change",null),t("clear",j.modelValue),_.nextTick(()=>{const x=n.value;s(),n.value=x})}function q(w){[13,32].includes(w.keyCode)&&U(w)}function A(){const w=[];return v.prepend!==void 0&&w.push(_.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:Bt},v.prepend())),w.push(_.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},M())),r.value===!0&&j.noErrorIcon===!1&&w.push(b("error",[_.h(St,{name:a.iconSet.field.error,color:"negative"})])),j.loading===!0||l.innerLoading.value===!0?w.push(b("inner-loading-append",v.loading!==void 0?v.loading():[_.h(uo,{color:j.color})])):j.clearable===!0&&l.hasValue.value===!0&&l.editable.value===!0&&w.push(b("inner-clearable-append",[_.h(St,{class:"q-field__focusable-action",name:j.clearIcon||a.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":a.lang.label.clear,onKeyup:q,onClick:U})])),v.append!==void 0&&w.push(_.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(b("inner-append",l.getInnerAppend())),l.getControlChild!==void 0&&w.push(l.getControlChild()),w}function M(){const w=[];return j.prefix!==void 0&&j.prefix!==null&&w.push(_.h("div",{class:"q-field__prefix no-pointer-events row items-center"},j.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(_.h("div",{ref:l.targetRef,class:"q-field__native row",tabindex:-1,...l.splitAttrs.attributes.value,"data-autofocus":j.autofocus===!0||void 0},v.control(C.value))),p.value===!0&&w.push(_.h("div",{class:S.value},mt(v.label,j.label))),j.suffix!==void 0&&j.suffix!==null&&w.push(_.h("div",{class:"q-field__suffix no-pointer-events row items-center"},j.suffix)),w.concat(mt(v.default))}function k(){let w,x;r.value===!0?u.value!==null?(w=[_.h("div",{role:"alert"},u.value)],x=`q--slot-error-${u.value}`):(w=mt(v.error),x="q--slot-error"):(j.hideHint!==!0||l.focused.value===!0)&&(j.hint!==void 0?(w=[_.h("div",j.hint)],x=`q--slot-hint-${j.hint}`):(w=mt(v.hint),x="q--slot-hint"));const E=j.counter===!0||v.counter!==void 0;if(j.hideBottomSpace===!0&&E===!1&&w===void 0)return;const B=_.h("div",{key:x,class:"q-field__messages col"},w);return _.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(j.hideBottomSpace!==!0?"animated":"stale"),onClick:Bt},[j.hideBottomSpace===!0?B:_.h(_.Transition,{name:"q-transition--field-message"},()=>B),E===!0?_.h("div",{class:"q-field__counter"},v.counter!==void 0?v.counter():l.computedCounter.value):null])}function b(w,x){return x===null?null:_.h("div",{key:w,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},x)}let y=!1;return _.onDeactivated(()=>{y=!0}),_.onActivated(()=>{y===!0&&j.autofocus===!0&&f.focus()}),j.autofocus===!0&&_.onMounted(()=>{f.focus()}),_.onBeforeUnmount(()=>{o!==null&&clearTimeout(o)}),Object.assign(f,{focus:z,blur:D}),function(){const x=l.getControl===void 0&&v.control===void 0?{...l.splitAttrs.attributes.value,"data-autofocus":j.autofocus===!0||void 0,...T.value}:T.value;return _.h(l.tag.value,{ref:l.rootRef,class:[c.value,m.class],style:m.style,...x},[v.before!==void 0?_.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:Bt},v.before()):null,_.h("div",{class:"q-field__inner relative-position col self-stretch"},[_.h("div",{ref:l.controlRef,class:g.value,tabindex:-1,...l.controlEvents},A()),d.value===!0?k():null]),v.after!==void 0?_.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:Bt},v.after()):null])}}const Nl=tt({name:"QField",inheritAttrs:!1,props:{...In,tag:{type:String,default:"label"}},emits:Li,setup(){return zi(qi({tagProp:!0}))}}),Ll={xs:8,sm:10,md:14,lg:20,xl:24},ql=tt({name:"QChip",props:{...It,...Cr,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:j,emit:t}){const{proxy:{$q:v}}=_.getCurrentInstance(),m=Ot(l,v),f=Ar(l,Ll),a=_.computed(()=>l.selected===!0||l.icon!==void 0),o=_.computed(()=>l.selected===!0?l.iconSelected||v.iconSet.chip.selected:l.icon),n=_.computed(()=>l.iconRemove||v.iconSet.chip.remove),e=_.computed(()=>l.disable===!1&&(l.clickable===!0||l.selected!==null)),r=_.computed(()=>{const c=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}`:"")+(c?` text-${c} 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=_.computed(()=>{const c=l.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:l.tabindex||0},g={...c,role:"button","aria-hidden":"false","aria-label":l.removeAriaLabel||v.lang.label.remove};return{chip:c,remove:g}});function s(c){c.keyCode===13&&i(c)}function i(c){l.disable||(t("update:selected",!l.selected),t("click",c))}function d(c){(c.keyCode===void 0||c.keyCode===13)&&(xt(c),l.disable===!1&&(t("update:modelValue",!1),t("remove")))}function h(){const c=[];e.value===!0&&c.push(_.h("div",{class:"q-focus-helper"})),a.value===!0&&c.push(_.h(St,{class:"q-chip__icon q-chip__icon--left",name:o.value}));const g=l.label!==void 0?[_.h("div",{class:"ellipsis"},[l.label])]:void 0;return c.push(_.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},to(j.default,g))),l.iconRight&&c.push(_.h(St,{class:"q-chip__icon q-chip__icon--right",name:l.iconRight})),l.removable===!0&&c.push(_.h(St,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:n.value,...u.value.remove,onClick:d,onKeyup:d})),c}return()=>{if(l.modelValue===!1)return;const c={class:r.value,style:f.value};return e.value===!0&&Object.assign(c,u.value.chip,{onClick:i,onKeyup:s}),da("div",c,h(),"ripple",l.ripple!==!1&&l.disable!==!0,()=>[[fo,l.ripple]])}}}),Pr=tt({name:"QItem",props:{...It,...ao,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:j,emit:t}){const{proxy:{$q:v}}=_.getCurrentInstance(),m=Ot(l,v),{hasLink:f,linkAttrs:a,linkClass:o,linkTag:n,navigateOnClick:e}=xi(),r=_.ref(null),u=_.ref(null),s=_.computed(()=>l.clickable===!0||f.value===!0||l.tag==="label"),i=_.computed(()=>l.disable!==!0&&s.value===!0),d=_.computed(()=>"q-item q-item-type row no-wrap"+(l.dense===!0?" q-item--dense":"")+(m.value===!0?" q-item--dark":"")+(f.value===!0&&l.active===null?o.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=_.computed(()=>l.insetLevel===void 0?null:{["padding"+(v.lang.rtl===!0?"Right":"Left")]:16+l.insetLevel*56+"px"});function c(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 g(S){if(i.value===!0&&er(S,[13,32])===!0){xt(S),S.qKeyEvent=!0;const C=new MouseEvent("click",S);C.qKeyEvent=!0,r.value.dispatchEvent(C)}t("keyup",S)}function p(){const S=vi(j.default,[]);return i.value===!0&&S.unshift(_.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:c,onKeyup:g};return i.value===!0?(S.tabindex=l.tabindex||"0",Object.assign(S,a.value)):s.value===!0&&(S["aria-disabled"]="true"),_.h(n.value,S,p())}}}),Dr=tt({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(l,{slots:j}){const t=_.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()=>_.h("div",{class:t.value},mt(j.default))}}),ui=tt({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(l,{slots:j}){const t=_.computed(()=>parseInt(l.lines,10)),v=_.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=_.computed(()=>l.lines!==void 0&&t.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":t.value}:null);return()=>_.h("div",{style:m.value,class:v.value},mt(j.default))}});function zl(l,j,t){function v(){}return _.onBeforeUnmount(()=>{l.value===!0&&void 0}),{removeFromHistory:v,addToHistory(){}}}let Rr=0,Un,Wn,Or,Hn=!1,Rs,Bs,Is,ir=null;function Vl(l){Ul(l)&&xt(l)}function Ul(l){if(l.target===document.body||l.target.classList.contains("q-layout__backdrop"))return!0;const j=Oa(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 f=0;f<j.length;f++){const a=j[f];if(ol(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 Os(l){l.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function rn(l){Hn!==!0&&(Hn=!0,requestAnimationFrame(()=>{Hn=!1;const{height:j}=l.target,{clientHeight:t,scrollTop:v}=document.scrollingElement;(Or===void 0||j!==window.innerHeight)&&(Or=t-j,document.scrollingElement.scrollTop=v),v>Or&&(document.scrollingElement.scrollTop-=Math.ceil((v-Or)/8))}))}function js(l){const j=document.body,t=window.visualViewport!==void 0;if(l==="add"){const{overflowY:v,overflowX:m}=window.getComputedStyle(j);Un=Ai(window),Wn=Ci(window),Rs=j.style.left,Bs=j.style.top,Is=window.location.href,j.style.left=`-${Un}px`,j.style.top=`-${Wn}px`,m!=="hidden"&&(m==="scroll"||j.scrollWidth>window.innerWidth)&&j.classList.add("q-body--force-scrollbar-x"),v!=="hidden"&&(v==="scroll"||j.scrollHeight>window.innerHeight)&&j.classList.add("q-body--force-scrollbar-y"),j.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,Et.is.ios===!0&&(t===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",rn,_t.passiveCapture),window.visualViewport.addEventListener("scroll",rn,_t.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Os,_t.passiveCapture))}Et.is.desktop===!0&&Et.is.mac===!0&&window[`${l}EventListener`]("wheel",Vl,_t.notPassive),l==="remove"&&(Et.is.ios===!0&&(t===!0?(window.visualViewport.removeEventListener("resize",rn,_t.passiveCapture),window.visualViewport.removeEventListener("scroll",rn,_t.passiveCapture)):window.removeEventListener("scroll",Os,_t.passiveCapture)),j.classList.remove("q-body--prevent-scroll"),j.classList.remove("q-body--force-scrollbar-x"),j.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,j.style.left=Rs,j.style.top=Bs,window.location.href===Is&&window.scrollTo(Un,Wn),Or=void 0)}function Wl(l){let j="add";if(l===!0){if(Rr++,ir!==null){clearTimeout(ir),ir=null;return}if(Rr>1)return}else{if(Rr===0||(Rr--,Rr>0))return;if(j="remove",Et.is.ios===!0&&Et.is.nativeMobile===!0){ir!==null&&clearTimeout(ir),ir=setTimeout(()=>{js(j),ir=null},100);return}}js(j)}function Hl(){let l;return{preventBodyScroll(j){j!==l&&(l!==void 0||j===!0)&&(l=j,Wl(j))}}}let nn=0;const Yl={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"},Fs={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},Vi=tt({name:"QDialog",inheritAttrs:!1,props:{...Bi,...Fr,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:[...Ii,"shake","click","escapeKey"],setup(l,{slots:j,emit:t,attrs:v}){const m=_.getCurrentInstance(),f=_.ref(null),a=_.ref(!1),o=_.ref(!1);let n=null,e=null,r,u;const s=_.computed(()=>l.persistent!==!0&&l.noRouteDismiss!==!0&&l.seamless!==!0),{preventBodyScroll:i}=Hl(),{registerTimeout:d}=Di(),{registerTick:h,removeTick:c}=Pi(),{transitionProps:g,transitionStyle:p}=Fi(l,()=>Fs[l.position][0],()=>Fs[l.position][1]),S=_.computed(()=>p.value+(l.backdropFilter!==void 0?`;backdrop-filter:${l.backdropFilter};-webkit-backdrop-filter:${l.backdropFilter}`:"")),{showPortal:C,hidePortal:T,portalIsAccessible:F,renderPortal:z}=ji(m,f,W,"dialog"),{hide:D}=Oi({showing:a,hideOnRouteChange:s,handleShow:A,handleHide:M,processOnMount:!0});zl(a);const N=_.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${l.maximized===!0?"maximized":"minimized"} q-dialog__inner--${l.position} ${Yl[l.position]}`+(o.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":"")),L=_.computed(()=>a.value===!0&&l.seamless!==!0),U=_.computed(()=>l.autoClose===!0?{onClick:E}:{}),q=_.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${L.value===!0?"modal":"seamless"}`,v.class]);_.watch(()=>l.maximized,H=>{a.value===!0&&x(H)}),_.watch(L,H=>{i(H),H===!0?(Mo(I),Ao(y)):(oi(I),yn(y))});function A(H){e=l.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,x(l.maximized),C(),o.value=!0,l.noFocus!==!0?(document.activeElement?.blur(),h(k)):c(),d(()=>{if(m.proxy.$q.platform.is.ios===!0){if(l.seamless!==!0&&document.activeElement){const{top:K,bottom:P}=document.activeElement.getBoundingClientRect(),{innerHeight:Y}=window,O=window.visualViewport!==void 0?window.visualViewport.height:Y;K>0&&P>O/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-O,P>=Y?1/0:Math.ceil(document.scrollingElement.scrollTop+P-O/2))),document.activeElement.scrollIntoView()}u=!0,f.value.click(),u=!1}C(!0),o.value=!1,t("show",H)},l.transitionDuration)}function M(H){c(),w(!0),o.value=!0,T(),e!==null&&(((H?.type.indexOf("key")===0?e.closest('[tabindex]:not([tabindex^="-"])'):void 0)||e).focus(),e=null),d(()=>{T(!0),o.value=!1,t("hide",H)},l.transitionDuration)}function k(H){Vr(()=>{let K=f.value;if(K!==null){if(H!==void 0){const P=K.querySelector(H);if(P!==null){P.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 b(H){H&&typeof H.focus=="function"?H.focus({preventScroll:!0}):k(),t("shake");const K=f.value;K!==null&&(K.classList.remove("q-animate--scale"),K.classList.add("q-animate--scale"),n!==null&&clearTimeout(n),n=setTimeout(()=>{n=null,f.value!==null&&(K.classList.remove("q-animate--scale"),k())},170))}function y(){l.seamless!==!0&&(l.persistent===!0||l.noEscDismiss===!0?l.maximized!==!0&&l.noShake!==!0&&b():(t("escapeKey"),D()))}function w(H){n!==null&&(clearTimeout(n),n=null),(H===!0||a.value===!0)&&(x(!1),l.seamless!==!0&&(i(!1),oi(I),yn(y))),H!==!0&&(e=null)}function x(H){H===!0?r!==!0&&(nn<1&&document.body.classList.add("q-body--dialog"),nn++,r=!0):r===!0&&(nn<2&&document.body.classList.remove("q-body--dialog"),nn--,r=!1)}function E(H){u!==!0&&(D(H),t("click",H))}function B(H){l.persistent!==!0&&l.noBackdropDismiss!==!0?D(H):l.noShake!==!0&&b()}function I(H){l.allowFocusOutside!==!0&&F.value===!0&&co(f.value,H.target)!==!0&&k('[tabindex]:not([tabindex="-1"])')}Object.assign(m.proxy,{focus:k,shake:b,__updateRefocusTarget(H){e=H||null}}),_.onBeforeUnmount(w);function W(){return _.h("div",{role:"dialog","aria-modal":L.value===!0?"true":"false",...v,class:q.value},[_.h(_.Transition,{name:"q-transition--fade",appear:!0},()=>L.value===!0?_.h("div",{class:"q-dialog__backdrop fixed-full",style:S.value,"aria-hidden":"true",tabindex:-1,onClick:B}):null),_.h(_.Transition,g.value,()=>a.value===!0?_.h("div",{ref:f,class:N.value,style:p.value,tabindex:-1,...U.value},mt(j.default)):null)])}return z}});let Cn=!1;{const l=document.createElement("div");l.setAttribute("dir","rtl"),Object.assign(l.style,{width:"1px",height:"1px",overflow:"auto"});const j=document.createElement("div");Object.assign(j.style,{width:"1000px",height:"1px"}),document.body.appendChild(l),l.appendChild(j),l.scrollLeft=-1e3,Cn=l.scrollLeft>=0,l.remove()}const zt=1e3,Ql=["start","center","end","start-force","center-force","end-force"],Oo=Array.prototype.filter,Kl=window.getComputedStyle(document.body).overflowAnchor===void 0?Mn:function(l,j){l!==null&&(l._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(l._qOverflowAnimationFrame),l._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(l===null)return;l._qOverflowAnimationFrame=void 0;const t=l.children||[];Oo.call(t,m=>m.dataset&&m.dataset.qVsAnchor!==void 0).forEach(m=>{delete m.dataset.qVsAnchor});const v=t[j];v?.dataset&&(v.dataset.qVsAnchor="")}))};function Sr(l,j){return l+j}function Yn(l,j,t,v,m,f,a,o){const n=l===window?document.scrollingElement||document.documentElement:l,e=m===!0?"offsetWidth":"offsetHeight",r={scrollStart:0,scrollViewSize:-a-o,scrollMaxSize:0,offsetStart:-a,offsetEnd:-o};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,f===!0&&(r.scrollStart=(Cn===!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(j!==l){const u=n.getBoundingClientRect(),s=j.getBoundingClientRect();m===!0?(r.offsetStart+=s.left-u.left,r.offsetEnd-=s.width):(r.offsetStart+=s.top-u.top,r.offsetEnd-=s.height),l!==window&&(r.offsetStart+=r.scrollStart),r.offsetEnd+=r.scrollMaxSize-r.offsetStart}return r}function Ps(l,j,t,v){j==="end"&&(j=(l===window?document.body:l)[t===!0?"scrollWidth":"scrollHeight"]),l===window?t===!0?(v===!0&&(j=(Cn===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-j),window.scrollTo(j,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,j):t===!0?(v===!0&&(j=(Cn===!0?l.scrollWidth-l.offsetWidth:0)-j),l.scrollLeft=j):l.scrollTop=j}function Br(l,j,t,v){if(t>=v)return 0;const m=j.length,f=Math.floor(t/zt),a=Math.floor((v-1)/zt)+1;let o=l.slice(f,a).reduce(Sr,0);return t%zt!==0&&(o-=j.slice(f*zt,t).reduce(Sr,0)),v%zt!==0&&v!==m&&(o-=j.slice(v,a*zt).reduce(Sr,0)),o}const jo={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]},Fo=Object.keys(jo),ci={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...jo};function Po({virtualScrollLength:l,getVirtualScrollTarget:j,getVirtualScrollEl:t,virtualScrollItemSizeComputed:v}){const m=_.getCurrentInstance(),{props:f,emit:a,proxy:o}=m,{$q:n}=o;let e,r,u,s=[],i;const d=_.ref(0),h=_.ref(0),c=_.ref({}),g=_.ref(null),p=_.ref(null),S=_.ref(null),C=_.ref({from:0,to:0}),T=_.computed(()=>f.tableColspan!==void 0?f.tableColspan:100);v===void 0&&(v=_.computed(()=>f.virtualScrollItemSize));const F=_.computed(()=>v.value+";"+f.virtualScrollHorizontal),z=_.computed(()=>F.value+";"+f.virtualScrollSliceRatioBefore+";"+f.virtualScrollSliceRatioAfter);_.watch(z,()=>{b()}),_.watch(F,D);function D(){k(r,!0)}function N(B){k(B===void 0?r:B)}function L(B,I){const W=j();if(W==null||W.nodeType===8)return;const H=Yn(W,t(),g.value,p.value,f.virtualScrollHorizontal,n.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd);u!==H.scrollViewSize&&b(H.scrollViewSize),q(W,H,Math.min(l.value-1,Math.max(0,parseInt(B,10)||0)),0,Ql.indexOf(I)!==-1?I:r!==-1&&B>r?"end":"start")}function U(){const B=j();if(B==null||B.nodeType===8)return;const I=Yn(B,t(),g.value,p.value,f.virtualScrollHorizontal,n.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd),W=l.value-1,H=I.scrollMaxSize-I.offsetStart-I.offsetEnd-h.value;if(e===I.scrollStart)return;if(I.scrollMaxSize<=0){q(B,I,0,0);return}u!==I.scrollViewSize&&b(I.scrollViewSize),A(C.value.from);const K=Math.floor(I.scrollMaxSize-Math.max(I.scrollViewSize,I.offsetEnd)-Math.min(i[W],I.scrollViewSize/2));if(K>0&&Math.ceil(I.scrollStart)>=K){q(B,I,W,I.scrollMaxSize-I.offsetEnd-s.reduce(Sr,0));return}let P=0,Y=I.scrollStart-I.offsetStart,O=Y;if(Y<=H&&Y+I.scrollViewSize>=d.value)Y-=d.value,P=C.value.from,O=Y;else for(let R=0;Y>=s[R]&&P<W;R++)Y-=s[R],P+=zt;for(;Y>0&&P<W;)Y-=i[P],Y>-I.scrollViewSize?(P++,O=Y):O=i[P]+Y;q(B,I,P,O)}function q(B,I,W,H,K){const P=typeof K=="string"&&K.indexOf("-force")!==-1,Y=P===!0?K.replace("-force",""):K,O=Y!==void 0?Y:"start";let R=Math.max(0,W-c.value[O]),V=R+c.value.total;V>l.value&&(V=l.value,R=Math.max(0,V-c.value.total)),e=I.scrollStart;const Q=R!==C.value.from||V!==C.value.to;if(Q===!1&&Y===void 0){w(W);return}const{activeElement:$}=document,G=S.value;Q===!0&&G!==null&&G!==$&&G.contains($)===!0&&(G.addEventListener("focusout",M),setTimeout(()=>{G?.removeEventListener("focusout",M)})),Kl(G,W-R);const ee=Y!==void 0?i.slice(R,W).reduce(Sr,0):0;if(Q===!0){const ae=V>=C.value.from&&R<=C.value.to?C.value.to:V;C.value={from:R,to:ae},d.value=Br(s,i,0,R),h.value=Br(s,i,V,l.value),requestAnimationFrame(()=>{C.value.to!==V&&e===I.scrollStart&&(C.value={from:C.value.from,to:V},h.value=Br(s,i,V,l.value))})}requestAnimationFrame(()=>{if(e!==I.scrollStart)return;Q===!0&&A(R);const ae=i.slice(R,W).reduce(Sr,0),se=ae+I.offsetStart+d.value,J=se+i[W];let ne=se+H;if(Y!==void 0){const ie=ae-ee,fe=I.scrollStart+ie;ne=P!==!0&&fe<se&&J<fe+I.scrollViewSize?fe:Y==="end"?J-I.scrollViewSize:se-(Y==="start"?0:Math.round((I.scrollViewSize-i[W])/2))}e=ne,Ps(B,ne,f.virtualScrollHorizontal,n.lang.rtl),w(W)})}function A(B){const I=S.value;if(I){const W=Oo.call(I.children,R=>R.classList&&R.classList.contains("q-virtual-scroll--skip")===!1),H=W.length,K=f.virtualScrollHorizontal===!0?R=>R.getBoundingClientRect().width:R=>R.offsetHeight;let P=B,Y,O;for(let R=0;R<H;){for(Y=K(W[R]),R++;R<H&&W[R].classList.contains("q-virtual-scroll--with-prev")===!0;)Y+=K(W[R]),R++;O=Y-i[P],O!==0&&(i[P]+=O,s[Math.floor(P/zt)]+=O),P++}}}function M(){S.value?.focus()}function k(B,I){const W=1*v.value;(I===!0||Array.isArray(i)===!1)&&(i=[]);const H=i.length;i.length=l.value;for(let P=l.value-1;P>=H;P--)i[P]=W;const K=Math.floor((l.value-1)/zt);s=[];for(let P=0;P<=K;P++){let Y=0;const O=Math.min((P+1)*zt,l.value);for(let R=P*zt;R<O;R++)Y+=i[R];s.push(Y)}r=-1,e=void 0,d.value=Br(s,i,0,C.value.from),h.value=Br(s,i,C.value.to,l.value),B>=0?(A(C.value.from),_.nextTick(()=>{L(B)})):x()}function b(B){if(B===void 0&&typeof window<"u"){const Y=j();Y!=null&&Y.nodeType!==8&&(B=Yn(Y,t(),g.value,p.value,f.virtualScrollHorizontal,n.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd).scrollViewSize)}u=B;const I=parseFloat(f.virtualScrollSliceRatioBefore)||0,W=parseFloat(f.virtualScrollSliceRatioAfter)||0,H=1+I+W,K=B===void 0||B<=0?1:Math.ceil(B/v.value),P=Math.max(1,K,Math.ceil((f.virtualScrollSliceSize>0?f.virtualScrollSliceSize:10)/H));c.value={total:Math.ceil(P*H),start:Math.ceil(P*I),center:Math.ceil(P*(.5+I)),end:Math.ceil(P*(1+I)),view:K}}function y(B,I){const W=f.virtualScrollHorizontal===!0?"width":"height",H={["--q-virtual-scroll-item-"+W]:v.value+"px"};return[B==="tbody"?_.h(B,{class:"q-virtual-scroll__padding",key:"before",ref:g},[_.h("tr",[_.h("td",{style:{[W]:`${d.value}px`,...H},colspan:T.value})])]):_.h(B,{class:"q-virtual-scroll__padding",key:"before",ref:g,style:{[W]:`${d.value}px`,...H}}),_.h(B,{class:"q-virtual-scroll__content",key:"content",ref:S,tabindex:-1},I.flat()),B==="tbody"?_.h(B,{class:"q-virtual-scroll__padding",key:"after",ref:p},[_.h("tr",[_.h("td",{style:{[W]:`${h.value}px`,...H},colspan:T.value})])]):_.h(B,{class:"q-virtual-scroll__padding",key:"after",ref:p,style:{[W]:`${h.value}px`,...H}})]}function w(B){r!==B&&(f.onVirtualScroll!==void 0&&a("virtualScroll",{index:B,from:C.value.from,to:C.value.to-1,direction:B<r?"decrease":"increase",ref:o}),r=B)}b();const x=Mi(U,n.platform.is.ios===!0?120:35);_.onBeforeMount(()=>{b()});let E=!1;return _.onDeactivated(()=>{E=!0}),_.onActivated(()=>{if(E!==!0)return;const B=j();e!==void 0&&B!==void 0&&B!==null&&B.nodeType!==8?Ps(B,e,f.virtualScrollHorizontal,n.lang.rtl):L(r)}),_.onBeforeUnmount(()=>{x.cancel()}),Object.assign(o,{scrollTo:L,reset:D,refresh:N}),{virtualScrollSliceRange:C,virtualScrollSliceSizeComputed:c,setVirtualScrollSize:b,onVirtualScrollEvt:x,localResetVirtualScroll:k,padVirtualScroll:y,scrollTo:L,reset:D,refresh:N}}const Xl=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,Gl=/[\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,Jl=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,Zl=/[a-z0-9_ -]$/i;function Do(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?Zl.test(t.data)===!1:Xl.test(t.data)===!0||Gl.test(t.data)===!0||Jl.test(t.data)===!0)===!0&&(t.target.qComposing=!0)}}function Zt(l,j){if(l===j)return!0;if(l!==null&&j!==null&&typeof l=="object"&&typeof j=="object"){if(l.constructor!==j.constructor)return!1;let t,v;if(l.constructor===Array){if(t=l.length,t!==j.length)return!1;for(v=t;v--!==0;)if(Zt(l[v],j[v])!==!0)return!1;return!0}if(l.constructor===Map){if(l.size!==j.size)return!1;let f=l.entries();for(v=f.next();v.done!==!0;){if(j.has(v.value[0])!==!0)return!1;v=f.next()}for(f=l.entries(),v=f.next();v.done!==!0;){if(Zt(v.value[1],j.get(v.value[0]))!==!0)return!1;v=f.next()}return!0}if(l.constructor===Set){if(l.size!==j.size)return!1;const f=l.entries();for(v=f.next();v.done!==!0;){if(j.has(v.value[0])!==!0)return!1;v=f.next()}return!0}if(l.buffer!=null&&l.buffer.constructor===ArrayBuffer){if(t=l.length,t!==j.length)return!1;for(v=t;v--!==0;)if(l[v]!==j[v])return!1;return!0}if(l.constructor===RegExp)return l.source===j.source&&l.flags===j.flags;if(l.valueOf!==Object.prototype.valueOf)return l.valueOf()===j.valueOf();if(l.toString!==Object.prototype.toString)return l.toString()===j.toString();const m=Object.keys(l).filter(f=>l[f]!==void 0);if(t=m.length,t!==Object.keys(j).filter(f=>j[f]!==void 0).length)return!1;for(v=t;v--!==0;){const f=m[v];if(Zt(l[f],j[f])!==!0)return!1}return!0}return l!==l&&j!==j}function No(l){return l!==null&&typeof l=="object"&&Array.isArray(l)!==!0}function An(l){return Object.prototype.toString.call(l)==="[object Date]"}function fi(l){return typeof l=="number"&&isFinite(l)}const Ds=l=>["add","add-unique","toggle"].includes(l),$l=".*+?^${}()|[]\\",eu=Object.keys(In);function Qn(l,j){if(typeof l=="function")return l;const t=l!==void 0?l:j;return v=>v!==null&&typeof v=="object"&&t in v?v[t]:v}const Ui=tt({name:"QSelect",inheritAttrs:!1,props:{...ci,...Tn,...In,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:Ds},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:ci.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...Li,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(l,{slots:j,emit:t}){const{proxy:v}=_.getCurrentInstance(),{$q:m}=v,f=_.ref(!1),a=_.ref(!1),o=_.ref(-1),n=_.ref(""),e=_.ref(!1),r=_.ref(!1);let u=null,s=null,i,d,h,c=null,g,p,S,C;const T=_.ref(null),F=_.ref(null),z=_.ref(null),D=_.ref(null),N=_.ref(null),L=po(l),U=Do(he),q=_.computed(()=>Array.isArray(l.options)?l.options.length:0),A=_.computed(()=>l.virtualScrollItemSize===void 0?l.optionsDense===!0?24:48:l.virtualScrollItemSize),{virtualScrollSliceRange:M,virtualScrollSliceSizeComputed:k,localResetVirtualScroll:b,padVirtualScroll:y,onVirtualScrollEvt:w,scrollTo:x,setVirtualScrollSize:E}=Po({virtualScrollLength:q,getVirtualScrollTarget:nt,getVirtualScrollEl:He,virtualScrollItemSizeComputed:A}),B=qi(),I=_.computed(()=>{const oe=l.mapOptions===!0&&l.multiple!==!0,Fe=l.modelValue!==void 0&&(l.modelValue!==null||oe===!0)?l.multiple===!0&&Array.isArray(l.modelValue)?l.modelValue:[l.modelValue]:[];if(l.mapOptions===!0&&Array.isArray(l.options)===!0){const Z=l.mapOptions===!0&&i!==void 0?i:[],ue=Fe.map(ve=>je(ve,Z));return l.modelValue===null&&oe===!0?ue.filter(ve=>ve!==null):ue}return Fe}),W=_.computed(()=>{const oe={};return eu.forEach(Fe=>{const Z=l[Fe];Z!==void 0&&(oe[Fe]=Z)}),oe}),H=_.computed(()=>l.optionsDark===null?B.isDark.value:l.optionsDark),K=_.computed(()=>qr(I.value)),P=_.computed(()=>{let oe="q-field__input q-placeholder col";return l.hideSelected===!0||I.value.length===0?[oe,l.inputClass]:(oe+=" q-field__input--padding",l.inputClass===void 0?oe:[oe,l.inputClass])}),Y=_.computed(()=>(l.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(l.popupContentClass?" "+l.popupContentClass:"")),O=_.computed(()=>q.value===0),R=_.computed(()=>I.value.map(oe=>de.value(oe)).join(", ")),V=_.computed(()=>l.displayValue!==void 0?l.displayValue:R.value),Q=_.computed(()=>l.optionsHtml===!0?()=>!0:oe=>oe?.html===!0),$=_.computed(()=>l.displayValueHtml===!0||l.displayValue===void 0&&(l.optionsHtml===!0||I.value.some(Q.value))),G=_.computed(()=>B.focused.value===!0?l.tabindex:-1),ee=_.computed(()=>{const oe={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":f.value===!0?"true":"false","aria-controls":`${B.targetUid.value}_lb`};return o.value>=0&&(oe["aria-activedescendant"]=`${B.targetUid.value}_${o.value}`),oe}),ae=_.computed(()=>({id:`${B.targetUid.value}_lb`,role:"listbox","aria-multiselectable":l.multiple===!0?"true":"false"})),se=_.computed(()=>I.value.map((oe,Fe)=>({index:Fe,opt:oe,html:Q.value(oe),selected:!0,removeAtIndex:Me,toggleOption:qe,tabindex:G.value}))),J=_.computed(()=>{if(q.value===0)return[];const{from:oe,to:Fe}=M.value;return l.options.slice(oe,Fe).map((Z,ue)=>{const ve=me.value(Z)===!0,ye=ke(Z)===!0,De=oe+ue,Se={clickable:!0,active:ye,activeClass:fe.value,manualFocus:!0,focused:!1,disable:ve,tabindex:-1,dense:l.optionsDense,dark:H.value,role:"option","aria-selected":ye===!0?"true":"false",id:`${B.targetUid.value}_${De}`,onClick:()=>{qe(Z)}};return ve!==!0&&(o.value===De&&(Se.focused=!0),m.platform.is.desktop===!0&&(Se.onMousemove=()=>{f.value===!0&&Ne(De)})),{index:De,opt:Z,html:Q.value(Z),label:de.value(Z),selected:Se.active,focused:Se.focused,toggleOption:qe,setOptionIndex:Ne,itemProps:Se}})}),ne=_.computed(()=>l.dropdownIcon!==void 0?l.dropdownIcon:m.iconSet.arrow.dropdown),ie=_.computed(()=>l.optionsCover===!1&&l.outlined!==!0&&l.standout!==!0&&l.borderless!==!0&&l.rounded!==!0),fe=_.computed(()=>l.optionsSelectedClass!==void 0?l.optionsSelectedClass:l.color!==void 0?`text-${l.color}`:""),ce=_.computed(()=>Qn(l.optionValue,"value")),de=_.computed(()=>Qn(l.optionLabel,"label")),me=_.computed(()=>Qn(l.optionDisable,"disable")),be=_.computed(()=>I.value.map(ce.value)),xe=_.computed(()=>{const oe={onInput:he,onChange:U,onKeydown:$e,onKeyup:Le,onKeypress:Ge,onFocus:Pe,onClick(Fe){d===!0&&Ft(Fe)}};return oe.onCompositionstart=oe.onCompositionupdate=oe.onCompositionend=U,oe});_.watch(I,oe=>{i=oe,l.useInput===!0&&l.fillInput===!0&&l.multiple!==!0&&B.innerLoading.value!==!0&&(a.value!==!0&&f.value!==!0||K.value!==!0)&&(h!==!0&&Ve(),(a.value===!0||f.value===!0)&&Oe(""))},{immediate:!0}),_.watch(()=>l.fillInput,Ve),_.watch(f,Je),_.watch(q,Ze);function Ie(oe){return l.emitValue===!0?ce.value(oe):oe}function Ee(oe){if(oe!==-1&&oe<I.value.length)if(l.multiple===!0){const Fe=l.modelValue.slice();t("remove",{index:oe,value:Fe.splice(oe,1)[0]}),t("update:modelValue",Fe)}else t("update:modelValue",null)}function Me(oe){Ee(oe),B.focus()}function We(oe,Fe){const Z=Ie(oe);if(l.multiple!==!0){l.fillInput===!0&&Te(de.value(oe),!0,!0),t("update:modelValue",Z);return}if(I.value.length===0){t("add",{index:0,value:Z}),t("update:modelValue",l.multiple===!0?[Z]:Z);return}if(Fe===!0&&ke(oe)===!0||l.maxValues!==void 0&&l.modelValue.length>=l.maxValues)return;const ue=l.modelValue.slice();t("add",{index:ue.length,value:Z}),ue.push(Z),t("update:modelValue",ue)}function qe(oe,Fe){if(B.editable.value!==!0||oe===void 0||me.value(oe)===!0)return;const Z=ce.value(oe);if(l.multiple!==!0){Fe!==!0&&(Te(l.fillInput===!0?de.value(oe):"",!0,!0),Re()),F.value?.focus(),(I.value.length===0||Zt(ce.value(I.value[0]),Z)!==!0)&&t("update:modelValue",l.emitValue===!0?Z:oe);return}if((d!==!0||e.value===!0)&&B.focus(),Pe(),I.value.length===0){const ye=l.emitValue===!0?Z:oe;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=>Zt(ye,Z));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?Z:oe;t("add",{index:ue.length,value:ye}),ue.push(ye)}t("update:modelValue",ue)}function Ne(oe){if(m.platform.is.desktop!==!0)return;const Fe=oe!==-1&&oe<q.value?oe:-1;o.value!==Fe&&(o.value=Fe)}function ze(oe=1,Fe){if(f.value===!0){let Z=o.value;do Z=ms(Z+oe,-1,q.value-1);while(Z!==-1&&Z!==o.value&&me.value(l.options[Z])===!0);o.value!==Z&&(Ne(Z),x(Z),Fe!==!0&&l.useInput===!0&&l.fillInput===!0&&we(Z>=0?de.value(l.options[Z]):g,!0))}}function je(oe,Fe){const Z=ue=>Zt(ce.value(ue),oe);return l.options.find(Z)||Fe.find(Z)||oe}function ke(oe){const Fe=ce.value(oe);return be.value.find(Z=>Zt(Z,Fe))!==void 0}function Pe(oe){l.useInput===!0&&F.value!==null&&(oe===void 0||F.value===oe.target&&oe.target.value===R.value)&&F.value.select()}function Ue(oe){er(oe,27)===!0&&f.value===!0&&(Ft(oe),Re(),Ve()),t("keyup",oe)}function Le(oe){const{value:Fe}=oe.target;if(oe.keyCode!==void 0){Ue(oe);return}if(oe.target.value="",u!==null&&(clearTimeout(u),u=null),s!==null&&(clearTimeout(s),s=null),Ve(),typeof Fe=="string"&&Fe.length!==0){const Z=Fe.toLocaleLowerCase(),ue=ye=>{const De=l.options.find(Se=>String(ye.value(Se)).toLocaleLowerCase()===Z);return De===void 0?!1:(I.value.indexOf(De)===-1?qe(De):Re(),!0)},ve=ye=>{ue(ce)!==!0&&ye!==!0&&ue(de)!==!0&&Oe(Fe,!0,()=>ve(!0))};ve()}else B.clearValue(oe)}function Ge(oe){t("keypress",oe)}function $e(oe){if(t("keydown",oe),_i(oe)===!0)return;const Fe=n.value.length!==0&&(l.newValueMode!==void 0||l.onNewValue!==void 0),Z=oe.shiftKey!==!0&&l.disableTabSelection!==!0&&l.multiple!==!0&&(o.value!==-1||Fe===!0);if(oe.keyCode===27){Bt(oe);return}if(oe.keyCode===9&&Z===!1){ge();return}if(oe.target===void 0||oe.target.id!==B.targetUid.value||B.editable.value!==!0)return;if(oe.keyCode===40&&B.innerLoading.value!==!0&&f.value===!1){xt(oe),_e();return}if(oe.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}(oe.keyCode===35||oe.keyCode===36)&&(typeof n.value!="string"||n.value.length===0)&&(xt(oe),o.value=-1,ze(oe.keyCode===36?1:-1,l.multiple)),(oe.keyCode===33||oe.keyCode===34)&&k.value!==void 0&&(xt(oe),o.value=Math.max(-1,Math.min(q.value,o.value+(oe.keyCode===33?-1:1)*k.value.view)),ze(oe.keyCode===33?1:-1,l.multiple)),(oe.keyCode===38||oe.keyCode===40)&&(xt(oe),ze(oe.keyCode===38?-1:1,l.multiple));const ue=q.value;if((S===void 0||C<Date.now())&&(S=""),ue>0&&l.useInput!==!0&&oe.key!==void 0&&oe.key.length===1&&oe.altKey===!1&&oe.ctrlKey===!1&&oe.metaKey===!1&&(oe.keyCode!==32||S.length!==0)){f.value!==!0&&_e(oe);const ve=oe.key.toLocaleLowerCase(),ye=S.length===1&&S[0]===ve;C=Date.now()+1500,ye===!1&&(xt(oe),S+=ve);const De=new RegExp("^"+S.split("").map(Be=>$l.indexOf(Be)!==-1?"\\"+Be:Be).join(".*"),"i");let Se=o.value;if(ye===!0||Se<0||De.test(de.value(l.options[Se]))!==!0)do Se=ms(Se+1,-1,ue-1);while(Se!==o.value&&(me.value(l.options[Se])===!0||De.test(de.value(l.options[Se]))!==!0));o.value!==Se&&_.nextTick(()=>{Ne(Se),x(Se),Se>=0&&l.useInput===!0&&l.fillInput===!0&&we(de.value(l.options[Se]),!0)});return}if(!(oe.keyCode!==13&&(oe.keyCode!==32||l.useInput===!0||S!=="")&&(oe.keyCode!==9||Z===!1))){if(oe.keyCode!==9&&xt(oe),o.value!==-1&&o.value<ue){qe(l.options[o.value]);return}if(Fe===!0){const ve=(ye,De)=>{if(De){if(Ds(De)!==!0)return}else De=l.newValueMode;if(Te("",l.multiple!==!0,!0),ye==null)return;(De==="toggle"?qe:We)(ye,De==="add-unique"),l.multiple!==!0&&(F.value?.focus(),Re())};if(l.onNewValue!==void 0?t("newValue",n.value,ve):ve(n.value),l.multiple!==!0)return}f.value===!0?ge():B.innerLoading.value!==!0&&_e()}}function He(){return d===!0?N.value:z.value!==null&&z.value.contentEl!==null?z.value.contentEl:void 0}function nt(){return He()}function et(){return l.hideSelected===!0?[]:j["selected-item"]!==void 0?se.value.map(oe=>j["selected-item"](oe)).slice():j.selected!==void 0?[].concat(j.selected()):l.useChips===!0?se.value.map((oe,Fe)=>_.h(ql,{key:"option-"+Fe,removable:B.editable.value===!0&&me.value(oe.opt)!==!0,dense:!0,textColor:l.color,tabindex:G.value,onRemove(){oe.removeAtIndex(Fe)}},()=>_.h("span",{class:"ellipsis",[oe.html===!0?"innerHTML":"textContent"]:de.value(oe.opt)}))):[_.h("span",{class:"ellipsis",[$.value===!0?"innerHTML":"textContent"]:V.value})]}function Ye(){if(O.value===!0)return j["no-option"]!==void 0?j["no-option"]({inputValue:n.value}):void 0;const oe=j.option!==void 0?j.option:Z=>_.h(Pr,{key:Z.index,...Z.itemProps},()=>_.h(Dr,()=>_.h(ui,()=>_.h("span",{[Z.html===!0?"innerHTML":"textContent"]:Z.label}))));let Fe=y("div",J.value.map(oe));return j["before-options"]!==void 0&&(Fe=j["before-options"]().concat(Fe)),Dt(j["after-options"],Fe)}function ot(oe,Fe){const Z=Fe===!0?{...ee.value,...B.splitAttrs.attributes.value}:void 0,ue={ref:Fe===!0?F:void 0,key:"i_t",class:P.value,style:l.inputStyle,value:n.value!==void 0?n.value:"",type:"search",...Z,id:Fe===!0?B.targetUid.value:void 0,maxlength:l.maxlength,autocomplete:l.autocomplete,"data-autofocus":oe===!0||l.autofocus===!0||void 0,disabled:l.disable===!0,readonly:l.readonly===!0,...xe.value};return oe!==!0&&d===!0&&(Array.isArray(ue.class)===!0?ue.class=[...ue.class,"no-pointer-events"]:ue.class+=" no-pointer-events"),_.h("input",ue)}function he(oe){u!==null&&(clearTimeout(u),u=null),s!==null&&(clearTimeout(s),s=null),!(oe&&oe.target&&oe.target.qComposing===!0)&&(we(oe.target.value||""),h=!0,g=n.value,B.focused.value!==!0&&(d!==!0||e.value===!0)&&B.focus(),l.onFilter!==void 0&&(u=setTimeout(()=>{u=null,Oe(n.value)},l.inputDebounce)))}function we(oe,Fe){n.value!==oe&&(n.value=oe,Fe===!0||l.inputDebounce===0||l.inputDebounce==="0"?t("inputValue",oe):s=setTimeout(()=>{s=null,t("inputValue",oe)},l.inputDebounce))}function Te(oe,Fe,Z){h=Z!==!0,l.useInput===!0&&(we(oe,!0),(Fe===!0||Z!==!0)&&(g=oe),Fe!==!0&&Oe(oe))}function Oe(oe,Fe,Z){if(l.onFilter===void 0||Fe!==!0&&B.focused.value!==!0)return;B.innerLoading.value===!0?t("filterAbort"):(B.innerLoading.value=!0,r.value=!0),oe!==""&&l.multiple!==!0&&I.value.length!==0&&h!==!0&&oe===de.value(I.value[0])&&(oe="");const ue=setTimeout(()=>{f.value===!0&&(f.value=!1)},10);c!==null&&clearTimeout(c),c=ue,t("filter",oe,(ve,ye)=>{(Fe===!0||B.focused.value===!0)&&c===ue&&(clearTimeout(c),typeof ve=="function"&&ve(),r.value=!1,_.nextTick(()=>{B.innerLoading.value=!1,B.editable.value===!0&&(Fe===!0?f.value===!0&&Re():f.value===!0?Je(!0):f.value=!0),typeof ye=="function"&&_.nextTick(()=>{ye(v)}),typeof Z=="function"&&_.nextTick(()=>{Z(v)})}))},()=>{B.focused.value===!0&&c===ue&&(clearTimeout(c),B.innerLoading.value=!1,r.value=!1),f.value===!0&&(f.value=!1)})}function Ce(){return _.h(Ur,{ref:z,class:Y.value,style:l.popupContentStyle,modelValue:f.value,fit:l.menuShrink!==!0,cover:l.optionsCover===!0&&O.value!==!0&&l.useInput!==!0,anchor:l.menuAnchor,self:l.menuSelf,offset:l.menuOffset,dark:H.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:l.popupNoRouteDismiss,square:ie.value,transitionShow:l.transitionShow,transitionHide:l.transitionHide,transitionDuration:l.transitionDuration,separateClosePopup:!0,...ae.value,onScrollPassive:w,onBeforeShow:vt,onBeforeHide:Qe,onShow:Ke},Ye)}function Qe(oe){ct(oe),ge()}function Ke(){E()}function te(oe){Ft(oe),F.value?.focus(),e.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function X(oe){Ft(oe),_.nextTick(()=>{e.value=!1})}function re(){const oe=[_.h(Nl,{class:`col-auto ${B.fieldClass.value}`,...W.value,for:B.targetUid.value,dark:H.value,square:!0,loading:r.value,itemAligned:!1,filled:!0,stackLabel:n.value.length!==0,...B.splitAttrs.listeners.value,onFocus:te,onBlur:X},{...j,rawControl:()=>B.getControl(!0),before:void 0,after:void 0})];return f.value===!0&&oe.push(_.h("div",{ref:N,class:Y.value+" scroll",style:l.popupContentStyle,...ae.value,onClick:Bt,onScrollPassive:w},Ye())),_.h(Vi,{ref:D,modelValue:a.value,position:l.useInput===!0?"top":void 0,transitionShow:p,transitionHide:l.transitionHide,transitionDuration:l.transitionDuration,noRouteDismiss:l.popupNoRouteDismiss,onBeforeShow:vt,onBeforeHide:le,onHide:pe,onShow:Ae},()=>_.h("div",{class:"q-select__dialog"+(H.value===!0?" q-select__dialog--dark q-dark":"")+(e.value===!0?" q-select__dialog--focused":"")},oe))}function le(oe){ct(oe),D.value!==null&&D.value.__updateRefocusTarget(B.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),B.focused.value=!1}function pe(oe){Re(),B.focused.value===!1&&t("blur",oe),Ve()}function Ae(){const oe=document.activeElement;(oe===null||oe.id!==B.targetUid.value)&&F.value!==null&&F.value!==oe&&F.value.focus(),E()}function ge(){a.value!==!0&&(o.value=-1,f.value===!0&&(f.value=!1),B.focused.value===!1&&(c!==null&&(clearTimeout(c),c=null),B.innerLoading.value===!0&&(t("filterAbort"),B.innerLoading.value=!1,r.value=!1)))}function _e(oe){B.editable.value===!0&&(d===!0?(B.onControlFocusin(oe),a.value=!0,_.nextTick(()=>{B.focus()})):B.focus(),l.onFilter!==void 0?Oe(n.value):(O.value!==!0||j["no-option"]!==void 0)&&(f.value=!0))}function Re(){a.value=!1,ge()}function Ve(){l.useInput===!0&&Te(l.multiple!==!0&&l.fillInput===!0&&I.value.length!==0&&de.value(I.value[0])||"",!0,!0)}function Je(oe){let Fe=-1;if(oe===!0){if(I.value.length!==0){const Z=ce.value(I.value[0]);Fe=l.options.findIndex(ue=>Zt(ce.value(ue),Z))}b(Fe)}Ne(Fe)}function Ze(oe,Fe){f.value===!0&&B.innerLoading.value===!1&&(b(-1,!0),_.nextTick(()=>{f.value===!0&&B.innerLoading.value===!1&&(oe>Fe?b():Je(!0))}))}function rt(){a.value===!1&&z.value!==null&&z.value.updatePosition()}function vt(oe){oe!==void 0&&Ft(oe),t("popupShow",oe),B.hasPopupOpen=!0,B.onControlFocusin(oe)}function ct(oe){oe!==void 0&&Ft(oe),t("popupHide",oe),B.hasPopupOpen=!1,B.onControlFocusout(oe)}function kt(){d=m.platform.is.mobile!==!0&&l.behavior!=="dialog"?!1:l.behavior!=="menu"&&(l.useInput===!0?j["no-option"]!==void 0||l.onFilter!==void 0||O.value===!1:!0),p=m.platform.is.ios===!0&&d===!0&&l.useInput===!0?"fade":l.transitionShow}return _.onBeforeUpdate(kt),_.onUpdated(rt),kt(),_.onBeforeUnmount(()=>{u!==null&&clearTimeout(u),s!==null&&clearTimeout(s)}),Object.assign(v,{showPopup:_e,hidePopup:Re,removeAtIndex:Ee,add:We,toggleOption:qe,getOptionIndex:()=>o.value,setOptionIndex:Ne,moveOptionSelection:ze,filter:Oe,updateMenuPosition:rt,updateInputValue:Te,isOptionSelected:ke,getEmittingOptionValue:Ie,isOptionDisabled:(...oe)=>me.value.apply(null,oe)===!0,getOptionValue:(...oe)=>ce.value.apply(null,oe),getOptionLabel:(...oe)=>de.value.apply(null,oe)}),Object.assign(B,{innerValue:I,fieldClass:_.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:F,hasValue:K,showPopup:_e,floatingLabel:_.computed(()=>l.hideSelected!==!0&&K.value===!0||typeof n.value=="number"||n.value.length!==0||qr(l.displayValue)),getControlChild:()=>{if(B.editable.value!==!1&&(a.value===!0||O.value!==!0||j["no-option"]!==void 0))return d===!0?re():Ce();B.hasPopupOpen===!0&&(B.hasPopupOpen=!1)},controlEvents:{onFocusin(oe){B.onControlFocusin(oe)},onFocusout(oe){B.onControlFocusout(oe,()=>{Ve(),ge()})},onClick(oe){if(Bt(oe),d!==!0&&f.value===!0){ge(),F.value?.focus();return}_e(oe)}},getControl:oe=>{const Fe=et(),Z=oe===!0||a.value!==!0||d!==!0;if(l.useInput===!0)Fe.push(ot(oe,Z));else if(B.editable.value===!0){const ve=Z===!0?ee.value:void 0;Fe.push(_.h("input",{ref:Z===!0?F:void 0,key:"d_t",class:"q-select__focus-target",id:Z===!0?B.targetUid.value:void 0,value:V.value,readonly:!0,"data-autofocus":oe===!0||l.autofocus===!0||void 0,...ve,onKeydown:$e,onKeyup:Ue,onKeypress:Ge})),Z===!0&&typeof l.autocomplete=="string"&&l.autocomplete.length!==0&&Fe.push(_.h("input",{class:"q-select__autocomplete-input",autocomplete:l.autocomplete,tabindex:-1,onKeyup:Le}))}if(L.value!==void 0&&l.disable!==!0&&be.value.length!==0){const ve=be.value.map(ye=>_.h("option",{value:ye,selected:!0}));Fe.push(_.h("select",{class:"hidden",name:L.value,multiple:l.multiple},ve))}const ue=l.useInput===!0||Z!==!0?void 0:B.splitAttrs.attributes.value;return _.h("div",{class:"q-field__native row items-center",...ue,...B.splitAttrs.listeners.value},Fe)},getInnerAppend:()=>l.loading!==!0&&r.value!==!0&&l.hideDropdownIcon!==!0?[_.h(St,{class:"q-select__dropdown-icon"+(f.value===!0?" rotate-180":""),name:ne.value})]:null}),zi(B)}}),tu={class:"q-pa-none"},ru=_.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:j}){const t=l,v=j,m=_.ref(!1),f=_.ref(t.modelValue||[]),a=_.computed(()=>({height:t.scrollAreaHeight,width:t.scrollAreaWidth})),o=_.computed(()=>t.dataCy||"checkbox-filter");return _.watch(f,n=>{v("update:modelValue",n)}),_.watch(()=>t.modelValue,n=>{n&&(f.value=n)},{immediate:!0}),(n,e)=>(_.openBlock(),_.createElementBlock("div",tu,[_.createVNode(Ui,_.mergeProps({outlined:"",dense:"",label:t.label,class:["full-width","cursor-pointer"],"data-cy":o.value,"model-value":null,options:[],"hide-dropdown-icon":""},n.$attrs),{append:_.withCtx(()=>[_.createVNode(St,{name:"arrow_drop_down",class:_.normalizeClass(["cursor-pointer smooth-rotate",{"rotate-180":m.value}])},null,8,["class"])]),default:_.withCtx(()=>[_.createVNode(Ur,{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:_.withCtx(()=>[_.createVNode(Ti,{class:"q-pa-sm"},{default:_.withCtx(()=>[_.createVNode(dl,{style:_.normalizeStyle(a.value)},{default:_.withCtx(()=>[(_.openBlock(!0),_.createElementBlock(_.Fragment,null,_.renderList(t.options,r=>(_.openBlock(),_.createBlock(dn,{key:r.value,modelValue:f.value,"onUpdate:modelValue":e[0]||(e[0]=u=>f.value=u),val:r,label:r.label,disable:r.disabled,color:"primary",class:"q-mb-sm q-ml-sm q-mr-sm","data-cy":`${o.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"])]))}}),nu=Er(ru,[["__scopeId","data-v-0e12eb7b"]]),iu=_.defineComponent({__name:"SelectSearch",props:{options:{default:()=>[]},fetchOptions:{},label:{default:"Selectionner un option"},modelValue:{default:null}},emits:["update:modelValue"],setup(l,{emit:j}){const t=l,v=j,m=_.ref(),f=_.ref(t.modelValue??null),a=_.ref(""),o=_.ref(t.options??[]),n=_.ref(!1),e=_.ref(!0);_.watch(()=>t.options,c=>{o.value=c??[],r()},{immediate:!0}),_.watch(()=>t.modelValue,c=>{f.value=c,r(),n.value=!1});function r(){const c=o.value.find(g=>g.value===f.value);a.value=c?.label??""}function u(c){f.value=c,v("update:modelValue",c),r(),n.value=!1}function s(c){a.value=c,c===""&&(n.value=!0)}function i(){if(e.value){e.value=!1;return}f.value!==null&&!n.value?(a.value="",n.value=!0,m.value?.showPopup()):n.value&&(a.value="")}function d(){e.value=!0;const c=a.value.trim();if(c==="")n.value&&(f.value=null,v("update:modelValue",null));else{const g=o.value.find(p=>p.label.toLowerCase()===c.toLowerCase());g?(f.value=g.value,v("update:modelValue",g.value),a.value=g.label):r()}n.value=!1}function h(c,g,p){if(t.fetchOptions)t.fetchOptions(c).then(S=>{o.value=S,g(()=>{})}).catch(p).finally(()=>{});else{const S=t.options??[];o.value=S.filter(C=>C.label.toLowerCase().includes(c.toLowerCase())),g(()=>{})}}return(c,g)=>(_.openBlock(),_.createBlock(Ui,_.mergeProps({ref_key:"selectRef",ref:m,"model-value":f.value,"input-value":a.value,"use-input":"","fill-input":"","hide-selected":"","input-debounce":"300",label:c.label,options:o.value,dense:"",outlined:"",class:"full-width cursor-pointer"},c.$attrs,{"onUpdate:modelValue":u,"onUpdate:inputValue":s,onFocus:i,onBlur:d,onFilter:h}),null,16,["model-value","input-value","label","options"]))}}),Lo=tt({name:"QAvatar",props:{...Cr,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(l,{slots:j}){const t=Ar(l),v=_.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=_.computed(()=>l.fontSize?{fontSize:l.fontSize}:null);return()=>{const f=l.icon!==void 0?[_.h(St,{name:l.icon})]:void 0;return _.h("div",{class:v.value,style:t.value},[_.h("div",{class:"q-avatar__content row flex-center overflow-hidden",style:m.value},to(j.default,f))])}}}),su=tt({name:"QSpace",setup(){const l=_.h("div",{class:"q-space"});return()=>l}}),ou=["ul","ol"],Wi=tt({name:"QList",props:{...It,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(l,{slots:j}){const t=_.getCurrentInstance(),v=Ot(l,t.proxy.$q),m=_.computed(()=>ou.includes(l.tag)?null:"list"),f=_.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()=>_.h(l.tag,{class:f.value,role:m.value},mt(j.default))}}),au=tt({name:"QToolbar",props:{inset:Boolean},setup(l,{slots:j}){const t=_.computed(()=>"q-toolbar row no-wrap items-center"+(l.inset===!0?" q-toolbar--inset":""));return()=>_.h("div",{class:t.value,role:"toolbar"},mt(j.default))}}),lu=tt({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:j,emit:t}){const{proxy:{$q:v}}=_.getCurrentInstance(),m=_.inject(Wr,Rt);if(m===Rt)return console.error("QHeader needs to be child of QLayout"),Rt;const f=_.ref(parseInt(l.heightHint,10)),a=_.ref(!0),o=_.computed(()=>l.reveal===!0||m.view.value.indexOf("H")!==-1||v.platform.is.ios&&m.isContainer.value===!0),n=_.computed(()=>{if(l.modelValue!==!0)return 0;if(o.value===!0)return a.value===!0?f.value:0;const p=f.value-m.scroll.value.position;return p>0?p:0}),e=_.computed(()=>l.modelValue!==!0||o.value===!0&&a.value!==!0),r=_.computed(()=>l.modelValue===!0&&e.value===!0&&l.reveal===!0),u=_.computed(()=>"q-header q-layout__section--marginal "+(o.value===!0?"fixed":"absolute")+"-top"+(l.bordered===!0?" q-header--bordered":"")+(e.value===!0?" q-header--hidden":"")+(l.modelValue!==!0?" q-layout--prevent-focus":"")),s=_.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(f,p),i("size",p)}function c(p){r.value===!0&&d(a,!0),t("focusin",p)}_.watch(()=>l.modelValue,p=>{i("space",p),d(a,!0),m.animate()}),_.watch(n,p=>{i("offset",p)}),_.watch(()=>l.reveal,p=>{p===!1&&d(a,l.modelValue)}),_.watch(a,p=>{m.animate(),t("reveal",p)}),_.watch(m.scroll,p=>{l.reveal===!0&&d(a,p.direction==="up"||p.position<=l.revealOffset||p.position-p.inflectionPoint<100)});const g={};return m.instances.header=g,l.modelValue===!0&&i("size",f.value),i("space",l.modelValue),i("offset",n.value),_.onBeforeUnmount(()=>{m.instances.header===g&&(m.instances.header=void 0,i("size",0),i("offset",0),i("space",!1))}),()=>{const p=vi(j.default,[]);return l.elevated===!0&&p.push(_.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),p.push(_.h(kr,{debounce:0,onResize:h})),_.h("header",{class:u.value,style:s.value,onFocusin:c},p)}}});function Ns(l){if(l===!1)return 0;if(l===!0||l===void 0)return 1;const j=parseInt(l,10);return isNaN(j)?0:j}const Hi=bi({name:"close-popup",beforeMount(l,{value:j}){const t={depth:Ns(j),handler(v){t.depth!==0&&setTimeout(()=>{const m=yl(l);m!==void 0&&wl(m,v,t.depth)})},handlerKey(v){er(v,13)===!0&&t.handler(v)}};l.__qclosepopup=t,l.addEventListener("click",t.handler),l.addEventListener("keyup",t.handlerKey)},updated(l,{value:j,oldValue:t}){j!==t&&(l.__qclosepopup.depth=Ns(j))},beforeUnmount(l){const j=l.__qclosepopup;l.removeEventListener("click",j.handler),l.removeEventListener("keyup",j.handlerKey),delete l.__qclosepopup}}),uu=["src","alt"],cu=_.defineComponent({__name:"SelfeeHeader",props:{logoSrc:{},logoAlt:{},logoTo:{},showProjectSwitch:{type:Boolean},currentProjectLabel:{},availableProjects:{},currentPath:{}},emits:["project-change"],setup(l,{emit:j}){const t=l,v=t.logoAlt??"Logo",m=t.logoTo??"/",f=_.computed(()=>({width:"260px",height:"auto",borderRadius:"0"})),a=o=>t.currentPath?.startsWith(o);return(o,n)=>{const e=_.resolveComponent("router-link");return _.openBlock(),_.createBlock(lu,_.mergeProps({elevated:""},o.$attrs),{default:_.withCtx(()=>[_.createVNode(au,null,{default:_.withCtx(()=>[_.createVNode(e,{to:_.unref(m),class:"q-mr-lg"},{default:_.withCtx(()=>[_.createVNode(Lo,{class:"logo",style:_.normalizeStyle(f.value),"data-testid":"header-logo"},{default:_.withCtx(()=>[_.createElementVNode("img",{src:o.logoSrc,alt:_.unref(v)},null,8,uu)]),_:1},8,["style"])]),_:1},8,["to"]),_.createVNode(su),o.showProjectSwitch?(_.openBlock(),_.createBlock(bt,{key:0,dense:"",unelevated:"",color:"primary",label:o.currentProjectLabel,"data-testid":"project-switch-btn",class:"project-switch-btn q-mr-md bg-info"},{default:_.withCtx(()=>[_.createVNode(Ur,{anchor:"bottom right",self:"top right"},{default:_.withCtx(()=>[_.createVNode(Wi,{dense:"",class:"project-menu"},{default:_.withCtx(()=>[(_.openBlock(!0),_.createElementBlock(_.Fragment,null,_.renderList(o.availableProjects,r=>_.withDirectives((_.openBlock(),_.createBlock(Pr,{key:r.path,clickable:"",disable:a(r.path),onClick:u=>o.$emit("project-change",r.path)},{default:_.withCtx(()=>[_.createVNode(Dr,{class:"q-mr-lg"},{default:_.withCtx(()=>[_.createVNode(ui,null,{default:_.withCtx(()=>[_.createTextVNode(_.toDisplayString(r.label),1)]),_:2},1024),a(r.path)?(_.openBlock(),_.createBlock(ui,{key:0,caption:""},{default:_.withCtx(()=>n[0]||(n[0]=[_.createTextVNode(" Actuel ")])),_:1,__:[0]})):_.createCommentVNode("",!0)]),_:2},1024)]),_:2},1032,["disable","onClick"])),[[Hi]])),128))]),_:1})]),_:1})]),_:1},8,["label"])):_.createCommentVNode("",!0),_.renderSlot(o.$slots,"user-avatar",{},void 0,!0)]),_:3})]),_:3},16)}}}),fu=Er(cu,[["__scopeId","data-v-0f07eaec"]]),du=tt({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:j,emit:t}){const{proxy:{$q:v}}=_.getCurrentInstance(),m=_.inject(Wr,Rt);if(m===Rt)return console.error("QFooter needs to be child of QLayout"),Rt;const f=_.ref(parseInt(l.heightHint,10)),a=_.ref(!0),o=_.ref(tr.value===!0||m.isContainer.value===!0?0:window.innerHeight),n=_.computed(()=>l.reveal===!0||m.view.value.indexOf("F")!==-1||v.platform.is.ios&&m.isContainer.value===!0),e=_.computed(()=>m.isContainer.value===!0?m.containerHeight.value:o.value),r=_.computed(()=>{if(l.modelValue!==!0)return 0;if(n.value===!0)return a.value===!0?f.value:0;const T=m.scroll.value.position+e.value+f.value-m.height.value;return T>0?T:0}),u=_.computed(()=>l.modelValue!==!0||n.value===!0&&a.value!==!0),s=_.computed(()=>l.modelValue===!0&&u.value===!0&&l.reveal===!0),i=_.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=_.computed(()=>{const T=m.rows.value.bottom,F={};return T[0]==="l"&&m.left.space===!0&&(F[v.lang.rtl===!0?"right":"left"]=`${m.left.size}px`),T[2]==="r"&&m.right.space===!0&&(F[v.lang.rtl===!0?"left":"right"]=`${m.right.size}px`),F});function h(T,F){m.update("footer",T,F)}function c(T,F){T.value!==F&&(T.value=F)}function g({height:T}){c(f,T),h("size",T)}function p(){if(l.reveal!==!0)return;const{direction:T,position:F,inflectionPoint:z}=m.scroll.value;c(a,T==="up"||F-z<100||m.height.value-e.value-F-f.value<300)}function S(T){s.value===!0&&c(a,!0),t("focusin",T)}_.watch(()=>l.modelValue,T=>{h("space",T),c(a,!0),m.animate()}),_.watch(r,T=>{h("offset",T)}),_.watch(()=>l.reveal,T=>{T===!1&&c(a,l.modelValue)}),_.watch(a,T=>{m.animate(),t("reveal",T)}),_.watch([f,m.scroll,m.height],p),_.watch(()=>v.screen.height,T=>{m.isContainer.value!==!0&&c(o,T)});const C={};return m.instances.footer=C,l.modelValue===!0&&h("size",f.value),h("space",l.modelValue),h("offset",r.value),_.onBeforeUnmount(()=>{m.instances.footer===C&&(m.instances.footer=void 0,h("size",0),h("offset",0),h("space",!1))}),()=>{const T=Dt(j.default,[_.h(kr,{debounce:0,onResize:g})]);return l.elevated===!0&&T.push(_.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),_.h("footer",{class:i.value,style:d.value,onFocusin:S},T)}}}),hu={class:"row justify-between"},pu={class:"col-3 q-py-md flex justify-center"},mu={class:"col-3 q-py-md flex justify-center"},gu={class:"col-3 q-py-md flex justify-center"},bu=_.defineComponent({__name:"SelfeeFooter",props:{frontVersion:{},backVersion:{},platform:{}},setup(l){return(j,t)=>(_.openBlock(),_.createBlock(du,_.mergeProps({elevated:""},j.$attrs),{default:_.withCtx(()=>[_.createElementVNode("div",hu,[_.createElementVNode("div",pu," Front: "+_.toDisplayString(j.frontVersion),1),_.createElementVNode("div",mu," Back: "+_.toDisplayString(j.backVersion),1),_.createElementVNode("div",gu," Platform: "+_.toDisplayString(j.platform),1)])]),_:1},16))}}),vu={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},Kn={xs:2,sm:4,md:8,lg:16,xl:24},di=tt({name:"QSeparator",props:{...It,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(l){const j=_.getCurrentInstance(),t=Ot(l,j.proxy.$q),v=_.computed(()=>l.vertical===!0?"vertical":"horizontal"),m=_.computed(()=>` q-separator--${v.value}`),f=_.computed(()=>l.inset!==!1?`${m.value}-${vu[l.inset]}`:""),a=_.computed(()=>`q-separator${m.value}${f.value}`+(l.color!==void 0?` bg-${l.color}`:"")+(t.value===!0?" q-separator--dark":"")),o=_.computed(()=>{const n={};if(l.size!==void 0&&(n[l.vertical===!0?"width":"height"]=l.size),l.spaced!==!1){const e=l.spaced===!0?`${Kn.md}px`:l.spaced in Kn?`${Kn[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()=>_.h("hr",{class:a.value,style:o.value,"aria-orientation":v.value})}}),yu={class:"text-h6 text-primary","data-testid":"avatar-initial"},wu={class:"text-weight-bold"},xu={class:"version-info"},Su={class:"text-caption"},ku={class:"text-caption"},_u={class:"text-caption"},Cu=_.defineComponent({__name:"UserAvatar",props:{username:{},onLogout:{},logoutLabel:{default:"Déconnexion"},frontVersion:{default:"N/A"},backVersion:{default:"N/A"},platform:{default:"dev"},showVersionInfo:{type:Boolean,default:!0}},setup(l){const j=l,t=_.computed(()=>j.username?.charAt(0).toUpperCase()??"");return(v,m)=>(_.openBlock(),_.createElementBlock("div",null,[_.createVNode(Lo,{class:"cursor-pointer",size:"40px",color:"white","data-cy":"cy-avatar","data-testid":"cy-avatar"},{default:_.withCtx(()=>[_.createElementVNode("span",yu,_.toDisplayString(t.value),1),_.createVNode(Ur,{"transition-show":"flip-right","transition-hide":"flip-left",class:"user-avatar-menu"},{default:_.withCtx(()=>[_.createVNode(Wi,{class:"user-menu-list"},{default:_.withCtx(()=>[_.createVNode(Pr,{class:"user-info-section"},{default:_.withCtx(()=>[_.createVNode(Dr,null,{default:_.withCtx(()=>[_.createElementVNode("div",wu,_.toDisplayString(v.username),1)]),_:1})]),_:1}),_.createVNode(di),v.showVersionInfo?(_.openBlock(),_.createBlock(Pr,{key:0,class:"version-info-section"},{default:_.withCtx(()=>[_.createVNode(Dr,null,{default:_.withCtx(()=>[_.createElementVNode("div",xu,[m[0]||(m[0]=_.createElementVNode("div",{class:"text-caption text-grey-7"},"Informations de version",-1)),_.createElementVNode("div",Su,"Front: "+_.toDisplayString(v.frontVersion),1),_.createElementVNode("div",ku,"Back: "+_.toDisplayString(v.backVersion),1),_.createElementVNode("div",_u,"Plateforme: "+_.toDisplayString(v.platform),1)])]),_:1})]),_:1})):_.createCommentVNode("",!0),v.showVersionInfo?(_.openBlock(),_.createBlock(di,{key:1})):_.createCommentVNode("",!0),_.createVNode(Pr,{clickable:"",class:"logout-section","data-cy":"cy-logout-button","data-testid":"cy-logout-button",onClick:v.onLogout},{default:_.withCtx(()=>[_.createVNode(Dr,null,{default:_.withCtx(()=>[_.createElementVNode("div",null,_.toDisplayString(v.logoutLabel),1)]),_:1})]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]))}}),Au=Er(Cu,[["__scopeId","data-v-18e2dcbc"]]),Eu=tt({name:"QPageContainer",setup(l,{slots:j}){const{proxy:{$q:t}}=_.getCurrentInstance(),v=_.inject(Wr,Rt);if(v===Rt)return console.error("QPageContainer needs to be child of QLayout"),Rt;_.provide(Bo,!0);const m=_.computed(()=>{const f={};return v.header.space===!0&&(f.paddingTop=`${v.header.size}px`),v.right.space===!0&&(f[`padding${t.lang.rtl===!0?"Left":"Right"}`]=`${v.right.size}px`),v.footer.space===!0&&(f.paddingBottom=`${v.footer.size}px`),v.left.space===!0&&(f[`padding${t.lang.rtl===!0?"Right":"Left"}`]=`${v.left.size}px`),f});return()=>_.h("div",{class:"q-page-container",style:m.value},mt(j.default))}}),Mu=tt({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:j,emit:t}){const{proxy:{$q:v}}=_.getCurrentInstance(),m=_.ref(null),f=_.ref(v.screen.height),a=_.ref(l.container===!0?0:v.screen.width),o=_.ref({position:0,direction:"down",inflectionPoint:0}),n=_.ref(0),e=_.ref(tr.value===!0?0:hn()),r=_.computed(()=>"q-layout q-layout--"+(l.container===!0?"containerized":"standard")),u=_.computed(()=>l.container===!1?{minHeight:v.screen.height+"px"}:null),s=_.computed(()=>e.value!==0?{[v.lang.rtl===!0?"left":"right"]:`${e.value}px`}:null),i=_.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(C){if(l.container===!0||document.qScrollPrevented!==!0){const T={position:C.position.top,direction:C.direction,directionChanged:C.directionChanged,inflectionPoint:C.inflectionPoint.top,delta:C.delta.top};o.value=T,l.onScroll!==void 0&&t("scroll",T)}}function h(C){const{height:T,width:F}=C;let z=!1;f.value!==T&&(z=!0,f.value=T,l.onScrollHeight!==void 0&&t("scrollHeight",T),g()),a.value!==F&&(z=!0,a.value=F),z===!0&&l.onResize!==void 0&&t("resize",C)}function c({height:C}){n.value!==C&&(n.value=C,g())}function g(){if(l.container===!0){const C=f.value>n.value?hn():0;e.value!==C&&(e.value=C)}}let p=null;const S={instances:{},view:_.computed(()=>l.view),isContainer:_.computed(()=>l.container),rootRef:m,height:f,containerHeight:n,scrollbarWidth:e,totalWidth:_.computed(()=>a.value+e.value),rows:_.computed(()=>{const C=l.view.toLowerCase().split(" ");return{top:C[0].split(""),middle:C[1].split(""),bottom:C[2].split("")}}),header:_.reactive({size:0,offset:0,space:!1}),right:_.reactive({size:300,offset:0,space:!1}),footer:_.reactive({size:0,offset:0,space:!1}),left:_.reactive({size:300,offset:0,space:!1}),scroll:o,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(C,T,F){S[C][T]=F}};if(_.provide(Wr,S),hn()>0){let C=function(){z=null,D.classList.remove("hide-scrollbar")},T=function(){if(z===null){if(D.scrollHeight>v.screen.height)return;D.classList.add("hide-scrollbar")}else clearTimeout(z);z=setTimeout(C,300)},F=function(N){z!==null&&N==="remove"&&(clearTimeout(z),C()),window[`${N}EventListener`]("resize",T)},z=null;const D=document.body;_.watch(()=>l.container!==!0?"add":"remove",F),l.container!==!0&&F("add"),_.onUnmounted(()=>{F("remove")})}return()=>{const C=Dt(j.default,[_.h(yo,{onScroll:d}),_.h(kr,{onResize:h})]),T=_.h("div",{class:r.value,style:u.value,ref:l.container===!0?void 0:m,tabindex:-1},C);return l.container===!0?_.h("div",{class:"q-layout-container overflow-hidden",ref:m},[_.h(kr,{onResize:c}),_.h("div",{class:"absolute-full",style:s.value},[_.h("div",{class:"scroll",style:i.value},[T])])]):T}}}),Yi=_.defineComponent({name:"Layout",__name:"Layout",props:{view:{default:"HHh Lpr Fff"},layoutClass:{default:"bg-white"},pageContainerClass:{default:""}},setup(l){return(j,t)=>(_.openBlock(),_.createBlock(Mu,{view:j.view,class:_.normalizeClass(j.layoutClass),style:{minHeight:"auto !important"}},{default:_.withCtx(()=>[_.renderSlot(j.$slots,"header"),_.createVNode(Eu,{class:_.normalizeClass(j.pageContainerClass),style:{paddingBottom:"0 !important"}},{default:_.withCtx(()=>[_.renderSlot(j.$slots,"default")]),_:3},8,["class"]),_.renderSlot(j.$slots,"footer")]),_:3},8,["view","class"]))}});function Tu(){let l=Object.create(null);return{getCache:(j,t)=>l[j]===void 0?l[j]=typeof t=="function"?t():t:l[j],setCache(j,t){l[j]=t},hasCache(j){return Object.hasOwnProperty.call(l,j)},clearCache(j){j!==void 0?delete l[j]:l=Object.create(null)}}}const $t=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178];function Ru(l,j,t){return Object.prototype.toString.call(l)==="[object Date]"&&(t=l.getDate(),j=l.getMonth()+1,l=l.getFullYear()),ju(Qi(l,j,t))}function Ls(l,j,t){return zo(Ou(l,j,t))}function Bu(l){return Iu(l)===0}function pn(l,j){return j<=6?31:j<=11||Bu(l)?30:29}function Iu(l){const j=$t.length;let t=$t[0],v,m,f,a,o;if(l<t||l>=$t[j-1])throw new Error("Invalid Jalaali year "+l);for(o=1;o<j&&(v=$t[o],m=v-t,!(l<v));o+=1)t=v;return a=l-t,m-a<6&&(a=a-m+yt(m+4,33)*33),f=Pt(Pt(a+1,33)-1,4),f===-1&&(f=4),f}function qo(l,j){const t=$t.length,v=l+621;let m=-14,f=$t[0],a,o,n,e,r;if(l<f||l>=$t[t-1])throw new Error("Invalid Jalaali year "+l);for(r=1;r<t&&(a=$t[r],o=a-f,!(l<a));r+=1)m=m+yt(o,33)*8+yt(Pt(o,33),4),f=a;e=l-f,m=m+yt(e,33)*8+yt(Pt(e,33)+3,4),Pt(o,33)===4&&o-e===4&&(m+=1);const u=yt(v,4)-yt((yt(v,100)+1)*3,4)-150,s=20+m-u;return j||(o-e<6&&(e=e-o+yt(o+4,33)*33),n=Pt(Pt(e+1,33)-1,4),n===-1&&(n=4)),{leap:n,gy:v,march:s}}function Ou(l,j,t){const v=qo(l,!0);return Qi(v.gy,3,v.march)+(j-1)*31-yt(j,7)*(j-7)+t-1}function ju(l){const j=zo(l).gy;let t=j-621,v,m,f;const a=qo(t,!1),o=Qi(j,3,a.march);if(f=l-o,f>=0){if(f<=185)return m=1+yt(f,31),v=Pt(f,31)+1,{jy:t,jm:m,jd:v};f-=186}else t-=1,f+=179,a.leap===1&&(f+=1);return m=7+yt(f,30),v=Pt(f,30)+1,{jy:t,jm:m,jd:v}}function Qi(l,j,t){let v=yt((l+yt(j-8,6)+100100)*1461,4)+yt(153*Pt(j+9,12)+2,5)+t-34840408;return v=v-yt(yt(l+100100+yt(j-8,6),100)*3,4)+752,v}function zo(l){let j=4*l+139361631;j=j+yt(yt(4*l+183187720,146097)*3,4)*4-3908;const t=yt(Pt(j,1461),4)*5+308,v=yt(Pt(t,153),5)+1,m=Pt(yt(t,153),12)+1;return{gy:yt(j,1461)-100100+yt(8-m,6),gm:m,gd:v}}function yt(l,j){return~~(l/j)}function Pt(l,j){return l-~~(l/j)*j}const Fu=["gregorian","persian"],qs={mask:{type:String},locale:Object,calendar:{type:String,validator:l=>Fu.includes(l),default:"gregorian"},landscape:Boolean,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,readonly:Boolean,disable:Boolean},Pu=["update:modelValue"];function Xt(l){return l.year+"/"+gt(l.month)+"/"+gt(l.day)}function Du(l,j){const t=_.computed(()=>l.disable!==!0&&l.readonly!==!0),v=_.computed(()=>t.value===!0?0:-1),m=_.computed(()=>{const o=[];return l.color!==void 0&&o.push(`bg-${l.color}`),l.textColor!==void 0&&o.push(`text-${l.textColor}`),o.join(" ")});function f(){return l.locale!==void 0?{...j.lang.date,...l.locale}:j.lang.date}function a(o){const n=new Date,e=o===!0?null:0;if(l.calendar==="persian"){const r=Ru(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:f,getCurrentDate:a}}const hi={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,j,t)=>l+"-"+j+" 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 zs(){const l=Array.isArray(navigator.languages)===!0&&navigator.languages.length!==0?navigator.languages[0]:navigator.language;if(typeof l=="string")return l.split(/[-_]/).map((j,t)=>t===0?j.toLowerCase():t>1||j.length<4?j.toUpperCase():j[0].toUpperCase()+j.slice(1).toLowerCase()).join("-")}const Jt=fa({__qLang:{}},{getLocale:zs,set(l=hi,j){const t={...l,rtl:l.rtl===!0,getLocale:zs};{if(t.set=Jt.set,Jt.__langConfig===void 0||Jt.__langConfig.noHtmlAttrs!==!0){const v=document.documentElement;v.setAttribute("dir",t.rtl===!0?"rtl":"ltr"),v.setAttribute("lang",t.isoName)}Object.assign(Jt.__qLang,t)}},install({$q:l,lang:j,ssrContext:t}){l.lang=Jt.__qLang,Jt.__langConfig=l.config.lang,this.__installed===!0?j!==void 0&&this.set(j):(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(j||hi))}}),Vo=864e5,Nu=36e5,pi=6e4,Uo="YYYY-MM-DDTHH:mm:ss.SSSZ",Lu=/\[((?:[^\]\\]|\\]|\\)*)\]|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,qu=/(\[[^\]]*\])|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,Xn={};function zu(l,j){const t="("+j.days.join("|")+")",v=l+t;if(Xn[v]!==void 0)return Xn[v];const m="("+j.daysShort.join("|")+")",f="("+j.months.join("|")+")",a="("+j.monthsShort.join("|")+")",o={};let n=0;const e=l.replace(qu,u=>{switch(n++,u){case"YY":return o.YY=n,"(-?\\d{1,2})";case"YYYY":return o.YYYY=n,"(-?\\d{1,4})";case"M":return o.M=n,"(\\d{1,2})";case"Mo":return o.M=n++,"(\\d{1,2}(st|nd|rd|th))";case"MM":return o.M=n,"(\\d{2})";case"MMM":return o.MMM=n,a;case"MMMM":return o.MMMM=n,f;case"D":return o.D=n,"(\\d{1,2})";case"Do":return o.D=n++,"(\\d{1,2}(st|nd|rd|th))";case"DD":return o.D=n,"(\\d{2})";case"H":return o.H=n,"(\\d{1,2})";case"HH":return o.H=n,"(\\d{2})";case"h":return o.h=n,"(\\d{1,2})";case"hh":return o.h=n,"(\\d{2})";case"m":return o.m=n,"(\\d{1,2})";case"mm":return o.m=n,"(\\d{2})";case"s":return o.s=n,"(\\d{1,2})";case"ss":return o.s=n,"(\\d{2})";case"S":return o.S=n,"(\\d{1})";case"SS":return o.S=n,"(\\d{2})";case"SSS":return o.S=n,"(\\d{3})";case"A":return o.A=n,"(AM|PM)";case"a":return o.a=n,"(am|pm)";case"aa":return o.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 o.Z=n,"(Z|[+-]\\d{2}:\\d{2})";case"ZZ":return o.ZZ=n,"(Z|[+-]\\d{2}\\d{2})";case"X":return o.X=n,"(-?\\d+)";case"x":return o.x=n,"(-?\\d{4,})";default:return n--,u[0]==="["&&(u=u.substring(1,u.length-1)),u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}),r={map:o,regex:new RegExp("^"+e)};return Xn[v]=r,r}function Wo(l,j){return l!==void 0?l:j!==void 0?j.date:hi.date}function Vs(l,j=""){const t=l>0?"-":"+",v=Math.abs(l),m=Math.floor(v/60),f=v%60;return t+gt(m)+j+gt(f)}function Vu(l,j,t){let v=l.getFullYear(),m=l.getMonth();const f=l.getDate();return j.year!==void 0&&(v+=t*j.year,delete j.year),j.month!==void 0&&(m+=t*j.month,delete j.month),l.setDate(1),l.setMonth(2),l.setFullYear(v),l.setMonth(m),l.setDate(Math.min(f,Gi(l))),j.date!==void 0&&(l.setDate(l.getDate()+t*j.date),delete j.date),l}function Uu(l,j,t){const v=j.year!==void 0?j.year:l[`get${t}FullYear`](),m=j.month!==void 0?j.month-1:l[`get${t}Month`](),f=new Date(v,m+1,0).getDate(),a=Math.min(f,j.date!==void 0?j.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 j.year,delete j.month,delete j.date,l}function Ki(l,j,t){const v=Ho(j),m=new Date(l),f=v.year!==void 0||v.month!==void 0||v.date!==void 0?Vu(m,v,t):m;for(const a in v){const o=fl(a);f[`set${o}`](f[`get${o}`]()+t*v[a])}return f}function Ho(l){const j={...l};return l.years!==void 0&&(j.year=l.years,delete j.years),l.months!==void 0&&(j.month=l.months,delete j.months),l.days!==void 0&&(j.date=l.days,delete j.days),l.day!==void 0&&(j.date=l.day,delete j.day),l.hour!==void 0&&(j.hours=l.hour,delete j.hour),l.minute!==void 0&&(j.minutes=l.minute,delete j.minute),l.second!==void 0&&(j.seconds=l.second,delete j.second),l.millisecond!==void 0&&(j.milliseconds=l.millisecond,delete j.millisecond),j}function Yo(l,j,t){const v=Ho(j),m=t===!0?"UTC":"",f=new Date(l),a=v.year!==void 0||v.month!==void 0||v.date!==void 0?Uu(f,v,m):f;for(const o in v){const n=o.charAt(0).toUpperCase()+o.slice(1);a[`set${m}${n}`](v[o])}return a}function Wu(l,j,t){const v=Qo(l,j,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),f=m.getTimezoneOffset();return v.timezoneOffset===null||v.timezoneOffset===f?m:Ki(m,{minutes:v.timezoneOffset-f},1)}function Qo(l,j,t,v,m){const f={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(f,m),l==null||l===""||typeof l!="string")return f;j===void 0&&(j=Uo);const a=Wo(t,Jt.props),o=a.months,n=a.monthsShort,{regex:e,map:r}=zu(j,a),u=l.match(e);if(u===null)return f;let s="";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 f;const d=new Date(i*(r.X!==void 0?1e3:1));f.year=d.getFullYear(),f.month=d.getMonth()+1,f.day=d.getDate(),f.hour=d.getHours(),f.minute=d.getMinutes(),f.second=d.getSeconds(),f.millisecond=d.getMilliseconds()}else{if(r.YYYY!==void 0)f.year=parseInt(u[r.YYYY],10);else if(r.YY!==void 0){const i=parseInt(u[r.YY],10);f.year=i<0?i:2e3+i}if(r.M!==void 0){if(f.month=parseInt(u[r.M],10),f.month<1||f.month>12)return f}else r.MMM!==void 0?f.month=n.indexOf(u[r.MMM])+1:r.MMMM!==void 0&&(f.month=o.indexOf(u[r.MMMM])+1);if(r.D!==void 0){if(f.day=parseInt(u[r.D],10),f.year===null||f.month===null||f.day<1)return f;const i=v!=="persian"?new Date(f.year,f.month,0).getDate():pn(f.year,f.month);if(f.day>i)return f}r.H!==void 0?f.hour=parseInt(u[r.H],10)%24:r.h!==void 0&&(f.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.")&&(f.hour+=12),f.hour=f.hour%24),r.m!==void 0&&(f.minute=parseInt(u[r.m],10)%60),r.s!==void 0&&(f.second=parseInt(u[r.s],10)%60),r.S!==void 0&&(f.millisecond=parseInt(u[r.S],10)*10**(3-u[r.S].length)),(r.Z!==void 0||r.ZZ!==void 0)&&(s=r.Z!==void 0?u[r.Z].replace(":",""):u[r.ZZ],f.timezoneOffset=(s[0]==="+"?-1:1)*(60*s.slice(1,3)+1*s.slice(3,5)))}return f.dateHash=gt(f.year,4)+"/"+gt(f.month)+"/"+gt(f.day),f.timeHash=gt(f.hour)+":"+gt(f.minute)+":"+gt(f.second)+s,f}function Hu(l){return typeof l=="number"?!0:isNaN(Date.parse(l))===!1}function Yu(l,j){return Yo(new Date,l,j)}function Qu(l){const j=new Date(l).getDay();return j===0?7:j}function mn(l){const j=new Date(l.getFullYear(),l.getMonth(),l.getDate());j.setDate(j.getDate()-(j.getDay()+6)%7+3);const t=new Date(j.getFullYear(),0,4);t.setDate(t.getDate()-(t.getDay()+6)%7+3);const v=j.getTimezoneOffset()-t.getTimezoneOffset();j.setHours(j.getHours()-v);const m=(j-t)/(Vo*7);return 1+Math.floor(m)}function Ku(l){return l.getFullYear()*1e4+l.getMonth()*100+l.getDate()}function Gn(l,j){const t=new Date(l);return j===!0?Ku(t):t.getTime()}function Xu(l,j,t,v={}){const m=Gn(j,v.onlyDate),f=Gn(t,v.onlyDate),a=Gn(l,v.onlyDate);return(a>m||v.inclusiveFrom===!0&&a===m)&&(a<f||v.inclusiveTo===!0&&a===f)}function Gu(l,j){return Ki(l,j,1)}function Ju(l,j){return Ki(l,j,-1)}function Vt(l,j,t){const v=new Date(l),m=`set${t===!0?"UTC":""}`;switch(j){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 Zu(l,j,t){const v=new Date(l),m=`set${t===!0?"UTC":""}`;switch(j){case"year":case"years":v[`${m}Month`](11);case"month":case"months":v[`${m}Date`](Gi(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 $u(l){let j=new Date(l);return Array.prototype.slice.call(arguments,1).forEach(t=>{j=Math.max(j,new Date(t))}),j}function ec(l){let j=new Date(l);return Array.prototype.slice.call(arguments,1).forEach(t=>{j=Math.min(j,new Date(t))}),j}function sn(l,j,t){return(l.getTime()-l.getTimezoneOffset()*pi-(j.getTime()-j.getTimezoneOffset()*pi))/t}function Xi(l,j,t="days"){const v=new Date(l),m=new Date(j);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 sn(Vt(v,"day"),Vt(m,"day"),Vo);case"hours":case"hour":return sn(Vt(v,"hour"),Vt(m,"hour"),Nu);case"minutes":case"minute":return sn(Vt(v,"minute"),Vt(m,"minute"),pi);case"seconds":case"second":return sn(Vt(v,"second"),Vt(m,"second"),1e3)}}function gn(l){return Xi(l,Vt(l,"year"),"days")+1}function tc(l){return An(l)===!0?"date":typeof l=="number"?"number":"string"}function rc(l,j,t){const v=new Date(l);if(j){const m=new Date(j);if(v<m)return m}if(t){const m=new Date(t);if(v>m)return m}return v}function nc(l,j,t){const v=new Date(l),m=new Date(j);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 Gi(l){return new Date(l.getFullYear(),l.getMonth()+1,0).getDate()}function vr(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 Us={YY(l,j,t){const v=this.YYYY(l,j,t)%100;return v>=0?gt(v):"-"+gt(Math.abs(v))},YYYY(l,j,t){return t??l.getFullYear()},M(l){return l.getMonth()+1},Mo(l){return vr(l.getMonth()+1)},MM(l){return gt(l.getMonth()+1)},MMM(l,j){return j.monthsShort[l.getMonth()]},MMMM(l,j){return j.months[l.getMonth()]},Q(l){return Math.ceil((l.getMonth()+1)/3)},Qo(l){return vr(this.Q(l))},D(l){return l.getDate()},Do(l){return vr(l.getDate())},DD(l){return gt(l.getDate())},DDD(l){return gn(l)},DDDo(l){return vr(gn(l))},DDDD(l){return gt(gn(l),3)},d(l){return l.getDay()},do(l){return vr(l.getDay())},dd(l,j){return j.days[l.getDay()].slice(0,2)},ddd(l,j){return j.daysShort[l.getDay()]},dddd(l,j){return j.days[l.getDay()]},E(l){return l.getDay()||7},w(l){return mn(l)},wo(l){return vr(mn(l))},ww(l){return gt(mn(l))},H(l){return l.getHours()},HH(l){return gt(l.getHours())},h(l){const j=l.getHours();return j===0?12:j>12?j%12:j},hh(l){return gt(this.h(l))},m(l){return l.getMinutes()},mm(l){return gt(l.getMinutes())},s(l){return l.getSeconds()},ss(l){return gt(l.getSeconds())},S(l){return Math.floor(l.getMilliseconds()/100)},SS(l){return gt(Math.floor(l.getMilliseconds()/10))},SSS(l){return gt(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,j,t,v){const m=v??l.getTimezoneOffset();return Vs(m,":")},ZZ(l,j,t,v){const m=v??l.getTimezoneOffset();return Vs(m)},X(l){return Math.floor(l.getTime()/1e3)},x(l){return l.getTime()}};function Ko(l,j,t,v,m){if(l!==0&&!l||l===1/0||l===-1/0)return;const f=new Date(l);if(isNaN(f))return;j===void 0&&(j=Uo);const a=Wo(t,Jt.props);return j.replace(Lu,(o,n)=>o in Us?Us[o](f,a,v,m):n===void 0?o:n.split("\\]").join("]"))}function ic(l){return An(l)===!0?new Date(l.getTime()):l}const Xo={isValid:Hu,extractDate:Wu,buildDate:Yu,getDayOfWeek:Qu,getWeekOfYear:mn,isBetweenDates:Xu,addToDate:Gu,subtractFromDate:Ju,adjustDate:Yo,startOfDate:Vt,endOfDate:Zu,getMaxDate:$u,getMinDate:ec,getDateDiff:Xi,getDayOfYear:gn,inferDateFormat:tc,getDateBetween:rc,isSameDate:nc,daysInMonth:Gi,formatDate:Ko,clone:ic},Wt=20,sc=["Calendar","Years","Months"],Ws=l=>sc.includes(l),Jn=l=>/^-?[\d]+\/[0-1]\d$/.test(l),yr=" — ";function Gt(l){return l.year+"/"+gt(l.month)}const Go=tt({name:"QDate",props:{...qs,...Tn,...It,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:{...qs.mask,default:"YYYY/MM/DD"},defaultYearMonth:{type:String,validator:Jn},yearsInMonthView:Boolean,events:[Array,Function],eventColor:[String,Function],emitImmediately:Boolean,options:[Array,Function],navigationMinYearMonth:{type:String,validator:Jn},navigationMaxYearMonth:{type:String,validator:Jn},noUnset:Boolean,firstDayOfWeek:[String,Number],todayBtn:Boolean,minimal:Boolean,defaultView:{type:String,default:"Calendar",validator:Ws}},emits:[...Pu,"rangeStart","rangeEnd","navigation"],setup(l,{slots:j,emit:t}){const{proxy:v}=_.getCurrentInstance(),{$q:m}=v,f=Ot(l,m),{getCache:a}=Tu(),{tabindex:o,headerClass:n,getLocale:e,getCurrentDate:r}=Du(l,m);let u;const s=Qa(l),i=ho(s),d=_.ref(null),h=_.ref(We()),c=_.ref(e()),g=_.computed(()=>We()),p=_.computed(()=>e()),S=_.computed(()=>r()),C=_.ref(Ne(h.value,c.value)),T=_.ref(l.defaultView),F=_.computed(()=>m.lang.rtl===!0?"right":"left"),z=_.ref(F.value),D=_.ref(F.value),N=C.value.year,L=_.ref(N-N%Wt-(N<0?Wt:0)),U=_.ref(null),q=_.computed(()=>{const te=l.landscape===!0?"landscape":"portrait";return`q-date q-date--${te} q-date--${te}-${l.minimal===!0?"minimal":"standard"}`+(f.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=_.computed(()=>l.color||"primary"),M=_.computed(()=>l.textColor||"white"),k=_.computed(()=>l.emitImmediately===!0&&l.multiple!==!0&&l.range!==!0),b=_.computed(()=>Array.isArray(l.modelValue)===!0?l.modelValue:l.modelValue!==null&&l.modelValue!==void 0?[l.modelValue]:[]),y=_.computed(()=>b.value.filter(te=>typeof te=="string").map(te=>qe(te,h.value,c.value)).filter(te=>te.dateHash!==null&&te.day!==null&&te.month!==null&&te.year!==null)),w=_.computed(()=>{const te=X=>qe(X,h.value,c.value);return b.value.filter(X=>No(X)===!0&&X.from!==void 0&&X.to!==void 0).map(X=>({from:te(X.from),to:te(X.to)})).filter(X=>X.from.dateHash!==null&&X.to.dateHash!==null&&X.from.dateHash<X.to.dateHash)}),x=_.computed(()=>l.calendar!=="persian"?te=>new Date(te.year,te.month-1,te.day):te=>{const X=Ls(te.year,te.month,te.day);return new Date(X.gy,X.gm-1,X.gd)}),E=_.computed(()=>l.calendar==="persian"?Xt:(te,X,re)=>Ko(new Date(te.year,te.month-1,te.day,te.hour,te.minute,te.second,te.millisecond),X===void 0?h.value:X,re===void 0?c.value:re,te.year,te.timezoneOffset)),B=_.computed(()=>y.value.length+w.value.reduce((te,X)=>te+1+Xi(x.value(X.to),x.value(X.from)),0)),I=_.computed(()=>{if(l.title!==void 0&&l.title!==null&&l.title.length!==0)return l.title;if(U.value!==null){const re=U.value.init,le=x.value(re);return c.value.daysShort[le.getDay()]+", "+c.value.monthsShort[re.month-1]+" "+re.day+yr+"?"}if(B.value===0)return yr;if(B.value>1)return`${B.value} ${c.value.pluralDay}`;const te=y.value[0],X=x.value(te);return isNaN(X.valueOf())===!0?yr:c.value.headerTitle!==void 0?c.value.headerTitle(X,te):c.value.daysShort[X.getDay()]+", "+c.value.monthsShort[te.month-1]+" "+te.day}),W=_.computed(()=>y.value.concat(w.value.map(X=>X.from)).sort((X,re)=>X.year-re.year||X.month-re.month)[0]),H=_.computed(()=>y.value.concat(w.value.map(X=>X.to)).sort((X,re)=>re.year-X.year||re.month-X.month)[0]),K=_.computed(()=>{if(l.subtitle!==void 0&&l.subtitle!==null&&l.subtitle.length!==0)return l.subtitle;if(B.value===0)return yr;if(B.value>1){const te=W.value,X=H.value,re=c.value.monthsShort;return re[te.month-1]+(te.year!==X.year?" "+te.year+yr+re[X.month-1]+" ":te.month!==X.month?yr+re[X.month-1]:"")+" "+X.year}return y.value[0].year}),P=_.computed(()=>{const te=[m.iconSet.datetime.arrowLeft,m.iconSet.datetime.arrowRight];return m.lang.rtl===!0?te.reverse():te}),Y=_.computed(()=>l.firstDayOfWeek!==void 0?Number(l.firstDayOfWeek):c.value.firstDayOfWeek),O=_.computed(()=>{const te=c.value.daysShort,X=Y.value;return X>0?te.slice(X,7).concat(te.slice(0,X)):te}),R=_.computed(()=>{const te=C.value;return l.calendar!=="persian"?new Date(te.year,te.month,0).getDate():pn(te.year,te.month)}),V=_.computed(()=>typeof l.eventColor=="function"?l.eventColor:()=>l.eventColor),Q=_.computed(()=>{if(l.navigationMinYearMonth===void 0)return null;const te=l.navigationMinYearMonth.split("/");return{year:parseInt(te[0],10),month:parseInt(te[1],10)}}),$=_.computed(()=>{if(l.navigationMaxYearMonth===void 0)return null;const te=l.navigationMaxYearMonth.split("/");return{year:parseInt(te[0],10),month:parseInt(te[1],10)}}),G=_.computed(()=>{const te={month:{prev:!0,next:!0},year:{prev:!0,next:!0}};return Q.value!==null&&Q.value.year>=C.value.year&&(te.year.prev=!1,Q.value.year===C.value.year&&Q.value.month>=C.value.month&&(te.month.prev=!1)),$.value!==null&&$.value.year<=C.value.year&&(te.year.next=!1,$.value.year===C.value.year&&$.value.month<=C.value.month&&(te.month.next=!1)),te}),ee=_.computed(()=>{const te={};return y.value.forEach(X=>{const re=Gt(X);te[re]===void 0&&(te[re]=[]),te[re].push(X.day)}),te}),ae=_.computed(()=>{const te={};return w.value.forEach(X=>{const re=Gt(X.from),le=Gt(X.to);if(te[re]===void 0&&(te[re]=[]),te[re].push({from:X.from.day,to:re===le?X.to.day:void 0,range:X}),re<le){let pe;const{year:Ae,month:ge}=X.from,_e=ge<12?{year:Ae,month:ge+1}:{year:Ae+1,month:1};for(;(pe=Gt(_e))<=le;)te[pe]===void 0&&(te[pe]=[]),te[pe].push({from:void 0,to:pe===le?X.to.day:void 0,range:X}),_e.month++,_e.month>12&&(_e.year++,_e.month=1)}}),te}),se=_.computed(()=>{if(U.value===null)return;const{init:te,initHash:X,final:re,finalHash:le}=U.value,[pe,Ae]=X<=le?[te,re]:[re,te],ge=Gt(pe),_e=Gt(Ae);if(ge!==J.value&&_e!==J.value)return;const Re={};return ge===J.value?(Re.from=pe.day,Re.includeFrom=!0):Re.from=1,_e===J.value?(Re.to=Ae.day,Re.includeTo=!0):Re.to=R.value,Re}),J=_.computed(()=>Gt(C.value)),ne=_.computed(()=>{const te={};if(l.options===void 0){for(let re=1;re<=R.value;re++)te[re]=!0;return te}const X=typeof l.options=="function"?l.options:re=>l.options.includes(re);for(let re=1;re<=R.value;re++){const le=J.value+"/"+gt(re);te[re]=X(le)}return te}),ie=_.computed(()=>{const te={};if(l.events===void 0)for(let X=1;X<=R.value;X++)te[X]=!1;else{const X=typeof l.events=="function"?l.events:re=>l.events.includes(re);for(let re=1;re<=R.value;re++){const le=J.value+"/"+gt(re);te[re]=X(le)===!0&&V.value(le)}}return te}),fe=_.computed(()=>{let te,X;const{year:re,month:le}=C.value;if(l.calendar!=="persian")te=new Date(re,le-1,1),X=new Date(re,le-1,0).getDate();else{const pe=Ls(re,le,1);te=new Date(pe.gy,pe.gm-1,pe.gd);let Ae=le-1,ge=re;Ae===0&&(Ae=12,ge--),X=pn(ge,Ae)}return{days:te.getDay()-Y.value-1,endDay:X}}),ce=_.computed(()=>{const te=[],{days:X,endDay:re}=fe.value,le=X<0?X+7:X;if(le<6)for(let ge=re-le;ge<=re;ge++)te.push({i:ge,fill:!0});const pe=te.length;for(let ge=1;ge<=R.value;ge++){const _e={i:ge,event:ie.value[ge],classes:[]};ne.value[ge]===!0&&(_e.in=!0,_e.flat=!0),te.push(_e)}if(ee.value[J.value]!==void 0&&ee.value[J.value].forEach(ge=>{const _e=pe+ge-1;Object.assign(te[_e],{selected:!0,unelevated:!0,flat:!1,color:A.value,textColor:M.value})}),ae.value[J.value]!==void 0&&ae.value[J.value].forEach(ge=>{if(ge.from!==void 0){const _e=pe+ge.from-1,Re=pe+(ge.to||R.value)-1;for(let Ve=_e;Ve<=Re;Ve++)Object.assign(te[Ve],{range:ge.range,unelevated:!0,color:A.value,textColor:M.value});Object.assign(te[_e],{rangeFrom:!0,flat:!1}),ge.to!==void 0&&Object.assign(te[Re],{rangeTo:!0,flat:!1})}else if(ge.to!==void 0){const _e=pe+ge.to-1;for(let Re=pe;Re<=_e;Re++)Object.assign(te[Re],{range:ge.range,unelevated:!0,color:A.value,textColor:M.value});Object.assign(te[_e],{flat:!1,rangeTo:!0})}else{const _e=pe+R.value-1;for(let Re=pe;Re<=_e;Re++)Object.assign(te[Re],{range:ge.range,unelevated:!0,color:A.value,textColor:M.value})}}),se.value!==void 0){const ge=pe+se.value.from-1,_e=pe+se.value.to-1;for(let Re=ge;Re<=_e;Re++)te[Re].color=A.value,te[Re].editRange=!0;se.value.includeFrom===!0&&(te[ge].editRangeFrom=!0),se.value.includeTo===!0&&(te[_e].editRangeTo=!0)}C.value.year===S.value.year&&C.value.month===S.value.month&&(te[pe+S.value.day-1].today=!0);const Ae=te.length%7;if(Ae>0){const ge=7-Ae;for(let _e=1;_e<=ge;_e++)te.push({i:_e,fill:!0})}return te.forEach(ge=>{let _e="q-date__calendar-item ";ge.fill===!0?_e+="q-date__calendar-item--fill":(_e+=`q-date__calendar-item--${ge.in===!0?"in":"out"}`,ge.range!==void 0&&(_e+=` q-date__range${ge.rangeTo===!0?"-to":ge.rangeFrom===!0?"-from":""}`),ge.editRange===!0&&(_e+=` q-date__edit-range${ge.editRangeFrom===!0?"-from":""}${ge.editRangeTo===!0?"-to":""}`),(ge.range!==void 0||ge.editRange===!0)&&(_e+=` text-${ge.color}`)),ge.classes=_e}),te}),de=_.computed(()=>l.disable===!0?{"aria-disabled":"true"}:{});_.watch(()=>l.modelValue,te=>{if(u===JSON.stringify(te))u=0;else{const X=Ne(h.value,c.value);$e(X.year,X.month,X)}}),_.watch(T,()=>{d.value!==null&&v.$el.contains(document.activeElement)===!0&&d.value.focus()}),_.watch(()=>C.value.year+"|"+C.value.month,()=>{t("navigation",{year:C.value.year,month:C.value.month})}),_.watch(g,te=>{we(te,c.value,"mask"),h.value=te}),_.watch(p,te=>{we(h.value,te,"locale"),c.value=te});function me(te){u=JSON.stringify(te)}function be(){const{year:te,month:X,day:re}=S.value,le={...C.value,year:te,month:X,day:re},pe=ee.value[Gt(le)];(pe===void 0||pe.includes(le.day)===!1)&&ot(le),Ee(le.year,le.month)}function xe(te){Ws(te)===!0&&(T.value=te)}function Ie(te,X){["month","year"].includes(te)&&(te==="month"?je:ke)(X===!0?-1:1)}function Ee(te,X){T.value="Calendar",$e(te,X)}function Me(te,X){if(l.range===!1||!te){U.value=null;return}const re=Object.assign({...C.value},te),le=X!==void 0?Object.assign({...C.value},X):re;U.value={init:re,initHash:Xt(re),final:le,finalHash:Xt(le)},Ee(re.year,re.month)}function We(){return l.calendar==="persian"?"YYYY/MM/DD":l.mask}function qe(te,X,re){return Qo(te,X,re,l.calendar,{hour:0,minute:0,second:0,millisecond:0})}function Ne(te,X){const re=Array.isArray(l.modelValue)===!0?l.modelValue:l.modelValue?[l.modelValue]:[];if(re.length===0)return ze();const le=re[re.length-1],pe=qe(le.from!==void 0?le.from:le,te,X);return pe.dateHash===null?ze():pe}function ze(){let te,X;if(l.defaultYearMonth!==void 0){const re=l.defaultYearMonth.split("/");te=parseInt(re[0],10),X=parseInt(re[1],10)}else{const re=S.value!==void 0?S.value:r();te=re.year,X=re.month}return{year:te,month:X,day:1,hour:0,minute:0,second:0,millisecond:0,dateHash:te+"/"+gt(X)+"/01"}}function je(te){let X=C.value.year,re=Number(C.value.month)+te;re===13?(re=1,X++):re===0&&(re=12,X--),$e(X,re),k.value===!0&&nt("month")}function ke(te){const X=Number(C.value.year)+te;$e(X,C.value.month),k.value===!0&&nt("year")}function Pe(te){$e(te,C.value.month),T.value=l.defaultView==="Years"?"Months":"Calendar",k.value===!0&&nt("year")}function Ue(te){$e(C.value.year,te),T.value="Calendar",k.value===!0&&nt("month")}function Le(te,X){(ee.value[X]?.includes(te.day)===!0?he:ot)(te)}function Ge(te){return{year:te.year,month:te.month,day:te.day}}function $e(te,X,re){if(Q.value!==null&&te<=Q.value.year&&((X<Q.value.month||te<Q.value.year)&&(X=Q.value.month),te=Q.value.year),$.value!==null&&te>=$.value.year&&((X>$.value.month||te>$.value.year)&&(X=$.value.month),te=$.value.year),re!==void 0){const{hour:pe,minute:Ae,second:ge,millisecond:_e,timezoneOffset:Re,timeHash:Ve}=re;Object.assign(C.value,{hour:pe,minute:Ae,second:ge,millisecond:_e,timezoneOffset:Re,timeHash:Ve})}const le=te+"/"+gt(X)+"/01";le!==C.value.dateHash&&(z.value=C.value.dateHash<le==(m.lang.rtl!==!0)?"left":"right",te!==C.value.year&&(D.value=z.value),_.nextTick(()=>{L.value=te-te%Wt-(te<0?Wt:0),Object.assign(C.value,{year:te,month:X,day:1,dateHash:le})}))}function He(te,X,re){const le=te!==null&&te.length===1&&l.multiple===!1?te[0]:te,{reason:pe,details:Ae}=et(X,re);me(le),t("update:modelValue",le,pe,Ae)}function nt(te){const X=y.value[0]!==void 0&&y.value[0].dateHash!==null?{...y.value[0]}:{...C.value};_.nextTick(()=>{X.year=C.value.year,X.month=C.value.month;const re=l.calendar!=="persian"?new Date(X.year,X.month,0).getDate():pn(X.year,X.month);X.day=Math.min(Math.max(1,X.day),re);const le=Ye(X),{details:pe}=et("",X);me(le),t("update:modelValue",le,te,pe)})}function et(te,X){return X.from!==void 0?{reason:`${te}-range`,details:{...Ge(X.target),from:Ge(X.from),to:Ge(X.to)}}:{reason:`${te}-day`,details:Ge(X)}}function Ye(te,X,re){return te.from!==void 0?{from:E.value(te.from,X,re),to:E.value(te.to,X,re)}:E.value(te,X,re)}function ot(te){let X;if(l.multiple===!0)if(te.from!==void 0){const re=Xt(te.from),le=Xt(te.to),pe=y.value.filter(ge=>ge.dateHash<re||ge.dateHash>le),Ae=w.value.filter(({from:ge,to:_e})=>_e.dateHash<re||ge.dateHash>le);X=pe.concat(Ae).concat(te).map(ge=>Ye(ge))}else{const re=b.value.slice();re.push(Ye(te)),X=re}else X=Ye(te);He(X,"add",te)}function he(te){if(l.noUnset===!0)return;let X=null;if(l.multiple===!0&&Array.isArray(l.modelValue)===!0){const re=Ye(te);te.from!==void 0?X=l.modelValue.filter(le=>le.from!==void 0?le.from!==re.from&&le.to!==re.to:!0):X=l.modelValue.filter(le=>le!==re),X.length===0&&(X=null)}He(X,"remove",te)}function we(te,X,re){const le=y.value.concat(w.value).map(Ae=>Ye(Ae,te,X)).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,re)}function Te(){if(l.minimal!==!0)return _.h("div",{class:"q-date__header "+n.value},[_.h("div",{class:"relative-position"},[_.h(_.Transition,{name:"q-transition--fade"},()=>_.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:o.value,...a("vY",{onClick(){T.value="Years"},onKeyup(te){te.keyCode===13&&(T.value="Years")}})},[K.value]))]),_.h("div",{class:"q-date__header-title relative-position flex no-wrap"},[_.h("div",{class:"relative-position col"},[_.h(_.Transition,{name:"q-transition--fade"},()=>_.h("div",{key:"h-sub"+I.value,class:"q-date__header-title-label q-date__header-link "+(T.value==="Calendar"?"q-date__header-link--active":"cursor-pointer"),tabindex:o.value,...a("vC",{onClick(){T.value="Calendar"},onKeyup(te){te.keyCode===13&&(T.value="Calendar")}})},[I.value]))]),l.todayBtn===!0?_.h(bt,{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:o.value,onClick:be}):null])])}function Oe({label:te,type:X,key:re,dir:le,goTo:pe,boundaries:Ae,cls:ge}){return[_.h("div",{class:"row items-center q-date__arrow"},[_.h(bt,{round:!0,dense:!0,size:"sm",flat:!0,icon:P.value[0],"aria-label":X==="Years"?m.lang.date.prevYear:m.lang.date.prevMonth,tabindex:o.value,disable:Ae.prev===!1,...a("go-#"+X,{onClick(){pe(-1)}})})]),_.h("div",{class:"relative-position overflow-hidden flex flex-center"+ge},[_.h(_.Transition,{name:"q-transition--jump-"+le},()=>_.h("div",{key:re},[_.h(bt,{flat:!0,dense:!0,noCaps:!0,label:te,tabindex:o.value,...a("view#"+X,{onClick:()=>{T.value=X}})})]))]),_.h("div",{class:"row items-center q-date__arrow"},[_.h(bt,{round:!0,dense:!0,size:"sm",flat:!0,icon:P.value[1],"aria-label":X==="Years"?m.lang.date.nextYear:m.lang.date.nextMonth,tabindex:o.value,disable:Ae.next===!1,...a("go+#"+X,{onClick(){pe(1)}})})])]}const Ce={Calendar:()=>[_.h("div",{key:"calendar-view",class:"q-date__view q-date__calendar"},[_.h("div",{class:"q-date__navigation row items-center no-wrap"},Oe({label:c.value.months[C.value.month-1],type:"Months",key:C.value.month,dir:z.value,goTo:je,boundaries:G.value.month,cls:" col"}).concat(Oe({label:C.value.year,type:"Years",key:C.value.year,dir:D.value,goTo:ke,boundaries:G.value.year,cls:""}))),_.h("div",{class:"q-date__calendar-weekdays row items-center no-wrap"},O.value.map(te=>_.h("div",{class:"q-date__calendar-item"},[_.h("div",te)]))),_.h("div",{class:"q-date__calendar-days-container relative-position overflow-hidden"},[_.h(_.Transition,{name:"q-transition--slide-"+z.value},()=>_.h("div",{key:J.value,class:"q-date__calendar-days fit"},ce.value.map(te=>_.h("div",{class:te.classes},[te.in===!0?_.h(bt,{class:te.today===!0?"q-date__today":"",dense:!0,flat:te.flat,unelevated:te.unelevated,color:te.color,textColor:te.textColor,label:te.i,tabindex:o.value,...a("day#"+te.i,{onClick:()=>{Qe(te.i)},onMouseover:()=>{Ke(te.i)}})},te.event!==!1?()=>_.h("div",{class:"q-date__event bg-"+te.event}):null):_.h("div",""+te.i)]))))])])],Months(){const te=C.value.year===S.value.year,X=le=>Q.value!==null&&C.value.year===Q.value.year&&Q.value.month>le||$.value!==null&&C.value.year===$.value.year&&$.value.month<le,re=c.value.monthsShort.map((le,pe)=>{const Ae=C.value.month===pe+1;return _.h("div",{class:"q-date__months-item flex flex-center"},[_.h(bt,{class:te===!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:o.value,disable:X(pe+1),...a("month#"+pe,{onClick:()=>{Ue(pe+1)}})})])});return l.yearsInMonthView===!0&&re.unshift(_.h("div",{class:"row no-wrap full-width"},[Oe({label:C.value.year,type:"Years",key:C.value.year,dir:D.value,goTo:ke,boundaries:G.value.year,cls:" col"})])),_.h("div",{key:"months-view",class:"q-date__view q-date__months flex flex-center"},re)},Years(){const te=L.value,X=te+Wt,re=[],le=pe=>Q.value!==null&&Q.value.year>pe||$.value!==null&&$.value.year<pe;for(let pe=te;pe<=X;pe++){const Ae=C.value.year===pe;re.push(_.h("div",{class:"q-date__years-item flex flex-center"},[_.h(bt,{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:o.value,disable:le(pe),...a("yr#"+pe,{onClick:()=>{Pe(pe)}})})]))}return _.h("div",{class:"q-date__view q-date__years flex flex-center"},[_.h("div",{class:"col-auto"},[_.h(bt,{round:!0,dense:!0,flat:!0,icon:P.value[0],"aria-label":m.lang.date.prevRangeYears(Wt),tabindex:o.value,disable:le(te),...a("y-",{onClick:()=>{L.value-=Wt}})})]),_.h("div",{class:"q-date__years-content col self-stretch row items-center"},re),_.h("div",{class:"col-auto"},[_.h(bt,{round:!0,dense:!0,flat:!0,icon:P.value[1],"aria-label":m.lang.date.nextRangeYears(Wt),tabindex:o.value,disable:le(X),...a("y+",{onClick:()=>{L.value+=Wt}})})])])}};function Qe(te){const X={...C.value,day:te};if(l.range===!1){Le(X,J.value);return}if(U.value===null){const re=ce.value.find(pe=>pe.fill!==!0&&pe.i===te);if(l.noUnset!==!0&&re.range!==void 0){he({target:X,from:re.range.from,to:re.range.to});return}if(re.selected===!0){he(X);return}const le=Xt(X);U.value={init:X,initHash:le,final:X,finalHash:le},t("rangeStart",Ge(X))}else{const re=U.value.initHash,le=Xt(X),pe=re<=le?{from:U.value.init,to:X}:{from:X,to:U.value.init};U.value=null,ot(re===le?X:{target:X,...pe}),t("rangeEnd",{from:Ge(pe.from),to:Ge(pe.to)})}}function Ke(te){if(U.value!==null){const X={...C.value,day:te};Object.assign(U.value,{final:X,finalHash:Xt(X)})}}return Object.assign(v,{setToday:be,setView:xe,offsetCalendar:Ie,setCalendarTo:Ee,setEditingRange:Me}),()=>{const te=[_.h("div",{class:"q-date__content col relative-position"},[_.h(_.Transition,{name:"q-transition--fade"},Ce[T.value])])],X=mt(j.default);return X!==void 0&&te.push(_.h("div",{class:"q-date__actions"},X)),l.name!==void 0&&l.disable!==!0&&i(te,"push"),_.h("div",{class:q.value,...de.value},[Te(),_.h("div",{ref:d,class:"q-date__main col column",tabindex:-1},te)])}}}),Jo=tt({name:"QPopupProxy",props:{...xo,breakpoint:{type:[String,Number],default:450}},emits:["show","hide"],setup(l,{slots:j,emit:t,attrs:v}){const{proxy:m}=_.getCurrentInstance(),{$q:f}=m,a=_.ref(!1),o=_.ref(null),n=_.computed(()=>parseInt(l.breakpoint,10)),{canShow:e}=Ri({showing:a});function r(){return f.screen.width<n.value||f.screen.height<n.value?"dialog":"menu"}const u=_.ref(r()),s=_.computed(()=>u.value==="menu"?{maxHeight:"99vh"}:{});_.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&&o.value.show(h)},hide(h){o.value.hide(h)},toggle(h){o.value.toggle(h)}}),Lt(m,"currentComponent",()=>({type:u.value,ref:o.value})),()=>{const h={ref:o,...s.value,...v,onShow:i,onHide:d};let c;return u.value==="dialog"?c=Vi:(c=Ur,Object.assign(h,{target:l.target,contextMenu:l.contextMenu,noParentEvent:!0,separateClosePopup:!0})),_.h(c,h,j.default)}}}),Hs={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},En={"#":{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()}},Zo=Object.keys(En);Zo.forEach(l=>{En[l].regex=new RegExp(En[l].pattern)});const oc=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+Zo.join("")+"])|(.)","g"),Ys=/[.*+?^${}()|[\]\\]/g,Ct="",ac={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function lc(l,j,t,v){let m,f,a,o,n,e;const r=_.ref(null),u=_.ref(i());function s(){return l.autogrow===!0||["textarea","text","search","url","tel","password"].includes(l.type)}_.watch(()=>l.type+l.autogrow,h),_.watch(()=>l.mask,N=>{if(N!==void 0)c(u.value,!0);else{const L=z(u.value);h(),l.modelValue!==L&&j("update:modelValue",L)}}),_.watch(()=>l.fillMask+l.reverseFillMask,()=>{r.value===!0&&c(u.value,!0)}),_.watch(()=>l.unmaskedValue,()=>{r.value===!0&&c(u.value)});function i(){if(h(),r.value===!0){const N=T(z(l.modelValue));return l.fillMask!==!1?D(N):N}return l.modelValue}function d(N){if(N<m.length)return m.slice(-N);let L="",U=m;const q=U.indexOf(Ct);if(q!==-1){for(let A=N-U.length;A>0;A--)L+=Ct;U=U.slice(0,q)+L+U.slice(q)}return U}function h(){if(r.value=l.mask!==void 0&&l.mask.length!==0&&s(),r.value===!1){o=void 0,m="",f="";return}const N=Hs[l.mask]===void 0?l.mask:Hs[l.mask],L=typeof l.fillMask=="string"&&l.fillMask.length!==0?l.fillMask.slice(0,1):"_",U=L.replace(Ys,"\\$&"),q=[],A=[],M=[];let k=l.reverseFillMask===!0,b="",y="";N.replace(oc,(B,I,W,H,K)=>{if(H!==void 0){const P=En[H];M.push(P),y=P.negate,k===!0&&(A.push("(?:"+y+"+)?("+P.pattern+"+)?(?:"+y+"+)?("+P.pattern+"+)?"),k=!1),A.push("(?:"+y+"+)?("+P.pattern+")?")}else if(W!==void 0)b="\\"+(W==="\\"?"":W),M.push(W),q.push("([^"+b+"]+)?"+b+"?");else{const P=I!==void 0?I:K;b=P==="\\"?"\\\\\\\\":P.replace(Ys,"\\\\$&"),M.push(P),q.push("([^"+b+"]+)?"+b+"?")}});const w=new RegExp("^"+q.join("")+"("+(b===""?".":"[^"+b+"]")+"+)?"+(b===""?"":"["+b+"]*")+"$"),x=A.length-1,E=A.map((B,I)=>I===0&&l.reverseFillMask===!0?new RegExp("^"+U+"*"+B):I===x?new RegExp("^"+B+"("+(y===""?".":y)+"+)?"+(l.reverseFillMask===!0?"$":U+"*")):new RegExp("^"+B));a=M,o=B=>{const I=w.exec(l.reverseFillMask===!0?B:B.slice(0,M.length+1));I!==null&&(B=I.slice(1).join(""));const W=[],H=E.length;for(let K=0,P=B;K<H;K++){const Y=E[K].exec(P);if(Y===null)break;P=P.slice(Y.shift().length),W.push(...Y)}return W.length!==0?W.join(""):B},m=M.map(B=>typeof B=="string"?B:Ct).join(""),f=m.split(Ct).join(L)}function c(N,L,U){const q=v.value,A=q.selectionEnd,M=q.value.length-A,k=z(N);L===!0&&h();const b=T(k),y=l.fillMask!==!1?D(b):b,w=u.value!==y;q.value!==y&&(q.value=y),w===!0&&(u.value=y),document.activeElement===q&&_.nextTick(()=>{if(y===f){const E=l.reverseFillMask===!0?f.length:0;q.setSelectionRange(E,E,"forward");return}if(U==="insertFromPaste"&&l.reverseFillMask!==!0){const E=q.selectionEnd;let B=A-1;for(let I=n;I<=B&&I<E;I++)m[I]!==Ct&&B++;p.right(q,B);return}if(["deleteContentBackward","deleteContentForward"].indexOf(U)!==-1){const E=l.reverseFillMask===!0?A===0?y.length>b.length?1:0:Math.max(0,y.length-(y===f?0:Math.min(b.length,M)+1))+1:A;q.setSelectionRange(E,E,"forward");return}if(l.reverseFillMask===!0)if(w===!0){const E=Math.max(0,y.length-(y===f?0:Math.min(b.length,M+1)));E===1&&A===1?q.setSelectionRange(E,E,"forward"):p.rightReverse(q,E)}else{const E=y.length-M;q.setSelectionRange(E,E,"backward")}else if(w===!0){const E=Math.max(0,m.indexOf(Ct),Math.min(b.length,A)-1);p.right(q,E)}else{const E=A-1;p.right(q,E)}});const x=l.unmaskedValue===!0?z(y):y;String(l.modelValue)!==x&&(l.modelValue!==null||x!=="")&&t(x,!0)}function g(N,L,U){const q=T(z(N.value));L=Math.max(0,m.indexOf(Ct),Math.min(q.length,L)),n=L,N.setSelectionRange(L,U,"forward")}const p={left(N,L){const U=m.slice(L-1).indexOf(Ct)===-1;let q=Math.max(0,L-1);for(;q>=0;q--)if(m[q]===Ct){L=q,U===!0&&L++;break}if(q<0&&m[L]!==void 0&&m[L]!==Ct)return p.right(N,0);L>=0&&N.setSelectionRange(L,L,"backward")},right(N,L){const U=N.value.length;let q=Math.min(U,L+1);for(;q<=U;q++)if(m[q]===Ct){L=q;break}else m[q-1]===Ct&&(L=q);if(q>U&&m[L-1]!==void 0&&m[L-1]!==Ct)return p.left(N,U);N.setSelectionRange(L,L,"forward")},leftReverse(N,L){const U=d(N.value.length);let q=Math.max(0,L-1);for(;q>=0;q--)if(U[q-1]===Ct){L=q;break}else if(U[q]===Ct&&(L=q,q===0))break;if(q<0&&U[L]!==void 0&&U[L]!==Ct)return p.rightReverse(N,0);L>=0&&N.setSelectionRange(L,L,"backward")},rightReverse(N,L){const U=N.value.length,q=d(U),A=q.slice(0,L+1).indexOf(Ct)===-1;let M=Math.min(U,L+1);for(;M<=U;M++)if(q[M-1]===Ct){L=M,L>0&&A===!0&&L--;break}if(M>U&&q[L-1]!==void 0&&q[L-1]!==Ct)return p.leftReverse(N,U);N.setSelectionRange(L,L,"forward")}};function S(N){j("click",N),e=void 0}function C(N){if(j("keydown",N),_i(N)===!0||N.altKey===!0)return;const L=v.value,U=L.selectionStart,q=L.selectionEnd;if(N.shiftKey||(e=void 0),N.keyCode===37||N.keyCode===39){N.shiftKey&&e===void 0&&(e=L.selectionDirection==="forward"?U:q);const A=p[(N.keyCode===39?"right":"left")+(l.reverseFillMask===!0?"Reverse":"")];if(N.preventDefault(),A(L,e===U?q:U),N.shiftKey){const M=L.selectionStart;L.setSelectionRange(Math.min(e,M),Math.max(e,M),"forward")}}else N.keyCode===8&&l.reverseFillMask!==!0&&U===q?(p.left(L,U),L.setSelectionRange(L.selectionStart,q,"backward")):N.keyCode===46&&l.reverseFillMask===!0&&U===q&&(p.rightReverse(L,q),L.setSelectionRange(U,L.selectionEnd,"forward"))}function T(N){if(N==null||N==="")return"";if(l.reverseFillMask===!0)return F(N);const L=a;let U=0,q="";for(let A=0;A<L.length;A++){const M=N[U],k=L[A];if(typeof k=="string")q+=k;else if(M!==void 0&&k.regex.test(M))q+=k.transform!==void 0?k.transform(M):M,U++;else return q}return q}function F(N){const L=a,U=m.indexOf(Ct);let q=N.length-1,A="";for(let M=L.length-1;M>=0&&q!==-1;M--){const k=L[M];let b=N[q];if(typeof k=="string")A=k+A;else if(b!==void 0&&k.regex.test(b))do A=(k.transform!==void 0?k.transform(b):b)+A,q--,b=N[q];while(U===M&&b!==void 0&&k.regex.test(b));else return A}return A}function z(N){return typeof N!="string"||o===void 0?typeof N=="number"?o(""+N):N:o(N)}function D(N){return f.length-N.length<=0?N:l.reverseFillMask===!0&&N.length!==0?f.slice(0,-N.length)+N:N+f.slice(N.length)}return{innerValue:u,hasMask:r,moveCursorForPaste:g,updateMaskValue:c,onMaskedKeydown:C,onMaskedClick:S}}function uc(l,j){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(f=>{m.items.add(f)}),{files:m.files}}catch{return{files:void 0}}}return _.computed(()=>{if(l.type==="file")return t()})}const zr=tt({name:"QInput",inheritAttrs:!1,props:{...In,...ac,...Tn,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:[...Li,"paste","change","keydown","click","animationend"],setup(l,{emit:j,attrs:t}){const{proxy:v}=_.getCurrentInstance(),{$q:m}=v,f={};let a=NaN,o,n,e=null,r;const u=_.ref(null),s=po(l),{innerValue:i,hasMask:d,moveCursorForPaste:h,updateMaskValue:c,onMaskedKeydown:g,onMaskedClick:p}=lc(l,j,b,u),S=uc(l),C=_.computed(()=>qr(i.value)),T=Do(M),F=qi({changeEvent:!0}),z=_.computed(()=>l.type==="textarea"||l.autogrow===!0),D=_.computed(()=>z.value===!0||["text","search","url","tel","password"].includes(l.type)),N=_.computed(()=>{const I={...F.splitAttrs.listeners.value,onInput:M,onPaste:A,onChange:w,onBlur:x,onFocus:Ft};return I.onCompositionstart=I.onCompositionupdate=I.onCompositionend=T,d.value===!0&&(I.onKeydown=g,I.onClick=p),l.autogrow===!0&&(I.onAnimationend=k),I}),L=_.computed(()=>{const I={tabindex:0,"data-autofocus":l.autofocus===!0||void 0,rows:l.type==="textarea"?6:void 0,"aria-label":l.label,name:s.value,...F.splitAttrs.attributes.value,id:F.targetUid.value,maxlength:l.maxlength,disabled:l.disable===!0,readonly:l.readonly===!0};return z.value===!1&&(I.type=l.type),l.autogrow===!0&&(I.rows=1),I});_.watch(()=>l.type,()=>{u.value&&(u.value.value=l.modelValue)}),_.watch(()=>l.modelValue,I=>{if(d.value===!0){if(n===!0&&(n=!1,String(I)===a))return;c(I)}else i.value!==I&&(i.value=I,l.type==="number"&&f.hasOwnProperty("value")===!0&&(o===!0?o=!1:delete f.value));l.autogrow===!0&&_.nextTick(y)}),_.watch(()=>l.autogrow,I=>{I===!0?_.nextTick(y):u.value!==null&&t.rows>0&&(u.value.style.height="auto")}),_.watch(()=>l.dense,()=>{l.autogrow===!0&&_.nextTick(y)});function U(){Vr(()=>{const I=document.activeElement;u.value!==null&&u.value!==I&&(I===null||I.id!==F.targetUid.value)&&u.value.focus({preventScroll:!0})})}function q(){u.value?.select()}function A(I){if(d.value===!0&&l.reverseFillMask!==!0){const W=I.target;h(W,W.selectionStart,W.selectionEnd)}j("paste",I)}function M(I){if(!I||!I.target)return;if(l.type==="file"){j("update:modelValue",I.target.files);return}const W=I.target.value;if(I.target.qComposing===!0){f.value=W;return}if(d.value===!0)c(W,!1,I.inputType);else if(b(W),D.value===!0&&I.target===document.activeElement){const{selectionStart:H,selectionEnd:K}=I.target;H!==void 0&&K!==void 0&&_.nextTick(()=>{I.target===document.activeElement&&W.indexOf(I.target.value)===0&&I.target.setSelectionRange(H,K)})}l.autogrow===!0&&y()}function k(I){j("animationend",I),y()}function b(I,W){r=()=>{e=null,l.type!=="number"&&f.hasOwnProperty("value")===!0&&delete f.value,l.modelValue!==I&&a!==I&&(a=I,W===!0&&(n=!0),j("update:modelValue",I),_.nextTick(()=>{a===I&&(a=NaN)})),r=void 0},l.type==="number"&&(o=!0,f.value=I),l.debounce!==void 0?(e!==null&&clearTimeout(e),f.value=I,e=setTimeout(r,l.debounce)):r()}function y(){requestAnimationFrame(()=>{const I=u.value;if(I!==null){const W=I.parentNode.style,{scrollTop:H}=I,{overflowY:K,maxHeight:P}=m.platform.is.firefox===!0?{}:window.getComputedStyle(I),Y=K!==void 0&&K!=="scroll";Y===!0&&(I.style.overflowY="hidden"),W.marginBottom=I.scrollHeight-1+"px",I.style.height="1px",I.style.height=I.scrollHeight+"px",Y===!0&&(I.style.overflowY=parseInt(P,10)<I.scrollHeight?"auto":"hidden"),W.marginBottom="",I.scrollTop=H}})}function w(I){T(I),e!==null&&(clearTimeout(e),e=null),r?.(),j("change",I.target.value)}function x(I){I!==void 0&&Ft(I),e!==null&&(clearTimeout(e),e=null),r?.(),o=!1,n=!1,delete f.value,l.type!=="file"&&setTimeout(()=>{u.value!==null&&(u.value.value=i.value!==void 0?i.value:"")})}function E(){return f.hasOwnProperty("value")===!0?f.value:i.value!==void 0?i.value:""}_.onBeforeUnmount(()=>{x()}),_.onMounted(()=>{l.autogrow===!0&&y()}),Object.assign(F,{innerValue:i,fieldClass:_.computed(()=>`q-${z.value===!0?"textarea":"input"}`+(l.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:_.computed(()=>l.type!=="file"&&typeof l.shadowText=="string"&&l.shadowText.length!==0),inputRef:u,emitValue:b,hasValue:C,floatingLabel:_.computed(()=>C.value===!0&&(l.type!=="number"||isNaN(i.value)===!1)||qr(l.displayValue)),getControl:()=>_.h(z.value===!0?"textarea":"input",{ref:u,class:["q-field__native q-placeholder",l.inputClass],style:l.inputStyle,...L.value,...N.value,...l.type!=="file"?{value:E()}:S.value}),getShadowControl:()=>_.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(z.value===!0?"":" text-no-wrap")},[_.h("span",{class:"invisible"},E()),_.h("span",l.shadowText)])});const B=zi(F);return Object.assign(v,{focus:U,select:q,getNativeElement:()=>u.value}),Lt(v,"nativeEl",()=>u.value),B}});function cc(l){return{entity:l.entity,dataCy:l.dataCy,defaultLabel:l.defaultLabel,routeName:l.routeName,shouldRender:l.customShouldRender||(({store:j})=>l.storeField?!!j[l.storeField]:!0),getLabel:l.getLabel||(l.labelField?({store:j})=>l.storeField&&j[l.storeField]?.[l.labelField]||l.defaultLabel:void 0),getColor:l.customGetColor||(({store:j})=>l.storeField&&j[l.storeField]?"primary":"dark"),getRouteParams:l.routeParamKey&&l.routeParamField?({store:j})=>({[l.routeParamKey]:l.storeField&&j[l.storeField]?.[l.routeParamField]}):void 0,clearActions:[...l.clearMethods?.map(j=>({store:t})=>t[j]?.())||[],...l.navActions?.map(j=>({navStore:t})=>j(t))||[]]}}const $o=/^\d{2}-\d{2}-\d{4}$/;function fc(l){const j=l.getTimezoneOffset()*6e4;return new Date(l.getTime()+j)}function jr(l){const j=/^\d{4}-\d{2}-\d{2}$/,t=/^\d{2}-\d{2}-\d{4}$/;if(j.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 Ji(l,j,t,v=[]){const m=typeof l=="string"?new Date(jr(l)):new Date(l);if(Number.isNaN(m.getTime()))return!1;if(j){const o=typeof j=="string"?new Date(jr(j)):new Date(j);if(m<o)return!1}if(t){const o=typeof t=="string"?new Date(jr(t)):new Date(t);if(m>o)return!1}return v.some(o=>{if(typeof o=="string"){const n=new Date(jr(o));return m.getFullYear()===n.getFullYear()&&m.getMonth()===n.getMonth()&&m.getDate()===n.getDate()}else{if(o instanceof Date)return m.getFullYear()===o.getFullYear()&&m.getMonth()===o.getMonth()&&m.getDate()===o.getDate();{const n=new Date(o.start_date),e=new Date(o.end_date);return m>=n&&m<=e}}})?!1:!v.some(o=>{if(typeof o=="object"&&!(o instanceof Date)&&o.start_date&&o.end_date){const n=new Date(o.start_date),e=new Date(o.end_date);if(n.getTime()===e.getTime())return m.getTime()===n.getTime()||m.getTime()===e.getTime()}return!1})}const sr={validateAndUpdate(l,j,t){return $o.test(j)?{...l,[t?"from":"to"]:j}:l},handlePickerUpdate(l){return l===null?{from:"",to:""}:typeof l=="string"?{from:l,to:l}:l},reset(){return{from:"",to:""}},handleInput(l,j){typeof l=="string"&&j(l)}},ea={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"},dc={class:"columns justify-end"},hc={class:"row items-center justify-end"},pc=_.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:"Field is required"},disabled:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},placeholder:{default:void 0},closeLabel:{default:"Close"}},emits:["update:date"],setup(l,{emit:j}){const t=l,v=j,m=_.useAttrs(),f=_.ref(t.date),a=_.ref(t.date),o=_.computed(()=>r=>{const u=r.replace(/\//g,"-");return Ji(u,t.minDate,t.maxDate,t.datesDisabled)}),n=r=>{f.value=r,a.value=r,v("update:date",r)},e=r=>{typeof r=="string"&&(f.value=r,a.value=r,v("update:date",r))};return _.watch(()=>t.date,r=>{r!==f.value&&(f.value=r,a.value=r)}),(r,u)=>(_.openBlock(),_.createElementBlock("div",dc,[_.createVNode(zr,_.mergeProps(_.unref(m),{class:"full-width","model-value":a.value,mask:"##-##-####",dense:"",label:r.label,"data-cy":"datePick",rules:r.required?[s=>!!s||r.requiredErrorMessage]:[],disable:r.disabled,required:r.required,outlined:r.outlined,placeholder:r.placeholder,"onUpdate:modelValue":e}),{append:_.withCtx(()=>[_.createVNode(St,{name:"event",class:"cursor-pointer","data-testid":"calendar-icon-picker"},{default:_.withCtx(()=>[_.createVNode(Jo,{cover:"","transition-show":"scale","transition-hide":"scale"},{default:_.withCtx(()=>[_.createVNode(Go,{mask:"DD-MM-YYYY","model-value":f.value,options:o.value,disable:r.disabled,"onUpdate:modelValue":n},{default:_.withCtx(()=>[_.createElementVNode("div",hc,[_.withDirectives(_.createVNode(bt,{label:r.closeLabel,color:"primary",flat:""},null,8,["label"]),[[Hi]])])]),_:1},8,["model-value","options","disable"])]),_:1})]),_:1})]),_:1},16,["model-value","label","rules","disable","required","outlined","placeholder"])]))}}),mc=Er(pc,[["__scopeId","data-v-b4c94b90"]]),gc={class:"row"},bc={class:"row no-wrap items-center"},vc={class:"row items-center justify-end"},yc={key:0,class:"row items-center text-warning text-caption"},wc={class:"row items-center justify-end q-ml-sm"},xc=_.defineComponent({__name:"DateRange",props:{from:{default:""},to:{default:""},labelStart:{default:"De"},labelEnd:{default:"à"},startDateHint:{default:""},resetLabel:{default:"Reset"},closeLabel:{default:"Close"},locale:{default:()=>ea},required:{type:Boolean,default:!1},requiredErrorMessage:{default:"Field is required"},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:{}},emits:["update:dateRange"],setup(l,{expose:j,emit:t}){const v=l,m=t,f=_.ref({from:v.from,to:v.to}),a=_.computed(()=>`from-date-${v.idCy}`),o=_.computed(()=>`to-date-${v.idCy}`),n=_.computed(()=>[...v.required?[d=>!!d||v.requiredErrorMessage]:[],...v.rules]),e=_.computed(()=>d=>{const h=d.replaceAll("/","-");return Ji(h,v.minDate,v.maxDate,v.datesDisabled)}),r=d=>{sr.handleInput(d,h=>{f.value=sr.validateAndUpdate(f.value,h,!0)})},u=d=>{sr.handleInput(d,h=>{f.value=sr.validateAndUpdate(f.value,h,!1)})},s=d=>{f.value=sr.handlePickerUpdate(d)},i=()=>{f.value=sr.reset()};return _.watch(f,d=>{m("update:dateRange",{...d})},{deep:!0}),_.watch(()=>v.from,d=>{d!==f.value.from&&(f.value.from=d)}),_.watch(()=>v.to,d=>{d!==f.value.to&&(f.value.to=d)}),j({resetDate:i,setDateRange:d=>{f.value={from:d.from,to:d.to}}}),(d,h)=>(_.openBlock(),_.createElementBlock("div",gc,[_.createElementVNode("div",bc,[_.createVNode(zr,_.mergeProps(d.$attrs,{"data-cy":a.value,"model-value":f.value.from,mask:"##-##-####",label:d.labelStart,rules:n.value,disable:d.disabled,required:d.required,"hide-bottom-space":"","onUpdate:modelValue":r}),null,16,["data-cy","model-value","label","rules","disable","required"]),_.createVNode(zr,_.mergeProps(d.$attrs,{"model-value":f.value.to,mask:"##-##-####",label:d.labelEnd,"hide-bottom-space":"",style:{"margin-left":"10px"},"data-cy":o.value,rules:n.value,disable:d.disabled,required:d.required,"onUpdate:modelValue":u}),null,16,["model-value","label","data-cy","rules","disable","required"]),_.createVNode(St,{name:"event",size:"30px",class:"q-ml-sm q-mt-sm cursor-pointer",style:{opacity:"0.55"},"data-cy":"calendar-icon-range"},{default:_.withCtx(()=>[_.createVNode(Jo,{cover:"","transition-show":"scale","transition-hide":"scale"},{default:_.withCtx(()=>[_.createVNode(Go,{modelValue:f.value,"onUpdate:modelValue":[h[0]||(h[0]=c=>f.value=c),s],mask:"DD-MM-YYYY","today-btn":"",range:"","data-cy":"date-picker-range",locale:d.locale,options:e.value,events:d.highlightEvents,"event-color":"warning",disable:d.disabled},{default:_.withCtx(()=>[_.createElementVNode("div",vc,[_.withDirectives(_.createVNode(bt,{label:d.closeLabel,color:"primary",flat:""},null,8,["label"]),[[Hi]])])]),_:1},8,["modelValue","locale","options","events","disable"])]),_:1})]),_:1})]),d.startDateHint?(_.openBlock(),_.createElementBlock("p",yc,_.toDisplayString(d.startDateHint),1)):_.createCommentVNode("",!0),_.createElementVNode("div",wc,[_.createVNode(bt,{class:"q-pa-sm",outlined:"",dense:"","data-cy":"reset-date",label:d.resetLabel,onClick:i},null,8,["label"])])]))}}),bn=tt({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(l,{slots:j,emit:t}){const v=_.getCurrentInstance(),{proxy:{$q:m}}=v,f=a=>{t("click",a)};return()=>{if(l.props===void 0)return _.h("th",{class:l.autoWidth===!0?"q-table--col-auto-width":"",onClick:f},mt(j.default));let a,o;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";o=vi(j.default,[]),o[r](_.h(St,{class:a.__iconClass,name:m.iconSet.table.arrowUp}))}else o=mt(j.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),f(r)}};return _.h("th",e,o)}}}),on=tt({name:"QTr",props:{props:Object,noHover:Boolean},setup(l,{slots:j}){const t=_.computed(()=>"q-tr"+(l.props===void 0||l.props.header===!0?"":" "+l.props.__trClass)+(l.noHover===!0?" q-tr--no-hover":""));return()=>_.h("tr",{style:l.props?.__trStyle,class:t.value},mt(j.default))}}),Sc=["text","rect","circle","QBtn","QBadge","QChip","QToolbar","QCheckbox","QRadio","QToggle","QSlider","QRange","QInput","QAvatar"],kc=["wave","pulse","pulse-x","pulse-y","fade","blink","none"],Qs=tt({name:"QSkeleton",props:{...It,tag:{type:String,default:"div"},type:{type:String,validator:l=>Sc.includes(l),default:"rect"},animation:{type:String,validator:l=>kc.includes(l),default:"wave"},animationSpeed:{type:[String,Number],default:1500},square:Boolean,bordered:Boolean,size:String,width:String,height:String},setup(l,{slots:j}){const t=_.getCurrentInstance(),v=Ot(l,t.proxy.$q),m=_.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]}}),f=_.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()=>_.h(l.tag,{class:f.value,style:m.value},mt(j.default))}}),Zn=tt({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(l,{slots:j}){const t=_.getCurrentInstance(),v=_.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 _.h("td",{class:v.value},mt(j.default));const m=t.vnode.key,f=(l.props.colsMap!==void 0?l.props.colsMap[m]:null)||l.props.col;if(f===void 0)return;const{row:a}=l.props;return _.h("td",{class:v.value+f.__tdClass(a),style:f.__tdStyle(a)},mt(j.default))}}}),Ks=tt({name:"QTooltip",inheritAttrs:!1,props:{...wo,...Bi,...Fr,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...Fr.transitionShow,default:"jump-down"},transitionHide:{...Fr.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:kn},self:{type:String,default:"top middle",validator:kn},offset:{type:Array,default:()=>[14,14],validator:Ro},scrollTarget:Rn,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...Ii],setup(l,{slots:j,emit:t,attrs:v}){let m,f;const a=_.getCurrentInstance(),{proxy:{$q:o}}=a,n=_.ref(null),e=_.ref(!1),r=_.computed(()=>_n(l.anchor,o.lang.rtl)),u=_.computed(()=>_n(l.self,o.lang.rtl)),s=_.computed(()=>l.persistent!==!0),{registerTick:i,removeTick:d}=Pi(),{registerTimeout:h}=Di(),{transitionProps:c,transitionStyle:g}=Fi(l),{localScrollTarget:p,changeScrollEvent:S,unconfigureScrollTarget:C}=So(l,E),{anchorEl:T,canShow:F,anchorEvents:z}=Ri({showing:e,configureAnchorEl:x}),{show:D,hide:N}=Oi({showing:e,canShow:F,handleShow:A,handleHide:M,hideOnRouteChange:s,processOnMount:!0});Object.assign(z,{delayShow:y,delayHide:w});const{showPortal:L,hidePortal:U,renderPortal:q}=ji(a,n,I,"tooltip");if(o.platform.is.mobile===!0){const W={anchorEl:T,innerRef:n,onClickOutside(K){return N(K),K.target.classList.contains("q-dialog__backdrop")&&xt(K),!0}},H=_.computed(()=>l.modelValue===null&&l.persistent!==!0&&e.value===!0);_.watch(H,K=>{(K===!0?To:Sn)(W)}),_.onBeforeUnmount(()=>{Sn(W)})}function A(W){L(),i(()=>{f=new MutationObserver(()=>b()),f.observe(n.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),b(),E()}),m===void 0&&(m=_.watch(()=>o.screen.width+"|"+o.screen.height+"|"+l.self+"|"+l.anchor+"|"+o.lang.rtl,b)),h(()=>{L(!0),t("show",W)},l.transitionDuration)}function M(W){d(),U(),k(),h(()=>{U(!0),t("hide",W)},l.transitionDuration)}function k(){f!==void 0&&(f.disconnect(),f=void 0),m!==void 0&&(m(),m=void 0),C(),ar(z,"tooltipTemp")}function b(){Ni({targetEl:n.value,offset:l.offset,anchorEl:T.value,anchorOrigin:r.value,selfOrigin:u.value,maxHeight:l.maxHeight,maxWidth:l.maxWidth})}function y(W){if(o.platform.is.mobile===!0){vn(),document.body.classList.add("non-selectable");const H=T.value,K=["touchmove","touchcancel","touchend","click"].map(P=>[H,P,"delayHide","passiveCapture"]);Ht(z,"tooltipTemp",K)}h(()=>{D(W)},l.delay)}function w(W){o.platform.is.mobile===!0&&(ar(z,"tooltipTemp"),vn(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),h(()=>{N(W)},l.hideDelay)}function x(){if(l.noParentEvent===!0||T.value===null)return;const W=o.platform.is.mobile===!0?[[T.value,"touchstart","delayShow","passive"]]:[[T.value,"mouseenter","delayShow","passive"],[T.value,"mouseleave","delayHide","passive"]];Ht(z,"anchor",W)}function E(){if(T.value!==null||l.scrollTarget!==void 0){p.value=Bn(T.value,l.scrollTarget);const W=l.noParentEvent===!0?b:N;S(p.value,W)}}function B(){return e.value===!0?_.h("div",{...v,ref:n,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",v.class],style:[v.style,g.value],role:"tooltip"},mt(j.default)):null}function I(){return _.h(_.Transition,c.value,B)}return _.onBeforeUnmount(k),Object.assign(a.proxy,{updatePosition:b}),q}}),_c=["horizontal","vertical","cell","none"],Cc=tt({name:"QMarkupTable",props:{...It,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:l=>_c.includes(l)}},setup(l,{slots:j}){const t=_.getCurrentInstance(),v=Ot(l,t.proxy.$q),m=_.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()=>_.h("div",{class:m.value},[_.h("table",{class:"q-table"},mt(j.default))])}});function ta(l,j){return _.h("div",l,[_.h("table",{class:"q-table"},j)])}const Ac={list:Wi,table:Cc},Ec=["list","table","__qtable"],Mc=tt({name:"QVirtualScroll",props:{...ci,type:{type:String,default:"list",validator:l=>Ec.includes(l)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:Rn},setup(l,{slots:j,attrs:t}){let v;const m=_.ref(null),f=_.computed(()=>l.itemsSize>=0&&l.itemsFn!==void 0?parseInt(l.itemsSize,10):Array.isArray(l.items)?l.items.length:0),{virtualScrollSliceRange:a,localResetVirtualScroll:o,padVirtualScroll:n,onVirtualScrollEvt:e}=Po({virtualScrollLength:f,getVirtualScrollTarget:d,getVirtualScrollEl:i}),r=_.computed(()=>{if(f.value===0)return[];const p=(S,C)=>({index:a.value.from+C,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=_.computed(()=>"q-virtual-scroll q-virtual-scroll"+(l.virtualScrollHorizontal===!0?"--horizontal":"--vertical")+(l.scrollTarget!==void 0?"":" scroll")),s=_.computed(()=>l.scrollTarget!==void 0?{}:{tabindex:0});_.watch(f,()=>{o()}),_.watch(()=>l.scrollTarget,()=>{c(),h()});function i(){return m.value.$el||m.value}function d(){return v}function h(){v=Bn(i(),l.scrollTarget),v.addEventListener("scroll",e,_t.passive)}function c(){v!==void 0&&(v.removeEventListener("scroll",e,_t.passive),v=void 0)}function g(){let p=n(l.type==="list"?"div":"tbody",r.value.map(j.default));return j.before!==void 0&&(p=j.before().concat(p)),Dt(j.after,p)}return _.onBeforeMount(()=>{o()}),_.onMounted(()=>{h()}),_.onActivated(()=>{h()}),_.onDeactivated(()=>{c()}),_.onBeforeUnmount(()=>{c()}),()=>{if(j.default===void 0){console.error("QVirtualScroll: default scoped slot is required for rendering");return}return l.type==="__qtable"?ta({ref:m,class:"q-table__middle "+u.value},g()):_.h(Ac[l.type],{...t,ref:m,class:[t.class,u.value],...s.value},g)}}}),Tc={xs:2,sm:4,md:6,lg:10,xl:14};function Xs(l,j,t){return{transform:j===!0?`translateX(${t.lang.rtl===!0?"-":""}100%) scale3d(${-l},1,1)`:`scale3d(${l},1,1)`}}const Rc=tt({name:"QLinearProgress",props:{...It,...Cr,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:j}){const{proxy:t}=_.getCurrentInstance(),v=Ot(l,t.$q),m=Ar(l,Tc),f=_.computed(()=>l.indeterminate===!0||l.query===!0),a=_.computed(()=>l.reverse!==l.query),o=_.computed(()=>({...m.value!==null?m.value:{},"--q-linear-progress-speed":`${l.animationSpeed}ms`})),n=_.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=_.computed(()=>Xs(l.buffer!==void 0?l.buffer:1,a.value,t.$q)),r=_.computed(()=>`with${l.instantFeedback===!0?"out":""}-transition`),u=_.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}`:"")),s=_.computed(()=>Xs(f.value===!0?1:l.value,a.value,t.$q)),i=_.computed(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${r.value} q-linear-progress__model--${f.value===!0?"in":""}determinate`),d=_.computed(()=>({width:`${l.value*100}%`})),h=_.computed(()=>`q-linear-progress__stripe absolute-${l.reverse===!0?"right":"left"} q-linear-progress__stripe--${r.value}`);return()=>{const c=[_.h("div",{class:u.value,style:e.value}),_.h("div",{class:i.value,style:s.value})];return l.stripe===!0&&f.value===!1&&c.push(_.h("div",{class:h.value,style:d.value})),_.h("div",{class:n.value,style:o.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":l.indeterminate===!0?void 0:l.value},Dt(j.default,c))}}});let Ir=0;const Bc={fullscreen:Boolean,noRouteFullscreenExit:Boolean},Ic=["update:fullscreen","fullscreen"];function Oc(){const l=_.getCurrentInstance(),{props:j,emit:t,proxy:v}=l;let m,f;const a=_.ref(!1);yi(l)===!0&&_.watch(()=>v.$route.fullPath,()=>{j.noRouteFullscreenExit!==!0&&e()}),_.watch(()=>j.fullscreen,r=>{a.value!==r&&o()}),_.watch(a,r=>{t("update:fullscreen",r),t("fullscreen",r)});function o(){a.value===!0?e():n()}function n(){a.value!==!0&&(a.value=!0,f=v.$el.parentNode,f.replaceChild(m,v.$el),document.body.appendChild(v.$el),Ir++,Ir===1&&document.body.classList.add("q-body--fullscreen-mixin"))}function e(){a.value===!0&&(f.replaceChild(v.$el,m),a.value=!1,Ir=Math.max(0,Ir-1),Ir===0&&(document.body.classList.remove("q-body--fullscreen-mixin"),v.$el.scrollIntoView!==void 0&&setTimeout(()=>{v.$el.scrollIntoView()})))}return _.onBeforeMount(()=>{m=document.createElement("span")}),_.onMounted(()=>{j.fullscreen===!0&&n()}),_.onBeforeUnmount(e),Object.assign(v,{toggleFullscreen:o,setFullscreen:n,exitFullscreen:e}),{inFullscreen:a,toggleFullscreen:o}}function jc(l,j){return new Date(l)-new Date(j)}const Fc={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:l=>l==="ad"||l==="da",default:"ad"}};function Pc(l,j,t,v){const m=_.computed(()=>{const{sortBy:o}=j.value;return o&&t.value.find(n=>n.name===o)||null}),f=_.computed(()=>l.sortMethod!==void 0?l.sortMethod:(o,n,e)=>{const r=t.value.find(i=>i.name===n);if(r===void 0||r.field===void 0)return o;const u=e===!0?-1:1,s=typeof r.field=="function"?i=>r.field(i):i=>i[r.field];return o.sort((i,d)=>{let h=s(i),c=s(d);return r.rawSort!==void 0?r.rawSort(h,c,i,d)*u:h==null?-1*u:c==null?1*u:r.sort!==void 0?r.sort(h,c,i,d)*u:fi(h)===!0&&fi(c)===!0?(h-c)*u:An(h)===!0&&An(c)===!0?jc(h,c)*u:typeof h=="boolean"&&typeof c=="boolean"?(h-c)*u:([h,c]=[h,c].map(g=>(g+"").toLocaleString().toLowerCase()),h<c?-1*u:h===c?0:u)})});function a(o){let n=l.columnSortOrder;if(No(o)===!0)o.sortOrder&&(n=o.sortOrder),o=o.name;else{const u=t.value.find(s=>s.name===o);u?.sortOrder&&(n=u.sortOrder)}let{sortBy:e,descending:r}=j.value;e!==o?(e=o,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:f,sort:a}}const Dc={filter:[String,Object],filterMethod:Function};function Nc(l,j){const t=_.computed(()=>l.filterMethod!==void 0?l.filterMethod:(v,m,f,a)=>{const o=m?m.toLowerCase():"";return v.filter(n=>f.some(e=>{const r=a(e,n)+"";return(r==="undefined"||r==="null"?"":r.toLowerCase()).indexOf(o)!==-1}))});return _.watch(()=>l.filter,()=>{_.nextTick(()=>{j({page:1},!0)})},{deep:!0}),{computedFilterMethod:t}}function Lc(l,j){for(const t in j)if(j[t]!==l[t])return!1;return!0}function Gs(l){return l.page<1&&(l.page=1),l.rowsPerPage!==void 0&&l.rowsPerPage<1&&(l.rowsPerPage=0),l}const qc={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function zc(l,j){const{props:t,emit:v}=l,m=_.ref(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:t.rowsPerPageOptions.length!==0?t.rowsPerPageOptions[0]:5},t.pagination)),f=_.computed(()=>{const r=t["onUpdate:pagination"]!==void 0?{...m.value,...t.pagination}:m.value;return Gs(r)}),a=_.computed(()=>f.value.rowsNumber!==void 0);function o(r){n({pagination:r,filter:t.filter})}function n(r={}){_.nextTick(()=>{v("request",{pagination:r.pagination||f.value,filter:r.filter||t.filter,getCellValue:j})})}function e(r,u){const s=Gs({...f.value,...r});if(Lc(f.value,s)===!0){a.value===!0&&u===!0&&o(s);return}if(a.value===!0){o(s);return}t.pagination!==void 0&&t["onUpdate:pagination"]!==void 0?v("update:pagination",s):m.value=s}return{innerPagination:m,computedPagination:f,isServerSide:a,requestServerInteraction:n,setPagination:e}}function Vc(l,j,t,v,m,f){const{props:a,emit:o,proxy:{$q:n}}=l,e=_.computed(()=>v.value===!0?t.value.rowsNumber||0:f.value),r=_.computed(()=>{const{page:C,rowsPerPage:T}=t.value;return(C-1)*T}),u=_.computed(()=>{const{page:C,rowsPerPage:T}=t.value;return C*T}),s=_.computed(()=>t.value.page===1),i=_.computed(()=>t.value.rowsPerPage===0?1:Math.max(1,Math.ceil(e.value/t.value.rowsPerPage))),d=_.computed(()=>u.value===0?!0:t.value.page>=i.value),h=_.computed(()=>(a.rowsPerPageOptions.includes(j.value.rowsPerPage)?a.rowsPerPageOptions:[j.value.rowsPerPage].concat(a.rowsPerPageOptions)).map(T=>({label:T===0?n.lang.table.allRows:""+T,value:T})));_.watch(i,(C,T)=>{if(C===T)return;const F=t.value.page;C&&!F?m({page:1}):C<F&&m({page:C})});function c(){m({page:1})}function g(){const{page:C}=t.value;C>1&&m({page:C-1})}function p(){const{page:C,rowsPerPage:T}=t.value;u.value>0&&C*T<e.value&&m({page:C+1})}function S(){m({page:i.value})}return a["onUpdate:pagination"]!==void 0&&o("update:pagination",{...t.value}),{firstRowIndex:r,lastRowIndex:u,isFirstPage:s,isLastPage:d,pagesNumber:i,computedRowsPerPageOptions:h,computedRowsNumber:e,firstPage:c,prevPage:g,nextPage:p,lastPage:S}}const Uc={selection:{type:String,default:"none",validator:l=>["single","multiple","none"].includes(l)},selected:{type:Array,default:()=>[]}},Wc=["update:selected","selection"];function Hc(l,j,t,v){const m=_.computed(()=>{const d={};return l.selected.map(v.value).forEach(h=>{d[h]=!0}),d}),f=_.computed(()=>l.selection!=="none"),a=_.computed(()=>l.selection==="single"),o=_.computed(()=>l.selection==="multiple"),n=_.computed(()=>t.value.length!==0&&t.value.every(d=>m.value[v.value(d)]===!0)),e=_.computed(()=>n.value!==!0&&t.value.some(d=>m.value[v.value(d)]===!0)),r=_.computed(()=>l.selected.length);function u(d){return m.value[d]===!0}function s(){j("update:selected",[])}function i(d,h,c,g){j("selection",{rows:h,added:c,keys:d,evt:g});const p=a.value===!0?c===!0?h:[]:c===!0?l.selected.concat(h):l.selected.filter(S=>d.includes(v.value(S))===!1);j("update:selected",p)}return{hasSelectionMode:f,singleSelection:a,multipleSelection:o,allRowsSelected:n,someRowsSelected:e,rowsSelectedNumber:r,isRowSelected:u,clearSelection:s,updateSelection:i}}function Js(l){return Array.isArray(l)?l.slice():[]}const Yc={expanded:Array},Qc=["update:expanded"];function Kc(l,j){const t=_.ref(Js(l.expanded));_.watch(()=>l.expanded,a=>{t.value=Js(a)});function v(a){return t.value.includes(a)}function m(a){l.expanded!==void 0?j("update:expanded",a):t.value=a}function f(a,o){const n=t.value.slice(),e=n.indexOf(a);o===!0?e===-1&&(n.push(a),m(n)):e!==-1&&(n.splice(e,1),m(n))}return{isRowExpanded:v,setExpanded:m,updateExpanded:f}}const Xc={visibleColumns:Array};function Gc(l,j,t){const v=_.computed(()=>{if(l.columns!==void 0)return l.columns;const o=l.rows[0];return o!==void 0?Object.keys(o).map(n=>({name:n,label:n.toUpperCase(),field:n,align:fi(o[n])?"right":"left",sortable:!0})):[]}),m=_.computed(()=>{const{sortBy:o,descending:n}=j.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",s=`text-${u}`;return{...r,align:u,__iconClass:`q-table__sort-icon q-table__sort-icon--${u}`,__thClass:s+(r.headerClasses!==void 0?" "+r.headerClasses:"")+(r.sortable===!0?" sortable":"")+(r.name===o?` 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"?()=>s+" "+r.classes:i=>s+" "+r.classes(i):()=>s}})}),f=_.computed(()=>{const o={};return m.value.forEach(n=>{o[n.name]=n}),o}),a=_.computed(()=>l.tableColspan!==void 0?l.tableColspan:m.value.length+(t.value===!0?1:0));return{colList:v,computedCols:m,computedColsMap:f,computedColspan:a}}const an="q-table__bottom row items-center",ra={};Fo.forEach(l=>{ra[l]={}});const Jc=tt({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:{},...ra,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,...It,...Bc,...Xc,...Dc,...qc,...Yc,...Uc,...Fc},emits:["request","virtualScroll",...Ic,...Qc,...Wc],setup(l,{slots:j,emit:t}){const v=_.getCurrentInstance(),{proxy:{$q:m}}=v,f=Ot(l,m),{inFullscreen:a,toggleFullscreen:o}=Oc(),n=_.computed(()=>typeof l.rowKey=="function"?l.rowKey:he=>he[l.rowKey]),e=_.ref(null),r=_.ref(null),u=_.computed(()=>l.grid!==!0&&l.virtualScroll===!0),s=_.computed(()=>" q-table__card"+(f.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=_.computed(()=>`q-table__container q-table--${l.separator}-separator column no-wrap`+(l.grid===!0?" q-table--grid":s.value)+(f.value===!0?" q-table--dark":"")+(l.dense===!0?" q-table--dense":"")+(l.wrapCells===!1?" q-table--no-wrap":"")+(a.value===!0?" fullscreen scroll":"")),d=_.computed(()=>i.value+(l.loading===!0?" q-table--loading":""));_.watch(()=>l.tableStyle+l.tableClass+l.tableHeaderStyle+l.tableHeaderClass+i.value,()=>{u.value===!0&&r.value?.reset()});const{innerPagination:h,computedPagination:c,isServerSide:g,requestServerInteraction:p,setPagination:S}=zc(v,Ne),{computedFilterMethod:C}=Nc(l,S),{isRowExpanded:T,setExpanded:F,updateExpanded:z}=Kc(l,t),D=_.computed(()=>{let he=l.rows;if(g.value===!0||he.length===0)return he;const{sortBy:we,descending:Te}=c.value;return l.filter&&(he=C.value(he,l.filter,B.value,Ne)),H.value!==null&&(he=K.value(l.rows===he?he.slice():he,we,Te)),he}),N=_.computed(()=>D.value.length),L=_.computed(()=>{let he=D.value;if(g.value===!0)return he;const{rowsPerPage:we}=c.value;return we!==0&&(Y.value===0&&l.rows!==he?he.length>O.value&&(he=he.slice(0,O.value)):he=he.slice(Y.value,O.value)),he}),{hasSelectionMode:U,singleSelection:q,multipleSelection:A,allRowsSelected:M,someRowsSelected:k,rowsSelectedNumber:b,isRowSelected:y,clearSelection:w,updateSelection:x}=Hc(l,t,L,n),{colList:E,computedCols:B,computedColsMap:I,computedColspan:W}=Gc(l,c,U),{columnToSort:H,computedSortMethod:K,sort:P}=Pc(l,c,E,S),{firstRowIndex:Y,lastRowIndex:O,isFirstPage:R,isLastPage:V,pagesNumber:Q,computedRowsPerPageOptions:$,computedRowsNumber:G,firstPage:ee,prevPage:ae,nextPage:se,lastPage:J}=Vc(v,h,c,g,S,N),ne=_.computed(()=>L.value.length===0),ie=_.computed(()=>{const he={};return Fo.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 ot();const he=l.hideHeader!==!0?Pe:null;if(u.value===!0){const Te=j["top-row"],Oe=j["bottom-row"],Ce={default:Qe=>xe(Qe.item,j.body,Qe.index)};if(Te!==void 0){const Qe=_.h("tbody",Te({cols:B.value}));Ce.before=he===null?()=>Qe:()=>[he()].concat(Qe)}else he!==null&&(Ce.before=he);return Oe!==void 0&&(Ce.after=()=>_.h("tbody",Oe({cols:B.value}))),_.h(Mc,{ref:r,class:l.tableClass,style:l.tableStyle,...ie.value,scrollTarget:l.virtualScrollTarget,items:L.value,type:"__qtable",tableColspan:W.value,onVirtualScroll:me},Ce)}const we=[Ie()];return he!==null&&we.unshift(he()),ta({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"),Ce=Te.offsetTop-l.virtualScrollStickySizeStart,Qe=Ce<Oe.scrollTop?"decrease":"increase";Oe.scrollTop=Ce,t("virtualScroll",{index:he,from:0,to:h.value.rowsPerPage-1,direction:Qe})}}function me(he){t("virtualScroll",he)}function be(){return[_.h(Rc,{class:"q-table__linear-progress",color:l.color,dark:f.value,indeterminate:!0,trackColor:"transparent"})]}function xe(he,we,Te){const Oe=n.value(he),Ce=y(Oe);if(we!==void 0){const X={key:Oe,row:he,pageIndex:Te,__trClass:Ce?"selected":""};if(l.tableRowStyleFn!==void 0&&(X.__trStyle=l.tableRowStyleFn(he)),l.tableRowClassFn!==void 0){const re=l.tableRowClassFn(he);re&&(X.__trClass=`${re} ${X.__trClass}`)}return we(Ee(X))}const Qe=j["body-cell"],Ke=B.value.map(X=>{const re=j[`body-cell-${X.name}`],le=re!==void 0?re:Qe;return le!==void 0?le(Me({key:Oe,row:he,pageIndex:Te,col:X})):_.h("td",{class:X.__tdClass(he),style:X.__tdStyle(he)},Ne(X,he))});if(U.value===!0){const X=j["body-selection"],re=X!==void 0?X(We({key:Oe,row:he,pageIndex:Te})):[_.h(dn,{modelValue:Ce,color:l.color,dark:f.value,dense:l.dense,"onUpdate:modelValue":(le,pe)=>{x([Oe],[he],le,pe)}})];Ke.unshift(_.h("td",{class:"q-table--col-auto-width"},re))}const te={key:Oe,class:{selected:Ce}};if(l.onRowClick!==void 0&&(te.class["cursor-pointer"]=!0,te.onClick=X=>{t("rowClick",X,he,Te)}),l.onRowDblclick!==void 0&&(te.class["cursor-pointer"]=!0,te.onDblclick=X=>{t("rowDblclick",X,he,Te)}),l.onRowContextmenu!==void 0&&(te.class["cursor-pointer"]=!0,te.onContextmenu=X=>{t("rowContextmenu",X,he,Te)}),l.tableRowStyleFn!==void 0&&(te.style=l.tableRowStyleFn(he)),l.tableRowClassFn!==void 0){const X=l.tableRowClassFn(he);X&&(te.class[X]=!0)}return _.h("tr",te,Ke)}function Ie(){const he=j.body,we=j["top-row"],Te=j["bottom-row"];let Oe=L.value.map((Ce,Qe)=>xe(Ce,he,Qe));return we!==void 0&&(Oe=we({cols:B.value}).concat(Oe)),Te!==void 0&&(Oe=Oe.concat(Te({cols:B.value}))),_.h("tbody",Oe)}function Ee(he){return qe(he),he.cols=he.cols.map(we=>Lt({...we},"value",()=>Ne(we,he.row))),he}function Me(he){return qe(he),Lt(he,"value",()=>Ne(he.col,he.row)),he}function We(he){return qe(he),he}function qe(he){Object.assign(he,{cols:B.value,colsMap:I.value,sort:P,rowIndex:Y.value+he.pageIndex,color:l.color,dark:f.value,dense:l.dense}),U.value===!0&&Lt(he,"selected",()=>y(he.key),(we,Te)=>{x([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 ze=_.computed(()=>({pagination:c.value,pagesNumber:Q.value,isFirstPage:R.value,isLastPage:V.value,firstPage:ee,prevPage:ae,nextPage:se,lastPage:J,inFullscreen:a.value,toggleFullscreen:o}));function je(){const he=j.top,we=j["top-left"],Te=j["top-right"],Oe=j["top-selection"],Ce=U.value===!0&&Oe!==void 0&&b.value>0,Qe="q-table__top relative-position row items-center";if(he!==void 0)return _.h("div",{class:Qe},[he(ze.value)]);let Ke;if(Ce===!0?Ke=Oe(ze.value).slice():(Ke=[],we!==void 0?Ke.push(_.h("div",{class:"q-table__control"},[we(ze.value)])):l.title&&Ke.push(_.h("div",{class:"q-table__control"},[_.h("div",{class:["q-table__title",l.titleClass]},l.title)]))),Te!==void 0&&(Ke.push(_.h("div",{class:"q-table__separator col"})),Ke.push(_.h("div",{class:"q-table__control"},[Te(ze.value)]))),Ke.length!==0)return _.h("div",{class:Qe},Ke)}const ke=_.computed(()=>k.value===!0?null:M.value);function Pe(){const he=Ue();return l.loading===!0&&j.loading===void 0&&he.push(_.h("tr",{class:"q-table__progress"},[_.h("th",{class:"relative-position",colspan:W.value},be())])),_.h("thead",he)}function Ue(){const he=j.header,we=j["header-cell"];if(he!==void 0)return he(Le({header:!0})).slice();const Te=B.value.map(Oe=>{const Ce=j[`header-cell-${Oe.name}`],Qe=Ce!==void 0?Ce:we,Ke=Le({col:Oe});return Qe!==void 0?Qe(Ke):_.h(bn,{key:Oe.name,props:Ke},()=>Oe.label)});if(q.value===!0&&l.grid!==!0)Te.unshift(_.h("th",{class:"q-table--col-auto-width"}," "));else if(A.value===!0){const Oe=j["header-selection"],Ce=Oe!==void 0?Oe(Le({})):[_.h(dn,{color:l.color,modelValue:ke.value,dark:f.value,dense:l.dense,"onUpdate:modelValue":Ge})];Te.unshift(_.h("th",{class:"q-table--col-auto-width"},Ce))}return[_.h("tr",{class:l.tableHeaderClass,style:l.tableHeaderStyle},Te)]}function Le(he){return Object.assign(he,{cols:B.value,sort:P,colsMap:I.value,color:l.color,dark:f.value,dense:l.dense}),A.value===!0&&Lt(he,"selected",()=>ke.value,Ge),he}function Ge(he){k.value===!0&&(he=!1),x(L.value.map(n.value),L.value,he)}const $e=_.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(ne.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=j["no-data"],Ce=Oe!==void 0?[Oe({message:Te,icon:m.iconSet.table.warning,filter:l.filter})]:[_.h(St,{class:"q-table__bottom-nodata-icon",name:m.iconSet.table.warning}),Te];return _.h("div",{class:an+" q-table__bottom--nodata"},Ce)}const he=j.bottom;if(he!==void 0)return _.h("div",{class:an},[he(ze.value)]);const we=l.hideSelectedBanner!==!0&&U.value===!0&&b.value>0?[_.h("div",{class:"q-table__control"},[_.h("div",[(l.selectedRowsLabel||m.lang.table.selectedRecords)(b.value)])])]:[];if(l.hidePagination!==!0)return _.h("div",{class:an+" justify-end"},et(we));if(we.length!==0)return _.h("div",{class:an},we)}function nt(he){S({page:1,rowsPerPage:he.value})}function et(he){let we;const{rowsPerPage:Te}=c.value,Oe=l.paginationLabel||m.lang.table.pagination,Ce=j.pagination,Qe=l.rowsPerPageOptions.length>1;if(he.push(_.h("div",{class:"q-table__separator col"})),Qe===!0&&he.push(_.h("div",{class:"q-table__control"},[_.h("span",{class:"q-table__bottom-item"},[l.rowsPerPageLabel||m.lang.table.recordsPerPage]),_.h(Ui,{class:"q-table__select inline q-table__bottom-item",color:l.color,modelValue:Te,options:$.value,displayValue:Te===0?m.lang.table.allRows:Te,dark:f.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":nt})])),Ce!==void 0)we=Ce(ze.value);else if(we=[_.h("span",Te!==0?{class:"q-table__bottom-item"}:{},[Te?Oe(Y.value+1,Math.min(O.value,G.value),G.value):Oe(1,N.value,G.value)])],Te!==0&&Q.value>1){const Ke={color:l.color,round:!0,dense:!0,flat:!0};l.dense===!0&&(Ke.size="sm"),Q.value>2&&we.push(_.h(bt,{key:"pgFirst",...Ke,icon:$e.value[0],disable:R.value,"aria-label":m.lang.pagination.first,onClick:ee})),we.push(_.h(bt,{key:"pgPrev",...Ke,icon:$e.value[1],disable:R.value,"aria-label":m.lang.pagination.prev,onClick:ae}),_.h(bt,{key:"pgNext",...Ke,icon:$e.value[2],disable:V.value,"aria-label":m.lang.pagination.next,onClick:se})),Q.value>2&&we.push(_.h(bt,{key:"pgLast",...Ke,icon:$e.value[3],disable:V.value,"aria-label":m.lang.pagination.last,onClick:J}))}return he.push(_.h("div",{class:"q-table__control"},we)),he}function Ye(){const he=l.gridHeader===!0?[_.h("table",{class:"q-table"},[Pe()])]:l.loading===!0&&j.loading===void 0?be():void 0;return _.h("div",{class:"q-table__middle"},he)}function ot(){const he=j.item!==void 0?j.item:we=>{const Te=we.cols.map(Ce=>_.h("div",{class:"q-table__grid-item-row"},[_.h("div",{class:"q-table__grid-item-title"},[Ce.label]),_.h("div",{class:"q-table__grid-item-value"},[Ce.value])]));if(U.value===!0){const Ce=j["body-selection"],Qe=Ce!==void 0?Ce(we):[_.h(dn,{modelValue:we.selected,color:l.color,dark:f.value,dense:l.dense,"onUpdate:modelValue":(Ke,te)=>{x([we.key],[we.row],Ke,te)}})];Te.unshift(_.h("div",{class:"q-table__grid-item-row"},Qe),_.h(di,{dark:f.value}))}const Oe={class:["q-table__grid-item-card"+s.value,l.cardClass],style:l.cardStyle};if(l.cardStyleFn!==void 0&&(Oe.style=[Oe.style,l.cardStyleFn(we.row)]),l.cardClassFn!==void 0){const Ce=l.cardClassFn(we.row);Ce&&(Oe.class[0]+=` ${Ce}`)}return(l.onRowClick!==void 0||l.onRowDblclick!==void 0||l.onRowContextmenu!==void 0)&&(Oe.class[0]+=" cursor-pointer",l.onRowClick!==void 0&&(Oe.onClick=Ce=>{t("RowClick",Ce,we.row,we.pageIndex)}),l.onRowDblclick!==void 0&&(Oe.onDblclick=Ce=>{t("RowDblclick",Ce,we.row,we.pageIndex)}),l.onRowContextmenu!==void 0&&(Oe.onContextmenu=Ce=>{t("rowContextmenu",Ce,we.row,we.pageIndex)})),_.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":"")},[_.h("div",Oe,Te)])};return _.h("div",{class:["q-table__grid-content row",l.cardContainerClass],style:l.cardContainerStyle},L.value.map((we,Te)=>he(Ee({key:n.value(we),row:we,pageIndex:Te}))))}return Object.assign(v.proxy,{requestServerInteraction:p,setPagination:S,firstPage:ee,prevPage:ae,nextPage:se,lastPage:J,isRowSelected:y,clearSelection:w,isRowExpanded:T,setExpanded:F,sort:P,resetVirtualScroll:fe,scrollTo:de,getCellValue:Ne}),ca(v.proxy,{filteredSortedRows:()=>D.value,computedRows:()=>L.value,computedRowsNumber:()=>G.value}),()=>{const he=[je()],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&&j.loading!==void 0&&he.push(j.loading()),_.h("div",we,he)}}}),Zc={shouldShowExpandButton:()=>!0};function Zs(l,j){return typeof j.field=="function"?j.field(l):l[j.field]}function mi(l,j){return typeof l.visible=="function"?l.visible(j):l.visible!==!1}function wr(l,j){return typeof l.disabled=="function"?l.disabled(j):!!l.disabled}function $s(l,j,t,v){return l.filter(m=>mi(m,j)&&(m.position===t||m.position==="both")&&(!v||m.columnName===v))}function ln(l,j){return wr(l,j)?"grey":l.color||"primary"}function un(l,j,t,v="action"){return l.testId?typeof l.testId=="function"?l.testId(j):l.testId:`${v}-${l.id}-${j[t]}`}const $c={key:0,"auto-width":""},ef=["onClick"],tf={class:"flex items-center"},rf={colspan:"100%"},nf=_.defineComponent({__name:"CustomTable",props:{columns:{},results:{},filter:{default:""},pagination:{},loading:{type:Boolean,default:!1},onRequest:{},rowKey:{default:"id"},services:{default:()=>({})},conditionals:{default:()=>({})},actions:{type:[Array,Function],default:()=>[]},showSkeleton:{type:Boolean},rowClasses:{type:[String,Function],default:void 0}},emits:["update:pagination"],setup(l,{emit:j}){const t=l,v=j,m=_.ref([]),f=_.useSlots(),a=_.computed(()=>!!f.expanded),o=_.computed({get(){return t.pagination},set(F){v("update:pagination",F)}}),n=_.computed(()=>({...Zc,...t.conditionals})),e=F=>n.value.shouldShowExpandButton(F),r=F=>m.value.includes(F[t.rowKey]),u=_.computed(()=>t.results.length===0?!1:typeof t.actions=="function"?!0:t.actions.some(F=>mi(F,t.results[0])&&(F.position==="row"||F.position==="both"))),s=F=>t.rowClasses&&typeof t.rowClasses=="function"?t.rowClasses(F):t.rowClasses||"";function i(F){return typeof t.actions=="function"?t.actions(F):t.actions.filter(z=>mi(z,F))}function d(F){return $s(i(F),F,"row")}function h(F,z){return $s(i(F),F,"cell",z)}function c(F){const z=g(F);z&&!wr(z,F)&&z.handler(F)}function g(F){return i(F).find(D=>D.id==="edit")}function p(F,z){const D=h(F,z);for(const N of D)wr(N,F)||N.handler(F)}async function S(F,z=!1){const D=F[t.rowKey];if(r(F)||z)m.value=m.value.filter(N=>N!==D);else if(m.value=[D],t.services.fetchDetails)try{F.details=await t.services.fetchDetails(F)}catch(N){console.error("Error fetching details:",N)}}async function C(F,z){if(!wr(F,z))try{F.isCancel&&await S(z,!0),F.handler(z)}catch(D){console.error(`Error executing action ${F.id}:`,D)}}function T(F){o.value=F.pagination,t.onRequest&&t.onRequest(F)}return(F,z)=>(_.openBlock(),_.createBlock(Jc,{pagination:o.value,"onUpdate:pagination":z[0]||(z[0]=D=>o.value=D),columns:F.columns,rows:F.results,filter:F.filter,"row-key":F.rowKey,"binary-state-sort":"","rows-per-page-options":o.value.rowsPerPageOptions,onRequest:T,loading:F.loading,"hide-no-data":F.loading,class:"q-mb-xl"},{header:_.withCtx(D=>[_.createVNode(on,{props:D},{default:_.withCtx(()=>[a.value?(_.openBlock(),_.createBlock(bn,{key:0,"auto-width":""})):_.createCommentVNode("",!0),(_.openBlock(!0),_.createElementBlock(_.Fragment,null,_.renderList(D.cols,N=>(_.openBlock(),_.createBlock(bn,{key:N.name,props:D},{default:_.withCtx(()=>[_.createTextVNode(_.toDisplayString(N.label),1)]),_:2},1032,["props"]))),128)),u.value?(_.openBlock(),_.createBlock(bn,{key:1},{default:_.withCtx(()=>z[1]||(z[1]=[_.createTextVNode("Actions")])),_:1,__:[1]})):_.createCommentVNode("",!0)]),_:2},1032,["props"])]),body:_.withCtx(D=>[F.showSkeleton?(_.openBlock(),_.createElementBlock(_.Fragment,{key:0},_.renderList(1,N=>_.createVNode(on,{key:`skeleton-${N}`},{default:_.withCtx(()=>[(_.openBlock(!0),_.createElementBlock(_.Fragment,null,_.renderList(F.columns,L=>(_.openBlock(),_.createBlock(Zn,{key:L.name},{default:_.withCtx(()=>[_.createVNode(Qs,{type:"text"})]),_:2},1024))),128)),u.value?(_.openBlock(),_.createBlock(Zn,{key:0},{default:_.withCtx(()=>[_.createVNode(Qs,{type:"QBtn"})]),_:1})):_.createCommentVNode("",!0)]),_:2},1024)),64)):(_.openBlock(),_.createBlock(on,{key:1,"data-cy":`row-${D.row[F.rowKey]}`,props:D,class:_.normalizeClass([{"bg-grey-3":D.row.archived},s(D.row)]),onDblclick:N=>c(D.row)},{default:_.withCtx(()=>[a.value?(_.openBlock(),_.createElementBlock("td",$c,[_.renderSlot(F.$slots,"expand-button",{row:D.row,expanded:r(D.row),toggle:()=>S(D.row)},()=>[e(D.row)?(_.openBlock(),_.createBlock(bt,{key:0,"data-cy":`expand-button-${D.row[F.rowKey]}`,size:"sm",color:"primary",round:"",dense:"",icon:r(D.row)?"remove":"add",onClick:N=>S(D.row)},null,8,["data-cy","icon","onClick"])):_.createCommentVNode("",!0)])])):_.createCommentVNode("",!0),(_.openBlock(!0),_.createElementBlock(_.Fragment,null,_.renderList(D.cols,N=>(_.openBlock(),_.createElementBlock("td",{key:N.name,onClick:_.withModifiers(L=>p(D.row,N.name),["stop"])},[_.renderSlot(F.$slots,"body-cell",{row:D.row,col:N,value:_.unref(Zs)(D.row,N)},()=>[_.createElementVNode("div",tf,[_.createElementVNode("span",null,_.toDisplayString(_.unref(Zs)(D.row,N)),1),(_.openBlock(!0),_.createElementBlock(_.Fragment,null,_.renderList(h(D.row,N.name),L=>(_.openBlock(),_.createElementBlock(_.Fragment,{key:L.id},[L.isButton?(_.openBlock(),_.createBlock(bt,_.mergeProps({key:0,color:_.unref(ln)(L,D.row),size:L.size||"sm",class:L.class,disabled:_.unref(wr)(L,D.row),label:L.label},{ref_for:!0},L.buttonProps||{},{"data-cy":_.unref(un)(L,D.row,F.rowKey),onClick:_.withModifiers(U=>C(L,D.row),["stop"])}),null,16,["color","size","class","disabled","label","data-cy","onClick"])):(_.openBlock(),_.createBlock(St,{key:1,class:"cursor-pointer q-ml-sm",name:L.icon,color:_.unref(ln)(L,D.row),size:L.size||"20px","data-cy":_.unref(un)(L,D.row,F.rowKey,"cell-icon"),onClick:_.withModifiers(U=>C(L,D.row),["stop"])},{default:_.withCtx(()=>[L.label?(_.openBlock(),_.createBlock(Ks,{key:0},{default:_.withCtx(()=>[_.createTextVNode(_.toDisplayString(L.label),1)]),_:2},1024)):_.createCommentVNode("",!0)]),_:2},1032,["name","color","size","data-cy","onClick"]))],64))),128))])])],8,ef))),128)),_.createVNode(Zn,{class:_.normalizeClass(["row items-center justify-center no-wrap",s(D.row)])},{default:_.withCtx(()=>[(_.openBlock(!0),_.createElementBlock(_.Fragment,null,_.renderList(d(D.row),N=>(_.openBlock(),_.createElementBlock(_.Fragment,{key:N.id},[N.isButton?(_.openBlock(),_.createBlock(bt,_.mergeProps({key:0,color:_.unref(ln)(N,D.row),size:N.size||"sm",class:N.class,disabled:_.unref(wr)(N,D.row),label:N.label},{ref_for:!0},N.buttonProps||{},{"data-cy":_.unref(un)(N,D.row,F.rowKey),onClick:_.withModifiers(L=>C(N,D.row),["stop"])}),null,16,["color","size","class","disabled","label","data-cy","onClick"])):(_.openBlock(),_.createBlock(St,{key:1,class:"cursor-pointer q-mr-sm",name:N.icon,color:_.unref(ln)(N,D.row),size:N.size||"25px","data-cy":_.unref(un)(N,D.row,F.rowKey,"icon"),onClick:_.withModifiers(L=>C(N,D.row),["stop"])},{default:_.withCtx(()=>[N.label?(_.openBlock(),_.createBlock(Ks,{key:0},{default:_.withCtx(()=>[_.createTextVNode(_.toDisplayString(N.label),1)]),_:2},1024)):_.createCommentVNode("",!0)]),_:2},1032,["name","color","size","data-cy","onClick"]))],64))),128))]),_:2},1032,["class"])]),_:2},1032,["data-cy","props","class","onDblclick"])),a.value&&r(D.row)?(_.openBlock(),_.createBlock(on,{key:2},{default:_.withCtx(()=>[_.createElementVNode("td",rf,[_.renderSlot(F.$slots,"expanded",{row:D.row})])]),_:2},1024)):_.createCommentVNode("",!0)]),_:3},8,["pagination","columns","rows","filter","row-key","rows-per-page-options","loading","hide-no-data"]))}});var lt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sf(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 $n={exports:{}};/*! ExcelJS 19-10-2023 */var eo;function of(){return eo||(eo=1,function(l,j){(function(t){l.exports=t()})(function(){return function t(v,m,f){function a(e,r){if(!m[e]){if(!v[e]){var u=typeof cn=="function"&&cn;if(!r&&u)return u(e,!0);if(o)return o(e,!0);var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}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,f)}return m[e].exports}for(var o=typeof cn=="function"&&cn,n=0;n<f.length;n++)a(f[n]);return a}({1:[function(t,v,m){const f=t("fs"),a=t("fast-csv"),o=t("dayjs/plugin/customParseFormat"),n=t("dayjs/plugin/utc"),e=t("dayjs").extend(o).extend(n),r=t("../utils/stream-buf"),{fs:{exists:u}}=t("../utils/utils"),s={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=f.createReadStream(i),c=await this.read(h,d);return h.close(),c}read(i,d){return d=d||{},new Promise((h,c)=>{const g=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 F=Number(T);if(!Number.isNaN(F)&&F!==1/0)return F;const z=p.reduce((N,L)=>{if(N)return N;const U=e(T,L,!0);return U.isValid()?U:null},null);if(z)return new Date(z.valueOf());const D=s[T];return D!==void 0?D:T},C=a.parse(d.parserOptions).on("data",T=>{g.addRow(T.map(S))}).on("end",()=>{C.emit("worksheet",g)});C.on("worksheet",h).on("error",c),i.pipe(C)})}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,c)=>{d=d||{};const g=this.workbook.getWorksheet(d.sheetName||d.sheetId),p=a.format(d.formatterOptions);i.on("finish",()=>{h()}),p.on("error",c),p.pipe(i);const{dateFormat:S,dateUTC:C}=d,T=d.map||(D=>{if(D){if(D.text||D.hyperlink)return D.hyperlink||D.text||"";if(D.formula||D.result)return D.result||"";if(D instanceof Date)return S?C?e.utc(D).format(S):e(D).format(S):C?e.utc(D).format():e(D).format();if(D.error)return D.error;if(typeof D=="object")return JSON.stringify(D)}return D}),F=d.includeEmptyRows===void 0||d.includeEmptyRows;let z=1;g&&g.eachRow((D,N)=>{if(F)for(;z++<N-1;)p.write([]);const{values:L}=D;L.shift(),p.write(L.map(T)),z=N}),p.end()})}writeFile(i,d){const h={encoding:(d=d||{}).encoding||"utf8"},c=f.createWriteStream(i,h);return this.write(c,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 f=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=f.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 f=t("../utils/col-cache"),a=t("../utils/under-dash"),o=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,f.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 c=i&&i.numFmt||d&&d.numFmt;c&&(h.numFmt=c);const g=i&&i.font||d&&d.font;g&&(h.font=g);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 C=i&&i.fill||d&&d.fill;C&&(h.fill=C);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=o.ValueType;const u={getType:s=>s==null?r.Types.Null:s instanceof String||typeof s=="string"?r.Types.String:typeof s=="number"?r.Types.Number:typeof s=="boolean"?r.Types.Boolean:s instanceof Date?r.Types.Date:s.text&&s.hyperlink?r.Types.Hyperlink:s.formula||s.sharedFormula?r.Types.Formula:s.richText?r.Types.RichText:s.sharedString?r.Types.SharedString:s.error?r.Types.Error:r.Types.JSON,types:[{t:r.Types.Null,f:class{constructor(s){this.model={address:s.address,type:r.Types.Null}}get value(){return null}set value(s){}get type(){return r.Types.Null}get effectiveType(){return r.Types.Null}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return""}release(){}toString(){return""}}},{t:r.Types.Number,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.Number,value:i}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.Number}get effectiveType(){return r.Types.Number}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.String,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.String,value:i}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.String}get effectiveType(){return r.Types.String}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:r.Types.Date,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.Date,value:i}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.Date}get effectiveType(){return r.Types.Date}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.Hyperlink,f:class{constructor(s,i){this.model={address:s.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 s={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(s.tooltip=this.model.tooltip),s}set value(s){this.model={text:s.text,hyperlink:s.hyperlink},s.tooltip&&(this.model.tooltip=s.tooltip)}get text(){return this.model.text}set text(s){this.model.text=s}get hyperlink(){return this.model.hyperlink}set hyperlink(s){this.model.hyperlink=s}get type(){return r.Types.Hyperlink}get effectiveType(){return r.Types.Hyperlink}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:r.Types.Formula,f:class{constructor(s,i){this.cell=s,this.model={address:s.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(s){const i={},d=h=>{const c=s[h];c&&(i[h]=c)};return d("formula"),d("result"),d("ref"),d("shareType"),d("sharedFormula"),i}get value(){return this._copyModel(this.model)}set value(s){this.model=this._copyModel(s)}validate(s){switch(u.getType(s)){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(s){this.model.formula=s}get formulaType(){return this.model.formula?o.FormulaType.Master:this.model.sharedFormula?o.FormulaType.Shared:o.FormulaType.None}get result(){return this.model.result}set result(s){this.model.result=s}get type(){return r.Types.Formula}get effectiveType(){const s=this.model.result;return s==null?o.ValueType.Null:s instanceof String||typeof s=="string"?o.ValueType.String:typeof s=="number"?o.ValueType.Number:s instanceof Date?o.ValueType.Date:s.text&&s.hyperlink?o.ValueType.Hyperlink:s.formula?o.ValueType.Formula:o.ValueType.Null}get address(){return this.model.address}set address(s){this.model.address=s}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:s}=this.cell,i=s.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(s,i){this.model={address:s.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(s){s instanceof r?(this._master&&this._master.releaseMergeRef(),s.addMergeRef(),this._master=s):this._master.value=s}isMergedTo(s){return s===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(s){this.model.address=s}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:r.Types.JSON,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.String,value:JSON.stringify(i),rawValue:i}}get value(){return this.model.rawValue}set value(s){this.model.rawValue=s,this.model.value=JSON.stringify(s)}get type(){return r.Types.String}get effectiveType(){return r.Types.String}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:r.Types.SharedString,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.SharedString,value:i}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.SharedString}get effectiveType(){return r.Types.SharedString}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.RichText,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.String,value:i}}get value(){return this.model.value}set value(s){this.model.value=s}toString(){return this.model.value.richText.map(s=>s.text).join("")}get type(){return r.Types.RichText}get effectiveType(){return r.Types.RichText}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:r.Types.Boolean,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.Boolean,value:i}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.Boolean}get effectiveType(){return r.Types.Boolean}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.Error,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.Error,value:i}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.Error}get effectiveType(){return r.Types.Error}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((s,i)=>(s[i.t]=i.f,s),[]),create(s,i,d){const h=this.types[s];if(!h)throw new Error("Could not create Value of type "+s);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 f=t("../utils/under-dash"),a=t("./enums"),o=t("../utils/col-cache");class n{constructor(r,u,s){this._worksheet=r,this._number=u,s!==!1&&(this.defn=s)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return o.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,s)=>{this._worksheet.getCell(s+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&&f.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 s=this.number;u||(u=r,r=null),this._worksheet.eachRow(r,(i,d)=>{u(i.getCell(s),d)})}get values(){const r=[];return this.eachCell((u,s)=>{u&&u.type!==a.ValueType.Null&&(r[s]=u.value)}),r}set values(r){if(!r)return;const u=this.number;let s=0;r.hasOwnProperty("0")&&(s=1),r.forEach((i,d)=>{this._worksheet.getCell(d+s,u).value=i})}_applyStyle(r,u){return this.style[r]=u,this.eachCell(s=>{s[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 s=null;return r&&r.forEach((i,d)=>{i.isDefault?s&&(s=null):s&&i.equivalentTo(s)?s.max=d+1:(s={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(s))}),u.length?u:void 0}static fromModel(r,u){const s=[];let i=1,d=0;for(u=(u=u||[]).sort(function(h,c){return h.min-c.min});d<u.length;){const h=u[d++];for(;i<h.min;)s.push(new n(r,i++));for(;i<=h.max;)s.push(new n(r,i++,h))}return s.length?s:null}}v.exports=n},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(t,v,m){v.exports=class{constructor(f){this.model=f||{}}add(f,a){return this.model[f]=a}find(f){return this.model[f]}remove(f){this.model[f]=void 0}}},{}],6:[function(t,v,m){const f=t("../utils/under-dash"),a=t("../utils/col-cache"),o=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 o)}add(r,u){const s=a.decodeEx(r);this.addEx(s,u)}addEx(r,u){const s=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};s.addCellEx(h)}else s.addCellEx(r)}remove(r,u){const s=a.decodeEx(r);this.removeEx(s,u)}removeEx(r,u){this.getMatrix(u).removeCellEx(r)}removeAllNames(r){f.each(this.matrixMap,u=>{u.removeCellEx(r)})}forEach(r){f.each(this.matrixMap,(u,s)=>{u.forEach(i=>{r(s,i)})})}getNames(r){return this.getNamesEx(a.decodeEx(r))}getNamesEx(r){return f.map(this.matrixMap,(u,s)=>u.findCellEx(r)&&s).filter(Boolean)}_explore(r,u){u.mark=!1;const{sheetName:s}=u,i=new n(u.row,u.col,u.row,u.col,s);let d,h;function c(p,S){const C=r.findCellAt(s,p,u.col);return!(!C||!C.mark)&&(i[S]=p,C.mark=!1,!0)}for(h=u.row-1;c(h,"top");h--);for(h=u.row+1;c(h,"bottom");h++);function g(p,S){const C=[];for(h=i.top;h<=i.bottom;h++){const T=r.findCellAt(s,h,p);if(!T||!T.mark)return!1;C.push(T)}i[S]=p;for(let T=0;T<C.length;T++)C[T].mark=!1;return!0}for(d=u.col-1;g(d,"left");d--);for(d=u.col+1;g(d,"right");d++);return i}getRanges(r,u){return(u=u||this.matrixMap[r])?(u.forEach(s=>{s.mark=!0}),{name:r,ranges:u.map(s=>s.mark&&this._explore(u,s)).filter(Boolean).map(s=>s.$shortRange)}):{name:r,ranges:[]}}normaliseMatrix(r,u){r.forEachInSheet(u,(s,i,d)=>{s&&(s.row===i&&s.col===d||(s.row=i,s.col=d,s.address=a.n2l(d)+i))})}spliceRows(r,u,s,i){f.each(this.matrixMap,d=>{d.spliceRows(r,u,s,i),this.normaliseMatrix(d,r)})}spliceColumns(r,u,s,i){f.each(this.matrixMap,d=>{d.spliceColumns(r,u,s,i),this.normaliseMatrix(d,r)})}get model(){return f.map(this.matrixMap,(r,u)=>this.getRanges(u,r)).filter(r=>r.ranges.length)}set model(r){const u=this.matrixMap={};r.forEach(s=>{const i=u[s.name]=new o;s.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 f=t("../utils/col-cache"),a=t("./anchor");v.exports=class{constructor(o,n){this.worksheet=o,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(o){let{type:n,imageId:e,range:r,hyperlinks:u}=o;if(this.type=n,this.imageId=e,n==="image")if(typeof r=="string"){const s=f.decode(r);this.range={tl:new a(this.worksheet,{col:s.left,row:s.top},-1),br:new a(this.worksheet,{col:s.right,row:s.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 f=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 f.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 f=t("../utils/col-cache");class a{constructor(){this.decode(arguments)}setTLBR(n,e,r,u,s){if(arguments.length<4){const i=f.decodeAddress(n),d=f.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,s)}else this.model={top:Math.min(n,r),left:Math.min(e,u),bottom:Math.max(n,r),right:Math.max(e,u),sheetName:s}}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=f.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=f.decodeEx(n);this.expand(e.row,e.col,e.row,e.col)}get tl(){return f.n2l(this.left)+this.top}get $t$l(){return`$${f.n2l(this.left)}$${this.top}`}get br(){return f.n2l(this.right)+this.bottom}get $b$r(){return`$${f.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=f.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(f.encodeAddress(r,e),r,e)}}v.exports=a},{"../utils/col-cache":19}],11:[function(t,v,m){const f=t("../utils/under-dash"),a=t("./enums"),o=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:o.l2n(e)}return this._cells[e-1]||this.getCellEx({address:o.encodeAddress(this._number,e),row:this._number,col:e})}splice(e,r){const u=e+r;for(var s=arguments.length,i=new Array(s>2?s-2:0),d=2;d<s;d++)i[d-2]=arguments[d];const h=i.length-r,c=this._cells.length;let g,p,S;if(h<0)for(g=e+i.length;g<=c;g++)S=this._cells[g-1],p=this._cells[g-h-1],p?(S=this.getCell(g),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(g=c;g>=u;g--)p=this._cells[g-1],p?(S=this.getCell(g+h),S.value=p.value,S.style=p.style,S._comment=p._comment):this._cells[g+h-1]=void 0;for(g=0;g<i.length;g++)S=this.getCell(e+g),S.value=i[g],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 s=1;s<=u;s++)r(this.getCell(s),s)}else this._cells.forEach((u,s)=>{u&&u.type!==a.ValueType.Null&&r(u,s+1)})}addPageBreak(e,r){const u=this._worksheet,s=Math.max(0,e-1)||0,i=Math.max(0,r-1)||16838,d={id:this._number,max:i,man:1};s&&(d.min=s),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,s)=>{u!==void 0&&(this.getCellEx({address:o.encodeAddress(this._number,s+r),row:this._number,col:s+r}).value=u)})}else this._worksheet.eachColumnKey((r,u)=>{e[u]!==void 0&&(this.getCellEx({address:o.encodeAddress(this._number,r.number),row:this._number,col:r.number}).value=e[u])})}get hasValues(){return f.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(s=>{if(s){const i=s.model;i&&((!r||r>s.col)&&(r=s.col),u<s.col&&(u=s.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 s;if(u.address)s=o.decodeAddress(u.address);else if(r){const{row:i}=r,d=r.col+1;s={row:i,col:d,address:o.encodeAddress(i,d),$col$row:`$${o.n2l(d)}$${i}`}}r=s,this.getCellEx(s).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 f=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(o,n){this.worksheet=o,n&&(this.table=n,this.validate(),this.store())}getFormula(o){switch(o.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${o.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${o.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${o.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${o.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${o.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${o.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${o.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${o.name}])`;case"custom":return o.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+o.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:o}=this,n=(h,c,g)=>{h[c]===void 0&&(h[c]=g)};n(o,"headerRow",!0),n(o,"totalsRow",!1),n(o,"style",{}),n(o.style,"theme","TableStyleMedium2"),n(o.style,"showFirstColumn",!1),n(o.style,"showLastColumn",!1),n(o.style,"showRowStripes",!1),n(o.style,"showColumnStripes",!1);const e=(h,c)=>{if(!h)throw new Error(c)};e(o.ref,"Table must have ref"),e(o.columns,"Table must have column definitions"),e(o.rows,"Table must have row definitions"),o.tl=f.decodeAddress(o.ref);const{row:r,col:u}=o.tl;e(r>0,"Table must be on valid row"),e(u>0,"Table must be on valid col");const{width:s,filterHeight:i,tableHeight:d}=this;o.autoFilterRef=f.encode(r,u,r+i-1,u+s-1),o.tableRef=f.encode(r,u,r+d-1,u+s-1),o.columns.forEach((h,c)=>{e(h.name,`Column ${c} must have a name`),c===0?n(h,"totalsRowLabel","Total"):(n(h,"totalsRowFunction","none"),h.totalsRowFormula=this.getFormula(h))})}store(){const o=(i,d)=>{d&&Object.keys(d).forEach(h=>{i[h]=d[h]})},{worksheet:n,table:e}=this,{row:r,col:u}=e.tl;let s=0;if(e.headerRow){const i=n.getRow(r+s++);e.columns.forEach((d,h)=>{const{style:c,name:g}=d,p=i.getCell(u+h);p.value=g,o(p,c)})}if(e.rows.forEach(i=>{const d=n.getRow(r+s++);i.forEach((h,c)=>{const g=d.getCell(u+c);g.value=h,o(g,e.columns[c].style)})}),e.totalsRow){const i=n.getRow(r+s++);e.columns.forEach((d,h)=>{const c=i.getCell(u+h);if(h===0)c.value=d.totalsRowLabel;else{const g=this.getFormula(d);c.value=g?{formula:d.totalsRowFormula,result:d.totalsRowResult}:null}o(c,d.style)})}}load(o){const{table:n}=this,{row:e,col:r}=n.tl;let u=0;if(n.headerRow){const s=o.getRow(e+u++);n.columns.forEach((i,d)=>{s.getCell(r+d).value=i.name})}if(n.rows.forEach(s=>{const i=o.getRow(e+u++);s.forEach((d,h)=>{i.getCell(r+h).value=d})}),n.totalsRow){const s=o.getRow(e+u++);n.columns.forEach((i,d)=>{const h=s.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(o){this.table=o}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const o=f.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let n=0;n<this._cache.tableHeight;n++){const e=this.worksheet.getRow(o.row+n);for(let r=0;r<this._cache.width;r++)e.getCell(o.col+r).value=null}else{for(let n=this.tableHeight;n<this._cache.tableHeight;n++){const e=this.worksheet.getRow(o.row+n);for(let r=0;r<this._cache.width;r++)e.getCell(o.col+r).value=null}for(let n=0;n<this.tableHeight;n++){const e=this.worksheet.getRow(o.row+n);for(let r=this.width;r<this._cache.width;r++)e.getCell(o.col+r).value=null}}this.store()}addRow(o,n){this.cacheState(),n===void 0?this.table.rows.push(o):this.table.rows.splice(n,0,o)}removeRows(o){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(o,n)}getColumn(o){const n=this.table.columns[o];return new a(this,n,o)}addColumn(o,n,e){this.cacheState(),e===void 0?(this.table.columns.push(o),this.table.rows.forEach((r,u)=>{r.push(n[u])})):(this.table.columns.splice(e,0,o),this.table.rows.forEach((r,u)=>{r.splice(e,0,n[u])}))}removeColumns(o){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(o,n),this.table.rows.forEach(e=>{e.splice(o,n)})}_assign(o,n,e){this.cacheState(),o[n]=e}get ref(){return this.table.ref}set ref(o){this._assign(this.table,"ref",o)}get name(){return this.table.name}set name(o){this.table.name=o}get displayName(){return this.table.displyName||this.table.name}set displayNamename(o){this.table.displayName=o}get headerRow(){return this.table.headerRow}set headerRow(o){this._assign(this.table,"headerRow",o)}get totalsRow(){return this.table.totalsRow}set totalsRow(o){this._assign(this.table,"totalsRow",o)}get theme(){return this.table.style.name}set theme(o){this.table.style.name=o}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(o){this.table.style.showFirstColumn=o}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(o){this.table.style.showLastColumn=o}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(o){this.table.style.showRowStripes=o}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(o){this.table.style.showColumnStripes=o}}},{"../utils/col-cache":19}],13:[function(t,v,m){const f=t("./worksheet"),a=t("./defined-names"),o=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 o(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 s=this._worksheets.reduce((h,c)=>(c&&c.orderNo)>h?c.orderNo:h,0),i=Object.assign({},r,{id:u,name:e,orderNo:s+1,workbook:this}),d=new f(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:s,state:i}=r,d=e.sheets&&e.sheets.findIndex(h=>h.id===u);(this._worksheets[u]=new f({id:u,name:s,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 f=t("../utils/under-dash"),a=t("../utils/col-cache"),o=t("./range"),n=t("./row"),e=t("./column"),r=t("./enums"),u=t("./image"),s=t("./table"),i=t("./data-validations"),d=t("../utils/encryptor"),{copyStyle:h}=t("../utils/copy-style");v.exports=class{constructor(c){c=c||{},this._workbook=c.workbook,this.id=c.id,this.orderNo=c.orderNo,this.name=c.name,this.state=c.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},c.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:!(!c.pageSetup||!c.pageSetup.fitToWidth&&!c.pageSetup.fitToHeight||c.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},c.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},c.headerFooter),this.dataValidations=new i,this.views=c.views||[],this.autoFilter=c.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(c){if(c===void 0&&(c="sheet"+this.id),this._name!==c){if(typeof c!="string")throw new Error("The name has to be a string.");if(c==="")throw new Error("The name can't be empty.");if(c==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(c))throw new Error(`Worksheet name ${c} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(c))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+c);if(c&&c.length>31&&(console.warn(`Worksheet name ${c} exceeds 31 chars. This will be truncated`),c=c.substring(0,31)),this._workbook._worksheets.find(g=>g&&g.name.toLowerCase()===c.toLowerCase()))throw new Error("Worksheet name already exists: "+c);this._name=c}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const c=new o;return this._rows.forEach(g=>{if(g){const p=g.dimensions;p&&c.expand(g.number,p.min,g.number,p.max)}}),c}get columns(){return this._columns}set columns(c){this._headerRowCount=c.reduce((S,C)=>{const T=(C.header?1:C.headers&&C.headers.length)||0;return Math.max(S,T)},0);let g=1;const p=this._columns=[];c.forEach(S=>{const C=new e(this,g++,!1);p.push(C),C.defn=S})}getColumnKey(c){return this._keys[c]}setColumnKey(c,g){this._keys[c]=g}deleteColumnKey(c){delete this._keys[c]}eachColumnKey(c){f.each(this._keys,c)}getColumn(c){if(typeof c=="string"){const g=this._keys[c];if(g)return g;c=a.l2n(c)}if(this._columns||(this._columns=[]),c>this._columns.length){let g=this._columns.length+1;for(;g<=c;)this._columns.push(new e(this,g++))}return this._columns[c-1]}spliceColumns(c,g){const p=this._rows.length;for(var S=arguments.length,C=new Array(S>2?S-2:0),T=2;T<S;T++)C[T-2]=arguments[T];if(C.length>0)for(let N=0;N<p;N++){const L=[c,g];C.forEach(q=>{L.push(q[N]||null)});const U=this.getRow(N+1);U.splice.apply(U,L)}else this._rows.forEach(N=>{N&&N.splice(c,g)});const F=C.length-g,z=c+g,D=this._columns.length;if(F<0)for(let N=c+C.length;N<=D;N++)this.getColumn(N).defn=this.getColumn(N-F).defn;else if(F>0)for(let N=D;N>=z;N--)this.getColumn(N+F).defn=this.getColumn(N).defn;for(let N=c;N<c+C.length;N++)this.getColumn(N).defn=null;this.workbook.definedNames.spliceColumns(this.name,c,g,C.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let c=0;return this.eachRow(g=>{c=Math.max(c,g.cellCount)}),c}get actualColumnCount(){const c=[];let g=0;return this.eachRow(p=>{p.eachCell(S=>{let{col:C}=S;c[C]||(c[C]=!0,g++)})}),g}_commitRow(){}get _lastRowNumber(){const c=this._rows;let g=c.length;for(;g>0&&c[g-1]===void 0;)g--;return g}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(c){return this._rows[c-1]}findRows(c,g){return this._rows.slice(c-1,c-1+g)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let c=0;return this.eachRow(()=>{c++}),c}getRow(c){let g=this._rows[c-1];return g||(g=this._rows[c-1]=new n(this,c)),g}getRows(c,g){if(g<1)return;const p=[];for(let S=c;S<c+g;S++)p.push(this.getRow(S));return p}addRow(c){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const p=this._nextRow,S=this.getRow(p);return S.values=c,this._setStyleOption(p,g[0]==="i"?g:"n"),S}addRows(c){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const p=[];return c.forEach(S=>{p.push(this.addRow(S,g))}),p}insertRow(c,g){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(c,0,g),this._setStyleOption(c,p),this.getRow(c)}insertRows(c,g){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(c,0,...g),p!=="n")for(let S=0;S<g.length;S++)p[0]==="o"&&this.findRow(g.length+c+S)!==void 0?this._copyStyle(g.length+c+S,c+S,p[1]==="+"):p[0]==="i"&&this.findRow(c-1)!==void 0&&this._copyStyle(c-1,c+S,p[1]==="+");return this.getRows(c,g.length)}_setStyleOption(c){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";g[0]==="o"&&this.findRow(c+1)!==void 0?this._copyStyle(c+1,c,g[1]==="+"):g[0]==="i"&&this.findRow(c-1)!==void 0&&this._copyStyle(c-1,c,g[1]==="+")}_copyStyle(c,g){let p=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const S=this.getRow(c),C=this.getRow(g);C.style=h(S.style),S.eachCell({includeEmpty:p},(T,F)=>{C.getCell(F).style=h(T.style)}),C.height=S.height}duplicateRow(c,g){let p=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const S=this._rows[c-1],C=new Array(g).fill(S.values);this.spliceRows(c+1,p?0:g,...C);for(let T=0;T<g;T++){const F=this._rows[c+T];F.style=S.style,F.height=S.height,S.eachCell({includeEmpty:!0},(z,D)=>{F.getCell(D).style=z.style})}}spliceRows(c,g){const p=c+g;for(var S=arguments.length,C=new Array(S>2?S-2:0),T=2;T<S;T++)C[T-2]=arguments[T];const F=C.length,z=F-g,D=this._rows.length;let N,L;if(z<0)for(c===D&&(this._rows[D-1]=void 0),N=p;N<=D;N++)if(L=this._rows[N-1],L){const U=this.getRow(N+z);U.values=L.values,U.style=L.style,U.height=L.height,L.eachCell({includeEmpty:!0},(q,A)=>{U.getCell(A).style=q.style}),this._rows[N-1]=void 0}else this._rows[N+z-1]=void 0;else if(z>0)for(N=D;N>=p;N--)if(L=this._rows[N-1],L){const U=this.getRow(N+z);U.values=L.values,U.style=L.style,U.height=L.height,L.eachCell({includeEmpty:!0},(q,A)=>{if(U.getCell(A).style=q.style,q._value.constructor.name==="MergeValue"){const M=this.getRow(q._row._number+F).getCell(A),k=q._value._master,b=this.getRow(k._row._number+F).getCell(k._column._number);M.merge(b)}})}else this._rows[N+z-1]=void 0;for(N=0;N<F;N++){const U=this.getRow(c+N);U.style={},U.values=C[N]}this.workbook.definedNames.spliceRows(this.name,c,g,F)}eachRow(c,g){if(g||(g=c,c=void 0),c&&c.includeEmpty){const p=this._rows.length;for(let S=1;S<=p;S++)g(this.getRow(S),S)}else this._rows.forEach(p=>{p&&p.hasValues&&g(p,p.number)})}getSheetValues(){const c=[];return this._rows.forEach(g=>{g&&(c[g.number]=g.values)}),c}findCell(c,g){const p=a.getAddress(c,g),S=this._rows[p.row-1];return S?S.findCell(p.col):void 0}getCell(c,g){const p=a.getAddress(c,g);return this.getRow(p.row).getCellEx(p)}mergeCells(){for(var c=arguments.length,g=new Array(c),p=0;p<c;p++)g[p]=arguments[p];const S=new o(g);this._mergeCellsInternal(S)}mergeCellsWithoutStyle(){for(var c=arguments.length,g=new Array(c),p=0;p<c;p++)g[p]=arguments[p];const S=new o(g);this._mergeCellsInternal(S,!0)}_mergeCellsInternal(c,g){f.each(this._merges,S=>{if(S.intersects(c))throw new Error("Cannot merge already merged cells")});const p=this.getCell(c.top,c.left);for(let S=c.top;S<=c.bottom;S++)for(let C=c.left;C<=c.right;C++)(S>c.top||C>c.left)&&this.getCell(S,C).merge(p,g);this._merges[p.address]=c}_unMergeMaster(c){const g=this._merges[c.address];if(g){for(let p=g.top;p<=g.bottom;p++)for(let S=g.left;S<=g.right;S++)this.getCell(p,S).unmerge();delete this._merges[c.address]}}get hasMerges(){return f.some(this._merges,Boolean)}unMergeCells(){for(var c=arguments.length,g=new Array(c),p=0;p<c;p++)g[p]=arguments[p];const S=new o(g);for(let C=S.top;C<=S.bottom;C++)for(let T=S.left;T<=S.right;T++){const F=this.findCell(C,T);F&&(F.type===r.ValueType.Merge?this._unMergeMaster(F.master):this._merges[F.address]&&this._unMergeMaster(F))}}fillFormula(c,g,p){let S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"shared";const C=a.decode(c),{top:T,left:F,bottom:z,right:D}=C,N=D-F+1,L=a.encodeAddress(T,F),U=S==="shared";let q;q=typeof p=="function"?p:Array.isArray(p)?Array.isArray(p[0])?(M,k)=>p[M-T][k-F]:(M,k)=>p[(M-T)*N+(k-F)]:()=>{};let A=!0;for(let M=T;M<=z;M++)for(let k=F;k<=D;k++)A?(this.getCell(M,k).value={shareType:S,formula:g,ref:c,result:q(M,k)},A=!1):this.getCell(M,k).value=U?{sharedFormula:L,result:q(M,k)}:q(M,k)}addImage(c,g){const p={type:"image",imageId:c,range:g};this._media.push(new u(this,p))}getImages(){return this._media.filter(c=>c.type==="image")}addBackgroundImage(c){const g={type:"background",imageId:c};this._media.push(new u(this,g))}getBackgroundImageId(){const c=this._media.find(g=>g.type==="background");return c&&c.imageId}protect(c,g){return new Promise(p=>{this.sheetProtection={sheet:!0},g&&"spinCount"in g&&(g.spinCount=Number.isFinite(g.spinCount)?Math.round(Math.max(0,g.spinCount)):1e5),c&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=d.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=g&&"spinCount"in g?g.spinCount:1e5,this.sheetProtection.hashValue=d.convertPasswordToHash(c,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),g&&(this.sheetProtection=Object.assign(this.sheetProtection,g),!c&&"spinCount"in g&&delete this.sheetProtection.spinCount),p()})}unprotect(){this.sheetProtection=null}addTable(c){const g=new s(this,c);return this.tables[c.name]=g,g}getTable(c){return this.tables[c]}removeTable(c){delete this.tables[c]}getTables(){return Object.values(this.tables)}addConditionalFormatting(c){this.conditionalFormattings.push(c)}removeConditionalFormatting(c){typeof c=="number"?this.conditionalFormattings.splice(c,1):this.conditionalFormattings=c instanceof Function?this.conditionalFormattings.filter(c):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(c){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=c}get model(){const c={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};c.cols=e.toModel(this.columns);const g=c.rows=[],p=c.dimensions=new o;return this._rows.forEach(S=>{const C=S&&S.model;C&&(p.expand(C.number,C.min,C.number,C.max),g.push(C))}),c.merges=[],f.each(this._merges,S=>{c.merges.push(S.range)}),c}_parseRows(c){this._rows=[],c.rows.forEach(g=>{const p=new n(this,g.number);this._rows[p.number-1]=p,p.model=g})}_parseMergeCells(c){f.each(c.mergeCells,g=>{this.mergeCellsWithoutStyle(g)})}set model(c){this.name=c.name,this._columns=e.fromModel(this,c.cols),this._parseRows(c),this._parseMergeCells(c),this.dataValidations=new i(c.dataValidations),this.properties=c.properties,this.pageSetup=c.pageSetup,this.headerFooter=c.headerFooter,this.views=c.views,this.autoFilter=c.autoFilter,this._media=c.media.map(g=>new u(this,g)),this.sheetProtection=c.sheetProtection,this.tables=c.tables.reduce((g,p)=>{const S=new s;return S.model=p,g[p.name]=S,g},{}),this.conditionalFormattings=c.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 f={Workbook:t("./doc/workbook")},a=t("./doc/enums");Object.keys(a).forEach(o=>{f[o]=a[o]}),v.exports=f},{"./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 f=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");m.bufferToString=function(a){return typeof a=="string"?a:f?f.decode(a):a.toString()}},{}],17:[function(t,v,m){const f=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:a}=t("buffer");m.stringToBuffer=function(o){return typeof o!="string"?o:f?a.from(f.encode(o).buffer):a.from(o)}},{buffer:220}],18:[function(t,v,m){const f=t("./under-dash"),a=t("./col-cache");v.exports=class{constructor(o){this.template=o,this.sheets={}}addCell(o){this.addCellEx(a.decodeEx(o))}getCell(o){return this.findCellEx(a.decodeEx(o),!0)}findCell(o){return this.findCellEx(a.decodeEx(o),!1)}findCellAt(o,n,e){const r=this.sheets[o],u=r&&r[n];return u&&u[e]}addCellEx(o){if(o.top)for(let n=o.top;n<=o.bottom;n++)for(let e=o.left;e<=o.right;e++)this.getCellAt(o.sheetName,n,e);else this.findCellEx(o,!0)}getCellEx(o){return this.findCellEx(o,!0)}findCellEx(o,n){const e=this.findSheet(o,n),r=this.findSheetRow(e,o,n);return this.findRowCell(r,o,n)}getCellAt(o,n,e){const r=this.sheets[o]||(this.sheets[o]=[]),u=r[n]||(r[n]=[]);return u[e]||(u[e]={sheetName:o,address:a.n2l(e)+n,row:n,col:e})}removeCellEx(o){const n=this.findSheet(o);if(!n)return;const e=this.findSheetRow(n,o);e&&delete e[o.col]}forEachInSheet(o,n){const e=this.sheets[o];e&&e.forEach((r,u)=>{r&&r.forEach((s,i)=>{s&&n(s,u,i)})})}forEach(o){f.each(this.sheets,(n,e)=>{this.forEachInSheet(e,o)})}map(o){const n=[];return this.forEach(e=>{n.push(o(e))}),n}findSheet(o,n){const e=o.sheetName;return this.sheets[e]?this.sheets[e]:n?this.sheets[e]=[]:void 0}findSheetRow(o,n,e){const{row:r}=n;return o&&o[r]?o[r]:e?o[r]=[]:void 0}findRowCell(o,n,e){const{col:r}=n;return o&&o[r]?o[r]:e?o[r]=this.template?Object.assign(n,JSON.parse(JSON.stringify(this.template))):n:void 0}spliceRows(o,n,e,r){const u=this.sheets[o];if(u){const s=[];for(let i=0;i<r;i++)s.push([]);u.splice(n,e,...s)}}spliceColumns(o,n,e,r){const u=this.sheets[o];if(u){const s=[];for(let i=0;i<r;i++)s.push(null);f.each(u,i=>{i.splice(n,e,...s)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(t,v,m){const f=/^[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:o=>o<=26?1:o<=676?2:3,_fill(o){let n,e,r,u,s,i=1;if(o>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&o>=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&&o>=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&&o>=3){for(i=703;i<=16384;)e=i-703,r=e%26,u=Math.floor(e/26)%26,s=Math.floor(e/676),n=this._dictionary[s]+this._dictionary[u]+this._dictionary[r],this._n2l[i]=n,this._l2n[n]=i,i++;this._l2nFill=3}},l2n(o){if(this._l2n[o]||this._fill(o.length),!this._l2n[o])throw new Error("Out of bounds. Invalid column letter: "+o);return this._l2n[o]},n2l(o){if(o<1||o>16384)throw new Error(o+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[o]||this._fill(this._level(o)),this._n2l[o]},_hash:{},validateAddress(o){if(!f.test(o))throw new Error("Invalid Address: "+o);return!0},decodeAddress(o){const n=o.length<5&&this._hash[o];if(n)return n;let e=!1,r="",u=0,s=!1,i="",d=0;for(let c,g=0;g<o.length;g++)if(c=o.charCodeAt(g),!s&&c>=65&&c<=90)e=!0,r+=o[g],u=26*u+c-64;else if(c>=48&&c<=57)s=!0,i+=o[g],d=10*d+c-48;else if(s&&e&&c!==36)break;if(e){if(u>16384)throw new Error("Out of bounds. Invalid column letter: "+r)}else u=void 0;s||(d=void 0);const h={address:o=r+i,col:u,row:d,$col$row:`$${r}$${i}`};return u<=100&&d<=100&&(this._hash[o]=h,this._hash[h.$col$row]=h),h},getAddress(o,n){if(n){const e=this.n2l(n)+o;return this.decodeAddress(e)}return this.decodeAddress(o)},decode(o){const n=o.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(o)},decodeEx(o){const n=o.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),c=Math.min(i.col,d.col),g=Math.max(i.row,d.row),p=Math.max(i.col,d.col);return i=this.n2l(c)+h,d=this.n2l(p)+g,{top:h,left:c,bottom:g,right:p,sheetName:e,tl:{address:i,col:c,row:h,$col$row:`$${this.n2l(c)}$${h}`,sheetName:e},br:{address:d,col:p,row:g,$col$row:`$${this.n2l(p)}$${g}`,sheetName:e},dimensions:`${i}:${d}`}}if(r.startsWith("#"))return e?{sheetName:e,error:r}:{error:r};const s=this.decodeAddress(r);return e?{sheetName:e,...s}:s},encodeAddress:(o,n)=>a.n2l(n)+o,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(o,n){const[e,r,,u,s]=o,[i,d]=n;return i>=e&&i<=u&&d>=r&&d<=s}};v.exports=a},{}],20:[function(t,v,m){const f=(o,n)=>({...o,...n.reduce((e,r)=>(o[r]&&(e[r]={...o[r]}),e),{})}),a=function(o,n,e){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];o[e]&&(n[e]=f(o[e],r))};m.copyStyle=o=>{if(!o)return o;if(n=o,Object.keys(n).length===0)return{};var n;const e={...o};return a(o,e,"font",["color"]),a(o,e,"alignment"),a(o,e,"protection"),o.border&&(a(o,e,"border"),a(o.border,e.border,"top",["color"]),a(o.border,e.border,"left",["color"]),a(o.border,e.border,"bottom",["color"]),a(o.border,e.border,"right",["color"]),a(o.border,e.border,"diagonal",["color"])),o.fill&&(a(o,e,"fill",["fgColor","bgColor","center"]),o.fill.stops&&(e.fill.stops=o.fill.stops.map(r=>f(r,["color"])))),e}},{}],21:[function(t,v,m){(function(f){(function(){const a=t("crypto"),o={hash(n){const e=a.createHash(n);for(var r=arguments.length,u=new Array(r>1?r-1:0),s=1;s<r;s++)u[s-1]=arguments[s];return e.update(f.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 s=f.from(n,"utf16le");let i=this.hash(e,f.from(r,"base64"),s);for(let d=0;d<u;d++){const h=f.alloc(4);h.writeUInt32LE(d,0),i=this.hash(e,i,h)}return i.toString("base64")},randomBytes:n=>a.randomBytes(n)};v.exports=o}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(t,v,m){const{SaxesParser:f}=t("saxes"),{PassThrough:a}=t("readable-stream"),{bufferToString:o}=t("./browser-buffer-decode");v.exports=async function*(n){n.pipe&&!n[Symbol.asyncIterator]&&(n=n.pipe(new a));const e=new f;let r;e.on("error",s=>{r=s});let u=[];e.on("opentag",s=>u.push({eventType:"opentag",value:s})),e.on("text",s=>u.push({eventType:"text",value:s})),e.on("closetag",s=>u.push({eventType:"closetag",value:s}));for await(const s of n){if(e.write(o(s)),r)throw r;yield u,u=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(t,v,m){const f=t("./col-cache"),a=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,o=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;v.exports={slideFormula:function(n,e,r){const u=f.decode(e),s=f.decode(r);return n.replace(a,(i,d,h,c,g)=>{if(g)return i;const p=o.exec(c);if(p){const S=p[1],C=p[2].toUpperCase(),T=p[3],F=p[4];if(C.length>3||C.length===3&&C>"XFD")return i;let z=f.l2n(C),D=parseInt(F,10);return S||(z+=s.col-u.col),T||(D+=s.row-u.row),(d||"")+(S||"")+f.n2l(z)+(T||"")+D}return i})}}},{"./col-cache":19}],24:[function(t,v,m){(function(f,a){(function(){const o=t("readable-stream"),n=t("./utils"),e=t("./string-buf");class r{constructor(c,g){this._data=c,this._encoding=g}get length(){return this.toBuffer().length}copy(c,g,p,S){return this.toBuffer().copy(c,g,p,S)}toBuffer(){return this._buffer||(this._buffer=a.from(this._data,this._encoding)),this._buffer}}class u{constructor(c){this._data=c}get length(){return this._data.length}copy(c,g,p,S){return this._data._buf.copy(c,g,p,S)}toBuffer(){return this._data.toBuffer()}}class s{constructor(c){this._data=c}get length(){return this._data.length}copy(c,g,p,S){this._data.copy(c,g,p,S)}toBuffer(){return this._data}}class i{constructor(c){this.size=c,this.buffer=a.alloc(c),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const c=a.alloc(this.iWrite-this.iRead);return this.buffer.copy(c,0,this.iRead,this.iWrite),c}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(c){let g;return c===0?null:c===void 0||c>=this.length?(g=this.toBuffer(),this.iRead=this.iWrite,g):(g=a.alloc(c),this.buffer.copy(g,0,this.iRead,c),this.iRead+=c,g)}write(c,g,p){const S=Math.min(p,this.size-this.iWrite);return c.copy(this.buffer,this.iWrite,g,g+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,o.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 c=this.buffers[this.buffers.length-1];if(!c.full)return c}const h=new i(this.bufSize);return this.buffers.push(h),h},async _pipe(h){await Promise.all(this.pipes.map(function(c){return new Promise(g=>{c.write(h.toBuffer(),()=>{g()})})}))},_writeToBuffers(h){let c=0;const g=h.length;for(;c<g;)c+=this._getWritableBuffer().write(h,c,g-c)},async write(h,c,g){let p;if(c instanceof Function&&(g=c,c="utf8"),g=g||n.nop,h instanceof e)p=new u(h);else if(h instanceof a)p=new s(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,c)}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),f.nextTick(g)):(await this._pipe(p),g());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,c,g){const p=S=>{S?g(S):(this._flush(),this.pipes.forEach(C=>{C.end()}),this.emit("finish"))};h?this.write(h,c,p):p()},read(h){let c;if(h){for(c=[];h&&this.buffers.length&&!this.buffers[0].eod;){const g=this.buffers[0],p=g.read(h);h-=p.length,c.push(p),g.eod&&g.full&&this.buffers.shift()}return a.concat(c)}return c=this.buffers.map(g=>g.toBuffer()).filter(Boolean),this.buffers=[],a.concat(c)},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(c=>c!==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(f){(function(){v.exports=class{constructor(a){this._buf=f.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=f.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 o=2*this._buf.length;for(;o<a;)o*=2;const n=f.alloc(o);this._buf.copy(n,0),this._buf=n}addText(a){this._buffer=void 0;let o=this._inPos+this._buf.write(a,this._inPos,this._encoding);for(;o>=this._buf.length-4;)this._grow(this._inPos+a.length),o=this._inPos+this._buf.write(a,this._inPos,this._encoding);this._inPos=o}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:f}=Object.prototype,a=/["&<>]/,o={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,s=Array.isArray(n),i=Array.isArray(e);let d;if(r!==u)return!1;switch(typeof n){case"object":if(s||i)return!(!s||!i)&&n.length===e.length&&n.every((h,c)=>{const g=e[c];return o.isEqual(h,g)});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 o.every(n,(h,c)=>{const g=e[c];return o.isEqual(h,g)});default:return n===e}},escapeHtml(n){const e=a.exec(n);if(!e)return n;let r="",u="",s=0,i=e.index;for(;i<n.length;i++){switch(n.charAt(i)){case'"':u=""";break;case"&":u="&";break;case"'":u="'";break;case"<":u="<";break;case">":u=">";break;default:continue}s!==i&&(r+=n.substring(s,i)),s=i+1,r+=u}return s!==i?r+n.substring(s,i):r},strcmp:(n,e)=>n<e?-1:n>e?1:0,isUndefined:n=>f.call(n)==="[object Undefined]",isObject:n=>f.call(n)==="[object Object]",deepMerge(){const n=arguments[0]||{},{length:e}=arguments;let r,u,s;function i(d,h){r=n[h],s=Array.isArray(d),o.isObject(d)||s?(s?(s=!1,u=r&&Array.isArray(r)?r:[]):u=r&&o.isObject(r)?r:{},n[h]=o.deepMerge(u,d)):o.isUndefined(d)||(n[h]=d)}for(let d=0;d<e;d++)o.each(arguments[d],i);return n}};v.exports=o},{}],27:[function(t,v,m){(function(f,a){(function(){const o=t("fs"),n=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,e={nop(){},promiseImmediate:r=>new Promise(u=>{f.setImmediate?a(()=>{u(r)}):setTimeout(()=>{u(r)},1)}),inherits:function(r,u,s,i){r.super_=u,i||(i=s,s=null),s&&Object.keys(s).forEach(h=>{Object.defineProperty(r,h,Object.getOwnPropertyDescriptor(s,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 s=Math.round(24*(r-25569+(u?1462:0))*3600*1e3);return new Date(s)},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 s="",i="",d=0,h=u.index;for(;h<r.length;h++){const c=r.charCodeAt(h);switch(c){case 34:i=""";break;case 38:i="&";break;case 39:i="'";break;case 60:i="<";break;case 62:i=">";break;case 127:i="";break;default:if(c<=31&&(c<=8||c>=11&&c!==13)){i="";break}continue}d!==h&&(s+=r.substring(d,h)),d=h+1,i&&(s+=i)}return d!==h?s+r.substring(d,h):s},xmlDecode:r=>r.replace(/&([a-z]*);/g,u=>{switch(u){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":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=>{o.access(r,o.constants.F_OK,s=>{u(!s)})})},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 lt<"u"?lt:typeof self<"u"?self:typeof window<"u"?window:{},t("timers").setImmediate)},{fs:216,timers:523}],28:[function(t,v,m){const f=t("./under-dash"),a=t("./utils");function o(r,u,s){r.push(` ${u}="${a.xmlEncode(s.toString())}"`)}function n(r,u){if(u){const s=[];f.each(u,(i,d)=>{i!==void 0&&o(s,d,i)}),r.push(s.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 s=this._xml;s.push("<?xml"),n(s,u),s.push(`?>
|
|
2
2
|
`)}openNode(u,s){const i=this.tos,d=this._xml;i&&this.open&&d.push(">"),this._stack.push(u),d.push("<"),d.push(u),n(d,s),this.leaf=!0,this.open=!0}addAttribute(u,s){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");s!==void 0&&o(this._xml,u,s)}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 s=this._xml;this.open&&(s.push(">"),this.open=!1),this.leaf=!1,s.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(),s=this._xml;this.leaf?s.push("/>"):(s.push("</"),s.push(u),s.push(">")),this.open=!1,this.leaf=!1}leafNode(u,s,i){this.openNode(u,s),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(f){(function(){const a=t("events"),o=t("jszip"),n=t("./stream-buf"),{stringToBuffer:e}=t("./browser-buffer-encode");class r extends a.EventEmitter{constructor(s){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},s),this.zip=new o,this.stream=new n}append(s,i){i.hasOwnProperty("base64")&&i.base64?this.zip.file(i.name,s,{base64:!0}):(f.browser&&typeof s=="string"&&(s=e(s)),this.zip.file(i.name,s))}async finalize(){const s=await this.zip.generateAsync(this.options);this.stream.end(s),this.emit("finish")}read(s){return this.stream.read(s)}setEncoding(s){return this.stream.setEncoding(s)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(s,i){return this.stream.pipe(s,i)}unpipe(s){return this.stream.unpipe(s)}unshift(s){return this.stream.unshift(s)}wrap(s){return this.stream.wrap(s)}}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 f=t("../../utils/parse-sax"),a=t("../../utils/xml-stream");class o{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 o?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:s}of r)if(u==="opentag")this.parseOpen(s);else if(u==="text")this.parseText(s);else if(u==="closetag"&&!this.parseClose(s.name))return this.model;return this.model}async parseStream(e){return this.parse(f(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 o.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 o.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 o.toAttribute(e,r,u)}static toFloatValue(e,r){return e===void 0?r:parseFloat(e)}}v.exports=o},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(t,v,m){const f=t("../base-xform"),a=t("../../../utils/col-cache");function o(e){try{return a.decodeEx(e),!0}catch{return!1}}function n(e){const r=[];let u=!1,s="";return e.split(",").forEach(i=>{if(!i)return;const d=(i.match(/'/g)||[]).length;if(!d)return void(u?s+=i+",":o(i)&&r.push(i));const h=d%2==0;!u&&h&&o(i)?r.push(i):u&&!h?(u=!1,o(s+i)&&r.push(s+i),s=""):(u=!0,s+=i+",")}),r}v.exports=class extends f{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 f=t("../../../utils/utils"),a=t("../base-xform");v.exports=class extends a{render(o,n){o.leafNode("sheet",{sheetId:n.id,name:n.name,state:n.state,"r:id":n.rId})}parseOpen(o){return o.name==="sheet"&&(this.model={name:f.xmlDecode(o.attributes.name),id:parseInt(o.attributes.sheetId,10),state:o.attributes.state,rId:o.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(t,v,m){const f=t("../base-xform");v.exports=class extends f{render(a,o){a.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:o.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 f=t("../base-xform");v.exports=class extends f{render(a,o){a.leafNode("workbookPr",{date1904:o.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 f=t("../base-xform");v.exports=class extends f{render(a,o){const n={xWindow:o.x||0,yWindow:o.y||0,windowWidth:o.width||12e3,windowHeight:o.height||24e3,firstSheet:o.firstSheet,activeTab:o.activeTab};o.visibility&&o.visibility!=="visible"&&(n.visibility=o.visibility),a.leafNode("workbookView",n)}parseOpen(a){if(a.name==="workbookView"){const o=this.model={},n=function(r,u,s){const i=u!==void 0?o[r]=u:s;i!==void 0&&(o[r]=i)},e=function(r,u,s){const i=u!==void 0?o[r]=parseInt(u,10):s;i!==void 0&&(o[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 f=t("../../../utils/under-dash"),a=t("../../../utils/col-cache"),o=t("../../../utils/xml-stream"),n=t("../base-xform"),e=t("../static-xform"),r=t("../list-xform"),u=t("./defined-name-xform"),s=t("./sheet-xform"),i=t("./workbook-view-xform"),d=t("./workbook-properties-xform"),h=t("./workbook-calc-properties-xform");class c extends n{constructor(){super(),this.map={fileVersion:c.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 s}),definedNames:new r({tag:"definedNames",count:!1,childXform:new u}),calcPr:new h}}prepare(p){p.sheets=p.worksheets;const S=[];let C=0;p.sheets.forEach(T=>{if(T.pageSetup&&T.pageSetup.printArea&&T.pageSetup.printArea.split("&&").forEach(F=>{const z=F.split(":"),D={name:"_xlnm.Print_Area",ranges:[`'${T.name}'!$${z[0]}:$${z[1]}`],localSheetId:C};S.push(D)}),T.pageSetup&&(T.pageSetup.printTitlesRow||T.pageSetup.printTitlesColumn)){const F=[];if(T.pageSetup.printTitlesColumn){const D=T.pageSetup.printTitlesColumn.split(":");F.push(`'${T.name}'!$${D[0]}:$${D[1]}`)}if(T.pageSetup.printTitlesRow){const D=T.pageSetup.printTitlesRow.split(":");F.push(`'${T.name}'!$${D[0]}:$${D[1]}`)}const z={name:"_xlnm.Print_Titles",ranges:F,localSheetId:C};S.push(z)}C++}),S.length&&(p.definedNames=p.definedNames.concat(S)),(p.media||[]).forEach((T,F)=>{T.name=T.type+(F+1)})}render(p,S){p.openXml(o.StdDocAttributes),p.openNode("workbook",c.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((D,N)=>(D[N.Id]=N,D),{}),C=[];let T,F=0;(p.sheets||[]).forEach(D=>{const N=S[D.rId];N&&(T=p.worksheetHash["xl/"+N.Target.replace(/^(\s|\/xl\/)+/,"")],T&&(T.name=D.name,T.id=D.id,T.state=D.state,C[F++]=T))});const z=[];f.each(p.definedNames,D=>{if(D.name==="_xlnm.Print_Area"){if(T=C[D.localSheetId],T){T.pageSetup||(T.pageSetup={});const N=a.decodeEx(D.ranges[0]);T.pageSetup.printArea=T.pageSetup.printArea?`${T.pageSetup.printArea}&&${N.dimensions}`:N.dimensions}}else if(D.name==="_xlnm.Print_Titles"){if(T=C[D.localSheetId],T){T.pageSetup||(T.pageSetup={});const N=D.ranges.join(","),L=/\$/g,U=/\$\d+:\$\d+/,q=N.match(U);if(q&&q.length){const k=q[0];T.pageSetup.printTitlesRow=k.replace(L,"")}const A=/\$[A-Z]+:\$[A-Z]+/,M=N.match(A);if(M&&M.length){const k=M[0];T.pageSetup.printTitlesColumn=k.replace(L,"")}}}else z.push(D)}),p.definedNames=z,p.media.forEach((D,N)=>{D.index=N})}}c.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"},c.STATIC_XFORMS={fileVersion:new e({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},v.exports=c},{"../../../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 f=t("../strings/rich-text-xform"),a=t("../../../utils/utils"),o=t("../base-xform"),n=v.exports=function(e){this.model=e};a.inherits(n,o,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new f),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 f=t("../../../utils/xml-stream"),a=t("../../../utils/utils"),o=t("../base-xform"),n=t("./comment-xform"),e=v.exports=function(){this.map={comment:new n}};a.inherits(e,o,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(r,u){u=u||this.model,r.openXml(f.StdDocAttributes),r.openNode("comments",e.COMMENTS_ATTRIBUTES),r.openNode("authors"),r.leafNode("author",null,"Author"),r.closeNode(),r.openNode("commentList"),u.comments.forEach(s=>{this.map.comment.render(r,s)}),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 f=t("../../base-xform");v.exports=class extends f{constructor(a){super(),this._model=a}get tag(){return this._model&&this._model.tag}render(a,o,n){(o===n[2]||this.tag==="x:SizeWithCells"&&o===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 f=t("../../base-xform");v.exports=class extends f{constructor(a){super(),this._model=a}get tag(){return this._model&&this._model.tag}render(a,o){a.leafNode(this.tag,null,o)}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 f=t("../base-xform");v.exports=class extends f{get tag(){return"x:Anchor"}getAnchorRect(a){const o=Math.floor(a.left),n=Math.floor(68*(a.left-o)),e=Math.floor(a.top),r=Math.floor(18*(a.top-e)),u=Math.floor(a.right),s=Math.floor(68*(a.right-u)),i=Math.floor(a.bottom);return[o,n,e,r,u,s,i,Math.floor(18*(a.bottom-i))]}getDefaultRect(a){const o=a.col,n=Math.max(a.row-2,0);return[o,6,n,14,o+2,2,n+4,16]}render(a,o){const n=o.anchor?this.getAnchorRect(o.anchor):this.getDefaultRect(o.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 f=t("../base-xform"),a=t("./vml-anchor-xform"),o=t("./style/vml-protection-xform"),n=t("./style/vml-position-xform"),e=["twoCells","oneCells","absolute"];v.exports=class extends f{constructor(){super(),this.map={"x:Anchor":new a,"x:Locked":new o({tag:"x:Locked"}),"x:LockText":new o({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:s,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,s.locked),r.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(r,s.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 f=t("../../../utils/xml-stream"),a=t("../base-xform"),o=t("./vml-shape-xform");class n extends a{constructor(){super(),this.map={"v:shape":new o}}get tag(){return"xml"}render(r,u){r.openXml(f.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((s,i)=>{this.map["v:shape"].render(r,s,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(s=>{s.br?this.map["xdr:twoCellAnchor"].reconcile(s,u):this.map["xdr:oneCellAnchor"].reconcile(s,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 f=t("../base-xform"),a=t("./vml-textbox-xform"),o=t("./vml-client-data-xform");class n extends f{constructor(){super(),this.map={"v:textbox":new a,"x:ClientData":new o}}get tag(){return"v:shape"}render(r,u,s){r.openNode("v:shape",n.V_SHAPE_ATTRIBUTES(u,s)),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 f=t("../base-xform");v.exports=class extends f{get tag(){return"v:textbox"}conversionUnit(a,o,n){return`${parseFloat(a)*o.toFixed(2)}${n}`}reverseConversionUnit(a){return(a||"").split(",").map(o=>Number(parseFloat(this.conversionUnit(parseFloat(o),.1,"")).toFixed(2)))}render(a,o){const n={style:"mso-direction-alt:auto"};if(o&&o.note){let{inset:e}=o.note&&o.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 f=t("./base-xform");v.exports=class extends f{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,o){this.model[a]=o.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 f=t("../base-xform");v.exports=class extends f{render(a,o){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,o.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 f=t("../base-xform");v.exports=class extends f{render(a,o){a.openNode("TitlesOfParts"),a.openNode("vt:vector",{size:o.length,baseType:"lpstr"}),o.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 f=t("../../../utils/xml-stream"),a=t("../base-xform"),o=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 o({tag:"Company"}),Manager:new o({tag:"Manager"}),HeadingPairs:new n,TitleOfParts:new e}}render(s,i){s.openXml(f.StdDocAttributes),s.openNode("Properties",r.PROPERTY_ATTRIBUTES),s.leafNode("Application",void 0,"Microsoft Excel"),s.leafNode("DocSecurity",void 0,"0"),s.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(s,i.worksheets),this.map.TitleOfParts.render(s,i.worksheets),this.map.Company.render(s,i.company||""),this.map.Manager.render(s,i.manager),s.leafNode("LinksUpToDate",void 0,"false"),s.leafNode("SharedDoc",void 0,"false"),s.leafNode("HyperlinksChanged",void 0,"false"),s.leafNode("AppVersion",void 0,"16.0300"),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"Properties":return!0;default:return this.parser=this.map[s.name],!!this.parser&&(this.parser.parseOpen(s),!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"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 f=t("../../../utils/xml-stream"),a=t("../base-xform");class o extends a{render(e,r){e.openXml(f.StdDocAttributes),e.openNode("Types",o.PROPERTY_ATTRIBUTES);const u={};(r.media||[]).forEach(s=>{if(s.type==="image"){const i=s.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(s=>{const i=`/xl/worksheets/sheet${s.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(s=>{e.leafNode("Override",{PartName:"/xl/tables/"+s.target,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),r.drawings&&r.drawings.forEach(s=>{e.leafNode("Override",{PartName:`/xl/drawings/${s.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(s=>{let{commentName:i}=s;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}}o.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},v.exports=o},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(t,v,m){const f=t("../../../utils/xml-stream"),a=t("../base-xform"),o=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 o({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 o({tag:"dcterms:created",attrs:r.DateAttrs,format:r.DateFormat}),"dcterms:modified":new o({tag:"dcterms:modified",attrs:r.DateAttrs,format:r.DateFormat})}}render(s,i){s.openXml(f.StdDocAttributes),s.openNode("cp:coreProperties",r.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(s,i.creator),this.map["dc:title"].render(s,i.title),this.map["dc:subject"].render(s,i.subject),this.map["dc:description"].render(s,i.description),this.map["dc:identifier"].render(s,i.identifier),this.map["dc:language"].render(s,i.language),this.map["cp:keywords"].render(s,i.keywords),this.map["cp:category"].render(s,i.category),this.map["cp:lastModifiedBy"].render(s,i.lastModifiedBy),this.map["cp:lastPrinted"].render(s,i.lastPrinted),this.map["cp:revision"].render(s,i.revision),this.map["cp:version"].render(s,i.version),this.map["cp:contentStatus"].render(s,i.contentStatus),this.map["cp:contentType"].render(s,i.contentType),this.map["dcterms:created"].render(s,i.created),this.map["dcterms:modified"].render(s,i.modified),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[s.name],this.parser)return this.parser.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.parser=void 0),!0;switch(s){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: "+s)}}}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 f=t("../base-xform");v.exports=class extends f{render(a,o){a.leafNode("Relationship",o)}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 f=t("../../../utils/xml-stream"),a=t("../base-xform"),o=t("./relationship-xform");class n extends a{constructor(){super(),this.map={Relationship:new o}}render(r,u){u=u||this._values,r.openXml(f.StdDocAttributes),r.openNode("Relationships",n.RELATIONSHIPS_ATTRIBUTES),u.forEach(s=>{this.map.Relationship.render(r,s)}),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 f=t("../base-xform");v.exports=class extends f{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,o){if(a&&a.rId){const n=o.rels[a.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(n){const e=n[1],r=o.mediaIndex[e];return o.media[r]}}}}},{"../base-xform":32}],57:[function(t,v,m){const f=t("../base-xform"),a=t("./blip-xform");v.exports=class extends f{constructor(){super(),this.map={"a:blip":new a}}get tag(){return"xdr:blipFill"}render(o,n){o.openNode(this.tag),this.map["a:blip"].render(o,n),o.openNode("a:stretch"),o.leafNode("a:fillRect"),o.closeNode(),o.closeNode()}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:this.reset();break;default:this.parser=this.map[o.name],this.parser&&this.parser.parseOpen(o)}return!0}parseText(){}parseClose(o){if(this.parser)return this.parser.parseClose(o)||(this.parser=void 0),!0;switch(o){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 f=t("../base-xform");v.exports=class extends f{get tag(){return"a:blip"}render(a,o){a.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":o.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 f=t("../base-xform");v.exports=class extends f{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 f=t("../base-xform"),a=t("./hlink-click-xform"),o=t("./ext-lst-xform");v.exports=class extends f{constructor(){super(),this.map={"a:hlinkClick":new a,"a:extLst":new o}}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 f=t("../base-xform"),a=t("../simple/integer-xform");v.exports=class extends f{constructor(o){super(),this.tag=o.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(o,n){o.openNode(this.tag),this.map["xdr:col"].render(o,n.nativeCol),this.map["xdr:colOff"].render(o,n.nativeColOff),this.map["xdr:row"].render(o,n.nativeRow),this.map["xdr:rowOff"].render(o,n.nativeRowOff),o.closeNode()}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:this.reset();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.parser=void 0),!0;switch(o){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 f=t("../../../utils/col-cache"),a=t("../../../utils/xml-stream"),o=t("../base-xform"),n=t("./two-cell-anchor-xform"),e=t("./one-cell-anchor-xform");class r extends o{constructor(){super(),this.map={"xdr:twoCellAnchor":new n,"xdr:oneCellAnchor":new e}}prepare(s){s.anchors.forEach((i,d)=>{i.anchorType=function(h){return(typeof h.range=="string"?f.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(s,i){s.openXml(a.StdDocAttributes),s.openNode(this.tag,r.DRAWING_ATTRIBUTES),i.anchors.forEach(d=>{this.map[d.anchorType].render(s,d)}),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case this.tag:this.reset(),this.model={anchors:[]};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.model.anchors.push(this.parser.model),this.parser=void 0),!0;switch(s){case this.tag:return!1;default:return!0}}reconcile(s,i){s.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 f=t("../base-xform");v.exports=class extends f{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 f=t("../base-xform");v.exports=class extends f{constructor(a){super(),this.tag=a.tag,this.map={}}render(a,o){a.openNode(this.tag);const n=Math.floor(9525*o.width),e=Math.floor(9525*o.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 f=t("../base-xform");v.exports=class extends f{get tag(){return"a:hlinkClick"}render(a,o){o.hyperlinks&&o.hyperlinks.rId&&a.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":o.hyperlinks.rId,tooltip:o.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 f=t("../base-xform"),a=t("./c-nv-pr-xform"),o=t("./c-nv-pic-pr-xform");v.exports=class extends f{constructor(){super(),this.map={"xdr:cNvPr":new a,"xdr:cNvPicPr":new o}}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 f=t("./base-cell-anchor-xform"),a=t("../static-xform"),o=t("./cell-position-xform"),n=t("./ext-xform"),e=t("./pic-xform");v.exports=class extends f{constructor(){super(),this.map={"xdr:from":new o({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 f=t("../base-xform"),a=t("../static-xform"),o=t("./blip-fill-xform"),n=t("./nv-pic-pr-xform"),e=t("./sp-pr");v.exports=class extends f{constructor(){super(),this.map={"xdr:nvPicPr":new n,"xdr:blipFill":new o,"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 f=t("./base-cell-anchor-xform"),a=t("../static-xform"),o=t("./cell-position-xform"),n=t("./pic-xform");v.exports=class extends f{constructor(){super(),this.map={"xdr:from":new o({tag:"xdr:from"}),"xdr:to":new o({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 f=t("./base-xform");v.exports=class extends f{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,o){const{childXform:n}=this;a&&a.forEach((e,r)=>{o.index=r,n.prepare(e,o)})}render(a,o){if(this.always||o&&o.length){a.openNode(this.tag,this.$),this.count&&a.addAttribute(this.$count,o&&o.length||0);const{childXform:n}=this;(o||[]).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,o){if(a){const{childXform:n}=this;a.forEach(e=>{n.reconcile(e,o)})}}}},{"./base-xform":32}],72:[function(t,v,m){const f=t("../../../utils/col-cache"),a=t("../base-xform");v.exports=class extends a{get tag(){return"autoFilter"}render(o,n){if(n)if(typeof n=="string")o.leafNode("autoFilter",{ref:n});else{const e=function(s){return typeof s=="string"?s:f.getAddress(s.row,s.column).address},r=e(n.from),u=e(n.to);r&&u&&o.leafNode("autoFilter",{ref:`${r}:${u}`})}}parseOpen(o){o.name==="autoFilter"&&(this.model=o.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(t,v,m){const f=t("../../../utils/utils"),a=t("../base-xform"),o=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,s){const i=s.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&&s.comments.push({...u.comment,ref:u.address}),u.type){case n.ValueType.String:case n.ValueType.RichText:s.sharedStrings&&(u.ssId=s.sharedStrings.add(u.value));break;case n.ValueType.Date:s.date1904&&(u.date1904=!0);break;case n.ValueType.Hyperlink:s.sharedStrings&&u.text!==void 0&&u.text!==null&&(u.ssId=s.sharedStrings.add(u.text)),s.hyperlinks.push({address:u.address,target:u.hyperlink,tooltip:u.tooltip});break;case n.ValueType.Merge:s.merges.add(u);break;case n.ValueType.Formula:if(s.date1904&&(u.date1904=!0),u.shareType==="shared"&&(u.si=s.siFormulae++),u.formula)s.formulae[u.address]=u;else if(u.sharedFormula){const d=s.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=s.siFormulae++,d.range=new o(d.address,u.address)):d.range&&d.range.expandToAddress(u.address),u.si=d.si}}}renderFormula(u,s){let i=null;switch(s.shareType){case"shared":i={t:"shared",ref:s.ref||s.range.range,si:s.si};break;case"array":i={t:"array",ref:s.ref};break;default:s.si!==void 0&&(i={t:"shared",si:s.si})}switch(r(s.result)){case n.ValueType.Null:u.leafNode("f",i,s.formula);break;case n.ValueType.String:u.addAttribute("t","str"),u.leafNode("f",i,s.formula),u.leafNode("v",null,s.result);break;case n.ValueType.Number:u.leafNode("f",i,s.formula),u.leafNode("v",null,s.result);break;case n.ValueType.Boolean:u.addAttribute("t","b"),u.leafNode("f",i,s.formula),u.leafNode("v",null,s.result?1:0);break;case n.ValueType.Error:u.addAttribute("t","e"),u.leafNode("f",i,s.formula),u.leafNode("v",null,s.result.error);break;case n.ValueType.Date:u.leafNode("f",i,s.formula),u.leafNode("v",null,f.dateToExcel(s.result,s.date1904));break;default:throw new Error("I could not understand type of value")}}render(u,s){if(s.type!==n.ValueType.Null||s.styleId){switch(u.openNode("c"),u.addAttribute("r",s.address),s.styleId&&u.addAttribute("s",s.styleId),s.type){case n.ValueType.Null:break;case n.ValueType.Number:u.leafNode("v",null,s.value);break;case n.ValueType.Boolean:u.addAttribute("t","b"),u.leafNode("v",null,s.value?"1":"0");break;case n.ValueType.Error:u.addAttribute("t","e"),u.leafNode("v",null,s.value.error);break;case n.ValueType.String:case n.ValueType.RichText:s.ssId!==void 0?(u.addAttribute("t","s"),u.leafNode("v",null,s.ssId)):s.value&&s.value.richText?(u.addAttribute("t","inlineStr"),u.openNode("is"),s.value.richText.forEach(i=>{this.richTextXForm.render(u,i)}),u.closeNode("is")):(u.addAttribute("t","str"),u.leafNode("v",null,s.value));break;case n.ValueType.Date:u.leafNode("v",null,f.dateToExcel(s.value,s.date1904));break;case n.ValueType.Hyperlink:s.ssId!==void 0?(u.addAttribute("t","s"),u.leafNode("v",null,s.ssId)):(u.addAttribute("t","str"),u.leafNode("v",null,s.text));break;case n.ValueType.Formula:this.renderFormula(u,s);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:s}=this;if(s.formula||s.shareType)s.type=n.ValueType.Formula,s.value&&(this.t==="str"?s.result=f.xmlDecode(s.value):this.t==="b"?s.result=parseInt(s.value,10)!==0:this.t==="e"?s.result={error:s.value}:s.result=parseFloat(s.value),s.value=void 0);else if(s.value!==void 0)switch(this.t){case"s":s.type=n.ValueType.String,s.value=parseInt(s.value,10);break;case"str":s.type=n.ValueType.String,s.value=f.xmlDecode(s.value);break;case"inlineStr":s.type=n.ValueType.String;break;case"b":s.type=n.ValueType.Boolean,s.value=parseInt(s.value,10)!==0;break;case"e":s.type=n.ValueType.Error,s.value={error:s.value};break;default:s.type=n.ValueType.Number,s.value=parseFloat(s.value)}else s.styleId?s.type=n.ValueType.Null:s.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,s){const i=u.styleId&&s.styles&&s.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"&&s.sharedStrings&&(u.value=s.sharedStrings.getString(u.value)),u.value.richText&&(u.type=n.ValueType.RichText);break;case n.ValueType.Number:i&&f.isDateFmt(i.numFmt)&&(u.type=n.ValueType.Date,u.value=f.excelToDate(u.value,s.date1904));break;case n.ValueType.Formula:u.result!==void 0&&i&&f.isDateFmt(i.numFmt)&&(u.result=f.excelToDate(u.result,s.date1904)),u.shareType==="shared"&&(u.ref?s.formulae[u.si]=u.address:(u.sharedFormula=s.formulae[u.si],delete u.shareType),delete u.si)}const d=s.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=s.commentsMap&&s.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 f=t("../../base-xform");v.exports=class extends f{get tag(){return"x14:cfIcon"}render(a,o){a.leafNode(this.tag,{iconSet:o.iconSet,iconId:o.iconId})}parseOpen(a){let{attributes:o}=a;this.model={iconSet:o.iconSet,iconId:f.toIntValue(o.iconId)}}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],75:[function(t,v,m){const{v4:f}=t("uuid"),a=t("../../base-xform"),o=t("../../composite-xform"),n=t("./databar-ext-xform"),e=t("./icon-set-ext-xform"),r={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class u extends o{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=`{${f()}}`.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||`{${f()}}`}),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 f=t("../../composite-xform"),a=t("./f-ext-xform");v.exports=class extends f{constructor(){super(),this.map={"xm:f":this.fExtXform=new a}}get tag(){return"x14:cfvo"}render(o,n){o.openNode(this.tag,{type:n.type}),n.value!==void 0&&this.fExtXform.render(o,n.value),o.closeNode()}createNewModel(o){return{type:o.attributes.type}}onParserClose(o,n){switch(o){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 f=t("../../composite-xform"),a=t("./sqref-ext-xform"),o=t("./cf-rule-ext-xform");v.exports=class extends f{constructor(){super(),this.map={"xm:sqref":this.sqRef=new a,"x14:cfRule":this.cfRule=new o}}get tag(){return"x14:conditionalFormatting"}prepare(n,e){n.rules.forEach(r=>{this.cfRule.prepare(r,e)})}render(n,e){e.rules.some(o.isExt)&&(n.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),e.rules.filter(o.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 f=t("../../composite-xform"),a=t("./cf-rule-ext-xform"),o=t("./conditional-formatting-ext-xform");v.exports=class extends f{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new o}}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 f=t("../../base-xform"),a=t("../../composite-xform"),o=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 o("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new o("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new o("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new o("x14:axisColor")}}static isExt(e){return!e.gradient}get tag(){return"x14:dataBar"}render(e,r){e.openNode(this.tag,{minLength:f.toIntAttribute(r.minLength,0,!0),maxLength:f.toIntAttribute(r.maxLength,100,!0),border:f.toBoolAttribute(r.border,!1),gradient:f.toBoolAttribute(r.gradient,!0),negativeBarColorSameAsPositive:f.toBoolAttribute(r.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:f.toBoolAttribute(r.negativeBarBorderColorSameAsPositive,!0),axisPosition:f.toAttribute(r.axisPosition,"auto"),direction:f.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:f.toIntValue(r.minLength,0),maxLength:f.toIntValue(r.maxLength,100),border:f.toBoolValue(r.border,!1),gradient:f.toBoolValue(r.gradient,!0),negativeBarColorSameAsPositive:f.toBoolValue(r.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:f.toBoolValue(r.negativeBarBorderColorSameAsPositive,!0),axisPosition:f.toStringValue(r.axisPosition,"auto"),direction:f.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 f=t("../../base-xform");v.exports=class extends f{get tag(){return"xm:f"}render(a,o){a.leafNode(this.tag,null,o)}parseOpen(){this.model=""}parseText(a){this.model+=a}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],81:[function(t,v,m){const f=t("../../base-xform"),a=t("../../composite-xform"),o=t("./cfvo-ext-xform"),n=t("./cf-icon-ext-xform");v.exports=class extends a{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new o,"x14:cfIcon":this.cfIconXform=new n}}get tag(){return"x14:iconSet"}render(e,r){e.openNode(this.tag,{iconSet:f.toStringAttribute(r.iconSet),reverse:f.toBoolAttribute(r.reverse,!1),showValue:f.toBoolAttribute(r.showValue,!0),custom:f.toBoolAttribute(r.icons,!1)}),r.cfvo.forEach(u=>{this.cfvoXform.render(e,u)}),r.icons&&r.icons.forEach((u,s)=>{u.iconId=s,this.cfIconXform.render(e,u)}),e.closeNode()}createNewModel(e){let{attributes:r}=e;return{cfvo:[],iconSet:f.toStringValue(r.iconSet,"3TrafficLights"),reverse:f.toBoolValue(r.reverse,!1),showValue:f.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 f=t("../../base-xform");v.exports=class extends f{get tag(){return"xm:sqref"}render(a,o){a.leafNode(this.tag,null,o)}parseOpen(){this.model=""}parseText(a){this.model+=a}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],83:[function(t,v,m){const f=t("../../base-xform"),a=t("../../composite-xform"),o=t("../../../../doc/range"),n=t("./databar-xform"),e=t("./ext-lst-ref-xform"),r=t("./formula-xform"),u=t("./color-scale-xform"),s=t("./icon-set-xform"),i={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},d=c=>{const{type:g,operator:p}=c;switch(g){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:g};default:return{type:g,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 s}}get tag(){return"cfRule"}static isPrimitive(g){return g.type!=="iconSet"||!g.custom&&!i[g.iconSet]}render(g,p){switch(p.type){case"expression":this.renderExpression(g,p);break;case"cellIs":this.renderCellIs(g,p);break;case"top10":this.renderTop10(g,p);break;case"aboveAverage":this.renderAboveAverage(g,p);break;case"dataBar":this.renderDataBar(g,p);break;case"colorScale":this.renderColorScale(g,p);break;case"iconSet":this.renderIconSet(g,p);break;case"containsText":this.renderText(g,p);break;case"timePeriod":this.renderTimePeriod(g,p)}}renderExpression(g,p){g.openNode(this.tag,{type:"expression",dxfId:p.dxfId,priority:p.priority}),this.formulaXform.render(g,p.formulae[0]),g.closeNode()}renderCellIs(g,p){g.openNode(this.tag,{type:"cellIs",dxfId:p.dxfId,priority:p.priority,operator:p.operator}),p.formulae.forEach(S=>{this.formulaXform.render(g,S)}),g.closeNode()}renderTop10(g,p){g.leafNode(this.tag,{type:"top10",dxfId:p.dxfId,priority:p.priority,percent:f.toBoolAttribute(p.percent,!1),bottom:f.toBoolAttribute(p.bottom,!1),rank:f.toIntValue(p.rank,10,!0)})}renderAboveAverage(g,p){g.leafNode(this.tag,{type:"aboveAverage",dxfId:p.dxfId,priority:p.priority,aboveAverage:f.toBoolAttribute(p.aboveAverage,!0)})}renderDataBar(g,p){g.openNode(this.tag,{type:"dataBar",priority:p.priority}),this.databarXform.render(g,p),this.extLstRefXform.render(g,p),g.closeNode()}renderColorScale(g,p){g.openNode(this.tag,{type:"colorScale",priority:p.priority}),this.colorScaleXform.render(g,p),g.closeNode()}renderIconSet(g,p){h.isPrimitive(p)&&(g.openNode(this.tag,{type:"iconSet",priority:p.priority}),this.iconSetXform.render(g,p),g.closeNode())}renderText(g,p){g.openNode(this.tag,{type:p.operator,dxfId:p.dxfId,priority:p.priority,operator:f.toStringAttribute(p.operator,"containsText")});const S=(C=>{if(C.formulae&&C.formulae[0])return C.formulae[0];const T=new o(C.ref),{tl:F}=T;switch(C.operator){case"containsText":return`NOT(ISERROR(SEARCH("${C.text}",${F})))`;case"containsBlanks":return`LEN(TRIM(${F}))=0`;case"notContainsBlanks":return`LEN(TRIM(${F}))>0`;case"containsErrors":return`ISERROR(${F})`;case"notContainsErrors":return`NOT(ISERROR(${F}))`;default:return}})(p);S&&this.formulaXform.render(g,S),g.closeNode()}renderTimePeriod(g,p){g.openNode(this.tag,{type:"timePeriod",dxfId:p.dxfId,priority:p.priority,timePeriod:p.timePeriod});const S=(C=>{if(C.formulae&&C.formulae[0])return C.formulae[0];const T=new o(C.ref),{tl:F}=T;switch(C.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${F},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${F},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${F},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${F},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${F},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${F},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${F},1)=TODAY()-1`;case"today":return`FLOOR(${F},1)=TODAY()`;case"tomorrow":return`FLOOR(${F},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${F},1)<=6,FLOOR(${F},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${F})=MONTH(EDATE(TODAY(),0-1)),YEAR(${F})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${F})=MONTH(TODAY()),YEAR(${F})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${F})=MONTH(EDATE(TODAY(),0+1)),YEAR(${F})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(p);S&&this.formulaXform.render(g,S),g.closeNode()}createNewModel(g){let{attributes:p}=g;return{...d(p),dxfId:f.toIntValue(p.dxfId),priority:f.toIntValue(p.priority),timePeriod:p.timePeriod,percent:f.toBoolValue(p.percent),bottom:f.toBoolValue(p.bottom),rank:f.toIntValue(p.rank),aboveAverage:f.toBoolValue(p.aboveAverage)}}onParserClose(g,p){switch(g){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 f=t("../../base-xform");v.exports=class extends f{get tag(){return"cfvo"}render(a,o){a.leafNode(this.tag,{type:o.type,val:o.value})}parseOpen(a){this.model={type:a.attributes.type,value:f.toFloatValue(a.attributes.val)}}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],85:[function(t,v,m){const f=t("../../composite-xform"),a=t("../../style/color-xform"),o=t("./cfvo-xform");v.exports=class extends f{constructor(){super(),this.map={cfvo:this.cfvoXform=new o,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 f=t("../../composite-xform"),a=t("./cf-rule-xform");v.exports=class extends f{constructor(){super(),this.map={cfRule:new a}}get tag(){return"conditionalFormatting"}render(o,n){n.rules.some(a.isPrimitive)&&(o.openNode(this.tag,{sqref:n.ref}),n.rules.forEach(e=>{a.isPrimitive(e)&&(e.ref=n.ref,this.map.cfRule.render(o,e))}),o.closeNode())}createNewModel(o){let{attributes:n}=o;return{ref:n.sqref,rules:[]}}onParserClose(o,n){this.model.rules.push(n.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(t,v,m){const f=t("../../base-xform"),a=t("./conditional-formatting-xform");v.exports=class extends f{constructor(){super(),this.cfXform=new a}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(o,n){let e=o.reduce((r,u)=>Math.max(r,...u.rules.map(s=>s.priority||0)),1);o.forEach(r=>{r.rules.forEach(u=>{u.priority||(u.priority=e++),u.style&&(u.dxfId=n.styles.addDxfStyle(u.style))})})}render(o,n){n.forEach(e=>{this.cfXform.render(o,e)})}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case"conditionalFormatting":return this.parser=this.cfXform,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.push(this.parser.model),this.parser=void 0,!1))}reconcile(o,n){o.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 f=t("../../composite-xform"),a=t("../../style/color-xform"),o=t("./cfvo-xform");v.exports=class extends f{constructor(){super(),this.map={cfvo:this.cfvoXform=new o,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 f=t("../../base-xform"),a=t("../../composite-xform");class o extends f{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 o}}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 f=t("../../base-xform");v.exports=class extends f{get tag(){return"formula"}render(a,o){a.leafNode(this.tag,null,o)}parseOpen(){this.model=""}parseText(a){this.model+=a}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],91:[function(t,v,m){const f=t("../../base-xform"),a=t("../../composite-xform"),o=t("./cfvo-xform");v.exports=class extends a{constructor(){super(),this.map={cfvo:this.cfvoXform=new o}}get tag(){return"iconSet"}render(n,e){n.openNode(this.tag,{iconSet:f.toStringAttribute(e.iconSet,"3TrafficLights"),reverse:f.toBoolAttribute(e.reverse,!1),showValue:f.toBoolAttribute(e.showValue,!0)}),e.cfvo.forEach(r=>{this.cfvoXform.render(n,r)}),n.closeNode()}createNewModel(n){let{attributes:e}=n;return{iconSet:f.toStringValue(e.iconSet,"3TrafficLights"),reverse:f.toBoolValue(e.reverse),showValue:f.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 f=t("../../../utils/utils"),a=t("../base-xform");v.exports=class extends a{get tag(){return"col"}prepare(o,n){const e=n.styles.addStyleModel(o.style||{});e&&(o.styleId=e)}render(o,n){o.openNode("col"),o.addAttribute("min",n.min),o.addAttribute("max",n.max),n.width&&o.addAttribute("width",n.width),n.styleId&&o.addAttribute("style",n.styleId),n.hidden&&o.addAttribute("hidden","1"),n.bestFit&&o.addAttribute("bestFit","1"),n.outlineLevel&&o.addAttribute("outlineLevel",n.outlineLevel),n.collapsed&&o.addAttribute("collapsed","1"),o.addAttribute("customWidth","1"),o.closeNode()}parseOpen(o){if(o.name==="col"){const n=this.model={min:parseInt(o.attributes.min||"0",10),max:parseInt(o.attributes.max||"0",10),width:o.attributes.width===void 0?void 0:parseFloat(o.attributes.width||"0")};return o.attributes.style&&(n.styleId=parseInt(o.attributes.style,10)),f.parseBoolean(o.attributes.hidden)&&(n.hidden=!0),f.parseBoolean(o.attributes.bestFit)&&(n.bestFit=!0),o.attributes.outlineLevel&&(n.outlineLevel=parseInt(o.attributes.outlineLevel,10)),f.parseBoolean(o.attributes.collapsed)&&(n.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(o,n){o.styleId&&(o.style=n.styles.getStyleModel(o.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(t,v,m){const f=t("../../../utils/under-dash"),a=t("../../../utils/utils"),o=t("../../../utils/col-cache"),n=t("../base-xform"),e=t("../../../doc/range");function r(s,i,d,h){const c=i[d];c!==void 0?s[d]=c:h!==void 0&&(s[d]=h)}function u(s,i,d,h){const c=i[d];c!==void 0&&(s[d]=a.parseBoolean(c))}v.exports=class extends n{get tag(){return"dataValidations"}render(s,i){const d=function(h){const c=f.map(h,(S,C)=>({address:C,dataValidation:S,marked:!1})).sort((S,C)=>f.strcmp(S.address,C.address)),g=f.keyBy(c,"address"),p=(S,C,T)=>{for(let F=0;F<C;F++){const z=o.encodeAddress(S.row+F,T);if(!h[z]||!f.isEqual(h[S.address],h[z]))return!1}return!0};return c.map(S=>{if(!S.marked){const C=o.decodeEx(S.address);if(C.dimensions)return g[C.dimensions].marked=!0,{...S.dataValidation,sqref:S.address};let T=1,F=o.encodeAddress(C.row+T,C.col);for(;h[F]&&f.isEqual(S.dataValidation,h[F]);)T++,F=o.encodeAddress(C.row+T,C.col);let z=1;for(;p(C,T,C.col+z);)z++;for(let D=0;D<T;D++)for(let N=0;N<z;N++)F=o.encodeAddress(C.row+D,C.col+N),g[F].marked=!0;if(T>1||z>1){const D=C.row+(T-1),N=C.col+(z-1);return{...S.dataValidation,sqref:`${S.address}:${o.encodeAddress(D,N)}`}}return{...S.dataValidation,sqref:S.address}}return null}).filter(Boolean)}(i);d.length&&(s.openNode("dataValidations",{count:d.length}),d.forEach(h=>{s.openNode("dataValidation"),h.type!=="any"&&(s.addAttribute("type",h.type),h.operator&&h.type!=="list"&&h.operator!=="between"&&s.addAttribute("operator",h.operator),h.allowBlank&&s.addAttribute("allowBlank","1")),h.showInputMessage&&s.addAttribute("showInputMessage","1"),h.promptTitle&&s.addAttribute("promptTitle",h.promptTitle),h.prompt&&s.addAttribute("prompt",h.prompt),h.showErrorMessage&&s.addAttribute("showErrorMessage","1"),h.errorStyle&&s.addAttribute("errorStyle",h.errorStyle),h.errorTitle&&s.addAttribute("errorTitle",h.errorTitle),h.error&&s.addAttribute("error",h.error),s.addAttribute("sqref",h.sqref),(h.formulae||[]).forEach((c,g)=>{s.openNode("formula"+(g+1)),h.type==="date"?s.writeText(a.dateToExcel(new Date(c))):s.writeText(c),s.closeNode()}),s.closeNode()}),s.closeNode())}parseOpen(s){switch(s.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=s.attributes.sqref;const i={type:s.attributes.type||"any",formulae:[]};switch(s.attributes.type&&u(i,s.attributes,"allowBlank"),u(i,s.attributes,"showInputMessage"),u(i,s.attributes,"showErrorMessage"),i.type){case"any":case"list":case"custom":break;default:r(i,s.attributes,"operator","between")}return r(i,s.attributes,"promptTitle"),r(i,s.attributes,"prompt"),r(i,s.attributes,"errorStyle"),r(i,s.attributes,"errorTitle"),r(i,s.attributes,"error"),this._dataValidation=i,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(s){this._formula&&this._formula.push(s)}parseClose(s){switch(s){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 f=t("../base-xform");v.exports=class extends f{get tag(){return"dimension"}render(a,o){o&&a.leafNode("dimension",{ref:o})}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 f=t("../base-xform");v.exports=class extends f{get tag(){return"drawing"}render(a,o){o&&a.leafNode(this.tag,{"r:id":o.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 f=t("../composite-xform"),a=t("./cf-ext/conditional-formattings-ext-xform");class o extends f{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 f{constructor(){super(),this.map={ext:this.ext=new o}}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 f=t("../base-xform");v.exports=class extends f{get tag(){return"headerFooter"}render(a,o){if(o){a.addRollback();let n=!1;a.openNode("headerFooter"),o.differentFirst&&(a.addAttribute("differentFirst","1"),n=!0),o.differentOddEven&&(a.addAttribute("differentOddEven","1"),n=!0),o.oddHeader&&typeof o.oddHeader=="string"&&(a.leafNode("oddHeader",null,o.oddHeader),n=!0),o.oddFooter&&typeof o.oddFooter=="string"&&(a.leafNode("oddFooter",null,o.oddFooter),n=!0),o.evenHeader&&typeof o.evenHeader=="string"&&(a.leafNode("evenHeader",null,o.evenHeader),n=!0),o.evenFooter&&typeof o.evenFooter=="string"&&(a.leafNode("evenFooter",null,o.evenFooter),n=!0),o.firstHeader&&typeof o.firstHeader=="string"&&(a.leafNode("firstHeader",null,o.firstHeader),n=!0),o.firstFooter&&typeof o.firstFooter=="string"&&(a.leafNode("firstFooter",null,o.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 f=t("../base-xform");v.exports=class extends f{get tag(){return"hyperlink"}render(a,o){this.isInternalLink(o)?a.leafNode("hyperlink",{ref:o.address,"r:id":o.rId,tooltip:o.tooltip,location:o.target}):a.leafNode("hyperlink",{ref:o.address,"r:id":o.rId,tooltip:o.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 f=t("../base-xform");v.exports=class extends f{get tag(){return"mergeCell"}render(a,o){a.leafNode("mergeCell",{ref:o})}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 f=t("../../../utils/under-dash"),a=t("../../../doc/range"),o=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 f.map(this.merges,e=>e.range)}reconcile(e,r){f.each(e,u=>{const s=o.decode(u);for(let i=s.top;i<=s.bottom;i++){const d=r[i-1];for(let h=s.left;h<=s.right;h++){const c=d.cells[h-1];c?c.type===n.ValueType.Merge&&(c.master=s.tl):d.cells[h]={type:n.ValueType.Null,address:o.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 f=t("../base-xform"),a=o=>o!==void 0;v.exports=class extends f{get tag(){return"outlinePr"}render(o,n){return!(!n||!a(n.summaryBelow)&&!a(n.summaryRight))&&(o.leafNode(this.tag,{summaryBelow:a(n.summaryBelow)?Number(n.summaryBelow):void 0,summaryRight:a(n.summaryRight)?Number(n.summaryRight):void 0}),!0)}parseOpen(o){return o.name===this.tag&&(this.model={summaryBelow:a(o.attributes.summaryBelow)?!!Number(o.attributes.summaryBelow):void 0,summaryRight:a(o.attributes.summaryRight)?!!Number(o.attributes.summaryRight):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(t,v,m){const f=t("../base-xform");v.exports=class extends f{get tag(){return"brk"}render(a,o){a.leafNode("brk",o)}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 f=t("../../../utils/under-dash"),a=t("../base-xform");v.exports=class extends a{get tag(){return"pageMargins"}render(o,n){if(n){const e={left:n.left,right:n.right,top:n.top,bottom:n.bottom,header:n.header,footer:n.footer};f.some(e,r=>r!==void 0)&&o.leafNode(this.tag,e)}}parseOpen(o){switch(o.name){case this.tag:return this.model={left:parseFloat(o.attributes.left||.7),right:parseFloat(o.attributes.right||.7),top:parseFloat(o.attributes.top||.75),bottom:parseFloat(o.attributes.bottom||.75),header:parseFloat(o.attributes.header||.3),footer:parseFloat(o.attributes.footer||.3)},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(t,v,m){const f=t("../base-xform");v.exports=class extends f{get tag(){return"pageSetUpPr"}render(a,o){return!(!o||!o.fitToPage)&&(a.leafNode(this.tag,{fitToPage:o.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 f=t("../../../utils/under-dash"),a=t("../base-xform");function o(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,s){if(s){const i={paperSize:s.paperSize,orientation:s.orientation,horizontalDpi:s.horizontalDpi,verticalDpi:s.verticalDpi,pageOrder:n(s.pageOrder),blackAndWhite:o(s.blackAndWhite),draft:o(s.draft),cellComments:e(s.cellComments),errors:r(s.errors),scale:s.scale,fitToWidth:s.fitToWidth,fitToHeight:s.fitToHeight,firstPageNumber:s.firstPageNumber,useFirstPageNumber:o(s.firstPageNumber),usePrinterDefaults:o(s.usePrinterDefaults),copies:s.copies};f.some(i,d=>d!==void 0)&&u.leafNode(this.tag,i)}}parseOpen(u){switch(u.name){case this.tag:return this.model={paperSize:(s=u.attributes.paperSize,s!==void 0?parseInt(s,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 s}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(t,v,m){const f=t("../base-xform");v.exports=class extends f{get tag(){return"picture"}render(a,o){o&&a.leafNode(this.tag,{"r:id":o.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 f=t("../../../utils/under-dash"),a=t("../base-xform");function o(n){return n?"1":void 0}v.exports=class extends a{get tag(){return"printOptions"}render(n,e){if(e){const r={headings:o(e.showRowColHeaders),gridLines:o(e.showGridLines),horizontalCentered:o(e.horizontalCentered),verticalCentered:o(e.verticalCentered)};f.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 f=t("./page-breaks-xform"),a=t("../list-xform");v.exports=class extends a{constructor(){super({tag:"rowBreaks",count:!0,childXform:new f})}render(o,n){if(n&&n.length){o.openNode(this.tag,this.$),this.count&&(o.addAttribute(this.$count,n.length),o.addAttribute("manualBreakCount",n.length));const{childXform:e}=this;n.forEach(r=>{e.render(o,r)}),o.closeNode()}else this.empty&&o.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(t,v,m){const f=t("../base-xform"),a=t("../../../utils/utils"),o=t("./cell-xform");v.exports=class extends f{constructor(n){super(),this.maxItems=n&&n.maxItems,this.map={c:new o}}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(s=>{u.prepare(s,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(s=>{u.render(n,s,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 f=t("../../../utils/under-dash"),a=t("../base-xform");v.exports=class extends a{get tag(){return"sheetFormatPr"}render(o,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"),f.some(e,r=>r!==void 0)&&o.leafNode("sheetFormatPr",e)}}parseOpen(o){return o.name==="sheetFormatPr"&&(this.model={defaultRowHeight:parseFloat(o.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(o.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(o.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(o.attributes.outlineLevelCol||"0",10)},o.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(o.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(t,v,m){const f=t("../base-xform"),a=t("../style/color-xform"),o=t("./page-setup-properties-xform"),n=t("./outline-properties-xform");v.exports=class extends f{constructor(){super(),this.map={tabColor:new a("tabColor"),pageSetUpPr:new o,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 f=t("../../../utils/under-dash"),a=t("../base-xform");function o(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:o(r.sheet,"1"),selectLockedCells:r.selectLockedCells===!1?"1":void 0,selectUnlockedCells:r.selectUnlockedCells===!1?"1":void 0,formatCells:o(r.formatCells,"0"),formatColumns:o(r.formatColumns,"0"),formatRows:o(r.formatRows,"0"),insertColumns:o(r.insertColumns,"0"),insertRows:o(r.insertRows,"0"),insertHyperlinks:o(r.insertHyperlinks,"0"),deleteColumns:o(r.deleteColumns,"0"),deleteRows:o(r.deleteRows,"0"),sort:o(r.sort,"0"),autoFilter:o(r.autoFilter,"0"),pivotTables:o(r.pivotTables,"0")};r.sheet&&(u.algorithmName=r.algorithmName,u.hashValue=r.hashValue,u.saltValue=r.saltValue,u.spinCount=r.spinCount,u.objects=o(r.objects===!1,"1"),u.scenarios=o(r.scenarios===!1,"1")),f.some(u,s=>s!==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 f=t("../../../utils/col-cache"),a=t("../base-xform"),o={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,c,g){g&&n.addAttribute(h,c)};let u,s,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":s=e.xSplit||0,i=e.ySplit||0,u=e.topLeftCell||f.getAddress(i+1,s+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:o[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 f=t("../base-xform");v.exports=class extends f{get tag(){return"tablePart"}render(a,o){o&&a.leafNode(this.tag,{"r:id":o.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 f=t("../../../utils/under-dash"),a=t("../../../utils/col-cache"),o=t("../../../utils/xml-stream"),n=t("../../rel-type"),e=t("./merges"),r=t("../base-xform"),u=t("../list-xform"),s=t("./row-xform"),i=t("./col-xform"),d=t("./dimension-xform"),h=t("./hyperlink-xform"),c=t("./merge-cell-xform"),g=t("./data-validations-xform"),p=t("./sheet-properties-xform"),S=t("./sheet-format-properties-xform"),C=t("./sheet-view-xform"),T=t("./sheet-protection-xform"),F=t("./page-margins-xform"),z=t("./page-setup-xform"),D=t("./print-options-xform"),N=t("./auto-filter-xform"),L=t("./picture-xform"),U=t("./drawing-xform"),q=t("./table-part-xform"),A=t("./row-breaks-xform"),M=t("./header-footer-xform"),k=t("./cf/conditional-formattings-xform"),b=t("./ext-lst-xform"),y=(x,E)=>{if(!E||!E.length)return x;if(!x||!x.length)return E;const B={},I={};return x.forEach(W=>{B[W.ref]=W,W.rules.forEach(H=>{const{x14Id:K}=H;K&&(I[K]=H)})}),E.forEach(W=>{W.rules.forEach(H=>{const K=I[H.x14Id];K?((P,Y)=>{Object.keys(Y).forEach(O=>{const R=P[O],V=Y[O];R===void 0&&V!==void 0&&(P[O]=V)})})(K,H):B[W.ref]?B[W.ref].rules.push(H):x.push({ref:W.ref,rules:[H]})})}),x};class w extends r{constructor(E){super();const{maxRows:B,maxCols:I,ignoreNodes:W}=E||{};this.ignoreNodes=W||[],this.map={sheetPr:new p,dimension:new d,sheetViews:new u({tag:"sheetViews",count:!1,childXform:new C}),sheetFormatPr:new S,cols:new u({tag:"cols",count:!1,childXform:new i}),sheetData:new u({tag:"sheetData",count:!1,empty:!0,childXform:new s({maxItems:I}),maxItems:B}),autoFilter:new N,mergeCells:new u({tag:"mergeCells",count:!0,childXform:new c}),rowBreaks:new A,hyperlinks:new u({tag:"hyperlinks",count:!1,childXform:new h}),pageMargins:new F,dataValidations:new g,pageSetup:new z,headerFooter:new M,printOptions:new D,picture:new L,drawing:new U,sheetProtection:new T,tableParts:new u({tag:"tableParts",count:!0,childXform:new q}),conditionalFormatting:new k,extLst:new b}}prepare(E,B){B.merges=new e,E.hyperlinks=B.hyperlinks=[],E.comments=B.comments=[],B.formulae={},B.siFormulae=0,this.map.cols.prepare(E.cols,B),this.map.sheetData.prepare(E.rows,B),this.map.conditionalFormatting.prepare(E.conditionalFormattings,B),E.mergeCells=B.merges.mergeCells;const I=E.rels=[];function W(P){return"rId"+(P.length+1)}if(E.hyperlinks.forEach(P=>{const Y=W(I);P.rId=Y,I.push({Id:Y,Type:n.Hyperlink,Target:P.target,TargetMode:"External"})}),E.comments.length>0){const P={Id:W(I),Type:n.Comments,Target:`../comments${E.id}.xml`};I.push(P);const Y={Id:W(I),Type:n.VmlDrawing,Target:`../drawings/vmlDrawing${E.id}.vml`};I.push(Y),E.comments.forEach(O=>{O.refAddress=a.decodeAddress(O.ref)}),B.commentRefs.push({commentName:"comments"+E.id,vmlDrawing:"vmlDrawing"+E.id})}const H=[];let K;E.media.forEach(P=>{if(P.type==="background"){const Y=W(I);K=B.media[P.imageId],I.push({Id:Y,Type:n.Image,Target:`../media/${K.name}.${K.extension}`}),E.background={rId:Y},E.image=B.media[P.imageId]}else if(P.type==="image"){let{drawing:Y}=E;K=B.media[P.imageId],Y||(Y=E.drawing={rId:W(I),name:"drawing"+ ++B.drawingsCount,anchors:[],rels:[]},B.drawings.push(Y),I.push({Id:Y.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${Y.name}.xml`}));let O=this.preImageId===P.imageId?H[P.imageId]:H[Y.rels.length];O||(O=W(Y.rels),H[Y.rels.length]=O,Y.rels.push({Id:O,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${K.name}.${K.extension}`}));const R={picture:{rId:O},range:P.range};if(P.hyperlinks&&P.hyperlinks.hyperlink){const V=W(Y.rels);H[Y.rels.length]=V,R.picture.hyperlinks={tooltip:P.hyperlinks.tooltip,rId:V},Y.rels.push({Id:V,Type:n.Hyperlink,Target:P.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=P.imageId,Y.anchors.push(R)}}),E.tables.forEach(P=>{const Y=W(I);P.rId=Y,I.push({Id:Y,Type:n.Table,Target:"../tables/"+P.target}),P.columns.forEach(O=>{const{style:R}=O;R&&(O.dxfId=B.styles.addDxfStyle(R))})}),this.map.extLst.prepare(E,B)}render(E,B){E.openXml(o.StdDocAttributes),E.openNode("worksheet",w.WORKSHEET_ATTRIBUTES);const I=B.properties?{defaultRowHeight:B.properties.defaultRowHeight,dyDescent:B.properties.dyDescent,outlineLevelCol:B.properties.outlineLevelCol,outlineLevelRow:B.properties.outlineLevelRow}:void 0;B.properties&&B.properties.defaultColWidth&&(I.defaultColWidth=B.properties.defaultColWidth);const W={outlineProperties:B.properties&&B.properties.outlineProperties,tabColor:B.properties&&B.properties.tabColor,pageSetup:B.pageSetup&&B.pageSetup.fitToPage?{fitToPage:B.pageSetup.fitToPage}:void 0},H=B.pageSetup&&B.pageSetup.margins,K={showRowColHeaders:B.pageSetup&&B.pageSetup.showRowColHeaders,showGridLines:B.pageSetup&&B.pageSetup.showGridLines,horizontalCentered:B.pageSetup&&B.pageSetup.horizontalCentered,verticalCentered:B.pageSetup&&B.pageSetup.verticalCentered},P=B.sheetProtection;this.map.sheetPr.render(E,W),this.map.dimension.render(E,B.dimensions),this.map.sheetViews.render(E,B.views),this.map.sheetFormatPr.render(E,I),this.map.cols.render(E,B.cols),this.map.sheetData.render(E,B.rows),this.map.sheetProtection.render(E,P),this.map.autoFilter.render(E,B.autoFilter),this.map.mergeCells.render(E,B.mergeCells),this.map.conditionalFormatting.render(E,B.conditionalFormattings),this.map.dataValidations.render(E,B.dataValidations),this.map.hyperlinks.render(E,B.hyperlinks),this.map.printOptions.render(E,K),this.map.pageMargins.render(E,H),this.map.pageSetup.render(E,B.pageSetup),this.map.headerFooter.render(E,B.headerFooter),this.map.rowBreaks.render(E,B.rowBreaks),this.map.drawing.render(E,B.drawing),this.map.picture.render(E,B.background),this.map.tableParts.render(E,B.tables),this.map.extLst.render(E,B),B.rels&&B.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"?(f.each(this.map,B=>{B.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 B=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(B.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(B.outlineProperties=this.map.sheetPr.model.outlineProperties);const I={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},W=Object.assign(I,this.map.pageSetup.model,this.map.printOptions.model),H=y(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:B,views:this.map.sheetViews.model,pageSetup:W,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:H},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,B){const I=(E.relationships||[]).reduce((H,K)=>{if(H[K.Id]=K,K.Type===n.Comments&&(E.comments=B.comments[K.Target].comments),K.Type===n.VmlDrawing&&E.comments&&E.comments.length){const P=B.vmlDrawings[K.Target].comments;E.comments.forEach((Y,O)=>{Y.note=Object.assign({},Y.note,P[O])})}return H},{});if(B.commentsMap=(E.comments||[]).reduce((H,K)=>(K.ref&&(H[K.ref]=K),H),{}),B.hyperlinkMap=(E.hyperlinks||[]).reduce((H,K)=>(K.rId&&(H[K.address]=I[K.rId].Target),H),{}),B.formulae={},E.rows=E.rows&&E.rows.filter(Boolean)||[],E.rows.forEach(H=>{H.cells=H.cells&&H.cells.filter(Boolean)||[]}),this.map.cols.reconcile(E.cols,B),this.map.sheetData.reconcile(E.rows,B),this.map.conditionalFormatting.reconcile(E.conditionalFormattings,B),E.media=[],E.drawing){const H=I[E.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(H){const K=H[1];B.drawings[K].anchors.forEach(P=>{if(P.medium){const Y={type:"image",imageId:P.medium.index,range:P.range,hyperlinks:P.picture.hyperlinks};E.media.push(Y)}})}}const W=E.background&&I[E.background.rId];if(W){const H=W.Target.split("/media/")[1],K=B.mediaIndex&&B.mediaIndex[H];K!==void 0&&E.media.push({type:"background",imageId:K})}E.tables=(E.tables||[]).map(H=>{const K=I[H.rId];return B.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 f=t("../base-xform");v.exports=class extends f{constructor(a){super(),this.tag=a.tag,this.attr=a.attr}render(a,o){o&&(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 f=t("../base-xform");v.exports=class extends f{constructor(a){super(),this.tag=a.tag,this.attr=a.attr,this.attrs=a.attrs,this._format=a.format||function(o){try{return Number.isNaN(o.getTime())?"":o.toISOString()}catch{return""}},this._parse=a.parse||function(o){return new Date(o)}}render(a,o){o&&(a.openNode(this.tag),this.attrs&&a.addAttributes(this.attrs),this.attr?a.addAttribute(this.attr,this._format(o)):a.writeText(this._format(o)),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 f=t("../base-xform");v.exports=class extends f{constructor(a){super(),this.tag=a.tag,this.attr=a.attr,this.attrs=a.attrs,this.zero=a.zero}render(a,o){(o||this.zero)&&(a.openNode(this.tag),this.attrs&&a.addAttributes(this.attrs),this.attr?a.addAttribute(this.attr,o):a.writeText(o),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 f=t("../base-xform");v.exports=class extends f{constructor(a){super(),this.tag=a.tag,this.attr=a.attr,this.attrs=a.attrs}render(a,o){o!==void 0&&(a.openNode(this.tag),this.attrs&&a.addAttributes(this.attrs),this.attr?a.addAttribute(this.attr,o):a.writeText(o),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 f=t("./base-xform"),a=t("../../utils/xml-stream");v.exports=class extends f{constructor(o){super(),this._model=o}render(o){if(!this._xml){const n=new a;(function e(r,u){r.openNode(u.tag,u.$),u.c&&u.c.forEach(s=>{e(r,s)}),u.t&&r.writeText(u.t),r.closeNode()})(n,this._model),this._xml=n.xml}o.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(o){switch(o){case this._model.tag:return!1;default:return!0}}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(t,v,m){const f=t("./text-xform"),a=t("./rich-text-xform"),o=t("../base-xform");v.exports=class extends o{constructor(){super(),this.map={r:new a,t:new f}}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 f=t("./text-xform"),a=t("../style/font-xform"),o=t("../base-xform");class n extends o{constructor(r){super(),this.model=r}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new f)}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 f=t("./text-xform"),a=t("./rich-text-xform"),o=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 f,rPh:new o}}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 f=t("../../../utils/xml-stream"),a=t("../base-xform"),o=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 o)}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(f.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 f=t("../base-xform");v.exports=class extends f{get tag(){return"t"}render(a,o){a.openNode("t"),/^\s|\n|\s$/.test(o)&&a.addAttribute("xml:space","preserve"),a.writeText(o),a.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(a,o)=>String.fromCharCode(parseInt(o,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 f=t("../../../doc/enums"),a=t("../../../utils/utils"),o=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 f.ReadingOrder.LeftToRight;case"rtl":return f.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 o{get tag(){return"alignment"}render(r,u){r.addRollback(),r.openNode("alignment");let s=!1;function i(d,h){h&&(r.addAttribute(d,h),s=!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(),s?r.commit():r.rollback()}parseOpen(r){const u={};let s=!1;function i(d,h,c){d&&(u[h]=c,s=!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=s?u:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(t,v,m){const f=t("../base-xform"),a=t("../../../utils/utils"),o=t("./color-xform");class n extends f{constructor(r){super(),this.name=r,this.map={color:new o}}get tag(){return this.name}render(r,u,s){const i=u&&u.color||s||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 f{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 s(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")),s(r.left,this.map.left),s(r.right,this.map.right),s(r.top,this.map.top),s(r.bottom,this.map.bottom),s(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(s,i,d){i&&(d&&Object.assign(i,d),r[s]=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 f=t("../base-xform");v.exports=class extends f{constructor(a){super(),this.name=a||"color"}get tag(){return this.name}render(a,o){return!!o&&(a.openNode(this.name),o.argb?a.addAttribute("rgb",o.argb):o.theme!==void 0?(a.addAttribute("theme",o.theme),o.tint!==void 0&&a.addAttribute("tint",o.tint)):o.indexed!==void 0?a.addAttribute("indexed",o.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 f=t("../base-xform"),a=t("./alignment-xform"),o=t("./border-xform"),n=t("./fill-xform"),e=t("./font-xform"),r=t("./numfmt-xform"),u=t("./protection-xform");v.exports=class extends f{constructor(){super(),this.map={alignment:new a,border:new o,fill:new n,font:new e,numFmt:new r,protection:new u}}get tag(){return"dxf"}render(s,i){if(s.openNode(this.tag),i.font&&this.map.font.render(s,i.font),i.numFmt&&i.numFmtId){const d={id:i.numFmtId,formatCode:i.numFmt};this.map.numFmt.render(s,d)}i.fill&&this.map.fill.render(s,i.fill),i.alignment&&this.map.alignment.render(s,i.alignment),i.border&&this.map.border.render(s,i.border),i.protection&&this.map.protection.render(s,i.protection),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case this.tag:return this.reset(),!0;default:return this.parser=this.map[s.name],this.parser&&this.parser.parseOpen(s),!0}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){return this.parser?(this.parser.parseClose(s)||(this.parser=void 0),!0):s!==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 f=t("../base-xform"),a=t("./color-xform");class o extends f{constructor(){super(),this.map={color:new a}}get tag(){return"stop"}render(s,i){s.openNode("stop"),s.addAttribute("position",i.position),this.map.color.render(s,i.color),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"stop":return this.model={position:parseFloat(s.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(s),!0;default:return!1}}parseText(){}parseClose(s){return!!this.parser&&(this.parser.parseClose(s)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class n extends f{constructor(){super(),this.map={fgColor:new a("fgColor"),bgColor:new a("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(s,i){s.openNode("patternFill"),s.addAttribute("patternType",i.pattern),i.fgColor&&this.map.fgColor.render(s,i.fgColor),i.bgColor&&this.map.bgColor.render(s,i.bgColor),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"patternFill":return this.model={type:"pattern",pattern:s.attributes.patternType},!0;default:return this.parser=this.map[s.name],!!this.parser&&(this.parser.parseOpen(s),!0)}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){return!!this.parser&&(this.parser.parseClose(s)||(this.parser.model&&(this.model[s]=this.parser.model),this.parser=void 0),!0)}}class e extends f{constructor(){super(),this.map={stop:new o}}get name(){return"gradient"}get tag(){return"gradientFill"}render(s,i){switch(s.openNode("gradientFill"),i.gradient){case"angle":s.addAttribute("degree",i.degree);break;case"path":s.addAttribute("type","path"),i.center.left&&(s.addAttribute("left",i.center.left),i.center.right===void 0&&s.addAttribute("right",i.center.left)),i.center.right&&s.addAttribute("right",i.center.right),i.center.top&&(s.addAttribute("top",i.center.top),i.center.bottom===void 0&&s.addAttribute("bottom",i.center.top)),i.center.bottom&&s.addAttribute("bottom",i.center.bottom)}const d=this.map.stop;i.stops.forEach(h=>{d.render(s,h)}),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"gradientFill":{const i=this.model={stops:[]};return s.attributes.degree?(i.gradient="angle",i.degree=parseInt(s.attributes.degree,10)):s.attributes.type==="path"&&(i.gradient="path",i.center={left:s.attributes.left?parseFloat(s.attributes.left):0,top:s.attributes.top?parseFloat(s.attributes.top):0},s.attributes.right!==s.attributes.left&&(i.center.right=s.attributes.right?parseFloat(s.attributes.right):0),s.attributes.bottom!==s.attributes.top&&(i.center.bottom=s.attributes.bottom?parseFloat(s.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,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.stops.push(this.parser.model),this.parser=void 0),!0)}}class r extends f{constructor(){super(),this.map={patternFill:new n,gradientFill:new e}}get tag(){return"fill"}render(s,i){switch(s.addRollback(),s.openNode("fill"),i.type){case"pattern":this.map.patternFill.render(s,i);break;case"gradient":this.map.gradientFill.render(s,i);break;default:return void s.rollback()}s.closeNode(),s.commit()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"fill":return this.model={},!0;default:return this.parser=this.map[s.name],!!this.parser&&(this.parser.parseOpen(s),!0)}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){return!!this.parser&&(this.parser.parseClose(s)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(s){return r.validPatternValues[s]}}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,s)=>(u[s]=!0,u),{}),r.StopXform=o,r.PatternFillXform=n,r.GradientFillXform=e,v.exports=r},{"../base-xform":32,"./color-xform":128}],131:[function(t,v,m){const f=t("./color-xform"),a=t("../simple/boolean-xform"),o=t("../simple/integer-xform"),n=t("../simple/string-xform"),e=t("./underline-xform"),r=t("../../../utils/under-dash"),u=t("../base-xform");class s extends u{constructor(d){super(),this.options=d||s.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 o({tag:"charset",attr:"val"})},color:{prop:"color",xform:new f},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 o({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 o({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:c}=this;d.openNode(this.options.tagName),r.each(this.map,(g,p)=>{c[p].xform.render(d,h[g.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}}}s.OPTIONS={tagName:"font",fontNameTag:"name"},v.exports=s},{"../../../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 f=t("../../../utils/under-dash"),a=t("../../defaultnumformats"),o=t("../base-xform"),n=function(){const r={};return f.each(a,(u,s)=>{u.f&&(r[u.f]=parseInt(s,10))}),r}();class e extends o{constructor(u,s){super(),this.id=u,this.formatCode=s}get tag(){return"numFmt"}render(u,s){u.leafNode("numFmt",{numFmtId:s.id,formatCode:s.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 f=t("../base-xform"),a={boolean:(o,n)=>o===void 0?n:o};v.exports=class extends f{get tag(){return"protection"}render(o,n){o.addRollback(),o.openNode("protection");let e=!1;function r(u,s){s!==void 0&&(o.addAttribute(u,s),e=!0)}r("locked",a.boolean(n.locked,!0)?void 0:"0"),r("hidden",a.boolean(n.hidden,!1)?"1":void 0),o.closeNode(),e?o.commit():o.rollback()}parseOpen(o){const n={locked:o.attributes.locked!=="0",hidden:o.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 f=t("../base-xform"),a=t("./alignment-xform"),o=t("./protection-xform");v.exports=class extends f{constructor(n){super(),this.xfId=!(!n||!n.xfId),this.map={alignment:new a,protection:new o}}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 f=t("../../../doc/enums"),a=t("../../../utils/xml-stream"),o=t("../base-xform"),n=t("../static-xform"),e=t("../list-xform"),r=t("./font-xform"),u=t("./fill-xform"),s=t("./border-xform"),i=t("./numfmt-xform"),d=t("./style-xform"),h=t("./dxf-xform");class c extends o{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 s}),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 s,style:new d({xfId:!0}),cellStyles:c.STATIC_XFORMS.cellStyles,tableStyles:c.STATIC_XFORMS.tableStyles,extLst:c.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",c.STYLESHEET_ATTRIBUTES),this.index?(S.numFmts&&S.numFmts.length&&(p.openNode("numFmts",{count:S.numFmts.length}),S.numFmts.forEach(C=>{p.writeXml(C)}),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(C=>{p.writeXml(C)}),p.closeNode(),p.openNode("fills",{count:S.fills.length}),S.fills.forEach(C=>{p.writeXml(C)}),p.closeNode(),p.openNode("borders",{count:S.borders.length}),S.borders.forEach(C=>{p.writeXml(C)}),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(C=>{p.writeXml(C)}),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)),c.STATIC_XFORMS.cellStyles.render(p),this.map.dxfs.render(p,S.dxfs),c.STATIC_XFORMS.tableStyles.render(p),c.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=(C,T)=>{T.model&&T.model.length&&(this.model[C]=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 C=this.index.numFmt;this.model.numFmts.forEach(T=>{C[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 C={};if(S=S||f.ValueType.Number,p.numFmt)C.numFmtId=this._addNumFmtStr(p.numFmt);else switch(S){case f.ValueType.Number:C.numFmtId=this._addNumFmtStr("General");break;case f.ValueType.Date:C.numFmtId=this._addNumFmtStr("mm-dd-yy")}p.font&&(C.fontId=this._addFont(p.font)),p.border&&(C.borderId=this._addBorder(p.border)),p.fill&&(C.fillId=this._addFill(p.fill)),p.alignment&&(C.alignment=p.alignment),p.protection&&(C.protection=p.protection);const T=this._addStyle(C);return this.weakMap&&this.weakMap.set(p,T),T}getStyleModel(p){const S=this.model.styles[p];if(!S)return null;let C=this.index.model[p];if(C)return C;if(C=this.index.model[p]={},S.numFmtId){const F=this.index.numFmt[S.numFmtId]||i.getDefaultFmtCode(S.numFmtId);F&&(C.numFmt=F)}function T(F,z,D){if(D||D===0){const N=z[D];N&&(C[F]=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&&(C.alignment=S.alignment),S.protection&&(C.protection=S.protection),C}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 C=this.index.style[S];return C===void 0&&(C=this.index.style[S]=this.model.styles.length,this.model.styles.push(S)),C}_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 C=this.map.numFmt.toXml({id:S,formatCode:p});return this.model.numFmts.push(C),S}_addFont(p){const S=this.map.font.toXml(p);let C=this.index.font[S];return C===void 0&&(C=this.index.font[S]=this.model.fonts.length,this.model.fonts.push(S)),C}_addBorder(p){const S=this.map.border.toXml(p);let C=this.index.border[S];return C===void 0&&(C=this.index.border[S]=this.model.borders.length,this.model.borders.push(S)),C}_addFill(p){const S=this.map.fill.toXml(p);let C=this.index.fill[S];return C===void 0&&(C=this.index.fill[S]=this.model.fills.length,this.model.fills.push(S)),C}}c.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"},c.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"}}]}]})},c.Mock=class extends c{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(g){return g.autodrain(),Promise.resolve()}addStyleModel(g,p){switch(p){case f.ValueType.Date:return this.dateStyleId;default:return 0}}get dateStyleId(){if(!this._dateStyleId){const g={numFmtId:i.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(g)}return this._dateStyleId}getStyleModel(){return{}}},v.exports=c},{"../../../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 f=t("../base-xform");class a extends f{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 f=t("../base-xform"),a=t("./filter-column-xform");v.exports=class extends f{constructor(){super(),this.map={filterColumn:new a}}get tag(){return"autoFilter"}prepare(o){o.columns.forEach((n,e)=>{this.map.filterColumn.prepare(n,{index:e})})}render(o,n){return o.openNode(this.tag,{ref:n.autoFilterRef}),n.columns.forEach(e=>{this.map.filterColumn.render(o,e)}),o.closeNode(),!0}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:return this.model={autoFilterRef:o.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[o.name],this.parser)return this.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.model.columns.push(this.parser.model),this.parser=void 0),!0;switch(o){case this.tag:return!1;default:throw new Error("Unexpected xml node in parseClose: "+o)}}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(t,v,m){const f=t("../base-xform");v.exports=class extends f{get tag(){return"customFilter"}render(a,o){a.leafNode(this.tag,{val:o.val,operator:o.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 f=t("../base-xform"),a=t("../list-xform"),o=t("./custom-filter-xform"),n=t("./filter-xform");v.exports=class extends f{constructor(){super(),this.map={customFilters:new a({tag:"customFilters",count:!1,empty:!0,childXform:new o}),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 f=t("../base-xform");v.exports=class extends f{get tag(){return"filter"}render(a,o){a.leafNode(this.tag,{val:o.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 f=t("../base-xform");v.exports=class extends f{get tag(){return"tableColumn"}prepare(a,o){a.id=o.index+1}render(a,o){return a.leafNode(this.tag,{id:o.id.toString(),name:o.name,totalsRowLabel:o.totalsRowLabel,totalsRowFunction:o.totalsRowFunction,dxfId:o.dxfId}),!0}parseOpen(a){if(a.name===this.tag){const{attributes:o}=a;return this.model={name:o.name,totalsRowLabel:o.totalsRowLabel,totalsRowFunction:o.totalsRowFunction,dxfId:o.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(t,v,m){const f=t("../base-xform");v.exports=class extends f{get tag(){return"tableStyleInfo"}render(a,o){return a.leafNode(this.tag,{name:o.theme?o.theme:void 0,showFirstColumn:o.showFirstColumn?"1":"0",showLastColumn:o.showLastColumn?"1":"0",showRowStripes:o.showRowStripes?"1":"0",showColumnStripes:o.showColumnStripes?"1":"0"}),!0}parseOpen(a){if(a.name===this.tag){const{attributes:o}=a;return this.model={theme:o.name?o.name:null,showFirstColumn:o.showFirstColumn==="1",showLastColumn:o.showLastColumn==="1",showRowStripes:o.showRowStripes==="1",showColumnStripes:o.showColumnStripes==="1"},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(t,v,m){const f=t("../../../utils/xml-stream"),a=t("../base-xform"),o=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 o({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(f.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(f,a){(function(){const o=t("fs"),n=t("jszip"),{PassThrough:e}=t("readable-stream"),r=t("../utils/zip-stream"),u=t("../utils/stream-buf"),s=t("../utils/utils"),i=t("../utils/xml-stream"),{bufferToString:d}=t("../utils/browser-buffer-decode"),h=t("./xform/style/styles-xform"),c=t("./xform/core/core-xform"),g=t("./xform/strings/shared-strings-xform"),p=t("./xform/core/relationships-xform"),S=t("./xform/core/content-types-xform"),C=t("./xform/core/app-xform"),T=t("./xform/book/workbook-xform"),F=t("./xform/sheet/worksheet-xform"),z=t("./xform/drawing/drawing-xform"),D=t("./xform/table/table-xform"),N=t("./xform/comment/comments-xform"),L=t("./xform/comment/vml-notes-xform"),U=t("./xml/theme1");class q{constructor(M){this.workbook=M}async readFile(M,k){if(!await s.fs.exists(M))throw new Error("File not found: "+M);const b=o.createReadStream(M);try{const y=await this.read(b,k);return b.close(),y}catch(y){throw b.close(),y}}parseRels(M){return new p().parseStream(M)}parseWorkbook(M){return new T().parseStream(M)}parseSharedStrings(M){return new g().parseStream(M)}reconcile(M,k){const b=new T,y=new F(k),w=new z,x=new D;b.reconcile(M);const E={media:M.media,mediaIndex:M.mediaIndex};Object.keys(M.drawings).forEach(W=>{const H=M.drawings[W],K=M.drawingRels[W];K&&(E.rels=K.reduce((P,Y)=>(P[Y.Id]=Y,P),{}),(H.anchors||[]).forEach(P=>{const Y=P.picture&&P.picture.hyperlinks;Y&&E.rels[Y.rId]&&(Y.hyperlink=E.rels[Y.rId].Target,delete Y.rId)}),w.reconcile(H,E))});const B={styles:M.styles};Object.values(M.tables).forEach(W=>{x.reconcile(W,B)});const I={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(W=>{W.relationships=M.worksheetRels[W.sheetNo],y.reconcile(W,I)}),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,k,b,y,w){const x=new F(y),E=await x.parseStream(M);E.sheetNo=b,k.worksheetHash[w]=E,k.worksheets.push(E)}async _processCommentEntry(M,k,b){const y=new N,w=await y.parseStream(M);k.comments[`../${b}.xml`]=w}async _processTableEntry(M,k,b){const y=new D,w=await y.parseStream(M);k.tables[`../tables/${b}.xml`]=w}async _processWorksheetRelsEntry(M,k,b){const y=new p,w=await y.parseStream(M);k.worksheetRels[b]=w}async _processMediaEntry(M,k,b){const y=b.lastIndexOf(".");if(y>=1){const w=b.substr(y+1),x=b.substr(0,y);await new Promise((E,B)=>{const I=new u;I.on("finish",()=>{k.mediaIndex[b]=k.media.length,k.mediaIndex[x]=k.media.length;const W={type:"image",name:x,extension:w,buffer:I.toBuffer()};k.media.push(W),E()}),M.on("error",W=>{B(W)}),M.pipe(I)})}}async _processDrawingEntry(M,k,b){const y=new z,w=await y.parseStream(M);k.drawings[b]=w}async _processDrawingRelsEntry(M,k,b){const y=new p,w=await y.parseStream(M);k.drawingRels[b]=w}async _processVmlDrawingEntry(M,k,b){const y=new L,w=await y.parseStream(M);k.vmlDrawings[`../drawings/${b}.vml`]=w}async _processThemeEntry(M,k,b){await new Promise((y,w)=>{const x=new u;M.on("error",w),x.on("error",w),x.on("finish",()=>{k.themes[b]=x.read().toString(),y()}),M.pipe(x)})}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,k){!M[Symbol.asyncIterator]&&M.pipe&&(M=M.pipe(new e));const b=[];for await(const y of M)b.push(y);return this.load(a.concat(b),k)}async load(M,k){let b;b=k&&k.base64?a.from(M.toString(),"base64"):M;const y={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},w=await n.loadAsync(b);for(const x of Object.values(w.files))if(!x.dir){let E,B=x.name;if(B[0]==="/"&&(B=B.substr(1)),B.match(/xl\/media\//)||B.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))E=new e,E.write(await x.async("nodebuffer"));else{let I;E=new e({writableObjectMode:!0,readableObjectMode:!0}),I=f.browser?d(await x.async("nodebuffer")):await x.async("string");const W=16384;for(let H=0;H<I.length;H+=W)E.write(I.substring(H,H+W))}switch(E.end(),B){case"_rels/.rels":y.globalRels=await this.parseRels(E);break;case"xl/workbook.xml":{const I=await this.parseWorkbook(E);y.sheets=I.sheets,y.definedNames=I.definedNames,y.views=I.views,y.properties=I.properties,y.calcProperties=I.calcProperties;break}case"xl/_rels/workbook.xml.rels":y.workbookRels=await this.parseRels(E);break;case"xl/sharedStrings.xml":y.sharedStrings=new g,await y.sharedStrings.parseStream(E);break;case"xl/styles.xml":y.styles=new h,await y.styles.parseStream(E);break;case"docProps/app.xml":{const I=new C,W=await I.parseStream(E);y.company=W.company,y.manager=W.manager;break}case"docProps/core.xml":{const I=new c,W=await I.parseStream(E);Object.assign(y,W);break}default:{let I=B.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(I){await this._processWorksheetEntry(E,y,I[1],k,B);break}if(I=B.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),I){await this._processWorksheetRelsEntry(E,y,I[1]);break}if(I=B.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/),I){await this._processThemeEntry(E,y,I[1]);break}if(I=B.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/),I){await this._processMediaEntry(E,y,I[1]);break}if(I=B.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/),I){await this._processDrawingEntry(E,y,I[1]);break}if(I=B.match(/xl\/(comments\d+)[.]xml/),I){await this._processCommentEntry(E,y,I[1]);break}if(I=B.match(/xl\/tables\/(table\d+)[.]xml/),I){await this._processTableEntry(E,y,I[1]);break}if(I=B.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/),I){await this._processDrawingRelsEntry(E,y,I[1]);break}if(I=B.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/),I){await this._processVmlDrawingEntry(E,y,I[1]);break}}}}return this.reconcile(y,k),this.workbook.model=y,this.workbook}async addMedia(M,k){await Promise.all(k.media.map(async b=>{if(b.type==="image"){const y=`xl/media/${b.name}.${b.extension}`;if(b.filename){const w=await function(x,E){return new Promise((B,I)=>{o.readFile(x,E,(W,H)=>{W?I(W):B(H)})})}(b.filename);return M.append(w,{name:y})}if(b.buffer)return M.append(b.buffer,{name:y});if(b.base64){const w=b.base64,x=w.substring(w.indexOf(",")+1);return M.append(x,{name:y,base64:!0})}}throw new Error("Unsupported media")}))}addDrawings(M,k){const b=new z,y=new p;k.worksheets.forEach(w=>{const{drawing:x}=w;if(x){b.prepare(x,{});let E=b.toXml(x);M.append(E,{name:`xl/drawings/${x.name}.xml`}),E=y.toXml(x.rels),M.append(E,{name:`xl/drawings/_rels/${x.name}.xml.rels`})}})}addTables(M,k){const b=new D;k.worksheets.forEach(y=>{const{tables:w}=y;w.forEach(x=>{b.prepare(x,{});const E=b.toXml(x);M.append(E,{name:"xl/tables/"+x.target})})})}async addContentTypes(M,k){const b=new S().toXml(k);M.append(b,{name:"[Content_Types].xml"})}async addApp(M,k){const b=new C().toXml(k);M.append(b,{name:"docProps/app.xml"})}async addCore(M,k){const b=new c;M.append(b.toXml(k),{name:"docProps/core.xml"})}async addThemes(M,k){const b=k.themes||{theme1:U};Object.keys(b).forEach(y=>{const w=b[y],x=`xl/theme/${y}.xml`;M.append(w,{name:x})})}async addOfficeRels(M){const k=new p().toXml([{Id:"rId1",Type:q.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:q.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:q.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);M.append(k,{name:"_rels/.rels"})}async addWorkbookRels(M,k){let b=1;const y=[{Id:"rId"+b++,Type:q.RelType.Styles,Target:"styles.xml"},{Id:"rId"+b++,Type:q.RelType.Theme,Target:"theme/theme1.xml"}];k.sharedStrings.count&&y.push({Id:"rId"+b++,Type:q.RelType.SharedStrings,Target:"sharedStrings.xml"}),k.worksheets.forEach(x=>{x.rId="rId"+b++,y.push({Id:x.rId,Type:q.RelType.Worksheet,Target:`worksheets/sheet${x.id}.xml`})});const w=new p().toXml(y);M.append(w,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(M,k){k.sharedStrings&&k.sharedStrings.count&&M.append(k.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(M,k){const{xml:b}=k.styles;b&&M.append(b,{name:"xl/styles.xml"})}async addWorkbook(M,k){const b=new T;M.append(b.toXml(k),{name:"xl/workbook.xml"})}async addWorksheets(M,k){const b=new F,y=new p,w=new N,x=new L;k.worksheets.forEach(E=>{let B=new i;b.render(B,E),M.append(B.xml,{name:`xl/worksheets/sheet${E.id}.xml`}),E.rels&&E.rels.length&&(B=new i,y.render(B,E.rels),M.append(B.xml,{name:`xl/worksheets/_rels/sheet${E.id}.xml.rels`})),E.comments.length>0&&(B=new i,w.render(B,E),M.append(B.xml,{name:`xl/comments${E.id}.xml`}),B=new i,x.render(B,E),M.append(B.xml,{name:`xl/drawings/vmlDrawing${E.id}.vml`}))})}_finalize(M){return new Promise((k,b)=>{M.on("finish",()=>{k(this)}),M.on("error",b),M.finalize()})}prepareModel(M,k){M.creator=M.creator||"ExcelJS",M.lastModifiedBy=M.lastModifiedBy||"ExcelJS",M.created=M.created||new Date,M.modified=M.modified||new Date,M.useSharedStrings=k.useSharedStrings===void 0||k.useSharedStrings,M.useStyles=k.useStyles===void 0||k.useStyles,M.sharedStrings=new g,M.styles=M.useStyles?new h(!0):new h.Mock;const b=new T,y=new F;b.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 x=0;M.tables=[],M.worksheets.forEach(E=>{E.tables.forEach(B=>{x++,B.target=`table${x}.xml`,B.id=x,M.tables.push(B)}),y.prepare(E,w)})}async write(M,k){k=k||{};const{model:b}=this.workbook,y=new r.ZipWriter(k.zip);return y.pipe(M),this.prepareModel(b,k),await this.addContentTypes(y,b),await this.addOfficeRels(y,b),await this.addWorkbookRels(y,b),await this.addWorksheets(y,b),await this.addSharedStrings(y,b),await this.addDrawings(y,b),await this.addTables(y,b),await Promise.all([this.addThemes(y,b),this.addStyles(y,b)]),await this.addMedia(y,b),await Promise.all([this.addApp(y,b),this.addCore(y,b)]),await this.addWorkbook(y,b),this._finalize(y)}writeFile(M,k){const b=o.createWriteStream(M);return new Promise((y,w)=>{b.on("finish",()=>{y()}),b.on("error",x=>{w(x)}),this.write(b,k).then(()=>{b.end()}).catch(x=>{w(x)})})}async writeBuffer(M){const k=new u;return await this.write(k,M),k.read()}}q.RelType=t("./rel-type"),v.exports=q}).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(f){(function(){Object.defineProperty(m,"__esModule",{value:!0}),m.CsvFormatterStream=void 0;const a=t("stream"),o=t("./formatter");class n extends a.Transform{constructor(r){super({writableObjectMode:r.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=r,this.rowFormatter=new o.RowFormatter(r),this.hasWrittenBOM=!r.writeBOM}transform(r){return this.rowFormatter.rowTransform=r,this}_transform(r,u,s){let i=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(r,(d,h)=>d?(i=!0,s(d)):(h&&h.forEach(c=>{this.push(f.from(c,"utf8"))}),i=!0,s()))}catch(d){if(i)throw d;s(d)}}_flush(r){this.rowFormatter.finish((u,s)=>u?r(u):(s&&s.forEach(i=>{this.push(f.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 f=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,f||{}),f?.quoteHeaders===void 0&&(this.quoteHeaders=this.quoteColumns),f?.quote===!0?this.quote='"':f?.quote===!1&&(this.quote=""),typeof f?.escape!="string"&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((a=f.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 f=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(m,"__esModule",{value:!0}),m.FieldFormatter=void 0;const a=f(t("lodash.isboolean")),o=f(t("lodash.isnil")),n=f(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|
|