diff --git "a/assets/index-B1U1h7bw.js" "b/assets/index-B1U1h7bw.js" new file mode 100644--- /dev/null +++ "b/assets/index-B1U1h7bw.js" @@ -0,0 +1,3 @@ +import{h as O,g as P,N as wt,w as K,O as Ct,P as At,Q as fe,e as y,d as R,S as Ot,f as $,j as F,o as _,k as T,p as $e,b as V,U as se,V as Kt,W as Et,X as Dt,Y as Xt,Z as he,$ as Pt,a0 as qt,a1 as Le,a2 as at,a3 as Te,a4 as Z,m as Jt,a5 as Qt,a6 as Zt,a7 as Tt,M as kt,t as ke,J as en,c as be,n as Me,a8 as tn,a9 as nn,aa as Bt,ab as on,ac as rn,ad as ln,ae as an,L as sn,F as Be,a as x,af as un,ag as cn,ah as dn,s as fn,y as pn,A as st,q as Ee,H as mn,B as vn,E as ut,ai as hn}from"./index-DKTiHffy.js";import{_ as ct}from"./Collapsable.vue_vue_type_script_setup_true_lang-CGQXxTY8.js";import{c as dt}from"./Stage.vue_vue_type_style_index_0_scoped_cad77b27_lang-Bvv8tmhZ.js";import{b as ft}from"./route-block-B_A1xBdJ.js";import"./TransitionVertical.vue_vue_type_script_setup_true_lang-Dzm9Hygp.js";const gn=["top","right","bottom","left"],re=Math.min,W=Math.max,Se=Math.round,De=Math.floor,X=e=>({x:e,y:e}),yn={left:"right",right:"left",bottom:"top",top:"bottom"},bn={start:"end",end:"start"};function je(e,t,n){return W(e,re(t,n))}function ee(e,t){return typeof e=="function"?e(t):e}function te(e){return e.split("-")[0]}function ge(e){return e.split("-")[1]}function qe(e){return e==="x"?"y":"x"}function Je(e){return e==="y"?"height":"width"}function le(e){return["top","bottom"].includes(te(e))?"y":"x"}function Qe(e){return qe(le(e))}function xn(e,t,n){n===void 0&&(n=!1);const o=ge(e),i=Qe(e),r=Je(i);let l=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(l=Re(l)),[l,Re(l)]}function wn(e){const t=Re(e);return[Ue(e),t,Ue(t)]}function Ue(e){return e.replace(/start|end/g,t=>bn[t])}function Cn(e,t,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:o:t?o:i;case"left":case"right":return t?r:l;default:return[]}}function An(e,t,n,o){const i=ge(e);let r=Cn(te(e),n==="start",o);return i&&(r=r.map(l=>l+"-"+i),t&&(r=r.concat(r.map(Ue)))),r}function Re(e){return e.replace(/left|right|bottom|top/g,t=>yn[t])}function On(e){return{top:0,right:0,bottom:0,left:0,...e}}function St(e){return typeof e!="number"?On(e):{top:e,right:e,bottom:e,left:e}}function _e(e){const{x:t,y:n,width:o,height:i}=e;return{width:o,height:i,top:n,left:t,right:t+o,bottom:n+i,x:t,y:n}}function pt(e,t,n){let{reference:o,floating:i}=e;const r=le(t),l=Qe(t),s=Je(l),a=te(t),c=r==="y",u=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,m=o[s]/2-i[s]/2;let f;switch(a){case"top":f={x:u,y:o.y-i.height};break;case"bottom":f={x:u,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:d};break;case"left":f={x:o.x-i.width,y:d};break;default:f={x:o.x,y:o.y}}switch(ge(t)){case"start":f[l]-=m*(n&&c?-1:1);break;case"end":f[l]+=m*(n&&c?-1:1);break}return f}const En=async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,s=r.filter(Boolean),a=await(l.isRTL==null?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=pt(c,o,a),m=o,f={},p=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:r,platform:l,elements:s,middlewareData:a}=t,{element:c,padding:u=0}=ee(e,t)||{};if(c==null)return{};const d=St(u),m={x:n,y:o},f=Qe(i),p=Je(f),g=await l.getDimensions(c),v=f==="y",h=v?"top":"left",w=v?"bottom":"right",b=v?"clientHeight":"clientWidth",A=r.reference[p]+r.reference[f]-m[f]-r.floating[p],C=m[f]-r.reference[f],k=await(l.getOffsetParent==null?void 0:l.getOffsetParent(c));let E=k?k[b]:0;(!E||!await(l.isElement==null?void 0:l.isElement(k)))&&(E=s.floating[b]||r.floating[p]);const B=A/2-C/2,L=E/2-g[p]/2-1,D=re(d[h],L),j=re(d[w],L),M=D,H=E-g[p]-j,S=E/2-g[p]/2+B,ne=je(M,S,H),N=!a.arrow&&ge(i)!=null&&S!==ne&&r.reference[p]/2-(SS<=0)){var j,M;const S=(((j=r.flip)==null?void 0:j.index)||0)+1,ne=E[S];if(ne)return{data:{index:S,overflows:D},reset:{placement:ne}};let N=(M=D.filter(G=>G.overflows[0]<=0).sort((G,oe)=>G.overflows[1]-oe.overflows[1])[0])==null?void 0:M.placement;if(!N)switch(f){case"bestFit":{var H;const G=(H=D.filter(oe=>{if(k){const ie=le(oe.placement);return ie===w||ie==="y"}return!0}).map(oe=>[oe.placement,oe.overflows.filter(ie=>ie>0).reduce((ie,Gt)=>ie+Gt,0)]).sort((oe,ie)=>oe[1]-ie[1])[0])==null?void 0:H[0];G&&(N=G);break}case"initialPlacement":N=s;break}if(i!==N)return{reset:{placement:N}}}return{}}}};function mt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function vt(e){return gn.some(t=>e[t]>=0)}const Tn=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...i}=ee(e,t);switch(o){case"referenceHidden":{const r=await xe(t,{...i,elementContext:"reference"}),l=mt(r,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:vt(l)}}}case"escaped":{const r=await xe(t,{...i,altBoundary:!0}),l=mt(r,n.floating);return{data:{escapedOffsets:l,escaped:vt(l)}}}default:return{}}}}};async function kn(e,t){const{placement:n,platform:o,elements:i}=e,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),l=te(n),s=ge(n),a=le(n)==="y",c=["left","top"].includes(l)?-1:1,u=r&&a?-1:1,d=ee(t,e);let{mainAxis:m,crossAxis:f,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof p=="number"&&(f=s==="end"?p*-1:p),a?{x:f*u,y:m*c}:{x:m*c,y:f*u}}const Bn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:r,placement:l,middlewareData:s}=t,a=await kn(t,e);return l===((n=s.offset)==null?void 0:n.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:i+a.x,y:r+a.y,data:{...a,placement:l}}}}},Sn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i}=t,{mainAxis:r=!0,crossAxis:l=!1,limiter:s={fn:v=>{let{x:h,y:w}=v;return{x:h,y:w}}},...a}=ee(e,t),c={x:n,y:o},u=await xe(t,a),d=le(te(i)),m=qe(d);let f=c[m],p=c[d];if(r){const v=m==="y"?"top":"left",h=m==="y"?"bottom":"right",w=f+u[v],b=f-u[h];f=je(w,f,b)}if(l){const v=d==="y"?"top":"left",h=d==="y"?"bottom":"right",w=p+u[v],b=p-u[h];p=je(w,p,b)}const g=s.fn({...t,[m]:f,[d]:p});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[m]:r,[d]:l}}}}}},Rn=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:i,rects:r,middlewareData:l}=t,{offset:s=0,mainAxis:a=!0,crossAxis:c=!0}=ee(e,t),u={x:n,y:o},d=le(i),m=qe(d);let f=u[m],p=u[d];const g=ee(s,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(a){const b=m==="y"?"height":"width",A=r.reference[m]-r.floating[b]+v.mainAxis,C=r.reference[m]+r.reference[b]-v.mainAxis;fC&&(f=C)}if(c){var h,w;const b=m==="y"?"width":"height",A=["top","left"].includes(te(i)),C=r.reference[d]-r.floating[b]+(A&&((h=l.offset)==null?void 0:h[d])||0)+(A?0:v.crossAxis),k=r.reference[d]+r.reference[b]+(A?0:((w=l.offset)==null?void 0:w[d])||0)-(A?v.crossAxis:0);pk&&(p=k)}return{[m]:f,[d]:p}}}},_n=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:i,rects:r,platform:l,elements:s}=t,{apply:a=()=>{},...c}=ee(e,t),u=await xe(t,c),d=te(i),m=ge(i),f=le(i)==="y",{width:p,height:g}=r.floating;let v,h;d==="top"||d==="bottom"?(v=d,h=m===(await(l.isRTL==null?void 0:l.isRTL(s.floating))?"start":"end")?"left":"right"):(h=d,v=m==="end"?"top":"bottom");const w=g-u.top-u.bottom,b=p-u.left-u.right,A=re(g-u[v],w),C=re(p-u[h],b),k=!t.middlewareData.shift;let E=A,B=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(B=b),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(E=w),k&&!m){const D=W(u.left,0),j=W(u.right,0),M=W(u.top,0),H=W(u.bottom,0);f?B=p-2*(D!==0||j!==0?D+j:W(u.left,u.right)):E=g-2*(M!==0||H!==0?M+H:W(u.top,u.bottom))}await a({...t,availableWidth:B,availableHeight:E});const L=await l.getDimensions(s.floating);return p!==L.width||g!==L.height?{reset:{rects:!0}}:{}}}};function Ne(){return typeof window<"u"}function de(e){return Ze(e)?(e.nodeName||"").toLowerCase():"#document"}function z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function J(e){var t;return(t=(Ze(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ze(e){return Ne()?e instanceof Node||e instanceof z(e).Node:!1}function U(e){return Ne()?e instanceof Element||e instanceof z(e).Element:!1}function q(e){return Ne()?e instanceof HTMLElement||e instanceof z(e).HTMLElement:!1}function ht(e){return!Ne()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof z(e).ShadowRoot}function Ce(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(i)}function $n(e){return["table","td","th"].includes(de(e))}function Fe(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function et(e){const t=tt(),n=U(e)?Y(e):e;return["transform","translate","scale","rotate","perspective"].some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Ln(e){let t=ae(e);for(;q(t)&&!ve(t);){if(et(t))return t;if(Fe(t))return null;t=ae(t)}return null}function tt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ve(e){return["html","body","#document"].includes(de(e))}function Y(e){return z(e).getComputedStyle(e)}function He(e){return U(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ae(e){if(de(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ht(e)&&e.host||J(e);return ht(t)?t.host:t}function Rt(e){const t=ae(e);return ve(t)?e.ownerDocument?e.ownerDocument.body:e.body:q(t)&&Ce(t)?t:Rt(t)}function we(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Rt(e),r=i===((o=e.ownerDocument)==null?void 0:o.body),l=z(i);if(r){const s=Ye(l);return t.concat(l,l.visualViewport||[],Ce(i)?i:[],s&&n?we(s):[])}return t.concat(i,we(i,[],n))}function Ye(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _t(e){const t=Y(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=q(e),r=i?e.offsetWidth:n,l=i?e.offsetHeight:o,s=Se(n)!==r||Se(o)!==l;return s&&(n=r,o=l),{width:n,height:o,$:s}}function nt(e){return U(e)?e:e.contextElement}function me(e){const t=nt(e);if(!q(t))return X(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:r}=_t(t);let l=(r?Se(n.width):n.width)/o,s=(r?Se(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const Mn=X(0);function $t(e){const t=z(e);return!tt()||!t.visualViewport?Mn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Nn(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==z(e)?!1:t}function ce(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),r=nt(e);let l=X(1);t&&(o?U(o)&&(l=me(o)):l=me(e));const s=Nn(r,n,o)?$t(r):X(0);let a=(i.left+s.x)/l.x,c=(i.top+s.y)/l.y,u=i.width/l.x,d=i.height/l.y;if(r){const m=z(r),f=o&&U(o)?z(o):o;let p=m,g=Ye(p);for(;g&&o&&f!==p;){const v=me(g),h=g.getBoundingClientRect(),w=Y(g),b=h.left+(g.clientLeft+parseFloat(w.paddingLeft))*v.x,A=h.top+(g.clientTop+parseFloat(w.paddingTop))*v.y;a*=v.x,c*=v.y,u*=v.x,d*=v.y,a+=b,c+=A,p=z(g),g=Ye(p)}}return _e({width:u,height:d,x:a,y:c})}function ot(e,t){const n=He(e).scrollLeft;return t?t.left+n:ce(J(e)).left+n}function Lt(e,t,n){n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=o.left+t.scrollLeft-(n?0:ot(e,o)),r=o.top+t.scrollTop;return{x:i,y:r}}function Fn(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e;const r=i==="fixed",l=J(o),s=t?Fe(t.floating):!1;if(o===l||s&&r)return n;let a={scrollLeft:0,scrollTop:0},c=X(1);const u=X(0),d=q(o);if((d||!d&&!r)&&((de(o)!=="body"||Ce(l))&&(a=He(o)),q(o))){const f=ce(o);c=me(o),u.x=f.x+o.clientLeft,u.y=f.y+o.clientTop}const m=l&&!d&&!r?Lt(l,a,!0):X(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x+m.x,y:n.y*c.y-a.scrollTop*c.y+u.y+m.y}}function Hn(e){return Array.from(e.getClientRects())}function Wn(e){const t=J(e),n=He(e),o=e.ownerDocument.body,i=W(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=W(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+ot(e);const s=-n.scrollTop;return Y(o).direction==="rtl"&&(l+=W(t.clientWidth,o.clientWidth)-i),{width:i,height:r,x:l,y:s}}function zn(e,t){const n=z(e),o=J(e),i=n.visualViewport;let r=o.clientWidth,l=o.clientHeight,s=0,a=0;if(i){r=i.width,l=i.height;const c=tt();(!c||c&&t==="fixed")&&(s=i.offsetLeft,a=i.offsetTop)}return{width:r,height:l,x:s,y:a}}function In(e,t){const n=ce(e,!0,t==="fixed"),o=n.top+e.clientTop,i=n.left+e.clientLeft,r=q(e)?me(e):X(1),l=e.clientWidth*r.x,s=e.clientHeight*r.y,a=i*r.x,c=o*r.y;return{width:l,height:s,x:a,y:c}}function gt(e,t,n){let o;if(t==="viewport")o=zn(e,n);else if(t==="document")o=Wn(J(e));else if(U(t))o=In(t,n);else{const i=$t(e);o={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return _e(o)}function Mt(e,t){const n=ae(e);return n===t||!U(n)||ve(n)?!1:Y(n).position==="fixed"||Mt(n,t)}function Vn(e,t){const n=t.get(e);if(n)return n;let o=we(e,[],!1).filter(s=>U(s)&&de(s)!=="body"),i=null;const r=Y(e).position==="fixed";let l=r?ae(e):e;for(;U(l)&&!ve(l);){const s=Y(l),a=et(l);!a&&s.position==="fixed"&&(i=null),(r?!a&&!i:!a&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Ce(l)&&!a&&Mt(e,l))?o=o.filter(u=>u!==l):i=s,l=ae(l)}return t.set(e,o),o}function jn(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const l=[...n==="clippingAncestors"?Fe(t)?[]:Vn(t,this._c):[].concat(n),o],s=l[0],a=l.reduce((c,u)=>{const d=gt(t,u,i);return c.top=W(d.top,c.top),c.right=re(d.right,c.right),c.bottom=re(d.bottom,c.bottom),c.left=W(d.left,c.left),c},gt(t,s,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Un(e){const{width:t,height:n}=_t(e);return{width:t,height:n}}function Yn(e,t,n){const o=q(t),i=J(t),r=n==="fixed",l=ce(e,!0,r,t);let s={scrollLeft:0,scrollTop:0};const a=X(0);if(o||!o&&!r)if((de(t)!=="body"||Ce(i))&&(s=He(t)),o){const m=ce(t,!0,r,t);a.x=m.x+t.clientLeft,a.y=m.y+t.clientTop}else i&&(a.x=ot(i));const c=i&&!o&&!r?Lt(i,s):X(0),u=l.left+s.scrollLeft-a.x-c.x,d=l.top+s.scrollTop-a.y-c.y;return{x:u,y:d,width:l.width,height:l.height}}function Ve(e){return Y(e).position==="static"}function yt(e,t){if(!q(e)||Y(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return J(e)===n&&(n=n.ownerDocument.body),n}function Nt(e,t){const n=z(e);if(Fe(e))return n;if(!q(e)){let i=ae(e);for(;i&&!ve(i);){if(U(i)&&!Ve(i))return i;i=ae(i)}return n}let o=yt(e,t);for(;o&&$n(o)&&Ve(o);)o=yt(o,t);return o&&ve(o)&&Ve(o)&&!et(o)?n:o||Ln(e)||n}const Gn=async function(e){const t=this.getOffsetParent||Nt,n=this.getDimensions,o=await n(e.floating);return{reference:Yn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Kn(e){return Y(e).direction==="rtl"}const Xn={convertOffsetParentRelativeRectToViewportRelativeRect:Fn,getDocumentElement:J,getClippingRect:jn,getOffsetParent:Nt,getElementRects:Gn,getClientRects:Hn,getDimensions:Un,getScale:me,isElement:U,isRTL:Kn};function Ft(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qn(e,t){let n=null,o;const i=J(e);function r(){var s;clearTimeout(o),(s=n)==null||s.disconnect(),n=null}function l(s,a){s===void 0&&(s=!1),a===void 0&&(a=1),r();const c=e.getBoundingClientRect(),{left:u,top:d,width:m,height:f}=c;if(s||t(),!m||!f)return;const p=De(d),g=De(i.clientWidth-(u+m)),v=De(i.clientHeight-(d+f)),h=De(u),b={rootMargin:-p+"px "+-g+"px "+-v+"px "+-h+"px",threshold:W(0,re(1,a))||1};let A=!0;function C(k){const E=k[0].intersectionRatio;if(E!==a){if(!A)return l();E?l(!1,E):o=setTimeout(()=>{l(!1,1e-7)},1e3)}E===1&&!Ft(c,e.getBoundingClientRect())&&l(),A=!1}try{n=new IntersectionObserver(C,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,b)}n.observe(e)}return l(!0),r}function Jn(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:a=!1}=o,c=nt(e),u=i||r?[...c?we(c):[],...we(t)]:[];u.forEach(h=>{i&&h.addEventListener("scroll",n,{passive:!0}),r&&h.addEventListener("resize",n)});const d=c&&s?qn(c,n):null;let m=-1,f=null;l&&(f=new ResizeObserver(h=>{let[w]=h;w&&w.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=f)==null||b.observe(t)})),n()}),c&&!a&&f.observe(c),f.observe(t));let p,g=a?ce(e):null;a&&v();function v(){const h=ce(e);g&&!Ft(g,h)&&n(),g=h,p=requestAnimationFrame(v)}return n(),()=>{var h;u.forEach(w=>{i&&w.removeEventListener("scroll",n),r&&w.removeEventListener("resize",n)}),d==null||d(),(h=f)==null||h.disconnect(),f=null,a&&cancelAnimationFrame(p)}}const Qn=Bn,Zn=Sn,bt=Pn,eo=_n,to=Tn,no=Dn,oo=Rn,io=(e,t,n)=>{const o=new Map,i={platform:Xn,...n},r={...i.platform,_c:o};return En(e,t,{...i,platform:r})};function ro(e){return e!=null&&typeof e=="object"&&"$el"in e}function Ge(e){if(ro(e)){const t=e.$el;return Ze(t)&&de(t)==="#comment"?null:t}return e}function pe(e){return typeof e=="function"?e():y(e)}function lo(e){return{name:"arrow",options:e,fn(t){const n=Ge(pe(e.element));return n==null?{}:no({element:n,padding:e.padding}).fn(t)}}}function Ht(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function xt(e,t){const n=Ht(e);return Math.round(t*n)/n}function ao(e,t,n){n===void 0&&(n={});const o=n.whileElementsMounted,i=O(()=>{var E;return(E=pe(n.open))!=null?E:!0}),r=O(()=>pe(n.middleware)),l=O(()=>{var E;return(E=pe(n.placement))!=null?E:"bottom"}),s=O(()=>{var E;return(E=pe(n.strategy))!=null?E:"absolute"}),a=O(()=>{var E;return(E=pe(n.transform))!=null?E:!0}),c=O(()=>Ge(e.value)),u=O(()=>Ge(t.value)),d=P(0),m=P(0),f=P(s.value),p=P(l.value),g=wt({}),v=P(!1),h=O(()=>{const E={position:f.value,left:"0",top:"0"};if(!u.value)return E;const B=xt(u.value,d.value),L=xt(u.value,m.value);return a.value?{...E,transform:"translate("+B+"px, "+L+"px)",...Ht(u.value)>=1.5&&{willChange:"transform"}}:{position:f.value,left:B+"px",top:L+"px"}});let w;function b(){if(c.value==null||u.value==null)return;const E=i.value;io(c.value,u.value,{middleware:r.value,placement:l.value,strategy:s.value}).then(B=>{d.value=B.x,m.value=B.y,f.value=B.strategy,p.value=B.placement,g.value=B.middlewareData,v.value=E!==!1})}function A(){typeof w=="function"&&(w(),w=void 0)}function C(){if(A(),o===void 0){b();return}if(c.value!=null&&u.value!=null){w=o(c.value,u.value,b);return}}function k(){i.value||(v.value=!1)}return K([r,l,s,i],b,{flush:"sync"}),K([c,u],C,{flush:"sync"}),K(i,k,{flush:"sync"}),Ct()&&At(A),{x:fe(d),y:fe(m),strategy:fe(f),placement:fe(p),middlewareData:fe(g),isPositioned:fe(v),floatingStyles:h,update:b}}function Ae(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,o=Symbol(n);return[i=>{const r=qt(o,i);if(r||r===null)return r;throw new Error(`Injection \`${o.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},i=>(dn(o,i),i)]}function Wt(e,t,n){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),o.dispatchEvent(i)}function so(e,t){var n;const o=wt();return Z(()=>{o.value=e()},{...t,flush:(n=void 0)!=null?n:"sync"}),Pt(o)}function We(e){return Ct()?(At(e),!0):!1}function uo(){const e=new Set,t=n=>{e.delete(n)};return{on:n=>{e.add(n);const o=()=>t(n);return We(o),{off:o}},off:t,trigger:(...n)=>Promise.all(Array.from(e).map(o=>o(...n)))}}function co(e){let t=!1,n;const o=cn(!0);return(...i)=>(t||(n=o.run(()=>e(...i)),t=!0),n)}function ue(e){return typeof e=="function"?e():y(e)}const Oe=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const fo=e=>typeof e<"u",po=Object.prototype.toString,mo=e=>po.call(e)==="[object Object]",vo=()=>{};function ho(e,t=1e4){return un((n,o)=>{let i=ue(e),r;const l=()=>setTimeout(()=>{i=ue(e),o()},ue(t));return We(()=>{clearTimeout(r)}),{get(){return n(),i},set(s){i=s,o(),clearTimeout(r),r=l()}}})}function zt(e,t,n={}){const{immediate:o=!0}=n,i=P(!1);let r=null;function l(){r&&(clearTimeout(r),r=null)}function s(){i.value=!1,l()}function a(...c){l(),i.value=!0,r=setTimeout(()=>{i.value=!1,r=null,e(...c)},ue(t))}return o&&(i.value=!0,Oe&&a()),We(s),{isPending:Pt(i),start:a,stop:s}}function ze(e){var t;const n=ue(e);return(t=n==null?void 0:n.$el)!=null?t:n}const it=Oe?window:void 0;function Ke(...e){let t,n,o,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,i]=e,t=it):[t,n,o,i]=e,!t)return vo;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],l=()=>{r.forEach(u=>u()),r.length=0},s=(u,d,m,f)=>(u.addEventListener(d,m,f),()=>u.removeEventListener(d,m,f)),a=K(()=>[ze(t),ue(i)],([u,d])=>{if(l(),!u)return;const m=mo(d)?{...d}:d;r.push(...n.flatMap(f=>o.map(p=>s(u,f,p,m))))},{immediate:!0,flush:"post"}),c=()=>{a(),l()};return We(c),c}function go(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function yo(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:i=it,eventName:r="keydown",passive:l=!1,dedupe:s=!1}=o,a=go(t);return Ke(i,r,c=>{c.repeat&&ue(s)||a(c)&&n(c)},l)}function bo(){const e=P(!1),t=he();return t&&$e(()=>{e.value=!0},t),e}function xo(e){return JSON.parse(JSON.stringify(e))}function wo(e,t,n,o={}){var i,r,l;const{clone:s=!1,passive:a=!1,eventName:c,deep:u=!1,defaultValue:d,shouldEmit:m}=o,f=he(),p=n||(f==null?void 0:f.emit)||((i=f==null?void 0:f.$emit)==null?void 0:i.bind(f))||((l=(r=f==null?void 0:f.proxy)==null?void 0:r.$emit)==null?void 0:l.bind(f==null?void 0:f.proxy));let g=c;g=g||`update:${t.toString()}`;const v=b=>s?typeof s=="function"?s(b):xo(b):b,h=()=>fo(e[t])?v(e[t]):d,w=b=>{m?m(b)&&p(g,b):p(g,b)};if(a){const b=h(),A=P(b);let C=!1;return K(()=>e[t],k=>{C||(C=!0,A.value=v(k),Le(()=>C=!1))}),K(A,k=>{!C&&(k!==e[t]||u)&&w(k)},{deep:u}),A}else return O({get(){return h()},set(b){w(b)}})}function rt(e){return e?e.flatMap(t=>t.type===Be?rt(t.children):[t]):[]}const[Co,Li]=Ae("ConfigProvider");function Ao(e){const t=he(),n=t==null?void 0:t.type.emits,o={};return n!=null&&n.length||console.warn(`No emitted event found. Please check component: ${t==null?void 0:t.type.__name}`),n==null||n.forEach(i=>{o[on(Bt(i))]=(...r)=>e(i,...r)}),o}function It(e){const t=he(),n=Object.keys((t==null?void 0:t.type.props)??{}).reduce((i,r)=>{const l=(t==null?void 0:t.type.props[r]).default;return l!==void 0&&(i[r]=l),i},{}),o=nn(e);return O(()=>{const i={},r=(t==null?void 0:t.vnode.props)??{};return Object.keys(r).forEach(l=>{i[Bt(l)]=r[l]}),Object.keys({...n,...i}).reduce((l,s)=>(o.value[s]!==void 0&&(l[s]=o.value[s]),l),{})})}function Oo(e,t){const n=It(e),o=t?Ao(t):{};return O(()=>({...n.value,...o}))}function I(){const e=he(),t=P(),n=O(()=>{var l,s;return["#text","#comment"].includes((l=t.value)==null?void 0:l.$el.nodeName)?(s=t.value)==null?void 0:s.$el.nextElementSibling:ze(t)}),o=Object.assign({},e.exposed),i={};for(const l in e.props)Object.defineProperty(i,l,{enumerable:!0,configurable:!0,get:()=>e.props[l]});if(Object.keys(o).length>0)for(const l in o)Object.defineProperty(i,l,{enumerable:!0,configurable:!0,get:()=>o[l]});Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=i;function r(l){t.value=l,l&&(Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>l instanceof Element?l:l.$el}),e.exposed=i)}return{forwardRef:r,currentRef:t,currentElement:n}}function Eo(e,t){const n=ho(!1,300),o=P(null),i=uo();function r(){o.value=null,n.value=!1}function l(s,a){const c=s.currentTarget,u={x:s.clientX,y:s.clientY},d=Do(u,c.getBoundingClientRect()),m=Po(u,d),f=To(a.getBoundingClientRect()),p=Bo([...m,...f]);o.value=p,n.value=!0}return Z(s=>{if(e.value&&t.value){const a=u=>l(u,t.value),c=u=>l(u,e.value);e.value.addEventListener("pointerleave",a),t.value.addEventListener("pointerleave",c),s(()=>{var u,d;(u=e.value)==null||u.removeEventListener("pointerleave",a),(d=t.value)==null||d.removeEventListener("pointerleave",c)})}}),Z(s=>{var a;if(o.value){const c=u=>{var d,m;if(!o.value)return;const f=u.target,p={x:u.clientX,y:u.clientY},g=((d=e.value)==null?void 0:d.contains(f))||((m=t.value)==null?void 0:m.contains(f)),v=!ko(p,o.value),h=!!f.closest("[data-grace-area-trigger]");g?r():(v||h)&&(r(),i.trigger())};(a=e.value)==null||a.ownerDocument.addEventListener("pointermove",c),s(()=>{var u;return(u=e.value)==null?void 0:u.ownerDocument.removeEventListener("pointermove",c)})}}),{isPointerInTransit:n,onPointerExit:i.on}}function Do(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),r=Math.abs(t.left-e.x);switch(Math.min(n,o,i,r)){case r:return"left";case i:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function Po(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function To(e){const{top:t,right:n,bottom:o,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:o},{x:i,y:o}]}function ko(e,t){const{x:n,y:o}=e;let i=!1;for(let r=0,l=t.length-1;ro!=u>o&&n<(c-s)*(o-a)/(u-a)+s&&(i=!i)}return i}function Bo(e){const t=e.slice();return t.sort((n,o)=>n.xo.x?1:n.yo.y?1:0),So(t)}function So(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o=2;){const r=t[t.length-1],l=t[t.length-2];if((r.x-l.x)*(i.y-l.y)>=(r.y-l.y)*(i.x-l.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const i=e[o];for(;n.length>=2;){const r=n[n.length-1],l=n[n.length-2];if((r.x-l.x)*(i.y-l.y)>=(r.y-l.y)*(i.x-l.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}let Ro=0;function _o(e,t="radix"){const n=Co({useId:void 0});return at?`${t}-${at()}`:n.useId?`${t}-${n.useId()}`:`${t}-${++Ro}`}function $o(e){const t=P(),n=O(()=>{var i;return((i=t.value)==null?void 0:i.width)??0}),o=O(()=>{var i;return((i=t.value)==null?void 0:i.height)??0});return $e(()=>{const i=ze(e);if(i){t.value={width:i.offsetWidth,height:i.offsetHeight};const r=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const s=l[0];let a,c;if("borderBoxSize"in s){const u=s.borderBoxSize,d=Array.isArray(u)?u[0]:u;a=d.inlineSize,c=d.blockSize}else a=i.offsetWidth,c=i.offsetHeight;t.value={width:a,height:c}});return r.observe(i,{box:"border-box"}),()=>r.unobserve(i)}else t.value=void 0}),{width:n,height:o}}function Lo(e,t){const n=P(e);function o(i){return t[n.value][i]??n.value}return{state:n,dispatch:i=>{n.value=o(i)}}}const Mo=R({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{var o,i;if(!n.default)return null;const r=rt(n.default()),l=r.findIndex(u=>u.type!==Tt);if(l===-1)return r;const s=r[l];(o=s.props)==null||delete o.ref;const a=s.props?se(t,s.props):t;t.class&&(i=s.props)!=null&&i.class&&delete s.props.class;const c=tn(s,a);for(const u in a)u.startsWith("on")&&(c.props||(c.props={}),c.props[u]=a[u]);return r.length===1?c:(r[l]=c,r)}}}),ye=R({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const o=e.asChild?"template":e.as;return typeof o=="string"&&["area","img","input"].includes(o)?()=>Te(o,t):o!=="template"?()=>Te(e.as,t,{default:n.default}):()=>Te(Mo,t,{default:n.default})}});function No(e,t){var n;const o=P({}),i=P("none"),r=P(e),l=e.value?"mounted":"unmounted";let s;const a=((n=t.value)==null?void 0:n.ownerDocument.defaultView)??it,{state:c,dispatch:u}=Lo(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),d=v=>{var h;if(Oe){const w=new CustomEvent(v,{bubbles:!1,cancelable:!1});(h=t.value)==null||h.dispatchEvent(w)}};K(e,async(v,h)=>{var w;const b=h!==v;if(await Le(),b){const A=i.value,C=Pe(t.value);v?(u("MOUNT"),d("enter"),C==="none"&&d("after-enter")):C==="none"||((w=o.value)==null?void 0:w.display)==="none"?(u("UNMOUNT"),d("leave"),d("after-leave")):h&&A!==C?(u("ANIMATION_OUT"),d("leave")):(u("UNMOUNT"),d("after-leave"))}},{immediate:!0});const m=v=>{const h=Pe(t.value),w=h.includes(v.animationName),b=c.value==="mounted"?"enter":"leave";if(v.target===t.value&&w&&(d(`after-${b}`),u("ANIMATION_END"),!r.value)){const A=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",s=a==null?void 0:a.setTimeout(()=>{var C;((C=t.value)==null?void 0:C.style.animationFillMode)==="forwards"&&(t.value.style.animationFillMode=A)})}v.target===t.value&&h==="none"&&u("ANIMATION_END")},f=v=>{v.target===t.value&&(i.value=Pe(t.value))},p=K(t,(v,h)=>{v?(o.value=getComputedStyle(v),v.addEventListener("animationstart",f),v.addEventListener("animationcancel",m),v.addEventListener("animationend",m)):(u("ANIMATION_END"),s!==void 0&&(a==null||a.clearTimeout(s)),h==null||h.removeEventListener("animationstart",f),h==null||h.removeEventListener("animationcancel",m),h==null||h.removeEventListener("animationend",m))},{immediate:!0}),g=K(c,()=>{const v=Pe(t.value);i.value=c.value==="mounted"?v:"none"});return sn(()=>{p(),g()}),{isPresent:O(()=>["mounted","unmountSuspended"].includes(c.value))}}function Pe(e){return e&&getComputedStyle(e).animationName||"none"}const Fo=R({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var o;const{present:i,forceMount:r}=Ot(e),l=P(),{isPresent:s}=No(i,l);n({present:s});let a=t.default({present:s});a=rt(a||[]);const c=he();if(a&&(a==null?void 0:a.length)>1){const u=(o=c==null?void 0:c.parent)!=null&&o.type.name?`<${c.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${u}\` 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(d=>` - ${d}`).join(` +`)].join(` +`))}return()=>r.value||i.value||s.value?Te(t.default({present:s})[0],{ref:u=>{const d=ze(u);return typeof(d==null?void 0:d.hasAttribute)>"u"||(d!=null&&d.hasAttribute("data-radix-popper-content-wrapper")?l.value=d.firstElementChild:l.value=d),d}}):null}}),Ho=R({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=bo();return(n,o)=>y(t)||n.forceMount?(_(),F(Qt,{key:0,to:n.to,disabled:n.disabled},[$(n.$slots,"default")],8,["to","disabled"])):Jt("",!0)}}),Wo="dismissableLayer.pointerDownOutside",zo="dismissableLayer.focusOutside";function Vt(e,t){const n=t.closest("[data-dismissable-layer]"),o=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),i=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&o===n||i.indexOf(o){});return Z(l=>{if(!Oe)return;const s=async c=>{const u=c.target;if(t!=null&&t.value){if(Vt(t.value,u)){i.value=!1;return}if(c.target&&!i.value){let d=function(){Wt(Wo,e,m)};const m={originalEvent:c};c.pointerType==="touch"?(o.removeEventListener("click",r.value),r.value=d,o.addEventListener("click",r.value,{once:!0})):d()}else o.removeEventListener("click",r.value);i.value=!1}},a=window.setTimeout(()=>{o.addEventListener("pointerdown",s)},0);l(()=>{window.clearTimeout(a),o.removeEventListener("pointerdown",s),o.removeEventListener("click",r.value)})}),{onPointerDownCapture:()=>i.value=!0}}function Vo(e,t){var n;const o=((n=t==null?void 0:t.value)==null?void 0:n.ownerDocument)??(globalThis==null?void 0:globalThis.document),i=P(!1);return Z(r=>{if(!Oe)return;const l=async s=>{t!=null&&t.value&&(await Le(),!(!t.value||Vt(t.value,s.target))&&s.target&&!i.value&&Wt(zo,e,{originalEvent:s}))};o.addEventListener("focusin",l),r(()=>o.removeEventListener("focusin",l))}),{onFocusCapture:()=>i.value=!0,onBlurCapture:()=>i.value=!1}}const Q=an({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),jo=R({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const n=e,o=t,{forwardRef:i,currentElement:r}=I(),l=O(()=>{var p;return((p=r.value)==null?void 0:p.ownerDocument)??globalThis.document}),s=O(()=>Q.layersRoot),a=O(()=>r.value?Array.from(s.value).indexOf(r.value):-1),c=O(()=>Q.layersWithOutsidePointerEventsDisabled.size>0),u=O(()=>{const p=Array.from(s.value),[g]=[...Q.layersWithOutsidePointerEventsDisabled].slice(-1),v=p.indexOf(g);return a.value>=v}),d=Io(async p=>{const g=[...Q.branches].some(v=>v==null?void 0:v.contains(p.target));!u.value||g||(o("pointerDownOutside",p),o("interactOutside",p),await Le(),p.defaultPrevented||o("dismiss"))},r),m=Vo(p=>{[...Q.branches].some(g=>g==null?void 0:g.contains(p.target))||(o("focusOutside",p),o("interactOutside",p),p.defaultPrevented||o("dismiss"))},r);yo("Escape",p=>{a.value===s.value.size-1&&(o("escapeKeyDown",p),p.defaultPrevented||o("dismiss"))});let f;return Z(p=>{r.value&&(n.disableOutsidePointerEvents&&(Q.layersWithOutsidePointerEventsDisabled.size===0&&(f=l.value.body.style.pointerEvents,l.value.body.style.pointerEvents="none"),Q.layersWithOutsidePointerEventsDisabled.add(r.value)),s.value.add(r.value),p(()=>{n.disableOutsidePointerEvents&&Q.layersWithOutsidePointerEventsDisabled.size===1&&(l.value.body.style.pointerEvents=f)}))}),Z(p=>{p(()=>{r.value&&(s.value.delete(r.value),Q.layersWithOutsidePointerEventsDisabled.delete(r.value))})}),(p,g)=>(_(),F(y(ye),{ref:y(i),"as-child":p.asChild,as:p.as,"data-dismissable-layer":"",style:Me({pointerEvents:c.value?u.value?"auto":"none":void 0}),onFocusCapture:y(m).onFocusCapture,onBlurCapture:y(m).onBlurCapture,onPointerdownCapture:y(d).onPointerDownCapture},{default:T(()=>[$(p.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}});co(()=>P([]));const[jt,Uo]=Ae("PopperRoot"),Yo=R({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=P();return Uo({anchor:t,onAnchorChange:n=>t.value=n}),(n,o)=>$(n.$slots,"default")}}),Go=R({__name:"PopperAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,{forwardRef:n,currentElement:o}=I(),i=jt();return Z(()=>{i.onAnchorChange(t.element??o.value)}),(r,l)=>(_(),F(y(ye),{ref:y(n),as:r.as,"as-child":r.asChild},{default:T(()=>[$(r.$slots,"default")]),_:3},8,["as","as-child"]))}});function Ko(e){return e!==null}function Xo(e){return{name:"transformOrigin",options:e,fn(t){var n,o,i;const{placement:r,rects:l,middlewareData:s}=t,a=((n=s.arrow)==null?void 0:n.centerOffset)!==0,c=a?0:e.arrowWidth,u=a?0:e.arrowHeight,[d,m]=Xe(r),f={start:"0%",center:"50%",end:"100%"}[m],p=(((o=s.arrow)==null?void 0:o.x)??0)+c/2,g=(((i=s.arrow)==null?void 0:i.y)??0)+u/2;let v="",h="";return d==="bottom"?(v=a?f:`${p}px`,h=`${-u}px`):d==="top"?(v=a?f:`${p}px`,h=`${l.floating.height+u}px`):d==="right"?(v=`${-u}px`,h=a?f:`${g}px`):d==="left"&&(v=`${l.floating.width+u}px`,h=a?f:`${g}px`),{data:{x:v,y:h}}}}}function Xe(e){const[t,n="center"]=e.split("-");return[t,n]}const qo={side:"bottom",sideOffset:0,align:"center",alignOffset:0,arrowPadding:0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,updatePositionStrategy:"optimized",prioritizePosition:!1},[Jo,Qo]=Ae("PopperContent"),Zo=R({inheritAttrs:!1,__name:"PopperContent",props:rn({side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},{...qo}),emits:["placed"],setup(e,{emit:t}){const n=e,o=t,i=jt(),{forwardRef:r,currentElement:l}=I(),s=P(),a=P(),{width:c,height:u}=$o(a),d=O(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),m=O(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),f=O(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),p=O(()=>({padding:m.value,boundary:f.value.filter(Ko),altBoundary:f.value.length>0})),g=so(()=>[Qn({mainAxis:n.sideOffset+u.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&bt({...p.value}),n.avoidCollisions&&Zn({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?oo():void 0,...p.value}),!n.prioritizePosition&&n.avoidCollisions&&bt({...p.value}),eo({...p.value,apply:({elements:D,rects:j,availableWidth:M,availableHeight:H})=>{const{width:S,height:ne}=j.reference,N=D.floating.style;N.setProperty("--radix-popper-available-width",`${M}px`),N.setProperty("--radix-popper-available-height",`${H}px`),N.setProperty("--radix-popper-anchor-width",`${S}px`),N.setProperty("--radix-popper-anchor-height",`${ne}px`)}}),a.value&&lo({element:a.value,padding:n.arrowPadding}),Xo({arrowWidth:c.value,arrowHeight:u.value}),n.hideWhenDetached&&to({strategy:"referenceHidden",...p.value})]),{floatingStyles:v,placement:h,isPositioned:w,middlewareData:b}=ao(i.anchor,s,{strategy:"fixed",placement:d,whileElementsMounted:(...D)=>Jn(...D,{animationFrame:n.updatePositionStrategy==="always"}),middleware:g}),A=O(()=>Xe(h.value)[0]),C=O(()=>Xe(h.value)[1]);ln(()=>{w.value&&o("placed")});const k=O(()=>{var D;return((D=b.value.arrow)==null?void 0:D.centerOffset)!==0}),E=P("");Z(()=>{l.value&&(E.value=window.getComputedStyle(l.value).zIndex)});const B=O(()=>{var D;return((D=b.value.arrow)==null?void 0:D.x)??0}),L=O(()=>{var D;return((D=b.value.arrow)==null?void 0:D.y)??0});return Qo({placedSide:A,onArrowChange:D=>a.value=D,arrowX:B,arrowY:L,shouldHideArrow:k}),(D,j)=>{var M,H,S;return _(),be("div",{ref_key:"floatingRef",ref:s,"data-radix-popper-content-wrapper":"",style:Me({...y(v),transform:y(w)?y(v).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:E.value,"--radix-popper-transform-origin":[(M=y(b).transformOrigin)==null?void 0:M.x,(H=y(b).transformOrigin)==null?void 0:H.y].join(" "),...((S=y(b).hide)==null?void 0:S.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[V(y(ye),se({ref:y(r)},D.$attrs,{"as-child":n.asChild,as:D.as,"data-side":A.value,"data-align":C.value,style:{animation:y(w)?void 0:"none"}}),{default:T(()=>[$(D.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4)}}}),ei=x("polygon",{points:"0,0 30,0 15,10"},null,-1),ti=R({__name:"Arrow",props:{width:{default:10},height:{default:5},asChild:{type:Boolean},as:{default:"svg"}},setup(e){const t=e;return I(),(n,o)=>(_(),F(y(ye),se(t,{width:n.width,height:n.height,viewBox:n.asChild?void 0:"0 0 30 10",preserveAspectRatio:n.asChild?void 0:"none"}),{default:T(()=>[$(n.$slots,"default",{},()=>[ei])]),_:3},16,["width","height","viewBox","preserveAspectRatio"]))}}),ni={top:"bottom",right:"left",bottom:"top",left:"right"},oi=R({inheritAttrs:!1,__name:"PopperArrow",props:{width:{},height:{},asChild:{type:Boolean},as:{default:"svg"}},setup(e){const{forwardRef:t}=I(),n=Jo(),o=O(()=>ni[n.placedSide.value]);return(i,r)=>{var l,s,a,c;return _(),be("span",{ref:u=>{y(n).onArrowChange(u)},style:Me({position:"absolute",left:(l=y(n).arrowX)!=null&&l.value?`${(s=y(n).arrowX)==null?void 0:s.value}px`:void 0,top:(a=y(n).arrowY)!=null&&a.value?`${(c=y(n).arrowY)==null?void 0:c.value}px`:void 0,[o.value]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[y(n).placedSide.value],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[y(n).placedSide.value],visibility:y(n).shouldHideArrow.value?"hidden":void 0})},[V(ti,se(i.$attrs,{ref:y(t),style:{display:"block"},as:i.as,"as-child":i.asChild,width:i.width,height:i.height}),{default:T(()=>[$(i.$slots,"default")]),_:3},16,["as","as-child","width","height"])],4)}}}),ii=R({__name:"VisuallyHidden",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){return I(),(t,n)=>(_(),F(y(ye),{as:t.as,"as-child":t.asChild,style:{position:"absolute",border:0,width:"1px",display:"inline-block",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}},{default:T(()=>[$(t.$slots,"default")]),_:3},8,["as","as-child"]))}});function ri(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}ri();const Ut="tooltip.open",[lt,li]=Ae("TooltipProvider"),ai=R({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{default:700},skipDelayDuration:{default:300},disableHoverableContent:{type:Boolean,default:!1},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean,default:!1}},setup(e){const t=e,{delayDuration:n,skipDelayDuration:o,disableHoverableContent:i,disableClosingTrigger:r,ignoreNonKeyboardFocus:l,disabled:s}=Ot(t);I();const a=P(!0),c=P(!1),{start:u,stop:d}=zt(()=>{a.value=!0},o,{immediate:!1});return li({isOpenDelayed:a,delayDuration:n,onOpen(){d(),a.value=!1},onClose(){u()},isPointerInTransitRef:c,disableHoverableContent:i,disableClosingTrigger:r,disabled:s,ignoreNonKeyboardFocus:l}),(m,f)=>$(m.$slots,"default")}}),[Ie,si]=Ae("TooltipRoot"),ui=R({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},delayDuration:{default:void 0},disableHoverableContent:{type:Boolean,default:void 0},disableClosingTrigger:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,default:void 0}},emits:["update:open"],setup(e,{emit:t}){const n=e,o=t;I();const i=lt(),r=O(()=>n.disableHoverableContent??i.disableHoverableContent.value),l=O(()=>n.disableClosingTrigger??i.disableClosingTrigger.value),s=O(()=>n.disabled??i.disabled.value),a=O(()=>n.delayDuration??i.delayDuration.value),c=O(()=>n.ignoreNonKeyboardFocus??i.ignoreNonKeyboardFocus.value),u=wo(n,"open",o,{defaultValue:n.defaultOpen,passive:n.open===void 0});K(u,b=>{i.onClose&&(b?(i.onOpen(),document.dispatchEvent(new CustomEvent(Ut))):i.onClose())});const d=P(!1),m=P(),f=O(()=>u.value?d.value?"delayed-open":"instant-open":"closed"),{start:p,stop:g}=zt(()=>{d.value=!0,u.value=!0},a,{immediate:!1});function v(){g(),d.value=!1,u.value=!0}function h(){g(),u.value=!1}function w(){p()}return si({contentId:"",open:u,stateAttribute:f,trigger:m,onTriggerChange(b){m.value=b},onTriggerEnter(){i.isOpenDelayed.value?w():v()},onTriggerLeave(){r.value?h():g()},onOpen:v,onClose:h,disableHoverableContent:r,disableClosingTrigger:l,disabled:s,ignoreNonKeyboardFocus:c}),(b,A)=>(_(),F(y(Yo),null,{default:T(()=>[$(b.$slots,"default",{open:y(u)})]),_:3}))}}),ci=R({__name:"TooltipTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=Ie(),o=lt();n.contentId||(n.contentId=_o(void 0,"radix-vue-tooltip-content"));const{forwardRef:i,currentElement:r}=I(),l=P(!1),s=P(!1),a=O(()=>n.disabled.value?{}:{click:g,focus:f,pointermove:d,pointerleave:m,pointerdown:u,blur:p});$e(()=>{n.onTriggerChange(r.value)});function c(){setTimeout(()=>{l.value=!1},1)}function u(){l.value=!0,document.addEventListener("pointerup",c,{once:!0})}function d(v){v.pointerType!=="touch"&&!s.value&&!o.isPointerInTransitRef.value&&(n.onTriggerEnter(),s.value=!0)}function m(){n.onTriggerLeave(),s.value=!1}function f(v){var h,w;l.value||n.ignoreNonKeyboardFocus.value&&!((w=(h=v.target).matches)!=null&&w.call(h,":focus-visible"))||n.onOpen()}function p(){n.onClose()}function g(){n.disableClosingTrigger.value||n.onClose()}return(v,h)=>(_(),F(y(Go),{"as-child":""},{default:T(()=>[V(y(ye),se({ref:y(i),"aria-describedby":y(n).open.value?y(n).contentId:void 0,"data-state":y(n).stateAttribute.value,as:v.as,"as-child":t.asChild,"data-grace-area-trigger":""},Kt(a.value)),{default:T(()=>[$(v.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3}))}}),Yt=R({__name:"TooltipContentImpl",props:{ariaLabel:{},asChild:{type:Boolean},as:{},side:{default:"top"},sideOffset:{default:0},align:{default:"center"},alignOffset:{},avoidCollisions:{type:Boolean,default:!0},collisionBoundary:{default:()=>[]},collisionPadding:{default:0},arrowPadding:{default:0},sticky:{default:"partial"},hideWhenDetached:{type:Boolean,default:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,i=Ie(),{forwardRef:r}=I(),l=Zt(),s=O(()=>{var u;return(u=l.default)==null?void 0:u.call(l)}),a=O(()=>{var u;if(n.ariaLabel)return n.ariaLabel;let d="";function m(f){typeof f.children=="string"&&f.type!==Tt?d+=f.children:Array.isArray(f.children)&&f.children.forEach(p=>m(p))}return(u=s.value)==null||u.forEach(f=>m(f)),d}),c=O(()=>{const{ariaLabel:u,...d}=n;return d});return $e(()=>{Ke(window,"scroll",u=>{const d=u.target;d!=null&&d.contains(i.trigger.value)&&i.onClose()}),Ke(window,Ut,i.onClose)}),(u,d)=>(_(),F(y(jo),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:d[0]||(d[0]=m=>o("escapeKeyDown",m)),onPointerDownOutside:d[1]||(d[1]=m=>{var f;y(i).disableClosingTrigger.value&&(f=y(i).trigger.value)!=null&&f.contains(m.target)&&m.preventDefault(),o("pointerDownOutside",m)}),onFocusOutside:d[2]||(d[2]=en(()=>{},["prevent"])),onDismiss:d[3]||(d[3]=m=>y(i).onClose())},{default:T(()=>[V(y(Zo),se({ref:y(r),"data-state":y(i).stateAttribute.value},{...u.$attrs,...c.value},{style:{"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),{default:T(()=>[$(u.$slots,"default"),V(y(ii),{id:y(i).contentId,role:"tooltip"},{default:T(()=>[kt(ke(a.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),di=R({__name:"TooltipContentHoverable",props:{ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean}},setup(e){const t=It(e),{forwardRef:n,currentElement:o}=I(),{trigger:i,onClose:r}=Ie(),l=lt(),{isPointerInTransit:s,onPointerExit:a}=Eo(i,o);return l.isPointerInTransitRef=s,a(()=>{r()}),(c,u)=>(_(),F(Yt,se({ref:y(n)},y(t)),{default:T(()=>[$(c.$slots,"default")]),_:3},16))}}),fi=R({__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{default:"top"},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,i=Ie(),r=Oo(n,o),{forwardRef:l}=I();return(s,a)=>(_(),F(y(Fo),{present:s.forceMount||y(i).open.value},{default:T(()=>[(_(),F(Xt(y(i).disableHoverableContent.value?Yt:di),se({ref:y(l)},y(r)),{default:T(()=>[$(s.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),pi=R({__name:"TooltipArrow",props:{width:{default:10},height:{default:5},asChild:{type:Boolean},as:{default:"svg"}},setup(e){const t=e;return I(),(n,o)=>(_(),F(y(oi),Et(Dt(t)),{default:T(()=>[$(n.$slots,"default")]),_:3},16))}}),mi=R({__name:"TooltipPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,o)=>(_(),F(y(Ho),Et(Dt(t)),{default:T(()=>[$(n.$slots,"default")]),_:3},16))}}),vi={flex:"~ row","items-center":"","gap-2":""},hi={"flex-col":""},gi=["onClick"],yi={"p-4":""},bi={flex:"~ col gap-4"},xi=["disabled"],wi={"mt-4":"",class:"flex items-center justify-end gap-4"},Ci={class:"relative inline-flex cursor-pointer items-center"},Ai=["onClick"],Oi={"p-4":"",flex:"~ col gap-4"},Ei={"text-base":"","font-medium":""},Di={text:"sm neutral-500"},Pi={flex:"~ row","gap-2":""},Ti=["onClick"],ki=R({__name:"index",setup(e){const t=fn(),n=pn(),o=[{name:"Morandi Colors",description:"Soft, muted tones inspired by Giorgio Morandi's paintings",colors:[{hex:"#A5978B",name:"Taupe"},{hex:"#D8CAAF",name:"Beige"},{hex:"#B8B4A7",name:"Ash Grey"},{hex:"#C4BCB1",name:"Light Taupe"},{hex:"#E5DED8",name:"Ivory"},{hex:"#9A8F7D",name:"Olive Grey"},{hex:"#BEB5A7",name:"Sand"},{hex:"#C9C0B6",name:"Warm Grey"}]},{name:"Monet Colors",description:"Impressionist palette inspired by Claude Monet's works",colors:[{hex:"#7A9EAF",name:"Sky Blue"},{hex:"#B8C7CC",name:"Mist"},{hex:"#D4B79C",name:"Sand"},{hex:"#8B9D77",name:"Moss Green"},{hex:"#C7D5CB",name:"Water Lily"},{hex:"#E6D0B1",name:"Wheat"},{hex:"#94A7B1",name:"Slate Blue"},{hex:"#B4C8C3",name:"Sage"}]},{name:"Japanese Colors",description:"Traditional Japanese color palette",colors:[{hex:"#D9B48F",name:"Tan"},{hex:"#B5917A",name:"Warm Taupe"},{hex:"#8C7A6B",name:"Umber"},{hex:"#A17F5F",name:"Coffee"},{hex:"#B98C46",name:"Bronze"},{hex:"#C7A252",name:"Gold"},{hex:"#DAB300",name:"Mustard"},{hex:"#D19826",name:"Amber"}]},{name:"Nordic Colors",description:"Scandinavian minimalist color scheme",colors:[{hex:"#9BA7B0",name:"Nordic Blue"},{hex:"#C1CBD4",name:"Ice"},{hex:"#A5ADB6",name:"Fjord"},{hex:"#8B959E",name:"Steel"},{hex:"#D4DCE4",name:"Glacier"},{hex:"#7F8A94",name:"Slate"},{hex:"#B3BCC6",name:"Cloud"},{hex:"#98A4AE",name:"Stone"}]},{name:"Chinese Traditional Colors",description:"Traditional Chinese colors, derived from ancient textiles, porcelain and paintings",colors:[{hex:"#E4C6D0",name:"霞光红 (Rosy Dawn)"},{hex:"#A61B29",name:"枣红 (Chinese Red)"},{hex:"#5D513C",name:"黄栌 (Smoky Brown)"},{hex:"#789262",name:"竹青 (Bamboo Green)"},{hex:"#1C0D1A",name:"乌梅紫 (Dark Purple)"},{hex:"#F7C242",name:"缃色 (Golden Yellow)"},{hex:"#62A9DD",name:"青冥 (Azure Blue)"},{hex:"#8C4B3C",name:"赭石 (Ochre)"}]}];function i(){n.themeColorsHue=hn,n.themeColorsHueDynamic=!1}function r(s){const a=dt("oklch")(s);if(!a)return;const{h:c}=a;c&&(n.themeColorsHue=c,n.themeColorsHueDynamic=!1)}function l(s){if(n.themeColorsHueDynamic)return!1;const a=dt("oklch")(s);if(!a||!a.h)return!1;const c=Math.abs(a.h-n.themeColorsHue);return c<.01||c>359.99}return(s,a)=>(_(),be(Be,null,[x("div",vi,[x("button",{onClick:a[0]||(a[0]=c=>y(t).back())},a[3]||(a[3]=[x("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),a[4]||(a[4]=x("h1",{relative:""},[x("div",{absolute:"","left-0":"","top-0":"","translate-y":"[-80%]"},[x("span",{text:"neutral-300 dark:neutral-500"},"Settings")]),x("div",{"text-3xl":"","font-semibold":""}," Themes ")],-1))]),x("div",hi,[V(y(ct),{"mt-4":"","w-full":"",default:!0},{trigger:T(c=>[x("button",{bg:"zinc-100 dark:zinc-800",hover:"bg-zinc-200 dark:bg-zinc-700",transition:"all ease-in-out duration-250","w-full":"",flex:"","items-center":"","gap-1.5":"","rounded-lg":"","px-4":"","py-3":"","outline-none":"",class:"[&_.provider-icon]:grayscale-100 [&_.provider-icon]:hover:grayscale-0",onClick:u=>c.setVisible(!c.visible)},[a[6]||(a[6]=x("div",{flex:"~ row 1","items-center":"","gap-1.5":""},[x("div",{"i-solar:pallete-2-bold-duotone":"",class:"provider-icon size-6",transition:"filter duration-250 ease-in-out"}),x("div",null," Custom Colors ")],-1)),x("div",{transform:"",transition:"transform duration-250",class:Ee({"rotate-180":c.visible})},a[5]||(a[5]=[x("div",{"i-solar:alt-arrow-down-bold-duotone":""},null,-1)]),2)],8,gi)]),default:T(()=>[x("div",yi,[a[11]||(a[11]=x("div",{class:"mb-2 text-sm font-medium"}," Primary color ",-1)),x("div",bi,[st(x("input",{"onUpdate:modelValue":a[1]||(a[1]=c=>y(n).themeColorsHue=c),type:"range",min:"0",max:"360",step:"0.01",class:Ee(["theme-hue-slider h-10 w-full",{"opacity-25 cursor-not-allowed":y(n).themeColorsHueDynamic}]),disabled:y(n).themeColorsHueDynamic},null,10,xi),[[mn,y(n).themeColorsHue]]),a[7]||(a[7]=x("div",{"h-10":"","w-full":"",flex:"","overflow-hidden":"","rounded-lg":""},[x("div",{bg:"primary-50",class:"primary-color-bar","text-black":""}," 50 "),x("div",{bg:"primary-100",class:"primary-color-bar","text-black":""}," 100 "),x("div",{bg:"primary-200",class:"primary-color-bar","text-black":""}," 200 "),x("div",{bg:"primary-300",class:"primary-color-bar","text-black":""}," 300 "),x("div",{bg:"primary-400",class:"primary-color-bar","text-black":""}," 400 "),x("div",{bg:"primary-500",class:"primary-color-bar","text-black":""}," 500 "),x("div",{bg:"primary-600",class:"primary-color-bar","text-white":""}," 600 "),x("div",{bg:"primary-700",class:"primary-color-bar","text-white":""}," 700 "),x("div",{bg:"primary-800",class:"primary-color-bar","text-white":""}," 800 "),x("div",{bg:"primary-900",class:"primary-color-bar","text-white":""}," 900 "),x("div",{bg:"primary-950",class:"primary-color-bar","text-white":""}," 950 ")],-1)),a[8]||(a[8]=x("div",{"h-10":"","w-full":"",flex:"","overflow-hidden":"","rounded-lg":"",class:"transparency-grid"},[x("div",{bg:"primary-500/5",class:"primary-color-bar","text-black":""}," 500/5 "),x("div",{bg:"primary-500/10",class:"primary-color-bar","text-black":""}," 500/10 "),x("div",{bg:"primary-500/20",class:"primary-color-bar","text-black":""}," 500/20 "),x("div",{bg:"primary-500/30",class:"primary-color-bar","text-black":""}," 500/30 "),x("div",{bg:"primary-500/40",class:"primary-color-bar","text-black":""}," 500/40 "),x("div",{bg:"primary-500/50",class:"primary-color-bar","text-black":""}," 500/50 "),x("div",{bg:"primary-500/60",class:"primary-color-bar","text-black":""}," 500/60 "),x("div",{bg:"primary-500/70",class:"primary-color-bar","text-black":""}," 500/70 "),x("div",{bg:"primary-500/80",class:"primary-color-bar","text-black":""}," 500/80 "),x("div",{bg:"primary-500/90",class:"primary-color-bar","text-black":""}," 500/90 "),x("div",{bg:"primary-500",class:"primary-color-bar","text-black":""}," 500 ")],-1))]),x("div",wi,[x("label",Ci,[st(x("input",{"onUpdate:modelValue":a[2]||(a[2]=c=>y(n).themeColorsHueDynamic=c),type:"checkbox",class:"peer sr-only"},null,512),[[vn,y(n).themeColorsHueDynamic]]),a[9]||(a[9]=x("div",{class:"peer-checked:bg-primary-500 h-6 w-11 rounded-full bg-neutral-200 after:absolute after:left-[2px] after:top-[2px] after:h-5 after:w-5 after:rounded-full after:bg-white dark:bg-neutral-600 after:transition-all after:content-[''] peer-checked:after:translate-x-full peer-checked:after:border-white"},null,-1)),a[10]||(a[10]=x("span",{class:"ml-2 text-sm font-medium"},"I Want It Dynamic!",-1))]),x("button",{class:"rounded-md bg-neutral-100 px-3 py-1.5 text-sm transition-colors dark:bg-neutral-800 hover:bg-neutral-200 dark:hover:bg-neutral-700",onClick:i}," Reset to Default ")])])]),_:1}),V(y(ct),{"mt-4":"","w-full":"",default:!0},{trigger:T(c=>[x("button",{bg:"zinc-100 dark:zinc-800",hover:"bg-zinc-200 dark:bg-zinc-700",transition:"all ease-in-out duration-250","w-full":"",flex:"","items-center":"","gap-1.5":"","rounded-lg":"","px-4":"","py-3":"","outline-none":"",class:"[&_.provider-icon]:grayscale-100 [&_.provider-icon]:hover:grayscale-0",onClick:u=>c.setVisible(!c.visible)},[a[13]||(a[13]=x("div",{flex:"~ row 1","items-center":"","gap-1.5":""},[x("div",{"i-solar:magic-stick-2-bold-duotone":"",class:"provider-icon size-6",transition:"filter duration-250 ease-in-out"}),x("div",null," Theme Presets ")],-1)),x("div",{transform:"",transition:"transform duration-250",class:Ee({"rotate-180":c.visible})},a[12]||(a[12]=[x("div",{"i-solar:alt-arrow-down-bold-duotone":""},null,-1)]),2)],8,Ai)]),default:T(()=>[x("div",Oi,[(_(),be(Be,null,ut(o,c=>x("div",{key:c.name,flex:"~ row",bg:"neutral-100 dark:neutral-800",hover:"bg-neutral-200 dark:bg-neutral-700",transition:"all ease-in-out duration-250","cursor-pointer":"","items-center":"","justify-between":"","gap-4":"","rounded-lg":"","px-4":"","py-3":""},[x("div",null,[x("div",Ei,ke(c.name),1),x("div",Di,ke(c.description),1)]),x("div",Pi,[(_(!0),be(Be,null,ut(c.colors,u=>(_(),F(y(ai),{key:u.hex},{default:T(()=>[V(y(ui),null,{default:T(()=>[V(y(ci),null,{default:T(()=>[x("div",{style:Me({backgroundColor:u.hex}),class:Ee(["size-6 cursor-pointer rounded-full transition-all duration-250 ease-in-out",[l(u.hex)?"scale-150 z-10 mx-1":"hover:scale-110"]]),onClick:d=>r(u.hex)},null,14,Ti)]),_:2},1024),V(y(mi),null,{default:T(()=>[V(y(fi),{class:"rounded-lg bg-white px-3 py-1.5 text-sm shadow-md dark:bg-neutral-800"},{default:T(()=>[kt(ke(u.name)+" ",1),V(y(pi),{class:"fill-white dark:fill-neutral-800"})]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))])])),64))])]),_:1})]),a[14]||(a[14]=x("div",{text:"neutral-100/50 dark:neutral-500/20","pointer-events-none":"",fixed:"","bottom-0":"","right-0":"","translate-x-10":"","translate-y-10":""},[x("div",{text:"40","i-lucide:paintbrush":""})],-1))],64))}});typeof ft=="function"&&ft(ki);export{ki as default};