@quoreadmin/ui 1.3.15 → 1.3.16

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,4 +1,4 @@
1
- (function(le,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(le=typeof globalThis<"u"?globalThis:le||self,a(le.QuoreUI={},le.Vue))})(this,function(le,a){"use strict";var qme=Object.defineProperty;var cx=le=>{throw TypeError(le)};var Wme=(le,a,pt)=>a in le?qme(le,a,{enumerable:!0,configurable:!0,writable:!0,value:pt}):le[a]=pt;var Me=(le,a,pt)=>Wme(le,typeof a!="symbol"?a+"":a,pt),B9=(le,a,pt)=>a.has(le)||cx("Cannot "+pt);var m=(le,a,pt)=>(B9(le,a,"read from private field"),pt?pt.call(le):a.get(le)),I=(le,a,pt)=>a.has(le)?cx("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(le):a.set(le,pt),M=(le,a,pt,V2)=>(B9(le,a,"write to private field"),V2?V2.call(le,pt):a.set(le,pt),pt),O=(le,a,pt)=>(B9(le,a,"access private method"),pt);var dr=(le,a,pt,V2)=>({set _(Se){M(le,a,Se,pt)},get _(){return m(le,a,V2)}});var Os,o5,L9,Of,Xa,O0,Yi,D0,Df,Nf,Vg,dx,ir,ux,fx,s5,hx,R9,xf,N0,x0,Ja,px,mx,gx,$g,$c,Pf,Hn,Fc,a5,jt,el,Bf,Dt,sx,Fg,yx,jc,Wr,en,An,Hc,Ns,zc,Ai,tl,P0,Uc,B0,Lo,Qi,L0,Lf,Rf,Zc,_f,Ro,nl,qc,rl,_o,Hg,il,Vf,ol,R0,$f,Ff,hn,it,xs,_0,jf,Hf,sl,Vo,Ps,zf,Ti,de,l5,_9,bx,wx,c5,vx,Cx,kx,V9,Sx,$9,F9,Ex,ur,sa,Mx,Ax,j9,Tx,tp,H9,pn,$o,Xi,Gc,Fo,Gr,Kc,jo,Dr,Bs,V0,Ho,al,Ji,np,d5,Uf,$0,Zf,qf,Wf,Gf,Kf,Yc,Ls,F0,ll,Rs,Ix,Ox,z9,j0,eo,vt,Qc,cl,Yf,H0,Tn,z0,_s,dl,Qf,U0,Kr,Xf,Z0,Vs,zo,Xc,Jc,Ii,q0,Jf,zg,Ee,U9,eh,Z9,u5,Dx,Nx,q9,f5,W9,xx,Px,Bx,G9,Lx,K9,Rx,_x,Vx,Y9,rp,W0,G0,mn,Ug,$x,th,ed,td,Oi,Fx,jx,Hx,h5,nh,to,Q9,X9,J9,rh,ih,K0,oh,sh,ah,lh,nd,ul,ot,rd,id,ch,eb,ax,fl,Nr,dh,uh,Y0,$s,fh,hh,Q0,od,sd,hl,ad,ph,ld,X0,mh,gh,J0,e2,yh,pl,cd,Fs,zx,Ux,tb,Yr,p5,nb,Zx,qx,t2,dd,js,Hs,zn,n2,r2,pe,Wn,ip,Wd,m5,Gd,Wx,rb,Kd,op,sp,ib,ap,lx,qg,ml,zs,Di,Yd,g5,Us,Gg,Kg,i2,o2,ud,y5,fd,b5,Zs,Uo,hd,pd,qs,s2,lp,Qr,bh,ob,gl,yl,a2,c2,md,gd,wh,sb,Xr,L2,Gx,Kx,yd,Yg,Qg,bd,d2,Lt,Ws,wd,vh,Ch,vd,Gs,no,Ks,kh,Ys,Sh,u2,f2,ct,w5,ab,Yx,Qx,Xx,Jx,v5,C5,lb,Eh,Mh,Ah,Th,Ih,h2,Oh,cb,Dh,Nh,db,xh,p2,m2,Ph,g2,eP,ub,ro,Jr,Bh,y2,ei,Xt,tP,nP,rP,k5,Qs,S5,E5,iP,fb,oP,ti,io,Cd,kd,Zo,He,b2,w2,Lh,Rh,Sd,Ed,bl,_h,Xg,Jg,nn,cp,sP,aP,lP,cP,dP,uP,Md,v2,Js,Vh,ni,$h,Ht,e5,fP,Fh,jh,wl,oo,sr,hP,M5,pP,mP,hb,Hh,Ad,so,C2,Td,rn,zh,Id,Uh,Zh,vl,ao,Od,qh,dt,pb,mb,gb,R2,gP,Dl,Dd,Wh,ea,k2,Nd,Pr,Gh,Kh,S2,Ni,ri,In,xd,ta,Un,Pd,xi,Yh,Be,yb,A5,yP,bP,wP,bb,_2,Pi,Qd,vP,T5,dp,CP,kP,SP,EP,MP,E2,ii,Bd,gn,M2,A2,Cl,kl,Sl,T2,Qe,wb,vb,Cb,up,AP,I5,fp,Xd,qo,yn,bn,I2,Ld,ar,On,Bi,O2,D2,N2,Rd,O5,lr,Qh,Xh,oi,Wo,Go,_d,Vd,$d,Dn,aa,TP,IP,OP,Fd,t5,DP,Nt,Nn,El,na,Ml,Hd,Ko,Yo,si,zd,Je,hp,pp,D5,kb,N5,Sb,x5,NP,x2,Ud,Qo,Al,ra,Li,Tl,Zd,P2,lo,ia,Zn,oa,ve,Il,Mt,xP,ns,Eb,Mb,P5,uo,ep,cr,B2,n5,PP,Xo,Ab,BP,Tb;var pt=typeof document<"u"?document.currentScript:null;const V2=a.defineComponent({name:"QAccordion",props:{modelValue:{type:[Boolean,Number],default:!1},variant:{type:String,default:"white"},triggerText:{type:String,default:""},triggerClass:{type:[String,Array,Object],default:""},contentClass:{type:[String,Array,Object],default:""},chevronClass:{type:[String,Array,Object],default:""},chevronSize:{type:String,default:""}},emits:["update:modelValue"],setup(t,{emit:e,slots:n}){const r=a.computed({get:()=>!!t.modelValue,set:u=>e("update:modelValue",u)}),i=a.computed(()=>!!n.text),o=a.computed(()=>{const u=r.value?"Hide":"Show";return s.value?u:t.triggerText}),s=a.computed(()=>t.variant==="bubble"),l=a.computed(()=>["leading-normal font-bold",{"text-md":t.variant==="white"},{"text-base":t.variant==="gray"},{"flex-grow":t.variant!=="bubble"},{"flex-shrink mr-2 text-gray-40 text-sm":t.variant==="bubble"}]),c=a.computed(()=>t.chevronSize||(s.value?"sm":"md"));return{show:r,hasTextSlot:i,triggerTextClasses:l,isBubbleAccordion:s,triggerTextValue:o,triggerIconSize:c,onToggle:()=>{r.value=!r.value}}}}),Se=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},_P=["value"],VP={key:0,class:"flex-grow border-t border-gray-20"},$P={key:1,class:"flex-grow border-t border-gray-20"};function FP(t,e,n,r,i,o){const s=a.resolveComponent("q-icon");return a.openBlock(),a.createElementBlock("div",{value:t.modelValue,class:a.normalizeClass(["accordion","accordion-"+t.variant,{"is-open":!!t.modelValue}])},[a.renderSlot(t.$slots,"toggle",a.normalizeProps(a.guardReactiveProps({onToggle:t.onToggle})),()=>[a.createElementVNode("div",{class:a.normalizeClass(["accordion-trigger",t.triggerClass,{"py-5":t.isBubbleAccordion}]),onClick:e[0]||(e[0]=(...l)=>t.onToggle&&t.onToggle(...l))},[t.isBubbleAccordion?(a.openBlock(),a.createElementBlock("div",VP)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["flex items-center",{"w-full":!t.isBubbleAccordion},{"border border-gray-20 rounded-full px-8 py-2 w-32":t.isBubbleAccordion}])},[t.hasTextSlot?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(t.triggerTextClasses)},[a.renderSlot(t.$slots,"text",{},void 0,!0)],2)):(a.openBlock(),a.createElementBlock("h4",{key:1,class:a.normalizeClass(t.triggerTextClasses)},a.toDisplayString(t.triggerTextValue),3)),a.renderSlot(t.$slots,"additionalInfo",{},void 0,!0),a.createVNode(s,{icon:"chevron-down",color:"gray-40",size:t.triggerIconSize,type:"",class:a.normalizeClass(["shrink-0 mr-4",t.chevronClass,{open:!!t.show}])},null,8,["size","class"])],2),t.isBubbleAccordion?(a.openBlock(),a.createElementBlock("div",$P)):a.createCommentVNode("",!0)],2)],!0),a.createVNode(a.Transition,{name:"slide-down"},{default:a.withCtx(()=>[t.show?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["accordion-content",t.contentClass,{"p-0":t.variant==="custom"}])},[a.renderSlot(t.$slots,"content",{},void 0,!0)],2)):a.createCommentVNode("",!0)]),_:3})],10,_P)}const jP=Se(V2,[["render",FP],["__scopeId","data-v-c7b4341d"]]),HP=a.defineComponent({name:"QActivityItem",props:{type:{type:String,default:"history"},text:{type:String,default:""},time:{type:String,default:""},isClickable:{type:Boolean,default:!1},wrapTime:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:e}){const n=a.computed(()=>{switch(t.type){case"complaint":return"face-sad";case"fail":return"close";case"na":return"na";case"pass":return"check";case"repair":return"minus";case"request":return"bell-concierge";case"satisfaction-call":return"phone-plus";case"task":return"check";case"work-order":return"hammer";default:return"history"}}),r=a.computed(()=>t.type==="history");return{props:t,isHistory:r,typeIcon:n,handleClick:()=>{e("click")}}}}),zP=["role"],UP={class:"activity-item__content-wrapper"},ZP={key:0},qP={class:"activity-item__content-text"},WP={key:0},GP={key:0,class:"activity-item__time"},KP={key:0};function YP(t,e,n,r,i,o){const s=a.resolveComponent("q-icon");return a.openBlock(),a.createElementBlock("div",{role:t.isClickable?"button":void 0,class:a.normalizeClass(["activity-item",{"bg-gray-0":!t.isHistory,"hover:bg-gray-7":t.isClickable,"activity-item--wrap-time":t.props.wrapTime}]),onClick:e[0]||(e[0]=(...l)=>t.handleClick&&t.handleClick(...l))},[a.createElementVNode("div",{class:a.normalizeClass(["activity-item__content",{"items-center":!t.props.wrapTime}])},[a.createElementVNode("div",{class:a.normalizeClass(["flex justify-center items-center rounded w-6 h-6 shrink-0","activity-item__content-icon-"+t.props.type,{"mt-5":t.props.wrapTime}])},[a.createVNode(s,{icon:t.typeIcon,type:"fill",size:"sm",color:"white"},null,8,["icon"])],2),a.createElementVNode("div",UP,[t.props.wrapTime?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["activity-item__time",{"mb-1":t.props.wrapTime}])},[t.props.time?(a.openBlock(),a.createElementBlock("span",ZP,a.toDisplayString(t.props.time),1)):a.renderSlot(t.$slots,"time",{key:1},void 0,!0)],2)):a.createCommentVNode("",!0),a.createElementVNode("div",qP,[t.props.text?(a.openBlock(),a.createElementBlock("span",WP,a.toDisplayString(t.props.text),1)):a.renderSlot(t.$slots,"text",{key:1},void 0,!0)])])],2),t.props.wrapTime?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",GP,[t.props.time?(a.openBlock(),a.createElementBlock("span",KP,a.toDisplayString(t.props.time),1)):a.renderSlot(t.$slots,"time",{key:1},void 0,!0)]))],10,zP)}const Nb=Se(HP,[["render",YP],["__scopeId","data-v-fc1aca28"]]),QP=a.defineComponent({name:"QAvatar",props:{size:{type:String,default:"sm"},text:{type:[String],default:""},bgColor:{type:String,default:"teal-20"},src:{type:String,default:""}},setup(){const t=a.ref(!0),e=a.ref(!1);return{validSrc:t,isLoaded:e,onImageLoad:()=>{e.value=!0},onImageError:()=>{t.value=!1}}}}),XP={class:"avatar-text"},JP=["src"];function eB(t,e,n,r,i,o){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["avatar flex justify-center items-center",[`avatar-${t.size}`,`bg-${t.bgColor}`]])},[a.createElementVNode("span",XP,a.toDisplayString(t.text),1),t.src&&t.validSrc?(a.openBlock(),a.createElementBlock("img",{key:0,class:"avatar-image",src:t.src,onLoad:e[0]||(e[0]=(...s)=>t.onImageLoad&&t.onImageLoad(...s)),onError:e[1]||(e[1]=(...s)=>t.onImageError&&t.onImageError(...s))},null,40,JP)):a.createCommentVNode("",!0)],2)}const xb=Se(QP,[["render",eB],["__scopeId","data-v-ebde1d6f"]]),tB=a.defineComponent({props:{backgroundColor:{type:String,default:"blue-20"},textColor:{type:String,default:"white"}}}),nB={class:"banner-text mb-0"};function rB(t,e,n,r,i,o){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["q-banner flex","bg-"+t.backgroundColor,"text-"+t.textColor]),onClick:e[0]||(e[0]=s=>t.$emit("bannerClick"))},[a.createElementVNode("p",nB,[a.renderSlot(t.$slots,"default",{},void 0,!0)])],2)}const iB=Se(tB,[["render",rB],["__scopeId","data-v-8edf76be"]]),oB=a.defineComponent({name:"QBadge",props:{color:{type:String,default:""},shape:{type:String,default:"circle"}},setup(t,e){const n=a.computed(function(){return t.color?`bg-${t.color}`:""}),r=a.computed(function(){return!!e.slots.icon});return{bgColor:n,hasIcon:r}}}),sB={key:1,class:"badge-text"};function aB(t,e,n,r,i,o){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["badge",t.shape,t.bgColor])},[t.hasIcon?a.renderSlot(t.$slots,"icon",{key:0},void 0,!0):(a.openBlock(),a.createElementBlock("p",sB,[a.renderSlot(t.$slots,"text",{},void 0,!0)]))],2)}const rs=Se(oB,[["render",aB],["__scopeId","data-v-c8e6730f"]]);function lB(){try{return"constructor"in GestureEvent}catch{return!1}}function Pb(){return typeof window<"u"&&"ontouchstart"in window}function Bb(t){return"pointerId"in t?null:t.type==="touchend"?t.changedTouches:t.targetTouches}function Lb(t){return Array.from(Bb(t)).map(e=>e.identifier)}function Rb(t){const e="buttons"in t?t.buttons:0,{shiftKey:n,altKey:r,metaKey:i,ctrlKey:o}=t;return{buttons:e,shiftKey:n,altKey:r,metaKey:i,ctrlKey:o}}const cB=t=>t;function _b(t,e=cB){const n=Bb(t),{clientX:r,clientY:i}=n?n[0]:t;return e([r,i])}function Vb(){}function $b(...t){return t.length===0?Vb:t.length===1?t[0]:function(){var e;for(let n of t)e=n.apply(this,arguments)||e;return e}}function la(t,e){if(t===void 0){if(e===void 0)throw new Error("Must define fallback value if undefined is expected");t=e}return Array.isArray(t)?t:[t,t]}function Fb(t,...e){return typeof t=="function"?t(...e):t}function Jd(t){return{_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_lastEventType:void 0,_dragStarted:!1,_dragPreventScroll:!1,_dragIsTap:!0,_dragDelayed:!1,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:Vb,canceled:!1,memo:void 0,args:void 0,...t}}function B5(){const t={hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1,locked:!1},e=Jd({_pointerId:void 0,axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,tap:!1,swipe:[0,0]}),n=Jd({_pointerIds:[],da:[0,0],vdva:[0,0],origin:void 0,turns:0}),r=Jd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),i=Jd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),o=Jd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0});return{shared:t,drag:e,pinch:n,wheel:r,move:i,scroll:o}}var dB=Object.defineProperty,uB=(t,e,n)=>e in t?dB(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,fr=(t,e,n)=>(uB(t,typeof e!="symbol"?e+"":e,n),n);class fB{constructor(e){this.classes=e,fr(this,"nativeRefs"),fr(this,"config"),fr(this,"handlers"),fr(this,"state"),fr(this,"timeouts"),fr(this,"domListeners"),fr(this,"windowListeners"),fr(this,"pointerIds",new Set),fr(this,"touchIds",new Set),fr(this,"supportsTouchEvents",Pb()),fr(this,"supportsGestureEvents",lB()),fr(this,"bind",(...n)=>{const r={};for(let i of this.classes)new i(this,n).addBindings(r);for(let i in this.nativeRefs)po(r,i,o=>this.nativeRefs[i]({...this.state.shared,event:o,args:n}));return this.config.domTarget?bB(this,r):wB(this,r)}),fr(this,"clean",()=>{const{eventOptions:n,domTarget:r}=this.config,i=a.unref(r);i&&e1(i,jb(this.domListeners),n),Object.values(this.timeouts).forEach(clearTimeout),mB(this)}),fr(this,"reset",()=>{this.state=B5()}),this.classes=e,this.state=B5(),this.timeouts={},this.domListeners=[],this.windowListeners={}}}function hB(t,e){"pointerId"in e?t.pointerIds.add(e.pointerId):t.touchIds=new Set(Lb(e))}function pB(t,e){"pointerId"in e?t.pointerIds.delete(e.pointerId):Lb(e).forEach(n=>t.touchIds.delete(n))}function mB(t){const{config:{window:e,eventOptions:n},windowListeners:r}=t,i=a.unref(e);if(i){for(let o in r){const s=r[o];e1(i,s,n)}t.windowListeners={}}}function gB({config:t,windowListeners:e},n,r=t.eventOptions){const i=a.unref(t.window);i&&(e1(i,e[n],r),delete e[n])}function yB({config:t,windowListeners:e},n,r=[],i=t.eventOptions){const o=a.unref(t.window);o&&(e1(o,e[n],i),Hb(o,e[n]=r,i))}function bB({config:t,domListeners:e},n){const{eventOptions:r,domTarget:i}=t,o=a.unref(i);if(!o)throw new Error("domTarget must be defined");e1(o,jb(e),r);for(let[s,l]of Object.entries(n)){const c=s.slice(2).toLowerCase();e.push([c,$b(...l)])}Hb(o,e,r)}function wB({config:t},e){const n={},r=t.eventOptions.capture?"Capture":"";for(let[i,o]of Object.entries(e)){const s=Array.isArray(o)?o:[o],l=i+r;n[l]=$b(...s)}return n}function jb(t=[]){return t.splice(0,t.length)}function po(t,e,n){t[e]||(t[e]=[]),t[e].push(n)}function Hb(t,e=[],n={}){if(t)for(let[r,i]of e)t.addEventListener(r,i,n)}function e1(t,e=[],n={}){if(t)for(let[r,i]of e)t.removeEventListener(r,i,n)}function L5(t,e){return t.map((n,r)=>n+e[r])}function zb(t,e){return t.map((n,r)=>n-e[r])}function R5(t){return Math.hypot(...t)}function vB(t,e,n){const r=R5(e),i=r===0?0:1/r,o=n===0?0:1/n,s=o*r,l=e.map(u=>o*u),c=e.map(u=>i*u),d=R5(t);return{velocities:l,velocity:s,distance:d,direction:c}}function _5(t){return Math.sign?Math.sign(t):+(t>0)-+(t<0)||+t}function CB(t,e,n){return Math.max(e,Math.min(t,n))}function kB(t,e){return Math.pow(t,e*5)}function Ub(t,e,n){return e===0||Math.abs(e)===1/0?kB(t,n):t*e*n/(e+n*t)}function Zb(t,e,n,r=.15){return r===0?CB(t,e,n):t<e?-Ub(e-t,n-e,r)+e:t>n?+Ub(t-n,n-e,r)+n:t}var SB=Object.defineProperty,EB=(t,e,n)=>e in t?SB(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,mp=(t,e,n)=>(EB(t,typeof e!="symbol"?e+"":e,n),n);const Nl=new Map,MB=t=>t;class AB{constructor(e,n=[]){this.controller=e,this.args=n,mp(this,"debounced",!0),mp(this,"setTimeout",(r,i=140,...o)=>{clearTimeout(this.controller.timeouts[this.stateKey]),this.controller.timeouts[this.stateKey]=window.setTimeout(r,i,...o)}),mp(this,"clearTimeout",()=>{clearTimeout(this.controller.timeouts[this.stateKey])}),mp(this,"fireGestureHandler",(r=!1)=>{if(this.state._blocked)return this.debounced||(this.state._active=!1,this.clean()),null;if(!r&&!this.state.intentional&&!this.config.triggerAllEvents)return null;if(this.state.intentional){const c=this.state.active,d=this.state._active;this.state.active=d,this.state.first=d&&!c,this.state.last=c&&!d,this.controller.state.shared[this.ingKey]=d}const i=this.controller.pointerIds.size||this.controller.touchIds.size,o=this.controller.state.shared.buttons>0||i>0,s={...this.controller.state.shared,...this.state,...this.mapStateValues(this.state),locked:!!document.pointerLockElement,touches:i,down:o},l=this.handler(s);return this.state.memo=l!==void 0?l:this.state.memo,s}),this.controller=e,this.args=n}get config(){return this.controller.config[this.stateKey]}get enabled(){return this.controller.config.enabled&&this.config.enabled}get state(){return this.controller.state[this.stateKey]}get handler(){return this.controller.handlers[this.stateKey]}get transform(){return this.config.transform||this.controller.config.transform||MB}updateSharedState(e){Object.assign(this.controller.state.shared,e)}updateGestureState(e){Object.assign(this.state,e)}checkIntentionality(e,n){return{_intentional:e,_blocked:!1}}getMovement(e){const{rubberband:n,threshold:r}=this.config,{_bounds:i,_initial:o,_active:s,_intentional:l,lastOffset:c,movement:d}=this.state,u=this.getInternalMovement(e,this.state),f=this.transform(r).map(Math.abs),h=l[0]===!1?qb(u[0],f[0]):l[0],p=l[1]===!1?qb(u[1],f[1]):l[1],g=this.checkIntentionality([h,p],u);if(g._blocked)return{...g,_movement:u,delta:[0,0]};const b=g._intentional,y=u;let w=[b[0]!==!1?u[0]-b[0]:0,b[1]!==!1?u[1]-b[1]:0];const v=L5(w,c),k=s?n:[0,0];return w=Wb(i,L5(w,o),k),{...g,intentional:b[0]!==!1||b[1]!==!1,_initial:o,_movement:y,movement:w,values:e,offset:Wb(i,v,k),delta:zb(w,d)}}clean(){this.clearTimeout()}}function qb(t,e){return Math.abs(t)>=e?_5(t)*e:!1}function Wb(t,[e,n],[r,i]){const[[o,s],[l,c]]=t;return[Zb(e,o,s,r),Zb(n,l,c,i)]}function V5({state:t},e,n){const{timeStamp:r,type:i}=e,o=t.values,s=n?0:r-t.startTime;return{_lastEventType:i,event:e,timeStamp:r,elapsedTime:s,previous:o}}function TB({state:t,config:e,stateKey:n,args:r},i,o){const s=t.offset,l=o.timeStamp,{initial:c,bounds:d}=e,u={...B5()[n],_active:!0,args:r,values:i,initial:i,offset:s,lastOffset:s,startTime:l};return{...u,_initial:Fb(c,u),_bounds:Fb(d,u)}}class IB extends AB{getInternalMovement(e,n){return zb(e,n.initial)}checkIntentionality(e,n){if(e[0]===!1&&e[1]===!1)return{_intentional:e,axis:this.state.axis};const[r,i]=n.map(Math.abs),o=this.state.axis||(r>i?"x":r<i?"y":void 0);return!this.config.axis&&!this.config.lockDirection?{_intentional:e,_blocked:!1,axis:o}:o?this.config.axis&&o!==this.config.axis?{_intentional:e,_blocked:!0,axis:o}:(e[o==="x"?1:0]=!1,{_intentional:e,_blocked:!1,axis:o}):{_intentional:[!1,!1],_blocked:!1,axis:o}}getKinematics(e,n){const r=this.getMovement(e);if(!r._blocked){const i=n.timeStamp-this.state.timeStamp;Object.assign(r,vB(r.movement,r.delta,i))}return r}mapStateValues(e){return{xy:e.values,vxvy:e.velocities}}}var OB=Object.defineProperty,DB=(t,e,n)=>e in t?OB(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,vn=(t,e,n)=>(DB(t,typeof e!="symbol"?e+"":e,n),n);const NB=3;function Gb(t){"persist"in t&&typeof t.persist=="function"&&t.persist()}class xB extends IB{constructor(){super(...arguments),vn(this,"ingKey","dragging"),vn(this,"stateKey","drag"),vn(this,"setPointerCapture",e=>{if(this.config.useTouch||document.pointerLockElement)return;const{target:n,pointerId:r}=e;n&&"setPointerCapture"in n&&n.setPointerCapture(r),this.updateGestureState({_dragTarget:n,_dragPointerId:r})}),vn(this,"releasePointerCapture",()=>{if(this.config.useTouch||document.pointerLockElement)return;const{_dragTarget:e,_dragPointerId:n}=this.state;if(n&&e&&"releasePointerCapture"in e&&(!("hasPointerCapture"in e)||e.hasPointerCapture(n)))try{e.releasePointerCapture(n)}catch{}}),vn(this,"preventScroll",e=>{this.state._dragPreventScroll&&e.cancelable&&e.preventDefault()}),vn(this,"getEventId",e=>this.config.useTouch?e.changedTouches[0].identifier:e.pointerId),vn(this,"isValidEvent",e=>this.state._pointerId===this.getEventId(e)),vn(this,"shouldPreventWindowScrollY",this.config.preventWindowScrollY&&this.controller.supportsTouchEvents),vn(this,"setUpWindowScrollDetection",e=>{Gb(e),yB(this.controller,this.stateKey,[["touchmove",this.preventScroll],["touchend",this.clean.bind(this)],["touchcancel",this.clean.bind(this)]],{passive:!1}),this.setTimeout(this.startDrag.bind(this),250,e)}),vn(this,"setUpDelayedDragTrigger",e=>{this.state._dragDelayed=!0,Gb(e),this.setTimeout(this.startDrag.bind(this),this.config.delay,e)}),vn(this,"setStartState",e=>{const n=_b(e,this.transform);this.updateSharedState(Rb(e)),this.updateGestureState({...TB(this,n,e),...V5(this,e,!0),_pointerId:this.getEventId(e)}),this.updateGestureState(this.getMovement(n))}),vn(this,"onDragStart",e=>{hB(this.controller,e),!(!this.enabled||this.state._active)&&(this.setStartState(e),this.setPointerCapture(e),this.shouldPreventWindowScrollY?this.setUpWindowScrollDetection(e):this.config.delay>0?this.setUpDelayedDragTrigger(e):this.startDrag(e,!0))}),vn(this,"onDragChange",e=>{if(this.state.canceled||!this.state._active||!this.isValidEvent(e)||this.state._lastEventType===e.type&&e.timeStamp===this.state.timeStamp)return;let n;if(document.pointerLockElement){const{movementX:c,movementY:d}=e;n=L5(this.transform([c,d]),this.state.values)}else n=_b(e,this.transform);const r=this.getKinematics(n,e);if(!this.state._dragStarted){if(this.state._dragDelayed){this.startDrag(e);return}if(this.shouldPreventWindowScrollY)if(!this.state._dragPreventScroll&&r.axis)if(r.axis==="x")this.startDrag(e);else{this.state._active=!1;return}else return;else return}const i=Rb(e);this.updateSharedState(i);const o=V5(this,e),s=R5(r._movement);let{_dragIsTap:l}=this.state;l&&s>=NB&&(l=!1),this.updateGestureState({...o,...r,_dragIsTap:l}),this.fireGestureHandler()}),vn(this,"onDragEnd",e=>{if(pB(this.controller,e),!this.isValidEvent(e)||(this.clean(),!this.state._active))return;this.state._active=!1;const n=this.state._dragIsTap,[r,i]=this.state.velocities,[o,s]=this.state.movement,[l,c]=this.state._intentional,[d,u]=this.config.swipeVelocity,[f,h]=this.config.swipeDistance,p=this.config.swipeDuration,g={...V5(this,e),...this.getMovement(this.state.values)},b=[0,0];g.elapsedTime<p&&(l!==!1&&Math.abs(r)>d&&Math.abs(o)>f&&(b[0]=_5(r)),c!==!1&&Math.abs(i)>u&&Math.abs(s)>h&&(b[1]=_5(i))),this.updateSharedState({buttons:0}),this.updateGestureState({...g,tap:n,swipe:b}),this.fireGestureHandler(this.config.filterTaps&&n===!0)}),vn(this,"clean",()=>{super.clean(),this.state._dragStarted=!1,this.releasePointerCapture(),gB(this.controller,this.stateKey)}),vn(this,"onCancel",()=>{this.state.canceled||(this.updateGestureState({canceled:!0,_active:!1}),this.updateSharedState({buttons:0}),a.nextTick(this.fireGestureHandler))}),vn(this,"onClick",e=>{this.state._dragIsTap||e.stopPropagation()})}startDrag(e,n=!1){!this.state._active||this.state._dragStarted||(n||this.setStartState(e),this.updateGestureState({_dragStarted:!0,_dragPreventScroll:!0,cancel:this.onCancel}),this.clearTimeout(),this.fireGestureHandler())}addBindings(e){if(this.config.useTouch?(po(e,"onTouchStart",this.onDragStart),po(e,"onTouchMove",this.onDragChange),po(e,"onTouchEnd",this.onDragEnd),po(e,"onTouchCancel",this.onDragEnd)):(po(e,"onPointerDown",this.onDragStart),po(e,"onPointerMove",this.onDragChange),po(e,"onPointerUp",this.onDragEnd),po(e,"onPointerCancel",this.onDragEnd)),this.config.filterTaps){const n=this.controller.config.eventOptions.capture?"onClick":"onClickCapture";po(e,n,this.onClick)}}}function PB(t,e){let n,r=[],i,o=!1;function s(...l){return o&&n===this&&e(l,r)||(i=t.apply(this,l),o=!0,n=this,r=l),i}return s}function gp(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let n,r,i;if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!gp(t[r],e[r]))return!1;return!0}let o;if(typeof Map=="function"&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o=t.entries();!(r=o.next()).done;)if(!e.has(r.value[0]))return!1;for(o=t.entries();!(r=o.next()).done;)if(!gp(r.value[1],e.get(r.value[0])))return!1;return!0}if(typeof Set=="function"&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o=t.entries();!(r=o.next()).done;)if(!e.has(r.value[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;if(typeof Element<"u"&&t instanceof Element)return!1;for(r=n;r--!==0;)if(!(i[r]==="_owner"&&t.$$typeof)&&!gp(t[i[r]],e[i[r]]))return!1;return!0}return t!==t&&e!==e}function BB(t,e){try{return gp(t,e)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}function $5(t={},e){const n={};for(const[r,i]of Object.entries(e))switch(typeof i){case"function":n[r]=i.call(n,t[r],r,t);break;case"object":n[r]=$5(t[r],i);break;case"boolean":i&&(n[r]=t[r]);break}return n}const LB=180,RB=.15,_B=.5,VB=50,$B=250,Kb={...{threshold(t=0){return la(t)},rubberband(t=0){switch(t){case!0:return la(RB);case!1:return la(0);default:return la(t)}},enabled(t=!0){return t},triggerAllEvents(t=!1){return t},initial(t=0){return typeof t=="function"?t:la(t)},transform:!0},axis:!0,lockDirection(t=!1){return t},bounds(t={}){if(typeof t=="function")return o=>Kb.bounds(t(o));const{left:e=-1/0,right:n=1/0,top:r=-1/0,bottom:i=1/0}=t;return[[e,n],[r,i]]}},FB=typeof window<"u"&&window.document&&window.document.createElement,jB={enabled(t=!0){return t},domTarget:!0,window(t=FB?window:void 0){return t},eventOptions({passive:t=!0,capture:e=!1}={}){return{passive:t,capture:e}},transform:!0},HB={...Kb,useTouch(t=!0){return t&&Pb()},preventWindowScrollY(t=!1){return t},threshold(t,e,{filterTaps:n=!1,lockDirection:r=!1,axis:i=void 0}){const o=la(t,n?3:r||i?1:0);return this.filterTaps=n,o},swipeVelocity(t=_B){return la(t)},swipeDistance(t=VB){return la(t)},swipeDuration(t=$B){return t},delay(t=0){switch(t){case!0:return LB;case!1:return 0;default:return t}}};function zB(t){return $5(t,jB)}function UB(t={}){return $5(t,HB)}function ZB({domTarget:t,eventOptions:e,window:n,enabled:r,...i}){const o=zB({domTarget:t,eventOptions:e,window:n,enabled:r});return o.drag=UB(i),o}function qB(t,e,n={}){const r=WB(t),i=new fB(r);return i.config=e,i.handlers=t,i.nativeRefs=n,a.getCurrentInstance()&&!e.manual&&(a.onMounted(i.bind),a.onUnmounted(i.clean)),i}function WB(t){const e=new Set;return t.drag&&e.add(Nl.get("drag")),t.wheel&&e.add(Nl.get("wheel")),t.scroll&&e.add(Nl.get("scroll")),t.move&&e.add(Nl.get("move")),t.pinch&&e.add(Nl.get("pinch")),t.hover&&e.add(Nl.get("hover")),e}function F5(t,e={}){Nl.set("drag",xB);const n=a.ref();return n.value||(n.value=PB(ZB,BB)),qB({drag:t},n.value(e))}let GB=Symbol("headlessui.useid"),KB=0;function YB(){return a.inject(GB,()=>`${++KB}`)()}function Yb(t){var e;if(t==null||t.value==null)return null;let n=(e=t.value.$el)!=null?e:t.value;return n instanceof Node?n:null}function t1(t,e,...n){if(t in e){let i=e[t];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,t1),r}var QB=Object.defineProperty,XB=(t,e,n)=>e in t?QB(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Qb=(t,e,n)=>(XB(t,typeof e!="symbol"?e+"":e,n),n);let JB=class{constructor(){Qb(this,"current",this.detect()),Qb(this,"currentId",0)}set(e){this.current!==e&&(this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},eL=new JB;var Xb=(t=>(t[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t))(Xb||{}),ca=(t=>(t[t.Unmount=0]="Unmount",t[t.Hidden=1]="Hidden",t))(ca||{});function Jb({visible:t=!0,features:e=0,ourProps:n,theirProps:r,...i}){var o;let s=tw(r,n),l=Object.assign(i,{props:s});if(t||e&2&&s.static)return j5(l);if(e&1){let c=(o=s.unmount)==null||o?0:1;return t1(c,{0(){return null},1(){return j5({...i,props:{...s,hidden:!0,style:{display:"none"}}})}})}return j5(l)}function j5({props:t,attrs:e,slots:n,slot:r,name:i}){var o,s;let{as:l,...c}=nw(t,["unmount","static"]),d=(o=n.default)==null?void 0:o.call(n,r),u={};if(r){let f=!1,h=[];for(let[p,g]of Object.entries(r))typeof g=="boolean"&&(f=!0),g===!0&&h.push(p);f&&(u["data-headlessui-state"]=h.join(" "))}if(l==="template"){if(d=ew(d??[]),Object.keys(c).length>0||Object.keys(e).length>0){let[f,...h]=d??[];if(!tL(f)||h.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${i} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(e)).map(b=>b.trim()).filter((b,y,w)=>w.indexOf(b)===y).sort((b,y)=>b.localeCompare(y)).map(b=>` - ${b}`).join(`
1
+ (function(le,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(le=typeof globalThis<"u"?globalThis:le||self,a(le.QuoreUI={},le.Vue))})(this,function(le,a){"use strict";var qme=Object.defineProperty;var cx=le=>{throw TypeError(le)};var Wme=(le,a,pt)=>a in le?qme(le,a,{enumerable:!0,configurable:!0,writable:!0,value:pt}):le[a]=pt;var Me=(le,a,pt)=>Wme(le,typeof a!="symbol"?a+"":a,pt),B9=(le,a,pt)=>a.has(le)||cx("Cannot "+pt);var m=(le,a,pt)=>(B9(le,a,"read from private field"),pt?pt.call(le):a.get(le)),I=(le,a,pt)=>a.has(le)?cx("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(le):a.set(le,pt),M=(le,a,pt,V2)=>(B9(le,a,"write to private field"),V2?V2.call(le,pt):a.set(le,pt),pt),O=(le,a,pt)=>(B9(le,a,"access private method"),pt);var dr=(le,a,pt,V2)=>({set _(Se){M(le,a,Se,pt)},get _(){return m(le,a,V2)}});var Os,o5,L9,Of,Xa,O0,Yi,D0,Df,Nf,Vg,dx,ir,ux,fx,s5,hx,R9,xf,N0,x0,Ja,px,mx,gx,$g,$c,Pf,Hn,Fc,a5,jt,el,Bf,Dt,sx,Fg,yx,jc,Wr,en,An,Hc,Ns,zc,Ai,tl,P0,Uc,B0,Lo,Qi,L0,Lf,Rf,Zc,_f,Ro,nl,qc,rl,_o,Hg,il,Vf,ol,R0,$f,Ff,hn,it,xs,_0,jf,Hf,sl,Vo,Ps,zf,Ti,de,l5,_9,bx,wx,c5,vx,Cx,kx,V9,Sx,$9,F9,Ex,ur,sa,Mx,Ax,j9,Tx,tp,H9,pn,$o,Xi,Gc,Fo,Gr,Kc,jo,Dr,Bs,V0,Ho,al,Ji,np,d5,Uf,$0,Zf,qf,Wf,Gf,Kf,Yc,Ls,F0,ll,Rs,Ix,Ox,z9,j0,eo,vt,Qc,cl,Yf,H0,Tn,z0,_s,dl,Qf,U0,Kr,Xf,Z0,Vs,zo,Xc,Jc,Ii,q0,Jf,zg,Ee,U9,eh,Z9,u5,Dx,Nx,q9,f5,W9,xx,Px,Bx,G9,Lx,K9,Rx,_x,Vx,Y9,rp,W0,G0,mn,Ug,$x,th,ed,td,Oi,Fx,jx,Hx,h5,nh,to,Q9,X9,J9,rh,ih,K0,oh,sh,ah,lh,nd,ul,ot,rd,id,ch,eb,ax,fl,Nr,dh,uh,Y0,$s,fh,hh,Q0,od,sd,hl,ad,ph,ld,X0,mh,gh,J0,e2,yh,pl,cd,Fs,zx,Ux,tb,Yr,p5,nb,Zx,qx,t2,dd,js,Hs,zn,n2,r2,pe,Wn,ip,Wd,m5,Gd,Wx,rb,Kd,op,sp,ib,ap,lx,qg,ml,zs,Di,Yd,g5,Us,Gg,Kg,i2,o2,ud,y5,fd,b5,Zs,Uo,hd,pd,qs,s2,lp,Qr,bh,ob,gl,yl,a2,c2,md,gd,wh,sb,Xr,L2,Gx,Kx,yd,Yg,Qg,bd,d2,Lt,Ws,wd,vh,Ch,vd,Gs,no,Ks,kh,Ys,Sh,u2,f2,ct,w5,ab,Yx,Qx,Xx,Jx,v5,C5,lb,Eh,Mh,Ah,Th,Ih,h2,Oh,cb,Dh,Nh,db,xh,p2,m2,Ph,g2,eP,ub,ro,Jr,Bh,y2,ei,Xt,tP,nP,rP,k5,Qs,S5,E5,iP,fb,oP,ti,io,Cd,kd,Zo,He,b2,w2,Lh,Rh,Sd,Ed,bl,_h,Xg,Jg,nn,cp,sP,aP,lP,cP,dP,uP,Md,v2,Js,Vh,ni,$h,Ht,e5,fP,Fh,jh,wl,oo,sr,hP,M5,pP,mP,hb,Hh,Ad,so,C2,Td,rn,zh,Id,Uh,Zh,vl,ao,Od,qh,dt,pb,mb,gb,R2,gP,Dl,Dd,Wh,ea,k2,Nd,Pr,Gh,Kh,S2,Ni,ri,In,xd,ta,Un,Pd,xi,Yh,Be,yb,A5,yP,bP,wP,bb,_2,Pi,Qd,vP,T5,dp,CP,kP,SP,EP,MP,E2,ii,Bd,gn,M2,A2,Cl,kl,Sl,T2,Qe,wb,vb,Cb,up,AP,I5,fp,Xd,qo,yn,bn,I2,Ld,ar,On,Bi,O2,D2,N2,Rd,O5,lr,Qh,Xh,oi,Wo,Go,_d,Vd,$d,Dn,aa,TP,IP,OP,Fd,t5,DP,Nt,Nn,El,na,Ml,Hd,Ko,Yo,si,zd,Je,hp,pp,D5,kb,N5,Sb,x5,NP,x2,Ud,Qo,Al,ra,Li,Tl,Zd,P2,lo,ia,Zn,oa,ve,Il,Mt,xP,ns,Eb,Mb,P5,uo,ep,cr,B2,n5,PP,Xo,Ab,BP,Tb;var pt=typeof document<"u"?document.currentScript:null;const V2=a.defineComponent({name:"QAccordion",props:{modelValue:{type:[Boolean,Number],default:!1},variant:{type:String,default:"white"},triggerText:{type:String,default:""},triggerClass:{type:[String,Array,Object],default:""},contentClass:{type:[String,Array,Object],default:""},chevronClass:{type:[String,Array,Object],default:""},chevronSize:{type:String,default:""}},emits:["update:modelValue"],setup(t,{emit:e,slots:n}){const r=a.computed({get:()=>!!t.modelValue,set:u=>e("update:modelValue",u)}),i=a.computed(()=>!!n.text),o=a.computed(()=>{const u=r.value?"Hide":"Show";return s.value?u:t.triggerText}),s=a.computed(()=>t.variant==="bubble"),l=a.computed(()=>["leading-normal font-bold",{"text-md":t.variant==="white"},{"text-base":t.variant==="gray"},{"flex-grow":t.variant!=="bubble"},{"flex-shrink mr-2 text-gray-40 text-sm":t.variant==="bubble"}]),c=a.computed(()=>t.chevronSize||(s.value?"sm":"md"));return{show:r,hasTextSlot:i,triggerTextClasses:l,isBubbleAccordion:s,triggerTextValue:o,triggerIconSize:c,onToggle:()=>{r.value=!r.value}}}}),Se=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},_P=["value"],VP={key:0,class:"flex-grow border-t border-gray-20"},$P={key:1,class:"flex-grow border-t border-gray-20"};function FP(t,e,n,r,i,o){const s=a.resolveComponent("q-icon");return a.openBlock(),a.createElementBlock("div",{value:t.modelValue,class:a.normalizeClass(["accordion","accordion-"+t.variant,{"is-open":!!t.modelValue}])},[a.renderSlot(t.$slots,"toggle",a.normalizeProps(a.guardReactiveProps({onToggle:t.onToggle})),()=>[a.createElementVNode("div",{class:a.normalizeClass(["accordion-trigger",t.triggerClass,{"py-5":t.isBubbleAccordion}]),onClick:e[0]||(e[0]=(...l)=>t.onToggle&&t.onToggle(...l))},[t.isBubbleAccordion?(a.openBlock(),a.createElementBlock("div",VP)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["flex items-center",{"w-full":!t.isBubbleAccordion},{"border border-gray-20 rounded-full px-8 py-2 w-32":t.isBubbleAccordion}])},[t.hasTextSlot?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(t.triggerTextClasses)},[a.renderSlot(t.$slots,"text",{},void 0,!0)],2)):(a.openBlock(),a.createElementBlock("h4",{key:1,class:a.normalizeClass(t.triggerTextClasses)},a.toDisplayString(t.triggerTextValue),3)),a.renderSlot(t.$slots,"additionalInfo",{},void 0,!0),a.createVNode(s,{icon:"chevron-down",color:"gray-40",size:t.triggerIconSize,type:"",class:a.normalizeClass(["shrink-0 mr-4",t.chevronClass,{open:!!t.show}])},null,8,["size","class"])],2),t.isBubbleAccordion?(a.openBlock(),a.createElementBlock("div",$P)):a.createCommentVNode("",!0)],2)],!0),a.createVNode(a.Transition,{name:"slide-down"},{default:a.withCtx(()=>[t.show?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["accordion-content",t.contentClass,{"p-0":t.variant==="custom"}])},[a.renderSlot(t.$slots,"content",{},void 0,!0)],2)):a.createCommentVNode("",!0)]),_:3})],10,_P)}const jP=Se(V2,[["render",FP],["__scopeId","data-v-c7b4341d"]]),HP=a.defineComponent({name:"QActivityItem",props:{type:{type:String,default:"history"},text:{type:String,default:""},time:{type:String,default:""},isClickable:{type:Boolean,default:!1},wrapTime:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:e}){const n=a.computed(()=>{switch(t.type){case"complaint":return"face-sad";case"fail":return"close";case"na":return"na";case"pass":return"check";case"repair":return"minus";case"request":return"bell-concierge";case"satisfaction-call":return"phone-plus";case"task":return"tasks";case"work-order":return"hammer";default:return"history"}}),r=a.computed(()=>t.type==="history"),i=a.computed(()=>t.type==="task");return{props:t,isHistory:r,isLineIcon:i,typeIcon:n,handleClick:()=>{e("click")}}}}),zP=["role"],UP={class:"activity-item__content-wrapper"},ZP={key:0},qP={class:"activity-item__content-text"},WP={key:0},GP={key:0,class:"activity-item__time"},KP={key:0};function YP(t,e,n,r,i,o){const s=a.resolveComponent("q-icon");return a.openBlock(),a.createElementBlock("div",{role:t.isClickable?"button":void 0,class:a.normalizeClass(["activity-item",{"bg-gray-0":!t.isHistory,"hover:bg-gray-7":t.isClickable,"activity-item--wrap-time":t.props.wrapTime}]),onClick:e[0]||(e[0]=(...l)=>t.handleClick&&t.handleClick(...l))},[a.createElementVNode("div",{class:a.normalizeClass(["activity-item__content",{"items-center":!t.props.wrapTime}])},[a.createElementVNode("div",{class:a.normalizeClass(["flex justify-center items-center rounded w-6 h-6 shrink-0","activity-item__content-icon-"+t.props.type,{"mt-5":t.props.wrapTime}])},[a.createVNode(s,{icon:t.typeIcon,type:t.isLineIcon?"line":"fill",size:"sm",color:"white"},null,8,["icon","type"])],2),a.createElementVNode("div",UP,[t.props.wrapTime?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["activity-item__time",{"mb-1":t.props.wrapTime}])},[t.props.time?(a.openBlock(),a.createElementBlock("span",ZP,a.toDisplayString(t.props.time),1)):a.renderSlot(t.$slots,"time",{key:1},void 0,!0)],2)):a.createCommentVNode("",!0),a.createElementVNode("div",qP,[t.props.text?(a.openBlock(),a.createElementBlock("span",WP,a.toDisplayString(t.props.text),1)):a.renderSlot(t.$slots,"text",{key:1},void 0,!0)])])],2),t.props.wrapTime?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",GP,[t.props.time?(a.openBlock(),a.createElementBlock("span",KP,a.toDisplayString(t.props.time),1)):a.renderSlot(t.$slots,"time",{key:1},void 0,!0)]))],10,zP)}const Nb=Se(HP,[["render",YP],["__scopeId","data-v-5b11e7f3"]]),QP=a.defineComponent({name:"QAvatar",props:{size:{type:String,default:"sm"},text:{type:[String],default:""},bgColor:{type:String,default:"teal-20"},src:{type:String,default:""}},setup(){const t=a.ref(!0),e=a.ref(!1);return{validSrc:t,isLoaded:e,onImageLoad:()=>{e.value=!0},onImageError:()=>{t.value=!1}}}}),XP={class:"avatar-text"},JP=["src"];function eB(t,e,n,r,i,o){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["avatar flex justify-center items-center",[`avatar-${t.size}`,`bg-${t.bgColor}`]])},[a.createElementVNode("span",XP,a.toDisplayString(t.text),1),t.src&&t.validSrc?(a.openBlock(),a.createElementBlock("img",{key:0,class:"avatar-image",src:t.src,onLoad:e[0]||(e[0]=(...s)=>t.onImageLoad&&t.onImageLoad(...s)),onError:e[1]||(e[1]=(...s)=>t.onImageError&&t.onImageError(...s))},null,40,JP)):a.createCommentVNode("",!0)],2)}const xb=Se(QP,[["render",eB],["__scopeId","data-v-ebde1d6f"]]),tB=a.defineComponent({props:{backgroundColor:{type:String,default:"blue-20"},textColor:{type:String,default:"white"}}}),nB={class:"banner-text mb-0"};function rB(t,e,n,r,i,o){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["q-banner flex","bg-"+t.backgroundColor,"text-"+t.textColor]),onClick:e[0]||(e[0]=s=>t.$emit("bannerClick"))},[a.createElementVNode("p",nB,[a.renderSlot(t.$slots,"default",{},void 0,!0)])],2)}const iB=Se(tB,[["render",rB],["__scopeId","data-v-8edf76be"]]),oB=a.defineComponent({name:"QBadge",props:{color:{type:String,default:""},shape:{type:String,default:"circle"}},setup(t,e){const n=a.computed(function(){return t.color?`bg-${t.color}`:""}),r=a.computed(function(){return!!e.slots.icon});return{bgColor:n,hasIcon:r}}}),sB={key:1,class:"badge-text"};function aB(t,e,n,r,i,o){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["badge",t.shape,t.bgColor])},[t.hasIcon?a.renderSlot(t.$slots,"icon",{key:0},void 0,!0):(a.openBlock(),a.createElementBlock("p",sB,[a.renderSlot(t.$slots,"text",{},void 0,!0)]))],2)}const rs=Se(oB,[["render",aB],["__scopeId","data-v-c8e6730f"]]);function lB(){try{return"constructor"in GestureEvent}catch{return!1}}function Pb(){return typeof window<"u"&&"ontouchstart"in window}function Bb(t){return"pointerId"in t?null:t.type==="touchend"?t.changedTouches:t.targetTouches}function Lb(t){return Array.from(Bb(t)).map(e=>e.identifier)}function Rb(t){const e="buttons"in t?t.buttons:0,{shiftKey:n,altKey:r,metaKey:i,ctrlKey:o}=t;return{buttons:e,shiftKey:n,altKey:r,metaKey:i,ctrlKey:o}}const cB=t=>t;function _b(t,e=cB){const n=Bb(t),{clientX:r,clientY:i}=n?n[0]:t;return e([r,i])}function Vb(){}function $b(...t){return t.length===0?Vb:t.length===1?t[0]:function(){var e;for(let n of t)e=n.apply(this,arguments)||e;return e}}function la(t,e){if(t===void 0){if(e===void 0)throw new Error("Must define fallback value if undefined is expected");t=e}return Array.isArray(t)?t:[t,t]}function Fb(t,...e){return typeof t=="function"?t(...e):t}function Jd(t){return{_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_lastEventType:void 0,_dragStarted:!1,_dragPreventScroll:!1,_dragIsTap:!0,_dragDelayed:!1,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:Vb,canceled:!1,memo:void 0,args:void 0,...t}}function B5(){const t={hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1,locked:!1},e=Jd({_pointerId:void 0,axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,tap:!1,swipe:[0,0]}),n=Jd({_pointerIds:[],da:[0,0],vdva:[0,0],origin:void 0,turns:0}),r=Jd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),i=Jd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),o=Jd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0});return{shared:t,drag:e,pinch:n,wheel:r,move:i,scroll:o}}var dB=Object.defineProperty,uB=(t,e,n)=>e in t?dB(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,fr=(t,e,n)=>(uB(t,typeof e!="symbol"?e+"":e,n),n);class fB{constructor(e){this.classes=e,fr(this,"nativeRefs"),fr(this,"config"),fr(this,"handlers"),fr(this,"state"),fr(this,"timeouts"),fr(this,"domListeners"),fr(this,"windowListeners"),fr(this,"pointerIds",new Set),fr(this,"touchIds",new Set),fr(this,"supportsTouchEvents",Pb()),fr(this,"supportsGestureEvents",lB()),fr(this,"bind",(...n)=>{const r={};for(let i of this.classes)new i(this,n).addBindings(r);for(let i in this.nativeRefs)po(r,i,o=>this.nativeRefs[i]({...this.state.shared,event:o,args:n}));return this.config.domTarget?bB(this,r):wB(this,r)}),fr(this,"clean",()=>{const{eventOptions:n,domTarget:r}=this.config,i=a.unref(r);i&&e1(i,jb(this.domListeners),n),Object.values(this.timeouts).forEach(clearTimeout),mB(this)}),fr(this,"reset",()=>{this.state=B5()}),this.classes=e,this.state=B5(),this.timeouts={},this.domListeners=[],this.windowListeners={}}}function hB(t,e){"pointerId"in e?t.pointerIds.add(e.pointerId):t.touchIds=new Set(Lb(e))}function pB(t,e){"pointerId"in e?t.pointerIds.delete(e.pointerId):Lb(e).forEach(n=>t.touchIds.delete(n))}function mB(t){const{config:{window:e,eventOptions:n},windowListeners:r}=t,i=a.unref(e);if(i){for(let o in r){const s=r[o];e1(i,s,n)}t.windowListeners={}}}function gB({config:t,windowListeners:e},n,r=t.eventOptions){const i=a.unref(t.window);i&&(e1(i,e[n],r),delete e[n])}function yB({config:t,windowListeners:e},n,r=[],i=t.eventOptions){const o=a.unref(t.window);o&&(e1(o,e[n],i),Hb(o,e[n]=r,i))}function bB({config:t,domListeners:e},n){const{eventOptions:r,domTarget:i}=t,o=a.unref(i);if(!o)throw new Error("domTarget must be defined");e1(o,jb(e),r);for(let[s,l]of Object.entries(n)){const c=s.slice(2).toLowerCase();e.push([c,$b(...l)])}Hb(o,e,r)}function wB({config:t},e){const n={},r=t.eventOptions.capture?"Capture":"";for(let[i,o]of Object.entries(e)){const s=Array.isArray(o)?o:[o],l=i+r;n[l]=$b(...s)}return n}function jb(t=[]){return t.splice(0,t.length)}function po(t,e,n){t[e]||(t[e]=[]),t[e].push(n)}function Hb(t,e=[],n={}){if(t)for(let[r,i]of e)t.addEventListener(r,i,n)}function e1(t,e=[],n={}){if(t)for(let[r,i]of e)t.removeEventListener(r,i,n)}function L5(t,e){return t.map((n,r)=>n+e[r])}function zb(t,e){return t.map((n,r)=>n-e[r])}function R5(t){return Math.hypot(...t)}function vB(t,e,n){const r=R5(e),i=r===0?0:1/r,o=n===0?0:1/n,s=o*r,l=e.map(u=>o*u),c=e.map(u=>i*u),d=R5(t);return{velocities:l,velocity:s,distance:d,direction:c}}function _5(t){return Math.sign?Math.sign(t):+(t>0)-+(t<0)||+t}function CB(t,e,n){return Math.max(e,Math.min(t,n))}function kB(t,e){return Math.pow(t,e*5)}function Ub(t,e,n){return e===0||Math.abs(e)===1/0?kB(t,n):t*e*n/(e+n*t)}function Zb(t,e,n,r=.15){return r===0?CB(t,e,n):t<e?-Ub(e-t,n-e,r)+e:t>n?+Ub(t-n,n-e,r)+n:t}var SB=Object.defineProperty,EB=(t,e,n)=>e in t?SB(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,mp=(t,e,n)=>(EB(t,typeof e!="symbol"?e+"":e,n),n);const Nl=new Map,MB=t=>t;class AB{constructor(e,n=[]){this.controller=e,this.args=n,mp(this,"debounced",!0),mp(this,"setTimeout",(r,i=140,...o)=>{clearTimeout(this.controller.timeouts[this.stateKey]),this.controller.timeouts[this.stateKey]=window.setTimeout(r,i,...o)}),mp(this,"clearTimeout",()=>{clearTimeout(this.controller.timeouts[this.stateKey])}),mp(this,"fireGestureHandler",(r=!1)=>{if(this.state._blocked)return this.debounced||(this.state._active=!1,this.clean()),null;if(!r&&!this.state.intentional&&!this.config.triggerAllEvents)return null;if(this.state.intentional){const c=this.state.active,d=this.state._active;this.state.active=d,this.state.first=d&&!c,this.state.last=c&&!d,this.controller.state.shared[this.ingKey]=d}const i=this.controller.pointerIds.size||this.controller.touchIds.size,o=this.controller.state.shared.buttons>0||i>0,s={...this.controller.state.shared,...this.state,...this.mapStateValues(this.state),locked:!!document.pointerLockElement,touches:i,down:o},l=this.handler(s);return this.state.memo=l!==void 0?l:this.state.memo,s}),this.controller=e,this.args=n}get config(){return this.controller.config[this.stateKey]}get enabled(){return this.controller.config.enabled&&this.config.enabled}get state(){return this.controller.state[this.stateKey]}get handler(){return this.controller.handlers[this.stateKey]}get transform(){return this.config.transform||this.controller.config.transform||MB}updateSharedState(e){Object.assign(this.controller.state.shared,e)}updateGestureState(e){Object.assign(this.state,e)}checkIntentionality(e,n){return{_intentional:e,_blocked:!1}}getMovement(e){const{rubberband:n,threshold:r}=this.config,{_bounds:i,_initial:o,_active:s,_intentional:l,lastOffset:c,movement:d}=this.state,u=this.getInternalMovement(e,this.state),f=this.transform(r).map(Math.abs),h=l[0]===!1?qb(u[0],f[0]):l[0],p=l[1]===!1?qb(u[1],f[1]):l[1],g=this.checkIntentionality([h,p],u);if(g._blocked)return{...g,_movement:u,delta:[0,0]};const b=g._intentional,y=u;let w=[b[0]!==!1?u[0]-b[0]:0,b[1]!==!1?u[1]-b[1]:0];const v=L5(w,c),k=s?n:[0,0];return w=Wb(i,L5(w,o),k),{...g,intentional:b[0]!==!1||b[1]!==!1,_initial:o,_movement:y,movement:w,values:e,offset:Wb(i,v,k),delta:zb(w,d)}}clean(){this.clearTimeout()}}function qb(t,e){return Math.abs(t)>=e?_5(t)*e:!1}function Wb(t,[e,n],[r,i]){const[[o,s],[l,c]]=t;return[Zb(e,o,s,r),Zb(n,l,c,i)]}function V5({state:t},e,n){const{timeStamp:r,type:i}=e,o=t.values,s=n?0:r-t.startTime;return{_lastEventType:i,event:e,timeStamp:r,elapsedTime:s,previous:o}}function TB({state:t,config:e,stateKey:n,args:r},i,o){const s=t.offset,l=o.timeStamp,{initial:c,bounds:d}=e,u={...B5()[n],_active:!0,args:r,values:i,initial:i,offset:s,lastOffset:s,startTime:l};return{...u,_initial:Fb(c,u),_bounds:Fb(d,u)}}class IB extends AB{getInternalMovement(e,n){return zb(e,n.initial)}checkIntentionality(e,n){if(e[0]===!1&&e[1]===!1)return{_intentional:e,axis:this.state.axis};const[r,i]=n.map(Math.abs),o=this.state.axis||(r>i?"x":r<i?"y":void 0);return!this.config.axis&&!this.config.lockDirection?{_intentional:e,_blocked:!1,axis:o}:o?this.config.axis&&o!==this.config.axis?{_intentional:e,_blocked:!0,axis:o}:(e[o==="x"?1:0]=!1,{_intentional:e,_blocked:!1,axis:o}):{_intentional:[!1,!1],_blocked:!1,axis:o}}getKinematics(e,n){const r=this.getMovement(e);if(!r._blocked){const i=n.timeStamp-this.state.timeStamp;Object.assign(r,vB(r.movement,r.delta,i))}return r}mapStateValues(e){return{xy:e.values,vxvy:e.velocities}}}var OB=Object.defineProperty,DB=(t,e,n)=>e in t?OB(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,vn=(t,e,n)=>(DB(t,typeof e!="symbol"?e+"":e,n),n);const NB=3;function Gb(t){"persist"in t&&typeof t.persist=="function"&&t.persist()}class xB extends IB{constructor(){super(...arguments),vn(this,"ingKey","dragging"),vn(this,"stateKey","drag"),vn(this,"setPointerCapture",e=>{if(this.config.useTouch||document.pointerLockElement)return;const{target:n,pointerId:r}=e;n&&"setPointerCapture"in n&&n.setPointerCapture(r),this.updateGestureState({_dragTarget:n,_dragPointerId:r})}),vn(this,"releasePointerCapture",()=>{if(this.config.useTouch||document.pointerLockElement)return;const{_dragTarget:e,_dragPointerId:n}=this.state;if(n&&e&&"releasePointerCapture"in e&&(!("hasPointerCapture"in e)||e.hasPointerCapture(n)))try{e.releasePointerCapture(n)}catch{}}),vn(this,"preventScroll",e=>{this.state._dragPreventScroll&&e.cancelable&&e.preventDefault()}),vn(this,"getEventId",e=>this.config.useTouch?e.changedTouches[0].identifier:e.pointerId),vn(this,"isValidEvent",e=>this.state._pointerId===this.getEventId(e)),vn(this,"shouldPreventWindowScrollY",this.config.preventWindowScrollY&&this.controller.supportsTouchEvents),vn(this,"setUpWindowScrollDetection",e=>{Gb(e),yB(this.controller,this.stateKey,[["touchmove",this.preventScroll],["touchend",this.clean.bind(this)],["touchcancel",this.clean.bind(this)]],{passive:!1}),this.setTimeout(this.startDrag.bind(this),250,e)}),vn(this,"setUpDelayedDragTrigger",e=>{this.state._dragDelayed=!0,Gb(e),this.setTimeout(this.startDrag.bind(this),this.config.delay,e)}),vn(this,"setStartState",e=>{const n=_b(e,this.transform);this.updateSharedState(Rb(e)),this.updateGestureState({...TB(this,n,e),...V5(this,e,!0),_pointerId:this.getEventId(e)}),this.updateGestureState(this.getMovement(n))}),vn(this,"onDragStart",e=>{hB(this.controller,e),!(!this.enabled||this.state._active)&&(this.setStartState(e),this.setPointerCapture(e),this.shouldPreventWindowScrollY?this.setUpWindowScrollDetection(e):this.config.delay>0?this.setUpDelayedDragTrigger(e):this.startDrag(e,!0))}),vn(this,"onDragChange",e=>{if(this.state.canceled||!this.state._active||!this.isValidEvent(e)||this.state._lastEventType===e.type&&e.timeStamp===this.state.timeStamp)return;let n;if(document.pointerLockElement){const{movementX:c,movementY:d}=e;n=L5(this.transform([c,d]),this.state.values)}else n=_b(e,this.transform);const r=this.getKinematics(n,e);if(!this.state._dragStarted){if(this.state._dragDelayed){this.startDrag(e);return}if(this.shouldPreventWindowScrollY)if(!this.state._dragPreventScroll&&r.axis)if(r.axis==="x")this.startDrag(e);else{this.state._active=!1;return}else return;else return}const i=Rb(e);this.updateSharedState(i);const o=V5(this,e),s=R5(r._movement);let{_dragIsTap:l}=this.state;l&&s>=NB&&(l=!1),this.updateGestureState({...o,...r,_dragIsTap:l}),this.fireGestureHandler()}),vn(this,"onDragEnd",e=>{if(pB(this.controller,e),!this.isValidEvent(e)||(this.clean(),!this.state._active))return;this.state._active=!1;const n=this.state._dragIsTap,[r,i]=this.state.velocities,[o,s]=this.state.movement,[l,c]=this.state._intentional,[d,u]=this.config.swipeVelocity,[f,h]=this.config.swipeDistance,p=this.config.swipeDuration,g={...V5(this,e),...this.getMovement(this.state.values)},b=[0,0];g.elapsedTime<p&&(l!==!1&&Math.abs(r)>d&&Math.abs(o)>f&&(b[0]=_5(r)),c!==!1&&Math.abs(i)>u&&Math.abs(s)>h&&(b[1]=_5(i))),this.updateSharedState({buttons:0}),this.updateGestureState({...g,tap:n,swipe:b}),this.fireGestureHandler(this.config.filterTaps&&n===!0)}),vn(this,"clean",()=>{super.clean(),this.state._dragStarted=!1,this.releasePointerCapture(),gB(this.controller,this.stateKey)}),vn(this,"onCancel",()=>{this.state.canceled||(this.updateGestureState({canceled:!0,_active:!1}),this.updateSharedState({buttons:0}),a.nextTick(this.fireGestureHandler))}),vn(this,"onClick",e=>{this.state._dragIsTap||e.stopPropagation()})}startDrag(e,n=!1){!this.state._active||this.state._dragStarted||(n||this.setStartState(e),this.updateGestureState({_dragStarted:!0,_dragPreventScroll:!0,cancel:this.onCancel}),this.clearTimeout(),this.fireGestureHandler())}addBindings(e){if(this.config.useTouch?(po(e,"onTouchStart",this.onDragStart),po(e,"onTouchMove",this.onDragChange),po(e,"onTouchEnd",this.onDragEnd),po(e,"onTouchCancel",this.onDragEnd)):(po(e,"onPointerDown",this.onDragStart),po(e,"onPointerMove",this.onDragChange),po(e,"onPointerUp",this.onDragEnd),po(e,"onPointerCancel",this.onDragEnd)),this.config.filterTaps){const n=this.controller.config.eventOptions.capture?"onClick":"onClickCapture";po(e,n,this.onClick)}}}function PB(t,e){let n,r=[],i,o=!1;function s(...l){return o&&n===this&&e(l,r)||(i=t.apply(this,l),o=!0,n=this,r=l),i}return s}function gp(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let n,r,i;if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!gp(t[r],e[r]))return!1;return!0}let o;if(typeof Map=="function"&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o=t.entries();!(r=o.next()).done;)if(!e.has(r.value[0]))return!1;for(o=t.entries();!(r=o.next()).done;)if(!gp(r.value[1],e.get(r.value[0])))return!1;return!0}if(typeof Set=="function"&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o=t.entries();!(r=o.next()).done;)if(!e.has(r.value[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;if(typeof Element<"u"&&t instanceof Element)return!1;for(r=n;r--!==0;)if(!(i[r]==="_owner"&&t.$$typeof)&&!gp(t[i[r]],e[i[r]]))return!1;return!0}return t!==t&&e!==e}function BB(t,e){try{return gp(t,e)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}function $5(t={},e){const n={};for(const[r,i]of Object.entries(e))switch(typeof i){case"function":n[r]=i.call(n,t[r],r,t);break;case"object":n[r]=$5(t[r],i);break;case"boolean":i&&(n[r]=t[r]);break}return n}const LB=180,RB=.15,_B=.5,VB=50,$B=250,Kb={...{threshold(t=0){return la(t)},rubberband(t=0){switch(t){case!0:return la(RB);case!1:return la(0);default:return la(t)}},enabled(t=!0){return t},triggerAllEvents(t=!1){return t},initial(t=0){return typeof t=="function"?t:la(t)},transform:!0},axis:!0,lockDirection(t=!1){return t},bounds(t={}){if(typeof t=="function")return o=>Kb.bounds(t(o));const{left:e=-1/0,right:n=1/0,top:r=-1/0,bottom:i=1/0}=t;return[[e,n],[r,i]]}},FB=typeof window<"u"&&window.document&&window.document.createElement,jB={enabled(t=!0){return t},domTarget:!0,window(t=FB?window:void 0){return t},eventOptions({passive:t=!0,capture:e=!1}={}){return{passive:t,capture:e}},transform:!0},HB={...Kb,useTouch(t=!0){return t&&Pb()},preventWindowScrollY(t=!1){return t},threshold(t,e,{filterTaps:n=!1,lockDirection:r=!1,axis:i=void 0}){const o=la(t,n?3:r||i?1:0);return this.filterTaps=n,o},swipeVelocity(t=_B){return la(t)},swipeDistance(t=VB){return la(t)},swipeDuration(t=$B){return t},delay(t=0){switch(t){case!0:return LB;case!1:return 0;default:return t}}};function zB(t){return $5(t,jB)}function UB(t={}){return $5(t,HB)}function ZB({domTarget:t,eventOptions:e,window:n,enabled:r,...i}){const o=zB({domTarget:t,eventOptions:e,window:n,enabled:r});return o.drag=UB(i),o}function qB(t,e,n={}){const r=WB(t),i=new fB(r);return i.config=e,i.handlers=t,i.nativeRefs=n,a.getCurrentInstance()&&!e.manual&&(a.onMounted(i.bind),a.onUnmounted(i.clean)),i}function WB(t){const e=new Set;return t.drag&&e.add(Nl.get("drag")),t.wheel&&e.add(Nl.get("wheel")),t.scroll&&e.add(Nl.get("scroll")),t.move&&e.add(Nl.get("move")),t.pinch&&e.add(Nl.get("pinch")),t.hover&&e.add(Nl.get("hover")),e}function F5(t,e={}){Nl.set("drag",xB);const n=a.ref();return n.value||(n.value=PB(ZB,BB)),qB({drag:t},n.value(e))}let GB=Symbol("headlessui.useid"),KB=0;function YB(){return a.inject(GB,()=>`${++KB}`)()}function Yb(t){var e;if(t==null||t.value==null)return null;let n=(e=t.value.$el)!=null?e:t.value;return n instanceof Node?n:null}function t1(t,e,...n){if(t in e){let i=e[t];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,t1),r}var QB=Object.defineProperty,XB=(t,e,n)=>e in t?QB(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Qb=(t,e,n)=>(XB(t,typeof e!="symbol"?e+"":e,n),n);let JB=class{constructor(){Qb(this,"current",this.detect()),Qb(this,"currentId",0)}set(e){this.current!==e&&(this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},eL=new JB;var Xb=(t=>(t[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t))(Xb||{}),ca=(t=>(t[t.Unmount=0]="Unmount",t[t.Hidden=1]="Hidden",t))(ca||{});function Jb({visible:t=!0,features:e=0,ourProps:n,theirProps:r,...i}){var o;let s=tw(r,n),l=Object.assign(i,{props:s});if(t||e&2&&s.static)return j5(l);if(e&1){let c=(o=s.unmount)==null||o?0:1;return t1(c,{0(){return null},1(){return j5({...i,props:{...s,hidden:!0,style:{display:"none"}}})}})}return j5(l)}function j5({props:t,attrs:e,slots:n,slot:r,name:i}){var o,s;let{as:l,...c}=nw(t,["unmount","static"]),d=(o=n.default)==null?void 0:o.call(n,r),u={};if(r){let f=!1,h=[];for(let[p,g]of Object.entries(r))typeof g=="boolean"&&(f=!0),g===!0&&h.push(p);f&&(u["data-headlessui-state"]=h.join(" "))}if(l==="template"){if(d=ew(d??[]),Object.keys(c).length>0||Object.keys(e).length>0){let[f,...h]=d??[];if(!tL(f)||h.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${i} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(e)).map(b=>b.trim()).filter((b,y,w)=>w.indexOf(b)===y).sort((b,y)=>b.localeCompare(y)).map(b=>` - ${b}`).join(`
2
2
  `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(b=>` - ${b}`).join(`
3
3
  `)].join(`
4
4
  `));let p=tw((s=f.props)!=null?s:{},c,u),g=a.cloneVNode(f,p,!0);for(let b in p)b.startsWith("on")&&(g.props||(g.props={}),g.props[b]=p[b]);return g}return Array.isArray(d)&&d.length===1?d[0]:d}return a.h(l,Object.assign({},c,u),{default:()=>d})}function ew(t){return t.flatMap(e=>e.type===a.Fragment?ew(e.children):[e])}function tw(...t){if(t.length===0)return{};if(t.length===1)return t[0];let e={},n={};for(let r of t)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):e[i]=r[i];if(e.disabled||e["aria-disabled"])return Object.assign(e,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(e,{[r](i,...o){let s=n[r];for(let l of s){if(i instanceof Event&&i.defaultPrevented)return;l(i,...o)}}});return e}function nw(t,e=[]){let n=Object.assign({},t);for(let r of e)r in n&&delete n[r];return n}function tL(t){return t==null?!1:typeof t.type=="string"||typeof t.type=="object"||typeof t.type=="function"}let rw=Symbol("Context");var is=(t=>(t[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t))(is||{});function nL(){return iw()!==null}function iw(){return a.inject(rw,null)}function rL(t){a.provide(rw,t)}function iL(t){typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t).catch(e=>setTimeout(()=>{throw e}))}function H5(){let t=[],e={addEventListener(n,r,i,o){return n.addEventListener(r,i,o),e.add(()=>n.removeEventListener(r,i,o))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);e.add(()=>cancelAnimationFrame(r))},nextFrame(...n){e.requestAnimationFrame(()=>{e.requestAnimationFrame(...n)})},setTimeout(...n){let r=setTimeout(...n);e.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return iL(()=>{r.current&&n[0]()}),e.add(()=>{r.current=!1})},style(n,r,i){let o=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:o})})},group(n){let r=H5();return n(r),this.add(()=>r.dispose())},add(n){return t.push(n),()=>{let r=t.indexOf(n);if(r>=0)for(let i of t.splice(r,1))i()}},dispose(){for(let n of t.splice(0))n()}};return e}function oL(t){let e={called:!1};return(...n)=>{if(!e.called)return e.called=!0,t(...n)}}function z5(t,...e){t&&e.length>0&&t.classList.add(...e)}function yp(t,...e){t&&e.length>0&&t.classList.remove(...e)}var U5=(t=>(t.Finished="finished",t.Cancelled="cancelled",t))(U5||{});function sL(t,e){let n=H5();if(!t)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(t),[o,s]=[r,i].map(l=>{let[c=0]=l.split(",").filter(Boolean).map(d=>d.includes("ms")?parseFloat(d):parseFloat(d)*1e3).sort((d,u)=>u-d);return c});return o!==0?n.setTimeout(()=>e("finished"),o+s):e("finished"),n.add(()=>e("cancelled")),n.dispose}function ow(t,e,n,r,i,o){let s=H5(),l=o!==void 0?oL(o):()=>{};return yp(t,...i),z5(t,...e,...n),s.nextFrame(()=>{yp(t,...n),z5(t,...r),s.add(sL(t,c=>(yp(t,...r,...e),z5(t,...i),l(c))))}),s.add(()=>yp(t,...e,...n,...r,...i)),s.add(()=>l("cancelled")),s.dispose}function xl(t=""){return t.split(/\s+/).filter(e=>e.length>1)}let Z5=Symbol("TransitionContext");var aL=(t=>(t.Visible="visible",t.Hidden="hidden",t))(aL||{});function lL(){return a.inject(Z5,null)!==null}function cL(){let t=a.inject(Z5,null);if(t===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return t}function dL(){let t=a.inject(q5,null);if(t===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return t}let q5=Symbol("NestingContext");function bp(t){return"children"in t?bp(t.children):t.value.filter(({state:e})=>e==="visible").length>0}function sw(t){let e=a.ref([]),n=a.ref(!1);a.onMounted(()=>n.value=!0),a.onUnmounted(()=>n.value=!1);function r(o,s=ca.Hidden){let l=e.value.findIndex(({id:c})=>c===o);l!==-1&&(t1(s,{[ca.Unmount](){e.value.splice(l,1)},[ca.Hidden](){e.value[l].state="hidden"}}),!bp(e)&&n.value&&(t==null||t()))}function i(o){let s=e.value.find(({id:l})=>l===o);return s?s.state!=="visible"&&(s.state="visible"):e.value.push({id:o,state:"visible"}),()=>r(o,ca.Unmount)}return{children:e,register:i,unregister:r}}let aw=Xb.RenderStrategy,uL=a.defineComponent({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(t,{emit:e,attrs:n,slots:r,expose:i}){let o=a.ref(0);function s(){o.value|=is.Opening,e("beforeEnter")}function l(){o.value&=~is.Opening,e("afterEnter")}function c(){o.value|=is.Closing,e("beforeLeave")}function d(){o.value&=~is.Closing,e("afterLeave")}if(!lL()&&nL())return()=>a.h(lw,{...t,onBeforeEnter:s,onAfterEnter:l,onBeforeLeave:c,onAfterLeave:d},r);let u=a.ref(null),f=a.computed(()=>t.unmount?ca.Unmount:ca.Hidden);i({el:u,$el:u});let{show:h,appear:p}=cL(),{register:g,unregister:b}=dL(),y=a.ref(h.value?"visible":"hidden"),w={value:!0},v=YB(),k={value:!1},C=sw(()=>{!k.value&&y.value!=="hidden"&&(y.value="hidden",b(v),d())});a.onMounted(()=>{let U=g(v);a.onUnmounted(U)}),a.watchEffect(()=>{if(f.value===ca.Hidden&&v){if(h.value&&y.value!=="visible"){y.value="visible";return}t1(y.value,{hidden:()=>b(v),visible:()=>g(v)})}});let A=xl(t.enter),S=xl(t.enterFrom),E=xl(t.enterTo),D=xl(t.entered),T=xl(t.leave),x=xl(t.leaveFrom),N=xl(t.leaveTo);a.onMounted(()=>{a.watchEffect(()=>{if(y.value==="visible"){let U=Yb(u);if(U instanceof Comment&&U.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function _(U){let j=w.value&&!p.value,z=Yb(u);!z||!(z instanceof HTMLElement)||j||(k.value=!0,h.value&&s(),h.value||c(),U(h.value?ow(z,A,S,E,D,q=>{k.value=!1,q===U5.Finished&&l()}):ow(z,T,x,N,D,q=>{k.value=!1,q===U5.Finished&&(bp(C)||(y.value="hidden",b(v),d()))})))}return a.onMounted(()=>{a.watch([h],(U,j,z)=>{_(z),w.value=!1},{immediate:!0})}),a.provide(q5,C),rL(a.computed(()=>t1(y.value,{visible:is.Open,hidden:is.Closed})|o.value)),()=>{let{appear:U,show:j,enter:z,enterFrom:q,enterTo:$,entered:X,leave:P,leaveFrom:K,leaveTo:ce,...ne}=t,L={ref:u},V={...ne,...p.value&&h.value&&eL.isServer?{class:a.normalizeClass([n.class,ne.class,...A,...S])}:{}};return Jb({theirProps:V,ourProps:L,slot:{},slots:r,attrs:n,features:aw,visible:y.value==="visible",name:"TransitionChild"})}}}),fL=uL,lw=a.defineComponent({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(t,{emit:e,attrs:n,slots:r}){let i=iw(),o=a.computed(()=>t.show===null&&i!==null?(i.value&is.Open)===is.Open:t.show);a.watchEffect(()=>{if(![!0,!1].includes(o.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});let s=a.ref(o.value?"visible":"hidden"),l=sw(()=>{s.value="hidden"}),c=a.ref(!0),d={show:o,appear:a.computed(()=>t.appear||!c.value)};return a.onMounted(()=>{a.watchEffect(()=>{c.value=!1,o.value?s.value="visible":bp(l)||(s.value="hidden")})}),a.provide(q5,l),a.provide(Z5,d),()=>{let u=nw(t,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),f={unmount:t.unmount};return Jb({ourProps:{...f,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[a.h(fL,{onBeforeEnter:()=>e("beforeEnter"),onAfterEnter:()=>e("afterEnter"),onBeforeLeave:()=>e("beforeLeave"),onAfterLeave:()=>e("afterLeave"),...n,...f,...u},r.default)]},attrs:{},features:aw,visible:s.value==="visible",name:"Transition"})}}});function n1(t){return a.getCurrentScope()?(a.onScopeDispose(t),!0):!1}function Pn(t){return typeof t=="function"?t():a.unref(t)}const W5=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const G5=t=>t!=null,hL=Object.prototype.toString,cw=t=>hL.call(t)==="[object Object]",Gn=()=>{},pL=mL();function mL(){var t,e;return W5&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function dw(t,e){function n(...r){return new Promise((i,o)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(i).catch(o)})}return n}function gL(t,e={}){let n,r,i=Gn;const o=l=>{clearTimeout(l),i(),i=Gn};return l=>{const c=Pn(t),d=Pn(e.maxWait);return n&&o(n),c<=0||d!==void 0&&d<=0?(r&&(o(r),r=null),Promise.resolve(l())):new Promise((u,f)=>{i=e.rejectOnCancel?f:u,d&&!r&&(r=setTimeout(()=>{n&&o(n),r=null,u(l())},d)),n=setTimeout(()=>{r&&o(r),r=null,u(l())},c)})}}function yL(...t){let e=0,n,r=!0,i=Gn,o,s,l,c,d;!a.isRef(t[0])&&typeof t[0]=="object"?{delay:s,trailing:l=!0,leading:c=!0,rejectOnCancel:d=!1}=t[0]:[s,l=!0,c=!0,d=!1]=t;const u=()=>{n&&(clearTimeout(n),n=void 0,i(),i=Gn)};return h=>{const p=Pn(s),g=Date.now()-e,b=()=>o=h();return u(),p<=0?(e=Date.now(),b()):(g>p&&(c||!r)?(e=Date.now(),b()):l&&(o=new Promise((y,w)=>{i=d?w:y,n=setTimeout(()=>{e=Date.now(),r=!0,y(b()),u()},Math.max(0,p-g))})),!c&&!n&&(n=setTimeout(()=>r=!0,p)),r=!1,o)}}function bL(t,e){var n;if(typeof t=="number")return t+e;const r=((n=t.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:n[0])||"",i=t.slice(r.length),o=Number.parseFloat(r)+e;return Number.isNaN(o)?t:o+i}function uw(t){return a.getCurrentInstance()}function K5(t,e=200,n={}){return dw(gL(e,n),t)}function wL(t,e=200,n=!1,r=!0,i=!1){return dw(yL(e,n,r,i),t)}function fw(t,e=!0,n){uw()?a.onMounted(t,n):e?t():a.nextTick(t)}function vL(t,e){uw()&&a.onUnmounted(t,e)}function Kn(t){var e;const n=Pn(t);return(e=n==null?void 0:n.$el)!=null?e:n}const mo=W5?window:void 0;function mt(...t){let e,n,r,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,i]=t,e=mo):[e,n,r,i]=t,!e)return Gn;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],s=()=>{o.forEach(u=>u()),o.length=0},l=(u,f,h,p)=>(u.addEventListener(f,h,p),()=>u.removeEventListener(f,h,p)),c=a.watch(()=>[Kn(e),Pn(i)],([u,f])=>{if(s(),!u)return;const h=cw(f)?{...f}:f;o.push(...n.flatMap(p=>r.map(g=>l(u,p,g,h))))},{immediate:!0,flush:"post"}),d=()=>{c(),s()};return n1(d),d}let hw=!1;function wp(t,e,n={}){const{window:r=mo,ignore:i=[],capture:o=!0,detectIframe:s=!1}=n;if(!r)return Gn;pL&&!hw&&(hw=!0,Array.from(r.document.body.children).forEach(h=>h.addEventListener("click",Gn)),r.document.documentElement.addEventListener("click",Gn));let l=!0;const c=h=>i.some(p=>{if(typeof p=="string")return Array.from(r.document.querySelectorAll(p)).some(g=>g===h.target||h.composedPath().includes(g));{const g=Kn(p);return g&&(h.target===g||h.composedPath().includes(g))}}),u=[mt(r,"click",h=>{const p=Kn(t);if(!(!p||p===h.target||h.composedPath().includes(p))){if(h.detail===0&&(l=!c(h)),!l){l=!0;return}e(h)}},{passive:!0,capture:o}),mt(r,"pointerdown",h=>{const p=Kn(t);l=!c(h)&&!!(p&&!h.composedPath().includes(p))},{passive:!0}),s&&mt(r,"blur",h=>{setTimeout(()=>{var p;const g=Kn(t);((p=r.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(g!=null&&g.contains(r.document.activeElement))&&e(h)},0)})].filter(Boolean);return()=>u.forEach(h=>h())}function CL(){const t=a.ref(!1),e=a.getCurrentInstance();return e&&a.onMounted(()=>{t.value=!0},e),t}function vp(t){const e=CL();return a.computed(()=>(e.value,!!t()))}function r1(t,e={}){const{window:n=mo}=e,r=vp(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let i;const o=a.ref(!1),s=d=>{o.value=d.matches},l=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",s):i.removeListener(s))},c=a.watchEffect(()=>{r.value&&(l(),i=n.matchMedia(Pn(t)),"addEventListener"in i?i.addEventListener("change",s):i.addListener(s),o.value=i.matches)});return n1(()=>{c(),l(),i=void 0}),o}const kL={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function pw(t,e={}){function n(u,f){let h=Pn(t[Pn(u)]);return f!=null&&(h=bL(h,f)),typeof h=="number"&&(h=`${h}px`),h}const{window:r=mo,strategy:i="min-width"}=e;function o(u){return r?r.matchMedia(u).matches:!1}const s=u=>r1(()=>`(min-width: ${n(u)})`,e),l=u=>r1(()=>`(max-width: ${n(u)})`,e),c=Object.keys(t).reduce((u,f)=>(Object.defineProperty(u,f,{get:()=>i==="min-width"?s(f):l(f),enumerable:!0,configurable:!0}),u),{});function d(){const u=Object.keys(t).map(f=>[f,s(f)]);return a.computed(()=>u.filter(([,f])=>f.value).map(([f])=>f))}return Object.assign(c,{greaterOrEqual:s,smallerOrEqual:l,greater(u){return r1(()=>`(min-width: ${n(u,.1)})`,e)},smaller(u){return r1(()=>`(max-width: ${n(u,-.1)})`,e)},between(u,f){return r1(()=>`(min-width: ${n(u)}) and (max-width: ${n(f,-.1)})`,e)},isGreater(u){return o(`(min-width: ${n(u,.1)})`)},isGreaterOrEqual(u){return o(`(min-width: ${n(u)})`)},isSmaller(u){return o(`(max-width: ${n(u,-.1)})`)},isSmallerOrEqual(u){return o(`(max-width: ${n(u)})`)},isInBetween(u,f){return o(`(min-width: ${n(u)}) and (max-width: ${n(f,-.1)})`)},current:d,active(){const u=d();return a.computed(()=>u.value.length===0?"":u.value.at(-1))}})}function SL(t,e,n={}){const{window:r=mo,...i}=n;let o;const s=vp(()=>r&&"MutationObserver"in r),l=()=>{o&&(o.disconnect(),o=void 0)},c=a.computed(()=>{const h=Pn(t),p=(Array.isArray(h)?h:[h]).map(Kn).filter(G5);return new Set(p)}),d=a.watch(()=>c.value,h=>{l(),s.value&&r&&h.size&&(o=new MutationObserver(e),h.forEach(p=>o.observe(p,i)))},{immediate:!0,flush:"post"}),u=()=>o==null?void 0:o.takeRecords(),f=()=>{l(),d()};return n1(f),{isSupported:s,stop:f,takeRecords:u}}function EL(t,e={}){const n=a.ref(!1),r=a.shallowRef(null);let i=0,o=!0;if(W5){const s=typeof e=="function"?{onDrop:e}:e,l=c=>{var d,u;const f=Array.from((u=(d=c.dataTransfer)==null?void 0:d.files)!=null?u:[]);return r.value=f.length===0?null:f};mt(t,"dragenter",c=>{var d,u;const f=Array.from(((d=c==null?void 0:c.dataTransfer)==null?void 0:d.items)||[]).map(h=>h.kind==="file"?h.type:null).filter(G5);if(s.dataTypes&&c.dataTransfer){const h=a.unref(s.dataTypes);if(o=typeof h=="function"?h(f):h?h.some(p=>f.includes(p)):!0,!o)return}c.preventDefault(),i+=1,n.value=!0,(u=s.onEnter)==null||u.call(s,l(c),c)}),mt(t,"dragover",c=>{var d;o&&(c.preventDefault(),(d=s.onOver)==null||d.call(s,l(c),c))}),mt(t,"dragleave",c=>{var d;o&&(c.preventDefault(),i-=1,i===0&&(n.value=!1),(d=s.onLeave)==null||d.call(s,l(c),c))}),mt(t,"drop",c=>{var d;c.preventDefault(),i=0,n.value=!1,(d=s.onDrop)==null||d.call(s,l(c),c)})}return{files:r,isOverDropZone:n}}function ML(t,e,n={}){const{window:r=mo,...i}=n;let o;const s=vp(()=>r&&"ResizeObserver"in r),l=()=>{o&&(o.disconnect(),o=void 0)},c=a.computed(()=>Array.isArray(t)?t.map(f=>Kn(f)):[Kn(t)]),d=a.watch(c,f=>{if(l(),s.value&&r){o=new ResizeObserver(e);for(const h of f)h&&o.observe(h,i)}},{immediate:!0,flush:"post"}),u=()=>{l(),d()};return n1(u),{isSupported:s,stop:u}}function AL(t,e={}){const{reset:n=!0,windowResize:r=!0,windowScroll:i=!0,immediate:o=!0}=e,s=a.ref(0),l=a.ref(0),c=a.ref(0),d=a.ref(0),u=a.ref(0),f=a.ref(0),h=a.ref(0),p=a.ref(0);function g(){const b=Kn(t);if(!b){n&&(s.value=0,l.value=0,c.value=0,d.value=0,u.value=0,f.value=0,h.value=0,p.value=0);return}const y=b.getBoundingClientRect();s.value=y.height,l.value=y.bottom,c.value=y.left,d.value=y.right,u.value=y.top,f.value=y.width,h.value=y.x,p.value=y.y}return ML(t,g),a.watch(()=>Kn(t),b=>!b&&g()),SL(t,g,{attributeFilter:["style","class"]}),i&&mt("scroll",g,{capture:!0,passive:!0}),r&&mt("resize",g,{passive:!0}),fw(()=>{o&&g()}),{height:s,bottom:l,left:c,right:d,top:u,width:f,x:h,y:p,update:g}}function TL(t,e,n={}){const{root:r,rootMargin:i="0px",threshold:o=.1,window:s=mo,immediate:l=!0}=n,c=vp(()=>s&&"IntersectionObserver"in s),d=a.computed(()=>{const g=Pn(t);return(Array.isArray(g)?g:[g]).map(Kn).filter(G5)});let u=Gn;const f=a.ref(l),h=c.value?a.watch(()=>[d.value,Kn(r),f.value],([g,b])=>{if(u(),!f.value||!g.length)return;const y=new IntersectionObserver(e,{root:Kn(b),rootMargin:i,threshold:o});g.forEach(w=>w&&y.observe(w)),u=()=>{y.disconnect(),u=Gn}},{immediate:l,flush:"post"}):Gn,p=()=>{u(),h(),f.value=!1};return n1(p),{isSupported:c,isActive:f,pause(){u(),f.value=!1},resume(){f.value=!0},stop:p}}const mw=1;function Cp(t,e={}){const{throttle:n=0,idle:r=200,onStop:i=Gn,onScroll:o=Gn,offset:s={left:0,right:0,top:0,bottom:0},eventListenerOptions:l={capture:!1,passive:!0},behavior:c="auto",window:d=mo,onError:u=E=>{console.error(E)}}=e,f=a.ref(0),h=a.ref(0),p=a.computed({get(){return f.value},set(E){b(E,void 0)}}),g=a.computed({get(){return h.value},set(E){b(void 0,E)}});function b(E,D){var T,x,N;if(!d)return;const _=Pn(t);_&&((N=_ instanceof Document?d.document.body:_)==null||N.scrollTo({top:(T=Pn(D))!=null?T:g.value,left:(x=Pn(E))!=null?x:p.value,behavior:Pn(c)}))}const y=a.ref(!1),w=a.reactive({left:!0,right:!1,top:!0,bottom:!1}),v=a.reactive({left:!1,right:!1,top:!1,bottom:!1}),k=E=>{y.value&&(y.value=!1,v.left=!1,v.right=!1,v.top=!1,v.bottom=!1,i(E))},C=K5(k,n+r),A=E=>{var D;if(!d)return;const T=((D=E==null?void 0:E.document)==null?void 0:D.documentElement)||(E==null?void 0:E.documentElement)||Kn(E),{display:x,flexDirection:N}=getComputedStyle(T),_=T.scrollLeft;v.left=_<f.value,v.right=_>f.value;const U=Math.abs(_)<=(s.left||0),j=Math.abs(_)+T.clientWidth>=T.scrollWidth-(s.right||0)-mw;x==="flex"&&N==="row-reverse"?(w.left=j,w.right=U):(w.left=U,w.right=j),f.value=_;let z=T.scrollTop;E===d.document&&!z&&(z=d.document.body.scrollTop),v.top=z<h.value,v.bottom=z>h.value;const q=Math.abs(z)<=(s.top||0),$=Math.abs(z)+T.clientHeight>=T.scrollHeight-(s.bottom||0)-mw;x==="flex"&&N==="column-reverse"?(w.top=$,w.bottom=q):(w.top=q,w.bottom=$),h.value=z},S=E=>{var D;if(!d)return;const T=(D=E.target.documentElement)!=null?D:E.target;A(T),y.value=!0,C(E),o(E)};return mt(t,"scroll",n?wL(S,n,!0,!1):S,l),fw(()=>{try{const E=Pn(t);if(!E)return;A(E)}catch(E){u(E)}}),mt(t,"scrollend",k,l),{x:p,y:g,isScrolling:y,arrivedState:w,directions:v,measure(){const E=Pn(t);d&&E&&A(E)}}}function IL(t,e={}){const{threshold:n=50,onSwipe:r,onSwipeEnd:i,onSwipeStart:o,passive:s=!0,window:l=mo}=e,c=a.reactive({x:0,y:0}),d=a.reactive({x:0,y:0}),u=a.computed(()=>c.x-d.x),f=a.computed(()=>c.y-d.y),{max:h,abs:p}=Math,g=a.computed(()=>h(p(u.value),p(f.value))>=n),b=a.ref(!1),y=a.computed(()=>g.value?p(u.value)>p(f.value)?u.value>0?"left":"right":f.value>0?"up":"down":"none"),w=T=>[T.touches[0].clientX,T.touches[0].clientY],v=(T,x)=>{c.x=T,c.y=x},k=(T,x)=>{d.x=T,d.y=x};let C;const A=OL(l==null?void 0:l.document);s?C=A?{passive:!0}:{capture:!1}:C=A?{passive:!1,capture:!0}:{capture:!0};const S=T=>{b.value&&(i==null||i(T,y.value)),b.value=!1},E=[mt(t,"touchstart",T=>{if(T.touches.length!==1)return;C.capture&&!C.passive&&T.preventDefault();const[x,N]=w(T);v(x,N),k(x,N),o==null||o(T)},C),mt(t,"touchmove",T=>{if(T.touches.length!==1)return;const[x,N]=w(T);k(x,N),!b.value&&g.value&&(b.value=!0),b.value&&(r==null||r(T))},C),mt(t,["touchend","touchcancel"],S,C)];return{isPassiveEventSupported:A,isSwiping:b,direction:y,coordsStart:c,coordsEnd:d,lengthX:u,lengthY:f,stop:()=>E.forEach(T=>T())}}function OL(t){if(!t)return!1;let e=!1;const n={get passive(){return e=!0,!1}};return t.addEventListener("x",Gn,n),t.removeEventListener("x",Gn),e}function Y5(t={}){const{window:e=mo,behavior:n="auto"}=t;if(!e)return{x:a.ref(0),y:a.ref(0)};const r=a.ref(e.scrollX),i=a.ref(e.scrollY),o=a.computed({get(){return r.value},set(l){scrollTo({left:l,behavior:n})}}),s=a.computed({get(){return i.value},set(l){scrollTo({top:l,behavior:n})}});return mt(e,"scroll",()=>{r.value=e.scrollX,i.value=e.scrollY},{capture:!1,passive:!0}),{x:o,y:s}}const gw=1/60*1e3,DL=typeof performance<"u"?()=>performance.now():()=>Date.now(),yw=typeof window<"u"?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(DL()),gw);function NL(t){let e=[],n=[],r=0,i=!1,o=!1;const s=new WeakSet,l={schedule:(c,d=!1,u=!1)=>{const f=u&&i,h=f?e:n;return d&&s.add(c),h.indexOf(c)===-1&&(h.push(c),f&&i&&(r=e.length)),c},cancel:c=>{const d=n.indexOf(c);d!==-1&&n.splice(d,1),s.delete(c)},process:c=>{if(i){o=!0;return}if(i=!0,[e,n]=[n,e],n.length=0,r=e.length,r)for(let d=0;d<r;d++){const u=e[d];u(c),s.has(u)&&(l.schedule(u),t())}i=!1,o&&(o=!1,l.process(c))}};return l}const xL=40;let Q5=!0,i1=!1,X5=!1;const $2={delta:0,timestamp:0},o1=["read","update","preRender","render","postRender"],kp=o1.reduce((t,e)=>(t[e]=NL(()=>i1=!0),t),{}),J5=o1.reduce((t,e)=>{const n=kp[e];return t[e]=(r,i=!1,o=!1)=>(i1||LL(),n.schedule(r,i,o)),t},{}),PL=o1.reduce((t,e)=>(t[e]=kp[e].cancel,t),{});o1.reduce((t,e)=>(t[e]=()=>kp[e].process($2),t),{});const BL=t=>kp[t].process($2),bw=t=>{i1=!1,$2.delta=Q5?gw:Math.max(Math.min(t-$2.timestamp,xL),1),$2.timestamp=t,X5=!0,o1.forEach(BL),X5=!1,i1&&(Q5=!1,yw(bw))},LL=()=>{i1=!0,Q5=!0,X5||yw(bw)},ww=()=>$2;function vw(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}var e4=function(){},s1=function(){};process.env.NODE_ENV!=="production"&&(e4=function(t,e){!t&&typeof console<"u"&&console.warn(e)},s1=function(t,e){if(!t)throw new Error(e)});const t4=(t,e,n)=>Math.min(Math.max(n,t),e),Cw=.001,RL=.01,kw=10,_L=.05,VL=1;function $L({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,o;e4(t<=kw*1e3,"Spring duration must be 10 seconds or less");let s=1-e;s=t4(_L,VL,s),t=t4(RL,kw,t/1e3),s<1?(i=d=>{const u=d*s,f=u*t,h=u-n,p=n4(d,s),g=Math.exp(-f);return Cw-h/p*g},o=d=>{const f=d*s*t,h=f*n+n,p=Math.pow(s,2)*Math.pow(d,2)*t,g=Math.exp(-f),b=n4(Math.pow(d,2),s);return(-i(d)+Cw>0?-1:1)*((h-p)*g)/b}):(i=d=>{const u=Math.exp(-d*t),f=(d-n)*t+1;return-.001+u*f},o=d=>{const u=Math.exp(-d*t),f=(n-d)*(t*t);return u*f});const l=5/t,c=jL(i,o,l);if(t=t*1e3,isNaN(c))return{stiffness:100,damping:10,duration:t};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:t}}}const FL=12;function jL(t,e,n){let r=n;for(let i=1;i<FL;i++)r=r-t(r)/e(r);return r}function n4(t,e){return t*Math.sqrt(1-e*e)}const HL=["duration","bounce"],zL=["stiffness","damping","mass"];function Sw(t,e){return e.some(n=>t[n]!==void 0)}function UL(t){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!Sw(t,zL)&&Sw(t,HL)){const n=$L(t);e=Object.assign(Object.assign(Object.assign({},e),n),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}function r4(t){var{from:e=0,to:n=1,restSpeed:r=2,restDelta:i}=t,o=vw(t,["from","to","restSpeed","restDelta"]);const s={done:!1,value:e};let{stiffness:l,damping:c,mass:d,velocity:u,duration:f,isResolvedFromDuration:h}=UL(o),p=Ew,g=Ew;function b(){const y=u?-(u/1e3):0,w=n-e,v=c/(2*Math.sqrt(l*d)),k=Math.sqrt(l/d)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-e)/100,.4)),v<1){const C=n4(k,v);p=A=>{const S=Math.exp(-v*k*A);return n-S*((y+v*k*w)/C*Math.sin(C*A)+w*Math.cos(C*A))},g=A=>{const S=Math.exp(-v*k*A);return v*k*S*(Math.sin(C*A)*(y+v*k*w)/C+w*Math.cos(C*A))-S*(Math.cos(C*A)*(y+v*k*w)-C*w*Math.sin(C*A))}}else if(v===1)p=C=>n-Math.exp(-k*C)*(w+(y+k*w)*C);else{const C=k*Math.sqrt(v*v-1);p=A=>{const S=Math.exp(-v*k*A),E=Math.min(C*A,300);return n-S*((y+v*k*w)*Math.sinh(E)+C*w*Math.cosh(E))/C}}}return b(),{next:y=>{const w=p(y);if(h)s.done=y>=f;else{const v=g(y)*1e3,k=Math.abs(v)<=r,C=Math.abs(n-w)<=i;s.done=k&&C}return s.value=s.done?n:w,s},flipTarget:()=>{u=-u,[e,n]=[n,e],b()}}}r4.needsInterpolation=(t,e)=>typeof t=="string"||typeof e=="string";const Ew=t=>0,Mw=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},i4=(t,e,n)=>-n*t+n*e+t,Aw=(t,e)=>n=>Math.max(Math.min(n,e),t),a1=t=>t%1?Number(t.toFixed(5)):t,l1=/(-)?([\d]*\.?[\d])+/g,o4=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,ZL=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function c1(t){return typeof t=="string"}const d1={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},u1=Object.assign(Object.assign({},d1),{transform:Aw(0,1)}),Sp=Object.assign(Object.assign({},d1),{default:1}),s4=t=>({test:e=>c1(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Pl=s4("deg"),f1=s4("%"),Le=s4("px"),Tw=Object.assign(Object.assign({},f1),{parse:t=>f1.parse(t)/100,transform:t=>f1.transform(t*100)}),a4=(t,e)=>n=>!!(c1(n)&&ZL.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),Iw=(t,e,n)=>r=>{if(!c1(r))return r;const[i,o,s,l]=r.match(l1);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},Bl={test:a4("hsl","hue"),parse:Iw("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+f1.transform(a1(e))+", "+f1.transform(a1(n))+", "+a1(u1.transform(r))+")"},qL=Aw(0,255),l4=Object.assign(Object.assign({},d1),{transform:t=>Math.round(qL(t))}),da={test:a4("rgb","red"),parse:Iw("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+l4.transform(t)+", "+l4.transform(e)+", "+l4.transform(n)+", "+a1(u1.transform(r))+")"};function WL(t){let e="",n="",r="",i="";return t.length>5?(e=t.substr(1,2),n=t.substr(3,2),r=t.substr(5,2),i=t.substr(7,2)):(e=t.substr(1,1),n=t.substr(2,1),r=t.substr(3,1),i=t.substr(4,1),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const c4={test:a4("#"),parse:WL,transform:da.transform},hr={test:t=>da.test(t)||c4.test(t)||Bl.test(t),parse:t=>da.test(t)?da.parse(t):Bl.test(t)?Bl.parse(t):c4.parse(t),transform:t=>c1(t)?t:t.hasOwnProperty("red")?da.transform(t):Bl.transform(t)},Ow="${c}",Dw="${n}";function GL(t){var e,n,r,i;return isNaN(t)&&c1(t)&&((n=(e=t.match(l1))===null||e===void 0?void 0:e.length)!==null&&n!==void 0?n:0)+((i=(r=t.match(o4))===null||r===void 0?void 0:r.length)!==null&&i!==void 0?i:0)>0}function Nw(t){typeof t=="number"&&(t=`${t}`);const e=[];let n=0;const r=t.match(o4);r&&(n=r.length,t=t.replace(o4,Ow),e.push(...r.map(hr.parse)));const i=t.match(l1);return i&&(t=t.replace(l1,Dw),e.push(...i.map(d1.parse))),{values:e,numColors:n,tokenised:t}}function xw(t){return Nw(t).values}function Pw(t){const{values:e,numColors:n,tokenised:r}=Nw(t),i=e.length;return o=>{let s=r;for(let l=0;l<i;l++)s=s.replace(l<n?Ow:Dw,l<n?hr.transform(o[l]):a1(o[l]));return s}}const KL=t=>typeof t=="number"?0:t;function YL(t){const e=xw(t);return Pw(t)(e.map(KL))}const h1={test:GL,parse:xw,createTransformer:Pw,getAnimatableNone:YL},QL=new Set(["brightness","contrast","saturate","opacity"]);function XL(t){let[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(l1)||[];if(!r)return t;const i=n.replace(r,"");let o=QL.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const JL=/([a-z-]*)\(.*?\)/g,d4=Object.assign(Object.assign({},h1),{getAnimatableNone:t=>{const e=t.match(JL);return e?e.map(XL).join(" "):t}});function u4(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Bw({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,s=0;if(!e)i=o=s=n;else{const l=n<.5?n*(1+e):n+e-n*e,c=2*n-l;i=u4(c,l,t+1/3),o=u4(c,l,t),s=u4(c,l,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const eR=(t,e,n)=>{const r=t*t,i=e*e;return Math.sqrt(Math.max(0,n*(i-r)+r))},tR=[c4,da,Bl],Lw=t=>tR.find(e=>e.test(t)),Rw=t=>`'${t}' is not an animatable color. Use the equivalent color code instead.`,_w=(t,e)=>{let n=Lw(t),r=Lw(e);s1(!!n,Rw(t)),s1(!!r,Rw(e));let i=n.parse(t),o=r.parse(e);n===Bl&&(i=Bw(i),n=da),r===Bl&&(o=Bw(o),r=da);const s=Object.assign({},i);return l=>{for(const c in s)c!=="alpha"&&(s[c]=eR(i[c],o[c],l));return s.alpha=i4(i.alpha,o.alpha,l),n.transform(s)}},nR=t=>typeof t=="number",rR=(t,e)=>n=>e(t(n)),Vw=(...t)=>t.reduce(rR);function $w(t,e){return nR(t)?n=>i4(t,e,n):hr.test(t)?_w(t,e):Hw(t,e)}const Fw=(t,e)=>{const n=[...t],r=n.length,i=t.map((o,s)=>$w(o,e[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},iR=(t,e)=>{const n=Object.assign(Object.assign({},t),e),r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=$w(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}};function jw(t){const e=h1.parse(t),n=e.length;let r=0,i=0,o=0;for(let s=0;s<n;s++)r||typeof e[s]=="number"?r++:e[s].hue!==void 0?o++:i++;return{parsed:e,numNumbers:r,numRGB:i,numHSL:o}}const Hw=(t,e)=>{const n=h1.createTransformer(e),r=jw(t),i=jw(e);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?Vw(Fw(r.parsed,i.parsed),n):(e4(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),s=>`${s>0?e:t}`)},oR=(t,e)=>n=>i4(t,e,n);function sR(t){if(typeof t=="number")return oR;if(typeof t=="string")return hr.test(t)?_w:Hw;if(Array.isArray(t))return Fw;if(typeof t=="object")return iR}function aR(t,e,n){const r=[],i=n||sR(t[0]),o=t.length-1;for(let s=0;s<o;s++){let l=i(t[s],t[s+1]);if(e){const c=Array.isArray(e)?e[s]:e;l=Vw(c,l)}r.push(l)}return r}function lR([t,e],[n]){return r=>n(Mw(t,e,r))}function cR(t,e){const n=t.length,r=n-1;return i=>{let o=0,s=!1;if(i<=t[0]?s=!0:i>=t[r]&&(o=r-1,s=!0),!s){let c=1;for(;c<n&&!(t[c]>i||c===r);c++);o=c-1}const l=Mw(t[o],t[o+1],i);return e[o](l)}}function zw(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;s1(o===e.length,"Both input and output ranges must be the same length"),s1(!r||!Array.isArray(r)||r.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[o-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());const s=aR(e,r,i),l=o===2?lR(t,s):cR(t,s);return n?c=>l(t4(t[0],t[o-1],c)):l}const Ep=t=>e=>1-t(1-e),f4=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,dR=t=>e=>Math.pow(e,t),Uw=t=>e=>e*e*((t+1)*e-t),uR=t=>{const e=Uw(t);return n=>(n*=2)<1?.5*e(n):.5*(2-Math.pow(2,-10*(n-1)))},Zw=1.525,fR=4/11,hR=8/11,pR=9/10,qw=t=>t,h4=dR(2),mR=Ep(h4),Ww=f4(h4),Gw=t=>1-Math.sin(Math.acos(t)),Kw=Ep(Gw),gR=f4(Kw),p4=Uw(Zw),yR=Ep(p4),bR=f4(p4),wR=uR(Zw),vR=4356/361,CR=35442/1805,kR=16061/1805,Mp=t=>{if(t===1||t===0)return t;const e=t*t;return t<fR?7.5625*e:t<hR?9.075*e-9.9*t+3.4:t<pR?vR*e-CR*t+kR:10.8*t*t-20.52*t+10.72},SR=Ep(Mp),ER=t=>t<.5?.5*(1-Mp(1-t*2)):.5*Mp(t*2-1)+.5;function MR(t,e){return t.map(()=>e||Ww).splice(0,t.length-1)}function AR(t){const e=t.length;return t.map((n,r)=>r!==0?r/(e-1):0)}function TR(t,e){return t.map(n=>n*e)}function Ap({from:t=0,to:e=1,ease:n,offset:r,duration:i=300}){const o={done:!1,value:t},s=Array.isArray(e)?e:[t,e],l=TR(r&&r.length===s.length?r:AR(s),i);function c(){return zw(l,s,{ease:Array.isArray(n)?n:MR(s,n)})}let d=c();return{next:u=>(o.value=d(u),o.done=u>=i,o),flipTarget:()=>{s.reverse(),d=c()}}}function IR({velocity:t=0,from:e=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const s={done:!1,value:e};let l=n*t;const c=e+l,d=o===void 0?c:o(c);return d!==c&&(l=d-e),{next:u=>{const f=-l*Math.exp(-u/r);return s.done=!(f>i||f<-i),s.value=s.done?d:d+f,s},flipTarget:()=>{}}}const Yw={keyframes:Ap,spring:r4,decay:IR};function OR(t){if(Array.isArray(t.to))return Ap;if(Yw[t.type])return Yw[t.type];const e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?Ap:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?r4:Ap}function Qw(t,e,n=0){return t-e-n}function DR(t,e,n=0,r=!0){return r?Qw(e+-t,e,n):e-(t-e)+n}function NR(t,e,n,r){return r?t>=e+n:t<=-n}const xR=t=>{const e=({delta:n})=>t(n);return{start:()=>J5.update(e,!0),stop:()=>PL.update(e)}};function Xw(t){var e,n,{from:r,autoplay:i=!0,driver:o=xR,elapsed:s=0,repeat:l=0,repeatType:c="loop",repeatDelay:d=0,onPlay:u,onStop:f,onComplete:h,onRepeat:p,onUpdate:g}=t,b=vw(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:y}=b,w,v=0,k=b.duration,C,A=!1,S=!0,E;const D=OR(b);!((n=(e=D).needsInterpolation)===null||n===void 0)&&n.call(e,r,y)&&(E=zw([0,100],[r,y],{clamp:!1}),r=0,y=100);const T=D(Object.assign(Object.assign({},b),{from:r,to:y}));function x(){v++,c==="reverse"?(S=v%2===0,s=DR(s,k,d,S)):(s=Qw(s,k,d),c==="mirror"&&T.flipTarget()),A=!1,p&&p()}function N(){w.stop(),h&&h()}function _(j){if(S||(j=-j),s+=j,!A){const z=T.next(Math.max(0,s));C=z.value,E&&(C=E(C)),A=S?z.done:s<=0}g==null||g(C),A&&(v===0&&(k??(k=s)),v<l?NR(s,k,d,S)&&x():N())}function U(){u==null||u(),w=o(_),w.start()}return i&&U(),{stop:()=>{f==null||f(),w.stop()}}}function Jw(t,e){return e?t*(1e3/e):0}function PR({from:t=0,velocity:e=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:s=500,bounceDamping:l=10,restDelta:c=1,modifyTarget:d,driver:u,onUpdate:f,onComplete:h,onStop:p}){let g;function b(k){return n!==void 0&&k<n||r!==void 0&&k>r}function y(k){return n===void 0?r:r===void 0||Math.abs(n-k)<Math.abs(r-k)?n:r}function w(k){g==null||g.stop(),g=Xw(Object.assign(Object.assign({},k),{driver:u,onUpdate:C=>{var A;f==null||f(C),(A=k.onUpdate)===null||A===void 0||A.call(k,C)},onComplete:h,onStop:p}))}function v(k){w(Object.assign({type:"spring",stiffness:s,damping:l,restDelta:c},k))}if(b(t))v({from:t,velocity:e,to:y(t)});else{let k=i*e+t;typeof d<"u"&&(k=d(k));const C=y(k),A=C===n?-1:1;let S,E;const D=T=>{S=E,E=T,e=Jw(T-S,ww().delta),(A===1&&T>C||A===-1&&T<C)&&v({from:T,to:C,velocity:e})};w({type:"decay",from:t,velocity:e,timeConstant:o,power:i,restDelta:c,modifyTarget:d,onUpdate:b(k)?D:void 0})}return{stop:()=>g==null?void 0:g.stop()}}const ev=(t,e)=>1-3*e+3*t,tv=(t,e)=>3*e-6*t,nv=t=>3*t,Tp=(t,e,n)=>((ev(e,n)*t+tv(e,n))*t+nv(e))*t,rv=(t,e,n)=>3*ev(e,n)*t*t+2*tv(e,n)*t+nv(e),BR=1e-7,LR=10;function RR(t,e,n,r,i){let o,s,l=0;do s=e+(n-e)/2,o=Tp(s,r,i)-t,o>0?n=s:e=s;while(Math.abs(o)>BR&&++l<LR);return s}const _R=8,VR=.001;function $R(t,e,n,r){for(let i=0;i<_R;++i){const o=rv(e,n,r);if(o===0)return e;const s=Tp(e,n,r)-t;e-=s/o}return e}const Ip=11,Op=1/(Ip-1);function FR(t,e,n,r){if(t===e&&n===r)return qw;const i=new Float32Array(Ip);for(let s=0;s<Ip;++s)i[s]=Tp(s*Op,t,n);function o(s){let l=0,c=1;const d=Ip-1;for(;c!==d&&i[c]<=s;++c)l+=Op;--c;const u=(s-i[c])/(i[c+1]-i[c]),f=l+u*Op,h=rv(f,t,n);return h>=VR?$R(s,f,t,n):h===0?f:RR(s,l,l+Op,t,n)}return s=>s===0||s===1?s:Tp(o(s),e,r)}/**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@quoreadmin/ui",
3
3
  "private": false,
4
- "version": "1.3.15",
4
+ "version": "1.3.16",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",