@validol4ik/uikit 0.7.8 → 0.7.9

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 +1 @@
1
- "use strict";const t=require("vue");const Te=({app:e})=>{const n=e.config.globalProperties.$q;n.iconMapFn=o=>{if(o.startsWith("icon-kl:"))return{cls:`icon-kl icon-kl-${o.slice(8)}`}}},J={PRIMARY:"primary",INFO:"info"},P={SM:"sm",MD:"md",LG:"lg",XL:"xl"},Ne={[P.SM]:"3px 9px",[P.MD]:"5px 12px",[P.LG]:"6px 15px",[P.XL]:"9px 20px"},Z={xs:18,sm:24,md:32,lg:38,xl:46},Q={size:String};function U(e,n=Z){return t.computed(()=>e.size!==void 0?{fontSize:e.size in n?`${n[e.size]}px`:e.size}:null)}function x(e){return t.markRaw(t.defineComponent(e))}function ve(e){return t.markRaw(e)}function ee(e,n){return e!==void 0&&e()||n}function De(e,n){if(e!==void 0){const o=e();if(o!=null)return o.slice()}return n}function M(e,n){return e!==void 0?n.concat(e()):n}function Oe(e,n){return e===void 0?n:n!==void 0?n.concat(e()):e()}function je(e,n,o,l,i,a){n.key=l+i;const r=t.h(e,n,o);return i===!0?t.withDirectives(r,a()):r}const ae="0 0 24 24",W=e=>e,G=e=>`ionicons ${e}`,ge={"mdi-":e=>`mdi ${e}`,"icon-":W,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":G,"ion-ios":G,"ion-logo":G,"iconfont ":W,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`,"i-":W},he={o_:"-outlined",r_:"-round",s_:"-sharp"},be={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},xe=new RegExp("^("+Object.keys(ge).join("|")+")"),Fe=new RegExp("^("+Object.keys(he).join("|")+")"),re=new RegExp("^("+Object.keys(be).join("|")+")"),Ke=/^[Mm]\s?[-+]?\.?\d/,Qe=/^img:/,Ue=/^svguse:/,He=/^ion-/,Xe=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,Y=x({name:"QIcon",props:{...Q,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:n}){const{proxy:{$q:o}}=t.getCurrentInstance(),l=U(e),i=t.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),a=t.computed(()=>{let r,s=e.name;if(s==="none"||!s)return{none:!0};if(o.iconMapFn!==null){const f=o.iconMapFn(s);if(f!==void 0)if(f.icon!==void 0){if(s=f.icon,s==="none"||!s)return{none:!0}}else return{cls:f.cls,content:f.content!==void 0?f.content:" "}}if(Ke.test(s)===!0){const[f,_=ae]=s.split("|");return{svg:!0,viewBox:_,nodes:f.split("&&").map(d=>{const[y,u,p]=d.split("@@");return t.h("path",{style:u,d:y,transform:p})})}}if(Qe.test(s)===!0)return{img:!0,src:s.substring(4)};if(Ue.test(s)===!0){const[f,_=ae]=s.split("|");return{svguse:!0,src:f.substring(7),viewBox:_}}let k=" ";const b=s.match(xe);if(b!==null)r=ge[b[1]](s);else if(Xe.test(s)===!0)r=s;else if(He.test(s)===!0)r=`ionicons ion-${o.platform.is.ios===!0?"ios":"md"}${s.substring(3)}`;else if(re.test(s)===!0){r="notranslate material-symbols";const f=s.match(re);f!==null&&(s=s.substring(6),r+=be[f[1]]),k=s}else{r="notranslate material-icons";const f=s.match(Fe);f!==null&&(s=s.substring(2),r+=he[f[1]]),k=s}return{cls:r,content:k}});return()=>{const r={class:i.value,style:l.value,"aria-hidden":"true"};return a.value.none===!0?t.h(e.tag,r,ee(n.default)):a.value.img===!0?t.h(e.tag,r,M(n.default,[t.h("img",{src:a.value.src})])):a.value.svg===!0?t.h(e.tag,r,M(n.default,[t.h("svg",{viewBox:a.value.viewBox||"0 0 24 24"},a.value.nodes)])):a.value.svguse===!0?t.h(e.tag,r,M(n.default,[t.h("svg",{viewBox:a.value.viewBox},[t.h("use",{"xlink:href":a.value.src})])])):(a.value.cls!==void 0&&(r.class+=" "+a.value.cls),t.h(e.tag,r,M(n.default,[a.value.content])))}}}),Ye={size:{type:[String,Number],default:"1em"},color:String};function We(e){return{cSize:t.computed(()=>e.size in Z?`${Z[e.size]}px`:e.size),classes:t.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const te=x({name:"QSpinner",props:{...Ye,thickness:{type:Number,default:5}},setup(e){const{cSize:n,classes:o}=We(e);return()=>t.h("svg",{class:o.value+" q-spinner-mat",width:n.value,height:n.value,viewBox:"25 25 50 50"},[t.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function ke(e,n){const o=e.style;for(const l in n)o[l]=n[l]}function Ge(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const n=t.unref(e);if(n)return n.$el||n}function Ze(e,n){if(e==null||e.contains(n)===!0)return!0;for(let o=e.nextElementSibling;o!==null;o=o.nextElementSibling)if(o.contains(n))return!0;return!1}const H={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(H,{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 Je(){}function ye(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 et(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const n=[];let o=e.target;for(;o;){if(n.push(o),o.tagName==="HTML")return n.push(document),n.push(window),n;o=o.parentElement}}function ne(e){e.stopPropagation()}function _e(e){e.cancelable!==!1&&e.preventDefault()}function z(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function Be(e,n,o){const l=`__q_${n}_evt`;e[l]=e[l]!==void 0?e[l].concat(o):o,o.forEach(i=>{i[0].addEventListener(i[1],e[i[2]],H[i[3]])})}function $e(e,n){const o=`__q_${n}_evt`;e[o]!==void 0&&(e[o].forEach(l=>{l[0].removeEventListener(l[1],e[l[2]],H[l[3]])}),e[o]=void 0)}function Ce(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function K(e,n){return Ce(e)===!0?!1:[].concat(n).includes(e.keyCode)}function tt(e,n=250){let o=!1,l;return function(){return o===!1&&(o=!0,setTimeout(()=>{o=!1},n),l=e.apply(this,arguments)),l}}function ie(e,n,o,l){o.modifiers.stop===!0&&ne(e);const i=o.modifiers.color;let a=o.modifiers.center;a=a===!0||l===!0;const r=document.createElement("span"),s=document.createElement("span"),k=ye(e),{left:b,top:f,width:_,height:d}=n.getBoundingClientRect(),y=Math.sqrt(_*_+d*d),u=y/2,p=`${(_-y)/2}px`,m=a?p:`${k.left-b-u}px`,g=`${(d-y)/2}px`,B=a?g:`${k.top-f-u}px`;s.className="q-ripple__inner",ke(s,{height:`${y}px`,width:`${y}px`,transform:`translate3d(${m},${B},0) scale3d(.2,.2,1)`,opacity:0}),r.className=`q-ripple${i?" text-"+i:""}`,r.setAttribute("dir","ltr"),r.appendChild(s),n.appendChild(r);const C=()=>{r.remove(),clearTimeout(q)};o.abort.push(C);let q=setTimeout(()=>{s.classList.add("q-ripple__inner--enter"),s.style.transform=`translate3d(${p},${g},0) scale3d(1,1,1)`,s.style.opacity=.2,q=setTimeout(()=>{s.classList.remove("q-ripple__inner--enter"),s.classList.add("q-ripple__inner--leave"),s.style.opacity=0,q=setTimeout(()=>{r.remove(),o.abort.splice(o.abort.indexOf(C),1)},275)},250)},50)}function se(e,{modifiers:n,value:o,arg:l}){const i=Object.assign({},e.cfg.ripple,n,o);e.modifiers={early:i.early===!0,stop:i.stop===!0,center:i.center===!0,color:i.color||l,keyCodes:[].concat(i.keyCodes||13)}}const qe=ve({name:"ripple",beforeMount(e,n){const o=n.instance.$.appContext.config.globalProperties.$q.config||{};if(o.ripple===!1)return;const l={cfg:o,enabled:n.value!==!1,modifiers:{},abort:[],start(i){l.enabled===!0&&i.qSkipRipple!==!0&&i.type===(l.modifiers.early===!0?"pointerdown":"click")&&ie(i,e,l,i.qKeyEvent===!0)},keystart:tt(i=>{l.enabled===!0&&i.qSkipRipple!==!0&&K(i,l.modifiers.keyCodes)===!0&&i.type===`key${l.modifiers.early===!0?"down":"up"}`&&ie(i,e,l,!0)},300)};se(l,n),e.__qripple=l,Be(l,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,n){if(n.oldValue!==n.value){const o=e.__qripple;o!==void 0&&(o.enabled=n.value!==!1,o.enabled===!0&&Object(n.value)===n.value&&se(o,n))}},beforeUnmount(e){const n=e.__qripple;n!==void 0&&(n.abort.forEach(o=>{o()}),$e(n,"main"),delete e._qripple)}}),Se={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},nt=Object.keys(Se),ot={align:{type:String,validator:e=>nt.includes(e)}};function lt(e){return t.computed(()=>{const n=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${Se[n]}`})}function X(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:n}=e.$;for(;Object(n)===n;){if(Object(n.proxy)===n.proxy)return n.proxy;n=n.parent}}function Ee(e){return e.appContext.config.globalProperties.$router!==void 0}function at(e){return e.isUnmounted===!0||e.isDeactivated===!0}function ue(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function ce(e,n){return(e.aliasOf||e)===(n.aliasOf||n)}function rt(e,n){for(const o in n){const l=n[o],i=e[o];if(typeof l=="string"){if(l!==i)return!1}else if(Array.isArray(i)===!1||i.length!==l.length||l.some((a,r)=>a!==i[r]))return!1}return!0}function de(e,n){return Array.isArray(n)===!0?e.length===n.length&&e.every((o,l)=>o===n[l]):e.length===1&&e[0]===n}function it(e,n){return Array.isArray(e)===!0?de(e,n):Array.isArray(n)===!0?de(n,e):e===n}function st(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const o in e)if(it(e[o],n[o])===!1)return!1;return!0}const we={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},ut={...we,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Pe({fallbackTag:e,useDisableForRouterLinkProps:n=!0}={}){const o=t.getCurrentInstance(),{props:l,proxy:i,emit:a}=o,r=Ee(o),s=t.computed(()=>l.disable!==!0&&l.href!==void 0),k=n===!0?t.computed(()=>r===!0&&l.disable!==!0&&s.value!==!0&&l.to!==void 0&&l.to!==null&&l.to!==""):t.computed(()=>r===!0&&s.value!==!0&&l.to!==void 0&&l.to!==null&&l.to!==""),b=t.computed(()=>k.value===!0?B(l.to):null),f=t.computed(()=>b.value!==null),_=t.computed(()=>s.value===!0||f.value===!0),d=t.computed(()=>l.type==="a"||_.value===!0?"a":l.tag||e||"div"),y=t.computed(()=>s.value===!0?{href:l.href,target:l.target}:f.value===!0?{href:b.value.href,target:l.target}:{}),u=t.computed(()=>{if(f.value===!1)return-1;const{matched:h}=b.value,{length:S}=h,E=h[S-1];if(E===void 0)return-1;const R=i.$route.matched;if(R.length===0)return-1;const A=R.findIndex(ce.bind(null,E));if(A!==-1)return A;const N=ue(h[S-2]);return S>1&&ue(E)===N&&R[R.length-1].path!==N?R.findIndex(ce.bind(null,h[S-2])):A}),p=t.computed(()=>f.value===!0&&u.value!==-1&&rt(i.$route.params,b.value.params)),m=t.computed(()=>p.value===!0&&u.value===i.$route.matched.length-1&&st(i.$route.params,b.value.params)),g=t.computed(()=>f.value===!0?m.value===!0?` ${l.exactActiveClass} ${l.activeClass}`:l.exact===!0?"":p.value===!0?` ${l.activeClass}`:"":"");function B(h){try{return i.$router.resolve(h)}catch{}return null}function C(h,{returnRouterError:S,to:E=l.to,replace:R=l.replace}={}){if(l.disable===!0)return h.preventDefault(),Promise.resolve(!1);if(h.metaKey||h.altKey||h.ctrlKey||h.shiftKey||h.button!==void 0&&h.button!==0||l.target==="_blank")return Promise.resolve(!1);h.preventDefault();const A=i.$router[R===!0?"replace":"push"](E);return S===!0?A:A.then(()=>{}).catch(()=>{})}function q(h){if(f.value===!0){const S=E=>C(h,E);a("click",h,S),h.defaultPrevented!==!0&&S()}else a("click",h)}return{hasRouterLink:f,hasHrefLink:s,hasLink:_,linkTag:d,resolvedLink:b,linkIsActive:p,linkIsExactActive:m,linkClass:g,linkAttrs:y,getLink:B,navigateToRouterLink:C,navigateOnClick:q}}const fe={none:0,xs:4,sm:8,md:16,lg:24,xl:32},ct={xs:8,sm:10,md:14,lg:20,xl:24},dt=["button","submit","reset"],ft=/[^\s]\/[^\s]/,mt=["flat","outline","push","unelevated"];function Ve(e,n){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":n}function pt(e){const n=Ve(e);return n!==void 0?{[n]:!0}:{}}const Le={...Q,...we,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...mt.reduce((e,n)=>(e[n]=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:{...ot.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},vt={...Le,round:Boolean};function gt(e){const n=U(e,ct),o=lt(e),{hasRouterLink:l,hasLink:i,linkTag:a,linkAttrs:r,navigateOnClick:s}=Pe({fallbackTag:"button"}),k=t.computed(()=>{const m=e.fab===!1&&e.fabMini===!1?n.value:{};return e.padding!==void 0?Object.assign({},m,{padding:e.padding.split(/\s+/).map(g=>g in fe?fe[g]+"px":g).join(" "),minWidth:"0",minHeight:"0"}):m}),b=t.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),f=t.computed(()=>e.disable!==!0&&e.loading!==!0),_=t.computed(()=>f.value===!0?e.tabindex||0:-1),d=t.computed(()=>Ve(e,"standard")),y=t.computed(()=>{const m={tabindex:_.value};return i.value===!0?Object.assign(m,r.value):dt.includes(e.type)===!0&&(m.type=e.type),a.value==="a"?(e.disable===!0?m["aria-disabled"]="true":m.href===void 0&&(m.role="button"),l.value!==!0&&ft.test(e.type)===!0&&(m.type=e.type)):e.disable===!0&&(m.disabled="",m["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(m,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),m}),u=t.computed(()=>{let m;e.color!==void 0?e.flat===!0||e.outline===!0?m=`text-${e.textColor||e.color}`:m=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(m=`text-${e.textColor}`);const g=e.round===!0?"round":`rectangle${b.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${d.value} q-btn--${g}`+(m!==void 0?" "+m:"")+(f.value===!0?" q-btn--actionable q-focusable q-hoverable":e.disable===!0?" disabled":"")+(e.fab===!0?" q-btn--fab":e.fabMini===!0?" q-btn--fab-mini":"")+(e.noCaps===!0?" q-btn--no-uppercase":"")+(e.dense===!0?" q-btn--dense":"")+(e.stretch===!0?" no-border-radius self-stretch":"")+(e.glossy===!0?" glossy":"")+(e.square?" q-btn--square":"")}),p=t.computed(()=>o.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:u,style:k,innerClasses:p,attributes:y,hasLink:i,linkTag:a,navigateOnClick:s,isActionable:f}}const{passiveCapture:L}=H;let D=null,O=null,j=null;const Re=x({name:"QBtn",props:{...vt,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:n,emit:o}){const{proxy:l}=t.getCurrentInstance(),{classes:i,style:a,innerClasses:r,attributes:s,hasLink:k,linkTag:b,navigateOnClick:f,isActionable:_}=gt(e),d=t.ref(null),y=t.ref(null);let u=null,p,m=null;const g=t.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),B=t.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:k.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),C=t.computed(()=>({center:e.round})),q=t.computed(()=>{const c=Math.max(0,Math.min(100,e.percentage));return c>0?{transition:"transform 0.6s",transform:`translateX(${c-100}%)`}:{}}),h=t.computed(()=>{if(e.loading===!0)return{onMousedown:w,onTouchstart:w,onClick:w,onKeydown:w,onKeyup:w};if(_.value===!0){const c={onClick:E,onKeydown:R,onMousedown:N};if(l.$q.platform.has.touch===!0){const $=e.onTouchstart!==void 0?"":"Passive";c[`onTouchstart${$}`]=A}return c}return{onClick:z}}),S=t.computed(()=>({ref:d,class:"q-btn q-btn-item non-selectable no-outline "+i.value,style:a.value,...s.value,...h.value}));function E(c){if(d.value!==null){if(c!==void 0){if(c.defaultPrevented===!0)return;const $=document.activeElement;if(e.type==="submit"&&$!==document.body&&d.value.contains($)===!1&&$.contains(d.value)===!1){c.qAvoidFocus!==!0&&d.value.focus();const I=()=>{var F;document.removeEventListener("keydown",z,!0),document.removeEventListener("keyup",I,L),(F=d.value)==null||F.removeEventListener("blur",I,L)};document.addEventListener("keydown",z,!0),document.addEventListener("keyup",I,L),d.value.addEventListener("blur",I,L)}}f(c)}}function R(c){d.value!==null&&(o("keydown",c),K(c,[13,32])===!0&&O!==d.value&&(O!==null&&v(),c.defaultPrevented!==!0&&(c.qAvoidFocus!==!0&&d.value.focus(),O=d.value,d.value.classList.add("q-btn--active"),document.addEventListener("keyup",V,!0),d.value.addEventListener("blur",V,L)),z(c)))}function A(c){d.value!==null&&(o("touchstart",c),c.defaultPrevented!==!0&&(D!==d.value&&(D!==null&&v(),D=d.value,u=c.target,u.addEventListener("touchcancel",V,L),u.addEventListener("touchend",V,L)),p=!0,m!==null&&clearTimeout(m),m=setTimeout(()=>{m=null,p=!1},200)))}function N(c){d.value!==null&&(c.qSkipRipple=p===!0,o("mousedown",c),c.defaultPrevented!==!0&&j!==d.value&&(j!==null&&v(),j=d.value,d.value.classList.add("q-btn--active"),document.addEventListener("mouseup",V,L)))}function V(c){if(d.value!==null&&!((c==null?void 0:c.type)==="blur"&&document.activeElement===d.value)){if((c==null?void 0:c.type)==="keyup"){if(O===d.value&&K(c,[13,32])===!0){const $=new MouseEvent("click",c);$.qKeyEvent=!0,c.defaultPrevented===!0&&_e($),c.cancelBubble===!0&&ne($),d.value.dispatchEvent($),z(c),c.qKeyEvent=!0}o("keyup",c)}v()}}function v(c){var I,F;const $=y.value;c!==!0&&(D===d.value||j===d.value)&&$!==null&&$!==document.activeElement&&($.setAttribute("tabindex",-1),$.focus()),D===d.value&&(u!==null&&(u.removeEventListener("touchcancel",V,L),u.removeEventListener("touchend",V,L)),D=u=null),j===d.value&&(document.removeEventListener("mouseup",V,L),j=null),O===d.value&&(document.removeEventListener("keyup",V,!0),(I=d.value)==null||I.removeEventListener("blur",V,L),O=null),(F=d.value)==null||F.classList.remove("q-btn--active")}function w(c){z(c),c.qSkipRipple=!0}return t.onBeforeUnmount(()=>{v(!0)}),Object.assign(l,{click:c=>{_.value===!0&&E(c)}}),()=>{let c=[];e.icon!==void 0&&c.push(t.h(Y,{name:e.icon,left:e.stack!==!0&&g.value===!0,role:"img"})),g.value===!0&&c.push(t.h("span",{class:"block"},[e.label])),c=M(n.default,c),e.iconRight!==void 0&&e.round===!1&&c.push(t.h(Y,{name:e.iconRight,right:e.stack!==!0&&g.value===!0,role:"img"}));const $=[t.h("span",{class:"q-focus-helper",ref:y})];return e.loading===!0&&e.percentage!==void 0&&$.push(t.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[t.h("span",{class:"q-btn__progress-indicator fit block",style:q.value})])),$.push(t.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+r.value},c)),e.loading!==null&&$.push(t.h(t.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[t.h("span",{key:"loading",class:"absolute-full flex flex-center"},n.loading!==void 0?n.loading():[t.h(te)])]:null)),t.withDirectives(t.h(b.value,S.value,$),[[qe,B.value,void 0,C.value]])}}}),ht=t.defineComponent({__name:"AppButton",props:{size:{default:P.MD},transparent:{type:Boolean},flat:{type:Boolean},rounded:{type:Boolean},color:{default:J.PRIMARY},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:Boolean},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{},label:{},download:{}},emits:["click"],setup(e){const n=e,o=t.computed(()=>["app-btn",{"app-btn_default":!n.transparent&&!n.flat,"app-btn_trans":n.transparent,"app-btn_flat":n.flat,"app-btn_rounded":n.rounded,"app-btn_icon-left":n.iconLeft,"app-btn_icon-right":n.iconRight,"app-btn_icon-middle":n.iconMiddle},`app-btn_${n.size}`,`app-btn_${n.color}`]);return(l,i)=>(t.openBlock(),t.createBlock(t.unref(Re),{"no-caps":"",unelevated:"",class:t.normalizeClass(o.value),padding:t.unref(Ne)[l.size||t.unref(P).MD],loading:l.loading,disable:l.disabled||void 0,to:l.to,href:l.href,target:l.target,type:l.submit?"submit":void 0,"aria-label":l.ariaLabel,download:l.download,onClick:i[0]||(i[0]=a=>l.$emit("click",a))},{default:t.withCtx(()=>[l.iconLeft||l.iconMiddle?(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass(["icon-kl",l.iconLeft?"icon-kl_left":"icon-kl_middle",`icon-kl-${l.iconLeft||l.iconMiddle}`,l.transparent||l.flat?`text-${l.color}`:"text-secondary"])},null,2)):t.createCommentVNode("",!0),t.renderSlot(l.$slots,"default",{},void 0,!0),l.label?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(l.label),1)],64)):t.createCommentVNode("",!0),l.iconRight?(t.openBlock(),t.createElementBlock("i",{key:2,class:t.normalizeClass(["icon-kl","icon-kl_right",`icon-kl-${l.iconRight}`,l.transparent?`text-${l.color}`:"text-secondary"])},null,2)):t.createCommentVNode("",!0)]),_:3},8,["class","padding","loading","disable","to","href","target","type","aria-label","download"]))}}),T=(e,n)=>{const o=e.__vccOpts||e;for(const[l,i]of n)o[l]=i;return o},bt=T(ht,[["__scopeId","data-v-44d5548c"]]),kt={key:0,class:"app-toggle__label app-toggle__label_left"},yt={class:"app-toggle__container"},_t=["checked","disabled"],Bt={class:"app-toggle__thumb"},$t={key:1,class:"app-toggle__label"},Ct=t.defineComponent({__name:"AppToggle",props:{modelValue:{type:Boolean},size:{default:P.MD},label:{},disabled:{type:Boolean},color:{default:J.PRIMARY},iconColor:{},icon:{},iconActive:{},labelLeft:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:n}){const o=e,l=n,i=t.computed({get:()=>o.modelValue,set:r=>{l("update:modelValue",r)}}),a=t.computed(()=>["app-toggle",{"app-toggle_active":i.value,"app-toggle_disabled":o.disabled},`app-toggle_${o.size}`,`app-toggle_${o.color}`]);return(r,s)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(a.value)},[r.label&&r.labelLeft?(t.openBlock(),t.createElementBlock("span",kt,t.toDisplayString(r.label),1)):t.createCommentVNode("",!0),t.createElementVNode("label",yt,[t.createElementVNode("input",{type:"checkbox",checked:i.value,onChange:s[0]||(s[0]=k=>i.value=!i.value),disabled:r.disabled,class:"app-toggle__input"},null,40,_t),t.createElementVNode("span",{class:t.normalizeClass(["app-toggle__slider",i.value?`bg-${r.color}`:""])},[t.createElementVNode("span",Bt,[r.icon&&!r.modelValue?(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass(["icon-kl",`icon-kl-${r.icon}`,"app-toggle__icon"])},null,2)):t.createCommentVNode("",!0),r.modelValue&&(r.iconActive||r.icon)?(t.openBlock(),t.createElementBlock("i",{key:1,class:t.normalizeClass(["icon-kl",`icon-kl-${r.iconActive||r.icon}`,"app-toggle__icon",i.value?`text-${r.iconColor}`:""])},null,2)):t.createCommentVNode("",!0)])],2),t.renderSlot(r.$slots,"default",{},void 0,!0)]),r.label&&!r.labelLeft?(t.openBlock(),t.createElementBlock("span",$t,t.toDisplayString(r.label),1)):t.createCommentVNode("",!0)],2))}}),Ae=T(Ct,[["__scopeId","data-v-c6702cb0"]]),oe={dark:{type:Boolean,default:null}};function le(e,n){return t.computed(()=>e.dark===null?n.dark.isActive:e.dark)}function qt(e,n){const o=t.ref(null),l=t.computed(()=>e.disable===!0?null:t.h("span",{ref:o,class:"no-outline",tabindex:-1}));function i(a){const r=n.value;(a==null?void 0:a.qAvoidFocus)!==!0&&((a==null?void 0:a.type.indexOf("key"))===0?document.activeElement!==r&&(r==null?void 0:r.contains(document.activeElement))===!0&&r.focus():o.value!==null&&(a===void 0||(r==null?void 0:r.contains(a.target))===!0)&&o.value.focus())}return{refocusTargetEl:l,refocusTarget:i}}const ze={name:String};function St(e={}){return(n,o,l)=>{n[o](t.h("input",{class:"hidden"+(l||""),...e.value}))}}function Et(e){return t.computed(()=>e.name||e.for)}const wt={xs:30,sm:35,md:40,lg:50,xl:60},Pt={...oe,...Q,...ze,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:e=>e==="tf"||e==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},Vt=["update:modelValue"];function Lt(e,n){const{props:o,slots:l,emit:i,proxy:a}=t.getCurrentInstance(),{$q:r}=a,s=le(o,r),k=t.ref(null),{refocusTargetEl:b,refocusTarget:f}=qt(o,k),_=U(o,wt),d=t.computed(()=>o.val!==void 0&&Array.isArray(o.modelValue)),y=t.computed(()=>{const v=t.toRaw(o.val);return d.value===!0?o.modelValue.findIndex(w=>t.toRaw(w)===v):-1}),u=t.computed(()=>d.value===!0?y.value!==-1:t.toRaw(o.modelValue)===t.toRaw(o.trueValue)),p=t.computed(()=>d.value===!0?y.value===-1:t.toRaw(o.modelValue)===t.toRaw(o.falseValue)),m=t.computed(()=>u.value===!1&&p.value===!1),g=t.computed(()=>o.disable===!0?-1:o.tabindex||0),B=t.computed(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(o.disable===!0?" disabled":"")+(s.value===!0?` q-${e}--dark`:"")+(o.dense===!0?` q-${e}--dense`:"")+(o.leftLabel===!0?" reverse":"")),C=t.computed(()=>{const v=u.value===!0?"truthy":p.value===!0?"falsy":"indet",w=o.color!==void 0&&(o.keepColor===!0||p.value!==!0)?` text-${o.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${v}${w}`}),q=t.computed(()=>{const v={type:"checkbox"};return o.name!==void 0&&Object.assign(v,{".checked":u.value,"^checked":u.value===!0?"checked":void 0,name:o.name,value:d.value===!0?o.val:o.trueValue}),v}),h=St(q),S=t.computed(()=>{const v={tabindex:g.value,role:"checkbox","aria-label":o.label,"aria-checked":m.value===!0?"mixed":u.value===!0?"true":"false"};return o.disable===!0&&(v["aria-disabled"]="true"),v});function E(v){v!==void 0&&(z(v),f(v)),o.disable!==!0&&i("update:modelValue",R(),v)}function R(){if(d.value===!0){if(u.value===!0){const v=o.modelValue.slice();return v.splice(y.value,1),v}return o.modelValue.concat([o.val])}if(u.value===!0){if(o.toggleOrder!=="ft"||o.toggleIndeterminate===!1)return o.falseValue}else if(p.value===!0){if(o.toggleOrder==="ft"||o.toggleIndeterminate===!1)return o.trueValue}else return o.toggleOrder!=="ft"?o.trueValue:o.falseValue;return o.indeterminateValue}function A(v){(v.keyCode===13||v.keyCode===32)&&z(v)}function N(v){(v.keyCode===13||v.keyCode===32)&&E(v)}const V=n(u,m);return Object.assign(a,{toggle:E}),()=>{const v=V();o.disable!==!0&&h(v,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const w=[t.h("div",{class:C.value,style:_.value,"aria-hidden":"true"},v)];b.value!==null&&w.push(b.value);const c=o.label!==void 0?M(l.default,[o.label]):ee(l.default);return c!==void 0&&w.push(t.h("div",{class:`q-${e}__label q-anchor--skip`},c)),t.h("div",{ref:k,class:B.value,...S.value,onClick:E,onKeydown:A,onKeyup:N},w)}}const Rt=()=>t.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[t.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[t.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),t.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),At=x({name:"QCheckbox",props:Pt,emits:Vt,setup(e){const n=Rt();function o(l,i){const a=t.computed(()=>(l.value===!0?e.checkedIcon:i.value===!0?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>a.value!==null?[t.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[t.h(Y,{class:"q-checkbox__icon",name:a.value})])]:[n]}return Lt("checkbox",o)}}),Me=[];function zt(e){return Me.find(n=>n.contentEl!==null&&n.contentEl.contains(e))}function Ie(e,n){do{if(e.$options.name==="QMenu"){if(e.hide(n),e.$props.separateClosePopup===!0)return X(e)}else if(e.__qPortal===!0){const o=X(e);return(o==null?void 0:o.$options.name)==="QPopupProxy"?(e.hide(n),o):e}e=X(e)}while(e!=null)}function Mt(e,n,o){for(;o!==0&&e!==void 0&&e!==null;){if(e.__qPortal===!0){if(o--,e.$options.name==="QMenu"){e=Ie(e,n);continue}e.hide(n)}e=X(e)}}function me(e){if(e===!1)return 0;if(e===!0||e===void 0)return 1;const n=parseInt(e,10);return isNaN(n)?0:n}const It=ve({name:"close-popup",beforeMount(e,{value:n}){const o={depth:me(n),handler(l){o.depth!==0&&setTimeout(()=>{const i=zt(e);i!==void 0&&Mt(i,l,o.depth)})},handlerKey(l){K(l,13)===!0&&o.handler(l)}};e.__qclosepopup=o,e.addEventListener("click",o.handler),e.addEventListener("keyup",o.handlerKey)},updated(e,{value:n,oldValue:o}){n!==o&&(e.__qclosepopup.depth=me(n))},beforeUnmount(e){const n=e.__qclosepopup;e.removeEventListener("click",n.handler),e.removeEventListener("keyup",n.handlerKey),delete e.__qclosepopup}}),Tt={key:0,class:"menu-item__loading"},Nt={key:0,class:"menu-item__checked"},Dt={key:2,class:"menu-item__icon"},Ot={class:"menu-item__label"},jt={key:3,class:"menu-item__icon-right icon-kl icon-kl-arrow-right"},xt=t.defineComponent({__name:"PopupItem",props:{label:{},icon:{},iconSize:{},color:{},iconRight:{},noArrow:{type:Boolean},toggle:{type:Boolean},checkbox:{type:Boolean},active:{type:Boolean},modelValue:{type:Boolean},persistent:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},gap:{type:Boolean},checked:{type:Boolean},isMobile:{type:Boolean}},emits:["update:modelValue","closePopup"],setup(e,{emit:n}){const o=e,l=n,i=()=>{o.disabled||(o.toggle||o.checkbox?l("update:modelValue",!o.modelValue):o.persistent||l("closePopup"))};return(a,r)=>t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["menu-item",[{"menu-item_gap":a.gap},{"menu-item_disabled":a.disabled},{"menu-item_active":a.active},{"menu-item_mobile":a.isMobile}]]),onClick:i},[t.createElementVNode("div",{class:t.normalizeClass(["row items-center no-wrap",`text-${a.color?a.color:"dark"}`])},[a.loading?(t.openBlock(),t.createElementBlock("div",Tt,[t.createVNode(t.unref(te),{size:"19px",color:a.color?a.color:"dark"},null,8,["color"])])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[a.checked?(t.openBlock(),t.createElementBlock("div",Nt,[...r[2]||(r[2]=[t.createElementVNode("i",{class:"icon-kl icon-kl-check"},null,-1)])])):t.createCommentVNode("",!0),a.checkbox?(t.openBlock(),t.createBlock(At,{key:1,class:"menu-item__checkbox",size:"34px","model-value":a.modelValue,"onUpdate:modelValue":r[0]||(r[0]=s=>l("update:modelValue",s))},null,8,["model-value"])):t.createCommentVNode("",!0),a.icon?(t.openBlock(),t.createElementBlock("div",Dt,[t.createElementVNode("i",{class:t.normalizeClass(`icon-kl icon-kl-${a.icon}`),style:t.normalizeStyle({fontSize:a.iconSize||"27px"})},null,6)])):t.createCommentVNode("",!0)],64)),t.createElementVNode("span",Ot,t.toDisplayString(a.label),1)],2),a.$slots.right?t.renderSlot(a.$slots,"right",{key:0},void 0,!0):a.toggle?(t.openBlock(),t.createBlock(Ae,{key:1,class:"menu-item__toggle","model-value":a.modelValue,disabled:a.disabled||a.loading,"onUpdate:modelValue":r[1]||(r[1]=s=>l("update:modelValue",s))},null,8,["model-value","disabled"])):a.iconRight?(t.openBlock(),t.createElementBlock("i",{key:2,class:t.normalizeClass(["menu-item__icon-right menu-item__icon-right_custom icon-kl",`icon-kl-${a.iconRight}`])},null,2)):!a.noArrow&&!a.loading?(t.openBlock(),t.createElementBlock("i",jt)):t.createCommentVNode("",!0)],2)),[[It,!a.toggle&&!a.checkbox&&!a.persistent&&!a.disabled]])}}),Ft=T(xt,[["__scopeId","data-v-ad1350d0"]]),Kt=t.defineComponent({__name:"AppIcon",props:{name:{},size:{},color:{}},setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock("i",{class:t.normalizeClass(["icon-kl",`icon-kl-${n.name}`,n.color?`text-${n.color}`:""]),style:t.normalizeStyle(n.size?`font-size: ${n.size}`:void 0)},null,6))}}),Qt=T(Kt,[["__scopeId","data-v-941765ee"]]),Ut={xs:2,sm:4,md:6,lg:10,xl:14};function pe(e,n,o){return{transform:n===!0?`translateX(${o.lang.rtl===!0?"-":""}100%) scale3d(${-e},1,1)`:`scale3d(${e},1,1)`}}const Ht=x({name:"QLinearProgress",props:{...oe,...Q,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(e,{slots:n}){const{proxy:o}=t.getCurrentInstance(),l=le(e,o.$q),i=U(e,Ut),a=t.computed(()=>e.indeterminate===!0||e.query===!0),r=t.computed(()=>e.reverse!==e.query),s=t.computed(()=>({...i.value!==null?i.value:{},"--q-linear-progress-speed":`${e.animationSpeed}ms`})),k=t.computed(()=>"q-linear-progress"+(e.color!==void 0?` text-${e.color}`:"")+(e.reverse===!0||e.query===!0?" q-linear-progress--reverse":"")+(e.rounded===!0?" rounded-borders":"")),b=t.computed(()=>pe(e.buffer!==void 0?e.buffer:1,r.value,o.$q)),f=t.computed(()=>`with${e.instantFeedback===!0?"out":""}-transition`),_=t.computed(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${f.value} q-linear-progress__track--${l.value===!0?"dark":"light"}`+(e.trackColor!==void 0?` bg-${e.trackColor}`:"")),d=t.computed(()=>pe(a.value===!0?1:e.value,r.value,o.$q)),y=t.computed(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${f.value} q-linear-progress__model--${a.value===!0?"in":""}determinate`),u=t.computed(()=>({width:`${e.value*100}%`})),p=t.computed(()=>`q-linear-progress__stripe absolute-${e.reverse===!0?"right":"left"} q-linear-progress__stripe--${f.value}`);return()=>{const m=[t.h("div",{class:_.value,style:b.value}),t.h("div",{class:y.value,style:d.value})];return e.stripe===!0&&a.value===!1&&m.push(t.h("div",{class:p.value,style:u.value})),t.h("div",{class:k.value,style:s.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":e.indeterminate===!0?void 0:e.value},M(n.default,m))}}}),Xt={key:0,class:"code-field__label"},Yt={class:"code-field__inputs"},Wt=["onUpdate:modelValue","disabled","onInput","onKeydown","onPaste"],Gt=t.defineComponent({__name:"AppCodeInput",props:{length:{default:5},size:{default:P.MD},label:{},disabled:{type:Boolean},loading:{type:Boolean},autofocus:{type:Boolean},color:{}},emits:["update:modelValue","completed"],setup(e,{expose:n,emit:o}){const l=e,i=o,a=t.ref(Array(l.length).fill("")),r=t.ref([]),s=t.computed(()=>["code-field",{"code-field_disabled":l.disabled||l.loading},`code-field_${l.size}`,`code-field_${l.color}`]),k=t.computed(()=>{let u="";return l.size==P.SM&&(u+=`width: ${l.length*26+(l.length-1)*5}px`),l.size==P.MD&&(u+=`width: ${l.length*32+(l.length-1)*8}px`),l.size==P.LG&&(u+=`width: ${l.length*44+(l.length-1)*10}px`),u}),b=(u,p)=>{var B;const g=u.target.value;if(g.length===1)p<l.length-1&&r.value&&((B=r.value[p+1])==null||B.focus());else if(g.length>1){const C=g.slice(0,l.length-p).split("");C.forEach((q,h)=>{a.value[p+h]=q}),t.nextTick(()=>{var q;r.value&&((q=r.value[Math.min(p+C.length,l.length-1)])==null||q.focus())})}},f=u=>{var p;a.value[u]===""&&r.value&&u>0&&((p=r.value[u-1])==null||p.focus())},_=(u,p)=>{var B;u.preventDefault();const m=((B=u.clipboardData)==null?void 0:B.getData("text"))??"";if(!m)return;const g=m.slice(0,l.length-p).split("");g.forEach((C,q)=>{a.value[p+q]=C}),t.nextTick(()=>{var C;r.value&&((C=r.value[Math.min(p+g.length,l.length-1)])==null||C.focus())})};t.watch(a,u=>{const p=u.join("");d(p)},{deep:!0});const d=u=>{i("update:modelValue",u),u.length===l.length&&!u.includes(" ")&&i("completed",u)},y=u=>{u&&(a.value=u.split("").slice(0,l.length))};return t.onMounted(()=>{l.autofocus&&r.value&&r.value[0]&&r.value[0].focus()}),n({injectCode:y}),(u,p)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(s.value),style:t.normalizeStyle(k.value)},[u.label?(t.openBlock(),t.createElementBlock("label",Xt,t.toDisplayString(u.label),1)):t.createCommentVNode("",!0),t.createElementVNode("div",Yt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.length,(m,g)=>t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:g,"onUpdate:modelValue":B=>a.value[g]=B,ref_for:!0,ref_key:"inputRefs",ref:r,type:"number",maxlength:"1",class:"code-field__input",disabled:u.disabled||u.loading,onInput:B=>b(B,g),onKeydown:t.withKeys(B=>f(g),["backspace"]),onPaste:B=>_(B,g)},null,40,Wt)),[[t.vModelText,a.value[g]]])),128))]),u.loading?(t.openBlock(),t.createBlock(Ht,{key:1,indeterminate:"",rounded:"",color:u.color,class:"code-field__loading"},null,8,["color"])):t.createCommentVNode("",!0)],6))}}),Zt=T(Gt,[["__scopeId","data-v-4e11db87"]]),Jt={class:"app-segment__track"},en={class:"app-segment__buttons"},tn=["onClick","disabled"],nn=t.defineComponent({__name:"AppSegment",props:t.mergeModels({options:{},disabled:{type:Boolean},size:{default:P.MD}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const n=t.useModel(e,"modelValue"),o=e,l=t.computed(()=>o.options.findIndex(a=>a.value===n.value));function i(a){o.disabled||(n.value=a)}return(a,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["app-segment",[{"app-segment_disabled":a.disabled},`app-segment_${a.size}`]])},[t.createElementVNode("div",Jt,[t.createElementVNode("div",{class:"app-segment__thumb",style:t.normalizeStyle({width:`${100/a.options.length}%`,transform:`translateX(${l.value*100}%)`})},null,4)]),t.createElementVNode("div",en,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.options,(s,k)=>(t.openBlock(),t.createElementBlock("button",{key:k,class:t.normalizeClass(["app-segment__btn",{active:n.value===s.value}]),onClick:b=>i(s.value),disabled:a.disabled},[t.renderSlot(a.$slots,"option",{option:s},()=>[t.createTextVNode(t.toDisplayString(s.label),1)],!0)],10,tn))),128))])],2))}}),on=T(nn,[["__scopeId","data-v-ff56abdf"]]),ln=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./AppButtonCopy-BdA3xlkm.cjs"))),an=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./AppSelect-DHON1Mnt.cjs"))),rn=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DropdownButton-j_7BjLdG.cjs")));exports.AppButton=bt;exports.AppButtonCopy=ln;exports.AppCodeInput=Zt;exports.AppIcon=Qt;exports.AppSegment=on;exports.AppSelect=an;exports.AppToggle=Ae;exports.COLORS=J;exports.DropdownButton=rn;exports.PopupItem=Ft;exports.QBtn=Re;exports.QIcon=Y;exports.QSpinner=te;exports.Ripple=qe;exports.SIZES=P;exports._export_sfc=T;exports.addEvt=Be;exports.childHasFocus=Ze;exports.cleanEvt=$e;exports.closePortalMenus=Ie;exports.createComponent=x;exports.css=ke;exports.getBtnDesignAttr=pt;exports.getElement=Ge;exports.getEventPath=et;exports.hDir=je;exports.hMergeSlot=M;exports.hMergeSlotSafely=Oe;exports.hSlot=ee;exports.hUniqueSlot=De;exports.iconSet=Te;exports.isKeyCode=K;exports.listenOpts=H;exports.nonRoundBtnProps=Le;exports.noop=Je;exports.portalProxyList=Me;exports.position=ye;exports.prevent=_e;exports.shouldIgnoreKey=Ce;exports.stop=ne;exports.stopAndPrevent=z;exports.useDark=le;exports.useDarkProps=oe;exports.useFormInputNameAttr=Et;exports.useFormProps=ze;exports.useRouterLink=Pe;exports.useRouterLinkProps=ut;exports.useSize=U;exports.useSizeProps=Q;exports.vmHasRouter=Ee;exports.vmIsDestroyed=at;
1
+ "use strict";const t=require("vue");const Te=({app:e})=>{const n=e.config.globalProperties.$q;n.iconMapFn=o=>{if(o.startsWith("icon-kl:"))return{cls:`icon-kl icon-kl-${o.slice(8)}`}}},J={PRIMARY:"primary",INFO:"info"},P={SM:"sm",MD:"md",LG:"lg",XL:"xl"},Ne={[P.SM]:"3px 9px",[P.MD]:"5px 12px",[P.LG]:"6px 15px",[P.XL]:"9px 20px"},Z={xs:18,sm:24,md:32,lg:38,xl:46},Q={size:String};function U(e,n=Z){return t.computed(()=>e.size!==void 0?{fontSize:e.size in n?`${n[e.size]}px`:e.size}:null)}function x(e){return t.markRaw(t.defineComponent(e))}function ve(e){return t.markRaw(e)}function ee(e,n){return e!==void 0&&e()||n}function De(e,n){if(e!==void 0){const o=e();if(o!=null)return o.slice()}return n}function M(e,n){return e!==void 0?n.concat(e()):n}function Oe(e,n){return e===void 0?n:n!==void 0?n.concat(e()):e()}function je(e,n,o,l,i,a){n.key=l+i;const r=t.h(e,n,o);return i===!0?t.withDirectives(r,a()):r}const ae="0 0 24 24",W=e=>e,G=e=>`ionicons ${e}`,ge={"mdi-":e=>`mdi ${e}`,"icon-":W,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":G,"ion-ios":G,"ion-logo":G,"iconfont ":W,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`,"i-":W},he={o_:"-outlined",r_:"-round",s_:"-sharp"},be={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},xe=new RegExp("^("+Object.keys(ge).join("|")+")"),Fe=new RegExp("^("+Object.keys(he).join("|")+")"),re=new RegExp("^("+Object.keys(be).join("|")+")"),Ke=/^[Mm]\s?[-+]?\.?\d/,Qe=/^img:/,Ue=/^svguse:/,He=/^ion-/,Xe=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,Y=x({name:"QIcon",props:{...Q,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:n}){const{proxy:{$q:o}}=t.getCurrentInstance(),l=U(e),i=t.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),a=t.computed(()=>{let r,s=e.name;if(s==="none"||!s)return{none:!0};if(o.iconMapFn!==null){const f=o.iconMapFn(s);if(f!==void 0)if(f.icon!==void 0){if(s=f.icon,s==="none"||!s)return{none:!0}}else return{cls:f.cls,content:f.content!==void 0?f.content:" "}}if(Ke.test(s)===!0){const[f,_=ae]=s.split("|");return{svg:!0,viewBox:_,nodes:f.split("&&").map(d=>{const[y,u,p]=d.split("@@");return t.h("path",{style:u,d:y,transform:p})})}}if(Qe.test(s)===!0)return{img:!0,src:s.substring(4)};if(Ue.test(s)===!0){const[f,_=ae]=s.split("|");return{svguse:!0,src:f.substring(7),viewBox:_}}let k=" ";const b=s.match(xe);if(b!==null)r=ge[b[1]](s);else if(Xe.test(s)===!0)r=s;else if(He.test(s)===!0)r=`ionicons ion-${o.platform.is.ios===!0?"ios":"md"}${s.substring(3)}`;else if(re.test(s)===!0){r="notranslate material-symbols";const f=s.match(re);f!==null&&(s=s.substring(6),r+=be[f[1]]),k=s}else{r="notranslate material-icons";const f=s.match(Fe);f!==null&&(s=s.substring(2),r+=he[f[1]]),k=s}return{cls:r,content:k}});return()=>{const r={class:i.value,style:l.value,"aria-hidden":"true"};return a.value.none===!0?t.h(e.tag,r,ee(n.default)):a.value.img===!0?t.h(e.tag,r,M(n.default,[t.h("img",{src:a.value.src})])):a.value.svg===!0?t.h(e.tag,r,M(n.default,[t.h("svg",{viewBox:a.value.viewBox||"0 0 24 24"},a.value.nodes)])):a.value.svguse===!0?t.h(e.tag,r,M(n.default,[t.h("svg",{viewBox:a.value.viewBox},[t.h("use",{"xlink:href":a.value.src})])])):(a.value.cls!==void 0&&(r.class+=" "+a.value.cls),t.h(e.tag,r,M(n.default,[a.value.content])))}}}),Ye={size:{type:[String,Number],default:"1em"},color:String};function We(e){return{cSize:t.computed(()=>e.size in Z?`${Z[e.size]}px`:e.size),classes:t.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const te=x({name:"QSpinner",props:{...Ye,thickness:{type:Number,default:5}},setup(e){const{cSize:n,classes:o}=We(e);return()=>t.h("svg",{class:o.value+" q-spinner-mat",width:n.value,height:n.value,viewBox:"25 25 50 50"},[t.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function ke(e,n){const o=e.style;for(const l in n)o[l]=n[l]}function Ge(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const n=t.unref(e);if(n)return n.$el||n}function Ze(e,n){if(e==null||e.contains(n)===!0)return!0;for(let o=e.nextElementSibling;o!==null;o=o.nextElementSibling)if(o.contains(n))return!0;return!1}const H={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(H,{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 Je(){}function ye(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 et(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const n=[];let o=e.target;for(;o;){if(n.push(o),o.tagName==="HTML")return n.push(document),n.push(window),n;o=o.parentElement}}function ne(e){e.stopPropagation()}function _e(e){e.cancelable!==!1&&e.preventDefault()}function z(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function Be(e,n,o){const l=`__q_${n}_evt`;e[l]=e[l]!==void 0?e[l].concat(o):o,o.forEach(i=>{i[0].addEventListener(i[1],e[i[2]],H[i[3]])})}function $e(e,n){const o=`__q_${n}_evt`;e[o]!==void 0&&(e[o].forEach(l=>{l[0].removeEventListener(l[1],e[l[2]],H[l[3]])}),e[o]=void 0)}function Ce(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function K(e,n){return Ce(e)===!0?!1:[].concat(n).includes(e.keyCode)}function tt(e,n=250){let o=!1,l;return function(){return o===!1&&(o=!0,setTimeout(()=>{o=!1},n),l=e.apply(this,arguments)),l}}function ie(e,n,o,l){o.modifiers.stop===!0&&ne(e);const i=o.modifiers.color;let a=o.modifiers.center;a=a===!0||l===!0;const r=document.createElement("span"),s=document.createElement("span"),k=ye(e),{left:b,top:f,width:_,height:d}=n.getBoundingClientRect(),y=Math.sqrt(_*_+d*d),u=y/2,p=`${(_-y)/2}px`,m=a?p:`${k.left-b-u}px`,g=`${(d-y)/2}px`,B=a?g:`${k.top-f-u}px`;s.className="q-ripple__inner",ke(s,{height:`${y}px`,width:`${y}px`,transform:`translate3d(${m},${B},0) scale3d(.2,.2,1)`,opacity:0}),r.className=`q-ripple${i?" text-"+i:""}`,r.setAttribute("dir","ltr"),r.appendChild(s),n.appendChild(r);const C=()=>{r.remove(),clearTimeout(q)};o.abort.push(C);let q=setTimeout(()=>{s.classList.add("q-ripple__inner--enter"),s.style.transform=`translate3d(${p},${g},0) scale3d(1,1,1)`,s.style.opacity=.2,q=setTimeout(()=>{s.classList.remove("q-ripple__inner--enter"),s.classList.add("q-ripple__inner--leave"),s.style.opacity=0,q=setTimeout(()=>{r.remove(),o.abort.splice(o.abort.indexOf(C),1)},275)},250)},50)}function se(e,{modifiers:n,value:o,arg:l}){const i=Object.assign({},e.cfg.ripple,n,o);e.modifiers={early:i.early===!0,stop:i.stop===!0,center:i.center===!0,color:i.color||l,keyCodes:[].concat(i.keyCodes||13)}}const qe=ve({name:"ripple",beforeMount(e,n){const o=n.instance.$.appContext.config.globalProperties.$q.config||{};if(o.ripple===!1)return;const l={cfg:o,enabled:n.value!==!1,modifiers:{},abort:[],start(i){l.enabled===!0&&i.qSkipRipple!==!0&&i.type===(l.modifiers.early===!0?"pointerdown":"click")&&ie(i,e,l,i.qKeyEvent===!0)},keystart:tt(i=>{l.enabled===!0&&i.qSkipRipple!==!0&&K(i,l.modifiers.keyCodes)===!0&&i.type===`key${l.modifiers.early===!0?"down":"up"}`&&ie(i,e,l,!0)},300)};se(l,n),e.__qripple=l,Be(l,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,n){if(n.oldValue!==n.value){const o=e.__qripple;o!==void 0&&(o.enabled=n.value!==!1,o.enabled===!0&&Object(n.value)===n.value&&se(o,n))}},beforeUnmount(e){const n=e.__qripple;n!==void 0&&(n.abort.forEach(o=>{o()}),$e(n,"main"),delete e._qripple)}}),Se={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},nt=Object.keys(Se),ot={align:{type:String,validator:e=>nt.includes(e)}};function lt(e){return t.computed(()=>{const n=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${Se[n]}`})}function X(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:n}=e.$;for(;Object(n)===n;){if(Object(n.proxy)===n.proxy)return n.proxy;n=n.parent}}function Ee(e){return e.appContext.config.globalProperties.$router!==void 0}function at(e){return e.isUnmounted===!0||e.isDeactivated===!0}function ue(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function ce(e,n){return(e.aliasOf||e)===(n.aliasOf||n)}function rt(e,n){for(const o in n){const l=n[o],i=e[o];if(typeof l=="string"){if(l!==i)return!1}else if(Array.isArray(i)===!1||i.length!==l.length||l.some((a,r)=>a!==i[r]))return!1}return!0}function de(e,n){return Array.isArray(n)===!0?e.length===n.length&&e.every((o,l)=>o===n[l]):e.length===1&&e[0]===n}function it(e,n){return Array.isArray(e)===!0?de(e,n):Array.isArray(n)===!0?de(n,e):e===n}function st(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const o in e)if(it(e[o],n[o])===!1)return!1;return!0}const we={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},ut={...we,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Pe({fallbackTag:e,useDisableForRouterLinkProps:n=!0}={}){const o=t.getCurrentInstance(),{props:l,proxy:i,emit:a}=o,r=Ee(o),s=t.computed(()=>l.disable!==!0&&l.href!==void 0),k=n===!0?t.computed(()=>r===!0&&l.disable!==!0&&s.value!==!0&&l.to!==void 0&&l.to!==null&&l.to!==""):t.computed(()=>r===!0&&s.value!==!0&&l.to!==void 0&&l.to!==null&&l.to!==""),b=t.computed(()=>k.value===!0?B(l.to):null),f=t.computed(()=>b.value!==null),_=t.computed(()=>s.value===!0||f.value===!0),d=t.computed(()=>l.type==="a"||_.value===!0?"a":l.tag||e||"div"),y=t.computed(()=>s.value===!0?{href:l.href,target:l.target}:f.value===!0?{href:b.value.href,target:l.target}:{}),u=t.computed(()=>{if(f.value===!1)return-1;const{matched:h}=b.value,{length:S}=h,E=h[S-1];if(E===void 0)return-1;const R=i.$route.matched;if(R.length===0)return-1;const A=R.findIndex(ce.bind(null,E));if(A!==-1)return A;const N=ue(h[S-2]);return S>1&&ue(E)===N&&R[R.length-1].path!==N?R.findIndex(ce.bind(null,h[S-2])):A}),p=t.computed(()=>f.value===!0&&u.value!==-1&&rt(i.$route.params,b.value.params)),m=t.computed(()=>p.value===!0&&u.value===i.$route.matched.length-1&&st(i.$route.params,b.value.params)),g=t.computed(()=>f.value===!0?m.value===!0?` ${l.exactActiveClass} ${l.activeClass}`:l.exact===!0?"":p.value===!0?` ${l.activeClass}`:"":"");function B(h){try{return i.$router.resolve(h)}catch{}return null}function C(h,{returnRouterError:S,to:E=l.to,replace:R=l.replace}={}){if(l.disable===!0)return h.preventDefault(),Promise.resolve(!1);if(h.metaKey||h.altKey||h.ctrlKey||h.shiftKey||h.button!==void 0&&h.button!==0||l.target==="_blank")return Promise.resolve(!1);h.preventDefault();const A=i.$router[R===!0?"replace":"push"](E);return S===!0?A:A.then(()=>{}).catch(()=>{})}function q(h){if(f.value===!0){const S=E=>C(h,E);a("click",h,S),h.defaultPrevented!==!0&&S()}else a("click",h)}return{hasRouterLink:f,hasHrefLink:s,hasLink:_,linkTag:d,resolvedLink:b,linkIsActive:p,linkIsExactActive:m,linkClass:g,linkAttrs:y,getLink:B,navigateToRouterLink:C,navigateOnClick:q}}const fe={none:0,xs:4,sm:8,md:16,lg:24,xl:32},ct={xs:8,sm:10,md:14,lg:20,xl:24},dt=["button","submit","reset"],ft=/[^\s]\/[^\s]/,mt=["flat","outline","push","unelevated"];function Ve(e,n){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":n}function pt(e){const n=Ve(e);return n!==void 0?{[n]:!0}:{}}const Le={...Q,...we,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...mt.reduce((e,n)=>(e[n]=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:{...ot.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},vt={...Le,round:Boolean};function gt(e){const n=U(e,ct),o=lt(e),{hasRouterLink:l,hasLink:i,linkTag:a,linkAttrs:r,navigateOnClick:s}=Pe({fallbackTag:"button"}),k=t.computed(()=>{const m=e.fab===!1&&e.fabMini===!1?n.value:{};return e.padding!==void 0?Object.assign({},m,{padding:e.padding.split(/\s+/).map(g=>g in fe?fe[g]+"px":g).join(" "),minWidth:"0",minHeight:"0"}):m}),b=t.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),f=t.computed(()=>e.disable!==!0&&e.loading!==!0),_=t.computed(()=>f.value===!0?e.tabindex||0:-1),d=t.computed(()=>Ve(e,"standard")),y=t.computed(()=>{const m={tabindex:_.value};return i.value===!0?Object.assign(m,r.value):dt.includes(e.type)===!0&&(m.type=e.type),a.value==="a"?(e.disable===!0?m["aria-disabled"]="true":m.href===void 0&&(m.role="button"),l.value!==!0&&ft.test(e.type)===!0&&(m.type=e.type)):e.disable===!0&&(m.disabled="",m["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(m,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),m}),u=t.computed(()=>{let m;e.color!==void 0?e.flat===!0||e.outline===!0?m=`text-${e.textColor||e.color}`:m=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(m=`text-${e.textColor}`);const g=e.round===!0?"round":`rectangle${b.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${d.value} q-btn--${g}`+(m!==void 0?" "+m:"")+(f.value===!0?" q-btn--actionable q-focusable q-hoverable":e.disable===!0?" disabled":"")+(e.fab===!0?" q-btn--fab":e.fabMini===!0?" q-btn--fab-mini":"")+(e.noCaps===!0?" q-btn--no-uppercase":"")+(e.dense===!0?" q-btn--dense":"")+(e.stretch===!0?" no-border-radius self-stretch":"")+(e.glossy===!0?" glossy":"")+(e.square?" q-btn--square":"")}),p=t.computed(()=>o.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:u,style:k,innerClasses:p,attributes:y,hasLink:i,linkTag:a,navigateOnClick:s,isActionable:f}}const{passiveCapture:L}=H;let D=null,O=null,j=null;const Re=x({name:"QBtn",props:{...vt,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:n,emit:o}){const{proxy:l}=t.getCurrentInstance(),{classes:i,style:a,innerClasses:r,attributes:s,hasLink:k,linkTag:b,navigateOnClick:f,isActionable:_}=gt(e),d=t.ref(null),y=t.ref(null);let u=null,p,m=null;const g=t.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),B=t.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:k.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),C=t.computed(()=>({center:e.round})),q=t.computed(()=>{const c=Math.max(0,Math.min(100,e.percentage));return c>0?{transition:"transform 0.6s",transform:`translateX(${c-100}%)`}:{}}),h=t.computed(()=>{if(e.loading===!0)return{onMousedown:w,onTouchstart:w,onClick:w,onKeydown:w,onKeyup:w};if(_.value===!0){const c={onClick:E,onKeydown:R,onMousedown:N};if(l.$q.platform.has.touch===!0){const $=e.onTouchstart!==void 0?"":"Passive";c[`onTouchstart${$}`]=A}return c}return{onClick:z}}),S=t.computed(()=>({ref:d,class:"q-btn q-btn-item non-selectable no-outline "+i.value,style:a.value,...s.value,...h.value}));function E(c){if(d.value!==null){if(c!==void 0){if(c.defaultPrevented===!0)return;const $=document.activeElement;if(e.type==="submit"&&$!==document.body&&d.value.contains($)===!1&&$.contains(d.value)===!1){c.qAvoidFocus!==!0&&d.value.focus();const I=()=>{var F;document.removeEventListener("keydown",z,!0),document.removeEventListener("keyup",I,L),(F=d.value)==null||F.removeEventListener("blur",I,L)};document.addEventListener("keydown",z,!0),document.addEventListener("keyup",I,L),d.value.addEventListener("blur",I,L)}}f(c)}}function R(c){d.value!==null&&(o("keydown",c),K(c,[13,32])===!0&&O!==d.value&&(O!==null&&v(),c.defaultPrevented!==!0&&(c.qAvoidFocus!==!0&&d.value.focus(),O=d.value,d.value.classList.add("q-btn--active"),document.addEventListener("keyup",V,!0),d.value.addEventListener("blur",V,L)),z(c)))}function A(c){d.value!==null&&(o("touchstart",c),c.defaultPrevented!==!0&&(D!==d.value&&(D!==null&&v(),D=d.value,u=c.target,u.addEventListener("touchcancel",V,L),u.addEventListener("touchend",V,L)),p=!0,m!==null&&clearTimeout(m),m=setTimeout(()=>{m=null,p=!1},200)))}function N(c){d.value!==null&&(c.qSkipRipple=p===!0,o("mousedown",c),c.defaultPrevented!==!0&&j!==d.value&&(j!==null&&v(),j=d.value,d.value.classList.add("q-btn--active"),document.addEventListener("mouseup",V,L)))}function V(c){if(d.value!==null&&!((c==null?void 0:c.type)==="blur"&&document.activeElement===d.value)){if((c==null?void 0:c.type)==="keyup"){if(O===d.value&&K(c,[13,32])===!0){const $=new MouseEvent("click",c);$.qKeyEvent=!0,c.defaultPrevented===!0&&_e($),c.cancelBubble===!0&&ne($),d.value.dispatchEvent($),z(c),c.qKeyEvent=!0}o("keyup",c)}v()}}function v(c){var I,F;const $=y.value;c!==!0&&(D===d.value||j===d.value)&&$!==null&&$!==document.activeElement&&($.setAttribute("tabindex",-1),$.focus()),D===d.value&&(u!==null&&(u.removeEventListener("touchcancel",V,L),u.removeEventListener("touchend",V,L)),D=u=null),j===d.value&&(document.removeEventListener("mouseup",V,L),j=null),O===d.value&&(document.removeEventListener("keyup",V,!0),(I=d.value)==null||I.removeEventListener("blur",V,L),O=null),(F=d.value)==null||F.classList.remove("q-btn--active")}function w(c){z(c),c.qSkipRipple=!0}return t.onBeforeUnmount(()=>{v(!0)}),Object.assign(l,{click:c=>{_.value===!0&&E(c)}}),()=>{let c=[];e.icon!==void 0&&c.push(t.h(Y,{name:e.icon,left:e.stack!==!0&&g.value===!0,role:"img"})),g.value===!0&&c.push(t.h("span",{class:"block"},[e.label])),c=M(n.default,c),e.iconRight!==void 0&&e.round===!1&&c.push(t.h(Y,{name:e.iconRight,right:e.stack!==!0&&g.value===!0,role:"img"}));const $=[t.h("span",{class:"q-focus-helper",ref:y})];return e.loading===!0&&e.percentage!==void 0&&$.push(t.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[t.h("span",{class:"q-btn__progress-indicator fit block",style:q.value})])),$.push(t.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+r.value},c)),e.loading!==null&&$.push(t.h(t.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[t.h("span",{key:"loading",class:"absolute-full flex flex-center"},n.loading!==void 0?n.loading():[t.h(te)])]:null)),t.withDirectives(t.h(b.value,S.value,$),[[qe,B.value,void 0,C.value]])}}}),ht=t.defineComponent({__name:"AppButton",props:{size:{default:P.MD},transparent:{type:Boolean},flat:{type:Boolean},rounded:{type:Boolean},color:{default:J.PRIMARY},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:Boolean},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{},label:{},download:{}},emits:["click"],setup(e){const n=e,o=t.computed(()=>["app-btn",{"app-btn_default":!n.transparent&&!n.flat,"app-btn_trans":n.transparent,"app-btn_flat":n.flat,"app-btn_rounded":n.rounded,"app-btn_icon-left":n.iconLeft,"app-btn_icon-right":n.iconRight,"app-btn_icon-middle":n.iconMiddle},`app-btn_${n.size}`,`app-btn_${n.color}`]);return(l,i)=>(t.openBlock(),t.createBlock(t.unref(Re),{"no-caps":"",unelevated:"",class:t.normalizeClass(o.value),padding:t.unref(Ne)[l.size||t.unref(P).MD],loading:l.loading,disable:l.disabled||void 0,to:l.to,href:l.href,target:l.target,type:l.submit?"submit":void 0,"aria-label":l.ariaLabel,download:l.download,onClick:i[0]||(i[0]=a=>l.$emit("click",a))},{default:t.withCtx(()=>[l.iconLeft||l.iconMiddle?(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass(["icon-kl",l.iconLeft?"icon-kl_left":"icon-kl_middle",`icon-kl-${l.iconLeft||l.iconMiddle}`,l.transparent||l.flat?`text-${l.color}`:"text-secondary"])},null,2)):t.createCommentVNode("",!0),t.renderSlot(l.$slots,"default",{},void 0,!0),l.label?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(l.label),1)],64)):t.createCommentVNode("",!0),l.iconRight?(t.openBlock(),t.createElementBlock("i",{key:2,class:t.normalizeClass(["icon-kl","icon-kl_right",`icon-kl-${l.iconRight}`,l.transparent?`text-${l.color}`:"text-secondary"])},null,2)):t.createCommentVNode("",!0)]),_:3},8,["class","padding","loading","disable","to","href","target","type","aria-label","download"]))}}),T=(e,n)=>{const o=e.__vccOpts||e;for(const[l,i]of n)o[l]=i;return o},bt=T(ht,[["__scopeId","data-v-c9951ab6"]]),kt={key:0,class:"app-toggle__label app-toggle__label_left"},yt={class:"app-toggle__container"},_t=["checked","disabled"],Bt={class:"app-toggle__thumb"},$t={key:1,class:"app-toggle__label"},Ct=t.defineComponent({__name:"AppToggle",props:{modelValue:{type:Boolean},size:{default:P.MD},label:{},disabled:{type:Boolean},color:{default:J.PRIMARY},iconColor:{},icon:{},iconActive:{},labelLeft:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:n}){const o=e,l=n,i=t.computed({get:()=>o.modelValue,set:r=>{l("update:modelValue",r)}}),a=t.computed(()=>["app-toggle",{"app-toggle_active":i.value,"app-toggle_disabled":o.disabled},`app-toggle_${o.size}`,`app-toggle_${o.color}`]);return(r,s)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(a.value)},[r.label&&r.labelLeft?(t.openBlock(),t.createElementBlock("span",kt,t.toDisplayString(r.label),1)):t.createCommentVNode("",!0),t.createElementVNode("label",yt,[t.createElementVNode("input",{type:"checkbox",checked:i.value,onChange:s[0]||(s[0]=k=>i.value=!i.value),disabled:r.disabled,class:"app-toggle__input"},null,40,_t),t.createElementVNode("span",{class:t.normalizeClass(["app-toggle__slider",i.value?`bg-${r.color}`:""])},[t.createElementVNode("span",Bt,[r.icon&&!r.modelValue?(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass(["icon-kl",`icon-kl-${r.icon}`,"app-toggle__icon"])},null,2)):t.createCommentVNode("",!0),r.modelValue&&(r.iconActive||r.icon)?(t.openBlock(),t.createElementBlock("i",{key:1,class:t.normalizeClass(["icon-kl",`icon-kl-${r.iconActive||r.icon}`,"app-toggle__icon",i.value?`text-${r.iconColor}`:""])},null,2)):t.createCommentVNode("",!0)])],2),t.renderSlot(r.$slots,"default",{},void 0,!0)]),r.label&&!r.labelLeft?(t.openBlock(),t.createElementBlock("span",$t,t.toDisplayString(r.label),1)):t.createCommentVNode("",!0)],2))}}),Ae=T(Ct,[["__scopeId","data-v-c6702cb0"]]),oe={dark:{type:Boolean,default:null}};function le(e,n){return t.computed(()=>e.dark===null?n.dark.isActive:e.dark)}function qt(e,n){const o=t.ref(null),l=t.computed(()=>e.disable===!0?null:t.h("span",{ref:o,class:"no-outline",tabindex:-1}));function i(a){const r=n.value;(a==null?void 0:a.qAvoidFocus)!==!0&&((a==null?void 0:a.type.indexOf("key"))===0?document.activeElement!==r&&(r==null?void 0:r.contains(document.activeElement))===!0&&r.focus():o.value!==null&&(a===void 0||(r==null?void 0:r.contains(a.target))===!0)&&o.value.focus())}return{refocusTargetEl:l,refocusTarget:i}}const ze={name:String};function St(e={}){return(n,o,l)=>{n[o](t.h("input",{class:"hidden"+(l||""),...e.value}))}}function Et(e){return t.computed(()=>e.name||e.for)}const wt={xs:30,sm:35,md:40,lg:50,xl:60},Pt={...oe,...Q,...ze,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:e=>e==="tf"||e==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},Vt=["update:modelValue"];function Lt(e,n){const{props:o,slots:l,emit:i,proxy:a}=t.getCurrentInstance(),{$q:r}=a,s=le(o,r),k=t.ref(null),{refocusTargetEl:b,refocusTarget:f}=qt(o,k),_=U(o,wt),d=t.computed(()=>o.val!==void 0&&Array.isArray(o.modelValue)),y=t.computed(()=>{const v=t.toRaw(o.val);return d.value===!0?o.modelValue.findIndex(w=>t.toRaw(w)===v):-1}),u=t.computed(()=>d.value===!0?y.value!==-1:t.toRaw(o.modelValue)===t.toRaw(o.trueValue)),p=t.computed(()=>d.value===!0?y.value===-1:t.toRaw(o.modelValue)===t.toRaw(o.falseValue)),m=t.computed(()=>u.value===!1&&p.value===!1),g=t.computed(()=>o.disable===!0?-1:o.tabindex||0),B=t.computed(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(o.disable===!0?" disabled":"")+(s.value===!0?` q-${e}--dark`:"")+(o.dense===!0?` q-${e}--dense`:"")+(o.leftLabel===!0?" reverse":"")),C=t.computed(()=>{const v=u.value===!0?"truthy":p.value===!0?"falsy":"indet",w=o.color!==void 0&&(o.keepColor===!0||p.value!==!0)?` text-${o.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${v}${w}`}),q=t.computed(()=>{const v={type:"checkbox"};return o.name!==void 0&&Object.assign(v,{".checked":u.value,"^checked":u.value===!0?"checked":void 0,name:o.name,value:d.value===!0?o.val:o.trueValue}),v}),h=St(q),S=t.computed(()=>{const v={tabindex:g.value,role:"checkbox","aria-label":o.label,"aria-checked":m.value===!0?"mixed":u.value===!0?"true":"false"};return o.disable===!0&&(v["aria-disabled"]="true"),v});function E(v){v!==void 0&&(z(v),f(v)),o.disable!==!0&&i("update:modelValue",R(),v)}function R(){if(d.value===!0){if(u.value===!0){const v=o.modelValue.slice();return v.splice(y.value,1),v}return o.modelValue.concat([o.val])}if(u.value===!0){if(o.toggleOrder!=="ft"||o.toggleIndeterminate===!1)return o.falseValue}else if(p.value===!0){if(o.toggleOrder==="ft"||o.toggleIndeterminate===!1)return o.trueValue}else return o.toggleOrder!=="ft"?o.trueValue:o.falseValue;return o.indeterminateValue}function A(v){(v.keyCode===13||v.keyCode===32)&&z(v)}function N(v){(v.keyCode===13||v.keyCode===32)&&E(v)}const V=n(u,m);return Object.assign(a,{toggle:E}),()=>{const v=V();o.disable!==!0&&h(v,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const w=[t.h("div",{class:C.value,style:_.value,"aria-hidden":"true"},v)];b.value!==null&&w.push(b.value);const c=o.label!==void 0?M(l.default,[o.label]):ee(l.default);return c!==void 0&&w.push(t.h("div",{class:`q-${e}__label q-anchor--skip`},c)),t.h("div",{ref:k,class:B.value,...S.value,onClick:E,onKeydown:A,onKeyup:N},w)}}const Rt=()=>t.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[t.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[t.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),t.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),At=x({name:"QCheckbox",props:Pt,emits:Vt,setup(e){const n=Rt();function o(l,i){const a=t.computed(()=>(l.value===!0?e.checkedIcon:i.value===!0?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>a.value!==null?[t.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[t.h(Y,{class:"q-checkbox__icon",name:a.value})])]:[n]}return Lt("checkbox",o)}}),Me=[];function zt(e){return Me.find(n=>n.contentEl!==null&&n.contentEl.contains(e))}function Ie(e,n){do{if(e.$options.name==="QMenu"){if(e.hide(n),e.$props.separateClosePopup===!0)return X(e)}else if(e.__qPortal===!0){const o=X(e);return(o==null?void 0:o.$options.name)==="QPopupProxy"?(e.hide(n),o):e}e=X(e)}while(e!=null)}function Mt(e,n,o){for(;o!==0&&e!==void 0&&e!==null;){if(e.__qPortal===!0){if(o--,e.$options.name==="QMenu"){e=Ie(e,n);continue}e.hide(n)}e=X(e)}}function me(e){if(e===!1)return 0;if(e===!0||e===void 0)return 1;const n=parseInt(e,10);return isNaN(n)?0:n}const It=ve({name:"close-popup",beforeMount(e,{value:n}){const o={depth:me(n),handler(l){o.depth!==0&&setTimeout(()=>{const i=zt(e);i!==void 0&&Mt(i,l,o.depth)})},handlerKey(l){K(l,13)===!0&&o.handler(l)}};e.__qclosepopup=o,e.addEventListener("click",o.handler),e.addEventListener("keyup",o.handlerKey)},updated(e,{value:n,oldValue:o}){n!==o&&(e.__qclosepopup.depth=me(n))},beforeUnmount(e){const n=e.__qclosepopup;e.removeEventListener("click",n.handler),e.removeEventListener("keyup",n.handlerKey),delete e.__qclosepopup}}),Tt={key:0,class:"menu-item__loading"},Nt={key:0,class:"menu-item__checked"},Dt={key:2,class:"menu-item__icon"},Ot={class:"menu-item__label"},jt={key:3,class:"menu-item__icon-right icon-kl icon-kl-arrow-right"},xt=t.defineComponent({__name:"PopupItem",props:{label:{},icon:{},iconSize:{},color:{},iconRight:{},arrow:{type:Boolean},toggle:{type:Boolean},checkbox:{type:Boolean},active:{type:Boolean},modelValue:{type:Boolean},persistent:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},gap:{type:Boolean},checked:{type:Boolean},isMobile:{type:Boolean}},emits:["update:modelValue","closePopup"],setup(e,{emit:n}){const o=e,l=n,i=()=>{o.disabled||(o.toggle||o.checkbox?l("update:modelValue",!o.modelValue):o.persistent||l("closePopup"))};return(a,r)=>t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["menu-item",[{"menu-item_gap":a.gap},{"menu-item_disabled":a.disabled},{"menu-item_active":a.active},{"menu-item_mobile":a.isMobile}]]),onClick:i},[t.createElementVNode("div",{class:t.normalizeClass(["row items-center no-wrap",`text-${a.color?a.color:"dark"}`])},[a.loading?(t.openBlock(),t.createElementBlock("div",Tt,[t.createVNode(t.unref(te),{size:"19px",color:a.color?a.color:"dark"},null,8,["color"])])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[a.checked?(t.openBlock(),t.createElementBlock("div",Nt,[...r[2]||(r[2]=[t.createElementVNode("i",{class:"icon-kl icon-kl-check"},null,-1)])])):t.createCommentVNode("",!0),a.checkbox?(t.openBlock(),t.createBlock(At,{key:1,class:"menu-item__checkbox",size:"34px","model-value":a.modelValue,"onUpdate:modelValue":r[0]||(r[0]=s=>l("update:modelValue",s))},null,8,["model-value"])):t.createCommentVNode("",!0),a.icon?(t.openBlock(),t.createElementBlock("div",Dt,[t.createElementVNode("i",{class:t.normalizeClass(`icon-kl icon-kl-${a.icon}`),style:t.normalizeStyle({fontSize:a.iconSize||"27px"})},null,6)])):t.createCommentVNode("",!0)],64)),t.createElementVNode("span",Ot,t.toDisplayString(a.label),1)],2),a.$slots.right?t.renderSlot(a.$slots,"right",{key:0},void 0,!0):a.toggle?(t.openBlock(),t.createBlock(Ae,{key:1,class:"menu-item__toggle","model-value":a.modelValue,disabled:a.disabled||a.loading,"onUpdate:modelValue":r[1]||(r[1]=s=>l("update:modelValue",s))},null,8,["model-value","disabled"])):a.iconRight?(t.openBlock(),t.createElementBlock("i",{key:2,class:t.normalizeClass(["menu-item__icon-right menu-item__icon-right_custom icon-kl",`icon-kl-${a.iconRight}`])},null,2)):a.arrow?(t.openBlock(),t.createElementBlock("i",jt)):t.createCommentVNode("",!0)],2)),[[It,!a.toggle&&!a.checkbox&&!a.persistent&&!a.disabled]])}}),Ft=T(xt,[["__scopeId","data-v-6b725efb"]]),Kt=t.defineComponent({__name:"AppIcon",props:{name:{},size:{},color:{}},setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock("i",{class:t.normalizeClass(["icon-kl",`icon-kl-${n.name}`,n.color?`text-${n.color}`:""]),style:t.normalizeStyle(n.size?`font-size: ${n.size}`:void 0)},null,6))}}),Qt=T(Kt,[["__scopeId","data-v-941765ee"]]),Ut={xs:2,sm:4,md:6,lg:10,xl:14};function pe(e,n,o){return{transform:n===!0?`translateX(${o.lang.rtl===!0?"-":""}100%) scale3d(${-e},1,1)`:`scale3d(${e},1,1)`}}const Ht=x({name:"QLinearProgress",props:{...oe,...Q,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(e,{slots:n}){const{proxy:o}=t.getCurrentInstance(),l=le(e,o.$q),i=U(e,Ut),a=t.computed(()=>e.indeterminate===!0||e.query===!0),r=t.computed(()=>e.reverse!==e.query),s=t.computed(()=>({...i.value!==null?i.value:{},"--q-linear-progress-speed":`${e.animationSpeed}ms`})),k=t.computed(()=>"q-linear-progress"+(e.color!==void 0?` text-${e.color}`:"")+(e.reverse===!0||e.query===!0?" q-linear-progress--reverse":"")+(e.rounded===!0?" rounded-borders":"")),b=t.computed(()=>pe(e.buffer!==void 0?e.buffer:1,r.value,o.$q)),f=t.computed(()=>`with${e.instantFeedback===!0?"out":""}-transition`),_=t.computed(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${f.value} q-linear-progress__track--${l.value===!0?"dark":"light"}`+(e.trackColor!==void 0?` bg-${e.trackColor}`:"")),d=t.computed(()=>pe(a.value===!0?1:e.value,r.value,o.$q)),y=t.computed(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${f.value} q-linear-progress__model--${a.value===!0?"in":""}determinate`),u=t.computed(()=>({width:`${e.value*100}%`})),p=t.computed(()=>`q-linear-progress__stripe absolute-${e.reverse===!0?"right":"left"} q-linear-progress__stripe--${f.value}`);return()=>{const m=[t.h("div",{class:_.value,style:b.value}),t.h("div",{class:y.value,style:d.value})];return e.stripe===!0&&a.value===!1&&m.push(t.h("div",{class:p.value,style:u.value})),t.h("div",{class:k.value,style:s.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":e.indeterminate===!0?void 0:e.value},M(n.default,m))}}}),Xt={key:0,class:"code-field__label"},Yt={class:"code-field__inputs"},Wt=["onUpdate:modelValue","disabled","onInput","onKeydown","onPaste"],Gt=t.defineComponent({__name:"AppCodeInput",props:{length:{default:5},size:{default:P.MD},label:{},disabled:{type:Boolean},loading:{type:Boolean},autofocus:{type:Boolean},color:{}},emits:["update:modelValue","completed"],setup(e,{expose:n,emit:o}){const l=e,i=o,a=t.ref(Array(l.length).fill("")),r=t.ref([]),s=t.computed(()=>["code-field",{"code-field_disabled":l.disabled||l.loading},`code-field_${l.size}`,`code-field_${l.color}`]),k=t.computed(()=>{let u="";return l.size==P.SM&&(u+=`width: ${l.length*26+(l.length-1)*5}px`),l.size==P.MD&&(u+=`width: ${l.length*32+(l.length-1)*8}px`),l.size==P.LG&&(u+=`width: ${l.length*44+(l.length-1)*10}px`),u}),b=(u,p)=>{var B;const g=u.target.value;if(g.length===1)p<l.length-1&&r.value&&((B=r.value[p+1])==null||B.focus());else if(g.length>1){const C=g.slice(0,l.length-p).split("");C.forEach((q,h)=>{a.value[p+h]=q}),t.nextTick(()=>{var q;r.value&&((q=r.value[Math.min(p+C.length,l.length-1)])==null||q.focus())})}},f=u=>{var p;a.value[u]===""&&r.value&&u>0&&((p=r.value[u-1])==null||p.focus())},_=(u,p)=>{var B;u.preventDefault();const m=((B=u.clipboardData)==null?void 0:B.getData("text"))??"";if(!m)return;const g=m.slice(0,l.length-p).split("");g.forEach((C,q)=>{a.value[p+q]=C}),t.nextTick(()=>{var C;r.value&&((C=r.value[Math.min(p+g.length,l.length-1)])==null||C.focus())})};t.watch(a,u=>{const p=u.join("");d(p)},{deep:!0});const d=u=>{i("update:modelValue",u),u.length===l.length&&!u.includes(" ")&&i("completed",u)},y=u=>{u&&(a.value=u.split("").slice(0,l.length))};return t.onMounted(()=>{l.autofocus&&r.value&&r.value[0]&&r.value[0].focus()}),n({injectCode:y}),(u,p)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(s.value),style:t.normalizeStyle(k.value)},[u.label?(t.openBlock(),t.createElementBlock("label",Xt,t.toDisplayString(u.label),1)):t.createCommentVNode("",!0),t.createElementVNode("div",Yt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.length,(m,g)=>t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:g,"onUpdate:modelValue":B=>a.value[g]=B,ref_for:!0,ref_key:"inputRefs",ref:r,type:"number",maxlength:"1",class:"code-field__input",disabled:u.disabled||u.loading,onInput:B=>b(B,g),onKeydown:t.withKeys(B=>f(g),["backspace"]),onPaste:B=>_(B,g)},null,40,Wt)),[[t.vModelText,a.value[g]]])),128))]),u.loading?(t.openBlock(),t.createBlock(Ht,{key:1,indeterminate:"",rounded:"",color:u.color,class:"code-field__loading"},null,8,["color"])):t.createCommentVNode("",!0)],6))}}),Zt=T(Gt,[["__scopeId","data-v-4e11db87"]]),Jt={class:"app-segment__track"},en={class:"app-segment__buttons"},tn=["onClick","disabled"],nn=t.defineComponent({__name:"AppSegment",props:t.mergeModels({options:{},disabled:{type:Boolean},size:{default:P.MD}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const n=t.useModel(e,"modelValue"),o=e,l=t.computed(()=>o.options.findIndex(a=>a.value===n.value));function i(a){o.disabled||(n.value=a)}return(a,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["app-segment",[{"app-segment_disabled":a.disabled},`app-segment_${a.size}`]])},[t.createElementVNode("div",Jt,[t.createElementVNode("div",{class:"app-segment__thumb",style:t.normalizeStyle({width:`${100/a.options.length}%`,transform:`translateX(${l.value*100}%)`})},null,4)]),t.createElementVNode("div",en,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.options,(s,k)=>(t.openBlock(),t.createElementBlock("button",{key:k,class:t.normalizeClass(["app-segment__btn",{active:n.value===s.value}]),onClick:b=>i(s.value),disabled:a.disabled},[t.renderSlot(a.$slots,"option",{option:s},()=>[t.createTextVNode(t.toDisplayString(s.label),1)],!0)],10,tn))),128))])],2))}}),on=T(nn,[["__scopeId","data-v-ff56abdf"]]),ln=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./AppButtonCopy-BZ0kxolp.cjs"))),an=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./AppSelect-BO8fpCsM.cjs"))),rn=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DropdownButton-TtEWgE1L.cjs")));exports.AppButton=bt;exports.AppButtonCopy=ln;exports.AppCodeInput=Zt;exports.AppIcon=Qt;exports.AppSegment=on;exports.AppSelect=an;exports.AppToggle=Ae;exports.COLORS=J;exports.DropdownButton=rn;exports.PopupItem=Ft;exports.QBtn=Re;exports.QIcon=Y;exports.QSpinner=te;exports.Ripple=qe;exports.SIZES=P;exports._export_sfc=T;exports.addEvt=Be;exports.childHasFocus=Ze;exports.cleanEvt=$e;exports.closePortalMenus=Ie;exports.createComponent=x;exports.css=ke;exports.getBtnDesignAttr=pt;exports.getElement=Ge;exports.getEventPath=et;exports.hDir=je;exports.hMergeSlot=M;exports.hMergeSlotSafely=Oe;exports.hSlot=ee;exports.hUniqueSlot=De;exports.iconSet=Te;exports.isKeyCode=K;exports.listenOpts=H;exports.nonRoundBtnProps=Le;exports.noop=Je;exports.portalProxyList=Me;exports.position=ye;exports.prevent=_e;exports.shouldIgnoreKey=Ce;exports.stop=ne;exports.stopAndPrevent=z;exports.useDark=le;exports.useDarkProps=oe;exports.useFormInputNameAttr=Et;exports.useFormProps=ze;exports.useRouterLink=Pe;exports.useRouterLinkProps=ut;exports.useSize=U;exports.useSizeProps=Q;exports.vmHasRouter=Ee;exports.vmIsDestroyed=at;
@@ -1,4 +1,4 @@
1
- import { computed as r, markRaw as Ee, defineComponent as K, h as p, withDirectives as oe, getCurrentInstance as ee, unref as Z, ref as W, onBeforeUnmount as Fe, Transition as Qe, createBlock as ae, openBlock as b, normalizeClass as P, withCtx as Ue, createElementBlock as _, createCommentVNode as A, renderSlot as se, Fragment as ie, createTextVNode as Pe, toDisplayString as Y, createElementVNode as T, toRaw as Q, createVNode as He, normalizeStyle as re, watch as Xe, onMounted as We, renderList as Le, withKeys as Ye, vModelText as Ge, nextTick as he, mergeModels as Je, useModel as Ze, defineAsyncComponent as ge } from "vue";
1
+ import { computed as r, markRaw as Ee, defineComponent as K, h as p, withDirectives as oe, getCurrentInstance as ee, unref as Z, ref as W, onBeforeUnmount as Fe, Transition as Qe, createBlock as ae, openBlock as b, normalizeClass as P, withCtx as Ue, createElementBlock as _, createCommentVNode as V, renderSlot as se, Fragment as ie, createTextVNode as Pe, toDisplayString as Y, createElementVNode as T, toRaw as Q, createVNode as He, normalizeStyle as re, watch as Xe, onMounted as We, renderList as Le, withKeys as Ye, vModelText as Ge, nextTick as he, mergeModels as Je, useModel as Ze, defineAsyncComponent as ge } from "vue";
2
2
  const _n = ({ app: e }) => {
3
3
  const t = e.config.globalProperties.$q;
4
4
  t.iconMapFn = (n) => {
@@ -38,7 +38,7 @@ function te(e) {
38
38
  function Me(e) {
39
39
  return Ee(e);
40
40
  }
41
- function Ae(e, t) {
41
+ function Ve(e, t) {
42
42
  return e !== void 0 && e() || t;
43
43
  }
44
44
  function $n(e, t) {
@@ -60,7 +60,7 @@ function Sn(e, t, n, a, s, l) {
60
60
  const o = p(e, t, n);
61
61
  return s === !0 ? oe(o, l()) : o;
62
62
  }
63
- const be = "0 0 24 24", fe = (e) => e, ve = (e) => `ionicons ${e}`, Ve = {
63
+ const be = "0 0 24 24", fe = (e) => e, ve = (e) => `ionicons ${e}`, Ae = {
64
64
  "mdi-": (e) => `mdi ${e}`,
65
65
  "icon-": fe,
66
66
  // fontawesome equiv
@@ -82,7 +82,7 @@ const be = "0 0 24 24", fe = (e) => e, ve = (e) => `ionicons ${e}`, Ve = {
82
82
  sym_o_: "-outlined",
83
83
  sym_r_: "-rounded",
84
84
  sym_s_: "-sharp"
85
- }, tt = new RegExp("^(" + Object.keys(Ve).join("|") + ")"), nt = new RegExp("^(" + Object.keys(Ie).join("|") + ")"), ke = new RegExp("^(" + Object.keys(Te).join("|") + ")"), at = /^[Mm]\s?[-+]?\.?\d/, lt = /^img:/, ot = /^svguse:/, st = /^ion-/, it = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, me = te({
85
+ }, tt = new RegExp("^(" + Object.keys(Ae).join("|") + ")"), nt = new RegExp("^(" + Object.keys(Ie).join("|") + ")"), ke = new RegExp("^(" + Object.keys(Te).join("|") + ")"), at = /^[Mm]\s?[-+]?\.?\d/, lt = /^img:/, ot = /^svguse:/, st = /^ion-/, it = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, me = te({
86
86
  name: "QIcon",
87
87
  props: {
88
88
  ...ue,
@@ -141,7 +141,7 @@ const be = "0 0 24 24", fe = (e) => e, ve = (e) => `ionicons ${e}`, Ve = {
141
141
  let $ = " ";
142
142
  const y = i.match(tt);
143
143
  if (y !== null)
144
- o = Ve[y[1]](i);
144
+ o = Ae[y[1]](i);
145
145
  else if (it.test(i) === !0)
146
146
  o = i;
147
147
  else if (st.test(i) === !0)
@@ -166,7 +166,7 @@ const be = "0 0 24 24", fe = (e) => e, ve = (e) => `ionicons ${e}`, Ve = {
166
166
  style: a.value,
167
167
  "aria-hidden": "true"
168
168
  };
169
- return l.value.none === !0 ? p(e.tag, o, Ae(t.default)) : l.value.img === !0 ? p(e.tag, o, N(t.default, [
169
+ return l.value.none === !0 ? p(e.tag, o, Ve(t.default)) : l.value.img === !0 ? p(e.tag, o, N(t.default, [
170
170
  p("img", { src: l.value.src })
171
171
  ])) : l.value.svg === !0 ? p(e.tag, o, N(t.default, [
172
172
  p("svg", {
@@ -682,7 +682,7 @@ function Mt(e) {
682
682
  }
683
683
  const { passiveCapture: I } = de;
684
684
  let U = null, H = null, X = null;
685
- const At = te({
685
+ const Vt = te({
686
686
  name: "QBtn",
687
687
  props: {
688
688
  ...Rt,
@@ -761,17 +761,17 @@ const At = te({
761
761
  }
762
762
  }
763
763
  function O(c) {
764
- d.value !== null && (n("keydown", c), le(c, [13, 32]) === !0 && H !== d.value && (H !== null && g(), c.defaultPrevented !== !0 && (c.qAvoidFocus !== !0 && d.value.focus(), H = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("keyup", V, !0), d.value.addEventListener("blur", V, I)), D(c)));
764
+ d.value !== null && (n("keydown", c), le(c, [13, 32]) === !0 && H !== d.value && (H !== null && g(), c.defaultPrevented !== !0 && (c.qAvoidFocus !== !0 && d.value.focus(), H = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("keyup", A, !0), d.value.addEventListener("blur", A, I)), D(c)));
765
765
  }
766
766
  function j(c) {
767
- d.value !== null && (n("touchstart", c), c.defaultPrevented !== !0 && (U !== d.value && (U !== null && g(), U = d.value, u = c.target, u.addEventListener("touchcancel", V, I), u.addEventListener("touchend", V, I)), m = !0, v !== null && clearTimeout(v), v = setTimeout(() => {
767
+ d.value !== null && (n("touchstart", c), c.defaultPrevented !== !0 && (U !== d.value && (U !== null && g(), U = d.value, u = c.target, u.addEventListener("touchcancel", A, I), u.addEventListener("touchend", A, I)), m = !0, v !== null && clearTimeout(v), v = setTimeout(() => {
768
768
  v = null, m = !1;
769
769
  }, 200)));
770
770
  }
771
771
  function F(c) {
772
- d.value !== null && (c.qSkipRipple = m === !0, n("mousedown", c), c.defaultPrevented !== !0 && X !== d.value && (X !== null && g(), X = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("mouseup", V, I)));
772
+ d.value !== null && (c.qSkipRipple = m === !0, n("mousedown", c), c.defaultPrevented !== !0 && X !== d.value && (X !== null && g(), X = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("mouseup", A, I)));
773
773
  }
774
- function V(c) {
774
+ function A(c) {
775
775
  if (d.value !== null && !((c == null ? void 0 : c.type) === "blur" && document.activeElement === d.value)) {
776
776
  if ((c == null ? void 0 : c.type) === "keyup") {
777
777
  if (H === d.value && le(c, [13, 32]) === !0) {
@@ -786,7 +786,7 @@ const At = te({
786
786
  function g(c) {
787
787
  var x, J;
788
788
  const B = q.value;
789
- c !== !0 && (U === d.value || X === d.value) && B !== null && B !== document.activeElement && (B.setAttribute("tabindex", -1), B.focus()), U === d.value && (u !== null && (u.removeEventListener("touchcancel", V, I), u.removeEventListener("touchend", V, I)), U = u = null), X === d.value && (document.removeEventListener("mouseup", V, I), X = null), H === d.value && (document.removeEventListener("keyup", V, !0), (x = d.value) == null || x.removeEventListener("blur", V, I), H = null), (J = d.value) == null || J.classList.remove("q-btn--active");
789
+ c !== !0 && (U === d.value || X === d.value) && B !== null && B !== document.activeElement && (B.setAttribute("tabindex", -1), B.focus()), U === d.value && (u !== null && (u.removeEventListener("touchcancel", A, I), u.removeEventListener("touchend", A, I)), U = u = null), X === d.value && (document.removeEventListener("mouseup", A, I), X = null), H === d.value && (document.removeEventListener("keyup", A, !0), (x = d.value) == null || x.removeEventListener("blur", A, I), H = null), (J = d.value) == null || J.classList.remove("q-btn--active");
790
790
  }
791
791
  function M(c) {
792
792
  D(c), c.qSkipRipple = !0;
@@ -857,7 +857,7 @@ const At = te({
857
857
  );
858
858
  };
859
859
  }
860
- }), Vt = /* @__PURE__ */ K({
860
+ }), At = /* @__PURE__ */ K({
861
861
  __name: "AppButton",
862
862
  props: {
863
863
  size: { default: z.MD },
@@ -894,7 +894,7 @@ const At = te({
894
894
  `app-btn_${t.size}`,
895
895
  `app-btn_${t.color}`
896
896
  ]);
897
- return (a, s) => (b(), ae(Z(At), {
897
+ return (a, s) => (b(), ae(Z(Vt), {
898
898
  "no-caps": "",
899
899
  unelevated: "",
900
900
  class: P(n.value),
@@ -918,11 +918,11 @@ const At = te({
918
918
  `icon-kl-${a.iconLeft || a.iconMiddle}`,
919
919
  a.transparent || a.flat ? `text-${a.color}` : "text-secondary"
920
920
  ])
921
- }, null, 2)) : A("", !0),
921
+ }, null, 2)) : V("", !0),
922
922
  se(a.$slots, "default", {}, void 0, !0),
923
923
  a.label ? (b(), _(ie, { key: 1 }, [
924
924
  Pe(Y(a.label), 1)
925
- ], 64)) : A("", !0),
925
+ ], 64)) : V("", !0),
926
926
  a.iconRight ? (b(), _("i", {
927
927
  key: 2,
928
928
  class: P([
@@ -931,7 +931,7 @@ const At = te({
931
931
  `icon-kl-${a.iconRight}`,
932
932
  a.transparent ? `text-${a.color}` : "text-secondary"
933
933
  ])
934
- }, null, 2)) : A("", !0)
934
+ }, null, 2)) : V("", !0)
935
935
  ]),
936
936
  _: 3
937
937
  }, 8, ["class", "padding", "loading", "disable", "to", "href", "target", "type", "aria-label", "download"]));
@@ -941,7 +941,7 @@ const At = te({
941
941
  for (const [a, s] of t)
942
942
  n[a] = s;
943
943
  return n;
944
- }, Mn = /* @__PURE__ */ G(Vt, [["__scopeId", "data-v-44d5548c"]]), It = {
944
+ }, Mn = /* @__PURE__ */ G(At, [["__scopeId", "data-v-c9951ab6"]]), It = {
945
945
  key: 0,
946
946
  class: "app-toggle__label app-toggle__label_left"
947
947
  }, Tt = { class: "app-toggle__container" }, zt = ["checked", "disabled"], Ot = { class: "app-toggle__thumb" }, jt = {
@@ -979,7 +979,7 @@ const At = te({
979
979
  return (o, i) => (b(), _("div", {
980
980
  class: P(l.value)
981
981
  }, [
982
- o.label && o.labelLeft ? (b(), _("span", It, Y(o.label), 1)) : A("", !0),
982
+ o.label && o.labelLeft ? (b(), _("span", It, Y(o.label), 1)) : V("", !0),
983
983
  T("label", Tt, [
984
984
  T("input", {
985
985
  type: "checkbox",
@@ -995,7 +995,7 @@ const At = te({
995
995
  o.icon && !o.modelValue ? (b(), _("i", {
996
996
  key: 0,
997
997
  class: P(["icon-kl", `icon-kl-${o.icon}`, "app-toggle__icon"])
998
- }, null, 2)) : A("", !0),
998
+ }, null, 2)) : V("", !0),
999
999
  o.modelValue && (o.iconActive || o.icon) ? (b(), _("i", {
1000
1000
  key: 1,
1001
1001
  class: P([
@@ -1004,12 +1004,12 @@ const At = te({
1004
1004
  "app-toggle__icon",
1005
1005
  s.value ? `text-${o.iconColor}` : ""
1006
1006
  ])
1007
- }, null, 2)) : A("", !0)
1007
+ }, null, 2)) : V("", !0)
1008
1008
  ])
1009
1009
  ], 2),
1010
1010
  se(o.$slots, "default", {}, void 0, !0)
1011
1011
  ]),
1012
- o.label && !o.labelLeft ? (b(), _("span", jt, Y(o.label), 1)) : A("", !0)
1012
+ o.label && !o.labelLeft ? (b(), _("span", jt, Y(o.label), 1)) : V("", !0)
1013
1013
  ], 2));
1014
1014
  }
1015
1015
  }), xt = /* @__PURE__ */ G(Dt, [["__scopeId", "data-v-c6702cb0"]]), Ne = {
@@ -1049,7 +1049,7 @@ function Ft(e = {}) {
1049
1049
  );
1050
1050
  };
1051
1051
  }
1052
- function An(e) {
1052
+ function Vn(e) {
1053
1053
  return r(() => e.name || e.for);
1054
1054
  }
1055
1055
  const Qt = {
@@ -1144,9 +1144,9 @@ function Xt(e, t) {
1144
1144
  function F(g) {
1145
1145
  (g.keyCode === 13 || g.keyCode === 32) && R(g);
1146
1146
  }
1147
- const V = t(u, v);
1147
+ const A = t(u, v);
1148
1148
  return Object.assign(l, { toggle: R }), () => {
1149
- const g = V();
1149
+ const g = A();
1150
1150
  n.disable !== !0 && k(
1151
1151
  g,
1152
1152
  "unshift",
@@ -1160,7 +1160,7 @@ function Xt(e, t) {
1160
1160
  }, g)
1161
1161
  ];
1162
1162
  y.value !== null && M.push(y.value);
1163
- const c = n.label !== void 0 ? N(a.default, [n.label]) : Ae(a.default);
1163
+ const c = n.label !== void 0 ? N(a.default, [n.label]) : Ve(a.default);
1164
1164
  return c !== void 0 && M.push(
1165
1165
  p("div", {
1166
1166
  class: `q-${e}__label q-anchor--skip`
@@ -1301,7 +1301,7 @@ const tn = Me(
1301
1301
  iconSize: {},
1302
1302
  color: {},
1303
1303
  iconRight: {},
1304
- noArrow: { type: Boolean },
1304
+ arrow: { type: Boolean },
1305
1305
  toggle: { type: Boolean },
1306
1306
  checkbox: { type: Boolean },
1307
1307
  active: { type: Boolean },
@@ -1338,20 +1338,20 @@ const tn = Me(
1338
1338
  ])) : (b(), _(ie, { key: 1 }, [
1339
1339
  l.checked ? (b(), _("div", an, [...o[2] || (o[2] = [
1340
1340
  T("i", { class: "icon-kl icon-kl-check" }, null, -1)
1341
- ])])) : A("", !0),
1341
+ ])])) : V("", !0),
1342
1342
  l.checkbox ? (b(), ae(Yt, {
1343
1343
  key: 1,
1344
1344
  class: "menu-item__checkbox",
1345
1345
  size: "34px",
1346
1346
  "model-value": l.modelValue,
1347
1347
  "onUpdate:modelValue": o[0] || (o[0] = (i) => a("update:modelValue", i))
1348
- }, null, 8, ["model-value"])) : A("", !0),
1348
+ }, null, 8, ["model-value"])) : V("", !0),
1349
1349
  l.icon ? (b(), _("div", ln, [
1350
1350
  T("i", {
1351
1351
  class: P(`icon-kl icon-kl-${l.icon}`),
1352
1352
  style: re({ fontSize: l.iconSize || "27px" })
1353
1353
  }, null, 6)
1354
- ])) : A("", !0)
1354
+ ])) : V("", !0)
1355
1355
  ], 64)),
1356
1356
  T("span", on, Y(l.label), 1)
1357
1357
  ], 2),
@@ -1367,12 +1367,12 @@ const tn = Me(
1367
1367
  "menu-item__icon-right menu-item__icon-right_custom icon-kl",
1368
1368
  `icon-kl-${l.iconRight}`
1369
1369
  ])
1370
- }, null, 2)) : !l.noArrow && !l.loading ? (b(), _("i", sn)) : A("", !0)
1370
+ }, null, 2)) : l.arrow ? (b(), _("i", sn)) : V("", !0)
1371
1371
  ], 2)), [
1372
1372
  [tn, !l.toggle && !l.checkbox && !l.persistent && !l.disabled]
1373
1373
  ]);
1374
1374
  }
1375
- }), Vn = /* @__PURE__ */ G(rn, [["__scopeId", "data-v-ad1350d0"]]), un = /* @__PURE__ */ K({
1375
+ }), An = /* @__PURE__ */ G(rn, [["__scopeId", "data-v-6b725efb"]]), un = /* @__PURE__ */ K({
1376
1376
  __name: "AppIcon",
1377
1377
  props: {
1378
1378
  name: {},
@@ -1536,7 +1536,7 @@ const dn = te({
1536
1536
  class: P(i.value),
1537
1537
  style: re($.value)
1538
1538
  }, [
1539
- u.label ? (b(), _("label", fn, Y(u.label), 1)) : A("", !0),
1539
+ u.label ? (b(), _("label", fn, Y(u.label), 1)) : V("", !0),
1540
1540
  T("div", vn, [
1541
1541
  (b(!0), _(ie, null, Le(u.length, (v, h) => oe((b(), _("input", {
1542
1542
  key: h,
@@ -1561,7 +1561,7 @@ const dn = te({
1561
1561
  rounded: "",
1562
1562
  color: u.color,
1563
1563
  class: "code-field__loading"
1564
- }, null, 8, ["color"])) : A("", !0)
1564
+ }, null, 8, ["color"])) : V("", !0)
1565
1565
  ], 6));
1566
1566
  }
1567
1567
  }), Tn = /* @__PURE__ */ G(mn, [["__scopeId", "data-v-4e11db87"]]), gn = { class: "app-segment__track" }, hn = { class: "app-segment__buttons" }, bn = ["onClick", "disabled"], kn = /* @__PURE__ */ K({
@@ -1609,15 +1609,15 @@ const dn = te({
1609
1609
  ], 2));
1610
1610
  }
1611
1611
  }), zn = /* @__PURE__ */ G(kn, [["__scopeId", "data-v-ff56abdf"]]), On = ge(
1612
- () => import("./AppButtonCopy-rkIJl8t7.js")
1612
+ () => import("./AppButtonCopy-DX_WkApZ.js")
1613
1613
  ), jn = ge(
1614
- () => import("./AppSelect-wGAcCCc9.js")
1614
+ () => import("./AppSelect-BXCxIL63.js")
1615
1615
  ), Dn = ge(
1616
- () => import("./DropdownButton-DTKHCdbp.js")
1616
+ () => import("./DropdownButton-ClND0lzl.js")
1617
1617
  );
1618
1618
  export {
1619
1619
  Mn as A,
1620
- At as B,
1620
+ Vt as B,
1621
1621
  Re as C,
1622
1622
  vt as D,
1623
1623
  pt as E,
@@ -1631,7 +1631,7 @@ export {
1631
1631
  Dn as M,
1632
1632
  On as N,
1633
1633
  jn as O,
1634
- Vn as P,
1634
+ An as P,
1635
1635
  me as Q,
1636
1636
  ht as R,
1637
1637
  z as S,
@@ -1648,7 +1648,7 @@ export {
1648
1648
  ce as e,
1649
1649
  Sn as f,
1650
1650
  qn as g,
1651
- Ae as h,
1651
+ Ve as h,
1652
1652
  Ln as i,
1653
1653
  Ct as j,
1654
1654
  le as k,
@@ -1660,7 +1660,7 @@ export {
1660
1660
  wn as q,
1661
1661
  Kt as r,
1662
1662
  D as s,
1663
- An as t,
1663
+ Vn as t,
1664
1664
  Ne as u,
1665
1665
  mt as v,
1666
1666
  Oe as w,