From 2456ed3e6cbe85cc33bb8930ba52a55195ee5059 Mon Sep 17 00:00:00 2001 From: Joshua Pease Date: Fri, 2 Feb 2024 11:08:36 -0800 Subject: [PATCH] Updates --- assets/index-158a813d.js | 71 ---------------------------------------- assets/index-656964dc.js | 71 ++++++++++++++++++++++++++++++++++++++++ button-primary.html | 6 +++- button-secondary.html | 6 +++- card.html | 6 +++- index.html | 2 +- 6 files changed, 87 insertions(+), 75 deletions(-) delete mode 100644 assets/index-158a813d.js create mode 100644 assets/index-656964dc.js diff --git a/assets/index-158a813d.js b/assets/index-158a813d.js deleted file mode 100644 index ebc1a2d..0000000 --- a/assets/index-158a813d.js +++ /dev/null @@ -1,71 +0,0 @@ -var zc=Object.defineProperty;var Bc=(e,t,n)=>t in e?zc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var tn=(e,t,n)=>(Bc(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const c of i.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();var vt,E,Ko,Le,to,Go,vn,Yo,Ye={},Zo=[],Vc=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,jt=Array.isArray;function ge(e,t){for(var n in t)e[n]=t[n];return e}function Xo(e){var t=e.parentNode;t&&t.removeChild(e)}function _(e,t,n){var o,r,i,c={};for(i in t)i=="key"?o=t[i]:i=="ref"?r=t[i]:c[i]=t[i];if(arguments.length>2&&(c.children=arguments.length>3?vt.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)c[i]===void 0&&(c[i]=e.defaultProps[i]);return st(e,c,o,r,null)}function st(e,t,n,o,r){var i={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++Ko};return r==null&&E.vnode!=null&&E.vnode(i),i}function qo(){return{current:null}}function G(e){return e.children}function ce(e,t){this.props=e,this.context=t}function ut(e,t){if(t==null)return e.__?ut(e.__,e.__.__k.indexOf(e)+1):null;for(var n;tt&&Le.sort(vn));Nt.__r=0}function Qo(e,t,n,o,r,i,c,a,l,u,f){var s,g,d,h,p,b,v,m,w,y=0,$=o&&o.__k||Zo,O=$.length,C=O,P=t.length;for(n.__k=[],s=0;s0?st(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)!=null?(h.__=n,h.__b=n.__b+1,(m=Hc(h,$,v=s+y,C))===-1?d=Ye:(d=$[m]||Ye,$[m]=void 0,C--),An(e,h,d,r,i,c,a,l,u,f),p=h.__e,(g=h.ref)&&d.ref!=g&&(d.ref&&Tn(d.ref,null,h),f.push(g,h.__c||p,h)),p!=null&&(b==null&&(b=p),(w=d===Ye||d.__v===null)?m==-1&&y--:m!==v&&(m===v+1?y++:m>v?C>P-v?y+=m-v:y--:y=m(l!=null?1:0))for(;c>=0||a=0){if((l=t[c])&&r==l.key&&i===l.type)return c;c--}if(a2&&(a.children=arguments.length>3?vt.call(arguments,2):n),st(e.type,a,o||e.key,r||e.ref,null)}function Ue(e,t){var n={__c:t="__cC"+Yo++,__:e,Consumer:function(o,r){return o.children(r)},Provider:function(o){var r,i;return this.getChildContext||(r=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(c){this.props.value!==c.value&&r.some(function(a){a.__e=!0,mn(a)})},this.sub=function(c){r.push(c);var a=c.componentWillUnmount;c.componentWillUnmount=function(){r.splice(r.indexOf(c),1),a&&a.call(c)}}),o.children}};return n.Provider.__=n.Consumer.contextType=n}vt=Zo.slice,E={__e:function(e,t,n,o){for(var r,i,c;t=t.__;)if((r=t.__c)&&!r.__)try{if((i=r.constructor)&&i.getDerivedStateFromError!=null&&(r.setState(i.getDerivedStateFromError(e)),c=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(e,o||{}),c=r.__d),c)return r.__E=r}catch(a){e=a}throw e}},Ko=0,ce.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ge({},this.state),typeof e=="function"&&(e=e(ge({},n),this.props)),e&&ge(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),mn(this))},ce.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),mn(this))},ce.prototype.render=G,Le=[],Go=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,vn=function(e,t){return e.__v.__b-t.__v.__b},Nt.__r=0,Yo=0;var me,B,nn,io,Xe=0,rr=[],Mt=[],co=E.__b,ao=E.__r,so=E.diffed,lo=E.__c,uo=E.unmount;function Be(e,t){E.__h&&E.__h(B,e,Xe||t),Xe=0;var n=B.__H||(B.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Mt}),n.__[e]}function T(e){return Xe=1,Kt(ar,e)}function Kt(e,t,n){var o=Be(me++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):ar(void 0,t),function(a){var l=o.__N?o.__N[0]:o.__[0],u=o.t(l,a);l!==u&&(o.__N=[u,o.__[1]],o.__c.setState({}))}],o.__c=B,!B.u)){var r=function(a,l,u){if(!o.__c.__H)return!0;var f=o.__c.__H.__.filter(function(g){return g.__c});if(f.every(function(g){return!g.__N}))return!i||i.call(this,a,l,u);var s=!1;return f.forEach(function(g){if(g.__N){var d=g.__[0];g.__=g.__N,g.__N=void 0,d!==g.__[0]&&(s=!0)}}),!(!s&&o.__c.props===a)&&(!i||i.call(this,a,l,u))};B.u=!0;var i=B.shouldComponentUpdate,c=B.componentWillUpdate;B.componentWillUpdate=function(a,l,u){if(this.__e){var f=i;i=void 0,r(a,l,u),i=f}c&&c.call(this,a,l,u)},B.shouldComponentUpdate=r}return o.__N||o.__}function I(e,t){var n=Be(me++,3);!E.__s&&Nn(n.__H,t)&&(n.__=e,n.i=t,B.__H.__h.push(n))}function Ve(e,t){var n=Be(me++,4);!E.__s&&Nn(n.__H,t)&&(n.__=e,n.i=t,B.__h.push(n))}function D(e){return Xe=5,q(function(){return{current:e}},[])}function ir(e,t,n){Xe=6,Ve(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function q(e,t){var n=Be(me++,7);return Nn(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function z(e,t){return Xe=8,q(function(){return e},t)}function nt(e){var t=B.context[e.__c],n=Be(me++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(B)),t.props.value):e.__}function In(e,t){E.useDebugValue&&E.useDebugValue(t?t(e):e)}function Yc(e){var t=Be(me++,10),n=T();return t.__=e,B.componentDidCatch||(B.componentDidCatch=function(o,r){t.__&&t.__(o,r),n[1](o)}),[n[0],function(){n[1](void 0)}]}function cr(){var e=Be(me++,11);if(!e.__){for(var t=B.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Zc(){for(var e;e=rr.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Rt),e.__H.__h.forEach(_n),e.__H.__h=[]}catch(t){e.__H.__h=[],E.__e(t,e.__v)}}E.__b=function(e){B=null,co&&co(e)},E.__r=function(e){ao&&ao(e),me=0;var t=(B=e.__c).__H;t&&(nn===B?(t.__h=[],B.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Mt,n.__N=n.i=void 0})):(t.__h.forEach(Rt),t.__h.forEach(_n),t.__h=[],me=0)),nn=B},E.diffed=function(e){so&&so(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(rr.push(t)!==1&&io===E.requestAnimationFrame||((io=E.requestAnimationFrame)||Xc)(Zc)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Mt&&(n.__=n.__V),n.i=void 0,n.__V=Mt})),nn=B=null},E.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Rt),n.__h=n.__h.filter(function(o){return!o.__||_n(o)})}catch(o){t.some(function(r){r.__h&&(r.__h=[])}),t=[],E.__e(o,n.__v)}}),lo&&lo(e,t)},E.unmount=function(e){uo&&uo(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(o){try{Rt(o)}catch(r){t=r}}),n.__H=void 0,t&&E.__e(t,n.__v))};var fo=typeof requestAnimationFrame=="function";function Xc(e){var t,n=function(){clearTimeout(o),fo&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,100);fo&&(t=requestAnimationFrame(n))}function Rt(e){var t=B,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),B=t}function _n(e){var t=B;e.__c=e.__(),B=t}function Nn(e,t){return!e||e.length!==t.length||t.some(function(n,o){return n!==e[o]})}function ar(e,t){return typeof t=="function"?t(e):t}function sr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function qc(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}),n}var lr={exports:{}};/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o=[],r=0;r3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(o)}}),Fe(_(ta,{context:t.context},e.__v),t.l)}function vr(e,t){var n=_(na,{__v:e,i:t});return n.containerInfo=t,n}(Ge.prototype=new ce).__a=function(e){var t=this,n=hr(t.__v),o=t.o.get(e);return o[0]++,function(r){var i=function(){t.props.revealOrder?(o.push(r),vo(t,e,o)):r()};n?n(i):i()}},Ge.prototype.render=function(e){this.u=null,this.o=new Map;var t=ve(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Ge.prototype.componentDidUpdate=Ge.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){vo(e,n,t)})};var mr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,oa=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ra=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ia=/[A-Z0-9]/g,ca=typeof document<"u",aa=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function br(e,t,n){return t.__k==null&&(t.textContent=""),Fe(e,t),typeof n=="function"&&n(),e?e.__c:null}function _r(e,t,n){return or(e,t),typeof n=="function"&&n(),e?e.__c:null}ce.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ce.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var mo=E.event;function sa(){}function la(){return this.cancelBubble}function ua(){return this.defaultPrevented}E.event=function(e){return mo&&(e=mo(e)),e.persist=sa,e.isPropagationStopped=la,e.isDefaultPrevented=ua,e.nativeEvent=e};var Ln,da={enumerable:!1,configurable:!0,get:function(){return this.class}},bo=E.vnode;E.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,o=t.type,r={};for(var i in n){var c=n[i];if(!(i==="value"&&"defaultValue"in n&&c==null||ca&&i==="children"&&o==="noscript"||i==="class"||i==="className")){var a=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&c===!0?c="":a==="ondoubleclick"?i="ondblclick":a!=="onchange"||o!=="input"&&o!=="textarea"||aa(n.type)?a==="onfocus"?i="onfocusin":a==="onblur"?i="onfocusout":ra.test(i)?i=a:o.indexOf("-")===-1&&oa.test(i)?i=i.replace(ia,"-$&").toLowerCase():c===null&&(c=void 0):a=i="oninput",a==="oninput"&&r[i=a]&&(i="oninputCapture"),r[i]=c}}o=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=ve(n.children).forEach(function(l){l.props.selected=r.value.indexOf(l.props.value)!=-1})),o=="select"&&r.defaultValue!=null&&(r.value=ve(n.children).forEach(function(l){l.props.selected=r.multiple?r.defaultValue.indexOf(l.props.value)!=-1:r.defaultValue==l.props.value})),n.class&&!n.className?(r.class=n.class,Object.defineProperty(r,"className",da)):(n.className&&!n.class||n.class&&n.className)&&(r.class=r.className=n.className),t.props=r}(e),e.$$typeof=mr,bo&&bo(e)};var _o=E.__r;E.__r=function(e){_o&&_o(e),Ln=e.__c};var wo=E.diffed;E.diffed=function(e){wo&&wo(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Ln=null};var wr={ReactCurrentDispatcher:{current:{readContext:function(e){return Ln.__n[e.__c].props.value}}}},fa="17.0.2";function yr(e){return _.bind(null,e)}function be(e){return!!e&&e.$$typeof===mr}function $r(e){return be(e)&&e.type===G}function ot(e){return be(e)?Gc.apply(null,arguments):e}function xr(e){return!!e.__k&&(Fe(null,e),!0)}function Cr(e){return e&&(e.base||e.nodeType===1&&e)||null}var Sr=function(e,t){return e(t)},mt=function(e,t){return e(t)},kr=G;function Fn(e){e()}function Er(e){return e}function Or(){return[!1,Fn]}var Pr=Ve,Dr=be;function Mr(e,t){var n=t(),o=T({h:{__:n,v:t}}),r=o[0].h,i=o[1];return Ve(function(){r.__=n,r.v=t,on(r.__,t())||i({h:r})},[e,n,t]),I(function(){return on(r.__,r.v())||i({h:r}),e(function(){on(r.__,r.v())||i({h:r})})},[e]),n}var ne={useState:T,useId:cr,useReducer:Kt,useEffect:I,useLayoutEffect:Ve,useInsertionEffect:Pr,useTransition:Or,useDeferredValue:Er,useSyncExternalStore:Mr,startTransition:Fn,useRef:D,useImperativeHandle:ir,useMemo:q,useCallback:z,useContext:nt,useDebugValue:In,version:"17.0.2",Children:fe,render:br,hydrate:_r,unmountComponentAtNode:xr,createPortal:vr,createElement:_,createContext:Ue,createFactory:yr,cloneElement:ot,createRef:qo,Fragment:G,isValidElement:be,isElement:Dr,isFragment:$r,findDOMNode:Cr,Component:ce,PureComponent:Ft,memo:dr,forwardRef:S,flushSync:mt,unstable_batchedUpdates:Sr,StrictMode:kr,Suspense:lt,SuspenseList:Ge,lazy:gr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:wr};const Rr=Object.freeze(Object.defineProperty({__proto__:null,Children:fe,Component:ce,Fragment:G,PureComponent:Ft,StrictMode:kr,Suspense:lt,SuspenseList:Ge,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:wr,cloneElement:ot,createContext:Ue,createElement:_,createFactory:yr,createPortal:vr,createRef:qo,default:ne,findDOMNode:Cr,flushSync:mt,forwardRef:S,hydrate:_r,isElement:Dr,isFragment:$r,isValidElement:be,lazy:gr,memo:dr,render:br,startTransition:Fn,unmountComponentAtNode:xr,unstable_batchedUpdates:Sr,useCallback:z,useContext:nt,useDebugValue:In,useDeferredValue:Er,useEffect:I,useErrorBoundary:Yc,useId:cr,useImperativeHandle:ir,useInsertionEffect:Pr,useLayoutEffect:Ve,useMemo:q,useReducer:Kt,useRef:D,useState:T,useSyncExternalStore:Mr,useTransition:Or,version:fa},Symbol.toStringTag,{value:"Module"}));function $e(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,i;for(i=0;i=0)&&(n[r]=e[r]);return n}var pa=["color"],ha=S(function(e,t){var n=e.color,o=n===void 0?"currentColor":n,r=$e(e,pa);return _("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),_("path",{d:"M2.5 2H12.5C12.7761 2 13 2.22386 13 2.5V12.5C13 12.7761 12.7761 13 12.5 13H2.5C2.22386 13 2 12.7761 2 12.5V2.5C2 2.22386 2.22386 2 2.5 2ZM1 2.5C1 1.67157 1.67157 1 2.5 1H12.5C13.3284 1 14 1.67157 14 2.5V12.5C14 13.3284 13.3284 14 12.5 14H2.5C1.67157 14 1 13.3284 1 12.5V2.5ZM7.5 4C7.77614 4 8 3.77614 8 3.5C8 3.22386 7.77614 3 7.5 3C7.22386 3 7 3.22386 7 3.5C7 3.77614 7.22386 4 7.5 4ZM8 5.5C8 5.77614 7.77614 6 7.5 6C7.22386 6 7 5.77614 7 5.5C7 5.22386 7.22386 5 7.5 5C7.77614 5 8 5.22386 8 5.5ZM7.5 8C7.77614 8 8 7.77614 8 7.5C8 7.22386 7.77614 7 7.5 7C7.22386 7 7 7.22386 7 7.5C7 7.77614 7.22386 8 7.5 8ZM10 7.5C10 7.77614 9.77614 8 9.5 8C9.22386 8 9 7.77614 9 7.5C9 7.22386 9.22386 7 9.5 7C9.77614 7 10 7.22386 10 7.5ZM11.5 8C11.7761 8 12 7.77614 12 7.5C12 7.22386 11.7761 7 11.5 7C11.2239 7 11 7.22386 11 7.5C11 7.77614 11.2239 8 11.5 8Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))}),ga=["color"],va=S(function(e,t){var n=e.color,o=n===void 0?"currentColor":n,r=$e(e,ga);return _("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),_("path",{d:"M3 9C3 6.5 4.5 4.25 7.5 1.5C10.5 4.25 12 6.5 12 9C12 11.4853 9.98528 13.5 7.5 13.5C5.01472 13.5 3 11.4853 3 9ZM10.9524 8.30307C9.67347 7.82121 8.2879 8.46208 6.98956 9.06259C5.9327 9.55142 4.93365 10.0135 4.09695 9.82153C4.03357 9.55804 4 9.28294 4 9C4 7.11203 5.02686 5.27195 7.5 2.87357C9.66837 4.97639 10.725 6.65004 10.9524 8.30307Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))}),ma=["color"],ba=S(function(e,t){var n=e.color,o=n===void 0?"currentColor":n,r=$e(e,ma);return _("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),_("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))}),_a=["color"],wa=S(function(e,t){var n=e.color,o=n===void 0?"currentColor":n,r=$e(e,_a);return _("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),_("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))}),ya=["color"],$a=S(function(e,t){var n=e.color,o=n===void 0?"currentColor":n,r=$e(e,ya);return _("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),_("path",{d:"M12.8536 2.85355C13.0488 2.65829 13.0488 2.34171 12.8536 2.14645C12.6583 1.95118 12.3417 1.95118 12.1464 2.14645L7.5 6.79289L2.85355 2.14645C2.65829 1.95118 2.34171 1.95118 2.14645 2.14645C1.95118 2.34171 1.95118 2.65829 2.14645 2.85355L6.79289 7.5L2.14645 12.1464C1.95118 12.3417 1.95118 12.6583 2.14645 12.8536C2.34171 13.0488 2.65829 13.0488 2.85355 12.8536L7.5 8.20711L12.1464 12.8536C12.3417 13.0488 12.6583 13.0488 12.8536 12.8536C13.0488 12.6583 13.0488 12.3417 12.8536 12.1464L8.20711 7.5L12.8536 2.85355Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))}),xa=["color"],Ca=S(function(e,t){var n=e.color,o=n===void 0?"currentColor":n,r=$e(e,xa);return _("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),_("path",{d:"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704ZM9.85358 5.14644C10.0488 5.3417 10.0488 5.65829 9.85358 5.85355L8.20713 7.49999L9.85358 9.14644C10.0488 9.3417 10.0488 9.65829 9.85358 9.85355C9.65832 10.0488 9.34173 10.0488 9.14647 9.85355L7.50002 8.2071L5.85358 9.85355C5.65832 10.0488 5.34173 10.0488 5.14647 9.85355C4.95121 9.65829 4.95121 9.3417 5.14647 9.14644L6.79292 7.49999L5.14647 5.85355C4.95121 5.65829 4.95121 5.3417 5.14647 5.14644C5.34173 4.95118 5.65832 4.95118 5.85358 5.14644L7.50002 6.79289L9.14647 5.14644C9.34173 4.95118 9.65832 4.95118 9.85358 5.14644Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))}),Sa=["color"],ka=S(function(e,t){var n=e.color,o=n===void 0?"currentColor":n,r=$e(e,Sa);return _("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),_("path",{d:"M2 2.5C2 2.22386 2.22386 2 2.5 2H5.5C5.77614 2 6 2.22386 6 2.5C6 2.77614 5.77614 3 5.5 3H3V5.5C3 5.77614 2.77614 6 2.5 6C2.22386 6 2 5.77614 2 5.5V2.5ZM9 2.5C9 2.22386 9.22386 2 9.5 2H12.5C12.7761 2 13 2.22386 13 2.5V5.5C13 5.77614 12.7761 6 12.5 6C12.2239 6 12 5.77614 12 5.5V3H9.5C9.22386 3 9 2.77614 9 2.5ZM2.5 9C2.77614 9 3 9.22386 3 9.5V12H5.5C5.77614 12 6 12.2239 6 12.5C6 12.7761 5.77614 13 5.5 13H2.5C2.22386 13 2 12.7761 2 12.5V9.5C2 9.22386 2.22386 9 2.5 9ZM12.5 9C12.7761 9 13 9.22386 13 9.5V12.5C13 12.7761 12.7761 13 12.5 13H9.5C9.22386 13 9 12.7761 9 12.5C9 12.2239 9.22386 12 9.5 12H12V9.5C12 9.22386 12.2239 9 12.5 9Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))}),Ea=["color"],Ar=S(function(e,t){var n=e.color,o=n===void 0?"currentColor":n,r=$e(e,Ea);return _("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),_("path",{d:"M7.07095 0.650238C6.67391 0.650238 6.32977 0.925096 6.24198 1.31231L6.0039 2.36247C5.6249 2.47269 5.26335 2.62363 4.92436 2.81013L4.01335 2.23585C3.67748 2.02413 3.23978 2.07312 2.95903 2.35386L2.35294 2.95996C2.0722 3.2407 2.0232 3.6784 2.23493 4.01427L2.80942 4.92561C2.62307 5.2645 2.47227 5.62594 2.36216 6.00481L1.31209 6.24287C0.924883 6.33065 0.650024 6.6748 0.650024 7.07183V7.92897C0.650024 8.32601 0.924883 8.67015 1.31209 8.75794L2.36228 8.99603C2.47246 9.375 2.62335 9.73652 2.80979 10.0755L2.2354 10.9867C2.02367 11.3225 2.07267 11.7602 2.35341 12.041L2.95951 12.6471C3.24025 12.9278 3.67795 12.9768 4.01382 12.7651L4.92506 12.1907C5.26384 12.377 5.62516 12.5278 6.0039 12.6379L6.24198 13.6881C6.32977 14.0753 6.67391 14.3502 7.07095 14.3502H7.92809C8.32512 14.3502 8.66927 14.0753 8.75705 13.6881L8.99505 12.6383C9.37411 12.5282 9.73573 12.3773 10.0748 12.1909L10.986 12.7653C11.3218 12.977 11.7595 12.928 12.0403 12.6473L12.6464 12.0412C12.9271 11.7604 12.9761 11.3227 12.7644 10.9869L12.1902 10.076C12.3768 9.73688 12.5278 9.37515 12.638 8.99596L13.6879 8.75794C14.0751 8.67015 14.35 8.32601 14.35 7.92897V7.07183C14.35 6.6748 14.0751 6.33065 13.6879 6.24287L12.6381 6.00488C12.528 5.62578 12.3771 5.26414 12.1906 4.92507L12.7648 4.01407C12.9766 3.6782 12.9276 3.2405 12.6468 2.95975L12.0407 2.35366C11.76 2.07292 11.3223 2.02392 10.9864 2.23565L10.0755 2.80989C9.73622 2.62328 9.37437 2.47229 8.99505 2.36209L8.75705 1.31231C8.66927 0.925096 8.32512 0.650238 7.92809 0.650238H7.07095ZM4.92053 3.81251C5.44724 3.44339 6.05665 3.18424 6.71543 3.06839L7.07095 1.50024H7.92809L8.28355 3.06816C8.94267 3.18387 9.5524 3.44302 10.0794 3.81224L11.4397 2.9547L12.0458 3.56079L11.1882 4.92117C11.5573 5.44798 11.8164 6.0575 11.9321 6.71638L13.5 7.07183V7.92897L11.932 8.28444C11.8162 8.94342 11.557 9.55301 11.1878 10.0798L12.0453 11.4402L11.4392 12.0462L10.0787 11.1886C9.55192 11.5576 8.94241 11.8166 8.28355 11.9323L7.92809 13.5002H7.07095L6.71543 11.932C6.0569 11.8162 5.44772 11.5572 4.92116 11.1883L3.56055 12.046L2.95445 11.4399L3.81213 10.0794C3.4431 9.55266 3.18403 8.94326 3.06825 8.2845L1.50002 7.92897V7.07183L3.06818 6.71632C3.18388 6.05765 3.44283 5.44833 3.81171 4.92165L2.95398 3.561L3.56008 2.95491L4.92053 3.81251ZM9.02496 7.50008C9.02496 8.34226 8.34223 9.02499 7.50005 9.02499C6.65786 9.02499 5.97513 8.34226 5.97513 7.50008C5.97513 6.65789 6.65786 5.97516 7.50005 5.97516C8.34223 5.97516 9.02496 6.65789 9.02496 7.50008ZM9.92496 7.50008C9.92496 8.83932 8.83929 9.92499 7.50005 9.92499C6.1608 9.92499 5.07513 8.83932 5.07513 7.50008C5.07513 6.16084 6.1608 5.07516 7.50005 5.07516C8.83929 5.07516 9.92496 6.16084 9.92496 7.50008Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))}),Oa=["color"],Pa=S(function(e,t){var n=e.color,o=n===void 0?"currentColor":n,r=$e(e,Oa);return _("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),_("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))});const Un=(e,t)=>e.title.toLowerCase().includes(t)?!0:e.children.some(n=>Un(n,t));var Da=0;function x(e,t,n,o,r,i){var c,a,l={};for(a in t)a=="ref"?c=t[a]:l[a]=t[a];var u={type:e,props:l,key:n,ref:c,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Da,__source:r,__self:i};if(typeof e=="function"&&(c=e.defaultProps))for(a in c)l[a]===void 0&&(l[a]=c[a]);return E.vnode&&E.vnode(u),u}function Tr(e){const[t,n]=T(!1),o=e.isChild??!1,r=c=>c===e.activeNavItem?!0:c.children.some(r);I(()=>{r(e.item)?n(!0):n(e.expanded??!1)},[e.expanded,e.activeNavItem,e.item]);const i=e.item.children.filter(c=>Un(c,e.currentSearch));return x("li",{children:[x("button",{className:de("flex min-h-8 w-full items-center gap-1 rounded-none px-4 text-start transition-colors hover:bg-black/5 active:bg-black/10 dark:text-gray-100 dark:hover:bg-black/30 dark:active:bg-black/40",{"py-2 font-medium":!o||e.item.children.length,"py-1 pl-4":o,"bg-blue-500 text-white hover:bg-blue-400 dark:hover:bg-blue-400 dark:active:bg-blue-500":e.activeNavItem===e.item}),style:`padding-left: ${e.level*16}px`,onClick:()=>{if(e.item.children.length){if(t)return n(!1);n(!0)}return e.setActiveNavItem(e.item)},children:[e.item.children.length?x(G,{children:[x(wa,{className:de("icon -ml-1",{hidden:t})}),x(ba,{className:de("icon -ml-1",{hidden:!t})})]}):o?null:x("span",{className:"w-3"}),e.item.title]}),i.length>0&&t&&x("ul",{children:i.map(c=>x(Tr,{activeNavItem:e.activeNavItem,item:c,setActiveNavItem:e.setActiveNavItem,expanded:e.expanded,isChild:!0,level:e.level+1,currentSearch:e.currentSearch}))})]})}function Ma(e){return x("div",{className:"relative flex items-center",children:[x(Pa,{className:"absolute flex items-center w-5 h-5 text-gray-400 pointer-events-none left-4","aria-hidden":"true"}),x("input",{type:"search",className:"block w-full h-8 pl-10 pr-2 placeholder-gray-500 transition bg-white rounded-full ring-1 ring-gray-300 hover:bg-gray-50 hover:ring-gray-400 focus:outline-none focus:ring-blue-400 focus-visible:ring-2 dark:bg-gray-700 dark:text-white dark:ring-gray-500 dark:hover:bg-gray-700/75 dark:focus:ring-blue-400",placeholder:"Search","aria-label":"search",onInput:e.onInput})]})}const yo=e=>{let t;const n=new Set,o=(l,u)=>{const f=typeof l=="function"?l(t):l;if(!Object.is(f,t)){const s=t;t=u??typeof f!="object"?f:Object.assign({},t,f),n.forEach(g=>g(t,s))}},r=()=>t,a={setState:o,getState:r,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{n.clear()}};return t=e(o,r,a),a},Ra=e=>e?yo(e):yo;var Ir={exports:{}},Nr={};const Lr=qc(Rr);var Fr={exports:{}},Ur={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var qe=Lr;function Aa(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ta=typeof Object.is=="function"?Object.is:Aa,Ia=qe.useState,Na=qe.useEffect,La=qe.useLayoutEffect,Fa=qe.useDebugValue;function Ua(e,t){var n=t(),o=Ia({inst:{value:n,getSnapshot:t}}),r=o[0].inst,i=o[1];return La(function(){r.value=n,r.getSnapshot=t,rn(r)&&i({inst:r})},[e,n,t]),Na(function(){return rn(r)&&i({inst:r}),e(function(){rn(r)&&i({inst:r})})},[e]),Fa(n),n}function rn(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ta(e,n)}catch{return!0}}function za(e,t){return t()}var Ba=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?za:Ua;Ur.useSyncExternalStore=qe.useSyncExternalStore!==void 0?qe.useSyncExternalStore:Ba;Fr.exports=Ur;var Va=Fr.exports;/** - * @license React - * use-sync-external-store-shim/with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Gt=Lr,Ha=Va;function Wa(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ja=typeof Object.is=="function"?Object.is:Wa,Ka=Ha.useSyncExternalStore,Ga=Gt.useRef,Ya=Gt.useEffect,Za=Gt.useMemo,Xa=Gt.useDebugValue;Nr.useSyncExternalStoreWithSelector=function(e,t,n,o,r){var i=Ga(null);if(i.current===null){var c={hasValue:!1,value:null};i.current=c}else c=i.current;i=Za(function(){function l(d){if(!u){if(u=!0,f=d,d=o(d),r!==void 0&&c.hasValue){var h=c.value;if(r(h,d))return s=h}return s=d}if(h=s,ja(f,d))return h;var p=o(d);return r!==void 0&&r(h,p)?h:(f=d,s=p)}var u=!1,f,s,g=n===void 0?null:n;return[function(){return l(t())},g===null?void 0:function(){return l(g())}]},[t,n,o,r]);var a=Ka(e,i[0],i[1]);return Ya(function(){c.hasValue=!0,c.value=a},[a]),Xa(a),a};Ir.exports=Nr;var qa=Ir.exports;const Ja=sr(qa),{useSyncExternalStoreWithSelector:Qa}=Ja;function es(e,t=e.getState,n){const o=Qa(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return In(o),o}const $o=e=>{const t=typeof e=="function"?Ra(e):e,n=(o,r)=>es(t,o,r);return Object.assign(n,t),n},zn=e=>e?$o(e):$o,yn=new Map,xt=e=>{const t=yn.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,o])=>[n,o.getState()])):{}},ts=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const o=yn.get(n.name);if(o)return{type:"tracked",store:e,...o};const r={connection:t.connect(n),stores:{}};return yn.set(n.name,r),{type:"tracked",store:e,...r}},ns=(e,t={})=>(n,o,r)=>{const{enabled:i,anonymousActionType:c,store:a,...l}=t;let u;try{u=(i??!1)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return e(n,o,r);const{connection:f,...s}=ts(a,u,l);let g=!0;r.setState=(p,b,v)=>{const m=n(p,b);if(!g)return m;const w=v===void 0?{type:c||"anonymous"}:typeof v=="string"?{type:v}:v;return a===void 0?(f==null||f.send(w,o()),m):(f==null||f.send({...w,type:`${a}/${w.type}`},{...xt(l.name),[a]:r.getState()}),m)};const d=(...p)=>{const b=g;g=!1,n(...p),g=b},h=e(r.setState,o,r);if(s.type==="untracked"?f==null||f.init(h):(s.stores[s.store]=r,f==null||f.init(Object.fromEntries(Object.entries(s.stores).map(([p,b])=>[p,p===s.store?h:b.getState()])))),r.dispatchFromDevtools&&typeof r.dispatch=="function"){let p=!1;const b=r.dispatch;r.dispatch=(...v)=>{b(...v)}}return f.subscribe(p=>{var b;switch(p.type){case"ACTION":if(typeof p.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return cn(p.payload,v=>{if(v.type==="__setState"){if(a===void 0){d(v.state);return}Object.keys(v.state).length!==1&&console.error(` - [zustand devtools middleware] Unsupported __setState action format. - When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), - and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } - `);const m=v.state[a];if(m==null)return;JSON.stringify(r.getState())!==JSON.stringify(m)&&d(m);return}r.dispatchFromDevtools&&typeof r.dispatch=="function"&&r.dispatch(v)});case"DISPATCH":switch(p.payload.type){case"RESET":return d(h),a===void 0?f==null?void 0:f.init(r.getState()):f==null?void 0:f.init(xt(l.name));case"COMMIT":if(a===void 0){f==null||f.init(r.getState());return}return f==null?void 0:f.init(xt(l.name));case"ROLLBACK":return cn(p.state,v=>{if(a===void 0){d(v),f==null||f.init(r.getState());return}d(v[a]),f==null||f.init(xt(l.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return cn(p.state,v=>{if(a===void 0){d(v);return}JSON.stringify(r.getState())!==JSON.stringify(v[a])&&d(v[a])});case"IMPORT_STATE":{const{nextLiftedState:v}=p.payload,m=(b=v.computedStates.slice(-1)[0])==null?void 0:b.state;if(!m)return;d(a===void 0?m:m[a]),f==null||f.send(null,v);return}case"PAUSE_RECORDING":return g=!g}return}}),h},Bn=ns,cn=(e,t)=>{let n;try{n=JSON.parse(e)}catch(o){console.error("[zustand devtools middleware] Could not parse the received json",o)}n!==void 0&&t(n)},zr=(e,t)=>(...n)=>Object.assign({},e,t(...n));function os(e,t){let n;try{n=e()}catch{return}return{getItem:r=>{var i;const c=l=>l===null?null:JSON.parse(l,t==null?void 0:t.reviver),a=(i=n.getItem(r))!=null?i:null;return a instanceof Promise?a.then(c):c(a)},setItem:(r,i)=>n.setItem(r,JSON.stringify(i,t==null?void 0:t.replacer)),removeItem:r=>n.removeItem(r)}}const dt=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(o){return dt(o)(n)},catch(o){return this}}}catch(n){return{then(o){return this},catch(o){return dt(o)(n)}}}},rs=(e,t)=>(n,o,r)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:b=>b,version:0,merge:(b,v)=>({...v,...b}),...t},c=!1;const a=new Set,l=new Set;let u;try{u=i.getStorage()}catch{}if(!u)return e((...b)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...b)},o,r);const f=dt(i.serialize),s=()=>{const b=i.partialize({...o()});let v;const m=f({state:b,version:i.version}).then(w=>u.setItem(i.name,w)).catch(w=>{v=w});if(v)throw v;return m},g=r.setState;r.setState=(b,v)=>{g(b,v),s()};const d=e((...b)=>{n(...b),s()},o,r);let h;const p=()=>{var b;if(!u)return;c=!1,a.forEach(m=>m(o()));const v=((b=i.onRehydrateStorage)==null?void 0:b.call(i,o()))||void 0;return dt(u.getItem.bind(u))(i.name).then(m=>{if(m)return i.deserialize(m)}).then(m=>{if(m)if(typeof m.version=="number"&&m.version!==i.version){if(i.migrate)return i.migrate(m.state,m.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return m.state}).then(m=>{var w;return h=i.merge(m,(w=o())!=null?w:d),n(h,!0),s()}).then(()=>{v==null||v(h,void 0),c=!0,l.forEach(m=>m(h))}).catch(m=>{v==null||v(void 0,m)})};return r.persist={setOptions:b=>{i={...i,...b},b.getStorage&&(u=b.getStorage())},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>p(),hasHydrated:()=>c,onHydrate:b=>(a.add(b),()=>{a.delete(b)}),onFinishHydration:b=>(l.add(b),()=>{l.delete(b)})},p(),h||d},is=(e,t)=>(n,o,r)=>{let i={storage:os(()=>localStorage),partialize:p=>p,version:0,merge:(p,b)=>({...b,...p}),...t},c=!1;const a=new Set,l=new Set;let u=i.storage;if(!u)return e((...p)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...p)},o,r);const f=()=>{const p=i.partialize({...o()});return u.setItem(i.name,{state:p,version:i.version})},s=r.setState;r.setState=(p,b)=>{s(p,b),f()};const g=e((...p)=>{n(...p),f()},o,r);let d;const h=()=>{var p,b;if(!u)return;c=!1,a.forEach(m=>{var w;return m((w=o())!=null?w:g)});const v=((b=i.onRehydrateStorage)==null?void 0:b.call(i,(p=o())!=null?p:g))||void 0;return dt(u.getItem.bind(u))(i.name).then(m=>{if(m)if(typeof m.version=="number"&&m.version!==i.version){if(i.migrate)return i.migrate(m.state,m.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return m.state}).then(m=>{var w;return d=i.merge(m,(w=o())!=null?w:g),n(d,!0),f()}).then(()=>{v==null||v(d,void 0),d=o(),c=!0,l.forEach(m=>m(d))}).catch(m=>{v==null||v(void 0,m)})};return r.persist={setOptions:p=>{i={...i,...p},p.storage&&(u=p.storage)},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>h(),hasHydrated:()=>c,onHydrate:p=>(a.add(p),()=>{a.delete(p)}),onFinishHydration:p=>(l.add(p),()=>{l.delete(p)})},i.skipHydration||h(),d||g},cs=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?rs(e,t):is(e,t),Br=cs;var Ut=(e=>(e[e.Mobile=0]="Mobile",e[e.Tablet=1]="Tablet",e[e.Desktop=2]="Desktop",e))(Ut||{});const xo=[{title:"Mobile",size:0},{title:"Tablet",size:1},{title:"Desktop",size:2}],as={0:375,1:768,2:void 0},ss=()=>window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",Vn=zn(Br(Bn(zr({mode:ss()},e=>({setMode:t=>e(()=>({mode:t})),toggleMode:()=>e(t=>({mode:t.mode==="light"?"dark":"light"}))}))),{name:"theme-store"})),De=zn(Bn(zr({isSettingsVisible:!1,isSettingsOpen:!1,isViewportOpen:!1,isNavBarVisible:!0,activeScreenSize:2},e=>({setIsSettingsVisible:t=>e(()=>({isSettingsVisible:t})),setIsSettingsOpen:t=>e(()=>({isSettingsOpen:t})),setIsViewportOpen:t=>e(()=>({isViewportOpen:t})),setIsNavBarVisible:t=>e(()=>({isNavBarVisible:t})),setActiveScreenSize:t=>e(()=>({activeScreenSize:t}))}))));function ls(e){const[t,n]=T(""),o=e.nav.filter(i=>Un(i,t)),r=De();return x("nav",{className:de("flex min-w-[250px] flex-col gap-8 overflow-hidden bg-gray-100 bg-gradient-to-l from-gray-400/30 to-transparent to-35% transition-colors dark:bg-gray-800 dark:from-gray-900/40"),children:x("div",{className:de("grid grid-rows-[auto,1fr] h-full gap-6 transition-all duration-500 ease-out",{"opacity-100 delay-200":r.isNavBarVisible,"invisible -translate-x-2 opacity-0 delay-0":!r.isNavBarVisible}),children:[x("div",{className:"px-6 pt-6",children:x(Ma,{onInput:i=>n(i.currentTarget.value.toLowerCase())})}),x("ul",{className:"flex flex-col gap-2 overflow-auto pb-6",children:o.map(i=>x(Tr,{activeNavItem:e.activeNavItem,item:i,setActiveNavItem:e.setActiveNavItem,expanded:t!=="",level:1,currentSearch:t}))})]})})}const Vr="/parts-kit/config.json",Hr=zn()(Bn(Br(e=>({configUrl:Vr,setConfigUrl:t=>e(()=>({configUrl:t}))}),{name:"settings"})));function us(){const e=De();return x("div",{className:"max-w-lg px-3 py-10 mx-auto space-y-3",children:[x("h1",{className:"text-xl font-bold",children:"👋 Welcome!"}),x("p",{children:'This is a demo of a "decoupled" parts kit. To get started, simply click a parts link on the left.'}),x("p",{children:["If you'd like to try this out with your own JSON. Click the"," ",x("button",{className:"text-blue-600 hover:underline",onClick:()=>e.setIsSettingsVisible(!0),children:[x(Ar,{className:"inline"})," settings button"]})," ","in the top menu bar."]}),x("p",{children:["Curious what a decoupled parts kit is?"," ",x("a",{className:"text-blue-600 underline",href:"https://github.com/vigetlabs/parts-kit",children:"📚 Check out the docs"}),"."]})]})}function ds(){const e=De();return x("button",{className:"btn-subtle btn-icon",title:e.isNavBarVisible?"Go Fullscreen [F]":"Exit Fullscreen [F]",onClick:()=>e.setIsNavBarVisible(!e.isNavBarVisible),children:e.isNavBarVisible?x(ka,{}):x(Ca,{})})}function fs(){const e=Vn();return x("button",{className:"btn-subtle btn-icon",title:"Toggle Theme [Shift + T]",onClick:()=>e.toggleMode(),children:x(va,{})})}function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>ps(n,t))}function Z(...e){return z(Yt(...e),e)}function hs(e,t){const n=Ue(t);function o(i){const{children:c,...a}=i,l=q(()=>a,Object.values(a));return _(n.Provider,{value:l},c)}function r(i){const c=nt(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return o.displayName=e+"Provider",[o,r]}function rt(e,t=[]){let n=[];function o(i,c){const a=Ue(c),l=n.length;n=[...n,c];function u(s){const{scope:g,children:d,...h}=s,p=(g==null?void 0:g[e][l])||a,b=q(()=>h,Object.values(h));return _(p.Provider,{value:b},d)}function f(s,g){const d=(g==null?void 0:g[e][l])||a,h=nt(d);if(h)return h;if(c!==void 0)return c;throw new Error(`\`${s}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,f]}const r=()=>{const i=n.map(c=>Ue(c));return function(a){const l=(a==null?void 0:a[e])||i;return q(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return r.scopeName=e,[o,gs(r,...t)]}function gs(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const c=o.reduce((a,{useScope:l,scopeName:u})=>{const s=l(i)[`__scope${u}`];return{...a,...s}},{});return q(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function oe(e){const t=D(e);return I(()=>{t.current=e}),q(()=>(...n)=>{var o;return(o=t.current)===null||o===void 0?void 0:o.call(t,...n)},[])}function Zt({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=vs({defaultProp:t,onChange:n}),i=e!==void 0,c=i?e:o,a=oe(n),l=z(u=>{if(i){const s=typeof u=="function"?u(e):u;s!==e&&a(s)}else r(u)},[i,e,r,a]);return[c,l]}function vs({defaultProp:e,onChange:t}){const n=T(e),[o]=n,r=D(o),i=oe(t);return I(()=>{r.current!==o&&(i(o),r.current=o)},[o,r,i]),n}const Je=S((e,t)=>{const{children:n,...o}=e,r=fe.toArray(n),i=r.find(bs);if(i){const c=i.props.children,a=r.map(l=>l===i?fe.count(c)>1?fe.only(null):be(c)?c.props.children:null:l);return _($n,k({},o,{ref:t}),be(c)?ot(c,void 0,a):null)}return _($n,k({},o,{ref:t}),n)});Je.displayName="Slot";const $n=S((e,t)=>{const{children:n,...o}=e;return be(n)?ot(n,{..._s(o,n.props),ref:t?Yt(t,n.ref):n.ref}):fe.count(n)>1?fe.only(null):null});$n.displayName="SlotClone";const ms=({children:e})=>_(G,null,e);function bs(e){return be(e)&&e.type===ms}function _s(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...a)=>{i(...a),r(...a)}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}const ws=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],K=ws.reduce((e,t)=>{const n=S((o,r)=>{const{asChild:i,...c}=o,a=i?Je:t;return I(()=>{window[Symbol.for("radix-ui")]=!0},[]),_(a,k({},c,{ref:r}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Wr(e,t){e&&mt(()=>e.dispatchEvent(t))}function jr(e){const t=e+"CollectionProvider",[n,o]=rt(t),[r,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:h,children:p}=d,b=ne.useRef(null),v=ne.useRef(new Map).current;return ne.createElement(r,{scope:h,itemMap:v,collectionRef:b},p)},a=e+"CollectionSlot",l=ne.forwardRef((d,h)=>{const{scope:p,children:b}=d,v=i(a,p),m=Z(h,v.collectionRef);return ne.createElement(Je,{ref:m},b)}),u=e+"CollectionItemSlot",f="data-radix-collection-item",s=ne.forwardRef((d,h)=>{const{scope:p,children:b,...v}=d,m=ne.useRef(null),w=Z(h,m),y=i(u,p);return ne.useEffect(()=>(y.itemMap.set(m,{ref:m,...v}),()=>void y.itemMap.delete(m))),ne.createElement(Je,{[f]:"",ref:w},b)});function g(d){const h=i(e+"CollectionConsumer",d);return ne.useCallback(()=>{const b=h.collectionRef.current;if(!b)return[];const v=Array.from(b.querySelectorAll(`[${f}]`));return Array.from(h.itemMap.values()).sort((y,$)=>v.indexOf(y.ref.current)-v.indexOf($.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:c,Slot:l,ItemSlot:s},g,o]}const ys=Ue(void 0);function Kr(e){const t=nt(ys);return e||t||"ltr"}function $s(e,t=globalThis==null?void 0:globalThis.document){const n=oe(e);I(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o),()=>t.removeEventListener("keydown",o)},[n,t])}const xn="dismissableLayer.update",xs="dismissableLayer.pointerDownOutside",Cs="dismissableLayer.focusOutside";let Co;const Ss=Ue({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Gr=S((e,t)=>{var n;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:c,onInteractOutside:a,onDismiss:l,...u}=e,f=nt(Ss),[s,g]=T(null),d=(n=s==null?void 0:s.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,h]=T({}),p=Z(t,P=>g(P)),b=Array.from(f.layers),[v]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),m=b.indexOf(v),w=s?b.indexOf(s):-1,y=f.layersWithOutsidePointerEventsDisabled.size>0,$=w>=m,O=ks(P=>{const M=P.target,L=[...f.branches].some(F=>F.contains(M));!$||L||(i==null||i(P),a==null||a(P),P.defaultPrevented||l==null||l())},d),C=Es(P=>{const M=P.target;[...f.branches].some(F=>F.contains(M))||(c==null||c(P),a==null||a(P),P.defaultPrevented||l==null||l())},d);return $s(P=>{w===f.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&l&&(P.preventDefault(),l()))},d),I(()=>{if(s)return o&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Co=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(s)),f.layers.add(s),So(),()=>{o&&f.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=Co)}},[s,d,o,f]),I(()=>()=>{s&&(f.layers.delete(s),f.layersWithOutsidePointerEventsDisabled.delete(s),So())},[s,f]),I(()=>{const P=()=>h({});return document.addEventListener(xn,P),()=>document.removeEventListener(xn,P)},[]),_(K.div,k({},u,{ref:p,style:{pointerEvents:y?$?"auto":"none":void 0,...e.style},onFocusCapture:A(e.onFocusCapture,C.onFocusCapture),onBlurCapture:A(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:A(e.onPointerDownCapture,O.onPointerDownCapture)}))});function ks(e,t=globalThis==null?void 0:globalThis.document){const n=oe(e),o=D(!1),r=D(()=>{});return I(()=>{const i=a=>{if(a.target&&!o.current){let f=function(){Yr(xs,n,u,{discrete:!0})};var l=f;const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=f,t.addEventListener("click",r.current,{once:!0})):f()}o.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function Es(e,t=globalThis==null?void 0:globalThis.document){const n=oe(e),o=D(!1);return I(()=>{const r=i=>{i.target&&!o.current&&Yr(Cs,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function So(){const e=new CustomEvent(xn);document.dispatchEvent(e)}function Yr(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Wr(r,i):r.dispatchEvent(i)}let an=0;function Zr(){I(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:ko()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:ko()),an++,()=>{an===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),an--}},[])}function ko(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const sn="focusScope.autoFocusOnMount",ln="focusScope.autoFocusOnUnmount",Eo={bubbles:!1,cancelable:!0},Xr=S((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...c}=e,[a,l]=T(null),u=oe(r),f=oe(i),s=D(null),g=Z(t,p=>l(p)),d=D({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;I(()=>{if(o){let m=function(O){if(d.paused||!a)return;const C=O.target;a.contains(C)?s.current=C:Se(s.current,{select:!0})},w=function(O){if(d.paused||!a)return;const C=O.relatedTarget;C!==null&&(a.contains(C)||Se(s.current,{select:!0}))},y=function(O){const C=document.activeElement;for(const P of O)P.removedNodes.length>0&&(a!=null&&a.contains(C)||Se(a))};var p=m,b=w,v=y;document.addEventListener("focusin",m),document.addEventListener("focusout",w);const $=new MutationObserver(y);return a&&$.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",w),$.disconnect()}}},[o,a,d.paused]),I(()=>{if(a){Po.add(d);const p=document.activeElement;if(!a.contains(p)){const v=new CustomEvent(sn,Eo);a.addEventListener(sn,u),a.dispatchEvent(v),v.defaultPrevented||(Os(As(qr(a)),{select:!0}),document.activeElement===p&&Se(a))}return()=>{a.removeEventListener(sn,u),setTimeout(()=>{const v=new CustomEvent(ln,Eo);a.addEventListener(ln,f),a.dispatchEvent(v),v.defaultPrevented||Se(p??document.body,{select:!0}),a.removeEventListener(ln,f),Po.remove(d)},0)}}},[a,u,f,d]);const h=z(p=>{if(!n&&!o||d.paused)return;const b=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,v=document.activeElement;if(b&&v){const m=p.currentTarget,[w,y]=Ps(m);w&&y?!p.shiftKey&&v===y?(p.preventDefault(),n&&Se(w,{select:!0})):p.shiftKey&&v===w&&(p.preventDefault(),n&&Se(y,{select:!0})):v===m&&p.preventDefault()}},[n,o,d.paused]);return _(K.div,k({tabIndex:-1},c,{ref:g,onKeyDown:h}))});function Os(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Se(o,{select:t}),document.activeElement!==n)return}function Ps(e){const t=qr(e),n=Oo(t,e),o=Oo(t.reverse(),e);return[n,o]}function qr(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Oo(e,t){for(const n of e)if(!Ds(n,{upTo:t}))return n}function Ds(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ms(e){return e instanceof HTMLInputElement&&"select"in e}function Se(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ms(e)&&t&&e.select()}}const Po=Rs();function Rs(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Do(e,t),e.unshift(t)},remove(t){var n;e=Do(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Do(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function As(e){return e.filter(t=>t.tagName!=="A")}const Qe=globalThis!=null&&globalThis.document?Ve:()=>{},Ts=Rr["useId".toString()]||(()=>{});let Is=0;function ke(e){const[t,n]=T(Ts());return Qe(()=>{e||n(o=>o??String(Is++))},[e]),e||(t?`radix-${t}`:"")}const Ns=["top","right","bottom","left"],Ee=Math.min,ee=Math.max,zt=Math.round,Ct=Math.floor,Oe=e=>({x:e,y:e}),Ls={left:"right",right:"left",bottom:"top",top:"bottom"},Fs={start:"end",end:"start"};function Cn(e,t,n){return ee(e,Ee(t,n))}function _e(e,t){return typeof e=="function"?e(t):e}function we(e){return e.split("-")[0]}function it(e){return e.split("-")[1]}function Hn(e){return e==="x"?"y":"x"}function Wn(e){return e==="y"?"height":"width"}function ct(e){return["top","bottom"].includes(we(e))?"y":"x"}function jn(e){return Hn(ct(e))}function Us(e,t,n){n===void 0&&(n=!1);const o=it(e),r=jn(e),i=Wn(r);let c=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(c=Bt(c)),[c,Bt(c)]}function zs(e){const t=Bt(e);return[Sn(e),t,Sn(t)]}function Sn(e){return e.replace(/start|end/g,t=>Fs[t])}function Bs(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],c=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:c;default:return[]}}function Vs(e,t,n,o){const r=it(e);let i=Bs(we(e),n==="start",o);return r&&(i=i.map(c=>c+"-"+r),t&&(i=i.concat(i.map(Sn)))),i}function Bt(e){return e.replace(/left|right|bottom|top/g,t=>Ls[t])}function Hs(e){return{top:0,right:0,bottom:0,left:0,...e}}function Jr(e){return typeof e!="number"?Hs(e):{top:e,right:e,bottom:e,left:e}}function Vt(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Mo(e,t,n){let{reference:o,floating:r}=e;const i=ct(t),c=jn(t),a=Wn(c),l=we(t),u=i==="y",f=o.x+o.width/2-r.width/2,s=o.y+o.height/2-r.height/2,g=o[a]/2-r[a]/2;let d;switch(l){case"top":d={x:f,y:o.y-r.height};break;case"bottom":d={x:f,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:s};break;case"left":d={x:o.x-r.width,y:s};break;default:d={x:o.x,y:o.y}}switch(it(t)){case"start":d[c]-=g*(n&&u?-1:1);break;case"end":d[c]+=g*(n&&u?-1:1);break}return d}const Ws=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:c}=n,a=i.filter(Boolean),l=await(c.isRTL==null?void 0:c.isRTL(t));let u=await c.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:s}=Mo(u,o,l),g=o,d={},h=0;for(let p=0;p({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:c,elements:a,middlewareData:l}=t,{element:u,padding:f=0}=_e(e,t)||{};if(u==null)return{};const s=Jr(f),g={x:n,y:o},d=jn(r),h=Wn(d),p=await c.getDimensions(u),b=d==="y",v=b?"top":"left",m=b?"bottom":"right",w=b?"clientHeight":"clientWidth",y=i.reference[h]+i.reference[d]-g[d]-i.floating[h],$=g[d]-i.reference[d],O=await(c.getOffsetParent==null?void 0:c.getOffsetParent(u));let C=O?O[w]:0;(!C||!await(c.isElement==null?void 0:c.isElement(O)))&&(C=a.floating[w]||i.floating[h]);const P=y/2-$/2,M=C/2-p[h]/2-1,L=Ee(s[v],M),F=Ee(s[m],M),j=L,H=C-p[h]-F,N=C/2-p[h]/2+P,V=Cn(j,N,H),U=!l.arrow&&it(r)!=null&&N!=V&&i.reference[h]/2-(NF<=0)){var P,M;const F=(((P=r.flip)==null?void 0:P.index)||0)+1,j=y[F];if(j)return{data:{index:F,overflows:C},reset:{placement:j}};let H=(M=C.filter(N=>N.overflows[0]<=0).sort((N,V)=>N.overflows[1]-V.overflows[1])[0])==null?void 0:M.placement;if(!H)switch(g){case"bestFit":{var L;const N=(L=C.map(V=>[V.placement,V.overflows.filter(U=>U>0).reduce((U,J)=>U+J,0)]).sort((V,U)=>V[1]-U[1])[0])==null?void 0:L[0];N&&(H=N);break}case"initialPlacement":H=c;break}if(o!==H)return{reset:{placement:H}}}return{}}}};function Ao(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function To(e){return Ns.some(t=>e[t]>=0)}const Ks=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=_e(e,t);switch(o){case"referenceHidden":{const i=await ft(t,{...r,elementContext:"reference"}),c=Ao(i,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:To(c)}}}case"escaped":{const i=await ft(t,{...r,altBoundary:!0}),c=Ao(i,n.floating);return{data:{escapedOffsets:c,escaped:To(c)}}}default:return{}}}}};async function Gs(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),c=we(n),a=it(n),l=ct(n)==="y",u=["left","top"].includes(c)?-1:1,f=i&&l?-1:1,s=_e(t,e);let{mainAxis:g,crossAxis:d,alignmentAxis:h}=typeof s=="number"?{mainAxis:s,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...s};return a&&typeof h=="number"&&(d=a==="end"?h*-1:h),l?{x:d*f,y:g*u}:{x:g*u,y:d*f}}const Ys=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,r=await Gs(t,e);return{x:n+r.x,y:o+r.y,data:r}}}},Zs=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:c=!1,limiter:a={fn:b=>{let{x:v,y:m}=b;return{x:v,y:m}}},...l}=_e(e,t),u={x:n,y:o},f=await ft(t,l),s=ct(we(r)),g=Hn(s);let d=u[g],h=u[s];if(i){const b=g==="y"?"top":"left",v=g==="y"?"bottom":"right",m=d+f[b],w=d-f[v];d=Cn(m,d,w)}if(c){const b=s==="y"?"top":"left",v=s==="y"?"bottom":"right",m=h+f[b],w=h-f[v];h=Cn(m,h,w)}const p=a.fn({...t,[g]:d,[s]:h});return{...p,data:{x:p.x-n,y:p.y-o}}}}},Xs=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:c}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=_e(e,t),f={x:n,y:o},s=ct(r),g=Hn(s);let d=f[g],h=f[s];const p=_e(a,t),b=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const w=g==="y"?"height":"width",y=i.reference[g]-i.floating[w]+b.mainAxis,$=i.reference[g]+i.reference[w]-b.mainAxis;d$&&(d=$)}if(u){var v,m;const w=g==="y"?"width":"height",y=["top","left"].includes(we(r)),$=i.reference[s]-i.floating[w]+(y&&((v=c.offset)==null?void 0:v[s])||0)+(y?0:b.crossAxis),O=i.reference[s]+i.reference[w]+(y?0:((m=c.offset)==null?void 0:m[s])||0)-(y?b.crossAxis:0);h<$?h=$:h>O&&(h=O)}return{[g]:d,[s]:h}}}},qs=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:i}=t,{apply:c=()=>{},...a}=_e(e,t),l=await ft(t,a),u=we(n),f=it(n),s=ct(n)==="y",{width:g,height:d}=o.floating;let h,p;u==="top"||u==="bottom"?(h=u,p=f===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(p=u,h=f==="end"?"top":"bottom");const b=d-l[h],v=g-l[p],m=!t.middlewareData.shift;let w=b,y=v;if(s){const O=g-l.left-l.right;y=f||m?Ee(v,O):O}else{const O=d-l.top-l.bottom;w=f||m?Ee(b,O):O}if(m&&!f){const O=ee(l.left,0),C=ee(l.right,0),P=ee(l.top,0),M=ee(l.bottom,0);s?y=g-2*(O!==0||C!==0?O+C:ee(l.left,l.right)):w=d-2*(P!==0||M!==0?P+M:ee(l.top,l.bottom))}await c({...t,availableWidth:y,availableHeight:w});const $=await r.getDimensions(i.floating);return g!==$.width||d!==$.height?{reset:{rects:!0}}:{}}}};function Pe(e){return Qr(e)?(e.nodeName||"").toLowerCase():"#document"}function te(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xe(e){var t;return(t=(Qr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Qr(e){return e instanceof Node||e instanceof te(e).Node}function ye(e){return e instanceof Element||e instanceof te(e).Element}function pe(e){return e instanceof HTMLElement||e instanceof te(e).HTMLElement}function Io(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof te(e).ShadowRoot}function bt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=re(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function Js(e){return["table","td","th"].includes(Pe(e))}function Kn(e){const t=Gn(),n=re(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Qs(e){let t=et(e);for(;pe(t)&&!Xt(t);){if(Kn(t))return t;t=et(t)}return null}function Gn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Xt(e){return["html","body","#document"].includes(Pe(e))}function re(e){return te(e).getComputedStyle(e)}function qt(e){return ye(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function et(e){if(Pe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Io(e)&&e.host||xe(e);return Io(t)?t.host:t}function ei(e){const t=et(e);return Xt(t)?e.ownerDocument?e.ownerDocument.body:e.body:pe(t)&&bt(t)?t:ei(t)}function pt(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=ei(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),c=te(r);return i?t.concat(c,c.visualViewport||[],bt(r)?r:[],c.frameElement&&n?pt(c.frameElement):[]):t.concat(r,pt(r))}function ti(e){const t=re(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=pe(e),i=r?e.offsetWidth:n,c=r?e.offsetHeight:o,a=zt(n)!==i||zt(o)!==c;return a&&(n=i,o=c),{width:n,height:o,$:a}}function Yn(e){return ye(e)?e:e.contextElement}function Ze(e){const t=Yn(e);if(!pe(t))return Oe(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=ti(t);let c=(i?zt(n.width):n.width)/o,a=(i?zt(n.height):n.height)/r;return(!c||!Number.isFinite(c))&&(c=1),(!a||!Number.isFinite(a))&&(a=1),{x:c,y:a}}const el=Oe(0);function ni(e){const t=te(e);return!Gn()||!t.visualViewport?el:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function tl(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==te(e)?!1:t}function ze(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=Yn(e);let c=Oe(1);t&&(o?ye(o)&&(c=Ze(o)):c=Ze(e));const a=tl(i,n,o)?ni(i):Oe(0);let l=(r.left+a.x)/c.x,u=(r.top+a.y)/c.y,f=r.width/c.x,s=r.height/c.y;if(i){const g=te(i),d=o&&ye(o)?te(o):o;let h=g.frameElement;for(;h&&o&&d!==g;){const p=Ze(h),b=h.getBoundingClientRect(),v=re(h),m=b.left+(h.clientLeft+parseFloat(v.paddingLeft))*p.x,w=b.top+(h.clientTop+parseFloat(v.paddingTop))*p.y;l*=p.x,u*=p.y,f*=p.x,s*=p.y,l+=m,u+=w,h=te(h).frameElement}}return Vt({width:f,height:s,x:l,y:u})}function nl(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=pe(n),i=xe(n);if(n===i)return t;let c={scrollLeft:0,scrollTop:0},a=Oe(1);const l=Oe(0);if((r||!r&&o!=="fixed")&&((Pe(n)!=="body"||bt(i))&&(c=qt(n)),pe(n))){const u=ze(n);a=Ze(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-c.scrollLeft*a.x+l.x,y:t.y*a.y-c.scrollTop*a.y+l.y}}function ol(e){return Array.from(e.getClientRects())}function oi(e){return ze(xe(e)).left+qt(e).scrollLeft}function rl(e){const t=xe(e),n=qt(e),o=e.ownerDocument.body,r=ee(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=ee(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let c=-n.scrollLeft+oi(e);const a=-n.scrollTop;return re(o).direction==="rtl"&&(c+=ee(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:c,y:a}}function il(e,t){const n=te(e),o=xe(e),r=n.visualViewport;let i=o.clientWidth,c=o.clientHeight,a=0,l=0;if(r){i=r.width,c=r.height;const u=Gn();(!u||u&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:c,x:a,y:l}}function cl(e,t){const n=ze(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=pe(e)?Ze(e):Oe(1),c=e.clientWidth*i.x,a=e.clientHeight*i.y,l=r*i.x,u=o*i.y;return{width:c,height:a,x:l,y:u}}function No(e,t,n){let o;if(t==="viewport")o=il(e,n);else if(t==="document")o=rl(xe(e));else if(ye(t))o=cl(t,n);else{const r=ni(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return Vt(o)}function ri(e,t){const n=et(e);return n===t||!ye(n)||Xt(n)?!1:re(n).position==="fixed"||ri(n,t)}function al(e,t){const n=t.get(e);if(n)return n;let o=pt(e,[],!1).filter(a=>ye(a)&&Pe(a)!=="body"),r=null;const i=re(e).position==="fixed";let c=i?et(e):e;for(;ye(c)&&!Xt(c);){const a=re(c),l=Kn(c);!l&&a.position==="fixed"&&(r=null),(i?!l&&!r:!l&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||bt(c)&&!l&&ri(e,c))?o=o.filter(f=>f!==c):r=a,c=et(c)}return t.set(e,o),o}function sl(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const c=[...n==="clippingAncestors"?al(t,this._c):[].concat(n),o],a=c[0],l=c.reduce((u,f)=>{const s=No(t,f,r);return u.top=ee(s.top,u.top),u.right=Ee(s.right,u.right),u.bottom=Ee(s.bottom,u.bottom),u.left=ee(s.left,u.left),u},No(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function ll(e){return ti(e)}function ul(e,t,n){const o=pe(t),r=xe(t),i=n==="fixed",c=ze(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Oe(0);if(o||!o&&!i)if((Pe(t)!=="body"||bt(r))&&(a=qt(t)),o){const u=ze(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else r&&(l.x=oi(r));return{x:c.left+a.scrollLeft-l.x,y:c.top+a.scrollTop-l.y,width:c.width,height:c.height}}function Lo(e,t){return!pe(e)||re(e).position==="fixed"?null:t?t(e):e.offsetParent}function ii(e,t){const n=te(e);if(!pe(e))return n;let o=Lo(e,t);for(;o&&Js(o)&&re(o).position==="static";)o=Lo(o,t);return o&&(Pe(o)==="html"||Pe(o)==="body"&&re(o).position==="static"&&!Kn(o))?n:o||Qs(e)||n}const dl=async function(e){let{reference:t,floating:n,strategy:o}=e;const r=this.getOffsetParent||ii,i=this.getDimensions;return{reference:ul(t,await r(n),o),floating:{x:0,y:0,...await i(n)}}};function fl(e){return re(e).direction==="rtl"}const pl={convertOffsetParentRelativeRectToViewportRelativeRect:nl,getDocumentElement:xe,getClippingRect:sl,getOffsetParent:ii,getElementRects:dl,getClientRects:ol,getDimensions:ll,getScale:Ze,isElement:ye,isRTL:fl};function hl(e,t){let n=null,o;const r=xe(e);function i(){clearTimeout(o),n&&n.disconnect(),n=null}function c(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const{left:u,top:f,width:s,height:g}=e.getBoundingClientRect();if(a||t(),!s||!g)return;const d=Ct(f),h=Ct(r.clientWidth-(u+s)),p=Ct(r.clientHeight-(f+g)),b=Ct(u),m={rootMargin:-d+"px "+-h+"px "+-p+"px "+-b+"px",threshold:ee(0,Ee(1,l))||1};let w=!0;function y($){const O=$[0].intersectionRatio;if(O!==l){if(!w)return c();O?c(!1,O):o=setTimeout(()=>{c(!1,1e-7)},100)}w=!1}try{n=new IntersectionObserver(y,{...m,root:r.ownerDocument})}catch{n=new IntersectionObserver(y,m)}n.observe(e)}return c(!0),i}function gl(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=Yn(e),f=r||i?[...u?pt(u):[],...pt(t)]:[];f.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const s=u&&a?hl(u,n):null;let g=-1,d=null;c&&(d=new ResizeObserver(v=>{let[m]=v;m&&m.target===u&&d&&(d.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{d&&d.observe(t)})),n()}),u&&!l&&d.observe(u),d.observe(t));let h,p=l?ze(e):null;l&&b();function b(){const v=ze(e);p&&(v.x!==p.x||v.y!==p.y||v.width!==p.width||v.height!==p.height)&&n(),p=v,h=requestAnimationFrame(b)}return n(),()=>{f.forEach(v=>{r&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),s&&s(),d&&d.disconnect(),d=null,l&&cancelAnimationFrame(h)}}const vl=(e,t,n)=>{const o=new Map,r={platform:pl,...n},i={...r.platform,_c:o};return Ws(e,t,{...r,platform:i})},ml=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?Ro({element:o.current,padding:r}).fn(n):{}:o?Ro({element:o,padding:r}).fn(n):{}}}};var At=typeof document<"u"?Ve:I;function Ht(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(o=n;o--!==0;)if(!Ht(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!Ht(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function ci(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Fo(e,t){const n=ci(e);return Math.round(t*n)/n}function Uo(e){const t=D(e);return At(()=>{t.current=e}),t}function bl(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:c}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[f,s]=T({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,d]=T(o);Ht(g,o)||d(o);const[h,p]=T(null),[b,v]=T(null),m=z(U=>{U!=O.current&&(O.current=U,p(U))},[p]),w=z(U=>{U!==C.current&&(C.current=U,v(U))},[v]),y=i||h,$=c||b,O=D(null),C=D(null),P=D(f),M=Uo(l),L=Uo(r),F=z(()=>{if(!O.current||!C.current)return;const U={placement:t,strategy:n,middleware:g};L.current&&(U.platform=L.current),vl(O.current,C.current,U).then(J=>{const Y={...J,isPositioned:!0};j.current&&!Ht(P.current,Y)&&(P.current=Y,mt(()=>{s(Y)}))})},[g,t,n,L]);At(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,s(U=>({...U,isPositioned:!1})))},[u]);const j=D(!1);At(()=>(j.current=!0,()=>{j.current=!1}),[]),At(()=>{if(y&&(O.current=y),$&&(C.current=$),y&&$){if(M.current)return M.current(y,$,F);F()}},[y,$,F,M]);const H=q(()=>({reference:O,floating:C,setReference:m,setFloating:w}),[m,w]),N=q(()=>({reference:y,floating:$}),[y,$]),V=q(()=>{const U={position:n,left:0,top:0};if(!N.floating)return U;const J=Fo(N.floating,f.x),Y=Fo(N.floating,f.y);return a?{...U,transform:"translate("+J+"px, "+Y+"px)",...ci(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:J,top:Y}},[n,a,N.floating,f.x,f.y]);return q(()=>({...f,update:F,refs:H,elements:N,floatingStyles:V}),[f,F,H,N,V])}const _l=S((e,t)=>{const{children:n,width:o=10,height:r=5,...i}=e;return _(K.svg,k({},i,{ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:_("polygon",{points:"0,0 30,0 15,10"}))}),wl=_l;function yl(e){const[t,n]=T(void 0);return Qe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let c,a;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;c=u.inlineSize,a=u.blockSize}else c=e.offsetWidth,a=e.offsetHeight;n({width:c,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}const ai="Popper",[si,li]=rt(ai),[$l,ui]=si(ai),xl=e=>{const{__scopePopper:t,children:n}=e,[o,r]=T(null);return _($l,{scope:t,anchor:o,onAnchorChange:r},n)},Cl="PopperAnchor",Sl=S((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,i=ui(Cl,n),c=D(null),a=Z(t,c);return I(()=>{i.onAnchorChange((o==null?void 0:o.current)||c.current)}),o?null:_(K.div,k({},r,{ref:a}))}),di="PopperContent",[kl,El]=si(di),Ol=S((e,t)=>{var n,o,r,i,c,a,l,u;const{__scopePopper:f,side:s="bottom",sideOffset:g=0,align:d="center",alignOffset:h=0,arrowPadding:p=0,collisionBoundary:b=[],collisionPadding:v=0,sticky:m="partial",hideWhenDetached:w=!1,avoidCollisions:y=!0,onPlaced:$,...O}=e,C=ui(di,f),[P,M]=T(null),L=Z(t,en=>M(en)),[F,j]=T(null),H=yl(F),N=(n=H==null?void 0:H.width)!==null&&n!==void 0?n:0,V=(o=H==null?void 0:H.height)!==null&&o!==void 0?o:0,U=s+(d!=="center"?"-"+d:""),J=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},Y=Array.isArray(b)?b:[b],R=Y.length>0,W={padding:J,boundary:Y.filter(Rl),altBoundary:R},{refs:Q,floatingStyles:le,placement:Ae,isPositioned:Ce,middlewareData:he}=bl({strategy:"fixed",placement:U,whileElementsMounted:gl,elements:{reference:C.anchor},middleware:[Ys({mainAxis:g+V,alignmentAxis:h}),y&&Zs({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?Xs():void 0,...W}),y&&js({...W}),qs({...W,apply:({elements:en,rects:Ic,availableWidth:Nc,availableHeight:Lc})=>{const{width:Fc,height:Uc}=Ic.reference,$t=en.floating.style;$t.setProperty("--radix-popper-available-width",`${Nc}px`),$t.setProperty("--radix-popper-available-height",`${Lc}px`),$t.setProperty("--radix-popper-anchor-width",`${Fc}px`),$t.setProperty("--radix-popper-anchor-height",`${Uc}px`)}}),F&&ml({element:F,padding:p}),Al({arrowWidth:N,arrowHeight:V}),w&&Ks({strategy:"referenceHidden"})]}),[Te,Ie]=fi(Ae),Ne=oe($);Qe(()=>{Ce&&(Ne==null||Ne())},[Ce,Ne]);const ie=(r=he.arrow)===null||r===void 0?void 0:r.x,yt=(i=he.arrow)===null||i===void 0?void 0:i.y,Rc=((c=he.arrow)===null||c===void 0?void 0:c.centerOffset)!==0,[Ac,Tc]=T();return Qe(()=>{P&&Tc(window.getComputedStyle(P).zIndex)},[P]),_("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...le,transform:Ce?le.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ac,"--radix-popper-transform-origin":[(a=he.transformOrigin)===null||a===void 0?void 0:a.x,(l=he.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},_(kl,{scope:f,placedSide:Te,onArrowChange:j,arrowX:ie,arrowY:yt,shouldHideArrow:Rc},_(K.div,k({"data-side":Te,"data-align":Ie},O,{ref:L,style:{...O.style,animation:Ce?void 0:"none",opacity:(u=he.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))}),Pl="PopperArrow",Dl={top:"bottom",right:"left",bottom:"top",left:"right"},Ml=S(function(t,n){const{__scopePopper:o,...r}=t,i=El(Pl,o),c=Dl[i.placedSide];return _("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},_(wl,k({},r,{ref:n,style:{...r.style,display:"block"}})))});function Rl(e){return e!==null}const Al=e=>({name:"transformOrigin",options:e,fn(t){var n,o,r,i,c;const{placement:a,rects:l,middlewareData:u}=t,s=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,g=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[h,p]=fi(a),b={start:"0%",center:"50%",end:"100%"}[p],v=((o=(r=u.arrow)===null||r===void 0?void 0:r.x)!==null&&o!==void 0?o:0)+g/2,m=((i=(c=u.arrow)===null||c===void 0?void 0:c.y)!==null&&i!==void 0?i:0)+d/2;let w="",y="";return h==="bottom"?(w=s?b:`${v}px`,y=`${-d}px`):h==="top"?(w=s?b:`${v}px`,y=`${l.floating.height+d}px`):h==="right"?(w=`${-d}px`,y=s?b:`${m}px`):h==="left"&&(w=`${l.floating.width+d}px`,y=s?b:`${m}px`),{data:{x:w,y}}}});function fi(e){const[t,n="center"]=e.split("-");return[t,n]}const pi=xl,Tl=Sl,Il=Ol,Nl=Ml,hi=S((e,t)=>{var n;const{container:o=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...r}=e;return o?ne.createPortal(_(K.div,k({},r,{ref:t})),o):null});function Ll(e,t){return Kt((n,o)=>{const r=t[n][o];return r??n},e)}const Me=e=>{const{present:t,children:n}=e,o=Fl(t),r=typeof n=="function"?n({present:o.isPresent}):fe.only(n),i=Z(o.ref,r.ref);return typeof n=="function"||o.isPresent?ot(r,{ref:i}):null};Me.displayName="Presence";function Fl(e){const[t,n]=T(),o=D({}),r=D(e),i=D("none"),c=e?"mounted":"unmounted",[a,l]=Ll(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return I(()=>{const u=St(o.current);i.current=a==="mounted"?u:"none"},[a]),Qe(()=>{const u=o.current,f=r.current;if(f!==e){const g=i.current,d=St(u);e?l("MOUNT"):d==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(f&&g!==d?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),Qe(()=>{if(t){const u=s=>{const d=St(o.current).includes(s.animationName);s.target===t&&d&&mt(()=>l("ANIMATION_END"))},f=s=>{s.target===t&&(i.current=St(o.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:z(u=>{u&&(o.current=getComputedStyle(u)),n(u)},[])}}function St(e){return(e==null?void 0:e.animationName)||"none"}const un="rovingFocusGroup.onEntryFocus",Ul={bubbles:!1,cancelable:!0},Zn="RovingFocusGroup",[kn,gi,zl]=jr(Zn),[Bl,vi]=rt(Zn,[zl]),[Vl,Hl]=Bl(Zn),Wl=S((e,t)=>_(kn.Provider,{scope:e.__scopeRovingFocusGroup},_(kn.Slot,{scope:e.__scopeRovingFocusGroup},_(jl,k({},e,{ref:t}))))),jl=S((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:i,currentTabStopId:c,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:u,...f}=e,s=D(null),g=Z(t,s),d=Kr(i),[h=null,p]=Zt({prop:c,defaultProp:a,onChange:l}),[b,v]=T(!1),m=oe(u),w=gi(n),y=D(!1),[$,O]=T(0);return I(()=>{const C=s.current;if(C)return C.addEventListener(un,m),()=>C.removeEventListener(un,m)},[m]),_(Vl,{scope:n,orientation:o,dir:d,loop:r,currentTabStopId:h,onItemFocus:z(C=>p(C),[p]),onItemShiftTab:z(()=>v(!0),[]),onFocusableItemAdd:z(()=>O(C=>C+1),[]),onFocusableItemRemove:z(()=>O(C=>C-1),[])},_(K.div,k({tabIndex:b||$===0?-1:0,"data-orientation":o},f,{ref:g,style:{outline:"none",...e.style},onMouseDown:A(e.onMouseDown,()=>{y.current=!0}),onFocus:A(e.onFocus,C=>{const P=!y.current;if(C.target===C.currentTarget&&P&&!b){const M=new CustomEvent(un,Ul);if(C.currentTarget.dispatchEvent(M),!M.defaultPrevented){const L=w().filter(V=>V.focusable),F=L.find(V=>V.active),j=L.find(V=>V.id===h),N=[F,j,...L].filter(Boolean).map(V=>V.ref.current);mi(N)}}y.current=!1}),onBlur:A(e.onBlur,()=>v(!1))})))}),Kl="RovingFocusGroupItem",Gl=S((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:i,...c}=e,a=ke(),l=i||a,u=Hl(Kl,n),f=u.currentTabStopId===l,s=gi(n),{onFocusableItemAdd:g,onFocusableItemRemove:d}=u;return I(()=>{if(o)return g(),()=>d()},[o,g,d]),_(kn.ItemSlot,{scope:n,id:l,focusable:o,active:r},_(K.span,k({tabIndex:f?0:-1,"data-orientation":u.orientation},c,{ref:t,onMouseDown:A(e.onMouseDown,h=>{o?u.onItemFocus(l):h.preventDefault()}),onFocus:A(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:A(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){u.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const p=Xl(h,u.orientation,u.dir);if(p!==void 0){h.preventDefault();let v=s().filter(m=>m.focusable).map(m=>m.ref.current);if(p==="last")v.reverse();else if(p==="prev"||p==="next"){p==="prev"&&v.reverse();const m=v.indexOf(h.currentTarget);v=u.loop?ql(v,m+1):v.slice(m+1)}setTimeout(()=>mi(v))}})})))}),Yl={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Zl(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Xl(e,t,n){const o=Zl(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Yl[o]}function mi(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function ql(e,t){return e.map((n,o)=>e[(t+o)%e.length])}const Jl=Wl,Ql=Gl;var eu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},We=new WeakMap,kt=new WeakMap,Et={},dn=0,bi=function(e){return e&&(e.host||bi(e.parentNode))},tu=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=bi(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},nu=function(e,t,n,o){var r=tu(t,Array.isArray(e)?e:[e]);Et[n]||(Et[n]=new WeakMap);var i=Et[n],c=[],a=new Set,l=new Set(r),u=function(s){!s||a.has(s)||(a.add(s),u(s.parentNode))};r.forEach(u);var f=function(s){!s||l.has(s)||Array.prototype.forEach.call(s.children,function(g){if(a.has(g))f(g);else{var d=g.getAttribute(o),h=d!==null&&d!=="false",p=(We.get(g)||0)+1,b=(i.get(g)||0)+1;We.set(g,p),i.set(g,b),c.push(g),p===1&&h&&kt.set(g,!0),b===1&&g.setAttribute(n,"true"),h||g.setAttribute(o,"true")}})};return f(t),a.clear(),dn++,function(){c.forEach(function(s){var g=We.get(s)-1,d=i.get(s)-1;We.set(s,g),i.set(s,d),g||(kt.has(s)||s.removeAttribute(o),kt.delete(s)),d||s.removeAttribute(n)}),dn--,dn||(We=new WeakMap,We=new WeakMap,kt=new WeakMap,Et={})}},_i=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=t||eu(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live]"))),nu(o,r,n,"aria-hidden")):function(){return null}},ue=function(){return ue=Object.assign||function(t){for(var n,o=1,r=arguments.length;o"u")return _u;var t=wu(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},$u=xi(),xu=function(e,t,n,o){var r=e.left,i=e.top,c=e.right,a=e.gap;return n===void 0&&(n="margin"),` - .`.concat(ru,` { - overflow: hidden `).concat(o,`; - padding-right: `).concat(a,"px ").concat(o,`; - } - body { - overflow: hidden `).concat(o,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&` - padding-left: `.concat(r,`px; - padding-top: `).concat(i,`px; - padding-right: `).concat(c,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(a,"px ").concat(o,`; - `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(o,";")].filter(Boolean).join(""),` - } - - .`).concat(Tt,` { - right: `).concat(a,"px ").concat(o,`; - } - - .`).concat(It,` { - margin-right: `).concat(a,"px ").concat(o,`; - } - - .`).concat(Tt," .").concat(Tt,` { - right: 0 `).concat(o,`; - } - - .`).concat(It," .").concat(It,` { - margin-right: 0 `).concat(o,`; - } - - body { - `).concat(iu,": ").concat(a,`px; - } -`)},Cu=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o,i=q(function(){return yu(r)},[r]);return _($u,{styles:xu(i,!t,r,n?"":"!important")})},En=!1;if(typeof window<"u")try{var Ot=Object.defineProperty({},"passive",{get:function(){return En=!0,!0}});window.addEventListener("test",Ot,Ot),window.removeEventListener("test",Ot,Ot)}catch{En=!1}var je=En?{passive:!1}:!1,Su=function(e){return e.tagName==="TEXTAREA"},Ci=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Su(e)&&n[t]==="visible")},ku=function(e){return Ci(e,"overflowY")},Eu=function(e){return Ci(e,"overflowX")},Bo=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Si(e,n);if(o){var r=ki(e,n),i=r[1],c=r[2];if(i>c)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Ou=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},Pu=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},Si=function(e,t){return e==="v"?ku(t):Eu(t)},ki=function(e,t){return e==="v"?Ou(t):Pu(t)},Du=function(e,t){return e==="h"&&t==="rtl"?-1:1},Mu=function(e,t,n,o,r){var i=Du(e,window.getComputedStyle(t).direction),c=i*o,a=n.target,l=t.contains(a),u=!1,f=c>0,s=0,g=0;do{var d=ki(e,a),h=d[0],p=d[1],b=d[2],v=p-b-i*h;(h||v)&&Si(e,a)&&(s+=v,g+=h),a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(f&&(r&&s===0||!r&&c>s)||!f&&(r&&g===0||!r&&-c>g))&&(u=!0),u},Pt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Vo=function(e){return[e.deltaX,e.deltaY]},Ho=function(e){return e&&"current"in e?e.current:e},Ru=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Au=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},Tu=0,Ke=[];function Iu(e){var t=D([]),n=D([0,0]),o=D(),r=T(Tu++)[0],i=T(function(){return xi()})[0],c=D(e);I(function(){c.current=e},[e]),I(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var p=ou([e.lockRef.current],(e.shards||[]).map(Ho),!0).filter(Boolean);return p.forEach(function(b){return b.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),p.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=z(function(p,b){if("touches"in p&&p.touches.length===2)return!c.current.allowPinchZoom;var v=Pt(p),m=n.current,w="deltaX"in p?p.deltaX:m[0]-v[0],y="deltaY"in p?p.deltaY:m[1]-v[1],$,O=p.target,C=Math.abs(w)>Math.abs(y)?"h":"v";if("touches"in p&&C==="h"&&O.type==="range")return!1;var P=Bo(C,O);if(!P)return!0;if(P?$=C:($=C==="v"?"h":"v",P=Bo(C,O)),!P)return!1;if(!o.current&&"changedTouches"in p&&(w||y)&&(o.current=$),!$)return!0;var M=o.current||$;return Mu(M,b,p,M==="h"?w:y,!0)},[]),l=z(function(p){var b=p;if(!(!Ke.length||Ke[Ke.length-1]!==i)){var v="deltaY"in b?Vo(b):Pt(b),m=t.current.filter(function($){return $.name===b.type&&$.target===b.target&&Ru($.delta,v)})[0];if(m&&m.should){b.cancelable&&b.preventDefault();return}if(!m){var w=(c.current.shards||[]).map(Ho).filter(Boolean).filter(function($){return $.contains(b.target)}),y=w.length>0?a(b,w[0]):!c.current.noIsolation;y&&b.cancelable&&b.preventDefault()}}},[]),u=z(function(p,b,v,m){var w={name:p,delta:b,target:v,should:m};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(y){return y!==w})},1)},[]),f=z(function(p){n.current=Pt(p),o.current=void 0},[]),s=z(function(p){u(p.type,Vo(p),p.target,a(p,e.lockRef.current))},[]),g=z(function(p){u(p.type,Pt(p),p.target,a(p,e.lockRef.current))},[]);I(function(){return Ke.push(i),e.setCallbacks({onScrollCapture:s,onWheelCapture:s,onTouchMoveCapture:g}),document.addEventListener("wheel",l,je),document.addEventListener("touchmove",l,je),document.addEventListener("touchstart",f,je),function(){Ke=Ke.filter(function(p){return p!==i}),document.removeEventListener("wheel",l,je),document.removeEventListener("touchmove",l,je),document.removeEventListener("touchstart",f,je)}},[]);var d=e.removeScrollBar,h=e.inert;return _(G,null,h?_(i,{styles:Au(r)}):null,d?_(Cu,{gapMode:"margin"}):null)}const Nu=fu($i,Iu);var Ei=S(function(e,t){return _(Jt,ue({},e,{ref:t,sideCar:Nu}))});Ei.classNames=Jt.classNames;const Oi=Ei,On=["Enter"," "],Lu=["ArrowDown","PageUp","Home"],Pi=["ArrowUp","PageDown","End"],Fu=[...Lu,...Pi],Uu={ltr:[...On,"ArrowRight"],rtl:[...On,"ArrowLeft"]},zu={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Qt="Menu",[ht,Bu,Vu]=jr(Qt),[He,Di]=rt(Qt,[Vu,li,vi]),_t=li(),Mi=vi(),[Ri,Re]=He(Qt),[Hu,wt]=He(Qt),Wu=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:r,onOpenChange:i,modal:c=!0}=e,a=_t(t),[l,u]=T(null),f=D(!1),s=oe(i),g=Kr(r);return I(()=>{const d=()=>{f.current=!0,document.addEventListener("pointerdown",h,{capture:!0,once:!0}),document.addEventListener("pointermove",h,{capture:!0,once:!0})},h=()=>f.current=!1;return document.addEventListener("keydown",d,{capture:!0}),()=>{document.removeEventListener("keydown",d,{capture:!0}),document.removeEventListener("pointerdown",h,{capture:!0}),document.removeEventListener("pointermove",h,{capture:!0})}},[]),_(pi,a,_(Ri,{scope:t,open:n,onOpenChange:s,content:l,onContentChange:u},_(Hu,{scope:t,onClose:z(()=>s(!1),[s]),isUsingKeyboardRef:f,dir:g,modal:c},o)))},Ai=S((e,t)=>{const{__scopeMenu:n,...o}=e,r=_t(n);return _(Tl,k({},r,o,{ref:t}))}),Ti="MenuPortal",[ju,Ii]=He(Ti,{forceMount:void 0}),Ku=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:r}=e,i=Re(Ti,t);return _(ju,{scope:t,forceMount:n},_(Me,{present:n||i.open},_(hi,{asChild:!0,container:r},o)))},ae="MenuContent",[Gu,Xn]=He(ae),Yu=S((e,t)=>{const n=Ii(ae,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,i=Re(ae,e.__scopeMenu),c=wt(ae,e.__scopeMenu);return _(ht.Provider,{scope:e.__scopeMenu},_(Me,{present:o||i.open},_(ht.Slot,{scope:e.__scopeMenu},c.modal?_(Zu,k({},r,{ref:t})):_(Xu,k({},r,{ref:t})))))}),Zu=S((e,t)=>{const n=Re(ae,e.__scopeMenu),o=D(null),r=Z(t,o);return I(()=>{const i=o.current;if(i)return _i(i)},[]),_(qn,k({},e,{ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:A(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),Xu=S((e,t)=>{const n=Re(ae,e.__scopeMenu);return _(qn,k({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),qn=S((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:c,disableOutsidePointerEvents:a,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:s,onInteractOutside:g,onDismiss:d,disableOutsideScroll:h,...p}=e,b=Re(ae,n),v=wt(ae,n),m=_t(n),w=Mi(n),y=Bu(n),[$,O]=T(null),C=D(null),P=Z(t,C,b.onContentChange),M=D(0),L=D(""),F=D(0),j=D(null),H=D("right"),N=D(0),V=h?Oi:G,U=h?{as:Je,allowPinchZoom:!0}:void 0,J=R=>{var W,Q;const le=L.current+R,Ae=y().filter(ie=>!ie.disabled),Ce=document.activeElement,he=(W=Ae.find(ie=>ie.ref.current===Ce))===null||W===void 0?void 0:W.textValue,Te=Ae.map(ie=>ie.textValue),Ie=vd(Te,le,he),Ne=(Q=Ae.find(ie=>ie.textValue===Ie))===null||Q===void 0?void 0:Q.ref.current;(function ie(yt){L.current=yt,window.clearTimeout(M.current),yt!==""&&(M.current=window.setTimeout(()=>ie(""),1e3))})(le),Ne&&setTimeout(()=>Ne.focus())};I(()=>()=>window.clearTimeout(M.current),[]),Zr();const Y=z(R=>{var W,Q;return H.current===((W=j.current)===null||W===void 0?void 0:W.side)&&bd(R,(Q=j.current)===null||Q===void 0?void 0:Q.area)},[]);return _(Gu,{scope:n,searchRef:L,onItemEnter:z(R=>{Y(R)&&R.preventDefault()},[Y]),onItemLeave:z(R=>{var W;Y(R)||((W=C.current)===null||W===void 0||W.focus(),O(null))},[Y]),onTriggerLeave:z(R=>{Y(R)&&R.preventDefault()},[Y]),pointerGraceTimerRef:F,onPointerGraceIntentChange:z(R=>{j.current=R},[])},_(V,U,_(Xr,{asChild:!0,trapped:r,onMountAutoFocus:A(i,R=>{var W;R.preventDefault(),(W=C.current)===null||W===void 0||W.focus()}),onUnmountAutoFocus:c},_(Gr,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:s,onInteractOutside:g,onDismiss:d},_(Jl,k({asChild:!0},w,{dir:v.dir,orientation:"vertical",loop:o,currentTabStopId:$,onCurrentTabStopIdChange:O,onEntryFocus:A(l,R=>{v.isUsingKeyboardRef.current||R.preventDefault()})}),_(Il,k({role:"menu","aria-orientation":"vertical","data-state":Vi(b.open),"data-radix-menu-content":"",dir:v.dir},m,p,{ref:P,style:{outline:"none",...p.style},onKeyDown:A(p.onKeyDown,R=>{const Q=R.target.closest("[data-radix-menu-content]")===R.currentTarget,le=R.ctrlKey||R.altKey||R.metaKey,Ae=R.key.length===1;Q&&(R.key==="Tab"&&R.preventDefault(),!le&&Ae&&J(R.key));const Ce=C.current;if(R.target!==Ce||!Fu.includes(R.key))return;R.preventDefault();const Te=y().filter(Ie=>!Ie.disabled).map(Ie=>Ie.ref.current);Pi.includes(R.key)&&Te.reverse(),hd(Te)}),onBlur:A(e.onBlur,R=>{R.currentTarget.contains(R.target)||(window.clearTimeout(M.current),L.current="")}),onPointerMove:A(e.onPointerMove,gt(R=>{const W=R.target,Q=N.current!==R.clientX;if(R.currentTarget.contains(W)&&Q){const le=R.clientX>N.current?"right":"left";H.current=le,N.current=R.clientX}}))})))))))}),Ni=S((e,t)=>{const{__scopeMenu:n,...o}=e;return _(K.div,k({role:"group"},o,{ref:t}))}),qu=S((e,t)=>{const{__scopeMenu:n,...o}=e;return _(K.div,k({},o,{ref:t}))}),Pn="MenuItem",Wo="menu.itemSelect",Jn=S((e,t)=>{const{disabled:n=!1,onSelect:o,...r}=e,i=D(null),c=wt(Pn,e.__scopeMenu),a=Xn(Pn,e.__scopeMenu),l=Z(t,i),u=D(!1),f=()=>{const s=i.current;if(!n&&s){const g=new CustomEvent(Wo,{bubbles:!0,cancelable:!0});s.addEventListener(Wo,d=>o==null?void 0:o(d),{once:!0}),Wr(s,g),g.defaultPrevented?u.current=!1:c.onClose()}};return _(Li,k({},r,{ref:l,disabled:n,onClick:A(e.onClick,f),onPointerDown:s=>{var g;(g=e.onPointerDown)===null||g===void 0||g.call(e,s),u.current=!0},onPointerUp:A(e.onPointerUp,s=>{var g;u.current||(g=s.currentTarget)===null||g===void 0||g.click()}),onKeyDown:A(e.onKeyDown,s=>{const g=a.searchRef.current!=="";n||g&&s.key===" "||On.includes(s.key)&&(s.currentTarget.click(),s.preventDefault())})}))}),Li=S((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:r,...i}=e,c=Xn(Pn,n),a=Mi(n),l=D(null),u=Z(t,l),[f,s]=T(!1),[g,d]=T("");return I(()=>{const h=l.current;if(h){var p;d(((p=h.textContent)!==null&&p!==void 0?p:"").trim())}},[i.children]),_(ht.ItemSlot,{scope:n,disabled:o,textValue:r??g},_(Ql,k({asChild:!0},a,{focusable:!o}),_(K.div,k({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0},i,{ref:u,onPointerMove:A(e.onPointerMove,gt(h=>{o?c.onItemLeave(h):(c.onItemEnter(h),h.defaultPrevented||h.currentTarget.focus())})),onPointerLeave:A(e.onPointerLeave,gt(h=>c.onItemLeave(h))),onFocus:A(e.onFocus,()=>s(!0)),onBlur:A(e.onBlur,()=>s(!1))}))))}),Ju=S((e,t)=>{const{checked:n=!1,onCheckedChange:o,...r}=e;return _(Ui,{scope:e.__scopeMenu,checked:n},_(Jn,k({role:"menuitemcheckbox","aria-checked":Wt(n)?"mixed":n},r,{ref:t,"data-state":Qn(n),onSelect:A(r.onSelect,()=>o==null?void 0:o(Wt(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),Qu="MenuRadioGroup",[ed,td]=He(Qu,{value:void 0,onValueChange:()=>{}}),nd=S((e,t)=>{const{value:n,onValueChange:o,...r}=e,i=oe(o);return _(ed,{scope:e.__scopeMenu,value:n,onValueChange:i},_(Ni,k({},r,{ref:t})))}),od="MenuRadioItem",rd=S((e,t)=>{const{value:n,...o}=e,r=td(od,e.__scopeMenu),i=n===r.value;return _(Ui,{scope:e.__scopeMenu,checked:i},_(Jn,k({role:"menuitemradio","aria-checked":i},o,{ref:t,"data-state":Qn(i),onSelect:A(o.onSelect,()=>{var c;return(c=r.onValueChange)===null||c===void 0?void 0:c.call(r,n)},{checkForDefaultPrevented:!1})})))}),Fi="MenuItemIndicator",[Ui,id]=He(Fi,{checked:!1}),cd=S((e,t)=>{const{__scopeMenu:n,forceMount:o,...r}=e,i=id(Fi,n);return _(Me,{present:o||Wt(i.checked)||i.checked===!0},_(K.span,k({},r,{ref:t,"data-state":Qn(i.checked)})))}),ad=S((e,t)=>{const{__scopeMenu:n,...o}=e;return _(K.div,k({role:"separator","aria-orientation":"horizontal"},o,{ref:t}))}),sd=S((e,t)=>{const{__scopeMenu:n,...o}=e,r=_t(n);return _(Nl,k({},r,o,{ref:t}))}),zi="MenuSub",[ld,Bi]=He(zi),ud=e=>{const{__scopeMenu:t,children:n,open:o=!1,onOpenChange:r}=e,i=Re(zi,t),c=_t(t),[a,l]=T(null),[u,f]=T(null),s=oe(r);return I(()=>(i.open===!1&&s(!1),()=>s(!1)),[i.open,s]),_(pi,c,_(Ri,{scope:t,open:o,onOpenChange:s,content:u,onContentChange:f},_(ld,{scope:t,contentId:ke(),triggerId:ke(),trigger:a,onTriggerChange:l},n)))},Dt="MenuSubTrigger",dd=S((e,t)=>{const n=Re(Dt,e.__scopeMenu),o=wt(Dt,e.__scopeMenu),r=Bi(Dt,e.__scopeMenu),i=Xn(Dt,e.__scopeMenu),c=D(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:l}=i,u={__scopeMenu:e.__scopeMenu},f=z(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return I(()=>f,[f]),I(()=>{const s=a.current;return()=>{window.clearTimeout(s),l(null)}},[a,l]),_(Ai,k({asChild:!0},u),_(Li,k({id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":Vi(n.open)},e,{ref:Yt(t,r.onTriggerChange),onClick:s=>{var g;(g=e.onClick)===null||g===void 0||g.call(e,s),!(e.disabled||s.defaultPrevented)&&(s.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:A(e.onPointerMove,gt(s=>{i.onItemEnter(s),!s.defaultPrevented&&!e.disabled&&!n.open&&!c.current&&(i.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:A(e.onPointerLeave,gt(s=>{var g;f();const d=(g=n.content)===null||g===void 0?void 0:g.getBoundingClientRect();if(d){var h;const p=(h=n.content)===null||h===void 0?void 0:h.dataset.side,b=p==="right",v=b?-5:5,m=d[b?"left":"right"],w=d[b?"right":"left"];i.onPointerGraceIntentChange({area:[{x:s.clientX+v,y:s.clientY},{x:m,y:d.top},{x:w,y:d.top},{x:w,y:d.bottom},{x:m,y:d.bottom}],side:p}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(s),s.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:A(e.onKeyDown,s=>{const g=i.searchRef.current!=="";if(!(e.disabled||g&&s.key===" ")&&Uu[o.dir].includes(s.key)){var d;n.onOpenChange(!0),(d=n.content)===null||d===void 0||d.focus(),s.preventDefault()}})})))}),fd="MenuSubContent",pd=S((e,t)=>{const n=Ii(ae,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,i=Re(ae,e.__scopeMenu),c=wt(ae,e.__scopeMenu),a=Bi(fd,e.__scopeMenu),l=D(null),u=Z(t,l);return _(ht.Provider,{scope:e.__scopeMenu},_(Me,{present:o||i.open},_(ht.Slot,{scope:e.__scopeMenu},_(qn,k({id:a.contentId,"aria-labelledby":a.triggerId},r,{ref:u,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var s;c.isUsingKeyboardRef.current&&((s=l.current)===null||s===void 0||s.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:A(e.onFocusOutside,f=>{f.target!==a.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:A(e.onEscapeKeyDown,f=>{c.onClose(),f.preventDefault()}),onKeyDown:A(e.onKeyDown,f=>{const s=f.currentTarget.contains(f.target),g=zu[c.dir].includes(f.key);if(s&&g){var d;i.onOpenChange(!1),(d=a.trigger)===null||d===void 0||d.focus(),f.preventDefault()}})})))))});function Vi(e){return e?"open":"closed"}function Wt(e){return e==="indeterminate"}function Qn(e){return Wt(e)?"indeterminate":e?"checked":"unchecked"}function hd(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function gd(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function vd(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let c=gd(e,Math.max(i,0));r.length===1&&(c=c.filter(u=>u!==n));const l=c.find(u=>u.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function md(e,t){const{x:n,y:o}=e;let r=!1;for(let i=0,c=t.length-1;io!=f>o&&n<(u-a)*(o-l)/(f-l)+a&&(r=!r)}return r}function bd(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return md(n,t)}function gt(e){return t=>t.pointerType==="mouse"?e(t):void 0}const _d=Wu,wd=Ai,yd=Ku,$d=Yu,xd=Ni,Cd=qu,Sd=Jn,kd=Ju,Ed=nd,Od=rd,Pd=cd,Dd=ad,Md=sd,Rd=ud,Ad=dd,Td=pd,Hi="DropdownMenu",[Id,Nd]=rt(Hi,[Di]),X=Di(),[Ld,Wi]=Id(Hi),ji=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:r,defaultOpen:i,onOpenChange:c,modal:a=!0}=e,l=X(t),u=D(null),[f=!1,s]=Zt({prop:r,defaultProp:i,onChange:c});return _(Ld,{scope:t,triggerId:ke(),triggerRef:u,contentId:ke(),open:f,onOpenChange:s,onOpenToggle:z(()=>s(g=>!g),[s]),modal:a},_(_d,k({},l,{open:f,onOpenChange:s,dir:o,modal:a}),n))},Fd="DropdownMenuTrigger",Ki=S((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...r}=e,i=Wi(Fd,n),c=X(n);return _(wd,k({asChild:!0},c),_(K.button,k({type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":o?"":void 0,disabled:o},r,{ref:Yt(t,i.triggerRef),onPointerDown:A(e.onPointerDown,a=>{!o&&a.button===0&&a.ctrlKey===!1&&(i.onOpenToggle(),i.open||a.preventDefault())}),onKeyDown:A(e.onKeyDown,a=>{o||(["Enter"," "].includes(a.key)&&i.onOpenToggle(),a.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})))}),Gi=e=>{const{__scopeDropdownMenu:t,...n}=e,o=X(t);return _(yd,k({},o,n))},Ud="DropdownMenuContent",Yi=S((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=Wi(Ud,n),i=X(n),c=D(!1);return _($d,k({id:r.contentId,"aria-labelledby":r.triggerId},i,o,{ref:t,onCloseAutoFocus:A(e.onCloseAutoFocus,a=>{var l;c.current||(l=r.triggerRef.current)===null||l===void 0||l.focus(),c.current=!1,a.preventDefault()}),onInteractOutside:A(e.onInteractOutside,a=>{const l=a.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,f=l.button===2||u;(!r.modal||f)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),Zi=S((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return _(xd,k({},r,o,{ref:t}))}),Xi=S((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return _(Cd,k({},r,o,{ref:t}))}),qi=S((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return _(Sd,k({},r,o,{ref:t}))}),Ji=S((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return _(kd,k({},r,o,{ref:t}))}),Qi=S((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return _(Ed,k({},r,o,{ref:t}))}),ec=S((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return _(Od,k({},r,o,{ref:t}))}),tc=S((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return _(Pd,k({},r,o,{ref:t}))}),nc=S((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return _(Dd,k({},r,o,{ref:t}))}),oc=S((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return _(Md,k({},r,o,{ref:t}))}),rc=e=>{const{__scopeDropdownMenu:t,children:n,open:o,onOpenChange:r,defaultOpen:i}=e,c=X(t),[a=!1,l]=Zt({prop:o,defaultProp:i,onChange:r});return _(Rd,k({},c,{open:a,onOpenChange:l}),n)},ic=S((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return _(Ad,k({},r,o,{ref:t}))}),cc=S((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return _(Td,k({},r,o,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),ac=ji,sc=Ki,lc=Gi,uc=Yi,zd=Zi,Bd=Xi,Vd=qi,Hd=Ji,Wd=Qi,jd=ec,Kd=tc,Gd=nc,dc=oc,Yd=rc,Zd=ic,Xd=cc,qd=Object.freeze(Object.defineProperty({__proto__:null,Arrow:dc,CheckboxItem:Hd,Content:uc,DropdownMenu:ji,DropdownMenuArrow:oc,DropdownMenuCheckboxItem:Ji,DropdownMenuContent:Yi,DropdownMenuGroup:Zi,DropdownMenuItem:qi,DropdownMenuItemIndicator:tc,DropdownMenuLabel:Xi,DropdownMenuPortal:Gi,DropdownMenuRadioGroup:Qi,DropdownMenuRadioItem:ec,DropdownMenuSeparator:nc,DropdownMenuSub:rc,DropdownMenuSubContent:cc,DropdownMenuSubTrigger:ic,DropdownMenuTrigger:Ki,Group:zd,Item:Vd,ItemIndicator:Kd,Label:Bd,Portal:lc,RadioGroup:Wd,RadioItem:jd,Root:ac,Separator:Gd,Sub:Yd,SubContent:Xd,SubTrigger:Zd,Trigger:sc,createDropdownMenuScope:Nd},Symbol.toStringTag,{value:"Module"})),Jd=e=>x(ac,{...e,children:[x(sc,{asChild:!0,children:e.trigger&&e.trigger}),x(lc,{container:document.getElementById("parts-kit"),children:x(uc,{sideOffset:5,align:e.align||"start",side:e.side||"bottom",className:"dropdown",children:[e.children,e.hasArrow&&x(dc,{className:"dropdown-arrow"})]})})]}),at={...qd,Root:Jd};function Qd(e){const t=De();return I(()=>{e.isDoc&&t.setActiveScreenSize(Ut.Desktop)},[e.isDoc]),x(G,{children:xo.length>0&&x(at.Root,{open:t.isViewportOpen,onOpenChange:()=>e.isDoc||t.setIsViewportOpen(!t.isViewportOpen),trigger:x("button",{className:"btn-subtle btn-icon",title:"Viewport Size [Shift + V]",disabled:e.isDoc,children:x(ha,{})}),children:x(G,{children:[x(at.RadioGroup,{value:t.activeScreenSize,children:xo.map(n=>x(at.RadioItem,{value:n.size,onClick:()=>t.setActiveScreenSize(n.size),className:"dropdown-item",children:n.title},n.size))}),x(at.Separator,{className:"dropdown-separator"}),x(at.Item,{className:"dropdown-item",children:"Responsive"})]})})})}const fc="Dialog",[pc,ef]=rt(fc),[tf,se]=pc(fc),hc=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:i,modal:c=!0}=e,a=D(null),l=D(null),[u=!1,f]=Zt({prop:o,defaultProp:r,onChange:i});return _(tf,{scope:t,triggerRef:a,contentRef:l,contentId:ke(),titleId:ke(),descriptionId:ke(),open:u,onOpenChange:f,onOpenToggle:z(()=>f(s=>!s),[f]),modal:c},n)},nf="DialogTrigger",gc=S((e,t)=>{const{__scopeDialog:n,...o}=e,r=se(nf,n),i=Z(t,r.triggerRef);return _(K.button,k({type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":eo(r.open)},o,{ref:i,onClick:A(e.onClick,r.onOpenToggle)}))}),vc="DialogPortal",[of,mc]=pc(vc,{forceMount:void 0}),bc=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,i=se(vc,t);return _(of,{scope:t,forceMount:n},fe.map(o,c=>_(Me,{present:n||i.open},_(hi,{asChild:!0,container:r},c))))},Dn="DialogOverlay",_c=S((e,t)=>{const n=mc(Dn,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,i=se(Dn,e.__scopeDialog);return i.modal?_(Me,{present:o||i.open},_(rf,k({},r,{ref:t}))):null}),rf=S((e,t)=>{const{__scopeDialog:n,...o}=e,r=se(Dn,n);return _(Oi,{as:Je,allowPinchZoom:!0,shards:[r.contentRef]},_(K.div,k({"data-state":eo(r.open)},o,{ref:t,style:{pointerEvents:"auto",...o.style}})))}),tt="DialogContent",wc=S((e,t)=>{const n=mc(tt,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,i=se(tt,e.__scopeDialog);return _(Me,{present:o||i.open},i.modal?_(cf,k({},r,{ref:t})):_(af,k({},r,{ref:t})))}),cf=S((e,t)=>{const n=se(tt,e.__scopeDialog),o=D(null),r=Z(t,n.contentRef,o);return I(()=>{const i=o.current;if(i)return _i(i)},[]),_(yc,k({},e,{ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:A(e.onCloseAutoFocus,i=>{var c;i.preventDefault(),(c=n.triggerRef.current)===null||c===void 0||c.focus()}),onPointerDownOutside:A(e.onPointerDownOutside,i=>{const c=i.detail.originalEvent,a=c.button===0&&c.ctrlKey===!0;(c.button===2||a)&&i.preventDefault()}),onFocusOutside:A(e.onFocusOutside,i=>i.preventDefault())}))}),af=S((e,t)=>{const n=se(tt,e.__scopeDialog),o=D(!1),r=D(!1);return _(yc,k({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var c;if((c=e.onCloseAutoFocus)===null||c===void 0||c.call(e,i),!i.defaultPrevented){var a;o.current||(a=n.triggerRef.current)===null||a===void 0||a.focus(),i.preventDefault()}o.current=!1,r.current=!1},onInteractOutside:i=>{var c,a;(c=e.onInteractOutside)===null||c===void 0||c.call(e,i),i.defaultPrevented||(o.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const l=i.target;((a=n.triggerRef.current)===null||a===void 0?void 0:a.contains(l))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}}))}),yc=S((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:i,...c}=e,a=se(tt,n),l=D(null),u=Z(t,l);return Zr(),_(G,null,_(Xr,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:i},_(Gr,k({role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":eo(a.open)},c,{ref:u,onDismiss:()=>a.onOpenChange(!1)}))),!1)}),$c="DialogTitle",xc=S((e,t)=>{const{__scopeDialog:n,...o}=e,r=se($c,n);return _(K.h2,k({id:r.titleId},o,{ref:t}))}),sf="DialogDescription",Cc=S((e,t)=>{const{__scopeDialog:n,...o}=e,r=se(sf,n);return _(K.p,k({id:r.descriptionId},o,{ref:t}))}),lf="DialogClose",Sc=S((e,t)=>{const{__scopeDialog:n,...o}=e,r=se(lf,n);return _(K.button,k({type:"button"},o,{ref:t,onClick:A(e.onClick,()=>r.onOpenChange(!1))}))});function eo(e){return e?"open":"closed"}const uf="DialogTitleWarning",[df,Sf]=hs(uf,{contentName:tt,titleName:$c,docsSlug:"dialog"}),kc=hc,Ec=gc,Oc=bc,Pc=_c,Dc=wc,ff=xc,pf=Cc,Mc=Sc,hf=Object.freeze(Object.defineProperty({__proto__:null,Close:Mc,Content:Dc,Description:pf,Dialog:hc,DialogClose:Sc,DialogContent:wc,DialogDescription:Cc,DialogOverlay:_c,DialogPortal:bc,DialogTitle:xc,DialogTrigger:gc,Overlay:Pc,Portal:Oc,Root:kc,Title:ff,Trigger:Ec,WarningProvider:df,createDialogScope:ef},Symbol.toStringTag,{value:"Module"})),gf=e=>x(kc,{...e,children:[x(Ec,{asChild:!0,children:e.trigger&&e.trigger}),x(Oc,{container:document.getElementById("parts-kit"),children:[x(Pc,{className:"fixed inset-0 z-50 bg-gray-900/60 backdrop-blur-[2px] data-[state=open]:animate-dialog-overlay-show"}),x(Dc,{className:"fixed left-[50%] top-[50%] z-50 max-h-[85vh] w-[90vw] max-w-md translate-x-[-50%] translate-y-[-50%] rounded-xl border border-gray-300 bg-white px-6 py-8 shadow-lg transition-colors focus:outline-none data-[state=open]:animate-dialog-content-show dark:border-gray-500 dark:bg-gray-800 dark:text-white",children:[e.closeable&&x(Mc,{asChild:!0,children:x("button",{className:"btn-subtle btn-icon absolute right-2 top-2",children:x($a,{})})}),e.children]})]})]}),Mn={...hf,Root:gf};function vf(){const e=Hr(),[t,n]=T(e.configUrl);return x("div",{className:"flex flex-col gap-6",children:[x("h2",{className:"text-md font-bold uppercase",children:"Settings"}),x("div",{className:"flex flex-col gap-2",children:[x("label",{className:"text-xs font-medium uppercase",for:"parts-json-url",children:"Parts JSON URL"}),x("input",{className:"block h-8 w-full rounded bg-white px-4 placeholder-gray-500 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:ring-gray-400 focus:outline-none focus:ring-blue-400 focus-visible:ring-2 dark:bg-gray-700 dark:text-white dark:ring-gray-500 dark:hover:bg-gray-700/75 dark:focus:ring-blue-400",id:"parts-json-url",value:t,onInput:o=>n(o.currentTarget.value)}),x("p",{className:"text-xs text-gray-500 transition-colors dark:text-gray-400",children:"Your parts kit URLs need to have appropriate CORS and no X-Frame-Options restrictions. You can use a Chrome Plugin like Requestly to bypass these headers."})]}),x("div",{className:"flex justify-end gap-2",children:[x(Mn.Close,{className:"btn-outline",children:"Cancel"}),x(Mn.Close,{className:"btn",onClick:()=>e.setConfigUrl(t.trim()||Vr),children:"Save Settings"})]})]})}function mf(){const e=De();return x(Mn.Root,{open:e.isSettingsOpen,onOpenChange:()=>e.setIsSettingsOpen(!e.isSettingsOpen),trigger:x("button",{className:"btn-subtle btn-icon",title:"Settings [Shift + S]",children:x(Ar,{})}),children:x(vf,{})})}function bf(e){const t=De();return x("div",{children:x("header",{className:de("flex h-10 justify-between gap-4 border-l border-white bg-gray-100 px-4 transition dark:border-gray-500 dark:bg-gray-700",{"border-gray-100 dark:border-gray-700":!t.isNavBarVisible}),children:[x("div",{className:"flex items-center gap-2",children:[x(fs,{}),x(Qd,{isDoc:e.isDoc})]}),x("div",{className:"flex items-center gap-2",children:[e.showSettings&&x(mf,{}),x(ds,{})]})]})})}const hn="part",Rn=(e,t)=>{let n;for(const o of t)o.url===e?n=o:n||(n=Rn(e,o.children));return n},gn=e=>e.url?e:e.children.find(t=>!!t.url),_f=e=>{const t=(n,o)=>{history.pushState(o,"",n)};return I(()=>{const n=()=>{e.onPopState({url:new URL(window.location.href)})};return window.addEventListener("popstate",n),()=>{window.removeEventListener("popstate",n)}},[]),{push:t}};function wf(){const e=De(),t=Vn(),n=o=>{if(!(document.activeElement instanceof HTMLInputElement||document.activeElement instanceof HTMLTextAreaElement))switch(o.key){case"f":return o.preventDefault(),e.setIsNavBarVisible(!e.isNavBarVisible);case"Escape":return o.preventDefault(),e.setIsNavBarVisible(!0);case"V":o.shiftKey&&(o.preventDefault(),e.setIsViewportOpen(!e.isViewportOpen));return;case"T":o.shiftKey&&(o.preventDefault(),t.toggleMode());return;case"S":o.shiftKey&&(o.preventDefault(),e.setIsSettingsOpen(!e.isSettingsOpen));return;default:return}};I(()=>(document.addEventListener("keydown",n),()=>{document.removeEventListener("keydown",n)}),[e.isNavBarVisible,e.isViewportOpen,e.isSettingsOpen,t.mode])}function yf(e){const t=Hr(),n=De(),o=Vn(),[r,i]=T({nav:[]}),c=!!e.configUrl,a=async v=>{const m=await fetch(v,{method:"GET"});if(!m.ok)throw new Error("Couldn't load");const w=await m.json();i(w)};if(I(()=>{a(e.configUrl??t.configUrl)},[t.configUrl]),r.nav.length===0)return x("div",{children:"Loading"});const l=new URL(window.location.href).searchParams.get(hn),u=l?Rn(l,r.nav):void 0,f=_f({onPopState:({url:v})=>{const m=v.searchParams.get(hn);if(!m){console.warn("Url wasn't in history"),h(gn(r.nav[0]));return}const w=Rn(m,r.nav);if(!w){console.error("Could not find nav item after popstate");return}h(w)}}),[s,g]=T(!u),[d,h]=T(u||gn(r.nav[0])),p=as[n.activeScreenSize],b=v=>{const m=gn(v);if(m===void 0||!m.url){console.error("Cant find viable nav item for ",v);return}h(m),g(!1);const w=new URL(window.location.href);w.searchParams.set(hn,m.url),f.push(w,{url:m.url})};return wf(),x("div",{className:de("font-sans",{light:o.mode==="light",dark:o.mode==="dark"}),children:x("div",{className:de("grid h-screen grid-cols-[250px,1fr] bg-gray-100 transition-all duration-500",{"!grid-cols-[0px,1fr]":!n.isNavBarVisible}),children:[d!==void 0?x(ls,{activeNavItem:d,nav:r.nav,setActiveNavItem:b}):null,x("div",{className:"relative z-10 flex flex-col bg-white",children:[x(bf,{isDoc:(d==null?void 0:d.doc)??!1,showSettings:!c}),x("div",{className:"flex flex-grow items-stretch justify-center",children:!c&&s?x(us,{}):x("div",{className:de("flex-grow",{"py-5":n.activeScreenSize!==Ut.Desktop}),style:{maxWidth:p},children:x("iframe",{className:de("h-full w-full",{"rounded border-2 border-gray-100":n.activeScreenSize!==Ut.Desktop}),src:(d==null?void 0:d.url)??void 0},d==null?void 0:d.url)})})]})]})})}const $f=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Roboto,sans-serif;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:.0625rem}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-.125rem}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}body{font-size:.875rem;line-height:1.4;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 550px){.container{max-width:34.375rem}}@media (min-width: 768px){.container{max-width:48rem}}@media (min-width: 1024px){.container{max-width:64rem}}@media (min-width: 1440px){.container{max-width:90rem}}.icon{height:1rem;width:1rem}.btn{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;border-radius:.25rem;text-align:center;font-weight:500;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.btn:focus{outline:.125rem solid transparent;outline-offset:.125rem}.btn:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(.125rem + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity));--tw-ring-offset-width: .125rem}.btn:not(.btn-icon){min-height:2.5rem;gap:.5rem;padding:.5rem 1.25rem}.btn:not(.btn-icon) svg{margin-left:-.125rem;margin-right:-.125rem}.btn svg{height:1.25rem;width:1.25rem;flex-shrink:0}.btn:disabled{cursor:not-allowed;opacity:.5}.btn{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.btn:hover:enabled{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.btn:active:enabled{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.btn[aria-expanded=true]{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.btn-outline{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;border-radius:.25rem;text-align:center;font-weight:500;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.btn-outline:focus{outline:.125rem solid transparent;outline-offset:.125rem}.btn-outline:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(.125rem + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity));--tw-ring-offset-width: .125rem}.btn-outline:not(.btn-icon){min-height:2.5rem;gap:.5rem;padding:.5rem 1.25rem}.btn-outline:not(.btn-icon) svg{margin-left:-.125rem;margin-right:-.125rem}.btn-outline svg{height:1.25rem;width:1.25rem;flex-shrink:0}.btn-outline:disabled{cursor:not-allowed;opacity:.5}.btn-outline{border-width:.0625rem;--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.btn-outline:hover:enabled{background-color:#0000000d}.btn-outline:active:enabled{background-color:#0000001a}.btn-outline[aria-expanded=true]{background-color:#0000001a}.btn-subtle{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;border-radius:.25rem;text-align:center;font-weight:500;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.btn-subtle:focus{outline:.125rem solid transparent;outline-offset:.125rem}.btn-subtle:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(.125rem + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity));--tw-ring-offset-width: .125rem}.btn-subtle:not(.btn-icon){min-height:2.5rem;gap:.5rem;padding:.5rem 1.25rem}.btn-subtle:not(.btn-icon) svg{margin-left:-.125rem;margin-right:-.125rem}.btn-subtle svg{height:1.25rem;width:1.25rem;flex-shrink:0}.btn-subtle:disabled{cursor:not-allowed;opacity:.5}.btn-subtle{background-color:transparent;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.btn-subtle:hover:enabled{background-color:#0000000d}.btn-subtle:active:enabled{background-color:#0000001a}.btn-subtle[aria-expanded=true]{background-color:#0000001a}:is(.dark .btn-subtle){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .btn-subtle:active){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .btn-subtle:hover:enabled){background-color:#0003}:is(.dark .btn-subtle:active:enabled){background-color:#0000004d}:is(.dark .btn-subtle[aria-expanded=true]){background-color:#0000004d;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.btn-icon{height:1.5rem;width:1.5rem;gap:0px!important;padding:0!important;font-size:0!important;line-height:0!important}.btn-icon svg{height:1rem;width:1rem;flex-shrink:0}.dropdown{z-index:50;display:inline-flex;min-width:12.5rem;max-width:15.625rem;flex-direction:column;gap:.5rem;border-radius:.75rem;border-width:.0625rem;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:.5rem;--tw-shadow: 0 .0625rem .1875rem 0 rgb(0 0 0 / .1), 0 .0625rem .125rem -.0625rem rgb(0 0 0 / .1);--tw-shadow-colored: 0 .0625rem .1875rem 0 var(--tw-shadow-color), 0 .0625rem .125rem -.0625rem var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:is(.dark .dropdown){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}@keyframes slide-down-and-fade{0%{opacity:0;transform:translateY(-.125rem)}to{opacity:1;transform:translateY(0)}}.dropdown[data-side=top]{animation:slide-down-and-fade .4s cubic-bezier(.16,1,.3,1)}@keyframes slide-up-and-fade{0%{opacity:0;transform:translateY(.125rem)}to{opacity:1;transform:translateY(0)}}.dropdown[data-side=bottom]{animation:slide-up-and-fade .4s cubic-bezier(.16,1,.3,1)}@keyframes slide-right-and-fade{0%{opacity:0;transform:translate(-.125rem)}to{opacity:1;transform:translate(0)}}.dropdown[data-side=left]{animation:slide-right-and-fade .4s cubic-bezier(.16,1,.3,1)}@keyframes slide-left-and-fade{0%{opacity:0;transform:translate(.125rem)}to{opacity:1;transform:translate(0)}}.dropdown[data-side=right]{animation:slide-left-and-fade .4s cubic-bezier(.16,1,.3,1)}.dropdown-item{display:flex;min-height:2rem;width:100%;cursor:pointer;align-items:center;justify-content:space-between;gap:.5rem;border-radius:.375rem;padding-left:.75rem;padding-right:.75rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.dropdown-item:hover{background-color:#0000000d;outline:.125rem solid transparent;outline-offset:.125rem}.dropdown-item:active{background-color:#0000001a}.dropdown-item[aria-checked=true]{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dropdown-item:hover[aria-checked=true]{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity))}.dropdown-item:active[aria-checked=true]{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}:is(.dark .dropdown-item){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dropdown-item:hover){background-color:#0000004d}:is(.dark .dropdown-item:active){background-color:#0006}:is(.dark .dropdown-item:hover)[aria-checked=true]{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity))}:is(.dark .dropdown-item:active)[aria-checked=true]{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.dropdown-item+.dropdown-item{margin-top:.25rem}.dropdown-separator{margin-left:.75rem;margin-right:.75rem;height:.0625rem;--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:is(.dark .dropdown-separator){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.dropdown-arrow{fill:#d1d5db;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:is(.dark .dropdown-arrow){fill:#9ca3af}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.left-4{left:1rem}.left-\\[50\\%\\]{left:50%}.right-2{right:.5rem}.top-2{top:.5rem}.top-\\[50\\%\\]{top:50%}.z-10{z-index:10}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.-ml-1{margin-left:-.25rem}.block{display:block}.inline{display:inline}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-screen{height:100vh}.max-h-\\[85vh\\]{max-height:85vh}.min-h-8{min-height:2rem}.w-3{width:.75rem}.w-5{width:1.25rem}.w-\\[90vw\\]{width:90vw}.w-full{width:100%}.min-w-\\[250px\\]{min-width:15.625rem}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.flex-grow{flex-grow:1}.-translate-x-2{--tw-translate-x: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\!grid-cols-\\[0px\\,1fr\\]{grid-template-columns:0px 1fr!important}.grid-cols-\\[250px\\,1fr\\]{grid-template-columns:15.625rem 1fr}.grid-rows-\\[auto\\,1fr\\]{grid-template-rows:auto 1fr}.flex-col{flex-direction:column}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:624.9375rem}.rounded-none{border-radius:0}.rounded-xl{border-radius:.75rem}.border{border-width:.0625rem}.border-2{border-width:.125rem}.border-l{border-left-width:.0625rem}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-900\\/60{background-color:#11182799}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-gradient-to-l{background-image:linear-gradient(to left,var(--tw-gradient-stops))}.from-gray-400\\/30{--tw-gradient-from: rgb(156 163 175 / .3) var(--tw-gradient-from-position);--tw-gradient-to: rgb(156 163 175 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.to-35\\%{--tw-gradient-to-position: 35%}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-6{padding-bottom:1.5rem}.pl-10{padding-left:2.5rem}.pl-4{padding-left:1rem}.pr-2{padding-right:.5rem}.pt-6{padding-top:1.5rem}.text-start{text-align:start}.font-sans{font-family:Roboto,sans-serif}.text-md{font-size:1rem;line-height:1.4}.text-xl{font-size:1.5rem;line-height:1.2}.text-xs{font-size:.75rem;line-height:1.4}.font-bold{font-weight:700}.font-medium{font-weight:500}.uppercase{text-transform:uppercase}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.placeholder-gray-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity))}.placeholder-gray-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 .0625rem .1875rem 0 rgb(0 0 0 / .1), 0 .0625rem .125rem -.0625rem rgb(0 0 0 / .1);--tw-shadow-colored: 0 .0625rem .1875rem 0 var(--tw-shadow-color), 0 .0625rem .125rem -.0625rem var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 .625rem .9375rem -.1875rem rgb(0 0 0 / .1), 0 .25rem .375rem -.25rem rgb(0 0 0 / .1);--tw-shadow-colored: 0 .625rem .9375rem -.1875rem var(--tw-shadow-color), 0 .25rem .375rem -.25rem var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(.0625rem + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-\\[2px\\]{--tw-backdrop-blur: blur(.125rem);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.delay-0{transition-delay:0s}.delay-200{transition-delay:.2s}.duration-500{transition-duration:.5s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\\:bg-black\\/5:hover{background-color:#0000000d}.hover\\:bg-blue-400:hover{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:ring-gray-400:hover{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.focus\\:outline-none:focus{outline:.125rem solid transparent;outline-offset:.125rem}.focus\\:ring-blue-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity))}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(.125rem + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.active\\:bg-black\\/10:active{background-color:#0000001a}@keyframes dialog-content-show{0%{opacity:0;transform:translate(-50%,-48%) scale(.96)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}.data-\\[state\\=open\\]\\:animate-dialog-content-show[data-state=open]{animation:dialog-content-show .15s cubic-bezier(.16,1,.3,1)}@keyframes dialog-overlay-show{0%{opacity:0}to{opacity:1}}.data-\\[state\\=open\\]\\:animate-dialog-overlay-show[data-state=open]{animation:dialog-overlay-show .4s cubic-bezier(.16,1,.3,1)}:is(.dark .dark\\:border-gray-500){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}:is(.dark .dark\\:border-gray-700){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}:is(.dark .dark\\:bg-gray-700){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\\:from-gray-900\\/40){--tw-gradient-from: rgb(17 24 39 / .4) var(--tw-gradient-from-position);--tw-gradient-to: rgb(17 24 39 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}:is(.dark .dark\\:text-gray-100){--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}:is(.dark .dark\\:text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}:is(.dark .dark\\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\\:ring-gray-500){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}:is(.dark .dark\\:hover\\:bg-black\\/30:hover){background-color:#0000004d}:is(.dark .dark\\:hover\\:bg-blue-400:hover){--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity))}:is(.dark .dark\\:hover\\:bg-gray-700\\/75:hover){background-color:#374151bf}:is(.dark .dark\\:focus\\:ring-blue-400:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity))}:is(.dark .dark\\:active\\:bg-black\\/40:active){background-color:#0006}:is(.dark .dark\\:active\\:bg-blue-500:active){--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))} -`;let jo=!1;class xf extends HTMLElement{constructor(){super();tn(this,"shadow");tn(this,"styleSheet",new CSSStyleSheet);this.shadow=this.attachShadow({mode:"open"}),this.shadow.adoptedStyleSheets=[this.styleSheet]}connectedCallback(){const n=this.getAttribute("config-url");this.setUpStyles(),Fe(x(yf,{configUrl:n}),this.shadow)}disconnectedCallback(){Fe(null,this)}setUpStyles(){if(jo)return;const n=document.createElement("link");n.href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap",n.rel="stylesheet",document.head.appendChild(n);const o=document.createElement("style");o.appendChild(document.createTextNode(` - body { - margin: 0; - padding: 0; - } - `)),document.head.appendChild(o),this.styleSheet.replaceSync($f),jo=!0}}customElements.define("parts-kit",xf); diff --git a/assets/index-656964dc.js b/assets/index-656964dc.js new file mode 100644 index 0000000..9676ca6 --- /dev/null +++ b/assets/index-656964dc.js @@ -0,0 +1,71 @@ +var Wc=Object.defineProperty;var jc=(e,t,n)=>t in e?Wc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var St=(e,t,n)=>(jc(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const c of i.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();var bt,E,Yo,Le,oo,Zo,bn,Xo,Ye={},qo=[],Kc=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Yt=Array.isArray;function ge(e,t){for(var n in t)e[n]=t[n];return e}function Jo(e){var t=e.parentNode;t&&t.removeChild(e)}function _(e,t,n){var o,r,i,c={};for(i in t)i=="key"?o=t[i]:i=="ref"?r=t[i]:c[i]=t[i];if(arguments.length>2&&(c.children=arguments.length>3?bt.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)c[i]===void 0&&(c[i]=e.defaultProps[i]);return lt(e,c,o,r,null)}function lt(e,t,n,o,r){var i={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++Yo};return r==null&&E.vnode!=null&&E.vnode(i),i}function Qo(){return{current:null}}function G(e){return e.children}function ce(e,t){this.props=e,this.context=t}function dt(e,t){if(t==null)return e.__?dt(e.__,e.__.__k.indexOf(e)+1):null;for(var n;tt&&Le.sort(bn));Ut.__r=0}function tr(e,t,n,o,r,i,c,a,l,u,f){var s,g,d,h,p,b,v,m,w,y=0,$=o&&o.__k||qo,O=$.length,C=O,P=t.length;for(n.__k=[],s=0;s0?lt(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)!=null?(h.__=n,h.__b=n.__b+1,(m=Gc(h,$,v=s+y,C))===-1?d=Ye:(d=$[m]||Ye,$[m]=void 0,C--),In(e,h,d,r,i,c,a,l,u,f),p=h.__e,(g=h.ref)&&d.ref!=g&&(d.ref&&Nn(d.ref,null,h),f.push(g,h.__c||p,h)),p!=null&&(b==null&&(b=p),(w=d===Ye||d.__v===null)?m==-1&&y--:m!==v&&(m===v+1?y++:m>v?C>P-v?y+=m-v:y--:y=m(l!=null?1:0))for(;c>=0||a=0){if((l=t[c])&&r==l.key&&i===l.type)return c;c--}if(a2&&(a.children=arguments.length>3?bt.call(arguments,2):n),lt(e.type,a,o||e.key,r||e.ref,null)}function Ue(e,t){var n={__c:t="__cC"+Xo++,__:e,Consumer:function(o,r){return o.children(r)},Provider:function(o){var r,i;return this.getChildContext||(r=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(c){this.props.value!==c.value&&r.some(function(a){a.__e=!0,_n(a)})},this.sub=function(c){r.push(c);var a=c.componentWillUnmount;c.componentWillUnmount=function(){r.splice(r.indexOf(c),1),a&&a.call(c)}}),o.children}};return n.Provider.__=n.Consumer.contextType=n}bt=qo.slice,E={__e:function(e,t,n,o){for(var r,i,c;t=t.__;)if((r=t.__c)&&!r.__)try{if((i=r.constructor)&&i.getDerivedStateFromError!=null&&(r.setState(i.getDerivedStateFromError(e)),c=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(e,o||{}),c=r.__d),c)return r.__E=r}catch(a){e=a}throw e}},Yo=0,ce.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ge({},this.state),typeof e=="function"&&(e=e(ge({},n),this.props)),e&&ge(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),_n(this))},ce.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_n(this))},ce.prototype.render=G,Le=[],Zo=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,bn=function(e,t){return e.__v.__b-t.__v.__b},Ut.__r=0,Xo=0;var me,B,rn,ao,Xe=0,cr=[],Tt=[],so=E.__b,lo=E.__r,uo=E.diffed,fo=E.__c,po=E.unmount;function Be(e,t){E.__h&&E.__h(B,e,Xe||t),Xe=0;var n=B.__H||(B.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Tt}),n.__[e]}function I(e){return Xe=1,Zt(lr,e)}function Zt(e,t,n){var o=Be(me++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):lr(void 0,t),function(a){var l=o.__N?o.__N[0]:o.__[0],u=o.t(l,a);l!==u&&(o.__N=[u,o.__[1]],o.__c.setState({}))}],o.__c=B,!B.u)){var r=function(a,l,u){if(!o.__c.__H)return!0;var f=o.__c.__H.__.filter(function(g){return g.__c});if(f.every(function(g){return!g.__N}))return!i||i.call(this,a,l,u);var s=!1;return f.forEach(function(g){if(g.__N){var d=g.__[0];g.__=g.__N,g.__N=void 0,d!==g.__[0]&&(s=!0)}}),!(!s&&o.__c.props===a)&&(!i||i.call(this,a,l,u))};B.u=!0;var i=B.shouldComponentUpdate,c=B.componentWillUpdate;B.componentWillUpdate=function(a,l,u){if(this.__e){var f=i;i=void 0,r(a,l,u),i=f}c&&c.call(this,a,l,u)},B.shouldComponentUpdate=r}return o.__N||o.__}function T(e,t){var n=Be(me++,3);!E.__s&&Fn(n.__H,t)&&(n.__=e,n.i=t,B.__H.__h.push(n))}function He(e,t){var n=Be(me++,4);!E.__s&&Fn(n.__H,t)&&(n.__=e,n.i=t,B.__h.push(n))}function D(e){return Xe=5,q(function(){return{current:e}},[])}function ar(e,t,n){Xe=6,He(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function q(e,t){var n=Be(me++,7);return Fn(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function z(e,t){return Xe=8,q(function(){return e},t)}function nt(e){var t=B.context[e.__c],n=Be(me++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(B)),t.props.value):e.__}function Ln(e,t){E.useDebugValue&&E.useDebugValue(t?t(e):e)}function Jc(e){var t=Be(me++,10),n=I();return t.__=e,B.componentDidCatch||(B.componentDidCatch=function(o,r){t.__&&t.__(o,r),n[1](o)}),[n[0],function(){n[1](void 0)}]}function sr(){var e=Be(me++,11);if(!e.__){for(var t=B.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Qc(){for(var e;e=cr.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(It),e.__H.__h.forEach(yn),e.__H.__h=[]}catch(t){e.__H.__h=[],E.__e(t,e.__v)}}E.__b=function(e){B=null,so&&so(e)},E.__r=function(e){lo&&lo(e),me=0;var t=(B=e.__c).__H;t&&(rn===B?(t.__h=[],B.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Tt,n.__N=n.i=void 0})):(t.__h.forEach(It),t.__h.forEach(yn),t.__h=[],me=0)),rn=B},E.diffed=function(e){uo&&uo(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(cr.push(t)!==1&&ao===E.requestAnimationFrame||((ao=E.requestAnimationFrame)||ea)(Qc)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Tt&&(n.__=n.__V),n.i=void 0,n.__V=Tt})),rn=B=null},E.__c=function(e,t){t.some(function(n){try{n.__h.forEach(It),n.__h=n.__h.filter(function(o){return!o.__||yn(o)})}catch(o){t.some(function(r){r.__h&&(r.__h=[])}),t=[],E.__e(o,n.__v)}}),fo&&fo(e,t)},E.unmount=function(e){po&&po(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(o){try{It(o)}catch(r){t=r}}),n.__H=void 0,t&&E.__e(t,n.__v))};var ho=typeof requestAnimationFrame=="function";function ea(e){var t,n=function(){clearTimeout(o),ho&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,100);ho&&(t=requestAnimationFrame(n))}function It(e){var t=B,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),B=t}function yn(e){var t=B;e.__c=e.__(),B=t}function Fn(e,t){return!e||e.length!==t.length||t.some(function(n,o){return n!==e[o]})}function lr(e,t){return typeof t=="function"?t(e):t}const go=e=>{let t;const n=new Set,o=(l,u)=>{const f=typeof l=="function"?l(t):l;if(!Object.is(f,t)){const s=t;t=u??typeof f!="object"?f:Object.assign({},t,f),n.forEach(g=>g(t,s))}},r=()=>t,a={setState:o,getState:r,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{n.clear()}};return t=e(o,r,a),a},ta=e=>e?go(e):go;function ur(e,t){for(var n in t)e[n]=t[n];return e}function $n(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var o in t)if(o!=="__source"&&e[o]!==t[o])return!0;return!1}function cn(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function Bt(e){this.props=e}function dr(e,t){function n(r){var i=this.props.ref,c=i==r.ref;return!c&&i&&(i.call?i(null):i.current=null),t?!t(this.props,r)||!c:$n(this.props,r)}function o(r){return this.shouldComponentUpdate=n,_(e,r)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(Bt.prototype=new ce).isPureReactComponent=!0,Bt.prototype.shouldComponentUpdate=function(e,t){return $n(this.props,e)||$n(this.state,t)};var vo=E.__b;E.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),vo&&vo(e)};var na=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function S(e){function t(n){var o=ur({},n);return delete o.ref,e(o,n.ref||null)}return t.$$typeof=na,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var mo=function(e,t){return e==null?null:ve(ve(e).map(t))},fe={map:mo,forEach:mo,count:function(e){return e?ve(e).length:0},only:function(e){var t=ve(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ve},oa=E.__e;E.__e=function(e,t,n,o){if(e.then){for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t)}oa(e,t,n,o)};var bo=E.unmount;function fr(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(o){typeof o.__c=="function"&&o.__c()}),e.__c.__H=null),(e=ur({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(o){return fr(o,t,n)})),e}function pr(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(o){return pr(o,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function ut(){this.__u=0,this.t=null,this.__b=null}function hr(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function gr(e){var t,n,o;function r(i){if(t||(t=e()).then(function(c){n=c.default||c},function(c){o=c}),o)throw o;if(!n)throw t;return _(n,i)}return r.displayName="Lazy",r.__f=!0,r}function Ge(){this.u=null,this.o=null}E.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),bo&&bo(e)},(ut.prototype=new ce).__c=function(e,t){var n=t.__c,o=this;o.t==null&&(o.t=[]),o.t.push(n);var r=hr(o.__v),i=!1,c=function(){i||(i=!0,n.__R=null,r?r(a):a())};n.__R=c;var a=function(){if(!--o.__u){if(o.state.__a){var u=o.state.__a;o.__v.__k[0]=pr(u,u.__c.__P,u.__c.__O)}var f;for(o.setState({__a:o.__b=null});f=o.t.pop();)f.forceUpdate()}},l=t.__h===!0;o.__u++||l||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(c,c)},ut.prototype.componentWillUnmount=function(){this.t=[]},ut.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=fr(this.__b,n,o.__O=o.__P)}this.__b=null}var r=t.__a&&_(G,null,e.fallback);return r&&(r.__h=null),[_(G,null,t.__a?null:e.children),r]};var _o=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(o)}}),Fe(_(ra,{context:t.context},e.__v),t.l)}function vr(e,t){var n=_(ia,{__v:e,i:t});return n.containerInfo=t,n}(Ge.prototype=new ce).__a=function(e){var t=this,n=hr(t.__v),o=t.o.get(e);return o[0]++,function(r){var i=function(){t.props.revealOrder?(o.push(r),_o(t,e,o)):r()};n?n(i):i()}},Ge.prototype.render=function(e){this.u=null,this.o=new Map;var t=ve(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Ge.prototype.componentDidUpdate=Ge.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){_o(e,n,t)})};var mr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,ca=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,aa=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,sa=/[A-Z0-9]/g,la=typeof document<"u",ua=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function br(e,t,n){return t.__k==null&&(t.textContent=""),Fe(e,t),typeof n=="function"&&n(),e?e.__c:null}function _r(e,t,n){return ir(e,t),typeof n=="function"&&n(),e?e.__c:null}ce.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ce.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var wo=E.event;function da(){}function fa(){return this.cancelBubble}function pa(){return this.defaultPrevented}E.event=function(e){return wo&&(e=wo(e)),e.persist=da,e.isPropagationStopped=fa,e.isDefaultPrevented=pa,e.nativeEvent=e};var Un,ha={enumerable:!1,configurable:!0,get:function(){return this.class}},yo=E.vnode;E.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,o=t.type,r={};for(var i in n){var c=n[i];if(!(i==="value"&&"defaultValue"in n&&c==null||la&&i==="children"&&o==="noscript"||i==="class"||i==="className")){var a=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&c===!0?c="":a==="ondoubleclick"?i="ondblclick":a!=="onchange"||o!=="input"&&o!=="textarea"||ua(n.type)?a==="onfocus"?i="onfocusin":a==="onblur"?i="onfocusout":aa.test(i)?i=a:o.indexOf("-")===-1&&ca.test(i)?i=i.replace(sa,"-$&").toLowerCase():c===null&&(c=void 0):a=i="oninput",a==="oninput"&&r[i=a]&&(i="oninputCapture"),r[i]=c}}o=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=ve(n.children).forEach(function(l){l.props.selected=r.value.indexOf(l.props.value)!=-1})),o=="select"&&r.defaultValue!=null&&(r.value=ve(n.children).forEach(function(l){l.props.selected=r.multiple?r.defaultValue.indexOf(l.props.value)!=-1:r.defaultValue==l.props.value})),n.class&&!n.className?(r.class=n.class,Object.defineProperty(r,"className",ha)):(n.className&&!n.class||n.class&&n.className)&&(r.class=r.className=n.className),t.props=r}(e),e.$$typeof=mr,yo&&yo(e)};var $o=E.__r;E.__r=function(e){$o&&$o(e),Un=e.__c};var xo=E.diffed;E.diffed=function(e){xo&&xo(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Un=null};var wr={ReactCurrentDispatcher:{current:{readContext:function(e){return Un.__n[e.__c].props.value}}}},ga="17.0.2";function yr(e){return _.bind(null,e)}function be(e){return!!e&&e.$$typeof===mr}function $r(e){return be(e)&&e.type===G}function ot(e){return be(e)?qc.apply(null,arguments):e}function xr(e){return!!e.__k&&(Fe(null,e),!0)}function Cr(e){return e&&(e.base||e.nodeType===1&&e)||null}var Sr=function(e,t){return e(t)},_t=function(e,t){return e(t)},kr=G;function zn(e){e()}function Er(e){return e}function Or(){return[!1,zn]}var Pr=He,Dr=be;function Mr(e,t){var n=t(),o=I({h:{__:n,v:t}}),r=o[0].h,i=o[1];return He(function(){r.__=n,r.v=t,cn(r.__,t())||i({h:r})},[e,n,t]),T(function(){return cn(r.__,r.v())||i({h:r}),e(function(){cn(r.__,r.v())||i({h:r})})},[e]),n}var ne={useState:I,useId:sr,useReducer:Zt,useEffect:T,useLayoutEffect:He,useInsertionEffect:Pr,useTransition:Or,useDeferredValue:Er,useSyncExternalStore:Mr,startTransition:zn,useRef:D,useImperativeHandle:ar,useMemo:q,useCallback:z,useContext:nt,useDebugValue:Ln,version:"17.0.2",Children:fe,render:br,hydrate:_r,unmountComponentAtNode:xr,createPortal:vr,createElement:_,createContext:Ue,createFactory:yr,cloneElement:ot,createRef:Qo,Fragment:G,isValidElement:be,isElement:Dr,isFragment:$r,findDOMNode:Cr,Component:ce,PureComponent:Bt,memo:dr,forwardRef:S,flushSync:_t,unstable_batchedUpdates:Sr,StrictMode:kr,Suspense:ut,SuspenseList:Ge,lazy:gr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:wr};const Rr=Object.freeze(Object.defineProperty({__proto__:null,Children:fe,Component:ce,Fragment:G,PureComponent:Bt,StrictMode:kr,Suspense:ut,SuspenseList:Ge,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:wr,cloneElement:ot,createContext:Ue,createElement:_,createFactory:yr,createPortal:vr,createRef:Qo,default:ne,findDOMNode:Cr,flushSync:_t,forwardRef:S,hydrate:_r,isElement:Dr,isFragment:$r,isValidElement:be,lazy:gr,memo:dr,render:br,startTransition:zn,unmountComponentAtNode:xr,unstable_batchedUpdates:Sr,useCallback:z,useContext:nt,useDebugValue:Ln,useDeferredValue:Er,useEffect:T,useErrorBoundary:Jc,useId:sr,useImperativeHandle:ar,useInsertionEffect:Pr,useLayoutEffect:He,useMemo:q,useReducer:Zt,useRef:D,useState:I,useSyncExternalStore:Mr,useTransition:Or,version:ga},Symbol.toStringTag,{value:"Module"}));function Ar(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function va(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}),n}var Tr={exports:{}},Ir={};const Nr=va(Rr);var Lr={exports:{}},Fr={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var qe=Nr;function ma(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ba=typeof Object.is=="function"?Object.is:ma,_a=qe.useState,wa=qe.useEffect,ya=qe.useLayoutEffect,$a=qe.useDebugValue;function xa(e,t){var n=t(),o=_a({inst:{value:n,getSnapshot:t}}),r=o[0].inst,i=o[1];return ya(function(){r.value=n,r.getSnapshot=t,an(r)&&i({inst:r})},[e,n,t]),wa(function(){return an(r)&&i({inst:r}),e(function(){an(r)&&i({inst:r})})},[e]),$a(n),n}function an(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ba(e,n)}catch{return!0}}function Ca(e,t){return t()}var Sa=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Ca:xa;Fr.useSyncExternalStore=qe.useSyncExternalStore!==void 0?qe.useSyncExternalStore:Sa;Lr.exports=Fr;var ka=Lr.exports;/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Xt=Nr,Ea=ka;function Oa(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pa=typeof Object.is=="function"?Object.is:Oa,Da=Ea.useSyncExternalStore,Ma=Xt.useRef,Ra=Xt.useEffect,Aa=Xt.useMemo,Ta=Xt.useDebugValue;Ir.useSyncExternalStoreWithSelector=function(e,t,n,o,r){var i=Ma(null);if(i.current===null){var c={hasValue:!1,value:null};i.current=c}else c=i.current;i=Aa(function(){function l(d){if(!u){if(u=!0,f=d,d=o(d),r!==void 0&&c.hasValue){var h=c.value;if(r(h,d))return s=h}return s=d}if(h=s,Pa(f,d))return h;var p=o(d);return r!==void 0&&r(h,p)?h:(f=d,s=p)}var u=!1,f,s,g=n===void 0?null:n;return[function(){return l(t())},g===null?void 0:function(){return l(g())}]},[t,n,o,r]);var a=Da(e,i[0],i[1]);return Ra(function(){c.hasValue=!0,c.value=a},[a]),Ta(a),a};Tr.exports=Ir;var Ia=Tr.exports;const Na=Ar(Ia),{useSyncExternalStoreWithSelector:La}=Na;function Fa(e,t=e.getState,n){const o=La(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return Ln(o),o}const Co=e=>{const t=typeof e=="function"?ta(e):e,n=(o,r)=>Fa(t,o,r);return Object.assign(n,t),n},Bn=e=>e?Co(e):Co,xn=new Map,kt=e=>{const t=xn.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,o])=>[n,o.getState()])):{}},Ua=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const o=xn.get(n.name);if(o)return{type:"tracked",store:e,...o};const r={connection:t.connect(n),stores:{}};return xn.set(n.name,r),{type:"tracked",store:e,...r}},za=(e,t={})=>(n,o,r)=>{const{enabled:i,anonymousActionType:c,store:a,...l}=t;let u;try{u=(i??!1)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return e(n,o,r);const{connection:f,...s}=Ua(a,u,l);let g=!0;r.setState=(p,b,v)=>{const m=n(p,b);if(!g)return m;const w=v===void 0?{type:c||"anonymous"}:typeof v=="string"?{type:v}:v;return a===void 0?(f==null||f.send(w,o()),m):(f==null||f.send({...w,type:`${a}/${w.type}`},{...kt(l.name),[a]:r.getState()}),m)};const d=(...p)=>{const b=g;g=!1,n(...p),g=b},h=e(r.setState,o,r);if(s.type==="untracked"?f==null||f.init(h):(s.stores[s.store]=r,f==null||f.init(Object.fromEntries(Object.entries(s.stores).map(([p,b])=>[p,p===s.store?h:b.getState()])))),r.dispatchFromDevtools&&typeof r.dispatch=="function"){let p=!1;const b=r.dispatch;r.dispatch=(...v)=>{b(...v)}}return f.subscribe(p=>{var b;switch(p.type){case"ACTION":if(typeof p.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return sn(p.payload,v=>{if(v.type==="__setState"){if(a===void 0){d(v.state);return}Object.keys(v.state).length!==1&&console.error(` + [zustand devtools middleware] Unsupported __setState action format. + When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), + and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } + `);const m=v.state[a];if(m==null)return;JSON.stringify(r.getState())!==JSON.stringify(m)&&d(m);return}r.dispatchFromDevtools&&typeof r.dispatch=="function"&&r.dispatch(v)});case"DISPATCH":switch(p.payload.type){case"RESET":return d(h),a===void 0?f==null?void 0:f.init(r.getState()):f==null?void 0:f.init(kt(l.name));case"COMMIT":if(a===void 0){f==null||f.init(r.getState());return}return f==null?void 0:f.init(kt(l.name));case"ROLLBACK":return sn(p.state,v=>{if(a===void 0){d(v),f==null||f.init(r.getState());return}d(v[a]),f==null||f.init(kt(l.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return sn(p.state,v=>{if(a===void 0){d(v);return}JSON.stringify(r.getState())!==JSON.stringify(v[a])&&d(v[a])});case"IMPORT_STATE":{const{nextLiftedState:v}=p.payload,m=(b=v.computedStates.slice(-1)[0])==null?void 0:b.state;if(!m)return;d(a===void 0?m:m[a]),f==null||f.send(null,v);return}case"PAUSE_RECORDING":return g=!g}return}}),h},Hn=za,sn=(e,t)=>{let n;try{n=JSON.parse(e)}catch(o){console.error("[zustand devtools middleware] Could not parse the received json",o)}n!==void 0&&t(n)},Ur=(e,t)=>(...n)=>Object.assign({},e,t(...n));function Ba(e,t){let n;try{n=e()}catch{return}return{getItem:r=>{var i;const c=l=>l===null?null:JSON.parse(l,t==null?void 0:t.reviver),a=(i=n.getItem(r))!=null?i:null;return a instanceof Promise?a.then(c):c(a)},setItem:(r,i)=>n.setItem(r,JSON.stringify(i,t==null?void 0:t.replacer)),removeItem:r=>n.removeItem(r)}}const ft=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(o){return ft(o)(n)},catch(o){return this}}}catch(n){return{then(o){return this},catch(o){return ft(o)(n)}}}},Ha=(e,t)=>(n,o,r)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:b=>b,version:0,merge:(b,v)=>({...v,...b}),...t},c=!1;const a=new Set,l=new Set;let u;try{u=i.getStorage()}catch{}if(!u)return e((...b)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...b)},o,r);const f=ft(i.serialize),s=()=>{const b=i.partialize({...o()});let v;const m=f({state:b,version:i.version}).then(w=>u.setItem(i.name,w)).catch(w=>{v=w});if(v)throw v;return m},g=r.setState;r.setState=(b,v)=>{g(b,v),s()};const d=e((...b)=>{n(...b),s()},o,r);let h;const p=()=>{var b;if(!u)return;c=!1,a.forEach(m=>m(o()));const v=((b=i.onRehydrateStorage)==null?void 0:b.call(i,o()))||void 0;return ft(u.getItem.bind(u))(i.name).then(m=>{if(m)return i.deserialize(m)}).then(m=>{if(m)if(typeof m.version=="number"&&m.version!==i.version){if(i.migrate)return i.migrate(m.state,m.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return m.state}).then(m=>{var w;return h=i.merge(m,(w=o())!=null?w:d),n(h,!0),s()}).then(()=>{v==null||v(h,void 0),c=!0,l.forEach(m=>m(h))}).catch(m=>{v==null||v(void 0,m)})};return r.persist={setOptions:b=>{i={...i,...b},b.getStorage&&(u=b.getStorage())},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>p(),hasHydrated:()=>c,onHydrate:b=>(a.add(b),()=>{a.delete(b)}),onFinishHydration:b=>(l.add(b),()=>{l.delete(b)})},p(),h||d},Va=(e,t)=>(n,o,r)=>{let i={storage:Ba(()=>localStorage),partialize:p=>p,version:0,merge:(p,b)=>({...b,...p}),...t},c=!1;const a=new Set,l=new Set;let u=i.storage;if(!u)return e((...p)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...p)},o,r);const f=()=>{const p=i.partialize({...o()});return u.setItem(i.name,{state:p,version:i.version})},s=r.setState;r.setState=(p,b)=>{s(p,b),f()};const g=e((...p)=>{n(...p),f()},o,r);let d;const h=()=>{var p,b;if(!u)return;c=!1,a.forEach(m=>{var w;return m((w=o())!=null?w:g)});const v=((b=i.onRehydrateStorage)==null?void 0:b.call(i,(p=o())!=null?p:g))||void 0;return ft(u.getItem.bind(u))(i.name).then(m=>{if(m)if(typeof m.version=="number"&&m.version!==i.version){if(i.migrate)return i.migrate(m.state,m.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return m.state}).then(m=>{var w;return d=i.merge(m,(w=o())!=null?w:g),n(d,!0),f()}).then(()=>{v==null||v(d,void 0),d=o(),c=!0,l.forEach(m=>m(d))}).catch(m=>{v==null||v(void 0,m)})};return r.persist={setOptions:p=>{i={...i,...p},p.storage&&(u=p.storage)},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>h(),hasHydrated:()=>c,onHydrate:p=>(a.add(p),()=>{a.delete(p)}),onFinishHydration:p=>(l.add(p),()=>{l.delete(p)})},i.skipHydration||h(),d||g},Wa=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?Ha(e,t):Va(e,t),zr=Wa;var Ht=(e=>(e[e.Mobile=0]="Mobile",e[e.Tablet=1]="Tablet",e[e.Desktop=2]="Desktop",e))(Ht||{});const So=[{title:"Mobile",size:0},{title:"Tablet",size:1},{title:"Desktop",size:2}],ja={0:375,1:768,2:void 0},Ka=()=>window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",Vn=Bn(zr(Hn(Ur({mode:Ka()},e=>({setMode:t=>e(()=>({mode:t})),toggleMode:()=>e(t=>({mode:t.mode==="light"?"dark":"light"}))}))),{name:"theme-store"})),De=Bn(Hn(Ur({isSettingsVisible:!1,isSettingsOpen:!1,isViewportOpen:!1,isNavBarVisible:!0,activeScreenSize:2},e=>({setIsSettingsVisible:t=>e(()=>({isSettingsVisible:t})),setIsSettingsOpen:t=>e(()=>({isSettingsOpen:t})),setIsViewportOpen:t=>e(()=>({isViewportOpen:t})),setIsNavBarVisible:t=>e(()=>({isNavBarVisible:t})),setActiveScreenSize:t=>e(()=>({activeScreenSize:t}))}))));function Ga(e){T(()=>(window.addEventListener("message",e.onMessage),()=>window.removeEventListener("message",e.onMessage)))}function Ya(e){const t=e;return t.type!==void 0&&t.payload!==void 0}function Za(e){return Ya(e)&&e.type==="keyboardEvent"}function Xa(e){window.parent.postMessage(e,{targetOrigin:window.location.origin})}function Br(){return!(document.activeElement instanceof HTMLInputElement||document.activeElement instanceof HTMLTextAreaElement)}function at(e){e.preventDefault!==void 0&&e.preventDefault()}function qa(){const e=De(),t=Vn();Ga({onMessage(o){Za(o.data)&&n(o.data.payload)}});const n=o=>{if(Br())switch(o.key.toLowerCase()){case"f":return at(o),e.setIsNavBarVisible(!e.isNavBarVisible);case"escape":return at(o),e.setIsNavBarVisible(!0);case"v":o.shiftKey&&(at(o),e.setIsViewportOpen(!e.isViewportOpen));return;case"t":o.shiftKey&&(at(o),t.toggleMode());return;case"s":o.shiftKey&&(at(o),e.setIsSettingsOpen(!e.isSettingsOpen));return;default:return}};T(()=>(document.addEventListener("keydown",n),()=>{document.removeEventListener("keydown",n)}),[e.isNavBarVisible,e.isViewportOpen,e.isSettingsOpen,t.mode])}var Hr={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o=[],r=0;r=0)&&(n[r]=e[r]);return n}var Qa=["color"],es=S(function(e,t){var n=e.color,o=n===void 0?"currentColor":n,r=$e(e,Qa);return _("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),_("path",{d:"M2.5 2H12.5C12.7761 2 13 2.22386 13 2.5V12.5C13 12.7761 12.7761 13 12.5 13H2.5C2.22386 13 2 12.7761 2 12.5V2.5C2 2.22386 2.22386 2 2.5 2ZM1 2.5C1 1.67157 1.67157 1 2.5 1H12.5C13.3284 1 14 1.67157 14 2.5V12.5C14 13.3284 13.3284 14 12.5 14H2.5C1.67157 14 1 13.3284 1 12.5V2.5ZM7.5 4C7.77614 4 8 3.77614 8 3.5C8 3.22386 7.77614 3 7.5 3C7.22386 3 7 3.22386 7 3.5C7 3.77614 7.22386 4 7.5 4ZM8 5.5C8 5.77614 7.77614 6 7.5 6C7.22386 6 7 5.77614 7 5.5C7 5.22386 7.22386 5 7.5 5C7.77614 5 8 5.22386 8 5.5ZM7.5 8C7.77614 8 8 7.77614 8 7.5C8 7.22386 7.77614 7 7.5 7C7.22386 7 7 7.22386 7 7.5C7 7.77614 7.22386 8 7.5 8ZM10 7.5C10 7.77614 9.77614 8 9.5 8C9.22386 8 9 7.77614 9 7.5C9 7.22386 9.22386 7 9.5 7C9.77614 7 10 7.22386 10 7.5ZM11.5 8C11.7761 8 12 7.77614 12 7.5C12 7.22386 11.7761 7 11.5 7C11.2239 7 11 7.22386 11 7.5C11 7.77614 11.2239 8 11.5 8Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))}),ts=["color"],ns=S(function(e,t){var n=e.color,o=n===void 0?"currentColor":n,r=$e(e,ts);return _("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),_("path",{d:"M3 9C3 6.5 4.5 4.25 7.5 1.5C10.5 4.25 12 6.5 12 9C12 11.4853 9.98528 13.5 7.5 13.5C5.01472 13.5 3 11.4853 3 9ZM10.9524 8.30307C9.67347 7.82121 8.2879 8.46208 6.98956 9.06259C5.9327 9.55142 4.93365 10.0135 4.09695 9.82153C4.03357 9.55804 4 9.28294 4 9C4 7.11203 5.02686 5.27195 7.5 2.87357C9.66837 4.97639 10.725 6.65004 10.9524 8.30307Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))}),os=["color"],rs=S(function(e,t){var n=e.color,o=n===void 0?"currentColor":n,r=$e(e,os);return _("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),_("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))}),is=["color"],cs=S(function(e,t){var n=e.color,o=n===void 0?"currentColor":n,r=$e(e,is);return _("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),_("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))}),as=["color"],ss=S(function(e,t){var n=e.color,o=n===void 0?"currentColor":n,r=$e(e,as);return _("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),_("path",{d:"M12.8536 2.85355C13.0488 2.65829 13.0488 2.34171 12.8536 2.14645C12.6583 1.95118 12.3417 1.95118 12.1464 2.14645L7.5 6.79289L2.85355 2.14645C2.65829 1.95118 2.34171 1.95118 2.14645 2.14645C1.95118 2.34171 1.95118 2.65829 2.14645 2.85355L6.79289 7.5L2.14645 12.1464C1.95118 12.3417 1.95118 12.6583 2.14645 12.8536C2.34171 13.0488 2.65829 13.0488 2.85355 12.8536L7.5 8.20711L12.1464 12.8536C12.3417 13.0488 12.6583 13.0488 12.8536 12.8536C13.0488 12.6583 13.0488 12.3417 12.8536 12.1464L8.20711 7.5L12.8536 2.85355Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))}),ls=["color"],us=S(function(e,t){var n=e.color,o=n===void 0?"currentColor":n,r=$e(e,ls);return _("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),_("path",{d:"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704ZM9.85358 5.14644C10.0488 5.3417 10.0488 5.65829 9.85358 5.85355L8.20713 7.49999L9.85358 9.14644C10.0488 9.3417 10.0488 9.65829 9.85358 9.85355C9.65832 10.0488 9.34173 10.0488 9.14647 9.85355L7.50002 8.2071L5.85358 9.85355C5.65832 10.0488 5.34173 10.0488 5.14647 9.85355C4.95121 9.65829 4.95121 9.3417 5.14647 9.14644L6.79292 7.49999L5.14647 5.85355C4.95121 5.65829 4.95121 5.3417 5.14647 5.14644C5.34173 4.95118 5.65832 4.95118 5.85358 5.14644L7.50002 6.79289L9.14647 5.14644C9.34173 4.95118 9.65832 4.95118 9.85358 5.14644Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))}),ds=["color"],fs=S(function(e,t){var n=e.color,o=n===void 0?"currentColor":n,r=$e(e,ds);return _("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),_("path",{d:"M2 2.5C2 2.22386 2.22386 2 2.5 2H5.5C5.77614 2 6 2.22386 6 2.5C6 2.77614 5.77614 3 5.5 3H3V5.5C3 5.77614 2.77614 6 2.5 6C2.22386 6 2 5.77614 2 5.5V2.5ZM9 2.5C9 2.22386 9.22386 2 9.5 2H12.5C12.7761 2 13 2.22386 13 2.5V5.5C13 5.77614 12.7761 6 12.5 6C12.2239 6 12 5.77614 12 5.5V3H9.5C9.22386 3 9 2.77614 9 2.5ZM2.5 9C2.77614 9 3 9.22386 3 9.5V12H5.5C5.77614 12 6 12.2239 6 12.5C6 12.7761 5.77614 13 5.5 13H2.5C2.22386 13 2 12.7761 2 12.5V9.5C2 9.22386 2.22386 9 2.5 9ZM12.5 9C12.7761 9 13 9.22386 13 9.5V12.5C13 12.7761 12.7761 13 12.5 13H9.5C9.22386 13 9 12.7761 9 12.5C9 12.2239 9.22386 12 9.5 12H12V9.5C12 9.22386 12.2239 9 12.5 9Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))}),ps=["color"],Vr=S(function(e,t){var n=e.color,o=n===void 0?"currentColor":n,r=$e(e,ps);return _("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),_("path",{d:"M7.07095 0.650238C6.67391 0.650238 6.32977 0.925096 6.24198 1.31231L6.0039 2.36247C5.6249 2.47269 5.26335 2.62363 4.92436 2.81013L4.01335 2.23585C3.67748 2.02413 3.23978 2.07312 2.95903 2.35386L2.35294 2.95996C2.0722 3.2407 2.0232 3.6784 2.23493 4.01427L2.80942 4.92561C2.62307 5.2645 2.47227 5.62594 2.36216 6.00481L1.31209 6.24287C0.924883 6.33065 0.650024 6.6748 0.650024 7.07183V7.92897C0.650024 8.32601 0.924883 8.67015 1.31209 8.75794L2.36228 8.99603C2.47246 9.375 2.62335 9.73652 2.80979 10.0755L2.2354 10.9867C2.02367 11.3225 2.07267 11.7602 2.35341 12.041L2.95951 12.6471C3.24025 12.9278 3.67795 12.9768 4.01382 12.7651L4.92506 12.1907C5.26384 12.377 5.62516 12.5278 6.0039 12.6379L6.24198 13.6881C6.32977 14.0753 6.67391 14.3502 7.07095 14.3502H7.92809C8.32512 14.3502 8.66927 14.0753 8.75705 13.6881L8.99505 12.6383C9.37411 12.5282 9.73573 12.3773 10.0748 12.1909L10.986 12.7653C11.3218 12.977 11.7595 12.928 12.0403 12.6473L12.6464 12.0412C12.9271 11.7604 12.9761 11.3227 12.7644 10.9869L12.1902 10.076C12.3768 9.73688 12.5278 9.37515 12.638 8.99596L13.6879 8.75794C14.0751 8.67015 14.35 8.32601 14.35 7.92897V7.07183C14.35 6.6748 14.0751 6.33065 13.6879 6.24287L12.6381 6.00488C12.528 5.62578 12.3771 5.26414 12.1906 4.92507L12.7648 4.01407C12.9766 3.6782 12.9276 3.2405 12.6468 2.95975L12.0407 2.35366C11.76 2.07292 11.3223 2.02392 10.9864 2.23565L10.0755 2.80989C9.73622 2.62328 9.37437 2.47229 8.99505 2.36209L8.75705 1.31231C8.66927 0.925096 8.32512 0.650238 7.92809 0.650238H7.07095ZM4.92053 3.81251C5.44724 3.44339 6.05665 3.18424 6.71543 3.06839L7.07095 1.50024H7.92809L8.28355 3.06816C8.94267 3.18387 9.5524 3.44302 10.0794 3.81224L11.4397 2.9547L12.0458 3.56079L11.1882 4.92117C11.5573 5.44798 11.8164 6.0575 11.9321 6.71638L13.5 7.07183V7.92897L11.932 8.28444C11.8162 8.94342 11.557 9.55301 11.1878 10.0798L12.0453 11.4402L11.4392 12.0462L10.0787 11.1886C9.55192 11.5576 8.94241 11.8166 8.28355 11.9323L7.92809 13.5002H7.07095L6.71543 11.932C6.0569 11.8162 5.44772 11.5572 4.92116 11.1883L3.56055 12.046L2.95445 11.4399L3.81213 10.0794C3.4431 9.55266 3.18403 8.94326 3.06825 8.2845L1.50002 7.92897V7.07183L3.06818 6.71632C3.18388 6.05765 3.44283 5.44833 3.81171 4.92165L2.95398 3.561L3.56008 2.95491L4.92053 3.81251ZM9.02496 7.50008C9.02496 8.34226 8.34223 9.02499 7.50005 9.02499C6.65786 9.02499 5.97513 8.34226 5.97513 7.50008C5.97513 6.65789 6.65786 5.97516 7.50005 5.97516C8.34223 5.97516 9.02496 6.65789 9.02496 7.50008ZM9.92496 7.50008C9.92496 8.83932 8.83929 9.92499 7.50005 9.92499C6.1608 9.92499 5.07513 8.83932 5.07513 7.50008C5.07513 6.16084 6.1608 5.07516 7.50005 5.07516C8.83929 5.07516 9.92496 6.16084 9.92496 7.50008Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))}),hs=["color"],gs=S(function(e,t){var n=e.color,o=n===void 0?"currentColor":n,r=$e(e,hs);return _("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),_("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:o,fillRule:"evenodd",clipRule:"evenodd"}))});const Wn=(e,t)=>e.title.toLowerCase().includes(t)?!0:e.children.some(n=>Wn(n,t));var vs=0;function x(e,t,n,o,r,i){var c,a,l={};for(a in t)a=="ref"?c=t[a]:l[a]=t[a];var u={type:e,props:l,key:n,ref:c,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--vs,__source:r,__self:i};if(typeof e=="function"&&(c=e.defaultProps))for(a in c)l[a]===void 0&&(l[a]=c[a]);return E.vnode&&E.vnode(u),u}function Wr(e){const[t,n]=I(!1),o=e.isChild??!1,r=c=>c===e.activeNavItem?!0:c.children.some(r);T(()=>{r(e.item)?n(!0):n(e.expanded??!1)},[e.expanded,e.activeNavItem,e.item]);const i=e.item.children.filter(c=>Wn(c,e.currentSearch));return x("li",{children:[x("button",{className:de("flex min-h-8 w-full items-center gap-1 rounded-none px-4 text-start transition-colors hover:bg-black/5 active:bg-black/10 dark:text-gray-100 dark:hover:bg-black/30 dark:active:bg-black/40",{"py-2 font-medium":!o||e.item.children.length,"py-1 pl-4":o,"bg-blue-500 text-white hover:bg-blue-400 dark:hover:bg-blue-400 dark:active:bg-blue-500":e.activeNavItem===e.item}),style:`padding-left: ${e.level*16}px`,onClick:()=>{if(e.item.children.length){if(t)return n(!1);n(!0)}return e.setActiveNavItem(e.item)},children:[e.item.children.length?x(G,{children:[x(cs,{className:de("icon -ml-1",{hidden:t})}),x(rs,{className:de("icon -ml-1",{hidden:!t})})]}):o?null:x("span",{className:"w-3"}),e.item.title]}),i.length>0&&t&&x("ul",{children:i.map(c=>x(Wr,{activeNavItem:e.activeNavItem,item:c,setActiveNavItem:e.setActiveNavItem,expanded:e.expanded,isChild:!0,level:e.level+1,currentSearch:e.currentSearch}))})]})}function ms(e){return x("div",{className:"relative flex items-center",children:[x(gs,{className:"absolute flex items-center w-5 h-5 text-gray-400 pointer-events-none left-4","aria-hidden":"true"}),x("input",{type:"search",className:"block w-full h-8 pl-10 pr-2 placeholder-gray-500 transition bg-white rounded-full ring-1 ring-gray-300 hover:bg-gray-50 hover:ring-gray-400 focus:outline-none focus:ring-blue-400 focus-visible:ring-2 dark:bg-gray-700 dark:text-white dark:ring-gray-500 dark:hover:bg-gray-700/75 dark:focus:ring-blue-400",placeholder:"Search","aria-label":"search",onInput:e.onInput})]})}function bs(e){const[t,n]=I(""),o=e.nav.filter(i=>Wn(i,t)),r=De();return x("nav",{className:de("flex min-w-[250px] flex-col gap-8 overflow-hidden bg-gray-100 bg-gradient-to-l from-gray-400/30 to-transparent to-35% transition-colors dark:bg-gray-800 dark:from-gray-900/40"),children:x("div",{className:de("grid grid-rows-[auto,1fr] h-full gap-6 transition-all duration-500 ease-out",{"opacity-100 delay-200":r.isNavBarVisible,"invisible -translate-x-2 opacity-0 delay-0":!r.isNavBarVisible}),children:[x("div",{className:"px-6 pt-6",children:x(ms,{onInput:i=>n(i.currentTarget.value.toLowerCase())})}),x("ul",{className:"flex flex-col gap-2 overflow-auto pb-6",children:o.map(i=>x(Wr,{activeNavItem:e.activeNavItem,item:i,setActiveNavItem:e.setActiveNavItem,expanded:t!=="",level:1,currentSearch:t}))})]})})}const jr="/parts-kit/config.json",Kr=Bn()(Hn(zr(e=>({configUrl:jr,setConfigUrl:t=>e(()=>({configUrl:t}))}),{name:"settings"})));function _s(){const e=De();return x("div",{className:"max-w-lg px-3 py-10 mx-auto space-y-3",children:[x("h1",{className:"text-xl font-bold",children:"👋 Welcome!"}),x("p",{children:'This is a demo of a "decoupled" parts kit. To get started, simply click a parts link on the left.'}),x("p",{children:["If you'd like to try this out with your own JSON. Click the"," ",x("button",{className:"text-blue-600 hover:underline",onClick:()=>e.setIsSettingsVisible(!0),children:[x(Vr,{className:"inline"})," settings button"]})," ","in the top menu bar."]}),x("p",{children:["Curious what a decoupled parts kit is?"," ",x("a",{className:"text-blue-600 underline",href:"https://github.com/vigetlabs/parts-kit",children:"📚 Check out the docs"}),"."]})]})}function ws(){const e=De();return x("button",{className:"btn-subtle btn-icon",title:e.isNavBarVisible?"Go Fullscreen [F]":"Exit Fullscreen [F]",onClick:()=>e.setIsNavBarVisible(!e.isNavBarVisible),children:e.isNavBarVisible?x(fs,{}):x(us,{})})}function ys(){const e=Vn();return x("button",{className:"btn-subtle btn-icon",title:"Toggle Theme [Shift + T]",onClick:()=>e.toggleMode(),children:x(ns,{})})}function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>$s(n,t))}function Z(...e){return z(qt(...e),e)}function xs(e,t){const n=Ue(t);function o(i){const{children:c,...a}=i,l=q(()=>a,Object.values(a));return _(n.Provider,{value:l},c)}function r(i){const c=nt(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return o.displayName=e+"Provider",[o,r]}function rt(e,t=[]){let n=[];function o(i,c){const a=Ue(c),l=n.length;n=[...n,c];function u(s){const{scope:g,children:d,...h}=s,p=(g==null?void 0:g[e][l])||a,b=q(()=>h,Object.values(h));return _(p.Provider,{value:b},d)}function f(s,g){const d=(g==null?void 0:g[e][l])||a,h=nt(d);if(h)return h;if(c!==void 0)return c;throw new Error(`\`${s}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,f]}const r=()=>{const i=n.map(c=>Ue(c));return function(a){const l=(a==null?void 0:a[e])||i;return q(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return r.scopeName=e,[o,Cs(r,...t)]}function Cs(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const c=o.reduce((a,{useScope:l,scopeName:u})=>{const s=l(i)[`__scope${u}`];return{...a,...s}},{});return q(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function oe(e){const t=D(e);return T(()=>{t.current=e}),q(()=>(...n)=>{var o;return(o=t.current)===null||o===void 0?void 0:o.call(t,...n)},[])}function Jt({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=Ss({defaultProp:t,onChange:n}),i=e!==void 0,c=i?e:o,a=oe(n),l=z(u=>{if(i){const s=typeof u=="function"?u(e):u;s!==e&&a(s)}else r(u)},[i,e,r,a]);return[c,l]}function Ss({defaultProp:e,onChange:t}){const n=I(e),[o]=n,r=D(o),i=oe(t);return T(()=>{r.current!==o&&(i(o),r.current=o)},[o,r,i]),n}const Je=S((e,t)=>{const{children:n,...o}=e,r=fe.toArray(n),i=r.find(Es);if(i){const c=i.props.children,a=r.map(l=>l===i?fe.count(c)>1?fe.only(null):be(c)?c.props.children:null:l);return _(Cn,k({},o,{ref:t}),be(c)?ot(c,void 0,a):null)}return _(Cn,k({},o,{ref:t}),n)});Je.displayName="Slot";const Cn=S((e,t)=>{const{children:n,...o}=e;return be(n)?ot(n,{...Os(o,n.props),ref:t?qt(t,n.ref):n.ref}):fe.count(n)>1?fe.only(null):null});Cn.displayName="SlotClone";const ks=({children:e})=>_(G,null,e);function Es(e){return be(e)&&e.type===ks}function Os(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...a)=>{i(...a),r(...a)}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}const Ps=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],K=Ps.reduce((e,t)=>{const n=S((o,r)=>{const{asChild:i,...c}=o,a=i?Je:t;return T(()=>{window[Symbol.for("radix-ui")]=!0},[]),_(a,k({},c,{ref:r}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Gr(e,t){e&&_t(()=>e.dispatchEvent(t))}function Yr(e){const t=e+"CollectionProvider",[n,o]=rt(t),[r,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:h,children:p}=d,b=ne.useRef(null),v=ne.useRef(new Map).current;return ne.createElement(r,{scope:h,itemMap:v,collectionRef:b},p)},a=e+"CollectionSlot",l=ne.forwardRef((d,h)=>{const{scope:p,children:b}=d,v=i(a,p),m=Z(h,v.collectionRef);return ne.createElement(Je,{ref:m},b)}),u=e+"CollectionItemSlot",f="data-radix-collection-item",s=ne.forwardRef((d,h)=>{const{scope:p,children:b,...v}=d,m=ne.useRef(null),w=Z(h,m),y=i(u,p);return ne.useEffect(()=>(y.itemMap.set(m,{ref:m,...v}),()=>void y.itemMap.delete(m))),ne.createElement(Je,{[f]:"",ref:w},b)});function g(d){const h=i(e+"CollectionConsumer",d);return ne.useCallback(()=>{const b=h.collectionRef.current;if(!b)return[];const v=Array.from(b.querySelectorAll(`[${f}]`));return Array.from(h.itemMap.values()).sort((y,$)=>v.indexOf(y.ref.current)-v.indexOf($.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:c,Slot:l,ItemSlot:s},g,o]}const Ds=Ue(void 0);function Zr(e){const t=nt(Ds);return e||t||"ltr"}function Ms(e,t=globalThis==null?void 0:globalThis.document){const n=oe(e);T(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o),()=>t.removeEventListener("keydown",o)},[n,t])}const Sn="dismissableLayer.update",Rs="dismissableLayer.pointerDownOutside",As="dismissableLayer.focusOutside";let ko;const Ts=Ue({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Xr=S((e,t)=>{var n;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:c,onInteractOutside:a,onDismiss:l,...u}=e,f=nt(Ts),[s,g]=I(null),d=(n=s==null?void 0:s.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,h]=I({}),p=Z(t,P=>g(P)),b=Array.from(f.layers),[v]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),m=b.indexOf(v),w=s?b.indexOf(s):-1,y=f.layersWithOutsidePointerEventsDisabled.size>0,$=w>=m,O=Is(P=>{const M=P.target,L=[...f.branches].some(F=>F.contains(M));!$||L||(i==null||i(P),a==null||a(P),P.defaultPrevented||l==null||l())},d),C=Ns(P=>{const M=P.target;[...f.branches].some(F=>F.contains(M))||(c==null||c(P),a==null||a(P),P.defaultPrevented||l==null||l())},d);return Ms(P=>{w===f.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&l&&(P.preventDefault(),l()))},d),T(()=>{if(s)return o&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(ko=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(s)),f.layers.add(s),Eo(),()=>{o&&f.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=ko)}},[s,d,o,f]),T(()=>()=>{s&&(f.layers.delete(s),f.layersWithOutsidePointerEventsDisabled.delete(s),Eo())},[s,f]),T(()=>{const P=()=>h({});return document.addEventListener(Sn,P),()=>document.removeEventListener(Sn,P)},[]),_(K.div,k({},u,{ref:p,style:{pointerEvents:y?$?"auto":"none":void 0,...e.style},onFocusCapture:A(e.onFocusCapture,C.onFocusCapture),onBlurCapture:A(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:A(e.onPointerDownCapture,O.onPointerDownCapture)}))});function Is(e,t=globalThis==null?void 0:globalThis.document){const n=oe(e),o=D(!1),r=D(()=>{});return T(()=>{const i=a=>{if(a.target&&!o.current){let f=function(){qr(Rs,n,u,{discrete:!0})};var l=f;const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=f,t.addEventListener("click",r.current,{once:!0})):f()}o.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function Ns(e,t=globalThis==null?void 0:globalThis.document){const n=oe(e),o=D(!1);return T(()=>{const r=i=>{i.target&&!o.current&&qr(As,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Eo(){const e=new CustomEvent(Sn);document.dispatchEvent(e)}function qr(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Gr(r,i):r.dispatchEvent(i)}let ln=0;function Jr(){T(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Oo()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Oo()),ln++,()=>{ln===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),ln--}},[])}function Oo(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const un="focusScope.autoFocusOnMount",dn="focusScope.autoFocusOnUnmount",Po={bubbles:!1,cancelable:!0},Qr=S((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...c}=e,[a,l]=I(null),u=oe(r),f=oe(i),s=D(null),g=Z(t,p=>l(p)),d=D({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;T(()=>{if(o){let m=function(O){if(d.paused||!a)return;const C=O.target;a.contains(C)?s.current=C:Se(s.current,{select:!0})},w=function(O){if(d.paused||!a)return;const C=O.relatedTarget;C!==null&&(a.contains(C)||Se(s.current,{select:!0}))},y=function(O){const C=document.activeElement;for(const P of O)P.removedNodes.length>0&&(a!=null&&a.contains(C)||Se(a))};var p=m,b=w,v=y;document.addEventListener("focusin",m),document.addEventListener("focusout",w);const $=new MutationObserver(y);return a&&$.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",w),$.disconnect()}}},[o,a,d.paused]),T(()=>{if(a){Mo.add(d);const p=document.activeElement;if(!a.contains(p)){const v=new CustomEvent(un,Po);a.addEventListener(un,u),a.dispatchEvent(v),v.defaultPrevented||(Ls(Hs(ei(a)),{select:!0}),document.activeElement===p&&Se(a))}return()=>{a.removeEventListener(un,u),setTimeout(()=>{const v=new CustomEvent(dn,Po);a.addEventListener(dn,f),a.dispatchEvent(v),v.defaultPrevented||Se(p??document.body,{select:!0}),a.removeEventListener(dn,f),Mo.remove(d)},0)}}},[a,u,f,d]);const h=z(p=>{if(!n&&!o||d.paused)return;const b=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,v=document.activeElement;if(b&&v){const m=p.currentTarget,[w,y]=Fs(m);w&&y?!p.shiftKey&&v===y?(p.preventDefault(),n&&Se(w,{select:!0})):p.shiftKey&&v===w&&(p.preventDefault(),n&&Se(y,{select:!0})):v===m&&p.preventDefault()}},[n,o,d.paused]);return _(K.div,k({tabIndex:-1},c,{ref:g,onKeyDown:h}))});function Ls(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Se(o,{select:t}),document.activeElement!==n)return}function Fs(e){const t=ei(e),n=Do(t,e),o=Do(t.reverse(),e);return[n,o]}function ei(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Do(e,t){for(const n of e)if(!Us(n,{upTo:t}))return n}function Us(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function zs(e){return e instanceof HTMLInputElement&&"select"in e}function Se(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&zs(e)&&t&&e.select()}}const Mo=Bs();function Bs(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ro(e,t),e.unshift(t)},remove(t){var n;e=Ro(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Ro(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function Hs(e){return e.filter(t=>t.tagName!=="A")}const Qe=globalThis!=null&&globalThis.document?He:()=>{},Vs=Rr["useId".toString()]||(()=>{});let Ws=0;function ke(e){const[t,n]=I(Vs());return Qe(()=>{e||n(o=>o??String(Ws++))},[e]),e||(t?`radix-${t}`:"")}const js=["top","right","bottom","left"],Ee=Math.min,ee=Math.max,Vt=Math.round,Et=Math.floor,Oe=e=>({x:e,y:e}),Ks={left:"right",right:"left",bottom:"top",top:"bottom"},Gs={start:"end",end:"start"};function kn(e,t,n){return ee(e,Ee(t,n))}function _e(e,t){return typeof e=="function"?e(t):e}function we(e){return e.split("-")[0]}function it(e){return e.split("-")[1]}function jn(e){return e==="x"?"y":"x"}function Kn(e){return e==="y"?"height":"width"}function ct(e){return["top","bottom"].includes(we(e))?"y":"x"}function Gn(e){return jn(ct(e))}function Ys(e,t,n){n===void 0&&(n=!1);const o=it(e),r=Gn(e),i=Kn(r);let c=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(c=Wt(c)),[c,Wt(c)]}function Zs(e){const t=Wt(e);return[En(e),t,En(t)]}function En(e){return e.replace(/start|end/g,t=>Gs[t])}function Xs(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],c=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:c;default:return[]}}function qs(e,t,n,o){const r=it(e);let i=Xs(we(e),n==="start",o);return r&&(i=i.map(c=>c+"-"+r),t&&(i=i.concat(i.map(En)))),i}function Wt(e){return e.replace(/left|right|bottom|top/g,t=>Ks[t])}function Js(e){return{top:0,right:0,bottom:0,left:0,...e}}function ti(e){return typeof e!="number"?Js(e):{top:e,right:e,bottom:e,left:e}}function jt(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Ao(e,t,n){let{reference:o,floating:r}=e;const i=ct(t),c=Gn(t),a=Kn(c),l=we(t),u=i==="y",f=o.x+o.width/2-r.width/2,s=o.y+o.height/2-r.height/2,g=o[a]/2-r[a]/2;let d;switch(l){case"top":d={x:f,y:o.y-r.height};break;case"bottom":d={x:f,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:s};break;case"left":d={x:o.x-r.width,y:s};break;default:d={x:o.x,y:o.y}}switch(it(t)){case"start":d[c]-=g*(n&&u?-1:1);break;case"end":d[c]+=g*(n&&u?-1:1);break}return d}const Qs=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:c}=n,a=i.filter(Boolean),l=await(c.isRTL==null?void 0:c.isRTL(t));let u=await c.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:s}=Ao(u,o,l),g=o,d={},h=0;for(let p=0;p({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:c,elements:a,middlewareData:l}=t,{element:u,padding:f=0}=_e(e,t)||{};if(u==null)return{};const s=ti(f),g={x:n,y:o},d=Gn(r),h=Kn(d),p=await c.getDimensions(u),b=d==="y",v=b?"top":"left",m=b?"bottom":"right",w=b?"clientHeight":"clientWidth",y=i.reference[h]+i.reference[d]-g[d]-i.floating[h],$=g[d]-i.reference[d],O=await(c.getOffsetParent==null?void 0:c.getOffsetParent(u));let C=O?O[w]:0;(!C||!await(c.isElement==null?void 0:c.isElement(O)))&&(C=a.floating[w]||i.floating[h]);const P=y/2-$/2,M=C/2-p[h]/2-1,L=Ee(s[v],M),F=Ee(s[m],M),j=L,V=C-p[h]-F,N=C/2-p[h]/2+P,H=kn(j,N,V),U=!l.arrow&&it(r)!=null&&N!=H&&i.reference[h]/2-(NF<=0)){var P,M;const F=(((P=r.flip)==null?void 0:P.index)||0)+1,j=y[F];if(j)return{data:{index:F,overflows:C},reset:{placement:j}};let V=(M=C.filter(N=>N.overflows[0]<=0).sort((N,H)=>N.overflows[1]-H.overflows[1])[0])==null?void 0:M.placement;if(!V)switch(g){case"bestFit":{var L;const N=(L=C.map(H=>[H.placement,H.overflows.filter(U=>U>0).reduce((U,J)=>U+J,0)]).sort((H,U)=>H[1]-U[1])[0])==null?void 0:L[0];N&&(V=N);break}case"initialPlacement":V=c;break}if(o!==V)return{reset:{placement:V}}}return{}}}};function Io(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function No(e){return js.some(t=>e[t]>=0)}const tl=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=_e(e,t);switch(o){case"referenceHidden":{const i=await pt(t,{...r,elementContext:"reference"}),c=Io(i,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:No(c)}}}case"escaped":{const i=await pt(t,{...r,altBoundary:!0}),c=Io(i,n.floating);return{data:{escapedOffsets:c,escaped:No(c)}}}default:return{}}}}};async function nl(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),c=we(n),a=it(n),l=ct(n)==="y",u=["left","top"].includes(c)?-1:1,f=i&&l?-1:1,s=_e(t,e);let{mainAxis:g,crossAxis:d,alignmentAxis:h}=typeof s=="number"?{mainAxis:s,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...s};return a&&typeof h=="number"&&(d=a==="end"?h*-1:h),l?{x:d*f,y:g*u}:{x:g*u,y:d*f}}const ol=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,r=await nl(t,e);return{x:n+r.x,y:o+r.y,data:r}}}},rl=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:c=!1,limiter:a={fn:b=>{let{x:v,y:m}=b;return{x:v,y:m}}},...l}=_e(e,t),u={x:n,y:o},f=await pt(t,l),s=ct(we(r)),g=jn(s);let d=u[g],h=u[s];if(i){const b=g==="y"?"top":"left",v=g==="y"?"bottom":"right",m=d+f[b],w=d-f[v];d=kn(m,d,w)}if(c){const b=s==="y"?"top":"left",v=s==="y"?"bottom":"right",m=h+f[b],w=h-f[v];h=kn(m,h,w)}const p=a.fn({...t,[g]:d,[s]:h});return{...p,data:{x:p.x-n,y:p.y-o}}}}},il=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:c}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=_e(e,t),f={x:n,y:o},s=ct(r),g=jn(s);let d=f[g],h=f[s];const p=_e(a,t),b=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const w=g==="y"?"height":"width",y=i.reference[g]-i.floating[w]+b.mainAxis,$=i.reference[g]+i.reference[w]-b.mainAxis;d$&&(d=$)}if(u){var v,m;const w=g==="y"?"width":"height",y=["top","left"].includes(we(r)),$=i.reference[s]-i.floating[w]+(y&&((v=c.offset)==null?void 0:v[s])||0)+(y?0:b.crossAxis),O=i.reference[s]+i.reference[w]+(y?0:((m=c.offset)==null?void 0:m[s])||0)-(y?b.crossAxis:0);h<$?h=$:h>O&&(h=O)}return{[g]:d,[s]:h}}}},cl=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:i}=t,{apply:c=()=>{},...a}=_e(e,t),l=await pt(t,a),u=we(n),f=it(n),s=ct(n)==="y",{width:g,height:d}=o.floating;let h,p;u==="top"||u==="bottom"?(h=u,p=f===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(p=u,h=f==="end"?"top":"bottom");const b=d-l[h],v=g-l[p],m=!t.middlewareData.shift;let w=b,y=v;if(s){const O=g-l.left-l.right;y=f||m?Ee(v,O):O}else{const O=d-l.top-l.bottom;w=f||m?Ee(b,O):O}if(m&&!f){const O=ee(l.left,0),C=ee(l.right,0),P=ee(l.top,0),M=ee(l.bottom,0);s?y=g-2*(O!==0||C!==0?O+C:ee(l.left,l.right)):w=d-2*(P!==0||M!==0?P+M:ee(l.top,l.bottom))}await c({...t,availableWidth:y,availableHeight:w});const $=await r.getDimensions(i.floating);return g!==$.width||d!==$.height?{reset:{rects:!0}}:{}}}};function Pe(e){return ni(e)?(e.nodeName||"").toLowerCase():"#document"}function te(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xe(e){var t;return(t=(ni(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ni(e){return e instanceof Node||e instanceof te(e).Node}function ye(e){return e instanceof Element||e instanceof te(e).Element}function pe(e){return e instanceof HTMLElement||e instanceof te(e).HTMLElement}function Lo(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof te(e).ShadowRoot}function wt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=re(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function al(e){return["table","td","th"].includes(Pe(e))}function Yn(e){const t=Zn(),n=re(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function sl(e){let t=et(e);for(;pe(t)&&!Qt(t);){if(Yn(t))return t;t=et(t)}return null}function Zn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Qt(e){return["html","body","#document"].includes(Pe(e))}function re(e){return te(e).getComputedStyle(e)}function en(e){return ye(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function et(e){if(Pe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Lo(e)&&e.host||xe(e);return Lo(t)?t.host:t}function oi(e){const t=et(e);return Qt(t)?e.ownerDocument?e.ownerDocument.body:e.body:pe(t)&&wt(t)?t:oi(t)}function ht(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=oi(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),c=te(r);return i?t.concat(c,c.visualViewport||[],wt(r)?r:[],c.frameElement&&n?ht(c.frameElement):[]):t.concat(r,ht(r))}function ri(e){const t=re(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=pe(e),i=r?e.offsetWidth:n,c=r?e.offsetHeight:o,a=Vt(n)!==i||Vt(o)!==c;return a&&(n=i,o=c),{width:n,height:o,$:a}}function Xn(e){return ye(e)?e:e.contextElement}function Ze(e){const t=Xn(e);if(!pe(t))return Oe(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=ri(t);let c=(i?Vt(n.width):n.width)/o,a=(i?Vt(n.height):n.height)/r;return(!c||!Number.isFinite(c))&&(c=1),(!a||!Number.isFinite(a))&&(a=1),{x:c,y:a}}const ll=Oe(0);function ii(e){const t=te(e);return!Zn()||!t.visualViewport?ll:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ul(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==te(e)?!1:t}function ze(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=Xn(e);let c=Oe(1);t&&(o?ye(o)&&(c=Ze(o)):c=Ze(e));const a=ul(i,n,o)?ii(i):Oe(0);let l=(r.left+a.x)/c.x,u=(r.top+a.y)/c.y,f=r.width/c.x,s=r.height/c.y;if(i){const g=te(i),d=o&&ye(o)?te(o):o;let h=g.frameElement;for(;h&&o&&d!==g;){const p=Ze(h),b=h.getBoundingClientRect(),v=re(h),m=b.left+(h.clientLeft+parseFloat(v.paddingLeft))*p.x,w=b.top+(h.clientTop+parseFloat(v.paddingTop))*p.y;l*=p.x,u*=p.y,f*=p.x,s*=p.y,l+=m,u+=w,h=te(h).frameElement}}return jt({width:f,height:s,x:l,y:u})}function dl(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=pe(n),i=xe(n);if(n===i)return t;let c={scrollLeft:0,scrollTop:0},a=Oe(1);const l=Oe(0);if((r||!r&&o!=="fixed")&&((Pe(n)!=="body"||wt(i))&&(c=en(n)),pe(n))){const u=ze(n);a=Ze(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-c.scrollLeft*a.x+l.x,y:t.y*a.y-c.scrollTop*a.y+l.y}}function fl(e){return Array.from(e.getClientRects())}function ci(e){return ze(xe(e)).left+en(e).scrollLeft}function pl(e){const t=xe(e),n=en(e),o=e.ownerDocument.body,r=ee(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=ee(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let c=-n.scrollLeft+ci(e);const a=-n.scrollTop;return re(o).direction==="rtl"&&(c+=ee(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:c,y:a}}function hl(e,t){const n=te(e),o=xe(e),r=n.visualViewport;let i=o.clientWidth,c=o.clientHeight,a=0,l=0;if(r){i=r.width,c=r.height;const u=Zn();(!u||u&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:c,x:a,y:l}}function gl(e,t){const n=ze(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=pe(e)?Ze(e):Oe(1),c=e.clientWidth*i.x,a=e.clientHeight*i.y,l=r*i.x,u=o*i.y;return{width:c,height:a,x:l,y:u}}function Fo(e,t,n){let o;if(t==="viewport")o=hl(e,n);else if(t==="document")o=pl(xe(e));else if(ye(t))o=gl(t,n);else{const r=ii(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return jt(o)}function ai(e,t){const n=et(e);return n===t||!ye(n)||Qt(n)?!1:re(n).position==="fixed"||ai(n,t)}function vl(e,t){const n=t.get(e);if(n)return n;let o=ht(e,[],!1).filter(a=>ye(a)&&Pe(a)!=="body"),r=null;const i=re(e).position==="fixed";let c=i?et(e):e;for(;ye(c)&&!Qt(c);){const a=re(c),l=Yn(c);!l&&a.position==="fixed"&&(r=null),(i?!l&&!r:!l&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||wt(c)&&!l&&ai(e,c))?o=o.filter(f=>f!==c):r=a,c=et(c)}return t.set(e,o),o}function ml(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const c=[...n==="clippingAncestors"?vl(t,this._c):[].concat(n),o],a=c[0],l=c.reduce((u,f)=>{const s=Fo(t,f,r);return u.top=ee(s.top,u.top),u.right=Ee(s.right,u.right),u.bottom=Ee(s.bottom,u.bottom),u.left=ee(s.left,u.left),u},Fo(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function bl(e){return ri(e)}function _l(e,t,n){const o=pe(t),r=xe(t),i=n==="fixed",c=ze(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Oe(0);if(o||!o&&!i)if((Pe(t)!=="body"||wt(r))&&(a=en(t)),o){const u=ze(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else r&&(l.x=ci(r));return{x:c.left+a.scrollLeft-l.x,y:c.top+a.scrollTop-l.y,width:c.width,height:c.height}}function Uo(e,t){return!pe(e)||re(e).position==="fixed"?null:t?t(e):e.offsetParent}function si(e,t){const n=te(e);if(!pe(e))return n;let o=Uo(e,t);for(;o&&al(o)&&re(o).position==="static";)o=Uo(o,t);return o&&(Pe(o)==="html"||Pe(o)==="body"&&re(o).position==="static"&&!Yn(o))?n:o||sl(e)||n}const wl=async function(e){let{reference:t,floating:n,strategy:o}=e;const r=this.getOffsetParent||si,i=this.getDimensions;return{reference:_l(t,await r(n),o),floating:{x:0,y:0,...await i(n)}}};function yl(e){return re(e).direction==="rtl"}const $l={convertOffsetParentRelativeRectToViewportRelativeRect:dl,getDocumentElement:xe,getClippingRect:ml,getOffsetParent:si,getElementRects:wl,getClientRects:fl,getDimensions:bl,getScale:Ze,isElement:ye,isRTL:yl};function xl(e,t){let n=null,o;const r=xe(e);function i(){clearTimeout(o),n&&n.disconnect(),n=null}function c(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const{left:u,top:f,width:s,height:g}=e.getBoundingClientRect();if(a||t(),!s||!g)return;const d=Et(f),h=Et(r.clientWidth-(u+s)),p=Et(r.clientHeight-(f+g)),b=Et(u),m={rootMargin:-d+"px "+-h+"px "+-p+"px "+-b+"px",threshold:ee(0,Ee(1,l))||1};let w=!0;function y($){const O=$[0].intersectionRatio;if(O!==l){if(!w)return c();O?c(!1,O):o=setTimeout(()=>{c(!1,1e-7)},100)}w=!1}try{n=new IntersectionObserver(y,{...m,root:r.ownerDocument})}catch{n=new IntersectionObserver(y,m)}n.observe(e)}return c(!0),i}function Cl(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=Xn(e),f=r||i?[...u?ht(u):[],...ht(t)]:[];f.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const s=u&&a?xl(u,n):null;let g=-1,d=null;c&&(d=new ResizeObserver(v=>{let[m]=v;m&&m.target===u&&d&&(d.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{d&&d.observe(t)})),n()}),u&&!l&&d.observe(u),d.observe(t));let h,p=l?ze(e):null;l&&b();function b(){const v=ze(e);p&&(v.x!==p.x||v.y!==p.y||v.width!==p.width||v.height!==p.height)&&n(),p=v,h=requestAnimationFrame(b)}return n(),()=>{f.forEach(v=>{r&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),s&&s(),d&&d.disconnect(),d=null,l&&cancelAnimationFrame(h)}}const Sl=(e,t,n)=>{const o=new Map,r={platform:$l,...n},i={...r.platform,_c:o};return Qs(e,t,{...r,platform:i})},kl=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?To({element:o.current,padding:r}).fn(n):{}:o?To({element:o,padding:r}).fn(n):{}}}};var Nt=typeof document<"u"?He:T;function Kt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(o=n;o--!==0;)if(!Kt(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!Kt(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function li(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function zo(e,t){const n=li(e);return Math.round(t*n)/n}function Bo(e){const t=D(e);return Nt(()=>{t.current=e}),t}function El(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:c}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[f,s]=I({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,d]=I(o);Kt(g,o)||d(o);const[h,p]=I(null),[b,v]=I(null),m=z(U=>{U!=O.current&&(O.current=U,p(U))},[p]),w=z(U=>{U!==C.current&&(C.current=U,v(U))},[v]),y=i||h,$=c||b,O=D(null),C=D(null),P=D(f),M=Bo(l),L=Bo(r),F=z(()=>{if(!O.current||!C.current)return;const U={placement:t,strategy:n,middleware:g};L.current&&(U.platform=L.current),Sl(O.current,C.current,U).then(J=>{const Y={...J,isPositioned:!0};j.current&&!Kt(P.current,Y)&&(P.current=Y,_t(()=>{s(Y)}))})},[g,t,n,L]);Nt(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,s(U=>({...U,isPositioned:!1})))},[u]);const j=D(!1);Nt(()=>(j.current=!0,()=>{j.current=!1}),[]),Nt(()=>{if(y&&(O.current=y),$&&(C.current=$),y&&$){if(M.current)return M.current(y,$,F);F()}},[y,$,F,M]);const V=q(()=>({reference:O,floating:C,setReference:m,setFloating:w}),[m,w]),N=q(()=>({reference:y,floating:$}),[y,$]),H=q(()=>{const U={position:n,left:0,top:0};if(!N.floating)return U;const J=zo(N.floating,f.x),Y=zo(N.floating,f.y);return a?{...U,transform:"translate("+J+"px, "+Y+"px)",...li(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:J,top:Y}},[n,a,N.floating,f.x,f.y]);return q(()=>({...f,update:F,refs:V,elements:N,floatingStyles:H}),[f,F,V,N,H])}const Ol=S((e,t)=>{const{children:n,width:o=10,height:r=5,...i}=e;return _(K.svg,k({},i,{ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:_("polygon",{points:"0,0 30,0 15,10"}))}),Pl=Ol;function Dl(e){const[t,n]=I(void 0);return Qe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let c,a;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;c=u.inlineSize,a=u.blockSize}else c=e.offsetWidth,a=e.offsetHeight;n({width:c,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}const ui="Popper",[di,fi]=rt(ui),[Ml,pi]=di(ui),Rl=e=>{const{__scopePopper:t,children:n}=e,[o,r]=I(null);return _(Ml,{scope:t,anchor:o,onAnchorChange:r},n)},Al="PopperAnchor",Tl=S((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,i=pi(Al,n),c=D(null),a=Z(t,c);return T(()=>{i.onAnchorChange((o==null?void 0:o.current)||c.current)}),o?null:_(K.div,k({},r,{ref:a}))}),hi="PopperContent",[Il,Nl]=di(hi),Ll=S((e,t)=>{var n,o,r,i,c,a,l,u;const{__scopePopper:f,side:s="bottom",sideOffset:g=0,align:d="center",alignOffset:h=0,arrowPadding:p=0,collisionBoundary:b=[],collisionPadding:v=0,sticky:m="partial",hideWhenDetached:w=!1,avoidCollisions:y=!0,onPlaced:$,...O}=e,C=pi(hi,f),[P,M]=I(null),L=Z(t,on=>M(on)),[F,j]=I(null),V=Dl(F),N=(n=V==null?void 0:V.width)!==null&&n!==void 0?n:0,H=(o=V==null?void 0:V.height)!==null&&o!==void 0?o:0,U=s+(d!=="center"?"-"+d:""),J=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},Y=Array.isArray(b)?b:[b],R=Y.length>0,W={padding:J,boundary:Y.filter(Bl),altBoundary:R},{refs:Q,floatingStyles:le,placement:Ae,isPositioned:Ce,middlewareData:he}=El({strategy:"fixed",placement:U,whileElementsMounted:Cl,elements:{reference:C.anchor},middleware:[ol({mainAxis:g+H,alignmentAxis:h}),y&&rl({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?il():void 0,...W}),y&&el({...W}),cl({...W,apply:({elements:on,rects:Uc,availableWidth:zc,availableHeight:Bc})=>{const{width:Hc,height:Vc}=Uc.reference,Ct=on.floating.style;Ct.setProperty("--radix-popper-available-width",`${zc}px`),Ct.setProperty("--radix-popper-available-height",`${Bc}px`),Ct.setProperty("--radix-popper-anchor-width",`${Hc}px`),Ct.setProperty("--radix-popper-anchor-height",`${Vc}px`)}}),F&&kl({element:F,padding:p}),Hl({arrowWidth:N,arrowHeight:H}),w&&tl({strategy:"referenceHidden"})]}),[Te,Ie]=gi(Ae),Ne=oe($);Qe(()=>{Ce&&(Ne==null||Ne())},[Ce,Ne]);const ie=(r=he.arrow)===null||r===void 0?void 0:r.x,xt=(i=he.arrow)===null||i===void 0?void 0:i.y,Nc=((c=he.arrow)===null||c===void 0?void 0:c.centerOffset)!==0,[Lc,Fc]=I();return Qe(()=>{P&&Fc(window.getComputedStyle(P).zIndex)},[P]),_("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...le,transform:Ce?le.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Lc,"--radix-popper-transform-origin":[(a=he.transformOrigin)===null||a===void 0?void 0:a.x,(l=he.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},_(Il,{scope:f,placedSide:Te,onArrowChange:j,arrowX:ie,arrowY:xt,shouldHideArrow:Nc},_(K.div,k({"data-side":Te,"data-align":Ie},O,{ref:L,style:{...O.style,animation:Ce?void 0:"none",opacity:(u=he.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))}),Fl="PopperArrow",Ul={top:"bottom",right:"left",bottom:"top",left:"right"},zl=S(function(t,n){const{__scopePopper:o,...r}=t,i=Nl(Fl,o),c=Ul[i.placedSide];return _("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},_(Pl,k({},r,{ref:n,style:{...r.style,display:"block"}})))});function Bl(e){return e!==null}const Hl=e=>({name:"transformOrigin",options:e,fn(t){var n,o,r,i,c;const{placement:a,rects:l,middlewareData:u}=t,s=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,g=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[h,p]=gi(a),b={start:"0%",center:"50%",end:"100%"}[p],v=((o=(r=u.arrow)===null||r===void 0?void 0:r.x)!==null&&o!==void 0?o:0)+g/2,m=((i=(c=u.arrow)===null||c===void 0?void 0:c.y)!==null&&i!==void 0?i:0)+d/2;let w="",y="";return h==="bottom"?(w=s?b:`${v}px`,y=`${-d}px`):h==="top"?(w=s?b:`${v}px`,y=`${l.floating.height+d}px`):h==="right"?(w=`${-d}px`,y=s?b:`${m}px`):h==="left"&&(w=`${l.floating.width+d}px`,y=s?b:`${m}px`),{data:{x:w,y}}}});function gi(e){const[t,n="center"]=e.split("-");return[t,n]}const vi=Rl,Vl=Tl,Wl=Ll,jl=zl,mi=S((e,t)=>{var n;const{container:o=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...r}=e;return o?ne.createPortal(_(K.div,k({},r,{ref:t})),o):null});function Kl(e,t){return Zt((n,o)=>{const r=t[n][o];return r??n},e)}const Me=e=>{const{present:t,children:n}=e,o=Gl(t),r=typeof n=="function"?n({present:o.isPresent}):fe.only(n),i=Z(o.ref,r.ref);return typeof n=="function"||o.isPresent?ot(r,{ref:i}):null};Me.displayName="Presence";function Gl(e){const[t,n]=I(),o=D({}),r=D(e),i=D("none"),c=e?"mounted":"unmounted",[a,l]=Kl(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return T(()=>{const u=Ot(o.current);i.current=a==="mounted"?u:"none"},[a]),Qe(()=>{const u=o.current,f=r.current;if(f!==e){const g=i.current,d=Ot(u);e?l("MOUNT"):d==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(f&&g!==d?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),Qe(()=>{if(t){const u=s=>{const d=Ot(o.current).includes(s.animationName);s.target===t&&d&&_t(()=>l("ANIMATION_END"))},f=s=>{s.target===t&&(i.current=Ot(o.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:z(u=>{u&&(o.current=getComputedStyle(u)),n(u)},[])}}function Ot(e){return(e==null?void 0:e.animationName)||"none"}const fn="rovingFocusGroup.onEntryFocus",Yl={bubbles:!1,cancelable:!0},qn="RovingFocusGroup",[On,bi,Zl]=Yr(qn),[Xl,_i]=rt(qn,[Zl]),[ql,Jl]=Xl(qn),Ql=S((e,t)=>_(On.Provider,{scope:e.__scopeRovingFocusGroup},_(On.Slot,{scope:e.__scopeRovingFocusGroup},_(eu,k({},e,{ref:t}))))),eu=S((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:i,currentTabStopId:c,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:u,...f}=e,s=D(null),g=Z(t,s),d=Zr(i),[h=null,p]=Jt({prop:c,defaultProp:a,onChange:l}),[b,v]=I(!1),m=oe(u),w=bi(n),y=D(!1),[$,O]=I(0);return T(()=>{const C=s.current;if(C)return C.addEventListener(fn,m),()=>C.removeEventListener(fn,m)},[m]),_(ql,{scope:n,orientation:o,dir:d,loop:r,currentTabStopId:h,onItemFocus:z(C=>p(C),[p]),onItemShiftTab:z(()=>v(!0),[]),onFocusableItemAdd:z(()=>O(C=>C+1),[]),onFocusableItemRemove:z(()=>O(C=>C-1),[])},_(K.div,k({tabIndex:b||$===0?-1:0,"data-orientation":o},f,{ref:g,style:{outline:"none",...e.style},onMouseDown:A(e.onMouseDown,()=>{y.current=!0}),onFocus:A(e.onFocus,C=>{const P=!y.current;if(C.target===C.currentTarget&&P&&!b){const M=new CustomEvent(fn,Yl);if(C.currentTarget.dispatchEvent(M),!M.defaultPrevented){const L=w().filter(H=>H.focusable),F=L.find(H=>H.active),j=L.find(H=>H.id===h),N=[F,j,...L].filter(Boolean).map(H=>H.ref.current);wi(N)}}y.current=!1}),onBlur:A(e.onBlur,()=>v(!1))})))}),tu="RovingFocusGroupItem",nu=S((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:i,...c}=e,a=ke(),l=i||a,u=Jl(tu,n),f=u.currentTabStopId===l,s=bi(n),{onFocusableItemAdd:g,onFocusableItemRemove:d}=u;return T(()=>{if(o)return g(),()=>d()},[o,g,d]),_(On.ItemSlot,{scope:n,id:l,focusable:o,active:r},_(K.span,k({tabIndex:f?0:-1,"data-orientation":u.orientation},c,{ref:t,onMouseDown:A(e.onMouseDown,h=>{o?u.onItemFocus(l):h.preventDefault()}),onFocus:A(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:A(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){u.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const p=iu(h,u.orientation,u.dir);if(p!==void 0){h.preventDefault();let v=s().filter(m=>m.focusable).map(m=>m.ref.current);if(p==="last")v.reverse();else if(p==="prev"||p==="next"){p==="prev"&&v.reverse();const m=v.indexOf(h.currentTarget);v=u.loop?cu(v,m+1):v.slice(m+1)}setTimeout(()=>wi(v))}})})))}),ou={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ru(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function iu(e,t,n){const o=ru(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return ou[o]}function wi(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function cu(e,t){return e.map((n,o)=>e[(t+o)%e.length])}const au=Ql,su=nu;var lu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},We=new WeakMap,Pt=new WeakMap,Dt={},pn=0,yi=function(e){return e&&(e.host||yi(e.parentNode))},uu=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=yi(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},du=function(e,t,n,o){var r=uu(t,Array.isArray(e)?e:[e]);Dt[n]||(Dt[n]=new WeakMap);var i=Dt[n],c=[],a=new Set,l=new Set(r),u=function(s){!s||a.has(s)||(a.add(s),u(s.parentNode))};r.forEach(u);var f=function(s){!s||l.has(s)||Array.prototype.forEach.call(s.children,function(g){if(a.has(g))f(g);else{var d=g.getAttribute(o),h=d!==null&&d!=="false",p=(We.get(g)||0)+1,b=(i.get(g)||0)+1;We.set(g,p),i.set(g,b),c.push(g),p===1&&h&&Pt.set(g,!0),b===1&&g.setAttribute(n,"true"),h||g.setAttribute(o,"true")}})};return f(t),a.clear(),pn++,function(){c.forEach(function(s){var g=We.get(s)-1,d=i.get(s)-1;We.set(s,g),i.set(s,d),g||(Pt.has(s)||s.removeAttribute(o),Pt.delete(s)),d||s.removeAttribute(n)}),pn--,pn||(We=new WeakMap,We=new WeakMap,Pt=new WeakMap,Dt={})}},$i=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=t||lu(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live]"))),du(o,r,n,"aria-hidden")):function(){return null}},ue=function(){return ue=Object.assign||function(t){for(var n,o=1,r=arguments.length;o"u")return Ou;var t=Pu(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},Mu=ki(),Ru=function(e,t,n,o){var r=e.left,i=e.top,c=e.right,a=e.gap;return n===void 0&&(n="margin"),` + .`.concat(pu,` { + overflow: hidden `).concat(o,`; + padding-right: `).concat(a,"px ").concat(o,`; + } + body { + overflow: hidden `).concat(o,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&` + padding-left: `.concat(r,`px; + padding-top: `).concat(i,`px; + padding-right: `).concat(c,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(a,"px ").concat(o,`; + `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(o,";")].filter(Boolean).join(""),` + } + + .`).concat(Lt,` { + right: `).concat(a,"px ").concat(o,`; + } + + .`).concat(Ft,` { + margin-right: `).concat(a,"px ").concat(o,`; + } + + .`).concat(Lt," .").concat(Lt,` { + right: 0 `).concat(o,`; + } + + .`).concat(Ft," .").concat(Ft,` { + margin-right: 0 `).concat(o,`; + } + + body { + `).concat(hu,": ").concat(a,`px; + } +`)},Au=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o,i=q(function(){return Du(r)},[r]);return _(Mu,{styles:Ru(i,!t,r,n?"":"!important")})},Pn=!1;if(typeof window<"u")try{var Mt=Object.defineProperty({},"passive",{get:function(){return Pn=!0,!0}});window.addEventListener("test",Mt,Mt),window.removeEventListener("test",Mt,Mt)}catch{Pn=!1}var je=Pn?{passive:!1}:!1,Tu=function(e){return e.tagName==="TEXTAREA"},Ei=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Tu(e)&&n[t]==="visible")},Iu=function(e){return Ei(e,"overflowY")},Nu=function(e){return Ei(e,"overflowX")},Vo=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Oi(e,n);if(o){var r=Pi(e,n),i=r[1],c=r[2];if(i>c)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Lu=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},Fu=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},Oi=function(e,t){return e==="v"?Iu(t):Nu(t)},Pi=function(e,t){return e==="v"?Lu(t):Fu(t)},Uu=function(e,t){return e==="h"&&t==="rtl"?-1:1},zu=function(e,t,n,o,r){var i=Uu(e,window.getComputedStyle(t).direction),c=i*o,a=n.target,l=t.contains(a),u=!1,f=c>0,s=0,g=0;do{var d=Pi(e,a),h=d[0],p=d[1],b=d[2],v=p-b-i*h;(h||v)&&Oi(e,a)&&(s+=v,g+=h),a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(f&&(r&&s===0||!r&&c>s)||!f&&(r&&g===0||!r&&-c>g))&&(u=!0),u},Rt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Wo=function(e){return[e.deltaX,e.deltaY]},jo=function(e){return e&&"current"in e?e.current:e},Bu=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Hu=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},Vu=0,Ke=[];function Wu(e){var t=D([]),n=D([0,0]),o=D(),r=I(Vu++)[0],i=I(function(){return ki()})[0],c=D(e);T(function(){c.current=e},[e]),T(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var p=fu([e.lockRef.current],(e.shards||[]).map(jo),!0).filter(Boolean);return p.forEach(function(b){return b.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),p.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=z(function(p,b){if("touches"in p&&p.touches.length===2)return!c.current.allowPinchZoom;var v=Rt(p),m=n.current,w="deltaX"in p?p.deltaX:m[0]-v[0],y="deltaY"in p?p.deltaY:m[1]-v[1],$,O=p.target,C=Math.abs(w)>Math.abs(y)?"h":"v";if("touches"in p&&C==="h"&&O.type==="range")return!1;var P=Vo(C,O);if(!P)return!0;if(P?$=C:($=C==="v"?"h":"v",P=Vo(C,O)),!P)return!1;if(!o.current&&"changedTouches"in p&&(w||y)&&(o.current=$),!$)return!0;var M=o.current||$;return zu(M,b,p,M==="h"?w:y,!0)},[]),l=z(function(p){var b=p;if(!(!Ke.length||Ke[Ke.length-1]!==i)){var v="deltaY"in b?Wo(b):Rt(b),m=t.current.filter(function($){return $.name===b.type&&$.target===b.target&&Bu($.delta,v)})[0];if(m&&m.should){b.cancelable&&b.preventDefault();return}if(!m){var w=(c.current.shards||[]).map(jo).filter(Boolean).filter(function($){return $.contains(b.target)}),y=w.length>0?a(b,w[0]):!c.current.noIsolation;y&&b.cancelable&&b.preventDefault()}}},[]),u=z(function(p,b,v,m){var w={name:p,delta:b,target:v,should:m};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(y){return y!==w})},1)},[]),f=z(function(p){n.current=Rt(p),o.current=void 0},[]),s=z(function(p){u(p.type,Wo(p),p.target,a(p,e.lockRef.current))},[]),g=z(function(p){u(p.type,Rt(p),p.target,a(p,e.lockRef.current))},[]);T(function(){return Ke.push(i),e.setCallbacks({onScrollCapture:s,onWheelCapture:s,onTouchMoveCapture:g}),document.addEventListener("wheel",l,je),document.addEventListener("touchmove",l,je),document.addEventListener("touchstart",f,je),function(){Ke=Ke.filter(function(p){return p!==i}),document.removeEventListener("wheel",l,je),document.removeEventListener("touchmove",l,je),document.removeEventListener("touchstart",f,je)}},[]);var d=e.removeScrollBar,h=e.inert;return _(G,null,h?_(i,{styles:Hu(r)}):null,d?_(Au,{gapMode:"margin"}):null)}const ju=yu(Si,Wu);var Di=S(function(e,t){return _(tn,ue({},e,{ref:t,sideCar:ju}))});Di.classNames=tn.classNames;const Mi=Di,Dn=["Enter"," "],Ku=["ArrowDown","PageUp","Home"],Ri=["ArrowUp","PageDown","End"],Gu=[...Ku,...Ri],Yu={ltr:[...Dn,"ArrowRight"],rtl:[...Dn,"ArrowLeft"]},Zu={ltr:["ArrowLeft"],rtl:["ArrowRight"]},nn="Menu",[gt,Xu,qu]=Yr(nn),[Ve,Ai]=rt(nn,[qu,fi,_i]),yt=fi(),Ti=_i(),[Ii,Re]=Ve(nn),[Ju,$t]=Ve(nn),Qu=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:r,onOpenChange:i,modal:c=!0}=e,a=yt(t),[l,u]=I(null),f=D(!1),s=oe(i),g=Zr(r);return T(()=>{const d=()=>{f.current=!0,document.addEventListener("pointerdown",h,{capture:!0,once:!0}),document.addEventListener("pointermove",h,{capture:!0,once:!0})},h=()=>f.current=!1;return document.addEventListener("keydown",d,{capture:!0}),()=>{document.removeEventListener("keydown",d,{capture:!0}),document.removeEventListener("pointerdown",h,{capture:!0}),document.removeEventListener("pointermove",h,{capture:!0})}},[]),_(vi,a,_(Ii,{scope:t,open:n,onOpenChange:s,content:l,onContentChange:u},_(Ju,{scope:t,onClose:z(()=>s(!1),[s]),isUsingKeyboardRef:f,dir:g,modal:c},o)))},Ni=S((e,t)=>{const{__scopeMenu:n,...o}=e,r=yt(n);return _(Vl,k({},r,o,{ref:t}))}),Li="MenuPortal",[ed,Fi]=Ve(Li,{forceMount:void 0}),td=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:r}=e,i=Re(Li,t);return _(ed,{scope:t,forceMount:n},_(Me,{present:n||i.open},_(mi,{asChild:!0,container:r},o)))},ae="MenuContent",[nd,Jn]=Ve(ae),od=S((e,t)=>{const n=Fi(ae,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,i=Re(ae,e.__scopeMenu),c=$t(ae,e.__scopeMenu);return _(gt.Provider,{scope:e.__scopeMenu},_(Me,{present:o||i.open},_(gt.Slot,{scope:e.__scopeMenu},c.modal?_(rd,k({},r,{ref:t})):_(id,k({},r,{ref:t})))))}),rd=S((e,t)=>{const n=Re(ae,e.__scopeMenu),o=D(null),r=Z(t,o);return T(()=>{const i=o.current;if(i)return $i(i)},[]),_(Qn,k({},e,{ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:A(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),id=S((e,t)=>{const n=Re(ae,e.__scopeMenu);return _(Qn,k({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),Qn=S((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:c,disableOutsidePointerEvents:a,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:s,onInteractOutside:g,onDismiss:d,disableOutsideScroll:h,...p}=e,b=Re(ae,n),v=$t(ae,n),m=yt(n),w=Ti(n),y=Xu(n),[$,O]=I(null),C=D(null),P=Z(t,C,b.onContentChange),M=D(0),L=D(""),F=D(0),j=D(null),V=D("right"),N=D(0),H=h?Mi:G,U=h?{as:Je,allowPinchZoom:!0}:void 0,J=R=>{var W,Q;const le=L.current+R,Ae=y().filter(ie=>!ie.disabled),Ce=document.activeElement,he=(W=Ae.find(ie=>ie.ref.current===Ce))===null||W===void 0?void 0:W.textValue,Te=Ae.map(ie=>ie.textValue),Ie=Sd(Te,le,he),Ne=(Q=Ae.find(ie=>ie.textValue===Ie))===null||Q===void 0?void 0:Q.ref.current;(function ie(xt){L.current=xt,window.clearTimeout(M.current),xt!==""&&(M.current=window.setTimeout(()=>ie(""),1e3))})(le),Ne&&setTimeout(()=>Ne.focus())};T(()=>()=>window.clearTimeout(M.current),[]),Jr();const Y=z(R=>{var W,Q;return V.current===((W=j.current)===null||W===void 0?void 0:W.side)&&Ed(R,(Q=j.current)===null||Q===void 0?void 0:Q.area)},[]);return _(nd,{scope:n,searchRef:L,onItemEnter:z(R=>{Y(R)&&R.preventDefault()},[Y]),onItemLeave:z(R=>{var W;Y(R)||((W=C.current)===null||W===void 0||W.focus(),O(null))},[Y]),onTriggerLeave:z(R=>{Y(R)&&R.preventDefault()},[Y]),pointerGraceTimerRef:F,onPointerGraceIntentChange:z(R=>{j.current=R},[])},_(H,U,_(Qr,{asChild:!0,trapped:r,onMountAutoFocus:A(i,R=>{var W;R.preventDefault(),(W=C.current)===null||W===void 0||W.focus()}),onUnmountAutoFocus:c},_(Xr,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:s,onInteractOutside:g,onDismiss:d},_(au,k({asChild:!0},w,{dir:v.dir,orientation:"vertical",loop:o,currentTabStopId:$,onCurrentTabStopIdChange:O,onEntryFocus:A(l,R=>{v.isUsingKeyboardRef.current||R.preventDefault()})}),_(Wl,k({role:"menu","aria-orientation":"vertical","data-state":ji(b.open),"data-radix-menu-content":"",dir:v.dir},m,p,{ref:P,style:{outline:"none",...p.style},onKeyDown:A(p.onKeyDown,R=>{const Q=R.target.closest("[data-radix-menu-content]")===R.currentTarget,le=R.ctrlKey||R.altKey||R.metaKey,Ae=R.key.length===1;Q&&(R.key==="Tab"&&R.preventDefault(),!le&&Ae&&J(R.key));const Ce=C.current;if(R.target!==Ce||!Gu.includes(R.key))return;R.preventDefault();const Te=y().filter(Ie=>!Ie.disabled).map(Ie=>Ie.ref.current);Ri.includes(R.key)&&Te.reverse(),xd(Te)}),onBlur:A(e.onBlur,R=>{R.currentTarget.contains(R.target)||(window.clearTimeout(M.current),L.current="")}),onPointerMove:A(e.onPointerMove,vt(R=>{const W=R.target,Q=N.current!==R.clientX;if(R.currentTarget.contains(W)&&Q){const le=R.clientX>N.current?"right":"left";V.current=le,N.current=R.clientX}}))})))))))}),Ui=S((e,t)=>{const{__scopeMenu:n,...o}=e;return _(K.div,k({role:"group"},o,{ref:t}))}),cd=S((e,t)=>{const{__scopeMenu:n,...o}=e;return _(K.div,k({},o,{ref:t}))}),Mn="MenuItem",Ko="menu.itemSelect",eo=S((e,t)=>{const{disabled:n=!1,onSelect:o,...r}=e,i=D(null),c=$t(Mn,e.__scopeMenu),a=Jn(Mn,e.__scopeMenu),l=Z(t,i),u=D(!1),f=()=>{const s=i.current;if(!n&&s){const g=new CustomEvent(Ko,{bubbles:!0,cancelable:!0});s.addEventListener(Ko,d=>o==null?void 0:o(d),{once:!0}),Gr(s,g),g.defaultPrevented?u.current=!1:c.onClose()}};return _(zi,k({},r,{ref:l,disabled:n,onClick:A(e.onClick,f),onPointerDown:s=>{var g;(g=e.onPointerDown)===null||g===void 0||g.call(e,s),u.current=!0},onPointerUp:A(e.onPointerUp,s=>{var g;u.current||(g=s.currentTarget)===null||g===void 0||g.click()}),onKeyDown:A(e.onKeyDown,s=>{const g=a.searchRef.current!=="";n||g&&s.key===" "||Dn.includes(s.key)&&(s.currentTarget.click(),s.preventDefault())})}))}),zi=S((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:r,...i}=e,c=Jn(Mn,n),a=Ti(n),l=D(null),u=Z(t,l),[f,s]=I(!1),[g,d]=I("");return T(()=>{const h=l.current;if(h){var p;d(((p=h.textContent)!==null&&p!==void 0?p:"").trim())}},[i.children]),_(gt.ItemSlot,{scope:n,disabled:o,textValue:r??g},_(su,k({asChild:!0},a,{focusable:!o}),_(K.div,k({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0},i,{ref:u,onPointerMove:A(e.onPointerMove,vt(h=>{o?c.onItemLeave(h):(c.onItemEnter(h),h.defaultPrevented||h.currentTarget.focus())})),onPointerLeave:A(e.onPointerLeave,vt(h=>c.onItemLeave(h))),onFocus:A(e.onFocus,()=>s(!0)),onBlur:A(e.onBlur,()=>s(!1))}))))}),ad=S((e,t)=>{const{checked:n=!1,onCheckedChange:o,...r}=e;return _(Hi,{scope:e.__scopeMenu,checked:n},_(eo,k({role:"menuitemcheckbox","aria-checked":Gt(n)?"mixed":n},r,{ref:t,"data-state":to(n),onSelect:A(r.onSelect,()=>o==null?void 0:o(Gt(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),sd="MenuRadioGroup",[ld,ud]=Ve(sd,{value:void 0,onValueChange:()=>{}}),dd=S((e,t)=>{const{value:n,onValueChange:o,...r}=e,i=oe(o);return _(ld,{scope:e.__scopeMenu,value:n,onValueChange:i},_(Ui,k({},r,{ref:t})))}),fd="MenuRadioItem",pd=S((e,t)=>{const{value:n,...o}=e,r=ud(fd,e.__scopeMenu),i=n===r.value;return _(Hi,{scope:e.__scopeMenu,checked:i},_(eo,k({role:"menuitemradio","aria-checked":i},o,{ref:t,"data-state":to(i),onSelect:A(o.onSelect,()=>{var c;return(c=r.onValueChange)===null||c===void 0?void 0:c.call(r,n)},{checkForDefaultPrevented:!1})})))}),Bi="MenuItemIndicator",[Hi,hd]=Ve(Bi,{checked:!1}),gd=S((e,t)=>{const{__scopeMenu:n,forceMount:o,...r}=e,i=hd(Bi,n);return _(Me,{present:o||Gt(i.checked)||i.checked===!0},_(K.span,k({},r,{ref:t,"data-state":to(i.checked)})))}),vd=S((e,t)=>{const{__scopeMenu:n,...o}=e;return _(K.div,k({role:"separator","aria-orientation":"horizontal"},o,{ref:t}))}),md=S((e,t)=>{const{__scopeMenu:n,...o}=e,r=yt(n);return _(jl,k({},r,o,{ref:t}))}),Vi="MenuSub",[bd,Wi]=Ve(Vi),_d=e=>{const{__scopeMenu:t,children:n,open:o=!1,onOpenChange:r}=e,i=Re(Vi,t),c=yt(t),[a,l]=I(null),[u,f]=I(null),s=oe(r);return T(()=>(i.open===!1&&s(!1),()=>s(!1)),[i.open,s]),_(vi,c,_(Ii,{scope:t,open:o,onOpenChange:s,content:u,onContentChange:f},_(bd,{scope:t,contentId:ke(),triggerId:ke(),trigger:a,onTriggerChange:l},n)))},At="MenuSubTrigger",wd=S((e,t)=>{const n=Re(At,e.__scopeMenu),o=$t(At,e.__scopeMenu),r=Wi(At,e.__scopeMenu),i=Jn(At,e.__scopeMenu),c=D(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:l}=i,u={__scopeMenu:e.__scopeMenu},f=z(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return T(()=>f,[f]),T(()=>{const s=a.current;return()=>{window.clearTimeout(s),l(null)}},[a,l]),_(Ni,k({asChild:!0},u),_(zi,k({id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":ji(n.open)},e,{ref:qt(t,r.onTriggerChange),onClick:s=>{var g;(g=e.onClick)===null||g===void 0||g.call(e,s),!(e.disabled||s.defaultPrevented)&&(s.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:A(e.onPointerMove,vt(s=>{i.onItemEnter(s),!s.defaultPrevented&&!e.disabled&&!n.open&&!c.current&&(i.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:A(e.onPointerLeave,vt(s=>{var g;f();const d=(g=n.content)===null||g===void 0?void 0:g.getBoundingClientRect();if(d){var h;const p=(h=n.content)===null||h===void 0?void 0:h.dataset.side,b=p==="right",v=b?-5:5,m=d[b?"left":"right"],w=d[b?"right":"left"];i.onPointerGraceIntentChange({area:[{x:s.clientX+v,y:s.clientY},{x:m,y:d.top},{x:w,y:d.top},{x:w,y:d.bottom},{x:m,y:d.bottom}],side:p}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(s),s.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:A(e.onKeyDown,s=>{const g=i.searchRef.current!=="";if(!(e.disabled||g&&s.key===" ")&&Yu[o.dir].includes(s.key)){var d;n.onOpenChange(!0),(d=n.content)===null||d===void 0||d.focus(),s.preventDefault()}})})))}),yd="MenuSubContent",$d=S((e,t)=>{const n=Fi(ae,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,i=Re(ae,e.__scopeMenu),c=$t(ae,e.__scopeMenu),a=Wi(yd,e.__scopeMenu),l=D(null),u=Z(t,l);return _(gt.Provider,{scope:e.__scopeMenu},_(Me,{present:o||i.open},_(gt.Slot,{scope:e.__scopeMenu},_(Qn,k({id:a.contentId,"aria-labelledby":a.triggerId},r,{ref:u,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var s;c.isUsingKeyboardRef.current&&((s=l.current)===null||s===void 0||s.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:A(e.onFocusOutside,f=>{f.target!==a.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:A(e.onEscapeKeyDown,f=>{c.onClose(),f.preventDefault()}),onKeyDown:A(e.onKeyDown,f=>{const s=f.currentTarget.contains(f.target),g=Zu[c.dir].includes(f.key);if(s&&g){var d;i.onOpenChange(!1),(d=a.trigger)===null||d===void 0||d.focus(),f.preventDefault()}})})))))});function ji(e){return e?"open":"closed"}function Gt(e){return e==="indeterminate"}function to(e){return Gt(e)?"indeterminate":e?"checked":"unchecked"}function xd(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Cd(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function Sd(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let c=Cd(e,Math.max(i,0));r.length===1&&(c=c.filter(u=>u!==n));const l=c.find(u=>u.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function kd(e,t){const{x:n,y:o}=e;let r=!1;for(let i=0,c=t.length-1;io!=f>o&&n<(u-a)*(o-l)/(f-l)+a&&(r=!r)}return r}function Ed(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return kd(n,t)}function vt(e){return t=>t.pointerType==="mouse"?e(t):void 0}const Od=Qu,Pd=Ni,Dd=td,Md=od,Rd=Ui,Ad=cd,Td=eo,Id=ad,Nd=dd,Ld=pd,Fd=gd,Ud=vd,zd=md,Bd=_d,Hd=wd,Vd=$d,Ki="DropdownMenu",[Wd,jd]=rt(Ki,[Ai]),X=Ai(),[Kd,Gi]=Wd(Ki),Yi=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:r,defaultOpen:i,onOpenChange:c,modal:a=!0}=e,l=X(t),u=D(null),[f=!1,s]=Jt({prop:r,defaultProp:i,onChange:c});return _(Kd,{scope:t,triggerId:ke(),triggerRef:u,contentId:ke(),open:f,onOpenChange:s,onOpenToggle:z(()=>s(g=>!g),[s]),modal:a},_(Od,k({},l,{open:f,onOpenChange:s,dir:o,modal:a}),n))},Gd="DropdownMenuTrigger",Zi=S((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...r}=e,i=Gi(Gd,n),c=X(n);return _(Pd,k({asChild:!0},c),_(K.button,k({type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":o?"":void 0,disabled:o},r,{ref:qt(t,i.triggerRef),onPointerDown:A(e.onPointerDown,a=>{!o&&a.button===0&&a.ctrlKey===!1&&(i.onOpenToggle(),i.open||a.preventDefault())}),onKeyDown:A(e.onKeyDown,a=>{o||(["Enter"," "].includes(a.key)&&i.onOpenToggle(),a.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})))}),Xi=e=>{const{__scopeDropdownMenu:t,...n}=e,o=X(t);return _(Dd,k({},o,n))},Yd="DropdownMenuContent",qi=S((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=Gi(Yd,n),i=X(n),c=D(!1);return _(Md,k({id:r.contentId,"aria-labelledby":r.triggerId},i,o,{ref:t,onCloseAutoFocus:A(e.onCloseAutoFocus,a=>{var l;c.current||(l=r.triggerRef.current)===null||l===void 0||l.focus(),c.current=!1,a.preventDefault()}),onInteractOutside:A(e.onInteractOutside,a=>{const l=a.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,f=l.button===2||u;(!r.modal||f)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),Ji=S((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return _(Rd,k({},r,o,{ref:t}))}),Qi=S((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return _(Ad,k({},r,o,{ref:t}))}),ec=S((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return _(Td,k({},r,o,{ref:t}))}),tc=S((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return _(Id,k({},r,o,{ref:t}))}),nc=S((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return _(Nd,k({},r,o,{ref:t}))}),oc=S((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return _(Ld,k({},r,o,{ref:t}))}),rc=S((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return _(Fd,k({},r,o,{ref:t}))}),ic=S((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return _(Ud,k({},r,o,{ref:t}))}),cc=S((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return _(zd,k({},r,o,{ref:t}))}),ac=e=>{const{__scopeDropdownMenu:t,children:n,open:o,onOpenChange:r,defaultOpen:i}=e,c=X(t),[a=!1,l]=Jt({prop:o,defaultProp:i,onChange:r});return _(Bd,k({},c,{open:a,onOpenChange:l}),n)},sc=S((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return _(Hd,k({},r,o,{ref:t}))}),lc=S((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return _(Vd,k({},r,o,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),uc=Yi,dc=Zi,fc=Xi,pc=qi,Zd=Ji,Xd=Qi,qd=ec,Jd=tc,Qd=nc,ef=oc,tf=rc,nf=ic,hc=cc,of=ac,rf=sc,cf=lc,af=Object.freeze(Object.defineProperty({__proto__:null,Arrow:hc,CheckboxItem:Jd,Content:pc,DropdownMenu:Yi,DropdownMenuArrow:cc,DropdownMenuCheckboxItem:tc,DropdownMenuContent:qi,DropdownMenuGroup:Ji,DropdownMenuItem:ec,DropdownMenuItemIndicator:rc,DropdownMenuLabel:Qi,DropdownMenuPortal:Xi,DropdownMenuRadioGroup:nc,DropdownMenuRadioItem:oc,DropdownMenuSeparator:ic,DropdownMenuSub:ac,DropdownMenuSubContent:lc,DropdownMenuSubTrigger:sc,DropdownMenuTrigger:Zi,Group:Zd,Item:qd,ItemIndicator:tf,Label:Xd,Portal:fc,RadioGroup:Qd,RadioItem:ef,Root:uc,Separator:nf,Sub:of,SubContent:cf,SubTrigger:rf,Trigger:dc,createDropdownMenuScope:jd},Symbol.toStringTag,{value:"Module"})),gc=()=>{var e,t;return(t=(e=document.querySelector(mt.elementName))==null?void 0:e.shadowRoot)==null?void 0:t.firstChild},sf=e=>x(uc,{...e,children:[x(dc,{asChild:!0,children:e.trigger&&e.trigger}),x(fc,{container:gc(),children:x(pc,{sideOffset:5,align:e.align||"start",side:e.side||"bottom",className:"dropdown",children:[e.children,e.hasArrow&&x(hc,{className:"dropdown-arrow"})]})})]}),st={...af,Root:sf};function lf(e){const t=De();return T(()=>{e.isDoc&&t.setActiveScreenSize(Ht.Desktop)},[e.isDoc]),x(G,{children:So.length>0&&x(st.Root,{open:t.isViewportOpen,onOpenChange:()=>e.isDoc||t.setIsViewportOpen(!t.isViewportOpen),trigger:x("button",{className:"btn-subtle btn-icon",title:"Viewport Size [Shift + V]",disabled:e.isDoc,children:x(es,{})}),children:x(G,{children:[x(st.RadioGroup,{value:t.activeScreenSize,children:So.map(n=>x(st.RadioItem,{value:n.size,onClick:()=>t.setActiveScreenSize(n.size),className:"dropdown-item",children:n.title},n.size))}),x(st.Separator,{className:"dropdown-separator"}),x(st.Item,{className:"dropdown-item",children:"Responsive"})]})})})}const vc="Dialog",[mc,uf]=rt(vc),[df,se]=mc(vc),bc=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:i,modal:c=!0}=e,a=D(null),l=D(null),[u=!1,f]=Jt({prop:o,defaultProp:r,onChange:i});return _(df,{scope:t,triggerRef:a,contentRef:l,contentId:ke(),titleId:ke(),descriptionId:ke(),open:u,onOpenChange:f,onOpenToggle:z(()=>f(s=>!s),[f]),modal:c},n)},ff="DialogTrigger",_c=S((e,t)=>{const{__scopeDialog:n,...o}=e,r=se(ff,n),i=Z(t,r.triggerRef);return _(K.button,k({type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":no(r.open)},o,{ref:i,onClick:A(e.onClick,r.onOpenToggle)}))}),wc="DialogPortal",[pf,yc]=mc(wc,{forceMount:void 0}),$c=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,i=se(wc,t);return _(pf,{scope:t,forceMount:n},fe.map(o,c=>_(Me,{present:n||i.open},_(mi,{asChild:!0,container:r},c))))},Rn="DialogOverlay",xc=S((e,t)=>{const n=yc(Rn,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,i=se(Rn,e.__scopeDialog);return i.modal?_(Me,{present:o||i.open},_(hf,k({},r,{ref:t}))):null}),hf=S((e,t)=>{const{__scopeDialog:n,...o}=e,r=se(Rn,n);return _(Mi,{as:Je,allowPinchZoom:!0,shards:[r.contentRef]},_(K.div,k({"data-state":no(r.open)},o,{ref:t,style:{pointerEvents:"auto",...o.style}})))}),tt="DialogContent",Cc=S((e,t)=>{const n=yc(tt,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,i=se(tt,e.__scopeDialog);return _(Me,{present:o||i.open},i.modal?_(gf,k({},r,{ref:t})):_(vf,k({},r,{ref:t})))}),gf=S((e,t)=>{const n=se(tt,e.__scopeDialog),o=D(null),r=Z(t,n.contentRef,o);return T(()=>{const i=o.current;if(i)return $i(i)},[]),_(Sc,k({},e,{ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:A(e.onCloseAutoFocus,i=>{var c;i.preventDefault(),(c=n.triggerRef.current)===null||c===void 0||c.focus()}),onPointerDownOutside:A(e.onPointerDownOutside,i=>{const c=i.detail.originalEvent,a=c.button===0&&c.ctrlKey===!0;(c.button===2||a)&&i.preventDefault()}),onFocusOutside:A(e.onFocusOutside,i=>i.preventDefault())}))}),vf=S((e,t)=>{const n=se(tt,e.__scopeDialog),o=D(!1),r=D(!1);return _(Sc,k({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var c;if((c=e.onCloseAutoFocus)===null||c===void 0||c.call(e,i),!i.defaultPrevented){var a;o.current||(a=n.triggerRef.current)===null||a===void 0||a.focus(),i.preventDefault()}o.current=!1,r.current=!1},onInteractOutside:i=>{var c,a;(c=e.onInteractOutside)===null||c===void 0||c.call(e,i),i.defaultPrevented||(o.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const l=i.target;((a=n.triggerRef.current)===null||a===void 0?void 0:a.contains(l))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}}))}),Sc=S((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:i,...c}=e,a=se(tt,n),l=D(null),u=Z(t,l);return Jr(),_(G,null,_(Qr,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:i},_(Xr,k({role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":no(a.open)},c,{ref:u,onDismiss:()=>a.onOpenChange(!1)}))),!1)}),kc="DialogTitle",Ec=S((e,t)=>{const{__scopeDialog:n,...o}=e,r=se(kc,n);return _(K.h2,k({id:r.titleId},o,{ref:t}))}),mf="DialogDescription",Oc=S((e,t)=>{const{__scopeDialog:n,...o}=e,r=se(mf,n);return _(K.p,k({id:r.descriptionId},o,{ref:t}))}),bf="DialogClose",Pc=S((e,t)=>{const{__scopeDialog:n,...o}=e,r=se(bf,n);return _(K.button,k({type:"button"},o,{ref:t,onClick:A(e.onClick,()=>r.onOpenChange(!1))}))});function no(e){return e?"open":"closed"}const _f="DialogTitleWarning",[wf,Rf]=xs(_f,{contentName:tt,titleName:kc,docsSlug:"dialog"}),Dc=bc,Mc=_c,Rc=$c,Ac=xc,Tc=Cc,yf=Ec,$f=Oc,Ic=Pc,xf=Object.freeze(Object.defineProperty({__proto__:null,Close:Ic,Content:Tc,Description:$f,Dialog:bc,DialogClose:Pc,DialogContent:Cc,DialogDescription:Oc,DialogOverlay:xc,DialogPortal:$c,DialogTitle:Ec,DialogTrigger:_c,Overlay:Ac,Portal:Rc,Root:Dc,Title:yf,Trigger:Mc,WarningProvider:wf,createDialogScope:uf},Symbol.toStringTag,{value:"Module"})),Cf=e=>x(Dc,{...e,children:[x(Mc,{asChild:!0,children:e.trigger&&e.trigger}),x(Rc,{container:gc(),children:[x(Ac,{className:"fixed inset-0 z-50 bg-gray-900/60 backdrop-blur-[2px] data-[state=open]:animate-dialog-overlay-show"}),x(Tc,{className:"fixed left-[50%] top-[50%] z-50 max-h-[85vh] w-[90vw] max-w-md translate-x-[-50%] translate-y-[-50%] rounded-xl border border-gray-300 bg-white px-6 py-8 shadow-lg transition-colors focus:outline-none data-[state=open]:animate-dialog-content-show dark:border-gray-500 dark:bg-gray-800 dark:text-white",children:[e.closeable&&x(Ic,{asChild:!0,children:x("button",{className:"btn-subtle btn-icon absolute right-2 top-2",children:x(ss,{})})}),e.children]})]})]}),An={...xf,Root:Cf};function Sf(){const e=Kr(),[t,n]=I(e.configUrl);return x("div",{className:"flex flex-col gap-6",children:[x("h2",{className:"text-md font-bold uppercase",children:"Settings"}),x("div",{className:"flex flex-col gap-2",children:[x("label",{className:"text-xs font-medium uppercase",for:"parts-json-url",children:"Parts JSON URL"}),x("input",{className:"block h-8 w-full rounded bg-white px-4 placeholder-gray-500 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:ring-gray-400 focus:outline-none focus:ring-blue-400 focus-visible:ring-2 dark:bg-gray-700 dark:text-white dark:ring-gray-500 dark:hover:bg-gray-700/75 dark:focus:ring-blue-400",id:"parts-json-url",value:t,onInput:o=>n(o.currentTarget.value)}),x("p",{className:"text-xs text-gray-500 transition-colors dark:text-gray-400",children:"Your parts kit URLs need to have appropriate CORS and no X-Frame-Options restrictions. You can use a Chrome Plugin like Requestly to bypass these headers."})]}),x("div",{className:"flex justify-end gap-2",children:[x(An.Close,{className:"btn-outline",children:"Cancel"}),x(An.Close,{className:"btn",onClick:()=>e.setConfigUrl(t.trim()||jr),children:"Save Settings"})]})]})}function kf(){const e=De();return x(An.Root,{open:e.isSettingsOpen,onOpenChange:()=>e.setIsSettingsOpen(!e.isSettingsOpen),trigger:x("button",{className:"btn-subtle btn-icon",title:"Settings [Shift + S]",children:x(Vr,{})}),children:x(Sf,{})})}function Ef(e){const t=De();return x("div",{children:x("header",{className:de("flex h-10 justify-between gap-4 border-l border-white bg-gray-100 px-4 transition dark:border-gray-500 dark:bg-gray-700",{"border-gray-100 dark:border-gray-700":!t.isNavBarVisible}),children:[x("div",{className:"flex items-center gap-2",children:[x(ys,{}),x(lf,{isDoc:e.isDoc})]}),x("div",{className:"flex items-center gap-2",children:[e.showSettings&&x(kf,{}),x(ws,{})]})]})})}const vn="part",Tn=(e,t)=>{let n;for(const o of t)o.url===e?n=o:n||(n=Tn(e,o.children));return n},mn=e=>e.url?e:e.children.find(t=>!!t.url),Of=e=>{const t=(n,o)=>{history.pushState(o,"",n)};return T(()=>{const n=()=>{e.onPopState({url:new URL(window.location.href)})};return window.addEventListener("popstate",n),()=>{window.removeEventListener("popstate",n)}},[]),{push:t}};function Pf(e){const t=Kr(),n=De(),o=Vn(),[r,i]=I({nav:[]}),c=!!e.configUrl,a=async v=>{const m=await fetch(v,{method:"GET"});if(!m.ok)throw new Error("Couldn't load");const w=await m.json();i(w)};if(T(()=>{a(e.configUrl??t.configUrl)},[t.configUrl]),r.nav.length===0)return x("div",{children:"Loading"});const l=new URL(window.location.href).searchParams.get(vn),u=l?Tn(l,r.nav):void 0,f=Of({onPopState:({url:v})=>{const m=v.searchParams.get(vn);if(!m){console.warn("Url wasn't in history"),h(mn(r.nav[0]));return}const w=Tn(m,r.nav);if(!w){console.error("Could not find nav item after popstate");return}h(w)}}),[s,g]=I(!u),[d,h]=I(u||mn(r.nav[0])),p=ja[n.activeScreenSize],b=v=>{const m=mn(v);if(m===void 0||!m.url){console.error("Cant find viable nav item for ",v);return}h(m),g(!1);const w=new URL(window.location.href);w.searchParams.set(vn,m.url),f.push(w,{url:m.url})};return qa(),x("div",{className:de("font-sans",{light:o.mode==="light",dark:o.mode==="dark"}),children:x("div",{className:de("grid h-screen grid-cols-[250px,1fr] bg-gray-100 transition-all duration-500",{"!grid-cols-[0px,1fr]":!n.isNavBarVisible}),children:[d!==void 0?x(bs,{activeNavItem:d,nav:r.nav,setActiveNavItem:b}):null,x("div",{className:"relative z-10 flex flex-col bg-white",children:[x(Ef,{isDoc:(d==null?void 0:d.doc)??!1,showSettings:!c}),x("div",{className:"flex flex-grow items-stretch justify-center",children:!c&&s?x(_s,{}):x("div",{className:de("flex-grow",{"py-5":n.activeScreenSize!==Ht.Desktop}),style:{maxWidth:p},children:x("iframe",{className:de("h-full w-full",{"rounded border-2 border-gray-100":n.activeScreenSize!==Ht.Desktop}),src:(d==null?void 0:d.url)??void 0},d==null?void 0:d.url)})})]})]})})}const Df=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Roboto,sans-serif;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:.0625rem}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-.125rem}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}body{font-size:.875rem;line-height:1.4;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 550px){.container{max-width:34.375rem}}@media (min-width: 768px){.container{max-width:48rem}}@media (min-width: 1024px){.container{max-width:64rem}}@media (min-width: 1440px){.container{max-width:90rem}}.icon{height:1rem;width:1rem}.btn{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;border-radius:.25rem;text-align:center;font-weight:500;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.btn:focus{outline:.125rem solid transparent;outline-offset:.125rem}.btn:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(.125rem + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity));--tw-ring-offset-width: .125rem}.btn:not(.btn-icon){min-height:2.5rem;gap:.5rem;padding:.5rem 1.25rem}.btn:not(.btn-icon) svg{margin-left:-.125rem;margin-right:-.125rem}.btn svg{height:1.25rem;width:1.25rem;flex-shrink:0}.btn:disabled{cursor:not-allowed;opacity:.5}.btn{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.btn:hover:enabled{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.btn:active:enabled{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.btn[aria-expanded=true]{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.btn-outline{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;border-radius:.25rem;text-align:center;font-weight:500;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.btn-outline:focus{outline:.125rem solid transparent;outline-offset:.125rem}.btn-outline:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(.125rem + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity));--tw-ring-offset-width: .125rem}.btn-outline:not(.btn-icon){min-height:2.5rem;gap:.5rem;padding:.5rem 1.25rem}.btn-outline:not(.btn-icon) svg{margin-left:-.125rem;margin-right:-.125rem}.btn-outline svg{height:1.25rem;width:1.25rem;flex-shrink:0}.btn-outline:disabled{cursor:not-allowed;opacity:.5}.btn-outline{border-width:.0625rem;--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.btn-outline:hover:enabled{background-color:#0000000d}.btn-outline:active:enabled{background-color:#0000001a}.btn-outline[aria-expanded=true]{background-color:#0000001a}.btn-subtle{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;border-radius:.25rem;text-align:center;font-weight:500;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.btn-subtle:focus{outline:.125rem solid transparent;outline-offset:.125rem}.btn-subtle:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(.125rem + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity));--tw-ring-offset-width: .125rem}.btn-subtle:not(.btn-icon){min-height:2.5rem;gap:.5rem;padding:.5rem 1.25rem}.btn-subtle:not(.btn-icon) svg{margin-left:-.125rem;margin-right:-.125rem}.btn-subtle svg{height:1.25rem;width:1.25rem;flex-shrink:0}.btn-subtle:disabled{cursor:not-allowed;opacity:.5}.btn-subtle{background-color:transparent;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.btn-subtle:hover:enabled{background-color:#0000000d}.btn-subtle:active:enabled{background-color:#0000001a}.btn-subtle[aria-expanded=true]{background-color:#0000001a}:is(.dark .btn-subtle){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .btn-subtle:active){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .btn-subtle:hover:enabled){background-color:#0003}:is(.dark .btn-subtle:active:enabled){background-color:#0000004d}:is(.dark .btn-subtle[aria-expanded=true]){background-color:#0000004d;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.btn-icon{height:1.5rem;width:1.5rem;gap:0px!important;padding:0!important;font-size:0!important;line-height:0!important}.btn-icon svg{height:1rem;width:1rem;flex-shrink:0}.dropdown{z-index:50;display:inline-flex;min-width:12.5rem;max-width:15.625rem;flex-direction:column;gap:.5rem;border-radius:.75rem;border-width:.0625rem;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:.5rem;--tw-shadow: 0 .0625rem .1875rem 0 rgb(0 0 0 / .1), 0 .0625rem .125rem -.0625rem rgb(0 0 0 / .1);--tw-shadow-colored: 0 .0625rem .1875rem 0 var(--tw-shadow-color), 0 .0625rem .125rem -.0625rem var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:is(.dark .dropdown){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}@keyframes slide-down-and-fade{0%{opacity:0;transform:translateY(-.125rem)}to{opacity:1;transform:translateY(0)}}.dropdown[data-side=top]{animation:slide-down-and-fade .4s cubic-bezier(.16,1,.3,1)}@keyframes slide-up-and-fade{0%{opacity:0;transform:translateY(.125rem)}to{opacity:1;transform:translateY(0)}}.dropdown[data-side=bottom]{animation:slide-up-and-fade .4s cubic-bezier(.16,1,.3,1)}@keyframes slide-right-and-fade{0%{opacity:0;transform:translate(-.125rem)}to{opacity:1;transform:translate(0)}}.dropdown[data-side=left]{animation:slide-right-and-fade .4s cubic-bezier(.16,1,.3,1)}@keyframes slide-left-and-fade{0%{opacity:0;transform:translate(.125rem)}to{opacity:1;transform:translate(0)}}.dropdown[data-side=right]{animation:slide-left-and-fade .4s cubic-bezier(.16,1,.3,1)}.dropdown-item{display:flex;min-height:2rem;width:100%;cursor:pointer;align-items:center;justify-content:space-between;gap:.5rem;border-radius:.375rem;padding-left:.75rem;padding-right:.75rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.dropdown-item:hover{background-color:#0000000d;outline:.125rem solid transparent;outline-offset:.125rem}.dropdown-item:active{background-color:#0000001a}.dropdown-item[aria-checked=true]{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dropdown-item:hover[aria-checked=true]{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity))}.dropdown-item:active[aria-checked=true]{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}:is(.dark .dropdown-item){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dropdown-item:hover){background-color:#0000004d}:is(.dark .dropdown-item:active){background-color:#0006}:is(.dark .dropdown-item:hover)[aria-checked=true]{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity))}:is(.dark .dropdown-item:active)[aria-checked=true]{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.dropdown-item+.dropdown-item{margin-top:.25rem}.dropdown-separator{margin-left:.75rem;margin-right:.75rem;height:.0625rem;--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:is(.dark .dropdown-separator){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.dropdown-arrow{fill:#d1d5db;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:is(.dark .dropdown-arrow){fill:#9ca3af}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.left-4{left:1rem}.left-\\[50\\%\\]{left:50%}.right-2{right:.5rem}.top-2{top:.5rem}.top-\\[50\\%\\]{top:50%}.z-10{z-index:10}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.-ml-1{margin-left:-.25rem}.block{display:block}.inline{display:inline}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-screen{height:100vh}.max-h-\\[85vh\\]{max-height:85vh}.min-h-8{min-height:2rem}.w-3{width:.75rem}.w-5{width:1.25rem}.w-\\[90vw\\]{width:90vw}.w-full{width:100%}.min-w-\\[250px\\]{min-width:15.625rem}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.flex-grow{flex-grow:1}.-translate-x-2{--tw-translate-x: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\!grid-cols-\\[0px\\,1fr\\]{grid-template-columns:0px 1fr!important}.grid-cols-\\[250px\\,1fr\\]{grid-template-columns:15.625rem 1fr}.grid-rows-\\[auto\\,1fr\\]{grid-template-rows:auto 1fr}.flex-col{flex-direction:column}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:624.9375rem}.rounded-none{border-radius:0}.rounded-xl{border-radius:.75rem}.border{border-width:.0625rem}.border-2{border-width:.125rem}.border-l{border-left-width:.0625rem}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-900\\/60{background-color:#11182799}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-gradient-to-l{background-image:linear-gradient(to left,var(--tw-gradient-stops))}.from-gray-400\\/30{--tw-gradient-from: rgb(156 163 175 / .3) var(--tw-gradient-from-position);--tw-gradient-to: rgb(156 163 175 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.to-35\\%{--tw-gradient-to-position: 35%}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-6{padding-bottom:1.5rem}.pl-10{padding-left:2.5rem}.pl-4{padding-left:1rem}.pr-2{padding-right:.5rem}.pt-6{padding-top:1.5rem}.text-start{text-align:start}.font-sans{font-family:Roboto,sans-serif}.text-md{font-size:1rem;line-height:1.4}.text-xl{font-size:1.5rem;line-height:1.2}.text-xs{font-size:.75rem;line-height:1.4}.font-bold{font-weight:700}.font-medium{font-weight:500}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.placeholder-gray-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity))}.placeholder-gray-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 .0625rem .1875rem 0 rgb(0 0 0 / .1), 0 .0625rem .125rem -.0625rem rgb(0 0 0 / .1);--tw-shadow-colored: 0 .0625rem .1875rem 0 var(--tw-shadow-color), 0 .0625rem .125rem -.0625rem var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 .625rem .9375rem -.1875rem rgb(0 0 0 / .1), 0 .25rem .375rem -.25rem rgb(0 0 0 / .1);--tw-shadow-colored: 0 .625rem .9375rem -.1875rem var(--tw-shadow-color), 0 .25rem .375rem -.25rem var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(.0625rem + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-\\[2px\\]{--tw-backdrop-blur: blur(.125rem);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.delay-0{transition-delay:0s}.delay-200{transition-delay:.2s}.duration-500{transition-duration:.5s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\\:bg-black\\/5:hover{background-color:#0000000d}.hover\\:bg-blue-400:hover{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:ring-gray-400:hover{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.focus\\:outline-none:focus{outline:.125rem solid transparent;outline-offset:.125rem}.focus\\:ring-blue-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity))}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(.125rem + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.active\\:bg-black\\/10:active{background-color:#0000001a}@keyframes dialog-content-show{0%{opacity:0;transform:translate(-50%,-48%) scale(.96)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}.data-\\[state\\=open\\]\\:animate-dialog-content-show[data-state=open]{animation:dialog-content-show .15s cubic-bezier(.16,1,.3,1)}@keyframes dialog-overlay-show{0%{opacity:0}to{opacity:1}}.data-\\[state\\=open\\]\\:animate-dialog-overlay-show[data-state=open]{animation:dialog-overlay-show .4s cubic-bezier(.16,1,.3,1)}:is(.dark .dark\\:border-gray-500){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}:is(.dark .dark\\:border-gray-700){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}:is(.dark .dark\\:bg-gray-700){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\\:from-gray-900\\/40){--tw-gradient-from: rgb(17 24 39 / .4) var(--tw-gradient-from-position);--tw-gradient-to: rgb(17 24 39 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}:is(.dark .dark\\:text-gray-100){--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}:is(.dark .dark\\:text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}:is(.dark .dark\\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\\:ring-gray-500){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}:is(.dark .dark\\:hover\\:bg-black\\/30:hover){background-color:#0000004d}:is(.dark .dark\\:hover\\:bg-blue-400:hover){--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity))}:is(.dark .dark\\:hover\\:bg-gray-700\\/75:hover){background-color:#374151bf}:is(.dark .dark\\:focus\\:ring-blue-400:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity))}:is(.dark .dark\\:active\\:bg-black\\/40:active){background-color:#0006}:is(.dark .dark\\:active\\:bg-blue-500:active){--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))} +`;let Go=!1;class mt extends HTMLElement{constructor(){super();St(this,"shadow");St(this,"styleSheet",new CSSStyleSheet);this.shadow=this.attachShadow({mode:"open"}),this.shadow.adoptedStyleSheets=[this.styleSheet]}connectedCallback(){const n=this.getAttribute("config-url");this.setUpStyles(),Fe(x(Pf,{configUrl:n}),this.shadow)}disconnectedCallback(){Fe(null,this)}setUpStyles(){if(Go)return;const n=document.createElement("link");n.href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap",n.rel="stylesheet",document.head.appendChild(n);const o=document.createElement("style");o.appendChild(document.createTextNode(` + body { + margin: 0; + padding: 0; + } + `)),document.head.appendChild(o),this.styleSheet.replaceSync(Df),Go=!0}}St(mt,"elementName","parts-kit");customElements.define(mt.elementName,mt);document.addEventListener("DOMContentLoaded",()=>{document.querySelector(mt.elementName)||document.addEventListener("keydown",t=>{if(!Br())return;const n={type:"keyboardEvent",payload:{key:t.key,shiftKey:t.shiftKey}};Xa(n)})}); diff --git a/button-primary.html b/button-primary.html index 0a6e75f..15237a3 100644 --- a/button-primary.html +++ b/button-primary.html @@ -22,7 +22,11 @@ } - + +
diff --git a/button-secondary.html b/button-secondary.html index f54bc3c..c0bd14d 100644 --- a/button-secondary.html +++ b/button-secondary.html @@ -22,7 +22,11 @@ } - + +
diff --git a/card.html b/card.html index 821ff75..f929151 100644 --- a/card.html +++ b/card.html @@ -22,7 +22,11 @@ } - + + diff --git a/index.html b/index.html index 68f2e36..c927049 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Vite + Preact + TS - +