@validol4ik/uikit 0.3.38 → 0.3.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.DS_Store +0 -0
- package/dist/{AppButtonCopy-BYH8F6F2.js → AppButtonCopy-CD5izPIQ.js} +6 -5
- package/dist/{AppButtonCopy-C9I_oYhz.cjs → AppButtonCopy-SQlgsdOa.cjs} +1 -1
- package/dist/AppSelect-9PNb7C2e.js +2763 -0
- package/dist/AppSelect-BIlYEF7l.cjs +1 -0
- package/dist/focusout-DQ2xVqLu.js +16 -0
- package/dist/focusout-Dq639lQG.cjs +1 -0
- package/dist/index-BqmIMh0f.cjs +1 -0
- package/dist/index-CIzSoIId.js +1880 -0
- package/dist/kl.woff +0 -0
- package/dist/style.css +1 -1
- package/dist/types/components/AppIcon/iconsList.d.ts +2 -2
- package/dist/types/components/buttons/AppButton/types.d.ts +1 -0
- package/dist/uikit.cjs +1 -1
- package/dist/uikit.es.js +3 -3
- package/package.json +1 -1
- package/dist/AppSelect-Bda-f0Z5.cjs +0 -1
- package/dist/AppSelect-D0V_4egP.js +0 -3343
- package/dist/focusout-DjvPXP_b.js +0 -135
- package/dist/focusout-DzWGke-4.cjs +0 -1
- package/dist/index-BWQz1AUO.js +0 -985
- package/dist/index-DQu9r9r-.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),a=require("./index-BqmIMh0f.cjs"),Te=require("./focusout-Dq639lQG.cjs"),Re={dark:{type:Boolean,default:null}};function Oe(e,o){return t.computed(()=>e.dark===null?o.dark.isActive:e.dark)}function dl(e,o){const l=t.ref(null),u=t.computed(()=>e.disable===!0?null:t.h("span",{ref:l,class:"no-outline",tabindex:-1}));function d(i){const s=o.value;i!==void 0&&i.type.indexOf("key")===0?s!==null&&document.activeElement!==s&&s.contains(document.activeElement)===!0&&s.focus():l.value!==null&&(i===void 0||s!==null&&s.contains(i.target)===!0)&&l.value.focus()}return{refocusTargetEl:u,refocusTarget:d}}const Lt={name:String};function fl(e={}){return(o,l,u)=>{o[l](t.h("input",{class:"hidden"+(u||""),...e.value}))}}function vl(e){return t.computed(()=>e.name||e.for)}const ml={xs:30,sm:35,md:40,lg:50,xl:60},hl={...Re,...a.useSizeProps,...Lt,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]},gl=["update:modelValue"];function pl(e,o){const{props:l,slots:u,emit:d,proxy:i}=t.getCurrentInstance(),{$q:s}=i,p=Oe(l,s),y=t.ref(null),{refocusTargetEl:_,refocusTarget:f}=dl(l,y),C=a.useSize(l,ml),x=t.computed(()=>l.val!==void 0&&Array.isArray(l.modelValue)),c=t.computed(()=>{const V=t.toRaw(l.val);return x.value===!0?l.modelValue.findIndex(K=>t.toRaw(K)===V):-1}),S=t.computed(()=>x.value===!0?c.value!==-1:t.toRaw(l.modelValue)===t.toRaw(l.trueValue)),q=t.computed(()=>x.value===!0?c.value===-1:t.toRaw(l.modelValue)===t.toRaw(l.falseValue)),w=t.computed(()=>S.value===!1&&q.value===!1),M=t.computed(()=>l.disable===!0?-1:l.tabindex||0),N=t.computed(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(l.disable===!0?" disabled":"")+(p.value===!0?` q-${e}--dark`:"")+(l.dense===!0?` q-${e}--dense`:"")+(l.leftLabel===!0?" reverse":"")),A=t.computed(()=>{const V=S.value===!0?"truthy":q.value===!0?"falsy":"indet",K=l.color!==void 0&&(l.keepColor===!0||q.value!==!0)?` text-${l.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${V}${K}`}),F=t.computed(()=>{const V={type:"checkbox"};return l.name!==void 0&&Object.assign(V,{".checked":S.value,"^checked":S.value===!0?"checked":void 0,name:l.name,value:x.value===!0?l.val:l.trueValue}),V}),W=fl(F),E=t.computed(()=>{const V={tabindex:M.value,role:"checkbox","aria-label":l.label,"aria-checked":w.value===!0?"mixed":S.value===!0?"true":"false"};return l.disable===!0&&(V["aria-disabled"]="true"),V});function P(V){V!==void 0&&(a.stopAndPrevent(V),f(V)),l.disable!==!0&&d("update:modelValue",L(),V)}function L(){if(x.value===!0){if(S.value===!0){const V=l.modelValue.slice();return V.splice(c.value,1),V}return l.modelValue.concat([l.val])}if(S.value===!0){if(l.toggleOrder!=="ft"||l.toggleIndeterminate===!1)return l.falseValue}else if(q.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 G(V){(V.keyCode===13||V.keyCode===32)&&a.stopAndPrevent(V)}function Q(V){(V.keyCode===13||V.keyCode===32)&&P(V)}const ee=o(S,w);return Object.assign(i,{toggle:P}),()=>{const V=ee();l.disable!==!0&&W(V,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const K=[t.h("div",{class:A.value,style:C.value,"aria-hidden":"true"},V)];_.value!==null&&K.push(_.value);const te=l.label!==void 0?a.hMergeSlot(u.default,[l.label]):a.hSlot(u.default);return te!==void 0&&K.push(t.h("div",{class:`q-${e}__label q-anchor--skip`},te)),t.h("div",{ref:y,class:N.value,...E.value,onClick:P,onKeydown:G,onKeyup:Q},K)}}const bl=()=>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"})])]),yl=a.createComponent({name:"QCheckbox",props:hl,emits:gl,setup(e){const o=bl();function l(u,d){const i=t.computed(()=>(u.value===!0?e.checkedIcon:d.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(a.QIcon,{class:"q-checkbox__icon",name:i.value})])]:[o]}return pl("checkbox",l)}}),Ke=a.createComponent({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:o}){const l=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:l.value},a.hSlot(o.default))}}),$t=a.createComponent({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:o}){const l=t.computed(()=>parseInt(e.lines,10)),u=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":"")+(l.value===1?" ellipsis":"")),d=t.computed(()=>e.lines!==void 0&&l.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l.value}:null);return()=>t.h("div",{style:d.value,class:u.value},a.hSlot(o.default))}}),Ht=a.createComponent({name:"QItem",props:{...Re,...a.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:o,emit:l}){const{proxy:{$q:u}}=t.getCurrentInstance(),d=Oe(e,u),{hasLink:i,linkAttrs:s,linkClass:p,linkTag:y,navigateOnClick:_}=a.useRouterLink(),f=t.ref(null),C=t.ref(null),x=t.computed(()=>e.clickable===!0||i.value===!0||e.tag==="label"),c=t.computed(()=>e.disable!==!0&&x.value===!0),S=t.computed(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(d.value===!0?" q-item--dark":"")+(i.value===!0&&e.active===null?p.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(c.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":""):"")),q=t.computed(()=>e.insetLevel===void 0?null:{["padding"+(u.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function w(A){c.value===!0&&(C.value!==null&&(A.qKeyEvent!==!0&&document.activeElement===f.value?C.value.focus():document.activeElement===C.value&&f.value.focus()),_(A))}function M(A){if(c.value===!0&&a.isKeyCode(A,[13,32])===!0){a.stopAndPrevent(A),A.qKeyEvent=!0;const F=new MouseEvent("click",A);F.qKeyEvent=!0,f.value.dispatchEvent(F)}l("keyup",A)}function N(){const A=a.hUniqueSlot(o.default,[]);return c.value===!0&&A.unshift(t.h("div",{class:"q-focus-helper",tabindex:-1,ref:C})),A}return()=>{const A={ref:f,class:S.value,style:q.value,role:"listitem",onClick:w,onKeyup:M};return c.value===!0?(A.tabindex=e.tabindex||"0",Object.assign(A,s.value)):x.value===!0&&(A["aria-disabled"]="true"),t.h(y.value,A,N())}}}),Ct=e=>e?!0:"Обовʼязкове поле";let Je,Le=0;const Z=new Array(256);for(let e=0;e<256;e++)Z[e]=(e+256).toString(16).substring(1);const Sl=(()=>{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 o=>{const l=new Uint8Array(o);return e.getRandomValues(l),l}}return o=>{const l=[];for(let u=o;u>0;u--)l.push(Math.floor(Math.random()*256));return l}})(),kt=4096;function ut(){(Je===void 0||Le+16>kt)&&(Le=0,Je=Sl(kt));const e=Array.prototype.slice.call(Je,Le,Le+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,Z[e[0]]+Z[e[1]]+Z[e[2]]+Z[e[3]]+"-"+Z[e[4]]+Z[e[5]]+"-"+Z[e[6]]+Z[e[7]]+"-"+Z[e[8]]+Z[e[9]]+"-"+Z[e[10]]+Z[e[11]]+Z[e[12]]+Z[e[13]]+Z[e[14]]+Z[e[15]]}function wl(e){return e??null}function xt(e,o){return e??(o===!0?`f_${ut()}`:null)}function Cl({getValue:e,required:o=!0}={}){if(a.isRuntimeSsrPreHydration.value===!0){const l=e!==void 0?t.ref(wl(e())):t.ref(null);return o===!0&&l.value===null&&t.onMounted(()=>{l.value=`f_${ut()}`}),e!==void 0&&t.watch(e,u=>{l.value=xt(u,o)}),l}return e!==void 0?t.computed(()=>xt(e(),o)):t.ref(`f_${ut()}`)}const qt=/^on[A-Z]/;function kl(){const{attrs:e,vnode:o}=t.getCurrentInstance(),l={listeners:t.ref({}),attributes:t.ref({})};function u(){const d={},i={};for(const s in e)s!=="class"&&s!=="style"&&qt.test(s)===!1&&(d[s]=e[s]);for(const s in o.props)qt.test(s)===!0&&(i[s]=o.props[s]);l.attributes.value=d,l.listeners.value=i}return t.onBeforeUpdate(u),u(),l}const xl="_q_fo_";function ql({validate:e,resetValidation:o,requiresQForm:l}){const u=t.inject(xl,!1);if(u!==!1){const{props:d,proxy:i}=t.getCurrentInstance();Object.assign(i,{validate:e,resetValidation:o}),t.watch(()=>d.disable,s=>{s===!0?(typeof o=="function"&&o(),u.unbindComponent(i)):u.bindComponent(i)}),t.onMounted(()=>{d.disable!==!0&&u.bindComponent(i)}),t.onBeforeUnmount(()=>{d.disable!==!0&&u.unbindComponent(i)})}else l===!0&&console.error("Parent QForm not found on useFormChild()!")}const Vt=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,_t=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Bt=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,$e=/^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])\)$/,He=/^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)\)$/,Ge={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=>Vt.test(e),hexaColor:e=>_t.test(e),hexOrHexaColor:e=>Bt.test(e),rgbColor:e=>$e.test(e),rgbaColor:e=>He.test(e),rgbOrRgbaColor:e=>$e.test(e)||He.test(e),hexOrRgbColor:e=>Vt.test(e)||$e.test(e),hexaOrRgbaColor:e=>_t.test(e)||He.test(e),anyColor:e=>Bt.test(e)||$e.test(e)||He.test(e)};function Dt(e,o=250,l){let u=null;function d(){const i=arguments,s=()=>{u=null,l!==!0&&e.apply(this,i)};u!==null?clearTimeout(u):l===!0&&e.apply(this,i),u=setTimeout(s,o)}return d.cancel=()=>{u!==null&&clearTimeout(u)},d}const Vl=[!0,!1,"ondemand"],_l={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>Vl.includes(e)}};function Bl(e,o){const{props:l,proxy:u}=t.getCurrentInstance(),d=t.ref(!1),i=t.ref(null),s=t.ref(!1);ql({validate:q,resetValidation:S});let p=0,y;const _=t.computed(()=>l.rules!==void 0&&l.rules!==null&&l.rules.length!==0),f=t.computed(()=>l.disable!==!0&&_.value===!0&&o.value===!1),C=t.computed(()=>l.error===!0||d.value===!0),x=t.computed(()=>typeof l.errorMessage=="string"&&l.errorMessage.length!==0?l.errorMessage:i.value);t.watch(()=>l.modelValue,()=>{s.value=!0,f.value===!0&&l.lazyRules===!1&&w()});function c(){l.lazyRules!=="ondemand"&&f.value===!0&&s.value===!0&&w()}t.watch(()=>l.reactiveRules,M=>{M===!0?y===void 0&&(y=t.watch(()=>l.rules,c,{immediate:!0,deep:!0})):y!==void 0&&(y(),y=void 0)},{immediate:!0}),t.watch(()=>l.lazyRules,c),t.watch(e,M=>{M===!0?s.value=!0:f.value===!0&&l.lazyRules!=="ondemand"&&w()});function S(){p++,o.value=!1,s.value=!1,d.value=!1,i.value=null,w.cancel()}function q(M=l.modelValue){if(l.disable===!0||_.value===!1)return!0;const N=++p,A=o.value!==!0?()=>{s.value=!0}:()=>{},F=(E,P)=>{E===!0&&A(),d.value=E,i.value=P||null,o.value=!1},W=[];for(let E=0;E<l.rules.length;E++){const P=l.rules[E];let L;if(typeof P=="function"?L=P(M,Ge):typeof P=="string"&&Ge[P]!==void 0&&(L=Ge[P](M)),L===!1||typeof L=="string")return F(!0,L),!1;L!==!0&&L!==void 0&&W.push(L)}return W.length===0?(F(!1),!0):(o.value=!0,Promise.all(W).then(E=>{if(E===void 0||Array.isArray(E)===!1||E.length===0)return N===p&&F(!1),!0;const P=E.find(L=>L===!1||typeof L=="string");return N===p&&F(P!==void 0,P),P===void 0},E=>(N===p&&(console.error(E),F(!0)),!1)))}const w=Dt(q,0);return t.onBeforeUnmount(()=>{y!==void 0&&y(),w.cancel()}),Object.assign(u,{resetValidation:S,validate:q}),a.injectProp(u,"hasError",()=>C.value),{isDirtyModel:s,hasRules:_,hasError:C,errorMessage:x,validate:q,resetValidation:S}}function it(e){return e!=null&&(""+e).length!==0}const Al={...Re,..._l,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},at={...Al,maxlength:[Number,String]},Nt=["update:modelValue","clear","focus","blur"];function Kt({requiredForAttr:e=!0,tagProp:o,changeEvent:l=!1}={}){const{props:u,proxy:d}=t.getCurrentInstance(),i=Oe(u,d.$q),s=Cl({required:e,getValue:()=>u.for});return{requiredForAttr:e,changeEvent:l,tag:o===!0?t.computed(()=>u.tag):{value:"label"},isDark:i,editable:t.computed(()=>u.disable!==!0&&u.readonly!==!0),innerLoading:t.ref(!1),focused:t.ref(!1),hasPopupOpen:!1,splitAttrs:kl(),targetUid:s,rootRef:t.ref(null),targetRef:t.ref(null),controlRef:t.ref(null)}}function jt(e){const{props:o,emit:l,slots:u,attrs:d,proxy:i}=t.getCurrentInstance(),{$q:s}=i;let p=null;e.hasValue===void 0&&(e.hasValue=t.computed(()=>it(o.modelValue))),e.emitValue===void 0&&(e.emitValue=b=>{l("update:modelValue",b)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:G,onFocusout:Q}),Object.assign(e,{clearValue:ee,onControlFocusin:G,onControlFocusout:Q,focus:P}),e.computedCounter===void 0&&(e.computedCounter=t.computed(()=>{if(o.counter!==!1){const b=typeof o.modelValue=="string"||typeof o.modelValue=="number"?(""+o.modelValue).length:Array.isArray(o.modelValue)===!0?o.modelValue.length:0,R=o.maxlength!==void 0?o.maxlength:o.maxValues;return b+(R!==void 0?" / "+R:"")}}));const{isDirtyModel:y,hasRules:_,hasError:f,errorMessage:C,resetValidation:x}=Bl(e.focused,e.innerLoading),c=e.floatingLabel!==void 0?t.computed(()=>o.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):t.computed(()=>o.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),S=t.computed(()=>o.bottomSlots===!0||o.hint!==void 0||_.value===!0||o.counter===!0||o.error!==null),q=t.computed(()=>o.filled===!0?"filled":o.outlined===!0?"outlined":o.borderless===!0?"borderless":o.standout?"standout":"standard"),w=t.computed(()=>`q-field row no-wrap items-start q-field--${q.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(o.rounded===!0?" q-field--rounded":"")+(o.square===!0?" q-field--square":"")+(c.value===!0?" q-field--float":"")+(N.value===!0?" q-field--labeled":"")+(o.dense===!0?" q-field--dense":"")+(o.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":"")+(f.value===!0?" q-field--error":"")+(f.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(o.hideBottomSpace!==!0&&S.value===!0?" q-field--with-bottom":"")+(o.disable===!0?" q-field--disabled":o.readonly===!0?" q-field--readonly":"")),M=t.computed(()=>"q-field__control relative-position row no-wrap"+(o.bgColor!==void 0?` bg-${o.bgColor}`:"")+(f.value===!0?" text-negative":typeof o.standout=="string"&&o.standout.length!==0&&e.focused.value===!0?` ${o.standout}`:o.color!==void 0?` text-${o.color}`:"")),N=t.computed(()=>o.labelSlot===!0||o.label!==void 0),A=t.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(o.labelColor!==void 0&&f.value!==!0?` text-${o.labelColor}`:"")),F=t.computed(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:c.value,modelValue:o.modelValue,emitValue:e.emitValue})),W=t.computed(()=>{const b={};return e.targetUid.value&&(b.for=e.targetUid.value),o.disable===!0&&(b["aria-disabled"]="true"),b});function E(){const b=document.activeElement;let R=e.targetRef!==void 0&&e.targetRef.value;R&&(b===null||b.id!==e.targetUid.value)&&(R.hasAttribute("tabindex")===!0||(R=R.querySelector("[tabindex]")),R&&R!==b&&R.focus({preventScroll:!0}))}function P(){a.addFocusFn(E)}function L(){a.removeFocusFn(E);const b=document.activeElement;b!==null&&e.rootRef.value.contains(b)&&b.blur()}function G(b){p!==null&&(clearTimeout(p),p=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,l("focus",b))}function Q(b,R){p!==null&&clearTimeout(p),p=setTimeout(()=>{p=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",b)),R!==void 0&&R())})}function ee(b){a.stopAndPrevent(b),s.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(),o.type==="file"&&(e.inputRef.value.value=null),l("update:modelValue",null),e.changeEvent===!0&&l("change",null),l("clear",o.modelValue),t.nextTick(()=>{const R=y.value;x(),y.value=R})}function V(b){[13,32].includes(b.keyCode)&&ee(b)}function K(){const b=[];return u.prepend!==void 0&&b.push(t.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:a.prevent},u.prepend())),b.push(t.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},te())),f.value===!0&&o.noErrorIcon===!1&&b.push(j("error",[t.h(a.QIcon,{name:s.iconSet.field.error,color:"negative"})])),o.loading===!0||e.innerLoading.value===!0?b.push(j("inner-loading-append",u.loading!==void 0?u.loading():[t.h(a.QSpinner,{color:o.color})])):o.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&b.push(j("inner-clearable-append",[t.h(a.QIcon,{class:"q-field__focusable-action",name:o.clearIcon||s.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":s.lang.label.clear,onKeyup:V,onClick:ee})])),u.append!==void 0&&b.push(t.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:a.prevent},u.append())),e.getInnerAppend!==void 0&&b.push(j("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&b.push(e.getControlChild()),b}function te(){const b=[];return o.prefix!==void 0&&o.prefix!==null&&b.push(t.h("div",{class:"q-field__prefix no-pointer-events row items-center"},o.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&b.push(e.getShadowControl()),e.getControl!==void 0?b.push(e.getControl()):u.rawControl!==void 0?b.push(u.rawControl()):u.control!==void 0&&b.push(t.h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":o.autofocus===!0||void 0},u.control(F.value))),N.value===!0&&b.push(t.h("div",{class:A.value},a.hSlot(u.label,o.label))),o.suffix!==void 0&&o.suffix!==null&&b.push(t.h("div",{class:"q-field__suffix no-pointer-events row items-center"},o.suffix)),b.concat(a.hSlot(u.default))}function J(){let b,R;f.value===!0?C.value!==null?(b=[t.h("div",{role:"alert"},C.value)],R=`q--slot-error-${C.value}`):(b=a.hSlot(u.error),R="q--slot-error"):(o.hideHint!==!0||e.focused.value===!0)&&(o.hint!==void 0?(b=[t.h("div",o.hint)],R=`q--slot-hint-${o.hint}`):(b=a.hSlot(u.hint),R="q--slot-hint"));const ne=o.counter===!0||u.counter!==void 0;if(o.hideBottomSpace===!0&&ne===!1&&b===void 0)return;const r=t.h("div",{key:R,class:"q-field__messages col"},b);return t.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(o.hideBottomSpace!==!0?"animated":"stale"),onClick:a.prevent},[o.hideBottomSpace===!0?r:t.h(t.Transition,{name:"q-transition--field-message"},()=>r),ne===!0?t.h("div",{class:"q-field__counter"},u.counter!==void 0?u.counter():e.computedCounter.value):null])}function j(b,R){return R===null?null:t.h("div",{key:b,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},R)}let oe=!1;return t.onDeactivated(()=>{oe=!0}),t.onActivated(()=>{oe===!0&&o.autofocus===!0&&i.focus()}),o.autofocus===!0&&t.onMounted(()=>{i.focus()}),t.onBeforeUnmount(()=>{p!==null&&clearTimeout(p)}),Object.assign(i,{focus:P,blur:L}),function(){const R=e.getControl===void 0&&u.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":o.autofocus===!0||void 0,...W.value}:W.value;return t.h(e.tag.value,{ref:e.rootRef,class:[w.value,d.class],style:d.style,...R},[u.before!==void 0?t.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:a.prevent},u.before()):null,t.h("div",{class:"q-field__inner relative-position col self-stretch"},[t.h("div",{ref:e.controlRef,class:M.value,tabindex:-1,...e.controlEvents},K()),S.value===!0?J():null]),u.after!==void 0?t.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:a.prevent},u.after()):null])}}const El=a.createComponent({name:"QField",inheritAttrs:!1,props:{...at,tag:{type:String,default:"label"}},emits:Nt,setup(){return jt(Kt({tagProp:!0}))}}),Tl={xs:8,sm:10,md:14,lg:20,xl:24},Rl=a.createComponent({name:"QChip",props:{...Re,...a.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:o,emit:l}){const{proxy:{$q:u}}=t.getCurrentInstance(),d=Oe(e,u),i=a.useSize(e,Tl),s=t.computed(()=>e.selected===!0||e.icon!==void 0),p=t.computed(()=>e.selected===!0?e.iconSelected||u.iconSet.chip.selected:e.icon),y=t.computed(()=>e.iconRemove||u.iconSet.chip.remove),_=t.computed(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),f=t.computed(()=>{const w=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}`:"")+(w?` text-${w} 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":"")+(_.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square===!0?" q-chip--square":"")+(d.value===!0?" q-chip--dark q-dark":"")}),C=t.computed(()=>{const w=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},M={...w,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||u.lang.label.remove};return{chip:w,remove:M}});function x(w){w.keyCode===13&&c(w)}function c(w){e.disable||(l("update:selected",!e.selected),l("click",w))}function S(w){(w.keyCode===void 0||w.keyCode===13)&&(a.stopAndPrevent(w),e.disable===!1&&(l("update:modelValue",!1),l("remove")))}function q(){const w=[];_.value===!0&&w.push(t.h("div",{class:"q-focus-helper"})),s.value===!0&&w.push(t.h(a.QIcon,{class:"q-chip__icon q-chip__icon--left",name:p.value}));const M=e.label!==void 0?[t.h("div",{class:"ellipsis"},[e.label])]:void 0;return w.push(t.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},a.hMergeSlotSafely(o.default,M))),e.iconRight&&w.push(t.h(a.QIcon,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&w.push(t.h(a.QIcon,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:y.value,...C.value.remove,onClick:S,onKeyup:S})),w}return()=>{if(e.modelValue===!1)return;const w={class:f.value,style:i.value};return _.value===!0&&Object.assign(w,C.value.chip,{onClick:c,onKeyup:x}),a.hDir("div",w,q(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[a.Ripple,e.ripple]])}}}),he=[];let xe;function Ol(e){xe=e.keyCode===27}function Fl(){xe===!0&&(xe=!1)}function Il(e){xe===!0&&(xe=!1,a.isKeyCode(e,27)===!0&&he[he.length-1](e))}function Ut(e){window[e]("keydown",Ol),window[e]("blur",Fl),window[e]("keyup",Il),xe=!1}function Qt(e){a.client.is.desktop===!0&&(he.push(e),he.length===1&&Ut("addEventListener"))}function je(e){const o=he.indexOf(e);o!==-1&&(he.splice(o,1),he.length===0&&Ut("removeEventListener"))}const zl=a.createComponent({name:"QMenu",inheritAttrs:!1,props:{...a.useAnchorProps,...a.useModelToggleProps,...Re,...a.useTransitionProps,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:a.validatePosition},self:{type:String,validator:a.validatePosition},offset:{type:Array,validator:a.validateOffset},scrollTarget:a.scrollTargetProp,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...a.useModelToggleEmits,"click","escapeKey"],setup(e,{slots:o,emit:l,attrs:u}){let d=null,i,s,p;const y=t.getCurrentInstance(),{proxy:_}=y,{$q:f}=_,C=t.ref(null),x=t.ref(!1),c=t.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),S=Oe(e,f),{registerTick:q,removeTick:w}=a.useTick(),{registerTimeout:M}=a.useTimeout(),{transitionProps:N,transitionStyle:A}=a.useTransition(e),{localScrollTarget:F,changeScrollEvent:W,unconfigureScrollTarget:E}=a.useScrollTarget(e,O),{anchorEl:P,canShow:L}=a.useAnchor({showing:x}),{hide:G}=a.useModelToggle({showing:x,canShow:L,handleShow:ne,handleHide:r,hideOnRouteChange:c,processOnMount:!0}),{showPortal:Q,hidePortal:ee,renderPortal:V}=a.usePortal(y,C,D,"menu"),K={anchorEl:P,innerRef:C,onClickOutside(m){if(e.persistent!==!0&&x.value===!0)return G(m),(m.type==="touchstart"||m.target.classList.contains("q-dialog__backdrop"))&&a.stopAndPrevent(m),!0}},te=t.computed(()=>a.parsePosition(e.anchor||(e.cover===!0?"center middle":"bottom start"),f.lang.rtl)),J=t.computed(()=>e.cover===!0?te.value:a.parsePosition(e.self||"top start",f.lang.rtl)),j=t.computed(()=>(e.square===!0?" q-menu--square":"")+(S.value===!0?" q-menu--dark q-dark":"")),oe=t.computed(()=>e.autoClose===!0?{onClick:k}:{}),b=t.computed(()=>x.value===!0&&e.persistent!==!0);t.watch(b,m=>{m===!0?(Qt(T),a.addClickOutside(K)):(je(T),a.removeClickOutside(K))});function R(){a.addFocusFn(()=>{let m=C.value;m&&m.contains(document.activeElement)!==!0&&(m=m.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||m.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||m.querySelector("[autofocus], [data-autofocus]")||m,m.focus({preventScroll:!0}))})}function ne(m){if(d=e.noRefocus===!1?document.activeElement:null,Te.addFocusout(I),Q(),O(),i=void 0,m!==void 0&&(e.touchPosition||e.contextMenu)){const X=a.position(m);if(X.left!==void 0){const{top:ie,left:ge}=P.value.getBoundingClientRect();i={left:X.left-ge,top:X.top-ie}}}s===void 0&&(s=t.watch(()=>f.screen.width+"|"+f.screen.height+"|"+e.self+"|"+e.anchor+"|"+f.lang.rtl,B)),e.noFocus!==!0&&document.activeElement.blur(),q(()=>{B(),e.noFocus!==!0&&R()}),M(()=>{f.platform.is.ios===!0&&(p=e.autoClose,C.value.click()),B(),Q(!0),l("show",m)},e.transitionDuration)}function r(m){w(),ee(),v(!0),d!==null&&(m===void 0||m.qClickOutside!==!0)&&(((m&&m.type.indexOf("key")===0?d.closest('[tabindex]:not([tabindex^="-"])'):void 0)||d).focus(),d=null),M(()=>{ee(!0),l("hide",m)},e.transitionDuration)}function v(m){i=void 0,s!==void 0&&(s(),s=void 0),(m===!0||x.value===!0)&&(Te.removeFocusout(I),E(),a.removeClickOutside(K),je(T)),m!==!0&&(d=null)}function O(){(P.value!==null||e.scrollTarget!==void 0)&&(F.value=a.getScrollTarget(P.value,e.scrollTarget),W(F.value,B))}function k(m){p!==!0?(a.closePortalMenus(_,m),l("click",m)):p=!1}function I(m){b.value===!0&&e.noFocus!==!0&&a.childHasFocus(C.value,m.target)!==!0&&R()}function T(m){l("escapeKey"),G(m)}function B(){a.setPosition({targetEl:C.value,offset:e.offset,anchorEl:P.value,anchorOrigin:te.value,selfOrigin:J.value,absoluteOffset:i,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function D(){return t.h(t.Transition,N.value,()=>x.value===!0?t.h("div",{role:"menu",...u,ref:C,tabindex:-1,class:["q-menu q-position-engine scroll"+j.value,u.class],style:[u.style,A.value],...oe.value},a.hSlot(o.default)):null)}return t.onBeforeUnmount(v),Object.assign(_,{focus:R,updatePosition:B}),V}});function Pl(e,o,l){function u(){}return t.onBeforeUnmount(()=>{e.value===!0&&void 0}),{removeFromHistory:u,addToHistory(){}}}let Be=0,et,tt,Ee,lt=!1,At,Et,Tt,me=null;function Ml(e){Ll(e)&&a.stopAndPrevent(e)}function Ll(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const o=a.getEventPath(e),l=e.shiftKey&&!e.deltaX,u=!l&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),d=l||u?e.deltaY:e.deltaX;for(let i=0;i<o.length;i++){const s=o[i];if(a.hasScrollbar(s,u))return u?d<0&&s.scrollTop===0?!0:d>0&&s.scrollTop+s.clientHeight===s.scrollHeight:d<0&&s.scrollLeft===0?!0:d>0&&s.scrollLeft+s.clientWidth===s.scrollWidth}return!0}function Rt(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function De(e){lt!==!0&&(lt=!0,requestAnimationFrame(()=>{lt=!1;const{height:o}=e.target,{clientHeight:l,scrollTop:u}=document.scrollingElement;(Ee===void 0||o!==window.innerHeight)&&(Ee=l-o,document.scrollingElement.scrollTop=u),u>Ee&&(document.scrollingElement.scrollTop-=Math.ceil((u-Ee)/8))}))}function Ot(e){const o=document.body,l=window.visualViewport!==void 0;if(e==="add"){const{overflowY:u,overflowX:d}=window.getComputedStyle(o);et=a.getHorizontalScrollPosition(window),tt=a.getVerticalScrollPosition(window),At=o.style.left,Et=o.style.top,Tt=window.location.href,o.style.left=`-${et}px`,o.style.top=`-${tt}px`,d!=="hidden"&&(d==="scroll"||o.scrollWidth>window.innerWidth)&&o.classList.add("q-body--force-scrollbar-x"),u!=="hidden"&&(u==="scroll"||o.scrollHeight>window.innerHeight)&&o.classList.add("q-body--force-scrollbar-y"),o.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,a.client.is.ios===!0&&(l===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",De,a.listenOpts.passiveCapture),window.visualViewport.addEventListener("scroll",De,a.listenOpts.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Rt,a.listenOpts.passiveCapture))}a.client.is.desktop===!0&&a.client.is.mac===!0&&window[`${e}EventListener`]("wheel",Ml,a.listenOpts.notPassive),e==="remove"&&(a.client.is.ios===!0&&(l===!0?(window.visualViewport.removeEventListener("resize",De,a.listenOpts.passiveCapture),window.visualViewport.removeEventListener("scroll",De,a.listenOpts.passiveCapture)):window.removeEventListener("scroll",Rt,a.listenOpts.passiveCapture)),o.classList.remove("q-body--prevent-scroll"),o.classList.remove("q-body--force-scrollbar-x"),o.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,o.style.left=At,o.style.top=Et,window.location.href===Tt&&window.scrollTo(et,tt),Ee=void 0)}function $l(e){let o="add";if(e===!0){if(Be++,me!==null){clearTimeout(me),me=null;return}if(Be>1)return}else{if(Be===0||(Be--,Be>0))return;if(o="remove",a.client.is.ios===!0&&a.client.is.nativeMobile===!0){me!==null&&clearTimeout(me),me=setTimeout(()=>{Ot(o),me=null},100);return}}Ot(o)}function Hl(){let e;return{preventBodyScroll(o){o!==e&&(e!==void 0||o===!0)&&(e=o,$l(o))}}}let Ne=0;const Dl={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"},Ft={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},Nl=a.createComponent({name:"QDialog",inheritAttrs:!1,props:{...a.useModelToggleProps,...a.useTransitionProps,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:[...a.useModelToggleEmits,"shake","click","escapeKey"],setup(e,{slots:o,emit:l,attrs:u}){const d=t.getCurrentInstance(),i=t.ref(null),s=t.ref(!1),p=t.ref(!1);let y=null,_=null,f,C;const x=t.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:c}=Hl(),{registerTimeout:S}=a.useTimeout(),{registerTick:q,removeTick:w}=a.useTick(),{transitionProps:M,transitionStyle:N}=a.useTransition(e,()=>Ft[e.position][0],()=>Ft[e.position][1]),A=t.computed(()=>N.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:F,hidePortal:W,portalIsAccessible:E,renderPortal:P}=a.usePortal(d,i,O,"dialog"),{hide:L}=a.useModelToggle({showing:s,hideOnRouteChange:x,handleShow:K,handleHide:te,processOnMount:!0});Pl(s);const G=t.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${Dl[e.position]}`+(p.value===!0?" q-dialog__inner--animating":"")+(e.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(e.fullHeight===!0?" q-dialog__inner--fullheight":"")+(e.square===!0?" q-dialog__inner--square":"")),Q=t.computed(()=>s.value===!0&&e.seamless!==!0),ee=t.computed(()=>e.autoClose===!0?{onClick:ne}:{}),V=t.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${Q.value===!0?"modal":"seamless"}`,u.class]);t.watch(()=>e.maximized,k=>{s.value===!0&&R(k)}),t.watch(Q,k=>{c(k),k===!0?(Te.addFocusout(v),Qt(oe)):(Te.removeFocusout(v),je(oe))});function K(k){_=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,R(e.maximized),F(),p.value=!0,e.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),q(J)):w(),S(()=>{if(d.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:I,bottom:T}=document.activeElement.getBoundingClientRect(),{innerHeight:B}=window,D=window.visualViewport!==void 0?window.visualViewport.height:B;I>0&&T>D/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-D,T>=B?1/0:Math.ceil(document.scrollingElement.scrollTop+T-D/2))),document.activeElement.scrollIntoView()}C=!0,i.value.click(),C=!1}F(!0),p.value=!1,l("show",k)},e.transitionDuration)}function te(k){w(),b(!0),p.value=!0,W(),_!==null&&(((k&&k.type.indexOf("key")===0?_.closest('[tabindex]:not([tabindex^="-"])'):void 0)||_).focus(),_=null),S(()=>{W(!0),p.value=!1,l("hide",k)},e.transitionDuration)}function J(k){a.addFocusFn(()=>{let I=i.value;if(I!==null){if(k!==void 0){const T=I.querySelector(k);if(T!==null){T.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 j(k){k&&typeof k.focus=="function"?k.focus({preventScroll:!0}):J(),l("shake");const I=i.value;I!==null&&(I.classList.remove("q-animate--scale"),I.classList.add("q-animate--scale"),y!==null&&clearTimeout(y),y=setTimeout(()=>{y=null,i.value!==null&&(I.classList.remove("q-animate--scale"),J())},170))}function oe(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&j():(l("escapeKey"),L()))}function b(k){y!==null&&(clearTimeout(y),y=null),(k===!0||s.value===!0)&&(R(!1),e.seamless!==!0&&(c(!1),Te.removeFocusout(v),je(oe))),k!==!0&&(_=null)}function R(k){k===!0?f!==!0&&(Ne<1&&document.body.classList.add("q-body--dialog"),Ne++,f=!0):f===!0&&(Ne<2&&document.body.classList.remove("q-body--dialog"),Ne--,f=!1)}function ne(k){C!==!0&&(L(k),l("click",k))}function r(k){e.persistent!==!0&&e.noBackdropDismiss!==!0?L(k):e.noShake!==!0&&j()}function v(k){e.allowFocusOutside!==!0&&E.value===!0&&a.childHasFocus(i.value,k.target)!==!0&&J('[tabindex]:not([tabindex="-1"])')}Object.assign(d.proxy,{focus:J,shake:j,__updateRefocusTarget(k){_=k||null}}),t.onBeforeUnmount(b);function O(){return t.h("div",{role:"dialog","aria-modal":Q.value===!0?"true":"false",...u,class:V.value},[t.h(t.Transition,{name:"q-transition--fade",appear:!0},()=>Q.value===!0?t.h("div",{class:"q-dialog__backdrop fixed-full",style:A.value,"aria-hidden":"true",tabindex:-1,onClick:r}):null),t.h(t.Transition,M.value,()=>s.value===!0?t.h("div",{ref:i,class:G.value,style:N.value,tabindex:-1,...ee.value},a.hSlot(o.default)):null)])}return P}});let Ue=!1;{const e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});const o=document.createElement("div");Object.assign(o.style,{width:"1000px",height:"1px"}),document.body.appendChild(e),e.appendChild(o),e.scrollLeft=-1e3,Ue=e.scrollLeft>=0,e.remove()}const ue=1e3,Kl=["start","center","end","start-force","center-force","end-force"],Wt=Array.prototype.filter,jl=window.getComputedStyle(document.body).overflowAnchor===void 0?a.noop:function(e,o){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;const l=e.children||[];Wt.call(l,d=>d.dataset&&d.dataset.qVsAnchor!==void 0).forEach(d=>{delete d.dataset.qVsAnchor});const u=l[o];u&&u.dataset&&(u.dataset.qVsAnchor="")}))};function ke(e,o){return e+o}function ot(e,o,l,u,d,i,s,p){const y=e===window?document.scrollingElement||document.documentElement:e,_=d===!0?"offsetWidth":"offsetHeight",f={scrollStart:0,scrollViewSize:-s-p,scrollMaxSize:0,offsetStart:-s,offsetEnd:-p};if(d===!0?(e===window?(f.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,f.scrollViewSize+=document.documentElement.clientWidth):(f.scrollStart=y.scrollLeft,f.scrollViewSize+=y.clientWidth),f.scrollMaxSize=y.scrollWidth,i===!0&&(f.scrollStart=(Ue===!0?f.scrollMaxSize-f.scrollViewSize:0)-f.scrollStart)):(e===window?(f.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,f.scrollViewSize+=document.documentElement.clientHeight):(f.scrollStart=y.scrollTop,f.scrollViewSize+=y.clientHeight),f.scrollMaxSize=y.scrollHeight),l!==null)for(let C=l.previousElementSibling;C!==null;C=C.previousElementSibling)C.classList.contains("q-virtual-scroll--skip")===!1&&(f.offsetStart+=C[_]);if(u!==null)for(let C=u.nextElementSibling;C!==null;C=C.nextElementSibling)C.classList.contains("q-virtual-scroll--skip")===!1&&(f.offsetEnd+=C[_]);if(o!==e){const C=y.getBoundingClientRect(),x=o.getBoundingClientRect();d===!0?(f.offsetStart+=x.left-C.left,f.offsetEnd-=x.width):(f.offsetStart+=x.top-C.top,f.offsetEnd-=x.height),e!==window&&(f.offsetStart+=f.scrollStart),f.offsetEnd+=f.scrollMaxSize-f.offsetStart}return f}function It(e,o,l,u){o==="end"&&(o=(e===window?document.body:e)[l===!0?"scrollWidth":"scrollHeight"]),e===window?l===!0?(u===!0&&(o=(Ue===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-o),window.scrollTo(o,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,o):l===!0?(u===!0&&(o=(Ue===!0?e.scrollWidth-e.offsetWidth:0)-o),e.scrollLeft=o):e.scrollTop=o}function Ae(e,o,l,u){if(l>=u)return 0;const d=o.length,i=Math.floor(l/ue),s=Math.floor((u-1)/ue)+1;let p=e.slice(i,s).reduce(ke,0);return l%ue!==0&&(p-=o.slice(i*ue,l).reduce(ke,0)),u%ue!==0&&u!==d&&(p-=o.slice(u,s*ue).reduce(ke,0)),p}const Ul={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]},zt={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...Ul};function Ql({virtualScrollLength:e,getVirtualScrollTarget:o,getVirtualScrollEl:l,virtualScrollItemSizeComputed:u}){const d=t.getCurrentInstance(),{props:i,emit:s,proxy:p}=d,{$q:y}=p;let _,f,C,x=[],c;const S=t.ref(0),q=t.ref(0),w=t.ref({}),M=t.ref(null),N=t.ref(null),A=t.ref(null),F=t.ref({from:0,to:0}),W=t.computed(()=>i.tableColspan!==void 0?i.tableColspan:100);u===void 0&&(u=t.computed(()=>i.virtualScrollItemSize));const E=t.computed(()=>u.value+";"+i.virtualScrollHorizontal),P=t.computed(()=>E.value+";"+i.virtualScrollSliceRatioBefore+";"+i.virtualScrollSliceRatioAfter);t.watch(P,()=>{j()}),t.watch(E,L);function L(){J(f,!0)}function G(r){J(r===void 0?f:r)}function Q(r,v){const O=o();if(O==null||O.nodeType===8)return;const k=ot(O,l(),M.value,N.value,i.virtualScrollHorizontal,y.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd);C!==k.scrollViewSize&&j(k.scrollViewSize),V(O,k,Math.min(e.value-1,Math.max(0,parseInt(r,10)||0)),0,Kl.indexOf(v)!==-1?v:f!==-1&&r>f?"end":"start")}function ee(){const r=o();if(r==null||r.nodeType===8)return;const v=ot(r,l(),M.value,N.value,i.virtualScrollHorizontal,y.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd),O=e.value-1,k=v.scrollMaxSize-v.offsetStart-v.offsetEnd-q.value;if(_===v.scrollStart)return;if(v.scrollMaxSize<=0){V(r,v,0,0);return}C!==v.scrollViewSize&&j(v.scrollViewSize),K(F.value.from);const I=Math.floor(v.scrollMaxSize-Math.max(v.scrollViewSize,v.offsetEnd)-Math.min(c[O],v.scrollViewSize/2));if(I>0&&Math.ceil(v.scrollStart)>=I){V(r,v,O,v.scrollMaxSize-v.offsetEnd-x.reduce(ke,0));return}let T=0,B=v.scrollStart-v.offsetStart,D=B;if(B<=k&&B+v.scrollViewSize>=S.value)B-=S.value,T=F.value.from,D=B;else for(let m=0;B>=x[m]&&T<O;m++)B-=x[m],T+=ue;for(;B>0&&T<O;)B-=c[T],B>-v.scrollViewSize?(T++,D=B):D=c[T]+B;V(r,v,T,D)}function V(r,v,O,k,I){const T=typeof I=="string"&&I.indexOf("-force")!==-1,B=T===!0?I.replace("-force",""):I,D=B!==void 0?B:"start";let m=Math.max(0,O-w.value[D]),X=m+w.value.total;X>e.value&&(X=e.value,m=Math.max(0,X-w.value.total)),_=v.scrollStart;const ie=m!==F.value.from||X!==F.value.to;if(ie===!1&&B===void 0){b(O);return}const{activeElement:ge}=document,ae=A.value;ie===!0&&ae!==null&&ae!==ge&&ae.contains(ge)===!0&&(ae.addEventListener("focusout",te),setTimeout(()=>{ae!==null&&ae.removeEventListener("focusout",te)})),jl(ae,O-m);const Fe=B!==void 0?c.slice(m,O).reduce(ke,0):0;if(ie===!0){const ce=X>=F.value.from&&m<=F.value.to?F.value.to:X;F.value={from:m,to:ce},S.value=Ae(x,c,0,m),q.value=Ae(x,c,X,e.value),requestAnimationFrame(()=>{F.value.to!==X&&_===v.scrollStart&&(F.value={from:F.value.from,to:X},q.value=Ae(x,c,X,e.value))})}requestAnimationFrame(()=>{if(_!==v.scrollStart)return;ie===!0&&K(m);const ce=c.slice(m,O).reduce(ke,0),de=ce+v.offsetStart+S.value,Ie=de+c[O];let qe=de+k;if(B!==void 0){const Qe=ce-Fe,Ve=v.scrollStart+Qe;qe=T!==!0&&Ve<de&&Ie<Ve+v.scrollViewSize?Ve:B==="end"?Ie-v.scrollViewSize:de-(B==="start"?0:Math.round((v.scrollViewSize-c[O])/2))}_=qe,It(r,qe,i.virtualScrollHorizontal,y.lang.rtl),b(O)})}function K(r){const v=A.value;if(v){const O=Wt.call(v.children,m=>m.classList&&m.classList.contains("q-virtual-scroll--skip")===!1),k=O.length,I=i.virtualScrollHorizontal===!0?m=>m.getBoundingClientRect().width:m=>m.offsetHeight;let T=r,B,D;for(let m=0;m<k;){for(B=I(O[m]),m++;m<k&&O[m].classList.contains("q-virtual-scroll--with-prev")===!0;)B+=I(O[m]),m++;D=B-c[T],D!==0&&(c[T]+=D,x[Math.floor(T/ue)]+=D),T++}}}function te(){A.value!==null&&A.value!==void 0&&A.value.focus()}function J(r,v){const O=1*u.value;(v===!0||Array.isArray(c)===!1)&&(c=[]);const k=c.length;c.length=e.value;for(let T=e.value-1;T>=k;T--)c[T]=O;const I=Math.floor((e.value-1)/ue);x=[];for(let T=0;T<=I;T++){let B=0;const D=Math.min((T+1)*ue,e.value);for(let m=T*ue;m<D;m++)B+=c[m];x.push(B)}f=-1,_=void 0,S.value=Ae(x,c,0,F.value.from),q.value=Ae(x,c,F.value.to,e.value),r>=0?(K(F.value.from),t.nextTick(()=>{Q(r)})):R()}function j(r){if(r===void 0&&typeof window<"u"){const B=o();B!=null&&B.nodeType!==8&&(r=ot(B,l(),M.value,N.value,i.virtualScrollHorizontal,y.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd).scrollViewSize)}C=r;const v=parseFloat(i.virtualScrollSliceRatioBefore)||0,O=parseFloat(i.virtualScrollSliceRatioAfter)||0,k=1+v+O,I=r===void 0||r<=0?1:Math.ceil(r/u.value),T=Math.max(1,I,Math.ceil((i.virtualScrollSliceSize>0?i.virtualScrollSliceSize:10)/k));w.value={total:Math.ceil(T*k),start:Math.ceil(T*v),center:Math.ceil(T*(.5+v)),end:Math.ceil(T*(1+v)),view:I}}function oe(r,v){const O=i.virtualScrollHorizontal===!0?"width":"height",k={["--q-virtual-scroll-item-"+O]:u.value+"px"};return[r==="tbody"?t.h(r,{class:"q-virtual-scroll__padding",key:"before",ref:M},[t.h("tr",[t.h("td",{style:{[O]:`${S.value}px`,...k},colspan:W.value})])]):t.h(r,{class:"q-virtual-scroll__padding",key:"before",ref:M,style:{[O]:`${S.value}px`,...k}}),t.h(r,{class:"q-virtual-scroll__content",key:"content",ref:A,tabindex:-1},v.flat()),r==="tbody"?t.h(r,{class:"q-virtual-scroll__padding",key:"after",ref:N},[t.h("tr",[t.h("td",{style:{[O]:`${q.value}px`,...k},colspan:W.value})])]):t.h(r,{class:"q-virtual-scroll__padding",key:"after",ref:N,style:{[O]:`${q.value}px`,...k}})]}function b(r){f!==r&&(i.onVirtualScroll!==void 0&&s("virtualScroll",{index:r,from:F.value.from,to:F.value.to-1,direction:r<f?"decrease":"increase",ref:p}),f=r)}j();const R=Dt(ee,y.platform.is.ios===!0?120:35);t.onBeforeMount(()=>{j()});let ne=!1;return t.onDeactivated(()=>{ne=!0}),t.onActivated(()=>{if(ne!==!0)return;const r=o();_!==void 0&&r!==void 0&&r!==null&&r.nodeType!==8?It(r,_,i.virtualScrollHorizontal,y.lang.rtl):Q(f)}),t.onBeforeUnmount(()=>{R.cancel()}),Object.assign(p,{scrollTo:Q,reset:L,refresh:G}),{virtualScrollSliceRange:F,virtualScrollSliceSizeComputed:w,setVirtualScrollSize:j,onVirtualScrollEvt:R,localResetVirtualScroll:J,padVirtualScroll:oe,scrollTo:Q,reset:L,refresh:G}}const Wl=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,Xl=/[\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,Yl=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,Zl=/[a-z0-9_ -]$/i;function Jl(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"&&(a.client.is.firefox===!0?Zl.test(l.data)===!1:Wl.test(l.data)===!0||Xl.test(l.data)===!0||Yl.test(l.data)===!0)===!0&&(l.target.qComposing=!0)}}function se(e,o){if(e===o)return!0;if(e!==null&&o!==null&&typeof e=="object"&&typeof o=="object"){if(e.constructor!==o.constructor)return!1;let l,u;if(e.constructor===Array){if(l=e.length,l!==o.length)return!1;for(u=l;u--!==0;)if(se(e[u],o[u])!==!0)return!1;return!0}if(e.constructor===Map){if(e.size!==o.size)return!1;let i=e.entries();for(u=i.next();u.done!==!0;){if(o.has(u.value[0])!==!0)return!1;u=i.next()}for(i=e.entries(),u=i.next();u.done!==!0;){if(se(u.value[1],o.get(u.value[0]))!==!0)return!1;u=i.next()}return!0}if(e.constructor===Set){if(e.size!==o.size)return!1;const i=e.entries();for(u=i.next();u.done!==!0;){if(o.has(u.value[0])!==!0)return!1;u=i.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(l=e.length,l!==o.length)return!1;for(u=l;u--!==0;)if(e[u]!==o[u])return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===o.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===o.toString();const d=Object.keys(e).filter(i=>e[i]!==void 0);if(l=d.length,l!==Object.keys(o).filter(i=>o[i]!==void 0).length)return!1;for(u=l;u--!==0;){const i=d[u];if(se(e[i],o[i])!==!0)return!1}return!0}return e!==e&&o!==o}function Pt(e,o,l){if(l<=o)return o;const u=l-o+1;let d=o+(e-o)%u;return d<o&&(d=u+d),d===0?0:d}const Mt=e=>["add","add-unique","toggle"].includes(e),Gl=".*+?^${}()|[]\\",eo=Object.keys(at);function nt(e,o){if(typeof e=="function")return e;const l=e!==void 0?e:o;return u=>u!==null&&typeof u=="object"&&l in u?u[l]:u}const to=a.createComponent({name:"QSelect",inheritAttrs:!1,props:{...zt,...Lt,...at,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:Mt},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:zt.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...Nt,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:o,emit:l}){const{proxy:u}=t.getCurrentInstance(),{$q:d}=u,i=t.ref(!1),s=t.ref(!1),p=t.ref(-1),y=t.ref(""),_=t.ref(!1),f=t.ref(!1);let C=null,x=null,c,S,q,w=null,M,N,A,F;const W=t.ref(null),E=t.ref(null),P=t.ref(null),L=t.ref(null),G=t.ref(null),Q=vl(e),ee=Jl(pt),V=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:te,virtualScrollSliceSizeComputed:J,localResetVirtualScroll:j,padVirtualScroll:oe,onVirtualScrollEvt:b,scrollTo:R,setVirtualScrollSize:ne}=Ql({virtualScrollLength:V,getVirtualScrollTarget:Jt,getVirtualScrollEl:ht,virtualScrollItemSizeComputed:K}),r=Kt(),v=t.computed(()=>{const n=e.mapOptions===!0&&e.multiple!==!0,h=e.modelValue!==void 0&&(e.modelValue!==null||n===!0)?e.multiple===!0&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions===!0&&Array.isArray(e.options)===!0){const g=e.mapOptions===!0&&c!==void 0?c:[],z=h.map(H=>Zt(H,g));return e.modelValue===null&&n===!0?z.filter(H=>H!==null):z}return h}),O=t.computed(()=>{const n={};return eo.forEach(h=>{const g=e[h];g!==void 0&&(n[h]=g)}),n}),k=t.computed(()=>e.optionsDark===null?r.isDark.value:e.optionsDark),I=t.computed(()=>it(v.value)),T=t.computed(()=>{let n="q-field__input q-placeholder col";return e.hideSelected===!0||v.value.length===0?[n,e.inputClass]:(n+=" q-field__input--padding",e.inputClass===void 0?n:[n,e.inputClass])}),B=t.computed(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),D=t.computed(()=>V.value===0),m=t.computed(()=>v.value.map(n=>le.value(n)).join(", ")),X=t.computed(()=>e.displayValue!==void 0?e.displayValue:m.value),ie=t.computed(()=>e.optionsHtml===!0?()=>!0:n=>n!=null&&n.html===!0),ge=t.computed(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||v.value.some(ie.value))),ae=t.computed(()=>r.focused.value===!0?e.tabindex:-1),Fe=t.computed(()=>{const n={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":`${r.targetUid.value}_lb`};return p.value>=0&&(n["aria-activedescendant"]=`${r.targetUid.value}_${p.value}`),n}),ce=t.computed(()=>({id:`${r.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),de=t.computed(()=>v.value.map((n,h)=>({index:h,opt:n,html:ie.value(n),selected:!0,removeAtIndex:Yt,toggleOption:fe,tabindex:ae.value}))),Ie=t.computed(()=>{if(V.value===0)return[];const{from:n,to:h}=te.value;return e.options.slice(n,h).map((g,z)=>{const H=pe.value(g)===!0,$=Xe(g)===!0,Y=n+z,U={clickable:!0,active:$,activeClass:Ve.value,manualFocus:!0,focused:!1,disable:H,tabindex:-1,dense:e.optionsDense,dark:k.value,role:"option","aria-selected":$===!0?"true":"false",id:`${r.targetUid.value}_${Y}`,onClick:()=>{fe(g)}};return H!==!0&&(p.value===Y&&(U.focused=!0),d.platform.is.desktop===!0&&(U.onMousemove=()=>{i.value===!0&&be(Y)})),{index:Y,opt:g,html:ie.value(g),label:le.value(g),selected:U.active,focused:U.focused,toggleOption:fe,setOptionIndex:be,itemProps:U}})}),qe=t.computed(()=>e.dropdownIcon!==void 0?e.dropdownIcon:d.iconSet.arrow.dropdown),Qe=t.computed(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),Ve=t.computed(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),re=t.computed(()=>nt(e.optionValue,"value")),le=t.computed(()=>nt(e.optionLabel,"label")),pe=t.computed(()=>nt(e.optionDisable,"disable")),ze=t.computed(()=>v.value.map(re.value)),Xt=t.computed(()=>{const n={onInput:pt,onChange:ee,onKeydown:mt,onKeyup:ft,onKeypress:vt,onFocus:ct,onClick(h){S===!0&&a.stop(h)}};return n.onCompositionstart=n.onCompositionupdate=n.onCompositionend=ee,n});t.watch(v,n=>{c=n,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&r.innerLoading.value!==!0&&(s.value!==!0&&i.value!==!0||I.value!==!0)&&(q!==!0&&Ce(),(s.value===!0||i.value===!0)&&ye(""))},{immediate:!0}),t.watch(()=>e.fillInput,Ce),t.watch(i,Ye),t.watch(V,cl);function rt(n){return e.emitValue===!0?re.value(n):n}function We(n){if(n!==-1&&n<v.value.length)if(e.multiple===!0){const h=e.modelValue.slice();l("remove",{index:n,value:h.splice(n,1)[0]}),l("update:modelValue",h)}else l("update:modelValue",null)}function Yt(n){We(n),r.focus()}function st(n,h){const g=rt(n);if(e.multiple!==!0){e.fillInput===!0&&_e(le.value(n),!0,!0),l("update:modelValue",g);return}if(v.value.length===0){l("add",{index:0,value:g}),l("update:modelValue",e.multiple===!0?[g]:g);return}if(h===!0&&Xe(n)===!0||e.maxValues!==void 0&&e.modelValue.length>=e.maxValues)return;const z=e.modelValue.slice();l("add",{index:z.length,value:g}),z.push(g),l("update:modelValue",z)}function fe(n,h){if(r.editable.value!==!0||n===void 0||pe.value(n)===!0)return;const g=re.value(n);if(e.multiple!==!0){h!==!0&&(_e(e.fillInput===!0?le.value(n):"",!0,!0),ve()),E.value!==null&&E.value.focus(),(v.value.length===0||se(re.value(v.value[0]),g)!==!0)&&l("update:modelValue",e.emitValue===!0?g:n);return}if((S!==!0||_.value===!0)&&r.focus(),ct(),v.value.length===0){const $=e.emitValue===!0?g:n;l("add",{index:0,value:$}),l("update:modelValue",e.multiple===!0?[$]:$);return}const z=e.modelValue.slice(),H=ze.value.findIndex($=>se($,g));if(H!==-1)l("remove",{index:H,value:z.splice(H,1)[0]});else{if(e.maxValues!==void 0&&z.length>=e.maxValues)return;const $=e.emitValue===!0?g:n;l("add",{index:z.length,value:$}),z.push($)}l("update:modelValue",z)}function be(n){if(d.platform.is.desktop!==!0)return;const h=n!==-1&&n<V.value?n:-1;p.value!==h&&(p.value=h)}function Pe(n=1,h){if(i.value===!0){let g=p.value;do g=Pt(g+n,-1,V.value-1);while(g!==-1&&g!==p.value&&pe.value(e.options[g])===!0);p.value!==g&&(be(g),R(g),h!==!0&&e.useInput===!0&&e.fillInput===!0&&Me(g>=0?le.value(e.options[g]):M,!0))}}function Zt(n,h){const g=z=>se(re.value(z),n);return e.options.find(g)||h.find(g)||n}function Xe(n){const h=re.value(n);return ze.value.find(g=>se(g,h))!==void 0}function ct(n){e.useInput===!0&&E.value!==null&&(n===void 0||E.value===n.target&&n.target.value===m.value)&&E.value.select()}function dt(n){a.isKeyCode(n,27)===!0&&i.value===!0&&(a.stop(n),ve(),Ce()),l("keyup",n)}function ft(n){const{value:h}=n.target;if(n.keyCode!==void 0){dt(n);return}if(n.target.value="",C!==null&&(clearTimeout(C),C=null),x!==null&&(clearTimeout(x),x=null),Ce(),typeof h=="string"&&h.length!==0){const g=h.toLocaleLowerCase(),z=$=>{const Y=e.options.find(U=>String($.value(U)).toLocaleLowerCase()===g);return Y===void 0?!1:(v.value.indexOf(Y)===-1?fe(Y):ve(),!0)},H=$=>{z(re)!==!0&&$!==!0&&z(le)!==!0&&ye(h,!0,()=>H(!0))};H()}else r.clearValue(n)}function vt(n){l("keypress",n)}function mt(n){if(l("keydown",n),a.shouldIgnoreKey(n)===!0)return;const h=y.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),g=n.shiftKey!==!0&&e.disableTabSelection!==!0&&e.multiple!==!0&&(p.value!==-1||h===!0);if(n.keyCode===27){a.prevent(n);return}if(n.keyCode===9&&g===!1){Se();return}if(n.target===void 0||n.target.id!==r.targetUid.value||r.editable.value!==!0)return;if(n.keyCode===40&&r.innerLoading.value!==!0&&i.value===!1){a.stopAndPrevent(n),we();return}if(n.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&y.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?We(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&l("update:modelValue",null);return}(n.keyCode===35||n.keyCode===36)&&(typeof y.value!="string"||y.value.length===0)&&(a.stopAndPrevent(n),p.value=-1,Pe(n.keyCode===36?1:-1,e.multiple)),(n.keyCode===33||n.keyCode===34)&&J.value!==void 0&&(a.stopAndPrevent(n),p.value=Math.max(-1,Math.min(V.value,p.value+(n.keyCode===33?-1:1)*J.value.view)),Pe(n.keyCode===33?1:-1,e.multiple)),(n.keyCode===38||n.keyCode===40)&&(a.stopAndPrevent(n),Pe(n.keyCode===38?-1:1,e.multiple));const z=V.value;if((A===void 0||F<Date.now())&&(A=""),z>0&&e.useInput!==!0&&n.key!==void 0&&n.key.length===1&&n.altKey===!1&&n.ctrlKey===!1&&n.metaKey===!1&&(n.keyCode!==32||A.length!==0)){i.value!==!0&&we(n);const H=n.key.toLocaleLowerCase(),$=A.length===1&&A[0]===H;F=Date.now()+1500,$===!1&&(a.stopAndPrevent(n),A+=H);const Y=new RegExp("^"+A.split("").map(Ze=>Gl.indexOf(Ze)!==-1?"\\"+Ze:Ze).join(".*"),"i");let U=p.value;if($===!0||U<0||Y.test(le.value(e.options[U]))!==!0)do U=Pt(U+1,-1,z-1);while(U!==p.value&&(pe.value(e.options[U])===!0||Y.test(le.value(e.options[U]))!==!0));p.value!==U&&t.nextTick(()=>{be(U),R(U),U>=0&&e.useInput===!0&&e.fillInput===!0&&Me(le.value(e.options[U]),!0)});return}if(!(n.keyCode!==13&&(n.keyCode!==32||e.useInput===!0||A!=="")&&(n.keyCode!==9||g===!1))){if(n.keyCode!==9&&a.stopAndPrevent(n),p.value!==-1&&p.value<z){fe(e.options[p.value]);return}if(h===!0){const H=($,Y)=>{if(Y){if(Mt(Y)!==!0)return}else Y=e.newValueMode;if(_e("",e.multiple!==!0,!0),$==null)return;(Y==="toggle"?fe:st)($,Y==="add-unique"),e.multiple!==!0&&(E.value!==null&&E.value.focus(),ve())};if(e.onNewValue!==void 0?l("newValue",y.value,H):H(y.value),e.multiple!==!0)return}i.value===!0?Se():r.innerLoading.value!==!0&&we()}}function ht(){return S===!0?G.value:P.value!==null&&P.value.contentEl!==null?P.value.contentEl:void 0}function Jt(){return ht()}function Gt(){return e.hideSelected===!0?[]:o["selected-item"]!==void 0?de.value.map(n=>o["selected-item"](n)).slice():o.selected!==void 0?[].concat(o.selected()):e.useChips===!0?de.value.map((n,h)=>t.h(Rl,{key:"option-"+h,removable:r.editable.value===!0&&pe.value(n.opt)!==!0,dense:!0,textColor:e.color,tabindex:ae.value,onRemove(){n.removeAtIndex(h)}},()=>t.h("span",{class:"ellipsis",[n.html===!0?"innerHTML":"textContent"]:le.value(n.opt)}))):[t.h("span",{[ge.value===!0?"innerHTML":"textContent"]:X.value})]}function gt(){if(D.value===!0)return o["no-option"]!==void 0?o["no-option"]({inputValue:y.value}):void 0;const n=o.option!==void 0?o.option:g=>t.h(Ht,{key:g.index,...g.itemProps},()=>t.h(Ke,()=>t.h($t,()=>t.h("span",{[g.html===!0?"innerHTML":"textContent"]:g.label}))));let h=oe("div",Ie.value.map(n));return o["before-options"]!==void 0&&(h=o["before-options"]().concat(h)),a.hMergeSlot(o["after-options"],h)}function el(n,h){const g=h===!0?{...Fe.value,...r.splitAttrs.attributes.value}:void 0,z={ref:h===!0?E:void 0,key:"i_t",class:T.value,style:e.inputStyle,value:y.value!==void 0?y.value:"",type:"search",...g,id:h===!0?r.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":n===!0||e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...Xt.value};return n!==!0&&S===!0&&(Array.isArray(z.class)===!0?z.class=[...z.class,"no-pointer-events"]:z.class+=" no-pointer-events"),t.h("input",z)}function pt(n){C!==null&&(clearTimeout(C),C=null),x!==null&&(clearTimeout(x),x=null),!(n&&n.target&&n.target.qComposing===!0)&&(Me(n.target.value||""),q=!0,M=y.value,r.focused.value!==!0&&(S!==!0||_.value===!0)&&r.focus(),e.onFilter!==void 0&&(C=setTimeout(()=>{C=null,ye(y.value)},e.inputDebounce)))}function Me(n,h){y.value!==n&&(y.value=n,h===!0||e.inputDebounce===0||e.inputDebounce==="0"?l("inputValue",n):x=setTimeout(()=>{x=null,l("inputValue",n)},e.inputDebounce))}function _e(n,h,g){q=g!==!0,e.useInput===!0&&(Me(n,!0),(h===!0||g!==!0)&&(M=n),h!==!0&&ye(n))}function ye(n,h,g){if(e.onFilter===void 0||h!==!0&&r.focused.value!==!0)return;r.innerLoading.value===!0?l("filterAbort"):(r.innerLoading.value=!0,f.value=!0),n!==""&&e.multiple!==!0&&v.value.length!==0&&q!==!0&&n===le.value(v.value[0])&&(n="");const z=setTimeout(()=>{i.value===!0&&(i.value=!1)},10);w!==null&&clearTimeout(w),w=z,l("filter",n,(H,$)=>{(h===!0||r.focused.value===!0)&&w===z&&(clearTimeout(w),typeof H=="function"&&H(),f.value=!1,t.nextTick(()=>{r.innerLoading.value=!1,r.editable.value===!0&&(h===!0?i.value===!0&&ve():i.value===!0?Ye(!0):i.value=!0),typeof $=="function"&&t.nextTick(()=>{$(u)}),typeof g=="function"&&t.nextTick(()=>{g(u)})}))},()=>{r.focused.value===!0&&w===z&&(clearTimeout(w),r.innerLoading.value=!1,f.value=!1),i.value===!0&&(i.value=!1)})}function tl(){return t.h(zl,{ref:P,class:B.value,style:e.popupContentStyle,modelValue:i.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&D.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:k.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:Qe.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...ce.value,onScrollPassive:b,onBeforeShow:yt,onBeforeHide:ll,onShow:ol},gt)}function ll(n){St(n),Se()}function ol(){ne()}function nl(n){a.stop(n),E.value!==null&&E.value.focus(),_.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function ul(n){a.stop(n),t.nextTick(()=>{_.value=!1})}function il(){const n=[t.h(El,{class:`col-auto ${r.fieldClass.value}`,...O.value,for:r.targetUid.value,dark:k.value,square:!0,loading:f.value,itemAligned:!1,filled:!0,stackLabel:y.value.length!==0,...r.splitAttrs.listeners.value,onFocus:nl,onBlur:ul},{...o,rawControl:()=>r.getControl(!0),before:void 0,after:void 0})];return i.value===!0&&n.push(t.h("div",{ref:G,class:B.value+" scroll",style:e.popupContentStyle,...ce.value,onClick:a.prevent,onScrollPassive:b},gt())),t.h(Nl,{ref:L,modelValue:s.value,position:e.useInput===!0?"top":void 0,transitionShow:N,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:yt,onBeforeHide:al,onHide:rl,onShow:sl},()=>t.h("div",{class:"q-select__dialog"+(k.value===!0?" q-select__dialog--dark q-dark":"")+(_.value===!0?" q-select__dialog--focused":"")},n))}function al(n){St(n),L.value!==null&&L.value.__updateRefocusTarget(r.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),r.focused.value=!1}function rl(n){ve(),r.focused.value===!1&&l("blur",n),Ce()}function sl(){const n=document.activeElement;(n===null||n.id!==r.targetUid.value)&&E.value!==null&&E.value!==n&&E.value.focus(),ne()}function Se(){s.value!==!0&&(p.value=-1,i.value===!0&&(i.value=!1),r.focused.value===!1&&(w!==null&&(clearTimeout(w),w=null),r.innerLoading.value===!0&&(l("filterAbort"),r.innerLoading.value=!1,f.value=!1)))}function we(n){r.editable.value===!0&&(S===!0?(r.onControlFocusin(n),s.value=!0,t.nextTick(()=>{r.focus()})):r.focus(),e.onFilter!==void 0?ye(y.value):(D.value!==!0||o["no-option"]!==void 0)&&(i.value=!0))}function ve(){s.value=!1,Se()}function Ce(){e.useInput===!0&&_e(e.multiple!==!0&&e.fillInput===!0&&v.value.length!==0&&le.value(v.value[0])||"",!0,!0)}function Ye(n){let h=-1;if(n===!0){if(v.value.length!==0){const g=re.value(v.value[0]);h=e.options.findIndex(z=>se(re.value(z),g))}j(h)}be(h)}function cl(n,h){i.value===!0&&r.innerLoading.value===!1&&(j(-1,!0),t.nextTick(()=>{i.value===!0&&r.innerLoading.value===!1&&(n>h?j():Ye(!0))}))}function bt(){s.value===!1&&P.value!==null&&P.value.updatePosition()}function yt(n){n!==void 0&&a.stop(n),l("popupShow",n),r.hasPopupOpen=!0,r.onControlFocusin(n)}function St(n){n!==void 0&&a.stop(n),l("popupHide",n),r.hasPopupOpen=!1,r.onControlFocusout(n)}function wt(){S=d.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?o["no-option"]!==void 0||e.onFilter!==void 0||D.value===!1:!0),N=d.platform.is.ios===!0&&S===!0&&e.useInput===!0?"fade":e.transitionShow}return t.onBeforeUpdate(wt),t.onUpdated(bt),wt(),t.onBeforeUnmount(()=>{C!==null&&clearTimeout(C),x!==null&&clearTimeout(x)}),Object.assign(u,{showPopup:we,hidePopup:ve,removeAtIndex:We,add:st,toggleOption:fe,getOptionIndex:()=>p.value,setOptionIndex:be,moveOptionSelection:Pe,filter:ye,updateMenuPosition:bt,updateInputValue:_e,isOptionSelected:Xe,getEmittingOptionValue:rt,isOptionDisabled:(...n)=>pe.value.apply(null,n)===!0,getOptionValue:(...n)=>re.value.apply(null,n),getOptionLabel:(...n)=>le.value.apply(null,n)}),Object.assign(r,{innerValue:v,fieldClass:t.computed(()=>`q-select q-field--auto-height q-select--with${e.useInput!==!0?"out":""}-input q-select--with${e.useChips!==!0?"out":""}-chips q-select--${e.multiple===!0?"multiple":"single"}`),inputRef:W,targetRef:E,hasValue:I,showPopup:we,floatingLabel:t.computed(()=>e.hideSelected!==!0&&I.value===!0||typeof y.value=="number"||y.value.length!==0||it(e.displayValue)),getControlChild:()=>{if(r.editable.value!==!1&&(s.value===!0||D.value!==!0||o["no-option"]!==void 0))return S===!0?il():tl();r.hasPopupOpen===!0&&(r.hasPopupOpen=!1)},controlEvents:{onFocusin(n){r.onControlFocusin(n)},onFocusout(n){r.onControlFocusout(n,()=>{Ce(),Se()})},onClick(n){if(a.prevent(n),S!==!0&&i.value===!0){Se(),E.value!==null&&E.value.focus();return}we(n)}},getControl:n=>{const h=Gt(),g=n===!0||s.value!==!0||S!==!0;if(e.useInput===!0)h.push(el(n,g));else if(r.editable.value===!0){const H=g===!0?Fe.value:void 0;h.push(t.h("input",{ref:g===!0?E:void 0,key:"d_t",class:"q-select__focus-target",id:g===!0?r.targetUid.value:void 0,value:X.value,readonly:!0,"data-autofocus":n===!0||e.autofocus===!0||void 0,...H,onKeydown:mt,onKeyup:dt,onKeypress:vt})),g===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&h.push(t.h("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:ft}))}if(Q.value!==void 0&&e.disable!==!0&&ze.value.length!==0){const H=ze.value.map($=>t.h("option",{value:$,selected:!0}));h.push(t.h("select",{class:"hidden",name:Q.value,multiple:e.multiple},H))}const z=e.useInput===!0||g!==!0?void 0:r.splitAttrs.attributes.value;return t.h("div",{class:"q-field__native row items-center",...z,...r.splitAttrs.listeners.value},h)},getInnerAppend:()=>e.loading!==!0&&f.value!==!0&&e.hideDropdownIcon!==!0?[t.h(a.QIcon,{class:"q-select__dropdown-icon"+(i.value===!0?" rotate-180":""),name:qe.value})]:null}),jt(r)}}),lo={class:"app-select__amount"},oo=t.defineComponent({__name:"AppSelect",props:{modelValue:{},size:{default:a.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:o}){const l=e,u=o,d=t.ref(!1),i=t.ref(""),s=t.computed({get(){if(l.modelValue){if(l.multiple&&Array.isArray(l.modelValue))return l.options.filter(c=>l.modelValue.includes(c.value));if(!Array.isArray(l.modelValue))return l.options.find(c=>c.value===l.modelValue)}},set(c){if(!c){u("update:modelValue",void 0);return}if(l.multiple&&Array.isArray(c)){const S=c.map(q=>q.value);u("update:modelValue",S)}else Array.isArray(c)||u("update:modelValue",c.value)}}),p=t.computed(()=>{var c;if(Array.isArray(s.value)){if(l.multiple&&s.value.length==0)return l.placeholder}else return((c=s.value)==null?void 0:c.label)||l.placeholder||"";return""}),y=t.computed(()=>!(!l.clearable||!l.modelValue||l.modelValue&&Array.isArray(l.modelValue)&&!l.modelValue.length)),_=t.computed(()=>i.value?l.options.filter(c=>c.label.toLowerCase().includes(i.value.toLowerCase())):l.options),f=t.computed(()=>{if(l.rules)return l.required?[...l.rules,Ct]:l.rules;if(l.required)return[Ct]}),C=()=>{s.value=void 0},x=(c,S)=>{S(()=>{i.value=c})};return(c,S)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["app-select",[{"app-select_opened":d.value},`app-select_${c.size}`]])},[c.label?(t.openBlock(),t.createElementBlock("label",{key:0,class:t.normalizeClass(["app-select__label",{"app-select__label_bold":c.required}])},t.toDisplayString(c.required?`${c.label} *`:c.label),3)):t.createCommentVNode("",!0),t.createVNode(t.unref(to),{standout:"","hide-bottom-space":"","hide-dropdown-icon":"","no-error-icon":"",behavior:"menu","popup-no-route-dismiss":"","popup-content-class":`app-select-menu app-select-menu_${c.size} ${c.menuClass}`,placeholder:c.filtering&&"Почніть вводити","input-debounce":"50",modelValue:s.value,"onUpdate:modelValue":S[0]||(S[0]=q=>s.value=q),options:_.value,multiple:c.multiple,"use-input":c.filtering&&(Array.isArray(s.value)||!s.value),rules:f.value,"lazy-rules":c.lazyRules,autofocus:c.autofocus,disable:c.disabled,loading:c.loading,onFilter:x,onPopupShow:S[1]||(S[1]=q=>d.value=!0),onPopupHide:S[2]||(S[2]=q=>d.value=!1)},{append:t.withCtx(()=>[y.value?(t.openBlock(),t.createElementBlock("i",{key:0,class:"icon-kl icon-kl-close app-select__clear",onClick:t.withModifiers(C,["stop","prevent"])})):t.createCommentVNode("",!0),S[3]||(S[3]=t.createElementVNode("i",{class:"icon-kl icon-kl-arrow-down app-select__drop-icon"},null,-1))]),selected:t.withCtx(()=>{var q,w;return[Array.isArray(s.value)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[!c.filtering||s.value.length?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["app-select__selected",{"app-select__placeholder":!((q=s.value)!=null&&q.length)&&c.placeholder}])},[(w=s.value)!=null&&w.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[S[4]||(S[4]=t.createTextVNode(" Вибрано ")),t.createElementVNode("span",lo,t.toDisplayString(s.value.length),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(l.placeholder),1)],64))],2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[!c.filtering||s.value?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["app-select__selected",{"app-select__placeholder":!s.value&&c.placeholder}])},t.toDisplayString(p.value),3)):t.createCommentVNode("",!0)],64))]}),option:t.withCtx(q=>[t.createVNode(Ht,t.mergeProps({class:["app-select__option",{"app-select__option_selected":q.selected}]},q.itemProps),{default:t.withCtx(()=>[l.multiple?(t.openBlock(),t.createBlock(Ke,{key:0,class:"option-multiple",avatar:""},{default:t.withCtx(()=>[t.createVNode(yl,{size:"30px","model-value":q.selected,"onUpdate:modelValue":()=>q.toggleOption(q.opt)},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024)):t.createCommentVNode("",!0),q.opt.done?(t.openBlock(),t.createBlock(Ke,{key:1,class:"option-done",avatar:""},{default:t.withCtx(()=>S[5]||(S[5]=[t.createElementVNode("i",{class:"icon-kl icon-kl-check option-done__icon"},null,-1)])),_:1})):t.createCommentVNode("",!0),t.createVNode(Ke,null,{default:t.withCtx(()=>[t.createVNode($t,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(q.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))}}),no=a._export_sfc(oo,[["__scopeId","data-v-c0cede33"]]);exports.default=no;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { o as i } from "./index-CIzSoIId.js";
|
|
2
|
+
const e = [];
|
|
3
|
+
function t(n) {
|
|
4
|
+
e[e.length - 1](n);
|
|
5
|
+
}
|
|
6
|
+
function c(n) {
|
|
7
|
+
i.is.desktop === !0 && (e.push(n), e.length === 1 && document.body.addEventListener("focusin", t));
|
|
8
|
+
}
|
|
9
|
+
function u(n) {
|
|
10
|
+
const o = e.indexOf(n);
|
|
11
|
+
o !== -1 && (e.splice(o, 1), e.length === 0 && document.body.removeEventListener("focusin", t));
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
c as a,
|
|
15
|
+
u as r
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("./index-BqmIMh0f.cjs"),e=[];function o(n){e[e.length-1](n)}function u(n){i.client.is.desktop===!0&&(e.push(n),e.length===1&&document.body.addEventListener("focusin",o))}function s(n){const t=e.indexOf(n);t!==-1&&(e.splice(t,1),e.length===0&&document.body.removeEventListener("focusin",o))}exports.addFocusout=u;exports.removeFocusout=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const l=require("vue"),Ne={PRIMARY:"primary",INFO:"info"},R={SM:"sm",MD:"md",LG:"lg"},St={[R.SM]:"3px 9px",[R.MD]:"5px 12px",[R.LG]:"9px 20px"},se={xs:18,sm:24,md:32,lg:38,xl:46},ye={size:String};function we(e,t=se){return l.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function ke(e,t,i,n){return Object.defineProperty(e,t,{get:i,set:n,enumerable:!0}),e}function Q(e){return l.markRaw(l.defineComponent(e))}function Ct(e){return l.markRaw(e)}function xe(e,t){return e!==void 0&&e()||t}function Et(e,t){if(e!==void 0){const i=e();if(i!=null)return i.slice()}return t}function F(e,t){return e!==void 0?t.concat(e()):t}function Tt(e,t){return e===void 0?t:t!==void 0?t.concat(e()):e()}function Pt(e,t,i,n,o,u){t.key=n+o;const a=l.h(e,t,i);return o===!0?l.withDirectives(a,u()):a}const $e="0 0 24 24",qe=e=>e,re=e=>`ionicons ${e}`,Ve={"mdi-":e=>`mdi ${e}`,"icon-":qe,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":re,"ion-ios":re,"ion-logo":re,"iconfont ":qe,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},Fe={o_:"-outlined",r_:"-round",s_:"-sharp"},Qe={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},$t=new RegExp("^("+Object.keys(Ve).join("|")+")"),qt=new RegExp("^("+Object.keys(Fe).join("|")+")"),Me=new RegExp("^("+Object.keys(Qe).join("|")+")"),Mt=/^[Mm]\s?[-+]?\.?\d/,Lt=/^img:/,Bt=/^svguse:/,Rt=/^ion-/,_t=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,ce=Q({name:"QIcon",props:{...ye,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:i}}=l.getCurrentInstance(),n=we(e),o=l.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),u=l.computed(()=>{let a,r=e.name;if(r==="none"||!r)return{none:!0};if(i.iconMapFn!==null){const c=i.iconMapFn(r);if(c!==void 0)if(c.icon!==void 0){if(r=c.icon,r==="none"||!r)return{none:!0}}else return{cls:c.cls,content:c.content!==void 0?c.content:" "}}if(Mt.test(r)===!0){const[c,y=$e]=r.split("|");return{svg:!0,viewBox:y,nodes:c.split("&&").map(d=>{const[s,f,k]=d.split("@@");return l.h("path",{style:f,d:s,transform:k})})}}if(Lt.test(r)===!0)return{img:!0,src:r.substring(4)};if(Bt.test(r)===!0){const[c,y=$e]=r.split("|");return{svguse:!0,src:c.substring(7),viewBox:y}}let h=" ";const v=r.match($t);if(v!==null)a=Ve[v[1]](r);else if(_t.test(r)===!0)a=r;else if(Rt.test(r)===!0)a=`ionicons ion-${i.platform.is.ios===!0?"ios":"md"}${r.substring(3)}`;else if(Me.test(r)===!0){a="notranslate material-symbols";const c=r.match(Me);c!==null&&(r=r.substring(6),a+=Qe[c[1]]),h=r}else{a="notranslate material-icons";const c=r.match(qt);c!==null&&(r=r.substring(2),a+=Fe[c[1]]),h=r}return{cls:a,content:h}});return()=>{const a={class:o.value,style:n.value,"aria-hidden":"true",role:"presentation"};return u.value.none===!0?l.h(e.tag,a,xe(t.default)):u.value.img===!0?l.h(e.tag,a,F(t.default,[l.h("img",{src:u.value.src})])):u.value.svg===!0?l.h(e.tag,a,F(t.default,[l.h("svg",{viewBox:u.value.viewBox||"0 0 24 24"},u.value.nodes)])):u.value.svguse===!0?l.h(e.tag,a,F(t.default,[l.h("svg",{viewBox:u.value.viewBox},[l.h("use",{"xlink:href":u.value.src})])])):(u.value.cls!==void 0&&(a.class+=" "+u.value.cls),l.h(e.tag,a,F(t.default,[u.value.content])))}}}),Ot={size:{type:[String,Number],default:"1em"},color:String};function Ht(e){return{cSize:l.computed(()=>e.size in se?`${se[e.size]}px`:e.size),classes:l.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const Ke=Q({name:"QSpinner",props:{...Ot,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:i}=Ht(e);return()=>l.h("svg",{class:i.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[l.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function de(e,t){const i=e.style;for(const n in t)i[n]=t[n]}function zt(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=l.unref(e);if(t)return t.$el||t}function At(e,t){if(e==null||e.contains(t)===!0)return!0;for(let i=e.nextElementSibling;i!==null;i=i.nextElementSibling)if(i.contains(t))return!0;return!1}const O={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(O,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch{}function jt(){}function Ue(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function Wt(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let i=e.target;for(;i;){if(t.push(i),i.tagName==="HTML")return t.push(document),t.push(window),t;i=i.parentElement}}function Se(e){e.stopPropagation()}function te(e){e.cancelable!==!1&&e.preventDefault()}function _(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function U(e,t,i){const n=`__q_${t}_evt`;e[n]=e[n]!==void 0?e[n].concat(i):i,i.forEach(o=>{o[0].addEventListener(o[1],e[o[2]],O[o[3]])})}function ne(e,t){const i=`__q_${t}_evt`;e[i]!==void 0&&(e[i].forEach(n=>{n[0].removeEventListener(n[1],e[n[2]],O[n[3]])}),e[i]=void 0)}function Ge(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function G(e,t){return Ge(e)===!0?!1:[].concat(t).includes(e.keyCode)}function Dt(e,t=250){let i=!1,n;return function(){return i===!1&&(i=!0,setTimeout(()=>{i=!1},t),n=e.apply(this,arguments)),n}}function Le(e,t,i,n){i.modifiers.stop===!0&&Se(e);const o=i.modifiers.color;let u=i.modifiers.center;u=u===!0||n===!0;const a=document.createElement("span"),r=document.createElement("span"),h=Ue(e),{left:v,top:c,width:y,height:d}=t.getBoundingClientRect(),s=Math.sqrt(y*y+d*d),f=s/2,k=`${(y-s)/2}px`,g=u?k:`${h.left-v-f}px`,C=`${(d-s)/2}px`,b=u?C:`${h.top-c-f}px`;r.className="q-ripple__inner",de(r,{height:`${s}px`,width:`${s}px`,transform:`translate3d(${g},${b},0) scale3d(.2,.2,1)`,opacity:0}),a.className=`q-ripple${o?" text-"+o:""}`,a.setAttribute("dir","ltr"),a.appendChild(r),t.appendChild(a);const w=()=>{a.remove(),clearTimeout($)};i.abort.push(w);let $=setTimeout(()=>{r.classList.add("q-ripple__inner--enter"),r.style.transform=`translate3d(${k},${C},0) scale3d(1,1,1)`,r.style.opacity=.2,$=setTimeout(()=>{r.classList.remove("q-ripple__inner--enter"),r.classList.add("q-ripple__inner--leave"),r.style.opacity=0,$=setTimeout(()=>{a.remove(),i.abort.splice(i.abort.indexOf(w),1)},275)},250)},50)}function Be(e,{modifiers:t,value:i,arg:n}){const o=Object.assign({},e.cfg.ripple,t,i);e.modifiers={early:o.early===!0,stop:o.stop===!0,center:o.center===!0,color:o.color||n,keyCodes:[].concat(o.keyCodes||13)}}const Ye=Ct({name:"ripple",beforeMount(e,t){const i=t.instance.$.appContext.config.globalProperties.$q.config||{};if(i.ripple===!1)return;const n={cfg:i,enabled:t.value!==!1,modifiers:{},abort:[],start(o){n.enabled===!0&&o.qSkipRipple!==!0&&o.type===(n.modifiers.early===!0?"pointerdown":"click")&&Le(o,e,n,o.qKeyEvent===!0)},keystart:Dt(o=>{n.enabled===!0&&o.qSkipRipple!==!0&&G(o,n.modifiers.keyCodes)===!0&&o.type===`key${n.modifiers.early===!0?"down":"up"}`&&Le(o,e,n,!0)},300)};Be(n,t),e.__qripple=n,U(n,"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 i=e.__qripple;i!==void 0&&(i.enabled=t.value!==!1,i.enabled===!0&&Object(t.value)===t.value&&Be(i,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(i=>{i()}),ne(t,"main"),delete e._qripple)}}),Xe={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},It=Object.keys(Xe),Nt={align:{type:String,validator:e=>It.includes(e)}};function Vt(e){return l.computed(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${Xe[t]}`})}function ae(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 Je(e){return e.isUnmounted===!0||e.isDeactivated===!0}function Re(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function _e(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ft(e,t){for(const i in t){const n=t[i],o=e[i];if(typeof n=="string"){if(n!==o)return!1}else if(Array.isArray(o)===!1||o.length!==n.length||n.some((u,a)=>u!==o[a]))return!1}return!0}function Oe(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((i,n)=>i===t[n]):e.length===1&&e[0]===t}function Qt(e,t){return Array.isArray(e)===!0?Oe(e,t):Array.isArray(t)===!0?Oe(t,e):e===t}function Kt(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(Qt(e[i],t[i])===!1)return!1;return!0}const et={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Ut={...et,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function tt({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const i=l.getCurrentInstance(),{props:n,proxy:o,emit:u}=i,a=Ze(i),r=l.computed(()=>n.disable!==!0&&n.href!==void 0),h=t===!0?l.computed(()=>a===!0&&n.disable!==!0&&r.value!==!0&&n.to!==void 0&&n.to!==null&&n.to!==""):l.computed(()=>a===!0&&r.value!==!0&&n.to!==void 0&&n.to!==null&&n.to!==""),v=l.computed(()=>h.value===!0?b(n.to):null),c=l.computed(()=>v.value!==null),y=l.computed(()=>r.value===!0||c.value===!0),d=l.computed(()=>n.type==="a"||y.value===!0?"a":n.tag||e||"div"),s=l.computed(()=>r.value===!0?{href:n.href,target:n.target}:c.value===!0?{href:v.value.href,target:n.target}:{}),f=l.computed(()=>{if(c.value===!1)return-1;const{matched:p}=v.value,{length:E}=p,S=p[E-1];if(S===void 0)return-1;const T=o.$route.matched;if(T.length===0)return-1;const P=T.findIndex(_e.bind(null,S));if(P!==-1)return P;const H=Re(p[E-2]);return E>1&&Re(S)===H&&T[T.length-1].path!==H?T.findIndex(_e.bind(null,p[E-2])):P}),k=l.computed(()=>c.value===!0&&f.value!==-1&&Ft(o.$route.params,v.value.params)),g=l.computed(()=>k.value===!0&&f.value===o.$route.matched.length-1&&Kt(o.$route.params,v.value.params)),C=l.computed(()=>c.value===!0?g.value===!0?` ${n.exactActiveClass} ${n.activeClass}`:n.exact===!0?"":k.value===!0?` ${n.activeClass}`:"":"");function b(p){try{return o.$router.resolve(p)}catch{}return null}function w(p,{returnRouterError:E,to:S=n.to,replace:T=n.replace}={}){if(n.disable===!0)return p.preventDefault(),Promise.resolve(!1);if(p.metaKey||p.altKey||p.ctrlKey||p.shiftKey||p.button!==void 0&&p.button!==0||n.target==="_blank")return Promise.resolve(!1);p.preventDefault();const P=o.$router[T===!0?"replace":"push"](S);return E===!0?P:P.then(()=>{}).catch(()=>{})}function $(p){if(c.value===!0){const E=S=>w(p,S);u("click",p,E),p.defaultPrevented!==!0&&E()}else u("click",p)}return{hasRouterLink:c,hasHrefLink:r,hasLink:y,linkTag:d,resolvedLink:v,linkIsActive:k,linkIsExactActive:g,linkClass:C,linkAttrs:s,getLink:b,navigateToRouterLink:w,navigateOnClick:$}}const He={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Gt={xs:8,sm:10,md:14,lg:20,xl:24},Yt=["button","submit","reset"],Xt=/[^\s]\/[^\s]/,Zt=["flat","outline","push","unelevated"];function Jt(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}const en={...ye,...et,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Zt.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:{...Nt.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},tn={...en,round:Boolean};function nn(e){const t=we(e,Gt),i=Vt(e),{hasRouterLink:n,hasLink:o,linkTag:u,linkAttrs:a,navigateOnClick:r}=tt({fallbackTag:"button"}),h=l.computed(()=>{const g=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},g,{padding:e.padding.split(/\s+/).map(C=>C in He?He[C]+"px":C).join(" "),minWidth:"0",minHeight:"0"}):g}),v=l.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),c=l.computed(()=>e.disable!==!0&&e.loading!==!0),y=l.computed(()=>c.value===!0?e.tabindex||0:-1),d=l.computed(()=>Jt(e,"standard")),s=l.computed(()=>{const g={tabindex:y.value};return o.value===!0?Object.assign(g,a.value):Yt.includes(e.type)===!0&&(g.type=e.type),u.value==="a"?(e.disable===!0?g["aria-disabled"]="true":g.href===void 0&&(g.role="button"),n.value!==!0&&Xt.test(e.type)===!0&&(g.type=e.type)):e.disable===!0&&(g.disabled="",g["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(g,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),g}),f=l.computed(()=>{let g;e.color!==void 0?e.flat===!0||e.outline===!0?g=`text-${e.textColor||e.color}`:g=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(g=`text-${e.textColor}`);const C=e.round===!0?"round":`rectangle${v.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${d.value} q-btn--${C}`+(g!==void 0?" "+g:"")+(c.value===!0?" q-btn--actionable q-focusable q-hoverable":e.disable===!0?" disabled":"")+(e.fab===!0?" q-btn--fab":e.fabMini===!0?" q-btn--fab-mini":"")+(e.noCaps===!0?" q-btn--no-uppercase":"")+(e.dense===!0?" q-btn--dense":"")+(e.stretch===!0?" no-border-radius self-stretch":"")+(e.glossy===!0?" glossy":"")+(e.square?" q-btn--square":"")}),k=l.computed(()=>i.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:f,style:h,innerClasses:k,attributes:s,hasLink:o,linkTag:u,navigateOnClick:r,isActionable:c}}const{passiveCapture:L}=O;let I=null,N=null,V=null;const on=Q({name:"QBtn",props:{...tn,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:i}){const{proxy:n}=l.getCurrentInstance(),{classes:o,style:u,innerClasses:a,attributes:r,hasLink:h,linkTag:v,navigateOnClick:c,isActionable:y}=nn(e),d=l.ref(null),s=l.ref(null);let f=null,k,g=null;const C=l.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),b=l.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:h.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),w=l.computed(()=>({center:e.round})),$=l.computed(()=>{const m=Math.max(0,Math.min(100,e.percentage));return m>0?{transition:"transform 0.6s",transform:`translateX(${m-100}%)`}:{}}),p=l.computed(()=>{if(e.loading===!0)return{onMousedown:A,onTouchstart:A,onClick:A,onKeydown:A,onKeyup:A};if(y.value===!0){const m={onClick:S,onKeydown:T,onMousedown:H};if(n.$q.platform.has.touch===!0){const x=e.onTouchstart!==void 0?"":"Passive";m[`onTouchstart${x}`]=P}return m}return{onClick:_}}),E=l.computed(()=>({ref:d,class:"q-btn q-btn-item non-selectable no-outline "+o.value,style:u.value,...r.value,...p.value}));function S(m){if(d.value!==null){if(m!==void 0){if(m.defaultPrevented===!0)return;const x=document.activeElement;if(e.type==="submit"&&x!==document.body&&d.value.contains(x)===!1&&x.contains(d.value)===!1){d.value.focus();const B=()=>{document.removeEventListener("keydown",_,!0),document.removeEventListener("keyup",B,L),d.value!==null&&d.value.removeEventListener("blur",B,L)};document.addEventListener("keydown",_,!0),document.addEventListener("keyup",B,L),d.value.addEventListener("blur",B,L)}}c(m)}}function T(m){d.value!==null&&(i("keydown",m),G(m,[13,32])===!0&&N!==d.value&&(N!==null&&z(),m.defaultPrevented!==!0&&(d.value.focus(),N=d.value,d.value.classList.add("q-btn--active"),document.addEventListener("keyup",M,!0),d.value.addEventListener("blur",M,L)),_(m)))}function P(m){d.value!==null&&(i("touchstart",m),m.defaultPrevented!==!0&&(I!==d.value&&(I!==null&&z(),I=d.value,f=m.target,f.addEventListener("touchcancel",M,L),f.addEventListener("touchend",M,L)),k=!0,g!==null&&clearTimeout(g),g=setTimeout(()=>{g=null,k=!1},200)))}function H(m){d.value!==null&&(m.qSkipRipple=k===!0,i("mousedown",m),m.defaultPrevented!==!0&&V!==d.value&&(V!==null&&z(),V=d.value,d.value.classList.add("q-btn--active"),document.addEventListener("mouseup",M,L)))}function M(m){if(d.value!==null&&!(m!==void 0&&m.type==="blur"&&document.activeElement===d.value)){if(m!==void 0&&m.type==="keyup"){if(N===d.value&&G(m,[13,32])===!0){const x=new MouseEvent("click",m);x.qKeyEvent=!0,m.defaultPrevented===!0&&te(x),m.cancelBubble===!0&&Se(x),d.value.dispatchEvent(x),_(m),m.qKeyEvent=!0}i("keyup",m)}z()}}function z(m){const x=s.value;m!==!0&&(I===d.value||V===d.value)&&x!==null&&x!==document.activeElement&&(x.setAttribute("tabindex",-1),x.focus()),I===d.value&&(f!==null&&(f.removeEventListener("touchcancel",M,L),f.removeEventListener("touchend",M,L)),I=f=null),V===d.value&&(document.removeEventListener("mouseup",M,L),V=null),N===d.value&&(document.removeEventListener("keyup",M,!0),d.value!==null&&d.value.removeEventListener("blur",M,L),N=null),d.value!==null&&d.value.classList.remove("q-btn--active")}function A(m){_(m),m.qSkipRipple=!0}return l.onBeforeUnmount(()=>{z(!0)}),Object.assign(n,{click:m=>{y.value===!0&&S(m)}}),()=>{let m=[];e.icon!==void 0&&m.push(l.h(ce,{name:e.icon,left:e.stack!==!0&&C.value===!0,role:"img"})),C.value===!0&&m.push(l.h("span",{class:"block"},[e.label])),m=F(t.default,m),e.iconRight!==void 0&&e.round===!1&&m.push(l.h(ce,{name:e.iconRight,right:e.stack!==!0&&C.value===!0,role:"img"}));const x=[l.h("span",{class:"q-focus-helper",ref:s})];return e.loading===!0&&e.percentage!==void 0&&x.push(l.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[l.h("span",{class:"q-btn__progress-indicator fit block",style:$.value})])),x.push(l.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+a.value},m)),e.loading!==null&&x.push(l.h(l.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[l.h("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[l.h(Ke)])]:null)),l.withDirectives(l.h(v.value,E.value,x),[[Ye,b.value,void 0,w.value]])}}}),Y=l.ref(!1);let fe;function ln(e,t){const i=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||[];return{browser:i[5]||i[3]||i[1]||"",version:i[4]||i[2]||"0",platform:t[0]||""}}function rn(e){return/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[]}const nt="ontouchstart"in window||window.navigator.maxTouchPoints>0;function an(e){const t=e.toLowerCase(),i=rn(t),n=ln(t,i),o={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,blackberry:!1,playbook:!1,silk:!1};n.browser&&(o[n.browser]=!0,o.version=n.version,o.versionNumber=parseInt(n.version,10)),n.platform&&(o[n.platform]=!0);const u=o.android||o.ios||o.bb||o.blackberry||o.ipad||o.iphone||o.ipod||o.kindle||o.playbook||o.silk||o["windows phone"];if(u===!0||t.indexOf("mobile")!==-1?o.mobile=!0:o.desktop=!0,o["windows phone"]&&(o.winphone=!0,delete o["windows phone"]),o.edga||o.edgios||o.edg?(o.edge=!0,n.browser="edge"):o.crios?(o.chrome=!0,n.browser="chrome"):o.fxios&&(o.firefox=!0,n.browser="firefox"),(o.ipod||o.ipad||o.iphone)&&(o.ios=!0),o.vivaldi&&(n.browser="vivaldi",o.vivaldi=!0),(o.chrome||o.opr||o.safari||o.vivaldi||o.mobile===!0&&o.ios!==!0&&u!==!0)&&(o.webkit=!0),o.opr&&(n.browser="opera",o.opera=!0),o.safari&&(o.blackberry||o.bb?(n.browser="blackberry",o.blackberry=!0):o.playbook?(n.browser="playbook",o.playbook=!0):o.android?(n.browser="android",o.android=!0):o.kindle?(n.browser="kindle",o.kindle=!0):o.silk&&(n.browser="silk",o.silk=!0)),o.name=n.browser,o.platform=n.platform,t.indexOf("electron")!==-1)o.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)o.bex=!0;else{if(window.Capacitor!==void 0?(o.capacitor=!0,o.nativeMobile=!0,o.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(o.cordova=!0,o.nativeMobile=!0,o.nativeMobileWrapper="cordova"),Y.value===!0&&(fe={is:{...o}}),nt===!0&&o.mac===!0&&(o.desktop===!0&&o.safari===!0||o.nativeMobile===!0&&o.android!==!0&&o.ios!==!0&&o.ipad!==!0)){delete o.mac,delete o.desktop;const a=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(o,{mobile:!0,ios:!0,platform:a,[a]:!0})}o.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete o.desktop,o.mobile=!0)}return o}const ze=navigator.userAgent||navigator.vendor||window.opera,un={has:{touch:!1,webStorage:!1},within:{iframe:!1}},X={userAgent:ze,is:an(ze),has:{touch:nt},within:{iframe:window.self!==window.top}},ve={install(e){const{$q:t}=e;Y.value===!0?(e.onSSRHydrated.push(()=>{Object.assign(t.platform,X),Y.value=!1}),t.platform=l.reactive(this)):t.platform=this}};{let e;ke(X.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(ve,X),Y.value===!0&&(Object.assign(ve,fe,un),fe=null)}function me(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),ve.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const ot={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},sn={...ot,contextMenu:Boolean};function it({showing:e,avoidEmit:t,configureAnchorEl:i}){const{props:n,proxy:o,emit:u}=l.getCurrentInstance(),a=l.ref(null);let r=null;function h(s){return a.value===null?!1:s===void 0||s.touches===void 0||s.touches.length<=1}const v={};i===void 0&&(Object.assign(v,{hide(s){o.hide(s)},toggle(s){o.toggle(s),s.qAnchorHandled=!0},toggleKey(s){G(s,13)===!0&&v.toggle(s)},contextClick(s){o.hide(s),te(s),l.nextTick(()=>{o.show(s),s.qAnchorHandled=!0})},prevent:te,mobileTouch(s){if(v.mobileCleanup(s),h(s)!==!0)return;o.hide(s),a.value.classList.add("non-selectable");const f=s.target;U(v,"anchor",[[f,"touchmove","mobileCleanup","passive"],[f,"touchend","mobileCleanup","passive"],[f,"touchcancel","mobileCleanup","passive"],[a.value,"contextmenu","prevent","notPassive"]]),r=setTimeout(()=>{r=null,o.show(s),s.qAnchorHandled=!0},300)},mobileCleanup(s){a.value.classList.remove("non-selectable"),r!==null&&(clearTimeout(r),r=null),e.value===!0&&s!==void 0&&me()}}),i=function(s=n.contextMenu){if(n.noParentEvent===!0||a.value===null)return;let f;s===!0?o.$q.platform.is.mobile===!0?f=[[a.value,"touchstart","mobileTouch","passive"]]:f=[[a.value,"mousedown","hide","passive"],[a.value,"contextmenu","contextClick","notPassive"]]:f=[[a.value,"click","toggle","passive"],[a.value,"keyup","toggleKey","passive"]],U(v,"anchor",f)});function c(){ne(v,"anchor")}function y(s){for(a.value=s;a.value.classList.contains("q-anchor--skip");)a.value=a.value.parentNode;i()}function d(){if(n.target===!1||n.target===""||o.$el.parentNode===null)a.value=null;else if(n.target===!0)y(o.$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,i()):(a.value=null,console.error(`Anchor: target "${n.target}" not found`))}}return l.watch(()=>n.contextMenu,s=>{a.value!==null&&(c(),i(s))}),l.watch(()=>n.target,()=>{a.value!==null&&c(),d()}),l.watch(()=>n.noParentEvent,s=>{a.value!==null&&(s===!0?c():i())}),l.onMounted(()=>{d(),t!==!0&&n.modelValue===!0&&a.value===null&&u("update:modelValue",!1)}),l.onBeforeUnmount(()=>{r!==null&&clearTimeout(r),c()}),{anchorEl:a,canShow:h,anchorEvents:v}}function lt(e,t){const i=l.ref(null);let n;function o(r,h){const v=`${h!==void 0?"add":"remove"}EventListener`,c=h!==void 0?h:n;r!==window&&r[v]("scroll",c,O.passive),window[v]("scroll",c,O.passive),n=h}function u(){i.value!==null&&(o(i.value),i.value=null)}const a=l.watch(()=>e.noParentEvent,()=>{i.value!==null&&(u(),t())});return l.onBeforeUnmount(a),{localScrollTarget:i,unconfigureScrollTarget:u,changeScrollEvent:o}}const rt={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},at=["beforeShow","show","beforeHide","hide"];function ut({showing:e,canShow:t,hideOnRouteChange:i,handleShow:n,handleHide:o,processOnMount:u}){const a=l.getCurrentInstance(),{props:r,emit:h,proxy:v}=a;let c;function y(b){e.value===!0?f(b):d(b)}function d(b){if(r.disable===!0||b!==void 0&&b.qAnchorHandled===!0||t!==void 0&&t(b)!==!0)return;const w=r["onUpdate:modelValue"]!==void 0;w===!0&&(h("update:modelValue",!0),c=b,l.nextTick(()=>{c===b&&(c=void 0)})),(r.modelValue===null||w===!1)&&s(b)}function s(b){e.value!==!0&&(e.value=!0,h("beforeShow",b),n!==void 0?n(b):h("show",b))}function f(b){if(r.disable===!0)return;const w=r["onUpdate:modelValue"]!==void 0;w===!0&&(h("update:modelValue",!1),c=b,l.nextTick(()=>{c===b&&(c=void 0)})),(r.modelValue===null||w===!1)&&k(b)}function k(b){e.value!==!1&&(e.value=!1,h("beforeHide",b),o!==void 0?o(b):h("hide",b))}function g(b){r.disable===!0&&b===!0?r["onUpdate:modelValue"]!==void 0&&h("update:modelValue",!1):b===!0!==e.value&&(b===!0?s:k)(c)}l.watch(()=>r.modelValue,g),i!==void 0&&Ze(a)===!0&&l.watch(()=>v.$route.fullPath,()=>{i.value===!0&&e.value===!0&&f()}),l.onMounted(()=>{g(r.modelValue)});const C={show:d,hide:f,toggle:y};return Object.assign(v,C),C}let W=[],Z=[];function st(e){Z=Z.filter(t=>t!==e)}function cn(e){st(e),Z.push(e)}function Ae(e){st(e),Z.length===0&&W.length!==0&&(W[W.length-1](),W=[])}function dn(e){Z.length===0?e():W.push(e)}function fn(e){W=W.filter(t=>t!==e)}const je={};let vn=1,mn=document.body;function hn(e,t){const i=document.createElement("div");if(i.id=t!==void 0?`q-portal--${t}--${vn++}`:e,je.globalNodes!==void 0){const n=je.globalNodes.class;n!==void 0&&(i.className=n)}return mn.appendChild(i),i}function pn(e){e.remove()}const K=[];function gn(e,t){do{if(e.$options.name==="QMenu"){if(e.hide(t),e.$props.separateClosePopup===!0)return ae(e)}else if(e.__qPortal===!0){const i=ae(e);return i!==void 0&&i.$options.name==="QPopupProxy"?(e.hide(t),i):e}e=ae(e)}while(e!=null)}const bn=Q({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function yn(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 ct(e,t,i,n){const o=l.ref(!1),u=l.ref(!1);let a=null;const r={},h=n==="dialog"&&yn(e);function v(y){if(y===!0){Ae(r),u.value=!0;return}u.value=!1,o.value===!1&&(h===!1&&a===null&&(a=hn(!1,n)),o.value=!0,K.push(e.proxy),cn(r))}function c(y){if(u.value=!1,y!==!0)return;Ae(r),o.value=!1;const d=K.indexOf(e.proxy);d!==-1&&K.splice(d,1),a!==null&&(pn(a),a=null)}return l.onUnmounted(()=>{c(!0)}),e.proxy.__qPortal=!0,ke(e.proxy,"contentEl",()=>t.value),{showPortal:v,hidePortal:c,portalIsActive:o,portalIsAccessible:u,renderPortal:()=>h===!0?i():o.value===!0?[l.h(l.Teleport,{to:a},l.h(bn,i))]:void 0}}const ee={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function dt(e,t=()=>{},i=()=>{}){return{transitionProps:l.computed(()=>{const n=`q-transition--${e.transitionShow||t()}`,o=`q-transition--${e.transitionHide||i()}`;return{appear:!0,enterFromClass:`${n}-enter-from`,enterActiveClass:`${n}-enter-active`,enterToClass:`${n}-enter-to`,leaveFromClass:`${o}-leave-from`,leaveActiveClass:`${o}-leave-active`,leaveToClass:`${o}-leave-to`}}),transitionStyle:l.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function ft(){let e;const t=l.getCurrentInstance();function i(){e=void 0}return l.onDeactivated(i),l.onBeforeUnmount(i),{removeTick:i,registerTick(n){e=n,l.nextTick(()=>{e===n&&(Je(t)===!1&&e(),e=void 0)})}}}function vt(){let e=null;const t=l.getCurrentInstance();function i(){e!==null&&(clearTimeout(e),e=null)}return l.onDeactivated(i),l.onBeforeUnmount(i),{removeTimeout:i,registerTimeout(n,o){i(),Je(t)===!1&&(e=setTimeout(()=>{e=null,n()},o))}}}const mt=[Element,String],wn=[null,document,document.body,document.scrollingElement,document.documentElement];function ht(e,t){let i=zt(t);if(i===void 0){if(e==null)return window;i=e.closest(".scroll,.scroll-y,.overflow-auto")}return wn.includes(i)?window:i}function kn(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function xn(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let J;function Sn(){if(J!==void 0)return J;const e=document.createElement("p"),t=document.createElement("div");de(e,{width:"100%",height:"200px"}),de(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const i=e.offsetWidth;t.style.overflow="scroll";let n=e.offsetWidth;return i===n&&(n=t.clientWidth),t.remove(),J=i-n,J}function Cn(e,t=!0){return!e||e.nodeType!==Node.ELEMENT_NODE?!1:t?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"]))}const{notPassiveCapture:oe}=O,D=[];function ie(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let i=K.length-1;for(;i>=0;){const n=K[i].$;if(n.type.name==="QTooltip"){i--;continue}if(n.type.name!=="QDialog")break;if(n.props.seamless!==!0)return;i--}for(let n=D.length-1;n>=0;n--){const o=D[n];if((o.anchorEl.value===null||o.anchorEl.value.contains(t)===!1)&&(t===document.body||o.innerRef.value!==null&&o.innerRef.value.contains(t)===!1))e.qClickOutside=!0,o.onClickOutside(e);else return}}function pt(e){D.push(e),D.length===1&&(document.addEventListener("mousedown",ie,oe),document.addEventListener("touchstart",ie,oe))}function he(e){const t=D.findIndex(i=>i===e);t!==-1&&(D.splice(t,1),D.length===0&&(document.removeEventListener("mousedown",ie,oe),document.removeEventListener("touchstart",ie,oe)))}let We,De;function pe(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 gt(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const ge={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{ge[`${e}#ltr`]=e,ge[`${e}#rtl`]=e});function be(e,t){const i=e.split(" ");return{vertical:i[0],horizontal:ge[`${i[1]}#${t===!0?"rtl":"ltr"}`]}}function En(e,t){let{top:i,left:n,right:o,bottom:u,width:a,height:r}=e.getBoundingClientRect();return t!==void 0&&(i-=t[1],n-=t[0],u+=t[1],o+=t[0],a+=t[0],r+=t[1]),{top:i,bottom:u,height:r,left:n,right:o,width:a,middle:n+(o-n)/2,center:i+(u-i)/2}}function Tn(e,t,i){let{top:n,left:o}=e.getBoundingClientRect();return n+=t.top,o+=t.left,i!==void 0&&(n+=i[1],o+=i[0]),{top:n,bottom:n+1,height:1,left:o,right:o+1,width:1,middle:o,center:n}}function Pn(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function Ie(e,t,i,n){return{top:e[i.vertical]-t[n.vertical],left:e[i.horizontal]-t[n.horizontal]}}function Ce(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{Ce(e,t+1)},10);return}const{targetEl:i,offset:n,anchorEl:o,anchorOrigin:u,selfOrigin:a,absoluteOffset:r,fit:h,cover:v,maxHeight:c,maxWidth:y}=e;if(X.is.ios===!0&&window.visualViewport!==void 0){const E=document.body.style,{offsetLeft:S,offsetTop:T}=window.visualViewport;S!==We&&(E.setProperty("--q-pe-left",S+"px"),We=S),T!==De&&(E.setProperty("--q-pe-top",T+"px"),De=T)}const{scrollLeft:d,scrollTop:s}=i,f=r===void 0?En(o,v===!0?[0,0]:n):Tn(o,r,n);Object.assign(i.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:y,maxHeight:c,visibility:"visible"});const{offsetWidth:k,offsetHeight:g}=i,{elWidth:C,elHeight:b}=h===!0||v===!0?{elWidth:Math.max(f.width,k),elHeight:v===!0?Math.max(f.height,g):g}:{elWidth:k,elHeight:g};let w={maxWidth:y,maxHeight:c};(h===!0||v===!0)&&(w.minWidth=f.width+"px",v===!0&&(w.minHeight=f.height+"px")),Object.assign(i.style,w);const $=Pn(C,b);let p=Ie(f,$,u,a);if(r===void 0||n===void 0)ue(p,f,$,u,a);else{const{top:E,left:S}=p;ue(p,f,$,u,a);let T=!1;if(p.top!==E){T=!0;const P=2*n[1];f.center=f.top-=P,f.bottom-=P+2}if(p.left!==S){T=!0;const P=2*n[0];f.middle=f.left-=P,f.right-=P+2}T===!0&&(p=Ie(f,$,u,a),ue(p,f,$,u,a))}w={top:p.top+"px",left:p.left+"px"},p.maxHeight!==void 0&&(w.maxHeight=p.maxHeight+"px",f.height>p.maxHeight&&(w.minHeight=w.maxHeight)),p.maxWidth!==void 0&&(w.maxWidth=p.maxWidth+"px",f.width>p.maxWidth&&(w.minWidth=w.maxWidth)),Object.assign(i.style,w),i.scrollTop!==s&&(i.scrollTop=s),i.scrollLeft!==d&&(i.scrollLeft=d)}function ue(e,t,i,n,o){const u=i.bottom,a=i.right,r=Sn(),h=window.innerHeight-r,v=document.body.clientWidth;if(e.top<0||e.top+u>h)if(o.vertical==="center")e.top=t[n.vertical]>h/2?Math.max(0,h-u):0,e.maxHeight=Math.min(u,h);else if(t[n.vertical]>h/2){const c=Math.min(h,n.vertical==="center"?t.center:n.vertical===o.vertical?t.bottom:t.top);e.maxHeight=Math.min(u,c),e.top=Math.max(0,c-u)}else e.top=Math.max(0,n.vertical==="center"?t.center:n.vertical===o.vertical?t.top:t.bottom),e.maxHeight=Math.min(u,h-e.top);if(e.left<0||e.left+a>v)if(e.maxWidth=Math.min(a,v),o.horizontal==="middle")e.left=t[n.horizontal]>v/2?Math.max(0,v-a):0;else if(t[n.horizontal]>v/2){const c=Math.min(v,n.horizontal==="middle"?t.middle:n.horizontal===o.horizontal?t.right:t.left);e.maxWidth=Math.min(a,c),e.left=Math.max(0,c-e.maxWidth)}else e.left=Math.max(0,n.horizontal==="middle"?t.middle:n.horizontal===o.horizontal?t.left:t.right),e.maxWidth=Math.min(a,v-e.left)}const $n=Q({name:"QTooltip",inheritAttrs:!1,props:{...ot,...rt,...ee,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...ee.transitionShow,default:"jump-down"},transitionHide:{...ee.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:pe},self:{type:String,default:"top middle",validator:pe},offset:{type:Array,default:()=>[14,14],validator:gt},scrollTarget:mt,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...at],setup(e,{slots:t,emit:i,attrs:n}){let o,u;const a=l.getCurrentInstance(),{proxy:{$q:r}}=a,h=l.ref(null),v=l.ref(!1),c=l.computed(()=>be(e.anchor,r.lang.rtl)),y=l.computed(()=>be(e.self,r.lang.rtl)),d=l.computed(()=>e.persistent!==!0),{registerTick:s,removeTick:f}=ft(),{registerTimeout:k}=vt(),{transitionProps:g,transitionStyle:C}=dt(e),{localScrollTarget:b,changeScrollEvent:w,unconfigureScrollTarget:$}=lt(e,Te),{anchorEl:p,canShow:E,anchorEvents:S}=it({showing:v,configureAnchorEl:wt}),{show:T,hide:P}=ut({showing:v,canShow:E,handleShow:A,handleHide:m,hideOnRouteChange:d,processOnMount:!0});Object.assign(S,{delayShow:bt,delayHide:yt});const{showPortal:H,hidePortal:M,renderPortal:z}=ct(a,h,xt,"tooltip");if(r.platform.is.mobile===!0){const q={anchorEl:p,innerRef:h,onClickOutside(j){return P(j),j.target.classList.contains("q-dialog__backdrop")&&_(j),!0}},le=l.computed(()=>e.modelValue===null&&e.persistent!==!0&&v.value===!0);l.watch(le,j=>{(j===!0?pt:he)(q)}),l.onBeforeUnmount(()=>{he(q)})}function A(q){H(),s(()=>{u=new MutationObserver(()=>B()),u.observe(h.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),B(),Te()}),o===void 0&&(o=l.watch(()=>r.screen.width+"|"+r.screen.height+"|"+e.self+"|"+e.anchor+"|"+r.lang.rtl,B)),k(()=>{H(!0),i("show",q)},e.transitionDuration)}function m(q){f(),M(),x(),k(()=>{M(!0),i("hide",q)},e.transitionDuration)}function x(){u!==void 0&&(u.disconnect(),u=void 0),o!==void 0&&(o(),o=void 0),$(),ne(S,"tooltipTemp")}function B(){Ce({targetEl:h.value,offset:e.offset,anchorEl:p.value,anchorOrigin:c.value,selfOrigin:y.value,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function bt(q){if(r.platform.is.mobile===!0){me(),document.body.classList.add("non-selectable");const le=p.value,j=["touchmove","touchcancel","touchend","click"].map(Pe=>[le,Pe,"delayHide","passiveCapture"]);U(S,"tooltipTemp",j)}k(()=>{T(q)},e.delay)}function yt(q){r.platform.is.mobile===!0&&(ne(S,"tooltipTemp"),me(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),k(()=>{P(q)},e.hideDelay)}function wt(){if(e.noParentEvent===!0||p.value===null)return;const q=r.platform.is.mobile===!0?[[p.value,"touchstart","delayShow","passive"]]:[[p.value,"mouseenter","delayShow","passive"],[p.value,"mouseleave","delayHide","passive"]];U(S,"anchor",q)}function Te(){if(p.value!==null||e.scrollTarget!==void 0){b.value=ht(p.value,e.scrollTarget);const q=e.noParentEvent===!0?B:P;w(b.value,q)}}function kt(){return v.value===!0?l.h("div",{...n,ref:h,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",n.class],style:[n.style,C.value],role:"tooltip"},xe(t.default)):null}function xt(){return l.h(l.Transition,g.value,kt)}return l.onBeforeUnmount(x),Object.assign(a.proxy,{updatePosition:B}),z}}),qn=l.defineComponent({__name:"AppButton",props:{size:{default:R.MD},transparent:{type:Boolean},flat:{type:Boolean},rounded:{type:Boolean},color:{default:Ne.PRIMARY},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:Boolean},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{},label:{},tooltip:{}},emits:["click"],setup(e){const t=e,i=l.computed(()=>["app-btn",{"app-btn_default":!t.transparent&&!t.flat,"app-btn_trans":t.transparent,"app-btn_flat":t.flat,"app-btn_rounded":t.rounded,"app-btn_sm":t.size===R.SM,"app-btn_md":t.size===R.MD,"app-btn_lg":t.size===R.LG,"app-btn_icon-left":t.iconLeft,"app-btn_icon-right":t.iconRight,"app-btn_icon-middle":t.iconMiddle},`app-btn_${t.color}`]);return(n,o)=>(l.openBlock(),l.createBlock(l.unref(on),{"no-caps":"",unelevated:"",class:l.normalizeClass(i.value),padding:l.unref(St)[n.size||l.unref(R).MD],loading:n.loading,disable:n.disabled||void 0,to:n.to,href:n.href,target:n.target,type:n.submit?"submit":void 0,"aria-label":n.ariaLabel,onClick:o[0]||(o[0]=u=>n.$emit("click",u))},{default:l.withCtx(()=>[n.iconLeft||n.iconMiddle?(l.openBlock(),l.createElementBlock("i",{key:0,class:l.normalizeClass(["icon-kl",n.iconLeft?"icon-kl_left":"icon-kl_middle",`icon-kl-${n.iconLeft||n.iconMiddle}`,n.transparent||n.flat?`text-${n.color}`:"text-secondary"])},null,2)):l.createCommentVNode("",!0),l.renderSlot(n.$slots,"default",{},void 0,!0),n.label?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(n.label),1)],64)):l.createCommentVNode("",!0),n.iconRight?(l.openBlock(),l.createElementBlock("i",{key:2,class:l.normalizeClass(["icon-kl","icon-kl_right",`icon-kl-${n.iconRight}`,n.transparent?`text-${n.color}`:"text-secondary"])},null,2)):l.createCommentVNode("",!0),n.tooltip?(l.openBlock(),l.createBlock(l.unref($n),{key:3,class:"glass-tooltip",anchor:"top middle",self:"center right"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(n.tooltip),1)]),_:1})):l.createCommentVNode("",!0)]),_:3},8,["class","padding","loading","disable","to","href","target","type","aria-label"]))}}),Ee=(e,t)=>{const i=e.__vccOpts||e;for(const[n,o]of t)i[n]=o;return i},Mn=Ee(qn,[["__scopeId","data-v-be2678e0"]]),Ln=l.defineComponent({__name:"AppIcon",props:{name:{},size:{},color:{}},setup(e){return(t,i)=>(l.openBlock(),l.createElementBlock("i",{class:l.normalizeClass(["icon-kl",`icon-kl-${t.name}`,t.color?`text-${t.color}`:""]),style:l.normalizeStyle(t.size?`font-size: ${t.size}`:void 0)},null,6))}}),Bn=Ee(Ln,[["__scopeId","data-v-941765ee"]]),Rn=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./AppButtonCopy-SQlgsdOa.cjs"))),_n=l.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./AppSelect-BIlYEF7l.cjs")));exports.AppButton=Mn;exports.AppButtonCopy=Rn;exports.AppIcon=Bn;exports.AppSelect=_n;exports.COLORS=Ne;exports.QIcon=ce;exports.QSpinner=Ke;exports.Ripple=Ye;exports.SIZES=R;exports._export_sfc=Ee;exports.addClickOutside=pt;exports.addFocusFn=dn;exports.childHasFocus=At;exports.client=X;exports.closePortalMenus=gn;exports.createComponent=Q;exports.getEventPath=Wt;exports.getHorizontalScrollPosition=xn;exports.getScrollTarget=ht;exports.getVerticalScrollPosition=kn;exports.hDir=Pt;exports.hMergeSlot=F;exports.hMergeSlotSafely=Tt;exports.hSlot=xe;exports.hUniqueSlot=Et;exports.hasScrollbar=Cn;exports.injectProp=ke;exports.isKeyCode=G;exports.isRuntimeSsrPreHydration=Y;exports.listenOpts=O;exports.noop=jt;exports.parsePosition=be;exports.position=Ue;exports.prevent=te;exports.removeClickOutside=he;exports.removeFocusFn=fn;exports.scrollTargetProp=mt;exports.setPosition=Ce;exports.shouldIgnoreKey=Ge;exports.stop=Se;exports.stopAndPrevent=_;exports.useAnchor=it;exports.useAnchorProps=sn;exports.useModelToggle=ut;exports.useModelToggleEmits=at;exports.useModelToggleProps=rt;exports.usePortal=ct;exports.useRouterLink=tt;exports.useRouterLinkProps=Ut;exports.useScrollTarget=lt;exports.useSize=we;exports.useSizeProps=ye;exports.useTick=ft;exports.useTimeout=vt;exports.useTransition=dt;exports.useTransitionProps=ee;exports.validateOffset=gt;exports.validatePosition=pe;
|