@selfeesas/shared-components 0.2.7 → 0.3.0
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.
- package/dist/shared-components.cjs.js +1 -1
- package/dist/shared-components.css +1 -1
- package/dist/shared-components.d.ts +111 -7
- package/dist/shared-components.es.js +2940 -2333
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),Ft={xs:18,sm:24,md:32,lg:38,xl:46},pt={size:String};function yt(e,t=Ft){return l.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function Yt(e,t,n,i){return Object.defineProperty(e,t,{get:n,set:i,enumerable:!0}),e}function le(e){return l.markRaw(l.defineComponent(e))}function cn(e){return l.markRaw(e)}function ce(e,t){return e!==void 0&&e()||t}function bo(e,t){if(e!==void 0){const n=e();if(n!=null)return n.slice()}return t}function be(e,t){return e!==void 0?t.concat(e()):t}function po(e,t){return e===void 0?t:t!==void 0?t.concat(e()):e()}function yo(e,t,n,i,o,r){t.key=i+o;const u=l.h(e,t,n);return o===!0?l.withDirectives(u,r()):u}const yl="0 0 24 24",qt=e=>e,_t=e=>`ionicons ${e}`,dn={"mdi-":e=>`mdi ${e}`,"icon-":qt,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":_t,"ion-ios":_t,"ion-logo":_t,"iconfont ":qt,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`,"i-":qt},fn={o_:"-outlined",r_:"-round",s_:"-sharp"},vn={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},wo=new RegExp("^("+Object.keys(dn).join("|")+")"),So=new RegExp("^("+Object.keys(fn).join("|")+")"),wl=new RegExp("^("+Object.keys(vn).join("|")+")"),ko=/^[Mm]\s?[-+]?\.?\d/,xo=/^img:/,Co=/^svguse:/,qo=/^ion-/,_o=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,de=le({name:"QIcon",props:{...pt,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=l.getCurrentInstance(),i=yt(e),o=l.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),r=l.computed(()=>{let u,a=e.name;if(a==="none"||!a)return{none:!0};if(n.iconMapFn!==null){const d=n.iconMapFn(a);if(d!==void 0)if(d.icon!==void 0){if(a=d.icon,a==="none"||!a)return{none:!0}}else return{cls:d.cls,content:d.content!==void 0?d.content:" "}}if(ko.test(a)===!0){const[d,h=yl]=a.split("|");return{svg:!0,viewBox:h,nodes:d.split("&&").map(m=>{const[v,p,z]=m.split("@@");return l.h("path",{style:p,d:v,transform:z})})}}if(xo.test(a)===!0)return{img:!0,src:a.substring(4)};if(Co.test(a)===!0){const[d,h=yl]=a.split("|");return{svguse:!0,src:d.substring(7),viewBox:h}}let f=" ";const c=a.match(wo);if(c!==null)u=dn[c[1]](a);else if(_o.test(a)===!0)u=a;else if(qo.test(a)===!0)u=`ionicons ion-${n.platform.is.ios===!0?"ios":"md"}${a.substring(3)}`;else if(wl.test(a)===!0){u="notranslate material-symbols";const d=a.match(wl);d!==null&&(a=a.substring(6),u+=vn[d[1]]),f=a}else{u="notranslate material-icons";const d=a.match(So);d!==null&&(a=a.substring(2),u+=fn[d[1]]),f=a}return{cls:u,content:f}});return()=>{const u={class:o.value,style:i.value,"aria-hidden":"true"};return r.value.none===!0?l.h(e.tag,u,ce(t.default)):r.value.img===!0?l.h(e.tag,u,be(t.default,[l.h("img",{src:r.value.src})])):r.value.svg===!0?l.h(e.tag,u,be(t.default,[l.h("svg",{viewBox:r.value.viewBox||"0 0 24 24"},r.value.nodes)])):r.value.svguse===!0?l.h(e.tag,u,be(t.default,[l.h("svg",{viewBox:r.value.viewBox},[l.h("use",{"xlink:href":r.value.src})])])):(r.value.cls!==void 0&&(u.class+=" "+r.value.cls),l.h(e.tag,u,be(t.default,[r.value.content])))}}});function zt(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:t}=e.$;for(;Object(t)===t;){if(Object(t.proxy)===t.proxy)return t.proxy;t=t.parent}}function mn(e,t){typeof t.type=="symbol"?Array.isArray(t.children)===!0&&t.children.forEach(n=>{mn(e,n)}):e.add(t)}function zo(e){const t=new Set;return e.forEach(n=>{mn(t,n)}),Array.from(t)}function hn(e){return e.appContext.config.globalProperties.$router!==void 0}function gn(e){return e.isUnmounted===!0||e.isDeactivated===!0}function Sl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function kl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Eo(e,t){for(const n in t){const i=t[n],o=e[n];if(typeof i=="string"){if(i!==o)return!1}else if(Array.isArray(o)===!1||o.length!==i.length||i.some((r,u)=>r!==o[u]))return!1}return!0}function xl(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function Bo(e,t){return Array.isArray(e)===!0?xl(e,t):Array.isArray(t)===!0?xl(t,e):e===t}function Vo(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(Bo(e[n],t[n])===!1)return!1;return!0}const bn={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},pn={...bn,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Gt({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const n=l.getCurrentInstance(),{props:i,proxy:o,emit:r}=n,u=hn(n),a=l.computed(()=>i.disable!==!0&&i.href!==void 0),f=t===!0?l.computed(()=>u===!0&&i.disable!==!0&&a.value!==!0&&i.to!==void 0&&i.to!==null&&i.to!==""):l.computed(()=>u===!0&&a.value!==!0&&i.to!==void 0&&i.to!==null&&i.to!==""),c=l.computed(()=>f.value===!0?E(i.to):null),d=l.computed(()=>c.value!==null),h=l.computed(()=>a.value===!0||d.value===!0),m=l.computed(()=>i.type==="a"||h.value===!0?"a":i.tag||e||"div"),v=l.computed(()=>a.value===!0?{href:i.href,target:i.target}:d.value===!0?{href:c.value.href,target:i.target}:{}),p=l.computed(()=>{if(d.value===!1)return-1;const{matched:B}=c.value,{length:V}=B,O=B[V-1];if(O===void 0)return-1;const P=o.$route.matched;if(P.length===0)return-1;const j=P.findIndex(kl.bind(null,O));if(j!==-1)return j;const U=Sl(B[V-2]);return V>1&&Sl(O)===U&&P[P.length-1].path!==U?P.findIndex(kl.bind(null,B[V-2])):j}),z=l.computed(()=>d.value===!0&&p.value!==-1&&Eo(o.$route.params,c.value.params)),y=l.computed(()=>z.value===!0&&p.value===o.$route.matched.length-1&&Vo(o.$route.params,c.value.params)),M=l.computed(()=>d.value===!0?y.value===!0?` ${i.exactActiveClass} ${i.activeClass}`:i.exact===!0?"":z.value===!0?` ${i.activeClass}`:"":"");function E(B){try{return o.$router.resolve(B)}catch{}return null}function C(B,{returnRouterError:V,to:O=i.to,replace:P=i.replace}={}){if(i.disable===!0)return B.preventDefault(),Promise.resolve(!1);if(B.metaKey||B.altKey||B.ctrlKey||B.shiftKey||B.button!==void 0&&B.button!==0||i.target==="_blank")return Promise.resolve(!1);B.preventDefault();const j=o.$router[P===!0?"replace":"push"](O);return V===!0?j:j.then(()=>{}).catch(()=>{})}function $(B){if(d.value===!0){const V=O=>C(B,O);r("click",B,V),B.defaultPrevented!==!0&&V()}else r("click",B)}return{hasRouterLink:d,hasHrefLink:a,hasLink:h,linkTag:m,resolvedLink:c,linkIsActive:z,linkIsExactActive:y,linkClass:M,linkAttrs:v,getLink:E,navigateToRouterLink:C,navigateOnClick:$}}const To=le({name:"QBreadcrumbsEl",props:{...pn,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(e,{slots:t}){const{linkTag:n,linkAttrs:i,linkClass:o,navigateOnClick:r}=Gt(),u=l.computed(()=>({class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(e.disable!==!0?"q-link--focusable"+o.value:"q-breadcrumbs__el--disable"),...i.value,onClick:r})),a=l.computed(()=>"q-breadcrumbs__el-icon"+(e.label!==void 0?" q-breadcrumbs__el-icon--with-label":""));return()=>{const f=[];return e.icon!==void 0&&f.push(l.h(de,{class:a.value,name:e.icon})),e.label!==void 0&&f.push(e.label),l.h(n.value,{...u.value},be(t.default,f))}}}),yn={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Ao=Object.keys(yn),wn={align:{type:String,validator:e=>Ao.includes(e)}};function Sn(e){return l.computed(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${yn[t]}`})}const Oo=["",!0],Mo=le({name:"QBreadcrumbs",props:{...wn,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:e=>["none","xs","sm","md","lg","xl"].includes(e),default:"sm"}},setup(e,{slots:t}){const n=Sn(e),i=l.computed(()=>`flex items-center ${n.value}${e.gutter==="none"?"":` q-gutter-${e.gutter}`}`),o=l.computed(()=>e.separatorColor?` text-${e.separatorColor}`:""),r=l.computed(()=>` text-${e.activeColor}`);return()=>{if(t.default===void 0)return;const u=zo(ce(t.default));if(u.length===0)return;let a=1;const f=[],c=u.filter(h=>{var m;return((m=h.type)==null?void 0:m.name)==="QBreadcrumbsEl"}).length,d=t.separator!==void 0?t.separator:()=>e.separator;return u.forEach(h=>{var m;if(((m=h.type)==null?void 0:m.name)==="QBreadcrumbsEl"){const v=a<c,p=h.props!==null&&Oo.includes(h.props.disable),z=(v===!0?"":" q-breadcrumbs--last")+(p!==!0&&v===!0?r.value:"");a++,f.push(l.h("div",{class:`flex items-center${z}`},[h])),v===!0&&f.push(l.h("div",{class:"q-breadcrumbs__separator"+o.value},d()))}else f.push(h)}),l.h("div",{class:"q-breadcrumbs"},[l.h("div",{class:i.value},f)])}}}),$o=l.defineComponent({inheritAttrs:!1,__name:"Breadcrumbs",props:{activeColor:{},separatorIcon:{},separatorSize:{},separatorColor:{},store:{},navStore:{},route:{},router:{},breadcrumbConfig:{},separator:{},gutter:{},align:{}},setup(e){const t=e,n=l.useAttrs(),i=l.computed(()=>{const{activeColor:m,separatorIcon:v,separatorSize:p,separatorColor:z,...y}=n;return y}),o=m=>({"data-cy":m.dataCy,class:"cursor-pointer text-h5",color:m.color}),r=l.computed(()=>t.activeColor||"primary"),u=l.computed(()=>t.separatorIcon||"chevron_right"),a=l.computed(()=>t.separatorSize||"2em"),f=l.computed(()=>t.separatorColor||"primary"),c=l.computed(()=>({store:t.store,route:t.route,navStore:t.navStore||{}})),d=l.computed(()=>{const m=[];return t.breadcrumbConfig.forEach(v=>{if(!v.shouldRender(c.value))return;const p=v.getLabel?v.getLabel(c.value):v.defaultLabel,z=v.getColor?v.getColor(c.value):"dark",y={name:v.routeName,...v.getRouteParams&&{params:v.getRouteParams(c.value)}},M=v.clearActions?v.clearActions.map(E=>()=>E(c.value)):[];m.push({label:p,dataCy:v.dataCy,color:z,route:y,clearActions:M})}),m}),h=m=>{m.clearActions&&m.clearActions.forEach(v=>v()),t.router.push(m.route)};return(m,v)=>(l.openBlock(),l.createBlock(Mo,l.mergeProps({"active-color":r.value,class:"text-brown"},i.value),{separator:l.withCtx(()=>[l.createVNode(de,{size:a.value,name:u.value,color:f.value},null,8,["size","name","color"])]),default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(d.value,(p,z)=>(l.openBlock(),l.createBlock(To,l.mergeProps({key:z},{ref_for:!0},o(p),{label:p.label,onClick:y=>h(p)}),null,16,["label","onClick"]))),128))]),_:1},16,["active-color"]))}}),Lo={size:{type:[String,Number],default:"1em"},color:String};function Po(e){return{cSize:l.computed(()=>e.size in Ft?`${Ft[e.size]}px`:e.size),classes:l.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const Zt=le({name:"QSpinner",props:{...Lo,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:n}=Po(e);return()=>l.h("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[l.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function Ht(e,t){const n=e.style;for(const i in t)n[i]=t[i]}function Ro(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=l.unref(e);if(t)return t.$el||t}function kn(e,t){if(e==null||e.contains(t)===!0)return!0;for(let n=e.nextElementSibling;n!==null;n=n.nextElementSibling)if(n.contains(t))return!0;return!1}const ne={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(ne,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch{}function wt(){}function Io(e){return e.button===0}function tt(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function Fo(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let n=e.target;for(;n;){if(t.push(n),n.tagName==="HTML")return t.push(document),t.push(window),t;n=n.parentElement}}function ve(e){e.stopPropagation()}function ue(e){e.cancelable!==!1&&e.preventDefault()}function te(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function Et(e,t){if(e===void 0||t===!0&&e.__dragPrevented===!0)return;const n=t===!0?i=>{i.__dragPrevented=!0,i.addEventListener("dragstart",ue,ne.notPassiveCapture)}:i=>{delete i.__dragPrevented,i.removeEventListener("dragstart",ue,ne.notPassiveCapture)};e.querySelectorAll("a, img").forEach(n)}function Ce(e,t,n){const i=`__q_${t}_evt`;e[i]=e[i]!==void 0?e[i].concat(n):n,n.forEach(o=>{o[0].addEventListener(o[1],e[o[2]],ne[o[3]])})}function Je(e,t){const n=`__q_${t}_evt`;e[n]!==void 0&&(e[n].forEach(i=>{i[0].removeEventListener(i[1],e[i[2]],ne[i[3]])}),e[n]=void 0)}function xn(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function Be(e,t){return xn(e)===!0?!1:[].concat(t).includes(e.keyCode)}function Ho(e,t=250){let n=!1,i;return function(){return n===!1&&(n=!0,setTimeout(()=>{n=!1},t),i=e.apply(this,arguments)),i}}function Cl(e,t,n,i){n.modifiers.stop===!0&&ve(e);const o=n.modifiers.color;let r=n.modifiers.center;r=r===!0||i===!0;const u=document.createElement("span"),a=document.createElement("span"),f=tt(e),{left:c,top:d,width:h,height:m}=t.getBoundingClientRect(),v=Math.sqrt(h*h+m*m),p=v/2,z=`${(h-v)/2}px`,y=r?z:`${f.left-c-p}px`,M=`${(m-v)/2}px`,E=r?M:`${f.top-d-p}px`;a.className="q-ripple__inner",Ht(a,{height:`${v}px`,width:`${v}px`,transform:`translate3d(${y},${E},0) scale3d(.2,.2,1)`,opacity:0}),u.className=`q-ripple${o?" text-"+o:""}`,u.setAttribute("dir","ltr"),u.appendChild(a),t.appendChild(u);const C=()=>{u.remove(),clearTimeout($)};n.abort.push(C);let $=setTimeout(()=>{a.classList.add("q-ripple__inner--enter"),a.style.transform=`translate3d(${z},${M},0) scale3d(1,1,1)`,a.style.opacity=.2,$=setTimeout(()=>{a.classList.remove("q-ripple__inner--enter"),a.classList.add("q-ripple__inner--leave"),a.style.opacity=0,$=setTimeout(()=>{u.remove(),n.abort.splice(n.abort.indexOf(C),1)},275)},250)},50)}function ql(e,{modifiers:t,value:n,arg:i}){const o=Object.assign({},e.cfg.ripple,t,n);e.modifiers={early:o.early===!0,stop:o.stop===!0,center:o.center===!0,color:o.color||i,keyCodes:[].concat(o.keyCodes||13)}}const Cn=cn({name:"ripple",beforeMount(e,t){const n=t.instance.$.appContext.config.globalProperties.$q.config||{};if(n.ripple===!1)return;const i={cfg:n,enabled:t.value!==!1,modifiers:{},abort:[],start(o){i.enabled===!0&&o.qSkipRipple!==!0&&o.type===(i.modifiers.early===!0?"pointerdown":"click")&&Cl(o,e,i,o.qKeyEvent===!0)},keystart:Ho(o=>{i.enabled===!0&&o.qSkipRipple!==!0&&Be(o,i.modifiers.keyCodes)===!0&&o.type===`key${i.modifiers.early===!0?"down":"up"}`&&Cl(o,e,i,!0)},300)};ql(i,t),e.__qripple=i,Ce(i,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const n=e.__qripple;n!==void 0&&(n.enabled=t.value!==!1,n.enabled===!0&&Object(t.value)===t.value&&ql(n,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(n=>{n()}),Je(t,"main"),delete e._qripple)}}),_l={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Do={xs:8,sm:10,md:14,lg:20,xl:24},jo=["button","submit","reset"],No=/[^\s]\/[^\s]/,Wo=["flat","outline","push","unelevated"];function Ko(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}const Uo={...pt,...bn,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Wo.reduce((e,t)=>(e[t]=Boolean)&&e,{}),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:{...wn.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},Qo={...Uo,round:Boolean};function Xo(e){const t=yt(e,Do),n=Sn(e),{hasRouterLink:i,hasLink:o,linkTag:r,linkAttrs:u,navigateOnClick:a}=Gt({fallbackTag:"button"}),f=l.computed(()=>{const y=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},y,{padding:e.padding.split(/\s+/).map(M=>M in _l?_l[M]+"px":M).join(" "),minWidth:"0",minHeight:"0"}):y}),c=l.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),d=l.computed(()=>e.disable!==!0&&e.loading!==!0),h=l.computed(()=>d.value===!0?e.tabindex||0:-1),m=l.computed(()=>Ko(e,"standard")),v=l.computed(()=>{const y={tabindex:h.value};return o.value===!0?Object.assign(y,u.value):jo.includes(e.type)===!0&&(y.type=e.type),r.value==="a"?(e.disable===!0?y["aria-disabled"]="true":y.href===void 0&&(y.role="button"),i.value!==!0&&No.test(e.type)===!0&&(y.type=e.type)):e.disable===!0&&(y.disabled="",y["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(y,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),y}),p=l.computed(()=>{let y;e.color!==void 0?e.flat===!0||e.outline===!0?y=`text-${e.textColor||e.color}`:y=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(y=`text-${e.textColor}`);const M=e.round===!0?"round":`rectangle${c.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${m.value} q-btn--${M}`+(y!==void 0?" "+y:"")+(d.value===!0?" q-btn--actionable q-focusable q-hoverable":e.disable===!0?" disabled":"")+(e.fab===!0?" q-btn--fab":e.fabMini===!0?" q-btn--fab-mini":"")+(e.noCaps===!0?" q-btn--no-uppercase":"")+(e.dense===!0?" q-btn--dense":"")+(e.stretch===!0?" no-border-radius self-stretch":"")+(e.glossy===!0?" glossy":"")+(e.square?" q-btn--square":"")}),z=l.computed(()=>n.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:p,style:f,innerClasses:z,attributes:v,hasLink:o,linkTag:r,navigateOnClick:a,isActionable:d}}const{passiveCapture:se}=ne;let Fe=null,He=null,De=null;const zl=le({name:"QBtn",props:{...Qo,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:n}){const{proxy:i}=l.getCurrentInstance(),{classes:o,style:r,innerClasses:u,attributes:a,hasLink:f,linkTag:c,navigateOnClick:d,isActionable:h}=Xo(e),m=l.ref(null),v=l.ref(null);let p=null,z,y=null;const M=l.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),E=l.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:f.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),C=l.computed(()=>({center:e.round})),$=l.computed(()=>{const g=Math.max(0,Math.min(100,e.percentage));return g>0?{transition:"transform 0.6s",transform:`translateX(${g-100}%)`}:{}}),B=l.computed(()=>{if(e.loading===!0)return{onMousedown:W,onTouchstart:W,onClick:W,onKeydown:W,onKeyup:W};if(h.value===!0){const g={onClick:O,onKeydown:P,onMousedown:U};if(i.$q.platform.has.touch===!0){const w=e.onTouchstart!==void 0?"":"Passive";g[`onTouchstart${w}`]=j}return g}return{onClick:te}}),V=l.computed(()=>({ref:m,class:"q-btn q-btn-item non-selectable no-outline "+o.value,style:r.value,...a.value,...B.value}));function O(g){if(m.value!==null){if(g!==void 0){if(g.defaultPrevented===!0)return;const w=document.activeElement;if(e.type==="submit"&&w!==document.body&&m.value.contains(w)===!1&&w.contains(m.value)===!1){g.qAvoidFocus!==!0&&m.value.focus();const L=()=>{var Y;document.removeEventListener("keydown",te,!0),document.removeEventListener("keyup",L,se),(Y=m.value)==null||Y.removeEventListener("blur",L,se)};document.addEventListener("keydown",te,!0),document.addEventListener("keyup",L,se),m.value.addEventListener("blur",L,se)}}d(g)}}function P(g){m.value!==null&&(n("keydown",g),Be(g,[13,32])===!0&&He!==m.value&&(He!==null&&A(),g.defaultPrevented!==!0&&(g.qAvoidFocus!==!0&&m.value.focus(),He=m.value,m.value.classList.add("q-btn--active"),document.addEventListener("keyup",K,!0),m.value.addEventListener("blur",K,se)),te(g)))}function j(g){m.value!==null&&(n("touchstart",g),g.defaultPrevented!==!0&&(Fe!==m.value&&(Fe!==null&&A(),Fe=m.value,p=g.target,p.addEventListener("touchcancel",K,se),p.addEventListener("touchend",K,se)),z=!0,y!==null&&clearTimeout(y),y=setTimeout(()=>{y=null,z=!1},200)))}function U(g){m.value!==null&&(g.qSkipRipple=z===!0,n("mousedown",g),g.defaultPrevented!==!0&&De!==m.value&&(De!==null&&A(),De=m.value,m.value.classList.add("q-btn--active"),document.addEventListener("mouseup",K,se)))}function K(g){if(m.value!==null&&!((g==null?void 0:g.type)==="blur"&&document.activeElement===m.value)){if((g==null?void 0:g.type)==="keyup"){if(He===m.value&&Be(g,[13,32])===!0){const w=new MouseEvent("click",g);w.qKeyEvent=!0,g.defaultPrevented===!0&&ue(w),g.cancelBubble===!0&&ve(w),m.value.dispatchEvent(w),te(g),g.qKeyEvent=!0}n("keyup",g)}A()}}function A(g){var L,Y;const w=v.value;g!==!0&&(Fe===m.value||De===m.value)&&w!==null&&w!==document.activeElement&&(w.setAttribute("tabindex",-1),w.focus()),Fe===m.value&&(p!==null&&(p.removeEventListener("touchcancel",K,se),p.removeEventListener("touchend",K,se)),Fe=p=null),De===m.value&&(document.removeEventListener("mouseup",K,se),De=null),He===m.value&&(document.removeEventListener("keyup",K,!0),(L=m.value)==null||L.removeEventListener("blur",K,se),He=null),(Y=m.value)==null||Y.classList.remove("q-btn--active")}function W(g){te(g),g.qSkipRipple=!0}return l.onBeforeUnmount(()=>{A(!0)}),Object.assign(i,{click:g=>{h.value===!0&&O(g)}}),()=>{let g=[];e.icon!==void 0&&g.push(l.h(de,{name:e.icon,left:e.stack!==!0&&M.value===!0,role:"img"})),M.value===!0&&g.push(l.h("span",{class:"block"},[e.label])),g=be(t.default,g),e.iconRight!==void 0&&e.round===!1&&g.push(l.h(de,{name:e.iconRight,right:e.stack!==!0&&M.value===!0,role:"img"}));const w=[l.h("span",{class:"q-focus-helper",ref:v})];return e.loading===!0&&e.percentage!==void 0&&w.push(l.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[l.h("span",{class:"q-btn__progress-indicator fit block",style:$.value})])),w.push(l.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+u.value},g)),e.loading!==null&&w.push(l.h(l.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[l.h("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[l.h(Zt)])]:null)),l.withDirectives(l.h(c.value,V.value,w),[[Cn,E.value,void 0,C.value]])}}}),Yo={class:"row justify-between"},Go=l.defineComponent({__name:"NavButton",props:{from:{},to:{default:void 0},labelFrom:{},labelTo:{default:void 0},params:{default:()=>({})}},setup(e){const t=e,n=l.inject("navContext",null),i=l.inject("router");function o(r){if(!i){console.warn("Dependencies not available:",{router:i});return}n==null||n.setTabs();const u=r==="back"?t.from:t.to;if(!u){console.warn("Destination not provided:",r);return}i.push({name:u,params:t.params})}return(r,u)=>(l.openBlock(),l.createElementBlock("div",Yo,[l.createVNode(zl,{icon:"chevron_left","rounded-sm":"",label:r.labelFrom,onClick:u[0]||(u[0]=a=>o("back")),"data-cy":"go-back"},null,8,["label"]),r.labelTo?(l.openBlock(),l.createBlock(zl,{key:0,label:r.labelTo,color:"primary","text-color":"white","icon-right":"chevron_right","rounded-sm":"","data-cy":"go-next",onClick:u[1]||(u[1]=a=>o("next"))},null,8,["label"])):l.createCommentVNode("",!0)]))}}),qn=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},Zo=qn(Go,[["__scopeId","data-v-c5e3fee0"]]),Ve={dark:{type:Boolean,default:null}};function Te(e,t){return l.computed(()=>e.dark===null?t.dark.isActive:e.dark)}function Jo(e,t){const n=l.ref(null),i=l.computed(()=>e.disable===!0?null:l.h("span",{ref:n,class:"no-outline",tabindex:-1}));function o(r){const u=t.value;(r==null?void 0:r.qAvoidFocus)!==!0&&((r==null?void 0:r.type.indexOf("key"))===0?document.activeElement!==u&&(u==null?void 0:u.contains(document.activeElement))===!0&&u.focus():n.value!==null&&(r===void 0||(u==null?void 0:u.contains(r.target))===!0)&&n.value.focus())}return{refocusTargetEl:i,refocusTarget:o}}const _n={name:String};function ei(e={}){return(t,n,i)=>{t[n](l.h("input",{class:"hidden"+(i||""),...e.value}))}}function ti(e){return l.computed(()=>e.name||e.for)}const li={xs:30,sm:35,md:40,lg:50,xl:60},ni={...Ve,...pt,..._n,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:e=>e==="tf"||e==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},oi=["update:modelValue"];function ii(e,t){const{props:n,slots:i,emit:o,proxy:r}=l.getCurrentInstance(),{$q:u}=r,a=Te(n,u),f=l.ref(null),{refocusTargetEl:c,refocusTarget:d}=Jo(n,f),h=yt(n,li),m=l.computed(()=>n.val!==void 0&&Array.isArray(n.modelValue)),v=l.computed(()=>{const A=l.toRaw(n.val);return m.value===!0?n.modelValue.findIndex(W=>l.toRaw(W)===A):-1}),p=l.computed(()=>m.value===!0?v.value!==-1:l.toRaw(n.modelValue)===l.toRaw(n.trueValue)),z=l.computed(()=>m.value===!0?v.value===-1:l.toRaw(n.modelValue)===l.toRaw(n.falseValue)),y=l.computed(()=>p.value===!1&&z.value===!1),M=l.computed(()=>n.disable===!0?-1:n.tabindex||0),E=l.computed(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(n.disable===!0?" disabled":"")+(a.value===!0?` q-${e}--dark`:"")+(n.dense===!0?` q-${e}--dense`:"")+(n.leftLabel===!0?" reverse":"")),C=l.computed(()=>{const A=p.value===!0?"truthy":z.value===!0?"falsy":"indet",W=n.color!==void 0&&(n.keepColor===!0||z.value!==!0)?` text-${n.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${A}${W}`}),$=l.computed(()=>{const A={type:"checkbox"};return n.name!==void 0&&Object.assign(A,{".checked":p.value,"^checked":p.value===!0?"checked":void 0,name:n.name,value:m.value===!0?n.val:n.trueValue}),A}),B=ei($),V=l.computed(()=>{const A={tabindex:M.value,role:"checkbox","aria-label":n.label,"aria-checked":y.value===!0?"mixed":p.value===!0?"true":"false"};return n.disable===!0&&(A["aria-disabled"]="true"),A});function O(A){A!==void 0&&(te(A),d(A)),n.disable!==!0&&o("update:modelValue",P(),A)}function P(){if(m.value===!0){if(p.value===!0){const A=n.modelValue.slice();return A.splice(v.value,1),A}return n.modelValue.concat([n.val])}if(p.value===!0){if(n.toggleOrder!=="ft"||n.toggleIndeterminate===!1)return n.falseValue}else if(z.value===!0){if(n.toggleOrder==="ft"||n.toggleIndeterminate===!1)return n.trueValue}else return n.toggleOrder!=="ft"?n.trueValue:n.falseValue;return n.indeterminateValue}function j(A){(A.keyCode===13||A.keyCode===32)&&te(A)}function U(A){(A.keyCode===13||A.keyCode===32)&&O(A)}const K=t(p,y);return Object.assign(r,{toggle:O}),()=>{const A=K();n.disable!==!0&&B(A,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const W=[l.h("div",{class:C.value,style:h.value,"aria-hidden":"true"},A)];c.value!==null&&W.push(c.value);const g=n.label!==void 0?be(i.default,[n.label]):ce(i.default);return g!==void 0&&W.push(l.h("div",{class:`q-${e}__label q-anchor--skip`},g)),l.h("div",{ref:f,class:E.value,...V.value,onClick:O,onKeydown:j,onKeyup:U},W)}}const ri=()=>l.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[l.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[l.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),l.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),ui=le({name:"QCheckbox",props:ni,emits:oi,setup(e){const t=ri();function n(i,o){const r=l.computed(()=>(i.value===!0?e.checkedIcon:o.value===!0?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>r.value!==null?[l.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[l.h(de,{class:"q-checkbox__icon",name:r.value})])]:[t]}return ii("checkbox",n)}}),ai=le({props:["store","barStyle","verticalBarStyle","horizontalBarStyle"],setup(e){return()=>[l.h("div",{class:e.store.scroll.vertical.barClass.value,style:[e.barStyle,e.verticalBarStyle],"aria-hidden":"true",onMousedown:e.store.onVerticalMousedown}),l.h("div",{class:e.store.scroll.horizontal.barClass.value,style:[e.barStyle,e.horizontalBarStyle],"aria-hidden":"true",onMousedown:e.store.onHorizontalMousedown}),l.withDirectives(l.h("div",{ref:e.store.scroll.vertical.ref,class:e.store.scroll.vertical.thumbClass.value,style:e.store.scroll.vertical.style.value,"aria-hidden":"true"}),e.store.thumbVertDir),l.withDirectives(l.h("div",{ref:e.store.scroll.horizontal.ref,class:e.store.scroll.horizontal.thumbClass.value,style:e.store.scroll.horizontal.style.value,"aria-hidden":"true"}),e.store.thumbHorizDir)]}}),Ne=l.ref(!1);let Dt;function si(e,t){const n=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||[];return{browser:n[5]||n[3]||n[1]||"",version:n[4]||n[2]||"0",platform:t[0]||""}}function ci(e){return/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[]}const zn="ontouchstart"in window||window.navigator.maxTouchPoints>0;function di(e){const t=e.toLowerCase(),n=ci(t),i=si(t,n),o={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};i.browser&&(o[i.browser]=!0,o.version=i.version,o.versionNumber=parseInt(i.version,10)),i.platform&&(o[i.platform]=!0);const r=o.android||o.ios||o.bb||o.blackberry||o.ipad||o.iphone||o.ipod||o.kindle||o.playbook||o.silk||o["windows phone"];if(r===!0||t.indexOf("mobile")!==-1?o.mobile=!0:o.desktop=!0,o["windows phone"]&&(o.winphone=!0,delete o["windows phone"]),o.edga||o.edgios||o.edg?(o.edge=!0,i.browser="edge"):o.crios?(o.chrome=!0,i.browser="chrome"):o.fxios&&(o.firefox=!0,i.browser="firefox"),(o.ipod||o.ipad||o.iphone)&&(o.ios=!0),o.vivaldi&&(i.browser="vivaldi",o.vivaldi=!0),(o.chrome||o.opr||o.safari||o.vivaldi||o.mobile===!0&&o.ios!==!0&&r!==!0)&&(o.webkit=!0),o.opr&&(i.browser="opera",o.opera=!0),o.safari&&(o.blackberry||o.bb?(i.browser="blackberry",o.blackberry=!0):o.playbook?(i.browser="playbook",o.playbook=!0):o.android?(i.browser="android",o.android=!0):o.kindle?(i.browser="kindle",o.kindle=!0):o.silk&&(i.browser="silk",o.silk=!0)),o.name=i.browser,o.platform=i.platform,t.indexOf("electron")!==-1)o.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)o.bex=!0;else{if(window.Capacitor!==void 0?(o.capacitor=!0,o.nativeMobile=!0,o.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(o.cordova=!0,o.nativeMobile=!0,o.nativeMobileWrapper="cordova"),Ne.value===!0&&(Dt={is:{...o}}),zn===!0&&o.mac===!0&&(o.desktop===!0&&o.safari===!0||o.nativeMobile===!0&&o.android!==!0&&o.ios!==!0&&o.ipad!==!0)){delete o.mac,delete o.desktop;const u=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(o,{mobile:!0,ios:!0,platform:u,[u]:!0})}o.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete o.desktop,o.mobile=!0)}return o}const El=navigator.userAgent||navigator.vendor||window.opera,fi={has:{touch:!1,webStorage:!1},within:{iframe:!1}},oe={userAgent:El,is:di(El),has:{touch:zn},within:{iframe:window.self!==window.top}},jt={install(e){const{$q:t}=e;Ne.value===!0?(e.onSSRHydrated.push(()=>{Object.assign(t.platform,oe),Ne.value=!1}),t.platform=l.reactive(this)):t.platform=this}};{let e;Yt(oe.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(jt,oe),Ne.value===!0&&(Object.assign(jt,Dt,fi),Dt=null)}function vi(){const e=l.ref(!Ne.value);return e.value===!1&&l.onMounted(()=>{e.value=!0}),{isHydrated:e}}const En=typeof ResizeObserver<"u",Bl=En===!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"},Vl=le({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:t}){let n=null,i,o={width:-1,height:-1};function r(f){f===!0||e.debounce===0||e.debounce==="0"?u():n===null&&(n=setTimeout(u,e.debounce))}function u(){if(n!==null&&(clearTimeout(n),n=null),i){const{offsetWidth:f,offsetHeight:c}=i;(f!==o.width||c!==o.height)&&(o={width:f,height:c},t("resize",o))}}const{proxy:a}=l.getCurrentInstance();if(a.trigger=r,En===!0){let f;const c=d=>{i=a.$el.parentNode,i?(f=new ResizeObserver(r),f.observe(i),u()):d!==!0&&l.nextTick(()=>{c(!0)})};return l.onMounted(()=>{c()}),l.onBeforeUnmount(()=>{n!==null&&clearTimeout(n),f!==void 0&&(f.disconnect!==void 0?f.disconnect():i&&f.unobserve(i))}),wt}else{let f=function(){n!==null&&(clearTimeout(n),n=null),h!==void 0&&(h.removeEventListener!==void 0&&h.removeEventListener("resize",r,ne.passive),h=void 0)},c=function(){f(),i!=null&&i.contentDocument&&(h=i.contentDocument.defaultView,h.addEventListener("resize",r,ne.passive),u())};const{isHydrated:d}=vi();let h;return l.onMounted(()=>{l.nextTick(()=>{i=a.$el,i&&c()})}),l.onBeforeUnmount(f),()=>{if(d.value===!0)return l.h("object",{class:"q--avoid-card-border",style:Bl.style,tabindex:-1,type:"text/html",data:Bl.url,"aria-hidden":"true",onLoad:c})}}}}),Bn=[Element,String],mi=[null,document,document.body,document.scrollingElement,document.documentElement];function Vn(e,t){let n=Ro(t);if(n===void 0){if(e==null)return window;n=e.closest(".scroll,.scroll-y,.overflow-auto")}return mi.includes(n)?window:n}function Jt(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function el(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}function Tn(e,t,n=0){const i=arguments[3]===void 0?performance.now():arguments[3],o=Jt(e);if(n<=0){o!==t&&Nt(e,t);return}requestAnimationFrame(r=>{const u=r-i,a=o+(t-o)/Math.max(u,n)*u;Nt(e,a),a!==t&&Tn(e,t,n-u,r)})}function An(e,t,n=0){const i=arguments[3]===void 0?performance.now():arguments[3],o=el(e);if(n<=0){o!==t&&Wt(e,t);return}requestAnimationFrame(r=>{const u=r-i,a=o+(t-o)/Math.max(u,n)*u;Wt(e,a),a!==t&&An(e,t,n-u,r)})}function Nt(e,t){if(e===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t);return}e.scrollTop=t}function Wt(e,t){if(e===window){window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0);return}e.scrollLeft=t}function Tl(e,t,n){if(n){Tn(e,t,n);return}Nt(e,t)}function Bt(e,t,n){if(n){An(e,t,n);return}Wt(e,t)}let at;function hi(){if(at!==void 0)return at;const e=document.createElement("p"),t=document.createElement("div");Ht(e,{width:"100%",height:"200px"}),Ht(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const n=e.offsetWidth;t.style.overflow="scroll";let i=e.offsetWidth;return n===i&&(i=t.clientWidth),t.remove(),at=n-i,at}function gi(e,t=!0){return!e||e.nodeType!==Node.ELEMENT_NODE?!1:t?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"]))}const{passive:Al}=ne,bi=["both","horizontal","vertical"],pi=le({name:"QScrollObserver",props:{axis:{type:String,validator:e=>bi.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:Bn},emits:["scroll"],setup(e,{emit:t}){const n={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let i=null,o,r;l.watch(()=>e.scrollTarget,()=>{f(),a()});function u(){i==null||i();const h=Math.max(0,Jt(o)),m=el(o),v={top:h-n.position.top,left:m-n.position.left};if(e.axis==="vertical"&&v.top===0||e.axis==="horizontal"&&v.left===0)return;const p=Math.abs(v.top)>=Math.abs(v.left)?v.top<0?"up":"down":v.left<0?"left":"right";n.position={top:h,left:m},n.directionChanged=n.direction!==p,n.delta=v,n.directionChanged===!0&&(n.direction=p,n.inflectionPoint=n.position),t("scroll",{...n})}function a(){o=Vn(r,e.scrollTarget),o.addEventListener("scroll",c,Al),c(!0)}function f(){o!==void 0&&(o.removeEventListener("scroll",c,Al),o=void 0)}function c(h){if(h===!0||e.debounce===0||e.debounce==="0")u();else if(i===null){const[m,v]=e.debounce?[setTimeout(u,e.debounce),clearTimeout]:[requestAnimationFrame(u),cancelAnimationFrame];i=()=>{v(m),i=null}}}const{proxy:d}=l.getCurrentInstance();return l.watch(()=>d.$q.lang.rtl,u),l.onMounted(()=>{r=d.$el.parentNode,a()}),l.onBeforeUnmount(()=>{i==null||i(),f()}),Object.assign(d,{trigger:c,getPosition:()=>n}),wt}}),tl={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},yi=Object.keys(tl);tl.all=!0;function Ol(e){const t={};for(const n of yi)e[n]===!0&&(t[n]=!0);return Object.keys(t).length===0?tl:(t.horizontal===!0?t.left=t.right=!0:t.left===!0&&t.right===!0&&(t.horizontal=!0),t.vertical===!0?t.up=t.down=!0:t.up===!0&&t.down===!0&&(t.vertical=!0),t.horizontal===!0&&t.vertical===!0&&(t.all=!0),t)}const wi=["INPUT","TEXTAREA"];function Ml(e,t){return t.event===void 0&&e.target!==void 0&&e.target.draggable!==!0&&typeof t.handler=="function"&&wi.includes(e.target.nodeName.toUpperCase())===!1&&(e.qClonedBy===void 0||e.qClonedBy.indexOf(t.uid)===-1)}function On(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),jt.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}function Vt(e,t,n){const i=tt(e);let o,r=i.left-t.event.x,u=i.top-t.event.y,a=Math.abs(r),f=Math.abs(u);const c=t.direction;c.horizontal===!0&&c.vertical!==!0?o=r<0?"left":"right":c.horizontal!==!0&&c.vertical===!0?o=u<0?"up":"down":c.up===!0&&u<0?(o="up",a>f&&(c.left===!0&&r<0?o="left":c.right===!0&&r>0&&(o="right"))):c.down===!0&&u>0?(o="down",a>f&&(c.left===!0&&r<0?o="left":c.right===!0&&r>0&&(o="right"))):c.left===!0&&r<0?(o="left",a<f&&(c.up===!0&&u<0?o="up":c.down===!0&&u>0&&(o="down"))):c.right===!0&&r>0&&(o="right",a<f&&(c.up===!0&&u<0?o="up":c.down===!0&&u>0&&(o="down")));let d=!1;if(o===void 0&&n===!1){if(t.event.isFirst===!0||t.event.lastDir===void 0)return{};o=t.event.lastDir,d=!0,o==="left"||o==="right"?(i.left-=r,a=0,r=0):(i.top-=u,f=0,u=0)}return{synthetic:d,payload:{evt:e,touch:t.event.mouse!==!0,mouse:t.event.mouse===!0,position:i,direction:o,isFirst:t.event.isFirst,isFinal:n===!0,duration:Date.now()-t.event.time,distance:{x:a,y:f},offset:{x:r,y:u},delta:{x:i.left-t.event.lastX,y:i.top-t.event.lastY}}}}let Si=0;const $l=cn({name:"touch-pan",beforeMount(e,{value:t,modifiers:n}){if(n.mouse!==!0&&oe.has.touch!==!0)return;function i(r,u){n.mouse===!0&&u===!0?te(r):(n.stop===!0&&ve(r),n.prevent===!0&&ue(r))}const o={uid:"qvtp_"+Si++,handler:t,modifiers:n,direction:Ol(n),noop:wt,mouseStart(r){Ml(r,o)&&Io(r)&&(Ce(o,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),o.start(r,!0))},touchStart(r){if(Ml(r,o)){const u=r.target;Ce(o,"temp",[[u,"touchmove","move","notPassiveCapture"],[u,"touchcancel","end","passiveCapture"],[u,"touchend","end","passiveCapture"]]),o.start(r)}},start(r,u){if(oe.is.firefox===!0&&Et(e,!0),o.lastEvt=r,u===!0||n.stop===!0){if(o.direction.all!==!0&&(u!==!0||o.modifiers.mouseAllDir!==!0&&o.modifiers.mousealldir!==!0)){const c=r.type.indexOf("mouse")!==-1?new MouseEvent(r.type,r):new TouchEvent(r.type,r);r.defaultPrevented===!0&&ue(c),r.cancelBubble===!0&&ve(c),Object.assign(c,{qKeyEvent:r.qKeyEvent,qClickOutside:r.qClickOutside,qAnchorHandled:r.qAnchorHandled,qClonedBy:r.qClonedBy===void 0?[o.uid]:r.qClonedBy.concat(o.uid)}),o.initialEvent={target:r.target,event:c}}ve(r)}const{left:a,top:f}=tt(r);o.event={x:a,y:f,time:Date.now(),mouse:u===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:a,lastY:f}},move(r){if(o.event===void 0)return;const u=tt(r),a=u.left-o.event.x,f=u.top-o.event.y;if(a===0&&f===0)return;o.lastEvt=r;const c=o.event.mouse===!0,d=()=>{i(r,c);let v;n.preserveCursor!==!0&&n.preservecursor!==!0&&(v=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),c===!0&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),On(),o.styleCleanup=p=>{if(o.styleCleanup=void 0,v!==void 0&&(document.documentElement.style.cursor=v),document.body.classList.remove("non-selectable"),c===!0){const z=()=>{document.body.classList.remove("no-pointer-events--children")};p!==void 0?setTimeout(()=>{z(),p()},50):z()}else p!==void 0&&p()}};if(o.event.detected===!0){o.event.isFirst!==!0&&i(r,o.event.mouse);const{payload:v,synthetic:p}=Vt(r,o,!1);v!==void 0&&(o.handler(v)===!1?o.end(r):(o.styleCleanup===void 0&&o.event.isFirst===!0&&d(),o.event.lastX=v.position.left,o.event.lastY=v.position.top,o.event.lastDir=p===!0?void 0:v.direction,o.event.isFirst=!1));return}if(o.direction.all===!0||c===!0&&(o.modifiers.mouseAllDir===!0||o.modifiers.mousealldir===!0)){d(),o.event.detected=!0,o.move(r);return}const h=Math.abs(a),m=Math.abs(f);h!==m&&(o.direction.horizontal===!0&&h>m||o.direction.vertical===!0&&h<m||o.direction.up===!0&&h<m&&f<0||o.direction.down===!0&&h<m&&f>0||o.direction.left===!0&&h>m&&a<0||o.direction.right===!0&&h>m&&a>0?(o.event.detected=!0,o.move(r)):o.end(r,!0))},end(r,u){var a;if(o.event!==void 0){if(Je(o,"temp"),oe.is.firefox===!0&&Et(e,!1),u===!0)(a=o.styleCleanup)==null||a.call(o),o.event.detected!==!0&&o.initialEvent!==void 0&&o.initialEvent.target.dispatchEvent(o.initialEvent.event);else if(o.event.detected===!0){o.event.isFirst===!0&&o.handler(Vt(r===void 0?o.lastEvt:r,o).payload);const{payload:f}=Vt(r===void 0?o.lastEvt:r,o,!0),c=()=>{o.handler(f)};o.styleCleanup!==void 0?o.styleCleanup(c):c()}o.event=void 0,o.initialEvent=void 0,o.lastEvt=void 0}}};if(e.__qtouchpan=o,n.mouse===!0){const r=n.mouseCapture===!0||n.mousecapture===!0?"Capture":"";Ce(o,"main",[[e,"mousedown","mouseStart",`passive${r}`]])}oe.has.touch===!0&&Ce(o,"main",[[e,"touchstart","touchStart",`passive${n.capture===!0?"Capture":""}`],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const n=e.__qtouchpan;n!==void 0&&(t.oldValue!==t.value&&(typeof value!="function"&&n.end(),n.handler=t.value),n.direction=Ol(t.modifiers))},beforeUnmount(e){var n;const t=e.__qtouchpan;t!==void 0&&(t.event!==void 0&&t.end(),Je(t,"main"),Je(t,"temp"),oe.is.firefox===!0&&Et(e,!1),(n=t.styleCleanup)==null||n.call(t),delete e.__qtouchpan)}});function Xe(e,t,n){return n<=t?t:Math.min(n,Math.max(t,e))}function Ll(e,t,n){if(n<=t)return t;const i=n-t+1;let o=t+(e-t)%i;return o<t&&(o=i+o),o===0?0:o}function ll(e,t=250,n){let i=null;function o(){const r=arguments,u=()=>{i=null,e.apply(this,r)};i!==null&&clearTimeout(i),i=setTimeout(u,t)}return o.cancel=()=>{i!==null&&clearTimeout(i)},o}const Pl=["vertical","horizontal"],Tt={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}},Rl={prevent:!0,mouse:!0,mouseAllDir:!0},Il=e=>e>=250?50:Math.ceil(e/5),ki=le({name:"QScrollArea",props:{...Ve,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(e,{slots:t,emit:n}){const i=l.ref(!1),o=l.ref(!1),r=l.ref(!1),u={vertical:l.ref(0),horizontal:l.ref(0)},a={vertical:{ref:l.ref(null),position:l.ref(0),size:l.ref(0)},horizontal:{ref:l.ref(null),position:l.ref(0),size:l.ref(0)}},{proxy:f}=l.getCurrentInstance(),c=Te(e,f.$q);let d=null,h;const m=l.ref(null),v=l.computed(()=>"q-scrollarea"+(c.value===!0?" q-scrollarea--dark":""));Object.assign(u,{verticalInner:l.computed(()=>u.vertical.value-e.verticalOffset[0]-e.verticalOffset[1]),horizontalInner:l.computed(()=>u.horizontal.value-e.horizontalOffset[0]-e.horizontalOffset[1])}),a.vertical.percentage=l.computed(()=>{const g=a.vertical.size.value-u.vertical.value;if(g<=0)return 0;const w=Xe(a.vertical.position.value/g,0,1);return Math.round(w*1e4)/1e4}),a.vertical.thumbHidden=l.computed(()=>(e.visible===null?r.value:e.visible)!==!0&&i.value===!1&&o.value===!1||a.vertical.size.value<=u.vertical.value+1),a.vertical.thumbStart=l.computed(()=>e.verticalOffset[0]+a.vertical.percentage.value*(u.verticalInner.value-a.vertical.thumbSize.value)),a.vertical.thumbSize=l.computed(()=>Math.round(Xe(u.verticalInner.value*u.verticalInner.value/a.vertical.size.value,Il(u.verticalInner.value),u.verticalInner.value))),a.vertical.style=l.computed(()=>({...e.thumbStyle,...e.verticalThumbStyle,top:`${a.vertical.thumbStart.value}px`,height:`${a.vertical.thumbSize.value}px`,right:`${e.horizontalOffset[1]}px`})),a.vertical.thumbClass=l.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(a.vertical.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),a.vertical.barClass=l.computed(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(a.vertical.thumbHidden.value===!0?" q-scrollarea__bar--invisible":"")),a.horizontal.percentage=l.computed(()=>{const g=a.horizontal.size.value-u.horizontal.value;if(g<=0)return 0;const w=Xe(Math.abs(a.horizontal.position.value)/g,0,1);return Math.round(w*1e4)/1e4}),a.horizontal.thumbHidden=l.computed(()=>(e.visible===null?r.value:e.visible)!==!0&&i.value===!1&&o.value===!1||a.horizontal.size.value<=u.horizontal.value+1),a.horizontal.thumbStart=l.computed(()=>e.horizontalOffset[0]+a.horizontal.percentage.value*(u.horizontalInner.value-a.horizontal.thumbSize.value)),a.horizontal.thumbSize=l.computed(()=>Math.round(Xe(u.horizontalInner.value*u.horizontalInner.value/a.horizontal.size.value,Il(u.horizontalInner.value),u.horizontalInner.value))),a.horizontal.style=l.computed(()=>({...e.thumbStyle,...e.horizontalThumbStyle,[f.$q.lang.rtl===!0?"right":"left"]:`${a.horizontal.thumbStart.value}px`,width:`${a.horizontal.thumbSize.value}px`,bottom:`${e.verticalOffset[1]}px`})),a.horizontal.thumbClass=l.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(a.horizontal.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),a.horizontal.barClass=l.computed(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(a.horizontal.thumbHidden.value===!0?" q-scrollarea__bar--invisible":""));const p=l.computed(()=>a.vertical.thumbHidden.value===!0&&a.horizontal.thumbHidden.value===!0?e.contentStyle:e.contentActiveStyle);function z(){const g={};return Pl.forEach(w=>{const L=a[w];Object.assign(g,{[w+"Position"]:L.position.value,[w+"Percentage"]:L.percentage.value,[w+"Size"]:L.size.value,[w+"ContainerSize"]:u[w].value,[w+"ContainerInnerSize"]:u[w+"Inner"].value})}),g}const y=ll(()=>{const g=z();g.ref=f,n("scroll",g)},0);function M(g,w,L){if(Pl.includes(g)===!1){console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");return}(g==="vertical"?Tl:Bt)(m.value,w,L)}function E({height:g,width:w}){let L=!1;u.vertical.value!==g&&(u.vertical.value=g,L=!0),u.horizontal.value!==w&&(u.horizontal.value=w,L=!0),L===!0&&O()}function C({position:g}){let w=!1;a.vertical.position.value!==g.top&&(a.vertical.position.value=g.top,w=!0),a.horizontal.position.value!==g.left&&(a.horizontal.position.value=g.left,w=!0),w===!0&&O()}function $({height:g,width:w}){a.horizontal.size.value!==w&&(a.horizontal.size.value=w,O()),a.vertical.size.value!==g&&(a.vertical.size.value=g,O())}function B(g,w){const L=a[w];if(g.isFirst===!0){if(L.thumbHidden.value===!0)return;h=L.position.value,o.value=!0}else if(o.value!==!0)return;g.isFinal===!0&&(o.value=!1);const Y=Tt[w],q=(L.size.value-u[w].value)/(u[w+"Inner"].value-L.thumbSize.value),R=g.distance[Y.dist],Z=h+(g.direction===Y.dir?1:-1)*R*q;P(Z,w)}function V(g,w){const L=a[w];if(L.thumbHidden.value!==!0){const Y=w==="vertical"?e.verticalOffset[0]:e.horizontalOffset[0],q=g[Tt[w].offset]-Y,R=L.thumbStart.value-Y;if(q<R||q>R+L.thumbSize.value){const Z=q-L.thumbSize.value/2,b=Xe(Z/(u[w+"Inner"].value-L.thumbSize.value),0,1);P(b*Math.max(0,L.size.value-u[w].value),w)}L.ref.value!==null&&L.ref.value.dispatchEvent(new MouseEvent(g.type,g))}}function O(){i.value=!0,d!==null&&clearTimeout(d),d=setTimeout(()=>{d=null,i.value=!1},e.delay),e.onScroll!==void 0&&y()}function P(g,w){m.value[Tt[w].scroll]=g}let j=null;function U(){j!==null&&clearTimeout(j),j=setTimeout(()=>{j=null,r.value=!0},f.$q.platform.is.ios?50:0)}function K(){j!==null&&(clearTimeout(j),j=null),r.value=!1}let A=null;l.watch(()=>f.$q.lang.rtl,g=>{m.value!==null&&Bt(m.value,Math.abs(a.horizontal.position.value)*(g===!0?-1:1))}),l.onDeactivated(()=>{A={top:a.vertical.position.value,left:a.horizontal.position.value}}),l.onActivated(()=>{if(A===null)return;const g=m.value;g!==null&&(Bt(g,A.left),Tl(g,A.top))}),l.onBeforeUnmount(y.cancel),Object.assign(f,{getScrollTarget:()=>m.value,getScroll:z,getScrollPosition:()=>({top:a.vertical.position.value,left:a.horizontal.position.value}),getScrollPercentage:()=>({top:a.vertical.percentage.value,left:a.horizontal.percentage.value}),setScrollPosition:M,setScrollPercentage(g,w,L){M(g,w*(a[g].size.value-u[g].value)*(g==="horizontal"&&f.$q.lang.rtl===!0?-1:1),L)}});const W={scroll:a,thumbVertDir:[[$l,g=>{B(g,"vertical")},void 0,{vertical:!0,...Rl}]],thumbHorizDir:[[$l,g=>{B(g,"horizontal")},void 0,{horizontal:!0,...Rl}]],onVerticalMousedown(g){V(g,"vertical")},onHorizontalMousedown(g){V(g,"horizontal")}};return()=>l.h("div",{class:v.value,onMouseenter:U,onMouseleave:K},[l.h("div",{ref:m,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:e.tabindex!==void 0?e.tabindex:void 0},[l.h("div",{class:"q-scrollarea__content absolute",style:p.value},be(t.default,[l.h(Vl,{debounce:0,onResize:$})])),l.h(pi,{axis:"both",onScroll:C})]),l.h(Vl,{debounce:0,onResize:E}),l.h(ai,{store:W,barStyle:e.barStyle,verticalBarStyle:e.verticalBarStyle,horizontalBarStyle:e.horizontalBarStyle})])}}),xi=le({name:"QCard",props:{...Ve,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=l.getCurrentInstance(),i=Te(e,n),o=l.computed(()=>"q-card"+(i.value===!0?" q-card--dark q-dark":"")+(e.bordered===!0?" q-card--bordered":"")+(e.square===!0?" q-card--square no-border-radius":"")+(e.flat===!0?" q-card--flat no-shadow":""));return()=>l.h(e.tag,{class:o.value},ce(t.default))}}),Ci={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},qi={...Ci,contextMenu:Boolean};function _i({showing:e,avoidEmit:t,configureAnchorEl:n}){const{props:i,proxy:o,emit:r}=l.getCurrentInstance(),u=l.ref(null);let a=null;function f(v){return u.value===null?!1:v===void 0||v.touches===void 0||v.touches.length<=1}const c={};n===void 0&&(Object.assign(c,{hide(v){o.hide(v)},toggle(v){o.toggle(v),v.qAnchorHandled=!0},toggleKey(v){Be(v,13)===!0&&c.toggle(v)},contextClick(v){o.hide(v),ue(v),l.nextTick(()=>{o.show(v),v.qAnchorHandled=!0})},prevent:ue,mobileTouch(v){if(c.mobileCleanup(v),f(v)!==!0)return;o.hide(v),u.value.classList.add("non-selectable");const p=v.target;Ce(c,"anchor",[[p,"touchmove","mobileCleanup","passive"],[p,"touchend","mobileCleanup","passive"],[p,"touchcancel","mobileCleanup","passive"],[u.value,"contextmenu","prevent","notPassive"]]),a=setTimeout(()=>{a=null,o.show(v),v.qAnchorHandled=!0},300)},mobileCleanup(v){u.value.classList.remove("non-selectable"),a!==null&&(clearTimeout(a),a=null),e.value===!0&&v!==void 0&&On()}}),n=function(v=i.contextMenu){if(i.noParentEvent===!0||u.value===null)return;let p;v===!0?o.$q.platform.is.mobile===!0?p=[[u.value,"touchstart","mobileTouch","passive"]]:p=[[u.value,"mousedown","hide","passive"],[u.value,"contextmenu","contextClick","notPassive"]]:p=[[u.value,"click","toggle","passive"],[u.value,"keyup","toggleKey","passive"]],Ce(c,"anchor",p)});function d(){Je(c,"anchor")}function h(v){for(u.value=v;u.value.classList.contains("q-anchor--skip");)u.value=u.value.parentNode;n()}function m(){if(i.target===!1||i.target===""||o.$el.parentNode===null)u.value=null;else if(i.target===!0)h(o.$el.parentNode);else{let v=i.target;if(typeof i.target=="string")try{v=document.querySelector(i.target)}catch{v=void 0}v!=null?(u.value=v.$el||v,n()):(u.value=null,console.error(`Anchor: target "${i.target}" not found`))}}return l.watch(()=>i.contextMenu,v=>{u.value!==null&&(d(),n(v))}),l.watch(()=>i.target,()=>{u.value!==null&&d(),m()}),l.watch(()=>i.noParentEvent,v=>{u.value!==null&&(v===!0?d():n())}),l.onMounted(()=>{m(),t!==!0&&i.modelValue===!0&&u.value===null&&r("update:modelValue",!1)}),l.onBeforeUnmount(()=>{a!==null&&clearTimeout(a),d()}),{anchorEl:u,canShow:f,anchorEvents:c}}function zi(e,t){const n=l.ref(null);let i;function o(a,f){const c=`${f!==void 0?"add":"remove"}EventListener`,d=f!==void 0?f:i;a!==window&&a[c]("scroll",d,ne.passive),window[c]("scroll",d,ne.passive),i=f}function r(){n.value!==null&&(o(n.value),n.value=null)}const u=l.watch(()=>e.noParentEvent,()=>{n.value!==null&&(r(),t())});return l.onBeforeUnmount(u),{localScrollTarget:n,unconfigureScrollTarget:r,changeScrollEvent:o}}const Mn={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},$n=["beforeShow","show","beforeHide","hide"];function Ln({showing:e,canShow:t,hideOnRouteChange:n,handleShow:i,handleHide:o,processOnMount:r}){const u=l.getCurrentInstance(),{props:a,emit:f,proxy:c}=u;let d;function h(E){e.value===!0?p(E):m(E)}function m(E){if(a.disable===!0||(E==null?void 0:E.qAnchorHandled)===!0||t!==void 0&&t(E)!==!0)return;const C=a["onUpdate:modelValue"]!==void 0;C===!0&&(f("update:modelValue",!0),d=E,l.nextTick(()=>{d===E&&(d=void 0)})),(a.modelValue===null||C===!1)&&v(E)}function v(E){e.value!==!0&&(e.value=!0,f("beforeShow",E),i!==void 0?i(E):f("show",E))}function p(E){if(a.disable===!0)return;const C=a["onUpdate:modelValue"]!==void 0;C===!0&&(f("update:modelValue",!1),d=E,l.nextTick(()=>{d===E&&(d=void 0)})),(a.modelValue===null||C===!1)&&z(E)}function z(E){e.value!==!1&&(e.value=!1,f("beforeHide",E),o!==void 0?o(E):f("hide",E))}function y(E){a.disable===!0&&E===!0?a["onUpdate:modelValue"]!==void 0&&f("update:modelValue",!1):E===!0!==e.value&&(E===!0?v:z)(d)}l.watch(()=>a.modelValue,y),n!==void 0&&hn(u)===!0&&l.watch(()=>c.$route.fullPath,()=>{n.value===!0&&e.value===!0&&p()}),l.onMounted(()=>{y(a.modelValue)});const M={show:m,hide:p,toggle:h};return Object.assign(c,M),M}let qe=[],lt=[];function Pn(e){lt=lt.filter(t=>t!==e)}function Ei(e){Pn(e),lt.push(e)}function Fl(e){Pn(e),lt.length===0&&qe.length!==0&&(qe[qe.length-1](),qe=[])}function nl(e){lt.length===0?e():qe.push(e)}function Bi(e){qe=qe.filter(t=>t!==e)}const Hl={};let Vi=1,Ti=document.body;function Ai(e,t){const n=document.createElement("div");if(n.id=t!==void 0?`q-portal--${t}--${Vi++}`:e,Hl.globalNodes!==void 0){const i=Hl.globalNodes.class;i!==void 0&&(n.className=i)}return Ti.appendChild(n),n}function Oi(e){e.remove()}const et=[];function Mi(e,t){do{if(e.$options.name==="QMenu"){if(e.hide(t),e.$props.separateClosePopup===!0)return zt(e)}else if(e.__qPortal===!0){const n=zt(e);return(n==null?void 0:n.$options.name)==="QPopupProxy"?(e.hide(t),n):e}e=zt(e)}while(e!=null)}const $i=le({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function Li(e){for(e=e.parent;e!=null;){if(e.type.name==="QGlobalDialog")return!0;if(e.type.name==="QDialog"||e.type.name==="QMenu")return!1;e=e.parent}return!1}function Rn(e,t,n,i){const o=l.ref(!1),r=l.ref(!1);let u=null;const a={},f=i==="dialog"&&Li(e);function c(h){if(h===!0){Fl(a),r.value=!0;return}r.value=!1,o.value===!1&&(f===!1&&u===null&&(u=Ai(!1,i)),o.value=!0,et.push(e.proxy),Ei(a))}function d(h){if(r.value=!1,h!==!0)return;Fl(a),o.value=!1;const m=et.indexOf(e.proxy);m!==-1&&et.splice(m,1),u!==null&&(Oi(u),u=null)}return l.onUnmounted(()=>{d(!0)}),e.proxy.__qPortal=!0,Yt(e.proxy,"contentEl",()=>t.value),{showPortal:c,hidePortal:d,portalIsActive:o,portalIsAccessible:r,renderPortal:()=>f===!0?n():o.value===!0?[l.h(l.Teleport,{to:u},l.h($i,n))]:void 0}}const In={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Fn(e,t=()=>{},n=()=>{}){return{transitionProps:l.computed(()=>{const i=`q-transition--${e.transitionShow||t()}`,o=`q-transition--${e.transitionHide||n()}`;return{appear:!0,enterFromClass:`${i}-enter-from`,enterActiveClass:`${i}-enter-active`,enterToClass:`${i}-enter-to`,leaveFromClass:`${o}-leave-from`,leaveActiveClass:`${o}-leave-active`,leaveToClass:`${o}-leave-to`}}),transitionStyle:l.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function Hn(){let e;const t=l.getCurrentInstance();function n(){e=void 0}return l.onDeactivated(n),l.onBeforeUnmount(n),{removeTick:n,registerTick(i){e=i,l.nextTick(()=>{e===i&&(gn(t)===!1&&e(),e=void 0)})}}}function Dn(){let e=null;const t=l.getCurrentInstance();function n(){e!==null&&(clearTimeout(e),e=null)}return l.onDeactivated(n),l.onBeforeUnmount(n),{removeTimeout:n,registerTimeout(i,o){n(),gn(t)===!1&&(e=setTimeout(()=>{e=null,i()},o))}}}const _e=[];let We;function Pi(e){We=e.keyCode===27}function Ri(){We===!0&&(We=!1)}function Ii(e){We===!0&&(We=!1,Be(e,27)===!0&&_e[_e.length-1](e))}function jn(e){window[e]("keydown",Pi),window[e]("blur",Ri),window[e]("keyup",Ii),We=!1}function Nn(e){oe.is.desktop===!0&&(_e.push(e),_e.length===1&&jn("addEventListener"))}function mt(e){const t=_e.indexOf(e);t!==-1&&(_e.splice(t,1),_e.length===0&&jn("removeEventListener"))}const ze=[];function Wn(e){ze[ze.length-1](e)}function Kn(e){oe.is.desktop===!0&&(ze.push(e),ze.length===1&&document.body.addEventListener("focusin",Wn))}function Kt(e){const t=ze.indexOf(e);t!==-1&&(ze.splice(t,1),ze.length===0&&document.body.removeEventListener("focusin",Wn))}const{notPassiveCapture:ht}=ne,Ee=[];function gt(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let n=et.length-1;for(;n>=0;){const i=et[n].$;if(i.type.name==="QTooltip"){n--;continue}if(i.type.name!=="QDialog")break;if(i.props.seamless!==!0)return;n--}for(let i=Ee.length-1;i>=0;i--){const o=Ee[i];if((o.anchorEl.value===null||o.anchorEl.value.contains(t)===!1)&&(t===document.body||o.innerRef.value!==null&&o.innerRef.value.contains(t)===!1))e.qClickOutside=!0,o.onClickOutside(e);else return}}function Fi(e){Ee.push(e),Ee.length===1&&(document.addEventListener("mousedown",gt,ht),document.addEventListener("touchstart",gt,ht))}function Dl(e){const t=Ee.findIndex(n=>n===e);t!==-1&&(Ee.splice(t,1),Ee.length===0&&(document.removeEventListener("mousedown",gt,ht),document.removeEventListener("touchstart",gt,ht)))}let jl,Nl;function Wl(e){const t=e.split(" ");return t.length!==2?!1:["top","center","bottom"].includes(t[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(t[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function Hi(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const Ut={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{Ut[`${e}#ltr`]=e,Ut[`${e}#rtl`]=e});function Kl(e,t){const n=e.split(" ");return{vertical:n[0],horizontal:Ut[`${n[1]}#${t===!0?"rtl":"ltr"}`]}}function Di(e,t){let{top:n,left:i,right:o,bottom:r,width:u,height:a}=e.getBoundingClientRect();return t!==void 0&&(n-=t[1],i-=t[0],r+=t[1],o+=t[0],u+=t[0],a+=t[1]),{top:n,bottom:r,height:a,left:i,right:o,width:u,middle:i+(o-i)/2,center:n+(r-n)/2}}function ji(e,t,n){let{top:i,left:o}=e.getBoundingClientRect();return i+=t.top,o+=t.left,n!==void 0&&(i+=n[1],o+=n[0]),{top:i,bottom:i+1,height:1,left:o,right:o+1,width:1,middle:o,center:i}}function Ni(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function Ul(e,t,n,i){return{top:e[n.vertical]-t[i.vertical],left:e[n.horizontal]-t[i.horizontal]}}function Un(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{Un(e,t+1)},10);return}const{targetEl:n,offset:i,anchorEl:o,anchorOrigin:r,selfOrigin:u,absoluteOffset:a,fit:f,cover:c,maxHeight:d,maxWidth:h}=e;if(oe.is.ios===!0&&window.visualViewport!==void 0){const V=document.body.style,{offsetLeft:O,offsetTop:P}=window.visualViewport;O!==jl&&(V.setProperty("--q-pe-left",O+"px"),jl=O),P!==Nl&&(V.setProperty("--q-pe-top",P+"px"),Nl=P)}const{scrollLeft:m,scrollTop:v}=n,p=a===void 0?Di(o,c===!0?[0,0]:i):ji(o,a,i);Object.assign(n.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:h,maxHeight:d,visibility:"visible"});const{offsetWidth:z,offsetHeight:y}=n,{elWidth:M,elHeight:E}=f===!0||c===!0?{elWidth:Math.max(p.width,z),elHeight:c===!0?Math.max(p.height,y):y}:{elWidth:z,elHeight:y};let C={maxWidth:h,maxHeight:d};(f===!0||c===!0)&&(C.minWidth=p.width+"px",c===!0&&(C.minHeight=p.height+"px")),Object.assign(n.style,C);const $=Ni(M,E);let B=Ul(p,$,r,u);if(a===void 0||i===void 0)At(B,p,$,r,u);else{const{top:V,left:O}=B;At(B,p,$,r,u);let P=!1;if(B.top!==V){P=!0;const j=2*i[1];p.center=p.top-=j,p.bottom-=j+2}if(B.left!==O){P=!0;const j=2*i[0];p.middle=p.left-=j,p.right-=j+2}P===!0&&(B=Ul(p,$,r,u),At(B,p,$,r,u))}C={top:B.top+"px",left:B.left+"px"},B.maxHeight!==void 0&&(C.maxHeight=B.maxHeight+"px",p.height>B.maxHeight&&(C.minHeight=C.maxHeight)),B.maxWidth!==void 0&&(C.maxWidth=B.maxWidth+"px",p.width>B.maxWidth&&(C.minWidth=C.maxWidth)),Object.assign(n.style,C),n.scrollTop!==v&&(n.scrollTop=v),n.scrollLeft!==m&&(n.scrollLeft=m)}function At(e,t,n,i,o){const r=n.bottom,u=n.right,a=hi(),f=window.innerHeight-a,c=document.body.clientWidth;if(e.top<0||e.top+r>f)if(o.vertical==="center")e.top=t[i.vertical]>f/2?Math.max(0,f-r):0,e.maxHeight=Math.min(r,f);else if(t[i.vertical]>f/2){const d=Math.min(f,i.vertical==="center"?t.center:i.vertical===o.vertical?t.bottom:t.top);e.maxHeight=Math.min(r,d),e.top=Math.max(0,d-r)}else e.top=Math.max(0,i.vertical==="center"?t.center:i.vertical===o.vertical?t.top:t.bottom),e.maxHeight=Math.min(r,f-e.top);if(e.left<0||e.left+u>c)if(e.maxWidth=Math.min(u,c),o.horizontal==="middle")e.left=t[i.horizontal]>c/2?Math.max(0,c-u):0;else if(t[i.horizontal]>c/2){const d=Math.min(c,i.horizontal==="middle"?t.middle:i.horizontal===o.horizontal?t.right:t.left);e.maxWidth=Math.min(u,d),e.left=Math.max(0,d-e.maxWidth)}else e.left=Math.max(0,i.horizontal==="middle"?t.middle:i.horizontal===o.horizontal?t.left:t.right),e.maxWidth=Math.min(u,c-e.left)}const Qn=le({name:"QMenu",inheritAttrs:!1,props:{...qi,...Mn,...Ve,...In,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Wl},self:{type:String,validator:Wl},offset:{type:Array,validator:Hi},scrollTarget:Bn,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...$n,"click","escapeKey"],setup(e,{slots:t,emit:n,attrs:i}){let o=null,r,u,a;const f=l.getCurrentInstance(),{proxy:c}=f,{$q:d}=c,h=l.ref(null),m=l.ref(!1),v=l.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),p=Te(e,d),{registerTick:z,removeTick:y}=Hn(),{registerTimeout:M}=Dn(),{transitionProps:E,transitionStyle:C}=Fn(e),{localScrollTarget:$,changeScrollEvent:B,unconfigureScrollTarget:V}=zi(e,F),{anchorEl:O,canShow:P}=_i({showing:m}),{hide:j}=Ln({showing:m,canShow:P,handleShow:Z,handleHide:b,hideOnRouteChange:v,processOnMount:!0}),{showPortal:U,hidePortal:K,renderPortal:A}=Rn(f,h,G,"menu"),W={anchorEl:O,innerRef:h,onClickOutside(S){if(e.persistent!==!0&&m.value===!0)return j(S),(S.type==="touchstart"||S.target.classList.contains("q-dialog__backdrop"))&&te(S),!0}},g=l.computed(()=>Kl(e.anchor||(e.cover===!0?"center middle":"bottom start"),d.lang.rtl)),w=l.computed(()=>e.cover===!0?g.value:Kl(e.self||"top start",d.lang.rtl)),L=l.computed(()=>(e.square===!0?" q-menu--square":"")+(p.value===!0?" q-menu--dark q-dark":"")),Y=l.computed(()=>e.autoClose===!0?{onClick:T}:{}),q=l.computed(()=>m.value===!0&&e.persistent!==!0);l.watch(q,S=>{S===!0?(Nn(H),Fi(W)):(mt(H),Dl(W))});function R(){nl(()=>{let S=h.value;S&&S.contains(document.activeElement)!==!0&&(S=S.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||S.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||S.querySelector("[autofocus], [data-autofocus]")||S,S.focus({preventScroll:!0}))})}function Z(S){if(o=e.noRefocus===!1?document.activeElement:null,Kn(D),U(),F(),r=void 0,S!==void 0&&(e.touchPosition||e.contextMenu)){const ie=tt(S);if(ie.left!==void 0){const{top:he,left:Ae}=O.value.getBoundingClientRect();r={left:ie.left-Ae,top:ie.top-he}}}u===void 0&&(u=l.watch(()=>d.screen.width+"|"+d.screen.height+"|"+e.self+"|"+e.anchor+"|"+d.lang.rtl,I)),e.noFocus!==!0&&document.activeElement.blur(),z(()=>{I(),e.noFocus!==!0&&R()}),M(()=>{d.platform.is.ios===!0&&(a=e.autoClose,h.value.click()),I(),U(!0),n("show",S)},e.transitionDuration)}function b(S){y(),K(),k(!0),o!==null&&(S===void 0||S.qClickOutside!==!0)&&((((S==null?void 0:S.type.indexOf("key"))===0?o.closest('[tabindex]:not([tabindex^="-"])'):void 0)||o).focus(),o=null),M(()=>{K(!0),n("hide",S)},e.transitionDuration)}function k(S){r=void 0,u!==void 0&&(u(),u=void 0),(S===!0||m.value===!0)&&(Kt(D),V(),Dl(W),mt(H)),S!==!0&&(o=null)}function F(){(O.value!==null||e.scrollTarget!==void 0)&&($.value=Vn(O.value,e.scrollTarget),B($.value,I))}function T(S){a!==!0?(Mi(c,S),n("click",S)):a=!1}function D(S){q.value===!0&&e.noFocus!==!0&&kn(h.value,S.target)!==!0&&R()}function H(S){e.noEscDismiss!==!0&&(n("escapeKey"),j(S))}function I(){Un({targetEl:h.value,offset:e.offset,anchorEl:O.value,anchorOrigin:g.value,selfOrigin:w.value,absoluteOffset:r,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function G(){return l.h(l.Transition,E.value,()=>m.value===!0?l.h("div",{role:"menu",...i,ref:h,tabindex:-1,class:["q-menu q-position-engine scroll"+L.value,i.class],style:[i.style,C.value],...Y.value},ce(t.default)):null)}return l.onBeforeUnmount(k),Object.assign(c,{focus:R,updatePosition:I}),A}});let Ot,st=0;const re=new Array(256);for(let e=0;e<256;e++)re[e]=(e+256).toString(16).substring(1);const Wi=(()=>{const e=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(e!==void 0){if(e.randomBytes!==void 0)return e.randomBytes;if(e.getRandomValues!==void 0)return t=>{const n=new Uint8Array(t);return e.getRandomValues(n),n}}return t=>{const n=[];for(let i=t;i>0;i--)n.push(Math.floor(Math.random()*256));return n}})(),Ql=4096;function Qt(){(Ot===void 0||st+16>Ql)&&(st=0,Ot=Wi(Ql));const e=Array.prototype.slice.call(Ot,st,st+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,re[e[0]]+re[e[1]]+re[e[2]]+re[e[3]]+"-"+re[e[4]]+re[e[5]]+"-"+re[e[6]]+re[e[7]]+"-"+re[e[8]]+re[e[9]]+"-"+re[e[10]]+re[e[11]]+re[e[12]]+re[e[13]]+re[e[14]]+re[e[15]]}function Ki(e){return e??null}function Xl(e,t){return e??(t===!0?`f_${Qt()}`:null)}function Ui({getValue:e,required:t=!0}={}){if(Ne.value===!0){const n=e!==void 0?l.ref(Ki(e())):l.ref(null);return t===!0&&n.value===null&&l.onMounted(()=>{n.value=`f_${Qt()}`}),e!==void 0&&l.watch(e,i=>{n.value=Xl(i,t)}),n}return e!==void 0?l.computed(()=>Xl(e(),t)):l.ref(`f_${Qt()}`)}const Yl=/^on[A-Z]/;function Qi(){const{attrs:e,vnode:t}=l.getCurrentInstance(),n={listeners:l.ref({}),attributes:l.ref({})};function i(){const o={},r={};for(const u in e)u!=="class"&&u!=="style"&&Yl.test(u)===!1&&(o[u]=e[u]);for(const u in t.props)Yl.test(u)===!0&&(r[u]=t.props[u]);n.attributes.value=o,n.listeners.value=r}return l.onBeforeUpdate(i),i(),n}const Xi="_q_fo_";function Yi({validate:e,resetValidation:t,requiresQForm:n}){const i=l.inject(Xi,!1);if(i!==!1){const{props:o,proxy:r}=l.getCurrentInstance();Object.assign(r,{validate:e,resetValidation:t}),l.watch(()=>o.disable,u=>{u===!0?(typeof t=="function"&&t(),i.unbindComponent(r)):i.bindComponent(r)}),l.onMounted(()=>{o.disable!==!0&&i.bindComponent(r)}),l.onBeforeUnmount(()=>{o.disable!==!0&&i.unbindComponent(r)})}else n===!0&&console.error("Parent QForm not found on useFormChild()!")}const Gl=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Zl=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Jl=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,ct=/^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])\)$/,dt=/^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)\)$/,Mt={date:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),time:e=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),fulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),timeOrFulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(e),email:e=>/^(([^<>()\[\]\\.,;:\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(e),hexColor:e=>Gl.test(e),hexaColor:e=>Zl.test(e),hexOrHexaColor:e=>Jl.test(e),rgbColor:e=>ct.test(e),rgbaColor:e=>dt.test(e),rgbOrRgbaColor:e=>ct.test(e)||dt.test(e),hexOrRgbColor:e=>Gl.test(e)||ct.test(e),hexaOrRgbaColor:e=>Zl.test(e)||dt.test(e),anyColor:e=>Jl.test(e)||ct.test(e)||dt.test(e)},Gi=[!0,!1,"ondemand"],Zi={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>Gi.includes(e)}};function Ji(e,t){const{props:n,proxy:i}=l.getCurrentInstance(),o=l.ref(!1),r=l.ref(null),u=l.ref(!1);Yi({validate:z,resetValidation:p});let a=0,f;const c=l.computed(()=>n.rules!==void 0&&n.rules!==null&&n.rules.length!==0),d=l.computed(()=>n.disable!==!0&&c.value===!0&&t.value===!1),h=l.computed(()=>n.error===!0||o.value===!0),m=l.computed(()=>typeof n.errorMessage=="string"&&n.errorMessage.length!==0?n.errorMessage:r.value);l.watch(()=>n.modelValue,()=>{u.value=!0,d.value===!0&&n.lazyRules===!1&&y()});function v(){n.lazyRules!=="ondemand"&&d.value===!0&&u.value===!0&&y()}l.watch(()=>n.reactiveRules,M=>{M===!0?f===void 0&&(f=l.watch(()=>n.rules,v,{immediate:!0,deep:!0})):f!==void 0&&(f(),f=void 0)},{immediate:!0}),l.watch(()=>n.lazyRules,v),l.watch(e,M=>{M===!0?u.value=!0:d.value===!0&&n.lazyRules!=="ondemand"&&y()});function p(){a++,t.value=!1,u.value=!1,o.value=!1,r.value=null,y.cancel()}function z(M=n.modelValue){if(n.disable===!0||c.value===!1)return!0;const E=++a,C=t.value!==!0?()=>{u.value=!0}:()=>{},$=(V,O)=>{V===!0&&C(),o.value=V,r.value=O||null,t.value=!1},B=[];for(let V=0;V<n.rules.length;V++){const O=n.rules[V];let P;if(typeof O=="function"?P=O(M,Mt):typeof O=="string"&&Mt[O]!==void 0&&(P=Mt[O](M)),P===!1||typeof P=="string")return $(!0,P),!1;P!==!0&&P!==void 0&&B.push(P)}return B.length===0?($(!1),!0):(t.value=!0,Promise.all(B).then(V=>{if(V===void 0||Array.isArray(V)===!1||V.length===0)return E===a&&$(!1),!0;const O=V.find(P=>P===!1||typeof P=="string");return E===a&&$(O!==void 0,O),O===void 0},V=>(E===a&&(console.error(V),$(!0)),!1)))}const y=ll(z,0);return l.onBeforeUnmount(()=>{f==null||f(),y.cancel()}),Object.assign(i,{resetValidation:p,validate:z}),Yt(i,"hasError",()=>h.value),{isDirtyModel:u,hasRules:c,hasError:h,errorMessage:m,validate:z,resetValidation:p}}function Xt(e){return e!=null&&(""+e).length!==0}const er={...Ve,...Zi,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},ol={...er,maxlength:[Number,String]},Xn=["update:modelValue","clear","focus","blur"];function Yn({requiredForAttr:e=!0,tagProp:t,changeEvent:n=!1}={}){const{props:i,proxy:o}=l.getCurrentInstance(),r=Te(i,o.$q),u=Ui({required:e,getValue:()=>i.for});return{requiredForAttr:e,changeEvent:n,tag:t===!0?l.computed(()=>i.tag):{value:"label"},isDark:r,editable:l.computed(()=>i.disable!==!0&&i.readonly!==!0),innerLoading:l.ref(!1),focused:l.ref(!1),hasPopupOpen:!1,splitAttrs:Qi(),targetUid:u,rootRef:l.ref(null),targetRef:l.ref(null),controlRef:l.ref(null)}}function Gn(e){const{props:t,emit:n,slots:i,attrs:o,proxy:r}=l.getCurrentInstance(),{$q:u}=r;let a=null;e.hasValue===void 0&&(e.hasValue=l.computed(()=>Xt(t.modelValue))),e.emitValue===void 0&&(e.emitValue=q=>{n("update:modelValue",q)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:j,onFocusout:U}),Object.assign(e,{clearValue:K,onControlFocusin:j,onControlFocusout:U,focus:O}),e.computedCounter===void 0&&(e.computedCounter=l.computed(()=>{if(t.counter!==!1){const q=typeof t.modelValue=="string"||typeof t.modelValue=="number"?(""+t.modelValue).length:Array.isArray(t.modelValue)===!0?t.modelValue.length:0,R=t.maxlength!==void 0?t.maxlength:t.maxValues;return q+(R!==void 0?" / "+R:"")}}));const{isDirtyModel:f,hasRules:c,hasError:d,errorMessage:h,resetValidation:m}=Ji(e.focused,e.innerLoading),v=e.floatingLabel!==void 0?l.computed(()=>t.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):l.computed(()=>t.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),p=l.computed(()=>t.bottomSlots===!0||t.hint!==void 0||c.value===!0||t.counter===!0||t.error!==null),z=l.computed(()=>t.filled===!0?"filled":t.outlined===!0?"outlined":t.borderless===!0?"borderless":t.standout?"standout":"standard"),y=l.computed(()=>`q-field row no-wrap items-start q-field--${z.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(t.rounded===!0?" q-field--rounded":"")+(t.square===!0?" q-field--square":"")+(v.value===!0?" q-field--float":"")+(E.value===!0?" q-field--labeled":"")+(t.dense===!0?" q-field--dense":"")+(t.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(e.isDark.value===!0?" q-field--dark":"")+(e.getControl===void 0?" q-field--auto-height":"")+(e.focused.value===!0?" q-field--focused":"")+(d.value===!0?" q-field--error":"")+(d.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(t.hideBottomSpace!==!0&&p.value===!0?" q-field--with-bottom":"")+(t.disable===!0?" q-field--disabled":t.readonly===!0?" q-field--readonly":"")),M=l.computed(()=>"q-field__control relative-position row no-wrap"+(t.bgColor!==void 0?` bg-${t.bgColor}`:"")+(d.value===!0?" text-negative":typeof t.standout=="string"&&t.standout.length!==0&&e.focused.value===!0?` ${t.standout}`:t.color!==void 0?` text-${t.color}`:"")),E=l.computed(()=>t.labelSlot===!0||t.label!==void 0),C=l.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(t.labelColor!==void 0&&d.value!==!0?` text-${t.labelColor}`:"")),$=l.computed(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:v.value,modelValue:t.modelValue,emitValue:e.emitValue})),B=l.computed(()=>{const q={};return e.targetUid.value&&(q.for=e.targetUid.value),t.disable===!0&&(q["aria-disabled"]="true"),q});function V(){var Z;const q=document.activeElement;let R=(Z=e.targetRef)==null?void 0:Z.value;R&&(q===null||q.id!==e.targetUid.value)&&(R.hasAttribute("tabindex")===!0||(R=R.querySelector("[tabindex]")),R!==q&&(R==null||R.focus({preventScroll:!0})))}function O(){nl(V)}function P(){Bi(V);const q=document.activeElement;q!==null&&e.rootRef.value.contains(q)&&q.blur()}function j(q){a!==null&&(clearTimeout(a),a=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,n("focus",q))}function U(q,R){a!==null&&clearTimeout(a),a=setTimeout(()=>{a=null,!(document.hasFocus()===!0&&(e.hasPopupOpen===!0||e.controlRef===void 0||e.controlRef.value===null||e.controlRef.value.contains(document.activeElement)!==!1))&&(e.focused.value===!0&&(e.focused.value=!1,n("blur",q)),R==null||R())})}function K(q){var R;te(q),u.platform.is.mobile!==!0?(((R=e.targetRef)==null?void 0:R.value)||e.rootRef.value).focus():e.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),t.type==="file"&&(e.inputRef.value.value=null),n("update:modelValue",null),e.changeEvent===!0&&n("change",null),n("clear",t.modelValue),l.nextTick(()=>{const Z=f.value;m(),f.value=Z})}function A(q){[13,32].includes(q.keyCode)&&K(q)}function W(){const q=[];return i.prepend!==void 0&&q.push(l.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:ue},i.prepend())),q.push(l.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},g())),d.value===!0&&t.noErrorIcon===!1&&q.push(L("error",[l.h(de,{name:u.iconSet.field.error,color:"negative"})])),t.loading===!0||e.innerLoading.value===!0?q.push(L("inner-loading-append",i.loading!==void 0?i.loading():[l.h(Zt,{color:t.color})])):t.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&q.push(L("inner-clearable-append",[l.h(de,{class:"q-field__focusable-action",name:t.clearIcon||u.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":u.lang.label.clear,onKeyup:A,onClick:K})])),i.append!==void 0&&q.push(l.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:ue},i.append())),e.getInnerAppend!==void 0&&q.push(L("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&q.push(e.getControlChild()),q}function g(){const q=[];return t.prefix!==void 0&&t.prefix!==null&&q.push(l.h("div",{class:"q-field__prefix no-pointer-events row items-center"},t.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&q.push(e.getShadowControl()),e.getControl!==void 0?q.push(e.getControl()):i.rawControl!==void 0?q.push(i.rawControl()):i.control!==void 0&&q.push(l.h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0},i.control($.value))),E.value===!0&&q.push(l.h("div",{class:C.value},ce(i.label,t.label))),t.suffix!==void 0&&t.suffix!==null&&q.push(l.h("div",{class:"q-field__suffix no-pointer-events row items-center"},t.suffix)),q.concat(ce(i.default))}function w(){let q,R;d.value===!0?h.value!==null?(q=[l.h("div",{role:"alert"},h.value)],R=`q--slot-error-${h.value}`):(q=ce(i.error),R="q--slot-error"):(t.hideHint!==!0||e.focused.value===!0)&&(t.hint!==void 0?(q=[l.h("div",t.hint)],R=`q--slot-hint-${t.hint}`):(q=ce(i.hint),R="q--slot-hint"));const Z=t.counter===!0||i.counter!==void 0;if(t.hideBottomSpace===!0&&Z===!1&&q===void 0)return;const b=l.h("div",{key:R,class:"q-field__messages col"},q);return l.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(t.hideBottomSpace!==!0?"animated":"stale"),onClick:ue},[t.hideBottomSpace===!0?b:l.h(l.Transition,{name:"q-transition--field-message"},()=>b),Z===!0?l.h("div",{class:"q-field__counter"},i.counter!==void 0?i.counter():e.computedCounter.value):null])}function L(q,R){return R===null?null:l.h("div",{key:q,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},R)}let Y=!1;return l.onDeactivated(()=>{Y=!0}),l.onActivated(()=>{Y===!0&&t.autofocus===!0&&r.focus()}),t.autofocus===!0&&l.onMounted(()=>{r.focus()}),l.onBeforeUnmount(()=>{a!==null&&clearTimeout(a)}),Object.assign(r,{focus:O,blur:P}),function(){const R=e.getControl===void 0&&i.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0,...B.value}:B.value;return l.h(e.tag.value,{ref:e.rootRef,class:[y.value,o.class],style:o.style,...R},[i.before!==void 0?l.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:ue},i.before()):null,l.h("div",{class:"q-field__inner relative-position col self-stretch"},[l.h("div",{ref:e.controlRef,class:M.value,tabindex:-1,...e.controlEvents},W()),p.value===!0?w():null]),i.after!==void 0?l.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:ue},i.after()):null])}}const tr=le({name:"QField",inheritAttrs:!1,props:{...ol,tag:{type:String,default:"label"}},emits:Xn,setup(){return Gn(Yn({tagProp:!0}))}}),lr={xs:8,sm:10,md:14,lg:20,xl:24},nr=le({name:"QChip",props:{...Ve,...pt,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(e,{slots:t,emit:n}){const{proxy:{$q:i}}=l.getCurrentInstance(),o=Te(e,i),r=yt(e,lr),u=l.computed(()=>e.selected===!0||e.icon!==void 0),a=l.computed(()=>e.selected===!0?e.iconSelected||i.iconSet.chip.selected:e.icon),f=l.computed(()=>e.iconRemove||i.iconSet.chip.remove),c=l.computed(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),d=l.computed(()=>{const y=e.outline===!0&&e.color||e.textColor;return"q-chip row inline no-wrap items-center"+(e.outline===!1&&e.color!==void 0?` bg-${e.color}`:"")+(y?` text-${y} q-chip--colored`:"")+(e.disable===!0?" disabled":"")+(e.dense===!0?" q-chip--dense":"")+(e.outline===!0?" q-chip--outline":"")+(e.selected===!0?" q-chip--selected":"")+(c.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square===!0?" q-chip--square":"")+(o.value===!0?" q-chip--dark q-dark":"")}),h=l.computed(()=>{const y=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},M={...y,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||i.lang.label.remove};return{chip:y,remove:M}});function m(y){y.keyCode===13&&v(y)}function v(y){e.disable||(n("update:selected",!e.selected),n("click",y))}function p(y){(y.keyCode===void 0||y.keyCode===13)&&(te(y),e.disable===!1&&(n("update:modelValue",!1),n("remove")))}function z(){const y=[];c.value===!0&&y.push(l.h("div",{class:"q-focus-helper"})),u.value===!0&&y.push(l.h(de,{class:"q-chip__icon q-chip__icon--left",name:a.value}));const M=e.label!==void 0?[l.h("div",{class:"ellipsis"},[e.label])]:void 0;return y.push(l.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},po(t.default,M))),e.iconRight&&y.push(l.h(de,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&y.push(l.h(de,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:f.value,...h.value.remove,onClick:p,onKeyup:p})),y}return()=>{if(e.modelValue===!1)return;const y={class:d.value,style:r.value};return c.value===!0&&Object.assign(y,h.value.chip,{onClick:v,onKeyup:m}),yo("div",y,z(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[Cn,e.ripple]])}}}),or=le({name:"QItem",props:{...Ve,...pn,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(e,{slots:t,emit:n}){const{proxy:{$q:i}}=l.getCurrentInstance(),o=Te(e,i),{hasLink:r,linkAttrs:u,linkClass:a,linkTag:f,navigateOnClick:c}=Gt(),d=l.ref(null),h=l.ref(null),m=l.computed(()=>e.clickable===!0||r.value===!0||e.tag==="label"),v=l.computed(()=>e.disable!==!0&&m.value===!0),p=l.computed(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(o.value===!0?" q-item--dark":"")+(r.value===!0&&e.active===null?a.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(v.value===!0?" q-item--clickable q-link cursor-pointer "+(e.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(e.focused===!0?" q-manual-focusable--focused":""):"")),z=l.computed(()=>e.insetLevel===void 0?null:{["padding"+(i.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function y(C){v.value===!0&&(h.value!==null&&C.qAvoidFocus!==!0&&(C.qKeyEvent!==!0&&document.activeElement===d.value?h.value.focus():document.activeElement===h.value&&d.value.focus()),c(C))}function M(C){if(v.value===!0&&Be(C,[13,32])===!0){te(C),C.qKeyEvent=!0;const $=new MouseEvent("click",C);$.qKeyEvent=!0,d.value.dispatchEvent($)}n("keyup",C)}function E(){const C=bo(t.default,[]);return v.value===!0&&C.unshift(l.h("div",{class:"q-focus-helper",tabindex:-1,ref:h})),C}return()=>{const C={ref:d,class:p.value,style:z.value,role:"listitem",onClick:y,onKeyup:M};return v.value===!0?(C.tabindex=e.tabindex||"0",Object.assign(C,u.value)):m.value===!0&&(C["aria-disabled"]="true"),l.h(f.value,C,E())}}}),ir=le({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const n=l.computed(()=>`q-item__section column q-item__section--${e.avatar===!0||e.side===!0||e.thumbnail===!0?"side":"main"}`+(e.top===!0?" q-item__section--top justify-start":" justify-center")+(e.avatar===!0?" q-item__section--avatar":"")+(e.thumbnail===!0?" q-item__section--thumbnail":"")+(e.noWrap===!0?" q-item__section--nowrap":""));return()=>l.h("div",{class:n.value},ce(t.default))}}),rr=le({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const n=l.computed(()=>parseInt(e.lines,10)),i=l.computed(()=>"q-item__label"+(e.overline===!0?" q-item__label--overline text-overline":"")+(e.caption===!0?" q-item__label--caption text-caption":"")+(e.header===!0?" q-item__label--header":"")+(n.value===1?" ellipsis":"")),o=l.computed(()=>e.lines!==void 0&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null);return()=>l.h("div",{style:o.value,class:i.value},ce(t.default))}});function ur(e,t,n){function i(){}return l.onBeforeUnmount(()=>{e.value===!0&&void 0}),{removeFromHistory:i,addToHistory(){}}}let Ye=0,$t,Lt,Ze,Pt=!1,en,tn,ln,xe=null;function ar(e){sr(e)&&te(e)}function sr(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=Fo(e),n=e.shiftKey&&!e.deltaX,i=!n&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),o=n||i?e.deltaY:e.deltaX;for(let r=0;r<t.length;r++){const u=t[r];if(gi(u,i))return i?o<0&&u.scrollTop===0?!0:o>0&&u.scrollTop+u.clientHeight===u.scrollHeight:o<0&&u.scrollLeft===0?!0:o>0&&u.scrollLeft+u.clientWidth===u.scrollWidth}return!0}function nn(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function ft(e){Pt!==!0&&(Pt=!0,requestAnimationFrame(()=>{Pt=!1;const{height:t}=e.target,{clientHeight:n,scrollTop:i}=document.scrollingElement;(Ze===void 0||t!==window.innerHeight)&&(Ze=n-t,document.scrollingElement.scrollTop=i),i>Ze&&(document.scrollingElement.scrollTop-=Math.ceil((i-Ze)/8))}))}function on(e){const t=document.body,n=window.visualViewport!==void 0;if(e==="add"){const{overflowY:i,overflowX:o}=window.getComputedStyle(t);$t=el(window),Lt=Jt(window),en=t.style.left,tn=t.style.top,ln=window.location.href,t.style.left=`-${$t}px`,t.style.top=`-${Lt}px`,o!=="hidden"&&(o==="scroll"||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),i!=="hidden"&&(i==="scroll"||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,oe.is.ios===!0&&(n===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",ft,ne.passiveCapture),window.visualViewport.addEventListener("scroll",ft,ne.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",nn,ne.passiveCapture))}oe.is.desktop===!0&&oe.is.mac===!0&&window[`${e}EventListener`]("wheel",ar,ne.notPassive),e==="remove"&&(oe.is.ios===!0&&(n===!0?(window.visualViewport.removeEventListener("resize",ft,ne.passiveCapture),window.visualViewport.removeEventListener("scroll",ft,ne.passiveCapture)):window.removeEventListener("scroll",nn,ne.passiveCapture)),t.classList.remove("q-body--prevent-scroll"),t.classList.remove("q-body--force-scrollbar-x"),t.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,t.style.left=en,t.style.top=tn,window.location.href===ln&&window.scrollTo($t,Lt),Ze=void 0)}function cr(e){let t="add";if(e===!0){if(Ye++,xe!==null){clearTimeout(xe),xe=null;return}if(Ye>1)return}else{if(Ye===0||(Ye--,Ye>0))return;if(t="remove",oe.is.ios===!0&&oe.is.nativeMobile===!0){xe!==null&&clearTimeout(xe),xe=setTimeout(()=>{on(t),xe=null},100);return}}on(t)}function dr(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t===!0)&&(e=t,cr(t))}}}let vt=0;const fr={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"},rn={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},vr=le({name:"QDialog",inheritAttrs:!1,props:{...Mn,...In,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:e=>["standard","top","bottom","left","right"].includes(e)}},emits:[...$n,"shake","click","escapeKey"],setup(e,{slots:t,emit:n,attrs:i}){const o=l.getCurrentInstance(),r=l.ref(null),u=l.ref(!1),a=l.ref(!1);let f=null,c=null,d,h;const m=l.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:v}=dr(),{registerTimeout:p}=Dn(),{registerTick:z,removeTick:y}=Hn(),{transitionProps:M,transitionStyle:E}=Fn(e,()=>rn[e.position][0],()=>rn[e.position][1]),C=l.computed(()=>E.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:$,hidePortal:B,portalIsAccessible:V,renderPortal:O}=Rn(o,r,F,"dialog"),{hide:P}=Ln({showing:u,hideOnRouteChange:m,handleShow:W,handleHide:g,processOnMount:!0});ur(u);const j=l.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${fr[e.position]}`+(a.value===!0?" q-dialog__inner--animating":"")+(e.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(e.fullHeight===!0?" q-dialog__inner--fullheight":"")+(e.square===!0?" q-dialog__inner--square":"")),U=l.computed(()=>u.value===!0&&e.seamless!==!0),K=l.computed(()=>e.autoClose===!0?{onClick:Z}:{}),A=l.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${U.value===!0?"modal":"seamless"}`,i.class]);l.watch(()=>e.maximized,T=>{u.value===!0&&R(T)}),l.watch(U,T=>{v(T),T===!0?(Kn(k),Nn(Y)):(Kt(k),mt(Y))});function W(T){var D;c=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,R(e.maximized),$(),a.value=!0,e.noFocus!==!0?((D=document.activeElement)==null||D.blur(),z(w)):y(),p(()=>{if(o.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:H,bottom:I}=document.activeElement.getBoundingClientRect(),{innerHeight:G}=window,S=window.visualViewport!==void 0?window.visualViewport.height:G;H>0&&I>S/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-S,I>=G?1/0:Math.ceil(document.scrollingElement.scrollTop+I-S/2))),document.activeElement.scrollIntoView()}h=!0,r.value.click(),h=!1}$(!0),a.value=!1,n("show",T)},e.transitionDuration)}function g(T){y(),q(!0),a.value=!0,B(),c!==null&&((((T==null?void 0:T.type.indexOf("key"))===0?c.closest('[tabindex]:not([tabindex^="-"])'):void 0)||c).focus(),c=null),p(()=>{B(!0),a.value=!1,n("hide",T)},e.transitionDuration)}function w(T){nl(()=>{let D=r.value;if(D!==null){if(T!==void 0){const H=D.querySelector(T);if(H!==null){H.focus({preventScroll:!0});return}}D.contains(document.activeElement)!==!0&&(D=D.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||D.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||D.querySelector("[autofocus], [data-autofocus]")||D,D.focus({preventScroll:!0}))}})}function L(T){T&&typeof T.focus=="function"?T.focus({preventScroll:!0}):w(),n("shake");const D=r.value;D!==null&&(D.classList.remove("q-animate--scale"),D.classList.add("q-animate--scale"),f!==null&&clearTimeout(f),f=setTimeout(()=>{f=null,r.value!==null&&(D.classList.remove("q-animate--scale"),w())},170))}function Y(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&L():(n("escapeKey"),P()))}function q(T){f!==null&&(clearTimeout(f),f=null),(T===!0||u.value===!0)&&(R(!1),e.seamless!==!0&&(v(!1),Kt(k),mt(Y))),T!==!0&&(c=null)}function R(T){T===!0?d!==!0&&(vt<1&&document.body.classList.add("q-body--dialog"),vt++,d=!0):d===!0&&(vt<2&&document.body.classList.remove("q-body--dialog"),vt--,d=!1)}function Z(T){h!==!0&&(P(T),n("click",T))}function b(T){e.persistent!==!0&&e.noBackdropDismiss!==!0?P(T):e.noShake!==!0&&L()}function k(T){e.allowFocusOutside!==!0&&V.value===!0&&kn(r.value,T.target)!==!0&&w('[tabindex]:not([tabindex="-1"])')}Object.assign(o.proxy,{focus:w,shake:L,__updateRefocusTarget(T){c=T||null}}),l.onBeforeUnmount(q);function F(){return l.h("div",{role:"dialog","aria-modal":U.value===!0?"true":"false",...i,class:A.value},[l.h(l.Transition,{name:"q-transition--fade",appear:!0},()=>U.value===!0?l.h("div",{class:"q-dialog__backdrop fixed-full",style:C.value,"aria-hidden":"true",tabindex:-1,onClick:b}):null),l.h(l.Transition,M.value,()=>u.value===!0?l.h("div",{ref:r,class:j.value,style:E.value,tabindex:-1,...K.value},ce(t.default)):null)])}return O}});let bt=!1;{const e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});const t=document.createElement("div");Object.assign(t.style,{width:"1000px",height:"1px"}),document.body.appendChild(e),e.appendChild(t),e.scrollLeft=-1e3,bt=e.scrollLeft>=0,e.remove()}const me=1e3,mr=["start","center","end","start-force","center-force","end-force"],Zn=Array.prototype.filter,hr=window.getComputedStyle(document.body).overflowAnchor===void 0?wt:function(e,t){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;const n=e.children||[];Zn.call(n,o=>o.dataset&&o.dataset.qVsAnchor!==void 0).forEach(o=>{delete o.dataset.qVsAnchor});const i=n[t];i!=null&&i.dataset&&(i.dataset.qVsAnchor="")}))};function je(e,t){return e+t}function Rt(e,t,n,i,o,r,u,a){const f=e===window?document.scrollingElement||document.documentElement:e,c=o===!0?"offsetWidth":"offsetHeight",d={scrollStart:0,scrollViewSize:-u-a,scrollMaxSize:0,offsetStart:-u,offsetEnd:-a};if(o===!0?(e===window?(d.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,d.scrollViewSize+=document.documentElement.clientWidth):(d.scrollStart=f.scrollLeft,d.scrollViewSize+=f.clientWidth),d.scrollMaxSize=f.scrollWidth,r===!0&&(d.scrollStart=(bt===!0?d.scrollMaxSize-d.scrollViewSize:0)-d.scrollStart)):(e===window?(d.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,d.scrollViewSize+=document.documentElement.clientHeight):(d.scrollStart=f.scrollTop,d.scrollViewSize+=f.clientHeight),d.scrollMaxSize=f.scrollHeight),n!==null)for(let h=n.previousElementSibling;h!==null;h=h.previousElementSibling)h.classList.contains("q-virtual-scroll--skip")===!1&&(d.offsetStart+=h[c]);if(i!==null)for(let h=i.nextElementSibling;h!==null;h=h.nextElementSibling)h.classList.contains("q-virtual-scroll--skip")===!1&&(d.offsetEnd+=h[c]);if(t!==e){const h=f.getBoundingClientRect(),m=t.getBoundingClientRect();o===!0?(d.offsetStart+=m.left-h.left,d.offsetEnd-=m.width):(d.offsetStart+=m.top-h.top,d.offsetEnd-=m.height),e!==window&&(d.offsetStart+=d.scrollStart),d.offsetEnd+=d.scrollMaxSize-d.offsetStart}return d}function un(e,t,n,i){t==="end"&&(t=(e===window?document.body:e)[n===!0?"scrollWidth":"scrollHeight"]),e===window?n===!0?(i===!0&&(t=(bt===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-t),window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t):n===!0?(i===!0&&(t=(bt===!0?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function Ge(e,t,n,i){if(n>=i)return 0;const o=t.length,r=Math.floor(n/me),u=Math.floor((i-1)/me)+1;let a=e.slice(r,u).reduce(je,0);return n%me!==0&&(a-=t.slice(r*me,n).reduce(je,0)),i%me!==0&&i!==o&&(a-=t.slice(i,u*me).reduce(je,0)),a}const gr={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]},an={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...gr};function br({virtualScrollLength:e,getVirtualScrollTarget:t,getVirtualScrollEl:n,virtualScrollItemSizeComputed:i}){const o=l.getCurrentInstance(),{props:r,emit:u,proxy:a}=o,{$q:f}=a;let c,d,h,m=[],v;const p=l.ref(0),z=l.ref(0),y=l.ref({}),M=l.ref(null),E=l.ref(null),C=l.ref(null),$=l.ref({from:0,to:0}),B=l.computed(()=>r.tableColspan!==void 0?r.tableColspan:100);i===void 0&&(i=l.computed(()=>r.virtualScrollItemSize));const V=l.computed(()=>i.value+";"+r.virtualScrollHorizontal),O=l.computed(()=>V.value+";"+r.virtualScrollSliceRatioBefore+";"+r.virtualScrollSliceRatioAfter);l.watch(O,()=>{L()}),l.watch(V,P);function P(){w(d,!0)}function j(b){w(b===void 0?d:b)}function U(b,k){const F=t();if(F==null||F.nodeType===8)return;const T=Rt(F,n(),M.value,E.value,r.virtualScrollHorizontal,f.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd);h!==T.scrollViewSize&&L(T.scrollViewSize),A(F,T,Math.min(e.value-1,Math.max(0,parseInt(b,10)||0)),0,mr.indexOf(k)!==-1?k:d!==-1&&b>d?"end":"start")}function K(){const b=t();if(b==null||b.nodeType===8)return;const k=Rt(b,n(),M.value,E.value,r.virtualScrollHorizontal,f.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd),F=e.value-1,T=k.scrollMaxSize-k.offsetStart-k.offsetEnd-z.value;if(c===k.scrollStart)return;if(k.scrollMaxSize<=0){A(b,k,0,0);return}h!==k.scrollViewSize&&L(k.scrollViewSize),W($.value.from);const D=Math.floor(k.scrollMaxSize-Math.max(k.scrollViewSize,k.offsetEnd)-Math.min(v[F],k.scrollViewSize/2));if(D>0&&Math.ceil(k.scrollStart)>=D){A(b,k,F,k.scrollMaxSize-k.offsetEnd-m.reduce(je,0));return}let H=0,I=k.scrollStart-k.offsetStart,G=I;if(I<=T&&I+k.scrollViewSize>=p.value)I-=p.value,H=$.value.from,G=I;else for(let S=0;I>=m[S]&&H<F;S++)I-=m[S],H+=me;for(;I>0&&H<F;)I-=v[H],I>-k.scrollViewSize?(H++,G=I):G=v[H]+I;A(b,k,H,G)}function A(b,k,F,T,D){const H=typeof D=="string"&&D.indexOf("-force")!==-1,I=H===!0?D.replace("-force",""):D,G=I!==void 0?I:"start";let S=Math.max(0,F-y.value[G]),ie=S+y.value.total;ie>e.value&&(ie=e.value,S=Math.max(0,ie-y.value.total)),c=k.scrollStart;const he=S!==$.value.from||ie!==$.value.to;if(he===!1&&I===void 0){q(F);return}const{activeElement:Ae}=document,fe=C.value;he===!0&&fe!==null&&fe!==Ae&&fe.contains(Ae)===!0&&(fe.addEventListener("focusout",g),setTimeout(()=>{fe==null||fe.removeEventListener("focusout",g)})),hr(fe,F-S);const nt=I!==void 0?v.slice(S,F).reduce(je,0):0;if(he===!0){const ye=ie>=$.value.from&&S<=$.value.to?$.value.to:ie;$.value={from:S,to:ye},p.value=Ge(m,v,0,S),z.value=Ge(m,v,ie,e.value),requestAnimationFrame(()=>{$.value.to!==ie&&c===k.scrollStart&&($.value={from:$.value.from,to:ie},z.value=Ge(m,v,ie,e.value))})}requestAnimationFrame(()=>{if(c!==k.scrollStart)return;he===!0&&W(S);const ye=v.slice(S,F).reduce(je,0),we=ye+k.offsetStart+p.value,ot=we+v[F];let Ke=we+T;if(I!==void 0){const St=ye-nt,Ue=k.scrollStart+St;Ke=H!==!0&&Ue<we&&ot<Ue+k.scrollViewSize?Ue:I==="end"?ot-k.scrollViewSize:we-(I==="start"?0:Math.round((k.scrollViewSize-v[F])/2))}c=Ke,un(b,Ke,r.virtualScrollHorizontal,f.lang.rtl),q(F)})}function W(b){const k=C.value;if(k){const F=Zn.call(k.children,S=>S.classList&&S.classList.contains("q-virtual-scroll--skip")===!1),T=F.length,D=r.virtualScrollHorizontal===!0?S=>S.getBoundingClientRect().width:S=>S.offsetHeight;let H=b,I,G;for(let S=0;S<T;){for(I=D(F[S]),S++;S<T&&F[S].classList.contains("q-virtual-scroll--with-prev")===!0;)I+=D(F[S]),S++;G=I-v[H],G!==0&&(v[H]+=G,m[Math.floor(H/me)]+=G),H++}}}function g(){var b;(b=C.value)==null||b.focus()}function w(b,k){const F=1*i.value;(k===!0||Array.isArray(v)===!1)&&(v=[]);const T=v.length;v.length=e.value;for(let H=e.value-1;H>=T;H--)v[H]=F;const D=Math.floor((e.value-1)/me);m=[];for(let H=0;H<=D;H++){let I=0;const G=Math.min((H+1)*me,e.value);for(let S=H*me;S<G;S++)I+=v[S];m.push(I)}d=-1,c=void 0,p.value=Ge(m,v,0,$.value.from),z.value=Ge(m,v,$.value.to,e.value),b>=0?(W($.value.from),l.nextTick(()=>{U(b)})):R()}function L(b){if(b===void 0&&typeof window<"u"){const I=t();I!=null&&I.nodeType!==8&&(b=Rt(I,n(),M.value,E.value,r.virtualScrollHorizontal,f.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd).scrollViewSize)}h=b;const k=parseFloat(r.virtualScrollSliceRatioBefore)||0,F=parseFloat(r.virtualScrollSliceRatioAfter)||0,T=1+k+F,D=b===void 0||b<=0?1:Math.ceil(b/i.value),H=Math.max(1,D,Math.ceil((r.virtualScrollSliceSize>0?r.virtualScrollSliceSize:10)/T));y.value={total:Math.ceil(H*T),start:Math.ceil(H*k),center:Math.ceil(H*(.5+k)),end:Math.ceil(H*(1+k)),view:D}}function Y(b,k){const F=r.virtualScrollHorizontal===!0?"width":"height",T={["--q-virtual-scroll-item-"+F]:i.value+"px"};return[b==="tbody"?l.h(b,{class:"q-virtual-scroll__padding",key:"before",ref:M},[l.h("tr",[l.h("td",{style:{[F]:`${p.value}px`,...T},colspan:B.value})])]):l.h(b,{class:"q-virtual-scroll__padding",key:"before",ref:M,style:{[F]:`${p.value}px`,...T}}),l.h(b,{class:"q-virtual-scroll__content",key:"content",ref:C,tabindex:-1},k.flat()),b==="tbody"?l.h(b,{class:"q-virtual-scroll__padding",key:"after",ref:E},[l.h("tr",[l.h("td",{style:{[F]:`${z.value}px`,...T},colspan:B.value})])]):l.h(b,{class:"q-virtual-scroll__padding",key:"after",ref:E,style:{[F]:`${z.value}px`,...T}})]}function q(b){d!==b&&(r.onVirtualScroll!==void 0&&u("virtualScroll",{index:b,from:$.value.from,to:$.value.to-1,direction:b<d?"decrease":"increase",ref:a}),d=b)}L();const R=ll(K,f.platform.is.ios===!0?120:35);l.onBeforeMount(()=>{L()});let Z=!1;return l.onDeactivated(()=>{Z=!0}),l.onActivated(()=>{if(Z!==!0)return;const b=t();c!==void 0&&b!==void 0&&b!==null&&b.nodeType!==8?un(b,c,r.virtualScrollHorizontal,f.lang.rtl):U(d)}),l.onBeforeUnmount(()=>{R.cancel()}),Object.assign(a,{scrollTo:U,reset:P,refresh:j}),{virtualScrollSliceRange:$,virtualScrollSliceSizeComputed:y,setVirtualScrollSize:L,onVirtualScrollEvt:R,localResetVirtualScroll:w,padVirtualScroll:Y,scrollTo:U,reset:P,refresh:j}}const pr=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,yr=/[\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,wr=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,Sr=/[a-z0-9_ -]$/i;function kr(e){return function(n){if(n.type==="compositionend"||n.type==="change"){if(n.target.qComposing!==!0)return;n.target.qComposing=!1,e(n)}else n.type==="compositionupdate"&&n.target.qComposing!==!0&&typeof n.data=="string"&&(oe.is.firefox===!0?Sr.test(n.data)===!1:pr.test(n.data)===!0||yr.test(n.data)===!0||wr.test(n.data)===!0)===!0&&(n.target.qComposing=!0)}}function pe(e,t){if(e===t)return!0;if(e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let n,i;if(e.constructor===Array){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(pe(e[i],t[i])!==!0)return!1;return!0}if(e.constructor===Map){if(e.size!==t.size)return!1;let r=e.entries();for(i=r.next();i.done!==!0;){if(t.has(i.value[0])!==!0)return!1;i=r.next()}for(r=e.entries(),i=r.next();i.done!==!0;){if(pe(i.value[1],t.get(i.value[0]))!==!0)return!1;i=r.next()}return!0}if(e.constructor===Set){if(e.size!==t.size)return!1;const r=e.entries();for(i=r.next();i.done!==!0;){if(t.has(i.value[0])!==!0)return!1;i=r.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const o=Object.keys(e).filter(r=>e[r]!==void 0);if(n=o.length,n!==Object.keys(t).filter(r=>t[r]!==void 0).length)return!1;for(i=n;i--!==0;){const r=o[i];if(pe(e[r],t[r])!==!0)return!1}return!0}return e!==e&&t!==t}const sn=e=>["add","add-unique","toggle"].includes(e),xr=".*+?^${}()|[]\\",Cr=Object.keys(ol);function It(e,t){if(typeof e=="function")return e;const n=e!==void 0?e:t;return i=>i!==null&&typeof i=="object"&&n in i?i[n]:i}const Jn=le({name:"QSelect",inheritAttrs:!1,props:{...an,..._n,...ol,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:sn},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:e=>["default","menu","dialog"].includes(e),default:"default"},virtualScrollItemSize:an.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...Xn,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:t,emit:n}){const{proxy:i}=l.getCurrentInstance(),{$q:o}=i,r=l.ref(!1),u=l.ref(!1),a=l.ref(-1),f=l.ref(""),c=l.ref(!1),d=l.ref(!1);let h=null,m=null,v,p,z,y=null,M,E,C,$;const B=l.ref(null),V=l.ref(null),O=l.ref(null),P=l.ref(null),j=l.ref(null),U=ti(e),K=kr(ml),A=l.computed(()=>Array.isArray(e.options)?e.options.length:0),W=l.computed(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:g,virtualScrollSliceSizeComputed:w,localResetVirtualScroll:L,padVirtualScroll:Y,onVirtualScrollEvt:q,scrollTo:R,setVirtualScrollSize:Z}=br({virtualScrollLength:A,getVirtualScrollTarget:no,getVirtualScrollEl:fl,virtualScrollItemSizeComputed:W}),b=Yn(),k=l.computed(()=>{const s=e.mapOptions===!0&&e.multiple!==!0,x=e.modelValue!==void 0&&(e.modelValue!==null||s===!0)?e.multiple===!0&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions===!0&&Array.isArray(e.options)===!0){const _=e.mapOptions===!0&&v!==void 0?v:[],N=x.map(Q=>lo(Q,_));return e.modelValue===null&&s===!0?N.filter(Q=>Q!==null):N}return x}),F=l.computed(()=>{const s={};return Cr.forEach(x=>{const _=e[x];_!==void 0&&(s[x]=_)}),s}),T=l.computed(()=>e.optionsDark===null?b.isDark.value:e.optionsDark),D=l.computed(()=>Xt(k.value)),H=l.computed(()=>{let s="q-field__input q-placeholder col";return e.hideSelected===!0||k.value.length===0?[s,e.inputClass]:(s+=" q-field__input--padding",e.inputClass===void 0?s:[s,e.inputClass])}),I=l.computed(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),G=l.computed(()=>A.value===0),S=l.computed(()=>k.value.map(s=>ae.value(s)).join(", ")),ie=l.computed(()=>e.displayValue!==void 0?e.displayValue:S.value),he=l.computed(()=>e.optionsHtml===!0?()=>!0:s=>(s==null?void 0:s.html)===!0),Ae=l.computed(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||k.value.some(he.value))),fe=l.computed(()=>b.focused.value===!0?e.tabindex:-1),nt=l.computed(()=>{const s={tabindex:e.tabindex,role:"combobox","aria-label":e.label,"aria-readonly":e.readonly===!0?"true":"false","aria-autocomplete":e.useInput===!0?"list":"none","aria-expanded":r.value===!0?"true":"false","aria-controls":`${b.targetUid.value}_lb`};return a.value>=0&&(s["aria-activedescendant"]=`${b.targetUid.value}_${a.value}`),s}),ye=l.computed(()=>({id:`${b.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),we=l.computed(()=>k.value.map((s,x)=>({index:x,opt:s,html:he.value(s),selected:!0,removeAtIndex:to,toggleOption:Se,tabindex:fe.value}))),ot=l.computed(()=>{if(A.value===0)return[];const{from:s,to:x}=g.value;return e.options.slice(s,x).map((_,N)=>{const Q=Oe.value(_)===!0,J=xt(_)===!0,X=s+N,ee={clickable:!0,active:J,activeClass:Ue.value,manualFocus:!0,focused:!1,disable:Q,tabindex:-1,dense:e.optionsDense,dark:T.value,role:"option","aria-selected":J===!0?"true":"false",id:`${b.targetUid.value}_${X}`,onClick:()=>{Se(_)}};return Q!==!0&&(a.value===X&&(ee.focused=!0),o.platform.is.desktop===!0&&(ee.onMousemove=()=>{r.value===!0&&Me(X)})),{index:X,opt:_,html:he.value(_),label:ae.value(_),selected:ee.active,focused:ee.focused,toggleOption:Se,setOptionIndex:Me,itemProps:ee}})}),Ke=l.computed(()=>e.dropdownIcon!==void 0?e.dropdownIcon:o.iconSet.arrow.dropdown),St=l.computed(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),Ue=l.computed(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),ge=l.computed(()=>It(e.optionValue,"value")),ae=l.computed(()=>It(e.optionLabel,"label")),Oe=l.computed(()=>It(e.optionDisable,"disable")),it=l.computed(()=>k.value.map(ge.value)),eo=l.computed(()=>{const s={onInput:ml,onChange:K,onKeydown:dl,onKeyup:sl,onKeypress:cl,onFocus:ul,onClick(x){p===!0&&ve(x)}};return s.onCompositionstart=s.onCompositionupdate=s.onCompositionend=K,s});l.watch(k,s=>{v=s,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&b.innerLoading.value!==!0&&(u.value!==!0&&r.value!==!0||D.value!==!0)&&(z!==!0&&Re(),(u.value===!0||r.value===!0)&&$e(""))},{immediate:!0}),l.watch(()=>e.fillInput,Re),l.watch(r,Ct),l.watch(A,go);function il(s){return e.emitValue===!0?ge.value(s):s}function kt(s){if(s!==-1&&s<k.value.length)if(e.multiple===!0){const x=e.modelValue.slice();n("remove",{index:s,value:x.splice(s,1)[0]}),n("update:modelValue",x)}else n("update:modelValue",null)}function to(s){kt(s),b.focus()}function rl(s,x){const _=il(s);if(e.multiple!==!0){e.fillInput===!0&&Qe(ae.value(s),!0,!0),n("update:modelValue",_);return}if(k.value.length===0){n("add",{index:0,value:_}),n("update:modelValue",e.multiple===!0?[_]:_);return}if(x===!0&&xt(s)===!0||e.maxValues!==void 0&&e.modelValue.length>=e.maxValues)return;const N=e.modelValue.slice();n("add",{index:N.length,value:_}),N.push(_),n("update:modelValue",N)}function Se(s,x){var J;if(b.editable.value!==!0||s===void 0||Oe.value(s)===!0)return;const _=ge.value(s);if(e.multiple!==!0){x!==!0&&(Qe(e.fillInput===!0?ae.value(s):"",!0,!0),ke()),(J=V.value)==null||J.focus(),(k.value.length===0||pe(ge.value(k.value[0]),_)!==!0)&&n("update:modelValue",e.emitValue===!0?_:s);return}if((p!==!0||c.value===!0)&&b.focus(),ul(),k.value.length===0){const X=e.emitValue===!0?_:s;n("add",{index:0,value:X}),n("update:modelValue",e.multiple===!0?[X]:X);return}const N=e.modelValue.slice(),Q=it.value.findIndex(X=>pe(X,_));if(Q!==-1)n("remove",{index:Q,value:N.splice(Q,1)[0]});else{if(e.maxValues!==void 0&&N.length>=e.maxValues)return;const X=e.emitValue===!0?_:s;n("add",{index:N.length,value:X}),N.push(X)}n("update:modelValue",N)}function Me(s){if(o.platform.is.desktop!==!0)return;const x=s!==-1&&s<A.value?s:-1;a.value!==x&&(a.value=x)}function rt(s=1,x){if(r.value===!0){let _=a.value;do _=Ll(_+s,-1,A.value-1);while(_!==-1&&_!==a.value&&Oe.value(e.options[_])===!0);a.value!==_&&(Me(_),R(_),x!==!0&&e.useInput===!0&&e.fillInput===!0&&ut(_>=0?ae.value(e.options[_]):M,!0))}}function lo(s,x){const _=N=>pe(ge.value(N),s);return e.options.find(_)||x.find(_)||s}function xt(s){const x=ge.value(s);return it.value.find(_=>pe(_,x))!==void 0}function ul(s){e.useInput===!0&&V.value!==null&&(s===void 0||V.value===s.target&&s.target.value===S.value)&&V.value.select()}function al(s){Be(s,27)===!0&&r.value===!0&&(ve(s),ke(),Re()),n("keyup",s)}function sl(s){const{value:x}=s.target;if(s.keyCode!==void 0){al(s);return}if(s.target.value="",h!==null&&(clearTimeout(h),h=null),m!==null&&(clearTimeout(m),m=null),Re(),typeof x=="string"&&x.length!==0){const _=x.toLocaleLowerCase(),N=J=>{const X=e.options.find(ee=>String(J.value(ee)).toLocaleLowerCase()===_);return X===void 0?!1:(k.value.indexOf(X)===-1?Se(X):ke(),!0)},Q=J=>{N(ge)!==!0&&J!==!0&&N(ae)!==!0&&$e(x,!0,()=>Q(!0))};Q()}else b.clearValue(s)}function cl(s){n("keypress",s)}function dl(s){if(n("keydown",s),xn(s)===!0)return;const x=f.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),_=s.shiftKey!==!0&&e.disableTabSelection!==!0&&e.multiple!==!0&&(a.value!==-1||x===!0);if(s.keyCode===27){ue(s);return}if(s.keyCode===9&&_===!1){Le();return}if(s.target===void 0||s.target.id!==b.targetUid.value||b.editable.value!==!0)return;if(s.keyCode===40&&b.innerLoading.value!==!0&&r.value===!1){te(s),Pe();return}if(s.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&f.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?kt(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&n("update:modelValue",null);return}(s.keyCode===35||s.keyCode===36)&&(typeof f.value!="string"||f.value.length===0)&&(te(s),a.value=-1,rt(s.keyCode===36?1:-1,e.multiple)),(s.keyCode===33||s.keyCode===34)&&w.value!==void 0&&(te(s),a.value=Math.max(-1,Math.min(A.value,a.value+(s.keyCode===33?-1:1)*w.value.view)),rt(s.keyCode===33?1:-1,e.multiple)),(s.keyCode===38||s.keyCode===40)&&(te(s),rt(s.keyCode===38?-1:1,e.multiple));const N=A.value;if((C===void 0||$<Date.now())&&(C=""),N>0&&e.useInput!==!0&&s.key!==void 0&&s.key.length===1&&s.altKey===!1&&s.ctrlKey===!1&&s.metaKey===!1&&(s.keyCode!==32||C.length!==0)){r.value!==!0&&Pe(s);const Q=s.key.toLocaleLowerCase(),J=C.length===1&&C[0]===Q;$=Date.now()+1500,J===!1&&(te(s),C+=Q);const X=new RegExp("^"+C.split("").map(Ie=>xr.indexOf(Ie)!==-1?"\\"+Ie:Ie).join(".*"),"i");let ee=a.value;if(J===!0||ee<0||X.test(ae.value(e.options[ee]))!==!0)do ee=Ll(ee+1,-1,N-1);while(ee!==a.value&&(Oe.value(e.options[ee])===!0||X.test(ae.value(e.options[ee]))!==!0));a.value!==ee&&l.nextTick(()=>{Me(ee),R(ee),ee>=0&&e.useInput===!0&&e.fillInput===!0&&ut(ae.value(e.options[ee]),!0)});return}if(!(s.keyCode!==13&&(s.keyCode!==32||e.useInput===!0||C!=="")&&(s.keyCode!==9||_===!1))){if(s.keyCode!==9&&te(s),a.value!==-1&&a.value<N){Se(e.options[a.value]);return}if(x===!0){const Q=(J,X)=>{var Ie;if(X){if(sn(X)!==!0)return}else X=e.newValueMode;if(Qe("",e.multiple!==!0,!0),J==null)return;(X==="toggle"?Se:rl)(J,X==="add-unique"),e.multiple!==!0&&((Ie=V.value)==null||Ie.focus(),ke())};if(e.onNewValue!==void 0?n("newValue",f.value,Q):Q(f.value),e.multiple!==!0)return}r.value===!0?Le():b.innerLoading.value!==!0&&Pe()}}function fl(){return p===!0?j.value:O.value!==null&&O.value.contentEl!==null?O.value.contentEl:void 0}function no(){return fl()}function oo(){return e.hideSelected===!0?[]:t["selected-item"]!==void 0?we.value.map(s=>t["selected-item"](s)).slice():t.selected!==void 0?[].concat(t.selected()):e.useChips===!0?we.value.map((s,x)=>l.h(nr,{key:"option-"+x,removable:b.editable.value===!0&&Oe.value(s.opt)!==!0,dense:!0,textColor:e.color,tabindex:fe.value,onRemove(){s.removeAtIndex(x)}},()=>l.h("span",{class:"ellipsis",[s.html===!0?"innerHTML":"textContent"]:ae.value(s.opt)}))):[l.h("span",{class:"ellipsis",[Ae.value===!0?"innerHTML":"textContent"]:ie.value})]}function vl(){if(G.value===!0)return t["no-option"]!==void 0?t["no-option"]({inputValue:f.value}):void 0;const s=t.option!==void 0?t.option:_=>l.h(or,{key:_.index,..._.itemProps},()=>l.h(ir,()=>l.h(rr,()=>l.h("span",{[_.html===!0?"innerHTML":"textContent"]:_.label}))));let x=Y("div",ot.value.map(s));return t["before-options"]!==void 0&&(x=t["before-options"]().concat(x)),be(t["after-options"],x)}function io(s,x){const _=x===!0?{...nt.value,...b.splitAttrs.attributes.value}:void 0,N={ref:x===!0?V:void 0,key:"i_t",class:H.value,style:e.inputStyle,value:f.value!==void 0?f.value:"",type:"search",..._,id:x===!0?b.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":s===!0||e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...eo.value};return s!==!0&&p===!0&&(Array.isArray(N.class)===!0?N.class=[...N.class,"no-pointer-events"]:N.class+=" no-pointer-events"),l.h("input",N)}function ml(s){h!==null&&(clearTimeout(h),h=null),m!==null&&(clearTimeout(m),m=null),!(s&&s.target&&s.target.qComposing===!0)&&(ut(s.target.value||""),z=!0,M=f.value,b.focused.value!==!0&&(p!==!0||c.value===!0)&&b.focus(),e.onFilter!==void 0&&(h=setTimeout(()=>{h=null,$e(f.value)},e.inputDebounce)))}function ut(s,x){f.value!==s&&(f.value=s,x===!0||e.inputDebounce===0||e.inputDebounce==="0"?n("inputValue",s):m=setTimeout(()=>{m=null,n("inputValue",s)},e.inputDebounce))}function Qe(s,x,_){z=_!==!0,e.useInput===!0&&(ut(s,!0),(x===!0||_!==!0)&&(M=s),x!==!0&&$e(s))}function $e(s,x,_){if(e.onFilter===void 0||x!==!0&&b.focused.value!==!0)return;b.innerLoading.value===!0?n("filterAbort"):(b.innerLoading.value=!0,d.value=!0),s!==""&&e.multiple!==!0&&k.value.length!==0&&z!==!0&&s===ae.value(k.value[0])&&(s="");const N=setTimeout(()=>{r.value===!0&&(r.value=!1)},10);y!==null&&clearTimeout(y),y=N,n("filter",s,(Q,J)=>{(x===!0||b.focused.value===!0)&&y===N&&(clearTimeout(y),typeof Q=="function"&&Q(),d.value=!1,l.nextTick(()=>{b.innerLoading.value=!1,b.editable.value===!0&&(x===!0?r.value===!0&&ke():r.value===!0?Ct(!0):r.value=!0),typeof J=="function"&&l.nextTick(()=>{J(i)}),typeof _=="function"&&l.nextTick(()=>{_(i)})}))},()=>{b.focused.value===!0&&y===N&&(clearTimeout(y),b.innerLoading.value=!1,d.value=!1),r.value===!0&&(r.value=!1)})}function ro(){return l.h(Qn,{ref:O,class:I.value,style:e.popupContentStyle,modelValue:r.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&G.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:T.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:St.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...ye.value,onScrollPassive:q,onBeforeShow:gl,onBeforeHide:uo,onShow:ao},vl)}function uo(s){bl(s),Le()}function ao(){Z()}function so(s){var x;ve(s),(x=V.value)==null||x.focus(),c.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function co(s){ve(s),l.nextTick(()=>{c.value=!1})}function fo(){const s=[l.h(tr,{class:`col-auto ${b.fieldClass.value}`,...F.value,for:b.targetUid.value,dark:T.value,square:!0,loading:d.value,itemAligned:!1,filled:!0,stackLabel:f.value.length!==0,...b.splitAttrs.listeners.value,onFocus:so,onBlur:co},{...t,rawControl:()=>b.getControl(!0),before:void 0,after:void 0})];return r.value===!0&&s.push(l.h("div",{ref:j,class:I.value+" scroll",style:e.popupContentStyle,...ye.value,onClick:ue,onScrollPassive:q},vl())),l.h(vr,{ref:P,modelValue:u.value,position:e.useInput===!0?"top":void 0,transitionShow:E,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:gl,onBeforeHide:vo,onHide:mo,onShow:ho},()=>l.h("div",{class:"q-select__dialog"+(T.value===!0?" q-select__dialog--dark q-dark":"")+(c.value===!0?" q-select__dialog--focused":"")},s))}function vo(s){bl(s),P.value!==null&&P.value.__updateRefocusTarget(b.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),b.focused.value=!1}function mo(s){ke(),b.focused.value===!1&&n("blur",s),Re()}function ho(){const s=document.activeElement;(s===null||s.id!==b.targetUid.value)&&V.value!==null&&V.value!==s&&V.value.focus(),Z()}function Le(){u.value!==!0&&(a.value=-1,r.value===!0&&(r.value=!1),b.focused.value===!1&&(y!==null&&(clearTimeout(y),y=null),b.innerLoading.value===!0&&(n("filterAbort"),b.innerLoading.value=!1,d.value=!1)))}function Pe(s){b.editable.value===!0&&(p===!0?(b.onControlFocusin(s),u.value=!0,l.nextTick(()=>{b.focus()})):b.focus(),e.onFilter!==void 0?$e(f.value):(G.value!==!0||t["no-option"]!==void 0)&&(r.value=!0))}function ke(){u.value=!1,Le()}function Re(){e.useInput===!0&&Qe(e.multiple!==!0&&e.fillInput===!0&&k.value.length!==0&&ae.value(k.value[0])||"",!0,!0)}function Ct(s){let x=-1;if(s===!0){if(k.value.length!==0){const _=ge.value(k.value[0]);x=e.options.findIndex(N=>pe(ge.value(N),_))}L(x)}Me(x)}function go(s,x){r.value===!0&&b.innerLoading.value===!1&&(L(-1,!0),l.nextTick(()=>{r.value===!0&&b.innerLoading.value===!1&&(s>x?L():Ct(!0))}))}function hl(){u.value===!1&&O.value!==null&&O.value.updatePosition()}function gl(s){s!==void 0&&ve(s),n("popupShow",s),b.hasPopupOpen=!0,b.onControlFocusin(s)}function bl(s){s!==void 0&&ve(s),n("popupHide",s),b.hasPopupOpen=!1,b.onControlFocusout(s)}function pl(){p=o.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?t["no-option"]!==void 0||e.onFilter!==void 0||G.value===!1:!0),E=o.platform.is.ios===!0&&p===!0&&e.useInput===!0?"fade":e.transitionShow}return l.onBeforeUpdate(pl),l.onUpdated(hl),pl(),l.onBeforeUnmount(()=>{h!==null&&clearTimeout(h),m!==null&&clearTimeout(m)}),Object.assign(i,{showPopup:Pe,hidePopup:ke,removeAtIndex:kt,add:rl,toggleOption:Se,getOptionIndex:()=>a.value,setOptionIndex:Me,moveOptionSelection:rt,filter:$e,updateMenuPosition:hl,updateInputValue:Qe,isOptionSelected:xt,getEmittingOptionValue:il,isOptionDisabled:(...s)=>Oe.value.apply(null,s)===!0,getOptionValue:(...s)=>ge.value.apply(null,s),getOptionLabel:(...s)=>ae.value.apply(null,s)}),Object.assign(b,{innerValue:k,fieldClass:l.computed(()=>`q-select q-field--auto-height q-select--with${e.useInput!==!0?"out":""}-input q-select--with${e.useChips!==!0?"out":""}-chips q-select--${e.multiple===!0?"multiple":"single"}`),inputRef:B,targetRef:V,hasValue:D,showPopup:Pe,floatingLabel:l.computed(()=>e.hideSelected!==!0&&D.value===!0||typeof f.value=="number"||f.value.length!==0||Xt(e.displayValue)),getControlChild:()=>{if(b.editable.value!==!1&&(u.value===!0||G.value!==!0||t["no-option"]!==void 0))return p===!0?fo():ro();b.hasPopupOpen===!0&&(b.hasPopupOpen=!1)},controlEvents:{onFocusin(s){b.onControlFocusin(s)},onFocusout(s){b.onControlFocusout(s,()=>{Re(),Le()})},onClick(s){var x;if(ue(s),p!==!0&&r.value===!0){Le(),(x=V.value)==null||x.focus();return}Pe(s)}},getControl:s=>{const x=oo(),_=s===!0||u.value!==!0||p!==!0;if(e.useInput===!0)x.push(io(s,_));else if(b.editable.value===!0){const Q=_===!0?nt.value:void 0;x.push(l.h("input",{ref:_===!0?V:void 0,key:"d_t",class:"q-select__focus-target",id:_===!0?b.targetUid.value:void 0,value:ie.value,readonly:!0,"data-autofocus":s===!0||e.autofocus===!0||void 0,...Q,onKeydown:dl,onKeyup:al,onKeypress:cl})),_===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&x.push(l.h("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:sl}))}if(U.value!==void 0&&e.disable!==!0&&it.value.length!==0){const Q=it.value.map(J=>l.h("option",{value:J,selected:!0}));x.push(l.h("select",{class:"hidden",name:U.value,multiple:e.multiple},Q))}const N=e.useInput===!0||_!==!0?void 0:b.splitAttrs.attributes.value;return l.h("div",{class:"q-field__native row items-center",...N,...b.splitAttrs.listeners.value},x)},getInnerAppend:()=>e.loading!==!0&&d.value!==!0&&e.hideDropdownIcon!==!0?[l.h(de,{class:"q-select__dropdown-icon"+(r.value===!0?" rotate-180":""),name:Ke.value})]:null}),Gn(b)}}),qr={class:"q-pa-none"},_r=l.defineComponent({__name:"CheckboxFilter",props:{options:{},label:{default:"Sélectionner les options"},modelValue:{default:()=>[]},scrollAreaHeight:{default:"200px"},scrollAreaWidth:{default:"250px"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=t,o=l.ref(!1),r=l.ref(n.modelValue||[]),u=l.computed(()=>({height:n.scrollAreaHeight,width:n.scrollAreaWidth}));return l.watch(r,a=>{i("update:modelValue",a)}),l.watch(()=>n.modelValue,a=>{a&&(r.value=a)}),(a,f)=>(l.openBlock(),l.createElementBlock("div",qr,[l.createVNode(Jn,l.mergeProps({outlined:"",dense:"",label:n.label,class:"full-width cursor-pointer","data-cy":"checkbox-filter","model-value":null,options:[],"hide-dropdown-icon":""},a.$attrs),{append:l.withCtx(()=>[l.createVNode(de,{name:"arrow_drop_down",class:l.normalizeClass(["cursor-pointer smooth-rotate",{"rotate-180":o.value}])},null,8,["class"])]),default:l.withCtx(()=>[l.createVNode(Qn,{modelValue:o.value,"onUpdate:modelValue":f[1]||(f[1]=c=>o.value=c),anchor:"bottom left",self:"top left",offset:[0,8],"transition-show":"scale","transition-hide":"scale"},{default:l.withCtx(()=>[l.createVNode(xi,{class:"q-pa-sm"},{default:l.withCtx(()=>[l.createVNode(ki,{style:l.normalizeStyle(u.value)},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.options,c=>(l.openBlock(),l.createBlock(ui,{key:c.value,modelValue:r.value,"onUpdate:modelValue":f[0]||(f[0]=d=>r.value=d),val:c,label:c.label,disable:c.disabled,color:"primary",class:"q-mb-sm q-ml-sm q-mr-sm","data-cy":`checkbox-option-${c.label}`},null,8,["modelValue","val","label","disable","data-cy"]))),128))]),_:1},8,["style"])]),_:1})]),_:1},8,["modelValue"])]),_:1},16,["label"])]))}}),zr=qn(_r,[["__scopeId","data-v-42c19597"]]),Er=l.defineComponent({__name:"SelectSearch",props:{options:{default:()=>[]},fetchOptions:{},label:{default:"Select"},modelValue:{default:null}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=t,o=l.ref(n.modelValue),r=l.ref(n.options),u=l.ref(!1);l.watch(()=>n.modelValue,c=>{o.value=c}),l.watch(o,c=>{i("update:modelValue",c)}),l.watch(()=>n.options,c=>{r.value=c});const a=async(c,d)=>{d(()=>{if(n.fetchOptions){const h=n.fetchOptions(c);h instanceof Promise?(u.value=!0,h.then(m=>{r.value=m}).finally(()=>{u.value=!1})):r.value=h}else r.value=c?n.options.filter(h=>h.label.toLowerCase().includes(c.toLowerCase())):n.options})},f=()=>{a("",c=>c())};return(c,d)=>(l.openBlock(),l.createBlock(Jn,l.mergeProps({modelValue:o.value,"onUpdate:modelValue":d[0]||(d[0]=h=>o.value=h),"use-input":"","hide-selected":"","fill-input":"","input-debounce":"300",label:c.label,options:r.value,onFilter:a,onFocus:f,"data-cy":"client-select",dense:"",outlined:"",class:"full-width cursor-pointer"},c.$attrs),l.createSlots({_:2},[u.value?{name:"append",fn:l.withCtx(()=>[l.createVNode(Zt,{color:"primary",size:"sm"})]),key:"0"}:void 0]),1040,["modelValue","label","options"]))}});function Br(e){var t,n;return{entity:e.entity,dataCy:e.dataCy,defaultLabel:e.defaultLabel,routeName:e.routeName,shouldRender:e.customShouldRender||(({store:i})=>e.storeField?!!i[e.storeField]:!0),getLabel:e.getLabel||(e.labelField?({store:i})=>{var o;return e.storeField&&((o=i[e.storeField])==null?void 0:o[e.labelField])||e.defaultLabel}:void 0),getColor:e.customGetColor||(({store:i})=>e.storeField&&i[e.storeField]?"primary":"dark"),getRouteParams:e.routeParamKey&&e.routeParamField?({store:i})=>{var o;return{[e.routeParamKey]:e.storeField&&((o=i[e.storeField])==null?void 0:o[e.routeParamField])}}:void 0,clearActions:[...((t=e.clearMethods)==null?void 0:t.map(i=>({store:o})=>{var r;return(r=o[i])==null?void 0:r.call(o)}))||[],...((n=e.navActions)==null?void 0:n.map(i=>({navStore:o})=>i(o)))||[]]}}exports.Breadcrumbs=$o;exports.CheckboxFilter=zr;exports.NavButton=Zo;exports.SelectSearch=Er;exports.createBreadcrumb=Br;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),Qt={xs:18,sm:24,md:32,lg:38,xl:46},rt={size:String};function it(e,l=Qt){return t.computed(()=>e.size!==void 0?{fontSize:e.size in l?`${l[e.size]}px`:e.size}:null)}function nl(e,l,n,r){return Object.defineProperty(e,l,{get:n,set:r,enumerable:!0}),e}function W(e){return t.markRaw(t.defineComponent(e))}function bn(e){return t.markRaw(e)}function ue(e,l){return e!==void 0&&e()||l}function pn(e,l){if(e!==void 0){const n=e();if(n!=null)return n.slice()}return l}function he(e,l){return e!==void 0?l.concat(e()):l}function yn(e,l){return e===void 0?l:l!==void 0?l.concat(e()):e()}function zo(e,l,n,r,o,i){l.key=r+o;const a=t.h(e,l,n);return o===!0?t.withDirectives(a,i()):a}const zl="0 0 24 24",Vt=e=>e,Et=e=>`ionicons ${e}`,wn={"mdi-":e=>`mdi ${e}`,"icon-":Vt,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":Et,"ion-ios":Et,"ion-logo":Et,"iconfont ":Vt,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`,"i-":Vt},Sn={o_:"-outlined",r_:"-round",s_:"-sharp"},Cn={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Bo=new RegExp("^("+Object.keys(wn).join("|")+")"),Vo=new RegExp("^("+Object.keys(Sn).join("|")+")"),Bl=new RegExp("^("+Object.keys(Cn).join("|")+")"),Eo=/^[Mm]\s?[-+]?\.?\d/,To=/^img:/,$o=/^svguse:/,Lo=/^ion-/,Ao=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,ce=W({name:"QIcon",props:{...rt,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:l}){const{proxy:{$q:n}}=t.getCurrentInstance(),r=it(e),o=t.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),i=t.computed(()=>{let a,u=e.name;if(u==="none"||!u)return{none:!0};if(n.iconMapFn!==null){const d=n.iconMapFn(u);if(d!==void 0)if(d.icon!==void 0){if(u=d.icon,u==="none"||!u)return{none:!0}}else return{cls:d.cls,content:d.content!==void 0?d.content:" "}}if(Eo.test(u)===!0){const[d,b=zl]=u.split("|");return{svg:!0,viewBox:b,nodes:d.split("&&").map(m=>{const[v,g,k]=m.split("@@");return t.h("path",{style:g,d:v,transform:k})})}}if(To.test(u)===!0)return{img:!0,src:u.substring(4)};if($o.test(u)===!0){const[d,b=zl]=u.split("|");return{svguse:!0,src:d.substring(7),viewBox:b}}let c=" ";const f=u.match(Bo);if(f!==null)a=wn[f[1]](u);else if(Ao.test(u)===!0)a=u;else if(Lo.test(u)===!0)a=`ionicons ion-${n.platform.is.ios===!0?"ios":"md"}${u.substring(3)}`;else if(Bl.test(u)===!0){a="notranslate material-symbols";const d=u.match(Bl);d!==null&&(u=u.substring(6),a+=Cn[d[1]]),c=u}else{a="notranslate material-icons";const d=u.match(Vo);d!==null&&(u=u.substring(2),a+=Sn[d[1]]),c=u}return{cls:a,content:c}});return()=>{const a={class:o.value,style:r.value,"aria-hidden":"true"};return i.value.none===!0?t.h(e.tag,a,ue(l.default)):i.value.img===!0?t.h(e.tag,a,he(l.default,[t.h("img",{src:i.value.src})])):i.value.svg===!0?t.h(e.tag,a,he(l.default,[t.h("svg",{viewBox:i.value.viewBox||"0 0 24 24"},i.value.nodes)])):i.value.svguse===!0?t.h(e.tag,a,he(l.default,[t.h("svg",{viewBox:i.value.viewBox},[t.h("use",{"xlink:href":i.value.src})])])):(i.value.cls!==void 0&&(a.class+=" "+i.value.cls),t.h(e.tag,a,he(l.default,[i.value.content])))}}});function Tt(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:l}=e.$;for(;Object(l)===l;){if(Object(l.proxy)===l.proxy)return l.proxy;l=l.parent}}function xn(e,l){typeof l.type=="symbol"?Array.isArray(l.children)===!0&&l.children.forEach(n=>{xn(e,n)}):e.add(l)}function Oo(e){const l=new Set;return e.forEach(n=>{xn(l,n)}),Array.from(l)}function kn(e){return e.appContext.config.globalProperties.$router!==void 0}function qn(e){return e.isUnmounted===!0||e.isDeactivated===!0}function Vl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function El(e,l){return(e.aliasOf||e)===(l.aliasOf||l)}function Mo(e,l){for(const n in l){const r=l[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(Array.isArray(o)===!1||o.length!==r.length||r.some((i,a)=>i!==o[a]))return!1}return!0}function Tl(e,l){return Array.isArray(l)===!0?e.length===l.length&&e.every((n,r)=>n===l[r]):e.length===1&&e[0]===l}function Po(e,l){return Array.isArray(e)===!0?Tl(e,l):Array.isArray(l)===!0?Tl(l,e):e===l}function Ro(e,l){if(Object.keys(e).length!==Object.keys(l).length)return!1;for(const n in e)if(Po(e[n],l[n])===!1)return!1;return!0}const _n={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},zn={..._n,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function ol({fallbackTag:e,useDisableForRouterLinkProps:l=!0}={}){const n=t.getCurrentInstance(),{props:r,proxy:o,emit:i}=n,a=kn(n),u=t.computed(()=>r.disable!==!0&&r.href!==void 0),c=l===!0?t.computed(()=>a===!0&&r.disable!==!0&&u.value!==!0&&r.to!==void 0&&r.to!==null&&r.to!==""):t.computed(()=>a===!0&&u.value!==!0&&r.to!==void 0&&r.to!==null&&r.to!==""),f=t.computed(()=>c.value===!0?w(r.to):null),d=t.computed(()=>f.value!==null),b=t.computed(()=>u.value===!0||d.value===!0),m=t.computed(()=>r.type==="a"||b.value===!0?"a":r.tag||e||"div"),v=t.computed(()=>u.value===!0?{href:r.href,target:r.target}:d.value===!0?{href:f.value.href,target:r.target}:{}),g=t.computed(()=>{if(d.value===!1)return-1;const{matched:S}=f.value,{length:q}=S,$=S[q-1];if($===void 0)return-1;const P=o.$route.matched;if(P.length===0)return-1;const I=P.findIndex(El.bind(null,$));if(I!==-1)return I;const K=Vl(S[q-2]);return q>1&&Vl($)===K&&P[P.length-1].path!==K?P.findIndex(El.bind(null,S[q-2])):I}),k=t.computed(()=>d.value===!0&&g.value!==-1&&Mo(o.$route.params,f.value.params)),h=t.computed(()=>k.value===!0&&g.value===o.$route.matched.length-1&&Ro(o.$route.params,f.value.params)),B=t.computed(()=>d.value===!0?h.value===!0?` ${r.exactActiveClass} ${r.activeClass}`:r.exact===!0?"":k.value===!0?` ${r.activeClass}`:"":"");function w(S){try{return o.$router.resolve(S)}catch{}return null}function C(S,{returnRouterError:q,to:$=r.to,replace:P=r.replace}={}){if(r.disable===!0)return S.preventDefault(),Promise.resolve(!1);if(S.metaKey||S.altKey||S.ctrlKey||S.shiftKey||S.button!==void 0&&S.button!==0||r.target==="_blank")return Promise.resolve(!1);S.preventDefault();const I=o.$router[P===!0?"replace":"push"]($);return q===!0?I:I.then(()=>{}).catch(()=>{})}function x(S){if(d.value===!0){const q=$=>C(S,$);i("click",S,q),S.defaultPrevented!==!0&&q()}else i("click",S)}return{hasRouterLink:d,hasHrefLink:u,hasLink:b,linkTag:m,resolvedLink:f,linkIsActive:k,linkIsExactActive:h,linkClass:B,linkAttrs:v,getLink:w,navigateToRouterLink:C,navigateOnClick:x}}const Fo=W({name:"QBreadcrumbsEl",props:{...zn,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(e,{slots:l}){const{linkTag:n,linkAttrs:r,linkClass:o,navigateOnClick:i}=ol(),a=t.computed(()=>({class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(e.disable!==!0?"q-link--focusable"+o.value:"q-breadcrumbs__el--disable"),...r.value,onClick:i})),u=t.computed(()=>"q-breadcrumbs__el-icon"+(e.label!==void 0?" q-breadcrumbs__el-icon--with-label":""));return()=>{const c=[];return e.icon!==void 0&&c.push(t.h(ce,{class:u.value,name:e.icon})),e.label!==void 0&&c.push(e.label),t.h(n.value,{...a.value},he(l.default,c))}}}),Bn={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Io=Object.keys(Bn),Vn={align:{type:String,validator:e=>Io.includes(e)}};function En(e){return t.computed(()=>{const l=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${Bn[l]}`})}const Ho=["",!0],Do=W({name:"QBreadcrumbs",props:{...Vn,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:e=>["none","xs","sm","md","lg","xl"].includes(e),default:"sm"}},setup(e,{slots:l}){const n=En(e),r=t.computed(()=>`flex items-center ${n.value}${e.gutter==="none"?"":` q-gutter-${e.gutter}`}`),o=t.computed(()=>e.separatorColor?` text-${e.separatorColor}`:""),i=t.computed(()=>` text-${e.activeColor}`);return()=>{if(l.default===void 0)return;const a=Oo(ue(l.default));if(a.length===0)return;let u=1;const c=[],f=a.filter(b=>{var m;return((m=b.type)==null?void 0:m.name)==="QBreadcrumbsEl"}).length,d=l.separator!==void 0?l.separator:()=>e.separator;return a.forEach(b=>{var m;if(((m=b.type)==null?void 0:m.name)==="QBreadcrumbsEl"){const v=u<f,g=b.props!==null&&Ho.includes(b.props.disable),k=(v===!0?"":" q-breadcrumbs--last")+(g!==!0&&v===!0?i.value:"");u++,c.push(t.h("div",{class:`flex items-center${k}`},[b])),v===!0&&c.push(t.h("div",{class:"q-breadcrumbs__separator"+o.value},d()))}else c.push(b)}),t.h("div",{class:"q-breadcrumbs"},[t.h("div",{class:r.value},c)])}}}),jo=t.defineComponent({inheritAttrs:!1,__name:"Breadcrumbs",props:{activeColor:{},separatorIcon:{},separatorSize:{},separatorColor:{},store:{},navStore:{},route:{},router:{},breadcrumbConfig:{},separator:{},gutter:{},align:{}},setup(e){const l=e,n=t.useAttrs(),r=t.computed(()=>{const{activeColor:m,separatorIcon:v,separatorSize:g,separatorColor:k,...h}=n;return h}),o=m=>({"data-cy":m.dataCy,class:"cursor-pointer text-h5",color:m.color}),i=t.computed(()=>l.activeColor||"primary"),a=t.computed(()=>l.separatorIcon||"chevron_right"),u=t.computed(()=>l.separatorSize||"2em"),c=t.computed(()=>l.separatorColor||"primary"),f=t.computed(()=>({store:l.store,route:l.route,navStore:l.navStore||{}})),d=t.computed(()=>{const m=[];return l.breadcrumbConfig.forEach(v=>{if(!v.shouldRender(f.value))return;const g=v.getLabel?v.getLabel(f.value):v.defaultLabel,k=v.getColor?v.getColor(f.value):"dark",h={name:v.routeName,...v.getRouteParams&&{params:v.getRouteParams(f.value)}},B=v.clearActions?v.clearActions.map(w=>()=>w(f.value)):[];m.push({label:g,dataCy:v.dataCy,color:k,route:h,clearActions:B})}),m}),b=m=>{m.clearActions&&m.clearActions.forEach(v=>v()),l.router.push(m.route)};return(m,v)=>(t.openBlock(),t.createBlock(Do,t.mergeProps({"active-color":i.value,class:"text-brown"},r.value),{separator:t.withCtx(()=>[t.createVNode(ce,{size:u.value,name:a.value,color:c.value},null,8,["size","name","color"])]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.value,(g,k)=>(t.openBlock(),t.createBlock(Fo,t.mergeProps({key:k},{ref_for:!0},o(g),{label:g.label,onClick:h=>b(g)}),null,16,["label","onClick"]))),128))]),_:1},16,["active-color"]))}}),No={size:{type:[String,Number],default:"1em"},color:String};function Qo(e){return{cSize:t.computed(()=>e.size in Qt?`${Qt[e.size]}px`:e.size),classes:t.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const Tn=W({name:"QSpinner",props:{...No,thickness:{type:Number,default:5}},setup(e){const{cSize:l,classes:n}=Qo(e);return()=>t.h("svg",{class:n.value+" q-spinner-mat",width:l.value,height:l.value,viewBox:"25 25 50 50"},[t.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function Wt(e,l){const n=e.style;for(const r in l)n[r]=l[r]}function Wo(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const l=t.unref(e);if(l)return l.$el||l}function $n(e,l){if(e==null||e.contains(l)===!0)return!0;for(let n=e.nextElementSibling;n!==null;n=n.nextElementSibling)if(n.contains(l))return!0;return!1}const ne={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(ne,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch{}function xt(){}function Uo(e){return e.button===0}function nt(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function Ko(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const l=[];let n=e.target;for(;n;){if(l.push(n),n.tagName==="HTML")return l.push(document),l.push(window),l;n=n.parentElement}}function ve(e){e.stopPropagation()}function ae(e){e.cancelable!==!1&&e.preventDefault()}function le(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function $t(e,l){if(e===void 0||l===!0&&e.__dragPrevented===!0)return;const n=l===!0?r=>{r.__dragPrevented=!0,r.addEventListener("dragstart",ae,ne.notPassiveCapture)}:r=>{delete r.__dragPrevented,r.removeEventListener("dragstart",ae,ne.notPassiveCapture)};e.querySelectorAll("a, img").forEach(n)}function Be(e,l,n){const r=`__q_${l}_evt`;e[r]=e[r]!==void 0?e[r].concat(n):n,n.forEach(o=>{o[0].addEventListener(o[1],e[o[2]],ne[o[3]])})}function tt(e,l){const n=`__q_${l}_evt`;e[n]!==void 0&&(e[n].forEach(r=>{r[0].removeEventListener(r[1],e[r[2]],ne[r[3]])}),e[n]=void 0)}function Ln(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function Le(e,l){return Ln(e)===!0?!1:[].concat(l).includes(e.keyCode)}function Xo(e,l=250){let n=!1,r;return function(){return n===!1&&(n=!0,setTimeout(()=>{n=!1},l),r=e.apply(this,arguments)),r}}function $l(e,l,n,r){n.modifiers.stop===!0&&ve(e);const o=n.modifiers.color;let i=n.modifiers.center;i=i===!0||r===!0;const a=document.createElement("span"),u=document.createElement("span"),c=nt(e),{left:f,top:d,width:b,height:m}=l.getBoundingClientRect(),v=Math.sqrt(b*b+m*m),g=v/2,k=`${(b-v)/2}px`,h=i?k:`${c.left-f-g}px`,B=`${(m-v)/2}px`,w=i?B:`${c.top-d-g}px`;u.className="q-ripple__inner",Wt(u,{height:`${v}px`,width:`${v}px`,transform:`translate3d(${h},${w},0) scale3d(.2,.2,1)`,opacity:0}),a.className=`q-ripple${o?" text-"+o:""}`,a.setAttribute("dir","ltr"),a.appendChild(u),l.appendChild(a);const C=()=>{a.remove(),clearTimeout(x)};n.abort.push(C);let x=setTimeout(()=>{u.classList.add("q-ripple__inner--enter"),u.style.transform=`translate3d(${k},${B},0) scale3d(1,1,1)`,u.style.opacity=.2,x=setTimeout(()=>{u.classList.remove("q-ripple__inner--enter"),u.classList.add("q-ripple__inner--leave"),u.style.opacity=0,x=setTimeout(()=>{a.remove(),n.abort.splice(n.abort.indexOf(C),1)},275)},250)},50)}function Ll(e,{modifiers:l,value:n,arg:r}){const o=Object.assign({},e.cfg.ripple,l,n);e.modifiers={early:o.early===!0,stop:o.stop===!0,center:o.center===!0,color:o.color||r,keyCodes:[].concat(o.keyCodes||13)}}const An=bn({name:"ripple",beforeMount(e,l){const n=l.instance.$.appContext.config.globalProperties.$q.config||{};if(n.ripple===!1)return;const r={cfg:n,enabled:l.value!==!1,modifiers:{},abort:[],start(o){r.enabled===!0&&o.qSkipRipple!==!0&&o.type===(r.modifiers.early===!0?"pointerdown":"click")&&$l(o,e,r,o.qKeyEvent===!0)},keystart:Xo(o=>{r.enabled===!0&&o.qSkipRipple!==!0&&Le(o,r.modifiers.keyCodes)===!0&&o.type===`key${r.modifiers.early===!0?"down":"up"}`&&$l(o,e,r,!0)},300)};Ll(r,l),e.__qripple=r,Be(r,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,l){if(l.oldValue!==l.value){const n=e.__qripple;n!==void 0&&(n.enabled=l.value!==!1,n.enabled===!0&&Object(l.value)===l.value&&Ll(n,l))}},beforeUnmount(e){const l=e.__qripple;l!==void 0&&(l.abort.forEach(n=>{n()}),tt(l,"main"),delete e._qripple)}}),Al={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Yo={xs:8,sm:10,md:14,lg:20,xl:24},Go=["button","submit","reset"],Zo=/[^\s]\/[^\s]/,Jo=["flat","outline","push","unelevated"];function er(e,l){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":l}const tr={...rt,..._n,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Jo.reduce((e,l)=>(e[l]=Boolean)&&e,{}),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:{...Vn.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},lr={...tr,round:Boolean};function nr(e){const l=it(e,Yo),n=En(e),{hasRouterLink:r,hasLink:o,linkTag:i,linkAttrs:a,navigateOnClick:u}=ol({fallbackTag:"button"}),c=t.computed(()=>{const h=e.fab===!1&&e.fabMini===!1?l.value:{};return e.padding!==void 0?Object.assign({},h,{padding:e.padding.split(/\s+/).map(B=>B in Al?Al[B]+"px":B).join(" "),minWidth:"0",minHeight:"0"}):h}),f=t.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),d=t.computed(()=>e.disable!==!0&&e.loading!==!0),b=t.computed(()=>d.value===!0?e.tabindex||0:-1),m=t.computed(()=>er(e,"standard")),v=t.computed(()=>{const h={tabindex:b.value};return o.value===!0?Object.assign(h,a.value):Go.includes(e.type)===!0&&(h.type=e.type),i.value==="a"?(e.disable===!0?h["aria-disabled"]="true":h.href===void 0&&(h.role="button"),r.value!==!0&&Zo.test(e.type)===!0&&(h.type=e.type)):e.disable===!0&&(h.disabled="",h["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(h,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),h}),g=t.computed(()=>{let h;e.color!==void 0?e.flat===!0||e.outline===!0?h=`text-${e.textColor||e.color}`:h=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(h=`text-${e.textColor}`);const B=e.round===!0?"round":`rectangle${f.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${m.value} q-btn--${B}`+(h!==void 0?" "+h:"")+(d.value===!0?" q-btn--actionable q-focusable q-hoverable":e.disable===!0?" disabled":"")+(e.fab===!0?" q-btn--fab":e.fabMini===!0?" q-btn--fab-mini":"")+(e.noCaps===!0?" q-btn--no-uppercase":"")+(e.dense===!0?" q-btn--dense":"")+(e.stretch===!0?" no-border-radius self-stretch":"")+(e.glossy===!0?" glossy":"")+(e.square?" q-btn--square":"")}),k=t.computed(()=>n.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:g,style:c,innerClasses:k,attributes:v,hasLink:o,linkTag:i,navigateOnClick:u,isActionable:d}}const{passiveCapture:de}=ne;let De=null,je=null,Ne=null;const Ol=W({name:"QBtn",props:{...lr,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:l,emit:n}){const{proxy:r}=t.getCurrentInstance(),{classes:o,style:i,innerClasses:a,attributes:u,hasLink:c,linkTag:f,navigateOnClick:d,isActionable:b}=nr(e),m=t.ref(null),v=t.ref(null);let g=null,k,h=null;const B=t.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),w=t.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:c.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),C=t.computed(()=>({center:e.round})),x=t.computed(()=>{const p=Math.max(0,Math.min(100,e.percentage));return p>0?{transition:"transform 0.6s",transform:`translateX(${p-100}%)`}:{}}),S=t.computed(()=>{if(e.loading===!0)return{onMousedown:Q,onTouchstart:Q,onClick:Q,onKeydown:Q,onKeyup:Q};if(b.value===!0){const p={onClick:$,onKeydown:P,onMousedown:K};if(r.$q.platform.has.touch===!0){const _=e.onTouchstart!==void 0?"":"Passive";p[`onTouchstart${_}`]=I}return p}return{onClick:le}}),q=t.computed(()=>({ref:m,class:"q-btn q-btn-item non-selectable no-outline "+o.value,style:i.value,...u.value,...S.value}));function $(p){if(m.value!==null){if(p!==void 0){if(p.defaultPrevented===!0)return;const _=document.activeElement;if(e.type==="submit"&&_!==document.body&&m.value.contains(_)===!1&&_.contains(m.value)===!1){p.qAvoidFocus!==!0&&m.value.focus();const M=()=>{var G;document.removeEventListener("keydown",le,!0),document.removeEventListener("keyup",M,de),(G=m.value)==null||G.removeEventListener("blur",M,de)};document.addEventListener("keydown",le,!0),document.addEventListener("keyup",M,de),m.value.addEventListener("blur",M,de)}}d(p)}}function P(p){m.value!==null&&(n("keydown",p),Le(p,[13,32])===!0&&je!==m.value&&(je!==null&&O(),p.defaultPrevented!==!0&&(p.qAvoidFocus!==!0&&m.value.focus(),je=m.value,m.value.classList.add("q-btn--active"),document.addEventListener("keyup",U,!0),m.value.addEventListener("blur",U,de)),le(p)))}function I(p){m.value!==null&&(n("touchstart",p),p.defaultPrevented!==!0&&(De!==m.value&&(De!==null&&O(),De=m.value,g=p.target,g.addEventListener("touchcancel",U,de),g.addEventListener("touchend",U,de)),k=!0,h!==null&&clearTimeout(h),h=setTimeout(()=>{h=null,k=!1},200)))}function K(p){m.value!==null&&(p.qSkipRipple=k===!0,n("mousedown",p),p.defaultPrevented!==!0&&Ne!==m.value&&(Ne!==null&&O(),Ne=m.value,m.value.classList.add("q-btn--active"),document.addEventListener("mouseup",U,de)))}function U(p){if(m.value!==null&&!((p==null?void 0:p.type)==="blur"&&document.activeElement===m.value)){if((p==null?void 0:p.type)==="keyup"){if(je===m.value&&Le(p,[13,32])===!0){const _=new MouseEvent("click",p);_.qKeyEvent=!0,p.defaultPrevented===!0&&ae(_),p.cancelBubble===!0&&ve(_),m.value.dispatchEvent(_),le(p),p.qKeyEvent=!0}n("keyup",p)}O()}}function O(p){var M,G;const _=v.value;p!==!0&&(De===m.value||Ne===m.value)&&_!==null&&_!==document.activeElement&&(_.setAttribute("tabindex",-1),_.focus()),De===m.value&&(g!==null&&(g.removeEventListener("touchcancel",U,de),g.removeEventListener("touchend",U,de)),De=g=null),Ne===m.value&&(document.removeEventListener("mouseup",U,de),Ne=null),je===m.value&&(document.removeEventListener("keyup",U,!0),(M=m.value)==null||M.removeEventListener("blur",U,de),je=null),(G=m.value)==null||G.classList.remove("q-btn--active")}function Q(p){le(p),p.qSkipRipple=!0}return t.onBeforeUnmount(()=>{O(!0)}),Object.assign(r,{click:p=>{b.value===!0&&$(p)}}),()=>{let p=[];e.icon!==void 0&&p.push(t.h(ce,{name:e.icon,left:e.stack!==!0&&B.value===!0,role:"img"})),B.value===!0&&p.push(t.h("span",{class:"block"},[e.label])),p=he(l.default,p),e.iconRight!==void 0&&e.round===!1&&p.push(t.h(ce,{name:e.iconRight,right:e.stack!==!0&&B.value===!0,role:"img"}));const _=[t.h("span",{class:"q-focus-helper",ref:v})];return e.loading===!0&&e.percentage!==void 0&&_.push(t.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[t.h("span",{class:"q-btn__progress-indicator fit block",style:x.value})])),_.push(t.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+a.value},p)),e.loading!==null&&_.push(t.h(t.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[t.h("span",{key:"loading",class:"absolute-full flex flex-center"},l.loading!==void 0?l.loading():[t.h(Tn)])]:null)),t.withDirectives(t.h(f.value,q.value,_),[[An,w.value,void 0,C.value]])}}}),or={class:"row justify-between"},rr=t.defineComponent({__name:"NavButton",props:{from:{},to:{default:void 0},labelFrom:{},labelTo:{default:void 0},params:{default:()=>({})}},setup(e){const l=e,n=t.inject("navContext",null),r=t.inject("router");function o(i){if(!r){console.warn("Dependencies not available:",{router:r});return}n==null||n.setTabs();const a=i==="back"?l.from:l.to;if(!a){console.warn("Destination not provided:",i);return}r.push({name:a,params:l.params})}return(i,a)=>(t.openBlock(),t.createElementBlock("div",or,[t.createVNode(Ol,{icon:"chevron_left","rounded-sm":"",label:i.labelFrom,onClick:a[0]||(a[0]=u=>o("back")),"data-cy":"go-back"},null,8,["label"]),i.labelTo?(t.openBlock(),t.createBlock(Ol,{key:0,label:i.labelTo,color:"primary","text-color":"white","icon-right":"chevron_right","rounded-sm":"","data-cy":"go-next",onClick:a[1]||(a[1]=u=>o("next"))},null,8,["label"])):t.createCommentVNode("",!0)]))}}),rl=(e,l)=>{const n=e.__vccOpts||e;for(const[r,o]of l)n[r]=o;return n},ir=rl(rr,[["__scopeId","data-v-c5e3fee0"]]),ye={dark:{type:Boolean,default:null}};function we(e,l){return t.computed(()=>e.dark===null?l.dark.isActive:e.dark)}function ar(e,l){const n=t.ref(null),r=t.computed(()=>e.disable===!0?null:t.h("span",{ref:n,class:"no-outline",tabindex:-1}));function o(i){const a=l.value;(i==null?void 0:i.qAvoidFocus)!==!0&&((i==null?void 0:i.type.indexOf("key"))===0?document.activeElement!==a&&(a==null?void 0:a.contains(document.activeElement))===!0&&a.focus():n.value!==null&&(i===void 0||(a==null?void 0:a.contains(i.target))===!0)&&n.value.focus())}return{refocusTargetEl:r,refocusTarget:o}}const On={name:String};function ur(e={}){return(l,n,r)=>{l[n](t.h("input",{class:"hidden"+(r||""),...e.value}))}}function sr(e){return t.computed(()=>e.name||e.for)}const cr={xs:30,sm:35,md:40,lg:50,xl:60},dr={...ye,...rt,...On,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:e=>e==="tf"||e==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},fr=["update:modelValue"];function vr(e,l){const{props:n,slots:r,emit:o,proxy:i}=t.getCurrentInstance(),{$q:a}=i,u=we(n,a),c=t.ref(null),{refocusTargetEl:f,refocusTarget:d}=ar(n,c),b=it(n,cr),m=t.computed(()=>n.val!==void 0&&Array.isArray(n.modelValue)),v=t.computed(()=>{const O=t.toRaw(n.val);return m.value===!0?n.modelValue.findIndex(Q=>t.toRaw(Q)===O):-1}),g=t.computed(()=>m.value===!0?v.value!==-1:t.toRaw(n.modelValue)===t.toRaw(n.trueValue)),k=t.computed(()=>m.value===!0?v.value===-1:t.toRaw(n.modelValue)===t.toRaw(n.falseValue)),h=t.computed(()=>g.value===!1&&k.value===!1),B=t.computed(()=>n.disable===!0?-1:n.tabindex||0),w=t.computed(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(n.disable===!0?" disabled":"")+(u.value===!0?` q-${e}--dark`:"")+(n.dense===!0?` q-${e}--dense`:"")+(n.leftLabel===!0?" reverse":"")),C=t.computed(()=>{const O=g.value===!0?"truthy":k.value===!0?"falsy":"indet",Q=n.color!==void 0&&(n.keepColor===!0||k.value!==!0)?` text-${n.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${O}${Q}`}),x=t.computed(()=>{const O={type:"checkbox"};return n.name!==void 0&&Object.assign(O,{".checked":g.value,"^checked":g.value===!0?"checked":void 0,name:n.name,value:m.value===!0?n.val:n.trueValue}),O}),S=ur(x),q=t.computed(()=>{const O={tabindex:B.value,role:"checkbox","aria-label":n.label,"aria-checked":h.value===!0?"mixed":g.value===!0?"true":"false"};return n.disable===!0&&(O["aria-disabled"]="true"),O});function $(O){O!==void 0&&(le(O),d(O)),n.disable!==!0&&o("update:modelValue",P(),O)}function P(){if(m.value===!0){if(g.value===!0){const O=n.modelValue.slice();return O.splice(v.value,1),O}return n.modelValue.concat([n.val])}if(g.value===!0){if(n.toggleOrder!=="ft"||n.toggleIndeterminate===!1)return n.falseValue}else if(k.value===!0){if(n.toggleOrder==="ft"||n.toggleIndeterminate===!1)return n.trueValue}else return n.toggleOrder!=="ft"?n.trueValue:n.falseValue;return n.indeterminateValue}function I(O){(O.keyCode===13||O.keyCode===32)&&le(O)}function K(O){(O.keyCode===13||O.keyCode===32)&&$(O)}const U=l(g,h);return Object.assign(i,{toggle:$}),()=>{const O=U();n.disable!==!0&&S(O,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const Q=[t.h("div",{class:C.value,style:b.value,"aria-hidden":"true"},O)];f.value!==null&&Q.push(f.value);const p=n.label!==void 0?he(r.default,[n.label]):ue(r.default);return p!==void 0&&Q.push(t.h("div",{class:`q-${e}__label q-anchor--skip`},p)),t.h("div",{ref:c,class:w.value,...q.value,onClick:$,onKeydown:I,onKeyup:K},Q)}}const mr=()=>t.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[t.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[t.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),t.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),hr=W({name:"QCheckbox",props:dr,emits:fr,setup(e){const l=mr();function n(r,o){const i=t.computed(()=>(r.value===!0?e.checkedIcon:o.value===!0?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>i.value!==null?[t.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[t.h(ce,{class:"q-checkbox__icon",name:i.value})])]:[l]}return vr("checkbox",n)}}),gr=W({props:["store","barStyle","verticalBarStyle","horizontalBarStyle"],setup(e){return()=>[t.h("div",{class:e.store.scroll.vertical.barClass.value,style:[e.barStyle,e.verticalBarStyle],"aria-hidden":"true",onMousedown:e.store.onVerticalMousedown}),t.h("div",{class:e.store.scroll.horizontal.barClass.value,style:[e.barStyle,e.horizontalBarStyle],"aria-hidden":"true",onMousedown:e.store.onHorizontalMousedown}),t.withDirectives(t.h("div",{ref:e.store.scroll.vertical.ref,class:e.store.scroll.vertical.thumbClass.value,style:e.store.scroll.vertical.style.value,"aria-hidden":"true"}),e.store.thumbVertDir),t.withDirectives(t.h("div",{ref:e.store.scroll.horizontal.ref,class:e.store.scroll.horizontal.thumbClass.value,style:e.store.scroll.horizontal.style.value,"aria-hidden":"true"}),e.store.thumbHorizDir)]}}),Ce=t.ref(!1);let Ut;function br(e,l){const n=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||[];return{browser:n[5]||n[3]||n[1]||"",version:n[4]||n[2]||"0",platform:l[0]||""}}function pr(e){return/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[]}const Mn="ontouchstart"in window||window.navigator.maxTouchPoints>0;function yr(e){const l=e.toLowerCase(),n=pr(l),r=br(l,n),o={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};r.browser&&(o[r.browser]=!0,o.version=r.version,o.versionNumber=parseInt(r.version,10)),r.platform&&(o[r.platform]=!0);const i=o.android||o.ios||o.bb||o.blackberry||o.ipad||o.iphone||o.ipod||o.kindle||o.playbook||o.silk||o["windows phone"];if(i===!0||l.indexOf("mobile")!==-1?o.mobile=!0:o.desktop=!0,o["windows phone"]&&(o.winphone=!0,delete o["windows phone"]),o.edga||o.edgios||o.edg?(o.edge=!0,r.browser="edge"):o.crios?(o.chrome=!0,r.browser="chrome"):o.fxios&&(o.firefox=!0,r.browser="firefox"),(o.ipod||o.ipad||o.iphone)&&(o.ios=!0),o.vivaldi&&(r.browser="vivaldi",o.vivaldi=!0),(o.chrome||o.opr||o.safari||o.vivaldi||o.mobile===!0&&o.ios!==!0&&i!==!0)&&(o.webkit=!0),o.opr&&(r.browser="opera",o.opera=!0),o.safari&&(o.blackberry||o.bb?(r.browser="blackberry",o.blackberry=!0):o.playbook?(r.browser="playbook",o.playbook=!0):o.android?(r.browser="android",o.android=!0):o.kindle?(r.browser="kindle",o.kindle=!0):o.silk&&(r.browser="silk",o.silk=!0)),o.name=r.browser,o.platform=r.platform,l.indexOf("electron")!==-1)o.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)o.bex=!0;else{if(window.Capacitor!==void 0?(o.capacitor=!0,o.nativeMobile=!0,o.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(o.cordova=!0,o.nativeMobile=!0,o.nativeMobileWrapper="cordova"),Ce.value===!0&&(Ut={is:{...o}}),Mn===!0&&o.mac===!0&&(o.desktop===!0&&o.safari===!0||o.nativeMobile===!0&&o.android!==!0&&o.ios!==!0&&o.ipad!==!0)){delete o.mac,delete o.desktop;const a=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(o,{mobile:!0,ios:!0,platform:a,[a]:!0})}o.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete o.desktop,o.mobile=!0)}return o}const Ml=navigator.userAgent||navigator.vendor||window.opera,wr={has:{touch:!1,webStorage:!1},within:{iframe:!1}},oe={userAgent:Ml,is:yr(Ml),has:{touch:Mn},within:{iframe:window.self!==window.top}},Kt={install(e){const{$q:l}=e;Ce.value===!0?(e.onSSRHydrated.push(()=>{Object.assign(l.platform,oe),Ce.value=!1}),l.platform=t.reactive(this)):l.platform=this}};{let e;nl(oe.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(Kt,oe),Ce.value===!0&&(Object.assign(Kt,Ut,wr),Ut=null)}function Sr(){const e=t.ref(!Ce.value);return e.value===!1&&t.onMounted(()=>{e.value=!0}),{isHydrated:e}}const Pn=typeof ResizeObserver<"u",Pl=Pn===!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"},We=W({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:l}){let n=null,r,o={width:-1,height:-1};function i(c){c===!0||e.debounce===0||e.debounce==="0"?a():n===null&&(n=setTimeout(a,e.debounce))}function a(){if(n!==null&&(clearTimeout(n),n=null),r){const{offsetWidth:c,offsetHeight:f}=r;(c!==o.width||f!==o.height)&&(o={width:c,height:f},l("resize",o))}}const{proxy:u}=t.getCurrentInstance();if(u.trigger=i,Pn===!0){let c;const f=d=>{r=u.$el.parentNode,r?(c=new ResizeObserver(i),c.observe(r),a()):d!==!0&&t.nextTick(()=>{f(!0)})};return t.onMounted(()=>{f()}),t.onBeforeUnmount(()=>{n!==null&&clearTimeout(n),c!==void 0&&(c.disconnect!==void 0?c.disconnect():r&&c.unobserve(r))}),xt}else{let c=function(){n!==null&&(clearTimeout(n),n=null),b!==void 0&&(b.removeEventListener!==void 0&&b.removeEventListener("resize",i,ne.passive),b=void 0)},f=function(){c(),r!=null&&r.contentDocument&&(b=r.contentDocument.defaultView,b.addEventListener("resize",i,ne.passive),a())};const{isHydrated:d}=Sr();let b;return t.onMounted(()=>{t.nextTick(()=>{r=u.$el,r&&f()})}),t.onBeforeUnmount(c),()=>{if(d.value===!0)return t.h("object",{class:"q--avoid-card-border",style:Pl.style,tabindex:-1,type:"text/html",data:Pl.url,"aria-hidden":"true",onLoad:f})}}}}),Rn=[Element,String],Cr=[null,document,document.body,document.scrollingElement,document.documentElement];function Fn(e,l){let n=Wo(l);if(n===void 0){if(e==null)return window;n=e.closest(".scroll,.scroll-y,.overflow-auto")}return Cr.includes(n)?window:n}function il(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function al(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}function In(e,l,n=0){const r=arguments[3]===void 0?performance.now():arguments[3],o=il(e);if(n<=0){o!==l&&Xt(e,l);return}requestAnimationFrame(i=>{const a=i-r,u=o+(l-o)/Math.max(a,n)*a;Xt(e,u),u!==l&&In(e,l,n-a,i)})}function Hn(e,l,n=0){const r=arguments[3]===void 0?performance.now():arguments[3],o=al(e);if(n<=0){o!==l&&Yt(e,l);return}requestAnimationFrame(i=>{const a=i-r,u=o+(l-o)/Math.max(a,n)*a;Yt(e,u),u!==l&&Hn(e,l,n-a,i)})}function Xt(e,l){if(e===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,l);return}e.scrollTop=l}function Yt(e,l){if(e===window){window.scrollTo(l,window.pageYOffset||window.scrollY||document.body.scrollTop||0);return}e.scrollLeft=l}function Rl(e,l,n){if(n){In(e,l,n);return}Xt(e,l)}function Lt(e,l,n){if(n){Hn(e,l,n);return}Yt(e,l)}let ft;function pt(){if(ft!==void 0)return ft;const e=document.createElement("p"),l=document.createElement("div");Wt(e,{width:"100%",height:"200px"}),Wt(l,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),l.appendChild(e),document.body.appendChild(l);const n=e.offsetWidth;l.style.overflow="scroll";let r=e.offsetWidth;return n===r&&(r=l.clientWidth),l.remove(),ft=n-r,ft}function xr(e,l=!0){return!e||e.nodeType!==Node.ELEMENT_NODE?!1:l?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"]))}const{passive:Fl}=ne,kr=["both","horizontal","vertical"],Dn=W({name:"QScrollObserver",props:{axis:{type:String,validator:e=>kr.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:Rn},emits:["scroll"],setup(e,{emit:l}){const n={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let r=null,o,i;t.watch(()=>e.scrollTarget,()=>{c(),u()});function a(){r==null||r();const b=Math.max(0,il(o)),m=al(o),v={top:b-n.position.top,left:m-n.position.left};if(e.axis==="vertical"&&v.top===0||e.axis==="horizontal"&&v.left===0)return;const g=Math.abs(v.top)>=Math.abs(v.left)?v.top<0?"up":"down":v.left<0?"left":"right";n.position={top:b,left:m},n.directionChanged=n.direction!==g,n.delta=v,n.directionChanged===!0&&(n.direction=g,n.inflectionPoint=n.position),l("scroll",{...n})}function u(){o=Fn(i,e.scrollTarget),o.addEventListener("scroll",f,Fl),f(!0)}function c(){o!==void 0&&(o.removeEventListener("scroll",f,Fl),o=void 0)}function f(b){if(b===!0||e.debounce===0||e.debounce==="0")a();else if(r===null){const[m,v]=e.debounce?[setTimeout(a,e.debounce),clearTimeout]:[requestAnimationFrame(a),cancelAnimationFrame];r=()=>{v(m),r=null}}}const{proxy:d}=t.getCurrentInstance();return t.watch(()=>d.$q.lang.rtl,a),t.onMounted(()=>{i=d.$el.parentNode,u()}),t.onBeforeUnmount(()=>{r==null||r(),c()}),Object.assign(d,{trigger:f,getPosition:()=>n}),xt}}),ul={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},qr=Object.keys(ul);ul.all=!0;function Il(e){const l={};for(const n of qr)e[n]===!0&&(l[n]=!0);return Object.keys(l).length===0?ul:(l.horizontal===!0?l.left=l.right=!0:l.left===!0&&l.right===!0&&(l.horizontal=!0),l.vertical===!0?l.up=l.down=!0:l.up===!0&&l.down===!0&&(l.vertical=!0),l.horizontal===!0&&l.vertical===!0&&(l.all=!0),l)}const _r=["INPUT","TEXTAREA"];function Hl(e,l){return l.event===void 0&&e.target!==void 0&&e.target.draggable!==!0&&typeof l.handler=="function"&&_r.includes(e.target.nodeName.toUpperCase())===!1&&(e.qClonedBy===void 0||e.qClonedBy.indexOf(l.uid)===-1)}function jn(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),Kt.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}function At(e,l,n){const r=nt(e);let o,i=r.left-l.event.x,a=r.top-l.event.y,u=Math.abs(i),c=Math.abs(a);const f=l.direction;f.horizontal===!0&&f.vertical!==!0?o=i<0?"left":"right":f.horizontal!==!0&&f.vertical===!0?o=a<0?"up":"down":f.up===!0&&a<0?(o="up",u>c&&(f.left===!0&&i<0?o="left":f.right===!0&&i>0&&(o="right"))):f.down===!0&&a>0?(o="down",u>c&&(f.left===!0&&i<0?o="left":f.right===!0&&i>0&&(o="right"))):f.left===!0&&i<0?(o="left",u<c&&(f.up===!0&&a<0?o="up":f.down===!0&&a>0&&(o="down"))):f.right===!0&&i>0&&(o="right",u<c&&(f.up===!0&&a<0?o="up":f.down===!0&&a>0&&(o="down")));let d=!1;if(o===void 0&&n===!1){if(l.event.isFirst===!0||l.event.lastDir===void 0)return{};o=l.event.lastDir,d=!0,o==="left"||o==="right"?(r.left-=i,u=0,i=0):(r.top-=a,c=0,a=0)}return{synthetic:d,payload:{evt:e,touch:l.event.mouse!==!0,mouse:l.event.mouse===!0,position:r,direction:o,isFirst:l.event.isFirst,isFinal:n===!0,duration:Date.now()-l.event.time,distance:{x:u,y:c},offset:{x:i,y:a},delta:{x:r.left-l.event.lastX,y:r.top-l.event.lastY}}}}let zr=0;const Dl=bn({name:"touch-pan",beforeMount(e,{value:l,modifiers:n}){if(n.mouse!==!0&&oe.has.touch!==!0)return;function r(i,a){n.mouse===!0&&a===!0?le(i):(n.stop===!0&&ve(i),n.prevent===!0&&ae(i))}const o={uid:"qvtp_"+zr++,handler:l,modifiers:n,direction:Il(n),noop:xt,mouseStart(i){Hl(i,o)&&Uo(i)&&(Be(o,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),o.start(i,!0))},touchStart(i){if(Hl(i,o)){const a=i.target;Be(o,"temp",[[a,"touchmove","move","notPassiveCapture"],[a,"touchcancel","end","passiveCapture"],[a,"touchend","end","passiveCapture"]]),o.start(i)}},start(i,a){if(oe.is.firefox===!0&&$t(e,!0),o.lastEvt=i,a===!0||n.stop===!0){if(o.direction.all!==!0&&(a!==!0||o.modifiers.mouseAllDir!==!0&&o.modifiers.mousealldir!==!0)){const f=i.type.indexOf("mouse")!==-1?new MouseEvent(i.type,i):new TouchEvent(i.type,i);i.defaultPrevented===!0&&ae(f),i.cancelBubble===!0&&ve(f),Object.assign(f,{qKeyEvent:i.qKeyEvent,qClickOutside:i.qClickOutside,qAnchorHandled:i.qAnchorHandled,qClonedBy:i.qClonedBy===void 0?[o.uid]:i.qClonedBy.concat(o.uid)}),o.initialEvent={target:i.target,event:f}}ve(i)}const{left:u,top:c}=nt(i);o.event={x:u,y:c,time:Date.now(),mouse:a===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:u,lastY:c}},move(i){if(o.event===void 0)return;const a=nt(i),u=a.left-o.event.x,c=a.top-o.event.y;if(u===0&&c===0)return;o.lastEvt=i;const f=o.event.mouse===!0,d=()=>{r(i,f);let v;n.preserveCursor!==!0&&n.preservecursor!==!0&&(v=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),f===!0&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),jn(),o.styleCleanup=g=>{if(o.styleCleanup=void 0,v!==void 0&&(document.documentElement.style.cursor=v),document.body.classList.remove("non-selectable"),f===!0){const k=()=>{document.body.classList.remove("no-pointer-events--children")};g!==void 0?setTimeout(()=>{k(),g()},50):k()}else g!==void 0&&g()}};if(o.event.detected===!0){o.event.isFirst!==!0&&r(i,o.event.mouse);const{payload:v,synthetic:g}=At(i,o,!1);v!==void 0&&(o.handler(v)===!1?o.end(i):(o.styleCleanup===void 0&&o.event.isFirst===!0&&d(),o.event.lastX=v.position.left,o.event.lastY=v.position.top,o.event.lastDir=g===!0?void 0:v.direction,o.event.isFirst=!1));return}if(o.direction.all===!0||f===!0&&(o.modifiers.mouseAllDir===!0||o.modifiers.mousealldir===!0)){d(),o.event.detected=!0,o.move(i);return}const b=Math.abs(u),m=Math.abs(c);b!==m&&(o.direction.horizontal===!0&&b>m||o.direction.vertical===!0&&b<m||o.direction.up===!0&&b<m&&c<0||o.direction.down===!0&&b<m&&c>0||o.direction.left===!0&&b>m&&u<0||o.direction.right===!0&&b>m&&u>0?(o.event.detected=!0,o.move(i)):o.end(i,!0))},end(i,a){var u;if(o.event!==void 0){if(tt(o,"temp"),oe.is.firefox===!0&&$t(e,!1),a===!0)(u=o.styleCleanup)==null||u.call(o),o.event.detected!==!0&&o.initialEvent!==void 0&&o.initialEvent.target.dispatchEvent(o.initialEvent.event);else if(o.event.detected===!0){o.event.isFirst===!0&&o.handler(At(i===void 0?o.lastEvt:i,o).payload);const{payload:c}=At(i===void 0?o.lastEvt:i,o,!0),f=()=>{o.handler(c)};o.styleCleanup!==void 0?o.styleCleanup(f):f()}o.event=void 0,o.initialEvent=void 0,o.lastEvt=void 0}}};if(e.__qtouchpan=o,n.mouse===!0){const i=n.mouseCapture===!0||n.mousecapture===!0?"Capture":"";Be(o,"main",[[e,"mousedown","mouseStart",`passive${i}`]])}oe.has.touch===!0&&Be(o,"main",[[e,"touchstart","touchStart",`passive${n.capture===!0?"Capture":""}`],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,l){const n=e.__qtouchpan;n!==void 0&&(l.oldValue!==l.value&&(typeof value!="function"&&n.end(),n.handler=l.value),n.direction=Il(l.modifiers))},beforeUnmount(e){var n;const l=e.__qtouchpan;l!==void 0&&(l.event!==void 0&&l.end(),tt(l,"main"),tt(l,"temp"),oe.is.firefox===!0&&$t(e,!1),(n=l.styleCleanup)==null||n.call(l),delete e.__qtouchpan)}});function Ge(e,l,n){return n<=l?l:Math.min(n,Math.max(l,e))}function jl(e,l,n){if(n<=l)return l;const r=n-l+1;let o=l+(e-l)%r;return o<l&&(o=r+o),o===0?0:o}function sl(e,l=250,n){let r=null;function o(){const i=arguments,a=()=>{r=null,e.apply(this,i)};r!==null&&clearTimeout(r),r=setTimeout(a,l)}return o.cancel=()=>{r!==null&&clearTimeout(r)},o}const Nl=["vertical","horizontal"],Ot={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}},Ql={prevent:!0,mouse:!0,mouseAllDir:!0},Wl=e=>e>=250?50:Math.ceil(e/5),Br=W({name:"QScrollArea",props:{...ye,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(e,{slots:l,emit:n}){const r=t.ref(!1),o=t.ref(!1),i=t.ref(!1),a={vertical:t.ref(0),horizontal:t.ref(0)},u={vertical:{ref:t.ref(null),position:t.ref(0),size:t.ref(0)},horizontal:{ref:t.ref(null),position:t.ref(0),size:t.ref(0)}},{proxy:c}=t.getCurrentInstance(),f=we(e,c.$q);let d=null,b;const m=t.ref(null),v=t.computed(()=>"q-scrollarea"+(f.value===!0?" q-scrollarea--dark":""));Object.assign(a,{verticalInner:t.computed(()=>a.vertical.value-e.verticalOffset[0]-e.verticalOffset[1]),horizontalInner:t.computed(()=>a.horizontal.value-e.horizontalOffset[0]-e.horizontalOffset[1])}),u.vertical.percentage=t.computed(()=>{const p=u.vertical.size.value-a.vertical.value;if(p<=0)return 0;const _=Ge(u.vertical.position.value/p,0,1);return Math.round(_*1e4)/1e4}),u.vertical.thumbHidden=t.computed(()=>(e.visible===null?i.value:e.visible)!==!0&&r.value===!1&&o.value===!1||u.vertical.size.value<=a.vertical.value+1),u.vertical.thumbStart=t.computed(()=>e.verticalOffset[0]+u.vertical.percentage.value*(a.verticalInner.value-u.vertical.thumbSize.value)),u.vertical.thumbSize=t.computed(()=>Math.round(Ge(a.verticalInner.value*a.verticalInner.value/u.vertical.size.value,Wl(a.verticalInner.value),a.verticalInner.value))),u.vertical.style=t.computed(()=>({...e.thumbStyle,...e.verticalThumbStyle,top:`${u.vertical.thumbStart.value}px`,height:`${u.vertical.thumbSize.value}px`,right:`${e.horizontalOffset[1]}px`})),u.vertical.thumbClass=t.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(u.vertical.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),u.vertical.barClass=t.computed(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(u.vertical.thumbHidden.value===!0?" q-scrollarea__bar--invisible":"")),u.horizontal.percentage=t.computed(()=>{const p=u.horizontal.size.value-a.horizontal.value;if(p<=0)return 0;const _=Ge(Math.abs(u.horizontal.position.value)/p,0,1);return Math.round(_*1e4)/1e4}),u.horizontal.thumbHidden=t.computed(()=>(e.visible===null?i.value:e.visible)!==!0&&r.value===!1&&o.value===!1||u.horizontal.size.value<=a.horizontal.value+1),u.horizontal.thumbStart=t.computed(()=>e.horizontalOffset[0]+u.horizontal.percentage.value*(a.horizontalInner.value-u.horizontal.thumbSize.value)),u.horizontal.thumbSize=t.computed(()=>Math.round(Ge(a.horizontalInner.value*a.horizontalInner.value/u.horizontal.size.value,Wl(a.horizontalInner.value),a.horizontalInner.value))),u.horizontal.style=t.computed(()=>({...e.thumbStyle,...e.horizontalThumbStyle,[c.$q.lang.rtl===!0?"right":"left"]:`${u.horizontal.thumbStart.value}px`,width:`${u.horizontal.thumbSize.value}px`,bottom:`${e.verticalOffset[1]}px`})),u.horizontal.thumbClass=t.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(u.horizontal.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),u.horizontal.barClass=t.computed(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(u.horizontal.thumbHidden.value===!0?" q-scrollarea__bar--invisible":""));const g=t.computed(()=>u.vertical.thumbHidden.value===!0&&u.horizontal.thumbHidden.value===!0?e.contentStyle:e.contentActiveStyle);function k(){const p={};return Nl.forEach(_=>{const M=u[_];Object.assign(p,{[_+"Position"]:M.position.value,[_+"Percentage"]:M.percentage.value,[_+"Size"]:M.size.value,[_+"ContainerSize"]:a[_].value,[_+"ContainerInnerSize"]:a[_+"Inner"].value})}),p}const h=sl(()=>{const p=k();p.ref=c,n("scroll",p)},0);function B(p,_,M){if(Nl.includes(p)===!1){console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");return}(p==="vertical"?Rl:Lt)(m.value,_,M)}function w({height:p,width:_}){let M=!1;a.vertical.value!==p&&(a.vertical.value=p,M=!0),a.horizontal.value!==_&&(a.horizontal.value=_,M=!0),M===!0&&$()}function C({position:p}){let _=!1;u.vertical.position.value!==p.top&&(u.vertical.position.value=p.top,_=!0),u.horizontal.position.value!==p.left&&(u.horizontal.position.value=p.left,_=!0),_===!0&&$()}function x({height:p,width:_}){u.horizontal.size.value!==_&&(u.horizontal.size.value=_,$()),u.vertical.size.value!==p&&(u.vertical.size.value=p,$())}function S(p,_){const M=u[_];if(p.isFirst===!0){if(M.thumbHidden.value===!0)return;b=M.position.value,o.value=!0}else if(o.value!==!0)return;p.isFinal===!0&&(o.value=!1);const G=Ot[_],T=(M.size.value-a[_].value)/(a[_+"Inner"].value-M.thumbSize.value),R=p.distance[G.dist],J=b+(p.direction===G.dir?1:-1)*R*T;P(J,_)}function q(p,_){const M=u[_];if(M.thumbHidden.value!==!0){const G=_==="vertical"?e.verticalOffset[0]:e.horizontalOffset[0],T=p[Ot[_].offset]-G,R=M.thumbStart.value-G;if(T<R||T>R+M.thumbSize.value){const J=T-M.thumbSize.value/2,y=Ge(J/(a[_+"Inner"].value-M.thumbSize.value),0,1);P(y*Math.max(0,M.size.value-a[_].value),_)}M.ref.value!==null&&M.ref.value.dispatchEvent(new MouseEvent(p.type,p))}}function $(){r.value=!0,d!==null&&clearTimeout(d),d=setTimeout(()=>{d=null,r.value=!1},e.delay),e.onScroll!==void 0&&h()}function P(p,_){m.value[Ot[_].scroll]=p}let I=null;function K(){I!==null&&clearTimeout(I),I=setTimeout(()=>{I=null,i.value=!0},c.$q.platform.is.ios?50:0)}function U(){I!==null&&(clearTimeout(I),I=null),i.value=!1}let O=null;t.watch(()=>c.$q.lang.rtl,p=>{m.value!==null&&Lt(m.value,Math.abs(u.horizontal.position.value)*(p===!0?-1:1))}),t.onDeactivated(()=>{O={top:u.vertical.position.value,left:u.horizontal.position.value}}),t.onActivated(()=>{if(O===null)return;const p=m.value;p!==null&&(Lt(p,O.left),Rl(p,O.top))}),t.onBeforeUnmount(h.cancel),Object.assign(c,{getScrollTarget:()=>m.value,getScroll:k,getScrollPosition:()=>({top:u.vertical.position.value,left:u.horizontal.position.value}),getScrollPercentage:()=>({top:u.vertical.percentage.value,left:u.horizontal.percentage.value}),setScrollPosition:B,setScrollPercentage(p,_,M){B(p,_*(u[p].size.value-a[p].value)*(p==="horizontal"&&c.$q.lang.rtl===!0?-1:1),M)}});const Q={scroll:u,thumbVertDir:[[Dl,p=>{S(p,"vertical")},void 0,{vertical:!0,...Ql}]],thumbHorizDir:[[Dl,p=>{S(p,"horizontal")},void 0,{horizontal:!0,...Ql}]],onVerticalMousedown(p){q(p,"vertical")},onHorizontalMousedown(p){q(p,"horizontal")}};return()=>t.h("div",{class:v.value,onMouseenter:K,onMouseleave:U},[t.h("div",{ref:m,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:e.tabindex!==void 0?e.tabindex:void 0},[t.h("div",{class:"q-scrollarea__content absolute",style:g.value},he(l.default,[t.h(We,{debounce:0,onResize:x})])),t.h(Dn,{axis:"both",onScroll:C})]),t.h(We,{debounce:0,onResize:w}),t.h(gr,{store:Q,barStyle:e.barStyle,verticalBarStyle:e.verticalBarStyle,horizontalBarStyle:e.horizontalBarStyle})])}}),Vr=W({name:"QCard",props:{...ye,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(e,{slots:l}){const{proxy:{$q:n}}=t.getCurrentInstance(),r=we(e,n),o=t.computed(()=>"q-card"+(r.value===!0?" q-card--dark q-dark":"")+(e.bordered===!0?" q-card--bordered":"")+(e.square===!0?" q-card--square no-border-radius":"")+(e.flat===!0?" q-card--flat no-shadow":""));return()=>t.h(e.tag,{class:o.value},ue(l.default))}}),Er={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},Tr={...Er,contextMenu:Boolean};function $r({showing:e,avoidEmit:l,configureAnchorEl:n}){const{props:r,proxy:o,emit:i}=t.getCurrentInstance(),a=t.ref(null);let u=null;function c(v){return a.value===null?!1:v===void 0||v.touches===void 0||v.touches.length<=1}const f={};n===void 0&&(Object.assign(f,{hide(v){o.hide(v)},toggle(v){o.toggle(v),v.qAnchorHandled=!0},toggleKey(v){Le(v,13)===!0&&f.toggle(v)},contextClick(v){o.hide(v),ae(v),t.nextTick(()=>{o.show(v),v.qAnchorHandled=!0})},prevent:ae,mobileTouch(v){if(f.mobileCleanup(v),c(v)!==!0)return;o.hide(v),a.value.classList.add("non-selectable");const g=v.target;Be(f,"anchor",[[g,"touchmove","mobileCleanup","passive"],[g,"touchend","mobileCleanup","passive"],[g,"touchcancel","mobileCleanup","passive"],[a.value,"contextmenu","prevent","notPassive"]]),u=setTimeout(()=>{u=null,o.show(v),v.qAnchorHandled=!0},300)},mobileCleanup(v){a.value.classList.remove("non-selectable"),u!==null&&(clearTimeout(u),u=null),e.value===!0&&v!==void 0&&jn()}}),n=function(v=r.contextMenu){if(r.noParentEvent===!0||a.value===null)return;let g;v===!0?o.$q.platform.is.mobile===!0?g=[[a.value,"touchstart","mobileTouch","passive"]]:g=[[a.value,"mousedown","hide","passive"],[a.value,"contextmenu","contextClick","notPassive"]]:g=[[a.value,"click","toggle","passive"],[a.value,"keyup","toggleKey","passive"]],Be(f,"anchor",g)});function d(){tt(f,"anchor")}function b(v){for(a.value=v;a.value.classList.contains("q-anchor--skip");)a.value=a.value.parentNode;n()}function m(){if(r.target===!1||r.target===""||o.$el.parentNode===null)a.value=null;else if(r.target===!0)b(o.$el.parentNode);else{let v=r.target;if(typeof r.target=="string")try{v=document.querySelector(r.target)}catch{v=void 0}v!=null?(a.value=v.$el||v,n()):(a.value=null,console.error(`Anchor: target "${r.target}" not found`))}}return t.watch(()=>r.contextMenu,v=>{a.value!==null&&(d(),n(v))}),t.watch(()=>r.target,()=>{a.value!==null&&d(),m()}),t.watch(()=>r.noParentEvent,v=>{a.value!==null&&(v===!0?d():n())}),t.onMounted(()=>{m(),l!==!0&&r.modelValue===!0&&a.value===null&&i("update:modelValue",!1)}),t.onBeforeUnmount(()=>{u!==null&&clearTimeout(u),d()}),{anchorEl:a,canShow:c,anchorEvents:f}}function Lr(e,l){const n=t.ref(null);let r;function o(u,c){const f=`${c!==void 0?"add":"remove"}EventListener`,d=c!==void 0?c:r;u!==window&&u[f]("scroll",d,ne.passive),window[f]("scroll",d,ne.passive),r=c}function i(){n.value!==null&&(o(n.value),n.value=null)}const a=t.watch(()=>e.noParentEvent,()=>{n.value!==null&&(i(),l())});return t.onBeforeUnmount(a),{localScrollTarget:n,unconfigureScrollTarget:i,changeScrollEvent:o}}const Nn={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Qn=["beforeShow","show","beforeHide","hide"];function Wn({showing:e,canShow:l,hideOnRouteChange:n,handleShow:r,handleHide:o,processOnMount:i}){const a=t.getCurrentInstance(),{props:u,emit:c,proxy:f}=a;let d;function b(w){e.value===!0?g(w):m(w)}function m(w){if(u.disable===!0||(w==null?void 0:w.qAnchorHandled)===!0||l!==void 0&&l(w)!==!0)return;const C=u["onUpdate:modelValue"]!==void 0;C===!0&&(c("update:modelValue",!0),d=w,t.nextTick(()=>{d===w&&(d=void 0)})),(u.modelValue===null||C===!1)&&v(w)}function v(w){e.value!==!0&&(e.value=!0,c("beforeShow",w),r!==void 0?r(w):c("show",w))}function g(w){if(u.disable===!0)return;const C=u["onUpdate:modelValue"]!==void 0;C===!0&&(c("update:modelValue",!1),d=w,t.nextTick(()=>{d===w&&(d=void 0)})),(u.modelValue===null||C===!1)&&k(w)}function k(w){e.value!==!1&&(e.value=!1,c("beforeHide",w),o!==void 0?o(w):c("hide",w))}function h(w){u.disable===!0&&w===!0?u["onUpdate:modelValue"]!==void 0&&c("update:modelValue",!1):w===!0!==e.value&&(w===!0?v:k)(d)}t.watch(()=>u.modelValue,h),n!==void 0&&kn(a)===!0&&t.watch(()=>f.$route.fullPath,()=>{n.value===!0&&e.value===!0&&g()}),t.onMounted(()=>{h(u.modelValue)});const B={show:m,hide:g,toggle:b};return Object.assign(f,B),B}let Ve=[],ot=[];function Un(e){ot=ot.filter(l=>l!==e)}function Ar(e){Un(e),ot.push(e)}function Ul(e){Un(e),ot.length===0&&Ve.length!==0&&(Ve[Ve.length-1](),Ve=[])}function cl(e){ot.length===0?e():Ve.push(e)}function Or(e){Ve=Ve.filter(l=>l!==e)}const Kl={};let Mr=1,Pr=document.body;function Rr(e,l){const n=document.createElement("div");if(n.id=l!==void 0?`q-portal--${l}--${Mr++}`:e,Kl.globalNodes!==void 0){const r=Kl.globalNodes.class;r!==void 0&&(n.className=r)}return Pr.appendChild(n),n}function Fr(e){e.remove()}const lt=[];function Ir(e,l){do{if(e.$options.name==="QMenu"){if(e.hide(l),e.$props.separateClosePopup===!0)return Tt(e)}else if(e.__qPortal===!0){const n=Tt(e);return(n==null?void 0:n.$options.name)==="QPopupProxy"?(e.hide(l),n):e}e=Tt(e)}while(e!=null)}const Hr=W({name:"QPortal",setup(e,{slots:l}){return()=>l.default()}});function Dr(e){for(e=e.parent;e!=null;){if(e.type.name==="QGlobalDialog")return!0;if(e.type.name==="QDialog"||e.type.name==="QMenu")return!1;e=e.parent}return!1}function Kn(e,l,n,r){const o=t.ref(!1),i=t.ref(!1);let a=null;const u={},c=r==="dialog"&&Dr(e);function f(b){if(b===!0){Ul(u),i.value=!0;return}i.value=!1,o.value===!1&&(c===!1&&a===null&&(a=Rr(!1,r)),o.value=!0,lt.push(e.proxy),Ar(u))}function d(b){if(i.value=!1,b!==!0)return;Ul(u),o.value=!1;const m=lt.indexOf(e.proxy);m!==-1&<.splice(m,1),a!==null&&(Fr(a),a=null)}return t.onUnmounted(()=>{d(!0)}),e.proxy.__qPortal=!0,nl(e.proxy,"contentEl",()=>l.value),{showPortal:f,hidePortal:d,portalIsActive:o,portalIsAccessible:i,renderPortal:()=>c===!0?n():o.value===!0?[t.h(t.Teleport,{to:a},t.h(Hr,n))]:void 0}}const Xn={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Yn(e,l=()=>{},n=()=>{}){return{transitionProps:t.computed(()=>{const r=`q-transition--${e.transitionShow||l()}`,o=`q-transition--${e.transitionHide||n()}`;return{appear:!0,enterFromClass:`${r}-enter-from`,enterActiveClass:`${r}-enter-active`,enterToClass:`${r}-enter-to`,leaveFromClass:`${o}-leave-from`,leaveActiveClass:`${o}-leave-active`,leaveToClass:`${o}-leave-to`}}),transitionStyle:t.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function Gn(){let e;const l=t.getCurrentInstance();function n(){e=void 0}return t.onDeactivated(n),t.onBeforeUnmount(n),{removeTick:n,registerTick(r){e=r,t.nextTick(()=>{e===r&&(qn(l)===!1&&e(),e=void 0)})}}}function Zn(){let e=null;const l=t.getCurrentInstance();function n(){e!==null&&(clearTimeout(e),e=null)}return t.onDeactivated(n),t.onBeforeUnmount(n),{removeTimeout:n,registerTimeout(r,o){n(),qn(l)===!1&&(e=setTimeout(()=>{e=null,r()},o))}}}const Ee=[];let Ue;function jr(e){Ue=e.keyCode===27}function Nr(){Ue===!0&&(Ue=!1)}function Qr(e){Ue===!0&&(Ue=!1,Le(e,27)===!0&&Ee[Ee.length-1](e))}function Jn(e){window[e]("keydown",jr),window[e]("blur",Nr),window[e]("keyup",Qr),Ue=!1}function eo(e){oe.is.desktop===!0&&(Ee.push(e),Ee.length===1&&Jn("addEventListener"))}function yt(e){const l=Ee.indexOf(e);l!==-1&&(Ee.splice(l,1),Ee.length===0&&Jn("removeEventListener"))}const Te=[];function to(e){Te[Te.length-1](e)}function lo(e){oe.is.desktop===!0&&(Te.push(e),Te.length===1&&document.body.addEventListener("focusin",to))}function Gt(e){const l=Te.indexOf(e);l!==-1&&(Te.splice(l,1),Te.length===0&&document.body.removeEventListener("focusin",to))}const{notPassiveCapture:wt}=ne,$e=[];function St(e){const l=e.target;if(l===void 0||l.nodeType===8||l.classList.contains("no-pointer-events")===!0)return;let n=lt.length-1;for(;n>=0;){const r=lt[n].$;if(r.type.name==="QTooltip"){n--;continue}if(r.type.name!=="QDialog")break;if(r.props.seamless!==!0)return;n--}for(let r=$e.length-1;r>=0;r--){const o=$e[r];if((o.anchorEl.value===null||o.anchorEl.value.contains(l)===!1)&&(l===document.body||o.innerRef.value!==null&&o.innerRef.value.contains(l)===!1))e.qClickOutside=!0,o.onClickOutside(e);else return}}function Wr(e){$e.push(e),$e.length===1&&(document.addEventListener("mousedown",St,wt),document.addEventListener("touchstart",St,wt))}function Xl(e){const l=$e.findIndex(n=>n===e);l!==-1&&($e.splice(l,1),$e.length===0&&(document.removeEventListener("mousedown",St,wt),document.removeEventListener("touchstart",St,wt)))}let Yl,Gl;function Zl(e){const l=e.split(" ");return l.length!==2?!1:["top","center","bottom"].includes(l[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(l[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function Ur(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const Zt={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{Zt[`${e}#ltr`]=e,Zt[`${e}#rtl`]=e});function Jl(e,l){const n=e.split(" ");return{vertical:n[0],horizontal:Zt[`${n[1]}#${l===!0?"rtl":"ltr"}`]}}function Kr(e,l){let{top:n,left:r,right:o,bottom:i,width:a,height:u}=e.getBoundingClientRect();return l!==void 0&&(n-=l[1],r-=l[0],i+=l[1],o+=l[0],a+=l[0],u+=l[1]),{top:n,bottom:i,height:u,left:r,right:o,width:a,middle:r+(o-r)/2,center:n+(i-n)/2}}function Xr(e,l,n){let{top:r,left:o}=e.getBoundingClientRect();return r+=l.top,o+=l.left,n!==void 0&&(r+=n[1],o+=n[0]),{top:r,bottom:r+1,height:1,left:o,right:o+1,width:1,middle:o,center:r}}function Yr(e,l){return{top:0,center:l/2,bottom:l,left:0,middle:e/2,right:e}}function en(e,l,n,r){return{top:e[n.vertical]-l[r.vertical],left:e[n.horizontal]-l[r.horizontal]}}function no(e,l=0){if(e.targetEl===null||e.anchorEl===null||l>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{no(e,l+1)},10);return}const{targetEl:n,offset:r,anchorEl:o,anchorOrigin:i,selfOrigin:a,absoluteOffset:u,fit:c,cover:f,maxHeight:d,maxWidth:b}=e;if(oe.is.ios===!0&&window.visualViewport!==void 0){const q=document.body.style,{offsetLeft:$,offsetTop:P}=window.visualViewport;$!==Yl&&(q.setProperty("--q-pe-left",$+"px"),Yl=$),P!==Gl&&(q.setProperty("--q-pe-top",P+"px"),Gl=P)}const{scrollLeft:m,scrollTop:v}=n,g=u===void 0?Kr(o,f===!0?[0,0]:r):Xr(o,u,r);Object.assign(n.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:b,maxHeight:d,visibility:"visible"});const{offsetWidth:k,offsetHeight:h}=n,{elWidth:B,elHeight:w}=c===!0||f===!0?{elWidth:Math.max(g.width,k),elHeight:f===!0?Math.max(g.height,h):h}:{elWidth:k,elHeight:h};let C={maxWidth:b,maxHeight:d};(c===!0||f===!0)&&(C.minWidth=g.width+"px",f===!0&&(C.minHeight=g.height+"px")),Object.assign(n.style,C);const x=Yr(B,w);let S=en(g,x,i,a);if(u===void 0||r===void 0)Mt(S,g,x,i,a);else{const{top:q,left:$}=S;Mt(S,g,x,i,a);let P=!1;if(S.top!==q){P=!0;const I=2*r[1];g.center=g.top-=I,g.bottom-=I+2}if(S.left!==$){P=!0;const I=2*r[0];g.middle=g.left-=I,g.right-=I+2}P===!0&&(S=en(g,x,i,a),Mt(S,g,x,i,a))}C={top:S.top+"px",left:S.left+"px"},S.maxHeight!==void 0&&(C.maxHeight=S.maxHeight+"px",g.height>S.maxHeight&&(C.minHeight=C.maxHeight)),S.maxWidth!==void 0&&(C.maxWidth=S.maxWidth+"px",g.width>S.maxWidth&&(C.minWidth=C.maxWidth)),Object.assign(n.style,C),n.scrollTop!==v&&(n.scrollTop=v),n.scrollLeft!==m&&(n.scrollLeft=m)}function Mt(e,l,n,r,o){const i=n.bottom,a=n.right,u=pt(),c=window.innerHeight-u,f=document.body.clientWidth;if(e.top<0||e.top+i>c)if(o.vertical==="center")e.top=l[r.vertical]>c/2?Math.max(0,c-i):0,e.maxHeight=Math.min(i,c);else if(l[r.vertical]>c/2){const d=Math.min(c,r.vertical==="center"?l.center:r.vertical===o.vertical?l.bottom:l.top);e.maxHeight=Math.min(i,d),e.top=Math.max(0,d-i)}else e.top=Math.max(0,r.vertical==="center"?l.center:r.vertical===o.vertical?l.top:l.bottom),e.maxHeight=Math.min(i,c-e.top);if(e.left<0||e.left+a>f)if(e.maxWidth=Math.min(a,f),o.horizontal==="middle")e.left=l[r.horizontal]>f/2?Math.max(0,f-a):0;else if(l[r.horizontal]>f/2){const d=Math.min(f,r.horizontal==="middle"?l.middle:r.horizontal===o.horizontal?l.right:l.left);e.maxWidth=Math.min(a,d),e.left=Math.max(0,d-e.maxWidth)}else e.left=Math.max(0,r.horizontal==="middle"?l.middle:r.horizontal===o.horizontal?l.left:l.right),e.maxWidth=Math.min(a,f-e.left)}const dl=W({name:"QMenu",inheritAttrs:!1,props:{...Tr,...Nn,...ye,...Xn,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Zl},self:{type:String,validator:Zl},offset:{type:Array,validator:Ur},scrollTarget:Rn,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Qn,"click","escapeKey"],setup(e,{slots:l,emit:n,attrs:r}){let o=null,i,a,u;const c=t.getCurrentInstance(),{proxy:f}=c,{$q:d}=f,b=t.ref(null),m=t.ref(!1),v=t.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),g=we(e,d),{registerTick:k,removeTick:h}=Gn(),{registerTimeout:B}=Zn(),{transitionProps:w,transitionStyle:C}=Yn(e),{localScrollTarget:x,changeScrollEvent:S,unconfigureScrollTarget:q}=Lr(e,H),{anchorEl:$,canShow:P}=$r({showing:m}),{hide:I}=Wn({showing:m,canShow:P,handleShow:J,handleHide:y,hideOnRouteChange:v,processOnMount:!0}),{showPortal:K,hidePortal:U,renderPortal:O}=Kn(c,b,Z,"menu"),Q={anchorEl:$,innerRef:b,onClickOutside(z){if(e.persistent!==!0&&m.value===!0)return I(z),(z.type==="touchstart"||z.target.classList.contains("q-dialog__backdrop"))&&le(z),!0}},p=t.computed(()=>Jl(e.anchor||(e.cover===!0?"center middle":"bottom start"),d.lang.rtl)),_=t.computed(()=>e.cover===!0?p.value:Jl(e.self||"top start",d.lang.rtl)),M=t.computed(()=>(e.square===!0?" q-menu--square":"")+(g.value===!0?" q-menu--dark q-dark":"")),G=t.computed(()=>e.autoClose===!0?{onClick:A}:{}),T=t.computed(()=>m.value===!0&&e.persistent!==!0);t.watch(T,z=>{z===!0?(eo(D),Wr(Q)):(yt(D),Xl(Q))});function R(){cl(()=>{let z=b.value;z&&z.contains(document.activeElement)!==!0&&(z=z.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||z.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||z.querySelector("[autofocus], [data-autofocus]")||z,z.focus({preventScroll:!0}))})}function J(z){if(o=e.noRefocus===!1?document.activeElement:null,lo(j),K(),H(),i=void 0,z!==void 0&&(e.touchPosition||e.contextMenu)){const re=nt(z);if(re.left!==void 0){const{top:ge,left:Ae}=$.value.getBoundingClientRect();i={left:re.left-Ae,top:re.top-ge}}}a===void 0&&(a=t.watch(()=>d.screen.width+"|"+d.screen.height+"|"+e.self+"|"+e.anchor+"|"+d.lang.rtl,F)),e.noFocus!==!0&&document.activeElement.blur(),k(()=>{F(),e.noFocus!==!0&&R()}),B(()=>{d.platform.is.ios===!0&&(u=e.autoClose,b.value.click()),F(),K(!0),n("show",z)},e.transitionDuration)}function y(z){h(),U(),V(!0),o!==null&&(z===void 0||z.qClickOutside!==!0)&&((((z==null?void 0:z.type.indexOf("key"))===0?o.closest('[tabindex]:not([tabindex^="-"])'):void 0)||o).focus(),o=null),B(()=>{U(!0),n("hide",z)},e.transitionDuration)}function V(z){i=void 0,a!==void 0&&(a(),a=void 0),(z===!0||m.value===!0)&&(Gt(j),q(),Xl(Q),yt(D)),z!==!0&&(o=null)}function H(){($.value!==null||e.scrollTarget!==void 0)&&(x.value=Fn($.value,e.scrollTarget),S(x.value,F))}function A(z){u!==!0?(Ir(f,z),n("click",z)):u=!1}function j(z){T.value===!0&&e.noFocus!==!0&&$n(b.value,z.target)!==!0&&R()}function D(z){e.noEscDismiss!==!0&&(n("escapeKey"),I(z))}function F(){no({targetEl:b.value,offset:e.offset,anchorEl:$.value,anchorOrigin:p.value,selfOrigin:_.value,absoluteOffset:i,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function Z(){return t.h(t.Transition,w.value,()=>m.value===!0?t.h("div",{role:"menu",...r,ref:b,tabindex:-1,class:["q-menu q-position-engine scroll"+M.value,r.class],style:[r.style,C.value],...G.value},ue(l.default)):null)}return t.onBeforeUnmount(V),Object.assign(f,{focus:R,updatePosition:F}),O}});let Pt,vt=0;const ie=new Array(256);for(let e=0;e<256;e++)ie[e]=(e+256).toString(16).substring(1);const Gr=(()=>{const e=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(e!==void 0){if(e.randomBytes!==void 0)return e.randomBytes;if(e.getRandomValues!==void 0)return l=>{const n=new Uint8Array(l);return e.getRandomValues(n),n}}return l=>{const n=[];for(let r=l;r>0;r--)n.push(Math.floor(Math.random()*256));return n}})(),tn=4096;function Jt(){(Pt===void 0||vt+16>tn)&&(vt=0,Pt=Gr(tn));const e=Array.prototype.slice.call(Pt,vt,vt+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,ie[e[0]]+ie[e[1]]+ie[e[2]]+ie[e[3]]+"-"+ie[e[4]]+ie[e[5]]+"-"+ie[e[6]]+ie[e[7]]+"-"+ie[e[8]]+ie[e[9]]+"-"+ie[e[10]]+ie[e[11]]+ie[e[12]]+ie[e[13]]+ie[e[14]]+ie[e[15]]}function Zr(e){return e??null}function ln(e,l){return e??(l===!0?`f_${Jt()}`:null)}function Jr({getValue:e,required:l=!0}={}){if(Ce.value===!0){const n=e!==void 0?t.ref(Zr(e())):t.ref(null);return l===!0&&n.value===null&&t.onMounted(()=>{n.value=`f_${Jt()}`}),e!==void 0&&t.watch(e,r=>{n.value=ln(r,l)}),n}return e!==void 0?t.computed(()=>ln(e(),l)):t.ref(`f_${Jt()}`)}const nn=/^on[A-Z]/;function ei(){const{attrs:e,vnode:l}=t.getCurrentInstance(),n={listeners:t.ref({}),attributes:t.ref({})};function r(){const o={},i={};for(const a in e)a!=="class"&&a!=="style"&&nn.test(a)===!1&&(o[a]=e[a]);for(const a in l.props)nn.test(a)===!0&&(i[a]=l.props[a]);n.attributes.value=o,n.listeners.value=i}return t.onBeforeUpdate(r),r(),n}const kt="_q_l_",ti="_q_pc_",li="_q_fo_";function pe(){}function ni({validate:e,resetValidation:l,requiresQForm:n}){const r=t.inject(li,!1);if(r!==!1){const{props:o,proxy:i}=t.getCurrentInstance();Object.assign(i,{validate:e,resetValidation:l}),t.watch(()=>o.disable,a=>{a===!0?(typeof l=="function"&&l(),r.unbindComponent(i)):r.bindComponent(i)}),t.onMounted(()=>{o.disable!==!0&&r.bindComponent(i)}),t.onBeforeUnmount(()=>{o.disable!==!0&&r.unbindComponent(i)})}else n===!0&&console.error("Parent QForm not found on useFormChild()!")}const on=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,rn=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,an=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,mt=/^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])\)$/,ht=/^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)\)$/,Rt={date:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),time:e=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),fulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),timeOrFulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(e),email:e=>/^(([^<>()\[\]\\.,;:\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(e),hexColor:e=>on.test(e),hexaColor:e=>rn.test(e),hexOrHexaColor:e=>an.test(e),rgbColor:e=>mt.test(e),rgbaColor:e=>ht.test(e),rgbOrRgbaColor:e=>mt.test(e)||ht.test(e),hexOrRgbColor:e=>on.test(e)||mt.test(e),hexaOrRgbaColor:e=>rn.test(e)||ht.test(e),anyColor:e=>an.test(e)||mt.test(e)||ht.test(e)},oi=[!0,!1,"ondemand"],ri={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>oi.includes(e)}};function ii(e,l){const{props:n,proxy:r}=t.getCurrentInstance(),o=t.ref(!1),i=t.ref(null),a=t.ref(!1);ni({validate:k,resetValidation:g});let u=0,c;const f=t.computed(()=>n.rules!==void 0&&n.rules!==null&&n.rules.length!==0),d=t.computed(()=>n.disable!==!0&&f.value===!0&&l.value===!1),b=t.computed(()=>n.error===!0||o.value===!0),m=t.computed(()=>typeof n.errorMessage=="string"&&n.errorMessage.length!==0?n.errorMessage:i.value);t.watch(()=>n.modelValue,()=>{a.value=!0,d.value===!0&&n.lazyRules===!1&&h()});function v(){n.lazyRules!=="ondemand"&&d.value===!0&&a.value===!0&&h()}t.watch(()=>n.reactiveRules,B=>{B===!0?c===void 0&&(c=t.watch(()=>n.rules,v,{immediate:!0,deep:!0})):c!==void 0&&(c(),c=void 0)},{immediate:!0}),t.watch(()=>n.lazyRules,v),t.watch(e,B=>{B===!0?a.value=!0:d.value===!0&&n.lazyRules!=="ondemand"&&h()});function g(){u++,l.value=!1,a.value=!1,o.value=!1,i.value=null,h.cancel()}function k(B=n.modelValue){if(n.disable===!0||f.value===!1)return!0;const w=++u,C=l.value!==!0?()=>{a.value=!0}:()=>{},x=(q,$)=>{q===!0&&C(),o.value=q,i.value=$||null,l.value=!1},S=[];for(let q=0;q<n.rules.length;q++){const $=n.rules[q];let P;if(typeof $=="function"?P=$(B,Rt):typeof $=="string"&&Rt[$]!==void 0&&(P=Rt[$](B)),P===!1||typeof P=="string")return x(!0,P),!1;P!==!0&&P!==void 0&&S.push(P)}return S.length===0?(x(!1),!0):(l.value=!0,Promise.all(S).then(q=>{if(q===void 0||Array.isArray(q)===!1||q.length===0)return w===u&&x(!1),!0;const $=q.find(P=>P===!1||typeof P=="string");return w===u&&x($!==void 0,$),$===void 0},q=>(w===u&&(console.error(q),x(!0)),!1)))}const h=sl(k,0);return t.onBeforeUnmount(()=>{c==null||c(),h.cancel()}),Object.assign(r,{resetValidation:g,validate:k}),nl(r,"hasError",()=>b.value),{isDirtyModel:a,hasRules:f,hasError:b,errorMessage:m,validate:k,resetValidation:g}}function el(e){return e!=null&&(""+e).length!==0}const ai={...ye,...ri,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},fl={...ai,maxlength:[Number,String]},oo=["update:modelValue","clear","focus","blur"];function ro({requiredForAttr:e=!0,tagProp:l,changeEvent:n=!1}={}){const{props:r,proxy:o}=t.getCurrentInstance(),i=we(r,o.$q),a=Jr({required:e,getValue:()=>r.for});return{requiredForAttr:e,changeEvent:n,tag:l===!0?t.computed(()=>r.tag):{value:"label"},isDark:i,editable:t.computed(()=>r.disable!==!0&&r.readonly!==!0),innerLoading:t.ref(!1),focused:t.ref(!1),hasPopupOpen:!1,splitAttrs:ei(),targetUid:a,rootRef:t.ref(null),targetRef:t.ref(null),controlRef:t.ref(null)}}function io(e){const{props:l,emit:n,slots:r,attrs:o,proxy:i}=t.getCurrentInstance(),{$q:a}=i;let u=null;e.hasValue===void 0&&(e.hasValue=t.computed(()=>el(l.modelValue))),e.emitValue===void 0&&(e.emitValue=T=>{n("update:modelValue",T)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:I,onFocusout:K}),Object.assign(e,{clearValue:U,onControlFocusin:I,onControlFocusout:K,focus:$}),e.computedCounter===void 0&&(e.computedCounter=t.computed(()=>{if(l.counter!==!1){const T=typeof l.modelValue=="string"||typeof l.modelValue=="number"?(""+l.modelValue).length:Array.isArray(l.modelValue)===!0?l.modelValue.length:0,R=l.maxlength!==void 0?l.maxlength:l.maxValues;return T+(R!==void 0?" / "+R:"")}}));const{isDirtyModel:c,hasRules:f,hasError:d,errorMessage:b,resetValidation:m}=ii(e.focused,e.innerLoading),v=e.floatingLabel!==void 0?t.computed(()=>l.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):t.computed(()=>l.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),g=t.computed(()=>l.bottomSlots===!0||l.hint!==void 0||f.value===!0||l.counter===!0||l.error!==null),k=t.computed(()=>l.filled===!0?"filled":l.outlined===!0?"outlined":l.borderless===!0?"borderless":l.standout?"standout":"standard"),h=t.computed(()=>`q-field row no-wrap items-start q-field--${k.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(l.rounded===!0?" q-field--rounded":"")+(l.square===!0?" q-field--square":"")+(v.value===!0?" q-field--float":"")+(w.value===!0?" q-field--labeled":"")+(l.dense===!0?" q-field--dense":"")+(l.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(e.isDark.value===!0?" q-field--dark":"")+(e.getControl===void 0?" q-field--auto-height":"")+(e.focused.value===!0?" q-field--focused":"")+(d.value===!0?" q-field--error":"")+(d.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(l.hideBottomSpace!==!0&&g.value===!0?" q-field--with-bottom":"")+(l.disable===!0?" q-field--disabled":l.readonly===!0?" q-field--readonly":"")),B=t.computed(()=>"q-field__control relative-position row no-wrap"+(l.bgColor!==void 0?` bg-${l.bgColor}`:"")+(d.value===!0?" text-negative":typeof l.standout=="string"&&l.standout.length!==0&&e.focused.value===!0?` ${l.standout}`:l.color!==void 0?` text-${l.color}`:"")),w=t.computed(()=>l.labelSlot===!0||l.label!==void 0),C=t.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(l.labelColor!==void 0&&d.value!==!0?` text-${l.labelColor}`:"")),x=t.computed(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:v.value,modelValue:l.modelValue,emitValue:e.emitValue})),S=t.computed(()=>{const T={};return e.targetUid.value&&(T.for=e.targetUid.value),l.disable===!0&&(T["aria-disabled"]="true"),T});function q(){var J;const T=document.activeElement;let R=(J=e.targetRef)==null?void 0:J.value;R&&(T===null||T.id!==e.targetUid.value)&&(R.hasAttribute("tabindex")===!0||(R=R.querySelector("[tabindex]")),R!==T&&(R==null||R.focus({preventScroll:!0})))}function $(){cl(q)}function P(){Or(q);const T=document.activeElement;T!==null&&e.rootRef.value.contains(T)&&T.blur()}function I(T){u!==null&&(clearTimeout(u),u=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,n("focus",T))}function K(T,R){u!==null&&clearTimeout(u),u=setTimeout(()=>{u=null,!(document.hasFocus()===!0&&(e.hasPopupOpen===!0||e.controlRef===void 0||e.controlRef.value===null||e.controlRef.value.contains(document.activeElement)!==!1))&&(e.focused.value===!0&&(e.focused.value=!1,n("blur",T)),R==null||R())})}function U(T){var R;le(T),a.platform.is.mobile!==!0?(((R=e.targetRef)==null?void 0:R.value)||e.rootRef.value).focus():e.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),l.type==="file"&&(e.inputRef.value.value=null),n("update:modelValue",null),e.changeEvent===!0&&n("change",null),n("clear",l.modelValue),t.nextTick(()=>{const J=c.value;m(),c.value=J})}function O(T){[13,32].includes(T.keyCode)&&U(T)}function Q(){const T=[];return r.prepend!==void 0&&T.push(t.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:ae},r.prepend())),T.push(t.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},p())),d.value===!0&&l.noErrorIcon===!1&&T.push(M("error",[t.h(ce,{name:a.iconSet.field.error,color:"negative"})])),l.loading===!0||e.innerLoading.value===!0?T.push(M("inner-loading-append",r.loading!==void 0?r.loading():[t.h(Tn,{color:l.color})])):l.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&T.push(M("inner-clearable-append",[t.h(ce,{class:"q-field__focusable-action",name:l.clearIcon||a.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":a.lang.label.clear,onKeyup:O,onClick:U})])),r.append!==void 0&&T.push(t.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:ae},r.append())),e.getInnerAppend!==void 0&&T.push(M("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&T.push(e.getControlChild()),T}function p(){const T=[];return l.prefix!==void 0&&l.prefix!==null&&T.push(t.h("div",{class:"q-field__prefix no-pointer-events row items-center"},l.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&T.push(e.getShadowControl()),e.getControl!==void 0?T.push(e.getControl()):r.rawControl!==void 0?T.push(r.rawControl()):r.control!==void 0&&T.push(t.h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0},r.control(x.value))),w.value===!0&&T.push(t.h("div",{class:C.value},ue(r.label,l.label))),l.suffix!==void 0&&l.suffix!==null&&T.push(t.h("div",{class:"q-field__suffix no-pointer-events row items-center"},l.suffix)),T.concat(ue(r.default))}function _(){let T,R;d.value===!0?b.value!==null?(T=[t.h("div",{role:"alert"},b.value)],R=`q--slot-error-${b.value}`):(T=ue(r.error),R="q--slot-error"):(l.hideHint!==!0||e.focused.value===!0)&&(l.hint!==void 0?(T=[t.h("div",l.hint)],R=`q--slot-hint-${l.hint}`):(T=ue(r.hint),R="q--slot-hint"));const J=l.counter===!0||r.counter!==void 0;if(l.hideBottomSpace===!0&&J===!1&&T===void 0)return;const y=t.h("div",{key:R,class:"q-field__messages col"},T);return t.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(l.hideBottomSpace!==!0?"animated":"stale"),onClick:ae},[l.hideBottomSpace===!0?y:t.h(t.Transition,{name:"q-transition--field-message"},()=>y),J===!0?t.h("div",{class:"q-field__counter"},r.counter!==void 0?r.counter():e.computedCounter.value):null])}function M(T,R){return R===null?null:t.h("div",{key:T,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},R)}let G=!1;return t.onDeactivated(()=>{G=!0}),t.onActivated(()=>{G===!0&&l.autofocus===!0&&i.focus()}),l.autofocus===!0&&t.onMounted(()=>{i.focus()}),t.onBeforeUnmount(()=>{u!==null&&clearTimeout(u)}),Object.assign(i,{focus:$,blur:P}),function(){const R=e.getControl===void 0&&r.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0,...S.value}:S.value;return t.h(e.tag.value,{ref:e.rootRef,class:[h.value,o.class],style:o.style,...R},[r.before!==void 0?t.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:ae},r.before()):null,t.h("div",{class:"q-field__inner relative-position col self-stretch"},[t.h("div",{ref:e.controlRef,class:B.value,tabindex:-1,...e.controlEvents},Q()),g.value===!0?_():null]),r.after!==void 0?t.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:ae},r.after()):null])}}const ui=W({name:"QField",inheritAttrs:!1,props:{...fl,tag:{type:String,default:"label"}},emits:oo,setup(){return io(ro({tagProp:!0}))}}),si={xs:8,sm:10,md:14,lg:20,xl:24},ci=W({name:"QChip",props:{...ye,...rt,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(e,{slots:l,emit:n}){const{proxy:{$q:r}}=t.getCurrentInstance(),o=we(e,r),i=it(e,si),a=t.computed(()=>e.selected===!0||e.icon!==void 0),u=t.computed(()=>e.selected===!0?e.iconSelected||r.iconSet.chip.selected:e.icon),c=t.computed(()=>e.iconRemove||r.iconSet.chip.remove),f=t.computed(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),d=t.computed(()=>{const h=e.outline===!0&&e.color||e.textColor;return"q-chip row inline no-wrap items-center"+(e.outline===!1&&e.color!==void 0?` bg-${e.color}`:"")+(h?` text-${h} q-chip--colored`:"")+(e.disable===!0?" disabled":"")+(e.dense===!0?" q-chip--dense":"")+(e.outline===!0?" q-chip--outline":"")+(e.selected===!0?" q-chip--selected":"")+(f.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square===!0?" q-chip--square":"")+(o.value===!0?" q-chip--dark q-dark":"")}),b=t.computed(()=>{const h=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},B={...h,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||r.lang.label.remove};return{chip:h,remove:B}});function m(h){h.keyCode===13&&v(h)}function v(h){e.disable||(n("update:selected",!e.selected),n("click",h))}function g(h){(h.keyCode===void 0||h.keyCode===13)&&(le(h),e.disable===!1&&(n("update:modelValue",!1),n("remove")))}function k(){const h=[];f.value===!0&&h.push(t.h("div",{class:"q-focus-helper"})),a.value===!0&&h.push(t.h(ce,{class:"q-chip__icon q-chip__icon--left",name:u.value}));const B=e.label!==void 0?[t.h("div",{class:"ellipsis"},[e.label])]:void 0;return h.push(t.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},yn(l.default,B))),e.iconRight&&h.push(t.h(ce,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&h.push(t.h(ce,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:c.value,...b.value.remove,onClick:g,onKeyup:g})),h}return()=>{if(e.modelValue===!1)return;const h={class:d.value,style:i.value};return f.value===!0&&Object.assign(h,b.value.chip,{onClick:v,onKeyup:m}),zo("div",h,k(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[An,e.ripple]])}}}),tl=W({name:"QItem",props:{...ye,...zn,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(e,{slots:l,emit:n}){const{proxy:{$q:r}}=t.getCurrentInstance(),o=we(e,r),{hasLink:i,linkAttrs:a,linkClass:u,linkTag:c,navigateOnClick:f}=ol(),d=t.ref(null),b=t.ref(null),m=t.computed(()=>e.clickable===!0||i.value===!0||e.tag==="label"),v=t.computed(()=>e.disable!==!0&&m.value===!0),g=t.computed(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(o.value===!0?" q-item--dark":"")+(i.value===!0&&e.active===null?u.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(v.value===!0?" q-item--clickable q-link cursor-pointer "+(e.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(e.focused===!0?" q-manual-focusable--focused":""):"")),k=t.computed(()=>e.insetLevel===void 0?null:{["padding"+(r.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function h(C){v.value===!0&&(b.value!==null&&C.qAvoidFocus!==!0&&(C.qKeyEvent!==!0&&document.activeElement===d.value?b.value.focus():document.activeElement===b.value&&d.value.focus()),f(C))}function B(C){if(v.value===!0&&Le(C,[13,32])===!0){le(C),C.qKeyEvent=!0;const x=new MouseEvent("click",C);x.qKeyEvent=!0,d.value.dispatchEvent(x)}n("keyup",C)}function w(){const C=pn(l.default,[]);return v.value===!0&&C.unshift(t.h("div",{class:"q-focus-helper",tabindex:-1,ref:b})),C}return()=>{const C={ref:d,class:g.value,style:k.value,role:"listitem",onClick:h,onKeyup:B};return v.value===!0?(C.tabindex=e.tabindex||"0",Object.assign(C,a.value)):m.value===!0&&(C["aria-disabled"]="true"),t.h(c.value,C,w())}}}),ll=W({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:l}){const n=t.computed(()=>`q-item__section column q-item__section--${e.avatar===!0||e.side===!0||e.thumbnail===!0?"side":"main"}`+(e.top===!0?" q-item__section--top justify-start":" justify-center")+(e.avatar===!0?" q-item__section--avatar":"")+(e.thumbnail===!0?" q-item__section--thumbnail":"")+(e.noWrap===!0?" q-item__section--nowrap":""));return()=>t.h("div",{class:n.value},ue(l.default))}}),di=W({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:l}){const n=t.computed(()=>parseInt(e.lines,10)),r=t.computed(()=>"q-item__label"+(e.overline===!0?" q-item__label--overline text-overline":"")+(e.caption===!0?" q-item__label--caption text-caption":"")+(e.header===!0?" q-item__label--header":"")+(n.value===1?" ellipsis":"")),o=t.computed(()=>e.lines!==void 0&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null);return()=>t.h("div",{style:o.value,class:r.value},ue(l.default))}});function fi(e,l,n){function r(){}return t.onBeforeUnmount(()=>{e.value===!0&&void 0}),{removeFromHistory:r,addToHistory(){}}}let Ze=0,Ft,It,et,Ht=!1,un,sn,cn,ze=null;function vi(e){mi(e)&&le(e)}function mi(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const l=Ko(e),n=e.shiftKey&&!e.deltaX,r=!n&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),o=n||r?e.deltaY:e.deltaX;for(let i=0;i<l.length;i++){const a=l[i];if(xr(a,r))return r?o<0&&a.scrollTop===0?!0:o>0&&a.scrollTop+a.clientHeight===a.scrollHeight:o<0&&a.scrollLeft===0?!0:o>0&&a.scrollLeft+a.clientWidth===a.scrollWidth}return!0}function dn(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function gt(e){Ht!==!0&&(Ht=!0,requestAnimationFrame(()=>{Ht=!1;const{height:l}=e.target,{clientHeight:n,scrollTop:r}=document.scrollingElement;(et===void 0||l!==window.innerHeight)&&(et=n-l,document.scrollingElement.scrollTop=r),r>et&&(document.scrollingElement.scrollTop-=Math.ceil((r-et)/8))}))}function fn(e){const l=document.body,n=window.visualViewport!==void 0;if(e==="add"){const{overflowY:r,overflowX:o}=window.getComputedStyle(l);Ft=al(window),It=il(window),un=l.style.left,sn=l.style.top,cn=window.location.href,l.style.left=`-${Ft}px`,l.style.top=`-${It}px`,o!=="hidden"&&(o==="scroll"||l.scrollWidth>window.innerWidth)&&l.classList.add("q-body--force-scrollbar-x"),r!=="hidden"&&(r==="scroll"||l.scrollHeight>window.innerHeight)&&l.classList.add("q-body--force-scrollbar-y"),l.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,oe.is.ios===!0&&(n===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",gt,ne.passiveCapture),window.visualViewport.addEventListener("scroll",gt,ne.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",dn,ne.passiveCapture))}oe.is.desktop===!0&&oe.is.mac===!0&&window[`${e}EventListener`]("wheel",vi,ne.notPassive),e==="remove"&&(oe.is.ios===!0&&(n===!0?(window.visualViewport.removeEventListener("resize",gt,ne.passiveCapture),window.visualViewport.removeEventListener("scroll",gt,ne.passiveCapture)):window.removeEventListener("scroll",dn,ne.passiveCapture)),l.classList.remove("q-body--prevent-scroll"),l.classList.remove("q-body--force-scrollbar-x"),l.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,l.style.left=un,l.style.top=sn,window.location.href===cn&&window.scrollTo(Ft,It),et=void 0)}function hi(e){let l="add";if(e===!0){if(Ze++,ze!==null){clearTimeout(ze),ze=null;return}if(Ze>1)return}else{if(Ze===0||(Ze--,Ze>0))return;if(l="remove",oe.is.ios===!0&&oe.is.nativeMobile===!0){ze!==null&&clearTimeout(ze),ze=setTimeout(()=>{fn(l),ze=null},100);return}}fn(l)}function gi(){let e;return{preventBodyScroll(l){l!==e&&(e!==void 0||l===!0)&&(e=l,hi(l))}}}let bt=0;const bi={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"},vn={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},pi=W({name:"QDialog",inheritAttrs:!1,props:{...Nn,...Xn,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:e=>["standard","top","bottom","left","right"].includes(e)}},emits:[...Qn,"shake","click","escapeKey"],setup(e,{slots:l,emit:n,attrs:r}){const o=t.getCurrentInstance(),i=t.ref(null),a=t.ref(!1),u=t.ref(!1);let c=null,f=null,d,b;const m=t.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:v}=gi(),{registerTimeout:g}=Zn(),{registerTick:k,removeTick:h}=Gn(),{transitionProps:B,transitionStyle:w}=Yn(e,()=>vn[e.position][0],()=>vn[e.position][1]),C=t.computed(()=>w.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:x,hidePortal:S,portalIsAccessible:q,renderPortal:$}=Kn(o,i,H,"dialog"),{hide:P}=Wn({showing:a,hideOnRouteChange:m,handleShow:Q,handleHide:p,processOnMount:!0});fi(a);const I=t.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${bi[e.position]}`+(u.value===!0?" q-dialog__inner--animating":"")+(e.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(e.fullHeight===!0?" q-dialog__inner--fullheight":"")+(e.square===!0?" q-dialog__inner--square":"")),K=t.computed(()=>a.value===!0&&e.seamless!==!0),U=t.computed(()=>e.autoClose===!0?{onClick:J}:{}),O=t.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${K.value===!0?"modal":"seamless"}`,r.class]);t.watch(()=>e.maximized,A=>{a.value===!0&&R(A)}),t.watch(K,A=>{v(A),A===!0?(lo(V),eo(G)):(Gt(V),yt(G))});function Q(A){var j;f=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,R(e.maximized),x(),u.value=!0,e.noFocus!==!0?((j=document.activeElement)==null||j.blur(),k(_)):h(),g(()=>{if(o.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:D,bottom:F}=document.activeElement.getBoundingClientRect(),{innerHeight:Z}=window,z=window.visualViewport!==void 0?window.visualViewport.height:Z;D>0&&F>z/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-z,F>=Z?1/0:Math.ceil(document.scrollingElement.scrollTop+F-z/2))),document.activeElement.scrollIntoView()}b=!0,i.value.click(),b=!1}x(!0),u.value=!1,n("show",A)},e.transitionDuration)}function p(A){h(),T(!0),u.value=!0,S(),f!==null&&((((A==null?void 0:A.type.indexOf("key"))===0?f.closest('[tabindex]:not([tabindex^="-"])'):void 0)||f).focus(),f=null),g(()=>{S(!0),u.value=!1,n("hide",A)},e.transitionDuration)}function _(A){cl(()=>{let j=i.value;if(j!==null){if(A!==void 0){const D=j.querySelector(A);if(D!==null){D.focus({preventScroll:!0});return}}j.contains(document.activeElement)!==!0&&(j=j.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||j.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||j.querySelector("[autofocus], [data-autofocus]")||j,j.focus({preventScroll:!0}))}})}function M(A){A&&typeof A.focus=="function"?A.focus({preventScroll:!0}):_(),n("shake");const j=i.value;j!==null&&(j.classList.remove("q-animate--scale"),j.classList.add("q-animate--scale"),c!==null&&clearTimeout(c),c=setTimeout(()=>{c=null,i.value!==null&&(j.classList.remove("q-animate--scale"),_())},170))}function G(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&M():(n("escapeKey"),P()))}function T(A){c!==null&&(clearTimeout(c),c=null),(A===!0||a.value===!0)&&(R(!1),e.seamless!==!0&&(v(!1),Gt(V),yt(G))),A!==!0&&(f=null)}function R(A){A===!0?d!==!0&&(bt<1&&document.body.classList.add("q-body--dialog"),bt++,d=!0):d===!0&&(bt<2&&document.body.classList.remove("q-body--dialog"),bt--,d=!1)}function J(A){b!==!0&&(P(A),n("click",A))}function y(A){e.persistent!==!0&&e.noBackdropDismiss!==!0?P(A):e.noShake!==!0&&M()}function V(A){e.allowFocusOutside!==!0&&q.value===!0&&$n(i.value,A.target)!==!0&&_('[tabindex]:not([tabindex="-1"])')}Object.assign(o.proxy,{focus:_,shake:M,__updateRefocusTarget(A){f=A||null}}),t.onBeforeUnmount(T);function H(){return t.h("div",{role:"dialog","aria-modal":K.value===!0?"true":"false",...r,class:O.value},[t.h(t.Transition,{name:"q-transition--fade",appear:!0},()=>K.value===!0?t.h("div",{class:"q-dialog__backdrop fixed-full",style:C.value,"aria-hidden":"true",tabindex:-1,onClick:y}):null),t.h(t.Transition,B.value,()=>a.value===!0?t.h("div",{ref:i,class:I.value,style:w.value,tabindex:-1,...U.value},ue(l.default)):null)])}return $}});let Ct=!1;{const e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});const l=document.createElement("div");Object.assign(l.style,{width:"1000px",height:"1px"}),document.body.appendChild(e),e.appendChild(l),e.scrollLeft=-1e3,Ct=e.scrollLeft>=0,e.remove()}const me=1e3,yi=["start","center","end","start-force","center-force","end-force"],ao=Array.prototype.filter,wi=window.getComputedStyle(document.body).overflowAnchor===void 0?xt:function(e,l){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;const n=e.children||[];ao.call(n,o=>o.dataset&&o.dataset.qVsAnchor!==void 0).forEach(o=>{delete o.dataset.qVsAnchor});const r=n[l];r!=null&&r.dataset&&(r.dataset.qVsAnchor="")}))};function Qe(e,l){return e+l}function Dt(e,l,n,r,o,i,a,u){const c=e===window?document.scrollingElement||document.documentElement:e,f=o===!0?"offsetWidth":"offsetHeight",d={scrollStart:0,scrollViewSize:-a-u,scrollMaxSize:0,offsetStart:-a,offsetEnd:-u};if(o===!0?(e===window?(d.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,d.scrollViewSize+=document.documentElement.clientWidth):(d.scrollStart=c.scrollLeft,d.scrollViewSize+=c.clientWidth),d.scrollMaxSize=c.scrollWidth,i===!0&&(d.scrollStart=(Ct===!0?d.scrollMaxSize-d.scrollViewSize:0)-d.scrollStart)):(e===window?(d.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,d.scrollViewSize+=document.documentElement.clientHeight):(d.scrollStart=c.scrollTop,d.scrollViewSize+=c.clientHeight),d.scrollMaxSize=c.scrollHeight),n!==null)for(let b=n.previousElementSibling;b!==null;b=b.previousElementSibling)b.classList.contains("q-virtual-scroll--skip")===!1&&(d.offsetStart+=b[f]);if(r!==null)for(let b=r.nextElementSibling;b!==null;b=b.nextElementSibling)b.classList.contains("q-virtual-scroll--skip")===!1&&(d.offsetEnd+=b[f]);if(l!==e){const b=c.getBoundingClientRect(),m=l.getBoundingClientRect();o===!0?(d.offsetStart+=m.left-b.left,d.offsetEnd-=m.width):(d.offsetStart+=m.top-b.top,d.offsetEnd-=m.height),e!==window&&(d.offsetStart+=d.scrollStart),d.offsetEnd+=d.scrollMaxSize-d.offsetStart}return d}function mn(e,l,n,r){l==="end"&&(l=(e===window?document.body:e)[n===!0?"scrollWidth":"scrollHeight"]),e===window?n===!0?(r===!0&&(l=(Ct===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-l),window.scrollTo(l,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,l):n===!0?(r===!0&&(l=(Ct===!0?e.scrollWidth-e.offsetWidth:0)-l),e.scrollLeft=l):e.scrollTop=l}function Je(e,l,n,r){if(n>=r)return 0;const o=l.length,i=Math.floor(n/me),a=Math.floor((r-1)/me)+1;let u=e.slice(i,a).reduce(Qe,0);return n%me!==0&&(u-=l.slice(i*me,n).reduce(Qe,0)),r%me!==0&&r!==o&&(u-=l.slice(r,a*me).reduce(Qe,0)),u}const Si={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]},hn={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...Si};function Ci({virtualScrollLength:e,getVirtualScrollTarget:l,getVirtualScrollEl:n,virtualScrollItemSizeComputed:r}){const o=t.getCurrentInstance(),{props:i,emit:a,proxy:u}=o,{$q:c}=u;let f,d,b,m=[],v;const g=t.ref(0),k=t.ref(0),h=t.ref({}),B=t.ref(null),w=t.ref(null),C=t.ref(null),x=t.ref({from:0,to:0}),S=t.computed(()=>i.tableColspan!==void 0?i.tableColspan:100);r===void 0&&(r=t.computed(()=>i.virtualScrollItemSize));const q=t.computed(()=>r.value+";"+i.virtualScrollHorizontal),$=t.computed(()=>q.value+";"+i.virtualScrollSliceRatioBefore+";"+i.virtualScrollSliceRatioAfter);t.watch($,()=>{M()}),t.watch(q,P);function P(){_(d,!0)}function I(y){_(y===void 0?d:y)}function K(y,V){const H=l();if(H==null||H.nodeType===8)return;const A=Dt(H,n(),B.value,w.value,i.virtualScrollHorizontal,c.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd);b!==A.scrollViewSize&&M(A.scrollViewSize),O(H,A,Math.min(e.value-1,Math.max(0,parseInt(y,10)||0)),0,yi.indexOf(V)!==-1?V:d!==-1&&y>d?"end":"start")}function U(){const y=l();if(y==null||y.nodeType===8)return;const V=Dt(y,n(),B.value,w.value,i.virtualScrollHorizontal,c.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd),H=e.value-1,A=V.scrollMaxSize-V.offsetStart-V.offsetEnd-k.value;if(f===V.scrollStart)return;if(V.scrollMaxSize<=0){O(y,V,0,0);return}b!==V.scrollViewSize&&M(V.scrollViewSize),Q(x.value.from);const j=Math.floor(V.scrollMaxSize-Math.max(V.scrollViewSize,V.offsetEnd)-Math.min(v[H],V.scrollViewSize/2));if(j>0&&Math.ceil(V.scrollStart)>=j){O(y,V,H,V.scrollMaxSize-V.offsetEnd-m.reduce(Qe,0));return}let D=0,F=V.scrollStart-V.offsetStart,Z=F;if(F<=A&&F+V.scrollViewSize>=g.value)F-=g.value,D=x.value.from,Z=F;else for(let z=0;F>=m[z]&&D<H;z++)F-=m[z],D+=me;for(;F>0&&D<H;)F-=v[D],F>-V.scrollViewSize?(D++,Z=F):Z=v[D]+F;O(y,V,D,Z)}function O(y,V,H,A,j){const D=typeof j=="string"&&j.indexOf("-force")!==-1,F=D===!0?j.replace("-force",""):j,Z=F!==void 0?F:"start";let z=Math.max(0,H-h.value[Z]),re=z+h.value.total;re>e.value&&(re=e.value,z=Math.max(0,re-h.value.total)),f=V.scrollStart;const ge=z!==x.value.from||re!==x.value.to;if(ge===!1&&F===void 0){T(H);return}const{activeElement:Ae}=document,fe=C.value;ge===!0&&fe!==null&&fe!==Ae&&fe.contains(Ae)===!0&&(fe.addEventListener("focusout",p),setTimeout(()=>{fe==null||fe.removeEventListener("focusout",p)})),wi(fe,H-z);const at=F!==void 0?v.slice(z,H).reduce(Qe,0):0;if(ge===!0){const xe=re>=x.value.from&&z<=x.value.to?x.value.to:re;x.value={from:z,to:xe},g.value=Je(m,v,0,z),k.value=Je(m,v,re,e.value),requestAnimationFrame(()=>{x.value.to!==re&&f===V.scrollStart&&(x.value={from:x.value.from,to:re},k.value=Je(m,v,re,e.value))})}requestAnimationFrame(()=>{if(f!==V.scrollStart)return;ge===!0&&Q(z);const xe=v.slice(z,H).reduce(Qe,0),ke=xe+V.offsetStart+g.value,ut=ke+v[H];let Ke=ke+A;if(F!==void 0){const qt=xe-at,Xe=V.scrollStart+qt;Ke=D!==!0&&Xe<ke&&ut<Xe+V.scrollViewSize?Xe:F==="end"?ut-V.scrollViewSize:ke-(F==="start"?0:Math.round((V.scrollViewSize-v[H])/2))}f=Ke,mn(y,Ke,i.virtualScrollHorizontal,c.lang.rtl),T(H)})}function Q(y){const V=C.value;if(V){const H=ao.call(V.children,z=>z.classList&&z.classList.contains("q-virtual-scroll--skip")===!1),A=H.length,j=i.virtualScrollHorizontal===!0?z=>z.getBoundingClientRect().width:z=>z.offsetHeight;let D=y,F,Z;for(let z=0;z<A;){for(F=j(H[z]),z++;z<A&&H[z].classList.contains("q-virtual-scroll--with-prev")===!0;)F+=j(H[z]),z++;Z=F-v[D],Z!==0&&(v[D]+=Z,m[Math.floor(D/me)]+=Z),D++}}}function p(){var y;(y=C.value)==null||y.focus()}function _(y,V){const H=1*r.value;(V===!0||Array.isArray(v)===!1)&&(v=[]);const A=v.length;v.length=e.value;for(let D=e.value-1;D>=A;D--)v[D]=H;const j=Math.floor((e.value-1)/me);m=[];for(let D=0;D<=j;D++){let F=0;const Z=Math.min((D+1)*me,e.value);for(let z=D*me;z<Z;z++)F+=v[z];m.push(F)}d=-1,f=void 0,g.value=Je(m,v,0,x.value.from),k.value=Je(m,v,x.value.to,e.value),y>=0?(Q(x.value.from),t.nextTick(()=>{K(y)})):R()}function M(y){if(y===void 0&&typeof window<"u"){const F=l();F!=null&&F.nodeType!==8&&(y=Dt(F,n(),B.value,w.value,i.virtualScrollHorizontal,c.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd).scrollViewSize)}b=y;const V=parseFloat(i.virtualScrollSliceRatioBefore)||0,H=parseFloat(i.virtualScrollSliceRatioAfter)||0,A=1+V+H,j=y===void 0||y<=0?1:Math.ceil(y/r.value),D=Math.max(1,j,Math.ceil((i.virtualScrollSliceSize>0?i.virtualScrollSliceSize:10)/A));h.value={total:Math.ceil(D*A),start:Math.ceil(D*V),center:Math.ceil(D*(.5+V)),end:Math.ceil(D*(1+V)),view:j}}function G(y,V){const H=i.virtualScrollHorizontal===!0?"width":"height",A={["--q-virtual-scroll-item-"+H]:r.value+"px"};return[y==="tbody"?t.h(y,{class:"q-virtual-scroll__padding",key:"before",ref:B},[t.h("tr",[t.h("td",{style:{[H]:`${g.value}px`,...A},colspan:S.value})])]):t.h(y,{class:"q-virtual-scroll__padding",key:"before",ref:B,style:{[H]:`${g.value}px`,...A}}),t.h(y,{class:"q-virtual-scroll__content",key:"content",ref:C,tabindex:-1},V.flat()),y==="tbody"?t.h(y,{class:"q-virtual-scroll__padding",key:"after",ref:w},[t.h("tr",[t.h("td",{style:{[H]:`${k.value}px`,...A},colspan:S.value})])]):t.h(y,{class:"q-virtual-scroll__padding",key:"after",ref:w,style:{[H]:`${k.value}px`,...A}})]}function T(y){d!==y&&(i.onVirtualScroll!==void 0&&a("virtualScroll",{index:y,from:x.value.from,to:x.value.to-1,direction:y<d?"decrease":"increase",ref:u}),d=y)}M();const R=sl(U,c.platform.is.ios===!0?120:35);t.onBeforeMount(()=>{M()});let J=!1;return t.onDeactivated(()=>{J=!0}),t.onActivated(()=>{if(J!==!0)return;const y=l();f!==void 0&&y!==void 0&&y!==null&&y.nodeType!==8?mn(y,f,i.virtualScrollHorizontal,c.lang.rtl):K(d)}),t.onBeforeUnmount(()=>{R.cancel()}),Object.assign(u,{scrollTo:K,reset:P,refresh:I}),{virtualScrollSliceRange:x,virtualScrollSliceSizeComputed:h,setVirtualScrollSize:M,onVirtualScrollEvt:R,localResetVirtualScroll:_,padVirtualScroll:G,scrollTo:K,reset:P,refresh:I}}const xi=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,ki=/[\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,qi=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,_i=/[a-z0-9_ -]$/i;function zi(e){return function(n){if(n.type==="compositionend"||n.type==="change"){if(n.target.qComposing!==!0)return;n.target.qComposing=!1,e(n)}else n.type==="compositionupdate"&&n.target.qComposing!==!0&&typeof n.data=="string"&&(oe.is.firefox===!0?_i.test(n.data)===!1:xi.test(n.data)===!0||ki.test(n.data)===!0||qi.test(n.data)===!0)===!0&&(n.target.qComposing=!0)}}function Se(e,l){if(e===l)return!0;if(e!==null&&l!==null&&typeof e=="object"&&typeof l=="object"){if(e.constructor!==l.constructor)return!1;let n,r;if(e.constructor===Array){if(n=e.length,n!==l.length)return!1;for(r=n;r--!==0;)if(Se(e[r],l[r])!==!0)return!1;return!0}if(e.constructor===Map){if(e.size!==l.size)return!1;let i=e.entries();for(r=i.next();r.done!==!0;){if(l.has(r.value[0])!==!0)return!1;r=i.next()}for(i=e.entries(),r=i.next();r.done!==!0;){if(Se(r.value[1],l.get(r.value[0]))!==!0)return!1;r=i.next()}return!0}if(e.constructor===Set){if(e.size!==l.size)return!1;const i=e.entries();for(r=i.next();r.done!==!0;){if(l.has(r.value[0])!==!0)return!1;r=i.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(n=e.length,n!==l.length)return!1;for(r=n;r--!==0;)if(e[r]!==l[r])return!1;return!0}if(e.constructor===RegExp)return e.source===l.source&&e.flags===l.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===l.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===l.toString();const o=Object.keys(e).filter(i=>e[i]!==void 0);if(n=o.length,n!==Object.keys(l).filter(i=>l[i]!==void 0).length)return!1;for(r=n;r--!==0;){const i=o[r];if(Se(e[i],l[i])!==!0)return!1}return!0}return e!==e&&l!==l}const gn=e=>["add","add-unique","toggle"].includes(e),Bi=".*+?^${}()|[]\\",Vi=Object.keys(fl);function jt(e,l){if(typeof e=="function")return e;const n=e!==void 0?e:l;return r=>r!==null&&typeof r=="object"&&n in r?r[n]:r}const uo=W({name:"QSelect",inheritAttrs:!1,props:{...hn,...On,...fl,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:gn},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:e=>["default","menu","dialog"].includes(e),default:"default"},virtualScrollItemSize:hn.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...oo,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:l,emit:n}){const{proxy:r}=t.getCurrentInstance(),{$q:o}=r,i=t.ref(!1),a=t.ref(!1),u=t.ref(-1),c=t.ref(""),f=t.ref(!1),d=t.ref(!1);let b=null,m=null,v,g,k,h=null,B,w,C,x;const S=t.ref(null),q=t.ref(null),$=t.ref(null),P=t.ref(null),I=t.ref(null),K=sr(e),U=zi(Cl),O=t.computed(()=>Array.isArray(e.options)?e.options.length:0),Q=t.computed(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:p,virtualScrollSliceSizeComputed:_,localResetVirtualScroll:M,padVirtualScroll:G,onVirtualScrollEvt:T,scrollTo:R,setVirtualScrollSize:J}=Ci({virtualScrollLength:O,getVirtualScrollTarget:mo,getVirtualScrollEl:wl,virtualScrollItemSizeComputed:Q}),y=ro(),V=t.computed(()=>{const s=e.mapOptions===!0&&e.multiple!==!0,E=e.modelValue!==void 0&&(e.modelValue!==null||s===!0)?e.multiple===!0&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions===!0&&Array.isArray(e.options)===!0){const L=e.mapOptions===!0&&v!==void 0?v:[],N=E.map(X=>vo(X,L));return e.modelValue===null&&s===!0?N.filter(X=>X!==null):N}return E}),H=t.computed(()=>{const s={};return Vi.forEach(E=>{const L=e[E];L!==void 0&&(s[E]=L)}),s}),A=t.computed(()=>e.optionsDark===null?y.isDark.value:e.optionsDark),j=t.computed(()=>el(V.value)),D=t.computed(()=>{let s="q-field__input q-placeholder col";return e.hideSelected===!0||V.value.length===0?[s,e.inputClass]:(s+=" q-field__input--padding",e.inputClass===void 0?s:[s,e.inputClass])}),F=t.computed(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),Z=t.computed(()=>O.value===0),z=t.computed(()=>V.value.map(s=>se.value(s)).join(", ")),re=t.computed(()=>e.displayValue!==void 0?e.displayValue:z.value),ge=t.computed(()=>e.optionsHtml===!0?()=>!0:s=>(s==null?void 0:s.html)===!0),Ae=t.computed(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||V.value.some(ge.value))),fe=t.computed(()=>y.focused.value===!0?e.tabindex:-1),at=t.computed(()=>{const s={tabindex:e.tabindex,role:"combobox","aria-label":e.label,"aria-readonly":e.readonly===!0?"true":"false","aria-autocomplete":e.useInput===!0?"list":"none","aria-expanded":i.value===!0?"true":"false","aria-controls":`${y.targetUid.value}_lb`};return u.value>=0&&(s["aria-activedescendant"]=`${y.targetUid.value}_${u.value}`),s}),xe=t.computed(()=>({id:`${y.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),ke=t.computed(()=>V.value.map((s,E)=>({index:E,opt:s,html:ge.value(s),selected:!0,removeAtIndex:fo,toggleOption:qe,tabindex:fe.value}))),ut=t.computed(()=>{if(O.value===0)return[];const{from:s,to:E}=p.value;return e.options.slice(s,E).map((L,N)=>{const X=Oe.value(L)===!0,ee=zt(L)===!0,Y=s+N,te={clickable:!0,active:ee,activeClass:Xe.value,manualFocus:!0,focused:!1,disable:X,tabindex:-1,dense:e.optionsDense,dark:A.value,role:"option","aria-selected":ee===!0?"true":"false",id:`${y.targetUid.value}_${Y}`,onClick:()=>{qe(L)}};return X!==!0&&(u.value===Y&&(te.focused=!0),o.platform.is.desktop===!0&&(te.onMousemove=()=>{i.value===!0&&Me(Y)})),{index:Y,opt:L,html:ge.value(L),label:se.value(L),selected:te.active,focused:te.focused,toggleOption:qe,setOptionIndex:Me,itemProps:te}})}),Ke=t.computed(()=>e.dropdownIcon!==void 0?e.dropdownIcon:o.iconSet.arrow.dropdown),qt=t.computed(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),Xe=t.computed(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),be=t.computed(()=>jt(e.optionValue,"value")),se=t.computed(()=>jt(e.optionLabel,"label")),Oe=t.computed(()=>jt(e.optionDisable,"disable")),st=t.computed(()=>V.value.map(be.value)),co=t.computed(()=>{const s={onInput:Cl,onChange:U,onKeydown:yl,onKeyup:bl,onKeypress:pl,onFocus:hl,onClick(E){g===!0&&ve(E)}};return s.onCompositionstart=s.onCompositionupdate=s.onCompositionend=U,s});t.watch(V,s=>{v=s,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&y.innerLoading.value!==!0&&(a.value!==!0&&i.value!==!0||j.value!==!0)&&(k!==!0&&Ie(),(a.value===!0||i.value===!0)&&Pe(""))},{immediate:!0}),t.watch(()=>e.fillInput,Ie),t.watch(i,Bt),t.watch(O,_o);function vl(s){return e.emitValue===!0?be.value(s):s}function _t(s){if(s!==-1&&s<V.value.length)if(e.multiple===!0){const E=e.modelValue.slice();n("remove",{index:s,value:E.splice(s,1)[0]}),n("update:modelValue",E)}else n("update:modelValue",null)}function fo(s){_t(s),y.focus()}function ml(s,E){const L=vl(s);if(e.multiple!==!0){e.fillInput===!0&&Ye(se.value(s),!0,!0),n("update:modelValue",L);return}if(V.value.length===0){n("add",{index:0,value:L}),n("update:modelValue",e.multiple===!0?[L]:L);return}if(E===!0&&zt(s)===!0||e.maxValues!==void 0&&e.modelValue.length>=e.maxValues)return;const N=e.modelValue.slice();n("add",{index:N.length,value:L}),N.push(L),n("update:modelValue",N)}function qe(s,E){var ee;if(y.editable.value!==!0||s===void 0||Oe.value(s)===!0)return;const L=be.value(s);if(e.multiple!==!0){E!==!0&&(Ye(e.fillInput===!0?se.value(s):"",!0,!0),_e()),(ee=q.value)==null||ee.focus(),(V.value.length===0||Se(be.value(V.value[0]),L)!==!0)&&n("update:modelValue",e.emitValue===!0?L:s);return}if((g!==!0||f.value===!0)&&y.focus(),hl(),V.value.length===0){const Y=e.emitValue===!0?L:s;n("add",{index:0,value:Y}),n("update:modelValue",e.multiple===!0?[Y]:Y);return}const N=e.modelValue.slice(),X=st.value.findIndex(Y=>Se(Y,L));if(X!==-1)n("remove",{index:X,value:N.splice(X,1)[0]});else{if(e.maxValues!==void 0&&N.length>=e.maxValues)return;const Y=e.emitValue===!0?L:s;n("add",{index:N.length,value:Y}),N.push(Y)}n("update:modelValue",N)}function Me(s){if(o.platform.is.desktop!==!0)return;const E=s!==-1&&s<O.value?s:-1;u.value!==E&&(u.value=E)}function ct(s=1,E){if(i.value===!0){let L=u.value;do L=jl(L+s,-1,O.value-1);while(L!==-1&&L!==u.value&&Oe.value(e.options[L])===!0);u.value!==L&&(Me(L),R(L),E!==!0&&e.useInput===!0&&e.fillInput===!0&&dt(L>=0?se.value(e.options[L]):B,!0))}}function vo(s,E){const L=N=>Se(be.value(N),s);return e.options.find(L)||E.find(L)||s}function zt(s){const E=be.value(s);return st.value.find(L=>Se(L,E))!==void 0}function hl(s){e.useInput===!0&&q.value!==null&&(s===void 0||q.value===s.target&&s.target.value===z.value)&&q.value.select()}function gl(s){Le(s,27)===!0&&i.value===!0&&(ve(s),_e(),Ie()),n("keyup",s)}function bl(s){const{value:E}=s.target;if(s.keyCode!==void 0){gl(s);return}if(s.target.value="",b!==null&&(clearTimeout(b),b=null),m!==null&&(clearTimeout(m),m=null),Ie(),typeof E=="string"&&E.length!==0){const L=E.toLocaleLowerCase(),N=ee=>{const Y=e.options.find(te=>String(ee.value(te)).toLocaleLowerCase()===L);return Y===void 0?!1:(V.value.indexOf(Y)===-1?qe(Y):_e(),!0)},X=ee=>{N(be)!==!0&&ee!==!0&&N(se)!==!0&&Pe(E,!0,()=>X(!0))};X()}else y.clearValue(s)}function pl(s){n("keypress",s)}function yl(s){if(n("keydown",s),Ln(s)===!0)return;const E=c.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),L=s.shiftKey!==!0&&e.disableTabSelection!==!0&&e.multiple!==!0&&(u.value!==-1||E===!0);if(s.keyCode===27){ae(s);return}if(s.keyCode===9&&L===!1){Re();return}if(s.target===void 0||s.target.id!==y.targetUid.value||y.editable.value!==!0)return;if(s.keyCode===40&&y.innerLoading.value!==!0&&i.value===!1){le(s),Fe();return}if(s.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&c.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?_t(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&n("update:modelValue",null);return}(s.keyCode===35||s.keyCode===36)&&(typeof c.value!="string"||c.value.length===0)&&(le(s),u.value=-1,ct(s.keyCode===36?1:-1,e.multiple)),(s.keyCode===33||s.keyCode===34)&&_.value!==void 0&&(le(s),u.value=Math.max(-1,Math.min(O.value,u.value+(s.keyCode===33?-1:1)*_.value.view)),ct(s.keyCode===33?1:-1,e.multiple)),(s.keyCode===38||s.keyCode===40)&&(le(s),ct(s.keyCode===38?-1:1,e.multiple));const N=O.value;if((C===void 0||x<Date.now())&&(C=""),N>0&&e.useInput!==!0&&s.key!==void 0&&s.key.length===1&&s.altKey===!1&&s.ctrlKey===!1&&s.metaKey===!1&&(s.keyCode!==32||C.length!==0)){i.value!==!0&&Fe(s);const X=s.key.toLocaleLowerCase(),ee=C.length===1&&C[0]===X;x=Date.now()+1500,ee===!1&&(le(s),C+=X);const Y=new RegExp("^"+C.split("").map(He=>Bi.indexOf(He)!==-1?"\\"+He:He).join(".*"),"i");let te=u.value;if(ee===!0||te<0||Y.test(se.value(e.options[te]))!==!0)do te=jl(te+1,-1,N-1);while(te!==u.value&&(Oe.value(e.options[te])===!0||Y.test(se.value(e.options[te]))!==!0));u.value!==te&&t.nextTick(()=>{Me(te),R(te),te>=0&&e.useInput===!0&&e.fillInput===!0&&dt(se.value(e.options[te]),!0)});return}if(!(s.keyCode!==13&&(s.keyCode!==32||e.useInput===!0||C!=="")&&(s.keyCode!==9||L===!1))){if(s.keyCode!==9&&le(s),u.value!==-1&&u.value<N){qe(e.options[u.value]);return}if(E===!0){const X=(ee,Y)=>{var He;if(Y){if(gn(Y)!==!0)return}else Y=e.newValueMode;if(Ye("",e.multiple!==!0,!0),ee==null)return;(Y==="toggle"?qe:ml)(ee,Y==="add-unique"),e.multiple!==!0&&((He=q.value)==null||He.focus(),_e())};if(e.onNewValue!==void 0?n("newValue",c.value,X):X(c.value),e.multiple!==!0)return}i.value===!0?Re():y.innerLoading.value!==!0&&Fe()}}function wl(){return g===!0?I.value:$.value!==null&&$.value.contentEl!==null?$.value.contentEl:void 0}function mo(){return wl()}function ho(){return e.hideSelected===!0?[]:l["selected-item"]!==void 0?ke.value.map(s=>l["selected-item"](s)).slice():l.selected!==void 0?[].concat(l.selected()):e.useChips===!0?ke.value.map((s,E)=>t.h(ci,{key:"option-"+E,removable:y.editable.value===!0&&Oe.value(s.opt)!==!0,dense:!0,textColor:e.color,tabindex:fe.value,onRemove(){s.removeAtIndex(E)}},()=>t.h("span",{class:"ellipsis",[s.html===!0?"innerHTML":"textContent"]:se.value(s.opt)}))):[t.h("span",{class:"ellipsis",[Ae.value===!0?"innerHTML":"textContent"]:re.value})]}function Sl(){if(Z.value===!0)return l["no-option"]!==void 0?l["no-option"]({inputValue:c.value}):void 0;const s=l.option!==void 0?l.option:L=>t.h(tl,{key:L.index,...L.itemProps},()=>t.h(ll,()=>t.h(di,()=>t.h("span",{[L.html===!0?"innerHTML":"textContent"]:L.label}))));let E=G("div",ut.value.map(s));return l["before-options"]!==void 0&&(E=l["before-options"]().concat(E)),he(l["after-options"],E)}function go(s,E){const L=E===!0?{...at.value,...y.splitAttrs.attributes.value}:void 0,N={ref:E===!0?q:void 0,key:"i_t",class:D.value,style:e.inputStyle,value:c.value!==void 0?c.value:"",type:"search",...L,id:E===!0?y.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":s===!0||e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...co.value};return s!==!0&&g===!0&&(Array.isArray(N.class)===!0?N.class=[...N.class,"no-pointer-events"]:N.class+=" no-pointer-events"),t.h("input",N)}function Cl(s){b!==null&&(clearTimeout(b),b=null),m!==null&&(clearTimeout(m),m=null),!(s&&s.target&&s.target.qComposing===!0)&&(dt(s.target.value||""),k=!0,B=c.value,y.focused.value!==!0&&(g!==!0||f.value===!0)&&y.focus(),e.onFilter!==void 0&&(b=setTimeout(()=>{b=null,Pe(c.value)},e.inputDebounce)))}function dt(s,E){c.value!==s&&(c.value=s,E===!0||e.inputDebounce===0||e.inputDebounce==="0"?n("inputValue",s):m=setTimeout(()=>{m=null,n("inputValue",s)},e.inputDebounce))}function Ye(s,E,L){k=L!==!0,e.useInput===!0&&(dt(s,!0),(E===!0||L!==!0)&&(B=s),E!==!0&&Pe(s))}function Pe(s,E,L){if(e.onFilter===void 0||E!==!0&&y.focused.value!==!0)return;y.innerLoading.value===!0?n("filterAbort"):(y.innerLoading.value=!0,d.value=!0),s!==""&&e.multiple!==!0&&V.value.length!==0&&k!==!0&&s===se.value(V.value[0])&&(s="");const N=setTimeout(()=>{i.value===!0&&(i.value=!1)},10);h!==null&&clearTimeout(h),h=N,n("filter",s,(X,ee)=>{(E===!0||y.focused.value===!0)&&h===N&&(clearTimeout(h),typeof X=="function"&&X(),d.value=!1,t.nextTick(()=>{y.innerLoading.value=!1,y.editable.value===!0&&(E===!0?i.value===!0&&_e():i.value===!0?Bt(!0):i.value=!0),typeof ee=="function"&&t.nextTick(()=>{ee(r)}),typeof L=="function"&&t.nextTick(()=>{L(r)})}))},()=>{y.focused.value===!0&&h===N&&(clearTimeout(h),y.innerLoading.value=!1,d.value=!1),i.value===!0&&(i.value=!1)})}function bo(){return t.h(dl,{ref:$,class:F.value,style:e.popupContentStyle,modelValue:i.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&Z.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:A.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:qt.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...xe.value,onScrollPassive:T,onBeforeShow:kl,onBeforeHide:po,onShow:yo},Sl)}function po(s){ql(s),Re()}function yo(){J()}function wo(s){var E;ve(s),(E=q.value)==null||E.focus(),f.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function So(s){ve(s),t.nextTick(()=>{f.value=!1})}function Co(){const s=[t.h(ui,{class:`col-auto ${y.fieldClass.value}`,...H.value,for:y.targetUid.value,dark:A.value,square:!0,loading:d.value,itemAligned:!1,filled:!0,stackLabel:c.value.length!==0,...y.splitAttrs.listeners.value,onFocus:wo,onBlur:So},{...l,rawControl:()=>y.getControl(!0),before:void 0,after:void 0})];return i.value===!0&&s.push(t.h("div",{ref:I,class:F.value+" scroll",style:e.popupContentStyle,...xe.value,onClick:ae,onScrollPassive:T},Sl())),t.h(pi,{ref:P,modelValue:a.value,position:e.useInput===!0?"top":void 0,transitionShow:w,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:kl,onBeforeHide:xo,onHide:ko,onShow:qo},()=>t.h("div",{class:"q-select__dialog"+(A.value===!0?" q-select__dialog--dark q-dark":"")+(f.value===!0?" q-select__dialog--focused":"")},s))}function xo(s){ql(s),P.value!==null&&P.value.__updateRefocusTarget(y.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),y.focused.value=!1}function ko(s){_e(),y.focused.value===!1&&n("blur",s),Ie()}function qo(){const s=document.activeElement;(s===null||s.id!==y.targetUid.value)&&q.value!==null&&q.value!==s&&q.value.focus(),J()}function Re(){a.value!==!0&&(u.value=-1,i.value===!0&&(i.value=!1),y.focused.value===!1&&(h!==null&&(clearTimeout(h),h=null),y.innerLoading.value===!0&&(n("filterAbort"),y.innerLoading.value=!1,d.value=!1)))}function Fe(s){y.editable.value===!0&&(g===!0?(y.onControlFocusin(s),a.value=!0,t.nextTick(()=>{y.focus()})):y.focus(),e.onFilter!==void 0?Pe(c.value):(Z.value!==!0||l["no-option"]!==void 0)&&(i.value=!0))}function _e(){a.value=!1,Re()}function Ie(){e.useInput===!0&&Ye(e.multiple!==!0&&e.fillInput===!0&&V.value.length!==0&&se.value(V.value[0])||"",!0,!0)}function Bt(s){let E=-1;if(s===!0){if(V.value.length!==0){const L=be.value(V.value[0]);E=e.options.findIndex(N=>Se(be.value(N),L))}M(E)}Me(E)}function _o(s,E){i.value===!0&&y.innerLoading.value===!1&&(M(-1,!0),t.nextTick(()=>{i.value===!0&&y.innerLoading.value===!1&&(s>E?M():Bt(!0))}))}function xl(){a.value===!1&&$.value!==null&&$.value.updatePosition()}function kl(s){s!==void 0&&ve(s),n("popupShow",s),y.hasPopupOpen=!0,y.onControlFocusin(s)}function ql(s){s!==void 0&&ve(s),n("popupHide",s),y.hasPopupOpen=!1,y.onControlFocusout(s)}function _l(){g=o.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?l["no-option"]!==void 0||e.onFilter!==void 0||Z.value===!1:!0),w=o.platform.is.ios===!0&&g===!0&&e.useInput===!0?"fade":e.transitionShow}return t.onBeforeUpdate(_l),t.onUpdated(xl),_l(),t.onBeforeUnmount(()=>{b!==null&&clearTimeout(b),m!==null&&clearTimeout(m)}),Object.assign(r,{showPopup:Fe,hidePopup:_e,removeAtIndex:_t,add:ml,toggleOption:qe,getOptionIndex:()=>u.value,setOptionIndex:Me,moveOptionSelection:ct,filter:Pe,updateMenuPosition:xl,updateInputValue:Ye,isOptionSelected:zt,getEmittingOptionValue:vl,isOptionDisabled:(...s)=>Oe.value.apply(null,s)===!0,getOptionValue:(...s)=>be.value.apply(null,s),getOptionLabel:(...s)=>se.value.apply(null,s)}),Object.assign(y,{innerValue:V,fieldClass:t.computed(()=>`q-select q-field--auto-height q-select--with${e.useInput!==!0?"out":""}-input q-select--with${e.useChips!==!0?"out":""}-chips q-select--${e.multiple===!0?"multiple":"single"}`),inputRef:S,targetRef:q,hasValue:j,showPopup:Fe,floatingLabel:t.computed(()=>e.hideSelected!==!0&&j.value===!0||typeof c.value=="number"||c.value.length!==0||el(e.displayValue)),getControlChild:()=>{if(y.editable.value!==!1&&(a.value===!0||Z.value!==!0||l["no-option"]!==void 0))return g===!0?Co():bo();y.hasPopupOpen===!0&&(y.hasPopupOpen=!1)},controlEvents:{onFocusin(s){y.onControlFocusin(s)},onFocusout(s){y.onControlFocusout(s,()=>{Ie(),Re()})},onClick(s){var E;if(ae(s),g!==!0&&i.value===!0){Re(),(E=q.value)==null||E.focus();return}Fe(s)}},getControl:s=>{const E=ho(),L=s===!0||a.value!==!0||g!==!0;if(e.useInput===!0)E.push(go(s,L));else if(y.editable.value===!0){const X=L===!0?at.value:void 0;E.push(t.h("input",{ref:L===!0?q:void 0,key:"d_t",class:"q-select__focus-target",id:L===!0?y.targetUid.value:void 0,value:re.value,readonly:!0,"data-autofocus":s===!0||e.autofocus===!0||void 0,...X,onKeydown:yl,onKeyup:gl,onKeypress:pl})),L===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&E.push(t.h("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:bl}))}if(K.value!==void 0&&e.disable!==!0&&st.value.length!==0){const X=st.value.map(ee=>t.h("option",{value:ee,selected:!0}));E.push(t.h("select",{class:"hidden",name:K.value,multiple:e.multiple},X))}const N=e.useInput===!0||L!==!0?void 0:y.splitAttrs.attributes.value;return t.h("div",{class:"q-field__native row items-center",...N,...y.splitAttrs.listeners.value},E)},getInnerAppend:()=>e.loading!==!0&&d.value!==!0&&e.hideDropdownIcon!==!0?[t.h(ce,{class:"q-select__dropdown-icon"+(i.value===!0?" rotate-180":""),name:Ke.value})]:null}),io(y)}}),Ei={class:"q-pa-none"},Ti=t.defineComponent({__name:"CheckboxFilter",props:{options:{},label:{default:"Sélectionner les options"},modelValue:{default:()=>[]},scrollAreaHeight:{default:"200px"},scrollAreaWidth:{default:"250px"}},emits:["update:modelValue"],setup(e,{emit:l}){const n=e,r=l,o=t.ref(!1),i=t.ref(n.modelValue||[]),a=t.computed(()=>({height:n.scrollAreaHeight,width:n.scrollAreaWidth}));return t.watch(i,u=>{r("update:modelValue",u)}),t.watch(()=>n.modelValue,u=>{u&&(i.value=u)}),(u,c)=>(t.openBlock(),t.createElementBlock("div",Ei,[t.createVNode(uo,t.mergeProps({outlined:"",dense:"",label:n.label,class:"full-width cursor-pointer","data-cy":"checkbox-filter","model-value":null,options:[],"hide-dropdown-icon":""},u.$attrs),{append:t.withCtx(()=>[t.createVNode(ce,{name:"arrow_drop_down",class:t.normalizeClass(["cursor-pointer smooth-rotate",{"rotate-180":o.value}])},null,8,["class"])]),default:t.withCtx(()=>[t.createVNode(dl,{modelValue:o.value,"onUpdate:modelValue":c[1]||(c[1]=f=>o.value=f),anchor:"bottom left",self:"top left",offset:[0,8],"transition-show":"scale","transition-hide":"scale"},{default:t.withCtx(()=>[t.createVNode(Vr,{class:"q-pa-sm"},{default:t.withCtx(()=>[t.createVNode(Br,{style:t.normalizeStyle(a.value)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.options,f=>(t.openBlock(),t.createBlock(hr,{key:f.value,modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=d=>i.value=d),val:f,label:f.label,disable:f.disabled,color:"primary",class:"q-mb-sm q-ml-sm q-mr-sm","data-cy":`checkbox-option-${f.label}`},null,8,["modelValue","val","label","disable","data-cy"]))),128))]),_:1},8,["style"])]),_:1})]),_:1},8,["modelValue"])]),_:1},16,["label"])]))}}),$i=rl(Ti,[["__scopeId","data-v-42c19597"]]),Li=t.defineComponent({__name:"SelectSearch",props:{options:{default:()=>[]},fetchOptions:{},label:{default:"Selectionner un option"},modelValue:{default:null}},emits:["update:modelValue"],setup(e,{emit:l}){const n=e,r=l,o=t.ref(),i=t.ref(n.modelValue??null),a=t.ref(""),u=t.ref(n.options??[]),c=t.ref(!1),f=t.ref(!0);t.watch(()=>n.options,h=>{u.value=h??[],d()},{immediate:!0}),t.watch(()=>n.modelValue,h=>{i.value=h,d(),c.value=!1});function d(){const h=u.value.find(B=>B.value===i.value);a.value=(h==null?void 0:h.label)??""}function b(h){i.value=h,r("update:modelValue",h),d(),c.value=!1}function m(h){a.value=h,h===""&&(c.value=!0)}function v(){var h;if(f.value){f.value=!1;return}i.value!==null&&!c.value?(a.value="",c.value=!0,(h=o.value)==null||h.showPopup()):c.value&&(a.value="")}function g(){f.value=!0;const h=a.value.trim();if(h==="")c.value&&(i.value=null,r("update:modelValue",null));else{const B=u.value.find(w=>w.label.toLowerCase()===h.toLowerCase());B?(i.value=B.value,r("update:modelValue",B.value),a.value=B.label):d()}c.value=!1}function k(h,B,w){if(n.fetchOptions)n.fetchOptions(h).then(C=>{u.value=C,B(()=>{})}).catch(w).finally(()=>{});else{const C=n.options??[];u.value=C.filter(x=>x.label.toLowerCase().includes(h.toLowerCase())),B(()=>{})}}return(h,B)=>(t.openBlock(),t.createBlock(uo,t.mergeProps({ref_key:"selectRef",ref:o,"model-value":i.value,"input-value":a.value,"use-input":"","fill-input":"","hide-selected":"","input-debounce":"300",label:h.label,options:u.value,"onUpdate:modelValue":b,"onUpdate:inputValue":m,onFocus:v,onBlur:g,onFilter:k,"data-cy":"client-select",dense:"",outlined:"",class:"full-width cursor-pointer"},h.$attrs),null,16,["model-value","input-value","label","options"]))}}),so=W({name:"QAvatar",props:{...rt,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(e,{slots:l}){const n=it(e),r=t.computed(()=>"q-avatar"+(e.color?` bg-${e.color}`:"")+(e.textColor?` text-${e.textColor} q-chip--colored`:"")+(e.square===!0?" q-avatar--square":e.rounded===!0?" rounded-borders":"")),o=t.computed(()=>e.fontSize?{fontSize:e.fontSize}:null);return()=>{const i=e.icon!==void 0?[t.h(ce,{name:e.icon})]:void 0;return t.h("div",{class:r.value,style:n.value},[t.h("div",{class:"q-avatar__content row flex-center overflow-hidden",style:o.value},yn(l.default,i))])}}}),Ai=W({name:"QSpace",setup(){const e=t.h("div",{class:"q-space"});return()=>e}}),Oi=W({name:"QToolbar",props:{inset:Boolean},setup(e,{slots:l}){const n=t.computed(()=>"q-toolbar row no-wrap items-center"+(e.inset===!0?" q-toolbar--inset":""));return()=>t.h("div",{class:n.value,role:"toolbar"},ue(l.default))}}),Mi=W({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(e,{slots:l,emit:n}){const{proxy:{$q:r}}=t.getCurrentInstance(),o=t.inject(kt,pe);if(o===pe)return console.error("QHeader needs to be child of QLayout"),pe;const i=t.ref(parseInt(e.heightHint,10)),a=t.ref(!0),u=t.computed(()=>e.reveal===!0||o.view.value.indexOf("H")!==-1||r.platform.is.ios&&o.isContainer.value===!0),c=t.computed(()=>{if(e.modelValue!==!0)return 0;if(u.value===!0)return a.value===!0?i.value:0;const w=i.value-o.scroll.value.position;return w>0?w:0}),f=t.computed(()=>e.modelValue!==!0||u.value===!0&&a.value!==!0),d=t.computed(()=>e.modelValue===!0&&f.value===!0&&e.reveal===!0),b=t.computed(()=>"q-header q-layout__section--marginal "+(u.value===!0?"fixed":"absolute")+"-top"+(e.bordered===!0?" q-header--bordered":"")+(f.value===!0?" q-header--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus":"")),m=t.computed(()=>{const w=o.rows.value.top,C={};return w[0]==="l"&&o.left.space===!0&&(C[r.lang.rtl===!0?"right":"left"]=`${o.left.size}px`),w[2]==="r"&&o.right.space===!0&&(C[r.lang.rtl===!0?"left":"right"]=`${o.right.size}px`),C});function v(w,C){o.update("header",w,C)}function g(w,C){w.value!==C&&(w.value=C)}function k({height:w}){g(i,w),v("size",w)}function h(w){d.value===!0&&g(a,!0),n("focusin",w)}t.watch(()=>e.modelValue,w=>{v("space",w),g(a,!0),o.animate()}),t.watch(c,w=>{v("offset",w)}),t.watch(()=>e.reveal,w=>{w===!1&&g(a,e.modelValue)}),t.watch(a,w=>{o.animate(),n("reveal",w)}),t.watch(o.scroll,w=>{e.reveal===!0&&g(a,w.direction==="up"||w.position<=e.revealOffset||w.position-w.inflectionPoint<100)});const B={};return o.instances.header=B,e.modelValue===!0&&v("size",i.value),v("space",e.modelValue),v("offset",c.value),t.onBeforeUnmount(()=>{o.instances.header===B&&(o.instances.header=void 0,v("size",0),v("offset",0),v("space",!1))}),()=>{const w=pn(l.default,[]);return e.elevated===!0&&w.push(t.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),w.push(t.h(We,{debounce:0,onResize:k})),t.h("header",{class:b.value,style:m.value,onFocusin:h},w)}}}),Pi=["src","alt"],Ri=t.defineComponent({__name:"SelfeeHeader",props:{logoSrc:{},logoAlt:{},logoTo:{}},setup(e){const l=e,n=l.logoAlt??"Logo",r=l.logoTo??"/";return(o,i)=>{const a=t.resolveComponent("router-link");return t.openBlock(),t.createBlock(Mi,{elevated:""},{default:t.withCtx(()=>[t.createVNode(Oi,null,{default:t.withCtx(()=>[t.createVNode(a,{to:t.unref(r),class:"q-mr-md"},{default:t.withCtx(()=>[t.createVNode(so,{class:"logo"},{default:t.withCtx(()=>[t.createElementVNode("img",{src:o.logoSrc,alt:t.unref(n)},null,8,Pi)]),_:1})]),_:1},8,["to"]),t.createVNode(Ai),t.renderSlot(o.$slots,"user-avatar",{},void 0,!0)]),_:3})]),_:3})}}}),Fi=rl(Ri,[["__scopeId","data-v-67697ca7"]]),Ii=W({name:"QFooter",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:l,emit:n}){const{proxy:{$q:r}}=t.getCurrentInstance(),o=t.inject(kt,pe);if(o===pe)return console.error("QFooter needs to be child of QLayout"),pe;const i=t.ref(parseInt(e.heightHint,10)),a=t.ref(!0),u=t.ref(Ce.value===!0||o.isContainer.value===!0?0:window.innerHeight),c=t.computed(()=>e.reveal===!0||o.view.value.indexOf("F")!==-1||r.platform.is.ios&&o.isContainer.value===!0),f=t.computed(()=>o.isContainer.value===!0?o.containerHeight.value:u.value),d=t.computed(()=>{if(e.modelValue!==!0)return 0;if(c.value===!0)return a.value===!0?i.value:0;const S=o.scroll.value.position+f.value+i.value-o.height.value;return S>0?S:0}),b=t.computed(()=>e.modelValue!==!0||c.value===!0&&a.value!==!0),m=t.computed(()=>e.modelValue===!0&&b.value===!0&&e.reveal===!0),v=t.computed(()=>"q-footer q-layout__section--marginal "+(c.value===!0?"fixed":"absolute")+"-bottom"+(e.bordered===!0?" q-footer--bordered":"")+(b.value===!0?" q-footer--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus"+(c.value!==!0?" hidden":""):"")),g=t.computed(()=>{const S=o.rows.value.bottom,q={};return S[0]==="l"&&o.left.space===!0&&(q[r.lang.rtl===!0?"right":"left"]=`${o.left.size}px`),S[2]==="r"&&o.right.space===!0&&(q[r.lang.rtl===!0?"left":"right"]=`${o.right.size}px`),q});function k(S,q){o.update("footer",S,q)}function h(S,q){S.value!==q&&(S.value=q)}function B({height:S}){h(i,S),k("size",S)}function w(){if(e.reveal!==!0)return;const{direction:S,position:q,inflectionPoint:$}=o.scroll.value;h(a,S==="up"||q-$<100||o.height.value-f.value-q-i.value<300)}function C(S){m.value===!0&&h(a,!0),n("focusin",S)}t.watch(()=>e.modelValue,S=>{k("space",S),h(a,!0),o.animate()}),t.watch(d,S=>{k("offset",S)}),t.watch(()=>e.reveal,S=>{S===!1&&h(a,e.modelValue)}),t.watch(a,S=>{o.animate(),n("reveal",S)}),t.watch([i,o.scroll,o.height],w),t.watch(()=>r.screen.height,S=>{o.isContainer.value!==!0&&h(u,S)});const x={};return o.instances.footer=x,e.modelValue===!0&&k("size",i.value),k("space",e.modelValue),k("offset",d.value),t.onBeforeUnmount(()=>{o.instances.footer===x&&(o.instances.footer=void 0,k("size",0),k("offset",0),k("space",!1))}),()=>{const S=he(l.default,[t.h(We,{debounce:0,onResize:B})]);return e.elevated===!0&&S.push(t.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),t.h("footer",{class:v.value,style:g.value,onFocusin:C},S)}}}),Hi={class:"row justify-between"},Di={class:"col-3 q-py-md flex justify-center"},ji={class:"col-3 q-py-md flex justify-center"},Ni={class:"col-3 q-py-md flex justify-center"},Qi=t.defineComponent({__name:"SelfeeFooter",props:{frontVersion:{},backVersion:{},platform:{}},setup(e){return(l,n)=>(t.openBlock(),t.createBlock(Ii,{elevated:""},{default:t.withCtx(()=>[t.createElementVNode("div",Hi,[t.createElementVNode("div",Di,"Front: "+t.toDisplayString(l.frontVersion),1),t.createElementVNode("div",ji,"Back: "+t.toDisplayString(l.backVersion),1),t.createElementVNode("div",Ni,"Platform: "+t.toDisplayString(l.platform),1)])]),_:1}))}}),Wi={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},Nt={xs:2,sm:4,md:8,lg:16,xl:24},Ui=W({name:"QSeparator",props:{...ye,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const l=t.getCurrentInstance(),n=we(e,l.proxy.$q),r=t.computed(()=>e.vertical===!0?"vertical":"horizontal"),o=t.computed(()=>` q-separator--${r.value}`),i=t.computed(()=>e.inset!==!1?`${o.value}-${Wi[e.inset]}`:""),a=t.computed(()=>`q-separator${o.value}${i.value}`+(e.color!==void 0?` bg-${e.color}`:"")+(n.value===!0?" q-separator--dark":"")),u=t.computed(()=>{const c={};if(e.size!==void 0&&(c[e.vertical===!0?"width":"height"]=e.size),e.spaced!==!1){const f=e.spaced===!0?`${Nt.md}px`:e.spaced in Nt?`${Nt[e.spaced]}px`:e.spaced,d=e.vertical===!0?["Left","Right"]:["Top","Bottom"];c[`margin${d[0]}`]=c[`margin${d[1]}`]=f}return c});return()=>t.h("hr",{class:a.value,style:u.value,"aria-orientation":r.value})}}),Ki=["ul","ol"],Xi=W({name:"QList",props:{...ye,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(e,{slots:l}){const n=t.getCurrentInstance(),r=we(e,n.proxy.$q),o=t.computed(()=>Ki.includes(e.tag)?null:"list"),i=t.computed(()=>"q-list"+(e.bordered===!0?" q-list--bordered":"")+(e.dense===!0?" q-list--dense":"")+(e.separator===!0?" q-list--separator":"")+(r.value===!0?" q-list--dark":"")+(e.padding===!0?" q-list--padding":""));return()=>t.h(e.tag,{class:i.value,role:o.value},ue(l.default))}}),Yi={class:"text-h6 text-primary"},Gi=t.defineComponent({__name:"UserAvatar",props:{username:{},onLogout:{type:Function},logoutLabel:{}},setup(e){const l=e,n=t.computed(()=>{var o;return((o=l.username)==null?void 0:o.charAt(0).toUpperCase())??""}),r=l.logoutLabel??"Logout";return(o,i)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(so,{class:"cursor-pointer",size:"40px",color:"white","data-cy":"cy-avatar"},{default:t.withCtx(()=>[t.createElementVNode("span",Yi,t.toDisplayString(n.value),1),t.createVNode(dl,{"transition-show":"flip-right","transition-hide":"flip-left"},{default:t.withCtx(()=>[t.createVNode(Xi,null,{default:t.withCtx(()=>[t.createVNode(tl,null,{default:t.withCtx(()=>[t.createVNode(ll,null,{default:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(o.username),1)]),_:1})]),_:1}),t.createVNode(Ui),t.createVNode(tl,{clickable:"",onClick:o.onLogout,"data-cy":"cy-logout-button"},{default:t.withCtx(()=>[t.createVNode(ll,null,{default:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(t.unref(r)),1)]),_:1})]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]))}}),Zi=W({name:"QPageContainer",setup(e,{slots:l}){const{proxy:{$q:n}}=t.getCurrentInstance(),r=t.inject(kt,pe);if(r===pe)return console.error("QPageContainer needs to be child of QLayout"),pe;t.provide(ti,!0);const o=t.computed(()=>{const i={};return r.header.space===!0&&(i.paddingTop=`${r.header.size}px`),r.right.space===!0&&(i[`padding${n.lang.rtl===!0?"Left":"Right"}`]=`${r.right.size}px`),r.footer.space===!0&&(i.paddingBottom=`${r.footer.size}px`),r.left.space===!0&&(i[`padding${n.lang.rtl===!0?"Right":"Left"}`]=`${r.left.size}px`),i});return()=>t.h("div",{class:"q-page-container",style:o.value},ue(l.default))}}),Ji=W({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:e=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(e.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(e,{slots:l,emit:n}){const{proxy:{$q:r}}=t.getCurrentInstance(),o=t.ref(null),i=t.ref(r.screen.height),a=t.ref(e.container===!0?0:r.screen.width),u=t.ref({position:0,direction:"down",inflectionPoint:0}),c=t.ref(0),f=t.ref(Ce.value===!0?0:pt()),d=t.computed(()=>"q-layout q-layout--"+(e.container===!0?"containerized":"standard")),b=t.computed(()=>e.container===!1?{minHeight:r.screen.height+"px"}:null),m=t.computed(()=>f.value!==0?{[r.lang.rtl===!0?"left":"right"]:`${f.value}px`}:null),v=t.computed(()=>f.value!==0?{[r.lang.rtl===!0?"right":"left"]:0,[r.lang.rtl===!0?"left":"right"]:`-${f.value}px`,width:`calc(100% + ${f.value}px)`}:null);function g(x){if(e.container===!0||document.qScrollPrevented!==!0){const S={position:x.position.top,direction:x.direction,directionChanged:x.directionChanged,inflectionPoint:x.inflectionPoint.top,delta:x.delta.top};u.value=S,e.onScroll!==void 0&&n("scroll",S)}}function k(x){const{height:S,width:q}=x;let $=!1;i.value!==S&&($=!0,i.value=S,e.onScrollHeight!==void 0&&n("scrollHeight",S),B()),a.value!==q&&($=!0,a.value=q),$===!0&&e.onResize!==void 0&&n("resize",x)}function h({height:x}){c.value!==x&&(c.value=x,B())}function B(){if(e.container===!0){const x=i.value>c.value?pt():0;f.value!==x&&(f.value=x)}}let w=null;const C={instances:{},view:t.computed(()=>e.view),isContainer:t.computed(()=>e.container),rootRef:o,height:i,containerHeight:c,scrollbarWidth:f,totalWidth:t.computed(()=>a.value+f.value),rows:t.computed(()=>{const x=e.view.toLowerCase().split(" ");return{top:x[0].split(""),middle:x[1].split(""),bottom:x[2].split("")}}),header:t.reactive({size:0,offset:0,space:!1}),right:t.reactive({size:300,offset:0,space:!1}),footer:t.reactive({size:0,offset:0,space:!1}),left:t.reactive({size:300,offset:0,space:!1}),scroll:u,animate(){w!==null?clearTimeout(w):document.body.classList.add("q-body--layout-animate"),w=setTimeout(()=>{w=null,document.body.classList.remove("q-body--layout-animate")},155)},update(x,S,q){C[x][S]=q}};if(t.provide(kt,C),pt()>0){let x=function(){$=null,P.classList.remove("hide-scrollbar")},S=function(){if($===null){if(P.scrollHeight>r.screen.height)return;P.classList.add("hide-scrollbar")}else clearTimeout($);$=setTimeout(x,300)},q=function(I){$!==null&&I==="remove"&&(clearTimeout($),x()),window[`${I}EventListener`]("resize",S)},$=null;const P=document.body;t.watch(()=>e.container!==!0?"add":"remove",q),e.container!==!0&&q("add"),t.onUnmounted(()=>{q("remove")})}return()=>{const x=he(l.default,[t.h(Dn,{onScroll:g}),t.h(We,{onResize:k})]),S=t.h("div",{class:d.value,style:b.value,ref:e.container===!0?void 0:o,tabindex:-1},x);return e.container===!0?t.h("div",{class:"q-layout-container overflow-hidden",ref:o},[t.h(We,{onResize:h}),t.h("div",{class:"absolute-full",style:m.value},[t.h("div",{class:"scroll",style:v.value},[S])])]):S}}}),ea=t.defineComponent({name:"Layout",__name:"Layout",props:{view:{default:"HHh Lpr Fff"},layoutClass:{default:"bg-dark"},pageContainerClass:{default:"q-pa-sm"}},setup(e){return(l,n)=>(t.openBlock(),t.createBlock(Ji,{view:l.view,class:t.normalizeClass(l.layoutClass)},{default:t.withCtx(()=>[t.renderSlot(l.$slots,"header"),t.createVNode(Zi,{class:t.normalizeClass(l.pageContainerClass)},{default:t.withCtx(()=>[t.renderSlot(l.$slots,"default")]),_:3},8,["class"]),t.renderSlot(l.$slots,"footer")]),_:3},8,["view","class"]))}});function ta(e){var l,n;return{entity:e.entity,dataCy:e.dataCy,defaultLabel:e.defaultLabel,routeName:e.routeName,shouldRender:e.customShouldRender||(({store:r})=>e.storeField?!!r[e.storeField]:!0),getLabel:e.getLabel||(e.labelField?({store:r})=>{var o;return e.storeField&&((o=r[e.storeField])==null?void 0:o[e.labelField])||e.defaultLabel}:void 0),getColor:e.customGetColor||(({store:r})=>e.storeField&&r[e.storeField]?"primary":"dark"),getRouteParams:e.routeParamKey&&e.routeParamField?({store:r})=>{var o;return{[e.routeParamKey]:e.storeField&&((o=r[e.storeField])==null?void 0:o[e.routeParamField])}}:void 0,clearActions:[...((l=e.clearMethods)==null?void 0:l.map(r=>({store:o})=>{var i;return(i=o[r])==null?void 0:i.call(o)}))||[],...((n=e.navActions)==null?void 0:n.map(r=>({navStore:o})=>r(o)))||[]]}}exports.Breadcrumbs=jo;exports.CheckboxFilter=$i;exports.Layout=ea;exports.NavButton=ir;exports.SelectSearch=Li;exports.SelfeeFooter=Qi;exports.SelfeeHeader=Fi;exports.UserAvatar=Gi;exports.createBreadcrumb=ta;
|