an-quasar-utils
Version:
`npm i an-quasar-utils` or `yarn add an-quasar-utils`
2 lines • 270 kB
JavaScript
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.mx-auto{margin-left:auto;margin-right:auto}.flex{display:flex}.h-full{height:100%}.w-full{width:100%}.min-w-28{min-width:7rem}.flex-1{flex:1 1 0%}.flex-grow{flex-grow:1}.flex-col{flex-direction:column}.flex-nowrap{flex-wrap:nowrap}.\\!items-start{align-items:flex-start!important}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.\\!justify-between{justify-content:space-between!important}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-5{gap:1.25rem}.border{border-width:1px}.border-2{border-width:2px}.border-solid{border-style:solid}.p-2{padding:.5rem}.p-5{padding:1.25rem}.text-2xl{font-size:1.5rem;line-height:2rem}.font-bold{font-weight:700}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\\[\\&\\>div\\>div\\:before\\]\\:\\!border-solid>div>div:before{border-style:solid!important}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
(function(ft,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],n):(ft=typeof globalThis<"u"?globalThis:ft||self,n(ft.anUtils={},ft.Vue))})(this,function(ft,n){"use strict";const oo={xs:18,sm:24,md:32,lg:38,xl:46},Kt={size:String};function Wt(e,t=oo){return n.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function it(e,t,o,l){return Object.defineProperty(e,t,{get:o,set:l,enumerable:!0}),e}function ei(e,t){for(const o in t)it(e,o,t[o]);return e}function ye(e){return n.markRaw(n.defineComponent(e))}function lo(e){return n.markRaw(e)}const ti=(e,t)=>{const o=n.reactive(e);for(const l in e)it(t,l,()=>o[l],a=>{o[l]=a});return t};function Ae(e,t){return e!==void 0&&e()||t}function ll(e,t){if(e!==void 0){const o=e();if(o!=null)return o.slice()}return t}function pt(e,t){return e!==void 0?t.concat(e()):t}function ni(e,t){return e===void 0?t:t!==void 0?t.concat(e()):e()}function oi(e,t,o,l,a,r){t.key=l+a;const i=n.h(e,t,o);return a===!0?n.withDirectives(i,r()):i}const al="0 0 24 24",rl=e=>e,ao=e=>`ionicons ${e}`,il={"mdi-":e=>`mdi ${e}`,"icon-":rl,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":ao,"ion-ios":ao,"ion-logo":ao,"iconfont ":rl,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},sl={o_:"-outlined",r_:"-round",s_:"-sharp"},ul={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},li=new RegExp("^("+Object.keys(il).join("|")+")"),ai=new RegExp("^("+Object.keys(sl).join("|")+")"),cl=new RegExp("^("+Object.keys(ul).join("|")+")"),ri=/^[Mm]\s?[-+]?\.?\d/,ii=/^img:/,si=/^svguse:/,ui=/^ion-/,ci=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,nt=ye({name:"QIcon",props:{...Kt,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:o}}=n.getCurrentInstance(),l=Wt(e),a=n.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),r=n.computed(()=>{let i,u=e.name;if(u==="none"||!u)return{none:!0};if(o.iconMapFn!==null){const s=o.iconMapFn(u);if(s!==void 0)if(s.icon!==void 0){if(u=s.icon,u==="none"||!u)return{none:!0}}else return{cls:s.cls,content:s.content!==void 0?s.content:" "}}if(ri.test(u)===!0){const[s,f=al]=u.split("|");return{svg:!0,viewBox:f,nodes:s.split("&&").map(w=>{const[g,v,k]=w.split("@@");return n.h("path",{style:v,d:g,transform:k})})}}if(ii.test(u)===!0)return{img:!0,src:u.substring(4)};if(si.test(u)===!0){const[s,f=al]=u.split("|");return{svguse:!0,src:s.substring(7),viewBox:f}}let d=" ";const c=u.match(li);if(c!==null)i=il[c[1]](u);else if(ci.test(u)===!0)i=u;else if(ui.test(u)===!0)i=`ionicons ion-${o.platform.is.ios===!0?"ios":"md"}${u.substring(3)}`;else if(cl.test(u)===!0){i="notranslate material-symbols";const s=u.match(cl);s!==null&&(u=u.substring(6),i+=ul[s[1]]),d=u}else{i="notranslate material-icons";const s=u.match(ai);s!==null&&(u=u.substring(2),i+=sl[s[1]]),d=u}return{cls:i,content:d}});return()=>{const i={class:a.value,style:l.value,"aria-hidden":"true",role:"presentation"};return r.value.none===!0?n.h(e.tag,i,Ae(t.default)):r.value.img===!0?n.h(e.tag,i,pt(t.default,[n.h("img",{src:r.value.src})])):r.value.svg===!0?n.h(e.tag,i,pt(t.default,[n.h("svg",{viewBox:r.value.viewBox||"0 0 24 24"},r.value.nodes)])):r.value.svguse===!0?n.h(e.tag,i,pt(t.default,[n.h("svg",{viewBox:r.value.viewBox},[n.h("use",{"xlink:href":r.value.src})])])):(r.value.cls!==void 0&&(i.class+=" "+r.value.cls),n.h(e.tag,i,pt(t.default,[r.value.content])))}}}),dl={size:{type:[String,Number],default:"1em"},color:String};function fl(e){return{cSize:n.computed(()=>e.size in oo?`${oo[e.size]}px`:e.size),classes:n.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const ml=ye({name:"QSpinner",props:{...dl,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:o}=fl(e);return()=>n.h("svg",{class:o.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[n.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function ro(e,t){const o=e.style;for(const l in t)o[l]=t[l]}function di(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=n.unref(e);if(t)return t.$el||t}function hl(e,t){if(e==null||e.contains(t)===!0)return!0;for(let o=e.nextElementSibling;o!==null;o=o.nextElementSibling)if(o.contains(t))return!0;return!1}const $e={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign($e,{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 gl(){}function fi(e){return e.button===0}function Qt(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 mi(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let o=e.target;for(;o;){if(t.push(o),o.tagName==="HTML")return t.push(document),t.push(window),t;o=o.parentElement}}function ot(e){e.stopPropagation()}function Xe(e){e.cancelable!==!1&&e.preventDefault()}function Ve(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function io(e,t){if(e===void 0||t===!0&&e.__dragPrevented===!0)return;const o=t===!0?l=>{l.__dragPrevented=!0,l.addEventListener("dragstart",Xe,$e.notPassiveCapture)}:l=>{delete l.__dragPrevented,l.removeEventListener("dragstart",Xe,$e.notPassiveCapture)};e.querySelectorAll("a, img").forEach(o)}function Rt(e,t,o){const l=`__q_${t}_evt`;e[l]=e[l]!==void 0?e[l].concat(o):o,o.forEach(a=>{a[0].addEventListener(a[1],e[a[2]],$e[a[3]])})}function cn(e,t){const o=`__q_${t}_evt`;e[o]!==void 0&&(e[o].forEach(l=>{l[0].removeEventListener(l[1],e[l[2]],$e[l[3]])}),e[o]=void 0)}function so(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function St(e,t){return so(e)===!0?!1:[].concat(t).includes(e.keyCode)}function hi(e,t=250){let o=!1,l;return function(){return o===!1&&(o=!0,setTimeout(()=>{o=!1},t),l=e.apply(this,arguments)),l}}function vl(e,t,o,l){o.modifiers.stop===!0&&ot(e);const a=o.modifiers.color;let r=o.modifiers.center;r=r===!0||l===!0;const i=document.createElement("span"),u=document.createElement("span"),d=Qt(e),{left:c,top:s,width:f,height:w}=t.getBoundingClientRect(),g=Math.sqrt(f*f+w*w),v=g/2,k=`${(f-g)/2}px`,h=r?k:`${d.left-c-v}px`,M=`${(w-g)/2}px`,V=r?M:`${d.top-s-v}px`;u.className="q-ripple__inner",ro(u,{height:`${g}px`,width:`${g}px`,transform:`translate3d(${h},${V},0) scale3d(.2,.2,1)`,opacity:0}),i.className=`q-ripple${a?" text-"+a:""}`,i.setAttribute("dir","ltr"),i.appendChild(u),t.appendChild(i);const x=()=>{i.remove(),clearTimeout(p)};o.abort.push(x);let p=setTimeout(()=>{u.classList.add("q-ripple__inner--enter"),u.style.transform=`translate3d(${k},${M},0) scale3d(1,1,1)`,u.style.opacity=.2,p=setTimeout(()=>{u.classList.remove("q-ripple__inner--enter"),u.classList.add("q-ripple__inner--leave"),u.style.opacity=0,p=setTimeout(()=>{i.remove(),o.abort.splice(o.abort.indexOf(x),1)},275)},250)},50)}function pl(e,{modifiers:t,value:o,arg:l}){const a=Object.assign({},e.cfg.ripple,t,o);e.modifiers={early:a.early===!0,stop:a.stop===!0,center:a.center===!0,color:a.color||l,keyCodes:[].concat(a.keyCodes||13)}}const bl=lo({name:"ripple",beforeMount(e,t){const o=t.instance.$.appContext.config.globalProperties.$q.config||{};if(o.ripple===!1)return;const l={cfg:o,enabled:t.value!==!1,modifiers:{},abort:[],start(a){l.enabled===!0&&a.qSkipRipple!==!0&&a.type===(l.modifiers.early===!0?"pointerdown":"click")&&vl(a,e,l,a.qKeyEvent===!0)},keystart:hi(a=>{l.enabled===!0&&a.qSkipRipple!==!0&&St(a,l.modifiers.keyCodes)===!0&&a.type===`key${l.modifiers.early===!0?"down":"up"}`&&vl(a,e,l,!0)},300)};pl(l,t),e.__qripple=l,Rt(l,"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 o=e.__qripple;o!==void 0&&(o.enabled=t.value!==!1,o.enabled===!0&&Object(t.value)===t.value&&pl(o,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(o=>{o()}),cn(t,"main"),delete e._qripple)}}),yl={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},gi=Object.keys(yl),vi={align:{type:String,validator:e=>gi.includes(e)}};function pi(e){return n.computed(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${yl[t]}`})}function qn(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 uo(e){return e.appContext.config.globalProperties.$router!==void 0}function En(e){return e.isUnmounted===!0||e.isDeactivated===!0}function wl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function Sl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function bi(e,t){for(const o in t){const l=t[o],a=e[o];if(typeof l=="string"){if(l!==a)return!1}else if(Array.isArray(a)===!1||a.length!==l.length||l.some((r,i)=>r!==a[i]))return!1}return!0}function kl(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((o,l)=>o===t[l]):e.length===1&&e[0]===t}function yi(e,t){return Array.isArray(e)===!0?kl(e,t):Array.isArray(t)===!0?kl(t,e):e===t}function wi(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(yi(e[o],t[o])===!1)return!1;return!0}const xl={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Si={...xl,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Cl({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const o=n.getCurrentInstance(),{props:l,proxy:a,emit:r}=o,i=uo(o),u=n.computed(()=>l.disable!==!0&&l.href!==void 0),d=t===!0?n.computed(()=>i===!0&&l.disable!==!0&&u.value!==!0&&l.to!==void 0&&l.to!==null&&l.to!==""):n.computed(()=>i===!0&&u.value!==!0&&l.to!==void 0&&l.to!==null&&l.to!==""),c=n.computed(()=>d.value===!0?V(l.to):null),s=n.computed(()=>c.value!==null),f=n.computed(()=>u.value===!0||s.value===!0),w=n.computed(()=>l.type==="a"||f.value===!0?"a":l.tag||e||"div"),g=n.computed(()=>u.value===!0?{href:l.href,target:l.target}:s.value===!0?{href:c.value.href,target:l.target}:{}),v=n.computed(()=>{if(s.value===!1)return-1;const{matched:b}=c.value,{length:L}=b,O=b[L-1];if(O===void 0)return-1;const z=a.$route.matched;if(z.length===0)return-1;const D=z.findIndex(Sl.bind(null,O));if(D!==-1)return D;const A=wl(b[L-2]);return L>1&&wl(O)===A&&z[z.length-1].path!==A?z.findIndex(Sl.bind(null,b[L-2])):D}),k=n.computed(()=>s.value===!0&&v.value!==-1&&bi(a.$route.params,c.value.params)),h=n.computed(()=>k.value===!0&&v.value===a.$route.matched.length-1&&wi(a.$route.params,c.value.params)),M=n.computed(()=>s.value===!0?h.value===!0?` ${l.exactActiveClass} ${l.activeClass}`:l.exact===!0?"":k.value===!0?` ${l.activeClass}`:"":"");function V(b){try{return a.$router.resolve(b)}catch{}return null}function x(b,{returnRouterError:L,to:O=l.to,replace:z=l.replace}={}){if(l.disable===!0)return b.preventDefault(),Promise.resolve(!1);if(b.metaKey||b.altKey||b.ctrlKey||b.shiftKey||b.button!==void 0&&b.button!==0||l.target==="_blank")return Promise.resolve(!1);b.preventDefault();const D=a.$router[z===!0?"replace":"push"](O);return L===!0?D:D.then(()=>{}).catch(()=>{})}function p(b){if(s.value===!0){const L=O=>x(b,O);r("click",b,L),b.defaultPrevented!==!0&&L()}else r("click",b)}return{hasRouterLink:s,hasHrefLink:u,hasLink:f,linkTag:w,resolvedLink:c,linkIsActive:k,linkIsExactActive:h,linkClass:M,linkAttrs:g,getLink:V,navigateToRouterLink:x,navigateOnClick:p}}const Mn={none:0,xs:4,sm:8,md:16,lg:24,xl:32},ki={xs:8,sm:10,md:14,lg:20,xl:24},xi=["button","submit","reset"],Ci=/[^\s]\/[^\s]/,_l=["flat","outline","push","unelevated"];function ql(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}const _i={...{...Kt,...xl,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,..._l.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:{...vi.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function qi(e){const t=Wt(e,ki),o=pi(e),{hasRouterLink:l,hasLink:a,linkTag:r,linkAttrs:i,navigateOnClick:u}=Cl({fallbackTag:"button"}),d=n.computed(()=>{const h=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},h,{padding:e.padding.split(/\s+/).map(M=>M in Mn?Mn[M]+"px":M).join(" "),minWidth:"0",minHeight:"0"}):h}),c=n.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),s=n.computed(()=>e.disable!==!0&&e.loading!==!0),f=n.computed(()=>s.value===!0?e.tabindex||0:-1),w=n.computed(()=>ql(e,"standard")),g=n.computed(()=>{const h={tabindex:f.value};return a.value===!0?Object.assign(h,i.value):xi.includes(e.type)===!0&&(h.type=e.type),r.value==="a"?(e.disable===!0?h["aria-disabled"]="true":h.href===void 0&&(h.role="button"),l.value!==!0&&Ci.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}),v=n.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 M=e.round===!0?"round":`rectangle${c.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${w.value} q-btn--${M}`+(h!==void 0?" "+h:"")+(s.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=n.computed(()=>o.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:v,style:d,innerClasses:k,attributes:g,hasLink:a,linkTag:r,navigateOnClick:u,isActionable:s}}const{passiveCapture:st}=$e;let Xt=null,Jt=null,Zt=null;const xe=ye({name:"QBtn",props:{..._i,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:o}){const{proxy:l}=n.getCurrentInstance(),{classes:a,style:r,innerClasses:i,attributes:u,hasLink:d,linkTag:c,navigateOnClick:s,isActionable:f}=qi(e),w=n.ref(null),g=n.ref(null);let v=null,k,h=null;const M=n.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),V=n.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:d.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),x=n.computed(()=>({center:e.round})),p=n.computed(()=>{const E=Math.max(0,Math.min(100,e.percentage));return E>0?{transition:"transform 0.6s",transform:`translateX(${E-100}%)`}:{}}),b=n.computed(()=>{if(e.loading===!0)return{onMousedown:F,onTouchstart:F,onClick:F,onKeydown:F,onKeyup:F};if(f.value===!0){const E={onClick:O,onKeydown:z,onMousedown:A};if(l.$q.platform.has.touch===!0){const Y=e.onTouchstart!==void 0?"":"Passive";E[`onTouchstart${Y}`]=D}return E}return{onClick:Ve}}),L=n.computed(()=>({ref:w,class:"q-btn q-btn-item non-selectable no-outline "+a.value,style:r.value,...u.value,...b.value}));function O(E){if(w.value!==null){if(E!==void 0){if(E.defaultPrevented===!0)return;const Y=document.activeElement;if(e.type==="submit"&&Y!==document.body&&w.value.contains(Y)===!1&&Y.contains(w.value)===!1){w.value.focus();const W=()=>{document.removeEventListener("keydown",Ve,!0),document.removeEventListener("keyup",W,st),w.value!==null&&w.value.removeEventListener("blur",W,st)};document.addEventListener("keydown",Ve,!0),document.addEventListener("keyup",W,st),w.value.addEventListener("blur",W,st)}}s(E)}}function z(E){w.value!==null&&(o("keydown",E),St(E,[13,32])===!0&&Jt!==w.value&&(Jt!==null&&q(),E.defaultPrevented!==!0&&(w.value.focus(),Jt=w.value,w.value.classList.add("q-btn--active"),document.addEventListener("keyup",N,!0),w.value.addEventListener("blur",N,st)),Ve(E)))}function D(E){w.value!==null&&(o("touchstart",E),E.defaultPrevented!==!0&&(Xt!==w.value&&(Xt!==null&&q(),Xt=w.value,v=E.target,v.addEventListener("touchcancel",N,st),v.addEventListener("touchend",N,st)),k=!0,h!==null&&clearTimeout(h),h=setTimeout(()=>{h=null,k=!1},200)))}function A(E){w.value!==null&&(E.qSkipRipple=k===!0,o("mousedown",E),E.defaultPrevented!==!0&&Zt!==w.value&&(Zt!==null&&q(),Zt=w.value,w.value.classList.add("q-btn--active"),document.addEventListener("mouseup",N,st)))}function N(E){if(w.value!==null&&!(E!==void 0&&E.type==="blur"&&document.activeElement===w.value)){if(E!==void 0&&E.type==="keyup"){if(Jt===w.value&&St(E,[13,32])===!0){const Y=new MouseEvent("click",E);Y.qKeyEvent=!0,E.defaultPrevented===!0&&Xe(Y),E.cancelBubble===!0&&ot(Y),w.value.dispatchEvent(Y),Ve(E),E.qKeyEvent=!0}o("keyup",E)}q()}}function q(E){const Y=g.value;E!==!0&&(Xt===w.value||Zt===w.value)&&Y!==null&&Y!==document.activeElement&&(Y.setAttribute("tabindex",-1),Y.focus()),Xt===w.value&&(v!==null&&(v.removeEventListener("touchcancel",N,st),v.removeEventListener("touchend",N,st)),Xt=v=null),Zt===w.value&&(document.removeEventListener("mouseup",N,st),Zt=null),Jt===w.value&&(document.removeEventListener("keyup",N,!0),w.value!==null&&w.value.removeEventListener("blur",N,st),Jt=null),w.value!==null&&w.value.classList.remove("q-btn--active")}function F(E){Ve(E),E.qSkipRipple=!0}return n.onBeforeUnmount(()=>{q(!0)}),Object.assign(l,{click:E=>{f.value===!0&&O(E)}}),()=>{let E=[];e.icon!==void 0&&E.push(n.h(nt,{name:e.icon,left:e.stack!==!0&&M.value===!0,role:"img"})),M.value===!0&&E.push(n.h("span",{class:"block"},[e.label])),E=pt(t.default,E),e.iconRight!==void 0&&e.round===!1&&E.push(n.h(nt,{name:e.iconRight,right:e.stack!==!0&&M.value===!0,role:"img"}));const Y=[n.h("span",{class:"q-focus-helper",ref:g})];return e.loading===!0&&e.percentage!==void 0&&Y.push(n.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[n.h("span",{class:"q-btn__progress-indicator fit block",style:p.value})])),Y.push(n.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+i.value},E)),e.loading!==null&&Y.push(n.h(n.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[n.h("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[n.h(ml)])]:null)),n.withDirectives(n.h(c.value,L.value,Y),[[bl,V.value,void 0,x.value]])}}}),Gt=ye({name:"QCardSection",props:{tag:{type:String,default:"div"},horizontal:Boolean},setup(e,{slots:t}){const o=n.computed(()=>`q-card__section q-card__section--${e.horizontal===!0?"horiz row no-wrap":"vert"}`);return()=>n.h(e.tag,{class:o.value},Ae(t.default))}}),Ye={dark:{type:Boolean,default:null}};function Ke(e,t){return n.computed(()=>e.dark===null?t.dark.isActive:e.dark)}const Ei={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},co={xs:2,sm:4,md:8,lg:16,xl:24},fo=ye({name:"QSeparator",props:{...Ye,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const t=n.getCurrentInstance(),o=Ke(e,t.proxy.$q),l=n.computed(()=>e.vertical===!0?"vertical":"horizontal"),a=n.computed(()=>` q-separator--${l.value}`),r=n.computed(()=>e.inset!==!1?`${a.value}-${Ei[e.inset]}`:""),i=n.computed(()=>`q-separator${a.value}${r.value}`+(e.color!==void 0?` bg-${e.color}`:"")+(o.value===!0?" q-separator--dark":"")),u=n.computed(()=>{const d={};if(e.size!==void 0&&(d[e.vertical===!0?"width":"height"]=e.size),e.spaced!==!1){const c=e.spaced===!0?`${co.md}px`:e.spaced in co?`${co[e.spaced]}px`:e.spaced,s=e.vertical===!0?["Left","Right"]:["Top","Bottom"];d[`margin${s[0]}`]=d[`margin${s[1]}`]=c}return d});return()=>n.h("hr",{class:i.value,style:u.value,"aria-orientation":l.value})}}),dn=n.ref(!1);let mo;function Mi(e,t){const o=/(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:o[5]||o[3]||o[1]||"",version:o[4]||o[2]||"0",platform:t[0]||""}}function Bi(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 El="ontouchstart"in window||window.navigator.maxTouchPoints>0;function Vi(e){const t=e.toLowerCase(),o=Bi(t),l=Mi(t,o),a={};l.browser&&(a[l.browser]=!0,a.version=l.version,a.versionNumber=parseInt(l.version,10)),l.platform&&(a[l.platform]=!0);const r=a.android||a.ios||a.bb||a.blackberry||a.ipad||a.iphone||a.ipod||a.kindle||a.playbook||a.silk||a["windows phone"];if(r===!0||t.indexOf("mobile")!==-1?a.mobile=!0:a.desktop=!0,a["windows phone"]&&(a.winphone=!0,delete a["windows phone"]),a.edga||a.edgios||a.edg?(a.edge=!0,l.browser="edge"):a.crios?(a.chrome=!0,l.browser="chrome"):a.fxios&&(a.firefox=!0,l.browser="firefox"),(a.ipod||a.ipad||a.iphone)&&(a.ios=!0),a.vivaldi&&(l.browser="vivaldi",a.vivaldi=!0),(a.chrome||a.opr||a.safari||a.vivaldi||a.mobile===!0&&a.ios!==!0&&r!==!0)&&(a.webkit=!0),a.opr&&(l.browser="opera",a.opera=!0),a.safari&&(a.blackberry||a.bb?(l.browser="blackberry",a.blackberry=!0):a.playbook?(l.browser="playbook",a.playbook=!0):a.android?(l.browser="android",a.android=!0):a.kindle?(l.browser="kindle",a.kindle=!0):a.silk&&(l.browser="silk",a.silk=!0)),a.name=l.browser,a.platform=l.platform,t.indexOf("electron")!==-1)a.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)a.bex=!0;else{if(window.Capacitor!==void 0?(a.capacitor=!0,a.nativeMobile=!0,a.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(a.cordova=!0,a.nativeMobile=!0,a.nativeMobileWrapper="cordova"),dn.value===!0&&(mo={is:{...a}}),El===!0&&a.mac===!0&&(a.desktop===!0&&a.safari===!0||a.nativeMobile===!0&&a.android!==!0&&a.ios!==!0&&a.ipad!==!0)){delete a.mac,delete a.desktop;const i=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(a,{mobile:!0,ios:!0,platform:i,[i]:!0})}a.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete a.desktop,a.mobile=!0)}return a}const Ml=navigator.userAgent||navigator.vendor||window.opera,Pi={has:{touch:!1,webStorage:!1},within:{iframe:!1}},je={userAgent:Ml,is:Vi(Ml),has:{touch:El},within:{iframe:window.self!==window.top}},ho={install(e){const{$q:t}=e;dn.value===!0?(e.onSSRHydrated.push(()=>{Object.assign(t.platform,je),dn.value=!1}),t.platform=n.reactive(this)):t.platform=this}};{let e;it(je.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(ho,je),dn.value===!0&&(Object.assign(ho,mo,Pi),mo=null)}function Ti(e,t,o){function l(){}return n.onBeforeUnmount(()=>{e.value===!0&&void 0}),{removeFromHistory:l,addToHistory(){}}}function Bl(){let e=null;const t=n.getCurrentInstance();function o(){e!==null&&(clearTimeout(e),e=null)}return n.onDeactivated(o),n.onBeforeUnmount(o),{removeTimeout:o,registerTimeout(l,a){o(),En(t)===!1&&(e=setTimeout(()=>{e=null,l()},a))}}}function Vl(){let e;const t=n.getCurrentInstance();function o(){e=void 0}return n.onDeactivated(o),n.onBeforeUnmount(o),{removeTick:o,registerTick(l){e=l,n.nextTick(()=>{e===l&&(En(t)===!1&&e(),e=void 0)})}}}const Pl={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Tl=["beforeShow","show","beforeHide","hide"];function Rl({showing:e,canShow:t,hideOnRouteChange:o,handleShow:l,handleHide:a,processOnMount:r}){const i=n.getCurrentInstance(),{props:u,emit:d,proxy:c}=i;let s;function f(V){e.value===!0?v(V):w(V)}function w(V){if(u.disable===!0||V!==void 0&&V.qAnchorHandled===!0||t!==void 0&&t(V)!==!0)return;const x=u["onUpdate:modelValue"]!==void 0;x===!0&&(d("update:modelValue",!0),s=V,n.nextTick(()=>{s===V&&(s=void 0)})),(u.modelValue===null||x===!1)&&g(V)}function g(V){e.value!==!0&&(e.value=!0,d("beforeShow",V),l!==void 0?l(V):d("show",V))}function v(V){if(u.disable===!0)return;const x=u["onUpdate:modelValue"]!==void 0;x===!0&&(d("update:modelValue",!1),s=V,n.nextTick(()=>{s===V&&(s=void 0)})),(u.modelValue===null||x===!1)&&k(V)}function k(V){e.value!==!1&&(e.value=!1,d("beforeHide",V),a!==void 0?a(V):d("hide",V))}function h(V){u.disable===!0&&V===!0?u["onUpdate:modelValue"]!==void 0&&d("update:modelValue",!1):V===!0!==e.value&&(V===!0?g:k)(s)}n.watch(()=>u.modelValue,h),o!==void 0&&uo(i)===!0&&n.watch(()=>c.$route.fullPath,()=>{o.value===!0&&e.value===!0&&v()}),r===!0&&n.onMounted(()=>{h(u.modelValue)});const M={show:w,hide:v,toggle:f};return Object.assign(c,M),M}const Ol={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Dl(e,t=()=>{},o=()=>{}){return{transitionProps:n.computed(()=>{const l=`q-transition--${e.transitionShow||t()}`,a=`q-transition--${e.transitionHide||o()}`;return{appear:!0,enterFromClass:`${l}-enter-from`,enterActiveClass:`${l}-enter-active`,enterToClass:`${l}-enter-to`,leaveFromClass:`${a}-leave-from`,leaveActiveClass:`${a}-leave-active`,leaveToClass:`${a}-leave-to`}}),transitionStyle:n.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}let Ot=[],fn=[];function Al(e){fn=fn.filter(t=>t!==e)}function Ri(e){Al(e),fn.push(e)}function Ll(e){Al(e),fn.length===0&&Ot.length!==0&&(Ot[Ot.length-1](),Ot=[])}function mn(e){fn.length===0?e():Ot.push(e)}function Oi(e){Ot=Ot.filter(t=>t!==e)}const Fl={};let Di=1,Ai=document.body;function Li(e,t){const o=document.createElement("div");if(o.id=t!==void 0?`q-portal--${t}--${Di++}`:e,Fl.globalNodes!==void 0){const l=Fl.globalNodes.class;l!==void 0&&(o.className=l)}return Ai.appendChild(o),o}function Fi(e){e.remove()}const en=[];function Ni(e){return en.find(t=>t.contentEl!==null&&t.contentEl.contains(e))}function Nl(e,t){do{if(e.$options.name==="QMenu"){if(e.hide(t),e.$props.separateClosePopup===!0)return qn(e)}else if(e.__qPortal===!0){const o=qn(e);return o!==void 0&&o.$options.name==="QPopupProxy"?(e.hide(t),o):e}e=qn(e)}while(e!=null)}function $i(e,t,o){for(;o!==0&&e!==void 0&&e!==null;){if(e.__qPortal===!0){if(o--,e.$options.name==="QMenu"){e=Nl(e,t);continue}e.hide(t)}e=qn(e)}}const Ii=ye({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function Hi(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 $l(e,t,o,l){const a=n.ref(!1),r=n.ref(!1);let i=null;const u={},d=l==="dialog"&&Hi(e);function c(f){if(f===!0){Ll(u),r.value=!0;return}r.value=!1,a.value===!1&&(d===!1&&i===null&&(i=Li(!1,l)),a.value=!0,en.push(e.proxy),Ri(u))}function s(f){if(r.value=!1,f!==!0)return;Ll(u),a.value=!1;const w=en.indexOf(e.proxy);w!==-1&&en.splice(w,1),i!==null&&(Fi(i),i=null)}return n.onUnmounted(()=>{s(!0)}),e.proxy.__qPortal=!0,it(e.proxy,"contentEl",()=>t.value),{showPortal:c,hidePortal:s,portalIsActive:a,portalIsAccessible:r,renderPortal:()=>d===!0?o():a.value===!0?[n.h(n.Teleport,{to:i},n.h(Ii,o))]:void 0}}const Il=[Element,String],ji=[null,document,document.body,document.scrollingElement,document.documentElement];function Hl(e,t){let o=di(t);if(o===void 0){if(e==null)return window;o=e.closest(".scroll,.scroll-y,.overflow-auto")}return ji.includes(o)?window:o}function zi(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function Ui(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let Bn;function Yi(){if(Bn!==void 0)return Bn;const e=document.createElement("p"),t=document.createElement("div");ro(e,{width:"100%",height:"200px"}),ro(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const o=e.offsetWidth;t.style.overflow="scroll";let l=e.offsetWidth;return o===l&&(l=t.clientWidth),t.remove(),Bn=o-l,Bn}function Ki(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"]))}let hn=0,go,vo,gn,po=!1,jl,zl,Ul,Dt=null;function Wi(e){Qi(e)&&Ve(e)}function Qi(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=mi(e),o=e.shiftKey&&!e.deltaX,l=!o&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),a=o||l?e.deltaY:e.deltaX;for(let r=0;r<t.length;r++){const i=t[r];if(Ki(i,l))return l?a<0&&i.scrollTop===0?!0:a>0&&i.scrollTop+i.clientHeight===i.scrollHeight:a<0&&i.scrollLeft===0?!0:a>0&&i.scrollLeft+i.clientWidth===i.scrollWidth}return!0}function Yl(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Vn(e){po!==!0&&(po=!0,requestAnimationFrame(()=>{po=!1;const{height:t}=e.target,{clientHeight:o,scrollTop:l}=document.scrollingElement;(gn===void 0||t!==window.innerHeight)&&(gn=o-t,document.scrollingElement.scrollTop=l),l>gn&&(document.scrollingElement.scrollTop-=Math.ceil((l-gn)/8))}))}function Kl(e){const t=document.body,o=window.visualViewport!==void 0;if(e==="add"){const{overflowY:l,overflowX:a}=window.getComputedStyle(t);go=Ui(window),vo=zi(window),jl=t.style.left,zl=t.style.top,Ul=window.location.href,t.style.left=`-${go}px`,t.style.top=`-${vo}px`,a!=="hidden"&&(a==="scroll"||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),l!=="hidden"&&(l==="scroll"||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,je.is.ios===!0&&(o===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",Vn,$e.passiveCapture),window.visualViewport.addEventListener("scroll",Vn,$e.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Yl,$e.passiveCapture))}je.is.desktop===!0&&je.is.mac===!0&&window[`${e}EventListener`]("wheel",Wi,$e.notPassive),e==="remove"&&(je.is.ios===!0&&(o===!0?(window.visualViewport.removeEventListener("resize",Vn,$e.passiveCapture),window.visualViewport.removeEventListener("scroll",Vn,$e.passiveCapture)):window.removeEventListener("scroll",Yl,$e.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=jl,t.style.top=zl,window.location.href===Ul&&window.scrollTo(go,vo),gn=void 0)}function Xi(e){let t="add";if(e===!0){if(hn++,Dt!==null){clearTimeout(Dt),Dt=null;return}if(hn>1)return}else{if(hn===0||(hn--,hn>0))return;if(t="remove",je.is.ios===!0&&je.is.nativeMobile===!0){Dt!==null&&clearTimeout(Dt),Dt=setTimeout(()=>{Kl(t),Dt=null},100);return}}Kl(t)}function Ji(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t===!0)&&(e=t,Xi(t))}}}const At=[];let tn;function Zi(e){tn=e.keyCode===27}function Gi(){tn===!0&&(tn=!1)}function es(e){tn===!0&&(tn=!1,St(e,27)===!0&&At[At.length-1](e))}function Wl(e){window[e]("keydown",Zi),window[e]("blur",Gi),window[e]("keyup",es),tn=!1}function Ql(e){je.is.desktop===!0&&(At.push(e),At.length===1&&Wl("addEventListener"))}function Pn(e){const t=At.indexOf(e);t!==-1&&(At.splice(t,1),At.length===0&&Wl("removeEventListener"))}const Lt=[];function Xl(e){Lt[Lt.length-1](e)}function Jl(e){je.is.desktop===!0&&(Lt.push(e),Lt.length===1&&document.body.addEventListener("focusin",Xl))}function bo(e){const t=Lt.indexOf(e);t!==-1&&(Lt.splice(t,1),Lt.length===0&&document.body.removeEventListener("focusin",Xl))}let Tn=0;const ts={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"},Zl={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},Rn=ye({name:"QDialog",inheritAttrs:!1,props:{...Pl,...Ol,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:[...Tl,"shake","click","escapeKey"],setup(e,{slots:t,emit:o,attrs:l}){const a=n.getCurrentInstance(),r=n.ref(null),i=n.ref(!1),u=n.ref(!1);let d=null,c=null,s,f;const w=n.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:g}=Ji(),{registerTimeout:v}=Bl(),{registerTick:k,removeTick:h}=Vl(),{transitionProps:M,transitionStyle:V}=Dl(e,()=>Zl[e.position][0],()=>Zl[e.position][1]),x=n.computed(()=>V.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:p,hidePortal:b,portalIsAccessible:L,renderPortal:O}=$l(a,r,ce,"dialog"),{hide:z}=Rl({showing:i,hideOnRouteChange:w,handleShow:Y,handleHide:W,processOnMount:!0}),{addToHistory:D,removeFromHistory:A}=Ti(i),N=n.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${ts[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":"")),q=n.computed(()=>i.value===!0&&e.seamless!==!0),F=n.computed(()=>e.autoClose===!0?{onClick:C}:{}),E=n.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${q.value===!0?"modal":"seamless"}`,l.class]);n.watch(()=>e.maximized,I=>{i.value===!0&&_(I)}),n.watch(q,I=>{g(I),I===!0?(Jl(ae),Ql(X)):(bo(ae),Pn(X))});function Y(I){D(),c=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,_(e.maximized),p(),u.value=!0,e.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),k(ee)):h(),v(()=>{if(a.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:Q,bottom:ge}=document.activeElement.getBoundingClientRect(),{innerHeight:j}=window,Se=window.visualViewport!==void 0?window.visualViewport.height:j;Q>0&&ge>Se/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-Se,ge>=j?1/0:Math.ceil(document.scrollingElement.scrollTop+ge-Se/2))),document.activeElement.scrollIntoView()}f=!0,r.value.click(),f=!1}p(!0),u.value=!1,o("show",I)},e.transitionDuration)}function W(I){h(),A(),se(!0),u.value=!0,b(),c!==null&&(((I&&I.type.indexOf("key")===0?c.closest('[tabindex]:not([tabindex^="-"])'):void 0)||c).focus(),c=null),v(()=>{b(!0),u.value=!1,o("hide",I)},e.transitionDuration)}function ee(I){mn(()=>{let Q=r.value;if(Q!==null){if(I!==void 0){const ge=Q.querySelector(I);if(ge!==null){ge.focus({preventScroll:!0});return}}Q.contains(document.activeElement)!==!0&&(Q=Q.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||Q.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||Q.querySelector("[autofocus], [data-autofocus]")||Q,Q.focus({preventScroll:!0}))}})}function H(I){I&&typeof I.focus=="function"?I.focus({preventScroll:!0}):ee(),o("shake");const Q=r.value;Q!==null&&(Q.classList.remove("q-animate--scale"),Q.classList.add("q-animate--scale"),d!==null&&clearTimeout(d),d=setTimeout(()=>{d=null,r.value!==null&&(Q.classList.remove("q-animate--scale"),ee())},170))}function X(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&H():(o("escapeKey"),z()))}function se(I){d!==null&&(clearTimeout(d),d=null),(I===!0||i.value===!0)&&(_(!1),e.seamless!==!0&&(g(!1),bo(ae),Pn(X))),I!==!0&&(c=null)}function _(I){I===!0?s!==!0&&(Tn<1&&document.body.classList.add("q-body--dialog"),Tn++,s=!0):s===!0&&(Tn<2&&document.body.classList.remove("q-body--dialog"),Tn--,s=!1)}function C(I){f!==!0&&(z(I),o("click",I))}function J(I){e.persistent!==!0&&e.noBackdropDismiss!==!0?z(I):e.noShake!==!0&&H()}function ae(I){e.allowFocusOutside!==!0&&L.value===!0&&hl(r.value,I.target)!==!0&&ee('[tabindex]:not([tabindex="-1"])')}Object.assign(a.proxy,{focus:ee,shake:H,__updateRefocusTarget(I){c=I||null}}),n.onBeforeUnmount(se);function ce(){return n.h("div",{role:"dialog","aria-modal":q.value===!0?"true":"false",...l,class:E.value},[n.h(n.Transition,{name:"q-transition--fade",appear:!0},()=>q.value===!0?n.h("div",{class:"q-dialog__backdrop fixed-full",style:x.value,"aria-hidden":"true",tabindex:-1,onClick:J}):null),n.h(n.Transition,M.value,()=>i.value===!0?n.h("div",{ref:r,class:N.value,style:V.value,tabindex:-1,...F.value},Ae(t.default)):null)])}return O}});function Gl(e){if(e===!1)return 0;if(e===!0||e===void 0)return 1;const t=parseInt(e,10);return isNaN(t)?0:t}const Ft=lo({name:"close-popup",beforeMount(e,{value:t}){const o={depth:Gl(t),handler(l){o.depth!==0&&setTimeout(()=>{const a=Ni(e);a!==void 0&&$i(a,l,o.depth)})},handlerKey(l){St(l,13)===!0&&o.handler(l)}};e.__qclosepopup=o,e.addEventListener("click",o.handler),e.addEventListener("keyup",o.handlerKey)},updated(e,{value:t,oldValue:o}){t!==o&&(e.__qclosepopup.depth=Gl(t))},beforeUnmount(e){const t=e.__qclosepopup;e.removeEventListener("click",t.handler),e.removeEventListener("keyup",t.handlerKey),delete e.__qclosepopup}}),ea=ye({name:"QCard",props:{...Ye,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(e,{slots:t}){const{proxy:{$q:o}}=n.getCurrentInstance(),l=Ke(e,o),a=n.computed(()=>"q-card"+(l.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()=>n.h(e.tag,{class:a.value},Ae(t.default))}}),ns={class:"font-bold text-2xl"},os={class:"flex flex-col"},ls=n.defineComponent({__name:"AnModal",props:{persistent:{type:Boolean,default:!1},hideOkBtn:{type:Boolean,default:!1},hideActions:{type:Boolean,default:!1},okLabel:{type:String,default:"Ok"},cancelLabel:{type:String,default:"Cancel"},title:{type:String,default:"Title"},btnsColor:{type:Object,default:"primary"},modalCardProps:{type:Object,required:!1}},emits:["okClick","hide"],setup(e,{expose:t,emit:o}){const l=o,a=e,r=n.reactive({open:!1}),i=()=>{r.open=!0},u=()=>{r.open=!1,l("hide")};return t({show:i,hide:u}),(d,c)=>(n.openBlock(),n.createBlock(Rn,{modelValue:r.open,"onUpdate:modelValue":c[1]||(c[1]=s=>r.open=s),persistent:a.persistent,onHide:u},{default:n.withCtx(()=>{var s;return[n.createVNode(n.unref(ea),n.mergeProps(a.modalCardProps,{class:`container ${((s=a.modalCardProps)==null?void 0:s.class)||""}`}),{default:n.withCtx(()=>[n.createVNode(Gt,{class:"flex items-center justify-between"},{default:n.withCtx(()=>[n.createElementVNode("h2",ns,n.toDisplayString(a.title),1),n.renderSlot(d.$slots,"close-icon-btn",{color:a.btnsColor,disable:a.persistent},()=>[n.withDirectives(n.createVNode(xe,{icon:"close",color:a.btnsColor,round:"",flat:"",disable:a.persistent},null,8,["color","disable"]),[[Ft]])])]),_:3}),n.createElementVNode("div",os,[n.createVNode(Gt,{class:"flex flex-col gap-2"},{default:n.withCtx(()=>[n.renderSlot(d.$slots,"content")]),_:3}),e.hideActions?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(fo,{key:0})),e.hideActions?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(Gt,{key:1,class:"flex items-center justify-end gap-2"},{default:n.withCtx(()=>[n.renderSlot(d.$slots,"cancel-btn",{color:a.btnsColor,disable:a.persistent,label:a.cancelLabel},()=>[n.withDirectives(n.createVNode(xe,{color:a.btnsColor,type:"button",unelevated:"",flat:"",class:"border border-solid",disable:a.persistent,label:a.cancelLabel,"no-caps":""},null,8,["color","disable","label"]),[[Ft]])]),n.renderSlot(d.$slots,"ok-btn",{click:()=>l("okClick"),color:a.btnsColor,label:a.cancelLabel},()=>[e.hideOkBtn?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(xe,{key:0,onClick:c[0]||(c[0]=f=>l("okClick")),color:a.btnsColor,type:"button",unelevated:"",label:a.okLabel,"no-caps":""},null,8,["color","label"]))])]),_:3}))])]),_:3},16,["class"])]}),_:3},8,["modelValue","persistent"]))}}),ta="_q_fo_",as=ye({name:"QForm",props:{autofocus:Boolean,noErrorFocus:Boolean,noResetFocus:Boolean,greedy:Boolean,onSubmit:Function},emits:["reset","validationSuccess","validationError"],setup(e,{slots:t,emit:o}){const l=n.getCurrentInstance(),a=n.ref(null);let r=0;const i=[];function u(g){const v=typeof g=="boolean"?g:e.noErrorFocus!==!0,k=++r,h=(x,p)=>{o(`validation${x===!0?"Success":"Error"}`,p)},M=x=>{const p=x.validate();return typeof p.then=="function"?p.then(b=>({valid:b,comp:x}),b=>({valid:!1,comp:x,err:b})):Promise.resolve({valid:p,comp:x})};return(e.greedy===!0?Promise.all(i.map(M)).then(x=>x.filter(p=>p.valid!==!0)):i.reduce((x,p)=>x.then(()=>M(p).then(b=>{if(b.valid===!1)return Promise.reject(b)})),Promise.resolve()).catch(x=>[x])).then(x=>{if(x===void 0||x.length===0)return k===r&&h(!0),!0;if(k===r){const{comp:p,err:b}=x[0];if(b!==void 0&&console.error(b),h(!1,p),v===!0){const L=x.find(({comp:O})=>typeof O.focus=="function"&&En(O.$)===!1);L!==void 0&&L.comp.focus()}}return!1})}function d(){r++,i.forEach(g=>{typeof g.resetValidation=="function"&&g.resetValidation()})}function c(g){g!==void 0&&Ve(g);const v=r+1;u().then(k=>{v===r&&k===!0&&(e.onSubmit!==void 0?o("submit",g):g!==void 0&&g.target!==void 0&&typeof g.target.submit=="function"&&g.target.submit())})}function s(g){g!==void 0&&Ve(g),o("reset"),n.nextTick(()=>{d(),e.autofocus===!0&&e.noResetFocus!==!0&&f()})}function f(){mn(()=>{if(a.value===null)return;const g=a.value.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||a.value.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||a.value.querySelector("[autofocus], [data-autofocus]")||Array.prototype.find.call(a.value.querySelectorAll("[tabindex]"),v=>v.tabIndex!==-1);g!=null&&g.focus({preventScroll:!0})})}n.provide(ta,{bindComp