@validol4ik/uikit 0.3.37 → 0.3.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),f=require("./index-Ds5xSOgF.cjs"),Y=require("./QNoSsr-CMMZVPpl.cjs"),Me={dark:{type:Boolean,default:null}};function Oe(e,l){return t.computed(()=>e.dark===null?l.dark.isActive:e.dark)}function Ll(e,l){const o=t.ref(null),n=t.computed(()=>e.disable===!0?null:t.h("span",{ref:o,class:"no-outline",tabindex:-1}));function r(i){const a=l.value;i!==void 0&&i.type.indexOf("key")===0?a!==null&&document.activeElement!==a&&a.contains(document.activeElement)===!0&&a.focus():o.value!==null&&(i===void 0||a!==null&&a.contains(i.target)===!0)&&o.value.focus()}return{refocusTargetEl:n,refocusTarget:r}}const ol={name:String};function Hl(e={}){return(l,o,n)=>{l[o](t.h("input",{class:"hidden"+(n||""),...e.value}))}}function $l(e){return t.computed(()=>e.name||e.for)}const Dl={xs:30,sm:35,md:40,lg:50,xl:60},Nl={...Me,...f.useSizeProps,...ol,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]},Wl=["update:modelValue"];function jl(e,l){const{props:o,slots:n,emit:r,proxy:i}=t.getCurrentInstance(),{$q:a}=i,v=Oe(o,a),h=t.ref(null),{refocusTargetEl:g,refocusTarget:d}=Ll(o,h),y=f.useSize(o,Dl),x=t.computed(()=>o.val!==void 0&&Array.isArray(o.modelValue)),s=t.computed(()=>{const A=t.toRaw(o.val);return x.value===!0?o.modelValue.findIndex(K=>t.toRaw(K)===A):-1}),m=t.computed(()=>x.value===!0?s.value!==-1:t.toRaw(o.modelValue)===t.toRaw(o.trueValue)),_=t.computed(()=>x.value===!0?s.value===-1:t.toRaw(o.modelValue)===t.toRaw(o.falseValue)),S=t.computed(()=>m.value===!1&&_.value===!1),H=t.computed(()=>o.disable===!0?-1:o.tabindex||0),B=t.computed(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(o.disable===!0?" disabled":"")+(v.value===!0?` q-${e}--dark`:"")+(o.dense===!0?` q-${e}--dense`:"")+(o.leftLabel===!0?" reverse":"")),q=t.computed(()=>{const A=m.value===!0?"truthy":_.value===!0?"falsy":"indet",K=o.color!==void 0&&(o.keepColor===!0||_.value!==!0)?` text-${o.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${A}${K}`}),T=t.computed(()=>{const A={type:"checkbox"};return o.name!==void 0&&Object.assign(A,{".checked":m.value,"^checked":m.value===!0?"checked":void 0,name:o.name,value:x.value===!0?o.val:o.trueValue}),A}),$=Hl(T),E=t.computed(()=>{const A={tabindex:H.value,role:"checkbox","aria-label":o.label,"aria-checked":S.value===!0?"mixed":m.value===!0?"true":"false"};return o.disable===!0&&(A["aria-disabled"]="true"),A});function F(A){A!==void 0&&(f.stopAndPrevent(A),d(A)),o.disable!==!0&&r("update:modelValue",P(),A)}function P(){if(x.value===!0){if(m.value===!0){const A=o.modelValue.slice();return A.splice(s.value,1),A}return o.modelValue.concat([o.val])}if(m.value===!0){if(o.toggleOrder!=="ft"||o.toggleIndeterminate===!1)return o.falseValue}else if(_.value===!0){if(o.toggleOrder==="ft"||o.toggleIndeterminate===!1)return o.trueValue}else return o.toggleOrder!=="ft"?o.trueValue:o.falseValue;return o.indeterminateValue}function j(A){(A.keyCode===13||A.keyCode===32)&&f.stopAndPrevent(A)}function X(A){(A.keyCode===13||A.keyCode===32)&&F(A)}const te=l(m,S);return Object.assign(i,{toggle:F}),()=>{const A=te();o.disable!==!0&&$(A,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const K=[t.h("div",{class:q.value,style:y.value,"aria-hidden":"true"},A)];g.value!==null&&K.push(g.value);const le=o.label!==void 0?f.hMergeSlot(n.default,[o.label]):f.hSlot(n.default);return le!==void 0&&K.push(t.h("div",{class:`q-${e}__label q-anchor--skip`},le)),t.h("div",{ref:h,class:B.value,...E.value,onClick:F,onKeydown:j,onKeyup:X},K)}}const Kl=()=>t.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[t.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[t.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),t.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),Ul=f.createComponent({name:"QCheckbox",props:Nl,emits:Wl,setup(e){const l=Kl();function o(n,r){const i=t.computed(()=>(n.value===!0?e.checkedIcon:r.value===!0?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>i.value!==null?[t.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[t.h(f.QIcon,{class:"q-checkbox__icon",name:i.value})])]:[l]}return jl("checkbox",o)}}),Xe=f.createComponent({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:l}){const o=t.computed(()=>`q-item__section column q-item__section--${e.avatar===!0||e.side===!0||e.thumbnail===!0?"side":"main"}`+(e.top===!0?" q-item__section--top justify-start":" justify-center")+(e.avatar===!0?" q-item__section--avatar":"")+(e.thumbnail===!0?" q-item__section--thumbnail":"")+(e.noWrap===!0?" q-item__section--nowrap":""));return()=>t.h("div",{class:o.value},f.hSlot(l.default))}}),nl=f.createComponent({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:l}){const o=t.computed(()=>parseInt(e.lines,10)),n=t.computed(()=>"q-item__label"+(e.overline===!0?" q-item__label--overline text-overline":"")+(e.caption===!0?" q-item__label--caption text-caption":"")+(e.header===!0?" q-item__label--header":"")+(o.value===1?" ellipsis":"")),r=t.computed(()=>e.lines!==void 0&&o.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":o.value}:null);return()=>t.h("div",{style:r.value,class:n.value},f.hSlot(l.default))}}),ul=f.createComponent({name:"QItem",props:{...Me,...f.useRouterLinkProps,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(e,{slots:l,emit:o}){const{proxy:{$q:n}}=t.getCurrentInstance(),r=Oe(e,n),{hasLink:i,linkAttrs:a,linkClass:v,linkTag:h,navigateOnClick:g}=f.useRouterLink(),d=t.ref(null),y=t.ref(null),x=t.computed(()=>e.clickable===!0||i.value===!0||e.tag==="label"),s=t.computed(()=>e.disable!==!0&&x.value===!0),m=t.computed(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(r.value===!0?" q-item--dark":"")+(i.value===!0&&e.active===null?v.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(s.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":""):"")),_=t.computed(()=>e.insetLevel===void 0?null:{["padding"+(n.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function S(q){s.value===!0&&(y.value!==null&&(q.qKeyEvent!==!0&&document.activeElement===d.value?y.value.focus():document.activeElement===y.value&&d.value.focus()),g(q))}function H(q){if(s.value===!0&&f.isKeyCode(q,[13,32])===!0){f.stopAndPrevent(q),q.qKeyEvent=!0;const T=new MouseEvent("click",q);T.qKeyEvent=!0,d.value.dispatchEvent(T)}o("keyup",q)}function B(){const q=f.hUniqueSlot(l.default,[]);return s.value===!0&&q.unshift(t.h("div",{class:"q-focus-helper",tabindex:-1,ref:y})),q}return()=>{const q={ref:d,class:m.value,style:_.value,role:"listitem",onClick:S,onKeyup:H};return s.value===!0?(q.tabindex=e.tabindex||"0",Object.assign(q,a.value)):x.value===!0&&(q["aria-disabled"]="true"),t.h(h.value,q,B())}}}),Rt=e=>e?!0:"Обовʼязкове поле";let ut,Ne=0;const J=new Array(256);for(let e=0;e<256;e++)J[e]=(e+256).toString(16).substring(1);const Ql=(()=>{const e=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(e!==void 0){if(e.randomBytes!==void 0)return e.randomBytes;if(e.getRandomValues!==void 0)return l=>{const o=new Uint8Array(l);return e.getRandomValues(o),o}}return l=>{const o=[];for(let n=l;n>0;n--)o.push(Math.floor(Math.random()*256));return o}})(),It=4096;function vt(){(ut===void 0||Ne+16>It)&&(Ne=0,ut=Ql(It));const e=Array.prototype.slice.call(ut,Ne,Ne+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,J[e[0]]+J[e[1]]+J[e[2]]+J[e[3]]+"-"+J[e[4]]+J[e[5]]+"-"+J[e[6]]+J[e[7]]+"-"+J[e[8]]+J[e[9]]+"-"+J[e[10]]+J[e[11]]+J[e[12]]+J[e[13]]+J[e[14]]+J[e[15]]}function Xl(e){return e??null}function zt(e,l){return e??(l===!0?`f_${vt()}`:null)}function Yl({getValue:e,required:l=!0}={}){if(Y.isRuntimeSsrPreHydration.value===!0){const o=e!==void 0?t.ref(Xl(e())):t.ref(null);return l===!0&&o.value===null&&t.onMounted(()=>{o.value=`f_${vt()}`}),e!==void 0&&t.watch(e,n=>{o.value=zt(n,l)}),o}return e!==void 0?t.computed(()=>zt(e(),l)):t.ref(`f_${vt()}`)}const Ft=/^on[A-Z]/;function Gl(){const{attrs:e,vnode:l}=t.getCurrentInstance(),o={listeners:t.ref({}),attributes:t.ref({})};function n(){const r={},i={};for(const a in e)a!=="class"&&a!=="style"&&Ft.test(a)===!1&&(r[a]=e[a]);for(const a in l.props)Ft.test(a)===!0&&(i[a]=l.props[a]);o.attributes.value=r,o.listeners.value=i}return t.onBeforeUpdate(n),n(),o}const Zl="_q_fo_";function Jl({validate:e,resetValidation:l,requiresQForm:o}){const n=t.inject(Zl,!1);if(n!==!1){const{props:r,proxy:i}=t.getCurrentInstance();Object.assign(i,{validate:e,resetValidation:l}),t.watch(()=>r.disable,a=>{a===!0?(typeof l=="function"&&l(),n.unbindComponent(i)):n.bindComponent(i)}),t.onMounted(()=>{r.disable!==!0&&n.bindComponent(i)}),t.onBeforeUnmount(()=>{r.disable!==!0&&n.unbindComponent(i)})}else o===!0&&console.error("Parent QForm not found on useFormChild()!")}const Mt=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Ot=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Pt=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,We=/^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])\)$/,je=/^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)\)$/,it={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=>Mt.test(e),hexaColor:e=>Ot.test(e),hexOrHexaColor:e=>Pt.test(e),rgbColor:e=>We.test(e),rgbaColor:e=>je.test(e),rgbOrRgbaColor:e=>We.test(e)||je.test(e),hexOrRgbColor:e=>Mt.test(e)||We.test(e),hexaOrRgbaColor:e=>Ot.test(e)||je.test(e),anyColor:e=>Pt.test(e)||We.test(e)||je.test(e)};function il(e,l=250,o){let n=null;function r(){const i=arguments,a=()=>{n=null,o!==!0&&e.apply(this,i)};n!==null?clearTimeout(n):o===!0&&e.apply(this,i),n=setTimeout(a,l)}return r.cancel=()=>{n!==null&&clearTimeout(n)},r}const eo=[!0,!1,"ondemand"],to={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>eo.includes(e)}};function lo(e,l){const{props:o,proxy:n}=t.getCurrentInstance(),r=t.ref(!1),i=t.ref(null),a=t.ref(!1);Jl({validate:_,resetValidation:m});let v=0,h;const g=t.computed(()=>o.rules!==void 0&&o.rules!==null&&o.rules.length!==0),d=t.computed(()=>o.disable!==!0&&g.value===!0&&l.value===!1),y=t.computed(()=>o.error===!0||r.value===!0),x=t.computed(()=>typeof o.errorMessage=="string"&&o.errorMessage.length!==0?o.errorMessage:i.value);t.watch(()=>o.modelValue,()=>{a.value=!0,d.value===!0&&o.lazyRules===!1&&S()});function s(){o.lazyRules!=="ondemand"&&d.value===!0&&a.value===!0&&S()}t.watch(()=>o.reactiveRules,H=>{H===!0?h===void 0&&(h=t.watch(()=>o.rules,s,{immediate:!0,deep:!0})):h!==void 0&&(h(),h=void 0)},{immediate:!0}),t.watch(()=>o.lazyRules,s),t.watch(e,H=>{H===!0?a.value=!0:d.value===!0&&o.lazyRules!=="ondemand"&&S()});function m(){v++,l.value=!1,a.value=!1,r.value=!1,i.value=null,S.cancel()}function _(H=o.modelValue){if(o.disable===!0||g.value===!1)return!0;const B=++v,q=l.value!==!0?()=>{a.value=!0}:()=>{},T=(E,F)=>{E===!0&&q(),r.value=E,i.value=F||null,l.value=!1},$=[];for(let E=0;E<o.rules.length;E++){const F=o.rules[E];let P;if(typeof F=="function"?P=F(H,it):typeof F=="string"&&it[F]!==void 0&&(P=it[F](H)),P===!1||typeof P=="string")return T(!0,P),!1;P!==!0&&P!==void 0&&$.push(P)}return $.length===0?(T(!1),!0):(l.value=!0,Promise.all($).then(E=>{if(E===void 0||Array.isArray(E)===!1||E.length===0)return B===v&&T(!1),!0;const F=E.find(P=>P===!1||typeof P=="string");return B===v&&T(F!==void 0,F),F===void 0},E=>(B===v&&(console.error(E),T(!0)),!1)))}const S=il(_,0);return t.onBeforeUnmount(()=>{h!==void 0&&h(),S.cancel()}),Object.assign(n,{resetValidation:m,validate:_}),Y.injectProp(n,"hasError",()=>y.value),{isDirtyModel:a,hasRules:g,hasError:y,errorMessage:x,validate:_,resetValidation:m}}let ge=[],Fe=[];function al(e){Fe=Fe.filter(l=>l!==e)}function oo(e){al(e),Fe.push(e)}function Lt(e){al(e),Fe.length===0&&ge.length!==0&&(ge[ge.length-1](),ge=[])}function gt(e){Fe.length===0?e():ge.push(e)}function no(e){ge=ge.filter(l=>l!==e)}function mt(e){return e!=null&&(""+e).length!==0}const uo={...Me,...to,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},pt={...uo,maxlength:[Number,String]},rl=["update:modelValue","clear","focus","blur"];function sl({requiredForAttr:e=!0,tagProp:l,changeEvent:o=!1}={}){const{props:n,proxy:r}=t.getCurrentInstance(),i=Oe(n,r.$q),a=Yl({required:e,getValue:()=>n.for});return{requiredForAttr:e,changeEvent:o,tag:l===!0?t.computed(()=>n.tag):{value:"label"},isDark:i,editable:t.computed(()=>n.disable!==!0&&n.readonly!==!0),innerLoading:t.ref(!1),focused:t.ref(!1),hasPopupOpen:!1,splitAttrs:Gl(),targetUid:a,rootRef:t.ref(null),targetRef:t.ref(null),controlRef:t.ref(null)}}function cl(e){const{props:l,emit:o,slots:n,attrs:r,proxy:i}=t.getCurrentInstance(),{$q:a}=i;let v=null;e.hasValue===void 0&&(e.hasValue=t.computed(()=>mt(l.modelValue))),e.emitValue===void 0&&(e.emitValue=k=>{o("update:modelValue",k)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:j,onFocusout:X}),Object.assign(e,{clearValue:te,onControlFocusin:j,onControlFocusout:X,focus:F}),e.computedCounter===void 0&&(e.computedCounter=t.computed(()=>{if(l.counter!==!1){const k=typeof l.modelValue=="string"||typeof l.modelValue=="number"?(""+l.modelValue).length:Array.isArray(l.modelValue)===!0?l.modelValue.length:0,z=l.maxlength!==void 0?l.maxlength:l.maxValues;return k+(z!==void 0?" / "+z:"")}}));const{isDirtyModel:h,hasRules:g,hasError:d,errorMessage:y,resetValidation:x}=lo(e.focused,e.innerLoading),s=e.floatingLabel!==void 0?t.computed(()=>l.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):t.computed(()=>l.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),m=t.computed(()=>l.bottomSlots===!0||l.hint!==void 0||g.value===!0||l.counter===!0||l.error!==null),_=t.computed(()=>l.filled===!0?"filled":l.outlined===!0?"outlined":l.borderless===!0?"borderless":l.standout?"standout":"standard"),S=t.computed(()=>`q-field row no-wrap items-start q-field--${_.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(l.rounded===!0?" q-field--rounded":"")+(l.square===!0?" q-field--square":"")+(s.value===!0?" q-field--float":"")+(B.value===!0?" q-field--labeled":"")+(l.dense===!0?" q-field--dense":"")+(l.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(e.isDark.value===!0?" q-field--dark":"")+(e.getControl===void 0?" q-field--auto-height":"")+(e.focused.value===!0?" q-field--focused":"")+(d.value===!0?" q-field--error":"")+(d.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(l.hideBottomSpace!==!0&&m.value===!0?" q-field--with-bottom":"")+(l.disable===!0?" q-field--disabled":l.readonly===!0?" q-field--readonly":"")),H=t.computed(()=>"q-field__control relative-position row no-wrap"+(l.bgColor!==void 0?` bg-${l.bgColor}`:"")+(d.value===!0?" text-negative":typeof l.standout=="string"&&l.standout.length!==0&&e.focused.value===!0?` ${l.standout}`:l.color!==void 0?` text-${l.color}`:"")),B=t.computed(()=>l.labelSlot===!0||l.label!==void 0),q=t.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(l.labelColor!==void 0&&d.value!==!0?` text-${l.labelColor}`:"")),T=t.computed(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:s.value,modelValue:l.modelValue,emitValue:e.emitValue})),$=t.computed(()=>{const k={};return e.targetUid.value&&(k.for=e.targetUid.value),l.disable===!0&&(k["aria-disabled"]="true"),k});function E(){const k=document.activeElement;let z=e.targetRef!==void 0&&e.targetRef.value;z&&(k===null||k.id!==e.targetUid.value)&&(z.hasAttribute("tabindex")===!0||(z=z.querySelector("[tabindex]")),z&&z!==k&&z.focus({preventScroll:!0}))}function F(){gt(E)}function P(){no(E);const k=document.activeElement;k!==null&&e.rootRef.value.contains(k)&&k.blur()}function j(k){v!==null&&(clearTimeout(v),v=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,o("focus",k))}function X(k,z){v!==null&&clearTimeout(v),v=setTimeout(()=>{v=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,o("blur",k)),z!==void 0&&z())})}function te(k){f.stopAndPrevent(k),a.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(),l.type==="file"&&(e.inputRef.value.value=null),o("update:modelValue",null),e.changeEvent===!0&&o("change",null),o("clear",l.modelValue),t.nextTick(()=>{const z=h.value;x(),h.value=z})}function A(k){[13,32].includes(k.keyCode)&&te(k)}function K(){const k=[];return n.prepend!==void 0&&k.push(t.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:f.prevent},n.prepend())),k.push(t.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},le())),d.value===!0&&l.noErrorIcon===!1&&k.push(U("error",[t.h(f.QIcon,{name:a.iconSet.field.error,color:"negative"})])),l.loading===!0||e.innerLoading.value===!0?k.push(U("inner-loading-append",n.loading!==void 0?n.loading():[t.h(f.QSpinner,{color:l.color})])):l.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&k.push(U("inner-clearable-append",[t.h(f.QIcon,{class:"q-field__focusable-action",name:l.clearIcon||a.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":a.lang.label.clear,onKeyup:A,onClick:te})])),n.append!==void 0&&k.push(t.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:f.prevent},n.append())),e.getInnerAppend!==void 0&&k.push(U("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&k.push(e.getControlChild()),k}function le(){const k=[];return l.prefix!==void 0&&l.prefix!==null&&k.push(t.h("div",{class:"q-field__prefix no-pointer-events row items-center"},l.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&k.push(e.getShadowControl()),e.getControl!==void 0?k.push(e.getControl()):n.rawControl!==void 0?k.push(n.rawControl()):n.control!==void 0&&k.push(t.h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0},n.control(T.value))),B.value===!0&&k.push(t.h("div",{class:q.value},f.hSlot(n.label,l.label))),l.suffix!==void 0&&l.suffix!==null&&k.push(t.h("div",{class:"q-field__suffix no-pointer-events row items-center"},l.suffix)),k.concat(f.hSlot(n.default))}function ee(){let k,z;d.value===!0?y.value!==null?(k=[t.h("div",{role:"alert"},y.value)],z=`q--slot-error-${y.value}`):(k=f.hSlot(n.error),z="q--slot-error"):(l.hideHint!==!0||e.focused.value===!0)&&(l.hint!==void 0?(k=[t.h("div",l.hint)],z=`q--slot-hint-${l.hint}`):(k=f.hSlot(n.hint),z="q--slot-hint"));const ue=l.counter===!0||n.counter!==void 0;if(l.hideBottomSpace===!0&&ue===!1&&k===void 0)return;const c=t.h("div",{key:z,class:"q-field__messages col"},k);return t.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(l.hideBottomSpace!==!0?"animated":"stale"),onClick:f.prevent},[l.hideBottomSpace===!0?c:t.h(t.Transition,{name:"q-transition--field-message"},()=>c),ue===!0?t.h("div",{class:"q-field__counter"},n.counter!==void 0?n.counter():e.computedCounter.value):null])}function U(k,z){return z===null?null:t.h("div",{key:k,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},z)}let ne=!1;return t.onDeactivated(()=>{ne=!0}),t.onActivated(()=>{ne===!0&&l.autofocus===!0&&i.focus()}),l.autofocus===!0&&t.onMounted(()=>{i.focus()}),t.onBeforeUnmount(()=>{v!==null&&clearTimeout(v)}),Object.assign(i,{focus:F,blur:P}),function(){const z=e.getControl===void 0&&n.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0,...$.value}:$.value;return t.h(e.tag.value,{ref:e.rootRef,class:[S.value,r.class],style:r.style,...z},[n.before!==void 0?t.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:f.prevent},n.before()):null,t.h("div",{class:"q-field__inner relative-position col self-stretch"},[t.h("div",{ref:e.controlRef,class:H.value,tabindex:-1,...e.controlEvents},K()),m.value===!0?ee():null]),n.after!==void 0?t.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:f.prevent},n.after()):null])}}const io=f.createComponent({name:"QField",inheritAttrs:!1,props:{...pt,tag:{type:String,default:"label"}},emits:rl,setup(){return cl(sl({tagProp:!0}))}}),ao={xs:8,sm:10,md:14,lg:20,xl:24},ro=f.createComponent({name:"QChip",props:{...Me,...f.useSizeProps,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(e,{slots:l,emit:o}){const{proxy:{$q:n}}=t.getCurrentInstance(),r=Oe(e,n),i=f.useSize(e,ao),a=t.computed(()=>e.selected===!0||e.icon!==void 0),v=t.computed(()=>e.selected===!0?e.iconSelected||n.iconSet.chip.selected:e.icon),h=t.computed(()=>e.iconRemove||n.iconSet.chip.remove),g=t.computed(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),d=t.computed(()=>{const S=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}`:"")+(S?` text-${S} 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":"")+(g.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square===!0?" q-chip--square":"")+(r.value===!0?" q-chip--dark q-dark":"")}),y=t.computed(()=>{const S=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},H={...S,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||n.lang.label.remove};return{chip:S,remove:H}});function x(S){S.keyCode===13&&s(S)}function s(S){e.disable||(o("update:selected",!e.selected),o("click",S))}function m(S){(S.keyCode===void 0||S.keyCode===13)&&(f.stopAndPrevent(S),e.disable===!1&&(o("update:modelValue",!1),o("remove")))}function _(){const S=[];g.value===!0&&S.push(t.h("div",{class:"q-focus-helper"})),a.value===!0&&S.push(t.h(f.QIcon,{class:"q-chip__icon q-chip__icon--left",name:v.value}));const H=e.label!==void 0?[t.h("div",{class:"ellipsis"},[e.label])]:void 0;return S.push(t.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},f.hMergeSlotSafely(l.default,H))),e.iconRight&&S.push(t.h(f.QIcon,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&S.push(t.h(f.QIcon,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:h.value,...y.value.remove,onClick:m,onKeyup:m})),S}return()=>{if(e.modelValue===!1)return;const S={class:d.value,style:i.value};return g.value===!0&&Object.assign(S,y.value.chip,{onClick:s,onKeyup:x}),f.hDir("div",S,_(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[f.Ripple,e.ripple]])}}});function so(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),Y.Platform.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const co={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},fo={...co,contextMenu:Boolean};function vo({showing:e,avoidEmit:l,configureAnchorEl:o}){const{props:n,proxy:r,emit:i}=t.getCurrentInstance(),a=t.ref(null);let v=null;function h(s){return a.value===null?!1:s===void 0||s.touches===void 0||s.touches.length<=1}const g={};o===void 0&&(Object.assign(g,{hide(s){r.hide(s)},toggle(s){r.toggle(s),s.qAnchorHandled=!0},toggleKey(s){f.isKeyCode(s,13)===!0&&g.toggle(s)},contextClick(s){r.hide(s),f.prevent(s),t.nextTick(()=>{r.show(s),s.qAnchorHandled=!0})},prevent:f.prevent,mobileTouch(s){if(g.mobileCleanup(s),h(s)!==!0)return;r.hide(s),a.value.classList.add("non-selectable");const m=s.target;f.addEvt(g,"anchor",[[m,"touchmove","mobileCleanup","passive"],[m,"touchend","mobileCleanup","passive"],[m,"touchcancel","mobileCleanup","passive"],[a.value,"contextmenu","prevent","notPassive"]]),v=setTimeout(()=>{v=null,r.show(s),s.qAnchorHandled=!0},300)},mobileCleanup(s){a.value.classList.remove("non-selectable"),v!==null&&(clearTimeout(v),v=null),e.value===!0&&s!==void 0&&so()}}),o=function(s=n.contextMenu){if(n.noParentEvent===!0||a.value===null)return;let m;s===!0?r.$q.platform.is.mobile===!0?m=[[a.value,"touchstart","mobileTouch","passive"]]:m=[[a.value,"mousedown","hide","passive"],[a.value,"contextmenu","contextClick","notPassive"]]:m=[[a.value,"click","toggle","passive"],[a.value,"keyup","toggleKey","passive"]],f.addEvt(g,"anchor",m)});function d(){f.cleanEvt(g,"anchor")}function y(s){for(a.value=s;a.value.classList.contains("q-anchor--skip");)a.value=a.value.parentNode;o()}function x(){if(n.target===!1||n.target===""||r.$el.parentNode===null)a.value=null;else if(n.target===!0)y(r.$el.parentNode);else{let s=n.target;if(typeof n.target=="string")try{s=document.querySelector(n.target)}catch{s=void 0}s!=null?(a.value=s.$el||s,o()):(a.value=null,console.error(`Anchor: target "${n.target}" not found`))}}return t.watch(()=>n.contextMenu,s=>{a.value!==null&&(d(),o(s))}),t.watch(()=>n.target,()=>{a.value!==null&&d(),x()}),t.watch(()=>n.noParentEvent,s=>{a.value!==null&&(s===!0?d():o())}),t.onMounted(()=>{x(),l!==!0&&n.modelValue===!0&&a.value===null&&i("update:modelValue",!1)}),t.onBeforeUnmount(()=>{v!==null&&clearTimeout(v),d()}),{anchorEl:a,canShow:h,anchorEvents:g}}function mo(e,l){const o=t.ref(null);let n;function r(v,h){const g=`${h!==void 0?"add":"remove"}EventListener`,d=h!==void 0?h:n;v!==window&&v[g]("scroll",d,f.listenOpts.passive),window[g]("scroll",d,f.listenOpts.passive),n=h}function i(){o.value!==null&&(r(o.value),o.value=null)}const a=t.watch(()=>e.noParentEvent,()=>{o.value!==null&&(i(),l())});return t.onBeforeUnmount(a),{localScrollTarget:o,unconfigureScrollTarget:i,changeScrollEvent:r}}const dl={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},fl=["beforeShow","show","beforeHide","hide"];function vl({showing:e,canShow:l,hideOnRouteChange:o,handleShow:n,handleHide:r,processOnMount:i}){const a=t.getCurrentInstance(),{props:v,emit:h,proxy:g}=a;let d;function y(B){e.value===!0?m(B):x(B)}function x(B){if(v.disable===!0||B!==void 0&&B.qAnchorHandled===!0||l!==void 0&&l(B)!==!0)return;const q=v["onUpdate:modelValue"]!==void 0;q===!0&&(h("update:modelValue",!0),d=B,t.nextTick(()=>{d===B&&(d=void 0)})),(v.modelValue===null||q===!1)&&s(B)}function s(B){e.value!==!0&&(e.value=!0,h("beforeShow",B),n!==void 0?n(B):h("show",B))}function m(B){if(v.disable===!0)return;const q=v["onUpdate:modelValue"]!==void 0;q===!0&&(h("update:modelValue",!1),d=B,t.nextTick(()=>{d===B&&(d=void 0)})),(v.modelValue===null||q===!1)&&_(B)}function _(B){e.value!==!1&&(e.value=!1,h("beforeHide",B),r!==void 0?r(B):h("hide",B))}function S(B){v.disable===!0&&B===!0?v["onUpdate:modelValue"]!==void 0&&h("update:modelValue",!1):B===!0!==e.value&&(B===!0?s:_)(d)}t.watch(()=>v.modelValue,S),o!==void 0&&f.vmHasRouter(a)===!0&&t.watch(()=>g.$route.fullPath,()=>{o.value===!0&&e.value===!0&&m()}),t.onMounted(()=>{S(v.modelValue)});const H={show:x,hide:m,toggle:y};return Object.assign(g,H),H}const Ht={};let ho=1,go=document.body;function po(e,l){const o=document.createElement("div");if(o.id=l!==void 0?`q-portal--${l}--${ho++}`:e,Ht.globalNodes!==void 0){const n=Ht.globalNodes.class;n!==void 0&&(o.className=n)}return go.appendChild(o),o}function bo(e){e.remove()}const ze=[];function yo(e,l){do{if(e.$options.name==="QMenu"){if(e.hide(l),e.$props.separateClosePopup===!0)return f.getParentProxy(e)}else if(e.__qPortal===!0){const o=f.getParentProxy(e);return o!==void 0&&o.$options.name==="QPopupProxy"?(e.hide(l),o):e}e=f.getParentProxy(e)}while(e!=null)}const So=f.createComponent({name:"QPortal",setup(e,{slots:l}){return()=>l.default()}});function wo(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 ml(e,l,o,n){const r=t.ref(!1),i=t.ref(!1);let a=null;const v={},h=n==="dialog"&&wo(e);function g(y){if(y===!0){Lt(v),i.value=!0;return}i.value=!1,r.value===!1&&(h===!1&&a===null&&(a=po(!1,n)),r.value=!0,ze.push(e.proxy),oo(v))}function d(y){if(i.value=!1,y!==!0)return;Lt(v),r.value=!1;const x=ze.indexOf(e.proxy);x!==-1&&ze.splice(x,1),a!==null&&(bo(a),a=null)}return t.onUnmounted(()=>{d(!0)}),e.proxy.__qPortal=!0,Y.injectProp(e.proxy,"contentEl",()=>l.value),{showPortal:g,hidePortal:d,portalIsActive:r,portalIsAccessible:i,renderPortal:()=>h===!0?o():r.value===!0?[t.h(t.Teleport,{to:a},t.h(So,o))]:void 0}}const hl={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function gl(e,l=()=>{},o=()=>{}){return{transitionProps:t.computed(()=>{const n=`q-transition--${e.transitionShow||l()}`,r=`q-transition--${e.transitionHide||o()}`;return{appear:!0,enterFromClass:`${n}-enter-from`,enterActiveClass:`${n}-enter-active`,enterToClass:`${n}-enter-to`,leaveFromClass:`${r}-leave-from`,leaveActiveClass:`${r}-leave-active`,leaveToClass:`${r}-leave-to`}}),transitionStyle:t.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function pl(){let e;const l=t.getCurrentInstance();function o(){e=void 0}return t.onDeactivated(o),t.onBeforeUnmount(o),{removeTick:o,registerTick(n){e=n,t.nextTick(()=>{e===n&&(f.vmIsDestroyed(l)===!1&&e(),e=void 0)})}}}function bl(){let e=null;const l=t.getCurrentInstance();function o(){e!==null&&(clearTimeout(e),e=null)}return t.onDeactivated(o),t.onBeforeUnmount(o),{removeTimeout:o,registerTimeout(n,r){o(),f.vmIsDestroyed(l)===!1&&(e=setTimeout(()=>{e=null,n()},r))}}}const Co=[Element,String],xo=[null,document,document.body,document.scrollingElement,document.documentElement];function ko(e,l){let o=f.getElement(l);if(o===void 0){if(e==null)return window;o=e.closest(".scroll,.scroll-y,.overflow-auto")}return xo.includes(o)?window:o}function qo(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function Vo(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let Ke;function _o(){if(Ke!==void 0)return Ke;const e=document.createElement("p"),l=document.createElement("div");f.css(e,{width:"100%",height:"200px"}),f.css(l,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),l.appendChild(e),document.body.appendChild(l);const o=e.offsetWidth;l.style.overflow="scroll";let n=e.offsetWidth;return o===n&&(n=l.clientWidth),l.remove(),Ke=o-n,Ke}function Bo(e,l=!0){return!e||e.nodeType!==Node.ELEMENT_NODE?!1:l?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"]))}const pe=[];let _e;function Eo(e){_e=e.keyCode===27}function Ao(){_e===!0&&(_e=!1)}function To(e){_e===!0&&(_e=!1,f.isKeyCode(e,27)===!0&&pe[pe.length-1](e))}function yl(e){window[e]("keydown",Eo),window[e]("blur",Ao),window[e]("keyup",To),_e=!1}function Sl(e){Y.client.is.desktop===!0&&(pe.push(e),pe.length===1&&yl("addEventListener"))}function Ye(e){const l=pe.indexOf(e);l!==-1&&(pe.splice(l,1),pe.length===0&&yl("removeEventListener"))}const{notPassiveCapture:Ge}=f.listenOpts,be=[];function Ze(e){const l=e.target;if(l===void 0||l.nodeType===8||l.classList.contains("no-pointer-events")===!0)return;let o=ze.length-1;for(;o>=0;){const n=ze[o].$;if(n.type.name==="QTooltip"){o--;continue}if(n.type.name!=="QDialog")break;if(n.props.seamless!==!0)return;o--}for(let n=be.length-1;n>=0;n--){const r=be[n];if((r.anchorEl.value===null||r.anchorEl.value.contains(l)===!1)&&(l===document.body||r.innerRef.value!==null&&r.innerRef.value.contains(l)===!1))e.qClickOutside=!0,r.onClickOutside(e);else return}}function Ro(e){be.push(e),be.length===1&&(document.addEventListener("mousedown",Ze,Ge),document.addEventListener("touchstart",Ze,Ge))}function $t(e){const l=be.findIndex(o=>o===e);l!==-1&&(be.splice(l,1),be.length===0&&(document.removeEventListener("mousedown",Ze,Ge),document.removeEventListener("touchstart",Ze,Ge)))}let Dt,Nt;function Wt(e){const l=e.split(" ");return l.length!==2?!1:["top","center","bottom"].includes(l[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(l[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function Io(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const ht={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{ht[`${e}#ltr`]=e,ht[`${e}#rtl`]=e});function jt(e,l){const o=e.split(" ");return{vertical:o[0],horizontal:ht[`${o[1]}#${l===!0?"rtl":"ltr"}`]}}function zo(e,l){let{top:o,left:n,right:r,bottom:i,width:a,height:v}=e.getBoundingClientRect();return l!==void 0&&(o-=l[1],n-=l[0],i+=l[1],r+=l[0],a+=l[0],v+=l[1]),{top:o,bottom:i,height:v,left:n,right:r,width:a,middle:n+(r-n)/2,center:o+(i-o)/2}}function Fo(e,l,o){let{top:n,left:r}=e.getBoundingClientRect();return n+=l.top,r+=l.left,o!==void 0&&(n+=o[1],r+=o[0]),{top:n,bottom:n+1,height:1,left:r,right:r+1,width:1,middle:r,center:n}}function Mo(e,l){return{top:0,center:l/2,bottom:l,left:0,middle:e/2,right:e}}function Kt(e,l,o,n){return{top:e[o.vertical]-l[n.vertical],left:e[o.horizontal]-l[n.horizontal]}}function wl(e,l=0){if(e.targetEl===null||e.anchorEl===null||l>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{wl(e,l+1)},10);return}const{targetEl:o,offset:n,anchorEl:r,anchorOrigin:i,selfOrigin:a,absoluteOffset:v,fit:h,cover:g,maxHeight:d,maxWidth:y}=e;if(Y.client.is.ios===!0&&window.visualViewport!==void 0){const E=document.body.style,{offsetLeft:F,offsetTop:P}=window.visualViewport;F!==Dt&&(E.setProperty("--q-pe-left",F+"px"),Dt=F),P!==Nt&&(E.setProperty("--q-pe-top",P+"px"),Nt=P)}const{scrollLeft:x,scrollTop:s}=o,m=v===void 0?zo(r,g===!0?[0,0]:n):Fo(r,v,n);Object.assign(o.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:y,maxHeight:d,visibility:"visible"});const{offsetWidth:_,offsetHeight:S}=o,{elWidth:H,elHeight:B}=h===!0||g===!0?{elWidth:Math.max(m.width,_),elHeight:g===!0?Math.max(m.height,S):S}:{elWidth:_,elHeight:S};let q={maxWidth:y,maxHeight:d};(h===!0||g===!0)&&(q.minWidth=m.width+"px",g===!0&&(q.minHeight=m.height+"px")),Object.assign(o.style,q);const T=Mo(H,B);let $=Kt(m,T,i,a);if(v===void 0||n===void 0)at($,m,T,i,a);else{const{top:E,left:F}=$;at($,m,T,i,a);let P=!1;if($.top!==E){P=!0;const j=2*n[1];m.center=m.top-=j,m.bottom-=j+2}if($.left!==F){P=!0;const j=2*n[0];m.middle=m.left-=j,m.right-=j+2}P===!0&&($=Kt(m,T,i,a),at($,m,T,i,a))}q={top:$.top+"px",left:$.left+"px"},$.maxHeight!==void 0&&(q.maxHeight=$.maxHeight+"px",m.height>$.maxHeight&&(q.minHeight=q.maxHeight)),$.maxWidth!==void 0&&(q.maxWidth=$.maxWidth+"px",m.width>$.maxWidth&&(q.minWidth=q.maxWidth)),Object.assign(o.style,q),o.scrollTop!==s&&(o.scrollTop=s),o.scrollLeft!==x&&(o.scrollLeft=x)}function at(e,l,o,n,r){const i=o.bottom,a=o.right,v=_o(),h=window.innerHeight-v,g=document.body.clientWidth;if(e.top<0||e.top+i>h)if(r.vertical==="center")e.top=l[n.vertical]>h/2?Math.max(0,h-i):0,e.maxHeight=Math.min(i,h);else if(l[n.vertical]>h/2){const d=Math.min(h,n.vertical==="center"?l.center:n.vertical===r.vertical?l.bottom:l.top);e.maxHeight=Math.min(i,d),e.top=Math.max(0,d-i)}else e.top=Math.max(0,n.vertical==="center"?l.center:n.vertical===r.vertical?l.top:l.bottom),e.maxHeight=Math.min(i,h-e.top);if(e.left<0||e.left+a>g)if(e.maxWidth=Math.min(a,g),r.horizontal==="middle")e.left=l[n.horizontal]>g/2?Math.max(0,g-a):0;else if(l[n.horizontal]>g/2){const d=Math.min(g,n.horizontal==="middle"?l.middle:n.horizontal===r.horizontal?l.right:l.left);e.maxWidth=Math.min(a,d),e.left=Math.max(0,d-e.maxWidth)}else e.left=Math.max(0,n.horizontal==="middle"?l.middle:n.horizontal===r.horizontal?l.left:l.right),e.maxWidth=Math.min(a,g-e.left)}const Oo=f.createComponent({name:"QMenu",inheritAttrs:!1,props:{...fo,...dl,...Me,...hl,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Wt},self:{type:String,validator:Wt},offset:{type:Array,validator:Io},scrollTarget:Co,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...fl,"click","escapeKey"],setup(e,{slots:l,emit:o,attrs:n}){let r=null,i,a,v;const h=t.getCurrentInstance(),{proxy:g}=h,{$q:d}=g,y=t.ref(null),x=t.ref(!1),s=t.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),m=Oe(e,d),{registerTick:_,removeTick:S}=pl(),{registerTimeout:H}=bl(),{transitionProps:B,transitionStyle:q}=gl(e),{localScrollTarget:T,changeScrollEvent:$,unconfigureScrollTarget:E}=mo(e,M),{anchorEl:F,canShow:P}=vo({showing:x}),{hide:j}=vl({showing:x,canShow:P,handleShow:ue,handleHide:c,hideOnRouteChange:s,processOnMount:!0}),{showPortal:X,hidePortal:te,renderPortal:A}=ml(h,y,W,"menu"),K={anchorEl:F,innerRef:y,onClickOutside(b){if(e.persistent!==!0&&x.value===!0)return j(b),(b.type==="touchstart"||b.target.classList.contains("q-dialog__backdrop"))&&f.stopAndPrevent(b),!0}},le=t.computed(()=>jt(e.anchor||(e.cover===!0?"center middle":"bottom start"),d.lang.rtl)),ee=t.computed(()=>e.cover===!0?le.value:jt(e.self||"top start",d.lang.rtl)),U=t.computed(()=>(e.square===!0?" q-menu--square":"")+(m.value===!0?" q-menu--dark q-dark":"")),ne=t.computed(()=>e.autoClose===!0?{onClick:V}:{}),k=t.computed(()=>x.value===!0&&e.persistent!==!0);t.watch(k,b=>{b===!0?(Sl(I),Ro(K)):(Ye(I),$t(K))});function z(){gt(()=>{let b=y.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 ue(b){if(r=e.noRefocus===!1?document.activeElement:null,Y.addFocusout(O),X(),M(),i=void 0,b!==void 0&&(e.touchPosition||e.contextMenu)){const G=f.position(b);if(G.left!==void 0){const{top:ae,left:ye}=F.value.getBoundingClientRect();i={left:G.left-ye,top:G.top-ae}}}a===void 0&&(a=t.watch(()=>d.screen.width+"|"+d.screen.height+"|"+e.self+"|"+e.anchor+"|"+d.lang.rtl,R)),e.noFocus!==!0&&document.activeElement.blur(),_(()=>{R(),e.noFocus!==!0&&z()}),H(()=>{d.platform.is.ios===!0&&(v=e.autoClose,y.value.click()),R(),X(!0),o("show",b)},e.transitionDuration)}function c(b){S(),te(),p(!0),r!==null&&(b===void 0||b.qClickOutside!==!0)&&(((b&&b.type.indexOf("key")===0?r.closest('[tabindex]:not([tabindex^="-"])'):void 0)||r).focus(),r=null),H(()=>{te(!0),o("hide",b)},e.transitionDuration)}function p(b){i=void 0,a!==void 0&&(a(),a=void 0),(b===!0||x.value===!0)&&(Y.removeFocusout(O),E(),$t(K),Ye(I)),b!==!0&&(r=null)}function M(){(F.value!==null||e.scrollTarget!==void 0)&&(T.value=ko(F.value,e.scrollTarget),$(T.value,R))}function V(b){v!==!0?(yo(g,b),o("click",b)):v=!1}function O(b){k.value===!0&&e.noFocus!==!0&&f.childHasFocus(y.value,b.target)!==!0&&z()}function I(b){o("escapeKey"),j(b)}function R(){wl({targetEl:y.value,offset:e.offset,anchorEl:F.value,anchorOrigin:le.value,selfOrigin:ee.value,absoluteOffset:i,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function W(){return t.h(t.Transition,B.value,()=>x.value===!0?t.h("div",{role:"menu",...n,ref:y,tabindex:-1,class:["q-menu q-position-engine scroll"+U.value,n.class],style:[n.style,q.value],...ne.value},f.hSlot(l.default)):null)}return t.onBeforeUnmount(p),Object.assign(g,{focus:z,updatePosition:R}),A}});function Po(e,l,o){function n(){}return t.onBeforeUnmount(()=>{e.value===!0&&void 0}),{removeFromHistory:n,addToHistory(){}}}let Te=0,rt,st,Ie,ct=!1,Ut,Qt,Xt,he=null;function Lo(e){Ho(e)&&f.stopAndPrevent(e)}function Ho(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const l=f.getEventPath(e),o=e.shiftKey&&!e.deltaX,n=!o&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),r=o||n?e.deltaY:e.deltaX;for(let i=0;i<l.length;i++){const a=l[i];if(Bo(a,n))return n?r<0&&a.scrollTop===0?!0:r>0&&a.scrollTop+a.clientHeight===a.scrollHeight:r<0&&a.scrollLeft===0?!0:r>0&&a.scrollLeft+a.clientWidth===a.scrollWidth}return!0}function Yt(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Ue(e){ct!==!0&&(ct=!0,requestAnimationFrame(()=>{ct=!1;const{height:l}=e.target,{clientHeight:o,scrollTop:n}=document.scrollingElement;(Ie===void 0||l!==window.innerHeight)&&(Ie=o-l,document.scrollingElement.scrollTop=n),n>Ie&&(document.scrollingElement.scrollTop-=Math.ceil((n-Ie)/8))}))}function Gt(e){const l=document.body,o=window.visualViewport!==void 0;if(e==="add"){const{overflowY:n,overflowX:r}=window.getComputedStyle(l);rt=Vo(window),st=qo(window),Ut=l.style.left,Qt=l.style.top,Xt=window.location.href,l.style.left=`-${rt}px`,l.style.top=`-${st}px`,r!=="hidden"&&(r==="scroll"||l.scrollWidth>window.innerWidth)&&l.classList.add("q-body--force-scrollbar-x"),n!=="hidden"&&(n==="scroll"||l.scrollHeight>window.innerHeight)&&l.classList.add("q-body--force-scrollbar-y"),l.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,Y.client.is.ios===!0&&(o===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",Ue,f.listenOpts.passiveCapture),window.visualViewport.addEventListener("scroll",Ue,f.listenOpts.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Yt,f.listenOpts.passiveCapture))}Y.client.is.desktop===!0&&Y.client.is.mac===!0&&window[`${e}EventListener`]("wheel",Lo,f.listenOpts.notPassive),e==="remove"&&(Y.client.is.ios===!0&&(o===!0?(window.visualViewport.removeEventListener("resize",Ue,f.listenOpts.passiveCapture),window.visualViewport.removeEventListener("scroll",Ue,f.listenOpts.passiveCapture)):window.removeEventListener("scroll",Yt,f.listenOpts.passiveCapture)),l.classList.remove("q-body--prevent-scroll"),l.classList.remove("q-body--force-scrollbar-x"),l.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,l.style.left=Ut,l.style.top=Qt,window.location.href===Xt&&window.scrollTo(rt,st),Ie=void 0)}function $o(e){let l="add";if(e===!0){if(Te++,he!==null){clearTimeout(he),he=null;return}if(Te>1)return}else{if(Te===0||(Te--,Te>0))return;if(l="remove",Y.client.is.ios===!0&&Y.client.is.nativeMobile===!0){he!==null&&clearTimeout(he),he=setTimeout(()=>{Gt(l),he=null},100);return}}Gt(l)}function Do(){let e;return{preventBodyScroll(l){l!==e&&(e!==void 0||l===!0)&&(e=l,$o(l))}}}let Qe=0;const No={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"},Zt={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},Wo=f.createComponent({name:"QDialog",inheritAttrs:!1,props:{...dl,...hl,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:[...fl,"shake","click","escapeKey"],setup(e,{slots:l,emit:o,attrs:n}){const r=t.getCurrentInstance(),i=t.ref(null),a=t.ref(!1),v=t.ref(!1);let h=null,g=null,d,y;const x=t.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:s}=Do(),{registerTimeout:m}=bl(),{registerTick:_,removeTick:S}=pl(),{transitionProps:H,transitionStyle:B}=gl(e,()=>Zt[e.position][0],()=>Zt[e.position][1]),q=t.computed(()=>B.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:T,hidePortal:$,portalIsAccessible:E,renderPortal:F}=ml(r,i,M,"dialog"),{hide:P}=vl({showing:a,hideOnRouteChange:x,handleShow:K,handleHide:le,processOnMount:!0});Po(a);const j=t.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${No[e.position]}`+(v.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":"")),X=t.computed(()=>a.value===!0&&e.seamless!==!0),te=t.computed(()=>e.autoClose===!0?{onClick:ue}:{}),A=t.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${X.value===!0?"modal":"seamless"}`,n.class]);t.watch(()=>e.maximized,V=>{a.value===!0&&z(V)}),t.watch(X,V=>{s(V),V===!0?(Y.addFocusout(p),Sl(ne)):(Y.removeFocusout(p),Ye(ne))});function K(V){g=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,z(e.maximized),T(),v.value=!0,e.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),_(ee)):S(),m(()=>{if(r.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:O,bottom:I}=document.activeElement.getBoundingClientRect(),{innerHeight:R}=window,W=window.visualViewport!==void 0?window.visualViewport.height:R;O>0&&I>W/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-W,I>=R?1/0:Math.ceil(document.scrollingElement.scrollTop+I-W/2))),document.activeElement.scrollIntoView()}y=!0,i.value.click(),y=!1}T(!0),v.value=!1,o("show",V)},e.transitionDuration)}function le(V){S(),k(!0),v.value=!0,$(),g!==null&&(((V&&V.type.indexOf("key")===0?g.closest('[tabindex]:not([tabindex^="-"])'):void 0)||g).focus(),g=null),m(()=>{$(!0),v.value=!1,o("hide",V)},e.transitionDuration)}function ee(V){gt(()=>{let O=i.value;if(O!==null){if(V!==void 0){const I=O.querySelector(V);if(I!==null){I.focus({preventScroll:!0});return}}O.contains(document.activeElement)!==!0&&(O=O.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||O.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||O.querySelector("[autofocus], [data-autofocus]")||O,O.focus({preventScroll:!0}))}})}function U(V){V&&typeof V.focus=="function"?V.focus({preventScroll:!0}):ee(),o("shake");const O=i.value;O!==null&&(O.classList.remove("q-animate--scale"),O.classList.add("q-animate--scale"),h!==null&&clearTimeout(h),h=setTimeout(()=>{h=null,i.value!==null&&(O.classList.remove("q-animate--scale"),ee())},170))}function ne(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&U():(o("escapeKey"),P()))}function k(V){h!==null&&(clearTimeout(h),h=null),(V===!0||a.value===!0)&&(z(!1),e.seamless!==!0&&(s(!1),Y.removeFocusout(p),Ye(ne))),V!==!0&&(g=null)}function z(V){V===!0?d!==!0&&(Qe<1&&document.body.classList.add("q-body--dialog"),Qe++,d=!0):d===!0&&(Qe<2&&document.body.classList.remove("q-body--dialog"),Qe--,d=!1)}function ue(V){y!==!0&&(P(V),o("click",V))}function c(V){e.persistent!==!0&&e.noBackdropDismiss!==!0?P(V):e.noShake!==!0&&U()}function p(V){e.allowFocusOutside!==!0&&E.value===!0&&f.childHasFocus(i.value,V.target)!==!0&&ee('[tabindex]:not([tabindex="-1"])')}Object.assign(r.proxy,{focus:ee,shake:U,__updateRefocusTarget(V){g=V||null}}),t.onBeforeUnmount(k);function M(){return t.h("div",{role:"dialog","aria-modal":X.value===!0?"true":"false",...n,class:A.value},[t.h(t.Transition,{name:"q-transition--fade",appear:!0},()=>X.value===!0?t.h("div",{class:"q-dialog__backdrop fixed-full",style:q.value,"aria-hidden":"true",tabindex:-1,onClick:c}):null),t.h(t.Transition,H.value,()=>a.value===!0?t.h("div",{ref:i,class:j.value,style:B.value,tabindex:-1,...te.value},f.hSlot(l.default)):null)])}return F}});let Je=!1;{const e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});const l=document.createElement("div");Object.assign(l.style,{width:"1000px",height:"1px"}),document.body.appendChild(e),e.appendChild(l),e.scrollLeft=-1e3,Je=e.scrollLeft>=0,e.remove()}const ie=1e3,jo=["start","center","end","start-force","center-force","end-force"],Cl=Array.prototype.filter,Ko=window.getComputedStyle(document.body).overflowAnchor===void 0?f.noop:function(e,l){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;const o=e.children||[];Cl.call(o,r=>r.dataset&&r.dataset.qVsAnchor!==void 0).forEach(r=>{delete r.dataset.qVsAnchor});const n=o[l];n&&n.dataset&&(n.dataset.qVsAnchor="")}))};function Ve(e,l){return e+l}function dt(e,l,o,n,r,i,a,v){const h=e===window?document.scrollingElement||document.documentElement:e,g=r===!0?"offsetWidth":"offsetHeight",d={scrollStart:0,scrollViewSize:-a-v,scrollMaxSize:0,offsetStart:-a,offsetEnd:-v};if(r===!0?(e===window?(d.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,d.scrollViewSize+=document.documentElement.clientWidth):(d.scrollStart=h.scrollLeft,d.scrollViewSize+=h.clientWidth),d.scrollMaxSize=h.scrollWidth,i===!0&&(d.scrollStart=(Je===!0?d.scrollMaxSize-d.scrollViewSize:0)-d.scrollStart)):(e===window?(d.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,d.scrollViewSize+=document.documentElement.clientHeight):(d.scrollStart=h.scrollTop,d.scrollViewSize+=h.clientHeight),d.scrollMaxSize=h.scrollHeight),o!==null)for(let y=o.previousElementSibling;y!==null;y=y.previousElementSibling)y.classList.contains("q-virtual-scroll--skip")===!1&&(d.offsetStart+=y[g]);if(n!==null)for(let y=n.nextElementSibling;y!==null;y=y.nextElementSibling)y.classList.contains("q-virtual-scroll--skip")===!1&&(d.offsetEnd+=y[g]);if(l!==e){const y=h.getBoundingClientRect(),x=l.getBoundingClientRect();r===!0?(d.offsetStart+=x.left-y.left,d.offsetEnd-=x.width):(d.offsetStart+=x.top-y.top,d.offsetEnd-=x.height),e!==window&&(d.offsetStart+=d.scrollStart),d.offsetEnd+=d.scrollMaxSize-d.offsetStart}return d}function Jt(e,l,o,n){l==="end"&&(l=(e===window?document.body:e)[o===!0?"scrollWidth":"scrollHeight"]),e===window?o===!0?(n===!0&&(l=(Je===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-l),window.scrollTo(l,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,l):o===!0?(n===!0&&(l=(Je===!0?e.scrollWidth-e.offsetWidth:0)-l),e.scrollLeft=l):e.scrollTop=l}function Re(e,l,o,n){if(o>=n)return 0;const r=l.length,i=Math.floor(o/ie),a=Math.floor((n-1)/ie)+1;let v=e.slice(i,a).reduce(Ve,0);return o%ie!==0&&(v-=l.slice(i*ie,o).reduce(Ve,0)),n%ie!==0&&n!==r&&(v-=l.slice(n,a*ie).reduce(Ve,0)),v}const Uo={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]},el={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...Uo};function Qo({virtualScrollLength:e,getVirtualScrollTarget:l,getVirtualScrollEl:o,virtualScrollItemSizeComputed:n}){const r=t.getCurrentInstance(),{props:i,emit:a,proxy:v}=r,{$q:h}=v;let g,d,y,x=[],s;const m=t.ref(0),_=t.ref(0),S=t.ref({}),H=t.ref(null),B=t.ref(null),q=t.ref(null),T=t.ref({from:0,to:0}),$=t.computed(()=>i.tableColspan!==void 0?i.tableColspan:100);n===void 0&&(n=t.computed(()=>i.virtualScrollItemSize));const E=t.computed(()=>n.value+";"+i.virtualScrollHorizontal),F=t.computed(()=>E.value+";"+i.virtualScrollSliceRatioBefore+";"+i.virtualScrollSliceRatioAfter);t.watch(F,()=>{U()}),t.watch(E,P);function P(){ee(d,!0)}function j(c){ee(c===void 0?d:c)}function X(c,p){const M=l();if(M==null||M.nodeType===8)return;const V=dt(M,o(),H.value,B.value,i.virtualScrollHorizontal,h.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd);y!==V.scrollViewSize&&U(V.scrollViewSize),A(M,V,Math.min(e.value-1,Math.max(0,parseInt(c,10)||0)),0,jo.indexOf(p)!==-1?p:d!==-1&&c>d?"end":"start")}function te(){const c=l();if(c==null||c.nodeType===8)return;const p=dt(c,o(),H.value,B.value,i.virtualScrollHorizontal,h.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd),M=e.value-1,V=p.scrollMaxSize-p.offsetStart-p.offsetEnd-_.value;if(g===p.scrollStart)return;if(p.scrollMaxSize<=0){A(c,p,0,0);return}y!==p.scrollViewSize&&U(p.scrollViewSize),K(T.value.from);const O=Math.floor(p.scrollMaxSize-Math.max(p.scrollViewSize,p.offsetEnd)-Math.min(s[M],p.scrollViewSize/2));if(O>0&&Math.ceil(p.scrollStart)>=O){A(c,p,M,p.scrollMaxSize-p.offsetEnd-x.reduce(Ve,0));return}let I=0,R=p.scrollStart-p.offsetStart,W=R;if(R<=V&&R+p.scrollViewSize>=m.value)R-=m.value,I=T.value.from,W=R;else for(let b=0;R>=x[b]&&I<M;b++)R-=x[b],I+=ie;for(;R>0&&I<M;)R-=s[I],R>-p.scrollViewSize?(I++,W=R):W=s[I]+R;A(c,p,I,W)}function A(c,p,M,V,O){const I=typeof O=="string"&&O.indexOf("-force")!==-1,R=I===!0?O.replace("-force",""):O,W=R!==void 0?R:"start";let b=Math.max(0,M-S.value[W]),G=b+S.value.total;G>e.value&&(G=e.value,b=Math.max(0,G-S.value.total)),g=p.scrollStart;const ae=b!==T.value.from||G!==T.value.to;if(ae===!1&&R===void 0){k(M);return}const{activeElement:ye}=document,re=q.value;ae===!0&&re!==null&&re!==ye&&re.contains(ye)===!0&&(re.addEventListener("focusout",le),setTimeout(()=>{re!==null&&re.removeEventListener("focusout",le)})),Ko(re,M-b);const Pe=R!==void 0?s.slice(b,M).reduce(Ve,0):0;if(ae===!0){const de=G>=T.value.from&&b<=T.value.to?T.value.to:G;T.value={from:b,to:de},m.value=Re(x,s,0,b),_.value=Re(x,s,G,e.value),requestAnimationFrame(()=>{T.value.to!==G&&g===p.scrollStart&&(T.value={from:T.value.from,to:G},_.value=Re(x,s,G,e.value))})}requestAnimationFrame(()=>{if(g!==p.scrollStart)return;ae===!0&&K(b);const de=s.slice(b,M).reduce(Ve,0),fe=de+p.offsetStart+m.value,Le=fe+s[M];let Be=fe+V;if(R!==void 0){const et=de-Pe,Ee=p.scrollStart+et;Be=I!==!0&&Ee<fe&&Le<Ee+p.scrollViewSize?Ee:R==="end"?Le-p.scrollViewSize:fe-(R==="start"?0:Math.round((p.scrollViewSize-s[M])/2))}g=Be,Jt(c,Be,i.virtualScrollHorizontal,h.lang.rtl),k(M)})}function K(c){const p=q.value;if(p){const M=Cl.call(p.children,b=>b.classList&&b.classList.contains("q-virtual-scroll--skip")===!1),V=M.length,O=i.virtualScrollHorizontal===!0?b=>b.getBoundingClientRect().width:b=>b.offsetHeight;let I=c,R,W;for(let b=0;b<V;){for(R=O(M[b]),b++;b<V&&M[b].classList.contains("q-virtual-scroll--with-prev")===!0;)R+=O(M[b]),b++;W=R-s[I],W!==0&&(s[I]+=W,x[Math.floor(I/ie)]+=W),I++}}}function le(){q.value!==null&&q.value!==void 0&&q.value.focus()}function ee(c,p){const M=1*n.value;(p===!0||Array.isArray(s)===!1)&&(s=[]);const V=s.length;s.length=e.value;for(let I=e.value-1;I>=V;I--)s[I]=M;const O=Math.floor((e.value-1)/ie);x=[];for(let I=0;I<=O;I++){let R=0;const W=Math.min((I+1)*ie,e.value);for(let b=I*ie;b<W;b++)R+=s[b];x.push(R)}d=-1,g=void 0,m.value=Re(x,s,0,T.value.from),_.value=Re(x,s,T.value.to,e.value),c>=0?(K(T.value.from),t.nextTick(()=>{X(c)})):z()}function U(c){if(c===void 0&&typeof window<"u"){const R=l();R!=null&&R.nodeType!==8&&(c=dt(R,o(),H.value,B.value,i.virtualScrollHorizontal,h.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd).scrollViewSize)}y=c;const p=parseFloat(i.virtualScrollSliceRatioBefore)||0,M=parseFloat(i.virtualScrollSliceRatioAfter)||0,V=1+p+M,O=c===void 0||c<=0?1:Math.ceil(c/n.value),I=Math.max(1,O,Math.ceil((i.virtualScrollSliceSize>0?i.virtualScrollSliceSize:10)/V));S.value={total:Math.ceil(I*V),start:Math.ceil(I*p),center:Math.ceil(I*(.5+p)),end:Math.ceil(I*(1+p)),view:O}}function ne(c,p){const M=i.virtualScrollHorizontal===!0?"width":"height",V={["--q-virtual-scroll-item-"+M]:n.value+"px"};return[c==="tbody"?t.h(c,{class:"q-virtual-scroll__padding",key:"before",ref:H},[t.h("tr",[t.h("td",{style:{[M]:`${m.value}px`,...V},colspan:$.value})])]):t.h(c,{class:"q-virtual-scroll__padding",key:"before",ref:H,style:{[M]:`${m.value}px`,...V}}),t.h(c,{class:"q-virtual-scroll__content",key:"content",ref:q,tabindex:-1},p.flat()),c==="tbody"?t.h(c,{class:"q-virtual-scroll__padding",key:"after",ref:B},[t.h("tr",[t.h("td",{style:{[M]:`${_.value}px`,...V},colspan:$.value})])]):t.h(c,{class:"q-virtual-scroll__padding",key:"after",ref:B,style:{[M]:`${_.value}px`,...V}})]}function k(c){d!==c&&(i.onVirtualScroll!==void 0&&a("virtualScroll",{index:c,from:T.value.from,to:T.value.to-1,direction:c<d?"decrease":"increase",ref:v}),d=c)}U();const z=il(te,h.platform.is.ios===!0?120:35);t.onBeforeMount(()=>{U()});let ue=!1;return t.onDeactivated(()=>{ue=!0}),t.onActivated(()=>{if(ue!==!0)return;const c=l();g!==void 0&&c!==void 0&&c!==null&&c.nodeType!==8?Jt(c,g,i.virtualScrollHorizontal,h.lang.rtl):X(d)}),t.onBeforeUnmount(()=>{z.cancel()}),Object.assign(v,{scrollTo:X,reset:P,refresh:j}),{virtualScrollSliceRange:T,virtualScrollSliceSizeComputed:S,setVirtualScrollSize:U,onVirtualScrollEvt:z,localResetVirtualScroll:ee,padVirtualScroll:ne,scrollTo:X,reset:P,refresh:j}}const Xo=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,Yo=/[\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,Go=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,Zo=/[a-z0-9_ -]$/i;function Jo(e){return function(o){if(o.type==="compositionend"||o.type==="change"){if(o.target.qComposing!==!0)return;o.target.qComposing=!1,e(o)}else o.type==="compositionupdate"&&o.target.qComposing!==!0&&typeof o.data=="string"&&(Y.client.is.firefox===!0?Zo.test(o.data)===!1:Xo.test(o.data)===!0||Yo.test(o.data)===!0||Go.test(o.data)===!0)===!0&&(o.target.qComposing=!0)}}function ce(e,l){if(e===l)return!0;if(e!==null&&l!==null&&typeof e=="object"&&typeof l=="object"){if(e.constructor!==l.constructor)return!1;let o,n;if(e.constructor===Array){if(o=e.length,o!==l.length)return!1;for(n=o;n--!==0;)if(ce(e[n],l[n])!==!0)return!1;return!0}if(e.constructor===Map){if(e.size!==l.size)return!1;let i=e.entries();for(n=i.next();n.done!==!0;){if(l.has(n.value[0])!==!0)return!1;n=i.next()}for(i=e.entries(),n=i.next();n.done!==!0;){if(ce(n.value[1],l.get(n.value[0]))!==!0)return!1;n=i.next()}return!0}if(e.constructor===Set){if(e.size!==l.size)return!1;const i=e.entries();for(n=i.next();n.done!==!0;){if(l.has(n.value[0])!==!0)return!1;n=i.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(o=e.length,o!==l.length)return!1;for(n=o;n--!==0;)if(e[n]!==l[n])return!1;return!0}if(e.constructor===RegExp)return e.source===l.source&&e.flags===l.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===l.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===l.toString();const r=Object.keys(e).filter(i=>e[i]!==void 0);if(o=r.length,o!==Object.keys(l).filter(i=>l[i]!==void 0).length)return!1;for(n=o;n--!==0;){const i=r[n];if(ce(e[i],l[i])!==!0)return!1}return!0}return e!==e&&l!==l}function tl(e,l,o){if(o<=l)return l;const n=o-l+1;let r=l+(e-l)%n;return r<l&&(r=n+r),r===0?0:r}const ll=e=>["add","add-unique","toggle"].includes(e),en=".*+?^${}()|[]\\",tn=Object.keys(pt);function ft(e,l){if(typeof e=="function")return e;const o=e!==void 0?e:l;return n=>n!==null&&typeof n=="object"&&o in n?n[o]:n}const ln=f.createComponent({name:"QSelect",inheritAttrs:!1,props:{...el,...ol,...pt,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:ll},mapOptions:Boolean,emitValue:Boolean,disableTabSelection:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{type:String,validator:e=>["default","menu","dialog"].includes(e),default:"default"},virtualScrollItemSize:el.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...rl,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:l,emit:o}){const{proxy:n}=t.getCurrentInstance(),{$q:r}=n,i=t.ref(!1),a=t.ref(!1),v=t.ref(-1),h=t.ref(""),g=t.ref(!1),d=t.ref(!1);let y=null,x=null,s,m,_,S=null,H,B,q,T;const $=t.ref(null),E=t.ref(null),F=t.ref(null),P=t.ref(null),j=t.ref(null),X=$l(e),te=Jo(_t),A=t.computed(()=>Array.isArray(e.options)?e.options.length:0),K=t.computed(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:le,virtualScrollSliceSizeComputed:ee,localResetVirtualScroll:U,padVirtualScroll:ne,onVirtualScrollEvt:k,scrollTo:z,setVirtualScrollSize:ue}=Qo({virtualScrollLength:A,getVirtualScrollTarget:Vl,getVirtualScrollEl:qt,virtualScrollItemSizeComputed:K}),c=sl(),p=t.computed(()=>{const u=e.mapOptions===!0&&e.multiple!==!0,w=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 C=e.mapOptions===!0&&s!==void 0?s:[],L=w.map(N=>ql(N,C));return e.modelValue===null&&u===!0?L.filter(N=>N!==null):L}return w}),M=t.computed(()=>{const u={};return tn.forEach(w=>{const C=e[w];C!==void 0&&(u[w]=C)}),u}),V=t.computed(()=>e.optionsDark===null?c.isDark.value:e.optionsDark),O=t.computed(()=>mt(p.value)),I=t.computed(()=>{let u="q-field__input q-placeholder col";return e.hideSelected===!0||p.value.length===0?[u,e.inputClass]:(u+=" q-field__input--padding",e.inputClass===void 0?u:[u,e.inputClass])}),R=t.computed(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),W=t.computed(()=>A.value===0),b=t.computed(()=>p.value.map(u=>oe.value(u)).join(", ")),G=t.computed(()=>e.displayValue!==void 0?e.displayValue:b.value),ae=t.computed(()=>e.optionsHtml===!0?()=>!0:u=>u!=null&&u.html===!0),ye=t.computed(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||p.value.some(ae.value))),re=t.computed(()=>c.focused.value===!0?e.tabindex:-1),Pe=t.computed(()=>{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":i.value===!0?"true":"false","aria-controls":`${c.targetUid.value}_lb`};return v.value>=0&&(u["aria-activedescendant"]=`${c.targetUid.value}_${v.value}`),u}),de=t.computed(()=>({id:`${c.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),fe=t.computed(()=>p.value.map((u,w)=>({index:w,opt:u,html:ae.value(u),selected:!0,removeAtIndex:kl,toggleOption:ve,tabindex:re.value}))),Le=t.computed(()=>{if(A.value===0)return[];const{from:u,to:w}=le.value;return e.options.slice(u,w).map((C,L)=>{const N=Se.value(C)===!0,D=lt(C)===!0,Z=u+L,Q={clickable:!0,active:D,activeClass:Ee.value,manualFocus:!0,focused:!1,disable:N,tabindex:-1,dense:e.optionsDense,dark:V.value,role:"option","aria-selected":D===!0?"true":"false",id:`${c.targetUid.value}_${Z}`,onClick:()=>{ve(C)}};return N!==!0&&(v.value===Z&&(Q.focused=!0),r.platform.is.desktop===!0&&(Q.onMousemove=()=>{i.value===!0&&we(Z)})),{index:Z,opt:C,html:ae.value(C),label:oe.value(C),selected:Q.active,focused:Q.focused,toggleOption:ve,setOptionIndex:we,itemProps:Q}})}),Be=t.computed(()=>e.dropdownIcon!==void 0?e.dropdownIcon:r.iconSet.arrow.dropdown),et=t.computed(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),Ee=t.computed(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),se=t.computed(()=>ft(e.optionValue,"value")),oe=t.computed(()=>ft(e.optionLabel,"label")),Se=t.computed(()=>ft(e.optionDisable,"disable")),He=t.computed(()=>p.value.map(se.value)),xl=t.computed(()=>{const u={onInput:_t,onChange:te,onKeydown:kt,onKeyup:Ct,onKeypress:xt,onFocus:St,onClick(w){m===!0&&f.stop(w)}};return u.onCompositionstart=u.onCompositionupdate=u.onCompositionend=te,u});t.watch(p,u=>{s=u,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&c.innerLoading.value!==!0&&(a.value!==!0&&i.value!==!0||O.value!==!0)&&(_!==!0&&qe(),(a.value===!0||i.value===!0)&&Ce(""))},{immediate:!0}),t.watch(()=>e.fillInput,qe),t.watch(i,ot),t.watch(A,Pl);function bt(u){return e.emitValue===!0?se.value(u):u}function tt(u){if(u!==-1&&u<p.value.length)if(e.multiple===!0){const w=e.modelValue.slice();o("remove",{index:u,value:w.splice(u,1)[0]}),o("update:modelValue",w)}else o("update:modelValue",null)}function kl(u){tt(u),c.focus()}function yt(u,w){const C=bt(u);if(e.multiple!==!0){e.fillInput===!0&&Ae(oe.value(u),!0,!0),o("update:modelValue",C);return}if(p.value.length===0){o("add",{index:0,value:C}),o("update:modelValue",e.multiple===!0?[C]:C);return}if(w===!0&&lt(u)===!0||e.maxValues!==void 0&&e.modelValue.length>=e.maxValues)return;const L=e.modelValue.slice();o("add",{index:L.length,value:C}),L.push(C),o("update:modelValue",L)}function ve(u,w){if(c.editable.value!==!0||u===void 0||Se.value(u)===!0)return;const C=se.value(u);if(e.multiple!==!0){w!==!0&&(Ae(e.fillInput===!0?oe.value(u):"",!0,!0),me()),E.value!==null&&E.value.focus(),(p.value.length===0||ce(se.value(p.value[0]),C)!==!0)&&o("update:modelValue",e.emitValue===!0?C:u);return}if((m!==!0||g.value===!0)&&c.focus(),St(),p.value.length===0){const D=e.emitValue===!0?C:u;o("add",{index:0,value:D}),o("update:modelValue",e.multiple===!0?[D]:D);return}const L=e.modelValue.slice(),N=He.value.findIndex(D=>ce(D,C));if(N!==-1)o("remove",{index:N,value:L.splice(N,1)[0]});else{if(e.maxValues!==void 0&&L.length>=e.maxValues)return;const D=e.emitValue===!0?C:u;o("add",{index:L.length,value:D}),L.push(D)}o("update:modelValue",L)}function we(u){if(r.platform.is.desktop!==!0)return;const w=u!==-1&&u<A.value?u:-1;v.value!==w&&(v.value=w)}function $e(u=1,w){if(i.value===!0){let C=v.value;do C=tl(C+u,-1,A.value-1);while(C!==-1&&C!==v.value&&Se.value(e.options[C])===!0);v.value!==C&&(we(C),z(C),w!==!0&&e.useInput===!0&&e.fillInput===!0&&De(C>=0?oe.value(e.options[C]):H,!0))}}function ql(u,w){const C=L=>ce(se.value(L),u);return e.options.find(C)||w.find(C)||u}function lt(u){const w=se.value(u);return He.value.find(C=>ce(C,w))!==void 0}function St(u){e.useInput===!0&&E.value!==null&&(u===void 0||E.value===u.target&&u.target.value===b.value)&&E.value.select()}function wt(u){f.isKeyCode(u,27)===!0&&i.value===!0&&(f.stop(u),me(),qe()),o("keyup",u)}function Ct(u){const{value:w}=u.target;if(u.keyCode!==void 0){wt(u);return}if(u.target.value="",y!==null&&(clearTimeout(y),y=null),x!==null&&(clearTimeout(x),x=null),qe(),typeof w=="string"&&w.length!==0){const C=w.toLocaleLowerCase(),L=D=>{const Z=e.options.find(Q=>String(D.value(Q)).toLocaleLowerCase()===C);return Z===void 0?!1:(p.value.indexOf(Z)===-1?ve(Z):me(),!0)},N=D=>{L(se)!==!0&&D!==!0&&L(oe)!==!0&&Ce(w,!0,()=>N(!0))};N()}else c.clearValue(u)}function xt(u){o("keypress",u)}function kt(u){if(o("keydown",u),f.shouldIgnoreKey(u)===!0)return;const w=h.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),C=u.shiftKey!==!0&&e.disableTabSelection!==!0&&e.multiple!==!0&&(v.value!==-1||w===!0);if(u.keyCode===27){f.prevent(u);return}if(u.keyCode===9&&C===!1){xe();return}if(u.target===void 0||u.target.id!==c.targetUid.value||c.editable.value!==!0)return;if(u.keyCode===40&&c.innerLoading.value!==!0&&i.value===!1){f.stopAndPrevent(u),ke();return}if(u.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&h.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?tt(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&o("update:modelValue",null);return}(u.keyCode===35||u.keyCode===36)&&(typeof h.value!="string"||h.value.length===0)&&(f.stopAndPrevent(u),v.value=-1,$e(u.keyCode===36?1:-1,e.multiple)),(u.keyCode===33||u.keyCode===34)&&ee.value!==void 0&&(f.stopAndPrevent(u),v.value=Math.max(-1,Math.min(A.value,v.value+(u.keyCode===33?-1:1)*ee.value.view)),$e(u.keyCode===33?1:-1,e.multiple)),(u.keyCode===38||u.keyCode===40)&&(f.stopAndPrevent(u),$e(u.keyCode===38?-1:1,e.multiple));const L=A.value;if((q===void 0||T<Date.now())&&(q=""),L>0&&e.useInput!==!0&&u.key!==void 0&&u.key.length===1&&u.altKey===!1&&u.ctrlKey===!1&&u.metaKey===!1&&(u.keyCode!==32||q.length!==0)){i.value!==!0&&ke(u);const N=u.key.toLocaleLowerCase(),D=q.length===1&&q[0]===N;T=Date.now()+1500,D===!1&&(f.stopAndPrevent(u),q+=N);const Z=new RegExp("^"+q.split("").map(nt=>en.indexOf(nt)!==-1?"\\"+nt:nt).join(".*"),"i");let Q=v.value;if(D===!0||Q<0||Z.test(oe.value(e.options[Q]))!==!0)do Q=tl(Q+1,-1,L-1);while(Q!==v.value&&(Se.value(e.options[Q])===!0||Z.test(oe.value(e.options[Q]))!==!0));v.value!==Q&&t.nextTick(()=>{we(Q),z(Q),Q>=0&&e.useInput===!0&&e.fillInput===!0&&De(oe.value(e.options[Q]),!0)});return}if(!(u.keyCode!==13&&(u.keyCode!==32||e.useInput===!0||q!=="")&&(u.keyCode!==9||C===!1))){if(u.keyCode!==9&&f.stopAndPrevent(u),v.value!==-1&&v.value<L){ve(e.options[v.value]);return}if(w===!0){const N=(D,Z)=>{if(Z){if(ll(Z)!==!0)return}else Z=e.newValueMode;if(Ae("",e.multiple!==!0,!0),D==null)return;(Z==="toggle"?ve:yt)(D,Z==="add-unique"),e.multiple!==!0&&(E.value!==null&&E.value.focus(),me())};if(e.onNewValue!==void 0?o("newValue",h.value,N):N(h.value),e.multiple!==!0)return}i.value===!0?xe():c.innerLoading.value!==!0&&ke()}}function qt(){return m===!0?j.value:F.value!==null&&F.value.contentEl!==null?F.value.contentEl:void 0}function Vl(){return qt()}function _l(){return e.hideSelected===!0?[]:l["selected-item"]!==void 0?fe.value.map(u=>l["selected-item"](u)).slice():l.selected!==void 0?[].concat(l.selected()):e.useChips===!0?fe.value.map((u,w)=>t.h(ro,{key:"option-"+w,removable:c.editable.value===!0&&Se.value(u.opt)!==!0,dense:!0,textColor:e.color,tabindex:re.value,onRemove(){u.removeAtIndex(w)}},()=>t.h("span",{class:"ellipsis",[u.html===!0?"innerHTML":"textContent"]:oe.value(u.opt)}))):[t.h("span",{[ye.value===!0?"innerHTML":"textContent"]:G.value})]}function Vt(){if(W.value===!0)return l["no-option"]!==void 0?l["no-option"]({inputValue:h.value}):void 0;const u=l.option!==void 0?l.option:C=>t.h(ul,{key:C.index,...C.itemProps},()=>t.h(Xe,()=>t.h(nl,()=>t.h("span",{[C.html===!0?"innerHTML":"textContent"]:C.label}))));let w=ne("div",Le.value.map(u));return l["before-options"]!==void 0&&(w=l["before-options"]().concat(w)),f.hMergeSlot(l["after-options"],w)}function Bl(u,w){const C=w===!0?{...Pe.value,...c.splitAttrs.attributes.value}:void 0,L={ref:w===!0?E:void 0,key:"i_t",class:I.value,style:e.inputStyle,value:h.value!==void 0?h.value:"",type:"search",...C,id:w===!0?c.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,...xl.value};return u!==!0&&m===!0&&(Array.isArray(L.class)===!0?L.class=[...L.class,"no-pointer-events"]:L.class+=" no-pointer-events"),t.h("input",L)}function _t(u){y!==null&&(clearTimeout(y),y=null),x!==null&&(clearTimeout(x),x=null),!(u&&u.target&&u.target.qComposing===!0)&&(De(u.target.value||""),_=!0,H=h.value,c.focused.value!==!0&&(m!==!0||g.value===!0)&&c.focus(),e.onFilter!==void 0&&(y=setTimeout(()=>{y=null,Ce(h.value)},e.inputDebounce)))}function De(u,w){h.value!==u&&(h.value=u,w===!0||e.inputDebounce===0||e.inputDebounce==="0"?o("inputValue",u):x=setTimeout(()=>{x=null,o("inputValue",u)},e.inputDebounce))}function Ae(u,w,C){_=C!==!0,e.useInput===!0&&(De(u,!0),(w===!0||C!==!0)&&(H=u),w!==!0&&Ce(u))}function Ce(u,w,C){if(e.onFilter===void 0||w!==!0&&c.focused.value!==!0)return;c.innerLoading.value===!0?o("filterAbort"):(c.innerLoading.value=!0,d.value=!0),u!==""&&e.multiple!==!0&&p.value.length!==0&&_!==!0&&u===oe.value(p.value[0])&&(u="");const L=setTimeout(()=>{i.value===!0&&(i.value=!1)},10);S!==null&&clearTimeout(S),S=L,o("filter",u,(N,D)=>{(w===!0||c.focused.value===!0)&&S===L&&(clearTimeout(S),typeof N=="function"&&N(),d.value=!1,t.nextTick(()=>{c.innerLoading.value=!1,c.editable.value===!0&&(w===!0?i.value===!0&&me():i.value===!0?ot(!0):i.value=!0),typeof D=="function"&&t.nextTick(()=>{D(n)}),typeof C=="function"&&t.nextTick(()=>{C(n)})}))},()=>{c.focused.value===!0&&S===L&&(clearTimeout(S),c.innerLoading.value=!1,d.value=!1),i.value===!0&&(i.value=!1)})}function El(){return t.h(Oo,{ref:F,class:R.value,style:e.popupContentStyle,modelValue:i.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&W.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:V.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:et.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...de.value,onScrollPassive:k,onBeforeShow:Et,onBeforeHide:Al,onShow:Tl},Vt)}function Al(u){At(u),xe()}function Tl(){ue()}function Rl(u){f.stop(u),E.value!==null&&E.value.focus(),g.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function Il(u){f.stop(u),t.nextTick(()=>{g.value=!1})}function zl(){const u=[t.h(io,{class:`col-auto ${c.fieldClass.value}`,...M.value,for:c.targetUid.value,dark:V.value,square:!0,loading:d.value,itemAligned:!1,filled:!0,stackLabel:h.value.length!==0,...c.splitAttrs.listeners.value,onFocus:Rl,onBlur:Il},{...l,rawControl:()=>c.getControl(!0),before:void 0,after:void 0})];return i.value===!0&&u.push(t.h("div",{ref:j,class:R.value+" scroll",style:e.popupContentStyle,...de.value,onClick:f.prevent,onScrollPassive:k},Vt())),t.h(Wo,{ref:P,modelValue:a.value,position:e.useInput===!0?"top":void 0,transitionShow:B,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:Et,onBeforeHide:Fl,onHide:Ml,onShow:Ol},()=>t.h("div",{class:"q-select__dialog"+(V.value===!0?" q-select__dialog--dark q-dark":"")+(g.value===!0?" q-select__dialog--focused":"")},u))}function Fl(u){At(u),P.value!==null&&P.value.__updateRefocusTarget(c.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),c.focused.value=!1}function Ml(u){me(),c.focused.value===!1&&o("blur",u),qe()}function Ol(){const u=document.activeElement;(u===null||u.id!==c.targetUid.value)&&E.value!==null&&E.value!==u&&E.value.focus(),ue()}function xe(){a.value!==!0&&(v.value=-1,i.value===!0&&(i.value=!1),c.focused.value===!1&&(S!==null&&(clearTimeout(S),S=null),c.innerLoading.value===!0&&(o("filterAbort"),c.innerLoading.value=!1,d.value=!1)))}function ke(u){c.editable.value===!0&&(m===!0?(c.onControlFocusin(u),a.value=!0,t.nextTick(()=>{c.focus()})):c.focus(),e.onFilter!==void 0?Ce(h.value):(W.value!==!0||l["no-option"]!==void 0)&&(i.value=!0))}function me(){a.value=!1,xe()}function qe(){e.useInput===!0&&Ae(e.multiple!==!0&&e.fillInput===!0&&p.value.length!==0&&oe.value(p.value[0])||"",!0,!0)}function ot(u){let w=-1;if(u===!0){if(p.value.length!==0){const C=se.value(p.value[0]);w=e.options.findIndex(L=>ce(se.value(L),C))}U(w)}we(w)}function Pl(u,w){i.value===!0&&c.innerLoading.value===!1&&(U(-1,!0),t.nextTick(()=>{i.value===!0&&c.innerLoading.value===!1&&(u>w?U():ot(!0))}))}function Bt(){a.value===!1&&F.value!==null&&F.value.updatePosition()}function Et(u){u!==void 0&&f.stop(u),o("popupShow",u),c.hasPopupOpen=!0,c.onControlFocusin(u)}function At(u){u!==void 0&&f.stop(u),o("popupHide",u),c.hasPopupOpen=!1,c.onControlFocusout(u)}function Tt(){m=r.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?l["no-option"]!==void 0||e.onFilter!==void 0||W.value===!1:!0),B=r.platform.is.ios===!0&&m===!0&&e.useInput===!0?"fade":e.transitionShow}return t.onBeforeUpdate(Tt),t.onUpdated(Bt),Tt(),t.onBeforeUnmount(()=>{y!==null&&clearTimeout(y),x!==null&&clearTimeout(x)}),Object.assign(n,{showPopup:ke,hidePopup:me,removeAtIndex:tt,add:yt,toggleOption:ve,getOptionIndex:()=>v.value,setOptionIndex:we,moveOptionSelection:$e,filter:Ce,updateMenuPosition:Bt,updateInputValue:Ae,isOptionSelected:lt,getEmittingOptionValue:bt,isOptionDisabled:(...u)=>Se.value.apply(null,u)===!0,getOptionValue:(...u)=>se.value.apply(null,u),getOptionLabel:(...u)=>oe.value.apply(null,u)}),Object.assign(c,{innerValue:p,fieldClass:t.computed(()=>`q-select q-field--auto-height q-select--with${e.useInput!==!0?"out":""}-input q-select--with${e.useChips!==!0?"out":""}-chips q-select--${e.multiple===!0?"multiple":"single"}`),inputRef:$,targetRef:E,hasValue:O,showPopup:ke,floatingLabel:t.computed(()=>e.hideSelected!==!0&&O.value===!0||typeof h.value=="number"||h.value.length!==0||mt(e.displayValue)),getControlChild:()=>{if(c.editable.value!==!1&&(a.value===!0||W.value!==!0||l["no-option"]!==void 0))return m===!0?zl():El();c.hasPopupOpen===!0&&(c.hasPopupOpen=!1)},controlEvents:{onFocusin(u){c.onControlFocusin(u)},onFocusout(u){c.onControlFocusout(u,()=>{qe(),xe()})},onClick(u){if(f.prevent(u),m!==!0&&i.value===!0){xe(),E.value!==null&&E.value.focus();return}ke(u)}},getControl:u=>{const w=_l(),C=u===!0||a.value!==!0||m!==!0;if(e.useInput===!0)w.push(Bl(u,C));else if(c.editable.value===!0){const N=C===!0?Pe.value:void 0;w.push(t.h("input",{ref:C===!0?E:void 0,key:"d_t",class:"q-select__focus-target",id:C===!0?c.targetUid.value:void 0,value:G.value,readonly:!0,"data-autofocus":u===!0||e.autofocus===!0||void 0,...N,onKeydown:kt,onKeyup:wt,onKeypress:xt})),C===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&w.push(t.h("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:Ct}))}if(X.value!==void 0&&e.disable!==!0&&He.value.length!==0){const N=He.value.map(D=>t.h("option",{value:D,selected:!0}));w.push(t.h("select",{class:"hidden",name:X.value,multiple:e.multiple},N))}const L=e.useInput===!0||C!==!0?void 0:c.splitAttrs.attributes.value;return t.h("div",{class:"q-field__native row items-center",...L,...c.splitAttrs.listeners.value},w)},getInnerAppend:()=>e.loading!==!0&&d.value!==!0&&e.hideDropdownIcon!==!0?[t.h(f.QIcon,{class:"q-select__dropdown-icon"+(i.value===!0?" rotate-180":""),name:Be.value})]:null}),cl(c)}}),on={class:"app-select__amount"},nn=t.defineComponent({__name:"AppSelect",props:{modelValue:{},size:{default:f.SIZES.MD},options:{},multiple:{type:Boolean},label:{},placeholder:{},required:{type:Boolean},clearable:{type:Boolean},disabled:{type:Boolean},loading:{type:Boolean},filtering:{type:Boolean},autofocus:{type:Boolean},rules:{},lazyRules:{type:[Boolean,String]},menuClass:{}},emits:["update:modelValue"],setup(e,{emit:l}){const o=e,n=l,r=t.ref(!1),i=t.ref(""),a=t.computed({get(){if(o.modelValue){if(o.multiple&&Array.isArray(o.modelValue))return o.options.filter(s=>o.modelValue.includes(s.value));if(!Array.isArray(o.modelValue))return o.options.find(s=>s.value===o.modelValue)}},set(s){if(!s){n("update:modelValue",void 0);return}if(o.multiple&&Array.isArray(s)){const m=s.map(_=>_.value);n("update:modelValue",m)}else Array.isArray(s)||n("update:modelValue",s.value)}}),v=t.computed(()=>{var s;if(Array.isArray(a.value)){if(o.multiple&&a.value.length==0)return o.placeholder}else return((s=a.value)==null?void 0:s.label)||o.placeholder||"";return""}),h=t.computed(()=>!(!o.clearable||!o.modelValue||o.modelValue&&Array.isArray(o.modelValue)&&!o.modelValue.length)),g=t.computed(()=>i.value?o.options.filter(s=>s.label.toLowerCase().includes(i.value.toLowerCase())):o.options),d=t.computed(()=>{if(o.rules)return o.required?[...o.rules,Rt]:o.rules;if(o.required)return[Rt]}),y=()=>{a.value=void 0},x=(s,m)=>{m(()=>{i.value=s})};return(s,m)=>(t.openBlock(),t.createBlock(t.unref(Y.QNoSsr),null,{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["app-select",[{"app-select_opened":r.value},`app-select_${s.size}`]])},[s.label?(t.openBlock(),t.createElementBlock("label",{key:0,class:t.normalizeClass(["app-select__label",{"app-select__label_bold":s.required}])},t.toDisplayString(s.required?`${s.label} *`:s.label),3)):t.createCommentVNode("",!0),t.createVNode(t.unref(ln),{standout:"","hide-bottom-space":"","hide-dropdown-icon":"","no-error-icon":"",behavior:"menu","popup-content-class":`app-select-menu app-select-menu_${s.size} ${s.menuClass}`,placeholder:s.filtering&&"Почніть вводити","input-debounce":"50",modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=_=>a.value=_),options:g.value,multiple:s.multiple,"use-input":s.filtering&&(Array.isArray(a.value)||!a.value),rules:d.value,"lazy-rules":s.lazyRules,autofocus:s.autofocus,disable:s.disabled,loading:s.loading,onFilter:x,onPopupShow:m[1]||(m[1]=_=>r.value=!0),onPopupHide:m[2]||(m[2]=_=>r.value=!1)},{append:t.withCtx(()=>[h.value?(t.openBlock(),t.createElementBlock("i",{key:0,class:"icon-kl icon-kl-close app-select__clear",onClick:t.withModifiers(y,["stop","prevent"])})):t.createCommentVNode("",!0),m[3]||(m[3]=t.createElementVNode("i",{class:"icon-kl icon-kl-arrow-down app-select__drop-icon"},null,-1))]),selected:t.withCtx(()=>{var _,S;return[Array.isArray(a.value)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[!s.filtering||a.value.length?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["app-select__selected",{"app-select__placeholder":!((_=a.value)!=null&&_.length)&&s.placeholder}])},[(S=a.value)!=null&&S.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[m[4]||(m[4]=t.createTextVNode(" Вибрано ")),t.createElementVNode("span",on,t.toDisplayString(a.value.length),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(o.placeholder),1)],64))],2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[!s.filtering||a.value?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["app-select__selected",{"app-select__placeholder":!a.value&&s.placeholder}])},t.toDisplayString(v.value),3)):t.createCommentVNode("",!0)],64))]}),option:t.withCtx(_=>[t.createVNode(ul,t.mergeProps({class:["app-select__option",{"app-select__option_selected":_.selected}]},_.itemProps),{default:t.withCtx(()=>[o.multiple?(t.openBlock(),t.createBlock(Xe,{key:0,class:"option-multiple",avatar:""},{default:t.withCtx(()=>[t.createVNode(Ul,{size:"30px","model-value":_.selected,"onUpdate:modelValue":()=>_.toggleOption(_.opt)},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024)):t.createCommentVNode("",!0),_.opt.done?(t.openBlock(),t.createBlock(Xe,{key:1,class:"option-done",avatar:""},{default:t.withCtx(()=>m[5]||(m[5]=[t.createElementVNode("i",{class:"icon-kl icon-kl-check option-done__icon"},null,-1)])),_:1})):t.createCommentVNode("",!0),t.createVNode(Xe,null,{default:t.withCtx(()=>[t.createVNode(nl,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(_.opt.label),1)]),_:2},1024)]),_:2},1024)]),_:2},1040,["class"])]),_:1},8,["popup-content-class","placeholder","modelValue","options","multiple","use-input","rules","lazy-rules","autofocus","disable","loading"])],2)]),_:1}))}}),un=f._export_sfc(nn,[["__scopeId","data-v-b724b896"]]);exports.default=un;
@@ -1 +0,0 @@
1
- "use strict";const n=require("vue"),d=require("./index-Ds5xSOgF.cjs");function p(o,r,t,i){return Object.defineProperty(o,r,{get:t,set:i,enumerable:!0}),o}const l=n.ref(!1);let f;function m(o,r){const t=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(o)||/(opr)[\/]([\w.]+)/.exec(o)||/(vivaldi)[\/]([\w.]+)/.exec(o)||/(chrome|crios)[\/]([\w.]+)/.exec(o)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(o)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(o)||/(firefox|fxios)[\/]([\w.]+)/.exec(o)||/(webkit)[\/]([\w.]+)/.exec(o)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(o)||[];return{browser:t[5]||t[3]||t[1]||"",version:t[4]||t[2]||"0",platform:r[0]||""}}function x(o){return/(ipad)/.exec(o)||/(ipod)/.exec(o)||/(windows phone)/.exec(o)||/(iphone)/.exec(o)||/(kindle)/.exec(o)||/(silk)/.exec(o)||/(android)/.exec(o)||/(win)/.exec(o)||/(mac)/.exec(o)||/(linux)/.exec(o)||/(cros)/.exec(o)||/(playbook)/.exec(o)||/(bb)/.exec(o)||/(blackberry)/.exec(o)||[]}const v="ontouchstart"in window||window.navigator.maxTouchPoints>0;function k(o){const r=o.toLowerCase(),t=x(r),i=m(r,t),e={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,blackberry:!1,playbook:!1,silk:!1};i.browser&&(e[i.browser]=!0,e.version=i.version,e.versionNumber=parseInt(i.version,10)),i.platform&&(e[i.platform]=!0);const a=e.android||e.ios||e.bb||e.blackberry||e.ipad||e.iphone||e.ipod||e.kindle||e.playbook||e.silk||e["windows phone"];if(a===!0||r.indexOf("mobile")!==-1?e.mobile=!0:e.desktop=!0,e["windows phone"]&&(e.winphone=!0,delete e["windows phone"]),e.edga||e.edgios||e.edg?(e.edge=!0,i.browser="edge"):e.crios?(e.chrome=!0,i.browser="chrome"):e.fxios&&(e.firefox=!0,i.browser="firefox"),(e.ipod||e.ipad||e.iphone)&&(e.ios=!0),e.vivaldi&&(i.browser="vivaldi",e.vivaldi=!0),(e.chrome||e.opr||e.safari||e.vivaldi||e.mobile===!0&&e.ios!==!0&&a!==!0)&&(e.webkit=!0),e.opr&&(i.browser="opera",e.opera=!0),e.safari&&(e.blackberry||e.bb?(i.browser="blackberry",e.blackberry=!0):e.playbook?(i.browser="playbook",e.playbook=!0):e.android?(i.browser="android",e.android=!0):e.kindle?(i.browser="kindle",e.kindle=!0):e.silk&&(i.browser="silk",e.silk=!0)),e.name=i.browser,e.platform=i.platform,r.indexOf("electron")!==-1)e.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)e.bex=!0;else{if(window.Capacitor!==void 0?(e.capacitor=!0,e.nativeMobile=!0,e.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(e.cordova=!0,e.nativeMobile=!0,e.nativeMobileWrapper="cordova"),l.value===!0&&(f={is:{...e}}),v===!0&&e.mac===!0&&(e.desktop===!0&&e.safari===!0||e.nativeMobile===!0&&e.android!==!0&&e.ios!==!0&&e.ipad!==!0)){delete e.mac,delete e.desktop;const w=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(e,{mobile:!0,ios:!0,platform:w,[w]:!0})}e.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete e.desktop,e.mobile=!0)}return e}const b=navigator.userAgent||navigator.vendor||window.opera,g={has:{touch:!1,webStorage:!1},within:{iframe:!1}},c={userAgent:b,is:k(b),has:{touch:v},within:{iframe:window.self!==window.top}},u={install(o){const{$q:r}=o;l.value===!0?(o.onSSRHydrated.push(()=>{Object.assign(r.platform,c),l.value=!1}),r.platform=n.reactive(this)):r.platform=this}};{let o;p(c.has,"webStorage",()=>{if(o!==void 0)return o;try{if(window.localStorage)return o=!0,!0}catch{}return o=!1,!1}),Object.assign(u,c),l.value===!0&&(Object.assign(u,f,g),f=null)}const s=[];function h(o){s[s.length-1](o)}function y(o){c.is.desktop===!0&&(s.push(o),s.length===1&&document.body.addEventListener("focusin",h))}function S(o){const r=s.indexOf(o);r!==-1&&(s.splice(r,1),s.length===0&&document.body.removeEventListener("focusin",h))}function M(){const o=n.ref(!l.value);return o.value===!1&&n.onMounted(()=>{o.value=!0}),{isHydrated:o}}const P=d.createComponent({name:"QNoSsr",props:{tag:{type:String,default:"div"},placeholder:String},setup(o,{slots:r}){const{isHydrated:t}=M();return()=>{if(t.value===!0){const a=d.hSlot(r.default);return a===void 0?a:a.length>1?n.h(o.tag,{},a):a[0]}const i={class:"q-no-ssr-placeholder"},e=d.hSlot(r.placeholder);if(e!==void 0)return e.length>1?n.h(o.tag,i,e):e[0];if(o.placeholder!==void 0)return n.h(o.tag,i,o.placeholder)}}});exports.Platform=u;exports.QNoSsr=P;exports.addFocusout=y;exports.client=c;exports.injectProp=p;exports.isRuntimeSsrPreHydration=l;exports.removeFocusout=S;