usage-board 3.2.0 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -539,7 +539,7 @@ defineLazyProperty(apps, "safari", () => detectPlatformBinary({ darwin: "Safari"
539
539
  //#endregion
540
540
  //#region package.json
541
541
  var name = "usage-board";
542
- var version = "3.2.0";
542
+ var version = "3.2.1";
543
543
  //#endregion
544
544
  //#region src/index.ts
545
545
  const cli = cac(name);
@@ -1,4 +1,4 @@
1
- import{ah as zu,ai as mi,aj as Yi,g as F,a7 as Wu,v as Uu,ak as qu,m as de,r as Y,al as Vu,am as Yu,N as _e,q as rl,an as Gu,h as pt,s as on,n as pe,i as fs,y as P,E as ds,W as Xu,p as bn,z as Nt,ao as ju,o as $,A as Z,w as H,B,C as T,P as Gi,D as sl,T as Zu,G as vi,ap as Ku,K as Xi,aq as ol,c as G,J as Vt,ar as Qu,a6 as Ju,as as ze,a3 as th,at as eh,b as lt,au as nh,Q as ps,R as gs,av as ji,F as ih,aw as rh,l as po,d as qe,t as Jt,L as sh,j as oh,M as ah,ax as lh,U as ch,a as Et,V as it,H as al,I as ll,af as yr,ad as un,ab as Zi}from"./DgKrPjze.js";import{r as uh,P as Ne,c as ht,a as hh}from"./BvRyOET7.js";import{_ as cl}from"./DUoLvn3A.js";function ul(t,e,n){const i=n.originalEvent.target,r=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&i.addEventListener(t,e,{once:!0}),i.dispatchEvent(r)}function fh(t){return t==null}function dh(t){const e=Yi(),n=e?.type.emits,i={};return n?.length||console.warn(`No emitted event found. Please check component: ${e?.type.__name}`),n?.forEach(r=>{i[zu(mi(r))]=(...s)=>t(r,...s)}),i}function hl(t){const e=Yi(),n=Object.keys(e?.type.props??{}).reduce((r,s)=>{const o=(e?.type.props[s]).default;return o!==void 0&&(r[s]=o),r},{}),i=Wu(t);return F(()=>{const r={},s=e?.vnode.props??{};return Object.keys(s).forEach(o=>{r[mi(o)]=s[o]}),Object.keys({...n,...r}).reduce((o,a)=>(i.value[a]!==void 0&&(o[a]=i.value[a]),o),{})})}function ms(t,e){const n=hl(t),i=e?dh(e):{};return F(()=>({...n.value,...i}))}function ph(t,e){const n=Uu(!1,300);qu(()=>{n.value=!1});const i=Y(null),r=Vu();function s(){i.value=null,n.value=!1}function o(a,l){if(!l)return;const c=a.currentTarget,u={x:a.clientX,y:a.clientY},h=gh(u,c.getBoundingClientRect()),f=mh(u,h,1),d=vh(l.getBoundingClientRect()),p=yh([...f,...d]);i.value=p,n.value=!0}return de(a=>{if(t.value&&e.value){const l=u=>o(u,e.value),c=u=>o(u,t.value);t.value.addEventListener("pointerleave",l),e.value.addEventListener("pointerleave",c),a(()=>{t.value?.removeEventListener("pointerleave",l),e.value?.removeEventListener("pointerleave",c)})}}),de(a=>{if(i.value){const l=c=>{if(!i.value||!(c.target instanceof Element))return;const u=c.target,h={x:c.clientX,y:c.clientY},f=t.value?.contains(u)||e.value?.contains(u),d=!_h(h,i.value),p=!!u.closest("[data-grace-area-trigger]");f?s():(d||p)&&(s(),r.trigger())};t.value?.ownerDocument.addEventListener("pointermove",l),a(()=>t.value?.ownerDocument.removeEventListener("pointermove",l))}}),{isPointerInTransit:n,onPointerExit:r.on}}function gh(t,e){const n=Math.abs(e.top-t.y),i=Math.abs(e.bottom-t.y),r=Math.abs(e.right-t.x),s=Math.abs(e.left-t.x);switch(Math.min(n,i,r,s)){case s:return"left";case r:return"right";case n:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function mh(t,e,n=5){const i=[];switch(e){case"top":i.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":i.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":i.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":i.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return i}function vh(t){const{top:e,right:n,bottom:i,left:r}=t;return[{x:r,y:e},{x:n,y:e},{x:n,y:i},{x:r,y:i}]}function _h(t,e){const{x:n,y:i}=t;let r=!1;for(let s=0,o=e.length-1;s<e.length;o=s++){const a=e[s].x,l=e[s].y,c=e[o].x,u=e[o].y;l>i!=u>i&&n<(c-a)*(i-l)/(u-l)+a&&(r=!r)}return r}function yh(t){const e=t.slice();return e.sort((n,i)=>n.x<i.x?-1:n.x>i.x?1:n.y<i.y?-1:n.y>i.y?1:0),xh(e)}function xh(t){if(t.length<=1)return t.slice();const e=[];for(let i=0;i<t.length;i++){const r=t[i];for(;e.length>=2;){const s=e.at(-1),o=e[e.length-2];if((s.x-o.x)*(r.y-o.y)>=(s.y-o.y)*(r.x-o.x))e.pop();else break}e.push(r)}e.pop();const n=[];for(let i=t.length-1;i>=0;i--){const r=t[i];for(;n.length>=2;){const s=n.at(-1),o=n[n.length-2];if((s.x-o.x)*(r.y-o.y)>=(s.y-o.y)*(r.x-o.x))n.pop();else break}n.push(r)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}function fl(t,e="reka"){let n;return n=Yu?.(),e?`${e}-${n}`:n}function bh(t){const e=Y(),n=F(()=>e.value?.width??0),i=F(()=>e.value?.height??0);return _e(()=>{const r=rl(t);if(r){e.value={width:r.offsetWidth,height:r.offsetHeight};const s=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let l,c;if("borderBoxSize"in a){const u=a.borderBoxSize,h=Array.isArray(u)?u[0]:u;l=h.inlineSize,c=h.blockSize}else l=r.offsetWidth,c=r.offsetHeight;e.value={width:l,height:c}});return s.observe(r,{box:"border-box"}),()=>s.unobserve(r)}else e.value=void 0}),{width:n,height:i}}function wh(t,e){const n=Y(t);function i(s){return e[n.value][s]??n.value}return{state:n,dispatch:s=>{n.value=i(s)}}}function kh(t,e){const n=Y({}),i=Y("none"),r=Y(t),s=t.value?"mounted":"unmounted";let o;const a=e.value?.ownerDocument.defaultView??Gu,{state:l,dispatch:c}=wh(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),u=m=>{if(fs){const v=new CustomEvent(m,{bubbles:!1,cancelable:!1});e.value?.dispatchEvent(v)}};pt(t,async(m,v)=>{const y=v!==m;if(await pe(),y){const _=i.value,b=Vn(e.value);m?(c("MOUNT"),u("enter"),b==="none"&&u("after-enter")):b==="none"||b==="undefined"||n.value?.display==="none"?(c("UNMOUNT"),u("leave"),u("after-leave")):v&&_!==b?(c("ANIMATION_OUT"),u("leave")):(c("UNMOUNT"),u("after-leave"))}},{immediate:!0});const h=m=>{const v=Vn(e.value),y=v.includes(CSS.escape(m.animationName)),_=l.value==="mounted"?"enter":"leave";if(m.target===e.value&&y&&(u(`after-${_}`),c("ANIMATION_END"),!r.value)){const b=e.value.style.animationFillMode;e.value.style.animationFillMode="forwards",o=a?.setTimeout(()=>{e.value?.style.animationFillMode==="forwards"&&(e.value.style.animationFillMode=b)})}m.target===e.value&&v==="none"&&c("ANIMATION_END")},f=m=>{m.target===e.value&&(i.value=Vn(e.value))},d=pt(e,(m,v)=>{m?(n.value=getComputedStyle(m),m.addEventListener("animationstart",f),m.addEventListener("animationcancel",h),m.addEventListener("animationend",h)):(c("ANIMATION_END"),o!==void 0&&a?.clearTimeout(o),v?.removeEventListener("animationstart",f),v?.removeEventListener("animationcancel",h),v?.removeEventListener("animationend",h))},{immediate:!0}),p=pt(l,()=>{const m=Vn(e.value);i.value=l.value==="mounted"?m:"none"});return on(()=>{d(),p()}),{isPresent:F(()=>["mounted","unmountSuspended"].includes(l.value))}}function Vn(t){return t&&getComputedStyle(t).animationName||"none"}var Sh=P({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(t,{slots:e,expose:n}){const{present:i,forceMount:r}=ds(t),s=Y(),{isPresent:o}=kh(i,s);n({present:o});let a=e.default({present:o.value});a=uh(a||[]);const l=Yi();if(a&&a?.length>1){const c=l?.parent?.type.name?`<${l.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${c}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(u=>` - ${u}`).join(`
1
+ import{ah as zu,ai as mi,aj as Yi,g as F,a7 as Wu,v as Uu,ak as qu,m as de,r as Y,al as Vu,am as Yu,N as _e,q as rl,an as Gu,h as pt,s as on,n as pe,i as fs,y as P,E as ds,W as Xu,p as bn,z as Nt,ao as ju,o as $,A as Z,w as H,B,C as T,P as Gi,D as sl,T as Zu,G as vi,ap as Ku,K as Xi,aq as ol,c as G,J as Vt,ar as Qu,a6 as Ju,as as ze,a3 as th,at as eh,b as lt,au as nh,Q as ps,R as gs,av as ji,F as ih,aw as rh,l as po,d as qe,t as Jt,L as sh,j as oh,M as ah,ax as lh,U as ch,a as Et,V as it,H as al,I as ll,af as yr,ad as un,ab as Zi}from"./IstswKJB.js";import{r as uh,P as Ne,c as ht,a as hh}from"./CjeAKHhp.js";import{_ as cl}from"./BO_d_Oyx.js";function ul(t,e,n){const i=n.originalEvent.target,r=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&i.addEventListener(t,e,{once:!0}),i.dispatchEvent(r)}function fh(t){return t==null}function dh(t){const e=Yi(),n=e?.type.emits,i={};return n?.length||console.warn(`No emitted event found. Please check component: ${e?.type.__name}`),n?.forEach(r=>{i[zu(mi(r))]=(...s)=>t(r,...s)}),i}function hl(t){const e=Yi(),n=Object.keys(e?.type.props??{}).reduce((r,s)=>{const o=(e?.type.props[s]).default;return o!==void 0&&(r[s]=o),r},{}),i=Wu(t);return F(()=>{const r={},s=e?.vnode.props??{};return Object.keys(s).forEach(o=>{r[mi(o)]=s[o]}),Object.keys({...n,...r}).reduce((o,a)=>(i.value[a]!==void 0&&(o[a]=i.value[a]),o),{})})}function ms(t,e){const n=hl(t),i=e?dh(e):{};return F(()=>({...n.value,...i}))}function ph(t,e){const n=Uu(!1,300);qu(()=>{n.value=!1});const i=Y(null),r=Vu();function s(){i.value=null,n.value=!1}function o(a,l){if(!l)return;const c=a.currentTarget,u={x:a.clientX,y:a.clientY},h=gh(u,c.getBoundingClientRect()),f=mh(u,h,1),d=vh(l.getBoundingClientRect()),p=yh([...f,...d]);i.value=p,n.value=!0}return de(a=>{if(t.value&&e.value){const l=u=>o(u,e.value),c=u=>o(u,t.value);t.value.addEventListener("pointerleave",l),e.value.addEventListener("pointerleave",c),a(()=>{t.value?.removeEventListener("pointerleave",l),e.value?.removeEventListener("pointerleave",c)})}}),de(a=>{if(i.value){const l=c=>{if(!i.value||!(c.target instanceof Element))return;const u=c.target,h={x:c.clientX,y:c.clientY},f=t.value?.contains(u)||e.value?.contains(u),d=!_h(h,i.value),p=!!u.closest("[data-grace-area-trigger]");f?s():(d||p)&&(s(),r.trigger())};t.value?.ownerDocument.addEventListener("pointermove",l),a(()=>t.value?.ownerDocument.removeEventListener("pointermove",l))}}),{isPointerInTransit:n,onPointerExit:r.on}}function gh(t,e){const n=Math.abs(e.top-t.y),i=Math.abs(e.bottom-t.y),r=Math.abs(e.right-t.x),s=Math.abs(e.left-t.x);switch(Math.min(n,i,r,s)){case s:return"left";case r:return"right";case n:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function mh(t,e,n=5){const i=[];switch(e){case"top":i.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":i.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":i.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":i.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return i}function vh(t){const{top:e,right:n,bottom:i,left:r}=t;return[{x:r,y:e},{x:n,y:e},{x:n,y:i},{x:r,y:i}]}function _h(t,e){const{x:n,y:i}=t;let r=!1;for(let s=0,o=e.length-1;s<e.length;o=s++){const a=e[s].x,l=e[s].y,c=e[o].x,u=e[o].y;l>i!=u>i&&n<(c-a)*(i-l)/(u-l)+a&&(r=!r)}return r}function yh(t){const e=t.slice();return e.sort((n,i)=>n.x<i.x?-1:n.x>i.x?1:n.y<i.y?-1:n.y>i.y?1:0),xh(e)}function xh(t){if(t.length<=1)return t.slice();const e=[];for(let i=0;i<t.length;i++){const r=t[i];for(;e.length>=2;){const s=e.at(-1),o=e[e.length-2];if((s.x-o.x)*(r.y-o.y)>=(s.y-o.y)*(r.x-o.x))e.pop();else break}e.push(r)}e.pop();const n=[];for(let i=t.length-1;i>=0;i--){const r=t[i];for(;n.length>=2;){const s=n.at(-1),o=n[n.length-2];if((s.x-o.x)*(r.y-o.y)>=(s.y-o.y)*(r.x-o.x))n.pop();else break}n.push(r)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}function fl(t,e="reka"){let n;return n=Yu?.(),e?`${e}-${n}`:n}function bh(t){const e=Y(),n=F(()=>e.value?.width??0),i=F(()=>e.value?.height??0);return _e(()=>{const r=rl(t);if(r){e.value={width:r.offsetWidth,height:r.offsetHeight};const s=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let l,c;if("borderBoxSize"in a){const u=a.borderBoxSize,h=Array.isArray(u)?u[0]:u;l=h.inlineSize,c=h.blockSize}else l=r.offsetWidth,c=r.offsetHeight;e.value={width:l,height:c}});return s.observe(r,{box:"border-box"}),()=>s.unobserve(r)}else e.value=void 0}),{width:n,height:i}}function wh(t,e){const n=Y(t);function i(s){return e[n.value][s]??n.value}return{state:n,dispatch:s=>{n.value=i(s)}}}function kh(t,e){const n=Y({}),i=Y("none"),r=Y(t),s=t.value?"mounted":"unmounted";let o;const a=e.value?.ownerDocument.defaultView??Gu,{state:l,dispatch:c}=wh(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),u=m=>{if(fs){const v=new CustomEvent(m,{bubbles:!1,cancelable:!1});e.value?.dispatchEvent(v)}};pt(t,async(m,v)=>{const y=v!==m;if(await pe(),y){const _=i.value,b=Vn(e.value);m?(c("MOUNT"),u("enter"),b==="none"&&u("after-enter")):b==="none"||b==="undefined"||n.value?.display==="none"?(c("UNMOUNT"),u("leave"),u("after-leave")):v&&_!==b?(c("ANIMATION_OUT"),u("leave")):(c("UNMOUNT"),u("after-leave"))}},{immediate:!0});const h=m=>{const v=Vn(e.value),y=v.includes(CSS.escape(m.animationName)),_=l.value==="mounted"?"enter":"leave";if(m.target===e.value&&y&&(u(`after-${_}`),c("ANIMATION_END"),!r.value)){const b=e.value.style.animationFillMode;e.value.style.animationFillMode="forwards",o=a?.setTimeout(()=>{e.value?.style.animationFillMode==="forwards"&&(e.value.style.animationFillMode=b)})}m.target===e.value&&v==="none"&&c("ANIMATION_END")},f=m=>{m.target===e.value&&(i.value=Vn(e.value))},d=pt(e,(m,v)=>{m?(n.value=getComputedStyle(m),m.addEventListener("animationstart",f),m.addEventListener("animationcancel",h),m.addEventListener("animationend",h)):(c("ANIMATION_END"),o!==void 0&&a?.clearTimeout(o),v?.removeEventListener("animationstart",f),v?.removeEventListener("animationcancel",h),v?.removeEventListener("animationend",h))},{immediate:!0}),p=pt(l,()=>{const m=Vn(e.value);i.value=l.value==="mounted"?m:"none"});return on(()=>{d(),p()}),{isPresent:F(()=>["mounted","unmountSuspended"].includes(l.value))}}function Vn(t){return t&&getComputedStyle(t).animationName||"none"}var Sh=P({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(t,{slots:e,expose:n}){const{present:i,forceMount:r}=ds(t),s=Y(),{isPresent:o}=kh(i,s);n({present:o});let a=e.default({present:o.value});a=uh(a||[]);const l=Yi();if(a&&a?.length>1){const c=l?.parent?.type.name?`<${l.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${c}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(u=>` - ${u}`).join(`
2
2
  `)].join(`
3
3
  `))}return()=>r.value||i.value||o.value?Xu(e.default({present:o.value})[0],{ref:c=>{const u=rl(c);return typeof u?.hasAttribute>"u"||(u?.hasAttribute("data-reka-popper-content-wrapper")?s.value=u.firstElementChild:s.value=u),u}}):null}});const Th="dismissableLayer.pointerDownOutside",Ch="dismissableLayer.focusOutside";function dl(t,e){if(!(e instanceof Element))return!1;const n=e.closest("[data-dismissable-layer]"),i=t.dataset.dismissableLayer===""?t:t.querySelector("[data-dismissable-layer]"),r=Array.from(t.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&(i===n||r.indexOf(i)<r.indexOf(n)))}function Ah(t,e,n=!0){const i=e?.value?.ownerDocument??globalThis?.document,r=Y(!1),s=Y(()=>{});return de(o=>{if(!fs||!bn(n))return;const a=async c=>{const u=c.target;if(!(!e?.value||!u)){if(dl(e.value,u)){r.value=!1;return}if(c.target&&!r.value){let f=function(){ul(Th,t,h)};const h={originalEvent:c};c.pointerType==="touch"?(i.removeEventListener("click",s.value),s.value=f,i.addEventListener("click",s.value,{once:!0})):f()}else i.removeEventListener("click",s.value);r.value=!1}},l=window.setTimeout(()=>{i.addEventListener("pointerdown",a)},0);o(()=>{window.clearTimeout(l),i.removeEventListener("pointerdown",a),i.removeEventListener("click",s.value)})}),{onPointerDownCapture:()=>{bn(n)&&(r.value=!0)}}}function Mh(t,e,n=!0){const i=e?.value?.ownerDocument??globalThis?.document,r=Y(!1);return de(s=>{if(!fs||!bn(n))return;const o=async a=>{if(!e?.value)return;await pe(),await pe();const l=a.target;!e.value||!l||dl(e.value,l)||a.target&&!r.value&&ul(Ch,t,{originalEvent:a})};i.addEventListener("focusin",o),s(()=>i.removeEventListener("focusin",o))}),{onFocusCapture:()=>{bn(n)&&(r.value=!0)},onBlurCapture:()=>{bn(n)&&(r.value=!1)}}}const Ct=sl({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set});var Oh=P({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(t,{emit:e}){const n=t,i=e,{forwardRef:r,currentElement:s}=Nt(),o=F(()=>s.value?.ownerDocument??globalThis.document),a=F(()=>Ct.layersRoot),l=F(()=>s.value?Array.from(a.value).indexOf(s.value):-1),c=F(()=>Ct.layersWithOutsidePointerEventsDisabled.size>0),u=F(()=>{const d=Array.from(a.value),[p]=[...Ct.layersWithOutsidePointerEventsDisabled].slice(-1),g=d.indexOf(p);return l.value>=g}),h=Ah(async d=>{const p=[...Ct.branches].some(g=>g?.contains(d.target));!u.value||p||(i("pointerDownOutside",d),i("interactOutside",d),await pe(),d.defaultPrevented||i("dismiss"))},s),f=Mh(d=>{[...Ct.branches].some(g=>g?.contains(d.target))||(i("focusOutside",d),i("interactOutside",d),d.defaultPrevented||i("dismiss"))},s);return ju("Escape",d=>{l.value===a.value.size-1&&(i("escapeKeyDown",d),d.defaultPrevented||i("dismiss"))}),de(d=>{s.value&&(n.disableOutsidePointerEvents&&(Ct.layersWithOutsidePointerEventsDisabled.size===0&&(Ct.originalBodyPointerEvents=o.value.body.style.pointerEvents,o.value.body.style.pointerEvents="none"),Ct.layersWithOutsidePointerEventsDisabled.add(s.value)),a.value.add(s.value),d(()=>{n.disableOutsidePointerEvents&&Ct.layersWithOutsidePointerEventsDisabled.size===1&&!fh(Ct.originalBodyPointerEvents)&&(o.value.body.style.pointerEvents=Ct.originalBodyPointerEvents)}))}),de(d=>{d(()=>{s.value&&(a.value.delete(s.value),Ct.layersWithOutsidePointerEventsDisabled.delete(s.value))})}),(d,p)=>($(),Z(T(Ne),{ref:T(r),"as-child":d.asChild,as:d.as,"data-dismissable-layer":"",style:Gi({pointerEvents:c.value?u.value?"auto":"none":void 0}),onFocusCapture:T(f).onFocusCapture,onBlurCapture:T(f).onBlurCapture,onPointerdownCapture:T(h).onPointerDownCapture},{default:H(()=>[B(d.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),Eh=Oh,Dh=P({__name:"Teleport",props:{to:{type:null,required:!1,default:"body"},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(t){const e=Ku();return(n,i)=>T(e)||n.forceMount?($(),Z(Zu,{key:0,to:n.to,disabled:n.disabled,defer:n.defer},[B(n.$slots,"default")],8,["to","disabled","defer"])):vi("v-if",!0)}}),$h=Dh,Fh=P({__name:"VisuallyHidden",props:{feature:{type:String,required:!1,default:"focusable"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(t){return(e,n)=>($(),Z(T(Ne),{as:e.as,"as-child":e.asChild,"aria-hidden":e.feature==="focusable"?"true":void 0,"data-hidden":e.feature==="fully-hidden"?"":void 0,tabindex:e.feature==="fully-hidden"?"-1":void 0,style:{position:"absolute",border:0,width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",wordWrap:"normal",top:"-1px",left:"-1px"}},{default:H(()=>[B(e.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}}),Ph=Fh;const[pl,Rh]=Xi("PopperRoot");var Nh=P({inheritAttrs:!1,__name:"PopperRoot",setup(t){const e=Y();return Rh({anchor:e,onAnchorChange:n=>e.value=n}),(n,i)=>B(n.$slots,"default")}}),Bh=Nh,Lh=P({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(t){const e=t,{forwardRef:n,currentElement:i}=Nt(),r=pl();return ol(()=>{r.onAnchorChange(e.reference??i.value)}),(s,o)=>($(),Z(T(Ne),{ref:T(n),as:s.as,"as-child":s.asChild},{default:H(()=>[B(s.$slots,"default")]),_:3},8,["as","as-child"]))}}),Ih=Lh;const Hh={key:0,d:"M0 0L6 6L12 0"},zh={key:1,d:"M0 0L4.58579 4.58579C5.36683 5.36683 6.63316 5.36684 7.41421 4.58579L12 0"};var Wh=P({__name:"Arrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(t){const e=t;return Nt(),(n,i)=>($(),Z(T(Ne),Vt(e,{width:n.width,height:n.height,viewBox:n.asChild?void 0:"0 0 12 6",preserveAspectRatio:n.asChild?void 0:"none"}),{default:H(()=>[B(n.$slots,"default",{},()=>[n.rounded?($(),G("path",zh)):($(),G("path",Hh))])]),_:3},16,["width","height","viewBox","preserveAspectRatio"]))}}),Uh=Wh;function qh(t){return t!==null}function Vh(t){return{name:"transformOrigin",options:t,fn(e){const{placement:n,rects:i,middlewareData:r}=e,o=r.arrow?.centerOffset!==0,a=o?0:t.arrowWidth,l=o?0:t.arrowHeight,[c,u]=Rr(n),h={start:"0%",center:"50%",end:"100%"}[u],f=(r.arrow?.x??0)+a/2,d=(r.arrow?.y??0)+l/2;let p="",g="";return c==="bottom"?(p=o?h:`${f}px`,g=`${-l}px`):c==="top"?(p=o?h:`${f}px`,g=`${i.floating.height+l}px`):c==="right"?(p=`${-l}px`,g=o?h:`${d}px`):c==="left"&&(p=`${i.floating.width+l}px`,g=o?h:`${d}px`),{data:{x:p,y:g}}}}}function Rr(t){const[e,n="center"]=t.split("-");return[e,n]}const Yh=["top","right","bottom","left"],ge=Math.min,wt=Math.max,_i=Math.round,Yn=Math.floor,Wt=t=>({x:t,y:t}),Gh={left:"right",right:"left",bottom:"top",top:"bottom"};function Nr(t,e,n){return wt(t,ge(e,n))}function te(t,e){return typeof t=="function"?t(e):t}function ee(t){return t.split("-")[0]}function an(t){return t.split("-")[1]}function vs(t){return t==="x"?"y":"x"}function _s(t){return t==="y"?"height":"width"}function zt(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function ys(t){return vs(zt(t))}function Xh(t,e,n){n===void 0&&(n=!1);const i=an(t),r=ys(t),s=_s(r);let o=r==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=yi(o)),[o,yi(o)]}function jh(t){const e=yi(t);return[Br(t),e,Br(e)]}function Br(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const go=["left","right"],mo=["right","left"],Zh=["top","bottom"],Kh=["bottom","top"];function Qh(t,e,n){switch(t){case"top":case"bottom":return n?e?mo:go:e?go:mo;case"left":case"right":return e?Zh:Kh;default:return[]}}function Jh(t,e,n,i){const r=an(t);let s=Qh(ee(t),n==="start",i);return r&&(s=s.map(o=>o+"-"+r),e&&(s=s.concat(s.map(Br)))),s}function yi(t){const e=ee(t);return Gh[e]+t.slice(e.length)}function tf(t){return{top:0,right:0,bottom:0,left:0,...t}}function gl(t){return typeof t!="number"?tf(t):{top:t,right:t,bottom:t,left:t}}function xi(t){const{x:e,y:n,width:i,height:r}=t;return{width:i,height:r,top:n,left:e,right:e+i,bottom:n+r,x:e,y:n}}function vo(t,e,n){let{reference:i,floating:r}=t;const s=zt(e),o=ys(e),a=_s(o),l=ee(e),c=s==="y",u=i.x+i.width/2-r.width/2,h=i.y+i.height/2-r.height/2,f=i[a]/2-r[a]/2;let d;switch(l){case"top":d={x:u,y:i.y-r.height};break;case"bottom":d={x:u,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:h};break;case"left":d={x:i.x-r.width,y:h};break;default:d={x:i.x,y:i.y}}switch(an(e)){case"start":d[o]-=f*(n&&c?-1:1);break;case"end":d[o]+=f*(n&&c?-1:1);break}return d}async function ef(t,e){var n;e===void 0&&(e={});const{x:i,y:r,platform:s,rects:o,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:f=!1,padding:d=0}=te(e,t),p=gl(d),m=a[f?h==="floating"?"reference":"floating":h],v=xi(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(m)))==null||n?m:m.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),y=h==="floating"?{x:i,y:r,width:o.floating.width,height:o.floating.height}:o.reference,_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),b=await(s.isElement==null?void 0:s.isElement(_))?await(s.getScale==null?void 0:s.getScale(_))||{x:1,y:1}:{x:1,y:1},k=xi(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:_,strategy:l}):y);return{top:(v.top-k.top+p.top)/b.y,bottom:(k.bottom-v.bottom+p.bottom)/b.y,left:(v.left-k.left+p.left)/b.x,right:(k.right-v.right+p.right)/b.x}}const nf=50,rf=async(t,e,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:s=[],platform:o}=n,a=o.detectOverflow?o:{...o,detectOverflow:ef},l=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:r}),{x:u,y:h}=vo(c,i,l),f=i,d=0;const p={};for(let g=0;g<s.length;g++){const m=s[g];if(!m)continue;const{name:v,fn:y}=m,{x:_,y:b,data:k,reset:x}=await y({x:u,y:h,initialPlacement:i,placement:f,strategy:r,middlewareData:p,rects:c,platform:a,elements:{reference:t,floating:e}});u=_??u,h=b??h,p[v]={...p[v],...k},x&&d<nf&&(d++,typeof x=="object"&&(x.placement&&(f=x.placement),x.rects&&(c=x.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:r}):x.rects),{x:u,y:h}=vo(c,f,l)),g=-1)}return{x:u,y:h,placement:f,strategy:r,middlewareData:p}},sf=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:r,rects:s,platform:o,elements:a,middlewareData:l}=e,{element:c,padding:u=0}=te(t,e)||{};if(c==null)return{};const h=gl(u),f={x:n,y:i},d=ys(r),p=_s(d),g=await o.getDimensions(c),m=d==="y",v=m?"top":"left",y=m?"bottom":"right",_=m?"clientHeight":"clientWidth",b=s.reference[p]+s.reference[d]-f[d]-s.floating[p],k=f[d]-s.reference[d],x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let w=x?x[_]:0;(!w||!await(o.isElement==null?void 0:o.isElement(x)))&&(w=a.floating[_]||s.floating[p]);const D=b/2-k/2,E=w/2-g[p]/2-1,O=ge(h[v],E),L=ge(h[y],E),C=O,z=w-g[p]-L,I=w/2-g[p]/2+D,tt=Nr(C,I,z),ot=!l.arrow&&an(r)!=null&&I!==tt&&s.reference[p]/2-(I<C?O:L)-g[p]/2<0,et=ot?I<C?I-C:I-z:0;return{[d]:f[d]+et,data:{[d]:tt,centerOffset:I-tt-et,...ot&&{alignmentOffset:et}},reset:ot}}}),of=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:r,middlewareData:s,rects:o,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...m}=te(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=ee(r),y=zt(a),_=ee(a)===a,b=await(l.isRTL==null?void 0:l.isRTL(c.floating)),k=f||(_||!g?[yi(a)]:jh(a)),x=p!=="none";!f&&x&&k.push(...Jh(a,g,p,b));const w=[a,...k],D=await l.detectOverflow(e,m),E=[];let O=((i=s.flip)==null?void 0:i.overflows)||[];if(u&&E.push(D[v]),h){const I=Xh(r,o,b);E.push(D[I[0]],D[I[1]])}if(O=[...O,{placement:r,overflows:E}],!E.every(I=>I<=0)){var L,C;const I=(((L=s.flip)==null?void 0:L.index)||0)+1,tt=w[I];if(tt&&(!(h==="alignment"?y!==zt(tt):!1)||O.every(j=>zt(j.placement)===y?j.overflows[0]>0:!0)))return{data:{index:I,overflows:O},reset:{placement:tt}};let ot=(C=O.filter(et=>et.overflows[0]<=0).sort((et,j)=>et.overflows[1]-j.overflows[1])[0])==null?void 0:C.placement;if(!ot)switch(d){case"bestFit":{var z;const et=(z=O.filter(j=>{if(x){const dt=zt(j.placement);return dt===y||dt==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(dt=>dt>0).reduce((dt,yt)=>dt+yt,0)]).sort((j,dt)=>j[1]-dt[1])[0])==null?void 0:z[0];et&&(ot=et);break}case"initialPlacement":ot=a;break}if(r!==ot)return{reset:{placement:ot}}}return{}}}};function _o(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function yo(t){return Yh.some(e=>t[e]>=0)}const af=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:i}=e,{strategy:r="referenceHidden",...s}=te(t,e);switch(r){case"referenceHidden":{const o=await i.detectOverflow(e,{...s,elementContext:"reference"}),a=_o(o,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:yo(a)}}}case"escaped":{const o=await i.detectOverflow(e,{...s,altBoundary:!0}),a=_o(o,n.floating);return{data:{escapedOffsets:a,escaped:yo(a)}}}default:return{}}}}},ml=new Set(["left","top"]);async function lf(t,e){const{placement:n,platform:i,elements:r}=t,s=await(i.isRTL==null?void 0:i.isRTL(r.floating)),o=ee(n),a=an(n),l=zt(n)==="y",c=ml.has(o)?-1:1,u=s&&l?-1:1,h=te(e,t);let{mainAxis:f,crossAxis:d,alignmentAxis:p}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof p=="number"&&(d=a==="end"?p*-1:p),l?{x:d*u,y:f*c}:{x:f*c,y:d*u}}const cf=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,i;const{x:r,y:s,placement:o,middlewareData:a}=e,l=await lf(e,t);return o===((n=a.offset)==null?void 0:n.placement)&&(i=a.arrow)!=null&&i.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:o}}}}},uf=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:r,platform:s}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:v=>{let{x:y,y:_}=v;return{x:y,y:_}}},...c}=te(t,e),u={x:n,y:i},h=await s.detectOverflow(e,c),f=zt(ee(r)),d=vs(f);let p=u[d],g=u[f];if(o){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",_=p+h[v],b=p-h[y];p=Nr(_,p,b)}if(a){const v=f==="y"?"top":"left",y=f==="y"?"bottom":"right",_=g+h[v],b=g-h[y];g=Nr(_,g,b)}const m=l.fn({...e,[d]:p,[f]:g});return{...m,data:{x:m.x-n,y:m.y-i,enabled:{[d]:o,[f]:a}}}}}},hf=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:i,placement:r,rects:s,middlewareData:o}=e,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=te(t,e),u={x:n,y:i},h=zt(r),f=vs(h);let d=u[f],p=u[h];const g=te(a,e),m=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const _=f==="y"?"height":"width",b=s.reference[f]-s.floating[_]+m.mainAxis,k=s.reference[f]+s.reference[_]-m.mainAxis;d<b?d=b:d>k&&(d=k)}if(c){var v,y;const _=f==="y"?"width":"height",b=ml.has(ee(r)),k=s.reference[h]-s.floating[_]+(b&&((v=o.offset)==null?void 0:v[h])||0)+(b?0:m.crossAxis),x=s.reference[h]+s.reference[_]+(b?0:((y=o.offset)==null?void 0:y[h])||0)-(b?m.crossAxis:0);p<k?p=k:p>x&&(p=x)}return{[f]:d,[h]:p}}}},ff=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,i;const{placement:r,rects:s,platform:o,elements:a}=e,{apply:l=()=>{},...c}=te(t,e),u=await o.detectOverflow(e,c),h=ee(r),f=an(r),d=zt(r)==="y",{width:p,height:g}=s.floating;let m,v;h==="top"||h==="bottom"?(m=h,v=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=h,m=f==="end"?"top":"bottom");const y=g-u.top-u.bottom,_=p-u.left-u.right,b=ge(g-u[m],y),k=ge(p-u[v],_),x=!e.middlewareData.shift;let w=b,D=k;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(D=_),(i=e.middlewareData.shift)!=null&&i.enabled.y&&(w=y),x&&!f){const O=wt(u.left,0),L=wt(u.right,0),C=wt(u.top,0),z=wt(u.bottom,0);d?D=p-2*(O!==0||L!==0?O+L:wt(u.left,u.right)):w=g-2*(C!==0||z!==0?C+z:wt(u.top,u.bottom))}await l({...e,availableWidth:D,availableHeight:w});const E=await o.getDimensions(a.floating);return p!==E.width||g!==E.height?{reset:{rects:!0}}:{}}}};function Ki(){return typeof window<"u"}function Be(t){return xs(t)?(t.nodeName||"").toLowerCase():"#document"}function kt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Yt(t){var e;return(e=(xs(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function xs(t){return Ki()?t instanceof Node||t instanceof kt(t).Node:!1}function Pt(t){return Ki()?t instanceof Element||t instanceof kt(t).Element:!1}function oe(t){return Ki()?t instanceof HTMLElement||t instanceof kt(t).HTMLElement:!1}function xo(t){return!Ki()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof kt(t).ShadowRoot}function Nn(t){const{overflow:e,overflowX:n,overflowY:i,display:r}=Rt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&r!=="inline"&&r!=="contents"}function df(t){return/^(table|td|th)$/.test(Be(t))}function Qi(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const pf=/transform|translate|scale|rotate|perspective|filter/,gf=/paint|layout|strict|content/,xe=t=>!!t&&t!=="none";let xr;function bs(t){const e=Pt(t)?Rt(t):t;return xe(e.transform)||xe(e.translate)||xe(e.scale)||xe(e.rotate)||xe(e.perspective)||!ws()&&(xe(e.backdropFilter)||xe(e.filter))||pf.test(e.willChange||"")||gf.test(e.contain||"")}function mf(t){let e=me(t);for(;oe(e)&&!Ze(e);){if(bs(e))return e;if(Qi(e))return null;e=me(e)}return null}function ws(){return xr==null&&(xr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),xr}function Ze(t){return/^(html|body|#document)$/.test(Be(t))}function Rt(t){return kt(t).getComputedStyle(t)}function Ji(t){return Pt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function me(t){if(Be(t)==="html")return t;const e=t.assignedSlot||t.parentNode||xo(t)&&t.host||Yt(t);return xo(e)?e.host:e}function vl(t){const e=me(t);return Ze(e)?t.ownerDocument?t.ownerDocument.body:t.body:oe(e)&&Nn(e)?e:vl(e)}function An(t,e,n){var i;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=vl(t),s=r===((i=t.ownerDocument)==null?void 0:i.body),o=kt(r);if(s){const a=Lr(o);return e.concat(o,o.visualViewport||[],Nn(r)?r:[],a&&n?An(a):[])}else return e.concat(r,An(r,[],n))}function Lr(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function _l(t){const e=Rt(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=oe(t),s=r?t.offsetWidth:n,o=r?t.offsetHeight:i,a=_i(n)!==s||_i(i)!==o;return a&&(n=s,i=o),{width:n,height:i,$:a}}function ks(t){return Pt(t)?t:t.contextElement}function Ve(t){const e=ks(t);if(!oe(e))return Wt(1);const n=e.getBoundingClientRect(),{width:i,height:r,$:s}=_l(e);let o=(s?_i(n.width):n.width)/i,a=(s?_i(n.height):n.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const vf=Wt(0);function yl(t){const e=kt(t);return!ws()||!e.visualViewport?vf:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function _f(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==kt(t)?!1:e}function Ee(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=ks(t);let o=Wt(1);e&&(i?Pt(i)&&(o=Ve(i)):o=Ve(t));const a=_f(s,n,i)?yl(s):Wt(0);let l=(r.left+a.x)/o.x,c=(r.top+a.y)/o.y,u=r.width/o.x,h=r.height/o.y;if(s){const f=kt(s),d=i&&Pt(i)?kt(i):i;let p=f,g=Lr(p);for(;g&&i&&d!==p;){const m=Ve(g),v=g.getBoundingClientRect(),y=Rt(g),_=v.left+(g.clientLeft+parseFloat(y.paddingLeft))*m.x,b=v.top+(g.clientTop+parseFloat(y.paddingTop))*m.y;l*=m.x,c*=m.y,u*=m.x,h*=m.y,l+=_,c+=b,p=kt(g),g=Lr(p)}}return xi({width:u,height:h,x:l,y:c})}function tr(t,e){const n=Ji(t).scrollLeft;return e?e.left+n:Ee(Yt(t)).left+n}function xl(t,e){const n=t.getBoundingClientRect(),i=n.left+e.scrollLeft-tr(t,n),r=n.top+e.scrollTop;return{x:i,y:r}}function yf(t){let{elements:e,rect:n,offsetParent:i,strategy:r}=t;const s=r==="fixed",o=Yt(i),a=e?Qi(e.floating):!1;if(i===o||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=Wt(1);const u=Wt(0),h=oe(i);if((h||!h&&!s)&&((Be(i)!=="body"||Nn(o))&&(l=Ji(i)),h)){const d=Ee(i);c=Ve(i),u.x=d.x+i.clientLeft,u.y=d.y+i.clientTop}const f=o&&!h&&!s?xl(o,l):Wt(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}}function xf(t){return Array.from(t.getClientRects())}function bf(t){const e=Yt(t),n=Ji(t),i=t.ownerDocument.body,r=wt(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),s=wt(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let o=-n.scrollLeft+tr(t);const a=-n.scrollTop;return Rt(i).direction==="rtl"&&(o+=wt(e.clientWidth,i.clientWidth)-r),{width:r,height:s,x:o,y:a}}const bo=25;function wf(t,e){const n=kt(t),i=Yt(t),r=n.visualViewport;let s=i.clientWidth,o=i.clientHeight,a=0,l=0;if(r){s=r.width,o=r.height;const u=ws();(!u||u&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}const c=tr(i);if(c<=0){const u=i.ownerDocument,h=u.body,f=getComputedStyle(h),d=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,p=Math.abs(i.clientWidth-h.clientWidth-d);p<=bo&&(s-=p)}else c<=bo&&(s+=c);return{width:s,height:o,x:a,y:l}}function kf(t,e){const n=Ee(t,!0,e==="fixed"),i=n.top+t.clientTop,r=n.left+t.clientLeft,s=oe(t)?Ve(t):Wt(1),o=t.clientWidth*s.x,a=t.clientHeight*s.y,l=r*s.x,c=i*s.y;return{width:o,height:a,x:l,y:c}}function wo(t,e,n){let i;if(e==="viewport")i=wf(t,n);else if(e==="document")i=bf(Yt(t));else if(Pt(e))i=kf(e,n);else{const r=yl(t);i={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return xi(i)}function bl(t,e){const n=me(t);return n===e||!Pt(n)||Ze(n)?!1:Rt(n).position==="fixed"||bl(n,e)}function Sf(t,e){const n=e.get(t);if(n)return n;let i=An(t,[],!1).filter(a=>Pt(a)&&Be(a)!=="body"),r=null;const s=Rt(t).position==="fixed";let o=s?me(t):t;for(;Pt(o)&&!Ze(o);){const a=Rt(o),l=bs(o);!l&&a.position==="fixed"&&(r=null),(s?!l&&!r:!l&&a.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||Nn(o)&&!l&&bl(t,o))?i=i.filter(u=>u!==o):r=a,o=me(o)}return e.set(t,i),i}function Tf(t){let{element:e,boundary:n,rootBoundary:i,strategy:r}=t;const o=[...n==="clippingAncestors"?Qi(e)?[]:Sf(e,this._c):[].concat(n),i],a=wo(e,o[0],r);let l=a.top,c=a.right,u=a.bottom,h=a.left;for(let f=1;f<o.length;f++){const d=wo(e,o[f],r);l=wt(d.top,l),c=ge(d.right,c),u=ge(d.bottom,u),h=wt(d.left,h)}return{width:c-h,height:u-l,x:h,y:l}}function Cf(t){const{width:e,height:n}=_l(t);return{width:e,height:n}}function Af(t,e,n){const i=oe(e),r=Yt(e),s=n==="fixed",o=Ee(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const l=Wt(0);function c(){l.x=tr(r)}if(i||!i&&!s)if((Be(e)!=="body"||Nn(r))&&(a=Ji(e)),i){const d=Ee(e,!0,s,e);l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}else r&&c();s&&!i&&r&&c();const u=r&&!i&&!s?xl(r,a):Wt(0),h=o.left+a.scrollLeft-l.x-u.x,f=o.top+a.scrollTop-l.y-u.y;return{x:h,y:f,width:o.width,height:o.height}}function br(t){return Rt(t).position==="static"}function ko(t,e){if(!oe(t)||Rt(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return Yt(t)===n&&(n=n.ownerDocument.body),n}function wl(t,e){const n=kt(t);if(Qi(t))return n;if(!oe(t)){let r=me(t);for(;r&&!Ze(r);){if(Pt(r)&&!br(r))return r;r=me(r)}return n}let i=ko(t,e);for(;i&&df(i)&&br(i);)i=ko(i,e);return i&&Ze(i)&&br(i)&&!bs(i)?n:i||mf(t)||n}const Mf=async function(t){const e=this.getOffsetParent||wl,n=this.getDimensions,i=await n(t.floating);return{reference:Af(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Of(t){return Rt(t).direction==="rtl"}const Ef={convertOffsetParentRelativeRectToViewportRelativeRect:yf,getDocumentElement:Yt,getClippingRect:Tf,getOffsetParent:wl,getElementRects:Mf,getClientRects:xf,getDimensions:Cf,getScale:Ve,isElement:Pt,isRTL:Of};function kl(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Df(t,e){let n=null,i;const r=Yt(t);function s(){var a;clearTimeout(i),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const c=t.getBoundingClientRect(),{left:u,top:h,width:f,height:d}=c;if(a||e(),!f||!d)return;const p=Yn(h),g=Yn(r.clientWidth-(u+f)),m=Yn(r.clientHeight-(h+d)),v=Yn(u),_={rootMargin:-p+"px "+-g+"px "+-m+"px "+-v+"px",threshold:wt(0,ge(1,l))||1};let b=!0;function k(x){const w=x[0].intersectionRatio;if(w!==l){if(!b)return o();w?o(!1,w):i=setTimeout(()=>{o(!1,1e-7)},1e3)}w===1&&!kl(c,t.getBoundingClientRect())&&o(),b=!1}try{n=new IntersectionObserver(k,{..._,root:r.ownerDocument})}catch{n=new IntersectionObserver(k,_)}n.observe(t)}return o(!0),s}function $f(t,e,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,c=ks(t),u=r||s?[...c?An(c):[],...e?An(e):[]]:[];u.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const h=c&&a?Df(c,n):null;let f=-1,d=null;o&&(d=new ResizeObserver(v=>{let[y]=v;y&&y.target===c&&d&&e&&(d.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var _;(_=d)==null||_.observe(e)})),n()}),c&&!l&&d.observe(c),e&&d.observe(e));let p,g=l?Ee(t):null;l&&m();function m(){const v=Ee(t);g&&!kl(g,v)&&n(),g=v,p=requestAnimationFrame(m)}return n(),()=>{var v;u.forEach(y=>{r&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),h?.(),(v=d)==null||v.disconnect(),d=null,l&&cancelAnimationFrame(p)}}const Ff=cf,Pf=uf,So=of,Rf=ff,Nf=af,Bf=sf,Lf=hf,If=(t,e,n)=>{const i=new Map,r={platform:Ef,...n},s={...r.platform,_c:i};return rf(t,e,{...r,platform:s})};function Hf(t){return t!=null&&typeof t=="object"&&"$el"in t}function Ir(t){if(Hf(t)){const e=t.$el;return xs(e)&&Be(e)==="#comment"?null:e}return t}function Ue(t){return typeof t=="function"?t():T(t)}function zf(t){return{name:"arrow",options:t,fn(e){const n=Ir(Ue(t.element));return n==null?{}:Bf({element:n,padding:t.padding}).fn(e)}}}function Sl(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function To(t,e){const n=Sl(t);return Math.round(e*n)/n}function Wf(t,e,n){n===void 0&&(n={});const i=n.whileElementsMounted,r=F(()=>{var w;return(w=Ue(n.open))!=null?w:!0}),s=F(()=>Ue(n.middleware)),o=F(()=>{var w;return(w=Ue(n.placement))!=null?w:"bottom"}),a=F(()=>{var w;return(w=Ue(n.strategy))!=null?w:"absolute"}),l=F(()=>{var w;return(w=Ue(n.transform))!=null?w:!0}),c=F(()=>Ir(t.value)),u=F(()=>Ir(e.value)),h=Y(0),f=Y(0),d=Y(a.value),p=Y(o.value),g=th({}),m=Y(!1),v=F(()=>{const w={position:d.value,left:"0",top:"0"};if(!u.value)return w;const D=To(u.value,h.value),E=To(u.value,f.value);return l.value?{...w,transform:"translate("+D+"px, "+E+"px)",...Sl(u.value)>=1.5&&{willChange:"transform"}}:{position:d.value,left:D+"px",top:E+"px"}});let y;function _(){if(c.value==null||u.value==null)return;const w=r.value;If(c.value,u.value,{middleware:s.value,placement:o.value,strategy:a.value}).then(D=>{h.value=D.x,f.value=D.y,d.value=D.strategy,p.value=D.placement,g.value=D.middlewareData,m.value=w!==!1})}function b(){typeof y=="function"&&(y(),y=void 0)}function k(){if(b(),i===void 0){_();return}if(c.value!=null&&u.value!=null){y=i(c.value,u.value,_);return}}function x(){r.value||(m.value=!1)}return pt([s,o,a,r],_,{flush:"sync"}),pt([c,u],k,{flush:"sync"}),pt(r,x,{flush:"sync"}),Qu()&&Ju(b),{x:ze(h),y:ze(f),strategy:ze(d),placement:ze(p),middlewareData:ze(g),isPositioned:ze(m),floatingStyles:v,update:_}}const Uf={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[qf,Vf]=Xi("PopperContent");var Yf=P({inheritAttrs:!1,__name:"PopperContent",props:nh({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...Uf}),emits:["placed"],setup(t,{emit:e}){const n=t,i=e,r=pl(),{forwardRef:s,currentElement:o}=Nt(),a=Y(),l=Y(),{width:c,height:u}=bh(l),h=F(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),f=F(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),d=F(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),p=F(()=>({padding:f.value,boundary:d.value.filter(qh),altBoundary:d.value.length>0})),g=F(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),m=eh(()=>[Ff({mainAxis:n.sideOffset+u.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&So({...p.value,...g.value}),n.avoidCollisions&&Pf({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?Lf():void 0,...p.value}),!n.prioritizePosition&&n.avoidCollisions&&So({...p.value,...g.value}),Rf({...p.value,apply:({elements:C,rects:z,availableWidth:I,availableHeight:tt})=>{const{width:ot,height:et}=z.reference,j=C.floating.style;j.setProperty("--reka-popper-available-width",`${I}px`),j.setProperty("--reka-popper-available-height",`${tt}px`),j.setProperty("--reka-popper-anchor-width",`${ot}px`),j.setProperty("--reka-popper-anchor-height",`${et}px`)}}),l.value&&zf({element:l.value,padding:n.arrowPadding}),Vh({arrowWidth:c.value,arrowHeight:u.value}),n.hideWhenDetached&&Nf({strategy:"referenceHidden",...p.value})]),v=F(()=>n.reference??r.anchor.value),{floatingStyles:y,placement:_,isPositioned:b,middlewareData:k}=Wf(v,a,{strategy:n.positionStrategy,placement:h,whileElementsMounted:(...C)=>$f(...C,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:m}),x=F(()=>Rr(_.value)[0]),w=F(()=>Rr(_.value)[1]);ol(()=>{b.value&&i("placed")});const D=F(()=>{const C=k.value.arrow?.centerOffset!==0;return n.hideShiftedArrow&&C}),E=Y("");de(()=>{o.value&&(E.value=window.getComputedStyle(o.value).zIndex)});const O=F(()=>k.value.arrow?.x??0),L=F(()=>k.value.arrow?.y??0);return Vf({placedSide:x,onArrowChange:C=>l.value=C,arrowX:O,arrowY:L,shouldHideArrow:D}),(C,z)=>($(),G("div",{ref_key:"floatingRef",ref:a,"data-reka-popper-content-wrapper":"",style:Gi({...T(y),transform:T(b)?T(y).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:E.value,"--reka-popper-transform-origin":[T(k).transformOrigin?.x,T(k).transformOrigin?.y].join(" "),...T(k).hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}})},[lt(T(Ne),Vt({ref:T(s)},C.$attrs,{"as-child":n.asChild,as:C.as,"data-side":x.value,"data-align":w.value,style:{animation:T(b)?void 0:"none"}}),{default:H(()=>[B(C.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4))}}),Gf=Yf;const Xf={top:"bottom",right:"left",bottom:"top",left:"right"};var jf=P({inheritAttrs:!1,__name:"PopperArrow",props:{width:{type:Number,required:!1},height:{type:Number,required:!1},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(t){const{forwardRef:e}=Nt(),n=qf(),i=F(()=>Xf[n.placedSide.value]);return(r,s)=>($(),G("span",{ref:o=>{T(n).onArrowChange(o??void 0)},style:Gi({position:"absolute",left:T(n).arrowX?.value?`${T(n).arrowX?.value}px`:void 0,top:T(n).arrowY?.value?`${T(n).arrowY?.value}px`:void 0,[i.value]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[T(n).placedSide.value],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[T(n).placedSide.value],visibility:T(n).shouldHideArrow.value?"hidden":void 0})},[lt(Uh,Vt(r.$attrs,{ref:T(e),style:{display:"block"},as:r.as,"as-child":r.asChild,rounded:r.rounded,width:r.width,height:r.height}),{default:H(()=>[B(r.$slots,"default")]),_:3},16,["as","as-child","rounded","width","height"])],4))}}),Zf=jf,Kf=P({__name:"TooltipArrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(t){const e=t;return Nt(),(n,i)=>($(),Z(T(Zf),ps(gs(e)),{default:H(()=>[B(n.$slots,"default")]),_:3},16))}}),Qf=Kf;const Tl="tooltip.open",[er,Jf]=Xi("TooltipRoot");var td=P({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},delayDuration:{type:Number,required:!1,default:void 0},disableHoverableContent:{type:Boolean,required:!1,default:void 0},disableClosingTrigger:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:void 0}},emits:["update:open"],setup(t,{emit:e}){const n=t,i=e;Nt();const r=ji(),s=F(()=>n.disableHoverableContent??r.disableHoverableContent.value),o=F(()=>n.disableClosingTrigger??r.disableClosingTrigger.value),a=F(()=>n.disabled??r.disabled.value),l=F(()=>n.delayDuration??r.delayDuration.value),c=F(()=>n.ignoreNonKeyboardFocus??r.ignoreNonKeyboardFocus.value),u=ih(n,"open",i,{defaultValue:n.defaultOpen,passive:n.open===void 0});pt(u,_=>{r.onClose&&(_?(r.onOpen(),document.dispatchEvent(new CustomEvent(Tl))):r.onClose())});const h=Y(!1),f=Y(),d=F(()=>u.value?h.value?"delayed-open":"instant-open":"closed"),{start:p,stop:g}=rh(()=>{h.value=!0,u.value=!0},l,{immediate:!1});function m(){g(),h.value=!1,u.value=!0}function v(){g(),u.value=!1}function y(){p()}return Jf({contentId:"",open:u,stateAttribute:d,trigger:f,onTriggerChange(_){f.value=_},onTriggerEnter(){r.isOpenDelayed.value?y():m()},onTriggerLeave(){s.value?v():g()},onOpen:m,onClose:v,disableHoverableContent:s,disableClosingTrigger:o,disabled:a,ignoreNonKeyboardFocus:c}),(_,b)=>($(),Z(T(Bh),null,{default:H(()=>[B(_.$slots,"default",{open:T(u)})]),_:3}))}}),ed=td,nd=P({__name:"TooltipContentImpl",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1,default:void 0},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1,default:void 0},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1,default:void 0},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(t,{emit:e}){const n=t,i=e,r=er(),s=ji(),{forwardRef:o,currentElement:a}=Nt(),l=F(()=>n.ariaLabel||a.value?.textContent),c=F(()=>{const{ariaLabel:u,...h}=n;return oh(h,s.content.value??{},{side:"top",sideOffset:0,align:"center",avoidCollisions:!0,collisionBoundary:[],collisionPadding:0,arrowPadding:0,sticky:"partial",hideWhenDetached:!1})});return _e(()=>{po(window,"scroll",u=>{u.target?.contains(r.trigger.value)&&r.onClose()},{capture:!0}),po(window,Tl,r.onClose)}),(u,h)=>($(),Z(T(Eh),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:h[0]||(h[0]=f=>i("escapeKeyDown",f)),onPointerDownOutside:h[1]||(h[1]=f=>{T(r).disableClosingTrigger.value&&T(r).trigger.value?.contains(f.target)&&f.preventDefault(),i("pointerDownOutside",f)}),onFocusOutside:h[2]||(h[2]=sh(()=>{},["prevent"])),onDismiss:h[3]||(h[3]=f=>T(r).onClose())},{default:H(()=>[lt(T(Gf),Vt({ref:T(o),"data-state":T(r).stateAttribute.value},{...u.$attrs,...c.value},{style:{"--reka-tooltip-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-tooltip-content-available-width":"var(--reka-popper-available-width)","--reka-tooltip-content-available-height":"var(--reka-popper-available-height)","--reka-tooltip-trigger-width":"var(--reka-popper-anchor-width)","--reka-tooltip-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:H(()=>[B(u.$slots,"default"),lt(T(Ph),{id:T(r).contentId,role:"tooltip"},{default:H(()=>[qe(Jt(l.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),Cl=nd,id=P({__name:"TooltipContentHoverable",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},setup(t){const n=hl(t),{forwardRef:i,currentElement:r}=Nt(),{trigger:s,onClose:o}=er(),a=ji(),{isPointerInTransit:l,onPointerExit:c}=ph(s,r);return a.isPointerInTransitRef=l,c(()=>{o()}),(u,h)=>($(),Z(Cl,Vt({ref:T(i)},T(n)),{default:H(()=>[B(u.$slots,"default")]),_:3},16))}}),rd=id,sd=P({__name:"TooltipContent",props:{forceMount:{type:Boolean,required:!1},ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(t,{emit:e}){const n=t,i=e,r=er(),s=ms(n,i),{forwardRef:o}=Nt();return(a,l)=>($(),Z(T(Sh),{present:a.forceMount||T(r).open.value},{default:H(()=>[($(),Z(ah(T(r).disableHoverableContent.value?Cl:rd),Vt({ref:T(o)},T(s)),{default:H(()=>[B(a.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),od=sd,ad=P({__name:"TooltipPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(t){const e=t;return(n,i)=>($(),Z(T($h),ps(gs(e)),{default:H(()=>[B(n.$slots,"default")]),_:3},16))}}),ld=ad,cd=P({__name:"TooltipTrigger",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(t){const e=t,n=er(),i=ji();n.contentId||=fl(void 0,"reka-tooltip-content");const{forwardRef:r,currentElement:s}=Nt(),o=Y(!1),a=Y(!1),l=F(()=>n.disabled.value?{}:{click:g,focus:d,pointermove:h,pointerleave:f,pointerdown:u,blur:p});_e(()=>{n.onTriggerChange(s.value)});function c(){setTimeout(()=>{o.value=!1},1)}function u(){n.open&&!n.disableClosingTrigger.value&&n.onClose(),o.value=!0,document.addEventListener("pointerup",c,{once:!0})}function h(m){m.pointerType!=="touch"&&!a.value&&!i.isPointerInTransitRef.value&&(n.onTriggerEnter(),a.value=!0)}function f(){n.onTriggerLeave(),a.value=!1}function d(m){o.value||n.ignoreNonKeyboardFocus.value&&!m.target.matches?.(":focus-visible")||n.onOpen()}function p(){n.onClose()}function g(){n.disableClosingTrigger.value||n.onClose()}return(m,v)=>($(),Z(T(Ih),{"as-child":"",reference:m.reference},{default:H(()=>[lt(T(Ne),Vt({ref:T(r),"aria-describedby":T(n).open.value?T(n).contentId:void 0,"data-state":T(n).stateAttribute.value,as:m.as,"as-child":e.asChild,"data-grace-area-trigger":""},lh(l.value)),{default:H(()=>[B(m.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3},8,["reference"]))}}),ud=cd;const hd=P({__name:"Tooltip",props:{defaultOpen:{type:Boolean},open:{type:Boolean},delayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:["update:open"],setup(t,{emit:e}){const r=ms(t,e);return(s,o)=>($(),Z(T(ed),Vt({"data-slot":"tooltip"},T(r)),{default:H(a=>[B(s.$slots,"default",ps(gs(a)))]),_:3},16))}}),fd=P({inheritAttrs:!1,__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["escapeKeyDown","pointerDownOutside"],setup(t,{emit:e}){const n=t,i=e,r=ch(n,"class"),s=ms(r,i);return(o,a)=>($(),Z(T(ld),null,{default:H(()=>[lt(T(od),Vt({"data-slot":"tooltip-content"},{...T(s),...o.$attrs},{class:T(ht)("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit rounded-md px-3 py-1.5 text-xs text-balance",n.class)}),{default:H(()=>[B(o.$slots,"default"),lt(T(Qf),{class:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]),_:3},16,["class"])]),_:3}))}}),dd=P({__name:"TooltipTrigger",props:{reference:{},asChild:{type:Boolean},as:{}},setup(t){const e=t;return(n,i)=>($(),Z(T(ud),Vt({"data-slot":"tooltip-trigger"},e),{default:H(()=>[B(n.$slots,"default")]),_:3},16))}}),pd={class:"max-w-64 leading-relaxed"},gd=P({name:"ValueTooltip",__name:"ValueTooltip",props:{content:{}},setup(t){return(e,n)=>{const i=dd,r=fd,s=hd;return t.content?($(),Z(s,{key:1},{default:H(()=>[lt(i,{"as-child":""},{default:H(()=>[B(e.$slots,"default")]),_:3}),lt(r,{side:"bottom"},{default:H(()=>[Et("p",pd,Jt(t.content),1)]),_:1})]),_:3})):B(e.$slots,"default",{key:0})}}}),md=Object.assign(gd,{__name:"ValueTooltip"}),vd=P({__name:"Card",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){const e=t;return(n,i)=>($(),G("div",{"data-slot":"card",class:it(T(ht)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e.class))},[B(n.$slots,"default")],2))}}),_d=P({__name:"CardContent",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){const e=t;return(n,i)=>($(),G("div",{"data-slot":"card-content",class:it(T(ht)("px-6",e.class))},[B(n.$slots,"default")],2))}}),yd=P({__name:"CardHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){const e=t;return(n,i)=>($(),G("div",{"data-slot":"card-header",class:it(T(ht)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e.class))},[B(n.$slots,"default")],2))}}),xd=P({__name:"CardTitle",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){const e=t;return(n,i)=>($(),G("h3",{"data-slot":"card-title",class:it(T(ht)("leading-none font-semibold",e.class))},[B(n.$slots,"default")],2))}}),bd={class:"flex items-start justify-between gap-4"},wd={class:"min-w-0 space-y-1"},kd={key:0,class:"text-sm text-muted-foreground"},Sd=P({name:"StatisticalAnalysisPanel",__name:"Panel",props:{compact:{type:Boolean},description:{},icon:{},title:{}},setup(t){return(e,n)=>{const i=xd,r=cl,s=yd,o=_d,a=vd;return $(),Z(a,{class:it(T(ht)("shadow-none bg-transparent",t.compact?"gap-3 py-4":"gap-4 py-5"))},{default:H(()=>[lt(s,{class:it(T(ht)(t.compact?"px-4":"px-5"))},{default:H(()=>[Et("div",bd,[Et("div",wd,[lt(i,{class:it(t.compact?"text-xs font-medium text-muted-foreground uppercase tracking-wide":"text-base")},{default:H(()=>[qe(Jt(t.title),1)]),_:1},8,["class"]),t.description?($(),G("p",kd,Jt(t.description),1)):vi("",!0)]),t.icon?($(),G("div",{key:0,class:it(T(ht)("shrink-0 rounded-lg bg-secondary text-secondary-foreground flex items-center justify-center",t.compact?"size-7":"size-8"))},[lt(r,{mode:"svg",name:t.icon,class:it(t.compact?"size-3.5":"size-4")},null,8,["name","class"])],2)):vi("",!0)])]),_:1},8,["class"]),lt(o,{class:it(T(ht)(t.compact?"px-4":"px-5"))},{default:H(()=>[B(e.$slots,"default")]),_:3},8,["class"])]),_:3},8,["class"])}}}),Td=Object.assign(Sd,{__name:"StatisticalAnalysisPanel"}),Cd={class:"flex justify-between items-center"},Ad={class:"flex items-center gap-1"},Md=P({name:"StatisticalAnalysisTotalCard",__name:"TotalCard",props:{detail:{},name:{},value:{},icon:{},trend:{},trendTone:{default:"neutral"}},setup(t){const e=t,n=F(()=>e.trendTone==="down"?{icon:"lucide:trending-down",iconClass:"size-3 text-red-500",textClass:"text-xs font-medium text-red-500"}:e.trendTone==="up"?{icon:"lucide:trending-up",iconClass:"size-3 text-emerald-500",textClass:"text-xs font-medium text-emerald-600 dark:text-emerald-400"}:{icon:"lucide:minus",iconClass:"size-3 text-muted-foreground",textClass:"text-xs font-medium text-muted-foreground"});return(i,r)=>{const s=md,o=cl,a=Td;return $(),Z(a,{compact:"",icon:t.icon,title:t.name},{default:H(()=>[Et("div",Cd,[lt(s,{content:t.detail},{default:H(()=>[Et("span",{class:it(T(ht)("text-2xl font-bold tracking-tight"))},Jt(t.value),3)]),_:1},8,["content"]),Et("div",Ad,[lt(o,{class:it(T(n).iconClass),mode:"svg",name:T(n).icon},null,8,["class","name"]),Et("span",{class:it(T(n).textClass)},Jt(t.trend),3)])])]),_:1},8,["icon","title"])}}}),Od=Object.assign(Md,{__name:"StatisticalAnalysisTotalCard"}),Ed={class:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4"},Dd=P({name:"DashboardOverviewCards",__name:"OverviewCards",props:{cards:{}},setup(t){return(e,n)=>{const i=Od;return $(),G("div",Ed,[($(!0),G(al,null,ll(t.cards,r=>($(),Z(i,{key:r.name,detail:r.detail,icon:r.icon,name:r.name,trend:r.trend,"trend-tone":r.trendTone,value:r.value},null,8,["detail","icon","name","trend","trend-tone","value"]))),128))])}}}),F1=Object.assign(Dd,{__name:"DashboardOverviewCards"}),$d=P({__name:"ChartStyle",props:{id:{}},setup(t){const{config:e}=l1(),n=F(()=>Object.entries(e.value).filter(([,i])=>i.theme||i.color));return(i,r)=>n.value.length?($(),Z(T(Ne),{key:0,as:"style"},{default:H(()=>[qe(Jt(Object.entries(T(a1)).map(([s,o])=>`
4
4
  ${o} [data-chart=${t.id}] {
@@ -1,4 +1,4 @@
1
- import{aA as E,g as C,aW as z,aX as K,y as M,aF as N,h as F,W as R,aY as L,aZ as ee,a_ as te,s as ae,ab as ne,a6 as se,aj as re,ar as oe,r as ie,a3 as B,n as ce,aa as le,C as W,a7 as ue,p as fe,a$ as q,b0 as de}from"./DgKrPjze.js";const he=Object.freeze({left:0,top:0,width:16,height:16}),V=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),T=Object.freeze({...he,...V});Object.freeze({...T,body:"",hidden:!1});function me(e){const[t,a,s,n]=e;if(s!==n){const i=Math.max(s,n);return[t-(i-s)/2,a-(i-n)/2,i,i]}return e}const ge=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ye=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function I(e,t,a){if(t===1)return e;if(a=a||100,typeof e=="number")return Math.ceil(e*t*a)/a;if(typeof e!="string")return e;const s=e.split(ge);if(s===null||!s.length)return e;const n=[];let i=s.shift(),r=ye.test(i);for(;;){if(r){const c=parseFloat(i);isNaN(c)?n.push(i):n.push(Math.ceil(c*t*a)/a)}else n.push(i);if(i=s.shift(),i===void 0)return n.join("");r=!r}}const be=Object.freeze({width:null,height:null}),ve=Object.freeze({...be,...V});function _e(e,t="defs"){let a="";const s=e.indexOf("<"+t);for(;s>=0;){const n=e.indexOf(">",s),i=e.indexOf("</"+t);if(n===-1||i===-1)break;const r=e.indexOf(">",i);if(r===-1)break;a+=e.slice(n+1,i).trim(),e=e.slice(0,s).trim()+e.slice(r+1)}return{defs:a,content:e}}function pe(e,t){return e?"<defs>"+e+"</defs>"+t:t}function De(e,t,a){const s=_e(e);return pe(s.defs,t+s.content+a)}const we=e=>e==="unset"||e==="undefined"||e==="none";function Se(e,t){const a={...T,...e},s={...ve,...t},n={left:a.left,top:a.top,width:a.width,height:a.height};let i=a.body;[a,s].forEach(D=>{const g=[],m=D.hFlip,u=D.vFlip;let h=D.rotate;m?u?h+=2:(g.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),g.push("scale(-1 1)"),n.top=n.left=0):u&&(g.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),g.push("scale(1 -1)"),n.top=n.left=0);let b;switch(h<0&&(h-=Math.floor(h/4)*4),h=h%4,h){case 1:b=n.height/2+n.top,g.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:g.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:b=n.width/2+n.left,g.unshift("rotate(-90 "+b.toString()+" "+b.toString()+")");break}h%2===1&&(n.left!==n.top&&(b=n.left,n.left=n.top,n.top=b),n.width!==n.height&&(b=n.width,n.width=n.height,n.height=b)),g.length&&(i=De(i,'<g transform="'+g.join(" ")+'">',"</g>"))});const r=s.width,c=s.height,l=n.width,d=n.height;let o,f;r===null?(f=c===null?"1em":c==="auto"?d:c,o=I(f,l/d)):(o=r==="auto"?l:r,f=c===null?I(o,d/l):c==="auto"?d:c);const _={},w=(D,g)=>{we(g)||(_[D]=g.toString())};w("width",o),w("height",f);const y=[n.left,n.top,l,d];return _.viewBox=y.join(" "),{attributes:_,viewBox:y,body:i}}function Ce(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function xe(e){return"data:image/svg+xml,"+Ce(e)}function Oe(e){return'url("'+xe(e)+'")'}function Pe(e,t){let a=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in t)a+=" "+s+'="'+t[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+a+">"+e+"</svg>"}function Ee(e){const t={display:"inline-block",width:"1em",height:"1em"},a=e.varName;switch(e.pseudoSelector&&(t.content="''"),e.mode){case"background":a&&(t["background-image"]="var(--"+a+")"),t["background-repeat"]="no-repeat",t["background-size"]="100% 100%";break;case"mask":t["background-color"]="currentColor",a&&(t["mask-image"]=t["-webkit-mask-image"]="var(--"+a+")"),t["mask-repeat"]=t["-webkit-mask-repeat"]="no-repeat",t["mask-size"]=t["-webkit-mask-size"]="100% 100%";break}return t}function Ne(e,t){const a={},s=t.varName,n=Se(e);let i=n.viewBox;i[2]!==i[3]&&(t.forceSquare?i=me(i):a.width=I("1em",i[2]/i[3]));const r=Oe(Pe(n.body.replace(/currentColor/g,t.color||"black"),{viewBox:`${i[0]} ${i[1]} ${i[2]} ${i[3]}`,width:`${i[2]}`,height:`${i[3]}`}));if(s)a["--"+s]=r;else switch(t.mode){case"background":a["background-image"]=r;break;case"mask":a["mask-image"]=a["-webkit-mask-image"]=r;break}return a}const k={selectorStart:{compressed:"{",compact:" {",expanded:" {"},selectorEnd:{compressed:"}",compact:`; }
1
+ import{aA as E,g as C,aW as z,aX as K,y as M,aF as N,h as F,W as R,aY as L,aZ as ee,a_ as te,s as ae,ab as ne,a6 as se,aj as re,ar as oe,r as ie,a3 as B,n as ce,aa as le,C as W,a7 as ue,p as fe,a$ as q,b0 as de}from"./IstswKJB.js";const he=Object.freeze({left:0,top:0,width:16,height:16}),V=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),T=Object.freeze({...he,...V});Object.freeze({...T,body:"",hidden:!1});function me(e){const[t,a,s,n]=e;if(s!==n){const i=Math.max(s,n);return[t-(i-s)/2,a-(i-n)/2,i,i]}return e}const ge=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ye=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function I(e,t,a){if(t===1)return e;if(a=a||100,typeof e=="number")return Math.ceil(e*t*a)/a;if(typeof e!="string")return e;const s=e.split(ge);if(s===null||!s.length)return e;const n=[];let i=s.shift(),r=ye.test(i);for(;;){if(r){const c=parseFloat(i);isNaN(c)?n.push(i):n.push(Math.ceil(c*t*a)/a)}else n.push(i);if(i=s.shift(),i===void 0)return n.join("");r=!r}}const be=Object.freeze({width:null,height:null}),ve=Object.freeze({...be,...V});function _e(e,t="defs"){let a="";const s=e.indexOf("<"+t);for(;s>=0;){const n=e.indexOf(">",s),i=e.indexOf("</"+t);if(n===-1||i===-1)break;const r=e.indexOf(">",i);if(r===-1)break;a+=e.slice(n+1,i).trim(),e=e.slice(0,s).trim()+e.slice(r+1)}return{defs:a,content:e}}function pe(e,t){return e?"<defs>"+e+"</defs>"+t:t}function De(e,t,a){const s=_e(e);return pe(s.defs,t+s.content+a)}const we=e=>e==="unset"||e==="undefined"||e==="none";function Se(e,t){const a={...T,...e},s={...ve,...t},n={left:a.left,top:a.top,width:a.width,height:a.height};let i=a.body;[a,s].forEach(D=>{const g=[],m=D.hFlip,u=D.vFlip;let h=D.rotate;m?u?h+=2:(g.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),g.push("scale(-1 1)"),n.top=n.left=0):u&&(g.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),g.push("scale(1 -1)"),n.top=n.left=0);let b;switch(h<0&&(h-=Math.floor(h/4)*4),h=h%4,h){case 1:b=n.height/2+n.top,g.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:g.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:b=n.width/2+n.left,g.unshift("rotate(-90 "+b.toString()+" "+b.toString()+")");break}h%2===1&&(n.left!==n.top&&(b=n.left,n.left=n.top,n.top=b),n.width!==n.height&&(b=n.width,n.width=n.height,n.height=b)),g.length&&(i=De(i,'<g transform="'+g.join(" ")+'">',"</g>"))});const r=s.width,c=s.height,l=n.width,d=n.height;let o,f;r===null?(f=c===null?"1em":c==="auto"?d:c,o=I(f,l/d)):(o=r==="auto"?l:r,f=c===null?I(o,d/l):c==="auto"?d:c);const _={},w=(D,g)=>{we(g)||(_[D]=g.toString())};w("width",o),w("height",f);const y=[n.left,n.top,l,d];return _.viewBox=y.join(" "),{attributes:_,viewBox:y,body:i}}function Ce(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function xe(e){return"data:image/svg+xml,"+Ce(e)}function Oe(e){return'url("'+xe(e)+'")'}function Pe(e,t){let a=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in t)a+=" "+s+'="'+t[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+a+">"+e+"</svg>"}function Ee(e){const t={display:"inline-block",width:"1em",height:"1em"},a=e.varName;switch(e.pseudoSelector&&(t.content="''"),e.mode){case"background":a&&(t["background-image"]="var(--"+a+")"),t["background-repeat"]="no-repeat",t["background-size"]="100% 100%";break;case"mask":t["background-color"]="currentColor",a&&(t["mask-image"]=t["-webkit-mask-image"]="var(--"+a+")"),t["mask-repeat"]=t["-webkit-mask-repeat"]="no-repeat",t["mask-size"]=t["-webkit-mask-size"]="100% 100%";break}return t}function Ne(e,t){const a={},s=t.varName,n=Se(e);let i=n.viewBox;i[2]!==i[3]&&(t.forceSquare?i=me(i):a.width=I("1em",i[2]/i[3]));const r=Oe(Pe(n.body.replace(/currentColor/g,t.color||"black"),{viewBox:`${i[0]} ${i[1]} ${i[2]} ${i[3]}`,width:`${i[2]}`,height:`${i[3]}`}));if(s)a["--"+s]=r;else switch(t.mode){case"background":a["background-image"]=r;break;case"mask":a["mask-image"]=a["-webkit-mask-image"]=r;break}return a}const k={selectorStart:{compressed:"{",compact:" {",expanded:" {"},selectorEnd:{compressed:"}",compact:`; }
2
2
  `,expanded:`;
3
3
  }
4
4
  `},rule:{compressed:"{key}:",compact:" {key}: ",expanded:`
@@ -1,4 +1,4 @@
1
- import{K as se,_ as ve,S as be,C as ke,f as ce,z as xe,A as _e,j as we,g as $,k as de,m as H}from"./DtbPvE6R.js";import{y as re,Z as Te,o as g,A as K,w as Q,a as s,b as Y,C as u,G as O,c as k,P as L,t as p,H as I,I as E,Y as Me,g as l,a3 as oe,V as ae,ag as Ce,h as me}from"./DgKrPjze.js";import{_ as $e}from"./DUoLvn3A.js";const De={key:0,class:"pointer-events-none absolute inset-0 z-10"},Se={class:"mt-4 flex flex-wrap items-center justify-center gap-3 text-xs text-muted-foreground"},Ue={class:"font-medium text-foreground tabular-nums"},je=288,Pe=re({name:"StatisticalAnalysisModelUsagePanel",__name:"ModelUsagePanel",props:{monthlyItems:{},year:{}},setup(o){const n=o,h=["#2563eb","#f97316","#0891b2","#8b5cf6","#059669","#f43f5e"],m={bottom:32,left:56,right:12,top:8},_=[0,void 0],D=Me("chartRoot"),{width:B}=Te(D),S=oe(null),f=oe(null),U=l(()=>n.year??he(n.monthlyItems)??new Date().getFullYear()),v=l(()=>Array.from({length:12},(e,i)=>{const c=`${i+1}`.padStart(2,"0");return`${U.value}-${c}`})),z=l(()=>[0,Math.max(v.value.length-1,0)]),y=l(()=>v.value.map((e,i)=>i)),F=l(()=>n.monthlyItems.filter(e=>e.month.startsWith(`${U.value}-`))),Z=l(()=>Array.from(new Set(F.value.map(e=>e.model)))),N=l(()=>v.value.map((e,i)=>{const c=Object.fromEntries(Z.value.map(d=>[d,F.value.find(b=>b.month===e&&b.model===d)?.tokenTotal??0]));return{month:e,monthIndex:i,tokensByModel:c,totalTokens:Object.values(c).reduce((d,b)=>d+b,0)}})),C=l(()=>Z.value.map((e,i)=>{const c=te(i),d=N.value.reduce((b,X)=>b+(X.tokensByModel[e]??0),0);return{color:c,model:e,totalLabel:$(d),totalTokens:d}}).sort((e,i)=>i.totalTokens-e.totalTokens)),G=l(()=>C.value.map(e=>i=>i.tokensByModel[e.model]??0)),J=l(()=>Object.fromEntries(C.value.map(e=>[e.model,{color:e.color,label:e.model}]))),ee=l(()=>C.value.map(e=>`
1
+ import{K as se,_ as ve,S as be,C as ke,f as ce,z as xe,A as _e,j as we,g as $,k as de,m as H}from"./BL-DadsH.js";import{y as re,Z as Te,o as g,A as K,w as Q,a as s,b as Y,C as u,G as O,c as k,P as L,t as p,H as I,I as E,Y as Me,g as l,a3 as oe,V as ae,ag as Ce,h as me}from"./IstswKJB.js";import{_ as $e}from"./BO_d_Oyx.js";const De={key:0,class:"pointer-events-none absolute inset-0 z-10"},Se={class:"mt-4 flex flex-wrap items-center justify-center gap-3 text-xs text-muted-foreground"},Ue={class:"font-medium text-foreground tabular-nums"},je=288,Pe=re({name:"StatisticalAnalysisModelUsagePanel",__name:"ModelUsagePanel",props:{monthlyItems:{},year:{}},setup(o){const n=o,h=["#2563eb","#f97316","#0891b2","#8b5cf6","#059669","#f43f5e"],m={bottom:32,left:56,right:12,top:8},_=[0,void 0],D=Me("chartRoot"),{width:B}=Te(D),S=oe(null),f=oe(null),U=l(()=>n.year??he(n.monthlyItems)??new Date().getFullYear()),v=l(()=>Array.from({length:12},(e,i)=>{const c=`${i+1}`.padStart(2,"0");return`${U.value}-${c}`})),z=l(()=>[0,Math.max(v.value.length-1,0)]),y=l(()=>v.value.map((e,i)=>i)),F=l(()=>n.monthlyItems.filter(e=>e.month.startsWith(`${U.value}-`))),Z=l(()=>Array.from(new Set(F.value.map(e=>e.model)))),N=l(()=>v.value.map((e,i)=>{const c=Object.fromEntries(Z.value.map(d=>[d,F.value.find(b=>b.month===e&&b.model===d)?.tokenTotal??0]));return{month:e,monthIndex:i,tokensByModel:c,totalTokens:Object.values(c).reduce((d,b)=>d+b,0)}})),C=l(()=>Z.value.map((e,i)=>{const c=te(i),d=N.value.reduce((b,X)=>b+(X.tokensByModel[e]??0),0);return{color:c,model:e,totalLabel:$(d),totalTokens:d}}).sort((e,i)=>i.totalTokens-e.totalTokens)),G=l(()=>C.value.map(e=>i=>i.tokensByModel[e.model]??0)),J=l(()=>Object.fromEntries(C.value.map(e=>[e.model,{color:e.color,label:e.model}]))),ee=l(()=>C.value.map(e=>`
2
2
  <linearGradient id="${ie(e.model)}" x1="0" y1="0" x2="0" y2="1">
3
3
  <stop offset="0%" stop-color="${e.color}" stop-opacity="0.45" />
4
4
  <stop offset="100%" stop-color="${e.color}" stop-opacity="0.08" />
@@ -1 +1 @@
1
- import{_ as o,u as s,o as a,c as i,a as t,t as r}from"./DgKrPjze.js";const u={class:"antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide"},c={class:"max-w-520px text-center"},l=["textContent"],d=["textContent"],p=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},status:{type:Number,default:500},statusText:{type:String,default:"Internal server error"},description:{type:String,default:"This page is temporarily unavailable."},refresh:{type:String,default:"Refresh this page"}},setup(e){const n=e;return s({title:`${n.status} - ${n.statusText} | ${n.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(h,m)=>(a(),i("div",u,[t("div",c,[t("h1",{class:"font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]",textContent:r(e.status)},null,8,l),t("h2",{class:"font-semibold mb-2 sm:text-3xl text-2xl",textContent:r(e.statusText)},null,8,d),t("p",{class:"mb-4 px-2 text-[#64748B] text-md",textContent:r(e.description)},null,8,p)])]))}},b=o(f,[["__scopeId","data-v-9403453c"]]);export{b as default};
1
+ import{_ as o,u as s,o as a,c as i,a as t,t as r}from"./IstswKJB.js";const u={class:"antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide"},c={class:"max-w-520px text-center"},l=["textContent"],d=["textContent"],p=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},status:{type:Number,default:500},statusText:{type:String,default:"Internal server error"},description:{type:String,default:"This page is temporarily unavailable."},refresh:{type:String,default:"Refresh this page"}},setup(e){const n=e;return s({title:`${n.status} - ${n.statusText} | ${n.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(h,m)=>(a(),i("div",u,[t("div",c,[t("h1",{class:"font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]",textContent:r(e.status)},null,8,l),t("h2",{class:"font-semibold mb-2 sm:text-3xl text-2xl",textContent:r(e.statusText)},null,8,d),t("p",{class:"mb-4 px-2 text-[#64748B] text-md",textContent:r(e.description)},null,8,p)])]))}},b=o(f,[["__scopeId","data-v-9403453c"]]);export{b as default};
@@ -1 +1 @@
1
- import{y as B,aE as A,aF as q,N,aG as E,aH as j,S as I,aI as U,W as P,aJ as _,aK as H,aL as D,a3 as F,r as V,aM as T,aN as M,C as o,aO as W,g as b,aP as z,aQ as O,aR as G,aS as Q,aT as $,aD as J}from"./DgKrPjze.js";const K=(...t)=>t.find(c=>c!==void 0);function X(t){const c=t.componentName||"NuxtLink";function v(e){return typeof e=="string"&&e.startsWith("#")}function C(e,l,d){const a=d??t.trailingSlash;if(!e||a!=="append"&&a!=="remove")return e;if(typeof e=="string")return k(e,a);const i="path"in e&&e.path!==void 0?e.path:l(e).path;return{...e,name:void 0,path:k(i,a)}}function w(e){const l=A(),d=J(),a=b(()=>!!o(e.target)&&o(e.target)!=="_self"),i=b(()=>{const u=o(e.to)||o(e.href)||"";return typeof u=="string"&&O(u,{acceptRelative:!0})}),m=_("RouterLink"),g=m&&typeof m!="string"?m.useLink:void 0,f=b(()=>{if(o(e.external))return!0;const u=o(e.to)||o(e.href)||"";return typeof u=="object"?!1:u===""||i.value}),r=b(()=>{const u=o(e.to)||o(e.href)||"";return f.value?u:C(u,l.resolve,o(e.trailingSlash))}),y=f.value?void 0:g?.({...e,to:r,viewTransition:o(e.viewTransition)}),p=b(()=>{const u=o(e.trailingSlash)??t.trailingSlash;if(!r.value||i.value||v(r.value))return r.value;if(f.value){const x=typeof r.value=="object"&&"path"in r.value?T(r.value):r.value,R=typeof x=="object"?l.resolve(x).href:x;return k(R,u)}return typeof r.value=="object"?l.resolve(r.value)?.href??null:k(G(d.app.baseURL,r.value),u)});return{to:r,hasTarget:a,isAbsoluteUrl:i,isExternal:f,href:p,isActive:y?.isActive??b(()=>r.value===l.currentRoute.value.path),isExactActive:y?.isExactActive??b(()=>r.value===l.currentRoute.value.path),route:y?.route??b(()=>l.resolve(r.value)),async navigate(u){await W(p.value,{replace:o(e.replace),external:f.value||a.value})}}}return B({name:c,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:w,setup(e,{slots:l}){const d=A(),{to:a,href:i,navigate:m,isExternal:g,hasTarget:f,isAbsoluteUrl:r}=w(e),y=F(!1),p=V(null),u=s=>{p.value=e.custom?s?.$el?.nextElementSibling:s?.$el};function x(s){return!y.value&&(typeof e.prefetchOn=="string"?e.prefetchOn===s:e.prefetchOn?.[s]??t.prefetchOn?.[s])&&(e.prefetch??t.prefetch)!==!1&&e.noPrefetch!==!0&&e.target!=="_blank"&&!ee()}async function R(s=q()){if(y.value)return;y.value=!0;const h=typeof a.value=="string"?a.value:g.value?T(a.value):d.resolve(a.value).fullPath,n=g.value?new URL(h,window.location.href).href:h;await Promise.all([s.hooks.callHook("link:prefetch",n)?.catch(()=>{}),!g.value&&!f.value&&M(a.value,d).catch(()=>{})])}if(x("visibility")){const s=q();let h,n=null;N(()=>{const S=Y();E(()=>{h=j(()=>{p?.value?.tagName&&(n=S.observe(p.value,async()=>{n?.(),n=null,await R(s)}))})})}),I(()=>{h&&U(h),n?.(),n=null})}return()=>{if(!g.value&&!f.value&&!v(a.value)){const n={ref:u,to:a.value,activeClass:e.activeClass||t.activeClass,exactActiveClass:e.exactActiveClass||t.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};return e.custom||(x("interaction")&&(n.onPointerenter=R.bind(null,void 0),n.onFocus=R.bind(null,void 0)),y.value&&(n.class=e.prefetchedClass||t.prefetchedClass),n.rel=e.rel||void 0),P(_("RouterLink"),n,l.default)}const s=e.target||null,h=K(e.noRel?"":e.rel,t.externalRelAttribute,r.value||f.value?"noopener noreferrer":"")||null;return e.custom?l.default?l.default({href:i.value,navigate:m,prefetch:R,get route(){if(!i.value)return;const n=new URL(i.value,window.location.href);return{path:n.pathname,fullPath:n.pathname,get query(){return H(n.search)},hash:n.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:i.value}},rel:h,target:s,isExternal:g.value||f.value,isActive:!1,isExactActive:!1}):null:P("a",{ref:p,href:i.value||null,rel:h,target:s,onClick:async n=>{if(!(g.value||f.value)){n.preventDefault();try{const S=D(i.value);return await(e.replace?d.replace(S):d.push(S))}finally{if(v(a.value)){const S=a.value.slice(1);let L=S;try{L=decodeURIComponent(S)}catch{}document.getElementById(L)?.focus()}}}}},l.default?.())}}})}const ne=X(z);function k(t,c){const v=c==="append"?Q:$;return O(t)&&!t.startsWith("http")?t:v(t,!0)}function Y(){const t=q();if(t._observer)return t._observer;let c=null;const v=new Map,C=(e,l)=>(c||=new IntersectionObserver(d=>{for(const a of d){const i=v.get(a.target);(a.isIntersecting||a.intersectionRatio>0)&&i&&i()}}),v.set(e,l),c.observe(e),()=>{v.delete(e),c?.unobserve(e),v.size===0&&(c?.disconnect(),c=null)});return t._observer={observe:C}}const Z=/2g/;function ee(){const t=navigator.connection;return!!(t&&(t.saveData||Z.test(t.effectiveType)))}export{ne as _};
1
+ import{y as B,aE as A,aF as q,N,aG as E,aH as j,S as I,aI as U,W as P,aJ as _,aK as H,aL as D,a3 as F,r as V,aM as T,aN as M,C as o,aO as W,g as b,aP as z,aQ as O,aR as G,aS as Q,aT as $,aD as J}from"./IstswKJB.js";const K=(...t)=>t.find(c=>c!==void 0);function X(t){const c=t.componentName||"NuxtLink";function v(e){return typeof e=="string"&&e.startsWith("#")}function C(e,l,d){const a=d??t.trailingSlash;if(!e||a!=="append"&&a!=="remove")return e;if(typeof e=="string")return k(e,a);const i="path"in e&&e.path!==void 0?e.path:l(e).path;return{...e,name:void 0,path:k(i,a)}}function w(e){const l=A(),d=J(),a=b(()=>!!o(e.target)&&o(e.target)!=="_self"),i=b(()=>{const u=o(e.to)||o(e.href)||"";return typeof u=="string"&&O(u,{acceptRelative:!0})}),m=_("RouterLink"),g=m&&typeof m!="string"?m.useLink:void 0,f=b(()=>{if(o(e.external))return!0;const u=o(e.to)||o(e.href)||"";return typeof u=="object"?!1:u===""||i.value}),r=b(()=>{const u=o(e.to)||o(e.href)||"";return f.value?u:C(u,l.resolve,o(e.trailingSlash))}),y=f.value?void 0:g?.({...e,to:r,viewTransition:o(e.viewTransition)}),p=b(()=>{const u=o(e.trailingSlash)??t.trailingSlash;if(!r.value||i.value||v(r.value))return r.value;if(f.value){const x=typeof r.value=="object"&&"path"in r.value?T(r.value):r.value,R=typeof x=="object"?l.resolve(x).href:x;return k(R,u)}return typeof r.value=="object"?l.resolve(r.value)?.href??null:k(G(d.app.baseURL,r.value),u)});return{to:r,hasTarget:a,isAbsoluteUrl:i,isExternal:f,href:p,isActive:y?.isActive??b(()=>r.value===l.currentRoute.value.path),isExactActive:y?.isExactActive??b(()=>r.value===l.currentRoute.value.path),route:y?.route??b(()=>l.resolve(r.value)),async navigate(u){await W(p.value,{replace:o(e.replace),external:f.value||a.value})}}}return B({name:c,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:w,setup(e,{slots:l}){const d=A(),{to:a,href:i,navigate:m,isExternal:g,hasTarget:f,isAbsoluteUrl:r}=w(e),y=F(!1),p=V(null),u=s=>{p.value=e.custom?s?.$el?.nextElementSibling:s?.$el};function x(s){return!y.value&&(typeof e.prefetchOn=="string"?e.prefetchOn===s:e.prefetchOn?.[s]??t.prefetchOn?.[s])&&(e.prefetch??t.prefetch)!==!1&&e.noPrefetch!==!0&&e.target!=="_blank"&&!ee()}async function R(s=q()){if(y.value)return;y.value=!0;const h=typeof a.value=="string"?a.value:g.value?T(a.value):d.resolve(a.value).fullPath,n=g.value?new URL(h,window.location.href).href:h;await Promise.all([s.hooks.callHook("link:prefetch",n)?.catch(()=>{}),!g.value&&!f.value&&M(a.value,d).catch(()=>{})])}if(x("visibility")){const s=q();let h,n=null;N(()=>{const S=Y();E(()=>{h=j(()=>{p?.value?.tagName&&(n=S.observe(p.value,async()=>{n?.(),n=null,await R(s)}))})})}),I(()=>{h&&U(h),n?.(),n=null})}return()=>{if(!g.value&&!f.value&&!v(a.value)){const n={ref:u,to:a.value,activeClass:e.activeClass||t.activeClass,exactActiveClass:e.exactActiveClass||t.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};return e.custom||(x("interaction")&&(n.onPointerenter=R.bind(null,void 0),n.onFocus=R.bind(null,void 0)),y.value&&(n.class=e.prefetchedClass||t.prefetchedClass),n.rel=e.rel||void 0),P(_("RouterLink"),n,l.default)}const s=e.target||null,h=K(e.noRel?"":e.rel,t.externalRelAttribute,r.value||f.value?"noopener noreferrer":"")||null;return e.custom?l.default?l.default({href:i.value,navigate:m,prefetch:R,get route(){if(!i.value)return;const n=new URL(i.value,window.location.href);return{path:n.pathname,fullPath:n.pathname,get query(){return H(n.search)},hash:n.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:i.value}},rel:h,target:s,isExternal:g.value||f.value,isActive:!1,isExactActive:!1}):null:P("a",{ref:p,href:i.value||null,rel:h,target:s,onClick:async n=>{if(!(g.value||f.value)){n.preventDefault();try{const S=D(i.value);return await(e.replace?d.replace(S):d.push(S))}finally{if(v(a.value)){const S=a.value.slice(1);let L=S;try{L=decodeURIComponent(S)}catch{}document.getElementById(L)?.focus()}}}}},l.default?.())}}})}const ne=X(z);function k(t,c){const v=c==="append"?Q:$;return O(t)&&!t.startsWith("http")?t:v(t,!0)}function Y(){const t=q();if(t._observer)return t._observer;let c=null;const v=new Map,C=(e,l)=>(c||=new IntersectionObserver(d=>{for(const a of d){const i=v.get(a.target);(a.isIntersecting||a.intersectionRatio>0)&&i&&i()}}),v.set(e,l),c.observe(e),()=>{v.delete(e),c?.unobserve(e),v.size===0&&(c?.disconnect(),c=null)});return t._observer={observe:C}}const Z=/2g/;function ee(){const t=navigator.connection;return!!(t&&(t.saveData||Z.test(t.effectiveType)))}export{ne as _};