From 6780c4514ef9272e4bfcf617e86b5bc032208f2a Mon Sep 17 00:00:00 2001 From: tinohager Date: Sun, 21 Jul 2024 20:41:53 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20mailtowe?= =?UTF-8?q?r-app/email-header-analyzer@69a37fb1a0334f87940ba4d4107cd8bd89a?= =?UTF-8?q?a93fd=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{ErrorNotFound.3ed2da96.js => ErrorNotFound.3b9d054f.js} | 2 +- assets/{IndexPage.5416eac2.js => IndexPage.050b0715.js} | 4 ++-- assets/IndexPage.823ac002.css | 1 + assets/IndexPage.ad494e9e.css | 1 - assets/{MainLayout.d66de0a3.js => MainLayout.ccd918fa.js} | 2 +- assets/{QBtn.92b86c16.js => QBtn.c5c37d96.js} | 2 +- assets/{index.5c070da9.js => index.736665e3.js} | 2 +- assets/{scroll.736871b0.js => scroll.f9bb6be7.js} | 2 +- index.html | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) rename assets/{ErrorNotFound.3ed2da96.js => ErrorNotFound.3b9d054f.js} (80%) rename assets/{IndexPage.5416eac2.js => IndexPage.050b0715.js} (73%) create mode 100644 assets/IndexPage.823ac002.css delete mode 100644 assets/IndexPage.ad494e9e.css rename assets/{MainLayout.d66de0a3.js => MainLayout.ccd918fa.js} (98%) rename assets/{QBtn.92b86c16.js => QBtn.c5c37d96.js} (99%) rename assets/{index.5c070da9.js => index.736665e3.js} (99%) rename assets/{scroll.736871b0.js => scroll.f9bb6be7.js} (95%) diff --git a/assets/ErrorNotFound.3ed2da96.js b/assets/ErrorNotFound.3b9d054f.js similarity index 80% rename from assets/ErrorNotFound.3ed2da96.js rename to assets/ErrorNotFound.3b9d054f.js index 83b6244..856a223 100644 --- a/assets/ErrorNotFound.3ed2da96.js +++ b/assets/ErrorNotFound.3b9d054f.js @@ -1 +1 @@ -import{Q as s}from"./QBtn.92b86c16.js";import{_ as l,s as r,t as c,u as n,v as t,x as o,y as a}from"./index.5c070da9.js";const u={};function f(_,d){const e=r("authenticationResultsHeaders");return c(),n(e,{class:"fullscreen bg-blue text-white text-center q-pa-md flex flex-center"},{default:t(()=>[o(e,null,{default:t(()=>[o(e,{style:{"font-size":"30vh"}},{default:t(()=>[a(" 404 ")]),_:1}),o(e,{class:"text-h2",style:{opacity:".4"}},{default:t(()=>[a(" Oops. Nothing here... ")]),_:1}),o(s,{class:"q-mt-xl",color:"white","text-color":"blue",unelevated:"",to:"/",label:"Go Home","no-caps":""})]),_:1})]),_:1})}var p=l(u,[["render",f]]);export{p as default}; +import{Q as s}from"./QBtn.c5c37d96.js";import{_ as l,s as r,t as c,u as n,v as t,x as o,y as a}from"./index.736665e3.js";const u={};function f(_,d){const e=r("authenticationResultsHeaders");return c(),n(e,{class:"fullscreen bg-blue text-white text-center q-pa-md flex flex-center"},{default:t(()=>[o(e,null,{default:t(()=>[o(e,{style:{"font-size":"30vh"}},{default:t(()=>[a(" 404 ")]),_:1}),o(e,{class:"text-h2",style:{opacity:".4"}},{default:t(()=>[a(" Oops. Nothing here... ")]),_:1}),o(s,{class:"q-mt-xl",color:"white","text-color":"blue",unelevated:"",to:"/",label:"Go Home","no-caps":""})]),_:1})]),_:1})}var p=l(u,[["render",f]]);export{p as default}; diff --git a/assets/IndexPage.5416eac2.js b/assets/IndexPage.050b0715.js similarity index 73% rename from assets/IndexPage.5416eac2.js rename to assets/IndexPage.050b0715.js index 8a03153..171d331 100644 --- a/assets/IndexPage.5416eac2.js +++ b/assets/IndexPage.050b0715.js @@ -1,2 +1,2 @@ -import{i as va,r as Q,o as Ge,w as le,a as c,J as Rn,g as ue,b as _e,e as Zt,K as ma,L as Pn,M as Ye,H as Me,d as me,N as Et,O as Rl,h as v,I as Oe,T as Xt,P as Tn,Q as Le,c as he,F as Ze,n as ga,R as Pl,l as Be,C as nl,S as ha,D as zl,E as ba,U as Nl,q as ya,V as Sa,G as wa,W as Yt,X as pa,Y as xa,Z as _t,$ as St,a0 as Cl,a1 as jl,a2 as ka,a3 as Ca,f as wt,j as _a,k as qa,a4 as Ft,t as re,a5 as qe,a6 as de,a7 as Re,a8 as Va,a9 as Tl,aa as Bn,ab as Ma,ac as Ce,u as Te,v as ot,x as Xe,y as Wl,_ as Ra,ad as Pa,ae as Ta}from"./index.5c070da9.js";import{d as De,e as Ba,h as we,a as En,b as al,u as Bl,f as El,i as Ea,j as Fa,R as Aa,k as $a,l as Ia,v as Fn,m as ml,n as An,o as $n,Q as zt}from"./QBtn.92b86c16.js";import{s as In,g as Hn,c as Ha,b as Oa,a as La,h as Da}from"./scroll.736871b0.js";let gl,Nt=0;const ye=new Array(256);for(let e=0;e<256;e++)ye[e]=(e+256).toString(16).substring(1);const za=(()=>{const e=typeof crypto!="undefined"?crypto:typeof window!="undefined"?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 l=new Uint8Array(t);return e.getRandomValues(l),l}}return t=>{const l=[];for(let n=t;n>0;n--)l.push(Math.floor(Math.random()*256));return l}})(),Ql=4096;function _l(){(gl===void 0||Nt+16>Ql)&&(Nt=0,gl=za(Ql));const e=Array.prototype.slice.call(gl,Nt,Nt+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,ye[e[0]]+ye[e[1]]+ye[e[2]]+ye[e[3]]+"-"+ye[e[4]]+ye[e[5]]+"-"+ye[e[6]]+ye[e[7]]+"-"+ye[e[8]]+ye[e[9]]+"-"+ye[e[10]]+ye[e[11]]+ye[e[12]]+ye[e[13]]+ye[e[14]]+ye[e[15]]}function Na(e){return e==null?null:e}function Kl(e,t){return e==null?t===!0?`f_${_l()}`:null:e}function ja({getValue:e,required:t=!0}={}){if(va.value===!0){const l=e!==void 0?Q(Na(e())):Q(null);return t===!0&&l.value===null&&Ge(()=>{l.value=`f_${_l()}`}),e!==void 0&&le(e,n=>{l.value=Kl(n,t)}),l}return e!==void 0?c(()=>Kl(e(),t)):Q(`f_${_l()}`)}const Ul=/^on[A-Z]/;function Wa(){const{attrs:e,vnode:t}=ue(),l={listeners:Q({}),attributes:Q({})};function n(){const a={},o={};for(const i in e)i!=="class"&&i!=="style"&&Ul.test(i)===!1&&(a[i]=e[i]);for(const i in t.props)Ul.test(i)===!0&&(o[i]=t.props[i]);l.attributes.value=a,l.listeners.value=o}return Rn(n),n(),l}const ze={dark:{type:Boolean,default:null}};function Ne(e,t){return c(()=>e.dark===null?t.dark.isActive:e.dark)}function Qa({validate:e,resetValidation:t,requiresQForm:l}){const n=Zt(ma,!1);if(n!==!1){const{props:a,proxy:o}=ue();Object.assign(o,{validate:e,resetValidation:t}),le(()=>a.disable,i=>{i===!0?(typeof t=="function"&&t(),n.unbindComponent(o)):n.bindComponent(o)}),Ge(()=>{a.disable!==!0&&n.bindComponent(o)}),_e(()=>{a.disable!==!0&&n.unbindComponent(o)})}else l===!0&&console.error("Parent QForm not found on useFormChild()!")}const Zl=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Xl=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Yl=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,jt=/^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])\)$/,Wt=/^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)\)$/,hl={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=>Zl.test(e),hexaColor:e=>Xl.test(e),hexOrHexaColor:e=>Yl.test(e),rgbColor:e=>jt.test(e),rgbaColor:e=>Wt.test(e),rgbOrRgbaColor:e=>jt.test(e)||Wt.test(e),hexOrRgbColor:e=>Zl.test(e)||jt.test(e),hexaOrRgbaColor:e=>Xl.test(e)||Wt.test(e),anyColor:e=>Yl.test(e)||jt.test(e)||Wt.test(e)},Ka=[!0,!1,"ondemand"],Ua={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>Ka.includes(e)}};function Za(e,t){const{props:l,proxy:n}=ue(),a=Q(!1),o=Q(null),i=Q(!1);Qa({validate:P,resetValidation:w});let s=0,d;const h=c(()=>l.rules!==void 0&&l.rules!==null&&l.rules.length!==0),r=c(()=>l.disable!==!0&&h.value===!0&&t.value===!1),m=c(()=>l.error===!0||a.value===!0),C=c(()=>typeof l.errorMessage=="string"&&l.errorMessage.length!==0?l.errorMessage:o.value);le(()=>l.modelValue,()=>{i.value=!0,r.value===!0&&l.lazyRules===!1&&p()});function b(){l.lazyRules!=="ondemand"&&r.value===!0&&i.value===!0&&p()}le(()=>l.reactiveRules,N=>{N===!0?d===void 0&&(d=le(()=>l.rules,b,{immediate:!0,deep:!0})):d!==void 0&&(d(),d=void 0)},{immediate:!0}),le(()=>l.lazyRules,b),le(e,N=>{N===!0?i.value=!0:r.value===!0&&l.lazyRules!=="ondemand"&&p()});function w(){s++,t.value=!1,i.value=!1,a.value=!1,o.value=null,p.cancel()}function P(N=l.modelValue){if(l.disable===!0||h.value===!1)return!0;const M=++s,R=t.value!==!0?()=>{i.value=!0}:()=>{},E=(_,O)=>{_===!0&&R(),a.value=_,o.value=O||null,t.value=!1},q=[];for(let _=0;_{if(_===void 0||Array.isArray(_)===!1||_.length===0)return M===s&&E(!1),!0;const O=_.find(D=>D===!1||typeof D=="string");return M===s&&E(O!==void 0,O),O===void 0},_=>(M===s&&(console.error(_),E(!0)),!1)))}const p=Pn(P,0);return _e(()=>{d!==void 0&&d(),p.cancel()}),Object.assign(n,{resetValidation:w,validate:P}),Ye(n,"hasError",()=>m.value),{isDirtyModel:i,hasRules:h,hasError:m,errorMessage:C,validate:P,resetValidation:w}}let it=[],Tt=[];function On(e){Tt=Tt.filter(t=>t!==e)}function Xa(e){On(e),Tt.push(e)}function Gl(e){On(e),Tt.length===0&&it.length!==0&&(it[it.length-1](),it=[])}function ol(e){Tt.length===0?e():it.push(e)}function Ya(e){it=it.filter(t=>t!==e)}function Bt(e){return e!=null&&(""+e).length!==0}const Ga={...ze,...Ua,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},il={...Ga,maxlength:[Number,String]},Fl=["update:modelValue","clear","focus","blur"];function Al({requiredForAttr:e=!0,tagProp:t,changeEvent:l=!1}={}){const{props:n,proxy:a}=ue(),o=Ne(n,a.$q),i=ja({required:e,getValue:()=>n.for});return{requiredForAttr:e,changeEvent:l,tag:t===!0?c(()=>n.tag):{value:"label"},isDark:o,editable:c(()=>n.disable!==!0&&n.readonly!==!0),innerLoading:Q(!1),focused:Q(!1),hasPopupOpen:!1,splitAttrs:Wa(),targetUid:i,rootRef:Q(null),targetRef:Q(null),controlRef:Q(null)}}function $l(e){const{props:t,emit:l,slots:n,attrs:a,proxy:o}=ue(),{$q:i}=o;let s=null;e.hasValue===void 0&&(e.hasValue=c(()=>Bt(t.modelValue))),e.emitValue===void 0&&(e.emitValue=A=>{l("update:modelValue",A)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:x,onFocusout:k}),Object.assign(e,{clearValue:T,onControlFocusin:x,onControlFocusout:k,focus:O}),e.computedCounter===void 0&&(e.computedCounter=c(()=>{if(t.counter!==!1){const A=typeof t.modelValue=="string"||typeof t.modelValue=="number"?(""+t.modelValue).length:Array.isArray(t.modelValue)===!0?t.modelValue.length:0,W=t.maxlength!==void 0?t.maxlength:t.maxValues;return A+(W!==void 0?" / "+W:"")}}));const{isDirtyModel:d,hasRules:h,hasError:r,errorMessage:m,resetValidation:C}=Za(e.focused,e.innerLoading),b=e.floatingLabel!==void 0?c(()=>t.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):c(()=>t.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),w=c(()=>t.bottomSlots===!0||t.hint!==void 0||h.value===!0||t.counter===!0||t.error!==null),P=c(()=>t.filled===!0?"filled":t.outlined===!0?"outlined":t.borderless===!0?"borderless":t.standout?"standout":"standard"),p=c(()=>`q-field row no-wrap items-start q-field--${P.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(t.rounded===!0?" q-field--rounded":"")+(t.square===!0?" q-field--square":"")+(b.value===!0?" q-field--float":"")+(M.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":"")+(r.value===!0?" q-field--error":"")+(r.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(t.hideBottomSpace!==!0&&w.value===!0?" q-field--with-bottom":"")+(t.disable===!0?" q-field--disabled":t.readonly===!0?" q-field--readonly":"")),N=c(()=>"q-field__control relative-position row no-wrap"+(t.bgColor!==void 0?` bg-${t.bgColor}`:"")+(r.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}`:"")),M=c(()=>t.labelSlot===!0||t.label!==void 0),R=c(()=>"q-field__label no-pointer-events absolute ellipsis"+(t.labelColor!==void 0&&r.value!==!0?` text-${t.labelColor}`:"")),E=c(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:b.value,modelValue:t.modelValue,emitValue:e.emitValue})),q=c(()=>{const A={};return e.targetUid.value&&(A.for=e.targetUid.value),t.disable===!0&&(A["aria-disabled"]="true"),A});function _(){const A=document.activeElement;let W=e.targetRef!==void 0&&e.targetRef.value;W&&(A===null||A.id!==e.targetUid.value)&&(W.hasAttribute("tabindex")===!0||(W=W.querySelector("[tabindex]")),W&&W!==A&&W.focus({preventScroll:!0}))}function O(){ol(_)}function D(){Ya(_);const A=document.activeElement;A!==null&&e.rootRef.value.contains(A)&&A.blur()}function x(A){s!==null&&(clearTimeout(s),s=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,l("focus",A))}function k(A,W){s!==null&&clearTimeout(s),s=setTimeout(()=>{s=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,l("blur",A)),W!==void 0&&W())})}function T(A){Me(A),i.platform.is.mobile!==!0?(e.targetRef!==void 0&&e.targetRef.value||e.rootRef.value).focus():e.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),t.type==="file"&&(e.inputRef.value.value=null),l("update:modelValue",null),e.changeEvent===!0&&l("change",null),l("clear",t.modelValue),me(()=>{const W=d.value;C(),d.value=W})}function y(A){[13,32].includes(A.keyCode)&&T(A)}function j(){const A=[];return n.prepend!==void 0&&A.push(v("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:Oe},n.prepend())),A.push(v("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},K())),r.value===!0&&t.noErrorIcon===!1&&A.push(F("error",[v(De,{name:i.iconSet.field.error,color:"negative"})])),t.loading===!0||e.innerLoading.value===!0?A.push(F("inner-loading-append",n.loading!==void 0?n.loading():[v(Ba,{color:t.color})])):t.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&A.push(F("inner-clearable-append",[v(De,{class:"q-field__focusable-action",name:t.clearIcon||i.iconSet.field.clear,tabindex:0,role:"button","aria-label":i.lang.label.clear,onKeyup:y,onClick:T})])),n.append!==void 0&&A.push(v("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:Oe},n.append())),e.getInnerAppend!==void 0&&A.push(F("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&A.push(e.getControlChild()),A}function K(){const A=[];return t.prefix!==void 0&&t.prefix!==null&&A.push(v("div",{class:"q-field__prefix no-pointer-events row items-center"},t.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&A.push(e.getShadowControl()),e.getControl!==void 0?A.push(e.getControl()):n.rawControl!==void 0?A.push(n.rawControl()):n.control!==void 0&&A.push(v("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0},n.control(E.value))),M.value===!0&&A.push(v("div",{class:R.value},we(n.label,t.label))),t.suffix!==void 0&&t.suffix!==null&&A.push(v("div",{class:"q-field__suffix no-pointer-events row items-center"},t.suffix)),A.concat(we(n.default))}function te(){let A,W;r.value===!0?m.value!==null?(A=[v("div",{role:"alert"},m.value)],W=`q--slot-error-${m.value}`):(A=we(n.error),W="q--slot-error"):(t.hideHint!==!0||e.focused.value===!0)&&(t.hint!==void 0?(A=[v("div",t.hint)],W=`q--slot-hint-${t.hint}`):(A=we(n.hint),W="q--slot-hint"));const ee=t.counter===!0||n.counter!==void 0;if(t.hideBottomSpace===!0&&ee===!1&&A===void 0)return;const g=v("div",{key:W,class:"q-field__messages col"},A);return v("div",{class:"q-field__bottom row items-start q-field__bottom--"+(t.hideBottomSpace!==!0?"animated":"stale"),onClick:Oe},[t.hideBottomSpace===!0?g:v(Xt,{name:"q-transition--field-message"},()=>g),ee===!0?v("div",{class:"q-field__counter"},n.counter!==void 0?n.counter():e.computedCounter.value):null])}function F(A,W){return W===null?null:v("div",{key:A,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},W)}let Z=!1;return Et(()=>{Z=!0}),Rl(()=>{Z===!0&&t.autofocus===!0&&o.focus()}),t.autofocus===!0&&Ge(()=>{o.focus()}),_e(()=>{s!==null&&clearTimeout(s)}),Object.assign(o,{focus:O,blur:D}),function(){const W=e.getControl===void 0&&n.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0,...q.value}:q.value;return v(e.tag.value,{ref:e.rootRef,class:[p.value,a.class],style:a.style,...W},[n.before!==void 0?v("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:Oe},n.before()):null,v("div",{class:"q-field__inner relative-position col self-stretch"},[v("div",{ref:e.controlRef,class:N.value,tabindex:-1,...e.controlEvents},j()),w.value===!0?te():null]),n.after!==void 0?v("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:Oe},n.after()):null])}}const Jl={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},Gt={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleLowerCase()}},Ln=Object.keys(Gt);Ln.forEach(e=>{Gt[e].regex=new RegExp(Gt[e].pattern)});const Ja=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+Ln.join("")+"])|(.)","g"),en=/[.*+?^${}()|[\]\\]/g,ge=String.fromCharCode(1),eo={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function to(e,t,l,n){let a,o,i,s,d,h;const r=Q(null),m=Q(b());function C(){return e.autogrow===!0||["textarea","text","search","url","tel","password"].includes(e.type)}le(()=>e.type+e.autogrow,P),le(()=>e.mask,x=>{if(x!==void 0)p(m.value,!0);else{const k=O(m.value);P(),e.modelValue!==k&&t("update:modelValue",k)}}),le(()=>e.fillMask+e.reverseFillMask,()=>{r.value===!0&&p(m.value,!0)}),le(()=>e.unmaskedValue,()=>{r.value===!0&&p(m.value)});function b(){if(P(),r.value===!0){const x=q(O(e.modelValue));return e.fillMask!==!1?D(x):x}return e.modelValue}function w(x){if(x0;j--)k+=ge;T=T.slice(0,y)+k+T.slice(y)}return T}function P(){if(r.value=e.mask!==void 0&&e.mask.length!==0&&C(),r.value===!1){s=void 0,a="",o="";return}const x=Jl[e.mask]===void 0?e.mask:Jl[e.mask],k=typeof e.fillMask=="string"&&e.fillMask.length!==0?e.fillMask.slice(0,1):"_",T=k.replace(en,"\\$&"),y=[],j=[],K=[];let te=e.reverseFillMask===!0,F="",Z="";x.replace(Ja,(g,f,L,Y,ne)=>{if(Y!==void 0){const V=Gt[Y];K.push(V),Z=V.negate,te===!0&&(j.push("(?:"+Z+"+)?("+V.pattern+"+)?(?:"+Z+"+)?("+V.pattern+"+)?"),te=!1),j.push("(?:"+Z+"+)?("+V.pattern+")?")}else if(L!==void 0)F="\\"+(L==="\\"?"":L),K.push(L),y.push("([^"+F+"]+)?"+F+"?");else{const V=f!==void 0?f:ne;F=V==="\\"?"\\\\\\\\":V.replace(en,"\\\\$&"),K.push(V),y.push("([^"+F+"]+)?"+F+"?")}});const A=new RegExp("^"+y.join("")+"("+(F===""?".":"[^"+F+"]")+"+)?"+(F===""?"":"["+F+"]*")+"$"),W=j.length-1,ee=j.map((g,f)=>f===0&&e.reverseFillMask===!0?new RegExp("^"+T+"*"+g):f===W?new RegExp("^"+g+"("+(Z===""?".":Z)+"+)?"+(e.reverseFillMask===!0?"$":T+"*")):new RegExp("^"+g));i=K,s=g=>{const f=A.exec(e.reverseFillMask===!0?g:g.slice(0,K.length+1));f!==null&&(g=f.slice(1).join(""));const L=[],Y=ee.length;for(let ne=0,V=g;netypeof g=="string"?g:ge).join(""),o=a.split(ge).join(k)}function p(x,k,T){const y=n.value,j=y.selectionEnd,K=y.value.length-j,te=O(x);k===!0&&P();const F=q(te),Z=e.fillMask!==!1?D(F):F,A=m.value!==Z;y.value!==Z&&(y.value=Z),A===!0&&(m.value=Z),document.activeElement===y&&me(()=>{if(Z===o){const ee=e.reverseFillMask===!0?o.length:0;y.setSelectionRange(ee,ee,"forward");return}if(T==="insertFromPaste"&&e.reverseFillMask!==!0){const ee=y.selectionEnd;let g=j-1;for(let f=d;f<=g&&fF.length?1:0:Math.max(0,Z.length-(Z===o?0:Math.min(F.length,K)+1))+1:j;y.setSelectionRange(ee,ee,"forward");return}if(e.reverseFillMask===!0)if(A===!0){const ee=Math.max(0,Z.length-(Z===o?0:Math.min(F.length,K+1)));ee===1&&j===1?y.setSelectionRange(ee,ee,"forward"):M.rightReverse(y,ee)}else{const ee=Z.length-K;y.setSelectionRange(ee,ee,"backward")}else if(A===!0){const ee=Math.max(0,a.indexOf(ge),Math.min(F.length,j)-1);M.right(y,ee)}else{const ee=j-1;M.right(y,ee)}});const W=e.unmaskedValue===!0?O(Z):Z;String(e.modelValue)!==W&&(e.modelValue!==null||W!=="")&&l(W,!0)}function N(x,k,T){const y=q(O(x.value));k=Math.max(0,a.indexOf(ge),Math.min(y.length,k)),d=k,x.setSelectionRange(k,T,"forward")}const M={left(x,k){const T=a.slice(k-1).indexOf(ge)===-1;let y=Math.max(0,k-1);for(;y>=0;y--)if(a[y]===ge){k=y,T===!0&&k++;break}if(y<0&&a[k]!==void 0&&a[k]!==ge)return M.right(x,0);k>=0&&x.setSelectionRange(k,k,"backward")},right(x,k){const T=x.value.length;let y=Math.min(T,k+1);for(;y<=T;y++)if(a[y]===ge){k=y;break}else a[y-1]===ge&&(k=y);if(y>T&&a[k-1]!==void 0&&a[k-1]!==ge)return M.left(x,T);x.setSelectionRange(k,k,"forward")},leftReverse(x,k){const T=w(x.value.length);let y=Math.max(0,k-1);for(;y>=0;y--)if(T[y-1]===ge){k=y;break}else if(T[y]===ge&&(k=y,y===0))break;if(y<0&&T[k]!==void 0&&T[k]!==ge)return M.rightReverse(x,0);k>=0&&x.setSelectionRange(k,k,"backward")},rightReverse(x,k){const T=x.value.length,y=w(T),j=y.slice(0,k+1).indexOf(ge)===-1;let K=Math.min(T,k+1);for(;K<=T;K++)if(y[K-1]===ge){k=K,k>0&&j===!0&&k--;break}if(K>T&&y[k-1]!==void 0&&y[k-1]!==ge)return M.leftReverse(x,T);x.setSelectionRange(k,k,"forward")}};function R(x){t("click",x),h=void 0}function E(x){if(t("keydown",x),Tn(x)===!0||x.altKey===!0)return;const k=n.value,T=k.selectionStart,y=k.selectionEnd;if(x.shiftKey||(h=void 0),x.keyCode===37||x.keyCode===39){x.shiftKey&&h===void 0&&(h=k.selectionDirection==="forward"?T:y);const j=M[(x.keyCode===39?"right":"left")+(e.reverseFillMask===!0?"Reverse":"")];if(x.preventDefault(),j(k,h===T?y:T),x.shiftKey){const K=k.selectionStart;k.setSelectionRange(Math.min(h,K),Math.max(h,K),"forward")}}else x.keyCode===8&&e.reverseFillMask!==!0&&T===y?(M.left(k,T),k.setSelectionRange(k.selectionStart,y,"backward")):x.keyCode===46&&e.reverseFillMask===!0&&T===y&&(M.rightReverse(k,y),k.setSelectionRange(T,k.selectionEnd,"forward"))}function q(x){if(x==null||x==="")return"";if(e.reverseFillMask===!0)return _(x);const k=i;let T=0,y="";for(let j=0;j=0&&y!==-1;K--){const te=k[K];let F=x[y];if(typeof te=="string")j=te+j,F===te&&y--;else if(F!==void 0&&te.regex.test(F))do j=(te.transform!==void 0?te.transform(F):F)+j,y--,F=x[y];while(T===K&&F!==void 0&&te.regex.test(F));else return j}return j}function O(x){return typeof x!="string"||s===void 0?typeof x=="number"?s(""+x):x:s(x)}function D(x){return o.length-x.length<=0?x:e.reverseFillMask===!0&&x.length!==0?o.slice(0,-x.length)+x:x+o.slice(x.length)}return{innerValue:m,hasMask:r,moveCursorForPaste:N,updateMaskValue:p,onMaskedKeydown:E,onMaskedClick:R}}const Il={name:String};function lo(e={}){return(t,l,n)=>{t[l](v("input",{class:"hidden"+(n||""),...e.value}))}}function Dn(e){return c(()=>e.name||e.for)}function no(e,t){function l(){const n=e.modelValue;try{const a="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(n)===n&&("length"in n?Array.from(n):[n]).forEach(o=>{a.items.add(o)}),{files:a.files}}catch{return{files:void 0}}}return t===!0?c(()=>{if(e.type==="file")return l()}):c(l)}const ao=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,oo=/[\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,io=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,ro=/[a-z0-9_ -]$/i;function zn(e){return function(l){if(l.type==="compositionend"||l.type==="change"){if(l.target.qComposing!==!0)return;l.target.qComposing=!1,e(l)}else l.type==="compositionupdate"&&l.target.qComposing!==!0&&typeof l.data=="string"&&(Le.is.firefox===!0?ro.test(l.data)===!1:ao.test(l.data)===!0||oo.test(l.data)===!0||io.test(l.data)===!0)===!0&&(l.target.qComposing=!0)}}var tn=he({name:"QInput",inheritAttrs:!1,props:{...il,...eo,...Il,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...Fl,"paste","change","keydown","click","animationend"],setup(e,{emit:t,attrs:l}){const{proxy:n}=ue(),{$q:a}=n,o={};let i=NaN,s,d,h=null,r;const m=Q(null),C=Dn(e),{innerValue:b,hasMask:w,moveCursorForPaste:P,updateMaskValue:p,onMaskedKeydown:N,onMaskedClick:M}=to(e,t,F,m),R=no(e,!0),E=c(()=>Bt(b.value)),q=zn(K),_=Al({changeEvent:!0}),O=c(()=>e.type==="textarea"||e.autogrow===!0),D=c(()=>O.value===!0||["text","search","url","tel","password"].includes(e.type)),x=c(()=>{const f={..._.splitAttrs.listeners.value,onInput:K,onPaste:j,onChange:A,onBlur:W,onFocus:Ze};return f.onCompositionstart=f.onCompositionupdate=f.onCompositionend=q,w.value===!0&&(f.onKeydown=N,f.onClick=M),e.autogrow===!0&&(f.onAnimationend=te),f}),k=c(()=>{const f={tabindex:0,"data-autofocus":e.autofocus===!0||void 0,rows:e.type==="textarea"?6:void 0,"aria-label":e.label,name:C.value,..._.splitAttrs.attributes.value,id:_.targetUid.value,maxlength:e.maxlength,disabled:e.disable===!0,readonly:e.readonly===!0};return O.value===!1&&(f.type=e.type),e.autogrow===!0&&(f.rows=1),f});le(()=>e.type,()=>{m.value&&(m.value.value=e.modelValue)}),le(()=>e.modelValue,f=>{if(w.value===!0){if(d===!0&&(d=!1,String(f)===i))return;p(f)}else b.value!==f&&(b.value=f,e.type==="number"&&o.hasOwnProperty("value")===!0&&(s===!0?s=!1:delete o.value));e.autogrow===!0&&me(Z)}),le(()=>e.autogrow,f=>{f===!0?me(Z):m.value!==null&&l.rows>0&&(m.value.style.height="auto")}),le(()=>e.dense,()=>{e.autogrow===!0&&me(Z)});function T(){ol(()=>{const f=document.activeElement;m.value!==null&&m.value!==f&&(f===null||f.id!==_.targetUid.value)&&m.value.focus({preventScroll:!0})})}function y(){m.value!==null&&m.value.select()}function j(f){if(w.value===!0&&e.reverseFillMask!==!0){const L=f.target;P(L,L.selectionStart,L.selectionEnd)}t("paste",f)}function K(f){if(!f||!f.target)return;if(e.type==="file"){t("update:modelValue",f.target.files);return}const L=f.target.value;if(f.target.qComposing===!0){o.value=L;return}if(w.value===!0)p(L,!1,f.inputType);else if(F(L),D.value===!0&&f.target===document.activeElement){const{selectionStart:Y,selectionEnd:ne}=f.target;Y!==void 0&&ne!==void 0&&me(()=>{f.target===document.activeElement&&L.indexOf(f.target.value)===0&&f.target.setSelectionRange(Y,ne)})}e.autogrow===!0&&Z()}function te(f){t("animationend",f),Z()}function F(f,L){r=()=>{h=null,e.type!=="number"&&o.hasOwnProperty("value")===!0&&delete o.value,e.modelValue!==f&&i!==f&&(i=f,L===!0&&(d=!0),t("update:modelValue",f),me(()=>{i===f&&(i=NaN)})),r=void 0},e.type==="number"&&(s=!0,o.value=f),e.debounce!==void 0?(h!==null&&clearTimeout(h),o.value=f,h=setTimeout(r,e.debounce)):r()}function Z(){requestAnimationFrame(()=>{const f=m.value;if(f!==null){const L=f.parentNode.style,{scrollTop:Y}=f,{overflowY:ne,maxHeight:V}=a.platform.is.firefox===!0?{}:window.getComputedStyle(f),I=ne!==void 0&&ne!=="scroll";I===!0&&(f.style.overflowY="hidden"),L.marginBottom=f.scrollHeight-1+"px",f.style.height="1px",f.style.height=f.scrollHeight+"px",I===!0&&(f.style.overflowY=parseInt(V,10){m.value!==null&&(m.value.value=b.value!==void 0?b.value:"")})}function ee(){return o.hasOwnProperty("value")===!0?o.value:b.value!==void 0?b.value:""}_e(()=>{W()}),Ge(()=>{e.autogrow===!0&&Z()}),Object.assign(_,{innerValue:b,fieldClass:c(()=>`q-${O.value===!0?"textarea":"input"}`+(e.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:c(()=>e.type!=="file"&&typeof e.shadowText=="string"&&e.shadowText.length!==0),inputRef:m,emitValue:F,hasValue:E,floatingLabel:c(()=>E.value===!0&&(e.type!=="number"||isNaN(b.value)===!1)||Bt(e.displayValue)),getControl:()=>v(O.value===!0?"textarea":"input",{ref:m,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,...k.value,...x.value,...e.type!=="file"?{value:ee()}:R.value}),getShadowControl:()=>v("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(O.value===!0?"":" text-no-wrap")},[v("span",{class:"invisible"},ee()),v("span",e.shadowText)])});const g=$l(_);return Object.assign(n,{focus:T,select:y,getNativeElement:()=>m.value}),Ye(n,"nativeEl",()=>m.value),g}}),uo=he({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(e,{slots:t,emit:l}){const n=ue(),{proxy:{$q:a}}=n,o=i=>{l("click",i)};return()=>{if(e.props===void 0)return v("th",{class:e.autoWidth===!0?"q-table--col-auto-width":"",onClick:o},we(t.default));let i,s;const d=n.vnode.key;if(d){if(i=e.props.colsMap[d],i===void 0)return}else i=e.props.col;if(i.sortable===!0){const r=i.align==="right"?"unshift":"push";s=En(t.default,[]),s[r](v(De,{class:i.__iconClass,name:a.iconSet.table.arrowUp}))}else s=we(t.default);const h={class:i.__thClass+(e.autoWidth===!0?" q-table--col-auto-width":""),style:i.headerStyle,onClick:r=>{i.sortable===!0&&e.props.sort(i),o(r)}};return v("th",h,s)}}});const so={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},bl={xs:2,sm:4,md:8,lg:16,xl:24};var co=he({name:"QSeparator",props:{...ze,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const t=ue(),l=Ne(e,t.proxy.$q),n=c(()=>e.vertical===!0?"vertical":"horizontal"),a=c(()=>` q-separator--${n.value}`),o=c(()=>e.inset!==!1?`${a.value}-${so[e.inset]}`:""),i=c(()=>`q-separator${a.value}${o.value}`+(e.color!==void 0?` bg-${e.color}`:"")+(l.value===!0?" q-separator--dark":"")),s=c(()=>{const d={};if(e.size!==void 0&&(d[e.vertical===!0?"width":"height"]=e.size),e.spaced!==!1){const h=e.spaced===!0?`${bl.md}px`:e.spaced in bl?`${bl[e.spaced]}px`:e.spaced,r=e.vertical===!0?["Left","Right"]:["Top","Bottom"];d[`margin${r[0]}`]=d[`margin${r[1]}`]=h}return d});return()=>v("hr",{class:i.value,style:s.value,"aria-orientation":n.value})}}),fo=he({name:"QList",props:{...ze,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(e,{slots:t}){const l=ue(),n=Ne(e,l.proxy.$q),a=c(()=>"q-list"+(e.bordered===!0?" q-list--bordered":"")+(e.dense===!0?" q-list--dense":"")+(e.separator===!0?" q-list--separator":"")+(n.value===!0?" q-list--dark":"")+(e.padding===!0?" q-list--padding":""));return()=>v(e.tag,{class:a.value},we(t.default))}});const vo=["horizontal","vertical","cell","none"];var mo=he({name:"QMarkupTable",props:{...ze,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:e=>vo.includes(e)}},setup(e,{slots:t}){const l=ue(),n=Ne(e,l.proxy.$q),a=c(()=>`q-markup-table q-table__container q-table__card q-table--${e.separator}-separator`+(n.value===!0?" q-table--dark q-table__card--dark q-dark":"")+(e.dense===!0?" q-table--dense":"")+(e.flat===!0?" q-table--flat":"")+(e.bordered===!0?" q-table--bordered":"")+(e.square===!0?" q-table--square":"")+(e.wrapCells===!1?" q-table--no-wrap":""));return()=>v("div",{class:a.value},[v("table",{class:"q-table"},we(t.default))])}});function Nn(e,t){return v("div",e,[v("table",{class:"q-table"},t)])}let Jt=!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,Jt=e.scrollLeft>=0,e.remove()}const He=1e3,go=["start","center","end","start-force","center-force","end-force"],jn=Array.prototype.filter,ho=window.getComputedStyle(document.body).overflowAnchor===void 0?ga:function(e,t){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;const l=e.children||[];jn.call(l,a=>a.dataset&&a.dataset.qVsAnchor!==void 0).forEach(a=>{delete a.dataset.qVsAnchor});const n=l[t];n&&n.dataset&&(n.dataset.qVsAnchor="")}))};function pt(e,t){return e+t}function yl(e,t,l,n,a,o,i,s){const d=e===window?document.scrollingElement||document.documentElement:e,h=a===!0?"offsetWidth":"offsetHeight",r={scrollStart:0,scrollViewSize:-i-s,scrollMaxSize:0,offsetStart:-i,offsetEnd:-s};if(a===!0?(e===window?(r.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,r.scrollViewSize+=document.documentElement.clientWidth):(r.scrollStart=d.scrollLeft,r.scrollViewSize+=d.clientWidth),r.scrollMaxSize=d.scrollWidth,o===!0&&(r.scrollStart=(Jt===!0?r.scrollMaxSize-r.scrollViewSize:0)-r.scrollStart)):(e===window?(r.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,r.scrollViewSize+=document.documentElement.clientHeight):(r.scrollStart=d.scrollTop,r.scrollViewSize+=d.clientHeight),r.scrollMaxSize=d.scrollHeight),l!==null)for(let m=l.previousElementSibling;m!==null;m=m.previousElementSibling)m.classList.contains("q-virtual-scroll--skip")===!1&&(r.offsetStart+=m[h]);if(n!==null)for(let m=n.nextElementSibling;m!==null;m=m.nextElementSibling)m.classList.contains("q-virtual-scroll--skip")===!1&&(r.offsetEnd+=m[h]);if(t!==e){const m=d.getBoundingClientRect(),C=t.getBoundingClientRect();a===!0?(r.offsetStart+=C.left-m.left,r.offsetEnd-=C.width):(r.offsetStart+=C.top-m.top,r.offsetEnd-=C.height),e!==window&&(r.offsetStart+=r.scrollStart),r.offsetEnd+=r.scrollMaxSize-r.offsetStart}return r}function ln(e,t,l,n){t==="end"&&(t=(e===window?document.body:e)[l===!0?"scrollWidth":"scrollHeight"]),e===window?l===!0?(n===!0&&(t=(Jt===!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):l===!0?(n===!0&&(t=(Jt===!0?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function qt(e,t,l,n){if(l>=n)return 0;const a=t.length,o=Math.floor(l/He),i=Math.floor((n-1)/He)+1;let s=e.slice(o,i).reduce(pt,0);return l%He!==0&&(s-=t.slice(o*He,l).reduce(pt,0)),n%He!==0&&n!==a&&(s-=t.slice(n,i*He).reduce(pt,0)),s}const Wn={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]},Qn=Object.keys(Wn),ql={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...Wn};function Kn({virtualScrollLength:e,getVirtualScrollTarget:t,getVirtualScrollEl:l,virtualScrollItemSizeComputed:n}){const a=ue(),{props:o,emit:i,proxy:s}=a,{$q:d}=s;let h,r,m,C=[],b;const w=Q(0),P=Q(0),p=Q({}),N=Q(null),M=Q(null),R=Q(null),E=Q({from:0,to:0}),q=c(()=>o.tableColspan!==void 0?o.tableColspan:100);n===void 0&&(n=c(()=>o.virtualScrollItemSize));const _=c(()=>n.value+";"+o.virtualScrollHorizontal),O=c(()=>_.value+";"+o.virtualScrollSliceRatioBefore+";"+o.virtualScrollSliceRatioAfter);le(O,()=>{F()}),le(_,D);function D(){te(r,!0)}function x(g){te(g===void 0?r:g)}function k(g,f){const L=t();if(L==null||L.nodeType===8)return;const Y=yl(L,l(),N.value,M.value,o.virtualScrollHorizontal,d.lang.rtl,o.virtualScrollStickySizeStart,o.virtualScrollStickySizeEnd);m!==Y.scrollViewSize&&F(Y.scrollViewSize),y(L,Y,Math.min(e.value-1,Math.max(0,parseInt(g,10)||0)),0,go.indexOf(f)!==-1?f:r!==-1&&g>r?"end":"start")}function T(){const g=t();if(g==null||g.nodeType===8)return;const f=yl(g,l(),N.value,M.value,o.virtualScrollHorizontal,d.lang.rtl,o.virtualScrollStickySizeStart,o.virtualScrollStickySizeEnd),L=e.value-1,Y=f.scrollMaxSize-f.offsetStart-f.offsetEnd-P.value;if(h===f.scrollStart)return;if(f.scrollMaxSize<=0){y(g,f,0,0);return}m!==f.scrollViewSize&&F(f.scrollViewSize),j(E.value.from);const ne=Math.floor(f.scrollMaxSize-Math.max(f.scrollViewSize,f.offsetEnd)-Math.min(b[L],f.scrollViewSize/2));if(ne>0&&Math.ceil(f.scrollStart)>=ne){y(g,f,L,f.scrollMaxSize-f.offsetEnd-C.reduce(pt,0));return}let V=0,I=f.scrollStart-f.offsetStart,ae=I;if(I<=Y&&I+f.scrollViewSize>=w.value)I-=w.value,V=E.value.from,ae=I;else for(let B=0;I>=C[B]&&V0&&V-f.scrollViewSize?(V++,ae=I):ae=b[V]+I;y(g,f,V,ae)}function y(g,f,L,Y,ne){const V=typeof ne=="string"&&ne.indexOf("-force")!==-1,I=V===!0?ne.replace("-force",""):ne,ae=I!==void 0?I:"start";let B=Math.max(0,L-p.value[ae]),se=B+p.value.total;se>e.value&&(se=e.value,B=Math.max(0,se-p.value.total)),h=f.scrollStart;const pe=B!==E.value.from||se!==E.value.to;if(pe===!1&&I===void 0){A(L);return}const{activeElement:We}=document,xe=R.value;pe===!0&&xe!==null&&xe!==We&&xe.contains(We)===!0&&(xe.addEventListener("focusout",K),setTimeout(()=>{xe!==null&&xe.removeEventListener("focusout",K)})),ho(xe,L-B);const Qe=I!==void 0?b.slice(B,L).reduce(pt,0):0;if(pe===!0){const Ee=se>=E.value.from&&B<=E.value.to?E.value.to:se;E.value={from:B,to:Ee},w.value=qt(C,b,0,B),P.value=qt(C,b,se,e.value),requestAnimationFrame(()=>{E.value.to!==se&&h===f.scrollStart&&(E.value={from:E.value.from,to:se},P.value=qt(C,b,se,e.value))})}requestAnimationFrame(()=>{if(h!==f.scrollStart)return;pe===!0&&j(B);const Ee=b.slice(B,L).reduce(pt,0),Fe=Ee+f.offsetStart+w.value,Ke=Fe+b[L];let Je=Fe+Y;if(I!==void 0){const kt=Ee-Qe,et=f.scrollStart+kt;Je=V!==!0&&etB.classList&&B.classList.contains("q-virtual-scroll--skip")===!1),Y=L.length,ne=o.virtualScrollHorizontal===!0?B=>B.getBoundingClientRect().width:B=>B.offsetHeight;let V=g,I,ae;for(let B=0;B=Y;V--)b[V]=L;const ne=Math.floor((e.value-1)/He);C=[];for(let V=0;V<=ne;V++){let I=0;const ae=Math.min((V+1)*He,e.value);for(let B=V*He;B=0?(j(E.value.from),me(()=>{k(g)})):W()}function F(g){if(g===void 0&&typeof window!="undefined"){const I=t();I!=null&&I.nodeType!==8&&(g=yl(I,l(),N.value,M.value,o.virtualScrollHorizontal,d.lang.rtl,o.virtualScrollStickySizeStart,o.virtualScrollStickySizeEnd).scrollViewSize)}m=g;const f=parseFloat(o.virtualScrollSliceRatioBefore)||0,L=parseFloat(o.virtualScrollSliceRatioAfter)||0,Y=1+f+L,ne=g===void 0||g<=0?1:Math.ceil(g/n.value),V=Math.max(1,ne,Math.ceil((o.virtualScrollSliceSize>0?o.virtualScrollSliceSize:10)/Y));p.value={total:Math.ceil(V*Y),start:Math.ceil(V*f),center:Math.ceil(V*(.5+f)),end:Math.ceil(V*(1+f)),view:ne}}function Z(g,f){const L=o.virtualScrollHorizontal===!0?"width":"height",Y={["--q-virtual-scroll-item-"+L]:n.value+"px"};return[g==="tbody"?v(g,{class:"q-virtual-scroll__padding",key:"before",ref:N},[v("tr",[v("td",{style:{[L]:`${w.value}px`,...Y},colspan:q.value})])]):v(g,{class:"q-virtual-scroll__padding",key:"before",ref:N,style:{[L]:`${w.value}px`,...Y}}),v(g,{class:"q-virtual-scroll__content",key:"content",ref:R,tabindex:-1},f.flat()),g==="tbody"?v(g,{class:"q-virtual-scroll__padding",key:"after",ref:M},[v("tr",[v("td",{style:{[L]:`${P.value}px`,...Y},colspan:q.value})])]):v(g,{class:"q-virtual-scroll__padding",key:"after",ref:M,style:{[L]:`${P.value}px`,...Y}})]}function A(g){r!==g&&(o.onVirtualScroll!==void 0&&i("virtualScroll",{index:g,from:E.value.from,to:E.value.to-1,direction:g{F()});let ee=!1;return Et(()=>{ee=!0}),Rl(()=>{if(ee!==!0)return;const g=t();h!==void 0&&g!==void 0&&g!==null&&g.nodeType!==8?ln(g,h,o.virtualScrollHorizontal,d.lang.rtl):k(r)}),_e(()=>{W.cancel()}),Object.assign(s,{scrollTo:k,reset:D,refresh:x}),{virtualScrollSliceRange:E,virtualScrollSliceSizeComputed:p,setVirtualScrollSize:F,onVirtualScrollEvt:W,localResetVirtualScroll:te,padVirtualScroll:Z,scrollTo:k,reset:D,refresh:x}}const bo={list:fo,table:mo},yo=["list","table","__qtable"];var So=he({name:"QVirtualScroll",props:{...ql,type:{type:String,default:"list",validator:e=>yo.includes(e)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:In},setup(e,{slots:t,attrs:l}){let n;const a=Q(null),o=c(()=>e.itemsSize>=0&&e.itemsFn!==void 0?parseInt(e.itemsSize,10):Array.isArray(e.items)?e.items.length:0),{virtualScrollSliceRange:i,localResetVirtualScroll:s,padVirtualScroll:d,onVirtualScrollEvt:h}=Kn({virtualScrollLength:o,getVirtualScrollTarget:w,getVirtualScrollEl:b}),r=c(()=>{if(o.value===0)return[];const M=(R,E)=>({index:i.value.from+E,item:R});return e.itemsFn===void 0?e.items.slice(i.value.from,i.value.to).map(M):e.itemsFn(i.value.from,i.value.to-i.value.from).map(M)}),m=c(()=>"q-virtual-scroll q-virtual-scroll"+(e.virtualScrollHorizontal===!0?"--horizontal":"--vertical")+(e.scrollTarget!==void 0?"":" scroll")),C=c(()=>e.scrollTarget!==void 0?{}:{tabindex:0});le(o,()=>{s()}),le(()=>e.scrollTarget,()=>{p(),P()});function b(){return a.value.$el||a.value}function w(){return n}function P(){n=Hn(b(),e.scrollTarget),n.addEventListener("scroll",h,Be.passive)}function p(){n!==void 0&&(n.removeEventListener("scroll",h,Be.passive),n=void 0)}function N(){let M=d(e.type==="list"?"div":"tbody",r.value.map(t.default));return t.before!==void 0&&(M=t.before().concat(M)),al(t.after,M)}return Pl(()=>{s()}),Ge(()=>{P()}),Rl(()=>{P()}),Et(()=>{p()}),_e(()=>{p()}),()=>{if(t.default===void 0){console.error("QVirtualScroll: default scoped slot is required for rendering");return}return e.type==="__qtable"?Nn({ref:a,class:"q-table__middle "+m.value},N()):v(bo[e.type],{...l,ref:a,class:[l.class,m.value],...C.value},N)}}}),wo=he({name:"QField",inheritAttrs:!1,props:{...il,tag:{type:String,default:"label"}},emits:Fl,setup(){return $l(Al({tagProp:!0}))}});const po={xs:8,sm:10,md:14,lg:20,xl:24};var xo=he({name:"QChip",props:{...ze,...Bl,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:l}){const{proxy:{$q:n}}=ue(),a=Ne(e,n),o=El(e,po),i=c(()=>e.selected===!0||e.icon!==void 0),s=c(()=>e.selected===!0?e.iconSelected||n.iconSet.chip.selected:e.icon),d=c(()=>e.iconRemove||n.iconSet.chip.remove),h=c(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),r=c(()=>{const p=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}`:"")+(p?` text-${p} 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":"")+(h.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square===!0?" q-chip--square":"")+(a.value===!0?" q-chip--dark q-dark":"")}),m=c(()=>{const p=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},N={...p,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||n.lang.label.remove};return{chip:p,remove:N}});function C(p){p.keyCode===13&&b(p)}function b(p){e.disable||(l("update:selected",!e.selected),l("click",p))}function w(p){(p.keyCode===void 0||p.keyCode===13)&&(Me(p),e.disable===!1&&(l("update:modelValue",!1),l("remove")))}function P(){const p=[];h.value===!0&&p.push(v("div",{class:"q-focus-helper"})),i.value===!0&&p.push(v(De,{class:"q-chip__icon q-chip__icon--left",name:s.value}));const N=e.label!==void 0?[v("div",{class:"ellipsis"},[e.label])]:void 0;return p.push(v("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},Fa(t.default,N))),e.iconRight&&p.push(v(De,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&p.push(v(De,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:d.value,...m.value.remove,onClick:w,onKeyup:w})),p}return()=>{if(e.modelValue===!1)return;const p={class:r.value,style:o.value};return h.value===!0&&Object.assign(p,m.value.chip,{onClick:b,onKeyup:C}),Ea("div",p,P(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[Aa,e.ripple]])}}}),ko=he({name:"QItem",props:{...ze,...$a,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:l}){const{proxy:{$q:n}}=ue(),a=Ne(e,n),{hasLink:o,linkAttrs:i,linkClass:s,linkTag:d,navigateOnClick:h}=Ia(),r=Q(null),m=Q(null),C=c(()=>e.clickable===!0||o.value===!0||e.tag==="label"),b=c(()=>e.disable!==!0&&C.value===!0),w=c(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(a.value===!0?" q-item--dark":"")+(o.value===!0&&e.active===null?s.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(b.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":""):"")),P=c(()=>{if(e.insetLevel===void 0)return null;const R=n.lang.rtl===!0?"Right":"Left";return{["padding"+R]:16+e.insetLevel*56+"px"}});function p(R){b.value===!0&&(m.value!==null&&(R.qKeyEvent!==!0&&document.activeElement===r.value?m.value.focus():document.activeElement===m.value&&r.value.focus()),h(R))}function N(R){if(b.value===!0&&nl(R,[13,32])===!0){Me(R),R.qKeyEvent=!0;const E=new MouseEvent("click",R);E.qKeyEvent=!0,r.value.dispatchEvent(E)}l("keyup",R)}function M(){const R=En(t.default,[]);return b.value===!0&&R.unshift(v("div",{class:"q-focus-helper",tabindex:-1,ref:m})),R}return()=>{const R={ref:r,class:w.value,style:P.value,role:"listitem",onClick:p,onKeyup:N};return b.value===!0?(R.tabindex=e.tabindex||"0",Object.assign(R,i.value)):C.value===!0&&(R["aria-disabled"]="true"),v(d.value,R,M())}}}),Co=he({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const l=c(()=>`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()=>v("div",{class:l.value},we(t.default))}}),_o=he({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const l=c(()=>parseInt(e.lines,10)),n=c(()=>"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":"")+(l.value===1?" ellipsis":"")),a=c(()=>e.lines!==void 0&&l.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l.value}:null);return()=>v("div",{style:a.value,class:n.value},we(t.default))}});function qo(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),ha.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Vo={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},Mo={...Vo,contextMenu:Boolean};function Ro({showing:e,avoidEmit:t,configureAnchorEl:l}){const{props:n,proxy:a,emit:o}=ue(),i=Q(null);let s=null;function d(b){return i.value===null?!1:b===void 0||b.touches===void 0||b.touches.length<=1}const h={};l===void 0&&(Object.assign(h,{hide(b){a.hide(b)},toggle(b){a.toggle(b),b.qAnchorHandled=!0},toggleKey(b){nl(b,13)===!0&&h.toggle(b)},contextClick(b){a.hide(b),Oe(b),me(()=>{a.show(b),b.qAnchorHandled=!0})},prevent:Oe,mobileTouch(b){if(h.mobileCleanup(b),d(b)!==!0)return;a.hide(b),i.value.classList.add("non-selectable");const w=b.target;zl(h,"anchor",[[w,"touchmove","mobileCleanup","passive"],[w,"touchend","mobileCleanup","passive"],[w,"touchcancel","mobileCleanup","passive"],[i.value,"contextmenu","prevent","notPassive"]]),s=setTimeout(()=>{s=null,a.show(b),b.qAnchorHandled=!0},300)},mobileCleanup(b){i.value.classList.remove("non-selectable"),s!==null&&(clearTimeout(s),s=null),e.value===!0&&b!==void 0&&qo()}}),l=function(b=n.contextMenu){if(n.noParentEvent===!0||i.value===null)return;let w;b===!0?a.$q.platform.is.mobile===!0?w=[[i.value,"touchstart","mobileTouch","passive"]]:w=[[i.value,"mousedown","hide","passive"],[i.value,"contextmenu","contextClick","notPassive"]]:w=[[i.value,"click","toggle","passive"],[i.value,"keyup","toggleKey","passive"]],zl(h,"anchor",w)});function r(){ba(h,"anchor")}function m(b){for(i.value=b;i.value.classList.contains("q-anchor--skip");)i.value=i.value.parentNode;l()}function C(){if(n.target===!1||n.target===""||a.$el.parentNode===null)i.value=null;else if(n.target===!0)m(a.$el.parentNode);else{let b=n.target;if(typeof n.target=="string")try{b=document.querySelector(n.target)}catch{b=void 0}b!=null?(i.value=b.$el||b,l()):(i.value=null,console.error(`Anchor: target "${n.target}" not found`))}}return le(()=>n.contextMenu,b=>{i.value!==null&&(r(),l(b))}),le(()=>n.target,()=>{i.value!==null&&r(),C()}),le(()=>n.noParentEvent,b=>{i.value!==null&&(b===!0?r():l())}),Ge(()=>{C(),t!==!0&&n.modelValue===!0&&i.value===null&&o("update:modelValue",!1)}),_e(()=>{s!==null&&clearTimeout(s),r()}),{anchorEl:i,canShow:d,anchorEvents:h}}function Po(e,t){const l=Q(null);let n;function a(s,d){const h=`${d!==void 0?"add":"remove"}EventListener`,r=d!==void 0?d:n;s!==window&&s[h]("scroll",r,Be.passive),window[h]("scroll",r,Be.passive),n=d}function o(){l.value!==null&&(a(l.value),l.value=null)}const i=le(()=>e.noParentEvent,()=>{l.value!==null&&(o(),t())});return _e(i),{localScrollTarget:l,unconfigureScrollTarget:o,changeScrollEvent:a}}const Un={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Zn=["beforeShow","show","beforeHide","hide"];function Xn({showing:e,canShow:t,hideOnRouteChange:l,handleShow:n,handleHide:a,processOnMount:o}){const i=ue(),{props:s,emit:d,proxy:h}=i;let r;function m(M){e.value===!0?w(M):C(M)}function C(M){if(s.disable===!0||M!==void 0&&M.qAnchorHandled===!0||t!==void 0&&t(M)!==!0)return;const R=s["onUpdate:modelValue"]!==void 0;R===!0&&(d("update:modelValue",!0),r=M,me(()=>{r===M&&(r=void 0)})),(s.modelValue===null||R===!1)&&b(M)}function b(M){e.value!==!0&&(e.value=!0,d("beforeShow",M),n!==void 0?n(M):d("show",M))}function w(M){if(s.disable===!0)return;const R=s["onUpdate:modelValue"]!==void 0;R===!0&&(d("update:modelValue",!1),r=M,me(()=>{r===M&&(r=void 0)})),(s.modelValue===null||R===!1)&&P(M)}function P(M){e.value!==!1&&(e.value=!1,d("beforeHide",M),a!==void 0?a(M):d("hide",M))}function p(M){s.disable===!0&&M===!0?s["onUpdate:modelValue"]!==void 0&&d("update:modelValue",!1):M===!0!==e.value&&(M===!0?b:P)(r)}le(()=>s.modelValue,p),l!==void 0&&Fn(i)===!0&&le(()=>h.$route.fullPath,()=>{l.value===!0&&e.value===!0&&w()}),o===!0&&Ge(()=>{p(s.modelValue)});const N={show:C,hide:w,toggle:m};return Object.assign(h,N),N}let To=1,Bo=document.body;function Eo(e,t){const l=document.createElement("div");if(l.id=t!==void 0?`q-portal--${t}--${To++}`:e,Nl.globalNodes!==void 0){const n=Nl.globalNodes.class;n!==void 0&&(l.className=n)}return Bo.appendChild(l),l}function Fo(e){e.remove()}const Pt=[];function Ao(e,t){do{if(e.$options.name==="QMenu"){if(e.hide(t),e.$props.separateClosePopup===!0)return ml(e)}else if(e.__qPortal===!0){const l=ml(e);return l!==void 0&&l.$options.name==="QPopupProxy"?(e.hide(t),l):e}e=ml(e)}while(e!=null)}const $o=he({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function Io(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 Yn(e,t,l,n){const a=Q(!1),o=Q(!1);let i=null;const s={},d=n==="dialog"&&Io(e);function h(m){if(m===!0){Gl(s),o.value=!0;return}o.value=!1,a.value===!1&&(d===!1&&i===null&&(i=Eo(!1,n)),a.value=!0,Pt.push(e.proxy),Xa(s))}function r(m){if(o.value=!1,m!==!0)return;Gl(s),a.value=!1;const C=Pt.indexOf(e.proxy);C!==-1&&Pt.splice(C,1),i!==null&&(Fo(i),i=null)}return ya(()=>{r(!0)}),e.proxy.__qPortal=!0,Ye(e.proxy,"contentEl",()=>t.value),{showPortal:h,hidePortal:r,portalIsActive:a,portalIsAccessible:o,renderPortal:()=>d===!0?l():a.value===!0?[v(Sa,{to:i},v($o,l))]:void 0}}const Gn={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Jn(e,t=()=>{},l=()=>{}){return{transitionProps:c(()=>{const n=`q-transition--${e.transitionShow||t()}`,a=`q-transition--${e.transitionHide||l()}`;return{appear:!0,enterFromClass:`${n}-enter-from`,enterActiveClass:`${n}-enter-active`,enterToClass:`${n}-enter-to`,leaveFromClass:`${a}-leave-from`,leaveActiveClass:`${a}-leave-active`,leaveToClass:`${a}-leave-to`}}),transitionStyle:c(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function ea(){let e;const t=ue();function l(){e=void 0}return Et(l),_e(l),{removeTick:l,registerTick(n){e=n,me(()=>{e===n&&(An(t)===!1&&e(),e=void 0)})}}}function ta(){let e=null;const t=ue();function l(){e!==null&&(clearTimeout(e),e=null)}return Et(l),_e(l),{removeTimeout:l,registerTimeout(n,a){l(),An(t)===!1&&(e=setTimeout(()=>{e=null,n()},a))}}}const rt=[];let xt;function Ho(e){xt=e.keyCode===27}function Oo(){xt===!0&&(xt=!1)}function Lo(e){xt===!0&&(xt=!1,nl(e,27)===!0&&rt[rt.length-1](e))}function la(e){window[e]("keydown",Ho),window[e]("blur",Oo),window[e]("keyup",Lo),xt=!1}function na(e){Le.is.desktop===!0&&(rt.push(e),rt.length===1&&la("addEventListener"))}function el(e){const t=rt.indexOf(e);t!==-1&&(rt.splice(t,1),rt.length===0&&la("removeEventListener"))}const ut=[];function aa(e){ut[ut.length-1](e)}function oa(e){Le.is.desktop===!0&&(ut.push(e),ut.length===1&&document.body.addEventListener("focusin",aa))}function Vl(e){const t=ut.indexOf(e);t!==-1&&(ut.splice(t,1),ut.length===0&&document.body.removeEventListener("focusin",aa))}const{notPassiveCapture:tl}=Be,st=[];function ll(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let l=Pt.length-1;for(;l>=0;){const n=Pt[l].$;if(n.type.name==="QTooltip"){l--;continue}if(n.type.name!=="QDialog")break;if(n.props.seamless!==!0)return;l--}for(let n=st.length-1;n>=0;n--){const a=st[n];if((a.anchorEl.value===null||a.anchorEl.value.contains(t)===!1)&&(t===document.body||a.innerRef.value!==null&&a.innerRef.value.contains(t)===!1))e.qClickOutside=!0,a.onClickOutside(e);else return}}function Do(e){st.push(e),st.length===1&&(document.addEventListener("mousedown",ll,tl),document.addEventListener("touchstart",ll,tl))}function nn(e){const t=st.findIndex(l=>l===e);t!==-1&&(st.splice(t,1),st.length===0&&(document.removeEventListener("mousedown",ll,tl),document.removeEventListener("touchstart",ll,tl)))}let an,on;function rn(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 zo(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const Ml={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{Ml[`${e}#ltr`]=e,Ml[`${e}#rtl`]=e});function un(e,t){const l=e.split(" ");return{vertical:l[0],horizontal:Ml[`${l[1]}#${t===!0?"rtl":"ltr"}`]}}function No(e,t){let{top:l,left:n,right:a,bottom:o,width:i,height:s}=e.getBoundingClientRect();return t!==void 0&&(l-=t[1],n-=t[0],o+=t[1],a+=t[0],i+=t[0],s+=t[1]),{top:l,bottom:o,height:s,left:n,right:a,width:i,middle:n+(a-n)/2,center:l+(o-l)/2}}function jo(e,t,l){let{top:n,left:a}=e.getBoundingClientRect();return n+=t.top,a+=t.left,l!==void 0&&(n+=l[1],a+=l[0]),{top:n,bottom:n+1,height:1,left:a,right:a+1,width:1,middle:a,center:n}}function Wo(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function sn(e,t,l,n){return{top:e[l.vertical]-t[n.vertical],left:e[l.horizontal]-t[n.horizontal]}}function ia(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{ia(e,t+1)},10);return}const{targetEl:l,offset:n,anchorEl:a,anchorOrigin:o,selfOrigin:i,absoluteOffset:s,fit:d,cover:h,maxHeight:r,maxWidth:m}=e;if(Le.is.ios===!0&&window.visualViewport!==void 0){const _=document.body.style,{offsetLeft:O,offsetTop:D}=window.visualViewport;O!==an&&(_.setProperty("--q-pe-left",O+"px"),an=O),D!==on&&(_.setProperty("--q-pe-top",D+"px"),on=D)}const{scrollLeft:C,scrollTop:b}=l,w=s===void 0?No(a,h===!0?[0,0]:n):jo(a,s,n);Object.assign(l.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:m||"100vw",maxHeight:r||"100vh",visibility:"visible"});const{offsetWidth:P,offsetHeight:p}=l,{elWidth:N,elHeight:M}=d===!0||h===!0?{elWidth:Math.max(w.width,P),elHeight:h===!0?Math.max(w.height,p):p}:{elWidth:P,elHeight:p};let R={maxWidth:m,maxHeight:r};(d===!0||h===!0)&&(R.minWidth=w.width+"px",h===!0&&(R.minHeight=w.height+"px")),Object.assign(l.style,R);const E=Wo(N,M);let q=sn(w,E,o,i);if(s===void 0||n===void 0)Sl(q,w,E,o,i);else{const{top:_,left:O}=q;Sl(q,w,E,o,i);let D=!1;if(q.top!==_){D=!0;const x=2*n[1];w.center=w.top-=x,w.bottom-=x+2}if(q.left!==O){D=!0;const x=2*n[0];w.middle=w.left-=x,w.right-=x+2}D===!0&&(q=sn(w,E,o,i),Sl(q,w,E,o,i))}R={top:q.top+"px",left:q.left+"px"},q.maxHeight!==void 0&&(R.maxHeight=q.maxHeight+"px",w.height>q.maxHeight&&(R.minHeight=R.maxHeight)),q.maxWidth!==void 0&&(R.maxWidth=q.maxWidth+"px",w.width>q.maxWidth&&(R.minWidth=R.maxWidth)),Object.assign(l.style,R),l.scrollTop!==b&&(l.scrollTop=b),l.scrollLeft!==C&&(l.scrollLeft=C)}function Sl(e,t,l,n,a){const o=l.bottom,i=l.right,s=Ha(),d=window.innerHeight-s,h=document.body.clientWidth;if(e.top<0||e.top+o>d)if(a.vertical==="center")e.top=t[n.vertical]>d/2?Math.max(0,d-o):0,e.maxHeight=Math.min(o,d);else if(t[n.vertical]>d/2){const r=Math.min(d,n.vertical==="center"?t.center:n.vertical===a.vertical?t.bottom:t.top);e.maxHeight=Math.min(o,r),e.top=Math.max(0,r-o)}else e.top=Math.max(0,n.vertical==="center"?t.center:n.vertical===a.vertical?t.top:t.bottom),e.maxHeight=Math.min(o,d-e.top);if(e.left<0||e.left+i>h)if(e.maxWidth=Math.min(i,h),a.horizontal==="middle")e.left=t[n.horizontal]>h/2?Math.max(0,h-i):0;else if(t[n.horizontal]>h/2){const r=Math.min(h,n.horizontal==="middle"?t.middle:n.horizontal===a.horizontal?t.right:t.left);e.maxWidth=Math.min(i,r),e.left=Math.max(0,r-e.maxWidth)}else e.left=Math.max(0,n.horizontal==="middle"?t.middle:n.horizontal===a.horizontal?t.left:t.right),e.maxWidth=Math.min(i,h-e.left)}var Qo=he({name:"QMenu",inheritAttrs:!1,props:{...Mo,...Un,...ze,...Gn,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:rn},self:{type:String,validator:rn},offset:{type:Array,validator:zo},scrollTarget:In,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Zn,"click","escapeKey"],setup(e,{slots:t,emit:l,attrs:n}){let a=null,o,i,s;const d=ue(),{proxy:h}=d,{$q:r}=h,m=Q(null),C=Q(!1),b=c(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),w=Ne(e,r),{registerTick:P,removeTick:p}=ea(),{registerTimeout:N}=ta(),{transitionProps:M,transitionStyle:R}=Jn(e),{localScrollTarget:E,changeScrollEvent:q,unconfigureScrollTarget:_}=Po(e,L),{anchorEl:O,canShow:D}=Ro({showing:C}),{hide:x}=Xn({showing:C,canShow:D,handleShow:ee,handleHide:g,hideOnRouteChange:b,processOnMount:!0}),{showPortal:k,hidePortal:T,renderPortal:y}=Yn(d,m,ae,"menu"),j={anchorEl:O,innerRef:m,onClickOutside(B){if(e.persistent!==!0&&C.value===!0)return x(B),(B.type==="touchstart"||B.target.classList.contains("q-dialog__backdrop"))&&Me(B),!0}},K=c(()=>un(e.anchor||(e.cover===!0?"center middle":"bottom start"),r.lang.rtl)),te=c(()=>e.cover===!0?K.value:un(e.self||"top start",r.lang.rtl)),F=c(()=>(e.square===!0?" q-menu--square":"")+(w.value===!0?" q-menu--dark q-dark":"")),Z=c(()=>e.autoClose===!0?{onClick:Y}:{}),A=c(()=>C.value===!0&&e.persistent!==!0);le(A,B=>{B===!0?(na(V),Do(j)):(el(V),nn(j))});function W(){ol(()=>{let B=m.value;B&&B.contains(document.activeElement)!==!0&&(B=B.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||B.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||B.querySelector("[autofocus], [data-autofocus]")||B,B.focus({preventScroll:!0}))})}function ee(B){if(a=e.noRefocus===!1?document.activeElement:null,oa(ne),k(),L(),o=void 0,B!==void 0&&(e.touchPosition||e.contextMenu)){const se=wa(B);if(se.left!==void 0){const{top:pe,left:We}=O.value.getBoundingClientRect();o={left:se.left-We,top:se.top-pe}}}i===void 0&&(i=le(()=>r.screen.width+"|"+r.screen.height+"|"+e.self+"|"+e.anchor+"|"+r.lang.rtl,I)),e.noFocus!==!0&&document.activeElement.blur(),P(()=>{I(),e.noFocus!==!0&&W()}),N(()=>{r.platform.is.ios===!0&&(s=e.autoClose,m.value.click()),I(),k(!0),l("show",B)},e.transitionDuration)}function g(B){p(),T(),f(!0),a!==null&&(B===void 0||B.qClickOutside!==!0)&&(((B&&B.type.indexOf("key")===0?a.closest('[tabindex]:not([tabindex^="-"])'):void 0)||a).focus(),a=null),N(()=>{T(!0),l("hide",B)},e.transitionDuration)}function f(B){o=void 0,i!==void 0&&(i(),i=void 0),(B===!0||C.value===!0)&&(Vl(ne),_(),nn(j),el(V)),B!==!0&&(a=null)}function L(){(O.value!==null||e.scrollTarget!==void 0)&&(E.value=Hn(O.value,e.scrollTarget),q(E.value,I))}function Y(B){s!==!0?(Ao(h,B),l("click",B)):s=!1}function ne(B){A.value===!0&&e.noFocus!==!0&&$n(m.value,B.target)!==!0&&W()}function V(B){l("escapeKey"),x(B)}function I(){ia({targetEl:m.value,offset:e.offset,anchorEl:O.value,anchorOrigin:K.value,selfOrigin:te.value,absoluteOffset:o,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function ae(){return v(Xt,M.value,()=>C.value===!0?v("div",{role:"menu",...n,ref:m,tabindex:-1,class:["q-menu q-position-engine scroll"+F.value,n.class],style:[n.style,R.value],...Z.value},we(t.default)):null)}return _e(f),Object.assign(h,{focus:W,updatePosition:I}),y}});function Ko(e,t,l){let n;function a(){n!==void 0&&(Yt.remove(n),n=void 0)}return _e(()=>{e.value===!0&&a()}),{removeFromHistory:a,addToHistory(){n={condition:()=>l.value===!0,handler:t},Yt.add(n)}}}let Vt=0,wl,pl,Rt,xl=!1,cn,dn,fn,at=null;function Uo(e){Zo(e)&&Me(e)}function Zo(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=pa(e),l=e.shiftKey&&!e.deltaX,n=!l&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),a=l||n?e.deltaY:e.deltaX;for(let o=0;o0&&i.scrollTop+i.clientHeight===i.scrollHeight:a<0&&i.scrollLeft===0?!0:a>0&&i.scrollLeft+i.clientWidth===i.scrollWidth}return!0}function vn(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Qt(e){xl!==!0&&(xl=!0,requestAnimationFrame(()=>{xl=!1;const{height:t}=e.target,{clientHeight:l,scrollTop:n}=document.scrollingElement;(Rt===void 0||t!==window.innerHeight)&&(Rt=l-t,document.scrollingElement.scrollTop=n),n>Rt&&(document.scrollingElement.scrollTop-=Math.ceil((n-Rt)/8))}))}function mn(e){const t=document.body,l=window.visualViewport!==void 0;if(e==="add"){const{overflowY:n,overflowX:a}=window.getComputedStyle(t);wl=Oa(window),pl=La(window),cn=t.style.left,dn=t.style.top,fn=window.location.href,t.style.left=`-${wl}px`,t.style.top=`-${pl}px`,a!=="hidden"&&(a==="scroll"||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),n!=="hidden"&&(n==="scroll"||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,Le.is.ios===!0&&(l===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",Qt,Be.passiveCapture),window.visualViewport.addEventListener("scroll",Qt,Be.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",vn,Be.passiveCapture))}Le.is.desktop===!0&&Le.is.mac===!0&&window[`${e}EventListener`]("wheel",Uo,Be.notPassive),e==="remove"&&(Le.is.ios===!0&&(l===!0?(window.visualViewport.removeEventListener("resize",Qt,Be.passiveCapture),window.visualViewport.removeEventListener("scroll",Qt,Be.passiveCapture)):window.removeEventListener("scroll",vn,Be.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=cn,t.style.top=dn,window.location.href===fn&&window.scrollTo(wl,pl),Rt=void 0)}function Xo(e){let t="add";if(e===!0){if(Vt++,at!==null){clearTimeout(at),at=null;return}if(Vt>1)return}else{if(Vt===0||(Vt--,Vt>0))return;if(t="remove",Le.is.ios===!0&&Le.is.nativeMobile===!0){at!==null&&clearTimeout(at),at=setTimeout(()=>{mn(t),at=null},100);return}}mn(t)}function Yo(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t===!0)&&(e=t,Xo(t))}}}let Kt=0;const Go={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"},gn={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]};var Jo=he({name:"QDialog",inheritAttrs:!1,props:{...Un,...Gn,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:[...Zn,"shake","click","escapeKey"],setup(e,{slots:t,emit:l,attrs:n}){const a=ue(),o=Q(null),i=Q(!1),s=Q(!1);let d=null,h=null,r,m;const C=c(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:b}=Yo(),{registerTimeout:w}=ta(),{registerTick:P,removeTick:p}=ea(),{transitionProps:N,transitionStyle:M}=Jn(e,()=>gn[e.position][0],()=>gn[e.position][1]),R=c(()=>M.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:E,hidePortal:q,portalIsAccessible:_,renderPortal:O}=Yn(a,o,ne,"dialog"),{hide:D}=Xn({showing:i,hideOnRouteChange:C,handleShow:te,handleHide:F,processOnMount:!0}),{addToHistory:x,removeFromHistory:k}=Ko(i,D,C),T=c(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${Go[e.position]}`+(s.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":"")),y=c(()=>i.value===!0&&e.seamless!==!0),j=c(()=>e.autoClose===!0?{onClick:f}:{}),K=c(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${y.value===!0?"modal":"seamless"}`,n.class]);le(()=>e.maximized,V=>{i.value===!0&&g(V)}),le(y,V=>{b(V),V===!0?(oa(Y),na(W)):(Vl(Y),el(W))});function te(V){x(),h=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,g(e.maximized),E(),s.value=!0,e.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),P(Z)):p(),w(()=>{if(a.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:I,bottom:ae}=document.activeElement.getBoundingClientRect(),{innerHeight:B}=window,se=window.visualViewport!==void 0?window.visualViewport.height:B;I>0&&ae>se/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-se,ae>=B?1/0:Math.ceil(document.scrollingElement.scrollTop+ae-se/2))),document.activeElement.scrollIntoView()}m=!0,o.value.click(),m=!1}E(!0),s.value=!1,l("show",V)},e.transitionDuration)}function F(V){p(),k(),ee(!0),s.value=!0,q(),h!==null&&(((V&&V.type.indexOf("key")===0?h.closest('[tabindex]:not([tabindex^="-"])'):void 0)||h).focus(),h=null),w(()=>{q(!0),s.value=!1,l("hide",V)},e.transitionDuration)}function Z(V){ol(()=>{let I=o.value;if(I!==null){if(V!==void 0){const ae=I.querySelector(V);if(ae!==null){ae.focus({preventScroll:!0});return}}I.contains(document.activeElement)!==!0&&(I=I.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||I.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||I.querySelector("[autofocus], [data-autofocus]")||I,I.focus({preventScroll:!0}))}})}function A(V){V&&typeof V.focus=="function"?V.focus({preventScroll:!0}):Z(),l("shake");const I=o.value;I!==null&&(I.classList.remove("q-animate--scale"),I.classList.add("q-animate--scale"),d!==null&&clearTimeout(d),d=setTimeout(()=>{d=null,o.value!==null&&(I.classList.remove("q-animate--scale"),Z())},170))}function W(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&A():(l("escapeKey"),D()))}function ee(V){d!==null&&(clearTimeout(d),d=null),(V===!0||i.value===!0)&&(g(!1),e.seamless!==!0&&(b(!1),Vl(Y),el(W))),V!==!0&&(h=null)}function g(V){V===!0?r!==!0&&(Kt<1&&document.body.classList.add("q-body--dialog"),Kt++,r=!0):r===!0&&(Kt<2&&document.body.classList.remove("q-body--dialog"),Kt--,r=!1)}function f(V){m!==!0&&(D(V),l("click",V))}function L(V){e.persistent!==!0&&e.noBackdropDismiss!==!0?D(V):e.noShake!==!0&&A()}function Y(V){e.allowFocusOutside!==!0&&_.value===!0&&$n(o.value,V.target)!==!0&&Z('[tabindex]:not([tabindex="-1"])')}Object.assign(a.proxy,{focus:Z,shake:A,__updateRefocusTarget(V){h=V||null}}),_e(ee);function ne(){return v("div",{role:"dialog","aria-modal":y.value===!0?"true":"false",...n,class:K.value},[v(Xt,{name:"q-transition--fade",appear:!0},()=>y.value===!0?v("div",{class:"q-dialog__backdrop fixed-full",style:R.value,"aria-hidden":"true",tabindex:-1,onClick:L}):null),v(Xt,N.value,()=>i.value===!0?v("div",{ref:o,class:T.value,style:M.value,tabindex:-1,...j.value},we(t.default)):null)])}return O}});function hn(e,t,l){if(l<=t)return t;const n=l-t+1;let a=t+(e-t)%n;return a["add","add-unique","toggle"].includes(e),ei=".*+?^${}()|[]\\",ti=Object.keys(il);var li=he({name:"QSelect",inheritAttrs:!1,props:{...ql,...Il,...il,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:bn},mapOptions:Boolean,emitValue: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:ql.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...Fl,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:t,emit:l}){const{proxy:n}=ue(),{$q:a}=n,o=Q(!1),i=Q(!1),s=Q(-1),d=Q(""),h=Q(!1),r=Q(!1);let m=null,C=null,b,w,P,p=null,N,M,R,E;const q=Q(null),_=Q(null),O=Q(null),D=Q(null),x=Q(null),k=Dn(e),T=zn(z),y=c(()=>Array.isArray(e.options)?e.options.length:0),j=c(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:K,virtualScrollSliceSizeComputed:te,localResetVirtualScroll:F,padVirtualScroll:Z,onVirtualScrollEvt:A,scrollTo:W,setVirtualScrollSize:ee}=Kn({virtualScrollLength:y,getVirtualScrollTarget:sl,getVirtualScrollEl:Lt,virtualScrollItemSizeComputed:j}),g=Al(),f=c(()=>{const u=e.mapOptions===!0&&e.multiple!==!0,H=e.modelValue!==void 0&&(e.modelValue!==null||u===!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&&b!==void 0?b:[],G=H.map(ie=>ul(ie,$));return e.modelValue===null&&u===!0?G.filter(ie=>ie!==null):G}return H}),L=c(()=>{const u={};return ti.forEach(H=>{const $=e[H];$!==void 0&&(u[H]=$)}),u}),Y=c(()=>e.optionsDark===null?g.isDark.value:e.optionsDark),ne=c(()=>Bt(f.value)),V=c(()=>{let u="q-field__input q-placeholder col";return e.hideSelected===!0||f.value.length===0?[u,e.inputClass]:(u+=" q-field__input--padding",e.inputClass===void 0?u:[u,e.inputClass])}),I=c(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),ae=c(()=>y.value===0),B=c(()=>f.value.map(u=>ke.value(u)).join(", ")),se=c(()=>e.displayValue!==void 0?e.displayValue:B.value),pe=c(()=>e.optionsHtml===!0?()=>!0:u=>u!=null&&u.html===!0),We=c(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||f.value.some(pe.value))),xe=c(()=>g.focused.value===!0?e.tabindex:-1),Qe=c(()=>{const u={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":o.value===!0?"true":"false","aria-controls":`${g.targetUid.value}_lb`};return s.value>=0&&(u["aria-activedescendant"]=`${g.targetUid.value}_${s.value}`),u}),Ee=c(()=>({id:`${g.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),Fe=c(()=>f.value.map((u,H)=>({index:H,opt:u,html:pe.value(u),selected:!0,removeAtIndex:rl,toggleOption:Ae,tabindex:xe.value}))),Ke=c(()=>{if(y.value===0)return[];const{from:u,to:H}=K.value;return e.options.slice(u,H).map(($,G)=>{const ie=Ue.value($)===!0,oe=ft($)===!0,be=u+G,ve={clickable:!0,active:oe,activeClass:et.value,manualFocus:!0,focused:!1,disable:ie,tabindex:-1,dense:e.optionsDense,dark:Y.value,role:"option","aria-selected":oe===!0?"true":"false",id:`${g.targetUid.value}_${be}`,onClick:()=>{Ae($)}};return ie!==!0&&(s.value===be&&(ve.focused=!0),a.platform.is.desktop===!0&&(ve.onMousemove=()=>{o.value===!0&&Ve(be)})),{index:be,opt:$,html:pe.value($),label:ke.value($),selected:ve.active,focused:ve.focused,toggleOption:Ae,setOptionIndex:Ve,itemProps:ve}})}),Je=c(()=>e.dropdownIcon!==void 0?e.dropdownIcon:a.iconSet.arrow.dropdown),kt=c(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),et=c(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),Pe=c(()=>dt(e.optionValue,"value")),ke=c(()=>dt(e.optionLabel,"label")),Ue=c(()=>dt(e.optionDisable,"disable")),tt=c(()=>f.value.map(u=>Pe.value(u))),At=c(()=>{const u={onInput:z,onChange:T,onKeydown:Ot,onKeyup:Ct,onKeypress:lt,onFocus:Ht,onClick(H){w===!0&&Ze(H)}};return u.onCompositionstart=u.onCompositionupdate=u.onCompositionend=T,u});le(f,u=>{b=u,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&g.innerLoading.value!==!0&&(i.value!==!0&&o.value!==!0||ne.value!==!0)&&(P!==!0&&yt(),(i.value===!0||o.value===!0)&&J(""))},{immediate:!0}),le(()=>e.fillInput,yt),le(o,fl),le(y,fa);function $t(u){return e.emitValue===!0?Pe.value(u):u}function ct(u){if(u!==-1&&u=e.maxValues)return;const G=e.modelValue.slice();l("add",{index:G.length,value:$}),G.push($),l("update:modelValue",G)}function Ae(u,H){if(g.editable.value!==!0||u===void 0||Ue.value(u)===!0)return;const $=Pe.value(u);if(e.multiple!==!0){H!==!0&&(X(e.fillInput===!0?ke.value(u):"",!0,!0),nt()),_.value!==null&&_.value.focus(),(f.value.length===0||_t(Pe.value(f.value[0]),$)!==!0)&&l("update:modelValue",e.emitValue===!0?$:u);return}if((w!==!0||h.value===!0)&&g.focus(),Ht(),f.value.length===0){const oe=e.emitValue===!0?$:u;l("add",{index:0,value:oe}),l("update:modelValue",e.multiple===!0?[oe]:oe);return}const G=e.modelValue.slice(),ie=tt.value.findIndex(oe=>_t(oe,$));if(ie!==-1)l("remove",{index:ie,value:G.splice(ie,1)[0]});else{if(e.maxValues!==void 0&&G.length>=e.maxValues)return;const oe=e.emitValue===!0?$:u;l("add",{index:G.length,value:oe}),G.push(oe)}l("update:modelValue",G)}function Ve(u){if(a.platform.is.desktop!==!0)return;const H=u!==-1&&u=0?ke.value(e.options[$]):N,!0))}}function ul(u,H){const $=G=>_t(Pe.value(G),u);return e.options.find($)||H.find($)||u}function dt(u,H){const $=u!==void 0?u:H;return typeof $=="function"?$:G=>G!==null&&typeof G=="object"&&$ in G?G[$]:G}function ft(u){const H=Pe.value(u);return tt.value.find($=>_t($,H))!==void 0}function Ht(u){e.useInput===!0&&_.value!==null&&(u===void 0||_.value===u.target&&u.target.value===B.value)&&_.value.select()}function vt(u){nl(u,27)===!0&&o.value===!0&&(Ze(u),nt(),yt()),l("keyup",u)}function Ct(u){const{value:H}=u.target;if(u.keyCode!==void 0){vt(u);return}if(u.target.value="",m!==null&&(clearTimeout(m),m=null),C!==null&&(clearTimeout(C),C=null),yt(),typeof H=="string"&&H.length!==0){const $=H.toLocaleLowerCase(),G=oe=>{const be=e.options.find(ve=>oe.value(ve).toLocaleLowerCase()===$);return be===void 0?!1:(f.value.indexOf(be)===-1?Ae(be):nt(),!0)},ie=oe=>{G(Pe)!==!0&&(G(ke)===!0||oe===!0||J(H,!0,()=>ie(!0)))};ie()}else g.clearValue(u)}function lt(u){l("keypress",u)}function Ot(u){if(l("keydown",u),Tn(u)===!0)return;const H=d.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),$=u.shiftKey!==!0&&e.multiple!==!0&&(s.value!==-1||H===!0);if(u.keyCode===27){Oe(u);return}if(u.keyCode===9&&$===!1){ht();return}if(u.target===void 0||u.target.id!==g.targetUid.value||g.editable.value!==!0)return;if(u.keyCode===40&&g.innerLoading.value!==!0&&o.value===!1){Me(u),bt();return}if(u.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&d.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?ct(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&l("update:modelValue",null);return}(u.keyCode===35||u.keyCode===36)&&(typeof d.value!="string"||d.value.length===0)&&(Me(u),s.value=-1,$e(u.keyCode===36?1:-1,e.multiple)),(u.keyCode===33||u.keyCode===34)&&te.value!==void 0&&(Me(u),s.value=Math.max(-1,Math.min(y.value,s.value+(u.keyCode===33?-1:1)*te.value.view)),$e(u.keyCode===33?1:-1,e.multiple)),(u.keyCode===38||u.keyCode===40)&&(Me(u),$e(u.keyCode===38?-1:1,e.multiple));const G=y.value;if((R===void 0||E0&&e.useInput!==!0&&u.key!==void 0&&u.key.length===1&&u.altKey===!1&&u.ctrlKey===!1&&u.metaKey===!1&&(u.keyCode!==32||R.length!==0)){o.value!==!0&&bt(u);const ie=u.key.toLocaleLowerCase(),oe=R.length===1&&R[0]===ie;E=Date.now()+1500,oe===!1&&(Me(u),R+=ie);const be=new RegExp("^"+R.split("").map(vl=>ei.indexOf(vl)!==-1?"\\"+vl:vl).join(".*"),"i");let ve=s.value;if(oe===!0||ve<0||be.test(ke.value(e.options[ve]))!==!0)do ve=hn(ve+1,-1,G-1);while(ve!==s.value&&(Ue.value(e.options[ve])===!0||be.test(ke.value(e.options[ve]))!==!0));s.value!==ve&&me(()=>{Ve(ve),W(ve),ve>=0&&e.useInput===!0&&e.fillInput===!0&&U(ke.value(e.options[ve]),!0)});return}if(!(u.keyCode!==13&&(u.keyCode!==32||e.useInput===!0||R!=="")&&(u.keyCode!==9||$===!1))){if(u.keyCode!==9&&Me(u),s.value!==-1&&s.value{if(be){if(bn(be)!==!0)return}else be=e.newValueMode;if(X("",e.multiple!==!0,!0),oe==null)return;(be==="toggle"?Ae:It)(oe,be==="add-unique"),e.multiple!==!0&&(_.value!==null&&_.value.focus(),nt())};if(e.onNewValue!==void 0?l("newValue",d.value,ie):ie(d.value),e.multiple!==!0)return}o.value===!0?ht():g.innerLoading.value!==!0&&bt()}}function Lt(){return w===!0?x.value:O.value!==null&&O.value.contentEl!==null?O.value.contentEl:void 0}function sl(){return Lt()}function cl(){return e.hideSelected===!0?[]:t["selected-item"]!==void 0?Fe.value.map(u=>t["selected-item"](u)).slice():t.selected!==void 0?[].concat(t.selected()):e.useChips===!0?Fe.value.map((u,H)=>v(xo,{key:"option-"+H,removable:g.editable.value===!0&&Ue.value(u.opt)!==!0,dense:!0,textColor:e.color,tabindex:xe.value,onRemove(){u.removeAtIndex(H)}},()=>v("span",{class:"ellipsis",[u.html===!0?"innerHTML":"textContent"]:ke.value(u.opt)}))):[v("span",{[We.value===!0?"innerHTML":"textContent"]:se.value})]}function Dt(){if(ae.value===!0)return t["no-option"]!==void 0?t["no-option"]({inputValue:d.value}):void 0;const u=t.option!==void 0?t.option:$=>v(ko,{key:$.index,...$.itemProps},()=>v(Co,()=>v(_o,()=>v("span",{[$.html===!0?"innerHTML":"textContent"]:$.label}))));let H=Z("div",Ke.value.map(u));return t["before-options"]!==void 0&&(H=t["before-options"]().concat(H)),al(t["after-options"],H)}function S(u,H){const $=H===!0?{...Qe.value,...g.splitAttrs.attributes.value}:void 0,G={ref:H===!0?_:void 0,key:"i_t",class:V.value,style:e.inputStyle,value:d.value!==void 0?d.value:"",type:"search",...$,id:H===!0?g.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":u===!0||e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...At.value};return u!==!0&&w===!0&&(Array.isArray(G.class)===!0?G.class=[...G.class,"no-pointer-events"]:G.class+=" no-pointer-events"),v("input",G)}function z(u){m!==null&&(clearTimeout(m),m=null),C!==null&&(clearTimeout(C),C=null),!(u&&u.target&&u.target.qComposing===!0)&&(U(u.target.value||""),P=!0,N=d.value,g.focused.value!==!0&&(w!==!0||h.value===!0)&&g.focus(),e.onFilter!==void 0&&(m=setTimeout(()=>{m=null,J(d.value)},e.inputDebounce)))}function U(u,H){d.value!==u&&(d.value=u,H===!0||e.inputDebounce===0||e.inputDebounce==="0"?l("inputValue",u):C=setTimeout(()=>{C=null,l("inputValue",u)},e.inputDebounce))}function X(u,H,$){P=$!==!0,e.useInput===!0&&(U(u,!0),(H===!0||$!==!0)&&(N=u),H!==!0&&J(u))}function J(u,H,$){if(e.onFilter===void 0||H!==!0&&g.focused.value!==!0)return;g.innerLoading.value===!0?l("filterAbort"):(g.innerLoading.value=!0,r.value=!0),u!==""&&e.multiple!==!0&&f.value.length!==0&&P!==!0&&u===ke.value(f.value[0])&&(u="");const G=setTimeout(()=>{o.value===!0&&(o.value=!1)},10);p!==null&&clearTimeout(p),p=G,l("filter",u,(ie,oe)=>{(H===!0||g.focused.value===!0)&&p===G&&(clearTimeout(p),typeof ie=="function"&&ie(),r.value=!1,me(()=>{g.innerLoading.value=!1,g.editable.value===!0&&(H===!0?o.value===!0&&nt():o.value===!0?fl(!0):o.value=!0),typeof oe=="function"&&me(()=>{oe(n)}),typeof $=="function"&&me(()=>{$(n)})}))},()=>{g.focused.value===!0&&p===G&&(clearTimeout(p),g.innerLoading.value=!1,r.value=!1),o.value===!0&&(o.value=!1)})}function fe(){return v(Qo,{ref:O,class:I.value,style:e.popupContentStyle,modelValue:o.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&ae.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:Y.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:kt.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...Ee.value,onScrollPassive:A,onBeforeShow:Ol,onBeforeHide:ce,onShow:Ie},Dt)}function ce(u){Ll(u),ht()}function Ie(){ee()}function Se(u){Ze(u),_.value!==null&&_.value.focus(),h.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function mt(u){Ze(u),me(()=>{h.value=!1})}function gt(){const u=[v(wo,{class:`col-auto ${g.fieldClass.value}`,...L.value,for:g.targetUid.value,dark:Y.value,square:!0,loading:r.value,itemAligned:!1,filled:!0,stackLabel:d.value.length!==0,...g.splitAttrs.listeners.value,onFocus:Se,onBlur:mt},{...t,rawControl:()=>g.getControl(!0),before:void 0,after:void 0})];return o.value===!0&&u.push(v("div",{ref:x,class:I.value+" scroll",style:e.popupContentStyle,...Ee.value,onClick:Oe,onScrollPassive:A},Dt())),v(Jo,{ref:D,modelValue:i.value,position:e.useInput===!0?"top":void 0,transitionShow:M,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:Ol,onBeforeHide:dl,onHide:ca,onShow:da},()=>v("div",{class:"q-select__dialog"+(Y.value===!0?" q-select__dialog--dark q-dark":"")+(h.value===!0?" q-select__dialog--focused":"")},u))}function dl(u){Ll(u),D.value!==null&&D.value.__updateRefocusTarget(g.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),g.focused.value=!1}function ca(u){nt(),g.focused.value===!1&&l("blur",u),yt()}function da(){const u=document.activeElement;(u===null||u.id!==g.targetUid.value)&&_.value!==null&&_.value!==u&&_.value.focus(),ee()}function ht(){i.value!==!0&&(s.value=-1,o.value===!0&&(o.value=!1),g.focused.value===!1&&(p!==null&&(clearTimeout(p),p=null),g.innerLoading.value===!0&&(l("filterAbort"),g.innerLoading.value=!1,r.value=!1)))}function bt(u){g.editable.value===!0&&(w===!0?(g.onControlFocusin(u),i.value=!0,me(()=>{g.focus()})):g.focus(),e.onFilter!==void 0?J(d.value):(ae.value!==!0||t["no-option"]!==void 0)&&(o.value=!0))}function nt(){i.value=!1,ht()}function yt(){e.useInput===!0&&X(e.multiple!==!0&&e.fillInput===!0&&f.value.length!==0&&ke.value(f.value[0])||"",!0,!0)}function fl(u){let H=-1;if(u===!0){if(f.value.length!==0){const $=Pe.value(f.value[0]);H=e.options.findIndex(G=>_t(Pe.value(G),$))}F(H)}Ve(H)}function fa(u,H){o.value===!0&&g.innerLoading.value===!1&&(F(-1,!0),me(()=>{o.value===!0&&g.innerLoading.value===!1&&(u>H?F():fl(!0))}))}function Hl(){i.value===!1&&O.value!==null&&O.value.updatePosition()}function Ol(u){u!==void 0&&Ze(u),l("popupShow",u),g.hasPopupOpen=!0,g.onControlFocusin(u)}function Ll(u){u!==void 0&&Ze(u),l("popupHide",u),g.hasPopupOpen=!1,g.onControlFocusout(u)}function Dl(){w=a.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?t["no-option"]!==void 0||e.onFilter!==void 0||ae.value===!1:!0),M=a.platform.is.ios===!0&&w===!0&&e.useInput===!0?"fade":e.transitionShow}return Rn(Dl),xa(Hl),Dl(),_e(()=>{m!==null&&clearTimeout(m),C!==null&&clearTimeout(C)}),Object.assign(n,{showPopup:bt,hidePopup:nt,removeAtIndex:ct,add:It,toggleOption:Ae,getOptionIndex:()=>s.value,setOptionIndex:Ve,moveOptionSelection:$e,filter:J,updateMenuPosition:Hl,updateInputValue:X,isOptionSelected:ft,getEmittingOptionValue:$t,isOptionDisabled:(...u)=>Ue.value.apply(null,u)===!0,getOptionValue:(...u)=>Pe.value.apply(null,u),getOptionLabel:(...u)=>ke.value.apply(null,u)}),Object.assign(g,{innerValue:f,fieldClass:c(()=>`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:q,targetRef:_,hasValue:ne,showPopup:bt,floatingLabel:c(()=>e.hideSelected!==!0&&ne.value===!0||typeof d.value=="number"||d.value.length!==0||Bt(e.displayValue)),getControlChild:()=>{if(g.editable.value!==!1&&(i.value===!0||ae.value!==!0||t["no-option"]!==void 0))return w===!0?gt():fe();g.hasPopupOpen===!0&&(g.hasPopupOpen=!1)},controlEvents:{onFocusin(u){g.onControlFocusin(u)},onFocusout(u){g.onControlFocusout(u,()=>{yt(),ht()})},onClick(u){if(Oe(u),w!==!0&&o.value===!0){ht(),_.value!==null&&_.value.focus();return}bt(u)}},getControl:u=>{const H=cl(),$=u===!0||i.value!==!0||w!==!0;if(e.useInput===!0)H.push(S(u,$));else if(g.editable.value===!0){const ie=$===!0?Qe.value:void 0;H.push(v("input",{ref:$===!0?_:void 0,key:"d_t",class:"q-select__focus-target",id:$===!0?g.targetUid.value:void 0,value:se.value,readonly:!0,"data-autofocus":u===!0||e.autofocus===!0||void 0,...ie,onKeydown:Ot,onKeyup:vt,onKeypress:lt})),$===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&H.push(v("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:Ct}))}if(k.value!==void 0&&e.disable!==!0&&tt.value.length!==0){const ie=tt.value.map(oe=>v("option",{value:oe,selected:!0}));H.push(v("select",{class:"hidden",name:k.value,multiple:e.multiple},ie))}const G=e.useInput===!0||$!==!0?void 0:g.splitAttrs.attributes.value;return v("div",{class:"q-field__native row items-center",...G,...g.splitAttrs.listeners.value},H)},getInnerAppend:()=>e.loading!==!0&&r.value!==!0&&e.hideDropdownIcon!==!0?[v(De,{class:"q-select__dropdown-icon"+(o.value===!0?" rotate-180":""),name:Je.value})]:null}),$l(g)}});const ni={xs:2,sm:4,md:6,lg:10,xl:14};function yn(e,t,l){return{transform:t===!0?`translateX(${l.lang.rtl===!0?"-":""}100%) scale3d(${-e},1,1)`:`scale3d(${e},1,1)`}}var ai=he({name:"QLinearProgress",props:{...ze,...Bl,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(e,{slots:t}){const{proxy:l}=ue(),n=Ne(e,l.$q),a=El(e,ni),o=c(()=>e.indeterminate===!0||e.query===!0),i=c(()=>e.reverse!==e.query),s=c(()=>({...a.value!==null?a.value:{},"--q-linear-progress-speed":`${e.animationSpeed}ms`})),d=c(()=>"q-linear-progress"+(e.color!==void 0?` text-${e.color}`:"")+(e.reverse===!0||e.query===!0?" q-linear-progress--reverse":"")+(e.rounded===!0?" rounded-borders":"")),h=c(()=>yn(e.buffer!==void 0?e.buffer:1,i.value,l.$q)),r=c(()=>`with${e.instantFeedback===!0?"out":""}-transition`),m=c(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${r.value} q-linear-progress__track--${n.value===!0?"dark":"light"}`+(e.trackColor!==void 0?` bg-${e.trackColor}`:"")),C=c(()=>yn(o.value===!0?1:e.value,i.value,l.$q)),b=c(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${r.value} q-linear-progress__model--${o.value===!0?"in":""}determinate`),w=c(()=>({width:`${e.value*100}%`})),P=c(()=>`q-linear-progress__stripe absolute-${e.reverse===!0?"right":"left"} q-linear-progress__stripe--${r.value}`);return()=>{const p=[v("div",{class:m.value,style:h.value}),v("div",{class:b.value,style:C.value})];return e.stripe===!0&&o.value===!1&&p.push(v("div",{class:P.value,style:w.value})),v("div",{class:d.value,style:s.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":e.indeterminate===!0?void 0:e.value},al(t.default,p))}}});function oi(e,t){const l=Q(null),n=c(()=>e.disable===!0?null:v("span",{ref:l,class:"no-outline",tabindex:-1}));function a(o){const i=t.value;o!==void 0&&o.type.indexOf("key")===0?i!==null&&document.activeElement!==i&&i.contains(document.activeElement)===!0&&i.focus():l.value!==null&&(o===void 0||i!==null&&i.contains(o.target)===!0)&&l.value.focus()}return{refocusTargetEl:n,refocusTarget:a}}var ii={xs:30,sm:35,md:40,lg:50,xl:60};const ri={...ze,...Bl,...Il,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]},ui=["update:modelValue"];function si(e,t){const{props:l,slots:n,emit:a,proxy:o}=ue(),{$q:i}=o,s=Ne(l,i),d=Q(null),{refocusTargetEl:h,refocusTarget:r}=oi(l,d),m=El(l,ii),C=c(()=>l.val!==void 0&&Array.isArray(l.modelValue)),b=c(()=>{const y=St(l.val);return C.value===!0?l.modelValue.findIndex(j=>St(j)===y):-1}),w=c(()=>C.value===!0?b.value!==-1:St(l.modelValue)===St(l.trueValue)),P=c(()=>C.value===!0?b.value===-1:St(l.modelValue)===St(l.falseValue)),p=c(()=>w.value===!1&&P.value===!1),N=c(()=>l.disable===!0?-1:l.tabindex||0),M=c(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(l.disable===!0?" disabled":"")+(s.value===!0?` q-${e}--dark`:"")+(l.dense===!0?` q-${e}--dense`:"")+(l.leftLabel===!0?" reverse":"")),R=c(()=>{const y=w.value===!0?"truthy":P.value===!0?"falsy":"indet",j=l.color!==void 0&&(l.keepColor===!0||(e==="toggle"?w.value===!0:P.value!==!0))?` text-${l.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${y}${j}`}),E=c(()=>{const y={type:"checkbox"};return l.name!==void 0&&Object.assign(y,{".checked":w.value,"^checked":w.value===!0?"checked":void 0,name:l.name,value:C.value===!0?l.val:l.trueValue}),y}),q=lo(E),_=c(()=>{const y={tabindex:N.value,role:e==="toggle"?"switch":"checkbox","aria-label":l.label,"aria-checked":p.value===!0?"mixed":w.value===!0?"true":"false"};return l.disable===!0&&(y["aria-disabled"]="true"),y});function O(y){y!==void 0&&(Me(y),r(y)),l.disable!==!0&&a("update:modelValue",D(),y)}function D(){if(C.value===!0){if(w.value===!0){const y=l.modelValue.slice();return y.splice(b.value,1),y}return l.modelValue.concat([l.val])}if(w.value===!0){if(l.toggleOrder!=="ft"||l.toggleIndeterminate===!1)return l.falseValue}else if(P.value===!0){if(l.toggleOrder==="ft"||l.toggleIndeterminate===!1)return l.trueValue}else return l.toggleOrder!=="ft"?l.trueValue:l.falseValue;return l.indeterminateValue}function x(y){(y.keyCode===13||y.keyCode===32)&&Me(y)}function k(y){(y.keyCode===13||y.keyCode===32)&&O(y)}const T=t(w,p);return Object.assign(o,{toggle:O}),()=>{const y=T();l.disable!==!0&&q(y,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const j=[v("div",{class:R.value,style:m.value,"aria-hidden":"true"},y)];h.value!==null&&j.push(h.value);const K=l.label!==void 0?al(n.default,[l.label]):we(n.default);return K!==void 0&&j.push(v("div",{class:`q-${e}__label q-anchor--skip`},K)),v("div",{ref:d,class:M.value,..._.value,onClick:O,onKeydown:x,onKeyup:k},j)}}const ci=v("div",{key:"svg",class:"q-checkbox__bg absolute"},[v("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[v("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),v("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]);var kl=he({name:"QCheckbox",props:ri,emits:ui,setup(e){function t(l,n){const a=c(()=>(l.value===!0?e.checkedIcon:n.value===!0?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>a.value!==null?[v("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[v(De,{class:"q-checkbox__icon",name:a.value})])]:[ci]}return si("checkbox",t)}});let Mt=0;const di={fullscreen:Boolean,noRouteFullscreenExit:Boolean},fi=["update:fullscreen","fullscreen"];function vi(){const e=ue(),{props:t,emit:l,proxy:n}=e;let a,o,i;const s=Q(!1);Fn(e)===!0&&le(()=>n.$route.fullPath,()=>{t.noRouteFullscreenExit!==!0&&r()}),le(()=>t.fullscreen,m=>{s.value!==m&&d()}),le(s,m=>{l("update:fullscreen",m),l("fullscreen",m)});function d(){s.value===!0?r():h()}function h(){s.value!==!0&&(s.value=!0,i=n.$el.parentNode,i.replaceChild(o,n.$el),document.body.appendChild(n.$el),Mt++,Mt===1&&document.body.classList.add("q-body--fullscreen-mixin"),a={handler:r},Yt.add(a))}function r(){s.value===!0&&(a!==void 0&&(Yt.remove(a),a=void 0),i.replaceChild(n.$el,o),s.value=!1,Mt=Math.max(0,Mt-1),Mt===0&&(document.body.classList.remove("q-body--fullscreen-mixin"),n.$el.scrollIntoView!==void 0&&setTimeout(()=>{n.$el.scrollIntoView()})))}return Pl(()=>{o=document.createElement("span")}),Ge(()=>{t.fullscreen===!0&&h()}),_e(r),Object.assign(n,{toggleFullscreen:d,setFullscreen:h,exitFullscreen:r}),{inFullscreen:s,toggleFullscreen:d}}function mi(e,t){return new Date(e)-new Date(t)}const gi={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:e=>e==="ad"||e==="da",default:"ad"}};function hi(e,t,l,n){const a=c(()=>{const{sortBy:s}=t.value;return s&&l.value.find(d=>d.name===s)||null}),o=c(()=>e.sortMethod!==void 0?e.sortMethod:(s,d,h)=>{const r=l.value.find(b=>b.name===d);if(r===void 0||r.field===void 0)return s;const m=h===!0?-1:1,C=typeof r.field=="function"?b=>r.field(b):b=>b[r.field];return s.sort((b,w)=>{let P=C(b),p=C(w);return r.rawSort!==void 0?r.rawSort(P,p,b,w)*m:P==null?-1*m:p==null?1*m:r.sort!==void 0?r.sort(P,p,b,w)*m:Cl(P)===!0&&Cl(p)===!0?(P-p)*m:jl(P)===!0&&jl(p)===!0?mi(P,p)*m:typeof P=="boolean"&&typeof p=="boolean"?(P-p)*m:([P,p]=[P,p].map(N=>(N+"").toLocaleString().toLowerCase()),PC.name===s);m!==void 0&&m.sortOrder&&(d=m.sortOrder)}let{sortBy:h,descending:r}=t.value;h!==s?(h=s,r=d==="da"):e.binaryStateSort===!0?r=!r:r===!0?d==="ad"?h=null:r=!1:d==="ad"?r=!0:h=null,n({sortBy:h,descending:r,page:1})}return{columnToSort:a,computedSortMethod:o,sort:i}}const bi={filter:[String,Object],filterMethod:Function};function yi(e,t){const l=c(()=>e.filterMethod!==void 0?e.filterMethod:(n,a,o,i)=>{const s=a?a.toLowerCase():"";return n.filter(d=>o.some(h=>{const r=i(h,d)+"";return(r==="undefined"||r==="null"?"":r.toLowerCase()).indexOf(s)!==-1}))});return le(()=>e.filter,()=>{me(()=>{t({page:1},!0)})},{deep:!0}),{computedFilterMethod:l}}function Si(e,t){for(const l in t)if(t[l]!==e[l])return!1;return!0}function Sn(e){return e.page<1&&(e.page=1),e.rowsPerPage!==void 0&&e.rowsPerPage<1&&(e.rowsPerPage=0),e}const wi={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function pi(e,t){const{props:l,emit:n}=e,a=Q(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:l.rowsPerPageOptions.length!==0?l.rowsPerPageOptions[0]:5},l.pagination)),o=c(()=>{const r=l["onUpdate:pagination"]!==void 0?{...a.value,...l.pagination}:a.value;return Sn(r)}),i=c(()=>o.value.rowsNumber!==void 0);function s(r){d({pagination:r,filter:l.filter})}function d(r={}){me(()=>{n("request",{pagination:r.pagination||o.value,filter:r.filter||l.filter,getCellValue:t})})}function h(r,m){const C=Sn({...o.value,...r});if(Si(o.value,C)===!0){i.value===!0&&m===!0&&s(C);return}if(i.value===!0){s(C);return}l.pagination!==void 0&&l["onUpdate:pagination"]!==void 0?n("update:pagination",C):a.value=C}return{innerPagination:a,computedPagination:o,isServerSide:i,requestServerInteraction:d,setPagination:h}}function xi(e,t,l,n,a,o){const{props:i,emit:s,proxy:{$q:d}}=e,h=c(()=>n.value===!0?l.value.rowsNumber||0:o.value),r=c(()=>{const{page:E,rowsPerPage:q}=l.value;return(E-1)*q}),m=c(()=>{const{page:E,rowsPerPage:q}=l.value;return E*q}),C=c(()=>l.value.page===1),b=c(()=>l.value.rowsPerPage===0?1:Math.max(1,Math.ceil(h.value/l.value.rowsPerPage))),w=c(()=>m.value===0?!0:l.value.page>=b.value),P=c(()=>(i.rowsPerPageOptions.includes(t.value.rowsPerPage)?i.rowsPerPageOptions:[t.value.rowsPerPage].concat(i.rowsPerPageOptions)).map(q=>({label:q===0?d.lang.table.allRows:""+q,value:q})));le(b,(E,q)=>{if(E===q)return;const _=l.value.page;E&&!_?a({page:1}):E<_&&a({page:E})});function p(){a({page:1})}function N(){const{page:E}=l.value;E>1&&a({page:E-1})}function M(){const{page:E,rowsPerPage:q}=l.value;m.value>0&&E*q["single","multiple","none"].includes(e)},selected:{type:Array,default:()=>[]}},Ci=["update:selected","selection"];function _i(e,t,l,n){const a=c(()=>{const w={};return e.selected.map(n.value).forEach(P=>{w[P]=!0}),w}),o=c(()=>e.selection!=="none"),i=c(()=>e.selection==="single"),s=c(()=>e.selection==="multiple"),d=c(()=>l.value.length!==0&&l.value.every(w=>a.value[n.value(w)]===!0)),h=c(()=>d.value!==!0&&l.value.some(w=>a.value[n.value(w)]===!0)),r=c(()=>e.selected.length);function m(w){return a.value[w]===!0}function C(){t("update:selected",[])}function b(w,P,p,N){t("selection",{rows:P,added:p,keys:w,evt:N});const M=i.value===!0?p===!0?P:[]:p===!0?e.selected.concat(P):e.selected.filter(R=>w.includes(n.value(R))===!1);t("update:selected",M)}return{hasSelectionMode:o,singleSelection:i,multipleSelection:s,allRowsSelected:d,someRowsSelected:h,rowsSelectedNumber:r,isRowSelected:m,clearSelection:C,updateSelection:b}}function wn(e){return Array.isArray(e)?e.slice():[]}const qi={expanded:Array},Vi=["update:expanded"];function Mi(e,t){const l=Q(wn(e.expanded));le(()=>e.expanded,i=>{l.value=wn(i)});function n(i){return l.value.includes(i)}function a(i){e.expanded!==void 0?t("update:expanded",i):l.value=i}function o(i,s){const d=l.value.slice(),h=d.indexOf(i);s===!0?h===-1&&(d.push(i),a(d)):h!==-1&&(d.splice(h,1),a(d))}return{isRowExpanded:n,setExpanded:a,updateExpanded:o}}const Ri={visibleColumns:Array};function Pi(e,t,l){const n=c(()=>{if(e.columns!==void 0)return e.columns;const s=e.rows[0];return s!==void 0?Object.keys(s).map(d=>({name:d,label:d.toUpperCase(),field:d,align:Cl(s[d])?"right":"left",sortable:!0})):[]}),a=c(()=>{const{sortBy:s,descending:d}=t.value;return(e.visibleColumns!==void 0?n.value.filter(r=>r.required===!0||e.visibleColumns.includes(r.name)===!0):n.value).map(r=>{const m=r.align||"right",C=`text-${m}`;return{...r,align:m,__iconClass:`q-table__sort-icon q-table__sort-icon--${m}`,__thClass:C+(r.headerClasses!==void 0?" "+r.headerClasses:"")+(r.sortable===!0?" sortable":"")+(r.name===s?` sorted ${d===!0?"sort-desc":""}`:""),__tdStyle:r.style!==void 0?typeof r.style!="function"?()=>r.style:r.style:()=>null,__tdClass:r.classes!==void 0?typeof r.classes!="function"?()=>C+" "+r.classes:b=>C+" "+r.classes(b):()=>C}})}),o=c(()=>{const s={};return a.value.forEach(d=>{s[d.name]=d}),s}),i=c(()=>e.tableColspan!==void 0?e.tableColspan:a.value.length+(l.value===!0?1:0));return{colList:n,computedCols:a,computedColsMap:o,computedColspan:i}}const Ut="q-table__bottom row items-center",ra={};Qn.forEach(e=>{ra[e]={}});var ua=he({name:"QTable",props:{rows:{type:Array,required:!0},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:e=>["horizontal","vertical","cell","none"].includes(e)},wrapCells:Boolean,virtualScroll:Boolean,virtualScrollTarget:{},...ra,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...ze,...di,...Ri,...bi,...wi,...qi,...ki,...gi},emits:["request","virtualScroll",...fi,...Vi,...Ci],setup(e,{slots:t,emit:l}){const n=ue(),{proxy:{$q:a}}=n,o=Ne(e,a),{inFullscreen:i,toggleFullscreen:s}=vi(),d=c(()=>typeof e.rowKey=="function"?e.rowKey:S=>S[e.rowKey]),h=Q(null),r=Q(null),m=c(()=>e.grid!==!0&&e.virtualScroll===!0),C=c(()=>" q-table__card"+(o.value===!0?" q-table__card--dark q-dark":"")+(e.square===!0?" q-table--square":"")+(e.flat===!0?" q-table--flat":"")+(e.bordered===!0?" q-table--bordered":"")),b=c(()=>`q-table__container q-table--${e.separator}-separator column no-wrap`+(e.grid===!0?" q-table--grid":C.value)+(o.value===!0?" q-table--dark":"")+(e.dense===!0?" q-table--dense":"")+(e.wrapCells===!1?" q-table--no-wrap":"")+(i.value===!0?" fullscreen scroll":"")),w=c(()=>b.value+(e.loading===!0?" q-table--loading":""));le(()=>e.tableStyle+e.tableClass+e.tableHeaderStyle+e.tableHeaderClass+b.value,()=>{m.value===!0&&r.value!==null&&r.value.reset()});const{innerPagination:P,computedPagination:p,isServerSide:N,requestServerInteraction:M,setPagination:R}=pi(n,Ve),{computedFilterMethod:E}=yi(e,R),{isRowExpanded:q,setExpanded:_,updateExpanded:O}=Mi(e,l),D=c(()=>{let S=e.rows;if(N.value===!0||S.length===0)return S;const{sortBy:z,descending:U}=p.value;return e.filter&&(S=E.value(S,e.filter,g.value,Ve)),Y.value!==null&&(S=ne.value(e.rows===S?S.slice():S,z,U)),S}),x=c(()=>D.value.length),k=c(()=>{let S=D.value;if(N.value===!0)return S;const{rowsPerPage:z}=p.value;return z!==0&&(I.value===0&&e.rows!==S?S.length>ae.value&&(S=S.slice(0,ae.value)):S=S.slice(I.value,ae.value)),S}),{hasSelectionMode:T,singleSelection:y,multipleSelection:j,allRowsSelected:K,someRowsSelected:te,rowsSelectedNumber:F,isRowSelected:Z,clearSelection:A,updateSelection:W}=_i(e,l,k,d),{colList:ee,computedCols:g,computedColsMap:f,computedColspan:L}=Pi(e,p,T),{columnToSort:Y,computedSortMethod:ne,sort:V}=hi(e,p,ee,R),{firstRowIndex:I,lastRowIndex:ae,isFirstPage:B,isLastPage:se,pagesNumber:pe,computedRowsPerPageOptions:We,computedRowsNumber:xe,firstPage:Qe,prevPage:Ee,nextPage:Fe,lastPage:Ke}=xi(n,P,p,N,R,x),Je=c(()=>k.value.length===0),kt=c(()=>{const S={};return Qn.forEach(z=>{S[z]=e[z]}),S.virtualScrollItemSize===void 0&&(S.virtualScrollItemSize=e.dense===!0?28:48),S});function et(){m.value===!0&&r.value.reset()}function Pe(){if(e.grid===!0)return Dt();const S=e.hideHeader!==!0?ft:null;if(m.value===!0){const U=t["top-row"],X=t["bottom-row"],J={default:fe=>At(fe.item,t.body,fe.index)};if(U!==void 0){const fe=v("tbody",U({cols:g.value}));J.before=S===null?()=>fe:()=>[S()].concat(fe)}else S!==null&&(J.before=S);return X!==void 0&&(J.after=()=>v("tbody",X({cols:g.value}))),v(So,{ref:r,class:e.tableClass,style:e.tableStyle,...kt.value,scrollTarget:e.virtualScrollTarget,items:k.value,type:"__qtable",tableColspan:L.value,onVirtualScroll:Ue},J)}const z=[$t()];return S!==null&&z.unshift(S()),Nn({class:["q-table__middle scroll",e.tableClass],style:e.tableStyle},z)}function ke(S,z){if(r.value!==null){r.value.scrollTo(S,z);return}S=parseInt(S,10);const U=h.value.querySelector(`tbody tr:nth-of-type(${S+1})`);if(U!==null){const X=h.value.querySelector(".q-table__middle.scroll"),J=U.offsetTop-e.virtualScrollStickySizeStart,fe=J{const mt=t[`body-cell-${Se.name}`],gt=mt!==void 0?mt:fe;return gt!==void 0?gt(rl({key:X,row:S,pageIndex:U,col:Se})):v("td",{class:Se.__tdClass(S),style:Se.__tdStyle(S)},Ve(Se,S))});if(T.value===!0){const Se=t["body-selection"],mt=Se!==void 0?Se(It({key:X,row:S,pageIndex:U})):[v(kl,{modelValue:J,color:e.color,dark:o.value,dense:e.dense,"onUpdate:modelValue":(gt,dl)=>{W([X],[S],gt,dl)}})];ce.unshift(v("td",{class:"q-table--col-auto-width"},mt))}const Ie={key:X,class:{selected:J}};return e.onRowClick!==void 0&&(Ie.class["cursor-pointer"]=!0,Ie.onClick=Se=>{l("rowClick",Se,S,U)}),e.onRowDblclick!==void 0&&(Ie.class["cursor-pointer"]=!0,Ie.onDblclick=Se=>{l("rowDblclick",Se,S,U)}),e.onRowContextmenu!==void 0&&(Ie.class["cursor-pointer"]=!0,Ie.onContextmenu=Se=>{l("rowContextmenu",Se,S,U)}),v("tr",Ie,ce)}function $t(){const S=t.body,z=t["top-row"],U=t["bottom-row"];let X=k.value.map((J,fe)=>At(J,S,fe));return z!==void 0&&(X=z({cols:g.value}).concat(X)),U!==void 0&&(X=X.concat(U({cols:g.value}))),v("tbody",X)}function ct(S){return Ae(S),S.cols=S.cols.map(z=>Ye({...z},"value",()=>Ve(z,S.row))),S}function rl(S){return Ae(S),Ye(S,"value",()=>Ve(S.col,S.row)),S}function It(S){return Ae(S),S}function Ae(S){Object.assign(S,{cols:g.value,colsMap:f.value,sort:V,rowIndex:I.value+S.pageIndex,color:e.color,dark:o.value,dense:e.dense}),T.value===!0&&Ye(S,"selected",()=>Z(S.key),(z,U)=>{W([S.key],[S.row],z,U)}),Ye(S,"expand",()=>q(S.key),z=>{O(S.key,z)})}function Ve(S,z){const U=typeof S.field=="function"?S.field(z):z[S.field];return S.format!==void 0?S.format(U,z):U}const $e=c(()=>({pagination:p.value,pagesNumber:pe.value,isFirstPage:B.value,isLastPage:se.value,firstPage:Qe,prevPage:Ee,nextPage:Fe,lastPage:Ke,inFullscreen:i.value,toggleFullscreen:s}));function ul(){const S=t.top,z=t["top-left"],U=t["top-right"],X=t["top-selection"],J=T.value===!0&&X!==void 0&&F.value>0,fe="q-table__top relative-position row items-center";if(S!==void 0)return v("div",{class:fe},[S($e.value)]);let ce;if(J===!0?ce=X($e.value).slice():(ce=[],z!==void 0?ce.push(v("div",{class:"q-table__control"},[z($e.value)])):e.title&&ce.push(v("div",{class:"q-table__control"},[v("div",{class:["q-table__title",e.titleClass]},e.title)]))),U!==void 0&&(ce.push(v("div",{class:"q-table__separator col"})),ce.push(v("div",{class:"q-table__control"},[U($e.value)]))),ce.length!==0)return v("div",{class:fe},ce)}const dt=c(()=>te.value===!0?null:K.value);function ft(){const S=Ht();return e.loading===!0&&t.loading===void 0&&S.push(v("tr",{class:"q-table__progress"},[v("th",{class:"relative-position",colspan:L.value},tt())])),v("thead",S)}function Ht(){const S=t.header,z=t["header-cell"];if(S!==void 0)return S(vt({header:!0})).slice();const U=g.value.map(X=>{const J=t[`header-cell-${X.name}`],fe=J!==void 0?J:z,ce=vt({col:X});return fe!==void 0?fe(ce):v(uo,{key:X.name,props:ce},()=>X.label)});if(y.value===!0&&e.grid!==!0)U.unshift(v("th",{class:"q-table--col-auto-width"}," "));else if(j.value===!0){const X=t["header-selection"],J=X!==void 0?X(vt({})):[v(kl,{color:e.color,modelValue:dt.value,dark:o.value,dense:e.dense,"onUpdate:modelValue":Ct})];U.unshift(v("th",{class:"q-table--col-auto-width"},J))}return[v("tr",{class:e.tableHeaderClass,style:e.tableHeaderStyle},U)]}function vt(S){return Object.assign(S,{cols:g.value,sort:V,colsMap:f.value,color:e.color,dark:o.value,dense:e.dense}),j.value===!0&&Ye(S,"selected",()=>dt.value,Ct),S}function Ct(S){te.value===!0&&(S=!1),W(k.value.map(d.value),k.value,S)}const lt=c(()=>{const S=[e.iconFirstPage||a.iconSet.table.firstPage,e.iconPrevPage||a.iconSet.table.prevPage,e.iconNextPage||a.iconSet.table.nextPage,e.iconLastPage||a.iconSet.table.lastPage];return a.lang.rtl===!0?S.reverse():S});function Ot(){if(e.hideBottom===!0)return;if(Je.value===!0){if(e.hideNoData===!0)return;const U=e.loading===!0?e.loadingLabel||a.lang.table.loading:e.filter?e.noResultsLabel||a.lang.table.noResults:e.noDataLabel||a.lang.table.noData,X=t["no-data"],J=X!==void 0?[X({message:U,icon:a.iconSet.table.warning,filter:e.filter})]:[v(De,{class:"q-table__bottom-nodata-icon",name:a.iconSet.table.warning}),U];return v("div",{class:Ut+" q-table__bottom--nodata"},J)}const S=t.bottom;if(S!==void 0)return v("div",{class:Ut},[S($e.value)]);const z=e.hideSelectedBanner!==!0&&T.value===!0&&F.value>0?[v("div",{class:"q-table__control"},[v("div",[(e.selectedRowsLabel||a.lang.table.selectedRecords)(F.value)])])]:[];if(e.hidePagination!==!0)return v("div",{class:Ut+" justify-end"},sl(z));if(z.length!==0)return v("div",{class:Ut},z)}function Lt(S){R({page:1,rowsPerPage:S.value})}function sl(S){let z;const{rowsPerPage:U}=p.value,X=e.paginationLabel||a.lang.table.pagination,J=t.pagination,fe=e.rowsPerPageOptions.length>1;if(S.push(v("div",{class:"q-table__separator col"})),fe===!0&&S.push(v("div",{class:"q-table__control"},[v("span",{class:"q-table__bottom-item"},[e.rowsPerPageLabel||a.lang.table.recordsPerPage]),v(li,{class:"q-table__select inline q-table__bottom-item",color:e.color,modelValue:U,options:We.value,displayValue:U===0?a.lang.table.allRows:U,dark:o.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":Lt})])),J!==void 0)z=J($e.value);else if(z=[v("span",U!==0?{class:"q-table__bottom-item"}:{},[U?X(I.value+1,Math.min(ae.value,xe.value),xe.value):X(1,x.value,xe.value)])],U!==0&&pe.value>1){const ce={color:e.color,round:!0,dense:!0,flat:!0};e.dense===!0&&(ce.size="sm"),pe.value>2&&z.push(v(zt,{key:"pgFirst",...ce,icon:lt.value[0],disable:B.value,onClick:Qe})),z.push(v(zt,{key:"pgPrev",...ce,icon:lt.value[1],disable:B.value,onClick:Ee}),v(zt,{key:"pgNext",...ce,icon:lt.value[2],disable:se.value,onClick:Fe})),pe.value>2&&z.push(v(zt,{key:"pgLast",...ce,icon:lt.value[3],disable:se.value,onClick:Ke}))}return S.push(v("div",{class:"q-table__control"},z)),S}function cl(){const S=e.gridHeader===!0?[v("table",{class:"q-table"},[ft()])]:e.loading===!0&&t.loading===void 0?tt():void 0;return v("div",{class:"q-table__middle"},S)}function Dt(){const S=t.item!==void 0?t.item:z=>{const U=z.cols.map(J=>v("div",{class:"q-table__grid-item-row"},[v("div",{class:"q-table__grid-item-title"},[J.label]),v("div",{class:"q-table__grid-item-value"},[J.value])]));if(T.value===!0){const J=t["body-selection"],fe=J!==void 0?J(z):[v(kl,{modelValue:z.selected,color:e.color,dark:o.value,dense:e.dense,"onUpdate:modelValue":(ce,Ie)=>{W([z.key],[z.row],ce,Ie)}})];U.unshift(v("div",{class:"q-table__grid-item-row"},fe),v(co,{dark:o.value}))}const X={class:["q-table__grid-item-card"+C.value,e.cardClass],style:e.cardStyle};return(e.onRowClick!==void 0||e.onRowDblclick!==void 0)&&(X.class[0]+=" cursor-pointer",e.onRowClick!==void 0&&(X.onClick=J=>{l("RowClick",J,z.row,z.pageIndex)}),e.onRowDblclick!==void 0&&(X.onDblclick=J=>{l("RowDblclick",J,z.row,z.pageIndex)})),v("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(z.selected===!0?" q-table__grid-item--selected":"")},[v("div",X,U)])};return v("div",{class:["q-table__grid-content row",e.cardContainerClass],style:e.cardContainerStyle},k.value.map((z,U)=>S(ct({key:d.value(z),row:z,pageIndex:U}))))}return Object.assign(n.proxy,{requestServerInteraction:M,setPagination:R,firstPage:Qe,prevPage:Ee,nextPage:Fe,lastPage:Ke,isRowSelected:Z,clearSelection:A,isRowExpanded:q,setExpanded:_,sort:V,resetVirtualScroll:et,scrollTo:ke,getCellValue:Ve}),Ca(n.proxy,{filteredSortedRows:()=>D.value,computedRows:()=>k.value,computedRowsNumber:()=>xe.value}),()=>{const S=[ul()],z={ref:h,class:w.value};return e.grid===!0?S.push(cl()):Object.assign(z,{class:[z.class,e.cardClass],style:e.cardStyle}),S.push(Pe(),Ot()),e.loading===!0&&t.loading!==void 0&&S.push(t.loading()),v("div",z,S)}}}),Ti=he({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(e,{slots:t}){const{proxy:{$q:l}}=ue(),n=Zt(_a,wt);if(n===wt)return console.error("QPage needs to be a deep child of QLayout"),wt;if(Zt(qa,wt)===wt)return console.error("QPage needs to be child of QPageContainer"),wt;const o=c(()=>{const s=(n.header.space===!0?n.header.size:0)+(n.footer.space===!0?n.footer.size:0);if(typeof e.styleFn=="function"){const d=n.isContainer.value===!0?n.containerHeight.value:l.screen.height;return e.styleFn(s,d)}return{minHeight:n.isContainer.value===!0?n.containerHeight.value-s+"px":l.screen.height===0?s!==0?`calc(100vh - ${s}px)`:"100vh":l.screen.height-s+"px"}}),i=c(()=>`q-page${e.padding===!0?" q-layout-padding":""}`);return()=>v("main",{class:i.value,style:o.value},we(t.default))}});function pn(e){const t=e.indexOf("(");if(t===-1)return[e];const l=e.slice(0,t).trim(),n=e.slice(t+1,e.indexOf(")")).trim();return[l,n]}function xn(e,t){const l=e.replace(/=\?([^?]+)\?([BQ])\?([^?]+)\?=/gi,(a,o,i,s)=>i.toUpperCase()==="B"?Bi(s,o):i.toUpperCase()==="Q"?Ei(s,o):e),n=l.indexOf(":");return{headerName:l.slice(0,n),headerData:l.slice(n+2),headerIndex:t}}function Bi(e,t){const l=atob(e);return new TextDecoder(t).decode(new Uint8Array([...l].map(n=>n.charCodeAt(0))))}function Ei(e,t){const l=e.replace(/_/g," ").replace(/=([A-Fa-f0-9]{2})/g,(n,a)=>String.fromCharCode(parseInt(a,16)));return new TextDecoder(t).decode(new Uint8Array([...l].map(n=>n.charCodeAt(0))))}function Fi(e){const t="from",l="by",n="with",a="id",o="via",i={rawHeaderDetails:e};if(!e.headerData)return i;let s=e.headerData;const d=e.headerData.lastIndexOf(";");if(d!==-1){const T=e.headerData.slice(d+1).trim();i.dateTime=new Date(T),s=e.headerData.slice(0,d)}const h=s.indexOf(`${t} `);if(h===-1)return i;const r=h+t.length+1,m=s.indexOf(`${l} `,r);if(m===-1)return i;const C=s.slice(r,m-1),b=pn(C);i.fromDomain=b[0],i.fromIpAddress=b[1];const w=m+l.length+1,P=s.indexOf(`${n} `,w);if(P===-1)return i;const p=s.slice(w,P-1),N=pn(p);i.byDomain=N[0],i.byIpAddress=N[1];const M=P+n.length+1;let R=s.length,E=M;const q=s.indexOf(`${a} `,E);let _=0,O=0;q!==-1&&(_=q+a.length+1,E=_,R=q-1);const D=s.indexOf(`${o} `,E);let x=0,k=0;return D!==-1?(x=D+o.length+1,E=x,O=D-1,k=s.length):O=s.length,M>0&&(i.with=s.slice(M,R)),_>0&&(i.id=s.slice(_,O)),x>0&&(i.via=s.slice(x,k)),i}function Ai(e){const t=e.split(/\r?\n/);if(!t)return;const l=[];let n="",a=0;for(const o of t){if(!o)break;/^\s/.test(o)?n+=" "+o.trim():(n&&(l.push(xn(n,a)),a++),n=o)}return n&&l.push(xn(n,a)),l}const kn={splitMailHeader:Ai,parseReceivedHeader:Fi},$i={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",width:"100%",height:"600",version:"1.1",viewBox:"0 0 32 32"},Ii=Va('',1),Hi={id:"letter",transform:"translate(0,-2)"},Oi=de("text",{x:"7",y:"5.9",style:{font:"normal 0.5px sans-serif",fill:"#666"}},"From",-1),Li={x:"7",y:"6.8",style:{font:"normal 0.7px sans-serif"}},Di=de("text",{x:"7",y:"7.6",style:{font:"normal 0.5px sans-serif",fill:"#666"}},"To",-1),zi={x:"7",y:"8.5",style:{font:"normal 0.7px sans-serif"}},Ni={x:"7",y:"12",style:{font:"normal 0.7px sans-serif","font-weight":"bold"}},ji=de("text",{x:"16",y:"26","dominant-baseline":"middle","text-anchor":"middle",style:{font:"normal 0.5px sans-serif",fill:"#666"}},"ReturnPath",-1),Wi={x:"16",y:"27","dominant-baseline":"middle","text-anchor":"middle",style:{font:"italic 1.0px sans-serif"}},Qi=Ft({__name:"LetterWithEnvelope",props:{from:{},to:{},subject:{},returnPath:{}},setup(e){return(t,l)=>{var n;return re(),qe("svg",$i,[Ii,de("g",Hi,[Oi,de("text",Li,Re(t.from),1),Di,de("text",zi,Re(t.to),1),de("text",Ni,Re((n=t.subject)==null?void 0:n.slice(0,50)),1)]),de("g",null,[ji,de("text",Wi,Re(t.returnPath),1)])])}}}),Ki={class:"row"},Ui={class:"col-2 bg-grey-4 q-pa-sm"},Zi={class:"col-10 q-pa-sm bg-grey text-white"},Xi={key:0,style:{margin:"0px"}},Yi={key:1,style:{"font-family":"monospace"}},je=Ft({__name:"MailDetailBox",props:{name:{},details:{default:void 0},preformatted:{type:Boolean,default:!1}},setup(e){return(t,l)=>(re(),qe("div",Ki,[de("div",Ui,Re(t.name),1),de("div",Zi,[(re(!0),qe(Tl,null,Bn(t.details,(n,a)=>(re(),qe("div",{key:`detail-${a}`},[t.preformatted?(re(),qe("pre",Xi,Re(n),1)):(re(),qe("div",Yi,Re(n),1))]))),128))])]))}});function Gi(){return Zt(Ma)}const Ji=["height","viewBox"],er=["transform"],tr=de("path",{d:"M 1,1 L 1,10 L 10,10, 10,1 Z","vector-effect":"non-scaling-stroke","shape-rendering":"crispEdges",style:{fill:"#263238"}},null,-1),lr={x:"5",y:"5.5","dominant-baseline":"middle","text-anchor":"middle",style:{font:"normal 4px sans-serif",fill:"#fff"}},nr=de("path",{d:"M 1,1 L 110,1 L 110,40 L 1,40 Z","vector-effect":"non-scaling-stroke","shape-rendering":"crispEdges",style:{fill:"none",stroke:"#263238","stroke-width":"1px"}},null,-1),ar={key:0,d:"M 111,15 L 115,20 L 111,25 Z",style:{fill:"#aaa",stroke:"#888","stroke-width":".3"}},or={x:"4",y:"20",style:{font:"bold 4px sans-serif",fill:"#666"}},ir={x:"4",y:"26",style:{font:"normal 4px sans-serif",fill:"#666"}},rr={x:"4",y:"32",style:{font:"normal 4px sans-serif",fill:"#666"}},Cn=110,_n=40,qn=5,Vn=5,ur=Ft({__name:"MailFlow",props:{receivedHeaders:{}},setup(e){const t=Gi(),l=e,n=c(()=>t.screen.gt.sm?6:2),a=c(()=>Math.ceil(l.receivedHeaders.length/n.value)),o=c(()=>n.value*(Cn+qn)),i=c(()=>a.value*(_n+Vn));function s(d){const r=Math.floor(d/n.value)*(_n+Vn);return`translate(${d%n.value*(Cn+qn)}, ${r})`}return(d,h)=>(re(),qe("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",width:"100%",height:i.value,version:"1.1",style:{width:"100%",height:"100%"},viewBox:`0 0 ${o.value} ${i.value}`},[(re(!0),qe(Tl,null,Bn(d.receivedHeaders,(r,m)=>{var C;return re(),qe("g",{key:m,transform:s(m)},[tr,de("text",lr,Re(m+1),1),nr,m"q-td"+(e.autoWidth===!0?" q-table--col-auto-width":"")+(e.noHover===!0?" q-td--no-hover":"")+" ");return()=>{if(e.props===void 0)return v("td",{class:n.value},we(t.default));const a=l.vnode.key,o=(e.props.colsMap!==void 0?e.props.colsMap[a]:null)||e.props.col;if(o===void 0)return;const{row:i}=e.props;return v("td",{class:n.value+o.__tdClass(i),style:o.__tdStyle(i)},we(t.default))}}});const sr=Ft({__name:"MailFlowTable",props:{receivedHeaders:{}},setup(e){const t=e,l=c(()=>{const a=[];a.push(void 0);for(let o=1;o(re(),Te(ua,{flat:"",bordered:"",rows:a.receivedHeaders,columns:n,"rows-per-page-options":[0],"no-paginate":""},{"body-cell-dateTime":ot(i=>[Xe(Mn,null,{default:ot(()=>[Wl(Re(i.row.dateTime.toISOString()),1)]),_:2},1024)]),"body-cell-delay":ot(i=>[Xe(Mn,null,{default:ot(()=>[l.value[i.rowIndex]!==void 0?(re(),qe(Tl,{key:0},[Wl(Re(l.value[i.rowIndex].toFixed(1))+"s ",1)],64)):Ce("",!0)]),_:2},1024)]),_:1},8,["rows"]))}});const sa=e=>(Pa("data-v-5e6a43be"),e=e(),Ta(),e),cr={key:0,class:"row"},dr={class:"col-12 col-md-6"},fr={class:"col-12 col-md-6"},vr={class:"q-my-md"},mr={class:"q-gutter-sm"},gr={key:1},hr=sa(()=>de("h2",null,"Mail Hops",-1)),br={key:0,class:"q-mt-sm"},yr=sa(()=>de("h2",null,"Other Headers",-1)),Sr=Ft({__name:"IndexPage",setup(e){const t={From:"From",To:"To",Subject:"Subject",Received:"Received",ReplyTo:"Reply-To",ReturnPath:"Return-Path",MessageId:"Message-Id",Date:"Date",DkimSignature:"DKIM-Signature",AuthenticationResults:"Authentication-Results"},l=Q(),n=Q(),a=[{name:"headerName",align:"left",label:"Name",field:"headerName",sortable:!1,style:"width: 300px"},{name:"headerData",align:"left",label:"Data",field:"headerData",sortable:!1,classes:"text-break"},{name:"headerIndex",align:"left",label:"Index",field:"headerIndex",sortable:!1,style:"width: 70px"}],o=c(()=>{if(!!l.value)try{return kn.splitMailHeader(l.value)}catch(q){console.error(q);return}}),i=c(()=>{var q;return(q=o.value)==null?void 0:q.filter(_=>_.headerName===t.ReturnPath)}),s=c(()=>{if(!(!i.value||i.value.length===0))return i.value[0].headerData}),d=c(()=>{var q;return(q=o.value)==null?void 0:q.filter(_=>_.headerName===t.From)}),h=c(()=>{if(!(!d.value||d.value.length===0))return d.value[0].headerData}),r=c(()=>{var q;return(q=o.value)==null?void 0:q.filter(_=>_.headerName===t.To)}),m=c(()=>{if(!(!r.value||r.value.length===0))return r.value[0].headerData}),C=c(()=>{var q;return(q=o.value)==null?void 0:q.filter(_=>_.headerName===t.Date)}),b=c(()=>{var q;return(q=o.value)==null?void 0:q.filter(_=>_.headerName.toLowerCase()===t.MessageId.toLowerCase())}),w=c(()=>{var q;return(q=o.value)==null?void 0:q.filter(_=>_.headerName===t.Subject)}),P=c(()=>{if(!(!w.value||w.value.length===0))return w.value[0].headerData}),p=c(()=>{var O;if(!o.value)return;const q=(O=o.value)==null?void 0:O.filter(D=>D.headerName===t.Received);if(!q)return;const _=q.filter(D=>D.headerData).map(D=>kn.parseReceivedHeader(D));return _==null||_.sort((D,x)=>D.rawHeaderDetails.headerIndex&&x.rawHeaderDetails.headerIndex?x.rawHeaderDetails.headerIndex-D.rawHeaderDetails.headerIndex:-1),_}),N=c(()=>{var q;return(q=o.value)==null?void 0:q.filter(_=>_.headerName===t.ReplyTo)}),M=c(()=>{var q;return(q=o.value)==null?void 0:q.filter(_=>_.headerName===t.AuthenticationResults)}),R=c(()=>{var q;return(q=o.value)==null?void 0:q.filter(_=>_.headerName===t.DkimSignature)}),E=c(()=>{var D,x,k;const q=Object.values(t),_=(D=o.value)==null?void 0:D.filter(T=>!q.includes(T.headerName)),O=(x=n.value)==null?void 0:x.toLowerCase();return O?(k=o.value)==null?void 0:k.filter(T=>T.headerName.toLowerCase().includes(O)):_});return(q,_)=>(re(),Te(Ti,{padding:""},{default:ot(()=>{var O,D,x,k,T,y,j,K,te;return[de("div",null,[Xe(tn,{modelValue:l.value,"onUpdate:modelValue":_[0]||(_[0]=F=>l.value=F),spellcheck:"false",placeholder:"Paste email headers here",outlined:"",type:"textarea",rows:l.value?8:30},null,8,["modelValue","rows"])]),l.value?(re(),qe("div",cr,[de("div",dr,[Xe(Qi,{to:m.value,from:h.value,subject:P.value,"return-path":s.value},null,8,["to","from","subject","return-path"])]),de("div",fr,[de("div",vr,[de("div",mr,[i.value&&i.value.length>0?(re(),Te(je,{key:0,name:"Return-Path",details:(O=i.value)==null?void 0:O.map(F=>F.headerData)},null,8,["details"])):Ce("",!0),d.value&&d.value.length>0?(re(),Te(je,{key:1,name:"From",details:(D=d.value)==null?void 0:D.map(F=>F.headerData)},null,8,["details"])):Ce("",!0),r.value&&r.value.length>0?(re(),Te(je,{key:2,name:"To",details:(x=r.value)==null?void 0:x.map(F=>F.headerData)},null,8,["details"])):Ce("",!0),N.value&&N.value.length>0?(re(),Te(je,{key:3,name:"Reply-To",details:(k=N.value)==null?void 0:k.map(F=>F.headerData)},null,8,["details"])):Ce("",!0),b.value&&b.value.length>0?(re(),Te(je,{key:4,name:"Message-Id",details:(T=b.value)==null?void 0:T.map(F=>F.headerData)},null,8,["details"])):Ce("",!0),C.value&&C.value.length>0?(re(),Te(je,{key:5,name:"Date",details:(y=C.value)==null?void 0:y.map(F=>F.headerData)},null,8,["details"])):Ce("",!0),w.value&&w.value.length>0?(re(),Te(je,{key:6,name:"Subject",details:(j=w.value)==null?void 0:j.map(F=>F.headerData)},null,8,["details"])):Ce("",!0),M.value&&M.value.length>0?(re(),Te(je,{key:7,name:"Authentication-Results",details:(K=M.value)==null?void 0:K.map(F=>F.headerData.split(";").map(Z=>Z.trim()).join(` -`)),preformatted:!0},null,8,["details"])):Ce("",!0),R.value&&R.value.length>0?(re(),Te(je,{key:8,name:"Dkim Signature",details:(te=R.value)==null?void 0:te.map(F=>F.headerData)},null,8,["details"])):Ce("",!0)])])])])):Ce("",!0),l.value?(re(),qe("div",gr,[hr,p.value?(re(),qe("div",br,[Xe(ur,{"received-headers":p.value},null,8,["received-headers"]),Xe(sr,{"received-headers":p.value},null,8,["received-headers"])])):Ce("",!0),yr,E.value?(re(),Te(ua,{key:1,flat:"",bordered:"","wrap-cells":"","rows-per-page-options":[0],rows:E.value,columns:a,class:"full-width","table-style":"min-height: 400px;"},{top:ot(()=>[Xe(tn,{modelValue:n.value,"onUpdate:modelValue":_[1]||(_[1]=F=>n.value=F),outlined:"",dense:"",debounce:"100",placeholder:"Search",class:"full-width","bg-color":n.value?"grey-3":""},{append:ot(()=>[Xe(De,{name:"search"})]),_:1},8,["modelValue","bg-color"])]),_:1},8,["rows"])):Ce("",!0)])):Ce("",!0)]}),_:1}))}});var kr=Ra(Sr,[["__scopeId","data-v-5e6a43be"]]);export{kr as default}; +import{i as va,r as Q,o as Ge,w as le,a as c,J as Rn,g as ue,b as _e,e as Zt,K as ma,L as Pn,M as Ye,H as Me,d as me,N as Et,O as Rl,h as v,I as Oe,T as Xt,P as Tn,Q as Le,c as he,F as Ze,n as ga,R as Pl,l as Be,C as nl,S as ha,D as zl,E as ba,U as Nl,q as ya,V as Sa,G as wa,W as Yt,X as pa,Y as xa,Z as _t,$ as St,a0 as Cl,a1 as jl,a2 as ka,a3 as Ca,f as wt,j as _a,k as qa,a4 as Ft,t as re,a5 as qe,a6 as de,a7 as Re,a8 as Va,a9 as Tl,aa as Bn,ab as Ma,ac as Ce,u as Te,v as ot,x as Xe,y as Wl,_ as Ra,ad as Pa,ae as Ta}from"./index.736665e3.js";import{d as De,e as Ba,h as we,a as En,b as al,u as Bl,f as El,i as Ea,j as Fa,R as Aa,k as $a,l as Ia,v as Fn,m as ml,n as An,o as $n,Q as zt}from"./QBtn.c5c37d96.js";import{s as In,g as Hn,c as Ha,b as Oa,a as La,h as Da}from"./scroll.f9bb6be7.js";let gl,Nt=0;const ye=new Array(256);for(let e=0;e<256;e++)ye[e]=(e+256).toString(16).substring(1);const za=(()=>{const e=typeof crypto!="undefined"?crypto:typeof window!="undefined"?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 l=new Uint8Array(t);return e.getRandomValues(l),l}}return t=>{const l=[];for(let n=t;n>0;n--)l.push(Math.floor(Math.random()*256));return l}})(),Ql=4096;function _l(){(gl===void 0||Nt+16>Ql)&&(Nt=0,gl=za(Ql));const e=Array.prototype.slice.call(gl,Nt,Nt+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,ye[e[0]]+ye[e[1]]+ye[e[2]]+ye[e[3]]+"-"+ye[e[4]]+ye[e[5]]+"-"+ye[e[6]]+ye[e[7]]+"-"+ye[e[8]]+ye[e[9]]+"-"+ye[e[10]]+ye[e[11]]+ye[e[12]]+ye[e[13]]+ye[e[14]]+ye[e[15]]}function Na(e){return e==null?null:e}function Kl(e,t){return e==null?t===!0?`f_${_l()}`:null:e}function ja({getValue:e,required:t=!0}={}){if(va.value===!0){const l=e!==void 0?Q(Na(e())):Q(null);return t===!0&&l.value===null&&Ge(()=>{l.value=`f_${_l()}`}),e!==void 0&&le(e,n=>{l.value=Kl(n,t)}),l}return e!==void 0?c(()=>Kl(e(),t)):Q(`f_${_l()}`)}const Ul=/^on[A-Z]/;function Wa(){const{attrs:e,vnode:t}=ue(),l={listeners:Q({}),attributes:Q({})};function n(){const a={},o={};for(const i in e)i!=="class"&&i!=="style"&&Ul.test(i)===!1&&(a[i]=e[i]);for(const i in t.props)Ul.test(i)===!0&&(o[i]=t.props[i]);l.attributes.value=a,l.listeners.value=o}return Rn(n),n(),l}const ze={dark:{type:Boolean,default:null}};function Ne(e,t){return c(()=>e.dark===null?t.dark.isActive:e.dark)}function Qa({validate:e,resetValidation:t,requiresQForm:l}){const n=Zt(ma,!1);if(n!==!1){const{props:a,proxy:o}=ue();Object.assign(o,{validate:e,resetValidation:t}),le(()=>a.disable,i=>{i===!0?(typeof t=="function"&&t(),n.unbindComponent(o)):n.bindComponent(o)}),Ge(()=>{a.disable!==!0&&n.bindComponent(o)}),_e(()=>{a.disable!==!0&&n.unbindComponent(o)})}else l===!0&&console.error("Parent QForm not found on useFormChild()!")}const Zl=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Xl=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Yl=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,jt=/^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])\)$/,Wt=/^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)\)$/,hl={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=>Zl.test(e),hexaColor:e=>Xl.test(e),hexOrHexaColor:e=>Yl.test(e),rgbColor:e=>jt.test(e),rgbaColor:e=>Wt.test(e),rgbOrRgbaColor:e=>jt.test(e)||Wt.test(e),hexOrRgbColor:e=>Zl.test(e)||jt.test(e),hexaOrRgbaColor:e=>Xl.test(e)||Wt.test(e),anyColor:e=>Yl.test(e)||jt.test(e)||Wt.test(e)},Ka=[!0,!1,"ondemand"],Ua={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>Ka.includes(e)}};function Za(e,t){const{props:l,proxy:n}=ue(),a=Q(!1),o=Q(null),i=Q(!1);Qa({validate:P,resetValidation:w});let s=0,d;const h=c(()=>l.rules!==void 0&&l.rules!==null&&l.rules.length!==0),r=c(()=>l.disable!==!0&&h.value===!0&&t.value===!1),m=c(()=>l.error===!0||a.value===!0),C=c(()=>typeof l.errorMessage=="string"&&l.errorMessage.length!==0?l.errorMessage:o.value);le(()=>l.modelValue,()=>{i.value=!0,r.value===!0&&l.lazyRules===!1&&p()});function b(){l.lazyRules!=="ondemand"&&r.value===!0&&i.value===!0&&p()}le(()=>l.reactiveRules,N=>{N===!0?d===void 0&&(d=le(()=>l.rules,b,{immediate:!0,deep:!0})):d!==void 0&&(d(),d=void 0)},{immediate:!0}),le(()=>l.lazyRules,b),le(e,N=>{N===!0?i.value=!0:r.value===!0&&l.lazyRules!=="ondemand"&&p()});function w(){s++,t.value=!1,i.value=!1,a.value=!1,o.value=null,p.cancel()}function P(N=l.modelValue){if(l.disable===!0||h.value===!1)return!0;const V=++s,R=t.value!==!0?()=>{i.value=!0}:()=>{},B=(_,H)=>{_===!0&&R(),a.value=_,o.value=H||null,t.value=!1},q=[];for(let _=0;_{if(_===void 0||Array.isArray(_)===!1||_.length===0)return V===s&&B(!1),!0;const H=_.find(D=>D===!1||typeof D=="string");return V===s&&B(H!==void 0,H),H===void 0},_=>(V===s&&(console.error(_),B(!0)),!1)))}const p=Pn(P,0);return _e(()=>{d!==void 0&&d(),p.cancel()}),Object.assign(n,{resetValidation:w,validate:P}),Ye(n,"hasError",()=>m.value),{isDirtyModel:i,hasRules:h,hasError:m,errorMessage:C,validate:P,resetValidation:w}}let it=[],Tt=[];function On(e){Tt=Tt.filter(t=>t!==e)}function Xa(e){On(e),Tt.push(e)}function Gl(e){On(e),Tt.length===0&&it.length!==0&&(it[it.length-1](),it=[])}function ol(e){Tt.length===0?e():it.push(e)}function Ya(e){it=it.filter(t=>t!==e)}function Bt(e){return e!=null&&(""+e).length!==0}const Ga={...ze,...Ua,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},il={...Ga,maxlength:[Number,String]},Fl=["update:modelValue","clear","focus","blur"];function Al({requiredForAttr:e=!0,tagProp:t,changeEvent:l=!1}={}){const{props:n,proxy:a}=ue(),o=Ne(n,a.$q),i=ja({required:e,getValue:()=>n.for});return{requiredForAttr:e,changeEvent:l,tag:t===!0?c(()=>n.tag):{value:"label"},isDark:o,editable:c(()=>n.disable!==!0&&n.readonly!==!0),innerLoading:Q(!1),focused:Q(!1),hasPopupOpen:!1,splitAttrs:Wa(),targetUid:i,rootRef:Q(null),targetRef:Q(null),controlRef:Q(null)}}function $l(e){const{props:t,emit:l,slots:n,attrs:a,proxy:o}=ue(),{$q:i}=o;let s=null;e.hasValue===void 0&&(e.hasValue=c(()=>Bt(t.modelValue))),e.emitValue===void 0&&(e.emitValue=A=>{l("update:modelValue",A)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:x,onFocusout:k}),Object.assign(e,{clearValue:E,onControlFocusin:x,onControlFocusout:k,focus:H}),e.computedCounter===void 0&&(e.computedCounter=c(()=>{if(t.counter!==!1){const A=typeof t.modelValue=="string"||typeof t.modelValue=="number"?(""+t.modelValue).length:Array.isArray(t.modelValue)===!0?t.modelValue.length:0,W=t.maxlength!==void 0?t.maxlength:t.maxValues;return A+(W!==void 0?" / "+W:"")}}));const{isDirtyModel:d,hasRules:h,hasError:r,errorMessage:m,resetValidation:C}=Za(e.focused,e.innerLoading),b=e.floatingLabel!==void 0?c(()=>t.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):c(()=>t.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),w=c(()=>t.bottomSlots===!0||t.hint!==void 0||h.value===!0||t.counter===!0||t.error!==null),P=c(()=>t.filled===!0?"filled":t.outlined===!0?"outlined":t.borderless===!0?"borderless":t.standout?"standout":"standard"),p=c(()=>`q-field row no-wrap items-start q-field--${P.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(t.rounded===!0?" q-field--rounded":"")+(t.square===!0?" q-field--square":"")+(b.value===!0?" q-field--float":"")+(V.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":"")+(r.value===!0?" q-field--error":"")+(r.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(t.hideBottomSpace!==!0&&w.value===!0?" q-field--with-bottom":"")+(t.disable===!0?" q-field--disabled":t.readonly===!0?" q-field--readonly":"")),N=c(()=>"q-field__control relative-position row no-wrap"+(t.bgColor!==void 0?` bg-${t.bgColor}`:"")+(r.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}`:"")),V=c(()=>t.labelSlot===!0||t.label!==void 0),R=c(()=>"q-field__label no-pointer-events absolute ellipsis"+(t.labelColor!==void 0&&r.value!==!0?` text-${t.labelColor}`:"")),B=c(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:b.value,modelValue:t.modelValue,emitValue:e.emitValue})),q=c(()=>{const A={};return e.targetUid.value&&(A.for=e.targetUid.value),t.disable===!0&&(A["aria-disabled"]="true"),A});function _(){const A=document.activeElement;let W=e.targetRef!==void 0&&e.targetRef.value;W&&(A===null||A.id!==e.targetUid.value)&&(W.hasAttribute("tabindex")===!0||(W=W.querySelector("[tabindex]")),W&&W!==A&&W.focus({preventScroll:!0}))}function H(){ol(_)}function D(){Ya(_);const A=document.activeElement;A!==null&&e.rootRef.value.contains(A)&&A.blur()}function x(A){s!==null&&(clearTimeout(s),s=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,l("focus",A))}function k(A,W){s!==null&&clearTimeout(s),s=setTimeout(()=>{s=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,l("blur",A)),W!==void 0&&W())})}function E(A){Me(A),i.platform.is.mobile!==!0?(e.targetRef!==void 0&&e.targetRef.value||e.rootRef.value).focus():e.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),t.type==="file"&&(e.inputRef.value.value=null),l("update:modelValue",null),e.changeEvent===!0&&l("change",null),l("clear",t.modelValue),me(()=>{const W=d.value;C(),d.value=W})}function y(A){[13,32].includes(A.keyCode)&&E(A)}function j(){const A=[];return n.prepend!==void 0&&A.push(v("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:Oe},n.prepend())),A.push(v("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},K())),r.value===!0&&t.noErrorIcon===!1&&A.push(F("error",[v(De,{name:i.iconSet.field.error,color:"negative"})])),t.loading===!0||e.innerLoading.value===!0?A.push(F("inner-loading-append",n.loading!==void 0?n.loading():[v(Ba,{color:t.color})])):t.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&A.push(F("inner-clearable-append",[v(De,{class:"q-field__focusable-action",name:t.clearIcon||i.iconSet.field.clear,tabindex:0,role:"button","aria-label":i.lang.label.clear,onKeyup:y,onClick:E})])),n.append!==void 0&&A.push(v("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:Oe},n.append())),e.getInnerAppend!==void 0&&A.push(F("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&A.push(e.getControlChild()),A}function K(){const A=[];return t.prefix!==void 0&&t.prefix!==null&&A.push(v("div",{class:"q-field__prefix no-pointer-events row items-center"},t.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&A.push(e.getShadowControl()),e.getControl!==void 0?A.push(e.getControl()):n.rawControl!==void 0?A.push(n.rawControl()):n.control!==void 0&&A.push(v("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0},n.control(B.value))),V.value===!0&&A.push(v("div",{class:R.value},we(n.label,t.label))),t.suffix!==void 0&&t.suffix!==null&&A.push(v("div",{class:"q-field__suffix no-pointer-events row items-center"},t.suffix)),A.concat(we(n.default))}function te(){let A,W;r.value===!0?m.value!==null?(A=[v("div",{role:"alert"},m.value)],W=`q--slot-error-${m.value}`):(A=we(n.error),W="q--slot-error"):(t.hideHint!==!0||e.focused.value===!0)&&(t.hint!==void 0?(A=[v("div",t.hint)],W=`q--slot-hint-${t.hint}`):(A=we(n.hint),W="q--slot-hint"));const ee=t.counter===!0||n.counter!==void 0;if(t.hideBottomSpace===!0&&ee===!1&&A===void 0)return;const g=v("div",{key:W,class:"q-field__messages col"},A);return v("div",{class:"q-field__bottom row items-start q-field__bottom--"+(t.hideBottomSpace!==!0?"animated":"stale"),onClick:Oe},[t.hideBottomSpace===!0?g:v(Xt,{name:"q-transition--field-message"},()=>g),ee===!0?v("div",{class:"q-field__counter"},n.counter!==void 0?n.counter():e.computedCounter.value):null])}function F(A,W){return W===null?null:v("div",{key:A,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},W)}let Z=!1;return Et(()=>{Z=!0}),Rl(()=>{Z===!0&&t.autofocus===!0&&o.focus()}),t.autofocus===!0&&Ge(()=>{o.focus()}),_e(()=>{s!==null&&clearTimeout(s)}),Object.assign(o,{focus:H,blur:D}),function(){const W=e.getControl===void 0&&n.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0,...q.value}:q.value;return v(e.tag.value,{ref:e.rootRef,class:[p.value,a.class],style:a.style,...W},[n.before!==void 0?v("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:Oe},n.before()):null,v("div",{class:"q-field__inner relative-position col self-stretch"},[v("div",{ref:e.controlRef,class:N.value,tabindex:-1,...e.controlEvents},j()),w.value===!0?te():null]),n.after!==void 0?v("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:Oe},n.after()):null])}}const Jl={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},Gt={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleLowerCase()}},Ln=Object.keys(Gt);Ln.forEach(e=>{Gt[e].regex=new RegExp(Gt[e].pattern)});const Ja=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+Ln.join("")+"])|(.)","g"),en=/[.*+?^${}()|[\]\\]/g,ge=String.fromCharCode(1),eo={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function to(e,t,l,n){let a,o,i,s,d,h;const r=Q(null),m=Q(b());function C(){return e.autogrow===!0||["textarea","text","search","url","tel","password"].includes(e.type)}le(()=>e.type+e.autogrow,P),le(()=>e.mask,x=>{if(x!==void 0)p(m.value,!0);else{const k=H(m.value);P(),e.modelValue!==k&&t("update:modelValue",k)}}),le(()=>e.fillMask+e.reverseFillMask,()=>{r.value===!0&&p(m.value,!0)}),le(()=>e.unmaskedValue,()=>{r.value===!0&&p(m.value)});function b(){if(P(),r.value===!0){const x=q(H(e.modelValue));return e.fillMask!==!1?D(x):x}return e.modelValue}function w(x){if(x0;j--)k+=ge;E=E.slice(0,y)+k+E.slice(y)}return E}function P(){if(r.value=e.mask!==void 0&&e.mask.length!==0&&C(),r.value===!1){s=void 0,a="",o="";return}const x=Jl[e.mask]===void 0?e.mask:Jl[e.mask],k=typeof e.fillMask=="string"&&e.fillMask.length!==0?e.fillMask.slice(0,1):"_",E=k.replace(en,"\\$&"),y=[],j=[],K=[];let te=e.reverseFillMask===!0,F="",Z="";x.replace(Ja,(g,f,L,Y,ne)=>{if(Y!==void 0){const M=Gt[Y];K.push(M),Z=M.negate,te===!0&&(j.push("(?:"+Z+"+)?("+M.pattern+"+)?(?:"+Z+"+)?("+M.pattern+"+)?"),te=!1),j.push("(?:"+Z+"+)?("+M.pattern+")?")}else if(L!==void 0)F="\\"+(L==="\\"?"":L),K.push(L),y.push("([^"+F+"]+)?"+F+"?");else{const M=f!==void 0?f:ne;F=M==="\\"?"\\\\\\\\":M.replace(en,"\\\\$&"),K.push(M),y.push("([^"+F+"]+)?"+F+"?")}});const A=new RegExp("^"+y.join("")+"("+(F===""?".":"[^"+F+"]")+"+)?"+(F===""?"":"["+F+"]*")+"$"),W=j.length-1,ee=j.map((g,f)=>f===0&&e.reverseFillMask===!0?new RegExp("^"+E+"*"+g):f===W?new RegExp("^"+g+"("+(Z===""?".":Z)+"+)?"+(e.reverseFillMask===!0?"$":E+"*")):new RegExp("^"+g));i=K,s=g=>{const f=A.exec(e.reverseFillMask===!0?g:g.slice(0,K.length+1));f!==null&&(g=f.slice(1).join(""));const L=[],Y=ee.length;for(let ne=0,M=g;netypeof g=="string"?g:ge).join(""),o=a.split(ge).join(k)}function p(x,k,E){const y=n.value,j=y.selectionEnd,K=y.value.length-j,te=H(x);k===!0&&P();const F=q(te),Z=e.fillMask!==!1?D(F):F,A=m.value!==Z;y.value!==Z&&(y.value=Z),A===!0&&(m.value=Z),document.activeElement===y&&me(()=>{if(Z===o){const ee=e.reverseFillMask===!0?o.length:0;y.setSelectionRange(ee,ee,"forward");return}if(E==="insertFromPaste"&&e.reverseFillMask!==!0){const ee=y.selectionEnd;let g=j-1;for(let f=d;f<=g&&fF.length?1:0:Math.max(0,Z.length-(Z===o?0:Math.min(F.length,K)+1))+1:j;y.setSelectionRange(ee,ee,"forward");return}if(e.reverseFillMask===!0)if(A===!0){const ee=Math.max(0,Z.length-(Z===o?0:Math.min(F.length,K+1)));ee===1&&j===1?y.setSelectionRange(ee,ee,"forward"):V.rightReverse(y,ee)}else{const ee=Z.length-K;y.setSelectionRange(ee,ee,"backward")}else if(A===!0){const ee=Math.max(0,a.indexOf(ge),Math.min(F.length,j)-1);V.right(y,ee)}else{const ee=j-1;V.right(y,ee)}});const W=e.unmaskedValue===!0?H(Z):Z;String(e.modelValue)!==W&&(e.modelValue!==null||W!=="")&&l(W,!0)}function N(x,k,E){const y=q(H(x.value));k=Math.max(0,a.indexOf(ge),Math.min(y.length,k)),d=k,x.setSelectionRange(k,E,"forward")}const V={left(x,k){const E=a.slice(k-1).indexOf(ge)===-1;let y=Math.max(0,k-1);for(;y>=0;y--)if(a[y]===ge){k=y,E===!0&&k++;break}if(y<0&&a[k]!==void 0&&a[k]!==ge)return V.right(x,0);k>=0&&x.setSelectionRange(k,k,"backward")},right(x,k){const E=x.value.length;let y=Math.min(E,k+1);for(;y<=E;y++)if(a[y]===ge){k=y;break}else a[y-1]===ge&&(k=y);if(y>E&&a[k-1]!==void 0&&a[k-1]!==ge)return V.left(x,E);x.setSelectionRange(k,k,"forward")},leftReverse(x,k){const E=w(x.value.length);let y=Math.max(0,k-1);for(;y>=0;y--)if(E[y-1]===ge){k=y;break}else if(E[y]===ge&&(k=y,y===0))break;if(y<0&&E[k]!==void 0&&E[k]!==ge)return V.rightReverse(x,0);k>=0&&x.setSelectionRange(k,k,"backward")},rightReverse(x,k){const E=x.value.length,y=w(E),j=y.slice(0,k+1).indexOf(ge)===-1;let K=Math.min(E,k+1);for(;K<=E;K++)if(y[K-1]===ge){k=K,k>0&&j===!0&&k--;break}if(K>E&&y[k-1]!==void 0&&y[k-1]!==ge)return V.leftReverse(x,E);x.setSelectionRange(k,k,"forward")}};function R(x){t("click",x),h=void 0}function B(x){if(t("keydown",x),Tn(x)===!0||x.altKey===!0)return;const k=n.value,E=k.selectionStart,y=k.selectionEnd;if(x.shiftKey||(h=void 0),x.keyCode===37||x.keyCode===39){x.shiftKey&&h===void 0&&(h=k.selectionDirection==="forward"?E:y);const j=V[(x.keyCode===39?"right":"left")+(e.reverseFillMask===!0?"Reverse":"")];if(x.preventDefault(),j(k,h===E?y:E),x.shiftKey){const K=k.selectionStart;k.setSelectionRange(Math.min(h,K),Math.max(h,K),"forward")}}else x.keyCode===8&&e.reverseFillMask!==!0&&E===y?(V.left(k,E),k.setSelectionRange(k.selectionStart,y,"backward")):x.keyCode===46&&e.reverseFillMask===!0&&E===y&&(V.rightReverse(k,y),k.setSelectionRange(E,k.selectionEnd,"forward"))}function q(x){if(x==null||x==="")return"";if(e.reverseFillMask===!0)return _(x);const k=i;let E=0,y="";for(let j=0;j=0&&y!==-1;K--){const te=k[K];let F=x[y];if(typeof te=="string")j=te+j,F===te&&y--;else if(F!==void 0&&te.regex.test(F))do j=(te.transform!==void 0?te.transform(F):F)+j,y--,F=x[y];while(E===K&&F!==void 0&&te.regex.test(F));else return j}return j}function H(x){return typeof x!="string"||s===void 0?typeof x=="number"?s(""+x):x:s(x)}function D(x){return o.length-x.length<=0?x:e.reverseFillMask===!0&&x.length!==0?o.slice(0,-x.length)+x:x+o.slice(x.length)}return{innerValue:m,hasMask:r,moveCursorForPaste:N,updateMaskValue:p,onMaskedKeydown:B,onMaskedClick:R}}const Il={name:String};function lo(e={}){return(t,l,n)=>{t[l](v("input",{class:"hidden"+(n||""),...e.value}))}}function Dn(e){return c(()=>e.name||e.for)}function no(e,t){function l(){const n=e.modelValue;try{const a="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(n)===n&&("length"in n?Array.from(n):[n]).forEach(o=>{a.items.add(o)}),{files:a.files}}catch{return{files:void 0}}}return t===!0?c(()=>{if(e.type==="file")return l()}):c(l)}const ao=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,oo=/[\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,io=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,ro=/[a-z0-9_ -]$/i;function zn(e){return function(l){if(l.type==="compositionend"||l.type==="change"){if(l.target.qComposing!==!0)return;l.target.qComposing=!1,e(l)}else l.type==="compositionupdate"&&l.target.qComposing!==!0&&typeof l.data=="string"&&(Le.is.firefox===!0?ro.test(l.data)===!1:ao.test(l.data)===!0||oo.test(l.data)===!0||io.test(l.data)===!0)===!0&&(l.target.qComposing=!0)}}var tn=he({name:"QInput",inheritAttrs:!1,props:{...il,...eo,...Il,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...Fl,"paste","change","keydown","click","animationend"],setup(e,{emit:t,attrs:l}){const{proxy:n}=ue(),{$q:a}=n,o={};let i=NaN,s,d,h=null,r;const m=Q(null),C=Dn(e),{innerValue:b,hasMask:w,moveCursorForPaste:P,updateMaskValue:p,onMaskedKeydown:N,onMaskedClick:V}=to(e,t,F,m),R=no(e,!0),B=c(()=>Bt(b.value)),q=zn(K),_=Al({changeEvent:!0}),H=c(()=>e.type==="textarea"||e.autogrow===!0),D=c(()=>H.value===!0||["text","search","url","tel","password"].includes(e.type)),x=c(()=>{const f={..._.splitAttrs.listeners.value,onInput:K,onPaste:j,onChange:A,onBlur:W,onFocus:Ze};return f.onCompositionstart=f.onCompositionupdate=f.onCompositionend=q,w.value===!0&&(f.onKeydown=N,f.onClick=V),e.autogrow===!0&&(f.onAnimationend=te),f}),k=c(()=>{const f={tabindex:0,"data-autofocus":e.autofocus===!0||void 0,rows:e.type==="textarea"?6:void 0,"aria-label":e.label,name:C.value,..._.splitAttrs.attributes.value,id:_.targetUid.value,maxlength:e.maxlength,disabled:e.disable===!0,readonly:e.readonly===!0};return H.value===!1&&(f.type=e.type),e.autogrow===!0&&(f.rows=1),f});le(()=>e.type,()=>{m.value&&(m.value.value=e.modelValue)}),le(()=>e.modelValue,f=>{if(w.value===!0){if(d===!0&&(d=!1,String(f)===i))return;p(f)}else b.value!==f&&(b.value=f,e.type==="number"&&o.hasOwnProperty("value")===!0&&(s===!0?s=!1:delete o.value));e.autogrow===!0&&me(Z)}),le(()=>e.autogrow,f=>{f===!0?me(Z):m.value!==null&&l.rows>0&&(m.value.style.height="auto")}),le(()=>e.dense,()=>{e.autogrow===!0&&me(Z)});function E(){ol(()=>{const f=document.activeElement;m.value!==null&&m.value!==f&&(f===null||f.id!==_.targetUid.value)&&m.value.focus({preventScroll:!0})})}function y(){m.value!==null&&m.value.select()}function j(f){if(w.value===!0&&e.reverseFillMask!==!0){const L=f.target;P(L,L.selectionStart,L.selectionEnd)}t("paste",f)}function K(f){if(!f||!f.target)return;if(e.type==="file"){t("update:modelValue",f.target.files);return}const L=f.target.value;if(f.target.qComposing===!0){o.value=L;return}if(w.value===!0)p(L,!1,f.inputType);else if(F(L),D.value===!0&&f.target===document.activeElement){const{selectionStart:Y,selectionEnd:ne}=f.target;Y!==void 0&&ne!==void 0&&me(()=>{f.target===document.activeElement&&L.indexOf(f.target.value)===0&&f.target.setSelectionRange(Y,ne)})}e.autogrow===!0&&Z()}function te(f){t("animationend",f),Z()}function F(f,L){r=()=>{h=null,e.type!=="number"&&o.hasOwnProperty("value")===!0&&delete o.value,e.modelValue!==f&&i!==f&&(i=f,L===!0&&(d=!0),t("update:modelValue",f),me(()=>{i===f&&(i=NaN)})),r=void 0},e.type==="number"&&(s=!0,o.value=f),e.debounce!==void 0?(h!==null&&clearTimeout(h),o.value=f,h=setTimeout(r,e.debounce)):r()}function Z(){requestAnimationFrame(()=>{const f=m.value;if(f!==null){const L=f.parentNode.style,{scrollTop:Y}=f,{overflowY:ne,maxHeight:M}=a.platform.is.firefox===!0?{}:window.getComputedStyle(f),I=ne!==void 0&&ne!=="scroll";I===!0&&(f.style.overflowY="hidden"),L.marginBottom=f.scrollHeight-1+"px",f.style.height="1px",f.style.height=f.scrollHeight+"px",I===!0&&(f.style.overflowY=parseInt(M,10){m.value!==null&&(m.value.value=b.value!==void 0?b.value:"")})}function ee(){return o.hasOwnProperty("value")===!0?o.value:b.value!==void 0?b.value:""}_e(()=>{W()}),Ge(()=>{e.autogrow===!0&&Z()}),Object.assign(_,{innerValue:b,fieldClass:c(()=>`q-${H.value===!0?"textarea":"input"}`+(e.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:c(()=>e.type!=="file"&&typeof e.shadowText=="string"&&e.shadowText.length!==0),inputRef:m,emitValue:F,hasValue:B,floatingLabel:c(()=>B.value===!0&&(e.type!=="number"||isNaN(b.value)===!1)||Bt(e.displayValue)),getControl:()=>v(H.value===!0?"textarea":"input",{ref:m,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,...k.value,...x.value,...e.type!=="file"?{value:ee()}:R.value}),getShadowControl:()=>v("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(H.value===!0?"":" text-no-wrap")},[v("span",{class:"invisible"},ee()),v("span",e.shadowText)])});const g=$l(_);return Object.assign(n,{focus:E,select:y,getNativeElement:()=>m.value}),Ye(n,"nativeEl",()=>m.value),g}}),uo=he({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(e,{slots:t,emit:l}){const n=ue(),{proxy:{$q:a}}=n,o=i=>{l("click",i)};return()=>{if(e.props===void 0)return v("th",{class:e.autoWidth===!0?"q-table--col-auto-width":"",onClick:o},we(t.default));let i,s;const d=n.vnode.key;if(d){if(i=e.props.colsMap[d],i===void 0)return}else i=e.props.col;if(i.sortable===!0){const r=i.align==="right"?"unshift":"push";s=En(t.default,[]),s[r](v(De,{class:i.__iconClass,name:a.iconSet.table.arrowUp}))}else s=we(t.default);const h={class:i.__thClass+(e.autoWidth===!0?" q-table--col-auto-width":""),style:i.headerStyle,onClick:r=>{i.sortable===!0&&e.props.sort(i),o(r)}};return v("th",h,s)}}});const so={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},bl={xs:2,sm:4,md:8,lg:16,xl:24};var co=he({name:"QSeparator",props:{...ze,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const t=ue(),l=Ne(e,t.proxy.$q),n=c(()=>e.vertical===!0?"vertical":"horizontal"),a=c(()=>` q-separator--${n.value}`),o=c(()=>e.inset!==!1?`${a.value}-${so[e.inset]}`:""),i=c(()=>`q-separator${a.value}${o.value}`+(e.color!==void 0?` bg-${e.color}`:"")+(l.value===!0?" q-separator--dark":"")),s=c(()=>{const d={};if(e.size!==void 0&&(d[e.vertical===!0?"width":"height"]=e.size),e.spaced!==!1){const h=e.spaced===!0?`${bl.md}px`:e.spaced in bl?`${bl[e.spaced]}px`:e.spaced,r=e.vertical===!0?["Left","Right"]:["Top","Bottom"];d[`margin${r[0]}`]=d[`margin${r[1]}`]=h}return d});return()=>v("hr",{class:i.value,style:s.value,"aria-orientation":n.value})}}),fo=he({name:"QList",props:{...ze,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(e,{slots:t}){const l=ue(),n=Ne(e,l.proxy.$q),a=c(()=>"q-list"+(e.bordered===!0?" q-list--bordered":"")+(e.dense===!0?" q-list--dense":"")+(e.separator===!0?" q-list--separator":"")+(n.value===!0?" q-list--dark":"")+(e.padding===!0?" q-list--padding":""));return()=>v(e.tag,{class:a.value},we(t.default))}});const vo=["horizontal","vertical","cell","none"];var mo=he({name:"QMarkupTable",props:{...ze,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:e=>vo.includes(e)}},setup(e,{slots:t}){const l=ue(),n=Ne(e,l.proxy.$q),a=c(()=>`q-markup-table q-table__container q-table__card q-table--${e.separator}-separator`+(n.value===!0?" q-table--dark q-table__card--dark q-dark":"")+(e.dense===!0?" q-table--dense":"")+(e.flat===!0?" q-table--flat":"")+(e.bordered===!0?" q-table--bordered":"")+(e.square===!0?" q-table--square":"")+(e.wrapCells===!1?" q-table--no-wrap":""));return()=>v("div",{class:a.value},[v("table",{class:"q-table"},we(t.default))])}});function Nn(e,t){return v("div",e,[v("table",{class:"q-table"},t)])}let Jt=!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,Jt=e.scrollLeft>=0,e.remove()}const He=1e3,go=["start","center","end","start-force","center-force","end-force"],jn=Array.prototype.filter,ho=window.getComputedStyle(document.body).overflowAnchor===void 0?ga:function(e,t){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;const l=e.children||[];jn.call(l,a=>a.dataset&&a.dataset.qVsAnchor!==void 0).forEach(a=>{delete a.dataset.qVsAnchor});const n=l[t];n&&n.dataset&&(n.dataset.qVsAnchor="")}))};function pt(e,t){return e+t}function yl(e,t,l,n,a,o,i,s){const d=e===window?document.scrollingElement||document.documentElement:e,h=a===!0?"offsetWidth":"offsetHeight",r={scrollStart:0,scrollViewSize:-i-s,scrollMaxSize:0,offsetStart:-i,offsetEnd:-s};if(a===!0?(e===window?(r.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,r.scrollViewSize+=document.documentElement.clientWidth):(r.scrollStart=d.scrollLeft,r.scrollViewSize+=d.clientWidth),r.scrollMaxSize=d.scrollWidth,o===!0&&(r.scrollStart=(Jt===!0?r.scrollMaxSize-r.scrollViewSize:0)-r.scrollStart)):(e===window?(r.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,r.scrollViewSize+=document.documentElement.clientHeight):(r.scrollStart=d.scrollTop,r.scrollViewSize+=d.clientHeight),r.scrollMaxSize=d.scrollHeight),l!==null)for(let m=l.previousElementSibling;m!==null;m=m.previousElementSibling)m.classList.contains("q-virtual-scroll--skip")===!1&&(r.offsetStart+=m[h]);if(n!==null)for(let m=n.nextElementSibling;m!==null;m=m.nextElementSibling)m.classList.contains("q-virtual-scroll--skip")===!1&&(r.offsetEnd+=m[h]);if(t!==e){const m=d.getBoundingClientRect(),C=t.getBoundingClientRect();a===!0?(r.offsetStart+=C.left-m.left,r.offsetEnd-=C.width):(r.offsetStart+=C.top-m.top,r.offsetEnd-=C.height),e!==window&&(r.offsetStart+=r.scrollStart),r.offsetEnd+=r.scrollMaxSize-r.offsetStart}return r}function ln(e,t,l,n){t==="end"&&(t=(e===window?document.body:e)[l===!0?"scrollWidth":"scrollHeight"]),e===window?l===!0?(n===!0&&(t=(Jt===!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):l===!0?(n===!0&&(t=(Jt===!0?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function qt(e,t,l,n){if(l>=n)return 0;const a=t.length,o=Math.floor(l/He),i=Math.floor((n-1)/He)+1;let s=e.slice(o,i).reduce(pt,0);return l%He!==0&&(s-=t.slice(o*He,l).reduce(pt,0)),n%He!==0&&n!==a&&(s-=t.slice(n,i*He).reduce(pt,0)),s}const Wn={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]},Qn=Object.keys(Wn),ql={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...Wn};function Kn({virtualScrollLength:e,getVirtualScrollTarget:t,getVirtualScrollEl:l,virtualScrollItemSizeComputed:n}){const a=ue(),{props:o,emit:i,proxy:s}=a,{$q:d}=s;let h,r,m,C=[],b;const w=Q(0),P=Q(0),p=Q({}),N=Q(null),V=Q(null),R=Q(null),B=Q({from:0,to:0}),q=c(()=>o.tableColspan!==void 0?o.tableColspan:100);n===void 0&&(n=c(()=>o.virtualScrollItemSize));const _=c(()=>n.value+";"+o.virtualScrollHorizontal),H=c(()=>_.value+";"+o.virtualScrollSliceRatioBefore+";"+o.virtualScrollSliceRatioAfter);le(H,()=>{F()}),le(_,D);function D(){te(r,!0)}function x(g){te(g===void 0?r:g)}function k(g,f){const L=t();if(L==null||L.nodeType===8)return;const Y=yl(L,l(),N.value,V.value,o.virtualScrollHorizontal,d.lang.rtl,o.virtualScrollStickySizeStart,o.virtualScrollStickySizeEnd);m!==Y.scrollViewSize&&F(Y.scrollViewSize),y(L,Y,Math.min(e.value-1,Math.max(0,parseInt(g,10)||0)),0,go.indexOf(f)!==-1?f:r!==-1&&g>r?"end":"start")}function E(){const g=t();if(g==null||g.nodeType===8)return;const f=yl(g,l(),N.value,V.value,o.virtualScrollHorizontal,d.lang.rtl,o.virtualScrollStickySizeStart,o.virtualScrollStickySizeEnd),L=e.value-1,Y=f.scrollMaxSize-f.offsetStart-f.offsetEnd-P.value;if(h===f.scrollStart)return;if(f.scrollMaxSize<=0){y(g,f,0,0);return}m!==f.scrollViewSize&&F(f.scrollViewSize),j(B.value.from);const ne=Math.floor(f.scrollMaxSize-Math.max(f.scrollViewSize,f.offsetEnd)-Math.min(b[L],f.scrollViewSize/2));if(ne>0&&Math.ceil(f.scrollStart)>=ne){y(g,f,L,f.scrollMaxSize-f.offsetEnd-C.reduce(pt,0));return}let M=0,I=f.scrollStart-f.offsetStart,ae=I;if(I<=Y&&I+f.scrollViewSize>=w.value)I-=w.value,M=B.value.from,ae=I;else for(let T=0;I>=C[T]&&M0&&M-f.scrollViewSize?(M++,ae=I):ae=b[M]+I;y(g,f,M,ae)}function y(g,f,L,Y,ne){const M=typeof ne=="string"&&ne.indexOf("-force")!==-1,I=M===!0?ne.replace("-force",""):ne,ae=I!==void 0?I:"start";let T=Math.max(0,L-p.value[ae]),se=T+p.value.total;se>e.value&&(se=e.value,T=Math.max(0,se-p.value.total)),h=f.scrollStart;const pe=T!==B.value.from||se!==B.value.to;if(pe===!1&&I===void 0){A(L);return}const{activeElement:We}=document,xe=R.value;pe===!0&&xe!==null&&xe!==We&&xe.contains(We)===!0&&(xe.addEventListener("focusout",K),setTimeout(()=>{xe!==null&&xe.removeEventListener("focusout",K)})),ho(xe,L-T);const Qe=I!==void 0?b.slice(T,L).reduce(pt,0):0;if(pe===!0){const Ee=se>=B.value.from&&T<=B.value.to?B.value.to:se;B.value={from:T,to:Ee},w.value=qt(C,b,0,T),P.value=qt(C,b,se,e.value),requestAnimationFrame(()=>{B.value.to!==se&&h===f.scrollStart&&(B.value={from:B.value.from,to:se},P.value=qt(C,b,se,e.value))})}requestAnimationFrame(()=>{if(h!==f.scrollStart)return;pe===!0&&j(T);const Ee=b.slice(T,L).reduce(pt,0),Fe=Ee+f.offsetStart+w.value,Ke=Fe+b[L];let Je=Fe+Y;if(I!==void 0){const kt=Ee-Qe,et=f.scrollStart+kt;Je=M!==!0&&etT.classList&&T.classList.contains("q-virtual-scroll--skip")===!1),Y=L.length,ne=o.virtualScrollHorizontal===!0?T=>T.getBoundingClientRect().width:T=>T.offsetHeight;let M=g,I,ae;for(let T=0;T=Y;M--)b[M]=L;const ne=Math.floor((e.value-1)/He);C=[];for(let M=0;M<=ne;M++){let I=0;const ae=Math.min((M+1)*He,e.value);for(let T=M*He;T=0?(j(B.value.from),me(()=>{k(g)})):W()}function F(g){if(g===void 0&&typeof window!="undefined"){const I=t();I!=null&&I.nodeType!==8&&(g=yl(I,l(),N.value,V.value,o.virtualScrollHorizontal,d.lang.rtl,o.virtualScrollStickySizeStart,o.virtualScrollStickySizeEnd).scrollViewSize)}m=g;const f=parseFloat(o.virtualScrollSliceRatioBefore)||0,L=parseFloat(o.virtualScrollSliceRatioAfter)||0,Y=1+f+L,ne=g===void 0||g<=0?1:Math.ceil(g/n.value),M=Math.max(1,ne,Math.ceil((o.virtualScrollSliceSize>0?o.virtualScrollSliceSize:10)/Y));p.value={total:Math.ceil(M*Y),start:Math.ceil(M*f),center:Math.ceil(M*(.5+f)),end:Math.ceil(M*(1+f)),view:ne}}function Z(g,f){const L=o.virtualScrollHorizontal===!0?"width":"height",Y={["--q-virtual-scroll-item-"+L]:n.value+"px"};return[g==="tbody"?v(g,{class:"q-virtual-scroll__padding",key:"before",ref:N},[v("tr",[v("td",{style:{[L]:`${w.value}px`,...Y},colspan:q.value})])]):v(g,{class:"q-virtual-scroll__padding",key:"before",ref:N,style:{[L]:`${w.value}px`,...Y}}),v(g,{class:"q-virtual-scroll__content",key:"content",ref:R,tabindex:-1},f.flat()),g==="tbody"?v(g,{class:"q-virtual-scroll__padding",key:"after",ref:V},[v("tr",[v("td",{style:{[L]:`${P.value}px`,...Y},colspan:q.value})])]):v(g,{class:"q-virtual-scroll__padding",key:"after",ref:V,style:{[L]:`${P.value}px`,...Y}})]}function A(g){r!==g&&(o.onVirtualScroll!==void 0&&i("virtualScroll",{index:g,from:B.value.from,to:B.value.to-1,direction:g{F()});let ee=!1;return Et(()=>{ee=!0}),Rl(()=>{if(ee!==!0)return;const g=t();h!==void 0&&g!==void 0&&g!==null&&g.nodeType!==8?ln(g,h,o.virtualScrollHorizontal,d.lang.rtl):k(r)}),_e(()=>{W.cancel()}),Object.assign(s,{scrollTo:k,reset:D,refresh:x}),{virtualScrollSliceRange:B,virtualScrollSliceSizeComputed:p,setVirtualScrollSize:F,onVirtualScrollEvt:W,localResetVirtualScroll:te,padVirtualScroll:Z,scrollTo:k,reset:D,refresh:x}}const bo={list:fo,table:mo},yo=["list","table","__qtable"];var So=he({name:"QVirtualScroll",props:{...ql,type:{type:String,default:"list",validator:e=>yo.includes(e)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:In},setup(e,{slots:t,attrs:l}){let n;const a=Q(null),o=c(()=>e.itemsSize>=0&&e.itemsFn!==void 0?parseInt(e.itemsSize,10):Array.isArray(e.items)?e.items.length:0),{virtualScrollSliceRange:i,localResetVirtualScroll:s,padVirtualScroll:d,onVirtualScrollEvt:h}=Kn({virtualScrollLength:o,getVirtualScrollTarget:w,getVirtualScrollEl:b}),r=c(()=>{if(o.value===0)return[];const V=(R,B)=>({index:i.value.from+B,item:R});return e.itemsFn===void 0?e.items.slice(i.value.from,i.value.to).map(V):e.itemsFn(i.value.from,i.value.to-i.value.from).map(V)}),m=c(()=>"q-virtual-scroll q-virtual-scroll"+(e.virtualScrollHorizontal===!0?"--horizontal":"--vertical")+(e.scrollTarget!==void 0?"":" scroll")),C=c(()=>e.scrollTarget!==void 0?{}:{tabindex:0});le(o,()=>{s()}),le(()=>e.scrollTarget,()=>{p(),P()});function b(){return a.value.$el||a.value}function w(){return n}function P(){n=Hn(b(),e.scrollTarget),n.addEventListener("scroll",h,Be.passive)}function p(){n!==void 0&&(n.removeEventListener("scroll",h,Be.passive),n=void 0)}function N(){let V=d(e.type==="list"?"div":"tbody",r.value.map(t.default));return t.before!==void 0&&(V=t.before().concat(V)),al(t.after,V)}return Pl(()=>{s()}),Ge(()=>{P()}),Rl(()=>{P()}),Et(()=>{p()}),_e(()=>{p()}),()=>{if(t.default===void 0){console.error("QVirtualScroll: default scoped slot is required for rendering");return}return e.type==="__qtable"?Nn({ref:a,class:"q-table__middle "+m.value},N()):v(bo[e.type],{...l,ref:a,class:[l.class,m.value],...C.value},N)}}}),wo=he({name:"QField",inheritAttrs:!1,props:{...il,tag:{type:String,default:"label"}},emits:Fl,setup(){return $l(Al({tagProp:!0}))}});const po={xs:8,sm:10,md:14,lg:20,xl:24};var xo=he({name:"QChip",props:{...ze,...Bl,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:l}){const{proxy:{$q:n}}=ue(),a=Ne(e,n),o=El(e,po),i=c(()=>e.selected===!0||e.icon!==void 0),s=c(()=>e.selected===!0?e.iconSelected||n.iconSet.chip.selected:e.icon),d=c(()=>e.iconRemove||n.iconSet.chip.remove),h=c(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),r=c(()=>{const p=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}`:"")+(p?` text-${p} 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":"")+(h.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square===!0?" q-chip--square":"")+(a.value===!0?" q-chip--dark q-dark":"")}),m=c(()=>{const p=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},N={...p,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||n.lang.label.remove};return{chip:p,remove:N}});function C(p){p.keyCode===13&&b(p)}function b(p){e.disable||(l("update:selected",!e.selected),l("click",p))}function w(p){(p.keyCode===void 0||p.keyCode===13)&&(Me(p),e.disable===!1&&(l("update:modelValue",!1),l("remove")))}function P(){const p=[];h.value===!0&&p.push(v("div",{class:"q-focus-helper"})),i.value===!0&&p.push(v(De,{class:"q-chip__icon q-chip__icon--left",name:s.value}));const N=e.label!==void 0?[v("div",{class:"ellipsis"},[e.label])]:void 0;return p.push(v("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},Fa(t.default,N))),e.iconRight&&p.push(v(De,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&p.push(v(De,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:d.value,...m.value.remove,onClick:w,onKeyup:w})),p}return()=>{if(e.modelValue===!1)return;const p={class:r.value,style:o.value};return h.value===!0&&Object.assign(p,m.value.chip,{onClick:b,onKeyup:C}),Ea("div",p,P(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[Aa,e.ripple]])}}}),ko=he({name:"QItem",props:{...ze,...$a,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:l}){const{proxy:{$q:n}}=ue(),a=Ne(e,n),{hasLink:o,linkAttrs:i,linkClass:s,linkTag:d,navigateOnClick:h}=Ia(),r=Q(null),m=Q(null),C=c(()=>e.clickable===!0||o.value===!0||e.tag==="label"),b=c(()=>e.disable!==!0&&C.value===!0),w=c(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(a.value===!0?" q-item--dark":"")+(o.value===!0&&e.active===null?s.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(b.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":""):"")),P=c(()=>{if(e.insetLevel===void 0)return null;const R=n.lang.rtl===!0?"Right":"Left";return{["padding"+R]:16+e.insetLevel*56+"px"}});function p(R){b.value===!0&&(m.value!==null&&(R.qKeyEvent!==!0&&document.activeElement===r.value?m.value.focus():document.activeElement===m.value&&r.value.focus()),h(R))}function N(R){if(b.value===!0&&nl(R,[13,32])===!0){Me(R),R.qKeyEvent=!0;const B=new MouseEvent("click",R);B.qKeyEvent=!0,r.value.dispatchEvent(B)}l("keyup",R)}function V(){const R=En(t.default,[]);return b.value===!0&&R.unshift(v("div",{class:"q-focus-helper",tabindex:-1,ref:m})),R}return()=>{const R={ref:r,class:w.value,style:P.value,role:"listitem",onClick:p,onKeyup:N};return b.value===!0?(R.tabindex=e.tabindex||"0",Object.assign(R,i.value)):C.value===!0&&(R["aria-disabled"]="true"),v(d.value,R,V())}}}),Co=he({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const l=c(()=>`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()=>v("div",{class:l.value},we(t.default))}}),_o=he({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const l=c(()=>parseInt(e.lines,10)),n=c(()=>"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":"")+(l.value===1?" ellipsis":"")),a=c(()=>e.lines!==void 0&&l.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l.value}:null);return()=>v("div",{style:a.value,class:n.value},we(t.default))}});function qo(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),ha.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Vo={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},Mo={...Vo,contextMenu:Boolean};function Ro({showing:e,avoidEmit:t,configureAnchorEl:l}){const{props:n,proxy:a,emit:o}=ue(),i=Q(null);let s=null;function d(b){return i.value===null?!1:b===void 0||b.touches===void 0||b.touches.length<=1}const h={};l===void 0&&(Object.assign(h,{hide(b){a.hide(b)},toggle(b){a.toggle(b),b.qAnchorHandled=!0},toggleKey(b){nl(b,13)===!0&&h.toggle(b)},contextClick(b){a.hide(b),Oe(b),me(()=>{a.show(b),b.qAnchorHandled=!0})},prevent:Oe,mobileTouch(b){if(h.mobileCleanup(b),d(b)!==!0)return;a.hide(b),i.value.classList.add("non-selectable");const w=b.target;zl(h,"anchor",[[w,"touchmove","mobileCleanup","passive"],[w,"touchend","mobileCleanup","passive"],[w,"touchcancel","mobileCleanup","passive"],[i.value,"contextmenu","prevent","notPassive"]]),s=setTimeout(()=>{s=null,a.show(b),b.qAnchorHandled=!0},300)},mobileCleanup(b){i.value.classList.remove("non-selectable"),s!==null&&(clearTimeout(s),s=null),e.value===!0&&b!==void 0&&qo()}}),l=function(b=n.contextMenu){if(n.noParentEvent===!0||i.value===null)return;let w;b===!0?a.$q.platform.is.mobile===!0?w=[[i.value,"touchstart","mobileTouch","passive"]]:w=[[i.value,"mousedown","hide","passive"],[i.value,"contextmenu","contextClick","notPassive"]]:w=[[i.value,"click","toggle","passive"],[i.value,"keyup","toggleKey","passive"]],zl(h,"anchor",w)});function r(){ba(h,"anchor")}function m(b){for(i.value=b;i.value.classList.contains("q-anchor--skip");)i.value=i.value.parentNode;l()}function C(){if(n.target===!1||n.target===""||a.$el.parentNode===null)i.value=null;else if(n.target===!0)m(a.$el.parentNode);else{let b=n.target;if(typeof n.target=="string")try{b=document.querySelector(n.target)}catch{b=void 0}b!=null?(i.value=b.$el||b,l()):(i.value=null,console.error(`Anchor: target "${n.target}" not found`))}}return le(()=>n.contextMenu,b=>{i.value!==null&&(r(),l(b))}),le(()=>n.target,()=>{i.value!==null&&r(),C()}),le(()=>n.noParentEvent,b=>{i.value!==null&&(b===!0?r():l())}),Ge(()=>{C(),t!==!0&&n.modelValue===!0&&i.value===null&&o("update:modelValue",!1)}),_e(()=>{s!==null&&clearTimeout(s),r()}),{anchorEl:i,canShow:d,anchorEvents:h}}function Po(e,t){const l=Q(null);let n;function a(s,d){const h=`${d!==void 0?"add":"remove"}EventListener`,r=d!==void 0?d:n;s!==window&&s[h]("scroll",r,Be.passive),window[h]("scroll",r,Be.passive),n=d}function o(){l.value!==null&&(a(l.value),l.value=null)}const i=le(()=>e.noParentEvent,()=>{l.value!==null&&(o(),t())});return _e(i),{localScrollTarget:l,unconfigureScrollTarget:o,changeScrollEvent:a}}const Un={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Zn=["beforeShow","show","beforeHide","hide"];function Xn({showing:e,canShow:t,hideOnRouteChange:l,handleShow:n,handleHide:a,processOnMount:o}){const i=ue(),{props:s,emit:d,proxy:h}=i;let r;function m(V){e.value===!0?w(V):C(V)}function C(V){if(s.disable===!0||V!==void 0&&V.qAnchorHandled===!0||t!==void 0&&t(V)!==!0)return;const R=s["onUpdate:modelValue"]!==void 0;R===!0&&(d("update:modelValue",!0),r=V,me(()=>{r===V&&(r=void 0)})),(s.modelValue===null||R===!1)&&b(V)}function b(V){e.value!==!0&&(e.value=!0,d("beforeShow",V),n!==void 0?n(V):d("show",V))}function w(V){if(s.disable===!0)return;const R=s["onUpdate:modelValue"]!==void 0;R===!0&&(d("update:modelValue",!1),r=V,me(()=>{r===V&&(r=void 0)})),(s.modelValue===null||R===!1)&&P(V)}function P(V){e.value!==!1&&(e.value=!1,d("beforeHide",V),a!==void 0?a(V):d("hide",V))}function p(V){s.disable===!0&&V===!0?s["onUpdate:modelValue"]!==void 0&&d("update:modelValue",!1):V===!0!==e.value&&(V===!0?b:P)(r)}le(()=>s.modelValue,p),l!==void 0&&Fn(i)===!0&&le(()=>h.$route.fullPath,()=>{l.value===!0&&e.value===!0&&w()}),o===!0&&Ge(()=>{p(s.modelValue)});const N={show:C,hide:w,toggle:m};return Object.assign(h,N),N}let To=1,Bo=document.body;function Eo(e,t){const l=document.createElement("div");if(l.id=t!==void 0?`q-portal--${t}--${To++}`:e,Nl.globalNodes!==void 0){const n=Nl.globalNodes.class;n!==void 0&&(l.className=n)}return Bo.appendChild(l),l}function Fo(e){e.remove()}const Pt=[];function Ao(e,t){do{if(e.$options.name==="QMenu"){if(e.hide(t),e.$props.separateClosePopup===!0)return ml(e)}else if(e.__qPortal===!0){const l=ml(e);return l!==void 0&&l.$options.name==="QPopupProxy"?(e.hide(t),l):e}e=ml(e)}while(e!=null)}const $o=he({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function Io(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 Yn(e,t,l,n){const a=Q(!1),o=Q(!1);let i=null;const s={},d=n==="dialog"&&Io(e);function h(m){if(m===!0){Gl(s),o.value=!0;return}o.value=!1,a.value===!1&&(d===!1&&i===null&&(i=Eo(!1,n)),a.value=!0,Pt.push(e.proxy),Xa(s))}function r(m){if(o.value=!1,m!==!0)return;Gl(s),a.value=!1;const C=Pt.indexOf(e.proxy);C!==-1&&Pt.splice(C,1),i!==null&&(Fo(i),i=null)}return ya(()=>{r(!0)}),e.proxy.__qPortal=!0,Ye(e.proxy,"contentEl",()=>t.value),{showPortal:h,hidePortal:r,portalIsActive:a,portalIsAccessible:o,renderPortal:()=>d===!0?l():a.value===!0?[v(Sa,{to:i},v($o,l))]:void 0}}const Gn={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Jn(e,t=()=>{},l=()=>{}){return{transitionProps:c(()=>{const n=`q-transition--${e.transitionShow||t()}`,a=`q-transition--${e.transitionHide||l()}`;return{appear:!0,enterFromClass:`${n}-enter-from`,enterActiveClass:`${n}-enter-active`,enterToClass:`${n}-enter-to`,leaveFromClass:`${a}-leave-from`,leaveActiveClass:`${a}-leave-active`,leaveToClass:`${a}-leave-to`}}),transitionStyle:c(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function ea(){let e;const t=ue();function l(){e=void 0}return Et(l),_e(l),{removeTick:l,registerTick(n){e=n,me(()=>{e===n&&(An(t)===!1&&e(),e=void 0)})}}}function ta(){let e=null;const t=ue();function l(){e!==null&&(clearTimeout(e),e=null)}return Et(l),_e(l),{removeTimeout:l,registerTimeout(n,a){l(),An(t)===!1&&(e=setTimeout(()=>{e=null,n()},a))}}}const rt=[];let xt;function Ho(e){xt=e.keyCode===27}function Oo(){xt===!0&&(xt=!1)}function Lo(e){xt===!0&&(xt=!1,nl(e,27)===!0&&rt[rt.length-1](e))}function la(e){window[e]("keydown",Ho),window[e]("blur",Oo),window[e]("keyup",Lo),xt=!1}function na(e){Le.is.desktop===!0&&(rt.push(e),rt.length===1&&la("addEventListener"))}function el(e){const t=rt.indexOf(e);t!==-1&&(rt.splice(t,1),rt.length===0&&la("removeEventListener"))}const ut=[];function aa(e){ut[ut.length-1](e)}function oa(e){Le.is.desktop===!0&&(ut.push(e),ut.length===1&&document.body.addEventListener("focusin",aa))}function Vl(e){const t=ut.indexOf(e);t!==-1&&(ut.splice(t,1),ut.length===0&&document.body.removeEventListener("focusin",aa))}const{notPassiveCapture:tl}=Be,st=[];function ll(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let l=Pt.length-1;for(;l>=0;){const n=Pt[l].$;if(n.type.name==="QTooltip"){l--;continue}if(n.type.name!=="QDialog")break;if(n.props.seamless!==!0)return;l--}for(let n=st.length-1;n>=0;n--){const a=st[n];if((a.anchorEl.value===null||a.anchorEl.value.contains(t)===!1)&&(t===document.body||a.innerRef.value!==null&&a.innerRef.value.contains(t)===!1))e.qClickOutside=!0,a.onClickOutside(e);else return}}function Do(e){st.push(e),st.length===1&&(document.addEventListener("mousedown",ll,tl),document.addEventListener("touchstart",ll,tl))}function nn(e){const t=st.findIndex(l=>l===e);t!==-1&&(st.splice(t,1),st.length===0&&(document.removeEventListener("mousedown",ll,tl),document.removeEventListener("touchstart",ll,tl)))}let an,on;function rn(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 zo(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const Ml={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{Ml[`${e}#ltr`]=e,Ml[`${e}#rtl`]=e});function un(e,t){const l=e.split(" ");return{vertical:l[0],horizontal:Ml[`${l[1]}#${t===!0?"rtl":"ltr"}`]}}function No(e,t){let{top:l,left:n,right:a,bottom:o,width:i,height:s}=e.getBoundingClientRect();return t!==void 0&&(l-=t[1],n-=t[0],o+=t[1],a+=t[0],i+=t[0],s+=t[1]),{top:l,bottom:o,height:s,left:n,right:a,width:i,middle:n+(a-n)/2,center:l+(o-l)/2}}function jo(e,t,l){let{top:n,left:a}=e.getBoundingClientRect();return n+=t.top,a+=t.left,l!==void 0&&(n+=l[1],a+=l[0]),{top:n,bottom:n+1,height:1,left:a,right:a+1,width:1,middle:a,center:n}}function Wo(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function sn(e,t,l,n){return{top:e[l.vertical]-t[n.vertical],left:e[l.horizontal]-t[n.horizontal]}}function ia(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{ia(e,t+1)},10);return}const{targetEl:l,offset:n,anchorEl:a,anchorOrigin:o,selfOrigin:i,absoluteOffset:s,fit:d,cover:h,maxHeight:r,maxWidth:m}=e;if(Le.is.ios===!0&&window.visualViewport!==void 0){const _=document.body.style,{offsetLeft:H,offsetTop:D}=window.visualViewport;H!==an&&(_.setProperty("--q-pe-left",H+"px"),an=H),D!==on&&(_.setProperty("--q-pe-top",D+"px"),on=D)}const{scrollLeft:C,scrollTop:b}=l,w=s===void 0?No(a,h===!0?[0,0]:n):jo(a,s,n);Object.assign(l.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:m||"100vw",maxHeight:r||"100vh",visibility:"visible"});const{offsetWidth:P,offsetHeight:p}=l,{elWidth:N,elHeight:V}=d===!0||h===!0?{elWidth:Math.max(w.width,P),elHeight:h===!0?Math.max(w.height,p):p}:{elWidth:P,elHeight:p};let R={maxWidth:m,maxHeight:r};(d===!0||h===!0)&&(R.minWidth=w.width+"px",h===!0&&(R.minHeight=w.height+"px")),Object.assign(l.style,R);const B=Wo(N,V);let q=sn(w,B,o,i);if(s===void 0||n===void 0)Sl(q,w,B,o,i);else{const{top:_,left:H}=q;Sl(q,w,B,o,i);let D=!1;if(q.top!==_){D=!0;const x=2*n[1];w.center=w.top-=x,w.bottom-=x+2}if(q.left!==H){D=!0;const x=2*n[0];w.middle=w.left-=x,w.right-=x+2}D===!0&&(q=sn(w,B,o,i),Sl(q,w,B,o,i))}R={top:q.top+"px",left:q.left+"px"},q.maxHeight!==void 0&&(R.maxHeight=q.maxHeight+"px",w.height>q.maxHeight&&(R.minHeight=R.maxHeight)),q.maxWidth!==void 0&&(R.maxWidth=q.maxWidth+"px",w.width>q.maxWidth&&(R.minWidth=R.maxWidth)),Object.assign(l.style,R),l.scrollTop!==b&&(l.scrollTop=b),l.scrollLeft!==C&&(l.scrollLeft=C)}function Sl(e,t,l,n,a){const o=l.bottom,i=l.right,s=Ha(),d=window.innerHeight-s,h=document.body.clientWidth;if(e.top<0||e.top+o>d)if(a.vertical==="center")e.top=t[n.vertical]>d/2?Math.max(0,d-o):0,e.maxHeight=Math.min(o,d);else if(t[n.vertical]>d/2){const r=Math.min(d,n.vertical==="center"?t.center:n.vertical===a.vertical?t.bottom:t.top);e.maxHeight=Math.min(o,r),e.top=Math.max(0,r-o)}else e.top=Math.max(0,n.vertical==="center"?t.center:n.vertical===a.vertical?t.top:t.bottom),e.maxHeight=Math.min(o,d-e.top);if(e.left<0||e.left+i>h)if(e.maxWidth=Math.min(i,h),a.horizontal==="middle")e.left=t[n.horizontal]>h/2?Math.max(0,h-i):0;else if(t[n.horizontal]>h/2){const r=Math.min(h,n.horizontal==="middle"?t.middle:n.horizontal===a.horizontal?t.right:t.left);e.maxWidth=Math.min(i,r),e.left=Math.max(0,r-e.maxWidth)}else e.left=Math.max(0,n.horizontal==="middle"?t.middle:n.horizontal===a.horizontal?t.left:t.right),e.maxWidth=Math.min(i,h-e.left)}var Qo=he({name:"QMenu",inheritAttrs:!1,props:{...Mo,...Un,...ze,...Gn,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:rn},self:{type:String,validator:rn},offset:{type:Array,validator:zo},scrollTarget:In,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Zn,"click","escapeKey"],setup(e,{slots:t,emit:l,attrs:n}){let a=null,o,i,s;const d=ue(),{proxy:h}=d,{$q:r}=h,m=Q(null),C=Q(!1),b=c(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),w=Ne(e,r),{registerTick:P,removeTick:p}=ea(),{registerTimeout:N}=ta(),{transitionProps:V,transitionStyle:R}=Jn(e),{localScrollTarget:B,changeScrollEvent:q,unconfigureScrollTarget:_}=Po(e,L),{anchorEl:H,canShow:D}=Ro({showing:C}),{hide:x}=Xn({showing:C,canShow:D,handleShow:ee,handleHide:g,hideOnRouteChange:b,processOnMount:!0}),{showPortal:k,hidePortal:E,renderPortal:y}=Yn(d,m,ae,"menu"),j={anchorEl:H,innerRef:m,onClickOutside(T){if(e.persistent!==!0&&C.value===!0)return x(T),(T.type==="touchstart"||T.target.classList.contains("q-dialog__backdrop"))&&Me(T),!0}},K=c(()=>un(e.anchor||(e.cover===!0?"center middle":"bottom start"),r.lang.rtl)),te=c(()=>e.cover===!0?K.value:un(e.self||"top start",r.lang.rtl)),F=c(()=>(e.square===!0?" q-menu--square":"")+(w.value===!0?" q-menu--dark q-dark":"")),Z=c(()=>e.autoClose===!0?{onClick:Y}:{}),A=c(()=>C.value===!0&&e.persistent!==!0);le(A,T=>{T===!0?(na(M),Do(j)):(el(M),nn(j))});function W(){ol(()=>{let T=m.value;T&&T.contains(document.activeElement)!==!0&&(T=T.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||T.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||T.querySelector("[autofocus], [data-autofocus]")||T,T.focus({preventScroll:!0}))})}function ee(T){if(a=e.noRefocus===!1?document.activeElement:null,oa(ne),k(),L(),o=void 0,T!==void 0&&(e.touchPosition||e.contextMenu)){const se=wa(T);if(se.left!==void 0){const{top:pe,left:We}=H.value.getBoundingClientRect();o={left:se.left-We,top:se.top-pe}}}i===void 0&&(i=le(()=>r.screen.width+"|"+r.screen.height+"|"+e.self+"|"+e.anchor+"|"+r.lang.rtl,I)),e.noFocus!==!0&&document.activeElement.blur(),P(()=>{I(),e.noFocus!==!0&&W()}),N(()=>{r.platform.is.ios===!0&&(s=e.autoClose,m.value.click()),I(),k(!0),l("show",T)},e.transitionDuration)}function g(T){p(),E(),f(!0),a!==null&&(T===void 0||T.qClickOutside!==!0)&&(((T&&T.type.indexOf("key")===0?a.closest('[tabindex]:not([tabindex^="-"])'):void 0)||a).focus(),a=null),N(()=>{E(!0),l("hide",T)},e.transitionDuration)}function f(T){o=void 0,i!==void 0&&(i(),i=void 0),(T===!0||C.value===!0)&&(Vl(ne),_(),nn(j),el(M)),T!==!0&&(a=null)}function L(){(H.value!==null||e.scrollTarget!==void 0)&&(B.value=Hn(H.value,e.scrollTarget),q(B.value,I))}function Y(T){s!==!0?(Ao(h,T),l("click",T)):s=!1}function ne(T){A.value===!0&&e.noFocus!==!0&&$n(m.value,T.target)!==!0&&W()}function M(T){l("escapeKey"),x(T)}function I(){ia({targetEl:m.value,offset:e.offset,anchorEl:H.value,anchorOrigin:K.value,selfOrigin:te.value,absoluteOffset:o,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function ae(){return v(Xt,V.value,()=>C.value===!0?v("div",{role:"menu",...n,ref:m,tabindex:-1,class:["q-menu q-position-engine scroll"+F.value,n.class],style:[n.style,R.value],...Z.value},we(t.default)):null)}return _e(f),Object.assign(h,{focus:W,updatePosition:I}),y}});function Ko(e,t,l){let n;function a(){n!==void 0&&(Yt.remove(n),n=void 0)}return _e(()=>{e.value===!0&&a()}),{removeFromHistory:a,addToHistory(){n={condition:()=>l.value===!0,handler:t},Yt.add(n)}}}let Vt=0,wl,pl,Rt,xl=!1,cn,dn,fn,at=null;function Uo(e){Zo(e)&&Me(e)}function Zo(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=pa(e),l=e.shiftKey&&!e.deltaX,n=!l&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),a=l||n?e.deltaY:e.deltaX;for(let o=0;o0&&i.scrollTop+i.clientHeight===i.scrollHeight:a<0&&i.scrollLeft===0?!0:a>0&&i.scrollLeft+i.clientWidth===i.scrollWidth}return!0}function vn(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Qt(e){xl!==!0&&(xl=!0,requestAnimationFrame(()=>{xl=!1;const{height:t}=e.target,{clientHeight:l,scrollTop:n}=document.scrollingElement;(Rt===void 0||t!==window.innerHeight)&&(Rt=l-t,document.scrollingElement.scrollTop=n),n>Rt&&(document.scrollingElement.scrollTop-=Math.ceil((n-Rt)/8))}))}function mn(e){const t=document.body,l=window.visualViewport!==void 0;if(e==="add"){const{overflowY:n,overflowX:a}=window.getComputedStyle(t);wl=Oa(window),pl=La(window),cn=t.style.left,dn=t.style.top,fn=window.location.href,t.style.left=`-${wl}px`,t.style.top=`-${pl}px`,a!=="hidden"&&(a==="scroll"||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),n!=="hidden"&&(n==="scroll"||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,Le.is.ios===!0&&(l===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",Qt,Be.passiveCapture),window.visualViewport.addEventListener("scroll",Qt,Be.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",vn,Be.passiveCapture))}Le.is.desktop===!0&&Le.is.mac===!0&&window[`${e}EventListener`]("wheel",Uo,Be.notPassive),e==="remove"&&(Le.is.ios===!0&&(l===!0?(window.visualViewport.removeEventListener("resize",Qt,Be.passiveCapture),window.visualViewport.removeEventListener("scroll",Qt,Be.passiveCapture)):window.removeEventListener("scroll",vn,Be.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=cn,t.style.top=dn,window.location.href===fn&&window.scrollTo(wl,pl),Rt=void 0)}function Xo(e){let t="add";if(e===!0){if(Vt++,at!==null){clearTimeout(at),at=null;return}if(Vt>1)return}else{if(Vt===0||(Vt--,Vt>0))return;if(t="remove",Le.is.ios===!0&&Le.is.nativeMobile===!0){at!==null&&clearTimeout(at),at=setTimeout(()=>{mn(t),at=null},100);return}}mn(t)}function Yo(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t===!0)&&(e=t,Xo(t))}}}let Kt=0;const Go={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"},gn={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]};var Jo=he({name:"QDialog",inheritAttrs:!1,props:{...Un,...Gn,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:[...Zn,"shake","click","escapeKey"],setup(e,{slots:t,emit:l,attrs:n}){const a=ue(),o=Q(null),i=Q(!1),s=Q(!1);let d=null,h=null,r,m;const C=c(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:b}=Yo(),{registerTimeout:w}=ta(),{registerTick:P,removeTick:p}=ea(),{transitionProps:N,transitionStyle:V}=Jn(e,()=>gn[e.position][0],()=>gn[e.position][1]),R=c(()=>V.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:B,hidePortal:q,portalIsAccessible:_,renderPortal:H}=Yn(a,o,ne,"dialog"),{hide:D}=Xn({showing:i,hideOnRouteChange:C,handleShow:te,handleHide:F,processOnMount:!0}),{addToHistory:x,removeFromHistory:k}=Ko(i,D,C),E=c(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${Go[e.position]}`+(s.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":"")),y=c(()=>i.value===!0&&e.seamless!==!0),j=c(()=>e.autoClose===!0?{onClick:f}:{}),K=c(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${y.value===!0?"modal":"seamless"}`,n.class]);le(()=>e.maximized,M=>{i.value===!0&&g(M)}),le(y,M=>{b(M),M===!0?(oa(Y),na(W)):(Vl(Y),el(W))});function te(M){x(),h=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,g(e.maximized),B(),s.value=!0,e.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),P(Z)):p(),w(()=>{if(a.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:I,bottom:ae}=document.activeElement.getBoundingClientRect(),{innerHeight:T}=window,se=window.visualViewport!==void 0?window.visualViewport.height:T;I>0&&ae>se/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-se,ae>=T?1/0:Math.ceil(document.scrollingElement.scrollTop+ae-se/2))),document.activeElement.scrollIntoView()}m=!0,o.value.click(),m=!1}B(!0),s.value=!1,l("show",M)},e.transitionDuration)}function F(M){p(),k(),ee(!0),s.value=!0,q(),h!==null&&(((M&&M.type.indexOf("key")===0?h.closest('[tabindex]:not([tabindex^="-"])'):void 0)||h).focus(),h=null),w(()=>{q(!0),s.value=!1,l("hide",M)},e.transitionDuration)}function Z(M){ol(()=>{let I=o.value;if(I!==null){if(M!==void 0){const ae=I.querySelector(M);if(ae!==null){ae.focus({preventScroll:!0});return}}I.contains(document.activeElement)!==!0&&(I=I.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||I.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||I.querySelector("[autofocus], [data-autofocus]")||I,I.focus({preventScroll:!0}))}})}function A(M){M&&typeof M.focus=="function"?M.focus({preventScroll:!0}):Z(),l("shake");const I=o.value;I!==null&&(I.classList.remove("q-animate--scale"),I.classList.add("q-animate--scale"),d!==null&&clearTimeout(d),d=setTimeout(()=>{d=null,o.value!==null&&(I.classList.remove("q-animate--scale"),Z())},170))}function W(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&A():(l("escapeKey"),D()))}function ee(M){d!==null&&(clearTimeout(d),d=null),(M===!0||i.value===!0)&&(g(!1),e.seamless!==!0&&(b(!1),Vl(Y),el(W))),M!==!0&&(h=null)}function g(M){M===!0?r!==!0&&(Kt<1&&document.body.classList.add("q-body--dialog"),Kt++,r=!0):r===!0&&(Kt<2&&document.body.classList.remove("q-body--dialog"),Kt--,r=!1)}function f(M){m!==!0&&(D(M),l("click",M))}function L(M){e.persistent!==!0&&e.noBackdropDismiss!==!0?D(M):e.noShake!==!0&&A()}function Y(M){e.allowFocusOutside!==!0&&_.value===!0&&$n(o.value,M.target)!==!0&&Z('[tabindex]:not([tabindex="-1"])')}Object.assign(a.proxy,{focus:Z,shake:A,__updateRefocusTarget(M){h=M||null}}),_e(ee);function ne(){return v("div",{role:"dialog","aria-modal":y.value===!0?"true":"false",...n,class:K.value},[v(Xt,{name:"q-transition--fade",appear:!0},()=>y.value===!0?v("div",{class:"q-dialog__backdrop fixed-full",style:R.value,"aria-hidden":"true",tabindex:-1,onClick:L}):null),v(Xt,N.value,()=>i.value===!0?v("div",{ref:o,class:E.value,style:V.value,tabindex:-1,...j.value},we(t.default)):null)])}return H}});function hn(e,t,l){if(l<=t)return t;const n=l-t+1;let a=t+(e-t)%n;return a["add","add-unique","toggle"].includes(e),ei=".*+?^${}()|[]\\",ti=Object.keys(il);var li=he({name:"QSelect",inheritAttrs:!1,props:{...ql,...Il,...il,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:bn},mapOptions:Boolean,emitValue: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:ql.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...Fl,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:t,emit:l}){const{proxy:n}=ue(),{$q:a}=n,o=Q(!1),i=Q(!1),s=Q(-1),d=Q(""),h=Q(!1),r=Q(!1);let m=null,C=null,b,w,P,p=null,N,V,R,B;const q=Q(null),_=Q(null),H=Q(null),D=Q(null),x=Q(null),k=Dn(e),E=zn(z),y=c(()=>Array.isArray(e.options)?e.options.length:0),j=c(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:K,virtualScrollSliceSizeComputed:te,localResetVirtualScroll:F,padVirtualScroll:Z,onVirtualScrollEvt:A,scrollTo:W,setVirtualScrollSize:ee}=Kn({virtualScrollLength:y,getVirtualScrollTarget:sl,getVirtualScrollEl:Lt,virtualScrollItemSizeComputed:j}),g=Al(),f=c(()=>{const u=e.mapOptions===!0&&e.multiple!==!0,O=e.modelValue!==void 0&&(e.modelValue!==null||u===!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&&b!==void 0?b:[],G=O.map(ie=>ul(ie,$));return e.modelValue===null&&u===!0?G.filter(ie=>ie!==null):G}return O}),L=c(()=>{const u={};return ti.forEach(O=>{const $=e[O];$!==void 0&&(u[O]=$)}),u}),Y=c(()=>e.optionsDark===null?g.isDark.value:e.optionsDark),ne=c(()=>Bt(f.value)),M=c(()=>{let u="q-field__input q-placeholder col";return e.hideSelected===!0||f.value.length===0?[u,e.inputClass]:(u+=" q-field__input--padding",e.inputClass===void 0?u:[u,e.inputClass])}),I=c(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),ae=c(()=>y.value===0),T=c(()=>f.value.map(u=>ke.value(u)).join(", ")),se=c(()=>e.displayValue!==void 0?e.displayValue:T.value),pe=c(()=>e.optionsHtml===!0?()=>!0:u=>u!=null&&u.html===!0),We=c(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||f.value.some(pe.value))),xe=c(()=>g.focused.value===!0?e.tabindex:-1),Qe=c(()=>{const u={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":o.value===!0?"true":"false","aria-controls":`${g.targetUid.value}_lb`};return s.value>=0&&(u["aria-activedescendant"]=`${g.targetUid.value}_${s.value}`),u}),Ee=c(()=>({id:`${g.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),Fe=c(()=>f.value.map((u,O)=>({index:O,opt:u,html:pe.value(u),selected:!0,removeAtIndex:rl,toggleOption:Ae,tabindex:xe.value}))),Ke=c(()=>{if(y.value===0)return[];const{from:u,to:O}=K.value;return e.options.slice(u,O).map(($,G)=>{const ie=Ue.value($)===!0,oe=ft($)===!0,be=u+G,ve={clickable:!0,active:oe,activeClass:et.value,manualFocus:!0,focused:!1,disable:ie,tabindex:-1,dense:e.optionsDense,dark:Y.value,role:"option","aria-selected":oe===!0?"true":"false",id:`${g.targetUid.value}_${be}`,onClick:()=>{Ae($)}};return ie!==!0&&(s.value===be&&(ve.focused=!0),a.platform.is.desktop===!0&&(ve.onMousemove=()=>{o.value===!0&&Ve(be)})),{index:be,opt:$,html:pe.value($),label:ke.value($),selected:ve.active,focused:ve.focused,toggleOption:Ae,setOptionIndex:Ve,itemProps:ve}})}),Je=c(()=>e.dropdownIcon!==void 0?e.dropdownIcon:a.iconSet.arrow.dropdown),kt=c(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),et=c(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),Pe=c(()=>dt(e.optionValue,"value")),ke=c(()=>dt(e.optionLabel,"label")),Ue=c(()=>dt(e.optionDisable,"disable")),tt=c(()=>f.value.map(u=>Pe.value(u))),At=c(()=>{const u={onInput:z,onChange:E,onKeydown:Ot,onKeyup:Ct,onKeypress:lt,onFocus:Ht,onClick(O){w===!0&&Ze(O)}};return u.onCompositionstart=u.onCompositionupdate=u.onCompositionend=E,u});le(f,u=>{b=u,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&g.innerLoading.value!==!0&&(i.value!==!0&&o.value!==!0||ne.value!==!0)&&(P!==!0&&yt(),(i.value===!0||o.value===!0)&&J(""))},{immediate:!0}),le(()=>e.fillInput,yt),le(o,fl),le(y,fa);function $t(u){return e.emitValue===!0?Pe.value(u):u}function ct(u){if(u!==-1&&u=e.maxValues)return;const G=e.modelValue.slice();l("add",{index:G.length,value:$}),G.push($),l("update:modelValue",G)}function Ae(u,O){if(g.editable.value!==!0||u===void 0||Ue.value(u)===!0)return;const $=Pe.value(u);if(e.multiple!==!0){O!==!0&&(X(e.fillInput===!0?ke.value(u):"",!0,!0),nt()),_.value!==null&&_.value.focus(),(f.value.length===0||_t(Pe.value(f.value[0]),$)!==!0)&&l("update:modelValue",e.emitValue===!0?$:u);return}if((w!==!0||h.value===!0)&&g.focus(),Ht(),f.value.length===0){const oe=e.emitValue===!0?$:u;l("add",{index:0,value:oe}),l("update:modelValue",e.multiple===!0?[oe]:oe);return}const G=e.modelValue.slice(),ie=tt.value.findIndex(oe=>_t(oe,$));if(ie!==-1)l("remove",{index:ie,value:G.splice(ie,1)[0]});else{if(e.maxValues!==void 0&&G.length>=e.maxValues)return;const oe=e.emitValue===!0?$:u;l("add",{index:G.length,value:oe}),G.push(oe)}l("update:modelValue",G)}function Ve(u){if(a.platform.is.desktop!==!0)return;const O=u!==-1&&u=0?ke.value(e.options[$]):N,!0))}}function ul(u,O){const $=G=>_t(Pe.value(G),u);return e.options.find($)||O.find($)||u}function dt(u,O){const $=u!==void 0?u:O;return typeof $=="function"?$:G=>G!==null&&typeof G=="object"&&$ in G?G[$]:G}function ft(u){const O=Pe.value(u);return tt.value.find($=>_t($,O))!==void 0}function Ht(u){e.useInput===!0&&_.value!==null&&(u===void 0||_.value===u.target&&u.target.value===T.value)&&_.value.select()}function vt(u){nl(u,27)===!0&&o.value===!0&&(Ze(u),nt(),yt()),l("keyup",u)}function Ct(u){const{value:O}=u.target;if(u.keyCode!==void 0){vt(u);return}if(u.target.value="",m!==null&&(clearTimeout(m),m=null),C!==null&&(clearTimeout(C),C=null),yt(),typeof O=="string"&&O.length!==0){const $=O.toLocaleLowerCase(),G=oe=>{const be=e.options.find(ve=>oe.value(ve).toLocaleLowerCase()===$);return be===void 0?!1:(f.value.indexOf(be)===-1?Ae(be):nt(),!0)},ie=oe=>{G(Pe)!==!0&&(G(ke)===!0||oe===!0||J(O,!0,()=>ie(!0)))};ie()}else g.clearValue(u)}function lt(u){l("keypress",u)}function Ot(u){if(l("keydown",u),Tn(u)===!0)return;const O=d.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),$=u.shiftKey!==!0&&e.multiple!==!0&&(s.value!==-1||O===!0);if(u.keyCode===27){Oe(u);return}if(u.keyCode===9&&$===!1){ht();return}if(u.target===void 0||u.target.id!==g.targetUid.value||g.editable.value!==!0)return;if(u.keyCode===40&&g.innerLoading.value!==!0&&o.value===!1){Me(u),bt();return}if(u.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&d.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?ct(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&l("update:modelValue",null);return}(u.keyCode===35||u.keyCode===36)&&(typeof d.value!="string"||d.value.length===0)&&(Me(u),s.value=-1,$e(u.keyCode===36?1:-1,e.multiple)),(u.keyCode===33||u.keyCode===34)&&te.value!==void 0&&(Me(u),s.value=Math.max(-1,Math.min(y.value,s.value+(u.keyCode===33?-1:1)*te.value.view)),$e(u.keyCode===33?1:-1,e.multiple)),(u.keyCode===38||u.keyCode===40)&&(Me(u),$e(u.keyCode===38?-1:1,e.multiple));const G=y.value;if((R===void 0||B0&&e.useInput!==!0&&u.key!==void 0&&u.key.length===1&&u.altKey===!1&&u.ctrlKey===!1&&u.metaKey===!1&&(u.keyCode!==32||R.length!==0)){o.value!==!0&&bt(u);const ie=u.key.toLocaleLowerCase(),oe=R.length===1&&R[0]===ie;B=Date.now()+1500,oe===!1&&(Me(u),R+=ie);const be=new RegExp("^"+R.split("").map(vl=>ei.indexOf(vl)!==-1?"\\"+vl:vl).join(".*"),"i");let ve=s.value;if(oe===!0||ve<0||be.test(ke.value(e.options[ve]))!==!0)do ve=hn(ve+1,-1,G-1);while(ve!==s.value&&(Ue.value(e.options[ve])===!0||be.test(ke.value(e.options[ve]))!==!0));s.value!==ve&&me(()=>{Ve(ve),W(ve),ve>=0&&e.useInput===!0&&e.fillInput===!0&&U(ke.value(e.options[ve]),!0)});return}if(!(u.keyCode!==13&&(u.keyCode!==32||e.useInput===!0||R!=="")&&(u.keyCode!==9||$===!1))){if(u.keyCode!==9&&Me(u),s.value!==-1&&s.value{if(be){if(bn(be)!==!0)return}else be=e.newValueMode;if(X("",e.multiple!==!0,!0),oe==null)return;(be==="toggle"?Ae:It)(oe,be==="add-unique"),e.multiple!==!0&&(_.value!==null&&_.value.focus(),nt())};if(e.onNewValue!==void 0?l("newValue",d.value,ie):ie(d.value),e.multiple!==!0)return}o.value===!0?ht():g.innerLoading.value!==!0&&bt()}}function Lt(){return w===!0?x.value:H.value!==null&&H.value.contentEl!==null?H.value.contentEl:void 0}function sl(){return Lt()}function cl(){return e.hideSelected===!0?[]:t["selected-item"]!==void 0?Fe.value.map(u=>t["selected-item"](u)).slice():t.selected!==void 0?[].concat(t.selected()):e.useChips===!0?Fe.value.map((u,O)=>v(xo,{key:"option-"+O,removable:g.editable.value===!0&&Ue.value(u.opt)!==!0,dense:!0,textColor:e.color,tabindex:xe.value,onRemove(){u.removeAtIndex(O)}},()=>v("span",{class:"ellipsis",[u.html===!0?"innerHTML":"textContent"]:ke.value(u.opt)}))):[v("span",{[We.value===!0?"innerHTML":"textContent"]:se.value})]}function Dt(){if(ae.value===!0)return t["no-option"]!==void 0?t["no-option"]({inputValue:d.value}):void 0;const u=t.option!==void 0?t.option:$=>v(ko,{key:$.index,...$.itemProps},()=>v(Co,()=>v(_o,()=>v("span",{[$.html===!0?"innerHTML":"textContent"]:$.label}))));let O=Z("div",Ke.value.map(u));return t["before-options"]!==void 0&&(O=t["before-options"]().concat(O)),al(t["after-options"],O)}function S(u,O){const $=O===!0?{...Qe.value,...g.splitAttrs.attributes.value}:void 0,G={ref:O===!0?_:void 0,key:"i_t",class:M.value,style:e.inputStyle,value:d.value!==void 0?d.value:"",type:"search",...$,id:O===!0?g.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":u===!0||e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...At.value};return u!==!0&&w===!0&&(Array.isArray(G.class)===!0?G.class=[...G.class,"no-pointer-events"]:G.class+=" no-pointer-events"),v("input",G)}function z(u){m!==null&&(clearTimeout(m),m=null),C!==null&&(clearTimeout(C),C=null),!(u&&u.target&&u.target.qComposing===!0)&&(U(u.target.value||""),P=!0,N=d.value,g.focused.value!==!0&&(w!==!0||h.value===!0)&&g.focus(),e.onFilter!==void 0&&(m=setTimeout(()=>{m=null,J(d.value)},e.inputDebounce)))}function U(u,O){d.value!==u&&(d.value=u,O===!0||e.inputDebounce===0||e.inputDebounce==="0"?l("inputValue",u):C=setTimeout(()=>{C=null,l("inputValue",u)},e.inputDebounce))}function X(u,O,$){P=$!==!0,e.useInput===!0&&(U(u,!0),(O===!0||$!==!0)&&(N=u),O!==!0&&J(u))}function J(u,O,$){if(e.onFilter===void 0||O!==!0&&g.focused.value!==!0)return;g.innerLoading.value===!0?l("filterAbort"):(g.innerLoading.value=!0,r.value=!0),u!==""&&e.multiple!==!0&&f.value.length!==0&&P!==!0&&u===ke.value(f.value[0])&&(u="");const G=setTimeout(()=>{o.value===!0&&(o.value=!1)},10);p!==null&&clearTimeout(p),p=G,l("filter",u,(ie,oe)=>{(O===!0||g.focused.value===!0)&&p===G&&(clearTimeout(p),typeof ie=="function"&&ie(),r.value=!1,me(()=>{g.innerLoading.value=!1,g.editable.value===!0&&(O===!0?o.value===!0&&nt():o.value===!0?fl(!0):o.value=!0),typeof oe=="function"&&me(()=>{oe(n)}),typeof $=="function"&&me(()=>{$(n)})}))},()=>{g.focused.value===!0&&p===G&&(clearTimeout(p),g.innerLoading.value=!1,r.value=!1),o.value===!0&&(o.value=!1)})}function fe(){return v(Qo,{ref:H,class:I.value,style:e.popupContentStyle,modelValue:o.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&ae.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:Y.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:kt.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...Ee.value,onScrollPassive:A,onBeforeShow:Ol,onBeforeHide:ce,onShow:Ie},Dt)}function ce(u){Ll(u),ht()}function Ie(){ee()}function Se(u){Ze(u),_.value!==null&&_.value.focus(),h.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function mt(u){Ze(u),me(()=>{h.value=!1})}function gt(){const u=[v(wo,{class:`col-auto ${g.fieldClass.value}`,...L.value,for:g.targetUid.value,dark:Y.value,square:!0,loading:r.value,itemAligned:!1,filled:!0,stackLabel:d.value.length!==0,...g.splitAttrs.listeners.value,onFocus:Se,onBlur:mt},{...t,rawControl:()=>g.getControl(!0),before:void 0,after:void 0})];return o.value===!0&&u.push(v("div",{ref:x,class:I.value+" scroll",style:e.popupContentStyle,...Ee.value,onClick:Oe,onScrollPassive:A},Dt())),v(Jo,{ref:D,modelValue:i.value,position:e.useInput===!0?"top":void 0,transitionShow:V,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:Ol,onBeforeHide:dl,onHide:ca,onShow:da},()=>v("div",{class:"q-select__dialog"+(Y.value===!0?" q-select__dialog--dark q-dark":"")+(h.value===!0?" q-select__dialog--focused":"")},u))}function dl(u){Ll(u),D.value!==null&&D.value.__updateRefocusTarget(g.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),g.focused.value=!1}function ca(u){nt(),g.focused.value===!1&&l("blur",u),yt()}function da(){const u=document.activeElement;(u===null||u.id!==g.targetUid.value)&&_.value!==null&&_.value!==u&&_.value.focus(),ee()}function ht(){i.value!==!0&&(s.value=-1,o.value===!0&&(o.value=!1),g.focused.value===!1&&(p!==null&&(clearTimeout(p),p=null),g.innerLoading.value===!0&&(l("filterAbort"),g.innerLoading.value=!1,r.value=!1)))}function bt(u){g.editable.value===!0&&(w===!0?(g.onControlFocusin(u),i.value=!0,me(()=>{g.focus()})):g.focus(),e.onFilter!==void 0?J(d.value):(ae.value!==!0||t["no-option"]!==void 0)&&(o.value=!0))}function nt(){i.value=!1,ht()}function yt(){e.useInput===!0&&X(e.multiple!==!0&&e.fillInput===!0&&f.value.length!==0&&ke.value(f.value[0])||"",!0,!0)}function fl(u){let O=-1;if(u===!0){if(f.value.length!==0){const $=Pe.value(f.value[0]);O=e.options.findIndex(G=>_t(Pe.value(G),$))}F(O)}Ve(O)}function fa(u,O){o.value===!0&&g.innerLoading.value===!1&&(F(-1,!0),me(()=>{o.value===!0&&g.innerLoading.value===!1&&(u>O?F():fl(!0))}))}function Hl(){i.value===!1&&H.value!==null&&H.value.updatePosition()}function Ol(u){u!==void 0&&Ze(u),l("popupShow",u),g.hasPopupOpen=!0,g.onControlFocusin(u)}function Ll(u){u!==void 0&&Ze(u),l("popupHide",u),g.hasPopupOpen=!1,g.onControlFocusout(u)}function Dl(){w=a.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?t["no-option"]!==void 0||e.onFilter!==void 0||ae.value===!1:!0),V=a.platform.is.ios===!0&&w===!0&&e.useInput===!0?"fade":e.transitionShow}return Rn(Dl),xa(Hl),Dl(),_e(()=>{m!==null&&clearTimeout(m),C!==null&&clearTimeout(C)}),Object.assign(n,{showPopup:bt,hidePopup:nt,removeAtIndex:ct,add:It,toggleOption:Ae,getOptionIndex:()=>s.value,setOptionIndex:Ve,moveOptionSelection:$e,filter:J,updateMenuPosition:Hl,updateInputValue:X,isOptionSelected:ft,getEmittingOptionValue:$t,isOptionDisabled:(...u)=>Ue.value.apply(null,u)===!0,getOptionValue:(...u)=>Pe.value.apply(null,u),getOptionLabel:(...u)=>ke.value.apply(null,u)}),Object.assign(g,{innerValue:f,fieldClass:c(()=>`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:q,targetRef:_,hasValue:ne,showPopup:bt,floatingLabel:c(()=>e.hideSelected!==!0&&ne.value===!0||typeof d.value=="number"||d.value.length!==0||Bt(e.displayValue)),getControlChild:()=>{if(g.editable.value!==!1&&(i.value===!0||ae.value!==!0||t["no-option"]!==void 0))return w===!0?gt():fe();g.hasPopupOpen===!0&&(g.hasPopupOpen=!1)},controlEvents:{onFocusin(u){g.onControlFocusin(u)},onFocusout(u){g.onControlFocusout(u,()=>{yt(),ht()})},onClick(u){if(Oe(u),w!==!0&&o.value===!0){ht(),_.value!==null&&_.value.focus();return}bt(u)}},getControl:u=>{const O=cl(),$=u===!0||i.value!==!0||w!==!0;if(e.useInput===!0)O.push(S(u,$));else if(g.editable.value===!0){const ie=$===!0?Qe.value:void 0;O.push(v("input",{ref:$===!0?_:void 0,key:"d_t",class:"q-select__focus-target",id:$===!0?g.targetUid.value:void 0,value:se.value,readonly:!0,"data-autofocus":u===!0||e.autofocus===!0||void 0,...ie,onKeydown:Ot,onKeyup:vt,onKeypress:lt})),$===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&O.push(v("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:Ct}))}if(k.value!==void 0&&e.disable!==!0&&tt.value.length!==0){const ie=tt.value.map(oe=>v("option",{value:oe,selected:!0}));O.push(v("select",{class:"hidden",name:k.value,multiple:e.multiple},ie))}const G=e.useInput===!0||$!==!0?void 0:g.splitAttrs.attributes.value;return v("div",{class:"q-field__native row items-center",...G,...g.splitAttrs.listeners.value},O)},getInnerAppend:()=>e.loading!==!0&&r.value!==!0&&e.hideDropdownIcon!==!0?[v(De,{class:"q-select__dropdown-icon"+(o.value===!0?" rotate-180":""),name:Je.value})]:null}),$l(g)}});const ni={xs:2,sm:4,md:6,lg:10,xl:14};function yn(e,t,l){return{transform:t===!0?`translateX(${l.lang.rtl===!0?"-":""}100%) scale3d(${-e},1,1)`:`scale3d(${e},1,1)`}}var ai=he({name:"QLinearProgress",props:{...ze,...Bl,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(e,{slots:t}){const{proxy:l}=ue(),n=Ne(e,l.$q),a=El(e,ni),o=c(()=>e.indeterminate===!0||e.query===!0),i=c(()=>e.reverse!==e.query),s=c(()=>({...a.value!==null?a.value:{},"--q-linear-progress-speed":`${e.animationSpeed}ms`})),d=c(()=>"q-linear-progress"+(e.color!==void 0?` text-${e.color}`:"")+(e.reverse===!0||e.query===!0?" q-linear-progress--reverse":"")+(e.rounded===!0?" rounded-borders":"")),h=c(()=>yn(e.buffer!==void 0?e.buffer:1,i.value,l.$q)),r=c(()=>`with${e.instantFeedback===!0?"out":""}-transition`),m=c(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${r.value} q-linear-progress__track--${n.value===!0?"dark":"light"}`+(e.trackColor!==void 0?` bg-${e.trackColor}`:"")),C=c(()=>yn(o.value===!0?1:e.value,i.value,l.$q)),b=c(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${r.value} q-linear-progress__model--${o.value===!0?"in":""}determinate`),w=c(()=>({width:`${e.value*100}%`})),P=c(()=>`q-linear-progress__stripe absolute-${e.reverse===!0?"right":"left"} q-linear-progress__stripe--${r.value}`);return()=>{const p=[v("div",{class:m.value,style:h.value}),v("div",{class:b.value,style:C.value})];return e.stripe===!0&&o.value===!1&&p.push(v("div",{class:P.value,style:w.value})),v("div",{class:d.value,style:s.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":e.indeterminate===!0?void 0:e.value},al(t.default,p))}}});function oi(e,t){const l=Q(null),n=c(()=>e.disable===!0?null:v("span",{ref:l,class:"no-outline",tabindex:-1}));function a(o){const i=t.value;o!==void 0&&o.type.indexOf("key")===0?i!==null&&document.activeElement!==i&&i.contains(document.activeElement)===!0&&i.focus():l.value!==null&&(o===void 0||i!==null&&i.contains(o.target)===!0)&&l.value.focus()}return{refocusTargetEl:n,refocusTarget:a}}var ii={xs:30,sm:35,md:40,lg:50,xl:60};const ri={...ze,...Bl,...Il,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]},ui=["update:modelValue"];function si(e,t){const{props:l,slots:n,emit:a,proxy:o}=ue(),{$q:i}=o,s=Ne(l,i),d=Q(null),{refocusTargetEl:h,refocusTarget:r}=oi(l,d),m=El(l,ii),C=c(()=>l.val!==void 0&&Array.isArray(l.modelValue)),b=c(()=>{const y=St(l.val);return C.value===!0?l.modelValue.findIndex(j=>St(j)===y):-1}),w=c(()=>C.value===!0?b.value!==-1:St(l.modelValue)===St(l.trueValue)),P=c(()=>C.value===!0?b.value===-1:St(l.modelValue)===St(l.falseValue)),p=c(()=>w.value===!1&&P.value===!1),N=c(()=>l.disable===!0?-1:l.tabindex||0),V=c(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(l.disable===!0?" disabled":"")+(s.value===!0?` q-${e}--dark`:"")+(l.dense===!0?` q-${e}--dense`:"")+(l.leftLabel===!0?" reverse":"")),R=c(()=>{const y=w.value===!0?"truthy":P.value===!0?"falsy":"indet",j=l.color!==void 0&&(l.keepColor===!0||(e==="toggle"?w.value===!0:P.value!==!0))?` text-${l.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${y}${j}`}),B=c(()=>{const y={type:"checkbox"};return l.name!==void 0&&Object.assign(y,{".checked":w.value,"^checked":w.value===!0?"checked":void 0,name:l.name,value:C.value===!0?l.val:l.trueValue}),y}),q=lo(B),_=c(()=>{const y={tabindex:N.value,role:e==="toggle"?"switch":"checkbox","aria-label":l.label,"aria-checked":p.value===!0?"mixed":w.value===!0?"true":"false"};return l.disable===!0&&(y["aria-disabled"]="true"),y});function H(y){y!==void 0&&(Me(y),r(y)),l.disable!==!0&&a("update:modelValue",D(),y)}function D(){if(C.value===!0){if(w.value===!0){const y=l.modelValue.slice();return y.splice(b.value,1),y}return l.modelValue.concat([l.val])}if(w.value===!0){if(l.toggleOrder!=="ft"||l.toggleIndeterminate===!1)return l.falseValue}else if(P.value===!0){if(l.toggleOrder==="ft"||l.toggleIndeterminate===!1)return l.trueValue}else return l.toggleOrder!=="ft"?l.trueValue:l.falseValue;return l.indeterminateValue}function x(y){(y.keyCode===13||y.keyCode===32)&&Me(y)}function k(y){(y.keyCode===13||y.keyCode===32)&&H(y)}const E=t(w,p);return Object.assign(o,{toggle:H}),()=>{const y=E();l.disable!==!0&&q(y,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const j=[v("div",{class:R.value,style:m.value,"aria-hidden":"true"},y)];h.value!==null&&j.push(h.value);const K=l.label!==void 0?al(n.default,[l.label]):we(n.default);return K!==void 0&&j.push(v("div",{class:`q-${e}__label q-anchor--skip`},K)),v("div",{ref:d,class:V.value,..._.value,onClick:H,onKeydown:x,onKeyup:k},j)}}const ci=v("div",{key:"svg",class:"q-checkbox__bg absolute"},[v("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[v("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),v("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]);var kl=he({name:"QCheckbox",props:ri,emits:ui,setup(e){function t(l,n){const a=c(()=>(l.value===!0?e.checkedIcon:n.value===!0?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>a.value!==null?[v("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[v(De,{class:"q-checkbox__icon",name:a.value})])]:[ci]}return si("checkbox",t)}});let Mt=0;const di={fullscreen:Boolean,noRouteFullscreenExit:Boolean},fi=["update:fullscreen","fullscreen"];function vi(){const e=ue(),{props:t,emit:l,proxy:n}=e;let a,o,i;const s=Q(!1);Fn(e)===!0&&le(()=>n.$route.fullPath,()=>{t.noRouteFullscreenExit!==!0&&r()}),le(()=>t.fullscreen,m=>{s.value!==m&&d()}),le(s,m=>{l("update:fullscreen",m),l("fullscreen",m)});function d(){s.value===!0?r():h()}function h(){s.value!==!0&&(s.value=!0,i=n.$el.parentNode,i.replaceChild(o,n.$el),document.body.appendChild(n.$el),Mt++,Mt===1&&document.body.classList.add("q-body--fullscreen-mixin"),a={handler:r},Yt.add(a))}function r(){s.value===!0&&(a!==void 0&&(Yt.remove(a),a=void 0),i.replaceChild(n.$el,o),s.value=!1,Mt=Math.max(0,Mt-1),Mt===0&&(document.body.classList.remove("q-body--fullscreen-mixin"),n.$el.scrollIntoView!==void 0&&setTimeout(()=>{n.$el.scrollIntoView()})))}return Pl(()=>{o=document.createElement("span")}),Ge(()=>{t.fullscreen===!0&&h()}),_e(r),Object.assign(n,{toggleFullscreen:d,setFullscreen:h,exitFullscreen:r}),{inFullscreen:s,toggleFullscreen:d}}function mi(e,t){return new Date(e)-new Date(t)}const gi={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:e=>e==="ad"||e==="da",default:"ad"}};function hi(e,t,l,n){const a=c(()=>{const{sortBy:s}=t.value;return s&&l.value.find(d=>d.name===s)||null}),o=c(()=>e.sortMethod!==void 0?e.sortMethod:(s,d,h)=>{const r=l.value.find(b=>b.name===d);if(r===void 0||r.field===void 0)return s;const m=h===!0?-1:1,C=typeof r.field=="function"?b=>r.field(b):b=>b[r.field];return s.sort((b,w)=>{let P=C(b),p=C(w);return r.rawSort!==void 0?r.rawSort(P,p,b,w)*m:P==null?-1*m:p==null?1*m:r.sort!==void 0?r.sort(P,p,b,w)*m:Cl(P)===!0&&Cl(p)===!0?(P-p)*m:jl(P)===!0&&jl(p)===!0?mi(P,p)*m:typeof P=="boolean"&&typeof p=="boolean"?(P-p)*m:([P,p]=[P,p].map(N=>(N+"").toLocaleString().toLowerCase()),PC.name===s);m!==void 0&&m.sortOrder&&(d=m.sortOrder)}let{sortBy:h,descending:r}=t.value;h!==s?(h=s,r=d==="da"):e.binaryStateSort===!0?r=!r:r===!0?d==="ad"?h=null:r=!1:d==="ad"?r=!0:h=null,n({sortBy:h,descending:r,page:1})}return{columnToSort:a,computedSortMethod:o,sort:i}}const bi={filter:[String,Object],filterMethod:Function};function yi(e,t){const l=c(()=>e.filterMethod!==void 0?e.filterMethod:(n,a,o,i)=>{const s=a?a.toLowerCase():"";return n.filter(d=>o.some(h=>{const r=i(h,d)+"";return(r==="undefined"||r==="null"?"":r.toLowerCase()).indexOf(s)!==-1}))});return le(()=>e.filter,()=>{me(()=>{t({page:1},!0)})},{deep:!0}),{computedFilterMethod:l}}function Si(e,t){for(const l in t)if(t[l]!==e[l])return!1;return!0}function Sn(e){return e.page<1&&(e.page=1),e.rowsPerPage!==void 0&&e.rowsPerPage<1&&(e.rowsPerPage=0),e}const wi={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function pi(e,t){const{props:l,emit:n}=e,a=Q(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:l.rowsPerPageOptions.length!==0?l.rowsPerPageOptions[0]:5},l.pagination)),o=c(()=>{const r=l["onUpdate:pagination"]!==void 0?{...a.value,...l.pagination}:a.value;return Sn(r)}),i=c(()=>o.value.rowsNumber!==void 0);function s(r){d({pagination:r,filter:l.filter})}function d(r={}){me(()=>{n("request",{pagination:r.pagination||o.value,filter:r.filter||l.filter,getCellValue:t})})}function h(r,m){const C=Sn({...o.value,...r});if(Si(o.value,C)===!0){i.value===!0&&m===!0&&s(C);return}if(i.value===!0){s(C);return}l.pagination!==void 0&&l["onUpdate:pagination"]!==void 0?n("update:pagination",C):a.value=C}return{innerPagination:a,computedPagination:o,isServerSide:i,requestServerInteraction:d,setPagination:h}}function xi(e,t,l,n,a,o){const{props:i,emit:s,proxy:{$q:d}}=e,h=c(()=>n.value===!0?l.value.rowsNumber||0:o.value),r=c(()=>{const{page:B,rowsPerPage:q}=l.value;return(B-1)*q}),m=c(()=>{const{page:B,rowsPerPage:q}=l.value;return B*q}),C=c(()=>l.value.page===1),b=c(()=>l.value.rowsPerPage===0?1:Math.max(1,Math.ceil(h.value/l.value.rowsPerPage))),w=c(()=>m.value===0?!0:l.value.page>=b.value),P=c(()=>(i.rowsPerPageOptions.includes(t.value.rowsPerPage)?i.rowsPerPageOptions:[t.value.rowsPerPage].concat(i.rowsPerPageOptions)).map(q=>({label:q===0?d.lang.table.allRows:""+q,value:q})));le(b,(B,q)=>{if(B===q)return;const _=l.value.page;B&&!_?a({page:1}):B<_&&a({page:B})});function p(){a({page:1})}function N(){const{page:B}=l.value;B>1&&a({page:B-1})}function V(){const{page:B,rowsPerPage:q}=l.value;m.value>0&&B*q["single","multiple","none"].includes(e)},selected:{type:Array,default:()=>[]}},Ci=["update:selected","selection"];function _i(e,t,l,n){const a=c(()=>{const w={};return e.selected.map(n.value).forEach(P=>{w[P]=!0}),w}),o=c(()=>e.selection!=="none"),i=c(()=>e.selection==="single"),s=c(()=>e.selection==="multiple"),d=c(()=>l.value.length!==0&&l.value.every(w=>a.value[n.value(w)]===!0)),h=c(()=>d.value!==!0&&l.value.some(w=>a.value[n.value(w)]===!0)),r=c(()=>e.selected.length);function m(w){return a.value[w]===!0}function C(){t("update:selected",[])}function b(w,P,p,N){t("selection",{rows:P,added:p,keys:w,evt:N});const V=i.value===!0?p===!0?P:[]:p===!0?e.selected.concat(P):e.selected.filter(R=>w.includes(n.value(R))===!1);t("update:selected",V)}return{hasSelectionMode:o,singleSelection:i,multipleSelection:s,allRowsSelected:d,someRowsSelected:h,rowsSelectedNumber:r,isRowSelected:m,clearSelection:C,updateSelection:b}}function wn(e){return Array.isArray(e)?e.slice():[]}const qi={expanded:Array},Vi=["update:expanded"];function Mi(e,t){const l=Q(wn(e.expanded));le(()=>e.expanded,i=>{l.value=wn(i)});function n(i){return l.value.includes(i)}function a(i){e.expanded!==void 0?t("update:expanded",i):l.value=i}function o(i,s){const d=l.value.slice(),h=d.indexOf(i);s===!0?h===-1&&(d.push(i),a(d)):h!==-1&&(d.splice(h,1),a(d))}return{isRowExpanded:n,setExpanded:a,updateExpanded:o}}const Ri={visibleColumns:Array};function Pi(e,t,l){const n=c(()=>{if(e.columns!==void 0)return e.columns;const s=e.rows[0];return s!==void 0?Object.keys(s).map(d=>({name:d,label:d.toUpperCase(),field:d,align:Cl(s[d])?"right":"left",sortable:!0})):[]}),a=c(()=>{const{sortBy:s,descending:d}=t.value;return(e.visibleColumns!==void 0?n.value.filter(r=>r.required===!0||e.visibleColumns.includes(r.name)===!0):n.value).map(r=>{const m=r.align||"right",C=`text-${m}`;return{...r,align:m,__iconClass:`q-table__sort-icon q-table__sort-icon--${m}`,__thClass:C+(r.headerClasses!==void 0?" "+r.headerClasses:"")+(r.sortable===!0?" sortable":"")+(r.name===s?` sorted ${d===!0?"sort-desc":""}`:""),__tdStyle:r.style!==void 0?typeof r.style!="function"?()=>r.style:r.style:()=>null,__tdClass:r.classes!==void 0?typeof r.classes!="function"?()=>C+" "+r.classes:b=>C+" "+r.classes(b):()=>C}})}),o=c(()=>{const s={};return a.value.forEach(d=>{s[d.name]=d}),s}),i=c(()=>e.tableColspan!==void 0?e.tableColspan:a.value.length+(l.value===!0?1:0));return{colList:n,computedCols:a,computedColsMap:o,computedColspan:i}}const Ut="q-table__bottom row items-center",ra={};Qn.forEach(e=>{ra[e]={}});var ua=he({name:"QTable",props:{rows:{type:Array,required:!0},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:e=>["horizontal","vertical","cell","none"].includes(e)},wrapCells:Boolean,virtualScroll:Boolean,virtualScrollTarget:{},...ra,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...ze,...di,...Ri,...bi,...wi,...qi,...ki,...gi},emits:["request","virtualScroll",...fi,...Vi,...Ci],setup(e,{slots:t,emit:l}){const n=ue(),{proxy:{$q:a}}=n,o=Ne(e,a),{inFullscreen:i,toggleFullscreen:s}=vi(),d=c(()=>typeof e.rowKey=="function"?e.rowKey:S=>S[e.rowKey]),h=Q(null),r=Q(null),m=c(()=>e.grid!==!0&&e.virtualScroll===!0),C=c(()=>" q-table__card"+(o.value===!0?" q-table__card--dark q-dark":"")+(e.square===!0?" q-table--square":"")+(e.flat===!0?" q-table--flat":"")+(e.bordered===!0?" q-table--bordered":"")),b=c(()=>`q-table__container q-table--${e.separator}-separator column no-wrap`+(e.grid===!0?" q-table--grid":C.value)+(o.value===!0?" q-table--dark":"")+(e.dense===!0?" q-table--dense":"")+(e.wrapCells===!1?" q-table--no-wrap":"")+(i.value===!0?" fullscreen scroll":"")),w=c(()=>b.value+(e.loading===!0?" q-table--loading":""));le(()=>e.tableStyle+e.tableClass+e.tableHeaderStyle+e.tableHeaderClass+b.value,()=>{m.value===!0&&r.value!==null&&r.value.reset()});const{innerPagination:P,computedPagination:p,isServerSide:N,requestServerInteraction:V,setPagination:R}=pi(n,Ve),{computedFilterMethod:B}=yi(e,R),{isRowExpanded:q,setExpanded:_,updateExpanded:H}=Mi(e,l),D=c(()=>{let S=e.rows;if(N.value===!0||S.length===0)return S;const{sortBy:z,descending:U}=p.value;return e.filter&&(S=B.value(S,e.filter,g.value,Ve)),Y.value!==null&&(S=ne.value(e.rows===S?S.slice():S,z,U)),S}),x=c(()=>D.value.length),k=c(()=>{let S=D.value;if(N.value===!0)return S;const{rowsPerPage:z}=p.value;return z!==0&&(I.value===0&&e.rows!==S?S.length>ae.value&&(S=S.slice(0,ae.value)):S=S.slice(I.value,ae.value)),S}),{hasSelectionMode:E,singleSelection:y,multipleSelection:j,allRowsSelected:K,someRowsSelected:te,rowsSelectedNumber:F,isRowSelected:Z,clearSelection:A,updateSelection:W}=_i(e,l,k,d),{colList:ee,computedCols:g,computedColsMap:f,computedColspan:L}=Pi(e,p,E),{columnToSort:Y,computedSortMethod:ne,sort:M}=hi(e,p,ee,R),{firstRowIndex:I,lastRowIndex:ae,isFirstPage:T,isLastPage:se,pagesNumber:pe,computedRowsPerPageOptions:We,computedRowsNumber:xe,firstPage:Qe,prevPage:Ee,nextPage:Fe,lastPage:Ke}=xi(n,P,p,N,R,x),Je=c(()=>k.value.length===0),kt=c(()=>{const S={};return Qn.forEach(z=>{S[z]=e[z]}),S.virtualScrollItemSize===void 0&&(S.virtualScrollItemSize=e.dense===!0?28:48),S});function et(){m.value===!0&&r.value.reset()}function Pe(){if(e.grid===!0)return Dt();const S=e.hideHeader!==!0?ft:null;if(m.value===!0){const U=t["top-row"],X=t["bottom-row"],J={default:fe=>At(fe.item,t.body,fe.index)};if(U!==void 0){const fe=v("tbody",U({cols:g.value}));J.before=S===null?()=>fe:()=>[S()].concat(fe)}else S!==null&&(J.before=S);return X!==void 0&&(J.after=()=>v("tbody",X({cols:g.value}))),v(So,{ref:r,class:e.tableClass,style:e.tableStyle,...kt.value,scrollTarget:e.virtualScrollTarget,items:k.value,type:"__qtable",tableColspan:L.value,onVirtualScroll:Ue},J)}const z=[$t()];return S!==null&&z.unshift(S()),Nn({class:["q-table__middle scroll",e.tableClass],style:e.tableStyle},z)}function ke(S,z){if(r.value!==null){r.value.scrollTo(S,z);return}S=parseInt(S,10);const U=h.value.querySelector(`tbody tr:nth-of-type(${S+1})`);if(U!==null){const X=h.value.querySelector(".q-table__middle.scroll"),J=U.offsetTop-e.virtualScrollStickySizeStart,fe=J{const mt=t[`body-cell-${Se.name}`],gt=mt!==void 0?mt:fe;return gt!==void 0?gt(rl({key:X,row:S,pageIndex:U,col:Se})):v("td",{class:Se.__tdClass(S),style:Se.__tdStyle(S)},Ve(Se,S))});if(E.value===!0){const Se=t["body-selection"],mt=Se!==void 0?Se(It({key:X,row:S,pageIndex:U})):[v(kl,{modelValue:J,color:e.color,dark:o.value,dense:e.dense,"onUpdate:modelValue":(gt,dl)=>{W([X],[S],gt,dl)}})];ce.unshift(v("td",{class:"q-table--col-auto-width"},mt))}const Ie={key:X,class:{selected:J}};return e.onRowClick!==void 0&&(Ie.class["cursor-pointer"]=!0,Ie.onClick=Se=>{l("rowClick",Se,S,U)}),e.onRowDblclick!==void 0&&(Ie.class["cursor-pointer"]=!0,Ie.onDblclick=Se=>{l("rowDblclick",Se,S,U)}),e.onRowContextmenu!==void 0&&(Ie.class["cursor-pointer"]=!0,Ie.onContextmenu=Se=>{l("rowContextmenu",Se,S,U)}),v("tr",Ie,ce)}function $t(){const S=t.body,z=t["top-row"],U=t["bottom-row"];let X=k.value.map((J,fe)=>At(J,S,fe));return z!==void 0&&(X=z({cols:g.value}).concat(X)),U!==void 0&&(X=X.concat(U({cols:g.value}))),v("tbody",X)}function ct(S){return Ae(S),S.cols=S.cols.map(z=>Ye({...z},"value",()=>Ve(z,S.row))),S}function rl(S){return Ae(S),Ye(S,"value",()=>Ve(S.col,S.row)),S}function It(S){return Ae(S),S}function Ae(S){Object.assign(S,{cols:g.value,colsMap:f.value,sort:M,rowIndex:I.value+S.pageIndex,color:e.color,dark:o.value,dense:e.dense}),E.value===!0&&Ye(S,"selected",()=>Z(S.key),(z,U)=>{W([S.key],[S.row],z,U)}),Ye(S,"expand",()=>q(S.key),z=>{H(S.key,z)})}function Ve(S,z){const U=typeof S.field=="function"?S.field(z):z[S.field];return S.format!==void 0?S.format(U,z):U}const $e=c(()=>({pagination:p.value,pagesNumber:pe.value,isFirstPage:T.value,isLastPage:se.value,firstPage:Qe,prevPage:Ee,nextPage:Fe,lastPage:Ke,inFullscreen:i.value,toggleFullscreen:s}));function ul(){const S=t.top,z=t["top-left"],U=t["top-right"],X=t["top-selection"],J=E.value===!0&&X!==void 0&&F.value>0,fe="q-table__top relative-position row items-center";if(S!==void 0)return v("div",{class:fe},[S($e.value)]);let ce;if(J===!0?ce=X($e.value).slice():(ce=[],z!==void 0?ce.push(v("div",{class:"q-table__control"},[z($e.value)])):e.title&&ce.push(v("div",{class:"q-table__control"},[v("div",{class:["q-table__title",e.titleClass]},e.title)]))),U!==void 0&&(ce.push(v("div",{class:"q-table__separator col"})),ce.push(v("div",{class:"q-table__control"},[U($e.value)]))),ce.length!==0)return v("div",{class:fe},ce)}const dt=c(()=>te.value===!0?null:K.value);function ft(){const S=Ht();return e.loading===!0&&t.loading===void 0&&S.push(v("tr",{class:"q-table__progress"},[v("th",{class:"relative-position",colspan:L.value},tt())])),v("thead",S)}function Ht(){const S=t.header,z=t["header-cell"];if(S!==void 0)return S(vt({header:!0})).slice();const U=g.value.map(X=>{const J=t[`header-cell-${X.name}`],fe=J!==void 0?J:z,ce=vt({col:X});return fe!==void 0?fe(ce):v(uo,{key:X.name,props:ce},()=>X.label)});if(y.value===!0&&e.grid!==!0)U.unshift(v("th",{class:"q-table--col-auto-width"}," "));else if(j.value===!0){const X=t["header-selection"],J=X!==void 0?X(vt({})):[v(kl,{color:e.color,modelValue:dt.value,dark:o.value,dense:e.dense,"onUpdate:modelValue":Ct})];U.unshift(v("th",{class:"q-table--col-auto-width"},J))}return[v("tr",{class:e.tableHeaderClass,style:e.tableHeaderStyle},U)]}function vt(S){return Object.assign(S,{cols:g.value,sort:M,colsMap:f.value,color:e.color,dark:o.value,dense:e.dense}),j.value===!0&&Ye(S,"selected",()=>dt.value,Ct),S}function Ct(S){te.value===!0&&(S=!1),W(k.value.map(d.value),k.value,S)}const lt=c(()=>{const S=[e.iconFirstPage||a.iconSet.table.firstPage,e.iconPrevPage||a.iconSet.table.prevPage,e.iconNextPage||a.iconSet.table.nextPage,e.iconLastPage||a.iconSet.table.lastPage];return a.lang.rtl===!0?S.reverse():S});function Ot(){if(e.hideBottom===!0)return;if(Je.value===!0){if(e.hideNoData===!0)return;const U=e.loading===!0?e.loadingLabel||a.lang.table.loading:e.filter?e.noResultsLabel||a.lang.table.noResults:e.noDataLabel||a.lang.table.noData,X=t["no-data"],J=X!==void 0?[X({message:U,icon:a.iconSet.table.warning,filter:e.filter})]:[v(De,{class:"q-table__bottom-nodata-icon",name:a.iconSet.table.warning}),U];return v("div",{class:Ut+" q-table__bottom--nodata"},J)}const S=t.bottom;if(S!==void 0)return v("div",{class:Ut},[S($e.value)]);const z=e.hideSelectedBanner!==!0&&E.value===!0&&F.value>0?[v("div",{class:"q-table__control"},[v("div",[(e.selectedRowsLabel||a.lang.table.selectedRecords)(F.value)])])]:[];if(e.hidePagination!==!0)return v("div",{class:Ut+" justify-end"},sl(z));if(z.length!==0)return v("div",{class:Ut},z)}function Lt(S){R({page:1,rowsPerPage:S.value})}function sl(S){let z;const{rowsPerPage:U}=p.value,X=e.paginationLabel||a.lang.table.pagination,J=t.pagination,fe=e.rowsPerPageOptions.length>1;if(S.push(v("div",{class:"q-table__separator col"})),fe===!0&&S.push(v("div",{class:"q-table__control"},[v("span",{class:"q-table__bottom-item"},[e.rowsPerPageLabel||a.lang.table.recordsPerPage]),v(li,{class:"q-table__select inline q-table__bottom-item",color:e.color,modelValue:U,options:We.value,displayValue:U===0?a.lang.table.allRows:U,dark:o.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":Lt})])),J!==void 0)z=J($e.value);else if(z=[v("span",U!==0?{class:"q-table__bottom-item"}:{},[U?X(I.value+1,Math.min(ae.value,xe.value),xe.value):X(1,x.value,xe.value)])],U!==0&&pe.value>1){const ce={color:e.color,round:!0,dense:!0,flat:!0};e.dense===!0&&(ce.size="sm"),pe.value>2&&z.push(v(zt,{key:"pgFirst",...ce,icon:lt.value[0],disable:T.value,onClick:Qe})),z.push(v(zt,{key:"pgPrev",...ce,icon:lt.value[1],disable:T.value,onClick:Ee}),v(zt,{key:"pgNext",...ce,icon:lt.value[2],disable:se.value,onClick:Fe})),pe.value>2&&z.push(v(zt,{key:"pgLast",...ce,icon:lt.value[3],disable:se.value,onClick:Ke}))}return S.push(v("div",{class:"q-table__control"},z)),S}function cl(){const S=e.gridHeader===!0?[v("table",{class:"q-table"},[ft()])]:e.loading===!0&&t.loading===void 0?tt():void 0;return v("div",{class:"q-table__middle"},S)}function Dt(){const S=t.item!==void 0?t.item:z=>{const U=z.cols.map(J=>v("div",{class:"q-table__grid-item-row"},[v("div",{class:"q-table__grid-item-title"},[J.label]),v("div",{class:"q-table__grid-item-value"},[J.value])]));if(E.value===!0){const J=t["body-selection"],fe=J!==void 0?J(z):[v(kl,{modelValue:z.selected,color:e.color,dark:o.value,dense:e.dense,"onUpdate:modelValue":(ce,Ie)=>{W([z.key],[z.row],ce,Ie)}})];U.unshift(v("div",{class:"q-table__grid-item-row"},fe),v(co,{dark:o.value}))}const X={class:["q-table__grid-item-card"+C.value,e.cardClass],style:e.cardStyle};return(e.onRowClick!==void 0||e.onRowDblclick!==void 0)&&(X.class[0]+=" cursor-pointer",e.onRowClick!==void 0&&(X.onClick=J=>{l("RowClick",J,z.row,z.pageIndex)}),e.onRowDblclick!==void 0&&(X.onDblclick=J=>{l("RowDblclick",J,z.row,z.pageIndex)})),v("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(z.selected===!0?" q-table__grid-item--selected":"")},[v("div",X,U)])};return v("div",{class:["q-table__grid-content row",e.cardContainerClass],style:e.cardContainerStyle},k.value.map((z,U)=>S(ct({key:d.value(z),row:z,pageIndex:U}))))}return Object.assign(n.proxy,{requestServerInteraction:V,setPagination:R,firstPage:Qe,prevPage:Ee,nextPage:Fe,lastPage:Ke,isRowSelected:Z,clearSelection:A,isRowExpanded:q,setExpanded:_,sort:M,resetVirtualScroll:et,scrollTo:ke,getCellValue:Ve}),Ca(n.proxy,{filteredSortedRows:()=>D.value,computedRows:()=>k.value,computedRowsNumber:()=>xe.value}),()=>{const S=[ul()],z={ref:h,class:w.value};return e.grid===!0?S.push(cl()):Object.assign(z,{class:[z.class,e.cardClass],style:e.cardStyle}),S.push(Pe(),Ot()),e.loading===!0&&t.loading!==void 0&&S.push(t.loading()),v("div",z,S)}}}),Ti=he({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(e,{slots:t}){const{proxy:{$q:l}}=ue(),n=Zt(_a,wt);if(n===wt)return console.error("QPage needs to be a deep child of QLayout"),wt;if(Zt(qa,wt)===wt)return console.error("QPage needs to be child of QPageContainer"),wt;const o=c(()=>{const s=(n.header.space===!0?n.header.size:0)+(n.footer.space===!0?n.footer.size:0);if(typeof e.styleFn=="function"){const d=n.isContainer.value===!0?n.containerHeight.value:l.screen.height;return e.styleFn(s,d)}return{minHeight:n.isContainer.value===!0?n.containerHeight.value-s+"px":l.screen.height===0?s!==0?`calc(100vh - ${s}px)`:"100vh":l.screen.height-s+"px"}}),i=c(()=>`q-page${e.padding===!0?" q-layout-padding":""}`);return()=>v("main",{class:i.value,style:o.value},we(t.default))}});function pn(e){const t=e.indexOf("(");if(t===-1)return[e];const l=e.slice(0,t).trim(),n=e.slice(t+1,e.indexOf(")")).trim();return[l,n]}function Bi(e){const t="from",l="by",n="with",a="id",o="via",i={rawHeaderDetails:e};if(!e.headerData)return i;let s=e.headerData;const d=e.headerData.lastIndexOf(";");if(d!==-1){const x=e.headerData.slice(d+1).trim();i.dateTime=new Date(x),s=e.headerData.slice(0,d)}const h=s.indexOf(`${t} `);let r=0;h>=0&&(r=h+t.length+1);const m=s.indexOf(`${l} `,r);if(m===-1)return i;if(h!==-1){const x=s.slice(r,m-1),k=pn(x);i.fromDomain=k[0],i.fromIpAddress=k[1]}const C=m+l.length+1,b=s.indexOf(`${n} `,C);if(b===-1)return i;const w=s.slice(C,b-1),P=pn(w);i.byDomain=P[0],i.byIpAddress=P[1];const p=b+n.length+1;let N=s.length,V=p;const R=s.indexOf(`${a} `,V);let B=0,q=0;R!==-1&&(B=R+a.length+1,V=B,N=R-1);const _=s.indexOf(`${o} `,V);let H=0,D=0;return _!==-1?(H=_+o.length+1,V=H,q=_-1,D=s.length):q=s.length,p>0&&(i.with=s.slice(p,N)),B>0&&(i.id=s.slice(B,q)),H>0&&(i.via=s.slice(H,D)),i}function Ei(e,t){const l=atob(e);return new TextDecoder(t).decode(new Uint8Array([...l].map(n=>n.charCodeAt(0))))}function Fi(e,t){const l=e.replace(/=([A-Fa-f0-9]{2})/g,(n,a)=>String.fromCharCode(parseInt(a,16)));return new TextDecoder(t).decode(new Uint8Array([...l].map(n=>n.charCodeAt(0))))}function xn(e,t){const l=e.replace(/\s=\?([^?]+)\?([BQ])\?([^?]+)\?=/gi,(a,o,i,s)=>i.toUpperCase()==="B"?Ei(s,o):i.toUpperCase()==="Q"?Fi(s,o).trim():e),n=l.indexOf(":");return{headerName:l.slice(0,n),headerData:l.slice(n+2),headerIndex:t}}function Ai(e){const t=e.split(/\r?\n/);if(!t)return;const l=[];let n="",a=0;for(const o of t){if(!o)break;/^\s/.test(o)?n+=o:(n&&(l.push(xn(n,a)),a++),n=o)}return n&&l.push(xn(n,a)),l}const kn={splitMailHeader:Ai,parseReceivedHeader:Bi},$i={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",width:"100%",height:"600",version:"1.1",viewBox:"0 0 32 32"},Ii=Va('',1),Hi={id:"letter",transform:"translate(0,-2)"},Oi=de("text",{x:"7",y:"5.9",style:{font:"normal 0.5px sans-serif",fill:"#666"}},"From",-1),Li={x:"7",y:"6.8",style:{font:"normal 0.7px sans-serif"}},Di=de("text",{x:"7",y:"7.6",style:{font:"normal 0.5px sans-serif",fill:"#666"}},"To",-1),zi={x:"7",y:"8.5",style:{font:"normal 0.7px sans-serif"}},Ni={x:"7",y:"12",style:{font:"normal 0.7px sans-serif","font-weight":"bold"}},ji=de("text",{x:"16",y:"26","dominant-baseline":"middle","text-anchor":"middle",style:{font:"normal 0.5px sans-serif",fill:"#666"}},"ReturnPath",-1),Wi={x:"16",y:"27","dominant-baseline":"middle","text-anchor":"middle",style:{font:"italic 1.0px sans-serif"}},Qi=Ft({__name:"LetterWithEnvelope",props:{from:{},to:{},subject:{},returnPath:{}},setup(e){return(t,l)=>{var n;return re(),qe("svg",$i,[Ii,de("g",Hi,[Oi,de("text",Li,Re(t.from),1),Di,de("text",zi,Re(t.to),1),de("text",Ni,Re((n=t.subject)==null?void 0:n.slice(0,50)),1)]),de("g",null,[ji,de("text",Wi,Re(t.returnPath),1)])])}}}),Ki={class:"row"},Ui={class:"col-2 bg-grey-4 q-pa-sm"},Zi={class:"col-10 q-pa-sm bg-grey text-white"},Xi={key:0,style:{margin:"0px","word-wrap":"break-word","white-space":"break-spaces"}},Yi={key:1,style:{"font-family":"monospace","word-wrap":"break-word","white-space":"break-spaces"}},je=Ft({__name:"MailDetailBox",props:{name:{},details:{default:void 0},preformatted:{type:Boolean,default:!1}},setup(e){return(t,l)=>(re(),qe("div",Ki,[de("div",Ui,Re(t.name),1),de("div",Zi,[(re(!0),qe(Tl,null,Bn(t.details,(n,a)=>(re(),qe("div",{key:`detail-${a}`},[t.preformatted?(re(),qe("pre",Xi,Re(n),1)):(re(),qe("div",Yi,Re(n),1))]))),128))])]))}});function Gi(){return Zt(Ma)}const Ji=["height","viewBox"],er=["transform"],tr=de("path",{d:"M 1,1 L 1,10 L 10,10, 10,1 Z","vector-effect":"non-scaling-stroke","shape-rendering":"crispEdges",style:{fill:"#263238"}},null,-1),lr={x:"5",y:"5.5","dominant-baseline":"middle","text-anchor":"middle",style:{font:"normal 4px sans-serif",fill:"#fff"}},nr=de("path",{d:"M 1,1 L 110,1 L 110,40 L 1,40 Z","vector-effect":"non-scaling-stroke","shape-rendering":"crispEdges",style:{fill:"none",stroke:"#263238","stroke-width":"1px"}},null,-1),ar={key:0,d:"M 111,15 L 115,20 L 111,25 Z",style:{fill:"#aaa",stroke:"#888","stroke-width":".3"}},or={x:"4",y:"20",style:{font:"bold 4px sans-serif",fill:"#666"}},ir={x:"4",y:"26",style:{font:"normal 4px sans-serif",fill:"#666"}},rr={x:"4",y:"32",style:{font:"normal 4px sans-serif",fill:"#666"}},Cn=110,_n=40,qn=5,Vn=5,ur=Ft({__name:"MailFlow",props:{receivedHeaders:{}},setup(e){const t=Gi(),l=e,n=c(()=>t.screen.gt.sm?6:2),a=c(()=>Math.ceil(l.receivedHeaders.length/n.value)),o=c(()=>n.value*(Cn+qn)),i=c(()=>a.value*(_n+Vn));function s(d){const r=Math.floor(d/n.value)*(_n+Vn);return`translate(${d%n.value*(Cn+qn)}, ${r})`}return(d,h)=>(re(),qe("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",width:"100%",height:i.value,version:"1.1",style:{width:"100%",height:"100%"},viewBox:`0 0 ${o.value} ${i.value}`},[(re(!0),qe(Tl,null,Bn(d.receivedHeaders,(r,m)=>{var C;return re(),qe("g",{key:m,transform:s(m)},[tr,de("text",lr,Re(m+1),1),nr,m"q-td"+(e.autoWidth===!0?" q-table--col-auto-width":"")+(e.noHover===!0?" q-td--no-hover":"")+" ");return()=>{if(e.props===void 0)return v("td",{class:n.value},we(t.default));const a=l.vnode.key,o=(e.props.colsMap!==void 0?e.props.colsMap[a]:null)||e.props.col;if(o===void 0)return;const{row:i}=e.props;return v("td",{class:n.value+o.__tdClass(i),style:o.__tdStyle(i)},we(t.default))}}});const sr=Ft({__name:"MailFlowTable",props:{receivedHeaders:{}},setup(e){const t=e,l=c(()=>{const a=[];a.push(void 0);for(let o=1;o(re(),Te(ua,{flat:"",bordered:"",rows:a.receivedHeaders,columns:n,"rows-per-page-options":[0],"no-paginate":"","hide-bottom":""},{"body-cell-dateTime":ot(i=>[Xe(Mn,null,{default:ot(()=>[Wl(Re(i.row.dateTime.toISOString()),1)]),_:2},1024)]),"body-cell-delay":ot(i=>[Xe(Mn,null,{default:ot(()=>[l.value[i.rowIndex]!==void 0?(re(),qe(Tl,{key:0},[Wl(Re(l.value[i.rowIndex].toFixed(1))+"s ",1)],64)):Ce("",!0)]),_:2},1024)]),_:1},8,["rows"]))}});const sa=e=>(Pa("data-v-0b722667"),e=e(),Ta(),e),cr={key:0,class:"row"},dr={class:"col-12 col-md-5"},fr={class:"col-12 col-md-7"},vr={class:"q-my-md"},mr={class:"q-gutter-sm"},gr={key:1},hr=sa(()=>de("h2",null,"Mail Hops",-1)),br={key:0,class:"q-mt-sm"},yr=sa(()=>de("h2",null,"Other Headers",-1)),Sr=Ft({__name:"IndexPage",setup(e){const t={From:"From",To:"To",Subject:"Subject",Received:"Received",ReplyTo:"Reply-To",ReturnPath:"Return-Path",MessageId:"Message-Id",Date:"Date",DkimSignature:"DKIM-Signature",AuthenticationResults:"Authentication-Results"},l=Q(),n=Q(),a=[{name:"headerName",align:"left",label:"Name",field:"headerName",sortable:!1,style:"width: 300px"},{name:"headerData",align:"left",label:"Data",field:"headerData",sortable:!1,classes:"text-break"},{name:"headerIndex",align:"left",label:"Index",field:"headerIndex",sortable:!1,style:"width: 70px"}],o=c(()=>{if(!!l.value)try{return kn.splitMailHeader(l.value)}catch(q){console.error(q);return}}),i=c(()=>{var q;return(q=o.value)==null?void 0:q.filter(_=>_.headerName===t.ReturnPath)}),s=c(()=>{if(!(!i.value||i.value.length===0))return i.value[0].headerData}),d=c(()=>{var q;return(q=o.value)==null?void 0:q.filter(_=>_.headerName===t.From)}),h=c(()=>{if(!(!d.value||d.value.length===0))return d.value[0].headerData}),r=c(()=>{var q;return(q=o.value)==null?void 0:q.filter(_=>_.headerName===t.To)}),m=c(()=>{if(!(!r.value||r.value.length===0))return r.value[0].headerData}),C=c(()=>{var q;return(q=o.value)==null?void 0:q.filter(_=>_.headerName===t.Date)}),b=c(()=>{var q;return(q=o.value)==null?void 0:q.filter(_=>_.headerName.toLowerCase()===t.MessageId.toLowerCase())}),w=c(()=>{var q;return(q=o.value)==null?void 0:q.filter(_=>_.headerName===t.Subject)}),P=c(()=>{if(!(!w.value||w.value.length===0))return w.value[0].headerData}),p=c(()=>{var H;if(!o.value)return;const q=(H=o.value)==null?void 0:H.filter(D=>D.headerName===t.Received);if(!q)return;const _=q.filter(D=>D.headerData).map(D=>kn.parseReceivedHeader(D));return _==null||_.sort((D,x)=>D.rawHeaderDetails.headerIndex&&x.rawHeaderDetails.headerIndex?x.rawHeaderDetails.headerIndex-D.rawHeaderDetails.headerIndex:-1),_}),N=c(()=>{var q;return(q=o.value)==null?void 0:q.filter(_=>_.headerName===t.ReplyTo)}),V=c(()=>{var q;return(q=o.value)==null?void 0:q.filter(_=>_.headerName===t.AuthenticationResults)}),R=c(()=>{var q;return(q=o.value)==null?void 0:q.filter(_=>_.headerName===t.DkimSignature)}),B=c(()=>{var D,x,k;const q=Object.values(t),_=(D=o.value)==null?void 0:D.filter(E=>!q.includes(E.headerName)),H=(x=n.value)==null?void 0:x.toLowerCase();return H?(k=o.value)==null?void 0:k.filter(E=>E.headerName.toLowerCase().includes(H)):_});return(q,_)=>(re(),Te(Ti,{padding:""},{default:ot(()=>{var H,D,x,k,E,y,j,K,te;return[de("div",null,[Xe(tn,{modelValue:l.value,"onUpdate:modelValue":_[0]||(_[0]=F=>l.value=F),spellcheck:"false",placeholder:"Paste email headers here",outlined:"",type:"textarea",rows:l.value?8:30},null,8,["modelValue","rows"])]),l.value?(re(),qe("div",cr,[de("div",dr,[Xe(Qi,{to:m.value,from:h.value,subject:P.value,"return-path":s.value},null,8,["to","from","subject","return-path"])]),de("div",fr,[de("div",vr,[de("div",mr,[i.value&&i.value.length>0?(re(),Te(je,{key:0,name:"Return-Path",details:(H=i.value)==null?void 0:H.map(F=>F.headerData),preformatted:!1},null,8,["details"])):Ce("",!0),d.value&&d.value.length>0?(re(),Te(je,{key:1,name:"From",details:(D=d.value)==null?void 0:D.map(F=>F.headerData),preformatted:!1},null,8,["details"])):Ce("",!0),r.value&&r.value.length>0?(re(),Te(je,{key:2,name:"To",details:(x=r.value)==null?void 0:x.map(F=>F.headerData),preformatted:!1},null,8,["details"])):Ce("",!0),N.value&&N.value.length>0?(re(),Te(je,{key:3,name:"Reply-To",details:(k=N.value)==null?void 0:k.map(F=>F.headerData),preformatted:!1},null,8,["details"])):Ce("",!0),b.value&&b.value.length>0?(re(),Te(je,{key:4,name:"Message-Id",details:(E=b.value)==null?void 0:E.map(F=>F.headerData),preformatted:!1},null,8,["details"])):Ce("",!0),C.value&&C.value.length>0?(re(),Te(je,{key:5,name:"Date",details:(y=C.value)==null?void 0:y.map(F=>F.headerData),preformatted:!1},null,8,["details"])):Ce("",!0),w.value&&w.value.length>0?(re(),Te(je,{key:6,name:"Subject",details:(j=w.value)==null?void 0:j.map(F=>F.headerData),preformatted:!1},null,8,["details"])):Ce("",!0),V.value&&V.value.length>0?(re(),Te(je,{key:7,name:"Authentication-Results",details:(K=V.value)==null?void 0:K.map(F=>F.headerData.split(";").map(Z=>Z.trim()).join(` +`)),preformatted:!0},null,8,["details"])):Ce("",!0),R.value&&R.value.length>0?(re(),Te(je,{key:8,name:"Dkim Signature",details:(te=R.value)==null?void 0:te.map(F=>F.headerData),preformatted:!1},null,8,["details"])):Ce("",!0)])])])])):Ce("",!0),l.value?(re(),qe("div",gr,[hr,p.value?(re(),qe("div",br,[Xe(ur,{"received-headers":p.value},null,8,["received-headers"]),Xe(sr,{"received-headers":p.value},null,8,["received-headers"])])):Ce("",!0),yr,B.value?(re(),Te(ua,{key:1,flat:"",bordered:"","wrap-cells":"","rows-per-page-options":[0],rows:B.value,columns:a,class:"full-width","table-style":"min-height: 400px;"},{top:ot(()=>[Xe(tn,{modelValue:n.value,"onUpdate:modelValue":_[1]||(_[1]=F=>n.value=F),outlined:"",dense:"",debounce:"100",placeholder:"Search",class:"full-width","bg-color":n.value?"grey-3":""},{append:ot(()=>[Xe(De,{name:"search"})]),_:1},8,["modelValue","bg-color"])]),_:1},8,["rows"])):Ce("",!0)])):Ce("",!0)]}),_:1}))}});var kr=Ra(Sr,[["__scopeId","data-v-0b722667"]]);export{kr as default}; diff --git a/assets/IndexPage.823ac002.css b/assets/IndexPage.823ac002.css new file mode 100644 index 0000000..b5bafd3 --- /dev/null +++ b/assets/IndexPage.823ac002.css @@ -0,0 +1 @@ +[data-v-0b722667] .text-break{word-break:break-all} diff --git a/assets/IndexPage.ad494e9e.css b/assets/IndexPage.ad494e9e.css deleted file mode 100644 index df8c5f0..0000000 --- a/assets/IndexPage.ad494e9e.css +++ /dev/null @@ -1 +0,0 @@ -[data-v-5e6a43be] .text-break{word-break:break-all} diff --git a/assets/MainLayout.d66de0a3.js b/assets/MainLayout.ccd918fa.js similarity index 98% rename from assets/MainLayout.d66de0a3.js rename to assets/MainLayout.ccd918fa.js index 82f255d..08b90c8 100644 --- a/assets/MainLayout.d66de0a3.js +++ b/assets/MainLayout.ccd918fa.js @@ -1 +1 @@ -import{c as q,a as d,h,r as w,i as K,o as P,b as R,n as G,d as D,g as Q,l as F,e as J,f as L,w as x,j as N,p as X,k as Z,m as C,q as ee,_ as te,s as ne,t as oe,u as le,v as T,x as _,y as E}from"./index.5c070da9.js";import{h as W,a as ie,b as re,Q as A}from"./QBtn.92b86c16.js";import{s as ae,g as se,a as ue,b as ce,c as k}from"./scroll.736871b0.js";var de=q({name:"QToolbarTitle",props:{shrink:Boolean},setup(e,{slots:v}){const n=d(()=>"q-toolbar__title ellipsis"+(e.shrink===!0?" col-shrink":""));return()=>h("div",{class:n.value},W(v.default))}}),fe=q({name:"QToolbar",props:{inset:Boolean},setup(e,{slots:v}){const n=d(()=>"q-toolbar row no-wrap items-center"+(e.inset===!0?" q-toolbar--inset":""));return()=>h("div",{class:n.value,role:"toolbar"},W(v.default))}});function ve(){const e=w(!K.value);return e.value===!1&&P(()=>{e.value=!0}),{isHydrated:e}}const Y=typeof ResizeObserver!="undefined",U=Y===!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"};var M=q({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:v}){let n=null,t,l={width:-1,height:-1};function s(a){a===!0||e.debounce===0||e.debounce==="0"?u():n===null&&(n=setTimeout(u,e.debounce))}function u(){if(n!==null&&(clearTimeout(n),n=null),t){const{offsetWidth:a,offsetHeight:i}=t;(a!==l.width||i!==l.height)&&(l={width:a,height:i},v("resize",l))}}const{proxy:m}=Q();if(m.trigger=s,Y===!0){let a;const i=g=>{t=m.$el.parentNode,t?(a=new ResizeObserver(s),a.observe(t),u()):g!==!0&&D(()=>{i(!0)})};return P(()=>{i()}),R(()=>{n!==null&&clearTimeout(n),a!==void 0&&(a.disconnect!==void 0?a.disconnect():t&&a.unobserve(t))}),G}else{let g=function(){n!==null&&(clearTimeout(n),n=null),i!==void 0&&(i.removeEventListener!==void 0&&i.removeEventListener("resize",s,F.passive),i=void 0)},b=function(){g(),t&&t.contentDocument&&(i=t.contentDocument.defaultView,i.addEventListener("resize",s,F.passive),u())};const{isHydrated:a}=ve();let i;return P(()=>{D(()=>{t=m.$el,t&&b()})}),R(g),()=>{if(a.value===!0)return h("object",{class:"q--avoid-card-border",style:U.style,tabindex:-1,type:"text/html",data:U.url,"aria-hidden":"true",onLoad:b})}}}}),he=q({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:v,emit:n}){const{proxy:{$q:t}}=Q(),l=J(N,L);if(l===L)return console.error("QHeader needs to be child of QLayout"),L;const s=w(parseInt(e.heightHint,10)),u=w(!0),m=d(()=>e.reveal===!0||l.view.value.indexOf("H")!==-1||t.platform.is.ios&&l.isContainer.value===!0),a=d(()=>{if(e.modelValue!==!0)return 0;if(m.value===!0)return u.value===!0?s.value:0;const o=s.value-l.scroll.value.position;return o>0?o:0}),i=d(()=>e.modelValue!==!0||m.value===!0&&u.value!==!0),g=d(()=>e.modelValue===!0&&i.value===!0&&e.reveal===!0),b=d(()=>"q-header q-layout__section--marginal "+(m.value===!0?"fixed":"absolute")+"-top"+(e.bordered===!0?" q-header--bordered":"")+(i.value===!0?" q-header--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus":"")),z=d(()=>{const o=l.rows.value.top,p={};return o[0]==="l"&&l.left.space===!0&&(p[t.lang.rtl===!0?"right":"left"]=`${l.left.size}px`),o[2]==="r"&&l.right.space===!0&&(p[t.lang.rtl===!0?"left":"right"]=`${l.right.size}px`),p});function c(o,p){l.update("header",o,p)}function y(o,p){o.value!==p&&(o.value=p)}function V({height:o}){y(s,o),c("size",o)}function O(o){g.value===!0&&y(u,!0),n("focusin",o)}x(()=>e.modelValue,o=>{c("space",o),y(u,!0),l.animate()}),x(a,o=>{c("offset",o)}),x(()=>e.reveal,o=>{o===!1&&y(u,e.modelValue)}),x(u,o=>{l.animate(),n("reveal",o)}),x(l.scroll,o=>{e.reveal===!0&&y(u,o.direction==="up"||o.position<=e.revealOffset||o.position-o.inflectionPoint<100)});const $={};return l.instances.header=$,e.modelValue===!0&&c("size",s.value),c("space",e.modelValue),c("offset",a.value),R(()=>{l.instances.header===$&&(l.instances.header=void 0,c("size",0),c("offset",0),c("space",!1))}),()=>{const o=ie(v.default,[]);return e.elevated===!0&&o.push(h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),o.push(h(M,{debounce:0,onResize:V})),h("header",{class:b.value,style:z.value,onFocusin:O},o)}}}),me=q({name:"QPageContainer",setup(e,{slots:v}){const{proxy:{$q:n}}=Q(),t=J(N,L);if(t===L)return console.error("QPageContainer needs to be child of QLayout"),L;X(Z,!0);const l=d(()=>{const s={};return t.header.space===!0&&(s.paddingTop=`${t.header.size}px`),t.right.space===!0&&(s[`padding${n.lang.rtl===!0?"Left":"Right"}`]=`${t.right.size}px`),t.footer.space===!0&&(s.paddingBottom=`${t.footer.size}px`),t.left.space===!0&&(s[`padding${n.lang.rtl===!0?"Right":"Left"}`]=`${t.left.size}px`),s});return()=>h("div",{class:"q-page-container",style:l.value},W(v.default))}});const{passive:I}=F,ge=["both","horizontal","vertical"];var be=q({name:"QScrollObserver",props:{axis:{type:String,validator:e=>ge.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:ae},emits:["scroll"],setup(e,{emit:v}){const n={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let t=null,l,s;x(()=>e.scrollTarget,()=>{a(),m()});function u(){t!==null&&t();const b=Math.max(0,ue(l)),z=ce(l),c={top:b-n.position.top,left:z-n.position.left};if(e.axis==="vertical"&&c.top===0||e.axis==="horizontal"&&c.left===0)return;const y=Math.abs(c.top)>=Math.abs(c.left)?c.top<0?"up":"down":c.left<0?"left":"right";n.position={top:b,left:z},n.directionChanged=n.direction!==y,n.delta=c,n.directionChanged===!0&&(n.direction=y,n.inflectionPoint=n.position),v("scroll",{...n})}function m(){l=se(s,e.scrollTarget),l.addEventListener("scroll",i,I),i(!0)}function a(){l!==void 0&&(l.removeEventListener("scroll",i,I),l=void 0)}function i(b){if(b===!0||e.debounce===0||e.debounce==="0")u();else if(t===null){const[z,c]=e.debounce?[setTimeout(u,e.debounce),clearTimeout]:[requestAnimationFrame(u),cancelAnimationFrame];t=()=>{c(z),t=null}}}const{proxy:g}=Q();return x(()=>g.$q.lang.rtl,u),P(()=>{s=g.$el.parentNode,m()}),R(()=>{t!==null&&t(),a()}),Object.assign(g,{trigger:i,getPosition:()=>n}),G}}),pe=q({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:v,emit:n}){const{proxy:{$q:t}}=Q(),l=w(null),s=w(t.screen.height),u=w(e.container===!0?0:t.screen.width),m=w({position:0,direction:"down",inflectionPoint:0}),a=w(0),i=w(K.value===!0?0:k()),g=d(()=>"q-layout q-layout--"+(e.container===!0?"containerized":"standard")),b=d(()=>e.container===!1?{minHeight:t.screen.height+"px"}:null),z=d(()=>i.value!==0?{[t.lang.rtl===!0?"left":"right"]:`${i.value}px`}:null),c=d(()=>i.value!==0?{[t.lang.rtl===!0?"right":"left"]:0,[t.lang.rtl===!0?"left":"right"]:`-${i.value}px`,width:`calc(100% + ${i.value}px)`}:null);function y(r){if(e.container===!0||document.qScrollPrevented!==!0){const f={position:r.position.top,direction:r.direction,directionChanged:r.directionChanged,inflectionPoint:r.inflectionPoint.top,delta:r.delta.top};m.value=f,e.onScroll!==void 0&&n("scroll",f)}}function V(r){const{height:f,width:S}=r;let H=!1;s.value!==f&&(H=!0,s.value=f,e.onScrollHeight!==void 0&&n("scrollHeight",f),$()),u.value!==S&&(H=!0,u.value=S),H===!0&&e.onResize!==void 0&&n("resize",r)}function O({height:r}){a.value!==r&&(a.value=r,$())}function $(){if(e.container===!0){const r=s.value>a.value?k():0;i.value!==r&&(i.value=r)}}let o=null;const p={instances:{},view:d(()=>e.view),isContainer:d(()=>e.container),rootRef:l,height:s,containerHeight:a,scrollbarWidth:i,totalWidth:d(()=>u.value+i.value),rows:d(()=>{const r=e.view.toLowerCase().split(" ");return{top:r[0].split(""),middle:r[1].split(""),bottom:r[2].split("")}}),header:C({size:0,offset:0,space:!1}),right:C({size:300,offset:0,space:!1}),footer:C({size:0,offset:0,space:!1}),left:C({size:300,offset:0,space:!1}),scroll:m,animate(){o!==null?clearTimeout(o):document.body.classList.add("q-body--layout-animate"),o=setTimeout(()=>{o=null,document.body.classList.remove("q-body--layout-animate")},155)},update(r,f,S){p[r][f]=S}};if(X(N,p),k()>0){let S=function(){r=null,f.classList.remove("hide-scrollbar")},H=function(){if(r===null){if(f.scrollHeight>t.screen.height)return;f.classList.add("hide-scrollbar")}else clearTimeout(r);r=setTimeout(S,300)},B=function(j){r!==null&&j==="remove"&&(clearTimeout(r),S()),window[`${j}EventListener`]("resize",H)},r=null;const f=document.body;x(()=>e.container!==!0?"add":"remove",B),e.container!==!0&&B("add"),ee(()=>{B("remove")})}return()=>{const r=re(v.default,[h(be,{onScroll:y}),h(M,{onResize:V})]),f=h("div",{class:g.value,style:b.value,ref:e.container===!0?void 0:l,tabindex:-1},r);return e.container===!0?h("div",{class:"q-layout-container overflow-hidden",ref:l},[h(M,{onResize:O}),h("div",{class:"absolute-full",style:z.value},[h("div",{class:"scroll",style:c.value},[f])])]):f}}});const ye={};function we(e,v){const n=ne("router-view");return oe(),le(pe,{view:"lHh Lpr lFf"},{default:T(()=>[_(he,null,{default:T(()=>[_(fe,null,{default:T(()=>[_(de,null,{default:T(()=>[E(" Mailtower - E-Mail Header Analyzer ")]),_:1}),_(A,{stretch:"",flat:"",href:"https://mailtower.app"},{default:T(()=>[E(" Mailtower.app ")]),_:1}),_(A,{stretch:"",flat:"",href:"https://github.com/mailtower-app/email-header-analyzer"},{default:T(()=>[E(" GitHub ")]),_:1})]),_:1})]),_:1}),_(me,null,{default:T(()=>[_(n)]),_:1})]),_:1})}var Te=te(ye,[["render",we]]);export{Te as default}; +import{c as q,a as d,h,r as w,i as K,o as P,b as R,n as G,d as D,g as Q,l as F,e as J,f as L,w as x,j as N,p as X,k as Z,m as C,q as ee,_ as te,s as ne,t as oe,u as le,v as T,x as _,y as E}from"./index.736665e3.js";import{h as W,a as ie,b as re,Q as A}from"./QBtn.c5c37d96.js";import{s as ae,g as se,a as ue,b as ce,c as k}from"./scroll.f9bb6be7.js";var de=q({name:"QToolbarTitle",props:{shrink:Boolean},setup(e,{slots:v}){const n=d(()=>"q-toolbar__title ellipsis"+(e.shrink===!0?" col-shrink":""));return()=>h("div",{class:n.value},W(v.default))}}),fe=q({name:"QToolbar",props:{inset:Boolean},setup(e,{slots:v}){const n=d(()=>"q-toolbar row no-wrap items-center"+(e.inset===!0?" q-toolbar--inset":""));return()=>h("div",{class:n.value,role:"toolbar"},W(v.default))}});function ve(){const e=w(!K.value);return e.value===!1&&P(()=>{e.value=!0}),{isHydrated:e}}const Y=typeof ResizeObserver!="undefined",U=Y===!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"};var M=q({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:v}){let n=null,t,l={width:-1,height:-1};function s(a){a===!0||e.debounce===0||e.debounce==="0"?u():n===null&&(n=setTimeout(u,e.debounce))}function u(){if(n!==null&&(clearTimeout(n),n=null),t){const{offsetWidth:a,offsetHeight:i}=t;(a!==l.width||i!==l.height)&&(l={width:a,height:i},v("resize",l))}}const{proxy:m}=Q();if(m.trigger=s,Y===!0){let a;const i=g=>{t=m.$el.parentNode,t?(a=new ResizeObserver(s),a.observe(t),u()):g!==!0&&D(()=>{i(!0)})};return P(()=>{i()}),R(()=>{n!==null&&clearTimeout(n),a!==void 0&&(a.disconnect!==void 0?a.disconnect():t&&a.unobserve(t))}),G}else{let g=function(){n!==null&&(clearTimeout(n),n=null),i!==void 0&&(i.removeEventListener!==void 0&&i.removeEventListener("resize",s,F.passive),i=void 0)},b=function(){g(),t&&t.contentDocument&&(i=t.contentDocument.defaultView,i.addEventListener("resize",s,F.passive),u())};const{isHydrated:a}=ve();let i;return P(()=>{D(()=>{t=m.$el,t&&b()})}),R(g),()=>{if(a.value===!0)return h("object",{class:"q--avoid-card-border",style:U.style,tabindex:-1,type:"text/html",data:U.url,"aria-hidden":"true",onLoad:b})}}}}),he=q({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:v,emit:n}){const{proxy:{$q:t}}=Q(),l=J(N,L);if(l===L)return console.error("QHeader needs to be child of QLayout"),L;const s=w(parseInt(e.heightHint,10)),u=w(!0),m=d(()=>e.reveal===!0||l.view.value.indexOf("H")!==-1||t.platform.is.ios&&l.isContainer.value===!0),a=d(()=>{if(e.modelValue!==!0)return 0;if(m.value===!0)return u.value===!0?s.value:0;const o=s.value-l.scroll.value.position;return o>0?o:0}),i=d(()=>e.modelValue!==!0||m.value===!0&&u.value!==!0),g=d(()=>e.modelValue===!0&&i.value===!0&&e.reveal===!0),b=d(()=>"q-header q-layout__section--marginal "+(m.value===!0?"fixed":"absolute")+"-top"+(e.bordered===!0?" q-header--bordered":"")+(i.value===!0?" q-header--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus":"")),z=d(()=>{const o=l.rows.value.top,p={};return o[0]==="l"&&l.left.space===!0&&(p[t.lang.rtl===!0?"right":"left"]=`${l.left.size}px`),o[2]==="r"&&l.right.space===!0&&(p[t.lang.rtl===!0?"left":"right"]=`${l.right.size}px`),p});function c(o,p){l.update("header",o,p)}function y(o,p){o.value!==p&&(o.value=p)}function V({height:o}){y(s,o),c("size",o)}function O(o){g.value===!0&&y(u,!0),n("focusin",o)}x(()=>e.modelValue,o=>{c("space",o),y(u,!0),l.animate()}),x(a,o=>{c("offset",o)}),x(()=>e.reveal,o=>{o===!1&&y(u,e.modelValue)}),x(u,o=>{l.animate(),n("reveal",o)}),x(l.scroll,o=>{e.reveal===!0&&y(u,o.direction==="up"||o.position<=e.revealOffset||o.position-o.inflectionPoint<100)});const $={};return l.instances.header=$,e.modelValue===!0&&c("size",s.value),c("space",e.modelValue),c("offset",a.value),R(()=>{l.instances.header===$&&(l.instances.header=void 0,c("size",0),c("offset",0),c("space",!1))}),()=>{const o=ie(v.default,[]);return e.elevated===!0&&o.push(h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),o.push(h(M,{debounce:0,onResize:V})),h("header",{class:b.value,style:z.value,onFocusin:O},o)}}}),me=q({name:"QPageContainer",setup(e,{slots:v}){const{proxy:{$q:n}}=Q(),t=J(N,L);if(t===L)return console.error("QPageContainer needs to be child of QLayout"),L;X(Z,!0);const l=d(()=>{const s={};return t.header.space===!0&&(s.paddingTop=`${t.header.size}px`),t.right.space===!0&&(s[`padding${n.lang.rtl===!0?"Left":"Right"}`]=`${t.right.size}px`),t.footer.space===!0&&(s.paddingBottom=`${t.footer.size}px`),t.left.space===!0&&(s[`padding${n.lang.rtl===!0?"Right":"Left"}`]=`${t.left.size}px`),s});return()=>h("div",{class:"q-page-container",style:l.value},W(v.default))}});const{passive:I}=F,ge=["both","horizontal","vertical"];var be=q({name:"QScrollObserver",props:{axis:{type:String,validator:e=>ge.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:ae},emits:["scroll"],setup(e,{emit:v}){const n={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let t=null,l,s;x(()=>e.scrollTarget,()=>{a(),m()});function u(){t!==null&&t();const b=Math.max(0,ue(l)),z=ce(l),c={top:b-n.position.top,left:z-n.position.left};if(e.axis==="vertical"&&c.top===0||e.axis==="horizontal"&&c.left===0)return;const y=Math.abs(c.top)>=Math.abs(c.left)?c.top<0?"up":"down":c.left<0?"left":"right";n.position={top:b,left:z},n.directionChanged=n.direction!==y,n.delta=c,n.directionChanged===!0&&(n.direction=y,n.inflectionPoint=n.position),v("scroll",{...n})}function m(){l=se(s,e.scrollTarget),l.addEventListener("scroll",i,I),i(!0)}function a(){l!==void 0&&(l.removeEventListener("scroll",i,I),l=void 0)}function i(b){if(b===!0||e.debounce===0||e.debounce==="0")u();else if(t===null){const[z,c]=e.debounce?[setTimeout(u,e.debounce),clearTimeout]:[requestAnimationFrame(u),cancelAnimationFrame];t=()=>{c(z),t=null}}}const{proxy:g}=Q();return x(()=>g.$q.lang.rtl,u),P(()=>{s=g.$el.parentNode,m()}),R(()=>{t!==null&&t(),a()}),Object.assign(g,{trigger:i,getPosition:()=>n}),G}}),pe=q({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:v,emit:n}){const{proxy:{$q:t}}=Q(),l=w(null),s=w(t.screen.height),u=w(e.container===!0?0:t.screen.width),m=w({position:0,direction:"down",inflectionPoint:0}),a=w(0),i=w(K.value===!0?0:k()),g=d(()=>"q-layout q-layout--"+(e.container===!0?"containerized":"standard")),b=d(()=>e.container===!1?{minHeight:t.screen.height+"px"}:null),z=d(()=>i.value!==0?{[t.lang.rtl===!0?"left":"right"]:`${i.value}px`}:null),c=d(()=>i.value!==0?{[t.lang.rtl===!0?"right":"left"]:0,[t.lang.rtl===!0?"left":"right"]:`-${i.value}px`,width:`calc(100% + ${i.value}px)`}:null);function y(r){if(e.container===!0||document.qScrollPrevented!==!0){const f={position:r.position.top,direction:r.direction,directionChanged:r.directionChanged,inflectionPoint:r.inflectionPoint.top,delta:r.delta.top};m.value=f,e.onScroll!==void 0&&n("scroll",f)}}function V(r){const{height:f,width:S}=r;let H=!1;s.value!==f&&(H=!0,s.value=f,e.onScrollHeight!==void 0&&n("scrollHeight",f),$()),u.value!==S&&(H=!0,u.value=S),H===!0&&e.onResize!==void 0&&n("resize",r)}function O({height:r}){a.value!==r&&(a.value=r,$())}function $(){if(e.container===!0){const r=s.value>a.value?k():0;i.value!==r&&(i.value=r)}}let o=null;const p={instances:{},view:d(()=>e.view),isContainer:d(()=>e.container),rootRef:l,height:s,containerHeight:a,scrollbarWidth:i,totalWidth:d(()=>u.value+i.value),rows:d(()=>{const r=e.view.toLowerCase().split(" ");return{top:r[0].split(""),middle:r[1].split(""),bottom:r[2].split("")}}),header:C({size:0,offset:0,space:!1}),right:C({size:300,offset:0,space:!1}),footer:C({size:0,offset:0,space:!1}),left:C({size:300,offset:0,space:!1}),scroll:m,animate(){o!==null?clearTimeout(o):document.body.classList.add("q-body--layout-animate"),o=setTimeout(()=>{o=null,document.body.classList.remove("q-body--layout-animate")},155)},update(r,f,S){p[r][f]=S}};if(X(N,p),k()>0){let S=function(){r=null,f.classList.remove("hide-scrollbar")},H=function(){if(r===null){if(f.scrollHeight>t.screen.height)return;f.classList.add("hide-scrollbar")}else clearTimeout(r);r=setTimeout(S,300)},B=function(j){r!==null&&j==="remove"&&(clearTimeout(r),S()),window[`${j}EventListener`]("resize",H)},r=null;const f=document.body;x(()=>e.container!==!0?"add":"remove",B),e.container!==!0&&B("add"),ee(()=>{B("remove")})}return()=>{const r=re(v.default,[h(be,{onScroll:y}),h(M,{onResize:V})]),f=h("div",{class:g.value,style:b.value,ref:e.container===!0?void 0:l,tabindex:-1},r);return e.container===!0?h("div",{class:"q-layout-container overflow-hidden",ref:l},[h(M,{onResize:O}),h("div",{class:"absolute-full",style:z.value},[h("div",{class:"scroll",style:c.value},[f])])]):f}}});const ye={};function we(e,v){const n=ne("router-view");return oe(),le(pe,{view:"lHh Lpr lFf"},{default:T(()=>[_(he,null,{default:T(()=>[_(fe,null,{default:T(()=>[_(de,null,{default:T(()=>[E(" Mailtower - E-Mail Header Analyzer ")]),_:1}),_(A,{stretch:"",flat:"",href:"https://mailtower.app"},{default:T(()=>[E(" Mailtower.app ")]),_:1}),_(A,{stretch:"",flat:"",href:"https://github.com/mailtower-app/email-header-analyzer"},{default:T(()=>[E(" GitHub ")]),_:1})]),_:1})]),_:1}),_(me,null,{default:T(()=>[_(n)]),_:1})]),_:1})}var Te=te(ye,[["render",we]]);export{Te as default}; diff --git a/assets/QBtn.92b86c16.js b/assets/QBtn.c5c37d96.js similarity index 99% rename from assets/QBtn.92b86c16.js rename to assets/QBtn.c5c37d96.js index 676401d..b1a7380 100644 --- a/assets/QBtn.92b86c16.js +++ b/assets/QBtn.c5c37d96.js @@ -1 +1 @@ -import{h as v,z as ae,a as c,c as Q,g as V,A as fe,B as ve,C as N,D as ge,E as me,F as re,G as he,r as H,b as be,T as ye,H as P,I as ke,l as pe}from"./index.5c070da9.js";function xe(e,t){return e!==void 0&&e()||t}function Je(e,t){if(e!==void 0){const n=e();if(n!=null)return n.slice()}return t}function z(e,t){return e!==void 0?t.concat(e()):t}function Ze(e,t){return e===void 0?t:t!==void 0?t.concat(e()):e()}function et(e,t,n,a,l,d){t.key=a+l;const o=v(e,t,n);return l===!0?ae(o,d()):o}const F={xs:18,sm:24,md:32,lg:38,xl:46},ie={size:String};function ue(e,t=F){return c(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}const U="0 0 24 24",W=e=>e,K=e=>`ionicons ${e}`,le={"mdi-":e=>`mdi ${e}`,"icon-":W,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":K,"ion-ios":K,"ion-logo":K,"iconfont ":W,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},oe={o_:"-outlined",r_:"-round",s_:"-sharp"},se={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},qe=new RegExp("^("+Object.keys(le).join("|")+")"),$e=new RegExp("^("+Object.keys(oe).join("|")+")"),X=new RegExp("^("+Object.keys(se).join("|")+")"),Ee=/^[Mm]\s?[-+]?\.?\d/,Se=/^img:/,Re=/^svguse:/,we=/^ion-/,Be=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /;var G=Q({name:"QIcon",props:{...ie,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=V(),a=ue(e),l=c(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),d=c(()=>{let o,i=e.name;if(i==="none"||!i)return{none:!0};if(n.iconMapFn!==null){const s=n.iconMapFn(i);if(s!==void 0)if(s.icon!==void 0){if(i=s.icon,i==="none"||!i)return{none:!0}}else return{cls:s.cls,content:s.content!==void 0?s.content:" "}}if(Ee.test(i)===!0){const[s,y=U]=i.split("|");return{svg:!0,viewBox:y,nodes:s.split("&&").map(u=>{const[k,h,p]=u.split("@@");return v("path",{style:h,d:k,transform:p})})}}if(Se.test(i)===!0)return{img:!0,src:i.substring(4)};if(Re.test(i)===!0){const[s,y=U]=i.split("|");return{svguse:!0,src:s.substring(7),viewBox:y}}let q=" ";const b=i.match(qe);if(b!==null)o=le[b[1]](i);else if(Be.test(i)===!0)o=i;else if(we.test(i)===!0)o=`ionicons ion-${n.platform.is.ios===!0?"ios":"md"}${i.substring(3)}`;else if(X.test(i)===!0){o="notranslate material-symbols";const s=i.match(X);s!==null&&(i=i.substring(6),o+=se[s[1]]),q=i}else{o="notranslate material-icons";const s=i.match($e);s!==null&&(i=i.substring(2),o+=oe[s[1]]),q=i}return{cls:o,content:q}});return()=>{const o={class:l.value,style:a.value,"aria-hidden":"true",role:"presentation"};return d.value.none===!0?v(e.tag,o,xe(t.default)):d.value.img===!0?v(e.tag,o,z(t.default,[v("img",{src:d.value.src})])):d.value.svg===!0?v(e.tag,o,z(t.default,[v("svg",{viewBox:d.value.viewBox||"0 0 24 24"},d.value.nodes)])):d.value.svguse===!0?v(e.tag,o,z(t.default,[v("svg",{viewBox:d.value.viewBox},[v("use",{"xlink:href":d.value.src})])])):(d.value.cls!==void 0&&(o.class+=" "+d.value.cls),v(e.tag,o,z(t.default,[d.value.content])))}}});const Ce={size:{type:[String,Number],default:"1em"},color:String};function Le(e){return{cSize:c(()=>e.size in F?`${F[e.size]}px`:e.size),classes:c(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}var _e=Q({name:"QSpinner",props:{...Ce,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:n}=Le(e);return()=>v("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[v("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function Pe(e,t){const n=e.style;for(const a in t)n[a]=t[a]}function tt(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=fe(e);if(t)return t.$el||t}function nt(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}function Te(e,t=250){let n=!1,a;return function(){return n===!1&&(n=!0,setTimeout(()=>{n=!1},t),a=e.apply(this,arguments)),a}}function Y(e,t,n,a){n.modifiers.stop===!0&&re(e);const l=n.modifiers.color;let d=n.modifiers.center;d=d===!0||a===!0;const o=document.createElement("span"),i=document.createElement("span"),q=he(e),{left:b,top:s,width:y,height:u}=t.getBoundingClientRect(),k=Math.sqrt(y*y+u*u),h=k/2,p=`${(y-k)/2}px`,f=d?p:`${q.left-b-h}px`,x=`${(u-k)/2}px`,_=d?x:`${q.top-s-h}px`;i.className="q-ripple__inner",Pe(i,{height:`${k}px`,width:`${k}px`,transform:`translate3d(${f},${_},0) scale3d(.2,.2,1)`,opacity:0}),o.className=`q-ripple${l?" text-"+l:""}`,o.setAttribute("dir","ltr"),o.appendChild(i),t.appendChild(o);const C=()=>{o.remove(),clearTimeout(L)};n.abort.push(C);let L=setTimeout(()=>{i.classList.add("q-ripple__inner--enter"),i.style.transform=`translate3d(${p},${x},0) scale3d(1,1,1)`,i.style.opacity=.2,L=setTimeout(()=>{i.classList.remove("q-ripple__inner--enter"),i.classList.add("q-ripple__inner--leave"),i.style.opacity=0,L=setTimeout(()=>{o.remove(),n.abort.splice(n.abort.indexOf(C),1)},275)},250)},50)}function J(e,{modifiers:t,value:n,arg:a}){const l=Object.assign({},e.cfg.ripple,t,n);e.modifiers={early:l.early===!0,stop:l.stop===!0,center:l.center===!0,color:l.color||a,keyCodes:[].concat(l.keyCodes||13)}}var Oe=ve({name:"ripple",beforeMount(e,t){const n=t.instance.$.appContext.config.globalProperties.$q.config||{};if(n.ripple===!1)return;const a={cfg:n,enabled:t.value!==!1,modifiers:{},abort:[],start(l){a.enabled===!0&&l.qSkipRipple!==!0&&l.type===(a.modifiers.early===!0?"pointerdown":"click")&&Y(l,e,a,l.qKeyEvent===!0)},keystart:Te(l=>{a.enabled===!0&&l.qSkipRipple!==!0&&N(l,a.modifiers.keyCodes)===!0&&l.type===`key${a.modifiers.early===!0?"down":"up"}`&&Y(l,e,a,!0)},300)};J(a,t),e.__qripple=a,ge(a,"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&&J(n,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(n=>{n()}),me(t,"main"),delete e._qripple)}});const ce={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Ae=Object.keys(ce),Me={align:{type:String,validator:e=>Ae.includes(e)}};function je(e){return c(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${ce[t]}`})}function at(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 ze(e){return e.appContext.config.globalProperties.$router!==void 0}function rt(e){return e.isUnmounted===!0||e.isDeactivated===!0}function Z(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function ee(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function De(e,t){for(const n in t){const a=t[n],l=e[n];if(typeof a=="string"){if(a!==l)return!1}else if(Array.isArray(l)===!1||l.length!==a.length||a.some((d,o)=>d!==l[o]))return!1}return!0}function te(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((n,a)=>n===t[a]):e.length===1&&e[0]===t}function Ie(e,t){return Array.isArray(e)===!0?te(e,t):Array.isArray(t)===!0?te(t,e):e===t}function Ke(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(Ie(e[n],t[n])===!1)return!1;return!0}const de={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},it={...de,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Ne({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const n=V(),{props:a,proxy:l,emit:d}=n,o=ze(n),i=c(()=>a.disable!==!0&&a.href!==void 0),q=t===!0?c(()=>o===!0&&a.disable!==!0&&i.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""):c(()=>o===!0&&i.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""),b=c(()=>q.value===!0?_(a.to):null),s=c(()=>b.value!==null),y=c(()=>i.value===!0||s.value===!0),u=c(()=>a.type==="a"||y.value===!0?"a":a.tag||e||"div"),k=c(()=>i.value===!0?{href:a.href,target:a.target}:s.value===!0?{href:b.value.href,target:a.target}:{}),h=c(()=>{if(s.value===!1)return-1;const{matched:g}=b.value,{length:$}=g,S=g[$-1];if(S===void 0)return-1;const w=l.$route.matched;if(w.length===0)return-1;const B=w.findIndex(ee.bind(null,S));if(B!==-1)return B;const D=Z(g[$-2]);return $>1&&Z(S)===D&&w[w.length-1].path!==D?w.findIndex(ee.bind(null,g[$-2])):B}),p=c(()=>s.value===!0&&h.value!==-1&&De(l.$route.params,b.value.params)),f=c(()=>p.value===!0&&h.value===l.$route.matched.length-1&&Ke(l.$route.params,b.value.params)),x=c(()=>s.value===!0?f.value===!0?` ${a.exactActiveClass} ${a.activeClass}`:a.exact===!0?"":p.value===!0?` ${a.activeClass}`:"":"");function _(g){try{return l.$router.resolve(g)}catch{}return null}function C(g,{returnRouterError:$,to:S=a.to,replace:w=a.replace}={}){if(a.disable===!0)return g.preventDefault(),Promise.resolve(!1);if(g.metaKey||g.altKey||g.ctrlKey||g.shiftKey||g.button!==void 0&&g.button!==0||a.target==="_blank")return Promise.resolve(!1);g.preventDefault();const B=l.$router[w===!0?"replace":"push"](S);return $===!0?B:B.then(()=>{}).catch(()=>{})}function L(g){if(s.value===!0){const $=S=>C(g,S);d("click",g,$),g.defaultPrevented!==!0&&$()}else d("click",g)}return{hasRouterLink:s,hasHrefLink:i,hasLink:y,linkTag:u,resolvedLink:b,linkIsActive:p,linkIsExactActive:f,linkClass:x,linkAttrs:k,getLink:_,navigateToRouterLink:C,navigateOnClick:L}}const ne={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Fe={xs:8,sm:10,md:14,lg:20,xl:24},Qe=["button","submit","reset"],Ve=/[^\s]\/[^\s]/,He=["flat","outline","push","unelevated"];function Ue(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}const We={...ie,...de,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...He.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:{...Me.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},Xe={...We,round:Boolean};function Ge(e){const t=ue(e,Fe),n=je(e),{hasRouterLink:a,hasLink:l,linkTag:d,linkAttrs:o,navigateOnClick:i}=Ne({fallbackTag:"button"}),q=c(()=>{const f=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},f,{padding:e.padding.split(/\s+/).map(x=>x in ne?ne[x]+"px":x).join(" "),minWidth:"0",minHeight:"0"}):f}),b=c(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),s=c(()=>e.disable!==!0&&e.loading!==!0),y=c(()=>s.value===!0?e.tabindex||0:-1),u=c(()=>Ue(e,"standard")),k=c(()=>{const f={tabindex:y.value};return l.value===!0?Object.assign(f,o.value):Qe.includes(e.type)===!0&&(f.type=e.type),d.value==="a"?(e.disable===!0?f["aria-disabled"]="true":f.href===void 0&&(f.role="button"),a.value!==!0&&Ve.test(e.type)===!0&&(f.type=e.type)):e.disable===!0&&(f.disabled="",f["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(f,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),f}),h=c(()=>{let f;e.color!==void 0?e.flat===!0||e.outline===!0?f=`text-${e.textColor||e.color}`:f=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(f=`text-${e.textColor}`);const x=e.round===!0?"round":`rectangle${b.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${u.value} q-btn--${x}`+(f!==void 0?" "+f:"")+(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":"")}),p=c(()=>n.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:h,style:q,innerClasses:p,attributes:k,hasLink:l,linkTag:d,navigateOnClick:i,isActionable:s}}const{passiveCapture:E}=pe;let T=null,O=null,A=null;var ut=Q({name:"QBtn",props:{...Xe,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:n}){const{proxy:a}=V(),{classes:l,style:d,innerClasses:o,attributes:i,hasLink:q,linkTag:b,navigateOnClick:s,isActionable:y}=Ge(e),u=H(null),k=H(null);let h=null,p,f=null;const x=c(()=>e.label!==void 0&&e.label!==null&&e.label!==""),_=c(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:q.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),C=c(()=>({center:e.round})),L=c(()=>{const r=Math.max(0,Math.min(100,e.percentage));return r>0?{transition:"transform 0.6s",transform:`translateX(${r-100}%)`}:{}}),g=c(()=>{if(e.loading===!0)return{onMousedown:j,onTouchstart:j,onClick:j,onKeydown:j,onKeyup:j};if(y.value===!0){const r={onClick:S,onKeydown:w,onMousedown:D};if(a.$q.platform.has.touch===!0){const m=e.onTouchstart!==void 0?"":"Passive";r[`onTouchstart${m}`]=B}return r}return{onClick:P}}),$=c(()=>({ref:u,class:"q-btn q-btn-item non-selectable no-outline "+l.value,style:d.value,...i.value,...g.value}));function S(r){if(u.value!==null){if(r!==void 0){if(r.defaultPrevented===!0)return;const m=document.activeElement;if(e.type==="submit"&&m!==document.body&&u.value.contains(m)===!1&&m.contains(u.value)===!1){u.value.focus();const I=()=>{document.removeEventListener("keydown",P,!0),document.removeEventListener("keyup",I,E),u.value!==null&&u.value.removeEventListener("blur",I,E)};document.addEventListener("keydown",P,!0),document.addEventListener("keyup",I,E),u.value.addEventListener("blur",I,E)}}s(r)}}function w(r){u.value!==null&&(n("keydown",r),N(r,[13,32])===!0&&O!==u.value&&(O!==null&&M(),r.defaultPrevented!==!0&&(u.value.focus(),O=u.value,u.value.classList.add("q-btn--active"),document.addEventListener("keyup",R,!0),u.value.addEventListener("blur",R,E)),P(r)))}function B(r){u.value!==null&&(n("touchstart",r),r.defaultPrevented!==!0&&(T!==u.value&&(T!==null&&M(),T=u.value,h=r.target,h.addEventListener("touchcancel",R,E),h.addEventListener("touchend",R,E)),p=!0,f!==null&&clearTimeout(f),f=setTimeout(()=>{f=null,p=!1},200)))}function D(r){u.value!==null&&(r.qSkipRipple=p===!0,n("mousedown",r),r.defaultPrevented!==!0&&A!==u.value&&(A!==null&&M(),A=u.value,u.value.classList.add("q-btn--active"),document.addEventListener("mouseup",R,E)))}function R(r){if(u.value!==null&&!(r!==void 0&&r.type==="blur"&&document.activeElement===u.value)){if(r!==void 0&&r.type==="keyup"){if(O===u.value&&N(r,[13,32])===!0){const m=new MouseEvent("click",r);m.qKeyEvent=!0,r.defaultPrevented===!0&&ke(m),r.cancelBubble===!0&&re(m),u.value.dispatchEvent(m),P(r),r.qKeyEvent=!0}n("keyup",r)}M()}}function M(r){const m=k.value;r!==!0&&(T===u.value||A===u.value)&&m!==null&&m!==document.activeElement&&(m.setAttribute("tabindex",-1),m.focus()),T===u.value&&(h!==null&&(h.removeEventListener("touchcancel",R,E),h.removeEventListener("touchend",R,E)),T=h=null),A===u.value&&(document.removeEventListener("mouseup",R,E),A=null),O===u.value&&(document.removeEventListener("keyup",R,!0),u.value!==null&&u.value.removeEventListener("blur",R,E),O=null),u.value!==null&&u.value.classList.remove("q-btn--active")}function j(r){P(r),r.qSkipRipple=!0}return be(()=>{M(!0)}),Object.assign(a,{click:r=>{y.value===!0&&S(r)}}),()=>{let r=[];e.icon!==void 0&&r.push(v(G,{name:e.icon,left:e.stack!==!0&&x.value===!0,role:"img","aria-hidden":"true"})),x.value===!0&&r.push(v("span",{class:"block"},[e.label])),r=z(t.default,r),e.iconRight!==void 0&&e.round===!1&&r.push(v(G,{name:e.iconRight,right:e.stack!==!0&&x.value===!0,role:"img","aria-hidden":"true"}));const m=[v("span",{class:"q-focus-helper",ref:k})];return e.loading===!0&&e.percentage!==void 0&&m.push(v("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[v("span",{class:"q-btn__progress-indicator fit block",style:L.value})])),m.push(v("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+o.value},r)),e.loading!==null&&m.push(v(ye,{name:"q-transition--fade"},()=>e.loading===!0?[v("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[v(_e)])]:null)),ae(v(b.value,$.value,m),[[Oe,_.value,void 0,C.value]])}}});export{ut as Q,Oe as R,Je as a,z as b,Pe as c,G as d,_e as e,ue as f,tt as g,xe as h,et as i,Ze as j,it as k,Ne as l,at as m,rt as n,nt as o,ie as u,ze as v}; +import{h as v,z as ae,a as c,c as Q,g as V,A as fe,B as ve,C as N,D as ge,E as me,F as re,G as he,r as H,b as be,T as ye,H as P,I as ke,l as pe}from"./index.736665e3.js";function xe(e,t){return e!==void 0&&e()||t}function Je(e,t){if(e!==void 0){const n=e();if(n!=null)return n.slice()}return t}function z(e,t){return e!==void 0?t.concat(e()):t}function Ze(e,t){return e===void 0?t:t!==void 0?t.concat(e()):e()}function et(e,t,n,a,l,d){t.key=a+l;const o=v(e,t,n);return l===!0?ae(o,d()):o}const F={xs:18,sm:24,md:32,lg:38,xl:46},ie={size:String};function ue(e,t=F){return c(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}const U="0 0 24 24",W=e=>e,K=e=>`ionicons ${e}`,le={"mdi-":e=>`mdi ${e}`,"icon-":W,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":K,"ion-ios":K,"ion-logo":K,"iconfont ":W,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},oe={o_:"-outlined",r_:"-round",s_:"-sharp"},se={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},qe=new RegExp("^("+Object.keys(le).join("|")+")"),$e=new RegExp("^("+Object.keys(oe).join("|")+")"),X=new RegExp("^("+Object.keys(se).join("|")+")"),Ee=/^[Mm]\s?[-+]?\.?\d/,Se=/^img:/,Re=/^svguse:/,we=/^ion-/,Be=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /;var G=Q({name:"QIcon",props:{...ie,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=V(),a=ue(e),l=c(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),d=c(()=>{let o,i=e.name;if(i==="none"||!i)return{none:!0};if(n.iconMapFn!==null){const s=n.iconMapFn(i);if(s!==void 0)if(s.icon!==void 0){if(i=s.icon,i==="none"||!i)return{none:!0}}else return{cls:s.cls,content:s.content!==void 0?s.content:" "}}if(Ee.test(i)===!0){const[s,y=U]=i.split("|");return{svg:!0,viewBox:y,nodes:s.split("&&").map(u=>{const[k,h,p]=u.split("@@");return v("path",{style:h,d:k,transform:p})})}}if(Se.test(i)===!0)return{img:!0,src:i.substring(4)};if(Re.test(i)===!0){const[s,y=U]=i.split("|");return{svguse:!0,src:s.substring(7),viewBox:y}}let q=" ";const b=i.match(qe);if(b!==null)o=le[b[1]](i);else if(Be.test(i)===!0)o=i;else if(we.test(i)===!0)o=`ionicons ion-${n.platform.is.ios===!0?"ios":"md"}${i.substring(3)}`;else if(X.test(i)===!0){o="notranslate material-symbols";const s=i.match(X);s!==null&&(i=i.substring(6),o+=se[s[1]]),q=i}else{o="notranslate material-icons";const s=i.match($e);s!==null&&(i=i.substring(2),o+=oe[s[1]]),q=i}return{cls:o,content:q}});return()=>{const o={class:l.value,style:a.value,"aria-hidden":"true",role:"presentation"};return d.value.none===!0?v(e.tag,o,xe(t.default)):d.value.img===!0?v(e.tag,o,z(t.default,[v("img",{src:d.value.src})])):d.value.svg===!0?v(e.tag,o,z(t.default,[v("svg",{viewBox:d.value.viewBox||"0 0 24 24"},d.value.nodes)])):d.value.svguse===!0?v(e.tag,o,z(t.default,[v("svg",{viewBox:d.value.viewBox},[v("use",{"xlink:href":d.value.src})])])):(d.value.cls!==void 0&&(o.class+=" "+d.value.cls),v(e.tag,o,z(t.default,[d.value.content])))}}});const Ce={size:{type:[String,Number],default:"1em"},color:String};function Le(e){return{cSize:c(()=>e.size in F?`${F[e.size]}px`:e.size),classes:c(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}var _e=Q({name:"QSpinner",props:{...Ce,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:n}=Le(e);return()=>v("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[v("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function Pe(e,t){const n=e.style;for(const a in t)n[a]=t[a]}function tt(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=fe(e);if(t)return t.$el||t}function nt(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}function Te(e,t=250){let n=!1,a;return function(){return n===!1&&(n=!0,setTimeout(()=>{n=!1},t),a=e.apply(this,arguments)),a}}function Y(e,t,n,a){n.modifiers.stop===!0&&re(e);const l=n.modifiers.color;let d=n.modifiers.center;d=d===!0||a===!0;const o=document.createElement("span"),i=document.createElement("span"),q=he(e),{left:b,top:s,width:y,height:u}=t.getBoundingClientRect(),k=Math.sqrt(y*y+u*u),h=k/2,p=`${(y-k)/2}px`,f=d?p:`${q.left-b-h}px`,x=`${(u-k)/2}px`,_=d?x:`${q.top-s-h}px`;i.className="q-ripple__inner",Pe(i,{height:`${k}px`,width:`${k}px`,transform:`translate3d(${f},${_},0) scale3d(.2,.2,1)`,opacity:0}),o.className=`q-ripple${l?" text-"+l:""}`,o.setAttribute("dir","ltr"),o.appendChild(i),t.appendChild(o);const C=()=>{o.remove(),clearTimeout(L)};n.abort.push(C);let L=setTimeout(()=>{i.classList.add("q-ripple__inner--enter"),i.style.transform=`translate3d(${p},${x},0) scale3d(1,1,1)`,i.style.opacity=.2,L=setTimeout(()=>{i.classList.remove("q-ripple__inner--enter"),i.classList.add("q-ripple__inner--leave"),i.style.opacity=0,L=setTimeout(()=>{o.remove(),n.abort.splice(n.abort.indexOf(C),1)},275)},250)},50)}function J(e,{modifiers:t,value:n,arg:a}){const l=Object.assign({},e.cfg.ripple,t,n);e.modifiers={early:l.early===!0,stop:l.stop===!0,center:l.center===!0,color:l.color||a,keyCodes:[].concat(l.keyCodes||13)}}var Oe=ve({name:"ripple",beforeMount(e,t){const n=t.instance.$.appContext.config.globalProperties.$q.config||{};if(n.ripple===!1)return;const a={cfg:n,enabled:t.value!==!1,modifiers:{},abort:[],start(l){a.enabled===!0&&l.qSkipRipple!==!0&&l.type===(a.modifiers.early===!0?"pointerdown":"click")&&Y(l,e,a,l.qKeyEvent===!0)},keystart:Te(l=>{a.enabled===!0&&l.qSkipRipple!==!0&&N(l,a.modifiers.keyCodes)===!0&&l.type===`key${a.modifiers.early===!0?"down":"up"}`&&Y(l,e,a,!0)},300)};J(a,t),e.__qripple=a,ge(a,"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&&J(n,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(n=>{n()}),me(t,"main"),delete e._qripple)}});const ce={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Ae=Object.keys(ce),Me={align:{type:String,validator:e=>Ae.includes(e)}};function je(e){return c(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${ce[t]}`})}function at(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 ze(e){return e.appContext.config.globalProperties.$router!==void 0}function rt(e){return e.isUnmounted===!0||e.isDeactivated===!0}function Z(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function ee(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function De(e,t){for(const n in t){const a=t[n],l=e[n];if(typeof a=="string"){if(a!==l)return!1}else if(Array.isArray(l)===!1||l.length!==a.length||a.some((d,o)=>d!==l[o]))return!1}return!0}function te(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((n,a)=>n===t[a]):e.length===1&&e[0]===t}function Ie(e,t){return Array.isArray(e)===!0?te(e,t):Array.isArray(t)===!0?te(t,e):e===t}function Ke(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(Ie(e[n],t[n])===!1)return!1;return!0}const de={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},it={...de,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Ne({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const n=V(),{props:a,proxy:l,emit:d}=n,o=ze(n),i=c(()=>a.disable!==!0&&a.href!==void 0),q=t===!0?c(()=>o===!0&&a.disable!==!0&&i.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""):c(()=>o===!0&&i.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""),b=c(()=>q.value===!0?_(a.to):null),s=c(()=>b.value!==null),y=c(()=>i.value===!0||s.value===!0),u=c(()=>a.type==="a"||y.value===!0?"a":a.tag||e||"div"),k=c(()=>i.value===!0?{href:a.href,target:a.target}:s.value===!0?{href:b.value.href,target:a.target}:{}),h=c(()=>{if(s.value===!1)return-1;const{matched:g}=b.value,{length:$}=g,S=g[$-1];if(S===void 0)return-1;const w=l.$route.matched;if(w.length===0)return-1;const B=w.findIndex(ee.bind(null,S));if(B!==-1)return B;const D=Z(g[$-2]);return $>1&&Z(S)===D&&w[w.length-1].path!==D?w.findIndex(ee.bind(null,g[$-2])):B}),p=c(()=>s.value===!0&&h.value!==-1&&De(l.$route.params,b.value.params)),f=c(()=>p.value===!0&&h.value===l.$route.matched.length-1&&Ke(l.$route.params,b.value.params)),x=c(()=>s.value===!0?f.value===!0?` ${a.exactActiveClass} ${a.activeClass}`:a.exact===!0?"":p.value===!0?` ${a.activeClass}`:"":"");function _(g){try{return l.$router.resolve(g)}catch{}return null}function C(g,{returnRouterError:$,to:S=a.to,replace:w=a.replace}={}){if(a.disable===!0)return g.preventDefault(),Promise.resolve(!1);if(g.metaKey||g.altKey||g.ctrlKey||g.shiftKey||g.button!==void 0&&g.button!==0||a.target==="_blank")return Promise.resolve(!1);g.preventDefault();const B=l.$router[w===!0?"replace":"push"](S);return $===!0?B:B.then(()=>{}).catch(()=>{})}function L(g){if(s.value===!0){const $=S=>C(g,S);d("click",g,$),g.defaultPrevented!==!0&&$()}else d("click",g)}return{hasRouterLink:s,hasHrefLink:i,hasLink:y,linkTag:u,resolvedLink:b,linkIsActive:p,linkIsExactActive:f,linkClass:x,linkAttrs:k,getLink:_,navigateToRouterLink:C,navigateOnClick:L}}const ne={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Fe={xs:8,sm:10,md:14,lg:20,xl:24},Qe=["button","submit","reset"],Ve=/[^\s]\/[^\s]/,He=["flat","outline","push","unelevated"];function Ue(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}const We={...ie,...de,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...He.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:{...Me.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},Xe={...We,round:Boolean};function Ge(e){const t=ue(e,Fe),n=je(e),{hasRouterLink:a,hasLink:l,linkTag:d,linkAttrs:o,navigateOnClick:i}=Ne({fallbackTag:"button"}),q=c(()=>{const f=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},f,{padding:e.padding.split(/\s+/).map(x=>x in ne?ne[x]+"px":x).join(" "),minWidth:"0",minHeight:"0"}):f}),b=c(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),s=c(()=>e.disable!==!0&&e.loading!==!0),y=c(()=>s.value===!0?e.tabindex||0:-1),u=c(()=>Ue(e,"standard")),k=c(()=>{const f={tabindex:y.value};return l.value===!0?Object.assign(f,o.value):Qe.includes(e.type)===!0&&(f.type=e.type),d.value==="a"?(e.disable===!0?f["aria-disabled"]="true":f.href===void 0&&(f.role="button"),a.value!==!0&&Ve.test(e.type)===!0&&(f.type=e.type)):e.disable===!0&&(f.disabled="",f["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(f,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),f}),h=c(()=>{let f;e.color!==void 0?e.flat===!0||e.outline===!0?f=`text-${e.textColor||e.color}`:f=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(f=`text-${e.textColor}`);const x=e.round===!0?"round":`rectangle${b.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${u.value} q-btn--${x}`+(f!==void 0?" "+f:"")+(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":"")}),p=c(()=>n.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:h,style:q,innerClasses:p,attributes:k,hasLink:l,linkTag:d,navigateOnClick:i,isActionable:s}}const{passiveCapture:E}=pe;let T=null,O=null,A=null;var ut=Q({name:"QBtn",props:{...Xe,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:n}){const{proxy:a}=V(),{classes:l,style:d,innerClasses:o,attributes:i,hasLink:q,linkTag:b,navigateOnClick:s,isActionable:y}=Ge(e),u=H(null),k=H(null);let h=null,p,f=null;const x=c(()=>e.label!==void 0&&e.label!==null&&e.label!==""),_=c(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:q.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),C=c(()=>({center:e.round})),L=c(()=>{const r=Math.max(0,Math.min(100,e.percentage));return r>0?{transition:"transform 0.6s",transform:`translateX(${r-100}%)`}:{}}),g=c(()=>{if(e.loading===!0)return{onMousedown:j,onTouchstart:j,onClick:j,onKeydown:j,onKeyup:j};if(y.value===!0){const r={onClick:S,onKeydown:w,onMousedown:D};if(a.$q.platform.has.touch===!0){const m=e.onTouchstart!==void 0?"":"Passive";r[`onTouchstart${m}`]=B}return r}return{onClick:P}}),$=c(()=>({ref:u,class:"q-btn q-btn-item non-selectable no-outline "+l.value,style:d.value,...i.value,...g.value}));function S(r){if(u.value!==null){if(r!==void 0){if(r.defaultPrevented===!0)return;const m=document.activeElement;if(e.type==="submit"&&m!==document.body&&u.value.contains(m)===!1&&m.contains(u.value)===!1){u.value.focus();const I=()=>{document.removeEventListener("keydown",P,!0),document.removeEventListener("keyup",I,E),u.value!==null&&u.value.removeEventListener("blur",I,E)};document.addEventListener("keydown",P,!0),document.addEventListener("keyup",I,E),u.value.addEventListener("blur",I,E)}}s(r)}}function w(r){u.value!==null&&(n("keydown",r),N(r,[13,32])===!0&&O!==u.value&&(O!==null&&M(),r.defaultPrevented!==!0&&(u.value.focus(),O=u.value,u.value.classList.add("q-btn--active"),document.addEventListener("keyup",R,!0),u.value.addEventListener("blur",R,E)),P(r)))}function B(r){u.value!==null&&(n("touchstart",r),r.defaultPrevented!==!0&&(T!==u.value&&(T!==null&&M(),T=u.value,h=r.target,h.addEventListener("touchcancel",R,E),h.addEventListener("touchend",R,E)),p=!0,f!==null&&clearTimeout(f),f=setTimeout(()=>{f=null,p=!1},200)))}function D(r){u.value!==null&&(r.qSkipRipple=p===!0,n("mousedown",r),r.defaultPrevented!==!0&&A!==u.value&&(A!==null&&M(),A=u.value,u.value.classList.add("q-btn--active"),document.addEventListener("mouseup",R,E)))}function R(r){if(u.value!==null&&!(r!==void 0&&r.type==="blur"&&document.activeElement===u.value)){if(r!==void 0&&r.type==="keyup"){if(O===u.value&&N(r,[13,32])===!0){const m=new MouseEvent("click",r);m.qKeyEvent=!0,r.defaultPrevented===!0&&ke(m),r.cancelBubble===!0&&re(m),u.value.dispatchEvent(m),P(r),r.qKeyEvent=!0}n("keyup",r)}M()}}function M(r){const m=k.value;r!==!0&&(T===u.value||A===u.value)&&m!==null&&m!==document.activeElement&&(m.setAttribute("tabindex",-1),m.focus()),T===u.value&&(h!==null&&(h.removeEventListener("touchcancel",R,E),h.removeEventListener("touchend",R,E)),T=h=null),A===u.value&&(document.removeEventListener("mouseup",R,E),A=null),O===u.value&&(document.removeEventListener("keyup",R,!0),u.value!==null&&u.value.removeEventListener("blur",R,E),O=null),u.value!==null&&u.value.classList.remove("q-btn--active")}function j(r){P(r),r.qSkipRipple=!0}return be(()=>{M(!0)}),Object.assign(a,{click:r=>{y.value===!0&&S(r)}}),()=>{let r=[];e.icon!==void 0&&r.push(v(G,{name:e.icon,left:e.stack!==!0&&x.value===!0,role:"img","aria-hidden":"true"})),x.value===!0&&r.push(v("span",{class:"block"},[e.label])),r=z(t.default,r),e.iconRight!==void 0&&e.round===!1&&r.push(v(G,{name:e.iconRight,right:e.stack!==!0&&x.value===!0,role:"img","aria-hidden":"true"}));const m=[v("span",{class:"q-focus-helper",ref:k})];return e.loading===!0&&e.percentage!==void 0&&m.push(v("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[v("span",{class:"q-btn__progress-indicator fit block",style:L.value})])),m.push(v("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+o.value},r)),e.loading!==null&&m.push(v(ye,{name:"q-transition--fade"},()=>e.loading===!0?[v("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[v(_e)])]:null)),ae(v(b.value,$.value,m),[[Oe,_.value,void 0,C.value]])}}});export{ut as Q,Oe as R,Je as a,z as b,Pe as c,G as d,_e as e,ue as f,tt as g,xe as h,et as i,Ze as j,it as k,Ne as l,at as m,rt as n,nt as o,ie as u,ze as v}; diff --git a/assets/index.5c070da9.js b/assets/index.736665e3.js similarity index 99% rename from assets/index.5c070da9.js rename to assets/index.736665e3.js index c8b8cef..1fe9d5c 100644 --- a/assets/index.5c070da9.js +++ b/assets/index.736665e3.js @@ -18,4 +18,4 @@ * vue-router v4.4.0 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const St=typeof document!="undefined";function Ua(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const te=Object.assign;function tr(e,t){const n={};for(const r in t){const s=t[r];n[r]=ke(s)?s.map(e):e(s)}return n}const Kt=()=>{},ke=Array.isArray,Ai=/#/g,Ka=/&/g,za=/\//g,qa=/=/g,Wa=/\?/g,Ti=/\+/g,Ga=/%5B/g,Qa=/%5D/g,Oi=/%5E/g,Ja=/%60/g,Li=/%7B/g,Ya=/%7C/g,Mi=/%7D/g,Xa=/%20/g;function qr(e){return encodeURI(""+e).replace(Ya,"|").replace(Ga,"[").replace(Qa,"]")}function Za(e){return qr(e).replace(Li,"{").replace(Mi,"}").replace(Oi,"^")}function Er(e){return qr(e).replace(Ti,"%2B").replace(Xa,"+").replace(Ai,"%23").replace(Ka,"%26").replace(Ja,"`").replace(Li,"{").replace(Mi,"}").replace(Oi,"^")}function eu(e){return Er(e).replace(qa,"%3D")}function tu(e){return qr(e).replace(Ai,"%23").replace(Wa,"%3F")}function nu(e){return e==null?"":tu(e).replace(za,"%2F")}function Zt(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const ru=/\/$/,su=e=>e.replace(ru,"");function nr(e,t,n="/"){let r,s={},o="",i="";const c=t.indexOf("#");let l=t.indexOf("?");return c=0&&(l=-1),l>-1&&(r=t.slice(0,l),o=t.slice(l+1,c>-1?c:t.length),s=e(o)),c>-1&&(r=r||t.slice(0,c),i=t.slice(c,t.length)),r=cu(r!=null?r:t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:s,hash:Zt(i)}}function ou(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ws(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function iu(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Ot(t.matched[r],n.matched[s])&&Ii(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ot(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ii(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!lu(e[n],t[n]))return!1;return!0}function lu(e,t){return ke(e)?Gs(e,t):ke(t)?Gs(t,e):e===t}function Gs(e,t){return ke(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function cu(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,c;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i).join("/")}const Ze={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var en;(function(e){e.pop="pop",e.push="push"})(en||(en={}));var zt;(function(e){e.back="back",e.forward="forward",e.unknown=""})(zt||(zt={}));function au(e){if(!e)if(St){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),su(e)}const uu=/^[^#]+#/;function fu(e,t){return e.replace(uu,"#")+t}function du(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Vn=()=>({left:window.scrollX,top:window.scrollY});function hu(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=du(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Qs(e,t){return(history.state?history.state.position-t:-1)+e}const xr=new Map;function pu(e,t){xr.set(e,t)}function gu(e){const t=xr.get(e);return xr.delete(e),t}let mu=()=>location.protocol+"//"+location.host;function ki(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let c=s.includes(e.slice(o))?e.slice(o).length:1,l=s.slice(c);return l[0]!=="/"&&(l="/"+l),Ws(l,"")}return Ws(n,e)+r+s}function _u(e,t,n,r){let s=[],o=[],i=null;const c=({state:p})=>{const g=ki(e,location),x=n.value,P=t.value;let D=0;if(p){if(n.value=g,t.value=p,i&&i===x){i=null;return}D=P?p.position-P.position:0}else r(g);s.forEach($=>{$(n.value,x,{delta:D,type:en.pop,direction:D?D>0?zt.forward:zt.back:zt.unknown})})};function l(){i=n.value}function u(p){s.push(p);const g=()=>{const x=s.indexOf(p);x>-1&&s.splice(x,1)};return o.push(g),g}function h(){const{history:p}=window;!p.state||p.replaceState(te({},p.state,{scroll:Vn()}),"")}function d(){for(const p of o)p();o=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",h,{passive:!0}),{pauseListeners:l,listen:u,destroy:d}}function Js(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?Vn():null}}function yu(e){const{history:t,location:n}=window,r={value:ki(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,u,h){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:mu()+e+l;try{t[h?"replaceState":"pushState"](u,"",p),s.value=u}catch(g){console.error(g),n[h?"replace":"assign"](p)}}function i(l,u){const h=te({},t.state,Js(s.value.back,l,s.value.forward,!0),u,{position:s.value.position});o(l,h,!0),r.value=l}function c(l,u){const h=te({},s.value,t.state,{forward:l,scroll:Vn()});o(h.current,h,!0);const d=te({},Js(r.value,l,null),{position:h.position+1},u);o(l,d,!1),r.value=l}return{location:r,state:s,push:c,replace:i}}function vu(e){e=au(e);const t=yu(e),n=_u(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=te({location:"",base:e,go:r,createHref:fu.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function bu(e){return typeof e=="string"||e&&typeof e=="object"}function Fi(e){return typeof e=="string"||typeof e=="symbol"}const Ni=Symbol("");var Ys;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Ys||(Ys={}));function Lt(e,t){return te(new Error,{type:e,[Ni]:!0},t)}function Ke(e,t){return e instanceof Error&&Ni in e&&(t==null||!!(e.type&t))}const Xs="[^/]+?",wu={sensitive:!1,strict:!1,start:!0,end:!0},Eu=/[.+*?^${}()[\]/\\]/g;function xu(e,t){const n=te({},wu,t),r=[];let s=n.start?"^":"";const o=[];for(const u of e){const h=u.length?[]:[90];n.strict&&!u.length&&(s+="/");for(let d=0;dt.length?t.length===1&&t[0]===40+40?1:-1:0}function $i(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const Su={type:0,value:""},Ru=/[a-zA-Z0-9_]/;function Pu(e){if(!e)return[[]];if(e==="/")return[[Su]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=0,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let c=0,l,u="",h="";function d(){!u||(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:h,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function p(){u+=l}for(;c{i(O)}:Kt}function i(d){if(Fi(d)){const p=r.get(d);p&&(r.delete(d),n.splice(n.indexOf(p),1),p.children.forEach(i),p.alias.forEach(i))}else{const p=n.indexOf(d);p>-1&&(n.splice(p,1),d.record.name&&r.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function c(){return n}function l(d){const p=Iu(d,n);n.splice(p,0,d),d.record.name&&!to(d)&&r.set(d.record.name,d)}function u(d,p){let g,x={},P,D;if("name"in d&&d.name){if(g=r.get(d.name),!g)throw Lt(1,{location:d});D=g.record.name,x=te(eo(p.params,g.keys.filter(O=>!O.optional).concat(g.parent?g.parent.keys.filter(O=>O.optional):[]).map(O=>O.name)),d.params&&eo(d.params,g.keys.map(O=>O.name))),P=g.stringify(x)}else if(d.path!=null)P=d.path,g=n.find(O=>O.re.test(P)),g&&(x=g.parse(P),D=g.record.name);else{if(g=p.name?r.get(p.name):n.find(O=>O.re.test(p.path)),!g)throw Lt(1,{location:d,currentLocation:p});D=g.record.name,x=te({},p.params,d.params),P=g.stringify(x)}const $=[];let k=g;for(;k;)$.unshift(k.record),k=k.parent;return{name:D,path:P,params:x,matched:$,meta:Mu($)}}e.forEach(d=>o(d));function h(){n.length=0,r.clear()}return{addRoute:o,resolve:u,removeRoute:i,clearRoutes:h,getRoutes:c,getRecordMatcher:s}}function eo(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ou(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Lu(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Lu(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function to(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Mu(e){return e.reduce((t,n)=>te(t,n.meta),{})}function no(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Iu(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;$i(e,t[o])<0?r=o:n=o+1}const s=ku(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function ku(e){let t=e;for(;t=t.parent;)if(ji(t)&&$i(e,t)===0)return t}function ji({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Fu(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&Er(o)):[r&&Er(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Nu(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ke(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const $u=Symbol(""),so=Symbol(""),Wr=Symbol(""),Hi=Symbol(""),Cr=Symbol("");function Nt(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function st(e,t,n,r,s,o=i=>i()){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((c,l)=>{const u=p=>{p===!1?l(Lt(4,{from:n,to:t})):p instanceof Error?l(p):bu(p)?l(Lt(2,{from:t,to:p})):(i&&r.enterCallbacks[s]===i&&typeof p=="function"&&i.push(p),c())},h=o(()=>e.call(r&&r.instances[s],t,n,u));let d=Promise.resolve(h);e.length<3&&(d=d.then(u)),d.catch(p=>l(p))})}function rr(e,t,n,r,s=o=>o()){const o=[];for(const i of e)for(const c in i.components){let l=i.components[c];if(!(t!=="beforeRouteEnter"&&!i.instances[c]))if(ju(l)){const h=(l.__vccOpts||l)[t];h&&o.push(st(h,n,r,i,c,s))}else{let u=l();o.push(()=>u.then(h=>{if(!h)return Promise.reject(new Error(`Couldn't resolve component "${c}" at "${i.path}"`));const d=Ua(h)?h.default:h;i.components[c]=d;const g=(d.__vccOpts||d)[t];return g&&st(g,n,r,i,c,s)()}))}}return o}function ju(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function oo(e){const t=We(Wr),n=We(Hi),r=Me(()=>{const l=At(e.to);return t.resolve(l)}),s=Me(()=>{const{matched:l}=r.value,{length:u}=l,h=l[u-1],d=n.matched;if(!h||!d.length)return-1;const p=d.findIndex(Ot.bind(null,h));if(p>-1)return p;const g=io(l[u-2]);return u>1&&io(h)===g&&d[d.length-1].path!==g?d.findIndex(Ot.bind(null,l[u-2])):p}),o=Me(()=>s.value>-1&&Vu(n.params,r.value.params)),i=Me(()=>s.value>-1&&s.value===n.matched.length-1&&Ii(n.params,r.value.params));function c(l={}){return Bu(l)?t[At(e.replace)?"replace":"push"](At(e.to)).catch(Kt):Promise.resolve()}return{route:r,href:Me(()=>r.value.href),isActive:o,isExactActive:i,navigate:c}}const Hu=Dr({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:oo,setup(e,{slots:t}){const n=It(oo(e)),{options:r}=We(Wr),s=Me(()=>({[lo(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[lo(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:zr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),Du=Hu;function Bu(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Vu(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!ke(s)||s.length!==r.length||r.some((o,i)=>o!==s[i]))return!1}return!0}function io(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const lo=(e,t,n)=>e!=null?e:t!=null?t:n,Uu=Dr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=We(Cr),s=Me(()=>e.route||r.value),o=We(so,0),i=Me(()=>{let u=At(o);const{matched:h}=s.value;let d;for(;(d=h[u])&&!d.components;)u++;return u}),c=Me(()=>s.value.matched[i.value]);pn(so,Me(()=>i.value+1)),pn($u,c),pn(Cr,s);const l=No();return gn(()=>[l.value,c.value,e.name],([u,h,d],[p,g,x])=>{h&&(h.instances[d]=u,g&&g!==h&&u&&u===p&&(h.leaveGuards.size||(h.leaveGuards=g.leaveGuards),h.updateGuards.size||(h.updateGuards=g.updateGuards))),u&&h&&(!g||!Ot(h,g)||!p)&&(h.enterCallbacks[d]||[]).forEach(P=>P(u))},{flush:"post"}),()=>{const u=s.value,h=e.name,d=c.value,p=d&&d.components[h];if(!p)return co(n.default,{Component:p,route:u});const g=d.props[h],x=g?g===!0?u.params:typeof g=="function"?g(u):g:null,D=zr(p,te({},x,t,{onVnodeUnmounted:$=>{$.component.isUnmounted&&(d.instances[h]=null)},ref:l}));return co(n.default,{Component:D,route:u})||D}}});function co(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ku=Uu;function zu(e){const t=Tu(e.routes,e),n=e.parseQuery||Fu,r=e.stringifyQuery||ro,s=e.history,o=Nt(),i=Nt(),c=Nt(),l=xl(Ze);let u=Ze;St&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=tr.bind(null,y=>""+y),d=tr.bind(null,nu),p=tr.bind(null,Zt);function g(y,A){let R,I;return Fi(y)?(R=t.getRecordMatcher(y),I=A):I=y,t.addRoute(I,R)}function x(y){const A=t.getRecordMatcher(y);A&&t.removeRoute(A)}function P(){return t.getRoutes().map(y=>y.record)}function D(y){return!!t.getRecordMatcher(y)}function $(y,A){if(A=te({},A||l.value),typeof y=="string"){const f=nr(n,y,A.path),m=t.resolve({path:f.path},A),v=s.createHref(f.fullPath);return te(f,m,{params:p(m.params),hash:Zt(f.hash),redirectedFrom:void 0,href:v})}let R;if(y.path!=null)R=te({},y,{path:nr(n,y.path,A.path).path});else{const f=te({},y.params);for(const m in f)f[m]==null&&delete f[m];R=te({},y,{params:d(f)}),A.params=d(A.params)}const I=t.resolve(R,A),Z=y.hash||"";I.params=h(p(I.params));const le=ou(r,te({},y,{hash:Za(Z),path:I.path})),a=s.createHref(le);return te({fullPath:le,hash:Z,query:r===ro?Nu(y.query):y.query||{}},I,{redirectedFrom:void 0,href:a})}function k(y){return typeof y=="string"?nr(n,y,l.value.path):te({},y)}function O(y,A){if(u!==y)return Lt(8,{from:A,to:y})}function U(y){return K(y)}function G(y){return U(te(k(y),{replace:!0}))}function M(y){const A=y.matched[y.matched.length-1];if(A&&A.redirect){const{redirect:R}=A;let I=typeof R=="function"?R(y):R;return typeof I=="string"&&(I=I.includes("?")||I.includes("#")?I=k(I):{path:I},I.params={}),te({query:y.query,hash:y.hash,params:I.path!=null?{}:y.params},I)}}function K(y,A){const R=u=$(y),I=l.value,Z=y.state,le=y.force,a=y.replace===!0,f=M(R);if(f)return K(te(k(f),{state:typeof f=="object"?te({},Z,f.state):Z,force:le,replace:a}),A||R);const m=R;m.redirectedFrom=A;let v;return!le&&iu(r,I,R)&&(v=Lt(16,{to:m,from:I}),Fe(I,I,!0,!1)),(v?Promise.resolve(v):q(m,I)).catch(_=>Ke(_)?Ke(_,2)?_:Qe(_):X(_,m,I)).then(_=>{if(_){if(Ke(_,2))return K(te({replace:a},k(_.to),{state:typeof _.to=="object"?te({},Z,_.to.state):Z,force:le}),A||m)}else _=L(m,I,!0,a,Z);return Q(m,I,_),_})}function re(y,A){const R=O(y,A);return R?Promise.reject(R):Promise.resolve()}function H(y){const A=xt.values().next().value;return A&&typeof A.runWithContext=="function"?A.runWithContext(y):y()}function q(y,A){let R;const[I,Z,le]=qu(y,A);R=rr(I.reverse(),"beforeRouteLeave",y,A);for(const f of I)f.leaveGuards.forEach(m=>{R.push(st(m,y,A))});const a=re.bind(null,y,A);return R.push(a),pe(R).then(()=>{R=[];for(const f of o.list())R.push(st(f,y,A));return R.push(a),pe(R)}).then(()=>{R=rr(Z,"beforeRouteUpdate",y,A);for(const f of Z)f.updateGuards.forEach(m=>{R.push(st(m,y,A))});return R.push(a),pe(R)}).then(()=>{R=[];for(const f of le)if(f.beforeEnter)if(ke(f.beforeEnter))for(const m of f.beforeEnter)R.push(st(m,y,A));else R.push(st(f.beforeEnter,y,A));return R.push(a),pe(R)}).then(()=>(y.matched.forEach(f=>f.enterCallbacks={}),R=rr(le,"beforeRouteEnter",y,A,H),R.push(a),pe(R))).then(()=>{R=[];for(const f of i.list())R.push(st(f,y,A));return R.push(a),pe(R)}).catch(f=>Ke(f,8)?f:Promise.reject(f))}function Q(y,A,R){c.list().forEach(I=>H(()=>I(y,A,R)))}function L(y,A,R,I,Z){const le=O(y,A);if(le)return le;const a=A===Ze,f=St?history.state:{};R&&(I||a?s.replace(y.fullPath,te({scroll:a&&f&&f.scroll},Z)):s.push(y.fullPath,Z)),l.value=y,Fe(y,A,R,a),Qe()}let Y;function fe(){Y||(Y=s.listen((y,A,R)=>{if(!nn.listening)return;const I=$(y),Z=M(I);if(Z){K(te(Z,{replace:!0}),I).catch(Kt);return}u=I;const le=l.value;St&&pu(Qs(le.fullPath,R.delta),Vn()),q(I,le).catch(a=>Ke(a,12)?a:Ke(a,2)?(K(a.to,I).then(f=>{Ke(f,20)&&!R.delta&&R.type===en.pop&&s.go(-1,!1)}).catch(Kt),Promise.reject()):(R.delta&&s.go(-R.delta,!1),X(a,I,le))).then(a=>{a=a||L(I,le,!1),a&&(R.delta&&!Ke(a,8)?s.go(-R.delta,!1):R.type===en.pop&&Ke(a,20)&&s.go(-1,!1)),Q(I,le,a)}).catch(Kt)}))}let Te=Nt(),ce=Nt(),ne;function X(y,A,R){Qe(y);const I=ce.list();return I.length?I.forEach(Z=>Z(y,A,R)):console.error(y),Promise.reject(y)}function Ue(){return ne&&l.value!==Ze?Promise.resolve():new Promise((y,A)=>{Te.add([y,A])})}function Qe(y){return ne||(ne=!y,fe(),Te.list().forEach(([A,R])=>y?R(y):A()),Te.reset()),y}function Fe(y,A,R,I){const{scrollBehavior:Z}=e;if(!St||!Z)return Promise.resolve();const le=!R&&gu(Qs(y.fullPath,0))||(I||!R)&&history.state&&history.state.scroll||null;return Do().then(()=>Z(y,A,le)).then(a=>a&&hu(a)).catch(a=>X(a,y,A))}const ye=y=>s.go(y);let Et;const xt=new Set,nn={currentRoute:l,listening:!0,addRoute:g,removeRoute:x,clearRoutes:t.clearRoutes,hasRoute:D,getRoutes:P,resolve:$,options:e,push:U,replace:G,go:ye,back:()=>ye(-1),forward:()=>ye(1),beforeEach:o.add,beforeResolve:i.add,afterEach:c.add,onError:ce.add,isReady:Ue,install(y){const A=this;y.component("RouterLink",Du),y.component("RouterView",Ku),y.config.globalProperties.$router=A,Object.defineProperty(y.config.globalProperties,"$route",{enumerable:!0,get:()=>At(l)}),St&&!Et&&l.value===Ze&&(Et=!0,U(s.location).catch(Z=>{}));const R={};for(const Z in Ze)Object.defineProperty(R,Z,{get:()=>l.value[Z],enumerable:!0});y.provide(Wr,A),y.provide(Hi,Lo(R)),y.provide(Cr,l);const I=y.unmount;xt.add(y),y.unmount=function(){xt.delete(y),xt.size<1&&(u=Ze,Y&&Y(),Y=null,l.value=Ze,Et=!1,ne=!1),I()}}};function pe(y){return y.reduce((A,R)=>A.then(()=>H(R)),Promise.resolve())}return nn}function qu(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iOt(u,c))?r.push(c):n.push(c));const l=e.matched[i];l&&(t.matched.find(u=>Ot(u,l))||s.push(l))}return[n,r,s]}const Wu=function(){const t=document.createElement("link").relList;return t&&t.supports&&t.supports("modulepreload")?"modulepreload":"preload"}(),ao={},Gu="/email-header-analyzer/",sr=function(t,n){return!n||n.length===0?t():Promise.all(n.map(r=>{if(r=`${Gu}${r}`,r in ao)return;ao[r]=!0;const s=r.endsWith(".css"),o=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${o}`))return;const i=document.createElement("link");if(i.rel=s?"stylesheet":Wu,s||(i.as="script",i.crossOrigin=""),i.href=r,document.head.appendChild(i),s)return new Promise((c,l)=>{i.addEventListener("load",c),i.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())},Qu=[{path:"/",component:()=>sr(()=>import("./MainLayout.d66de0a3.js"),["assets/MainLayout.d66de0a3.js","assets/QBtn.92b86c16.js","assets/scroll.736871b0.js"]),children:[{path:"",component:()=>sr(()=>import("./IndexPage.5416eac2.js"),["assets/IndexPage.5416eac2.js","assets/IndexPage.ad494e9e.css","assets/QBtn.92b86c16.js","assets/scroll.736871b0.js"])}]},{path:"/:catchAll(.*)*",component:()=>sr(()=>import("./ErrorNotFound.3ed2da96.js"),["assets/ErrorNotFound.3ed2da96.js","assets/QBtn.92b86c16.js"])}];var or=function(){return zu({scrollBehavior:()=>({left:0,top:0}),routes:Qu,history:vu("/email-header-analyzer/")})};async function Ju(e,t){const n=e(Va);n.use(ja,t);const r=On(typeof or=="function"?await or({}):or);return{app:n,router:r}}var Yu={config:{}};async function Xu({app:e,router:t}){e.use(t),e.mount("#q-app")}Ju(ha,Yu).then(Xu);export{J as $,At as A,uf as B,yf as C,mf as D,_f as E,hf as F,ff as G,gf as H,pf as I,Ul as J,wf as K,ba as L,Hn as M,mc as N,gc as O,Ca as P,Be as Q,Vl as R,wr as S,wi as T,Us as U,rf as V,Ma as W,df as X,Kl as Y,er as Z,Ha as _,Me as a,Cf as a0,xf as a1,Ks as a2,cf as a3,Dr as a4,sf as a5,yi as a6,Zi as a7,of as a8,je as a9,nf as aa,ka as ab,lf as ac,Zu as ad,ef as ae,Wo as b,af as c,Do as d,We as e,Ef as f,Mc as g,zr as h,wt as i,vf as j,bf as k,Bn as l,It as m,Xt as n,qo as o,pn as p,Go as q,No as r,$l as s,pi as t,mi as u,Ml as v,gn as w,we as x,Pc as y,tf as z}; + */const St=typeof document!="undefined";function Ua(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const te=Object.assign;function tr(e,t){const n={};for(const r in t){const s=t[r];n[r]=ke(s)?s.map(e):e(s)}return n}const Kt=()=>{},ke=Array.isArray,Ai=/#/g,Ka=/&/g,za=/\//g,qa=/=/g,Wa=/\?/g,Ti=/\+/g,Ga=/%5B/g,Qa=/%5D/g,Oi=/%5E/g,Ja=/%60/g,Li=/%7B/g,Ya=/%7C/g,Mi=/%7D/g,Xa=/%20/g;function qr(e){return encodeURI(""+e).replace(Ya,"|").replace(Ga,"[").replace(Qa,"]")}function Za(e){return qr(e).replace(Li,"{").replace(Mi,"}").replace(Oi,"^")}function Er(e){return qr(e).replace(Ti,"%2B").replace(Xa,"+").replace(Ai,"%23").replace(Ka,"%26").replace(Ja,"`").replace(Li,"{").replace(Mi,"}").replace(Oi,"^")}function eu(e){return Er(e).replace(qa,"%3D")}function tu(e){return qr(e).replace(Ai,"%23").replace(Wa,"%3F")}function nu(e){return e==null?"":tu(e).replace(za,"%2F")}function Zt(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const ru=/\/$/,su=e=>e.replace(ru,"");function nr(e,t,n="/"){let r,s={},o="",i="";const c=t.indexOf("#");let l=t.indexOf("?");return c=0&&(l=-1),l>-1&&(r=t.slice(0,l),o=t.slice(l+1,c>-1?c:t.length),s=e(o)),c>-1&&(r=r||t.slice(0,c),i=t.slice(c,t.length)),r=cu(r!=null?r:t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:s,hash:Zt(i)}}function ou(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ws(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function iu(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Ot(t.matched[r],n.matched[s])&&Ii(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ot(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ii(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!lu(e[n],t[n]))return!1;return!0}function lu(e,t){return ke(e)?Gs(e,t):ke(t)?Gs(t,e):e===t}function Gs(e,t){return ke(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function cu(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,c;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i).join("/")}const Ze={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var en;(function(e){e.pop="pop",e.push="push"})(en||(en={}));var zt;(function(e){e.back="back",e.forward="forward",e.unknown=""})(zt||(zt={}));function au(e){if(!e)if(St){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),su(e)}const uu=/^[^#]+#/;function fu(e,t){return e.replace(uu,"#")+t}function du(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Vn=()=>({left:window.scrollX,top:window.scrollY});function hu(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=du(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Qs(e,t){return(history.state?history.state.position-t:-1)+e}const xr=new Map;function pu(e,t){xr.set(e,t)}function gu(e){const t=xr.get(e);return xr.delete(e),t}let mu=()=>location.protocol+"//"+location.host;function ki(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let c=s.includes(e.slice(o))?e.slice(o).length:1,l=s.slice(c);return l[0]!=="/"&&(l="/"+l),Ws(l,"")}return Ws(n,e)+r+s}function _u(e,t,n,r){let s=[],o=[],i=null;const c=({state:p})=>{const g=ki(e,location),x=n.value,P=t.value;let D=0;if(p){if(n.value=g,t.value=p,i&&i===x){i=null;return}D=P?p.position-P.position:0}else r(g);s.forEach($=>{$(n.value,x,{delta:D,type:en.pop,direction:D?D>0?zt.forward:zt.back:zt.unknown})})};function l(){i=n.value}function u(p){s.push(p);const g=()=>{const x=s.indexOf(p);x>-1&&s.splice(x,1)};return o.push(g),g}function h(){const{history:p}=window;!p.state||p.replaceState(te({},p.state,{scroll:Vn()}),"")}function d(){for(const p of o)p();o=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",h,{passive:!0}),{pauseListeners:l,listen:u,destroy:d}}function Js(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?Vn():null}}function yu(e){const{history:t,location:n}=window,r={value:ki(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,u,h){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:mu()+e+l;try{t[h?"replaceState":"pushState"](u,"",p),s.value=u}catch(g){console.error(g),n[h?"replace":"assign"](p)}}function i(l,u){const h=te({},t.state,Js(s.value.back,l,s.value.forward,!0),u,{position:s.value.position});o(l,h,!0),r.value=l}function c(l,u){const h=te({},s.value,t.state,{forward:l,scroll:Vn()});o(h.current,h,!0);const d=te({},Js(r.value,l,null),{position:h.position+1},u);o(l,d,!1),r.value=l}return{location:r,state:s,push:c,replace:i}}function vu(e){e=au(e);const t=yu(e),n=_u(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=te({location:"",base:e,go:r,createHref:fu.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function bu(e){return typeof e=="string"||e&&typeof e=="object"}function Fi(e){return typeof e=="string"||typeof e=="symbol"}const Ni=Symbol("");var Ys;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Ys||(Ys={}));function Lt(e,t){return te(new Error,{type:e,[Ni]:!0},t)}function Ke(e,t){return e instanceof Error&&Ni in e&&(t==null||!!(e.type&t))}const Xs="[^/]+?",wu={sensitive:!1,strict:!1,start:!0,end:!0},Eu=/[.+*?^${}()[\]/\\]/g;function xu(e,t){const n=te({},wu,t),r=[];let s=n.start?"^":"";const o=[];for(const u of e){const h=u.length?[]:[90];n.strict&&!u.length&&(s+="/");for(let d=0;dt.length?t.length===1&&t[0]===40+40?1:-1:0}function $i(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const Su={type:0,value:""},Ru=/[a-zA-Z0-9_]/;function Pu(e){if(!e)return[[]];if(e==="/")return[[Su]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=0,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let c=0,l,u="",h="";function d(){!u||(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:h,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function p(){u+=l}for(;c{i(O)}:Kt}function i(d){if(Fi(d)){const p=r.get(d);p&&(r.delete(d),n.splice(n.indexOf(p),1),p.children.forEach(i),p.alias.forEach(i))}else{const p=n.indexOf(d);p>-1&&(n.splice(p,1),d.record.name&&r.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function c(){return n}function l(d){const p=Iu(d,n);n.splice(p,0,d),d.record.name&&!to(d)&&r.set(d.record.name,d)}function u(d,p){let g,x={},P,D;if("name"in d&&d.name){if(g=r.get(d.name),!g)throw Lt(1,{location:d});D=g.record.name,x=te(eo(p.params,g.keys.filter(O=>!O.optional).concat(g.parent?g.parent.keys.filter(O=>O.optional):[]).map(O=>O.name)),d.params&&eo(d.params,g.keys.map(O=>O.name))),P=g.stringify(x)}else if(d.path!=null)P=d.path,g=n.find(O=>O.re.test(P)),g&&(x=g.parse(P),D=g.record.name);else{if(g=p.name?r.get(p.name):n.find(O=>O.re.test(p.path)),!g)throw Lt(1,{location:d,currentLocation:p});D=g.record.name,x=te({},p.params,d.params),P=g.stringify(x)}const $=[];let k=g;for(;k;)$.unshift(k.record),k=k.parent;return{name:D,path:P,params:x,matched:$,meta:Mu($)}}e.forEach(d=>o(d));function h(){n.length=0,r.clear()}return{addRoute:o,resolve:u,removeRoute:i,clearRoutes:h,getRoutes:c,getRecordMatcher:s}}function eo(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ou(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Lu(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Lu(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function to(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Mu(e){return e.reduce((t,n)=>te(t,n.meta),{})}function no(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Iu(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;$i(e,t[o])<0?r=o:n=o+1}const s=ku(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function ku(e){let t=e;for(;t=t.parent;)if(ji(t)&&$i(e,t)===0)return t}function ji({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Fu(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&Er(o)):[r&&Er(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Nu(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ke(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const $u=Symbol(""),so=Symbol(""),Wr=Symbol(""),Hi=Symbol(""),Cr=Symbol("");function Nt(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function st(e,t,n,r,s,o=i=>i()){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((c,l)=>{const u=p=>{p===!1?l(Lt(4,{from:n,to:t})):p instanceof Error?l(p):bu(p)?l(Lt(2,{from:t,to:p})):(i&&r.enterCallbacks[s]===i&&typeof p=="function"&&i.push(p),c())},h=o(()=>e.call(r&&r.instances[s],t,n,u));let d=Promise.resolve(h);e.length<3&&(d=d.then(u)),d.catch(p=>l(p))})}function rr(e,t,n,r,s=o=>o()){const o=[];for(const i of e)for(const c in i.components){let l=i.components[c];if(!(t!=="beforeRouteEnter"&&!i.instances[c]))if(ju(l)){const h=(l.__vccOpts||l)[t];h&&o.push(st(h,n,r,i,c,s))}else{let u=l();o.push(()=>u.then(h=>{if(!h)return Promise.reject(new Error(`Couldn't resolve component "${c}" at "${i.path}"`));const d=Ua(h)?h.default:h;i.components[c]=d;const g=(d.__vccOpts||d)[t];return g&&st(g,n,r,i,c,s)()}))}}return o}function ju(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function oo(e){const t=We(Wr),n=We(Hi),r=Me(()=>{const l=At(e.to);return t.resolve(l)}),s=Me(()=>{const{matched:l}=r.value,{length:u}=l,h=l[u-1],d=n.matched;if(!h||!d.length)return-1;const p=d.findIndex(Ot.bind(null,h));if(p>-1)return p;const g=io(l[u-2]);return u>1&&io(h)===g&&d[d.length-1].path!==g?d.findIndex(Ot.bind(null,l[u-2])):p}),o=Me(()=>s.value>-1&&Vu(n.params,r.value.params)),i=Me(()=>s.value>-1&&s.value===n.matched.length-1&&Ii(n.params,r.value.params));function c(l={}){return Bu(l)?t[At(e.replace)?"replace":"push"](At(e.to)).catch(Kt):Promise.resolve()}return{route:r,href:Me(()=>r.value.href),isActive:o,isExactActive:i,navigate:c}}const Hu=Dr({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:oo,setup(e,{slots:t}){const n=It(oo(e)),{options:r}=We(Wr),s=Me(()=>({[lo(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[lo(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:zr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),Du=Hu;function Bu(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Vu(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!ke(s)||s.length!==r.length||r.some((o,i)=>o!==s[i]))return!1}return!0}function io(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const lo=(e,t,n)=>e!=null?e:t!=null?t:n,Uu=Dr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=We(Cr),s=Me(()=>e.route||r.value),o=We(so,0),i=Me(()=>{let u=At(o);const{matched:h}=s.value;let d;for(;(d=h[u])&&!d.components;)u++;return u}),c=Me(()=>s.value.matched[i.value]);pn(so,Me(()=>i.value+1)),pn($u,c),pn(Cr,s);const l=No();return gn(()=>[l.value,c.value,e.name],([u,h,d],[p,g,x])=>{h&&(h.instances[d]=u,g&&g!==h&&u&&u===p&&(h.leaveGuards.size||(h.leaveGuards=g.leaveGuards),h.updateGuards.size||(h.updateGuards=g.updateGuards))),u&&h&&(!g||!Ot(h,g)||!p)&&(h.enterCallbacks[d]||[]).forEach(P=>P(u))},{flush:"post"}),()=>{const u=s.value,h=e.name,d=c.value,p=d&&d.components[h];if(!p)return co(n.default,{Component:p,route:u});const g=d.props[h],x=g?g===!0?u.params:typeof g=="function"?g(u):g:null,D=zr(p,te({},x,t,{onVnodeUnmounted:$=>{$.component.isUnmounted&&(d.instances[h]=null)},ref:l}));return co(n.default,{Component:D,route:u})||D}}});function co(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ku=Uu;function zu(e){const t=Tu(e.routes,e),n=e.parseQuery||Fu,r=e.stringifyQuery||ro,s=e.history,o=Nt(),i=Nt(),c=Nt(),l=xl(Ze);let u=Ze;St&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=tr.bind(null,y=>""+y),d=tr.bind(null,nu),p=tr.bind(null,Zt);function g(y,A){let R,I;return Fi(y)?(R=t.getRecordMatcher(y),I=A):I=y,t.addRoute(I,R)}function x(y){const A=t.getRecordMatcher(y);A&&t.removeRoute(A)}function P(){return t.getRoutes().map(y=>y.record)}function D(y){return!!t.getRecordMatcher(y)}function $(y,A){if(A=te({},A||l.value),typeof y=="string"){const f=nr(n,y,A.path),m=t.resolve({path:f.path},A),v=s.createHref(f.fullPath);return te(f,m,{params:p(m.params),hash:Zt(f.hash),redirectedFrom:void 0,href:v})}let R;if(y.path!=null)R=te({},y,{path:nr(n,y.path,A.path).path});else{const f=te({},y.params);for(const m in f)f[m]==null&&delete f[m];R=te({},y,{params:d(f)}),A.params=d(A.params)}const I=t.resolve(R,A),Z=y.hash||"";I.params=h(p(I.params));const le=ou(r,te({},y,{hash:Za(Z),path:I.path})),a=s.createHref(le);return te({fullPath:le,hash:Z,query:r===ro?Nu(y.query):y.query||{}},I,{redirectedFrom:void 0,href:a})}function k(y){return typeof y=="string"?nr(n,y,l.value.path):te({},y)}function O(y,A){if(u!==y)return Lt(8,{from:A,to:y})}function U(y){return K(y)}function G(y){return U(te(k(y),{replace:!0}))}function M(y){const A=y.matched[y.matched.length-1];if(A&&A.redirect){const{redirect:R}=A;let I=typeof R=="function"?R(y):R;return typeof I=="string"&&(I=I.includes("?")||I.includes("#")?I=k(I):{path:I},I.params={}),te({query:y.query,hash:y.hash,params:I.path!=null?{}:y.params},I)}}function K(y,A){const R=u=$(y),I=l.value,Z=y.state,le=y.force,a=y.replace===!0,f=M(R);if(f)return K(te(k(f),{state:typeof f=="object"?te({},Z,f.state):Z,force:le,replace:a}),A||R);const m=R;m.redirectedFrom=A;let v;return!le&&iu(r,I,R)&&(v=Lt(16,{to:m,from:I}),Fe(I,I,!0,!1)),(v?Promise.resolve(v):q(m,I)).catch(_=>Ke(_)?Ke(_,2)?_:Qe(_):X(_,m,I)).then(_=>{if(_){if(Ke(_,2))return K(te({replace:a},k(_.to),{state:typeof _.to=="object"?te({},Z,_.to.state):Z,force:le}),A||m)}else _=L(m,I,!0,a,Z);return Q(m,I,_),_})}function re(y,A){const R=O(y,A);return R?Promise.reject(R):Promise.resolve()}function H(y){const A=xt.values().next().value;return A&&typeof A.runWithContext=="function"?A.runWithContext(y):y()}function q(y,A){let R;const[I,Z,le]=qu(y,A);R=rr(I.reverse(),"beforeRouteLeave",y,A);for(const f of I)f.leaveGuards.forEach(m=>{R.push(st(m,y,A))});const a=re.bind(null,y,A);return R.push(a),pe(R).then(()=>{R=[];for(const f of o.list())R.push(st(f,y,A));return R.push(a),pe(R)}).then(()=>{R=rr(Z,"beforeRouteUpdate",y,A);for(const f of Z)f.updateGuards.forEach(m=>{R.push(st(m,y,A))});return R.push(a),pe(R)}).then(()=>{R=[];for(const f of le)if(f.beforeEnter)if(ke(f.beforeEnter))for(const m of f.beforeEnter)R.push(st(m,y,A));else R.push(st(f.beforeEnter,y,A));return R.push(a),pe(R)}).then(()=>(y.matched.forEach(f=>f.enterCallbacks={}),R=rr(le,"beforeRouteEnter",y,A,H),R.push(a),pe(R))).then(()=>{R=[];for(const f of i.list())R.push(st(f,y,A));return R.push(a),pe(R)}).catch(f=>Ke(f,8)?f:Promise.reject(f))}function Q(y,A,R){c.list().forEach(I=>H(()=>I(y,A,R)))}function L(y,A,R,I,Z){const le=O(y,A);if(le)return le;const a=A===Ze,f=St?history.state:{};R&&(I||a?s.replace(y.fullPath,te({scroll:a&&f&&f.scroll},Z)):s.push(y.fullPath,Z)),l.value=y,Fe(y,A,R,a),Qe()}let Y;function fe(){Y||(Y=s.listen((y,A,R)=>{if(!nn.listening)return;const I=$(y),Z=M(I);if(Z){K(te(Z,{replace:!0}),I).catch(Kt);return}u=I;const le=l.value;St&&pu(Qs(le.fullPath,R.delta),Vn()),q(I,le).catch(a=>Ke(a,12)?a:Ke(a,2)?(K(a.to,I).then(f=>{Ke(f,20)&&!R.delta&&R.type===en.pop&&s.go(-1,!1)}).catch(Kt),Promise.reject()):(R.delta&&s.go(-R.delta,!1),X(a,I,le))).then(a=>{a=a||L(I,le,!1),a&&(R.delta&&!Ke(a,8)?s.go(-R.delta,!1):R.type===en.pop&&Ke(a,20)&&s.go(-1,!1)),Q(I,le,a)}).catch(Kt)}))}let Te=Nt(),ce=Nt(),ne;function X(y,A,R){Qe(y);const I=ce.list();return I.length?I.forEach(Z=>Z(y,A,R)):console.error(y),Promise.reject(y)}function Ue(){return ne&&l.value!==Ze?Promise.resolve():new Promise((y,A)=>{Te.add([y,A])})}function Qe(y){return ne||(ne=!y,fe(),Te.list().forEach(([A,R])=>y?R(y):A()),Te.reset()),y}function Fe(y,A,R,I){const{scrollBehavior:Z}=e;if(!St||!Z)return Promise.resolve();const le=!R&&gu(Qs(y.fullPath,0))||(I||!R)&&history.state&&history.state.scroll||null;return Do().then(()=>Z(y,A,le)).then(a=>a&&hu(a)).catch(a=>X(a,y,A))}const ye=y=>s.go(y);let Et;const xt=new Set,nn={currentRoute:l,listening:!0,addRoute:g,removeRoute:x,clearRoutes:t.clearRoutes,hasRoute:D,getRoutes:P,resolve:$,options:e,push:U,replace:G,go:ye,back:()=>ye(-1),forward:()=>ye(1),beforeEach:o.add,beforeResolve:i.add,afterEach:c.add,onError:ce.add,isReady:Ue,install(y){const A=this;y.component("RouterLink",Du),y.component("RouterView",Ku),y.config.globalProperties.$router=A,Object.defineProperty(y.config.globalProperties,"$route",{enumerable:!0,get:()=>At(l)}),St&&!Et&&l.value===Ze&&(Et=!0,U(s.location).catch(Z=>{}));const R={};for(const Z in Ze)Object.defineProperty(R,Z,{get:()=>l.value[Z],enumerable:!0});y.provide(Wr,A),y.provide(Hi,Lo(R)),y.provide(Cr,l);const I=y.unmount;xt.add(y),y.unmount=function(){xt.delete(y),xt.size<1&&(u=Ze,Y&&Y(),Y=null,l.value=Ze,Et=!1,ne=!1),I()}}};function pe(y){return y.reduce((A,R)=>A.then(()=>H(R)),Promise.resolve())}return nn}function qu(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iOt(u,c))?r.push(c):n.push(c));const l=e.matched[i];l&&(t.matched.find(u=>Ot(u,l))||s.push(l))}return[n,r,s]}const Wu=function(){const t=document.createElement("link").relList;return t&&t.supports&&t.supports("modulepreload")?"modulepreload":"preload"}(),ao={},Gu="/email-header-analyzer/",sr=function(t,n){return!n||n.length===0?t():Promise.all(n.map(r=>{if(r=`${Gu}${r}`,r in ao)return;ao[r]=!0;const s=r.endsWith(".css"),o=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${o}`))return;const i=document.createElement("link");if(i.rel=s?"stylesheet":Wu,s||(i.as="script",i.crossOrigin=""),i.href=r,document.head.appendChild(i),s)return new Promise((c,l)=>{i.addEventListener("load",c),i.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())},Qu=[{path:"/",component:()=>sr(()=>import("./MainLayout.ccd918fa.js"),["assets/MainLayout.ccd918fa.js","assets/QBtn.c5c37d96.js","assets/scroll.f9bb6be7.js"]),children:[{path:"",component:()=>sr(()=>import("./IndexPage.050b0715.js"),["assets/IndexPage.050b0715.js","assets/IndexPage.823ac002.css","assets/QBtn.c5c37d96.js","assets/scroll.f9bb6be7.js"])}]},{path:"/:catchAll(.*)*",component:()=>sr(()=>import("./ErrorNotFound.3b9d054f.js"),["assets/ErrorNotFound.3b9d054f.js","assets/QBtn.c5c37d96.js"])}];var or=function(){return zu({scrollBehavior:()=>({left:0,top:0}),routes:Qu,history:vu("/email-header-analyzer/")})};async function Ju(e,t){const n=e(Va);n.use(ja,t);const r=On(typeof or=="function"?await or({}):or);return{app:n,router:r}}var Yu={config:{}};async function Xu({app:e,router:t}){e.use(t),e.mount("#q-app")}Ju(ha,Yu).then(Xu);export{J as $,At as A,uf as B,yf as C,mf as D,_f as E,hf as F,ff as G,gf as H,pf as I,Ul as J,wf as K,ba as L,Hn as M,mc as N,gc as O,Ca as P,Be as Q,Vl as R,wr as S,wi as T,Us as U,rf as V,Ma as W,df as X,Kl as Y,er as Z,Ha as _,Me as a,Cf as a0,xf as a1,Ks as a2,cf as a3,Dr as a4,sf as a5,yi as a6,Zi as a7,of as a8,je as a9,nf as aa,ka as ab,lf as ac,Zu as ad,ef as ae,Wo as b,af as c,Do as d,We as e,Ef as f,Mc as g,zr as h,wt as i,vf as j,bf as k,Bn as l,It as m,Xt as n,qo as o,pn as p,Go as q,No as r,$l as s,pi as t,mi as u,Ml as v,gn as w,we as x,Pc as y,tf as z}; diff --git a/assets/scroll.736871b0.js b/assets/scroll.f9bb6be7.js similarity index 95% rename from assets/scroll.736871b0.js rename to assets/scroll.f9bb6be7.js index 6606dbb..273957c 100644 --- a/assets/scroll.736871b0.js +++ b/assets/scroll.f9bb6be7.js @@ -1 +1 @@ -import{g as s,c as l}from"./QBtn.92b86c16.js";const d=[Element,String],c=[null,document,document.body,document.scrollingElement,document.documentElement];function u(o,t){let e=s(t);if(e===void 0){if(o==null)return window;e=o.closest(".scroll,.scroll-y,.overflow-auto")}return c.includes(e)?window:e}function a(o){return o===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:o.scrollTop}function f(o){return o===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:o.scrollLeft}let n;function w(){if(n!==void 0)return n;const o=document.createElement("p"),t=document.createElement("div");l(o,{width:"100%",height:"200px"}),l(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(o),document.body.appendChild(t);const e=o.offsetWidth;t.style.overflow="scroll";let i=o.offsetWidth;return e===i&&(i=t.clientWidth),t.remove(),n=e-i,n}function p(o,t=!0){return!o||o.nodeType!==Node.ELEMENT_NODE?!1:t?o.scrollHeight>o.clientHeight&&(o.classList.contains("scroll")||o.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(o)["overflow-y"])):o.scrollWidth>o.clientWidth&&(o.classList.contains("scroll")||o.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(o)["overflow-x"]))}export{a,f as b,w as c,u as g,p as h,d as s}; +import{g as s,c as l}from"./QBtn.c5c37d96.js";const d=[Element,String],c=[null,document,document.body,document.scrollingElement,document.documentElement];function u(o,t){let e=s(t);if(e===void 0){if(o==null)return window;e=o.closest(".scroll,.scroll-y,.overflow-auto")}return c.includes(e)?window:e}function a(o){return o===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:o.scrollTop}function f(o){return o===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:o.scrollLeft}let n;function w(){if(n!==void 0)return n;const o=document.createElement("p"),t=document.createElement("div");l(o,{width:"100%",height:"200px"}),l(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(o),document.body.appendChild(t);const e=o.offsetWidth;t.style.overflow="scroll";let i=o.offsetWidth;return e===i&&(i=t.clientWidth),t.remove(),n=e-i,n}function p(o,t=!0){return!o||o.nodeType!==Node.ELEMENT_NODE?!1:t?o.scrollHeight>o.clientHeight&&(o.classList.contains("scroll")||o.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(o)["overflow-y"])):o.scrollWidth>o.clientWidth&&(o.classList.contains("scroll")||o.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(o)["overflow-x"]))}export{a,f as b,w as c,u as g,p as h,d as s}; diff --git a/index.html b/index.html index 938ddc6..e784768 100644 --- a/index.html +++ b/index.html @@ -1,3 +1,3 @@ -Mailtower E-Mail Header Analyzer +Mailtower E-Mail Header Analyzer
\ No newline at end of file