shared-ritm 1.0.15 → 1.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- (function(ie,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(ie=typeof globalThis<"u"?globalThis:ie||self,r(ie.SharedRitm={},ie.Vue))})(this,function(ie,r){"use strict";var Tu=Object.defineProperty;var Ru=(ie,r,_e)=>r in ie?Tu(ie,r,{enumerable:!0,configurable:!0,writable:!0,value:_e}):ie[r]=_e;var Tl=(ie,r,_e)=>Ru(ie,typeof r!="symbol"?r+"":r,_e);function _e(e,t,n,o){return Object.defineProperty(e,t,{get:n,set:o,enumerable:!0}),e}function oe(e){return r.markRaw(r.defineComponent(e))}function Rl(e){return r.markRaw(e)}function ge(e,t){return e!==void 0&&e()||t}function Bl(e,t){if(e!==void 0){const n=e();if(n!=null)return n.slice()}return t}function Re(e,t){return e!==void 0?t.concat(e()):t}function ql(e,t){return e===void 0?t:t!==void 0?t.concat(e()):e()}function Al(e,t,n,o,l,i){t.key=o+l;const a=r.h(e,t,n);return l===!0?r.withDirectives(a,i()):a}const Ol=["top","middle","bottom"],Pl=oe({name:"QBadge",props:{color:String,textColor:String,floating:Boolean,transparent:Boolean,multiLine:Boolean,outline:Boolean,rounded:Boolean,label:[Number,String],align:{type:String,validator:e=>Ol.includes(e)}},setup(e,{slots:t}){const n=r.computed(()=>e.align!==void 0?{verticalAlign:e.align}:null),o=r.computed(()=>{const l=e.outline===!0&&e.color||e.textColor;return`q-badge flex inline items-center no-wrap q-badge--${e.multiLine===!0?"multi":"single"}-line`+(e.outline===!0?" q-badge--outline":e.color!==void 0?` bg-${e.color}`:"")+(l!==void 0?` text-${l}`:"")+(e.floating===!0?" q-badge--floating":"")+(e.rounded===!0?" q-badge--rounded":"")+(e.transparent===!0?" q-badge--transparent":"")});return()=>r.h("div",{class:o.value,style:n.value,role:"status","aria-label":e.label},Re(t.default,e.label!==void 0?[e.label]:[]))}}),Ae=r.ref(!1);let nn;function Ml(e,t){const n=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||[];return{browser:n[5]||n[3]||n[1]||"",version:n[4]||n[2]||"0",platform:t[0]||""}}function Ll(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 ho="ontouchstart"in window||window.navigator.maxTouchPoints>0;function Vl(e){const t=e.toLowerCase(),n=Ll(t),o=Ml(t,n),l={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};o.browser&&(l[o.browser]=!0,l.version=o.version,l.versionNumber=parseInt(o.version,10)),o.platform&&(l[o.platform]=!0);const i=l.android||l.ios||l.bb||l.blackberry||l.ipad||l.iphone||l.ipod||l.kindle||l.playbook||l.silk||l["windows phone"];if(i===!0||t.indexOf("mobile")!==-1?l.mobile=!0:l.desktop=!0,l["windows phone"]&&(l.winphone=!0,delete l["windows phone"]),l.edga||l.edgios||l.edg?(l.edge=!0,o.browser="edge"):l.crios?(l.chrome=!0,o.browser="chrome"):l.fxios&&(l.firefox=!0,o.browser="firefox"),(l.ipod||l.ipad||l.iphone)&&(l.ios=!0),l.vivaldi&&(o.browser="vivaldi",l.vivaldi=!0),(l.chrome||l.opr||l.safari||l.vivaldi||l.mobile===!0&&l.ios!==!0&&i!==!0)&&(l.webkit=!0),l.opr&&(o.browser="opera",l.opera=!0),l.safari&&(l.blackberry||l.bb?(o.browser="blackberry",l.blackberry=!0):l.playbook?(o.browser="playbook",l.playbook=!0):l.android?(o.browser="android",l.android=!0):l.kindle?(o.browser="kindle",l.kindle=!0):l.silk&&(o.browser="silk",l.silk=!0)),l.name=o.browser,l.platform=o.platform,t.indexOf("electron")!==-1)l.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)l.bex=!0;else{if(window.Capacitor!==void 0?(l.capacitor=!0,l.nativeMobile=!0,l.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(l.cordova=!0,l.nativeMobile=!0,l.nativeMobileWrapper="cordova"),Ae.value===!0&&(nn={is:{...l}}),ho===!0&&l.mac===!0&&(l.desktop===!0&&l.safari===!0||l.nativeMobile===!0&&l.android!==!0&&l.ios!==!0&&l.ipad!==!0)){delete l.mac,delete l.desktop;const a=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(l,{mobile:!0,ios:!0,platform:a,[a]:!0})}l.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete l.desktop,l.mobile=!0)}return l}const po=navigator.userAgent||navigator.vendor||window.opera,$l={has:{touch:!1,webStorage:!1},within:{iframe:!1}},me={userAgent:po,is:Vl(po),has:{touch:ho},within:{iframe:window.self!==window.top}},on={install(e){const{$q:t}=e;Ae.value===!0?(e.onSSRHydrated.push(()=>{Object.assign(t.platform,me),Ae.value=!1}),t.platform=r.reactive(this)):t.platform=this}};{let e;_e(me.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(on,me),Ae.value===!0&&(Object.assign(on,nn,$l),nn=null)}function rn(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),on.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const se={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(se,{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 ln(){}function go(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 Fl(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let n=e.target;for(;n;){if(t.push(n),n.tagName==="HTML")return t.push(document),t.push(window),t;n=n.parentElement}}function Se(e){e.stopPropagation()}function ye(e){e.cancelable!==!1&&e.preventDefault()}function ae(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function lt(e,t,n){const o=`__q_${t}_evt`;e[o]=e[o]!==void 0?e[o].concat(n):n,n.forEach(l=>{l[0].addEventListener(l[1],e[l[2]],se[l[3]])})}function xt(e,t){const n=`__q_${t}_evt`;e[n]!==void 0&&(e[n].forEach(o=>{o[0].removeEventListener(o[1],e[o[2]],se[o[3]])}),e[n]=void 0)}function an(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function Oe(e,t){return an(e)===!0?!1:[].concat(t).includes(e.keyCode)}const vo={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},zl={...vo,contextMenu:Boolean};function yo({showing:e,avoidEmit:t,configureAnchorEl:n}){const{props:o,proxy:l,emit:i}=r.getCurrentInstance(),a=r.ref(null);let s=null;function d(v){return a.value===null?!1:v===void 0||v.touches===void 0||v.touches.length<=1}const c={};n===void 0&&(Object.assign(c,{hide(v){l.hide(v)},toggle(v){l.toggle(v),v.qAnchorHandled=!0},toggleKey(v){Oe(v,13)===!0&&c.toggle(v)},contextClick(v){l.hide(v),ye(v),r.nextTick(()=>{l.show(v),v.qAnchorHandled=!0})},prevent:ye,mobileTouch(v){if(c.mobileCleanup(v),d(v)!==!0)return;l.hide(v),a.value.classList.add("non-selectable");const p=v.target;lt(c,"anchor",[[p,"touchmove","mobileCleanup","passive"],[p,"touchend","mobileCleanup","passive"],[p,"touchcancel","mobileCleanup","passive"],[a.value,"contextmenu","prevent","notPassive"]]),s=setTimeout(()=>{s=null,l.show(v),v.qAnchorHandled=!0},300)},mobileCleanup(v){a.value.classList.remove("non-selectable"),s!==null&&(clearTimeout(s),s=null),e.value===!0&&v!==void 0&&rn()}}),n=function(v=o.contextMenu){if(o.noParentEvent===!0||a.value===null)return;let p;v===!0?l.$q.platform.is.mobile===!0?p=[[a.value,"touchstart","mobileTouch","passive"]]:p=[[a.value,"mousedown","hide","passive"],[a.value,"contextmenu","contextClick","notPassive"]]:p=[[a.value,"click","toggle","passive"],[a.value,"keyup","toggleKey","passive"]],lt(c,"anchor",p)});function u(){xt(c,"anchor")}function m(v){for(a.value=v;a.value.classList.contains("q-anchor--skip");)a.value=a.value.parentNode;n()}function y(){if(o.target===!1||o.target===""||l.$el.parentNode===null)a.value=null;else if(o.target===!0)m(l.$el.parentNode);else{let v=o.target;if(typeof o.target=="string")try{v=document.querySelector(o.target)}catch{v=void 0}v!=null?(a.value=v.$el||v,n()):(a.value=null,console.error(`Anchor: target "${o.target}" not found`))}}return r.watch(()=>o.contextMenu,v=>{a.value!==null&&(u(),n(v))}),r.watch(()=>o.target,()=>{a.value!==null&&u(),y()}),r.watch(()=>o.noParentEvent,v=>{a.value!==null&&(v===!0?u():n())}),r.onMounted(()=>{y(),t!==!0&&o.modelValue===!0&&a.value===null&&i("update:modelValue",!1)}),r.onBeforeUnmount(()=>{s!==null&&clearTimeout(s),u()}),{anchorEl:a,canShow:d,anchorEvents:c}}function bo(e,t){const n=r.ref(null);let o;function l(s,d){const c=`${d!==void 0?"add":"remove"}EventListener`,u=d!==void 0?d:o;s!==window&&s[c]("scroll",u,se.passive),window[c]("scroll",u,se.passive),o=d}function i(){n.value!==null&&(l(n.value),n.value=null)}const a=r.watch(()=>e.noParentEvent,()=>{n.value!==null&&(i(),t())});return r.onBeforeUnmount(a),{localScrollTarget:n,unconfigureScrollTarget:i,changeScrollEvent:l}}function sn(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 wo(e){return e.appContext.config.globalProperties.$router!==void 0}function So(e){return e.isUnmounted===!0||e.isDeactivated===!0}const un={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},cn=["beforeShow","show","beforeHide","hide"];function dn({showing:e,canShow:t,hideOnRouteChange:n,handleShow:o,handleHide:l,processOnMount:i}){const a=r.getCurrentInstance(),{props:s,emit:d,proxy:c}=a;let u;function m(_){e.value===!0?p(_):y(_)}function y(_){if(s.disable===!0||_!==void 0&&_.qAnchorHandled===!0||t!==void 0&&t(_)!==!0)return;const T=s["onUpdate:modelValue"]!==void 0;T===!0&&(d("update:modelValue",!0),u=_,r.nextTick(()=>{u===_&&(u=void 0)})),(s.modelValue===null||T===!1)&&v(_)}function v(_){e.value!==!0&&(e.value=!0,d("beforeShow",_),o!==void 0?o(_):d("show",_))}function p(_){if(s.disable===!0)return;const T=s["onUpdate:modelValue"]!==void 0;T===!0&&(d("update:modelValue",!1),u=_,r.nextTick(()=>{u===_&&(u=void 0)})),(s.modelValue===null||T===!1)&&k(_)}function k(_){e.value!==!1&&(e.value=!1,d("beforeHide",_),l!==void 0?l(_):d("hide",_))}function h(_){s.disable===!0&&_===!0?s["onUpdate:modelValue"]!==void 0&&d("update:modelValue",!1):_===!0!==e.value&&(_===!0?v:k)(u)}r.watch(()=>s.modelValue,h),n!==void 0&&wo(a)===!0&&r.watch(()=>c.$route.fullPath,()=>{n.value===!0&&e.value===!0&&p()}),i===!0&&r.onMounted(()=>{h(s.modelValue)});const P={show:y,hide:p,toggle:m};return Object.assign(c,P),P}let Pe=[],it=[];function xo(e){it=it.filter(t=>t!==e)}function Il(e){xo(e),it.push(e)}function ko(e){xo(e),it.length===0&&Pe.length!==0&&(Pe[Pe.length-1](),Pe=[])}function kt(e){it.length===0?e():Pe.push(e)}function Nl(e){Pe=Pe.filter(t=>t!==e)}const Co={};let Dl=1,Hl=document.body;function jl(e,t){const n=document.createElement("div");if(n.id=t!==void 0?`q-portal--${t}--${Dl++}`:e,Co.globalNodes!==void 0){const o=Co.globalNodes.class;o!==void 0&&(n.className=o)}return Hl.appendChild(n),n}function Ul(e){e.remove()}const at=[];function Wl(e,t){do{if(e.$options.name==="QMenu"){if(e.hide(t),e.$props.separateClosePopup===!0)return sn(e)}else if(e.__qPortal===!0){const n=sn(e);return n!==void 0&&n.$options.name==="QPopupProxy"?(e.hide(t),n):e}e=sn(e)}while(e!=null)}const Kl=oe({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function Ql(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 fn(e,t,n,o){const l=r.ref(!1),i=r.ref(!1);let a=null;const s={},d=o==="dialog"&&Ql(e);function c(m){if(m===!0){ko(s),i.value=!0;return}i.value=!1,l.value===!1&&(d===!1&&a===null&&(a=jl(!1,o)),l.value=!0,at.push(e.proxy),Il(s))}function u(m){if(i.value=!1,m!==!0)return;ko(s),l.value=!1;const y=at.indexOf(e.proxy);y!==-1&&at.splice(y,1),a!==null&&(Ul(a),a=null)}return r.onUnmounted(()=>{u(!0)}),e.proxy.__qPortal=!0,_e(e.proxy,"contentEl",()=>t.value),{showPortal:c,hidePortal:u,portalIsActive:l,portalIsAccessible:i,renderPortal:()=>d===!0?n():l.value===!0?[r.h(r.Teleport,{to:a},r.h(Kl,n))]:void 0}}const st={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function mn(e,t=()=>{},n=()=>{}){return{transitionProps:r.computed(()=>{const o=`q-transition--${e.transitionShow||t()}`,l=`q-transition--${e.transitionHide||n()}`;return{appear:!0,enterFromClass:`${o}-enter-from`,enterActiveClass:`${o}-enter-active`,enterToClass:`${o}-enter-to`,leaveFromClass:`${l}-leave-from`,leaveActiveClass:`${l}-leave-active`,leaveToClass:`${l}-leave-to`}}),transitionStyle:r.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function hn(){let e;const t=r.getCurrentInstance();function n(){e=void 0}return r.onDeactivated(n),r.onBeforeUnmount(n),{removeTick:n,registerTick(o){e=o,r.nextTick(()=>{e===o&&(So(t)===!1&&e(),e=void 0)})}}}function pn(){let e=null;const t=r.getCurrentInstance();function n(){e!==null&&(clearTimeout(e),e=null)}return r.onDeactivated(n),r.onBeforeUnmount(n),{removeTimeout:n,registerTimeout(o,l){n(),So(t)===!1&&(e=setTimeout(()=>{e=null,o()},l))}}}function gn(e,t){const n=e.style;for(const o in t)n[o]=t[o]}function Jl(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=r.unref(e);if(t)return t.$el||t}function _o(e,t){if(e==null||e.contains(t)===!0)return!0;for(let n=e.nextElementSibling;n!==null;n=n.nextElementSibling)if(n.contains(t))return!0;return!1}const vn=[Element,String],Xl=[null,document,document.body,document.scrollingElement,document.documentElement];function yn(e,t){let n=Jl(t);if(n===void 0){if(e==null)return window;n=e.closest(".scroll,.scroll-y,.overflow-auto")}return Xl.includes(n)?window:n}function Eo(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function To(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let Ct;function _t(){if(Ct!==void 0)return Ct;const e=document.createElement("p"),t=document.createElement("div");gn(e,{width:"100%",height:"200px"}),gn(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const n=e.offsetWidth;t.style.overflow="scroll";let o=e.offsetWidth;return n===o&&(o=t.clientWidth),t.remove(),Ct=n-o,Ct}function Yl(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:Et}=se,Me=[];function Tt(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let n=at.length-1;for(;n>=0;){const o=at[n].$;if(o.type.name==="QTooltip"){n--;continue}if(o.type.name!=="QDialog")break;if(o.props.seamless!==!0)return;n--}for(let o=Me.length-1;o>=0;o--){const l=Me[o];if((l.anchorEl.value===null||l.anchorEl.value.contains(t)===!1)&&(t===document.body||l.innerRef.value!==null&&l.innerRef.value.contains(t)===!1))e.qClickOutside=!0,l.onClickOutside(e);else return}}function Ro(e){Me.push(e),Me.length===1&&(document.addEventListener("mousedown",Tt,Et),document.addEventListener("touchstart",Tt,Et))}function Rt(e){const t=Me.findIndex(n=>n===e);t!==-1&&(Me.splice(t,1),Me.length===0&&(document.removeEventListener("mousedown",Tt,Et),document.removeEventListener("touchstart",Tt,Et)))}let Bo,qo;function Bt(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 Ao(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const bn={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{bn[`${e}#ltr`]=e,bn[`${e}#rtl`]=e});function qt(e,t){const n=e.split(" ");return{vertical:n[0],horizontal:bn[`${n[1]}#${t===!0?"rtl":"ltr"}`]}}function Zl(e,t){let{top:n,left:o,right:l,bottom:i,width:a,height:s}=e.getBoundingClientRect();return t!==void 0&&(n-=t[1],o-=t[0],i+=t[1],l+=t[0],a+=t[0],s+=t[1]),{top:n,bottom:i,height:s,left:o,right:l,width:a,middle:o+(l-o)/2,center:n+(i-n)/2}}function Gl(e,t,n){let{top:o,left:l}=e.getBoundingClientRect();return o+=t.top,l+=t.left,n!==void 0&&(o+=n[1],l+=n[0]),{top:o,bottom:o+1,height:1,left:l,right:l+1,width:1,middle:l,center:o}}function ei(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function Oo(e,t,n,o){return{top:e[n.vertical]-t[o.vertical],left:e[n.horizontal]-t[o.horizontal]}}function wn(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{wn(e,t+1)},10);return}const{targetEl:n,offset:o,anchorEl:l,anchorOrigin:i,selfOrigin:a,absoluteOffset:s,fit:d,cover:c,maxHeight:u,maxWidth:m}=e;if(me.is.ios===!0&&window.visualViewport!==void 0){const q=document.body.style,{offsetLeft:O,offsetTop:N}=window.visualViewport;O!==Bo&&(q.setProperty("--q-pe-left",O+"px"),Bo=O),N!==qo&&(q.setProperty("--q-pe-top",N+"px"),qo=N)}const{scrollLeft:y,scrollTop:v}=n,p=s===void 0?Zl(l,c===!0?[0,0]:o):Gl(l,s,o);Object.assign(n.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:m,maxHeight:u,visibility:"visible"});const{offsetWidth:k,offsetHeight:h}=n,{elWidth:P,elHeight:_}=d===!0||c===!0?{elWidth:Math.max(p.width,k),elHeight:c===!0?Math.max(p.height,h):h}:{elWidth:k,elHeight:h};let T={maxWidth:m,maxHeight:u};(d===!0||c===!0)&&(T.minWidth=p.width+"px",c===!0&&(T.minHeight=p.height+"px")),Object.assign(n.style,T);const B=ei(P,_);let C=Oo(p,B,i,a);if(s===void 0||o===void 0)Sn(C,p,B,i,a);else{const{top:q,left:O}=C;Sn(C,p,B,i,a);let N=!1;if(C.top!==q){N=!0;const S=2*o[1];p.center=p.top-=S,p.bottom-=S+2}if(C.left!==O){N=!0;const S=2*o[0];p.middle=p.left-=S,p.right-=S+2}N===!0&&(C=Oo(p,B,i,a),Sn(C,p,B,i,a))}T={top:C.top+"px",left:C.left+"px"},C.maxHeight!==void 0&&(T.maxHeight=C.maxHeight+"px",p.height>C.maxHeight&&(T.minHeight=T.maxHeight)),C.maxWidth!==void 0&&(T.maxWidth=C.maxWidth+"px",p.width>C.maxWidth&&(T.minWidth=T.maxWidth)),Object.assign(n.style,T),n.scrollTop!==v&&(n.scrollTop=v),n.scrollLeft!==y&&(n.scrollLeft=y)}function Sn(e,t,n,o,l){const i=n.bottom,a=n.right,s=_t(),d=window.innerHeight-s,c=document.body.clientWidth;if(e.top<0||e.top+i>d)if(l.vertical==="center")e.top=t[o.vertical]>d/2?Math.max(0,d-i):0,e.maxHeight=Math.min(i,d);else if(t[o.vertical]>d/2){const u=Math.min(d,o.vertical==="center"?t.center:o.vertical===l.vertical?t.bottom:t.top);e.maxHeight=Math.min(i,u),e.top=Math.max(0,u-i)}else e.top=Math.max(0,o.vertical==="center"?t.center:o.vertical===l.vertical?t.top:t.bottom),e.maxHeight=Math.min(i,d-e.top);if(e.left<0||e.left+a>c)if(e.maxWidth=Math.min(a,c),l.horizontal==="middle")e.left=t[o.horizontal]>c/2?Math.max(0,c-a):0;else if(t[o.horizontal]>c/2){const u=Math.min(c,o.horizontal==="middle"?t.middle:o.horizontal===l.horizontal?t.right:t.left);e.maxWidth=Math.min(a,u),e.left=Math.max(0,u-e.maxWidth)}else e.left=Math.max(0,o.horizontal==="middle"?t.middle:o.horizontal===l.horizontal?t.left:t.right),e.maxWidth=Math.min(a,c-e.left)}const ti=oe({name:"QTooltip",inheritAttrs:!1,props:{...vo,...un,...st,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...st.transitionShow,default:"jump-down"},transitionHide:{...st.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:Bt},self:{type:String,default:"top middle",validator:Bt},offset:{type:Array,default:()=>[14,14],validator:Ao},scrollTarget:vn,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...cn],setup(e,{slots:t,emit:n,attrs:o}){let l,i;const a=r.getCurrentInstance(),{proxy:{$q:s}}=a,d=r.ref(null),c=r.ref(!1),u=r.computed(()=>qt(e.anchor,s.lang.rtl)),m=r.computed(()=>qt(e.self,s.lang.rtl)),y=r.computed(()=>e.persistent!==!0),{registerTick:v,removeTick:p}=hn(),{registerTimeout:k}=pn(),{transitionProps:h,transitionStyle:P}=mn(e),{localScrollTarget:_,changeScrollEvent:T,unconfigureScrollTarget:B}=bo(e,X),{anchorEl:C,canShow:q,anchorEvents:O}=yo({showing:c,configureAnchorEl:U}),{show:N,hide:S}=dn({showing:c,canShow:q,handleShow:j,handleHide:R,hideOnRouteChange:y,processOnMount:!0});Object.assign(O,{delayShow:K,delayHide:V});const{showPortal:E,hidePortal:L,renderPortal:x}=fn(a,d,g,"tooltip");if(s.platform.is.mobile===!0){const M={anchorEl:C,innerRef:d,onClickOutside(Q){return S(Q),Q.target.classList.contains("q-dialog__backdrop")&&ae(Q),!0}},W=r.computed(()=>e.modelValue===null&&e.persistent!==!0&&c.value===!0);r.watch(W,Q=>{(Q===!0?Ro:Rt)(M)}),r.onBeforeUnmount(()=>{Rt(M)})}function j(M){E(),v(()=>{i=new MutationObserver(()=>D()),i.observe(d.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),D(),X()}),l===void 0&&(l=r.watch(()=>s.screen.width+"|"+s.screen.height+"|"+e.self+"|"+e.anchor+"|"+s.lang.rtl,D)),k(()=>{E(!0),n("show",M)},e.transitionDuration)}function R(M){p(),L(),H(),k(()=>{L(!0),n("hide",M)},e.transitionDuration)}function H(){i!==void 0&&(i.disconnect(),i=void 0),l!==void 0&&(l(),l=void 0),B(),xt(O,"tooltipTemp")}function D(){wn({targetEl:d.value,offset:e.offset,anchorEl:C.value,anchorOrigin:u.value,selfOrigin:m.value,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function K(M){if(s.platform.is.mobile===!0){rn(),document.body.classList.add("non-selectable");const W=C.value,Q=["touchmove","touchcancel","touchend","click"].map(A=>[W,A,"delayHide","passiveCapture"]);lt(O,"tooltipTemp",Q)}k(()=>{N(M)},e.delay)}function V(M){s.platform.is.mobile===!0&&(xt(O,"tooltipTemp"),rn(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),k(()=>{S(M)},e.hideDelay)}function U(){if(e.noParentEvent===!0||C.value===null)return;const M=s.platform.is.mobile===!0?[[C.value,"touchstart","delayShow","passive"]]:[[C.value,"mouseenter","delayShow","passive"],[C.value,"mouseleave","delayHide","passive"]];lt(O,"anchor",M)}function X(){if(C.value!==null||e.scrollTarget!==void 0){_.value=yn(C.value,e.scrollTarget);const M=e.noParentEvent===!0?D:S;T(_.value,M)}}function b(){return c.value===!0?r.h("div",{...o,ref:d,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",o.class],style:[o.style,P.value],role:"tooltip"},ge(t.default)):null}function g(){return r.h(r.Transition,h.value,b)}return r.onBeforeUnmount(H),Object.assign(a.proxy,{updatePosition:D}),x}}),xn={xs:18,sm:24,md:32,lg:38,xl:46},kn={size:String};function Cn(e,t=xn){return r.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}const Po="0 0 24 24",Mo=e=>e,_n=e=>`ionicons ${e}`,Lo={"mdi-":e=>`mdi ${e}`,"icon-":Mo,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":_n,"ion-ios":_n,"ion-logo":_n,"iconfont ":Mo,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},Vo={o_:"-outlined",r_:"-round",s_:"-sharp"},$o={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},ni=new RegExp("^("+Object.keys(Lo).join("|")+")"),oi=new RegExp("^("+Object.keys(Vo).join("|")+")"),Fo=new RegExp("^("+Object.keys($o).join("|")+")"),ri=/^[Mm]\s?[-+]?\.?\d/,li=/^img:/,ii=/^svguse:/,ai=/^ion-/,si=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,Ee=oe({name:"QIcon",props:{...kn,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),o=Cn(e),l=r.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),i=r.computed(()=>{let a,s=e.name;if(s==="none"||!s)return{none:!0};if(n.iconMapFn!==null){const u=n.iconMapFn(s);if(u!==void 0)if(u.icon!==void 0){if(s=u.icon,s==="none"||!s)return{none:!0}}else return{cls:u.cls,content:u.content!==void 0?u.content:" "}}if(ri.test(s)===!0){const[u,m=Po]=s.split("|");return{svg:!0,viewBox:m,nodes:u.split("&&").map(y=>{const[v,p,k]=y.split("@@");return r.h("path",{style:p,d:v,transform:k})})}}if(li.test(s)===!0)return{img:!0,src:s.substring(4)};if(ii.test(s)===!0){const[u,m=Po]=s.split("|");return{svguse:!0,src:u.substring(7),viewBox:m}}let d=" ";const c=s.match(ni);if(c!==null)a=Lo[c[1]](s);else if(si.test(s)===!0)a=s;else if(ai.test(s)===!0)a=`ionicons ion-${n.platform.is.ios===!0?"ios":"md"}${s.substring(3)}`;else if(Fo.test(s)===!0){a="notranslate material-symbols";const u=s.match(Fo);u!==null&&(s=s.substring(6),a+=$o[u[1]]),d=s}else{a="notranslate material-icons";const u=s.match(oi);u!==null&&(s=s.substring(2),a+=Vo[u[1]]),d=s}return{cls:a,content:d}});return()=>{const a={class:l.value,style:o.value,"aria-hidden":"true",role:"presentation"};return i.value.none===!0?r.h(e.tag,a,ge(t.default)):i.value.img===!0?r.h(e.tag,a,Re(t.default,[r.h("img",{src:i.value.src})])):i.value.svg===!0?r.h(e.tag,a,Re(t.default,[r.h("svg",{viewBox:i.value.viewBox||"0 0 24 24"},i.value.nodes)])):i.value.svguse===!0?r.h(e.tag,a,Re(t.default,[r.h("svg",{viewBox:i.value.viewBox},[r.h("use",{"xlink:href":i.value.src})])])):(i.value.cls!==void 0&&(a.class+=" "+i.value.cls),r.h(e.tag,a,Re(t.default,[i.value.content])))}}}),ui={size:{type:[String,Number],default:"1em"},color:String};function ci(e){return{cSize:r.computed(()=>e.size in xn?`${xn[e.size]}px`:e.size),classes:r.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const En=oe({name:"QSpinner",props:{...ui,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:n}=ci(e);return()=>r.h("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[r.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function di(e,t=250){let n=!1,o;return function(){return n===!1&&(n=!0,setTimeout(()=>{n=!1},t),o=e.apply(this,arguments)),o}}function zo(e,t,n,o){n.modifiers.stop===!0&&Se(e);const l=n.modifiers.color;let i=n.modifiers.center;i=i===!0||o===!0;const a=document.createElement("span"),s=document.createElement("span"),d=go(e),{left:c,top:u,width:m,height:y}=t.getBoundingClientRect(),v=Math.sqrt(m*m+y*y),p=v/2,k=`${(m-v)/2}px`,h=i?k:`${d.left-c-p}px`,P=`${(y-v)/2}px`,_=i?P:`${d.top-u-p}px`;s.className="q-ripple__inner",gn(s,{height:`${v}px`,width:`${v}px`,transform:`translate3d(${h},${_},0) scale3d(.2,.2,1)`,opacity:0}),a.className=`q-ripple${l?" text-"+l:""}`,a.setAttribute("dir","ltr"),a.appendChild(s),t.appendChild(a);const T=()=>{a.remove(),clearTimeout(B)};n.abort.push(T);let B=setTimeout(()=>{s.classList.add("q-ripple__inner--enter"),s.style.transform=`translate3d(${k},${P},0) scale3d(1,1,1)`,s.style.opacity=.2,B=setTimeout(()=>{s.classList.remove("q-ripple__inner--enter"),s.classList.add("q-ripple__inner--leave"),s.style.opacity=0,B=setTimeout(()=>{a.remove(),n.abort.splice(n.abort.indexOf(T),1)},275)},250)},50)}function Io(e,{modifiers:t,value:n,arg:o}){const l=Object.assign({},e.cfg.ripple,t,n);e.modifiers={early:l.early===!0,stop:l.stop===!0,center:l.center===!0,color:l.color||o,keyCodes:[].concat(l.keyCodes||13)}}const No=Rl({name:"ripple",beforeMount(e,t){const n=t.instance.$.appContext.config.globalProperties.$q.config||{};if(n.ripple===!1)return;const o={cfg:n,enabled:t.value!==!1,modifiers:{},abort:[],start(l){o.enabled===!0&&l.qSkipRipple!==!0&&l.type===(o.modifiers.early===!0?"pointerdown":"click")&&zo(l,e,o,l.qKeyEvent===!0)},keystart:di(l=>{o.enabled===!0&&l.qSkipRipple!==!0&&Oe(l,o.modifiers.keyCodes)===!0&&l.type===`key${o.modifiers.early===!0?"down":"up"}`&&zo(l,e,o,!0)},300)};Io(o,t),e.__qripple=o,lt(o,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const n=e.__qripple;n!==void 0&&(n.enabled=t.value!==!1,n.enabled===!0&&Object(t.value)===t.value&&Io(n,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(n=>{n()}),xt(t,"main"),delete e._qripple)}}),Do={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},fi=Object.keys(Do),mi={align:{type:String,validator:e=>fi.includes(e)}};function hi(e){return r.computed(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${Do[t]}`})}function Ho(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function jo(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function pi(e,t){for(const n in t){const o=t[n],l=e[n];if(typeof o=="string"){if(o!==l)return!1}else if(Array.isArray(l)===!1||l.length!==o.length||o.some((i,a)=>i!==l[a]))return!1}return!0}function Uo(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function gi(e,t){return Array.isArray(e)===!0?Uo(e,t):Array.isArray(t)===!0?Uo(t,e):e===t}function vi(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(gi(e[n],t[n])===!1)return!1;return!0}const Wo={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},yi={...Wo,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Ko({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const n=r.getCurrentInstance(),{props:o,proxy:l,emit:i}=n,a=wo(n),s=r.computed(()=>o.disable!==!0&&o.href!==void 0),d=t===!0?r.computed(()=>a===!0&&o.disable!==!0&&s.value!==!0&&o.to!==void 0&&o.to!==null&&o.to!==""):r.computed(()=>a===!0&&s.value!==!0&&o.to!==void 0&&o.to!==null&&o.to!==""),c=r.computed(()=>d.value===!0?_(o.to):null),u=r.computed(()=>c.value!==null),m=r.computed(()=>s.value===!0||u.value===!0),y=r.computed(()=>o.type==="a"||m.value===!0?"a":o.tag||e||"div"),v=r.computed(()=>s.value===!0?{href:o.href,target:o.target}:u.value===!0?{href:c.value.href,target:o.target}:{}),p=r.computed(()=>{if(u.value===!1)return-1;const{matched:C}=c.value,{length:q}=C,O=C[q-1];if(O===void 0)return-1;const N=l.$route.matched;if(N.length===0)return-1;const S=N.findIndex(jo.bind(null,O));if(S!==-1)return S;const E=Ho(C[q-2]);return q>1&&Ho(O)===E&&N[N.length-1].path!==E?N.findIndex(jo.bind(null,C[q-2])):S}),k=r.computed(()=>u.value===!0&&p.value!==-1&&pi(l.$route.params,c.value.params)),h=r.computed(()=>k.value===!0&&p.value===l.$route.matched.length-1&&vi(l.$route.params,c.value.params)),P=r.computed(()=>u.value===!0?h.value===!0?` ${o.exactActiveClass} ${o.activeClass}`:o.exact===!0?"":k.value===!0?` ${o.activeClass}`:"":"");function _(C){try{return l.$router.resolve(C)}catch{}return null}function T(C,{returnRouterError:q,to:O=o.to,replace:N=o.replace}={}){if(o.disable===!0)return C.preventDefault(),Promise.resolve(!1);if(C.metaKey||C.altKey||C.ctrlKey||C.shiftKey||C.button!==void 0&&C.button!==0||o.target==="_blank")return Promise.resolve(!1);C.preventDefault();const S=l.$router[N===!0?"replace":"push"](O);return q===!0?S:S.then(()=>{}).catch(()=>{})}function B(C){if(u.value===!0){const q=O=>T(C,O);i("click",C,q),C.defaultPrevented!==!0&&q()}else i("click",C)}return{hasRouterLink:u,hasHrefLink:s,hasLink:m,linkTag:y,resolvedLink:c,linkIsActive:k,linkIsExactActive:h,linkClass:P,linkAttrs:v,getLink:_,navigateToRouterLink:T,navigateOnClick:B}}const Qo={none:0,xs:4,sm:8,md:16,lg:24,xl:32},bi={xs:8,sm:10,md:14,lg:20,xl:24},wi=["button","submit","reset"],Si=/[^\s]\/[^\s]/,xi=["flat","outline","push","unelevated"];function ki(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}const Ci={...{...kn,...Wo,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...xi.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:{...mi.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function _i(e){const t=Cn(e,bi),n=hi(e),{hasRouterLink:o,hasLink:l,linkTag:i,linkAttrs:a,navigateOnClick:s}=Ko({fallbackTag:"button"}),d=r.computed(()=>{const h=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},h,{padding:e.padding.split(/\s+/).map(P=>P in Qo?Qo[P]+"px":P).join(" "),minWidth:"0",minHeight:"0"}):h}),c=r.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),u=r.computed(()=>e.disable!==!0&&e.loading!==!0),m=r.computed(()=>u.value===!0?e.tabindex||0:-1),y=r.computed(()=>ki(e,"standard")),v=r.computed(()=>{const h={tabindex:m.value};return l.value===!0?Object.assign(h,a.value):wi.includes(e.type)===!0&&(h.type=e.type),i.value==="a"?(e.disable===!0?h["aria-disabled"]="true":h.href===void 0&&(h.role="button"),o.value!==!0&&Si.test(e.type)===!0&&(h.type=e.type)):e.disable===!0&&(h.disabled="",h["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(h,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),h}),p=r.computed(()=>{let h;e.color!==void 0?e.flat===!0||e.outline===!0?h=`text-${e.textColor||e.color}`:h=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(h=`text-${e.textColor}`);const P=e.round===!0?"round":`rectangle${c.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${y.value} q-btn--${P}`+(h!==void 0?" "+h:"")+(u.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=r.computed(()=>n.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:p,style:d,innerClasses:k,attributes:v,hasLink:l,linkTag:i,navigateOnClick:s,isActionable:u}}const{passiveCapture:ve}=se;let Ue=null,We=null,Ke=null;const Ei=oe({name:"QBtn",props:{...Ci,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:n}){const{proxy:o}=r.getCurrentInstance(),{classes:l,style:i,innerClasses:a,attributes:s,hasLink:d,linkTag:c,navigateOnClick:u,isActionable:m}=_i(e),y=r.ref(null),v=r.ref(null);let p=null,k,h=null;const P=r.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),_=r.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:d.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),T=r.computed(()=>({center:e.round})),B=r.computed(()=>{const R=Math.max(0,Math.min(100,e.percentage));return R>0?{transition:"transform 0.6s",transform:`translateX(${R-100}%)`}:{}}),C=r.computed(()=>{if(e.loading===!0)return{onMousedown:j,onTouchstart:j,onClick:j,onKeydown:j,onKeyup:j};if(m.value===!0){const R={onClick:O,onKeydown:N,onMousedown:E};if(o.$q.platform.has.touch===!0){const H=e.onTouchstart!==void 0?"":"Passive";R[`onTouchstart${H}`]=S}return R}return{onClick:ae}}),q=r.computed(()=>({ref:y,class:"q-btn q-btn-item non-selectable no-outline "+l.value,style:i.value,...s.value,...C.value}));function O(R){if(y.value!==null){if(R!==void 0){if(R.defaultPrevented===!0)return;const H=document.activeElement;if(e.type==="submit"&&H!==document.body&&y.value.contains(H)===!1&&H.contains(y.value)===!1){y.value.focus();const D=()=>{document.removeEventListener("keydown",ae,!0),document.removeEventListener("keyup",D,ve),y.value!==null&&y.value.removeEventListener("blur",D,ve)};document.addEventListener("keydown",ae,!0),document.addEventListener("keyup",D,ve),y.value.addEventListener("blur",D,ve)}}u(R)}}function N(R){y.value!==null&&(n("keydown",R),Oe(R,[13,32])===!0&&We!==y.value&&(We!==null&&x(),R.defaultPrevented!==!0&&(y.value.focus(),We=y.value,y.value.classList.add("q-btn--active"),document.addEventListener("keyup",L,!0),y.value.addEventListener("blur",L,ve)),ae(R)))}function S(R){y.value!==null&&(n("touchstart",R),R.defaultPrevented!==!0&&(Ue!==y.value&&(Ue!==null&&x(),Ue=y.value,p=R.target,p.addEventListener("touchcancel",L,ve),p.addEventListener("touchend",L,ve)),k=!0,h!==null&&clearTimeout(h),h=setTimeout(()=>{h=null,k=!1},200)))}function E(R){y.value!==null&&(R.qSkipRipple=k===!0,n("mousedown",R),R.defaultPrevented!==!0&&Ke!==y.value&&(Ke!==null&&x(),Ke=y.value,y.value.classList.add("q-btn--active"),document.addEventListener("mouseup",L,ve)))}function L(R){if(y.value!==null&&!(R!==void 0&&R.type==="blur"&&document.activeElement===y.value)){if(R!==void 0&&R.type==="keyup"){if(We===y.value&&Oe(R,[13,32])===!0){const H=new MouseEvent("click",R);H.qKeyEvent=!0,R.defaultPrevented===!0&&ye(H),R.cancelBubble===!0&&Se(H),y.value.dispatchEvent(H),ae(R),R.qKeyEvent=!0}n("keyup",R)}x()}}function x(R){const H=v.value;R!==!0&&(Ue===y.value||Ke===y.value)&&H!==null&&H!==document.activeElement&&(H.setAttribute("tabindex",-1),H.focus()),Ue===y.value&&(p!==null&&(p.removeEventListener("touchcancel",L,ve),p.removeEventListener("touchend",L,ve)),Ue=p=null),Ke===y.value&&(document.removeEventListener("mouseup",L,ve),Ke=null),We===y.value&&(document.removeEventListener("keyup",L,!0),y.value!==null&&y.value.removeEventListener("blur",L,ve),We=null),y.value!==null&&y.value.classList.remove("q-btn--active")}function j(R){ae(R),R.qSkipRipple=!0}return r.onBeforeUnmount(()=>{x(!0)}),Object.assign(o,{click:R=>{m.value===!0&&O(R)}}),()=>{let R=[];e.icon!==void 0&&R.push(r.h(Ee,{name:e.icon,left:e.stack!==!0&&P.value===!0,role:"img"})),P.value===!0&&R.push(r.h("span",{class:"block"},[e.label])),R=Re(t.default,R),e.iconRight!==void 0&&e.round===!1&&R.push(r.h(Ee,{name:e.iconRight,right:e.stack!==!0&&P.value===!0,role:"img"}));const H=[r.h("span",{class:"q-focus-helper",ref:v})];return e.loading===!0&&e.percentage!==void 0&&H.push(r.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[r.h("span",{class:"q-btn__progress-indicator fit block",style:B.value})])),H.push(r.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+a.value},R)),e.loading!==null&&H.push(r.h(r.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[r.h("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[r.h(En)])]:null)),r.withDirectives(r.h(c.value,q.value,H),[[No,_.value,void 0,T.value]])}}}),Ti=r.defineComponent({__name:"AppButton",props:{disable:{type:[Boolean,Function]},tooltip:{},uppercase:{type:Boolean},xSmall:{type:Boolean},small:{type:Boolean},large:{type:Boolean},fullWidth:{type:Boolean},wrap:{type:Boolean},largeIcon:{type:Boolean},modelValue:{type:Boolean},badge:{type:[String,Boolean,Number]},badgeColor:{},badgeInline:{type:Boolean},link:{type:Boolean},size:{},type:{},to:{},replace:{type:Boolean},href:{},target:{},label:{},icon:{},iconRight:{},outline:{type:Boolean},flat:{type:Boolean},unelevated:{type:Boolean},rounded:{type:Boolean},push:{type:Boolean},square:{type:Boolean},glossy:{type:Boolean},fab:{type:Boolean},fabMini:{type:Boolean},padding:{},color:{},textColor:{},noCaps:{type:Boolean},noWrap:{type:Boolean},dense:{type:Boolean},ripple:{type:Boolean},tabindex:{},align:{},stack:{type:Boolean},stretch:{type:Boolean},loading:{type:Boolean},round:{type:Boolean},percentage:{},darkPercentage:{type:Boolean}},emits:["update:modelValue","click"],setup(e,{emit:t}){const n=e,o=t;function l(s){o("click",s),o("update:modelValue",!n.modelValue)}const i=r.computed(()=>n.badge===void 0||n.badge===!1||n.badge===!0||n.badge===""?"":n.badge),a=r.computed(()=>typeof n.disable=="function"?n.disable():n.disable);return(s,d)=>(r.openBlock(),r.createBlock(Ei,r.mergeProps(s.$props,{class:[[s.$style.wrapper],"hover-bg-secondary hover-text-black"],disable:a.value,"no-caps":!s.uppercase,"no-wrap":!s.wrap,onClick:l}),{default:r.withCtx(()=>[r.renderSlot(s.$slots,"default"),s.badge?(r.openBlock(),r.createBlock(Pl,{key:0,style:{padding:"6px",top:"-10px",right:"-10px","font-size":"12px"},color:s.badgeColor,floating:!s.badgeInline,rounded:!0},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(i.value),1)]),_:1},8,["color","floating"])):r.createCommentVNode("",!0),s.tooltip?(r.openBlock(),r.createBlock(ti,{key:1,class:"text-body2",delay:400},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(s.tooltip),1)]),_:1})):r.createCommentVNode("",!0)]),_:3},16,["class","disable","no-caps","no-wrap"]))}}),Ri={wrapper:"_wrapper_1g76t_1"},ut=(e,t)=>{const n=e.__vccOpts||e;for(const[o,l]of t)n[o]=l;return n},Bi=ut(Ti,[["__cssModules",{$style:Ri}]]);let Tn,At=0;const ue=new Array(256);for(let e=0;e<256;e++)ue[e]=(e+256).toString(16).substring(1);const qi=(()=>{const e=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(e!==void 0){if(e.randomBytes!==void 0)return e.randomBytes;if(e.getRandomValues!==void 0)return t=>{const n=new Uint8Array(t);return e.getRandomValues(n),n}}return t=>{const n=[];for(let o=t;o>0;o--)n.push(Math.floor(Math.random()*256));return n}})(),Jo=4096;function Rn(){(Tn===void 0||At+16>Jo)&&(At=0,Tn=qi(Jo));const e=Array.prototype.slice.call(Tn,At,At+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,ue[e[0]]+ue[e[1]]+ue[e[2]]+ue[e[3]]+"-"+ue[e[4]]+ue[e[5]]+"-"+ue[e[6]]+ue[e[7]]+"-"+ue[e[8]]+ue[e[9]]+"-"+ue[e[10]]+ue[e[11]]+ue[e[12]]+ue[e[13]]+ue[e[14]]+ue[e[15]]}function Ai(e){return e??null}function Xo(e,t){return e??(t===!0?`f_${Rn()}`:null)}function Oi({getValue:e,required:t=!0}={}){if(Ae.value===!0){const n=e!==void 0?r.ref(Ai(e())):r.ref(null);return t===!0&&n.value===null&&r.onMounted(()=>{n.value=`f_${Rn()}`}),e!==void 0&&r.watch(e,o=>{n.value=Xo(o,t)}),n}return e!==void 0?r.computed(()=>Xo(e(),t)):r.ref(`f_${Rn()}`)}const Yo=/^on[A-Z]/;function Pi(){const{attrs:e,vnode:t}=r.getCurrentInstance(),n={listeners:r.ref({}),attributes:r.ref({})};function o(){const l={},i={};for(const a in e)a!=="class"&&a!=="style"&&Yo.test(a)===!1&&(l[a]=e[a]);for(const a in t.props)Yo.test(a)===!0&&(i[a]=t.props[a]);n.attributes.value=l,n.listeners.value=i}return r.onBeforeUpdate(o),o(),n}const Ot={dark:{type:Boolean,default:null}};function Pt(e,t){return r.computed(()=>e.dark===null?t.dark.isActive:e.dark)}const Bn="_q_l_",Zo="_q_pc_",Mi="_q_fo_";function Te(){}function Li({validate:e,resetValidation:t,requiresQForm:n}){const o=r.inject(Mi,!1);if(o!==!1){const{props:l,proxy:i}=r.getCurrentInstance();Object.assign(i,{validate:e,resetValidation:t}),r.watch(()=>l.disable,a=>{a===!0?(typeof t=="function"&&t(),o.unbindComponent(i)):o.bindComponent(i)}),r.onMounted(()=>{l.disable!==!0&&o.bindComponent(i)}),r.onBeforeUnmount(()=>{l.disable!==!0&&o.unbindComponent(i)})}else n===!0&&console.error("Parent QForm not found on useFormChild()!")}const Go=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,er=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,tr=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Mt=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,Lt=/^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)\)$/,qn={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=>Go.test(e),hexaColor:e=>er.test(e),hexOrHexaColor:e=>tr.test(e),rgbColor:e=>Mt.test(e),rgbaColor:e=>Lt.test(e),rgbOrRgbaColor:e=>Mt.test(e)||Lt.test(e),hexOrRgbColor:e=>Go.test(e)||Mt.test(e),hexaOrRgbaColor:e=>er.test(e)||Lt.test(e),anyColor:e=>tr.test(e)||Mt.test(e)||Lt.test(e)};function nr(e,t=250,n){let o=null;function l(){const i=arguments,a=()=>{o=null,e.apply(this,i)};o!==null&&clearTimeout(o),o=setTimeout(a,t)}return l.cancel=()=>{o!==null&&clearTimeout(o)},l}const Vi=[!0,!1,"ondemand"],$i={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>Vi.includes(e)}};function Fi(e,t){const{props:n,proxy:o}=r.getCurrentInstance(),l=r.ref(!1),i=r.ref(null),a=r.ref(!1);Li({validate:k,resetValidation:p});let s=0,d;const c=r.computed(()=>n.rules!==void 0&&n.rules!==null&&n.rules.length!==0),u=r.computed(()=>n.disable!==!0&&c.value===!0&&t.value===!1),m=r.computed(()=>n.error===!0||l.value===!0),y=r.computed(()=>typeof n.errorMessage=="string"&&n.errorMessage.length!==0?n.errorMessage:i.value);r.watch(()=>n.modelValue,()=>{a.value=!0,u.value===!0&&n.lazyRules===!1&&h()});function v(){n.lazyRules!=="ondemand"&&u.value===!0&&a.value===!0&&h()}r.watch(()=>n.reactiveRules,P=>{P===!0?d===void 0&&(d=r.watch(()=>n.rules,v,{immediate:!0,deep:!0})):d!==void 0&&(d(),d=void 0)},{immediate:!0}),r.watch(()=>n.lazyRules,v),r.watch(e,P=>{P===!0?a.value=!0:u.value===!0&&n.lazyRules!=="ondemand"&&h()});function p(){s++,t.value=!1,a.value=!1,l.value=!1,i.value=null,h.cancel()}function k(P=n.modelValue){if(n.disable===!0||c.value===!1)return!0;const _=++s,T=t.value!==!0?()=>{a.value=!0}:()=>{},B=(q,O)=>{q===!0&&T(),l.value=q,i.value=O||null,t.value=!1},C=[];for(let q=0;q<n.rules.length;q++){const O=n.rules[q];let N;if(typeof O=="function"?N=O(P,qn):typeof O=="string"&&qn[O]!==void 0&&(N=qn[O](P)),N===!1||typeof N=="string")return B(!0,N),!1;N!==!0&&N!==void 0&&C.push(N)}return C.length===0?(B(!1),!0):(t.value=!0,Promise.all(C).then(q=>{if(q===void 0||Array.isArray(q)===!1||q.length===0)return _===s&&B(!1),!0;const O=q.find(N=>N===!1||typeof N=="string");return _===s&&B(O!==void 0,O),O===void 0},q=>(_===s&&(console.error(q),B(!0)),!1)))}const h=nr(k,0);return r.onBeforeUnmount(()=>{d!==void 0&&d(),h.cancel()}),Object.assign(o,{resetValidation:p,validate:k}),_e(o,"hasError",()=>m.value),{isDirtyModel:a,hasRules:c,hasError:m,errorMessage:y,validate:k,resetValidation:p}}function ct(e){return e!=null&&(""+e).length!==0}const Vt={...{...Ot,...$i,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},maxlength:[Number,String]},An=["update:modelValue","clear","focus","blur"];function On({requiredForAttr:e=!0,tagProp:t,changeEvent:n=!1}={}){const{props:o,proxy:l}=r.getCurrentInstance(),i=Pt(o,l.$q),a=Oi({required:e,getValue:()=>o.for});return{requiredForAttr:e,changeEvent:n,tag:t===!0?r.computed(()=>o.tag):{value:"label"},isDark:i,editable:r.computed(()=>o.disable!==!0&&o.readonly!==!0),innerLoading:r.ref(!1),focused:r.ref(!1),hasPopupOpen:!1,splitAttrs:Pi(),targetUid:a,rootRef:r.ref(null),targetRef:r.ref(null),controlRef:r.ref(null)}}function Pn(e){const{props:t,emit:n,slots:o,attrs:l,proxy:i}=r.getCurrentInstance(),{$q:a}=i;let s=null;e.hasValue===void 0&&(e.hasValue=r.computed(()=>ct(t.modelValue))),e.emitValue===void 0&&(e.emitValue=V=>{n("update:modelValue",V)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:S,onFocusout:E}),Object.assign(e,{clearValue:L,onControlFocusin:S,onControlFocusout:E,focus:O}),e.computedCounter===void 0&&(e.computedCounter=r.computed(()=>{if(t.counter!==!1){const V=typeof t.modelValue=="string"||typeof t.modelValue=="number"?(""+t.modelValue).length:Array.isArray(t.modelValue)===!0?t.modelValue.length:0,U=t.maxlength!==void 0?t.maxlength:t.maxValues;return V+(U!==void 0?" / "+U:"")}}));const{isDirtyModel:d,hasRules:c,hasError:u,errorMessage:m,resetValidation:y}=Fi(e.focused,e.innerLoading),v=e.floatingLabel!==void 0?r.computed(()=>t.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):r.computed(()=>t.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),p=r.computed(()=>t.bottomSlots===!0||t.hint!==void 0||c.value===!0||t.counter===!0||t.error!==null),k=r.computed(()=>t.filled===!0?"filled":t.outlined===!0?"outlined":t.borderless===!0?"borderless":t.standout?"standout":"standard"),h=r.computed(()=>`q-field row no-wrap items-start q-field--${k.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(t.rounded===!0?" q-field--rounded":"")+(t.square===!0?" q-field--square":"")+(v.value===!0?" q-field--float":"")+(_.value===!0?" q-field--labeled":"")+(t.dense===!0?" q-field--dense":"")+(t.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(e.isDark.value===!0?" q-field--dark":"")+(e.getControl===void 0?" q-field--auto-height":"")+(e.focused.value===!0?" q-field--focused":"")+(u.value===!0?" q-field--error":"")+(u.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(t.hideBottomSpace!==!0&&p.value===!0?" q-field--with-bottom":"")+(t.disable===!0?" q-field--disabled":t.readonly===!0?" q-field--readonly":"")),P=r.computed(()=>"q-field__control relative-position row no-wrap"+(t.bgColor!==void 0?` bg-${t.bgColor}`:"")+(u.value===!0?" text-negative":typeof t.standout=="string"&&t.standout.length!==0&&e.focused.value===!0?` ${t.standout}`:t.color!==void 0?` text-${t.color}`:"")),_=r.computed(()=>t.labelSlot===!0||t.label!==void 0),T=r.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(t.labelColor!==void 0&&u.value!==!0?` text-${t.labelColor}`:"")),B=r.computed(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:v.value,modelValue:t.modelValue,emitValue:e.emitValue})),C=r.computed(()=>{const V={};return e.targetUid.value&&(V.for=e.targetUid.value),t.disable===!0&&(V["aria-disabled"]="true"),V});function q(){const V=document.activeElement;let U=e.targetRef!==void 0&&e.targetRef.value;U&&(V===null||V.id!==e.targetUid.value)&&(U.hasAttribute("tabindex")===!0||(U=U.querySelector("[tabindex]")),U&&U!==V&&U.focus({preventScroll:!0}))}function O(){kt(q)}function N(){Nl(q);const V=document.activeElement;V!==null&&e.rootRef.value.contains(V)&&V.blur()}function S(V){s!==null&&(clearTimeout(s),s=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,n("focus",V))}function E(V,U){s!==null&&clearTimeout(s),s=setTimeout(()=>{s=null,!(document.hasFocus()===!0&&(e.hasPopupOpen===!0||e.controlRef===void 0||e.controlRef.value===null||e.controlRef.value.contains(document.activeElement)!==!1))&&(e.focused.value===!0&&(e.focused.value=!1,n("blur",V)),U!==void 0&&U())})}function L(V){ae(V),a.platform.is.mobile!==!0?(e.targetRef!==void 0&&e.targetRef.value||e.rootRef.value).focus():e.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),t.type==="file"&&(e.inputRef.value.value=null),n("update:modelValue",null),e.changeEvent===!0&&n("change",null),n("clear",t.modelValue),r.nextTick(()=>{const U=d.value;y(),d.value=U})}function x(V){[13,32].includes(V.keyCode)&&L(V)}function j(){const V=[];return o.prepend!==void 0&&V.push(r.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:ye},o.prepend())),V.push(r.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},R())),u.value===!0&&t.noErrorIcon===!1&&V.push(D("error",[r.h(Ee,{name:a.iconSet.field.error,color:"negative"})])),t.loading===!0||e.innerLoading.value===!0?V.push(D("inner-loading-append",o.loading!==void 0?o.loading():[r.h(En,{color:t.color})])):t.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&V.push(D("inner-clearable-append",[r.h(Ee,{class:"q-field__focusable-action",name:t.clearIcon||a.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":a.lang.label.clear,onKeyup:x,onClick:L})])),o.append!==void 0&&V.push(r.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:ye},o.append())),e.getInnerAppend!==void 0&&V.push(D("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&V.push(e.getControlChild()),V}function R(){const V=[];return t.prefix!==void 0&&t.prefix!==null&&V.push(r.h("div",{class:"q-field__prefix no-pointer-events row items-center"},t.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&V.push(e.getShadowControl()),e.getControl!==void 0?V.push(e.getControl()):o.rawControl!==void 0?V.push(o.rawControl()):o.control!==void 0&&V.push(r.h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0},o.control(B.value))),_.value===!0&&V.push(r.h("div",{class:T.value},ge(o.label,t.label))),t.suffix!==void 0&&t.suffix!==null&&V.push(r.h("div",{class:"q-field__suffix no-pointer-events row items-center"},t.suffix)),V.concat(ge(o.default))}function H(){let V,U;u.value===!0?m.value!==null?(V=[r.h("div",{role:"alert"},m.value)],U=`q--slot-error-${m.value}`):(V=ge(o.error),U="q--slot-error"):(t.hideHint!==!0||e.focused.value===!0)&&(t.hint!==void 0?(V=[r.h("div",t.hint)],U=`q--slot-hint-${t.hint}`):(V=ge(o.hint),U="q--slot-hint"));const X=t.counter===!0||o.counter!==void 0;if(t.hideBottomSpace===!0&&X===!1&&V===void 0)return;const b=r.h("div",{key:U,class:"q-field__messages col"},V);return r.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(t.hideBottomSpace!==!0?"animated":"stale"),onClick:ye},[t.hideBottomSpace===!0?b:r.h(r.Transition,{name:"q-transition--field-message"},()=>b),X===!0?r.h("div",{class:"q-field__counter"},o.counter!==void 0?o.counter():e.computedCounter.value):null])}function D(V,U){return U===null?null:r.h("div",{key:V,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},U)}let K=!1;return r.onDeactivated(()=>{K=!0}),r.onActivated(()=>{K===!0&&t.autofocus===!0&&i.focus()}),t.autofocus===!0&&r.onMounted(()=>{i.focus()}),r.onBeforeUnmount(()=>{s!==null&&clearTimeout(s)}),Object.assign(i,{focus:O,blur:N}),function(){const U=e.getControl===void 0&&o.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0,...C.value}:C.value;return r.h(e.tag.value,{ref:e.rootRef,class:[h.value,l.class],style:l.style,...U},[o.before!==void 0?r.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:ye},o.before()):null,r.h("div",{class:"q-field__inner relative-position col self-stretch"},[r.h("div",{ref:e.controlRef,class:P.value,tabindex:-1,...e.controlEvents},j()),p.value===!0?H():null]),o.after!==void 0?r.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:ye},o.after()):null])}}const or={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},$t={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleLowerCase()}},rr=Object.keys($t);rr.forEach(e=>{$t[e].regex=new RegExp($t[e].pattern)});const zi=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+rr.join("")+"])|(.)","g"),lr=/[.*+?^${}()|[\]\\]/g,re="",Ii={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function Ni(e,t,n,o){let l,i,a,s,d,c;const u=r.ref(null),m=r.ref(v());function y(){return e.autogrow===!0||["textarea","text","search","url","tel","password"].includes(e.type)}r.watch(()=>e.type+e.autogrow,k),r.watch(()=>e.mask,S=>{if(S!==void 0)h(m.value,!0);else{const E=O(m.value);k(),e.modelValue!==E&&t("update:modelValue",E)}}),r.watch(()=>e.fillMask+e.reverseFillMask,()=>{u.value===!0&&h(m.value,!0)}),r.watch(()=>e.unmaskedValue,()=>{u.value===!0&&h(m.value)});function v(){if(k(),u.value===!0){const S=C(O(e.modelValue));return e.fillMask!==!1?N(S):S}return e.modelValue}function p(S){if(S<l.length)return l.slice(-S);let E="",L=l;const x=L.indexOf(re);if(x!==-1){for(let j=S-L.length;j>0;j--)E+=re;L=L.slice(0,x)+E+L.slice(x)}return L}function k(){if(u.value=e.mask!==void 0&&e.mask.length!==0&&y(),u.value===!1){s=void 0,l="",i="";return}const S=or[e.mask]===void 0?e.mask:or[e.mask],E=typeof e.fillMask=="string"&&e.fillMask.length!==0?e.fillMask.slice(0,1):"_",L=E.replace(lr,"\\$&"),x=[],j=[],R=[];let H=e.reverseFillMask===!0,D="",K="";S.replace(zi,(b,g,M,W,Q)=>{if(W!==void 0){const A=$t[W];R.push(A),K=A.negate,H===!0&&(j.push("(?:"+K+"+)?("+A.pattern+"+)?(?:"+K+"+)?("+A.pattern+"+)?"),H=!1),j.push("(?:"+K+"+)?("+A.pattern+")?")}else if(M!==void 0)D="\\"+(M==="\\"?"":M),R.push(M),x.push("([^"+D+"]+)?"+D+"?");else{const A=g!==void 0?g:Q;D=A==="\\"?"\\\\\\\\":A.replace(lr,"\\\\$&"),R.push(A),x.push("([^"+D+"]+)?"+D+"?")}});const V=new RegExp("^"+x.join("")+"("+(D===""?".":"[^"+D+"]")+"+)?"+(D===""?"":"["+D+"]*")+"$"),U=j.length-1,X=j.map((b,g)=>g===0&&e.reverseFillMask===!0?new RegExp("^"+L+"*"+b):g===U?new RegExp("^"+b+"("+(K===""?".":K)+"+)?"+(e.reverseFillMask===!0?"$":L+"*")):new RegExp("^"+b));a=R,s=b=>{const g=V.exec(e.reverseFillMask===!0?b:b.slice(0,R.length+1));g!==null&&(b=g.slice(1).join(""));const M=[],W=X.length;for(let Q=0,A=b;Q<W;Q++){const I=X[Q].exec(A);if(I===null)break;A=A.slice(I.shift().length),M.push(...I)}return M.length!==0?M.join(""):b},l=R.map(b=>typeof b=="string"?b:re).join(""),i=l.split(re).join(E)}function h(S,E,L){const x=o.value,j=x.selectionEnd,R=x.value.length-j,H=O(S);E===!0&&k();const D=C(H),K=e.fillMask!==!1?N(D):D,V=m.value!==K;x.value!==K&&(x.value=K),V===!0&&(m.value=K),document.activeElement===x&&r.nextTick(()=>{if(K===i){const X=e.reverseFillMask===!0?i.length:0;x.setSelectionRange(X,X,"forward");return}if(L==="insertFromPaste"&&e.reverseFillMask!==!0){const X=x.selectionEnd;let b=j-1;for(let g=d;g<=b&&g<X;g++)l[g]!==re&&b++;_.right(x,b);return}if(["deleteContentBackward","deleteContentForward"].indexOf(L)!==-1){const X=e.reverseFillMask===!0?j===0?K.length>D.length?1:0:Math.max(0,K.length-(K===i?0:Math.min(D.length,R)+1))+1:j;x.setSelectionRange(X,X,"forward");return}if(e.reverseFillMask===!0)if(V===!0){const X=Math.max(0,K.length-(K===i?0:Math.min(D.length,R+1)));X===1&&j===1?x.setSelectionRange(X,X,"forward"):_.rightReverse(x,X)}else{const X=K.length-R;x.setSelectionRange(X,X,"backward")}else if(V===!0){const X=Math.max(0,l.indexOf(re),Math.min(D.length,j)-1);_.right(x,X)}else{const X=j-1;_.right(x,X)}});const U=e.unmaskedValue===!0?O(K):K;String(e.modelValue)!==U&&(e.modelValue!==null||U!=="")&&n(U,!0)}function P(S,E,L){const x=C(O(S.value));E=Math.max(0,l.indexOf(re),Math.min(x.length,E)),d=E,S.setSelectionRange(E,L,"forward")}const _={left(S,E){const L=l.slice(E-1).indexOf(re)===-1;let x=Math.max(0,E-1);for(;x>=0;x--)if(l[x]===re){E=x,L===!0&&E++;break}if(x<0&&l[E]!==void 0&&l[E]!==re)return _.right(S,0);E>=0&&S.setSelectionRange(E,E,"backward")},right(S,E){const L=S.value.length;let x=Math.min(L,E+1);for(;x<=L;x++)if(l[x]===re){E=x;break}else l[x-1]===re&&(E=x);if(x>L&&l[E-1]!==void 0&&l[E-1]!==re)return _.left(S,L);S.setSelectionRange(E,E,"forward")},leftReverse(S,E){const L=p(S.value.length);let x=Math.max(0,E-1);for(;x>=0;x--)if(L[x-1]===re){E=x;break}else if(L[x]===re&&(E=x,x===0))break;if(x<0&&L[E]!==void 0&&L[E]!==re)return _.rightReverse(S,0);E>=0&&S.setSelectionRange(E,E,"backward")},rightReverse(S,E){const L=S.value.length,x=p(L),j=x.slice(0,E+1).indexOf(re)===-1;let R=Math.min(L,E+1);for(;R<=L;R++)if(x[R-1]===re){E=R,E>0&&j===!0&&E--;break}if(R>L&&x[E-1]!==void 0&&x[E-1]!==re)return _.leftReverse(S,L);S.setSelectionRange(E,E,"forward")}};function T(S){t("click",S),c=void 0}function B(S){if(t("keydown",S),an(S)===!0||S.altKey===!0)return;const E=o.value,L=E.selectionStart,x=E.selectionEnd;if(S.shiftKey||(c=void 0),S.keyCode===37||S.keyCode===39){S.shiftKey&&c===void 0&&(c=E.selectionDirection==="forward"?L:x);const j=_[(S.keyCode===39?"right":"left")+(e.reverseFillMask===!0?"Reverse":"")];if(S.preventDefault(),j(E,c===L?x:L),S.shiftKey){const R=E.selectionStart;E.setSelectionRange(Math.min(c,R),Math.max(c,R),"forward")}}else S.keyCode===8&&e.reverseFillMask!==!0&&L===x?(_.left(E,L),E.setSelectionRange(E.selectionStart,x,"backward")):S.keyCode===46&&e.reverseFillMask===!0&&L===x&&(_.rightReverse(E,x),E.setSelectionRange(L,E.selectionEnd,"forward"))}function C(S){if(S==null||S==="")return"";if(e.reverseFillMask===!0)return q(S);const E=a;let L=0,x="";for(let j=0;j<E.length;j++){const R=S[L],H=E[j];if(typeof H=="string")x+=H,R===H&&L++;else if(R!==void 0&&H.regex.test(R))x+=H.transform!==void 0?H.transform(R):R,L++;else return x}return x}function q(S){const E=a,L=l.indexOf(re);let x=S.length-1,j="";for(let R=E.length-1;R>=0&&x!==-1;R--){const H=E[R];let D=S[x];if(typeof H=="string")j=H+j,D===H&&x--;else if(D!==void 0&&H.regex.test(D))do j=(H.transform!==void 0?H.transform(D):D)+j,x--,D=S[x];while(L===R&&D!==void 0&&H.regex.test(D));else return j}return j}function O(S){return typeof S!="string"||s===void 0?typeof S=="number"?s(""+S):S:s(S)}function N(S){return i.length-S.length<=0?S:e.reverseFillMask===!0&&S.length!==0?i.slice(0,-S.length)+S:S+i.slice(S.length)}return{innerValue:m,hasMask:u,moveCursorForPaste:P,updateMaskValue:h,onMaskedKeydown:B,onMaskedClick:T}}const ir={name:String};function ar(e){return r.computed(()=>e.name||e.for)}function Di(e,t){function n(){const o=e.modelValue;try{const l="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(o)===o&&("length"in o?Array.from(o):[o]).forEach(i=>{l.items.add(i)}),{files:l.files}}catch{return{files:void 0}}}return r.computed(()=>{if(e.type==="file")return n()})}const Hi=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,ji=/[\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,Ui=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,Wi=/[a-z0-9_ -]$/i;function sr(e){return function(n){if(n.type==="compositionend"||n.type==="change"){if(n.target.qComposing!==!0)return;n.target.qComposing=!1,e(n)}else n.type==="compositionupdate"&&n.target.qComposing!==!0&&typeof n.data=="string"&&(me.is.firefox===!0?Wi.test(n.data)===!1:Hi.test(n.data)===!0||ji.test(n.data)===!0||Ui.test(n.data)===!0)===!0&&(n.target.qComposing=!0)}}const Ki=oe({name:"QInput",inheritAttrs:!1,props:{...Vt,...Ii,...ir,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...An,"paste","change","keydown","click","animationend"],setup(e,{emit:t,attrs:n}){const{proxy:o}=r.getCurrentInstance(),{$q:l}=o,i={};let a=NaN,s,d,c=null,u;const m=r.ref(null),y=ar(e),{innerValue:v,hasMask:p,moveCursorForPaste:k,updateMaskValue:h,onMaskedKeydown:P,onMaskedClick:_}=Ni(e,t,D,m),T=Di(e),B=r.computed(()=>ct(v.value)),C=sr(R),q=On({changeEvent:!0}),O=r.computed(()=>e.type==="textarea"||e.autogrow===!0),N=r.computed(()=>O.value===!0||["text","search","url","tel","password"].includes(e.type)),S=r.computed(()=>{const g={...q.splitAttrs.listeners.value,onInput:R,onPaste:j,onChange:V,onBlur:U,onFocus:Se};return g.onCompositionstart=g.onCompositionupdate=g.onCompositionend=C,p.value===!0&&(g.onKeydown=P,g.onClick=_),e.autogrow===!0&&(g.onAnimationend=H),g}),E=r.computed(()=>{const g={tabindex:0,"data-autofocus":e.autofocus===!0||void 0,rows:e.type==="textarea"?6:void 0,"aria-label":e.label,name:y.value,...q.splitAttrs.attributes.value,id:q.targetUid.value,maxlength:e.maxlength,disabled:e.disable===!0,readonly:e.readonly===!0};return O.value===!1&&(g.type=e.type),e.autogrow===!0&&(g.rows=1),g});r.watch(()=>e.type,()=>{m.value&&(m.value.value=e.modelValue)}),r.watch(()=>e.modelValue,g=>{if(p.value===!0){if(d===!0&&(d=!1,String(g)===a))return;h(g)}else v.value!==g&&(v.value=g,e.type==="number"&&i.hasOwnProperty("value")===!0&&(s===!0?s=!1:delete i.value));e.autogrow===!0&&r.nextTick(K)}),r.watch(()=>e.autogrow,g=>{g===!0?r.nextTick(K):m.value!==null&&n.rows>0&&(m.value.style.height="auto")}),r.watch(()=>e.dense,()=>{e.autogrow===!0&&r.nextTick(K)});function L(){kt(()=>{const g=document.activeElement;m.value!==null&&m.value!==g&&(g===null||g.id!==q.targetUid.value)&&m.value.focus({preventScroll:!0})})}function x(){m.value!==null&&m.value.select()}function j(g){if(p.value===!0&&e.reverseFillMask!==!0){const M=g.target;k(M,M.selectionStart,M.selectionEnd)}t("paste",g)}function R(g){if(!g||!g.target)return;if(e.type==="file"){t("update:modelValue",g.target.files);return}const M=g.target.value;if(g.target.qComposing===!0){i.value=M;return}if(p.value===!0)h(M,!1,g.inputType);else if(D(M),N.value===!0&&g.target===document.activeElement){const{selectionStart:W,selectionEnd:Q}=g.target;W!==void 0&&Q!==void 0&&r.nextTick(()=>{g.target===document.activeElement&&M.indexOf(g.target.value)===0&&g.target.setSelectionRange(W,Q)})}e.autogrow===!0&&K()}function H(g){t("animationend",g),K()}function D(g,M){u=()=>{c=null,e.type!=="number"&&i.hasOwnProperty("value")===!0&&delete i.value,e.modelValue!==g&&a!==g&&(a=g,M===!0&&(d=!0),t("update:modelValue",g),r.nextTick(()=>{a===g&&(a=NaN)})),u=void 0},e.type==="number"&&(s=!0,i.value=g),e.debounce!==void 0?(c!==null&&clearTimeout(c),i.value=g,c=setTimeout(u,e.debounce)):u()}function K(){requestAnimationFrame(()=>{const g=m.value;if(g!==null){const M=g.parentNode.style,{scrollTop:W}=g,{overflowY:Q,maxHeight:A}=l.platform.is.firefox===!0?{}:window.getComputedStyle(g),I=Q!==void 0&&Q!=="scroll";I===!0&&(g.style.overflowY="hidden"),M.marginBottom=g.scrollHeight-1+"px",g.style.height="1px",g.style.height=g.scrollHeight+"px",I===!0&&(g.style.overflowY=parseInt(A,10)<g.scrollHeight?"auto":"hidden"),M.marginBottom="",g.scrollTop=W}})}function V(g){C(g),c!==null&&(clearTimeout(c),c=null),u!==void 0&&u(),t("change",g.target.value)}function U(g){g!==void 0&&Se(g),c!==null&&(clearTimeout(c),c=null),u!==void 0&&u(),s=!1,d=!1,delete i.value,e.type!=="file"&&setTimeout(()=>{m.value!==null&&(m.value.value=v.value!==void 0?v.value:"")})}function X(){return i.hasOwnProperty("value")===!0?i.value:v.value!==void 0?v.value:""}r.onBeforeUnmount(()=>{U()}),r.onMounted(()=>{e.autogrow===!0&&K()}),Object.assign(q,{innerValue:v,fieldClass:r.computed(()=>`q-${O.value===!0?"textarea":"input"}`+(e.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:r.computed(()=>e.type!=="file"&&typeof e.shadowText=="string"&&e.shadowText.length!==0),inputRef:m,emitValue:D,hasValue:B,floatingLabel:r.computed(()=>B.value===!0&&(e.type!=="number"||isNaN(v.value)===!1)||ct(e.displayValue)),getControl:()=>r.h(O.value===!0?"textarea":"input",{ref:m,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,...E.value,...S.value,...e.type!=="file"?{value:X()}:T.value}),getShadowControl:()=>r.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(O.value===!0?"":" text-no-wrap")},[r.h("span",{class:"invisible"},X()),r.h("span",e.shadowText)])});const b=Pn(q);return Object.assign(o,{focus:L,select:x,getNativeElement:()=>m.value}),_e(o,"nativeEl",()=>m.value),b}}),Qi=ut(r.defineComponent({__name:"AppInput",props:{field:{type:Boolean},required:{type:Boolean},datePicker:{type:Boolean},timePicker:{type:Boolean},dateLocale:{},withIcon:{type:Boolean},iconName:{},iconColor:{},withButton:{type:Boolean},buttonIcon:{},buttonTooltip:{},clearTooltip:{},withArrow:{type:Boolean},name:{},mask:{},fillMask:{type:[Boolean,String]},reverseFillMask:{type:Boolean},unmaskedValue:{type:Boolean},modelValue:{default:""},error:{type:Boolean,default:void 0},errorMessage:{},noErrorIcon:{type:Boolean},rules:{},reactiveRules:{type:Boolean},lazyRules:{type:[Boolean,String]},label:{},stackLabel:{type:Boolean},hint:{},hideHint:{type:Boolean},prefix:{},suffix:{},labelColor:{},color:{},bgColor:{},dark:{type:Boolean},loading:{type:Boolean},clearable:{type:Boolean},clearIcon:{},filled:{type:Boolean},outlined:{type:Boolean,default:!0},borderless:{type:Boolean},bordered:{type:Boolean},standout:{type:[Boolean,String]},labelSlot:{type:Boolean},bottomSlots:{type:Boolean},hideBottomSpace:{type:Boolean},counter:{type:Boolean},rounded:{type:Boolean},square:{type:Boolean},dense:{type:Boolean,default:!0},itemAligned:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},autofocus:{type:Boolean},for:{},shadowText:{},type:{},debounce:{},maxlength:{},autogrow:{type:Boolean},inputClass:{},inputStyle:{},onClear:{},"onUpdate:modelValue":{},onFocus:{},onBlur:{},onClick:{}},emits:["update:modelValue","button-click","clear","focus","blur","click"],setup(e,{emit:t}){const n=e,o=t,l=r.computed({get:()=>n.modelValue!==null&&n.modelValue!==void 0&&n.type==="number"?+n.modelValue:n.modelValue,set:a=>o("update:modelValue",n.type==="number"?+a:a)}),i=r.computed(()=>({"--dense":n.dense,"--bordered":n.bordered}));return(a,s)=>(r.openBlock(),r.createBlock(Ki,{modelValue:l.value,"onUpdate:modelValue":s[0]||(s[0]=d=>l.value=d),standout:"",outlined:"",clearable:"",dense:"","bg-color":"white",class:r.normalizeClass([a.$style["app-input"],i.value]),type:a.type,readonly:a.readonly||a.field,placeholder:a.label},{prepend:r.withCtx(()=>[r.createVNode(Ee,null,{default:r.withCtx(()=>s[1]||(s[1]=[r.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[r.createElementVNode("path",{d:"M11.5 21C16.7467 21 21 16.7467 21 11.5C21 6.25329 16.7467 2 11.5 2C6.25329 2 2 6.25329 2 11.5C2 16.7467 6.25329 21 11.5 21Z",stroke:"#404650","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),r.createElementVNode("path",{d:"M22 22L20 20",stroke:"#3F8CFF","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),_:1})]),_:1},8,["modelValue","class","type","readonly","placeholder"]))}}),[["__cssModules",{$style:{"app-input":"_app-input_8jwo9_1"}}]]),Ji=oe({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),o=r.inject(Bn,Te);if(o===Te)return console.error("QPage needs to be a deep child of QLayout"),Te;if(r.inject(Zo,Te)===Te)return console.error("QPage needs to be child of QPageContainer"),Te;const i=r.computed(()=>{const s=(o.header.space===!0?o.header.size:0)+(o.footer.space===!0?o.footer.size:0);if(typeof e.styleFn=="function"){const d=o.isContainer.value===!0?o.containerHeight.value:n.screen.height;return e.styleFn(s,d)}return{minHeight:o.isContainer.value===!0?o.containerHeight.value-s+"px":n.screen.height===0?s!==0?`calc(100vh - ${s}px)`:"100vh":n.screen.height-s+"px"}}),a=r.computed(()=>`q-page${e.padding===!0?" q-layout-padding":""}`);return()=>r.h("main",{class:a.value,style:i.value},ge(t.default))}}),Xi=oe({name:"QPageContainer",setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),o=r.inject(Bn,Te);if(o===Te)return console.error("QPageContainer needs to be child of QLayout"),Te;r.provide(Zo,!0);const l=r.computed(()=>{const i={};return o.header.space===!0&&(i.paddingTop=`${o.header.size}px`),o.right.space===!0&&(i[`padding${n.lang.rtl===!0?"Left":"Right"}`]=`${o.right.size}px`),o.footer.space===!0&&(i.paddingBottom=`${o.footer.size}px`),o.left.space===!0&&(i[`padding${n.lang.rtl===!0?"Right":"Left"}`]=`${o.left.size}px`),i});return()=>r.h("div",{class:"q-page-container",style:l.value},ge(t.default))}}),{passive:ur}=se,Yi=["both","horizontal","vertical"],Zi=oe({name:"QScrollObserver",props:{axis:{type:String,validator:e=>Yi.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:vn},emits:["scroll"],setup(e,{emit:t}){const n={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let o=null,l,i;r.watch(()=>e.scrollTarget,()=>{d(),s()});function a(){o!==null&&o();const m=Math.max(0,Eo(l)),y=To(l),v={top:m-n.position.top,left:y-n.position.left};if(e.axis==="vertical"&&v.top===0||e.axis==="horizontal"&&v.left===0)return;const p=Math.abs(v.top)>=Math.abs(v.left)?v.top<0?"up":"down":v.left<0?"left":"right";n.position={top:m,left:y},n.directionChanged=n.direction!==p,n.delta=v,n.directionChanged===!0&&(n.direction=p,n.inflectionPoint=n.position),t("scroll",{...n})}function s(){l=yn(i,e.scrollTarget),l.addEventListener("scroll",c,ur),c(!0)}function d(){l!==void 0&&(l.removeEventListener("scroll",c,ur),l=void 0)}function c(m){if(m===!0||e.debounce===0||e.debounce==="0")a();else if(o===null){const[y,v]=e.debounce?[setTimeout(a,e.debounce),clearTimeout]:[requestAnimationFrame(a),cancelAnimationFrame];o=()=>{v(y),o=null}}}const{proxy:u}=r.getCurrentInstance();return r.watch(()=>u.$q.lang.rtl,a),r.onMounted(()=>{i=u.$el.parentNode,s()}),r.onBeforeUnmount(()=>{o!==null&&o(),d()}),Object.assign(u,{trigger:c,getPosition:()=>n}),ln}});function Gi(){const e=r.ref(!Ae.value);return e.value===!1&&r.onMounted(()=>{e.value=!0}),{isHydrated:e}}const cr=typeof ResizeObserver<"u",dr=cr===!0?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"},fr=oe({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:t}){let n=null,o,l={width:-1,height:-1};function i(d){d===!0||e.debounce===0||e.debounce==="0"?a():n===null&&(n=setTimeout(a,e.debounce))}function a(){if(n!==null&&(clearTimeout(n),n=null),o){const{offsetWidth:d,offsetHeight:c}=o;(d!==l.width||c!==l.height)&&(l={width:d,height:c},t("resize",l))}}const{proxy:s}=r.getCurrentInstance();if(s.trigger=i,cr===!0){let d;const c=u=>{o=s.$el.parentNode,o?(d=new ResizeObserver(i),d.observe(o),a()):u!==!0&&r.nextTick(()=>{c(!0)})};return r.onMounted(()=>{c()}),r.onBeforeUnmount(()=>{n!==null&&clearTimeout(n),d!==void 0&&(d.disconnect!==void 0?d.disconnect():o&&d.unobserve(o))}),ln}else{let d=function(){n!==null&&(clearTimeout(n),n=null),m!==void 0&&(m.removeEventListener!==void 0&&m.removeEventListener("resize",i,se.passive),m=void 0)},c=function(){d(),o&&o.contentDocument&&(m=o.contentDocument.defaultView,m.addEventListener("resize",i,se.passive),a())};const{isHydrated:u}=Gi();let m;return r.onMounted(()=>{r.nextTick(()=>{o=s.$el,o&&c()})}),r.onBeforeUnmount(d),()=>{if(u.value===!0)return r.h("object",{class:"q--avoid-card-border",style:dr.style,tabindex:-1,type:"text/html",data:dr.url,"aria-hidden":"true",onLoad:c})}}}}),ea=oe({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:e=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(e.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=r.getCurrentInstance(),l=r.ref(null),i=r.ref(o.screen.height),a=r.ref(e.container===!0?0:o.screen.width),s=r.ref({position:0,direction:"down",inflectionPoint:0}),d=r.ref(0),c=r.ref(Ae.value===!0?0:_t()),u=r.computed(()=>"q-layout q-layout--"+(e.container===!0?"containerized":"standard")),m=r.computed(()=>e.container===!1?{minHeight:o.screen.height+"px"}:null),y=r.computed(()=>c.value!==0?{[o.lang.rtl===!0?"left":"right"]:`${c.value}px`}:null),v=r.computed(()=>c.value!==0?{[o.lang.rtl===!0?"right":"left"]:0,[o.lang.rtl===!0?"left":"right"]:`-${c.value}px`,width:`calc(100% + ${c.value}px)`}:null);function p(B){if(e.container===!0||document.qScrollPrevented!==!0){const C={position:B.position.top,direction:B.direction,directionChanged:B.directionChanged,inflectionPoint:B.inflectionPoint.top,delta:B.delta.top};s.value=C,e.onScroll!==void 0&&n("scroll",C)}}function k(B){const{height:C,width:q}=B;let O=!1;i.value!==C&&(O=!0,i.value=C,e.onScrollHeight!==void 0&&n("scrollHeight",C),P()),a.value!==q&&(O=!0,a.value=q),O===!0&&e.onResize!==void 0&&n("resize",B)}function h({height:B}){d.value!==B&&(d.value=B,P())}function P(){if(e.container===!0){const B=i.value>d.value?_t():0;c.value!==B&&(c.value=B)}}let _=null;const T={instances:{},view:r.computed(()=>e.view),isContainer:r.computed(()=>e.container),rootRef:l,height:i,containerHeight:d,scrollbarWidth:c,totalWidth:r.computed(()=>a.value+c.value),rows:r.computed(()=>{const B=e.view.toLowerCase().split(" ");return{top:B[0].split(""),middle:B[1].split(""),bottom:B[2].split("")}}),header:r.reactive({size:0,offset:0,space:!1}),right:r.reactive({size:300,offset:0,space:!1}),footer:r.reactive({size:0,offset:0,space:!1}),left:r.reactive({size:300,offset:0,space:!1}),scroll:s,animate(){_!==null?clearTimeout(_):document.body.classList.add("q-body--layout-animate"),_=setTimeout(()=>{_=null,document.body.classList.remove("q-body--layout-animate")},155)},update(B,C,q){T[B][C]=q}};if(r.provide(Bn,T),_t()>0){let B=function(){O=null,N.classList.remove("hide-scrollbar")},C=function(){if(O===null){if(N.scrollHeight>o.screen.height)return;N.classList.add("hide-scrollbar")}else clearTimeout(O);O=setTimeout(B,300)},q=function(S){O!==null&&S==="remove"&&(clearTimeout(O),B()),window[`${S}EventListener`]("resize",C)},O=null;const N=document.body;r.watch(()=>e.container!==!0?"add":"remove",q),e.container!==!0&&q("add"),r.onUnmounted(()=>{q("remove")})}return()=>{const B=Re(t.default,[r.h(Zi,{onScroll:p}),r.h(fr,{onResize:k})]),C=r.h("div",{class:u.value,style:m.value,ref:e.container===!0?void 0:l,tabindex:-1},B);return e.container===!0?r.h("div",{class:"q-layout-container overflow-hidden",ref:l},[r.h(fr,{onResize:h}),r.h("div",{class:"absolute-full",style:y.value},[r.h("div",{class:"scroll",style:v.value},[C])])]):C}}}),ta=ut(r.defineComponent({__name:"AppLayout",props:{logged:{type:Boolean},console:{type:Boolean},container:{type:Boolean},padding:{}},setup(e){function t(n){const o=document.getElementById("content"),l=n.target;o&&!l.closest("#content")&&o.scrollBy({top:n.deltaY})}return(n,o)=>(r.openBlock(),r.createBlock(ea,{class:r.normalizeClass(n.$style.layout),view:"lHh LpR fFf"},{default:r.withCtx(()=>[n.logged?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(n.$style["loader-backdrop"])},[r.createVNode(En,{size:"md",color:"white",class:r.normalizeClass(n.$style["loader-spinner"])},null,8,["class"])],2)):r.createCommentVNode("",!0),r.renderSlot(n.$slots,"drawer"),r.renderSlot(n.$slots,"header"),r.createVNode(Xi,{class:r.normalizeClass({container:n.container}),onWheel:t},{default:r.withCtx(()=>[r.createVNode(Ji,null,{default:r.withCtx(()=>[r.renderSlot(n.$slots,"default"),r.renderSlot(n.$slots,"page-bottom")]),_:3})]),_:3},8,["class"]),r.renderSlot(n.$slots,"footer")]),_:3},8,["class"]))}}),[["__cssModules",{$style:{layout:"_layout_1hhwj_1","loader-backdrop":"_loader-backdrop_1hhwj_6","loader-spinner":"_loader-spinner_1hhwj_13"}}]]),na={xs:8,sm:10,md:14,lg:20,xl:24},mr=oe({name:"QChip",props:{...Ot,...kn,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=r.getCurrentInstance(),l=Pt(e,o),i=Cn(e,na),a=r.computed(()=>e.selected===!0||e.icon!==void 0),s=r.computed(()=>e.selected===!0?e.iconSelected||o.iconSet.chip.selected:e.icon),d=r.computed(()=>e.iconRemove||o.iconSet.chip.remove),c=r.computed(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),u=r.computed(()=>{const h=e.outline===!0&&e.color||e.textColor;return"q-chip row inline no-wrap items-center"+(e.outline===!1&&e.color!==void 0?` bg-${e.color}`:"")+(h?` text-${h} q-chip--colored`:"")+(e.disable===!0?" disabled":"")+(e.dense===!0?" q-chip--dense":"")+(e.outline===!0?" q-chip--outline":"")+(e.selected===!0?" q-chip--selected":"")+(c.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square===!0?" q-chip--square":"")+(l.value===!0?" q-chip--dark q-dark":"")}),m=r.computed(()=>{const h=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},P={...h,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||o.lang.label.remove};return{chip:h,remove:P}});function y(h){h.keyCode===13&&v(h)}function v(h){e.disable||(n("update:selected",!e.selected),n("click",h))}function p(h){(h.keyCode===void 0||h.keyCode===13)&&(ae(h),e.disable===!1&&(n("update:modelValue",!1),n("remove")))}function k(){const h=[];c.value===!0&&h.push(r.h("div",{class:"q-focus-helper"})),a.value===!0&&h.push(r.h(Ee,{class:"q-chip__icon q-chip__icon--left",name:s.value}));const P=e.label!==void 0?[r.h("div",{class:"ellipsis"},[e.label])]:void 0;return h.push(r.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},ql(t.default,P))),e.iconRight&&h.push(r.h(Ee,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&h.push(r.h(Ee,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:d.value,...m.value.remove,onClick:p,onKeyup:p})),h}return()=>{if(e.modelValue===!1)return;const h={class:u.value,style:i.value};return c.value===!0&&Object.assign(h,m.value.chip,{onClick:v,onKeyup:y}),Al("div",h,k(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[No,e.ripple]])}}}),Mn=oe({name:"QItem",props:{...Ot,...yi,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=r.getCurrentInstance(),l=Pt(e,o),{hasLink:i,linkAttrs:a,linkClass:s,linkTag:d,navigateOnClick:c}=Ko(),u=r.ref(null),m=r.ref(null),y=r.computed(()=>e.clickable===!0||i.value===!0||e.tag==="label"),v=r.computed(()=>e.disable!==!0&&y.value===!0),p=r.computed(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(l.value===!0?" q-item--dark":"")+(i.value===!0&&e.active===null?s.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(v.value===!0?" q-item--clickable q-link cursor-pointer "+(e.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(e.focused===!0?" q-manual-focusable--focused":""):"")),k=r.computed(()=>e.insetLevel===void 0?null:{["padding"+(o.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function h(T){v.value===!0&&(m.value!==null&&(T.qKeyEvent!==!0&&document.activeElement===u.value?m.value.focus():document.activeElement===m.value&&u.value.focus()),c(T))}function P(T){if(v.value===!0&&Oe(T,[13,32])===!0){ae(T),T.qKeyEvent=!0;const B=new MouseEvent("click",T);B.qKeyEvent=!0,u.value.dispatchEvent(B)}n("keyup",T)}function _(){const T=Bl(t.default,[]);return v.value===!0&&T.unshift(r.h("div",{class:"q-focus-helper",tabindex:-1,ref:m})),T}return()=>{const T={ref:u,class:p.value,style:k.value,role:"listitem",onClick:h,onKeyup:P};return v.value===!0?(T.tabindex=e.tabindex||"0",Object.assign(T,a.value)):y.value===!0&&(T["aria-disabled"]="true"),r.h(d.value,T,_())}}}),oa=oe({name:"QField",inheritAttrs:!1,props:{...Vt,tag:{type:String,default:"label"}},emits:An,setup(){return Pn(On({tagProp:!0}))}}),ra=oe({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const n=r.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()=>r.h("div",{class:n.value},ge(t.default))}}),la=oe({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const n=r.computed(()=>parseInt(e.lines,10)),o=r.computed(()=>"q-item__label"+(e.overline===!0?" q-item__label--overline text-overline":"")+(e.caption===!0?" q-item__label--caption text-caption":"")+(e.header===!0?" q-item__label--header":"")+(n.value===1?" ellipsis":"")),l=r.computed(()=>e.lines!==void 0&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null);return()=>r.h("div",{style:l.value,class:o.value},ge(t.default))}}),Le=[];let Qe;function ia(e){Qe=e.keyCode===27}function aa(){Qe===!0&&(Qe=!1)}function sa(e){Qe===!0&&(Qe=!1,Oe(e,27)===!0&&Le[Le.length-1](e))}function hr(e){window[e]("keydown",ia),window[e]("blur",aa),window[e]("keyup",sa),Qe=!1}function pr(e){me.is.desktop===!0&&(Le.push(e),Le.length===1&&hr("addEventListener"))}function Ft(e){const t=Le.indexOf(e);t!==-1&&(Le.splice(t,1),Le.length===0&&hr("removeEventListener"))}const Ve=[];function gr(e){Ve[Ve.length-1](e)}function vr(e){me.is.desktop===!0&&(Ve.push(e),Ve.length===1&&document.body.addEventListener("focusin",gr))}function Ln(e){const t=Ve.indexOf(e);t!==-1&&(Ve.splice(t,1),Ve.length===0&&document.body.removeEventListener("focusin",gr))}const ua=oe({name:"QMenu",inheritAttrs:!1,props:{...zl,...un,...Ot,...st,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Bt},self:{type:String,validator:Bt},offset:{type:Array,validator:Ao},scrollTarget:vn,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...cn,"click","escapeKey"],setup(e,{slots:t,emit:n,attrs:o}){let l=null,i,a,s;const d=r.getCurrentInstance(),{proxy:c}=d,{$q:u}=c,m=r.ref(null),y=r.ref(!1),v=r.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),p=Pt(e,u),{registerTick:k,removeTick:h}=hn(),{registerTimeout:P}=pn(),{transitionProps:_,transitionStyle:T}=mn(e),{localScrollTarget:B,changeScrollEvent:C,unconfigureScrollTarget:q}=bo(e,M),{anchorEl:O,canShow:N}=yo({showing:y}),{hide:S}=dn({showing:y,canShow:N,handleShow:X,handleHide:b,hideOnRouteChange:v,processOnMount:!0}),{showPortal:E,hidePortal:L,renderPortal:x}=fn(d,m,Z,"menu"),j={anchorEl:O,innerRef:m,onClickOutside($){if(e.persistent!==!0&&y.value===!0)return S($),($.type==="touchstart"||$.target.classList.contains("q-dialog__backdrop"))&&ae($),!0}},R=r.computed(()=>qt(e.anchor||(e.cover===!0?"center middle":"bottom start"),u.lang.rtl)),H=r.computed(()=>e.cover===!0?R.value:qt(e.self||"top start",u.lang.rtl)),D=r.computed(()=>(e.square===!0?" q-menu--square":"")+(p.value===!0?" q-menu--dark q-dark":"")),K=r.computed(()=>e.autoClose===!0?{onClick:W}:{}),V=r.computed(()=>y.value===!0&&e.persistent!==!0);r.watch(V,$=>{$===!0?(pr(A),Ro(j)):(Ft(A),Rt(j))});function U(){kt(()=>{let $=m.value;$&&$.contains(document.activeElement)!==!0&&($=$.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||$.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||$.querySelector("[autofocus], [data-autofocus]")||$,$.focus({preventScroll:!0}))})}function X($){if(l=e.noRefocus===!1?document.activeElement:null,vr(Q),E(),M(),i=void 0,$!==void 0&&(e.touchPosition||e.contextMenu)){const te=go($);if(te.left!==void 0){const{top:xe,left:Ze}=O.value.getBoundingClientRect();i={left:te.left-Ze,top:te.top-xe}}}a===void 0&&(a=r.watch(()=>u.screen.width+"|"+u.screen.height+"|"+e.self+"|"+e.anchor+"|"+u.lang.rtl,I)),e.noFocus!==!0&&document.activeElement.blur(),k(()=>{I(),e.noFocus!==!0&&U()}),P(()=>{u.platform.is.ios===!0&&(s=e.autoClose,m.value.click()),I(),E(!0),n("show",$)},e.transitionDuration)}function b($){h(),L(),g(!0),l!==null&&($===void 0||$.qClickOutside!==!0)&&((($&&$.type.indexOf("key")===0?l.closest('[tabindex]:not([tabindex^="-"])'):void 0)||l).focus(),l=null),P(()=>{L(!0),n("hide",$)},e.transitionDuration)}function g($){i=void 0,a!==void 0&&(a(),a=void 0),($===!0||y.value===!0)&&(Ln(Q),q(),Rt(j),Ft(A)),$!==!0&&(l=null)}function M(){(O.value!==null||e.scrollTarget!==void 0)&&(B.value=yn(O.value,e.scrollTarget),C(B.value,I))}function W($){s!==!0?(Wl(c,$),n("click",$)):s=!1}function Q($){V.value===!0&&e.noFocus!==!0&&_o(m.value,$.target)!==!0&&U()}function A($){n("escapeKey"),S($)}function I(){wn({targetEl:m.value,offset:e.offset,anchorEl:O.value,anchorOrigin:R.value,selfOrigin:H.value,absoluteOffset:i,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function Z(){return r.h(r.Transition,_.value,()=>y.value===!0?r.h("div",{role:"menu",...o,ref:m,tabindex:-1,class:["q-menu q-position-engine scroll"+D.value,o.class],style:[o.style,T.value],...K.value},ge(t.default)):null)}return r.onBeforeUnmount(g),Object.assign(c,{focus:U,updatePosition:I}),x}});function ca(e,t,n){function o(){}return r.onBeforeUnmount(()=>{e.value===!0&&void 0}),{removeFromHistory:o,addToHistory(){}}}let dt=0,Vn,$n,ft,Fn=!1,yr,br,wr,$e=null;function da(e){fa(e)&&ae(e)}function fa(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=Fl(e),n=e.shiftKey&&!e.deltaX,o=!n&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),l=n||o?e.deltaY:e.deltaX;for(let i=0;i<t.length;i++){const a=t[i];if(Yl(a,o))return o?l<0&&a.scrollTop===0?!0:l>0&&a.scrollTop+a.clientHeight===a.scrollHeight:l<0&&a.scrollLeft===0?!0:l>0&&a.scrollLeft+a.clientWidth===a.scrollWidth}return!0}function Sr(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function zt(e){Fn!==!0&&(Fn=!0,requestAnimationFrame(()=>{Fn=!1;const{height:t}=e.target,{clientHeight:n,scrollTop:o}=document.scrollingElement;(ft===void 0||t!==window.innerHeight)&&(ft=n-t,document.scrollingElement.scrollTop=o),o>ft&&(document.scrollingElement.scrollTop-=Math.ceil((o-ft)/8))}))}function xr(e){const t=document.body,n=window.visualViewport!==void 0;if(e==="add"){const{overflowY:o,overflowX:l}=window.getComputedStyle(t);Vn=To(window),$n=Eo(window),yr=t.style.left,br=t.style.top,wr=window.location.href,t.style.left=`-${Vn}px`,t.style.top=`-${$n}px`,l!=="hidden"&&(l==="scroll"||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),o!=="hidden"&&(o==="scroll"||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,me.is.ios===!0&&(n===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",zt,se.passiveCapture),window.visualViewport.addEventListener("scroll",zt,se.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Sr,se.passiveCapture))}me.is.desktop===!0&&me.is.mac===!0&&window[`${e}EventListener`]("wheel",da,se.notPassive),e==="remove"&&(me.is.ios===!0&&(n===!0?(window.visualViewport.removeEventListener("resize",zt,se.passiveCapture),window.visualViewport.removeEventListener("scroll",zt,se.passiveCapture)):window.removeEventListener("scroll",Sr,se.passiveCapture)),t.classList.remove("q-body--prevent-scroll"),t.classList.remove("q-body--force-scrollbar-x"),t.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,t.style.left=yr,t.style.top=br,window.location.href===wr&&window.scrollTo(Vn,$n),ft=void 0)}function ma(e){let t="add";if(e===!0){if(dt++,$e!==null){clearTimeout($e),$e=null;return}if(dt>1)return}else{if(dt===0||(dt--,dt>0))return;if(t="remove",me.is.ios===!0&&me.is.nativeMobile===!0){$e!==null&&clearTimeout($e),$e=setTimeout(()=>{xr(t),$e=null},100);return}}xr(t)}function ha(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t===!0)&&(e=t,ma(t))}}}let It=0;const pa={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"},kr={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},ga=oe({name:"QDialog",inheritAttrs:!1,props:{...un,...st,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:[...cn,"shake","click","escapeKey"],setup(e,{slots:t,emit:n,attrs:o}){const l=r.getCurrentInstance(),i=r.ref(null),a=r.ref(!1),s=r.ref(!1);let d=null,c=null,u,m;const y=r.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:v}=ha(),{registerTimeout:p}=pn(),{registerTick:k,removeTick:h}=hn(),{transitionProps:P,transitionStyle:_}=mn(e,()=>kr[e.position][0],()=>kr[e.position][1]),T=r.computed(()=>_.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:B,hidePortal:C,portalIsAccessible:q,renderPortal:O}=fn(l,i,Q,"dialog"),{hide:N}=dn({showing:a,hideOnRouteChange:y,handleShow:H,handleHide:D,processOnMount:!0}),{addToHistory:S,removeFromHistory:E}=ca(a),L=r.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${pa[e.position]}`+(s.value===!0?" q-dialog__inner--animating":"")+(e.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(e.fullHeight===!0?" q-dialog__inner--fullheight":"")+(e.square===!0?" q-dialog__inner--square":"")),x=r.computed(()=>a.value===!0&&e.seamless!==!0),j=r.computed(()=>e.autoClose===!0?{onClick:g}:{}),R=r.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${x.value===!0?"modal":"seamless"}`,o.class]);r.watch(()=>e.maximized,A=>{a.value===!0&&b(A)}),r.watch(x,A=>{v(A),A===!0?(vr(W),pr(U)):(Ln(W),Ft(U))});function H(A){S(),c=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,b(e.maximized),B(),s.value=!0,e.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),k(K)):h(),p(()=>{if(l.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:I,bottom:Z}=document.activeElement.getBoundingClientRect(),{innerHeight:$}=window,te=window.visualViewport!==void 0?window.visualViewport.height:$;I>0&&Z>te/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-te,Z>=$?1/0:Math.ceil(document.scrollingElement.scrollTop+Z-te/2))),document.activeElement.scrollIntoView()}m=!0,i.value.click(),m=!1}B(!0),s.value=!1,n("show",A)},e.transitionDuration)}function D(A){h(),E(),X(!0),s.value=!0,C(),c!==null&&(((A&&A.type.indexOf("key")===0?c.closest('[tabindex]:not([tabindex^="-"])'):void 0)||c).focus(),c=null),p(()=>{C(!0),s.value=!1,n("hide",A)},e.transitionDuration)}function K(A){kt(()=>{let I=i.value;if(I!==null){if(A!==void 0){const Z=I.querySelector(A);if(Z!==null){Z.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 V(A){A&&typeof A.focus=="function"?A.focus({preventScroll:!0}):K(),n("shake");const I=i.value;I!==null&&(I.classList.remove("q-animate--scale"),I.classList.add("q-animate--scale"),d!==null&&clearTimeout(d),d=setTimeout(()=>{d=null,i.value!==null&&(I.classList.remove("q-animate--scale"),K())},170))}function U(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&V():(n("escapeKey"),N()))}function X(A){d!==null&&(clearTimeout(d),d=null),(A===!0||a.value===!0)&&(b(!1),e.seamless!==!0&&(v(!1),Ln(W),Ft(U))),A!==!0&&(c=null)}function b(A){A===!0?u!==!0&&(It<1&&document.body.classList.add("q-body--dialog"),It++,u=!0):u===!0&&(It<2&&document.body.classList.remove("q-body--dialog"),It--,u=!1)}function g(A){m!==!0&&(N(A),n("click",A))}function M(A){e.persistent!==!0&&e.noBackdropDismiss!==!0?N(A):e.noShake!==!0&&V()}function W(A){e.allowFocusOutside!==!0&&q.value===!0&&_o(i.value,A.target)!==!0&&K('[tabindex]:not([tabindex="-1"])')}Object.assign(l.proxy,{focus:K,shake:V,__updateRefocusTarget(A){c=A||null}}),r.onBeforeUnmount(X);function Q(){return r.h("div",{role:"dialog","aria-modal":x.value===!0?"true":"false",...o,class:R.value},[r.h(r.Transition,{name:"q-transition--fade",appear:!0},()=>x.value===!0?r.h("div",{class:"q-dialog__backdrop fixed-full",style:T.value,"aria-hidden":"true",tabindex:-1,onClick:M}):null),r.h(r.Transition,P.value,()=>a.value===!0?r.h("div",{ref:i,class:L.value,style:_.value,tabindex:-1,...j.value},ge(t.default)):null)])}return O}});let Nt=!1;{const e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});const t=document.createElement("div");Object.assign(t.style,{width:"1000px",height:"1px"}),document.body.appendChild(e),e.appendChild(t),e.scrollLeft=-1e3,Nt=e.scrollLeft>=0,e.remove()}const be=1e3,va=["start","center","end","start-force","center-force","end-force"],Cr=Array.prototype.filter,ya=window.getComputedStyle(document.body).overflowAnchor===void 0?ln:function(e,t){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;const n=e.children||[];Cr.call(n,l=>l.dataset&&l.dataset.qVsAnchor!==void 0).forEach(l=>{delete l.dataset.qVsAnchor});const o=n[t];o&&o.dataset&&(o.dataset.qVsAnchor="")}))};function Je(e,t){return e+t}function zn(e,t,n,o,l,i,a,s){const d=e===window?document.scrollingElement||document.documentElement:e,c=l===!0?"offsetWidth":"offsetHeight",u={scrollStart:0,scrollViewSize:-a-s,scrollMaxSize:0,offsetStart:-a,offsetEnd:-s};if(l===!0?(e===window?(u.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,u.scrollViewSize+=document.documentElement.clientWidth):(u.scrollStart=d.scrollLeft,u.scrollViewSize+=d.clientWidth),u.scrollMaxSize=d.scrollWidth,i===!0&&(u.scrollStart=(Nt===!0?u.scrollMaxSize-u.scrollViewSize:0)-u.scrollStart)):(e===window?(u.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,u.scrollViewSize+=document.documentElement.clientHeight):(u.scrollStart=d.scrollTop,u.scrollViewSize+=d.clientHeight),u.scrollMaxSize=d.scrollHeight),n!==null)for(let m=n.previousElementSibling;m!==null;m=m.previousElementSibling)m.classList.contains("q-virtual-scroll--skip")===!1&&(u.offsetStart+=m[c]);if(o!==null)for(let m=o.nextElementSibling;m!==null;m=m.nextElementSibling)m.classList.contains("q-virtual-scroll--skip")===!1&&(u.offsetEnd+=m[c]);if(t!==e){const m=d.getBoundingClientRect(),y=t.getBoundingClientRect();l===!0?(u.offsetStart+=y.left-m.left,u.offsetEnd-=y.width):(u.offsetStart+=y.top-m.top,u.offsetEnd-=y.height),e!==window&&(u.offsetStart+=u.scrollStart),u.offsetEnd+=u.scrollMaxSize-u.offsetStart}return u}function _r(e,t,n,o){t==="end"&&(t=(e===window?document.body:e)[n===!0?"scrollWidth":"scrollHeight"]),e===window?n===!0?(o===!0&&(t=(Nt===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-t),window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t):n===!0?(o===!0&&(t=(Nt===!0?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function mt(e,t,n,o){if(n>=o)return 0;const l=t.length,i=Math.floor(n/be),a=Math.floor((o-1)/be)+1;let s=e.slice(i,a).reduce(Je,0);return n%be!==0&&(s-=t.slice(i*be,n).reduce(Je,0)),o%be!==0&&o!==l&&(s-=t.slice(o,a*be).reduce(Je,0)),s}const Er={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...{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]}};function ba({virtualScrollLength:e,getVirtualScrollTarget:t,getVirtualScrollEl:n,virtualScrollItemSizeComputed:o}){const l=r.getCurrentInstance(),{props:i,emit:a,proxy:s}=l,{$q:d}=s;let c,u,m,y=[],v;const p=r.ref(0),k=r.ref(0),h=r.ref({}),P=r.ref(null),_=r.ref(null),T=r.ref(null),B=r.ref({from:0,to:0}),C=r.computed(()=>i.tableColspan!==void 0?i.tableColspan:100);o===void 0&&(o=r.computed(()=>i.virtualScrollItemSize));const q=r.computed(()=>o.value+";"+i.virtualScrollHorizontal),O=r.computed(()=>q.value+";"+i.virtualScrollSliceRatioBefore+";"+i.virtualScrollSliceRatioAfter);r.watch(O,()=>{D()}),r.watch(q,N);function N(){H(u,!0)}function S(b){H(b===void 0?u:b)}function E(b,g){const M=t();if(M==null||M.nodeType===8)return;const W=zn(M,n(),P.value,_.value,i.virtualScrollHorizontal,d.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd);m!==W.scrollViewSize&&D(W.scrollViewSize),x(M,W,Math.min(e.value-1,Math.max(0,parseInt(b,10)||0)),0,va.indexOf(g)!==-1?g:u!==-1&&b>u?"end":"start")}function L(){const b=t();if(b==null||b.nodeType===8)return;const g=zn(b,n(),P.value,_.value,i.virtualScrollHorizontal,d.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd),M=e.value-1,W=g.scrollMaxSize-g.offsetStart-g.offsetEnd-k.value;if(c===g.scrollStart)return;if(g.scrollMaxSize<=0){x(b,g,0,0);return}m!==g.scrollViewSize&&D(g.scrollViewSize),j(B.value.from);const Q=Math.floor(g.scrollMaxSize-Math.max(g.scrollViewSize,g.offsetEnd)-Math.min(v[M],g.scrollViewSize/2));if(Q>0&&Math.ceil(g.scrollStart)>=Q){x(b,g,M,g.scrollMaxSize-g.offsetEnd-y.reduce(Je,0));return}let A=0,I=g.scrollStart-g.offsetStart,Z=I;if(I<=W&&I+g.scrollViewSize>=p.value)I-=p.value,A=B.value.from,Z=I;else for(let $=0;I>=y[$]&&A<M;$++)I-=y[$],A+=be;for(;I>0&&A<M;)I-=v[A],I>-g.scrollViewSize?(A++,Z=I):Z=v[A]+I;x(b,g,A,Z)}function x(b,g,M,W,Q){const A=typeof Q=="string"&&Q.indexOf("-force")!==-1,I=A===!0?Q.replace("-force",""):Q,Z=I!==void 0?I:"start";let $=Math.max(0,M-h.value[Z]),te=$+h.value.total;te>e.value&&(te=e.value,$=Math.max(0,te-h.value.total)),c=g.scrollStart;const xe=$!==B.value.from||te!==B.value.to;if(xe===!1&&I===void 0){V(M);return}const{activeElement:Ze}=document,ke=T.value;xe===!0&&ke!==null&&ke!==Ze&&ke.contains(Ze)===!0&&(ke.addEventListener("focusout",R),setTimeout(()=>{ke!==null&&ke.removeEventListener("focusout",R)})),ya(ke,M-$);const Yt=I!==void 0?v.slice($,M).reduce(Je,0):0;if(xe===!0){const Ne=te>=B.value.from&&$<=B.value.to?B.value.to:te;B.value={from:$,to:Ne},p.value=mt(y,v,0,$),k.value=mt(y,v,te,e.value),requestAnimationFrame(()=>{B.value.to!==te&&c===g.scrollStart&&(B.value={from:B.value.from,to:te},k.value=mt(y,v,te,e.value))})}requestAnimationFrame(()=>{if(c!==g.scrollStart)return;xe===!0&&j($);const Ne=v.slice($,M).reduce(Je,0),De=Ne+g.offsetStart+p.value,Zt=De+v[M];let bt=De+W;if(I!==void 0){const so=Ne-Yt,wt=g.scrollStart+so;bt=A!==!0&&wt<De&&Zt<wt+g.scrollViewSize?wt:I==="end"?Zt-g.scrollViewSize:De-(I==="start"?0:Math.round((g.scrollViewSize-v[M])/2))}c=bt,_r(b,bt,i.virtualScrollHorizontal,d.lang.rtl),V(M)})}function j(b){const g=T.value;if(g){const M=Cr.call(g.children,$=>$.classList&&$.classList.contains("q-virtual-scroll--skip")===!1),W=M.length,Q=i.virtualScrollHorizontal===!0?$=>$.getBoundingClientRect().width:$=>$.offsetHeight;let A=b,I,Z;for(let $=0;$<W;){for(I=Q(M[$]),$++;$<W&&M[$].classList.contains("q-virtual-scroll--with-prev")===!0;)I+=Q(M[$]),$++;Z=I-v[A],Z!==0&&(v[A]+=Z,y[Math.floor(A/be)]+=Z),A++}}}function R(){T.value!==null&&T.value!==void 0&&T.value.focus()}function H(b,g){const M=1*o.value;(g===!0||Array.isArray(v)===!1)&&(v=[]);const W=v.length;v.length=e.value;for(let A=e.value-1;A>=W;A--)v[A]=M;const Q=Math.floor((e.value-1)/be);y=[];for(let A=0;A<=Q;A++){let I=0;const Z=Math.min((A+1)*be,e.value);for(let $=A*be;$<Z;$++)I+=v[$];y.push(I)}u=-1,c=void 0,p.value=mt(y,v,0,B.value.from),k.value=mt(y,v,B.value.to,e.value),b>=0?(j(B.value.from),r.nextTick(()=>{E(b)})):U()}function D(b){if(b===void 0&&typeof window<"u"){const I=t();I!=null&&I.nodeType!==8&&(b=zn(I,n(),P.value,_.value,i.virtualScrollHorizontal,d.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd).scrollViewSize)}m=b;const g=parseFloat(i.virtualScrollSliceRatioBefore)||0,M=parseFloat(i.virtualScrollSliceRatioAfter)||0,W=1+g+M,Q=b===void 0||b<=0?1:Math.ceil(b/o.value),A=Math.max(1,Q,Math.ceil((i.virtualScrollSliceSize>0?i.virtualScrollSliceSize:10)/W));h.value={total:Math.ceil(A*W),start:Math.ceil(A*g),center:Math.ceil(A*(.5+g)),end:Math.ceil(A*(1+g)),view:Q}}function K(b,g){const M=i.virtualScrollHorizontal===!0?"width":"height",W={["--q-virtual-scroll-item-"+M]:o.value+"px"};return[b==="tbody"?r.h(b,{class:"q-virtual-scroll__padding",key:"before",ref:P},[r.h("tr",[r.h("td",{style:{[M]:`${p.value}px`,...W},colspan:C.value})])]):r.h(b,{class:"q-virtual-scroll__padding",key:"before",ref:P,style:{[M]:`${p.value}px`,...W}}),r.h(b,{class:"q-virtual-scroll__content",key:"content",ref:T,tabindex:-1},g.flat()),b==="tbody"?r.h(b,{class:"q-virtual-scroll__padding",key:"after",ref:_},[r.h("tr",[r.h("td",{style:{[M]:`${k.value}px`,...W},colspan:C.value})])]):r.h(b,{class:"q-virtual-scroll__padding",key:"after",ref:_,style:{[M]:`${k.value}px`,...W}})]}function V(b){u!==b&&(i.onVirtualScroll!==void 0&&a("virtualScroll",{index:b,from:B.value.from,to:B.value.to-1,direction:b<u?"decrease":"increase",ref:s}),u=b)}D();const U=nr(L,d.platform.is.ios===!0?120:35);r.onBeforeMount(()=>{D()});let X=!1;return r.onDeactivated(()=>{X=!0}),r.onActivated(()=>{if(X!==!0)return;const b=t();c!==void 0&&b!==void 0&&b!==null&&b.nodeType!==8?_r(b,c,i.virtualScrollHorizontal,d.lang.rtl):E(u)}),r.onBeforeUnmount(()=>{U.cancel()}),Object.assign(s,{scrollTo:E,reset:N,refresh:S}),{virtualScrollSliceRange:B,virtualScrollSliceSizeComputed:h,setVirtualScrollSize:D,onVirtualScrollEvt:U,localResetVirtualScroll:H,padVirtualScroll:K,scrollTo:E,reset:N,refresh:S}}function Be(e,t){if(e===t)return!0;if(e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let n,o;if(e.constructor===Array){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(Be(e[o],t[o])!==!0)return!1;return!0}if(e.constructor===Map){if(e.size!==t.size)return!1;let i=e.entries();for(o=i.next();o.done!==!0;){if(t.has(o.value[0])!==!0)return!1;o=i.next()}for(i=e.entries(),o=i.next();o.done!==!0;){if(Be(o.value[1],t.get(o.value[0]))!==!0)return!1;o=i.next()}return!0}if(e.constructor===Set){if(e.size!==t.size)return!1;const i=e.entries();for(o=i.next();o.done!==!0;){if(t.has(o.value[0])!==!0)return!1;o=i.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const l=Object.keys(e).filter(i=>e[i]!==void 0);if(n=l.length,n!==Object.keys(t).filter(i=>t[i]!==void 0).length)return!1;for(o=n;o--!==0;){const i=l[o];if(Be(e[i],t[i])!==!0)return!1}return!0}return e!==e&&t!==t}function Tr(e,t,n){if(n<=t)return t;const o=n-t+1;let l=t+(e-t)%o;return l<t&&(l=o+l),l===0?0:l}const Rr=e=>["add","add-unique","toggle"].includes(e),wa=".*+?^${}()|[]\\",Sa=Object.keys(Vt);function In(e,t){if(typeof e=="function")return e;const n=e!==void 0?e:t;return o=>o!==null&&typeof o=="object"&&n in o?o[n]:o}const xa=oe({name:"QSelect",inheritAttrs:!1,props:{...Er,...ir,...Vt,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:Rr},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:Er.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...An,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:t,emit:n}){const{proxy:o}=r.getCurrentInstance(),{$q:l}=o,i=r.ref(!1),a=r.ref(!1),s=r.ref(-1),d=r.ref(""),c=r.ref(!1),u=r.ref(!1);let m=null,y=null,v,p,k,h=null,P,_,T,B;const C=r.ref(null),q=r.ref(null),O=r.ref(null),N=r.ref(null),S=r.ref(null),E=ar(e),L=sr(xl),x=r.computed(()=>e.options.length),j=r.computed(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:R,virtualScrollSliceSizeComputed:H,localResetVirtualScroll:D,padVirtualScroll:K,onVirtualScrollEvt:V,scrollTo:U,setVirtualScrollSize:X}=ba({virtualScrollLength:x,getVirtualScrollTarget:hu,getVirtualScrollEl:wl,virtualScrollItemSizeComputed:j}),b=On(),g=r.computed(()=>{const f=e.mapOptions===!0&&e.multiple!==!0,F=e.modelValue!==void 0&&(e.modelValue!==null||f===!0)?e.multiple===!0&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions===!0){const z=e.mapOptions===!0&&v!==void 0?v:[],Y=F.map(ee=>mu(ee,z));return e.modelValue===null&&f===!0?Y.filter(ee=>ee!==null):Y}return F}),M=r.computed(()=>{const f={};return Sa.forEach(F=>{const z=e[F];z!==void 0&&(f[F]=z)}),f}),W=r.computed(()=>e.optionsDark===null?b.isDark.value:e.optionsDark),Q=r.computed(()=>ct(g.value)),A=r.computed(()=>{let f="q-field__input q-placeholder col";return e.hideSelected===!0||g.value.length===0?[f,e.inputClass]:(f+=" q-field__input--padding",e.inputClass===void 0?f:[f,e.inputClass])}),I=r.computed(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),Z=r.computed(()=>x.value===0),$=r.computed(()=>g.value.map(f=>pe.value(f)).join(", ")),te=r.computed(()=>e.displayValue!==void 0?e.displayValue:$.value),xe=r.computed(()=>e.optionsHtml===!0?()=>!0:f=>f!=null&&f.html===!0),Ze=r.computed(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||g.value.some(xe.value))),ke=r.computed(()=>b.focused.value===!0?e.tabindex:-1),Yt=r.computed(()=>{const f={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":`${b.targetUid.value}_lb`};return s.value>=0&&(f["aria-activedescendant"]=`${b.targetUid.value}_${s.value}`),f}),Ne=r.computed(()=>({id:`${b.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),De=r.computed(()=>g.value.map((f,F)=>({index:F,opt:f,html:xe.value(f),selected:!0,removeAtIndex:fu,toggleOption:He,tabindex:ke.value}))),Zt=r.computed(()=>{if(x.value===0)return[];const{from:f,to:F}=R.value;return e.options.slice(f,F).map((z,Y)=>{const ee=Ge.value(z)===!0,G=co(z)===!0,ce=f+Y,ne={clickable:!0,active:G,activeClass:wt.value,manualFocus:!0,focused:!1,disable:ee,tabindex:-1,dense:e.optionsDense,dark:W.value,role:"option","aria-selected":G===!0?"true":"false",id:`${b.targetUid.value}_${ce}`,onClick:()=>{He(z)}};return ee!==!0&&(s.value===ce&&(ne.focused=!0),l.platform.is.desktop===!0&&(ne.onMousemove=()=>{i.value===!0&&et(ce)})),{index:ce,opt:z,html:xe.value(z),label:pe.value(z),selected:ne.active,focused:ne.focused,toggleOption:He,setOptionIndex:et,itemProps:ne}})}),bt=r.computed(()=>e.dropdownIcon!==void 0?e.dropdownIcon:l.iconSet.arrow.dropdown),so=r.computed(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),wt=r.computed(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),Ce=r.computed(()=>In(e.optionValue,"value")),pe=r.computed(()=>In(e.optionLabel,"label")),Ge=r.computed(()=>In(e.optionDisable,"disable")),Gt=r.computed(()=>g.value.map(Ce.value)),du=r.computed(()=>{const f={onInput:xl,onChange:L,onKeydown:bl,onKeyup:vl,onKeypress:yl,onFocus:pl,onClick(F){p===!0&&Se(F)}};return f.onCompositionstart=f.onCompositionupdate=f.onCompositionend=L,f});r.watch(g,f=>{v=f,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&b.innerLoading.value!==!0&&(a.value!==!0&&i.value!==!0||Q.value!==!0)&&(k!==!0&&rt(),(a.value===!0||i.value===!0)&&tt(""))},{immediate:!0}),r.watch(()=>e.fillInput,rt),r.watch(i,fo),r.watch(x,Eu);function ml(f){return e.emitValue===!0?Ce.value(f):f}function uo(f){if(f!==-1&&f<g.value.length)if(e.multiple===!0){const F=e.modelValue.slice();n("remove",{index:f,value:F.splice(f,1)[0]}),n("update:modelValue",F)}else n("update:modelValue",null)}function fu(f){uo(f),b.focus()}function hl(f,F){const z=ml(f);if(e.multiple!==!0){e.fillInput===!0&&St(pe.value(f),!0,!0),n("update:modelValue",z);return}if(g.value.length===0){n("add",{index:0,value:z}),n("update:modelValue",e.multiple===!0?[z]:z);return}if(F===!0&&co(f)===!0||e.maxValues!==void 0&&e.modelValue.length>=e.maxValues)return;const Y=e.modelValue.slice();n("add",{index:Y.length,value:z}),Y.push(z),n("update:modelValue",Y)}function He(f,F){if(b.editable.value!==!0||f===void 0||Ge.value(f)===!0)return;const z=Ce.value(f);if(e.multiple!==!0){F!==!0&&(St(e.fillInput===!0?pe.value(f):"",!0,!0),je()),q.value!==null&&q.value.focus(),(g.value.length===0||Be(Ce.value(g.value[0]),z)!==!0)&&n("update:modelValue",e.emitValue===!0?z:f);return}if((p!==!0||c.value===!0)&&b.focus(),pl(),g.value.length===0){const G=e.emitValue===!0?z:f;n("add",{index:0,value:G}),n("update:modelValue",e.multiple===!0?[G]:G);return}const Y=e.modelValue.slice(),ee=Gt.value.findIndex(G=>Be(G,z));if(ee!==-1)n("remove",{index:ee,value:Y.splice(ee,1)[0]});else{if(e.maxValues!==void 0&&Y.length>=e.maxValues)return;const G=e.emitValue===!0?z:f;n("add",{index:Y.length,value:G}),Y.push(G)}n("update:modelValue",Y)}function et(f){if(l.platform.is.desktop!==!0)return;const F=f!==-1&&f<x.value?f:-1;s.value!==F&&(s.value=F)}function en(f=1,F){if(i.value===!0){let z=s.value;do z=Tr(z+f,-1,x.value-1);while(z!==-1&&z!==s.value&&Ge.value(e.options[z])===!0);s.value!==z&&(et(z),U(z),F!==!0&&e.useInput===!0&&e.fillInput===!0&&tn(z>=0?pe.value(e.options[z]):P,!0))}}function mu(f,F){const z=Y=>Be(Ce.value(Y),f);return e.options.find(z)||F.find(z)||f}function co(f){const F=Ce.value(f);return Gt.value.find(z=>Be(z,F))!==void 0}function pl(f){e.useInput===!0&&q.value!==null&&(f===void 0||q.value===f.target&&f.target.value===$.value)&&q.value.select()}function gl(f){Oe(f,27)===!0&&i.value===!0&&(Se(f),je(),rt()),n("keyup",f)}function vl(f){const{value:F}=f.target;if(f.keyCode!==void 0){gl(f);return}if(f.target.value="",m!==null&&(clearTimeout(m),m=null),y!==null&&(clearTimeout(y),y=null),rt(),typeof F=="string"&&F.length!==0){const z=F.toLocaleLowerCase(),Y=G=>{const ce=e.options.find(ne=>G.value(ne).toLocaleLowerCase()===z);return ce===void 0?!1:(g.value.indexOf(ce)===-1?He(ce):je(),!0)},ee=G=>{Y(Ce)!==!0&&(Y(pe)===!0||G===!0||tt(F,!0,()=>ee(!0)))};ee()}else b.clearValue(f)}function yl(f){n("keypress",f)}function bl(f){if(n("keydown",f),an(f)===!0)return;const F=d.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),z=f.shiftKey!==!0&&e.disableTabSelection!==!0&&e.multiple!==!0&&(s.value!==-1||F===!0);if(f.keyCode===27){ye(f);return}if(f.keyCode===9&&z===!1){nt();return}if(f.target===void 0||f.target.id!==b.targetUid.value||b.editable.value!==!0)return;if(f.keyCode===40&&b.innerLoading.value!==!0&&i.value===!1){ae(f),ot();return}if(f.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&d.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?uo(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&n("update:modelValue",null);return}(f.keyCode===35||f.keyCode===36)&&(typeof d.value!="string"||d.value.length===0)&&(ae(f),s.value=-1,en(f.keyCode===36?1:-1,e.multiple)),(f.keyCode===33||f.keyCode===34)&&H.value!==void 0&&(ae(f),s.value=Math.max(-1,Math.min(x.value,s.value+(f.keyCode===33?-1:1)*H.value.view)),en(f.keyCode===33?1:-1,e.multiple)),(f.keyCode===38||f.keyCode===40)&&(ae(f),en(f.keyCode===38?-1:1,e.multiple));const Y=x.value;if((T===void 0||B<Date.now())&&(T=""),Y>0&&e.useInput!==!0&&f.key!==void 0&&f.key.length===1&&f.altKey===!1&&f.ctrlKey===!1&&f.metaKey===!1&&(f.keyCode!==32||T.length!==0)){i.value!==!0&&ot(f);const ee=f.key.toLocaleLowerCase(),G=T.length===1&&T[0]===ee;B=Date.now()+1500,G===!1&&(ae(f),T+=ee);const ce=new RegExp("^"+T.split("").map(mo=>wa.indexOf(mo)!==-1?"\\"+mo:mo).join(".*"),"i");let ne=s.value;if(G===!0||ne<0||ce.test(pe.value(e.options[ne]))!==!0)do ne=Tr(ne+1,-1,Y-1);while(ne!==s.value&&(Ge.value(e.options[ne])===!0||ce.test(pe.value(e.options[ne]))!==!0));s.value!==ne&&r.nextTick(()=>{et(ne),U(ne),ne>=0&&e.useInput===!0&&e.fillInput===!0&&tn(pe.value(e.options[ne]),!0)});return}if(!(f.keyCode!==13&&(f.keyCode!==32||e.useInput===!0||T!=="")&&(f.keyCode!==9||z===!1))){if(f.keyCode!==9&&ae(f),s.value!==-1&&s.value<Y){He(e.options[s.value]);return}if(F===!0){const ee=(G,ce)=>{if(ce){if(Rr(ce)!==!0)return}else ce=e.newValueMode;if(St("",e.multiple!==!0,!0),G==null)return;(ce==="toggle"?He:hl)(G,ce==="add-unique"),e.multiple!==!0&&(q.value!==null&&q.value.focus(),je())};if(e.onNewValue!==void 0?n("newValue",d.value,ee):ee(d.value),e.multiple!==!0)return}i.value===!0?nt():b.innerLoading.value!==!0&&ot()}}function wl(){return p===!0?S.value:O.value!==null&&O.value.contentEl!==null?O.value.contentEl:void 0}function hu(){return wl()}function pu(){return e.hideSelected===!0?[]:t["selected-item"]!==void 0?De.value.map(f=>t["selected-item"](f)).slice():t.selected!==void 0?[].concat(t.selected()):e.useChips===!0?De.value.map((f,F)=>r.h(mr,{key:"option-"+F,removable:b.editable.value===!0&&Ge.value(f.opt)!==!0,dense:!0,textColor:e.color,tabindex:ke.value,onRemove(){f.removeAtIndex(F)}},()=>r.h("span",{class:"ellipsis",[f.html===!0?"innerHTML":"textContent"]:pe.value(f.opt)}))):[r.h("span",{[Ze.value===!0?"innerHTML":"textContent"]:te.value})]}function Sl(){if(Z.value===!0)return t["no-option"]!==void 0?t["no-option"]({inputValue:d.value}):void 0;const f=t.option!==void 0?t.option:z=>r.h(Mn,{key:z.index,...z.itemProps},()=>r.h(ra,()=>r.h(la,()=>r.h("span",{[z.html===!0?"innerHTML":"textContent"]:z.label}))));let F=K("div",Zt.value.map(f));return t["before-options"]!==void 0&&(F=t["before-options"]().concat(F)),Re(t["after-options"],F)}function gu(f,F){const z=F===!0?{...Yt.value,...b.splitAttrs.attributes.value}:void 0,Y={ref:F===!0?q:void 0,key:"i_t",class:A.value,style:e.inputStyle,value:d.value!==void 0?d.value:"",type:"search",...z,id:F===!0?b.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":f===!0||e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...du.value};return f!==!0&&p===!0&&(Array.isArray(Y.class)===!0?Y.class=[...Y.class,"no-pointer-events"]:Y.class+=" no-pointer-events"),r.h("input",Y)}function xl(f){m!==null&&(clearTimeout(m),m=null),y!==null&&(clearTimeout(y),y=null),!(f&&f.target&&f.target.qComposing===!0)&&(tn(f.target.value||""),k=!0,P=d.value,b.focused.value!==!0&&(p!==!0||c.value===!0)&&b.focus(),e.onFilter!==void 0&&(m=setTimeout(()=>{m=null,tt(d.value)},e.inputDebounce)))}function tn(f,F){d.value!==f&&(d.value=f,F===!0||e.inputDebounce===0||e.inputDebounce==="0"?n("inputValue",f):y=setTimeout(()=>{y=null,n("inputValue",f)},e.inputDebounce))}function St(f,F,z){k=z!==!0,e.useInput===!0&&(tn(f,!0),(F===!0||z!==!0)&&(P=f),F!==!0&&tt(f))}function tt(f,F,z){if(e.onFilter===void 0||F!==!0&&b.focused.value!==!0)return;b.innerLoading.value===!0?n("filterAbort"):(b.innerLoading.value=!0,u.value=!0),f!==""&&e.multiple!==!0&&g.value.length!==0&&k!==!0&&f===pe.value(g.value[0])&&(f="");const Y=setTimeout(()=>{i.value===!0&&(i.value=!1)},10);h!==null&&clearTimeout(h),h=Y,n("filter",f,(ee,G)=>{(F===!0||b.focused.value===!0)&&h===Y&&(clearTimeout(h),typeof ee=="function"&&ee(),u.value=!1,r.nextTick(()=>{b.innerLoading.value=!1,b.editable.value===!0&&(F===!0?i.value===!0&&je():i.value===!0?fo(!0):i.value=!0),typeof G=="function"&&r.nextTick(()=>{G(o)}),typeof z=="function"&&r.nextTick(()=>{z(o)})}))},()=>{b.focused.value===!0&&h===Y&&(clearTimeout(h),b.innerLoading.value=!1,u.value=!1),i.value===!0&&(i.value=!1)})}function vu(){return r.h(ua,{ref:O,class:I.value,style:e.popupContentStyle,modelValue:i.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&Z.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:W.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:so.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...Ne.value,onScrollPassive:V,onBeforeShow:Cl,onBeforeHide:yu,onShow:bu},Sl)}function yu(f){_l(f),nt()}function bu(){X()}function wu(f){Se(f),q.value!==null&&q.value.focus(),c.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function Su(f){Se(f),r.nextTick(()=>{c.value=!1})}function xu(){const f=[r.h(oa,{class:`col-auto ${b.fieldClass.value}`,...M.value,for:b.targetUid.value,dark:W.value,square:!0,loading:u.value,itemAligned:!1,filled:!0,stackLabel:d.value.length!==0,...b.splitAttrs.listeners.value,onFocus:wu,onBlur:Su},{...t,rawControl:()=>b.getControl(!0),before:void 0,after:void 0})];return i.value===!0&&f.push(r.h("div",{ref:S,class:I.value+" scroll",style:e.popupContentStyle,...Ne.value,onClick:ye,onScrollPassive:V},Sl())),r.h(ga,{ref:N,modelValue:a.value,position:e.useInput===!0?"top":void 0,transitionShow:_,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:Cl,onBeforeHide:ku,onHide:Cu,onShow:_u},()=>r.h("div",{class:"q-select__dialog"+(W.value===!0?" q-select__dialog--dark q-dark":"")+(c.value===!0?" q-select__dialog--focused":"")},f))}function ku(f){_l(f),N.value!==null&&N.value.__updateRefocusTarget(b.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),b.focused.value=!1}function Cu(f){je(),b.focused.value===!1&&n("blur",f),rt()}function _u(){const f=document.activeElement;(f===null||f.id!==b.targetUid.value)&&q.value!==null&&q.value!==f&&q.value.focus(),X()}function nt(){a.value!==!0&&(s.value=-1,i.value===!0&&(i.value=!1),b.focused.value===!1&&(h!==null&&(clearTimeout(h),h=null),b.innerLoading.value===!0&&(n("filterAbort"),b.innerLoading.value=!1,u.value=!1)))}function ot(f){b.editable.value===!0&&(p===!0?(b.onControlFocusin(f),a.value=!0,r.nextTick(()=>{b.focus()})):b.focus(),e.onFilter!==void 0?tt(d.value):(Z.value!==!0||t["no-option"]!==void 0)&&(i.value=!0))}function je(){a.value=!1,nt()}function rt(){e.useInput===!0&&St(e.multiple!==!0&&e.fillInput===!0&&g.value.length!==0&&pe.value(g.value[0])||"",!0,!0)}function fo(f){let F=-1;if(f===!0){if(g.value.length!==0){const z=Ce.value(g.value[0]);F=e.options.findIndex(Y=>Be(Ce.value(Y),z))}D(F)}et(F)}function Eu(f,F){i.value===!0&&b.innerLoading.value===!1&&(D(-1,!0),r.nextTick(()=>{i.value===!0&&b.innerLoading.value===!1&&(f>F?D():fo(!0))}))}function kl(){a.value===!1&&O.value!==null&&O.value.updatePosition()}function Cl(f){f!==void 0&&Se(f),n("popupShow",f),b.hasPopupOpen=!0,b.onControlFocusin(f)}function _l(f){f!==void 0&&Se(f),n("popupHide",f),b.hasPopupOpen=!1,b.onControlFocusout(f)}function El(){p=l.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?t["no-option"]!==void 0||e.onFilter!==void 0||Z.value===!1:!0),_=l.platform.is.ios===!0&&p===!0&&e.useInput===!0?"fade":e.transitionShow}return r.onBeforeUpdate(El),r.onUpdated(kl),El(),r.onBeforeUnmount(()=>{m!==null&&clearTimeout(m),y!==null&&clearTimeout(y)}),Object.assign(o,{showPopup:ot,hidePopup:je,removeAtIndex:uo,add:hl,toggleOption:He,getOptionIndex:()=>s.value,setOptionIndex:et,moveOptionSelection:en,filter:tt,updateMenuPosition:kl,updateInputValue:St,isOptionSelected:co,getEmittingOptionValue:ml,isOptionDisabled:(...f)=>Ge.value.apply(null,f)===!0,getOptionValue:(...f)=>Ce.value.apply(null,f),getOptionLabel:(...f)=>pe.value.apply(null,f)}),Object.assign(b,{innerValue:g,fieldClass:r.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:C,targetRef:q,hasValue:Q,showPopup:ot,floatingLabel:r.computed(()=>e.hideSelected!==!0&&Q.value===!0||typeof d.value=="number"||d.value.length!==0||ct(e.displayValue)),getControlChild:()=>{if(b.editable.value!==!1&&(a.value===!0||Z.value!==!0||t["no-option"]!==void 0))return p===!0?xu():vu();b.hasPopupOpen===!0&&(b.hasPopupOpen=!1)},controlEvents:{onFocusin(f){b.onControlFocusin(f)},onFocusout(f){b.onControlFocusout(f,()=>{rt(),nt()})},onClick(f){if(ye(f),p!==!0&&i.value===!0){nt(),q.value!==null&&q.value.focus();return}ot(f)}},getControl:f=>{const F=pu(),z=f===!0||a.value!==!0||p!==!0;if(e.useInput===!0)F.push(gu(f,z));else if(b.editable.value===!0){const ee=z===!0?Yt.value:void 0;F.push(r.h("input",{ref:z===!0?q:void 0,key:"d_t",class:"q-select__focus-target",id:z===!0?b.targetUid.value:void 0,value:te.value,readonly:!0,"data-autofocus":f===!0||e.autofocus===!0||void 0,...ee,onKeydown:bl,onKeyup:gl,onKeypress:yl})),z===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&F.push(r.h("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:vl}))}if(E.value!==void 0&&e.disable!==!0&&Gt.value.length!==0){const ee=Gt.value.map(G=>r.h("option",{value:G,selected:!0}));F.push(r.h("select",{class:"hidden",name:E.value,multiple:e.multiple},ee))}const Y=e.useInput===!0||z!==!0?void 0:b.splitAttrs.attributes.value;return r.h("div",{class:"q-field__native row items-center",...Y,...b.splitAttrs.listeners.value},F)},getInnerAppend:()=>e.loading!==!0&&u.value!==!0&&e.hideDropdownIcon!==!0?[r.h(Ee,{class:"q-select__dropdown-icon"+(i.value===!0?" rotate-180":""),name:bt.value})]:null}),Pn(b)}}),ka=ut(r.defineComponent({__name:"AppSelect",props:{modelValue:{},options:{},placeholder:{},emptyText:{},optionLabel:{},optionValue:{},label:{},multiple:{type:Boolean},borderColor:{},isDisabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){r.useCssVars(u=>({"0a94557a":u.borderColor}));const n=e,o=r.ref({}),l=t,i=r.computed({get(){return n.modelValue},set(u){l("update:modelValue",u)}}),a=()=>Array.isArray(i.value)&&!i.value.length?!0:typeof i.value=="string"&&!i.value,s=r.ref(""),d=r.computed(()=>n.options.filter(u=>u[(n==null?void 0:n.optionLabel)||"label"].toLowerCase().includes(s.value)));function c(u,m){m(()=>{s.value=u.toLowerCase()})}return(u,m)=>(r.openBlock(),r.createBlock(r.unref(xa),{ref_key:"select",ref:o,modelValue:i.value,"onUpdate:modelValue":m[0]||(m[0]=y=>i.value=y),options:d.value,"option-value":u.optionValue,"option-label":u.optionLabel,"emit-value":"","map-options":"",disable:u.isDisabled,multiple:u.multiple,outlined:"","stack-label":"","use-input":"",class:r.normalizeClass([u.$style.select]),label:u.label,"input-debounce":"100","popup-content-class":u.$style["app-select__menu"],rounded:"",autocomplete:"",onFilter:c},r.createSlots({"no-option":r.withCtx(()=>[r.createVNode(Mn,null,{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(u.emptyText),1)]),_:1})]),default:r.withCtx(()=>[!s.value&&a()?(r.openBlock(),r.createBlock(Mn,{key:0},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(u.placeholder),1)]),_:1})):r.createCommentVNode("",!0)]),_:2},[u.multiple?{name:"selected-item",fn:r.withCtx(y=>[y.opt?(r.openBlock(),r.createBlock(mr,{key:0,removable:"",class:"q-ma-none",dense:"",tabindex:y.tabindex,color:"white","text-color":"secondary",onRemove:v=>y.removeAtIndex(y.index)},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(y.opt[`${u.optionLabel}`]),1)]),_:2},1032,["tabindex","onRemove"])):r.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["modelValue","options","option-value","option-label","disable","multiple","class","label","popup-content-class"]))}}),[["__cssModules",{$style:{wrap:"_wrap_n46gp_1",select:"_select_n46gp_8","append-wrapper":"_append-wrapper_n46gp_25","menu-wrap":"_menu-wrap_n46gp_31","search-wrapper":"_search-wrapper_n46gp_35","app-select__menu":"_app-select__menu_n46gp_43","q-item__label":"_q-item__label_n46gp_46"}}]]),Ca={},_a={class:"app-wrapper"};function Ea(e,t){return r.openBlock(),r.createElementBlock("div",_a,[r.renderSlot(e.$slots,"default",{},void 0,!0)])}const Ta=ut(Ca,[["render",Ea],["__scopeId","data-v-6bd37b8f"]]);function Br(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ra}=Object.prototype,{getPrototypeOf:Nn}=Object,Dt=(e=>t=>{const n=Ra.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),we=e=>(e=e.toLowerCase(),t=>Dt(t)===e),Ht=e=>t=>typeof t===e,{isArray:Xe}=Array,ht=Ht("undefined");function Ba(e){return e!==null&&!ht(e)&&e.constructor!==null&&!ht(e.constructor)&&he(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const qr=we("ArrayBuffer");function qa(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&qr(e.buffer),t}const Aa=Ht("string"),he=Ht("function"),Ar=Ht("number"),jt=e=>e!==null&&typeof e=="object",Oa=e=>e===!0||e===!1,Ut=e=>{if(Dt(e)!=="object")return!1;const t=Nn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Pa=we("Date"),Ma=we("File"),La=we("Blob"),Va=we("FileList"),$a=e=>jt(e)&&he(e.pipe),Fa=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||he(e.append)&&((t=Dt(e))==="formdata"||t==="object"&&he(e.toString)&&e.toString()==="[object FormData]"))},za=we("URLSearchParams"),[Ia,Na,Da,Ha]=["ReadableStream","Request","Response","Headers"].map(we),ja=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function pt(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,l;if(typeof e!="object"&&(e=[e]),Xe(e))for(o=0,l=e.length;o<l;o++)t.call(null,e[o],o,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(o=0;o<a;o++)s=i[o],t.call(null,e[s],s,e)}}function Or(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length,l;for(;o-- >0;)if(l=n[o],t===l.toLowerCase())return l;return null}const Fe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Pr=e=>!ht(e)&&e!==Fe;function Dn(){const{caseless:e}=Pr(this)&&this||{},t={},n=(o,l)=>{const i=e&&Or(t,l)||l;Ut(t[i])&&Ut(o)?t[i]=Dn(t[i],o):Ut(o)?t[i]=Dn({},o):Xe(o)?t[i]=o.slice():t[i]=o};for(let o=0,l=arguments.length;o<l;o++)arguments[o]&&pt(arguments[o],n);return t}const Ua=(e,t,n,{allOwnKeys:o}={})=>(pt(t,(l,i)=>{n&&he(l)?e[i]=Br(l,n):e[i]=l},{allOwnKeys:o}),e),Wa=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ka=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Qa=(e,t,n,o)=>{let l,i,a;const s={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),i=l.length;i-- >0;)a=l[i],(!o||o(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Nn(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ja=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},Xa=e=>{if(!e)return null;if(Xe(e))return e;let t=e.length;if(!Ar(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Ya=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Nn(Uint8Array)),Za=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let l;for(;(l=o.next())&&!l.done;){const i=l.value;t.call(e,i[0],i[1])}},Ga=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},es=we("HTMLFormElement"),ts=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,l){return o.toUpperCase()+l}),Mr=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ns=we("RegExp"),Lr=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};pt(n,(l,i)=>{let a;(a=t(l,i,e))!==!1&&(o[i]=a||l)}),Object.defineProperties(e,o)},os=e=>{Lr(e,(t,n)=>{if(he(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(he(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},rs=(e,t)=>{const n={},o=l=>{l.forEach(i=>{n[i]=!0})};return Xe(e)?o(e):o(String(e).split(t)),n},ls=()=>{},is=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Hn="abcdefghijklmnopqrstuvwxyz",Vr="0123456789",$r={DIGIT:Vr,ALPHA:Hn,ALPHA_DIGIT:Hn+Hn.toUpperCase()+Vr},as=(e=16,t=$r.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function ss(e){return!!(e&&he(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const us=e=>{const t=new Array(10),n=(o,l)=>{if(jt(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[l]=o;const i=Xe(o)?[]:{};return pt(o,(a,s)=>{const d=n(a,l+1);!ht(d)&&(i[s]=d)}),t[l]=void 0,i}}return o};return n(e,0)},cs=we("AsyncFunction"),ds=e=>e&&(jt(e)||he(e))&&he(e.then)&&he(e.catch),Fr=((e,t)=>e?setImmediate:t?((n,o)=>(Fe.addEventListener("message",({source:l,data:i})=>{l===Fe&&i===n&&o.length&&o.shift()()},!1),l=>{o.push(l),Fe.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",he(Fe.postMessage)),fs=typeof queueMicrotask<"u"?queueMicrotask.bind(Fe):typeof process<"u"&&process.nextTick||Fr,w={isArray:Xe,isArrayBuffer:qr,isBuffer:Ba,isFormData:Fa,isArrayBufferView:qa,isString:Aa,isNumber:Ar,isBoolean:Oa,isObject:jt,isPlainObject:Ut,isReadableStream:Ia,isRequest:Na,isResponse:Da,isHeaders:Ha,isUndefined:ht,isDate:Pa,isFile:Ma,isBlob:La,isRegExp:ns,isFunction:he,isStream:$a,isURLSearchParams:za,isTypedArray:Ya,isFileList:Va,forEach:pt,merge:Dn,extend:Ua,trim:ja,stripBOM:Wa,inherits:Ka,toFlatObject:Qa,kindOf:Dt,kindOfTest:we,endsWith:Ja,toArray:Xa,forEachEntry:Za,matchAll:Ga,isHTMLForm:es,hasOwnProperty:Mr,hasOwnProp:Mr,reduceDescriptors:Lr,freezeMethods:os,toObjectSet:rs,toCamelCase:ts,noop:ls,toFiniteNumber:is,findKey:Or,global:Fe,isContextDefined:Pr,ALPHABET:$r,generateString:as,isSpecCompliantForm:ss,toJSONObject:us,isAsyncFn:cs,isThenable:ds,setImmediate:Fr,asap:fs};function J(e,t,n,o,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),l&&(this.response=l,this.status=l.status?l.status:null)}w.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.status}}});const zr=J.prototype,Ir={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ir[e]={value:e}}),Object.defineProperties(J,Ir),Object.defineProperty(zr,"isAxiosError",{value:!0}),J.from=(e,t,n,o,l,i)=>{const a=Object.create(zr);return w.toFlatObject(e,a,function(d){return d!==Error.prototype},s=>s!=="isAxiosError"),J.call(a,e.message,t,n,o,l),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const ms=null;function jn(e){return w.isPlainObject(e)||w.isArray(e)}function Nr(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function Dr(e,t,n){return e?e.concat(t).map(function(l,i){return l=Nr(l),!n&&i?"["+l+"]":l}).join(n?".":""):t}function hs(e){return w.isArray(e)&&!e.some(jn)}const ps=w.toFlatObject(w,{},null,function(t){return/^is[A-Z]/.test(t)});function Wt(e,t,n){if(!w.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=w.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(k,h){return!w.isUndefined(h[k])});const o=n.metaTokens,l=n.visitor||u,i=n.dots,a=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(t);if(!w.isFunction(l))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(w.isDate(p))return p.toISOString();if(!d&&w.isBlob(p))throw new J("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(p)||w.isTypedArray(p)?d&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,k,h){let P=p;if(p&&!h&&typeof p=="object"){if(w.endsWith(k,"{}"))k=o?k:k.slice(0,-2),p=JSON.stringify(p);else if(w.isArray(p)&&hs(p)||(w.isFileList(p)||w.endsWith(k,"[]"))&&(P=w.toArray(p)))return k=Nr(k),P.forEach(function(T,B){!(w.isUndefined(T)||T===null)&&t.append(a===!0?Dr([k],B,i):a===null?k:k+"[]",c(T))}),!1}return jn(p)?!0:(t.append(Dr(h,k,i),c(p)),!1)}const m=[],y=Object.assign(ps,{defaultVisitor:u,convertValue:c,isVisitable:jn});function v(p,k){if(!w.isUndefined(p)){if(m.indexOf(p)!==-1)throw Error("Circular reference detected in "+k.join("."));m.push(p),w.forEach(p,function(P,_){(!(w.isUndefined(P)||P===null)&&l.call(t,P,w.isString(_)?_.trim():_,k,y))===!0&&v(P,k?k.concat(_):[_])}),m.pop()}}if(!w.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Hr(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function Un(e,t){this._pairs=[],e&&Wt(e,this,t)}const jr=Un.prototype;jr.append=function(t,n){this._pairs.push([t,n])},jr.toString=function(t){const n=t?function(o){return t.call(this,o,Hr)}:Hr;return this._pairs.map(function(l){return n(l[0])+"="+n(l[1])},"").join("&")};function gs(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ur(e,t,n){if(!t)return e;const o=n&&n.encode||gs,l=n&&n.serialize;let i;if(l?i=l(t,n):i=w.isURLSearchParams(t)?t.toString():new Un(t,n).toString(o),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Wr{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){w.forEach(this.handlers,function(o){o!==null&&t(o)})}}const Kr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},vs={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Un,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Wn=typeof window<"u"&&typeof document<"u",Kn=typeof navigator=="object"&&navigator||void 0,ys=Wn&&(!Kn||["ReactNative","NativeScript","NS"].indexOf(Kn.product)<0),bs=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ws=Wn&&window.location.href||"http://localhost",de={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Wn,hasStandardBrowserEnv:ys,hasStandardBrowserWebWorkerEnv:bs,navigator:Kn,origin:ws},Symbol.toStringTag,{value:"Module"})),...vs};function Ss(e,t){return Wt(e,new de.classes.URLSearchParams,Object.assign({visitor:function(n,o,l,i){return de.isNode&&w.isBuffer(n)?(this.append(o,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function xs(e){return w.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ks(e){const t={},n=Object.keys(e);let o;const l=n.length;let i;for(o=0;o<l;o++)i=n[o],t[i]=e[i];return t}function Qr(e){function t(n,o,l,i){let a=n[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),d=i>=n.length;return a=!a&&w.isArray(l)?l.length:a,d?(w.hasOwnProp(l,a)?l[a]=[l[a],o]:l[a]=o,!s):((!l[a]||!w.isObject(l[a]))&&(l[a]=[]),t(n,o,l[a],i)&&w.isArray(l[a])&&(l[a]=ks(l[a])),!s)}if(w.isFormData(e)&&w.isFunction(e.entries)){const n={};return w.forEachEntry(e,(o,l)=>{t(xs(o),l,n,0)}),n}return null}function Cs(e,t,n){if(w.isString(e))try{return(t||JSON.parse)(e),w.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(0,JSON.stringify)(e)}const gt={transitional:Kr,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const o=n.getContentType()||"",l=o.indexOf("application/json")>-1,i=w.isObject(t);if(i&&w.isHTMLForm(t)&&(t=new FormData(t)),w.isFormData(t))return l?JSON.stringify(Qr(t)):t;if(w.isArrayBuffer(t)||w.isBuffer(t)||w.isStream(t)||w.isFile(t)||w.isBlob(t)||w.isReadableStream(t))return t;if(w.isArrayBufferView(t))return t.buffer;if(w.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return Ss(t,this.formSerializer).toString();if((s=w.isFileList(t))||o.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Wt(s?{"files[]":t}:t,d&&new d,this.formSerializer)}}return i||l?(n.setContentType("application/json",!1),Cs(t)):t}],transformResponse:[function(t){const n=this.transitional||gt.transitional,o=n&&n.forcedJSONParsing,l=this.responseType==="json";if(w.isResponse(t)||w.isReadableStream(t))return t;if(t&&w.isString(t)&&(o&&!this.responseType||l)){const a=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?J.from(s,J.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:de.classes.FormData,Blob:de.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],e=>{gt.headers[e]={}});const _s=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Es=e=>{const t={};let n,o,l;return e&&e.split(`
2
- `).forEach(function(a){l=a.indexOf(":"),n=a.substring(0,l).trim().toLowerCase(),o=a.substring(l+1).trim(),!(!n||t[n]&&_s[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},Jr=Symbol("internals");function vt(e){return e&&String(e).trim().toLowerCase()}function Kt(e){return e===!1||e==null?e:w.isArray(e)?e.map(Kt):String(e)}function Ts(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}const Rs=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Qn(e,t,n,o,l){if(w.isFunction(o))return o.call(this,t,n);if(l&&(t=n),!!w.isString(t)){if(w.isString(o))return t.indexOf(o)!==-1;if(w.isRegExp(o))return o.test(t)}}function Bs(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function qs(e,t){const n=w.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(l,i,a){return this[o].call(this,t,l,i,a)},configurable:!0})})}class fe{constructor(t){t&&this.set(t)}set(t,n,o){const l=this;function i(s,d,c){const u=vt(d);if(!u)throw new Error("header name must be a non-empty string");const m=w.findKey(l,u);(!m||l[m]===void 0||c===!0||c===void 0&&l[m]!==!1)&&(l[m||d]=Kt(s))}const a=(s,d)=>w.forEach(s,(c,u)=>i(c,u,d));if(w.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(w.isString(t)&&(t=t.trim())&&!Rs(t))a(Es(t),n);else if(w.isHeaders(t))for(const[s,d]of t.entries())i(d,s,o);else t!=null&&i(n,t,o);return this}get(t,n){if(t=vt(t),t){const o=w.findKey(this,t);if(o){const l=this[o];if(!n)return l;if(n===!0)return Ts(l);if(w.isFunction(n))return n.call(this,l,o);if(w.isRegExp(n))return n.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=vt(t),t){const o=w.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||Qn(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let l=!1;function i(a){if(a=vt(a),a){const s=w.findKey(o,a);s&&(!n||Qn(o,o[s],s,n))&&(delete o[s],l=!0)}}return w.isArray(t)?t.forEach(i):i(t),l}clear(t){const n=Object.keys(this);let o=n.length,l=!1;for(;o--;){const i=n[o];(!t||Qn(this,this[i],i,t,!0))&&(delete this[i],l=!0)}return l}normalize(t){const n=this,o={};return w.forEach(this,(l,i)=>{const a=w.findKey(o,i);if(a){n[a]=Kt(l),delete n[i];return}const s=t?Bs(i):String(i).trim();s!==i&&delete n[i],n[s]=Kt(l),o[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return w.forEach(this,(o,l)=>{o!=null&&o!==!1&&(n[l]=t&&w.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
3
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(l=>o.set(l)),o}static accessor(t){const o=(this[Jr]=this[Jr]={accessors:{}}).accessors,l=this.prototype;function i(a){const s=vt(a);o[s]||(qs(l,a),o[s]=!0)}return w.isArray(t)?t.forEach(i):i(t),this}}fe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),w.reduceDescriptors(fe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}}),w.freezeMethods(fe);function Jn(e,t){const n=this||gt,o=t||n,l=fe.from(o.headers);let i=o.data;return w.forEach(e,function(s){i=s.call(n,i,l.normalize(),t?t.status:void 0)}),l.normalize(),i}function Xr(e){return!!(e&&e.__CANCEL__)}function Ye(e,t,n){J.call(this,e??"canceled",J.ERR_CANCELED,t,n),this.name="CanceledError"}w.inherits(Ye,J,{__CANCEL__:!0});function Yr(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new J("Request failed with status code "+n.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function As(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Os(e,t){e=e||10;const n=new Array(e),o=new Array(e);let l=0,i=0,a;return t=t!==void 0?t:1e3,function(d){const c=Date.now(),u=o[i];a||(a=c),n[l]=d,o[l]=c;let m=i,y=0;for(;m!==l;)y+=n[m++],m=m%e;if(l=(l+1)%e,l===i&&(i=(i+1)%e),c-a<t)return;const v=u&&c-u;return v?Math.round(y*1e3/v):void 0}}function Ps(e,t){let n=0,o=1e3/t,l,i;const a=(c,u=Date.now())=>{n=u,l=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),m=u-n;m>=o?a(c,u):(l=c,i||(i=setTimeout(()=>{i=null,a(l)},o-m)))},()=>l&&a(l)]}const Qt=(e,t,n=3)=>{let o=0;const l=Os(50,250);return Ps(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,d=a-o,c=l(d),u=a<=s;o=a;const m={loaded:a,total:s,progress:s?a/s:void 0,bytes:d,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(m)},n)},Zr=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},Gr=e=>(...t)=>w.asap(()=>e(...t)),Ms=de.hasStandardBrowserEnv?function(){const t=de.navigator&&/(msie|trident)/i.test(de.navigator.userAgent),n=document.createElement("a");let o;function l(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=l(window.location.href),function(a){const s=w.isString(a)?l(a):a;return s.protocol===o.protocol&&s.host===o.host}}():function(){return function(){return!0}}(),Ls=de.hasStandardBrowserEnv?{write(e,t,n,o,l,i){const a=[e+"="+encodeURIComponent(t)];w.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),w.isString(o)&&a.push("path="+o),w.isString(l)&&a.push("domain="+l),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Vs(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function $s(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function el(e,t){return e&&!Vs(t)?$s(e,t):t}const tl=e=>e instanceof fe?{...e}:e;function ze(e,t){t=t||{};const n={};function o(c,u,m){return w.isPlainObject(c)&&w.isPlainObject(u)?w.merge.call({caseless:m},c,u):w.isPlainObject(u)?w.merge({},u):w.isArray(u)?u.slice():u}function l(c,u,m){if(w.isUndefined(u)){if(!w.isUndefined(c))return o(void 0,c,m)}else return o(c,u,m)}function i(c,u){if(!w.isUndefined(u))return o(void 0,u)}function a(c,u){if(w.isUndefined(u)){if(!w.isUndefined(c))return o(void 0,c)}else return o(void 0,u)}function s(c,u,m){if(m in t)return o(c,u);if(m in e)return o(void 0,c)}const d={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u)=>l(tl(c),tl(u),!0)};return w.forEach(Object.keys(Object.assign({},e,t)),function(u){const m=d[u]||l,y=m(e[u],t[u],u);w.isUndefined(y)&&m!==s||(n[u]=y)}),n}const nl=e=>{const t=ze({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:l,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=fe.from(a),t.url=Ur(el(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let d;if(w.isFormData(n)){if(de.hasStandardBrowserEnv||de.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((d=a.getContentType())!==!1){const[c,...u]=d?d.split(";").map(m=>m.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(de.hasStandardBrowserEnv&&(o&&w.isFunction(o)&&(o=o(t)),o||o!==!1&&Ms(t.url))){const c=l&&i&&Ls.read(i);c&&a.set(l,c)}return t},Fs=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,o){const l=nl(e);let i=l.data;const a=fe.from(l.headers).normalize();let{responseType:s,onUploadProgress:d,onDownloadProgress:c}=l,u,m,y,v,p;function k(){v&&v(),p&&p(),l.cancelToken&&l.cancelToken.unsubscribe(u),l.signal&&l.signal.removeEventListener("abort",u)}let h=new XMLHttpRequest;h.open(l.method.toUpperCase(),l.url,!0),h.timeout=l.timeout;function P(){if(!h)return;const T=fe.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),C={data:!s||s==="text"||s==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:T,config:e,request:h};Yr(function(O){n(O),k()},function(O){o(O),k()},C),h=null}"onloadend"in h?h.onloadend=P:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(P)},h.onabort=function(){h&&(o(new J("Request aborted",J.ECONNABORTED,e,h)),h=null)},h.onerror=function(){o(new J("Network Error",J.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let B=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const C=l.transitional||Kr;l.timeoutErrorMessage&&(B=l.timeoutErrorMessage),o(new J(B,C.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,h)),h=null},i===void 0&&a.setContentType(null),"setRequestHeader"in h&&w.forEach(a.toJSON(),function(B,C){h.setRequestHeader(C,B)}),w.isUndefined(l.withCredentials)||(h.withCredentials=!!l.withCredentials),s&&s!=="json"&&(h.responseType=l.responseType),c&&([y,p]=Qt(c,!0),h.addEventListener("progress",y)),d&&h.upload&&([m,v]=Qt(d),h.upload.addEventListener("progress",m),h.upload.addEventListener("loadend",v)),(l.cancelToken||l.signal)&&(u=T=>{h&&(o(!T||T.type?new Ye(null,e,h):T),h.abort(),h=null)},l.cancelToken&&l.cancelToken.subscribe(u),l.signal&&(l.signal.aborted?u():l.signal.addEventListener("abort",u)));const _=As(l.url);if(_&&de.protocols.indexOf(_)===-1){o(new J("Unsupported protocol "+_+":",J.ERR_BAD_REQUEST,e));return}h.send(i||null)})},zs=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let o=new AbortController,l;const i=function(c){if(!l){l=!0,s();const u=c instanceof Error?c:this.reason;o.abort(u instanceof J?u:new Ye(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,i(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:d}=o;return d.unsubscribe=()=>w.asap(s),d}},Is=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let o=0,l;for(;o<n;)l=o+t,yield e.slice(o,l),o=l},Ns=async function*(e,t){for await(const n of Ds(e))yield*Is(n,t)},Ds=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:o}=await t.read();if(n)break;yield o}}finally{await t.cancel()}},ol=(e,t,n,o)=>{const l=Ns(e,t);let i=0,a,s=d=>{a||(a=!0,o&&o(d))};return new ReadableStream({async pull(d){try{const{done:c,value:u}=await l.next();if(c){s(),d.close();return}let m=u.byteLength;if(n){let y=i+=m;n(y)}d.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(d){return s(d),l.return()}},{highWaterMark:2})},Jt=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",rl=Jt&&typeof ReadableStream=="function",Hs=Jt&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ll=(e,...t)=>{try{return!!e(...t)}catch{return!1}},js=rl&&ll(()=>{let e=!1;const t=new Request(de.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),il=64*1024,Xn=rl&&ll(()=>w.isReadableStream(new Response("").body)),Xt={stream:Xn&&(e=>e.body)};Jt&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Xt[t]&&(Xt[t]=w.isFunction(e[t])?n=>n[t]():(n,o)=>{throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,o)})})})(new Response);const Us=async e=>{if(e==null)return 0;if(w.isBlob(e))return e.size;if(w.isSpecCompliantForm(e))return(await new Request(de.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(w.isArrayBufferView(e)||w.isArrayBuffer(e))return e.byteLength;if(w.isURLSearchParams(e)&&(e=e+""),w.isString(e))return(await Hs(e)).byteLength},Ws=async(e,t)=>{const n=w.toFiniteNumber(e.getContentLength());return n??Us(t)},Yn={http:ms,xhr:Fs,fetch:Jt&&(async e=>{let{url:t,method:n,data:o,signal:l,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:d,responseType:c,headers:u,withCredentials:m="same-origin",fetchOptions:y}=nl(e);c=c?(c+"").toLowerCase():"text";let v=zs([l,i&&i.toAbortSignal()],a),p;const k=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let h;try{if(d&&js&&n!=="get"&&n!=="head"&&(h=await Ws(u,o))!==0){let C=new Request(t,{method:"POST",body:o,duplex:"half"}),q;if(w.isFormData(o)&&(q=C.headers.get("content-type"))&&u.setContentType(q),C.body){const[O,N]=Zr(h,Qt(Gr(d)));o=ol(C.body,il,O,N)}}w.isString(m)||(m=m?"include":"omit");const P="credentials"in Request.prototype;p=new Request(t,{...y,signal:v,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:o,duplex:"half",credentials:P?m:void 0});let _=await fetch(p);const T=Xn&&(c==="stream"||c==="response");if(Xn&&(s||T&&k)){const C={};["status","statusText","headers"].forEach(S=>{C[S]=_[S]});const q=w.toFiniteNumber(_.headers.get("content-length")),[O,N]=s&&Zr(q,Qt(Gr(s),!0))||[];_=new Response(ol(_.body,il,O,()=>{N&&N(),k&&k()}),C)}c=c||"text";let B=await Xt[w.findKey(Xt,c)||"text"](_,e);return!T&&k&&k(),await new Promise((C,q)=>{Yr(C,q,{data:B,headers:fe.from(_.headers),status:_.status,statusText:_.statusText,config:e,request:p})})}catch(P){throw k&&k(),P&&P.name==="TypeError"&&/fetch/i.test(P.message)?Object.assign(new J("Network Error",J.ERR_NETWORK,e,p),{cause:P.cause||P}):J.from(P,P&&P.code,e,p)}})};w.forEach(Yn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const al=e=>`- ${e}`,Ks=e=>w.isFunction(e)||e===null||e===!1,sl={getAdapter:e=>{e=w.isArray(e)?e:[e];const{length:t}=e;let n,o;const l={};for(let i=0;i<t;i++){n=e[i];let a;if(o=n,!Ks(n)&&(o=Yn[(a=String(n)).toLowerCase()],o===void 0))throw new J(`Unknown adapter '${a}'`);if(o)break;l[a||"#"+i]=o}if(!o){const i=Object.entries(l).map(([s,d])=>`adapter ${s} `+(d===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
1
+ (function(te,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(te=typeof globalThis<"u"?globalThis:te||self,r(te.SharedRitm={},te.Vue))})(this,function(te,r){"use strict";var ku=Object.defineProperty;var Cu=(te,r,Ee)=>r in te?ku(te,r,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):te[r]=Ee;var Tl=(te,r,Ee)=>Cu(te,typeof r!="symbol"?r+"":r,Ee);function Ee(e,t,n,o){return Object.defineProperty(e,t,{get:n,set:o,enumerable:!0}),e}function re(e){return r.markRaw(r.defineComponent(e))}function Rl(e){return r.markRaw(e)}function ge(e,t){return e!==void 0&&e()||t}function Bl(e,t){if(e!==void 0){const n=e();if(n!=null)return n.slice()}return t}function Re(e,t){return e!==void 0?t.concat(e()):t}function ql(e,t){return e===void 0?t:t!==void 0?t.concat(e()):e()}function Al(e,t,n,o,l,i){t.key=o+l;const a=r.h(e,t,n);return l===!0?r.withDirectives(a,i()):a}const Ol=["top","middle","bottom"],Pl=re({name:"QBadge",props:{color:String,textColor:String,floating:Boolean,transparent:Boolean,multiLine:Boolean,outline:Boolean,rounded:Boolean,label:[Number,String],align:{type:String,validator:e=>Ol.includes(e)}},setup(e,{slots:t}){const n=r.computed(()=>e.align!==void 0?{verticalAlign:e.align}:null),o=r.computed(()=>{const l=e.outline===!0&&e.color||e.textColor;return`q-badge flex inline items-center no-wrap q-badge--${e.multiLine===!0?"multi":"single"}-line`+(e.outline===!0?" q-badge--outline":e.color!==void 0?` bg-${e.color}`:"")+(l!==void 0?` text-${l}`:"")+(e.floating===!0?" q-badge--floating":"")+(e.rounded===!0?" q-badge--rounded":"")+(e.transparent===!0?" q-badge--transparent":"")});return()=>r.h("div",{class:o.value,style:n.value,role:"status","aria-label":e.label},Re(t.default,e.label!==void 0?[e.label]:[]))}}),Ae=r.ref(!1);let nn;function Ml(e,t){const n=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||[];return{browser:n[5]||n[3]||n[1]||"",version:n[4]||n[2]||"0",platform:t[0]||""}}function Ll(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 ho="ontouchstart"in window||window.navigator.maxTouchPoints>0;function Vl(e){const t=e.toLowerCase(),n=Ll(t),o=Ml(t,n),l={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};o.browser&&(l[o.browser]=!0,l.version=o.version,l.versionNumber=parseInt(o.version,10)),o.platform&&(l[o.platform]=!0);const i=l.android||l.ios||l.bb||l.blackberry||l.ipad||l.iphone||l.ipod||l.kindle||l.playbook||l.silk||l["windows phone"];if(i===!0||t.indexOf("mobile")!==-1?l.mobile=!0:l.desktop=!0,l["windows phone"]&&(l.winphone=!0,delete l["windows phone"]),l.edga||l.edgios||l.edg?(l.edge=!0,o.browser="edge"):l.crios?(l.chrome=!0,o.browser="chrome"):l.fxios&&(l.firefox=!0,o.browser="firefox"),(l.ipod||l.ipad||l.iphone)&&(l.ios=!0),l.vivaldi&&(o.browser="vivaldi",l.vivaldi=!0),(l.chrome||l.opr||l.safari||l.vivaldi||l.mobile===!0&&l.ios!==!0&&i!==!0)&&(l.webkit=!0),l.opr&&(o.browser="opera",l.opera=!0),l.safari&&(l.blackberry||l.bb?(o.browser="blackberry",l.blackberry=!0):l.playbook?(o.browser="playbook",l.playbook=!0):l.android?(o.browser="android",l.android=!0):l.kindle?(o.browser="kindle",l.kindle=!0):l.silk&&(o.browser="silk",l.silk=!0)),l.name=o.browser,l.platform=o.platform,t.indexOf("electron")!==-1)l.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)l.bex=!0;else{if(window.Capacitor!==void 0?(l.capacitor=!0,l.nativeMobile=!0,l.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(l.cordova=!0,l.nativeMobile=!0,l.nativeMobileWrapper="cordova"),Ae.value===!0&&(nn={is:{...l}}),ho===!0&&l.mac===!0&&(l.desktop===!0&&l.safari===!0||l.nativeMobile===!0&&l.android!==!0&&l.ios!==!0&&l.ipad!==!0)){delete l.mac,delete l.desktop;const a=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(l,{mobile:!0,ios:!0,platform:a,[a]:!0})}l.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete l.desktop,l.mobile=!0)}return l}const po=navigator.userAgent||navigator.vendor||window.opera,$l={has:{touch:!1,webStorage:!1},within:{iframe:!1}},me={userAgent:po,is:Vl(po),has:{touch:ho},within:{iframe:window.self!==window.top}},on={install(e){const{$q:t}=e;Ae.value===!0?(e.onSSRHydrated.push(()=>{Object.assign(t.platform,me),Ae.value=!1}),t.platform=r.reactive(this)):t.platform=this}};{let e;Ee(me.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(on,me),Ae.value===!0&&(Object.assign(on,nn,$l),nn=null)}function rn(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),on.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const se={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(se,{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 ln(){}function go(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 Fl(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let n=e.target;for(;n;){if(t.push(n),n.tagName==="HTML")return t.push(document),t.push(window),t;n=n.parentElement}}function Se(e){e.stopPropagation()}function ye(e){e.cancelable!==!1&&e.preventDefault()}function ae(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function lt(e,t,n){const o=`__q_${t}_evt`;e[o]=e[o]!==void 0?e[o].concat(n):n,n.forEach(l=>{l[0].addEventListener(l[1],e[l[2]],se[l[3]])})}function xt(e,t){const n=`__q_${t}_evt`;e[n]!==void 0&&(e[n].forEach(o=>{o[0].removeEventListener(o[1],e[o[2]],se[o[3]])}),e[n]=void 0)}function an(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function Oe(e,t){return an(e)===!0?!1:[].concat(t).includes(e.keyCode)}const vo={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},Il={...vo,contextMenu:Boolean};function yo({showing:e,avoidEmit:t,configureAnchorEl:n}){const{props:o,proxy:l,emit:i}=r.getCurrentInstance(),a=r.ref(null);let s=null;function d(v){return a.value===null?!1:v===void 0||v.touches===void 0||v.touches.length<=1}const c={};n===void 0&&(Object.assign(c,{hide(v){l.hide(v)},toggle(v){l.toggle(v),v.qAnchorHandled=!0},toggleKey(v){Oe(v,13)===!0&&c.toggle(v)},contextClick(v){l.hide(v),ye(v),r.nextTick(()=>{l.show(v),v.qAnchorHandled=!0})},prevent:ye,mobileTouch(v){if(c.mobileCleanup(v),d(v)!==!0)return;l.hide(v),a.value.classList.add("non-selectable");const p=v.target;lt(c,"anchor",[[p,"touchmove","mobileCleanup","passive"],[p,"touchend","mobileCleanup","passive"],[p,"touchcancel","mobileCleanup","passive"],[a.value,"contextmenu","prevent","notPassive"]]),s=setTimeout(()=>{s=null,l.show(v),v.qAnchorHandled=!0},300)},mobileCleanup(v){a.value.classList.remove("non-selectable"),s!==null&&(clearTimeout(s),s=null),e.value===!0&&v!==void 0&&rn()}}),n=function(v=o.contextMenu){if(o.noParentEvent===!0||a.value===null)return;let p;v===!0?l.$q.platform.is.mobile===!0?p=[[a.value,"touchstart","mobileTouch","passive"]]:p=[[a.value,"mousedown","hide","passive"],[a.value,"contextmenu","contextClick","notPassive"]]:p=[[a.value,"click","toggle","passive"],[a.value,"keyup","toggleKey","passive"]],lt(c,"anchor",p)});function u(){xt(c,"anchor")}function m(v){for(a.value=v;a.value.classList.contains("q-anchor--skip");)a.value=a.value.parentNode;n()}function y(){if(o.target===!1||o.target===""||l.$el.parentNode===null)a.value=null;else if(o.target===!0)m(l.$el.parentNode);else{let v=o.target;if(typeof o.target=="string")try{v=document.querySelector(o.target)}catch{v=void 0}v!=null?(a.value=v.$el||v,n()):(a.value=null,console.error(`Anchor: target "${o.target}" not found`))}}return r.watch(()=>o.contextMenu,v=>{a.value!==null&&(u(),n(v))}),r.watch(()=>o.target,()=>{a.value!==null&&u(),y()}),r.watch(()=>o.noParentEvent,v=>{a.value!==null&&(v===!0?u():n())}),r.onMounted(()=>{y(),t!==!0&&o.modelValue===!0&&a.value===null&&i("update:modelValue",!1)}),r.onBeforeUnmount(()=>{s!==null&&clearTimeout(s),u()}),{anchorEl:a,canShow:d,anchorEvents:c}}function bo(e,t){const n=r.ref(null);let o;function l(s,d){const c=`${d!==void 0?"add":"remove"}EventListener`,u=d!==void 0?d:o;s!==window&&s[c]("scroll",u,se.passive),window[c]("scroll",u,se.passive),o=d}function i(){n.value!==null&&(l(n.value),n.value=null)}const a=r.watch(()=>e.noParentEvent,()=>{n.value!==null&&(i(),t())});return r.onBeforeUnmount(a),{localScrollTarget:n,unconfigureScrollTarget:i,changeScrollEvent:l}}function sn(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 wo(e){return e.appContext.config.globalProperties.$router!==void 0}function So(e){return e.isUnmounted===!0||e.isDeactivated===!0}const un={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},cn=["beforeShow","show","beforeHide","hide"];function dn({showing:e,canShow:t,hideOnRouteChange:n,handleShow:o,handleHide:l,processOnMount:i}){const a=r.getCurrentInstance(),{props:s,emit:d,proxy:c}=a;let u;function m(E){e.value===!0?p(E):y(E)}function y(E){if(s.disable===!0||E!==void 0&&E.qAnchorHandled===!0||t!==void 0&&t(E)!==!0)return;const T=s["onUpdate:modelValue"]!==void 0;T===!0&&(d("update:modelValue",!0),u=E,r.nextTick(()=>{u===E&&(u=void 0)})),(s.modelValue===null||T===!1)&&v(E)}function v(E){e.value!==!0&&(e.value=!0,d("beforeShow",E),o!==void 0?o(E):d("show",E))}function p(E){if(s.disable===!0)return;const T=s["onUpdate:modelValue"]!==void 0;T===!0&&(d("update:modelValue",!1),u=E,r.nextTick(()=>{u===E&&(u=void 0)})),(s.modelValue===null||T===!1)&&k(E)}function k(E){e.value!==!1&&(e.value=!1,d("beforeHide",E),l!==void 0?l(E):d("hide",E))}function h(E){s.disable===!0&&E===!0?s["onUpdate:modelValue"]!==void 0&&d("update:modelValue",!1):E===!0!==e.value&&(E===!0?v:k)(u)}r.watch(()=>s.modelValue,h),n!==void 0&&wo(a)===!0&&r.watch(()=>c.$route.fullPath,()=>{n.value===!0&&e.value===!0&&p()}),i===!0&&r.onMounted(()=>{h(s.modelValue)});const P={show:y,hide:p,toggle:m};return Object.assign(c,P),P}let Pe=[],it=[];function xo(e){it=it.filter(t=>t!==e)}function zl(e){xo(e),it.push(e)}function ko(e){xo(e),it.length===0&&Pe.length!==0&&(Pe[Pe.length-1](),Pe=[])}function kt(e){it.length===0?e():Pe.push(e)}function Nl(e){Pe=Pe.filter(t=>t!==e)}const Co={};let Dl=1,Hl=document.body;function jl(e,t){const n=document.createElement("div");if(n.id=t!==void 0?`q-portal--${t}--${Dl++}`:e,Co.globalNodes!==void 0){const o=Co.globalNodes.class;o!==void 0&&(n.className=o)}return Hl.appendChild(n),n}function Ul(e){e.remove()}const at=[];function Wl(e,t){do{if(e.$options.name==="QMenu"){if(e.hide(t),e.$props.separateClosePopup===!0)return sn(e)}else if(e.__qPortal===!0){const n=sn(e);return n!==void 0&&n.$options.name==="QPopupProxy"?(e.hide(t),n):e}e=sn(e)}while(e!=null)}const Kl=re({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function Ql(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 fn(e,t,n,o){const l=r.ref(!1),i=r.ref(!1);let a=null;const s={},d=o==="dialog"&&Ql(e);function c(m){if(m===!0){ko(s),i.value=!0;return}i.value=!1,l.value===!1&&(d===!1&&a===null&&(a=jl(!1,o)),l.value=!0,at.push(e.proxy),zl(s))}function u(m){if(i.value=!1,m!==!0)return;ko(s),l.value=!1;const y=at.indexOf(e.proxy);y!==-1&&at.splice(y,1),a!==null&&(Ul(a),a=null)}return r.onUnmounted(()=>{u(!0)}),e.proxy.__qPortal=!0,Ee(e.proxy,"contentEl",()=>t.value),{showPortal:c,hidePortal:u,portalIsActive:l,portalIsAccessible:i,renderPortal:()=>d===!0?n():l.value===!0?[r.h(r.Teleport,{to:a},r.h(Kl,n))]:void 0}}const st={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function mn(e,t=()=>{},n=()=>{}){return{transitionProps:r.computed(()=>{const o=`q-transition--${e.transitionShow||t()}`,l=`q-transition--${e.transitionHide||n()}`;return{appear:!0,enterFromClass:`${o}-enter-from`,enterActiveClass:`${o}-enter-active`,enterToClass:`${o}-enter-to`,leaveFromClass:`${l}-leave-from`,leaveActiveClass:`${l}-leave-active`,leaveToClass:`${l}-leave-to`}}),transitionStyle:r.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function hn(){let e;const t=r.getCurrentInstance();function n(){e=void 0}return r.onDeactivated(n),r.onBeforeUnmount(n),{removeTick:n,registerTick(o){e=o,r.nextTick(()=>{e===o&&(So(t)===!1&&e(),e=void 0)})}}}function pn(){let e=null;const t=r.getCurrentInstance();function n(){e!==null&&(clearTimeout(e),e=null)}return r.onDeactivated(n),r.onBeforeUnmount(n),{removeTimeout:n,registerTimeout(o,l){n(),So(t)===!1&&(e=setTimeout(()=>{e=null,o()},l))}}}function gn(e,t){const n=e.style;for(const o in t)n[o]=t[o]}function Jl(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=r.unref(e);if(t)return t.$el||t}function Eo(e,t){if(e==null||e.contains(t)===!0)return!0;for(let n=e.nextElementSibling;n!==null;n=n.nextElementSibling)if(n.contains(t))return!0;return!1}const vn=[Element,String],Xl=[null,document,document.body,document.scrollingElement,document.documentElement];function yn(e,t){let n=Jl(t);if(n===void 0){if(e==null)return window;n=e.closest(".scroll,.scroll-y,.overflow-auto")}return Xl.includes(n)?window:n}function _o(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function To(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let Ct;function Et(){if(Ct!==void 0)return Ct;const e=document.createElement("p"),t=document.createElement("div");gn(e,{width:"100%",height:"200px"}),gn(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const n=e.offsetWidth;t.style.overflow="scroll";let o=e.offsetWidth;return n===o&&(o=t.clientWidth),t.remove(),Ct=n-o,Ct}function Yl(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:_t}=se,Me=[];function Tt(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let n=at.length-1;for(;n>=0;){const o=at[n].$;if(o.type.name==="QTooltip"){n--;continue}if(o.type.name!=="QDialog")break;if(o.props.seamless!==!0)return;n--}for(let o=Me.length-1;o>=0;o--){const l=Me[o];if((l.anchorEl.value===null||l.anchorEl.value.contains(t)===!1)&&(t===document.body||l.innerRef.value!==null&&l.innerRef.value.contains(t)===!1))e.qClickOutside=!0,l.onClickOutside(e);else return}}function Ro(e){Me.push(e),Me.length===1&&(document.addEventListener("mousedown",Tt,_t),document.addEventListener("touchstart",Tt,_t))}function Rt(e){const t=Me.findIndex(n=>n===e);t!==-1&&(Me.splice(t,1),Me.length===0&&(document.removeEventListener("mousedown",Tt,_t),document.removeEventListener("touchstart",Tt,_t)))}let Bo,qo;function Bt(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 Ao(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const bn={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{bn[`${e}#ltr`]=e,bn[`${e}#rtl`]=e});function qt(e,t){const n=e.split(" ");return{vertical:n[0],horizontal:bn[`${n[1]}#${t===!0?"rtl":"ltr"}`]}}function Zl(e,t){let{top:n,left:o,right:l,bottom:i,width:a,height:s}=e.getBoundingClientRect();return t!==void 0&&(n-=t[1],o-=t[0],i+=t[1],l+=t[0],a+=t[0],s+=t[1]),{top:n,bottom:i,height:s,left:o,right:l,width:a,middle:o+(l-o)/2,center:n+(i-n)/2}}function Gl(e,t,n){let{top:o,left:l}=e.getBoundingClientRect();return o+=t.top,l+=t.left,n!==void 0&&(o+=n[1],l+=n[0]),{top:o,bottom:o+1,height:1,left:l,right:l+1,width:1,middle:l,center:o}}function ei(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function Oo(e,t,n,o){return{top:e[n.vertical]-t[o.vertical],left:e[n.horizontal]-t[o.horizontal]}}function wn(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{wn(e,t+1)},10);return}const{targetEl:n,offset:o,anchorEl:l,anchorOrigin:i,selfOrigin:a,absoluteOffset:s,fit:d,cover:c,maxHeight:u,maxWidth:m}=e;if(me.is.ios===!0&&window.visualViewport!==void 0){const q=document.body.style,{offsetLeft:O,offsetTop:N}=window.visualViewport;O!==Bo&&(q.setProperty("--q-pe-left",O+"px"),Bo=O),N!==qo&&(q.setProperty("--q-pe-top",N+"px"),qo=N)}const{scrollLeft:y,scrollTop:v}=n,p=s===void 0?Zl(l,c===!0?[0,0]:o):Gl(l,s,o);Object.assign(n.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:m,maxHeight:u,visibility:"visible"});const{offsetWidth:k,offsetHeight:h}=n,{elWidth:P,elHeight:E}=d===!0||c===!0?{elWidth:Math.max(p.width,k),elHeight:c===!0?Math.max(p.height,h):h}:{elWidth:k,elHeight:h};let T={maxWidth:m,maxHeight:u};(d===!0||c===!0)&&(T.minWidth=p.width+"px",c===!0&&(T.minHeight=p.height+"px")),Object.assign(n.style,T);const B=ei(P,E);let C=Oo(p,B,i,a);if(s===void 0||o===void 0)Sn(C,p,B,i,a);else{const{top:q,left:O}=C;Sn(C,p,B,i,a);let N=!1;if(C.top!==q){N=!0;const S=2*o[1];p.center=p.top-=S,p.bottom-=S+2}if(C.left!==O){N=!0;const S=2*o[0];p.middle=p.left-=S,p.right-=S+2}N===!0&&(C=Oo(p,B,i,a),Sn(C,p,B,i,a))}T={top:C.top+"px",left:C.left+"px"},C.maxHeight!==void 0&&(T.maxHeight=C.maxHeight+"px",p.height>C.maxHeight&&(T.minHeight=T.maxHeight)),C.maxWidth!==void 0&&(T.maxWidth=C.maxWidth+"px",p.width>C.maxWidth&&(T.minWidth=T.maxWidth)),Object.assign(n.style,T),n.scrollTop!==v&&(n.scrollTop=v),n.scrollLeft!==y&&(n.scrollLeft=y)}function Sn(e,t,n,o,l){const i=n.bottom,a=n.right,s=Et(),d=window.innerHeight-s,c=document.body.clientWidth;if(e.top<0||e.top+i>d)if(l.vertical==="center")e.top=t[o.vertical]>d/2?Math.max(0,d-i):0,e.maxHeight=Math.min(i,d);else if(t[o.vertical]>d/2){const u=Math.min(d,o.vertical==="center"?t.center:o.vertical===l.vertical?t.bottom:t.top);e.maxHeight=Math.min(i,u),e.top=Math.max(0,u-i)}else e.top=Math.max(0,o.vertical==="center"?t.center:o.vertical===l.vertical?t.top:t.bottom),e.maxHeight=Math.min(i,d-e.top);if(e.left<0||e.left+a>c)if(e.maxWidth=Math.min(a,c),l.horizontal==="middle")e.left=t[o.horizontal]>c/2?Math.max(0,c-a):0;else if(t[o.horizontal]>c/2){const u=Math.min(c,o.horizontal==="middle"?t.middle:o.horizontal===l.horizontal?t.right:t.left);e.maxWidth=Math.min(a,u),e.left=Math.max(0,u-e.maxWidth)}else e.left=Math.max(0,o.horizontal==="middle"?t.middle:o.horizontal===l.horizontal?t.left:t.right),e.maxWidth=Math.min(a,c-e.left)}const ti=re({name:"QTooltip",inheritAttrs:!1,props:{...vo,...un,...st,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...st.transitionShow,default:"jump-down"},transitionHide:{...st.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:Bt},self:{type:String,default:"top middle",validator:Bt},offset:{type:Array,default:()=>[14,14],validator:Ao},scrollTarget:vn,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...cn],setup(e,{slots:t,emit:n,attrs:o}){let l,i;const a=r.getCurrentInstance(),{proxy:{$q:s}}=a,d=r.ref(null),c=r.ref(!1),u=r.computed(()=>qt(e.anchor,s.lang.rtl)),m=r.computed(()=>qt(e.self,s.lang.rtl)),y=r.computed(()=>e.persistent!==!0),{registerTick:v,removeTick:p}=hn(),{registerTimeout:k}=pn(),{transitionProps:h,transitionStyle:P}=mn(e),{localScrollTarget:E,changeScrollEvent:T,unconfigureScrollTarget:B}=bo(e,X),{anchorEl:C,canShow:q,anchorEvents:O}=yo({showing:c,configureAnchorEl:U}),{show:N,hide:S}=dn({showing:c,canShow:q,handleShow:j,handleHide:R,hideOnRouteChange:y,processOnMount:!0});Object.assign(O,{delayShow:K,delayHide:V});const{showPortal:_,hidePortal:L,renderPortal:x}=fn(a,d,g,"tooltip");if(s.platform.is.mobile===!0){const M={anchorEl:C,innerRef:d,onClickOutside(Q){return S(Q),Q.target.classList.contains("q-dialog__backdrop")&&ae(Q),!0}},W=r.computed(()=>e.modelValue===null&&e.persistent!==!0&&c.value===!0);r.watch(W,Q=>{(Q===!0?Ro:Rt)(M)}),r.onBeforeUnmount(()=>{Rt(M)})}function j(M){_(),v(()=>{i=new MutationObserver(()=>D()),i.observe(d.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),D(),X()}),l===void 0&&(l=r.watch(()=>s.screen.width+"|"+s.screen.height+"|"+e.self+"|"+e.anchor+"|"+s.lang.rtl,D)),k(()=>{_(!0),n("show",M)},e.transitionDuration)}function R(M){p(),L(),H(),k(()=>{L(!0),n("hide",M)},e.transitionDuration)}function H(){i!==void 0&&(i.disconnect(),i=void 0),l!==void 0&&(l(),l=void 0),B(),xt(O,"tooltipTemp")}function D(){wn({targetEl:d.value,offset:e.offset,anchorEl:C.value,anchorOrigin:u.value,selfOrigin:m.value,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function K(M){if(s.platform.is.mobile===!0){rn(),document.body.classList.add("non-selectable");const W=C.value,Q=["touchmove","touchcancel","touchend","click"].map(A=>[W,A,"delayHide","passiveCapture"]);lt(O,"tooltipTemp",Q)}k(()=>{N(M)},e.delay)}function V(M){s.platform.is.mobile===!0&&(xt(O,"tooltipTemp"),rn(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),k(()=>{S(M)},e.hideDelay)}function U(){if(e.noParentEvent===!0||C.value===null)return;const M=s.platform.is.mobile===!0?[[C.value,"touchstart","delayShow","passive"]]:[[C.value,"mouseenter","delayShow","passive"],[C.value,"mouseleave","delayHide","passive"]];lt(O,"anchor",M)}function X(){if(C.value!==null||e.scrollTarget!==void 0){E.value=yn(C.value,e.scrollTarget);const M=e.noParentEvent===!0?D:S;T(E.value,M)}}function b(){return c.value===!0?r.h("div",{...o,ref:d,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",o.class],style:[o.style,P.value],role:"tooltip"},ge(t.default)):null}function g(){return r.h(r.Transition,h.value,b)}return r.onBeforeUnmount(H),Object.assign(a.proxy,{updatePosition:D}),x}}),xn={xs:18,sm:24,md:32,lg:38,xl:46},kn={size:String};function Cn(e,t=xn){return r.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}const Po="0 0 24 24",Mo=e=>e,En=e=>`ionicons ${e}`,Lo={"mdi-":e=>`mdi ${e}`,"icon-":Mo,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":En,"ion-ios":En,"ion-logo":En,"iconfont ":Mo,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},Vo={o_:"-outlined",r_:"-round",s_:"-sharp"},$o={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},ni=new RegExp("^("+Object.keys(Lo).join("|")+")"),oi=new RegExp("^("+Object.keys(Vo).join("|")+")"),Fo=new RegExp("^("+Object.keys($o).join("|")+")"),ri=/^[Mm]\s?[-+]?\.?\d/,li=/^img:/,ii=/^svguse:/,ai=/^ion-/,si=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,_e=re({name:"QIcon",props:{...kn,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),o=Cn(e),l=r.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),i=r.computed(()=>{let a,s=e.name;if(s==="none"||!s)return{none:!0};if(n.iconMapFn!==null){const u=n.iconMapFn(s);if(u!==void 0)if(u.icon!==void 0){if(s=u.icon,s==="none"||!s)return{none:!0}}else return{cls:u.cls,content:u.content!==void 0?u.content:" "}}if(ri.test(s)===!0){const[u,m=Po]=s.split("|");return{svg:!0,viewBox:m,nodes:u.split("&&").map(y=>{const[v,p,k]=y.split("@@");return r.h("path",{style:p,d:v,transform:k})})}}if(li.test(s)===!0)return{img:!0,src:s.substring(4)};if(ii.test(s)===!0){const[u,m=Po]=s.split("|");return{svguse:!0,src:u.substring(7),viewBox:m}}let d=" ";const c=s.match(ni);if(c!==null)a=Lo[c[1]](s);else if(si.test(s)===!0)a=s;else if(ai.test(s)===!0)a=`ionicons ion-${n.platform.is.ios===!0?"ios":"md"}${s.substring(3)}`;else if(Fo.test(s)===!0){a="notranslate material-symbols";const u=s.match(Fo);u!==null&&(s=s.substring(6),a+=$o[u[1]]),d=s}else{a="notranslate material-icons";const u=s.match(oi);u!==null&&(s=s.substring(2),a+=Vo[u[1]]),d=s}return{cls:a,content:d}});return()=>{const a={class:l.value,style:o.value,"aria-hidden":"true",role:"presentation"};return i.value.none===!0?r.h(e.tag,a,ge(t.default)):i.value.img===!0?r.h(e.tag,a,Re(t.default,[r.h("img",{src:i.value.src})])):i.value.svg===!0?r.h(e.tag,a,Re(t.default,[r.h("svg",{viewBox:i.value.viewBox||"0 0 24 24"},i.value.nodes)])):i.value.svguse===!0?r.h(e.tag,a,Re(t.default,[r.h("svg",{viewBox:i.value.viewBox},[r.h("use",{"xlink:href":i.value.src})])])):(i.value.cls!==void 0&&(a.class+=" "+i.value.cls),r.h(e.tag,a,Re(t.default,[i.value.content])))}}}),ui={size:{type:[String,Number],default:"1em"},color:String};function ci(e){return{cSize:r.computed(()=>e.size in xn?`${xn[e.size]}px`:e.size),classes:r.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const _n=re({name:"QSpinner",props:{...ui,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:n}=ci(e);return()=>r.h("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[r.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function di(e,t=250){let n=!1,o;return function(){return n===!1&&(n=!0,setTimeout(()=>{n=!1},t),o=e.apply(this,arguments)),o}}function Io(e,t,n,o){n.modifiers.stop===!0&&Se(e);const l=n.modifiers.color;let i=n.modifiers.center;i=i===!0||o===!0;const a=document.createElement("span"),s=document.createElement("span"),d=go(e),{left:c,top:u,width:m,height:y}=t.getBoundingClientRect(),v=Math.sqrt(m*m+y*y),p=v/2,k=`${(m-v)/2}px`,h=i?k:`${d.left-c-p}px`,P=`${(y-v)/2}px`,E=i?P:`${d.top-u-p}px`;s.className="q-ripple__inner",gn(s,{height:`${v}px`,width:`${v}px`,transform:`translate3d(${h},${E},0) scale3d(.2,.2,1)`,opacity:0}),a.className=`q-ripple${l?" text-"+l:""}`,a.setAttribute("dir","ltr"),a.appendChild(s),t.appendChild(a);const T=()=>{a.remove(),clearTimeout(B)};n.abort.push(T);let B=setTimeout(()=>{s.classList.add("q-ripple__inner--enter"),s.style.transform=`translate3d(${k},${P},0) scale3d(1,1,1)`,s.style.opacity=.2,B=setTimeout(()=>{s.classList.remove("q-ripple__inner--enter"),s.classList.add("q-ripple__inner--leave"),s.style.opacity=0,B=setTimeout(()=>{a.remove(),n.abort.splice(n.abort.indexOf(T),1)},275)},250)},50)}function zo(e,{modifiers:t,value:n,arg:o}){const l=Object.assign({},e.cfg.ripple,t,n);e.modifiers={early:l.early===!0,stop:l.stop===!0,center:l.center===!0,color:l.color||o,keyCodes:[].concat(l.keyCodes||13)}}const No=Rl({name:"ripple",beforeMount(e,t){const n=t.instance.$.appContext.config.globalProperties.$q.config||{};if(n.ripple===!1)return;const o={cfg:n,enabled:t.value!==!1,modifiers:{},abort:[],start(l){o.enabled===!0&&l.qSkipRipple!==!0&&l.type===(o.modifiers.early===!0?"pointerdown":"click")&&Io(l,e,o,l.qKeyEvent===!0)},keystart:di(l=>{o.enabled===!0&&l.qSkipRipple!==!0&&Oe(l,o.modifiers.keyCodes)===!0&&l.type===`key${o.modifiers.early===!0?"down":"up"}`&&Io(l,e,o,!0)},300)};zo(o,t),e.__qripple=o,lt(o,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const n=e.__qripple;n!==void 0&&(n.enabled=t.value!==!1,n.enabled===!0&&Object(t.value)===t.value&&zo(n,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(n=>{n()}),xt(t,"main"),delete e._qripple)}}),Do={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},fi=Object.keys(Do),mi={align:{type:String,validator:e=>fi.includes(e)}};function hi(e){return r.computed(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${Do[t]}`})}function Ho(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function jo(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function pi(e,t){for(const n in t){const o=t[n],l=e[n];if(typeof o=="string"){if(o!==l)return!1}else if(Array.isArray(l)===!1||l.length!==o.length||o.some((i,a)=>i!==l[a]))return!1}return!0}function Uo(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function gi(e,t){return Array.isArray(e)===!0?Uo(e,t):Array.isArray(t)===!0?Uo(t,e):e===t}function vi(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(gi(e[n],t[n])===!1)return!1;return!0}const Wo={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},yi={...Wo,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Ko({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const n=r.getCurrentInstance(),{props:o,proxy:l,emit:i}=n,a=wo(n),s=r.computed(()=>o.disable!==!0&&o.href!==void 0),d=t===!0?r.computed(()=>a===!0&&o.disable!==!0&&s.value!==!0&&o.to!==void 0&&o.to!==null&&o.to!==""):r.computed(()=>a===!0&&s.value!==!0&&o.to!==void 0&&o.to!==null&&o.to!==""),c=r.computed(()=>d.value===!0?E(o.to):null),u=r.computed(()=>c.value!==null),m=r.computed(()=>s.value===!0||u.value===!0),y=r.computed(()=>o.type==="a"||m.value===!0?"a":o.tag||e||"div"),v=r.computed(()=>s.value===!0?{href:o.href,target:o.target}:u.value===!0?{href:c.value.href,target:o.target}:{}),p=r.computed(()=>{if(u.value===!1)return-1;const{matched:C}=c.value,{length:q}=C,O=C[q-1];if(O===void 0)return-1;const N=l.$route.matched;if(N.length===0)return-1;const S=N.findIndex(jo.bind(null,O));if(S!==-1)return S;const _=Ho(C[q-2]);return q>1&&Ho(O)===_&&N[N.length-1].path!==_?N.findIndex(jo.bind(null,C[q-2])):S}),k=r.computed(()=>u.value===!0&&p.value!==-1&&pi(l.$route.params,c.value.params)),h=r.computed(()=>k.value===!0&&p.value===l.$route.matched.length-1&&vi(l.$route.params,c.value.params)),P=r.computed(()=>u.value===!0?h.value===!0?` ${o.exactActiveClass} ${o.activeClass}`:o.exact===!0?"":k.value===!0?` ${o.activeClass}`:"":"");function E(C){try{return l.$router.resolve(C)}catch{}return null}function T(C,{returnRouterError:q,to:O=o.to,replace:N=o.replace}={}){if(o.disable===!0)return C.preventDefault(),Promise.resolve(!1);if(C.metaKey||C.altKey||C.ctrlKey||C.shiftKey||C.button!==void 0&&C.button!==0||o.target==="_blank")return Promise.resolve(!1);C.preventDefault();const S=l.$router[N===!0?"replace":"push"](O);return q===!0?S:S.then(()=>{}).catch(()=>{})}function B(C){if(u.value===!0){const q=O=>T(C,O);i("click",C,q),C.defaultPrevented!==!0&&q()}else i("click",C)}return{hasRouterLink:u,hasHrefLink:s,hasLink:m,linkTag:y,resolvedLink:c,linkIsActive:k,linkIsExactActive:h,linkClass:P,linkAttrs:v,getLink:E,navigateToRouterLink:T,navigateOnClick:B}}const Qo={none:0,xs:4,sm:8,md:16,lg:24,xl:32},bi={xs:8,sm:10,md:14,lg:20,xl:24},wi=["button","submit","reset"],Si=/[^\s]\/[^\s]/,xi=["flat","outline","push","unelevated"];function ki(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}const Ci={...{...kn,...Wo,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...xi.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:{...mi.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function Ei(e){const t=Cn(e,bi),n=hi(e),{hasRouterLink:o,hasLink:l,linkTag:i,linkAttrs:a,navigateOnClick:s}=Ko({fallbackTag:"button"}),d=r.computed(()=>{const h=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},h,{padding:e.padding.split(/\s+/).map(P=>P in Qo?Qo[P]+"px":P).join(" "),minWidth:"0",minHeight:"0"}):h}),c=r.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),u=r.computed(()=>e.disable!==!0&&e.loading!==!0),m=r.computed(()=>u.value===!0?e.tabindex||0:-1),y=r.computed(()=>ki(e,"standard")),v=r.computed(()=>{const h={tabindex:m.value};return l.value===!0?Object.assign(h,a.value):wi.includes(e.type)===!0&&(h.type=e.type),i.value==="a"?(e.disable===!0?h["aria-disabled"]="true":h.href===void 0&&(h.role="button"),o.value!==!0&&Si.test(e.type)===!0&&(h.type=e.type)):e.disable===!0&&(h.disabled="",h["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(h,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),h}),p=r.computed(()=>{let h;e.color!==void 0?e.flat===!0||e.outline===!0?h=`text-${e.textColor||e.color}`:h=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(h=`text-${e.textColor}`);const P=e.round===!0?"round":`rectangle${c.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${y.value} q-btn--${P}`+(h!==void 0?" "+h:"")+(u.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=r.computed(()=>n.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:p,style:d,innerClasses:k,attributes:v,hasLink:l,linkTag:i,navigateOnClick:s,isActionable:u}}const{passiveCapture:ve}=se;let Ue=null,We=null,Ke=null;const _i=re({name:"QBtn",props:{...Ci,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:n}){const{proxy:o}=r.getCurrentInstance(),{classes:l,style:i,innerClasses:a,attributes:s,hasLink:d,linkTag:c,navigateOnClick:u,isActionable:m}=Ei(e),y=r.ref(null),v=r.ref(null);let p=null,k,h=null;const P=r.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),E=r.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:d.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),T=r.computed(()=>({center:e.round})),B=r.computed(()=>{const R=Math.max(0,Math.min(100,e.percentage));return R>0?{transition:"transform 0.6s",transform:`translateX(${R-100}%)`}:{}}),C=r.computed(()=>{if(e.loading===!0)return{onMousedown:j,onTouchstart:j,onClick:j,onKeydown:j,onKeyup:j};if(m.value===!0){const R={onClick:O,onKeydown:N,onMousedown:_};if(o.$q.platform.has.touch===!0){const H=e.onTouchstart!==void 0?"":"Passive";R[`onTouchstart${H}`]=S}return R}return{onClick:ae}}),q=r.computed(()=>({ref:y,class:"q-btn q-btn-item non-selectable no-outline "+l.value,style:i.value,...s.value,...C.value}));function O(R){if(y.value!==null){if(R!==void 0){if(R.defaultPrevented===!0)return;const H=document.activeElement;if(e.type==="submit"&&H!==document.body&&y.value.contains(H)===!1&&H.contains(y.value)===!1){y.value.focus();const D=()=>{document.removeEventListener("keydown",ae,!0),document.removeEventListener("keyup",D,ve),y.value!==null&&y.value.removeEventListener("blur",D,ve)};document.addEventListener("keydown",ae,!0),document.addEventListener("keyup",D,ve),y.value.addEventListener("blur",D,ve)}}u(R)}}function N(R){y.value!==null&&(n("keydown",R),Oe(R,[13,32])===!0&&We!==y.value&&(We!==null&&x(),R.defaultPrevented!==!0&&(y.value.focus(),We=y.value,y.value.classList.add("q-btn--active"),document.addEventListener("keyup",L,!0),y.value.addEventListener("blur",L,ve)),ae(R)))}function S(R){y.value!==null&&(n("touchstart",R),R.defaultPrevented!==!0&&(Ue!==y.value&&(Ue!==null&&x(),Ue=y.value,p=R.target,p.addEventListener("touchcancel",L,ve),p.addEventListener("touchend",L,ve)),k=!0,h!==null&&clearTimeout(h),h=setTimeout(()=>{h=null,k=!1},200)))}function _(R){y.value!==null&&(R.qSkipRipple=k===!0,n("mousedown",R),R.defaultPrevented!==!0&&Ke!==y.value&&(Ke!==null&&x(),Ke=y.value,y.value.classList.add("q-btn--active"),document.addEventListener("mouseup",L,ve)))}function L(R){if(y.value!==null&&!(R!==void 0&&R.type==="blur"&&document.activeElement===y.value)){if(R!==void 0&&R.type==="keyup"){if(We===y.value&&Oe(R,[13,32])===!0){const H=new MouseEvent("click",R);H.qKeyEvent=!0,R.defaultPrevented===!0&&ye(H),R.cancelBubble===!0&&Se(H),y.value.dispatchEvent(H),ae(R),R.qKeyEvent=!0}n("keyup",R)}x()}}function x(R){const H=v.value;R!==!0&&(Ue===y.value||Ke===y.value)&&H!==null&&H!==document.activeElement&&(H.setAttribute("tabindex",-1),H.focus()),Ue===y.value&&(p!==null&&(p.removeEventListener("touchcancel",L,ve),p.removeEventListener("touchend",L,ve)),Ue=p=null),Ke===y.value&&(document.removeEventListener("mouseup",L,ve),Ke=null),We===y.value&&(document.removeEventListener("keyup",L,!0),y.value!==null&&y.value.removeEventListener("blur",L,ve),We=null),y.value!==null&&y.value.classList.remove("q-btn--active")}function j(R){ae(R),R.qSkipRipple=!0}return r.onBeforeUnmount(()=>{x(!0)}),Object.assign(o,{click:R=>{m.value===!0&&O(R)}}),()=>{let R=[];e.icon!==void 0&&R.push(r.h(_e,{name:e.icon,left:e.stack!==!0&&P.value===!0,role:"img"})),P.value===!0&&R.push(r.h("span",{class:"block"},[e.label])),R=Re(t.default,R),e.iconRight!==void 0&&e.round===!1&&R.push(r.h(_e,{name:e.iconRight,right:e.stack!==!0&&P.value===!0,role:"img"}));const H=[r.h("span",{class:"q-focus-helper",ref:v})];return e.loading===!0&&e.percentage!==void 0&&H.push(r.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[r.h("span",{class:"q-btn__progress-indicator fit block",style:B.value})])),H.push(r.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+a.value},R)),e.loading!==null&&H.push(r.h(r.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[r.h("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[r.h(_n)])]:null)),r.withDirectives(r.h(c.value,q.value,H),[[No,E.value,void 0,T.value]])}}}),Ti=r.defineComponent({__name:"AppButton",props:{disable:{type:[Boolean,Function]},tooltip:{},uppercase:{type:Boolean},xSmall:{type:Boolean},small:{type:Boolean},large:{type:Boolean},fullWidth:{type:Boolean},wrap:{type:Boolean},largeIcon:{type:Boolean},modelValue:{type:Boolean},badge:{type:[String,Boolean,Number]},badgeColor:{},badgeInline:{type:Boolean},link:{type:Boolean},size:{},type:{},to:{},replace:{type:Boolean},href:{},target:{},label:{},icon:{},iconRight:{},outline:{type:Boolean},flat:{type:Boolean},unelevated:{type:Boolean},rounded:{type:Boolean},push:{type:Boolean},square:{type:Boolean},glossy:{type:Boolean},fab:{type:Boolean},fabMini:{type:Boolean},padding:{},color:{},textColor:{},noCaps:{type:Boolean},noWrap:{type:Boolean},dense:{type:Boolean},ripple:{type:Boolean},tabindex:{},align:{},stack:{type:Boolean},stretch:{type:Boolean},loading:{type:Boolean},round:{type:Boolean},percentage:{},darkPercentage:{type:Boolean}},emits:["update:modelValue","click"],setup(e,{emit:t}){const n=e,o=t;function l(s){o("click",s),o("update:modelValue",!n.modelValue)}const i=r.computed(()=>n.badge===void 0||n.badge===!1||n.badge===!0||n.badge===""?"":n.badge),a=r.computed(()=>typeof n.disable=="function"?n.disable():n.disable);return(s,d)=>(r.openBlock(),r.createBlock(_i,r.mergeProps(s.$props,{class:[[s.$style.wrapper],"hover-bg-secondary hover-text-black"],disable:a.value,"no-caps":!s.uppercase,"no-wrap":!s.wrap,onClick:l}),{default:r.withCtx(()=>[r.renderSlot(s.$slots,"default"),s.badge?(r.openBlock(),r.createBlock(Pl,{key:0,style:{padding:"6px",top:"-10px",right:"-10px","font-size":"12px"},color:s.badgeColor,floating:!s.badgeInline,rounded:!0},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(i.value),1)]),_:1},8,["color","floating"])):r.createCommentVNode("",!0),s.tooltip?(r.openBlock(),r.createBlock(ti,{key:1,class:"text-body2",delay:400},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(s.tooltip),1)]),_:1})):r.createCommentVNode("",!0)]),_:3},16,["class","disable","no-caps","no-wrap"]))}}),Ri={wrapper:"_wrapper_1g76t_1"},ut=(e,t)=>{const n=e.__vccOpts||e;for(const[o,l]of t)n[o]=l;return n},Bi=ut(Ti,[["__cssModules",{$style:Ri}]]);let Tn,At=0;const ue=new Array(256);for(let e=0;e<256;e++)ue[e]=(e+256).toString(16).substring(1);const qi=(()=>{const e=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(e!==void 0){if(e.randomBytes!==void 0)return e.randomBytes;if(e.getRandomValues!==void 0)return t=>{const n=new Uint8Array(t);return e.getRandomValues(n),n}}return t=>{const n=[];for(let o=t;o>0;o--)n.push(Math.floor(Math.random()*256));return n}})(),Jo=4096;function Rn(){(Tn===void 0||At+16>Jo)&&(At=0,Tn=qi(Jo));const e=Array.prototype.slice.call(Tn,At,At+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,ue[e[0]]+ue[e[1]]+ue[e[2]]+ue[e[3]]+"-"+ue[e[4]]+ue[e[5]]+"-"+ue[e[6]]+ue[e[7]]+"-"+ue[e[8]]+ue[e[9]]+"-"+ue[e[10]]+ue[e[11]]+ue[e[12]]+ue[e[13]]+ue[e[14]]+ue[e[15]]}function Ai(e){return e??null}function Xo(e,t){return e??(t===!0?`f_${Rn()}`:null)}function Oi({getValue:e,required:t=!0}={}){if(Ae.value===!0){const n=e!==void 0?r.ref(Ai(e())):r.ref(null);return t===!0&&n.value===null&&r.onMounted(()=>{n.value=`f_${Rn()}`}),e!==void 0&&r.watch(e,o=>{n.value=Xo(o,t)}),n}return e!==void 0?r.computed(()=>Xo(e(),t)):r.ref(`f_${Rn()}`)}const Yo=/^on[A-Z]/;function Pi(){const{attrs:e,vnode:t}=r.getCurrentInstance(),n={listeners:r.ref({}),attributes:r.ref({})};function o(){const l={},i={};for(const a in e)a!=="class"&&a!=="style"&&Yo.test(a)===!1&&(l[a]=e[a]);for(const a in t.props)Yo.test(a)===!0&&(i[a]=t.props[a]);n.attributes.value=l,n.listeners.value=i}return r.onBeforeUpdate(o),o(),n}const Ot={dark:{type:Boolean,default:null}};function Pt(e,t){return r.computed(()=>e.dark===null?t.dark.isActive:e.dark)}const Bn="_q_l_",Zo="_q_pc_",Mi="_q_fo_";function Te(){}function Li({validate:e,resetValidation:t,requiresQForm:n}){const o=r.inject(Mi,!1);if(o!==!1){const{props:l,proxy:i}=r.getCurrentInstance();Object.assign(i,{validate:e,resetValidation:t}),r.watch(()=>l.disable,a=>{a===!0?(typeof t=="function"&&t(),o.unbindComponent(i)):o.bindComponent(i)}),r.onMounted(()=>{l.disable!==!0&&o.bindComponent(i)}),r.onBeforeUnmount(()=>{l.disable!==!0&&o.unbindComponent(i)})}else n===!0&&console.error("Parent QForm not found on useFormChild()!")}const Go=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,er=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,tr=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Mt=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,Lt=/^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)\)$/,qn={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=>Go.test(e),hexaColor:e=>er.test(e),hexOrHexaColor:e=>tr.test(e),rgbColor:e=>Mt.test(e),rgbaColor:e=>Lt.test(e),rgbOrRgbaColor:e=>Mt.test(e)||Lt.test(e),hexOrRgbColor:e=>Go.test(e)||Mt.test(e),hexaOrRgbaColor:e=>er.test(e)||Lt.test(e),anyColor:e=>tr.test(e)||Mt.test(e)||Lt.test(e)};function nr(e,t=250,n){let o=null;function l(){const i=arguments,a=()=>{o=null,e.apply(this,i)};o!==null&&clearTimeout(o),o=setTimeout(a,t)}return l.cancel=()=>{o!==null&&clearTimeout(o)},l}const Vi=[!0,!1,"ondemand"],$i={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>Vi.includes(e)}};function Fi(e,t){const{props:n,proxy:o}=r.getCurrentInstance(),l=r.ref(!1),i=r.ref(null),a=r.ref(!1);Li({validate:k,resetValidation:p});let s=0,d;const c=r.computed(()=>n.rules!==void 0&&n.rules!==null&&n.rules.length!==0),u=r.computed(()=>n.disable!==!0&&c.value===!0&&t.value===!1),m=r.computed(()=>n.error===!0||l.value===!0),y=r.computed(()=>typeof n.errorMessage=="string"&&n.errorMessage.length!==0?n.errorMessage:i.value);r.watch(()=>n.modelValue,()=>{a.value=!0,u.value===!0&&n.lazyRules===!1&&h()});function v(){n.lazyRules!=="ondemand"&&u.value===!0&&a.value===!0&&h()}r.watch(()=>n.reactiveRules,P=>{P===!0?d===void 0&&(d=r.watch(()=>n.rules,v,{immediate:!0,deep:!0})):d!==void 0&&(d(),d=void 0)},{immediate:!0}),r.watch(()=>n.lazyRules,v),r.watch(e,P=>{P===!0?a.value=!0:u.value===!0&&n.lazyRules!=="ondemand"&&h()});function p(){s++,t.value=!1,a.value=!1,l.value=!1,i.value=null,h.cancel()}function k(P=n.modelValue){if(n.disable===!0||c.value===!1)return!0;const E=++s,T=t.value!==!0?()=>{a.value=!0}:()=>{},B=(q,O)=>{q===!0&&T(),l.value=q,i.value=O||null,t.value=!1},C=[];for(let q=0;q<n.rules.length;q++){const O=n.rules[q];let N;if(typeof O=="function"?N=O(P,qn):typeof O=="string"&&qn[O]!==void 0&&(N=qn[O](P)),N===!1||typeof N=="string")return B(!0,N),!1;N!==!0&&N!==void 0&&C.push(N)}return C.length===0?(B(!1),!0):(t.value=!0,Promise.all(C).then(q=>{if(q===void 0||Array.isArray(q)===!1||q.length===0)return E===s&&B(!1),!0;const O=q.find(N=>N===!1||typeof N=="string");return E===s&&B(O!==void 0,O),O===void 0},q=>(E===s&&(console.error(q),B(!0)),!1)))}const h=nr(k,0);return r.onBeforeUnmount(()=>{d!==void 0&&d(),h.cancel()}),Object.assign(o,{resetValidation:p,validate:k}),Ee(o,"hasError",()=>m.value),{isDirtyModel:a,hasRules:c,hasError:m,errorMessage:y,validate:k,resetValidation:p}}function ct(e){return e!=null&&(""+e).length!==0}const Vt={...{...Ot,...$i,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},maxlength:[Number,String]},An=["update:modelValue","clear","focus","blur"];function On({requiredForAttr:e=!0,tagProp:t,changeEvent:n=!1}={}){const{props:o,proxy:l}=r.getCurrentInstance(),i=Pt(o,l.$q),a=Oi({required:e,getValue:()=>o.for});return{requiredForAttr:e,changeEvent:n,tag:t===!0?r.computed(()=>o.tag):{value:"label"},isDark:i,editable:r.computed(()=>o.disable!==!0&&o.readonly!==!0),innerLoading:r.ref(!1),focused:r.ref(!1),hasPopupOpen:!1,splitAttrs:Pi(),targetUid:a,rootRef:r.ref(null),targetRef:r.ref(null),controlRef:r.ref(null)}}function Pn(e){const{props:t,emit:n,slots:o,attrs:l,proxy:i}=r.getCurrentInstance(),{$q:a}=i;let s=null;e.hasValue===void 0&&(e.hasValue=r.computed(()=>ct(t.modelValue))),e.emitValue===void 0&&(e.emitValue=V=>{n("update:modelValue",V)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:S,onFocusout:_}),Object.assign(e,{clearValue:L,onControlFocusin:S,onControlFocusout:_,focus:O}),e.computedCounter===void 0&&(e.computedCounter=r.computed(()=>{if(t.counter!==!1){const V=typeof t.modelValue=="string"||typeof t.modelValue=="number"?(""+t.modelValue).length:Array.isArray(t.modelValue)===!0?t.modelValue.length:0,U=t.maxlength!==void 0?t.maxlength:t.maxValues;return V+(U!==void 0?" / "+U:"")}}));const{isDirtyModel:d,hasRules:c,hasError:u,errorMessage:m,resetValidation:y}=Fi(e.focused,e.innerLoading),v=e.floatingLabel!==void 0?r.computed(()=>t.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):r.computed(()=>t.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),p=r.computed(()=>t.bottomSlots===!0||t.hint!==void 0||c.value===!0||t.counter===!0||t.error!==null),k=r.computed(()=>t.filled===!0?"filled":t.outlined===!0?"outlined":t.borderless===!0?"borderless":t.standout?"standout":"standard"),h=r.computed(()=>`q-field row no-wrap items-start q-field--${k.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(t.rounded===!0?" q-field--rounded":"")+(t.square===!0?" q-field--square":"")+(v.value===!0?" q-field--float":"")+(E.value===!0?" q-field--labeled":"")+(t.dense===!0?" q-field--dense":"")+(t.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(e.isDark.value===!0?" q-field--dark":"")+(e.getControl===void 0?" q-field--auto-height":"")+(e.focused.value===!0?" q-field--focused":"")+(u.value===!0?" q-field--error":"")+(u.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(t.hideBottomSpace!==!0&&p.value===!0?" q-field--with-bottom":"")+(t.disable===!0?" q-field--disabled":t.readonly===!0?" q-field--readonly":"")),P=r.computed(()=>"q-field__control relative-position row no-wrap"+(t.bgColor!==void 0?` bg-${t.bgColor}`:"")+(u.value===!0?" text-negative":typeof t.standout=="string"&&t.standout.length!==0&&e.focused.value===!0?` ${t.standout}`:t.color!==void 0?` text-${t.color}`:"")),E=r.computed(()=>t.labelSlot===!0||t.label!==void 0),T=r.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(t.labelColor!==void 0&&u.value!==!0?` text-${t.labelColor}`:"")),B=r.computed(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:v.value,modelValue:t.modelValue,emitValue:e.emitValue})),C=r.computed(()=>{const V={};return e.targetUid.value&&(V.for=e.targetUid.value),t.disable===!0&&(V["aria-disabled"]="true"),V});function q(){const V=document.activeElement;let U=e.targetRef!==void 0&&e.targetRef.value;U&&(V===null||V.id!==e.targetUid.value)&&(U.hasAttribute("tabindex")===!0||(U=U.querySelector("[tabindex]")),U&&U!==V&&U.focus({preventScroll:!0}))}function O(){kt(q)}function N(){Nl(q);const V=document.activeElement;V!==null&&e.rootRef.value.contains(V)&&V.blur()}function S(V){s!==null&&(clearTimeout(s),s=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,n("focus",V))}function _(V,U){s!==null&&clearTimeout(s),s=setTimeout(()=>{s=null,!(document.hasFocus()===!0&&(e.hasPopupOpen===!0||e.controlRef===void 0||e.controlRef.value===null||e.controlRef.value.contains(document.activeElement)!==!1))&&(e.focused.value===!0&&(e.focused.value=!1,n("blur",V)),U!==void 0&&U())})}function L(V){ae(V),a.platform.is.mobile!==!0?(e.targetRef!==void 0&&e.targetRef.value||e.rootRef.value).focus():e.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),t.type==="file"&&(e.inputRef.value.value=null),n("update:modelValue",null),e.changeEvent===!0&&n("change",null),n("clear",t.modelValue),r.nextTick(()=>{const U=d.value;y(),d.value=U})}function x(V){[13,32].includes(V.keyCode)&&L(V)}function j(){const V=[];return o.prepend!==void 0&&V.push(r.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:ye},o.prepend())),V.push(r.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},R())),u.value===!0&&t.noErrorIcon===!1&&V.push(D("error",[r.h(_e,{name:a.iconSet.field.error,color:"negative"})])),t.loading===!0||e.innerLoading.value===!0?V.push(D("inner-loading-append",o.loading!==void 0?o.loading():[r.h(_n,{color:t.color})])):t.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&V.push(D("inner-clearable-append",[r.h(_e,{class:"q-field__focusable-action",name:t.clearIcon||a.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":a.lang.label.clear,onKeyup:x,onClick:L})])),o.append!==void 0&&V.push(r.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:ye},o.append())),e.getInnerAppend!==void 0&&V.push(D("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&V.push(e.getControlChild()),V}function R(){const V=[];return t.prefix!==void 0&&t.prefix!==null&&V.push(r.h("div",{class:"q-field__prefix no-pointer-events row items-center"},t.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&V.push(e.getShadowControl()),e.getControl!==void 0?V.push(e.getControl()):o.rawControl!==void 0?V.push(o.rawControl()):o.control!==void 0&&V.push(r.h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0},o.control(B.value))),E.value===!0&&V.push(r.h("div",{class:T.value},ge(o.label,t.label))),t.suffix!==void 0&&t.suffix!==null&&V.push(r.h("div",{class:"q-field__suffix no-pointer-events row items-center"},t.suffix)),V.concat(ge(o.default))}function H(){let V,U;u.value===!0?m.value!==null?(V=[r.h("div",{role:"alert"},m.value)],U=`q--slot-error-${m.value}`):(V=ge(o.error),U="q--slot-error"):(t.hideHint!==!0||e.focused.value===!0)&&(t.hint!==void 0?(V=[r.h("div",t.hint)],U=`q--slot-hint-${t.hint}`):(V=ge(o.hint),U="q--slot-hint"));const X=t.counter===!0||o.counter!==void 0;if(t.hideBottomSpace===!0&&X===!1&&V===void 0)return;const b=r.h("div",{key:U,class:"q-field__messages col"},V);return r.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(t.hideBottomSpace!==!0?"animated":"stale"),onClick:ye},[t.hideBottomSpace===!0?b:r.h(r.Transition,{name:"q-transition--field-message"},()=>b),X===!0?r.h("div",{class:"q-field__counter"},o.counter!==void 0?o.counter():e.computedCounter.value):null])}function D(V,U){return U===null?null:r.h("div",{key:V,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},U)}let K=!1;return r.onDeactivated(()=>{K=!0}),r.onActivated(()=>{K===!0&&t.autofocus===!0&&i.focus()}),t.autofocus===!0&&r.onMounted(()=>{i.focus()}),r.onBeforeUnmount(()=>{s!==null&&clearTimeout(s)}),Object.assign(i,{focus:O,blur:N}),function(){const U=e.getControl===void 0&&o.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0,...C.value}:C.value;return r.h(e.tag.value,{ref:e.rootRef,class:[h.value,l.class],style:l.style,...U},[o.before!==void 0?r.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:ye},o.before()):null,r.h("div",{class:"q-field__inner relative-position col self-stretch"},[r.h("div",{ref:e.controlRef,class:P.value,tabindex:-1,...e.controlEvents},j()),p.value===!0?H():null]),o.after!==void 0?r.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:ye},o.after()):null])}}const or={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},$t={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleLowerCase()}},rr=Object.keys($t);rr.forEach(e=>{$t[e].regex=new RegExp($t[e].pattern)});const Ii=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+rr.join("")+"])|(.)","g"),lr=/[.*+?^${}()|[\]\\]/g,le="",zi={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function Ni(e,t,n,o){let l,i,a,s,d,c;const u=r.ref(null),m=r.ref(v());function y(){return e.autogrow===!0||["textarea","text","search","url","tel","password"].includes(e.type)}r.watch(()=>e.type+e.autogrow,k),r.watch(()=>e.mask,S=>{if(S!==void 0)h(m.value,!0);else{const _=O(m.value);k(),e.modelValue!==_&&t("update:modelValue",_)}}),r.watch(()=>e.fillMask+e.reverseFillMask,()=>{u.value===!0&&h(m.value,!0)}),r.watch(()=>e.unmaskedValue,()=>{u.value===!0&&h(m.value)});function v(){if(k(),u.value===!0){const S=C(O(e.modelValue));return e.fillMask!==!1?N(S):S}return e.modelValue}function p(S){if(S<l.length)return l.slice(-S);let _="",L=l;const x=L.indexOf(le);if(x!==-1){for(let j=S-L.length;j>0;j--)_+=le;L=L.slice(0,x)+_+L.slice(x)}return L}function k(){if(u.value=e.mask!==void 0&&e.mask.length!==0&&y(),u.value===!1){s=void 0,l="",i="";return}const S=or[e.mask]===void 0?e.mask:or[e.mask],_=typeof e.fillMask=="string"&&e.fillMask.length!==0?e.fillMask.slice(0,1):"_",L=_.replace(lr,"\\$&"),x=[],j=[],R=[];let H=e.reverseFillMask===!0,D="",K="";S.replace(Ii,(b,g,M,W,Q)=>{if(W!==void 0){const A=$t[W];R.push(A),K=A.negate,H===!0&&(j.push("(?:"+K+"+)?("+A.pattern+"+)?(?:"+K+"+)?("+A.pattern+"+)?"),H=!1),j.push("(?:"+K+"+)?("+A.pattern+")?")}else if(M!==void 0)D="\\"+(M==="\\"?"":M),R.push(M),x.push("([^"+D+"]+)?"+D+"?");else{const A=g!==void 0?g:Q;D=A==="\\"?"\\\\\\\\":A.replace(lr,"\\\\$&"),R.push(A),x.push("([^"+D+"]+)?"+D+"?")}});const V=new RegExp("^"+x.join("")+"("+(D===""?".":"[^"+D+"]")+"+)?"+(D===""?"":"["+D+"]*")+"$"),U=j.length-1,X=j.map((b,g)=>g===0&&e.reverseFillMask===!0?new RegExp("^"+L+"*"+b):g===U?new RegExp("^"+b+"("+(K===""?".":K)+"+)?"+(e.reverseFillMask===!0?"$":L+"*")):new RegExp("^"+b));a=R,s=b=>{const g=V.exec(e.reverseFillMask===!0?b:b.slice(0,R.length+1));g!==null&&(b=g.slice(1).join(""));const M=[],W=X.length;for(let Q=0,A=b;Q<W;Q++){const z=X[Q].exec(A);if(z===null)break;A=A.slice(z.shift().length),M.push(...z)}return M.length!==0?M.join(""):b},l=R.map(b=>typeof b=="string"?b:le).join(""),i=l.split(le).join(_)}function h(S,_,L){const x=o.value,j=x.selectionEnd,R=x.value.length-j,H=O(S);_===!0&&k();const D=C(H),K=e.fillMask!==!1?N(D):D,V=m.value!==K;x.value!==K&&(x.value=K),V===!0&&(m.value=K),document.activeElement===x&&r.nextTick(()=>{if(K===i){const X=e.reverseFillMask===!0?i.length:0;x.setSelectionRange(X,X,"forward");return}if(L==="insertFromPaste"&&e.reverseFillMask!==!0){const X=x.selectionEnd;let b=j-1;for(let g=d;g<=b&&g<X;g++)l[g]!==le&&b++;E.right(x,b);return}if(["deleteContentBackward","deleteContentForward"].indexOf(L)!==-1){const X=e.reverseFillMask===!0?j===0?K.length>D.length?1:0:Math.max(0,K.length-(K===i?0:Math.min(D.length,R)+1))+1:j;x.setSelectionRange(X,X,"forward");return}if(e.reverseFillMask===!0)if(V===!0){const X=Math.max(0,K.length-(K===i?0:Math.min(D.length,R+1)));X===1&&j===1?x.setSelectionRange(X,X,"forward"):E.rightReverse(x,X)}else{const X=K.length-R;x.setSelectionRange(X,X,"backward")}else if(V===!0){const X=Math.max(0,l.indexOf(le),Math.min(D.length,j)-1);E.right(x,X)}else{const X=j-1;E.right(x,X)}});const U=e.unmaskedValue===!0?O(K):K;String(e.modelValue)!==U&&(e.modelValue!==null||U!=="")&&n(U,!0)}function P(S,_,L){const x=C(O(S.value));_=Math.max(0,l.indexOf(le),Math.min(x.length,_)),d=_,S.setSelectionRange(_,L,"forward")}const E={left(S,_){const L=l.slice(_-1).indexOf(le)===-1;let x=Math.max(0,_-1);for(;x>=0;x--)if(l[x]===le){_=x,L===!0&&_++;break}if(x<0&&l[_]!==void 0&&l[_]!==le)return E.right(S,0);_>=0&&S.setSelectionRange(_,_,"backward")},right(S,_){const L=S.value.length;let x=Math.min(L,_+1);for(;x<=L;x++)if(l[x]===le){_=x;break}else l[x-1]===le&&(_=x);if(x>L&&l[_-1]!==void 0&&l[_-1]!==le)return E.left(S,L);S.setSelectionRange(_,_,"forward")},leftReverse(S,_){const L=p(S.value.length);let x=Math.max(0,_-1);for(;x>=0;x--)if(L[x-1]===le){_=x;break}else if(L[x]===le&&(_=x,x===0))break;if(x<0&&L[_]!==void 0&&L[_]!==le)return E.rightReverse(S,0);_>=0&&S.setSelectionRange(_,_,"backward")},rightReverse(S,_){const L=S.value.length,x=p(L),j=x.slice(0,_+1).indexOf(le)===-1;let R=Math.min(L,_+1);for(;R<=L;R++)if(x[R-1]===le){_=R,_>0&&j===!0&&_--;break}if(R>L&&x[_-1]!==void 0&&x[_-1]!==le)return E.leftReverse(S,L);S.setSelectionRange(_,_,"forward")}};function T(S){t("click",S),c=void 0}function B(S){if(t("keydown",S),an(S)===!0||S.altKey===!0)return;const _=o.value,L=_.selectionStart,x=_.selectionEnd;if(S.shiftKey||(c=void 0),S.keyCode===37||S.keyCode===39){S.shiftKey&&c===void 0&&(c=_.selectionDirection==="forward"?L:x);const j=E[(S.keyCode===39?"right":"left")+(e.reverseFillMask===!0?"Reverse":"")];if(S.preventDefault(),j(_,c===L?x:L),S.shiftKey){const R=_.selectionStart;_.setSelectionRange(Math.min(c,R),Math.max(c,R),"forward")}}else S.keyCode===8&&e.reverseFillMask!==!0&&L===x?(E.left(_,L),_.setSelectionRange(_.selectionStart,x,"backward")):S.keyCode===46&&e.reverseFillMask===!0&&L===x&&(E.rightReverse(_,x),_.setSelectionRange(L,_.selectionEnd,"forward"))}function C(S){if(S==null||S==="")return"";if(e.reverseFillMask===!0)return q(S);const _=a;let L=0,x="";for(let j=0;j<_.length;j++){const R=S[L],H=_[j];if(typeof H=="string")x+=H,R===H&&L++;else if(R!==void 0&&H.regex.test(R))x+=H.transform!==void 0?H.transform(R):R,L++;else return x}return x}function q(S){const _=a,L=l.indexOf(le);let x=S.length-1,j="";for(let R=_.length-1;R>=0&&x!==-1;R--){const H=_[R];let D=S[x];if(typeof H=="string")j=H+j,D===H&&x--;else if(D!==void 0&&H.regex.test(D))do j=(H.transform!==void 0?H.transform(D):D)+j,x--,D=S[x];while(L===R&&D!==void 0&&H.regex.test(D));else return j}return j}function O(S){return typeof S!="string"||s===void 0?typeof S=="number"?s(""+S):S:s(S)}function N(S){return i.length-S.length<=0?S:e.reverseFillMask===!0&&S.length!==0?i.slice(0,-S.length)+S:S+i.slice(S.length)}return{innerValue:m,hasMask:u,moveCursorForPaste:P,updateMaskValue:h,onMaskedKeydown:B,onMaskedClick:T}}const ir={name:String};function ar(e){return r.computed(()=>e.name||e.for)}function Di(e,t){function n(){const o=e.modelValue;try{const l="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(o)===o&&("length"in o?Array.from(o):[o]).forEach(i=>{l.items.add(i)}),{files:l.files}}catch{return{files:void 0}}}return r.computed(()=>{if(e.type==="file")return n()})}const Hi=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,ji=/[\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,Ui=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,Wi=/[a-z0-9_ -]$/i;function sr(e){return function(n){if(n.type==="compositionend"||n.type==="change"){if(n.target.qComposing!==!0)return;n.target.qComposing=!1,e(n)}else n.type==="compositionupdate"&&n.target.qComposing!==!0&&typeof n.data=="string"&&(me.is.firefox===!0?Wi.test(n.data)===!1:Hi.test(n.data)===!0||ji.test(n.data)===!0||Ui.test(n.data)===!0)===!0&&(n.target.qComposing=!0)}}const Ki=re({name:"QInput",inheritAttrs:!1,props:{...Vt,...zi,...ir,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...An,"paste","change","keydown","click","animationend"],setup(e,{emit:t,attrs:n}){const{proxy:o}=r.getCurrentInstance(),{$q:l}=o,i={};let a=NaN,s,d,c=null,u;const m=r.ref(null),y=ar(e),{innerValue:v,hasMask:p,moveCursorForPaste:k,updateMaskValue:h,onMaskedKeydown:P,onMaskedClick:E}=Ni(e,t,D,m),T=Di(e),B=r.computed(()=>ct(v.value)),C=sr(R),q=On({changeEvent:!0}),O=r.computed(()=>e.type==="textarea"||e.autogrow===!0),N=r.computed(()=>O.value===!0||["text","search","url","tel","password"].includes(e.type)),S=r.computed(()=>{const g={...q.splitAttrs.listeners.value,onInput:R,onPaste:j,onChange:V,onBlur:U,onFocus:Se};return g.onCompositionstart=g.onCompositionupdate=g.onCompositionend=C,p.value===!0&&(g.onKeydown=P,g.onClick=E),e.autogrow===!0&&(g.onAnimationend=H),g}),_=r.computed(()=>{const g={tabindex:0,"data-autofocus":e.autofocus===!0||void 0,rows:e.type==="textarea"?6:void 0,"aria-label":e.label,name:y.value,...q.splitAttrs.attributes.value,id:q.targetUid.value,maxlength:e.maxlength,disabled:e.disable===!0,readonly:e.readonly===!0};return O.value===!1&&(g.type=e.type),e.autogrow===!0&&(g.rows=1),g});r.watch(()=>e.type,()=>{m.value&&(m.value.value=e.modelValue)}),r.watch(()=>e.modelValue,g=>{if(p.value===!0){if(d===!0&&(d=!1,String(g)===a))return;h(g)}else v.value!==g&&(v.value=g,e.type==="number"&&i.hasOwnProperty("value")===!0&&(s===!0?s=!1:delete i.value));e.autogrow===!0&&r.nextTick(K)}),r.watch(()=>e.autogrow,g=>{g===!0?r.nextTick(K):m.value!==null&&n.rows>0&&(m.value.style.height="auto")}),r.watch(()=>e.dense,()=>{e.autogrow===!0&&r.nextTick(K)});function L(){kt(()=>{const g=document.activeElement;m.value!==null&&m.value!==g&&(g===null||g.id!==q.targetUid.value)&&m.value.focus({preventScroll:!0})})}function x(){m.value!==null&&m.value.select()}function j(g){if(p.value===!0&&e.reverseFillMask!==!0){const M=g.target;k(M,M.selectionStart,M.selectionEnd)}t("paste",g)}function R(g){if(!g||!g.target)return;if(e.type==="file"){t("update:modelValue",g.target.files);return}const M=g.target.value;if(g.target.qComposing===!0){i.value=M;return}if(p.value===!0)h(M,!1,g.inputType);else if(D(M),N.value===!0&&g.target===document.activeElement){const{selectionStart:W,selectionEnd:Q}=g.target;W!==void 0&&Q!==void 0&&r.nextTick(()=>{g.target===document.activeElement&&M.indexOf(g.target.value)===0&&g.target.setSelectionRange(W,Q)})}e.autogrow===!0&&K()}function H(g){t("animationend",g),K()}function D(g,M){u=()=>{c=null,e.type!=="number"&&i.hasOwnProperty("value")===!0&&delete i.value,e.modelValue!==g&&a!==g&&(a=g,M===!0&&(d=!0),t("update:modelValue",g),r.nextTick(()=>{a===g&&(a=NaN)})),u=void 0},e.type==="number"&&(s=!0,i.value=g),e.debounce!==void 0?(c!==null&&clearTimeout(c),i.value=g,c=setTimeout(u,e.debounce)):u()}function K(){requestAnimationFrame(()=>{const g=m.value;if(g!==null){const M=g.parentNode.style,{scrollTop:W}=g,{overflowY:Q,maxHeight:A}=l.platform.is.firefox===!0?{}:window.getComputedStyle(g),z=Q!==void 0&&Q!=="scroll";z===!0&&(g.style.overflowY="hidden"),M.marginBottom=g.scrollHeight-1+"px",g.style.height="1px",g.style.height=g.scrollHeight+"px",z===!0&&(g.style.overflowY=parseInt(A,10)<g.scrollHeight?"auto":"hidden"),M.marginBottom="",g.scrollTop=W}})}function V(g){C(g),c!==null&&(clearTimeout(c),c=null),u!==void 0&&u(),t("change",g.target.value)}function U(g){g!==void 0&&Se(g),c!==null&&(clearTimeout(c),c=null),u!==void 0&&u(),s=!1,d=!1,delete i.value,e.type!=="file"&&setTimeout(()=>{m.value!==null&&(m.value.value=v.value!==void 0?v.value:"")})}function X(){return i.hasOwnProperty("value")===!0?i.value:v.value!==void 0?v.value:""}r.onBeforeUnmount(()=>{U()}),r.onMounted(()=>{e.autogrow===!0&&K()}),Object.assign(q,{innerValue:v,fieldClass:r.computed(()=>`q-${O.value===!0?"textarea":"input"}`+(e.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:r.computed(()=>e.type!=="file"&&typeof e.shadowText=="string"&&e.shadowText.length!==0),inputRef:m,emitValue:D,hasValue:B,floatingLabel:r.computed(()=>B.value===!0&&(e.type!=="number"||isNaN(v.value)===!1)||ct(e.displayValue)),getControl:()=>r.h(O.value===!0?"textarea":"input",{ref:m,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,..._.value,...S.value,...e.type!=="file"?{value:X()}:T.value}),getShadowControl:()=>r.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(O.value===!0?"":" text-no-wrap")},[r.h("span",{class:"invisible"},X()),r.h("span",e.shadowText)])});const b=Pn(q);return Object.assign(o,{focus:L,select:x,getNativeElement:()=>m.value}),Ee(o,"nativeEl",()=>m.value),b}}),Qi=ut(r.defineComponent({__name:"AppInput",props:{field:{type:Boolean},required:{type:Boolean},datePicker:{type:Boolean},timePicker:{type:Boolean},dateLocale:{},withIcon:{type:Boolean},iconName:{},iconColor:{},withButton:{type:Boolean},buttonIcon:{},buttonTooltip:{},clearTooltip:{},withArrow:{type:Boolean},name:{},mask:{},fillMask:{type:[Boolean,String]},reverseFillMask:{type:Boolean},unmaskedValue:{type:Boolean},modelValue:{default:""},error:{type:Boolean,default:void 0},errorMessage:{},noErrorIcon:{type:Boolean},rules:{},reactiveRules:{type:Boolean},lazyRules:{type:[Boolean,String]},label:{},stackLabel:{type:Boolean},hint:{},hideHint:{type:Boolean},prefix:{},suffix:{},labelColor:{},color:{},bgColor:{},dark:{type:Boolean},loading:{type:Boolean},clearable:{type:Boolean},clearIcon:{},filled:{type:Boolean},outlined:{type:Boolean,default:!0},borderless:{type:Boolean},bordered:{type:Boolean},standout:{type:[Boolean,String]},labelSlot:{type:Boolean},bottomSlots:{type:Boolean},hideBottomSpace:{type:Boolean},counter:{type:Boolean},rounded:{type:Boolean},square:{type:Boolean},dense:{type:Boolean,default:!0},itemAligned:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},autofocus:{type:Boolean},for:{},shadowText:{},type:{},debounce:{},maxlength:{},autogrow:{type:Boolean},inputClass:{},inputStyle:{},onClear:{},"onUpdate:modelValue":{},onFocus:{},onBlur:{},onClick:{}},emits:["update:modelValue","button-click","clear","focus","blur","click"],setup(e,{emit:t}){const n=e,o=t,l=r.computed({get:()=>n.modelValue!==null&&n.modelValue!==void 0&&n.type==="number"?+n.modelValue:n.modelValue,set:a=>o("update:modelValue",n.type==="number"?+a:a)}),i=r.computed(()=>({"--dense":n.dense,"--bordered":n.bordered}));return(a,s)=>(r.openBlock(),r.createBlock(Ki,{modelValue:l.value,"onUpdate:modelValue":s[0]||(s[0]=d=>l.value=d),standout:"",outlined:"",clearable:"",dense:"","bg-color":"white",class:r.normalizeClass([a.$style["app-input"],i.value]),type:a.type,readonly:a.readonly||a.field,placeholder:a.label},{prepend:r.withCtx(()=>[r.createVNode(_e,null,{default:r.withCtx(()=>s[1]||(s[1]=[r.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[r.createElementVNode("path",{d:"M11.5 21C16.7467 21 21 16.7467 21 11.5C21 6.25329 16.7467 2 11.5 2C6.25329 2 2 6.25329 2 11.5C2 16.7467 6.25329 21 11.5 21Z",stroke:"#404650","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),r.createElementVNode("path",{d:"M22 22L20 20",stroke:"#3F8CFF","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),_:1})]),_:1},8,["modelValue","class","type","readonly","placeholder"]))}}),[["__cssModules",{$style:{appInput:"_app-input_8jwo9_1"}}]]),Ji=re({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),o=r.inject(Bn,Te);if(o===Te)return console.error("QPage needs to be a deep child of QLayout"),Te;if(r.inject(Zo,Te)===Te)return console.error("QPage needs to be child of QPageContainer"),Te;const i=r.computed(()=>{const s=(o.header.space===!0?o.header.size:0)+(o.footer.space===!0?o.footer.size:0);if(typeof e.styleFn=="function"){const d=o.isContainer.value===!0?o.containerHeight.value:n.screen.height;return e.styleFn(s,d)}return{minHeight:o.isContainer.value===!0?o.containerHeight.value-s+"px":n.screen.height===0?s!==0?`calc(100vh - ${s}px)`:"100vh":n.screen.height-s+"px"}}),a=r.computed(()=>`q-page${e.padding===!0?" q-layout-padding":""}`);return()=>r.h("main",{class:a.value,style:i.value},ge(t.default))}}),Xi=re({name:"QPageContainer",setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),o=r.inject(Bn,Te);if(o===Te)return console.error("QPageContainer needs to be child of QLayout"),Te;r.provide(Zo,!0);const l=r.computed(()=>{const i={};return o.header.space===!0&&(i.paddingTop=`${o.header.size}px`),o.right.space===!0&&(i[`padding${n.lang.rtl===!0?"Left":"Right"}`]=`${o.right.size}px`),o.footer.space===!0&&(i.paddingBottom=`${o.footer.size}px`),o.left.space===!0&&(i[`padding${n.lang.rtl===!0?"Right":"Left"}`]=`${o.left.size}px`),i});return()=>r.h("div",{class:"q-page-container",style:l.value},ge(t.default))}}),{passive:ur}=se,Yi=["both","horizontal","vertical"],Zi=re({name:"QScrollObserver",props:{axis:{type:String,validator:e=>Yi.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:vn},emits:["scroll"],setup(e,{emit:t}){const n={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let o=null,l,i;r.watch(()=>e.scrollTarget,()=>{d(),s()});function a(){o!==null&&o();const m=Math.max(0,_o(l)),y=To(l),v={top:m-n.position.top,left:y-n.position.left};if(e.axis==="vertical"&&v.top===0||e.axis==="horizontal"&&v.left===0)return;const p=Math.abs(v.top)>=Math.abs(v.left)?v.top<0?"up":"down":v.left<0?"left":"right";n.position={top:m,left:y},n.directionChanged=n.direction!==p,n.delta=v,n.directionChanged===!0&&(n.direction=p,n.inflectionPoint=n.position),t("scroll",{...n})}function s(){l=yn(i,e.scrollTarget),l.addEventListener("scroll",c,ur),c(!0)}function d(){l!==void 0&&(l.removeEventListener("scroll",c,ur),l=void 0)}function c(m){if(m===!0||e.debounce===0||e.debounce==="0")a();else if(o===null){const[y,v]=e.debounce?[setTimeout(a,e.debounce),clearTimeout]:[requestAnimationFrame(a),cancelAnimationFrame];o=()=>{v(y),o=null}}}const{proxy:u}=r.getCurrentInstance();return r.watch(()=>u.$q.lang.rtl,a),r.onMounted(()=>{i=u.$el.parentNode,s()}),r.onBeforeUnmount(()=>{o!==null&&o(),d()}),Object.assign(u,{trigger:c,getPosition:()=>n}),ln}});function Gi(){const e=r.ref(!Ae.value);return e.value===!1&&r.onMounted(()=>{e.value=!0}),{isHydrated:e}}const cr=typeof ResizeObserver<"u",dr=cr===!0?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"},fr=re({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:t}){let n=null,o,l={width:-1,height:-1};function i(d){d===!0||e.debounce===0||e.debounce==="0"?a():n===null&&(n=setTimeout(a,e.debounce))}function a(){if(n!==null&&(clearTimeout(n),n=null),o){const{offsetWidth:d,offsetHeight:c}=o;(d!==l.width||c!==l.height)&&(l={width:d,height:c},t("resize",l))}}const{proxy:s}=r.getCurrentInstance();if(s.trigger=i,cr===!0){let d;const c=u=>{o=s.$el.parentNode,o?(d=new ResizeObserver(i),d.observe(o),a()):u!==!0&&r.nextTick(()=>{c(!0)})};return r.onMounted(()=>{c()}),r.onBeforeUnmount(()=>{n!==null&&clearTimeout(n),d!==void 0&&(d.disconnect!==void 0?d.disconnect():o&&d.unobserve(o))}),ln}else{let d=function(){n!==null&&(clearTimeout(n),n=null),m!==void 0&&(m.removeEventListener!==void 0&&m.removeEventListener("resize",i,se.passive),m=void 0)},c=function(){d(),o&&o.contentDocument&&(m=o.contentDocument.defaultView,m.addEventListener("resize",i,se.passive),a())};const{isHydrated:u}=Gi();let m;return r.onMounted(()=>{r.nextTick(()=>{o=s.$el,o&&c()})}),r.onBeforeUnmount(d),()=>{if(u.value===!0)return r.h("object",{class:"q--avoid-card-border",style:dr.style,tabindex:-1,type:"text/html",data:dr.url,"aria-hidden":"true",onLoad:c})}}}}),ea=re({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:e=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(e.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=r.getCurrentInstance(),l=r.ref(null),i=r.ref(o.screen.height),a=r.ref(e.container===!0?0:o.screen.width),s=r.ref({position:0,direction:"down",inflectionPoint:0}),d=r.ref(0),c=r.ref(Ae.value===!0?0:Et()),u=r.computed(()=>"q-layout q-layout--"+(e.container===!0?"containerized":"standard")),m=r.computed(()=>e.container===!1?{minHeight:o.screen.height+"px"}:null),y=r.computed(()=>c.value!==0?{[o.lang.rtl===!0?"left":"right"]:`${c.value}px`}:null),v=r.computed(()=>c.value!==0?{[o.lang.rtl===!0?"right":"left"]:0,[o.lang.rtl===!0?"left":"right"]:`-${c.value}px`,width:`calc(100% + ${c.value}px)`}:null);function p(B){if(e.container===!0||document.qScrollPrevented!==!0){const C={position:B.position.top,direction:B.direction,directionChanged:B.directionChanged,inflectionPoint:B.inflectionPoint.top,delta:B.delta.top};s.value=C,e.onScroll!==void 0&&n("scroll",C)}}function k(B){const{height:C,width:q}=B;let O=!1;i.value!==C&&(O=!0,i.value=C,e.onScrollHeight!==void 0&&n("scrollHeight",C),P()),a.value!==q&&(O=!0,a.value=q),O===!0&&e.onResize!==void 0&&n("resize",B)}function h({height:B}){d.value!==B&&(d.value=B,P())}function P(){if(e.container===!0){const B=i.value>d.value?Et():0;c.value!==B&&(c.value=B)}}let E=null;const T={instances:{},view:r.computed(()=>e.view),isContainer:r.computed(()=>e.container),rootRef:l,height:i,containerHeight:d,scrollbarWidth:c,totalWidth:r.computed(()=>a.value+c.value),rows:r.computed(()=>{const B=e.view.toLowerCase().split(" ");return{top:B[0].split(""),middle:B[1].split(""),bottom:B[2].split("")}}),header:r.reactive({size:0,offset:0,space:!1}),right:r.reactive({size:300,offset:0,space:!1}),footer:r.reactive({size:0,offset:0,space:!1}),left:r.reactive({size:300,offset:0,space:!1}),scroll:s,animate(){E!==null?clearTimeout(E):document.body.classList.add("q-body--layout-animate"),E=setTimeout(()=>{E=null,document.body.classList.remove("q-body--layout-animate")},155)},update(B,C,q){T[B][C]=q}};if(r.provide(Bn,T),Et()>0){let B=function(){O=null,N.classList.remove("hide-scrollbar")},C=function(){if(O===null){if(N.scrollHeight>o.screen.height)return;N.classList.add("hide-scrollbar")}else clearTimeout(O);O=setTimeout(B,300)},q=function(S){O!==null&&S==="remove"&&(clearTimeout(O),B()),window[`${S}EventListener`]("resize",C)},O=null;const N=document.body;r.watch(()=>e.container!==!0?"add":"remove",q),e.container!==!0&&q("add"),r.onUnmounted(()=>{q("remove")})}return()=>{const B=Re(t.default,[r.h(Zi,{onScroll:p}),r.h(fr,{onResize:k})]),C=r.h("div",{class:u.value,style:m.value,ref:e.container===!0?void 0:l,tabindex:-1},B);return e.container===!0?r.h("div",{class:"q-layout-container overflow-hidden",ref:l},[r.h(fr,{onResize:h}),r.h("div",{class:"absolute-full",style:y.value},[r.h("div",{class:"scroll",style:v.value},[C])])]):C}}}),ta=ut(r.defineComponent({__name:"AppLayout",props:{logged:{type:Boolean},console:{type:Boolean},container:{type:Boolean},padding:{}},setup(e){function t(n){const o=document.getElementById("content"),l=n.target;o&&!l.closest("#content")&&o.scrollBy({top:n.deltaY})}return(n,o)=>(r.openBlock(),r.createBlock(ea,{class:r.normalizeClass(n.$style.layout),view:"lHh LpR fFf"},{default:r.withCtx(()=>[n.logged?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(n.$style["loader-backdrop"])},[r.createVNode(_n,{size:"md",color:"white",class:r.normalizeClass(n.$style["loader-spinner"])},null,8,["class"])],2)):r.createCommentVNode("",!0),r.renderSlot(n.$slots,"drawer"),r.renderSlot(n.$slots,"header"),r.createVNode(Xi,{class:r.normalizeClass({container:n.container}),onWheel:t},{default:r.withCtx(()=>[r.createVNode(Ji,null,{default:r.withCtx(()=>[r.renderSlot(n.$slots,"default"),r.renderSlot(n.$slots,"page-bottom")]),_:3})]),_:3},8,["class"]),r.renderSlot(n.$slots,"footer")]),_:3},8,["class"]))}}),[["__cssModules",{$style:{layout:"_layout_1hhwj_1",loaderBackdrop:"_loader-backdrop_1hhwj_6",loaderSpinner:"_loader-spinner_1hhwj_13"}}]]),na={xs:8,sm:10,md:14,lg:20,xl:24},mr=re({name:"QChip",props:{...Ot,...kn,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=r.getCurrentInstance(),l=Pt(e,o),i=Cn(e,na),a=r.computed(()=>e.selected===!0||e.icon!==void 0),s=r.computed(()=>e.selected===!0?e.iconSelected||o.iconSet.chip.selected:e.icon),d=r.computed(()=>e.iconRemove||o.iconSet.chip.remove),c=r.computed(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),u=r.computed(()=>{const h=e.outline===!0&&e.color||e.textColor;return"q-chip row inline no-wrap items-center"+(e.outline===!1&&e.color!==void 0?` bg-${e.color}`:"")+(h?` text-${h} q-chip--colored`:"")+(e.disable===!0?" disabled":"")+(e.dense===!0?" q-chip--dense":"")+(e.outline===!0?" q-chip--outline":"")+(e.selected===!0?" q-chip--selected":"")+(c.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square===!0?" q-chip--square":"")+(l.value===!0?" q-chip--dark q-dark":"")}),m=r.computed(()=>{const h=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},P={...h,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||o.lang.label.remove};return{chip:h,remove:P}});function y(h){h.keyCode===13&&v(h)}function v(h){e.disable||(n("update:selected",!e.selected),n("click",h))}function p(h){(h.keyCode===void 0||h.keyCode===13)&&(ae(h),e.disable===!1&&(n("update:modelValue",!1),n("remove")))}function k(){const h=[];c.value===!0&&h.push(r.h("div",{class:"q-focus-helper"})),a.value===!0&&h.push(r.h(_e,{class:"q-chip__icon q-chip__icon--left",name:s.value}));const P=e.label!==void 0?[r.h("div",{class:"ellipsis"},[e.label])]:void 0;return h.push(r.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},ql(t.default,P))),e.iconRight&&h.push(r.h(_e,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&h.push(r.h(_e,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:d.value,...m.value.remove,onClick:p,onKeyup:p})),h}return()=>{if(e.modelValue===!1)return;const h={class:u.value,style:i.value};return c.value===!0&&Object.assign(h,m.value.chip,{onClick:v,onKeyup:y}),Al("div",h,k(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[No,e.ripple]])}}}),Mn=re({name:"QItem",props:{...Ot,...yi,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=r.getCurrentInstance(),l=Pt(e,o),{hasLink:i,linkAttrs:a,linkClass:s,linkTag:d,navigateOnClick:c}=Ko(),u=r.ref(null),m=r.ref(null),y=r.computed(()=>e.clickable===!0||i.value===!0||e.tag==="label"),v=r.computed(()=>e.disable!==!0&&y.value===!0),p=r.computed(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(l.value===!0?" q-item--dark":"")+(i.value===!0&&e.active===null?s.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(v.value===!0?" q-item--clickable q-link cursor-pointer "+(e.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(e.focused===!0?" q-manual-focusable--focused":""):"")),k=r.computed(()=>e.insetLevel===void 0?null:{["padding"+(o.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function h(T){v.value===!0&&(m.value!==null&&(T.qKeyEvent!==!0&&document.activeElement===u.value?m.value.focus():document.activeElement===m.value&&u.value.focus()),c(T))}function P(T){if(v.value===!0&&Oe(T,[13,32])===!0){ae(T),T.qKeyEvent=!0;const B=new MouseEvent("click",T);B.qKeyEvent=!0,u.value.dispatchEvent(B)}n("keyup",T)}function E(){const T=Bl(t.default,[]);return v.value===!0&&T.unshift(r.h("div",{class:"q-focus-helper",tabindex:-1,ref:m})),T}return()=>{const T={ref:u,class:p.value,style:k.value,role:"listitem",onClick:h,onKeyup:P};return v.value===!0?(T.tabindex=e.tabindex||"0",Object.assign(T,a.value)):y.value===!0&&(T["aria-disabled"]="true"),r.h(d.value,T,E())}}}),oa=re({name:"QField",inheritAttrs:!1,props:{...Vt,tag:{type:String,default:"label"}},emits:An,setup(){return Pn(On({tagProp:!0}))}}),ra=re({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const n=r.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()=>r.h("div",{class:n.value},ge(t.default))}}),la=re({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const n=r.computed(()=>parseInt(e.lines,10)),o=r.computed(()=>"q-item__label"+(e.overline===!0?" q-item__label--overline text-overline":"")+(e.caption===!0?" q-item__label--caption text-caption":"")+(e.header===!0?" q-item__label--header":"")+(n.value===1?" ellipsis":"")),l=r.computed(()=>e.lines!==void 0&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null);return()=>r.h("div",{style:l.value,class:o.value},ge(t.default))}}),Le=[];let Qe;function ia(e){Qe=e.keyCode===27}function aa(){Qe===!0&&(Qe=!1)}function sa(e){Qe===!0&&(Qe=!1,Oe(e,27)===!0&&Le[Le.length-1](e))}function hr(e){window[e]("keydown",ia),window[e]("blur",aa),window[e]("keyup",sa),Qe=!1}function pr(e){me.is.desktop===!0&&(Le.push(e),Le.length===1&&hr("addEventListener"))}function Ft(e){const t=Le.indexOf(e);t!==-1&&(Le.splice(t,1),Le.length===0&&hr("removeEventListener"))}const Ve=[];function gr(e){Ve[Ve.length-1](e)}function vr(e){me.is.desktop===!0&&(Ve.push(e),Ve.length===1&&document.body.addEventListener("focusin",gr))}function Ln(e){const t=Ve.indexOf(e);t!==-1&&(Ve.splice(t,1),Ve.length===0&&document.body.removeEventListener("focusin",gr))}const ua=re({name:"QMenu",inheritAttrs:!1,props:{...Il,...un,...Ot,...st,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Bt},self:{type:String,validator:Bt},offset:{type:Array,validator:Ao},scrollTarget:vn,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...cn,"click","escapeKey"],setup(e,{slots:t,emit:n,attrs:o}){let l=null,i,a,s;const d=r.getCurrentInstance(),{proxy:c}=d,{$q:u}=c,m=r.ref(null),y=r.ref(!1),v=r.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),p=Pt(e,u),{registerTick:k,removeTick:h}=hn(),{registerTimeout:P}=pn(),{transitionProps:E,transitionStyle:T}=mn(e),{localScrollTarget:B,changeScrollEvent:C,unconfigureScrollTarget:q}=bo(e,M),{anchorEl:O,canShow:N}=yo({showing:y}),{hide:S}=dn({showing:y,canShow:N,handleShow:X,handleHide:b,hideOnRouteChange:v,processOnMount:!0}),{showPortal:_,hidePortal:L,renderPortal:x}=fn(d,m,Z,"menu"),j={anchorEl:O,innerRef:m,onClickOutside($){if(e.persistent!==!0&&y.value===!0)return S($),($.type==="touchstart"||$.target.classList.contains("q-dialog__backdrop"))&&ae($),!0}},R=r.computed(()=>qt(e.anchor||(e.cover===!0?"center middle":"bottom start"),u.lang.rtl)),H=r.computed(()=>e.cover===!0?R.value:qt(e.self||"top start",u.lang.rtl)),D=r.computed(()=>(e.square===!0?" q-menu--square":"")+(p.value===!0?" q-menu--dark q-dark":"")),K=r.computed(()=>e.autoClose===!0?{onClick:W}:{}),V=r.computed(()=>y.value===!0&&e.persistent!==!0);r.watch(V,$=>{$===!0?(pr(A),Ro(j)):(Ft(A),Rt(j))});function U(){kt(()=>{let $=m.value;$&&$.contains(document.activeElement)!==!0&&($=$.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||$.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||$.querySelector("[autofocus], [data-autofocus]")||$,$.focus({preventScroll:!0}))})}function X($){if(l=e.noRefocus===!1?document.activeElement:null,vr(Q),_(),M(),i=void 0,$!==void 0&&(e.touchPosition||e.contextMenu)){const ne=go($);if(ne.left!==void 0){const{top:xe,left:Ze}=O.value.getBoundingClientRect();i={left:ne.left-Ze,top:ne.top-xe}}}a===void 0&&(a=r.watch(()=>u.screen.width+"|"+u.screen.height+"|"+e.self+"|"+e.anchor+"|"+u.lang.rtl,z)),e.noFocus!==!0&&document.activeElement.blur(),k(()=>{z(),e.noFocus!==!0&&U()}),P(()=>{u.platform.is.ios===!0&&(s=e.autoClose,m.value.click()),z(),_(!0),n("show",$)},e.transitionDuration)}function b($){h(),L(),g(!0),l!==null&&($===void 0||$.qClickOutside!==!0)&&((($&&$.type.indexOf("key")===0?l.closest('[tabindex]:not([tabindex^="-"])'):void 0)||l).focus(),l=null),P(()=>{L(!0),n("hide",$)},e.transitionDuration)}function g($){i=void 0,a!==void 0&&(a(),a=void 0),($===!0||y.value===!0)&&(Ln(Q),q(),Rt(j),Ft(A)),$!==!0&&(l=null)}function M(){(O.value!==null||e.scrollTarget!==void 0)&&(B.value=yn(O.value,e.scrollTarget),C(B.value,z))}function W($){s!==!0?(Wl(c,$),n("click",$)):s=!1}function Q($){V.value===!0&&e.noFocus!==!0&&Eo(m.value,$.target)!==!0&&U()}function A($){n("escapeKey"),S($)}function z(){wn({targetEl:m.value,offset:e.offset,anchorEl:O.value,anchorOrigin:R.value,selfOrigin:H.value,absoluteOffset:i,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function Z(){return r.h(r.Transition,E.value,()=>y.value===!0?r.h("div",{role:"menu",...o,ref:m,tabindex:-1,class:["q-menu q-position-engine scroll"+D.value,o.class],style:[o.style,T.value],...K.value},ge(t.default)):null)}return r.onBeforeUnmount(g),Object.assign(c,{focus:U,updatePosition:z}),x}});function ca(e,t,n){function o(){}return r.onBeforeUnmount(()=>{e.value===!0&&void 0}),{removeFromHistory:o,addToHistory(){}}}let dt=0,Vn,$n,ft,Fn=!1,yr,br,wr,$e=null;function da(e){fa(e)&&ae(e)}function fa(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=Fl(e),n=e.shiftKey&&!e.deltaX,o=!n&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),l=n||o?e.deltaY:e.deltaX;for(let i=0;i<t.length;i++){const a=t[i];if(Yl(a,o))return o?l<0&&a.scrollTop===0?!0:l>0&&a.scrollTop+a.clientHeight===a.scrollHeight:l<0&&a.scrollLeft===0?!0:l>0&&a.scrollLeft+a.clientWidth===a.scrollWidth}return!0}function Sr(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function It(e){Fn!==!0&&(Fn=!0,requestAnimationFrame(()=>{Fn=!1;const{height:t}=e.target,{clientHeight:n,scrollTop:o}=document.scrollingElement;(ft===void 0||t!==window.innerHeight)&&(ft=n-t,document.scrollingElement.scrollTop=o),o>ft&&(document.scrollingElement.scrollTop-=Math.ceil((o-ft)/8))}))}function xr(e){const t=document.body,n=window.visualViewport!==void 0;if(e==="add"){const{overflowY:o,overflowX:l}=window.getComputedStyle(t);Vn=To(window),$n=_o(window),yr=t.style.left,br=t.style.top,wr=window.location.href,t.style.left=`-${Vn}px`,t.style.top=`-${$n}px`,l!=="hidden"&&(l==="scroll"||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),o!=="hidden"&&(o==="scroll"||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,me.is.ios===!0&&(n===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",It,se.passiveCapture),window.visualViewport.addEventListener("scroll",It,se.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Sr,se.passiveCapture))}me.is.desktop===!0&&me.is.mac===!0&&window[`${e}EventListener`]("wheel",da,se.notPassive),e==="remove"&&(me.is.ios===!0&&(n===!0?(window.visualViewport.removeEventListener("resize",It,se.passiveCapture),window.visualViewport.removeEventListener("scroll",It,se.passiveCapture)):window.removeEventListener("scroll",Sr,se.passiveCapture)),t.classList.remove("q-body--prevent-scroll"),t.classList.remove("q-body--force-scrollbar-x"),t.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,t.style.left=yr,t.style.top=br,window.location.href===wr&&window.scrollTo(Vn,$n),ft=void 0)}function ma(e){let t="add";if(e===!0){if(dt++,$e!==null){clearTimeout($e),$e=null;return}if(dt>1)return}else{if(dt===0||(dt--,dt>0))return;if(t="remove",me.is.ios===!0&&me.is.nativeMobile===!0){$e!==null&&clearTimeout($e),$e=setTimeout(()=>{xr(t),$e=null},100);return}}xr(t)}function ha(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t===!0)&&(e=t,ma(t))}}}let zt=0;const pa={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"},kr={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},ga=re({name:"QDialog",inheritAttrs:!1,props:{...un,...st,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:[...cn,"shake","click","escapeKey"],setup(e,{slots:t,emit:n,attrs:o}){const l=r.getCurrentInstance(),i=r.ref(null),a=r.ref(!1),s=r.ref(!1);let d=null,c=null,u,m;const y=r.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:v}=ha(),{registerTimeout:p}=pn(),{registerTick:k,removeTick:h}=hn(),{transitionProps:P,transitionStyle:E}=mn(e,()=>kr[e.position][0],()=>kr[e.position][1]),T=r.computed(()=>E.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:B,hidePortal:C,portalIsAccessible:q,renderPortal:O}=fn(l,i,Q,"dialog"),{hide:N}=dn({showing:a,hideOnRouteChange:y,handleShow:H,handleHide:D,processOnMount:!0}),{addToHistory:S,removeFromHistory:_}=ca(a),L=r.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${pa[e.position]}`+(s.value===!0?" q-dialog__inner--animating":"")+(e.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(e.fullHeight===!0?" q-dialog__inner--fullheight":"")+(e.square===!0?" q-dialog__inner--square":"")),x=r.computed(()=>a.value===!0&&e.seamless!==!0),j=r.computed(()=>e.autoClose===!0?{onClick:g}:{}),R=r.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${x.value===!0?"modal":"seamless"}`,o.class]);r.watch(()=>e.maximized,A=>{a.value===!0&&b(A)}),r.watch(x,A=>{v(A),A===!0?(vr(W),pr(U)):(Ln(W),Ft(U))});function H(A){S(),c=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,b(e.maximized),B(),s.value=!0,e.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),k(K)):h(),p(()=>{if(l.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:z,bottom:Z}=document.activeElement.getBoundingClientRect(),{innerHeight:$}=window,ne=window.visualViewport!==void 0?window.visualViewport.height:$;z>0&&Z>ne/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-ne,Z>=$?1/0:Math.ceil(document.scrollingElement.scrollTop+Z-ne/2))),document.activeElement.scrollIntoView()}m=!0,i.value.click(),m=!1}B(!0),s.value=!1,n("show",A)},e.transitionDuration)}function D(A){h(),_(),X(!0),s.value=!0,C(),c!==null&&(((A&&A.type.indexOf("key")===0?c.closest('[tabindex]:not([tabindex^="-"])'):void 0)||c).focus(),c=null),p(()=>{C(!0),s.value=!1,n("hide",A)},e.transitionDuration)}function K(A){kt(()=>{let z=i.value;if(z!==null){if(A!==void 0){const Z=z.querySelector(A);if(Z!==null){Z.focus({preventScroll:!0});return}}z.contains(document.activeElement)!==!0&&(z=z.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||z.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||z.querySelector("[autofocus], [data-autofocus]")||z,z.focus({preventScroll:!0}))}})}function V(A){A&&typeof A.focus=="function"?A.focus({preventScroll:!0}):K(),n("shake");const z=i.value;z!==null&&(z.classList.remove("q-animate--scale"),z.classList.add("q-animate--scale"),d!==null&&clearTimeout(d),d=setTimeout(()=>{d=null,i.value!==null&&(z.classList.remove("q-animate--scale"),K())},170))}function U(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&V():(n("escapeKey"),N()))}function X(A){d!==null&&(clearTimeout(d),d=null),(A===!0||a.value===!0)&&(b(!1),e.seamless!==!0&&(v(!1),Ln(W),Ft(U))),A!==!0&&(c=null)}function b(A){A===!0?u!==!0&&(zt<1&&document.body.classList.add("q-body--dialog"),zt++,u=!0):u===!0&&(zt<2&&document.body.classList.remove("q-body--dialog"),zt--,u=!1)}function g(A){m!==!0&&(N(A),n("click",A))}function M(A){e.persistent!==!0&&e.noBackdropDismiss!==!0?N(A):e.noShake!==!0&&V()}function W(A){e.allowFocusOutside!==!0&&q.value===!0&&Eo(i.value,A.target)!==!0&&K('[tabindex]:not([tabindex="-1"])')}Object.assign(l.proxy,{focus:K,shake:V,__updateRefocusTarget(A){c=A||null}}),r.onBeforeUnmount(X);function Q(){return r.h("div",{role:"dialog","aria-modal":x.value===!0?"true":"false",...o,class:R.value},[r.h(r.Transition,{name:"q-transition--fade",appear:!0},()=>x.value===!0?r.h("div",{class:"q-dialog__backdrop fixed-full",style:T.value,"aria-hidden":"true",tabindex:-1,onClick:M}):null),r.h(r.Transition,P.value,()=>a.value===!0?r.h("div",{ref:i,class:L.value,style:E.value,tabindex:-1,...j.value},ge(t.default)):null)])}return O}});let Nt=!1;{const e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});const t=document.createElement("div");Object.assign(t.style,{width:"1000px",height:"1px"}),document.body.appendChild(e),e.appendChild(t),e.scrollLeft=-1e3,Nt=e.scrollLeft>=0,e.remove()}const be=1e3,va=["start","center","end","start-force","center-force","end-force"],Cr=Array.prototype.filter,ya=window.getComputedStyle(document.body).overflowAnchor===void 0?ln:function(e,t){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;const n=e.children||[];Cr.call(n,l=>l.dataset&&l.dataset.qVsAnchor!==void 0).forEach(l=>{delete l.dataset.qVsAnchor});const o=n[t];o&&o.dataset&&(o.dataset.qVsAnchor="")}))};function Je(e,t){return e+t}function In(e,t,n,o,l,i,a,s){const d=e===window?document.scrollingElement||document.documentElement:e,c=l===!0?"offsetWidth":"offsetHeight",u={scrollStart:0,scrollViewSize:-a-s,scrollMaxSize:0,offsetStart:-a,offsetEnd:-s};if(l===!0?(e===window?(u.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,u.scrollViewSize+=document.documentElement.clientWidth):(u.scrollStart=d.scrollLeft,u.scrollViewSize+=d.clientWidth),u.scrollMaxSize=d.scrollWidth,i===!0&&(u.scrollStart=(Nt===!0?u.scrollMaxSize-u.scrollViewSize:0)-u.scrollStart)):(e===window?(u.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,u.scrollViewSize+=document.documentElement.clientHeight):(u.scrollStart=d.scrollTop,u.scrollViewSize+=d.clientHeight),u.scrollMaxSize=d.scrollHeight),n!==null)for(let m=n.previousElementSibling;m!==null;m=m.previousElementSibling)m.classList.contains("q-virtual-scroll--skip")===!1&&(u.offsetStart+=m[c]);if(o!==null)for(let m=o.nextElementSibling;m!==null;m=m.nextElementSibling)m.classList.contains("q-virtual-scroll--skip")===!1&&(u.offsetEnd+=m[c]);if(t!==e){const m=d.getBoundingClientRect(),y=t.getBoundingClientRect();l===!0?(u.offsetStart+=y.left-m.left,u.offsetEnd-=y.width):(u.offsetStart+=y.top-m.top,u.offsetEnd-=y.height),e!==window&&(u.offsetStart+=u.scrollStart),u.offsetEnd+=u.scrollMaxSize-u.offsetStart}return u}function Er(e,t,n,o){t==="end"&&(t=(e===window?document.body:e)[n===!0?"scrollWidth":"scrollHeight"]),e===window?n===!0?(o===!0&&(t=(Nt===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-t),window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t):n===!0?(o===!0&&(t=(Nt===!0?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function mt(e,t,n,o){if(n>=o)return 0;const l=t.length,i=Math.floor(n/be),a=Math.floor((o-1)/be)+1;let s=e.slice(i,a).reduce(Je,0);return n%be!==0&&(s-=t.slice(i*be,n).reduce(Je,0)),o%be!==0&&o!==l&&(s-=t.slice(o,a*be).reduce(Je,0)),s}const _r={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...{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]}};function ba({virtualScrollLength:e,getVirtualScrollTarget:t,getVirtualScrollEl:n,virtualScrollItemSizeComputed:o}){const l=r.getCurrentInstance(),{props:i,emit:a,proxy:s}=l,{$q:d}=s;let c,u,m,y=[],v;const p=r.ref(0),k=r.ref(0),h=r.ref({}),P=r.ref(null),E=r.ref(null),T=r.ref(null),B=r.ref({from:0,to:0}),C=r.computed(()=>i.tableColspan!==void 0?i.tableColspan:100);o===void 0&&(o=r.computed(()=>i.virtualScrollItemSize));const q=r.computed(()=>o.value+";"+i.virtualScrollHorizontal),O=r.computed(()=>q.value+";"+i.virtualScrollSliceRatioBefore+";"+i.virtualScrollSliceRatioAfter);r.watch(O,()=>{D()}),r.watch(q,N);function N(){H(u,!0)}function S(b){H(b===void 0?u:b)}function _(b,g){const M=t();if(M==null||M.nodeType===8)return;const W=In(M,n(),P.value,E.value,i.virtualScrollHorizontal,d.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd);m!==W.scrollViewSize&&D(W.scrollViewSize),x(M,W,Math.min(e.value-1,Math.max(0,parseInt(b,10)||0)),0,va.indexOf(g)!==-1?g:u!==-1&&b>u?"end":"start")}function L(){const b=t();if(b==null||b.nodeType===8)return;const g=In(b,n(),P.value,E.value,i.virtualScrollHorizontal,d.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd),M=e.value-1,W=g.scrollMaxSize-g.offsetStart-g.offsetEnd-k.value;if(c===g.scrollStart)return;if(g.scrollMaxSize<=0){x(b,g,0,0);return}m!==g.scrollViewSize&&D(g.scrollViewSize),j(B.value.from);const Q=Math.floor(g.scrollMaxSize-Math.max(g.scrollViewSize,g.offsetEnd)-Math.min(v[M],g.scrollViewSize/2));if(Q>0&&Math.ceil(g.scrollStart)>=Q){x(b,g,M,g.scrollMaxSize-g.offsetEnd-y.reduce(Je,0));return}let A=0,z=g.scrollStart-g.offsetStart,Z=z;if(z<=W&&z+g.scrollViewSize>=p.value)z-=p.value,A=B.value.from,Z=z;else for(let $=0;z>=y[$]&&A<M;$++)z-=y[$],A+=be;for(;z>0&&A<M;)z-=v[A],z>-g.scrollViewSize?(A++,Z=z):Z=v[A]+z;x(b,g,A,Z)}function x(b,g,M,W,Q){const A=typeof Q=="string"&&Q.indexOf("-force")!==-1,z=A===!0?Q.replace("-force",""):Q,Z=z!==void 0?z:"start";let $=Math.max(0,M-h.value[Z]),ne=$+h.value.total;ne>e.value&&(ne=e.value,$=Math.max(0,ne-h.value.total)),c=g.scrollStart;const xe=$!==B.value.from||ne!==B.value.to;if(xe===!1&&z===void 0){V(M);return}const{activeElement:Ze}=document,ke=T.value;xe===!0&&ke!==null&&ke!==Ze&&ke.contains(Ze)===!0&&(ke.addEventListener("focusout",R),setTimeout(()=>{ke!==null&&ke.removeEventListener("focusout",R)})),ya(ke,M-$);const Yt=z!==void 0?v.slice($,M).reduce(Je,0):0;if(xe===!0){const Ne=ne>=B.value.from&&$<=B.value.to?B.value.to:ne;B.value={from:$,to:Ne},p.value=mt(y,v,0,$),k.value=mt(y,v,ne,e.value),requestAnimationFrame(()=>{B.value.to!==ne&&c===g.scrollStart&&(B.value={from:B.value.from,to:ne},k.value=mt(y,v,ne,e.value))})}requestAnimationFrame(()=>{if(c!==g.scrollStart)return;xe===!0&&j($);const Ne=v.slice($,M).reduce(Je,0),De=Ne+g.offsetStart+p.value,Zt=De+v[M];let bt=De+W;if(z!==void 0){const so=Ne-Yt,wt=g.scrollStart+so;bt=A!==!0&&wt<De&&Zt<wt+g.scrollViewSize?wt:z==="end"?Zt-g.scrollViewSize:De-(z==="start"?0:Math.round((g.scrollViewSize-v[M])/2))}c=bt,Er(b,bt,i.virtualScrollHorizontal,d.lang.rtl),V(M)})}function j(b){const g=T.value;if(g){const M=Cr.call(g.children,$=>$.classList&&$.classList.contains("q-virtual-scroll--skip")===!1),W=M.length,Q=i.virtualScrollHorizontal===!0?$=>$.getBoundingClientRect().width:$=>$.offsetHeight;let A=b,z,Z;for(let $=0;$<W;){for(z=Q(M[$]),$++;$<W&&M[$].classList.contains("q-virtual-scroll--with-prev")===!0;)z+=Q(M[$]),$++;Z=z-v[A],Z!==0&&(v[A]+=Z,y[Math.floor(A/be)]+=Z),A++}}}function R(){T.value!==null&&T.value!==void 0&&T.value.focus()}function H(b,g){const M=1*o.value;(g===!0||Array.isArray(v)===!1)&&(v=[]);const W=v.length;v.length=e.value;for(let A=e.value-1;A>=W;A--)v[A]=M;const Q=Math.floor((e.value-1)/be);y=[];for(let A=0;A<=Q;A++){let z=0;const Z=Math.min((A+1)*be,e.value);for(let $=A*be;$<Z;$++)z+=v[$];y.push(z)}u=-1,c=void 0,p.value=mt(y,v,0,B.value.from),k.value=mt(y,v,B.value.to,e.value),b>=0?(j(B.value.from),r.nextTick(()=>{_(b)})):U()}function D(b){if(b===void 0&&typeof window<"u"){const z=t();z!=null&&z.nodeType!==8&&(b=In(z,n(),P.value,E.value,i.virtualScrollHorizontal,d.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd).scrollViewSize)}m=b;const g=parseFloat(i.virtualScrollSliceRatioBefore)||0,M=parseFloat(i.virtualScrollSliceRatioAfter)||0,W=1+g+M,Q=b===void 0||b<=0?1:Math.ceil(b/o.value),A=Math.max(1,Q,Math.ceil((i.virtualScrollSliceSize>0?i.virtualScrollSliceSize:10)/W));h.value={total:Math.ceil(A*W),start:Math.ceil(A*g),center:Math.ceil(A*(.5+g)),end:Math.ceil(A*(1+g)),view:Q}}function K(b,g){const M=i.virtualScrollHorizontal===!0?"width":"height",W={["--q-virtual-scroll-item-"+M]:o.value+"px"};return[b==="tbody"?r.h(b,{class:"q-virtual-scroll__padding",key:"before",ref:P},[r.h("tr",[r.h("td",{style:{[M]:`${p.value}px`,...W},colspan:C.value})])]):r.h(b,{class:"q-virtual-scroll__padding",key:"before",ref:P,style:{[M]:`${p.value}px`,...W}}),r.h(b,{class:"q-virtual-scroll__content",key:"content",ref:T,tabindex:-1},g.flat()),b==="tbody"?r.h(b,{class:"q-virtual-scroll__padding",key:"after",ref:E},[r.h("tr",[r.h("td",{style:{[M]:`${k.value}px`,...W},colspan:C.value})])]):r.h(b,{class:"q-virtual-scroll__padding",key:"after",ref:E,style:{[M]:`${k.value}px`,...W}})]}function V(b){u!==b&&(i.onVirtualScroll!==void 0&&a("virtualScroll",{index:b,from:B.value.from,to:B.value.to-1,direction:b<u?"decrease":"increase",ref:s}),u=b)}D();const U=nr(L,d.platform.is.ios===!0?120:35);r.onBeforeMount(()=>{D()});let X=!1;return r.onDeactivated(()=>{X=!0}),r.onActivated(()=>{if(X!==!0)return;const b=t();c!==void 0&&b!==void 0&&b!==null&&b.nodeType!==8?Er(b,c,i.virtualScrollHorizontal,d.lang.rtl):_(u)}),r.onBeforeUnmount(()=>{U.cancel()}),Object.assign(s,{scrollTo:_,reset:N,refresh:S}),{virtualScrollSliceRange:B,virtualScrollSliceSizeComputed:h,setVirtualScrollSize:D,onVirtualScrollEvt:U,localResetVirtualScroll:H,padVirtualScroll:K,scrollTo:_,reset:N,refresh:S}}function Be(e,t){if(e===t)return!0;if(e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let n,o;if(e.constructor===Array){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(Be(e[o],t[o])!==!0)return!1;return!0}if(e.constructor===Map){if(e.size!==t.size)return!1;let i=e.entries();for(o=i.next();o.done!==!0;){if(t.has(o.value[0])!==!0)return!1;o=i.next()}for(i=e.entries(),o=i.next();o.done!==!0;){if(Be(o.value[1],t.get(o.value[0]))!==!0)return!1;o=i.next()}return!0}if(e.constructor===Set){if(e.size!==t.size)return!1;const i=e.entries();for(o=i.next();o.done!==!0;){if(t.has(o.value[0])!==!0)return!1;o=i.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const l=Object.keys(e).filter(i=>e[i]!==void 0);if(n=l.length,n!==Object.keys(t).filter(i=>t[i]!==void 0).length)return!1;for(o=n;o--!==0;){const i=l[o];if(Be(e[i],t[i])!==!0)return!1}return!0}return e!==e&&t!==t}function Tr(e,t,n){if(n<=t)return t;const o=n-t+1;let l=t+(e-t)%o;return l<t&&(l=o+l),l===0?0:l}const Rr=e=>["add","add-unique","toggle"].includes(e),wa=".*+?^${}()|[]\\",Sa=Object.keys(Vt);function zn(e,t){if(typeof e=="function")return e;const n=e!==void 0?e:t;return o=>o!==null&&typeof o=="object"&&n in o?o[n]:o}const xa=re({name:"QSelect",inheritAttrs:!1,props:{..._r,...ir,...Vt,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:Rr},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:_r.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...An,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:t,emit:n}){const{proxy:o}=r.getCurrentInstance(),{$q:l}=o,i=r.ref(!1),a=r.ref(!1),s=r.ref(-1),d=r.ref(""),c=r.ref(!1),u=r.ref(!1);let m=null,y=null,v,p,k,h=null,P,E,T,B;const C=r.ref(null),q=r.ref(null),O=r.ref(null),N=r.ref(null),S=r.ref(null),_=ar(e),L=sr(xl),x=r.computed(()=>e.options.length),j=r.computed(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:R,virtualScrollSliceSizeComputed:H,localResetVirtualScroll:D,padVirtualScroll:K,onVirtualScrollEvt:V,scrollTo:U,setVirtualScrollSize:X}=ba({virtualScrollLength:x,getVirtualScrollTarget:cu,getVirtualScrollEl:wl,virtualScrollItemSizeComputed:j}),b=On(),g=r.computed(()=>{const f=e.mapOptions===!0&&e.multiple!==!0,F=e.modelValue!==void 0&&(e.modelValue!==null||f===!0)?e.multiple===!0&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions===!0){const I=e.mapOptions===!0&&v!==void 0?v:[],Y=F.map(ee=>uu(ee,I));return e.modelValue===null&&f===!0?Y.filter(ee=>ee!==null):Y}return F}),M=r.computed(()=>{const f={};return Sa.forEach(F=>{const I=e[F];I!==void 0&&(f[F]=I)}),f}),W=r.computed(()=>e.optionsDark===null?b.isDark.value:e.optionsDark),Q=r.computed(()=>ct(g.value)),A=r.computed(()=>{let f="q-field__input q-placeholder col";return e.hideSelected===!0||g.value.length===0?[f,e.inputClass]:(f+=" q-field__input--padding",e.inputClass===void 0?f:[f,e.inputClass])}),z=r.computed(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),Z=r.computed(()=>x.value===0),$=r.computed(()=>g.value.map(f=>pe.value(f)).join(", ")),ne=r.computed(()=>e.displayValue!==void 0?e.displayValue:$.value),xe=r.computed(()=>e.optionsHtml===!0?()=>!0:f=>f!=null&&f.html===!0),Ze=r.computed(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||g.value.some(xe.value))),ke=r.computed(()=>b.focused.value===!0?e.tabindex:-1),Yt=r.computed(()=>{const f={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":`${b.targetUid.value}_lb`};return s.value>=0&&(f["aria-activedescendant"]=`${b.targetUid.value}_${s.value}`),f}),Ne=r.computed(()=>({id:`${b.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),De=r.computed(()=>g.value.map((f,F)=>({index:F,opt:f,html:xe.value(f),selected:!0,removeAtIndex:su,toggleOption:He,tabindex:ke.value}))),Zt=r.computed(()=>{if(x.value===0)return[];const{from:f,to:F}=R.value;return e.options.slice(f,F).map((I,Y)=>{const ee=Ge.value(I)===!0,G=co(I)===!0,ce=f+Y,oe={clickable:!0,active:G,activeClass:wt.value,manualFocus:!0,focused:!1,disable:ee,tabindex:-1,dense:e.optionsDense,dark:W.value,role:"option","aria-selected":G===!0?"true":"false",id:`${b.targetUid.value}_${ce}`,onClick:()=>{He(I)}};return ee!==!0&&(s.value===ce&&(oe.focused=!0),l.platform.is.desktop===!0&&(oe.onMousemove=()=>{i.value===!0&&et(ce)})),{index:ce,opt:I,html:xe.value(I),label:pe.value(I),selected:oe.active,focused:oe.focused,toggleOption:He,setOptionIndex:et,itemProps:oe}})}),bt=r.computed(()=>e.dropdownIcon!==void 0?e.dropdownIcon:l.iconSet.arrow.dropdown),so=r.computed(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),wt=r.computed(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),Ce=r.computed(()=>zn(e.optionValue,"value")),pe=r.computed(()=>zn(e.optionLabel,"label")),Ge=r.computed(()=>zn(e.optionDisable,"disable")),Gt=r.computed(()=>g.value.map(Ce.value)),au=r.computed(()=>{const f={onInput:xl,onChange:L,onKeydown:bl,onKeyup:vl,onKeypress:yl,onFocus:pl,onClick(F){p===!0&&Se(F)}};return f.onCompositionstart=f.onCompositionupdate=f.onCompositionend=L,f});r.watch(g,f=>{v=f,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&b.innerLoading.value!==!0&&(a.value!==!0&&i.value!==!0||Q.value!==!0)&&(k!==!0&&rt(),(a.value===!0||i.value===!0)&&tt(""))},{immediate:!0}),r.watch(()=>e.fillInput,rt),r.watch(i,fo),r.watch(x,xu);function ml(f){return e.emitValue===!0?Ce.value(f):f}function uo(f){if(f!==-1&&f<g.value.length)if(e.multiple===!0){const F=e.modelValue.slice();n("remove",{index:f,value:F.splice(f,1)[0]}),n("update:modelValue",F)}else n("update:modelValue",null)}function su(f){uo(f),b.focus()}function hl(f,F){const I=ml(f);if(e.multiple!==!0){e.fillInput===!0&&St(pe.value(f),!0,!0),n("update:modelValue",I);return}if(g.value.length===0){n("add",{index:0,value:I}),n("update:modelValue",e.multiple===!0?[I]:I);return}if(F===!0&&co(f)===!0||e.maxValues!==void 0&&e.modelValue.length>=e.maxValues)return;const Y=e.modelValue.slice();n("add",{index:Y.length,value:I}),Y.push(I),n("update:modelValue",Y)}function He(f,F){if(b.editable.value!==!0||f===void 0||Ge.value(f)===!0)return;const I=Ce.value(f);if(e.multiple!==!0){F!==!0&&(St(e.fillInput===!0?pe.value(f):"",!0,!0),je()),q.value!==null&&q.value.focus(),(g.value.length===0||Be(Ce.value(g.value[0]),I)!==!0)&&n("update:modelValue",e.emitValue===!0?I:f);return}if((p!==!0||c.value===!0)&&b.focus(),pl(),g.value.length===0){const G=e.emitValue===!0?I:f;n("add",{index:0,value:G}),n("update:modelValue",e.multiple===!0?[G]:G);return}const Y=e.modelValue.slice(),ee=Gt.value.findIndex(G=>Be(G,I));if(ee!==-1)n("remove",{index:ee,value:Y.splice(ee,1)[0]});else{if(e.maxValues!==void 0&&Y.length>=e.maxValues)return;const G=e.emitValue===!0?I:f;n("add",{index:Y.length,value:G}),Y.push(G)}n("update:modelValue",Y)}function et(f){if(l.platform.is.desktop!==!0)return;const F=f!==-1&&f<x.value?f:-1;s.value!==F&&(s.value=F)}function en(f=1,F){if(i.value===!0){let I=s.value;do I=Tr(I+f,-1,x.value-1);while(I!==-1&&I!==s.value&&Ge.value(e.options[I])===!0);s.value!==I&&(et(I),U(I),F!==!0&&e.useInput===!0&&e.fillInput===!0&&tn(I>=0?pe.value(e.options[I]):P,!0))}}function uu(f,F){const I=Y=>Be(Ce.value(Y),f);return e.options.find(I)||F.find(I)||f}function co(f){const F=Ce.value(f);return Gt.value.find(I=>Be(I,F))!==void 0}function pl(f){e.useInput===!0&&q.value!==null&&(f===void 0||q.value===f.target&&f.target.value===$.value)&&q.value.select()}function gl(f){Oe(f,27)===!0&&i.value===!0&&(Se(f),je(),rt()),n("keyup",f)}function vl(f){const{value:F}=f.target;if(f.keyCode!==void 0){gl(f);return}if(f.target.value="",m!==null&&(clearTimeout(m),m=null),y!==null&&(clearTimeout(y),y=null),rt(),typeof F=="string"&&F.length!==0){const I=F.toLocaleLowerCase(),Y=G=>{const ce=e.options.find(oe=>G.value(oe).toLocaleLowerCase()===I);return ce===void 0?!1:(g.value.indexOf(ce)===-1?He(ce):je(),!0)},ee=G=>{Y(Ce)!==!0&&(Y(pe)===!0||G===!0||tt(F,!0,()=>ee(!0)))};ee()}else b.clearValue(f)}function yl(f){n("keypress",f)}function bl(f){if(n("keydown",f),an(f)===!0)return;const F=d.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),I=f.shiftKey!==!0&&e.disableTabSelection!==!0&&e.multiple!==!0&&(s.value!==-1||F===!0);if(f.keyCode===27){ye(f);return}if(f.keyCode===9&&I===!1){nt();return}if(f.target===void 0||f.target.id!==b.targetUid.value||b.editable.value!==!0)return;if(f.keyCode===40&&b.innerLoading.value!==!0&&i.value===!1){ae(f),ot();return}if(f.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&d.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?uo(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&n("update:modelValue",null);return}(f.keyCode===35||f.keyCode===36)&&(typeof d.value!="string"||d.value.length===0)&&(ae(f),s.value=-1,en(f.keyCode===36?1:-1,e.multiple)),(f.keyCode===33||f.keyCode===34)&&H.value!==void 0&&(ae(f),s.value=Math.max(-1,Math.min(x.value,s.value+(f.keyCode===33?-1:1)*H.value.view)),en(f.keyCode===33?1:-1,e.multiple)),(f.keyCode===38||f.keyCode===40)&&(ae(f),en(f.keyCode===38?-1:1,e.multiple));const Y=x.value;if((T===void 0||B<Date.now())&&(T=""),Y>0&&e.useInput!==!0&&f.key!==void 0&&f.key.length===1&&f.altKey===!1&&f.ctrlKey===!1&&f.metaKey===!1&&(f.keyCode!==32||T.length!==0)){i.value!==!0&&ot(f);const ee=f.key.toLocaleLowerCase(),G=T.length===1&&T[0]===ee;B=Date.now()+1500,G===!1&&(ae(f),T+=ee);const ce=new RegExp("^"+T.split("").map(mo=>wa.indexOf(mo)!==-1?"\\"+mo:mo).join(".*"),"i");let oe=s.value;if(G===!0||oe<0||ce.test(pe.value(e.options[oe]))!==!0)do oe=Tr(oe+1,-1,Y-1);while(oe!==s.value&&(Ge.value(e.options[oe])===!0||ce.test(pe.value(e.options[oe]))!==!0));s.value!==oe&&r.nextTick(()=>{et(oe),U(oe),oe>=0&&e.useInput===!0&&e.fillInput===!0&&tn(pe.value(e.options[oe]),!0)});return}if(!(f.keyCode!==13&&(f.keyCode!==32||e.useInput===!0||T!=="")&&(f.keyCode!==9||I===!1))){if(f.keyCode!==9&&ae(f),s.value!==-1&&s.value<Y){He(e.options[s.value]);return}if(F===!0){const ee=(G,ce)=>{if(ce){if(Rr(ce)!==!0)return}else ce=e.newValueMode;if(St("",e.multiple!==!0,!0),G==null)return;(ce==="toggle"?He:hl)(G,ce==="add-unique"),e.multiple!==!0&&(q.value!==null&&q.value.focus(),je())};if(e.onNewValue!==void 0?n("newValue",d.value,ee):ee(d.value),e.multiple!==!0)return}i.value===!0?nt():b.innerLoading.value!==!0&&ot()}}function wl(){return p===!0?S.value:O.value!==null&&O.value.contentEl!==null?O.value.contentEl:void 0}function cu(){return wl()}function du(){return e.hideSelected===!0?[]:t["selected-item"]!==void 0?De.value.map(f=>t["selected-item"](f)).slice():t.selected!==void 0?[].concat(t.selected()):e.useChips===!0?De.value.map((f,F)=>r.h(mr,{key:"option-"+F,removable:b.editable.value===!0&&Ge.value(f.opt)!==!0,dense:!0,textColor:e.color,tabindex:ke.value,onRemove(){f.removeAtIndex(F)}},()=>r.h("span",{class:"ellipsis",[f.html===!0?"innerHTML":"textContent"]:pe.value(f.opt)}))):[r.h("span",{[Ze.value===!0?"innerHTML":"textContent"]:ne.value})]}function Sl(){if(Z.value===!0)return t["no-option"]!==void 0?t["no-option"]({inputValue:d.value}):void 0;const f=t.option!==void 0?t.option:I=>r.h(Mn,{key:I.index,...I.itemProps},()=>r.h(ra,()=>r.h(la,()=>r.h("span",{[I.html===!0?"innerHTML":"textContent"]:I.label}))));let F=K("div",Zt.value.map(f));return t["before-options"]!==void 0&&(F=t["before-options"]().concat(F)),Re(t["after-options"],F)}function fu(f,F){const I=F===!0?{...Yt.value,...b.splitAttrs.attributes.value}:void 0,Y={ref:F===!0?q:void 0,key:"i_t",class:A.value,style:e.inputStyle,value:d.value!==void 0?d.value:"",type:"search",...I,id:F===!0?b.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":f===!0||e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...au.value};return f!==!0&&p===!0&&(Array.isArray(Y.class)===!0?Y.class=[...Y.class,"no-pointer-events"]:Y.class+=" no-pointer-events"),r.h("input",Y)}function xl(f){m!==null&&(clearTimeout(m),m=null),y!==null&&(clearTimeout(y),y=null),!(f&&f.target&&f.target.qComposing===!0)&&(tn(f.target.value||""),k=!0,P=d.value,b.focused.value!==!0&&(p!==!0||c.value===!0)&&b.focus(),e.onFilter!==void 0&&(m=setTimeout(()=>{m=null,tt(d.value)},e.inputDebounce)))}function tn(f,F){d.value!==f&&(d.value=f,F===!0||e.inputDebounce===0||e.inputDebounce==="0"?n("inputValue",f):y=setTimeout(()=>{y=null,n("inputValue",f)},e.inputDebounce))}function St(f,F,I){k=I!==!0,e.useInput===!0&&(tn(f,!0),(F===!0||I!==!0)&&(P=f),F!==!0&&tt(f))}function tt(f,F,I){if(e.onFilter===void 0||F!==!0&&b.focused.value!==!0)return;b.innerLoading.value===!0?n("filterAbort"):(b.innerLoading.value=!0,u.value=!0),f!==""&&e.multiple!==!0&&g.value.length!==0&&k!==!0&&f===pe.value(g.value[0])&&(f="");const Y=setTimeout(()=>{i.value===!0&&(i.value=!1)},10);h!==null&&clearTimeout(h),h=Y,n("filter",f,(ee,G)=>{(F===!0||b.focused.value===!0)&&h===Y&&(clearTimeout(h),typeof ee=="function"&&ee(),u.value=!1,r.nextTick(()=>{b.innerLoading.value=!1,b.editable.value===!0&&(F===!0?i.value===!0&&je():i.value===!0?fo(!0):i.value=!0),typeof G=="function"&&r.nextTick(()=>{G(o)}),typeof I=="function"&&r.nextTick(()=>{I(o)})}))},()=>{b.focused.value===!0&&h===Y&&(clearTimeout(h),b.innerLoading.value=!1,u.value=!1),i.value===!0&&(i.value=!1)})}function mu(){return r.h(ua,{ref:O,class:z.value,style:e.popupContentStyle,modelValue:i.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&Z.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:W.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:so.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...Ne.value,onScrollPassive:V,onBeforeShow:Cl,onBeforeHide:hu,onShow:pu},Sl)}function hu(f){El(f),nt()}function pu(){X()}function gu(f){Se(f),q.value!==null&&q.value.focus(),c.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function vu(f){Se(f),r.nextTick(()=>{c.value=!1})}function yu(){const f=[r.h(oa,{class:`col-auto ${b.fieldClass.value}`,...M.value,for:b.targetUid.value,dark:W.value,square:!0,loading:u.value,itemAligned:!1,filled:!0,stackLabel:d.value.length!==0,...b.splitAttrs.listeners.value,onFocus:gu,onBlur:vu},{...t,rawControl:()=>b.getControl(!0),before:void 0,after:void 0})];return i.value===!0&&f.push(r.h("div",{ref:S,class:z.value+" scroll",style:e.popupContentStyle,...Ne.value,onClick:ye,onScrollPassive:V},Sl())),r.h(ga,{ref:N,modelValue:a.value,position:e.useInput===!0?"top":void 0,transitionShow:E,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:Cl,onBeforeHide:bu,onHide:wu,onShow:Su},()=>r.h("div",{class:"q-select__dialog"+(W.value===!0?" q-select__dialog--dark q-dark":"")+(c.value===!0?" q-select__dialog--focused":"")},f))}function bu(f){El(f),N.value!==null&&N.value.__updateRefocusTarget(b.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),b.focused.value=!1}function wu(f){je(),b.focused.value===!1&&n("blur",f),rt()}function Su(){const f=document.activeElement;(f===null||f.id!==b.targetUid.value)&&q.value!==null&&q.value!==f&&q.value.focus(),X()}function nt(){a.value!==!0&&(s.value=-1,i.value===!0&&(i.value=!1),b.focused.value===!1&&(h!==null&&(clearTimeout(h),h=null),b.innerLoading.value===!0&&(n("filterAbort"),b.innerLoading.value=!1,u.value=!1)))}function ot(f){b.editable.value===!0&&(p===!0?(b.onControlFocusin(f),a.value=!0,r.nextTick(()=>{b.focus()})):b.focus(),e.onFilter!==void 0?tt(d.value):(Z.value!==!0||t["no-option"]!==void 0)&&(i.value=!0))}function je(){a.value=!1,nt()}function rt(){e.useInput===!0&&St(e.multiple!==!0&&e.fillInput===!0&&g.value.length!==0&&pe.value(g.value[0])||"",!0,!0)}function fo(f){let F=-1;if(f===!0){if(g.value.length!==0){const I=Ce.value(g.value[0]);F=e.options.findIndex(Y=>Be(Ce.value(Y),I))}D(F)}et(F)}function xu(f,F){i.value===!0&&b.innerLoading.value===!1&&(D(-1,!0),r.nextTick(()=>{i.value===!0&&b.innerLoading.value===!1&&(f>F?D():fo(!0))}))}function kl(){a.value===!1&&O.value!==null&&O.value.updatePosition()}function Cl(f){f!==void 0&&Se(f),n("popupShow",f),b.hasPopupOpen=!0,b.onControlFocusin(f)}function El(f){f!==void 0&&Se(f),n("popupHide",f),b.hasPopupOpen=!1,b.onControlFocusout(f)}function _l(){p=l.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?t["no-option"]!==void 0||e.onFilter!==void 0||Z.value===!1:!0),E=l.platform.is.ios===!0&&p===!0&&e.useInput===!0?"fade":e.transitionShow}return r.onBeforeUpdate(_l),r.onUpdated(kl),_l(),r.onBeforeUnmount(()=>{m!==null&&clearTimeout(m),y!==null&&clearTimeout(y)}),Object.assign(o,{showPopup:ot,hidePopup:je,removeAtIndex:uo,add:hl,toggleOption:He,getOptionIndex:()=>s.value,setOptionIndex:et,moveOptionSelection:en,filter:tt,updateMenuPosition:kl,updateInputValue:St,isOptionSelected:co,getEmittingOptionValue:ml,isOptionDisabled:(...f)=>Ge.value.apply(null,f)===!0,getOptionValue:(...f)=>Ce.value.apply(null,f),getOptionLabel:(...f)=>pe.value.apply(null,f)}),Object.assign(b,{innerValue:g,fieldClass:r.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:C,targetRef:q,hasValue:Q,showPopup:ot,floatingLabel:r.computed(()=>e.hideSelected!==!0&&Q.value===!0||typeof d.value=="number"||d.value.length!==0||ct(e.displayValue)),getControlChild:()=>{if(b.editable.value!==!1&&(a.value===!0||Z.value!==!0||t["no-option"]!==void 0))return p===!0?yu():mu();b.hasPopupOpen===!0&&(b.hasPopupOpen=!1)},controlEvents:{onFocusin(f){b.onControlFocusin(f)},onFocusout(f){b.onControlFocusout(f,()=>{rt(),nt()})},onClick(f){if(ye(f),p!==!0&&i.value===!0){nt(),q.value!==null&&q.value.focus();return}ot(f)}},getControl:f=>{const F=du(),I=f===!0||a.value!==!0||p!==!0;if(e.useInput===!0)F.push(fu(f,I));else if(b.editable.value===!0){const ee=I===!0?Yt.value:void 0;F.push(r.h("input",{ref:I===!0?q:void 0,key:"d_t",class:"q-select__focus-target",id:I===!0?b.targetUid.value:void 0,value:ne.value,readonly:!0,"data-autofocus":f===!0||e.autofocus===!0||void 0,...ee,onKeydown:bl,onKeyup:gl,onKeypress:yl})),I===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&F.push(r.h("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:vl}))}if(_.value!==void 0&&e.disable!==!0&&Gt.value.length!==0){const ee=Gt.value.map(G=>r.h("option",{value:G,selected:!0}));F.push(r.h("select",{class:"hidden",name:_.value,multiple:e.multiple},ee))}const Y=e.useInput===!0||I!==!0?void 0:b.splitAttrs.attributes.value;return r.h("div",{class:"q-field__native row items-center",...Y,...b.splitAttrs.listeners.value},F)},getInnerAppend:()=>e.loading!==!0&&u.value!==!0&&e.hideDropdownIcon!==!0?[r.h(_e,{class:"q-select__dropdown-icon"+(i.value===!0?" rotate-180":""),name:bt.value})]:null}),Pn(b)}}),ka=ut(r.defineComponent({__name:"AppSelect",props:{modelValue:{},options:{},placeholder:{},emptyText:{},optionLabel:{},optionValue:{},label:{},multiple:{type:Boolean},borderColor:{},isDisabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){r.useCssVars(u=>({"0a94557a":u.borderColor}));const n=e,o=r.ref({}),l=t,i=r.computed({get(){return n.modelValue},set(u){l("update:modelValue",u)}}),a=()=>Array.isArray(i.value)&&!i.value.length?!0:typeof i.value=="string"&&!i.value,s=r.ref(""),d=r.computed(()=>n.options.filter(u=>u[(n==null?void 0:n.optionLabel)||"label"].toLowerCase().includes(s.value)));function c(u,m){m(()=>{s.value=u.toLowerCase()})}return(u,m)=>(r.openBlock(),r.createBlock(r.unref(xa),{ref_key:"select",ref:o,modelValue:i.value,"onUpdate:modelValue":m[0]||(m[0]=y=>i.value=y),options:d.value,"option-value":u.optionValue,"option-label":u.optionLabel,"emit-value":"","map-options":"",disable:u.isDisabled,multiple:u.multiple,outlined:"","stack-label":"","use-input":"",class:r.normalizeClass([u.$style.select]),label:u.label,"input-debounce":"100","popup-content-class":u.$style["app-select__menu"],rounded:"",autocomplete:"",onFilter:c},r.createSlots({"no-option":r.withCtx(()=>[r.createVNode(Mn,null,{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(u.emptyText),1)]),_:1})]),default:r.withCtx(()=>[!s.value&&a()?(r.openBlock(),r.createBlock(Mn,{key:0},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(u.placeholder),1)]),_:1})):r.createCommentVNode("",!0)]),_:2},[u.multiple?{name:"selected-item",fn:r.withCtx(y=>[y.opt?(r.openBlock(),r.createBlock(mr,{key:0,removable:"",class:"q-ma-none",dense:"",tabindex:y.tabindex,color:"white","text-color":"secondary",onRemove:v=>y.removeAtIndex(y.index)},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(y.opt[`${u.optionLabel}`]),1)]),_:2},1032,["tabindex","onRemove"])):r.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["modelValue","options","option-value","option-label","disable","multiple","class","label","popup-content-class"]))}}),[["__cssModules",{$style:{wrap:"_wrap_n46gp_1",select:"_select_n46gp_8",appendWrapper:"_append-wrapper_n46gp_25",menuWrap:"_menu-wrap_n46gp_31",searchWrapper:"_search-wrapper_n46gp_35",appSelectMenu:"_app-select__menu_n46gp_43",qItemLabel:"_q-item__label_n46gp_46"}}]]),Ca={},Ea={class:"app-wrapper"};function _a(e,t){return r.openBlock(),r.createElementBlock("div",Ea,[r.renderSlot(e.$slots,"default",{},void 0,!0)])}const Ta=ut(Ca,[["render",_a],["__scopeId","data-v-6bd37b8f"]]);function Br(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ra}=Object.prototype,{getPrototypeOf:Nn}=Object,Dt=(e=>t=>{const n=Ra.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),we=e=>(e=e.toLowerCase(),t=>Dt(t)===e),Ht=e=>t=>typeof t===e,{isArray:Xe}=Array,ht=Ht("undefined");function Ba(e){return e!==null&&!ht(e)&&e.constructor!==null&&!ht(e.constructor)&&he(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const qr=we("ArrayBuffer");function qa(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&qr(e.buffer),t}const Aa=Ht("string"),he=Ht("function"),Ar=Ht("number"),jt=e=>e!==null&&typeof e=="object",Oa=e=>e===!0||e===!1,Ut=e=>{if(Dt(e)!=="object")return!1;const t=Nn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Pa=we("Date"),Ma=we("File"),La=we("Blob"),Va=we("FileList"),$a=e=>jt(e)&&he(e.pipe),Fa=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||he(e.append)&&((t=Dt(e))==="formdata"||t==="object"&&he(e.toString)&&e.toString()==="[object FormData]"))},Ia=we("URLSearchParams"),[za,Na,Da,Ha]=["ReadableStream","Request","Response","Headers"].map(we),ja=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function pt(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,l;if(typeof e!="object"&&(e=[e]),Xe(e))for(o=0,l=e.length;o<l;o++)t.call(null,e[o],o,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(o=0;o<a;o++)s=i[o],t.call(null,e[s],s,e)}}function Or(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length,l;for(;o-- >0;)if(l=n[o],t===l.toLowerCase())return l;return null}const Fe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Pr=e=>!ht(e)&&e!==Fe;function Dn(){const{caseless:e}=Pr(this)&&this||{},t={},n=(o,l)=>{const i=e&&Or(t,l)||l;Ut(t[i])&&Ut(o)?t[i]=Dn(t[i],o):Ut(o)?t[i]=Dn({},o):Xe(o)?t[i]=o.slice():t[i]=o};for(let o=0,l=arguments.length;o<l;o++)arguments[o]&&pt(arguments[o],n);return t}const Ua=(e,t,n,{allOwnKeys:o}={})=>(pt(t,(l,i)=>{n&&he(l)?e[i]=Br(l,n):e[i]=l},{allOwnKeys:o}),e),Wa=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ka=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Qa=(e,t,n,o)=>{let l,i,a;const s={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),i=l.length;i-- >0;)a=l[i],(!o||o(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Nn(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ja=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},Xa=e=>{if(!e)return null;if(Xe(e))return e;let t=e.length;if(!Ar(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Ya=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Nn(Uint8Array)),Za=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let l;for(;(l=o.next())&&!l.done;){const i=l.value;t.call(e,i[0],i[1])}},Ga=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},es=we("HTMLFormElement"),ts=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,l){return o.toUpperCase()+l}),Mr=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ns=we("RegExp"),Lr=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};pt(n,(l,i)=>{let a;(a=t(l,i,e))!==!1&&(o[i]=a||l)}),Object.defineProperties(e,o)},os=e=>{Lr(e,(t,n)=>{if(he(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(he(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},rs=(e,t)=>{const n={},o=l=>{l.forEach(i=>{n[i]=!0})};return Xe(e)?o(e):o(String(e).split(t)),n},ls=()=>{},is=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Hn="abcdefghijklmnopqrstuvwxyz",Vr="0123456789",$r={DIGIT:Vr,ALPHA:Hn,ALPHA_DIGIT:Hn+Hn.toUpperCase()+Vr},as=(e=16,t=$r.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function ss(e){return!!(e&&he(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const us=e=>{const t=new Array(10),n=(o,l)=>{if(jt(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[l]=o;const i=Xe(o)?[]:{};return pt(o,(a,s)=>{const d=n(a,l+1);!ht(d)&&(i[s]=d)}),t[l]=void 0,i}}return o};return n(e,0)},cs=we("AsyncFunction"),ds=e=>e&&(jt(e)||he(e))&&he(e.then)&&he(e.catch),Fr=((e,t)=>e?setImmediate:t?((n,o)=>(Fe.addEventListener("message",({source:l,data:i})=>{l===Fe&&i===n&&o.length&&o.shift()()},!1),l=>{o.push(l),Fe.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",he(Fe.postMessage)),fs=typeof queueMicrotask<"u"?queueMicrotask.bind(Fe):typeof process<"u"&&process.nextTick||Fr,w={isArray:Xe,isArrayBuffer:qr,isBuffer:Ba,isFormData:Fa,isArrayBufferView:qa,isString:Aa,isNumber:Ar,isBoolean:Oa,isObject:jt,isPlainObject:Ut,isReadableStream:za,isRequest:Na,isResponse:Da,isHeaders:Ha,isUndefined:ht,isDate:Pa,isFile:Ma,isBlob:La,isRegExp:ns,isFunction:he,isStream:$a,isURLSearchParams:Ia,isTypedArray:Ya,isFileList:Va,forEach:pt,merge:Dn,extend:Ua,trim:ja,stripBOM:Wa,inherits:Ka,toFlatObject:Qa,kindOf:Dt,kindOfTest:we,endsWith:Ja,toArray:Xa,forEachEntry:Za,matchAll:Ga,isHTMLForm:es,hasOwnProperty:Mr,hasOwnProp:Mr,reduceDescriptors:Lr,freezeMethods:os,toObjectSet:rs,toCamelCase:ts,noop:ls,toFiniteNumber:is,findKey:Or,global:Fe,isContextDefined:Pr,ALPHABET:$r,generateString:as,isSpecCompliantForm:ss,toJSONObject:us,isAsyncFn:cs,isThenable:ds,setImmediate:Fr,asap:fs};function J(e,t,n,o,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),l&&(this.response=l,this.status=l.status?l.status:null)}w.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.status}}});const Ir=J.prototype,zr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{zr[e]={value:e}}),Object.defineProperties(J,zr),Object.defineProperty(Ir,"isAxiosError",{value:!0}),J.from=(e,t,n,o,l,i)=>{const a=Object.create(Ir);return w.toFlatObject(e,a,function(d){return d!==Error.prototype},s=>s!=="isAxiosError"),J.call(a,e.message,t,n,o,l),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const ms=null;function jn(e){return w.isPlainObject(e)||w.isArray(e)}function Nr(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function Dr(e,t,n){return e?e.concat(t).map(function(l,i){return l=Nr(l),!n&&i?"["+l+"]":l}).join(n?".":""):t}function hs(e){return w.isArray(e)&&!e.some(jn)}const ps=w.toFlatObject(w,{},null,function(t){return/^is[A-Z]/.test(t)});function Wt(e,t,n){if(!w.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=w.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(k,h){return!w.isUndefined(h[k])});const o=n.metaTokens,l=n.visitor||u,i=n.dots,a=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(t);if(!w.isFunction(l))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(w.isDate(p))return p.toISOString();if(!d&&w.isBlob(p))throw new J("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(p)||w.isTypedArray(p)?d&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,k,h){let P=p;if(p&&!h&&typeof p=="object"){if(w.endsWith(k,"{}"))k=o?k:k.slice(0,-2),p=JSON.stringify(p);else if(w.isArray(p)&&hs(p)||(w.isFileList(p)||w.endsWith(k,"[]"))&&(P=w.toArray(p)))return k=Nr(k),P.forEach(function(T,B){!(w.isUndefined(T)||T===null)&&t.append(a===!0?Dr([k],B,i):a===null?k:k+"[]",c(T))}),!1}return jn(p)?!0:(t.append(Dr(h,k,i),c(p)),!1)}const m=[],y=Object.assign(ps,{defaultVisitor:u,convertValue:c,isVisitable:jn});function v(p,k){if(!w.isUndefined(p)){if(m.indexOf(p)!==-1)throw Error("Circular reference detected in "+k.join("."));m.push(p),w.forEach(p,function(P,E){(!(w.isUndefined(P)||P===null)&&l.call(t,P,w.isString(E)?E.trim():E,k,y))===!0&&v(P,k?k.concat(E):[E])}),m.pop()}}if(!w.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Hr(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function Un(e,t){this._pairs=[],e&&Wt(e,this,t)}const jr=Un.prototype;jr.append=function(t,n){this._pairs.push([t,n])},jr.toString=function(t){const n=t?function(o){return t.call(this,o,Hr)}:Hr;return this._pairs.map(function(l){return n(l[0])+"="+n(l[1])},"").join("&")};function gs(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ur(e,t,n){if(!t)return e;const o=n&&n.encode||gs,l=n&&n.serialize;let i;if(l?i=l(t,n):i=w.isURLSearchParams(t)?t.toString():new Un(t,n).toString(o),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Wr{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){w.forEach(this.handlers,function(o){o!==null&&t(o)})}}const Kr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},vs={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Un,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Wn=typeof window<"u"&&typeof document<"u",Kn=typeof navigator=="object"&&navigator||void 0,ys=Wn&&(!Kn||["ReactNative","NativeScript","NS"].indexOf(Kn.product)<0),bs=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ws=Wn&&window.location.href||"http://localhost",de={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Wn,hasStandardBrowserEnv:ys,hasStandardBrowserWebWorkerEnv:bs,navigator:Kn,origin:ws},Symbol.toStringTag,{value:"Module"})),...vs};function Ss(e,t){return Wt(e,new de.classes.URLSearchParams,Object.assign({visitor:function(n,o,l,i){return de.isNode&&w.isBuffer(n)?(this.append(o,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function xs(e){return w.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ks(e){const t={},n=Object.keys(e);let o;const l=n.length;let i;for(o=0;o<l;o++)i=n[o],t[i]=e[i];return t}function Qr(e){function t(n,o,l,i){let a=n[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),d=i>=n.length;return a=!a&&w.isArray(l)?l.length:a,d?(w.hasOwnProp(l,a)?l[a]=[l[a],o]:l[a]=o,!s):((!l[a]||!w.isObject(l[a]))&&(l[a]=[]),t(n,o,l[a],i)&&w.isArray(l[a])&&(l[a]=ks(l[a])),!s)}if(w.isFormData(e)&&w.isFunction(e.entries)){const n={};return w.forEachEntry(e,(o,l)=>{t(xs(o),l,n,0)}),n}return null}function Cs(e,t,n){if(w.isString(e))try{return(t||JSON.parse)(e),w.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(0,JSON.stringify)(e)}const gt={transitional:Kr,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const o=n.getContentType()||"",l=o.indexOf("application/json")>-1,i=w.isObject(t);if(i&&w.isHTMLForm(t)&&(t=new FormData(t)),w.isFormData(t))return l?JSON.stringify(Qr(t)):t;if(w.isArrayBuffer(t)||w.isBuffer(t)||w.isStream(t)||w.isFile(t)||w.isBlob(t)||w.isReadableStream(t))return t;if(w.isArrayBufferView(t))return t.buffer;if(w.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return Ss(t,this.formSerializer).toString();if((s=w.isFileList(t))||o.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Wt(s?{"files[]":t}:t,d&&new d,this.formSerializer)}}return i||l?(n.setContentType("application/json",!1),Cs(t)):t}],transformResponse:[function(t){const n=this.transitional||gt.transitional,o=n&&n.forcedJSONParsing,l=this.responseType==="json";if(w.isResponse(t)||w.isReadableStream(t))return t;if(t&&w.isString(t)&&(o&&!this.responseType||l)){const a=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?J.from(s,J.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:de.classes.FormData,Blob:de.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],e=>{gt.headers[e]={}});const Es=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),_s=e=>{const t={};let n,o,l;return e&&e.split(`
2
+ `).forEach(function(a){l=a.indexOf(":"),n=a.substring(0,l).trim().toLowerCase(),o=a.substring(l+1).trim(),!(!n||t[n]&&Es[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},Jr=Symbol("internals");function vt(e){return e&&String(e).trim().toLowerCase()}function Kt(e){return e===!1||e==null?e:w.isArray(e)?e.map(Kt):String(e)}function Ts(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}const Rs=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Qn(e,t,n,o,l){if(w.isFunction(o))return o.call(this,t,n);if(l&&(t=n),!!w.isString(t)){if(w.isString(o))return t.indexOf(o)!==-1;if(w.isRegExp(o))return o.test(t)}}function Bs(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function qs(e,t){const n=w.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(l,i,a){return this[o].call(this,t,l,i,a)},configurable:!0})})}class fe{constructor(t){t&&this.set(t)}set(t,n,o){const l=this;function i(s,d,c){const u=vt(d);if(!u)throw new Error("header name must be a non-empty string");const m=w.findKey(l,u);(!m||l[m]===void 0||c===!0||c===void 0&&l[m]!==!1)&&(l[m||d]=Kt(s))}const a=(s,d)=>w.forEach(s,(c,u)=>i(c,u,d));if(w.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(w.isString(t)&&(t=t.trim())&&!Rs(t))a(_s(t),n);else if(w.isHeaders(t))for(const[s,d]of t.entries())i(d,s,o);else t!=null&&i(n,t,o);return this}get(t,n){if(t=vt(t),t){const o=w.findKey(this,t);if(o){const l=this[o];if(!n)return l;if(n===!0)return Ts(l);if(w.isFunction(n))return n.call(this,l,o);if(w.isRegExp(n))return n.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=vt(t),t){const o=w.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||Qn(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let l=!1;function i(a){if(a=vt(a),a){const s=w.findKey(o,a);s&&(!n||Qn(o,o[s],s,n))&&(delete o[s],l=!0)}}return w.isArray(t)?t.forEach(i):i(t),l}clear(t){const n=Object.keys(this);let o=n.length,l=!1;for(;o--;){const i=n[o];(!t||Qn(this,this[i],i,t,!0))&&(delete this[i],l=!0)}return l}normalize(t){const n=this,o={};return w.forEach(this,(l,i)=>{const a=w.findKey(o,i);if(a){n[a]=Kt(l),delete n[i];return}const s=t?Bs(i):String(i).trim();s!==i&&delete n[i],n[s]=Kt(l),o[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return w.forEach(this,(o,l)=>{o!=null&&o!==!1&&(n[l]=t&&w.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
3
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(l=>o.set(l)),o}static accessor(t){const o=(this[Jr]=this[Jr]={accessors:{}}).accessors,l=this.prototype;function i(a){const s=vt(a);o[s]||(qs(l,a),o[s]=!0)}return w.isArray(t)?t.forEach(i):i(t),this}}fe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),w.reduceDescriptors(fe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}}),w.freezeMethods(fe);function Jn(e,t){const n=this||gt,o=t||n,l=fe.from(o.headers);let i=o.data;return w.forEach(e,function(s){i=s.call(n,i,l.normalize(),t?t.status:void 0)}),l.normalize(),i}function Xr(e){return!!(e&&e.__CANCEL__)}function Ye(e,t,n){J.call(this,e??"canceled",J.ERR_CANCELED,t,n),this.name="CanceledError"}w.inherits(Ye,J,{__CANCEL__:!0});function Yr(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new J("Request failed with status code "+n.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function As(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Os(e,t){e=e||10;const n=new Array(e),o=new Array(e);let l=0,i=0,a;return t=t!==void 0?t:1e3,function(d){const c=Date.now(),u=o[i];a||(a=c),n[l]=d,o[l]=c;let m=i,y=0;for(;m!==l;)y+=n[m++],m=m%e;if(l=(l+1)%e,l===i&&(i=(i+1)%e),c-a<t)return;const v=u&&c-u;return v?Math.round(y*1e3/v):void 0}}function Ps(e,t){let n=0,o=1e3/t,l,i;const a=(c,u=Date.now())=>{n=u,l=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),m=u-n;m>=o?a(c,u):(l=c,i||(i=setTimeout(()=>{i=null,a(l)},o-m)))},()=>l&&a(l)]}const Qt=(e,t,n=3)=>{let o=0;const l=Os(50,250);return Ps(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,d=a-o,c=l(d),u=a<=s;o=a;const m={loaded:a,total:s,progress:s?a/s:void 0,bytes:d,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(m)},n)},Zr=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},Gr=e=>(...t)=>w.asap(()=>e(...t)),Ms=de.hasStandardBrowserEnv?function(){const t=de.navigator&&/(msie|trident)/i.test(de.navigator.userAgent),n=document.createElement("a");let o;function l(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=l(window.location.href),function(a){const s=w.isString(a)?l(a):a;return s.protocol===o.protocol&&s.host===o.host}}():function(){return function(){return!0}}(),Ls=de.hasStandardBrowserEnv?{write(e,t,n,o,l,i){const a=[e+"="+encodeURIComponent(t)];w.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),w.isString(o)&&a.push("path="+o),w.isString(l)&&a.push("domain="+l),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Vs(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function $s(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function el(e,t){return e&&!Vs(t)?$s(e,t):t}const tl=e=>e instanceof fe?{...e}:e;function Ie(e,t){t=t||{};const n={};function o(c,u,m){return w.isPlainObject(c)&&w.isPlainObject(u)?w.merge.call({caseless:m},c,u):w.isPlainObject(u)?w.merge({},u):w.isArray(u)?u.slice():u}function l(c,u,m){if(w.isUndefined(u)){if(!w.isUndefined(c))return o(void 0,c,m)}else return o(c,u,m)}function i(c,u){if(!w.isUndefined(u))return o(void 0,u)}function a(c,u){if(w.isUndefined(u)){if(!w.isUndefined(c))return o(void 0,c)}else return o(void 0,u)}function s(c,u,m){if(m in t)return o(c,u);if(m in e)return o(void 0,c)}const d={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u)=>l(tl(c),tl(u),!0)};return w.forEach(Object.keys(Object.assign({},e,t)),function(u){const m=d[u]||l,y=m(e[u],t[u],u);w.isUndefined(y)&&m!==s||(n[u]=y)}),n}const nl=e=>{const t=Ie({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:l,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=fe.from(a),t.url=Ur(el(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let d;if(w.isFormData(n)){if(de.hasStandardBrowserEnv||de.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((d=a.getContentType())!==!1){const[c,...u]=d?d.split(";").map(m=>m.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(de.hasStandardBrowserEnv&&(o&&w.isFunction(o)&&(o=o(t)),o||o!==!1&&Ms(t.url))){const c=l&&i&&Ls.read(i);c&&a.set(l,c)}return t},Fs=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,o){const l=nl(e);let i=l.data;const a=fe.from(l.headers).normalize();let{responseType:s,onUploadProgress:d,onDownloadProgress:c}=l,u,m,y,v,p;function k(){v&&v(),p&&p(),l.cancelToken&&l.cancelToken.unsubscribe(u),l.signal&&l.signal.removeEventListener("abort",u)}let h=new XMLHttpRequest;h.open(l.method.toUpperCase(),l.url,!0),h.timeout=l.timeout;function P(){if(!h)return;const T=fe.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),C={data:!s||s==="text"||s==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:T,config:e,request:h};Yr(function(O){n(O),k()},function(O){o(O),k()},C),h=null}"onloadend"in h?h.onloadend=P:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(P)},h.onabort=function(){h&&(o(new J("Request aborted",J.ECONNABORTED,e,h)),h=null)},h.onerror=function(){o(new J("Network Error",J.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let B=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const C=l.transitional||Kr;l.timeoutErrorMessage&&(B=l.timeoutErrorMessage),o(new J(B,C.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,h)),h=null},i===void 0&&a.setContentType(null),"setRequestHeader"in h&&w.forEach(a.toJSON(),function(B,C){h.setRequestHeader(C,B)}),w.isUndefined(l.withCredentials)||(h.withCredentials=!!l.withCredentials),s&&s!=="json"&&(h.responseType=l.responseType),c&&([y,p]=Qt(c,!0),h.addEventListener("progress",y)),d&&h.upload&&([m,v]=Qt(d),h.upload.addEventListener("progress",m),h.upload.addEventListener("loadend",v)),(l.cancelToken||l.signal)&&(u=T=>{h&&(o(!T||T.type?new Ye(null,e,h):T),h.abort(),h=null)},l.cancelToken&&l.cancelToken.subscribe(u),l.signal&&(l.signal.aborted?u():l.signal.addEventListener("abort",u)));const E=As(l.url);if(E&&de.protocols.indexOf(E)===-1){o(new J("Unsupported protocol "+E+":",J.ERR_BAD_REQUEST,e));return}h.send(i||null)})},Is=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let o=new AbortController,l;const i=function(c){if(!l){l=!0,s();const u=c instanceof Error?c:this.reason;o.abort(u instanceof J?u:new Ye(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,i(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:d}=o;return d.unsubscribe=()=>w.asap(s),d}},zs=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let o=0,l;for(;o<n;)l=o+t,yield e.slice(o,l),o=l},Ns=async function*(e,t){for await(const n of Ds(e))yield*zs(n,t)},Ds=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:o}=await t.read();if(n)break;yield o}}finally{await t.cancel()}},ol=(e,t,n,o)=>{const l=Ns(e,t);let i=0,a,s=d=>{a||(a=!0,o&&o(d))};return new ReadableStream({async pull(d){try{const{done:c,value:u}=await l.next();if(c){s(),d.close();return}let m=u.byteLength;if(n){let y=i+=m;n(y)}d.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(d){return s(d),l.return()}},{highWaterMark:2})},Jt=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",rl=Jt&&typeof ReadableStream=="function",Hs=Jt&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ll=(e,...t)=>{try{return!!e(...t)}catch{return!1}},js=rl&&ll(()=>{let e=!1;const t=new Request(de.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),il=64*1024,Xn=rl&&ll(()=>w.isReadableStream(new Response("").body)),Xt={stream:Xn&&(e=>e.body)};Jt&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Xt[t]&&(Xt[t]=w.isFunction(e[t])?n=>n[t]():(n,o)=>{throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,o)})})})(new Response);const Us=async e=>{if(e==null)return 0;if(w.isBlob(e))return e.size;if(w.isSpecCompliantForm(e))return(await new Request(de.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(w.isArrayBufferView(e)||w.isArrayBuffer(e))return e.byteLength;if(w.isURLSearchParams(e)&&(e=e+""),w.isString(e))return(await Hs(e)).byteLength},Ws=async(e,t)=>{const n=w.toFiniteNumber(e.getContentLength());return n??Us(t)},Yn={http:ms,xhr:Fs,fetch:Jt&&(async e=>{let{url:t,method:n,data:o,signal:l,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:d,responseType:c,headers:u,withCredentials:m="same-origin",fetchOptions:y}=nl(e);c=c?(c+"").toLowerCase():"text";let v=Is([l,i&&i.toAbortSignal()],a),p;const k=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let h;try{if(d&&js&&n!=="get"&&n!=="head"&&(h=await Ws(u,o))!==0){let C=new Request(t,{method:"POST",body:o,duplex:"half"}),q;if(w.isFormData(o)&&(q=C.headers.get("content-type"))&&u.setContentType(q),C.body){const[O,N]=Zr(h,Qt(Gr(d)));o=ol(C.body,il,O,N)}}w.isString(m)||(m=m?"include":"omit");const P="credentials"in Request.prototype;p=new Request(t,{...y,signal:v,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:o,duplex:"half",credentials:P?m:void 0});let E=await fetch(p);const T=Xn&&(c==="stream"||c==="response");if(Xn&&(s||T&&k)){const C={};["status","statusText","headers"].forEach(S=>{C[S]=E[S]});const q=w.toFiniteNumber(E.headers.get("content-length")),[O,N]=s&&Zr(q,Qt(Gr(s),!0))||[];E=new Response(ol(E.body,il,O,()=>{N&&N(),k&&k()}),C)}c=c||"text";let B=await Xt[w.findKey(Xt,c)||"text"](E,e);return!T&&k&&k(),await new Promise((C,q)=>{Yr(C,q,{data:B,headers:fe.from(E.headers),status:E.status,statusText:E.statusText,config:e,request:p})})}catch(P){throw k&&k(),P&&P.name==="TypeError"&&/fetch/i.test(P.message)?Object.assign(new J("Network Error",J.ERR_NETWORK,e,p),{cause:P.cause||P}):J.from(P,P&&P.code,e,p)}})};w.forEach(Yn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const al=e=>`- ${e}`,Ks=e=>w.isFunction(e)||e===null||e===!1,sl={getAdapter:e=>{e=w.isArray(e)?e:[e];const{length:t}=e;let n,o;const l={};for(let i=0;i<t;i++){n=e[i];let a;if(o=n,!Ks(n)&&(o=Yn[(a=String(n)).toLowerCase()],o===void 0))throw new J(`Unknown adapter '${a}'`);if(o)break;l[a||"#"+i]=o}if(!o){const i=Object.entries(l).map(([s,d])=>`adapter ${s} `+(d===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
4
4
  `+i.map(al).join(`
5
- `):" "+al(i[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:Yn};function Zn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ye(null,e)}function ul(e){return Zn(e),e.headers=fe.from(e.headers),e.data=Jn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),sl.getAdapter(e.adapter||gt.adapter)(e).then(function(o){return Zn(e),o.data=Jn.call(e,e.transformResponse,o),o.headers=fe.from(o.headers),o},function(o){return Xr(o)||(Zn(e),o&&o.response&&(o.response.data=Jn.call(e,e.transformResponse,o.response),o.response.headers=fe.from(o.response.headers))),Promise.reject(o)})}const cl="1.7.7",Gn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Gn[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const dl={};Gn.transitional=function(t,n,o){function l(i,a){return"[Axios v"+cl+"] Transitional option '"+i+"'"+a+(o?". "+o:"")}return(i,a,s)=>{if(t===!1)throw new J(l(a," has been removed"+(n?" in "+n:"")),J.ERR_DEPRECATED);return n&&!dl[a]&&(dl[a]=!0,console.warn(l(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};function Qs(e,t,n){if(typeof e!="object")throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let l=o.length;for(;l-- >0;){const i=o[l],a=t[i];if(a){const s=e[i],d=s===void 0||a(s,i,e);if(d!==!0)throw new J("option "+i+" must be "+d,J.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new J("Unknown option "+i,J.ERR_BAD_OPTION)}}const eo={assertOptions:Qs,validators:Gn},qe=eo.validators;class Ie{constructor(t){this.defaults=t,this.interceptors={request:new Wr,response:new Wr}}async request(t,n){try{return await this._request(t,n)}catch(o){if(o instanceof Error){let l;Error.captureStackTrace?Error.captureStackTrace(l={}):l=new Error;const i=l.stack?l.stack.replace(/^.+\n/,""):"";try{o.stack?i&&!String(o.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(o.stack+=`
6
- `+i):o.stack=i}catch{}}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ze(this.defaults,n);const{transitional:o,paramsSerializer:l,headers:i}=n;o!==void 0&&eo.assertOptions(o,{silentJSONParsing:qe.transitional(qe.boolean),forcedJSONParsing:qe.transitional(qe.boolean),clarifyTimeoutError:qe.transitional(qe.boolean)},!1),l!=null&&(w.isFunction(l)?n.paramsSerializer={serialize:l}:eo.assertOptions(l,{encode:qe.function,serialize:qe.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&w.merge(i.common,i[n.method]);i&&w.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=fe.concat(a,i);const s=[];let d=!0;this.interceptors.request.forEach(function(k){typeof k.runWhen=="function"&&k.runWhen(n)===!1||(d=d&&k.synchronous,s.unshift(k.fulfilled,k.rejected))});const c=[];this.interceptors.response.forEach(function(k){c.push(k.fulfilled,k.rejected)});let u,m=0,y;if(!d){const p=[ul.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,c),y=p.length,u=Promise.resolve(n);m<y;)u=u.then(p[m++],p[m++]);return u}y=s.length;let v=n;for(m=0;m<y;){const p=s[m++],k=s[m++];try{v=p(v)}catch(h){k.call(this,h);break}}try{u=ul.call(this,v)}catch(p){return Promise.reject(p)}for(m=0,y=c.length;m<y;)u=u.then(c[m++],c[m++]);return u}getUri(t){t=ze(this.defaults,t);const n=el(t.baseURL,t.url);return Ur(n,t.params,t.paramsSerializer)}}w.forEach(["delete","get","head","options"],function(t){Ie.prototype[t]=function(n,o){return this.request(ze(o||{},{method:t,url:n,data:(o||{}).data}))}}),w.forEach(["post","put","patch"],function(t){function n(o){return function(i,a,s){return this.request(ze(s||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Ie.prototype[t]=n(),Ie.prototype[t+"Form"]=n(!0)});class to{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const o=this;this.promise.then(l=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](l);o._listeners=null}),this.promise.then=l=>{let i;const a=new Promise(s=>{o.subscribe(s),i=s}).then(l);return a.cancel=function(){o.unsubscribe(i)},a},t(function(i,a,s){o.reason||(o.reason=new Ye(i,a,s),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=o=>{t.abort(o)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new to(function(l){t=l}),cancel:t}}}function Js(e){return function(n){return e.apply(null,n)}}function Xs(e){return w.isObject(e)&&e.isAxiosError===!0}const no={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(no).forEach(([e,t])=>{no[t]=e});function fl(e){const t=new Ie(e),n=Br(Ie.prototype.request,t);return w.extend(n,Ie.prototype,t,{allOwnKeys:!0}),w.extend(n,t,null,{allOwnKeys:!0}),n.create=function(l){return fl(ze(e,l))},n}const le=fl(gt);le.Axios=Ie,le.CanceledError=Ye,le.CancelToken=to,le.isCancel=Xr,le.VERSION=cl,le.toFormData=Wt,le.AxiosError=J,le.Cancel=le.CanceledError,le.all=function(t){return Promise.all(t)},le.spread=Js,le.isAxiosError=Xs,le.mergeConfig=ze,le.AxiosHeaders=fe,le.formToJSON=e=>Qr(w.isHTMLForm(e)?new FormData(e):e),le.getAdapter=sl.getAdapter,le.HttpStatusCode=no,le.default=le;class yt{constructor(){Tl(this,"axiosInstance");this.axiosInstance=le.create({baseURL:process.env.VUE_APP_BACKEND,headers:{"Content-Type":"application/json"}}),this.axiosInstance.interceptors.request.use(t=>{const n=this.getToken();return n&&t.headers&&(t.headers.Authorization=`Bearer ${n}`),t},t=>Promise.reject(t)),this.axiosInstance.interceptors.response.use(t=>t.data,t=>{var n,o;return(((n=t.response)==null?void 0:n.status)===401||((o=t.response)==null?void 0:o.status)===403)&&this.logout(),Promise.reject(t)})}getToken(){return localStorage.getItem("token")}removeToken(){localStorage.removeItem("token")}logout(){this.removeToken(),window.location.href="/sign-in"}handleError(t){t.response?console.error("API Error:",t.response.status,t.response.data):t.request?console.error("No response received:",t.request):console.error("Error during request setup:",t.message)}async get(t,n){try{const o=await this.axiosInstance.get(t,n);return(o==null?void 0:o.data)??o}catch(o){const l=o;throw this.handleError(l),o}}async delete(t,n){try{return await this.axiosInstance.delete(t,n)}catch(o){const l=o;throw this.handleError(l),o}}async post(t,n,o){try{return(await this.axiosInstance.post(t,n,o)).data}catch(l){const i=l;throw this.handleError(i),l}}async put(t,n,o){try{return(await this.axiosInstance.put(t,n,o)).data}catch(l){const i=l;throw this.handleError(i),l}}}class Ys extends yt{async fetchCriticalPathTasks(t){return await this.get(`gantt/get_list_task_on_critical_path?${t}`)}async fetchGanttList(t){return await this.get(`/gantt/tasks?${t}`)}}let oo;function Zs(){return oo||(oo=new Ys),oo}class Gs extends yt{async fetchPieProjects(t){return await this.get("repairs/pie/projects?"+t)}async fetchPieTasks(t){return await this.get("repairs/pie/tasks?"+t)}async fetchPiePersonnel(t){return await this.get("repairs/metrics/get_list_position?"+t)}async fetchPiePersonnelInfo(t){return await this.get(`repairs/metrics/get_list_user_by_position?${t}`)}async fetchPieWorkZone(t){return await this.get("repairs/metrics/get_list_work_zone_instrument?"+t)}async fetchPieCriticalPath(t){return await this.get("repairs/metrics/get_critical_path_group_by_status?"+t)}async fetchPieCriticalPathInfo(t){return await this.get(`repairs/metrics/get_list_task_critical_path_by_status?${t}`)}async fetchPieTmc(t){return await this.get("repairs/metrics/get_list_instrument_type?"+t)}async fetchPieTmcInfo(t){return await this.get(`repairs/metrics/get_list_warehouse_by_instrument_type?${t}`)}async fetchPieUntimelyClosedTask(t){return await this.get("repairs/metrics/get_list_comment_type?"+t)}async fetchPieUntimelyClosedTaskInfo(t){return await this.get(`repairs/metrics/get_list_task_by_comment_type?${t}`)}async fetchPieAdditionalTasks(t){return await this.get("repairs/metrics/get_list_task_after_plan_fixate_group_by_status?"+t)}async fetchPieAdditionalTasksInfo(t){return await this.get(`repairs/metrics/get_list_task_after_plan_fixate_by_status?${t}`)}async fetchPersonnel(t){return await this.get("repairs/statistic/personnel?"+t)}async fetchPieExpired(t){return await this.get("repairs/metrics/get_list_task_expired_group_by_status?"+t)}async fetchPieExpiredInfo(t){return await this.get(`repairs/metrics/get_list_task_expired?${t}`)}}let ro;function eu(){return ro||(ro=new Gs),ro}class tu extends yt{async fetchProjectById(t){return await this.get(`/projects/${t}`)}}let lo;function nu(){return lo||(lo=new tu),lo}class ou extends yt{fetchFilters(t){return this.get(`repairs?smart=1&${t}`)}fetchRepairs(t,n,o,l,i){return this.get("repairs"+(t?`${n}&per_page=100000${i?"&"+i:""}&${o?"":l}`:`?per_page=100000${i?"&"+i:""}&${l}`))}fetchEquipment(){return this.get("repairs/equipment/list?per_page=100000")}createRepair(t){return this.post("/repairs/equipments",t)}startRepair(t){return this.post(`/repairs/${t}/start`,null)}finishRepair(t){return this.post(`/repairs/${t}/finish`,null)}finishPreparationProject(t){return this.post(`/repairs/${t}/finish_preparation`,null)}moveRepairToCurrent(t){return this.post("/repairs/transfer_repair_plan_to_current",{repairs:[t]})}moveArchiveToCurrent(t){return this.post("/repairs/transfer_repair_archive_to_current",{repairs_ids:[t]})}moveRepairToApr(t){return this.post("/repairs/transfer_repair_current_to_plan",{repairs:[t]})}moveRepairToArchive(t){return this.post("/repairs/transfer_repair_current_to_archive",{repairs_ids:[t]})}updateRepair(t,n){return this.put(`/repairs/${n}`,t)}deleteRepair(t){return this.delete(`/repairs/${t}`)}}let io;function ru(){return io||(io=new ou),io}class lu extends yt{async fetchTaskById(t){return await this.get(`/tasks/${t}`)}}let ao;function iu(){return ao||(ao=new lu),ao}const au=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),su=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),uu={useGanttService:Zs,useMetricsService:eu,useProjectsService:nu,useRepairsService:ru,useTasksService:iu},cu={...au,...su};ie.AppButton=Bi,ie.AppInput=Qi,ie.AppLayout=ta,ie.AppSelect=ka,ie.AppWrapper=Ta,ie.apiServices=uu,ie.apiServicesTypes=cu,Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"})});
5
+ `):" "+al(i[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:Yn};function Zn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ye(null,e)}function ul(e){return Zn(e),e.headers=fe.from(e.headers),e.data=Jn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),sl.getAdapter(e.adapter||gt.adapter)(e).then(function(o){return Zn(e),o.data=Jn.call(e,e.transformResponse,o),o.headers=fe.from(o.headers),o},function(o){return Xr(o)||(Zn(e),o&&o.response&&(o.response.data=Jn.call(e,e.transformResponse,o.response),o.response.headers=fe.from(o.response.headers))),Promise.reject(o)})}const cl="1.7.7",Gn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Gn[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const dl={};Gn.transitional=function(t,n,o){function l(i,a){return"[Axios v"+cl+"] Transitional option '"+i+"'"+a+(o?". "+o:"")}return(i,a,s)=>{if(t===!1)throw new J(l(a," has been removed"+(n?" in "+n:"")),J.ERR_DEPRECATED);return n&&!dl[a]&&(dl[a]=!0,console.warn(l(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};function Qs(e,t,n){if(typeof e!="object")throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let l=o.length;for(;l-- >0;){const i=o[l],a=t[i];if(a){const s=e[i],d=s===void 0||a(s,i,e);if(d!==!0)throw new J("option "+i+" must be "+d,J.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new J("Unknown option "+i,J.ERR_BAD_OPTION)}}const eo={assertOptions:Qs,validators:Gn},qe=eo.validators;class ze{constructor(t){this.defaults=t,this.interceptors={request:new Wr,response:new Wr}}async request(t,n){try{return await this._request(t,n)}catch(o){if(o instanceof Error){let l;Error.captureStackTrace?Error.captureStackTrace(l={}):l=new Error;const i=l.stack?l.stack.replace(/^.+\n/,""):"";try{o.stack?i&&!String(o.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(o.stack+=`
6
+ `+i):o.stack=i}catch{}}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ie(this.defaults,n);const{transitional:o,paramsSerializer:l,headers:i}=n;o!==void 0&&eo.assertOptions(o,{silentJSONParsing:qe.transitional(qe.boolean),forcedJSONParsing:qe.transitional(qe.boolean),clarifyTimeoutError:qe.transitional(qe.boolean)},!1),l!=null&&(w.isFunction(l)?n.paramsSerializer={serialize:l}:eo.assertOptions(l,{encode:qe.function,serialize:qe.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&w.merge(i.common,i[n.method]);i&&w.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=fe.concat(a,i);const s=[];let d=!0;this.interceptors.request.forEach(function(k){typeof k.runWhen=="function"&&k.runWhen(n)===!1||(d=d&&k.synchronous,s.unshift(k.fulfilled,k.rejected))});const c=[];this.interceptors.response.forEach(function(k){c.push(k.fulfilled,k.rejected)});let u,m=0,y;if(!d){const p=[ul.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,c),y=p.length,u=Promise.resolve(n);m<y;)u=u.then(p[m++],p[m++]);return u}y=s.length;let v=n;for(m=0;m<y;){const p=s[m++],k=s[m++];try{v=p(v)}catch(h){k.call(this,h);break}}try{u=ul.call(this,v)}catch(p){return Promise.reject(p)}for(m=0,y=c.length;m<y;)u=u.then(c[m++],c[m++]);return u}getUri(t){t=Ie(this.defaults,t);const n=el(t.baseURL,t.url);return Ur(n,t.params,t.paramsSerializer)}}w.forEach(["delete","get","head","options"],function(t){ze.prototype[t]=function(n,o){return this.request(Ie(o||{},{method:t,url:n,data:(o||{}).data}))}}),w.forEach(["post","put","patch"],function(t){function n(o){return function(i,a,s){return this.request(Ie(s||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}ze.prototype[t]=n(),ze.prototype[t+"Form"]=n(!0)});class to{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const o=this;this.promise.then(l=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](l);o._listeners=null}),this.promise.then=l=>{let i;const a=new Promise(s=>{o.subscribe(s),i=s}).then(l);return a.cancel=function(){o.unsubscribe(i)},a},t(function(i,a,s){o.reason||(o.reason=new Ye(i,a,s),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=o=>{t.abort(o)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new to(function(l){t=l}),cancel:t}}}function Js(e){return function(n){return e.apply(null,n)}}function Xs(e){return w.isObject(e)&&e.isAxiosError===!0}const no={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(no).forEach(([e,t])=>{no[t]=e});function fl(e){const t=new ze(e),n=Br(ze.prototype.request,t);return w.extend(n,ze.prototype,t,{allOwnKeys:!0}),w.extend(n,t,null,{allOwnKeys:!0}),n.create=function(l){return fl(Ie(e,l))},n}const ie=fl(gt);ie.Axios=ze,ie.CanceledError=Ye,ie.CancelToken=to,ie.isCancel=Xr,ie.VERSION=cl,ie.toFormData=Wt,ie.AxiosError=J,ie.Cancel=ie.CanceledError,ie.all=function(t){return Promise.all(t)},ie.spread=Js,ie.isAxiosError=Xs,ie.mergeConfig=Ie,ie.AxiosHeaders=fe,ie.formToJSON=e=>Qr(w.isHTMLForm(e)?new FormData(e):e),ie.getAdapter=sl.getAdapter,ie.HttpStatusCode=no,ie.default=ie;class yt{constructor(){Tl(this,"axiosInstance");this.axiosInstance=ie.create({baseURL:process.env.VUE_APP_BACKEND,headers:{"Content-Type":"application/json"}}),this.axiosInstance.interceptors.request.use(t=>{const n=this.getToken();return n&&t.headers&&(t.headers.Authorization=`Bearer ${n}`),t},t=>Promise.reject(t)),this.axiosInstance.interceptors.response.use(t=>t.data,t=>{var n,o;return(((n=t.response)==null?void 0:n.status)===401||((o=t.response)==null?void 0:o.status)===403)&&this.logout(),Promise.reject(t)})}getToken(){return localStorage.getItem("token")}removeToken(){localStorage.removeItem("token")}logout(){this.removeToken(),window.location.href="/sign-in"}handleError(t){t.response?console.error("API Error:",t.response.status,t.response.data):t.request?console.error("No response received:",t.request):console.error("Error during request setup:",t.message)}async get(t,n){try{const o=await this.axiosInstance.get(t,n);return(o==null?void 0:o.data)??o}catch(o){const l=o;throw this.handleError(l),o}}async delete(t,n){try{return await this.axiosInstance.delete(t,n)}catch(o){const l=o;throw this.handleError(l),o}}async post(t,n,o){try{return(await this.axiosInstance.post(t,n,o)).data}catch(l){const i=l;throw this.handleError(i),l}}async put(t,n,o){try{return(await this.axiosInstance.put(t,n,o)).data}catch(l){const i=l;throw this.handleError(i),l}}}class Ys extends yt{async fetchCriticalPathTasks(t){return await this.get(`gantt/get_list_task_on_critical_path?${t}`)}async fetchGanttList(t){return await this.get(`/gantt/tasks?${t}`)}}let oo;function Zs(){return oo||(oo=new Ys),oo}class Gs extends yt{async fetchPieProjects(t){return await this.get("repairs/pie/projects?"+t)}async fetchPieTasks(t){return await this.get("repairs/pie/tasks?"+t)}async fetchPiePersonnel(t){return await this.get("repairs/metrics/get_list_position?"+t)}async fetchPiePersonnelInfo(t){return await this.get(`repairs/metrics/get_list_user_by_position?${t}`)}async fetchPieWorkZone(t){return await this.get("repairs/metrics/get_list_work_zone_instrument?"+t)}async fetchPieCriticalPath(t){return await this.get("repairs/metrics/get_critical_path_group_by_status?"+t)}async fetchPieCriticalPathInfo(t){return await this.get(`repairs/metrics/get_list_task_critical_path_by_status?${t}`)}async fetchPieTmc(t){return await this.get("repairs/metrics/get_list_instrument_type?"+t)}async fetchPieTmcInfo(t){return await this.get(`repairs/metrics/get_list_warehouse_by_instrument_type?${t}`)}async fetchPieUntimelyClosedTask(t){return await this.get("repairs/metrics/get_list_comment_type?"+t)}async fetchPieUntimelyClosedTaskInfo(t){return await this.get(`repairs/metrics/get_list_task_by_comment_type?${t}`)}async fetchPieAdditionalTasks(t){return await this.get("repairs/metrics/get_list_task_after_plan_fixate_group_by_status?"+t)}async fetchPieAdditionalTasksInfo(t){return await this.get(`repairs/metrics/get_list_task_after_plan_fixate_by_status?${t}`)}async fetchPersonnel(t){return await this.get("repairs/statistic/personnel?"+t)}async fetchPieExpired(t){return await this.get("repairs/metrics/get_list_task_expired_group_by_status?"+t)}async fetchPieExpiredInfo(t){return await this.get(`repairs/metrics/get_list_task_expired?${t}`)}}let ro;function eu(){return ro||(ro=new Gs),ro}class tu extends yt{async fetchProjectById(t){return await this.get(`/projects/${t}`)}}let lo;function nu(){return lo||(lo=new tu),lo}class ou extends yt{fetchFilters(t){return this.get(`repairs?smart=1&${t}`)}fetchRepairs(t,n,o,l,i){return this.get("repairs"+(t?`${n}&per_page=100000${i?"&"+i:""}&${o?"":l}`:`?per_page=100000${i?"&"+i:""}&${l}`))}fetchEquipment(){return this.get("repairs/equipment/list?per_page=100000")}createRepair(t){return this.post("/repairs/equipments",t)}startRepair(t){return this.post(`/repairs/${t}/start`,null)}finishRepair(t){return this.post(`/repairs/${t}/finish`,null)}finishPreparationProject(t){return this.post(`/repairs/${t}/finish_preparation`,null)}moveRepairToCurrent(t){return this.post("/repairs/transfer_repair_plan_to_current",{repairs:[t]})}moveArchiveToCurrent(t){return this.post("/repairs/transfer_repair_archive_to_current",{repairs_ids:[t]})}moveRepairToApr(t){return this.post("/repairs/transfer_repair_current_to_plan",{repairs:[t]})}moveRepairToArchive(t){return this.post("/repairs/transfer_repair_current_to_archive",{repairs_ids:[t]})}updateRepair(t,n){return this.put(`/repairs/${n}`,t)}deleteRepair(t){return this.delete(`/repairs/${t}`)}}let io;function ru(){return io||(io=new ou),io}class lu extends yt{async fetchTaskById(t){return await this.get(`/tasks/${t}`)}}let ao;function iu(){return ao||(ao=new lu),ao}te.AppButton=Bi,te.AppInput=Qi,te.AppLayout=ta,te.AppSelect=ka,te.AppWrapper=Ta,te.useGanttService=Zs,te.useMetricsService=eu,te.useProjectsService=nu,te.useRepairsService=ru,te.useTasksService=iu,Object.defineProperty(te,Symbol.toStringTag,{value:"Module"})});