@nusameta/design-system 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/{Button → Atoms/Button}/Button.d.ts +2 -1
- package/dist/components/{Button → Atoms/Button}/Button.stories.d.ts +1 -1
- package/dist/components/Atoms/checkbox/Checkbox.d.ts +12 -0
- package/dist/components/Atoms/searchfield/Searchfield.d.ts +13 -0
- package/dist/components/Atoms/searchfield/Searchfield.stories.d.ts +42 -0
- package/dist/components/Atoms/textfield/Field.d.ts +13 -0
- package/dist/components/Atoms/textfield/Textfield.d.ts +18 -0
- package/dist/components/Atoms/textfield/Textfield.stories.d.ts +53 -0
- package/dist/components/molecules/popover/Popover.d.ts +5 -0
- package/dist/components/molecules/popover/Popover.stories.d.ts +14 -0
- package/dist/index.cjs.js +48 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +1 -2
- package/dist/index.d.ts +12 -2
- package/dist/index.es.js +5090 -1353
- package/dist/index.es.js.map +1 -1
- package/dist/reset.css +1 -0
- package/dist/reset.d.ts +1 -0
- package/dist/style.d.ts +1 -0
- package/package.json +6 -3
- package/dist/components/Header/Header.d.ts +0 -11
- package/dist/components/Header/Header.stories.d.ts +0 -18
- package/dist/components/Page/Page.d.ts +0 -2
- package/dist/components/Page/Page.stories.d.ts +0 -12
package/dist/index.cjs.js
CHANGED
|
@@ -1,9 +1,53 @@
|
|
|
1
|
-
/*! "use client"; */
|
|
2
|
-
"use strict";const wr=require("react/jsx-runtime"),u=require("react"),Er=require("react-dom");function zt(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=zt(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function it(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=zt(e))&&(n&&(n+=" "),n+=t);return n}const mt=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,gt=it,xr=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return gt(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:i}=t,l=Object.keys(o).map(f=>{const p=r==null?void 0:r[f],h=i==null?void 0:i[f];if(p===null)return null;const T=mt(p)||mt(h);return o[f][T]}),d=r&&Object.entries(r).reduce((f,p)=>{let[h,T]=p;return T===void 0||(f[h]=T),f},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((f,p)=>{let{class:h,className:T,...C}=p;return Object.entries(C).every(L=>{let[w,E]=L;return Array.isArray(E)?E.includes({...i,...d}[w]):{...i,...d}[w]===E})?[...f,h,T]:f},[]);return gt(e,l,c,r==null?void 0:r.class,r==null?void 0:r.className)},me=typeof document<"u"?u.useLayoutEffect:()=>{},Ke={prefix:String(Math.round(Math.random()*1e10)),current:0},Gt=u.createContext(Ke),Pr=u.createContext(!1);let kr=!!(typeof window<"u"&&window.document&&window.document.createElement),Ue=new WeakMap;function Tr(e=!1){let t=u.useContext(Gt),r=u.useRef(null);if(r.current===null&&!e){var n,o;let i=(o=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(i){let l=Ue.get(i);l==null?Ue.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==l.state&&(t.current=l.id,Ue.delete(i))}r.current=++t.current}return r.current}function Sr(e){let t=u.useContext(Gt);t===Ke&&!kr&&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=Tr(!!e),n=t===Ke&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${n}-${r}`}function Cr(e){let t=u.useId(),[r]=u.useState(Or()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Ke.prefix}`;return e||`${n}-${t}`}const Lr=typeof u.useId=="function"?Cr:Sr;function Mr(){return!1}function Ar(){return!0}function Ir(e){return()=>{}}function Or(){return typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore(Ir,Mr,Ar):u.useContext(Pr)}let Fr=!!(typeof window<"u"&&window.document&&window.document.createElement),be=new Map,xe;typeof FinalizationRegistry<"u"&&(xe=new FinalizationRegistry(e=>{be.delete(e)}));function vt(e){let[t,r]=u.useState(e),n=u.useRef(null),o=Lr(t),i=u.useRef(null);if(xe&&xe.register(i,o),Fr){const l=be.get(o);l&&!l.includes(n)?l.push(n):be.set(o,[n])}return me(()=>{let l=o;return()=>{xe&&xe.unregister(i),be.delete(l)}},[o]),u.useEffect(()=>{let l=n.current;return l&&r(l),()=>{l&&(n.current=null)}}),o}function Nr(e,t){if(e===t)return e;let r=be.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=be.get(t);return n?(n.forEach(o=>o.current=e),e):t}function Ht(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const N=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},G=e=>e&&"window"in e&&e.window===e?e:N(e).defaultView||window;function Dr(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function Rr(e){return Dr(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let Vr=!1;function at(){return Vr}function I(e,t){if(!at())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:Rr(r)?r=r.host:r=r.parentNode}return!1}const Te=(e=document)=>{var t;if(!at())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((t=r.shadowRoot)===null||t===void 0)&&t.activeElement);)r=r.shadowRoot.activeElement;return r};function M(e){return at()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function oe(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let i=t[o],l=n[o];typeof i=="function"&&typeof l=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Ht(i,l):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof l=="string"?t[o]=it(i,l):o==="id"&&i&&l?t.id=Nr(i,l):t[o]=l!==void 0?l:i}}return t}function Kr(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1;const n=e.map(o=>{const i=ht(o,t);return r||(r=typeof i=="function"),i});if(r)return()=>{n.forEach((o,i)=>{typeof o=="function"?o():ht(e[i],null)})}}}function ht(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}const zr=new Set(["id"]),Gr=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Hr=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),_r=new Set(["dir","lang","hidden","inert","translate"]),yt=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"]),Wr=/^(data-.*)$/;function _t(e,t={}){let{labelable:r,isLink:n,global:o,events:i=o,propNames:l}=t,d={};for(const c in e)Object.prototype.hasOwnProperty.call(e,c)&&(zr.has(c)||r&&Gr.has(c)||n&&Hr.has(c)||o&&_r.has(c)||i&&(yt.has(c)||c.endsWith("Capture")&&yt.has(c.slice(0,-7)))||l!=null&&l.has(c)||Wr.test(c))&&(d[c]=e[c]);return d}function ge(e){if(jr())e.focus({preventScroll:!0});else{let t=Ur(e);e.focus(),Br(t)}}let Le=null;function jr(){if(Le==null){Le=!1;try{document.createElement("div").focus({get preventScroll(){return Le=!0,!0}})}catch{}}return Le}function Ur(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 Br(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function We(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function lt(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function J(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const ve=J(function(){return lt(/^Mac/i)}),Yr=J(function(){return lt(/^iPhone/i)}),Wt=J(function(){return lt(/^iPad/i)||ve()&&navigator.maxTouchPoints>1}),ct=J(function(){return Yr()||Wt()});J(function(){return ve()||ct()});const Xr=J(function(){return We(/AppleWebKit/i)&&!qr()}),qr=J(function(){return We(/Chrome/i)}),jt=J(function(){return We(/Android/i)}),Jr=J(function(){return We(/Firefox/i)});function le(e,t,r=!0){var n,o;let{metaKey:i,ctrlKey:l,altKey:d,shiftKey:c}=t;Jr()&&(!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key"))&&e.target==="_blank"&&(ve()?i=!0:l=!0);let f=Xr()&&ve()&&!Wt()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:l,altKey:d,shiftKey:c}):new MouseEvent("click",{metaKey:i,ctrlKey:l,altKey:d,shiftKey:c,detail:1,bubbles:!0,cancelable:!0});le.isOpening=r,ge(e),e.dispatchEvent(f),le.isOpening=!1}le.isOpening=!1;let ne=new Map,Qe=new Set;function $t(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=ne.get(n.target);o||(o=new Set,ne.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=ne.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),ne.delete(n.target)),ne.size===0)){for(let i of Qe)i();Qe.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?$t():document.addEventListener("DOMContentLoaded",$t));function Qr(){for(const[e]of ne)"isConnected"in e&&!e.isConnected&&ne.delete(e)}function Ut(e){requestAnimationFrame(()=>{Qr(),ne.size===0?e():Qe.add(e)})}function dt(){let e=u.useRef(new Map),t=u.useCallback((o,i,l,d)=>{let c=d!=null&&d.once?(...f)=>{e.current.delete(l),l(...f)}:l;e.current.set(l,{type:i,eventTarget:o,fn:c,options:d}),o.addEventListener(i,c,d)},[]),r=u.useCallback((o,i,l,d)=>{var c;let f=((c=e.current.get(l))===null||c===void 0?void 0:c.fn)||l;o.removeEventListener(i,f,d),e.current.delete(l)},[]),n=u.useCallback(()=>{e.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return u.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Zr(e){const t=u.useRef(null),r=u.useRef(void 0),n=u.useCallback(o=>{if(typeof e=="function"){const i=e,l=i(o);return()=>{typeof l=="function"?l():i(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return u.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}var Be;const en=(Be=u.useInsertionEffect)!==null&&Be!==void 0?Be:me;function Me(e){const t=u.useRef(null);return en(()=>{t.current=e},[e]),u.useCallback((...r)=>{const n=t.current;return n==null?void 0:n(...r)},[])}function Bt(e,t){me(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Ze(e){return e.pointerType===""&&e.isTrusted?!0:jt()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function tn(e){return!jt()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}const rn=typeof Element<"u"&&"checkVisibility"in Element.prototype;function nn(e){const t=G(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:l,visibility:d}=i(e);o=l!=="none"&&d!=="hidden"&&d!=="collapse"}return o}function on(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 Yt(e,t){return rn?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&nn(e)&&on(e,t)&&(!e.parentElement||Yt(e.parentElement,e))}const Xt=["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"],sn=Xt.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Xt.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function an(e){return e.matches(sn)&&Yt(e)&&!ln(e)}function ln(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}const cn=Symbol("default");function dn(e){let{className:t,style:r,children:n,defaultClassName:o,defaultChildren:i,defaultStyle:l,values:d}=e;return u.useMemo(()=>{let c,f,p;return typeof t=="function"?c=t({...d,defaultClassName:o}):c=t,typeof r=="function"?f=r({...d,defaultStyle:l||{}}):f=r,typeof n=="function"?p=n({...d,defaultChildren:i}):n==null?p=i:p=n,{className:c??o,style:f||l?{...l,...f}:void 0,children:p??i,"data-rac":""}},[t,r,n,o,i,l,d])}function un(e,t){return r=>t(typeof e=="function"?e(r):e,r)}function fn(e,t){let r=u.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=t||cn;if(!r.slots[n]){let o=new Intl.ListFormat().format(Object.keys(r.slots).map(l=>`"${l}"`)),i=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${i} Valid slot names are ${o}.`)}return r.slots[n]}return r}function pn(e,t,r){let n=fn(r,e.slot)||{},{ref:o,...i}=n,l=Zr(u.useMemo(()=>Kr(t,o),[t,o])),d=oe(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?d.style=c=>{let f=typeof i.style=="function"?i.style(c):i.style,p={...c.defaultStyle,...f},h=typeof e.style=="function"?e.style({...c,defaultStyle:p}):e.style;return{...p,...h}}:d.style={...i.style,...e.style}),[d,l]}const qt=7e3;let U=null;function wt(e,t="assertive",r=qt){U?U.announce(e,t,r):(U=new bn,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?U.announce(e,t,r):setTimeout(()=>{U!=null&&U.isAttached()&&(U==null||U.announce(e,t,r))},100))}class bn{isAttached(){var t;return(t=this.node)===null||t===void 0?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=qt){var o,i;if(!this.node)return;let l=document.createElement("div");typeof t=="object"?(l.setAttribute("role","img"),l.setAttribute("aria-labelledby",t["aria-labelledby"])):l.textContent=t,r==="assertive"?(o=this.assertiveLog)===null||o===void 0||o.appendChild(l):(i=this.politeLog)===null||i===void 0||i.appendChild(l),t!==""&&setTimeout(()=>{l.remove()},n)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}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))}}function mn(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function gn(e,t,r){mn(e,t),t.set(e,r)}function ut(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Jt(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Qt(e){let t=u.useRef({isFocused:!1,observer:null});return me(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),u.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r.target,o=i=>{if(t.current.isFocused=!1,n.disabled){let l=ut(i);e==null||e(l)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let l=n===document.activeElement?null:document.activeElement;n.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let ze=!1;function Et(e){for(;e&&!an(e);)e=e.parentElement;let t=G(e),r=t.document.activeElement;if(!r||r===e)return;ze=!0;let n=!1,o=p=>{(p.target===r||n)&&p.stopImmediatePropagation()},i=p=>{(p.target===r||n)&&(p.stopImmediatePropagation(),!e&&!n&&(n=!0,ge(r),c()))},l=p=>{(p.target===e||n)&&p.stopImmediatePropagation()},d=p=>{(p.target===e||n)&&(p.stopImmediatePropagation(),n||(n=!0,ge(r),c()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",d,!0),t.addEventListener("focus",l,!0);let c=()=>{cancelAnimationFrame(f),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",d,!0),t.removeEventListener("focus",l,!0),ze=!1,n=!1},f=requestAnimationFrame(c);return c}let pe="default",et="",Ve=new WeakMap;function xt(e){if(ct()){if(pe==="default"){const t=N(e);et=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}pe="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Ve.set(e,e.style[t]),e.style[t]="none"}}function Ye(e){if(ct()){if(pe!=="disabled")return;pe="restoring",setTimeout(()=>{Ut(()=>{if(pe==="restoring"){const t=N(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=et||""),et="",pe="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Ve.has(e)){let t=Ve.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Ve.delete(e)}}const Zt=u.createContext({register:()=>{}});Zt.displayName="PressResponderContext";function vn(e,t){return t.get?t.get.call(e):t.value}function er(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function hn(e,t){var r=er(e,t,"get");return vn(e,r)}function yn(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function Pt(e,t,r){var n=er(e,t,"set");return yn(e,n,r),r}function $n(e){let t=u.useContext(Zt);if(t){let{register:r,...n}=t;e=oe(n,e),r()}return Bt(t,e.ref),e}var Ae=new WeakMap;class Ie{continuePropagation(){Pt(this,Ae,!1)}get shouldStopPropagation(){return hn(this,Ae)}constructor(t,r,n,o){gn(this,Ae,{writable:!0,value:void 0}),Pt(this,Ae,!0);var i;let l=(i=o==null?void 0:o.target)!==null&&i!==void 0?i:n.currentTarget;const d=l==null?void 0:l.getBoundingClientRect();let c,f=0,p,h=null;n.clientX!=null&&n.clientY!=null&&(p=n.clientX,h=n.clientY),d&&(p!=null&&h!=null?(c=p-d.left,f=h-d.top):(c=d.width/2,f=d.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=c,this.y=f}}const kt=Symbol("linkClicked"),Tt="react-aria-pressable-style",St="data-react-aria-pressable";function wn(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,onClick:l,isDisabled:d,isPressed:c,preventFocusOnPress:f,shouldCancelOnPointerExit:p,allowTextSelectionOnPress:h,ref:T,...C}=$n(e),[L,w]=u.useState(!1),E=u.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:S,removeAllGlobalListeners:O,removeGlobalListener:F}=dt(),R=u.useCallback((s,v)=>{let a=E.current;if(d||a.didFirePressStart)return!1;let b=!0;if(a.isTriggeringEvent=!0,n){let $=new Ie("pressstart",v,s);n($),b=$.shouldStopPropagation}return r&&r(!0),a.isTriggeringEvent=!1,a.didFirePressStart=!0,w(!0),b},[d,n,r]),V=u.useCallback((s,v,a=!0)=>{let b=E.current;if(!b.didFirePressStart)return!1;b.didFirePressStart=!1,b.isTriggeringEvent=!0;let $=!0;if(o){let k=new Ie("pressend",v,s);o(k),$=k.shouldStopPropagation}if(r&&r(!1),w(!1),t&&a&&!d){let k=new Ie("press",v,s);t(k),$&&($=k.shouldStopPropagation)}return b.isTriggeringEvent=!1,$},[d,o,r,t]),B=Me(V),z=u.useCallback((s,v)=>{let a=E.current;if(d)return!1;if(i){a.isTriggeringEvent=!0;let b=new Ie("pressup",v,s);return i(b),a.isTriggeringEvent=!1,b.shouldStopPropagation}return!0},[d,i]),x=Me(z),K=u.useCallback(s=>{let v=E.current;if(v.isPressed&&v.target){v.didFirePressStart&&v.pointerType!=null&&V(ie(v.target,s),v.pointerType,!1),v.isPressed=!1,y(null),v.isOverTarget=!1,v.activePointerId=null,v.pointerType=null,O(),h||Ye(v.target);for(let a of v.disposables)a();v.disposables=[]}},[h,O,V]),Q=Me(K),se=u.useCallback(s=>{p&&K(s)},[p,K]),Z=u.useCallback(s=>{d||l==null||l(s)},[d,l]),de=u.useCallback((s,v)=>{if(!d&&l){let a=new MouseEvent("click",s);Jt(a,v),l(ut(a))}},[d,l]),we=Me(de),[Y,H]=u.useState(!1);me(()=>{let s=E.current;if(Y){let v=k=>{var j;if(s.isPressed&&s.target&&Xe(k,s.target)){var A;Mt(M(k),k.key)&&k.preventDefault();let ee=M(k),X=I(s.target,M(k));B(ie(s.target,k),"keyboard",X),X&&we(k,s.target),O(),k.key!=="Enter"&&ft(s.target)&&I(s.target,ee)&&!k[kt]&&(k[kt]=!0,le(s.target,k,!1)),s.isPressed=!1,H(!1),(A=s.metaKeyEvents)===null||A===void 0||A.delete(k.key)}else if(k.key==="Meta"&&(!((j=s.metaKeyEvents)===null||j===void 0)&&j.size)){var ue;let ee=s.metaKeyEvents;s.metaKeyEvents=void 0;for(let X of ee.values())(ue=s.target)===null||ue===void 0||ue.dispatchEvent(new KeyboardEvent("keyup",X))}},a=s.target,$=Ht(k=>{a&&Xe(k,a)&&!k.repeat&&I(a,M(k))&&s.target&&x(ie(s.target,k),"keyboard")},v);return S(N(s.target),"keyup",$,!0),()=>{F(N(s.target),"keyup",$,!0)}}},[Y,S,O,F]);let[_,y]=u.useState(null);me(()=>{let s=E.current;if(_==="pointer"){let v=b=>{if(b.pointerId===s.activePointerId&&s.isPressed&&b.button===0&&s.target){if(I(s.target,M(b))&&s.pointerType!=null){let $=!1,k=setTimeout(()=>{s.isPressed&&s.target instanceof HTMLElement&&($?Q(b):(ge(s.target),s.target.click()))},80);S(b.currentTarget,"click",()=>$=!0,!0),s.disposables.push(()=>clearTimeout(k))}else Q(b);s.isOverTarget=!1}},a=b=>{Q(b)};return S(N(s.target),"pointerup",v,!1),S(N(s.target),"pointercancel",a,!1),()=>{F(N(s.target),"pointerup",v,!1),F(N(s.target),"pointercancel",a,!1)}}else if(_==="mouse"&&process.env.NODE_ENV==="test"){let v=a=>{if(a.button===0){if(s.ignoreEmulatedMouseEvents){s.ignoreEmulatedMouseEvents=!1;return}s.target&&s.target.contains(a.target)&&s.pointerType!=null||Q(a),s.isOverTarget=!1}};return S(N(s.target),"mouseup",v,!1),()=>{F(N(s.target),"mouseup",v,!1)}}else if(_==="touch"&&process.env.NODE_ENV==="test"){let v=a=>{s.isPressed&&I(M(a),s.target)&&Q({currentTarget:s.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};return S(G(s.target),"scroll",v,!0),()=>{F(G(s.target),"scroll",v,!0)}}},[_,S,F]);let Se=u.useMemo(()=>{let s=E.current,v={onKeyDown(a){if(Xe(a.nativeEvent,a.currentTarget)&&I(a.currentTarget,M(a.nativeEvent))){var b;Mt(M(a.nativeEvent),a.key)&&a.preventDefault();let $=!0;!s.isPressed&&!a.repeat&&(s.target=a.currentTarget,s.isPressed=!0,H(!0),s.pointerType="keyboard",$=R(a,"keyboard")),$&&a.stopPropagation(),a.metaKey&&ve()&&((b=s.metaKeyEvents)===null||b===void 0||b.set(a.key,a.nativeEvent))}else a.key==="Meta"&&(s.metaKeyEvents=new Map)},onClick(a){if(!(a&&!I(a.currentTarget,M(a.nativeEvent)))&&a&&a.button===0&&!s.isTriggeringEvent&&!le.isOpening){let b=!0;if(d&&a.preventDefault(),!s.ignoreEmulatedMouseEvents&&!s.isPressed&&(s.pointerType==="virtual"||Ze(a.nativeEvent))){let $=R(a,"virtual"),k=z(a,"virtual"),j=V(a,"virtual");Z(a),b=$&&k&&j}else if(s.isPressed&&s.pointerType!=="keyboard"){let $=s.pointerType||a.nativeEvent.pointerType||"virtual",k=z(ie(a.currentTarget,a),$),j=V(ie(a.currentTarget,a),$,!0);b=k&&j,s.isOverTarget=!1,Z(a),K(a)}s.ignoreEmulatedMouseEvents=!1,b&&a.stopPropagation()}}};return typeof PointerEvent<"u"?(v.onPointerDown=a=>{if(a.button!==0||!I(a.currentTarget,M(a.nativeEvent)))return;if(tn(a.nativeEvent)){s.pointerType="virtual";return}s.pointerType=a.pointerType;let b=!0;if(!s.isPressed){s.isPressed=!0,y("pointer"),s.isOverTarget=!0,s.activePointerId=a.pointerId,s.target=a.currentTarget,h||xt(s.target),b=R(a,s.pointerType);let $=M(a.nativeEvent);"releasePointerCapture"in $&&$.releasePointerCapture(a.pointerId)}b&&a.stopPropagation()},v.onMouseDown=a=>{if(I(a.currentTarget,M(a.nativeEvent))&&a.button===0){if(f){let b=Et(a.target);b&&s.disposables.push(b)}a.stopPropagation()}},v.onPointerUp=a=>{!I(a.currentTarget,M(a.nativeEvent))||s.pointerType==="virtual"||a.button===0&&!s.isPressed&&z(a,s.pointerType||a.pointerType)},v.onPointerEnter=a=>{a.pointerId===s.activePointerId&&s.target&&!s.isOverTarget&&s.pointerType!=null&&(s.isOverTarget=!0,R(ie(s.target,a),s.pointerType))},v.onPointerLeave=a=>{a.pointerId===s.activePointerId&&s.target&&s.isOverTarget&&s.pointerType!=null&&(s.isOverTarget=!1,V(ie(s.target,a),s.pointerType,!1),se(a))},v.onDragStart=a=>{I(a.currentTarget,M(a.nativeEvent))&&K(a)}):process.env.NODE_ENV==="test"&&(v.onMouseDown=a=>{if(a.button!==0||!I(a.currentTarget,M(a.nativeEvent)))return;if(s.ignoreEmulatedMouseEvents){a.stopPropagation();return}if(s.isPressed=!0,y("mouse"),s.isOverTarget=!0,s.target=a.currentTarget,s.pointerType=Ze(a.nativeEvent)?"virtual":"mouse",Er.flushSync(()=>R(a,s.pointerType))&&a.stopPropagation(),f){let $=Et(a.target);$&&s.disposables.push($)}},v.onMouseEnter=a=>{if(!I(a.currentTarget,M(a.nativeEvent)))return;let b=!0;s.isPressed&&!s.ignoreEmulatedMouseEvents&&s.pointerType!=null&&(s.isOverTarget=!0,b=R(a,s.pointerType)),b&&a.stopPropagation()},v.onMouseLeave=a=>{if(!I(a.currentTarget,M(a.nativeEvent)))return;let b=!0;s.isPressed&&!s.ignoreEmulatedMouseEvents&&s.pointerType!=null&&(s.isOverTarget=!1,b=V(a,s.pointerType,!1),se(a)),b&&a.stopPropagation()},v.onMouseUp=a=>{I(a.currentTarget,M(a.nativeEvent))&&!s.ignoreEmulatedMouseEvents&&a.button===0&&!s.isPressed&&z(a,s.pointerType||"mouse")},v.onTouchStart=a=>{if(!I(a.currentTarget,M(a.nativeEvent)))return;let b=En(a.nativeEvent);if(!b)return;s.activePointerId=b.identifier,s.ignoreEmulatedMouseEvents=!0,s.isOverTarget=!0,s.isPressed=!0,y("touch"),s.target=a.currentTarget,s.pointerType="touch",h||xt(s.target),R(te(s.target,a),s.pointerType)&&a.stopPropagation()},v.onTouchMove=a=>{if(!I(a.currentTarget,M(a.nativeEvent)))return;if(!s.isPressed){a.stopPropagation();return}let b=Ct(a.nativeEvent,s.activePointerId),$=!0;b&&Lt(b,a.currentTarget)?!s.isOverTarget&&s.pointerType!=null&&(s.isOverTarget=!0,$=R(te(s.target,a),s.pointerType)):s.isOverTarget&&s.pointerType!=null&&(s.isOverTarget=!1,$=V(te(s.target,a),s.pointerType,!1),se(te(s.target,a))),$&&a.stopPropagation()},v.onTouchEnd=a=>{if(!I(a.currentTarget,M(a.nativeEvent)))return;if(!s.isPressed){a.stopPropagation();return}let b=Ct(a.nativeEvent,s.activePointerId),$=!0;b&&Lt(b,a.currentTarget)&&s.pointerType!=null?(z(te(s.target,a),s.pointerType),$=V(te(s.target,a),s.pointerType),de(a.nativeEvent,s.target)):s.isOverTarget&&s.pointerType!=null&&($=V(te(s.target,a),s.pointerType,!1)),$&&a.stopPropagation(),s.isPressed=!1,y(null),s.activePointerId=null,s.isOverTarget=!1,s.ignoreEmulatedMouseEvents=!0,s.target&&!h&&Ye(s.target),O()},v.onTouchCancel=a=>{I(a.currentTarget,M(a.nativeEvent))&&(a.stopPropagation(),s.isPressed&&K(te(s.target,a)))},v.onDragStart=a=>{I(a.currentTarget,M(a.nativeEvent))&&K(a)}),v},[d,f,O,h,K,se,V,R,z,Z,de]);return u.useEffect(()=>{if(!T||process.env.NODE_ENV==="test")return;const s=N(T.current);if(!s||!s.head||s.getElementById(Tt))return;const v=s.createElement("style");v.id=Tt,v.textContent=`
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react/jsx-runtime"),d=require("react"),$r=require("react-dom");function Pa(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Ca=Pa(d);function Bn(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Bn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function yr(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Bn(e))&&(n&&(n+=" "),n+=t);return n}const Yr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Xr=yr,xr=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return Xr(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map(c=>{const u=r==null?void 0:r[c],b=i==null?void 0:i[c];if(u===null)return null;const p=Yr(u)||Yr(b);return o[c][p]}),l=r&&Object.entries(r).reduce((c,u)=>{let[b,p]=u;return p===void 0||(c[b]=p),c},{}),s=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,u)=>{let{class:b,className:p,...h}=u;return Object.entries(h).every(m=>{let[g,$]=m;return Array.isArray($)?$.includes({...i,...l}[g]):{...i,...l}[g]===$})?[...c,b,p]:c},[]);return Xr(e,a,s,r==null?void 0:r.class,r==null?void 0:r.className)},Ta=d.createContext(null);d.createContext(null);d.createContext(null);d.createContext(null);d.createContext(null);const Sa=d.createContext({});d.createContext(null);const Kn=d.createContext(null),K=typeof document<"u"?d.useLayoutEffect:()=>{};function ka(e){let[t,r]=d.useState(e),n=d.useRef(t),o=d.useRef(null),i=d.useRef(()=>{if(!o.current)return;let l=o.current.next();if(l.done){o.current=null;return}n.current===l.value?i.current():r(l.value)});K(()=>{n.current=t,o.current&&i.current()});let a=d.useCallback(l=>{o.current=l(n.current),i.current()},[i]);return[t,a]}const yt={prefix:String(Math.round(Math.random()*1e10)),current:0},jn=d.createContext(yt),Na=d.createContext(!1);let La=!!(typeof window<"u"&&window.document&&window.document.createElement),zt=new WeakMap;function Ra(e=!1){let t=d.useContext(jn),r=d.useRef(null);if(r.current===null&&!e){var n,o;let i=(o=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(i){let a=zt.get(i);a==null?zt.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,zt.delete(i))}r.current=++t.current}return r.current}function Ia(e){let t=d.useContext(jn);t===yt&&!La&&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=Ra(!!e),n=t===yt&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${n}-${r}`}function Ma(e){let t=d.useId(),[r]=d.useState(Er()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${yt.prefix}`;return e||`${n}-${t}`}const Fa=typeof d.useId=="function"?Ma:Ia;function Da(){return!1}function Oa(){return!0}function Aa(e){return()=>{}}function Er(){return typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore(Aa,Da,Oa):d.useContext(Na)}let _a=!!(typeof window<"u"&&window.document&&window.document.createElement),He=new Map,Ue;typeof FinalizationRegistry<"u"&&(Ue=new FinalizationRegistry(e=>{He.delete(e)}));function Ne(e){let[t,r]=d.useState(e),n=d.useRef(null),o=Fa(t),i=d.useRef(null);if(Ue&&Ue.register(i,o),_a){const a=He.get(o);a&&!a.includes(n)?a.push(n):He.set(o,[n])}return K(()=>{let a=o;return()=>{Ue&&Ue.unregister(i),He.delete(a)}},[o]),d.useEffect(()=>{let a=n.current;return a&&r(a),()=>{a&&(n.current=null)}}),o}function Va(e,t){if(e===t)return e;let r=He.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=He.get(t);return n?(n.forEach(o=>o.current=e),e):t}function er(e=[]){let t=Ne(),[r,n]=ka(t),o=d.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return K(o,[t,o,...e]),r}function rt(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const V=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},ie=e=>e&&"window"in e&&e.window===e?e:V(e).defaultView||window;function Ha(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function za(e){return Ha(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let Ba=!1;function Lt(){return Ba}function U(e,t){if(!Lt())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:za(r)?r=r.host:r=r.parentNode}return!1}const ae=(e=document)=>{var t;if(!Lt())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((t=r.shadowRoot)===null||t===void 0)&&t.activeElement);)r=r.shadowRoot.activeElement;return r};function H(e){return Lt()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class Ka{get currentNode(){return this._currentNode}set currentNode(t){if(!U(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const r=[];let n=t,o=t;for(this._currentNode=t;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const a=n,l=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});r.push(l),l.currentNode=o,this._currentSetFor.add(l),n=o=a.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 t=this.currentNode,r=this.nextNode();return U(t,r)?(r&&(this.currentNode=r),r):(this.currentNode=t,null)}lastChild(){let r=this._walkerStack[0].lastChild();return r&&(this.currentNode=r),r}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(t):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(t)),o===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let i=this.nextNode();return i&&(this.currentNode=i),i}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null;return null}const r=t.previousNode();if(r){if(r.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(r):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(r)),i===NodeFilter.FILTER_ACCEPT)return r&&(this.currentNode=r),r;let a=this.lastChild();return a&&(this.currentNode=a),a}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}constructor(t,r,n,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=a=>{if(a.nodeType===Node.ELEMENT_NODE){const s=a.shadowRoot;if(s){const c=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(c),NodeFilter.FILTER_ACCEPT}else{var l;if(typeof this.filter=="function")return this.filter(a);if(!((l=this.filter)===null||l===void 0)&&l.acceptNode)return this.filter.acceptNode(a);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=r,this.filter=o??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=r,this._walkerStack.unshift(t.createTreeWalker(r,n,this._acceptNode));const i=r.shadowRoot;if(i){const a=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(a)}}}function ja(e,t,r,n){return Lt()?new Ka(e,t,r,n):e.createTreeWalker(t,r,n)}function q(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let i=t[o],a=n[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=rt(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=yr(i,a):o==="id"&&i&&a?t.id=Va(i,a):t[o]=a!==void 0?a:i}}return t}function Gn(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1;const n=e.map(o=>{const i=Jr(o,t);return r||(r=typeof i=="function"),i});if(r)return()=>{n.forEach((o,i)=>{typeof o=="function"?o():Jr(e[i],null)})}}}function Jr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}const Ga=new Set(["id"]),Wa=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Ua=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),qa=new Set(["dir","lang","hidden","inert","translate"]),Zr=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"]),Ya=/^(data-.*)$/;function me(e,t={}){let{labelable:r,isLink:n,global:o,events:i=o,propNames:a}=t,l={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(Ga.has(s)||r&&Wa.has(s)||n&&Ua.has(s)||o&&qa.has(s)||i&&(Zr.has(s)||s.endsWith("Capture")&&Zr.has(s.slice(0,-7)))||a!=null&&a.has(s)||Ya.test(s))&&(l[s]=e[s]);return l}function ze(e){if(Xa())e.focus({preventScroll:!0});else{let t=Ja(e);e.focus(),Za(t)}}let st=null;function Xa(){if(st==null){st=!1;try{document.createElement("div").focus({get preventScroll(){return st=!0,!0}})}catch{}}return st}function Ja(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}function Rt(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function wr(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Ee(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Be=Ee(function(){return wr(/^Mac/i)}),Qa=Ee(function(){return wr(/^iPhone/i)}),Wn=Ee(function(){return wr(/^iPad/i)||Be()&&navigator.maxTouchPoints>1}),It=Ee(function(){return Qa()||Wn()});Ee(function(){return Be()||It()});const Un=Ee(function(){return Rt(/AppleWebKit/i)&&!qn()}),qn=Ee(function(){return Rt(/Chrome/i)}),Pr=Ee(function(){return Rt(/Android/i)}),el=Ee(function(){return Rt(/Firefox/i)});function Me(e,t,r=!0){var n,o;let{metaKey:i,ctrlKey:a,altKey:l,shiftKey:s}=t;el()&&(!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key"))&&e.target==="_blank"&&(Be()?i=!0:a=!0);let c=Un()&&Be()&&!Wn()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:l,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});Me.isOpening=r,ze(e),e.dispatchEvent(c),Me.isOpening=!1}Me.isOpening=!1;let Te=new Map,tr=new Set;function Qr(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=Te.get(n.target);o||(o=new Set,Te.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=Te.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),Te.delete(n.target)),Te.size===0)){for(let i of tr)i();tr.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Qr():document.addEventListener("DOMContentLoaded",Qr));function tl(){for(const[e]of Te)"isConnected"in e&&!e.isConnected&&Te.delete(e)}function Yn(e){requestAnimationFrame(()=>{tl(),Te.size===0?e():tr.add(e)})}function Cr(){let e=d.useRef(new Map),t=d.useCallback((o,i,a,l)=>{let s=l!=null&&l.once?(...c)=>{e.current.delete(a),a(...c)}:a;e.current.set(a,{type:i,eventTarget:o,fn:s,options:l}),o.addEventListener(i,s,l)},[]),r=d.useCallback((o,i,a,l)=>{var s;let c=((s=e.current.get(a))===null||s===void 0?void 0:s.fn)||a;o.removeEventListener(i,c,l),e.current.delete(a)},[]),n=d.useCallback(()=>{e.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return d.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Xn(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=Ne(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}function Tr(e){const t=d.useRef(null),r=d.useRef(void 0),n=d.useCallback(o=>{if(typeof e=="function"){const i=e,a=i(o);return()=>{typeof a=="function"?a():i(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return d.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}var Bt;const rl=(Bt=d.useInsertionEffect)!==null&&Bt!==void 0?Bt:K;function pe(e){const t=d.useRef(null);return rl(()=>{t.current=e},[e]),d.useCallback((...r)=>{const n=t.current;return n==null?void 0:n(...r)},[])}function nl(){return typeof window.ResizeObserver<"u"}function rr(e){const{ref:t,box:r,onResize:n}=e;let o=pe(n);d.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(nl()){const a=new window.ResizeObserver(l=>{l.length&&o()});return a.observe(i,{box:r}),()=>{i&&a.unobserve(i)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[t,r])}function Sr(e,t){K(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function nr(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function Jn(e,t){let r=e;for(nr(r,t)&&(r=r.parentElement);r&&!nr(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}const ol=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Kt(e){return e instanceof HTMLInputElement&&!ol.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function or(e){return e.pointerType===""&&e.isTrusted?!0:Pr()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function il(e){return!Pr()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Zn(e,t,r){let n=pe(()=>{r&&r(t)});d.useEffect(()=>{var o;let i=e==null||(o=e.current)===null||o===void 0?void 0:o.form;return i==null||i.addEventListener("reset",n),()=>{i==null||i.removeEventListener("reset",n)}},[e])}function al(e,t=!0){let[r,n]=d.useState(!0),o=r&&t;return K(()=>{if(o&&e.current&&"getAnimations"in e.current)for(let i of e.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[e,o]),Qn(e,o,d.useCallback(()=>n(!1),[])),o}function ll(e,t){let[r,n]=d.useState(t?"open":"closed");switch(r){case"open":t||n("exiting");break;case"closed":case"exiting":t&&n("open");break}let o=r==="exiting";return Qn(e,o,d.useCallback(()=>{n(i=>i==="exiting"?"closed":i)},[])),o}function Qn(e,t,r){K(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){r();return}let n=e.current.getAnimations();if(n.length===0){r();return}let o=!1;return Promise.all(n.map(i=>i.finished)).then(()=>{o||$r.flushSync(()=>{r()})}).catch(()=>{}),()=>{o=!0}}},[e,t,r])}const sl=typeof Element<"u"&&"checkVisibility"in Element.prototype;function dl(e){const t=ie(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:a,visibility:l}=i(e);o=a!=="none"&&l!=="hidden"&&l!=="collapse"}return o}function cl(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 kr(e,t){return sl?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&dl(e)&&cl(e,t)&&(!e.parentElement||kr(e.parentElement,e))}const Nr=["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"],ul=Nr.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Nr.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const fl=Nr.join(':not([hidden]):not([tabindex="-1"]),');function eo(e){return e.matches(ul)&&kr(e)&&!to(e)}function bl(e){return e.matches(fl)&&kr(e)&&!to(e)}function to(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var jt;const vl=typeof document<"u"?(jt=d.useInsertionEffect)!==null&&jt!==void 0?jt:d.useLayoutEffect:()=>{};function Mt(e,t,r){let[n,o]=d.useState(e||t),i=d.useRef(n),a=d.useRef(e!==void 0),l=e!==void 0;d.useEffect(()=>{let b=a.current;b!==l&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${b?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),a.current=l},[l]);let s=l?e:n;vl(()=>{i.current=s});let[,c]=d.useReducer(()=>({}),{}),u=d.useCallback((b,...p)=>{let h=typeof b=="function"?b(i.current):b;Object.is(i.current,h)||(i.current=h,o(h),c(),r==null||r(h,...p))},[r]);return[s,u]}function ir(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}const ar=Symbol("default");function Ft({values:e,children:t}){for(let[r,n]of e)t=d.createElement(r.Provider,{value:n},t);return t}function $e(e){let{className:t,style:r,children:n,defaultClassName:o,defaultChildren:i,defaultStyle:a,values:l}=e;return d.useMemo(()=>{let s,c,u;return typeof t=="function"?s=t({...l,defaultClassName:o}):s=t,typeof r=="function"?c=r({...l,defaultStyle:a||{}}):c=r,typeof n=="function"?u=n({...l,defaultChildren:i}):n==null?u=i:u=n,{className:s??o,style:c||a?{...a,...c}:void 0,children:u??i,"data-rac":""}},[t,r,n,o,i,a,l])}function le(e,t){return r=>t(typeof e=="function"?e(r):e,r)}function Dt(e,t){let r=d.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=t||ar;if(!r.slots[n]){let o=new Intl.ListFormat().format(Object.keys(r.slots).map(a=>`"${a}"`)),i=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${i} Valid slot names are ${o}.`)}return r.slots[n]}return r}function se(e,t,r){let n=Dt(r,e.slot)||{},{ref:o,...i}=n,a=Tr(d.useMemo(()=>Gn(t,o),[t,o])),l=q(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?l.style=s=>{let c=typeof i.style=="function"?i.style(s):i.style,u={...s.defaultStyle,...c},b=typeof e.style=="function"?e.style({...s,defaultStyle:u}):e.style;return{...u,...b}}:l.style={...i.style,...e.style}),[l,a]}function ro(e=!0){let[t,r]=d.useState(e),n=d.useRef(!1),o=d.useCallback(i=>{n.current=!0,r(!!i)},[]);return K(()=>{n.current||r(!1)},[]),[o,t]}function xt(e){const t=/^(data-.*)$/;let r={};for(const n in e)t.test(n)||(r[n]=e[n]);return r}const no=7e3;let ge=null;function en(e,t="assertive",r=no){ge?ge.announce(e,t,r):(ge=new pl,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?ge.announce(e,t,r):setTimeout(()=>{ge!=null&&ge.isAttached()&&(ge==null||ge.announce(e,t,r))},100))}class pl{isAttached(){var t;return(t=this.node)===null||t===void 0?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=no){var o,i;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===void 0||o.appendChild(a):(i=this.politeLog)===null||i===void 0||i.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=""))}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))}}const ue={top:"top",bottom:"top",left:"left",right:"left"},Et={top:"bottom",bottom:"top",left:"right",right:"left"},ml={top:"left",left:"top"},lr={top:"height",left:"width"},oo={width:"totalWidth",height:"totalHeight"},dt={};let gl=()=>typeof document<"u"?window.visualViewport:null;function tn(e,t){let r=0,n=0,o=0,i=0,a=0,l=0,s={};var c;let u=((c=t==null?void 0:t.scale)!==null&&c!==void 0?c:1)>1;if(e.tagName==="BODY"||e.tagName==="HTML"){let g=document.documentElement;o=g.clientWidth,i=g.clientHeight;var b;r=(b=t==null?void 0:t.width)!==null&&b!==void 0?b:o;var p;n=(p=t==null?void 0:t.height)!==null&&p!==void 0?p:i,s.top=g.scrollTop||e.scrollTop,s.left=g.scrollLeft||e.scrollLeft,t&&(a=t.offsetTop,l=t.offsetLeft)}else({width:r,height:n,top:a,left:l}=Qe(e,!1)),s.top=e.scrollTop,s.left=e.scrollLeft,o=r,i=n;if(Un()&&(e.tagName==="BODY"||e.tagName==="HTML")&&u){s.top=0,s.left=0;var h;a=(h=t==null?void 0:t.pageTop)!==null&&h!==void 0?h:0;var m;l=(m=t==null?void 0:t.pageLeft)!==null&&m!==void 0?m:0}return{width:r,height:n,totalWidth:o,totalHeight:i,scroll:s,top:a,left:l}}function hl(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function rn(e,t,r,n,o,i,a){var l;let s=(l=o.scroll[e])!==null&&l!==void 0?l:0,c=n[lr[e]],u=a[e]+n.scroll[ue[e]]+i,b=a[e]+n.scroll[ue[e]]+c-i,p=t-s+n.scroll[ue[e]]+a[e]-n[ue[e]],h=t-s+r+n.scroll[ue[e]]+a[e]-n[ue[e]];return p<u?u-p:h>b?Math.max(b-h,u-p):0}function $l(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function nn(e){if(dt[e])return dt[e];let[t,r]=e.split(" "),n=ue[t]||"right",o=ml[n];ue[r]||(r="center");let i=lr[n],a=lr[o];return dt[e]={placement:t,crossPlacement:r,axis:n,crossAxis:o,size:i,crossSize:a},dt[e]}function Gt(e,t,r,n,o,i,a,l,s,c,u){let{placement:b,crossPlacement:p,axis:h,crossAxis:m,size:g,crossSize:$}=n,y={};var x;y[m]=(x=e[m])!==null&&x!==void 0?x:0;var P,w,R,I;p==="center"?y[m]+=(((P=e[$])!==null&&P!==void 0?P:0)-((w=r[$])!==null&&w!==void 0?w:0))/2:p!==m&&(y[m]+=((R=e[$])!==null&&R!==void 0?R:0)-((I=r[$])!==null&&I!==void 0?I:0)),y[m]+=i;const M=e[m]-r[$]+s+c,E=e[m]+e[$]-s-c;if(y[m]=ir(y[m],M,E),b===h){let F=l?u[g]:u[oo[g]];y[Et[h]]=Math.floor(F-e[h]+o)}else y[h]=Math.floor(e[h]+e[g]+o);return y}function yl(e,t,r,n,o,i,a,l,s,c,u){var b,p;let h=(e.top!=null?e.top:s[oo.height]-((b=e.bottom)!==null&&b!==void 0?b:0)-a)-((p=s.scroll.top)!==null&&p!==void 0?p:0),m=c?r.top:0;var g,$,y;let x={top:Math.max(t.top+m,((g=u==null?void 0:u.offsetTop)!==null&&g!==void 0?g:t.top)+m),bottom:Math.min(t.top+t.height+m,(($=u==null?void 0:u.offsetTop)!==null&&$!==void 0?$:0)+((y=u==null?void 0:u.height)!==null&&y!==void 0?y:0))};var P,w,R,I;return l!=="top"?Math.max(0,x.bottom-h-(((P=o.top)!==null&&P!==void 0?P:0)+((w=o.bottom)!==null&&w!==void 0?w:0)+i)):Math.max(0,h+a-x.top-(((R=o.top)!==null&&R!==void 0?R:0)+((I=o.bottom)!==null&&I!==void 0?I:0)+i))}function on(e,t,r,n,o,i,a,l){let{placement:s,axis:c,size:u}=i;var b,p;if(s===c)return Math.max(0,r[c]-((b=a.scroll[c])!==null&&b!==void 0?b:0)-(e[c]+(l?t[c]:0))-((p=n[c])!==null&&p!==void 0?p:0)-n[Et[c]]-o);var h,m;return Math.max(0,e[u]+e[c]+(l?t[c]:0)-r[c]-r[u]+((h=a.scroll[c])!==null&&h!==void 0?h:0)-((m=n[c])!==null&&m!==void 0?m:0)-n[Et[c]]-o)}function xl(e,t,r,n,o,i,a,l,s,c,u,b,p,h,m,g,$,y){let x=nn(e),{size:P,crossAxis:w,crossSize:R,placement:I,crossPlacement:M}=x,E=Gt(t,l,r,x,u,b,c,p,m,g,s),F=u,A=on(l,c,t,o,i+u,x,s,$);if(a&&r[P]>A){let ce=nn(`${Et[I]} ${M}`),ve=Gt(t,l,r,ce,u,b,c,p,m,g,s);on(l,c,t,o,i+u,ce,s,$)>A&&(x=ce,E=ve,F=u)}let J="bottom";x.axis==="top"?x.placement==="top"?J="top":x.placement==="bottom"&&(J="bottom"):x.crossAxis==="top"&&(x.crossPlacement==="top"?J="bottom":x.crossPlacement==="bottom"&&(J="top"));let z=rn(w,E[w],r[R],l,s,i,c);E[w]+=z;let B=yl(E,l,c,p,o,i,r.height,J,s,$,y);h&&h<B&&(B=h),r.height=Math.min(r.height,B),E=Gt(t,l,r,x,F,b,c,p,m,g,s),z=rn(w,E[w],r[R],l,s,i,c),E[w]+=z;let Y={},X=t[w]-E[w]-o[ue[w]],W=X+.5*t[R];const te=m/2+g;var N,ne,f,C;const v=ue[w]==="left"?((N=o.left)!==null&&N!==void 0?N:0)+((ne=o.right)!==null&&ne!==void 0?ne:0):((f=o.top)!==null&&f!==void 0?f:0)+((C=o.bottom)!==null&&C!==void 0?C:0),T=r[R]-v-m/2-g,L=t[w]+m/2-(E[w]+o[ue[w]]),O=t[w]+t[R]-m/2-(E[w]+o[ue[w]]),de=ir(W,L,O);Y[w]=ir(de,te,T),{placement:I,crossPlacement:M}=x,m?X=Y[w]:M==="right"?X+=t[R]:M==="center"&&(X+=t[R]/2);let G=I==="left"||I==="top"?r[P]:0,we={x:I==="top"||I==="bottom"?X:G,y:I==="left"||I==="right"?X:G};return{position:E,maxHeight:B,arrowOffsetLeft:Y.left,arrowOffsetTop:Y.top,placement:I,triggerAnchorPoint:we}}function El(e){let{placement:t,targetNode:r,overlayNode:n,scrollNode:o,padding:i,shouldFlip:a,boundaryElement:l,offset:s,crossOffset:c,maxHeight:u,arrowSize:b=0,arrowBoundaryOffset:p=0}=e,h=gl(),m=n instanceof HTMLElement?wl(n):document.documentElement,g=m===document.documentElement;const $=window.getComputedStyle(m).position;let y=!!$&&$!=="static",x=g?Qe(r,!1):an(r,m,!1);if(!g){let{marginTop:Y,marginLeft:X}=window.getComputedStyle(r);x.top+=parseInt(Y,10)||0,x.left+=parseInt(X,10)||0}let P=Qe(n,!0),w=$l(n);var R,I;P.width+=((R=w.left)!==null&&R!==void 0?R:0)+((I=w.right)!==null&&I!==void 0?I:0);var M,E;P.height+=((M=w.top)!==null&&M!==void 0?M:0)+((E=w.bottom)!==null&&E!==void 0?E:0);let F=hl(o),A=tn(l,h),J=tn(m,h),z=an(l,m,!1),B=l.contains(m);return xl(t,x,P,F,w,i,a,A,J,z,s,c,y,u,b,p,B,h)}function Lr(e,t){let{top:r,left:n,width:o,height:i}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(o=e.offsetWidth,i=e.offsetHeight),{top:r,left:n,width:o,height:i}}function Qe(e,t){let{top:r,left:n,width:o,height:i}=Lr(e,t),{scrollTop:a,scrollLeft:l,clientTop:s,clientLeft:c}=document.documentElement;return{top:r+a-s,left:n+l-c,width:o,height:i}}function an(e,t,r){let n=window.getComputedStyle(e),o;if(n.position==="fixed")o=Lr(e,r);else{o=Qe(e,r);let i=Qe(t,r),a=window.getComputedStyle(t);i.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(a.borderLeftWidth,10)||0)-t.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 wl(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!ln(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!ln(t);)t=t.parentElement;return t||document.documentElement}function ln(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const io=new WeakMap;function Pl(e){let{triggerRef:t,isOpen:r,onClose:n}=e;d.useEffect(()=>{if(!r||n===null)return;let o=i=>{let a=i.target;if(!t.current||a instanceof Node&&!a.contains(t.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let l=n||io.get(t.current);l&&l()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,n,t])}const Cl=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Tl=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Sl(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 Cl.has(r.script)}let t=e.split("-")[0];return Tl.has(t)}const ao=Symbol.for("react-aria.i18n.locale");function lo(){let e=typeof window<"u"&&window[ao]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Sl(e)?"rtl":"ltr"}}let sr=lo(),qe=new Set;function sn(){sr=lo();for(let e of qe)e(sr)}function kl(){let e=Er(),[t,r]=d.useState(sr);return d.useEffect(()=>(qe.size===0&&window.addEventListener("languagechange",sn),qe.add(r),()=>{qe.delete(r),qe.size===0&&window.removeEventListener("languagechange",sn)}),[]),e?{locale:typeof window<"u"&&window[ao]||"en-US",direction:"ltr"}:t}const Nl=d.createContext(null);function Rr(){let e=kl();return d.useContext(Nl)||e}const Ll=Symbol.for("react-aria.i18n.locale"),Rl=Symbol.for("react-aria.i18n.strings");let Oe;class Ot{getStringForLocale(t,r){let o=this.getStringsForLocale(r)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${r} locale`);return o}getStringsForLocale(t){let r=this.strings[t];return r||(r=Il(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[Ll];if(Oe===void 0){let o=window[Rl];if(!o)return null;Oe={};for(let i in o)Oe[i]=new Ot({[r]:o[i]},r)}let n=Oe==null?void 0:Oe[t];if(!n)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(t,r="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,n])=>n)),this.defaultLocale=r}}function Il(e,t,r="en-US"){if(t[e])return t[e];let n=Ml(e);if(t[n])return t[n];for(let o in t)if(o.startsWith(n+"-"))return t[o];return t[r]}function Ml(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const dn=new Map,cn=new Map;class Fl{format(t,r){let n=this.strings.getStringForLocale(t,this.locale);return typeof n=="function"?n(r,this):n}plural(t,r,n="cardinal"){let o=r["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+n,a=dn.get(i);a||(a=new Intl.PluralRules(this.locale,{type:n}),dn.set(i,a));let l=a.select(t);return o=r[l]||r.other,typeof o=="function"?o():o}number(t){let r=cn.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),cn.set(this.locale,r)),r.format(t)}select(t,r){let n=t[r]||t.other;return typeof n=="function"?n():n}constructor(t,r){this.locale=t,this.strings=r}}const un=new WeakMap;function Dl(e){let t=un.get(e);return t||(t=new Ot(e),un.set(e,t)),t}function Ol(e,t){return t&&Ot.getGlobalDictionaryForPackage(t)||Dl(e)}function so(e,t){let{locale:r}=Rr(),n=Ol(e,t);return d.useMemo(()=>new Fl(r,n),[r,n])}function Al(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _l(e,t,r){Al(e,t),t.set(e,r)}let Z=typeof document<"u"?window.visualViewport:null;function Vl(e){let{direction:t}=Rr(),{arrowSize:r,targetRef:n,overlayRef:o,arrowRef:i,scrollRef:a=o,placement:l="bottom",containerPadding:s=12,shouldFlip:c=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:b=0,crossOffset:p=0,shouldUpdatePosition:h=!0,isOpen:m=!0,onClose:g,maxHeight:$,arrowBoundaryOffset:y=0}=e,[x,P]=d.useState(null),w=[h,l,o.current,n.current,i==null?void 0:i.current,a.current,s,c,u,b,p,m,t,$,y,r],R=d.useRef(Z==null?void 0:Z.scale);d.useEffect(()=>{m&&(R.current=Z==null?void 0:Z.scale)},[m]);let I=d.useCallback(()=>{if(h===!1||!m||!o.current||!n.current||!u||(Z==null?void 0:Z.scale)!==R.current)return;let z=null;if(a.current&&a.current.contains(document.activeElement)){var B;let f=(B=document.activeElement)===null||B===void 0?void 0:B.getBoundingClientRect(),C=a.current.getBoundingClientRect();var Y;if(z={type:"top",offset:((Y=f==null?void 0:f.top)!==null&&Y!==void 0?Y:0)-C.top},z.offset>C.height/2){z.type="bottom";var X;z.offset=((X=f==null?void 0:f.bottom)!==null&&X!==void 0?X:0)-C.bottom}}let W=o.current;if(!$&&o.current){var te;W.style.top="0px",W.style.bottom="";var N;W.style.maxHeight=((N=(te=window.visualViewport)===null||te===void 0?void 0:te.height)!==null&&N!==void 0?N:window.innerHeight)+"px"}let ne=El({placement:zl(l,t),overlayNode:o.current,targetNode:n.current,scrollNode:a.current||o.current,padding:s,shouldFlip:c,boundaryElement:u,offset:b,crossOffset:p,maxHeight:$,arrowSize:r??(i!=null&&i.current?Lr(i.current,!0).width:0),arrowBoundaryOffset:y});if(ne.position){if(W.style.top="",W.style.bottom="",W.style.left="",W.style.right="",Object.keys(ne.position).forEach(f=>W.style[f]=ne.position[f]+"px"),W.style.maxHeight=ne.maxHeight!=null?ne.maxHeight+"px":"",z&&document.activeElement&&a.current){let f=document.activeElement.getBoundingClientRect(),C=a.current.getBoundingClientRect(),v=f[z.type]-C[z.type];a.current.scrollTop+=v-z.offset}P(ne)}},w);K(I,w),Hl(I),rr({ref:o,onResize:I}),rr({ref:n,onResize:I});let M=d.useRef(!1);K(()=>{let z,B=()=>{M.current=!0,clearTimeout(z),z=setTimeout(()=>{M.current=!1},500),I()},Y=()=>{M.current&&B()};return Z==null||Z.addEventListener("resize",B),Z==null||Z.addEventListener("scroll",Y),()=>{Z==null||Z.removeEventListener("resize",B),Z==null||Z.removeEventListener("scroll",Y)}},[I]);let E=d.useCallback(()=>{M.current||g==null||g()},[g,M]);Pl({triggerRef:n,isOpen:m,onClose:g&&E});var F,A,J;return{overlayProps:{style:{position:x?"absolute":"fixed",top:x?void 0:0,left:x?void 0:0,zIndex:1e5,...x==null?void 0:x.position,maxHeight:(F=x==null?void 0:x.maxHeight)!==null&&F!==void 0?F:"100vh"}},placement:(A=x==null?void 0:x.placement)!==null&&A!==void 0?A:null,triggerAnchorPoint:(J=x==null?void 0:x.triggerAnchorPoint)!==null&&J!==void 0?J:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:x==null?void 0:x.arrowOffsetLeft,top:x==null?void 0:x.arrowOffsetTop}},updatePosition:I}}function Hl(e){K(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function zl(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function Ir(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function co(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function uo(e){let t=d.useRef({isFocused:!1,observer:null});return K(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),d.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r.target,o=i=>{if(t.current.isFocused=!1,n.disabled){let a=Ir(i);e==null||e(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let a=n===document.activeElement?null:document.activeElement;n.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let wt=!1;function fn(e){for(;e&&!eo(e);)e=e.parentElement;let t=ie(e),r=t.document.activeElement;if(!r||r===e)return;wt=!0;let n=!1,o=u=>{(u.target===r||n)&&u.stopImmediatePropagation()},i=u=>{(u.target===r||n)&&(u.stopImmediatePropagation(),!e&&!n&&(n=!0,ze(r),s()))},a=u=>{(u.target===e||n)&&u.stopImmediatePropagation()},l=u=>{(u.target===e||n)&&(u.stopImmediatePropagation(),n||(n=!0,ze(r),s()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",l,!0),t.addEventListener("focus",a,!0);let s=()=>{cancelAnimationFrame(c),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",l,!0),t.removeEventListener("focus",a,!0),wt=!1,n=!1},c=requestAnimationFrame(s);return s}let Ve="default",dr="",$t=new WeakMap;function bn(e){if(It()){if(Ve==="default"){const t=V(e);dr=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ve="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";$t.set(e,e.style[t]),e.style[t]="none"}}function Wt(e){if(It()){if(Ve!=="disabled")return;Ve="restoring",setTimeout(()=>{Yn(()=>{if(Ve==="restoring"){const t=V(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=dr||""),dr="",Ve="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&$t.has(e)){let t=$t.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),$t.delete(e)}}const et=d.createContext({register:()=>{}});et.displayName="PressResponderContext";function Bl(e,t){return t.get?t.get.call(e):t.value}function fo(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function Kl(e,t){var r=fo(e,t,"get");return Bl(e,r)}function jl(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function vn(e,t,r){var n=fo(e,t,"set");return jl(e,n,r),r}function Gl(e){let t=d.useContext(et);if(t){let{register:r,...n}=t;e=q(n,e),r()}return Sr(t,e.ref),e}var ct=new WeakMap;class ut{continuePropagation(){vn(this,ct,!1)}get shouldStopPropagation(){return Kl(this,ct)}constructor(t,r,n,o){_l(this,ct,{writable:!0,value:void 0}),vn(this,ct,!0);var i;let a=(i=o==null?void 0:o.target)!==null&&i!==void 0?i:n.currentTarget;const l=a==null?void 0:a.getBoundingClientRect();let s,c=0,u,b=null;n.clientX!=null&&n.clientY!=null&&(u=n.clientX,b=n.clientY),l&&(u!=null&&b!=null?(s=u-l.left,c=b-l.top):(s=l.width/2,c=l.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=s,this.y=c}}const pn=Symbol("linkClicked"),mn="react-aria-pressable-style",gn="data-react-aria-pressable";function Pt(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,onClick:a,isDisabled:l,isPressed:s,preventFocusOnPress:c,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:b,ref:p,...h}=Gl(e),[m,g]=d.useState(!1),$=d.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:y,removeAllGlobalListeners:x,removeGlobalListener:P}=Cr(),w=d.useCallback((f,C)=>{let v=$.current;if(l||v.didFirePressStart)return!1;let T=!0;if(v.isTriggeringEvent=!0,n){let L=new ut("pressstart",C,f);n(L),T=L.shouldStopPropagation}return r&&r(!0),v.isTriggeringEvent=!1,v.didFirePressStart=!0,g(!0),T},[l,n,r]),R=d.useCallback((f,C,v=!0)=>{let T=$.current;if(!T.didFirePressStart)return!1;T.didFirePressStart=!1,T.isTriggeringEvent=!0;let L=!0;if(o){let O=new ut("pressend",C,f);o(O),L=O.shouldStopPropagation}if(r&&r(!1),g(!1),t&&v&&!l){let O=new ut("press",C,f);t(O),L&&(L=O.shouldStopPropagation)}return T.isTriggeringEvent=!1,L},[l,o,r,t]),I=pe(R),M=d.useCallback((f,C)=>{let v=$.current;if(l)return!1;if(i){v.isTriggeringEvent=!0;let T=new ut("pressup",C,f);return i(T),v.isTriggeringEvent=!1,T.shouldStopPropagation}return!0},[l,i]),E=pe(M),F=d.useCallback(f=>{let C=$.current;if(C.isPressed&&C.target){C.didFirePressStart&&C.pointerType!=null&&R(Le(C.target,f),C.pointerType,!1),C.isPressed=!1,N(null),C.isOverTarget=!1,C.activePointerId=null,C.pointerType=null,x(),b||Wt(C.target);for(let v of C.disposables)v();C.disposables=[]}},[b,x,R]),A=pe(F),J=d.useCallback(f=>{u&&F(f)},[u,F]),z=d.useCallback(f=>{l||a==null||a(f)},[l,a]),B=d.useCallback((f,C)=>{if(!l&&a){let v=new MouseEvent("click",f);co(v,C),a(Ir(v))}},[l,a]),Y=pe(B),[X,W]=d.useState(!1);K(()=>{let f=$.current;if(X){let C=O=>{var de;if(f.isPressed&&f.target&&Ut(O,f.target)){var G;yn(H(O),O.key)&&O.preventDefault();let ce=H(O),ve=U(f.target,H(O));I(Le(f.target,O),"keyboard",ve),ve&&Y(O,f.target),x(),O.key!=="Enter"&&Mr(f.target)&&U(f.target,ce)&&!O[pn]&&(O[pn]=!0,Me(f.target,O,!1)),f.isPressed=!1,W(!1),(G=f.metaKeyEvents)===null||G===void 0||G.delete(O.key)}else if(O.key==="Meta"&&(!((de=f.metaKeyEvents)===null||de===void 0)&&de.size)){var we;let ce=f.metaKeyEvents;f.metaKeyEvents=void 0;for(let ve of ce.values())(we=f.target)===null||we===void 0||we.dispatchEvent(new KeyboardEvent("keyup",ve))}},v=f.target,L=rt(O=>{v&&Ut(O,v)&&!O.repeat&&U(v,H(O))&&f.target&&E(Le(f.target,O),"keyboard")},C);return y(V(f.target),"keyup",L,!0),()=>{P(V(f.target),"keyup",L,!0)}}},[X,y,x,P]);let[te,N]=d.useState(null);K(()=>{let f=$.current;if(te==="pointer"){let C=T=>{if(T.pointerId===f.activePointerId&&f.isPressed&&T.button===0&&f.target){if(U(f.target,H(T))&&f.pointerType!=null){let L=!1,O=setTimeout(()=>{f.isPressed&&f.target instanceof HTMLElement&&(L?A(T):(ze(f.target),f.target.click()))},80);y(T.currentTarget,"click",()=>L=!0,!0),f.disposables.push(()=>clearTimeout(O))}else A(T);f.isOverTarget=!1}},v=T=>{A(T)};return y(V(f.target),"pointerup",C,!1),y(V(f.target),"pointercancel",v,!1),()=>{P(V(f.target),"pointerup",C,!1),P(V(f.target),"pointercancel",v,!1)}}else if(te==="mouse"&&process.env.NODE_ENV==="test"){let C=v=>{if(v.button===0){if(f.ignoreEmulatedMouseEvents){f.ignoreEmulatedMouseEvents=!1;return}f.target&&f.target.contains(v.target)&&f.pointerType!=null||A(v),f.isOverTarget=!1}};return y(V(f.target),"mouseup",C,!1),()=>{P(V(f.target),"mouseup",C,!1)}}else if(te==="touch"&&process.env.NODE_ENV==="test"){let C=v=>{f.isPressed&&U(H(v),f.target)&&A({currentTarget:f.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};return y(ie(f.target),"scroll",C,!0),()=>{P(ie(f.target),"scroll",C,!0)}}},[te,y,P]);let ne=d.useMemo(()=>{let f=$.current,C={onKeyDown(v){if(Ut(v.nativeEvent,v.currentTarget)&&U(v.currentTarget,H(v.nativeEvent))){var T;yn(H(v.nativeEvent),v.key)&&v.preventDefault();let L=!0;!f.isPressed&&!v.repeat&&(f.target=v.currentTarget,f.isPressed=!0,W(!0),f.pointerType="keyboard",L=w(v,"keyboard")),L&&v.stopPropagation(),v.metaKey&&Be()&&((T=f.metaKeyEvents)===null||T===void 0||T.set(v.key,v.nativeEvent))}else v.key==="Meta"&&(f.metaKeyEvents=new Map)},onClick(v){if(!(v&&!U(v.currentTarget,H(v.nativeEvent)))&&v&&v.button===0&&!f.isTriggeringEvent&&!Me.isOpening){let T=!0;if(l&&v.preventDefault(),!f.ignoreEmulatedMouseEvents&&!f.isPressed&&(f.pointerType==="virtual"||or(v.nativeEvent))){let L=w(v,"virtual"),O=M(v,"virtual"),de=R(v,"virtual");z(v),T=L&&O&&de}else if(f.isPressed&&f.pointerType!=="keyboard"){let L=f.pointerType||v.nativeEvent.pointerType||"virtual",O=M(Le(v.currentTarget,v),L),de=R(Le(v.currentTarget,v),L,!0);T=O&&de,f.isOverTarget=!1,z(v),F(v)}f.ignoreEmulatedMouseEvents=!1,T&&v.stopPropagation()}}};return typeof PointerEvent<"u"?(C.onPointerDown=v=>{if(v.button!==0||!U(v.currentTarget,H(v.nativeEvent)))return;if(il(v.nativeEvent)){f.pointerType="virtual";return}f.pointerType=v.pointerType;let T=!0;if(!f.isPressed){f.isPressed=!0,N("pointer"),f.isOverTarget=!0,f.activePointerId=v.pointerId,f.target=v.currentTarget,b||bn(f.target),T=w(v,f.pointerType);let L=H(v.nativeEvent);"releasePointerCapture"in L&&L.releasePointerCapture(v.pointerId)}T&&v.stopPropagation()},C.onMouseDown=v=>{if(U(v.currentTarget,H(v.nativeEvent))&&v.button===0){if(c){let T=fn(v.target);T&&f.disposables.push(T)}v.stopPropagation()}},C.onPointerUp=v=>{!U(v.currentTarget,H(v.nativeEvent))||f.pointerType==="virtual"||v.button===0&&!f.isPressed&&M(v,f.pointerType||v.pointerType)},C.onPointerEnter=v=>{v.pointerId===f.activePointerId&&f.target&&!f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!0,w(Le(f.target,v),f.pointerType))},C.onPointerLeave=v=>{v.pointerId===f.activePointerId&&f.target&&f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!1,R(Le(f.target,v),f.pointerType,!1),J(v))},C.onDragStart=v=>{U(v.currentTarget,H(v.nativeEvent))&&F(v)}):process.env.NODE_ENV==="test"&&(C.onMouseDown=v=>{if(v.button!==0||!U(v.currentTarget,H(v.nativeEvent)))return;if(f.ignoreEmulatedMouseEvents){v.stopPropagation();return}if(f.isPressed=!0,N("mouse"),f.isOverTarget=!0,f.target=v.currentTarget,f.pointerType=or(v.nativeEvent)?"virtual":"mouse",$r.flushSync(()=>w(v,f.pointerType))&&v.stopPropagation(),c){let L=fn(v.target);L&&f.disposables.push(L)}},C.onMouseEnter=v=>{if(!U(v.currentTarget,H(v.nativeEvent)))return;let T=!0;f.isPressed&&!f.ignoreEmulatedMouseEvents&&f.pointerType!=null&&(f.isOverTarget=!0,T=w(v,f.pointerType)),T&&v.stopPropagation()},C.onMouseLeave=v=>{if(!U(v.currentTarget,H(v.nativeEvent)))return;let T=!0;f.isPressed&&!f.ignoreEmulatedMouseEvents&&f.pointerType!=null&&(f.isOverTarget=!1,T=R(v,f.pointerType,!1),J(v)),T&&v.stopPropagation()},C.onMouseUp=v=>{U(v.currentTarget,H(v.nativeEvent))&&!f.ignoreEmulatedMouseEvents&&v.button===0&&!f.isPressed&&M(v,f.pointerType||"mouse")},C.onTouchStart=v=>{if(!U(v.currentTarget,H(v.nativeEvent)))return;let T=Wl(v.nativeEvent);if(!T)return;f.activePointerId=T.identifier,f.ignoreEmulatedMouseEvents=!0,f.isOverTarget=!0,f.isPressed=!0,N("touch"),f.target=v.currentTarget,f.pointerType="touch",b||bn(f.target),w(Pe(f.target,v),f.pointerType)&&v.stopPropagation()},C.onTouchMove=v=>{if(!U(v.currentTarget,H(v.nativeEvent)))return;if(!f.isPressed){v.stopPropagation();return}let T=hn(v.nativeEvent,f.activePointerId),L=!0;T&&$n(T,v.currentTarget)?!f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!0,L=w(Pe(f.target,v),f.pointerType)):f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!1,L=R(Pe(f.target,v),f.pointerType,!1),J(Pe(f.target,v))),L&&v.stopPropagation()},C.onTouchEnd=v=>{if(!U(v.currentTarget,H(v.nativeEvent)))return;if(!f.isPressed){v.stopPropagation();return}let T=hn(v.nativeEvent,f.activePointerId),L=!0;T&&$n(T,v.currentTarget)&&f.pointerType!=null?(M(Pe(f.target,v),f.pointerType),L=R(Pe(f.target,v),f.pointerType),B(v.nativeEvent,f.target)):f.isOverTarget&&f.pointerType!=null&&(L=R(Pe(f.target,v),f.pointerType,!1)),L&&v.stopPropagation(),f.isPressed=!1,N(null),f.activePointerId=null,f.isOverTarget=!1,f.ignoreEmulatedMouseEvents=!0,f.target&&!b&&Wt(f.target),x()},C.onTouchCancel=v=>{U(v.currentTarget,H(v.nativeEvent))&&(v.stopPropagation(),f.isPressed&&F(Pe(f.target,v)))},C.onDragStart=v=>{U(v.currentTarget,H(v.nativeEvent))&&F(v)}),C},[l,c,x,b,F,J,R,w,M,z,B]);return d.useEffect(()=>{if(!p||process.env.NODE_ENV==="test")return;const f=V(p.current);if(!f||!f.head||f.getElementById(mn))return;const C=f.createElement("style");C.id=mn,C.textContent=`
|
|
3
2
|
@layer {
|
|
4
|
-
[${
|
|
3
|
+
[${gn}] {
|
|
5
4
|
touch-action: pan-x pan-y pinch-zoom;
|
|
6
5
|
}
|
|
7
6
|
}
|
|
8
|
-
`.trim(),s.head.prepend(v)},[T]),u.useEffect(()=>{let s=E.current;return()=>{var v;h||Ye((v=s.target)!==null&&v!==void 0?v:void 0);for(let a of s.disposables)a();s.disposables=[]}},[h]),{isPressed:c||L,pressProps:oe(C,Se,{[St]:!0})}}function ft(e){return e.tagName==="A"&&e.hasAttribute("href")}function Xe(e,t){const{key:r,code:n}=e,o=t,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof G(o).HTMLInputElement&&!tr(o,r)||o instanceof G(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&ft(o))&&r!=="Enter")}function En(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Ct(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===t)return o}return null}function te(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 ie(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}}function xn(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 Pn(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Lt(e,t){let r=t.getBoundingClientRect(),n=xn(e);return Pn(r,n)}function kn(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!ft(e)}function Mt(e,t){return e instanceof HTMLInputElement?!tr(e,t):kn(e)}const Tn=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function tr(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Tn.has(e.type)}let he=null,tt=new Set,ke=new Map,ce=!1,rt=!1;const Sn={Tab:!0,Escape:!0};function pt(e,t){for(let r of tt)r(e,t)}function Cn(e){return!(e.metaKey||!ve()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ge(e){ce=!0,!le.isOpening&&Cn(e)&&(he="keyboard",pt("keyboard",e))}function W(e){he="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(ce=!0,pt("pointer",e))}function rr(e){!le.isOpening&&Ze(e)&&(ce=!0,he="virtual")}function nr(e){e.target===window||e.target===document||ze||!e.isTrusted||(!ce&&!rt&&(he="virtual",pt("virtual",e)),ce=!1,rt=!1)}function or(){ze||(ce=!1,rt=!0)}function nt(e){if(typeof window>"u"||typeof document>"u"||ke.get(G(e)))return;const t=G(e),r=N(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ce=!0,n.apply(this,arguments)},r.addEventListener("keydown",Ge,!0),r.addEventListener("keyup",Ge,!0),r.addEventListener("click",rr,!0),t.addEventListener("focus",nr,!0),t.addEventListener("blur",or,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",W,!0),r.addEventListener("pointermove",W,!0),r.addEventListener("pointerup",W,!0)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",W,!0),r.addEventListener("mousemove",W,!0),r.addEventListener("mouseup",W,!0)),t.addEventListener("beforeunload",()=>{sr(e)},{once:!0}),ke.set(t,{focus:n})}const sr=(e,t)=>{const r=G(e),n=N(e);t&&n.removeEventListener("DOMContentLoaded",t),ke.has(r)&&(r.HTMLElement.prototype.focus=ke.get(r).focus,n.removeEventListener("keydown",Ge,!0),n.removeEventListener("keyup",Ge,!0),n.removeEventListener("click",rr,!0),r.removeEventListener("focus",nr,!0),r.removeEventListener("blur",or,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",W,!0),n.removeEventListener("pointermove",W,!0),n.removeEventListener("pointerup",W,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",W,!0),n.removeEventListener("mousemove",W,!0),n.removeEventListener("mouseup",W,!0)),ke.delete(r))};function Ln(e){const t=N(e);let r;return t.readyState!=="loading"?nt(e):(r=()=>{nt(e)},t.addEventListener("DOMContentLoaded",r)),()=>sr(e,r)}typeof document<"u"&&Ln();function ir(){return he!=="pointer"}function Mn(){return he}const An=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function In(e,t,r){let n=N(r==null?void 0:r.target);const o=typeof window<"u"?G(r==null?void 0:r.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?G(r==null?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,l=typeof window<"u"?G(r==null?void 0:r.target).HTMLElement:HTMLElement,d=typeof window<"u"?G(r==null?void 0:r.target).KeyboardEvent:KeyboardEvent;return e=e||n.activeElement instanceof o&&!An.has(n.activeElement.type)||n.activeElement instanceof i||n.activeElement instanceof l&&n.activeElement.isContentEditable,!(e&&t==="keyboard"&&r instanceof d&&!Sn[r.key])}function On(e,t,r){nt(),u.useEffect(()=>{let n=(o,i)=>{In(!!(r!=null&&r.isTextInput),o,i)&&e(ir())};return tt.add(n),()=>{tt.delete(n)}},t)}function Fn(e){const t=N(e);if(Mn()==="virtual"){let r=Te(t);Ut(()=>{const n=Te(t);(n===r||n===t.body)&&e.isConnected&&ge(e)})}else ge(e)}function ar(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const i=u.useCallback(c=>{if(c.target===c.currentTarget)return n&&n(c),o&&o(!1),!0},[n,o]),l=Qt(i),d=u.useCallback(c=>{const f=N(c.target),p=f?Te(f):Te();c.target===c.currentTarget&&p===M(c.nativeEvent)&&(r&&r(c),o&&o(!0),l(c))},[o,r,l]);return{focusProps:{onFocus:!t&&(r||o||n)?d:void 0,onBlur:!t&&(n||o)?i:void 0}}}function At(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 Nn(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:At(e.onKeyDown),onKeyUp:At(e.onKeyUp)}}}let Dn=u.createContext(null);function Rn(e){let t=u.useContext(Dn)||{};Bt(t,e);let{ref:r,...n}=t;return n}function Vn(e,t){let{focusProps:r}=ar(e),{keyboardProps:n}=Nn(e),o=oe(r,n),i=Rn(t),l=e.isDisabled?{}:i,d=u.useRef(e.autoFocus);u.useEffect(()=>{d.current&&t.current&&Fn(t.current),d.current=!1},[t]);let c=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(c=void 0),{focusableProps:oe({...o,tabIndex:c},l)}}function Kn(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,i=u.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:d}=dt(),c=u.useCallback(h=>{h.currentTarget.contains(h.target)&&i.current.isFocusWithin&&!h.currentTarget.contains(h.relatedTarget)&&(i.current.isFocusWithin=!1,d(),r&&r(h),o&&o(!1))},[r,o,i,d]),f=Qt(c),p=u.useCallback(h=>{if(!h.currentTarget.contains(h.target))return;const T=N(h.target),C=Te(T);if(!i.current.isFocusWithin&&C===M(h.nativeEvent)){n&&n(h),o&&o(!0),i.current.isFocusWithin=!0,f(h);let L=h.currentTarget;l(T,"focus",w=>{if(i.current.isFocusWithin&&!I(L,w.target)){let E=new T.defaultView.FocusEvent("blur",{relatedTarget:w.target});Jt(E,L);let S=ut(E);c(S)}},{capture:!0})}},[n,o,f,l,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:p,onBlur:c}}}let He=!1,Oe=0;function ot(){He=!0,setTimeout(()=>{He=!1},50)}function It(e){e.pointerType==="touch"&&ot()}function zn(){if(!(typeof document>"u"))return Oe===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",It):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",ot)),Oe++,()=>{Oe--,!(Oe>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",It):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",ot))}}function Gn(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[i,l]=u.useState(!1),d=u.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;u.useEffect(zn,[]);let{addGlobalListener:c,removeAllGlobalListeners:f}=dt(),{hoverProps:p,triggerHoverEnd:h}=u.useMemo(()=>{let T=(w,E)=>{if(d.pointerType=E,o||E==="touch"||d.isHovered||!w.currentTarget.contains(w.target))return;d.isHovered=!0;let S=w.currentTarget;d.target=S,c(N(w.target),"pointerover",O=>{d.isHovered&&d.target&&!I(d.target,O.target)&&C(O,O.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:S,pointerType:E}),r&&r(!0),l(!0)},C=(w,E)=>{let S=d.target;d.pointerType="",d.target=null,!(E==="touch"||!d.isHovered||!S)&&(d.isHovered=!1,f(),n&&n({type:"hoverend",target:S,pointerType:E}),r&&r(!1),l(!1))},L={};return typeof PointerEvent<"u"?(L.onPointerEnter=w=>{He&&w.pointerType==="mouse"||T(w,w.pointerType)},L.onPointerLeave=w=>{!o&&w.currentTarget.contains(w.target)&&C(w,w.pointerType)}):process.env.NODE_ENV==="test"&&(L.onTouchStart=()=>{d.ignoreEmulatedMouseEvents=!0},L.onMouseEnter=w=>{!d.ignoreEmulatedMouseEvents&&!He&&T(w,"mouse"),d.ignoreEmulatedMouseEvents=!1},L.onMouseLeave=w=>{!o&&w.currentTarget.contains(w.target)&&C(w,"mouse")}),{hoverProps:L,triggerHoverEnd:C}},[t,r,n,o,d,c,f]);return u.useEffect(()=>{o&&h({currentTarget:d.target},d.pointerType)},[o]),{hoverProps:p,isHovered:i}}function Hn(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=u.useRef({isFocused:!1,isFocusVisible:t||ir()}),[i,l]=u.useState(!1),[d,c]=u.useState(()=>o.current.isFocused&&o.current.isFocusVisible),f=u.useCallback(()=>c(o.current.isFocused&&o.current.isFocusVisible),[]),p=u.useCallback(C=>{o.current.isFocused=C,l(C),f()},[f]);On(C=>{o.current.isFocusVisible=C,f()},[],{isTextInput:r});let{focusProps:h}=ar({isDisabled:n,onFocusChange:p}),{focusWithinProps:T}=Kn({isDisabled:!n,onFocusWithinChange:p});return{isFocused:i,isFocusVisible:d,focusProps:n?T:h}}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const _n=u.createContext(!1);function Wn(e){let t=(r,n)=>u.useContext(_n)?null:e(r,n);return t.displayName=e.displayName||e.name,u.forwardRef(t)}function jn(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:l,onPressUp:d,onPressChange:c,preventFocusOnPress:f,allowFocusWhenDisabled:p,onClick:h,href:T,target:C,rel:L,type:w="button"}=e,E;r==="button"?E={type:w,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?T:void 0,target:r==="a"?C:void 0,type:r==="input"?w:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?L:void 0};let{pressProps:S,isPressed:O}=wn({onPressStart:i,onPressEnd:l,onPressChange:c,onPress:o,onPressUp:d,onClick:h,isDisabled:n,preventFocusOnPress:f,ref:t}),{focusableProps:F}=Vn(e,t);p&&(F.tabIndex=n?-1:F.tabIndex);let R=oe(F,S,_t(e,{labelable:!0}));return{isPressed:O,buttonProps:oe(E,R,{"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"]})}}const Un=u.createContext(null),Bn=u.createContext({}),Yn=Wn(function(t,r){[t,r]=pn(t,r,Bn);let n=t,{isPending:o}=n,{buttonProps:i,isPressed:l}=jn(t,r);i=Xn(i,o);let{focusProps:d,isFocused:c,isFocusVisible:f}=Hn(t),{hoverProps:p,isHovered:h}=Gn({...t,isDisabled:t.isDisabled||o}),T={isHovered:h,isPressed:(n.isPressed||l)&&!o,isFocused:c,isFocusVisible:f,isDisabled:t.isDisabled||!1,isPending:o??!1},C=dn({...t,values:T,defaultClassName:"react-aria-Button"}),L=vt(i.id),w=vt(),E=i["aria-labelledby"];o&&(E?E=`${E} ${w}`:i["aria-label"]&&(E=`${L} ${w}`));let S=u.useRef(o);u.useEffect(()=>{let F={"aria-labelledby":E||L};(!S.current&&c&&o||S.current&&c&&!o)&&wt(F,"assertive"),S.current=o},[o,c,E,L]);let O=_t(t,{global:!0});return delete O.onClick,u.createElement("button",{...oe(O,C,i,d,p),type:i.type==="submit"&&o?"button":i.type,id:L,ref:r,"aria-labelledby":E,slot:t.slot||void 0,"aria-disabled":o?"true":i["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":T.isPressed||void 0,"data-hovered":h||void 0,"data-focused":c||void 0,"data-pending":o||void 0,"data-focus-visible":f||void 0},u.createElement(Un.Provider,{value:{id:w}},C.children))});function Xn(e,t){if(t){for(const r in e)r.startsWith("on")&&!(r.includes("Focus")||r.includes("Blur"))&&(e[r]=void 0);e.href=void 0,e.target=void 0}return e}const qn=(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},Jn=(e,t)=>({classGroupId:e,validator:t}),lr=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),_e="-",Ot=[],Qn="arbitrary..",Zn=e=>{const t=to(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return eo(l);const d=l.split(_e),c=d[0]===""&&d.length>1?1:0;return cr(d,c,t)},getConflictingClassGroupIds:(l,d)=>{if(d){const c=n[l],f=r[l];return c?f?qn(f,c):c:f||Ot}return r[l]||Ot}}},cr=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],i=r.nextPart.get(o);if(i){const f=cr(e,t+1,i);if(f)return f}const l=r.validators;if(l===null)return;const d=t===0?e.join(_e):e.slice(t).join(_e),c=l.length;for(let f=0;f<c;f++){const p=l[f];if(p.validator(d))return p.classGroupId}},eo=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?Qn+n:void 0})(),to=e=>{const{theme:t,classGroups:r}=e;return ro(r,t)},ro=(e,t)=>{const r=lr();for(const n in e){const o=e[n];bt(o,r,n,t)}return r},bt=(e,t,r,n)=>{const o=e.length;for(let i=0;i<o;i++){const l=e[i];no(l,t,r,n)}},no=(e,t,r,n)=>{if(typeof e=="string"){oo(e,t,r);return}if(typeof e=="function"){so(e,t,r,n);return}io(e,t,r,n)},oo=(e,t,r)=>{const n=e===""?t:dr(t,e);n.classGroupId=r},so=(e,t,r,n)=>{if(ao(e)){bt(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(Jn(r,e))},io=(e,t,r,n)=>{const o=Object.entries(e),i=o.length;for(let l=0;l<i;l++){const[d,c]=o[l];bt(c,dr(t,d),r,n)}},dr=(e,t)=>{let r=e;const n=t.split(_e),o=n.length;for(let i=0;i<o;i++){const l=n[i];let d=r.nextPart.get(l);d||(d=lr(),r.nextPart.set(l,d)),r=d}return r},ao=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,lo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(i,l)=>{r[i]=l,t++,t>e&&(t=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)}}},st="!",Ft=":",co=[],Nt=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),uo=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const i=[];let l=0,d=0,c=0,f;const p=o.length;for(let w=0;w<p;w++){const E=o[w];if(l===0&&d===0){if(E===Ft){i.push(o.slice(c,w)),c=w+1;continue}if(E==="/"){f=w;continue}}E==="["?l++:E==="]"?l--:E==="("?d++:E===")"&&d--}const h=i.length===0?o:o.slice(c);let T=h,C=!1;h.endsWith(st)?(T=h.slice(0,-1),C=!0):h.startsWith(st)&&(T=h.slice(1),C=!0);const L=f&&f>c?f-c:void 0;return Nt(i,C,T,L)};if(t){const o=t+Ft,i=n;n=l=>l.startsWith(o)?i(l.slice(o.length)):Nt(co,!1,l,void 0,!0)}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},fo=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let i=0;i<r.length;i++){const l=r[i],d=l[0]==="[",c=t.has(l);d||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}},po=e=>({cache:lo(e.cacheSize),parseClassName:uo(e),sortModifiers:fo(e),...Zn(e)}),bo=/\s+/,mo=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,l=[],d=e.trim().split(bo);let c="";for(let f=d.length-1;f>=0;f-=1){const p=d[f],{isExternal:h,modifiers:T,hasImportantModifier:C,baseClassName:L,maybePostfixModifierPosition:w}=r(p);if(h){c=p+(c.length>0?" "+c:c);continue}let E=!!w,S=n(E?L.substring(0,w):L);if(!S){if(!E){c=p+(c.length>0?" "+c:c);continue}if(S=n(L),!S){c=p+(c.length>0?" "+c:c);continue}E=!1}const O=T.length===0?"":T.length===1?T[0]:i(T).join(":"),F=C?O+st:O,R=F+S;if(l.indexOf(R)>-1)continue;l.push(R);const V=o(S,E);for(let B=0;B<V.length;++B){const z=V[B];l.push(F+z)}c=p+(c.length>0?" "+c:c)}return c},go=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=ur(r))&&(o&&(o+=" "),o+=n);return o},ur=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=ur(e[n]))&&(r&&(r+=" "),r+=t);return r},Dt=(e,...t)=>{let r,n,o,i;const l=c=>{const f=t.reduce((p,h)=>h(p),e());return r=po(f),n=r.cache.get,o=r.cache.set,i=d,d(c)},d=c=>{const f=n(c);if(f)return f;const p=mo(c,r);return o(c,p),p};return i=l,(...c)=>i(go(...c))},vo=[],D=e=>{const t=r=>r[e]||vo;return t.isThemeGetter=!0,t},fr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,pr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ho=/^\d+\/\d+$/,yo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$o=/\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$/,wo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Eo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fe=e=>ho.test(e),P=e=>!!e&&!Number.isNaN(Number(e)),re=e=>!!e&&Number.isInteger(Number(e)),qe=e=>e.endsWith("%")&&P(e.slice(0,-1)),q=e=>yo.test(e),Po=()=>!0,ko=e=>$o.test(e)&&!wo.test(e),br=()=>!1,To=e=>Eo.test(e),So=e=>xo.test(e),Co=e=>!m(e)&&!g(e),Lo=e=>ye(e,vr,br),m=e=>fr.test(e),ae=e=>ye(e,hr,ko),Je=e=>ye(e,Fo,P),Rt=e=>ye(e,mr,br),Mo=e=>ye(e,gr,So),Fe=e=>ye(e,yr,To),g=e=>pr.test(e),Ee=e=>$e(e,hr),Ao=e=>$e(e,No),Vt=e=>$e(e,mr),Io=e=>$e(e,vr),Oo=e=>$e(e,gr),Ne=e=>$e(e,yr,!0),ye=(e,t,r)=>{const n=fr.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},$e=(e,t,r=!1)=>{const n=pr.exec(e);return n?n[1]?t(n[1]):r:!1},mr=e=>e==="position"||e==="percentage",gr=e=>e==="image"||e==="url",vr=e=>e==="length"||e==="size"||e==="bg-size",hr=e=>e==="length",Fo=e=>e==="number",No=e=>e==="family-name",yr=e=>e==="shadow",Kt=()=>{const e=D("color"),t=D("font"),r=D("text"),n=D("font-weight"),o=D("tracking"),i=D("leading"),l=D("breakpoint"),d=D("container"),c=D("spacing"),f=D("radius"),p=D("shadow"),h=D("inset-shadow"),T=D("text-shadow"),C=D("drop-shadow"),L=D("blur"),w=D("perspective"),E=D("aspect"),S=D("ease"),O=D("animate"),F=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],V=()=>[...R(),g,m],B=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto","contain","none"],x=()=>[g,m,c],K=()=>[fe,"full","auto",...x()],Q=()=>[re,"none","subgrid",g,m],se=()=>["auto",{span:["full",re,g,m]},re,g,m],Z=()=>[re,"auto",g,m],de=()=>["auto","min","max","fr",g,m],we=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...x()],_=()=>[fe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],y=()=>[e,g,m],Se=()=>[...R(),Vt,Rt,{position:[g,m]}],s=()=>["no-repeat",{repeat:["","x","y","space","round"]}],v=()=>["auto","cover","contain",Io,Lo,{size:[g,m]}],a=()=>[qe,Ee,ae],b=()=>["","none","full",f,g,m],$=()=>["",P,Ee,ae],k=()=>["solid","dashed","dotted","double"],j=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>[P,qe,Vt,Rt],ue=()=>["","none",L,g,m],ee=()=>["none",P,g,m],X=()=>["none",P,g,m],je=()=>[P,g,m],Ce=()=>[fe,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[q],breakpoint:[q],color:[Po],container:[q],"drop-shadow":[q],ease:["in","out","in-out"],font:[Co],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[q],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[q],shadow:[q],spacing:["px",P],text:[q],"text-shadow":[q],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",fe,m,g,E]}],container:["container"],columns:[{columns:[P,m,g,d]}],"break-after":[{"break-after":F()}],"break-before":[{"break-before":F()}],"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:V()}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{start:K()}],end:[{end:K()}],top:[{top:K()}],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],visibility:["visible","invisible","collapse"],z:[{z:[re,"auto",g,m]}],basis:[{basis:[fe,"full","auto",d,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[P,fe,"auto","initial","none",m]}],grow:[{grow:["",P,g,m]}],shrink:[{shrink:["",P,g,m]}],order:[{order:[re,"first","last","none",g,m]}],"grid-cols":[{"grid-cols":Q()}],"col-start-end":[{col:se()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":Q()}],"row-start-end":[{row:se()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":de()}],"auto-rows":[{"auto-rows":de()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...we(),"normal"]}],"justify-items":[{"justify-items":[...Y(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y()]}],"align-content":[{content:["normal",...we()]}],"align-items":[{items:[...Y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y(),{baseline:["","last"]}]}],"place-content":[{"place-content":we()}],"place-items":[{"place-items":[...Y(),"baseline"]}],"place-self":[{"place-self":["auto",...Y()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:_()}],w:[{w:[d,"screen",..._()]}],"min-w":[{"min-w":[d,"screen","none",..._()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[l]},..._()]}],h:[{h:["screen","lh",..._()]}],"min-h":[{"min-h":["screen","lh","none",..._()]}],"max-h":[{"max-h":["screen","lh",..._()]}],"font-size":[{text:["base",r,Ee,ae]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,g,Je]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",qe,m]}],"font-family":[{font:[Ao,m,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:[o,g,m]}],"line-clamp":[{"line-clamp":[P,"none",g,Je]}],leading:[{leading:[i,...x()]}],"list-image":[{"list-image":["none",g,m]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",g,m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:y()}],"text-color":[{text:y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...k(),"wavy"]}],"text-decoration-thickness":[{decoration:[P,"from-font","auto",g,ae]}],"text-decoration-color":[{decoration:y()}],"underline-offset":[{"underline-offset":[P,"auto",g,m]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",g,m]}],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",g,m]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Se()}],"bg-repeat":[{bg:s()}],"bg-size":[{bg:v()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},re,g,m],radial:["",g,m],conic:[re,g,m]},Oo,Mo]}],"bg-color":[{bg:y()}],"gradient-from-pos":[{from:a()}],"gradient-via-pos":[{via:a()}],"gradient-to-pos":[{to:a()}],"gradient-from":[{from:y()}],"gradient-via":[{via:y()}],"gradient-to":[{to:y()}],rounded:[{rounded:b()}],"rounded-s":[{"rounded-s":b()}],"rounded-e":[{"rounded-e":b()}],"rounded-t":[{"rounded-t":b()}],"rounded-r":[{"rounded-r":b()}],"rounded-b":[{"rounded-b":b()}],"rounded-l":[{"rounded-l":b()}],"rounded-ss":[{"rounded-ss":b()}],"rounded-se":[{"rounded-se":b()}],"rounded-ee":[{"rounded-ee":b()}],"rounded-es":[{"rounded-es":b()}],"rounded-tl":[{"rounded-tl":b()}],"rounded-tr":[{"rounded-tr":b()}],"rounded-br":[{"rounded-br":b()}],"rounded-bl":[{"rounded-bl":b()}],"border-w":[{border:$()}],"border-w-x":[{"border-x":$()}],"border-w-y":[{"border-y":$()}],"border-w-s":[{"border-s":$()}],"border-w-e":[{"border-e":$()}],"border-w-t":[{"border-t":$()}],"border-w-r":[{"border-r":$()}],"border-w-b":[{"border-b":$()}],"border-w-l":[{"border-l":$()}],"divide-x":[{"divide-x":$()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":$()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...k(),"hidden","none"]}],"divide-style":[{divide:[...k(),"hidden","none"]}],"border-color":[{border:y()}],"border-color-x":[{"border-x":y()}],"border-color-y":[{"border-y":y()}],"border-color-s":[{"border-s":y()}],"border-color-e":[{"border-e":y()}],"border-color-t":[{"border-t":y()}],"border-color-r":[{"border-r":y()}],"border-color-b":[{"border-b":y()}],"border-color-l":[{"border-l":y()}],"divide-color":[{divide:y()}],"outline-style":[{outline:[...k(),"none","hidden"]}],"outline-offset":[{"outline-offset":[P,g,m]}],"outline-w":[{outline:["",P,Ee,ae]}],"outline-color":[{outline:y()}],shadow:[{shadow:["","none",p,Ne,Fe]}],"shadow-color":[{shadow:y()}],"inset-shadow":[{"inset-shadow":["none",h,Ne,Fe]}],"inset-shadow-color":[{"inset-shadow":y()}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:y()}],"ring-offset-w":[{"ring-offset":[P,ae]}],"ring-offset-color":[{"ring-offset":y()}],"inset-ring-w":[{"inset-ring":$()}],"inset-ring-color":[{"inset-ring":y()}],"text-shadow":[{"text-shadow":["none",T,Ne,Fe]}],"text-shadow-color":[{"text-shadow":y()}],opacity:[{opacity:[P,g,m]}],"mix-blend":[{"mix-blend":[...j(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":j()}],"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":[P]}],"mask-image-linear-from-pos":[{"mask-linear-from":A()}],"mask-image-linear-to-pos":[{"mask-linear-to":A()}],"mask-image-linear-from-color":[{"mask-linear-from":y()}],"mask-image-linear-to-color":[{"mask-linear-to":y()}],"mask-image-t-from-pos":[{"mask-t-from":A()}],"mask-image-t-to-pos":[{"mask-t-to":A()}],"mask-image-t-from-color":[{"mask-t-from":y()}],"mask-image-t-to-color":[{"mask-t-to":y()}],"mask-image-r-from-pos":[{"mask-r-from":A()}],"mask-image-r-to-pos":[{"mask-r-to":A()}],"mask-image-r-from-color":[{"mask-r-from":y()}],"mask-image-r-to-color":[{"mask-r-to":y()}],"mask-image-b-from-pos":[{"mask-b-from":A()}],"mask-image-b-to-pos":[{"mask-b-to":A()}],"mask-image-b-from-color":[{"mask-b-from":y()}],"mask-image-b-to-color":[{"mask-b-to":y()}],"mask-image-l-from-pos":[{"mask-l-from":A()}],"mask-image-l-to-pos":[{"mask-l-to":A()}],"mask-image-l-from-color":[{"mask-l-from":y()}],"mask-image-l-to-color":[{"mask-l-to":y()}],"mask-image-x-from-pos":[{"mask-x-from":A()}],"mask-image-x-to-pos":[{"mask-x-to":A()}],"mask-image-x-from-color":[{"mask-x-from":y()}],"mask-image-x-to-color":[{"mask-x-to":y()}],"mask-image-y-from-pos":[{"mask-y-from":A()}],"mask-image-y-to-pos":[{"mask-y-to":A()}],"mask-image-y-from-color":[{"mask-y-from":y()}],"mask-image-y-to-color":[{"mask-y-to":y()}],"mask-image-radial":[{"mask-radial":[g,m]}],"mask-image-radial-from-pos":[{"mask-radial-from":A()}],"mask-image-radial-to-pos":[{"mask-radial-to":A()}],"mask-image-radial-from-color":[{"mask-radial-from":y()}],"mask-image-radial-to-color":[{"mask-radial-to":y()}],"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":R()}],"mask-image-conic-pos":[{"mask-conic":[P]}],"mask-image-conic-from-pos":[{"mask-conic-from":A()}],"mask-image-conic-to-pos":[{"mask-conic-to":A()}],"mask-image-conic-from-color":[{"mask-conic-from":y()}],"mask-image-conic-to-color":[{"mask-conic-to":y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Se()}],"mask-repeat":[{mask:s()}],"mask-size":[{mask:v()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",g,m]}],filter:[{filter:["","none",g,m]}],blur:[{blur:ue()}],brightness:[{brightness:[P,g,m]}],contrast:[{contrast:[P,g,m]}],"drop-shadow":[{"drop-shadow":["","none",C,Ne,Fe]}],"drop-shadow-color":[{"drop-shadow":y()}],grayscale:[{grayscale:["",P,g,m]}],"hue-rotate":[{"hue-rotate":[P,g,m]}],invert:[{invert:["",P,g,m]}],saturate:[{saturate:[P,g,m]}],sepia:[{sepia:["",P,g,m]}],"backdrop-filter":[{"backdrop-filter":["","none",g,m]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[P,g,m]}],"backdrop-contrast":[{"backdrop-contrast":[P,g,m]}],"backdrop-grayscale":[{"backdrop-grayscale":["",P,g,m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[P,g,m]}],"backdrop-invert":[{"backdrop-invert":["",P,g,m]}],"backdrop-opacity":[{"backdrop-opacity":[P,g,m]}],"backdrop-saturate":[{"backdrop-saturate":[P,g,m]}],"backdrop-sepia":[{"backdrop-sepia":["",P,g,m]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",g,m]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[P,"initial",g,m]}],ease:[{ease:["linear","initial",S,g,m]}],delay:[{delay:[P,g,m]}],animate:[{animate:["none",O,g,m]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,g,m]}],"perspective-origin":[{"perspective-origin":V()}],rotate:[{rotate:ee()}],"rotate-x":[{"rotate-x":ee()}],"rotate-y":[{"rotate-y":ee()}],"rotate-z":[{"rotate-z":ee()}],scale:[{scale:X()}],"scale-x":[{"scale-x":X()}],"scale-y":[{"scale-y":X()}],"scale-z":[{"scale-z":X()}],"scale-3d":["scale-3d"],skew:[{skew:je()}],"skew-x":[{"skew-x":je()}],"skew-y":[{"skew-y":je()}],transform:[{transform:[g,m,"","none","gpu","cpu"]}],"transform-origin":[{origin:V()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ce()}],"translate-x":[{"translate-x":Ce()}],"translate-y":[{"translate-y":Ce()}],"translate-z":[{"translate-z":Ce()}],"translate-none":["translate-none"],accent:[{accent:y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:y()}],"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",g,m]}],"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":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"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",g,m]}],fill:[{fill:["none",...y()]}],"stroke-w":[{stroke:[P,Ee,ae,Je]}],stroke:[{stroke:["none",...y()]}],"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"]}},Do=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:i={}})=>(Pe(e,"cacheSize",t),Pe(e,"prefix",r),Pe(e,"experimentalParseClassName",n),De(e.theme,i.theme),De(e.classGroups,i.classGroups),De(e.conflictingClassGroups,i.conflictingClassGroups),De(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Pe(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),Re(e.theme,o.theme),Re(e.classGroups,o.classGroups),Re(e.conflictingClassGroups,o.conflictingClassGroups),Re(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),$r(e,o,"orderSensitiveModifiers"),e),Pe=(e,t,r)=>{r!==void 0&&(e[t]=r)},De=(e,t)=>{if(t)for(const r in t)Pe(e,r,t[r])},Re=(e,t)=>{if(t)for(const r in t)$r(e,t,r)},$r=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},Ro=(e,...t)=>typeof e=="function"?Dt(Kt,e,...t):Dt(()=>Do(Kt(),e),...t),Vo=Ro({prefix:"nm-"});function Ko(...e){return Vo(it(e))}const zo=xr(["nm-font-sans nm-inline-flex nm-items-center nm-justify-center nm-whitespace-nowrap nm-rounded-md nm-text-sm nm-font-medium nm-ring-offset-background nm-transition-colors","data-[disabled]:nm-pointer-events-none data-[disabled]:nm-opacity-50","data-[focus-visible]:nm-outline-none data-[focus-visible]:nm-ring-2 data-[focus-visible]:nm-ring-ring data-[focus-visible]:nm-ring-offset-2","focus-visible:nm-outline-none"],{variants:{variant:{default:"nm-bg-btn-primary nm-text-btn-primary-fg data-[hovered]:nm-bg-btn-primary-hover",destructive:"nm-bg-btn-destructive nm-text-btn-destructive-fg data-[hovered]:nm-bg-btn-destructive-hover",outline:"nm-border nm-border-input nm-bg-background data-[hovered]:nm-bg-btn-ghost-hover-bg data-[hovered]:nm-text-btn-ghost-hover-fg",secondary:"nm-bg-btn-secondary nm-text-btn-secondary-fg data-[hovered]:nm-bg-btn-secondary-hover",ghost:"data-[hovered]:nm-bg-btn-ghost-hover-bg data-[hovered]:nm-text-btn-ghost-hover-fg",link:"nm-text-btn-primary nm-underline-offset-4 data-[hovered]:nm-underline"},size:{default:"nm-h-10 nm-px-4 nm-py-2",sm:"nm-h-9 nm-rounded-md nm-px-3",lg:"nm-h-11 nm-rounded-md nm-px-8",icon:"nm-h-10 nm-w-10"}},defaultVariants:{variant:"default",size:"default"}}),Go=({className:e,variant:t,size:r,...n})=>wr.jsx(Yn,{...n,className:un(e,(o,i)=>Ko(zo({variant:t,size:r,className:o})))});module.exports=Go;
|
|
7
|
+
`.trim(),f.head.prepend(C)},[p]),d.useEffect(()=>{let f=$.current;return()=>{var C;b||Wt((C=f.target)!==null&&C!==void 0?C:void 0);for(let v of f.disposables)v();f.disposables=[]}},[b]),{isPressed:s||m,pressProps:q(h,ne,{[gn]:!0})}}function Mr(e){return e.tagName==="A"&&e.hasAttribute("href")}function Ut(e,t){const{key:r,code:n}=e,o=t,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof ie(o).HTMLInputElement&&!bo(o,r)||o instanceof ie(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&Mr(o))&&r!=="Enter")}function Wl(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function hn(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===t)return o}return null}function Pe(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 Le(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}}function Ul(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 ql(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function $n(e,t){let r=t.getBoundingClientRect(),n=Ul(e);return ql(r,n)}function Yl(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Mr(e)}function yn(e,t){return e instanceof HTMLInputElement?!bo(e,t):Yl(e)}const Xl=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function bo(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Xl.has(e.type)}let De=null,cr=new Set,Je=new Map,Fe=!1,ur=!1;const Jl={Tab:!0,Escape:!0};function At(e,t){for(let r of cr)r(e,t)}function Zl(e){return!(e.metaKey||!Be()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ct(e){Fe=!0,!Me.isOpening&&Zl(e)&&(De="keyboard",At("keyboard",e))}function fe(e){De="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(Fe=!0,At("pointer",e))}function vo(e){!Me.isOpening&&or(e)&&(Fe=!0,De="virtual")}function po(e){e.target===window||e.target===document||wt||!e.isTrusted||(!Fe&&!ur&&(De="virtual",At("virtual",e)),Fe=!1,ur=!1)}function mo(){wt||(Fe=!1,ur=!0)}function fr(e){if(typeof window>"u"||typeof document>"u"||Je.get(ie(e)))return;const t=ie(e),r=V(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Fe=!0,n.apply(this,arguments)},r.addEventListener("keydown",Ct,!0),r.addEventListener("keyup",Ct,!0),r.addEventListener("click",vo,!0),t.addEventListener("focus",po,!0),t.addEventListener("blur",mo,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",fe,!0),r.addEventListener("pointermove",fe,!0),r.addEventListener("pointerup",fe,!0)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",fe,!0),r.addEventListener("mousemove",fe,!0),r.addEventListener("mouseup",fe,!0)),t.addEventListener("beforeunload",()=>{go(e)},{once:!0}),Je.set(t,{focus:n})}const go=(e,t)=>{const r=ie(e),n=V(e);t&&n.removeEventListener("DOMContentLoaded",t),Je.has(r)&&(r.HTMLElement.prototype.focus=Je.get(r).focus,n.removeEventListener("keydown",Ct,!0),n.removeEventListener("keyup",Ct,!0),n.removeEventListener("click",vo,!0),r.removeEventListener("focus",po,!0),r.removeEventListener("blur",mo,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",fe,!0),n.removeEventListener("pointermove",fe,!0),n.removeEventListener("pointerup",fe,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",fe,!0),n.removeEventListener("mousemove",fe,!0),n.removeEventListener("mouseup",fe,!0)),Je.delete(r))};function Ql(e){const t=V(e);let r;return t.readyState!=="loading"?fr(e):(r=()=>{fr(e)},t.addEventListener("DOMContentLoaded",r)),()=>go(e,r)}typeof document<"u"&&Ql();function ho(){return De!=="pointer"}function $o(){return De}function es(e){De=e,At(e,null)}const ts=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function rs(e,t,r){let n=V(r==null?void 0:r.target);const o=typeof window<"u"?ie(r==null?void 0:r.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?ie(r==null?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?ie(r==null?void 0:r.target).HTMLElement:HTMLElement,l=typeof window<"u"?ie(r==null?void 0:r.target).KeyboardEvent:KeyboardEvent;return e=e||n.activeElement instanceof o&&!ts.has(n.activeElement.type)||n.activeElement instanceof i||n.activeElement instanceof a&&n.activeElement.isContentEditable,!(e&&t==="keyboard"&&r instanceof l&&!Jl[r.key])}function ns(e,t,r){fr(),d.useEffect(()=>{let n=(o,i)=>{rs(!!(r!=null&&r.isTextInput),o,i)&&e(ho())};return cr.add(n),()=>{cr.delete(n)}},t)}function tt(e){const t=V(e);if($o()==="virtual"){let r=ae(t);Yn(()=>{const n=ae(t);(n===r||n===t.body)&&e.isConnected&&ze(e)})}else ze(e)}function yo(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const i=d.useCallback(s=>{if(s.target===s.currentTarget)return n&&n(s),o&&o(!1),!0},[n,o]),a=uo(i),l=d.useCallback(s=>{const c=V(s.target),u=c?ae(c):ae();s.target===s.currentTarget&&u===H(s.nativeEvent)&&(r&&r(s),o&&o(!0),a(s))},[o,r,a]);return{focusProps:{onFocus:!t&&(r||o||n)?l:void 0,onBlur:!t&&(n||o)?i:void 0}}}function xn(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 os(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:xn(e.onKeyDown),onKeyUp:xn(e.onKeyUp)}}}let is=d.createContext(null);function as(e){let t=d.useContext(is)||{};Sr(t,e);let{ref:r,...n}=t;return n}function Fr(e,t){let{focusProps:r}=yo(e),{keyboardProps:n}=os(e),o=q(r,n),i=as(t),a=e.isDisabled?{}:i,l=d.useRef(e.autoFocus);d.useEffect(()=>{l.current&&t.current&&tt(t.current),l.current=!1},[t]);let s=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(s=void 0),{focusableProps:q({...o,tabIndex:s},a)}}const ls=d.forwardRef(({children:e,...t},r)=>{let n=d.useRef(!1),o=d.useContext(et);r=Tr(r||(o==null?void 0:o.ref));let i=q(o||{},{...t,ref:r,register(){n.current=!0,o&&o.register()}});return Sr(o,r),d.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)},[]),d.createElement(et.Provider,{value:i},e)});function ss({children:e}){let t=d.useMemo(()=>({register:()=>{}}),[]);return d.createElement(et.Provider,{value:t},e)}function Dr(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,i=d.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:l}=Cr(),s=d.useCallback(b=>{b.currentTarget.contains(b.target)&&i.current.isFocusWithin&&!b.currentTarget.contains(b.relatedTarget)&&(i.current.isFocusWithin=!1,l(),r&&r(b),o&&o(!1))},[r,o,i,l]),c=uo(s),u=d.useCallback(b=>{if(!b.currentTarget.contains(b.target))return;const p=V(b.target),h=ae(p);if(!i.current.isFocusWithin&&h===H(b.nativeEvent)){n&&n(b),o&&o(!0),i.current.isFocusWithin=!0,c(b);let m=b.currentTarget;a(p,"focus",g=>{if(i.current.isFocusWithin&&!U(m,g.target)){let $=new p.defaultView.FocusEvent("blur",{relatedTarget:g.target});co($,m);let y=Ir($);s(y)}},{capture:!0})}},[n,o,c,a,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:s}}}let Tt=!1,ft=0;function br(){Tt=!0,setTimeout(()=>{Tt=!1},50)}function En(e){e.pointerType==="touch"&&br()}function ds(){if(!(typeof document>"u"))return ft===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",En):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",br)),ft++,()=>{ft--,!(ft>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",En):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",br))}}function nt(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[i,a]=d.useState(!1),l=d.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;d.useEffect(ds,[]);let{addGlobalListener:s,removeAllGlobalListeners:c}=Cr(),{hoverProps:u,triggerHoverEnd:b}=d.useMemo(()=>{let p=(g,$)=>{if(l.pointerType=$,o||$==="touch"||l.isHovered||!g.currentTarget.contains(g.target))return;l.isHovered=!0;let y=g.currentTarget;l.target=y,s(V(g.target),"pointerover",x=>{l.isHovered&&l.target&&!U(l.target,x.target)&&h(x,x.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:y,pointerType:$}),r&&r(!0),a(!0)},h=(g,$)=>{let y=l.target;l.pointerType="",l.target=null,!($==="touch"||!l.isHovered||!y)&&(l.isHovered=!1,c(),n&&n({type:"hoverend",target:y,pointerType:$}),r&&r(!1),a(!1))},m={};return typeof PointerEvent<"u"?(m.onPointerEnter=g=>{Tt&&g.pointerType==="mouse"||p(g,g.pointerType)},m.onPointerLeave=g=>{!o&&g.currentTarget.contains(g.target)&&h(g,g.pointerType)}):process.env.NODE_ENV==="test"&&(m.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},m.onMouseEnter=g=>{!l.ignoreEmulatedMouseEvents&&!Tt&&p(g,"mouse"),l.ignoreEmulatedMouseEvents=!1},m.onMouseLeave=g=>{!o&&g.currentTarget.contains(g.target)&&h(g,"mouse")}),{hoverProps:m,triggerHoverEnd:h}},[t,r,n,o,l,s,c]);return d.useEffect(()=>{o&&b({currentTarget:l.target},l.pointerType)},[o]),{hoverProps:u,isHovered:i}}function cs(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,i=d.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=pe(s=>{r&&bt(s,t)&&(o&&o(s),i.current.isPointerDown=!0)}),l=pe(s=>{r&&r(s)});d.useEffect(()=>{let s=i.current;if(n)return;const c=t.current,u=V(c);if(typeof PointerEvent<"u"){let b=p=>{s.isPointerDown&&bt(p,t)&&l(p),s.isPointerDown=!1};return u.addEventListener("pointerdown",a,!0),u.addEventListener("click",b,!0),()=>{u.removeEventListener("pointerdown",a,!0),u.removeEventListener("click",b,!0)}}else if(process.env.NODE_ENV==="test"){let b=h=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&bt(h,t)&&l(h),s.isPointerDown=!1},p=h=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&bt(h,t)&&l(h),s.isPointerDown=!1};return u.addEventListener("mousedown",a,!0),u.addEventListener("mouseup",b,!0),u.addEventListener("touchstart",a,!0),u.addEventListener("touchend",p,!0),()=>{u.removeEventListener("mousedown",a,!0),u.removeEventListener("mouseup",b,!0),u.removeEventListener("touchstart",a,!0),u.removeEventListener("touchend",p,!0)}}},[t,n])}function bt(e,t){if(e.button>0)return!1;if(e.target){const r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}const wn=d.createContext(null),vr="react-aria-focus-scope-restore";let j=null;function us(e){let{children:t,contain:r,restoreFocus:n,autoFocus:o}=e,i=d.useRef(null),a=d.useRef(null),l=d.useRef([]),{parentNode:s}=d.useContext(wn)||{},c=d.useMemo(()=>new mr({scopeRef:l}),[l]);K(()=>{let p=s||Q.root;if(Q.getTreeNode(p.scopeRef)&&j&&!St(j,p.scopeRef)){let h=Q.getTreeNode(j);h&&(p=h)}p.addChild(c),Q.addNode(c)},[c,s]),K(()=>{let p=Q.getTreeNode(l);p&&(p.contain=!!r)},[r]),K(()=>{var p;let h=(p=i.current)===null||p===void 0?void 0:p.nextSibling,m=[],g=$=>$.stopPropagation();for(;h&&h!==a.current;)m.push(h),h.addEventListener(vr,g),h=h.nextSibling;return l.current=m,()=>{for(let $ of m)$.removeEventListener(vr,g)}},[t]),gs(l,n,r),vs(l,r),hs(l,n,r),ms(l,o),d.useEffect(()=>{const p=ae(V(l.current?l.current[0]:void 0));let h=null;if(be(p,l.current)){for(let m of Q.traverse())m.scopeRef&&be(p,m.scopeRef.current)&&(h=m);h===Q.getTreeNode(l)&&(j=h.scopeRef)}},[l]),K(()=>()=>{var p,h,m;let g=(m=(h=Q.getTreeNode(l))===null||h===void 0||(p=h.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&m!==void 0?m:null;(l===j||St(l,j))&&(!g||Q.getTreeNode(g))&&(j=g),Q.removeTreeNode(l)},[l]);let u=d.useMemo(()=>fs(l),[]),b=d.useMemo(()=>({focusManager:u,parentNode:c}),[c,u]);return d.createElement(wn.Provider,{value:b},d.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,d.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function fs(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:a}=t;var l;let s=n||ae(V((l=r[0])!==null&&l!==void 0?l:void 0)),c=r[0].previousElementSibling,u=Ie(r),b=ke(u,{tabbable:o,accept:a},r);b.currentNode=be(s,r)?s:c;let p=b.nextNode();return!p&&i&&(b.currentNode=c,p=b.nextNode()),p&&xe(p,!0),p},focusPrevious(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:a}=t;var l;let s=n||ae(V((l=r[0])!==null&&l!==void 0?l:void 0)),c=r[r.length-1].nextElementSibling,u=Ie(r),b=ke(u,{tabbable:o,accept:a},r);b.currentNode=be(s,r)?s:c;let p=b.previousNode();return!p&&i&&(b.currentNode=c,p=b.previousNode()),p&&xe(p,!0),p},focusFirst(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=Ie(r),a=ke(i,{tabbable:n,accept:o},r);a.currentNode=r[0].previousElementSibling;let l=a.nextNode();return l&&xe(l,!0),l},focusLast(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=Ie(r),a=ke(i,{tabbable:n,accept:o},r);a.currentNode=r[r.length-1].nextElementSibling;let l=a.previousNode();return l&&xe(l,!0),l}}}function Ie(e){return e[0].parentElement}function Ye(e){let t=Q.getTreeNode(j);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function bs(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...V(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(i=>!i.form);else{var r,n;let i=(n=e.form)===null||n===void 0||(r=n.elements)===null||r===void 0?void 0:r.namedItem(e.name);t=[...i??[]]}return t?!t.some(i=>i.checked):!1}function vs(e,t){let r=d.useRef(void 0),n=d.useRef(void 0);K(()=>{let o=e.current;if(!t){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}const i=V(o?o[0]:void 0);let a=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!Ye(e)||c.isComposing)return;let u=ae(i),b=e.current;if(!b||!be(u,b))return;let p=Ie(b),h=ke(p,{tabbable:!0},b);if(!u)return;h.currentNode=u;let m=c.shiftKey?h.previousNode():h.nextNode();m||(h.currentNode=c.shiftKey?b[b.length-1].nextElementSibling:b[0].previousElementSibling,m=c.shiftKey?h.previousNode():h.nextNode()),c.preventDefault(),m&&xe(m,!0)},l=c=>{(!j||St(j,e))&&be(H(c),e.current)?(j=e,r.current=H(c)):Ye(e)&&!Se(H(c),e)?r.current?r.current.focus():j&&j.current&&pr(j.current):Ye(e)&&(r.current=H(c))},s=c=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let u=$o(),b=(u==="virtual"||u===null)&&Pr()&&qn(),p=ae(i);if(!b&&p&&Ye(e)&&!Se(p,e)){j=e;let m=H(c);if(m&&m.isConnected){var h;r.current=m,(h=r.current)===null||h===void 0||h.focus()}else j.current&&pr(j.current)}})};return i.addEventListener("keydown",a,!1),i.addEventListener("focusin",l,!1),o==null||o.forEach(c=>c.addEventListener("focusin",l,!1)),o==null||o.forEach(c=>c.addEventListener("focusout",s,!1)),()=>{i.removeEventListener("keydown",a,!1),i.removeEventListener("focusin",l,!1),o==null||o.forEach(c=>c.removeEventListener("focusin",l,!1)),o==null||o.forEach(c=>c.removeEventListener("focusout",s,!1))}},[e,t]),K(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function xo(e){return Se(e)}function be(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function Se(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of Q.traverse(Q.getTreeNode(t)))if(r&&be(e,r.current))return!0;return!1}function ps(e){return Se(e,j)}function St(e,t){var r;let n=(r=Q.getTreeNode(t))===null||r===void 0?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function xe(e,t=!1){if(e!=null&&!t)try{tt(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Eo(e,t=!0){let r=e[0].previousElementSibling,n=Ie(e),o=ke(n,{tabbable:t},e);o.currentNode=r;let i=o.nextNode();return t&&!i&&(n=Ie(e),o=ke(n,{tabbable:!1},e),o.currentNode=r,i=o.nextNode()),i}function pr(e,t=!0){xe(Eo(e,t))}function ms(e,t){const r=d.useRef(t);d.useEffect(()=>{if(r.current){j=e;const n=V(e.current?e.current[0]:void 0);!be(ae(n),j.current)&&e.current&&pr(e.current)}r.current=!1},[e])}function gs(e,t,r){K(()=>{if(t||r)return;let n=e.current;const o=V(n?n[0]:void 0);let i=a=>{let l=H(a);be(l,e.current)?j=e:xo(l)||(j=null)};return o.addEventListener("focusin",i,!1),n==null||n.forEach(a=>a.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),n==null||n.forEach(a=>a.removeEventListener("focusin",i,!1))}},[e,t,r])}function Pn(e){let t=Q.getTreeNode(j);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function hs(e,t,r){const n=d.useRef(typeof document<"u"?ae(V(e.current?e.current[0]:void 0)):null);K(()=>{let o=e.current;const i=V(o?o[0]:void 0);if(!t||r)return;let a=()=>{(!j||St(j,e))&&be(ae(i),e.current)&&(j=e)};return i.addEventListener("focusin",a,!1),o==null||o.forEach(l=>l.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),o==null||o.forEach(l=>l.removeEventListener("focusin",a,!1))}},[e,r]),K(()=>{const o=V(e.current?e.current[0]:void 0);if(!t)return;let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!Ye(e)||a.isComposing)return;let l=o.activeElement;if(!Se(l,e)||!Pn(e))return;let s=Q.getTreeNode(e);if(!s)return;let c=s.nodeToRestore,u=ke(o.body,{tabbable:!0});u.currentNode=l;let b=a.shiftKey?u.previousNode():u.nextNode();if((!c||!c.isConnected||c===o.body)&&(c=void 0,s.nodeToRestore=void 0),(!b||!Se(b,e))&&c){u.currentNode=c;do b=a.shiftKey?u.previousNode():u.nextNode();while(Se(b,e));a.preventDefault(),a.stopPropagation(),b?xe(b,!0):xo(c)?xe(c,!0):l.blur()}};return r||o.addEventListener("keydown",i,!0),()=>{r||o.removeEventListener("keydown",i,!0)}},[e,t,r]),K(()=>{const o=V(e.current?e.current[0]:void 0);if(!t)return;let i=Q.getTreeNode(e);if(i){var a;return i.nodeToRestore=(a=n.current)!==null&&a!==void 0?a:void 0,()=>{let l=Q.getTreeNode(e);if(!l)return;let s=l.nodeToRestore,c=ae(o);if(t&&s&&(c&&Se(c,e)||c===o.body&&Pn(e))){let u=Q.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let b=u.getTreeNode(e);for(;b;){if(b.nodeToRestore&&b.nodeToRestore.isConnected){Cn(b.nodeToRestore);return}b=b.parent}for(b=u.getTreeNode(e);b;){if(b.scopeRef&&b.scopeRef.current&&Q.getTreeNode(b.scopeRef)){let p=Eo(b.scopeRef.current,!0);Cn(p);return}b=b.parent}}})}}}},[e,t])}function Cn(e){e.dispatchEvent(new CustomEvent(vr,{bubbles:!0,cancelable:!0}))&&xe(e)}function ke(e,t,r){let n=t!=null&&t.tabbable?bl:eo,o=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,i=V(o),a=ja(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(l){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(l)||t!=null&&t.tabbable&&l.tagName==="INPUT"&&l.getAttribute("type")==="radio"&&(!bs(l)||a.currentNode.tagName==="INPUT"&&a.currentNode.type==="radio"&&a.currentNode.name===l.name)?NodeFilter.FILTER_REJECT:n(l)&&(!r||be(l,r))&&(!(t!=null&&t.accept)||t.accept(l))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(a.currentNode=t.from),a}class Or{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null);if(!o)return;let i=new mr({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),n&&(i.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&be(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(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new Or;var n;for(let o of this.traverse())r.addTreeNode(o.scopeRef,(n=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new mr({scopeRef:null}),this.fastMap.set(null,this.root)}}class mr{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Q=new Or;function ot(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=d.useRef({isFocused:!1,isFocusVisible:t||ho()}),[i,a]=d.useState(!1),[l,s]=d.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=d.useCallback(()=>s(o.current.isFocused&&o.current.isFocusVisible),[]),u=d.useCallback(h=>{o.current.isFocused=h,a(h),c()},[c]);ns(h=>{o.current.isFocusVisible=h,c()},[],{isTextInput:r});let{focusProps:b}=yo({isDisabled:n,onFocusChange:u}),{focusWithinProps:p}=Dr({isDisabled:!n,onFocusWithinChange:u});return{isFocused:i,isFocusVisible:l,focusProps:n?p:b}}const he=[];function $s(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:l}=e;d.useEffect(()=>{if(o&&!he.includes(t))return he.push(t),()=>{let m=he.indexOf(t);m>=0&&he.splice(m,1)}},[o,t]);let s=()=>{he[he.length-1]===t&&r&&r()},c=m=>{(!l||l(m.target))&&he[he.length-1]===t&&(m.stopPropagation(),m.preventDefault())},u=m=>{(!l||l(m.target))&&(he[he.length-1]===t&&(m.stopPropagation(),m.preventDefault()),s())},b=m=>{m.key==="Escape"&&!a&&!m.nativeEvent.isComposing&&(m.stopPropagation(),m.preventDefault(),s())};cs({ref:t,onInteractOutside:i&&o?u:void 0,onInteractOutsideStart:c});let{focusWithinProps:p}=Dr({isDisabled:!n,onBlurWithin:m=>{!m.relatedTarget||ps(m.relatedTarget)||(!l||l(m.relatedTarget))&&(r==null||r())}}),h=m=>{m.target===m.currentTarget&&m.preventDefault()};return{overlayProps:{onKeyDown:b,...p},underlayProps:{onPointerDown:h}}}function ys(e,t,r){let{type:n}=e,{isOpen:o}=t;d.useEffect(()=>{r&&r.current&&io.set(r.current,t.close)});let i;n==="menu"?i=!0:n==="listbox"&&(i="listbox");let a=Ne();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}const Ze=typeof document<"u"&&window.visualViewport;let vt=0,qt;function xs(e={}){let{isDisabled:t}=e;K(()=>{if(!t)return vt++,vt===1&&(It()?qt=ws():qt=Es()),()=>{vt--,vt===0&&qt()}},[t])}function Es(){let e=window.innerWidth-document.documentElement.clientWidth;return rt(e>0&&("scrollbarGutter"in document.documentElement.style?Yt(document.documentElement,"scrollbarGutter","stable"):Yt(document.documentElement,"paddingRight",`${e}px`)),Yt(document.documentElement,"overflow","hidden"))}function ws(){let e,t=!1,r=s=>{let c=s.target;e=nr(c)?c:Jn(c,!0),t=!1;let u=c.ownerDocument.defaultView.getSelection();u&&!u.isCollapsed&&u.containsNode(c,!0)&&(t=!0),"selectionStart"in c&&"selectionEnd"in c&&c.selectionStart<c.selectionEnd&&c.ownerDocument.activeElement===c&&(t=!0)},n=document.createElement("style");n.textContent=`
|
|
8
|
+
@layer {
|
|
9
|
+
* {
|
|
10
|
+
overscroll-behavior: contain;
|
|
11
|
+
}
|
|
12
|
+
}`.trim(),document.head.prepend(n);let o=s=>{if(!(s.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){s.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&s.preventDefault()}},i=s=>{let c=s.target,u=s.relatedTarget;if(u&&Kt(u))u.focus({preventScroll:!0}),Tn(u,Kt(c));else if(!u){var b;let p=(b=c.parentElement)===null||b===void 0?void 0:b.closest("[tabindex]");p==null||p.focus({preventScroll:!0})}},a=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(s){let c=document.activeElement!=null&&Kt(document.activeElement);a.call(this,{...s,preventScroll:!0}),(!s||!s.preventScroll)&&Tn(this,c)};let l=rt(Xt(document,"touchstart",r,{passive:!1,capture:!0}),Xt(document,"touchmove",o,{passive:!1,capture:!0}),Xt(document,"blur",i,!0));return()=>{l(),n.remove(),HTMLElement.prototype.focus=a}}function Yt(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function Xt(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function Tn(e,t){t||!Ze?Sn(e):Ze.addEventListener("resize",()=>Sn(e),{once:!0})}function Sn(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let n=Jn(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 a=o.bottom;Ze&&(a=Math.min(a,Ze.offsetTop+Ze.height));let l=i.top-o.top-((a-o.top)/2-i.height/2);n.scrollTo({top:Math.max(0,Math.min(n.scrollHeight-n.clientHeight,n.scrollTop+l)),behavior:"smooth"})}}r=n.parentElement}}const Ps=d.createContext({});function Cs(){var e;return(e=d.useContext(Ps))!==null&&e!==void 0?e:{}}var wo={};wo={dismiss:"تجاهل"};var Po={};Po={dismiss:"Отхвърляне"};var Co={};Co={dismiss:"Odstranit"};var To={};To={dismiss:"Luk"};var So={};So={dismiss:"Schließen"};var ko={};ko={dismiss:"Απόρριψη"};var No={};No={dismiss:"Dismiss"};var Lo={};Lo={dismiss:"Descartar"};var Ro={};Ro={dismiss:"Lõpeta"};var Io={};Io={dismiss:"Hylkää"};var Mo={};Mo={dismiss:"Rejeter"};var Fo={};Fo={dismiss:"התעלם"};var Do={};Do={dismiss:"Odbaci"};var Oo={};Oo={dismiss:"Elutasítás"};var Ao={};Ao={dismiss:"Ignora"};var _o={};_o={dismiss:"閉じる"};var Vo={};Vo={dismiss:"무시"};var Ho={};Ho={dismiss:"Atmesti"};var zo={};zo={dismiss:"Nerādīt"};var Bo={};Bo={dismiss:"Lukk"};var Ko={};Ko={dismiss:"Negeren"};var jo={};jo={dismiss:"Zignoruj"};var Go={};Go={dismiss:"Descartar"};var Wo={};Wo={dismiss:"Dispensar"};var Uo={};Uo={dismiss:"Revocare"};var qo={};qo={dismiss:"Пропустить"};var Yo={};Yo={dismiss:"Zrušiť"};var Xo={};Xo={dismiss:"Opusti"};var Jo={};Jo={dismiss:"Odbaci"};var Zo={};Zo={dismiss:"Avvisa"};var Qo={};Qo={dismiss:"Kapat"};var ei={};ei={dismiss:"Скасувати"};var ti={};ti={dismiss:"取消"};var ri={};ri={dismiss:"關閉"};var ni={};ni={"ar-AE":wo,"bg-BG":Po,"cs-CZ":Co,"da-DK":To,"de-DE":So,"el-GR":ko,"en-US":No,"es-ES":Lo,"et-EE":Ro,"fi-FI":Io,"fr-FR":Mo,"he-IL":Fo,"hr-HR":Do,"hu-HU":Oo,"it-IT":Ao,"ja-JP":_o,"ko-KR":Vo,"lt-LT":Ho,"lv-LV":zo,"nb-NO":Bo,"nl-NL":Ko,"pl-PL":jo,"pt-BR":Go,"pt-PT":Wo,"ro-RO":Uo,"ru-RU":qo,"sk-SK":Yo,"sl-SI":Xo,"sr-SP":Jo,"sv-SE":Zo,"tr-TR":Qo,"uk-UA":ei,"zh-CN":ti,"zh-TW":ri};const kn={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 Ts(e={}){let{style:t,isFocusable:r}=e,[n,o]=d.useState(!1),{focusWithinProps:i}=Dr({isDisabled:!r,onFocusWithinChange:l=>o(l)}),a=d.useMemo(()=>n?t:t?{...kn,...t}:kn,[n]);return{visuallyHiddenProps:{...i,style:a}}}function oi(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...i}=e,{visuallyHiddenProps:a}=Ts(e);return d.createElement(r,q(i,a),t)}function Ss(e){return e&&e.__esModule?e.default:e}function Nn(e){let{onDismiss:t,...r}=e,n=so(Ss(ni),"@react-aria/overlays"),o=Xn(r,n.format("dismiss")),i=()=>{t&&t()};return d.createElement(oi,null,d.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}const ks=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let Ge=new WeakMap,oe=[];function Ns(e,t){let r=ie(e==null?void 0:e[0]),n=t instanceof r.Element?{root:t}:t;var o;let i=(o=n==null?void 0:n.root)!==null&&o!==void 0?o:document.body,a=(n==null?void 0:n.shouldUseInert)&&ks,l=new Set(e),s=new Set,c=g=>a&&g instanceof r.HTMLElement?g.inert:g.getAttribute("aria-hidden")==="true",u=(g,$)=>{a&&g instanceof r.HTMLElement?g.inert=$:$?g.setAttribute("aria-hidden","true"):(g.removeAttribute("aria-hidden"),g instanceof r.HTMLElement&&(g.inert=!1))},b=g=>{for(let P of g.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(P);let $=P=>{if(s.has(P)||l.has(P)||P.parentElement&&s.has(P.parentElement)&&P.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let w of l)if(P.contains(w))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},y=document.createTreeWalker(g,NodeFilter.SHOW_ELEMENT,{acceptNode:$}),x=$(g);if(x===NodeFilter.FILTER_ACCEPT&&p(g),x!==NodeFilter.FILTER_REJECT){let P=y.nextNode();for(;P!=null;)p(P),P=y.nextNode()}},p=g=>{var $;let y=($=Ge.get(g))!==null&&$!==void 0?$:0;c(g)&&y===0||(y===0&&u(g,!0),s.add(g),Ge.set(g,y+1))};oe.length&&oe[oe.length-1].disconnect(),b(i);let h=new MutationObserver(g=>{for(let $ of g)if($.type==="childList"&&![...l,...s].some(y=>y.contains($.target)))for(let y of $.addedNodes)(y instanceof HTMLElement||y instanceof SVGElement)&&(y.dataset.liveAnnouncer==="true"||y.dataset.reactAriaTopLayer==="true")?l.add(y):y instanceof Element&&b(y)});h.observe(i,{childList:!0,subtree:!0});let m={visibleNodes:l,hiddenNodes:s,observe(){h.observe(i,{childList:!0,subtree:!0})},disconnect(){h.disconnect()}};return oe.push(m),()=>{h.disconnect();for(let g of s){let $=Ge.get(g);$!=null&&($===1?(u(g,!1),Ge.delete(g)):Ge.set(g,$-1))}m===oe[oe.length-1]?(oe.pop(),oe.length&&oe[oe.length-1].observe()):oe.splice(oe.indexOf(m),1)}}function Ls(e){let t=oe[oe.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function Rs(e,t){let{triggerRef:r,popoverRef:n,groupRef:o,isNonModal:i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:l,...s}=e,c=s.trigger==="SubmenuTrigger",{overlayProps:u,underlayProps:b}=$s({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i||c,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:l},o??n),{overlayProps:p,arrowProps:h,placement:m,triggerAnchorPoint:g}=Vl({...s,targetRef:r,overlayRef:n,isOpen:t.isOpen,onClose:i&&!c?t.close:null});return xs({isDisabled:i||!t.isOpen}),d.useEffect(()=>{if(t.isOpen&&n.current){var $,y;return i?Ls(($=o==null?void 0:o.current)!==null&&$!==void 0?$:n.current):Ns([(y=o==null?void 0:o.current)!==null&&y!==void 0?y:n.current],{shouldUseInert:!0})}},[i,t.isOpen,n,o]),{popoverProps:q(u,p),arrowProps:h,underlayProps:b,placement:m,triggerAnchorPoint:g}}const ii=d.createContext(null);function Ln(e){let t=Er(),{portalContainer:r=t?null:document.body,isExiting:n}=e,[o,i]=d.useState(!1),a=d.useMemo(()=>({contain:o,setContain:i}),[o,i]),{getContainer:l}=Cs();if(!e.portalContainer&&l&&(r=l()),!r)return null;let s=e.children;return e.disableFocusManagement||(s=d.createElement(us,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!n},s)),s=d.createElement(ii.Provider,{value:a},d.createElement(ss,null,s)),$r.createPortal(s,r)}function Is(){let e=d.useContext(ii),t=e==null?void 0:e.setContain;K(()=>{t==null||t(!0)},[t])}function Ms(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:i="label"}=e;t=Ne(t);let a=Ne(),l={};r?(n=n?`${a} ${n}`:a,l={id:a,htmlFor:i==="label"?t: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 s=Xn({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:l,fieldProps:s}}function Fs(e){let{description:t,errorMessage:r,isInvalid:n,validationState:o}=e,{labelProps:i,fieldProps:a}=Ms(e),l=er([!!t,!!r,n,o]),s=er([!!t,!!r,n,o]);return a=q(a,{"aria-describedby":[l,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:a,descriptionProps:{id:l},errorMessageProps:{id:s}}}const ai={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},li={...ai,customError:!0,valid:!1},_e={isInvalid:!1,validationDetails:ai,validationErrors:[]},Ds=d.createContext({}),kt="__formValidationState"+Date.now();function Ar(e){if(e[kt]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}=e[kt];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}}return Os(e)}function Os(e){let{isInvalid:t,validationState:r,name:n,value:o,builtinValidation:i,validate:a,validationBehavior:l="aria"}=e;r&&(t||(t=r==="invalid"));let s=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:li}:null,c=d.useMemo(()=>{if(!a||o==null)return null;let A=As(a,o);return Rn(A)},[a,o]);i!=null&&i.validationDetails.valid&&(i=void 0);let u=d.useContext(Ds),b=d.useMemo(()=>n?Array.isArray(n)?n.flatMap(A=>gr(u[A])):gr(u[n]):[],[u,n]),[p,h]=d.useState(u),[m,g]=d.useState(!1);u!==p&&(h(u),g(!1));let $=d.useMemo(()=>Rn(m?[]:b),[m,b]),y=d.useRef(_e),[x,P]=d.useState(_e),w=d.useRef(_e),R=()=>{if(!I)return;M(!1);let A=c||i||y.current;Jt(A,w.current)||(w.current=A,P(A))},[I,M]=d.useState(!1);return d.useEffect(R),{realtimeValidation:s||$||c||i||_e,displayValidation:l==="native"?s||$||x:s||$||c||i||x,updateValidation(A){l==="aria"&&!Jt(x,A)?P(A):y.current=A},resetValidation(){let A=_e;Jt(A,w.current)||(w.current=A,P(A)),l==="native"&&M(!1),g(!0)},commitValidation(){l==="native"&&M(!0),g(!0)}}}function gr(e){return e?Array.isArray(e)?e:[e]:[]}function As(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return gr(r)}return[]}function Rn(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:li}:null}function Jt(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 si(e,t,r){let{validationBehavior:n,focus:o}=e;K(()=>{if(n==="native"&&(r!=null&&r.current)&&!r.current.disabled){let c=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(c),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(Vs(r.current))}});let i=d.useRef(!1),a=pe(()=>{i.current||t.resetValidation()}),l=pe(c=>{var u;t.displayValidation.isInvalid||t.commitValidation();let b=r==null||(u=r.current)===null||u===void 0?void 0:u.form;if(!c.defaultPrevented&&r&&b&&Hs(b)===r.current){var p;o?o():(p=r.current)===null||p===void 0||p.focus(),es("keyboard")}c.preventDefault()}),s=pe(()=>{t.commitValidation()});d.useEffect(()=>{let c=r==null?void 0:r.current;if(!c)return;let u=c.form,b=u==null?void 0:u.reset;return u&&(u.reset=()=>{i.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,b==null||b.call(u),i.current=!1}),c.addEventListener("invalid",l),c.addEventListener("change",s),u==null||u.addEventListener("reset",a),()=>{c.removeEventListener("invalid",l),c.removeEventListener("change",s),u==null||u.removeEventListener("reset",a),u&&(u.reset=b)}},[r,n])}function _s(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 Vs(e){return{isInvalid:!e.validity.valid,validationDetails:_s(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function Hs(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(!r.validity.valid)return r}return null}function di(e,t){let{inputElementType:r="input",isDisabled:n=!1,isRequired:o=!1,isReadOnly:i=!1,type:a="text",validationBehavior:l="aria"}=e,[s,c]=Mt(e.value,e.defaultValue||"",e.onChange),{focusableProps:u}=Fr(e,t),b=Ar({...e,value:s}),{isInvalid:p,validationErrors:h,validationDetails:m}=b.displayValidation,{labelProps:g,fieldProps:$,descriptionProps:y,errorMessageProps:x}=Fs({...e,isInvalid:p,errorMessage:e.errorMessage||h}),P=me(e,{labelable:!0});const w={type:a,pattern:e.pattern};let[R]=d.useState(s);var I;return Zn(t,(I=e.defaultValue)!==null&&I!==void 0?I:R,c),si(e,b,t),{labelProps:g,inputProps:q(P,r==="input"?w:void 0,{disabled:n,readOnly:i,required:o&&l==="native","aria-required":o&&l==="aria"||void 0,"aria-invalid":p||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:s,onChange:M=>c(M.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(d.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...u,...$}),descriptionProps:y,errorMessageProps:x,isInvalid:p,validationErrors:h,validationDetails:m}}var ci={};ci={"Clear search":"مسح البحث"};var ui={};ui={"Clear search":"Изчистване на търсене"};var fi={};fi={"Clear search":"Vymazat hledání"};var bi={};bi={"Clear search":"Ryd søgning"};var vi={};vi={"Clear search":"Suche zurücksetzen"};var pi={};pi={"Clear search":"Απαλοιφή αναζήτησης"};var mi={};mi={"Clear search":"Clear search"};var gi={};gi={"Clear search":"Borrar búsqueda"};var hi={};hi={"Clear search":"Tühjenda otsing"};var $i={};$i={"Clear search":"Tyhjennä haku"};var yi={};yi={"Clear search":"Effacer la recherche"};var xi={};xi={"Clear search":"נקה חיפוש"};var Ei={};Ei={"Clear search":"Obriši pretragu"};var wi={};wi={"Clear search":"Keresés törlése"};var Pi={};Pi={"Clear search":"Cancella ricerca"};var Ci={};Ci={"Clear search":"検索をクリア"};var Ti={};Ti={"Clear search":"검색 지우기"};var Si={};Si={"Clear search":"Išvalyti iešką"};var ki={};ki={"Clear search":"Notīrīt meklēšanu"};var Ni={};Ni={"Clear search":"Tøm søk"};var Li={};Li={"Clear search":"Zoekactie wissen"};var Ri={};Ri={"Clear search":"Wyczyść zawartość wyszukiwania"};var Ii={};Ii={"Clear search":"Limpar pesquisa"};var Mi={};Mi={"Clear search":"Limpar pesquisa"};var Fi={};Fi={"Clear search":"Ştergeţi căutarea"};var Di={};Di={"Clear search":"Очистить поиск"};var Oi={};Oi={"Clear search":"Vymazať vyhľadávanie"};var Ai={};Ai={"Clear search":"Počisti iskanje"};var _i={};_i={"Clear search":"Obriši pretragu"};var Vi={};Vi={"Clear search":"Rensa sökning"};var Hi={};Hi={"Clear search":"Aramayı temizle"};var zi={};zi={"Clear search":"Очистити пошук"};var Bi={};Bi={"Clear search":"清除搜索"};var Ki={};Ki={"Clear search":"清除搜尋條件"};var ji={};ji={"ar-AE":ci,"bg-BG":ui,"cs-CZ":fi,"da-DK":bi,"de-DE":vi,"el-GR":pi,"en-US":mi,"es-ES":gi,"et-EE":hi,"fi-FI":$i,"fr-FR":yi,"he-IL":xi,"hr-HR":Ei,"hu-HU":wi,"it-IT":Pi,"ja-JP":Ci,"ko-KR":Ti,"lt-LT":Si,"lv-LV":ki,"nb-NO":Ni,"nl-NL":Li,"pl-PL":Ri,"pt-BR":Ii,"pt-PT":Mi,"ro-RO":Fi,"ru-RU":Di,"sk-SK":Oi,"sl-SI":Ai,"sr-SP":_i,"sv-SE":Vi,"tr-TR":Hi,"uk-UA":zi,"zh-CN":Bi,"zh-TW":Ki};function zs(e){return e&&e.__esModule?e.default:e}function Bs(e,t,r){let n=so(zs(ji),"@react-aria/searchfield"),{isDisabled:o,isReadOnly:i,onSubmit:a,onClear:l,type:s="search"}=e,c=y=>{const x=y.key;x==="Enter"&&(o||i)&&y.preventDefault(),!(o||i)&&(x==="Enter"&&a&&(y.preventDefault(),a(t.value)),x==="Escape"&&(t.value===""&&(!r.current||r.current.value==="")?y.continuePropagation():(y.preventDefault(),t.setValue(""),l&&l())))},u=()=>{t.setValue(""),l&&l()},b=()=>{var y;(y=r.current)===null||y===void 0||y.focus()},{labelProps:p,inputProps:h,descriptionProps:m,errorMessageProps:g,...$}=di({...e,value:t.value,onChange:t.setValue,onKeyDown:i?e.onKeyDown:rt(c,e.onKeyDown),type:s},r);return{labelProps:p,inputProps:{...h,defaultValue:void 0},clearButtonProps:{"aria-label":n.format("Clear search"),excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:o||i,onPress:u,onPressStart:b},descriptionProps:m,errorMessageProps:g,...$}}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const Gi=d.createContext(!1);function it(e){let t=(r,n)=>d.useContext(Gi)?null:e(r,n);return t.displayName=e.displayName||e.name,d.forwardRef(t)}function Ks(){return d.useContext(Gi)}function js(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:a,onPressUp:l,onPressChange:s,preventFocusOnPress:c,allowFocusWhenDisabled:u,onClick:b,href:p,target:h,rel:m,type:g="button"}=e,$;r==="button"?$={type:g,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}:$={role:"button",href:r==="a"&&!n?p:void 0,target:r==="a"?h:void 0,type:r==="input"?g:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?m:void 0};let{pressProps:y,isPressed:x}=Pt({onPressStart:i,onPressEnd:a,onPressChange:s,onPress:o,onPressUp:l,onClick:b,isDisabled:n,preventFocusOnPress:c,ref:t}),{focusableProps:P}=Fr(e,t);u&&(P.tabIndex=n?-1:P.tabIndex);let w=q(P,y,me(e,{labelable:!0}));return{isPressed:x,buttonProps:q($,w,{"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 Gs(e,t,r){let{isDisabled:n=!1,isReadOnly:o=!1,value:i,name:a,form:l,children:s,"aria-label":c,"aria-labelledby":u,validationState:b="valid",isInvalid:p,onPressStart:h,onPressEnd:m,onPressChange:g,onPress:$,onPressUp:y,onClick:x}=e,P=B=>{B.stopPropagation(),t.setSelected(B.target.checked)},w=s!=null,R=c!=null||u!=null;!w&&!R&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:I,isPressed:M}=Pt({onPressStart:h,onPressEnd:m,onPressChange:g,onPress:$,onPressUp:y,onClick:x,isDisabled:n}),{pressProps:E,isPressed:F}=Pt({onPressStart:h,onPressEnd:m,onPressChange:g,onPressUp:y,onClick:x,onPress(B){var Y;$==null||$(B),t.toggle(),(Y=r.current)===null||Y===void 0||Y.focus()},isDisabled:n||o}),{focusableProps:A}=Fr(e,r),J=q(I,A),z=me(e,{labelable:!0});return Zn(r,t.defaultSelected,t.setSelected),{labelProps:q(E,{onClick:B=>B.preventDefault()}),inputProps:q(z,{"aria-invalid":p||b==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:P,disabled:n,...i==null?{}:{value:i},name:a,form:l,type:"checkbox",...J}),isSelected:t.isSelected,isPressed:M||F,isDisabled:n,isReadOnly:o,isInvalid:p||b==="invalid"}}function Wi(e,t,r){let n=Ar({...e,value:t.isSelected}),{isInvalid:o,validationErrors:i,validationDetails:a}=n.displayValidation,{labelProps:l,inputProps:s,isSelected:c,isPressed:u,isDisabled:b,isReadOnly:p}=Gs({...e,isInvalid:o},t,r);si(e,n,r);let{isIndeterminate:h,isRequired:m,validationBehavior:g="aria"}=e;d.useEffect(()=>{r.current&&(r.current.indeterminate=!!h)});let{pressProps:$}=Pt({isDisabled:b||p,onPress(){let{[kt]:y}=e,{commitValidation:x}=y||n;x()}});return{labelProps:q(l,$,d.useMemo(()=>({onMouseDown:y=>y.preventDefault()}),[])),inputProps:{...s,checked:c,"aria-required":m&&g==="aria"||void 0,required:m&&g==="native"},isSelected:c,isPressed:u,isDisabled:b,isReadOnly:p,isInvalid:o,validationErrors:i,validationDetails:a}}const Ws=new WeakMap;function Ui(e={}){let{isReadOnly:t}=e,[r,n]=Mt(e.isSelected,e.defaultSelected||!1,e.onChange),[o]=d.useState(r);function i(s){t||n(s)}function a(){t||n(!r)}var l;return{isSelected:r,defaultSelected:(l=e.defaultSelected)!==null&&l!==void 0?l:o,setSelected:i,toggle:a}}function Us(e,t,r){const n=Ui({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),defaultSelected:t.defaultValue.includes(e.value),onChange(y){y?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(y)}});let{name:o,form:i,descriptionId:a,errorMessageId:l,validationBehavior:s}=Ws.get(t);var c;s=(c=e.validationBehavior)!==null&&c!==void 0?c:s;let{realtimeValidation:u}=Ar({...e,value:n.isSelected,name:void 0,validationBehavior:"aria"}),b=d.useRef(_e),p=()=>{t.setInvalid(e.value,u.isInvalid?u:b.current)};d.useEffect(p);let h=t.realtimeValidation.isInvalid?t.realtimeValidation:u,m=s==="native"?t.displayValidation:h;var g;let $=Wi({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||o,form:e.form||i,isRequired:(g=e.isRequired)!==null&&g!==void 0?g:t.isRequired,validationBehavior:s,[kt]:{realtimeValidation:h,displayValidation:m,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(y){b.current=y,p()}}},n,r);return{...$,inputProps:{...$.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?l:null,a].filter(Boolean).join(" ")||void 0}}}function qs(e,t){let{role:r="dialog"}=e,n=er();n=e["aria-label"]?void 0:n;let o=d.useRef(!1);return d.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){tt(t.current);let i=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(o.current=!0,t.current&&(t.current.blur(),tt(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),Is(),{dialogProps:{...me(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:n}}}const _r=d.createContext({}),Ys=it(function(t,r){[t,r]=se(t,r,_r);let{elementType:n="label",...o}=t;return d.createElement(n,{className:"react-aria-Label",...o,ref:r})}),Xs=d.createContext(null),Vr=d.createContext({}),qi=it(function(t,r){[t,r]=se(t,r,Vr);let n=t,{isPending:o}=n,{buttonProps:i,isPressed:a}=js(t,r);i=Js(i,o);let{focusProps:l,isFocused:s,isFocusVisible:c}=ot(t),{hoverProps:u,isHovered:b}=nt({...t,isDisabled:t.isDisabled||o}),p={isHovered:b,isPressed:(n.isPressed||a)&&!o,isFocused:s,isFocusVisible:c,isDisabled:t.isDisabled||!1,isPending:o??!1},h=$e({...t,values:p,defaultClassName:"react-aria-Button"}),m=Ne(i.id),g=Ne(),$=i["aria-labelledby"];o&&($?$=`${$} ${g}`:i["aria-label"]&&($=`${m} ${g}`));let y=d.useRef(o);d.useEffect(()=>{let P={"aria-labelledby":$||m};(!y.current&&s&&o||y.current&&s&&!o)&&en(P,"assertive"),y.current=o},[o,s,$,m]);let x=me(t,{global:!0});return delete x.onClick,d.createElement("button",{...q(x,h,i,l,u),type:i.type==="submit"&&o?"button":i.type,id:m,ref:r,"aria-labelledby":$,slot:t.slot||void 0,"aria-disabled":o?"true":i["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":p.isPressed||void 0,"data-hovered":b||void 0,"data-focused":s||void 0,"data-pending":o||void 0,"data-focus-visible":c||void 0},d.createElement(Xs.Provider,{value:{id:g}},h.children))});function Js(e,t){if(t){for(const r in e)r.startsWith("on")&&!(r.includes("Focus")||r.includes("Blur"))&&(e[r]=void 0);e.href=void 0,e.target=void 0}return e}const Hr=d.createContext({}),_t=d.forwardRef(function(t,r){[t,r]=se(t,r,Hr);let{elementType:n="span",...o}=t;return d.createElement(n,{className:"react-aria-Text",...o,ref:r})});function Yi(e){let[t,r]=Mt(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const n=d.useCallback(()=>{r(!0)},[r]),o=d.useCallback(()=>{r(!1)},[r]),i=d.useCallback(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:n,close:o,toggle:i}}function Zs(e){let t=Yi(e),[r,n]=d.useState(null),[o,i]=d.useState([]),a=()=>{i([]),t.close()};return{focusStrategy:r,...t,open(c=null){n(c),t.open()},toggle(c=null){n(c),t.toggle()},close(){a()},expandedKeysStack:o,openSubmenu:(c,u)=>{i(b=>u>b.length?b:[...b.slice(0,u),c])},closeSubmenu:(c,u)=>{i(b=>b[u]===c?b.slice(0,u):b)}}}function Qs(e){let[t,r]=Mt(In(e.value),In(e.defaultValue)||"",e.onChange);return{value:t,setValue:r}}function In(e){if(e!=null)return e.toString()}const Vt=d.createContext(null),ed=d.forwardRef(function(t,r){let n=d.useContext(Vt);return n!=null&&n.isInvalid?d.createElement(td,{...t,ref:r}):null}),td=d.forwardRef((e,t)=>{let r=d.useContext(Vt),n=me(e,{global:!0}),o=$e({...e,defaultClassName:"react-aria-FieldError",defaultChildren:r.validationErrors.length===0?void 0:r.validationErrors.join(" "),values:r});return o.children==null?null:d.createElement(_t,{slot:"errorMessage",...n,...o,ref:t})}),zr=d.createContext(null),rd=d.createContext(null),nd=d.forwardRef(function(t,r){let{inputRef:n=null,...o}=t;[t,r]=se(o,r,Ta);let{validationBehavior:i}=Dt(zr)||{};var a,l;let s=(l=(a=t.validationBehavior)!==null&&a!==void 0?a:i)!==null&&l!==void 0?l:"native",c=d.useContext(rd),u=Tr(d.useMemo(()=>Gn(n,t.inputRef!==void 0?t.inputRef:null),[n,t.inputRef])),{labelProps:b,inputProps:p,isSelected:h,isDisabled:m,isReadOnly:g,isPressed:$,isInvalid:y}=c?Us({...xt(t),value:t.value,children:typeof t.children=="function"?!0:t.children},c,u):Wi({...xt(t),children:typeof t.children=="function"?!0:t.children,validationBehavior:s},Ui(t),u),{isFocused:x,isFocusVisible:P,focusProps:w}=ot(),R=m||g,{hoverProps:I,isHovered:M}=nt({...t,isDisabled:R}),E=$e({...t,defaultClassName:"react-aria-Checkbox",values:{isSelected:h,isIndeterminate:t.isIndeterminate||!1,isPressed:$,isHovered:M,isFocused:x,isFocusVisible:P,isDisabled:m,isReadOnly:g,isInvalid:y,isRequired:t.isRequired||!1}}),F=me(t,{global:!0});return delete F.id,delete F.onClick,d.createElement("label",{...q(F,b,I,E),ref:r,slot:t.slot||void 0,"data-selected":h||void 0,"data-indeterminate":t.isIndeterminate||void 0,"data-pressed":$||void 0,"data-hovered":M||void 0,"data-focused":x||void 0,"data-focus-visible":P||void 0,"data-disabled":m||void 0,"data-readonly":g||void 0,"data-invalid":y||void 0,"data-required":t.isRequired||void 0},d.createElement(oi,{elementType:"span"},d.createElement("input",{...q(p,w),ref:u})),E.children)}),Br=d.createContext({}),Xi=d.forwardRef(function(t,r){[t,r]=se(t,r,Br);let{isDisabled:n,isInvalid:o,isReadOnly:i,onHoverStart:a,onHoverChange:l,onHoverEnd:s,...c}=t;n??(n=!!t["aria-disabled"]&&t["aria-disabled"]!=="false"),o??(o=!!t["aria-invalid"]&&t["aria-invalid"]!=="false");let{hoverProps:u,isHovered:b}=nt({onHoverStart:a,onHoverChange:l,onHoverEnd:s,isDisabled:n}),{isFocused:p,isFocusVisible:h,focusProps:m}=ot({within:!0}),g=$e({...t,values:{isHovered:b,isFocusWithin:p,isFocusVisible:h,isDisabled:n,isInvalid:o},defaultClassName:"react-aria-Group"});var $,y;return d.createElement("div",{...q(c,m,u),...g,ref:r,role:($=t.role)!==null&&$!==void 0?$:"group",slot:(y=t.slot)!==null&&y!==void 0?y:void 0,"data-focus-within":p||void 0,"data-hovered":b||void 0,"data-focus-visible":h||void 0,"data-disabled":n||void 0,"data-invalid":o||void 0,"data-readonly":i||void 0},g.children)}),Kr=d.createContext({});let od=e=>{let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,...o}=e;return o};const Ji=it(function(t,r){[t,r]=se(t,r,Kr);let{hoverProps:n,isHovered:o}=nt({...t,isDisabled:t.disabled}),{isFocused:i,isFocusVisible:a,focusProps:l}=ot({isTextInput:!0,autoFocus:t.autoFocus}),s=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",c=$e({...t,values:{isHovered:o,isFocused:i,isFocusVisible:a,isDisabled:t.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return d.createElement("input",{...q(od(t),l,n),...c,ref:r,"data-focused":i||void 0,"data-disabled":t.disabled||void 0,"data-hovered":o||void 0,"data-focus-visible":a||void 0,"data-invalid":s||void 0})}),id=d.createContext({placement:"bottom"}),Zi=d.createContext(null),Mn=d.createContext(null),ad=d.forwardRef(function(t,r){[t,r]=se(t,r,Zi);let n=d.useContext(jr),o=Yi(t),i=t.isOpen!=null||t.defaultOpen!=null||!n?o:n,a=ll(r,i.isOpen)||t.isExiting||!1,l=Ks(),{direction:s}=Rr();if(l){let c=t.children;return typeof c=="function"&&(c=c({trigger:t.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),d.createElement(d.Fragment,null,c)}return i&&!i.isOpen&&!a?null:d.createElement(ld,{...t,triggerRef:t.triggerRef,state:i,popoverRef:r,isExiting:a,dir:s})});function ld({state:e,isExiting:t,UNSTABLE_portalContainer:r,clearContexts:n,...o}){let i=d.useRef(null),a=d.useRef(null),l=d.useContext(Mn),s=l&&o.trigger==="SubmenuTrigger";var c;let{popoverProps:u,underlayProps:b,arrowProps:p,placement:h,triggerAnchorPoint:m}=Rs({...o,offset:(c=o.offset)!==null&&c!==void 0?c:8,arrowRef:i,groupRef:s?l:a},e),g=o.popoverRef,$=al(g,!!h)||o.isEntering||!1,y=$e({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:h,isEntering:$,isExiting:t}}),x=!o.isNonModal||o.trigger==="SubmenuTrigger",[P,w]=d.useState(!1);K(()=>{g.current&&w(x&&!g.current.querySelector("[role=dialog]"))},[g,x]),d.useEffect(()=>{P&&o.trigger!=="SubmenuTrigger"&&g.current&&!g.current.contains(document.activeElement)&&tt(g.current)},[P,g,o.trigger]);let R=d.useMemo(()=>{let F=y.children;if(n)for(let A of n)F=d.createElement(A.Provider,{value:null},F);return F},[y.children,n]),I={...u.style,"--trigger-anchor-point":m?`${m.x}px ${m.y}px`:void 0,...y.style},M=d.createElement("div",{...q(me(o,{global:!0}),u),...y,role:P?"dialog":void 0,tabIndex:P?-1:void 0,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],ref:g,slot:o.slot||void 0,style:I,dir:o.dir,"data-trigger":o.trigger,"data-placement":h,"data-entering":$||void 0,"data-exiting":t||void 0},!o.isNonModal&&d.createElement(Nn,{onDismiss:e.close}),d.createElement(id.Provider,{value:{...p,placement:h,ref:i}},R),d.createElement(Nn,{onDismiss:e.close}));if(!s)return d.createElement(Ln,{...o,shouldContainFocus:P,isExiting:t,portalContainer:r},!o.isNonModal&&e.isOpen&&d.createElement("div",{"data-testid":"underlay",...b,style:{position:"fixed",inset:0}}),d.createElement("div",{ref:a,style:{display:"contents"}},d.createElement(Mn.Provider,{value:a},M)));var E;return d.createElement(Ln,{...o,shouldContainFocus:P,isExiting:t,portalContainer:(E=r??(l==null?void 0:l.current))!==null&&E!==void 0?E:void 0},M)}const sd=d.createContext(null),Qi=d.createContext(null),jr=d.createContext(null);function dd(e){let t=Zs(e),r=d.useRef(null),{triggerProps:n,overlayProps:o}=ys({type:"dialog"},t,r),[i,a]=d.useState(null),l=d.useCallback(()=>{r.current&&a(r.current.offsetWidth+"px")},[r]);return rr({ref:r,onResize:l}),n.id=Ne(),o["aria-labelledby"]=n.id,d.createElement(Ft,{values:[[jr,t],[sd,t],[Qi,o],[Zi,{trigger:"DialogTrigger",triggerRef:r,"aria-labelledby":o["aria-labelledby"],style:{"--trigger-width":i}}]]},d.createElement(ls,{...n,ref:r,isPressed:t.isOpen},e.children))}const cd=d.forwardRef(function(t,r){let n=t["aria-labelledby"];[t,r]=se(t,r,Qi);let{dialogProps:o,titleProps:i}=qs({...t,"aria-labelledby":n},r),a=d.useContext(jr);!o["aria-label"]&&!o["aria-labelledby"]&&(t["aria-labelledby"]?o["aria-labelledby"]=t["aria-labelledby"]:process.env.NODE_ENV!=="production"&&console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));let l=$e({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:(a==null?void 0:a.close)||(()=>{})}}),s=me(t,{global:!0});return d.createElement("section",{...q(s,l,o),ref:r,slot:t.slot||void 0},d.createElement(Ft,{values:[[Sa,{slots:{[ar]:{},title:{...i,level:2}}}],[Vr,{slots:{[ar]:{},close:{onPress:()=>a==null?void 0:a.close()}}}]]},l.children))}),ud=d.createContext(null),fd=it(function(t,r){[t,r]=se(t,r,ud);let{validationBehavior:n}=Dt(zr)||{};var o,i;let a=(i=(o=t.validationBehavior)!==null&&o!==void 0?o:n)!==null&&i!==void 0?i:"native",l=d.useRef(null);[t,l]=se(t,l,Kn);let[s,c]=ro(!t["aria-label"]&&!t["aria-labelledby"]),u=Qs({...t,validationBehavior:a}),{labelProps:b,inputProps:p,clearButtonProps:h,descriptionProps:m,errorMessageProps:g,...$}=Bs({...xt(t),label:c,validationBehavior:a},u,l),y=$e({...t,values:{isEmpty:u.value==="",isDisabled:t.isDisabled||!1,isInvalid:$.isInvalid||!1,isReadOnly:t.isReadOnly||!1,isRequired:t.isRequired||!1,state:u},defaultClassName:"react-aria-SearchField"}),x=me(t,{global:!0});return delete x.id,d.createElement("div",{...x,...y,ref:r,slot:t.slot||void 0,"data-empty":u.value===""||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":$.isInvalid||void 0,"data-readonly":t.isReadOnly||void 0,"data-required":t.isRequired||void 0},d.createElement(Ft,{values:[[_r,{...b,ref:s}],[Kr,{...p,ref:l}],[Vr,h],[Hr,{slots:{description:m,errorMessage:g}}],[Br,{isInvalid:$.isInvalid,isDisabled:t.isDisabled||!1}],[Vt,$]]},y.children))}),ea=d.createContext({});let bd=e=>{let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,...o}=e;return o};const vd=d.forwardRef(function(t,r){[t,r]=se(t,r,ea);let{hoverProps:n,isHovered:o}=nt(t),{isFocused:i,isFocusVisible:a,focusProps:l}=ot({isTextInput:!0,autoFocus:t.autoFocus}),s=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",c=$e({...t,values:{isHovered:o,isFocused:i,isFocusVisible:a,isDisabled:t.disabled||!1,isInvalid:s},defaultClassName:"react-aria-TextArea"});return d.createElement("textarea",{...q(bd(t),l,n),...c,ref:r,"data-focused":i||void 0,"data-disabled":t.disabled||void 0,"data-hovered":o||void 0,"data-focus-visible":a||void 0,"data-invalid":s||void 0})}),pd=d.createContext(null),md=it(function(t,r){[t,r]=se(t,r,pd);let{validationBehavior:n}=Dt(zr)||{};var o,i;let a=(i=(o=t.validationBehavior)!==null&&o!==void 0?o:n)!==null&&i!==void 0?i:"native",l=d.useRef(null);[t,l]=se(t,l,Kn);let[s,c]=ro(!t["aria-label"]&&!t["aria-labelledby"]),[u,b]=d.useState("input"),{labelProps:p,inputProps:h,descriptionProps:m,errorMessageProps:g,...$}=di({...xt(t),inputElementType:u,label:c,validationBehavior:a},l),y=d.useCallback(w=>{l.current=w,w&&b(w instanceof HTMLTextAreaElement?"textarea":"input")},[l]),x=$e({...t,values:{isDisabled:t.isDisabled||!1,isInvalid:$.isInvalid,isReadOnly:t.isReadOnly||!1,isRequired:t.isRequired||!1},defaultClassName:"react-aria-TextField"}),P=me(t,{global:!0});return delete P.id,d.createElement("div",{...P,...x,ref:r,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":$.isInvalid||void 0,"data-readonly":t.isReadOnly||void 0,"data-required":t.isRequired||void 0},d.createElement(Ft,{values:[[_r,{...p,ref:s}],[Kr,{...h,ref:y}],[ea,{...h,ref:y}],[Br,{role:"presentation",isInvalid:$.isInvalid,isDisabled:t.isDisabled||!1}],[Hr,{slots:{description:m,errorMessage:g}}],[Vt,$]]},x.children))}),gd=(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},hd=(e,t)=>({classGroupId:e,validator:t}),ta=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Nt="-",Fn=[],$d="arbitrary..",yd=e=>{const t=Ed(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return xd(a);const l=a.split(Nt),s=l[0]===""&&l.length>1?1:0;return ra(l,s,t)},getConflictingClassGroupIds:(a,l)=>{if(l){const s=n[a],c=r[a];return s?c?gd(c,s):s:c||Fn}return r[a]||Fn}}},ra=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],i=r.nextPart.get(o);if(i){const c=ra(e,t+1,i);if(c)return c}const a=r.validators;if(a===null)return;const l=t===0?e.join(Nt):e.slice(t).join(Nt),s=a.length;for(let c=0;c<s;c++){const u=a[c];if(u.validator(l))return u.classGroupId}},xd=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?$d+n:void 0})(),Ed=e=>{const{theme:t,classGroups:r}=e;return wd(r,t)},wd=(e,t)=>{const r=ta();for(const n in e){const o=e[n];Gr(o,r,n,t)}return r},Gr=(e,t,r,n)=>{const o=e.length;for(let i=0;i<o;i++){const a=e[i];Pd(a,t,r,n)}},Pd=(e,t,r,n)=>{if(typeof e=="string"){Cd(e,t,r);return}if(typeof e=="function"){Td(e,t,r,n);return}Sd(e,t,r,n)},Cd=(e,t,r)=>{const n=e===""?t:na(t,e);n.classGroupId=r},Td=(e,t,r,n)=>{if(kd(e)){Gr(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(hd(r,e))},Sd=(e,t,r,n)=>{const o=Object.entries(e),i=o.length;for(let a=0;a<i;a++){const[l,s]=o[a];Gr(s,na(t,l),r,n)}},na=(e,t)=>{let r=e;const n=t.split(Nt),o=n.length;for(let i=0;i<o;i++){const a=n[i];let l=r.nextPart.get(a);l||(l=ta(),r.nextPart.set(a,l)),r=l}return r},kd=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Nd=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(i,a)=>{r[i]=a,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(i){let a=r[i];if(a!==void 0)return a;if((a=n[i])!==void 0)return o(i,a),a},set(i,a){i in r?r[i]=a:o(i,a)}}},hr="!",Dn=":",Ld=[],On=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),Rd=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const i=[];let a=0,l=0,s=0,c;const u=o.length;for(let g=0;g<u;g++){const $=o[g];if(a===0&&l===0){if($===Dn){i.push(o.slice(s,g)),s=g+1;continue}if($==="/"){c=g;continue}}$==="["?a++:$==="]"?a--:$==="("?l++:$===")"&&l--}const b=i.length===0?o:o.slice(s);let p=b,h=!1;b.endsWith(hr)?(p=b.slice(0,-1),h=!0):b.startsWith(hr)&&(p=b.slice(1),h=!0);const m=c&&c>s?c-s:void 0;return On(i,h,p,m)};if(t){const o=t+Dn,i=n;n=a=>a.startsWith(o)?i(a.slice(o.length)):On(Ld,!1,a,void 0,!0)}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},Id=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let i=0;i<r.length;i++){const a=r[i],l=a[0]==="[",s=t.has(a);l||s?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(a)):o.push(a)}return o.length>0&&(o.sort(),n.push(...o)),n}},Md=e=>({cache:Nd(e.cacheSize),parseClassName:Rd(e),sortModifiers:Id(e),...yd(e)}),Fd=/\s+/,Dd=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],l=e.trim().split(Fd);let s="";for(let c=l.length-1;c>=0;c-=1){const u=l[c],{isExternal:b,modifiers:p,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:g}=r(u);if(b){s=u+(s.length>0?" "+s:s);continue}let $=!!g,y=n($?m.substring(0,g):m);if(!y){if(!$){s=u+(s.length>0?" "+s:s);continue}if(y=n(m),!y){s=u+(s.length>0?" "+s:s);continue}$=!1}const x=p.length===0?"":p.length===1?p[0]:i(p).join(":"),P=h?x+hr:x,w=P+y;if(a.indexOf(w)>-1)continue;a.push(w);const R=o(y,$);for(let I=0;I<R.length;++I){const M=R[I];a.push(P+M)}s=u+(s.length>0?" "+s:s)}return s},Od=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=oa(r))&&(o&&(o+=" "),o+=n);return o},oa=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=oa(e[n]))&&(r&&(r+=" "),r+=t);return r},An=(e,...t)=>{let r,n,o,i;const a=s=>{const c=t.reduce((u,b)=>b(u),e());return r=Md(c),n=r.cache.get,o=r.cache.set,i=l,l(s)},l=s=>{const c=n(s);if(c)return c;const u=Dd(s,r);return o(s,u),u};return i=a,(...s)=>i(Od(...s))},Ad=[],ee=e=>{const t=r=>r[e]||Ad;return t.isThemeGetter=!0,t},ia=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,aa=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_d=/^\d+\/\d+$/,Vd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Hd=/\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$/,zd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Bd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Kd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ae=e=>_d.test(e),D=e=>!!e&&!Number.isNaN(Number(e)),Ce=e=>!!e&&Number.isInteger(Number(e)),Zt=e=>e.endsWith("%")&&D(e.slice(0,-1)),ye=e=>Vd.test(e),jd=()=>!0,Gd=e=>Hd.test(e)&&!zd.test(e),la=()=>!1,Wd=e=>Bd.test(e),Ud=e=>Kd.test(e),qd=e=>!S(e)&&!k(e),Yd=e=>Ke(e,ca,la),S=e=>ia.test(e),Re=e=>Ke(e,ua,Gd),Qt=e=>Ke(e,ec,D),_n=e=>Ke(e,sa,la),Xd=e=>Ke(e,da,Ud),pt=e=>Ke(e,fa,Wd),k=e=>aa.test(e),We=e=>je(e,ua),Jd=e=>je(e,tc),Vn=e=>je(e,sa),Zd=e=>je(e,ca),Qd=e=>je(e,da),mt=e=>je(e,fa,!0),Ke=(e,t,r)=>{const n=ia.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},je=(e,t,r=!1)=>{const n=aa.exec(e);return n?n[1]?t(n[1]):r:!1},sa=e=>e==="position"||e==="percentage",da=e=>e==="image"||e==="url",ca=e=>e==="length"||e==="size"||e==="bg-size",ua=e=>e==="length",ec=e=>e==="number",tc=e=>e==="family-name",fa=e=>e==="shadow",Hn=()=>{const e=ee("color"),t=ee("font"),r=ee("text"),n=ee("font-weight"),o=ee("tracking"),i=ee("leading"),a=ee("breakpoint"),l=ee("container"),s=ee("spacing"),c=ee("radius"),u=ee("shadow"),b=ee("inset-shadow"),p=ee("text-shadow"),h=ee("drop-shadow"),m=ee("blur"),g=ee("perspective"),$=ee("aspect"),y=ee("ease"),x=ee("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[...w(),k,S],I=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],E=()=>[k,S,s],F=()=>[Ae,"full","auto",...E()],A=()=>[Ce,"none","subgrid",k,S],J=()=>["auto",{span:["full",Ce,k,S]},Ce,k,S],z=()=>[Ce,"auto",k,S],B=()=>["auto","min","max","fr",k,S],Y=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],W=()=>["auto",...E()],te=()=>[Ae,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],N=()=>[e,k,S],ne=()=>[...w(),Vn,_n,{position:[k,S]}],f=()=>["no-repeat",{repeat:["","x","y","space","round"]}],C=()=>["auto","cover","contain",Zd,Yd,{size:[k,S]}],v=()=>[Zt,We,Re],T=()=>["","none","full",c,k,S],L=()=>["",D,We,Re],O=()=>["solid","dashed","dotted","double"],de=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>[D,Zt,Vn,_n],we=()=>["","none",m,k,S],ce=()=>["none",D,k,S],ve=()=>["none",D,k,S],at=()=>[D,k,S],lt=()=>[Ae,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ye],breakpoint:[ye],color:[jd],container:[ye],"drop-shadow":[ye],ease:["in","out","in-out"],font:[qd],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ye],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ye],shadow:[ye],spacing:["px",D],text:[ye],"text-shadow":[ye],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ae,S,k,$]}],container:["container"],columns:[{columns:[D,S,k,l]}],"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:R()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{start:F()}],end:[{end:F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[Ce,"auto",k,S]}],basis:[{basis:[Ae,"full","auto",l,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[D,Ae,"auto","initial","none",S]}],grow:[{grow:["",D,k,S]}],shrink:[{shrink:["",D,k,S]}],order:[{order:[Ce,"first","last","none",k,S]}],"grid-cols":[{"grid-cols":A()}],"col-start-end":[{col:J()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":A()}],"row-start-end":[{row:J()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":B()}],"auto-rows":[{"auto-rows":B()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...Y(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...Y()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":Y()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:W()}],mx:[{mx:W()}],my:[{my:W()}],ms:[{ms:W()}],me:[{me:W()}],mt:[{mt:W()}],mr:[{mr:W()}],mb:[{mb:W()}],ml:[{ml:W()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:te()}],w:[{w:[l,"screen",...te()]}],"min-w":[{"min-w":[l,"screen","none",...te()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[a]},...te()]}],h:[{h:["screen","lh",...te()]}],"min-h":[{"min-h":["screen","lh","none",...te()]}],"max-h":[{"max-h":["screen","lh",...te()]}],"font-size":[{text:["base",r,We,Re]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,k,Qt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Zt,S]}],"font-family":[{font:[Jd,S,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:[o,k,S]}],"line-clamp":[{"line-clamp":[D,"none",k,Qt]}],leading:[{leading:[i,...E()]}],"list-image":[{"list-image":["none",k,S]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",k,S]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:[D,"from-font","auto",k,Re]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[D,"auto",k,S]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",k,S]}],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",k,S]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:f()}],"bg-size":[{bg:C()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ce,k,S],radial:["",k,S],conic:[Ce,k,S]},Qd,Xd]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:v()}],"gradient-via-pos":[{via:v()}],"gradient-to-pos":[{to:v()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":L()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...O(),"hidden","none"]}],"divide-style":[{divide:[...O(),"hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...O(),"none","hidden"]}],"outline-offset":[{"outline-offset":[D,k,S]}],"outline-w":[{outline:["",D,We,Re]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",u,mt,pt]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",b,mt,pt]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[D,Re]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",p,mt,pt]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[D,k,S]}],"mix-blend":[{"mix-blend":[...de(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":de()}],"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":[D]}],"mask-image-linear-from-pos":[{"mask-linear-from":G()}],"mask-image-linear-to-pos":[{"mask-linear-to":G()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":G()}],"mask-image-t-to-pos":[{"mask-t-to":G()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":G()}],"mask-image-r-to-pos":[{"mask-r-to":G()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":G()}],"mask-image-b-to-pos":[{"mask-b-to":G()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":G()}],"mask-image-l-to-pos":[{"mask-l-to":G()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":G()}],"mask-image-x-to-pos":[{"mask-x-to":G()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":G()}],"mask-image-y-to-pos":[{"mask-y-to":G()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[k,S]}],"mask-image-radial-from-pos":[{"mask-radial-from":G()}],"mask-image-radial-to-pos":[{"mask-radial-to":G()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"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":w()}],"mask-image-conic-pos":[{"mask-conic":[D]}],"mask-image-conic-from-pos":[{"mask-conic-from":G()}],"mask-image-conic-to-pos":[{"mask-conic-to":G()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:f()}],"mask-size":[{mask:C()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",k,S]}],filter:[{filter:["","none",k,S]}],blur:[{blur:we()}],brightness:[{brightness:[D,k,S]}],contrast:[{contrast:[D,k,S]}],"drop-shadow":[{"drop-shadow":["","none",h,mt,pt]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",D,k,S]}],"hue-rotate":[{"hue-rotate":[D,k,S]}],invert:[{invert:["",D,k,S]}],saturate:[{saturate:[D,k,S]}],sepia:[{sepia:["",D,k,S]}],"backdrop-filter":[{"backdrop-filter":["","none",k,S]}],"backdrop-blur":[{"backdrop-blur":we()}],"backdrop-brightness":[{"backdrop-brightness":[D,k,S]}],"backdrop-contrast":[{"backdrop-contrast":[D,k,S]}],"backdrop-grayscale":[{"backdrop-grayscale":["",D,k,S]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[D,k,S]}],"backdrop-invert":[{"backdrop-invert":["",D,k,S]}],"backdrop-opacity":[{"backdrop-opacity":[D,k,S]}],"backdrop-saturate":[{"backdrop-saturate":[D,k,S]}],"backdrop-sepia":[{"backdrop-sepia":["",D,k,S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",k,S]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[D,"initial",k,S]}],ease:[{ease:["linear","initial",y,k,S]}],delay:[{delay:[D,k,S]}],animate:[{animate:["none",x,k,S]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,k,S]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:ce()}],"rotate-x":[{"rotate-x":ce()}],"rotate-y":[{"rotate-y":ce()}],"rotate-z":[{"rotate-z":ce()}],scale:[{scale:ve()}],"scale-x":[{"scale-x":ve()}],"scale-y":[{"scale-y":ve()}],"scale-z":[{"scale-z":ve()}],"scale-3d":["scale-3d"],skew:[{skew:at()}],"skew-x":[{"skew-x":at()}],"skew-y":[{"skew-y":at()}],transform:[{transform:[k,S,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:lt()}],"translate-x":[{"translate-x":lt()}],"translate-y":[{"translate-y":lt()}],"translate-z":[{"translate-z":lt()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"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",k,S]}],"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":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"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",k,S]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[D,We,Re,Qt]}],stroke:[{stroke:["none",...N()]}],"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"]}},rc=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:i={}})=>(Xe(e,"cacheSize",t),Xe(e,"prefix",r),Xe(e,"experimentalParseClassName",n),gt(e.theme,i.theme),gt(e.classGroups,i.classGroups),gt(e.conflictingClassGroups,i.conflictingClassGroups),gt(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Xe(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),ht(e.theme,o.theme),ht(e.classGroups,o.classGroups),ht(e.conflictingClassGroups,o.conflictingClassGroups),ht(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),ba(e,o,"orderSensitiveModifiers"),e),Xe=(e,t,r)=>{r!==void 0&&(e[t]=r)},gt=(e,t)=>{if(t)for(const r in t)Xe(e,r,t[r])},ht=(e,t)=>{if(t)for(const r in t)ba(e,t,r)},ba=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},nc=(e,...t)=>typeof e=="function"?An(Hn,e,...t):An(()=>rc(Hn(),e),...t),oc=nc({prefix:"nm-"});function re(...e){return oc(yr(e))}const ic=xr(["nm-font-sans nm-inline-flex nm-items-center nm-justify-center nm-whitespace-nowrap nm-rounded-md nm-text-sm nm-font-medium nm-ring-offset-background nm-transition-colors","data-[disabled]:nm-pointer-events-none data-[disabled]:nm-opacity-50","data-[focus-visible]:nm-outline-none data-[focus-visible]:nm-ring-2 data-[focus-visible]:nm-ring-ring data-[focus-visible]:nm-ring-offset-2","focus-visible:nm-outline-none","nm-cursor-pointer"],{variants:{variant:{default:"nm-bg-btn-primary nm-text-btn-primary-fg data-[hovered]:nm-bg-btn-primary-hover",destructive:"nm-bg-btn-destructive nm-text-btn-destructive-fg data-[hovered]:nm-bg-btn-destructive-hover",outline:"nm-border nm-border-input nm-bg-background data-[hovered]:nm-bg-btn-ghost-hover-bg data-[hovered]:nm-text-btn-ghost-hover-fg",secondary:"nm-bg-btn-secondary nm-text-btn-secondary-fg data-[hovered]:nm-bg-btn-secondary-hover",ghost:"data-[hovered]:nm-bg-btn-ghost-hover-bg data-[hovered]:nm-text-btn-ghost-hover-fg",link:"nm-text-btn-primary nm-underline-offset-4 data-[hovered]:nm-underline"},size:{default:"nm-h-10 nm-px-4 nm-py-2 ",sm:"nm-h-9 nm-rounded-md nm-px-3",lg:"nm-h-11 nm-rounded-md nm-px-8",icon:"nm-h-10 nm-w-10"}},defaultVariants:{variant:"default",size:"default"}}),va=Ca.forwardRef(({className:e,variant:t,size:r,...n},o)=>_.jsx(qi,{ref:o,...n,className:le(e,i=>re(ic({variant:t,size:r,className:i})))}));va.displayName="Button";const Wr=xr(["nm-text-sm nm-font-medium nm-leading-none","[color:var(--nm-textfield-label-fg)]","data-[disabled]:nm-cursor-not-allowed data-[disabled]:nm-opacity-70","group-data-[invalid]:[color:var(--nm-textfield-label-error-fg)]"]),Ur=({className:e,...t})=>_.jsx(Ys,{className:re(Wr(),e),...t});function ac({className:e,...t}){return _.jsx(_t,{className:re("nm-text-sm [color:var(--nm-textfield-helper-fg)]",e),...t,slot:"description"})}function qr({className:e,...t}){return _.jsx(ed,{className:re("nm-text-sm nm-font-medium [color:var(--nm-textfield-helper-error-fg)]",e),...t})}const pa=xr("",{variants:{variant:{default:["nm-relative nm-flex nm-h-10 nm-w-full nm-items-center nm-overflow-hidden nm-rounded-md nm-border nm-px-3 nm-py-2 nm-text-sm nm-ring-offset-background","[border-color:var(--nm-textfield-border)] [background-color:var(--nm-textfield-bg)]","data-[focus-within]:nm-outline-none data-[focus-within]:nm-ring-2 [data-focus-within]:[--nm-textfield-focus-ring:var(--nm-textfield-ring)] data-[focus-within]:nm-ring-offset-2","data-[disabled]:nm-opacity-50"],ghost:""}},defaultVariants:{variant:"default"}});function ma({className:e,variant:t,...r}){return _.jsx(Xi,{className:le(e,n=>re(pa({variant:t}),n)),...r})}const ga=md,ha=({className:e,...t})=>_.jsx(Ji,{className:le(e,r=>re("nm-flex nm-h-10 nm-w-full nm-rounded-md nm-border nm-px-3 nm-py-2 nm-text-sm nm-ring-offset-background nm-transition-colors","[border-color:var(--nm-textfield-border)] [color:var(--nm-textfield-fg)] [background-color:var(--nm-textfield-bg)]","file:nm-border-0 file:nm-bg-transparent file:nm-text-sm file:nm-font-medium","[&::placeholder]:opacity-100 [&::placeholder]:[color:var(--nm-textfield-placeholder)]","data-[disabled]:nm-cursor-not-allowed [data-disabled]:opacity-50 [data-disabled]:[background-color:var(--nm-textfield-disabled-bg)] [data-disabled]:[color:var(--nm-textfield-disabled-fg)]","data-[focused]:nm-outline-none data-[focused]:nm-ring-2 [data-focused]:[--nm-textfield-focus-ring:var(--nm-textfield-ring)] data-[focused]:nm-ring-offset-2","focus-visible:nm-outline-none",r)),...t}),$a=({className:e,...t})=>_.jsx(vd,{className:le(e,r=>re("nm-flex nm-min-h-[80px] nm-w-full nm-rounded-md nm-border nm-px-3 nm-py-2 nm-text-sm nm-ring-offset-background nm-transition-colors","[border-color:var(--nm-textfield-border)] [color:var(--nm-textfield-fg)] [background-color:var(--nm-textfield-bg)]","[&::placeholder]:opacity-100 [&::placeholder]:[color:var(--nm-textfield-placeholder)]","data-[focused]:nm-outline-none data-[focused]:nm-ring-2 [data-focused]:[--nm-textfield-focus-ring:var(--nm-textfield-ring)] data-[focused]:nm-ring-offset-2","data-[disabled]:nm-cursor-not-allowed [data-disabled]:opacity-50 [data-disabled]:[background-color:var(--nm-textfield-disabled-bg)] [data-disabled]:[color:var(--nm-textfield-disabled-fg)]","focus-visible:nm-outline-none",r)),...t});function lc({label:e,description:t,errorMessage:r,textArea:n,className:o,placeholder:i,...a}){return _.jsxs(ga,{className:le(o,l=>re("nm-font-sans nm-group nm-flex nm-flex-col nm-gap-2",l)),...a,children:[_.jsx(Ur,{children:e}),n?_.jsx($a,{placeholder:i}):_.jsx(ha,{placeholder:i}),t&&_.jsx(_t,{className:"nm-text-sm [color:var(--nm-textfield-helper-fg)]",slot:"description",children:t}),_.jsx(qr,{children:r})]})}/**
|
|
13
|
+
* @license lucide-react v0.562.0 - ISC
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the ISC license.
|
|
16
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/const sc=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),dc=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),zn=e=>{const t=dc(e);return t.charAt(0).toUpperCase()+t.slice(1)},ya=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),cc=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
18
|
+
* @license lucide-react v0.562.0 - ISC
|
|
19
|
+
*
|
|
20
|
+
* This source code is licensed under the ISC license.
|
|
21
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
22
|
+
*/var uc={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
23
|
+
* @license lucide-react v0.562.0 - ISC
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the ISC license.
|
|
26
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
27
|
+
*/const fc=d.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:a,...l},s)=>d.createElement("svg",{ref:s,...uc,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:ya("lucide",o),...!i&&!cc(l)&&{"aria-hidden":"true"},...l},[...a.map(([c,u])=>d.createElement(c,u)),...Array.isArray(i)?i:[i]]));/**
|
|
28
|
+
* @license lucide-react v0.562.0 - ISC
|
|
29
|
+
*
|
|
30
|
+
* This source code is licensed under the ISC license.
|
|
31
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
32
|
+
*/const Ht=(e,t)=>{const r=d.forwardRef(({className:n,...o},i)=>d.createElement(fc,{ref:i,iconNode:t,className:ya(`lucide-${sc(zn(e))}`,`lucide-${e}`,n),...o}));return r.displayName=zn(e),r};/**
|
|
33
|
+
* @license lucide-react v0.562.0 - ISC
|
|
34
|
+
*
|
|
35
|
+
* This source code is licensed under the ISC license.
|
|
36
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
37
|
+
*/const bc=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],vc=Ht("check",bc);/**
|
|
38
|
+
* @license lucide-react v0.562.0 - ISC
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the ISC license.
|
|
41
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/const pc=[["path",{d:"M5 12h14",key:"1ays0h"}]],mc=Ht("minus",pc);/**
|
|
43
|
+
* @license lucide-react v0.562.0 - ISC
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the ISC license.
|
|
46
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
47
|
+
*/const gc=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],hc=Ht("search",gc);/**
|
|
48
|
+
* @license lucide-react v0.562.0 - ISC
|
|
49
|
+
*
|
|
50
|
+
* This source code is licensed under the ISC license.
|
|
51
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
52
|
+
*/const $c=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yc=Ht("x",$c);function xa({className:e,...t}){return _.jsx(fd,{className:le(e,r=>re("group",r)),...t})}function Ea({className:e,...t}){return _.jsx(Ji,{className:le(e,r=>re("nm-min-w-0 nm-flex-1 nm-bg-background nm-px-2 nm-py-1.5 nm-outline nm-outline-0 placeholder:nm-text-muted-foreground [&::-webkit-search-cancel-button]:nm-hidden",r)),...t})}function xc({className:e,...t}){return _.jsx(Xi,{className:le(e,r=>re("nm-flex nm-h-10 nm-w-full nm-items-center nm-overflow-hidden nm-rounded-md nm-border nm-border-input nm-bg-background nm-px-3 nm-py-2 nm-text-sm nm-ring-offset-background","data-[focus-within]:nm-outline-none data-[focus-within]:nm-ring-2 data-[focus-within]:nm-ring-ring data-[focus-within]:nm-ring-offset-2","data-[disabled]:nm-opacity-50",r)),...t})}function wa({className:e,...t}){return _.jsx(qi,{className:le(e,r=>re("nm-mr-1 nm-rounded-sm nm-opacity-70 nm-ring-offset-background nm-transition-opacity","data-[hovered]:nm-opacity-100","data-[disabled]:nm-pointer-events-none","group-data-[empty]:nm-invisible",r)),...t})}function Ec({label:e,description:t,className:r,errorMessage:n,...o}){return _.jsxs(xa,{className:le(r,i=>re("group nm-flex nm-flex-col nm-gap-2",i)),...o,children:[_.jsx(Ur,{children:e}),_.jsxs(ma,{children:[_.jsx(hc,{"aria-hidden":!0,className:"nm-size-4 nm-text-muted-foreground"}),_.jsx(Ea,{placeholder:"Search..."}),_.jsx(wa,{children:_.jsx(yc,{"aria-hidden":!0,className:"nm-size-4"})})]}),t&&_.jsx(_t,{className:"nm-text-sm nm-text-muted-foreground",slot:"description",children:t}),_.jsx(qr,{children:n})]})}const wc=dd,Pc=({className:e,offset:t=4,...r})=>_.jsx(ad,{offset:t,className:le(e,n=>re("nm-z-50 nm-rounded-md nm-border nm-bg-popover nm-text-popover-foreground nm-shadow-md nm-outline-none","data-[entering]:nm-animate-in data-[entering]:nm-fade-in-0 data-[entering]:nm-zoom-in-95","data-[exiting]:nm-animate-out data-[exiting]:nm-fade-out-0 data-[exiting]:nm-zoom-out-95","data-[placement=bottom]:nm-slide-in-from-top-2 data-[placement=left]:nm-slide-in-from-right-2 data-[placement=right]:nm-slide-in-from-left-2 data-[placement=top]:nm-slide-in-from-bottom-2",n)),...r});function Cc({className:e,...t}){return _.jsx(cd,{className:re("nm-p-4 nm-outline nm-outline-0",e),...t})}const Tc=({className:e,children:t,...r})=>_.jsx(nd,{className:le(e,n=>re("group/checkbox nm-flex nm-items-center nm-gap-x-2","data-[disabled]:nm-cursor-not-allowed data-[disabled]:nm-opacity-70",Wr,n)),...r,children:le(t,(n,o)=>_.jsxs(_.Fragment,{children:[_.jsx("div",{className:re("nm-flex nm-size-4 nm-shrink-0 nm-items-center nm-justify-center nm-rounded-sm nm-border nm-border-primary nm-text-current nm-ring-offset-background","group-data-[focus-visible]/checkbox:nm-outline-none group-data-[focus-visible]/checkbox:nm-ring-2 group-data-[focus-visible]/checkbox:nm-ring-ring group-data-[focus-visible]/checkbox:nm-ring-offset-2","group-data-[indeterminate]/checkbox:nm-bg-primary group-data-[selected]/checkbox:nm-bg-primary group-data-[indeterminate]/checkbox:nm-text-primary-foreground group-data-[selected]/checkbox:nm-text-primary-foreground","group-data-[disabled]/checkbox:nm-cursor-not-allowed group-data-[disabled]/checkbox:nm-opacity-50","group-data-[invalid]/checkbox:nm-border-destructive group-data-[invalid]/checkbox:group-data-[selected]/checkbox:nm-bg-destructive group-data-[invalid]/checkbox:group-data-[selected]/checkbox:nm-text-destructive-foreground","focus:nm-outline-none focus-visible:nm-outline-none"),children:o.isIndeterminate?_.jsx(mc,{className:"nm-size-4"}):o.isSelected?_.jsx(vc,{className:"nm-size-4"}):null}),n]}))});exports.Button=va;exports.Checkbox=Tc;exports.FieldError=qr;exports.FieldGroup=ma;exports.FormDescription=ac;exports.Input=ha;exports.JollySearchField=Ec;exports.Label=Ur;exports.Popover=Pc;exports.PopoverDialog=Cc;exports.PopoverTrigger=wc;exports.SearchField=xa;exports.SearchFieldClear=wa;exports.SearchFieldGroup=xc;exports.SearchFieldInput=Ea;exports.TextArea=$a;exports.TextField=ga;exports.WrappedField=lc;exports.fieldGroupVariants=pa;exports.labelVariants=Wr;
|
|
9
53
|
//# sourceMappingURL=index.cjs.js.map
|