@openpawlabs/diy-guides-ui 1.0.0 → 1.2.0
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/README.md +1 -0
- package/dist/components/GuideStep/GuideStep.d.ts +48 -5
- package/dist/components/GuideStep/GuideStep.d.ts.map +1 -1
- package/dist/components/GuideStep/GuideStep.stories.d.ts +4 -2
- package/dist/components/GuideStep/GuideStep.stories.d.ts.map +1 -1
- package/dist/components/GuideStep/index.d.ts +1 -1
- package/dist/components/GuideStep/index.d.ts.map +1 -1
- package/dist/components/GuideStepList/GuideStepList.stories.d.ts.map +1 -1
- package/dist/components/LinkButton/LinkButton.d.ts +63 -0
- package/dist/components/LinkButton/LinkButton.d.ts.map +1 -0
- package/dist/components/LinkButton/LinkButton.stories.d.ts +37 -0
- package/dist/components/LinkButton/LinkButton.stories.d.ts.map +1 -0
- package/dist/components/LinkButton/LinkButton.test.d.ts +2 -0
- package/dist/components/LinkButton/LinkButton.test.d.ts.map +1 -0
- package/dist/components/LinkButton/index.d.ts +3 -0
- package/dist/components/LinkButton/index.d.ts.map +1 -0
- package/dist/components/MediaFigure/MediaFigureModel.d.ts.map +1 -1
- package/dist/diy-guides-ui.cjs +10 -5
- package/dist/diy-guides-ui.cjs.map +1 -1
- package/dist/diy-guides-ui.js +8923 -3429
- package/dist/diy-guides-ui.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +12 -11
package/dist/diy-guides-ui.cjs
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
"use strict";var Ra=Object.create;var xr=Object.defineProperty;var Ia=Object.getOwnPropertyDescriptor;var Na=Object.getOwnPropertyNames;var Oa=Object.getPrototypeOf,ja=Object.prototype.hasOwnProperty;var $r=e=>{throw TypeError(e)};var Va=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Na(t))!ja.call(e,a)&&a!==r&&xr(e,a,{get:()=>t[a],enumerable:!(n=Ia(t,a))||n.enumerable});return e};var Da=(e,t,r)=>(r=e!=null?Ra(Oa(e)):{},Va(t||!e||!e.__esModule?xr(r,"default",{value:e,enumerable:!0}):r,e));var Er=(e,t,r)=>t.has(e)||$r("Cannot "+r);var wr=(e,t,r)=>(Er(e,t,"read from private field"),r?r.call(e):t.get(e)),Pr=(e,t,r)=>t.has(e)?$r("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),kt=(e,t,r,n)=>(Er(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),i=require("react"),Aa=require("react-dom"),He={GREY:"#7A8090",RED:"#E7320D",ORANGE:"#FF850A",YELLOW:"#F5E429",GREEN:"#14CC76",LIGHT_BLUE:"#20B3E9",BLUE:"#1738DE",MAGENTA:"#D945B1"};function Ge(e,t){const r=e.replace("#",""),n=parseInt(r.slice(0,2),16),a=parseInt(r.slice(2,4),16),o=parseInt(r.slice(4,6),16);return`rgba(${n}, ${a}, ${o}, ${t})`}function hn(e){const t=e.replace("#",""),r=parseInt(t.slice(0,2),16),n=parseInt(t.slice(2,4),16),a=parseInt(t.slice(4,6),16);return(.299*r+.587*n+.114*a)/255>.55?"#111111":"#ffffff"}const gn={note:"GREY",info:"LIGHT_BLUE",tip:"GREEN",caution:"ORANGE",danger:"RED"};function vn(e){return He[gn[e]]}const ut={note:"Note",info:"Info",tip:"Tip",caution:"Caution",danger:"Danger"};function $t(e){var r;if(typeof window>"u"||window.navigator==null)return!1;let t=(r=window.navigator.userAgentData)==null?void 0:r.brands;return Array.isArray(t)&&t.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function rr(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)==null?void 0:t.platform)||window.navigator.platform):!1}function le(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Te=le(function(){return rr(/^Mac/i)}),_a=le(function(){return rr(/^iPhone/i)}),yn=le(function(){return rr(/^iPad/i)||Te()&&navigator.maxTouchPoints>1}),nr=le(function(){return _a()||yn()});le(function(){return Te()||nr()});const Fa=le(function(){return $t(/AppleWebKit/i)&&!Ba()}),Ba=le(function(){return $t(/Chrome/i)}),xn=le(function(){return $t(/Android/i)}),Ga=le(function(){return $t(/Firefox/i)});function Le(e){if(Ka())e.focus({preventScroll:!0});else{let t=Ha(e);e.focus(),za(t)}}let et=null;function Ka(){if(et==null){et=!1;try{document.createElement("div").focus({get preventScroll(){return et=!0,!0}})}catch{}}return et}function Ha(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function za(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}const Ua=i.createContext({isNative:!0,open:Ya,useHref:e=>e});function $n(){return i.useContext(Ua)}function Wa(e,t){let r=e.getAttribute("target");return(!r||r==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function be(e,t,r=!0){var c,b;let{metaKey:n,ctrlKey:a,altKey:o,shiftKey:s}=t;Ga()&&((b=(c=window.event)==null?void 0:c.type)!=null&&b.startsWith("key"))&&e.target==="_blank"&&(Te()?n=!0:a=!0);let l=Fa()&&Te()&&!yn()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:n,ctrlKey:a,altKey:o,shiftKey:s}):new MouseEvent("click",{metaKey:n,ctrlKey:a,altKey:o,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});be.isOpening=r,Le(e),e.dispatchEvent(l),be.isOpening=!1}be.isOpening=!1;function qa(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function Ya(e,t){qa(e,r=>be(r,t))}function Xa(e){const r=$n().useHref((e==null?void 0:e.href)??"");let n={};if(e)for(let a of["href","target","rel","download","ping","referrerPolicy"])a in e&&(n[a]=a==="href"?r:e[a]);return n}function Za(e,t,r,n){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&Wa(e.currentTarget,e)&&r&&(e.preventDefault(),t.open(e.currentTarget,e,r,n))}const ce=typeof document<"u"?i.useLayoutEffect:()=>{},ft={prefix:String(Math.round(Math.random()*1e10)),current:0},En=i.createContext(ft),Ja=i.createContext(!1);let Qa=!!(typeof window<"u"&&window.document&&window.document.createElement),Ct=new WeakMap;function eo(e=!1){var n,a;let t=i.useContext(En),r=i.useRef(null);if(r.current===null&&!e){let o=(a=(n=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)==null?void 0:n.ReactCurrentOwner)==null?void 0:a.current;if(o){let s=Ct.get(o);s==null?Ct.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==s.state&&(t.current=s.id,Ct.delete(o))}r.current=++t.current}return r.current}function to(e){let t=i.useContext(En);t===ft&&!Qa&&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=eo(!!e),n=t===ft&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${n}-${r}`}function ro(e){let t=i.useId(),[r]=i.useState(ar()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${ft.prefix}`;return e||`${n}-${t}`}const no=typeof i.useId=="function"?ro:to;function ao(){return!1}function oo(){return!0}function so(e){return()=>{}}function ar(){return typeof i.useSyncExternalStore=="function"?i.useSyncExternalStore(so,ao,oo):i.useContext(Ja)}let io=!!(typeof window<"u"&&window.document&&window.document.createElement),ke=new Map,De;typeof FinalizationRegistry<"u"&&(De=new FinalizationRegistry(e=>{ke.delete(e)}));function Me(e){let[t,r]=i.useState(e),n=i.useRef(null),a=no(t),o=i.useRef(null);if(De&&De.register(o,a),io){const s=ke.get(a);s&&!s.includes(n)?s.push(n):ke.set(a,[n])}return ce(()=>{let s=a;return()=>{De&&De.unregister(o),ke.delete(s)}},[a]),i.useEffect(()=>{let s=n.current;return s&&r(s),()=>{s&&(n.current=null)}}),a}function lo(e,t){if(e===t)return e;let r=ke.get(e);if(r)return r.forEach(a=>a.current=t),t;let n=ke.get(t);return n?(n.forEach(a=>a.current=e),e):t}function wn(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const Y=e=>(e==null?void 0:e.ownerDocument)??document,oe=e=>e&&"window"in e&&e.window===e?e:Y(e).defaultView||window;function co(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function uo(e){return co(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let fo=!1;function or(){return fo}function D(e,t){if(!or())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let r=t;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:uo(r)?r=r.host:r=r.parentNode}return!1}const me=(e=document)=>{var r;if(!or())return e.activeElement;let t=e.activeElement;for(;t&&"shadowRoot"in t&&((r=t.shadowRoot)!=null&&r.activeElement);)t=t.shadowRoot.activeElement;return t};function I(e){if(or()&&e.target instanceof Element&&e.target.shadowRoot){if("composedPath"in e)return e.composedPath()[0]??null;if("composedPath"in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return e.target}function ze(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1;const n=e.map(a=>{const o=Sr(a,t);return r||(r=typeof o=="function"),o});if(r)return()=>{n.forEach((a,o)=>{typeof a=="function"?a():Sr(e[o],null)})}}}function Sr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Pn(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=Pn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function po(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=Pn(e))&&(n&&(n+=" "),n+=t);return n}function K(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let a in n){let o=t[a],s=n[a];typeof o=="function"&&typeof s=="function"&&a[0]==="o"&&a[1]==="n"&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90?t[a]=wn(o,s):(a==="className"||a==="UNSAFE_className")&&typeof o=="string"&&typeof s=="string"?t[a]=po(o,s):a==="id"&&o&&s?t.id=lo(o,s):a==="ref"&&o&&s?t.ref=ze(o,s):t[a]=s!==void 0?s:o}}return t}const bo=new Set(["id"]),mo=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),ho=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),go=new Set(["dir","lang","hidden","inert","translate"]),kr=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"]),vo=/^(data-.*)$/;function ne(e,t={}){let{labelable:r,isLink:n,global:a,events:o=a,propNames:s}=t,l={};for(const c in e)Object.prototype.hasOwnProperty.call(e,c)&&(bo.has(c)||r&&mo.has(c)||n&&ho.has(c)||a&&go.has(c)||o&&(kr.has(c)||c.endsWith("Capture")&&kr.has(c.slice(0,-7)))||s!=null&&s.has(c)||vo.test(c))&&(l[c]=e[c]);return l}let pe=new Map,Dt=new Set;function Cr(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{let a=I(n);if(!e(n)||!a)return;let o=pe.get(a);o||(o=new Set,pe.set(a,o),a.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{let a=I(n);if(!e(n)||!a)return;let o=pe.get(a);if(o&&(o.delete(n.propertyName),o.size===0&&(a.removeEventListener("transitioncancel",r),pe.delete(a)),pe.size===0)){for(let s of Dt)s();Dt.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Cr():document.addEventListener("DOMContentLoaded",Cr));function yo(){for(const[e]of pe)"isConnected"in e&&!e.isConnected&&pe.delete(e)}function Sn(e){requestAnimationFrame(()=>{yo(),pe.size===0?e():Dt.add(e)})}function sr(){let e=i.useRef(new Map),t=i.useCallback((a,o,s,l)=>{let c=l!=null&&l.once?(...b)=>{e.current.delete(s),s(...b)}:s;e.current.set(s,{type:o,eventTarget:a,fn:c,options:l}),a.addEventListener(o,c,l)},[]),r=i.useCallback((a,o,s,l)=>{var b;let c=((b=e.current.get(s))==null?void 0:b.fn)||s;a.removeEventListener(o,c,l),e.current.delete(s)},[]),n=i.useCallback(()=>{e.current.forEach((a,o)=>{r(a.eventTarget,a.type,o,a.options)})},[r]);return i.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function xo(e,t){let{id:r,"aria-label":n,"aria-labelledby":a}=e;return r=Me(r),a&&n?a=[...new Set([r,...a.trim().split(/\s+/)])].join(" "):a&&(a=a.trim().split(/\s+/).join(" ")),!n&&!a&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":a}}function kn(e){const t=i.useRef(null),r=i.useRef(void 0),n=i.useCallback(a=>{if(typeof e=="function"){const o=e,s=o(a);return()=>{typeof s=="function"?s():o(null)}}else if(e)return e.current=a,()=>{e.current=null}},[e]);return i.useMemo(()=>({get current(){return t.current},set current(a){t.current=a,r.current&&(r.current(),r.current=void 0),a!=null&&(r.current=n(a))}}),[n])}const $o=i.useInsertionEffect??ce;function xe(e){const t=i.useRef(null);return $o(()=>{t.current=e},[e]),i.useCallback((...r)=>{const n=t.current;return n==null?void 0:n(...r)},[])}function Cn(e,t){ce(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function At(e){return e.pointerType===""&&e.isTrusted?!0:xn()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Eo(e){return!xn()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function wo(e,t,r){let n=xe(a=>{r&&!a.defaultPrevented&&r(t)});i.useEffect(()=>{var o;let a=(o=e==null?void 0:e.current)==null?void 0:o.form;return a==null||a.addEventListener("reset",n),()=>{a==null||a.removeEventListener("reset",n)}},[e])}const Po=typeof Element<"u"&&"checkVisibility"in Element.prototype;function So(e){const t=oe(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,a=r!=="none"&&n!=="hidden"&&n!=="collapse";if(a){const{getComputedStyle:o}=e.ownerDocument.defaultView;let{display:s,visibility:l}=o(e);a=s!=="none"&&l!=="hidden"&&l!=="collapse"}return a}function ko(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Tn(e,t){return Po?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&So(e)&&ko(e,t)&&(!e.parentElement||Tn(e.parentElement,e))}const Ln=["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"],Co=Ln.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Ln.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function To(e,t){return e.matches(Co)&&!Lo(e)&&((t==null?void 0:t.skipVisibilityCheck)||Tn(e))}function Lo(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function Tr(e){let t=e==null?void 0:e.defaultView;return(t==null?void 0:t.__webpack_nonce__)||globalThis.__webpack_nonce__||void 0}let Tt=new WeakMap;function Mo(e){let t=e??(typeof document<"u"?document:void 0);if(!t)return Tr(t);if(Tt.has(t))return Tt.get(t);let r=t.querySelector('meta[property="csp-nonce"]'),n=r&&r instanceof oe(r).HTMLMetaElement&&(r.nonce||r.content)||Tr(t)||void 0;return n!==void 0&&Tt.set(t,n),n}function Ro(e,t,r){const{render:n,...a}=t,o=i.useRef(null),s=i.useMemo(()=>ze(r,o),[r,o]);ce(()=>{var c;typeof process<"u"&&((c=process.env)==null?void 0:c.NODE_ENV)!=="production"&&n&&(o.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`?"))},[e,n]);const l={...a,ref:s};return n?n(l,void 0):u.jsx(e,{...l})}const Lr={},W=new Proxy({},{get(e,t){if(typeof t!="string")return;let r=Lr[t];return r||(r=i.forwardRef(Ro.bind(null,t)),Lr[t]=r),r}});var Io=/\s+/g,No=e=>typeof e!="string"||!e?e:e.replace(Io," ").trim(),Ke=(...e)=>{const t=[],r=n=>{if(!n&&n!==0&&n!==0n)return;if(Array.isArray(n)){for(let o=0,s=n.length;o<s;o++)r(n[o]);return}const a=typeof n;if(a==="string"||a==="number"||a==="bigint"){if(a==="number"&&n!==n)return;t.push(String(n))}else if(a==="object"){const o=Object.keys(n);for(let s=0,l=o.length;s<l;s++){const c=o[s];n[c]&&t.push(c)}}};for(let n=0,a=e.length;n<a;n++){const o=e[n];o!=null&&r(o)}return t.length>0?No(t.join(" ")):void 0},Mr=e=>e===!1?"false":e===!0?"true":e===0?"0":e,Q=e=>{if(!e||typeof e!="object")return!0;for(const t in e)return!1;return!0},Oo=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let a=0;a<r.length;a++){const o=r[a];if(!n.includes(o)||e[o]!==t[o])return!1}return!0},jo=(e,t)=>{for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const n=t[r];r in e?e[r]=Ke(e[r],n):e[r]=n}return e},Mn=(e,t)=>{for(let r=0;r<e.length;r++){const n=e[r];Array.isArray(n)?Mn(n,t):n&&t.push(n)}},Rn=(...e)=>{const t=[];Mn(e,t);const r=[];for(let n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r},_t=(e,t)=>{const r={};for(const n in e){const a=e[n];if(n in t){const o=t[n];Array.isArray(a)||Array.isArray(o)?r[n]=Rn(o,a):typeof a=="object"&&typeof o=="object"&&a&&o?r[n]=_t(a,o):r[n]=o+" "+a}else r[n]=a}for(const n in t)n in e||(r[n]=t[n]);return r},Vo={twMerge:!0,twMergeConfig:{}};function Do(){let e=null,t={},r=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(n){e=n},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(n){t=n},get didTwMergeConfigChange(){return r},set didTwMergeConfigChange(n){r=n},reset(){e=null,t={},r=!1}}}var ie=Do(),Ao=e=>{const t=(n,a)=>{const{extend:o=null,slots:s={},variants:l={},compoundVariants:c=[],compoundSlots:b=[],defaultVariants:m={}}=n,p={...Vo,...a},y=o!=null&&o.base?Ke(o.base,n==null?void 0:n.base):n==null?void 0:n.base,v=o!=null&&o.variants&&!Q(o.variants)?_t(l,o.variants):l,$=o!=null&&o.defaultVariants&&!Q(o.defaultVariants)?{...o.defaultVariants,...m}:m;!Q(p.twMergeConfig)&&!Oo(p.twMergeConfig,ie.cachedTwMergeConfig)&&(ie.didTwMergeConfigChange=!0,ie.cachedTwMergeConfig=p.twMergeConfig);const h=Q(o==null?void 0:o.slots),E=Q(s)?{}:{base:Ke(n==null?void 0:n.base,h&&(o==null?void 0:o.base)),...s},S=h?E:jo({...o==null?void 0:o.slots},Q(E)?{base:n==null?void 0:n.base}:E),R=Q(o==null?void 0:o.compoundVariants)?c:Rn(o==null?void 0:o.compoundVariants,c),O=N=>{if(Q(v)&&Q(s)&&h)return e(y,N==null?void 0:N.class,N==null?void 0:N.className)(p);if(R&&!Array.isArray(R))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof R}`);if(b&&!Array.isArray(b))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof b}`);const Z=(d,w=v,T=null,g=null)=>{const x=w[d];if(!x||Q(x))return null;const f=(g==null?void 0:g[d])??(N==null?void 0:N[d]);if(f===null)return null;const L=Mr(f);if(typeof L=="object")return null;const P=$==null?void 0:$[d],V=L??Mr(P);return x[V||"false"]},H=()=>{if(!v)return null;const d=Object.keys(v),w=[];for(let T=0;T<d.length;T++){const g=Z(d[T],v);g&&w.push(g)}return w},M=(d,w)=>{if(!v||typeof v!="object")return null;const T=[];for(const g in v){const x=Z(g,v,d,w),f=d==="base"&&typeof x=="string"?x:x&&x[d];f&&T.push(f)}return T},B={};for(const d in N){const w=N[d];w!==void 0&&(B[d]=w)}const A=(d,w)=>{var g;const T=typeof(N==null?void 0:N[d])=="object"?{[d]:(g=N[d])==null?void 0:g.initial}:{};return{...$,...B,...T,...w}},re=(d=[],w)=>{const T=[],g=d.length;for(let x=0;x<g;x++){const{class:f,className:L,...P}=d[x];let V=!0;const _=A(null,w);for(const G in P){const J=P[G],ge=_[G];if(Array.isArray(J)){if(!J.includes(ge)){V=!1;break}}else{if((J==null||J===!1)&&(ge==null||ge===!1))continue;if(ge!==J){V=!1;break}}}V&&(f&&T.push(f),L&&T.push(L))}return T},ee=d=>{const w=re(R,d);if(!Array.isArray(w))return w;const T={},g=e;for(let x=0;x<w.length;x++){const f=w[x];if(typeof f=="string")T.base=g(T.base,f)(p);else if(typeof f=="object")for(const L in f)T[L]=g(T[L],f[L])(p)}return T},de=d=>{if(b.length<1)return null;const w={},T=A(null,d);for(let g=0;g<b.length;g++){const{slots:x=[],class:f,className:L,...P}=b[g];if(!Q(P)){let V=!0;for(const _ in P){const G=T[_],J=P[_];if(G===void 0||(Array.isArray(J)?!J.includes(G):J!==G)){V=!1;break}}if(!V)continue}for(let V=0;V<x.length;V++){const _=x[V];w[_]||(w[_]=[]),w[_].push([f,L])}}return w};if(!Q(s)||!h){const d={};if(typeof S=="object"&&!Q(S)){const w=e;for(const T in S)d[T]=g=>{const x=ee(g),f=de(g);return w(S[T],M(T,g),x?x[T]:void 0,f?f[T]:void 0,g==null?void 0:g.class,g==null?void 0:g.className)(p)}}return d}return e(y,H(),re(R),N==null?void 0:N.class,N==null?void 0:N.className)(p)},F=()=>{if(!(!v||typeof v!="object"))return Object.keys(v)};return O.variantKeys=F(),O.extend=o,O.base=y,O.slots=S,O.variants=v,O.defaultVariants=$,O.compoundSlots=b,O.compoundVariants=R,O};return{tv:t,createTV:n=>(a,o)=>t(a,o?_t(n,o):n)}};const _o=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},Fo=(e,t)=>({classGroupId:e,validator:t}),In=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),pt="-",Rr=[],Bo="arbitrary..",Go=e=>{const t=Ho(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Ko(s);const l=s.split(pt),c=l[0]===""&&l.length>1?1:0;return Nn(l,c,t)},getConflictingClassGroupIds:(s,l)=>{if(l){const c=n[s],b=r[s];return c?b?_o(b,c):c:b||Rr}return r[s]||Rr}}},Nn=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const a=e[t],o=r.nextPart.get(a);if(o){const b=Nn(e,t+1,o);if(b)return b}const s=r.validators;if(s===null)return;const l=t===0?e.join(pt):e.slice(t).join(pt),c=s.length;for(let b=0;b<c;b++){const m=s[b];if(m.validator(l))return m.classGroupId}},Ko=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?Bo+n:void 0})(),Ho=e=>{const{theme:t,classGroups:r}=e;return zo(r,t)},zo=(e,t)=>{const r=In();for(const n in e){const a=e[n];ir(a,r,n,t)}return r},ir=(e,t,r,n)=>{const a=e.length;for(let o=0;o<a;o++){const s=e[o];Uo(s,t,r,n)}},Uo=(e,t,r,n)=>{if(typeof e=="string"){Wo(e,t,r);return}if(typeof e=="function"){qo(e,t,r,n);return}Yo(e,t,r,n)},Wo=(e,t,r)=>{const n=e===""?t:On(t,e);n.classGroupId=r},qo=(e,t,r,n)=>{if(Xo(e)){ir(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(Fo(r,e))},Yo=(e,t,r,n)=>{const a=Object.entries(e),o=a.length;for(let s=0;s<o;s++){const[l,c]=a[s];ir(c,On(t,l),r,n)}},On=(e,t)=>{let r=e;const n=t.split(pt),a=n.length;for(let o=0;o<a;o++){const s=n[o];let l=r.nextPart.get(s);l||(l=In(),r.nextPart.set(s,l)),r=l}return r},Xo=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Zo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const a=(o,s)=>{r[o]=s,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(o){let s=r[o];if(s!==void 0)return s;if((s=n[o])!==void 0)return a(o,s),s},set(o,s){o in r?r[o]=s:a(o,s)}}},Ft="!",Ir=":",Jo=[],Nr=(e,t,r,n,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:a}),Qo=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=a=>{const o=[];let s=0,l=0,c=0,b;const m=a.length;for(let h=0;h<m;h++){const E=a[h];if(s===0&&l===0){if(E===Ir){o.push(a.slice(c,h)),c=h+1;continue}if(E==="/"){b=h;continue}}E==="["?s++:E==="]"?s--:E==="("?l++:E===")"&&l--}const p=o.length===0?a:a.slice(c);let y=p,v=!1;p.endsWith(Ft)?(y=p.slice(0,-1),v=!0):p.startsWith(Ft)&&(y=p.slice(1),v=!0);const $=b&&b>c?b-c:void 0;return Nr(o,v,y,$)};if(t){const a=t+Ir,o=n;n=s=>s.startsWith(a)?o(s.slice(a.length)):Nr(Jo,!1,s,void 0,!0)}if(r){const a=n;n=o=>r({className:o,parseClassName:a})}return n},es=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let a=[];for(let o=0;o<r.length;o++){const s=r[o],l=s[0]==="[",c=t.has(s);l||c?(a.length>0&&(a.sort(),n.push(...a),a=[]),n.push(s)):a.push(s)}return a.length>0&&(a.sort(),n.push(...a)),n}},ts=e=>({cache:Zo(e.cacheSize),parseClassName:Qo(e),sortModifiers:es(e),...Go(e)}),rs=/\s+/,ns=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:o}=t,s=[],l=e.trim().split(rs);let c="";for(let b=l.length-1;b>=0;b-=1){const m=l[b],{isExternal:p,modifiers:y,hasImportantModifier:v,baseClassName:$,maybePostfixModifierPosition:h}=r(m);if(p){c=m+(c.length>0?" "+c:c);continue}let E=!!h,S=n(E?$.substring(0,h):$);if(!S){if(!E){c=m+(c.length>0?" "+c:c);continue}if(S=n($),!S){c=m+(c.length>0?" "+c:c);continue}E=!1}const R=y.length===0?"":y.length===1?y[0]:o(y).join(":"),O=v?R+Ft:R,F=O+S;if(s.indexOf(F)>-1)continue;s.push(F);const N=a(S,E);for(let Z=0;Z<N.length;++Z){const H=N[Z];s.push(O+H)}c=m+(c.length>0?" "+c:c)}return c},as=(...e)=>{let t=0,r,n,a="";for(;t<e.length;)(r=e[t++])&&(n=jn(r))&&(a&&(a+=" "),a+=n);return a},jn=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=jn(e[n]))&&(r&&(r+=" "),r+=t);return r},Bt=(e,...t)=>{let r,n,a,o;const s=c=>{const b=t.reduce((m,p)=>p(m),e());return r=ts(b),n=r.cache.get,a=r.cache.set,o=l,l(c)},l=c=>{const b=n(c);if(b)return b;const m=ns(c,r);return a(c,m),m};return o=s,(...c)=>o(as(...c))},os=[],z=e=>{const t=r=>r[e]||os;return t.isThemeGetter=!0,t},Vn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Dn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ss=/^\d+\/\d+$/,is=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ls=/\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$/,cs=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ds=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,us=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,we=e=>ss.test(e),j=e=>!!e&&!Number.isNaN(Number(e)),ue=e=>!!e&&Number.isInteger(Number(e)),Lt=e=>e.endsWith("%")&&j(e.slice(0,-1)),se=e=>is.test(e),fs=()=>!0,ps=e=>ls.test(e)&&!cs.test(e),An=()=>!1,bs=e=>ds.test(e),ms=e=>us.test(e),hs=e=>!k(e)&&!C(e),gs=e=>Re(e,Bn,An),k=e=>Vn.test(e),ve=e=>Re(e,Gn,ps),Mt=e=>Re(e,Es,j),Or=e=>Re(e,_n,An),vs=e=>Re(e,Fn,ms),tt=e=>Re(e,Kn,bs),C=e=>Dn.test(e),je=e=>Ie(e,Gn),ys=e=>Ie(e,ws),jr=e=>Ie(e,_n),xs=e=>Ie(e,Bn),$s=e=>Ie(e,Fn),rt=e=>Ie(e,Kn,!0),Re=(e,t,r)=>{const n=Vn.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Ie=(e,t,r=!1)=>{const n=Dn.exec(e);return n?n[1]?t(n[1]):r:!1},_n=e=>e==="position"||e==="percentage",Fn=e=>e==="image"||e==="url",Bn=e=>e==="length"||e==="size"||e==="bg-size",Gn=e=>e==="length",Es=e=>e==="number",ws=e=>e==="family-name",Kn=e=>e==="shadow",Gt=()=>{const e=z("color"),t=z("font"),r=z("text"),n=z("font-weight"),a=z("tracking"),o=z("leading"),s=z("breakpoint"),l=z("container"),c=z("spacing"),b=z("radius"),m=z("shadow"),p=z("inset-shadow"),y=z("text-shadow"),v=z("drop-shadow"),$=z("blur"),h=z("perspective"),E=z("aspect"),S=z("ease"),R=z("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...F(),C,k],Z=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],M=()=>[C,k,c],B=()=>[we,"full","auto",...M()],A=()=>[ue,"none","subgrid",C,k],re=()=>["auto",{span:["full",ue,C,k]},ue,C,k],ee=()=>[ue,"auto",C,k],de=()=>["auto","min","max","fr",C,k],d=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],w=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...M()],g=()=>[we,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],x=()=>[e,C,k],f=()=>[...F(),jr,Or,{position:[C,k]}],L=()=>["no-repeat",{repeat:["","x","y","space","round"]}],P=()=>["auto","cover","contain",xs,gs,{size:[C,k]}],V=()=>[Lt,je,ve],_=()=>["","none","full",b,C,k],G=()=>["",j,je,ve],J=()=>["solid","dashed","dotted","double"],ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>[j,Lt,jr,Or],yr=()=>["","none",$,C,k],Ze=()=>["none",j,C,k],Je=()=>["none",j,C,k],St=()=>[j,C,k],Qe=()=>[we,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[se],breakpoint:[se],color:[fs],container:[se],"drop-shadow":[se],ease:["in","out","in-out"],font:[hs],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[se],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[se],shadow:[se],spacing:["px",j],text:[se],"text-shadow":[se],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",we,k,C,E]}],container:["container"],columns:[{columns:[j,k,C,l]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"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:N()}],overflow:[{overflow:Z()}],"overflow-x":[{"overflow-x":Z()}],"overflow-y":[{"overflow-y":Z()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{start:B()}],end:[{end:B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[ue,"auto",C,k]}],basis:[{basis:[we,"full","auto",l,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[j,we,"auto","initial","none",k]}],grow:[{grow:["",j,C,k]}],shrink:[{shrink:["",j,C,k]}],order:[{order:[ue,"first","last","none",C,k]}],"grid-cols":[{"grid-cols":A()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":A()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":de()}],"auto-rows":[{"auto-rows":de()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...d(),"normal"]}],"justify-items":[{"justify-items":[...w(),"normal"]}],"justify-self":[{"justify-self":["auto",...w()]}],"align-content":[{content:["normal",...d()]}],"align-items":[{items:[...w(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...w(),{baseline:["","last"]}]}],"place-content":[{"place-content":d()}],"place-items":[{"place-items":[...w(),"baseline"]}],"place-self":[{"place-self":["auto",...w()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:g()}],w:[{w:[l,"screen",...g()]}],"min-w":[{"min-w":[l,"screen","none",...g()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...g()]}],h:[{h:["screen","lh",...g()]}],"min-h":[{"min-h":["screen","lh","none",...g()]}],"max-h":[{"max-h":["screen","lh",...g()]}],"font-size":[{text:["base",r,je,ve]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,C,Mt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Lt,k]}],"font-family":[{font:[ys,k,t]}],"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:[a,C,k]}],"line-clamp":[{"line-clamp":[j,"none",C,Mt]}],leading:[{leading:[o,...M()]}],"list-image":[{"list-image":["none",C,k]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",C,k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:x()}],"text-color":[{text:x()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[j,"from-font","auto",C,ve]}],"text-decoration-color":[{decoration:x()}],"underline-offset":[{"underline-offset":[j,"auto",C,k]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",C,k]}],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",C,k]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:f()}],"bg-repeat":[{bg:L()}],"bg-size":[{bg:P()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ue,C,k],radial:["",C,k],conic:[ue,C,k]},$s,vs]}],"bg-color":[{bg:x()}],"gradient-from-pos":[{from:V()}],"gradient-via-pos":[{via:V()}],"gradient-to-pos":[{to:V()}],"gradient-from":[{from:x()}],"gradient-via":[{via:x()}],"gradient-to":[{to:x()}],rounded:[{rounded:_()}],"rounded-s":[{"rounded-s":_()}],"rounded-e":[{"rounded-e":_()}],"rounded-t":[{"rounded-t":_()}],"rounded-r":[{"rounded-r":_()}],"rounded-b":[{"rounded-b":_()}],"rounded-l":[{"rounded-l":_()}],"rounded-ss":[{"rounded-ss":_()}],"rounded-se":[{"rounded-se":_()}],"rounded-ee":[{"rounded-ee":_()}],"rounded-es":[{"rounded-es":_()}],"rounded-tl":[{"rounded-tl":_()}],"rounded-tr":[{"rounded-tr":_()}],"rounded-br":[{"rounded-br":_()}],"rounded-bl":[{"rounded-bl":_()}],"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:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:x()}],"border-color-x":[{"border-x":x()}],"border-color-y":[{"border-y":x()}],"border-color-s":[{"border-s":x()}],"border-color-e":[{"border-e":x()}],"border-color-t":[{"border-t":x()}],"border-color-r":[{"border-r":x()}],"border-color-b":[{"border-b":x()}],"border-color-l":[{"border-l":x()}],"divide-color":[{divide:x()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[j,C,k]}],"outline-w":[{outline:["",j,je,ve]}],"outline-color":[{outline:x()}],shadow:[{shadow:["","none",m,rt,tt]}],"shadow-color":[{shadow:x()}],"inset-shadow":[{"inset-shadow":["none",p,rt,tt]}],"inset-shadow-color":[{"inset-shadow":x()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:x()}],"ring-offset-w":[{"ring-offset":[j,ve]}],"ring-offset-color":[{"ring-offset":x()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":x()}],"text-shadow":[{"text-shadow":["none",y,rt,tt]}],"text-shadow-color":[{"text-shadow":x()}],opacity:[{opacity:[j,C,k]}],"mix-blend":[{"mix-blend":[...ge(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ge()}],"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":[j]}],"mask-image-linear-from-pos":[{"mask-linear-from":q()}],"mask-image-linear-to-pos":[{"mask-linear-to":q()}],"mask-image-linear-from-color":[{"mask-linear-from":x()}],"mask-image-linear-to-color":[{"mask-linear-to":x()}],"mask-image-t-from-pos":[{"mask-t-from":q()}],"mask-image-t-to-pos":[{"mask-t-to":q()}],"mask-image-t-from-color":[{"mask-t-from":x()}],"mask-image-t-to-color":[{"mask-t-to":x()}],"mask-image-r-from-pos":[{"mask-r-from":q()}],"mask-image-r-to-pos":[{"mask-r-to":q()}],"mask-image-r-from-color":[{"mask-r-from":x()}],"mask-image-r-to-color":[{"mask-r-to":x()}],"mask-image-b-from-pos":[{"mask-b-from":q()}],"mask-image-b-to-pos":[{"mask-b-to":q()}],"mask-image-b-from-color":[{"mask-b-from":x()}],"mask-image-b-to-color":[{"mask-b-to":x()}],"mask-image-l-from-pos":[{"mask-l-from":q()}],"mask-image-l-to-pos":[{"mask-l-to":q()}],"mask-image-l-from-color":[{"mask-l-from":x()}],"mask-image-l-to-color":[{"mask-l-to":x()}],"mask-image-x-from-pos":[{"mask-x-from":q()}],"mask-image-x-to-pos":[{"mask-x-to":q()}],"mask-image-x-from-color":[{"mask-x-from":x()}],"mask-image-x-to-color":[{"mask-x-to":x()}],"mask-image-y-from-pos":[{"mask-y-from":q()}],"mask-image-y-to-pos":[{"mask-y-to":q()}],"mask-image-y-from-color":[{"mask-y-from":x()}],"mask-image-y-to-color":[{"mask-y-to":x()}],"mask-image-radial":[{"mask-radial":[C,k]}],"mask-image-radial-from-pos":[{"mask-radial-from":q()}],"mask-image-radial-to-pos":[{"mask-radial-to":q()}],"mask-image-radial-from-color":[{"mask-radial-from":x()}],"mask-image-radial-to-color":[{"mask-radial-to":x()}],"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":F()}],"mask-image-conic-pos":[{"mask-conic":[j]}],"mask-image-conic-from-pos":[{"mask-conic-from":q()}],"mask-image-conic-to-pos":[{"mask-conic-to":q()}],"mask-image-conic-from-color":[{"mask-conic-from":x()}],"mask-image-conic-to-color":[{"mask-conic-to":x()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:f()}],"mask-repeat":[{mask:L()}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",C,k]}],filter:[{filter:["","none",C,k]}],blur:[{blur:yr()}],brightness:[{brightness:[j,C,k]}],contrast:[{contrast:[j,C,k]}],"drop-shadow":[{"drop-shadow":["","none",v,rt,tt]}],"drop-shadow-color":[{"drop-shadow":x()}],grayscale:[{grayscale:["",j,C,k]}],"hue-rotate":[{"hue-rotate":[j,C,k]}],invert:[{invert:["",j,C,k]}],saturate:[{saturate:[j,C,k]}],sepia:[{sepia:["",j,C,k]}],"backdrop-filter":[{"backdrop-filter":["","none",C,k]}],"backdrop-blur":[{"backdrop-blur":yr()}],"backdrop-brightness":[{"backdrop-brightness":[j,C,k]}],"backdrop-contrast":[{"backdrop-contrast":[j,C,k]}],"backdrop-grayscale":[{"backdrop-grayscale":["",j,C,k]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[j,C,k]}],"backdrop-invert":[{"backdrop-invert":["",j,C,k]}],"backdrop-opacity":[{"backdrop-opacity":[j,C,k]}],"backdrop-saturate":[{"backdrop-saturate":[j,C,k]}],"backdrop-sepia":[{"backdrop-sepia":["",j,C,k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",C,k]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[j,"initial",C,k]}],ease:[{ease:["linear","initial",S,C,k]}],delay:[{delay:[j,C,k]}],animate:[{animate:["none",R,C,k]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,C,k]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:Ze()}],"rotate-x":[{"rotate-x":Ze()}],"rotate-y":[{"rotate-y":Ze()}],"rotate-z":[{"rotate-z":Ze()}],scale:[{scale:Je()}],"scale-x":[{"scale-x":Je()}],"scale-y":[{"scale-y":Je()}],"scale-z":[{"scale-z":Je()}],"scale-3d":["scale-3d"],skew:[{skew:St()}],"skew-x":[{"skew-x":St()}],"skew-y":[{"skew-y":St()}],transform:[{transform:[C,k,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Qe()}],"translate-x":[{"translate-x":Qe()}],"translate-y":[{"translate-y":Qe()}],"translate-z":[{"translate-z":Qe()}],"translate-none":["translate-none"],accent:[{accent:x()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:x()}],"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",C,k]}],"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":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",C,k]}],fill:[{fill:["none",...x()]}],"stroke-w":[{stroke:[j,je,ve,Mt]}],stroke:[{stroke:["none",...x()]}],"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"]}},Ps=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:a={},override:o={}})=>(Ae(e,"cacheSize",t),Ae(e,"prefix",r),Ae(e,"experimentalParseClassName",n),nt(e.theme,o.theme),nt(e.classGroups,o.classGroups),nt(e.conflictingClassGroups,o.conflictingClassGroups),nt(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),Ae(e,"orderSensitiveModifiers",o.orderSensitiveModifiers),at(e.theme,a.theme),at(e.classGroups,a.classGroups),at(e.conflictingClassGroups,a.conflictingClassGroups),at(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),Hn(e,a,"orderSensitiveModifiers"),e),Ae=(e,t,r)=>{r!==void 0&&(e[t]=r)},nt=(e,t)=>{if(t)for(const r in t)Ae(e,r,t[r])},at=(e,t)=>{if(t)for(const r in t)Hn(e,t,r)},Hn=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},Ss=(e,...t)=>typeof e=="function"?Bt(Gt,e,...t):Bt(()=>Ps(Gt(),e),...t),ks=Bt(Gt);var Cs=e=>Q(e)?ks:Ss({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),zn=(e,t)=>{const r=Ke(e);return!r||!((t==null?void 0:t.twMerge)??!0)?r:((!ie.cachedTwMerge||ie.didTwMergeConfigChange)&&(ie.didTwMergeConfigChange=!1,ie.cachedTwMerge=Cs(ie.cachedTwMergeConfig)),ie.cachedTwMerge(r)||void 0)},U=(...e)=>zn(e,{}),Ts=(...e)=>t=>zn(e,t),{tv:he}=Ao(Ts);const Ls=he({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"}}}}),Ms=he({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"}}}),Rs=he({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"}}}}),Is=he({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"}}}}),Ns=he({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"}}}}),Os=he({slots:{base:"link",icon:"link__icon"}}),js=he({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"}}}}),Vs=he({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"}}}),Ds=Symbol("default");function As({values:e,children:t}){for(let[r,n]of e)t=i.createElement(r.Provider,{value:n},t);return t}function Ue(e){let{className:t,style:r,children:n,defaultClassName:a,defaultChildren:o,defaultStyle:s,values:l,render:c}=e;return i.useMemo(()=>{let b,m,p;return typeof t=="function"?b=t({...l,defaultClassName:a}):b=t,typeof r=="function"?m=r({...l,defaultStyle:s||{}}):m=r,typeof n=="function"?p=n({...l,defaultChildren:o}):n==null?p=o:p=n,{className:b??a,style:m||s?{...s,...m}:void 0,children:p??o,"data-rac":"",render:c?y=>c(y,l):void 0}},[t,r,n,a,o,s,l,c])}function _s(e,t){return r=>t(typeof e=="function"?e(r):e,r)}function lr(e,t){let r=i.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=t||Ds;if(!r.slots[n]){let a=new Intl.ListFormat().format(Object.keys(r.slots).map(s=>`"${s}"`)),o=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${o} Valid slot names are ${a}.`)}return r.slots[n]}return r}function We(e,t,r){let n=lr(r,e.slot)||{},{ref:a,...o}=n,s=kn(i.useMemo(()=>ze(t,a),[t,a])),l=K(o,e);return"style"in o&&o.style&&"style"in e&&e.style&&(typeof o.style=="function"||typeof e.style=="function"?l.style=c=>{let b=typeof o.style=="function"?o.style(c):o.style,m={...c.defaultStyle,...b},p=typeof e.style=="function"?e.style({...c,defaultStyle:m}):e.style;return{...m,...p}}:l.style={...o.style,...e.style}),[l,s]}function Fs(e=!0){let[t,r]=i.useState(e),n=i.useRef(!1),a=i.useCallback(o=>{n.current=!0,r(!!o)},[]);return ce(()=>{n.current||r(!1)},[]),[a,t]}function Bs(e){const t=/^(data-.*)$/;let r={};for(const n in e)t.test(n)||(r[n]=e[n]);return r}function Gs(e,t,r){let{render:n,...a}=t,o=i.useRef(null),s=i.useMemo(()=>ze(r,o),[r,o]);ce(()=>{process.env.NODE_ENV!=="production"&&n&&(o.current?o.current.localName!==e&&console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${e}>, got <${o.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`?"))},[e,n]);let l={...a,ref:s};return n?n(l,void 0):i.createElement(e,l)}const Vr={},Ne=new Proxy({},{get(e,t){if(typeof t!="string")return;let r=Vr[t];return r||(r=i.forwardRef(Gs.bind(null,t)),Vr[t]=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(e){return this.content.appendChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.removeChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(e,t){return this.content.insertBefore(e,t)}}));const Ks=i.createContext(!1);function Hs(e){let t=(r,n)=>i.useContext(Ks)?null:e(r,n);return t.displayName=e.displayName||e.name,i.forwardRef(t)}const zs=i.createContext({});function Us(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":a,labelElementType:o="label"}=e;t=Me(t);let s=Me(),l={};r?(n=n?`${s} ${n}`:s,l={id:s,htmlFor:o==="label"?t:void 0}):!n&&!a&&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=xo({id:t,"aria-label":a,"aria-labelledby":n});return{labelProps:l,fieldProps:c}}const Ws=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),qs=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Ys(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return Ws.has(r.script)}let t=e.split("-")[0];return qs.has(t)}const Un=Symbol.for("react-aria.i18n.locale");function Wn(){let e=typeof window<"u"&&window[Un]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Ys(e)?"rtl":"ltr"}}let Kt=Wn(),_e=new Set;function Dr(){Kt=Wn();for(let e of _e)e(Kt)}function Xs(){let e=ar(),[t,r]=i.useState(Kt);return i.useEffect(()=>(_e.size===0&&window.addEventListener("languagechange",Dr),_e.add(r),()=>{_e.delete(r),_e.size===0&&window.removeEventListener("languagechange",Dr)}),[]),e?{locale:typeof window<"u"&&window[Un]||"en-US",direction:"ltr"}:t}const Zs=i.createContext(null);function Js(){let e=Xs();return i.useContext(Zs)||e}let Rt=new Map,Ht=!1;try{Ht=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let bt=!1;try{bt=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const qn={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Qs{constructor(t,r={}){this.numberFormatter=ei(t,r),this.options=r}format(t){var n;let r="";if(!Ht&&this.options.signDisplay!=null?r=ti(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!bt){let{unit:a,unitDisplay:o="short",locale:s}=this.resolvedOptions();if(!a)return r;let l=(n=qn[a])==null?void 0:n[o];r+=l[s]||l.default}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(t),a=this.numberFormatter.formatToParts(r);return[...n.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...a.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Ht&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!bt&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}}function ei(e,t={}){var o;let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!bt){let{unit:s,unitDisplay:l="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!((o=qn[s])!=null&&o[l]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${l}`);t={...t,style:"decimal"}}let n=e+(t?Object.entries(t).sort((s,l)=>s[0]<l[0]?-1:1).join():"");if(Rt.has(n))return Rt.get(n);let a=new Intl.NumberFormat(e,t);return Rt.set(n,a),a}function ti(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let a=e.format(-r),o=e.format(r),s=a.replace(o,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),a.replace(o,"!!!").replace(s,"+").replace("!!!",o)}else return e.format(r)}}function ri(e={}){let{locale:t}=Js();return i.useMemo(()=>new Qs(t,e),[t,e])}function ni(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function ai(e){let{value:t=0,minValue:r=0,maxValue:n=100,valueLabel:a,isIndeterminate:o,formatOptions:s={style:"percent"}}=e,l=ne(e,{labelable:!0}),{labelProps:c,fieldProps:b}=Us({...e,labelElementType:"span"});t=ni(t,r,n);let m=(t-r)/(n-r),p=ri(s);if(!o&&!a){let y=s.style==="percent"?m:t;a=p.format(y)}return{progressBarProps:K(l,{...b,"aria-valuenow":o?void 0:t,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":o?void 0:a,role:"progressbar"}),labelProps:c}}function oi(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}const Yn=i.createContext(null),si=i.forwardRef(function(t,r){[t,r]=We(t,r,Yn);let{value:n=0,minValue:a=0,maxValue:o=100,isIndeterminate:s=!1}=t;n=oi(n,a,o);let[l,c]=Fs(!t["aria-label"]&&!t["aria-labelledby"]),{progressBarProps:b,labelProps:m}=ai({...t,label:c}),p=s?void 0:(n-a)/(o-a)*100,y=Ue({...t,defaultClassName:"react-aria-ProgressBar",values:{percentage:p,valueText:b["aria-valuetext"],isIndeterminate:s}}),v=ne(t,{global:!0});return i.createElement(Ne.div,{...K(v,y,b),ref:r,slot:t.slot||void 0},i.createElement(zs.Provider,{value:{...m,ref:l,elementType:"span"}},y.children))}),Xn=7e3;let ae=null;function Ar(e,t="assertive",r=Xn){ae?ae.announce(e,t,r):(ae=new ii,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?ae.announce(e,t,r):setTimeout(()=>{ae!=null&&ae.isAttached()&&(ae==null||ae.announce(e,t,r))},100))}class ii{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 t;return(t=this.node)==null?void 0:t.isConnected}createLog(t){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",t),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,r="assertive",n=Xn){var o,s;if(!this.node)return;let a=document.createElement("div");typeof t=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",t["aria-labelledby"])):a.textContent=t,r==="assertive"?(o=this.assertiveLog)==null||o.appendChild(a):(s=this.politeLog)==null||s.appendChild(a),t!==""&&setTimeout(()=>{a.remove()},n)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}}function cr(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Zn(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Jn(e){let t=i.useRef({isFocused:!1,observer:null});return ce(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),i.useCallback(r=>{let n=I(r);if(n instanceof HTMLButtonElement||n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement){t.current.isFocused=!0;let a=n,o=s=>{if(t.current.isFocused=!1,a.disabled){let l=cr(s);e==null||e(l)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};a.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{var s;if(t.current.isFocused&&a.disabled){(s=t.current.observer)==null||s.disconnect();let l=a===me()?null:me();a.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),a.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(a,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let mt=!1;function _r(e){for(;e&&!To(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=oe(e),r=t.document.activeElement;if(!r||r===e)return;mt=!0;let n=!1,a=m=>{(I(m)===r||n)&&m.stopImmediatePropagation()},o=m=>{(I(m)===r||n)&&(m.stopImmediatePropagation(),!e&&!n&&(n=!0,Le(r),c()))},s=m=>{(I(m)===e||n)&&m.stopImmediatePropagation()},l=m=>{(I(m)===e||n)&&(m.stopImmediatePropagation(),n||(n=!0,Le(r),c()))};t.addEventListener("blur",a,!0),t.addEventListener("focusout",o,!0),t.addEventListener("focusin",l,!0),t.addEventListener("focus",s,!0);let c=()=>{cancelAnimationFrame(b),t.removeEventListener("blur",a,!0),t.removeEventListener("focusout",o,!0),t.removeEventListener("focusin",l,!0),t.removeEventListener("focus",s,!0),mt=!1,n=!1},b=requestAnimationFrame(c);return c}let Ee=null;const zt=new Set;let Be=new Map,$e=!1,Ut=!1;const li={Tab:!0,Escape:!0};function Et(e,t){for(let r of zt)r(e,t)}function ci(e){return!(e.metaKey||!Te()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ht(e){$e=!0,!be.isOpening&&ci(e)&&(Ee="keyboard",Et("keyboard",e))}function te(e){Ee="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&($e=!0,Et("pointer",e))}function Qn(e){!be.isOpening&&At(e)&&($e=!0,Ee="virtual")}function ea(e){let t=oe(I(e)),r=Y(I(e));I(e)===t||I(e)===r||mt||!e.isTrusted||(!$e&&!Ut&&(Ee="virtual",Et("virtual",e)),$e=!1,Ut=!1)}function ta(){mt||($e=!1,Ut=!0)}function Wt(e){if(typeof window>"u"||typeof document>"u")return;const t=oe(e),r=Y(e);if(Be.get(t))return;let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){$e=!0,n.apply(this,arguments)},r.addEventListener("keydown",ht,!0),r.addEventListener("keyup",ht,!0),r.addEventListener("click",Qn,!0),t.addEventListener("focus",ea,!0),t.addEventListener("blur",ta,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",te,!0),r.addEventListener("pointermove",te,!0),r.addEventListener("pointerup",te,!0)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",te,!0),r.addEventListener("mousemove",te,!0),r.addEventListener("mouseup",te,!0)),t.addEventListener("beforeunload",()=>{ra(e)},{once:!0}),Be.set(t,{focus:n})}const ra=(e,t)=>{const r=oe(e),n=Y(e);t&&n.removeEventListener("DOMContentLoaded",t),Be.has(r)&&(r.HTMLElement.prototype.focus=Be.get(r).focus,n.removeEventListener("keydown",ht,!0),n.removeEventListener("keyup",ht,!0),n.removeEventListener("click",Qn,!0),r.removeEventListener("focus",ea,!0),r.removeEventListener("blur",ta,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",te,!0),n.removeEventListener("pointermove",te,!0),n.removeEventListener("pointerup",te,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",te,!0),n.removeEventListener("mousemove",te,!0),n.removeEventListener("mouseup",te,!0)),Be.delete(r))};function di(e){const t=Y(e);let r;return t.readyState!=="loading"?Wt(e):(r=()=>{Wt(e)},t.addEventListener("DOMContentLoaded",r)),()=>ra(e,r)}typeof document<"u"&&di();function qt(){return Ee!=="pointer"}function ui(){return Ee}function fi(e){Ee=e,Et(e,null)}const pi=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function bi(e,t,r){let n=r?I(r):void 0,a=Y(n),o=oe(n);const s=typeof o<"u"?o.HTMLInputElement:HTMLInputElement,l=typeof o<"u"?o.HTMLTextAreaElement:HTMLTextAreaElement,c=typeof o<"u"?o.HTMLElement:HTMLElement,b=typeof o<"u"?o.KeyboardEvent:KeyboardEvent;let m=me(a);return e=e||m instanceof s&&!pi.has(m.type)||m instanceof l||m instanceof c&&m.isContentEditable,!(e&&t==="keyboard"&&r instanceof b&&!li[r.key])}function mi(e,t,r){Wt(),i.useEffect(()=>{if((r==null?void 0:r.enabled)===!1)return;let n=(a,o)=>{bi(!!(r!=null&&r.isTextInput),a,o)&&e(qt())};return zt.add(n),()=>{zt.delete(n)}},t)}function hi(e){if(!e.isConnected)return;const t=Y(e);if(ui()==="virtual"){let r=me(t);Sn(()=>{const n=me(t);(n===r||n===t.body)&&e.isConnected&&Le(e)})}else Le(e)}function na(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:a}=e;const o=i.useCallback(c=>{if(I(c)===c.currentTarget)return n&&n(c),a&&a(!1),!0},[n,a]),s=Jn(o),l=i.useCallback(c=>{let b=I(c);const m=Y(b),p=m?me(m):me();b===c.currentTarget&&b===p&&(r&&r(c),a&&a(!0),s(c))},[a,r,s]);return{focusProps:{onFocus:!t&&(r||a||n)?l:void 0,onBlur:!t&&(n||a)?o:void 0}}}function Fr(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t&&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."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(n),t&&r.stopPropagation()}}function gi(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Fr(e.onKeyDown),onKeyUp:Fr(e.onKeyUp)}}}let Yt=i.createContext(null);function vi(e){let t=i.useContext(Yt)||{};Cn(t,e);let{ref:r,...n}=t;return n}function dr(e,t){let{focusProps:r}=na(e),{keyboardProps:n}=gi(e),a=K(r,n),o=vi(t),s=e.isDisabled?{}:o,l=i.useRef(e.autoFocus);i.useEffect(()=>{l.current&&t.current&&hi(t.current),l.current=!1},[t]);let c=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(c=void 0),{focusableProps:K({...a,tabIndex:c},s)}}let Se="default",Xt="",dt=new WeakMap;function Br(e){if(nr()){if(Se==="default"){const t=Y(e);Xt=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Se="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";dt.set(e,e.style[t]),e.style[t]="none"}}function It(e){if(nr()){if(Se!=="disabled")return;Se="restoring",setTimeout(()=>{Sn(()=>{if(Se==="restoring"){const t=Y(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Xt||""),Xt="",Se="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&dt.has(e)){let t=dt.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),dt.delete(e)}}const aa=i.createContext({register:()=>{}});aa.displayName="PressResponderContext";function yi(e){let t=i.useContext(aa);if(t){let{register:r,ref:n,...a}=t;e=K(a,e),r()}return Cn(t,e.ref),e}var Ce;class ot{constructor(t,r,n,a){Pr(this,Ce);kt(this,Ce,!0);let o=(a==null?void 0:a.target)??n.currentTarget;const s=o==null?void 0:o.getBoundingClientRect();let l,c=0,b,m=null;n.clientX!=null&&n.clientY!=null&&(b=n.clientX,m=n.clientY),s&&(b!=null&&m!=null?(l=b-s.left,c=m-s.top):(l=s.width/2,c=s.height/2)),this.type=t,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=l,this.y=c,this.key=n.key}continuePropagation(){kt(this,Ce,!1)}get shouldStopPropagation(){return wr(this,Ce)}}Ce=new WeakMap;const Gr=Symbol("linkClicked"),Kr="react-aria-pressable-style",Hr="data-react-aria-pressable";function gt(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:a,onPressUp:o,onClick:s,isDisabled:l,isPressed:c,preventFocusOnPress:b,shouldCancelOnPointerExit:m,allowTextSelectionOnPress:p,ref:y,...v}=yi(e),[$,h]=i.useState(!1),E=i.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:S,removeAllGlobalListeners:R}=sr(),O=i.useCallback((d,w)=>{let T=E.current;if(l||T.didFirePressStart)return!1;let g=!0;if(T.isTriggeringEvent=!0,n){let x=new ot("pressstart",w,d);n(x),g=x.shouldStopPropagation}return r&&r(!0),T.isTriggeringEvent=!1,T.didFirePressStart=!0,h(!0),g},[l,n,r]),F=i.useCallback((d,w,T=!0)=>{let g=E.current;if(!g.didFirePressStart)return!1;g.didFirePressStart=!1,g.isTriggeringEvent=!0;let x=!0;if(a){let f=new ot("pressend",w,d);a(f),x=f.shouldStopPropagation}if(r&&r(!1),h(!1),t&&T&&!l){let f=new ot("press",w,d);t(f),x&&(x=f.shouldStopPropagation)}return g.isTriggeringEvent=!1,x},[l,a,r,t]),N=xe(F),Z=i.useCallback((d,w)=>{let T=E.current;if(l)return!1;if(o){T.isTriggeringEvent=!0;let g=new ot("pressup",w,d);return o(g),T.isTriggeringEvent=!1,g.shouldStopPropagation}return!0},[l,o]),H=xe(Z),M=i.useCallback(d=>{let w=E.current;if(w.isPressed&&w.target){w.didFirePressStart&&w.pointerType!=null&&F(ye(w.target,d),w.pointerType,!1),w.isPressed=!1,w.isOverTarget=!1,w.activePointerId=null,w.pointerType=null,R(),p||It(w.target);for(let T of w.disposables)T();w.disposables=[]}},[p,R,F]),B=xe(M);i.useEffect(()=>{l&&E.current.isPressed&&B({currentTarget:E.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[l]);let A=i.useCallback(d=>{m&&M(d)},[m,M]),re=i.useCallback(d=>{l||s==null||s(d)},[l,s]),ee=i.useCallback((d,w)=>{if(!l&&s){let T=new MouseEvent("click",d);Zn(T,w),s(cr(T))}},[l,s]),de=i.useMemo(()=>{let d=E.current,w={onKeyDown(g){var x;if(Nt(g.nativeEvent,g.currentTarget)&&D(g.currentTarget,I(g))){Wr(I(g),g.key)&&g.preventDefault();let f=!0;!d.isPressed&&!g.repeat&&(d.target=g.currentTarget,d.isPressed=!0,d.pointerType="keyboard",f=O(g,"keyboard"));let L=g.currentTarget,P=V=>{Nt(V,L)&&!V.repeat&&D(L,I(V))&&d.target&&H(ye(d.target,V),"keyboard")};S(Y(g.currentTarget),"keyup",wn(P,T),!0),f&&g.stopPropagation(),g.metaKey&&Te()&&((x=d.metaKeyEvents)==null||x.set(g.key,g.nativeEvent))}else g.key==="Meta"&&(d.metaKeyEvents=new Map)},onClick(g){if(!(g&&!D(g.currentTarget,I(g)))&&g&&g.button===0&&!d.isTriggeringEvent&&!be.isOpening){let x=!0;if(l&&g.preventDefault(),!d.ignoreEmulatedMouseEvents&&!d.isPressed&&(d.pointerType==="virtual"||At(g.nativeEvent))){let f=O(g,"virtual"),L=H(g,"virtual"),P=N(g,"virtual");re(g),x=f&&L&&P}else if(d.isPressed&&d.pointerType!=="keyboard"){let f=d.pointerType||g.nativeEvent.pointerType||"virtual",L=H(ye(g.currentTarget,g),f),P=N(ye(g.currentTarget,g),f,!0);x=L&&P,d.isOverTarget=!1,re(g),B(g)}d.ignoreEmulatedMouseEvents=!1,x&&g.stopPropagation()}}},T=g=>{var x,f,L;if(d.isPressed&&d.target&&Nt(g,d.target)){Wr(I(g),g.key)&&g.preventDefault();let P=I(g),V=D(d.target,P);N(ye(d.target,g),"keyboard",V),V&&ee(g,d.target),R(),g.key!=="Enter"&&ur(d.target)&&D(d.target,P)&&!g[Gr]&&(g[Gr]=!0,be(d.target,g,!1)),d.isPressed=!1,(x=d.metaKeyEvents)==null||x.delete(g.key)}else if(g.key==="Meta"&&((f=d.metaKeyEvents)!=null&&f.size)){let P=d.metaKeyEvents;d.metaKeyEvents=void 0;for(let V of P.values())(L=d.target)==null||L.dispatchEvent(new KeyboardEvent("keyup",V))}};if(typeof PointerEvent<"u"){w.onPointerDown=f=>{if(f.button!==0||!D(f.currentTarget,I(f)))return;if(Eo(f.nativeEvent)){d.pointerType="virtual";return}d.pointerType=f.pointerType;let L=!0;if(!d.isPressed){d.isPressed=!0,d.isOverTarget=!0,d.activePointerId=f.pointerId,d.target=f.currentTarget,p||Br(d.target),L=O(f,d.pointerType);let P=I(f);"releasePointerCapture"in P&&("hasPointerCapture"in P?P.hasPointerCapture(f.pointerId)&&P.releasePointerCapture(f.pointerId):P.releasePointerCapture(f.pointerId)),S(Y(f.currentTarget),"pointerup",g,!1),S(Y(f.currentTarget),"pointercancel",x,!1)}L&&f.stopPropagation()},w.onMouseDown=f=>{if(D(f.currentTarget,I(f))&&f.button===0){if(b){let L=_r(f.target);L&&d.disposables.push(L)}f.stopPropagation()}},w.onPointerUp=f=>{!D(f.currentTarget,I(f))||d.pointerType==="virtual"||f.button===0&&!d.isPressed&&H(f,d.pointerType||f.pointerType)},w.onPointerEnter=f=>{f.pointerId===d.activePointerId&&d.target&&!d.isOverTarget&&d.pointerType!=null&&(d.isOverTarget=!0,O(ye(d.target,f),d.pointerType))},w.onPointerLeave=f=>{f.pointerId===d.activePointerId&&d.target&&d.isOverTarget&&d.pointerType!=null&&(d.isOverTarget=!1,N(ye(d.target,f),d.pointerType,!1),A(f))};let g=f=>{if(f.pointerId===d.activePointerId&&d.isPressed&&f.button===0&&d.target){if(D(d.target,I(f))&&d.pointerType!=null){let L=!1,P=setTimeout(()=>{d.isPressed&&d.target instanceof HTMLElement&&(L?B(f):(Le(d.target),d.target.click()))},80);S(f.currentTarget,"click",()=>L=!0,!0),d.disposables.push(()=>clearTimeout(P))}else B(f);d.isOverTarget=!1}},x=f=>{B(f)};w.onDragStart=f=>{D(f.currentTarget,I(f))&&B(f)}}else if(process.env.NODE_ENV==="test"){w.onMouseDown=f=>{if(f.button!==0||!D(f.currentTarget,I(f)))return;if(d.ignoreEmulatedMouseEvents){f.stopPropagation();return}if(d.isPressed=!0,d.isOverTarget=!0,d.target=f.currentTarget,d.pointerType=At(f.nativeEvent)?"virtual":"mouse",Aa.flushSync(()=>O(f,d.pointerType))&&f.stopPropagation(),b){let P=_r(f.target);P&&d.disposables.push(P)}S(Y(f.currentTarget),"mouseup",g,!1)},w.onMouseEnter=f=>{if(!D(f.currentTarget,I(f)))return;let L=!0;d.isPressed&&!d.ignoreEmulatedMouseEvents&&d.pointerType!=null&&(d.isOverTarget=!0,L=O(f,d.pointerType)),L&&f.stopPropagation()},w.onMouseLeave=f=>{if(!D(f.currentTarget,I(f)))return;let L=!0;d.isPressed&&!d.ignoreEmulatedMouseEvents&&d.pointerType!=null&&(d.isOverTarget=!1,L=N(f,d.pointerType,!1),A(f)),L&&f.stopPropagation()},w.onMouseUp=f=>{D(f.currentTarget,I(f))&&!d.ignoreEmulatedMouseEvents&&f.button===0&&!d.isPressed&&H(f,d.pointerType||"mouse")};let g=f=>{if(f.button===0){if(d.ignoreEmulatedMouseEvents){d.ignoreEmulatedMouseEvents=!1;return}d.target&&D(d.target,I(f))&&d.pointerType!=null||B(f),d.isOverTarget=!1}};w.onTouchStart=f=>{if(!D(f.currentTarget,I(f)))return;let L=xi(f.nativeEvent);if(!L)return;d.activePointerId=L.identifier,d.ignoreEmulatedMouseEvents=!0,d.isOverTarget=!0,d.isPressed=!0,d.target=f.currentTarget,d.pointerType="touch",p||Br(d.target),O(fe(d.target,f),d.pointerType)&&f.stopPropagation(),S(oe(f.currentTarget),"scroll",x,!0)},w.onTouchMove=f=>{if(!D(f.currentTarget,I(f)))return;if(!d.isPressed){f.stopPropagation();return}let L=zr(f.nativeEvent,d.activePointerId),P=!0;L&&Ur(L,f.currentTarget)?!d.isOverTarget&&d.pointerType!=null&&(d.isOverTarget=!0,P=O(fe(d.target,f),d.pointerType)):d.isOverTarget&&d.pointerType!=null&&(d.isOverTarget=!1,P=N(fe(d.target,f),d.pointerType,!1),A(fe(d.target,f))),P&&f.stopPropagation()},w.onTouchEnd=f=>{if(!D(f.currentTarget,I(f)))return;if(!d.isPressed){f.stopPropagation();return}let L=zr(f.nativeEvent,d.activePointerId),P=!0;L&&Ur(L,f.currentTarget)&&d.pointerType!=null?(H(fe(d.target,f),d.pointerType),P=N(fe(d.target,f),d.pointerType),ee(f.nativeEvent,d.target)):d.isOverTarget&&d.pointerType!=null&&(P=N(fe(d.target,f),d.pointerType,!1)),P&&f.stopPropagation(),d.isPressed=!1,d.activePointerId=null,d.isOverTarget=!1,d.ignoreEmulatedMouseEvents=!0,d.target&&!p&&It(d.target),R()},w.onTouchCancel=f=>{D(f.currentTarget,I(f))&&(f.stopPropagation(),d.isPressed&&B(fe(d.target,f)))};let x=f=>{d.isPressed&&D(I(f),d.target)&&B({currentTarget:d.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};w.onDragStart=f=>{D(f.currentTarget,I(f))&&B(f)}}return w},[S,l,b,R,p,A,O,re,ee]);return i.useEffect(()=>{if(!y||process.env.NODE_ENV==="test")return;const d=Y(y.current);if(!d||!d.head||d.getElementById(Kr))return;const w=d.createElement("style");w.id=Kr;let T=Mo(d);T&&(w.nonce=T),w.textContent=`
|
|
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=`
|
|
2
2
|
@layer {
|
|
3
|
-
[${
|
|
3
|
+
[${Oo}] {
|
|
4
4
|
touch-action: pan-x pan-y pinch-zoom;
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
|
-
`.trim(),d.head.prepend(w)},[y]),i.useEffect(()=>{let d=E.current;return()=>{p||It(d.target??void 0);for(let w of d.disposables)w();d.disposables=[]}},[p]),{isPressed:c||$,pressProps:K(v,de,{[Hr]:!0})}}function ur(e){return e.tagName==="A"&&e.hasAttribute("href")}function Nt(e,t){const{key:r,code:n}=e,a=t,o=a.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(a instanceof oe(a).HTMLInputElement&&!oa(a,r)||a instanceof oe(a).HTMLTextAreaElement||a.isContentEditable)&&!((o==="link"||!o&&ur(a))&&r!=="Enter")}function xi(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function zr(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const a=r[n];if(a.identifier===t)return a}return null}function fe(e,t){let r=0,n=0;return t.targetTouches&&t.targetTouches.length===1&&(r=t.targetTouches[0].clientX,n=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function ye(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n,key:t.key}}function $i(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function Ei(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Ur(e,t){let r=t.getBoundingClientRect(),n=$i(e);return Ei(r,n)}function wi(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!ur(e)}function Wr(e,t){return e instanceof HTMLInputElement?!oa(e,t):wi(e)}const Pi=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function oa(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Pi.has(e.type)}function Si(e,t){let{elementType:r="button",isDisabled:n,onPress:a,onPressStart:o,onPressEnd:s,onPressUp:l,onPressChange:c,preventFocusOnPress:b,allowFocusWhenDisabled:m,onClick:p,href:y,target:v,rel:$,type:h="button"}=e,E;r==="button"?E={type:h,disabled:n,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:E={role:"button",href:r==="a"&&!n?y:void 0,target:r==="a"?v:void 0,type:r==="input"?h:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?$:void 0};let{pressProps:S,isPressed:R}=gt({onPressStart:o,onPressEnd:s,onPressChange:c,onPress:a,onPressUp:l,onClick:p,isDisabled:n,preventFocusOnPress:b,ref:t}),{focusableProps:O}=dr(e,t);m&&(O.tabIndex=n?-1:O.tabIndex);let F=K(O,S,ne(e,{labelable:!0}));return{isPressed:R,buttonProps:K(E,F,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}function sa(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:a}=e,o=i.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:l}=sr(),c=i.useCallback(p=>{D(p.currentTarget,I(p))&&o.current.isFocusWithin&&!D(p.currentTarget,p.relatedTarget)&&(o.current.isFocusWithin=!1,l(),r&&r(p),a&&a(!1))},[r,a,o,l]),b=Jn(c),m=i.useCallback(p=>{if(!D(p.currentTarget,I(p)))return;let y=I(p);const v=Y(y),$=me(v);if(!o.current.isFocusWithin&&$===y){n&&n(p),a&&a(!0),o.current.isFocusWithin=!0,b(p);let h=p.currentTarget;s(v,"focus",E=>{let S=I(E);if(o.current.isFocusWithin&&!D(h,S)){let R=new v.defaultView.FocusEvent("blur",{relatedTarget:S});Zn(R,h);let O=cr(R);c(O)}},{capture:!0})}},[n,a,b,s,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:m,onBlur:c}}}function fr(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,a=i.useRef({isFocused:!1,isFocusVisible:t||qt()}),[o,s]=i.useState(!1),[l,c]=i.useState(()=>a.current.isFocused&&a.current.isFocusVisible),b=i.useCallback(()=>c(a.current.isFocused&&a.current.isFocusVisible),[]),m=i.useCallback(v=>{a.current.isFocused=v,a.current.isFocusVisible=qt(),s(v),b()},[b]);mi(v=>{a.current.isFocusVisible=v,b()},[r,o],{enabled:o,isTextInput:r});let{focusProps:p}=na({isDisabled:n,onFocusChange:m}),{focusWithinProps:y}=sa({isDisabled:!n,onFocusWithinChange:m});return{isFocused:o,isFocusVisible:l,focusProps:n?y:p}}let vt=!1,st=0;function Zt(){vt=!0,setTimeout(()=>{vt=!1},500)}function qr(e){e.pointerType==="touch"&&Zt()}function ki(){let e=Y(null);if(!(typeof e>"u"))return st===0&&(typeof PointerEvent<"u"?e.addEventListener("pointerup",qr):process.env.NODE_ENV==="test"&&e.addEventListener("touchend",Zt)),st++,()=>{st--,!(st>0)&&(typeof PointerEvent<"u"?e.removeEventListener("pointerup",qr):process.env.NODE_ENV==="test"&&e.removeEventListener("touchend",Zt))}}function pr(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:a}=e,[o,s]=i.useState(!1),l=i.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;i.useEffect(ki,[]);let{addGlobalListener:c,removeAllGlobalListeners:b}=sr(),{hoverProps:m,triggerHoverEnd:p}=i.useMemo(()=>{let y=(h,E)=>{if(l.pointerType=E,a||E==="touch"||l.isHovered||!D(h.currentTarget,I(h)))return;l.isHovered=!0;let S=h.currentTarget;l.target=S,c(Y(I(h)),"pointerover",R=>{l.isHovered&&l.target&&!D(l.target,I(R))&&v(R,R.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:S,pointerType:E}),r&&r(!0),s(!0)},v=(h,E)=>{let S=l.target;l.pointerType="",l.target=null,!(E==="touch"||!l.isHovered||!S)&&(l.isHovered=!1,b(),n&&n({type:"hoverend",target:S,pointerType:E}),r&&r(!1),s(!1))},$={};return typeof PointerEvent<"u"?($.onPointerEnter=h=>{vt&&h.pointerType==="mouse"||y(h,h.pointerType)},$.onPointerLeave=h=>{!a&&D(h.currentTarget,I(h))&&v(h,h.pointerType)}):process.env.NODE_ENV==="test"&&($.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},$.onMouseEnter=h=>{!l.ignoreEmulatedMouseEvents&&!vt&&y(h,"mouse"),l.ignoreEmulatedMouseEvents=!1},$.onMouseLeave=h=>{!a&&D(h.currentTarget,I(h))&&v(h,"mouse")}),{hoverProps:$,triggerHoverEnd:v}},[t,r,n,a,l,c,b]);return i.useEffect(()=>{a&&p({currentTarget:l.target},l.pointerType)},[a]),{hoverProps:m,isHovered:o}}const Ci=i.createContext({}),Ti=Hs(function(t,r){[t,r]=We(t,r,Ci);let n=t,{isPending:a}=n,{buttonProps:o,isPressed:s}=Si(t,r);o=Mi(o,a);let{focusProps:l,isFocused:c,isFocusVisible:b}=fr(t),{hoverProps:m,isHovered:p}=pr({...t,isDisabled:t.isDisabled||a}),y={isHovered:p,isPressed:(n.isPressed||s)&&!a,isFocused:c,isFocusVisible:b,isDisabled:t.isDisabled||!1,isPending:a??!1},v=Ue({...t,values:y,defaultClassName:"react-aria-Button"}),$=Me(o.id),h=Me(),E=o["aria-labelledby"];a&&(E?E=`${E} ${h}`:o["aria-label"]&&(E=`${$} ${h}`));let S=i.useRef(a);i.useEffect(()=>{let O={"aria-labelledby":E||$};(!S.current&&c&&a||S.current&&c&&!a)&&Ar(O,"assertive"),S.current=a},[a,c,E,$]);let R=ne(t,{global:!0});return delete R.onClick,i.createElement(Ne.button,{...K(R,v,o,l,m),type:o.type==="submit"&&a?"button":o.type,id:$,ref:r,"aria-labelledby":E,slot:t.slot||void 0,"aria-disabled":a?"true":o["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":y.isPressed||void 0,"data-hovered":p||void 0,"data-focused":c||void 0,"data-pending":a||void 0,"data-focus-visible":b||void 0},i.createElement(Yn.Provider,{value:{id:h}},v.children))}),Li=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function Mi(e,t){if(t){for(const r in e)r.startsWith("on")&&!Li.test(r)&&(e[r]=void 0);e.href=void 0,e.target=void 0}return e}const Ri=typeof document<"u"?i.useInsertionEffect??i.useLayoutEffect:()=>{};function Ii(e,t,r){let[n,a]=i.useState(e||t),o=i.useRef(n),s=i.useRef(e!==void 0),l=e!==void 0;i.useEffect(()=>{let p=s.current;p!==l&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),s.current=l},[l]);let c=l?e:n;Ri(()=>{o.current=c});let[,b]=i.useReducer(()=>({}),{}),m=i.useCallback((p,...y)=>{let v=typeof p=="function"?p(o.current):p;Object.is(o.current,v)||(o.current=v,a(v),b(),r==null||r(v,...y))},[r]);return[c,m]}const Ni=e=>e?"true":void 0;function qe(e,t){return _s(e,(r,n)=>{const a=typeof t=="function"?t(n)??"":t??"";return Ke(a,r??"")??""})}const X=(e,t,r)=>typeof e=="function"?e({className:t}):t,Oi=({height:e=9,width:t=9,...r})=>u.jsx("svg",{"aria-hidden":"true","aria-label":"External link icon",fill:"none",height:e,role:"presentation",viewBox:"0 0 7 7",width:t,xmlns:"http://www.w3.org/2000/svg",...r,children:u.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"})}),Yr=e=>u.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",...e,children:u.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"})}),ji=e=>u.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",...e,children:u.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"})}),Vi=e=>u.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",...e,children:u.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"})}),Di=e=>u.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",...e,children:u.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"})}),ia=i.createContext({}),Xr={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 Ai(e={}){let{style:t,isFocusable:r}=e,[n,a]=i.useState(!1),{focusWithinProps:o}=sa({isDisabled:!r,onFocusWithinChange:l=>a(l)}),s=i.useMemo(()=>n?t:t?{...Xr,...t}:Xr,[n]);return{visuallyHiddenProps:{...o,style:s}}}function _i(e){let{children:t,elementType:r="div",isFocusable:n,style:a,...o}=e,{visuallyHiddenProps:s}=Ai(e);return i.createElement(r,K(o,s),t)}class Ye{constructor(t){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=t}get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new this.constructor(this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}filter(t,r,n){let a=this.clone();return r.addDescendants(a,t),a}}class la extends Ye{filter(t,r,n){let[a,o]=Fi(t,r,this.firstChildKey,n),s=this.clone();return s.firstChildKey=a,s.lastChildKey=o,s}}const br=class br extends Ye{};br.type="header";let Zr=br;const mr=class mr extends Ye{};mr.type="loader";let Jr=mr;const hr=class hr extends la{filter(t,r,n){if(n(this.textValue,this)){let a=this.clone();return r.addDescendants(a,t),a}return null}};hr.type="item";let Qr=hr;const gr=class gr extends la{filter(t,r,n){let a=super.filter(t,r,n);if(a&&a.lastChildKey!==null){let o=t.getItem(a.lastChildKey);if(o&&o.type!=="header")return a}return null}};gr.type="section";let en=gr;function Fi(e,t,r,n){if(r==null)return[null,null];let a=null,o=null,s=e.getItem(r);for(;s!=null;){let l=s.filter(e,t,n);l!=null&&(l.nextKey=null,o&&(l.prevKey=o.key,o.nextKey=l.key),a==null&&(a=l),t.addNode(l),o=l),s=s.nextKey!=null?e.getItem(s.nextKey):null}if(o&&o.type==="separator"){let l=o.prevKey;t.removeNode(o.key),l!=null?(o=t.getItem(l),o.nextKey=null):o=null}return[(a==null?void 0:a.key)??null,(o==null?void 0:o.key)??null]}var it={exports:{}},Ot={};/**
|
|
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=`
|
|
8
|
+
@layer {
|
|
9
|
+
* {
|
|
10
|
+
overscroll-behavior: contain;
|
|
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={};/**
|
|
8
13
|
* @license React
|
|
9
14
|
* use-sync-external-store-shim.production.js
|
|
10
15
|
*
|
|
@@ -12,7 +17,7 @@
|
|
|
12
17
|
*
|
|
13
18
|
* This source code is licensed under the MIT license found in the
|
|
14
19
|
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/var
|
|
20
|
+
*/var di;function Yf(){if(di)return nn;di=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 h=m(),g=n({inst:{value:h,getSnapshot:m}}),y=g[0].inst,v=g[1];return i(function(){y.value=h,y.getSnapshot=m,c(y)&&v({inst:y})},[f,h,m]),o(function(){return c(y)&&v({inst:y}),f(function(){c(y)&&v({inst:y})})},[f]),l(h),h}function c(f){var m=f.getSnapshot;f=f.value;try{var h=m();return!r(f,h)}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={};/**
|
|
16
21
|
* @license React
|
|
17
22
|
* use-sync-external-store-shim.development.js
|
|
18
23
|
*
|
|
@@ -20,5 +25,5 @@
|
|
|
20
25
|
*
|
|
21
26
|
* This source code is licensed under the MIT license found in the
|
|
22
27
|
* LICENSE file in the root directory of this source tree.
|
|
23
|
-
*/var rn;function Gi(){return rn||(rn=1,process.env.NODE_ENV!=="production"&&(function(){function e(v,$){return v===$&&(v!==0||1/v===1/$)||v!==v&&$!==$}function t(v,$){m||a.startTransition===void 0||(m=!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 h=$();if(!p){var E=$();o(h,E)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}E=s({inst:{value:h,getSnapshot:$}});var S=E[0].inst,R=E[1];return c(function(){S.value=h,S.getSnapshot=$,r(S)&&R({inst:S})},[v,h,$]),l(function(){return r(S)&&R({inst:S}),v(function(){r(S)&&R({inst:S})})},[v]),b(h),h}function r(v){var $=v.getSnapshot;v=v.value;try{var h=$();return!o(v,h)}catch{return!0}}function n(v,$){return $()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=i,o=typeof Object.is=="function"?Object.is:e,s=a.useState,l=a.useEffect,c=a.useLayoutEffect,b=a.useDebugValue,m=!1,p=!1,y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;jt.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:y,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),jt}var nn;function Ki(){return nn||(nn=1,process.env.NODE_ENV==="production"?it.exports=Bi():it.exports=Gi()),it.exports}var Hi=Ki();const zi=i.createContext(!1);function Ui(e,t,r){let n=ar(),a=i.useRef(n);a.current=n;let o=i.useCallback(()=>a.current?r():t(),[t,r]);return Hi.useSyncExternalStore(e,o)}typeof i.useSyncExternalStore=="function"&&i.useSyncExternalStore;const an=i.createContext(null);function Wi(e){var r;return r=class extends Ye{},r.type=e,r}function qi(e,t,r,n,a,o){typeof e=="string"&&(e=Wi(e));let s=i.useCallback(c=>{c==null||c.setProps(t,r,e,n,o)},[t,r,n,o,e]),l=i.useContext(an);if(l){let c=l.ownerDocument.nodesByProps.get(t);return c||(c=l.ownerDocument.createElement(e.type),c.setProps(t,r,e,n,o),l.appendChild(c),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(t,c)),a?i.createElement(an.Provider,{value:c},a):null}return i.createElement(e.type,{ref:s},a)}function Yi(e,t){let r=({node:a})=>t(a.props,a.props.ref,a),n=i.forwardRef((a,o)=>{let s=i.useContext(Yt);if(!i.useContext(zi)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(a,o)}return qi(e,a,o,"children"in a?a.children:null,null,c=>i.createElement(Yt.Provider,{value:s},i.createElement(r,{node:c})))});return n.displayName=t.name,n}function Xi(e){let t=ne(e,{labelable:!0}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}const ca=i.createContext({}),vr=class vr extends Ye{filter(t,r){let n=r.getItem(this.prevKey);if(n&&n.type!=="separator"){let a=this.clone();return r.addDescendants(a,t),a}return null}};vr.type="separator";let Jt=vr;const Zi=Yi(Jt,function(t,r){[t,r]=We(t,r,ca);let{elementType:n,orientation:a,style:o,className:s,slot:l,...c}=t,b=n||"hr";b==="hr"&&a==="vertical"&&(b="div");let m=Ne[b],{separatorProps:p}=Xi({...c,elementType:n,orientation:a}),y=ne(t,{global:!0});return i.createElement(m,{render:t.render,...K(y,p),style:o,className:s??"react-aria-Separator",ref:r,slot:l||void 0})}),Ji=i.createContext({}),Qi=i.createContext(null),el=i.createContext(null);function tl(e,t,r){let{validationBehavior:n,focus:a}=e;ce(()=>{if(n==="native"&&(r!=null&&r.current)&&!r.current.disabled){let b=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(b),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(nl(r.current))}});let o=i.useRef(!1),s=xe(()=>{o.current||t.resetValidation()}),l=xe(b=>{var p,y;t.displayValidation.isInvalid||t.commitValidation();let m=(p=r==null?void 0:r.current)==null?void 0:p.form;!b.defaultPrevented&&r&&m&&al(m)===r.current&&(a?a():(y=r.current)==null||y.focus(),fi("keyboard")),b.preventDefault()}),c=xe(()=>{t.commitValidation()});i.useEffect(()=>{let b=r==null?void 0:r.current;if(!b)return;let m=b.form,p=m==null?void 0:m.reset;return m&&(m.reset=()=>{o.current=!window.event||window.event.type==="message"&&I(window.event)instanceof MessagePort,p==null||p.call(m),o.current=!1}),b.addEventListener("invalid",l),b.addEventListener("change",c),m==null||m.addEventListener("reset",s),()=>{b.removeEventListener("invalid",l),b.removeEventListener("change",c),m==null||m.removeEventListener("reset",s),m&&(m.reset=p)}},[r,n])}function rl(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function nl(e){return{isInvalid:!e.validity.valid,validationDetails:rl(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function al(e){var t;for(let r=0;r<e.elements.length;r++){let n=e.elements[r];if(((t=n.validity)==null?void 0:t.valid)===!1)return n}return null}function ol(e,t){let{elementType:r="a",onPress:n,onPressStart:a,onPressEnd:o,onClick:s,isDisabled:l,...c}=e,b={};r!=="a"&&(b={role:"link",tabIndex:l?void 0:0});let{focusableProps:m}=dr(e,t),{pressProps:p,isPressed:y}=gt({onPress:n,onPressStart:a,onPressEnd:o,onClick:s,isDisabled:l,ref:t}),v=ne(c,{labelable:!0}),$=K(m,p),h=$n(),E=Xa(e);return{isPressed:y,linkProps:K(v,E,{...$,...b,"aria-disabled":l||void 0,"aria-current":e["aria-current"],onClick:S=>{var R;(R=p.onClick)==null||R.call(p,S),Za(S,h,e.href,e.routerOptions)}})}}const sl=i.createContext(null),il=i.forwardRef(function(t,r){[t,r]=We(t,r,sl);let n=t.href&&!t.isDisabled?"a":"span",{linkProps:a,isPressed:o}=ol({...t,elementType:n},r),s=Ne[n],{hoverProps:l,isHovered:c}=pr(t),{focusProps:b,isFocused:m,isFocusVisible:p}=fr(),y=Ue({...t,defaultClassName:"react-aria-Link",values:{isCurrent:!!t["aria-current"],isDisabled:t.isDisabled||!1,isPressed:o,isHovered:c,isFocused:m,isFocusVisible:p}}),v=ne(t,{global:!0});return delete v.onClick,i.createElement(s,{ref:r,slot:t.slot||void 0,...K(v,y,a,l,b),"data-focused":m||void 0,"data-hovered":c||void 0,"data-pressed":o||void 0,"data-focus-visible":p||void 0,"data-current":!!t["aria-current"]||void 0,"data-disabled":t.isDisabled||void 0},y.children)}),da=i.createContext({}),on=({children:e,className:t,...r})=>{const n=i.useMemo(()=>Os(),[]);return u.jsx(da,{value:{slots:n},children:u.jsx(il,{...r,className:qe(t,n==null?void 0:n.base()),children:a=>u.jsx(u.Fragment,{children:typeof e=="function"?e(a):e})})})},ll=({children:e,className:t,...r})=>{const{slots:n}=i.useContext(da);return u.jsx(W.span,{className:X(n==null?void 0:n.icon,t),"data-default-icon":Ni(!e),"data-slot":"link-icon",...r,children:e??u.jsx(Oi,{"data-slot":"link-default-icon"})})},cl=Object.assign(on,{Root:on,Icon:ll});function dl(e={}){let{isReadOnly:t}=e,[r,n]=Ii(e.isSelected,e.defaultSelected||!1,e.onChange),[a]=i.useState(r);function o(l){t||n(l)}function s(){t||n(!r)}return{isSelected:r,defaultSelected:e.defaultSelected??a,setSelected:o,toggle:s}}const ul=i.createContext({}),fl="__button_group_child",sn=({children:e,className:t,fullWidth:r,isDisabled:n,isIconOnly:a,size:o,slot:s,style:l,variant:c,[fl]:b,...m})=>{const p=i.useContext(ul),y=b===!0,v=o??(y?p==null?void 0:p.size:void 0),$=c??(y?p==null?void 0:p.variant:void 0),h=n??(y?p==null?void 0:p.isDisabled:void 0),E=r??(y?p==null?void 0:p.fullWidth:void 0),S=Ms({fullWidth:E,isIconOnly:a,size:v,variant:$});return u.jsx(Ti,{className:qe(t,S),"data-slot":"button",isDisabled:h,slot:s,style:l,...m,children:R=>typeof e=="function"?e(R):e})},pl=Object.assign(sn,{Root:sn}),Oe=i.createContext({}),ln=({children:e,className:t,variant:r="default",...n})=>{const a=i.useMemo(()=>Rs({variant:r}),[r]),o=u.jsx(W.div,{className:a.base({className:t}),"data-slot":"card",...n,children:e});return u.jsx(Oe,{value:{slots:a},children:r==="transparent"?o:u.jsx(ia,{value:{variant:r},children:o})})},bl=({className:e,...t})=>{const{slots:r}=i.useContext(Oe);return u.jsx(W.div,{className:X(r==null?void 0:r.header,e),"data-slot":"card-header",...t})},ml=({children:e,className:t,...r})=>{const{slots:n}=i.useContext(Oe);return u.jsx(W.h3,{className:X(n==null?void 0:n.title,t),"data-slot":"card-title",...r,children:e})},hl=({children:e,className:t,...r})=>{const{slots:n}=i.useContext(Oe);return u.jsx(W.p,{className:X(n==null?void 0:n.description,t),"data-slot":"card-description",...r,children:e})},gl=({className:e,...t})=>{const{slots:r}=i.useContext(Oe);return u.jsx(W.div,{className:X(r==null?void 0:r.content,e),"data-slot":"card-content",...t})},vl=({className:e,...t})=>{const{slots:r}=i.useContext(Oe);return u.jsx(W.div,{className:X(r==null?void 0:r.footer,e),"data-slot":"card-footer",...t})},Fe=Object.assign(ln,{Root:ln,Header:bl,Title:ml,Description:hl,Content:gl,Footer:vl}),yl=new WeakMap;function xl(e=!0){let[t,r]=i.useState(e),n=i.useRef(!1),a=i.useCallback(o=>{n.current=!0,r(!!o)},[]);return ce(()=>{n.current||r(!1)},[]),[a,t]}function cn(e=!0){let t=Me(),[r,n]=xl(e);return{id:n?t:void 0,ref:r}}const ua={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},fa={...ua,customError:!0,valid:!1},Pe={isInvalid:!1,validationDetails:ua,validationErrors:[]},$l=i.createContext({}),yt="__reactAriaFormValidationState";function pa(e){if(e[yt]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:a,commitValidation:o}=e[yt];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:a,commitValidation:o}}return El(e)}function El(e){let{isInvalid:t,validationState:r,name:n,value:a,builtinValidation:o,validate:s,validationBehavior:l="aria"}=e;r&&(t||(t=r==="invalid"));let c=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:fa}:null,b=i.useMemo(()=>{if(!s||a==null)return null;let A=wl(s,a);return dn(A)},[s,a]);o!=null&&o.validationDetails.valid&&(o=void 0);let m=i.useContext($l),p=i.useMemo(()=>n?Array.isArray(n)?n.flatMap(A=>Qt(m[A])):Qt(m[n]):[],[m,n]),[y,v]=i.useState(m),[$,h]=i.useState(!1);m!==y&&(v(m),h(!1));let E=i.useMemo(()=>dn($?[]:p),[$,p]),S=i.useRef(Pe),[R,O]=i.useState(Pe),F=i.useRef(Pe),N=()=>{if(!Z)return;H(!1);let A=b||o||S.current;Vt(A,F.current)||(F.current=A,O(A))},[Z,H]=i.useState(!1);return i.useEffect(N),{realtimeValidation:c||E||b||o||Pe,displayValidation:l==="native"?c||E||R:c||E||b||o||R,updateValidation(A){l==="aria"&&!Vt(R,A)?O(A):S.current=A},resetValidation(){let A=Pe;Vt(A,F.current)||(F.current=A,O(A)),l==="native"&&H(!1),h(!0)},commitValidation(){l==="native"&&H(!0),h(!0)}}}function Qt(e){return e?Array.isArray(e)?e:[e]:[]}function wl(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return Qt(r)}return[]}function dn(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:fa}:null}function Vt(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,n)=>r===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([r,n])=>t.validationDetails[r]===n)}function Pl(e,t,r){let{isDisabled:n=!1,isReadOnly:a=!1,value:o,name:s,form:l,children:c,isRequired:b,validationBehavior:m="aria","aria-label":p,"aria-labelledby":y,"aria-describedby":v,onPressStart:$,onPressEnd:h,onPressChange:E,onPress:S,onPressUp:R,onClick:O}=e,F=pa({...e,value:t.isSelected}),{isInvalid:N,validationErrors:Z,validationDetails:H}=F.displayValidation;tl(e,F,r);let M=P=>{P.stopPropagation(),t.setSelected(I(P).checked)},B=c!=null,A=p!=null||y!=null;!B&&!A&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:re,isPressed:ee}=gt({onPressStart:$,onPressEnd:h,onPressChange:E,onPress:S,onPressUp:R,onClick:O,isDisabled:n}),[de,d]=i.useState(!1),{pressProps:w}=gt({onPressStart(P){if(P.pointerType==="keyboard"||P.pointerType==="virtual"){P.continuePropagation();return}$==null||$(P),E==null||E(!0),d(!0)},onPressEnd(P){if(P.pointerType==="keyboard"||P.pointerType==="virtual"){P.continuePropagation();return}h==null||h(P),E==null||E(!1),d(!1)},onPressUp(P){if(P.pointerType==="keyboard"||P.pointerType==="virtual"){P.continuePropagation();return}R==null||R(P)},onClick:O,onPress(P){var G;if(P.pointerType==="keyboard"||P.pointerType==="virtual"){P.continuePropagation();return}S==null||S(P),t.toggle(),(G=r.current)==null||G.focus();let{[yt]:V}=e,{commitValidation:_}=V||F;_()},isDisabled:n||a}),{focusableProps:T}=dr(e,r),g=K(re,T),x=ne(e,{labelable:!0});wo(r,t.defaultSelected,t.setSelected);let f=cn(),L=cn();return{labelProps:K(w,{onClick:P=>P.preventDefault()}),inputProps:K(x,{checked:t.isSelected,"aria-required":b&&m==="aria"||void 0,required:b&&m==="native","aria-invalid":N||e.validationState==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":a||void 0,"aria-describedby":[f.id,L.id,v].filter(Boolean).join(" ")||void 0,onChange:M,disabled:n,...o==null?{}:{value:o},name:s,form:l,type:"checkbox",...g}),descriptionProps:f,errorMessageProps:L,isSelected:t.isSelected,isPressed:ee||de,isDisabled:n,isReadOnly:a,isInvalid:N||e.validationState==="invalid",validationErrors:Z,validationDetails:H}}function ba(e,t,r){let{labelProps:n,inputProps:a,descriptionProps:o,errorMessageProps:s,isSelected:l,isPressed:c,isDisabled:b,isReadOnly:m,isInvalid:p,validationErrors:y,validationDetails:v}=Pl(e,t,r),{isIndeterminate:$}=e;return i.useEffect(()=>{r.current&&(r.current.indeterminate=!!$)}),{labelProps:K(n,i.useMemo(()=>({onMouseDown:h=>h.preventDefault()}),[])),inputProps:a,descriptionProps:o,errorMessageProps:s,isSelected:l,isPressed:c,isDisabled:b,isReadOnly:m,isInvalid:p,validationErrors:y,validationDetails:v}}const Sl=typeof document<"u"?i.useInsertionEffect??i.useLayoutEffect:()=>{};function kl(e,t,r){let[n,a]=i.useState(e||t),o=i.useRef(n),s=i.useRef(e!==void 0),l=e!==void 0;i.useEffect(()=>{let p=s.current;p!==l&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),s.current=l},[l]);let c=l?e:n;Sl(()=>{o.current=c});let[,b]=i.useReducer(()=>({}),{}),m=i.useCallback((p,...y)=>{let v=typeof p=="function"?p(o.current):p;Object.is(o.current,v)||(o.current=v,a(v),b(),r==null||r(v,...y))},[r]);return[c,m]}function Cl(e={}){let{isReadOnly:t}=e,[r,n]=kl(e.isSelected,e.defaultSelected||!1,e.onChange),[a]=i.useState(r);function o(l){t||n(l)}function s(){t||n(!r)}return{isSelected:r,defaultSelected:e.defaultSelected??a,setSelected:o,toggle:s}}function Tl(e,t,r){const n=Cl({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),defaultSelected:t.defaultValue.includes(e.value),onChange(h){h?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(h)}});let{name:a,form:o,descriptionId:s,errorMessageId:l,validationBehavior:c}=yl.get(t);c=e.validationBehavior??c;let{realtimeValidation:b}=pa({...e,value:n.isSelected,name:void 0,validationBehavior:"aria"}),m=i.useRef(Pe),p=()=>{t.setInvalid(e.value,b.isInvalid?b:m.current)};i.useEffect(p);let y=t.realtimeValidation.isInvalid?t.realtimeValidation:b,v=c==="native"?t.displayValidation:y,$=ba({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||a,form:e.form||o,isRequired:e.isRequired??t.isRequired,validationBehavior:c,[yt]:{realtimeValidation:y,displayValidation:v,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(h){m.current=h,p()}}},n,r);return{...$,inputProps:{...$.inputProps,"aria-describedby":[$.inputProps["aria-describedby"],t.isInvalid?l:null,s].filter(Boolean).join(" ")||void 0}}}const Ll=i.createContext(null),ma=i.createContext(null),ha=i.createContext(null),Ml=i.forwardRef(function(t,r){let{inputRef:n=null,...a}=t;[t,r]=We(a,r,Ll);let o=i.useContext(ma),[s,l]=Rl(t,n),{descriptionProps:c,errorMessageProps:b,isSelected:m,isDisabled:p,isReadOnly:y,isInvalid:v,validationDetails:$,validationErrors:h}=s,E=Ue({...t,defaultClassName:"react-aria-CheckboxField",values:{isSelected:m,isIndeterminate:t.isIndeterminate||!1,isDisabled:p,isReadOnly:y,isInvalid:v,isRequired:t.isRequired||!1}}),S=ne(t,{global:!0});return delete S.id,delete S.onClick,i.createElement(Ne.div,{...K(S,E),ref:r,slot:t.slot||void 0,"data-selected":m||void 0,"data-indeterminate":t.isIndeterminate||void 0,"data-disabled":p||void 0,"data-readonly":y||void 0,"data-invalid":v||void 0,"data-required":t.isRequired||void 0},i.createElement(As,{values:[[ha,{...s,inputRef:l,defaultClassName:"react-aria-CheckboxButton",isIndeterminate:t.isIndeterminate,isRequired:t.isRequired}],[Ji,{slots:{description:c,errorMessage:b}}],[Qi,o?null:{isInvalid:v,validationDetails:$,validationErrors:h}]]},E.children))});function Rl(e,t){let{validationBehavior:r}=lr(el)||{},n=e.validationBehavior??r??"native",a=i.useContext(ma),o=kn(i.useMemo(()=>ze(t,e.inputRef!==void 0?e.inputRef:null),[t,e.inputRef])),s={...Bs(e),children:typeof e.children=="function"?!0:e.children,value:e.value,validationBehavior:n};return[a?Tl(s,a,o):ba(s,dl(e),o),o]}const Il=i.forwardRef(function(t,r){let{labelProps:n,inputProps:a,isSelected:o,isDisabled:s,isReadOnly:l,isPressed:c,isInvalid:b,inputRef:m,defaultClassName:p,isIndeterminate:y,isRequired:v}=i.useContext(ha),{isFocused:$,isFocusVisible:h,focusProps:E}=fr(),S=s||l,{hoverProps:R,isHovered:O}=pr({...t,isDisabled:S}),F=Ue({...t,defaultClassName:p,values:{isSelected:o,isIndeterminate:y||!1,isPressed:c,isHovered:O,isFocused:$,isFocusVisible:h,isDisabled:s,isReadOnly:l,isInvalid:b,isRequired:v||!1}}),N=ne(t,{global:!0});return delete N.id,delete N.onClick,i.createElement(Ne.label,{...K(N,n,R,F),ref:r,slot:t.slot||void 0,"data-selected":o||void 0,"data-indeterminate":y||void 0,"data-pressed":c||void 0,"data-hovered":O||void 0,"data-focused":$||void 0,"data-focus-visible":h||void 0,"data-disabled":s||void 0,"data-readonly":l||void 0,"data-invalid":b||void 0,"data-required":v||void 0},i.createElement(_i,{elementType:"span"},i.createElement("input",{...K(a,E),ref:m})),F.children)}),Nl=i.createContext({}),wt=i.createContext({}),er=({children:e,className:t,variant:r,...n})=>{const a=i.useContext(Nl),o=r??a.variant,s=i.useMemo(()=>Is({variant:o}),[o]);return u.jsx(Ml,{"data-slot":"checkbox",...n,className:qe(t,s.base()),children:l=>u.jsx(wt,{value:{slots:s,state:l},children:typeof e=="function"?e(l):e})})};er.displayName="HeroUI.Checkbox";const ga=({children:e,className:t,...r})=>{const{slots:n}=i.useContext(wt);return u.jsx(Il,{"data-slot":"checkbox-content",...r,className:qe(t,n==null?void 0:n.content()),children:e})};ga.displayName="HeroUI.Checkbox.Content";const va=({children:e,className:t,...r})=>{const{slots:n}=i.useContext(wt);return u.jsx(W.span,{className:X(n==null?void 0:n.control,t),"data-slot":"checkbox-control",...r,children:e})};va.displayName="HeroUI.Checkbox.Control";const ya=({children:e,className:t,...r})=>{const{slots:n,state:a}=i.useContext(wt),o=a==null?void 0:a.isSelected,s=a==null?void 0:a.isIndeterminate,l=typeof e=="function"?e(a??{}):e||(s?u.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:u.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})}):u.jsx("svg",{"aria-hidden":"true","data-slot":"checkbox-default-indicator--checkmark",fill:"none",role:"presentation",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:o?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 17 18",children:u.jsx("polyline",{points:"1 9 7 14 15 4"})}));return u.jsx(W.span,{"aria-hidden":"true",className:X(n==null?void 0:n.indicator,t),"data-slot":"checkbox-indicator",...r,children:l})};ya.displayName="HeroUI.Checkbox.Indicator";const lt=Object.assign(er,{Root:er,Content:ga,Control:va,Indicator:ya}),xa=i.createContext({}),un=({children:e,className:t,color:r,size:n,variant:a,...o})=>{const s=i.useMemo(()=>Ns({color:r,size:n,variant:a}),[r,n,a]),l=i.useMemo(()=>typeof e=="string"||typeof e=="number"?u.jsx($a,{children:e}):e,[e]);return u.jsx(xa,{value:{slots:s},children:u.jsx(W.span,{...o,className:X(s.base,t),"data-slot":"chip",children:l})})},$a=({children:e,className:t,...r})=>{const{slots:n}=i.useContext(xa);return u.jsx(W.span,{className:X(n==null?void 0:n.label,t),"data-slot":"chip-label",...r,children:e})},xt=Object.assign(un,{Root:un,Label:$a}),Pt=i.createContext({}),tr=({children:e,className:t,color:r,size:n,...a})=>{const o=i.useMemo(()=>js({color:r,size:n}),[r,n]);return u.jsx(si,{"data-slot":"progress-bar",...a,className:qe(t,o.base()),children:s=>u.jsx(Pt,{value:{slots:o,state:s},children:typeof e=="function"?e(s):e})})};tr.displayName="HeroUI.ProgressBar";const Ea=({children:e,className:t,...r})=>{const{slots:n,state:a}=i.useContext(Pt);return u.jsx(W.span,{className:X(n==null?void 0:n.output,t),"data-slot":"progress-bar-output",...r,children:e??(a==null?void 0:a.valueText)})};Ea.displayName="HeroUI.ProgressBar.Output";const wa=({children:e,className:t,...r})=>{const{slots:n}=i.useContext(Pt);return u.jsx(W.div,{className:X(n==null?void 0:n.track,t),"data-slot":"progress-bar-track",...r,children:e})};wa.displayName="HeroUI.ProgressBar.Track";const Pa=({className:e,style:t,...r})=>{const{slots:n,state:a}=i.useContext(Pt);return u.jsx(W.div,{className:X(n==null?void 0:n.fill,e),"data-slot":"progress-bar-fill",style:{...t,width:a!=null&&a.isIndeterminate?void 0:`${(a==null?void 0:a.percentage)??0}%`},...r})};Pa.displayName="HeroUI.ProgressBar.Fill";const ct=Object.assign(tr,{Root:tr,Output:Ea,Track:wa,Fill:Pa}),fn=({className:e,orientation:t,variant:r,...n})=>{const a=lr(ca),o=t??(a==null?void 0:a.orientation)??"horizontal";return u.jsx(Zi,{"data-orientation":o,"data-slot":"separator",orientation:o,className:Vs({orientation:o,variant:r,className:e}),...n})},Ol=Object.assign(fn,{Root:fn}),Xe=i.createContext({}),pn=({children:e,className:t,status:r,...n})=>{const a=i.useMemo(()=>Ls({status:r}),[r]);return u.jsx(Xe,{value:{slots:a,status:r},children:u.jsx(ia,{value:{variant:"default"},children:u.jsx(W.div,{className:a==null?void 0:a.base({className:t}),"data-slot":"alert-root",...n,children:e})})})},jl=({children:e,className:t,...r})=>{const{slots:n,status:a}=i.useContext(Xe),o=()=>{switch(a){case"accent":return u.jsx(Yr,{"data-slot":"alert-default-icon"});case"success":return u.jsx(Di,{"data-slot":"alert-default-icon"});case"warning":return u.jsx(ji,{"data-slot":"alert-default-icon"});case"danger":return u.jsx(Vi,{"data-slot":"alert-default-icon"});default:return u.jsx(Yr,{"data-slot":"alert-default-icon"})}};return u.jsx(W.div,{className:X(n==null?void 0:n.indicator,t),"data-slot":"alert-indicator",...r,children:e??o()})},Vl=({children:e,className:t,...r})=>{const{slots:n}=i.useContext(Xe);return u.jsx(W.div,{className:X(n==null?void 0:n.content,t),"data-slot":"alert-content",...r,children:e})},Dl=({children:e,className:t,...r})=>{const{slots:n}=i.useContext(Xe);return u.jsx(W.p,{className:X(n==null?void 0:n.title,t),"data-slot":"alert-title",...r,children:e})},Al=({children:e,className:t,...r})=>{const{slots:n}=i.useContext(Xe);return u.jsx(W.span,{className:X(n==null?void 0:n.description,t),"data-slot":"alert-description",...r,children:e})},Ve=Object.assign(pn,{Root:pn,Indicator:jl,Content:Vl,Title:Dl,Description:Al}),_l={easy:"GREEN",moderate:"ORANGE",difficult:"RED"},Fl={easy:"Easy",moderate:"Moderate",difficult:"Difficult"};function Bl(){return u.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-[1em]",children:[u.jsx("path",{d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),u.jsx("path",{d:"m13.4 10.6 3.6-3.6"}),u.jsx("path",{d:"M3.3 16a9 9 0 1 1 17.4 0"})]})}function Sa({difficulty:e,label:t,showIcon:r=!0,size:n="md",className:a}){const o=He[_l[e]];return u.jsxs(xt,{variant:"soft",size:n,className:U(a),style:{backgroundColor:Ge(o,.15),color:o},children:[r&&u.jsx(Bl,{}),u.jsx(xt.Label,{children:t??Fl[e]})]})}const bn=u.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"}),mn=u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"12",cy:"12",r:"9"}),u.jsx("path",{d:"M12 16v-4M12 8h.01"})]}),Gl=u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"12",cy:"12",r:"9"}),u.jsx("path",{d:"m8.5 12 2.5 2.5 4.5-5"})]}),Kl={note:mn,info:mn,tip:Gl,caution:bn,danger:bn};function Hl({type:e}){return u.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-5",children:Kl[e]})}function zl({type:e="caution",title:t,icon:r,children:n,className:a}){const o=t===void 0?ut[e]:t,s=vn(e);return u.jsxs(Ve,{className:U("border",a),style:{backgroundColor:Ge(s,.1),borderColor:s},children:[u.jsx(Ve.Indicator,{style:{color:s},children:r??u.jsx(Hl,{type:e})}),u.jsxs(Ve.Content,{children:[o!=null&&u.jsx(Ve.Title,{children:o}),u.jsx(Ve.Description,{children:n})]})]})}const Ul=4/3;function ka(e){return Math.round(e*3/4)}function Wl(e,t,r){const{x:n,y:a,width:o}=e;if(o<=0||n<0||a<0)return!1;const s=ka(o);return n+o<=t&&a+s<=r}function ql(e,t,r,n,a){if(n<=0||a<=0||t<=0||r<=0||!Wl(e,t,r))return null;const o=n/e.width;return{position:"absolute",width:o*t,height:o*r,left:-e.x*o,top:-e.y*o,maxWidth:"none"}}function Yl({src:e}){const t=i.useRef(null);return i.useEffect(()=>{const r=t.current;if(!r)return;let n=!1,a=null,o=null;return import("online-3d-viewer").then(s=>{if(n)return;const l=b=>{const m=b.GetViewer();m.SetNavigationMode(s.NavigationMode.FreeOrbit),m.SetUpVector(s.Direction.Z,!1);const p=m.GetBoundingSphere(()=>!0);m.FitSphereToWindow(p,!1)},c=new s.EmbeddedViewer(r,{projectionMode:s.ProjectionMode.Orthographic,backgroundColor:new s.RGBAColor(0,0,0,0),onModelLoaded:()=>{l(c)}});o=c,c.LoadModelFromUrlList([e]),typeof ResizeObserver<"u"&&(a=new ResizeObserver(()=>{c.Resize()}),a.observe(r))}),()=>{n=!0,a==null||a.disconnect(),o==null||o.Destroy()}},[e]),u.jsx("div",{ref:t,className:"absolute inset-0 [&_canvas]:size-full!","aria-label":"Interactive 3D model",role:"img"})}function Xl({src:e,type:t,displayRegion:r}){const n=i.useRef(null),[a,o]=i.useState(null),[s,l]=i.useState(null),c=i.useCallback(()=>{const $=n.current;if(!$)return;const{width:h,height:E}=$.getBoundingClientRect();h>0&&E>0&&l({width:h,height:E})},[]);i.useEffect(()=>{if(!r)return;c();const $=n.current;if(!$)return;const h=new ResizeObserver(c);return h.observe($),()=>h.disconnect()},[r,c]);const b=r&&a&&s&&ql(r,a.width,a.height,s.width,s.height),m=!!b,p="size-full object-cover object-center",y=$=>{const h=$.currentTarget;h.naturalWidth>0&&h.naturalHeight>0&&o({width:h.naturalWidth,height:h.naturalHeight})},v=$=>{const h=$.currentTarget;h.videoWidth>0&&h.videoHeight>0&&o({width:h.videoWidth,height:h.videoHeight})};return t==="model"?u.jsx(Yl,{src:e}):u.jsx("div",{ref:n,className:"absolute inset-0",children:t==="video"?u.jsx("video",{src:e,controls:!0,className:m?"absolute max-w-none":p,style:m&&b?b:void 0,onLoadedMetadata:r?v:void 0}):u.jsx("img",{src:e,className:m?"absolute max-w-none":p,style:m&&b?b:void 0,onLoad:r?y:void 0})})}function Zl(e){return e.type==="circle"}function Jl(e){return e.type==="rectangle"}function Ql(e,t){const r=e.id??t,n=e.color??"GREY",a=He[n];if(Zl(e))return u.jsx("div",{role:"img","aria-label":e.title,className:"pointer-events-none absolute rounded-full border-2",style:{left:`${e.x}%`,top:`${e.y}%`,width:`${e.radius*2}%`,aspectRatio:"1",transform:"translate(-50%, -50%)",borderColor:a,backgroundColor:Ge(a,.1)}},r);if(Jl(e)){const o=Math.min(e.x1,e.x2),s=Math.min(e.y1,e.y2),l=Math.abs(e.x2-e.x1),c=Math.abs(e.y2-e.y1);return u.jsx("div",{role:"img","aria-label":e.title,className:"pointer-events-none absolute border-2",style:{left:`${o}%`,top:`${s}%`,width:`${l}%`,height:`${c}%`,borderColor:a,backgroundColor:Ge(a,.1)}},r)}return u.jsx("span",{role:"img","aria-label":e.title,style:{left:`${e.x}%`,top:`${e.y}%`,backgroundColor:a,color:hn(a)},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:e.label},r)}function Ca({src:e,type:t="image",annotations:r=[],displayRegion:n,className:a}){return u.jsx("figure",{className:U("flex flex-col gap-2",a),children:u.jsxs("div",{className:"relative aspect-[4/3] overflow-hidden rounded-lg border border-default bg-default-soft",children:[u.jsx(Xl,{src:e,type:t,displayRegion:n}),r.map(Ql)]})})}function ec({name:e,thumbnail:t,href:r,quantity:n,price:a,children:o,className:s}){return u.jsxs("li",{className:U("flex items-center gap-3 py-3 first:pt-0 last:pb-0",s),children:[t&&u.jsx("img",{src:t,alt:"",className:"size-12 shrink-0 rounded-md border border-default object-cover"}),u.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[r?u.jsx(cl,{href:r,className:"font-medium",children:e}):u.jsx("span",{className:"font-medium",children:e}),o!=null&&u.jsx("span",{className:"text-sm text-default-500",children:o})]}),n!=null&&u.jsxs("span",{className:"shrink-0 text-sm text-default-500",children:["×",n]}),a!=null&&u.jsx("span",{className:"shrink-0 text-sm font-medium",children:a})]})}function tc({title:e="What you need",children:t,className:r}){return u.jsxs(Fe,{className:U("w-full",r),children:[e!=null&&u.jsx(Fe.Header,{children:u.jsx(Fe.Title,{children:e})}),u.jsx(Fe.Content,{children:u.jsx("ul",{className:"flex flex-col divide-y divide-default",children:t})})]})}const rc=Object.assign(tc,{Item:ec});function nc(e,t,r){const[n,a]=i.useState(t),o=e!==void 0,s=o?e:n,l=i.useCallback(c=>{o||a(c),r==null||r(c)},[o,r]);return[s,l]}const ac=3,oc="#3ABF84",sc="#34B07A",ic="#0B7A47",lc={caution:ut.caution,reminder:"Reminder",note:ut.note};function cc(){return u.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:u.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 dc(){return u.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:[u.jsx("circle",{cx:"12",cy:"12",r:"9"}),u.jsx("path",{d:"M12 16v-4M12 8h.01"})]})}function uc(){return u.jsx("span",{"aria-hidden":"true",className:"mt-0.5 flex size-6 shrink-0 items-center justify-center rounded bg-default-100",children:u.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"size-3.5 text-default-500",children:u.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 fc(e){return i.isValidElement(e)&&e.type===Ca}function pc(e){return i.isValidElement(e)&&e.type===Ma}function bc(e){return i.isValidElement(e)?i.Children.toArray(e.props.children).filter(pc).length:0}function mc(e){let t=null,r=null;for(const a of i.Children.toArray(e))i.isValidElement(a)&&(a.type===Ta&&(t=a.props.children),a.type===La&&(r=a));const n=i.Children.toArray(t).filter(fc);return bc(r),{figures:n.slice(0,ac),bullets:r}}function Ta(e){return null}function La({children:e,className:t}){return u.jsx("ul",{className:U("flex flex-col gap-2",t),children:e})}function Ma({variant:e="dot",color:t="GREY",label:r,hideLabel:n=!1,children:a,className:o}){if(e==="dot")return u.jsxs("li",{className:U("flex gap-2.5",o),children:[u.jsx("span",{"aria-hidden":"true",className:"mt-1.5 size-2 shrink-0 rounded-full",style:{backgroundColor:He[t]}}),u.jsx("span",{className:"flex-1",children:a})]});const s=r??lc[e],l=e==="caution"?u.jsx(cc,{}):e==="reminder"?u.jsx(uc,{}):u.jsx(dc,{});return u.jsxs("li",{className:U("flex gap-2.5",e==="caution"&&"text-danger",o),children:[l,u.jsxs("span",{className:"flex-1",children:[!n&&u.jsxs(u.Fragment,{children:[u.jsxs("span",{className:"font-semibold",children:[s,":"]})," "]}),a]})]})}function hc(){return u.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",className:"size-4",children:u.jsx("path",{d:"m5 12 5 5 9-11"})})}function gc({figures:e,bullets:t}){const[r,n]=i.useState(0),a=e[r]??e[0];return u.jsxs("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2",children:[u.jsx("div",{className:"min-w-0",children:a&&i.cloneElement(a,{className:U("w-full",a.props.className)})}),u.jsxs("div",{className:"flex min-w-0 flex-col gap-4",children:[e.length>1&&u.jsx("div",{className:"flex flex-wrap gap-2",role:"group","aria-label":"Step images",children:e.map((o,s)=>u.jsx("button",{type:"button",className:U("overflow-hidden rounded-md border-2 transition-[box-shadow,opacity,border-color]",s===r?"border-accent shadow-md":"border-default opacity-80 hover:opacity-100"),onMouseEnter:()=>n(s),onFocus:()=>n(s),"aria-label":`Image ${s+1}`,"aria-pressed":s===r,children:u.jsx("img",{src:o.props.src,alt:"",className:"size-16 object-cover sm:size-20"})},o.key??o.props.src??s))}),t]})]})}function vc({number:e,title:t,isCompleted:r,defaultCompleted:n=!1,onCompletedChange:a,completable:o=!0,children:s,className:l}){const[c,b]=nc(r,n,a),m=i.useId(),{figures:p,bullets:y}=mc(s);return u.jsxs("section",{"aria-labelledby":t!=null?m:void 0,"data-completed":c||void 0,className:U("flex flex-col gap-4 transition-opacity",c&&"opacity-60",l),children:[u.jsxs("header",{className:"flex flex-col gap-3 sm:flex-row sm:items-center",children:[u.jsxs("div",{className:"flex min-w-0 items-center gap-3 sm:flex-1",children:[e!=null&&u.jsx("span",{className:U("flex size-8 shrink-0 items-center justify-center rounded-md text-sm font-bold tabular-nums",c?"bg-success text-success-foreground":"bg-foreground text-background"),children:c?u.jsx(hc,{}):e}),t!=null&&u.jsx("h3",{id:m,className:"min-w-0 flex-1 text-lg font-semibold leading-tight",children:t})]}),o&&u.jsx(pl,{variant:c?"primary":"secondary",size:"lg",onPress:()=>b(!c),"aria-pressed":c,className:U("ml-auto shrink-0",c&&"guide-step-complete-button"),style:c?{"--guide-step-complete-bg":oc,"--guide-step-complete-bg-hover":sc,"--guide-step-complete-checkbox":ic}:void 0,children:u.jsx(lt,{isSelected:c,isReadOnly:!0,"aria-hidden":!0,className:"pointer-events-none gap-2 text-inherit",children:u.jsxs(lt.Content,{className:"flex items-center gap-2 whitespace-nowrap",children:[u.jsx(lt.Control,{children:u.jsx(lt.Indicator,{})}),"Mark complete"]})})})]}),u.jsx(gc,{figures:p,bullets:y})]})}const yc=Object.assign(vc,{Media:Ta,Bullets:La,Bullet:Ma});function xc(e){return i.isValidElement(e)}function $c({children:e,showProgress:t=!0,onProgressChange:r,className:n}){const a=i.Children.toArray(e).filter(xc),o=a.length,[s,l]=i.useState(()=>Object.fromEntries(a.map((b,m)=>[b.props.number??m+1,!!(b.props.defaultCompleted??b.props.isCompleted)]))),c=Object.values(s).filter(Boolean).length;return i.useEffect(()=>{r==null||r({completed:c,total:o})},[c,o,r]),u.jsxs("div",{className:U("flex flex-col gap-8",n),children:[t&&o>0&&u.jsx("div",{className:"sticky top-2 mx-2 z-10",children:u.jsx(Fe,{className:"w-full px-6 py-4",children:u.jsxs(ct,{value:c,maxValue:o,"aria-label":"Guide progress",className:"flex flex-col gap-1.5",children:[u.jsxs("div",{className:"flex items-center justify-between text-sm text-default-500",children:[u.jsx("span",{children:"Guide Progress"}),u.jsxs(ct.Output,{children:[c," / ",o," steps"]})]}),u.jsx(ct.Track,{className:"h-2 overflow-hidden rounded-full bg-default-soft",children:u.jsx(ct.Fill,{className:"h-full rounded-full bg-success transition-[width]"})})]})})}),u.jsx("ol",{className:"flex flex-col",children:a.map((b,m)=>{const p=b.props.number??m+1;return u.jsxs("li",{children:[i.cloneElement(b,{number:p,isCompleted:s[p]??!1,onCompletedChange:y=>{var v,$;l(h=>({...h,[p]:y})),($=(v=b.props).onCompletedChange)==null||$.call(v,y)}}),m<a.length-1&&u.jsx(Ol,{className:"my-8"})]},b.key??p)})})]})}function Ec({title:e,difficulty:t,timeEstimate:r,meta:n,className:a}){const o=t!=null||r!=null;return u.jsxs("header",{className:U("flex flex-col gap-4 border-b border-default pb-6 md:[grid-area:header]",a),children:[u.jsxs("div",{className:"flex flex-col gap-1.5",children:[u.jsx("h1",{className:"text-3xl font-bold tracking-tight",children:e}),n!=null&&u.jsx("div",{className:"text-sm text-default-500",children:n})]}),o&&u.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t!=null&&u.jsx(Sa,{difficulty:t}),r!=null&&u.jsx(xt,{variant:"soft",color:"default",children:u.jsx(xt.Label,{children:r})})]})]})}function wc({children:e,className:t}){return u.jsx("div",{className:U("min-w-0 md:[grid-area:intro]",t),children:u.jsx("div",{className:"max-w-prose text-default-700",children:e})})}function Pc({children:e,className:t}){return u.jsx("aside",{className:U("min-w-0 md:[grid-area:sidebar]",t),children:u.jsx("div",{className:"flex flex-col gap-4",children:e})})}function Sc({children:e,className:t}){return u.jsx("main",{className:U("min-w-0 w-full md:[grid-area:main]",t),children:e})}const kc=Object.assign(function({children:t,className:r}){return u.jsx("div",{className:U("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:t})},{Header:Ec,Intro:wc,Sidebar:Pc,Content:Sc});exports.COLORS=He;exports.Callout=zl;exports.DISPLAY_REGION_ASPECT=Ul;exports.DifficultyBadge=Sa;exports.GuideLayout=kc;exports.GuideStep=yc;exports.GuideStepList=$c;exports.MediaFigure=Ca;exports.ToolList=rc;exports.calloutTypeColor=gn;exports.calloutTypeHex=vn;exports.calloutTypeLabel=ut;exports.displayRegionHeight=ka;exports.hexToRgba=Ge;exports.markerTextColor=hn;
|
|
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;
|
|
24
29
|
//# sourceMappingURL=diy-guides-ui.cjs.map
|