@quoreadmin/ui 0.22.22 → 0.22.24

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.
@@ -5,7 +5,7 @@
5
5
  * @vue/shared v3.4.21
6
6
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
7
7
  * @license MIT
8
- **/function Zw(t,e){const n=new Set(t.split(","));return e?r=>n.has(r.toLowerCase()):r=>n.has(r)}process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const Ww=Zw("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot");var Uw=Object.defineProperty,Kw=(t,e,n)=>e in t?Uw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Gw=(t,e,n)=>(Kw(t,typeof e!="symbol"?e+"":e,n),n);class qw{constructor(){Gw(this,"subscriptions",new Set)}add(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}notify(e,n,r){if(this.subscriptions.size)for(const o of this.subscriptions)o(e,n,r)}clear(){this.subscriptions.clear()}}var Yw=Object.defineProperty,Jw=(t,e,n)=>e in t?Yw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,cn=(t,e,n)=>(Jw(t,typeof e!="symbol"?e+"":e,n),n);function z1(t){return!isNaN(parseFloat(t))}class Qw{constructor(e){cn(this,"current"),cn(this,"prev"),cn(this,"timeDelta",0),cn(this,"lastUpdated",0),cn(this,"updateSubscribers",new qw),cn(this,"stopAnimation"),cn(this,"canTrackVelocity",!1),cn(this,"updateAndNotify",n=>{this.prev=this.current,this.current=n;const{delta:r,timestamp:o}=o1();this.lastUpdated!==o&&(this.timeDelta=r,this.lastUpdated=o),f2.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)}),cn(this,"scheduleVelocityCheck",()=>f2.postRender(this.velocityCheck)),cn(this,"velocityCheck",({timestamp:n})=>{this.canTrackVelocity||(this.canTrackVelocity=z1(this.current)),n!==this.lastUpdated&&(this.prev=this.current)}),this.prev=this.current=e,this.canTrackVelocity=z1(this.current)}onChange(e){return this.updateSubscribers.add(e)}clearListeners(){this.updateSubscribers.clear()}set(e){this.updateAndNotify(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?V1(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(n=>{const{stop:r}=e(n);this.stopAnimation=r}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.stop()}}function Xw(t){return new Qw(t)}const{isArray:e8}=Array;function t8(){const t=a.ref({}),e=r=>{const o=i=>{t.value[i]&&(t.value[i].stop(),t.value[i].destroy(),delete t.value[i])};r?e8(r)?r.forEach(o):o(r):Object.keys(t.value).forEach(o)},n=(r,o,i)=>{if(t.value[r])return t.value[r];const s=Xw(o);return s.onChange(l=>i[r]=l),t.value[r]=s,s};return x6(e),{motionValues:t,get:n,stop:e}}function n8(t){return Array.isArray(t)}function Hr(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}}function P2(t){return{type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}}function r8(t){return{type:"spring",stiffness:550,damping:t===0?100:30,restDelta:.01,restSpeed:10}}function D2(){return{type:"keyframes",ease:"linear",duration:300}}function o8(t){return{type:"keyframes",duration:800,values:t}}const j1={default:r8,x:Hr,y:Hr,z:Hr,rotate:Hr,rotateX:Hr,rotateY:Hr,rotateZ:Hr,scaleX:P2,scaleY:P2,scale:P2,backgroundColor:D2,color:D2,opacity:D2};function Z1(t,e){let n;return n8(e)?n=o8:n=j1[t]||j1.default,{to:e,...n(e)}}const W1={...Fi,transform:Math.round},U1={color:gt,backgroundColor:gt,outlineColor:gt,fill:gt,stroke:gt,borderColor:gt,borderTopColor:gt,borderRightColor:gt,borderBottomColor:gt,borderLeftColor:gt,borderWidth:J,borderTopWidth:J,borderRightWidth:J,borderBottomWidth:J,borderLeftWidth:J,borderRadius:J,radius:J,borderTopLeftRadius:J,borderTopRightRadius:J,borderBottomRightRadius:J,borderBottomLeftRadius:J,width:J,maxWidth:J,height:J,maxHeight:J,size:J,top:J,right:J,bottom:J,left:J,padding:J,paddingTop:J,paddingRight:J,paddingBottom:J,paddingLeft:J,margin:J,marginTop:J,marginRight:J,marginBottom:J,marginLeft:J,rotate:$r,rotateX:$r,rotateY:$r,rotateZ:$r,scale:Ma,scaleX:Ma,scaleY:Ma,scaleZ:Ma,skew:$r,skewX:$r,skewY:$r,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:Hi,originX:d1,originY:d1,originZ:J,zIndex:W1,filter:O2,WebkitFilter:O2,fillOpacity:Hi,strokeOpacity:Hi,numOctaves:W1},A2=t=>U1[t];function K1(t,e){return e&&typeof t=="number"&&e.transform?e.transform(t):t}function i8(t,e){let n=A2(t);return n!==O2&&(n=zi),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const s8={linear:D1,easeIn:M2,easeInOut:A1,easeOut:bw,circIn:I1,circInOut:ww,circOut:N1,backIn:x2,backInOut:Cw,backOut:vw,anticipate:Sw,bounceIn:Tw,bounceInOut:Mw,bounceOut:Pa};function G1(t){if(Array.isArray(t)){const[e,n,r,o]=t;return jw(e,n,r,o)}else if(typeof t=="string")return s8[t];return t}function a8(t){return Array.isArray(t)&&typeof t[0]!="number"}function q1(t,e){return t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&zi.test(e)&&!e.startsWith("url("))}function l8(t){return Array.isArray(t.to)&&t.to[0]===null&&(t.to=[...t.to],t.to[0]=t.from),t}function c8({ease:t,times:e,delay:n,...r}){const o={...r};return e&&(o.offset=e),t&&(o.ease=a8(t)?t.map(G1):G1(t)),n&&(o.elapsed=-n),o}function u8(t,e,n){return Array.isArray(e.to)&&(t.duration||(t.duration=800)),l8(e),d8(t)||(t={...t,...Z1(n,e.to)}),{...e,...c8(t)}}function d8({delay:t,repeat:e,repeatType:n,repeatDelay:r,from:o,...i}){return!!Object.keys(i).length}function f8(t,e){return t[e]||t.default||t}function p8(t,e,n,r,o){const i=f8(r,t);let s=i.from===null||i.from===void 0?e.get():i.from;const l=q1(t,n);s==="none"&&l&&typeof n=="string"&&(s=i8(t,n));const c=q1(t,s);function u(f){const p={from:s,to:n,velocity:r.velocity?r.velocity:e.getVelocity(),onUpdate:h=>e.set(h)};return i.type==="inertia"||i.type==="decay"?Lw({...p,...i}):L1({...u8(i,p,t),onUpdate:h=>{p.onUpdate(h),i.onUpdate&&i.onUpdate(h)},onComplete:()=>{r.onComplete&&r.onComplete(),o&&o(),f&&f()}})}function d(f){return e.set(n),r.onComplete&&r.onComplete(),o&&o(),f&&f(),{stop:()=>{}}}return!c||!l||i.type===!1?d:u}function I2(){const{motionValues:t,stop:e,get:n}=t8();return{motionValues:t,stop:e,push:(o,i,s,l={},c)=>{const u=s[o],d=n(o,u,s);if(l&&l.immediate){d.set(i);return}const f=p8(o,d,i,l,c);d.start(f)}}}function h8(t,e={},{motionValues:n,push:r,stop:o}=I2()){const i=a.unref(e),s=a.ref(!1);a.watch(n,f=>{s.value=Object.values(f).filter(p=>p.isAnimating()).length>0},{immediate:!0,deep:!0});const l=f=>{if(!i||!i[f])throw new Error(`The variant ${f} does not exist.`);return i[f]},c=f=>(typeof f=="string"&&(f=l(f)),Promise.all(Object.entries(f).map(([p,h])=>{if(p!=="transition")return new Promise(m=>r(p,h,t,f.transition||Z1(p,f[p]),m))}).filter(Boolean)));return{isAnimating:s,apply:c,set:f=>{const p=Jf(f)?f:l(f);Object.entries(p).forEach(([h,m])=>{h!=="transition"&&r(h,m,t,{immediate:!0})})},leave:async f=>{let p;if(i&&(i.leave&&(p=i.leave),!i.leave&&i.initial&&(p=i.initial)),!p){f();return}await c(p),f()},stop:o}}const N2=typeof window<"u",m8=()=>N2&&window.onpointerdown===null,g8=()=>N2&&window.ontouchstart===null,y8=()=>N2&&window.onmousedown===null;function b8({target:t,state:e,variants:n,apply:r}){const o=a.unref(n),i=a.ref(!1),s=a.ref(!1),l=a.ref(!1),c=a.computed(()=>{let d=[];return o&&(o.hovered&&(d=[...d,...Object.keys(o.hovered)]),o.tapped&&(d=[...d,...Object.keys(o.tapped)]),o.focused&&(d=[...d,...Object.keys(o.focused)])),d}),u=a.computed(()=>{const d={};Object.assign(d,e.value),i.value&&o.hovered&&Object.assign(d,o.hovered),s.value&&o.tapped&&Object.assign(d,o.tapped),l.value&&o.focused&&Object.assign(d,o.focused);for(const f in d)c.value.includes(f)||delete d[f];return d});o.hovered&&(it(t,"mouseenter",()=>i.value=!0),it(t,"mouseleave",()=>{i.value=!1,s.value=!1}),it(t,"mouseout",()=>{i.value=!1,s.value=!1})),o.tapped&&(y8()&&(it(t,"mousedown",()=>s.value=!0),it(t,"mouseup",()=>s.value=!1)),m8()&&(it(t,"pointerdown",()=>s.value=!0),it(t,"pointerup",()=>s.value=!1)),g8()&&(it(t,"touchstart",()=>s.value=!0),it(t,"touchend",()=>s.value=!1))),o.focused&&(it(t,"focus",()=>l.value=!0),it(t,"blur",()=>l.value=!1)),a.watch(u,r)}function w8({set:t,target:e,variants:n,variant:r}){const o=a.unref(n);a.watch(()=>e,()=>{o&&(o.initial&&t("initial"),o.enter&&(r.value="enter"))},{immediate:!0,flush:"pre"})}function v8({state:t,apply:e}){a.watch(t,n=>{n&&e(n)},{immediate:!0})}function C8({target:t,variants:e,variant:n}){const r=a.unref(e);r&&(r.visible||r.visibleOnce)&&A6(t,([{isIntersecting:o}])=>{r.visible?o?n.value="visible":n.value="initial":r.visibleOnce&&(o&&n.value!=="visibleOnce"?n.value="visibleOnce":n.value||(n.value="initial"))})}function S8(t,e={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){e.lifeCycleHooks&&w8(t),e.syncVariants&&v8(t),e.visibilityHooks&&C8(t),e.eventListeners&&b8(t)}function Y1(t={}){const e=a.reactive({...t}),n=a.ref({});return a.watch(e,()=>{const r={};for(const[o,i]of Object.entries(e)){const s=A2(o),l=K1(i,s);r[o]=l}n.value=r},{immediate:!0,deep:!0}),{state:e,style:n}}function B2(t,e){a.watch(()=>Mn(t),n=>{n&&e(n)},{immediate:!0})}const k8={x:"translateX",y:"translateY",z:"translateZ"};function J1(t={},e=!0){const n=a.reactive({...t}),r=a.ref("");return a.watch(n,o=>{let i="",s=!1;if(e&&(o.x||o.y||o.z)){const l=[o.x||0,o.y||0,o.z||0].map(J.transform).join(",");i+=`translate3d(${l}) `,s=!0}for(const[l,c]of Object.entries(o)){if(e&&(l==="x"||l==="y"||l==="z"))continue;const u=A2(l),d=K1(c,u);i+=`${k8[l]||l}(${d}) `}e&&!s&&(i+="translateZ(0px) "),r.value=i.trim()},{immediate:!0,deep:!0}),{state:n,transform:r}}const O8=["","X","Y","Z"],E8=["perspective","translate","scale","rotate","skew"],Q1=["transformPerspective","x","y","z"];E8.forEach(t=>{O8.forEach(e=>{const n=t+e;Q1.push(n)})});const T8=new Set(Q1);function R2(t){return T8.has(t)}const M8=new Set(["originX","originY","originZ"]);function X1(t){return M8.has(t)}function x8(t){const e={},n={};return Object.entries(t).forEach(([r,o])=>{R2(r)||X1(r)?e[r]=o:n[r]=o}),{transform:e,style:n}}function P8(t){const{transform:e,style:n}=x8(t),{transform:r}=J1(e),{style:o}=Y1(n);return r.value&&(o.value.transform=r.value),o.value}function D8(t,e){let n,r;const{state:o,style:i}=Y1();return B2(t,s=>{r=s;for(const l of Object.keys(U1))s.style[l]===null||s.style[l]===""||R2(l)||X1(l)||(o[l]=s.style[l]);n&&Object.entries(n).forEach(([l,c])=>s.style[l]=c),e&&e(o)}),a.watch(i,s=>{if(!r){n=s;return}for(const l in s)r.style[l]=s[l]},{immediate:!0}),{style:o}}function A8(t){const e=t.trim().split(/\) |\)/);if(e.length===1)return{};const n=r=>r.endsWith("px")||r.endsWith("deg")?parseFloat(r):isNaN(Number(r))?Number(r):r;return e.reduce((r,o)=>{if(!o)return r;const[i,s]=o.split("("),c=s.split(",").map(d=>n(d.endsWith(")")?d.replace(")",""):d.trim())),u=c.length===1?c[0]:c;return{...r,[i]:u}},{})}function I8(t,e){Object.entries(A8(e)).forEach(([n,r])=>{const o=["x","y","z"];if(n==="translate3d"){if(r===0){o.forEach(i=>t[i]=0);return}r.forEach((i,s)=>t[o[s]]=i);return}if(r=parseFloat(r),n==="translateX"){t.x=r;return}if(n==="translateY"){t.y=r;return}if(n==="translateZ"){t.z=r;return}t[n]=r})}function N8(t,e){let n,r;const{state:o,transform:i}=J1();return B2(t,s=>{r=s,s.style.transform&&I8(o,s.style.transform),n&&(s.style.transform=n),e&&e(o)}),a.watch(i,s=>{if(!r){n=s;return}r.style.transform=s},{immediate:!0}),{transform:o}}function L2(t,e){const n=a.reactive({}),r=s=>Object.entries(s).forEach(([l,c])=>n[l]=c),{style:o}=D8(t,r),{transform:i}=N8(t,r);return a.watch(n,s=>{Object.entries(s).forEach(([l,c])=>{const u=R2(l)?i:o;u[l]&&u[l]===c||(u[l]=c)})},{immediate:!0,deep:!0}),B2(t,()=>e&&r(e)),{motionProperties:n,style:o,transform:i}}function B8(t={}){const e=a.unref(t),n=a.ref();return{state:a.computed(()=>{if(n.value)return e[n.value]}),variant:n}}function R8(t,e={},n){const{motionProperties:r}=L2(t),{variant:o,state:i}=B8(e),s=h8(r,e),l={target:t,variant:o,variants:e,state:i,motionProperties:r,...s};return S8(l,n),l}const L8={__proto__:null,fade:{initial:{opacity:0},enter:{opacity:1}},fadeVisible:{initial:{opacity:0},visible:{opacity:1}},fadeVisibleOnce:{initial:{opacity:0},visibleOnce:{opacity:1}},pop:{initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},popVisible:{initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},popVisibleOnce:{initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},rollBottom:{initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollLeft:{initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollRight:{initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollTop:{initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleBottom:{initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleLeft:{initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceBottom:{initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},rollVisibleOnceLeft:{initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollVisibleOnceRight:{initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollVisibleOnceTop:{initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},rollVisibleRight:{initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleTop:{initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},slideBottom:{initial:{y:100,opacity:0},enter:{y:0,opacity:1}},slideLeft:{initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},slideRight:{initial:{x:100,opacity:0},enter:{x:0,opacity:1}},slideTop:{initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},slideVisibleBottom:{initial:{y:100,opacity:0},visible:{y:0,opacity:1}},slideVisibleLeft:{initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceBottom:{initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},slideVisibleOnceLeft:{initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},slideVisibleOnceRight:{initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},slideVisibleOnceTop:{initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},slideVisibleRight:{initial:{x:100,opacity:0},visible:{x:0,opacity:1}},slideVisibleTop:{initial:{y:-100,opacity:0},visible:{y:0,opacity:1}}};a.defineComponent({props:{is:{type:[String,Object],required:!1},preset:{type:String,required:!1},instance:{type:Object,required:!1},variants:{type:Object,required:!1},initial:{type:Object,required:!1},enter:{type:Object,required:!1},leave:{type:Object,required:!1},visible:{type:Object,required:!1},visibleOnce:{type:Object,required:!1},hovered:{type:Object,required:!1},tapped:{type:Object,required:!1},focused:{type:Object,required:!1},delay:{type:[Number,String],required:!1}},setup(t){var l;const e=a.useSlots(),n=a.reactive({});if(!t.is&&!e.default)return()=>a.h("div",{});const r=a.computed(()=>{let c;return t.preset&&(c=L8[t.preset]),c}),o=a.computed(()=>({initial:t.initial,enter:t.enter,leave:t.leave,visible:t.visible,visibleOnce:t.visibleOnce,hovered:t.hovered,tapped:t.tapped,focused:t.focused})),i=a.computed(()=>{const c={...o.value,...r.value||{},...t.variants||{}};return t.delay&&(c.enter.transition={...c.enter.transition},c.enter.transition.delay=parseInt(t.delay)),c}),s=a.computed(()=>{if(!t.is)return;let c=t.is;return typeof s.value=="string"&&!Ww(c)&&(c=a.resolveComponent(c)),c});if(((l=process==null?void 0:process.env)==null?void 0:l.NODE_ENV)==="development"||process!=null&&process.dev){const c=u=>{var d;(d=u.variants)!=null&&d.initial&&u.set("initial"),setTimeout(()=>{var f,p,h;(f=u.variants)!=null&&f.enter&&u.apply("enter"),(p=u.variants)!=null&&p.visible&&u.apply("visible"),(h=u.variants)!=null&&h.visibleOnce&&u.apply("visibleOnce")},10)};a.onUpdated(()=>Object.entries(n).forEach(([u,d])=>c(d)))}return{slots:e,component:s,motionConfig:i,instances:n}},render({slots:t,motionConfig:e,instances:n,component:r}){var l;const o=P8(e.initial||{}),i=(c,u)=>(c.props||(c.props={}),c.props.style=o,c.props.onVnodeMounted=({el:d})=>{const f=R8(d,e);n[u]=f},c);if(r){const c=a.h(r,void 0,t);return i(c,0),c}return(((l=t.default)==null?void 0:l.call(t))||[]).map((c,u)=>i(c,u))}});const V8=a.defineComponent({name:"QSheet",components:{TransitionRoot:qf},props:{modelValue:{type:Boolean,default:!1},allowOnClickOutside:{type:Boolean,default:!0},allowDrag:{type:Boolean,default:!0},backgroundColor:{type:String,default:"white"},showCloseButton:{type:Boolean,default:!0},headerClass:{type:String,default:""},contentClass:{type:String,default:"p-4"}},emits:["update:model-value"],setup(t,{emit:e}){const n=a.useSlots(),r=a.ref(),o=a.ref(),i=a.ref(0),s=a.ref(!1),l=a.ref(0),{motionProperties:c}=L2(r),{push:u}=I2(),d={type:"keyframe",ease:"linear",duration:0,delay:0},f=a.computed(function(){return t.backgroundColor?`bg-${t.backgroundColor}`:""}),p=a.computed({get:()=>t.modelValue,set:C=>e("update:model-value",C)}),h=a.computed(()=>t.modelValue?"z-[201]":"-z-40"),m=a.computed(()=>!!(n!=null&&n.headerAction)),y=()=>{i.value=window.innerHeight},g=()=>{t.allowOnClickOutside&&w({clickOutside:!0})},b=()=>{p.value=!0},w=async(C={clickOutside:!1})=>{if(p.value=!1,await a.nextTick(),C.clickOutside){p.value=!1;return}},S=C=>{if(!t.allowDrag)return;s.value=!1;const{dragging:k}=C;k?v(C):O(C)},v=C=>{if(C.tap)return;s.value=!0;const{movement:[,k]}=C,E=l.value+k;k<0||u("y",E,c,d)},O=C=>{if(C.tap||C.direction[0]===1||C.direction[0]===-1)return;s.value=!1;const{swipe:[,k],movement:[,E]}=C;if(k>0){w();return}else if(k<0){b();return}if(l.value=l.value+E,i.value-l.value>i.value/3){b();return}else{w();return}};return a.onUnmounted(()=>{document.body.classList.remove("scroll-disabled"),w()}),a.onMounted(()=>{b(),document.body.classList.add("scroll-disabled"),window.addEventListener("resize",y)}),Lf(S,{domTarget:o,filterTaps:!0,useTouch:!0,delay:100}),{sheetRef:r,headerRef:o,windowHeight:i,isDragging:s,bgColor:f,containerClasses:h,show:p,hasHeaderAction:m,onClickOutside:g,onClose:w,onOpen:b,dragHandler:S,handleDrag:v,handleDragEnd:O}}}),$8=t=>(a.pushScopeId("data-v-f3d142c5"),t=t(),a.popScopeId(),t),F8=["value"],H8={key:0,class:"cursor-pointer pb-2.5"},_8=[$8(()=>a.createElementVNode("div",{class:"bg-gray-20 h-1 w-11 rounded cursor-pointer mx-auto z-[201]"},null,-1))],z8={class:"flex items-center h-12"},j8={class:"w-10"},Z8={class:"text-center text-base leading-normal grow font-semibold text-inkwell-40"},W8={class:"w-10 text-right"};function U8(t,e,n,r,o,i){const s=a.resolveComponent("q-icon");return a.openBlock(),a.createElementBlock("div",{class:"sheet-container",value:t.modelValue},[a.createElementVNode("div",{class:a.normalizeClass(["sheet-overlay",{"cursor-pointer":t.allowOnClickOutside}]),onClick:e[0]||(e[0]=(...l)=>t.onClickOutside&&t.onClickOutside(...l))},null,2),a.createElementVNode("div",{ref:"sheetRef",class:a.normalizeClass(["sheet flex flex-col",[{"card-draggable":t.allowDrag},t.bgColor]])},[a.createElementVNode("div",{class:a.normalizeClass(["sheet-header",t.headerClass]),ref:"headerRef"},[t.allowDrag?(a.openBlock(),a.createElementBlock("div",H8,_8)):a.createCommentVNode("",!0),a.createElementVNode("div",z8,[a.createElementVNode("div",j8,[a.renderSlot(t.$slots,"backAction",a.normalizeProps(a.guardReactiveProps({onClose:t.onClose})),()=>[t.showCloseButton?(a.openBlock(),a.createBlock(s,{key:0,icon:"close",type:"line",size:"md",class:"cursor-pointer shrink",onClick:t.onClose},null,8,["onClick"])):a.createCommentVNode("",!0)],!0)]),a.createElementVNode("h5",Z8,[a.renderSlot(t.$slots,"header",{},void 0,!0)]),a.createElementVNode("div",W8,[a.renderSlot(t.$slots,"headerAction",{},void 0,!0)])])],2),a.createElementVNode("div",{class:a.normalizeClass(["sheet-body grow",[t.isDragging?"overflow-y-hidden":"overflow-y-auto",t.contentClass]])},[a.renderSlot(t.$slots,"default",{},void 0,!0)],2)],2)],8,F8)}const K8=ce(V8,[["render",U8],["__scopeId","data-v-f3d142c5"]]),Eo="button-",G8=a.defineComponent({name:"QButton",props:{size:{type:String,default:"md"},isWide:{type:Boolean,default:!1},status:{type:String,default:"primary"},hasOutline:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},useLoadingSpinner:{type:Boolean,default:!0},isFab:{type:Boolean,default:!1},shape:{type:String,default:""},noMinWidth:{type:Boolean,default:!1}},setup(t){const e=a.computed(()=>[Eo+t.size,{[Eo+t.status]:t.status},{"min-w-min":!!t.noMinWidth},{[Eo+"wide"]:!!t.isWide},{[Eo+t.shape]:!!t.shape},{[Eo+"fab"]:!!t.isFab},{[Eo+"outline"]:!!t.hasOutline||t.status==="secondary"}]),n=a.computed(()=>({disabled:!!t.disabled,"aria-disabled":!!t.disabled}));return{propsClasses:e,disabledAttributes:n}}}),q8=t=>(a.pushScopeId("data-v-fb3c7830"),t=t(),a.popScopeId(),t),Y8={key:0,class:"circular",width:"20",height:"20",viewBox:"0 0 24 24"},J8=[q8(()=>a.createElementVNode("path",{d:"M2 12a1 1 0 0 1 2 0 8 8 0 1 0 8-8 1 1 0 0 1 0-2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12z"},null,-1))],Q8={key:1,class:"flex items-center justify-center"};function X8(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("button",a.mergeProps({class:["button",...t.propsClasses]},t.disabledAttributes),[t.loading&&t.useLoadingSpinner?(a.openBlock(),a.createElementBlock("svg",Y8,J8)):(a.openBlock(),a.createElementBlock("span",Q8,[a.renderSlot(t.$slots,"default",{},void 0,!0)]))],16)}const ev=ce(G8,[["render",X8],["__scopeId","data-v-fb3c7830"]]);function V2(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=F2(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
8
+ **/function Zw(t,e){const n=new Set(t.split(","));return e?r=>n.has(r.toLowerCase()):r=>n.has(r)}process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const Ww=Zw("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot");var Uw=Object.defineProperty,Kw=(t,e,n)=>e in t?Uw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Gw=(t,e,n)=>(Kw(t,typeof e!="symbol"?e+"":e,n),n);class qw{constructor(){Gw(this,"subscriptions",new Set)}add(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}notify(e,n,r){if(this.subscriptions.size)for(const o of this.subscriptions)o(e,n,r)}clear(){this.subscriptions.clear()}}var Yw=Object.defineProperty,Jw=(t,e,n)=>e in t?Yw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,cn=(t,e,n)=>(Jw(t,typeof e!="symbol"?e+"":e,n),n);function z1(t){return!isNaN(parseFloat(t))}class Qw{constructor(e){cn(this,"current"),cn(this,"prev"),cn(this,"timeDelta",0),cn(this,"lastUpdated",0),cn(this,"updateSubscribers",new qw),cn(this,"stopAnimation"),cn(this,"canTrackVelocity",!1),cn(this,"updateAndNotify",n=>{this.prev=this.current,this.current=n;const{delta:r,timestamp:o}=o1();this.lastUpdated!==o&&(this.timeDelta=r,this.lastUpdated=o),f2.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)}),cn(this,"scheduleVelocityCheck",()=>f2.postRender(this.velocityCheck)),cn(this,"velocityCheck",({timestamp:n})=>{this.canTrackVelocity||(this.canTrackVelocity=z1(this.current)),n!==this.lastUpdated&&(this.prev=this.current)}),this.prev=this.current=e,this.canTrackVelocity=z1(this.current)}onChange(e){return this.updateSubscribers.add(e)}clearListeners(){this.updateSubscribers.clear()}set(e){this.updateAndNotify(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?V1(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(n=>{const{stop:r}=e(n);this.stopAnimation=r}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.stop()}}function Xw(t){return new Qw(t)}const{isArray:e8}=Array;function t8(){const t=a.ref({}),e=r=>{const o=i=>{t.value[i]&&(t.value[i].stop(),t.value[i].destroy(),delete t.value[i])};r?e8(r)?r.forEach(o):o(r):Object.keys(t.value).forEach(o)},n=(r,o,i)=>{if(t.value[r])return t.value[r];const s=Xw(o);return s.onChange(l=>i[r]=l),t.value[r]=s,s};return x6(e),{motionValues:t,get:n,stop:e}}function n8(t){return Array.isArray(t)}function Hr(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}}function P2(t){return{type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}}function r8(t){return{type:"spring",stiffness:550,damping:t===0?100:30,restDelta:.01,restSpeed:10}}function D2(){return{type:"keyframes",ease:"linear",duration:300}}function o8(t){return{type:"keyframes",duration:800,values:t}}const j1={default:r8,x:Hr,y:Hr,z:Hr,rotate:Hr,rotateX:Hr,rotateY:Hr,rotateZ:Hr,scaleX:P2,scaleY:P2,scale:P2,backgroundColor:D2,color:D2,opacity:D2};function Z1(t,e){let n;return n8(e)?n=o8:n=j1[t]||j1.default,{to:e,...n(e)}}const W1={...Fi,transform:Math.round},U1={color:gt,backgroundColor:gt,outlineColor:gt,fill:gt,stroke:gt,borderColor:gt,borderTopColor:gt,borderRightColor:gt,borderBottomColor:gt,borderLeftColor:gt,borderWidth:J,borderTopWidth:J,borderRightWidth:J,borderBottomWidth:J,borderLeftWidth:J,borderRadius:J,radius:J,borderTopLeftRadius:J,borderTopRightRadius:J,borderBottomRightRadius:J,borderBottomLeftRadius:J,width:J,maxWidth:J,height:J,maxHeight:J,size:J,top:J,right:J,bottom:J,left:J,padding:J,paddingTop:J,paddingRight:J,paddingBottom:J,paddingLeft:J,margin:J,marginTop:J,marginRight:J,marginBottom:J,marginLeft:J,rotate:$r,rotateX:$r,rotateY:$r,rotateZ:$r,scale:Ma,scaleX:Ma,scaleY:Ma,scaleZ:Ma,skew:$r,skewX:$r,skewY:$r,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:Hi,originX:d1,originY:d1,originZ:J,zIndex:W1,filter:O2,WebkitFilter:O2,fillOpacity:Hi,strokeOpacity:Hi,numOctaves:W1},A2=t=>U1[t];function K1(t,e){return e&&typeof t=="number"&&e.transform?e.transform(t):t}function i8(t,e){let n=A2(t);return n!==O2&&(n=zi),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const s8={linear:D1,easeIn:M2,easeInOut:A1,easeOut:bw,circIn:I1,circInOut:ww,circOut:N1,backIn:x2,backInOut:Cw,backOut:vw,anticipate:Sw,bounceIn:Tw,bounceInOut:Mw,bounceOut:Pa};function G1(t){if(Array.isArray(t)){const[e,n,r,o]=t;return jw(e,n,r,o)}else if(typeof t=="string")return s8[t];return t}function a8(t){return Array.isArray(t)&&typeof t[0]!="number"}function q1(t,e){return t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&zi.test(e)&&!e.startsWith("url("))}function l8(t){return Array.isArray(t.to)&&t.to[0]===null&&(t.to=[...t.to],t.to[0]=t.from),t}function c8({ease:t,times:e,delay:n,...r}){const o={...r};return e&&(o.offset=e),t&&(o.ease=a8(t)?t.map(G1):G1(t)),n&&(o.elapsed=-n),o}function u8(t,e,n){return Array.isArray(e.to)&&(t.duration||(t.duration=800)),l8(e),d8(t)||(t={...t,...Z1(n,e.to)}),{...e,...c8(t)}}function d8({delay:t,repeat:e,repeatType:n,repeatDelay:r,from:o,...i}){return!!Object.keys(i).length}function f8(t,e){return t[e]||t.default||t}function p8(t,e,n,r,o){const i=f8(r,t);let s=i.from===null||i.from===void 0?e.get():i.from;const l=q1(t,n);s==="none"&&l&&typeof n=="string"&&(s=i8(t,n));const c=q1(t,s);function u(f){const p={from:s,to:n,velocity:r.velocity?r.velocity:e.getVelocity(),onUpdate:h=>e.set(h)};return i.type==="inertia"||i.type==="decay"?Lw({...p,...i}):L1({...u8(i,p,t),onUpdate:h=>{p.onUpdate(h),i.onUpdate&&i.onUpdate(h)},onComplete:()=>{r.onComplete&&r.onComplete(),o&&o(),f&&f()}})}function d(f){return e.set(n),r.onComplete&&r.onComplete(),o&&o(),f&&f(),{stop:()=>{}}}return!c||!l||i.type===!1?d:u}function I2(){const{motionValues:t,stop:e,get:n}=t8();return{motionValues:t,stop:e,push:(o,i,s,l={},c)=>{const u=s[o],d=n(o,u,s);if(l&&l.immediate){d.set(i);return}const f=p8(o,d,i,l,c);d.start(f)}}}function h8(t,e={},{motionValues:n,push:r,stop:o}=I2()){const i=a.unref(e),s=a.ref(!1);a.watch(n,f=>{s.value=Object.values(f).filter(p=>p.isAnimating()).length>0},{immediate:!0,deep:!0});const l=f=>{if(!i||!i[f])throw new Error(`The variant ${f} does not exist.`);return i[f]},c=f=>(typeof f=="string"&&(f=l(f)),Promise.all(Object.entries(f).map(([p,h])=>{if(p!=="transition")return new Promise(m=>r(p,h,t,f.transition||Z1(p,f[p]),m))}).filter(Boolean)));return{isAnimating:s,apply:c,set:f=>{const p=Jf(f)?f:l(f);Object.entries(p).forEach(([h,m])=>{h!=="transition"&&r(h,m,t,{immediate:!0})})},leave:async f=>{let p;if(i&&(i.leave&&(p=i.leave),!i.leave&&i.initial&&(p=i.initial)),!p){f();return}await c(p),f()},stop:o}}const N2=typeof window<"u",m8=()=>N2&&window.onpointerdown===null,g8=()=>N2&&window.ontouchstart===null,y8=()=>N2&&window.onmousedown===null;function b8({target:t,state:e,variants:n,apply:r}){const o=a.unref(n),i=a.ref(!1),s=a.ref(!1),l=a.ref(!1),c=a.computed(()=>{let d=[];return o&&(o.hovered&&(d=[...d,...Object.keys(o.hovered)]),o.tapped&&(d=[...d,...Object.keys(o.tapped)]),o.focused&&(d=[...d,...Object.keys(o.focused)])),d}),u=a.computed(()=>{const d={};Object.assign(d,e.value),i.value&&o.hovered&&Object.assign(d,o.hovered),s.value&&o.tapped&&Object.assign(d,o.tapped),l.value&&o.focused&&Object.assign(d,o.focused);for(const f in d)c.value.includes(f)||delete d[f];return d});o.hovered&&(it(t,"mouseenter",()=>i.value=!0),it(t,"mouseleave",()=>{i.value=!1,s.value=!1}),it(t,"mouseout",()=>{i.value=!1,s.value=!1})),o.tapped&&(y8()&&(it(t,"mousedown",()=>s.value=!0),it(t,"mouseup",()=>s.value=!1)),m8()&&(it(t,"pointerdown",()=>s.value=!0),it(t,"pointerup",()=>s.value=!1)),g8()&&(it(t,"touchstart",()=>s.value=!0),it(t,"touchend",()=>s.value=!1))),o.focused&&(it(t,"focus",()=>l.value=!0),it(t,"blur",()=>l.value=!1)),a.watch(u,r)}function w8({set:t,target:e,variants:n,variant:r}){const o=a.unref(n);a.watch(()=>e,()=>{o&&(o.initial&&t("initial"),o.enter&&(r.value="enter"))},{immediate:!0,flush:"pre"})}function v8({state:t,apply:e}){a.watch(t,n=>{n&&e(n)},{immediate:!0})}function C8({target:t,variants:e,variant:n}){const r=a.unref(e);r&&(r.visible||r.visibleOnce)&&A6(t,([{isIntersecting:o}])=>{r.visible?o?n.value="visible":n.value="initial":r.visibleOnce&&(o&&n.value!=="visibleOnce"?n.value="visibleOnce":n.value||(n.value="initial"))})}function S8(t,e={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){e.lifeCycleHooks&&w8(t),e.syncVariants&&v8(t),e.visibilityHooks&&C8(t),e.eventListeners&&b8(t)}function Y1(t={}){const e=a.reactive({...t}),n=a.ref({});return a.watch(e,()=>{const r={};for(const[o,i]of Object.entries(e)){const s=A2(o),l=K1(i,s);r[o]=l}n.value=r},{immediate:!0,deep:!0}),{state:e,style:n}}function B2(t,e){a.watch(()=>Mn(t),n=>{n&&e(n)},{immediate:!0})}const k8={x:"translateX",y:"translateY",z:"translateZ"};function J1(t={},e=!0){const n=a.reactive({...t}),r=a.ref("");return a.watch(n,o=>{let i="",s=!1;if(e&&(o.x||o.y||o.z)){const l=[o.x||0,o.y||0,o.z||0].map(J.transform).join(",");i+=`translate3d(${l}) `,s=!0}for(const[l,c]of Object.entries(o)){if(e&&(l==="x"||l==="y"||l==="z"))continue;const u=A2(l),d=K1(c,u);i+=`${k8[l]||l}(${d}) `}e&&!s&&(i+="translateZ(0px) "),r.value=i.trim()},{immediate:!0,deep:!0}),{state:n,transform:r}}const O8=["","X","Y","Z"],E8=["perspective","translate","scale","rotate","skew"],Q1=["transformPerspective","x","y","z"];E8.forEach(t=>{O8.forEach(e=>{const n=t+e;Q1.push(n)})});const T8=new Set(Q1);function R2(t){return T8.has(t)}const M8=new Set(["originX","originY","originZ"]);function X1(t){return M8.has(t)}function x8(t){const e={},n={};return Object.entries(t).forEach(([r,o])=>{R2(r)||X1(r)?e[r]=o:n[r]=o}),{transform:e,style:n}}function P8(t){const{transform:e,style:n}=x8(t),{transform:r}=J1(e),{style:o}=Y1(n);return r.value&&(o.value.transform=r.value),o.value}function D8(t,e){let n,r;const{state:o,style:i}=Y1();return B2(t,s=>{r=s;for(const l of Object.keys(U1))s.style[l]===null||s.style[l]===""||R2(l)||X1(l)||(o[l]=s.style[l]);n&&Object.entries(n).forEach(([l,c])=>s.style[l]=c),e&&e(o)}),a.watch(i,s=>{if(!r){n=s;return}for(const l in s)r.style[l]=s[l]},{immediate:!0}),{style:o}}function A8(t){const e=t.trim().split(/\) |\)/);if(e.length===1)return{};const n=r=>r.endsWith("px")||r.endsWith("deg")?parseFloat(r):isNaN(Number(r))?Number(r):r;return e.reduce((r,o)=>{if(!o)return r;const[i,s]=o.split("("),c=s.split(",").map(d=>n(d.endsWith(")")?d.replace(")",""):d.trim())),u=c.length===1?c[0]:c;return{...r,[i]:u}},{})}function I8(t,e){Object.entries(A8(e)).forEach(([n,r])=>{const o=["x","y","z"];if(n==="translate3d"){if(r===0){o.forEach(i=>t[i]=0);return}r.forEach((i,s)=>t[o[s]]=i);return}if(r=parseFloat(r),n==="translateX"){t.x=r;return}if(n==="translateY"){t.y=r;return}if(n==="translateZ"){t.z=r;return}t[n]=r})}function N8(t,e){let n,r;const{state:o,transform:i}=J1();return B2(t,s=>{r=s,s.style.transform&&I8(o,s.style.transform),n&&(s.style.transform=n),e&&e(o)}),a.watch(i,s=>{if(!r){n=s;return}r.style.transform=s},{immediate:!0}),{transform:o}}function L2(t,e){const n=a.reactive({}),r=s=>Object.entries(s).forEach(([l,c])=>n[l]=c),{style:o}=D8(t,r),{transform:i}=N8(t,r);return a.watch(n,s=>{Object.entries(s).forEach(([l,c])=>{const u=R2(l)?i:o;u[l]&&u[l]===c||(u[l]=c)})},{immediate:!0,deep:!0}),B2(t,()=>e&&r(e)),{motionProperties:n,style:o,transform:i}}function B8(t={}){const e=a.unref(t),n=a.ref();return{state:a.computed(()=>{if(n.value)return e[n.value]}),variant:n}}function R8(t,e={},n){const{motionProperties:r}=L2(t),{variant:o,state:i}=B8(e),s=h8(r,e),l={target:t,variant:o,variants:e,state:i,motionProperties:r,...s};return S8(l,n),l}const L8={__proto__:null,fade:{initial:{opacity:0},enter:{opacity:1}},fadeVisible:{initial:{opacity:0},visible:{opacity:1}},fadeVisibleOnce:{initial:{opacity:0},visibleOnce:{opacity:1}},pop:{initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},popVisible:{initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},popVisibleOnce:{initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},rollBottom:{initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollLeft:{initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollRight:{initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollTop:{initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleBottom:{initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleLeft:{initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceBottom:{initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},rollVisibleOnceLeft:{initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollVisibleOnceRight:{initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollVisibleOnceTop:{initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},rollVisibleRight:{initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleTop:{initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},slideBottom:{initial:{y:100,opacity:0},enter:{y:0,opacity:1}},slideLeft:{initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},slideRight:{initial:{x:100,opacity:0},enter:{x:0,opacity:1}},slideTop:{initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},slideVisibleBottom:{initial:{y:100,opacity:0},visible:{y:0,opacity:1}},slideVisibleLeft:{initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceBottom:{initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},slideVisibleOnceLeft:{initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},slideVisibleOnceRight:{initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},slideVisibleOnceTop:{initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},slideVisibleRight:{initial:{x:100,opacity:0},visible:{x:0,opacity:1}},slideVisibleTop:{initial:{y:-100,opacity:0},visible:{y:0,opacity:1}}};a.defineComponent({props:{is:{type:[String,Object],required:!1},preset:{type:String,required:!1},instance:{type:Object,required:!1},variants:{type:Object,required:!1},initial:{type:Object,required:!1},enter:{type:Object,required:!1},leave:{type:Object,required:!1},visible:{type:Object,required:!1},visibleOnce:{type:Object,required:!1},hovered:{type:Object,required:!1},tapped:{type:Object,required:!1},focused:{type:Object,required:!1},delay:{type:[Number,String],required:!1}},setup(t){var l;const e=a.useSlots(),n=a.reactive({});if(!t.is&&!e.default)return()=>a.h("div",{});const r=a.computed(()=>{let c;return t.preset&&(c=L8[t.preset]),c}),o=a.computed(()=>({initial:t.initial,enter:t.enter,leave:t.leave,visible:t.visible,visibleOnce:t.visibleOnce,hovered:t.hovered,tapped:t.tapped,focused:t.focused})),i=a.computed(()=>{const c={...o.value,...r.value||{},...t.variants||{}};return t.delay&&(c.enter.transition={...c.enter.transition},c.enter.transition.delay=parseInt(t.delay)),c}),s=a.computed(()=>{if(!t.is)return;let c=t.is;return typeof s.value=="string"&&!Ww(c)&&(c=a.resolveComponent(c)),c});if(((l=process==null?void 0:process.env)==null?void 0:l.NODE_ENV)==="development"||process!=null&&process.dev){const c=u=>{var d;(d=u.variants)!=null&&d.initial&&u.set("initial"),setTimeout(()=>{var f,p,h;(f=u.variants)!=null&&f.enter&&u.apply("enter"),(p=u.variants)!=null&&p.visible&&u.apply("visible"),(h=u.variants)!=null&&h.visibleOnce&&u.apply("visibleOnce")},10)};a.onUpdated(()=>Object.entries(n).forEach(([u,d])=>c(d)))}return{slots:e,component:s,motionConfig:i,instances:n}},render({slots:t,motionConfig:e,instances:n,component:r}){var l;const o=P8(e.initial||{}),i=(c,u)=>(c.props||(c.props={}),c.props.style=o,c.props.onVnodeMounted=({el:d})=>{const f=R8(d,e);n[u]=f},c);if(r){const c=a.h(r,void 0,t);return i(c,0),c}return(((l=t.default)==null?void 0:l.call(t))||[]).map((c,u)=>i(c,u))}});const V8=a.defineComponent({name:"QSheet",components:{TransitionRoot:qf},props:{modelValue:{type:Boolean,default:!1},allowOnClickOutside:{type:Boolean,default:!0},allowDrag:{type:Boolean,default:!0},backgroundColor:{type:String,default:"white"},showCloseButton:{type:Boolean,default:!0},topPosition:{type:String,default:"top-6"},headerClass:{type:String,default:""},contentClass:{type:String,default:"p-4"}},emits:["update:model-value"],setup(t,{emit:e}){const n=a.useSlots(),r=a.ref(),o=a.ref(),i=a.ref(window.innerHeight),s=a.ref(!1),l=a.ref(0),{motionProperties:c}=L2(r),{push:u}=I2(),d={type:"keyframe",ease:"linear",duration:0,delay:0},f=a.computed(function(){return t.backgroundColor?`bg-${t.backgroundColor}`:""}),p=a.computed({get:()=>t.modelValue,set:C=>e("update:model-value",C)}),h=a.computed(()=>t.modelValue?"z-[201]":"-z-40"),m=a.computed(()=>!!(n!=null&&n.headerAction)),y=()=>{i.value=window.innerHeight},g=()=>{t.allowOnClickOutside&&w({clickOutside:!0})},b=()=>{p.value=!0},w=async(C={clickOutside:!1})=>{if(p.value=!1,await a.nextTick(),C.clickOutside){p.value=!1;return}},S=C=>{if(!t.allowDrag)return;s.value=!1;const{dragging:k}=C;k?v(C):O(C)},v=C=>{if(C.tap)return;s.value=!0;const{movement:[,k]}=C,E=l.value+k;k<-Math.abs(i.value)+i.value/3||u("y",E,c,d)},O=C=>{if(C.tap||C.direction[0]===1||C.direction[0]===-1)return;s.value=!1;const{swipe:[,k],movement:[,E]}=C;if(k>0){w();return}else if(k<0){b();return}if(l.value=l.value+E,i.value-l.value>i.value/3&&C.direction[1]<0){b();return}else{w();return}};return a.onUnmounted(()=>{document.body.classList.remove("scroll-disabled"),document.documentElement.classList.remove("overscroll-none"),w()}),a.onMounted(()=>{b(),document.body.classList.add("scroll-disabled"),document.documentElement.classList.add("overscroll-none"),window.addEventListener("resize",y)}),Lf(S,{domTarget:o,filterTaps:!0,useTouch:!0,delay:100}),{sheetRef:r,headerRef:o,windowHeight:i,isDragging:s,bgColor:f,containerClasses:h,show:p,hasHeaderAction:m,onClickOutside:g,onClose:w,onOpen:b,dragHandler:S,handleDrag:v,handleDragEnd:O}}}),$8=t=>(a.pushScopeId("data-v-a61e1425"),t=t(),a.popScopeId(),t),F8=["value"],H8={key:0,class:"cursor-pointer pb-2.5"},_8=[$8(()=>a.createElementVNode("div",{class:"bg-gray-20 h-1 w-11 rounded cursor-pointer mx-auto z-[201]"},null,-1))],z8={class:"flex items-center h-12"},j8={class:"w-10"},Z8={class:"text-center text-base leading-normal grow font-semibold text-inkwell-40"},W8={class:"w-10 text-right"};function U8(t,e,n,r,o,i){const s=a.resolveComponent("q-icon");return a.openBlock(),a.createElementBlock("div",{class:"sheet-container",value:t.modelValue},[a.createElementVNode("div",{class:a.normalizeClass(["sheet-overlay",{"cursor-pointer":t.allowOnClickOutside}]),onClick:e[0]||(e[0]=(...l)=>t.onClickOutside&&t.onClickOutside(...l))},null,2),a.createElementVNode("div",{ref:"sheetRef",class:a.normalizeClass(["sheet flex flex-col",[{"card-draggable":t.allowDrag},t.bgColor,t.topPosition]])},[a.createElementVNode("div",{class:a.normalizeClass(["sheet-header",t.headerClass]),ref:"headerRef"},[t.allowDrag?(a.openBlock(),a.createElementBlock("div",H8,_8)):a.createCommentVNode("",!0),a.createElementVNode("div",z8,[a.createElementVNode("div",j8,[a.renderSlot(t.$slots,"backAction",a.normalizeProps(a.guardReactiveProps({onClose:t.onClose})),()=>[t.showCloseButton?(a.openBlock(),a.createBlock(s,{key:0,icon:"close",type:"line",size:"md",class:"cursor-pointer shrink",onClick:t.onClose},null,8,["onClick"])):a.createCommentVNode("",!0)],!0)]),a.createElementVNode("h5",Z8,[a.renderSlot(t.$slots,"header",{},void 0,!0)]),a.createElementVNode("div",W8,[a.renderSlot(t.$slots,"headerAction",{},void 0,!0)])])],2),a.createElementVNode("div",{class:a.normalizeClass(["sheet-body grow",[t.isDragging?"overflow-y-hidden":"overflow-y-auto",t.contentClass]])},[a.renderSlot(t.$slots,"default",{},void 0,!0)],2)],2)],8,F8)}const K8=ce(V8,[["render",U8],["__scopeId","data-v-a61e1425"]]),Eo="button-",G8=a.defineComponent({name:"QButton",props:{size:{type:String,default:"md"},isWide:{type:Boolean,default:!1},status:{type:String,default:"primary"},hasOutline:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},useLoadingSpinner:{type:Boolean,default:!0},isFab:{type:Boolean,default:!1},shape:{type:String,default:""},noMinWidth:{type:Boolean,default:!1}},setup(t){const e=a.computed(()=>[Eo+t.size,{[Eo+t.status]:t.status},{"min-w-min":!!t.noMinWidth},{[Eo+"wide"]:!!t.isWide},{[Eo+t.shape]:!!t.shape},{[Eo+"fab"]:!!t.isFab},{[Eo+"outline"]:!!t.hasOutline||t.status==="secondary"}]),n=a.computed(()=>({disabled:!!t.disabled,"aria-disabled":!!t.disabled}));return{propsClasses:e,disabledAttributes:n}}}),q8=t=>(a.pushScopeId("data-v-fb3c7830"),t=t(),a.popScopeId(),t),Y8={key:0,class:"circular",width:"20",height:"20",viewBox:"0 0 24 24"},J8=[q8(()=>a.createElementVNode("path",{d:"M2 12a1 1 0 0 1 2 0 8 8 0 1 0 8-8 1 1 0 0 1 0-2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12z"},null,-1))],Q8={key:1,class:"flex items-center justify-center"};function X8(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("button",a.mergeProps({class:["button",...t.propsClasses]},t.disabledAttributes),[t.loading&&t.useLoadingSpinner?(a.openBlock(),a.createElementBlock("svg",Y8,J8)):(a.openBlock(),a.createElementBlock("span",Q8,[a.renderSlot(t.$slots,"default",{},void 0,!0)]))],16)}const ev=ce(G8,[["render",X8],["__scopeId","data-v-fb3c7830"]]);function V2(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=F2(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
9
9
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,l;return{s:function(){n=n.call(t)},n:function(){var u=n.next();return i=u.done,u},e:function(u){s=!0,l=u},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw l}}}}function tv(t){return ov(t)||rv(t)||F2(t)||nv()}function nv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
10
10
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rv(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ov(t){if(Array.isArray(t))return H2(t)}function ji(t){"@babel/helpers - typeof";return ji=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ji(t)}function $2(t,e){return av(t)||sv(t,e)||F2(t,e)||iv()}function iv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
11
11
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function F2(t,e){if(t){if(typeof t=="string")return H2(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H2(t,e)}}function H2(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function sv(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,l=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return l}}function av(t){if(Array.isArray(t))return t}var T={innerWidth:function(e){if(e){var n=e.offsetWidth,r=getComputedStyle(e);return n+=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),n}return 0},width:function(e){if(e){var n=e.offsetWidth,r=getComputedStyle(e);return n-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),n}return 0},getWindowScrollTop:function(){var e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)},getWindowScrollLeft:function(){var e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)},getOuterWidth:function(e,n){if(e){var r=e.offsetWidth;if(n){var o=getComputedStyle(e);r+=parseFloat(o.marginLeft)+parseFloat(o.marginRight)}return r}return 0},getOuterHeight:function(e,n){if(e){var r=e.offsetHeight;if(n){var o=getComputedStyle(e);r+=parseFloat(o.marginTop)+parseFloat(o.marginBottom)}return r}return 0},getClientHeight:function(e,n){if(e){var r=e.clientHeight;if(n){var o=getComputedStyle(e);r+=parseFloat(o.marginTop)+parseFloat(o.marginBottom)}return r}return 0},getViewport:function(){var e=window,n=document,r=n.documentElement,o=n.getElementsByTagName("body")[0],i=e.innerWidth||r.clientWidth||o.clientWidth,s=e.innerHeight||r.clientHeight||o.clientHeight;return{width:i,height:s}},getOffset:function(e){if(e){var n=e.getBoundingClientRect();return{top:n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:n.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}},index:function(e){if(e)for(var n,r=(n=this.getParentNode(e))===null||n===void 0?void 0:n.childNodes,o=0,i=0;i<r.length;i++){if(r[i]===e)return o;r[i].nodeType===1&&o++}return-1},addMultipleClasses:function(e,n){var r=this;e&&n&&[n].flat().filter(Boolean).forEach(function(o){return o.split(" ").forEach(function(i){return r.addClass(e,i)})})},removeMultipleClasses:function(e,n){var r=this;e&&n&&[n].flat().filter(Boolean).forEach(function(o){return o.split(" ").forEach(function(i){return r.removeClass(e,i)})})},addClass:function(e,n){e&&n&&!this.hasClass(e,n)&&(e.classList?e.classList.add(n):e.className+=" "+n)},removeClass:function(e,n){e&&n&&(e.classList?e.classList.remove(n):e.className=e.className.replace(new RegExp("(^|\\b)"+n.split(" ").join("|")+"(\\b|$)","gi")," "))},hasClass:function(e,n){return e?e.classList?e.classList.contains(n):new RegExp("(^| )"+n+"( |$)","gi").test(e.className):!1},addStyles:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e&&Object.entries(n).forEach(function(r){var o=$2(r,2),i=o[0],s=o[1];return e.style[i]=s})},find:function(e,n){return this.isElement(e)?e.querySelectorAll(n):[]},findSingle:function(e,n){return this.isElement(e)?e.querySelector(n):null},createElement:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e){var r=document.createElement(e);this.setAttributes(r,n);for(var o=arguments.length,i=new Array(o>2?o-2:0),s=2;s<o;s++)i[s-2]=arguments[s];return r.append.apply(r,i),r}},setAttribute:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0;this.isElement(e)&&r!==null&&r!==void 0&&e.setAttribute(n,r)},setAttributes:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.isElement(e)){var o=function i(s,l){var c,u,d=e!=null&&(c=e.$attrs)!==null&&c!==void 0&&c[s]?[e==null||(u=e.$attrs)===null||u===void 0?void 0:u[s]]:[];return[l].flat().reduce(function(f,p){if(p!=null){var h=ji(p);if(h==="string"||h==="number")f.push(p);else if(h==="object"){var m=Array.isArray(p)?i(s,p):Object.entries(p).map(function(y){var g=$2(y,2),b=g[0],w=g[1];return s==="style"&&(w||w===0)?"".concat(b.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),":").concat(w):w?b:void 0});f=m.length?f.concat(m.filter(function(y){return!!y})):f}}return f},d)};Object.entries(r).forEach(function(i){var s=$2(i,2),l=s[0],c=s[1];if(c!=null){var u=l.match(/^on(.+)/);u?e.addEventListener(u[1].toLowerCase(),c):l==="p-bind"?n.setAttributes(e,c):(c=l==="class"?tv(new Set(o("class",c))).join(" ").trim():l==="style"?o("style",c).join(";").trim():c,(e.$attrs=e.$attrs||{})&&(e.$attrs[l]=c),e.setAttribute(l,c))}})}},getAttribute:function(e,n){if(this.isElement(e)){var r=e.getAttribute(n);return isNaN(r)?r==="true"||r==="false"?r==="true":r:+r}},isAttributeEquals:function(e,n,r){return this.isElement(e)?this.getAttribute(e,n)===r:!1},isAttributeNotEquals:function(e,n,r){return!this.isAttributeEquals(e,n,r)},getHeight:function(e){if(e){var n=e.offsetHeight,r=getComputedStyle(e);return n-=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),n}return 0},getWidth:function(e){if(e){var n=e.offsetWidth,r=getComputedStyle(e);return n-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight)+parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),n}return 0},absolutePosition:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e){var o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),i=o.height,s=o.width,l=n.offsetHeight,c=n.offsetWidth,u=n.getBoundingClientRect(),d=this.getWindowScrollTop(),f=this.getWindowScrollLeft(),p=this.getViewport(),h,m,y="top";u.top+l+i>p.height?(h=u.top+d-i,y="bottom",h<0&&(h=d)):h=l+u.top+d,u.left+s>p.width?m=Math.max(0,u.left+f+c-s):m=u.left+f,e.style.top=h+"px",e.style.left=m+"px",e.style.transformOrigin=y,r&&(e.style.marginTop=y==="bottom"?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}},relativePosition:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e){var o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),i=n.offsetHeight,s=n.getBoundingClientRect(),l=this.getViewport(),c,u,d="top";s.top+i+o.height>l.height?(c=-1*o.height,d="bottom",s.top+c<0&&(c=-1*s.top)):c=i,o.width>l.width?u=s.left*-1:s.left+o.width>l.width?u=(s.left+o.width-l.width)*-1:u=0,e.style.top=c+"px",e.style.left=u+"px",e.style.transformOrigin=d,r&&(e.style.marginTop=d==="bottom"?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}},nestedPosition:function(e,n){if(e){var r=e.parentElement,o=this.getOffset(r),i=this.getViewport(),s=e.offsetParent?e.offsetWidth:this.getHiddenElementOuterWidth(e),l=this.getOuterWidth(r.children[0]),c;parseInt(o.left,10)+l+s>i.width-this.calculateScrollbarWidth()?parseInt(o.left,10)<s?n%2===1?c=parseInt(o.left,10)?"-"+parseInt(o.left,10)+"px":"100%":n%2===0&&(c=i.width-s-this.calculateScrollbarWidth()+"px"):c="-100%":c="100%",e.style.top="0px",e.style.left=c}},getParentNode:function(e){var n=e==null?void 0:e.parentNode;return n&&n instanceof ShadowRoot&&n.host&&(n=n.host),n},getParents:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=this.getParentNode(e);return r===null?n:this.getParents(r,n.concat([r]))},getScrollableParents:function(e){var n=[];if(e){var r=this.getParents(e),o=/(auto|scroll)/,i=function(g){try{var b=window.getComputedStyle(g,null);return o.test(b.getPropertyValue("overflow"))||o.test(b.getPropertyValue("overflowX"))||o.test(b.getPropertyValue("overflowY"))}catch{return!1}},s=V2(r),l;try{for(s.s();!(l=s.n()).done;){var c=l.value,u=c.nodeType===1&&c.dataset.scrollselectors;if(u){var d=u.split(","),f=V2(d),p;try{for(f.s();!(p=f.n()).done;){var h=p.value,m=this.findSingle(c,h);m&&i(m)&&n.push(m)}}catch(y){f.e(y)}finally{f.f()}}c.nodeType!==9&&i(c)&&n.push(c)}}catch(y){s.e(y)}finally{s.f()}}return n},getHiddenElementOuterHeight:function(e){if(e){e.style.visibility="hidden",e.style.display="block";var n=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",n}return 0},getHiddenElementOuterWidth:function(e){if(e){e.style.visibility="hidden",e.style.display="block";var n=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",n}return 0},getHiddenElementDimensions:function(e){if(e){var n={};return e.style.visibility="hidden",e.style.display="block",n.width=e.offsetWidth,n.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",n}return 0},fadeIn:function(e,n){if(e){e.style.opacity=0;var r=+new Date,o=0,i=function s(){o=+e.style.opacity+(new Date().getTime()-r)/n,e.style.opacity=o,r=+new Date,+o<1&&(window.requestAnimationFrame&&requestAnimationFrame(s)||setTimeout(s,16))};i()}},fadeOut:function(e,n){if(e)var r=1,o=50,i=n,s=o/i,l=setInterval(function(){r-=s,r<=0&&(r=0,clearInterval(l)),e.style.opacity=r},o)},getUserAgent:function(){return navigator.userAgent},appendChild:function(e,n){if(this.isElement(n))n.appendChild(e);else if(n.el&&n.elElement)n.elElement.appendChild(e);else throw new Error("Cannot append "+n+" to "+e)},isElement:function(e){return(typeof HTMLElement>"u"?"undefined":ji(HTMLElement))==="object"?e instanceof HTMLElement:e&&ji(e)==="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string"},scrollInView:function(e,n){var r=getComputedStyle(e).getPropertyValue("borderTopWidth"),o=r?parseFloat(r):0,i=getComputedStyle(e).getPropertyValue("paddingTop"),s=i?parseFloat(i):0,l=e.getBoundingClientRect(),c=n.getBoundingClientRect(),u=c.top+document.body.scrollTop-(l.top+document.body.scrollTop)-o-s,d=e.scrollTop,f=e.clientHeight,p=this.getOuterHeight(n);u<0?e.scrollTop=d+u:u+p>f&&(e.scrollTop=d+u-f+p)},clearSelection:function(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}},getSelection:function(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null},calculateScrollbarWidth:function(){if(this.calculatedScrollbarWidth!=null)return this.calculatedScrollbarWidth;var e=document.createElement("div");this.addStyles(e,{width:"100px",height:"100px",overflow:"scroll",position:"absolute",top:"-9999px"}),document.body.appendChild(e);var n=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),this.calculatedScrollbarWidth=n,n},calculateBodyScrollbarWidth:function(){return window.innerWidth-document.documentElement.offsetWidth},getBrowser:function(){if(!this.browser){var e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser},resolveUserAgent:function(){var e=navigator.userAgent.toLowerCase(),n=/(chrome)[ ]([\w.]+)/.exec(e)||/(webkit)[ ]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:n[1]||"",version:n[2]||"0"}},isVisible:function(e){return e&&e.offsetParent!=null},invokeElementMethod:function(e,n,r){e[n].apply(e,r)},isExist:function(e){return!!(e!==null&&typeof e<"u"&&e.nodeName&&this.getParentNode(e))},isClient:function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)},focus:function(e,n){e&&document.activeElement!==e&&e.focus(n)},isFocusableElement:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return this.isElement(e)?e.matches('button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(n,`,