@openpawlabs/diy-guides-ui 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/LinkButton/LinkButton.d.ts.map +1 -1
- package/dist/components/LinkButton/LinkButton.stories.d.ts +1 -0
- package/dist/components/LinkButton/LinkButton.stories.d.ts.map +1 -1
- package/dist/diy-guides-ui.cjs +6 -6
- package/dist/diy-guides-ui.cjs.map +1 -1
- package/dist/diy-guides-ui.js +1708 -1640
- package/dist/diy-guides-ui.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/diy-guides-ui.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
"use strict";var Za=Object.create;var fo=Object.defineProperty;var Ja=Object.getOwnPropertyDescriptor;var Qa=Object.getOwnPropertyNames;var ec=Object.getPrototypeOf,tc=Object.prototype.hasOwnProperty;var po=t=>{throw TypeError(t)};var rc=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Qa(e))!tc.call(t,o)&&o!==r&&fo(t,o,{get:()=>e[o],enumerable:!(n=Ja(e,o))||n.enumerable});return t};var nc=(t,e,r)=>(r=t!=null?Za(ec(t)):{},rc(e||!t||!t.__esModule?fo(r,"default",{value:t,enumerable:!0}):r,t));var ho=(t,e,r)=>e.has(t)||po("Cannot "+r);var bo=(t,e,r)=>(ho(t,e,"read from private field"),r?r.call(t):e.get(t)),mo=(t,e,r)=>e.has(t)?po("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),Vr=(t,e,r,n)=>(ho(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react/jsx-runtime"),a=require("react"),jt=require("react-dom"),st={GREY:"#7A8090",RED:"#E7320D",ORANGE:"#FF850A",YELLOW:"#F5E429",GREEN:"#14CC76",LIGHT_BLUE:"#20B3E9",BLUE:"#1738DE",MAGENTA:"#D945B1"};function Rt(t,e){const r=t.replace("#",""),n=parseInt(r.slice(0,2),16),o=parseInt(r.slice(2,4),16),i=parseInt(r.slice(4,6),16);return`rgba(${n}, ${o}, ${i}, ${e})`}function Fi(t){const e=t.replace("#",""),r=parseInt(e.slice(0,2),16),n=parseInt(e.slice(2,4),16),o=parseInt(e.slice(4,6),16);return(.299*r+.587*n+.114*o)/255>.55?"#111111":"#ffffff"}const Oi={note:"GREY",info:"LIGHT_BLUE",tip:"GREEN",caution:"ORANGE",danger:"RED"};function ji(t){return st[Oi[t]]}const fr={note:"Note",info:"Info",tip:"Tip",caution:"Caution",danger:"Danger"},oc="react-aria-clear-focus",ic="react-aria-focus";function Mr(t){var r;if(typeof window>"u"||window.navigator==null)return!1;let e=(r=window.navigator.userAgentData)==null?void 0:r.brands;return Array.isArray(e)&&e.some(n=>t.test(n.brand))||t.test(window.navigator.userAgent)}function jn(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)==null?void 0:e.platform)||window.navigator.platform):!1}function Ae(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const qe=Ae(function(){return jn(/^Mac/i)}),lc=Ae(function(){return jn(/^iPhone/i)}),Bi=Ae(function(){return jn(/^iPad/i)||qe()&&navigator.maxTouchPoints>1}),Bt=Ae(function(){return lc()||Bi()}),sc=Ae(function(){return qe()||Bt()}),_i=Ae(function(){return Mr(/AppleWebKit/i)&&!Vi()}),Vi=Ae(function(){return Mr(/Chrome/i)}),Bn=Ae(function(){return Mr(/Android/i)}),ac=Ae(function(){return Mr(/Firefox/i)});function de(t){if(cc())t.focus({preventScroll:!0});else{let e=uc(t);t.focus(),dc(e)}}let qt=null;function cc(){if(qt==null){qt=!1;try{document.createElement("div").focus({get preventScroll(){return qt=!0,!0}})}catch{}}return qt}function uc(t){let e=t.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==n;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&r.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function dc(t){for(let{element:e,scrollTop:r,scrollLeft:n}of t)e.scrollTop=r,e.scrollLeft=n}const fc=a.createContext({isNative:!0,open:bc,useHref:t=>t});function _t(){return a.useContext(fc)}function pc(t,e){let r=t.getAttribute("target");return(!r||r==="_self")&&t.origin===location.origin&&!t.hasAttribute("download")&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey}function Ie(t,e,r=!0){var c,u;let{metaKey:n,ctrlKey:o,altKey:i,shiftKey:l}=e;ac()&&((u=(c=window.event)==null?void 0:c.type)!=null&&u.startsWith("key"))&&t.target==="_blank"&&(qe()?n=!0:o=!0);let s=_i()&&qe()&&!Bi()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:n,ctrlKey:o,altKey:i,shiftKey:l}):new MouseEvent("click",{metaKey:n,ctrlKey:o,altKey:i,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});Ie.isOpening=r,de(t),t.dispatchEvent(s),Ie.isOpening=!1}Ie.isOpening=!1;function hc(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let r=document.createElement("a");r.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(r.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(r.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(r.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(r.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(r),e(r),t.removeChild(r)}}function bc(t,e){hc(t,r=>Ie(r,e))}function zi(t){const r=_t().useHref((t==null?void 0:t.href)??"");let n={};if(t)for(let o of["href","target","rel","download","ping","referrerPolicy"])o in t&&(n[o]=o==="href"?r:t[o]);return n}function Hi(t,e,r,n){!e.isNative&&t.currentTarget instanceof HTMLAnchorElement&&t.currentTarget.href&&!t.isDefaultPrevented()&&pc(t.currentTarget,t)&&r&&(t.preventDefault(),e.open(t.currentTarget,t,r,n))}const J=typeof document<"u"?a.useLayoutEffect:()=>{},pr={prefix:String(Math.round(Math.random()*1e10)),current:0},Ui=a.createContext(pr),mc=a.createContext(!1);let gc=!!(typeof window<"u"&&window.document&&window.document.createElement),zr=new WeakMap;function yc(t=!1){var n,o;let e=a.useContext(Ui),r=a.useRef(null);if(r.current===null&&!t){let i=(o=(n=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)==null?void 0:n.ReactCurrentOwner)==null?void 0:o.current;if(i){let l=zr.get(i);l==null?zr.set(i,{id:e.current,state:i.memoizedState}):i.memoizedState!==l.state&&(e.current=l.id,zr.delete(i))}r.current=++e.current}return r.current}function vc(t){let e=a.useContext(Ui);e===pr&&!gc&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=yc(!!t),n=e===pr&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${n}-${r}`}function $c(t){let e=a.useId(),[r]=a.useState(dt()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${pr.prefix}`;return t||`${n}-${e}`}const xc=typeof a.useId=="function"?$c:vc;function wc(){return!1}function Ec(){return!0}function Sc(t){return()=>{}}function dt(){return typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore(Sc,wc,Ec):a.useContext(mc)}function Cc(t){let[e,r]=a.useState(t),n=a.useRef(e),o=a.useRef(null),i=a.useRef(()=>{if(!o.current)return;let s=o.current.next();if(s.done){o.current=null;return}n.current===s.value?i.current():r(s.value)});J(()=>{n.current=e,o.current&&i.current()});let l=a.useCallback(s=>{o.current=s(n.current),i.current()},[i]);return[e,l]}let Pc=!!(typeof window<"u"&&window.document&&window.document.createElement),nt=new Map,wt;typeof FinalizationRegistry<"u"&&(wt=new FinalizationRegistry(t=>{nt.delete(t)}));function ge(t){let[e,r]=a.useState(t),n=a.useRef(null),o=xc(e),i=a.useRef(null);if(wt&&wt.register(i,o),Pc){const l=nt.get(o);l&&!l.includes(n)?l.push(n):nt.set(o,[n])}return J(()=>{let l=o;return()=>{wt&&wt.unregister(i),nt.delete(l)}},[o]),a.useEffect(()=>{let l=n.current;return l&&r(l),()=>{l&&(n.current=null)}}),o}function kc(t,e){if(t===e)return t;let r=nt.get(t);if(r)return r.forEach(o=>o.current=e),e;let n=nt.get(e);return n?(n.forEach(o=>o.current=t),t):e}function Hr(t=[]){let e=ge(),[r,n]=Cc(e),o=a.useCallback(()=>{n(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,n]);return J(o,[e,o,...t]),r}function Vt(...t){return(...e)=>{for(let r of t)typeof r=="function"&&r(...e)}}const Z=t=>(t==null?void 0:t.ownerDocument)??document,fe=t=>t&&"window"in t&&t.window===t?t:Z(t).defaultView||window;function Tc(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function Mc(t){return Tc(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let Rc=!1;function Ne(){return Rc}function z(t,e){if(!Ne())return e&&t?t.contains(e):!1;if(!t||!e)return!1;let r=e;for(;r!==null;){if(r===t)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:Mc(r)?r=r.host:r=r.parentNode}return!1}const ne=(t=document)=>{var r;if(!Ne())return t.activeElement;let e=t.activeElement;for(;e&&"shadowRoot"in e&&((r=e.shadowRoot)!=null&&r.activeElement);)e=e.shadowRoot.activeElement;return e};function A(t){if(Ne()&&t.target instanceof Element&&t.target.shadowRoot){if("composedPath"in t)return t.composedPath()[0]??null;if("composedPath"in t.nativeEvent)return t.nativeEvent.composedPath()[0]??null}return t.target}function Nt(t){if(!t)return!1;let e=t.getRootNode(),r=fe(t);if(!(e instanceof r.Document||e instanceof r.ShadowRoot))return!1;let n=e.activeElement;return n!=null&&t.contains(n)}class Nc{constructor(e,r,n,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=l=>{var s;if(l.nodeType===Node.ELEMENT_NODE){const c=l.shadowRoot;if(c){const u=this._doc.createTreeWalker(c,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(u),NodeFilter.FILTER_ACCEPT}else{if(typeof this.filter=="function")return this.filter(l);if((s=this.filter)!=null&&s.acceptNode)return this.filter.acceptNode(l);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=r,this.filter=o??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=r,this._walkerStack.unshift(e.createTreeWalker(r,n,this._acceptNode));const i=r.shadowRoot;if(i){const l=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(l)}}get currentNode(){return this._currentNode}set currentNode(e){if(!z(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const r=[];let n=e,o=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const l=n,s=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});r.push(s),s.currentNode=o,this._currentSetFor.add(s),n=o=l.host}else n=n.parentNode;const i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});r.push(i),i.currentNode=o,this._currentSetFor.add(i),this._walkerStack=r}get doc(){return this._doc}firstChild(){let e=this.currentNode,r=this.nextNode();return z(e,r)?(r&&(this.currentNode=r),r):(this.currentNode=e,null)}lastChild(){let r=this._walkerStack[0].lastChild();return r&&(this.currentNode=r),r}nextNode(){var r;const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){let o;if(typeof this.filter=="function"?o=this.filter(e):(r=this.filter)!=null&&r.acceptNode&&(o=this.filter.acceptNode(e)),o===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let i=this.nextNode();return i&&(this.currentNode=i),i}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){var n;const e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null;return null}const r=e.previousNode();if(r){if(r.shadowRoot){let i;if(typeof this.filter=="function"?i=this.filter(r):(n=this.filter)!=null&&n.acceptNode&&(i=this.filter.acceptNode(r)),i===NodeFilter.FILTER_ACCEPT)return r&&(this.currentNode=r),r;let l=this.lastChild();return l&&(this.currentNode=l),l}return r&&(this.currentNode=r),r}else if(this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}}function Wi(t,e,r,n){return Ne()?new Nc(t,e,r,n):t.createTreeWalker(e,r,n)}function zt(...t){return t.length===1&&t[0]?t[0]:e=>{let r=!1;const n=t.map(o=>{const i=go(o,e);return r||(r=typeof i=="function"),i});if(r)return()=>{n.forEach((o,i)=>{typeof o=="function"?o():go(t[i],null)})}}}function go(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Gi(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=Gi(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Dc(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=Gi(t))&&(n&&(n+=" "),n+=e);return n}function X(...t){let e={...t[0]};for(let r=1;r<t.length;r++){let n=t[r];for(let o in n){let i=e[o],l=n[o];typeof i=="function"&&typeof l=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?e[o]=Vt(i,l):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof l=="string"?e[o]=Dc(i,l):o==="id"&&i&&l?e.id=kc(i,l):o==="ref"&&i&&l?e.ref=zt(i,l):e[o]=l!==void 0?l:i}}return e}const Lc=new Set(["id"]),Ic=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Kc=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Ac=new Set(["dir","lang","hidden","inert","translate"]),yo=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),Fc=/^(data-.*)$/;function ue(t,e={}){let{labelable:r,isLink:n,global:o,events:i=o,propNames:l}=e,s={};for(const c in t)Object.prototype.hasOwnProperty.call(t,c)&&(Lc.has(c)||r&&Ic.has(c)||n&&Kc.has(c)||o&&Ac.has(c)||i&&(yo.has(c)||c.endsWith("Capture")&&yo.has(c.slice(0,-7)))||l!=null&&l.has(c)||Fc.test(c))&&(s[c]=t[c]);return s}let Ve=new Map,dn=new Set;function vo(){if(typeof window>"u")return;function t(n){return"propertyName"in n}let e=n=>{let o=A(n);if(!t(n)||!o)return;let i=Ve.get(o);i||(i=new Set,Ve.set(o,i),o.addEventListener("transitioncancel",r,{once:!0})),i.add(n.propertyName)},r=n=>{let o=A(n);if(!t(n)||!o)return;let i=Ve.get(o);if(i&&(i.delete(n.propertyName),i.size===0&&(o.removeEventListener("transitioncancel",r),Ve.delete(o)),Ve.size===0)){for(let l of dn)l();dn.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?vo():document.addEventListener("DOMContentLoaded",vo));function Oc(){for(const[t]of Ve)"isConnected"in t&&!t.isConnected&&Ve.delete(t)}function qi(t){requestAnimationFrame(()=>{Oc(),Ve.size===0?t():dn.add(t)})}function Rr(){let t=a.useRef(new Map),e=a.useCallback((o,i,l,s)=>{let c=s!=null&&s.once?(...u)=>{t.current.delete(l),l(...u)}:l;t.current.set(l,{type:i,eventTarget:o,fn:c,options:s}),o.addEventListener(i,c,s)},[]),r=a.useCallback((o,i,l,s)=>{var u;let c=((u=t.current.get(l))==null?void 0:u.fn)||l;o.removeEventListener(i,c,s),t.current.delete(l)},[]),n=a.useCallback(()=>{t.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return a.useEffect(()=>n,[n]),{addGlobalListener:e,removeGlobalListener:r,removeAllGlobalListeners:n}}function Yi(t,e){let{id:r,"aria-label":n,"aria-labelledby":o}=t;return r=ge(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&e&&(n=e),{id:r,"aria-label":n,"aria-labelledby":o}}function Ht(t){const e=a.useRef(null),r=a.useRef(void 0),n=a.useCallback(o=>{if(typeof t=="function"){const i=t,l=i(o);return()=>{typeof l=="function"?l():i(null)}}else if(t)return t.current=o,()=>{t.current=null}},[t]);return a.useMemo(()=>({get current(){return e.current},set current(o){e.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}const jc=a.useInsertionEffect??J;function xe(t){const e=a.useRef(null);return jc(()=>{e.current=t},[t]),a.useCallback((...r)=>{const n=e.current;return n==null?void 0:n(...r)},[])}function $o(t,e){const r=a.useRef(!0),n=a.useRef(null);J(()=>(r.current=!0,()=>{r.current=!1}),[]),J(()=>{r.current?r.current=!1:(!n.current||e.some((o,i)=>!Object.is(o,n[i])))&&t(),n.current=e},e)}function Bc(){return typeof window.ResizeObserver<"u"}function hr(t){const{ref:e,box:r,onResize:n}=t;let o=xe(n);a.useEffect(()=>{let i=e==null?void 0:e.current;if(i)if(Bc()){const l=new window.ResizeObserver(s=>{s.length&&o()});return l.observe(i,{box:r}),()=>{i&&l.unobserve(i)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[e,r])}function _n(t,e){J(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function at(t,e){if(!t)return!1;let r=window.getComputedStyle(t),n=document.scrollingElement||document.documentElement,o=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return t===n&&r.overflow!=="hidden"&&(o=!0),o&&e&&(o=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),o}function Xi(t,e){let r=t;for(at(r,e)&&(r=r.parentElement);r&&!at(r,e);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function Ur(t,e){let r=[],n=document.scrollingElement||document.documentElement;for(;t&&(at(t,e)&&r.push(t),t!==n);)t=t.parentElement;return r}function et(t){return qe()?t.metaKey:t.ctrlKey}const _c=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Wr(t){return t instanceof HTMLInputElement&&!_c.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}let Vc=0;const Gr=new Map;function zc(t){let[e,r]=a.useState();return J(()=>{if(!t)return;let n=Gr.get(t);if(n)r(n.element.id);else{let o=`react-aria-description-${Vc++}`;r(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=t,document.body.appendChild(i),n={refCount:0,element:i},Gr.set(t,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),Gr.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function Et(t,e,r,n){let o=xe(r),i=r==null;a.useEffect(()=>{if(i||!t.current)return;let l=t.current;return l.addEventListener(e,o,n),()=>{l.removeEventListener(e,o,n)}},[t,e,n,i])}function ar(t,e,r={}){let{block:n="nearest",inline:o="nearest"}=r;if(t===e)return;let i=t.scrollTop,l=t.scrollLeft,s=e.getBoundingClientRect(),c=t.getBoundingClientRect(),u=window.getComputedStyle(e),d=window.getComputedStyle(t),f=document.scrollingElement||document.documentElement,m=t===f,h=t===f?0:c.top,g=t===f?t.clientHeight:c.bottom,y=t===f?0:c.left,v=t===f?t.clientWidth:c.right,E=parseFloat(u.scrollMarginTop)||0,$=parseFloat(u.scrollMarginBottom)||0,P=parseFloat(u.scrollMarginLeft)||0,k=parseFloat(u.scrollMarginRight)||0,L=parseFloat(d.scrollPaddingTop)||0,j=parseFloat(d.scrollPaddingBottom)||0,T=parseFloat(d.scrollPaddingLeft)||0,R=parseFloat(d.scrollPaddingRight)||0,I=parseFloat(d.borderTopWidth)||0,K=parseFloat(d.borderBottomWidth)||0,V=parseFloat(d.borderLeftWidth)||0,H=parseFloat(d.borderRightWidth)||0,B=s.top-E,p=s.bottom+$,w=s.left-P,N=s.right+k,C=t===f?0:V+H,M=t===f?0:I+K,x=t===f?0:t.offsetWidth-t.clientWidth-C,S=t===f?0:t.offsetHeight-t.clientHeight-M,D=h+(m?0:I)+L,U=g-(m?0:K)-j-S,W=y+(m?0:V)+T,G=v-(m?0:H)-R;d.direction==="rtl"&&!Bt()?W+=x:G-=x;let te=B<D||p>U,se=w<W||N>G;if(te&&n==="start")i+=B-D;else if(te&&n==="center")i+=(B+p)/2-(D+U)/2;else if(te&&n==="end")i+=p-U;else if(te&&n==="nearest"){let Y=B-D,pe=p-U;i+=Math.abs(Y)<=Math.abs(pe)?Y:pe}if(se&&o==="start")l+=w-W;else if(se&&o==="center")l+=(w+N)/2-(W+G)/2;else if(se&&o==="end")l+=N-G;else if(se&&o==="nearest"){let Y=w-W,pe=N-G;l+=Math.abs(Y)<=Math.abs(pe)?Y:pe}if(process.env.NODE_ENV==="test"){t.scrollLeft=l,t.scrollTop=i;return}t.scrollTo({left:l,top:i})}function xo(t,e={}){var n,o,i;let{containingElement:r}=e;if(t&&t.isConnected){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let{left:c,top:u}=t.getBoundingClientRect(),d=Ur(t,!0);for(let h of d)ar(h,t);let{left:f,top:m}=t.getBoundingClientRect();if(Math.abs(c-f)>1||Math.abs(u-m)>1){d=r?Ur(r,!0):[];for(let h of d)ar(h,r,{block:"center",inline:"center"});for(let h of Ur(t,!0))ar(h,t)}}else{let{left:c,top:u}=t.getBoundingClientRect();(n=t==null?void 0:t.scrollIntoView)==null||n.call(t,{block:"nearest"});let{left:d,top:f}=t.getBoundingClientRect();(Math.abs(c-d)>1||Math.abs(u-f)>1)&&((o=r==null?void 0:r.scrollIntoView)==null||o.call(r,{block:"center",inline:"center"}),(i=t.scrollIntoView)==null||i.call(t,{block:"nearest"}))}}}function fn(t){return t.pointerType===""&&t.isTrusted?!0:Bn()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function Hc(t){return!Bn()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function Uc(t,e,r){let n=xe(o=>{r&&!o.defaultPrevented&&r(e)});a.useEffect(()=>{var i;let o=(i=t==null?void 0:t.current)==null?void 0:i.form;return o==null||o.addEventListener("reset",n),()=>{o==null||o.removeEventListener("reset",n)}},[t])}function Wc(t,e=!0){let[r,n]=a.useState(!0),o=r&&e;return J(()=>{if(o&&t.current&&"getAnimations"in t.current)for(let i of t.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[t,o]),Zi(t,o,a.useCallback(()=>n(!1),[])),o}function Gc(t,e){let[r,n]=a.useState(e?"open":"closed");switch(r){case"open":e||n("exiting");break;case"closed":case"exiting":e&&n("open");break}let o=r==="exiting";return Zi(t,o,a.useCallback(()=>{n(i=>i==="exiting"?"closed":i)},[])),o}function Zi(t,e,r){J(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){r();return}let n=t.current.getAnimations();if(n.length===0){r();return}let o=!1;return Promise.allSettled(n.map(i=>i.finished)).then(()=>{o||jt.flushSync(()=>{r()})}),()=>{o=!0}}},[t,e,r])}const qc=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Yc(t){const e=fe(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:r,visibility:n}=t.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:i}=t.ownerDocument.defaultView;let{display:l,visibility:s}=i(t);o=l!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function Xc(t,e){return!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function Vn(t,e){return qc?t.checkVisibility({visibilityProperty:!0})&&!t.closest("[data-react-aria-prevent-focus]"):t.nodeName!=="#comment"&&Yc(t)&&Xc(t,e)&&(!t.parentElement||Vn(t.parentElement,t))}const zn=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],Zc=zn.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";zn.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Jc=zn.join(':not([hidden]):not([tabindex="-1"]),');function Ji(t,e){return t.matches(Zc)&&!el(t)&&((e==null?void 0:e.skipVisibilityCheck)||Vn(t))}function Qi(t){return t.matches(Jc)&&Vn(t)&&!el(t)}function el(t){let e=t;for(;e!=null;){if(e instanceof e.ownerDocument.defaultView.HTMLElement&&e.inert)return!0;e=e.parentElement}return!1}function wo(t){let e=t==null?void 0:t.defaultView;return(e==null?void 0:e.__webpack_nonce__)||globalThis.__webpack_nonce__||void 0}let qr=new WeakMap;function tl(t){let e=t??(typeof document<"u"?document:void 0);if(!e)return wo(e);if(qr.has(e))return qr.get(e);let r=e.querySelector('meta[property="csp-nonce"]'),n=r&&r instanceof fe(r).HTMLMetaElement&&(r.nonce||r.content)||wo(e)||void 0;return n!==void 0&&qr.set(e,n),n}function Qc(t,e,r){const{render:n,...o}=e,i=a.useRef(null),l=a.useMemo(()=>zt(r,i),[r,i]);J(()=>{var c;typeof process<"u"&&((c=process.env)==null?void 0:c.NODE_ENV)!=="production"&&n&&(i.current||console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"))},[t,n]);const s={...o,ref:l};return n?n(s,void 0):b.jsx(t,{...s})}const Eo={},ie=new Proxy({},{get(t,e){if(typeof e!="string")return;let r=Eo[e];return r||(r=a.forwardRef(Qc.bind(null,e)),Eo[e]=r),r}});var eu=/\s+/g,tu=t=>typeof t!="string"||!t?t:t.replace(eu," ").trim(),Dt=(...t)=>{const e=[],r=n=>{if(!n&&n!==0&&n!==0n)return;if(Array.isArray(n)){for(let i=0,l=n.length;i<l;i++)r(n[i]);return}const o=typeof n;if(o==="string"||o==="number"||o==="bigint"){if(o==="number"&&n!==n)return;e.push(String(n))}else if(o==="object"){const i=Object.keys(n);for(let l=0,s=i.length;l<s;l++){const c=i[l];n[c]&&e.push(c)}}};for(let n=0,o=t.length;n<o;n++){const i=t[n];i!=null&&r(i)}return e.length>0?tu(e.join(" ")):void 0},So=t=>t===!1?"false":t===!0?"true":t===0?"0":t,be=t=>{if(!t||typeof t!="object")return!0;for(const e in t)return!1;return!0},ru=(t,e)=>{if(t===e)return!0;if(!t||!e)return!1;const r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){const i=r[o];if(!n.includes(i)||t[i]!==e[i])return!1}return!0},nu=(t,e)=>{for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const n=e[r];r in t?t[r]=Dt(t[r],n):t[r]=n}return t},rl=(t,e)=>{for(let r=0;r<t.length;r++){const n=t[r];Array.isArray(n)?rl(n,e):n&&e.push(n)}},nl=(...t)=>{const e=[];rl(t,e);const r=[];for(let n=0;n<e.length;n++)e[n]&&r.push(e[n]);return r},pn=(t,e)=>{const r={};for(const n in t){const o=t[n];if(n in e){const i=e[n];Array.isArray(o)||Array.isArray(i)?r[n]=nl(i,o):typeof o=="object"&&typeof i=="object"&&o&&i?r[n]=pn(o,i):r[n]=i+" "+o}else r[n]=o}for(const n in e)n in t||(r[n]=e[n]);return r},ou={twMerge:!0,twMergeConfig:{}};function iu(){let t=null,e={},r=!1;return{get cachedTwMerge(){return t},set cachedTwMerge(n){t=n},get cachedTwMergeConfig(){return e},set cachedTwMergeConfig(n){e=n},get didTwMergeConfigChange(){return r},set didTwMergeConfigChange(n){r=n},reset(){t=null,e={},r=!1}}}var Re=iu(),lu=t=>{const e=(n,o)=>{const{extend:i=null,slots:l={},variants:s={},compoundVariants:c=[],compoundSlots:u=[],defaultVariants:d={}}=n,f={...ou,...o},m=i!=null&&i.base?Dt(i.base,n==null?void 0:n.base):n==null?void 0:n.base,h=i!=null&&i.variants&&!be(i.variants)?pn(s,i.variants):s,g=i!=null&&i.defaultVariants&&!be(i.defaultVariants)?{...i.defaultVariants,...d}:d;!be(f.twMergeConfig)&&!ru(f.twMergeConfig,Re.cachedTwMergeConfig)&&(Re.didTwMergeConfigChange=!0,Re.cachedTwMergeConfig=f.twMergeConfig);const y=be(i==null?void 0:i.slots),v=be(l)?{}:{base:Dt(n==null?void 0:n.base,y&&(i==null?void 0:i.base)),...l},E=y?v:nu({...i==null?void 0:i.slots},be(v)?{base:n==null?void 0:n.base}:v),$=be(i==null?void 0:i.compoundVariants)?c:nl(i==null?void 0:i.compoundVariants,c),P=L=>{if(be(h)&&be(l)&&y)return t(m,L==null?void 0:L.class,L==null?void 0:L.className)(f);if($&&!Array.isArray($))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof $}`);if(u&&!Array.isArray(u))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof u}`);const j=(p,w=h,N=null,C=null)=>{const M=w[p];if(!M||be(M))return null;const x=(C==null?void 0:C[p])??(L==null?void 0:L[p]);if(x===null)return null;const S=So(x);if(typeof S=="object")return null;const D=g==null?void 0:g[p],U=S??So(D);return M[U||"false"]},T=()=>{if(!h)return null;const p=Object.keys(h),w=[];for(let N=0;N<p.length;N++){const C=j(p[N],h);C&&w.push(C)}return w},R=(p,w)=>{if(!h||typeof h!="object")return null;const N=[];for(const C in h){const M=j(C,h,p,w),x=p==="base"&&typeof M=="string"?M:M&&M[p];x&&N.push(x)}return N},I={};for(const p in L){const w=L[p];w!==void 0&&(I[p]=w)}const K=(p,w)=>{var C;const N=typeof(L==null?void 0:L[p])=="object"?{[p]:(C=L[p])==null?void 0:C.initial}:{};return{...g,...I,...N,...w}},V=(p=[],w)=>{const N=[],C=p.length;for(let M=0;M<C;M++){const{class:x,className:S,...D}=p[M];let U=!0;const W=K(null,w);for(const G in D){const te=D[G],se=W[G];if(Array.isArray(te)){if(!te.includes(se)){U=!1;break}}else{if((te==null||te===!1)&&(se==null||se===!1))continue;if(se!==te){U=!1;break}}}U&&(x&&N.push(x),S&&N.push(S))}return N},H=p=>{const w=V($,p);if(!Array.isArray(w))return w;const N={},C=t;for(let M=0;M<w.length;M++){const x=w[M];if(typeof x=="string")N.base=C(N.base,x)(f);else if(typeof x=="object")for(const S in x)N[S]=C(N[S],x[S])(f)}return N},B=p=>{if(u.length<1)return null;const w={},N=K(null,p);for(let C=0;C<u.length;C++){const{slots:M=[],class:x,className:S,...D}=u[C];if(!be(D)){let U=!0;for(const W in D){const G=N[W],te=D[W];if(G===void 0||(Array.isArray(te)?!te.includes(G):te!==G)){U=!1;break}}if(!U)continue}for(let U=0;U<M.length;U++){const W=M[U];w[W]||(w[W]=[]),w[W].push([x,S])}}return w};if(!be(l)||!y){const p={};if(typeof E=="object"&&!be(E)){const w=t;for(const N in E)p[N]=C=>{const M=H(C),x=B(C);return w(E[N],R(N,C),M?M[N]:void 0,x?x[N]:void 0,C==null?void 0:C.class,C==null?void 0:C.className)(f)}}return p}return t(m,T(),V($),L==null?void 0:L.class,L==null?void 0:L.className)(f)},k=()=>{if(!(!h||typeof h!="object"))return Object.keys(h)};return P.variantKeys=k(),P.extend=i,P.base=m,P.slots=E,P.variants=h,P.defaultVariants=g,P.compoundSlots=u,P.compoundVariants=$,P};return{tv:e,createTV:n=>(o,i)=>e(o,i?pn(n,i):n)}};const su=(t,e)=>{const r=new Array(t.length+e.length);for(let n=0;n<t.length;n++)r[n]=t[n];for(let n=0;n<e.length;n++)r[t.length+n]=e[n];return r},au=(t,e)=>({classGroupId:t,validator:e}),ol=(t=new Map,e=null,r)=>({nextPart:t,validators:e,classGroupId:r}),br="-",Co=[],cu="arbitrary..",uu=t=>{const e=fu(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return du(l);const s=l.split(br),c=s[0]===""&&s.length>1?1:0;return il(s,c,e)},getConflictingClassGroupIds:(l,s)=>{if(s){const c=n[l],u=r[l];return c?u?su(u,c):c:u||Co}return r[l]||Co}}},il=(t,e,r)=>{if(t.length-e===0)return r.classGroupId;const o=t[e],i=r.nextPart.get(o);if(i){const u=il(t,e+1,i);if(u)return u}const l=r.validators;if(l===null)return;const s=e===0?t.join(br):t.slice(e).join(br),c=l.length;for(let u=0;u<c;u++){const d=l[u];if(d.validator(s))return d.classGroupId}},du=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),r=e.indexOf(":"),n=e.slice(0,r);return n?cu+n:void 0})(),fu=t=>{const{theme:e,classGroups:r}=t;return pu(r,e)},pu=(t,e)=>{const r=ol();for(const n in t){const o=t[n];Hn(o,r,n,e)}return r},Hn=(t,e,r,n)=>{const o=t.length;for(let i=0;i<o;i++){const l=t[i];hu(l,e,r,n)}},hu=(t,e,r,n)=>{if(typeof t=="string"){bu(t,e,r);return}if(typeof t=="function"){mu(t,e,r,n);return}gu(t,e,r,n)},bu=(t,e,r)=>{const n=t===""?e:ll(e,t);n.classGroupId=r},mu=(t,e,r,n)=>{if(yu(t)){Hn(t(n),e,r,n);return}e.validators===null&&(e.validators=[]),e.validators.push(au(r,t))},gu=(t,e,r,n)=>{const o=Object.entries(t),i=o.length;for(let l=0;l<i;l++){const[s,c]=o[l];Hn(c,ll(e,s),r,n)}},ll=(t,e)=>{let r=t;const n=e.split(br),o=n.length;for(let i=0;i<o;i++){const l=n[i];let s=r.nextPart.get(l);s||(s=ol(),r.nextPart.set(l,s)),r=s}return r},yu=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,vu=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=Object.create(null),n=Object.create(null);const o=(i,l)=>{r[i]=l,e++,e>t&&(e=0,n=r,r=Object.create(null))};return{get(i){let l=r[i];if(l!==void 0)return l;if((l=n[i])!==void 0)return o(i,l),l},set(i,l){i in r?r[i]=l:o(i,l)}}},hn="!",Po=":",$u=[],ko=(t,e,r,n,o)=>({modifiers:t,hasImportantModifier:e,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),xu=t=>{const{prefix:e,experimentalParseClassName:r}=t;let n=o=>{const i=[];let l=0,s=0,c=0,u;const d=o.length;for(let y=0;y<d;y++){const v=o[y];if(l===0&&s===0){if(v===Po){i.push(o.slice(c,y)),c=y+1;continue}if(v==="/"){u=y;continue}}v==="["?l++:v==="]"?l--:v==="("?s++:v===")"&&s--}const f=i.length===0?o:o.slice(c);let m=f,h=!1;f.endsWith(hn)?(m=f.slice(0,-1),h=!0):f.startsWith(hn)&&(m=f.slice(1),h=!0);const g=u&&u>c?u-c:void 0;return ko(i,h,m,g)};if(e){const o=e+Po,i=n;n=l=>l.startsWith(o)?i(l.slice(o.length)):ko($u,!1,l,void 0,!0)}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},wu=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((r,n)=>{e.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let i=0;i<r.length;i++){const l=r[i],s=l[0]==="[",c=e.has(l);s||c?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(l)):o.push(l)}return o.length>0&&(o.sort(),n.push(...o)),n}},Eu=t=>({cache:vu(t.cacheSize),parseClassName:xu(t),sortModifiers:wu(t),...uu(t)}),Su=/\s+/,Cu=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=e,l=[],s=t.trim().split(Su);let c="";for(let u=s.length-1;u>=0;u-=1){const d=s[u],{isExternal:f,modifiers:m,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:y}=r(d);if(f){c=d+(c.length>0?" "+c:c);continue}let v=!!y,E=n(v?g.substring(0,y):g);if(!E){if(!v){c=d+(c.length>0?" "+c:c);continue}if(E=n(g),!E){c=d+(c.length>0?" "+c:c);continue}v=!1}const $=m.length===0?"":m.length===1?m[0]:i(m).join(":"),P=h?$+hn:$,k=P+E;if(l.indexOf(k)>-1)continue;l.push(k);const L=o(E,v);for(let j=0;j<L.length;++j){const T=L[j];l.push(P+T)}c=d+(c.length>0?" "+c:c)}return c},Pu=(...t)=>{let e=0,r,n,o="";for(;e<t.length;)(r=t[e++])&&(n=sl(r))&&(o&&(o+=" "),o+=n);return o},sl=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=sl(t[n]))&&(r&&(r+=" "),r+=e);return r},bn=(t,...e)=>{let r,n,o,i;const l=c=>{const u=e.reduce((d,f)=>f(d),t());return r=Eu(u),n=r.cache.get,o=r.cache.set,i=s,s(c)},s=c=>{const u=n(c);if(u)return u;const d=Cu(c,r);return o(c,d),d};return i=l,(...c)=>i(Pu(...c))},ku=[],ae=t=>{const e=r=>r[t]||ku;return e.isThemeGetter=!0,e},al=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,cl=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Tu=/^\d+\/\d+$/,Mu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ru=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Nu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Du=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Lu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Je=t=>Tu.test(t),q=t=>!!t&&!Number.isNaN(Number(t)),Be=t=>!!t&&Number.isInteger(Number(t)),Yr=t=>t.endsWith("%")&&q(t.slice(0,-1)),Me=t=>Mu.test(t),Iu=()=>!0,Ku=t=>Ru.test(t)&&!Nu.test(t),ul=()=>!1,Au=t=>Du.test(t),Fu=t=>Lu.test(t),Ou=t=>!F(t)&&!O(t),ju=t=>ft(t,pl,ul),F=t=>al.test(t),Ue=t=>ft(t,hl,Ku),Xr=t=>ft(t,Hu,q),To=t=>ft(t,dl,ul),Bu=t=>ft(t,fl,Fu),Yt=t=>ft(t,bl,Au),O=t=>cl.test(t),yt=t=>pt(t,hl),_u=t=>pt(t,Uu),Mo=t=>pt(t,dl),Vu=t=>pt(t,pl),zu=t=>pt(t,fl),Xt=t=>pt(t,bl,!0),ft=(t,e,r)=>{const n=al.exec(t);return n?n[1]?e(n[1]):r(n[2]):!1},pt=(t,e,r=!1)=>{const n=cl.exec(t);return n?n[1]?e(n[1]):r:!1},dl=t=>t==="position"||t==="percentage",fl=t=>t==="image"||t==="url",pl=t=>t==="length"||t==="size"||t==="bg-size",hl=t=>t==="length",Hu=t=>t==="number",Uu=t=>t==="family-name",bl=t=>t==="shadow",mn=()=>{const t=ae("color"),e=ae("font"),r=ae("text"),n=ae("font-weight"),o=ae("tracking"),i=ae("leading"),l=ae("breakpoint"),s=ae("container"),c=ae("spacing"),u=ae("radius"),d=ae("shadow"),f=ae("inset-shadow"),m=ae("text-shadow"),h=ae("drop-shadow"),g=ae("blur"),y=ae("perspective"),v=ae("aspect"),E=ae("ease"),$=ae("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],L=()=>[...k(),O,F],j=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],R=()=>[O,F,c],I=()=>[Je,"full","auto",...R()],K=()=>[Be,"none","subgrid",O,F],V=()=>["auto",{span:["full",Be,O,F]},Be,O,F],H=()=>[Be,"auto",O,F],B=()=>["auto","min","max","fr",O,F],p=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],w=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...R()],C=()=>[Je,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],M=()=>[t,O,F],x=()=>[...k(),Mo,To,{position:[O,F]}],S=()=>["no-repeat",{repeat:["","x","y","space","round"]}],D=()=>["auto","cover","contain",Vu,ju,{size:[O,F]}],U=()=>[Yr,yt,Ue],W=()=>["","none","full",u,O,F],G=()=>["",q,yt,Ue],te=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>[q,Yr,Mo,To],pe=()=>["","none",g,O,F],Te=()=>["none",q,O,F],_=()=>["none",q,O,F],ye=()=>[q,O,F],he=()=>[Je,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Me],breakpoint:[Me],color:[Iu],container:[Me],"drop-shadow":[Me],ease:["in","out","in-out"],font:[Ou],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Me],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Me],shadow:[Me],spacing:["px",q],text:[Me],"text-shadow":[Me],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Je,F,O,v]}],container:["container"],columns:[{columns:[q,F,O,s]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:L()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[Be,"auto",O,F]}],basis:[{basis:[Je,"full","auto",s,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[q,Je,"auto","initial","none",F]}],grow:[{grow:["",q,O,F]}],shrink:[{shrink:["",q,O,F]}],order:[{order:[Be,"first","last","none",O,F]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:V()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:V()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":B()}],"auto-rows":[{"auto-rows":B()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...p(),"normal"]}],"justify-items":[{"justify-items":[...w(),"normal"]}],"justify-self":[{"justify-self":["auto",...w()]}],"align-content":[{content:["normal",...p()]}],"align-items":[{items:[...w(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...w(),{baseline:["","last"]}]}],"place-content":[{"place-content":p()}],"place-items":[{"place-items":[...w(),"baseline"]}],"place-self":[{"place-self":["auto",...w()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:C()}],w:[{w:[s,"screen",...C()]}],"min-w":[{"min-w":[s,"screen","none",...C()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[l]},...C()]}],h:[{h:["screen","lh",...C()]}],"min-h":[{"min-h":["screen","lh","none",...C()]}],"max-h":[{"max-h":["screen","lh",...C()]}],"font-size":[{text:["base",r,yt,Ue]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,O,Xr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Yr,F]}],"font-family":[{font:[_u,F,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,O,F]}],"line-clamp":[{"line-clamp":[q,"none",O,Xr]}],leading:[{leading:[i,...R()]}],"list-image":[{"list-image":["none",O,F]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",O,F]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[q,"from-font","auto",O,Ue]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[q,"auto",O,F]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O,F]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O,F]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:x()}],"bg-repeat":[{bg:S()}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Be,O,F],radial:["",O,F],conic:[Be,O,F]},zu,Bu]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:U()}],"gradient-via-pos":[{via:U()}],"gradient-to-pos":[{to:U()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:G()}],"border-w-x":[{"border-x":G()}],"border-w-y":[{"border-y":G()}],"border-w-s":[{"border-s":G()}],"border-w-e":[{"border-e":G()}],"border-w-t":[{"border-t":G()}],"border-w-r":[{"border-r":G()}],"border-w-b":[{"border-b":G()}],"border-w-l":[{"border-l":G()}],"divide-x":[{"divide-x":G()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":G()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[q,O,F]}],"outline-w":[{outline:["",q,yt,Ue]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",d,Xt,Yt]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",f,Xt,Yt]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[q,Ue]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",m,Xt,Yt]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[q,O,F]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[q]}],"mask-image-linear-from-pos":[{"mask-linear-from":Y()}],"mask-image-linear-to-pos":[{"mask-linear-to":Y()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":Y()}],"mask-image-t-to-pos":[{"mask-t-to":Y()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":Y()}],"mask-image-r-to-pos":[{"mask-r-to":Y()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":Y()}],"mask-image-b-to-pos":[{"mask-b-to":Y()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":Y()}],"mask-image-l-to-pos":[{"mask-l-to":Y()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":Y()}],"mask-image-x-to-pos":[{"mask-x-to":Y()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":Y()}],"mask-image-y-to-pos":[{"mask-y-to":Y()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[O,F]}],"mask-image-radial-from-pos":[{"mask-radial-from":Y()}],"mask-image-radial-to-pos":[{"mask-radial-to":Y()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[q]}],"mask-image-conic-from-pos":[{"mask-conic-from":Y()}],"mask-image-conic-to-pos":[{"mask-conic-to":Y()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:x()}],"mask-repeat":[{mask:S()}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",O,F]}],filter:[{filter:["","none",O,F]}],blur:[{blur:pe()}],brightness:[{brightness:[q,O,F]}],contrast:[{contrast:[q,O,F]}],"drop-shadow":[{"drop-shadow":["","none",h,Xt,Yt]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",q,O,F]}],"hue-rotate":[{"hue-rotate":[q,O,F]}],invert:[{invert:["",q,O,F]}],saturate:[{saturate:[q,O,F]}],sepia:[{sepia:["",q,O,F]}],"backdrop-filter":[{"backdrop-filter":["","none",O,F]}],"backdrop-blur":[{"backdrop-blur":pe()}],"backdrop-brightness":[{"backdrop-brightness":[q,O,F]}],"backdrop-contrast":[{"backdrop-contrast":[q,O,F]}],"backdrop-grayscale":[{"backdrop-grayscale":["",q,O,F]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[q,O,F]}],"backdrop-invert":[{"backdrop-invert":["",q,O,F]}],"backdrop-opacity":[{"backdrop-opacity":[q,O,F]}],"backdrop-saturate":[{"backdrop-saturate":[q,O,F]}],"backdrop-sepia":[{"backdrop-sepia":["",q,O,F]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",O,F]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[q,"initial",O,F]}],ease:[{ease:["linear","initial",E,O,F]}],delay:[{delay:[q,O,F]}],animate:[{animate:["none",$,O,F]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,O,F]}],"perspective-origin":[{"perspective-origin":L()}],rotate:[{rotate:Te()}],"rotate-x":[{"rotate-x":Te()}],"rotate-y":[{"rotate-y":Te()}],"rotate-z":[{"rotate-z":Te()}],scale:[{scale:_()}],"scale-x":[{"scale-x":_()}],"scale-y":[{"scale-y":_()}],"scale-z":[{"scale-z":_()}],"scale-3d":["scale-3d"],skew:[{skew:ye()}],"skew-x":[{"skew-x":ye()}],"skew-y":[{"skew-y":ye()}],transform:[{transform:[O,F,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:he()}],"translate-x":[{"translate-x":he()}],"translate-y":[{"translate-y":he()}],"translate-z":[{"translate-z":he()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O,F]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O,F]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[q,yt,Ue,Xr]}],stroke:[{stroke:["none",...M()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Wu=(t,{cacheSize:e,prefix:r,experimentalParseClassName:n,extend:o={},override:i={}})=>(St(t,"cacheSize",e),St(t,"prefix",r),St(t,"experimentalParseClassName",n),Zt(t.theme,i.theme),Zt(t.classGroups,i.classGroups),Zt(t.conflictingClassGroups,i.conflictingClassGroups),Zt(t.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),St(t,"orderSensitiveModifiers",i.orderSensitiveModifiers),Jt(t.theme,o.theme),Jt(t.classGroups,o.classGroups),Jt(t.conflictingClassGroups,o.conflictingClassGroups),Jt(t.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),ml(t,o,"orderSensitiveModifiers"),t),St=(t,e,r)=>{r!==void 0&&(t[e]=r)},Zt=(t,e)=>{if(e)for(const r in e)St(t,r,e[r])},Jt=(t,e)=>{if(e)for(const r in e)ml(t,e,r)},ml=(t,e,r)=>{const n=e[r];n!==void 0&&(t[r]=t[r]?t[r].concat(n):n)},Gu=(t,...e)=>typeof t=="function"?bn(mn,t,...e):bn(()=>Wu(mn(),t),...e),qu=bn(mn);var Yu=t=>be(t)?qu:Gu({...t,extend:{theme:t.theme,classGroups:t.classGroups,conflictingClassGroupModifiers:t.conflictingClassGroupModifiers,conflictingClassGroups:t.conflictingClassGroups,...t.extend}}),gl=(t,e)=>{const r=Dt(t);return!r||!((e==null?void 0:e.twMerge)??!0)?r:((!Re.cachedTwMerge||Re.didTwMergeConfigChange)&&(Re.didTwMergeConfigChange=!1,Re.cachedTwMerge=Yu(Re.cachedTwMergeConfig)),Re.cachedTwMerge(r)||void 0)},ee=(...t)=>gl(t,{}),Xu=(...t)=>e=>gl(t,e),{tv:Ee}=lu(Xu);const Zu=Ee({defaultVariants:{status:"default"},slots:{base:"alert",content:"alert__content",description:"alert__description",indicator:"alert__indicator",title:"alert__title"},variants:{status:{accent:{base:"alert--accent"},danger:{base:"alert--danger"},default:{base:"alert--default"},success:{base:"alert--success"},warning:{base:"alert--warning"}}}}),ot=Ee({base:"button",defaultVariants:{fullWidth:!1,isIconOnly:!1,size:"md",variant:"primary"},variants:{fullWidth:{false:"",true:"button--full-width"},isIconOnly:{true:"button--icon-only"},size:{lg:"button--lg",md:"button--md",sm:"button--sm"},variant:{danger:"button--danger","danger-soft":"button--danger-soft",ghost:"button--ghost",outline:"button--outline",primary:"button--primary",secondary:"button--secondary",tertiary:"button--tertiary"}}}),yl=Ee({defaultVariants:{fullWidth:!1,orientation:"horizontal"},slots:{base:"button-group",separator:"button-group__separator"},variants:{fullWidth:{false:{},true:{base:"button-group--full-width"}},orientation:{horizontal:{base:"button-group--horizontal"},vertical:{base:"button-group--vertical"}}}}),Ju=Ee({defaultVariants:{variant:"default"},slots:{base:"card",content:"card__content",description:"card__description",footer:"card__footer",header:"card__header",title:"card__title"},variants:{variant:{default:{base:"card--default"},secondary:{base:"card--secondary"},tertiary:{base:"card--tertiary"},transparent:{base:"card--transparent"}}}}),Qu=Ee({defaultVariants:{variant:"primary"},slots:{base:"checkbox",content:"checkbox__content",control:"checkbox__control",indicator:"checkbox__indicator"},variants:{variant:{primary:{base:"checkbox--primary"},secondary:{base:"checkbox--secondary"}}}}),ed=Ee({defaultVariants:{color:"default",variant:"secondary"},slots:{base:"chip",label:"chip__label"},variants:{color:{accent:{base:"chip--accent"},danger:{base:"chip--danger"},default:{base:"chip--default"},success:{base:"chip--success"},warning:{base:"chip--warning"}},size:{lg:{base:"chip--lg"},md:{base:"chip--md"},sm:{base:"chip--sm"}},variant:{primary:{base:"chip--primary"},secondary:{base:"chip--secondary"},soft:{base:"chip--soft"},tertiary:{base:"chip--tertiary"}}}}),td=Ee({slots:{menu:"dropdown__menu",popover:"dropdown__popover",root:"dropdown",trigger:"dropdown__trigger"}}),rd=Ee({slots:{base:"link",icon:"link__icon"}}),nd=Ee({defaultVariants:{color:"accent",size:"md"},slots:{base:"progress-bar",fill:"progress-bar__fill",output:"progress-bar__output",track:"progress-bar__track"},variants:{color:{accent:{base:"progress-bar--accent"},danger:{base:"progress-bar--danger"},default:{base:"progress-bar--default"},success:{base:"progress-bar--success"},warning:{base:"progress-bar--warning"}},size:{lg:{base:"progress-bar--lg"},md:{base:"progress-bar--md"},sm:{base:"progress-bar--sm"}}}}),od=Ee({defaultVariants:{variant:"default"},slots:{indicator:"menu-item__indicator",item:"menu-item",submenuIndicator:"menu-item__indicator menu-item__indicator--submenu"},variants:{variant:{danger:{item:"menu-item--danger"},default:{item:"menu-item--default"}}}}),id=Ee({base:"menu-section"}),ld=Ee({base:"separator",defaultVariants:{orientation:"horizontal",variant:"default"},variants:{orientation:{horizontal:"separator--horizontal",vertical:"separator--vertical"},variant:{default:"separator--default",secondary:"separator--secondary",tertiary:"separator--tertiary"}}}),vl=Symbol("default");function ht({values:t,children:e}){for(let[r,n]of t)e=a.createElement(r.Provider,{value:n},e);return e}function Fe(t){let{className:e,style:r,children:n,defaultClassName:o,defaultChildren:i,defaultStyle:l,values:s,render:c}=t;return a.useMemo(()=>{let u,d,f;return typeof e=="function"?u=e({...s,defaultClassName:o}):u=e,typeof r=="function"?d=r({...s,defaultStyle:l||{}}):d=r,typeof n=="function"?f=n({...s,defaultChildren:i}):n==null?f=i:f=n,{className:u??o,style:d||l?{...l,...d}:void 0,children:f??i,"data-rac":"",render:c?m=>c(m,s):void 0}},[e,r,n,o,i,l,s,c])}function sd(t,e){return r=>e(typeof t=="function"?t(r):t,r)}function Ut(t,e){let r=a.useContext(t);if(e===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=e||vl;if(!r.slots[n]){let o=new Intl.ListFormat().format(Object.keys(r.slots).map(l=>`"${l}"`)),i=e?`Invalid slot "${e}".`:"A slot prop is required.";throw new Error(`${i} Valid slot names are ${o}.`)}return r.slots[n]}return r}function Oe(t,e,r){let n=Ut(r,t.slot)||{},{ref:o,...i}=n,l=Ht(a.useMemo(()=>zt(e,o),[e,o])),s=X(i,t);return"style"in i&&i.style&&"style"in t&&t.style&&(typeof i.style=="function"||typeof t.style=="function"?s.style=c=>{let u=typeof i.style=="function"?i.style(c):i.style,d={...c.defaultStyle,...u},f=typeof t.style=="function"?t.style({...c,defaultStyle:d}):t.style;return{...d,...f}}:s.style={...i.style,...t.style}),[s,l]}function $l(t=!0){let[e,r]=a.useState(t),n=a.useRef(!1),o=a.useCallback(i=>{n.current=!0,r(!!i)},[]);return J(()=>{n.current||r(!1)},[]),[o,e]}function ad(t){const e=/^(data-.*)$/;let r={};for(const n in t)e.test(n)||(r[n]=t[n]);return r}function cd(t,e,r){let{render:n,...o}=e,i=a.useRef(null),l=a.useMemo(()=>zt(r,i),[r,i]);J(()=>{process.env.NODE_ENV!=="production"&&n&&(i.current?i.current.localName!==t&&console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${t}>, got <${i.current.localName}>. This may break the component behavior and accessibility.`):console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"))},[t,n]);let s={...o,ref:l};return n?n(s,void 0):a.createElement(t,s)}const Ro={},Ce=new Proxy({},{get(t,e){if(typeof e!="string")return;let r=Ro[e];return r||(r=a.forwardRef(cd.bind(null,e)),Ro[e]=r),r}});typeof HTMLTemplateElement<"u"&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(t){return this.content.appendChild(t)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(t){return this.content.removeChild(t)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(t,e){return this.content.insertBefore(t,e)}}));const mr=a.createContext(!1);function ud(t){if(a.useContext(mr))return a.createElement(a.Fragment,null,t.children);let r=a.createElement(mr.Provider,{value:!0},t.children);return a.createElement("template",null,r)}function dd(t){let e=(r,n)=>a.useContext(mr)?null:t(r,n);return e.displayName=t.displayName||t.name,a.forwardRef(e)}function xl(){return a.useContext(mr)}const fd=a.createContext({});function pd(t){let{id:e,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:i="label"}=t;e=ge(e);let l=ge(),s={};r?(n=n?`${l} ${n}`:l,s={id:l,htmlFor:i==="label"?e:void 0}):!n&&!o&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let c=Yi({id:e,"aria-label":o,"aria-labelledby":n});return{labelProps:s,fieldProps:c}}const hd=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),bd=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function md(t){if(Intl.Locale){let r=new Intl.Locale(t).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return hd.has(r.script)}let e=t.split("-")[0];return bd.has(e)}const wl=Symbol.for("react-aria.i18n.locale");function El(){let t=typeof window<"u"&&window[wl]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:md(t)?"rtl":"ltr"}}let gn=El(),Ct=new Set;function No(){gn=El();for(let t of Ct)t(gn)}function gd(){let t=dt(),[e,r]=a.useState(gn);return a.useEffect(()=>(Ct.size===0&&window.addEventListener("languagechange",No),Ct.add(r),()=>{Ct.delete(r),Ct.size===0&&window.removeEventListener("languagechange",No)}),[]),t?{locale:typeof window<"u"&&window[wl]||"en-US",direction:"ltr"}:e}const yd=a.createContext(null);function Ze(){let t=gd();return a.useContext(yd)||t}let Zr=new Map,yn=!1;try{yn=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let gr=!1;try{gr=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Sl={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class vd{constructor(e,r={}){this.numberFormatter=$d(e,r),this.options=r}format(e){var n;let r="";if(!yn&&this.options.signDisplay!=null?r=xd(this.numberFormatter,this.options.signDisplay,e):r=this.numberFormatter.format(e),this.options.style==="unit"&&!gr){let{unit:o,unitDisplay:i="short",locale:l}=this.resolvedOptions();if(!o)return r;let s=(n=Sl[o])==null?void 0:n[i];r+=s[l]||s.default}return r}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(e,r);if(r<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(r)}`}formatRangeToParts(e,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(e,r);if(r<e)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(e),o=this.numberFormatter.formatToParts(r);return[...n.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!yn&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!gr&&this.options.style==="unit"&&(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}}function $d(t,e={}){var i;let{numberingSystem:r}=e;if(r&&t.includes("-nu-")&&(t.includes("-u-")||(t+="-u-"),t+=`-nu-${r}`),e.style==="unit"&&!gr){let{unit:l,unitDisplay:s="short"}=e;if(!l)throw new Error('unit option must be provided with style: "unit"');if(!((i=Sl[l])!=null&&i[s]))throw new Error(`Unsupported unit ${l} with unitDisplay = ${s}`);e={...e,style:"decimal"}}let n=t+(e?Object.entries(e).sort((l,s)=>l[0]<s[0]?-1:1).join():"");if(Zr.has(n))return Zr.get(n);let o=new Intl.NumberFormat(t,e);return Zr.set(n,o),o}function xd(t,e,r){if(e==="auto")return t.format(r);if(e==="never")return t.format(Math.abs(r));{let n=!1;if(e==="always"?n=r>0||Object.is(r,0):e==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=t.format(-r),i=t.format(r),l=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...l].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(l,"+").replace("!!!",i)}else return t.format(r)}}function wd(t={}){let{locale:e}=Ze();return a.useMemo(()=>new vd(e,t),[e,t])}function yr(t,e=-1/0,r=1/0){return Math.min(Math.max(t,e),r)}function Ed(t){let{value:e=0,minValue:r=0,maxValue:n=100,valueLabel:o,isIndeterminate:i,formatOptions:l={style:"percent"}}=t,s=ue(t,{labelable:!0}),{labelProps:c,fieldProps:u}=pd({...t,labelElementType:"span"});e=yr(e,r,n);let d=(e-r)/(n-r),f=wd(l);if(!i&&!o){let m=l.style==="percent"?d:e;o=f.format(m)}return{progressBarProps:X(s,{...u,"aria-valuenow":i?void 0:e,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:c}}function Sd(t,e=-1/0,r=1/0){return Math.min(Math.max(t,e),r)}const Cl=a.createContext(null),Cd=a.forwardRef(function(e,r){[e,r]=Oe(e,r,Cl);let{value:n=0,minValue:o=0,maxValue:i=100,isIndeterminate:l=!1}=e;n=Sd(n,o,i);let[s,c]=$l(!e["aria-label"]&&!e["aria-labelledby"]),{progressBarProps:u,labelProps:d}=Ed({...e,label:c}),f=l?void 0:(n-o)/(i-o)*100,m=Fe({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:f,valueText:u["aria-valuetext"],isIndeterminate:l}}),h=ue(e,{global:!0});return a.createElement(Ce.div,{...X(h,m,u),ref:r,slot:e.slot||void 0},a.createElement(fd.Provider,{value:{...d,ref:s,elementType:"span"}},m.children))}),Pl=7e3;let Pe=null;function Do(t,e="assertive",r=Pl){Pe?Pe.announce(t,e,r):(Pe=new Pd,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Pe.announce(t,e,r):setTimeout(()=>{Pe!=null&&Pe.isAttached()&&(Pe==null||Pe.announce(t,e,r))},100))}class Pd{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){var e;return(e=this.node)==null?void 0:e.isConnected}createLog(e){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",e),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,r="assertive",n=Pl){var i,l;if(!this.node)return;let o=document.createElement("div");typeof e=="object"?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",e["aria-labelledby"])):o.textContent=e,r==="assertive"?(i=this.assertiveLog)==null||i.appendChild(o):(l=this.politeLog)==null||l.appendChild(o),e!==""&&setTimeout(()=>{o.remove()},n)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}}function Un(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function kl(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function Tl(t){let e=a.useRef({isFocused:!1,observer:null});return J(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),a.useCallback(r=>{let n=A(r);if(n instanceof HTMLButtonElement||n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement){e.current.isFocused=!0;let o=n,i=l=>{if(e.current.isFocused=!1,o.disabled){let s=Un(l);t==null||t(s)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),e.current.observer=new MutationObserver(()=>{var l;if(e.current.isFocused&&o.disabled){(l=e.current.observer)==null||l.disconnect();let s=o===ne()?null:ne();o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),e.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[t])}let vr=!1;function Lo(t){for(;t&&!Ji(t,{skipVisibilityCheck:!0});)t=t.parentElement;let e=fe(t),r=e.document.activeElement;if(!r||r===t)return;vr=!0;let n=!1,o=d=>{(A(d)===r||n)&&d.stopImmediatePropagation()},i=d=>{(A(d)===r||n)&&(d.stopImmediatePropagation(),!t&&!n&&(n=!0,de(r),c()))},l=d=>{(A(d)===t||n)&&d.stopImmediatePropagation()},s=d=>{(A(d)===t||n)&&(d.stopImmediatePropagation(),n||(n=!0,de(r),c()))};e.addEventListener("blur",o,!0),e.addEventListener("focusout",i,!0),e.addEventListener("focusin",s,!0),e.addEventListener("focus",l,!0);let c=()=>{cancelAnimationFrame(u),e.removeEventListener("blur",o,!0),e.removeEventListener("focusout",i,!0),e.removeEventListener("focusin",s,!0),e.removeEventListener("focus",l,!0),vr=!1,n=!1},u=requestAnimationFrame(c);return c}let Ke=null;const Lt=new Set;let Tt=new Map,Ye=!1,vn=!1;const kd={Tab:!0,Escape:!0};function Nr(t,e){for(let r of Lt)r(t,e)}function Td(t){return!(t.metaKey||!qe()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function $r(t){Ye=!0,!Ie.isOpening&&Td(t)&&(Ke="keyboard",Nr("keyboard",t))}function ve(t){Ke="pointer","pointerType"in t&&t.pointerType,(t.type==="mousedown"||t.type==="pointerdown")&&(Ye=!0,Nr("pointer",t))}function Ml(t){!Ie.isOpening&&fn(t)&&(Ye=!0,Ke="virtual")}function Rl(t){let e=fe(A(t)),r=Z(A(t));A(t)===e||A(t)===r||vr||!t.isTrusted||(!Ye&&!vn&&(Ke="virtual",Nr("virtual",t)),Ye=!1,vn=!1)}function Nl(){vr||(Ye=!1,vn=!0)}function xr(t){if(typeof window>"u"||typeof document>"u")return;const e=fe(t),r=Z(t);if(Tt.get(e))return;let n=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Ye=!0,n.apply(this,arguments)},r.addEventListener("keydown",$r,!0),r.addEventListener("keyup",$r,!0),r.addEventListener("click",Ml,!0),e.addEventListener("focus",Rl,!0),e.addEventListener("blur",Nl,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",ve,!0),r.addEventListener("pointermove",ve,!0),r.addEventListener("pointerup",ve,!0)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",ve,!0),r.addEventListener("mousemove",ve,!0),r.addEventListener("mouseup",ve,!0)),e.addEventListener("beforeunload",()=>{Dl(t)},{once:!0}),Tt.set(e,{focus:n})}const Dl=(t,e)=>{const r=fe(t),n=Z(t);e&&n.removeEventListener("DOMContentLoaded",e),Tt.has(r)&&(r.HTMLElement.prototype.focus=Tt.get(r).focus,n.removeEventListener("keydown",$r,!0),n.removeEventListener("keyup",$r,!0),n.removeEventListener("click",Ml,!0),r.removeEventListener("focus",Rl,!0),r.removeEventListener("blur",Nl,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",ve,!0),n.removeEventListener("pointermove",ve,!0),n.removeEventListener("pointerup",ve,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",ve,!0),n.removeEventListener("mousemove",ve,!0),n.removeEventListener("mouseup",ve,!0)),Tt.delete(r))};function Md(t){const e=Z(t);let r;return e.readyState!=="loading"?xr(t):(r=()=>{xr(t)},e.addEventListener("DOMContentLoaded",r)),()=>Dl(t,r)}typeof document<"u"&&Md();function It(){return Ke!=="pointer"}function Kt(){return Ke}function $n(t){Ke=t,Nr(t,null)}function Rd(){xr();let[t,e]=a.useState(Ke);return a.useEffect(()=>{let r=()=>{e(Ke)};return Lt.add(r),()=>{Lt.delete(r)}},[]),dt()?null:t}const Nd=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Dd(t,e,r){let n=r?A(r):void 0,o=Z(n),i=fe(n);const l=typeof i<"u"?i.HTMLInputElement:HTMLInputElement,s=typeof i<"u"?i.HTMLTextAreaElement:HTMLTextAreaElement,c=typeof i<"u"?i.HTMLElement:HTMLElement,u=typeof i<"u"?i.KeyboardEvent:KeyboardEvent;let d=ne(o);return t=t||d instanceof l&&!Nd.has(d.type)||d instanceof s||d instanceof c&&d.isContentEditable,!(t&&e==="keyboard"&&r instanceof u&&!kd[r.key])}function Ld(t,e,r){xr(),a.useEffect(()=>{if((r==null?void 0:r.enabled)===!1)return;let n=(o,i)=>{Dd(!!(r!=null&&r.isTextInput),o,i)&&t(It())};return Lt.add(n),()=>{Lt.delete(n)}},e)}function ct(t){if(!t.isConnected)return;const e=Z(t);if(Kt()==="virtual"){let r=ne(e);qi(()=>{const n=ne(e);(n===r||n===e.body)&&t.isConnected&&de(t)})}else de(t)}function Ll(t){let{isDisabled:e,onFocus:r,onBlur:n,onFocusChange:o}=t;const i=a.useCallback(c=>{if(A(c)===c.currentTarget)return n&&n(c),o&&o(!1),!0},[n,o]),l=Tl(i),s=a.useCallback(c=>{let u=A(c);const d=Z(u),f=d?ne(d):ne();u===c.currentTarget&&u===f&&(r&&r(c),o&&o(!0),l(c))},[o,r,l]);return{focusProps:{onFocus:!e&&(r||o||n)?s:void 0,onBlur:!e&&(n||o)?i:void 0}}}function Io(t){if(!t)return;let e=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){e&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):e=!0},continuePropagation(){e=!1},isPropagationStopped(){return e}};t(n),e&&r.stopPropagation()}}function Il(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:Io(t.onKeyDown),onKeyUp:Io(t.onKeyUp)}}}let xn=a.createContext(null);function Id(t){let e=a.useContext(xn)||{};_n(e,t);let{ref:r,...n}=e;return n}function Dr(t,e){let{focusProps:r}=Ll(t),{keyboardProps:n}=Il(t),o=X(r,n),i=Id(e),l=t.isDisabled?{}:i,s=a.useRef(t.autoFocus);a.useEffect(()=>{s.current&&e.current&&ct(e.current),s.current=!1},[e]);let c=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(c=void 0),{focusableProps:X({...o,tabIndex:c},l)}}let rt="default",wn="",cr=new WeakMap;function Ko(t){if(Bt()){if(rt==="default"){const e=Z(t);wn=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}rt="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";cr.set(t,t.style[e]),t.style[e]="none"}}function Jr(t){if(Bt()){if(rt!=="disabled")return;rt="restoring",setTimeout(()=>{qi(()=>{if(rt==="restoring"){const e=Z(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=wn||""),wn="",rt="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&cr.has(t)){let e=cr.get(t),r="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[r]==="none"&&(t.style[r]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),cr.delete(t)}}const At=a.createContext({register:()=>{}});At.displayName="PressResponderContext";function Kd(t){let e=a.useContext(At);if(e){let{register:r,ref:n,...o}=e;t=X(o,t),r()}return _n(e,t.ref),t}var lt;class Qt{constructor(e,r,n,o){mo(this,lt);Vr(this,lt,!0);let i=(o==null?void 0:o.target)??n.currentTarget;const l=i==null?void 0:i.getBoundingClientRect();let s,c=0,u,d=null;n.clientX!=null&&n.clientY!=null&&(u=n.clientX,d=n.clientY),l&&(u!=null&&d!=null?(s=u-l.left,c=d-l.top):(s=l.width/2,c=l.height/2)),this.type=e,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=s,this.y=c,this.key=n.key}continuePropagation(){Vr(this,lt,!1)}get shouldStopPropagation(){return bo(this,lt)}}lt=new WeakMap;const Ao=Symbol("linkClicked"),Fo="react-aria-pressable-style",Oo="data-react-aria-pressable";function Xe(t){let{onPress:e,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,onClick:l,isDisabled:s,isPressed:c,preventFocusOnPress:u,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:m,...h}=Kd(t),[g,y]=a.useState(!1),v=a.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:E,removeAllGlobalListeners:$}=Rr(),P=a.useCallback((p,w)=>{let N=v.current;if(s||N.didFirePressStart)return!1;let C=!0;if(N.isTriggeringEvent=!0,n){let M=new Qt("pressstart",w,p);n(M),C=M.shouldStopPropagation}return r&&r(!0),N.isTriggeringEvent=!1,N.didFirePressStart=!0,y(!0),C},[s,n,r]),k=a.useCallback((p,w,N=!0)=>{let C=v.current;if(!C.didFirePressStart)return!1;C.didFirePressStart=!1,C.isTriggeringEvent=!0;let M=!0;if(o){let x=new Qt("pressend",w,p);o(x),M=x.shouldStopPropagation}if(r&&r(!1),y(!1),e&&N&&!s){let x=new Qt("press",w,p);e(x),M&&(M=x.shouldStopPropagation)}return C.isTriggeringEvent=!1,M},[s,o,r,e]),L=xe(k),j=a.useCallback((p,w)=>{let N=v.current;if(s)return!1;if(i){N.isTriggeringEvent=!0;let C=new Qt("pressup",w,p);return i(C),N.isTriggeringEvent=!1,C.shouldStopPropagation}return!0},[s,i]),T=xe(j),R=a.useCallback(p=>{let w=v.current;if(w.isPressed&&w.target){w.didFirePressStart&&w.pointerType!=null&&k(We(w.target,p),w.pointerType,!1),w.isPressed=!1,w.isOverTarget=!1,w.activePointerId=null,w.pointerType=null,$(),f||Jr(w.target);for(let N of w.disposables)N();w.disposables=[]}},[f,$,k]),I=xe(R);a.useEffect(()=>{s&&v.current.isPressed&&I({currentTarget:v.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[s]);let K=a.useCallback(p=>{d&&R(p)},[d,R]),V=a.useCallback(p=>{s||l==null||l(p)},[s,l]),H=a.useCallback((p,w)=>{if(!s&&l){let N=new MouseEvent("click",p);kl(N,w),l(Un(N))}},[s,l]),B=a.useMemo(()=>{let p=v.current,w={onKeyDown(C){var M;if(Qr(C.nativeEvent,C.currentTarget)&&z(C.currentTarget,A(C))){_o(A(C),C.key)&&C.preventDefault();let x=!0;!p.isPressed&&!C.repeat&&(p.target=C.currentTarget,p.isPressed=!0,p.pointerType="keyboard",x=P(C,"keyboard"));let S=C.currentTarget,D=U=>{Qr(U,S)&&!U.repeat&&z(S,A(U))&&p.target&&T(We(p.target,U),"keyboard")};E(Z(C.currentTarget),"keyup",Vt(D,N),!0),x&&C.stopPropagation(),C.metaKey&&qe()&&((M=p.metaKeyEvents)==null||M.set(C.key,C.nativeEvent))}else C.key==="Meta"&&(p.metaKeyEvents=new Map)},onClick(C){if(!(C&&!z(C.currentTarget,A(C)))&&C&&C.button===0&&!p.isTriggeringEvent&&!Ie.isOpening){let M=!0;if(s&&C.preventDefault(),!p.ignoreEmulatedMouseEvents&&!p.isPressed&&(p.pointerType==="virtual"||fn(C.nativeEvent))){let x=P(C,"virtual"),S=T(C,"virtual"),D=L(C,"virtual");V(C),M=x&&S&&D}else if(p.isPressed&&p.pointerType!=="keyboard"){let x=p.pointerType||C.nativeEvent.pointerType||"virtual",S=T(We(C.currentTarget,C),x),D=L(We(C.currentTarget,C),x,!0);M=S&&D,p.isOverTarget=!1,V(C),I(C)}p.ignoreEmulatedMouseEvents=!1,M&&C.stopPropagation()}}},N=C=>{var M,x,S;if(p.isPressed&&p.target&&Qr(C,p.target)){_o(A(C),C.key)&&C.preventDefault();let D=A(C),U=z(p.target,D);L(We(p.target,C),"keyboard",U),U&&H(C,p.target),$(),C.key!=="Enter"&&Wn(p.target)&&z(p.target,D)&&!C[Ao]&&(C[Ao]=!0,Ie(p.target,C,!1)),p.isPressed=!1,(M=p.metaKeyEvents)==null||M.delete(C.key)}else if(C.key==="Meta"&&((x=p.metaKeyEvents)!=null&&x.size)){let D=p.metaKeyEvents;p.metaKeyEvents=void 0;for(let U of D.values())(S=p.target)==null||S.dispatchEvent(new KeyboardEvent("keyup",U))}};if(typeof PointerEvent<"u"){w.onPointerDown=x=>{if(x.button!==0||!z(x.currentTarget,A(x)))return;if(Hc(x.nativeEvent)){p.pointerType="virtual";return}p.pointerType=x.pointerType;let S=!0;if(!p.isPressed){p.isPressed=!0,p.isOverTarget=!0,p.activePointerId=x.pointerId,p.target=x.currentTarget,f||Ko(p.target),S=P(x,p.pointerType);let D=A(x);"releasePointerCapture"in D&&("hasPointerCapture"in D?D.hasPointerCapture(x.pointerId)&&D.releasePointerCapture(x.pointerId):D.releasePointerCapture(x.pointerId)),E(Z(x.currentTarget),"pointerup",C,!1),E(Z(x.currentTarget),"pointercancel",M,!1)}S&&x.stopPropagation()},w.onMouseDown=x=>{if(z(x.currentTarget,A(x))&&x.button===0){if(u){let S=Lo(x.target);S&&p.disposables.push(S)}x.stopPropagation()}},w.onPointerUp=x=>{!z(x.currentTarget,A(x))||p.pointerType==="virtual"||x.button===0&&!p.isPressed&&T(x,p.pointerType||x.pointerType)},w.onPointerEnter=x=>{x.pointerId===p.activePointerId&&p.target&&!p.isOverTarget&&p.pointerType!=null&&(p.isOverTarget=!0,P(We(p.target,x),p.pointerType))},w.onPointerLeave=x=>{x.pointerId===p.activePointerId&&p.target&&p.isOverTarget&&p.pointerType!=null&&(p.isOverTarget=!1,L(We(p.target,x),p.pointerType,!1),K(x))};let C=x=>{if(x.pointerId===p.activePointerId&&p.isPressed&&x.button===0&&p.target){if(z(p.target,A(x))&&p.pointerType!=null){let S=!1,D=setTimeout(()=>{p.isPressed&&p.target instanceof HTMLElement&&(S?I(x):(de(p.target),p.target.click()))},80);E(x.currentTarget,"click",()=>S=!0,!0),p.disposables.push(()=>clearTimeout(D))}else I(x);p.isOverTarget=!1}},M=x=>{I(x)};w.onDragStart=x=>{z(x.currentTarget,A(x))&&I(x)}}else if(process.env.NODE_ENV==="test"){w.onMouseDown=x=>{if(x.button!==0||!z(x.currentTarget,A(x)))return;if(p.ignoreEmulatedMouseEvents){x.stopPropagation();return}if(p.isPressed=!0,p.isOverTarget=!0,p.target=x.currentTarget,p.pointerType=fn(x.nativeEvent)?"virtual":"mouse",jt.flushSync(()=>P(x,p.pointerType))&&x.stopPropagation(),u){let D=Lo(x.target);D&&p.disposables.push(D)}E(Z(x.currentTarget),"mouseup",C,!1)},w.onMouseEnter=x=>{if(!z(x.currentTarget,A(x)))return;let S=!0;p.isPressed&&!p.ignoreEmulatedMouseEvents&&p.pointerType!=null&&(p.isOverTarget=!0,S=P(x,p.pointerType)),S&&x.stopPropagation()},w.onMouseLeave=x=>{if(!z(x.currentTarget,A(x)))return;let S=!0;p.isPressed&&!p.ignoreEmulatedMouseEvents&&p.pointerType!=null&&(p.isOverTarget=!1,S=L(x,p.pointerType,!1),K(x)),S&&x.stopPropagation()},w.onMouseUp=x=>{z(x.currentTarget,A(x))&&!p.ignoreEmulatedMouseEvents&&x.button===0&&!p.isPressed&&T(x,p.pointerType||"mouse")};let C=x=>{if(x.button===0){if(p.ignoreEmulatedMouseEvents){p.ignoreEmulatedMouseEvents=!1;return}p.target&&z(p.target,A(x))&&p.pointerType!=null||I(x),p.isOverTarget=!1}};w.onTouchStart=x=>{if(!z(x.currentTarget,A(x)))return;let S=Ad(x.nativeEvent);if(!S)return;p.activePointerId=S.identifier,p.ignoreEmulatedMouseEvents=!0,p.isOverTarget=!0,p.isPressed=!0,p.target=x.currentTarget,p.pointerType="touch",f||Ko(p.target),P(_e(p.target,x),p.pointerType)&&x.stopPropagation(),E(fe(x.currentTarget),"scroll",M,!0)},w.onTouchMove=x=>{if(!z(x.currentTarget,A(x)))return;if(!p.isPressed){x.stopPropagation();return}let S=jo(x.nativeEvent,p.activePointerId),D=!0;S&&Bo(S,x.currentTarget)?!p.isOverTarget&&p.pointerType!=null&&(p.isOverTarget=!0,D=P(_e(p.target,x),p.pointerType)):p.isOverTarget&&p.pointerType!=null&&(p.isOverTarget=!1,D=L(_e(p.target,x),p.pointerType,!1),K(_e(p.target,x))),D&&x.stopPropagation()},w.onTouchEnd=x=>{if(!z(x.currentTarget,A(x)))return;if(!p.isPressed){x.stopPropagation();return}let S=jo(x.nativeEvent,p.activePointerId),D=!0;S&&Bo(S,x.currentTarget)&&p.pointerType!=null?(T(_e(p.target,x),p.pointerType),D=L(_e(p.target,x),p.pointerType),H(x.nativeEvent,p.target)):p.isOverTarget&&p.pointerType!=null&&(D=L(_e(p.target,x),p.pointerType,!1)),D&&x.stopPropagation(),p.isPressed=!1,p.activePointerId=null,p.isOverTarget=!1,p.ignoreEmulatedMouseEvents=!0,p.target&&!f&&Jr(p.target),$()},w.onTouchCancel=x=>{z(x.currentTarget,A(x))&&(x.stopPropagation(),p.isPressed&&I(_e(p.target,x)))};let M=x=>{p.isPressed&&z(A(x),p.target)&&I({currentTarget:p.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};w.onDragStart=x=>{z(x.currentTarget,A(x))&&I(x)}}return w},[E,s,u,$,f,K,P,V,H]);return a.useEffect(()=>{if(!m||process.env.NODE_ENV==="test")return;const p=Z(m.current);if(!p||!p.head||p.getElementById(Fo))return;const w=p.createElement("style");w.id=Fo;let N=tl(p);N&&(w.nonce=N),w.textContent=`
|
|
1
|
+
"use strict";var Za=Object.create;var po=Object.defineProperty;var Ja=Object.getOwnPropertyDescriptor;var Qa=Object.getOwnPropertyNames;var ec=Object.getPrototypeOf,tc=Object.prototype.hasOwnProperty;var ho=t=>{throw TypeError(t)};var rc=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Qa(e))!tc.call(t,o)&&o!==r&&po(t,o,{get:()=>e[o],enumerable:!(n=Ja(e,o))||n.enumerable});return t};var nc=(t,e,r)=>(r=t!=null?Za(ec(t)):{},rc(e||!t||!t.__esModule?po(r,"default",{value:t,enumerable:!0}):r,t));var bo=(t,e,r)=>e.has(t)||ho("Cannot "+r);var mo=(t,e,r)=>(bo(t,e,"read from private field"),r?r.call(t):e.get(t)),go=(t,e,r)=>e.has(t)?ho("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),Vr=(t,e,r,n)=>(bo(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react/jsx-runtime"),a=require("react"),jt=require("react-dom"),st={GREY:"#7A8090",RED:"#E7320D",ORANGE:"#FF850A",YELLOW:"#F5E429",GREEN:"#14CC76",LIGHT_BLUE:"#20B3E9",BLUE:"#1738DE",MAGENTA:"#D945B1"};function Rt(t,e){const r=t.replace("#",""),n=parseInt(r.slice(0,2),16),o=parseInt(r.slice(2,4),16),i=parseInt(r.slice(4,6),16);return`rgba(${n}, ${o}, ${i}, ${e})`}function Oi(t){const e=t.replace("#",""),r=parseInt(e.slice(0,2),16),n=parseInt(e.slice(2,4),16),o=parseInt(e.slice(4,6),16);return(.299*r+.587*n+.114*o)/255>.55?"#111111":"#ffffff"}const ji={note:"GREY",info:"LIGHT_BLUE",tip:"GREEN",caution:"ORANGE",danger:"RED"};function Bi(t){return st[ji[t]]}const fr={note:"Note",info:"Info",tip:"Tip",caution:"Caution",danger:"Danger"},oc="react-aria-clear-focus",ic="react-aria-focus";function Mr(t){var r;if(typeof window>"u"||window.navigator==null)return!1;let e=(r=window.navigator.userAgentData)==null?void 0:r.brands;return Array.isArray(e)&&e.some(n=>t.test(n.brand))||t.test(window.navigator.userAgent)}function On(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)==null?void 0:e.platform)||window.navigator.platform):!1}function Ae(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const Ye=Ae(function(){return On(/^Mac/i)}),lc=Ae(function(){return On(/^iPhone/i)}),_i=Ae(function(){return On(/^iPad/i)||Ye()&&navigator.maxTouchPoints>1}),Bt=Ae(function(){return lc()||_i()}),sc=Ae(function(){return Ye()||Bt()}),Vi=Ae(function(){return Mr(/AppleWebKit/i)&&!Hi()}),Hi=Ae(function(){return Mr(/Chrome/i)}),jn=Ae(function(){return Mr(/Android/i)}),ac=Ae(function(){return Mr(/Firefox/i)});function de(t){if(cc())t.focus({preventScroll:!0});else{let e=uc(t);t.focus(),dc(e)}}let qt=null;function cc(){if(qt==null){qt=!1;try{document.createElement("div").focus({get preventScroll(){return qt=!0,!0}})}catch{}}return qt}function uc(t){let e=t.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==n;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&r.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function dc(t){for(let{element:e,scrollTop:r,scrollLeft:n}of t)e.scrollTop=r,e.scrollLeft=n}const fc=a.createContext({isNative:!0,open:bc,useHref:t=>t});function _t(){return a.useContext(fc)}function pc(t,e){let r=t.getAttribute("target");return(!r||r==="_self")&&t.origin===location.origin&&!t.hasAttribute("download")&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey}function Ie(t,e,r=!0){var c,u;let{metaKey:n,ctrlKey:o,altKey:i,shiftKey:l}=e;ac()&&((u=(c=window.event)==null?void 0:c.type)!=null&&u.startsWith("key"))&&t.target==="_blank"&&(Ye()?n=!0:o=!0);let s=Vi()&&Ye()&&!_i()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:n,ctrlKey:o,altKey:i,shiftKey:l}):new MouseEvent("click",{metaKey:n,ctrlKey:o,altKey:i,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});Ie.isOpening=r,de(t),t.dispatchEvent(s),Ie.isOpening=!1}Ie.isOpening=!1;function hc(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let r=document.createElement("a");r.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(r.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(r.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(r.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(r.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(r),e(r),t.removeChild(r)}}function bc(t,e){hc(t,r=>Ie(r,e))}function zi(t){const r=_t().useHref((t==null?void 0:t.href)??"");let n={};if(t)for(let o of["href","target","rel","download","ping","referrerPolicy"])o in t&&(n[o]=o==="href"?r:t[o]);return n}function Wi(t,e,r,n){!e.isNative&&t.currentTarget instanceof HTMLAnchorElement&&t.currentTarget.href&&!t.isDefaultPrevented()&&pc(t.currentTarget,t)&&r&&(t.preventDefault(),e.open(t.currentTarget,t,r,n))}const J=typeof document<"u"?a.useLayoutEffect:()=>{},pr={prefix:String(Math.round(Math.random()*1e10)),current:0},Ui=a.createContext(pr),mc=a.createContext(!1);let gc=!!(typeof window<"u"&&window.document&&window.document.createElement),Hr=new WeakMap;function yc(t=!1){var n,o;let e=a.useContext(Ui),r=a.useRef(null);if(r.current===null&&!t){let i=(o=(n=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)==null?void 0:n.ReactCurrentOwner)==null?void 0:o.current;if(i){let l=Hr.get(i);l==null?Hr.set(i,{id:e.current,state:i.memoizedState}):i.memoizedState!==l.state&&(e.current=l.id,Hr.delete(i))}r.current=++e.current}return r.current}function vc(t){let e=a.useContext(Ui);e===pr&&!gc&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=yc(!!t),n=e===pr&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${n}-${r}`}function $c(t){let e=a.useId(),[r]=a.useState(dt()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${pr.prefix}`;return t||`${n}-${e}`}const xc=typeof a.useId=="function"?$c:vc;function wc(){return!1}function Ec(){return!0}function Sc(t){return()=>{}}function dt(){return typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore(Sc,wc,Ec):a.useContext(mc)}function Cc(t){let[e,r]=a.useState(t),n=a.useRef(e),o=a.useRef(null),i=a.useRef(()=>{if(!o.current)return;let s=o.current.next();if(s.done){o.current=null;return}n.current===s.value?i.current():r(s.value)});J(()=>{n.current=e,o.current&&i.current()});let l=a.useCallback(s=>{o.current=s(n.current),i.current()},[i]);return[e,l]}let Pc=!!(typeof window<"u"&&window.document&&window.document.createElement),ot=new Map,wt;typeof FinalizationRegistry<"u"&&(wt=new FinalizationRegistry(t=>{ot.delete(t)}));function ge(t){let[e,r]=a.useState(t),n=a.useRef(null),o=xc(e),i=a.useRef(null);if(wt&&wt.register(i,o),Pc){const l=ot.get(o);l&&!l.includes(n)?l.push(n):ot.set(o,[n])}return J(()=>{let l=o;return()=>{wt&&wt.unregister(i),ot.delete(l)}},[o]),a.useEffect(()=>{let l=n.current;return l&&r(l),()=>{l&&(n.current=null)}}),o}function kc(t,e){if(t===e)return t;let r=ot.get(t);if(r)return r.forEach(o=>o.current=e),e;let n=ot.get(e);return n?(n.forEach(o=>o.current=t),t):e}function zr(t=[]){let e=ge(),[r,n]=Cc(e),o=a.useCallback(()=>{n(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,n]);return J(o,[e,o,...t]),r}function Vt(...t){return(...e)=>{for(let r of t)typeof r=="function"&&r(...e)}}const Z=t=>(t==null?void 0:t.ownerDocument)??document,fe=t=>t&&"window"in t&&t.window===t?t:Z(t).defaultView||window;function Tc(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function Mc(t){return Tc(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let Rc=!1;function Ne(){return Rc}function H(t,e){if(!Ne())return e&&t?t.contains(e):!1;if(!t||!e)return!1;let r=e;for(;r!==null;){if(r===t)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:Mc(r)?r=r.host:r=r.parentNode}return!1}const ne=(t=document)=>{var r;if(!Ne())return t.activeElement;let e=t.activeElement;for(;e&&"shadowRoot"in e&&((r=e.shadowRoot)!=null&&r.activeElement);)e=e.shadowRoot.activeElement;return e};function A(t){if(Ne()&&t.target instanceof Element&&t.target.shadowRoot){if("composedPath"in t)return t.composedPath()[0]??null;if("composedPath"in t.nativeEvent)return t.nativeEvent.composedPath()[0]??null}return t.target}function Nt(t){if(!t)return!1;let e=t.getRootNode(),r=fe(t);if(!(e instanceof r.Document||e instanceof r.ShadowRoot))return!1;let n=e.activeElement;return n!=null&&t.contains(n)}class Nc{constructor(e,r,n,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=l=>{var s;if(l.nodeType===Node.ELEMENT_NODE){const c=l.shadowRoot;if(c){const u=this._doc.createTreeWalker(c,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(u),NodeFilter.FILTER_ACCEPT}else{if(typeof this.filter=="function")return this.filter(l);if((s=this.filter)!=null&&s.acceptNode)return this.filter.acceptNode(l);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=r,this.filter=o??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=r,this._walkerStack.unshift(e.createTreeWalker(r,n,this._acceptNode));const i=r.shadowRoot;if(i){const l=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(l)}}get currentNode(){return this._currentNode}set currentNode(e){if(!H(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const r=[];let n=e,o=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const l=n,s=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});r.push(s),s.currentNode=o,this._currentSetFor.add(s),n=o=l.host}else n=n.parentNode;const i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});r.push(i),i.currentNode=o,this._currentSetFor.add(i),this._walkerStack=r}get doc(){return this._doc}firstChild(){let e=this.currentNode,r=this.nextNode();return H(e,r)?(r&&(this.currentNode=r),r):(this.currentNode=e,null)}lastChild(){let r=this._walkerStack[0].lastChild();return r&&(this.currentNode=r),r}nextNode(){var r;const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){let o;if(typeof this.filter=="function"?o=this.filter(e):(r=this.filter)!=null&&r.acceptNode&&(o=this.filter.acceptNode(e)),o===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let i=this.nextNode();return i&&(this.currentNode=i),i}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){var n;const e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null;return null}const r=e.previousNode();if(r){if(r.shadowRoot){let i;if(typeof this.filter=="function"?i=this.filter(r):(n=this.filter)!=null&&n.acceptNode&&(i=this.filter.acceptNode(r)),i===NodeFilter.FILTER_ACCEPT)return r&&(this.currentNode=r),r;let l=this.lastChild();return l&&(this.currentNode=l),l}return r&&(this.currentNode=r),r}else if(this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}}function Gi(t,e,r,n){return Ne()?new Nc(t,e,r,n):t.createTreeWalker(e,r,n)}function Ht(...t){return t.length===1&&t[0]?t[0]:e=>{let r=!1;const n=t.map(o=>{const i=yo(o,e);return r||(r=typeof i=="function"),i});if(r)return()=>{n.forEach((o,i)=>{typeof o=="function"?o():yo(t[i],null)})}}}function yo(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function qi(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=qi(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Dc(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=qi(t))&&(n&&(n+=" "),n+=e);return n}function X(...t){let e={...t[0]};for(let r=1;r<t.length;r++){let n=t[r];for(let o in n){let i=e[o],l=n[o];typeof i=="function"&&typeof l=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?e[o]=Vt(i,l):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof l=="string"?e[o]=Dc(i,l):o==="id"&&i&&l?e.id=kc(i,l):o==="ref"&&i&&l?e.ref=Ht(i,l):e[o]=l!==void 0?l:i}}return e}const Lc=new Set(["id"]),Ic=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Kc=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Ac=new Set(["dir","lang","hidden","inert","translate"]),vo=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),Fc=/^(data-.*)$/;function ue(t,e={}){let{labelable:r,isLink:n,global:o,events:i=o,propNames:l}=e,s={};for(const c in t)Object.prototype.hasOwnProperty.call(t,c)&&(Lc.has(c)||r&&Ic.has(c)||n&&Kc.has(c)||o&&Ac.has(c)||i&&(vo.has(c)||c.endsWith("Capture")&&vo.has(c.slice(0,-7)))||l!=null&&l.has(c)||Fc.test(c))&&(s[c]=t[c]);return s}let Ve=new Map,un=new Set;function $o(){if(typeof window>"u")return;function t(n){return"propertyName"in n}let e=n=>{let o=A(n);if(!t(n)||!o)return;let i=Ve.get(o);i||(i=new Set,Ve.set(o,i),o.addEventListener("transitioncancel",r,{once:!0})),i.add(n.propertyName)},r=n=>{let o=A(n);if(!t(n)||!o)return;let i=Ve.get(o);if(i&&(i.delete(n.propertyName),i.size===0&&(o.removeEventListener("transitioncancel",r),Ve.delete(o)),Ve.size===0)){for(let l of un)l();un.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?$o():document.addEventListener("DOMContentLoaded",$o));function Oc(){for(const[t]of Ve)"isConnected"in t&&!t.isConnected&&Ve.delete(t)}function Yi(t){requestAnimationFrame(()=>{Oc(),Ve.size===0?t():un.add(t)})}function Rr(){let t=a.useRef(new Map),e=a.useCallback((o,i,l,s)=>{let c=s!=null&&s.once?(...u)=>{t.current.delete(l),l(...u)}:l;t.current.set(l,{type:i,eventTarget:o,fn:c,options:s}),o.addEventListener(i,c,s)},[]),r=a.useCallback((o,i,l,s)=>{var u;let c=((u=t.current.get(l))==null?void 0:u.fn)||l;o.removeEventListener(i,c,s),t.current.delete(l)},[]),n=a.useCallback(()=>{t.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return a.useEffect(()=>n,[n]),{addGlobalListener:e,removeGlobalListener:r,removeAllGlobalListeners:n}}function Xi(t,e){let{id:r,"aria-label":n,"aria-labelledby":o}=t;return r=ge(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&e&&(n=e),{id:r,"aria-label":n,"aria-labelledby":o}}function zt(t){const e=a.useRef(null),r=a.useRef(void 0),n=a.useCallback(o=>{if(typeof t=="function"){const i=t,l=i(o);return()=>{typeof l=="function"?l():i(null)}}else if(t)return t.current=o,()=>{t.current=null}},[t]);return a.useMemo(()=>({get current(){return e.current},set current(o){e.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}const jc=a.useInsertionEffect??J;function xe(t){const e=a.useRef(null);return jc(()=>{e.current=t},[t]),a.useCallback((...r)=>{const n=e.current;return n==null?void 0:n(...r)},[])}function xo(t,e){const r=a.useRef(!0),n=a.useRef(null);J(()=>(r.current=!0,()=>{r.current=!1}),[]),J(()=>{r.current?r.current=!1:(!n.current||e.some((o,i)=>!Object.is(o,n[i])))&&t(),n.current=e},e)}function Bc(){return typeof window.ResizeObserver<"u"}function hr(t){const{ref:e,box:r,onResize:n}=t;let o=xe(n);a.useEffect(()=>{let i=e==null?void 0:e.current;if(i)if(Bc()){const l=new window.ResizeObserver(s=>{s.length&&o()});return l.observe(i,{box:r}),()=>{i&&l.unobserve(i)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[e,r])}function Bn(t,e){J(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function at(t,e){if(!t)return!1;let r=window.getComputedStyle(t),n=document.scrollingElement||document.documentElement,o=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return t===n&&r.overflow!=="hidden"&&(o=!0),o&&e&&(o=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),o}function Zi(t,e){let r=t;for(at(r,e)&&(r=r.parentElement);r&&!at(r,e);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function Wr(t,e){let r=[],n=document.scrollingElement||document.documentElement;for(;t&&(at(t,e)&&r.push(t),t!==n);)t=t.parentElement;return r}function tt(t){return Ye()?t.metaKey:t.ctrlKey}const _c=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ur(t){return t instanceof HTMLInputElement&&!_c.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}let Vc=0;const Gr=new Map;function Hc(t){let[e,r]=a.useState();return J(()=>{if(!t)return;let n=Gr.get(t);if(n)r(n.element.id);else{let o=`react-aria-description-${Vc++}`;r(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=t,document.body.appendChild(i),n={refCount:0,element:i},Gr.set(t,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),Gr.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function Et(t,e,r,n){let o=xe(r),i=r==null;a.useEffect(()=>{if(i||!t.current)return;let l=t.current;return l.addEventListener(e,o,n),()=>{l.removeEventListener(e,o,n)}},[t,e,n,i])}function ar(t,e,r={}){let{block:n="nearest",inline:o="nearest"}=r;if(t===e)return;let i=t.scrollTop,l=t.scrollLeft,s=e.getBoundingClientRect(),c=t.getBoundingClientRect(),u=window.getComputedStyle(e),d=window.getComputedStyle(t),f=document.scrollingElement||document.documentElement,m=t===f,p=t===f?0:c.top,g=t===f?t.clientHeight:c.bottom,y=t===f?0:c.left,v=t===f?t.clientWidth:c.right,E=parseFloat(u.scrollMarginTop)||0,$=parseFloat(u.scrollMarginBottom)||0,P=parseFloat(u.scrollMarginLeft)||0,k=parseFloat(u.scrollMarginRight)||0,L=parseFloat(d.scrollPaddingTop)||0,j=parseFloat(d.scrollPaddingBottom)||0,T=parseFloat(d.scrollPaddingLeft)||0,R=parseFloat(d.scrollPaddingRight)||0,I=parseFloat(d.borderTopWidth)||0,K=parseFloat(d.borderBottomWidth)||0,V=parseFloat(d.borderLeftWidth)||0,z=parseFloat(d.borderRightWidth)||0,B=s.top-E,h=s.bottom+$,w=s.left-P,N=s.right+k,C=t===f?0:V+z,M=t===f?0:I+K,x=t===f?0:t.offsetWidth-t.clientWidth-C,S=t===f?0:t.offsetHeight-t.clientHeight-M,D=p+(m?0:I)+L,W=g-(m?0:K)-j-S,U=y+(m?0:V)+T,G=v-(m?0:z)-R;d.direction==="rtl"&&!Bt()?U+=x:G-=x;let te=B<D||h>W,se=w<U||N>G;if(te&&n==="start")i+=B-D;else if(te&&n==="center")i+=(B+h)/2-(D+W)/2;else if(te&&n==="end")i+=h-W;else if(te&&n==="nearest"){let Y=B-D,pe=h-W;i+=Math.abs(Y)<=Math.abs(pe)?Y:pe}if(se&&o==="start")l+=w-U;else if(se&&o==="center")l+=(w+N)/2-(U+G)/2;else if(se&&o==="end")l+=N-G;else if(se&&o==="nearest"){let Y=w-U,pe=N-G;l+=Math.abs(Y)<=Math.abs(pe)?Y:pe}if(process.env.NODE_ENV==="test"){t.scrollLeft=l,t.scrollTop=i;return}t.scrollTo({left:l,top:i})}function wo(t,e={}){var n,o,i;let{containingElement:r}=e;if(t&&t.isConnected){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let{left:c,top:u}=t.getBoundingClientRect(),d=Wr(t,!0);for(let p of d)ar(p,t);let{left:f,top:m}=t.getBoundingClientRect();if(Math.abs(c-f)>1||Math.abs(u-m)>1){d=r?Wr(r,!0):[];for(let p of d)ar(p,r,{block:"center",inline:"center"});for(let p of Wr(t,!0))ar(p,t)}}else{let{left:c,top:u}=t.getBoundingClientRect();(n=t==null?void 0:t.scrollIntoView)==null||n.call(t,{block:"nearest"});let{left:d,top:f}=t.getBoundingClientRect();(Math.abs(c-d)>1||Math.abs(u-f)>1)&&((o=r==null?void 0:r.scrollIntoView)==null||o.call(r,{block:"center",inline:"center"}),(i=t.scrollIntoView)==null||i.call(t,{block:"nearest"}))}}}function dn(t){return t.pointerType===""&&t.isTrusted?!0:jn()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function zc(t){return!jn()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function Wc(t,e,r){let n=xe(o=>{r&&!o.defaultPrevented&&r(e)});a.useEffect(()=>{var i;let o=(i=t==null?void 0:t.current)==null?void 0:i.form;return o==null||o.addEventListener("reset",n),()=>{o==null||o.removeEventListener("reset",n)}},[t])}function Uc(t,e=!0){let[r,n]=a.useState(!0),o=r&&e;return J(()=>{if(o&&t.current&&"getAnimations"in t.current)for(let i of t.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[t,o]),Ji(t,o,a.useCallback(()=>n(!1),[])),o}function Gc(t,e){let[r,n]=a.useState(e?"open":"closed");switch(r){case"open":e||n("exiting");break;case"closed":case"exiting":e&&n("open");break}let o=r==="exiting";return Ji(t,o,a.useCallback(()=>{n(i=>i==="exiting"?"closed":i)},[])),o}function Ji(t,e,r){J(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){r();return}let n=t.current.getAnimations();if(n.length===0){r();return}let o=!1;return Promise.allSettled(n.map(i=>i.finished)).then(()=>{o||jt.flushSync(()=>{r()})}),()=>{o=!0}}},[t,e,r])}const qc=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Yc(t){const e=fe(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:r,visibility:n}=t.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:i}=t.ownerDocument.defaultView;let{display:l,visibility:s}=i(t);o=l!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function Xc(t,e){return!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function _n(t,e){return qc?t.checkVisibility({visibilityProperty:!0})&&!t.closest("[data-react-aria-prevent-focus]"):t.nodeName!=="#comment"&&Yc(t)&&Xc(t,e)&&(!t.parentElement||_n(t.parentElement,t))}const Vn=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],Zc=Vn.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Vn.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Jc=Vn.join(':not([hidden]):not([tabindex="-1"]),');function Qi(t,e){return t.matches(Zc)&&!tl(t)&&((e==null?void 0:e.skipVisibilityCheck)||_n(t))}function el(t){return t.matches(Jc)&&_n(t)&&!tl(t)}function tl(t){let e=t;for(;e!=null;){if(e instanceof e.ownerDocument.defaultView.HTMLElement&&e.inert)return!0;e=e.parentElement}return!1}function Eo(t){let e=t==null?void 0:t.defaultView;return(e==null?void 0:e.__webpack_nonce__)||globalThis.__webpack_nonce__||void 0}let qr=new WeakMap;function rl(t){let e=t??(typeof document<"u"?document:void 0);if(!e)return Eo(e);if(qr.has(e))return qr.get(e);let r=e.querySelector('meta[property="csp-nonce"]'),n=r&&r instanceof fe(r).HTMLMetaElement&&(r.nonce||r.content)||Eo(e)||void 0;return n!==void 0&&qr.set(e,n),n}function Qc(t,e,r){const{render:n,...o}=e,i=a.useRef(null),l=a.useMemo(()=>Ht(r,i),[r,i]);J(()=>{var c;typeof process<"u"&&((c=process.env)==null?void 0:c.NODE_ENV)!=="production"&&n&&(i.current||console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"))},[t,n]);const s={...o,ref:l};return n?n(s,void 0):b.jsx(t,{...s})}const So={},ie=new Proxy({},{get(t,e){if(typeof e!="string")return;let r=So[e];return r||(r=a.forwardRef(Qc.bind(null,e)),So[e]=r),r}});var eu=/\s+/g,tu=t=>typeof t!="string"||!t?t:t.replace(eu," ").trim(),Dt=(...t)=>{const e=[],r=n=>{if(!n&&n!==0&&n!==0n)return;if(Array.isArray(n)){for(let i=0,l=n.length;i<l;i++)r(n[i]);return}const o=typeof n;if(o==="string"||o==="number"||o==="bigint"){if(o==="number"&&n!==n)return;e.push(String(n))}else if(o==="object"){const i=Object.keys(n);for(let l=0,s=i.length;l<s;l++){const c=i[l];n[c]&&e.push(c)}}};for(let n=0,o=t.length;n<o;n++){const i=t[n];i!=null&&r(i)}return e.length>0?tu(e.join(" ")):void 0},Co=t=>t===!1?"false":t===!0?"true":t===0?"0":t,be=t=>{if(!t||typeof t!="object")return!0;for(const e in t)return!1;return!0},ru=(t,e)=>{if(t===e)return!0;if(!t||!e)return!1;const r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){const i=r[o];if(!n.includes(i)||t[i]!==e[i])return!1}return!0},nu=(t,e)=>{for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const n=e[r];r in t?t[r]=Dt(t[r],n):t[r]=n}return t},nl=(t,e)=>{for(let r=0;r<t.length;r++){const n=t[r];Array.isArray(n)?nl(n,e):n&&e.push(n)}},ol=(...t)=>{const e=[];nl(t,e);const r=[];for(let n=0;n<e.length;n++)e[n]&&r.push(e[n]);return r},fn=(t,e)=>{const r={};for(const n in t){const o=t[n];if(n in e){const i=e[n];Array.isArray(o)||Array.isArray(i)?r[n]=ol(i,o):typeof o=="object"&&typeof i=="object"&&o&&i?r[n]=fn(o,i):r[n]=i+" "+o}else r[n]=o}for(const n in e)n in t||(r[n]=e[n]);return r},ou={twMerge:!0,twMergeConfig:{}};function iu(){let t=null,e={},r=!1;return{get cachedTwMerge(){return t},set cachedTwMerge(n){t=n},get cachedTwMergeConfig(){return e},set cachedTwMergeConfig(n){e=n},get didTwMergeConfigChange(){return r},set didTwMergeConfigChange(n){r=n},reset(){t=null,e={},r=!1}}}var Re=iu(),lu=t=>{const e=(n,o)=>{const{extend:i=null,slots:l={},variants:s={},compoundVariants:c=[],compoundSlots:u=[],defaultVariants:d={}}=n,f={...ou,...o},m=i!=null&&i.base?Dt(i.base,n==null?void 0:n.base):n==null?void 0:n.base,p=i!=null&&i.variants&&!be(i.variants)?fn(s,i.variants):s,g=i!=null&&i.defaultVariants&&!be(i.defaultVariants)?{...i.defaultVariants,...d}:d;!be(f.twMergeConfig)&&!ru(f.twMergeConfig,Re.cachedTwMergeConfig)&&(Re.didTwMergeConfigChange=!0,Re.cachedTwMergeConfig=f.twMergeConfig);const y=be(i==null?void 0:i.slots),v=be(l)?{}:{base:Dt(n==null?void 0:n.base,y&&(i==null?void 0:i.base)),...l},E=y?v:nu({...i==null?void 0:i.slots},be(v)?{base:n==null?void 0:n.base}:v),$=be(i==null?void 0:i.compoundVariants)?c:ol(i==null?void 0:i.compoundVariants,c),P=L=>{if(be(p)&&be(l)&&y)return t(m,L==null?void 0:L.class,L==null?void 0:L.className)(f);if($&&!Array.isArray($))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof $}`);if(u&&!Array.isArray(u))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof u}`);const j=(h,w=p,N=null,C=null)=>{const M=w[h];if(!M||be(M))return null;const x=(C==null?void 0:C[h])??(L==null?void 0:L[h]);if(x===null)return null;const S=Co(x);if(typeof S=="object")return null;const D=g==null?void 0:g[h],W=S??Co(D);return M[W||"false"]},T=()=>{if(!p)return null;const h=Object.keys(p),w=[];for(let N=0;N<h.length;N++){const C=j(h[N],p);C&&w.push(C)}return w},R=(h,w)=>{if(!p||typeof p!="object")return null;const N=[];for(const C in p){const M=j(C,p,h,w),x=h==="base"&&typeof M=="string"?M:M&&M[h];x&&N.push(x)}return N},I={};for(const h in L){const w=L[h];w!==void 0&&(I[h]=w)}const K=(h,w)=>{var C;const N=typeof(L==null?void 0:L[h])=="object"?{[h]:(C=L[h])==null?void 0:C.initial}:{};return{...g,...I,...N,...w}},V=(h=[],w)=>{const N=[],C=h.length;for(let M=0;M<C;M++){const{class:x,className:S,...D}=h[M];let W=!0;const U=K(null,w);for(const G in D){const te=D[G],se=U[G];if(Array.isArray(te)){if(!te.includes(se)){W=!1;break}}else{if((te==null||te===!1)&&(se==null||se===!1))continue;if(se!==te){W=!1;break}}}W&&(x&&N.push(x),S&&N.push(S))}return N},z=h=>{const w=V($,h);if(!Array.isArray(w))return w;const N={},C=t;for(let M=0;M<w.length;M++){const x=w[M];if(typeof x=="string")N.base=C(N.base,x)(f);else if(typeof x=="object")for(const S in x)N[S]=C(N[S],x[S])(f)}return N},B=h=>{if(u.length<1)return null;const w={},N=K(null,h);for(let C=0;C<u.length;C++){const{slots:M=[],class:x,className:S,...D}=u[C];if(!be(D)){let W=!0;for(const U in D){const G=N[U],te=D[U];if(G===void 0||(Array.isArray(te)?!te.includes(G):te!==G)){W=!1;break}}if(!W)continue}for(let W=0;W<M.length;W++){const U=M[W];w[U]||(w[U]=[]),w[U].push([x,S])}}return w};if(!be(l)||!y){const h={};if(typeof E=="object"&&!be(E)){const w=t;for(const N in E)h[N]=C=>{const M=z(C),x=B(C);return w(E[N],R(N,C),M?M[N]:void 0,x?x[N]:void 0,C==null?void 0:C.class,C==null?void 0:C.className)(f)}}return h}return t(m,T(),V($),L==null?void 0:L.class,L==null?void 0:L.className)(f)},k=()=>{if(!(!p||typeof p!="object"))return Object.keys(p)};return P.variantKeys=k(),P.extend=i,P.base=m,P.slots=E,P.variants=p,P.defaultVariants=g,P.compoundSlots=u,P.compoundVariants=$,P};return{tv:e,createTV:n=>(o,i)=>e(o,i?fn(n,i):n)}};const su=(t,e)=>{const r=new Array(t.length+e.length);for(let n=0;n<t.length;n++)r[n]=t[n];for(let n=0;n<e.length;n++)r[t.length+n]=e[n];return r},au=(t,e)=>({classGroupId:t,validator:e}),il=(t=new Map,e=null,r)=>({nextPart:t,validators:e,classGroupId:r}),br="-",Po=[],cu="arbitrary..",uu=t=>{const e=fu(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return du(l);const s=l.split(br),c=s[0]===""&&s.length>1?1:0;return ll(s,c,e)},getConflictingClassGroupIds:(l,s)=>{if(s){const c=n[l],u=r[l];return c?u?su(u,c):c:u||Po}return r[l]||Po}}},ll=(t,e,r)=>{if(t.length-e===0)return r.classGroupId;const o=t[e],i=r.nextPart.get(o);if(i){const u=ll(t,e+1,i);if(u)return u}const l=r.validators;if(l===null)return;const s=e===0?t.join(br):t.slice(e).join(br),c=l.length;for(let u=0;u<c;u++){const d=l[u];if(d.validator(s))return d.classGroupId}},du=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),r=e.indexOf(":"),n=e.slice(0,r);return n?cu+n:void 0})(),fu=t=>{const{theme:e,classGroups:r}=t;return pu(r,e)},pu=(t,e)=>{const r=il();for(const n in t){const o=t[n];Hn(o,r,n,e)}return r},Hn=(t,e,r,n)=>{const o=t.length;for(let i=0;i<o;i++){const l=t[i];hu(l,e,r,n)}},hu=(t,e,r,n)=>{if(typeof t=="string"){bu(t,e,r);return}if(typeof t=="function"){mu(t,e,r,n);return}gu(t,e,r,n)},bu=(t,e,r)=>{const n=t===""?e:sl(e,t);n.classGroupId=r},mu=(t,e,r,n)=>{if(yu(t)){Hn(t(n),e,r,n);return}e.validators===null&&(e.validators=[]),e.validators.push(au(r,t))},gu=(t,e,r,n)=>{const o=Object.entries(t),i=o.length;for(let l=0;l<i;l++){const[s,c]=o[l];Hn(c,sl(e,s),r,n)}},sl=(t,e)=>{let r=t;const n=e.split(br),o=n.length;for(let i=0;i<o;i++){const l=n[i];let s=r.nextPart.get(l);s||(s=il(),r.nextPart.set(l,s)),r=s}return r},yu=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,vu=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=Object.create(null),n=Object.create(null);const o=(i,l)=>{r[i]=l,e++,e>t&&(e=0,n=r,r=Object.create(null))};return{get(i){let l=r[i];if(l!==void 0)return l;if((l=n[i])!==void 0)return o(i,l),l},set(i,l){i in r?r[i]=l:o(i,l)}}},pn="!",ko=":",$u=[],To=(t,e,r,n,o)=>({modifiers:t,hasImportantModifier:e,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),xu=t=>{const{prefix:e,experimentalParseClassName:r}=t;let n=o=>{const i=[];let l=0,s=0,c=0,u;const d=o.length;for(let y=0;y<d;y++){const v=o[y];if(l===0&&s===0){if(v===ko){i.push(o.slice(c,y)),c=y+1;continue}if(v==="/"){u=y;continue}}v==="["?l++:v==="]"?l--:v==="("?s++:v===")"&&s--}const f=i.length===0?o:o.slice(c);let m=f,p=!1;f.endsWith(pn)?(m=f.slice(0,-1),p=!0):f.startsWith(pn)&&(m=f.slice(1),p=!0);const g=u&&u>c?u-c:void 0;return To(i,p,m,g)};if(e){const o=e+ko,i=n;n=l=>l.startsWith(o)?i(l.slice(o.length)):To($u,!1,l,void 0,!0)}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},wu=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((r,n)=>{e.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let i=0;i<r.length;i++){const l=r[i],s=l[0]==="[",c=e.has(l);s||c?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(l)):o.push(l)}return o.length>0&&(o.sort(),n.push(...o)),n}},Eu=t=>({cache:vu(t.cacheSize),parseClassName:xu(t),sortModifiers:wu(t),...uu(t)}),Su=/\s+/,Cu=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=e,l=[],s=t.trim().split(Su);let c="";for(let u=s.length-1;u>=0;u-=1){const d=s[u],{isExternal:f,modifiers:m,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:y}=r(d);if(f){c=d+(c.length>0?" "+c:c);continue}let v=!!y,E=n(v?g.substring(0,y):g);if(!E){if(!v){c=d+(c.length>0?" "+c:c);continue}if(E=n(g),!E){c=d+(c.length>0?" "+c:c);continue}v=!1}const $=m.length===0?"":m.length===1?m[0]:i(m).join(":"),P=p?$+pn:$,k=P+E;if(l.indexOf(k)>-1)continue;l.push(k);const L=o(E,v);for(let j=0;j<L.length;++j){const T=L[j];l.push(P+T)}c=d+(c.length>0?" "+c:c)}return c},Pu=(...t)=>{let e=0,r,n,o="";for(;e<t.length;)(r=t[e++])&&(n=al(r))&&(o&&(o+=" "),o+=n);return o},al=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=al(t[n]))&&(r&&(r+=" "),r+=e);return r},hn=(t,...e)=>{let r,n,o,i;const l=c=>{const u=e.reduce((d,f)=>f(d),t());return r=Eu(u),n=r.cache.get,o=r.cache.set,i=s,s(c)},s=c=>{const u=n(c);if(u)return u;const d=Cu(c,r);return o(c,d),d};return i=l,(...c)=>i(Pu(...c))},ku=[],ae=t=>{const e=r=>r[t]||ku;return e.isThemeGetter=!0,e},cl=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ul=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Tu=/^\d+\/\d+$/,Mu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ru=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Nu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Du=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Lu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qe=t=>Tu.test(t),q=t=>!!t&&!Number.isNaN(Number(t)),Be=t=>!!t&&Number.isInteger(Number(t)),Yr=t=>t.endsWith("%")&&q(t.slice(0,-1)),Me=t=>Mu.test(t),Iu=()=>!0,Ku=t=>Ru.test(t)&&!Nu.test(t),dl=()=>!1,Au=t=>Du.test(t),Fu=t=>Lu.test(t),Ou=t=>!F(t)&&!O(t),ju=t=>ft(t,hl,dl),F=t=>cl.test(t),Ue=t=>ft(t,bl,Ku),Xr=t=>ft(t,zu,q),Mo=t=>ft(t,fl,dl),Bu=t=>ft(t,pl,Fu),Yt=t=>ft(t,ml,Au),O=t=>ul.test(t),yt=t=>pt(t,bl),_u=t=>pt(t,Wu),Ro=t=>pt(t,fl),Vu=t=>pt(t,hl),Hu=t=>pt(t,pl),Xt=t=>pt(t,ml,!0),ft=(t,e,r)=>{const n=cl.exec(t);return n?n[1]?e(n[1]):r(n[2]):!1},pt=(t,e,r=!1)=>{const n=ul.exec(t);return n?n[1]?e(n[1]):r:!1},fl=t=>t==="position"||t==="percentage",pl=t=>t==="image"||t==="url",hl=t=>t==="length"||t==="size"||t==="bg-size",bl=t=>t==="length",zu=t=>t==="number",Wu=t=>t==="family-name",ml=t=>t==="shadow",bn=()=>{const t=ae("color"),e=ae("font"),r=ae("text"),n=ae("font-weight"),o=ae("tracking"),i=ae("leading"),l=ae("breakpoint"),s=ae("container"),c=ae("spacing"),u=ae("radius"),d=ae("shadow"),f=ae("inset-shadow"),m=ae("text-shadow"),p=ae("drop-shadow"),g=ae("blur"),y=ae("perspective"),v=ae("aspect"),E=ae("ease"),$=ae("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],L=()=>[...k(),O,F],j=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],R=()=>[O,F,c],I=()=>[Qe,"full","auto",...R()],K=()=>[Be,"none","subgrid",O,F],V=()=>["auto",{span:["full",Be,O,F]},Be,O,F],z=()=>[Be,"auto",O,F],B=()=>["auto","min","max","fr",O,F],h=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],w=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...R()],C=()=>[Qe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],M=()=>[t,O,F],x=()=>[...k(),Ro,Mo,{position:[O,F]}],S=()=>["no-repeat",{repeat:["","x","y","space","round"]}],D=()=>["auto","cover","contain",Vu,ju,{size:[O,F]}],W=()=>[Yr,yt,Ue],U=()=>["","none","full",u,O,F],G=()=>["",q,yt,Ue],te=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>[q,Yr,Ro,Mo],pe=()=>["","none",g,O,F],Te=()=>["none",q,O,F],_=()=>["none",q,O,F],ye=()=>[q,O,F],he=()=>[Qe,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Me],breakpoint:[Me],color:[Iu],container:[Me],"drop-shadow":[Me],ease:["in","out","in-out"],font:[Ou],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Me],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Me],shadow:[Me],spacing:["px",q],text:[Me],"text-shadow":[Me],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Qe,F,O,v]}],container:["container"],columns:[{columns:[q,F,O,s]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:L()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[Be,"auto",O,F]}],basis:[{basis:[Qe,"full","auto",s,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[q,Qe,"auto","initial","none",F]}],grow:[{grow:["",q,O,F]}],shrink:[{shrink:["",q,O,F]}],order:[{order:[Be,"first","last","none",O,F]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:V()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:V()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":B()}],"auto-rows":[{"auto-rows":B()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...h(),"normal"]}],"justify-items":[{"justify-items":[...w(),"normal"]}],"justify-self":[{"justify-self":["auto",...w()]}],"align-content":[{content:["normal",...h()]}],"align-items":[{items:[...w(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...w(),{baseline:["","last"]}]}],"place-content":[{"place-content":h()}],"place-items":[{"place-items":[...w(),"baseline"]}],"place-self":[{"place-self":["auto",...w()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:C()}],w:[{w:[s,"screen",...C()]}],"min-w":[{"min-w":[s,"screen","none",...C()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[l]},...C()]}],h:[{h:["screen","lh",...C()]}],"min-h":[{"min-h":["screen","lh","none",...C()]}],"max-h":[{"max-h":["screen","lh",...C()]}],"font-size":[{text:["base",r,yt,Ue]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,O,Xr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Yr,F]}],"font-family":[{font:[_u,F,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,O,F]}],"line-clamp":[{"line-clamp":[q,"none",O,Xr]}],leading:[{leading:[i,...R()]}],"list-image":[{"list-image":["none",O,F]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",O,F]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[q,"from-font","auto",O,Ue]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[q,"auto",O,F]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O,F]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O,F]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:x()}],"bg-repeat":[{bg:S()}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Be,O,F],radial:["",O,F],conic:[Be,O,F]},Hu,Bu]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:U()}],"rounded-s":[{"rounded-s":U()}],"rounded-e":[{"rounded-e":U()}],"rounded-t":[{"rounded-t":U()}],"rounded-r":[{"rounded-r":U()}],"rounded-b":[{"rounded-b":U()}],"rounded-l":[{"rounded-l":U()}],"rounded-ss":[{"rounded-ss":U()}],"rounded-se":[{"rounded-se":U()}],"rounded-ee":[{"rounded-ee":U()}],"rounded-es":[{"rounded-es":U()}],"rounded-tl":[{"rounded-tl":U()}],"rounded-tr":[{"rounded-tr":U()}],"rounded-br":[{"rounded-br":U()}],"rounded-bl":[{"rounded-bl":U()}],"border-w":[{border:G()}],"border-w-x":[{"border-x":G()}],"border-w-y":[{"border-y":G()}],"border-w-s":[{"border-s":G()}],"border-w-e":[{"border-e":G()}],"border-w-t":[{"border-t":G()}],"border-w-r":[{"border-r":G()}],"border-w-b":[{"border-b":G()}],"border-w-l":[{"border-l":G()}],"divide-x":[{"divide-x":G()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":G()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[q,O,F]}],"outline-w":[{outline:["",q,yt,Ue]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",d,Xt,Yt]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",f,Xt,Yt]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[q,Ue]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",m,Xt,Yt]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[q,O,F]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[q]}],"mask-image-linear-from-pos":[{"mask-linear-from":Y()}],"mask-image-linear-to-pos":[{"mask-linear-to":Y()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":Y()}],"mask-image-t-to-pos":[{"mask-t-to":Y()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":Y()}],"mask-image-r-to-pos":[{"mask-r-to":Y()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":Y()}],"mask-image-b-to-pos":[{"mask-b-to":Y()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":Y()}],"mask-image-l-to-pos":[{"mask-l-to":Y()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":Y()}],"mask-image-x-to-pos":[{"mask-x-to":Y()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":Y()}],"mask-image-y-to-pos":[{"mask-y-to":Y()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[O,F]}],"mask-image-radial-from-pos":[{"mask-radial-from":Y()}],"mask-image-radial-to-pos":[{"mask-radial-to":Y()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[q]}],"mask-image-conic-from-pos":[{"mask-conic-from":Y()}],"mask-image-conic-to-pos":[{"mask-conic-to":Y()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:x()}],"mask-repeat":[{mask:S()}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",O,F]}],filter:[{filter:["","none",O,F]}],blur:[{blur:pe()}],brightness:[{brightness:[q,O,F]}],contrast:[{contrast:[q,O,F]}],"drop-shadow":[{"drop-shadow":["","none",p,Xt,Yt]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",q,O,F]}],"hue-rotate":[{"hue-rotate":[q,O,F]}],invert:[{invert:["",q,O,F]}],saturate:[{saturate:[q,O,F]}],sepia:[{sepia:["",q,O,F]}],"backdrop-filter":[{"backdrop-filter":["","none",O,F]}],"backdrop-blur":[{"backdrop-blur":pe()}],"backdrop-brightness":[{"backdrop-brightness":[q,O,F]}],"backdrop-contrast":[{"backdrop-contrast":[q,O,F]}],"backdrop-grayscale":[{"backdrop-grayscale":["",q,O,F]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[q,O,F]}],"backdrop-invert":[{"backdrop-invert":["",q,O,F]}],"backdrop-opacity":[{"backdrop-opacity":[q,O,F]}],"backdrop-saturate":[{"backdrop-saturate":[q,O,F]}],"backdrop-sepia":[{"backdrop-sepia":["",q,O,F]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",O,F]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[q,"initial",O,F]}],ease:[{ease:["linear","initial",E,O,F]}],delay:[{delay:[q,O,F]}],animate:[{animate:["none",$,O,F]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,O,F]}],"perspective-origin":[{"perspective-origin":L()}],rotate:[{rotate:Te()}],"rotate-x":[{"rotate-x":Te()}],"rotate-y":[{"rotate-y":Te()}],"rotate-z":[{"rotate-z":Te()}],scale:[{scale:_()}],"scale-x":[{"scale-x":_()}],"scale-y":[{"scale-y":_()}],"scale-z":[{"scale-z":_()}],"scale-3d":["scale-3d"],skew:[{skew:ye()}],"skew-x":[{"skew-x":ye()}],"skew-y":[{"skew-y":ye()}],transform:[{transform:[O,F,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:he()}],"translate-x":[{"translate-x":he()}],"translate-y":[{"translate-y":he()}],"translate-z":[{"translate-z":he()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O,F]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O,F]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[q,yt,Ue,Xr]}],stroke:[{stroke:["none",...M()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Uu=(t,{cacheSize:e,prefix:r,experimentalParseClassName:n,extend:o={},override:i={}})=>(St(t,"cacheSize",e),St(t,"prefix",r),St(t,"experimentalParseClassName",n),Zt(t.theme,i.theme),Zt(t.classGroups,i.classGroups),Zt(t.conflictingClassGroups,i.conflictingClassGroups),Zt(t.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),St(t,"orderSensitiveModifiers",i.orderSensitiveModifiers),Jt(t.theme,o.theme),Jt(t.classGroups,o.classGroups),Jt(t.conflictingClassGroups,o.conflictingClassGroups),Jt(t.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),gl(t,o,"orderSensitiveModifiers"),t),St=(t,e,r)=>{r!==void 0&&(t[e]=r)},Zt=(t,e)=>{if(e)for(const r in e)St(t,r,e[r])},Jt=(t,e)=>{if(e)for(const r in e)gl(t,e,r)},gl=(t,e,r)=>{const n=e[r];n!==void 0&&(t[r]=t[r]?t[r].concat(n):n)},Gu=(t,...e)=>typeof t=="function"?hn(bn,t,...e):hn(()=>Uu(bn(),t),...e),qu=hn(bn);var Yu=t=>be(t)?qu:Gu({...t,extend:{theme:t.theme,classGroups:t.classGroups,conflictingClassGroupModifiers:t.conflictingClassGroupModifiers,conflictingClassGroups:t.conflictingClassGroups,...t.extend}}),yl=(t,e)=>{const r=Dt(t);return!r||!((e==null?void 0:e.twMerge)??!0)?r:((!Re.cachedTwMerge||Re.didTwMergeConfigChange)&&(Re.didTwMergeConfigChange=!1,Re.cachedTwMerge=Yu(Re.cachedTwMergeConfig)),Re.cachedTwMerge(r)||void 0)},ee=(...t)=>yl(t,{}),Xu=(...t)=>e=>yl(t,e),{tv:Ee}=lu(Xu);const Zu=Ee({defaultVariants:{status:"default"},slots:{base:"alert",content:"alert__content",description:"alert__description",indicator:"alert__indicator",title:"alert__title"},variants:{status:{accent:{base:"alert--accent"},danger:{base:"alert--danger"},default:{base:"alert--default"},success:{base:"alert--success"},warning:{base:"alert--warning"}}}}),ze=Ee({base:"button",defaultVariants:{fullWidth:!1,isIconOnly:!1,size:"md",variant:"primary"},variants:{fullWidth:{false:"",true:"button--full-width"},isIconOnly:{true:"button--icon-only"},size:{lg:"button--lg",md:"button--md",sm:"button--sm"},variant:{danger:"button--danger","danger-soft":"button--danger-soft",ghost:"button--ghost",outline:"button--outline",primary:"button--primary",secondary:"button--secondary",tertiary:"button--tertiary"}}}),zn=Ee({defaultVariants:{fullWidth:!1,orientation:"horizontal"},slots:{base:"button-group",separator:"button-group__separator"},variants:{fullWidth:{false:{},true:{base:"button-group--full-width"}},orientation:{horizontal:{base:"button-group--horizontal"},vertical:{base:"button-group--vertical"}}}}),Ju=Ee({defaultVariants:{variant:"default"},slots:{base:"card",content:"card__content",description:"card__description",footer:"card__footer",header:"card__header",title:"card__title"},variants:{variant:{default:{base:"card--default"},secondary:{base:"card--secondary"},tertiary:{base:"card--tertiary"},transparent:{base:"card--transparent"}}}}),Qu=Ee({defaultVariants:{variant:"primary"},slots:{base:"checkbox",content:"checkbox__content",control:"checkbox__control",indicator:"checkbox__indicator"},variants:{variant:{primary:{base:"checkbox--primary"},secondary:{base:"checkbox--secondary"}}}}),ed=Ee({defaultVariants:{color:"default",variant:"secondary"},slots:{base:"chip",label:"chip__label"},variants:{color:{accent:{base:"chip--accent"},danger:{base:"chip--danger"},default:{base:"chip--default"},success:{base:"chip--success"},warning:{base:"chip--warning"}},size:{lg:{base:"chip--lg"},md:{base:"chip--md"},sm:{base:"chip--sm"}},variant:{primary:{base:"chip--primary"},secondary:{base:"chip--secondary"},soft:{base:"chip--soft"},tertiary:{base:"chip--tertiary"}}}}),td=Ee({slots:{menu:"dropdown__menu",popover:"dropdown__popover",root:"dropdown",trigger:"dropdown__trigger"}}),rd=Ee({slots:{base:"link",icon:"link__icon"}}),nd=Ee({defaultVariants:{color:"accent",size:"md"},slots:{base:"progress-bar",fill:"progress-bar__fill",output:"progress-bar__output",track:"progress-bar__track"},variants:{color:{accent:{base:"progress-bar--accent"},danger:{base:"progress-bar--danger"},default:{base:"progress-bar--default"},success:{base:"progress-bar--success"},warning:{base:"progress-bar--warning"}},size:{lg:{base:"progress-bar--lg"},md:{base:"progress-bar--md"},sm:{base:"progress-bar--sm"}}}}),od=Ee({defaultVariants:{variant:"default"},slots:{indicator:"menu-item__indicator",item:"menu-item",submenuIndicator:"menu-item__indicator menu-item__indicator--submenu"},variants:{variant:{danger:{item:"menu-item--danger"},default:{item:"menu-item--default"}}}}),id=Ee({base:"menu-section"}),ld=Ee({base:"separator",defaultVariants:{orientation:"horizontal",variant:"default"},variants:{orientation:{horizontal:"separator--horizontal",vertical:"separator--vertical"},variant:{default:"separator--default",secondary:"separator--secondary",tertiary:"separator--tertiary"}}}),vl=Symbol("default");function ht({values:t,children:e}){for(let[r,n]of t)e=a.createElement(r.Provider,{value:n},e);return e}function Fe(t){let{className:e,style:r,children:n,defaultClassName:o,defaultChildren:i,defaultStyle:l,values:s,render:c}=t;return a.useMemo(()=>{let u,d,f;return typeof e=="function"?u=e({...s,defaultClassName:o}):u=e,typeof r=="function"?d=r({...s,defaultStyle:l||{}}):d=r,typeof n=="function"?f=n({...s,defaultChildren:i}):n==null?f=i:f=n,{className:u??o,style:d||l?{...l,...d}:void 0,children:f??i,"data-rac":"",render:c?m=>c(m,s):void 0}},[e,r,n,o,i,l,s,c])}function sd(t,e){return r=>e(typeof t=="function"?t(r):t,r)}function Wt(t,e){let r=a.useContext(t);if(e===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=e||vl;if(!r.slots[n]){let o=new Intl.ListFormat().format(Object.keys(r.slots).map(l=>`"${l}"`)),i=e?`Invalid slot "${e}".`:"A slot prop is required.";throw new Error(`${i} Valid slot names are ${o}.`)}return r.slots[n]}return r}function Oe(t,e,r){let n=Wt(r,t.slot)||{},{ref:o,...i}=n,l=zt(a.useMemo(()=>Ht(e,o),[e,o])),s=X(i,t);return"style"in i&&i.style&&"style"in t&&t.style&&(typeof i.style=="function"||typeof t.style=="function"?s.style=c=>{let u=typeof i.style=="function"?i.style(c):i.style,d={...c.defaultStyle,...u},f=typeof t.style=="function"?t.style({...c,defaultStyle:d}):t.style;return{...d,...f}}:s.style={...i.style,...t.style}),[s,l]}function $l(t=!0){let[e,r]=a.useState(t),n=a.useRef(!1),o=a.useCallback(i=>{n.current=!0,r(!!i)},[]);return J(()=>{n.current||r(!1)},[]),[o,e]}function ad(t){const e=/^(data-.*)$/;let r={};for(const n in t)e.test(n)||(r[n]=t[n]);return r}function cd(t,e,r){let{render:n,...o}=e,i=a.useRef(null),l=a.useMemo(()=>Ht(r,i),[r,i]);J(()=>{process.env.NODE_ENV!=="production"&&n&&(i.current?i.current.localName!==t&&console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${t}>, got <${i.current.localName}>. This may break the component behavior and accessibility.`):console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"))},[t,n]);let s={...o,ref:l};return n?n(s,void 0):a.createElement(t,s)}const No={},Ce=new Proxy({},{get(t,e){if(typeof e!="string")return;let r=No[e];return r||(r=a.forwardRef(cd.bind(null,e)),No[e]=r),r}});typeof HTMLTemplateElement<"u"&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(t){return this.content.appendChild(t)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(t){return this.content.removeChild(t)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(t,e){return this.content.insertBefore(t,e)}}));const mr=a.createContext(!1);function ud(t){if(a.useContext(mr))return a.createElement(a.Fragment,null,t.children);let r=a.createElement(mr.Provider,{value:!0},t.children);return a.createElement("template",null,r)}function dd(t){let e=(r,n)=>a.useContext(mr)?null:t(r,n);return e.displayName=t.displayName||t.name,a.forwardRef(e)}function xl(){return a.useContext(mr)}const fd=a.createContext({});function pd(t){let{id:e,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:i="label"}=t;e=ge(e);let l=ge(),s={};r?(n=n?`${l} ${n}`:l,s={id:l,htmlFor:i==="label"?e:void 0}):!n&&!o&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let c=Xi({id:e,"aria-label":o,"aria-labelledby":n});return{labelProps:s,fieldProps:c}}const hd=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),bd=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function md(t){if(Intl.Locale){let r=new Intl.Locale(t).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return hd.has(r.script)}let e=t.split("-")[0];return bd.has(e)}const wl=Symbol.for("react-aria.i18n.locale");function El(){let t=typeof window<"u"&&window[wl]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:md(t)?"rtl":"ltr"}}let mn=El(),Ct=new Set;function Do(){mn=El();for(let t of Ct)t(mn)}function gd(){let t=dt(),[e,r]=a.useState(mn);return a.useEffect(()=>(Ct.size===0&&window.addEventListener("languagechange",Do),Ct.add(r),()=>{Ct.delete(r),Ct.size===0&&window.removeEventListener("languagechange",Do)}),[]),t?{locale:typeof window<"u"&&window[wl]||"en-US",direction:"ltr"}:e}const yd=a.createContext(null);function Je(){let t=gd();return a.useContext(yd)||t}let Zr=new Map,gn=!1;try{gn=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let gr=!1;try{gr=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Sl={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class vd{constructor(e,r={}){this.numberFormatter=$d(e,r),this.options=r}format(e){var n;let r="";if(!gn&&this.options.signDisplay!=null?r=xd(this.numberFormatter,this.options.signDisplay,e):r=this.numberFormatter.format(e),this.options.style==="unit"&&!gr){let{unit:o,unitDisplay:i="short",locale:l}=this.resolvedOptions();if(!o)return r;let s=(n=Sl[o])==null?void 0:n[i];r+=s[l]||s.default}return r}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(e,r);if(r<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(r)}`}formatRangeToParts(e,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(e,r);if(r<e)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(e),o=this.numberFormatter.formatToParts(r);return[...n.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!gn&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!gr&&this.options.style==="unit"&&(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}}function $d(t,e={}){var i;let{numberingSystem:r}=e;if(r&&t.includes("-nu-")&&(t.includes("-u-")||(t+="-u-"),t+=`-nu-${r}`),e.style==="unit"&&!gr){let{unit:l,unitDisplay:s="short"}=e;if(!l)throw new Error('unit option must be provided with style: "unit"');if(!((i=Sl[l])!=null&&i[s]))throw new Error(`Unsupported unit ${l} with unitDisplay = ${s}`);e={...e,style:"decimal"}}let n=t+(e?Object.entries(e).sort((l,s)=>l[0]<s[0]?-1:1).join():"");if(Zr.has(n))return Zr.get(n);let o=new Intl.NumberFormat(t,e);return Zr.set(n,o),o}function xd(t,e,r){if(e==="auto")return t.format(r);if(e==="never")return t.format(Math.abs(r));{let n=!1;if(e==="always"?n=r>0||Object.is(r,0):e==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=t.format(-r),i=t.format(r),l=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...l].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(l,"+").replace("!!!",i)}else return t.format(r)}}function wd(t={}){let{locale:e}=Je();return a.useMemo(()=>new vd(e,t),[e,t])}function yr(t,e=-1/0,r=1/0){return Math.min(Math.max(t,e),r)}function Ed(t){let{value:e=0,minValue:r=0,maxValue:n=100,valueLabel:o,isIndeterminate:i,formatOptions:l={style:"percent"}}=t,s=ue(t,{labelable:!0}),{labelProps:c,fieldProps:u}=pd({...t,labelElementType:"span"});e=yr(e,r,n);let d=(e-r)/(n-r),f=wd(l);if(!i&&!o){let m=l.style==="percent"?d:e;o=f.format(m)}return{progressBarProps:X(s,{...u,"aria-valuenow":i?void 0:e,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:c}}function Sd(t,e=-1/0,r=1/0){return Math.min(Math.max(t,e),r)}const Cl=a.createContext(null),Cd=a.forwardRef(function(e,r){[e,r]=Oe(e,r,Cl);let{value:n=0,minValue:o=0,maxValue:i=100,isIndeterminate:l=!1}=e;n=Sd(n,o,i);let[s,c]=$l(!e["aria-label"]&&!e["aria-labelledby"]),{progressBarProps:u,labelProps:d}=Ed({...e,label:c}),f=l?void 0:(n-o)/(i-o)*100,m=Fe({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:f,valueText:u["aria-valuetext"],isIndeterminate:l}}),p=ue(e,{global:!0});return a.createElement(Ce.div,{...X(p,m,u),ref:r,slot:e.slot||void 0},a.createElement(fd.Provider,{value:{...d,ref:s,elementType:"span"}},m.children))}),Pl=7e3;let Pe=null;function Lo(t,e="assertive",r=Pl){Pe?Pe.announce(t,e,r):(Pe=new Pd,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Pe.announce(t,e,r):setTimeout(()=>{Pe!=null&&Pe.isAttached()&&(Pe==null||Pe.announce(t,e,r))},100))}class Pd{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){var e;return(e=this.node)==null?void 0:e.isConnected}createLog(e){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",e),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,r="assertive",n=Pl){var i,l;if(!this.node)return;let o=document.createElement("div");typeof e=="object"?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",e["aria-labelledby"])):o.textContent=e,r==="assertive"?(i=this.assertiveLog)==null||i.appendChild(o):(l=this.politeLog)==null||l.appendChild(o),e!==""&&setTimeout(()=>{o.remove()},n)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}}function Wn(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function kl(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function Tl(t){let e=a.useRef({isFocused:!1,observer:null});return J(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),a.useCallback(r=>{let n=A(r);if(n instanceof HTMLButtonElement||n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement){e.current.isFocused=!0;let o=n,i=l=>{if(e.current.isFocused=!1,o.disabled){let s=Wn(l);t==null||t(s)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),e.current.observer=new MutationObserver(()=>{var l;if(e.current.isFocused&&o.disabled){(l=e.current.observer)==null||l.disconnect();let s=o===ne()?null:ne();o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),e.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[t])}let vr=!1;function Io(t){for(;t&&!Qi(t,{skipVisibilityCheck:!0});)t=t.parentElement;let e=fe(t),r=e.document.activeElement;if(!r||r===t)return;vr=!0;let n=!1,o=d=>{(A(d)===r||n)&&d.stopImmediatePropagation()},i=d=>{(A(d)===r||n)&&(d.stopImmediatePropagation(),!t&&!n&&(n=!0,de(r),c()))},l=d=>{(A(d)===t||n)&&d.stopImmediatePropagation()},s=d=>{(A(d)===t||n)&&(d.stopImmediatePropagation(),n||(n=!0,de(r),c()))};e.addEventListener("blur",o,!0),e.addEventListener("focusout",i,!0),e.addEventListener("focusin",s,!0),e.addEventListener("focus",l,!0);let c=()=>{cancelAnimationFrame(u),e.removeEventListener("blur",o,!0),e.removeEventListener("focusout",i,!0),e.removeEventListener("focusin",s,!0),e.removeEventListener("focus",l,!0),vr=!1,n=!1},u=requestAnimationFrame(c);return c}let Ke=null;const Lt=new Set;let Tt=new Map,Xe=!1,yn=!1;const kd={Tab:!0,Escape:!0};function Nr(t,e){for(let r of Lt)r(t,e)}function Td(t){return!(t.metaKey||!Ye()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function $r(t){Xe=!0,!Ie.isOpening&&Td(t)&&(Ke="keyboard",Nr("keyboard",t))}function ve(t){Ke="pointer","pointerType"in t&&t.pointerType,(t.type==="mousedown"||t.type==="pointerdown")&&(Xe=!0,Nr("pointer",t))}function Ml(t){!Ie.isOpening&&dn(t)&&(Xe=!0,Ke="virtual")}function Rl(t){let e=fe(A(t)),r=Z(A(t));A(t)===e||A(t)===r||vr||!t.isTrusted||(!Xe&&!yn&&(Ke="virtual",Nr("virtual",t)),Xe=!1,yn=!1)}function Nl(){vr||(Xe=!1,yn=!0)}function xr(t){if(typeof window>"u"||typeof document>"u")return;const e=fe(t),r=Z(t);if(Tt.get(e))return;let n=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Xe=!0,n.apply(this,arguments)},r.addEventListener("keydown",$r,!0),r.addEventListener("keyup",$r,!0),r.addEventListener("click",Ml,!0),e.addEventListener("focus",Rl,!0),e.addEventListener("blur",Nl,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",ve,!0),r.addEventListener("pointermove",ve,!0),r.addEventListener("pointerup",ve,!0)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",ve,!0),r.addEventListener("mousemove",ve,!0),r.addEventListener("mouseup",ve,!0)),e.addEventListener("beforeunload",()=>{Dl(t)},{once:!0}),Tt.set(e,{focus:n})}const Dl=(t,e)=>{const r=fe(t),n=Z(t);e&&n.removeEventListener("DOMContentLoaded",e),Tt.has(r)&&(r.HTMLElement.prototype.focus=Tt.get(r).focus,n.removeEventListener("keydown",$r,!0),n.removeEventListener("keyup",$r,!0),n.removeEventListener("click",Ml,!0),r.removeEventListener("focus",Rl,!0),r.removeEventListener("blur",Nl,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",ve,!0),n.removeEventListener("pointermove",ve,!0),n.removeEventListener("pointerup",ve,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",ve,!0),n.removeEventListener("mousemove",ve,!0),n.removeEventListener("mouseup",ve,!0)),Tt.delete(r))};function Md(t){const e=Z(t);let r;return e.readyState!=="loading"?xr(t):(r=()=>{xr(t)},e.addEventListener("DOMContentLoaded",r)),()=>Dl(t,r)}typeof document<"u"&&Md();function It(){return Ke!=="pointer"}function Kt(){return Ke}function vn(t){Ke=t,Nr(t,null)}function Rd(){xr();let[t,e]=a.useState(Ke);return a.useEffect(()=>{let r=()=>{e(Ke)};return Lt.add(r),()=>{Lt.delete(r)}},[]),dt()?null:t}const Nd=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Dd(t,e,r){let n=r?A(r):void 0,o=Z(n),i=fe(n);const l=typeof i<"u"?i.HTMLInputElement:HTMLInputElement,s=typeof i<"u"?i.HTMLTextAreaElement:HTMLTextAreaElement,c=typeof i<"u"?i.HTMLElement:HTMLElement,u=typeof i<"u"?i.KeyboardEvent:KeyboardEvent;let d=ne(o);return t=t||d instanceof l&&!Nd.has(d.type)||d instanceof s||d instanceof c&&d.isContentEditable,!(t&&e==="keyboard"&&r instanceof u&&!kd[r.key])}function Ld(t,e,r){xr(),a.useEffect(()=>{if((r==null?void 0:r.enabled)===!1)return;let n=(o,i)=>{Dd(!!(r!=null&&r.isTextInput),o,i)&&t(It())};return Lt.add(n),()=>{Lt.delete(n)}},e)}function ct(t){if(!t.isConnected)return;const e=Z(t);if(Kt()==="virtual"){let r=ne(e);Yi(()=>{const n=ne(e);(n===r||n===e.body)&&t.isConnected&&de(t)})}else de(t)}function Ll(t){let{isDisabled:e,onFocus:r,onBlur:n,onFocusChange:o}=t;const i=a.useCallback(c=>{if(A(c)===c.currentTarget)return n&&n(c),o&&o(!1),!0},[n,o]),l=Tl(i),s=a.useCallback(c=>{let u=A(c);const d=Z(u),f=d?ne(d):ne();u===c.currentTarget&&u===f&&(r&&r(c),o&&o(!0),l(c))},[o,r,l]);return{focusProps:{onFocus:!e&&(r||o||n)?s:void 0,onBlur:!e&&(n||o)?i:void 0}}}function Ko(t){if(!t)return;let e=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){e&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):e=!0},continuePropagation(){e=!1},isPropagationStopped(){return e}};t(n),e&&r.stopPropagation()}}function Il(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:Ko(t.onKeyDown),onKeyUp:Ko(t.onKeyUp)}}}let $n=a.createContext(null);function Id(t){let e=a.useContext($n)||{};Bn(e,t);let{ref:r,...n}=e;return n}function Dr(t,e){let{focusProps:r}=Ll(t),{keyboardProps:n}=Il(t),o=X(r,n),i=Id(e),l=t.isDisabled?{}:i,s=a.useRef(t.autoFocus);a.useEffect(()=>{s.current&&e.current&&ct(e.current),s.current=!1},[e]);let c=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(c=void 0),{focusableProps:X({...o,tabIndex:c},l)}}let nt="default",xn="",cr=new WeakMap;function Ao(t){if(Bt()){if(nt==="default"){const e=Z(t);xn=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}nt="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";cr.set(t,t.style[e]),t.style[e]="none"}}function Jr(t){if(Bt()){if(nt!=="disabled")return;nt="restoring",setTimeout(()=>{Yi(()=>{if(nt==="restoring"){const e=Z(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=xn||""),xn="",nt="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&cr.has(t)){let e=cr.get(t),r="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[r]==="none"&&(t.style[r]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),cr.delete(t)}}const At=a.createContext({register:()=>{}});At.displayName="PressResponderContext";function Kd(t){let e=a.useContext(At);if(e){let{register:r,ref:n,...o}=e;t=X(o,t),r()}return Bn(e,t.ref),t}var lt;class Qt{constructor(e,r,n,o){go(this,lt);Vr(this,lt,!0);let i=(o==null?void 0:o.target)??n.currentTarget;const l=i==null?void 0:i.getBoundingClientRect();let s,c=0,u,d=null;n.clientX!=null&&n.clientY!=null&&(u=n.clientX,d=n.clientY),l&&(u!=null&&d!=null?(s=u-l.left,c=d-l.top):(s=l.width/2,c=l.height/2)),this.type=e,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=s,this.y=c,this.key=n.key}continuePropagation(){Vr(this,lt,!1)}get shouldStopPropagation(){return mo(this,lt)}}lt=new WeakMap;const Fo=Symbol("linkClicked"),Oo="react-aria-pressable-style",jo="data-react-aria-pressable";function Ze(t){let{onPress:e,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,onClick:l,isDisabled:s,isPressed:c,preventFocusOnPress:u,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:m,...p}=Kd(t),[g,y]=a.useState(!1),v=a.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:E,removeAllGlobalListeners:$}=Rr(),P=a.useCallback((h,w)=>{let N=v.current;if(s||N.didFirePressStart)return!1;let C=!0;if(N.isTriggeringEvent=!0,n){let M=new Qt("pressstart",w,h);n(M),C=M.shouldStopPropagation}return r&&r(!0),N.isTriggeringEvent=!1,N.didFirePressStart=!0,y(!0),C},[s,n,r]),k=a.useCallback((h,w,N=!0)=>{let C=v.current;if(!C.didFirePressStart)return!1;C.didFirePressStart=!1,C.isTriggeringEvent=!0;let M=!0;if(o){let x=new Qt("pressend",w,h);o(x),M=x.shouldStopPropagation}if(r&&r(!1),y(!1),e&&N&&!s){let x=new Qt("press",w,h);e(x),M&&(M=x.shouldStopPropagation)}return C.isTriggeringEvent=!1,M},[s,o,r,e]),L=xe(k),j=a.useCallback((h,w)=>{let N=v.current;if(s)return!1;if(i){N.isTriggeringEvent=!0;let C=new Qt("pressup",w,h);return i(C),N.isTriggeringEvent=!1,C.shouldStopPropagation}return!0},[s,i]),T=xe(j),R=a.useCallback(h=>{let w=v.current;if(w.isPressed&&w.target){w.didFirePressStart&&w.pointerType!=null&&k(Ge(w.target,h),w.pointerType,!1),w.isPressed=!1,w.isOverTarget=!1,w.activePointerId=null,w.pointerType=null,$(),f||Jr(w.target);for(let N of w.disposables)N();w.disposables=[]}},[f,$,k]),I=xe(R);a.useEffect(()=>{s&&v.current.isPressed&&I({currentTarget:v.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[s]);let K=a.useCallback(h=>{d&&R(h)},[d,R]),V=a.useCallback(h=>{s||l==null||l(h)},[s,l]),z=a.useCallback((h,w)=>{if(!s&&l){let N=new MouseEvent("click",h);kl(N,w),l(Wn(N))}},[s,l]),B=a.useMemo(()=>{let h=v.current,w={onKeyDown(C){var M;if(Qr(C.nativeEvent,C.currentTarget)&&H(C.currentTarget,A(C))){Vo(A(C),C.key)&&C.preventDefault();let x=!0;!h.isPressed&&!C.repeat&&(h.target=C.currentTarget,h.isPressed=!0,h.pointerType="keyboard",x=P(C,"keyboard"));let S=C.currentTarget,D=W=>{Qr(W,S)&&!W.repeat&&H(S,A(W))&&h.target&&T(Ge(h.target,W),"keyboard")};E(Z(C.currentTarget),"keyup",Vt(D,N),!0),x&&C.stopPropagation(),C.metaKey&&Ye()&&((M=h.metaKeyEvents)==null||M.set(C.key,C.nativeEvent))}else C.key==="Meta"&&(h.metaKeyEvents=new Map)},onClick(C){if(!(C&&!H(C.currentTarget,A(C)))&&C&&C.button===0&&!h.isTriggeringEvent&&!Ie.isOpening){let M=!0;if(s&&C.preventDefault(),!h.ignoreEmulatedMouseEvents&&!h.isPressed&&(h.pointerType==="virtual"||dn(C.nativeEvent))){let x=P(C,"virtual"),S=T(C,"virtual"),D=L(C,"virtual");V(C),M=x&&S&&D}else if(h.isPressed&&h.pointerType!=="keyboard"){let x=h.pointerType||C.nativeEvent.pointerType||"virtual",S=T(Ge(C.currentTarget,C),x),D=L(Ge(C.currentTarget,C),x,!0);M=S&&D,h.isOverTarget=!1,V(C),I(C)}h.ignoreEmulatedMouseEvents=!1,M&&C.stopPropagation()}}},N=C=>{var M,x,S;if(h.isPressed&&h.target&&Qr(C,h.target)){Vo(A(C),C.key)&&C.preventDefault();let D=A(C),W=H(h.target,D);L(Ge(h.target,C),"keyboard",W),W&&z(C,h.target),$(),C.key!=="Enter"&&Un(h.target)&&H(h.target,D)&&!C[Fo]&&(C[Fo]=!0,Ie(h.target,C,!1)),h.isPressed=!1,(M=h.metaKeyEvents)==null||M.delete(C.key)}else if(C.key==="Meta"&&((x=h.metaKeyEvents)!=null&&x.size)){let D=h.metaKeyEvents;h.metaKeyEvents=void 0;for(let W of D.values())(S=h.target)==null||S.dispatchEvent(new KeyboardEvent("keyup",W))}};if(typeof PointerEvent<"u"){w.onPointerDown=x=>{if(x.button!==0||!H(x.currentTarget,A(x)))return;if(zc(x.nativeEvent)){h.pointerType="virtual";return}h.pointerType=x.pointerType;let S=!0;if(!h.isPressed){h.isPressed=!0,h.isOverTarget=!0,h.activePointerId=x.pointerId,h.target=x.currentTarget,f||Ao(h.target),S=P(x,h.pointerType);let D=A(x);"releasePointerCapture"in D&&("hasPointerCapture"in D?D.hasPointerCapture(x.pointerId)&&D.releasePointerCapture(x.pointerId):D.releasePointerCapture(x.pointerId)),E(Z(x.currentTarget),"pointerup",C,!1),E(Z(x.currentTarget),"pointercancel",M,!1)}S&&x.stopPropagation()},w.onMouseDown=x=>{if(H(x.currentTarget,A(x))&&x.button===0){if(u){let S=Io(x.target);S&&h.disposables.push(S)}x.stopPropagation()}},w.onPointerUp=x=>{!H(x.currentTarget,A(x))||h.pointerType==="virtual"||x.button===0&&!h.isPressed&&T(x,h.pointerType||x.pointerType)},w.onPointerEnter=x=>{x.pointerId===h.activePointerId&&h.target&&!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,P(Ge(h.target,x),h.pointerType))},w.onPointerLeave=x=>{x.pointerId===h.activePointerId&&h.target&&h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,L(Ge(h.target,x),h.pointerType,!1),K(x))};let C=x=>{if(x.pointerId===h.activePointerId&&h.isPressed&&x.button===0&&h.target){if(H(h.target,A(x))&&h.pointerType!=null){let S=!1,D=setTimeout(()=>{h.isPressed&&h.target instanceof HTMLElement&&(S?I(x):(de(h.target),h.target.click()))},80);E(x.currentTarget,"click",()=>S=!0,!0),h.disposables.push(()=>clearTimeout(D))}else I(x);h.isOverTarget=!1}},M=x=>{I(x)};w.onDragStart=x=>{H(x.currentTarget,A(x))&&I(x)}}else if(process.env.NODE_ENV==="test"){w.onMouseDown=x=>{if(x.button!==0||!H(x.currentTarget,A(x)))return;if(h.ignoreEmulatedMouseEvents){x.stopPropagation();return}if(h.isPressed=!0,h.isOverTarget=!0,h.target=x.currentTarget,h.pointerType=dn(x.nativeEvent)?"virtual":"mouse",jt.flushSync(()=>P(x,h.pointerType))&&x.stopPropagation(),u){let D=Io(x.target);D&&h.disposables.push(D)}E(Z(x.currentTarget),"mouseup",C,!1)},w.onMouseEnter=x=>{if(!H(x.currentTarget,A(x)))return;let S=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!0,S=P(x,h.pointerType)),S&&x.stopPropagation()},w.onMouseLeave=x=>{if(!H(x.currentTarget,A(x)))return;let S=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!1,S=L(x,h.pointerType,!1),K(x)),S&&x.stopPropagation()},w.onMouseUp=x=>{H(x.currentTarget,A(x))&&!h.ignoreEmulatedMouseEvents&&x.button===0&&!h.isPressed&&T(x,h.pointerType||"mouse")};let C=x=>{if(x.button===0){if(h.ignoreEmulatedMouseEvents){h.ignoreEmulatedMouseEvents=!1;return}h.target&&H(h.target,A(x))&&h.pointerType!=null||I(x),h.isOverTarget=!1}};w.onTouchStart=x=>{if(!H(x.currentTarget,A(x)))return;let S=Ad(x.nativeEvent);if(!S)return;h.activePointerId=S.identifier,h.ignoreEmulatedMouseEvents=!0,h.isOverTarget=!0,h.isPressed=!0,h.target=x.currentTarget,h.pointerType="touch",f||Ao(h.target),P(_e(h.target,x),h.pointerType)&&x.stopPropagation(),E(fe(x.currentTarget),"scroll",M,!0)},w.onTouchMove=x=>{if(!H(x.currentTarget,A(x)))return;if(!h.isPressed){x.stopPropagation();return}let S=Bo(x.nativeEvent,h.activePointerId),D=!0;S&&_o(S,x.currentTarget)?!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,D=P(_e(h.target,x),h.pointerType)):h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,D=L(_e(h.target,x),h.pointerType,!1),K(_e(h.target,x))),D&&x.stopPropagation()},w.onTouchEnd=x=>{if(!H(x.currentTarget,A(x)))return;if(!h.isPressed){x.stopPropagation();return}let S=Bo(x.nativeEvent,h.activePointerId),D=!0;S&&_o(S,x.currentTarget)&&h.pointerType!=null?(T(_e(h.target,x),h.pointerType),D=L(_e(h.target,x),h.pointerType),z(x.nativeEvent,h.target)):h.isOverTarget&&h.pointerType!=null&&(D=L(_e(h.target,x),h.pointerType,!1)),D&&x.stopPropagation(),h.isPressed=!1,h.activePointerId=null,h.isOverTarget=!1,h.ignoreEmulatedMouseEvents=!0,h.target&&!f&&Jr(h.target),$()},w.onTouchCancel=x=>{H(x.currentTarget,A(x))&&(x.stopPropagation(),h.isPressed&&I(_e(h.target,x)))};let M=x=>{h.isPressed&&H(A(x),h.target)&&I({currentTarget:h.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};w.onDragStart=x=>{H(x.currentTarget,A(x))&&I(x)}}return w},[E,s,u,$,f,K,P,V,z]);return a.useEffect(()=>{if(!m||process.env.NODE_ENV==="test")return;const h=Z(m.current);if(!h||!h.head||h.getElementById(Oo))return;const w=h.createElement("style");w.id=Oo;let N=rl(h);N&&(w.nonce=N),w.textContent=`
|
|
2
2
|
@layer {
|
|
3
|
-
[${
|
|
3
|
+
[${jo}] {
|
|
4
4
|
touch-action: pan-x pan-y pinch-zoom;
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
|
-
`.trim(),p.head.prepend(w)},[m]),a.useEffect(()=>{let p=v.current;return()=>{f||Jr(p.target??void 0);for(let w of p.disposables)w();p.disposables=[]}},[f]),{isPressed:c||g,pressProps:X(h,B,{[Oo]:!0})}}function Wn(t){return t.tagName==="A"&&t.hasAttribute("href")}function Qr(t,e){const{key:r,code:n}=t,o=e,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof fe(o).HTMLInputElement&&!Kl(o,r)||o instanceof fe(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&Wn(o))&&r!=="Enter")}function Ad(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function jo(t,e){const r=t.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===e)return o}return null}function _e(t,e){let r=0,n=0;return e.targetTouches&&e.targetTouches.length===1&&(r=e.targetTouches[0].clientX,n=e.targetTouches[0].clientY),{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:r,clientY:n}}function We(t,e){let r=e.clientX,n=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:r,clientY:n,key:e.key}}function Fd(t){let e=0,r=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?r=t.height/2:t.radiusY!==void 0&&(r=t.radiusY),{top:t.clientY-r,right:t.clientX+e,bottom:t.clientY+r,left:t.clientX-e}}function Od(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function Bo(t,e){let r=e.getBoundingClientRect(),n=Fd(t);return Od(r,n)}function jd(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!Wn(t)}function _o(t,e){return t instanceof HTMLInputElement?!Kl(t,e):jd(t)}const Bd=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Kl(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":Bd.has(t.type)}function _d(t,e){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:l,onPressUp:s,onPressChange:c,preventFocusOnPress:u,allowFocusWhenDisabled:d,onClick:f,href:m,target:h,rel:g,type:y="button"}=t,v;r==="button"?v={type:y,disabled:n,form:t.form,formAction:t.formAction,formEncType:t.formEncType,formMethod:t.formMethod,formNoValidate:t.formNoValidate,formTarget:t.formTarget,name:t.name,value:t.value}:v={role:"button",href:r==="a"&&!n?m:void 0,target:r==="a"?h:void 0,type:r==="input"?y:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?g:void 0};let{pressProps:E,isPressed:$}=Xe({onPressStart:i,onPressEnd:l,onPressChange:c,onPress:o,onPressUp:s,onClick:f,isDisabled:n,preventFocusOnPress:u,ref:e}),{focusableProps:P}=Dr(t,e);d&&(P.tabIndex=n?-1:P.tabIndex);let k=X(P,E,ue(t,{labelable:!0}));return{isPressed:$,buttonProps:X(v,k,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],"aria-current":t["aria-current"],"aria-disabled":t["aria-disabled"]})}}function Gn(t){let{isDisabled:e,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=t,i=a.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:s}=Rr(),c=a.useCallback(f=>{z(f.currentTarget,A(f))&&i.current.isFocusWithin&&!z(f.currentTarget,f.relatedTarget)&&(i.current.isFocusWithin=!1,s(),r&&r(f),o&&o(!1))},[r,o,i,s]),u=Tl(c),d=a.useCallback(f=>{if(!z(f.currentTarget,A(f)))return;let m=A(f);const h=Z(m),g=ne(h);if(!i.current.isFocusWithin&&g===m){n&&n(f),o&&o(!0),i.current.isFocusWithin=!0,u(f);let y=f.currentTarget;l(h,"focus",v=>{let E=A(v);if(i.current.isFocusWithin&&!z(y,E)){let $=new h.defaultView.FocusEvent("blur",{relatedTarget:E});kl($,y);let P=Un($);c(P)}},{capture:!0})}},[n,o,u,l,c]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:c}}}function qn(t={}){let{autoFocus:e=!1,isTextInput:r,within:n}=t,o=a.useRef({isFocused:!1,isFocusVisible:e||It()}),[i,l]=a.useState(!1),[s,c]=a.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=a.useCallback(()=>c(o.current.isFocused&&o.current.isFocusVisible),[]),d=a.useCallback(h=>{o.current.isFocused=h,o.current.isFocusVisible=It(),l(h),u()},[u]);Ld(h=>{o.current.isFocusVisible=h,u()},[r,i],{enabled:i,isTextInput:r});let{focusProps:f}=Ll({isDisabled:n,onFocusChange:d}),{focusWithinProps:m}=Gn({isDisabled:!n,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:s,focusProps:n?m:f}}let wr=!1,er=0;function En(){wr=!0,setTimeout(()=>{wr=!1},500)}function Vo(t){t.pointerType==="touch"&&En()}function Vd(){let t=Z(null);if(!(typeof t>"u"))return er===0&&(typeof PointerEvent<"u"?t.addEventListener("pointerup",Vo):process.env.NODE_ENV==="test"&&t.addEventListener("touchend",En)),er++,()=>{er--,!(er>0)&&(typeof PointerEvent<"u"?t.removeEventListener("pointerup",Vo):process.env.NODE_ENV==="test"&&t.removeEventListener("touchend",En))}}function Wt(t){let{onHoverStart:e,onHoverChange:r,onHoverEnd:n,isDisabled:o}=t,[i,l]=a.useState(!1),s=a.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;a.useEffect(Vd,[]);let{addGlobalListener:c,removeAllGlobalListeners:u}=Rr(),{hoverProps:d,triggerHoverEnd:f}=a.useMemo(()=>{let m=(y,v)=>{if(s.pointerType=v,o||v==="touch"||s.isHovered||!z(y.currentTarget,A(y)))return;s.isHovered=!0;let E=y.currentTarget;s.target=E,c(Z(A(y)),"pointerover",$=>{s.isHovered&&s.target&&!z(s.target,A($))&&h($,$.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:E,pointerType:v}),r&&r(!0),l(!0)},h=(y,v)=>{let E=s.target;s.pointerType="",s.target=null,!(v==="touch"||!s.isHovered||!E)&&(s.isHovered=!1,u(),n&&n({type:"hoverend",target:E,pointerType:v}),r&&r(!1),l(!1))},g={};return typeof PointerEvent<"u"?(g.onPointerEnter=y=>{wr&&y.pointerType==="mouse"||m(y,y.pointerType)},g.onPointerLeave=y=>{!o&&z(y.currentTarget,A(y))&&h(y,y.pointerType)}):process.env.NODE_ENV==="test"&&(g.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},g.onMouseEnter=y=>{!s.ignoreEmulatedMouseEvents&&!wr&&m(y,"mouse"),s.ignoreEmulatedMouseEvents=!1},g.onMouseLeave=y=>{!o&&z(y.currentTarget,A(y))&&h(y,"mouse")}),{hoverProps:g,triggerHoverEnd:h}},[e,r,n,o,s,c,u]);return a.useEffect(()=>{o&&f({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:d,isHovered:i}}const zd=a.createContext({}),Al=dd(function(e,r){[e,r]=Oe(e,r,zd);let n=e,{isPending:o}=n,{buttonProps:i,isPressed:l}=_d(e,r);i=Ud(i,o);let{focusProps:s,isFocused:c,isFocusVisible:u}=qn(e),{hoverProps:d,isHovered:f}=Wt({...e,isDisabled:e.isDisabled||o}),m={isHovered:f,isPressed:(n.isPressed||l)&&!o,isFocused:c,isFocusVisible:u,isDisabled:e.isDisabled||!1,isPending:o??!1},h=Fe({...e,values:m,defaultClassName:"react-aria-Button"}),g=ge(i.id),y=ge(),v=i["aria-labelledby"];o&&(v?v=`${v} ${y}`:i["aria-label"]&&(v=`${g} ${y}`));let E=a.useRef(o);a.useEffect(()=>{let P={"aria-labelledby":v||g};(!E.current&&c&&o||E.current&&c&&!o)&&Do(P,"assertive"),E.current=o},[o,c,v,g]);let $=ue(e,{global:!0});return delete $.onClick,a.createElement(Ce.button,{...X($,h,i,s,d),type:i.type==="submit"&&o?"button":i.type,id:g,ref:r,"aria-labelledby":v,slot:e.slot||void 0,"aria-disabled":o?"true":i["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":m.isPressed||void 0,"data-hovered":f||void 0,"data-focused":c||void 0,"data-pending":o||void 0,"data-focus-visible":u||void 0},a.createElement(Cl.Provider,{value:{id:y}},h.children))}),Hd=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function Ud(t,e){if(e){for(const r in t)r.startsWith("on")&&!Hd.test(r)&&(t[r]=void 0);t.href=void 0,t.target=void 0}return t}const Wd=typeof document<"u"?a.useInsertionEffect??a.useLayoutEffect:()=>{};function Lr(t,e,r){let[n,o]=a.useState(t||e),i=a.useRef(n),l=a.useRef(t!==void 0),s=t!==void 0;a.useEffect(()=>{let f=l.current;f!==s&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${f?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),l.current=s},[s]);let c=s?t:n;Wd(()=>{i.current=c});let[,u]=a.useReducer(()=>({}),{}),d=a.useCallback((f,...m)=>{let h=typeof f=="function"?f(i.current):f;Object.is(i.current,h)||(i.current=h,o(h),u(),r==null||r(h,...m))},[r]);return[c,d]}const Gd=t=>t?"true":void 0;function je(t,e){return sd(t,(r,n)=>{const o=typeof e=="function"?e(n)??"":e??"";return Dt(o,r??"")??""})}const ce=(t,e,r)=>typeof t=="function"?t({className:e}):e,qd=t=>b.jsx("svg",{"aria-hidden":"true","aria-label":"Chevron right icon",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...t,children:b.jsx("path",{clipRule:"evenodd",d:"M5.47 2.97a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 1 1-1.06-1.06L9.44 8 5.47 4.03a.75.75 0 0 1 0-1.06Z",fill:"currentColor",fillRule:"evenodd"})}),Yd=({height:t=9,width:e=9,...r})=>b.jsx("svg",{"aria-hidden":"true","aria-label":"External link icon",fill:"none",height:t,role:"presentation",viewBox:"0 0 7 7",width:e,xmlns:"http://www.w3.org/2000/svg",...r,children:b.jsx("path",{d:"M1.20592 6.84333L0.379822 6.01723L4.52594 1.8672H1.37819L1.38601 0.731812H6.48742V5.83714H5.34421L5.35203 2.6933L1.20592 6.84333Z",fill:"currentColor"})}),zo=t=>b.jsx("svg",{"aria-hidden":"true","aria-label":"Info icon",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...t,children:b.jsx("path",{clipRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11a5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0a1 1 0 0 1 2 0m-.25 3a.75.75 0 0 0-1.5 0V11a.75.75 0 0 0 1.5 0z",fill:"currentColor",fillRule:"evenodd"})}),Xd=t=>b.jsx("svg",{"aria-hidden":"true","aria-label":"Warning icon",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...t,children:b.jsx("path",{clipRule:"evenodd",d:"M7.134 2.994L2.217 11.5a1 1 0 0 0 .866 1.5h9.834a1 1 0 0 0 .866-1.5L8.866 2.993a1 1 0 0 0-1.732 0m3.03-.75c-.962-1.665-3.366-1.665-4.329 0L.918 10.749c-.963 1.666.24 3.751 2.165 3.751h9.834c1.925 0 3.128-2.085 2.164-3.751zM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2A.75.75 0 0 1 8 5m1 5.75a1 1 0 1 1-2 0a1 1 0 0 1 2 0",fill:"currentColor",fillRule:"evenodd"})}),Zd=t=>b.jsx("svg",{"aria-hidden":"true","aria-label":"Danger icon",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...t,children:b.jsx("path",{clipRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11a5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-4.5a1 1 0 1 1-2 0a1 1 0 0 1 2 0M8.75 5a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0z",fill:"currentColor",fillRule:"evenodd"})}),Jd=t=>b.jsx("svg",{"aria-hidden":"true","aria-label":"Success icon",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...t,children:b.jsx("path",{clipRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0a5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-3.9-1.55a.75.75 0 1 0-1.2-.9L7.419 8.858L6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08z",fill:"currentColor",fillRule:"evenodd"})}),Yn=a.createContext({}),Qd=a.createContext({placement:"bottom"}),ef=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;function Ho(t){return t.dataset.liveAnnouncer==="true"||t.dataset.reactAriaTopLayer!==void 0}let vt=new WeakMap,me=[];function tf(t,e){let r=fe(t==null?void 0:t[0]),n=e instanceof r.Element?{root:e}:e,o=(n==null?void 0:n.root)??document.body,i=(n==null?void 0:n.shouldUseInert)&&ef,l=new Set(t),s=new Set,c=v=>i&&v instanceof r.HTMLElement?v.inert:v.getAttribute("aria-hidden")==="true",u=(v,E)=>{i&&v instanceof r.HTMLElement?v.inert=E:E?v.setAttribute("aria-hidden","true"):(v.removeAttribute("aria-hidden"),v instanceof r.HTMLElement&&(v.inert=!1))},d=new Set;if(Ne())for(let v of t){let E=v;for(;E&&E!==o;){let $=E.getRootNode();"shadowRoot"in $&&d.add($.shadowRoot),E=$.parentNode}}let f=v=>{for(let k of v.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(k);let E=k=>{if(s.has(k)||l.has(k)||k.parentElement&&s.has(k.parentElement)&&k.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let L of l)if(z(k,L))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},$=Wi(Z(v),v,NodeFilter.SHOW_ELEMENT,{acceptNode:E}),P=E(v);if(P===NodeFilter.FILTER_ACCEPT&&m(v),P!==NodeFilter.FILTER_REJECT){let k=$.nextNode();for(;k!=null;)m(k),k=$.nextNode()}},m=v=>{let E=vt.get(v)??0;c(v)&&E===0||(E===0&&u(v,!0),s.add(v),vt.set(v,E+1))};me.length&&me[me.length-1].disconnect(),f(o);let h=new MutationObserver(v=>{for(let E of v)if(E.type==="childList"){if(E.target.isConnected&&![...l,...s].some($=>z($,E.target)))for(let $ of E.addedNodes)($ instanceof HTMLElement||$ instanceof SVGElement)&&Ho($)?l.add($):$ instanceof Element&&f($);if(Ne()){for(let $ of d)if(!$.isConnected){h.disconnect();break}}}});h.observe(o,{childList:!0,subtree:!0});let g=new Set;if(Ne())for(let v of d){let E=new MutationObserver($=>{for(let P of $)if(P.type==="childList"){if(P.target.isConnected&&![...l,...s].some(k=>z(k,P.target)))for(let k of P.addedNodes)(k instanceof HTMLElement||k instanceof SVGElement)&&Ho(k)?l.add(k):k instanceof Element&&f(k);if(Ne()){for(let k of d)if(!k.isConnected){h.disconnect();break}}}});E.observe(v,{childList:!0,subtree:!0}),g.add(E)}let y={visibleNodes:l,hiddenNodes:s,observe(){h.observe(o,{childList:!0,subtree:!0})},disconnect(){h.disconnect()}};return me.push(y),()=>{if(h.disconnect(),Ne())for(let v of g)v.disconnect();for(let v of s){let E=vt.get(v);E!=null&&(E===1?(u(v,!1),vt.delete(v)):vt.set(v,E-1))}y===me[me.length-1]?(me.pop(),me.length&&me[me.length-1].observe()):me.splice(me.indexOf(y),1)}}function rf(t){let e=me[me.length-1];if(e&&!e.visibleNodes.has(t))return e.visibleNodes.add(t),()=>{e.visibleNodes.delete(t)}}const $e={top:"top",bottom:"top",left:"left",right:"left"},Er={top:"bottom",bottom:"top",left:"right",right:"left"},nf={top:"left",left:"top"},Sn={top:"height",left:"width"},Fl={width:"totalWidth",height:"totalHeight"},tr={};let of=()=>typeof document<"u"?window.visualViewport:null;function Uo(t,e){let r=0,n=0,o=0,i=0,l=0,s=0,c={},u=((e==null?void 0:e.scale)??1)>1;if(t.tagName==="BODY"||t.tagName==="HTML"){let d=document.documentElement;o=d.clientWidth,i=d.clientHeight,r=(e==null?void 0:e.width)??o,n=(e==null?void 0:e.height)??i,c.top=d.scrollTop||t.scrollTop,c.left=d.scrollLeft||t.scrollLeft,e&&(l=e.offsetTop,s=e.offsetLeft)}else({width:r,height:n,top:l,left:s}=Ft(t,!1)),c.top=t.scrollTop,c.left=t.scrollLeft,o=r,i=n;return _i()&&(t.tagName==="BODY"||t.tagName==="HTML")&&u&&(c.top=0,c.left=0,l=(e==null?void 0:e.pageTop)??0,s=(e==null?void 0:e.pageLeft)??0),{width:r,height:n,totalWidth:o,totalHeight:i,scroll:c,top:l,left:s}}function lf(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Wo(t,e,r,n,o,i,l){let s=o.scroll[t]??0,c=n[Sn[t]],u=l[t]+n.scroll[$e[t]]+i,d=l[t]+n.scroll[$e[t]]+c-i,f=e-s+n.scroll[$e[t]]+l[t]-n[$e[t]],m=e-s+r+n.scroll[$e[t]]+l[t]-n[$e[t]];return f<u?u-f:m>d?Math.max(d-m,u-f):0}function sf(t){let e=window.getComputedStyle(t);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function Go(t){if(tr[t])return tr[t];let[e,r]=t.split(" "),n=$e[e]||"right",o=nf[n];$e[r]||(r="center");let i=Sn[n],l=Sn[o];return tr[t]={placement:e,crossPlacement:r,axis:n,crossAxis:o,size:i,crossSize:l},tr[t]}function en(t,e,r,n,o,i,l,s,c,u,d){let{placement:f,crossPlacement:m,axis:h,crossAxis:g,size:y,crossSize:v}=n,E={};E[g]=t[g]??0,m==="center"?E[g]+=((t[v]??0)-(r[v]??0))/2:m!==g&&(E[g]+=(t[v]??0)-(r[v]??0)),E[g]+=i;const $=t[g]-r[v]+c+u,P=t[g]+t[v]-c-u;if(E[g]=yr(E[g],$,P),f===h){let k=s?d[y]:d[Fl[y]];E[Er[h]]=Math.floor(k-t[h]+o)}else E[h]=Math.floor(t[h]+t[y]+o);return E}function af(t,e,r,n,o,i,l,s,c,u,d){let f=(t.top!=null?t.top:c[Fl.height]-(t.bottom??0)-l)-(c.scroll.top??0),m=u?r.top:0,h={top:Math.max(e.top+m,((d==null?void 0:d.offsetTop)??e.top)+m),bottom:Math.min(e.top+e.height+m,((d==null?void 0:d.offsetTop)??0)+((d==null?void 0:d.height)??0))};return s!=="top"?Math.max(0,h.bottom-f-((o.top??0)+(o.bottom??0)+i)):Math.max(0,f+l-h.top-((o.top??0)+(o.bottom??0)+i))}function qo(t,e,r,n,o,i,l,s){let{placement:c,axis:u,size:d}=i;return c===u?Math.max(0,r[u]-(l.scroll[u]??0)-(t[u]+(s?e[u]:0))-(n[u]??0)-n[Er[u]]-o):Math.max(0,t[d]+t[u]+(s?e[u]:0)-r[u]-r[d]+(l.scroll[u]??0)-(n[u]??0)-n[Er[u]]-o)}function cf(t,e,r,n,o,i,l,s,c,u,d,f,m,h,g,y,v,E){let $=Go(t),{size:P,crossAxis:k,crossSize:L,placement:j,crossPlacement:T}=$,R=en(e,s,r,$,d,f,u,m,g,y,c),I=d,K=qo(s,u,e,o,i+d,$,c,v);if(l&&r[P]>K){let te=Go(`${Er[j]} ${T}`),se=en(e,s,r,te,d,f,u,m,g,y,c);qo(s,u,e,o,i+d,te,c,v)>K&&($=te,R=se,I=d)}let V="bottom";$.axis==="top"?$.placement==="top"?V="top":$.placement==="bottom"&&(V="bottom"):$.crossAxis==="top"&&($.crossPlacement==="top"?V="bottom":$.crossPlacement==="bottom"&&(V="top"));let H=Wo(k,R[k],r[L],s,c,i,u);R[k]+=H;let B=af(R,s,u,m,o,i,r.height,V,c,v,E);h&&h<B&&(B=h),r.height=Math.min(r.height,B),R=en(e,s,r,$,I,f,u,m,g,y,c),H=Wo(k,R[k],r[L],s,c,i,u),R[k]+=H;let p={},w=e[k]-R[k]-o[$e[k]],N=w+.5*e[L];const C=g/2+y,M=$e[k]==="left"?(o.left??0)+(o.right??0):(o.top??0)+(o.bottom??0),x=r[L]-M-g/2-y,S=e[k]+g/2-(R[k]+o[$e[k]]),D=e[k]+e[L]-g/2-(R[k]+o[$e[k]]),U=yr(N,S,D);p[k]=yr(U,C,x),{placement:j,crossPlacement:T}=$,g?w=p[k]:T==="right"?w+=e[L]:T==="center"&&(w+=e[L]/2);let W=j==="left"||j==="top"?r[P]:0,G={x:j==="top"||j==="bottom"?w:W,y:j==="left"||j==="right"?w:W};return{position:R,maxHeight:B,arrowOffsetLeft:p.left,arrowOffsetTop:p.top,placement:j,triggerAnchorPoint:G}}function uf(t){let{placement:e,targetNode:r,overlayNode:n,scrollNode:o,padding:i,shouldFlip:l,boundaryElement:s,offset:c,crossOffset:u,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:m=0}=t,h=of(),g=n instanceof HTMLElement?df(n):document.documentElement,y=g===document.documentElement;const v=window.getComputedStyle(g).position;let E=!!v&&v!=="static",$=y?Ft(r,!1):Yo(r,g,!1);if(!y){let{marginTop:K,marginLeft:V}=window.getComputedStyle(r);$.top+=parseInt(K,10)||0,$.left+=parseInt(V,10)||0}let P=Ft(n,!0),k=sf(n);P.width+=(k.left??0)+(k.right??0),P.height+=(k.top??0)+(k.bottom??0);let L=lf(o),j=Uo(s,h),T=Uo(g,h),R;if((s.tagName==="BODY"||s.tagName==="HTML")&&!y){let K=Ir(g,!1);R={top:-(K.top-j.top),left:-(K.left-j.left),width:0,height:0}}else(s.tagName==="BODY"||s.tagName==="HTML")&&y?R={top:0,left:0,width:0,height:0}:R=Yo(s,g,!1);let I=z(s,g);return cf(e,$,P,L,k,i,l,j,T,R,c,u,E,d,f,m,I,h)}function Ir(t,e){let{top:r,left:n,width:o,height:i}=t.getBoundingClientRect();return e&&t instanceof t.ownerDocument.defaultView.HTMLElement&&(o=t.offsetWidth,i=t.offsetHeight),{top:r,left:n,width:o,height:i}}function Ft(t,e){let{top:r,left:n,width:o,height:i}=Ir(t,e),{scrollTop:l,scrollLeft:s,clientTop:c,clientLeft:u}=document.documentElement;return{top:r+l-c,left:n+s-u,width:o,height:i}}function Yo(t,e,r){let n=window.getComputedStyle(t),o;if(n.position==="fixed")o=Ir(t,r);else{o=Ft(t,r);let i=Ft(e,r),l=window.getComputedStyle(e);i.top+=(parseInt(l.borderTopWidth,10)||0)-e.scrollTop,i.left+=(parseInt(l.borderLeftWidth,10)||0)-e.scrollLeft,o.top-=i.top,o.left-=i.left}return o.top-=parseInt(n.marginTop,10)||0,o.left-=parseInt(n.marginLeft,10)||0,o}function df(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!Xo(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!Xo(e);)e=e.parentElement;return e||document.documentElement}function Xo(t){let e=window.getComputedStyle(t);return e.transform!=="none"||/transform|perspective/.test(e.willChange)||e.filter!=="none"||e.contain==="paint"||"backdropFilter"in e&&e.backdropFilter!=="none"||"WebkitBackdropFilter"in e&&e.WebkitBackdropFilter!=="none"}const Ol=new WeakMap;function ff(t){let{triggerRef:e,isOpen:r,onClose:n}=t;a.useEffect(()=>{if(!r||n===null)return;let o=i=>{let l=A(i);if(!e.current||l instanceof Node&&!z(l,e.current)||l instanceof HTMLInputElement||l instanceof HTMLTextAreaElement)return;let s=n||Ol.get(e.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,n,e])}let oe=typeof document<"u"?window.visualViewport:null;function pf(t){let{direction:e}=Ze(),{arrowSize:r,targetRef:n,overlayRef:o,arrowRef:i,scrollRef:l=o,placement:s="bottom",containerPadding:c=12,shouldFlip:u=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:f=0,crossOffset:m=0,shouldUpdatePosition:h=!0,isOpen:g=!0,onClose:y,maxHeight:v,arrowBoundaryOffset:E=0}=t,[$,P]=a.useState(null),k=[h,s,o.current,n.current,i==null?void 0:i.current,l.current,c,u,d,f,m,g,e,v,E,r],L=a.useRef(oe==null?void 0:oe.scale);a.useEffect(()=>{g&&(L.current=oe==null?void 0:oe.scale)},[g]);let j=a.useCallback(()=>{var B,p;if(h===!1||!g||!o.current||!n.current||!d||(oe==null?void 0:oe.scale)!==L.current)return;let I=null;if(l.current&&Nt(l.current)){let w=(B=ne())==null?void 0:B.getBoundingClientRect(),N=l.current.getBoundingClientRect();I={type:"top",offset:((w==null?void 0:w.top)??0)-N.top},I.offset>N.height/2&&(I.type="bottom",I.offset=((w==null?void 0:w.bottom)??0)-N.bottom)}let K=o.current;!v&&o.current&&(K.style.top="0px",K.style.bottom="",K.style.maxHeight=(((p=window.visualViewport)==null?void 0:p.height)??window.innerHeight)+"px");let V=uf({placement:bf(s,e),overlayNode:o.current,targetNode:n.current,scrollNode:l.current||o.current,padding:c,shouldFlip:u,boundaryElement:d,offset:f,crossOffset:m,maxHeight:v,arrowSize:r??(i!=null&&i.current?Ir(i.current,!0).width:0),arrowBoundaryOffset:E});if(!V.position)return;K.style.top="",K.style.bottom="",K.style.left="",K.style.right="",Object.keys(V.position).forEach(w=>K.style[w]=V.position[w]+"px"),K.style.maxHeight=V.maxHeight!=null?V.maxHeight+"px":"";let H=ne();if(I&&H&&l.current){let w=H.getBoundingClientRect(),N=l.current.getBoundingClientRect(),C=w[I.type]-N[I.type];l.current.scrollTop+=C-I.offset}P(V)},k);J(j,k),hf(j),hr({ref:o,onResize:j}),hr({ref:n,onResize:j});let T=a.useRef(!1);J(()=>{let I,K=()=>{T.current=!0,clearTimeout(I),I=setTimeout(()=>{T.current=!1},500),j()},V=()=>{T.current&&K()};return oe==null||oe.addEventListener("resize",K),oe==null||oe.addEventListener("scroll",V),()=>{oe==null||oe.removeEventListener("resize",K),oe==null||oe.removeEventListener("scroll",V)}},[j]);let R=a.useCallback(()=>{T.current||y==null||y()},[y,T]);return ff({triggerRef:n,isOpen:g,onClose:y&&R}),{overlayProps:{style:{position:$?"absolute":"fixed",top:$?void 0:0,left:$?void 0:0,zIndex:1e5,...$==null?void 0:$.position,maxHeight:($==null?void 0:$.maxHeight)??"100vh"}},placement:($==null?void 0:$.placement)??null,triggerAnchorPoint:($==null?void 0:$.triggerAnchorPoint)??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:$==null?void 0:$.arrowOffsetLeft,top:$==null?void 0:$.arrowOffsetTop}},updatePosition:j}}function hf(t){J(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function bf(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const Zo=a.createContext(null),Cn="react-aria-focus-scope-restore";let re=null;function jl(t){let{children:e,contain:r,restoreFocus:n,autoFocus:o}=t,i=a.useRef(null),l=a.useRef(null),s=a.useRef([]),{parentNode:c}=a.useContext(Zo)||{},u=a.useMemo(()=>new kn({scopeRef:s}),[s]);J(()=>{let m=c||le.root;if(le.getTreeNode(m.scopeRef)&&re&&!Sr(re,m.scopeRef)){let h=le.getTreeNode(re);h&&(m=h)}m.addChild(u),le.addNode(u)},[u,c]),J(()=>{let m=le.getTreeNode(s);m&&(m.contain=!!r)},[r]),J(()=>{var y;let m=(y=i.current)==null?void 0:y.nextSibling,h=[],g=v=>v.stopPropagation();for(;m&&m!==l.current;)h.push(m),m.addEventListener(Cn,g),m=m.nextSibling;return s.current=h,()=>{for(let v of h)v.removeEventListener(Cn,g)}},[e]),wf(s,n,r),vf(s,r),Ef(s,n,r),xf(s,o),a.useEffect(()=>{const m=ne(Z(s.current?s.current[0]:void 0));let h=null;if(we(m,s.current)){for(let g of le.traverse())g.scopeRef&&we(m,g.scopeRef.current)&&(h=g);h===le.getTreeNode(s)&&(re=h.scopeRef)}},[s]),J(()=>()=>{var h,g;let m=((g=(h=le.getTreeNode(s))==null?void 0:h.parent)==null?void 0:g.scopeRef)??null;(s===re||Sr(s,re))&&(!m||le.getTreeNode(m))&&(re=m),le.removeTreeNode(s)},[s]);let d=a.useMemo(()=>mf(s),[]),f=a.useMemo(()=>({focusManager:d,parentNode:u}),[u,d]);return a.createElement(Zo.Provider,{value:f},a.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),e,a.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function mf(t){return{focusNext(e={}){let r=t.current,{from:n,tabbable:o,wrap:i,accept:l}=e,s=n||ne(Z(r[0]??void 0)),c=r[0].previousElementSibling,u=Ge(r),d=Le(u,{tabbable:o,accept:l},r);d.currentNode=we(s,r)?s:c;let f=d.nextNode();return!f&&i&&(d.currentNode=c,f=d.nextNode()),f&&De(f,!0),f},focusPrevious(e={}){let r=t.current,{from:n,tabbable:o,wrap:i,accept:l}=e,s=n||ne(Z(r[0]??void 0)),c=r[r.length-1].nextElementSibling,u=Ge(r),d=Le(u,{tabbable:o,accept:l},r);d.currentNode=we(s,r)?s:c;let f=d.previousNode();return!f&&i&&(d.currentNode=c,f=d.previousNode()),f&&De(f,!0),f},focusFirst(e={}){let r=t.current,{tabbable:n,accept:o}=e,i=Ge(r),l=Le(i,{tabbable:n,accept:o},r);l.currentNode=r[0].previousElementSibling;let s=l.nextNode();return s&&De(s,!0),s},focusLast(e={}){let r=t.current,{tabbable:n,accept:o}=e,i=Ge(r),l=Le(i,{tabbable:n,accept:o},r);l.currentNode=r[r.length-1].nextElementSibling;let s=l.previousNode();return s&&De(s,!0),s}}}function Ge(t){return t[0].parentElement}function Pt(t){let e=le.getTreeNode(re);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function gf(t){if(!t.form)return Array.from(Z(t).querySelectorAll(`input[type="radio"][name="${CSS.escape(t.name)}"]`)).filter(n=>!n.form);const e=t.form.elements.namedItem(t.name);let r=fe(t);return e instanceof r.RadioNodeList?Array.from(e).filter(n=>n instanceof r.HTMLInputElement):e instanceof r.HTMLInputElement?[e]:[]}function yf(t){if(t.checked)return!0;const e=gf(t);return e.length>0&&!e.some(r=>r.checked)}function vf(t,e){let r=a.useRef(void 0),n=a.useRef(void 0);J(()=>{let o=t.current;if(!e){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}const i=Z(o?o[0]:void 0);let l=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!Pt(t)||u.isComposing)return;let d=ne(i),f=t.current;if(!f||!we(d,f))return;let m=Ge(f),h=Le(m,{tabbable:!0},f);if(!d)return;h.currentNode=d;let g=u.shiftKey?h.previousNode():h.nextNode();g||(h.currentNode=u.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,g=u.shiftKey?h.previousNode():h.nextNode()),u.preventDefault(),g&&(De(g,!0),g instanceof fe(g).HTMLInputElement&&g.select())},s=u=>{(!re||Sr(re,t))&&we(A(u),t.current)?(re=t,r.current=A(u)):Pt(t)&&!ze(A(u),t)?r.current?r.current.focus():re&&re.current&&Pn(re.current):Pt(t)&&(r.current=A(u))},c=u=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{var h;let d=Kt(),f=(d==="virtual"||d===null)&&Bn()&&Vi(),m=ne(i);if(!f&&m&&Pt(t)&&!ze(m,t)){re=t;let g=A(u);g&&g.isConnected?(r.current=g,(h=r.current)==null||h.focus()):re.current&&Pn(re.current)}})};return i.addEventListener("keydown",l,!1),i.addEventListener("focusin",s,!1),o==null||o.forEach(u=>u.addEventListener("focusin",s,!1)),o==null||o.forEach(u=>u.addEventListener("focusout",c,!1)),()=>{i.removeEventListener("keydown",l,!1),i.removeEventListener("focusin",s,!1),o==null||o.forEach(u=>u.removeEventListener("focusin",s,!1)),o==null||o.forEach(u=>u.removeEventListener("focusout",c,!1))}},[t,e]),J(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function Bl(t){return ze(t)}function we(t,e){return!t||!e?!1:e.some(r=>z(r,t))}function ze(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of le.traverse(le.getTreeNode(e)))if(r&&we(t,r.current))return!0;return!1}function $f(t){return ze(t,re)}function Sr(t,e){var n;let r=(n=le.getTreeNode(e))==null?void 0:n.parent;for(;r;){if(r.scopeRef===t)return!0;r=r.parent}return!1}function De(t,e=!1){if(t!=null&&!e)try{ct(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function _l(t,e=!0){let r=t[0].previousElementSibling,n=Ge(t),o=Le(n,{tabbable:e},t);o.currentNode=r;let i=o.nextNode();return e&&!i&&(n=Ge(t),o=Le(n,{tabbable:!1},t),o.currentNode=r,i=o.nextNode()),i}function Pn(t,e=!0){De(_l(t,e))}function xf(t,e){const r=a.useRef(e);a.useEffect(()=>{if(r.current){re=t;const n=Z(t.current?t.current[0]:void 0);!we(ne(n),re.current)&&t.current&&Pn(t.current)}r.current=!1},[t])}function wf(t,e,r){J(()=>{if(e||r)return;let n=t.current;const o=Z(n?n[0]:void 0);let i=l=>{let s=A(l);we(s,t.current)?re=t:Bl(s)||(re=null)};return o.addEventListener("focusin",i,!1),n==null||n.forEach(l=>l.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),n==null||n.forEach(l=>l.removeEventListener("focusin",i,!1))}},[t,e,r])}function Jo(t){let e=le.getTreeNode(re);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function Ef(t,e,r){const n=a.useRef(typeof document<"u"?ne(Z(t.current?t.current[0]:void 0)):null);J(()=>{let o=t.current;const i=Z(o?o[0]:void 0);if(!e||r)return;let l=()=>{(!re||Sr(re,t))&&we(ne(i),t.current)&&(re=t)};return i.addEventListener("focusin",l,!1),o==null||o.forEach(s=>s.addEventListener("focusin",l,!1)),()=>{i.removeEventListener("focusin",l,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",l,!1))}},[t,r]),J(()=>{const o=Z(t.current?t.current[0]:void 0);if(!e)return;let i=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!Pt(t)||l.isComposing)return;let s=o.activeElement;if(!ze(s,t)||!Jo(t))return;let c=le.getTreeNode(t);if(!c)return;let u=c.nodeToRestore,d=Le(o.body,{tabbable:!0});d.currentNode=s;let f=l.shiftKey?d.previousNode():d.nextNode();if((!u||!u.isConnected||u===o.body)&&(u=void 0,c.nodeToRestore=void 0),(!f||!ze(f,t))&&u){d.currentNode=u;do f=l.shiftKey?d.previousNode():d.nextNode();while(ze(f,t));l.preventDefault(),l.stopPropagation(),f?De(f,!0):Bl(u)?De(u,!0):s.blur()}};return r||o.addEventListener("keydown",i,!0),()=>{r||o.removeEventListener("keydown",i,!0)}},[t,e,r]),J(()=>{const o=Z(t.current?t.current[0]:void 0);if(!e)return;let i=le.getTreeNode(t);if(i)return i.nodeToRestore=n.current??void 0,()=>{let l=le.getTreeNode(t);if(!l)return;let s=l.nodeToRestore,c=ne(o);if(e&&s&&(c&&ze(c,t)||c===o.body&&Jo(t))){let u=le.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let d=u.getTreeNode(t);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){Qo(d.nodeToRestore);return}d=d.parent}for(d=u.getTreeNode(t);d;){if(d.scopeRef&&d.scopeRef.current&&le.getTreeNode(d.scopeRef)){let f=_l(d.scopeRef.current,!0);Qo(f);return}d=d.parent}}})}}},[t,e])}function Qo(t){t.dispatchEvent(new CustomEvent(Cn,{bubbles:!0,cancelable:!0}))&&De(t)}function Le(t,e,r){let n=e!=null&&e.tabbable?Qi:Ji,o=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,i=Z(o),l=Wi(i,t||i,NodeFilter.SHOW_ELEMENT,{acceptNode(s){return z(e==null?void 0:e.from,s)||e!=null&&e.tabbable&&s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(!yf(s)||l.currentNode.tagName==="INPUT"&&l.currentNode.type==="radio"&&l.currentNode.name===s.name)?NodeFilter.FILTER_REJECT:n(s)&&(!r||we(s,r))&&(!(e!=null&&e.accept)||e.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(l.currentNode=e.from),l}class Xn{constructor(){this.fastMap=new Map,this.root=new kn({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,r,n){let o=this.fastMap.get(r??null);if(!o)return;let i=new kn({scopeRef:e});o.addChild(i),i.parent=o,this.fastMap.set(e,i),n&&(i.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let r=this.fastMap.get(e);if(!r)return;let n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&we(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(i=>n&&n.addChild(i))),this.fastMap.delete(r.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let r of e.children)yield*this.traverse(r)}clone(){var r;let e=new Xn;for(let n of this.traverse())e.addTreeNode(n.scopeRef,((r=n.parent)==null?void 0:r.scopeRef)??null,n.nodeToRestore);return e}}class kn{constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}}let le=new Xn;function Sf(t){let{ref:e,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=t,i=a.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=xe(c=>{r&&rr(c,e)&&(o&&o(c),i.current.isPointerDown=!0)}),s=xe(c=>{r&&r(c)});a.useEffect(()=>{let c=i.current;if(n)return;const u=e.current,d=Z(u);if(typeof PointerEvent<"u"){let f=m=>{c.isPointerDown&&rr(m,e)&&s(m),c.isPointerDown=!1};return d.addEventListener("pointerdown",l,!0),d.addEventListener("click",f,!0),()=>{d.removeEventListener("pointerdown",l,!0),d.removeEventListener("click",f,!0)}}else if(process.env.NODE_ENV==="test"){let f=h=>{c.ignoreEmulatedMouseEvents?c.ignoreEmulatedMouseEvents=!1:c.isPointerDown&&rr(h,e)&&s(h),c.isPointerDown=!1},m=h=>{c.ignoreEmulatedMouseEvents=!0,c.isPointerDown&&rr(h,e)&&s(h),c.isPointerDown=!1};return d.addEventListener("mousedown",l,!0),d.addEventListener("mouseup",f,!0),d.addEventListener("touchstart",l,!0),d.addEventListener("touchend",m,!0),()=>{d.removeEventListener("mousedown",l,!0),d.removeEventListener("mouseup",f,!0),d.removeEventListener("touchstart",l,!0),d.removeEventListener("touchend",m,!0)}}},[e,n])}function rr(t,e){if(t.button>0)return!1;let r=A(t);if(r){const n=r.ownerDocument;if(!n||!z(n.documentElement,r)||r.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}const ke=[];function Cf(t,e){let{onClose:r,shouldCloseOnBlur:n,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:s}=t,c=a.useRef(void 0);a.useEffect(()=>{if(o&&!ke.includes(e))return ke.push(e),()=>{let g=ke.indexOf(e);g>=0&&ke.splice(g,1)}},[o,e]);let u=()=>{ke[ke.length-1]===e&&r&&r()},d=g=>{const y=ke[ke.length-1];c.current=y,(!s||s(A(g)))&&y===e&&g.stopPropagation()},f=g=>{(!s||s(A(g)))&&(ke[ke.length-1]===e&&g.stopPropagation(),c.current===e&&u()),c.current=void 0},m=g=>{g.key==="Escape"&&!l&&!g.nativeEvent.isComposing&&(g.stopPropagation(),g.preventDefault(),u())};Sf({ref:e,onInteractOutside:i&&o?f:void 0,onInteractOutsideStart:d});let{focusWithinProps:h}=Gn({isDisabled:!n,onBlurWithin:g=>{!g.relatedTarget||$f(g.relatedTarget)||(!s||s(g.relatedTarget))&&(r==null||r())}});return{overlayProps:{onKeyDown:m,...h},underlayProps:{}}}const Mt=typeof document<"u"&&window.visualViewport;let nr=0,tn;function Pf(t={}){let{isDisabled:e}=t;J(()=>{if(!e)return nr++,nr===1&&(Bt()?tn=Tf():tn=kf()),()=>{nr--,nr===0&&tn()}},[e])}function kf(){let t=window.innerWidth-document.documentElement.clientWidth;return Vt(t>0&&("scrollbarGutter"in document.documentElement.style?ur(document.documentElement,"scrollbarGutter","stable"):ur(document.documentElement,"paddingRight",`${t}px`)),ur(document.documentElement,"overflow","hidden"))}function Tf(){let t=ur(document.documentElement,"overflow","hidden"),e,r=!1,n=d=>{let f=A(d);e=at(f)?f:Xi(f,!0),r=!1;let m=f.ownerDocument.defaultView.getSelection();m&&!m.isCollapsed&&m.containsNode(f,!0)&&(r=!0),d.composedPath().some(h=>h instanceof HTMLInputElement&&h.type==="range")&&(r=!0),"selectionStart"in f&&"selectionEnd"in f&&f.selectionStart<f.selectionEnd&&f.ownerDocument.activeElement===f&&(r=!0)},o=document.createElement("style"),i=tl();i&&(o.nonce=i),o.textContent=`
|
|
7
|
+
`.trim(),h.head.prepend(w)},[m]),a.useEffect(()=>{let h=v.current;return()=>{f||Jr(h.target??void 0);for(let w of h.disposables)w();h.disposables=[]}},[f]),{isPressed:c||g,pressProps:X(p,B,{[jo]:!0})}}function Un(t){return t.tagName==="A"&&t.hasAttribute("href")}function Qr(t,e){const{key:r,code:n}=t,o=e,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof fe(o).HTMLInputElement&&!Kl(o,r)||o instanceof fe(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&Un(o))&&r!=="Enter")}function Ad(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function Bo(t,e){const r=t.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===e)return o}return null}function _e(t,e){let r=0,n=0;return e.targetTouches&&e.targetTouches.length===1&&(r=e.targetTouches[0].clientX,n=e.targetTouches[0].clientY),{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:r,clientY:n}}function Ge(t,e){let r=e.clientX,n=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:r,clientY:n,key:e.key}}function Fd(t){let e=0,r=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?r=t.height/2:t.radiusY!==void 0&&(r=t.radiusY),{top:t.clientY-r,right:t.clientX+e,bottom:t.clientY+r,left:t.clientX-e}}function Od(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function _o(t,e){let r=e.getBoundingClientRect(),n=Fd(t);return Od(r,n)}function jd(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!Un(t)}function Vo(t,e){return t instanceof HTMLInputElement?!Kl(t,e):jd(t)}const Bd=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Kl(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":Bd.has(t.type)}function _d(t,e){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:l,onPressUp:s,onPressChange:c,preventFocusOnPress:u,allowFocusWhenDisabled:d,onClick:f,href:m,target:p,rel:g,type:y="button"}=t,v;r==="button"?v={type:y,disabled:n,form:t.form,formAction:t.formAction,formEncType:t.formEncType,formMethod:t.formMethod,formNoValidate:t.formNoValidate,formTarget:t.formTarget,name:t.name,value:t.value}:v={role:"button",href:r==="a"&&!n?m:void 0,target:r==="a"?p:void 0,type:r==="input"?y:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?g:void 0};let{pressProps:E,isPressed:$}=Ze({onPressStart:i,onPressEnd:l,onPressChange:c,onPress:o,onPressUp:s,onClick:f,isDisabled:n,preventFocusOnPress:u,ref:e}),{focusableProps:P}=Dr(t,e);d&&(P.tabIndex=n?-1:P.tabIndex);let k=X(P,E,ue(t,{labelable:!0}));return{isPressed:$,buttonProps:X(v,k,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],"aria-current":t["aria-current"],"aria-disabled":t["aria-disabled"]})}}function Gn(t){let{isDisabled:e,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=t,i=a.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:s}=Rr(),c=a.useCallback(f=>{H(f.currentTarget,A(f))&&i.current.isFocusWithin&&!H(f.currentTarget,f.relatedTarget)&&(i.current.isFocusWithin=!1,s(),r&&r(f),o&&o(!1))},[r,o,i,s]),u=Tl(c),d=a.useCallback(f=>{if(!H(f.currentTarget,A(f)))return;let m=A(f);const p=Z(m),g=ne(p);if(!i.current.isFocusWithin&&g===m){n&&n(f),o&&o(!0),i.current.isFocusWithin=!0,u(f);let y=f.currentTarget;l(p,"focus",v=>{let E=A(v);if(i.current.isFocusWithin&&!H(y,E)){let $=new p.defaultView.FocusEvent("blur",{relatedTarget:E});kl($,y);let P=Wn($);c(P)}},{capture:!0})}},[n,o,u,l,c]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:c}}}function qn(t={}){let{autoFocus:e=!1,isTextInput:r,within:n}=t,o=a.useRef({isFocused:!1,isFocusVisible:e||It()}),[i,l]=a.useState(!1),[s,c]=a.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=a.useCallback(()=>c(o.current.isFocused&&o.current.isFocusVisible),[]),d=a.useCallback(p=>{o.current.isFocused=p,o.current.isFocusVisible=It(),l(p),u()},[u]);Ld(p=>{o.current.isFocusVisible=p,u()},[r,i],{enabled:i,isTextInput:r});let{focusProps:f}=Ll({isDisabled:n,onFocusChange:d}),{focusWithinProps:m}=Gn({isDisabled:!n,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:s,focusProps:n?m:f}}let wr=!1,er=0;function wn(){wr=!0,setTimeout(()=>{wr=!1},500)}function Ho(t){t.pointerType==="touch"&&wn()}function Vd(){let t=Z(null);if(!(typeof t>"u"))return er===0&&(typeof PointerEvent<"u"?t.addEventListener("pointerup",Ho):process.env.NODE_ENV==="test"&&t.addEventListener("touchend",wn)),er++,()=>{er--,!(er>0)&&(typeof PointerEvent<"u"?t.removeEventListener("pointerup",Ho):process.env.NODE_ENV==="test"&&t.removeEventListener("touchend",wn))}}function Ut(t){let{onHoverStart:e,onHoverChange:r,onHoverEnd:n,isDisabled:o}=t,[i,l]=a.useState(!1),s=a.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;a.useEffect(Vd,[]);let{addGlobalListener:c,removeAllGlobalListeners:u}=Rr(),{hoverProps:d,triggerHoverEnd:f}=a.useMemo(()=>{let m=(y,v)=>{if(s.pointerType=v,o||v==="touch"||s.isHovered||!H(y.currentTarget,A(y)))return;s.isHovered=!0;let E=y.currentTarget;s.target=E,c(Z(A(y)),"pointerover",$=>{s.isHovered&&s.target&&!H(s.target,A($))&&p($,$.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:E,pointerType:v}),r&&r(!0),l(!0)},p=(y,v)=>{let E=s.target;s.pointerType="",s.target=null,!(v==="touch"||!s.isHovered||!E)&&(s.isHovered=!1,u(),n&&n({type:"hoverend",target:E,pointerType:v}),r&&r(!1),l(!1))},g={};return typeof PointerEvent<"u"?(g.onPointerEnter=y=>{wr&&y.pointerType==="mouse"||m(y,y.pointerType)},g.onPointerLeave=y=>{!o&&H(y.currentTarget,A(y))&&p(y,y.pointerType)}):process.env.NODE_ENV==="test"&&(g.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},g.onMouseEnter=y=>{!s.ignoreEmulatedMouseEvents&&!wr&&m(y,"mouse"),s.ignoreEmulatedMouseEvents=!1},g.onMouseLeave=y=>{!o&&H(y.currentTarget,A(y))&&p(y,"mouse")}),{hoverProps:g,triggerHoverEnd:p}},[e,r,n,o,s,c,u]);return a.useEffect(()=>{o&&f({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:d,isHovered:i}}const Hd=a.createContext({}),Al=dd(function(e,r){[e,r]=Oe(e,r,Hd);let n=e,{isPending:o}=n,{buttonProps:i,isPressed:l}=_d(e,r);i=Wd(i,o);let{focusProps:s,isFocused:c,isFocusVisible:u}=qn(e),{hoverProps:d,isHovered:f}=Ut({...e,isDisabled:e.isDisabled||o}),m={isHovered:f,isPressed:(n.isPressed||l)&&!o,isFocused:c,isFocusVisible:u,isDisabled:e.isDisabled||!1,isPending:o??!1},p=Fe({...e,values:m,defaultClassName:"react-aria-Button"}),g=ge(i.id),y=ge(),v=i["aria-labelledby"];o&&(v?v=`${v} ${y}`:i["aria-label"]&&(v=`${g} ${y}`));let E=a.useRef(o);a.useEffect(()=>{let P={"aria-labelledby":v||g};(!E.current&&c&&o||E.current&&c&&!o)&&Lo(P,"assertive"),E.current=o},[o,c,v,g]);let $=ue(e,{global:!0});return delete $.onClick,a.createElement(Ce.button,{...X($,p,i,s,d),type:i.type==="submit"&&o?"button":i.type,id:g,ref:r,"aria-labelledby":v,slot:e.slot||void 0,"aria-disabled":o?"true":i["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":m.isPressed||void 0,"data-hovered":f||void 0,"data-focused":c||void 0,"data-pending":o||void 0,"data-focus-visible":u||void 0},a.createElement(Cl.Provider,{value:{id:y}},p.children))}),zd=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function Wd(t,e){if(e){for(const r in t)r.startsWith("on")&&!zd.test(r)&&(t[r]=void 0);t.href=void 0,t.target=void 0}return t}const Ud=typeof document<"u"?a.useInsertionEffect??a.useLayoutEffect:()=>{};function Lr(t,e,r){let[n,o]=a.useState(t||e),i=a.useRef(n),l=a.useRef(t!==void 0),s=t!==void 0;a.useEffect(()=>{let f=l.current;f!==s&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${f?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),l.current=s},[s]);let c=s?t:n;Ud(()=>{i.current=c});let[,u]=a.useReducer(()=>({}),{}),d=a.useCallback((f,...m)=>{let p=typeof f=="function"?f(i.current):f;Object.is(i.current,p)||(i.current=p,o(p),u(),r==null||r(p,...m))},[r]);return[c,d]}const Gd=t=>t?"true":void 0;function je(t,e){return sd(t,(r,n)=>{const o=typeof e=="function"?e(n)??"":e??"";return Dt(o,r??"")??""})}const ce=(t,e,r)=>typeof t=="function"?t({className:e}):e,qd=t=>b.jsx("svg",{"aria-hidden":"true","aria-label":"Chevron right icon",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...t,children:b.jsx("path",{clipRule:"evenodd",d:"M5.47 2.97a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 1 1-1.06-1.06L9.44 8 5.47 4.03a.75.75 0 0 1 0-1.06Z",fill:"currentColor",fillRule:"evenodd"})}),Yd=({height:t=9,width:e=9,...r})=>b.jsx("svg",{"aria-hidden":"true","aria-label":"External link icon",fill:"none",height:t,role:"presentation",viewBox:"0 0 7 7",width:e,xmlns:"http://www.w3.org/2000/svg",...r,children:b.jsx("path",{d:"M1.20592 6.84333L0.379822 6.01723L4.52594 1.8672H1.37819L1.38601 0.731812H6.48742V5.83714H5.34421L5.35203 2.6933L1.20592 6.84333Z",fill:"currentColor"})}),zo=t=>b.jsx("svg",{"aria-hidden":"true","aria-label":"Info icon",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...t,children:b.jsx("path",{clipRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11a5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0a1 1 0 0 1 2 0m-.25 3a.75.75 0 0 0-1.5 0V11a.75.75 0 0 0 1.5 0z",fill:"currentColor",fillRule:"evenodd"})}),Xd=t=>b.jsx("svg",{"aria-hidden":"true","aria-label":"Warning icon",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...t,children:b.jsx("path",{clipRule:"evenodd",d:"M7.134 2.994L2.217 11.5a1 1 0 0 0 .866 1.5h9.834a1 1 0 0 0 .866-1.5L8.866 2.993a1 1 0 0 0-1.732 0m3.03-.75c-.962-1.665-3.366-1.665-4.329 0L.918 10.749c-.963 1.666.24 3.751 2.165 3.751h9.834c1.925 0 3.128-2.085 2.164-3.751zM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2A.75.75 0 0 1 8 5m1 5.75a1 1 0 1 1-2 0a1 1 0 0 1 2 0",fill:"currentColor",fillRule:"evenodd"})}),Zd=t=>b.jsx("svg",{"aria-hidden":"true","aria-label":"Danger icon",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...t,children:b.jsx("path",{clipRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11a5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-4.5a1 1 0 1 1-2 0a1 1 0 0 1 2 0M8.75 5a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0z",fill:"currentColor",fillRule:"evenodd"})}),Jd=t=>b.jsx("svg",{"aria-hidden":"true","aria-label":"Success icon",fill:"none",height:16,role:"presentation",viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...t,children:b.jsx("path",{clipRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0a5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-3.9-1.55a.75.75 0 1 0-1.2-.9L7.419 8.858L6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08z",fill:"currentColor",fillRule:"evenodd"})}),Yn=a.createContext({}),Qd=a.createContext({placement:"bottom"}),ef=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;function Wo(t){return t.dataset.liveAnnouncer==="true"||t.dataset.reactAriaTopLayer!==void 0}let vt=new WeakMap,me=[];function tf(t,e){let r=fe(t==null?void 0:t[0]),n=e instanceof r.Element?{root:e}:e,o=(n==null?void 0:n.root)??document.body,i=(n==null?void 0:n.shouldUseInert)&&ef,l=new Set(t),s=new Set,c=v=>i&&v instanceof r.HTMLElement?v.inert:v.getAttribute("aria-hidden")==="true",u=(v,E)=>{i&&v instanceof r.HTMLElement?v.inert=E:E?v.setAttribute("aria-hidden","true"):(v.removeAttribute("aria-hidden"),v instanceof r.HTMLElement&&(v.inert=!1))},d=new Set;if(Ne())for(let v of t){let E=v;for(;E&&E!==o;){let $=E.getRootNode();"shadowRoot"in $&&d.add($.shadowRoot),E=$.parentNode}}let f=v=>{for(let k of v.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(k);let E=k=>{if(s.has(k)||l.has(k)||k.parentElement&&s.has(k.parentElement)&&k.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let L of l)if(H(k,L))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},$=Gi(Z(v),v,NodeFilter.SHOW_ELEMENT,{acceptNode:E}),P=E(v);if(P===NodeFilter.FILTER_ACCEPT&&m(v),P!==NodeFilter.FILTER_REJECT){let k=$.nextNode();for(;k!=null;)m(k),k=$.nextNode()}},m=v=>{let E=vt.get(v)??0;c(v)&&E===0||(E===0&&u(v,!0),s.add(v),vt.set(v,E+1))};me.length&&me[me.length-1].disconnect(),f(o);let p=new MutationObserver(v=>{for(let E of v)if(E.type==="childList"){if(E.target.isConnected&&![...l,...s].some($=>H($,E.target)))for(let $ of E.addedNodes)($ instanceof HTMLElement||$ instanceof SVGElement)&&Wo($)?l.add($):$ instanceof Element&&f($);if(Ne()){for(let $ of d)if(!$.isConnected){p.disconnect();break}}}});p.observe(o,{childList:!0,subtree:!0});let g=new Set;if(Ne())for(let v of d){let E=new MutationObserver($=>{for(let P of $)if(P.type==="childList"){if(P.target.isConnected&&![...l,...s].some(k=>H(k,P.target)))for(let k of P.addedNodes)(k instanceof HTMLElement||k instanceof SVGElement)&&Wo(k)?l.add(k):k instanceof Element&&f(k);if(Ne()){for(let k of d)if(!k.isConnected){p.disconnect();break}}}});E.observe(v,{childList:!0,subtree:!0}),g.add(E)}let y={visibleNodes:l,hiddenNodes:s,observe(){p.observe(o,{childList:!0,subtree:!0})},disconnect(){p.disconnect()}};return me.push(y),()=>{if(p.disconnect(),Ne())for(let v of g)v.disconnect();for(let v of s){let E=vt.get(v);E!=null&&(E===1?(u(v,!1),vt.delete(v)):vt.set(v,E-1))}y===me[me.length-1]?(me.pop(),me.length&&me[me.length-1].observe()):me.splice(me.indexOf(y),1)}}function rf(t){let e=me[me.length-1];if(e&&!e.visibleNodes.has(t))return e.visibleNodes.add(t),()=>{e.visibleNodes.delete(t)}}const $e={top:"top",bottom:"top",left:"left",right:"left"},Er={top:"bottom",bottom:"top",left:"right",right:"left"},nf={top:"left",left:"top"},En={top:"height",left:"width"},Fl={width:"totalWidth",height:"totalHeight"},tr={};let of=()=>typeof document<"u"?window.visualViewport:null;function Uo(t,e){let r=0,n=0,o=0,i=0,l=0,s=0,c={},u=((e==null?void 0:e.scale)??1)>1;if(t.tagName==="BODY"||t.tagName==="HTML"){let d=document.documentElement;o=d.clientWidth,i=d.clientHeight,r=(e==null?void 0:e.width)??o,n=(e==null?void 0:e.height)??i,c.top=d.scrollTop||t.scrollTop,c.left=d.scrollLeft||t.scrollLeft,e&&(l=e.offsetTop,s=e.offsetLeft)}else({width:r,height:n,top:l,left:s}=Ft(t,!1)),c.top=t.scrollTop,c.left=t.scrollLeft,o=r,i=n;return Vi()&&(t.tagName==="BODY"||t.tagName==="HTML")&&u&&(c.top=0,c.left=0,l=(e==null?void 0:e.pageTop)??0,s=(e==null?void 0:e.pageLeft)??0),{width:r,height:n,totalWidth:o,totalHeight:i,scroll:c,top:l,left:s}}function lf(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Go(t,e,r,n,o,i,l){let s=o.scroll[t]??0,c=n[En[t]],u=l[t]+n.scroll[$e[t]]+i,d=l[t]+n.scroll[$e[t]]+c-i,f=e-s+n.scroll[$e[t]]+l[t]-n[$e[t]],m=e-s+r+n.scroll[$e[t]]+l[t]-n[$e[t]];return f<u?u-f:m>d?Math.max(d-m,u-f):0}function sf(t){let e=window.getComputedStyle(t);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function qo(t){if(tr[t])return tr[t];let[e,r]=t.split(" "),n=$e[e]||"right",o=nf[n];$e[r]||(r="center");let i=En[n],l=En[o];return tr[t]={placement:e,crossPlacement:r,axis:n,crossAxis:o,size:i,crossSize:l},tr[t]}function en(t,e,r,n,o,i,l,s,c,u,d){let{placement:f,crossPlacement:m,axis:p,crossAxis:g,size:y,crossSize:v}=n,E={};E[g]=t[g]??0,m==="center"?E[g]+=((t[v]??0)-(r[v]??0))/2:m!==g&&(E[g]+=(t[v]??0)-(r[v]??0)),E[g]+=i;const $=t[g]-r[v]+c+u,P=t[g]+t[v]-c-u;if(E[g]=yr(E[g],$,P),f===p){let k=s?d[y]:d[Fl[y]];E[Er[p]]=Math.floor(k-t[p]+o)}else E[p]=Math.floor(t[p]+t[y]+o);return E}function af(t,e,r,n,o,i,l,s,c,u,d){let f=(t.top!=null?t.top:c[Fl.height]-(t.bottom??0)-l)-(c.scroll.top??0),m=u?r.top:0,p={top:Math.max(e.top+m,((d==null?void 0:d.offsetTop)??e.top)+m),bottom:Math.min(e.top+e.height+m,((d==null?void 0:d.offsetTop)??0)+((d==null?void 0:d.height)??0))};return s!=="top"?Math.max(0,p.bottom-f-((o.top??0)+(o.bottom??0)+i)):Math.max(0,f+l-p.top-((o.top??0)+(o.bottom??0)+i))}function Yo(t,e,r,n,o,i,l,s){let{placement:c,axis:u,size:d}=i;return c===u?Math.max(0,r[u]-(l.scroll[u]??0)-(t[u]+(s?e[u]:0))-(n[u]??0)-n[Er[u]]-o):Math.max(0,t[d]+t[u]+(s?e[u]:0)-r[u]-r[d]+(l.scroll[u]??0)-(n[u]??0)-n[Er[u]]-o)}function cf(t,e,r,n,o,i,l,s,c,u,d,f,m,p,g,y,v,E){let $=qo(t),{size:P,crossAxis:k,crossSize:L,placement:j,crossPlacement:T}=$,R=en(e,s,r,$,d,f,u,m,g,y,c),I=d,K=Yo(s,u,e,o,i+d,$,c,v);if(l&&r[P]>K){let te=qo(`${Er[j]} ${T}`),se=en(e,s,r,te,d,f,u,m,g,y,c);Yo(s,u,e,o,i+d,te,c,v)>K&&($=te,R=se,I=d)}let V="bottom";$.axis==="top"?$.placement==="top"?V="top":$.placement==="bottom"&&(V="bottom"):$.crossAxis==="top"&&($.crossPlacement==="top"?V="bottom":$.crossPlacement==="bottom"&&(V="top"));let z=Go(k,R[k],r[L],s,c,i,u);R[k]+=z;let B=af(R,s,u,m,o,i,r.height,V,c,v,E);p&&p<B&&(B=p),r.height=Math.min(r.height,B),R=en(e,s,r,$,I,f,u,m,g,y,c),z=Go(k,R[k],r[L],s,c,i,u),R[k]+=z;let h={},w=e[k]-R[k]-o[$e[k]],N=w+.5*e[L];const C=g/2+y,M=$e[k]==="left"?(o.left??0)+(o.right??0):(o.top??0)+(o.bottom??0),x=r[L]-M-g/2-y,S=e[k]+g/2-(R[k]+o[$e[k]]),D=e[k]+e[L]-g/2-(R[k]+o[$e[k]]),W=yr(N,S,D);h[k]=yr(W,C,x),{placement:j,crossPlacement:T}=$,g?w=h[k]:T==="right"?w+=e[L]:T==="center"&&(w+=e[L]/2);let U=j==="left"||j==="top"?r[P]:0,G={x:j==="top"||j==="bottom"?w:U,y:j==="left"||j==="right"?w:U};return{position:R,maxHeight:B,arrowOffsetLeft:h.left,arrowOffsetTop:h.top,placement:j,triggerAnchorPoint:G}}function uf(t){let{placement:e,targetNode:r,overlayNode:n,scrollNode:o,padding:i,shouldFlip:l,boundaryElement:s,offset:c,crossOffset:u,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:m=0}=t,p=of(),g=n instanceof HTMLElement?df(n):document.documentElement,y=g===document.documentElement;const v=window.getComputedStyle(g).position;let E=!!v&&v!=="static",$=y?Ft(r,!1):Xo(r,g,!1);if(!y){let{marginTop:K,marginLeft:V}=window.getComputedStyle(r);$.top+=parseInt(K,10)||0,$.left+=parseInt(V,10)||0}let P=Ft(n,!0),k=sf(n);P.width+=(k.left??0)+(k.right??0),P.height+=(k.top??0)+(k.bottom??0);let L=lf(o),j=Uo(s,p),T=Uo(g,p),R;if((s.tagName==="BODY"||s.tagName==="HTML")&&!y){let K=Ir(g,!1);R={top:-(K.top-j.top),left:-(K.left-j.left),width:0,height:0}}else(s.tagName==="BODY"||s.tagName==="HTML")&&y?R={top:0,left:0,width:0,height:0}:R=Xo(s,g,!1);let I=H(s,g);return cf(e,$,P,L,k,i,l,j,T,R,c,u,E,d,f,m,I,p)}function Ir(t,e){let{top:r,left:n,width:o,height:i}=t.getBoundingClientRect();return e&&t instanceof t.ownerDocument.defaultView.HTMLElement&&(o=t.offsetWidth,i=t.offsetHeight),{top:r,left:n,width:o,height:i}}function Ft(t,e){let{top:r,left:n,width:o,height:i}=Ir(t,e),{scrollTop:l,scrollLeft:s,clientTop:c,clientLeft:u}=document.documentElement;return{top:r+l-c,left:n+s-u,width:o,height:i}}function Xo(t,e,r){let n=window.getComputedStyle(t),o;if(n.position==="fixed")o=Ir(t,r);else{o=Ft(t,r);let i=Ft(e,r),l=window.getComputedStyle(e);i.top+=(parseInt(l.borderTopWidth,10)||0)-e.scrollTop,i.left+=(parseInt(l.borderLeftWidth,10)||0)-e.scrollLeft,o.top-=i.top,o.left-=i.left}return o.top-=parseInt(n.marginTop,10)||0,o.left-=parseInt(n.marginLeft,10)||0,o}function df(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!Zo(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!Zo(e);)e=e.parentElement;return e||document.documentElement}function Zo(t){let e=window.getComputedStyle(t);return e.transform!=="none"||/transform|perspective/.test(e.willChange)||e.filter!=="none"||e.contain==="paint"||"backdropFilter"in e&&e.backdropFilter!=="none"||"WebkitBackdropFilter"in e&&e.WebkitBackdropFilter!=="none"}const Ol=new WeakMap;function ff(t){let{triggerRef:e,isOpen:r,onClose:n}=t;a.useEffect(()=>{if(!r||n===null)return;let o=i=>{let l=A(i);if(!e.current||l instanceof Node&&!H(l,e.current)||l instanceof HTMLInputElement||l instanceof HTMLTextAreaElement)return;let s=n||Ol.get(e.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,n,e])}let oe=typeof document<"u"?window.visualViewport:null;function pf(t){let{direction:e}=Je(),{arrowSize:r,targetRef:n,overlayRef:o,arrowRef:i,scrollRef:l=o,placement:s="bottom",containerPadding:c=12,shouldFlip:u=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:f=0,crossOffset:m=0,shouldUpdatePosition:p=!0,isOpen:g=!0,onClose:y,maxHeight:v,arrowBoundaryOffset:E=0}=t,[$,P]=a.useState(null),k=[p,s,o.current,n.current,i==null?void 0:i.current,l.current,c,u,d,f,m,g,e,v,E,r],L=a.useRef(oe==null?void 0:oe.scale);a.useEffect(()=>{g&&(L.current=oe==null?void 0:oe.scale)},[g]);let j=a.useCallback(()=>{var B,h;if(p===!1||!g||!o.current||!n.current||!d||(oe==null?void 0:oe.scale)!==L.current)return;let I=null;if(l.current&&Nt(l.current)){let w=(B=ne())==null?void 0:B.getBoundingClientRect(),N=l.current.getBoundingClientRect();I={type:"top",offset:((w==null?void 0:w.top)??0)-N.top},I.offset>N.height/2&&(I.type="bottom",I.offset=((w==null?void 0:w.bottom)??0)-N.bottom)}let K=o.current;!v&&o.current&&(K.style.top="0px",K.style.bottom="",K.style.maxHeight=(((h=window.visualViewport)==null?void 0:h.height)??window.innerHeight)+"px");let V=uf({placement:bf(s,e),overlayNode:o.current,targetNode:n.current,scrollNode:l.current||o.current,padding:c,shouldFlip:u,boundaryElement:d,offset:f,crossOffset:m,maxHeight:v,arrowSize:r??(i!=null&&i.current?Ir(i.current,!0).width:0),arrowBoundaryOffset:E});if(!V.position)return;K.style.top="",K.style.bottom="",K.style.left="",K.style.right="",Object.keys(V.position).forEach(w=>K.style[w]=V.position[w]+"px"),K.style.maxHeight=V.maxHeight!=null?V.maxHeight+"px":"";let z=ne();if(I&&z&&l.current){let w=z.getBoundingClientRect(),N=l.current.getBoundingClientRect(),C=w[I.type]-N[I.type];l.current.scrollTop+=C-I.offset}P(V)},k);J(j,k),hf(j),hr({ref:o,onResize:j}),hr({ref:n,onResize:j});let T=a.useRef(!1);J(()=>{let I,K=()=>{T.current=!0,clearTimeout(I),I=setTimeout(()=>{T.current=!1},500),j()},V=()=>{T.current&&K()};return oe==null||oe.addEventListener("resize",K),oe==null||oe.addEventListener("scroll",V),()=>{oe==null||oe.removeEventListener("resize",K),oe==null||oe.removeEventListener("scroll",V)}},[j]);let R=a.useCallback(()=>{T.current||y==null||y()},[y,T]);return ff({triggerRef:n,isOpen:g,onClose:y&&R}),{overlayProps:{style:{position:$?"absolute":"fixed",top:$?void 0:0,left:$?void 0:0,zIndex:1e5,...$==null?void 0:$.position,maxHeight:($==null?void 0:$.maxHeight)??"100vh"}},placement:($==null?void 0:$.placement)??null,triggerAnchorPoint:($==null?void 0:$.triggerAnchorPoint)??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:$==null?void 0:$.arrowOffsetLeft,top:$==null?void 0:$.arrowOffsetTop}},updatePosition:j}}function hf(t){J(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function bf(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const Jo=a.createContext(null),Sn="react-aria-focus-scope-restore";let re=null;function jl(t){let{children:e,contain:r,restoreFocus:n,autoFocus:o}=t,i=a.useRef(null),l=a.useRef(null),s=a.useRef([]),{parentNode:c}=a.useContext(Jo)||{},u=a.useMemo(()=>new Pn({scopeRef:s}),[s]);J(()=>{let m=c||le.root;if(le.getTreeNode(m.scopeRef)&&re&&!Sr(re,m.scopeRef)){let p=le.getTreeNode(re);p&&(m=p)}m.addChild(u),le.addNode(u)},[u,c]),J(()=>{let m=le.getTreeNode(s);m&&(m.contain=!!r)},[r]),J(()=>{var y;let m=(y=i.current)==null?void 0:y.nextSibling,p=[],g=v=>v.stopPropagation();for(;m&&m!==l.current;)p.push(m),m.addEventListener(Sn,g),m=m.nextSibling;return s.current=p,()=>{for(let v of p)v.removeEventListener(Sn,g)}},[e]),wf(s,n,r),vf(s,r),Ef(s,n,r),xf(s,o),a.useEffect(()=>{const m=ne(Z(s.current?s.current[0]:void 0));let p=null;if(we(m,s.current)){for(let g of le.traverse())g.scopeRef&&we(m,g.scopeRef.current)&&(p=g);p===le.getTreeNode(s)&&(re=p.scopeRef)}},[s]),J(()=>()=>{var p,g;let m=((g=(p=le.getTreeNode(s))==null?void 0:p.parent)==null?void 0:g.scopeRef)??null;(s===re||Sr(s,re))&&(!m||le.getTreeNode(m))&&(re=m),le.removeTreeNode(s)},[s]);let d=a.useMemo(()=>mf(s),[]),f=a.useMemo(()=>({focusManager:d,parentNode:u}),[u,d]);return a.createElement(Jo.Provider,{value:f},a.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),e,a.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function mf(t){return{focusNext(e={}){let r=t.current,{from:n,tabbable:o,wrap:i,accept:l}=e,s=n||ne(Z(r[0]??void 0)),c=r[0].previousElementSibling,u=qe(r),d=Le(u,{tabbable:o,accept:l},r);d.currentNode=we(s,r)?s:c;let f=d.nextNode();return!f&&i&&(d.currentNode=c,f=d.nextNode()),f&&De(f,!0),f},focusPrevious(e={}){let r=t.current,{from:n,tabbable:o,wrap:i,accept:l}=e,s=n||ne(Z(r[0]??void 0)),c=r[r.length-1].nextElementSibling,u=qe(r),d=Le(u,{tabbable:o,accept:l},r);d.currentNode=we(s,r)?s:c;let f=d.previousNode();return!f&&i&&(d.currentNode=c,f=d.previousNode()),f&&De(f,!0),f},focusFirst(e={}){let r=t.current,{tabbable:n,accept:o}=e,i=qe(r),l=Le(i,{tabbable:n,accept:o},r);l.currentNode=r[0].previousElementSibling;let s=l.nextNode();return s&&De(s,!0),s},focusLast(e={}){let r=t.current,{tabbable:n,accept:o}=e,i=qe(r),l=Le(i,{tabbable:n,accept:o},r);l.currentNode=r[r.length-1].nextElementSibling;let s=l.previousNode();return s&&De(s,!0),s}}}function qe(t){return t[0].parentElement}function Pt(t){let e=le.getTreeNode(re);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function gf(t){if(!t.form)return Array.from(Z(t).querySelectorAll(`input[type="radio"][name="${CSS.escape(t.name)}"]`)).filter(n=>!n.form);const e=t.form.elements.namedItem(t.name);let r=fe(t);return e instanceof r.RadioNodeList?Array.from(e).filter(n=>n instanceof r.HTMLInputElement):e instanceof r.HTMLInputElement?[e]:[]}function yf(t){if(t.checked)return!0;const e=gf(t);return e.length>0&&!e.some(r=>r.checked)}function vf(t,e){let r=a.useRef(void 0),n=a.useRef(void 0);J(()=>{let o=t.current;if(!e){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}const i=Z(o?o[0]:void 0);let l=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!Pt(t)||u.isComposing)return;let d=ne(i),f=t.current;if(!f||!we(d,f))return;let m=qe(f),p=Le(m,{tabbable:!0},f);if(!d)return;p.currentNode=d;let g=u.shiftKey?p.previousNode():p.nextNode();g||(p.currentNode=u.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,g=u.shiftKey?p.previousNode():p.nextNode()),u.preventDefault(),g&&(De(g,!0),g instanceof fe(g).HTMLInputElement&&g.select())},s=u=>{(!re||Sr(re,t))&&we(A(u),t.current)?(re=t,r.current=A(u)):Pt(t)&&!He(A(u),t)?r.current?r.current.focus():re&&re.current&&Cn(re.current):Pt(t)&&(r.current=A(u))},c=u=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{var p;let d=Kt(),f=(d==="virtual"||d===null)&&jn()&&Hi(),m=ne(i);if(!f&&m&&Pt(t)&&!He(m,t)){re=t;let g=A(u);g&&g.isConnected?(r.current=g,(p=r.current)==null||p.focus()):re.current&&Cn(re.current)}})};return i.addEventListener("keydown",l,!1),i.addEventListener("focusin",s,!1),o==null||o.forEach(u=>u.addEventListener("focusin",s,!1)),o==null||o.forEach(u=>u.addEventListener("focusout",c,!1)),()=>{i.removeEventListener("keydown",l,!1),i.removeEventListener("focusin",s,!1),o==null||o.forEach(u=>u.removeEventListener("focusin",s,!1)),o==null||o.forEach(u=>u.removeEventListener("focusout",c,!1))}},[t,e]),J(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function Bl(t){return He(t)}function we(t,e){return!t||!e?!1:e.some(r=>H(r,t))}function He(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of le.traverse(le.getTreeNode(e)))if(r&&we(t,r.current))return!0;return!1}function $f(t){return He(t,re)}function Sr(t,e){var n;let r=(n=le.getTreeNode(e))==null?void 0:n.parent;for(;r;){if(r.scopeRef===t)return!0;r=r.parent}return!1}function De(t,e=!1){if(t!=null&&!e)try{ct(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function _l(t,e=!0){let r=t[0].previousElementSibling,n=qe(t),o=Le(n,{tabbable:e},t);o.currentNode=r;let i=o.nextNode();return e&&!i&&(n=qe(t),o=Le(n,{tabbable:!1},t),o.currentNode=r,i=o.nextNode()),i}function Cn(t,e=!0){De(_l(t,e))}function xf(t,e){const r=a.useRef(e);a.useEffect(()=>{if(r.current){re=t;const n=Z(t.current?t.current[0]:void 0);!we(ne(n),re.current)&&t.current&&Cn(t.current)}r.current=!1},[t])}function wf(t,e,r){J(()=>{if(e||r)return;let n=t.current;const o=Z(n?n[0]:void 0);let i=l=>{let s=A(l);we(s,t.current)?re=t:Bl(s)||(re=null)};return o.addEventListener("focusin",i,!1),n==null||n.forEach(l=>l.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),n==null||n.forEach(l=>l.removeEventListener("focusin",i,!1))}},[t,e,r])}function Qo(t){let e=le.getTreeNode(re);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function Ef(t,e,r){const n=a.useRef(typeof document<"u"?ne(Z(t.current?t.current[0]:void 0)):null);J(()=>{let o=t.current;const i=Z(o?o[0]:void 0);if(!e||r)return;let l=()=>{(!re||Sr(re,t))&&we(ne(i),t.current)&&(re=t)};return i.addEventListener("focusin",l,!1),o==null||o.forEach(s=>s.addEventListener("focusin",l,!1)),()=>{i.removeEventListener("focusin",l,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",l,!1))}},[t,r]),J(()=>{const o=Z(t.current?t.current[0]:void 0);if(!e)return;let i=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!Pt(t)||l.isComposing)return;let s=o.activeElement;if(!He(s,t)||!Qo(t))return;let c=le.getTreeNode(t);if(!c)return;let u=c.nodeToRestore,d=Le(o.body,{tabbable:!0});d.currentNode=s;let f=l.shiftKey?d.previousNode():d.nextNode();if((!u||!u.isConnected||u===o.body)&&(u=void 0,c.nodeToRestore=void 0),(!f||!He(f,t))&&u){d.currentNode=u;do f=l.shiftKey?d.previousNode():d.nextNode();while(He(f,t));l.preventDefault(),l.stopPropagation(),f?De(f,!0):Bl(u)?De(u,!0):s.blur()}};return r||o.addEventListener("keydown",i,!0),()=>{r||o.removeEventListener("keydown",i,!0)}},[t,e,r]),J(()=>{const o=Z(t.current?t.current[0]:void 0);if(!e)return;let i=le.getTreeNode(t);if(i)return i.nodeToRestore=n.current??void 0,()=>{let l=le.getTreeNode(t);if(!l)return;let s=l.nodeToRestore,c=ne(o);if(e&&s&&(c&&He(c,t)||c===o.body&&Qo(t))){let u=le.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let d=u.getTreeNode(t);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){ei(d.nodeToRestore);return}d=d.parent}for(d=u.getTreeNode(t);d;){if(d.scopeRef&&d.scopeRef.current&&le.getTreeNode(d.scopeRef)){let f=_l(d.scopeRef.current,!0);ei(f);return}d=d.parent}}})}}},[t,e])}function ei(t){t.dispatchEvent(new CustomEvent(Sn,{bubbles:!0,cancelable:!0}))&&De(t)}function Le(t,e,r){let n=e!=null&&e.tabbable?el:Qi,o=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,i=Z(o),l=Gi(i,t||i,NodeFilter.SHOW_ELEMENT,{acceptNode(s){return H(e==null?void 0:e.from,s)||e!=null&&e.tabbable&&s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(!yf(s)||l.currentNode.tagName==="INPUT"&&l.currentNode.type==="radio"&&l.currentNode.name===s.name)?NodeFilter.FILTER_REJECT:n(s)&&(!r||we(s,r))&&(!(e!=null&&e.accept)||e.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(l.currentNode=e.from),l}class Xn{constructor(){this.fastMap=new Map,this.root=new Pn({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,r,n){let o=this.fastMap.get(r??null);if(!o)return;let i=new Pn({scopeRef:e});o.addChild(i),i.parent=o,this.fastMap.set(e,i),n&&(i.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let r=this.fastMap.get(e);if(!r)return;let n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&we(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(i=>n&&n.addChild(i))),this.fastMap.delete(r.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let r of e.children)yield*this.traverse(r)}clone(){var r;let e=new Xn;for(let n of this.traverse())e.addTreeNode(n.scopeRef,((r=n.parent)==null?void 0:r.scopeRef)??null,n.nodeToRestore);return e}}class Pn{constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}}let le=new Xn;function Sf(t){let{ref:e,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=t,i=a.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=xe(c=>{r&&rr(c,e)&&(o&&o(c),i.current.isPointerDown=!0)}),s=xe(c=>{r&&r(c)});a.useEffect(()=>{let c=i.current;if(n)return;const u=e.current,d=Z(u);if(typeof PointerEvent<"u"){let f=m=>{c.isPointerDown&&rr(m,e)&&s(m),c.isPointerDown=!1};return d.addEventListener("pointerdown",l,!0),d.addEventListener("click",f,!0),()=>{d.removeEventListener("pointerdown",l,!0),d.removeEventListener("click",f,!0)}}else if(process.env.NODE_ENV==="test"){let f=p=>{c.ignoreEmulatedMouseEvents?c.ignoreEmulatedMouseEvents=!1:c.isPointerDown&&rr(p,e)&&s(p),c.isPointerDown=!1},m=p=>{c.ignoreEmulatedMouseEvents=!0,c.isPointerDown&&rr(p,e)&&s(p),c.isPointerDown=!1};return d.addEventListener("mousedown",l,!0),d.addEventListener("mouseup",f,!0),d.addEventListener("touchstart",l,!0),d.addEventListener("touchend",m,!0),()=>{d.removeEventListener("mousedown",l,!0),d.removeEventListener("mouseup",f,!0),d.removeEventListener("touchstart",l,!0),d.removeEventListener("touchend",m,!0)}}},[e,n])}function rr(t,e){if(t.button>0)return!1;let r=A(t);if(r){const n=r.ownerDocument;if(!n||!H(n.documentElement,r)||r.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}const ke=[];function Cf(t,e){let{onClose:r,shouldCloseOnBlur:n,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:s}=t,c=a.useRef(void 0);a.useEffect(()=>{if(o&&!ke.includes(e))return ke.push(e),()=>{let g=ke.indexOf(e);g>=0&&ke.splice(g,1)}},[o,e]);let u=()=>{ke[ke.length-1]===e&&r&&r()},d=g=>{const y=ke[ke.length-1];c.current=y,(!s||s(A(g)))&&y===e&&g.stopPropagation()},f=g=>{(!s||s(A(g)))&&(ke[ke.length-1]===e&&g.stopPropagation(),c.current===e&&u()),c.current=void 0},m=g=>{g.key==="Escape"&&!l&&!g.nativeEvent.isComposing&&(g.stopPropagation(),g.preventDefault(),u())};Sf({ref:e,onInteractOutside:i&&o?f:void 0,onInteractOutsideStart:d});let{focusWithinProps:p}=Gn({isDisabled:!n,onBlurWithin:g=>{!g.relatedTarget||$f(g.relatedTarget)||(!s||s(g.relatedTarget))&&(r==null||r())}});return{overlayProps:{onKeyDown:m,...p},underlayProps:{}}}const Mt=typeof document<"u"&&window.visualViewport;let nr=0,tn;function Pf(t={}){let{isDisabled:e}=t;J(()=>{if(!e)return nr++,nr===1&&(Bt()?tn=Tf():tn=kf()),()=>{nr--,nr===0&&tn()}},[e])}function kf(){let t=window.innerWidth-document.documentElement.clientWidth;return Vt(t>0&&("scrollbarGutter"in document.documentElement.style?ur(document.documentElement,"scrollbarGutter","stable"):ur(document.documentElement,"paddingRight",`${t}px`)),ur(document.documentElement,"overflow","hidden"))}function Tf(){let t=ur(document.documentElement,"overflow","hidden"),e,r=!1,n=d=>{let f=A(d);e=at(f)?f:Zi(f,!0),r=!1;let m=f.ownerDocument.defaultView.getSelection();m&&!m.isCollapsed&&m.containsNode(f,!0)&&(r=!0),d.composedPath().some(p=>p instanceof HTMLInputElement&&p.type==="range")&&(r=!0),"selectionStart"in f&&"selectionEnd"in f&&f.selectionStart<f.selectionEnd&&f.ownerDocument.activeElement===f&&(r=!0)},o=document.createElement("style"),i=rl();i&&(o.nonce=i),o.textContent=`
|
|
8
8
|
@layer {
|
|
9
9
|
* {
|
|
10
10
|
overscroll-behavior: contain;
|
|
11
11
|
}
|
|
12
|
-
}`.trim(),document.head.prepend(o);let l=d=>{if(!(d.touches.length===2||r)){if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&d.preventDefault()}},s=d=>{var h;let f=A(d),m=d.relatedTarget;if(m&&Wr(m))m.focus({preventScroll:!0}),ei(m,Wr(f));else if(!m){let g=(h=f.parentElement)==null?void 0:h.closest("[tabindex]");g==null||g.focus({preventScroll:!0})}},c=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(d){let f=ne(),m=f!=null&&Wr(f);c.call(this,{...d,preventScroll:!0}),(!d||!d.preventScroll)&&ei(this,m)};let u=Vt(rn(document,"touchstart",n,{passive:!1,capture:!0}),rn(document,"touchmove",l,{passive:!1,capture:!0}),rn(document,"blur",s,!0));return()=>{t(),u(),o.remove(),HTMLElement.prototype.focus=c}}function ur(t,e,r){let n=t.style[e];return t.style[e]=r,()=>{t.style[e]=n}}function rn(t,e,r,n){return t.addEventListener(e,r,n),()=>{t.removeEventListener(e,r,n)}}function ei(t,e){e||!Mt?ti(t):Mt.addEventListener("resize",()=>ti(t),{once:!0})}function ti(t){let e=document.scrollingElement||document.documentElement,r=t;for(;r&&r!==e;){let n=Xi(r);if(n!==document.documentElement&&n!==document.body&&n!==r){let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(i.top<o.top||i.bottom>o.top+r.clientHeight){let l=o.bottom;Mt&&(l=Math.min(l,Mt.offsetTop+Mt.height));let s=i.top-o.top-((l-o.top)/2-i.height/2);n.scrollTo({top:Math.max(0,Math.min(n.scrollHeight-n.clientHeight,n.scrollTop+s)),behavior:"smooth"})}}r=n.parentElement}}function Mf(t,e){let{triggerRef:r,popoverRef:n,groupRef:o,isNonModal:i,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:s,...c}=t,u=c.trigger==="SubmenuTrigger",{overlayProps:d,underlayProps:f}=Cf({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!i||u,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:s},o??n),{overlayProps:m,arrowProps:h,placement:g,triggerAnchorPoint:y}=pf({...c,targetRef:r,overlayRef:n,isOpen:e.isOpen,onClose:i&&!u?e.close:null});return Pf({isDisabled:i||!e.isOpen}),a.useEffect(()=>{if(e.isOpen&&n.current)return i?rf((o==null?void 0:o.current)??n.current):tf([(o==null?void 0:o.current)??n.current],{shouldUseInert:!0})},[i,e.isOpen,n,o]),{popoverProps:X(d,m),arrowProps:h,underlayProps:f,placement:g,triggerAnchorPoint:y}}var Vl={};Vl={dismiss:"تجاهل"};var zl={};zl={dismiss:"Отхвърляне"};var Hl={};Hl={dismiss:"Odstranit"};var Ul={};Ul={dismiss:"Luk"};var Wl={};Wl={dismiss:"Schließen"};var Gl={};Gl={dismiss:"Απόρριψη"};var ql={};ql={dismiss:"Dismiss"};var Yl={};Yl={dismiss:"Descartar"};var Xl={};Xl={dismiss:"Lõpeta"};var Zl={};Zl={dismiss:"Hylkää"};var Jl={};Jl={dismiss:"Rejeter"};var Ql={};Ql={dismiss:"התעלם"};var es={};es={dismiss:"Odbaci"};var ts={};ts={dismiss:"Elutasítás"};var rs={};rs={dismiss:"Ignora"};var ns={};ns={dismiss:"閉じる"};var os={};os={dismiss:"무시"};var is={};is={dismiss:"Atmesti"};var ls={};ls={dismiss:"Nerādīt"};var ss={};ss={dismiss:"Lukk"};var as={};as={dismiss:"Negeren"};var cs={};cs={dismiss:"Zignoruj"};var us={};us={dismiss:"Descartar"};var ds={};ds={dismiss:"Dispensar"};var fs={};fs={dismiss:"Revocare"};var ps={};ps={dismiss:"Пропустить"};var hs={};hs={dismiss:"Zrušiť"};var bs={};bs={dismiss:"Opusti"};var ms={};ms={dismiss:"Odbaci"};var gs={};gs={dismiss:"Avvisa"};var ys={};ys={dismiss:"Kapat"};var vs={};vs={dismiss:"Скасувати"};var $s={};$s={dismiss:"取消"};var xs={};xs={dismiss:"關閉"};var ws={};ws={"ar-AE":Vl,"bg-BG":zl,"cs-CZ":Hl,"da-DK":Ul,"de-DE":Wl,"el-GR":Gl,"en-US":ql,"es-ES":Yl,"et-EE":Xl,"fi-FI":Zl,"fr-FR":Jl,"he-IL":Ql,"hr-HR":es,"hu-HU":ts,"it-IT":rs,"ja-JP":ns,"ko-KR":os,"lt-LT":is,"lv-LV":ls,"nb-NO":ss,"nl-NL":as,"pl-PL":cs,"pt-BR":us,"pt-PT":ds,"ro-RO":fs,"ru-RU":ps,"sk-SK":hs,"sl-SI":bs,"sr-SP":ms,"sv-SE":gs,"tr-TR":ys,"uk-UA":vs,"zh-CN":$s,"zh-TW":xs};const Rf=Symbol.for("react-aria.i18n.locale"),Nf=Symbol.for("react-aria.i18n.strings");let Qe;class Kr{constructor(e,r="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,n])=>n)),this.defaultLocale=r}getStringForLocale(e,r){let o=this.getStringsForLocale(r)[e];if(!o)throw new Error(`Could not find intl message ${e} in ${r} locale`);return o}getStringsForLocale(e){let r=this.strings[e];return r||(r=Df(e,this.strings,this.defaultLocale),this.strings[e]=r),r}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let r=window[Rf];if(Qe===void 0){let o=window[Nf];if(!o)return null;Qe={};for(let i in o)Qe[i]=new Kr({[r]:o[i]},r)}let n=Qe==null?void 0:Qe[e];if(!n)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}}function Df(t,e,r="en-US"){if(e[t])return e[t];let n=Lf(t);if(e[n])return e[n];for(let o in e)if(o.startsWith(n+"-"))return e[o];return e[r]}function Lf(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const ri=new Map,ni=new Map;class If{constructor(e,r){this.locale=e,this.strings=r}format(e,r){let n=this.strings.getStringForLocale(e,this.locale);return typeof n=="function"?n(r,this):n}plural(e,r,n="cardinal"){let o=r["="+e];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+n,l=ri.get(i);l||(l=new Intl.PluralRules(this.locale,{type:n}),ri.set(i,l));let s=l.select(e);return o=r[s]||r.other,typeof o=="function"?o():o}number(e){let r=ni.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),ni.set(this.locale,r)),r.format(e)}select(e,r){let n=e[r]||e.other;return typeof n=="function"?n():n}}const oi=new WeakMap;function Kf(t){let e=oi.get(t);return e||(e=new Kr(t),oi.set(t,e)),e}function Af(t,e){return e&&Kr.getGlobalDictionaryForPackage(e)||Kf(t)}function Es(t,e){let{locale:r}=Ze(),n=Af(t,e);return a.useMemo(()=>new If(r,n),[r,n])}const ii={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Ff(t={}){let{style:e,isFocusable:r}=t,[n,o]=a.useState(!1),{focusWithinProps:i}=Gn({isDisabled:!r,onFocusWithinChange:s=>o(s)}),l=a.useMemo(()=>n?e:e?{...ii,...e}:ii,[n]);return{visuallyHiddenProps:{...i,style:l}}}function Ss(t){let{children:e,elementType:r="div",isFocusable:n,style:o,...i}=t,{visuallyHiddenProps:l}=Ff(t);return a.createElement(r,X(i,l),e)}function Of(t){return t&&t.__esModule?t.default:t}function li(t){let{onDismiss:e,...r}=t,n=Es(Of(ws),"@react-aria/overlays"),o=Yi(r,n.format("dismiss")),i=()=>{e&&e()};return a.createElement(Ss,null,a.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}const jf=a.forwardRef(({children:t,...e},r)=>{let n=a.useRef(!1),o=a.useContext(At),i=X(o||{},{...e,register(){n.current=!0,o&&o.register()}});return i.ref=Ht(r||(o==null?void 0:o.ref)),_n(o,i.ref),a.useEffect(()=>{n.current||(process.env.NODE_ENV!=="production"&&console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),n.current=!0)},[]),a.createElement(At.Provider,{value:i},t)});function Bf({children:t}){let e=a.useMemo(()=>({register:()=>{}}),[]);return a.createElement(At.Provider,{value:e},t)}const _f=a.createContext({});function Vf(){return a.useContext(_f)??{}}const zf=a.createContext(null);function si(t){let e=dt(),{portalContainer:r=e?null:document.body,isExiting:n}=t,[o,i]=a.useState(!1),l=a.useMemo(()=>({contain:o,setContain:i}),[o,i]),{getContainer:s}=Vf();if(!t.portalContainer&&s&&(r=s()),!r)return null;let c=t.children;return t.disableFocusManagement||(c=a.createElement(jl,{restoreFocus:!0,contain:(t.shouldContainFocus||o)&&!n},c)),c=a.createElement(zf.Provider,{value:l},a.createElement(Bf,null,c)),jt.createPortal(c,r)}function Cs(t){let[e,r]=Lr(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const n=a.useCallback(()=>{r(!0)},[r]),o=a.useCallback(()=>{r(!1)},[r]),i=a.useCallback(()=>{r(!e)},[r,e]);return{isOpen:e,setOpen:r,open:n,close:o,toggle:i}}const Zn=a.createContext(null),ai=a.createContext(null),Hf=a.forwardRef(function(e,r){[e,r]=Oe(e,r,Zn);let n=a.useContext(eo),o=Cs(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?o:n,l=Gc(r,i.isOpen)||e.isExiting||!1,s=xl(),{direction:c}=Ze();if(s){let u=e.children;return typeof u=="function"&&(u=u({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),a.createElement(a.Fragment,null,u)}return i&&!i.isOpen&&!l?null:a.createElement(Uf,{...e,triggerRef:e.triggerRef,state:i,popoverRef:r,isExiting:l,dir:c})});function Uf({state:t,isExiting:e,UNSTABLE_portalContainer:r,clearContexts:n,...o}){var K,V;let i=a.useRef(null),l=a.useRef(null),s=a.useContext(ai),c=s&&o.trigger==="SubmenuTrigger",{popoverProps:u,underlayProps:d,arrowProps:f,placement:m,triggerAnchorPoint:h}=Mf({...o,offset:o.offset??8,arrowRef:i,groupRef:c?s:l},t),g=o.popoverRef,y=Wc(g,!!m)||o.isEntering||!1,v=Fe({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:m,isEntering:y,isExiting:e}}),E=!o.isNonModal||o.trigger==="SubmenuTrigger",[$,P]=a.useState(!1);J(()=>{g.current&&P(E&&!g.current.querySelector("[role=dialog]"))},[g,E]),a.useEffect(()=>{$&&(o.trigger!=="SubmenuTrigger"||Kt()!=="pointer")&&g.current&&!Nt(g.current)&&ct(g.current)},[$,g,o.trigger]);let k=a.useMemo(()=>{let H=v.children;if(n)for(let B of n)H=a.createElement(B.Provider,{value:null},H);return H},[v.children,n]),[L,j]=a.useState(null),T=a.useCallback(()=>{o.triggerRef.current&&j(o.triggerRef.current.getBoundingClientRect().width+"px")},[o.triggerRef]);J(T,[T]),hr({ref:(K=v.style)!=null&&K["--trigger-width"]?void 0:o.triggerRef,onResize:T});let R={...u.style,"--trigger-anchor-point":h?`${h.x}px ${h.y}px`:void 0,...v.style,"--trigger-width":((V=v.style)==null?void 0:V["--trigger-width"])||L},I=a.createElement(Ce.div,{...X(ue(o,{global:!0}),u),...v,role:$?"dialog":void 0,tabIndex:$?-1:void 0,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],ref:g,slot:o.slot||void 0,style:R,dir:o.dir,"data-trigger":o.trigger,"data-placement":m,"data-entering":y||void 0,"data-exiting":e||void 0},!o.isNonModal&&a.createElement(li,{onDismiss:t.close}),a.createElement(Qd.Provider,{value:{...f,placement:m,ref:i}},k),a.createElement(li,{onDismiss:t.close}));return c?a.createElement(si,{...o,shouldContainFocus:$,isExiting:e,portalContainer:r??(s==null?void 0:s.current)??void 0},I):a.createElement(si,{...o,shouldContainFocus:$,isExiting:e,portalContainer:r},!o.isNonModal&&t.isOpen&&a.createElement("div",{"data-testid":"underlay",...d,style:{position:"fixed",inset:0}}),a.createElement("div",{ref:l,style:{display:"contents"}},a.createElement(ai.Provider,{value:l},I)))}class bt{constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,r,n){let o=this.clone();return r.addDescendants(o,e),o}}class Ps extends bt{filter(e,r,n){let[o,i]=ks(e,r,this.firstChildKey,n),l=this.clone();return l.firstChildKey=o,l.lastChildKey=i,l}}const ro=class ro extends bt{};ro.type="header";let ci=ro;const no=class no extends bt{};no.type="loader";let ui=no;const oo=class oo extends Ps{filter(e,r,n){if(n(this.textValue,this)){let o=this.clone();return r.addDescendants(o,e),o}return null}};oo.type="item";let Tn=oo;const io=class io extends Ps{filter(e,r,n){let o=super.filter(e,r,n);if(o&&o.lastChildKey!==null){let i=e.getItem(o.lastChildKey);if(i&&i.type!=="header")return o}return null}};io.type="section";let Mn=io;class Wf{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let r=this.keyMap;return{*[Symbol.iterator](){let n=r.get(e),o=(n==null?void 0:n.firstChildKey)!=null?r.get(n.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?r.get(o.nextKey):void 0}}}getKeyBefore(e){let r=this.keyMap.get(e);if(!r)return null;if(r.prevKey!=null){for(r=this.keyMap.get(r.prevKey);r&&r.type!=="item"&&r.lastChildKey!=null;)r=this.keyMap.get(r.lastChildKey);return(r==null?void 0:r.key)??null}return r.parentKey}getKeyAfter(e){let r=this.keyMap.get(e);if(!r)return null;if(r.type!=="item"&&r.firstChildKey!=null)return r.firstChildKey;for(;r;){if(r.nextKey!=null)return r.nextKey;if(r.parentKey!=null)r=this.keyMap.get(r.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);return(e==null?void 0:e.key)??null}getItem(e){return this.keyMap.get(e)??null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,r=new e;return r.keyMap=new Map(this.keyMap),r.firstKey=this.firstKey,r.lastKey=this.lastKey,r.itemCount=this.itemCount,r}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");e.type==="item"&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,r){this.addNode(e);let n=r.getChildren(e.key);for(let o of n)this.addDescendants(o,r)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let r=this.keyMap.get(e);r!=null&&r.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,r,n=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=r,this.frozen=!n}filter(e){let r=new this.constructor,[n,o]=ks(this,r,this.firstKey,e);return r==null||r.commit(n,o),r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function ks(t,e,r,n){if(r==null)return[null,null];let o=null,i=null,l=t.getItem(r);for(;l!=null;){let s=l.filter(t,e,n);s!=null&&(s.nextKey=null,i&&(s.prevKey=i.key,i.nextKey=s.key),o==null&&(o=s),e.addNode(s),i=s),l=l.nextKey!=null?t.getItem(l.nextKey):null}if(i&&i.type==="separator"){let s=i.prevKey;e.removeNode(i.key),s!=null?(i=e.getItem(s),i.nextKey=null):i=null}return[(o==null?void 0:o.key)??null,(i==null?void 0:i.key)??null]}class Ts{constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)==null?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,r){if(r==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=r,e.previousSibling=r.previousSibling,e.index=r.index-1,this.firstChild===r?this.firstChild=e:r.previousSibling&&(r.previousSibling.nextSibling=e),r.previousSibling=e,e.parentNode=r.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode===this&&(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}}class it extends Ts{constructor(e,r){super(r),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){var e;return this.parentNode instanceof it?this.parentNode.level+(((e=this.parentNode.node)==null?void 0:e.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var n,o,i,l,s,c,u,d;let e=this.nextVisibleSibling,r=this.getMutableNode();if(r!=null&&(r.index=this.index,r.level=this.level,r.parentKey=this.parentNode instanceof it?((n=this.parentNode.node)==null?void 0:n.key)??null:null,r.prevKey=((i=(o=this.previousVisibleSibling)==null?void 0:o.node)==null?void 0:i.key)??null,r.nextKey=((l=e==null?void 0:e.node)==null?void 0:l.key)??null,r.hasChildNodes=!!this.firstChild,r.firstChildKey=((c=(s=this.firstVisibleChild)==null?void 0:s.node)==null?void 0:c.key)??null,r.lastChildKey=((d=(u=this.lastVisibleChild)==null?void 0:u.node)==null?void 0:d.key)??null,(r.colSpan!=null||r.colIndex!=null)&&e)){let f=(r.colIndex??r.index)+(r.colSpan??1);if(e.node!=null&&f!==e.node.colIndex){let m=e.getMutableNode();m.colIndex=f}}}setProps(e,r,n,o,i){let l,{value:s,textValue:c,id:u,...d}=e;if(this.node==null?(l=new n(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=l):l=this.getMutableNode(),d.ref=r,l.props=d,l.rendered=o,l.render=i,l.value=s,e["aria-label"]&&(l["aria-label"]=e["aria-label"]),l.textValue=c||(typeof d.children=="string"?d.children:"")||e["aria-label"]||"",u!=null&&u!==l.key)throw new Error("Cannot change the id of an item");d.colSpan!=null&&(l.colSpan=d.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(r){var o,i;let n=r==="none";if(e.isHidden!==n){(((o=e.parentNode)==null?void 0:o.firstVisibleChild)===e||((i=e.parentNode)==null?void 0:i.lastVisibleChild)===e)&&e.ownerDocument.markDirty(e.parentNode);let l=e.previousVisibleSibling,s=e.nextVisibleSibling;l&&e.ownerDocument.markDirty(l),s&&e.ownerDocument.markDirty(s),e.isHidden=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}}class Gf extends Ts{constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}get isConnected(){return!0}createElement(e){return new it(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let r=this.getMutableCollection();if(!r.getItem(e.node.key))for(let n of e)this.addNode(n);r.addNode(e.node)}removeNode(e){for(let r of e)this.removeNode(r);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection:(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){var e,r,n,o;for(let i of this.dirtyNodes)i instanceof it&&(!i.isConnected||i.isHidden)?this.removeNode(i):i.updateChildIndices();for(let i of this.dirtyNodes)i instanceof it?(i.isConnected&&!i.isHidden&&(i.updateNode(),this.addNode(i)),i.node&&this.dirtyNodes.delete(i),i.isMutated=!1):this.dirtyNodes.delete(i);this.nextCollection&&(this.nextCollection.commit(((r=(e=this.firstVisibleChild)==null?void 0:e.node)==null?void 0:r.key)??null,((o=(n=this.lastVisibleChild)==null?void 0:n.node)==null?void 0:o.key)??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null))}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0,this.isSSR||(this.collection=this.collection.clone());for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}}function Ms(t){let{children:e,items:r,idScope:n,addIdAndValue:o,dependencies:i=[]}=t,l=a.useMemo(()=>process.env.NODE_ENV!=="production"&&typeof e=="function"?e.toString():void 0,[e]),s=a.useMemo(()=>new WeakMap,[...i,l]);return a.useMemo(()=>{if(r&&typeof e=="function"){let c=[];for(let u of r){let d=qf(u)?u:null,f=d?s.get(d):null;if(!f){f=e(u);let m=f.props.id??(u==null?void 0:u.key)??(u==null?void 0:u.id);n!=null&&f.props.id==null&&m!=null&&(m=n+":"+m);let h=m??c.length;f=a.cloneElement(f,o?{key:h,id:m,value:u}:{key:h}),d&&s.set(d,f)}c.push(f)}return c}else if(typeof e!="function")return e},[e,r,s,n,o])}function qf(t){switch(typeof t){case"object":return t!=null;case"function":case"symbol":return!0;default:return!1}}var or={exports:{}},nn={};/**
|
|
12
|
+
}`.trim(),document.head.prepend(o);let l=d=>{if(!(d.touches.length===2||r)){if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&d.preventDefault()}},s=d=>{var p;let f=A(d),m=d.relatedTarget;if(m&&Ur(m))m.focus({preventScroll:!0}),ti(m,Ur(f));else if(!m){let g=(p=f.parentElement)==null?void 0:p.closest("[tabindex]");g==null||g.focus({preventScroll:!0})}},c=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(d){let f=ne(),m=f!=null&&Ur(f);c.call(this,{...d,preventScroll:!0}),(!d||!d.preventScroll)&&ti(this,m)};let u=Vt(rn(document,"touchstart",n,{passive:!1,capture:!0}),rn(document,"touchmove",l,{passive:!1,capture:!0}),rn(document,"blur",s,!0));return()=>{t(),u(),o.remove(),HTMLElement.prototype.focus=c}}function ur(t,e,r){let n=t.style[e];return t.style[e]=r,()=>{t.style[e]=n}}function rn(t,e,r,n){return t.addEventListener(e,r,n),()=>{t.removeEventListener(e,r,n)}}function ti(t,e){e||!Mt?ri(t):Mt.addEventListener("resize",()=>ri(t),{once:!0})}function ri(t){let e=document.scrollingElement||document.documentElement,r=t;for(;r&&r!==e;){let n=Zi(r);if(n!==document.documentElement&&n!==document.body&&n!==r){let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(i.top<o.top||i.bottom>o.top+r.clientHeight){let l=o.bottom;Mt&&(l=Math.min(l,Mt.offsetTop+Mt.height));let s=i.top-o.top-((l-o.top)/2-i.height/2);n.scrollTo({top:Math.max(0,Math.min(n.scrollHeight-n.clientHeight,n.scrollTop+s)),behavior:"smooth"})}}r=n.parentElement}}function Mf(t,e){let{triggerRef:r,popoverRef:n,groupRef:o,isNonModal:i,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:s,...c}=t,u=c.trigger==="SubmenuTrigger",{overlayProps:d,underlayProps:f}=Cf({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!i||u,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:s},o??n),{overlayProps:m,arrowProps:p,placement:g,triggerAnchorPoint:y}=pf({...c,targetRef:r,overlayRef:n,isOpen:e.isOpen,onClose:i&&!u?e.close:null});return Pf({isDisabled:i||!e.isOpen}),a.useEffect(()=>{if(e.isOpen&&n.current)return i?rf((o==null?void 0:o.current)??n.current):tf([(o==null?void 0:o.current)??n.current],{shouldUseInert:!0})},[i,e.isOpen,n,o]),{popoverProps:X(d,m),arrowProps:p,underlayProps:f,placement:g,triggerAnchorPoint:y}}var Vl={};Vl={dismiss:"تجاهل"};var Hl={};Hl={dismiss:"Отхвърляне"};var zl={};zl={dismiss:"Odstranit"};var Wl={};Wl={dismiss:"Luk"};var Ul={};Ul={dismiss:"Schließen"};var Gl={};Gl={dismiss:"Απόρριψη"};var ql={};ql={dismiss:"Dismiss"};var Yl={};Yl={dismiss:"Descartar"};var Xl={};Xl={dismiss:"Lõpeta"};var Zl={};Zl={dismiss:"Hylkää"};var Jl={};Jl={dismiss:"Rejeter"};var Ql={};Ql={dismiss:"התעלם"};var es={};es={dismiss:"Odbaci"};var ts={};ts={dismiss:"Elutasítás"};var rs={};rs={dismiss:"Ignora"};var ns={};ns={dismiss:"閉じる"};var os={};os={dismiss:"무시"};var is={};is={dismiss:"Atmesti"};var ls={};ls={dismiss:"Nerādīt"};var ss={};ss={dismiss:"Lukk"};var as={};as={dismiss:"Negeren"};var cs={};cs={dismiss:"Zignoruj"};var us={};us={dismiss:"Descartar"};var ds={};ds={dismiss:"Dispensar"};var fs={};fs={dismiss:"Revocare"};var ps={};ps={dismiss:"Пропустить"};var hs={};hs={dismiss:"Zrušiť"};var bs={};bs={dismiss:"Opusti"};var ms={};ms={dismiss:"Odbaci"};var gs={};gs={dismiss:"Avvisa"};var ys={};ys={dismiss:"Kapat"};var vs={};vs={dismiss:"Скасувати"};var $s={};$s={dismiss:"取消"};var xs={};xs={dismiss:"關閉"};var ws={};ws={"ar-AE":Vl,"bg-BG":Hl,"cs-CZ":zl,"da-DK":Wl,"de-DE":Ul,"el-GR":Gl,"en-US":ql,"es-ES":Yl,"et-EE":Xl,"fi-FI":Zl,"fr-FR":Jl,"he-IL":Ql,"hr-HR":es,"hu-HU":ts,"it-IT":rs,"ja-JP":ns,"ko-KR":os,"lt-LT":is,"lv-LV":ls,"nb-NO":ss,"nl-NL":as,"pl-PL":cs,"pt-BR":us,"pt-PT":ds,"ro-RO":fs,"ru-RU":ps,"sk-SK":hs,"sl-SI":bs,"sr-SP":ms,"sv-SE":gs,"tr-TR":ys,"uk-UA":vs,"zh-CN":$s,"zh-TW":xs};const Rf=Symbol.for("react-aria.i18n.locale"),Nf=Symbol.for("react-aria.i18n.strings");let et;class Kr{constructor(e,r="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,n])=>n)),this.defaultLocale=r}getStringForLocale(e,r){let o=this.getStringsForLocale(r)[e];if(!o)throw new Error(`Could not find intl message ${e} in ${r} locale`);return o}getStringsForLocale(e){let r=this.strings[e];return r||(r=Df(e,this.strings,this.defaultLocale),this.strings[e]=r),r}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let r=window[Rf];if(et===void 0){let o=window[Nf];if(!o)return null;et={};for(let i in o)et[i]=new Kr({[r]:o[i]},r)}let n=et==null?void 0:et[e];if(!n)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}}function Df(t,e,r="en-US"){if(e[t])return e[t];let n=Lf(t);if(e[n])return e[n];for(let o in e)if(o.startsWith(n+"-"))return e[o];return e[r]}function Lf(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const ni=new Map,oi=new Map;class If{constructor(e,r){this.locale=e,this.strings=r}format(e,r){let n=this.strings.getStringForLocale(e,this.locale);return typeof n=="function"?n(r,this):n}plural(e,r,n="cardinal"){let o=r["="+e];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+n,l=ni.get(i);l||(l=new Intl.PluralRules(this.locale,{type:n}),ni.set(i,l));let s=l.select(e);return o=r[s]||r.other,typeof o=="function"?o():o}number(e){let r=oi.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),oi.set(this.locale,r)),r.format(e)}select(e,r){let n=e[r]||e.other;return typeof n=="function"?n():n}}const ii=new WeakMap;function Kf(t){let e=ii.get(t);return e||(e=new Kr(t),ii.set(t,e)),e}function Af(t,e){return e&&Kr.getGlobalDictionaryForPackage(e)||Kf(t)}function Es(t,e){let{locale:r}=Je(),n=Af(t,e);return a.useMemo(()=>new If(r,n),[r,n])}const li={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Ff(t={}){let{style:e,isFocusable:r}=t,[n,o]=a.useState(!1),{focusWithinProps:i}=Gn({isDisabled:!r,onFocusWithinChange:s=>o(s)}),l=a.useMemo(()=>n?e:e?{...li,...e}:li,[n]);return{visuallyHiddenProps:{...i,style:l}}}function Ss(t){let{children:e,elementType:r="div",isFocusable:n,style:o,...i}=t,{visuallyHiddenProps:l}=Ff(t);return a.createElement(r,X(i,l),e)}function Of(t){return t&&t.__esModule?t.default:t}function si(t){let{onDismiss:e,...r}=t,n=Es(Of(ws),"@react-aria/overlays"),o=Xi(r,n.format("dismiss")),i=()=>{e&&e()};return a.createElement(Ss,null,a.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}const jf=a.forwardRef(({children:t,...e},r)=>{let n=a.useRef(!1),o=a.useContext(At),i=X(o||{},{...e,register(){n.current=!0,o&&o.register()}});return i.ref=zt(r||(o==null?void 0:o.ref)),Bn(o,i.ref),a.useEffect(()=>{n.current||(process.env.NODE_ENV!=="production"&&console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),n.current=!0)},[]),a.createElement(At.Provider,{value:i},t)});function Bf({children:t}){let e=a.useMemo(()=>({register:()=>{}}),[]);return a.createElement(At.Provider,{value:e},t)}const _f=a.createContext({});function Vf(){return a.useContext(_f)??{}}const Hf=a.createContext(null);function ai(t){let e=dt(),{portalContainer:r=e?null:document.body,isExiting:n}=t,[o,i]=a.useState(!1),l=a.useMemo(()=>({contain:o,setContain:i}),[o,i]),{getContainer:s}=Vf();if(!t.portalContainer&&s&&(r=s()),!r)return null;let c=t.children;return t.disableFocusManagement||(c=a.createElement(jl,{restoreFocus:!0,contain:(t.shouldContainFocus||o)&&!n},c)),c=a.createElement(Hf.Provider,{value:l},a.createElement(Bf,null,c)),jt.createPortal(c,r)}function Cs(t){let[e,r]=Lr(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const n=a.useCallback(()=>{r(!0)},[r]),o=a.useCallback(()=>{r(!1)},[r]),i=a.useCallback(()=>{r(!e)},[r,e]);return{isOpen:e,setOpen:r,open:n,close:o,toggle:i}}const Zn=a.createContext(null),ci=a.createContext(null),zf=a.forwardRef(function(e,r){[e,r]=Oe(e,r,Zn);let n=a.useContext(eo),o=Cs(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?o:n,l=Gc(r,i.isOpen)||e.isExiting||!1,s=xl(),{direction:c}=Je();if(s){let u=e.children;return typeof u=="function"&&(u=u({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),a.createElement(a.Fragment,null,u)}return i&&!i.isOpen&&!l?null:a.createElement(Wf,{...e,triggerRef:e.triggerRef,state:i,popoverRef:r,isExiting:l,dir:c})});function Wf({state:t,isExiting:e,UNSTABLE_portalContainer:r,clearContexts:n,...o}){var K,V;let i=a.useRef(null),l=a.useRef(null),s=a.useContext(ci),c=s&&o.trigger==="SubmenuTrigger",{popoverProps:u,underlayProps:d,arrowProps:f,placement:m,triggerAnchorPoint:p}=Mf({...o,offset:o.offset??8,arrowRef:i,groupRef:c?s:l},t),g=o.popoverRef,y=Uc(g,!!m)||o.isEntering||!1,v=Fe({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:m,isEntering:y,isExiting:e}}),E=!o.isNonModal||o.trigger==="SubmenuTrigger",[$,P]=a.useState(!1);J(()=>{g.current&&P(E&&!g.current.querySelector("[role=dialog]"))},[g,E]),a.useEffect(()=>{$&&(o.trigger!=="SubmenuTrigger"||Kt()!=="pointer")&&g.current&&!Nt(g.current)&&ct(g.current)},[$,g,o.trigger]);let k=a.useMemo(()=>{let z=v.children;if(n)for(let B of n)z=a.createElement(B.Provider,{value:null},z);return z},[v.children,n]),[L,j]=a.useState(null),T=a.useCallback(()=>{o.triggerRef.current&&j(o.triggerRef.current.getBoundingClientRect().width+"px")},[o.triggerRef]);J(T,[T]),hr({ref:(K=v.style)!=null&&K["--trigger-width"]?void 0:o.triggerRef,onResize:T});let R={...u.style,"--trigger-anchor-point":p?`${p.x}px ${p.y}px`:void 0,...v.style,"--trigger-width":((V=v.style)==null?void 0:V["--trigger-width"])||L},I=a.createElement(Ce.div,{...X(ue(o,{global:!0}),u),...v,role:$?"dialog":void 0,tabIndex:$?-1:void 0,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],ref:g,slot:o.slot||void 0,style:R,dir:o.dir,"data-trigger":o.trigger,"data-placement":m,"data-entering":y||void 0,"data-exiting":e||void 0},!o.isNonModal&&a.createElement(si,{onDismiss:t.close}),a.createElement(Qd.Provider,{value:{...f,placement:m,ref:i}},k),a.createElement(si,{onDismiss:t.close}));return c?a.createElement(ai,{...o,shouldContainFocus:$,isExiting:e,portalContainer:r??(s==null?void 0:s.current)??void 0},I):a.createElement(ai,{...o,shouldContainFocus:$,isExiting:e,portalContainer:r},!o.isNonModal&&t.isOpen&&a.createElement("div",{"data-testid":"underlay",...d,style:{position:"fixed",inset:0}}),a.createElement("div",{ref:l,style:{display:"contents"}},a.createElement(ci.Provider,{value:l},I)))}class bt{constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,r,n){let o=this.clone();return r.addDescendants(o,e),o}}class Ps extends bt{filter(e,r,n){let[o,i]=ks(e,r,this.firstChildKey,n),l=this.clone();return l.firstChildKey=o,l.lastChildKey=i,l}}const no=class no extends bt{};no.type="header";let ui=no;const oo=class oo extends bt{};oo.type="loader";let di=oo;const io=class io extends Ps{filter(e,r,n){if(n(this.textValue,this)){let o=this.clone();return r.addDescendants(o,e),o}return null}};io.type="item";let kn=io;const lo=class lo extends Ps{filter(e,r,n){let o=super.filter(e,r,n);if(o&&o.lastChildKey!==null){let i=e.getItem(o.lastChildKey);if(i&&i.type!=="header")return o}return null}};lo.type="section";let Tn=lo;class Uf{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let r=this.keyMap;return{*[Symbol.iterator](){let n=r.get(e),o=(n==null?void 0:n.firstChildKey)!=null?r.get(n.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?r.get(o.nextKey):void 0}}}getKeyBefore(e){let r=this.keyMap.get(e);if(!r)return null;if(r.prevKey!=null){for(r=this.keyMap.get(r.prevKey);r&&r.type!=="item"&&r.lastChildKey!=null;)r=this.keyMap.get(r.lastChildKey);return(r==null?void 0:r.key)??null}return r.parentKey}getKeyAfter(e){let r=this.keyMap.get(e);if(!r)return null;if(r.type!=="item"&&r.firstChildKey!=null)return r.firstChildKey;for(;r;){if(r.nextKey!=null)return r.nextKey;if(r.parentKey!=null)r=this.keyMap.get(r.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);return(e==null?void 0:e.key)??null}getItem(e){return this.keyMap.get(e)??null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,r=new e;return r.keyMap=new Map(this.keyMap),r.firstKey=this.firstKey,r.lastKey=this.lastKey,r.itemCount=this.itemCount,r}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");e.type==="item"&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,r){this.addNode(e);let n=r.getChildren(e.key);for(let o of n)this.addDescendants(o,r)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let r=this.keyMap.get(e);r!=null&&r.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,r,n=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=r,this.frozen=!n}filter(e){let r=new this.constructor,[n,o]=ks(this,r,this.firstKey,e);return r==null||r.commit(n,o),r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function ks(t,e,r,n){if(r==null)return[null,null];let o=null,i=null,l=t.getItem(r);for(;l!=null;){let s=l.filter(t,e,n);s!=null&&(s.nextKey=null,i&&(s.prevKey=i.key,i.nextKey=s.key),o==null&&(o=s),e.addNode(s),i=s),l=l.nextKey!=null?t.getItem(l.nextKey):null}if(i&&i.type==="separator"){let s=i.prevKey;e.removeNode(i.key),s!=null?(i=e.getItem(s),i.nextKey=null):i=null}return[(o==null?void 0:o.key)??null,(i==null?void 0:i.key)??null]}class Ts{constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)==null?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,r){if(r==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=r,e.previousSibling=r.previousSibling,e.index=r.index-1,this.firstChild===r?this.firstChild=e:r.previousSibling&&(r.previousSibling.nextSibling=e),r.previousSibling=e,e.parentNode=r.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode===this&&(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}}class it extends Ts{constructor(e,r){super(r),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){var e;return this.parentNode instanceof it?this.parentNode.level+(((e=this.parentNode.node)==null?void 0:e.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var n,o,i,l,s,c,u,d;let e=this.nextVisibleSibling,r=this.getMutableNode();if(r!=null&&(r.index=this.index,r.level=this.level,r.parentKey=this.parentNode instanceof it?((n=this.parentNode.node)==null?void 0:n.key)??null:null,r.prevKey=((i=(o=this.previousVisibleSibling)==null?void 0:o.node)==null?void 0:i.key)??null,r.nextKey=((l=e==null?void 0:e.node)==null?void 0:l.key)??null,r.hasChildNodes=!!this.firstChild,r.firstChildKey=((c=(s=this.firstVisibleChild)==null?void 0:s.node)==null?void 0:c.key)??null,r.lastChildKey=((d=(u=this.lastVisibleChild)==null?void 0:u.node)==null?void 0:d.key)??null,(r.colSpan!=null||r.colIndex!=null)&&e)){let f=(r.colIndex??r.index)+(r.colSpan??1);if(e.node!=null&&f!==e.node.colIndex){let m=e.getMutableNode();m.colIndex=f}}}setProps(e,r,n,o,i){let l,{value:s,textValue:c,id:u,...d}=e;if(this.node==null?(l=new n(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=l):l=this.getMutableNode(),d.ref=r,l.props=d,l.rendered=o,l.render=i,l.value=s,e["aria-label"]&&(l["aria-label"]=e["aria-label"]),l.textValue=c||(typeof d.children=="string"?d.children:"")||e["aria-label"]||"",u!=null&&u!==l.key)throw new Error("Cannot change the id of an item");d.colSpan!=null&&(l.colSpan=d.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(r){var o,i;let n=r==="none";if(e.isHidden!==n){(((o=e.parentNode)==null?void 0:o.firstVisibleChild)===e||((i=e.parentNode)==null?void 0:i.lastVisibleChild)===e)&&e.ownerDocument.markDirty(e.parentNode);let l=e.previousVisibleSibling,s=e.nextVisibleSibling;l&&e.ownerDocument.markDirty(l),s&&e.ownerDocument.markDirty(s),e.isHidden=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}}class Gf extends Ts{constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}get isConnected(){return!0}createElement(e){return new it(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let r=this.getMutableCollection();if(!r.getItem(e.node.key))for(let n of e)this.addNode(n);r.addNode(e.node)}removeNode(e){for(let r of e)this.removeNode(r);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection:(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){var e,r,n,o;for(let i of this.dirtyNodes)i instanceof it&&(!i.isConnected||i.isHidden)?this.removeNode(i):i.updateChildIndices();for(let i of this.dirtyNodes)i instanceof it?(i.isConnected&&!i.isHidden&&(i.updateNode(),this.addNode(i)),i.node&&this.dirtyNodes.delete(i),i.isMutated=!1):this.dirtyNodes.delete(i);this.nextCollection&&(this.nextCollection.commit(((r=(e=this.firstVisibleChild)==null?void 0:e.node)==null?void 0:r.key)??null,((o=(n=this.lastVisibleChild)==null?void 0:n.node)==null?void 0:o.key)??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null))}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0,this.isSSR||(this.collection=this.collection.clone());for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}}function Ms(t){let{children:e,items:r,idScope:n,addIdAndValue:o,dependencies:i=[]}=t,l=a.useMemo(()=>process.env.NODE_ENV!=="production"&&typeof e=="function"?e.toString():void 0,[e]),s=a.useMemo(()=>new WeakMap,[...i,l]);return a.useMemo(()=>{if(r&&typeof e=="function"){let c=[];for(let u of r){let d=qf(u)?u:null,f=d?s.get(d):null;if(!f){f=e(u);let m=f.props.id??(u==null?void 0:u.key)??(u==null?void 0:u.id);n!=null&&f.props.id==null&&m!=null&&(m=n+":"+m);let p=m??c.length;f=a.cloneElement(f,o?{key:p,id:m,value:u}:{key:p}),d&&s.set(d,f)}c.push(f)}return c}else if(typeof e!="function")return e},[e,r,s,n,o])}function qf(t){switch(typeof t){case"object":return t!=null;case"function":case"symbol":return!0;default:return!1}}var or={exports:{}},nn={};/**
|
|
13
13
|
* @license React
|
|
14
14
|
* use-sync-external-store-shim.production.js
|
|
15
15
|
*
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*
|
|
18
18
|
* This source code is licensed under the MIT license found in the
|
|
19
19
|
* LICENSE file in the root directory of this source tree.
|
|
20
|
-
*/var
|
|
20
|
+
*/var fi;function Yf(){if(fi)return nn;fi=1;var t=a;function e(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var r=typeof Object.is=="function"?Object.is:e,n=t.useState,o=t.useEffect,i=t.useLayoutEffect,l=t.useDebugValue;function s(f,m){var p=m(),g=n({inst:{value:p,getSnapshot:m}}),y=g[0].inst,v=g[1];return i(function(){y.value=p,y.getSnapshot=m,c(y)&&v({inst:y})},[f,p,m]),o(function(){return c(y)&&v({inst:y}),f(function(){c(y)&&v({inst:y})})},[f]),l(p),p}function c(f){var m=f.getSnapshot;f=f.value;try{var p=m();return!r(f,p)}catch{return!0}}function u(f,m){return m()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return nn.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,nn}var on={};/**
|
|
21
21
|
* @license React
|
|
22
22
|
* use-sync-external-store-shim.development.js
|
|
23
23
|
*
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
*
|
|
26
26
|
* This source code is licensed under the MIT license found in the
|
|
27
27
|
* LICENSE file in the root directory of this source tree.
|
|
28
|
-
*/var fi;function Xf(){return fi||(fi=1,process.env.NODE_ENV!=="production"&&(function(){function t(h,g){return h===g&&(h!==0||1/h===1/g)||h!==h&&g!==g}function e(h,g){d||o.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var y=g();if(!f){var v=g();i(y,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}v=l({inst:{value:y,getSnapshot:g}});var E=v[0].inst,$=v[1];return c(function(){E.value=y,E.getSnapshot=g,r(E)&&$({inst:E})},[h,y,g]),s(function(){return r(E)&&$({inst:E}),h(function(){r(E)&&$({inst:E})})},[h]),u(y),y}function r(h){var g=h.getSnapshot;h=h.value;try{var y=g();return!i(h,y)}catch{return!0}}function n(h,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=a,i=typeof Object.is=="function"?Object.is:t,l=o.useState,s=o.useEffect,c=o.useLayoutEffect,u=o.useDebugValue,d=!1,f=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:e;on.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),on}var pi;function Zf(){return pi||(pi=1,process.env.NODE_ENV==="production"?or.exports=Yf():or.exports=Xf()),or.exports}var Jf=Zf();const Rs=a.createContext(!1),Ot=a.createContext(null);function Qf(t){if(a.useContext(Ot))return t.content;let{collection:r,document:n}=np(t.createCollection);return a.createElement(a.Fragment,null,a.createElement(ud,null,a.createElement(Ot.Provider,{value:n},t.content)),a.createElement(ep,{render:t.children,collection:r}))}function ep({collection:t,render:e}){return e(t)}function tp(t,e,r){let n=dt(),o=a.useRef(n);o.current=n;let i=a.useCallback(()=>o.current?r():e(),[e,r]);return Jf.useSyncExternalStore(t,i)}const rp=typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore:tp;function np(t){let[e]=a.useState(()=>new Gf((t==null?void 0:t())||new Wf)),r=a.useCallback(l=>e.subscribe(l),[e]),n=a.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),o=a.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]);return{collection:rp(r,n,o),document:e}}const Rn=a.createContext(null);function op(t){var r;return r=class extends bt{},r.type=t,r}function Ns(t,e,r,n,o,i){typeof t=="string"&&(t=op(t));let l=a.useCallback(c=>{c==null||c.setProps(e,r,t,n,i)},[e,r,n,i,t]),s=a.useContext(Rn);if(s){let c=s.ownerDocument.nodesByProps.get(e);return c||(c=s.ownerDocument.createElement(t.type),c.setProps(e,r,t,n,i),s.appendChild(c),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(e,c)),o?a.createElement(Rn.Provider,{value:c},o):null}return a.createElement(t.type,{ref:l},o)}function Ds(t,e){let r=({node:o})=>e(o.props,o.props.ref,o),n=a.forwardRef((o,i)=>{let l=a.useContext(xn);if(!a.useContext(Rs)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(o,i)}return Ns(t,o,i,"children"in o?o.children:null,null,c=>a.createElement(xn.Provider,{value:l},a.createElement(r,{node:c})))});return n.displayName=e.name,n}function Ls(t,e,r=Is){let n=({node:i})=>e(i.props,i.props.ref,i),o=a.forwardRef((i,l)=>{let s=r(i);return Ns(t,i,l,null,s,c=>a.createElement(n,{node:c}))??a.createElement(a.Fragment,null)});return o.displayName=e.name,o}function Is(t){return Ms({...t,addIdAndValue:!0})}const hi=a.createContext(null);function ip(t){let e=a.useContext(hi),r=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),n=t.idScope??(e==null?void 0:e.idScope),o=Is({...t,idScope:n,dependencies:r});return a.useContext(Ot)&&(o=a.createElement(lp,null,o)),e=a.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),a.createElement(hi.Provider,{value:e},o)}function lp({children:t}){let e=a.useContext(Ot),r=a.useMemo(()=>a.createElement(Ot.Provider,{value:null},a.createElement(Rs.Provider,{value:!0},t)),[t]);return dt()?a.createElement(Rn.Provider,{value:e},r):jt.createPortal(r,e)}const sp=a.createContext(null),ap={CollectionRoot({collection:t,renderDropIndicator:e}){return bi(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:r}){return bi(t,e,r)}};function bi(t,e,r){return Ms({items:e?t.getChildren(e.key):t,dependencies:[r],children(n){if(n.type==="content")return a.createElement(a.Fragment,null);let o=n.render(n);return!r||n.type!=="item"?o:a.createElement(a.Fragment,null,r({type:"item",key:n.key,dropPosition:"before"}),o,cp(t,n,r))}})}function cp(t,e,r){let n=e.key,o=t.getKeyAfter(n),i=o!=null?t.getItem(o):null;for(;i!=null&&i.type!=="item";)o=t.getKeyAfter(i.key),i=o!=null?t.getItem(o):null;let l=e.nextKey!=null?t.getItem(e.nextKey):null;for(;l!=null&&l.type!=="item";)l=l.nextKey!=null?t.getItem(l.nextKey):null;let s=[];if(l==null){let c=e;for(;(c==null?void 0:c.type)==="item"&&(!i||c.parentKey!==i.parentKey&&i.level<c.level);){let u=r({type:"item",key:c.key,dropPosition:"after"});a.isValidElement(u)&&s.push(a.cloneElement(u,{key:`${c.key}-after`})),c=c.parentKey!=null?t.getItem(c.parentKey):null}}return s}const Ar=a.createContext(ap);function up(t){return a.useMemo(()=>t!=null?new Set([t]):null,[t])}function Ks(t){let e=fp(Z(t));e!==t&&(e&&dp(e,t),t&&As(t,e))}function dp(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function As(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function fp(t){let e=ne(t),r=e==null?void 0:e.getAttribute("aria-activedescendant");return r&&t.getElementById(r)||e}const mi=a.createContext(null),pp=a.createContext(null),hp=a.createContext({}),bp=a.createContext({}),mp=a.createContext(null);function gp(t){let e=a.useRef({});return a.createElement(mp.Provider,{value:e},t.children)}const yp=a.createContext({isSelected:!1});function vp(t){let e=ue(t,{labelable:!0}),r;return t.orientation==="vertical"&&(r="vertical"),t.elementType!=="hr"?{separatorProps:{...e,role:"separator","aria-orientation":r}}:{separatorProps:e}}const Jn=a.createContext({}),lo=class lo extends bt{filter(e,r){let n=r.getItem(this.prevKey);if(n&&n.type!=="separator"){let o=this.clone();return r.addDescendants(o,e),o}return null}};lo.type="separator";let Nn=lo;const $p=Ds(Nn,function(e,r){[e,r]=Oe(e,r,Jn);let{elementType:n,orientation:o,style:i,className:l,slot:s,...c}=e,u=n||"hr";u==="hr"&&o==="vertical"&&(u="div");let d=Ce[u],{separatorProps:f}=vp({...c,elementType:n,orientation:o}),m=ue(e,{global:!0});return a.createElement(d,{render:e.render,...X(m,f),style:i,className:l??"react-aria-Separator",ref:r,slot:s||void 0})}),Fs=a.createContext({});var Os={};Os={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var js={};js={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Bs={};Bs={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var _s={};_s={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Vs={};Vs={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var zs={};zs={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var Hs={};Hs={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Us={};Us={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var Ws={};Ws={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var Gs={};Gs={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var qs={};qs={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var Ys={};Ys={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var Xs={};Xs={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var Zs={};Zs={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var Js={};Js={longPressMessage:"Premi a lungo o premi Alt + Freccia giù per aprire il menu"};var Qs={};Qs={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var ea={};ea={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var ta={};ta={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var ra={};ra={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var na={};na={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var oa={};oa={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var ia={};ia={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var la={};la={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var sa={};sa={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var aa={};aa={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var ca={};ca={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var ua={};ua={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var da={};da={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var fa={};fa={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var pa={};pa={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var ha={};ha={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var ba={};ba={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var ma={};ma={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var ga={};ga={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var ya={};ya={"ar-AE":Os,"bg-BG":js,"cs-CZ":Bs,"da-DK":_s,"de-DE":Vs,"el-GR":zs,"en-US":Hs,"es-ES":Us,"et-EE":Ws,"fi-FI":Gs,"fr-FR":qs,"he-IL":Ys,"hr-HR":Xs,"hu-HU":Zs,"it-IT":Js,"ja-JP":Qs,"ko-KR":ea,"lt-LT":ta,"lv-LV":ra,"nb-NO":na,"nl-NL":oa,"pl-PL":ia,"pt-BR":la,"pt-PT":sa,"ro-RO":aa,"ru-RU":ca,"sk-SK":ua,"sl-SI":da,"sr-SP":fa,"sv-SE":pa,"tr-TR":ha,"uk-UA":ba,"zh-CN":ma,"zh-TW":ga};const xp=500;function va(t){let{isDisabled:e,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:i=xp,accessibilityDescription:l}=t;const s=a.useRef(void 0);let{addGlobalListener:c,removeGlobalListener:u}=Rr(),{pressProps:d}=Xe({isDisabled:e,onPressStart(m){if(m.continuePropagation(),(m.pointerType==="mouse"||m.pointerType==="touch")&&(r&&r({...m,type:"longpressstart"}),s.current=setTimeout(()=>{m.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Z(m.target).activeElement!==m.target&&de(m.target),o&&o({...m,type:"longpress"}),s.current=void 0},i),m.pointerType==="touch")){let h=y=>{y.preventDefault()},g=fe(m.target);c(m.target,"contextmenu",h,{once:!0}),c(g,"pointerup",()=>{setTimeout(()=>{u(m.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(m){s.current&&clearTimeout(s.current),n&&(m.pointerType==="mouse"||m.pointerType==="touch")&&n({...m,type:"longpressend"})}}),f=zc(o&&!e?l:void 0);return{longPressProps:X(d,f)}}function wp(t,e,r){let{type:n}=t,{isOpen:o}=e;a.useEffect(()=>{r&&r.current&&Ol.set(r.current,e.close)});let i;n==="menu"?i=!0:n==="listbox"&&(i="listbox");let l=ge();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?l:void 0,onPress:e.toggle},overlayProps:{id:l}}}function Ep(t){return t&&t.__esModule?t.default:t}function Sp(t,e,r){let{type:n="menu",isDisabled:o,trigger:i="press"}=t,l=ge(),{triggerProps:s,overlayProps:c}=wp({type:n},e,r),u=h=>{if(!o&&!(i==="longPress"&&!h.altKey)&&r&&r.current)switch(h.key){case"Enter":case" ":if(i==="longPress"||h.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),e.toggle("first");break;case"ArrowUp":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),e.toggle("last");break;default:"continuePropagation"in h&&h.continuePropagation()}},d=Es(Ep(ya),"@react-aria/menu"),{longPressProps:f}=va({isDisabled:o||i!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),m={preventFocusOnPress:!0,onPressStart(h){h.pointerType!=="touch"&&h.pointerType!=="keyboard"&&!o&&(de(h.target),e.open(h.pointerType==="virtual"?"first":null))},onPress(h){h.pointerType==="touch"&&!o&&(de(h.target),e.toggle())}};return delete s.onPress,{menuTriggerProps:{...s,...i==="press"?m:f,id:l,onKeyDown:u},menuProps:{...c,"aria-labelledby":l,autoFocus:e.focusStrategy||!0,onClose:e.close}}}const $a=new WeakMap;function Dn(t){return sc()?t.altKey:t.ctrlKey}function dr(t,e){var o,i;let r=`[data-key="${CSS.escape(String(e))}"]`,n=(o=t.current)==null?void 0:o.dataset.collection;return n&&(r=`[data-collection="${CSS.escape(n)}"]${r}`),(i=t.current)==null?void 0:i.querySelector(r)}const xa=new WeakMap;function Cp(t){let e=ge();return xa.set(t,e),e}function Pp(t){return xa.get(t)}const kp=1e3;function Tp(t){let{keyboardDelegate:e,selectionManager:r,onTypeSelect:n}=t,o=a.useRef({search:"",timeout:void 0}).current,i=l=>{let s=Mp(l.key);if(!(!s||l.ctrlKey||l.metaKey||!z(l.currentTarget,A(l))||o.search.length===0&&s===" ")){if(s===" "&&o.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),o.search+=s,e.getKeyForSearch!=null){let c=e.getKeyForSearch(o.search,r.focusedKey);c==null&&(c=e.getKeyForSearch(o.search)),c!=null&&(r.setFocusedKey(c),n&&n(c))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},kp)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?i:void 0}}}function Mp(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function Rp(t){let{selectionManager:e,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:l=!1,disallowSelectAll:s=!1,escapeKeyBehavior:c="clearSelection",selectOnFocus:u=e.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:m=!1,scrollRef:h=n,linkBehavior:g="action"}=t,{direction:y}=Ze(),v=_t(),E=p=>{var N,C,M,x,S,D,U,W,G,te,se,Y,pe,Te;if(p.altKey&&p.key==="Tab"&&p.preventDefault(),!n.current||!z(n.current,A(p)))return;const w=(_,ye)=>{if(_!=null){if(e.isLink(_)&&g==="selection"&&u&&!Dn(p)){jt.flushSync(()=>{e.setFocusedKey(_,ye)});let he=dr(n,_),He=e.getItemProps(_);he&&v.open(he,p,He.href,He.routerOptions);return}if(e.setFocusedKey(_,ye),e.isLink(_)&&g==="override")return;p.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(_):u&&!Dn(p)&&e.replaceSelection(_)}};switch(p.key){case"ArrowDown":if(r.getKeyBelow){let _=e.focusedKey!=null?(N=r.getKeyBelow)==null?void 0:N.call(r,e.focusedKey):(C=r.getFirstKey)==null?void 0:C.call(r);_==null&&i&&(_=(M=r.getFirstKey)==null?void 0:M.call(r,e.focusedKey)),_!=null&&(p.preventDefault(),w(_))}break;case"ArrowUp":if(r.getKeyAbove){let _=e.focusedKey!=null?(x=r.getKeyAbove)==null?void 0:x.call(r,e.focusedKey):(S=r.getLastKey)==null?void 0:S.call(r);_==null&&i&&(_=(D=r.getLastKey)==null?void 0:D.call(r,e.focusedKey)),_!=null&&(p.preventDefault(),w(_))}break;case"ArrowLeft":if(r.getKeyLeftOf){let _=e.focusedKey!=null?(U=r.getKeyLeftOf)==null?void 0:U.call(r,e.focusedKey):(W=r.getFirstKey)==null?void 0:W.call(r);_==null&&i&&(_=y==="rtl"?(G=r.getFirstKey)==null?void 0:G.call(r,e.focusedKey):(te=r.getLastKey)==null?void 0:te.call(r,e.focusedKey)),_!=null&&(p.preventDefault(),w(_,y==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){let _=e.focusedKey!=null?(se=r.getKeyRightOf)==null?void 0:se.call(r,e.focusedKey):(Y=r.getFirstKey)==null?void 0:Y.call(r);_==null&&i&&(_=y==="rtl"?(pe=r.getLastKey)==null?void 0:pe.call(r,e.focusedKey):(Te=r.getFirstKey)==null?void 0:Te.call(r,e.focusedKey)),_!=null&&(p.preventDefault(),w(_,y==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(e.focusedKey===null&&p.shiftKey)return;p.preventDefault();let _=r.getFirstKey(e.focusedKey,et(p));e.setFocusedKey(_),_!=null&&(et(p)&&p.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(_):u&&e.replaceSelection(_))}break;case"End":if(r.getLastKey){if(e.focusedKey===null&&p.shiftKey)return;p.preventDefault();let _=r.getLastKey(e.focusedKey,et(p));e.setFocusedKey(_),_!=null&&(et(p)&&p.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(_):u&&e.replaceSelection(_))}break;case"PageDown":if(r.getKeyPageBelow&&e.focusedKey!=null){let _=r.getKeyPageBelow(e.focusedKey);_!=null&&(p.preventDefault(),w(_))}break;case"PageUp":if(r.getKeyPageAbove&&e.focusedKey!=null){let _=r.getKeyPageAbove(e.focusedKey);_!=null&&(p.preventDefault(),w(_))}break;case"a":et(p)&&e.selectionMode==="multiple"&&s!==!0&&(p.preventDefault(),e.selectAll());break;case"Escape":c==="clearSelection"&&!l&&e.selectedKeys.size!==0&&(p.stopPropagation(),p.preventDefault(),e.clearSelection());break;case"Tab":if(!m){if(p.shiftKey)n.current.focus();else{let _=Le(n.current,{tabbable:!0}),ye,he;do he=_.lastChild(),he&&(ye=he);while(he);let He=ne();ye&&(!Nt(ye)||He&&!Qi(He))&&de(ye)}break}}},$=a.useRef({top:0,left:0});Et(h,"scroll",()=>{var p,w;$.current={top:((p=h.current)==null?void 0:p.scrollTop)??0,left:((w=h.current)==null?void 0:w.scrollLeft)??0}});let P=p=>{var w,N;if(e.isFocused){z(p.currentTarget,A(p))||e.setFocused(!1);return}if(z(p.currentTarget,A(p))){if(e.setFocused(!0),e.focusedKey==null){let C=x=>{x!=null&&(e.setFocusedKey(x),u&&!e.isSelected(x)&&e.replaceSelection(x))},M=p.relatedTarget;M&&p.currentTarget.compareDocumentPosition(M)&Node.DOCUMENT_POSITION_FOLLOWING?C(e.lastSelectedKey??((w=r.getLastKey)==null?void 0:w.call(r))):C(e.firstSelectedKey??((N=r.getFirstKey)==null?void 0:N.call(r)))}else h.current&&(h.current.scrollTop=$.current.top,h.current.scrollLeft=$.current.left);if(e.focusedKey!=null&&h.current){let C=dr(n,e.focusedKey);C instanceof HTMLElement&&(!Nt(C)&&!f&&de(C),Kt()==="keyboard"&&xo(C,{containingElement:n.current}))}}},k=p=>{z(p.currentTarget,p.relatedTarget)||e.setFocused(!1)},L=a.useRef(!1);Et(n,ic,f?p=>{let{detail:w}=p;p.stopPropagation(),e.setFocused(!0),(w==null?void 0:w.focusStrategy)==="first"&&(L.current=!0)}:void 0),$o(()=>{var p;if(L.current){let w=((p=r.getFirstKey)==null?void 0:p.call(r))??null;if(w==null){let N=ne();Ks(n.current),As(N,null),e.collection.size>0&&(L.current=!1)}else e.setFocusedKey(w),L.current=!1}},[e.collection]),$o(()=>{e.collection.size>0&&(L.current=!1)},[e.focusedKey]),Et(n,oc,f?p=>{var w;p.stopPropagation(),e.setFocused(!1),(w=p.detail)!=null&&w.clearFocusKey&&e.setFocusedKey(null)}:void 0);const j=a.useRef(o),T=a.useRef(!1);a.useEffect(()=>{var p,w;if(j.current){let N=null;o==="first"&&(N=((p=r.getFirstKey)==null?void 0:p.call(r))??null),o==="last"&&(N=((w=r.getLastKey)==null?void 0:w.call(r))??null);let C=e.selectedKeys;if(C.size){for(let M of C)if(e.canSelectItem(M)){N=M;break}}e.setFocused(!0),e.setFocusedKey(N),N==null&&!f&&n.current&&ct(n.current),e.collection.size>0&&(j.current=!1,T.current=!0)}});let R=a.useRef(e.focusedKey),I=a.useRef(null);a.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==R.current||T.current)&&h.current&&n.current){let p=Kt(),w=dr(n,e.focusedKey);if(!(w instanceof HTMLElement))return;(p==="keyboard"||T.current)&&(I.current&&cancelAnimationFrame(I.current),I.current=requestAnimationFrame(()=>{h.current&&(ar(h.current,w),p!=="virtual"&&xo(w,{containingElement:n.current}))}))}!f&&e.isFocused&&e.focusedKey==null&&R.current!=null&&n.current&&ct(n.current),R.current=e.focusedKey,T.current=!1}),a.useEffect(()=>()=>{I.current&&cancelAnimationFrame(I.current)},[]),Et(n,"react-aria-focus-scope-restore",p=>{p.preventDefault(),e.setFocused(!0)});let K={onKeyDown:E,onFocus:P,onBlur:k,onMouseDown(p){h.current===A(p)&&p.preventDefault()}},{typeSelectProps:V}=Tp({keyboardDelegate:r,selectionManager:e});d||(K=X(V,K));let H;f||(H=e.focusedKey==null?0:-1);let B=Cp(e.collection);return{collectionProps:X(K,{tabIndex:H,"data-collection":B})}}class gi{constructor(e){this.ref=e}getItemRect(e){let r=this.ref.current;if(!r)return null;let n=e!=null?dr(this.ref,e):null;if(!n)return null;let o=r.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-o.left-r.clientLeft+r.scrollLeft,y:i.top-o.top-r.clientTop+r.scrollTop,width:i.width,height:i.height}}getContentSize(){let e=this.ref.current;return{width:(e==null?void 0:e.scrollWidth)??0,height:(e==null?void 0:e.scrollHeight)??0}}getVisibleRect(){let e=this.ref.current;return{x:(e==null?void 0:e.scrollLeft)??0,y:(e==null?void 0:e.scrollTop)??0,width:(e==null?void 0:e.clientWidth)??0,height:(e==null?void 0:e.clientHeight)??0}}}class Np{constructor(...e){if(e.length===1){let r=e[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.disabledBehavior=r.disabledBehavior||"all",this.orientation=r.orientation||"vertical",this.direction=r.direction,this.layout=r.layout||"stack",this.layoutDelegate=r.layoutDelegate||new gi(r.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new gi(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}isDisabled(e){var r,n;return this.disabledBehavior==="all"&&(((r=e.props)==null?void 0:r.isDisabled)||this.disabledKeys.has(e.key))&&((n=e.props)==null?void 0:n.disabledBehavior)!=="selection"}findNextNonDisabled(e,r,n=!1){let o=e;for(;o!=null;){let i=this.collection.getItem(o);if((i==null?void 0:i.type)==="item"&&(n||!this.isDisabled(i)))return o;o=r(o)}return null}getNextKey(e,r){let n=e;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,o=>this.collection.getKeyAfter(o),r==null?void 0:r.includeDisabled)}getPreviousKey(e,r){let n=e;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,o=>this.collection.getKeyBefore(o),r==null?void 0:r.includeDisabled)}findKey(e,r,n){let o=e,i=this.layoutDelegate.getItemRect(o);if(!i||o==null)return null;let l=i;do{if(o=r(o),o==null)break;i=this.layoutDelegate.getItemRect(o)}while(i&&n(l,i)&&o!=null);return o}isSameRow(e,r){return e.y===r.y||e.x!==r.x}isSameColumn(e,r){return e.x===r.x||e.y!==r.y}getKeyBelow(e,r){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getNextKey(n,r),this.isSameRow):this.getNextKey(e,r)}getKeyAbove(e,r){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getPreviousKey(n,r),this.isSameRow):this.getPreviousKey(e,r)}getNextColumn(e,r,n){return r?this.getPreviousKey(e,n):this.getNextKey(e,n)}getKeyRightOf(e,r){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,o=>this.layoutDelegate[n](o),r==null?void 0:r.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl",r):this.findKey(e,o=>this.getNextColumn(o,this.direction==="rtl",r),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl",r):null}getKeyLeftOf(e,r){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,o=>this.layoutDelegate[n](o),r==null?void 0:r.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr",r):this.findKey(e,o=>this.getNextColumn(o,this.direction==="ltr",r),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr",r):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,r=>this.collection.getKeyAfter(r))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,r=>this.collection.getKeyBefore(r))}getKeyPageAbove(e){let r=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(r&&!at(r))return this.getFirstKey();let o=e;if(this.orientation==="horizontal"){let i=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>i&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>i&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getFirstKey()}getKeyPageBelow(e){let r=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(r&&!at(r))return this.getLastKey();let o=e;if(this.orientation==="horizontal"){let i=Math.min(this.layoutDelegate.getContentSize().width,n.x-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<i&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<i&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getLastKey()}getKeyForSearch(e,r){if(!this.collator)return null;let n=this.collection,o=r||this.getFirstKey();for(;o!=null;){let i=n.getItem(o);if(!i)return null;let l=i.textValue.slice(0,e.length);if(i.textValue&&this.collator.compare(l,e)===0)return o;o=this.getNextKey(o)}return null}}let ln=new Map;function Dp(t){let{locale:e}=Ze(),r=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(ln.has(r))return ln.get(r);let n=new Intl.Collator(e,t);return ln.set(r,n),n}function Lp(t){let{selectionManager:e,collection:r,disabledKeys:n,ref:o,keyboardDelegate:i,layoutDelegate:l,orientation:s}=t,c=Dp({usage:"search",sensitivity:"base"}),u=e.disabledBehavior,d=a.useMemo(()=>i||new Np({collection:r,disabledKeys:n,disabledBehavior:u,ref:o,collator:c,layoutDelegate:l,orientation:s}),[i,l,r,n,o,c,u,s]),{collectionProps:f}=Rp({...t,ref:o,selectionManager:e,keyboardDelegate:d});return{listProps:f}}function Ip(t,e,r){let{shouldFocusWrap:n=!0,onKeyDown:o,onKeyUp:i,...l}=t;!t["aria-label"]&&!t["aria-labelledby"]&&process.env.NODE_ENV!=="production"&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let s=ue(t,{labelable:!0}),{listProps:c}=Lp({...l,ref:r,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:n,linkBehavior:"override"});return $a.set(e,{onClose:t.onClose,onAction:t.onAction,shouldUseVirtualFocus:t.shouldUseVirtualFocus}),{menuProps:X(s,{onKeyDown:o,onKeyUp:i},{role:"menu",...c,onKeyDown:u=>{var d;(u.key!=="Escape"||t.shouldUseVirtualFocus)&&((d=c.onKeyDown)==null||d.call(c,u))}})}}function Kp(t){let{id:e,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:l,focus:s,isDisabled:c,onAction:u,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=t,m=_t();e=ge(e);let h=S=>{if(S.pointerType==="keyboard"&&Dn(S))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(f==="selection"&&o.current){let D=r.getItemProps(n);m.open(o.current,S,D.href,D.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(f==="override"||f==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):S&&S.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||S&&(et(S)||S.pointerType==="touch"||S.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};a.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(l?Ks(o.current):s?s():ne()!==o.current&&o.current&&ct(o.current))},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,l]),c=c||r.isDisabled(n);let g={};!l&&!c?g={tabIndex:n===r.focusedKey?0:-1,onFocus(S){A(S)===o.current&&r.setFocusedKey(n)}}:c&&(g.onMouseDown=S=>{S.preventDefault()}),a.useEffect(()=>{c&&r.focusedKey===n&&r.setFocusedKey(null)},[r,c,n]);let y=r.isLink(n)&&f==="override",v=u&&t.UNSTABLE_itemBehavior==="action",E=r.isLink(n)&&f!=="selection"&&f!=="none",$=!c&&r.canSelectItem(n)&&!y&&!v,P=(u||E)&&!c,k=P&&(r.selectionBehavior==="replace"?!$:!$||r.isEmpty),L=P&&$&&r.selectionBehavior==="replace",j=k||L,T=a.useRef(null),R=j&&$,I=a.useRef(!1),K=a.useRef(!1),V=r.getItemProps(n),H=S=>{var D;u&&(u(),(D=o.current)==null||D.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))),E&&o.current&&m.open(o.current,S,V.href,V.routerOptions)},B={ref:o};if(i?(B.onPressStart=S=>{T.current=S.pointerType,I.current=R,S.pointerType==="keyboard"&&(!j||vi(S.key))&&h(S)},d?(B.onPressUp=k?void 0:S=>{S.pointerType==="mouse"&&$&&h(S)},B.onPress=k?H:S=>{S.pointerType!=="keyboard"&&S.pointerType!=="mouse"&&$&&h(S)}):B.onPress=S=>{if(k||L&&S.pointerType!=="mouse"){if(S.pointerType==="keyboard"&&!yi(S.key))return;H(S)}else S.pointerType!=="keyboard"&&$&&h(S)}):(B.onPressStart=S=>{T.current=S.pointerType,I.current=R,K.current=k,$&&(S.pointerType==="mouse"&&!k||S.pointerType==="keyboard"&&(!P||vi(S.key)))&&h(S)},B.onPress=S=>{(S.pointerType==="touch"||S.pointerType==="pen"||S.pointerType==="virtual"||S.pointerType==="keyboard"&&j&&yi(S.key)||S.pointerType==="mouse"&&K.current)&&(j?H(S):$&&h(S))}),g["data-collection"]=Pp(r.collection),g["data-key"]=n,B.preventFocusOnPress=l,l&&(B=X(B,{onPressStart(S){S.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(S){S.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),V)for(let S of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])V[S]&&(B[S]=Vt(B[S],V[S]));let{pressProps:p,isPressed:w}=Xe(B),N=L?S=>{T.current==="mouse"&&(S.stopPropagation(),S.preventDefault(),H(S))}:void 0,{longPressProps:C}=va({isDisabled:!R,onLongPress(S){S.pointerType==="touch"&&(h(S),r.setSelectionBehavior("toggle"))}}),M=S=>{T.current==="touch"&&I.current&&S.preventDefault()},x=f!=="none"&&r.isLink(n)?S=>{Ie.isOpening||S.preventDefault()}:void 0;return{itemProps:X(g,$||k||l&&!c?p:{},R?C:{},{onDoubleClick:N,onDragStartCapture:M,onClick:x,id:e},l?{onMouseDown:S=>S.preventDefault()}:void 0),isPressed:w,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:c,allowsSelection:$,hasAction:j}}function yi(t){return t==="Enter"}function vi(t){return t===" "}function Ap(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}const $i=new WeakMap;function Fp(t){let e=$i.get(t);if(e!=null)return e;let r=0,n=o=>{for(let i of o)i.type==="section"?n(Ap(i,t)):i.type==="item"&&r++};return n(t),$i.set(t,r),r}function Op(t,e,r){let{id:n,key:o,closeOnSelect:i,shouldCloseOnSelect:l,isVirtualized:s,"aria-haspopup":c,onPressStart:u,onPressUp:d,onPress:f,onPressChange:m,onPressEnd:h,onClick:g,onHoverStart:y,onHoverChange:v,onHoverEnd:E,onKeyDown:$,onKeyUp:P,onFocus:k,onFocusChange:L,onBlur:j,selectionManager:T=e.selectionManager}=t,R=!!c,I=R&&t["aria-expanded"]==="true",K=t.isDisabled??T.isDisabled(o),V=t.isSelected??T.isSelected(o),H=$a.get(e),B=e.collection.getItem(o),p=t.onClose||H.onClose,w=_t(),N=()=>{var Q;if(!R&&((Q=B==null?void 0:B.props)!=null&&Q.onAction?B.props.onAction():t.onAction&&t.onAction(o),H.onAction)){let gt=H.onAction;gt(o)}},C="menuitem";R||(T.selectionMode==="single"?C="menuitemradio":T.selectionMode==="multiple"&&(C="menuitemcheckbox"));let M=Hr(),x=Hr(),S=Hr(),D={id:n,"aria-disabled":K||void 0,role:C,"aria-label":t["aria-label"],"aria-labelledby":M,"aria-describedby":[t["aria-describedby"],x,S].filter(Boolean).join(" ")||void 0,"aria-controls":t["aria-controls"],"aria-haspopup":c,"aria-expanded":t["aria-expanded"]};if(T.selectionMode!=="none"&&!R&&(D["aria-checked"]=V),s){let Q=Number(B==null?void 0:B.index);D["aria-posinset"]=Number.isNaN(Q)?void 0:Q+1,D["aria-setsize"]=Fp(e.collection)}let U=a.useRef(!1),W=Q=>{m==null||m(Q),U.current=Q},G=a.useRef(null),te=Q=>{Q.pointerType!=="keyboard"&&(G.current={pointerType:Q.pointerType}),Q.pointerType==="mouse"&&(U.current||Q.target.click()),d==null||d(Q)},se=Q=>{var co,uo;g==null||g(Q),N(),Hi(Q,w,B.props.href,B==null?void 0:B.props.routerOptions);let gt=((co=G.current)==null?void 0:co.pointerType)==="keyboard"?((uo=G.current)==null?void 0:uo.key)==="Enter"||T.selectionMode==="none"||T.isLink(o):T.selectionMode!=="multiple"||T.isLink(o);gt=l??i??gt,p&&!R&>&&p(),G.current=null},{itemProps:Y,isFocused:pe}=Kp({id:n,selectionManager:T,key:o,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:H.shouldUseVirtualFocus}),{pressProps:Te,isPressed:_}=Xe({onPressStart:u,onPress:f,onPressUp:te,onPressChange:W,onPressEnd:h,isDisabled:K}),{hoverProps:ye}=Wt({isDisabled:K,onHoverStart(Q){!It()&&!(I&&c)&&(T.setFocused(!0),T.setFocusedKey(o)),y==null||y(Q)},onHoverChange:v,onHoverEnd:E}),{keyboardProps:he}=Il({onKeyDown:Q=>{if(Q.repeat){Q.continuePropagation();return}switch(Q.key){case" ":G.current={pointerType:"keyboard",key:" "},A(Q).click(),$n("keyboard");break;case"Enter":G.current={pointerType:"keyboard",key:"Enter"},A(Q).tagName!=="A"&&A(Q).click(),$n("keyboard");break;default:R||Q.continuePropagation(),$==null||$(Q);break}},onKeyUp:P}),{focusableProps:He}=Dr({onBlur:j,onFocus:k,onFocusChange:L},r),ao=ue(B==null?void 0:B.props);delete ao.id;let Xa=zi(B==null?void 0:B.props);return{menuItemProps:{...D,...X(ao,Xa,R?{onFocus:Y.onFocus,"data-collection":Y["data-collection"],"data-key":Y["data-key"]}:Y,Te,ye,he,He,H.shouldUseVirtualFocus||R?{onMouseDown:Q=>Q.preventDefault()}:void 0,K?void 0:{onClick:se}),tabIndex:Y.tabIndex!=null&&I&&!H.shouldUseVirtualFocus?-1:Y.tabIndex},labelProps:{id:M},descriptionProps:{id:x},keyboardShortcutProps:{id:S},isFocused:pe,isFocusVisible:pe&&T.isFocused&&It()&&!I,isSelected:V,isPressed:_,isDisabled:K}}function jp(t){let{heading:e,"aria-label":r}=t,n=ge();return{itemProps:{role:"presentation"},headingProps:e?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":e?n:void 0}}}const ir=2,Bp=50,_p=1e3,xi=Math.PI/12;function Vp(t){let{menuRef:e,submenuRef:r,isOpen:n,isDisabled:o}=t,i=a.useRef(void 0),l=a.useRef(void 0),s=a.useRef(0),c=a.useRef(void 0),u=a.useRef(void 0),d=a.useRef(void 0),f=a.useRef(2),[m,h]=a.useState(!1);hr({ref:n?r:void 0,onResize:()=>{r.current&&(l.current=r.current.getBoundingClientRect(),d.current=void 0)}});let y=()=>{h(!1),f.current=ir,i.current=void 0},v=Rd(),E=xe($=>{m&&$.preventDefault()});a.useEffect(()=>{m&&e.current?e.current.style.pointerEvents="none":e.current.style.pointerEvents=""},[e,m]),J(()=>{let $=r.current,P=e.current;if(o||!$||!n||v!=="pointer"||!P){y();return}l.current=$.getBoundingClientRect();let k=L=>{if(L.pointerType==="touch"||L.pointerType==="pen")return;let j=Date.now();if(j-s.current<Bp)return;clearTimeout(c.current),clearTimeout(u.current);let{clientX:T,clientY:R}=L;if(!i.current){i.current={x:T,y:R};return}if(!l.current)return;if(d.current||(d.current=T>l.current.right?"left":"right"),T<P.getBoundingClientRect().left||T>P.getBoundingClientRect().right||R<P.getBoundingClientRect().top||R>P.getBoundingClientRect().bottom){y();return}let I=i.current.x,K=i.current.y,V=d.current==="right"?l.current.left-I:I-l.current.right,H=Math.atan2(K-l.current.top,V)+xi,B=Math.atan2(K-l.current.bottom,V)-xi,p=Math.atan2(K-R,d.current==="left"?-(T-I):T-I),w=p<H&&p>B;f.current=w?Math.min(f.current+1,ir):Math.max(f.current-1,0),f.current>=ir?h(!0):h(!1),s.current=j,i.current={x:T,y:R},w&&(c.current=setTimeout(()=>{y(),u.current=setTimeout(()=>{let N=document.elementFromPoint(T,R);N&&z(P,N)&&N.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},_p))};return window.addEventListener("pointermove",k),process.env.NODE_ENV!=="test"&&window.addEventListener("pointerdown",E,!0),()=>{window.removeEventListener("pointermove",k),process.env.NODE_ENV!=="test"&&window.removeEventListener("pointerdown",E,!0),clearTimeout(c.current),clearTimeout(u.current),f.current=ir}},[o,n,e,v,h,r])}function zp(t,e,r){let{parentMenuRef:n,submenuRef:o,type:i="menu",isDisabled:l,delay:s=200,shouldUseVirtualFocus:c}=t,u=ge(),d=ge(),{direction:f}=Ze(),m=a.useRef(void 0),h=a.useCallback(()=>{m.current&&(clearTimeout(m.current),m.current=void 0)},[m]),g=a.useCallback(T=>{h(),e.open(T)},[e,h]),y=a.useCallback(()=>{h(),e.close()},[e,h]);J(()=>()=>{h()},[h]);let v=T=>{if(Nt(T.currentTarget))switch(T.key){case"ArrowLeft":f==="ltr"&&z(T.currentTarget,A(T))&&(T.preventDefault(),T.stopPropagation(),y(),!c&&r.current&&de(r.current));break;case"ArrowRight":f==="rtl"&&z(T.currentTarget,A(T))&&(T.preventDefault(),T.stopPropagation(),y(),!c&&r.current&&de(r.current));break;case"Escape":z(o.current,A(T))&&(T.stopPropagation(),y(),!c&&r.current&&de(r.current));break}},E={id:d,"aria-labelledby":u,submenuLevel:e.submenuLevel,...i==="menu"&&{onClose:e.closeAll,autoFocus:e.focusStrategy??void 0,onKeyDown:v}},$=T=>{switch(T.key){case"ArrowRight":l||(f==="ltr"?(T.preventDefault(),e.isOpen||g("first"),i==="menu"&&(o!=null&&o.current)&&ne()===(r==null?void 0:r.current)&&de(o.current)):e.isOpen?y():T.continuePropagation());break;case"ArrowLeft":l||(f==="rtl"?(T.preventDefault(),e.isOpen||g("first"),i==="menu"&&(o!=null&&o.current)&&ne()===(r==null?void 0:r.current)&&de(o.current)):e.isOpen?y():T.continuePropagation());break;default:T.continuePropagation();break}},P=T=>{!l&&(T.pointerType==="virtual"||T.pointerType==="keyboard")&&g("first")},k=T=>{!l&&(T.pointerType==="touch"||T.pointerType==="mouse")&&g()},L=T=>{l||(T&&!e.isOpen?m.current||(m.current=setTimeout(()=>{g()},s)):T||h())};Et(n,"focusin",T=>{e.isOpen&&z(n.current,A(T))&&A(T)!==r.current&&y()});let j=T=>T!==r.current;return Vp({menuRef:n,submenuRef:o,isOpen:e.isOpen,isDisabled:l}),{submenuTriggerProps:{id:u,"aria-controls":e.isOpen?d:void 0,"aria-haspopup":l?void 0:i,"aria-expanded":e.isOpen?"true":"false",onPressStart:P,onPress:k,onHoverChange:L,onKeyDown:$,isOpen:e.isOpen},submenuProps:E,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:j}}}function wa(t){let e=Cs(t),[r,n]=a.useState(null),[o,i]=a.useState([]),l=()=>{i([]),e.close()};return{focusStrategy:r,...e,open(u=null){n(u),e.open()},toggle(u=null){n(u),e.toggle()},close(){l()},expandedKeysStack:o,openSubmenu:(u,d)=>{i(f=>d>f.length?f:[...f.slice(0,d),u])},closeSubmenu:(u,d)=>{i(f=>f[d]===u?f.slice(0,d):f)}}}function Hp(t,e){let{triggerKey:r}=t,{expandedKeysStack:n,openSubmenu:o,closeSubmenu:i,close:l}=e,[s]=a.useState(n==null?void 0:n.length),c=a.useMemo(()=>n[s]===r,[n,r,s]),[u,d]=a.useState(null),f=a.useCallback(g=>{d(g??null),o(r,s)},[o,s,r]),m=a.useCallback(()=>{d(null),i(r,s)},[i,s,r]),h=a.useCallback(g=>{d(g??null),c?m():f(g)},[m,f,c]);return a.useMemo(()=>({focusStrategy:u,isOpen:c,open:f,close:m,closeAll:l,submenuLevel:s,setOpen:()=>{},toggle:h}),[c,f,m,l,u,h,s])}function Up(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function Wp(t){return Gp(t)}function Gp(t,e){for(let r of t)return r}function sn(t,e,r){if(e.parentKey===r.parentKey)return e.index-r.index;let n=[...wi(t,e),e],o=[...wi(t,r),r],i=n.slice(0,o.length).findIndex((l,s)=>l!==o[s]);return i!==-1?(e=n[i],r=o[i],e.index-r.index):n.findIndex(l=>l===r)>=0?1:(o.findIndex(l=>l===e)>=0,-1)}function wi(t,e){let r=[],n=e;for(;(n==null?void 0:n.parentKey)!=null;)n=t.getItem(n.parentKey),n&&r.unshift(n);return r}class Se extends Set{constructor(e,r,n){super(e),e instanceof Se?(this.anchorKey=r??e.anchorKey,this.currentKey=n??e.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}}class Fr{constructor(e,r,n){this.collection=e,this.state=r,this.allowsCellSelection=(n==null?void 0:n.allowsCellSelection)??!1,this._isSelectAll=null,this.layoutDelegate=(n==null?void 0:n.layoutDelegate)||null,this.fullCollection=(n==null?void 0:n.fullCollection)||null}get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,r){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let r=this.getKey(e);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=e.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let n=this.collection.getItem(r);(!e||n&&sn(this.collection,n,e)<0)&&(e=n)}return(e==null?void 0:e.key)??null}get lastSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let n=this.collection.getItem(r);(!e||n&&sn(this.collection,n,e)>0)&&(e=n)}return(e==null?void 0:e.key)??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let r=this.getKey(e);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new Se([r],r,r);else{let o=this.state.selectedKeys,i=o.anchorKey??r;n=new Se(o,i,r);for(let l of this.getKeyRange(i,o.currentKey??r))n.delete(l);for(let l of this.getKeyRange(r,i))this.canSelectItem(l)&&n.add(l)}this.state.setSelectedKeys(n)}getKeyRange(e,r){let n=this.collection.getItem(e),o=this.collection.getItem(r);return n&&o?sn(this.collection,n,o)<=0?this.getKeyRangeInternal(e,r):this.getKeyRangeInternal(r,e):[]}getKeyRangeInternal(e,r){var i;if((i=this.layoutDelegate)!=null&&i.getKeyRange)return this.layoutDelegate.getKeyRange(e,r);let n=[],o=e;for(;o!=null;){let l=this.collection.getItem(o);if(l&&(l.type==="item"||l.type==="cell"&&this.allowsCellSelection)&&n.push(o),o===r)return n;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let r=this.collection.getItem(e);if(!r||r.type==="cell"&&this.allowsCellSelection)return e;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let r=this.getKey(e);if(r==null)return;let n=new Se(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode==="none")return;let r=this.getKey(e);if(r==null)return;let n=this.canSelectItem(r)?new Se([r],r,r):new Se;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode==="none")return;let r=new Se;for(let n of e){let o=this.getKey(n);if(o!=null&&(r.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let e=this.fullCollection??this.collection,r=[],n=o=>{var i;for(;o!=null;){if(this.canSelectItemIn(o,e)){let l=e.getItem(o);(l==null?void 0:l.type)==="item"&&r.push(o),l!=null&&l.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&n(((i=Wp(Up(l,e)))==null?void 0:i.key)??null)}o=e.getKeyAfter(o)}};return n(e.getFirstKey()),r}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Se)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(e.size!==r.size)return!1;for(let n of e)if(!r.has(n))return!1;for(let n of r)if(!e.has(n))return!1;return!0}canSelectItem(e){return this.canSelectItemIn(e,this.collection)}canSelectItemIn(e,r){var o;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let n=r.getItem(e);return!(!n||(o=n==null?void 0:n.props)!=null&&o.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n,o;let r=this.collection.getItem(e);return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!((n=r==null?void 0:r.props)!=null&&n.isDisabled))&&((o=r==null?void 0:r.props)==null?void 0:o.disabledBehavior)!=="selection"}isLink(e){var r,n;return!!((n=(r=this.collection.getItem(e))==null?void 0:r.props)!=null&&n.href)}getItemProps(e){var r;return(r=this.collection.getItem(e))==null?void 0:r.props}withCollection(e){return new Fr(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0,fullCollection:this.fullCollection??this.collection})}}class qp{constructor(e,{expandedKeys:r}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,r=r||new Set;let n=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&(l.type==="section"||r.has(l.key)))for(let s of l.childNodes)n(s)};for(let l of e)n(l);let o=null,i=0;for(let[l,s]of this.keyMap)o?(o.nextKey=l,s.prevKey=o.key):(this.firstKey=l,s.prevKey=void 0),s.type==="item"&&(s.index=i++),o=s,o.nextKey=void 0;this.lastKey=(o==null?void 0:o.key)??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let r=this.keyMap.get(e);return r?r.prevKey??null:null}getKeyAfter(e){let r=this.keyMap.get(e);return r?r.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){const r=[...this.getKeys()];return this.getItem(r[e])}}class Yp{build(e,r){return this.context=r,Ei(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:r,items:n}=e;if(a.isValidElement(r)&&r.type===a.Fragment)yield*this.iterateCollection({children:r.props.children,items:n});else if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");let o=0;for(let i of n)yield*this.getFullNode({value:i,index:o},{renderer:r}),o++}else{let o=[];a.Children.forEach(r,l=>{l&&o.push(l)});let i=0;for(let l of o){let s=this.getFullNode({element:l,index:i},{});for(let c of s)i++,yield c}}}getKey(e,r,n,o){if(e.key!=null)return e.key;if(r.type==="cell"&&r.key!=null)return`${o}${r.key}`;let i=r.value;if(i!=null){let l=i.key??i.id;if(l==null)throw new Error("No key found for item");return l}return o?`${o}.${r.index}`:`$.${r.index}`}getChildState(e,r){return{renderer:r.renderer||e.renderer}}*getFullNode(e,r,n,o){if(a.isValidElement(e.element)&&e.element.type===a.Fragment){let c=[];a.Children.forEach(e.element.props.children,d=>{c.push(d)});let u=e.index??0;for(const d of c)yield*this.getFullNode({element:d,index:u++},r,n,o);return}let i=e.element;if(!i&&e.value&&r&&r.renderer){let c=this.cache.get(e.value);if(c&&(!c.shouldInvalidate||!c.shouldInvalidate(this.context))){c.index=e.index,c.parentKey=o?o.key:null,yield c;return}i=r.renderer(e.value)}if(a.isValidElement(i)){let c=i.type;if(typeof c!="function"&&typeof c.getCollectionNode!="function"){let m=i.type;throw new Error(`Unknown element <${m}> in collection.`)}let u=c.getCollectionNode(i.props,this.context),d=e.index??0,f=u.next();for(;!f.done&&f.value;){let m=f.value;e.index=d;let h=m.key??null;h==null&&(h=m.element?null:this.getKey(i,e,r,n));let y=[...this.getFullNode({...m,key:h,index:d,wrapper:Xp(e.wrapper,m.wrapper)},this.getChildState(r,m),n?`${n}${i.key}`:i.key,o)];for(let v of y){if(v.value=m.value??e.value??null,v.value&&this.cache.set(v.value,v),e.type&&v.type!==e.type)throw new Error(`Unsupported type <${an(v.type)}> in <${an((o==null?void 0:o.type)??"unknown parent type")}>. Only <${an(e.type)}> is supported.`);d++,yield v}f=u.next(y)}return}if(e.key==null||e.type==null)return;let l=this,s={type:e.type,props:e.props,key:e.key,parentKey:o?o.key:null,value:e.value??null,level:((o==null?void 0:o.level)??0)+((o==null?void 0:o.type)==="item"?1:0),index:e.index,rendered:e.rendered,textValue:e.textValue??"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:Ei(function*(){if(!e.hasChildNodes||!e.childNodes)return;let c=0;for(let u of e.childNodes()){u.key!=null&&(u.key=`${s.key}${u.key}`);let d=l.getFullNode({...u,index:c},l.getChildState(r,u),s.key,s);for(let f of d)c++,yield f}})};yield s}constructor(){this.cache=new WeakMap}}function Ei(t){let e=[],r=null;return{*[Symbol.iterator](){for(let n of e)yield n;r||(r=t());for(let n of r)e.push(n),yield n}}}function Xp(t,e){if(t&&e)return r=>t(e(r));if(t)return t;if(e)return e}function an(t){return t[0].toUpperCase()+t.slice(1)}function Zp(t,e,r){let n=a.useMemo(()=>new Yp,[]),{children:o,items:i,collection:l}=t;return a.useMemo(()=>{if(l)return l;let c=n.build({children:o,items:i},r);return e(c)},[n,o,i,l,r,e])}function Jp(t,e){if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;return!0}function Ea(t){let{selectionMode:e="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:i="all"}=t,l=a.useRef(!1),[,s]=a.useState(!1),c=a.useRef(null),u=a.useRef(null),[,d]=a.useState(null),f=a.useMemo(()=>Si(t.selectedKeys),[t.selectedKeys]),m=a.useMemo(()=>Si(t.defaultSelectedKeys,new Se),[t.defaultSelectedKeys]),[h,g]=Lr(f,m,t.onSelectionChange),y=a.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[v,E]=a.useState(o);o==="replace"&&v==="toggle"&&typeof h=="object"&&h.size===0&&E("replace");let $=a.useRef(o);return a.useEffect(()=>{o!==$.current&&(E(o),$.current=o)},[o]),{selectionMode:e,disallowEmptySelection:r,selectionBehavior:v,setSelectionBehavior:E,get isFocused(){return l.current},setFocused(P){l.current=P,s(P)},get focusedKey(){return c.current},get childFocusStrategy(){return u.current},setFocusedKey(P,k="first"){c.current=P,u.current=k,d(P)},selectedKeys:h,setSelectedKeys(P){(n||!Jp(P,h))&&g(P)},disabledKeys:y,disabledBehavior:i}}function Si(t,e){return t?t==="all"?"all":new Se(t):e}function Qp(t){let{onExpandedChange:e}=t,[r,n]=Lr(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,e),o=Ea(t),i=a.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),l=Zp(t,a.useCallback(c=>new qp(c,{expandedKeys:r}),[r]),null);return a.useEffect(()=>{o.focusedKey!=null&&!l.getItem(o.focusedKey)&&o.setFocusedKey(null)},[l,o.focusedKey]),{collection:l,expandedKeys:r,disabledKeys:i,toggleKey:c=>{n(eh(r,c))},setExpandedKeys:n,selectionManager:new Fr(l,o)}}function eh(t,e){let r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r}const Qn=a.createContext(null),Or=a.createContext(null),Cr=a.createContext(null),Pr=a.createContext(null);function th(t){let e=wa(t),r=a.useRef(null),{menuTriggerProps:n,menuProps:o}=Sp({...t,type:"menu"},e,r),i=a.useRef(null);return xl()?null:a.createElement(ht,{values:[[Qn,{...o,ref:i}],[eo,e],[Cr,e],[Zn,{trigger:"MenuTrigger",triggerRef:r,scrollRef:i,placement:"bottom start","aria-labelledby":o["aria-labelledby"]}]]},a.createElement(jf,{...n,ref:r,isPressed:e.isOpen},t.children))}const Sa=a.createContext(null),so=class so extends bt{filter(e,r,n){let o=e.getItem(this.firstChildKey);if(o&&n(o.textValue,this)){let i=this.clone();return r.addDescendants(i,e),i}return null}};so.type="submenutrigger";let Ln=so;const rh=Ls(Ln,(t,e,r)=>{let{CollectionBranch:n}=a.useContext(Ar),o=a.useContext(Or),i=a.useContext(Cr),l=Hp({triggerKey:r.key},i),s=a.useRef(null),c=Ht(e),{parentMenuRef:u,shouldUseVirtualFocus:d}=a.useContext(Sa),{submenuTriggerProps:f,submenuProps:m,popoverProps:h}=zp({parentMenuRef:u,submenuRef:s,delay:t.delay,shouldUseVirtualFocus:d},l,c);return a.createElement(ht,{values:[[ut,{...f,onAction:void 0,ref:c}],[Qn,{ref:s,...m}],[eo,l],[Zn,{trigger:"SubmenuTrigger",triggerRef:c,placement:"end top","aria-labelledby":m["aria-labelledby"],...h}]]},a.createElement(n,{collection:o.collection,parent:r}),t.children[1])},t=>t.children[0]),nh=a.forwardRef(function(e,r){return[e,r]=Oe(e,r,Qn),a.createElement(Qf,{content:a.createElement(ip,e)},n=>a.createElement(oh,{props:e,collection:n,menuRef:r}))});function oh({props:t,collection:e,menuRef:r}){[t,r]=Oe(t,r,mi);let{filter:n,...o}=t,i=a.useMemo(()=>n?e.filter(n):e,[e,n]),l=Qp({...t,collection:i,children:void 0}),s=a.useContext(Cr),{isVirtualized:c,CollectionRoot:u}=a.useContext(Ar),{menuProps:d}=Ip({...t,isVirtualized:c,onClose:t.onClose||(s==null?void 0:s.close)},l,r),f=Fe({...t,children:void 0,defaultClassName:"react-aria-Menu",values:{isEmpty:l.collection.size===0}}),m=null;l.collection.size===0&&t.renderEmptyState&&(m=a.createElement("div",{role:"menuitem",style:{display:"contents"}},t.renderEmptyState()));let h=ue(t,{global:!0});return a.createElement(jl,null,a.createElement(Ce.div,{...X(h,f,d),ref:r,slot:t.slot||void 0,"data-empty":l.collection.size===0||void 0,onScroll:t.onScroll},a.createElement(ht,{values:[[Or,l],[Jn,{elementType:"div"}],[sp,{name:"MenuSection",render:Ca}],[Sa,{parentMenuRef:r,shouldUseVirtualFocus:o==null?void 0:o.shouldUseVirtualFocus}],[ut,{shouldCloseOnSelect:t.shouldCloseOnSelect}],[mi,null],[pp,null],[Pr,l.selectionManager],[Cr,s??wa({})]]},a.createElement(gp,null,a.createElement(u,{collection:l.collection,persistedKeys:up(l.selectionManager.focusedKey),scrollRef:r}))),m))}class ih extends Fr{constructor(e,r){super(e.collection,r),this.parent=e}get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,r){return this.parent.setFocusedKey(e,r)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}}function Ca(t,e,r,n="react-aria-MenuSection"){var v,E,$;let o=a.useContext(Or),{CollectionBranch:i}=a.useContext(Ar),[l,s]=$l(),{headingProps:c,groupProps:u}=jp({heading:s,"aria-label":r.props["aria-label"]??void 0}),d=Fe({...t,id:void 0,children:void 0,defaultClassName:n,className:(v=r.props)==null?void 0:v.className,style:(E=r.props)==null?void 0:E.style,values:void 0}),f=a.useContext(Pr),m=Ea(t),h=t.selectionMode!=null?new ih(f,m):f,g=($=Ut(ut))==null?void 0:$.shouldCloseOnSelect,y=ue(t,{global:!0});return delete y.id,a.createElement(Ce.section,{...X(y,d,u),ref:e},a.createElement(ht,{values:[[hp,{...c,ref:l}],[Pr,h],[ut,{shouldCloseOnSelect:t.shouldCloseOnSelect??g}]]},a.createElement(i,{collection:o.collection,parent:r})))}const lh=Ls(Mn,Ca),ut=a.createContext(null),sh=Ds(Tn,function(e,r,n){var P;[e,r]=Oe(e,r,ut);let o=(P=Ut(ut))==null?void 0:P.id,i=a.useContext(Or),l=Ht(r),s=a.useContext(Pr),{isVirtualized:c}=a.useContext(Ar),{menuItemProps:u,labelProps:d,descriptionProps:f,keyboardShortcutProps:m,...h}=Op({...e,id:o,key:n.key,selectionManager:s,isVirtualized:c},i,l),{hoverProps:g,isHovered:y}=Wt({isDisabled:h.isDisabled}),v=Fe({...e,id:void 0,children:n.rendered,defaultClassName:"react-aria-MenuItem",values:{...h,isHovered:y,isFocusVisible:h.isFocusVisible,selectionMode:s.selectionMode,selectionBehavior:s.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),E=e.href?Ce.a:Ce.div,$=ue(e,{global:!0});return delete $.id,delete $.onClick,a.createElement(E,{...X($,v,u,g),ref:l,"data-disabled":h.isDisabled||void 0,"data-hovered":y||void 0,"data-focused":h.isFocused||void 0,"data-focus-visible":h.isFocusVisible||void 0,"data-pressed":h.isPressed||void 0,"data-selected":h.isSelected||void 0,"data-selection-mode":s.selectionMode==="none"?void 0:s.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},a.createElement(ht,{values:[[Fs,{slots:{[vl]:d,label:d,description:f}}],[bp,m],[yp,{isSelected:h.isSelected}]]},v.children))}),eo=a.createContext(null),ah=a.createContext(null),ch=a.createContext(null);function uh(t,e,r){let{validationBehavior:n,focus:o}=t;J(()=>{if(n==="native"&&(r!=null&&r.current)&&!r.current.disabled){let u=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(u),r.current.hasAttribute("title")||(r.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(fh(r.current))}});let i=a.useRef(!1),l=xe(()=>{i.current||e.resetValidation()}),s=xe(u=>{var f,m;e.displayValidation.isInvalid||e.commitValidation();let d=(f=r==null?void 0:r.current)==null?void 0:f.form;!u.defaultPrevented&&r&&d&&ph(d)===r.current&&(o?o():(m=r.current)==null||m.focus(),$n("keyboard")),u.preventDefault()}),c=xe(()=>{e.commitValidation()});a.useEffect(()=>{let u=r==null?void 0:r.current;if(!u)return;let d=u.form,f=d==null?void 0:d.reset;return d&&(d.reset=()=>{i.current=!window.event||window.event.type==="message"&&A(window.event)instanceof MessagePort,f==null||f.call(d),i.current=!1}),u.addEventListener("invalid",s),u.addEventListener("change",c),d==null||d.addEventListener("reset",l),()=>{u.removeEventListener("invalid",s),u.removeEventListener("change",c),d==null||d.removeEventListener("reset",l),d&&(d.reset=f)}},[r,n])}function dh(t){let e=t.validity;return{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function fh(t){return{isInvalid:!t.validity.valid,validationDetails:dh(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function ph(t){var e;for(let r=0;r<t.elements.length;r++){let n=t.elements[r];if(((e=n.validity)==null?void 0:e.valid)===!1)return n}return null}function hh(t,e){let{elementType:r="a",onPress:n,onPressStart:o,onPressEnd:i,onClick:l,isDisabled:s,...c}=t,u={};r!=="a"&&(u={role:"link",tabIndex:s?void 0:0});let{focusableProps:d}=Dr(t,e),{pressProps:f,isPressed:m}=Xe({onPress:n,onPressStart:o,onPressEnd:i,onClick:l,isDisabled:s,ref:e}),h=ue(c,{labelable:!0}),g=X(d,f),y=_t(),v=zi(t);return{isPressed:m,linkProps:X(h,v,{...g,...u,"aria-disabled":s||void 0,"aria-current":t["aria-current"],onClick:E=>{var $;($=f.onClick)==null||$.call(f,E),Hi(E,y,t.href,t.routerOptions)}})}}const bh=a.createContext(null),mh=a.forwardRef(function(e,r){[e,r]=Oe(e,r,bh);let n=e.href&&!e.isDisabled?"a":"span",{linkProps:o,isPressed:i}=hh({...e,elementType:n},r),l=Ce[n],{hoverProps:s,isHovered:c}=Wt(e),{focusProps:u,isFocused:d,isFocusVisible:f}=qn(),m=Fe({...e,defaultClassName:"react-aria-Link",values:{isCurrent:!!e["aria-current"],isDisabled:e.isDisabled||!1,isPressed:i,isHovered:c,isFocused:d,isFocusVisible:f}}),h=ue(e,{global:!0});return delete h.onClick,a.createElement(l,{ref:r,slot:e.slot||void 0,...X(h,m,o,s,u),"data-focused":d||void 0,"data-hovered":c||void 0,"data-pressed":i||void 0,"data-focus-visible":f||void 0,"data-current":!!e["aria-current"]||void 0,"data-disabled":e.isDisabled||void 0},m.children)}),Pa=a.createContext({}),Ci=({children:t,className:e,...r})=>{const n=a.useMemo(()=>rd(),[]);return b.jsx(Pa,{value:{slots:n},children:b.jsx(mh,{...r,className:je(e,n==null?void 0:n.base()),children:o=>b.jsx(b.Fragment,{children:typeof t=="function"?t(o):t})})})},gh=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(Pa);return b.jsx(ie.span,{className:ce(n==null?void 0:n.icon,e),"data-default-icon":Gd(!t),"data-slot":"link-icon",...r,children:t??b.jsx(Yd,{"data-slot":"link-default-icon"})})},In=Object.assign(Ci,{Root:Ci,Icon:gh});function yh(t={}){let{isReadOnly:e}=t,[r,n]=Lr(t.isSelected,t.defaultSelected||!1,t.onChange),[o]=a.useState(r);function i(s){e||n(s)}function l(){e||n(!r)}return{isSelected:r,defaultSelected:t.defaultSelected??o,setSelected:i,toggle:l}}const vh=a.createContext({}),$h="__button_group_child",Pi=({children:t,className:e,fullWidth:r,isDisabled:n,isIconOnly:o,size:i,slot:l,style:s,variant:c,[$h]:u,...d})=>{const f=a.useContext(vh),m=u===!0,h=i??(m?f==null?void 0:f.size:void 0),g=c??(m?f==null?void 0:f.variant:void 0),y=n??(m?f==null?void 0:f.isDisabled:void 0),v=r??(m?f==null?void 0:f.fullWidth:void 0),E=ot({fullWidth:v,isIconOnly:o,size:h,variant:g});return b.jsx(Al,{className:je(e,E),"data-slot":"button",isDisabled:y,slot:l,style:s,...d,children:$=>typeof t=="function"?t($):t})},xh=Object.assign(Pi,{Root:Pi}),mt=a.createContext({}),ki=({children:t,className:e,variant:r="default",...n})=>{const o=a.useMemo(()=>Ju({variant:r}),[r]),i=b.jsx(ie.div,{className:o.base({className:e}),"data-slot":"card",...n,children:t});return b.jsx(mt,{value:{slots:o},children:r==="transparent"?i:b.jsx(Yn,{value:{variant:r},children:i})})},wh=({className:t,...e})=>{const{slots:r}=a.useContext(mt);return b.jsx(ie.div,{className:ce(r==null?void 0:r.header,t),"data-slot":"card-header",...e})},Eh=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(mt);return b.jsx(ie.h3,{className:ce(n==null?void 0:n.title,e),"data-slot":"card-title",...r,children:t})},Sh=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(mt);return b.jsx(ie.p,{className:ce(n==null?void 0:n.description,e),"data-slot":"card-description",...r,children:t})},Ch=({className:t,...e})=>{const{slots:r}=a.useContext(mt);return b.jsx(ie.div,{className:ce(r==null?void 0:r.content,t),"data-slot":"card-content",...e})},Ph=({className:t,...e})=>{const{slots:r}=a.useContext(mt);return b.jsx(ie.div,{className:ce(r==null?void 0:r.footer,t),"data-slot":"card-footer",...e})},kt=Object.assign(ki,{Root:ki,Header:wh,Title:Eh,Description:Sh,Content:Ch,Footer:Ph}),kh=new WeakMap;function Th(t=!0){let[e,r]=a.useState(t),n=a.useRef(!1),o=a.useCallback(i=>{n.current=!0,r(!!i)},[]);return J(()=>{n.current||r(!1)},[]),[o,e]}function Ti(t=!0){let e=ge(),[r,n]=Th(t);return{id:n?e:void 0,ref:r}}const ka={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Ta={...ka,customError:!0,valid:!1},tt={isInvalid:!1,validationDetails:ka,validationErrors:[]},Mh=a.createContext({}),kr="__reactAriaFormValidationState";function Ma(t){if(t[kr]){let{realtimeValidation:e,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}=t[kr];return{realtimeValidation:e,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}}return Rh(t)}function Rh(t){let{isInvalid:e,validationState:r,name:n,value:o,builtinValidation:i,validate:l,validationBehavior:s="aria"}=t;r&&(e||(e=r==="invalid"));let c=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:Ta}:null,u=a.useMemo(()=>{if(!l||o==null)return null;let K=Nh(l,o);return Mi(K)},[l,o]);i!=null&&i.validationDetails.valid&&(i=void 0);let d=a.useContext(Mh),f=a.useMemo(()=>n?Array.isArray(n)?n.flatMap(K=>Kn(d[K])):Kn(d[n]):[],[d,n]),[m,h]=a.useState(d),[g,y]=a.useState(!1);d!==m&&(h(d),y(!1));let v=a.useMemo(()=>Mi(g?[]:f),[g,f]),E=a.useRef(tt),[$,P]=a.useState(tt),k=a.useRef(tt),L=()=>{if(!j)return;T(!1);let K=u||i||E.current;cn(K,k.current)||(k.current=K,P(K))},[j,T]=a.useState(!1);return a.useEffect(L),{realtimeValidation:c||v||u||i||tt,displayValidation:s==="native"?c||v||$:c||v||u||i||$,updateValidation(K){s==="aria"&&!cn($,K)?P(K):E.current=K},resetValidation(){let K=tt;cn(K,k.current)||(k.current=K,P(K)),s==="native"&&T(!1),y(!0)},commitValidation(){s==="native"&&T(!0),y(!0)}}}function Kn(t){return t?Array.isArray(t)?t:[t]:[]}function Nh(t,e){if(typeof t=="function"){let r=t(e);if(r&&typeof r!="boolean")return Kn(r)}return[]}function Mi(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:Ta}:null}function cn(t,e){return t===e?!0:!!t&&!!e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((r,n)=>r===e.validationErrors[n])&&Object.entries(t.validationDetails).every(([r,n])=>e.validationDetails[r]===n)}function Dh(t,e,r){let{isDisabled:n=!1,isReadOnly:o=!1,value:i,name:l,form:s,children:c,isRequired:u,validationBehavior:d="aria","aria-label":f,"aria-labelledby":m,"aria-describedby":h,onPressStart:g,onPressEnd:y,onPressChange:v,onPress:E,onPressUp:$,onClick:P}=t,k=Ma({...t,value:e.isSelected}),{isInvalid:L,validationErrors:j,validationDetails:T}=k.displayValidation;uh(t,k,r);let R=D=>{D.stopPropagation(),e.setSelected(A(D).checked)},I=c!=null,K=f!=null||m!=null;!I&&!K&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:V,isPressed:H}=Xe({onPressStart:g,onPressEnd:y,onPressChange:v,onPress:E,onPressUp:$,onClick:P,isDisabled:n}),[B,p]=a.useState(!1),{pressProps:w}=Xe({onPressStart(D){if(D.pointerType==="keyboard"||D.pointerType==="virtual"){D.continuePropagation();return}g==null||g(D),v==null||v(!0),p(!0)},onPressEnd(D){if(D.pointerType==="keyboard"||D.pointerType==="virtual"){D.continuePropagation();return}y==null||y(D),v==null||v(!1),p(!1)},onPressUp(D){if(D.pointerType==="keyboard"||D.pointerType==="virtual"){D.continuePropagation();return}$==null||$(D)},onClick:P,onPress(D){var G;if(D.pointerType==="keyboard"||D.pointerType==="virtual"){D.continuePropagation();return}E==null||E(D),e.toggle(),(G=r.current)==null||G.focus();let{[kr]:U}=t,{commitValidation:W}=U||k;W()},isDisabled:n||o}),{focusableProps:N}=Dr(t,r),C=X(V,N),M=ue(t,{labelable:!0});Uc(r,e.defaultSelected,e.setSelected);let x=Ti(),S=Ti();return{labelProps:X(w,{onClick:D=>D.preventDefault()}),inputProps:X(M,{checked:e.isSelected,"aria-required":u&&d==="aria"||void 0,required:u&&d==="native","aria-invalid":L||t.validationState==="invalid"||void 0,"aria-errormessage":t["aria-errormessage"],"aria-controls":t["aria-controls"],"aria-readonly":o||void 0,"aria-describedby":[x.id,S.id,h].filter(Boolean).join(" ")||void 0,onChange:R,disabled:n,...i==null?{}:{value:i},name:l,form:s,type:"checkbox",...C}),descriptionProps:x,errorMessageProps:S,isSelected:e.isSelected,isPressed:H||B,isDisabled:n,isReadOnly:o,isInvalid:L||t.validationState==="invalid",validationErrors:j,validationDetails:T}}function Ra(t,e,r){let{labelProps:n,inputProps:o,descriptionProps:i,errorMessageProps:l,isSelected:s,isPressed:c,isDisabled:u,isReadOnly:d,isInvalid:f,validationErrors:m,validationDetails:h}=Dh(t,e,r),{isIndeterminate:g}=t;return a.useEffect(()=>{r.current&&(r.current.indeterminate=!!g)}),{labelProps:X(n,a.useMemo(()=>({onMouseDown:y=>y.preventDefault()}),[])),inputProps:o,descriptionProps:i,errorMessageProps:l,isSelected:s,isPressed:c,isDisabled:u,isReadOnly:d,isInvalid:f,validationErrors:m,validationDetails:h}}const Lh=typeof document<"u"?a.useInsertionEffect??a.useLayoutEffect:()=>{};function Ih(t,e,r){let[n,o]=a.useState(t||e),i=a.useRef(n),l=a.useRef(t!==void 0),s=t!==void 0;a.useEffect(()=>{let f=l.current;f!==s&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${f?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),l.current=s},[s]);let c=s?t:n;Lh(()=>{i.current=c});let[,u]=a.useReducer(()=>({}),{}),d=a.useCallback((f,...m)=>{let h=typeof f=="function"?f(i.current):f;Object.is(i.current,h)||(i.current=h,o(h),u(),r==null||r(h,...m))},[r]);return[c,d]}function Kh(t={}){let{isReadOnly:e}=t,[r,n]=Ih(t.isSelected,t.defaultSelected||!1,t.onChange),[o]=a.useState(r);function i(s){e||n(s)}function l(){e||n(!r)}return{isSelected:r,defaultSelected:t.defaultSelected??o,setSelected:i,toggle:l}}function Ah(t,e,r){const n=Kh({isReadOnly:t.isReadOnly||e.isReadOnly,isSelected:e.isSelected(t.value),defaultSelected:e.defaultValue.includes(t.value),onChange(y){y?e.addValue(t.value):e.removeValue(t.value),t.onChange&&t.onChange(y)}});let{name:o,form:i,descriptionId:l,errorMessageId:s,validationBehavior:c}=kh.get(e);c=t.validationBehavior??c;let{realtimeValidation:u}=Ma({...t,value:n.isSelected,name:void 0,validationBehavior:"aria"}),d=a.useRef(tt),f=()=>{e.setInvalid(t.value,u.isInvalid?u:d.current)};a.useEffect(f);let m=e.realtimeValidation.isInvalid?e.realtimeValidation:u,h=c==="native"?e.displayValidation:m,g=Ra({...t,isReadOnly:t.isReadOnly||e.isReadOnly,isDisabled:t.isDisabled||e.isDisabled,name:t.name||o,form:t.form||i,isRequired:t.isRequired??e.isRequired,validationBehavior:c,[kr]:{realtimeValidation:m,displayValidation:h,resetValidation:e.resetValidation,commitValidation:e.commitValidation,updateValidation(y){d.current=y,f()}}},n,r);return{...g,inputProps:{...g.inputProps,"aria-describedby":[g.inputProps["aria-describedby"],e.isInvalid?s:null,l].filter(Boolean).join(" ")||void 0}}}const Fh=a.createContext(null),Na=a.createContext(null),Da=a.createContext(null),Oh=a.forwardRef(function(e,r){let{inputRef:n=null,...o}=e;[e,r]=Oe(o,r,Fh);let i=a.useContext(Na),[l,s]=jh(e,n),{descriptionProps:c,errorMessageProps:u,isSelected:d,isDisabled:f,isReadOnly:m,isInvalid:h,validationDetails:g,validationErrors:y}=l,v=Fe({...e,defaultClassName:"react-aria-CheckboxField",values:{isSelected:d,isIndeterminate:e.isIndeterminate||!1,isDisabled:f,isReadOnly:m,isInvalid:h,isRequired:e.isRequired||!1}}),E=ue(e,{global:!0});return delete E.id,delete E.onClick,a.createElement(Ce.div,{...X(E,v),ref:r,slot:e.slot||void 0,"data-selected":d||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-disabled":f||void 0,"data-readonly":m||void 0,"data-invalid":h||void 0,"data-required":e.isRequired||void 0},a.createElement(ht,{values:[[Da,{...l,inputRef:s,defaultClassName:"react-aria-CheckboxButton",isIndeterminate:e.isIndeterminate,isRequired:e.isRequired}],[Fs,{slots:{description:c,errorMessage:u}}],[ah,i?null:{isInvalid:h,validationDetails:g,validationErrors:y}]]},v.children))});function jh(t,e){let{validationBehavior:r}=Ut(ch)||{},n=t.validationBehavior??r??"native",o=a.useContext(Na),i=Ht(a.useMemo(()=>zt(e,t.inputRef!==void 0?t.inputRef:null),[e,t.inputRef])),l={...ad(t),children:typeof t.children=="function"?!0:t.children,value:t.value,validationBehavior:n};return[o?Ah(l,o,i):Ra(l,yh(t),i),i]}const Bh=a.forwardRef(function(e,r){let{labelProps:n,inputProps:o,isSelected:i,isDisabled:l,isReadOnly:s,isPressed:c,isInvalid:u,inputRef:d,defaultClassName:f,isIndeterminate:m,isRequired:h}=a.useContext(Da),{isFocused:g,isFocusVisible:y,focusProps:v}=qn(),E=l||s,{hoverProps:$,isHovered:P}=Wt({...e,isDisabled:E}),k=Fe({...e,defaultClassName:f,values:{isSelected:i,isIndeterminate:m||!1,isPressed:c,isHovered:P,isFocused:g,isFocusVisible:y,isDisabled:l,isReadOnly:s,isInvalid:u,isRequired:h||!1}}),L=ue(e,{global:!0});return delete L.id,delete L.onClick,a.createElement(Ce.label,{...X(L,n,$,k),ref:r,slot:e.slot||void 0,"data-selected":i||void 0,"data-indeterminate":m||void 0,"data-pressed":c||void 0,"data-hovered":P||void 0,"data-focused":g||void 0,"data-focus-visible":y||void 0,"data-disabled":l||void 0,"data-readonly":s||void 0,"data-invalid":u||void 0,"data-required":h||void 0},a.createElement(Ss,{elementType:"span"},a.createElement("input",{...X(o,v),ref:d})),k.children)}),_h=a.createContext({}),jr=a.createContext({}),An=({children:t,className:e,variant:r,...n})=>{const o=a.useContext(_h),i=r??o.variant,l=a.useMemo(()=>Qu({variant:i}),[i]);return b.jsx(Oh,{"data-slot":"checkbox",...n,className:je(e,l.base()),children:s=>b.jsx(jr,{value:{slots:l,state:s},children:typeof t=="function"?t(s):t})})};An.displayName="HeroUI.Checkbox";const La=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(jr);return b.jsx(Bh,{"data-slot":"checkbox-content",...r,className:je(e,n==null?void 0:n.content()),children:t})};La.displayName="HeroUI.Checkbox.Content";const Ia=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(jr);return b.jsx(ie.span,{className:ce(n==null?void 0:n.control,e),"data-slot":"checkbox-control",...r,children:t})};Ia.displayName="HeroUI.Checkbox.Control";const Ka=({children:t,className:e,...r})=>{const{slots:n,state:o}=a.useContext(jr),i=o==null?void 0:o.isSelected,l=o==null?void 0:o.isIndeterminate,s=typeof t=="function"?t(o??{}):t||(l?b.jsx("svg",{"aria-hidden":"true","data-slot":"checkbox-default-indicator--indeterminate",fill:"none",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeWidth:3,viewBox:"0 0 24 24",children:b.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})}):b.jsx("svg",{"aria-hidden":"true","data-slot":"checkbox-default-indicator--checkmark",fill:"none",role:"presentation",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:i?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 17 18",children:b.jsx("polyline",{points:"1 9 7 14 15 4"})}));return b.jsx(ie.span,{"aria-hidden":"true",className:ce(n==null?void 0:n.indicator,e),"data-slot":"checkbox-indicator",...r,children:s})};Ka.displayName="HeroUI.Checkbox.Indicator";const lr=Object.assign(An,{Root:An,Content:La,Control:Ia,Indicator:Ka}),Aa=a.createContext({}),Ri=({children:t,className:e,color:r,size:n,variant:o,...i})=>{const l=a.useMemo(()=>ed({color:r,size:n,variant:o}),[r,n,o]),s=a.useMemo(()=>typeof t=="string"||typeof t=="number"?b.jsx(Fa,{children:t}):t,[t]);return b.jsx(Aa,{value:{slots:l},children:b.jsx(ie.span,{...i,className:ce(l.base,e),"data-slot":"chip",children:s})})},Fa=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(Aa);return b.jsx(ie.span,{className:ce(n==null?void 0:n.label,e),"data-slot":"chip-label",...r,children:t})},Tr=Object.assign(Ri,{Root:Ri,Label:Fa}),Br=a.createContext({}),Fn=({children:t,className:e,color:r,size:n,...o})=>{const i=a.useMemo(()=>nd({color:r,size:n}),[r,n]);return b.jsx(Cd,{"data-slot":"progress-bar",...o,className:je(e,i.base()),children:l=>b.jsx(Br,{value:{slots:i,state:l},children:typeof t=="function"?t(l):t})})};Fn.displayName="HeroUI.ProgressBar";const Oa=({children:t,className:e,...r})=>{const{slots:n,state:o}=a.useContext(Br);return b.jsx(ie.span,{className:ce(n==null?void 0:n.output,e),"data-slot":"progress-bar-output",...r,children:t??(o==null?void 0:o.valueText)})};Oa.displayName="HeroUI.ProgressBar.Output";const ja=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(Br);return b.jsx(ie.div,{className:ce(n==null?void 0:n.track,e),"data-slot":"progress-bar-track",...r,children:t})};ja.displayName="HeroUI.ProgressBar.Track";const Ba=({className:t,style:e,...r})=>{const{slots:n,state:o}=a.useContext(Br);return b.jsx(ie.div,{className:ce(n==null?void 0:n.fill,t),"data-slot":"progress-bar-fill",style:{...e,width:o!=null&&o.isIndeterminate?void 0:`${(o==null?void 0:o.percentage)??0}%`},...r})};Ba.displayName="HeroUI.ProgressBar.Fill";const sr=Object.assign(Fn,{Root:Fn,Output:Oa,Track:ja,Fill:Ba}),Ni=({className:t,orientation:e,variant:r,...n})=>{const o=Ut(Jn),i=e??(o==null?void 0:o.orientation)??"horizontal";return b.jsx($p,{"data-orientation":i,"data-slot":"separator",orientation:i,className:ld({orientation:i,variant:r,className:t}),...n})},Vh=Object.assign(Ni,{Root:Ni}),Gt=a.createContext({}),Di=({children:t,className:e,status:r,...n})=>{const o=a.useMemo(()=>Zu({status:r}),[r]);return b.jsx(Gt,{value:{slots:o,status:r},children:b.jsx(Yn,{value:{variant:"default"},children:b.jsx(ie.div,{className:o==null?void 0:o.base({className:e}),"data-slot":"alert-root",...n,children:t})})})},zh=({children:t,className:e,...r})=>{const{slots:n,status:o}=a.useContext(Gt),i=()=>{switch(o){case"accent":return b.jsx(zo,{"data-slot":"alert-default-icon"});case"success":return b.jsx(Jd,{"data-slot":"alert-default-icon"});case"warning":return b.jsx(Xd,{"data-slot":"alert-default-icon"});case"danger":return b.jsx(Zd,{"data-slot":"alert-default-icon"});default:return b.jsx(zo,{"data-slot":"alert-default-icon"})}};return b.jsx(ie.div,{className:ce(n==null?void 0:n.indicator,e),"data-slot":"alert-indicator",...r,children:t??i()})},Hh=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(Gt);return b.jsx(ie.div,{className:ce(n==null?void 0:n.content,e),"data-slot":"alert-content",...r,children:t})},Uh=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(Gt);return b.jsx(ie.p,{className:ce(n==null?void 0:n.title,e),"data-slot":"alert-title",...r,children:t})},Wh=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(Gt);return b.jsx(ie.span,{className:ce(n==null?void 0:n.description,e),"data-slot":"alert-description",...r,children:t})},$t=Object.assign(Di,{Root:Di,Indicator:zh,Content:Hh,Title:Uh,Description:Wh}),to=a.createContext({}),Gh=({children:t,className:e,variant:r,...n})=>{const o=a.useMemo(()=>od({variant:r}),[r]);return b.jsx(sh,{className:je(e,o.item()),"data-slot":"menu-item",...n,children:i=>b.jsx(to,{value:{slots:o,state:i},children:typeof t=="function"?t(i):t})})},qh=({children:t,className:e,type:r="checkmark",...n})=>{const{slots:o,state:i}=a.useContext(to),l=i==null?void 0:i.isSelected,s=typeof t=="function"?t(i??{}):t||(r==="dot"?b.jsx("svg",{"aria-hidden":"true","data-slot":"menu-item-indicator--dot",fill:"currentColor",fillRule:"evenodd",role:"presentation",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{clipRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14",fillRule:"evenodd"})}):b.jsx("svg",{"aria-hidden":"true","data-slot":"menu-item-indicator--checkmark",fill:"none",role:"presentation",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:l?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 17 18",children:b.jsx("polyline",{points:"1 9 7 14 15 4"})}));return b.jsx(ie.span,{"aria-hidden":"true",className:ce(o==null?void 0:o.indicator,e),"data-slot":"menu-item-indicator","data-type":r,"data-visible":l||void 0,...n,children:s})},Yh=({children:t,className:e,...r})=>{const{slots:n,state:o}=a.useContext(to);if(!(o==null?void 0:o.hasSubmenu))return null;const s=t??b.jsx(qd,{});return b.jsx(ie.span,{"aria-hidden":"true",className:ce(n==null?void 0:n.submenuIndicator,e),"data-slot":"submenu-indicator",...r,children:s})},Xh=({children:t,className:e,...r})=>{const n=a.useMemo(()=>id({class:typeof e=="string"?e:void 0}),[e]);return b.jsx(lh,{className:n,...r,children:t})},_r=a.createContext({}),Li=({children:t,...e})=>{const r=a.useMemo(()=>td(),[]);return b.jsx(_r,{value:{slots:r},children:b.jsx(th,{...e,children:t})})},Zh=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(_r);return b.jsx(Al,{className:je(e,n==null?void 0:n.trigger()),"data-slot":"dropdown-trigger",...r,children:o=>b.jsx(b.Fragment,{children:typeof t=="function"?t(o):t})})},Jh=({children:t,className:e,placement:r,...n})=>{const{slots:o}=a.useContext(_r);return b.jsx(Yn,{value:{variant:"default"},children:b.jsx(Hf,{...n,className:je(e,o==null?void 0:o.popover()),"data-slot":"dropdown-popover",placement:r,children:t})})};function Qh({className:t,...e}){const{slots:r}=a.useContext(_r);return b.jsx(nh,{className:je(t,r==null?void 0:r.menu()),"data-selection-mode":e.selectionMode,"data-slot":"dropdown-menu",...e})}const eb=t=>b.jsx(Gh,{...t}),tb=t=>b.jsx(Yh,{...t}),rb=({children:t,...e})=>b.jsx(rh,{"data-slot":"dropdown-submenu-trigger",...e,children:t}),nb=t=>b.jsx(qh,{...t}),ob=t=>b.jsx(Xh,{...t}),xt=Object.assign(Li,{Root:Li,Trigger:Zh,Popover:Jh,Menu:Qh,Section:ob,Item:eb,ItemIndicator:nb,SubmenuIndicator:tb,SubmenuTrigger:rb}),ib={easy:"GREEN",moderate:"ORANGE",difficult:"RED"},lb={easy:"Easy",moderate:"Moderate",difficult:"Difficult"};function sb(){return b.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-[1em]",children:[b.jsx("path",{d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),b.jsx("path",{d:"m13.4 10.6 3.6-3.6"}),b.jsx("path",{d:"M3.3 16a9 9 0 1 1 17.4 0"})]})}function _a({difficulty:t,label:e,showIcon:r=!0,size:n="md",className:o}){const i=st[ib[t]];return b.jsxs(Tr,{variant:"soft",size:n,className:ee(o),style:{backgroundColor:Rt(i,.15),color:i},children:[r&&b.jsx(sb,{}),b.jsx(Tr.Label,{children:e??lb[t]})]})}const Ii=b.jsx("path",{d:"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0ZM12 9v4M12 17h.01"}),Ki=b.jsxs(b.Fragment,{children:[b.jsx("circle",{cx:"12",cy:"12",r:"9"}),b.jsx("path",{d:"M12 16v-4M12 8h.01"})]}),ab=b.jsxs(b.Fragment,{children:[b.jsx("circle",{cx:"12",cy:"12",r:"9"}),b.jsx("path",{d:"m8.5 12 2.5 2.5 4.5-5"})]}),cb={note:Ki,info:Ki,tip:ab,caution:Ii,danger:Ii};function ub({type:t}){return b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-5",children:cb[t]})}function db({type:t="caution",title:e,icon:r,children:n,className:o}){const i=e===void 0?fr[t]:e,l=ji(t);return b.jsxs($t,{className:ee("border",o),style:{backgroundColor:Rt(l,.1),borderColor:l},children:[b.jsx($t.Indicator,{style:{color:l},children:r??b.jsx(ub,{type:t})}),b.jsxs($t.Content,{children:[i!=null&&b.jsx($t.Title,{children:i}),b.jsx($t.Description,{children:n})]})]})}const fb=4/3;function Va(t){return Math.round(t*3/4)}function pb(t,e,r){const{x:n,y:o,width:i}=t;if(i<=0||n<0||o<0)return!1;const l=Va(i);return n+i<=e&&o+l<=r}function hb(t,e,r,n,o){if(n<=0||o<=0||e<=0||r<=0||!pb(t,e,r))return null;const i=n/t.width;return{position:"absolute",width:i*e,height:i*r,left:-t.x*i,top:-t.y*i,maxWidth:"none"}}function bb({src:t}){const e=a.useRef(null);return a.useEffect(()=>{const r=e.current;if(!r)return;let n=!1,o=null,i=null;return import("online-3d-viewer").then(l=>{if(n)return;const s=new l.EmbeddedViewer(r,{projectionMode:l.ProjectionMode.Orthographic,backgroundColor:new l.RGBAColor(219,234,254,255),defaultColor:new l.RGBColor(30,64,175),onModelLoaded:()=>{const c=s.GetViewer();c.SetNavigationMode(l.NavigationMode.FreeOrbit),c.SetUpVector(l.Direction.Z,!1);const u=c.GetBoundingSphere(()=>!0);c.FitSphereToWindow(u,!1)}});i=s,s.LoadModelFromUrlList([t]),typeof ResizeObserver<"u"&&(o=new ResizeObserver(()=>{s.Resize()}),o.observe(r))}),()=>{n=!0,o==null||o.disconnect(),i==null||i.Destroy()}},[t]),b.jsx("div",{ref:e,className:"absolute inset-0 [&_canvas]:size-full!","aria-label":"Interactive 3D model",role:"img"})}function mb({src:t,type:e,displayRegion:r}){const n=a.useRef(null),[o,i]=a.useState(null),[l,s]=a.useState(null),c=a.useCallback(()=>{const g=n.current;if(!g)return;const{width:y,height:v}=g.getBoundingClientRect();y>0&&v>0&&s({width:y,height:v})},[]);a.useEffect(()=>{if(!r)return;c();const g=n.current;if(!g)return;const y=new ResizeObserver(c);return y.observe(g),()=>y.disconnect()},[r,c]);const u=r&&o&&l&&hb(r,o.width,o.height,l.width,l.height),d=!!u,f="size-full object-cover object-center",m=g=>{const y=g.currentTarget;y.naturalWidth>0&&y.naturalHeight>0&&i({width:y.naturalWidth,height:y.naturalHeight})},h=g=>{const y=g.currentTarget;y.videoWidth>0&&y.videoHeight>0&&i({width:y.videoWidth,height:y.videoHeight})};return e==="model"?b.jsx(bb,{src:t}):b.jsx("div",{ref:n,className:"absolute inset-0",children:e==="video"?b.jsx("video",{src:t,controls:!0,className:d?"absolute max-w-none":f,style:d&&u?u:void 0,onLoadedMetadata:r?h:void 0}):b.jsx("img",{src:t,className:d?"absolute max-w-none":f,style:d&&u?u:void 0,onLoad:r?m:void 0})})}function gb(t){return t.type==="circle"}function yb(t){return t.type==="rectangle"}function vb(t,e){const r=t.id??e,n=t.color??"GREY",o=st[n];if(gb(t))return b.jsx("div",{role:"img","aria-label":t.title,className:"pointer-events-none absolute rounded-full border-2",style:{left:`${t.x}%`,top:`${t.y}%`,width:`${t.radius*2}%`,aspectRatio:"1",transform:"translate(-50%, -50%)",borderColor:o,backgroundColor:Rt(o,.1)}},r);if(yb(t)){const i=Math.min(t.x1,t.x2),l=Math.min(t.y1,t.y2),s=Math.abs(t.x2-t.x1),c=Math.abs(t.y2-t.y1);return b.jsx("div",{role:"img","aria-label":t.title,className:"pointer-events-none absolute border-2",style:{left:`${i}%`,top:`${l}%`,width:`${s}%`,height:`${c}%`,borderColor:o,backgroundColor:Rt(o,.1)}},r)}return b.jsx("span",{role:"img","aria-label":t.title,style:{left:`${t.x}%`,top:`${t.y}%`,backgroundColor:o,color:Fi(o)},className:"absolute flex min-h-6 min-w-6 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full px-1.5 text-xs font-semibold shadow ring-2 ring-background",children:t.label},r)}function za({src:t,type:e="image",annotations:r=[],displayRegion:n,className:o}){return b.jsx("figure",{className:ee("flex flex-col gap-2",o),children:b.jsxs("div",{className:"relative aspect-[4/3] overflow-hidden rounded-lg border border-default bg-default-soft",children:[b.jsx(mb,{src:t,type:e,displayRegion:n}),r.map(vb)]})})}function $b({name:t,thumbnail:e,href:r,quantity:n,price:o,children:i,className:l}){return b.jsxs("li",{className:ee("flex items-center gap-3 py-3 first:pt-0 last:pb-0",l),children:[e&&b.jsx("img",{src:e,alt:"",className:"size-12 shrink-0 rounded-md border border-default object-cover"}),b.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[r?b.jsx(In,{href:r,className:"font-medium",children:t}):b.jsx("span",{className:"font-medium",children:t}),i!=null&&b.jsx("span",{className:"text-sm text-default-500",children:i})]}),n!=null&&b.jsxs("span",{className:"shrink-0 text-sm text-default-500",children:["×",n]}),o!=null&&b.jsx("span",{className:"shrink-0 text-sm font-medium",children:o})]})}function xb({title:t="What you need",children:e,className:r}){return b.jsxs(kt,{className:ee("w-full",r),children:[t!=null&&b.jsx(kt.Header,{children:b.jsx(kt.Title,{children:t})}),b.jsx(kt.Content,{children:b.jsx("ul",{className:"flex flex-col divide-y divide-default",children:e})})]})}const wb=Object.assign(xb,{Item:$b});function Ha(t){return null}function Eb(t){return a.isValidElement(t)&&t.type===Ha}function Ua(){return b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",className:"size-4",children:b.jsx("path",{d:"m6 9 6 6 6-6"})})}function Ai(){return b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-4",children:b.jsx("path",{d:"M10 13a5 5 0 0 0 7.07 0l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71M14 11a5 5 0 0 0-7.07 0l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})})}function Sb(){return b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-4",children:b.jsx("path",{d:"M12 19V5M5 12l7-7 7 7"})})}function Cb(){return b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",className:"size-3.5",children:b.jsx("path",{d:"M18 6 6 18M6 6l12 12"})})}function Pb(){return b.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",className:"size-4",children:[b.jsx("circle",{cx:"9",cy:"6",r:"1.4"}),b.jsx("circle",{cx:"15",cy:"6",r:"1.4"}),b.jsx("circle",{cx:"9",cy:"12",r:"1.4"}),b.jsx("circle",{cx:"15",cy:"12",r:"1.4"}),b.jsx("circle",{cx:"9",cy:"18",r:"1.4"}),b.jsx("circle",{cx:"15",cy:"18",r:"1.4"})]})}function un(t){const{href:e,download:r,external:n}=t.props;return{href:e,download:r,...n?{target:"_blank",rel:"noreferrer noopener"}:{}}}function On(){return b.jsx("span",{"aria-hidden":"true",className:"pointer-events-none z-10 my-auto h-5 w-px self-center rounded-full bg-current opacity-25"})}function kb({variant:t="primary",size:e="md",icon:r,menuLabel:n="More download options",editing:o,children:i,className:l}){const s=a.Children.toArray(i).filter(Eb);if(o)return b.jsx(Tb,{items:s,variant:t,size:e,icon:r,menuLabel:n,editing:o,className:l});if(s.length===0)return null;const[c,...u]=s,d=ot({variant:t,size:e});return u.length===0?b.jsxs(In,{...un(c),className:ee(d,l),children:[r,c.props.children]}):b.jsxs("div",{className:ee(yl({orientation:"horizontal"}).base(),l),children:[b.jsxs(In,{...un(c),className:d,children:[r,c.props.children]}),b.jsx(On,{}),b.jsxs(xt,{children:[b.jsx(xt.Trigger,{"aria-label":n,className:ot({variant:t,size:e,isIconOnly:!0}),children:b.jsx(Ua,{})}),b.jsx(xt.Popover,{placement:"bottom end",children:b.jsx(xt.Menu,{children:u.map((f,m)=>b.jsx(xt.Item,{...un(f),children:f.props.children},m))})})]})]})}function Tb({items:t,variant:e,size:r,icon:n,menuLabel:o,editing:i,className:l}){const[s,c]=a.useState(!1),[u,d]=a.useState(null),[f,m]=a.useState(null),{onAddItem:h,onRemoveItem:g,onReorderItem:y,onSelectItem:v}=i,E=t[0],$=t.slice(1),P=ot({variant:e,size:r}),k=y!=null,L=()=>{d(null),m(null)},j=T=>{u!=null&&u!==T&&(y==null||y(u,T)),L()};return b.jsxs("div",{className:ee("relative inline-flex flex-col items-start",l),children:[b.jsxs("div",{className:yl({orientation:"horizontal"}).base(),children:[b.jsxs("span",{className:ee(P,"cursor-text"),children:[n,E?E.props.children:b.jsx("span",{className:"opacity-60",children:"Add a link"})]}),E&&v&&b.jsxs("button",{type:"button",onClick:()=>v(0),"aria-label":"Edit primary link",className:ee(ot({variant:e,size:r,isIconOnly:!0}),"relative"),children:[b.jsx(On,{}),b.jsx(Ai,{})]}),b.jsxs("button",{type:"button",onClick:()=>c(T=>!T),"aria-label":o,"aria-expanded":s,className:ee(ot({variant:e,size:r,isIconOnly:!0}),"relative"),children:[!(E&&v)&&b.jsx(On,{}),b.jsx(Ua,{})]})]}),s&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>c(!1),"aria-hidden":"true"}),b.jsxs("div",{className:"absolute left-0 top-full z-50 mt-2 w-64 rounded-lg border border-default-200 bg-background p-2 shadow-lg",children:[$.length>0?b.jsx("ul",{className:"flex flex-col gap-0.5",children:$.map((T,R)=>{const I=R+1;return b.jsxs("li",{draggable:k||void 0,onDragStart:k?()=>d(I):void 0,onDragOver:k?K=>{K.preventDefault(),m(I)}:void 0,onDrop:k?K=>{K.preventDefault(),j(I)}:void 0,onDragEnd:k?L:void 0,className:ee("flex items-center gap-1.5 rounded-md px-1.5 py-1 transition",k&&"cursor-grab",u===I&&"opacity-40",f===I&&u!==I&&"ring-2 ring-accent"),children:[k&&b.jsx("span",{className:"shrink-0 text-default-400",children:b.jsx(Pb,{})}),b.jsx("span",{className:"min-w-0 flex-1 text-sm",children:T.props.children}),y&&b.jsx("button",{type:"button",onClick:()=>y(I,0),"aria-label":"Make default download",className:"shrink-0 rounded p-0.5 text-default-500 transition hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",children:b.jsx(Sb,{})}),v&&b.jsx("button",{type:"button",onClick:()=>v(I),"aria-label":"Edit link",className:"shrink-0 rounded p-0.5 text-default-500 transition hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",children:b.jsx(Ai,{})}),g&&b.jsx("button",{type:"button",onClick:()=>g(I),"aria-label":"Remove option",className:"shrink-0 rounded p-0.5 text-default-500 transition hover:text-danger focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",children:b.jsx(Cb,{})})]},I)})}):b.jsx("p",{className:"px-1.5 py-1 text-sm text-default-500",children:"No other options yet."}),h&&b.jsx("button",{type:"button",onClick:h,className:"mt-1 w-full rounded-md px-1.5 py-1 text-left text-sm font-medium text-accent transition hover:bg-default-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",children:"+ Add option"})]})]})]})}const Mb=Object.assign(kb,{Item:Ha});function Rb(t,e,r){const[n,o]=a.useState(e),i=t!==void 0,l=i?t:n,s=a.useCallback(c=>{i||o(c),r==null||r(c)},[i,r]);return[l,s]}const Wa=3,Nb="#3ABF84",Db="#34B07A",Lb="#0B7A47",Ib={caution:fr.caution,reminder:"Reminder",note:fr.note};function Kb(){return b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-5 shrink-0 text-danger",children:b.jsx("path",{d:"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0ZM12 9v4M12 17h.01"})})}function Ab(){return b.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-5 shrink-0 text-default-500",children:[b.jsx("circle",{cx:"12",cy:"12",r:"9"}),b.jsx("path",{d:"M12 16v-4M12 8h.01"})]})}function Fb(){return b.jsx("span",{"aria-hidden":"true",className:"mt-0.5 flex size-6 shrink-0 items-center justify-center rounded bg-default-100",children:b.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"size-3.5 text-default-500",children:b.jsx("path",{d:"M16 12V4h1V3H7v1h1v8l-2 2v1h5.2c-.2.6-.3 1.2-.3 1.8 0 2.2 1.8 4 4 4s4-1.8 4-4c0-.6-.1-1.2-.3-1.8H18v-1l-2-2z"})})})}function Ob(){return b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-7",children:b.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12"})})}function jb(){return b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",className:"size-3",children:b.jsx("path",{d:"M18 6 6 18M6 6l12 12"})})}function Bb(t){return a.isValidElement(t)&&t.type===za}function _b(t){return a.isValidElement(t)&&t.type===Ya}function Vb(t){return a.isValidElement(t)?a.Children.toArray(t.props.children).filter(_b).length:0}function zb(t,e=!1){let r=null,n=null;for(const i of a.Children.toArray(t))a.isValidElement(i)&&(i.type===Ga&&(r=i.props.children),i.type===qa&&(n=i));const o=a.Children.toArray(r).filter(Bb);return Vb(n),{figures:o.slice(0,Wa),bullets:n}}function Ga(t){return null}function qa({children:t,className:e}){return b.jsx("ul",{className:ee("flex flex-col gap-2",e),children:t})}function Ya({variant:t="dot",color:e="GREY",label:r,hideLabel:n=!1,onMarkerPress:o,markerAriaLabel:i,children:l,className:s}){if(t==="dot")return b.jsxs("li",{className:ee("flex gap-2.5",s),children:[o?b.jsx("button",{type:"button",onClick:o,"aria-label":i??"Change bullet style",className:"mt-1.5 size-2 shrink-0 cursor-pointer rounded-full outline-none transition hover:ring-2 hover:ring-accent focus-visible:ring-2 focus-visible:ring-accent",style:{backgroundColor:st[e]}}):b.jsx("span",{"aria-hidden":"true",className:"mt-1.5 size-2 shrink-0 rounded-full",style:{backgroundColor:st[e]}}),b.jsx("span",{className:"flex-1",children:l})]});if(t==="button")return b.jsxs("li",{className:ee("flex items-center gap-2.5",s),children:[o&&b.jsx("button",{type:"button",onClick:o,"aria-label":i??"Change bullet style",className:"size-2 shrink-0 cursor-pointer rounded-full bg-default-300 outline-none transition hover:ring-2 hover:ring-accent focus-visible:ring-2 focus-visible:ring-accent"}),b.jsx("div",{className:"min-w-0 flex-1",children:l})]});const c=r??Ib[t],u=t==="caution"?b.jsx(Kb,{}):t==="reminder"?b.jsx(Fb,{}):b.jsx(Ab,{});return b.jsxs("li",{className:ee("flex gap-2.5",t==="caution"&&"text-danger",s),children:[o?b.jsx("button",{type:"button",onClick:o,"aria-label":i??"Change bullet style",className:"shrink-0 cursor-pointer rounded outline-none transition hover:opacity-70 focus-visible:ring-2 focus-visible:ring-accent",children:u}):u,b.jsxs("span",{className:"flex-1",children:[!n&&b.jsxs(b.Fragment,{children:[b.jsxs("span",{className:"font-semibold",children:[c,":"]})," "]}),l]})]})}function Hb(){return b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",className:"size-4",children:b.jsx("path",{d:"m5 12 5 5 9-11"})})}function Ub({figures:t,bullets:e,mediaEditing:r}){const n=r!=null,[o,i]=a.useState(0),[l,s]=a.useState(null),[c,u]=a.useState(null),d=(r==null?void 0:r.activeIndex)??o,f=t[d]??t[0],m=$=>{var P;i($),(P=r==null?void 0:r.onSelectImage)==null||P.call(r,$)},h=n&&(r==null?void 0:r.onReorderImage)!=null&&t.length>1,g=()=>{s(null),u(null)},y=$=>{var P;l!=null&&l!==$&&((P=r==null?void 0:r.onReorderImage)==null||P.call(r,l,$)),g()},v=n&&((r==null?void 0:r.canAddImage)??!0)&&t.length>=1&&t.length<Wa,E=n?t.length>=1:t.length>1;return b.jsxs("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2",children:[b.jsx("div",{className:"min-w-0",children:f?n?b.jsxs("div",{className:"group relative",children:[a.cloneElement(f,{className:ee("w-full",f.props.className)}),b.jsx("button",{type:"button",onClick:()=>{var $;return($=r==null?void 0:r.onReplaceImage)==null?void 0:$.call(r,d)},className:"absolute inset-0 flex items-center justify-center rounded-lg text-sm font-semibold text-background opacity-0 transition hover:bg-foreground/40 hover:opacity-100 focus-visible:bg-foreground/40 focus-visible:opacity-100 focus-visible:outline-none",children:"Replace image"})]}):a.cloneElement(f,{className:ee("w-full",f.props.className)}):n&&b.jsxs("button",{type:"button",onClick:()=>{var $;return($=r==null?void 0:r.onAddImage)==null?void 0:$.call(r)},className:"flex aspect-[4/3] w-full flex-col items-center justify-center gap-2 rounded-lg border-2 border-dashed border-default bg-default-soft text-default-500 transition hover:border-accent hover:text-accent focus-visible:border-accent focus-visible:text-accent focus-visible:outline-none",children:[b.jsx(Ob,{}),b.jsx("span",{className:"text-sm font-medium",children:"Add image"})]})}),b.jsxs("div",{className:"flex min-w-0 flex-col gap-4",children:[(E||v)&&b.jsxs("div",{className:"flex flex-wrap gap-2",role:"group","aria-label":"Step images",children:[t.map(($,P)=>n?b.jsxs("div",{className:ee("relative rounded-md transition-shadow",h&&"cursor-grab",l===P&&"opacity-40",c===P&&l!==P&&"ring-2 ring-accent ring-offset-2 ring-offset-background"),draggable:h||void 0,onDragStart:h?k=>{k.dataTransfer.effectAllowed="move",s(P)}:void 0,onDragOver:h?k=>{k.preventDefault(),k.dataTransfer.dropEffect="move",u(P)}:void 0,onDrop:h?k=>{k.preventDefault(),y(P)}:void 0,onDragEnd:h?g:void 0,children:[b.jsx("button",{type:"button",className:ee("block overflow-hidden rounded-md border-2 transition-[box-shadow,opacity,border-color]",P===d?"border-accent shadow-md":"border-default opacity-80 hover:opacity-100"),onClick:()=>m(P),"aria-label":`Image ${P+1}`,"aria-pressed":P===d,children:b.jsx("img",{src:$.props.src,alt:"",draggable:!1,className:"size-16 object-cover sm:size-20"})}),b.jsx("button",{type:"button",onClick:()=>{var k;return(k=r==null?void 0:r.onRemoveImage)==null?void 0:k.call(r,P)},"aria-label":`Remove image ${P+1}`,className:"absolute -right-1.5 -top-1.5 flex size-5 items-center justify-center rounded-full bg-foreground text-background shadow transition hover:bg-danger focus-visible:bg-danger focus-visible:outline-none",children:b.jsx(jb,{})})]},$.key??$.props.src??P):b.jsx("button",{type:"button",className:ee("overflow-hidden rounded-md border-2 transition-[box-shadow,opacity,border-color]",P===d?"border-accent shadow-md":"border-default opacity-80 hover:opacity-100"),onMouseEnter:()=>m(P),onFocus:()=>m(P),"aria-label":`Image ${P+1}`,"aria-pressed":P===d,children:b.jsx("img",{src:$.props.src,alt:"",className:"size-16 object-cover sm:size-20"})},$.key??$.props.src??P)),v&&b.jsx("button",{type:"button",onClick:()=>{var $;return($=r==null?void 0:r.onAddImage)==null?void 0:$.call(r)},"aria-label":"Add image",className:"flex size-16 items-center justify-center rounded-md border-2 border-dashed border-default text-default-500 transition hover:border-accent hover:text-accent focus-visible:border-accent focus-visible:text-accent focus-visible:outline-none sm:size-20",children:b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-6",children:b.jsx("path",{d:"M12 5v14M5 12h14"})})})]}),e]})]})}function Wb({number:t,title:e,isCompleted:r,defaultCompleted:n=!1,onCompletedChange:o,completable:i=!0,mediaEditing:l,children:s,className:c}){const[u,d]=Rb(r,n,o),f=a.useId(),{figures:m,bullets:h}=zb(s,l!=null);return b.jsxs("section",{"aria-labelledby":e!=null?f:void 0,"data-completed":u||void 0,className:ee("flex flex-col gap-4 transition-opacity",u&&"opacity-60",c),children:[b.jsxs("header",{className:"flex flex-col gap-3 sm:flex-row sm:items-center",children:[b.jsxs("div",{className:"flex min-w-0 items-center gap-3 sm:flex-1",children:[t!=null&&b.jsx("span",{className:ee("flex size-8 shrink-0 items-center justify-center rounded-md text-sm font-bold tabular-nums",u?"bg-success text-success-foreground":"bg-foreground text-background"),children:u?b.jsx(Hb,{}):t}),e!=null&&b.jsx("h3",{id:f,className:"min-w-0 flex-1 text-lg font-semibold leading-tight",children:e})]}),i&&b.jsx(xh,{variant:u?"primary":"secondary",size:"lg",onPress:()=>d(!u),"aria-pressed":u,className:ee("ml-auto shrink-0",u&&"guide-step-complete-button"),style:u?{"--guide-step-complete-bg":Nb,"--guide-step-complete-bg-hover":Db,"--guide-step-complete-checkbox":Lb}:void 0,children:b.jsx(lr,{isSelected:u,isReadOnly:!0,"aria-hidden":!0,className:"pointer-events-none gap-2 text-inherit",children:b.jsxs(lr.Content,{className:"flex items-center gap-2 whitespace-nowrap",children:[b.jsx(lr.Control,{children:b.jsx(lr.Indicator,{})}),"Mark complete"]})})})]}),b.jsx(Ub,{figures:m,bullets:h,mediaEditing:l})]})}const Gb=Object.assign(Wb,{Media:Ga,Bullets:qa,Bullet:Ya});function qb(t){return a.isValidElement(t)}function Yb({children:t,showProgress:e=!0,onProgressChange:r,className:n}){const o=a.Children.toArray(t).filter(qb),i=o.length,[l,s]=a.useState(()=>Object.fromEntries(o.map((u,d)=>[u.props.number??d+1,!!(u.props.defaultCompleted??u.props.isCompleted)]))),c=Object.values(l).filter(Boolean).length;return a.useEffect(()=>{r==null||r({completed:c,total:i})},[c,i,r]),b.jsxs("div",{className:ee("flex flex-col gap-8",n),children:[e&&i>0&&b.jsx("div",{className:"sticky top-2 mx-2 z-10",children:b.jsx(kt,{className:"w-full px-6 py-4",children:b.jsxs(sr,{value:c,maxValue:i,"aria-label":"Guide progress",className:"flex flex-col gap-1.5",children:[b.jsxs("div",{className:"flex items-center justify-between text-sm text-default-500",children:[b.jsx("span",{children:"Guide Progress"}),b.jsxs(sr.Output,{children:[c," / ",i," steps"]})]}),b.jsx(sr.Track,{className:"h-2 overflow-hidden rounded-full bg-default-soft",children:b.jsx(sr.Fill,{className:"h-full rounded-full bg-success transition-[width]"})})]})})}),b.jsx("ol",{className:"flex flex-col",children:o.map((u,d)=>{const f=u.props.number??d+1;return b.jsxs("li",{children:[a.cloneElement(u,{number:f,isCompleted:l[f]??!1,onCompletedChange:m=>{var h,g;s(y=>({...y,[f]:m})),(g=(h=u.props).onCompletedChange)==null||g.call(h,m)}}),d<o.length-1&&b.jsx(Vh,{className:"my-8"})]},u.key??f)})})]})}function Xb({title:t,difficulty:e,timeEstimate:r,meta:n,className:o}){const i=e!=null||r!=null;return b.jsxs("header",{className:ee("flex flex-col gap-4 border-b border-default pb-6 md:[grid-area:header]",o),children:[b.jsxs("div",{className:"flex flex-col gap-1.5",children:[b.jsx("h1",{className:"text-3xl font-bold tracking-tight",children:t}),n!=null&&b.jsx("div",{className:"text-sm text-default-500",children:n})]}),i&&b.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e!=null&&b.jsx(_a,{difficulty:e}),r!=null&&b.jsx(Tr,{variant:"soft",color:"default",children:b.jsx(Tr.Label,{children:r})})]})]})}function Zb({children:t,className:e}){return b.jsx("div",{className:ee("min-w-0 md:[grid-area:intro]",e),children:b.jsx("div",{className:"max-w-prose text-default-700",children:t})})}function Jb({children:t,className:e}){return b.jsx("aside",{className:ee("min-w-0 md:[grid-area:sidebar]",e),children:b.jsx("div",{className:"flex flex-col gap-4",children:t})})}function Qb({children:t,className:e}){return b.jsx("main",{className:ee("min-w-0 w-full md:[grid-area:main]",e),children:t})}const em=Object.assign(function({children:e,className:r}){return b.jsx("div",{className:ee("mx-auto grid w-full max-w-6xl grid-cols-1 gap-x-8 gap-y-8 md:grid-cols-[minmax(0,1fr)_20rem] md:[grid-template-areas:'header_header'_'intro_sidebar'_'main_main']",r),children:e})},{Header:Xb,Intro:Zb,Sidebar:Jb,Content:Qb});exports.COLORS=st;exports.Callout=db;exports.DISPLAY_REGION_ASPECT=fb;exports.DifficultyBadge=_a;exports.GuideLayout=em;exports.GuideStep=Gb;exports.GuideStepList=Yb;exports.LinkButton=Mb;exports.MediaFigure=za;exports.ToolList=wb;exports.calloutTypeColor=Oi;exports.calloutTypeHex=ji;exports.calloutTypeLabel=fr;exports.displayRegionHeight=Va;exports.hexToRgba=Rt;exports.markerTextColor=Fi;
|
|
28
|
+
*/var pi;function Xf(){return pi||(pi=1,process.env.NODE_ENV!=="production"&&(function(){function t(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}function e(p,g){d||o.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var y=g();if(!f){var v=g();i(y,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}v=l({inst:{value:y,getSnapshot:g}});var E=v[0].inst,$=v[1];return c(function(){E.value=y,E.getSnapshot=g,r(E)&&$({inst:E})},[p,y,g]),s(function(){return r(E)&&$({inst:E}),p(function(){r(E)&&$({inst:E})})},[p]),u(y),y}function r(p){var g=p.getSnapshot;p=p.value;try{var y=g();return!i(p,y)}catch{return!0}}function n(p,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=a,i=typeof Object.is=="function"?Object.is:t,l=o.useState,s=o.useEffect,c=o.useLayoutEffect,u=o.useDebugValue,d=!1,f=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:e;on.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),on}var hi;function Zf(){return hi||(hi=1,process.env.NODE_ENV==="production"?or.exports=Yf():or.exports=Xf()),or.exports}var Jf=Zf();const Rs=a.createContext(!1),Ot=a.createContext(null);function Qf(t){if(a.useContext(Ot))return t.content;let{collection:r,document:n}=np(t.createCollection);return a.createElement(a.Fragment,null,a.createElement(ud,null,a.createElement(Ot.Provider,{value:n},t.content)),a.createElement(ep,{render:t.children,collection:r}))}function ep({collection:t,render:e}){return e(t)}function tp(t,e,r){let n=dt(),o=a.useRef(n);o.current=n;let i=a.useCallback(()=>o.current?r():e(),[e,r]);return Jf.useSyncExternalStore(t,i)}const rp=typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore:tp;function np(t){let[e]=a.useState(()=>new Gf((t==null?void 0:t())||new Uf)),r=a.useCallback(l=>e.subscribe(l),[e]),n=a.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),o=a.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]);return{collection:rp(r,n,o),document:e}}const Mn=a.createContext(null);function op(t){var r;return r=class extends bt{},r.type=t,r}function Ns(t,e,r,n,o,i){typeof t=="string"&&(t=op(t));let l=a.useCallback(c=>{c==null||c.setProps(e,r,t,n,i)},[e,r,n,i,t]),s=a.useContext(Mn);if(s){let c=s.ownerDocument.nodesByProps.get(e);return c||(c=s.ownerDocument.createElement(t.type),c.setProps(e,r,t,n,i),s.appendChild(c),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(e,c)),o?a.createElement(Mn.Provider,{value:c},o):null}return a.createElement(t.type,{ref:l},o)}function Ds(t,e){let r=({node:o})=>e(o.props,o.props.ref,o),n=a.forwardRef((o,i)=>{let l=a.useContext($n);if(!a.useContext(Rs)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(o,i)}return Ns(t,o,i,"children"in o?o.children:null,null,c=>a.createElement($n.Provider,{value:l},a.createElement(r,{node:c})))});return n.displayName=e.name,n}function Ls(t,e,r=Is){let n=({node:i})=>e(i.props,i.props.ref,i),o=a.forwardRef((i,l)=>{let s=r(i);return Ns(t,i,l,null,s,c=>a.createElement(n,{node:c}))??a.createElement(a.Fragment,null)});return o.displayName=e.name,o}function Is(t){return Ms({...t,addIdAndValue:!0})}const bi=a.createContext(null);function ip(t){let e=a.useContext(bi),r=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),n=t.idScope??(e==null?void 0:e.idScope),o=Is({...t,idScope:n,dependencies:r});return a.useContext(Ot)&&(o=a.createElement(lp,null,o)),e=a.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),a.createElement(bi.Provider,{value:e},o)}function lp({children:t}){let e=a.useContext(Ot),r=a.useMemo(()=>a.createElement(Ot.Provider,{value:null},a.createElement(Rs.Provider,{value:!0},t)),[t]);return dt()?a.createElement(Mn.Provider,{value:e},r):jt.createPortal(r,e)}const sp=a.createContext(null),ap={CollectionRoot({collection:t,renderDropIndicator:e}){return mi(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:r}){return mi(t,e,r)}};function mi(t,e,r){return Ms({items:e?t.getChildren(e.key):t,dependencies:[r],children(n){if(n.type==="content")return a.createElement(a.Fragment,null);let o=n.render(n);return!r||n.type!=="item"?o:a.createElement(a.Fragment,null,r({type:"item",key:n.key,dropPosition:"before"}),o,cp(t,n,r))}})}function cp(t,e,r){let n=e.key,o=t.getKeyAfter(n),i=o!=null?t.getItem(o):null;for(;i!=null&&i.type!=="item";)o=t.getKeyAfter(i.key),i=o!=null?t.getItem(o):null;let l=e.nextKey!=null?t.getItem(e.nextKey):null;for(;l!=null&&l.type!=="item";)l=l.nextKey!=null?t.getItem(l.nextKey):null;let s=[];if(l==null){let c=e;for(;(c==null?void 0:c.type)==="item"&&(!i||c.parentKey!==i.parentKey&&i.level<c.level);){let u=r({type:"item",key:c.key,dropPosition:"after"});a.isValidElement(u)&&s.push(a.cloneElement(u,{key:`${c.key}-after`})),c=c.parentKey!=null?t.getItem(c.parentKey):null}}return s}const Ar=a.createContext(ap);function up(t){return a.useMemo(()=>t!=null?new Set([t]):null,[t])}function Ks(t){let e=fp(Z(t));e!==t&&(e&&dp(e,t),t&&As(t,e))}function dp(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function As(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function fp(t){let e=ne(t),r=e==null?void 0:e.getAttribute("aria-activedescendant");return r&&t.getElementById(r)||e}const gi=a.createContext(null),pp=a.createContext(null),hp=a.createContext({}),bp=a.createContext({}),mp=a.createContext(null);function gp(t){let e=a.useRef({});return a.createElement(mp.Provider,{value:e},t.children)}const yp=a.createContext({isSelected:!1});function vp(t){let e=ue(t,{labelable:!0}),r;return t.orientation==="vertical"&&(r="vertical"),t.elementType!=="hr"?{separatorProps:{...e,role:"separator","aria-orientation":r}}:{separatorProps:e}}const Jn=a.createContext({}),so=class so extends bt{filter(e,r){let n=r.getItem(this.prevKey);if(n&&n.type!=="separator"){let o=this.clone();return r.addDescendants(o,e),o}return null}};so.type="separator";let Rn=so;const $p=Ds(Rn,function(e,r){[e,r]=Oe(e,r,Jn);let{elementType:n,orientation:o,style:i,className:l,slot:s,...c}=e,u=n||"hr";u==="hr"&&o==="vertical"&&(u="div");let d=Ce[u],{separatorProps:f}=vp({...c,elementType:n,orientation:o}),m=ue(e,{global:!0});return a.createElement(d,{render:e.render,...X(m,f),style:i,className:l??"react-aria-Separator",ref:r,slot:s||void 0})}),Fs=a.createContext({});var Os={};Os={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var js={};js={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Bs={};Bs={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var _s={};_s={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Vs={};Vs={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Hs={};Hs={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var zs={};zs={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Ws={};Ws={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var Us={};Us={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var Gs={};Gs={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var qs={};qs={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var Ys={};Ys={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var Xs={};Xs={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var Zs={};Zs={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var Js={};Js={longPressMessage:"Premi a lungo o premi Alt + Freccia giù per aprire il menu"};var Qs={};Qs={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var ea={};ea={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var ta={};ta={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var ra={};ra={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var na={};na={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var oa={};oa={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var ia={};ia={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var la={};la={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var sa={};sa={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var aa={};aa={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var ca={};ca={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var ua={};ua={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var da={};da={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var fa={};fa={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var pa={};pa={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var ha={};ha={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var ba={};ba={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var ma={};ma={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var ga={};ga={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var ya={};ya={"ar-AE":Os,"bg-BG":js,"cs-CZ":Bs,"da-DK":_s,"de-DE":Vs,"el-GR":Hs,"en-US":zs,"es-ES":Ws,"et-EE":Us,"fi-FI":Gs,"fr-FR":qs,"he-IL":Ys,"hr-HR":Xs,"hu-HU":Zs,"it-IT":Js,"ja-JP":Qs,"ko-KR":ea,"lt-LT":ta,"lv-LV":ra,"nb-NO":na,"nl-NL":oa,"pl-PL":ia,"pt-BR":la,"pt-PT":sa,"ro-RO":aa,"ru-RU":ca,"sk-SK":ua,"sl-SI":da,"sr-SP":fa,"sv-SE":pa,"tr-TR":ha,"uk-UA":ba,"zh-CN":ma,"zh-TW":ga};const xp=500;function va(t){let{isDisabled:e,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:i=xp,accessibilityDescription:l}=t;const s=a.useRef(void 0);let{addGlobalListener:c,removeGlobalListener:u}=Rr(),{pressProps:d}=Ze({isDisabled:e,onPressStart(m){if(m.continuePropagation(),(m.pointerType==="mouse"||m.pointerType==="touch")&&(r&&r({...m,type:"longpressstart"}),s.current=setTimeout(()=>{m.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Z(m.target).activeElement!==m.target&&de(m.target),o&&o({...m,type:"longpress"}),s.current=void 0},i),m.pointerType==="touch")){let p=y=>{y.preventDefault()},g=fe(m.target);c(m.target,"contextmenu",p,{once:!0}),c(g,"pointerup",()=>{setTimeout(()=>{u(m.target,"contextmenu",p)},30)},{once:!0})}},onPressEnd(m){s.current&&clearTimeout(s.current),n&&(m.pointerType==="mouse"||m.pointerType==="touch")&&n({...m,type:"longpressend"})}}),f=Hc(o&&!e?l:void 0);return{longPressProps:X(d,f)}}function wp(t,e,r){let{type:n}=t,{isOpen:o}=e;a.useEffect(()=>{r&&r.current&&Ol.set(r.current,e.close)});let i;n==="menu"?i=!0:n==="listbox"&&(i="listbox");let l=ge();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?l:void 0,onPress:e.toggle},overlayProps:{id:l}}}function Ep(t){return t&&t.__esModule?t.default:t}function Sp(t,e,r){let{type:n="menu",isDisabled:o,trigger:i="press"}=t,l=ge(),{triggerProps:s,overlayProps:c}=wp({type:n},e,r),u=p=>{if(!o&&!(i==="longPress"&&!p.altKey)&&r&&r.current)switch(p.key){case"Enter":case" ":if(i==="longPress"||p.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in p||p.stopPropagation(),p.preventDefault(),e.toggle("first");break;case"ArrowUp":"continuePropagation"in p||p.stopPropagation(),p.preventDefault(),e.toggle("last");break;default:"continuePropagation"in p&&p.continuePropagation()}},d=Es(Ep(ya),"@react-aria/menu"),{longPressProps:f}=va({isDisabled:o||i!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),m={preventFocusOnPress:!0,onPressStart(p){p.pointerType!=="touch"&&p.pointerType!=="keyboard"&&!o&&(de(p.target),e.open(p.pointerType==="virtual"?"first":null))},onPress(p){p.pointerType==="touch"&&!o&&(de(p.target),e.toggle())}};return delete s.onPress,{menuTriggerProps:{...s,...i==="press"?m:f,id:l,onKeyDown:u},menuProps:{...c,"aria-labelledby":l,autoFocus:e.focusStrategy||!0,onClose:e.close}}}const $a=new WeakMap;function Nn(t){return sc()?t.altKey:t.ctrlKey}function dr(t,e){var o,i;let r=`[data-key="${CSS.escape(String(e))}"]`,n=(o=t.current)==null?void 0:o.dataset.collection;return n&&(r=`[data-collection="${CSS.escape(n)}"]${r}`),(i=t.current)==null?void 0:i.querySelector(r)}const xa=new WeakMap;function Cp(t){let e=ge();return xa.set(t,e),e}function Pp(t){return xa.get(t)}const kp=1e3;function Tp(t){let{keyboardDelegate:e,selectionManager:r,onTypeSelect:n}=t,o=a.useRef({search:"",timeout:void 0}).current,i=l=>{let s=Mp(l.key);if(!(!s||l.ctrlKey||l.metaKey||!H(l.currentTarget,A(l))||o.search.length===0&&s===" ")){if(s===" "&&o.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),o.search+=s,e.getKeyForSearch!=null){let c=e.getKeyForSearch(o.search,r.focusedKey);c==null&&(c=e.getKeyForSearch(o.search)),c!=null&&(r.setFocusedKey(c),n&&n(c))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},kp)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?i:void 0}}}function Mp(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function Rp(t){let{selectionManager:e,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:l=!1,disallowSelectAll:s=!1,escapeKeyBehavior:c="clearSelection",selectOnFocus:u=e.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:m=!1,scrollRef:p=n,linkBehavior:g="action"}=t,{direction:y}=Je(),v=_t(),E=h=>{var N,C,M,x,S,D,W,U,G,te,se,Y,pe,Te;if(h.altKey&&h.key==="Tab"&&h.preventDefault(),!n.current||!H(n.current,A(h)))return;const w=(_,ye)=>{if(_!=null){if(e.isLink(_)&&g==="selection"&&u&&!Nn(h)){jt.flushSync(()=>{e.setFocusedKey(_,ye)});let he=dr(n,_),We=e.getItemProps(_);he&&v.open(he,h,We.href,We.routerOptions);return}if(e.setFocusedKey(_,ye),e.isLink(_)&&g==="override")return;h.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(_):u&&!Nn(h)&&e.replaceSelection(_)}};switch(h.key){case"ArrowDown":if(r.getKeyBelow){let _=e.focusedKey!=null?(N=r.getKeyBelow)==null?void 0:N.call(r,e.focusedKey):(C=r.getFirstKey)==null?void 0:C.call(r);_==null&&i&&(_=(M=r.getFirstKey)==null?void 0:M.call(r,e.focusedKey)),_!=null&&(h.preventDefault(),w(_))}break;case"ArrowUp":if(r.getKeyAbove){let _=e.focusedKey!=null?(x=r.getKeyAbove)==null?void 0:x.call(r,e.focusedKey):(S=r.getLastKey)==null?void 0:S.call(r);_==null&&i&&(_=(D=r.getLastKey)==null?void 0:D.call(r,e.focusedKey)),_!=null&&(h.preventDefault(),w(_))}break;case"ArrowLeft":if(r.getKeyLeftOf){let _=e.focusedKey!=null?(W=r.getKeyLeftOf)==null?void 0:W.call(r,e.focusedKey):(U=r.getFirstKey)==null?void 0:U.call(r);_==null&&i&&(_=y==="rtl"?(G=r.getFirstKey)==null?void 0:G.call(r,e.focusedKey):(te=r.getLastKey)==null?void 0:te.call(r,e.focusedKey)),_!=null&&(h.preventDefault(),w(_,y==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){let _=e.focusedKey!=null?(se=r.getKeyRightOf)==null?void 0:se.call(r,e.focusedKey):(Y=r.getFirstKey)==null?void 0:Y.call(r);_==null&&i&&(_=y==="rtl"?(pe=r.getLastKey)==null?void 0:pe.call(r,e.focusedKey):(Te=r.getFirstKey)==null?void 0:Te.call(r,e.focusedKey)),_!=null&&(h.preventDefault(),w(_,y==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(e.focusedKey===null&&h.shiftKey)return;h.preventDefault();let _=r.getFirstKey(e.focusedKey,tt(h));e.setFocusedKey(_),_!=null&&(tt(h)&&h.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(_):u&&e.replaceSelection(_))}break;case"End":if(r.getLastKey){if(e.focusedKey===null&&h.shiftKey)return;h.preventDefault();let _=r.getLastKey(e.focusedKey,tt(h));e.setFocusedKey(_),_!=null&&(tt(h)&&h.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(_):u&&e.replaceSelection(_))}break;case"PageDown":if(r.getKeyPageBelow&&e.focusedKey!=null){let _=r.getKeyPageBelow(e.focusedKey);_!=null&&(h.preventDefault(),w(_))}break;case"PageUp":if(r.getKeyPageAbove&&e.focusedKey!=null){let _=r.getKeyPageAbove(e.focusedKey);_!=null&&(h.preventDefault(),w(_))}break;case"a":tt(h)&&e.selectionMode==="multiple"&&s!==!0&&(h.preventDefault(),e.selectAll());break;case"Escape":c==="clearSelection"&&!l&&e.selectedKeys.size!==0&&(h.stopPropagation(),h.preventDefault(),e.clearSelection());break;case"Tab":if(!m){if(h.shiftKey)n.current.focus();else{let _=Le(n.current,{tabbable:!0}),ye,he;do he=_.lastChild(),he&&(ye=he);while(he);let We=ne();ye&&(!Nt(ye)||We&&!el(We))&&de(ye)}break}}},$=a.useRef({top:0,left:0});Et(p,"scroll",()=>{var h,w;$.current={top:((h=p.current)==null?void 0:h.scrollTop)??0,left:((w=p.current)==null?void 0:w.scrollLeft)??0}});let P=h=>{var w,N;if(e.isFocused){H(h.currentTarget,A(h))||e.setFocused(!1);return}if(H(h.currentTarget,A(h))){if(e.setFocused(!0),e.focusedKey==null){let C=x=>{x!=null&&(e.setFocusedKey(x),u&&!e.isSelected(x)&&e.replaceSelection(x))},M=h.relatedTarget;M&&h.currentTarget.compareDocumentPosition(M)&Node.DOCUMENT_POSITION_FOLLOWING?C(e.lastSelectedKey??((w=r.getLastKey)==null?void 0:w.call(r))):C(e.firstSelectedKey??((N=r.getFirstKey)==null?void 0:N.call(r)))}else p.current&&(p.current.scrollTop=$.current.top,p.current.scrollLeft=$.current.left);if(e.focusedKey!=null&&p.current){let C=dr(n,e.focusedKey);C instanceof HTMLElement&&(!Nt(C)&&!f&&de(C),Kt()==="keyboard"&&wo(C,{containingElement:n.current}))}}},k=h=>{H(h.currentTarget,h.relatedTarget)||e.setFocused(!1)},L=a.useRef(!1);Et(n,ic,f?h=>{let{detail:w}=h;h.stopPropagation(),e.setFocused(!0),(w==null?void 0:w.focusStrategy)==="first"&&(L.current=!0)}:void 0),xo(()=>{var h;if(L.current){let w=((h=r.getFirstKey)==null?void 0:h.call(r))??null;if(w==null){let N=ne();Ks(n.current),As(N,null),e.collection.size>0&&(L.current=!1)}else e.setFocusedKey(w),L.current=!1}},[e.collection]),xo(()=>{e.collection.size>0&&(L.current=!1)},[e.focusedKey]),Et(n,oc,f?h=>{var w;h.stopPropagation(),e.setFocused(!1),(w=h.detail)!=null&&w.clearFocusKey&&e.setFocusedKey(null)}:void 0);const j=a.useRef(o),T=a.useRef(!1);a.useEffect(()=>{var h,w;if(j.current){let N=null;o==="first"&&(N=((h=r.getFirstKey)==null?void 0:h.call(r))??null),o==="last"&&(N=((w=r.getLastKey)==null?void 0:w.call(r))??null);let C=e.selectedKeys;if(C.size){for(let M of C)if(e.canSelectItem(M)){N=M;break}}e.setFocused(!0),e.setFocusedKey(N),N==null&&!f&&n.current&&ct(n.current),e.collection.size>0&&(j.current=!1,T.current=!0)}});let R=a.useRef(e.focusedKey),I=a.useRef(null);a.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==R.current||T.current)&&p.current&&n.current){let h=Kt(),w=dr(n,e.focusedKey);if(!(w instanceof HTMLElement))return;(h==="keyboard"||T.current)&&(I.current&&cancelAnimationFrame(I.current),I.current=requestAnimationFrame(()=>{p.current&&(ar(p.current,w),h!=="virtual"&&wo(w,{containingElement:n.current}))}))}!f&&e.isFocused&&e.focusedKey==null&&R.current!=null&&n.current&&ct(n.current),R.current=e.focusedKey,T.current=!1}),a.useEffect(()=>()=>{I.current&&cancelAnimationFrame(I.current)},[]),Et(n,"react-aria-focus-scope-restore",h=>{h.preventDefault(),e.setFocused(!0)});let K={onKeyDown:E,onFocus:P,onBlur:k,onMouseDown(h){p.current===A(h)&&h.preventDefault()}},{typeSelectProps:V}=Tp({keyboardDelegate:r,selectionManager:e});d||(K=X(V,K));let z;f||(z=e.focusedKey==null?0:-1);let B=Cp(e.collection);return{collectionProps:X(K,{tabIndex:z,"data-collection":B})}}class yi{constructor(e){this.ref=e}getItemRect(e){let r=this.ref.current;if(!r)return null;let n=e!=null?dr(this.ref,e):null;if(!n)return null;let o=r.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-o.left-r.clientLeft+r.scrollLeft,y:i.top-o.top-r.clientTop+r.scrollTop,width:i.width,height:i.height}}getContentSize(){let e=this.ref.current;return{width:(e==null?void 0:e.scrollWidth)??0,height:(e==null?void 0:e.scrollHeight)??0}}getVisibleRect(){let e=this.ref.current;return{x:(e==null?void 0:e.scrollLeft)??0,y:(e==null?void 0:e.scrollTop)??0,width:(e==null?void 0:e.clientWidth)??0,height:(e==null?void 0:e.clientHeight)??0}}}class Np{constructor(...e){if(e.length===1){let r=e[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.disabledBehavior=r.disabledBehavior||"all",this.orientation=r.orientation||"vertical",this.direction=r.direction,this.layout=r.layout||"stack",this.layoutDelegate=r.layoutDelegate||new yi(r.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new yi(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}isDisabled(e){var r,n;return this.disabledBehavior==="all"&&(((r=e.props)==null?void 0:r.isDisabled)||this.disabledKeys.has(e.key))&&((n=e.props)==null?void 0:n.disabledBehavior)!=="selection"}findNextNonDisabled(e,r,n=!1){let o=e;for(;o!=null;){let i=this.collection.getItem(o);if((i==null?void 0:i.type)==="item"&&(n||!this.isDisabled(i)))return o;o=r(o)}return null}getNextKey(e,r){let n=e;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,o=>this.collection.getKeyAfter(o),r==null?void 0:r.includeDisabled)}getPreviousKey(e,r){let n=e;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,o=>this.collection.getKeyBefore(o),r==null?void 0:r.includeDisabled)}findKey(e,r,n){let o=e,i=this.layoutDelegate.getItemRect(o);if(!i||o==null)return null;let l=i;do{if(o=r(o),o==null)break;i=this.layoutDelegate.getItemRect(o)}while(i&&n(l,i)&&o!=null);return o}isSameRow(e,r){return e.y===r.y||e.x!==r.x}isSameColumn(e,r){return e.x===r.x||e.y!==r.y}getKeyBelow(e,r){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getNextKey(n,r),this.isSameRow):this.getNextKey(e,r)}getKeyAbove(e,r){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getPreviousKey(n,r),this.isSameRow):this.getPreviousKey(e,r)}getNextColumn(e,r,n){return r?this.getPreviousKey(e,n):this.getNextKey(e,n)}getKeyRightOf(e,r){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,o=>this.layoutDelegate[n](o),r==null?void 0:r.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl",r):this.findKey(e,o=>this.getNextColumn(o,this.direction==="rtl",r),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl",r):null}getKeyLeftOf(e,r){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,o=>this.layoutDelegate[n](o),r==null?void 0:r.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr",r):this.findKey(e,o=>this.getNextColumn(o,this.direction==="ltr",r),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr",r):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,r=>this.collection.getKeyAfter(r))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,r=>this.collection.getKeyBefore(r))}getKeyPageAbove(e){let r=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(r&&!at(r))return this.getFirstKey();let o=e;if(this.orientation==="horizontal"){let i=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>i&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>i&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getFirstKey()}getKeyPageBelow(e){let r=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(r&&!at(r))return this.getLastKey();let o=e;if(this.orientation==="horizontal"){let i=Math.min(this.layoutDelegate.getContentSize().width,n.x-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<i&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<i&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getLastKey()}getKeyForSearch(e,r){if(!this.collator)return null;let n=this.collection,o=r||this.getFirstKey();for(;o!=null;){let i=n.getItem(o);if(!i)return null;let l=i.textValue.slice(0,e.length);if(i.textValue&&this.collator.compare(l,e)===0)return o;o=this.getNextKey(o)}return null}}let ln=new Map;function Dp(t){let{locale:e}=Je(),r=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(ln.has(r))return ln.get(r);let n=new Intl.Collator(e,t);return ln.set(r,n),n}function Lp(t){let{selectionManager:e,collection:r,disabledKeys:n,ref:o,keyboardDelegate:i,layoutDelegate:l,orientation:s}=t,c=Dp({usage:"search",sensitivity:"base"}),u=e.disabledBehavior,d=a.useMemo(()=>i||new Np({collection:r,disabledKeys:n,disabledBehavior:u,ref:o,collator:c,layoutDelegate:l,orientation:s}),[i,l,r,n,o,c,u,s]),{collectionProps:f}=Rp({...t,ref:o,selectionManager:e,keyboardDelegate:d});return{listProps:f}}function Ip(t,e,r){let{shouldFocusWrap:n=!0,onKeyDown:o,onKeyUp:i,...l}=t;!t["aria-label"]&&!t["aria-labelledby"]&&process.env.NODE_ENV!=="production"&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let s=ue(t,{labelable:!0}),{listProps:c}=Lp({...l,ref:r,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:n,linkBehavior:"override"});return $a.set(e,{onClose:t.onClose,onAction:t.onAction,shouldUseVirtualFocus:t.shouldUseVirtualFocus}),{menuProps:X(s,{onKeyDown:o,onKeyUp:i},{role:"menu",...c,onKeyDown:u=>{var d;(u.key!=="Escape"||t.shouldUseVirtualFocus)&&((d=c.onKeyDown)==null||d.call(c,u))}})}}function Kp(t){let{id:e,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:l,focus:s,isDisabled:c,onAction:u,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=t,m=_t();e=ge(e);let p=S=>{if(S.pointerType==="keyboard"&&Nn(S))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(f==="selection"&&o.current){let D=r.getItemProps(n);m.open(o.current,S,D.href,D.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(f==="override"||f==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):S&&S.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||S&&(tt(S)||S.pointerType==="touch"||S.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};a.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(l?Ks(o.current):s?s():ne()!==o.current&&o.current&&ct(o.current))},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,l]),c=c||r.isDisabled(n);let g={};!l&&!c?g={tabIndex:n===r.focusedKey?0:-1,onFocus(S){A(S)===o.current&&r.setFocusedKey(n)}}:c&&(g.onMouseDown=S=>{S.preventDefault()}),a.useEffect(()=>{c&&r.focusedKey===n&&r.setFocusedKey(null)},[r,c,n]);let y=r.isLink(n)&&f==="override",v=u&&t.UNSTABLE_itemBehavior==="action",E=r.isLink(n)&&f!=="selection"&&f!=="none",$=!c&&r.canSelectItem(n)&&!y&&!v,P=(u||E)&&!c,k=P&&(r.selectionBehavior==="replace"?!$:!$||r.isEmpty),L=P&&$&&r.selectionBehavior==="replace",j=k||L,T=a.useRef(null),R=j&&$,I=a.useRef(!1),K=a.useRef(!1),V=r.getItemProps(n),z=S=>{var D;u&&(u(),(D=o.current)==null||D.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))),E&&o.current&&m.open(o.current,S,V.href,V.routerOptions)},B={ref:o};if(i?(B.onPressStart=S=>{T.current=S.pointerType,I.current=R,S.pointerType==="keyboard"&&(!j||$i(S.key))&&p(S)},d?(B.onPressUp=k?void 0:S=>{S.pointerType==="mouse"&&$&&p(S)},B.onPress=k?z:S=>{S.pointerType!=="keyboard"&&S.pointerType!=="mouse"&&$&&p(S)}):B.onPress=S=>{if(k||L&&S.pointerType!=="mouse"){if(S.pointerType==="keyboard"&&!vi(S.key))return;z(S)}else S.pointerType!=="keyboard"&&$&&p(S)}):(B.onPressStart=S=>{T.current=S.pointerType,I.current=R,K.current=k,$&&(S.pointerType==="mouse"&&!k||S.pointerType==="keyboard"&&(!P||$i(S.key)))&&p(S)},B.onPress=S=>{(S.pointerType==="touch"||S.pointerType==="pen"||S.pointerType==="virtual"||S.pointerType==="keyboard"&&j&&vi(S.key)||S.pointerType==="mouse"&&K.current)&&(j?z(S):$&&p(S))}),g["data-collection"]=Pp(r.collection),g["data-key"]=n,B.preventFocusOnPress=l,l&&(B=X(B,{onPressStart(S){S.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(S){S.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),V)for(let S of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])V[S]&&(B[S]=Vt(B[S],V[S]));let{pressProps:h,isPressed:w}=Ze(B),N=L?S=>{T.current==="mouse"&&(S.stopPropagation(),S.preventDefault(),z(S))}:void 0,{longPressProps:C}=va({isDisabled:!R,onLongPress(S){S.pointerType==="touch"&&(p(S),r.setSelectionBehavior("toggle"))}}),M=S=>{T.current==="touch"&&I.current&&S.preventDefault()},x=f!=="none"&&r.isLink(n)?S=>{Ie.isOpening||S.preventDefault()}:void 0;return{itemProps:X(g,$||k||l&&!c?h:{},R?C:{},{onDoubleClick:N,onDragStartCapture:M,onClick:x,id:e},l?{onMouseDown:S=>S.preventDefault()}:void 0),isPressed:w,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:c,allowsSelection:$,hasAction:j}}function vi(t){return t==="Enter"}function $i(t){return t===" "}function Ap(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}const xi=new WeakMap;function Fp(t){let e=xi.get(t);if(e!=null)return e;let r=0,n=o=>{for(let i of o)i.type==="section"?n(Ap(i,t)):i.type==="item"&&r++};return n(t),xi.set(t,r),r}function Op(t,e,r){let{id:n,key:o,closeOnSelect:i,shouldCloseOnSelect:l,isVirtualized:s,"aria-haspopup":c,onPressStart:u,onPressUp:d,onPress:f,onPressChange:m,onPressEnd:p,onClick:g,onHoverStart:y,onHoverChange:v,onHoverEnd:E,onKeyDown:$,onKeyUp:P,onFocus:k,onFocusChange:L,onBlur:j,selectionManager:T=e.selectionManager}=t,R=!!c,I=R&&t["aria-expanded"]==="true",K=t.isDisabled??T.isDisabled(o),V=t.isSelected??T.isSelected(o),z=$a.get(e),B=e.collection.getItem(o),h=t.onClose||z.onClose,w=_t(),N=()=>{var Q;if(!R&&((Q=B==null?void 0:B.props)!=null&&Q.onAction?B.props.onAction():t.onAction&&t.onAction(o),z.onAction)){let gt=z.onAction;gt(o)}},C="menuitem";R||(T.selectionMode==="single"?C="menuitemradio":T.selectionMode==="multiple"&&(C="menuitemcheckbox"));let M=zr(),x=zr(),S=zr(),D={id:n,"aria-disabled":K||void 0,role:C,"aria-label":t["aria-label"],"aria-labelledby":M,"aria-describedby":[t["aria-describedby"],x,S].filter(Boolean).join(" ")||void 0,"aria-controls":t["aria-controls"],"aria-haspopup":c,"aria-expanded":t["aria-expanded"]};if(T.selectionMode!=="none"&&!R&&(D["aria-checked"]=V),s){let Q=Number(B==null?void 0:B.index);D["aria-posinset"]=Number.isNaN(Q)?void 0:Q+1,D["aria-setsize"]=Fp(e.collection)}let W=a.useRef(!1),U=Q=>{m==null||m(Q),W.current=Q},G=a.useRef(null),te=Q=>{Q.pointerType!=="keyboard"&&(G.current={pointerType:Q.pointerType}),Q.pointerType==="mouse"&&(W.current||Q.target.click()),d==null||d(Q)},se=Q=>{var uo,fo;g==null||g(Q),N(),Wi(Q,w,B.props.href,B==null?void 0:B.props.routerOptions);let gt=((uo=G.current)==null?void 0:uo.pointerType)==="keyboard"?((fo=G.current)==null?void 0:fo.key)==="Enter"||T.selectionMode==="none"||T.isLink(o):T.selectionMode!=="multiple"||T.isLink(o);gt=l??i??gt,h&&!R&>&&h(),G.current=null},{itemProps:Y,isFocused:pe}=Kp({id:n,selectionManager:T,key:o,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:z.shouldUseVirtualFocus}),{pressProps:Te,isPressed:_}=Ze({onPressStart:u,onPress:f,onPressUp:te,onPressChange:U,onPressEnd:p,isDisabled:K}),{hoverProps:ye}=Ut({isDisabled:K,onHoverStart(Q){!It()&&!(I&&c)&&(T.setFocused(!0),T.setFocusedKey(o)),y==null||y(Q)},onHoverChange:v,onHoverEnd:E}),{keyboardProps:he}=Il({onKeyDown:Q=>{if(Q.repeat){Q.continuePropagation();return}switch(Q.key){case" ":G.current={pointerType:"keyboard",key:" "},A(Q).click(),vn("keyboard");break;case"Enter":G.current={pointerType:"keyboard",key:"Enter"},A(Q).tagName!=="A"&&A(Q).click(),vn("keyboard");break;default:R||Q.continuePropagation(),$==null||$(Q);break}},onKeyUp:P}),{focusableProps:We}=Dr({onBlur:j,onFocus:k,onFocusChange:L},r),co=ue(B==null?void 0:B.props);delete co.id;let Xa=zi(B==null?void 0:B.props);return{menuItemProps:{...D,...X(co,Xa,R?{onFocus:Y.onFocus,"data-collection":Y["data-collection"],"data-key":Y["data-key"]}:Y,Te,ye,he,We,z.shouldUseVirtualFocus||R?{onMouseDown:Q=>Q.preventDefault()}:void 0,K?void 0:{onClick:se}),tabIndex:Y.tabIndex!=null&&I&&!z.shouldUseVirtualFocus?-1:Y.tabIndex},labelProps:{id:M},descriptionProps:{id:x},keyboardShortcutProps:{id:S},isFocused:pe,isFocusVisible:pe&&T.isFocused&&It()&&!I,isSelected:V,isPressed:_,isDisabled:K}}function jp(t){let{heading:e,"aria-label":r}=t,n=ge();return{itemProps:{role:"presentation"},headingProps:e?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":e?n:void 0}}}const ir=2,Bp=50,_p=1e3,wi=Math.PI/12;function Vp(t){let{menuRef:e,submenuRef:r,isOpen:n,isDisabled:o}=t,i=a.useRef(void 0),l=a.useRef(void 0),s=a.useRef(0),c=a.useRef(void 0),u=a.useRef(void 0),d=a.useRef(void 0),f=a.useRef(2),[m,p]=a.useState(!1);hr({ref:n?r:void 0,onResize:()=>{r.current&&(l.current=r.current.getBoundingClientRect(),d.current=void 0)}});let y=()=>{p(!1),f.current=ir,i.current=void 0},v=Rd(),E=xe($=>{m&&$.preventDefault()});a.useEffect(()=>{m&&e.current?e.current.style.pointerEvents="none":e.current.style.pointerEvents=""},[e,m]),J(()=>{let $=r.current,P=e.current;if(o||!$||!n||v!=="pointer"||!P){y();return}l.current=$.getBoundingClientRect();let k=L=>{if(L.pointerType==="touch"||L.pointerType==="pen")return;let j=Date.now();if(j-s.current<Bp)return;clearTimeout(c.current),clearTimeout(u.current);let{clientX:T,clientY:R}=L;if(!i.current){i.current={x:T,y:R};return}if(!l.current)return;if(d.current||(d.current=T>l.current.right?"left":"right"),T<P.getBoundingClientRect().left||T>P.getBoundingClientRect().right||R<P.getBoundingClientRect().top||R>P.getBoundingClientRect().bottom){y();return}let I=i.current.x,K=i.current.y,V=d.current==="right"?l.current.left-I:I-l.current.right,z=Math.atan2(K-l.current.top,V)+wi,B=Math.atan2(K-l.current.bottom,V)-wi,h=Math.atan2(K-R,d.current==="left"?-(T-I):T-I),w=h<z&&h>B;f.current=w?Math.min(f.current+1,ir):Math.max(f.current-1,0),f.current>=ir?p(!0):p(!1),s.current=j,i.current={x:T,y:R},w&&(c.current=setTimeout(()=>{y(),u.current=setTimeout(()=>{let N=document.elementFromPoint(T,R);N&&H(P,N)&&N.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},_p))};return window.addEventListener("pointermove",k),process.env.NODE_ENV!=="test"&&window.addEventListener("pointerdown",E,!0),()=>{window.removeEventListener("pointermove",k),process.env.NODE_ENV!=="test"&&window.removeEventListener("pointerdown",E,!0),clearTimeout(c.current),clearTimeout(u.current),f.current=ir}},[o,n,e,v,p,r])}function Hp(t,e,r){let{parentMenuRef:n,submenuRef:o,type:i="menu",isDisabled:l,delay:s=200,shouldUseVirtualFocus:c}=t,u=ge(),d=ge(),{direction:f}=Je(),m=a.useRef(void 0),p=a.useCallback(()=>{m.current&&(clearTimeout(m.current),m.current=void 0)},[m]),g=a.useCallback(T=>{p(),e.open(T)},[e,p]),y=a.useCallback(()=>{p(),e.close()},[e,p]);J(()=>()=>{p()},[p]);let v=T=>{if(Nt(T.currentTarget))switch(T.key){case"ArrowLeft":f==="ltr"&&H(T.currentTarget,A(T))&&(T.preventDefault(),T.stopPropagation(),y(),!c&&r.current&&de(r.current));break;case"ArrowRight":f==="rtl"&&H(T.currentTarget,A(T))&&(T.preventDefault(),T.stopPropagation(),y(),!c&&r.current&&de(r.current));break;case"Escape":H(o.current,A(T))&&(T.stopPropagation(),y(),!c&&r.current&&de(r.current));break}},E={id:d,"aria-labelledby":u,submenuLevel:e.submenuLevel,...i==="menu"&&{onClose:e.closeAll,autoFocus:e.focusStrategy??void 0,onKeyDown:v}},$=T=>{switch(T.key){case"ArrowRight":l||(f==="ltr"?(T.preventDefault(),e.isOpen||g("first"),i==="menu"&&(o!=null&&o.current)&&ne()===(r==null?void 0:r.current)&&de(o.current)):e.isOpen?y():T.continuePropagation());break;case"ArrowLeft":l||(f==="rtl"?(T.preventDefault(),e.isOpen||g("first"),i==="menu"&&(o!=null&&o.current)&&ne()===(r==null?void 0:r.current)&&de(o.current)):e.isOpen?y():T.continuePropagation());break;default:T.continuePropagation();break}},P=T=>{!l&&(T.pointerType==="virtual"||T.pointerType==="keyboard")&&g("first")},k=T=>{!l&&(T.pointerType==="touch"||T.pointerType==="mouse")&&g()},L=T=>{l||(T&&!e.isOpen?m.current||(m.current=setTimeout(()=>{g()},s)):T||p())};Et(n,"focusin",T=>{e.isOpen&&H(n.current,A(T))&&A(T)!==r.current&&y()});let j=T=>T!==r.current;return Vp({menuRef:n,submenuRef:o,isOpen:e.isOpen,isDisabled:l}),{submenuTriggerProps:{id:u,"aria-controls":e.isOpen?d:void 0,"aria-haspopup":l?void 0:i,"aria-expanded":e.isOpen?"true":"false",onPressStart:P,onPress:k,onHoverChange:L,onKeyDown:$,isOpen:e.isOpen},submenuProps:E,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:j}}}function wa(t){let e=Cs(t),[r,n]=a.useState(null),[o,i]=a.useState([]),l=()=>{i([]),e.close()};return{focusStrategy:r,...e,open(u=null){n(u),e.open()},toggle(u=null){n(u),e.toggle()},close(){l()},expandedKeysStack:o,openSubmenu:(u,d)=>{i(f=>d>f.length?f:[...f.slice(0,d),u])},closeSubmenu:(u,d)=>{i(f=>f[d]===u?f.slice(0,d):f)}}}function zp(t,e){let{triggerKey:r}=t,{expandedKeysStack:n,openSubmenu:o,closeSubmenu:i,close:l}=e,[s]=a.useState(n==null?void 0:n.length),c=a.useMemo(()=>n[s]===r,[n,r,s]),[u,d]=a.useState(null),f=a.useCallback(g=>{d(g??null),o(r,s)},[o,s,r]),m=a.useCallback(()=>{d(null),i(r,s)},[i,s,r]),p=a.useCallback(g=>{d(g??null),c?m():f(g)},[m,f,c]);return a.useMemo(()=>({focusStrategy:u,isOpen:c,open:f,close:m,closeAll:l,submenuLevel:s,setOpen:()=>{},toggle:p}),[c,f,m,l,u,p,s])}function Wp(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function Up(t){return Gp(t)}function Gp(t,e){for(let r of t)return r}function sn(t,e,r){if(e.parentKey===r.parentKey)return e.index-r.index;let n=[...Ei(t,e),e],o=[...Ei(t,r),r],i=n.slice(0,o.length).findIndex((l,s)=>l!==o[s]);return i!==-1?(e=n[i],r=o[i],e.index-r.index):n.findIndex(l=>l===r)>=0?1:(o.findIndex(l=>l===e)>=0,-1)}function Ei(t,e){let r=[],n=e;for(;(n==null?void 0:n.parentKey)!=null;)n=t.getItem(n.parentKey),n&&r.unshift(n);return r}class Se extends Set{constructor(e,r,n){super(e),e instanceof Se?(this.anchorKey=r??e.anchorKey,this.currentKey=n??e.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}}class Fr{constructor(e,r,n){this.collection=e,this.state=r,this.allowsCellSelection=(n==null?void 0:n.allowsCellSelection)??!1,this._isSelectAll=null,this.layoutDelegate=(n==null?void 0:n.layoutDelegate)||null,this.fullCollection=(n==null?void 0:n.fullCollection)||null}get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,r){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let r=this.getKey(e);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=e.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let n=this.collection.getItem(r);(!e||n&&sn(this.collection,n,e)<0)&&(e=n)}return(e==null?void 0:e.key)??null}get lastSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let n=this.collection.getItem(r);(!e||n&&sn(this.collection,n,e)>0)&&(e=n)}return(e==null?void 0:e.key)??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let r=this.getKey(e);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new Se([r],r,r);else{let o=this.state.selectedKeys,i=o.anchorKey??r;n=new Se(o,i,r);for(let l of this.getKeyRange(i,o.currentKey??r))n.delete(l);for(let l of this.getKeyRange(r,i))this.canSelectItem(l)&&n.add(l)}this.state.setSelectedKeys(n)}getKeyRange(e,r){let n=this.collection.getItem(e),o=this.collection.getItem(r);return n&&o?sn(this.collection,n,o)<=0?this.getKeyRangeInternal(e,r):this.getKeyRangeInternal(r,e):[]}getKeyRangeInternal(e,r){var i;if((i=this.layoutDelegate)!=null&&i.getKeyRange)return this.layoutDelegate.getKeyRange(e,r);let n=[],o=e;for(;o!=null;){let l=this.collection.getItem(o);if(l&&(l.type==="item"||l.type==="cell"&&this.allowsCellSelection)&&n.push(o),o===r)return n;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let r=this.collection.getItem(e);if(!r||r.type==="cell"&&this.allowsCellSelection)return e;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let r=this.getKey(e);if(r==null)return;let n=new Se(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode==="none")return;let r=this.getKey(e);if(r==null)return;let n=this.canSelectItem(r)?new Se([r],r,r):new Se;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode==="none")return;let r=new Se;for(let n of e){let o=this.getKey(n);if(o!=null&&(r.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let e=this.fullCollection??this.collection,r=[],n=o=>{var i;for(;o!=null;){if(this.canSelectItemIn(o,e)){let l=e.getItem(o);(l==null?void 0:l.type)==="item"&&r.push(o),l!=null&&l.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&n(((i=Up(Wp(l,e)))==null?void 0:i.key)??null)}o=e.getKeyAfter(o)}};return n(e.getFirstKey()),r}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Se)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(e.size!==r.size)return!1;for(let n of e)if(!r.has(n))return!1;for(let n of r)if(!e.has(n))return!1;return!0}canSelectItem(e){return this.canSelectItemIn(e,this.collection)}canSelectItemIn(e,r){var o;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let n=r.getItem(e);return!(!n||(o=n==null?void 0:n.props)!=null&&o.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n,o;let r=this.collection.getItem(e);return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!((n=r==null?void 0:r.props)!=null&&n.isDisabled))&&((o=r==null?void 0:r.props)==null?void 0:o.disabledBehavior)!=="selection"}isLink(e){var r,n;return!!((n=(r=this.collection.getItem(e))==null?void 0:r.props)!=null&&n.href)}getItemProps(e){var r;return(r=this.collection.getItem(e))==null?void 0:r.props}withCollection(e){return new Fr(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0,fullCollection:this.fullCollection??this.collection})}}class qp{constructor(e,{expandedKeys:r}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,r=r||new Set;let n=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&(l.type==="section"||r.has(l.key)))for(let s of l.childNodes)n(s)};for(let l of e)n(l);let o=null,i=0;for(let[l,s]of this.keyMap)o?(o.nextKey=l,s.prevKey=o.key):(this.firstKey=l,s.prevKey=void 0),s.type==="item"&&(s.index=i++),o=s,o.nextKey=void 0;this.lastKey=(o==null?void 0:o.key)??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let r=this.keyMap.get(e);return r?r.prevKey??null:null}getKeyAfter(e){let r=this.keyMap.get(e);return r?r.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){const r=[...this.getKeys()];return this.getItem(r[e])}}class Yp{build(e,r){return this.context=r,Si(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:r,items:n}=e;if(a.isValidElement(r)&&r.type===a.Fragment)yield*this.iterateCollection({children:r.props.children,items:n});else if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");let o=0;for(let i of n)yield*this.getFullNode({value:i,index:o},{renderer:r}),o++}else{let o=[];a.Children.forEach(r,l=>{l&&o.push(l)});let i=0;for(let l of o){let s=this.getFullNode({element:l,index:i},{});for(let c of s)i++,yield c}}}getKey(e,r,n,o){if(e.key!=null)return e.key;if(r.type==="cell"&&r.key!=null)return`${o}${r.key}`;let i=r.value;if(i!=null){let l=i.key??i.id;if(l==null)throw new Error("No key found for item");return l}return o?`${o}.${r.index}`:`$.${r.index}`}getChildState(e,r){return{renderer:r.renderer||e.renderer}}*getFullNode(e,r,n,o){if(a.isValidElement(e.element)&&e.element.type===a.Fragment){let c=[];a.Children.forEach(e.element.props.children,d=>{c.push(d)});let u=e.index??0;for(const d of c)yield*this.getFullNode({element:d,index:u++},r,n,o);return}let i=e.element;if(!i&&e.value&&r&&r.renderer){let c=this.cache.get(e.value);if(c&&(!c.shouldInvalidate||!c.shouldInvalidate(this.context))){c.index=e.index,c.parentKey=o?o.key:null,yield c;return}i=r.renderer(e.value)}if(a.isValidElement(i)){let c=i.type;if(typeof c!="function"&&typeof c.getCollectionNode!="function"){let m=i.type;throw new Error(`Unknown element <${m}> in collection.`)}let u=c.getCollectionNode(i.props,this.context),d=e.index??0,f=u.next();for(;!f.done&&f.value;){let m=f.value;e.index=d;let p=m.key??null;p==null&&(p=m.element?null:this.getKey(i,e,r,n));let y=[...this.getFullNode({...m,key:p,index:d,wrapper:Xp(e.wrapper,m.wrapper)},this.getChildState(r,m),n?`${n}${i.key}`:i.key,o)];for(let v of y){if(v.value=m.value??e.value??null,v.value&&this.cache.set(v.value,v),e.type&&v.type!==e.type)throw new Error(`Unsupported type <${an(v.type)}> in <${an((o==null?void 0:o.type)??"unknown parent type")}>. Only <${an(e.type)}> is supported.`);d++,yield v}f=u.next(y)}return}if(e.key==null||e.type==null)return;let l=this,s={type:e.type,props:e.props,key:e.key,parentKey:o?o.key:null,value:e.value??null,level:((o==null?void 0:o.level)??0)+((o==null?void 0:o.type)==="item"?1:0),index:e.index,rendered:e.rendered,textValue:e.textValue??"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:Si(function*(){if(!e.hasChildNodes||!e.childNodes)return;let c=0;for(let u of e.childNodes()){u.key!=null&&(u.key=`${s.key}${u.key}`);let d=l.getFullNode({...u,index:c},l.getChildState(r,u),s.key,s);for(let f of d)c++,yield f}})};yield s}constructor(){this.cache=new WeakMap}}function Si(t){let e=[],r=null;return{*[Symbol.iterator](){for(let n of e)yield n;r||(r=t());for(let n of r)e.push(n),yield n}}}function Xp(t,e){if(t&&e)return r=>t(e(r));if(t)return t;if(e)return e}function an(t){return t[0].toUpperCase()+t.slice(1)}function Zp(t,e,r){let n=a.useMemo(()=>new Yp,[]),{children:o,items:i,collection:l}=t;return a.useMemo(()=>{if(l)return l;let c=n.build({children:o,items:i},r);return e(c)},[n,o,i,l,r,e])}function Jp(t,e){if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;return!0}function Ea(t){let{selectionMode:e="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:i="all"}=t,l=a.useRef(!1),[,s]=a.useState(!1),c=a.useRef(null),u=a.useRef(null),[,d]=a.useState(null),f=a.useMemo(()=>Ci(t.selectedKeys),[t.selectedKeys]),m=a.useMemo(()=>Ci(t.defaultSelectedKeys,new Se),[t.defaultSelectedKeys]),[p,g]=Lr(f,m,t.onSelectionChange),y=a.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[v,E]=a.useState(o);o==="replace"&&v==="toggle"&&typeof p=="object"&&p.size===0&&E("replace");let $=a.useRef(o);return a.useEffect(()=>{o!==$.current&&(E(o),$.current=o)},[o]),{selectionMode:e,disallowEmptySelection:r,selectionBehavior:v,setSelectionBehavior:E,get isFocused(){return l.current},setFocused(P){l.current=P,s(P)},get focusedKey(){return c.current},get childFocusStrategy(){return u.current},setFocusedKey(P,k="first"){c.current=P,u.current=k,d(P)},selectedKeys:p,setSelectedKeys(P){(n||!Jp(P,p))&&g(P)},disabledKeys:y,disabledBehavior:i}}function Ci(t,e){return t?t==="all"?"all":new Se(t):e}function Qp(t){let{onExpandedChange:e}=t,[r,n]=Lr(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,e),o=Ea(t),i=a.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),l=Zp(t,a.useCallback(c=>new qp(c,{expandedKeys:r}),[r]),null);return a.useEffect(()=>{o.focusedKey!=null&&!l.getItem(o.focusedKey)&&o.setFocusedKey(null)},[l,o.focusedKey]),{collection:l,expandedKeys:r,disabledKeys:i,toggleKey:c=>{n(eh(r,c))},setExpandedKeys:n,selectionManager:new Fr(l,o)}}function eh(t,e){let r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r}const Qn=a.createContext(null),Or=a.createContext(null),Cr=a.createContext(null),Pr=a.createContext(null);function th(t){let e=wa(t),r=a.useRef(null),{menuTriggerProps:n,menuProps:o}=Sp({...t,type:"menu"},e,r),i=a.useRef(null);return xl()?null:a.createElement(ht,{values:[[Qn,{...o,ref:i}],[eo,e],[Cr,e],[Zn,{trigger:"MenuTrigger",triggerRef:r,scrollRef:i,placement:"bottom start","aria-labelledby":o["aria-labelledby"]}]]},a.createElement(jf,{...n,ref:r,isPressed:e.isOpen},t.children))}const Sa=a.createContext(null),ao=class ao extends bt{filter(e,r,n){let o=e.getItem(this.firstChildKey);if(o&&n(o.textValue,this)){let i=this.clone();return r.addDescendants(i,e),i}return null}};ao.type="submenutrigger";let Dn=ao;const rh=Ls(Dn,(t,e,r)=>{let{CollectionBranch:n}=a.useContext(Ar),o=a.useContext(Or),i=a.useContext(Cr),l=zp({triggerKey:r.key},i),s=a.useRef(null),c=zt(e),{parentMenuRef:u,shouldUseVirtualFocus:d}=a.useContext(Sa),{submenuTriggerProps:f,submenuProps:m,popoverProps:p}=Hp({parentMenuRef:u,submenuRef:s,delay:t.delay,shouldUseVirtualFocus:d},l,c);return a.createElement(ht,{values:[[ut,{...f,onAction:void 0,ref:c}],[Qn,{ref:s,...m}],[eo,l],[Zn,{trigger:"SubmenuTrigger",triggerRef:c,placement:"end top","aria-labelledby":m["aria-labelledby"],...p}]]},a.createElement(n,{collection:o.collection,parent:r}),t.children[1])},t=>t.children[0]),nh=a.forwardRef(function(e,r){return[e,r]=Oe(e,r,Qn),a.createElement(Qf,{content:a.createElement(ip,e)},n=>a.createElement(oh,{props:e,collection:n,menuRef:r}))});function oh({props:t,collection:e,menuRef:r}){[t,r]=Oe(t,r,gi);let{filter:n,...o}=t,i=a.useMemo(()=>n?e.filter(n):e,[e,n]),l=Qp({...t,collection:i,children:void 0}),s=a.useContext(Cr),{isVirtualized:c,CollectionRoot:u}=a.useContext(Ar),{menuProps:d}=Ip({...t,isVirtualized:c,onClose:t.onClose||(s==null?void 0:s.close)},l,r),f=Fe({...t,children:void 0,defaultClassName:"react-aria-Menu",values:{isEmpty:l.collection.size===0}}),m=null;l.collection.size===0&&t.renderEmptyState&&(m=a.createElement("div",{role:"menuitem",style:{display:"contents"}},t.renderEmptyState()));let p=ue(t,{global:!0});return a.createElement(jl,null,a.createElement(Ce.div,{...X(p,f,d),ref:r,slot:t.slot||void 0,"data-empty":l.collection.size===0||void 0,onScroll:t.onScroll},a.createElement(ht,{values:[[Or,l],[Jn,{elementType:"div"}],[sp,{name:"MenuSection",render:Ca}],[Sa,{parentMenuRef:r,shouldUseVirtualFocus:o==null?void 0:o.shouldUseVirtualFocus}],[ut,{shouldCloseOnSelect:t.shouldCloseOnSelect}],[gi,null],[pp,null],[Pr,l.selectionManager],[Cr,s??wa({})]]},a.createElement(gp,null,a.createElement(u,{collection:l.collection,persistedKeys:up(l.selectionManager.focusedKey),scrollRef:r}))),m))}class ih extends Fr{constructor(e,r){super(e.collection,r),this.parent=e}get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,r){return this.parent.setFocusedKey(e,r)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}}function Ca(t,e,r,n="react-aria-MenuSection"){var v,E,$;let o=a.useContext(Or),{CollectionBranch:i}=a.useContext(Ar),[l,s]=$l(),{headingProps:c,groupProps:u}=jp({heading:s,"aria-label":r.props["aria-label"]??void 0}),d=Fe({...t,id:void 0,children:void 0,defaultClassName:n,className:(v=r.props)==null?void 0:v.className,style:(E=r.props)==null?void 0:E.style,values:void 0}),f=a.useContext(Pr),m=Ea(t),p=t.selectionMode!=null?new ih(f,m):f,g=($=Wt(ut))==null?void 0:$.shouldCloseOnSelect,y=ue(t,{global:!0});return delete y.id,a.createElement(Ce.section,{...X(y,d,u),ref:e},a.createElement(ht,{values:[[hp,{...c,ref:l}],[Pr,p],[ut,{shouldCloseOnSelect:t.shouldCloseOnSelect??g}]]},a.createElement(i,{collection:o.collection,parent:r})))}const lh=Ls(Tn,Ca),ut=a.createContext(null),sh=Ds(kn,function(e,r,n){var P;[e,r]=Oe(e,r,ut);let o=(P=Wt(ut))==null?void 0:P.id,i=a.useContext(Or),l=zt(r),s=a.useContext(Pr),{isVirtualized:c}=a.useContext(Ar),{menuItemProps:u,labelProps:d,descriptionProps:f,keyboardShortcutProps:m,...p}=Op({...e,id:o,key:n.key,selectionManager:s,isVirtualized:c},i,l),{hoverProps:g,isHovered:y}=Ut({isDisabled:p.isDisabled}),v=Fe({...e,id:void 0,children:n.rendered,defaultClassName:"react-aria-MenuItem",values:{...p,isHovered:y,isFocusVisible:p.isFocusVisible,selectionMode:s.selectionMode,selectionBehavior:s.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),E=e.href?Ce.a:Ce.div,$=ue(e,{global:!0});return delete $.id,delete $.onClick,a.createElement(E,{...X($,v,u,g),ref:l,"data-disabled":p.isDisabled||void 0,"data-hovered":y||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":p.isFocusVisible||void 0,"data-pressed":p.isPressed||void 0,"data-selected":p.isSelected||void 0,"data-selection-mode":s.selectionMode==="none"?void 0:s.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},a.createElement(ht,{values:[[Fs,{slots:{[vl]:d,label:d,description:f}}],[bp,m],[yp,{isSelected:p.isSelected}]]},v.children))}),eo=a.createContext(null),ah=a.createContext(null),ch=a.createContext(null);function uh(t,e,r){let{validationBehavior:n,focus:o}=t;J(()=>{if(n==="native"&&(r!=null&&r.current)&&!r.current.disabled){let u=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(u),r.current.hasAttribute("title")||(r.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(fh(r.current))}});let i=a.useRef(!1),l=xe(()=>{i.current||e.resetValidation()}),s=xe(u=>{var f,m;e.displayValidation.isInvalid||e.commitValidation();let d=(f=r==null?void 0:r.current)==null?void 0:f.form;!u.defaultPrevented&&r&&d&&ph(d)===r.current&&(o?o():(m=r.current)==null||m.focus(),vn("keyboard")),u.preventDefault()}),c=xe(()=>{e.commitValidation()});a.useEffect(()=>{let u=r==null?void 0:r.current;if(!u)return;let d=u.form,f=d==null?void 0:d.reset;return d&&(d.reset=()=>{i.current=!window.event||window.event.type==="message"&&A(window.event)instanceof MessagePort,f==null||f.call(d),i.current=!1}),u.addEventListener("invalid",s),u.addEventListener("change",c),d==null||d.addEventListener("reset",l),()=>{u.removeEventListener("invalid",s),u.removeEventListener("change",c),d==null||d.removeEventListener("reset",l),d&&(d.reset=f)}},[r,n])}function dh(t){let e=t.validity;return{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function fh(t){return{isInvalid:!t.validity.valid,validationDetails:dh(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function ph(t){var e;for(let r=0;r<t.elements.length;r++){let n=t.elements[r];if(((e=n.validity)==null?void 0:e.valid)===!1)return n}return null}function hh(t,e){let{elementType:r="a",onPress:n,onPressStart:o,onPressEnd:i,onClick:l,isDisabled:s,...c}=t,u={};r!=="a"&&(u={role:"link",tabIndex:s?void 0:0});let{focusableProps:d}=Dr(t,e),{pressProps:f,isPressed:m}=Ze({onPress:n,onPressStart:o,onPressEnd:i,onClick:l,isDisabled:s,ref:e}),p=ue(c,{labelable:!0}),g=X(d,f),y=_t(),v=zi(t);return{isPressed:m,linkProps:X(p,v,{...g,...u,"aria-disabled":s||void 0,"aria-current":t["aria-current"],onClick:E=>{var $;($=f.onClick)==null||$.call(f,E),Wi(E,y,t.href,t.routerOptions)}})}}const bh=a.createContext(null),mh=a.forwardRef(function(e,r){[e,r]=Oe(e,r,bh);let n=e.href&&!e.isDisabled?"a":"span",{linkProps:o,isPressed:i}=hh({...e,elementType:n},r),l=Ce[n],{hoverProps:s,isHovered:c}=Ut(e),{focusProps:u,isFocused:d,isFocusVisible:f}=qn(),m=Fe({...e,defaultClassName:"react-aria-Link",values:{isCurrent:!!e["aria-current"],isDisabled:e.isDisabled||!1,isPressed:i,isHovered:c,isFocused:d,isFocusVisible:f}}),p=ue(e,{global:!0});return delete p.onClick,a.createElement(l,{ref:r,slot:e.slot||void 0,...X(p,m,o,s,u),"data-focused":d||void 0,"data-hovered":c||void 0,"data-pressed":i||void 0,"data-focus-visible":f||void 0,"data-current":!!e["aria-current"]||void 0,"data-disabled":e.isDisabled||void 0},m.children)}),Pa=a.createContext({}),Pi=({children:t,className:e,...r})=>{const n=a.useMemo(()=>rd(),[]);return b.jsx(Pa,{value:{slots:n},children:b.jsx(mh,{...r,className:je(e,n==null?void 0:n.base()),children:o=>b.jsx(b.Fragment,{children:typeof t=="function"?t(o):t})})})},gh=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(Pa);return b.jsx(ie.span,{className:ce(n==null?void 0:n.icon,e),"data-default-icon":Gd(!t),"data-slot":"link-icon",...r,children:t??b.jsx(Yd,{"data-slot":"link-default-icon"})})},to=Object.assign(Pi,{Root:Pi,Icon:gh});function yh(t={}){let{isReadOnly:e}=t,[r,n]=Lr(t.isSelected,t.defaultSelected||!1,t.onChange),[o]=a.useState(r);function i(s){e||n(s)}function l(){e||n(!r)}return{isSelected:r,defaultSelected:t.defaultSelected??o,setSelected:i,toggle:l}}const vh=a.createContext({}),$h="__button_group_child",ki=({children:t,className:e,fullWidth:r,isDisabled:n,isIconOnly:o,size:i,slot:l,style:s,variant:c,[$h]:u,...d})=>{const f=a.useContext(vh),m=u===!0,p=i??(m?f==null?void 0:f.size:void 0),g=c??(m?f==null?void 0:f.variant:void 0),y=n??(m?f==null?void 0:f.isDisabled:void 0),v=r??(m?f==null?void 0:f.fullWidth:void 0),E=ze({fullWidth:v,isIconOnly:o,size:p,variant:g});return b.jsx(Al,{className:je(e,E),"data-slot":"button",isDisabled:y,slot:l,style:s,...d,children:$=>typeof t=="function"?t($):t})},xh=Object.assign(ki,{Root:ki}),mt=a.createContext({}),Ti=({children:t,className:e,variant:r="default",...n})=>{const o=a.useMemo(()=>Ju({variant:r}),[r]),i=b.jsx(ie.div,{className:o.base({className:e}),"data-slot":"card",...n,children:t});return b.jsx(mt,{value:{slots:o},children:r==="transparent"?i:b.jsx(Yn,{value:{variant:r},children:i})})},wh=({className:t,...e})=>{const{slots:r}=a.useContext(mt);return b.jsx(ie.div,{className:ce(r==null?void 0:r.header,t),"data-slot":"card-header",...e})},Eh=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(mt);return b.jsx(ie.h3,{className:ce(n==null?void 0:n.title,e),"data-slot":"card-title",...r,children:t})},Sh=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(mt);return b.jsx(ie.p,{className:ce(n==null?void 0:n.description,e),"data-slot":"card-description",...r,children:t})},Ch=({className:t,...e})=>{const{slots:r}=a.useContext(mt);return b.jsx(ie.div,{className:ce(r==null?void 0:r.content,t),"data-slot":"card-content",...e})},Ph=({className:t,...e})=>{const{slots:r}=a.useContext(mt);return b.jsx(ie.div,{className:ce(r==null?void 0:r.footer,t),"data-slot":"card-footer",...e})},kt=Object.assign(Ti,{Root:Ti,Header:wh,Title:Eh,Description:Sh,Content:Ch,Footer:Ph}),kh=new WeakMap;function Th(t=!0){let[e,r]=a.useState(t),n=a.useRef(!1),o=a.useCallback(i=>{n.current=!0,r(!!i)},[]);return J(()=>{n.current||r(!1)},[]),[o,e]}function Mi(t=!0){let e=ge(),[r,n]=Th(t);return{id:n?e:void 0,ref:r}}const ka={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Ta={...ka,customError:!0,valid:!1},rt={isInvalid:!1,validationDetails:ka,validationErrors:[]},Mh=a.createContext({}),kr="__reactAriaFormValidationState";function Ma(t){if(t[kr]){let{realtimeValidation:e,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}=t[kr];return{realtimeValidation:e,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}}return Rh(t)}function Rh(t){let{isInvalid:e,validationState:r,name:n,value:o,builtinValidation:i,validate:l,validationBehavior:s="aria"}=t;r&&(e||(e=r==="invalid"));let c=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:Ta}:null,u=a.useMemo(()=>{if(!l||o==null)return null;let K=Nh(l,o);return Ri(K)},[l,o]);i!=null&&i.validationDetails.valid&&(i=void 0);let d=a.useContext(Mh),f=a.useMemo(()=>n?Array.isArray(n)?n.flatMap(K=>Ln(d[K])):Ln(d[n]):[],[d,n]),[m,p]=a.useState(d),[g,y]=a.useState(!1);d!==m&&(p(d),y(!1));let v=a.useMemo(()=>Ri(g?[]:f),[g,f]),E=a.useRef(rt),[$,P]=a.useState(rt),k=a.useRef(rt),L=()=>{if(!j)return;T(!1);let K=u||i||E.current;cn(K,k.current)||(k.current=K,P(K))},[j,T]=a.useState(!1);return a.useEffect(L),{realtimeValidation:c||v||u||i||rt,displayValidation:s==="native"?c||v||$:c||v||u||i||$,updateValidation(K){s==="aria"&&!cn($,K)?P(K):E.current=K},resetValidation(){let K=rt;cn(K,k.current)||(k.current=K,P(K)),s==="native"&&T(!1),y(!0)},commitValidation(){s==="native"&&T(!0),y(!0)}}}function Ln(t){return t?Array.isArray(t)?t:[t]:[]}function Nh(t,e){if(typeof t=="function"){let r=t(e);if(r&&typeof r!="boolean")return Ln(r)}return[]}function Ri(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:Ta}:null}function cn(t,e){return t===e?!0:!!t&&!!e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((r,n)=>r===e.validationErrors[n])&&Object.entries(t.validationDetails).every(([r,n])=>e.validationDetails[r]===n)}function Dh(t,e,r){let{isDisabled:n=!1,isReadOnly:o=!1,value:i,name:l,form:s,children:c,isRequired:u,validationBehavior:d="aria","aria-label":f,"aria-labelledby":m,"aria-describedby":p,onPressStart:g,onPressEnd:y,onPressChange:v,onPress:E,onPressUp:$,onClick:P}=t,k=Ma({...t,value:e.isSelected}),{isInvalid:L,validationErrors:j,validationDetails:T}=k.displayValidation;uh(t,k,r);let R=D=>{D.stopPropagation(),e.setSelected(A(D).checked)},I=c!=null,K=f!=null||m!=null;!I&&!K&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:V,isPressed:z}=Ze({onPressStart:g,onPressEnd:y,onPressChange:v,onPress:E,onPressUp:$,onClick:P,isDisabled:n}),[B,h]=a.useState(!1),{pressProps:w}=Ze({onPressStart(D){if(D.pointerType==="keyboard"||D.pointerType==="virtual"){D.continuePropagation();return}g==null||g(D),v==null||v(!0),h(!0)},onPressEnd(D){if(D.pointerType==="keyboard"||D.pointerType==="virtual"){D.continuePropagation();return}y==null||y(D),v==null||v(!1),h(!1)},onPressUp(D){if(D.pointerType==="keyboard"||D.pointerType==="virtual"){D.continuePropagation();return}$==null||$(D)},onClick:P,onPress(D){var G;if(D.pointerType==="keyboard"||D.pointerType==="virtual"){D.continuePropagation();return}E==null||E(D),e.toggle(),(G=r.current)==null||G.focus();let{[kr]:W}=t,{commitValidation:U}=W||k;U()},isDisabled:n||o}),{focusableProps:N}=Dr(t,r),C=X(V,N),M=ue(t,{labelable:!0});Wc(r,e.defaultSelected,e.setSelected);let x=Mi(),S=Mi();return{labelProps:X(w,{onClick:D=>D.preventDefault()}),inputProps:X(M,{checked:e.isSelected,"aria-required":u&&d==="aria"||void 0,required:u&&d==="native","aria-invalid":L||t.validationState==="invalid"||void 0,"aria-errormessage":t["aria-errormessage"],"aria-controls":t["aria-controls"],"aria-readonly":o||void 0,"aria-describedby":[x.id,S.id,p].filter(Boolean).join(" ")||void 0,onChange:R,disabled:n,...i==null?{}:{value:i},name:l,form:s,type:"checkbox",...C}),descriptionProps:x,errorMessageProps:S,isSelected:e.isSelected,isPressed:z||B,isDisabled:n,isReadOnly:o,isInvalid:L||t.validationState==="invalid",validationErrors:j,validationDetails:T}}function Ra(t,e,r){let{labelProps:n,inputProps:o,descriptionProps:i,errorMessageProps:l,isSelected:s,isPressed:c,isDisabled:u,isReadOnly:d,isInvalid:f,validationErrors:m,validationDetails:p}=Dh(t,e,r),{isIndeterminate:g}=t;return a.useEffect(()=>{r.current&&(r.current.indeterminate=!!g)}),{labelProps:X(n,a.useMemo(()=>({onMouseDown:y=>y.preventDefault()}),[])),inputProps:o,descriptionProps:i,errorMessageProps:l,isSelected:s,isPressed:c,isDisabled:u,isReadOnly:d,isInvalid:f,validationErrors:m,validationDetails:p}}const Lh=typeof document<"u"?a.useInsertionEffect??a.useLayoutEffect:()=>{};function Ih(t,e,r){let[n,o]=a.useState(t||e),i=a.useRef(n),l=a.useRef(t!==void 0),s=t!==void 0;a.useEffect(()=>{let f=l.current;f!==s&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${f?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),l.current=s},[s]);let c=s?t:n;Lh(()=>{i.current=c});let[,u]=a.useReducer(()=>({}),{}),d=a.useCallback((f,...m)=>{let p=typeof f=="function"?f(i.current):f;Object.is(i.current,p)||(i.current=p,o(p),u(),r==null||r(p,...m))},[r]);return[c,d]}function Kh(t={}){let{isReadOnly:e}=t,[r,n]=Ih(t.isSelected,t.defaultSelected||!1,t.onChange),[o]=a.useState(r);function i(s){e||n(s)}function l(){e||n(!r)}return{isSelected:r,defaultSelected:t.defaultSelected??o,setSelected:i,toggle:l}}function Ah(t,e,r){const n=Kh({isReadOnly:t.isReadOnly||e.isReadOnly,isSelected:e.isSelected(t.value),defaultSelected:e.defaultValue.includes(t.value),onChange(y){y?e.addValue(t.value):e.removeValue(t.value),t.onChange&&t.onChange(y)}});let{name:o,form:i,descriptionId:l,errorMessageId:s,validationBehavior:c}=kh.get(e);c=t.validationBehavior??c;let{realtimeValidation:u}=Ma({...t,value:n.isSelected,name:void 0,validationBehavior:"aria"}),d=a.useRef(rt),f=()=>{e.setInvalid(t.value,u.isInvalid?u:d.current)};a.useEffect(f);let m=e.realtimeValidation.isInvalid?e.realtimeValidation:u,p=c==="native"?e.displayValidation:m,g=Ra({...t,isReadOnly:t.isReadOnly||e.isReadOnly,isDisabled:t.isDisabled||e.isDisabled,name:t.name||o,form:t.form||i,isRequired:t.isRequired??e.isRequired,validationBehavior:c,[kr]:{realtimeValidation:m,displayValidation:p,resetValidation:e.resetValidation,commitValidation:e.commitValidation,updateValidation(y){d.current=y,f()}}},n,r);return{...g,inputProps:{...g.inputProps,"aria-describedby":[g.inputProps["aria-describedby"],e.isInvalid?s:null,l].filter(Boolean).join(" ")||void 0}}}const Fh=a.createContext(null),Na=a.createContext(null),Da=a.createContext(null),Oh=a.forwardRef(function(e,r){let{inputRef:n=null,...o}=e;[e,r]=Oe(o,r,Fh);let i=a.useContext(Na),[l,s]=jh(e,n),{descriptionProps:c,errorMessageProps:u,isSelected:d,isDisabled:f,isReadOnly:m,isInvalid:p,validationDetails:g,validationErrors:y}=l,v=Fe({...e,defaultClassName:"react-aria-CheckboxField",values:{isSelected:d,isIndeterminate:e.isIndeterminate||!1,isDisabled:f,isReadOnly:m,isInvalid:p,isRequired:e.isRequired||!1}}),E=ue(e,{global:!0});return delete E.id,delete E.onClick,a.createElement(Ce.div,{...X(E,v),ref:r,slot:e.slot||void 0,"data-selected":d||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-disabled":f||void 0,"data-readonly":m||void 0,"data-invalid":p||void 0,"data-required":e.isRequired||void 0},a.createElement(ht,{values:[[Da,{...l,inputRef:s,defaultClassName:"react-aria-CheckboxButton",isIndeterminate:e.isIndeterminate,isRequired:e.isRequired}],[Fs,{slots:{description:c,errorMessage:u}}],[ah,i?null:{isInvalid:p,validationDetails:g,validationErrors:y}]]},v.children))});function jh(t,e){let{validationBehavior:r}=Wt(ch)||{},n=t.validationBehavior??r??"native",o=a.useContext(Na),i=zt(a.useMemo(()=>Ht(e,t.inputRef!==void 0?t.inputRef:null),[e,t.inputRef])),l={...ad(t),children:typeof t.children=="function"?!0:t.children,value:t.value,validationBehavior:n};return[o?Ah(l,o,i):Ra(l,yh(t),i),i]}const Bh=a.forwardRef(function(e,r){let{labelProps:n,inputProps:o,isSelected:i,isDisabled:l,isReadOnly:s,isPressed:c,isInvalid:u,inputRef:d,defaultClassName:f,isIndeterminate:m,isRequired:p}=a.useContext(Da),{isFocused:g,isFocusVisible:y,focusProps:v}=qn(),E=l||s,{hoverProps:$,isHovered:P}=Ut({...e,isDisabled:E}),k=Fe({...e,defaultClassName:f,values:{isSelected:i,isIndeterminate:m||!1,isPressed:c,isHovered:P,isFocused:g,isFocusVisible:y,isDisabled:l,isReadOnly:s,isInvalid:u,isRequired:p||!1}}),L=ue(e,{global:!0});return delete L.id,delete L.onClick,a.createElement(Ce.label,{...X(L,n,$,k),ref:r,slot:e.slot||void 0,"data-selected":i||void 0,"data-indeterminate":m||void 0,"data-pressed":c||void 0,"data-hovered":P||void 0,"data-focused":g||void 0,"data-focus-visible":y||void 0,"data-disabled":l||void 0,"data-readonly":s||void 0,"data-invalid":u||void 0,"data-required":p||void 0},a.createElement(Ss,{elementType:"span"},a.createElement("input",{...X(o,v),ref:d})),k.children)}),_h=a.createContext({}),jr=a.createContext({}),In=({children:t,className:e,variant:r,...n})=>{const o=a.useContext(_h),i=r??o.variant,l=a.useMemo(()=>Qu({variant:i}),[i]);return b.jsx(Oh,{"data-slot":"checkbox",...n,className:je(e,l.base()),children:s=>b.jsx(jr,{value:{slots:l,state:s},children:typeof t=="function"?t(s):t})})};In.displayName="HeroUI.Checkbox";const La=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(jr);return b.jsx(Bh,{"data-slot":"checkbox-content",...r,className:je(e,n==null?void 0:n.content()),children:t})};La.displayName="HeroUI.Checkbox.Content";const Ia=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(jr);return b.jsx(ie.span,{className:ce(n==null?void 0:n.control,e),"data-slot":"checkbox-control",...r,children:t})};Ia.displayName="HeroUI.Checkbox.Control";const Ka=({children:t,className:e,...r})=>{const{slots:n,state:o}=a.useContext(jr),i=o==null?void 0:o.isSelected,l=o==null?void 0:o.isIndeterminate,s=typeof t=="function"?t(o??{}):t||(l?b.jsx("svg",{"aria-hidden":"true","data-slot":"checkbox-default-indicator--indeterminate",fill:"none",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeWidth:3,viewBox:"0 0 24 24",children:b.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})}):b.jsx("svg",{"aria-hidden":"true","data-slot":"checkbox-default-indicator--checkmark",fill:"none",role:"presentation",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:i?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 17 18",children:b.jsx("polyline",{points:"1 9 7 14 15 4"})}));return b.jsx(ie.span,{"aria-hidden":"true",className:ce(n==null?void 0:n.indicator,e),"data-slot":"checkbox-indicator",...r,children:s})};Ka.displayName="HeroUI.Checkbox.Indicator";const lr=Object.assign(In,{Root:In,Content:La,Control:Ia,Indicator:Ka}),Aa=a.createContext({}),Ni=({children:t,className:e,color:r,size:n,variant:o,...i})=>{const l=a.useMemo(()=>ed({color:r,size:n,variant:o}),[r,n,o]),s=a.useMemo(()=>typeof t=="string"||typeof t=="number"?b.jsx(Fa,{children:t}):t,[t]);return b.jsx(Aa,{value:{slots:l},children:b.jsx(ie.span,{...i,className:ce(l.base,e),"data-slot":"chip",children:s})})},Fa=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(Aa);return b.jsx(ie.span,{className:ce(n==null?void 0:n.label,e),"data-slot":"chip-label",...r,children:t})},Tr=Object.assign(Ni,{Root:Ni,Label:Fa}),Br=a.createContext({}),Kn=({children:t,className:e,color:r,size:n,...o})=>{const i=a.useMemo(()=>nd({color:r,size:n}),[r,n]);return b.jsx(Cd,{"data-slot":"progress-bar",...o,className:je(e,i.base()),children:l=>b.jsx(Br,{value:{slots:i,state:l},children:typeof t=="function"?t(l):t})})};Kn.displayName="HeroUI.ProgressBar";const Oa=({children:t,className:e,...r})=>{const{slots:n,state:o}=a.useContext(Br);return b.jsx(ie.span,{className:ce(n==null?void 0:n.output,e),"data-slot":"progress-bar-output",...r,children:t??(o==null?void 0:o.valueText)})};Oa.displayName="HeroUI.ProgressBar.Output";const ja=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(Br);return b.jsx(ie.div,{className:ce(n==null?void 0:n.track,e),"data-slot":"progress-bar-track",...r,children:t})};ja.displayName="HeroUI.ProgressBar.Track";const Ba=({className:t,style:e,...r})=>{const{slots:n,state:o}=a.useContext(Br);return b.jsx(ie.div,{className:ce(n==null?void 0:n.fill,t),"data-slot":"progress-bar-fill",style:{...e,width:o!=null&&o.isIndeterminate?void 0:`${(o==null?void 0:o.percentage)??0}%`},...r})};Ba.displayName="HeroUI.ProgressBar.Fill";const sr=Object.assign(Kn,{Root:Kn,Output:Oa,Track:ja,Fill:Ba}),Di=({className:t,orientation:e,variant:r,...n})=>{const o=Wt(Jn),i=e??(o==null?void 0:o.orientation)??"horizontal";return b.jsx($p,{"data-orientation":i,"data-slot":"separator",orientation:i,className:ld({orientation:i,variant:r,className:t}),...n})},Vh=Object.assign(Di,{Root:Di}),Gt=a.createContext({}),Li=({children:t,className:e,status:r,...n})=>{const o=a.useMemo(()=>Zu({status:r}),[r]);return b.jsx(Gt,{value:{slots:o,status:r},children:b.jsx(Yn,{value:{variant:"default"},children:b.jsx(ie.div,{className:o==null?void 0:o.base({className:e}),"data-slot":"alert-root",...n,children:t})})})},Hh=({children:t,className:e,...r})=>{const{slots:n,status:o}=a.useContext(Gt),i=()=>{switch(o){case"accent":return b.jsx(zo,{"data-slot":"alert-default-icon"});case"success":return b.jsx(Jd,{"data-slot":"alert-default-icon"});case"warning":return b.jsx(Xd,{"data-slot":"alert-default-icon"});case"danger":return b.jsx(Zd,{"data-slot":"alert-default-icon"});default:return b.jsx(zo,{"data-slot":"alert-default-icon"})}};return b.jsx(ie.div,{className:ce(n==null?void 0:n.indicator,e),"data-slot":"alert-indicator",...r,children:t??i()})},zh=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(Gt);return b.jsx(ie.div,{className:ce(n==null?void 0:n.content,e),"data-slot":"alert-content",...r,children:t})},Wh=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(Gt);return b.jsx(ie.p,{className:ce(n==null?void 0:n.title,e),"data-slot":"alert-title",...r,children:t})},Uh=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(Gt);return b.jsx(ie.span,{className:ce(n==null?void 0:n.description,e),"data-slot":"alert-description",...r,children:t})},$t=Object.assign(Li,{Root:Li,Indicator:Hh,Content:zh,Title:Wh,Description:Uh}),ro=a.createContext({}),Gh=({children:t,className:e,variant:r,...n})=>{const o=a.useMemo(()=>od({variant:r}),[r]);return b.jsx(sh,{className:je(e,o.item()),"data-slot":"menu-item",...n,children:i=>b.jsx(ro,{value:{slots:o,state:i},children:typeof t=="function"?t(i):t})})},qh=({children:t,className:e,type:r="checkmark",...n})=>{const{slots:o,state:i}=a.useContext(ro),l=i==null?void 0:i.isSelected,s=typeof t=="function"?t(i??{}):t||(r==="dot"?b.jsx("svg",{"aria-hidden":"true","data-slot":"menu-item-indicator--dot",fill:"currentColor",fillRule:"evenodd",role:"presentation",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{clipRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14",fillRule:"evenodd"})}):b.jsx("svg",{"aria-hidden":"true","data-slot":"menu-item-indicator--checkmark",fill:"none",role:"presentation",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:l?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 17 18",children:b.jsx("polyline",{points:"1 9 7 14 15 4"})}));return b.jsx(ie.span,{"aria-hidden":"true",className:ce(o==null?void 0:o.indicator,e),"data-slot":"menu-item-indicator","data-type":r,"data-visible":l||void 0,...n,children:s})},Yh=({children:t,className:e,...r})=>{const{slots:n,state:o}=a.useContext(ro);if(!(o==null?void 0:o.hasSubmenu))return null;const s=t??b.jsx(qd,{});return b.jsx(ie.span,{"aria-hidden":"true",className:ce(n==null?void 0:n.submenuIndicator,e),"data-slot":"submenu-indicator",...r,children:s})},Xh=({children:t,className:e,...r})=>{const n=a.useMemo(()=>id({class:typeof e=="string"?e:void 0}),[e]);return b.jsx(lh,{className:n,...r,children:t})},_r=a.createContext({}),Ii=({children:t,...e})=>{const r=a.useMemo(()=>td(),[]);return b.jsx(_r,{value:{slots:r},children:b.jsx(th,{...e,children:t})})},Zh=({children:t,className:e,...r})=>{const{slots:n}=a.useContext(_r);return b.jsx(Al,{className:je(e,n==null?void 0:n.trigger()),"data-slot":"dropdown-trigger",...r,children:o=>b.jsx(b.Fragment,{children:typeof t=="function"?t(o):t})})},Jh=({children:t,className:e,placement:r,...n})=>{const{slots:o}=a.useContext(_r);return b.jsx(Yn,{value:{variant:"default"},children:b.jsx(zf,{...n,className:je(e,o==null?void 0:o.popover()),"data-slot":"dropdown-popover",placement:r,children:t})})};function Qh({className:t,...e}){const{slots:r}=a.useContext(_r);return b.jsx(nh,{className:je(t,r==null?void 0:r.menu()),"data-selection-mode":e.selectionMode,"data-slot":"dropdown-menu",...e})}const eb=t=>b.jsx(Gh,{...t}),tb=t=>b.jsx(Yh,{...t}),rb=({children:t,...e})=>b.jsx(rh,{"data-slot":"dropdown-submenu-trigger",...e,children:t}),nb=t=>b.jsx(qh,{...t}),ob=t=>b.jsx(Xh,{...t}),xt=Object.assign(Ii,{Root:Ii,Trigger:Zh,Popover:Jh,Menu:Qh,Section:ob,Item:eb,ItemIndicator:nb,SubmenuIndicator:tb,SubmenuTrigger:rb}),ib={easy:"GREEN",moderate:"ORANGE",difficult:"RED"},lb={easy:"Easy",moderate:"Moderate",difficult:"Difficult"};function sb(){return b.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-[1em]",children:[b.jsx("path",{d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),b.jsx("path",{d:"m13.4 10.6 3.6-3.6"}),b.jsx("path",{d:"M3.3 16a9 9 0 1 1 17.4 0"})]})}function _a({difficulty:t,label:e,showIcon:r=!0,size:n="md",className:o}){const i=st[ib[t]];return b.jsxs(Tr,{variant:"soft",size:n,className:ee(o),style:{backgroundColor:Rt(i,.15),color:i},children:[r&&b.jsx(sb,{}),b.jsx(Tr.Label,{children:e??lb[t]})]})}const Ki=b.jsx("path",{d:"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0ZM12 9v4M12 17h.01"}),Ai=b.jsxs(b.Fragment,{children:[b.jsx("circle",{cx:"12",cy:"12",r:"9"}),b.jsx("path",{d:"M12 16v-4M12 8h.01"})]}),ab=b.jsxs(b.Fragment,{children:[b.jsx("circle",{cx:"12",cy:"12",r:"9"}),b.jsx("path",{d:"m8.5 12 2.5 2.5 4.5-5"})]}),cb={note:Ai,info:Ai,tip:ab,caution:Ki,danger:Ki};function ub({type:t}){return b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-5",children:cb[t]})}function db({type:t="caution",title:e,icon:r,children:n,className:o}){const i=e===void 0?fr[t]:e,l=Bi(t);return b.jsxs($t,{className:ee("border",o),style:{backgroundColor:Rt(l,.1),borderColor:l},children:[b.jsx($t.Indicator,{style:{color:l},children:r??b.jsx(ub,{type:t})}),b.jsxs($t.Content,{children:[i!=null&&b.jsx($t.Title,{children:i}),b.jsx($t.Description,{children:n})]})]})}const fb=4/3;function Va(t){return Math.round(t*3/4)}function pb(t,e,r){const{x:n,y:o,width:i}=t;if(i<=0||n<0||o<0)return!1;const l=Va(i);return n+i<=e&&o+l<=r}function hb(t,e,r,n,o){if(n<=0||o<=0||e<=0||r<=0||!pb(t,e,r))return null;const i=n/t.width;return{position:"absolute",width:i*e,height:i*r,left:-t.x*i,top:-t.y*i,maxWidth:"none"}}function bb({src:t}){const e=a.useRef(null);return a.useEffect(()=>{const r=e.current;if(!r)return;let n=!1,o=null,i=null;return import("online-3d-viewer").then(l=>{if(n)return;const s=new l.EmbeddedViewer(r,{projectionMode:l.ProjectionMode.Orthographic,backgroundColor:new l.RGBAColor(219,234,254,255),defaultColor:new l.RGBColor(30,64,175),onModelLoaded:()=>{const c=s.GetViewer();c.SetNavigationMode(l.NavigationMode.FreeOrbit),c.SetUpVector(l.Direction.Z,!1);const u=c.GetBoundingSphere(()=>!0);c.FitSphereToWindow(u,!1)}});i=s,s.LoadModelFromUrlList([t]),typeof ResizeObserver<"u"&&(o=new ResizeObserver(()=>{s.Resize()}),o.observe(r))}),()=>{n=!0,o==null||o.disconnect(),i==null||i.Destroy()}},[t]),b.jsx("div",{ref:e,className:"absolute inset-0 [&_canvas]:size-full!","aria-label":"Interactive 3D model",role:"img"})}function mb({src:t,type:e,displayRegion:r}){const n=a.useRef(null),[o,i]=a.useState(null),[l,s]=a.useState(null),c=a.useCallback(()=>{const g=n.current;if(!g)return;const{width:y,height:v}=g.getBoundingClientRect();y>0&&v>0&&s({width:y,height:v})},[]);a.useEffect(()=>{if(!r)return;c();const g=n.current;if(!g)return;const y=new ResizeObserver(c);return y.observe(g),()=>y.disconnect()},[r,c]);const u=r&&o&&l&&hb(r,o.width,o.height,l.width,l.height),d=!!u,f="size-full object-cover object-center",m=g=>{const y=g.currentTarget;y.naturalWidth>0&&y.naturalHeight>0&&i({width:y.naturalWidth,height:y.naturalHeight})},p=g=>{const y=g.currentTarget;y.videoWidth>0&&y.videoHeight>0&&i({width:y.videoWidth,height:y.videoHeight})};return e==="model"?b.jsx(bb,{src:t}):b.jsx("div",{ref:n,className:"absolute inset-0",children:e==="video"?b.jsx("video",{src:t,controls:!0,className:d?"absolute max-w-none":f,style:d&&u?u:void 0,onLoadedMetadata:r?p:void 0}):b.jsx("img",{src:t,className:d?"absolute max-w-none":f,style:d&&u?u:void 0,onLoad:r?m:void 0})})}function gb(t){return t.type==="circle"}function yb(t){return t.type==="rectangle"}function vb(t,e){const r=t.id??e,n=t.color??"GREY",o=st[n];if(gb(t))return b.jsx("div",{role:"img","aria-label":t.title,className:"pointer-events-none absolute rounded-full border-2",style:{left:`${t.x}%`,top:`${t.y}%`,width:`${t.radius*2}%`,aspectRatio:"1",transform:"translate(-50%, -50%)",borderColor:o,backgroundColor:Rt(o,.1)}},r);if(yb(t)){const i=Math.min(t.x1,t.x2),l=Math.min(t.y1,t.y2),s=Math.abs(t.x2-t.x1),c=Math.abs(t.y2-t.y1);return b.jsx("div",{role:"img","aria-label":t.title,className:"pointer-events-none absolute border-2",style:{left:`${i}%`,top:`${l}%`,width:`${s}%`,height:`${c}%`,borderColor:o,backgroundColor:Rt(o,.1)}},r)}return b.jsx("span",{role:"img","aria-label":t.title,style:{left:`${t.x}%`,top:`${t.y}%`,backgroundColor:o,color:Oi(o)},className:"absolute flex min-h-6 min-w-6 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full px-1.5 text-xs font-semibold shadow ring-2 ring-background",children:t.label},r)}function Ha({src:t,type:e="image",annotations:r=[],displayRegion:n,className:o}){return b.jsx("figure",{className:ee("flex flex-col gap-2",o),children:b.jsxs("div",{className:"relative aspect-[4/3] overflow-hidden rounded-lg border border-default bg-default-soft",children:[b.jsx(mb,{src:t,type:e,displayRegion:n}),r.map(vb)]})})}function $b({name:t,thumbnail:e,href:r,quantity:n,price:o,children:i,className:l}){return b.jsxs("li",{className:ee("flex items-center gap-3 py-3 first:pt-0 last:pb-0",l),children:[e&&b.jsx("img",{src:e,alt:"",className:"size-12 shrink-0 rounded-md border border-default object-cover"}),b.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[r?b.jsx(to,{href:r,className:"font-medium",children:t}):b.jsx("span",{className:"font-medium",children:t}),i!=null&&b.jsx("span",{className:"text-sm text-default-500",children:i})]}),n!=null&&b.jsxs("span",{className:"shrink-0 text-sm text-default-500",children:["×",n]}),o!=null&&b.jsx("span",{className:"shrink-0 text-sm font-medium",children:o})]})}function xb({title:t="What you need",children:e,className:r}){return b.jsxs(kt,{className:ee("w-full",r),children:[t!=null&&b.jsx(kt.Header,{children:b.jsx(kt.Title,{children:t})}),b.jsx(kt.Content,{children:b.jsx("ul",{className:"flex flex-col divide-y divide-default",children:e})})]})}const wb=Object.assign(xb,{Item:$b});function za(t){return null}function Eb(t){return a.isValidElement(t)&&t.type===za}function Wa(){return b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",className:"mr-1 size-4 shrink-0",children:b.jsx("path",{d:"m6 9 6 6 6-6"})})}function Fi(){return b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-4",children:b.jsx("path",{d:"M10 13a5 5 0 0 0 7.07 0l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71M14 11a5 5 0 0 0-7.07 0l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})})}function Sb(){return b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-4",children:b.jsx("path",{d:"M12 19V5M5 12l7-7 7 7"})})}function Cb(){return b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",className:"size-3.5",children:b.jsx("path",{d:"M18 6 6 18M6 6l12 12"})})}function Pb(){return b.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",className:"size-4",children:[b.jsx("circle",{cx:"9",cy:"6",r:"1.4"}),b.jsx("circle",{cx:"15",cy:"6",r:"1.4"}),b.jsx("circle",{cx:"9",cy:"12",r:"1.4"}),b.jsx("circle",{cx:"15",cy:"12",r:"1.4"}),b.jsx("circle",{cx:"9",cy:"18",r:"1.4"}),b.jsx("circle",{cx:"15",cy:"18",r:"1.4"})]})}function An(t){const{href:e,download:r,external:n}=t.props;return{href:e,download:r,...n?{target:"_blank",rel:"noreferrer noopener"}:{}}}function kb(t,e,r,n){return ee(ze({variant:t,size:e,fullWidth:!0}),"!min-h-0 !justify-center !rounded-none",r&&"!rounded-b-3xl",n&&"border-b border-separator","hover:!bg-[var(--button-bg-hover)] data-[hovered=true]:!bg-[var(--button-bg-hover)]")}function Fn(){return b.jsx("span",{"aria-hidden":"true",className:zn({orientation:"horizontal"}).separator()})}function Tb({variant:t="primary",size:e="md",icon:r,menuLabel:n="More download options",editing:o,children:i,className:l}){const s=a.Children.toArray(i).filter(Eb);if(o)return b.jsx(Rb,{items:s,variant:t,size:e,icon:r,menuLabel:n,editing:o,className:l});if(s.length===0)return null;const[c,...u]=s;if(u.length===0){const d=ze({variant:"secondary",size:e});return b.jsxs(to,{...An(c),className:ee(d,l),children:[r,c.props.children]})}return b.jsx(Mb,{items:s,variant:t,size:e,icon:r,menuLabel:n,className:l})}function Mb({items:t,variant:e,size:r,icon:n,menuLabel:o,className:i}){const l=a.useRef(null),[s,c]=a.useState(),[u]=t,d=ze({variant:e,size:r});return a.useLayoutEffect(()=>{const f=l.current;if(!f)return;const m=()=>c(f.offsetWidth);m();const p=new ResizeObserver(m);return p.observe(f),()=>p.disconnect()},[t,e,r]),b.jsxs("div",{ref:l,className:ee(zn({orientation:"horizontal"}).base(),i),children:[b.jsxs(to,{...An(u),className:d,children:[n,u.props.children]}),b.jsxs(xt,{children:[b.jsxs(xt.Trigger,{"aria-label":o,className:ee(ze({variant:e,size:r,isIconOnly:!0}),"!inline-flex items-center justify-center"),children:[b.jsx(Fn,{}),b.jsx(Wa,{})]}),b.jsx(xt.Popover,{placement:"bottom",offset:0,triggerRef:l,className:"!max-w-none !p-0",style:s?{minWidth:s}:void 0,children:b.jsx(xt.Menu,{className:"!gap-0 !p-0",children:t.map((f,m)=>b.jsxs(xt.Item,{...An(f),className:kb("secondary",r,m===t.length-1,m<t.length-1),children:[m===0?n:null,f.props.children]},m))})})]})]})}function Rb({items:t,variant:e,size:r,icon:n,menuLabel:o,editing:i,className:l}){const[s,c]=a.useState(!1),[u,d]=a.useState(null),[f,m]=a.useState(null),{onAddItem:p,onRemoveItem:g,onReorderItem:y,onSelectItem:v}=i,E=t[0],$=t.slice(1),P=ze({variant:e,size:r}),k=y!=null,L=()=>{d(null),m(null)},j=T=>{u!=null&&u!==T&&(y==null||y(u,T)),L()};return b.jsxs("div",{className:ee("relative inline-flex flex-col items-start",l),children:[b.jsxs("div",{className:zn({orientation:"horizontal"}).base(),children:[b.jsxs("span",{className:ee(P,"cursor-text"),children:[n,E?E.props.children:b.jsx("span",{className:"opacity-60",children:"Add a link"})]}),E&&v&&b.jsxs("button",{type:"button",onClick:()=>v(0),"aria-label":"Edit primary link",className:ze({variant:e,size:r,isIconOnly:!0}),children:[b.jsx(Fn,{}),b.jsx(Fi,{})]}),b.jsxs("button",{type:"button",onClick:()=>c(T=>!T),"aria-label":o,"aria-expanded":s,className:ze({variant:e,size:r,isIconOnly:!0}),children:[!(E&&v)&&b.jsx(Fn,{}),b.jsx(Wa,{})]})]}),s&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>c(!1),"aria-hidden":"true"}),b.jsxs("div",{className:"absolute left-0 top-full z-50 mt-2 w-64 rounded-lg border border-default-200 bg-background p-2 shadow-lg",children:[$.length>0?b.jsx("ul",{className:"flex flex-col gap-0.5",children:$.map((T,R)=>{const I=R+1;return b.jsxs("li",{draggable:k||void 0,onDragStart:k?()=>d(I):void 0,onDragOver:k?K=>{K.preventDefault(),m(I)}:void 0,onDrop:k?K=>{K.preventDefault(),j(I)}:void 0,onDragEnd:k?L:void 0,className:ee("flex items-center gap-1.5 rounded-md px-1.5 py-1 transition",k&&"cursor-grab",u===I&&"opacity-40",f===I&&u!==I&&"ring-2 ring-accent"),children:[k&&b.jsx("span",{className:"shrink-0 text-default-400",children:b.jsx(Pb,{})}),b.jsx("span",{className:"min-w-0 flex-1 text-sm",children:T.props.children}),y&&b.jsx("button",{type:"button",onClick:()=>y(I,0),"aria-label":"Make default download",className:"shrink-0 rounded p-0.5 text-default-500 transition hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",children:b.jsx(Sb,{})}),v&&b.jsx("button",{type:"button",onClick:()=>v(I),"aria-label":"Edit link",className:"shrink-0 rounded p-0.5 text-default-500 transition hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",children:b.jsx(Fi,{})}),g&&b.jsx("button",{type:"button",onClick:()=>g(I),"aria-label":"Remove option",className:"shrink-0 rounded p-0.5 text-default-500 transition hover:text-danger focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",children:b.jsx(Cb,{})})]},I)})}):b.jsx("p",{className:"px-1.5 py-1 text-sm text-default-500",children:"No other options yet."}),p&&b.jsx("button",{type:"button",onClick:p,className:"mt-1 w-full rounded-md px-1.5 py-1 text-left text-sm font-medium text-accent transition hover:bg-default-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",children:"+ Add option"})]})]})]})}const Nb=Object.assign(Tb,{Item:za});function Db(t,e,r){const[n,o]=a.useState(e),i=t!==void 0,l=i?t:n,s=a.useCallback(c=>{i||o(c),r==null||r(c)},[i,r]);return[l,s]}const Ua=3,Lb="#3ABF84",Ib="#34B07A",Kb="#0B7A47",Ab={caution:fr.caution,reminder:"Reminder",note:fr.note};function Fb(){return b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-5 shrink-0 text-danger",children:b.jsx("path",{d:"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0ZM12 9v4M12 17h.01"})})}function Ob(){return b.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-5 shrink-0 text-default-500",children:[b.jsx("circle",{cx:"12",cy:"12",r:"9"}),b.jsx("path",{d:"M12 16v-4M12 8h.01"})]})}function jb(){return b.jsx("span",{"aria-hidden":"true",className:"mt-0.5 flex size-6 shrink-0 items-center justify-center rounded bg-default-100",children:b.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"size-3.5 text-default-500",children:b.jsx("path",{d:"M16 12V4h1V3H7v1h1v8l-2 2v1h5.2c-.2.6-.3 1.2-.3 1.8 0 2.2 1.8 4 4 4s4-1.8 4-4c0-.6-.1-1.2-.3-1.8H18v-1l-2-2z"})})})}function Bb(){return b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-7",children:b.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12"})})}function _b(){return b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",className:"size-3",children:b.jsx("path",{d:"M18 6 6 18M6 6l12 12"})})}function Vb(t){return a.isValidElement(t)&&t.type===Ha}function Hb(t){return a.isValidElement(t)&&t.type===Ya}function zb(t){return a.isValidElement(t)?a.Children.toArray(t.props.children).filter(Hb).length:0}function Wb(t,e=!1){let r=null,n=null;for(const i of a.Children.toArray(t))a.isValidElement(i)&&(i.type===Ga&&(r=i.props.children),i.type===qa&&(n=i));const o=a.Children.toArray(r).filter(Vb);return zb(n),{figures:o.slice(0,Ua),bullets:n}}function Ga(t){return null}function qa({children:t,className:e}){return b.jsx("ul",{className:ee("flex flex-col gap-2",e),children:t})}function Ya({variant:t="dot",color:e="GREY",label:r,hideLabel:n=!1,onMarkerPress:o,markerAriaLabel:i,children:l,className:s}){if(t==="dot")return b.jsxs("li",{className:ee("flex gap-2.5",s),children:[o?b.jsx("button",{type:"button",onClick:o,"aria-label":i??"Change bullet style",className:"mt-1.5 size-2 shrink-0 cursor-pointer rounded-full outline-none transition hover:ring-2 hover:ring-accent focus-visible:ring-2 focus-visible:ring-accent",style:{backgroundColor:st[e]}}):b.jsx("span",{"aria-hidden":"true",className:"mt-1.5 size-2 shrink-0 rounded-full",style:{backgroundColor:st[e]}}),b.jsx("span",{className:"flex-1",children:l})]});if(t==="button")return b.jsxs("li",{className:ee("flex items-center gap-2.5",s),children:[o&&b.jsx("button",{type:"button",onClick:o,"aria-label":i??"Change bullet style",className:"size-2 shrink-0 cursor-pointer rounded-full bg-default-300 outline-none transition hover:ring-2 hover:ring-accent focus-visible:ring-2 focus-visible:ring-accent"}),b.jsx("div",{className:"min-w-0 flex-1",children:l})]});const c=r??Ab[t],u=t==="caution"?b.jsx(Fb,{}):t==="reminder"?b.jsx(jb,{}):b.jsx(Ob,{});return b.jsxs("li",{className:ee("flex gap-2.5",t==="caution"&&"text-danger",s),children:[o?b.jsx("button",{type:"button",onClick:o,"aria-label":i??"Change bullet style",className:"shrink-0 cursor-pointer rounded outline-none transition hover:opacity-70 focus-visible:ring-2 focus-visible:ring-accent",children:u}):u,b.jsxs("span",{className:"flex-1",children:[!n&&b.jsxs(b.Fragment,{children:[b.jsxs("span",{className:"font-semibold",children:[c,":"]})," "]}),l]})]})}function Ub(){return b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",className:"size-4",children:b.jsx("path",{d:"m5 12 5 5 9-11"})})}function Gb({figures:t,bullets:e,mediaEditing:r}){const n=r!=null,[o,i]=a.useState(0),[l,s]=a.useState(null),[c,u]=a.useState(null),d=(r==null?void 0:r.activeIndex)??o,f=t[d]??t[0],m=$=>{var P;i($),(P=r==null?void 0:r.onSelectImage)==null||P.call(r,$)},p=n&&(r==null?void 0:r.onReorderImage)!=null&&t.length>1,g=()=>{s(null),u(null)},y=$=>{var P;l!=null&&l!==$&&((P=r==null?void 0:r.onReorderImage)==null||P.call(r,l,$)),g()},v=n&&((r==null?void 0:r.canAddImage)??!0)&&t.length>=1&&t.length<Ua,E=n?t.length>=1:t.length>1;return b.jsxs("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2",children:[b.jsx("div",{className:"min-w-0",children:f?n?b.jsxs("div",{className:"group relative",children:[a.cloneElement(f,{className:ee("w-full",f.props.className)}),b.jsx("button",{type:"button",onClick:()=>{var $;return($=r==null?void 0:r.onReplaceImage)==null?void 0:$.call(r,d)},className:"absolute inset-0 flex items-center justify-center rounded-lg text-sm font-semibold text-background opacity-0 transition hover:bg-foreground/40 hover:opacity-100 focus-visible:bg-foreground/40 focus-visible:opacity-100 focus-visible:outline-none",children:"Replace image"})]}):a.cloneElement(f,{className:ee("w-full",f.props.className)}):n&&b.jsxs("button",{type:"button",onClick:()=>{var $;return($=r==null?void 0:r.onAddImage)==null?void 0:$.call(r)},className:"flex aspect-[4/3] w-full flex-col items-center justify-center gap-2 rounded-lg border-2 border-dashed border-default bg-default-soft text-default-500 transition hover:border-accent hover:text-accent focus-visible:border-accent focus-visible:text-accent focus-visible:outline-none",children:[b.jsx(Bb,{}),b.jsx("span",{className:"text-sm font-medium",children:"Add image"})]})}),b.jsxs("div",{className:"flex min-w-0 flex-col gap-4",children:[(E||v)&&b.jsxs("div",{className:"flex flex-wrap gap-2",role:"group","aria-label":"Step images",children:[t.map(($,P)=>n?b.jsxs("div",{className:ee("relative rounded-md transition-shadow",p&&"cursor-grab",l===P&&"opacity-40",c===P&&l!==P&&"ring-2 ring-accent ring-offset-2 ring-offset-background"),draggable:p||void 0,onDragStart:p?k=>{k.dataTransfer.effectAllowed="move",s(P)}:void 0,onDragOver:p?k=>{k.preventDefault(),k.dataTransfer.dropEffect="move",u(P)}:void 0,onDrop:p?k=>{k.preventDefault(),y(P)}:void 0,onDragEnd:p?g:void 0,children:[b.jsx("button",{type:"button",className:ee("block overflow-hidden rounded-md border-2 transition-[box-shadow,opacity,border-color]",P===d?"border-accent shadow-md":"border-default opacity-80 hover:opacity-100"),onClick:()=>m(P),"aria-label":`Image ${P+1}`,"aria-pressed":P===d,children:b.jsx("img",{src:$.props.src,alt:"",draggable:!1,className:"size-16 object-cover sm:size-20"})}),b.jsx("button",{type:"button",onClick:()=>{var k;return(k=r==null?void 0:r.onRemoveImage)==null?void 0:k.call(r,P)},"aria-label":`Remove image ${P+1}`,className:"absolute -right-1.5 -top-1.5 flex size-5 items-center justify-center rounded-full bg-foreground text-background shadow transition hover:bg-danger focus-visible:bg-danger focus-visible:outline-none",children:b.jsx(_b,{})})]},$.key??$.props.src??P):b.jsx("button",{type:"button",className:ee("overflow-hidden rounded-md border-2 transition-[box-shadow,opacity,border-color]",P===d?"border-accent shadow-md":"border-default opacity-80 hover:opacity-100"),onMouseEnter:()=>m(P),onFocus:()=>m(P),"aria-label":`Image ${P+1}`,"aria-pressed":P===d,children:b.jsx("img",{src:$.props.src,alt:"",className:"size-16 object-cover sm:size-20"})},$.key??$.props.src??P)),v&&b.jsx("button",{type:"button",onClick:()=>{var $;return($=r==null?void 0:r.onAddImage)==null?void 0:$.call(r)},"aria-label":"Add image",className:"flex size-16 items-center justify-center rounded-md border-2 border-dashed border-default text-default-500 transition hover:border-accent hover:text-accent focus-visible:border-accent focus-visible:text-accent focus-visible:outline-none sm:size-20",children:b.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-6",children:b.jsx("path",{d:"M12 5v14M5 12h14"})})})]}),e]})]})}function qb({number:t,title:e,isCompleted:r,defaultCompleted:n=!1,onCompletedChange:o,completable:i=!0,mediaEditing:l,children:s,className:c}){const[u,d]=Db(r,n,o),f=a.useId(),{figures:m,bullets:p}=Wb(s,l!=null);return b.jsxs("section",{"aria-labelledby":e!=null?f:void 0,"data-completed":u||void 0,className:ee("flex flex-col gap-4 transition-opacity",u&&"opacity-60",c),children:[b.jsxs("header",{className:"flex flex-col gap-3 sm:flex-row sm:items-center",children:[b.jsxs("div",{className:"flex min-w-0 items-center gap-3 sm:flex-1",children:[t!=null&&b.jsx("span",{className:ee("flex size-8 shrink-0 items-center justify-center rounded-md text-sm font-bold tabular-nums",u?"bg-success text-success-foreground":"bg-foreground text-background"),children:u?b.jsx(Ub,{}):t}),e!=null&&b.jsx("h3",{id:f,className:"min-w-0 flex-1 text-lg font-semibold leading-tight",children:e})]}),i&&b.jsx(xh,{variant:u?"primary":"secondary",size:"lg",onPress:()=>d(!u),"aria-pressed":u,className:ee("ml-auto shrink-0",u&&"guide-step-complete-button"),style:u?{"--guide-step-complete-bg":Lb,"--guide-step-complete-bg-hover":Ib,"--guide-step-complete-checkbox":Kb}:void 0,children:b.jsx(lr,{isSelected:u,isReadOnly:!0,"aria-hidden":!0,className:"pointer-events-none gap-2 text-inherit",children:b.jsxs(lr.Content,{className:"flex items-center gap-2 whitespace-nowrap",children:[b.jsx(lr.Control,{children:b.jsx(lr.Indicator,{})}),"Mark complete"]})})})]}),b.jsx(Gb,{figures:m,bullets:p,mediaEditing:l})]})}const Yb=Object.assign(qb,{Media:Ga,Bullets:qa,Bullet:Ya});function Xb(t){return a.isValidElement(t)}function Zb({children:t,showProgress:e=!0,onProgressChange:r,className:n}){const o=a.Children.toArray(t).filter(Xb),i=o.length,[l,s]=a.useState(()=>Object.fromEntries(o.map((u,d)=>[u.props.number??d+1,!!(u.props.defaultCompleted??u.props.isCompleted)]))),c=Object.values(l).filter(Boolean).length;return a.useEffect(()=>{r==null||r({completed:c,total:i})},[c,i,r]),b.jsxs("div",{className:ee("flex flex-col gap-8",n),children:[e&&i>0&&b.jsx("div",{className:"sticky top-2 mx-2 z-10",children:b.jsx(kt,{className:"w-full px-6 py-4",children:b.jsxs(sr,{value:c,maxValue:i,"aria-label":"Guide progress",className:"flex flex-col gap-1.5",children:[b.jsxs("div",{className:"flex items-center justify-between text-sm text-default-500",children:[b.jsx("span",{children:"Guide Progress"}),b.jsxs(sr.Output,{children:[c," / ",i," steps"]})]}),b.jsx(sr.Track,{className:"h-2 overflow-hidden rounded-full bg-default-soft",children:b.jsx(sr.Fill,{className:"h-full rounded-full bg-success transition-[width]"})})]})})}),b.jsx("ol",{className:"flex flex-col",children:o.map((u,d)=>{const f=u.props.number??d+1;return b.jsxs("li",{children:[a.cloneElement(u,{number:f,isCompleted:l[f]??!1,onCompletedChange:m=>{var p,g;s(y=>({...y,[f]:m})),(g=(p=u.props).onCompletedChange)==null||g.call(p,m)}}),d<o.length-1&&b.jsx(Vh,{className:"my-8"})]},u.key??f)})})]})}function Jb({title:t,difficulty:e,timeEstimate:r,meta:n,className:o}){const i=e!=null||r!=null;return b.jsxs("header",{className:ee("flex flex-col gap-4 border-b border-default pb-6 md:[grid-area:header]",o),children:[b.jsxs("div",{className:"flex flex-col gap-1.5",children:[b.jsx("h1",{className:"text-3xl font-bold tracking-tight",children:t}),n!=null&&b.jsx("div",{className:"text-sm text-default-500",children:n})]}),i&&b.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e!=null&&b.jsx(_a,{difficulty:e}),r!=null&&b.jsx(Tr,{variant:"soft",color:"default",children:b.jsx(Tr.Label,{children:r})})]})]})}function Qb({children:t,className:e}){return b.jsx("div",{className:ee("min-w-0 md:[grid-area:intro]",e),children:b.jsx("div",{className:"max-w-prose text-default-700",children:t})})}function em({children:t,className:e}){return b.jsx("aside",{className:ee("min-w-0 md:[grid-area:sidebar]",e),children:b.jsx("div",{className:"flex flex-col gap-4",children:t})})}function tm({children:t,className:e}){return b.jsx("main",{className:ee("min-w-0 w-full md:[grid-area:main]",e),children:t})}const rm=Object.assign(function({children:e,className:r}){return b.jsx("div",{className:ee("mx-auto grid w-full max-w-6xl grid-cols-1 gap-x-8 gap-y-8 md:grid-cols-[minmax(0,1fr)_20rem] md:[grid-template-areas:'header_header'_'intro_sidebar'_'main_main']",r),children:e})},{Header:Jb,Intro:Qb,Sidebar:em,Content:tm});exports.COLORS=st;exports.Callout=db;exports.DISPLAY_REGION_ASPECT=fb;exports.DifficultyBadge=_a;exports.GuideLayout=rm;exports.GuideStep=Yb;exports.GuideStepList=Zb;exports.LinkButton=Nb;exports.MediaFigure=Ha;exports.ToolList=wb;exports.calloutTypeColor=ji;exports.calloutTypeHex=Bi;exports.calloutTypeLabel=fr;exports.displayRegionHeight=Va;exports.hexToRgba=Rt;exports.markerTextColor=Oi;
|
|
29
29
|
//# sourceMappingURL=diy-guides-ui.cjs.map
|